diff --git a/Publish/Npm/package.json b/Publish/Npm/package.json index 4215acd..6ef1a42 100644 --- a/Publish/Npm/package.json +++ b/Publish/Npm/package.json @@ -39,7 +39,7 @@ "grapesjs-preset-webpage": "^1.0.2", "grapesjs-script-editor": "^1.0.3", "grapesjs-tabs": "^1.0.6", - "sweetalert2": "^11.7.3", + "sweetalert2": "^11.4.8", "toastify-js": "^1.9.3", "vue": "^3.0.5" } diff --git a/Publish/Npm/postcss.config.js b/Publish/Npm/postcss.config.js new file mode 100644 index 0000000..33ad091 --- /dev/null +++ b/Publish/Npm/postcss.config.js @@ -0,0 +1,6 @@ +module.exports = { + plugins: { + tailwindcss: {}, + autoprefixer: {}, + }, +} diff --git a/Publish/Public/assets/app-41f7798b.css b/Publish/Public/assets/app-41f7798b.css new file mode 100644 index 0000000..25e0b94 --- /dev/null +++ b/Publish/Public/assets/app-41f7798b.css @@ -0,0 +1 @@ +*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}:root,[data-theme]{background-color:hsla(var(--b1) / var(--tw-bg-opacity, 1));color:hsla(var(--bc) / var(--tw-text-opacity, 1))}html{-webkit-tap-highlight-color:transparent}:root{color-scheme:light;--pf: 258.89 94.378% 40.941%;--sf: 314 100% 37.647%;--af: 174 60% 40.784%;--nf: 219 14.085% 22.275%;--in: 198 93% 60%;--su: 158 64% 52%;--wa: 43 96% 56%;--er: 0 91% 71%;--inc: 198 100% 12%;--suc: 158 100% 10%;--wac: 43 100% 11%;--erc: 0 100% 14%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 258.89 94.378% 51.176%;--pc: 0 0% 100%;--s: 314 100% 47.059%;--sc: 0 0% 100%;--a: 174 60% 50.98%;--ac: 174.71 43.59% 15.294%;--n: 219 14.085% 27.843%;--nc: 0 0% 100%;--b1: 0 0% 100%;--b2: 0 0% 94.902%;--b3: 180 1.9608% 90%;--bc: 215 27.907% 16.863%}@media (prefers-color-scheme: dark){:root{color-scheme:dark;--pf: 262.35 80.315% 40.157%;--sf: 315.75 70.196% 40%;--af: 174.69 70.335% 32.784%;--in: 198 93% 60%;--su: 158 64% 52%;--wa: 43 96% 56%;--er: 0 91% 71%;--inc: 198 100% 12%;--suc: 158 100% 10%;--wac: 43 100% 11%;--erc: 0 100% 14%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 262.35 80.315% 50.196%;--pc: 0 0% 100%;--s: 315.75 70.196% 50%;--sc: 0 0% 100%;--a: 174.69 70.335% 40.98%;--ac: 0 0% 100%;--n: 218.18 18.033% 11.961%;--nf: 222.86 17.073% 8.0392%;--nc: 220 13.376% 69.216%;--b1: 220 17.647% 20%;--b2: 220 17.241% 17.059%;--b3: 218.57 17.949% 15.294%;--bc: 220 13.376% 69.216%}}[data-theme=light]{color-scheme:light;--pf: 258.89 94.378% 40.941%;--sf: 314 100% 37.647%;--af: 174 60% 40.784%;--nf: 219 14.085% 22.275%;--in: 198 93% 60%;--su: 158 64% 52%;--wa: 43 96% 56%;--er: 0 91% 71%;--inc: 198 100% 12%;--suc: 158 100% 10%;--wac: 43 100% 11%;--erc: 0 100% 14%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 258.89 94.378% 51.176%;--pc: 0 0% 100%;--s: 314 100% 47.059%;--sc: 0 0% 100%;--a: 174 60% 50.98%;--ac: 174.71 43.59% 15.294%;--n: 219 14.085% 27.843%;--nc: 0 0% 100%;--b1: 0 0% 100%;--b2: 0 0% 94.902%;--b3: 180 1.9608% 90%;--bc: 215 27.907% 16.863%}[data-theme=dark]{color-scheme:dark;--pf: 262.35 80.315% 40.157%;--sf: 315.75 70.196% 40%;--af: 174.69 70.335% 32.784%;--in: 198 93% 60%;--su: 158 64% 52%;--wa: 43 96% 56%;--er: 0 91% 71%;--inc: 198 100% 12%;--suc: 158 100% 10%;--wac: 43 100% 11%;--erc: 0 100% 14%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 262.35 80.315% 50.196%;--pc: 0 0% 100%;--s: 315.75 70.196% 50%;--sc: 0 0% 100%;--a: 174.69 70.335% 40.98%;--ac: 0 0% 100%;--n: 218.18 18.033% 11.961%;--nf: 222.86 17.073% 8.0392%;--nc: 220 13.376% 69.216%;--b1: 220 17.647% 20%;--b2: 220 17.241% 17.059%;--b3: 218.57 17.949% 15.294%;--bc: 220 13.376% 69.216%}[data-theme=cupcake]{color-scheme:light;--pf: 183.03 47.368% 47.216%;--sf: 338.25 71.429% 62.431%;--af: 39 84.112% 46.431%;--nf: 280 46.479% 11.137%;--in: 198 93% 60%;--su: 158 64% 52%;--wa: 43 96% 56%;--er: 0 91% 71%;--pc: 183.03 100% 11.804%;--sc: 338.25 100% 15.608%;--ac: 39 100% 11.608%;--nc: 280 82.688% 82.784%;--inc: 198 100% 12%;--suc: 158 100% 10%;--wac: 43 100% 11%;--erc: 0 100% 14%;--rounded-box: 1rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--p: 183.03 47.368% 59.02%;--s: 338.25 71.429% 78.039%;--a: 39 84.112% 58.039%;--n: 280 46.479% 13.922%;--b1: 24 33.333% 97.059%;--b2: 26.667 21.951% 91.961%;--b3: 22.5 14.286% 89.02%;--bc: 280 46.479% 13.922%;--rounded-btn: 1.9rem;--tab-border: 2px;--tab-radius: .5rem}[data-theme=bumblebee]{color-scheme:light;--pf: 41.124 74.167% 42.353%;--sf: 49.901 94.393% 46.431%;--af: 240 33.333% 11.294%;--nf: 240 33.333% 11.294%;--b2: 0 0% 90%;--b3: 0 0% 81%;--in: 198 93% 60%;--su: 158 64% 52%;--wa: 43 96% 56%;--er: 0 91% 71%;--bc: 0 0% 20%;--ac: 240 60.274% 82.824%;--nc: 240 60.274% 82.824%;--inc: 198 100% 12%;--suc: 158 100% 10%;--wac: 43 100% 11%;--erc: 0 100% 14%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 41.124 74.167% 52.941%;--pc: 240 33.333% 14.118%;--s: 49.901 94.393% 58.039%;--sc: 240 33.333% 14.118%;--a: 240 33.333% 14.118%;--n: 240 33.333% 14.118%;--b1: 0 0% 100%}[data-theme=emerald]{color-scheme:light;--pf: 141.18 50% 48%;--sf: 218.88 96.078% 48%;--af: 9.8901 81.25% 44.863%;--nf: 219.23 20.312% 20.078%;--b2: 0 0% 90%;--b3: 0 0% 81%;--in: 198 93% 60%;--su: 158 64% 52%;--wa: 43 96% 56%;--er: 0 91% 71%;--inc: 198 100% 12%;--suc: 158 100% 10%;--wac: 43 100% 11%;--erc: 0 100% 14%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--btn-text-case: uppercase;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 141.18 50% 60%;--pc: 151.11 28.421% 18.627%;--s: 218.88 96.078% 60%;--sc: 210 20% 98.039%;--a: 9.8901 81.25% 56.078%;--ac: 210 20% 98.039%;--n: 219.23 20.312% 25.098%;--nc: 210 20% 98.039%;--b1: 0 0% 100%;--bc: 219.23 20.312% 25.098%;--animation-btn: 0;--animation-input: 0;--btn-focus-scale: 1}[data-theme=corporate]{color-scheme:light;--pf: 229.09 95.652% 51.137%;--sf: 214.91 26.316% 47.216%;--af: 154.2 49.02% 48%;--nf: 233.33 27.273% 10.353%;--b2: 0 0% 90%;--b3: 0 0% 81%;--in: 198 93% 60%;--su: 158 64% 52%;--wa: 43 96% 56%;--er: 0 91% 71%;--pc: 229.09 100% 92.784%;--sc: 214.91 100% 11.804%;--ac: 154.2 100% 12%;--inc: 198 100% 12%;--suc: 158 100% 10%;--wac: 43 100% 11%;--erc: 0 100% 14%;--btn-text-case: uppercase;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 229.09 95.652% 63.922%;--s: 214.91 26.316% 59.02%;--a: 154.2 49.02% 60%;--n: 233.33 27.273% 12.941%;--nc: 210 38.462% 94.902%;--b1: 0 0% 100%;--bc: 233.33 27.273% 12.941%;--rounded-box: .25rem;--rounded-btn: .125rem;--rounded-badge: .125rem;--animation-btn: 0;--animation-input: 0;--btn-focus-scale: 1}[data-theme=synthwave]{color-scheme:dark;--pf: 320.73 69.62% 55.216%;--sf: 197.03 86.592% 51.922%;--af: 48 89.041% 45.647%;--nf: 253.22 60.825% 15.216%;--b2: 253.85 59.091% 23.294%;--b3: 253.85 59.091% 20.965%;--pc: 320.73 100% 13.804%;--sc: 197.03 100% 12.98%;--ac: 48 100% 11.412%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 320.73 69.62% 69.02%;--s: 197.03 86.592% 64.902%;--a: 48 89.041% 57.059%;--n: 253.22 60.825% 19.02%;--nc: 260 60% 98.039%;--b1: 253.85 59.091% 25.882%;--bc: 260 60% 98.039%;--in: 199.13 86.957% 63.922%;--inc: 257.45 63.218% 17.059%;--su: 168.1 74.233% 68.039%;--suc: 257.45 63.218% 17.059%;--wa: 48 89.041% 57.059%;--wac: 257.45 63.218% 17.059%;--er: 351.85 73.636% 56.863%;--erc: 260 60% 98.039%}[data-theme=retro]{color-scheme:light;--pf: 2.6667 73.77% 60.863%;--sf: 144.62 27.273% 57.569%;--af: 49.024 67.213% 60.863%;--nf: 41.667 16.822% 33.569%;--inc: 221.21 100% 90.667%;--suc: 142.13 100% 87.255%;--wac: 32.133 100% 8.7451%;--erc: 0 100% 90.118%;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 2.6667 73.77% 76.078%;--pc: 345 5.2632% 14.902%;--s: 144.62 27.273% 71.961%;--sc: 345 5.2632% 14.902%;--a: 49.024 67.213% 76.078%;--ac: 345 5.2632% 14.902%;--n: 41.667 16.822% 41.961%;--nc: 45 47.059% 80%;--b1: 45 47.059% 80%;--b2: 45.283 37.063% 71.961%;--b3: 42.188 35.955% 65.098%;--bc: 345 5.2632% 14.902%;--in: 221.21 83.193% 53.333%;--su: 142.13 76.216% 36.275%;--wa: 32.133 94.619% 43.725%;--er: 0 72.222% 50.588%;--rounded-box: .4rem;--rounded-btn: .4rem;--rounded-badge: .4rem}[data-theme=cyberpunk]{color-scheme:light;--pf: 344.78 100% 58.353%;--sf: 195.12 80.392% 56%;--af: 276 74.324% 56.784%;--nf: 57.273 100% 10.353%;--b2: 56 100% 45%;--b3: 56 100% 40.5%;--in: 198 93% 60%;--su: 158 64% 52%;--wa: 43 96% 56%;--er: 0 91% 71%;--bc: 56 100% 10%;--pc: 344.78 100% 14.588%;--sc: 195.12 100% 14%;--ac: 276 100% 14.196%;--inc: 198 100% 12%;--suc: 158 100% 10%;--wac: 43 100% 11%;--erc: 0 100% 14%;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;--p: 344.78 100% 72.941%;--s: 195.12 80.392% 70%;--a: 276 74.324% 70.98%;--n: 57.273 100% 12.941%;--nc: 56 100% 50%;--b1: 56 100% 50%;--rounded-box: 0;--rounded-btn: 0;--rounded-badge: 0;--tab-radius: 0}[data-theme=valentine]{color-scheme:light;--pf: 353.23 73.81% 53.647%;--sf: 254.12 86.441% 61.49%;--af: 181.41 55.556% 56%;--nf: 336 42.857% 38.431%;--b2: 318.46 46.429% 80.118%;--b3: 318.46 46.429% 72.106%;--pc: 353.23 100% 13.412%;--sc: 254.12 100% 15.373%;--ac: 181.41 100% 14%;--inc: 221.21 100% 90.667%;--suc: 142.13 100% 87.255%;--wac: 32.133 100% 8.7451%;--erc: 0 100% 90.118%;--rounded-box: 1rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 353.23 73.81% 67.059%;--s: 254.12 86.441% 76.863%;--a: 181.41 55.556% 70%;--n: 336 42.857% 48.039%;--nc: 318.46 46.429% 89.02%;--b1: 318.46 46.429% 89.02%;--bc: 343.64 38.462% 28.039%;--in: 221.21 83.193% 53.333%;--su: 142.13 76.216% 36.275%;--wa: 32.133 94.619% 43.725%;--er: 0 72.222% 50.588%;--rounded-btn: 1.9rem}[data-theme=halloween]{color-scheme:dark;--pf: 31.927 89.344% 41.725%;--sf: 271.22 45.794% 33.569%;--af: 91.071 100% 26.353%;--nf: 180 3.5714% 8.7843%;--b2: 0 0% 11.647%;--b3: 0 0% 10.482%;--bc: 0 0% 82.588%;--sc: 271.22 100% 88.392%;--ac: 91.071 100% 6.5882%;--nc: 180 4.8458% 82.196%;--inc: 221.21 100% 90.667%;--suc: 142.13 100% 87.255%;--wac: 32.133 100% 8.7451%;--erc: 0 100% 90.118%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 31.927 89.344% 52.157%;--pc: 180 7.3171% 8.0392%;--s: 271.22 45.794% 41.961%;--a: 91.071 100% 32.941%;--n: 180 3.5714% 10.98%;--b1: 0 0% 12.941%;--in: 221.21 83.193% 53.333%;--su: 142.13 76.216% 36.275%;--wa: 32.133 94.619% 43.725%;--er: 0 72.222% 50.588%}[data-theme=garden]{color-scheme:light;--pf: 138.86 15.982% 34.353%;--sf: 96.923 37.143% 74.51%;--af: 0 67.742% 75.137%;--nf: 0 3.9106% 28.078%;--b2: 0 4.3478% 81.882%;--b3: 0 4.3478% 73.694%;--in: 198 93% 60%;--su: 158 64% 52%;--wa: 43 96% 56%;--er: 0 91% 71%;--pc: 138.86 100% 88.588%;--inc: 198 100% 12%;--suc: 158 100% 10%;--wac: 43 100% 11%;--erc: 0 100% 14%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 138.86 15.982% 42.941%;--s: 96.923 37.143% 93.137%;--sc: 96 32.468% 15.098%;--a: 0 67.742% 93.922%;--ac: 0 21.951% 16.078%;--n: 0 3.9106% 35.098%;--nc: 0 4.3478% 90.98%;--b1: 0 4.3478% 90.98%;--bc: 0 3.2258% 6.0784%}[data-theme=forest]{color-scheme:dark;--pf: 141.04 71.963% 33.569%;--sf: 140.98 74.694% 38.431%;--af: 35.148 68.98% 41.569%;--nf: 0 9.6774% 4.8627%;--b2: 0 12.195% 7.2353%;--b3: 0 12.195% 6.5118%;--in: 198 93% 60%;--su: 158 64% 52%;--wa: 43 96% 56%;--er: 0 91% 71%;--bc: 0 11.727% 81.608%;--sc: 140.98 100% 9.6078%;--ac: 35.148 100% 10.392%;--nc: 0 6.8894% 81.216%;--inc: 198 100% 12%;--suc: 158 100% 10%;--wac: 43 100% 11%;--erc: 0 100% 14%;--rounded-box: 1rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 141.04 71.963% 41.961%;--pc: 140.66 100% 88.039%;--s: 140.98 74.694% 48.039%;--a: 35.148 68.98% 51.961%;--n: 0 9.6774% 6.0784%;--b1: 0 12.195% 8.0392%;--rounded-btn: 1.9rem}[data-theme=aqua]{color-scheme:dark;--pf: 181.79 92.857% 39.529%;--sf: 274.41 30.909% 45.49%;--af: 47.059 100% 64%;--nf: 205.4 53.725% 40%;--b2: 218.61 52.511% 38.647%;--b3: 218.61 52.511% 34.782%;--bc: 218.61 100% 88.588%;--sc: 274.41 100% 91.373%;--ac: 47.059 100% 16%;--nc: 205.4 100% 90%;--inc: 221.21 100% 90.667%;--suc: 142.13 100% 87.255%;--wac: 32.133 100% 8.7451%;--erc: 0 100% 90.118%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 181.79 92.857% 49.412%;--pc: 181.41 100% 16.667%;--s: 274.41 30.909% 56.863%;--a: 47.059 100% 80%;--n: 205.4 53.725% 50%;--b1: 218.61 52.511% 42.941%;--in: 221.21 83.193% 53.333%;--su: 142.13 76.216% 36.275%;--wa: 32.133 94.619% 43.725%;--er: 0 72.222% 50.588%}[data-theme=lofi]{color-scheme:light;--pf: 0 0% 4.0784%;--sf: 0 1.9608% 8%;--af: 0 0% 11.922%;--nf: 0 0% 0%;--btn-text-case: uppercase;--border-btn: 1px;--tab-border: 1px;--p: 0 0% 5.098%;--pc: 0 0% 100%;--s: 0 1.9608% 10%;--sc: 0 0% 100%;--a: 0 0% 14.902%;--ac: 0 0% 100%;--n: 0 0% 0%;--nc: 0 0% 100%;--b1: 0 0% 100%;--b2: 0 0% 94.902%;--b3: 0 1.9608% 90%;--bc: 0 0% 0%;--in: 212.35 100% 47.647%;--inc: 0 0% 100%;--su: 136.84 72.152% 46.471%;--suc: 0 0% 100%;--wa: 4.5614 100% 66.471%;--wac: 0 0% 100%;--er: 325.05 77.6% 49.02%;--erc: 0 0% 100%;--rounded-box: .25rem;--rounded-btn: .125rem;--rounded-badge: .125rem;--animation-btn: 0;--animation-input: 0;--btn-focus-scale: 1;--tab-radius: 0}[data-theme=pastel]{color-scheme:light;--pf: 283.64 21.569% 64%;--sf: 351.63 70.492% 70.431%;--af: 158.49 54.639% 64.784%;--nf: 198.62 43.719% 48.784%;--in: 198 93% 60%;--su: 158 64% 52%;--wa: 43 96% 56%;--er: 0 91% 71%;--bc: 0 0% 20%;--pc: 283.64 59.314% 16%;--sc: 351.63 100% 17.608%;--ac: 158.49 100% 16.196%;--nc: 198.62 100% 12.196%;--inc: 198 100% 12%;--suc: 158 100% 10%;--wac: 43 100% 11%;--erc: 0 100% 14%;--rounded-box: 1rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 283.64 21.569% 80%;--s: 351.63 70.492% 88.039%;--a: 158.49 54.639% 80.98%;--n: 198.62 43.719% 60.98%;--b1: 0 0% 100%;--b2: 210 20% 98.039%;--b3: 216 12.195% 83.922%;--rounded-btn: 1.9rem}[data-theme=fantasy]{color-scheme:light;--pf: 296.04 82.813% 20.078%;--sf: 200 100% 29.647%;--af: 30.894 94.378% 40.941%;--nf: 215 27.907% 13.49%;--b2: 0 0% 90%;--b3: 0 0% 81%;--in: 198 93% 60%;--su: 158 64% 52%;--wa: 43 96% 56%;--er: 0 91% 71%;--pc: 296.04 100% 85.02%;--sc: 200 100% 87.412%;--ac: 30.894 100% 10.235%;--nc: 215 62.264% 83.373%;--inc: 198 100% 12%;--suc: 158 100% 10%;--wac: 43 100% 11%;--erc: 0 100% 14%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 296.04 82.813% 25.098%;--s: 200 100% 37.059%;--a: 30.894 94.378% 51.176%;--n: 215 27.907% 16.863%;--b1: 0 0% 100%;--bc: 215 27.907% 16.863%}[data-theme=wireframe]{color-scheme:light;--pf: 0 0% 57.725%;--sf: 0 0% 57.725%;--af: 0 0% 57.725%;--nf: 0 0% 73.725%;--bc: 0 0% 20%;--pc: 0 0% 14.431%;--sc: 0 0% 14.431%;--ac: 0 0% 14.431%;--nc: 0 0% 18.431%;--inc: 240 100% 90%;--suc: 120 100% 85.02%;--wac: 60 100% 10%;--erc: 0 100% 90%;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;font-family:Chalkboard,comic sans ms,sanssecondaryerif;--p: 0 0% 72.157%;--s: 0 0% 72.157%;--a: 0 0% 72.157%;--n: 0 0% 92.157%;--b1: 0 0% 100%;--b2: 0 0% 93.333%;--b3: 0 0% 86.667%;--in: 240 100% 50%;--su: 120 100% 25.098%;--wa: 60 30.196% 50%;--er: 0 100% 50%;--rounded-box: .2rem;--rounded-btn: .2rem;--rounded-badge: .2rem;--tab-radius: .2rem}[data-theme=black]{color-scheme:dark;--pf: 0 1.9608% 16%;--sf: 0 1.9608% 16%;--af: 0 1.9608% 16%;--bc: 0 0% 80%;--pc: 0 5.3922% 84%;--sc: 0 5.3922% 84%;--ac: 0 5.3922% 84%;--nc: 0 2.5404% 83.02%;--inc: 240 100% 90%;--suc: 120 100% 85.02%;--wac: 60 100% 10%;--erc: 0 100% 90%;--border-btn: 1px;--tab-border: 1px;--p: 0 1.9608% 20%;--s: 0 1.9608% 20%;--a: 0 1.9608% 20%;--b1: 0 0% 0%;--b2: 0 0% 5.098%;--b3: 0 1.9608% 10%;--n: 0 1.2987% 15.098%;--nf: 0 1.9608% 20%;--in: 240 100% 50%;--su: 120 100% 25.098%;--wa: 60 100% 50%;--er: 0 100% 50%;--rounded-box: 0;--rounded-btn: 0;--rounded-badge: 0;--animation-btn: 0;--animation-input: 0;--btn-text-case: lowercase;--btn-focus-scale: 1;--tab-radius: 0}[data-theme=luxury]{color-scheme:dark;--pf: 0 0% 80%;--sf: 218.4 54.348% 14.431%;--af: 318.62 21.805% 20.863%;--nf: 270 4.3478% 7.2157%;--pc: 0 0% 20%;--sc: 218.4 100% 83.608%;--ac: 318.62 84.615% 85.216%;--inc: 202.35 100% 14%;--suc: 89.007 100% 10.392%;--wac: 53.906 100% 12.706%;--erc: 0 100% 14.353%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 0 0% 100%;--s: 218.4 54.348% 18.039%;--a: 318.62 21.805% 26.078%;--n: 270 4.3478% 9.0196%;--nc: 37.083 67.29% 58.039%;--b1: 240 10% 3.9216%;--b2: 270 4.3478% 9.0196%;--b3: 270 2.1739% 18.039%;--bc: 37.083 67.29% 58.039%;--in: 202.35 100% 70%;--su: 89.007 61.633% 51.961%;--wa: 53.906 68.817% 63.529%;--er: 0 100% 71.765%}[data-theme=dracula]{color-scheme:dark;--pf: 325.52 100% 58.98%;--sf: 264.71 89.474% 62.118%;--af: 31.02 100% 56.941%;--nf: 229.57 15.033% 24%;--b2: 231.43 14.894% 16.588%;--b3: 231.43 14.894% 14.929%;--pc: 325.52 100% 14.745%;--sc: 264.71 100% 15.529%;--ac: 31.02 100% 14.235%;--nc: 229.57 70.868% 86%;--inc: 190.53 100% 15.373%;--suc: 135.18 100% 12.941%;--wac: 64.909 100% 15.294%;--erc: 0 100% 93.333%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 325.52 100% 73.725%;--s: 264.71 89.474% 77.647%;--a: 31.02 100% 71.176%;--n: 229.57 15.033% 30%;--b1: 231.43 14.894% 18.431%;--bc: 60 30% 96.078%;--in: 190.53 96.61% 76.863%;--su: 135.18 94.444% 64.706%;--wa: 64.909 91.667% 76.471%;--er: 0 100% 66.667%}[data-theme=cmyk]{color-scheme:light;--pf: 202.72 83.251% 48.157%;--sf: 335.25 77.67% 47.686%;--af: 56.195 100% 47.843%;--nf: 0 0% 8.1569%;--b2: 0 0% 90%;--b3: 0 0% 81%;--bc: 0 0% 20%;--pc: 202.72 100% 12.039%;--sc: 335.25 100% 91.922%;--ac: 56.195 100% 11.961%;--nc: 0 0% 82.039%;--inc: 192.2 100% 10.431%;--suc: 291.06 100% 87.608%;--wac: 25.027 100% 11.333%;--erc: 3.956 100% 91.137%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 202.72 83.251% 60.196%;--s: 335.25 77.67% 59.608%;--a: 56.195 100% 59.804%;--n: 0 0% 10.196%;--b1: 0 0% 100%;--in: 192.2 48.361% 52.157%;--su: 291.06 48.454% 38.039%;--wa: 25.027 84.615% 56.667%;--er: 3.956 80.531% 55.686%}[data-theme=autumn]{color-scheme:light;--pf: 344.23 95.804% 22.431%;--sf: .44444 63.38% 46.588%;--af: 27.477 56.021% 50.039%;--nf: 22.105 17.117% 34.824%;--b2: 0 0% 85.059%;--b3: 0 0% 76.553%;--bc: 0 0% 18.902%;--pc: 344.23 100% 85.608%;--sc: .44444 100% 91.647%;--ac: 27.477 100% 12.51%;--nc: 22.105 100% 88.706%;--inc: 186.94 100% 9.9216%;--suc: 164.59 100% 8.6275%;--wac: 30.141 100% 9.9216%;--erc: 353.6 100% 89.765%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 344.23 95.804% 28.039%;--s: .44444 63.38% 58.235%;--a: 27.477 56.021% 62.549%;--n: 22.105 17.117% 43.529%;--b1: 0 0% 94.51%;--in: 186.94 47.826% 49.608%;--su: 164.59 33.636% 43.137%;--wa: 30.141 84.19% 49.608%;--er: 353.6 79.116% 48.824%}[data-theme=business]{color-scheme:dark;--pf: 210 64.103% 24.471%;--sf: 200 12.931% 43.608%;--af: 12.515 79.512% 47.843%;--nf: 212.73 13.58% 12.706%;--b2: 0 0% 11.294%;--b3: 0 0% 10.165%;--bc: 0 0% 82.51%;--pc: 210 100% 86.118%;--sc: 200 100% 10.902%;--ac: 12.515 100% 11.961%;--nc: 212.73 28.205% 83.176%;--inc: 199.15 100% 88.353%;--suc: 144 100% 11.137%;--wac: 39.231 100% 12.078%;--erc: 6.3415 100% 88.667%;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 210 64.103% 30.588%;--s: 200 12.931% 54.51%;--a: 12.515 79.512% 59.804%;--n: 212.73 13.58% 15.882%;--b1: 0 0% 12.549%;--in: 199.15 100% 41.765%;--su: 144 30.973% 55.686%;--wa: 39.231 64.356% 60.392%;--er: 6.3415 55.656% 43.333%;--rounded-box: .25rem;--rounded-btn: .125rem;--rounded-badge: .125rem}[data-theme=acid]{color-scheme:light;--pf: 302.59 100% 40%;--sf: 27.294 100% 40%;--af: 72 98.425% 40.157%;--nf: 238.42 43.182% 13.804%;--b2: 0 0% 88.235%;--b3: 0 0% 79.412%;--bc: 0 0% 19.608%;--pc: 302.59 100% 90%;--sc: 27.294 100% 10%;--ac: 72 100% 10.039%;--nc: 238.42 99.052% 83.451%;--inc: 209.85 100% 11.569%;--suc: 148.87 100% 11.608%;--wac: 52.574 100% 11.451%;--erc: .78261 100% 89.02%;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 302.59 100% 50%;--s: 27.294 100% 50%;--a: 72 98.425% 50.196%;--n: 238.42 43.182% 17.255%;--b1: 0 0% 98.039%;--in: 209.85 91.628% 57.843%;--su: 148.87 49.533% 58.039%;--wa: 52.574 92.661% 57.255%;--er: .78261 100% 45.098%;--rounded-box: 1.25rem;--rounded-btn: 1rem;--rounded-badge: 1rem}[data-theme=lemonade]{color-scheme:light;--pf: 88.8 96.154% 24.471%;--sf: 60 80.952% 43.765%;--af: 62.553 79.661% 70.745%;--nf: 238.42 43.182% 13.804%;--b2: 0 0% 90%;--b3: 0 0% 81%;--bc: 0 0% 20%;--pc: 88.8 100% 86.118%;--sc: 60 100% 10.941%;--ac: 62.553 100% 17.686%;--nc: 238.42 99.052% 83.451%;--inc: 191.61 79.118% 16.902%;--suc: 74.458 100% 15.725%;--wac: 50.182 100% 15.059%;--erc: .98361 100% 16.588%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 88.8 96.154% 30.588%;--s: 60 80.952% 54.706%;--a: 62.553 79.661% 88.431%;--n: 238.42 43.182% 17.255%;--b1: 0 0% 100%;--in: 191.61 39.241% 84.51%;--su: 74.458 76.147% 78.627%;--wa: 50.182 87.302% 75.294%;--er: .98361 70.115% 82.941%}[data-theme=night]{color-scheme:dark;--pf: 198.44 93.204% 47.686%;--sf: 234.45 89.474% 59.137%;--af: 328.85 85.621% 56%;--b2: 222.22 47.368% 10.059%;--b3: 222.22 47.368% 9.0529%;--bc: 222.22 65.563% 82.235%;--pc: 198.44 100% 11.922%;--sc: 234.45 100% 14.784%;--ac: 328.85 100% 14%;--nc: 217.24 75.772% 83.49%;--inc: 198.46 100% 9.6078%;--suc: 172.46 100% 10.078%;--wac: 40.61 100% 12.706%;--erc: 350.94 100% 14.235%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 198.44 93.204% 59.608%;--s: 234.45 89.474% 73.922%;--a: 328.85 85.621% 70%;--n: 217.24 32.584% 17.451%;--nf: 217.06 30.357% 21.961%;--b1: 222.22 47.368% 11.176%;--in: 198.46 90.204% 48.039%;--su: 172.46 66.008% 50.392%;--wa: 40.61 88.172% 63.529%;--er: 350.94 94.558% 71.176%}[data-theme=coffee]{color-scheme:dark;--pf: 29.583 66.667% 46.118%;--sf: 182.4 24.752% 15.843%;--af: 194.19 74.4% 19.608%;--nf: 300 20% 4.7059%;--b2: 306 18.519% 9.5294%;--b3: 306 18.519% 8.5765%;--pc: 29.583 100% 11.529%;--sc: 182.4 67.237% 83.961%;--ac: 194.19 100% 84.902%;--nc: 300 13.75% 81.176%;--inc: 171.15 100% 13.451%;--suc: 92.5 100% 12.471%;--wac: 43.125 100% 13.725%;--erc: 9.7561 100% 14.941%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 29.583 66.667% 57.647%;--s: 182.4 24.752% 19.804%;--a: 194.19 74.4% 24.51%;--n: 300 20% 5.8824%;--b1: 306 18.519% 10.588%;--bc: 36.667 8.3333% 42.353%;--in: 171.15 36.527% 67.255%;--su: 92.5 25% 62.353%;--wa: 43.125 100% 68.627%;--er: 9.7561 95.349% 74.706%}[data-theme=winter]{color-scheme:light;--pf: 211.79 100% 40.627%;--sf: 246.92 47.273% 34.51%;--af: 310.41 49.388% 41.569%;--nf: 217.02 92.157% 8%;--pc: 211.79 100% 90.157%;--sc: 246.92 100% 88.627%;--ac: 310.41 100% 90.392%;--nc: 217.02 100% 82%;--inc: 191.54 100% 15.608%;--suc: 181.5 100% 13.255%;--wac: 32.308 100% 16.706%;--erc: 0 100% 14.431%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 211.79 100% 50.784%;--s: 246.92 47.273% 43.137%;--a: 310.41 49.388% 51.961%;--n: 217.02 92.157% 10%;--b1: 0 0% 100%;--b2: 216.92 100% 97.451%;--b3: 218.82 43.59% 92.353%;--bc: 214.29 30.061% 31.961%;--in: 191.54 92.857% 78.039%;--su: 181.5 46.512% 66.275%;--wa: 32.308 61.905% 83.529%;--er: 0 63.38% 72.157%}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.alert{display:flex;width:100%;flex-direction:column;align-items:center;justify-content:space-between;gap:1rem;--tw-bg-opacity: 1;background-color:hsl(var(--b2, var(--b1)) / var(--tw-bg-opacity));padding:1rem;border-radius:var(--rounded-box, 1rem)}.alert>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}@media (min-width: 768px){.alert{flex-direction:row}.alert>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(0px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0px * var(--tw-space-y-reverse))}}.alert>:where(*){display:flex;align-items:center;gap:.5rem}.avatar{position:relative;display:inline-flex}.avatar>div{display:block;aspect-ratio:1 / 1;overflow:hidden}.avatar img{height:100%;width:100%;-o-object-fit:cover;object-fit:cover}.avatar.placeholder>div{display:flex;align-items:center;justify-content:center}.badge{display:inline-flex;align-items:center;justify-content:center;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1);height:1.25rem;font-size:.875rem;line-height:1.25rem;width:-moz-fit-content;width:fit-content;padding-left:.563rem;padding-right:.563rem;border-width:1px;--tw-border-opacity: 1;border-color:hsl(var(--n) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--n) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--nc) / var(--tw-text-opacity));border-radius:var(--rounded-badge, 1.9rem)}.btn{display:inline-flex;flex-shrink:0;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;flex-wrap:wrap;align-items:center;justify-content:center;border-color:transparent;border-color:hsl(var(--n) / var(--tw-border-opacity));text-align:center;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1);border-radius:var(--rounded-btn, .5rem);height:3rem;padding-left:1rem;padding-right:1rem;font-size:.875rem;line-height:1.25rem;line-height:1em;min-height:3rem;font-weight:600;text-transform:uppercase;text-transform:var(--btn-text-case, uppercase);text-decoration-line:none;border-width:var(--border-btn, 1px);animation:button-pop var(--animation-btn, .25s) ease-out;--tw-border-opacity: 1;--tw-bg-opacity: 1;background-color:hsl(var(--n) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--nc) / var(--tw-text-opacity))}.btn-disabled,.btn[disabled]{pointer-events:none}.btn-square{height:3rem;width:3rem;padding:0}.btn-circle{height:3rem;width:3rem;border-radius:9999px;padding:0}.btn.loading,.btn.loading:hover{pointer-events:none}.btn.loading:before{margin-right:.5rem;height:1rem;width:1rem;border-radius:9999px;border-width:2px;animation:spin 2s linear infinite;content:"";border-top-color:transparent;border-left-color:transparent;border-bottom-color:currentColor;border-right-color:currentColor}@media (prefers-reduced-motion: reduce){.btn.loading:before{animation:spin 10s linear infinite}}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.btn-group>input[type=radio].btn{-webkit-appearance:none;-moz-appearance:none;appearance:none}.btn-group>input[type=radio].btn:before{content:attr(data-title)}.card{position:relative;display:flex;flex-direction:column;border-radius:var(--rounded-box, 1rem)}.card:focus{outline:2px solid transparent;outline-offset:2px}.card-body{display:flex;flex:1 1 auto;flex-direction:column;padding:var(--padding-card, 2rem);gap:.5rem}.card-body :where(p){flex-grow:1}.card figure{display:flex;align-items:center;justify-content:center}.card.image-full{display:grid}.card.image-full:before{position:relative;content:"";z-index:10;--tw-bg-opacity: 1;background-color:hsl(var(--n) / var(--tw-bg-opacity));opacity:.75;border-radius:var(--rounded-box, 1rem)}.card.image-full:before,.card.image-full>*{grid-column-start:1;grid-row-start:1}.card.image-full>figure img{height:100%;-o-object-fit:cover;object-fit:cover}.card.image-full>.card-body{position:relative;z-index:20;--tw-text-opacity: 1;color:hsl(var(--nc) / var(--tw-text-opacity))}.checkbox{flex-shrink:0;--chkbg: var(--bc);--chkfg: var(--b1);height:1.5rem;width:1.5rem;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-width:1px;border-color:hsl(var(--bc) / var(--tw-border-opacity));--tw-border-opacity: .2;border-radius:var(--rounded-btn, .5rem)}.drawer{display:grid;width:100%;overflow:hidden;height:100vh;height:100dvh}.drawer.drawer-end{direction:rtl}.drawer.drawer-end>*{direction:ltr}.drawer.drawer-end>.drawer-toggle~.drawer-side>.drawer-overlay+*{--tw-translate-x: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));justify-self:end}.drawer.drawer-end>.drawer-toggle:checked~.drawer-side>.drawer-overlay+*{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}:where(.drawer-toggle ~ .drawer-content){height:inherit}.drawer-toggle{position:absolute;height:0px;width:0px;-webkit-appearance:none;-moz-appearance:none;appearance:none;opacity:0}.drawer-toggle~.drawer-content{z-index:0;grid-column-start:1;grid-row-start:1;overflow-y:auto;transition-property:all;transition-duration:.3s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.drawer-toggle~.drawer-side{grid-column-start:1;grid-row-start:1;display:grid;max-height:100vh;overflow-x:hidden}.drawer-toggle~.drawer-side>.drawer-overlay{visibility:hidden;grid-column-start:1;grid-row-start:1;opacity:0;cursor:pointer;--tw-bg-opacity: 1;background-color:hsl(var(--nf, var(--n)) / var(--tw-bg-opacity));transition-property:all;transition-duration:.3s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.drawer-toggle~.drawer-side>.drawer-overlay+*{z-index:10;grid-column-start:1;grid-row-start:1;--tw-translate-x: -100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));transition-property:all;transition-duration:.3s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.drawer-toggle:checked~.drawer-side{isolation:isolate;overflow-y:auto;overflow-x:hidden}.drawer-toggle:checked~.drawer-side>.drawer-overlay{visibility:visible;opacity:.999999;--tw-bg-opacity: .4}.drawer-toggle:checked~.drawer-side>.drawer-overlay+*{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}[dir=rtl] .drawer-toggle~.drawer-side>.drawer-overlay+*{--tw-translate-x: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}[dir=rtl] .drawer-toggle:checked~.drawer-side>.drawer-overlay+*{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}[dir=rtl] .drawer.drawer-end>.drawer-toggle~.drawer-side>.drawer-overlay+*{--tw-translate-x: -100%}[dir=rtl] .drawer.drawer-end>.drawer-toggle:checked~.drawer-side>.drawer-overlay+*{--tw-translate-x: 0px}[dir=rtl] .drawer.drawer-end>.drawer-toggle:checked~.drawer-content{--tw-translate-x: .5rem}@media (min-width: 1024px){.drawer-mobile{grid-auto-columns:max-content auto}.drawer-mobile>.drawer-toggle~.drawer-content{height:auto}@media (min-width: 1024px){.drawer-mobile>.drawer-toggle~.drawer-content{grid-column-start:2}.drawer-mobile>.drawer-toggle~.drawer-side>.drawer-overlay{visibility:visible}.drawer-mobile>.drawer-toggle~.drawer-side>.drawer-overlay+*{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.drawer-mobile.drawer-end>.drawer-toggle~.drawer-content{grid-column-start:1}.drawer-mobile.drawer-end>.drawer-toggle~.drawer-side{grid-column-start:2}.drawer-mobile.drawer-end>.drawer-toggle~.drawer-side>.drawer-overlay{visibility:visible}.drawer-mobile.drawer-end>.drawer-toggle~.drawer-side>.drawer-overlay+*{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}}.drawer-mobile>.drawer-toggle~.drawer-side{overflow-y:auto}.drawer-mobile.drawer-end{grid-auto-columns:auto max-content;direction:ltr}.drawer-mobile.drawer-end>.drawer-toggle~.drawer-content{height:auto}.drawer-mobile.drawer-end>.drawer-toggle~.drawer-side{overflow-y:auto}.drawer-mobile>.drawer-toggle:checked~.drawer-content{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}}.dropdown{position:relative;display:inline-block}.dropdown>*:focus{outline:2px solid transparent;outline-offset:2px}.dropdown .dropdown-content{visibility:hidden;position:absolute;z-index:50;opacity:0;transform-origin:top;--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.dropdown-end .dropdown-content{right:0px}.dropdown-left .dropdown-content{top:0px;right:100%;bottom:auto;transform-origin:right}.dropdown-right .dropdown-content{left:100%;top:0px;bottom:auto;transform-origin:left}.dropdown-bottom .dropdown-content{bottom:auto;top:100%;transform-origin:top}.dropdown-top .dropdown-content{bottom:100%;top:auto;transform-origin:bottom}.dropdown-end.dropdown-right .dropdown-content,.dropdown-end.dropdown-left .dropdown-content{bottom:0px;top:auto}.dropdown.dropdown-open .dropdown-content,.dropdown.dropdown-hover:hover .dropdown-content,.dropdown:not(.dropdown-hover):focus .dropdown-content,.dropdown:not(.dropdown-hover):focus-within .dropdown-content{visibility:visible;opacity:1}.footer{display:grid;width:100%;grid-auto-flow:row;place-items:start;row-gap:2.5rem;-moz-column-gap:1rem;column-gap:1rem;font-size:.875rem;line-height:1.25rem}.footer>*{display:grid;place-items:start;gap:.5rem}.footer-center{place-items:center;text-align:center}.footer-center>*{place-items:center}@media (min-width: 48rem){.footer{grid-auto-flow:column}.footer-center{grid-auto-flow:row dense}}.form-control{display:flex;flex-direction:column}.label{display:flex;-webkit-user-select:none;-moz-user-select:none;user-select:none;align-items:center;justify-content:space-between;padding:.5rem .25rem}.hero{display:grid;width:100%;place-items:center;background-size:cover;background-position:center}.hero>*{grid-column-start:1;grid-row-start:1}.hero-content{z-index:0;display:flex;align-items:center;justify-content:center;max-width:80rem;gap:1rem;padding:1rem}.indicator{position:relative;display:inline-flex;width:-moz-max-content;width:max-content}.indicator :where(.indicator-item){z-index:1;position:absolute;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));white-space:nowrap}.input{flex-shrink:1;height:3rem;padding-left:1rem;padding-right:1rem;font-size:1rem;line-height:2;line-height:1.5rem;border-width:1px;border-color:hsl(var(--bc) / var(--tw-border-opacity));--tw-border-opacity: 0;--tw-bg-opacity: 1;background-color:hsl(var(--b1) / var(--tw-bg-opacity));border-radius:var(--rounded-btn, .5rem)}.input-group>.input{isolation:isolate}.input-group>*,.input-group>.input,.input-group>.textarea,.input-group>.select{border-radius:0}.link{cursor:pointer;text-decoration-line:underline}.link-hover{text-decoration-line:none}.link-hover:hover{text-decoration-line:underline}.menu{display:flex;flex-direction:column;flex-wrap:wrap}.menu.horizontal{display:inline-flex;flex-direction:row}.menu.horizontal :where(li){flex-direction:row}:where(.menu li){position:relative;display:flex;flex-shrink:0;flex-direction:column;flex-wrap:wrap;align-items:stretch}.menu :where(li:not(.menu-title))>:where(*:not(ul)){display:flex}.menu :where(li:not(.disabled):not(.menu-title))>:where(*:not(ul)){cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;align-items:center;outline:2px solid transparent;outline-offset:2px}.menu>:where(li > *:not(ul):focus){outline:2px solid transparent;outline-offset:2px}.menu>:where(li.disabled > *:not(ul):focus){cursor:auto}.menu>:where(li) :where(ul){display:flex;flex-direction:column;align-items:stretch}.menu>:where(li)>:where(ul){position:absolute;display:none;top:initial;left:100%;border-top-left-radius:inherit;border-top-right-radius:inherit;border-bottom-right-radius:inherit;border-bottom-left-radius:inherit}.menu>:where(li:hover)>:where(ul){display:flex}.menu>:where(li:focus)>:where(ul){display:flex}.mockup-code{position:relative;overflow:hidden;overflow-x:auto;min-width:18rem;--tw-bg-opacity: 1;background-color:hsl(var(--n) / var(--tw-bg-opacity));padding-top:1.25rem;padding-bottom:1.25rem;--tw-text-opacity: 1;color:hsl(var(--nc) / var(--tw-text-opacity));border-radius:var(--rounded-box, 1rem)}.mockup-code pre[data-prefix]:before{content:attr(data-prefix);display:inline-block;text-align:right;width:2rem;opacity:.5}.modal{pointer-events:none;visibility:hidden;position:fixed;top:0px;right:0px;bottom:0px;left:0px;display:flex;justify-content:center;opacity:0;z-index:999;background-color:hsl(var(--nf, var(--n)) / var(--tw-bg-opacity));--tw-bg-opacity: .4;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-property:transform,opacity,visibility;overflow-y:hidden;overscroll-behavior:contain}:where(.modal){align-items:center}.modal-box{max-height:calc(100vh - 5em);--tw-bg-opacity: 1;background-color:hsl(var(--b1) / var(--tw-bg-opacity));padding:1.5rem;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1);width:91.666667%;max-width:32rem;--tw-scale-x: .9;--tw-scale-y: .9;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));border-top-left-radius:var(--rounded-box, 1rem);border-top-right-radius:var(--rounded-box, 1rem);border-bottom-left-radius:var(--rounded-box, 1rem);border-bottom-right-radius:var(--rounded-box, 1rem);box-shadow:0 25px 50px -12px #00000040;overflow-y:auto;overscroll-behavior:contain}.modal-open,.modal:target,.modal-toggle:checked+.modal{pointer-events:auto;visibility:visible;opacity:1}.modal-action{display:flex;margin-top:1.5rem;justify-content:flex-end}.modal-toggle{position:fixed;height:0px;width:0px;-webkit-appearance:none;-moz-appearance:none;appearance:none;opacity:0}.navbar{display:flex;align-items:center;padding:var(--navbar-padding, .5rem);min-height:4rem;width:100%}:where(.navbar > *){display:inline-flex;align-items:center}.navbar-start{width:50%;justify-content:flex-start}.navbar-center{flex-shrink:0}.navbar-end{width:50%;justify-content:flex-end}.progress{position:relative;width:100%;-webkit-appearance:none;-moz-appearance:none;appearance:none;overflow:hidden;height:.5rem;border-radius:var(--rounded-box, 1rem)}.select{display:inline-flex;flex-shrink:0;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;height:3rem;padding-left:1rem;padding-right:2.5rem;font-size:.875rem;line-height:1.25rem;line-height:2;min-height:3rem;border-width:1px;border-color:hsl(var(--bc) / var(--tw-border-opacity));--tw-border-opacity: 0;--tw-bg-opacity: 1;background-color:hsl(var(--b1) / var(--tw-bg-opacity));font-weight:600;border-radius:var(--rounded-btn, .5rem);background-image:linear-gradient(45deg,transparent 50%,currentColor 50%),linear-gradient(135deg,currentColor 50%,transparent 50%);background-position:calc(100% - 20px) calc(1px + 50%),calc(100% - 16px) calc(1px + 50%);background-size:4px 4px,4px 4px;background-repeat:no-repeat}.select[multiple]{height:auto}.stack{display:inline-grid;place-items:center;align-items:flex-end}.stack>*{grid-column-start:1;grid-row-start:1;transform:translateY(10%) scale(.9);z-index:1;width:100%;opacity:.6}.stack>*:nth-child(2){transform:translateY(5%) scale(.95);z-index:2;opacity:.8}.stack>*:nth-child(1){transform:translateY(0) scale(1);z-index:3;opacity:1}.swap{position:relative;display:inline-grid;-webkit-user-select:none;-moz-user-select:none;user-select:none;place-content:center;cursor:pointer}.swap>*{grid-column-start:1;grid-row-start:1;transition-duration:.3s;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-property:transform,opacity}.swap input{-webkit-appearance:none;-moz-appearance:none;appearance:none}.swap .swap-on,.swap .swap-indeterminate,.swap input:indeterminate~.swap-on{opacity:0}.swap input:checked~.swap-off,.swap.swap-active .swap-off,.swap input:indeterminate~.swap-off{opacity:0}.swap input:checked~.swap-on,.swap-active .swap-on,.swap input:indeterminate~.swap-indeterminate{opacity:1}.table{position:relative;text-align:left}.table th:first-child{position:sticky;position:-webkit-sticky;left:0px;z-index:11}.textarea{flex-shrink:1;min-height:3rem;padding:.5rem 1rem;font-size:.875rem;line-height:1.25rem;line-height:2;border-width:1px;border-color:hsl(var(--bc) / var(--tw-border-opacity));--tw-border-opacity: 0;--tw-bg-opacity: 1;background-color:hsl(var(--b1) / var(--tw-bg-opacity));border-radius:var(--rounded-btn, .5rem)}.toast{position:fixed;display:flex;min-width:-moz-fit-content;min-width:fit-content;flex-direction:column;gap:.5rem;padding:1rem}.toggle{flex-shrink:0;--tglbg: hsl(var(--b1));--handleoffset: 1.5rem;--handleoffsetcalculator: calc(var(--handleoffset) * -1);--togglehandleborder: 0 0;height:1.5rem;width:3rem;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-width:1px;border-color:hsl(var(--bc) / var(--tw-border-opacity));--tw-border-opacity: .2;background-color:hsl(var(--bc) / var(--tw-bg-opacity));--tw-bg-opacity: .5;transition-duration:.3s;transition-timing-function:cubic-bezier(.4,0,.2,1);border-radius:var(--rounded-badge, 1.9rem);transition:background,box-shadow var(--animation-input, .2s) ease-in-out;box-shadow:var(--handleoffsetcalculator) 0 0 2px var(--tglbg) inset,0 0 0 2px var(--tglbg) inset,var(--togglehandleborder)}.alert-error{--tw-bg-opacity: 1;background-color:hsl(var(--er) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--erc, var(--nc)) / var(--tw-text-opacity))}.avatar-group :where(.avatar){overflow:hidden;border-radius:9999px;border-width:4px;--tw-border-opacity: 1;border-color:hsl(var(--b1) / var(--tw-border-opacity))}.badge-primary{--tw-border-opacity: 1;border-color:hsl(var(--p) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--p) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--pc) / var(--tw-text-opacity))}.badge-info{border-color:transparent;--tw-bg-opacity: 1;background-color:hsl(var(--in) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--inc, var(--nc)) / var(--tw-text-opacity))}.badge-success{border-color:transparent;--tw-bg-opacity: 1;background-color:hsl(var(--su) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--suc, var(--nc)) / var(--tw-text-opacity))}.badge-error{border-color:transparent;--tw-bg-opacity: 1;background-color:hsl(var(--er) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--erc, var(--nc)) / var(--tw-text-opacity))}.badge-outline.badge-primary{--tw-text-opacity: 1;color:hsl(var(--p) / var(--tw-text-opacity))}.badge-outline.badge-info{--tw-text-opacity: 1;color:hsl(var(--in) / var(--tw-text-opacity))}.badge-outline.badge-success{--tw-text-opacity: 1;color:hsl(var(--su) / var(--tw-text-opacity))}.badge-outline.badge-error{--tw-text-opacity: 1;color:hsl(var(--er) / var(--tw-text-opacity))}.btn-outline .badge{--tw-border-opacity: 1;border-color:hsl(var(--nf, var(--n)) / var(--tw-border-opacity));--tw-text-opacity: 1;color:hsl(var(--nc) / var(--tw-text-opacity))}.btn-outline.btn-primary .badge{--tw-border-opacity: 1;border-color:hsl(var(--p) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--p) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--pc) / var(--tw-text-opacity))}.btn-outline.btn-secondary .badge{--tw-border-opacity: 1;border-color:hsl(var(--s) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--s) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--sc) / var(--tw-text-opacity))}.btn-outline.btn-accent .badge{--tw-border-opacity: 1;border-color:hsl(var(--a) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--a) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--ac) / var(--tw-text-opacity))}.btn-outline .badge.outline{--tw-border-opacity: 1;border-color:hsl(var(--nf, var(--n)) / var(--tw-border-opacity));background-color:transparent}.btn-outline.btn-primary .badge-outline{--tw-border-opacity: 1;border-color:hsl(var(--p) / var(--tw-border-opacity));background-color:transparent;--tw-text-opacity: 1;color:hsl(var(--p) / var(--tw-text-opacity))}.btn-outline.btn-success .badge-outline{--tw-border-opacity: 1;border-color:hsl(var(--su) / var(--tw-border-opacity));background-color:transparent;--tw-text-opacity: 1;color:hsl(var(--su) / var(--tw-text-opacity))}.btn-outline.btn-error .badge-outline{--tw-border-opacity: 1;border-color:hsl(var(--er) / var(--tw-border-opacity));background-color:transparent;--tw-text-opacity: 1;color:hsl(var(--er) / var(--tw-text-opacity))}.btn-outline:hover .badge{--tw-border-opacity: 1;border-color:hsl(var(--b2, var(--b1)) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--b2, var(--b1)) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--bc) / var(--tw-text-opacity))}.btn-outline:hover .badge.outline{--tw-border-opacity: 1;border-color:hsl(var(--b2, var(--b1)) / var(--tw-border-opacity));--tw-text-opacity: 1;color:hsl(var(--nc) / var(--tw-text-opacity))}.btn-outline.btn-primary:hover .badge{--tw-border-opacity: 1;border-color:hsl(var(--pc) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--pc) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--p) / var(--tw-text-opacity))}.btn-outline.btn-primary:hover .badge.outline{--tw-border-opacity: 1;border-color:hsl(var(--pc) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--pf, var(--p)) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--pc) / var(--tw-text-opacity))}.btn-outline.btn-secondary:hover .badge{--tw-border-opacity: 1;border-color:hsl(var(--sc) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--sc) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--s) / var(--tw-text-opacity))}.btn-outline.btn-secondary:hover .badge.outline{--tw-border-opacity: 1;border-color:hsl(var(--sc) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--sf, var(--s)) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--sc) / var(--tw-text-opacity))}.btn-outline.btn-accent:hover .badge{--tw-border-opacity: 1;border-color:hsl(var(--ac) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--ac) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--a) / var(--tw-text-opacity))}.btn-outline.btn-accent:hover .badge.outline{--tw-border-opacity: 1;border-color:hsl(var(--ac) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--af, var(--a)) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--ac) / var(--tw-text-opacity))}.btm-nav>*:where(.active){border-top-width:2px;--tw-bg-opacity: 1;background-color:hsl(var(--b1) / var(--tw-bg-opacity))}.btm-nav>*.disabled,.btm-nav>*.disabled:hover,.btm-nav>*[disabled],.btm-nav>*[disabled]:hover{pointer-events:none;--tw-border-opacity: 0;background-color:hsl(var(--n) / var(--tw-bg-opacity));--tw-bg-opacity: .1;color:hsl(var(--bc) / var(--tw-text-opacity));--tw-text-opacity: .2}.btm-nav>* .label{font-size:1rem;line-height:1.5rem}.btn:active:hover,.btn:active:focus{animation:none;transform:scale(var(--btn-focus-scale, .95))}.btn:hover,.btn-active{--tw-border-opacity: 1;border-color:hsl(var(--nf, var(--n)) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--nf, var(--n)) / var(--tw-bg-opacity))}.btn:focus-visible{outline:2px solid hsl(var(--nf));outline-offset:2px}.btn-primary{--tw-border-opacity: 1;border-color:hsl(var(--p) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--p) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--pc) / var(--tw-text-opacity))}.btn-primary:hover,.btn-primary.btn-active{--tw-border-opacity: 1;border-color:hsl(var(--pf, var(--p)) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--pf, var(--p)) / var(--tw-bg-opacity))}.btn-primary:focus-visible{outline:2px solid hsl(var(--p))}.btn-success{--tw-border-opacity: 1;border-color:hsl(var(--su) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--su) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--suc, var(--nc)) / var(--tw-text-opacity))}.btn-success:hover,.btn-success.btn-active{--tw-border-opacity: 1;border-color:hsl(var(--su) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--su) / var(--tw-bg-opacity))}.btn-success:focus-visible{outline:2px solid hsl(var(--su))}.btn-error{--tw-border-opacity: 1;border-color:hsl(var(--er) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--er) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--erc, var(--nc)) / var(--tw-text-opacity))}.btn-error:hover,.btn-error.btn-active{--tw-border-opacity: 1;border-color:hsl(var(--er) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--er) / var(--tw-bg-opacity))}.btn-error:focus-visible{outline:2px solid hsl(var(--er))}.btn.glass:hover,.btn.glass.btn-active{--glass-opacity: 25%;--glass-border-opacity: 15%}.btn.glass:focus-visible{outline:2px solid currentColor}.btn-ghost{border-width:1px;border-color:transparent;background-color:transparent;color:currentColor}.btn-ghost:hover,.btn-ghost.btn-active{--tw-border-opacity: 0;background-color:hsl(var(--bc) / var(--tw-bg-opacity));--tw-bg-opacity: .2}.btn-ghost:focus-visible{outline:2px solid currentColor}.btn-outline.btn-primary{--tw-text-opacity: 1;color:hsl(var(--p) / var(--tw-text-opacity))}.btn-outline.btn-primary:hover,.btn-outline.btn-primary.btn-active{--tw-border-opacity: 1;border-color:hsl(var(--pf, var(--p)) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--pf, var(--p)) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--pc) / var(--tw-text-opacity))}.btn-outline.btn-success{--tw-text-opacity: 1;color:hsl(var(--su) / var(--tw-text-opacity))}.btn-outline.btn-success:hover,.btn-outline.btn-success.btn-active{--tw-border-opacity: 1;border-color:hsl(var(--su) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--su) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--suc, var(--nc)) / var(--tw-text-opacity))}.btn-outline.btn-error{--tw-text-opacity: 1;color:hsl(var(--er) / var(--tw-text-opacity))}.btn-outline.btn-error:hover,.btn-outline.btn-error.btn-active{--tw-border-opacity: 1;border-color:hsl(var(--er) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--er) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--erc, var(--nc)) / var(--tw-text-opacity))}.btn-disabled,.btn-disabled:hover,.btn[disabled],.btn[disabled]:hover{--tw-border-opacity: 0;background-color:hsl(var(--n) / var(--tw-bg-opacity));--tw-bg-opacity: .2;color:hsl(var(--bc) / var(--tw-text-opacity));--tw-text-opacity: .2}.btn.loading.btn-square:before,.btn.loading.btn-circle:before{margin-right:0}.btn.loading.btn-xl:before,.btn.loading.btn-lg:before{height:1.25rem;width:1.25rem}.btn.loading.btn-sm:before,.btn.loading.btn-xs:before{height:.75rem;width:.75rem}.btn-group>input[type=radio]:checked.btn,.btn-group>.btn-active{--tw-border-opacity: 1;border-color:hsl(var(--p) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--p) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--pc) / var(--tw-text-opacity))}.btn-group>input[type=radio]:checked.btn:focus-visible,.btn-group>.btn-active:focus-visible{outline:2px solid hsl(var(--p))}@keyframes button-pop{0%{transform:scale(var(--btn-focus-scale, .95))}40%{transform:scale(1.02)}to{transform:scale(1)}}.card :where(figure:first-child){overflow:hidden;border-start-start-radius:inherit;border-start-end-radius:inherit;border-end-start-radius:unset;border-end-end-radius:unset}.card :where(figure:last-child){overflow:hidden;border-start-start-radius:unset;border-start-end-radius:unset;border-end-start-radius:inherit;border-end-end-radius:inherit}.card:focus-visible{outline:2px solid currentColor;outline-offset:2px}.card.bordered{border-width:1px;--tw-border-opacity: 1;border-color:hsl(var(--b2, var(--b1)) / var(--tw-border-opacity))}.card.compact .card-body{padding:1rem;font-size:.875rem;line-height:1.25rem}.card.image-full :where(figure){overflow:hidden;border-radius:inherit}.checkbox:focus-visible{outline:2px solid hsl(var(--bc));outline-offset:2px}.checkbox:checked,.checkbox[checked=true],.checkbox[aria-checked=true]{--tw-bg-opacity: 1;background-color:hsl(var(--bc) / var(--tw-bg-opacity));background-repeat:no-repeat;animation:checkmark var(--animation-input, .2s) ease-in-out;background-image:linear-gradient(-45deg,transparent 65%,hsl(var(--chkbg)) 65.99%),linear-gradient(45deg,transparent 75%,hsl(var(--chkbg)) 75.99%),linear-gradient(-45deg,hsl(var(--chkbg)) 40%,transparent 40.99%),linear-gradient(45deg,hsl(var(--chkbg)) 30%,hsl(var(--chkfg)) 30.99%,hsl(var(--chkfg)) 40%,transparent 40.99%),linear-gradient(-45deg,hsl(var(--chkfg)) 50%,hsl(var(--chkbg)) 50.99%)}.checkbox:indeterminate{--tw-bg-opacity: 1;background-color:hsl(var(--bc) / var(--tw-bg-opacity));background-repeat:no-repeat;animation:checkmark var(--animation-input, .2s) ease-in-out;background-image:linear-gradient(90deg,transparent 80%,hsl(var(--chkbg)) 80%),linear-gradient(-90deg,transparent 80%,hsl(var(--chkbg)) 80%),linear-gradient(0deg,hsl(var(--chkbg)) 43%,hsl(var(--chkfg)) 43%,hsl(var(--chkfg)) 57%,hsl(var(--chkbg)) 57%)}.checkbox:disabled{cursor:not-allowed;border-color:transparent;--tw-bg-opacity: 1;background-color:hsl(var(--bc) / var(--tw-bg-opacity));opacity:.2}@keyframes checkmark{0%{background-position-y:5px}50%{background-position-y:-2px}to{background-position-y:0}}[dir=rtl] .checkbox:checked,[dir=rtl] .checkbox[checked=true],[dir=rtl] .checkbox[aria-checked=true]{background-image:linear-gradient(45deg,transparent 65%,hsl(var(--chkbg)) 65.99%),linear-gradient(-45deg,transparent 75%,hsl(var(--chkbg)) 75.99%),linear-gradient(45deg,hsl(var(--chkbg)) 40%,transparent 40.99%),linear-gradient(-45deg,hsl(var(--chkbg)) 30%,hsl(var(--chkfg)) 30.99%,hsl(var(--chkfg)) 40%,transparent 40.99%),linear-gradient(45deg,hsl(var(--chkfg)) 50%,hsl(var(--chkbg)) 50.99%)}.drawer.drawer-end>.drawer-toggle:checked~.drawer-content{--tw-translate-x: -.5rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.drawer-toggle:checked~.drawer-content{--tw-translate-x: .5rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.drawer-toggle:focus-visible~.drawer-content .drawer-button{outline:2px solid hsl(var(--nf));outline-offset:2px}.drawer-toggle:focus-visible~.drawer-content .drawer-button.btn-primary{outline:2px solid hsl(var(--p))}.drawer-toggle:focus-visible~.drawer-content .drawer-button.btn-secondary{outline:2px solid hsl(var(--s))}.drawer-toggle:focus-visible~.drawer-content .drawer-button.btn-accent{outline:2px solid hsl(var(--a))}.drawer-toggle:focus-visible~.drawer-content .drawer-button.btn-info{outline:2px solid hsl(var(--in))}.drawer-toggle:focus-visible~.drawer-content .drawer-button.btn-success{outline:2px solid hsl(var(--su))}.drawer-toggle:focus-visible~.drawer-content .drawer-button.btn-warning{outline:2px solid hsl(var(--wa))}.drawer-toggle:focus-visible~.drawer-content .drawer-button.btn-error{outline:2px solid hsl(var(--er))}.drawer-toggle:focus-visible~.drawer-content .drawer-button.glass{outline:2px solid currentColor}.drawer-toggle:focus-visible~.drawer-content .drawer-button.btn-ghost{outline:2px solid currentColor}.drawer-toggle:focus-visible~.drawer-content .drawer-button.btn-link{outline:2px solid currentColor}.dropdown.dropdown-open .dropdown-content,.dropdown.dropdown-hover:hover .dropdown-content,.dropdown:focus .dropdown-content,.dropdown:focus-within .dropdown-content{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.label-text{font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:hsl(var(--bc) / var(--tw-text-opacity))}.label-text-alt{font-size:.75rem;line-height:1rem;--tw-text-opacity: 1;color:hsl(var(--bc) / var(--tw-text-opacity))}.label a:hover{--tw-text-opacity: 1;color:hsl(var(--bc) / var(--tw-text-opacity))}.input[list]::-webkit-calendar-picker-indicator{line-height:1em}.input-bordered{--tw-border-opacity: .2}.input:focus{outline:2px solid hsla(var(--bc) / .2);outline-offset:2px}.input-primary{--tw-border-opacity: 1;border-color:hsl(var(--p) / var(--tw-border-opacity))}.input-primary:focus{outline:2px solid hsl(var(--p))}.input-warning{--tw-border-opacity: 1;border-color:hsl(var(--wa) / var(--tw-border-opacity))}.input-warning:focus{outline:2px solid hsl(var(--wa))}.input-disabled,.input[disabled]{cursor:not-allowed;--tw-border-opacity: 1;border-color:hsl(var(--b2, var(--b1)) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--b2, var(--b1)) / var(--tw-bg-opacity));--tw-text-opacity: .2}.input-disabled::-moz-placeholder,.input[disabled]::-moz-placeholder{color:hsl(var(--bc) / var(--tw-placeholder-opacity));--tw-placeholder-opacity: .2}.input-disabled::placeholder,.input[disabled]::placeholder{color:hsl(var(--bc) / var(--tw-placeholder-opacity));--tw-placeholder-opacity: .2}.link:focus{outline:2px solid transparent;outline-offset:2px}.link:focus-visible{outline:2px solid currentColor;outline-offset:2px}.menu.horizontal>li.bordered>a,.menu.horizontal>li.bordered>button,.menu.horizontal>li.bordered>span{border-left-width:0px;border-bottom-width:4px;--tw-border-opacity: 1;border-color:hsl(var(--p) / var(--tw-border-opacity))}.menu[class*=" px-"]:not(.menu[class*=" px-0"]) li>*,.menu[class^=px-]:not(.menu[class^="px-0"]) li>*,.menu[class*=" p-"]:not(.menu[class*=" p-0"]) li>*,.menu[class^=p-]:not(.menu[class^="p-0"]) li>*{border-radius:var(--rounded-btn, .5rem)}.menu :where(li.bordered > *){border-left-width:4px;--tw-border-opacity: 1;border-color:hsl(var(--p) / var(--tw-border-opacity))}.menu :where(li)>:where(*:not(ul)){gap:.75rem;padding:.75rem 1rem;color:currentColor}.menu :where(li:not(.menu-title):not(:empty))>:where(*:not(ul):focus),.menu :where(li:not(.menu-title):not(:empty))>:where(*:not(ul):hover){background-color:hsl(var(--bc) / var(--tw-bg-opacity));--tw-bg-opacity: .1}.menu :where(li:not(.menu-title):not(:empty))>:where(:not(ul).active),.menu :where(li:not(.menu-title):not(:empty))>:where(*:not(ul):active){--tw-bg-opacity: 1;background-color:hsl(var(--p) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--pc) / var(--tw-text-opacity))}.menu :where(li:empty){margin:.5rem 1rem;height:1px;background-color:hsl(var(--bc) / var(--tw-bg-opacity));--tw-bg-opacity: .1}.menu li.disabled>*{-webkit-user-select:none;-moz-user-select:none;user-select:none;color:hsl(var(--bc) / var(--tw-text-opacity));--tw-text-opacity: .2}.menu li.disabled>*:hover{background-color:transparent}.menu li.hover-bordered a{border-left-width:4px;border-color:transparent}.menu li.hover-bordered a:hover{--tw-border-opacity: 1;border-color:hsl(var(--p) / var(--tw-border-opacity))}.menu.compact li>a,.menu.compact li>span{padding-top:.5rem;padding-bottom:.5rem;font-size:.875rem;line-height:1.25rem}.menu .menu-title{font-size:.75rem;line-height:1rem;font-weight:700;opacity:.4}.menu .menu-title>*{padding-top:.25rem;padding-bottom:.25rem}.menu :where(li:not(.disabled))>:where(*:not(ul)){outline:2px solid transparent;outline-offset:2px;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.menu>:where(li:first-child){border-top-left-radius:inherit;border-top-right-radius:inherit;border-bottom-right-radius:unset;border-bottom-left-radius:unset}.menu>:where(li:first-child)>:where(:not(ul)){border-top-left-radius:inherit;border-top-right-radius:inherit;border-bottom-right-radius:unset;border-bottom-left-radius:unset}.menu>:where(li:last-child){border-top-left-radius:unset;border-top-right-radius:unset;border-bottom-right-radius:inherit;border-bottom-left-radius:inherit}.menu>:where(li:last-child)>:where(:not(ul)){border-top-left-radius:unset;border-top-right-radius:unset;border-bottom-right-radius:inherit;border-bottom-left-radius:inherit}.menu>:where(li)>:where(ul) :where(li){width:100%;white-space:nowrap}.menu>:where(li)>:where(ul) :where(li) :where(ul){padding-left:1rem}.menu>:where(li)>:where(ul) :where(li)>:where(:not(ul)){width:100%;white-space:nowrap}.menu>:where(li)>:where(ul)>:where(li:first-child){border-top-left-radius:inherit;border-top-right-radius:inherit;border-bottom-right-radius:unset;border-bottom-left-radius:unset}.menu>:where(li)>:where(ul)>:where(li:first-child)>:where(:not(ul)){border-top-left-radius:inherit;border-top-right-radius:inherit;border-bottom-right-radius:unset;border-bottom-left-radius:unset}.menu>:where(li)>:where(ul)>:where(li:last-child){border-top-left-radius:unset;border-top-right-radius:unset;border-bottom-right-radius:inherit;border-bottom-left-radius:inherit}.menu>:where(li)>:where(ul)>:where(li:last-child)>:where(:not(ul)){border-top-left-radius:unset;border-top-right-radius:unset;border-bottom-right-radius:inherit;border-bottom-left-radius:inherit}.mockup-code:before{content:"";margin-bottom:1rem;display:block;height:.75rem;width:.75rem;border-radius:9999px;opacity:.3;box-shadow:1.4em 0,2.8em 0,4.2em 0}.mockup-code pre{padding-right:1.25rem}.mockup-code pre:before{content:"";margin-right:2ch}.mockup-phone .display{overflow:hidden;border-radius:40px;margin-top:-25px}.modal-open .modal-box,.modal-toggle:checked+.modal .modal-box,.modal:target .modal-box{--tw-translate-y: 0px;--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.modal-action>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.progress::-moz-progress-bar{--tw-bg-opacity: 1;background-color:hsl(var(--n) / var(--tw-bg-opacity))}.progress-primary::-moz-progress-bar{--tw-bg-opacity: 1;background-color:hsl(var(--p) / var(--tw-bg-opacity))}.progress:indeterminate:after{--tw-bg-opacity: 1;background-color:hsl(var(--n) / var(--tw-bg-opacity));content:"";position:absolute;top:0px;bottom:0px;left:-40%;width:33.333333%;border-radius:var(--rounded-box, 1rem);animation:progress-loading 5s infinite ease-in-out}.progress-primary:indeterminate:after{--tw-bg-opacity: 1;background-color:hsl(var(--p) / var(--tw-bg-opacity))}.progress::-webkit-progress-bar{background-color:hsl(var(--n) / var(--tw-bg-opacity));--tw-bg-opacity: .2;border-radius:var(--rounded-box, 1rem)}.progress::-webkit-progress-value{--tw-bg-opacity: 1;background-color:hsl(var(--nf, var(--n)) / var(--tw-bg-opacity));border-radius:var(--rounded-box, 1rem)}.progress-primary::-webkit-progress-value{--tw-bg-opacity: 1;background-color:hsl(var(--p) / var(--tw-bg-opacity))}@keyframes progress-loading{50%{left:107%}}@keyframes radiomark{0%{box-shadow:0 0 0 12px hsl(var(--b1)) inset,0 0 0 12px hsl(var(--b1)) inset}50%{box-shadow:0 0 0 3px hsl(var(--b1)) inset,0 0 0 3px hsl(var(--b1)) inset}to{box-shadow:0 0 0 4px hsl(var(--b1)) inset,0 0 0 4px hsl(var(--b1)) inset}}@keyframes rating-pop{0%{transform:translateY(-.125em)}40%{transform:translateY(-.125em)}to{transform:translateY(0)}}.select-bordered{--tw-border-opacity: .2}.select:focus{outline:2px solid hsla(var(--bc) / .2);outline-offset:2px}.select-disabled,.select[disabled]{cursor:not-allowed;--tw-border-opacity: 1;border-color:hsl(var(--b2, var(--b1)) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--b2, var(--b1)) / var(--tw-bg-opacity));--tw-text-opacity: .2}.select-disabled::-moz-placeholder,.select[disabled]::-moz-placeholder{color:hsl(var(--bc) / var(--tw-placeholder-opacity));--tw-placeholder-opacity: .2}.select-disabled::placeholder,.select[disabled]::placeholder{color:hsl(var(--bc) / var(--tw-placeholder-opacity));--tw-placeholder-opacity: .2}.select-multiple,.select[multiple],.select[size].select:not([size="1"]){background-image:none;padding-right:1rem}[dir=rtl] .select{background-position:calc(0% + 12px) calc(1px + 50%),calc(0% + 16px) calc(1px + 50%)}.table :where(th,td){white-space:nowrap;padding:1rem;vertical-align:middle}.table tr.active th,.table tr.active td,.table tr.active:nth-child(even) th,.table tr.active:nth-child(even) td{--tw-bg-opacity: 1;background-color:hsl(var(--b3, var(--b2)) / var(--tw-bg-opacity))}.table tr.hover:hover th,.table tr.hover:hover td,.table tr.hover:nth-child(even):hover th,.table tr.hover:nth-child(even):hover td{--tw-bg-opacity: 1;background-color:hsl(var(--b3, var(--b2)) / var(--tw-bg-opacity))}.table:where(:not(.table-zebra)) :where(thead,tbody,tfoot) :where(tr:not(:last-child) :where(th,td)){border-bottom-width:1px;--tw-border-opacity: 1;border-color:hsl(var(--b2, var(--b1)) / var(--tw-border-opacity))}.table :where(thead,tfoot) :where(th,td){--tw-bg-opacity: 1;background-color:hsl(var(--b2, var(--b1)) / var(--tw-bg-opacity));font-size:.75rem;line-height:1rem;font-weight:700;text-transform:uppercase}.table :where(tbody th,tbody td){--tw-bg-opacity: 1;background-color:hsl(var(--b1) / var(--tw-bg-opacity))}:where(.table *:first-child) :where(*:first-child) :where(th,td):first-child{border-top-left-radius:.5rem}:where(.table *:first-child) :where(*:first-child) :where(th,td):last-child{border-top-right-radius:.5rem}:where(.table *:last-child) :where(*:last-child) :where(th,td):first-child{border-bottom-left-radius:.5rem}:where(.table *:last-child) :where(*:last-child) :where(th,td):last-child{border-bottom-right-radius:.5rem}.textarea:focus{outline:2px solid hsla(var(--bc) / .2);outline-offset:2px}.textarea-disabled,.textarea[disabled]{cursor:not-allowed;--tw-border-opacity: 1;border-color:hsl(var(--b2, var(--b1)) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--b2, var(--b1)) / var(--tw-bg-opacity));--tw-text-opacity: .2}.textarea-disabled::-moz-placeholder,.textarea[disabled]::-moz-placeholder{color:hsl(var(--bc) / var(--tw-placeholder-opacity));--tw-placeholder-opacity: .2}.textarea-disabled::placeholder,.textarea[disabled]::placeholder{color:hsl(var(--bc) / var(--tw-placeholder-opacity));--tw-placeholder-opacity: .2}.toast>*{animation:toast-pop .25s ease-out}@keyframes toast-pop{0%{transform:scale(.9);opacity:0}to{transform:scale(1);opacity:1}}[dir=rtl] .toggle{--handleoffsetcalculator: calc(var(--handleoffset) * 1)}.toggle:focus-visible{outline:2px solid hsl(var(--bc));outline-offset:2px}.toggle:checked,.toggle[checked=true],.toggle[aria-checked=true]{--handleoffsetcalculator: var(--handleoffset);--tw-border-opacity: 1;--tw-bg-opacity: 1}[dir=rtl] .toggle:checked,[dir=rtl] .toggle[checked=true],[dir=rtl] .toggle[aria-checked=true]{--handleoffsetcalculator: calc(var(--handleoffset) * -1)}.toggle:indeterminate{--tw-border-opacity: 1;--tw-bg-opacity: 1;box-shadow:calc(var(--handleoffset) / 2) 0 0 2px var(--tglbg) inset,calc(var(--handleoffset) / -2) 0 0 2px var(--tglbg) inset,0 0 0 2px var(--tglbg) inset}[dir=rtl] .toggle:indeterminate{box-shadow:calc(var(--handleoffset) / 2) 0 0 2px var(--tglbg) inset,calc(var(--handleoffset) / -2) 0 0 2px var(--tglbg) inset,0 0 0 2px var(--tglbg) inset}.toggle-primary:focus-visible{outline:2px solid hsl(var(--p))}.toggle-primary:checked,.toggle-primary[checked=true],.toggle-primary[aria-checked=true]{border-color:hsl(var(--p) / var(--tw-border-opacity));--tw-border-opacity: .1;--tw-bg-opacity: 1;background-color:hsl(var(--p) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--pc) / var(--tw-text-opacity))}.toggle:disabled{cursor:not-allowed;--tw-border-opacity: 1;border-color:hsl(var(--bc) / var(--tw-border-opacity));background-color:transparent;opacity:.3;--togglehandleborder: 0 0 0 3px hsl(var(--bc)) inset, var(--handleoffsetcalculator) 0 0 3px hsl(var(--bc)) inset}.rounded-box{border-radius:var(--rounded-box, 1rem)}.rounded-t-box{border-top-left-radius:var(--rounded-box, 1rem);border-top-right-radius:var(--rounded-box, 1rem)}.rounded-b-box{border-bottom-left-radius:var(--rounded-box, 1rem);border-bottom-right-radius:var(--rounded-box, 1rem)}.badge-xs{height:.75rem;font-size:.75rem;line-height:.75rem;padding-left:.313rem;padding-right:.313rem}.btm-nav-xs>*:where(.active){border-top-width:1px}.btm-nav-sm>*:where(.active){border-top-width:2px}.btm-nav-md>*:where(.active){border-top-width:2px}.btm-nav-lg>*:where(.active){border-top-width:4px}.btn-square:where(.btn-xs){height:1.5rem;width:1.5rem;padding:0}.btn-square:where(.btn-sm){height:2rem;width:2rem;padding:0}.btn-square:where(.btn-md){height:3rem;width:3rem;padding:0}.btn-square:where(.btn-lg){height:4rem;width:4rem;padding:0}.btn-circle:where(.btn-xs){height:1.5rem;width:1.5rem;border-radius:9999px;padding:0}.btn-circle:where(.btn-sm){height:2rem;width:2rem;border-radius:9999px;padding:0}.btn-circle:where(.btn-md){height:3rem;width:3rem;border-radius:9999px;padding:0}.btn-circle:where(.btn-lg){height:4rem;width:4rem;border-radius:9999px;padding:0}.indicator :where(.indicator-item){right:0px;left:auto;top:0px;bottom:auto;--tw-translate-x: 50%;--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.indicator :where(.indicator-item.indicator-start){right:auto;left:0px;--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.indicator :where(.indicator-item.indicator-center){right:50%;left:50%;--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.indicator :where(.indicator-item.indicator-end){right:0px;left:auto;--tw-translate-x: 50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.indicator :where(.indicator-item.indicator-bottom){top:auto;bottom:0px;--tw-translate-y: 50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.indicator :where(.indicator-item.indicator-middle){top:50%;bottom:50%;--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.indicator :where(.indicator-item.indicator-top){top:0px;bottom:auto;--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}:where(.toast){right:0px;left:auto;top:auto;bottom:0px;--tw-translate-x: 0px;--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.toast:where(.toast-start){right:auto;left:0px;--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.toast:where(.toast-center){right:50%;left:50%;--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.toast:where(.toast-end){right:0px;left:auto;--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.toast:where(.toast-bottom){top:auto;bottom:0px;--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.toast:where(.toast-middle){top:50%;bottom:auto;--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.toast:where(.toast-top){top:0px;bottom:auto;--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.avatar.online:before{content:"";position:absolute;z-index:10;display:block;border-radius:9999px;--tw-bg-opacity: 1;background-color:hsl(var(--su) / var(--tw-bg-opacity));width:15%;height:15%;top:7%;right:7%;box-shadow:0 0 0 2px hsl(var(--b1))}.avatar.offline:before{content:"";position:absolute;z-index:10;display:block;border-radius:9999px;--tw-bg-opacity: 1;background-color:hsl(var(--b3, var(--b2)) / var(--tw-bg-opacity));width:15%;height:15%;top:7%;right:7%;box-shadow:0 0 0 2px hsl(var(--b1))}.btn-group .btn:not(:first-child):not(:last-child),.btn-group.btn-group-horizontal .btn:not(:first-child):not(:last-child){border-radius:0}.btn-group .btn:first-child:not(:last-child),.btn-group.btn-group-horizontal .btn:first-child:not(:last-child){margin-left:-1px;margin-top:-0px;border-top-left-radius:var(--rounded-btn, .5rem);border-top-right-radius:0;border-bottom-left-radius:var(--rounded-btn, .5rem);border-bottom-right-radius:0}.btn-group .btn:last-child:not(:first-child),.btn-group.btn-group-horizontal .btn:last-child:not(:first-child){border-top-left-radius:0;border-top-right-radius:var(--rounded-btn, .5rem);border-bottom-left-radius:0;border-bottom-right-radius:var(--rounded-btn, .5rem)}.btn-group.btn-group-vertical .btn:first-child:not(:last-child){margin-left:-0px;margin-top:-1px;border-top-left-radius:var(--rounded-btn, .5rem);border-top-right-radius:var(--rounded-btn, .5rem);border-bottom-left-radius:0;border-bottom-right-radius:0}.btn-group.btn-group-vertical .btn:last-child:not(:first-child){border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:var(--rounded-btn, .5rem);border-bottom-right-radius:var(--rounded-btn, .5rem)}.card-compact .card-body{padding:1rem;font-size:.875rem;line-height:1.25rem}.card-normal .card-body{padding:var(--padding-card, 2rem);font-size:1rem;line-height:1.5rem}.menu-compact :where(li > *){padding-top:.5rem;padding-bottom:.5rem;font-size:.875rem;line-height:1.25rem}.modal-bottom :where(.modal-box){width:100%;max-width:none;--tw-translate-y: 2.5rem;--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));border-bottom-right-radius:0;border-bottom-left-radius:0}.modal-middle :where(.modal-box){width:91.666667%;max-width:32rem;--tw-translate-y: 0px;--tw-scale-x: .9;--tw-scale-y: .9;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));border-bottom-left-radius:var(--rounded-box, 1rem);border-bottom-right-radius:var(--rounded-box, 1rem)}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.invisible{visibility:hidden}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-x-0{left:0px;right:0px}.inset-y-0{top:0px;bottom:0px}.bottom-0{bottom:0px}.left-0{left:0px}.right-0{right:0px}.top-0{top:0px}.top-px{top:1px}.z-50{z-index:50}.col-span-5{grid-column:span 5 / span 5}.row-span-3{grid-row:span 3 / span 3}.row-start-1{grid-row-start:1}.m-1{margin:.25rem}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-6{margin-left:1.5rem;margin-right:1.5rem}.mx-auto{margin-left:auto;margin-right:auto}.-mt-px{margin-top:-1px}.mb-0{margin-bottom:0}.mb-2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}.ml-0{margin-left:0}.ml-1{margin-left:.25rem}.ml-4{margin-left:1rem}.ml-auto{margin-left:auto}.mr-0{margin-right:0}.mr-1{margin-right:.25rem}.mr-2{margin-right:.5rem}.mr-4{margin-right:1rem}.mr-auto{margin-right:auto}.mt-0{margin-top:0}.mt-1{margin-top:.25rem}.mt-16{margin-top:4rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.flow-root{display:flow-root}.grid{display:grid}.hidden{display:none}.h-10{height:2.5rem}.h-16{height:4rem}.h-3{height:.75rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-7{height:1.75rem}.h-\[70vh\]{height:70vh}.h-full{height:100%}.h-screen{height:100vh}.max-h-96{max-height:24rem}.min-h-screen{min-height:100vh}.w-10{width:2.5rem}.w-11\/12{width:91.666667%}.w-16{width:4rem}.w-2{width:.5rem}.w-3{width:.75rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-52{width:13rem}.w-6{width:1.5rem}.w-7{width:1.75rem}.w-80{width:20rem}.w-auto{width:auto}.w-full{width:100%}.min-w-0{min-width:0px}.max-w-4xl{max-width:56rem}.max-w-5xl{max-width:64rem}.max-w-7xl{max-width:80rem}.max-w-none{max-width:none}.max-w-sm{max-width:24rem}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.flex-none{flex:none}.flex-shrink-0,.shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.scale-100{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.grid-flow-col{grid-auto-flow:column}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.grid-rows-3{grid-template-rows:repeat(3,minmax(0,1fr))}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.self-center{align-self:center}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rounded{border-radius:.25rem}.rounded-3xl{border-radius:1.5rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-l-none{border-top-left-radius:0;border-bottom-left-radius:0}.border{border-width:1px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-r{border-right-width:1px}.border-base-200{--tw-border-opacity: 1;border-color:hsl(var(--b2, var(--b1)) / var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.border-gray-500{--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity))}.border-purple-400{--tw-border-opacity: 1;border-color:rgb(192 132 252 / var(--tw-border-opacity))}.bg-accent{--tw-bg-opacity: 1;background-color:hsl(var(--a) / var(--tw-bg-opacity))}.bg-base-100{--tw-bg-opacity: 1;background-color:hsl(var(--b1) / var(--tw-bg-opacity))}.bg-base-200{--tw-bg-opacity: 1;background-color:hsl(var(--b2, var(--b1)) / var(--tw-bg-opacity))}.bg-base-300{--tw-bg-opacity: 1;background-color:hsl(var(--b3, var(--b2)) / var(--tw-bg-opacity))}.bg-black{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.bg-gray-800{--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}.bg-neutral{--tw-bg-opacity: 1;background-color:hsl(var(--n) / var(--tw-bg-opacity))}.bg-primary{--tw-bg-opacity: 1;background-color:hsl(var(--p) / var(--tw-bg-opacity))}.bg-red-50{--tw-bg-opacity: 1;background-color:rgb(254 242 242 / var(--tw-bg-opacity))}.bg-red-500{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity))}.bg-red-800{--tw-bg-opacity: 1;background-color:rgb(153 27 27 / var(--tw-bg-opacity))}.bg-secondary{--tw-bg-opacity: 1;background-color:hsl(var(--s) / var(--tw-bg-opacity))}.bg-slate-700{--tw-bg-opacity: 1;background-color:rgb(51 65 85 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.from-gray-700{--tw-gradient-from: #374151;--tw-gradient-to: rgb(55 65 81 / 0);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-gray-700\/50{--tw-gradient-from: rgb(55 65 81 / .5);--tw-gradient-to: rgb(55 65 81 / 0);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.via-transparent{--tw-gradient-to: rgb(0 0 0 / 0);--tw-gradient-stops: var(--tw-gradient-from), transparent, var(--tw-gradient-to)}.bg-center{background-position:center}.fill-current{fill:currentColor}.stroke-current{stroke:currentColor}.stroke-gray-400{stroke:#9ca3af}.stroke-gray-600{stroke:#4b5563}.stroke-red-500{stroke:#ef4444}.object-cover{-o-object-fit:cover;object-fit:cover}.p-1{padding:.25rem}.p-10{padding:2.5rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.px-0{padding-left:0;padding-right:0}.px-2{padding-left:.5rem;padding-right:.5rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pb-0{padding-bottom:0}.pb-10{padding-bottom:2.5rem}.pb-12{padding-bottom:3rem}.pb-2{padding-bottom:.5rem}.pb-4{padding-bottom:1rem}.pl-0{padding-left:0}.pl-10{padding-left:2.5rem}.pl-14{padding-left:3.5rem}.pl-3{padding-left:.75rem}.pl-4{padding-left:1rem}.pl-6{padding-left:1.5rem}.pr-0{padding-right:0}.pr-10{padding-right:2.5rem}.pr-16{padding-right:4rem}.pr-4{padding-right:1rem}.pr-6{padding-right:1.5rem}.pt-0{padding-top:0}.pt-12{padding-top:3rem}.pt-2{padding-top:.5rem}.pt-4{padding-top:1rem}.pt-5{padding-top:1.25rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.font-sans{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-5xl{font-size:3rem;line-height:1}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.lowercase{text-transform:lowercase}.capitalize{text-transform:capitalize}.normal-case{text-transform:none}.leading-relaxed{line-height:1.625}.text-base-content{--tw-text-opacity: 1;color:hsl(var(--bc) / var(--tw-text-opacity))}.text-gray-100{--tw-text-opacity: 1;color:rgb(243 244 246 / var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.text-gray-800{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.text-neutral-content{--tw-text-opacity: 1;color:hsl(var(--nc) / var(--tw-text-opacity))}.text-primary{--tw-text-opacity: 1;color:hsl(var(--p) / var(--tw-text-opacity))}.text-primary-content{--tw-text-opacity: 1;color:hsl(var(--pc) / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.underline{text-decoration-line:underline}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.opacity-60{opacity:.6}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-2xl{--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-gray-500\/20{--tw-shadow-color: rgb(107 114 128 / .2);--tw-shadow: var(--tw-shadow-colored)}.outline-base-content{outline-color:hsl(var(--bc))}.ring-white{--tw-ring-opacity: 1;--tw-ring-color: rgb(255 255 255 / var(--tw-ring-opacity))}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.btn-outline .focus\:outline:focus.badge{--tw-border-opacity: 1;border-color:hsl(var(--nf, var(--n)) / var(--tw-border-opacity));background-color:transparent}.btn-outline:hover .focus\:outline:focus.badge{--tw-border-opacity: 1;border-color:hsl(var(--b2, var(--b1)) / var(--tw-border-opacity));--tw-text-opacity: 1;color:hsl(var(--nc) / var(--tw-text-opacity))}.btn-outline.btn-primary:hover .focus\:outline:focus.badge{--tw-border-opacity: 1;border-color:hsl(var(--pc) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--pf, var(--p)) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--pc) / var(--tw-text-opacity))}.btn-outline.btn-secondary:hover .focus\:outline:focus.badge{--tw-border-opacity: 1;border-color:hsl(var(--sc) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--sf, var(--s)) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--sc) / var(--tw-text-opacity))}.btn-outline.btn-accent:hover .focus\:outline:focus.badge{--tw-border-opacity: 1;border-color:hsl(var(--ac) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--af, var(--a)) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--ac) / var(--tw-text-opacity))}.selection\:bg-red-500 *::-moz-selection{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity))}.selection\:bg-red-500 *::selection{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity))}.selection\:text-white *::-moz-selection{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.selection\:text-white *::selection{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.selection\:bg-red-500::-moz-selection{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity))}.selection\:bg-red-500::selection{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity))}.selection\:text-white::-moz-selection{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.selection\:text-white::selection{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.last\:mr-0:last-child{margin-right:0}.hover\:bg-gray-700:hover{--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}.hover\:text-gray-700:hover{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.hover\:text-gray-900:hover{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.focus\:rounded-sm:focus{border-radius:.125rem}.focus\:border-indigo-600:focus{--tw-border-opacity: 1;border-color:rgb(79 70 229 / var(--tw-border-opacity))}.focus\:outline:focus{outline-style:solid}.focus\:outline-2:focus{outline-width:2px}.focus\:outline-red-500:focus{outline-color:#ef4444}.focus\:ring-indigo-600:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(79 70 229 / var(--tw-ring-opacity))}.group:hover .group-hover\:stroke-gray-600{stroke:#4b5563}@media (prefers-reduced-motion: no-preference){.motion-safe\:hover\:scale-\[1\.01\]:hover{--tw-scale-x: 1.01;--tw-scale-y: 1.01;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}}@media (prefers-color-scheme: dark){.dark\:bg-gray-800\/50{background-color:#1f293780}.dark\:bg-gray-900{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}.dark\:bg-red-800\/20{background-color:#991b1b33}.dark\:bg-gradient-to-bl{background-image:linear-gradient(to bottom left,var(--tw-gradient-stops))}.dark\:stroke-gray-600{stroke:#4b5563}.dark\:text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.dark\:text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.dark\:shadow-none{--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.dark\:ring-1{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.dark\:ring-inset{--tw-ring-inset: inset}.dark\:ring-white\/5{--tw-ring-color: rgb(255 255 255 / .05)}.dark\:hover\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.group:hover .dark\:group-hover\:stroke-gray-400{stroke:#9ca3af}}@media (min-width: 640px){.sm\:fixed{position:fixed}.sm\:right-0{right:0px}.sm\:top-0{top:0px}.sm\:ml-0{margin-left:0}.sm\:mt-0{margin-top:0}.sm\:inline-block{display:inline-block}.sm\:flex{display:flex}.sm\:items-center{align-items:center}.sm\:justify-end{justify-content:flex-end}.sm\:justify-center{justify-content:center}.sm\:justify-between{justify-content:space-between}.sm\:space-x-5>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1.25rem * var(--tw-space-x-reverse));margin-left:calc(1.25rem * calc(1 - var(--tw-space-x-reverse)))}.sm\:space-x-6>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1.5rem * var(--tw-space-x-reverse));margin-left:calc(1.5rem * calc(1 - var(--tw-space-x-reverse)))}.sm\:px-6{padding-left:1.5rem;padding-right:1.5rem}.sm\:py-16{padding-top:4rem;padding-bottom:4rem}.sm\:py-2{padding-top:.5rem;padding-bottom:.5rem}.sm\:pl-0{padding-left:0}.sm\:text-left{text-align:left}.sm\:text-right{text-align:right}.sm\:text-sm{font-size:.875rem;line-height:1.25rem}}@media (min-width: 768px){.md\:inline{display:inline}.md\:h-6{height:1.5rem}.md\:w-6{width:1.5rem}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:place-self-center{place-self:center}.md\:justify-self-end{justify-self:end}.md\:px-4{padding-left:1rem;padding-right:1rem}}@media (min-width: 1024px){.lg\:block{display:block}.lg\:flex{display:flex}.lg\:hidden{display:none}.lg\:flex-none{flex:none}.lg\:flex-row-reverse{flex-direction:row-reverse}.lg\:gap-8{gap:2rem}.lg\:p-8{padding:2rem}.lg\:px-8{padding-left:2rem;padding-right:2rem}.lg\:py-20{padding-top:5rem;padding-bottom:5rem}.lg\:text-left{text-align:left}} diff --git a/Publish/Public/assets/app-a2b59f39.js b/Publish/Public/assets/app-a2b59f39.js new file mode 100644 index 0000000..a97ab5d --- /dev/null +++ b/Publish/Public/assets/app-a2b59f39.js @@ -0,0 +1 @@ +import{b as r,S as t,a}from"./sweetalert2-b81e8371.js";window.axios=r;window.axios.defaults.headers.common["X-Requested-With"]="XMLHttpRequest";window.Swal=t;const c=async function(i){const o=document.getElementById(i);try{await a.get("/deploy/info").then(n=>{let e="";n.data.data.forEach(s=>{e+=`
${s.text}
`}),o.innerHTML=e})}catch{t.fire({icon:"error",title:"Oops...",text:"Something went wrong getting the deploy info!😭"})}};window.deploySite=async function(i,o){const n=document.getElementById(o);n.innerHTML="";try{t.fire({icon:"success",title:"Success!",text:"Site deployment started!🚀"});const e=setInterval(()=>{c(o)},1e3);await a.post("/deploy/start",{mode:i}).then(s=>{t.fire({icon:"success",title:"Success!",text:"Site deployment completed!🚀"}),setTimeout(()=>{clearInterval(e)},1e3)})}catch{t.fire({icon:"error",title:"Oops...",text:"Something went wrong deploying the site!😭"})}setTimeout(()=>{clearInterval(codeFeedbak)},1e3)}; diff --git a/Publish/Public/assets/grape-b65eca05.js b/Publish/Public/assets/grape-b65eca05.js new file mode 100644 index 0000000..a54cbe9 --- /dev/null +++ b/Publish/Public/assets/grape-b65eca05.js @@ -0,0 +1,578 @@ +import{g as nd,c as zc,a as Bc,S as Is}from"./sweetalert2-b81e8371.js";var Gf={},zm={get exports(){return Gf},set exports(Se){Gf=Se}};/*! grapesjs - 0.20.4 */(function(Se,sn){(function(Fe,Re){Se.exports=Re()})(typeof globalThis<"u"?globalThis:typeof window<"u"?window:zc,()=>(()=>{var Fe={410:(_,lt,D)=>{var et,xt,q;xt=[D(50),D(316)],(q=typeof(et=function(G,U){var S=Array.prototype.slice;function E(O,I,W){return W.length<=4?O.call(I,W[0],W[1],W[2],W[3]):O.apply(I,W)}function A(O,I){return S.call(O,I)}function M(O,I){return O!=null&&(G.isArray(I)||(I=A(arguments,1)),G.all(I,function(W){return W in O}))}var N=function(){var O=!1,I=-1;function W(){I++,O=!0,G.defer(function(){O=!1})}return function(){return O||W(),I}}();function it(){this.registeredObjects=[],this.cidIndexes=[]}function st(O,I,W,Z){for(var bt,Q=0,gt=I.length;QO.maximumStackLength&&(O.shift(),O.pointer--)}}}it.prototype={isRegistered:function(O){return O&&O.cid?this.registeredObjects[O.cid]:G.contains(this.registeredObjects,O)},register:function(O){return!this.isRegistered(O)&&(O&&O.cid?(this.registeredObjects[O.cid]=O,this.cidIndexes.push(O.cid)):this.registeredObjects.push(O),!0)},unregister:function(O){if(this.isRegistered(O)){if(O&&O.cid)delete this.registeredObjects[O.cid],this.cidIndexes.splice(G.indexOf(this.cidIndexes,O.cid),1);else{var I=G.indexOf(this.registeredObjects,O);this.registeredObjects.splice(I,1)}return!0}return!1},get:function(){return G.map(this.cidIndexes,function(O){return this.registeredObjects[O]},this).concat(this.registeredObjects)}};var ut={add:{undo:function(O,I,W,Z){O.remove(W,Z)},redo:function(O,I,W,Z){Z.index&&(Z.at=Z.index),O.add(W,Z)},on:function(O,I,W){return{object:I,before:void 0,after:O,options:G.clone(W)}}},remove:{undo:function(O,I,W,Z){"index"in Z&&(Z.at=Z.index),O.add(I,Z)},redo:function(O,I,W,Z){O.remove(I,Z)},on:function(O,I,W){return{object:I,before:O,after:void 0,options:G.clone(W)}}},change:{undo:function(O,I,W,Z){G.isEmpty(I)?G.each(G.keys(W),O.unset,O):(O.set(I),Z&&Z.unsetData&&Z.unsetData.before&&Z.unsetData.before.length&&G.each(Z.unsetData.before,O.unset,O))},redo:function(O,I,W,Z){G.isEmpty(W)?G.each(G.keys(I),O.unset,O):(O.set(W),Z&&Z.unsetData&&Z.unsetData.after&&Z.unsetData.after.length&&G.each(Z.unsetData.after,O.unset,O))},on:function(O,I){var W=O.changedAttributes(),Z=G.keys(W),bt=G.pick(O.previousAttributes(),Z),Q=G.keys(bt),gt=(I||(I={})).unsetData={after:[],before:[]};return Z.length!=Q.length&&(Z.length>Q.length?G.each(Z,function(F){F in bt||gt.before.push(F)},this):G.each(Q,function(F){F in W||gt.after.push(F)})),{object:O,before:bt,after:W,options:G.clone(I)}}},reset:{undo:function(O,I,W){O.reset(I)},redo:function(O,I,W){O.reset(W)},on:function(O,I){return{object:O,before:I.previousModels,after:G.clone(O.models)}}}};function pt(){}function Dt(O,I,W,Z){if(typeof I=="object")return G.each(I,function(bt,Q){O===2?Dt(O,bt,W,Z):Dt(O,Q,bt,W)});switch(O){case 0:M(W,"undo","redo","on")&&G.all(G.pick(W,"undo","redo","on"),G.isFunction)&&(Z[I]=W);break;case 1:Z[I]&&G.isObject(W)&&(Z[I]=G.extend({},Z[I],W));break;case 2:delete Z[I]}return this}pt.prototype=ut;var Bt=U.Model.extend({defaults:{type:null,object:null,before:null,after:null,magicFusionIndex:null},undo:function(O){Et("undo",this.attributes)},redo:function(O){Et("redo",this.attributes)}}),kt=U.Collection.extend({model:Bt,pointer:-1,track:!1,isCurrentlyUndoRedoing:!1,maximumStackLength:1/0,setMaxLength:function(O){this.maximumStackLength=O}}),z=U.Model.extend({defaults:{maximumStackLength:1/0,track:!1},initialize:function(O){this.stack=new kt,this.objectRegistry=new it,this.undoTypes=new pt,this.stack.setMaxLength(this.get("maximumStackLength")),this.on("change:maximumStackLength",function(I,W){this.stack.setMaxLength(W)},this),O&&O.track&&this.startTracking(),O&&O.register&&(G.isArray(O.register)||G.isArguments(O.register)?E(this.register,this,O.register):this.register(O.register))},startTracking:function(){this.set("track",!0),this.stack.track=!0},stopTracking:function(){this.set("track",!1),this.stack.track=!1},isTracking:function(){return this.get("track")},_addToStack:function(O){ne(this.stack,O,A(arguments,1),this.undoTypes)},register:function(){st("on",arguments,this._addToStack,this)},unregister:function(){st("off",arguments,this._addToStack,this)},unregisterAll:function(){E(this.unregister,this,this.objectRegistry.get())},undo:function(O){Mt("undo",this,this.stack,O)},undoAll:function(){Mt("undo",this,this.stack,!1,!0)},redo:function(O){Mt("redo",this,this.stack,O)},redoAll:function(){Mt("redo",this,this.stack,!1,!0)},isAvailable:function(O){var I=this.stack,W=I.length;switch(O){case"undo":return W>0&&I.pointer>-1;case"redo":return W>0&&I.pointer{var et,xt;(function(q){var G=typeof self=="object"&&self.self===self&&self||typeof D.g=="object"&&D.g.global===D.g&&D.g;et=[D(50),D(895),lt],xt=function(U,S,E){G.Backbone=function(A,M,N,it){var st=A.Backbone,Et=Array.prototype.slice;M.VERSION="1.4.1",M.$=it,M.noConflict=function(){return A.Backbone=st,this},M.emulateHTTP=!1,M.emulateJSON=!1;var Mt,Nt=M.Events={},ne=/\s+/,ut=function(y,j,H,ct,St){var Ct,Xt=0;if(H&&typeof H=="object")for(ct!==void 0&&("context"in St)&&St.context===void 0&&(St.context=ct),Ct=N.keys(H);Xtthis.length&&(ct=this.length),ct<0&&(ct+=this.length+1);var St,Ct,Xt=[],ge=[],Ve=[],ze=[],nn={},Qt=j.add,R=j.merge,rt=j.remove,ht=!1,_t=this.comparator&&ct==null&&j.sort!==!1,te=N.isString(this.comparator)?this.comparator:null;for(Ct=0;Ct7),this._useHashChange=this._wantsHashChange&&this._hasHashChange,this._wantsPushState=!!this.options.pushState,this._hasPushState=!(!this.history||!this.history.pushState),this._usePushState=this._wantsPushState&&this._hasPushState,this.fragment=this.getFragment(),this.root=("/"+this.root+"/").replace(Ke,"/"),this._wantsHashChange&&this._wantsPushState){if(!this._hasPushState&&!this.atRoot()){var j=this.root.slice(0,-1)||"/";return this.location.replace(j+"#"+this.getPath()),!0}this._hasPushState&&this.atRoot()&&this.navigate(this.getHash(),{replace:!0})}if(!this._hasHashChange&&this._wantsHashChange&&!this._usePushState){this.iframe=document.createElement("iframe"),this.iframe.src="javascript:0",this.iframe.style.display="none",this.iframe.tabIndex=-1;var H=document.body,ct=H.insertBefore(this.iframe,H.firstChild).contentWindow;ct.document.open(),ct.document.close(),ct.location.hash="#"+this.fragment}var St=window.addEventListener||function(Ct,Xt){return attachEvent("on"+Ct,Xt)};if(this._usePushState?St("popstate",this.checkUrl,!1):this._useHashChange&&!this.iframe?St("hashchange",this.checkUrl,!1):this._wantsHashChange&&(this._checkUrlInterval=setInterval(this.checkUrl,this.interval)),!this.options.silent)return this.loadUrl()},stop:function(){var y=window.removeEventListener||function(j,H){return detachEvent("on"+j,H)};this._usePushState?y("popstate",this.checkUrl,!1):this._useHashChange&&!this.iframe&&y("hashchange",this.checkUrl,!1),this.iframe&&(document.body.removeChild(this.iframe),this.iframe=null),this._checkUrlInterval&&clearInterval(this._checkUrlInterval),je.started=!1},route:function(y,j){this.handlers.unshift({route:y,callback:j})},checkUrl:function(y){var j=this.getFragment();if(j===this.fragment&&this.iframe&&(j=this.getHash(this.iframe.contentWindow)),j===this.fragment)return!1;this.iframe&&this.navigate(j),this.loadUrl()},loadUrl:function(y){return!!this.matchRoot()&&(y=this.fragment=this.getFragment(y),N.some(this.handlers,function(j){if(j.route.test(y))return j.callback(y),!0}))},navigate:function(y,j){if(!je.started)return!1;j&&j!==!0||(j={trigger:!!j}),y=this.getFragment(y||"");var H=this.root;y!==""&&y.charAt(0)!=="?"||(H=H.slice(0,-1)||"/");var ct=H+y;y=y.replace(fn,"");var St=this.decodeFragment(y);if(this.fragment!==St){if(this.fragment=St,this._usePushState)this.history[j.replace?"replaceState":"pushState"]({},document.title,ct);else{if(!this._wantsHashChange)return this.location.assign(ct);if(this._updateHash(this.location,y,j.replace),this.iframe&&y!==this.getHash(this.iframe.contentWindow)){var Ct=this.iframe.contentWindow;j.replace||(Ct.document.open(),Ct.document.close()),this._updateHash(Ct.location,y,j.replace)}}return j.trigger?this.loadUrl(y):void 0}},_updateHash:function(y,j,H){if(H){var ct=y.href.replace(/(javascript:|#).*$/,"");y.replace(ct+"#"+j)}else y.hash="#"+j}}),M.history=new je;var jn=function(y,j){var H,ct=this;return H=y&&N.has(y,"constructor")?y.constructor:function(){return ct.apply(this,arguments)},N.extend(H,ct,j),H.prototype=N.create(ct.prototype,y),H.prototype.constructor=H,H.__super__=ct.prototype,H};W.extend=Z.extend=Zt.extend=ke.extend=je.extend=jn;var yt=function(){throw new Error('A "url" property or function must be specified')},Rt=function(y,j){var H=j.error;j.error=function(ct){H&&H.call(j.context,y,ct,j),y.trigger("error",y,ct,j)}};return M}(G,E,U,S)}.apply(lt,et),xt===void 0||(_.exports=xt)})()},210:(_,lt,D)=>{(function(et){et.extendMode("css",{commentStart:"/*",commentEnd:"*/",newlineAfterToken:function(q,G){return/^[;{}]$/.test(G)}}),et.extendMode("javascript",{commentStart:"/*",commentEnd:"*/",newlineAfterToken:function(q,G,U,S){return this.jsonMode?/^[\[,{]$/.test(G)||/^}/.test(U):(G!=";"||!S.lexical||S.lexical.type!=")")&&/^[;{}]$/.test(G)&&!/^;/.test(U)}});var xt=/^(a|abbr|acronym|area|base|bdo|big|br|button|caption|cite|code|col|colgroup|dd|del|dfn|em|frame|hr|iframe|img|input|ins|kbd|label|legend|link|map|object|optgroup|option|param|q|samp|script|select|small|span|strong|sub|sup|textarea|tt|var)$/;et.extendMode("xml",{commentStart:"",newlineAfterToken:function(q,G,U,S){var E=!1;return this.configuration=="html"&&(E=!!S.context&&xt.test(S.context.tagName)),!E&&(q=="tag"&&/>$/.test(G)&&S.context||/^-1&&N>-1&&N>M&&(A=A.substr(0,M)+A.substring(M+E.commentStart.length,N)+A.substr(N+E.commentEnd.length)),S.replaceRange(A,G,U)}})}),et.defineExtension("autoIndentRange",function(q,G){var U=this;this.operation(function(){for(var S=q.line;S<=G.line;S++)U.indentLine(S,"smart")})}),et.defineExtension("autoFormatRange",function(q,G){var U=this,S=U.getMode(),E=U.getRange(q,G).split(` +`),A=et.copyState(S,U.getTokenAt(q).state),M=U.getOption("tabSize"),N="",it=0,st=q.ch===0;function Et(){N+=` +`,st=!0,++it}for(var Mt=0;Mt2),ne=/Android/.test(lt),ut=Nt||ne||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(lt),pt=Nt||/Mac/.test(D),Dt=/\bCrOS\b/.test(lt),Bt=/win/i.test(D),kt=it&<.match(/Version\/(\d*\.\d*)/);kt&&(kt=Number(kt[1])),kt&&kt>=15&&(it=!1,E=!0);var z=pt&&(A||it&&(kt==null||kt<12.11)),O=et||U&&S>=9;function I(o){return new RegExp("(^|\\s)"+o+"(?:$|\\s)\\s*")}var W,Z=function(o,s){var u=o.className,c=I(s).exec(u);if(c){var p=u.slice(c.index+c[0].length);o.className=u.slice(0,c.index)+(p?c[1]+p:"")}};function bt(o){for(var s=o.childNodes.length;s>0;--s)o.removeChild(o.firstChild);return o}function Q(o,s){return bt(o).appendChild(s)}function gt(o,s,u,c){var p=document.createElement(o);if(u&&(p.className=u),c&&(p.style.cssText=c),typeof s=="string")p.appendChild(document.createTextNode(s));else if(s)for(var h=0;h=s)return m+(s-h);m+=b-h,m+=u-m%u,h=b+1}}Nt?ke=function(o){o.selectionStart=0,o.selectionEnd=o.value.length}:U&&(ke=function(o){try{o.select()}catch{}});var Pe=function(){this.id=null,this.f=null,this.time=0,this.handler=Oe(this.onTimeout,this)};function me(o,s){for(var u=0;u=s)return c+Math.min(m,s-p);if(p+=h-c,c=h+1,(p+=u-p%u)>=s)return c}}var ie=[""];function pe(o){for(;ie.length<=o;)ie.push(ee(ie)+" ");return ie[o]}function ee(o){return o[o.length-1]}function je(o,s){for(var u=[],c=0;c"€"&&(o.toUpperCase()!=o.toLowerCase()||jn.test(o))}function Rt(o,s){return s?!!(s.source.indexOf("\\w")>-1&&yt(o))||s.test(o):yt(o)}function y(o){for(var s in o)if(o.hasOwnProperty(s)&&o[s])return!1;return!0}var j=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function H(o){return o.charCodeAt(0)>=768&&j.test(o)}function ct(o,s,u){for(;(u<0?s>0:su?-1:1;;){if(s==u)return s;var p=(s+u)/2,h=c<0?Math.ceil(p):Math.floor(p);if(h==s)return o(h)?s:u;o(h)?u=h:s=h+c}}function Ct(o,s,u,c){if(!o)return c(s,u,"ltr",0);for(var p=!1,h=0;hs||s==u&&m.to==s)&&(c(Math.max(m.from,s),Math.min(m.to,u),m.level==1?"rtl":"ltr",h),p=!0)}p||c(s,u,"ltr")}var Xt=null;function ge(o,s,u){var c;Xt=null;for(var p=0;ps)return p;h.to==s&&(h.from!=h.to&&u=="before"?c=p:Xt=p),h.from==s&&(h.from!=h.to&&u!="before"?c=p:Xt=p)}return c??Xt}var Ve=function(){var o="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",s="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function u(k){return k<=247?o.charAt(k):1424<=k&&k<=1524?"R":1536<=k&&k<=1785?s.charAt(k-1536):1774<=k&&k<=2220?"r":8192<=k&&k<=8203?"w":k==8204?"b":"L"}var c=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,p=/[stwN]/,h=/[LRr]/,m=/[Lb1n]/,b=/[1n]/;function x(k,$,K){this.level=k,this.from=$,this.to=K}return function(k,$){var K=$=="ltr"?"L":"R";if(k.length==0||$=="ltr"&&!c.test(k))return!1;for(var vt=k.length,mt=[],Ot=0;Ot-1&&(c[s]=p.slice(0,h).concat(p.slice(h+1)))}}}function ht(o,s){var u=R(o,s);if(u.length)for(var c=Array.prototype.slice.call(arguments,2),p=0;p0}function Ue(o){o.prototype.on=function(s,u){Qt(this,s,u)},o.prototype.off=function(s,u){rt(this,s,u)}}function Xe(o){o.preventDefault?o.preventDefault():o.returnValue=!1}function Hn(o){o.stopPropagation?o.stopPropagation():o.cancelBubble=!0}function yn(o){return o.defaultPrevented!=null?o.defaultPrevented:o.returnValue==0}function $e(o){Xe(o),Hn(o)}function Nr(o){return o.target||o.srcElement}function tr(o){var s=o.which;return s==null&&(1&o.button?s=1:2&o.button?s=3:4&o.button&&(s=2)),pt&&o.ctrlKey&&s==1&&(s=3),s}var Ir,bn,Tn=function(){if(U&&S<9)return!1;var o=gt("div");return"draggable"in o||"dragDrop"in o}();function Kn(o){if(Ir==null){var s=gt("span","​");Q(o,gt("span",[s,document.createTextNode("x")])),o.firstChild.offsetHeight!=0&&(Ir=s.offsetWidth<=1&&s.offsetHeight>2&&!(U&&S<8))}var u=Ir?gt("span","​"):gt("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return u.setAttribute("cm-text",""),u}function Vr(o){if(bn!=null)return bn;var s=Q(o,document.createTextNode("AخA")),u=W(s,0,1).getBoundingClientRect(),c=W(s,1,2).getBoundingClientRect();return bt(o),!(!u||u.left==u.right)&&(bn=c.right-u.right<3)}var Rn,To=` + +b`.split(/\n/).length!=3?function(o){for(var s=0,u=[],c=o.length;s<=c;){var p=o.indexOf(` +`,s);p==-1&&(p=o.length);var h=o.slice(s,o.charAt(p-1)=="\r"?p-1:p),m=h.indexOf("\r");m!=-1?(u.push(h.slice(0,m)),s+=m+1):(u.push(h),s=p+1)}return u}:function(o){return o.split(/\r\n?|\n/)},Uo=window.getSelection?function(o){try{return o.selectionStart!=o.selectionEnd}catch{return!1}}:function(o){var s;try{s=o.ownerDocument.selection.createRange()}catch{}return!(!s||s.parentElement()!=o)&&s.compareEndPoints("StartToEnd",s)!=0},ko="oncopy"in(Rn=gt("div"))||(Rn.setAttribute("oncopy","return;"),typeof Rn.oncopy=="function"),Wo=null;function lo(o){if(Wo!=null)return Wo;var s=Q(o,gt("span","x")),u=s.getBoundingClientRect(),c=W(s,0,1).getBoundingClientRect();return Wo=Math.abs(u.left-c.left)>1}var gr={},gn={};function $o(o,s){arguments.length>2&&(s.dependencies=Array.prototype.slice.call(arguments,2)),gr[o]=s}function Fr(o,s){gn[o]=s}function Eo(o){if(typeof o=="string"&&gn.hasOwnProperty(o))o=gn[o];else if(o&&typeof o.name=="string"&&gn.hasOwnProperty(o.name)){var s=gn[o.name];typeof s=="string"&&(s={name:s}),(o=fn(s,o)).name=s.name}else{if(typeof o=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(o))return Eo("application/xml");if(typeof o=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(o))return Eo("application/json")}return typeof o=="string"?{name:o}:o||{name:"null"}}function no(o,s){s=Eo(s);var u=gr[s.name];if(!u)return no(o,"text/plain");var c=u(o,s);if(Yn.hasOwnProperty(s.name)){var p=Yn[s.name];for(var h in p)p.hasOwnProperty(h)&&(c.hasOwnProperty(h)&&(c["_"+h]=c[h]),c[h]=p[h])}if(c.name=s.name,s.helperType&&(c.helperType=s.helperType),s.modeProps)for(var m in s.modeProps)c[m]=s.modeProps[m];return c}var Yn={};function zn(o,s){Ie(s,Yn.hasOwnProperty(o)?Yn[o]:Yn[o]={})}function Jn(o,s){if(s===!0)return s;if(o.copyState)return o.copyState(s);var u={};for(var c in s){var p=s[c];p instanceof Array&&(p=p.concat([])),u[c]=p}return u}function qo(o,s){for(var u;o.innerMode&&(u=o.innerMode(s))&&u.mode!=o;)s=u.state,o=u.mode;return u||{mode:o,state:s}}function _o(o,s,u){return!o.startState||o.startState(s,u)}var Qe=function(o,s,u){this.pos=this.start=0,this.string=o,this.tabSize=s||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=u};function be(o,s){if((s-=o.first)<0||s>=o.size)throw new Error("There is no line "+(s+o.first)+" in the document.");for(var u=o;!u.lines;)for(var c=0;;++c){var p=u.children[c],h=p.chunkSize();if(s=o.first&&su?$t(u,be(o,u).text.length):$n(s,be(o,s.line).text.length)}function $n(o,s){var u=o.ch;return u==null||u>s?$t(o.line,s):u<0?$t(o.line,0):o}function Mn(o,s){for(var u=[],c=0;c=this.string.length},Qe.prototype.sol=function(){return this.pos==this.lineStart},Qe.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Qe.prototype.next=function(){if(this.poss},Qe.prototype.eatSpace=function(){for(var o=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>o},Qe.prototype.skipToEnd=function(){this.pos=this.string.length},Qe.prototype.skipTo=function(o){var s=this.string.indexOf(o,this.pos);if(s>-1)return this.pos=s,!0},Qe.prototype.backUp=function(o){this.pos-=o},Qe.prototype.column=function(){return this.lastColumnPos0?null:(c&&s!==!1&&(this.pos+=c[0].length),c)}var p=function(h){return u?h.toLowerCase():h};if(p(this.string.substr(this.pos,o.length))==p(o))return s!==!1&&(this.pos+=o.length),!0},Qe.prototype.current=function(){return this.string.slice(this.start,this.pos)},Qe.prototype.hideFirstChars=function(o,s){this.lineStart+=o;try{return s()}finally{this.lineStart-=o}},Qe.prototype.lookAhead=function(o){var s=this.lineOracle;return s&&s.lookAhead(o)},Qe.prototype.baseToken=function(){var o=this.lineOracle;return o&&o.baseToken(this.pos)};var Wi=function(o,s){this.state=o,this.lookAhead=s},kr=function(o,s,u,c){this.state=s,this.doc=o,this.line=u,this.maxLookAhead=c||0,this.baseTokens=null,this.baseTokenPos=1};function Vs(o,s,u,c){var p=[o.state.modeGen],h={};Po(o,s.text,o.doc.mode,u,function(k,$){return p.push(k,$)},h,c);for(var m=u.state,b=function(k){u.baseTokens=p;var $=o.state.overlays[k],K=1,vt=0;u.state=!0,Po(o,s.text,$.mode,u,function(mt,Ot){for(var zt=K;vtmt&&p.splice(K,1,mt,p[K+1],Kt),K+=2,vt=Math.min(mt,Kt)}if(Ot)if($.opaque)p.splice(zt,K-zt,mt,"overlay "+Ot),K=zt+2;else for(;zto.options.maxHighlightLength&&Jn(o.doc.mode,c.state),h=Vs(o,s,c);p&&(c.state=p),s.stateAfter=c.save(!p),s.styles=h.styles,h.classes?s.styleClasses=h.classes:s.styleClasses&&(s.styleClasses=null),u===o.doc.highlightFrontier&&(o.doc.modeFrontier=Math.max(o.doc.modeFrontier,++o.doc.highlightFrontier))}return s.styles}function xo(o,s,u){var c=o.doc,p=o.display;if(!c.mode.startState)return new kr(c,!0,s);var h=$i(o,s,u),m=h>c.first&&be(c,h-1).stateAfter,b=m?kr.fromSaved(c,m,h):new kr(c,_o(c.mode),h);return c.iter(h,s,function(x){co(o,x.text,b);var k=b.line;x.stateAfter=k==s-1||k%5==0||k>=p.viewFrom&&ks.start)return h}throw new Error("Mode "+o.name+" failed to advance stream.")}kr.prototype.lookAhead=function(o){var s=this.doc.getLine(this.line+o);return s!=null&&o>this.maxLookAhead&&(this.maxLookAhead=o),s},kr.prototype.baseToken=function(o){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=o;)this.baseTokenPos+=2;var s=this.baseTokens[this.baseTokenPos+1];return{type:s&&s.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-o}},kr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},kr.fromSaved=function(o,s,u){return s instanceof Wi?new kr(o,Jn(o.mode,s.state),u,s.lookAhead):new kr(o,Jn(o.mode,s),u)},kr.prototype.save=function(o){var s=o!==!1?Jn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Wi(s,this.maxLookAhead):s};var Oo=function(o,s,u){this.start=o.start,this.end=o.pos,this.string=o.current(),this.type=s||null,this.state=u};function Yo(o,s,u,c){var p,h,m=o.doc,b=m.mode,x=be(m,(s=le(m,s)).line),k=xo(o,s.line,u),$=new Qe(x.text,o.options.tabSize,k);for(c&&(h=[]);(c||$.poso.options.maxHighlightLength?(b=!1,m&&co(o,s,c,K.pos),K.pos=s.length,x=null):x=Fs(er(u,K,c.state,vt),h),vt){var mt=vt[0].name;mt&&(x="m-"+(x?mt+" "+x:mt))}if(!b||$!=x){for(;km;--b){if(b<=h.first)return h.first;var x=be(h,b-1),k=x.stateAfter;if(k&&(!u||b+(k instanceof Wi?k.lookAhead:0)<=h.modeFrontier))return b;var $=Ce(x.text,null,o.options.tabSize);(p==null||c>$)&&(p=b-1,c=$)}return p}function Hs(o,s){if(o.modeFrontier=Math.min(o.modeFrontier,s),!(o.highlightFrontieru;c--){var p=be(o,c).stateAfter;if(p&&(!(p instanceof Wi)||c+p.lookAhead=s:h.to>s);(c||(c=[])).push(new Pr(m,h.from,b?null:h.to))}}return c}function yi(o,s,u){var c;if(o)for(var p=0;p=s:h.to>s)||h.from==s&&m.type=="bookmark"&&(!u||h.marker.insertLeft)){var b=h.from==null||(m.inclusiveLeft?h.from<=s:h.from0&&b)for(var re=0;re0)){var $=[x,1],K=P(k.from,b.from),vt=P(k.to,b.to);(K<0||!m.inclusiveLeft&&!K)&&$.push({from:k.from,to:b.from}),(vt>0||!m.inclusiveRight&&!vt)&&$.push({from:b.to,to:k.to}),p.splice.apply(p,$),x+=$.length-3}}return p}function rr(o){var s=o.markedSpans;if(s){for(var u=0;us)&&(!u||_n(u,h.marker)<0)&&(u=h.marker)}return u}function Cn(o,s,u,c,p){var h=be(o,s),m=ro&&h.markedSpans;if(m)for(var b=0;b=0&&K<=0||$<=0&&K>=0)&&($<=0&&(x.marker.inclusiveRight&&p.inclusiveLeft?P(k.to,u)>=0:P(k.to,u)>0)||$>=0&&(x.marker.inclusiveRight&&p.inclusiveLeft?P(k.from,c)<=0:P(k.from,c)<0)))return!0}}}function jr(o){for(var s;s=Xo(o);)o=s.find(-1,!0).line;return o}function Yi(o){for(var s;s=Hr(o);)o=s.find(1,!0).line;return o}function bi(o){for(var s,u;s=Hr(o);)o=s.find(1,!0).line,(u||(u=[])).push(o);return u}function vr(o,s){var u=be(o,s),c=jr(u);return u==c?s:en(c)}function Rr(o,s){if(s>o.lastLine())return s;var u,c=be(o,s);if(!zr(o,c))return s;for(;u=Hr(c);)c=u.find(1,!0).line;return en(c)+1}function zr(o,s){var u=ro&&s.markedSpans;if(u){for(var c=void 0,p=0;ps.maxLineLength&&(s.maxLineLength=p,s.maxLine=c)})}var Ur=function(o,s,u){this.text=o,Gi(this,s),this.height=u?u(this):1};function Us(o,s,u,c){o.text=s,o.stateAfter&&(o.stateAfter=null),o.styles&&(o.styles=null),o.order!=null&&(o.order=null),rr(o),Gi(o,u);var p=c?c(o):1;p!=o.height&&cr(o,p)}function Da(o){o.parent=null,rr(o)}Ur.prototype.lineNo=function(){return en(this)},Ue(Ur);var Na={},Ji={};function Zo(o,s){if(!o||/^\s*$/.test(o))return null;var u=s.addModeClass?Ji:Na;return u[o]||(u[o]=o.replace(/\S+/g,"cm-$&"))}function Xi(o,s){var u=F("span",null,null,E?"padding-right: .1px":null),c={pre:F("pre",[u],"CodeMirror-line"),content:u,col:0,pos:0,cm:o,trailingSpace:!1,splitSpaces:o.getOption("lineWrapping")};s.measure={};for(var p=0;p<=(s.rest?s.rest.length:0);p++){var h=p?s.rest[p-1]:s.line,m=void 0;c.pos=0,c.addToken=Va,Vr(o.display.measure)&&(m=ze(h,o.doc.direction))&&(c.addToken=Ll(c.addToken,m)),c.map=[],Zi(h,c,Er(o,h,s!=o.display.externalMeasured&&en(h))),h.styleClasses&&(h.styleClasses.bgClass&&(c.bgClass=Ae(h.styleClasses.bgClass,c.bgClass||"")),h.styleClasses.textClass&&(c.textClass=Ae(h.styleClasses.textClass,c.textClass||""))),c.map.length==0&&c.map.push(0,0,c.content.appendChild(Kn(o.display.measure))),p==0?(s.measure.map=c.map,s.measure.cache={}):((s.measure.maps||(s.measure.maps=[])).push(c.map),(s.measure.caches||(s.measure.caches=[])).push({}))}if(E){var b=c.content.lastChild;(/\bcm-tab\b/.test(b.className)||b.querySelector&&b.querySelector(".cm-tab"))&&(c.content.className="cm-tab-wrap-hack")}return ht(o,"renderLine",o,s.line,c.pre),c.pre.className&&(c.textClass=Ae(c.pre.className,c.textClass||"")),c}function Ia(o){var s=gt("span","•","cm-invalidchar");return s.title="\\u"+o.charCodeAt(0).toString(16),s.setAttribute("aria-label",s.title),s}function Va(o,s,u,c,p,h,m){if(s){var b,x=o.splitSpaces?Fa(s,o.trailingSpace):s,k=o.cm.state.specialChars,$=!1;if(k.test(s)){b=document.createDocumentFragment();for(var K=0;;){k.lastIndex=K;var vt=k.exec(s),mt=vt?vt.index-K:s.length-K;if(mt){var Ot=document.createTextNode(x.slice(K,K+mt));U&&S<9?b.appendChild(gt("span",[Ot])):b.appendChild(Ot),o.map.push(o.pos,o.pos+mt,Ot),o.col+=mt,o.pos+=mt}if(!vt)break;K+=mt+1;var zt=void 0;if(vt[0]==" "){var Kt=o.cm.options.tabSize,se=Kt-o.col%Kt;(zt=b.appendChild(gt("span",pe(se),"cm-tab"))).setAttribute("role","presentation"),zt.setAttribute("cm-text"," "),o.col+=se}else vt[0]=="\r"||vt[0]==` +`?((zt=b.appendChild(gt("span",vt[0]=="\r"?"␍":"␤","cm-invalidchar"))).setAttribute("cm-text",vt[0]),o.col+=1):((zt=o.cm.options.specialCharPlaceholder(vt[0])).setAttribute("cm-text",vt[0]),U&&S<9?b.appendChild(gt("span",[zt])):b.appendChild(zt),o.col+=1);o.map.push(o.pos,o.pos+1,zt),o.pos++}}else o.col+=s.length,b=document.createTextNode(x),o.map.push(o.pos,o.pos+s.length,b),U&&S<9&&($=!0),o.pos+=s.length;if(o.trailingSpace=x.charCodeAt(s.length-1)==32,u||c||p||$||h||m){var fe=u||"";c&&(fe+=c),p&&(fe+=p);var re=gt("span",[b],fe,h);if(m)for(var xe in m)m.hasOwnProperty(xe)&&xe!="style"&&xe!="class"&&re.setAttribute(xe,m[xe]);return o.content.appendChild(re)}o.content.appendChild(b)}}function Fa(o,s){if(o.length>1&&!/ /.test(o))return o;for(var u=s,c="",p=0;pk&&K.from<=k);vt++);if(K.to>=$)return o(u,c,p,h,m,b,x);o(u,c.slice(0,K.to-k),p,h,null,b,x),h=null,c=c.slice(K.to-k),k=K.to}}}function jo(o,s,u,c){var p=!c&&u.widgetNode;p&&o.map.push(o.pos,o.pos+s,p),!c&&o.cm.display.input.needsContentAttribute&&(p||(p=o.content.appendChild(document.createElement("span"))),p.setAttribute("cm-marker",u.id)),p&&(o.cm.display.input.setUneditable(p),o.content.appendChild(p)),o.pos+=s,o.trailingSpace=!1}function Zi(o,s,u){var c=o.markedSpans,p=o.text,h=0;if(c)for(var m,b,x,k,$,K,vt,mt=p.length,Ot=0,zt=1,Kt="",se=0;;){if(se==Ot){x=k=$=b="",vt=null,K=null,se=1/0;for(var fe=[],re=void 0,xe=0;xeOt||Ee.collapsed&&we.to==Ot&&we.from==Ot)){if(we.to!=null&&we.to!=Ot&&se>we.to&&(se=we.to,k=""),Ee.className&&(x+=" "+Ee.className),Ee.css&&(b=(b?b+";":"")+Ee.css),Ee.startStyle&&we.from==Ot&&($+=" "+Ee.startStyle),Ee.endStyle&&we.to==se&&(re||(re=[])).push(Ee.endStyle,we.to),Ee.title&&((vt||(vt={})).title=Ee.title),Ee.attributes)for(var dn in Ee.attributes)(vt||(vt={}))[dn]=Ee.attributes[dn];Ee.collapsed&&(!K||_n(K.marker,Ee)<0)&&(K=we)}else we.from>Ot&&se>we.from&&(se=we.from)}if(re)for(var hn=0;hn=mt)break;for(var wn=Math.min(mt,se);;){if(Kt){var pr=Ot+Kt.length;if(!K){var _r=pr>wn?Kt.slice(0,wn-Ot):Kt;s.addToken(s,_r,m?m+x:x,$,Ot+_r.length==se?k:"",b,vt)}if(pr>=wn){Kt=Kt.slice(wn-Ot),Ot=wn;break}Ot=pr,$=""}Kt=p.slice(h,h=u[zt++]),m=Zo(u[zt++],s.cm.options)}}else for(var kn=1;kn2&&h.push((x.bottom+k.top)/2-u.top)}}h.push(u.bottom-u.top)}}function qe(o,s,u){if(o.line==s)return{map:o.measure.map,cache:o.measure.cache};if(o.rest){for(var c=0;cu)return{map:o.measure.maps[p],cache:o.measure.caches[p],before:!0}}}function vn(o,s){var u=en(s=jr(s)),c=o.display.externalMeasured=new Qi(o.doc,s,u);c.lineN=u;var p=c.built=Xi(o,c);return c.text=p.pre,Q(o.display.lineMeasure,p.pre),c}function Wr(o,s,u,c){return $r(o,Do(o,s),u,c)}function os(o,s){if(s>=o.display.viewFrom&&s=u.lineN&&ss)&&(p=(h=x-b)-1,s>=x&&(m="right")),p!=null){if(c=o[k+2],b==x&&u==(c.insertLeft?"left":"right")&&(m=u),u=="left"&&p==0)for(;k&&o[k-2]==o[k-3]&&o[k-1].insertLeft;)c=o[(k-=3)+2],m="left";if(u=="right"&&p==x-b)for(;k=0&&(u=o[p]).left==u.right;p--);return u}function xp(o,s,u,c){var p,h=Gs(s.map,u,c),m=h.node,b=h.start,x=h.end,k=h.collapse;if(m.nodeType==3){for(var $=0;$<4;$++){for(;b&&H(s.line.text.charAt(h.coverStart+b));)--b;for(;h.coverStart+x0&&(k=c="right"),p=o.options.lineWrapping&&(K=m.getClientRects()).length>1?K[c=="right"?K.length-1:0]:m.getBoundingClientRect()}if(U&&S<9&&!b&&(!p||!p.left&&!p.right)){var vt=m.parentNode.getClientRects()[0];p=vt?{left:vt.left,right:vt.left+ei(o.display),top:vt.top,bottom:vt.bottom}:Uc}for(var mt=p.top-s.rect.top,Ot=p.bottom-s.rect.top,zt=(mt+Ot)/2,Kt=s.view.measure.heights,se=0;se=c.text.length?(x=c.text.length,k="before"):x<=0&&(x=0,k="after"),!b)return m(k=="before"?x-1:x,k=="before");function $(Ot,zt,Kt){return m(Kt?Ot-1:Ot,b[zt].level==1!=Kt)}var K=ge(b,x,k),vt=Xt,mt=$(x,K,k=="before");return vt!=null&&(mt.other=$(x,vt,k!="before")),mt}function $a(o,s){var u=0;s=le(o.doc,s),o.options.lineWrapping||(u=ei(o.display)*s.ch);var c=be(o.doc,s.line),p=Br(c)+J(o.display);return{left:u,right:u,top:p,bottom:p+c.height}}function Vl(o,s,u,c,p){var h=$t(o,s,u);return h.xRel=p,c&&(h.outside=c),h}function Fl(o,s,u){var c=o.doc;if((u+=o.display.viewOffset)<0)return Vl(c.first,0,null,-1,-1);var p=Bn(c,u),h=c.first+c.size-1;if(p>h)return Vl(c.first+c.size-1,be(c,h).text.length,null,1,1);s<0&&(s=0);for(var m=be(c,p);;){var b=Hl(o,m,p,s,u),x=Ki(m,b.ch+(b.xRel>0||b.outside>0?1:0));if(!x)return b;var k=x.find(1);if(k.line==p)return k;m=be(c,p=k.line)}}function Gc(o,s,u,c){c-=Ba(s);var p=s.text.length,h=St(function(m){return $r(o,u,m-1).bottom<=c},p,0);return{begin:h,end:p=St(function(m){return $r(o,u,m).top>c},h,p)}}function Kc(o,s,u,c){return u||(u=Do(o,s)),Gc(o,s,u,Ua(o,s,$r(o,u,c),"line").top)}function ss(o,s,u,c){return!(o.bottom<=u)&&(o.top>u||(c?o.left:o.right)>s)}function Hl(o,s,u,c,p){p-=Br(s);var h=Do(o,s),m=Ba(s),b=0,x=s.text.length,k=!0,$=ze(s,o.doc.direction);if($){var K=(o.options.lineWrapping?ls:as)(o,s,u,h,$,c,p);b=(k=K.level!=1)?K.from:K.to-1,x=k?K.to:K.from-1}var vt,mt,Ot=null,zt=null,Kt=St(function(we){var Ee=$r(o,h,we);return Ee.top+=m,Ee.bottom+=m,!!ss(Ee,c,p,!1)&&(Ee.top<=p&&Ee.left<=c&&(Ot=we,zt=Ee),!0)},b,x),se=!1;if(zt){var fe=c-zt.left=xe.bottom?1:0}return Vl(u,Kt=ct(s.text,Kt,1),mt,se,c-vt)}function as(o,s,u,c,p,h,m){var b=St(function(K){var vt=p[K],mt=vt.level!=1;return ss(Lr(o,$t(u,mt?vt.to:vt.from,mt?"before":"after"),"line",s,c),h,m,!0)},0,p.length-1),x=p[b];if(b>0){var k=x.level!=1,$=Lr(o,$t(u,k?x.from:x.to,k?"after":"before"),"line",s,c);ss($,h,m,!0)&&$.top>m&&(x=p[b-1])}return x}function ls(o,s,u,c,p,h,m){var b=Gc(o,s,c,m),x=b.begin,k=b.end;/\s/.test(s.text.charAt(k-1))&&k--;for(var $=null,K=null,vt=0;vt=k||mt.to<=x)){var Ot=$r(o,c,mt.level!=1?Math.min(k,mt.to)-1:Math.max(x,mt.from)).right,zt=Otzt)&&($=mt,K=zt)}}return $||($=p[p.length-1]),$.fromk&&($={from:$.from,to:k,level:$.level}),$}function po(o){if(o.cachedTextHeight!=null)return o.cachedTextHeight;if(No==null){No=gt("pre",null,"CodeMirror-line-like");for(var s=0;s<49;++s)No.appendChild(document.createTextNode("x")),No.appendChild(gt("br"));No.appendChild(document.createTextNode("x"))}Q(o.measure,No);var u=No.offsetHeight/50;return u>3&&(o.cachedTextHeight=u),bt(o.measure),u||1}function ei(o){if(o.cachedCharWidth!=null)return o.cachedCharWidth;var s=gt("span","xxxxxxxxxx"),u=gt("pre",[s],"CodeMirror-line-like");Q(o.measure,u);var c=s.getBoundingClientRect(),p=(c.right-c.left)/10;return p>2&&(o.cachedCharWidth=p),p||10}function Rl(o){for(var s=o.display,u={},c={},p=s.gutters.clientLeft,h=s.gutters.firstChild,m=0;h;h=h.nextSibling,++m){var b=o.display.gutterSpecs[m].className;u[b]=h.offsetLeft+h.clientLeft+p,c[b]=h.clientWidth}return{fixedPos:zl(s),gutterTotalWidth:s.gutters.offsetWidth,gutterLeft:u,gutterWidth:c,wrapperWidth:s.wrapper.clientWidth}}function zl(o){return o.scroller.getBoundingClientRect().left-o.sizer.getBoundingClientRect().left}function Yc(o){var s=po(o.display),u=o.options.lineWrapping,c=u&&Math.max(5,o.display.scroller.clientWidth/ei(o.display)-3);return function(p){if(zr(o.doc,p))return 0;var h=0;if(p.widgets)for(var m=0;m0&&(x=be(o.doc,k.line).text).length==k.ch){var $=Ce(x,x.length,o.options.tabSize)-x.length;k=$t(k.line,Math.max(0,Math.round((h-wt(o.display).left)/ei(o.display))-$))}return k}function Oi(o,s){if(s>=o.display.viewTo||(s-=o.display.viewFrom)<0)return null;for(var u=o.display.view,c=0;cs)&&(p.updateLineNumbers=s),o.curOp.viewChanged=!0,s>=p.viewTo)ro&&vr(o.doc,s)p.viewFrom?ni(o):(p.viewFrom+=c,p.viewTo+=c);else if(s<=p.viewFrom&&u>=p.viewTo)ni(o);else if(s<=p.viewFrom){var h=qa(o,u,u+c,1);h?(p.view=p.view.slice(h.index),p.viewFrom=h.lineN,p.viewTo+=c):ni(o)}else if(u>=p.viewTo){var m=qa(o,s,s,-1);m?(p.view=p.view.slice(0,m.index),p.viewTo=m.lineN):ni(o)}else{var b=qa(o,s,s,-1),x=qa(o,u,u+c,1);b&&x?(p.view=p.view.slice(0,b.index).concat(uo(o,b.lineN,x.lineN)).concat(p.view.slice(x.index)),p.viewTo+=c):ni(o)}var k=p.externalMeasured;k&&(u=p.lineN&&s=c.viewTo)){var h=c.view[Oi(o,s)];if(h.node!=null){var m=h.changes||(h.changes=[]);me(m,u)==-1&&m.push(u)}}}function ni(o){o.display.viewFrom=o.display.viewTo=o.doc.first,o.display.view=[],o.display.viewOffset=0}function qa(o,s,u,c){var p,h=Oi(o,s),m=o.display.view;if(!ro||u==o.doc.first+o.doc.size)return{index:h,lineN:u};for(var b=o.display.viewFrom,x=0;x0){if(h==m.length-1)return null;p=b+m[h].size-s,h++}else p=b-s;s+=p,u+=p}for(;vr(o.doc,u)!=u;){if(h==(c<0?0:m.length-1))return null;u+=c*m[h-(c<0?1:0)].size,h+=c}return{index:h,lineN:u}}function Op(o,s,u){var c=o.display;c.view.length==0||s>=c.viewTo||u<=c.viewFrom?(c.view=uo(o,s,u),c.viewFrom=s):(c.viewFrom>s?c.view=uo(o,s,c.viewFrom).concat(c.view):c.viewFromu&&(c.view=c.view.slice(0,Oi(o,u)))),c.viewTo=u}function Jc(o){for(var s=o.display.view,u=0,c=0;c=o.display.viewTo||x.to().line0?m:o.defaultCharWidth())+"px"}if(c.other){var b=u.appendChild(gt("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));b.style.display="",b.style.left=c.other.left+"px",b.style.top=c.other.top+"px",b.style.height=.85*(c.other.bottom-c.other.top)+"px"}}function Xs(o,s){return o.top-s.top||o.left-s.left}function Tp(o,s,u){var c=o.display,p=o.doc,h=document.createDocumentFragment(),m=wt(o.display),b=m.left,x=Math.max(c.sizerWidth,Vt(o)-c.sizer.offsetLeft)-m.right,k=p.direction=="ltr";function $(re,xe,we,Ee){xe<0&&(xe=0),xe=Math.round(xe),Ee=Math.round(Ee),h.appendChild(gt("div",null,"CodeMirror-selected","position: absolute; left: "+re+`px; + top: `+xe+"px; width: "+(we??x-re)+`px; + height: `+(Ee-xe)+"px"))}function K(re,xe,we){var Ee,dn,hn=be(p,re),wr=hn.text.length;function wn(kn,Nn){return Wa(o,$t(re,kn),"div",hn,Nn)}function pr(kn,Nn,yr){var Wn=Kc(o,hn,null,kn),In=Nn=="ltr"==(yr=="after")?"left":"right";return wn(yr=="after"?Wn.begin:Wn.end-(/\s/.test(hn.text.charAt(Wn.end-1))?2:1),In)[In]}var _r=ze(hn,p.direction);return Ct(_r,xe||0,we??wr,function(kn,Nn,yr,Wn){var In=yr=="ltr",Vn=wn(kn,In?"left":"right"),Cr=wn(Nn-1,In?"right":"left"),ai=xe==null&&kn==0,mo=we==null&&Nn==wr,fr=Wn==0,En=!_r||Wn==_r.length-1;if(Cr.top-Vn.top<=3){var Sc=(k?mo:ai)&&En,Bo=(k?ai:mo)&&fr?b:(In?Vn:Cr).left,Vi=Sc?x:(In?Cr:Vn).right;$(Bo,Vn.top,Vi-Bo,Vn.bottom)}else{var Fi,qn,ks,Oc;In?(Fi=k&&ai&&fr?b:Vn.left,qn=k?x:pr(kn,yr,"before"),ks=k?b:pr(Nn,yr,"after"),Oc=k&&mo&&En?x:Cr.right):(Fi=k?pr(kn,yr,"before"):b,qn=!k&&ai&&fr?x:Vn.right,ks=!k&&mo&&En?b:Cr.left,Oc=k?pr(Nn,yr,"after"):x),$(Fi,Vn.top,qn-Fi,Vn.bottom),Vn.bottom0?s.blinker=setInterval(function(){o.hasFocus()||Ti(o),s.cursorDiv.style.visibility=(u=!u)?"":"hidden"},o.options.cursorBlinkRate):o.options.cursorBlinkRate<0&&(s.cursorDiv.style.visibility="hidden")}}function Xc(o){o.hasFocus()||(o.display.input.focus(),o.state.focused||Wl(o))}function Ul(o){o.state.delayingBlurEvent=!0,setTimeout(function(){o.state.delayingBlurEvent&&(o.state.delayingBlurEvent=!1,o.state.focused&&Ti(o))},100)}function Wl(o,s){o.state.delayingBlurEvent&&!o.state.draggingText&&(o.state.delayingBlurEvent=!1),o.options.readOnly!="nocursor"&&(o.state.focused||(ht(o,"focus",o,s),o.state.focused=!0,Yt(o.display.wrapper,"CodeMirror-focused"),o.curOp||o.display.selForContextMenu==o.doc.sel||(o.display.input.reset(),E&&setTimeout(function(){return o.display.input.reset(!0)},20)),o.display.input.receivedFocus()),cs(o))}function Ti(o,s){o.state.delayingBlurEvent||(o.state.focused&&(ht(o,"blur",o,s),o.state.focused=!1,Z(o.display.wrapper,"CodeMirror-focused")),clearInterval(o.display.blinker),setTimeout(function(){o.state.focused||(o.display.shift=!1)},150))}function Ga(o){for(var s=o.display,u=s.lineDiv.offsetTop,c=Math.max(0,s.scroller.getBoundingClientRect().top),p=s.lineDiv.getBoundingClientRect().top,h=0,m=0;m.005||mt<-.005)&&(po.display.sizerWidth){var zt=Math.ceil($/ei(o.display));zt>o.display.maxLineLength&&(o.display.maxLineLength=zt,o.display.maxLine=b.line,o.display.maxLineChanged=!0)}}}Math.abs(h)>2&&(s.scroller.scrollTop+=h)}function Zs(o){if(o.widgets)for(var s=0;s=m&&(h=Bn(s,Br(be(s,x))-o.wrapper.clientHeight),m=x)}return{from:h,to:Math.max(m,h+1)}}function kp(o,s){if(!_t(o,"scrollCursorIntoView")){var u=o.display,c=u.sizer.getBoundingClientRect(),p=null;if(s.top+c.top<0?p=!0:s.bottom+c.top>(window.innerHeight||document.documentElement.clientHeight)&&(p=!1),p!=null&&!Mt){var h=gt("div","​",null,`position: absolute; + top: `+(s.top-u.viewOffset-J(o.display))+`px; + height: `+(s.bottom-s.top+ft(o)+u.barHeight)+`px; + left: `+s.left+"px; width: "+Math.max(2,s.right-s.left)+"px;");o.display.lineSpace.appendChild(h),h.scrollIntoView(p),o.display.lineSpace.removeChild(h)}}}function $l(o,s,u,c){var p;c==null&&(c=0),o.options.lineWrapping||s!=u||(u=s.sticky=="before"?$t(s.line,s.ch+1,"before"):s,s=s.ch?$t(s.line,s.sticky=="before"?s.ch-1:s.ch,"after"):s);for(var h=0;h<5;h++){var m=!1,b=Lr(o,s),x=u&&u!=s?Lr(o,u):b,k=ql(o,p={left:Math.min(b.left,x.left),top:Math.min(b.top,x.top)-c,right:Math.max(b.left,x.left),bottom:Math.max(b.bottom,x.bottom)+c}),$=o.doc.scrollTop,K=o.doc.scrollLeft;if(k.scrollTop!=null&&(ea(o,k.scrollTop),Math.abs(o.doc.scrollTop-$)>1&&(m=!0)),k.scrollLeft!=null&&(Io(o,k.scrollLeft),Math.abs(o.doc.scrollLeft-K)>1&&(m=!0)),!m)break}return p}function Ep(o,s){var u=ql(o,s);u.scrollTop!=null&&ea(o,u.scrollTop),u.scrollLeft!=null&&Io(o,u.scrollLeft)}function ql(o,s){var u=o.display,c=po(o.display);s.top<0&&(s.top=0);var p=o.curOp&&o.curOp.scrollTop!=null?o.curOp.scrollTop:u.scroller.scrollTop,h=Jt(o),m={};s.bottom-s.top>h&&(s.bottom=s.top+h);var b=o.doc.height+nt(u),x=s.topb-c;if(s.topp+h){var $=Math.min(s.top,(k?b:s.bottom)-h);$!=p&&(m.scrollTop=$)}var K=o.options.fixedGutter?0:u.gutters.offsetWidth,vt=o.curOp&&o.curOp.scrollLeft!=null?o.curOp.scrollLeft:u.scroller.scrollLeft-K,mt=Vt(o)-u.gutters.offsetWidth,Ot=s.right-s.left>mt;return Ot&&(s.right=s.left+mt),s.left<10?m.scrollLeft=0:s.leftmt+vt-3&&(m.scrollLeft=s.right+(Ot?0:10)-mt),m}function Ka(o,s){s!=null&&(ki(o),o.curOp.scrollTop=(o.curOp.scrollTop==null?o.doc.scrollTop:o.curOp.scrollTop)+s)}function us(o){ki(o);var s=o.getCursor();o.curOp.scrollToPos={from:s,to:s,margin:o.options.cursorScrollMargin}}function ta(o,s,u){s==null&&u==null||ki(o),s!=null&&(o.curOp.scrollLeft=s),u!=null&&(o.curOp.scrollTop=u)}function Pp(o,s){ki(o),o.curOp.scrollToPos=s}function ki(o){var s=o.curOp.scrollToPos;s&&(o.curOp.scrollToPos=null,Zc(o,$a(o,s.from),$a(o,s.to),s.margin))}function Zc(o,s,u,c){var p=ql(o,{left:Math.min(s.left,u.left),top:Math.min(s.top,u.top)-c,right:Math.max(s.right,u.right),bottom:Math.max(s.bottom,u.bottom)+c});ta(o,p.scrollLeft,p.scrollTop)}function ea(o,s){Math.abs(o.doc.scrollTop-s)<2||(et||Kl(o,{top:s}),na(o,s,!0),et&&Kl(o),fs(o,100))}function na(o,s,u){s=Math.max(0,Math.min(o.display.scroller.scrollHeight-o.display.scroller.clientHeight,s)),(o.display.scroller.scrollTop!=s||u)&&(o.doc.scrollTop=s,o.display.scrollbars.setScrollTop(s),o.display.scroller.scrollTop!=s&&(o.display.scroller.scrollTop=s))}function Io(o,s,u,c){s=Math.max(0,Math.min(s,o.display.scroller.scrollWidth-o.display.scroller.clientWidth)),(u?s==o.doc.scrollLeft:Math.abs(o.doc.scrollLeft-s)<2)&&!c||(o.doc.scrollLeft=s,sa(o),o.display.scroller.scrollLeft!=s&&(o.display.scroller.scrollLeft=s),o.display.scrollbars.setScrollLeft(s))}function ra(o){var s=o.display,u=s.gutters.offsetWidth,c=Math.round(o.doc.height+nt(o.display));return{clientHeight:s.scroller.clientHeight,viewHeight:s.wrapper.clientHeight,scrollWidth:s.scroller.scrollWidth,clientWidth:s.scroller.clientWidth,viewWidth:s.wrapper.clientWidth,barLeft:o.options.fixedGutter?u:0,docHeight:c,scrollHeight:c+ft(o)+s.barHeight,nativeBarWidth:s.nativeBarWidth,gutterWidth:u}}var Ei=function(o,s,u){this.cm=u;var c=this.vert=gt("div",[gt("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),p=this.horiz=gt("div",[gt("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");c.tabIndex=p.tabIndex=-1,o(c),o(p),Qt(c,"scroll",function(){c.clientHeight&&s(c.scrollTop,"vertical")}),Qt(p,"scroll",function(){p.clientWidth&&s(p.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,U&&S<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Ei.prototype.update=function(o){var s=o.scrollWidth>o.clientWidth+1,u=o.scrollHeight>o.clientHeight+1,c=o.nativeBarWidth;if(u){this.vert.style.display="block",this.vert.style.bottom=s?c+"px":"0";var p=o.viewHeight-(s?c:0);this.vert.firstChild.style.height=Math.max(0,o.scrollHeight-o.clientHeight+p)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(s){this.horiz.style.display="block",this.horiz.style.right=u?c+"px":"0",this.horiz.style.left=o.barLeft+"px";var h=o.viewWidth-o.barLeft-(u?c:0);this.horiz.firstChild.style.width=Math.max(0,o.scrollWidth-o.clientWidth+h)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&o.clientHeight>0&&(c==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:u?c:0,bottom:s?c:0}},Ei.prototype.setScrollLeft=function(o){this.horiz.scrollLeft!=o&&(this.horiz.scrollLeft=o),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Ei.prototype.setScrollTop=function(o){this.vert.scrollTop!=o&&(this.vert.scrollTop=o),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Ei.prototype.zeroWidthHack=function(){var o=pt&&!Et?"12px":"18px";this.horiz.style.height=this.vert.style.width=o,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new Pe,this.disableVert=new Pe},Ei.prototype.enableZeroWidthBar=function(o,s,u){function c(){var p=o.getBoundingClientRect();(u=="vert"?document.elementFromPoint(p.right-1,(p.top+p.bottom)/2):document.elementFromPoint((p.right+p.left)/2,p.bottom-1))!=o?o.style.visibility="hidden":s.set(1e3,c)}o.style.visibility="",s.set(1e3,c)},Ei.prototype.clear=function(){var o=this.horiz.parentNode;o.removeChild(this.horiz),o.removeChild(this.vert)};var oa=function(){};function ps(o,s){s||(s=ra(o));var u=o.display.barWidth,c=o.display.barHeight;qr(o,s);for(var p=0;p<4&&u!=o.display.barWidth||c!=o.display.barHeight;p++)u!=o.display.barWidth&&o.options.lineWrapping&&Ga(o),qr(o,ra(o)),u=o.display.barWidth,c=o.display.barHeight}function qr(o,s){var u=o.display,c=u.scrollbars.update(s);u.sizer.style.paddingRight=(u.barWidth=c.right)+"px",u.sizer.style.paddingBottom=(u.barHeight=c.bottom)+"px",u.heightForcer.style.borderBottom=c.bottom+"px solid transparent",c.right&&c.bottom?(u.scrollbarFiller.style.display="block",u.scrollbarFiller.style.height=c.bottom+"px",u.scrollbarFiller.style.width=c.right+"px"):u.scrollbarFiller.style.display="",c.bottom&&o.options.coverGutterNextToScrollbar&&o.options.fixedGutter?(u.gutterFiller.style.display="block",u.gutterFiller.style.height=c.bottom+"px",u.gutterFiller.style.width=s.gutterWidth+"px"):u.gutterFiller.style.display=""}oa.prototype.update=function(){return{bottom:0,right:0}},oa.prototype.setScrollLeft=function(){},oa.prototype.setScrollTop=function(){},oa.prototype.clear=function(){};var Qc={native:Ei,null:oa};function tu(o){o.display.scrollbars&&(o.display.scrollbars.clear(),o.display.scrollbars.addClass&&Z(o.display.wrapper,o.display.scrollbars.addClass)),o.display.scrollbars=new Qc[o.options.scrollbarStyle](function(s){o.display.wrapper.insertBefore(s,o.display.scrollbarFiller),Qt(s,"mousedown",function(){o.state.focused&&setTimeout(function(){return o.display.input.focus()},0)}),s.setAttribute("cm-not-content","true")},function(s,u){u=="horizontal"?Io(o,s):ea(o,s)},o),o.display.scrollbars.addClass&&Yt(o.display.wrapper,o.display.scrollbars.addClass)}var Ap=0;function Pi(o){o.curOp={cm:o,viewChanged:!1,startHeight:o.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Ap,markArrays:null},_i(o.curOp)}function Ai(o){var s=o.curOp;s&&es(s,function(u){for(var c=0;c=u.viewTo)||u.maxLineChanged&&s.options.lineWrapping,o.update=o.mustUpdate&&new Ya(s,o.mustUpdate&&{top:o.scrollTop,ensure:o.scrollToPos},o.forceUpdate)}function Lp(o){o.updatedDisplay=o.mustUpdate&&Gl(o.cm,o.update)}function Dp(o){var s=o.cm,u=s.display;o.updatedDisplay&&Ga(s),o.barMeasure=ra(s),u.maxLineChanged&&!s.options.lineWrapping&&(o.adjustWidthTo=Wr(s,u.maxLine,u.maxLine.text.length).left+3,s.display.sizerWidth=o.adjustWidthTo,o.barMeasure.scrollWidth=Math.max(u.scroller.clientWidth,u.sizer.offsetLeft+o.adjustWidthTo+ft(s)+s.display.barWidth),o.maxScrollLeft=Math.max(0,u.sizer.offsetLeft+o.adjustWidthTo-Vt(s))),(o.updatedDisplay||o.selectionChanged)&&(o.preparedSelection=u.input.prepareSelection())}function ia(o){var s=o.cm;o.adjustWidthTo!=null&&(s.display.sizer.style.minWidth=o.adjustWidthTo+"px",o.maxScrollLeft=o.display.viewTo)){var u=+new Date+o.options.workTime,c=xo(o,s.highlightFrontier),p=[];s.iter(c.line,Math.min(s.first+s.size,o.display.viewTo+500),function(h){if(c.line>=o.display.viewFrom){var m=h.styles,b=h.text.length>o.options.maxHighlightLength?Jn(s.mode,c.state):null,x=Vs(o,h,c,!0);b&&(c.state=b),h.styles=x.styles;var k=h.styleClasses,$=x.classes;$?h.styleClasses=$:k&&(h.styleClasses=null);for(var K=!m||m.length!=h.styles.length||k!=$&&(!k||!$||k.bgClass!=$.bgClass||k.textClass!=$.textClass),vt=0;!K&&vtu)return fs(o,o.options.workDelay),!0}),s.highlightFrontier=c.line,s.modeFrontier=Math.max(s.modeFrontier,c.line),p.length&&mr(o,function(){for(var h=0;h=u.viewFrom&&s.visible.to<=u.viewTo&&(u.updateLineNumbers==null||u.updateLineNumbers>=u.viewTo)&&u.renderedView==u.view&&Jc(o)==0)return!1;ru(o)&&(ni(o),s.dims=Rl(o));var p=c.first+c.size,h=Math.max(s.visible.from-o.options.viewportMargin,c.first),m=Math.min(p,s.visible.to+o.options.viewportMargin);u.viewFromm&&u.viewTo-m<20&&(m=Math.min(p,u.viewTo)),ro&&(h=vr(o.doc,h),m=Rr(o.doc,m));var b=h!=u.viewFrom||m!=u.viewTo||u.lastWrapHeight!=s.wrapperHeight||u.lastWrapWidth!=s.wrapperWidth;Op(o,h,m),u.viewOffset=Br(be(o.doc,u.viewFrom)),o.display.mover.style.top=u.viewOffset+"px";var x=Jc(o);if(!b&&x==0&&!s.force&&u.renderedView==u.view&&(u.updateLineNumbers==null||u.updateLineNumbers>=u.viewTo))return!1;var k=Vp(o);return x>4&&(u.lineDiv.style.display="none"),nu(o,u.updateLineNumbers,s.dims),x>4&&(u.lineDiv.style.display=""),u.renderedView=u.view,Fp(k),bt(u.cursorDiv),bt(u.selectionDiv),u.gutters.style.height=u.sizer.style.minHeight=0,b&&(u.lastWrapHeight=s.wrapperHeight,u.lastWrapWidth=s.wrapperWidth,fs(o,400)),u.updateLineNumbers=null,!0}function eu(o,s){for(var u=s.viewport,c=!0;;c=!1){if(c&&o.options.lineWrapping&&s.oldDisplayWidth!=Vt(o))c&&(s.visible=Qs(o.display,o.doc,u));else if(u&&u.top!=null&&(u={top:Math.min(o.doc.height+nt(o.display)-Jt(o),u.top)}),s.visible=Qs(o.display,o.doc,u),s.visible.from>=o.display.viewFrom&&s.visible.to<=o.display.viewTo)break;if(!Gl(o,s))break;Ga(o);var p=ra(o);Ks(o),ps(o,p),Ja(o,p),s.force=!1}s.signal(o,"update",o),o.display.viewFrom==o.display.reportedViewFrom&&o.display.viewTo==o.display.reportedViewTo||(s.signal(o,"viewportChange",o,o.display.viewFrom,o.display.viewTo),o.display.reportedViewFrom=o.display.viewFrom,o.display.reportedViewTo=o.display.viewTo)}function Kl(o,s){var u=new Ya(o,s);if(Gl(o,u)){Ga(o),eu(o,u);var c=ra(o);Ks(o),ps(o,c),Ja(o,c),u.finish()}}function nu(o,s,u){var c=o.display,p=o.options.lineNumbers,h=c.lineDiv,m=h.firstChild;function b(Ot){var zt=Ot.nextSibling;return E&&pt&&o.display.currentWheelTarget==Ot?Ot.style.display="none":Ot.parentNode.removeChild(Ot),zt}for(var x=c.view,k=c.viewFrom,$=0;$-1&&(vt=!1),Ws(o,K,k,u)),vt&&(bt(K.lineNumber),K.lineNumber.appendChild(document.createTextNode(Ko(o.options,k)))),m=K.node.nextSibling}else{var mt=qs(o,K,k,u);h.insertBefore(mt,m)}k+=K.size}for(;m;)m=b(m)}function Yl(o){var s=o.gutters.offsetWidth;o.sizer.style.marginLeft=s+"px",xn(o,"gutterChanged",o)}function Ja(o,s){o.display.sizer.style.minHeight=s.docHeight+"px",o.display.heightForcer.style.top=s.docHeight+"px",o.display.gutters.style.height=s.docHeight+o.display.barHeight+ft(o)+"px"}function sa(o){var s=o.display,u=s.view;if(s.alignWidgets||s.gutters.firstChild&&o.options.fixedGutter){for(var c=zl(s)-s.scroller.scrollLeft+o.doc.scrollLeft,p=s.gutters.offsetWidth,h=c+"px",m=0;m=102&&(o.display.chromeScrollHack==null?o.display.sizer.style.pointerEvents="none":clearTimeout(o.display.chromeScrollHack),o.display.chromeScrollHack=setTimeout(function(){o.display.chromeScrollHack=null,o.display.sizer.style.pointerEvents=""},100));var u=su(s),c=u.x,p=u.y,h=Vo;s.deltaMode===0&&(c=s.deltaX,p=s.deltaY,h=1);var m=o.display,b=m.scroller,x=b.scrollWidth>b.clientWidth,k=b.scrollHeight>b.clientHeight;if(c&&x||p&&k){if(p&&pt&&E){t:for(var $=s.target,K=m.view;$!=b;$=$.parentNode)for(var vt=0;vt=0&&P(o,c.to())<=0)return u}return-1};var an=function(o,s){this.anchor=o,this.head=s};function oo(o,s,u){var c=o&&o.options.selectionsMayTouch,p=s[u];s.sort(function(vt,mt){return P(vt.from(),mt.from())}),u=me(s,p);for(var h=1;h0:x>=0){var k=ve(b.from(),m.from()),$=oe(b.to(),m.to()),K=b.empty()?m.from()==m.head:b.from()==b.head;h<=u&&--u,s.splice(--h,2,new an(K?$:k,K?k:$))}}return new Gr(s,u)}function ri(o,s){return new Gr([new an(o,s||o)],0)}function ho(o){return o.text?$t(o.from.line+o.text.length-1,ee(o.text).length+(o.text.length==1?o.from.ch:0)):o.to}function lu(o,s){if(P(o,s.from)<0)return o;if(P(o,s.to)<=0)return ho(s);var u=o.line+s.text.length-(s.to.line-s.from.line)-1,c=o.ch;return o.line==s.to.line&&(c+=ho(s).ch-s.to.ch),$t(u,c)}function Qa(o,s){for(var u=[],c=0;c1&&o.remove(b.line+1,Ot-1),o.insert(b.line+1,se)}xn(o,"change",o,s)}function Ho(o,s,u){function c(p,h,m){if(p.linked)for(var b=0;b1&&!o.done[o.done.length-2].ranges?(o.done.pop(),ee(o.done)):void 0}function Zl(o,s,u,c){var p=o.history;p.undone.length=0;var h,m,b=+new Date;if((p.lastOp==c||p.lastOrigin==s.origin&&s.origin&&(s.origin.charAt(0)=="+"&&p.lastModTime>b-(o.cm?o.cm.options.historyEventDelay:500)||s.origin.charAt(0)=="*"))&&(h=zp(p,p.lastOp==c)))m=ee(h.changes),P(s.from,s.to)==0&&P(s.from,m.to)==0?m.to=ho(s):h.changes.push(Xl(o,s));else{var x=ee(p.done);for(x&&x.ranges||rl(o.sel,p.done),h={changes:[Xl(o,s)],generation:p.generation},p.done.push(h);p.done.length>p.undoDepth;)p.done.shift(),p.done[0].ranges||p.done.shift()}p.done.push(u),p.generation=++p.maxGeneration,p.lastModTime=p.lastSelTime=b,p.lastOp=p.lastSelOp=c,p.lastOrigin=p.lastSelOrigin=s.origin,m||ht(o,"historyAdded")}function Ql(o,s,u,c){var p=s.charAt(0);return p=="*"||p=="+"&&u.ranges.length==c.ranges.length&&u.somethingSelected()==c.somethingSelected()&&new Date-o.history.lastSelTime<=(o.cm?o.cm.options.historyEventDelay:500)}function Bp(o,s,u,c){var p=o.history,h=c&&c.origin;u==p.lastSelOp||h&&p.lastSelOrigin==h&&(p.lastModTime==p.lastSelTime&&p.lastOrigin==h||Ql(o,h,ee(p.done),s))?p.done[p.done.length-1]=s:rl(s,p.done),p.lastSelTime=+new Date,p.lastSelOrigin=h,p.lastSelOp=u,c&&c.clearRedo!==!1&&fu(p.undone)}function rl(o,s){var u=ee(s);u&&u.ranges&&u.equals(o)||s.push(o)}function tc(o,s,u,c){var p=s["spans_"+o.id],h=0;o.iter(Math.max(o.first,u),Math.min(o.first+o.size,c),function(m){m.markedSpans&&((p||(p=s["spans_"+o.id]={}))[h]=m.markedSpans),++h})}function Up(o){if(!o)return null;for(var s,u=0;u-1&&(ee(b)[K]=k[K],delete k[K])}}}return c}function Mi(o,s,u,c){if(c){var p=o.anchor;if(u){var h=P(s,p)<0;h!=P(u,p)<0?(p=s,s=u):h!=P(s,u)<0&&(s=u)}return new an(p,s)}return new an(u||s,s)}function ol(o,s,u,c,p){p==null&&(p=o.cm&&(o.cm.display.shift||o.extend)),ir(o,new Gr([Mi(o.sel.primary(),s,u,p)],0),c)}function du(o,s,u){for(var c=[],p=o.cm&&(o.cm.display.shift||o.extend),h=0;h=s.ch:b.to>s.ch))){if(p&&(ht(x,"beforeCursorEnter"),x.explicitlyCleared)){if(h.markedSpans){--m;continue}break}if(!x.atomic)continue;if(u){var K=x.find(c<0?1:-1),vt=void 0;if((c<0?$:k)&&(K=vs(o,K,-c,K&&K.line==s.line?h:null)),K&&K.line==s.line&&(vt=P(K,u))&&(c<0?vt<0:vt>0))return Li(o,K,s,c,p)}var mt=x.find(c<0?-1:1);return(c<0?k:$)&&(mt=vs(o,mt,c,mt.line==s.line?h:null)),mt?Li(o,mt,s,c,p):null}}return s}function aa(o,s,u,c,p){var h=c||1,m=Li(o,s,u,h,p)||!p&&Li(o,s,u,h,!0)||Li(o,s,u,-h,p)||!p&&Li(o,s,u,-h,!0);return m||(o.cantEdit=!0,$t(o.first,0))}function vs(o,s,u,c){return u<0&&s.ch==0?s.line>o.first?le(o,$t(s.line-1)):null:u>0&&s.ch==(c||be(o,s.line)).text.length?s.line=0;--p)mu(o,{from:c[p].from,to:c[p].to,text:p?[""]:s.text,origin:s.origin});else mu(o,s)}}function mu(o,s){if(s.text.length!=1||s.text[0]!=""||P(s.from,s.to)!=0){var u=Qa(o,s);Zl(o,s,u,o.cm?o.cm.curOp.id:NaN),la(o,s,u,Jo(o,s));var c=[];Ho(o,function(p,h){h||me(c,p.history)!=-1||(bu(p.history,s),c.push(p.history)),la(p,s,null,Jo(p,s))})}}function ll(o,s,u){var c=o.cm&&o.cm.state.suppressEdits;if(!c||u){for(var p,h=o.history,m=o.sel,b=s=="undo"?h.done:h.undone,x=s=="undo"?h.undone:h.done,k=0;k=0;--mt){var Ot=vt(mt);if(Ot)return Ot.v}}}}function ic(o,s){if(s!=0&&(o.first+=s,o.sel=new Gr(je(o.sel.ranges,function(p){return new an($t(p.anchor.line+s,p.anchor.ch),$t(p.head.line+s,p.head.ch))}),o.sel.primIndex),o.cm)){or(o.cm,o.first,o.first-s,s);for(var u=o.cm.display,c=u.viewFrom;co.lastLine())){if(s.from.lineh&&(s={from:s.from,to:$t(h,be(o,h).text.length),text:[s.text[0]],origin:s.origin}),s.removed=lr(o,s.from,s.to),u||(u=Qa(o,s)),o.cm?$p(o.cm,s,c):Jl(o,s,c),sl(o,u,ue),o.cantEdit&&aa(o,$t(o.firstLine(),0))&&(o.cantEdit=!1)}}function $p(o,s,u){var c=o.doc,p=o.display,h=s.from,m=s.to,b=!1,x=h.line;o.options.lineWrapping||(x=en(jr(be(c,h.line))),c.iter(x,m.line+1,function(mt){if(mt==p.maxLine)return b=!0,!0})),c.sel.contains(s.from,s.to)>-1&&te(o),Jl(c,s,u,Yc(o)),o.options.lineWrapping||(c.iter(x,h.line+s.text.length,function(mt){var Ot=wi(mt);Ot>p.maxLineLength&&(p.maxLine=mt,p.maxLineLength=Ot,p.maxLineChanged=!0,b=!1)}),b&&(o.curOp.updateMaxLine=!0)),Hs(c,h.line),fs(o,400);var k=s.text.length-(m.line-h.line)-1;s.full?or(o):h.line!=m.line||s.text.length!=1||uu(o.doc,s)?or(o,h.line,m.line+1,k):fo(o,h.line,"text");var $=ye(o,"changes"),K=ye(o,"change");if(K||$){var vt={from:h,to:m,text:s.text,removed:s.removed,origin:s.origin};K&&xn(o,"change",o,vt),$&&(o.curOp.changeObjs||(o.curOp.changeObjs=[])).push(vt)}o.display.selForContextMenu=null}function ms(o,s,u,c,p){var h;c||(c=u),P(c,u)<0&&(u=(h=[c,u])[0],c=h[1]),typeof s=="string"&&(s=o.splitLines(s)),Di(o,{from:u,to:c,text:s,origin:p})}function yu(o,s,u,c){u1||!(this.children[0]instanceof pa))){var b=[];this.collapse(b),this.children=[new pa(b)],this.children[0].parent=this}},collapse:function(o){for(var s=0;s50){for(var m=p.lines.length%25+25,b=m;b10);o.parent.maybeSpill()}},iterN:function(o,s,u){for(var c=0;c0||m==0&&h.clearWhenEmpty!==!1)return h;if(h.replacedWith&&(h.collapsed=!0,h.widgetNode=F("span",[h.replacedWith],"CodeMirror-widget"),c.handleMouseEvents||h.widgetNode.setAttribute("cm-ignore-events","true"),c.insertLeft&&(h.widgetNode.insertLeft=!0)),h.collapsed){if(Cn(o,s.line,s,u,h)||s.line!=u.line&&Cn(o,u.line,s,u,h))throw new Error("Inserting collapsed marker partially overlapping an existing one");Rs()}h.addToHistory&&Zl(o,{from:s,to:u,origin:"markText"},o.sel,NaN);var b,x=s.line,k=o.cm;if(o.iter(x,u.line+1,function(K){k&&h.collapsed&&!k.options.lineWrapping&&jr(K)==k.display.maxLine&&(b=!0),h.collapsed&&x!=s.line&&cr(K,0),zs(K,new Pr(h,x==s.line?s.ch:null,x==u.line?u.ch:null),o.cm&&o.cm.curOp),++x}),h.collapsed&&o.iter(s.line,u.line+1,function(K){zr(o,K)&&cr(K,0)}),h.clearOnEnter&&Qt(h,"beforeCursorEnter",function(){return h.clear()}),h.readOnly&&(vi(),(o.history.done.length||o.history.undone.length)&&o.clearHistory()),h.collapsed&&(h.id=++lc,h.atomic=!0),k){if(b&&(k.curOp.updateMaxLine=!0),h.collapsed)or(k,s.line,u.line+1);else if(h.className||h.startStyle||h.endStyle||h.css||h.attributes||h.title)for(var $=s.line;$<=u.line;$++)fo(k,$,"text");h.atomic&&al(k.doc),xn(k,"markerAdded",k,h)}return h}ii.prototype.clear=function(){if(!this.explicitlyCleared){var o=this.doc.cm,s=o&&!o.curOp;if(s&&Pi(o),ye(this,"clear")){var u=this.find();u&&xn(this,"clear",u.from,u.to)}for(var c=null,p=null,h=0;ho.display.maxLineLength&&(o.display.maxLine=k,o.display.maxLineLength=$,o.display.maxLineChanged=!0)}c!=null&&o&&this.collapsed&&or(o,c,p+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,o&&al(o.doc)),o&&xn(o,"markerCleared",o,this,c,p),s&&Ai(o),this.parent&&this.parent.clear()}},ii.prototype.find=function(o,s){var u,c;o==null&&this.type=="bookmark"&&(o=1);for(var p=0;p=0;x--)Di(this,c[x]);b?rc(this,b):this.cm&&us(this.cm)}),undo:Qn(function(){ll(this,"undo")}),redo:Qn(function(){ll(this,"redo")}),undoSelection:Qn(function(){ll(this,"undo",!0)}),redoSelection:Qn(function(){ll(this,"redo",!0)}),setExtending:function(o){this.extend=o},getExtending:function(){return this.extend},historySize:function(){for(var o=this.history,s=0,u=0,c=0;c=o.ch)&&s.push(p.marker.parent||p.marker)}return s},findMarks:function(o,s,u){o=le(this,o),s=le(this,s);var c=[],p=o.line;return this.iter(o.line,s.line+1,function(h){var m=h.markedSpans;if(m)for(var b=0;b=x.to||x.from==null&&p!=o.line||x.from!=null&&p==s.line&&x.from>=s.ch||u&&!u(x.marker)||c.push(x.marker.parent||x.marker)}++p}),c},getAllMarks:function(){var o=[];return this.iter(function(s){var u=s.markedSpans;if(u)for(var c=0;co)return s=o,!0;o-=h,++u}),le(this,$t(u,s))},indexFromPos:function(o){var s=(o=le(this,o)).ch;if(o.lines&&(s=o.from),o.to!=null&&o.to-1)return s.state.draggingText(o),void setTimeout(function(){return s.display.input.focus()},20);try{var $=o.dataTransfer.getData("Text");if($){var K;if(s.state.draggingText&&!s.state.draggingText.copy&&(K=s.listSelections()),sl(s.doc,ri(u,u)),K)for(var vt=0;vt=0;b--)ms(o.doc,"",c[b].from,c[b].to,"+delete");us(o)})}function ha(o,s,u){var c=ct(o.text,s+u,u);return c<0||c>o.text.length?null:c}function pl(o,s,u){var c=ha(o,s.ch,u);return c==null?null:new $t(s.line,c,u<0?"after":"before")}function fl(o,s,u,c,p){if(o){s.doc.direction=="rtl"&&(p=-p);var h=ze(u,s.doc.direction);if(h){var m,b=p<0?ee(h):h[0],x=p<0==(b.level==1)?"after":"before";if(b.level>0||s.doc.direction=="rtl"){var k=Do(s,u);m=p<0?u.text.length-1:0;var $=$r(s,k,m).top;m=St(function(K){return $r(s,k,K).top==$},p<0==(b.level==1)?b.from:b.to-1,m),x=="before"&&(m=ha(u,m,1))}else m=p<0?b.to:b.from;return new $t(c,m,x)}}return new $t(c,p<0?u.text.length:0,p<0?"before":"after")}function ju(o,s,u,c){var p=ze(s,o.doc.direction);if(!p)return pl(s,u,c);u.ch>=s.text.length?(u.ch=s.text.length,u.sticky="before"):u.ch<=0&&(u.ch=0,u.sticky="after");var h=ge(p,u.ch,u.sticky),m=p[h];if(o.doc.direction=="ltr"&&m.level%2==0&&(c>0?m.to>u.ch:m.from=m.from&&vt>=$.begin)){var mt=K?"before":"after";return new $t(u.line,vt,mt)}}var Ot=function(se,fe,re){for(var xe=function(hn,wr){return wr?new $t(u.line,x(hn,1),"before"):new $t(u.line,hn,"after")};se>=0&&se0==(we.level!=1),dn=Ee?re.begin:x(re.end,-1);if(we.from<=dn&&dn0?$.end:x($.begin,-1);return Kt==null||c>0&&Kt==s.text.length||!(zt=Ot(c>0?0:p.length-1,c,k(Kt)))?null:zt}go.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},go.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},go.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},go.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},go.default=pt?go.macDefault:go.pcDefault;var _s={selectAll:gu,singleSelection:function(o){return o.setSelection(o.getCursor("anchor"),o.getCursor("head"),ue)},killLine:function(o){return si(o,function(s){if(s.empty()){var u=be(o.doc,s.head.line).text.length;return s.head.ch==u&&s.head.line0)p=new $t(p.line,p.ch+1),o.replaceRange(h.charAt(p.ch-1)+h.charAt(p.ch-2),$t(p.line,p.ch-2),p,"+transpose");else if(p.line>o.doc.first){var m=be(o.doc,p.line-1).text;m&&(p=new $t(p.line,1),o.replaceRange(h.charAt(0)+o.doc.lineSeparator()+m.charAt(m.length-1),$t(p.line-1,m.length-1),p,"+transpose"))}}u.push(new an(p,p))}o.setSelections(u)})},newlineAndIndent:function(o){return mr(o,function(){for(var s=o.listSelections(),u=s.length-1;u>=0;u--)o.replaceRange(o.doc.lineSeparator(),s[u].anchor,s[u].head,"+input");s=o.listSelections();for(var c=0;c-1&&(P((p=m.ranges[p]).from(),s)<0||s.xRel>0)&&(P(p.to(),s)>0||s.xRel<0)?tf(o,c,s,h):ba(o,c,s,h)}function tf(o,s,u,c){var p=o.display,h=!1,m=Zn(o,function(k){E&&(p.scroller.draggable=!1),o.state.draggingText=!1,o.state.delayingBlurEvent&&(o.hasFocus()?o.state.delayingBlurEvent=!1:Ul(o)),rt(p.wrapper.ownerDocument,"mouseup",m),rt(p.wrapper.ownerDocument,"mousemove",b),rt(p.scroller,"dragstart",x),rt(p.scroller,"drop",m),h||(Xe(k),c.addNew||ol(o.doc,u,null,null,c.extend),E&&!st||U&&S==9?setTimeout(function(){p.wrapper.ownerDocument.body.focus({preventScroll:!0}),p.input.focus()},20):p.input.focus())}),b=function(k){h=h||Math.abs(s.clientX-k.clientX)+Math.abs(s.clientY-k.clientY)>=10},x=function(){return h=!0};E&&(p.scroller.draggable=!0),o.state.draggingText=m,m.copy=!c.moveOnDrag,Qt(p.wrapper.ownerDocument,"mouseup",m),Qt(p.wrapper.ownerDocument,"mousemove",b),Qt(p.scroller,"dragstart",x),Qt(p.scroller,"drop",m),o.state.delayingBlurEvent=!0,setTimeout(function(){return p.input.focus()},20),p.scroller.dragDrop&&p.scroller.dragDrop()}function Ru(o,s,u){if(u=="char")return new an(s,s);if(u=="word")return o.findWordAt(s);if(u=="line")return new an($t(s.line,0),le(o.doc,$t(s.line+1,0)));var c=u(o,s);return new an(c.from,c.to)}function ba(o,s,u,c){U&&Ul(o);var p=o.display,h=o.doc;Xe(s);var m,b,x=h.sel,k=x.ranges;if(c.addNew&&!c.extend?(b=h.sel.contains(u),m=b>-1?k[b]:new an(u,u)):(m=h.sel.primary(),b=h.sel.primIndex),c.unit=="rectangle")c.addNew||(m=new an(u,u)),u=Si(o,s,!0,!0),b=-1;else{var $=Ru(o,u,c.unit);m=c.extend?Mi(m,$.anchor,$.head,c.extend):$}c.addNew?b==-1?(b=k.length,ir(h,oo(o,k.concat([m]),b),{scroll:!1,origin:"*mouse"})):k.length>1&&k[b].empty()&&c.unit=="char"&&!c.extend?(ir(h,oo(o,k.slice(0,b).concat(k.slice(b+1)),0),{scroll:!1,origin:"*mouse"}),x=h.sel):il(h,b,m,at):(b=0,ir(h,new Gr([m],0),at),x=h.sel);var K=u;function vt(re){if(P(K,re)!=0)if(K=re,c.unit=="rectangle"){for(var xe=[],we=o.options.tabSize,Ee=Ce(be(h,u.line).text,u.ch,we),dn=Ce(be(h,re.line).text,re.ch,we),hn=Math.min(Ee,dn),wr=Math.max(Ee,dn),wn=Math.min(u.line,re.line),pr=Math.min(o.lastLine(),Math.max(u.line,re.line));wn<=pr;wn++){var _r=be(h,wn).text,kn=qt(_r,hn,we);hn==wr?xe.push(new an($t(wn,kn),$t(wn,kn))):_r.length>kn&&xe.push(new an($t(wn,kn),$t(wn,qt(_r,wr,we))))}xe.length||xe.push(new an(u,u)),ir(h,oo(o,x.ranges.slice(0,b).concat(xe),b),{origin:"*mouse",scroll:!1}),o.scrollIntoView(re)}else{var Nn,yr=m,Wn=Ru(o,re,c.unit),In=yr.anchor;P(Wn.anchor,In)>0?(Nn=Wn.head,In=ve(yr.from(),Wn.anchor)):(Nn=Wn.anchor,In=oe(yr.to(),Wn.head));var Vn=x.ranges.slice(0);Vn[b]=vl(o,new an(le(h,In),Nn)),ir(h,oo(o,Vn,b),at)}}var mt=p.wrapper.getBoundingClientRect(),Ot=0;function zt(re){var xe=++Ot,we=Si(o,re,!0,c.unit=="rectangle");if(we)if(P(we,K)!=0){o.curOp.focus=Pt(),vt(we);var Ee=Qs(p,h);(we.line>=Ee.to||we.linemt.bottom?20:0;dn&&setTimeout(Zn(o,function(){Ot==xe&&(p.scroller.scrollTop+=dn,zt(re))}),50)}}function Kt(re){o.state.selectingText=!1,Ot=1/0,re&&(Xe(re),p.input.focus()),rt(p.wrapper.ownerDocument,"mousemove",se),rt(p.wrapper.ownerDocument,"mouseup",fe),h.history.lastSelOrigin=null}var se=Zn(o,function(re){re.buttons!==0&&tr(re)?zt(re):Kt(re)}),fe=Zn(o,Kt);o.state.selectingText=fe,Qt(p.wrapper.ownerDocument,"mousemove",se),Qt(p.wrapper.ownerDocument,"mouseup",fe)}function vl(o,s){var u=s.anchor,c=s.head,p=be(o.doc,u.line);if(P(u,c)==0&&u.sticky==c.sticky)return s;var h=ze(p);if(!h)return s;var m=ge(h,u.ch,u.sticky),b=h[m];if(b.from!=u.ch&&b.to!=u.ch)return s;var x,k=m+(b.from==u.ch==(b.level!=1)?0:1);if(k==0||k==h.length)return s;if(c.line!=u.line)x=(c.line-u.line)*(o.doc.direction=="ltr"?1:-1)>0;else{var $=ge(h,c.ch,c.sticky),K=$-m||(c.ch-u.ch)*(b.level==1?-1:1);x=$==k-1||$==k?K<0:K>0}var vt=h[k+(x?-1:0)],mt=x==(vt.level==1),Ot=mt?vt.from:vt.to,zt=mt?"after":"before";return u.ch==Ot&&u.sticky==zt?s:new an(new $t(u.line,Ot,zt),c)}function gc(o,s,u,c){var p,h;if(s.touches)p=s.touches[0].clientX,h=s.touches[0].clientY;else try{p=s.clientX,h=s.clientY}catch{return!1}if(p>=Math.floor(o.display.gutters.getBoundingClientRect().right))return!1;c&&Xe(s);var m=o.display,b=m.lineDiv.getBoundingClientRect();if(h>b.bottom||!ye(o,u))return yn(s);h-=b.top-m.viewOffset;for(var x=0;x=p)return ht(o,u,o,Bn(o.doc,h),o.display.gutterSpecs[x].className,s),yn(s)}}function vc(o,s){return gc(o,s,"gutterClick",!0)}function zu(o,s){L(o.display,s)||ef(o,s)||_t(o,s,"contextmenu")||O||o.display.input.onContextMenu(s)}function ef(o,s){return!!ye(o,"gutterContextMenu")&&gc(o,s,"gutterContextMenu",!1)}function mc(o){o.display.wrapper.className=o.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+o.options.theme.replace(/(^|\s)\s*/g," cm-s-"),is(o)}hl.prototype.compare=function(o,s,u){return this.time+Zp>o&&P(s,this.pos)==0&&u==this.button};var xs={toString:function(){return"CodeMirror.Init"}},Bu={},Ss={};function Uu(o){var s=o.optionHandlers;function u(c,p,h,m){o.defaults[c]=p,h&&(s[c]=m?function(b,x,k){k!=xs&&h(b,x,k)}:h)}o.defineOption=u,o.Init=xs,u("value","",function(c,p){return c.setValue(p)},!0),u("mode",null,function(c,p){c.doc.modeOption=p,tl(c)},!0),u("indentUnit",2,tl,!0),u("indentWithTabs",!1),u("smartIndent",!0),u("tabSize",4,function(c){Fo(c),is(c),or(c)},!0),u("lineSeparator",null,function(c,p){if(c.doc.lineSep=p,p){var h=[],m=c.doc.first;c.doc.iter(function(x){for(var k=0;;){var $=x.text.indexOf(p,k);if($==-1)break;k=$+p.length,h.push($t(m,$))}m++});for(var b=h.length-1;b>=0;b--)ms(c.doc,p,h[b],$t(h[b].line,h[b].ch+p.length))}}),u("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(c,p,h){c.state.specialChars=new RegExp(p.source+(p.test(" ")?"":"| "),"g"),h!=xs&&c.refresh()}),u("specialCharPlaceholder",Ia,function(c){return c.refresh()},!0),u("electricChars",!0),u("inputStyle",ut?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),u("spellcheck",!1,function(c,p){return c.getInputField().spellcheck=p},!0),u("autocorrect",!1,function(c,p){return c.getInputField().autocorrect=p},!0),u("autocapitalize",!1,function(c,p){return c.getInputField().autocapitalize=p},!0),u("rtlMoveVisually",!Bt),u("wholeLineUpdateBefore",!0),u("theme","default",function(c){mc(c),ds(c)},!0),u("keyMap","default",function(c,p,h){var m=Ro(p),b=h!=xs&&Ro(h);b&&b.detach&&b.detach(c,m),m.attach&&m.attach(c,b||null)}),u("extraKeys",null),u("configureMouse",null),u("lineWrapping",!1,rf,!0),u("gutters",[],function(c,p){c.display.gutterSpecs=Xa(p,c.options.lineNumbers),ds(c)},!0),u("fixedGutter",!0,function(c,p){c.display.gutters.style.left=p?zl(c.display)+"px":"0",c.refresh()},!0),u("coverGutterNextToScrollbar",!1,function(c){return ps(c)},!0),u("scrollbarStyle","native",function(c){tu(c),ps(c),c.display.scrollbars.setScrollTop(c.doc.scrollTop),c.display.scrollbars.setScrollLeft(c.doc.scrollLeft)},!0),u("lineNumbers",!1,function(c,p){c.display.gutterSpecs=Xa(c.options.gutters,p),ds(c)},!0),u("firstLineNumber",1,ds,!0),u("lineNumberFormatter",function(c){return c},ds,!0),u("showCursorWhenSelecting",!1,Ks,!0),u("resetSelectionOnContextMenu",!0),u("lineWiseCopyCut",!0),u("pasteLinesPerSelection",!0),u("selectionsMayTouch",!1),u("readOnly",!1,function(c,p){p=="nocursor"&&(Ti(c),c.display.input.blur()),c.display.input.readOnlyChanged(p)}),u("screenReaderLabel",null,function(c,p){p=p===""?null:p,c.display.input.screenReaderLabelChanged(p)}),u("disableInput",!1,function(c,p){p||c.display.input.reset()},!0),u("dragDrop",!0,nf),u("allowDropFileTypes",null),u("cursorBlinkRate",530),u("cursorScrollMargin",0),u("cursorHeight",1,Ks,!0),u("singleCursorHeightPerLine",!0,Ks,!0),u("workTime",100),u("workDelay",100),u("flattenSpans",!0,Fo,!0),u("addModeClass",!1,Fo,!0),u("pollInterval",100),u("undoDepth",200,function(c,p){return c.doc.history.undoDepth=p}),u("historyEventDelay",1250),u("viewportMargin",10,function(c){return c.refresh()},!0),u("maxHighlightLength",1e4,Fo,!0),u("moveInputWithCursor",!0,function(c,p){p||c.display.input.resetPosition()}),u("tabindex",null,function(c,p){return c.display.input.getField().tabIndex=p||""}),u("autofocus",null),u("direction","ltr",function(c,p){return c.doc.setDirection(p)},!0),u("phrases",null)}function nf(o,s,u){if(!s!=!(u&&u!=xs)){var c=o.display.dragFunctions,p=s?Qt:rt;p(o.display.scroller,"dragstart",c.start),p(o.display.scroller,"dragenter",c.enter),p(o.display.scroller,"dragover",c.over),p(o.display.scroller,"dragleave",c.leave),p(o.display.scroller,"drop",c.drop)}}function rf(o){o.options.lineWrapping?(Yt(o.display.wrapper,"CodeMirror-wrap"),o.display.sizer.style.minWidth="",o.display.sizerWidth=null):(Z(o.display.wrapper,"CodeMirror-wrap"),Bs(o)),Bl(o),or(o),is(o),setTimeout(function(){return ps(o)},100)}function Sn(o,s){var u=this;if(!(this instanceof Sn))return new Sn(o,s);this.options=s=s?Ie(s):{},Ie(Bu,s,!1);var c=s.value;typeof c=="string"?c=new Un(c,s.mode,null,s.lineSeparator,s.direction):s.mode&&(c.modeOption=s.mode),this.doc=c;var p=new Sn.inputStyles[s.inputStyle](this),h=this.display=new iu(o,c,p,s);for(var m in h.wrapper.CodeMirror=this,mc(this),s.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),tu(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new Pe,keySeq:null,specialChars:null},s.autofocus&&!ut&&h.input.focus(),U&&S<11&&setTimeout(function(){return u.display.input.reset(!0)},20),of(this),Pn(),Pi(this),this.curOp.forceUpdate=!0,pu(this,c),s.autofocus&&!ut||this.hasFocus()?setTimeout(function(){u.hasFocus()&&!u.state.focused&&Wl(u)},20):Ti(this),Ss)Ss.hasOwnProperty(m)&&Ss[m](this,s[m],xs);ru(this),s.finishInit&&s.finishInit(this);for(var b=0;b400}Qt(s.scroller,"touchstart",function(x){if(!_t(o,x)&&!h(x)&&!vc(o,x)){s.input.ensurePolled(),clearTimeout(u);var k=+new Date;s.activeTouch={start:k,moved:!1,prev:k-c.end<=300?c:null},x.touches.length==1&&(s.activeTouch.left=x.touches[0].pageX,s.activeTouch.top=x.touches[0].pageY)}}),Qt(s.scroller,"touchmove",function(){s.activeTouch&&(s.activeTouch.moved=!0)}),Qt(s.scroller,"touchend",function(x){var k=s.activeTouch;if(k&&!L(s,x)&&k.left!=null&&!k.moved&&new Date-k.start<300){var $,K=o.coordsChar(s.activeTouch,"page");$=!k.prev||m(k,k.prev)?new an(K,K):!k.prev.prev||m(k,k.prev.prev)?o.findWordAt(K):new an($t(K.line,0),le(o.doc,$t(K.line+1,0))),o.setSelection($.anchor,$.head),o.focus(),Xe(x)}p()}),Qt(s.scroller,"touchcancel",p),Qt(s.scroller,"scroll",function(){s.scroller.clientHeight&&(ea(o,s.scroller.scrollTop),Io(o,s.scroller.scrollLeft,!0),ht(o,"scroll",o))}),Qt(s.scroller,"mousewheel",function(x){return au(o,x)}),Qt(s.scroller,"DOMMouseScroll",function(x){return au(o,x)}),Qt(s.wrapper,"scroll",function(){return s.wrapper.scrollTop=s.wrapper.scrollLeft=0}),s.dragFunctions={enter:function(x){_t(o,x)||$e(x)},over:function(x){_t(o,x)||(Yp(o,x),$e(x))},start:function(x){return Su(o,x)},drop:Zn(o,Kp),leave:function(x){_t(o,x)||Ou(o)}};var b=s.input.getField();Qt(b,"keyup",function(x){return Nu.call(o,x)}),Qt(b,"keydown",Zn(o,hc)),Qt(b,"keypress",Zn(o,Iu)),Qt(b,"focus",function(x){return Wl(o,x)}),Qt(b,"blur",function(x){return Ti(o,x)})}Sn.defaults=Bu,Sn.optionHandlers=Ss;var yc=[];function wa(o,s,u,c){var p,h=o.doc;u==null&&(u="add"),u=="smart"&&(h.mode.indent?p=xo(o,s).state:u="prev");var m=o.options.tabSize,b=be(h,s),x=Ce(b.text,null,m);b.stateAfter&&(b.stateAfter=null);var k,$=b.text.match(/^\s*/)[0];if(c||/\S/.test(b.text)){if(u=="smart"&&((k=h.mode.indent(p,b.text.slice($.length),b.text))==ce||k>150)){if(!c)return;u="prev"}}else k=0,u="not";u=="prev"?k=s>h.first?Ce(be(h,s-1).text,null,m):0:u=="add"?k=x+o.options.indentUnit:u=="subtract"?k=x-o.options.indentUnit:typeof u=="number"&&(k=x+u),k=Math.max(0,k);var K="",vt=0;if(o.options.indentWithTabs)for(var mt=Math.floor(k/m);mt;--mt)vt+=m,K+=" ";if(vtm,x=To(s),k=null;if(b&&c.ranges.length>1)if(vo&&vo.text.join(` +`)==s){if(c.ranges.length%vo.text.length==0){k=[];for(var $=0;$=0;vt--){var mt=c.ranges[vt],Ot=mt.from(),zt=mt.to();mt.empty()&&(u&&u>0?Ot=$t(Ot.line,Ot.ch-u):o.state.overwrite&&!b?zt=$t(zt.line,Math.min(be(h,zt.line).text.length,zt.ch+ee(x).length)):b&&vo&&vo.lineWise&&vo.text.join(` +`)==x.join(` +`)&&(Ot=zt=$t(Ot.line,0)));var Kt={from:Ot,to:zt,text:k?k[vt%k.length]:x,origin:p||(b?"paste":o.state.cutIncoming>m?"cut":"+input")};Di(o.doc,Kt),xn(o,"inputRead",o,Kt)}s&&!b&&wc(o,s),us(o),o.curOp.updateInput<2&&(o.curOp.updateInput=K),o.curOp.typing=!0,o.state.pasteIncoming=o.state.cutIncoming=-1}function Wu(o,s){var u=o.clipboardData&&o.clipboardData.getData("Text");if(u)return o.preventDefault(),s.isReadOnly()||s.options.disableInput||!s.hasFocus()||mr(s,function(){return bc(s,u,0,null,"paste")}),!0}function wc(o,s){if(o.options.electricChars&&o.options.smartIndent)for(var u=o.doc.sel,c=u.ranges.length-1;c>=0;c--){var p=u.ranges[c];if(!(p.head.ch>100||c&&u.ranges[c-1].head.line==p.head.line)){var h=o.getModeAt(p.head),m=!1;if(h.electricChars){for(var b=0;b-1){m=wa(o,p.head.line,"smart");break}}else h.electricInput&&h.electricInput.test(be(o.doc,p.head.line).text.slice(0,p.head.ch))&&(m=wa(o,p.head.line,"smart"));m&&xn(o,"electricInput",o,p.head.line)}}}function $u(o){for(var s=[],u=[],c=0;ch&&(wa(this,b.head.line,c,!0),h=b.head.line,m==this.doc.sel.primIndex&&us(this));else{var x=b.from(),k=b.to(),$=Math.max(h,x.line);h=Math.min(this.lastLine(),k.line-(k.ch?0:1))+1;for(var K=$;K0&&il(this.doc,m,new an(x,vt[m].to()),ue)}}}),getTokenAt:function(c,p){return Yo(this,c,p)},getLineTokens:function(c,p){return Yo(this,$t(c),p,!0)},getTokenTypeAt:function(c){c=le(this.doc,c);var p,h=Er(this,be(this.doc,c.line)),m=0,b=(h.length-1)/2,x=c.ch;if(x==0)p=h[2];else for(;;){var k=m+b>>1;if((k?h[2*k-1]:0)>=x)b=k;else{if(!(h[2*k+1]x&&(c=x,b=!0),m=be(this.doc,c)}else m=c;return Ua(this,m,{top:0,left:0},p||"page",h||b).top+(b?this.doc.height-Br(m):0)},defaultTextHeight:function(){return po(this.display)},defaultCharWidth:function(){return ei(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(c,p,h,m,b){var x=this.display,k=(c=Lr(this,le(this.doc,c))).bottom,$=c.left;if(p.style.position="absolute",p.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(p),x.sizer.appendChild(p),m=="over")k=c.top;else if(m=="above"||m=="near"){var K=Math.max(x.wrapper.clientHeight,this.doc.height),vt=Math.max(x.sizer.clientWidth,x.lineSpace.clientWidth);(m=="above"||c.bottom+p.offsetHeight>K)&&c.top>p.offsetHeight?k=c.top-p.offsetHeight:c.bottom+p.offsetHeight<=K&&(k=c.bottom),$+p.offsetWidth>vt&&($=vt-p.offsetWidth)}p.style.top=k+"px",p.style.left=p.style.right="",b=="right"?($=x.sizer.clientWidth-p.offsetWidth,p.style.right="0px"):(b=="left"?$=0:b=="middle"&&($=(x.sizer.clientWidth-p.offsetWidth)/2),p.style.left=$+"px"),h&&Ep(this,{left:$,top:k,right:$+p.offsetWidth,bottom:k+p.offsetHeight})},triggerOnKeyDown:ur(hc),triggerOnKeyPress:ur(Iu),triggerOnKeyUp:Nu,triggerOnMouseDown:ur(Vu),execCommand:function(c){if(_s.hasOwnProperty(c))return _s[c].call(null,this)},triggerElectric:ur(function(c){wc(this,c)}),findPosH:function(c,p,h,m){var b=1;p<0&&(b=-1,p=-p);for(var x=le(this.doc,c),k=0;k0&&k(p.charAt(h-1));)--h;for(;m.5||this.options.lineWrapping)&&Bl(this),ht(this,"refresh",this)}),swapDoc:ur(function(c){var p=this.doc;return p.cm=null,this.state.selectingText&&this.state.selectingText(),pu(this,c),is(this),this.display.input.reset(),ta(this,c.scrollLeft,c.scrollTop),this.curOp.forceScroll=!0,xn(this,"swapDoc",this,p),p}),phrase:function(c){var p=this.options.phrases;return p&&Object.prototype.hasOwnProperty.call(p,c)?p[c]:c},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Ue(o),o.registerHelper=function(c,p,h){u.hasOwnProperty(c)||(u[c]=o[c]={_global:[]}),u[c][p]=h},o.registerGlobalHelper=function(c,p,h,m){o.registerHelper(c,p,m),u[c]._global.push({pred:h,val:m})}}function yl(o,s,u,c,p){var h=s,m=u,b=be(o,s.line),x=p&&o.direction=="rtl"?-u:u;function k(){var fe=s.line+x;return!(fe=o.first+o.size)&&(s=new $t(fe,s.ch,s.sticky),b=be(o,fe))}function $(fe){var re;if(c=="codepoint"){var xe=b.text.charCodeAt(s.ch+(u>0?0:-1));if(isNaN(xe))re=null;else{var we=u>0?xe>=55296&&xe<56320:xe>=56320&&xe<57343;re=new $t(s.line,Math.max(0,Math.min(b.text.length,s.ch+u*(we?2:1))),-u)}}else re=p?ju(o.cm,b,s,u):pl(b,s,u);if(re==null){if(fe||!k())return!1;s=fl(p,o.cm,b,s.line,x)}else s=re;return!0}if(c=="char"||c=="codepoint")$();else if(c=="column")$(!0);else if(c=="word"||c=="group")for(var K=null,vt=c=="group",mt=o.cm&&o.cm.getHelper(s,"wordChars"),Ot=!0;!(u<0)||$(!Ot);Ot=!1){var zt=b.text.charAt(s.ch)||` +`,Kt=Rt(zt,mt)?"w":vt&&zt==` +`?"n":!vt||/\s/.test(zt)?null:"p";if(!vt||Ot||Kt||(Kt="s"),K&&K!=Kt){u<0&&(u=1,$(),s.sticky="after");break}if(Kt&&(K=Kt),u>0&&!$(!Ot))break}var se=aa(o,s,h,m,!0);return Y(h,se)&&(se.hitSide=!0),se}function bl(o,s,u,c){var p,h,m=o.doc,b=s.left;if(c=="page"){var x=Math.min(o.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),k=Math.max(x-.5*po(o.display),3);p=(u>0?s.bottom:s.top)+u*k}else c=="line"&&(p=u>0?s.bottom+3:s.top-3);for(;(h=Fl(o,b,p)).outside;){if(u<0?p<=0:p>=m.height){h.hitSide=!0;break}p+=5*u}return h}var un=function(o){this.cm=o,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Pe,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function Cc(o,s){var u=os(o,s.line);if(!u||u.hidden)return null;var c=be(o.doc,s.line),p=qe(u,c,s.line),h=ze(c,o.doc.direction),m="left";h&&(m=ge(h,s.ch)%2?"right":"left");var b=Gs(p.map,s.ch,m);return b.offset=b.collapse=="right"?b.end:b.start,b}function sf(o){for(var s=o;s;s=s.parentNode)if(/CodeMirror-gutter-wrapper/.test(s.className))return!0;return!1}function Os(o,s){return s&&(o.bad=!0),o}function xc(o,s,u,c,p){var h="",m=!1,b=o.doc.lineSeparator(),x=!1;function k(mt){return function(Ot){return Ot.id==mt}}function $(){m&&(h+=b,x&&(h+=b),m=x=!1)}function K(mt){mt&&($(),h+=mt)}function vt(mt){if(mt.nodeType==1){var Ot=mt.getAttribute("cm-text");if(Ot)return void K(Ot);var zt,Kt=mt.getAttribute("cm-marker");if(Kt){var se=o.findMarks($t(c,0),$t(p+1,0),k(+Kt));return void(se.length&&(zt=se[0].find(0))&&K(lr(o.doc,zt.from,zt.to).join(b)))}if(mt.getAttribute("contenteditable")=="false")return;var fe=/^(pre|div|p|li|table|br)$/i.test(mt.nodeName);if(!/^br$/i.test(mt.nodeName)&&mt.textContent.length==0)return;fe&&$();for(var re=0;re=s.display.viewTo||p.line=s.display.viewFrom&&Cc(s,c)||{node:b[0].measure.map[2],offset:0},k=p.linec.firstLine()&&(m=$t(m.line-1,be(c.doc,m.line-1).length)),b.ch==be(c.doc,b.line).text.length&&b.linep.viewTo-1)return!1;m.line==p.viewFrom||(o=Oi(c,m.line))==0?(s=en(p.view[0].line),u=p.view[0].node):(s=en(p.view[o].line),u=p.view[o-1].node.nextSibling);var x,k,$=Oi(c,b.line);if($==p.view.length-1?(x=p.viewTo-1,k=p.lineDiv.lastChild):(x=en(p.view[$+1].line)-1,k=p.view[$+1].node.previousSibling),!u)return!1;for(var K=c.doc.splitLines(xc(c,u,k,s,x)),vt=lr(c.doc,$t(s,0),$t(x,be(c.doc,x).text.length));K.length>1&&vt.length>1;)if(ee(K)==ee(vt))K.pop(),vt.pop(),x--;else{if(K[0]!=vt[0])break;K.shift(),vt.shift(),s++}for(var mt=0,Ot=0,zt=K[0],Kt=vt[0],se=Math.min(zt.length,Kt.length);mtm.ch&&fe.charCodeAt(fe.length-Ot-1)==re.charCodeAt(re.length-Ot-1);)mt--,Ot++;K[K.length-1]=fe.slice(0,fe.length-Ot).replace(/^\u200b+/,""),K[0]=K[0].slice(mt).replace(/\u200b+$/,"");var we=$t(s,mt),Ee=$t(x,vt.length?ee(vt).length-Ot:0);return K.length>1||K[0]||P(we,Ee)?(ms(c.doc,K,we,Ee,"+input"),!0):void 0},un.prototype.ensurePolled=function(){this.forceCompositionEnd()},un.prototype.reset=function(){this.forceCompositionEnd()},un.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},un.prototype.readFromDOMSoon=function(){var o=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(o.readDOMTimeout=null,o.composing){if(!o.composing.done)return;o.composing=null}o.updateFromDOM()},80))},un.prototype.updateFromDOM=function(){var o=this;!this.cm.isReadOnly()&&this.pollContent()||mr(this.cm,function(){return or(o.cm)})},un.prototype.setUneditable=function(o){o.contentEditable="false"},un.prototype.onKeyPress=function(o){o.charCode==0||this.composing||(o.preventDefault(),this.cm.isReadOnly()||Zn(this.cm,bc)(this.cm,String.fromCharCode(o.charCode==null?o.keyCode:o.charCode),0))},un.prototype.readOnlyChanged=function(o){this.div.contentEditable=String(o!="nocursor")},un.prototype.onContextMenu=function(){},un.prototype.resetPosition=function(){},un.prototype.needsContentAttribute=!0;var Dn=function(o){this.cm=o,this.prevInput="",this.pollingFast=!1,this.polling=new Pe,this.hasSelection=!1,this.composing=null};function lf(o,s){if((s=s?Ie(s):{}).value=o.value,!s.tabindex&&o.tabIndex&&(s.tabindex=o.tabIndex),!s.placeholder&&o.placeholder&&(s.placeholder=o.placeholder),s.autofocus==null){var u=Pt();s.autofocus=u==o||o.getAttribute("autofocus")!=null&&u==document.body}function c(){o.value=b.getValue()}var p;if(o.form&&(Qt(o.form,"submit",c),!s.leaveSubmitMethodAlone)){var h=o.form;p=h.submit;try{var m=h.submit=function(){c(),h.submit=p,h.submit(),h.submit=m}}catch{}}s.finishInit=function(x){x.save=c,x.getTextArea=function(){return o},x.toTextArea=function(){x.toTextArea=isNaN,c(),o.parentNode.removeChild(x.getWrapperElement()),o.style.display="",o.form&&(rt(o.form,"submit",c),s.leaveSubmitMethodAlone||typeof o.form.submit!="function"||(o.form.submit=p))}},o.style.display="none";var b=Sn(function(x){return o.parentNode.insertBefore(x,o.nextSibling)},s);return b}function cf(o){o.off=rt,o.on=Qt,o.wheelEventPixels=Hp,o.Doc=Un,o.splitLines=To,o.countColumn=Ce,o.findColumn=qt,o.isWordChar=yt,o.Pass=ce,o.signal=ht,o.Line=Ur,o.changeEnd=ho,o.scrollbarModel=Qc,o.Pos=$t,o.cmpPos=P,o.modes=gr,o.mimeModes=gn,o.resolveMode=Eo,o.getMode=no,o.modeExtensions=Yn,o.extendMode=zn,o.copyState=Jn,o.startState=_o,o.innerMode=qo,o.commands=_s,o.keyMap=go,o.keyName=Au,o.isModifierKey=pc,o.lookupKey=Ii,o.normalizeKeyMap=ul,o.StringStream=Qe,o.SharedTextMarker=da,o.TextMarker=ii,o.LineWidget=fa,o.e_preventDefault=Xe,o.e_stopPropagation=Hn,o.e_stop=$e,o.addClass=Yt,o.contains=Lt,o.rmClass=Z,o.keyNames=io}Dn.prototype.init=function(o){var s=this,u=this,c=this.cm;this.createField(o);var p=this.textarea;function h(m){if(!_t(c,m)){if(c.somethingSelected())ml({lineWise:!1,text:c.getSelections()});else{if(!c.options.lineWiseCopyCut)return;var b=$u(c);ml({lineWise:!0,text:b.text}),m.type=="cut"?c.setSelections(b.ranges,null,ue):(u.prevInput="",p.value=b.text.join(` +`),ke(p))}m.type=="cut"&&(c.state.cutIncoming=+new Date)}}o.wrapper.insertBefore(this.wrapper,o.wrapper.firstChild),Nt&&(p.style.width="0px"),Qt(p,"input",function(){U&&S>=9&&s.hasSelection&&(s.hasSelection=null),u.poll()}),Qt(p,"paste",function(m){_t(c,m)||Wu(m,c)||(c.state.pasteIncoming=+new Date,u.fastPoll())}),Qt(p,"cut",h),Qt(p,"copy",h),Qt(o.scroller,"paste",function(m){if(!L(o,m)&&!_t(c,m)){if(!p.dispatchEvent)return c.state.pasteIncoming=+new Date,void u.focus();var b=new Event("paste");b.clipboardData=m.clipboardData,p.dispatchEvent(b)}}),Qt(o.lineSpace,"selectstart",function(m){L(o,m)||Xe(m)}),Qt(p,"compositionstart",function(){var m=c.getCursor("from");u.composing&&u.composing.range.clear(),u.composing={start:m,range:c.markText(m,c.getCursor("to"),{className:"CodeMirror-composing"})}}),Qt(p,"compositionend",function(){u.composing&&(u.poll(),u.composing.range.clear(),u.composing=null)})},Dn.prototype.createField=function(o){this.wrapper=Gu(),this.textarea=this.wrapper.firstChild},Dn.prototype.screenReaderLabelChanged=function(o){o?this.textarea.setAttribute("aria-label",o):this.textarea.removeAttribute("aria-label")},Dn.prototype.prepareSelection=function(){var o=this.cm,s=o.display,u=o.doc,c=Ys(o);if(o.options.moveInputWithCursor){var p=Lr(o,u.sel.primary().head,"div"),h=s.wrapper.getBoundingClientRect(),m=s.lineDiv.getBoundingClientRect();c.teTop=Math.max(0,Math.min(s.wrapper.clientHeight-10,p.top+m.top-h.top)),c.teLeft=Math.max(0,Math.min(s.wrapper.clientWidth-10,p.left+m.left-h.left))}return c},Dn.prototype.showSelection=function(o){var s=this.cm.display;Q(s.cursorDiv,o.cursors),Q(s.selectionDiv,o.selection),o.teTop!=null&&(this.wrapper.style.top=o.teTop+"px",this.wrapper.style.left=o.teLeft+"px")},Dn.prototype.reset=function(o){if(!this.contextMenuPending&&!this.composing){var s=this.cm;if(s.somethingSelected()){this.prevInput="";var u=s.getSelection();this.textarea.value=u,s.state.focused&&ke(this.textarea),U&&S>=9&&(this.hasSelection=u)}else o||(this.prevInput=this.textarea.value="",U&&S>=9&&(this.hasSelection=null))}},Dn.prototype.getField=function(){return this.textarea},Dn.prototype.supportsTouch=function(){return!1},Dn.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!ut||Pt()!=this.textarea))try{this.textarea.focus()}catch{}},Dn.prototype.blur=function(){this.textarea.blur()},Dn.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Dn.prototype.receivedFocus=function(){this.slowPoll()},Dn.prototype.slowPoll=function(){var o=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){o.poll(),o.cm.state.focused&&o.slowPoll()})},Dn.prototype.fastPoll=function(){var o=!1,s=this;function u(){s.poll()||o?(s.pollingFast=!1,s.slowPoll()):(o=!0,s.polling.set(60,u))}s.pollingFast=!0,s.polling.set(20,u)},Dn.prototype.poll=function(){var o=this,s=this.cm,u=this.textarea,c=this.prevInput;if(this.contextMenuPending||!s.state.focused||Uo(u)&&!c&&!this.composing||s.isReadOnly()||s.options.disableInput||s.state.keySeq)return!1;var p=u.value;if(p==c&&!s.somethingSelected())return!1;if(U&&S>=9&&this.hasSelection===p||pt&&/[\uf700-\uf7ff]/.test(p))return s.display.input.reset(),!1;if(s.doc.sel==s.display.selForContextMenu){var h=p.charCodeAt(0);if(h!=8203||c||(c="​"),h==8666)return this.reset(),this.cm.execCommand("undo")}for(var m=0,b=Math.min(c.length,p.length);m1e3||p.indexOf(` +`)>-1?u.value=o.prevInput="":o.prevInput=p,o.composing&&(o.composing.range.clear(),o.composing.range=s.markText(o.composing.start,s.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Dn.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Dn.prototype.onKeyPress=function(){U&&S>=9&&(this.hasSelection=null),this.fastPoll()},Dn.prototype.onContextMenu=function(o){var s=this,u=s.cm,c=u.display,p=s.textarea;s.contextMenuPending&&s.contextMenuPending();var h=Si(u,o),m=c.scroller.scrollTop;if(h&&!it){u.options.resetSelectionOnContextMenu&&u.doc.sel.contains(h)==-1&&Zn(u,ir)(u.doc,ri(h),ue);var b,x=p.style.cssText,k=s.wrapper.style.cssText,$=s.wrapper.offsetParent.getBoundingClientRect();if(s.wrapper.style.cssText="position: static",p.style.cssText=`position: absolute; width: 30px; height: 30px; + top: `+(o.clientY-$.top-5)+"px; left: "+(o.clientX-$.left-5)+`px; + z-index: 1000; background: `+(U?"rgba(255, 255, 255, .05)":"transparent")+`; + outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`,E&&(b=window.scrollY),c.input.focus(),E&&window.scrollTo(null,b),c.input.reset(),u.somethingSelected()||(p.value=s.prevInput=" "),s.contextMenuPending=mt,c.selForContextMenu=u.doc.sel,clearTimeout(c.detectingSelectAll),U&&S>=9&&vt(),O){$e(o);var K=function(){rt(window,"mouseup",K),setTimeout(mt,20)};Qt(window,"mouseup",K)}else setTimeout(mt,50)}function vt(){if(p.selectionStart!=null){var Ot=u.somethingSelected(),zt="​"+(Ot?p.value:"");p.value="⇚",p.value=zt,s.prevInput=Ot?"":"​",p.selectionStart=1,p.selectionEnd=zt.length,c.selForContextMenu=u.doc.sel}}function mt(){if(s.contextMenuPending==mt&&(s.contextMenuPending=!1,s.wrapper.style.cssText=k,p.style.cssText=x,U&&S<9&&c.scrollbars.setScrollTop(c.scroller.scrollTop=m),p.selectionStart!=null)){(!U||U&&S<9)&&vt();var Ot=0,zt=function(){c.selForContextMenu==u.doc.sel&&p.selectionStart==0&&p.selectionEnd>0&&s.prevInput=="​"?Zn(u,gu)(u):Ot++<10?c.detectingSelectAll=setTimeout(zt,500):(c.selForContextMenu=null,c.input.reset())};c.detectingSelectAll=setTimeout(zt,200)}}},Dn.prototype.readOnlyChanged=function(o){o||this.reset(),this.textarea.disabled=o=="nocursor",this.textarea.readOnly=!!o},Dn.prototype.setUneditable=function(){},Dn.prototype.needsContentAttribute=!1,Uu(Sn),_c(Sn);var Ku="iter insert remove copy getEditor constructor".split(" ");for(var Ts in Un.prototype)Un.prototype.hasOwnProperty(Ts)&&me(Ku,Ts)<0&&(Sn.prototype[Ts]=function(o){return function(){return o.apply(this.doc,arguments)}}(Un.prototype[Ts]));return Ue(Un),Sn.inputStyles={textarea:Dn,contenteditable:un},Sn.defineMode=function(o){Sn.defaults.mode||o=="null"||(Sn.defaults.mode=o),$o.apply(this,arguments)},Sn.defineMIME=Fr,Sn.defineMode("null",function(){return{token:function(o){return o.skipToEnd()}}}),Sn.defineMIME("text/plain","null"),Sn.defineExtension=function(o,s){Sn.prototype[o]=s},Sn.defineDocExtension=function(o,s){Un.prototype[o]=s},Sn.fromTextArea=lf,cf(Sn),Sn.version="5.65.6",Sn}()},629:(_,lt,D)=>{(function(et){function xt(O){for(var I={},W=0;W*\/]/.test(y)?at(null,"select-op"):y=="."&&yt.match(/^-?[_a-z][_a-z0-9-]*/i)?at("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(y)?at(null,y):yt.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(yt.current())&&(Rt.tokenize=ie),at("variable callee","variable")):/[\w\\\-]/.test(y)?(yt.eatWhile(/[\w\\\-]/),at("property","word")):at(null,null):/[\d.]/.test(yt.peek())?(yt.eatWhile(/[\w.%]/),at("number","unit")):yt.match(/^-[\w\\\-]*/)?(yt.eatWhile(/[\w\\\-]/),yt.match(/^\s*:/,!1)?at("variable-2","variable-definition"):at("variable-2","variable")):yt.match(/^\w+-/)?at("meta","meta"):void 0}function qt(yt){return function(Rt,y){for(var j,H=!1;(j=Rt.next())!=null;){if(j==yt&&!H){yt==")"&&Rt.backUp(1);break}H=!H&&j=="\\"}return(j==yt||!H&&yt!=")")&&(y.tokenize=null),at("string","string")}}function ie(yt,Rt){return yt.next(),yt.match(/^\s*[\"\')]/,!1)?Rt.tokenize=null:Rt.tokenize=qt(")"),at(null,"(")}function pe(yt,Rt,y){this.type=yt,this.indent=Rt,this.prev=y}function ee(yt,Rt,y,j){return yt.context=new pe(y,Rt.indentation()+(j===!1?0:Q),yt.context),y}function je(yt){return yt.context.prev&&(yt.context=yt.context.prev),yt.context.type}function Je(yt,Rt,y){return jn[y.context.type](yt,Rt,y)}function Ke(yt,Rt,y,j){for(var H=j||1;H>0;H--)y.context=y.context.prev;return Je(yt,Rt,y)}function fn(yt){var Rt=yt.current().toLowerCase();bt=Pe.hasOwnProperty(Rt)?"atom":Ce.hasOwnProperty(Rt)?"keyword":"variable"}var jn={top:function(yt,Rt,y){if(yt=="{")return ee(y,Rt,"block");if(yt=="}"&&y.context.prev)return je(y);if(ce&&/@component/i.test(yt))return ee(y,Rt,"atComponentBlock");if(/^@(-moz-)?document$/i.test(yt))return ee(y,Rt,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(yt))return ee(y,Rt,"atBlock");if(/^@(font-face|counter-style)/i.test(yt))return y.stateArg=yt,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(yt))return"keyframes";if(yt&&yt.charAt(0)=="@")return ee(y,Rt,"at");if(yt=="hash")bt="builtin";else if(yt=="word")bt="tag";else{if(yt=="variable-definition")return"maybeprop";if(yt=="interpolation")return ee(y,Rt,"interpolation");if(yt==":")return"pseudo";if(me&&yt=="(")return ee(y,Rt,"parens")}return y.context.type},block:function(yt,Rt,y){if(yt=="word"){var j=Rt.current().toLowerCase();return Ae.hasOwnProperty(j)?(bt="property","maybeprop"):ke.hasOwnProperty(j)?(bt=ue?"string-2":"property","maybeprop"):me?(bt=Rt.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(bt+=" error","maybeprop")}return yt=="meta"?"block":me||yt!="hash"&&yt!="qualifier"?jn.top(yt,Rt,y):(bt="error","block")},maybeprop:function(yt,Rt,y){return yt==":"?ee(y,Rt,"prop"):Je(yt,Rt,y)},prop:function(yt,Rt,y){if(yt==";")return je(y);if(yt=="{"&&me)return ee(y,Rt,"propBlock");if(yt=="}"||yt=="{")return Ke(yt,Rt,y);if(yt=="(")return ee(y,Rt,"parens");if(yt!="hash"||/^#([0-9a-fA-f]{3,4}|[0-9a-fA-f]{6}|[0-9a-fA-f]{8})$/.test(Rt.current())){if(yt=="word")fn(Rt);else if(yt=="interpolation")return ee(y,Rt,"interpolation")}else bt+=" error";return"prop"},propBlock:function(yt,Rt,y){return yt=="}"?je(y):yt=="word"?(bt="property","maybeprop"):y.context.type},parens:function(yt,Rt,y){return yt=="{"||yt=="}"?Ke(yt,Rt,y):yt==")"?je(y):yt=="("?ee(y,Rt,"parens"):yt=="interpolation"?ee(y,Rt,"interpolation"):(yt=="word"&&fn(Rt),"parens")},pseudo:function(yt,Rt,y){return yt=="meta"?"pseudo":yt=="word"?(bt="variable-3",y.context.type):Je(yt,Rt,y)},documentTypes:function(yt,Rt,y){return yt=="word"&&F.hasOwnProperty(Rt.current())?(bt="tag",y.context.type):jn.atBlock(yt,Rt,y)},atBlock:function(yt,Rt,y){if(yt=="(")return ee(y,Rt,"atBlock_parens");if(yt=="}"||yt==";")return Ke(yt,Rt,y);if(yt=="{")return je(y)&&ee(y,Rt,me?"block":"top");if(yt=="interpolation")return ee(y,Rt,"interpolation");if(yt=="word"){var j=Rt.current().toLowerCase();bt=j=="only"||j=="not"||j=="and"||j=="or"?"keyword":Lt.hasOwnProperty(j)?"attribute":Pt.hasOwnProperty(j)?"property":Yt.hasOwnProperty(j)?"keyword":Ae.hasOwnProperty(j)?"property":ke.hasOwnProperty(j)?ue?"string-2":"property":Pe.hasOwnProperty(j)?"atom":Ce.hasOwnProperty(j)?"keyword":"error"}return y.context.type},atComponentBlock:function(yt,Rt,y){return yt=="}"?Ke(yt,Rt,y):yt=="{"?je(y)&&ee(y,Rt,me?"block":"top",!1):(yt=="word"&&(bt="error"),y.context.type)},atBlock_parens:function(yt,Rt,y){return yt==")"?je(y):yt=="{"||yt=="}"?Ke(yt,Rt,y,2):jn.atBlock(yt,Rt,y)},restricted_atBlock_before:function(yt,Rt,y){return yt=="{"?ee(y,Rt,"restricted_atBlock"):yt=="word"&&y.stateArg=="@counter-style"?(bt="variable","restricted_atBlock_before"):Je(yt,Rt,y)},restricted_atBlock:function(yt,Rt,y){return yt=="}"?(y.stateArg=null,je(y)):yt=="word"?(bt=y.stateArg=="@font-face"&&!Oe.hasOwnProperty(Rt.current().toLowerCase())||y.stateArg=="@counter-style"&&!Ie.hasOwnProperty(Rt.current().toLowerCase())?"error":"property","maybeprop"):"restricted_atBlock"},keyframes:function(yt,Rt,y){return yt=="word"?(bt="variable","keyframes"):yt=="{"?ee(y,Rt,"top"):Je(yt,Rt,y)},at:function(yt,Rt,y){return yt==";"?je(y):yt=="{"||yt=="}"?Ke(yt,Rt,y):(yt=="word"?bt="tag":yt=="hash"&&(bt="builtin"),"at")},interpolation:function(yt,Rt,y){return yt=="}"?je(y):yt=="{"||yt==";"?Ke(yt,Rt,y):(yt=="word"?bt="variable":yt!="variable"&&yt!="("&&yt!=")"&&(bt="error"),"interpolation")}};return{startState:function(yt){return{tokenize:null,state:W?"block":"top",stateArg:null,context:new pe(W?"block":"top",yt||0,null)}},token:function(yt,Rt){if(!Rt.tokenize&&yt.eatSpace())return null;var y=(Rt.tokenize||Zt)(yt,Rt);return y&&typeof y=="object"&&(Z=y[1],y=y[0]),bt=y,Z!="comment"&&(Rt.state=jn[Rt.state](Z,yt,Rt)),bt},indent:function(yt,Rt){var y=yt.context,j=Rt&&Rt.charAt(0),H=y.indent;return y.type!="prop"||j!="}"&&j!=")"||(y=y.prev),y.prev&&(j!="}"||y.type!="block"&&y.type!="top"&&y.type!="interpolation"&&y.type!="restricted_atBlock"?(j!=")"||y.type!="parens"&&y.type!="atBlock_parens")&&(j!="{"||y.type!="at"&&y.type!="atBlock")||(H=Math.max(0,y.indent-Q)):H=(y=y.prev).indent),H},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:ae,fold:"brace"}});var q=["domain","regexp","url","url-prefix"],G=xt(q),U=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],S=xt(U),E=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid","orientation","device-pixel-ratio","min-device-pixel-ratio","max-device-pixel-ratio","pointer","any-pointer","hover","any-hover","prefers-color-scheme","dynamic-range","video-dynamic-range"],A=xt(E),M=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive","dark","light","standard","high"],N=xt(M),it=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","all","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","binding","bleed","block-size","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-content","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","left","letter-spacing","line-break","line-height","line-height-step","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","place-content","place-items","place-self","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotate","rotation","rotation-point","row-gap","ruby-align","ruby-overhang","ruby-position","ruby-span","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-type","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-orientation","text-outline","text-overflow","text-rendering","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","touch-action","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-select","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","paint-order","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode"],st=xt(it),Et=["accent-color","aspect-ratio","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","content-visibility","margin-block","margin-block-end","margin-block-start","margin-inline","margin-inline-end","margin-inline-start","overflow-anchor","overscroll-behavior","padding-block","padding-block-end","padding-block-start","padding-inline","padding-inline-end","padding-inline-start","scroll-snap-stop","scrollbar-3d-light-color","scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-track-color","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","shape-inside","zoom"],Mt=xt(Et),Nt=xt(["font-display","font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"]),ne=xt(["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"]),ut=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],pt=xt(ut),Dt=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","blur","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","brightness","bullets","button","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","conic-gradient","contain","content","contents","content-box","context-menu","continuous","contrast","copy","counter","counters","cover","crop","cross","crosshair","cubic-bezier","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","devanagari","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","drop-shadow","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","georgian","grayscale","graytext","grid","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hard-light","hebrew","help","hidden","hide","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","hue","hue-rotate","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","luminosity","malayalam","manipulation","match","matrix","matrix3d","media-play-button","media-slider","media-sliderthumb","media-volume-slider","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","multiple_mask_images","multiply","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","opacity","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeating-conic-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturate","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","self-start","self-end","semi-condensed","semi-expanded","separate","sepia","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","somali","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","square-button","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"],Bt=xt(Dt),kt=q.concat(U).concat(E).concat(M).concat(it).concat(Et).concat(ut).concat(Dt);function z(O,I){for(var W,Z=!1;(W=O.next())!=null;){if(Z&&W=="/"){I.tokenize=null;break}Z=W=="*"}return["comment","comment"]}et.registerHelper("hintWords","css",kt),et.defineMIME("text/css",{documentTypes:G,mediaTypes:S,mediaFeatures:A,mediaValueKeywords:N,propertyKeywords:st,nonStandardPropertyKeywords:Mt,fontProperties:Nt,counterDescriptors:ne,colorKeywords:pt,valueKeywords:Bt,tokenHooks:{"/":function(O,I){return!!O.eat("*")&&(I.tokenize=z,z(O,I))}},name:"css"}),et.defineMIME("text/x-scss",{mediaTypes:S,mediaFeatures:A,mediaValueKeywords:N,propertyKeywords:st,nonStandardPropertyKeywords:Mt,colorKeywords:pt,valueKeywords:Bt,fontProperties:Nt,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(O,I){return O.eat("/")?(O.skipToEnd(),["comment","comment"]):O.eat("*")?(I.tokenize=z,z(O,I)):["operator","operator"]},":":function(O){return!!O.match(/^\s*\{/,!1)&&[null,null]},$:function(O){return O.match(/^[\w-]+/),O.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(O){return!!O.eat("{")&&[null,"interpolation"]}},name:"css",helperType:"scss"}),et.defineMIME("text/x-less",{mediaTypes:S,mediaFeatures:A,mediaValueKeywords:N,propertyKeywords:st,nonStandardPropertyKeywords:Mt,colorKeywords:pt,valueKeywords:Bt,fontProperties:Nt,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(O,I){return O.eat("/")?(O.skipToEnd(),["comment","comment"]):O.eat("*")?(I.tokenize=z,z(O,I)):["operator","operator"]},"@":function(O){return O.eat("{")?[null,"interpolation"]:!O.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)&&(O.eatWhile(/[\w\\\-]/),O.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"}),et.defineMIME("text/x-gss",{documentTypes:G,mediaTypes:S,mediaFeatures:A,propertyKeywords:st,nonStandardPropertyKeywords:Mt,fontProperties:Nt,counterDescriptors:ne,colorKeywords:pt,valueKeywords:Bt,supportsAtComponent:!0,tokenHooks:{"/":function(O,I){return!!O.eat("*")&&(I.tokenize=z,z(O,I))}},name:"css",helperType:"gss"})})(D(631))},531:(_,lt,D)=>{(function(et){var xt={script:[["lang",/(javascript|babel)/i,"javascript"],["type",/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i,"javascript"],["type",/./,"text/plain"],[null,null,"javascript"]],style:[["lang",/^css$/i,"css"],["type",/^(text\/)?(x-)?(stylesheet|css)$/i,"css"],["type",/./,"text/plain"],[null,null,"css"]]};function q(N,it,st){var Et=N.current(),Mt=Et.search(it);return Mt>-1?N.backUp(Et.length-Mt):Et.match(/<\/?$/)&&(N.backUp(Et.length),N.match(it,!1)||N.match(Et)),st}var G={};function U(N){var it=G[N];return it||(G[N]=new RegExp("\\s+"+N+`\\s*=\\s*('|")?([^'"]+)('|")?\\s*`))}function S(N,it){var st=N.match(U(it));return st?/^\s*(.*?)\s*$/.exec(st[2])[1]:""}function E(N,it){return new RegExp((it?"^":"")+"","i")}function A(N,it){for(var st in N)for(var Et=it[st]||(it[st]=[]),Mt=N[st],Nt=Mt.length-1;Nt>=0;Nt--)Et.unshift(Mt[Nt])}function M(N,it){for(var st=0;st=0;ne--)Et.script.unshift(["type",Nt[ne].matches,Nt[ne].mode]);function ut(pt,Dt){var Bt,kt=st.token(pt,Dt.htmlState),z=/\btag\b/.test(kt);if(z&&!/[<>\s\/]/.test(pt.current())&&(Bt=Dt.htmlState.tagName&&Dt.htmlState.tagName.toLowerCase())&&Et.hasOwnProperty(Bt))Dt.inTag=Bt+" ";else if(Dt.inTag&&z&&/>$/.test(pt.current())){var O=/^([\S]+) (.*)/.exec(Dt.inTag);Dt.inTag=null;var I=pt.current()==">"&&M(Et[O[1]],O[2]),W=et.getMode(N,I),Z=E(O[1],!0),bt=E(O[1],!1);Dt.token=function(Q,gt){return Q.match(Z,!1)?(gt.token=ut,gt.localState=gt.localMode=null,null):q(Q,bt,gt.localMode.token(Q,gt.localState))},Dt.localMode=W,Dt.localState=et.startState(W,st.indent(Dt.htmlState,"",""))}else Dt.inTag&&(Dt.inTag+=pt.current(),pt.eol()&&(Dt.inTag+=" "));return kt}return{startState:function(){return{token:ut,inTag:null,localMode:null,localState:null,htmlState:et.startState(st)}},copyState:function(pt){var Dt;return pt.localState&&(Dt=et.copyState(pt.localMode,pt.localState)),{token:pt.token,inTag:pt.inTag,localMode:pt.localMode,localState:Dt,htmlState:et.copyState(st,pt.htmlState)}},token:function(pt,Dt){return Dt.token(pt,Dt)},indent:function(pt,Dt,Bt){return!pt.localMode||/^\s*<\//.test(Dt)?st.indent(pt.htmlState,Dt,Bt):pt.localMode.indent?pt.localMode.indent(pt.localState,Dt,Bt):et.Pass},innerMode:function(pt){return{state:pt.localState||pt.htmlState,mode:pt.localMode||st}}}},"xml","javascript","css"),et.defineMIME("text/html","htmlmixed")})(D(631),D(589),D(876),D(629))},876:(_,lt,D)=>{(function(et){et.defineMode("javascript",function(xt,q){var G,U,S=xt.indentUnit,E=q.statementIndent,A=q.jsonld,M=q.json||A,N=q.trackScope!==!1,it=q.typescript,st=q.wordCharacters||/[\w$\xa1-\uffff]/,Et=function(){function P($n){return{type:$n,style:"keyword"}}var Y=P("keyword a"),It=P("keyword b"),oe=P("keyword c"),ve=P("keyword d"),Ze=P("operator"),le={type:"atom",style:"atom"};return{if:P("if"),while:Y,with:Y,else:It,do:It,try:It,finally:It,return:ve,break:ve,continue:ve,new:P("new"),delete:oe,void:oe,throw:oe,debugger:P("debugger"),var:P("var"),const:P("var"),let:P("var"),function:P("function"),catch:P("catch"),for:P("for"),switch:P("switch"),case:P("case"),default:P("default"),in:Ze,typeof:Ze,instanceof:Ze,true:le,false:le,null:le,undefined:le,NaN:le,Infinity:le,this:P("this"),class:P("class"),super:P("atom"),yield:oe,export:P("export"),import:P("import"),extends:oe,await:oe}}(),Mt=/[+\-*&%=<>!?|~^@]/,Nt=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function ne(P){for(var Y,It=!1,oe=!1;(Y=P.next())!=null;){if(!It){if(Y=="/"&&!oe)return;Y=="["?oe=!0:oe&&Y=="]"&&(oe=!1)}It=!It&&Y=="\\"}}function ut(P,Y,It){return G=P,U=It,Y}function pt(P,Y){var It=P.next();if(It=='"'||It=="'")return Y.tokenize=Dt(It),Y.tokenize(P,Y);if(It=="."&&P.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return ut("number","number");if(It=="."&&P.match(".."))return ut("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(It))return ut(It);if(It=="="&&P.eat(">"))return ut("=>","operator");if(It=="0"&&P.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return ut("number","number");if(/\d/.test(It))return P.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),ut("number","number");if(It=="/")return P.eat("*")?(Y.tokenize=Bt,Bt(P,Y)):P.eat("/")?(P.skipToEnd(),ut("comment","comment")):$t(P,Y,1)?(ne(P),P.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),ut("regexp","string-2")):(P.eat("="),ut("operator","operator",P.current()));if(It=="`")return Y.tokenize=kt,kt(P,Y);if(It=="#"&&P.peek()=="!")return P.skipToEnd(),ut("meta","meta");if(It=="#"&&P.eatWhile(st))return ut("variable","property");if(It=="<"&&P.match("!--")||It=="-"&&P.match("->")&&!/\S/.test(P.string.slice(0,P.start)))return P.skipToEnd(),ut("comment","comment");if(Mt.test(It))return It==">"&&Y.lexical&&Y.lexical.type==">"||(P.eat("=")?It!="!"&&It!="="||P.eat("="):/[<>*+\-|&?]/.test(It)&&(P.eat(It),It==">"&&P.eat(It))),It=="?"&&P.eat(".")?ut("."):ut("operator","operator",P.current());if(st.test(It)){P.eatWhile(st);var oe=P.current();if(Y.lastType!="."){if(Et.propertyIsEnumerable(oe)){var ve=Et[oe];return ut(ve.type,ve.style,oe)}if(oe=="async"&&P.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return ut("async","keyword",oe)}return ut("variable","variable",oe)}}function Dt(P){return function(Y,It){var oe,ve=!1;if(A&&Y.peek()=="@"&&Y.match(Nt))return It.tokenize=pt,ut("jsonld-keyword","meta");for(;(oe=Y.next())!=null&&(oe!=P||ve);)ve=!ve&&oe=="\\";return ve||(It.tokenize=pt),ut("string","string")}}function Bt(P,Y){for(var It,oe=!1;It=P.next();){if(It=="/"&&oe){Y.tokenize=pt;break}oe=It=="*"}return ut("comment","comment")}function kt(P,Y){for(var It,oe=!1;(It=P.next())!=null;){if(!oe&&(It=="`"||It=="$"&&P.eat("{"))){Y.tokenize=pt;break}oe=!oe&&It=="\\"}return ut("quasi","string-2",P.current())}var z="([{}])";function O(P,Y){Y.fatArrowAt&&(Y.fatArrowAt=null);var It=P.string.indexOf("=>",P.start);if(!(It<0)){if(it){var oe=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(P.string.slice(P.start,It));oe&&(It=oe.index)}for(var ve=0,Ze=!1,le=It-1;le>=0;--le){var $n=P.string.charAt(le),Mn=z.indexOf($n);if(Mn>=0&&Mn<3){if(!ve){++le;break}if(--ve==0){$n=="("&&(Ze=!0);break}}else if(Mn>=3&&Mn<6)++ve;else if(st.test($n))Ze=!0;else if(/["'\/`]/.test($n))for(;;--le){if(le==0)return;if(P.string.charAt(le-1)==$n&&P.string.charAt(le-2)!="\\"){le--;break}}else if(Ze&&!ve){++le;break}}Ze&&!ve&&(Y.fatArrowAt=le)}}var I={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function W(P,Y,It,oe,ve,Ze){this.indented=P,this.column=Y,this.type=It,this.prev=ve,this.info=Ze,oe!=null&&(this.align=oe)}function Z(P,Y){if(!N)return!1;for(var It=P.localVars;It;It=It.next)if(It.name==Y)return!0;for(var oe=P.context;oe;oe=oe.prev)for(It=oe.vars;It;It=It.next)if(It.name==Y)return!0}function bt(P,Y,It,oe,ve){var Ze=P.cc;for(Q.state=P,Q.stream=ve,Q.marked=null,Q.cc=Ze,Q.style=Y,P.lexical.hasOwnProperty("align")||(P.lexical.align=!0);;)if((Ze.length?Ze.pop():M?qt:at)(It,oe)){for(;Ze.length&&Ze[Ze.length-1].lex;)Ze.pop()();return Q.marked?Q.marked:It=="variable"&&Z(P,oe)?"variable-2":Y}}var Q={state:null,column:null,marked:null,cc:null};function gt(){for(var P=arguments.length-1;P>=0;P--)Q.cc.push(arguments[P])}function F(){return gt.apply(null,arguments),!0}function Lt(P,Y){for(var It=Y;It;It=It.next)if(It.name==P)return!0;return!1}function Pt(P){var Y=Q.state;if(Q.marked="def",N){if(Y.context){if(Y.lexical.info=="var"&&Y.context&&Y.context.block){var It=Yt(P,Y.context);if(It!=null)return void(Y.context=It)}else if(!Lt(P,Y.localVars))return void(Y.localVars=new Oe(P,Y.localVars))}q.globalVars&&!Lt(P,Y.globalVars)&&(Y.globalVars=new Oe(P,Y.globalVars))}}function Yt(P,Y){if(Y){if(Y.block){var It=Yt(P,Y.prev);return It?It==Y.prev?Y:new ke(It,Y.vars,!0):null}return Lt(P,Y.vars)?Y:new ke(Y.prev,new Oe(P,Y.vars),!1)}return null}function Ae(P){return P=="public"||P=="private"||P=="protected"||P=="abstract"||P=="readonly"}function ke(P,Y,It){this.prev=P,this.vars=Y,this.block=It}function Oe(P,Y){this.name=P,this.next=Y}var Ie=new Oe("this",new Oe("arguments",null));function Ce(){Q.state.context=new ke(Q.state.context,Q.state.localVars,!1),Q.state.localVars=Ie}function Pe(){Q.state.context=new ke(Q.state.context,Q.state.localVars,!0),Q.state.localVars=null}function me(){Q.state.localVars=Q.state.context.vars,Q.state.context=Q.state.context.prev}function ae(P,Y){var It=function(){var oe=Q.state,ve=oe.indented;if(oe.lexical.type=="stat")ve=oe.lexical.indented;else for(var Ze=oe.lexical;Ze&&Ze.type==")"&&Ze.align;Ze=Ze.prev)ve=Ze.indented;oe.lexical=new W(ve,Q.stream.column(),P,null,oe.lexical,Y)};return It.lex=!0,It}function ce(){var P=Q.state;P.lexical.prev&&(P.lexical.type==")"&&(P.indented=P.lexical.indented),P.lexical=P.lexical.prev)}function ue(P){function Y(It){return It==P?F():P==";"||It=="}"||It==")"||It=="]"?gt():F(Y)}return Y}function at(P,Y){return P=="var"?F(ae("vardef",Y),bn,ue(";"),ce):P=="keyword a"?F(ae("form"),pe,at,ce):P=="keyword b"?F(ae("form"),at,ce):P=="keyword d"?Q.stream.match(/^\s*$/,!1)?F():F(ae("stat"),je,ue(";"),ce):P=="debugger"?F(ue(";")):P=="{"?F(ae("}"),Pe,nn,ce,me):P==";"?F():P=="if"?(Q.state.lexical.info=="else"&&Q.state.cc[Q.state.cc.length-1]==ce&&Q.state.cc.pop()(),F(ae("form"),pe,at,ce,Uo)):P=="function"?F(gr):P=="for"?F(ae("form"),Pe,ko,at,me,ce):P=="class"||it&&Y=="interface"?(Q.marked="keyword",F(ae("form",P=="class"?P:Y),no,ce)):P=="variable"?it&&Y=="declare"?(Q.marked="keyword",F(at)):it&&(Y=="module"||Y=="enum"||Y=="type")&&Q.stream.match(/^\s*\w/,!1)?(Q.marked="keyword",Y=="enum"?F(Bn):Y=="type"?F($o,ue("operator"),_t,ue(";")):F(ae("form"),Tn,ue("{"),ae("}"),nn,ce,ce)):it&&Y=="namespace"?(Q.marked="keyword",F(ae("form"),qt,at,ce)):it&&Y=="abstract"?(Q.marked="keyword",F(at)):F(ae("stat"),ct):P=="switch"?F(ae("form"),pe,ue("{"),ae("}","switch"),Pe,nn,ce,ce,me):P=="case"?F(qt,ue(":")):P=="default"?F(ue(":")):P=="catch"?F(ae("form"),Ce,Zt,at,ce,me):P=="export"?F(ae("stat"),qo,ce):P=="import"?F(ae("stat"),Qe,ce):P=="async"?F(at):Y=="@"?F(qt,at):gt(ae("stat"),qt,ue(";"),ce)}function Zt(P){if(P=="(")return F(Fr,ue(")"))}function qt(P,Y){return ee(P,Y,!1)}function ie(P,Y){return ee(P,Y,!0)}function pe(P){return P!="("?gt():F(ae(")"),je,ue(")"),ce)}function ee(P,Y,It){if(Q.state.fatArrowAt==Q.stream.start){var oe=It?Rt:yt;if(P=="(")return F(Ce,ae(")"),Ve(Fr,")"),ce,ue("=>"),oe,me);if(P=="variable")return gt(Ce,Tn,ue("=>"),oe,me)}var ve=It?Ke:Je;return I.hasOwnProperty(P)?F(ve):P=="function"?F(gr,ve):P=="class"||it&&Y=="interface"?(Q.marked="keyword",F(ae("form"),Eo,ce)):P=="keyword c"||P=="async"?F(It?ie:qt):P=="("?F(ae(")"),je,ue(")"),ce,ve):P=="operator"||P=="spread"?F(It?ie:qt):P=="["?F(ae("]"),en,ce,ve):P=="{"?ze(Ct,"}",null,ve):P=="quasi"?gt(fn,ve):P=="new"?F(y(It)):F()}function je(P){return P.match(/[;\}\)\],]/)?gt():gt(qt)}function Je(P,Y){return P==","?F(je):Ke(P,Y,!1)}function Ke(P,Y,It){var oe=It==0?Je:Ke,ve=It==0?qt:ie;return P=="=>"?F(Ce,It?Rt:yt,me):P=="operator"?/\+\+|--/.test(Y)||it&&Y=="!"?F(oe):it&&Y=="<"&&Q.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?F(ae(">"),Ve(_t,">"),ce,oe):Y=="?"?F(qt,ue(":"),ve):F(ve):P=="quasi"?gt(fn,oe):P!=";"?P=="("?ze(ie,")","call",oe):P=="."?F(St,oe):P=="["?F(ae("]"),je,ue("]"),ce,oe):it&&Y=="as"?(Q.marked="keyword",F(_t,oe)):P=="regexp"?(Q.state.lastType=Q.marked="operator",Q.stream.backUp(Q.stream.pos-Q.stream.start-1),F(ve)):void 0:void 0}function fn(P,Y){return P!="quasi"?gt():Y.slice(Y.length-2)!="${"?F(fn):F(je,jn)}function jn(P){if(P=="}")return Q.marked="string-2",Q.state.tokenize=kt,F(fn)}function yt(P){return O(Q.stream,Q.state),gt(P=="{"?at:qt)}function Rt(P){return O(Q.stream,Q.state),gt(P=="{"?at:ie)}function y(P){return function(Y){return Y=="."?F(P?H:j):Y=="variable"&&it?F(Nr,P?Ke:Je):gt(P?ie:qt)}}function j(P,Y){if(Y=="target")return Q.marked="keyword",F(Je)}function H(P,Y){if(Y=="target")return Q.marked="keyword",F(Ke)}function ct(P){return P==":"?F(ce,at):gt(Je,ue(";"),ce)}function St(P){if(P=="variable")return Q.marked="property",F()}function Ct(P,Y){return P=="async"?(Q.marked="property",F(Ct)):P=="variable"||Q.style=="keyword"?(Q.marked="property",Y=="get"||Y=="set"?F(Xt):(it&&Q.state.fatArrowAt==Q.stream.start&&(It=Q.stream.match(/^\s*:\s*/,!1))&&(Q.state.fatArrowAt=Q.stream.pos+It[0].length),F(ge))):P=="number"||P=="string"?(Q.marked=A?"property":Q.style+" property",F(ge)):P=="jsonld-keyword"?F(ge):it&&Ae(Y)?(Q.marked="keyword",F(Ct)):P=="["?F(qt,Qt,ue("]"),ge):P=="spread"?F(ie,ge):Y=="*"?(Q.marked="keyword",F(Ct)):P==":"?gt(ge):void 0;var It}function Xt(P){return P!="variable"?gt(ge):(Q.marked="property",F(gr))}function ge(P){return P==":"?F(ie):P=="("?gt(gr):void 0}function Ve(P,Y,It){function oe(ve,Ze){if(It?It.indexOf(ve)>-1:ve==","){var le=Q.state.lexical;return le.info=="call"&&(le.pos=(le.pos||0)+1),F(function($n,Mn){return $n==Y||Mn==Y?gt():gt(P)},oe)}return ve==Y||Ze==Y?F():It&&It.indexOf(";")>-1?gt(P):F(ue(Y))}return function(ve,Ze){return ve==Y||Ze==Y?F():gt(P,oe)}}function ze(P,Y,It){for(var oe=3;oe"),_t):P=="quasi"?gt(Xe,$e):void 0}function te(P){if(P=="=>")return F(_t)}function ye(P){return P.match(/[\}\)\]]/)?F():P==","||P==";"?F(ye):gt(Ue,ye)}function Ue(P,Y){return P=="variable"||Q.style=="keyword"?(Q.marked="property",F(Ue)):Y=="?"||P=="number"||P=="string"?F(Ue):P==":"?F(_t):P=="["?F(ue("variable"),R,ue("]"),Ue):P=="("?gt(gn,Ue):P.match(/[;\}\)\],]/)?void 0:F()}function Xe(P,Y){return P!="quasi"?gt():Y.slice(Y.length-2)!="${"?F(Xe):F(_t,Hn)}function Hn(P){if(P=="}")return Q.marked="string-2",Q.state.tokenize=kt,F(Xe)}function yn(P,Y){return P=="variable"&&Q.stream.match(/^\s*[?:]/,!1)||Y=="?"?F(yn):P==":"?F(_t):P=="spread"?F(yn):gt(_t)}function $e(P,Y){return Y=="<"?F(ae(">"),Ve(_t,">"),ce,$e):Y=="|"||P=="."||Y=="&"?F(_t):P=="["?F(_t,ue("]"),$e):Y=="extends"||Y=="implements"?(Q.marked="keyword",F(_t)):Y=="?"?F(_t,ue(":"),_t):void 0}function Nr(P,Y){if(Y=="<")return F(ae(">"),Ve(_t,">"),ce,$e)}function tr(){return gt(_t,Ir)}function Ir(P,Y){if(Y=="=")return F(_t)}function bn(P,Y){return Y=="enum"?(Q.marked="keyword",F(Bn)):gt(Tn,Qt,Rn,To)}function Tn(P,Y){return it&&Ae(Y)?(Q.marked="keyword",F(Tn)):P=="variable"?(Pt(Y),F()):P=="spread"?F(Tn):P=="["?ze(Vr,"]"):P=="{"?ze(Kn,"}"):void 0}function Kn(P,Y){return P!="variable"||Q.stream.match(/^\s*:/,!1)?(P=="variable"&&(Q.marked="property"),P=="spread"?F(Tn):P=="}"?gt():P=="["?F(qt,ue("]"),ue(":"),Kn):F(ue(":"),Tn,Rn)):(Pt(Y),F(Rn))}function Vr(){return gt(Tn,Rn)}function Rn(P,Y){if(Y=="=")return F(ie)}function To(P){if(P==",")return F(bn)}function Uo(P,Y){if(P=="keyword b"&&Y=="else")return F(ae("form","else"),at,ce)}function ko(P,Y){return Y=="await"?F(ko):P=="("?F(ae(")"),Wo,ce):void 0}function Wo(P){return P=="var"?F(bn,lo):P=="variable"?F(lo):gt(lo)}function lo(P,Y){return P==")"?F():P==";"?F(lo):Y=="in"||Y=="of"?(Q.marked="keyword",F(qt,lo)):gt(qt,lo)}function gr(P,Y){return Y=="*"?(Q.marked="keyword",F(gr)):P=="variable"?(Pt(Y),F(gr)):P=="("?F(Ce,ae(")"),Ve(Fr,")"),ce,rt,at,me):it&&Y=="<"?F(ae(">"),Ve(tr,">"),ce,gr):void 0}function gn(P,Y){return Y=="*"?(Q.marked="keyword",F(gn)):P=="variable"?(Pt(Y),F(gn)):P=="("?F(Ce,ae(")"),Ve(Fr,")"),ce,rt,me):it&&Y=="<"?F(ae(">"),Ve(tr,">"),ce,gn):void 0}function $o(P,Y){return P=="keyword"||P=="variable"?(Q.marked="type",F($o)):Y=="<"?F(ae(">"),Ve(tr,">"),ce):void 0}function Fr(P,Y){return Y=="@"&&F(qt,Fr),P=="spread"?F(Fr):it&&Ae(Y)?(Q.marked="keyword",F(Fr)):it&&P=="this"?F(Qt,Rn):gt(Tn,Qt,Rn)}function Eo(P,Y){return P=="variable"?no(P,Y):Yn(P,Y)}function no(P,Y){if(P=="variable")return Pt(Y),F(Yn)}function Yn(P,Y){return Y=="<"?F(ae(">"),Ve(tr,">"),ce,Yn):Y=="extends"||Y=="implements"||it&&P==","?(Y=="implements"&&(Q.marked="keyword"),F(it?_t:qt,Yn)):P=="{"?F(ae("}"),zn,ce):void 0}function zn(P,Y){return P=="async"||P=="variable"&&(Y=="static"||Y=="get"||Y=="set"||it&&Ae(Y))&&Q.stream.match(/^\s+[\w$\xa1-\uffff]/,!1)?(Q.marked="keyword",F(zn)):P=="variable"||Q.style=="keyword"?(Q.marked="property",F(Jn,zn)):P=="number"||P=="string"?F(Jn,zn):P=="["?F(qt,Qt,ue("]"),Jn,zn):Y=="*"?(Q.marked="keyword",F(zn)):it&&P=="("?gt(gn,zn):P==";"||P==","?F(zn):P=="}"?F():Y=="@"?F(qt,zn):void 0}function Jn(P,Y){if(Y=="!"||Y=="?")return F(Jn);if(P==":")return F(_t,Rn);if(Y=="=")return F(ie);var It=Q.state.lexical.prev;return gt(It&&It.info=="interface"?gn:gr)}function qo(P,Y){return Y=="*"?(Q.marked="keyword",F(cr,ue(";"))):Y=="default"?(Q.marked="keyword",F(qt,ue(";"))):P=="{"?F(Ve(_o,"}"),cr,ue(";")):gt(at)}function _o(P,Y){return Y=="as"?(Q.marked="keyword",F(ue("variable"))):P=="variable"?gt(ie,_o):void 0}function Qe(P){return P=="string"?F():P=="("?gt(qt):P=="."?gt(Je):gt(be,lr,cr)}function be(P,Y){return P=="{"?ze(be,"}"):(P=="variable"&&Pt(Y),Y=="*"&&(Q.marked="keyword"),F(Go))}function lr(P){if(P==",")return F(be,lr)}function Go(P,Y){if(Y=="as")return Q.marked="keyword",F(be)}function cr(P,Y){if(Y=="from")return Q.marked="keyword",F(qt)}function en(P){return P=="]"?F():gt(Ve(ie,"]"))}function Bn(){return gt(ae("form"),Tn,ue("{"),ae("}"),Ve(Co,"}"),ce,ce)}function Co(){return gt(Tn,Rn)}function Ko(P,Y){return P.lastType=="operator"||P.lastType==","||Mt.test(Y.charAt(0))||/[,.]/.test(Y.charAt(0))}function $t(P,Y,It){return Y.tokenize==pt&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(Y.lastType)||Y.lastType=="quasi"&&/\{\s*$/.test(P.string.slice(0,P.pos-(It||0)))}return Ce.lex=Pe.lex=!0,me.lex=!0,ce.lex=!0,{startState:function(P){var Y={tokenize:pt,lastType:"sof",cc:[],lexical:new W((P||0)-S,0,"block",!1),localVars:q.localVars,context:q.localVars&&new ke(null,null,!1),indented:P||0};return q.globalVars&&typeof q.globalVars=="object"&&(Y.globalVars=q.globalVars),Y},token:function(P,Y){if(P.sol()&&(Y.lexical.hasOwnProperty("align")||(Y.lexical.align=!1),Y.indented=P.indentation(),O(P,Y)),Y.tokenize!=Bt&&P.eatSpace())return null;var It=Y.tokenize(P,Y);return G=="comment"?It:(Y.lastType=G!="operator"||U!="++"&&U!="--"?G:"incdec",bt(Y,It,G,U,P))},indent:function(P,Y){if(P.tokenize==Bt||P.tokenize==kt)return et.Pass;if(P.tokenize!=pt)return 0;var It,oe=Y&&Y.charAt(0),ve=P.lexical;if(!/^\s*else\b/.test(Y))for(var Ze=P.cc.length-1;Ze>=0;--Ze){var le=P.cc[Ze];if(le==ce)ve=ve.prev;else if(le!=Uo&&le!=me)break}for(;(ve.type=="stat"||ve.type=="form")&&(oe=="}"||(It=P.cc[P.cc.length-1])&&(It==Je||It==Ke)&&!/^[,\.=+\-*:?[\(]/.test(Y));)ve=ve.prev;E&&ve.type==")"&&ve.prev.type=="stat"&&(ve=ve.prev);var $n=ve.type,Mn=oe==$n;return $n=="vardef"?ve.indented+(P.lastType=="operator"||P.lastType==","?ve.info.length+1:0):$n=="form"&&oe=="{"?ve.indented:$n=="form"?ve.indented+S:$n=="stat"?ve.indented+(Ko(P,Y)?E||S:0):ve.info!="switch"||Mn||q.doubleIndentSwitch==0?ve.align?ve.column+(Mn?0:1):ve.indented+(Mn?0:S):ve.indented+(/^(?:case|default)\b/.test(Y)?S:2*S)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:M?null:"/*",blockCommentEnd:M?null:"*/",blockCommentContinue:M?null:" * ",lineComment:M?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:M?"json":"javascript",jsonldMode:A,jsonMode:M,expressionAllowed:$t,skipExpression:function(P){bt(P,"atom","atom","true",new et.StringStream("",2,null))}}}),et.registerHelper("wordChars","javascript",/[\w$]/),et.defineMIME("text/javascript","javascript"),et.defineMIME("text/ecmascript","javascript"),et.defineMIME("application/javascript","javascript"),et.defineMIME("application/x-javascript","javascript"),et.defineMIME("application/ecmascript","javascript"),et.defineMIME("application/json",{name:"javascript",json:!0}),et.defineMIME("application/x-json",{name:"javascript",json:!0}),et.defineMIME("application/manifest+json",{name:"javascript",json:!0}),et.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),et.defineMIME("text/typescript",{name:"javascript",typescript:!0}),et.defineMIME("application/typescript",{name:"javascript",typescript:!0})})(D(631))},589:(_,lt,D)=>{(function(et){var xt={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},q={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};et.defineMode("xml",function(G,U){var S,E,A=G.indentUnit,M={},N=U.htmlMode?xt:q;for(var it in N)M[it]=N[it];for(var it in U)M[it]=U[it];function st(F,Lt){function Pt(Ae){return Lt.tokenize=Ae,Ae(F,Lt)}var Yt=F.next();return Yt=="<"?F.eat("!")?F.eat("[")?F.match("CDATA[")?Pt(Nt("atom","]]>")):null:F.match("--")?Pt(Nt("comment","-->")):F.match("DOCTYPE",!0,!0)?(F.eatWhile(/[\w\._\-]/),Pt(ne(1))):null:F.eat("?")?(F.eatWhile(/[\w\._\-]/),Lt.tokenize=Nt("meta","?>"),"meta"):(S=F.eat("/")?"closeTag":"openTag",Lt.tokenize=Et,"tag bracket"):Yt=="&"?(F.eat("#")?F.eat("x")?F.eatWhile(/[a-fA-F\d]/)&&F.eat(";"):F.eatWhile(/[\d]/)&&F.eat(";"):F.eatWhile(/[\w\.\-:]/)&&F.eat(";"))?"atom":"error":(F.eatWhile(/[^&<]/),null)}function Et(F,Lt){var Pt=F.next();if(Pt==">"||Pt=="/"&&F.eat(">"))return Lt.tokenize=st,S=Pt==">"?"endTag":"selfcloseTag","tag bracket";if(Pt=="=")return S="equals",null;if(Pt=="<"){Lt.tokenize=st,Lt.state=kt,Lt.tagName=Lt.tagStart=null;var Yt=Lt.tokenize(F,Lt);return Yt?Yt+" tag error":"tag error"}return/[\'\"]/.test(Pt)?(Lt.tokenize=Mt(Pt),Lt.stringStartCol=F.column(),Lt.tokenize(F,Lt)):(F.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function Mt(F){var Lt=function(Pt,Yt){for(;!Pt.eol();)if(Pt.next()==F){Yt.tokenize=Et;break}return"string"};return Lt.isInAttribute=!0,Lt}function Nt(F,Lt){return function(Pt,Yt){for(;!Pt.eol();){if(Pt.match(Lt)){Yt.tokenize=st;break}Pt.next()}return F}}function ne(F){return function(Lt,Pt){for(var Yt;(Yt=Lt.next())!=null;){if(Yt=="<")return Pt.tokenize=ne(F+1),Pt.tokenize(Lt,Pt);if(Yt==">"){if(F==1){Pt.tokenize=st;break}return Pt.tokenize=ne(F-1),Pt.tokenize(Lt,Pt)}}return"meta"}}function ut(F){return F&&F.toLowerCase()}function pt(F,Lt,Pt){this.prev=F.context,this.tagName=Lt||"",this.indent=F.indented,this.startOfLine=Pt,(M.doNotIndent.hasOwnProperty(Lt)||F.context&&F.context.noIndent)&&(this.noIndent=!0)}function Dt(F){F.context&&(F.context=F.context.prev)}function Bt(F,Lt){for(var Pt;;){if(!F.context||(Pt=F.context.tagName,!M.contextGrabbers.hasOwnProperty(ut(Pt))||!M.contextGrabbers[ut(Pt)].hasOwnProperty(ut(Lt))))return;Dt(F)}}function kt(F,Lt,Pt){return F=="openTag"?(Pt.tagStart=Lt.column(),z):F=="closeTag"?O:kt}function z(F,Lt,Pt){return F=="word"?(Pt.tagName=Lt.current(),E="tag",Z):M.allowMissingTagName&&F=="endTag"?(E="tag bracket",Z(F,Lt,Pt)):(E="error",z)}function O(F,Lt,Pt){if(F=="word"){var Yt=Lt.current();return Pt.context&&Pt.context.tagName!=Yt&&M.implicitlyClosed.hasOwnProperty(ut(Pt.context.tagName))&&Dt(Pt),Pt.context&&Pt.context.tagName==Yt||M.matchClosing===!1?(E="tag",I):(E="tag error",W)}return M.allowMissingTagName&&F=="endTag"?(E="tag bracket",I(F,Lt,Pt)):(E="error",W)}function I(F,Lt,Pt){return F!="endTag"?(E="error",I):(Dt(Pt),kt)}function W(F,Lt,Pt){return E="error",I(F,Lt,Pt)}function Z(F,Lt,Pt){if(F=="word")return E="attribute",bt;if(F=="endTag"||F=="selfcloseTag"){var Yt=Pt.tagName,Ae=Pt.tagStart;return Pt.tagName=Pt.tagStart=null,F=="selfcloseTag"||M.autoSelfClosers.hasOwnProperty(ut(Yt))?Bt(Pt,Yt):(Bt(Pt,Yt),Pt.context=new pt(Pt,Yt,Ae==Pt.indented)),kt}return E="error",Z}function bt(F,Lt,Pt){return F=="equals"?Q:(M.allowMissing||(E="error"),Z(F,Lt,Pt))}function Q(F,Lt,Pt){return F=="string"?gt:F=="word"&&M.allowUnquoted?(E="string",Z):(E="error",Z(F,Lt,Pt))}function gt(F,Lt,Pt){return F=="string"?gt:Z(F,Lt,Pt)}return st.isInText=!0,{startState:function(F){var Lt={tokenize:st,state:kt,indented:F||0,tagName:null,tagStart:null,context:null};return F!=null&&(Lt.baseIndent=F),Lt},token:function(F,Lt){if(!Lt.tagName&&F.sol()&&(Lt.indented=F.indentation()),F.eatSpace())return null;S=null;var Pt=Lt.tokenize(F,Lt);return(Pt||S)&&Pt!="comment"&&(E=null,Lt.state=Lt.state(S||Pt,F,Lt),E&&(Pt=E=="error"?Pt+" error":E)),Pt},indent:function(F,Lt,Pt){var Yt=F.context;if(F.tokenize.isInAttribute)return F.tagStart==F.indented?F.stringStartCol+1:F.indented+A;if(Yt&&Yt.noIndent)return et.Pass;if(F.tokenize!=Et&&F.tokenize!=st)return Pt?Pt.match(/^(\s*)/)[0].length:0;if(F.tagName)return M.multilineTagIndentPastTag!==!1?F.tagStart+F.tagName.length+2:F.tagStart+A*(M.multilineTagIndentFactor||1);if(M.alignCDATA&&/$/,blockCommentStart:"",configuration:M.htmlMode?"html":"xml",helperType:M.htmlMode?"html":"xml",skipAttribute:function(F){F.state==Q&&(F.state=Z)},xmlCurrentTag:function(F){return F.tagName?{name:F.tagName,close:F.type=="closeTag"}:null},xmlCurrentContext:function(F){for(var Lt=[],Pt=F.context;Pt;Pt=Pt.prev)Lt.push(Pt.tagName);return Lt.reverse()}}}),et.defineMIME("text/xml","xml"),et.defineMIME("application/xml","xml"),et.mimeModes.hasOwnProperty("text/html")||et.defineMIME("text/html",{name:"xml",htmlMode:!0})})(D(631))},858:(_,lt,D)=>{D.r(lt),D.d(lt,{default:()=>et});const et={run:function(xt){xt.DomComponents.clear(),xt.CssComposer.clear()}}},884:(_,lt,D)=>{D.r(lt),D.d(lt,{default:()=>G});var et=D(50),xt=D(163),q=D(668);const G={run:function(U){(0,et.bindAll)(this,"onKeyUp","enableDragger","disableDragger"),this.editor=U,this.canvasModel=this.canvas.getCanvasView().model,this.toggleMove(1)},stop:function(U){this.toggleMove(),this.disableDragger()},onKeyUp:function(U){(0,xt.getKeyChar)(U)===" "&&this.editor.stopCommand(this.id)},enableDragger:function(U){this.toggleDragger(1,U)},disableDragger:function(U){this.toggleDragger(0,U)},toggleDragger:function(U,S){var E=this.canvasModel,A=this.em,M=this.dragger,N=U?"add":"remove";this.getCanvas().classList[N]("".concat(this.ppfx,"is__grabbing")),M||(M=new q.Z({getPosition:function(){return{x:E.get("x"),y:E.get("y")}},setPosition:function(it){var st=it.x,Et=it.y;E.set({x:st,y:Et})},onStart:function(it,st){A.trigger("canvas:move:start",st)},onDrag:function(it,st){A.trigger("canvas:move",st)},onEnd:function(it,st){A.trigger("canvas:move:end",st)}}),this.dragger=M),U?M.start(S):M.stop()},toggleMove:function(U){var S=this.ppfx,E=U?"add":"remove",A=U?"on":"off",M={on:xt.on,off:xt.off},N=this.getCanvas(),it=["".concat(S,"is__grab")];!U&&it.push("".concat(S,"is__grabbing")),it.forEach(function(st){return N.classList[E](st)}),M[A](document,"keyup",this.onKeyUp),M[A](N,"mousedown",this.enableDragger),M[A](document,"mouseup",this.disableDragger)}}},790:(_,lt,D)=>{D.r(lt),D.d(lt,{default:()=>U,defineCommand:()=>G});var et,xt=D(346),q=(et=function(S,E){return et=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,M){A.__proto__=M}||function(A,M){for(var N in M)Object.prototype.hasOwnProperty.call(M,N)&&(A[N]=M[N])},et(S,E)},function(S,E){if(typeof E!="function"&&E!==null)throw new TypeError("Class extends value "+String(E)+" is not a constructor or null");function A(){this.constructor=S}et(S,E),S.prototype=E===null?Object.create(E):(A.prototype=E.prototype,new A)});function G(S){return S}const U=function(S){function E(A){var M=S.call(this,0)||this;M.config=A||{},M.em=M.config.em||{};var N=M.config.stylePrefix;return M.pfx=N,M.ppfx=M.config.pStylePrefix,M.hoverClass="".concat(N,"hover"),M.badgeClass="".concat(N,"badge"),M.plhClass="".concat(N,"placeholder"),M.freezClass="".concat(M.ppfx,"freezed"),M.canvas=M.em.Canvas,M.init(M.config),M}return q(E,S),E.prototype.onFrameScroll=function(A){},E.prototype.getCanvas=function(){return this.canvas.getElement()},E.prototype.getCanvasBody=function(){return this.canvas.getBody()},E.prototype.getCanvasTools=function(){return this.canvas.getToolsEl()},E.prototype.offset=function(A){var M=A.getBoundingClientRect();return{top:M.top+A.ownerDocument.body.scrollTop,left:M.left+A.ownerDocument.body.scrollLeft}},E.prototype.init=function(A){},E.prototype.callRun=function(A,M){M===void 0&&(M={});var N=this.id;if(A.trigger("run:".concat(N,":before"),M),!M||!M.abort){var it=M.sender||A,st=this.run(A,it,M);return A.trigger("run:".concat(N),st,M),A.trigger("run",N,st,M),st}A.trigger("abort:".concat(N),M)},E.prototype.callStop=function(A,M){M===void 0&&(M={});var N=this.id,it=M.sender||A;A.trigger("stop:".concat(N,":before"),M);var st=this.stop(A,it,M);return A.trigger("stop:".concat(N),st,M),A.trigger("stop",N,st,M),st},E.prototype.stopCommand=function(A){this.em.Commands.stop(this.id,A)},E.prototype.run=function(A,M,N){},E.prototype.stop=function(A,M,N){},E}(xt.Hn)},180:(_,lt,D)=>{D.r(lt),D.d(lt,{default:()=>q});var et=D(50),xt=function(G,U,S){if(S||arguments.length===2)for(var E,A=0,M=U.length;A{D.r(lt),D.d(lt,{default:()=>U});var et=D(50),xt=D(668),q=function(){return q=Object.assign||function(S){for(var E,A=1,M=arguments.length;A +
+ `);(E=document.createElement("div")).className="".concat(st,"guides"),Et.className="".concat(st,"guide-info ").concat(st,"guide-info__x"),Mt.className="".concat(st,"guide-info ").concat(st,"guide-info__y"),Et.innerHTML=Nt,Mt.innerHTML=Nt,E.appendChild(Et),E.appendChild(Mt),M.Canvas.getGlobalToolsEl().appendChild(E),this.guidesEl=E,this.elGuideInfoX=Et,this.elGuideInfoY=Mt,this.elGuideInfoContentX=Et.querySelector(".".concat(st,"guide-info__content")),this.elGuideInfoContentY=Mt.querySelector(".".concat(st,"guide-info__content")),N.on("canvas:update frame:scroll",(0,et.debounce)(function(){var ne;S.updateGuides(),it.debug&&((ne=S.guides)===null||ne===void 0||ne.forEach(function(ut){return S.renderGuide(ut)}))},200))}return E},getGuidesStatic:function(){var S=this,E=[],A=this.target.getEl(),M=A.parentNode,N=M===void 0?{}:M;return(0,et.each)(N.children,function(it){return E=E.concat(A!==it?S.getElementGuides(it):[])}),E.concat(this.getElementGuides(N))},getGuidesTarget:function(){return this.getElementGuides(this.target.getEl())},updateGuides:function(S){var E,A,M=this;(S||this.guides).forEach(function(N){var it=N.origin,st=E===it?A:M.getElementPos(it);E=it,A=st,(0,et.each)(M.getGuidePosUpdate(N,st),function(Et,Mt){return N[Mt]=Et}),N.originRect=st})},getGuidePosUpdate:function(S,E){var A={},M=E.top,N=E.height,it=E.left,st=E.width;switch(S.type){case"t":A.y=M;break;case"b":A.y=M+N;break;case"l":A.x=it;break;case"r":A.x=it+st;break;case"x":A.x=it+st/2;break;case"y":A.y=M+N/2}return A},renderGuide:function(S){S===void 0&&(S={});var E=S.guide||document.createElement("div"),A="px",M=S.active?2:1,N=E.children[0];return E.style="position: absolute; background-color: ".concat(S.active?"green":"red",";"),E.children.length||((N=document.createElement("div")).style="position: absolute; color: red; padding: 5px; top: 0; left: 0;",E.appendChild(N)),S.y?(E.style.width="100%",E.style.height="".concat(M).concat(A),E.style.top="".concat(S.y).concat(A),E.style.left=0):(E.style.width="".concat(M).concat(A),E.style.height="100%",E.style.left="".concat(S.x).concat(A),E.style.top="0".concat(A)),!S.guide&&this.guidesContainer.appendChild(E),E},getElementPos:function(S){return this.editor.Canvas.getElementPos(S,{noScroll:1})},getElementGuides:function(S){var E=this,A=this.opts,M=this.getElementPos(S),N=M.top,it=M.height,st=M.left,Et=M.width,Mt=[{type:"t",y:N},{type:"b",y:N+it},{type:"l",x:st},{type:"r",x:st+Et},{type:"x",x:st+Et/2},{type:"y",y:N+it/2}].map(function(Nt){return q(q({},Nt),{origin:S,originRect:M,guide:A.debug&&E.renderGuide(Nt)})});return Mt.forEach(function(Nt){var ne;return(ne=E.guides)===null||ne===void 0?void 0:ne.push(Nt)}),Mt},getTranslate:function(S,E){E===void 0&&(E="x");var A=0;return(S||"").split(" ").forEach(function(M){var N=M.trim(),it="translate".concat(E.toUpperCase(),"(");N.indexOf(it)===0&&(A=parseFloat(N.replace(it,"")))}),A},setTranslate:function(S,E,A){var M="translate".concat(E.toUpperCase(),"("),N="".concat(M).concat(A,")"),it=(S||"").split(" ").map(function(st){return st.trim().indexOf(M)===0&&(st=N),st}).join(" ");return it.indexOf(M)<0&&(it+=" ".concat(N)),it},getPosition:function(){var S=this.target,E=this.isTran,A=S.getStyle(),M=A.left,N=A.top,it=A.transform,st=0,Et=0;return E?(st=this.getTranslate(it),Et=this.getTranslate(it,"y")):(st=parseFloat(M||0),Et=parseFloat(N||0)),{x:st,y:Et}},setPosition:function(S){var E=S.x,A=S.y,M=S.end,N=S.position,it=S.width,st=S.height,Et=this,Mt=Et.target,Nt=Et.isTran,ne=Et.em,ut="px",pt=M?"":1,Dt="".concat(E).concat(ut),Bt="".concat(A).concat(ut),kt={};if(Nt){var z=Mt.getStyle().transform||"";z=this.setTranslate(z,"x",Dt),kt={transform:z=this.setTranslate(z,"y",Bt),en:pt},Mt.addStyle(kt,{avoidStore:!M})}else{var O={position:N,width:it,height:st},I={left:Dt,top:Bt,en:pt};(0,et.keys)(O).forEach(function(W){var Z=O[W];Z&&(I[W]=Z)}),kt=I,Mt.addStyle(kt,{avoidStore:!M})}ne.getSelected()&&(0,et.keys)(kt).forEach(function(W){return ne.trigger("update:component:style:".concat(W))})},_getDragData:function(){var S=this.target;return{target:S,parent:S.parent(),index:S.index()}},onStart:function(S){var E=this,A=E.target,M=E.editor,N=E.isTran,it=E.opts,st=it.center,Et=it.onStart,Mt=M.Canvas,Nt=A.getStyle(),ne="absolute",ut=[ne,"relative"];if(Et&&Et(this._getDragData()),!N&&Nt.position!==ne){var pt=Mt.offset(A.getEl()),Dt=pt.left,Bt=pt.top,kt=pt.width,z=pt.height,O=A.parent(),I=void 0;do{var W=O.getStyle();I=ut.indexOf(W.position)>=0?O:null,O=O.parent()}while(O&&!I);if(st){var Z=Mt.getMouseRelativeCanvas(S);Dt=Z.x,Bt=Z.y}else if(I){var bt=Mt.offset(I.getEl());Dt-=bt.left,Bt-=bt.top}this.setPosition({x:Dt,y:Bt,width:"".concat(kt,"px"),height:"".concat(z,"px"),position:ne})}},onDrag:function(){for(var S=this,E=[],A=0;A0}).sort(function(Pe,me){return Pe.gap-me.gap}).map(function(Pe){return Pe.guide})[0];if(z){var O=z.originRect,I=O.left,W=O.width,Z=O.top,bt=O.height,Q=O.rect,gt=Mt?I{D.r(lt),D.d(lt,{default:()=>et});const et={run:function(xt){if(xt.Canvas.hasFocus()){var q=[];xt.getSelectedAll().forEach(function(G){var U=G.components(),S=U&&U.filter(function(E){return E.get("selectable")})[0];S&&q.push(S)}),q.length&&xt.select(q)}}}},368:(_,lt,D)=>{D.r(lt),D.d(lt,{default:()=>et});const et={run:function(xt,q,G){if(G===void 0&&(G={}),xt.Canvas.hasFocus()||G.force){var U=[];xt.getSelectedAll().forEach(function(S){for(var E=S.parent();E&&!E.get("selectable");)E=E.parent();E&&U.push(E)}),U.length&&xt.select(U)}}}},243:(_,lt,D)=>{D.r(lt),D.d(lt,{default:()=>et});const et={run:function(xt){if(xt.Canvas.hasFocus()){var q=[];xt.getSelectedAll().forEach(function(G){var U=G.parent();if(U){var S,E=U.components().length,A=0,M=0;do A++,S=(M=G.index()+A)<=E?U.getChildAt(M):null;while(S&&!S.get("selectable"));q.push(S||G)}}),q.length&&xt.select(q)}}}},400:(_,lt,D)=>{D.r(lt),D.d(lt,{default:()=>et});const et={run:function(xt){if(xt.Canvas.hasFocus()){var q=[];xt.getSelectedAll().forEach(function(G){var U=G.parent();if(U){var S,E=0,A=0;do E++,S=(A=G.index()-E)>=0?U.getChildAt(A):null;while(S&&!S.get("selectable"));q.push(S||G)}}),q.length&&xt.select(q)}}}},910:(_,lt,D)=>{D.r(lt),D.d(lt,{default:()=>xt});var et=D(50);const xt={run:function(q,G,U){U===void 0&&(U={});var S=U.target,E=[];if(!S.get("styles"))return E;var A=S.get("type"),M=q.Pages.getAllWrappers();if(!(0,et.flatten)(M.map(function(it){return it.findType(A)})).length){var N=q.CssComposer.getAll();E=N.filter(function(it){return it.get("group")==="cmp:".concat(A)}),N.remove(E)}return E}}},744:(_,lt,D)=>{D.r(lt),D.d(lt,{default:()=>xt});var et=function(q,G,U){if(U||arguments.length===2)for(var S,E=0,A=G.length;E{D.r(lt),D.d(lt,{default:()=>G});var et=D(50),xt=D(895),q=D(407);const G=(0,et.extend)({},q.default,{init:function(){(0,et.bindAll)(this,"startDelete","stopDelete","onDelete"),this.hoverClass=this.pfx+"hover-delete",this.badgeClass=this.pfx+"badge-red"},enable:function(){this.$el.find("*").mouseover(this.startDelete).mouseout(this.stopDelete).click(this.onDelete)},startDelete:function(U){U.stopPropagation();var S=(0,xt.default)(U.target);S.data("model").get("removable")&&(S.addClass(this.hoverClass),this.attachBadge(S.get(0)))},stopDelete:function(U){U.stopPropagation(),(0,xt.default)(U.target).removeClass(this.hoverClass),this.badge&&this.badge.css({left:-1e3,top:-1e3})},onDelete:function(U){U.stopPropagation();var S=(0,xt.default)(U.target);S.data("model").get("removable")&&(S.data("model").destroy(),this.removeBadge(),this.clean())},updateBadgeLabel:function(U){this.badge.html("Remove "+U.getName())}})},457:(_,lt,D)=>{D.r(lt),D.d(lt,{default:()=>xt});var et=D(895);const xt={run:function(q,G){var U=this;G&&G.set&&G.set("active",0);var S=q.getConfig(),E=q.Modal,A=S.stylePrefix;if(this.cm=q.CodeManager||null,!this.$editors){var M=this.buildEditor("htmlmixed","hopscotch","HTML"),N=this.buildEditor("css","hopscotch","CSS");this.htmlEditor=M.el,this.cssEditor=N.el;var it=(0,et.default)('
'));it.append(M.$el).append(N.$el),this.$editors=it}E.open({title:S.textViewCode,content:this.$editors}).getModel().once("change:open",function(){return q.stopCommand("".concat(U.id))}),this.htmlEditor.setContent(q.getHtml()),this.cssEditor.setContent(q.getCss())},stop:function(q){var G=q.Modal;G&&G.close()},buildEditor:function(q,G,U){var S=document.createElement("textarea");!this.codeMirror&&(this.codeMirror=this.cm.getViewer("CodeMirror"));var E=this.codeMirror.clone().set({label:U,codeName:q,theme:G,input:S}),A=new this.cm.EditorView({model:E,config:this.cm.getConfig()}).render().$el;return E.init(S),{el:E,$el:A}}}},975:(_,lt,D)=>{D.r(lt),D.d(lt,{default:()=>xt});var et=D(50);const xt={isEnabled:function(){var q=document;return!!(q.fullscreenElement||q.webkitFullscreenElement||q.mozFullScreenElement)},enable:function(q){var G="";return q.requestFullscreen?q.requestFullscreen():q.webkitRequestFullscreen?(G="webkit",q.webkitRequestFullscreen()):q.mozRequestFullScreen?(G="moz",q.mozRequestFullScreen()):q.msRequestFullscreen&&q.msRequestFullscreen(),G},disable:function(){var q=document;this.isEnabled()&&(q.exitFullscreen?q.exitFullscreen():q.webkitExitFullscreen?q.webkitExitFullscreen():q.mozCancelFullScreen?q.mozCancelFullScreen():q.msExitFullscreen&&q.msExitFullscreen())},fsChanged:function(q){this.isEnabled()||(this.stopCommand({sender:this.sender}),document.removeEventListener("".concat(q||"","fullscreenchange"),this.fsChanged))},run:function(q,G,U){U===void 0&&(U={}),this.sender=G;var S=U.target,E=(0,et.isElement)(S)?S:document.querySelector(S),A=this.enable(E||q.getContainer());this.fsChanged=this.fsChanged.bind(this,A),document.addEventListener(A+"fullscreenchange",this.fsChanged),q.trigger("change:canvasOffset")},stop:function(q,G){G&&G.set&&G.set("active",!1),this.disable(),q&&q.trigger("change:canvasOffset")}}},191:(_,lt,D)=>{D.r(lt),D.d(lt,{default:()=>S});var et=D(50),xt=D(895),q=D(163),G=D(407),U=D(189);const S=(0,et.extend)({},U.default,G.default,{init:function(E){G.default.init.apply(this,arguments),(0,et.bindAll)(this,"initSorter","rollback","onEndMove"),this.opt=E,this.hoverClass=this.ppfx+"highlighter-warning",this.badgeClass=this.ppfx+"badge-warning",this.noSelClass=this.ppfx+"no-select"},enable:function(){for(var E=[],A=0;A{D.r(lt),D.d(lt,{default:()=>q});var et=D(50),xt=D(491);const q={open:function(G){var U=this,S=this,E=S.editor,A=S.title,M=S.config,N=S.am,it=M.custom;if((0,et.isFunction)(it.open))return it.open(N.__customData());E.Modal.open({title:A,content:G}).onceClose(function(){return E.stopCommand(U.id)})},close:function(){var G=this.config.custom;if((0,et.isFunction)(G.close))return G.close(this.am.__customData());var U=this.editor.Modal;U&&U.close()},run:function(G,U,S){S===void 0&&(S={});var E=G.AssetManager,A=E.getConfig(),M=S.types,N=M===void 0?[]:M,it=S.accept,st=S.select;if(this.title=S.modalTitle||G.t("assetManager.modalTitle")||"",this.editor=G,this.config=A,this.am=E,E.setTarget(S.target),E.onClick(S.onClick),E.onDblClick(S.onDblClick),E.onSelect(S.onSelect),E.__behaviour({select:st,types:N,options:S}),A.custom)this.rendered=this.rendered||(0,xt.ut)("div"),this.rendered.className="".concat(A.stylePrefix,"custom-wrp"),E.__behaviour({container:this.rendered}),E.__trgCustom();else{if(!this.rendered||N){var Et=E.getAll().filter(function(Nt){return Nt});N&&N.length&&(Et=Et.filter(function(Nt){return N.indexOf(Nt.get("type"))!==-1})),E.render(Et),this.rendered=E.getContainer()}if(it){var Mt=this.rendered.querySelector("input#".concat(A.stylePrefix,"uploadFile"));Mt&&Mt.setAttribute("accept",it)}}return this.open(this.rendered),this},stop:function(G){this.editor=G,this.close(this.rendered)}}},117:(_,lt,D)=>{D.r(lt),D.d(lt,{default:()=>q});var et=D(50),xt=D(491);const q={open:function(){var G=this,U=G.container,S=G.editor,E=G.bm,A=G.config,M=A.custom,N=A.appendTo;if((0,et.isFunction)(M.open))return M.open(E.__customData());if(this.firstRender&&!N){var it="views-container",st=S.Panels;(st.getPanel(it)||st.addPanel({id:it})).set("appendContent",U).trigger("change:appendContent"),M||U.appendChild(E.render())}U&&(U.style.display="block")},close:function(){var G=this.container,U=this.config.custom;if((0,et.isFunction)(U.close))return U.close(this.bm.__customData());G&&(G.style.display="none")},run:function(G){var U=G.Blocks;this.config=U.getConfig(),this.firstRender=!this.container,this.container=this.container||(0,xt.ut)("div"),this.editor=G,this.bm=U;var S=this.container;U.__behaviour({container:S}),this.config.custom&&U.__trgCustom(),this.open()},stop:function(){this.close()}}},614:(_,lt,D)=>{D.r(lt),D.d(lt,{default:()=>et});const et={run:function(xt){var q=xt.LayerManager,G=xt.Panels,U=q.getConfig();if(!U.appendTo){if(!this.layers){var S="views-container",E=document.createElement("div"),A=G.getPanel(S)||G.addPanel({id:S});U.custom?q.__trgCustom({container:E}):E.appendChild(q.render()),A.set("appendContent",E).trigger("change:appendContent"),this.layers=E}this.layers.style.display="block"}},stop:function(){var xt=this.layers;xt&&(xt.style.display="none")}}},801:(_,lt,D)=>{D.r(lt),D.d(lt,{default:()=>xt});var et=D(895);const xt={run:function(q,G){if(this.sender=G,!this.$cn){var U=q.getConfig(),S=q.Panels,E="change:appendContent";this.$cn=(0,et.default)("
"),this.$cn2=(0,et.default)("
"),this.$cn.append(this.$cn2);var A=q.DeviceManager;if(A&&U.showDevices){var M=S.addPanel({id:"devices-c"}),N=A.render();M.set("appendContent",N).trigger(E)}var it=q.SelectorManager;this.slm=it;var st=it.getConfig();st.custom?it.__trgCustom({container:this.$cn2.get(0)}):st.appendTo||this.$cn2.append(it.render([]));var Et=q.StyleManager;this.sm=Et;var Mt=Et.getConfig(),Nt=Mt.stylePrefix;this.$header=(0,et.default)('
').concat(q.t("styleManager.empty"),"
")),this.$cn.append(this.$header),Mt.custom?Et.__trgCustom({container:this.$cn2.get(0)}):Mt.appendTo||this.$cn2.append(Et.render());var ne="views-container";this.panel=S.getPanel(ne),this.panel||(this.panel=S.addPanel({id:ne})),this.panel.set("appendContent",this.$cn).trigger(E),this.em=q.getModel(),this.listenTo(this.em,Et.events.target,this.toggleSm)}this.toggleSm()},toggleSm:function(){var q,G,U,S,E=this.sender,A=this.sm;E&&E.get&&!E.get("active")||!A||(A.getSelected()?((q=this.$cn2)===null||q===void 0||q.show(),(G=this.$header)===null||G===void 0||G.hide()):((U=this.$cn2)===null||U===void 0||U.hide(),(S=this.$header)===null||S===void 0||S.show()))},stop:function(){var q,G;(q=this.$cn2)===null||q===void 0||q.hide(),(G=this.$header)===null||G===void 0||G.hide()}}},395:(_,lt,D)=>{D.r(lt),D.d(lt,{default:()=>xt});var et=D(895);const xt={run:function(q,G){this.sender=G;var U,S=q.getModel(),E=q.Config.stylePrefix,A=q.TraitManager,M=A.getConfig();if(!M.appendTo){if(!this.$cn){this.$cn=(0,et.default)("
"),this.$cn2=(0,et.default)("
"),this.$cn.append(this.$cn2),this.$header=(0,et.default)("
").append('
').concat(S.t("traitManager.empty"),"
")),this.$cn.append(this.$header),this.$cn2.append('
').concat(S.t("traitManager.label"),"
")),this.$cn2.append(A.render());var N=q.Panels;(U=N.getPanel("views-container")?N.getPanel("views-container"):N.addPanel({id:"views-container"}))==null||U.set("appendContent",this.$cn.get(0)).trigger("change:appendContent"),this.target=q.getModel(),this.listenTo(this.target,"component:toggled",this.toggleTm)}this.toggleTm()}},toggleTm:function(){var q=this.sender;q&&q.get&&!q.get("active")||(this.target.getSelectedAll().length===1?(this.$cn2.show(),this.$header.hide()):(this.$cn2.hide(),this.$header.show()))},stop:function(){this.$cn2&&this.$cn2.hide(),this.$header&&this.$header.hide()}}},98:(_,lt,D)=>{D.r(lt),D.d(lt,{default:()=>xt});var et=D(50);const xt={run:function(q,G,U){U===void 0&&(U={});var S=q.getModel().get("clipboard"),E=q.getSelected();S&&E&&(q.getSelectedAll().forEach(function(A){var M=A.collection;if(M){var N,it={at:A.index()+1,action:U.action||"paste-component"};if((0,et.contains)(S,A)&&A.get("copyable"))N=M.add(A.clone(),it);else{var st=S.filter(function(Et){return Et.get("copyable")}).filter(function(Et){return q.Components.canMove(A.parent(),Et).result});N=M.add(st.map(function(Et){return Et.clone()}),it)}(N=(0,et.isArray)(N)?N:[N]).forEach(function(Et){return q.trigger("component:paste",Et)})}}),E.emitUpdate())}}},129:(_,lt,D)=>{D.r(lt),D.d(lt,{default:()=>G});var et=D(50),xt=function(U,S,E){if(E||arguments.length===2)for(var A,M=0,N=S.length;M{D.r(lt),D.d(lt,{default:()=>xt});var et=function(){return et=Object.assign||function(q){for(var G,U=1,S=arguments.length;U{D.r(lt),D.d(lt,{default:()=>kt});var et,xt=D(50),q=D(895),G=D(346),U=(et=function(z,O){return et=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(I,W){I.__proto__=W}||function(I,W){for(var Z in W)Object.prototype.hasOwnProperty.call(W,Z)&&(I[Z]=W[Z])},et(z,O)},function(z,O){if(typeof O!="function"&&O!==null)throw new TypeError("Class extends value "+String(O)+" is not a constructor or null");function I(){this.constructor=z}et(z,O),z.prototype=O===null?Object.create(O):(I.prototype=O.prototype,new I)});const S=function(z){function O(){return z!==null&&z.apply(this,arguments)||this}return U(O,z),O.prototype.defaults=function(){return{command:"",attributes:{}}},O}(G.Hn);var E=function(){var z=function(O,I){return z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(W,Z){W.__proto__=Z}||function(W,Z){for(var bt in Z)Object.prototype.hasOwnProperty.call(Z,bt)&&(W[bt]=Z[bt])},z(O,I)};return function(O,I){if(typeof I!="function"&&I!==null)throw new TypeError("Class extends value "+String(I)+" is not a constructor or null");function W(){this.constructor=O}z(O,I),O.prototype=I===null?Object.create(I):(W.prototype=I.prototype,new W)}}(),A=function(z){function O(){return z!==null&&z.apply(this,arguments)||this}return E(O,z),O}(G.FE);const M=A;A.prototype.model=S;var N=D(330),it=function(){var z=function(O,I){return z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(W,Z){W.__proto__=Z}||function(W,Z){for(var bt in Z)Object.prototype.hasOwnProperty.call(Z,bt)&&(W[bt]=Z[bt])},z(O,I)};return function(O,I){if(typeof I!="function"&&I!==null)throw new TypeError("Class extends value "+String(I)+" is not a constructor or null");function W(){this.constructor=O}z(O,I),O.prototype=I===null?Object.create(I):(W.prototype=I.prototype,new W)}}(),st=function(){return st=Object.assign||function(z){for(var O,I=1,W=arguments.length;I').concat(gt,"
"):"",` +
').concat(Z.getName(),"
");bt.innerHTML=Pt?Pt(Z):Yt}var Ae="px",ke=bt.style;ke.display="block";var Oe=W.getTargetToElementFixed(z,bt,{pos:O}).top,Ie=I.leftOff<0?-I.leftOff:0;ke.top=Oe+Ae,ke.left=Ie+Ae}},showHighlighter:function(z){this.canvas.getHighlighter(z).style.opacity=""},initResize:function(z){var O,I=this.em,W=this.canvas,Z=I==null?void 0:I.Editor,bt=(I==null?void 0:I.config).stylePrefix||"",Q="".concat(bt,"resizing"),gt=!(0,xt.isElement)(z)&&(0,Dt.isTaggableNode)(z)?z:I.getSelected(),F=gt&>.get("resizable"),Lt={},Pt=function(Ae,ke,Oe){var Ie=Oe.docs;Ie&&Ie.forEach(function(Ce){var Pe=Ce.body,me=Pe.className||"";Pe.className=(Ae=="add"?"".concat(me," ").concat(Q):me.replace(Q,"")).trim()})};if(Z&&F){var Yt=(0,xt.isElement)(z)?z:gt.getEl();Lt={onStart:function(Ae,ke){ke===void 0&&(ke={});var Oe=ke.el,Ie=ke.config,Ce=ke.resizer,Pe=Ie.keyHeight,me=Ie.keyWidth,ae=Ie.currentUnit,ce=Ie.keepAutoHeight,ue=Ie.keepAutoWidth;Pt("add",0,ke),O=I.Styles.getModelToStyle(gt),W.toggleFramesEvents(!1);var at=getComputedStyle(Oe),Zt=O.getStyle(),qt=Zt[me];Ie.autoWidth=ue&&qt==="auto",isNaN(parseFloat(qt))&&(qt=at[me]);var ie=Zt[Pe];Ie.autoHeight=ce&&ie==="auto",isNaN(parseFloat(ie))&&(ie=at[Pe]),Ce.startDim.w=parseFloat(qt),Ce.startDim.h=parseFloat(ie),ut=!1,ae&&(Ie.unitHeight=(0,Dt.getUnitFromValue)(ie),Ie.unitWidth=(0,Dt.getUnitFromValue)(qt))},onMove:function(){Z.trigger("component:resize")},onEnd:function(Ae,ke){Pt("remove",0,ke),Z.trigger("component:resize"),W.toggleFramesEvents(!0),ut=!0},updateTarget:function(Ae,ke,Oe){if(Oe===void 0&&(Oe={}),O){var Ie=Oe.store,Ce=Oe.selectedHandler,Pe=Oe.config,me=Pe.keyHeight,ae=Pe.keyWidth,ce=Pe.autoHeight,ue=Pe.autoWidth,at=Pe.unitWidth,Zt=Pe.unitHeight,qt=["tc","bc"].indexOf(Ce)>=0,ie=["cl","cr"].indexOf(Ce)>=0,pe={},ee=Ie?"":1;if(!qt){var je=W.getBody().offsetWidth,Je=ke.w{D.r(lt),D.d(lt,{default:()=>xt});var et=D(895);const xt={startSelectPosition:function(q,G,U){var S=this;U===void 0&&(U={}),this.isPointed=!1;var E=this.em.Utils,A=q.ownerDocument.body;E&&!this.sorter&&(this.sorter=new E.Sorter({container:A,placer:this.canvas.getPlacerEl(),containerSel:"*",itemSel:"*",pfx:this.ppfx,direction:"a",document:G,wmargin:1,nested:1,em:this.em,canvasRelative:1,scale:function(){return S.em.getZoomDecimal()}})),U.onStart&&(this.sorter.onStart=U.onStart),q&&this.sorter.startSort(q,{container:A})},getOffsetDim:function(){var q=this.offset(this.canvas.getFrameEl()),G=this.offset(this.canvas.getElement());return{top:q.top-G.top,left:q.left-G.left}},stopSelectPosition:function(){this.posTargetCollection=null,this.posIndex=this.posMethod=="after"&&this.cDim.length!==0?this.posIndex+1:this.posIndex,this.sorter&&(this.sorter.moved=0,this.sorter.endMove()),this.cDim&&(this.posIsLastEl=this.cDim.length!==0&&this.posMethod=="after"&&this.posIndex==this.cDim.length,this.posTargetEl=this.cDim.length===0?(0,et.default)(this.outsideElem):!this.posIsLastEl&&this.cDim[this.posIndex]?(0,et.default)(this.cDim[this.posIndex][5]).parent():(0,et.default)(this.outsideElem),this.posTargetModel=this.posTargetEl.data("model"),this.posTargetCollection=this.posTargetEl.data("model-comp"))},enable:function(){this.startSelectPosition()},nearFloat:function(q,G,U){var S=q||0,E=G||"before",A=U.length,M=A!==0&&E=="after"&&S==A;return A!==0&&(!M&&!U[S][4]||U[S-1]&&!U[S-1][4]||M&&!U[S-1][4])?1:0},run:function(){this.enable()},stop:function(){this.stopSelectPosition(),this.$wrapper.css("cursor",""),this.$wrapper.unbind()}}},804:(_,lt,D)=>{D.r(lt),D.d(lt,{default:()=>U});var et=D(50),xt=D(895),q=D(163),G=function(){return G=Object.assign||function(S){for(var E,A=1,M=arguments.length;A')).get(0),Pt=(0,xt.default)('
')).get(0),Yt=ut+F+"-el",Ae="".concat(ut+gt+"-el"," ").concat(ut+gt),ke="".concat(Yt," ").concat(ut+F);Bt=(0,xt.default)('
')).get(0),kt=(0,xt.default)('
')).get(0),z=(0,xt.default)('
')).get(0),O=(0,xt.default)('
')).get(0),I=(0,xt.default)('
')).get(0),W=(0,xt.default)('
')).get(0),Z=(0,xt.default)('
')).get(0),bt=(0,xt.default)('
')).get(0),this["marginT"+N]=Bt,this["marginB"+N]=kt,this["marginL"+N]=z,this["marginR"+N]=O,this["padT"+N]=I,this["padB"+N]=W,this["padL"+N]=Z,this["padR"+N]=bt,Lt.appendChild(Bt),Lt.appendChild(kt),Lt.appendChild(z),Lt.appendChild(O),Pt.appendChild(I),Pt.appendChild(W),Pt.appendChild(Z),Pt.appendChild(bt),Dt.appendChild(Lt),Dt.appendChild(Pt),this[pt]="1"}var Oe="px",Ie=parseFloat(ne.marginLeft.replace(Oe,""))*st,Ce=parseFloat(ne.marginRight.replace(Oe,""))*st,Pe=parseFloat(ne.marginTop.replace(Oe,""))*st,me=parseFloat(ne.marginBottom.replace(Oe,""))*st,ae=Bt.style,ce=kt.style,ue=z.style,at=O.style,Zt=I.style,qt=W.style,ie=Z.style,pe=bt.style,ee=parseFloat(Nt.left),je=parseFloat(ne.width)*st+Oe;ae.height=Pe+Oe,ae.width=je,ae.top=Nt.top-Pe+Oe,ae.left=ee+Oe,ce.height=me+Oe,ce.width=je,ce.top=Nt.top+Nt.height+Oe,ce.left=ee+Oe;var Je=Nt.height+Pe+me+Oe,Ke=Nt.top-Pe+Oe;ue.height=Je,ue.width=Ie+Oe,ue.top=Ke,ue.left=ee-Ie+Oe,at.height=Je,at.width=Ce+Oe,at.top=Ke,at.left=ee+Nt.width+Oe;var fn=parseFloat(ne.paddingTop)*st;Zt.height=fn+Oe;var jn=parseFloat(ne.paddingBottom)*st;qt.height=jn+Oe;var yt=Nt.height-jn-fn+Oe,Rt=Nt.top+fn+Oe;ie.height=yt,ie.width=parseFloat(ne.paddingLeft)*st+Oe,ie.top=Rt;var y=parseFloat(ne.paddingRight)*st;pe.height=yt,pe.width=y+Oe,pe.top=Rt}},stop:function(S,E,A){A===void 0&&(A={});var M=(A||{}).state||"",N=this.getOffsetMethod(M);S.Canvas[N](A.view).style.opacity=0}}},434:(_,lt,D)=>{D.r(lt),D.d(lt,{default:()=>xt});var et=D(50);const xt={init:function(){(0,et.bindAll)(this,"_onFramesChange")},run:function(q){this.toggleVis(q)},stop:function(q){this.toggleVis(q,0)},toggleVis:function(q,G){var U=this;if(G===void 0&&(G=1),!q.Commands.isActive("preview")){var S=q.Canvas,E=G?"on":"off";S.getFrames().forEach(function(A){return U._upFrame(A,G)}),S.getModel()[E]("change:frames",this._onFramesChange)}},_onFramesChange:function(q,G){var U=this;G.forEach(function(S){return S.once("loaded",function(){return U._upFrame(S,!0)})})},_upFrame:function(q,G){var U,S=G?"add":"remove";(U=q.view)===null||U===void 0||U.getBody().classList[S]("".concat(this.ppfx,"dashed"))}}},346:(_,lt,D)=>{D.d(lt,{FE:()=>S,G7:()=>E,Hn:()=>U});var et,xt=D(316),q=D.n(xt),G=(et=function(A,M){return et=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(N,it){N.__proto__=it}||function(N,it){for(var st in it)Object.prototype.hasOwnProperty.call(it,st)&&(N[st]=it[st])},et(A,M)},function(A,M){if(typeof M!="function"&&M!==null)throw new TypeError("Class extends value "+String(M)+" is not a constructor or null");function N(){this.constructor=A}et(A,M),A.prototype=M===null?Object.create(M):(N.prototype=M.prototype,new N)}),U=function(A){function M(){return A!==null&&A.apply(this,arguments)||this}return G(M,A),M}(q().Model),S=function(A){function M(){return A!==null&&A.apply(this,arguments)||this}return G(M,A),M}(q().Collection),E=function(A){function M(){return A!==null&&A.apply(this,arguments)||this}return G(M,A),M}(q().View)},330:(_,lt,D)=>{D.d(lt,{Z:()=>S});var et,xt=D(50),q=D(346),G=(et=function(E,A){return et=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(M,N){M.__proto__=N}||function(M,N){for(var it in N)Object.prototype.hasOwnProperty.call(N,it)&&(M[it]=N[it])},et(E,A)},function(E,A){if(typeof A!="function"&&A!==null)throw new TypeError("Class extends value "+String(A)+" is not a constructor or null");function M(){this.constructor=E}et(E,A),E.prototype=A===null?Object.create(A):(M.prototype=A.prototype,new M)}),U=function(E){function A(M,N,it){M===void 0&&(M={}),it===void 0&&(it=!1);var st=E.call(this,M)||this;return st.itemsView="",st.itemType="type",st.reuseView=!1,st.config=N||M.config||{},it&&st.listenTo(st.collection,"add",st.addTo),st.items=[],st}return G(A,E),A.prototype.addTo=function(M){this.add(M)},A.prototype.itemViewNotFound=function(M){var N=this.config,it=this.ns,st=N.em,Et="".concat(it?"[".concat(it,"]: "):"","'").concat(M,"' type not found");st&&st.logWarning(Et)},A.prototype.add=function(M,N){var it,st=this,Et=st.config,Mt=st.reuseView,Nt=st.items,ne=this.itemsView||{},ut=N||null,pt=this.itemView,Dt=M.get(this.itemType);ne[Dt]?pt=ne[Dt]:!Dt||ne[Dt]||(0,xt.includes)(["button","checkbox","color","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"],Dt)||this.itemViewNotFound(Dt),it=M.view&&Mt?M.view:new pt({model:M,config:Et},Et),Nt&&Nt.push(it);var Bt=it.render().el;ut?ut.appendChild(Bt):this.$el.append(Bt)},A.prototype.render=function(){var M=document.createDocumentFragment();return this.clearItems(),this.$el.empty(),this.collection.length&&this.collection.each(function(N){this.add(N,M)},this),this.$el.append(M),this.onRender(),this},A.prototype.onRender=function(){},A.prototype.onRemoveBefore=function(M,N){},A.prototype.onRemove=function(M,N){},A.prototype.remove=function(M){M===void 0&&(M={});var N=this.items;return this.onRemoveBefore(N,M),this.clearItems(),E.prototype.remove.call(this),this.onRemove(N,M),this},A.prototype.clearItems=function(){this.items},A}(q.G7);const S=U;U.prototype.itemView=""},668:(_,lt,D)=>{D.d(lt,{Z:()=>U});var et=D(50),xt=D(163),q=function(){return q=Object.assign||function(S){for(var E,A=1,M=arguments.length;A=A&&E<=A+N||E<=A&&E>=A-N},S.prototype.setGuideLock=function(E,A){var M=(0,et.isUndefined)(E.x)?"Y":"X",N="trg".concat(M);return A!==null?(E.active=!0,E.lock=A,this[N]=E):(delete E.active,delete E.lock,delete this[N]),E},S.prototype.stop=function(E,A){A===void 0&&(A={});var M=this.delta,N=!!A.cancel,it=N?0:M.x,st=N?0:M.y;this.toggleDrag(),this.lockedAxis=null,this.move(it,st,!0);var Et=this.opts.onEnd;(0,et.isFunction)(Et)&&Et(E,this,{cancelled:N})},S.prototype.keyHandle=function(E){(0,xt.isEscKey)(E)&&this.stop(E,{cancel:!0})},S.prototype.move=function(E,A,M){var N=this.el,it=this.opts,st=this.startPosition;if(st){var Et=it.setPosition,Mt=st.x+E,Nt=st.y+A;this.position={x:Mt,y:Nt,end:M},(0,et.isFunction)(Et)&&Et(this.position),N&&(N.style.left="".concat(Mt,"px"),N.style.top="".concat(Nt,"px"))}},S.prototype.getContainerEl=function(){var E=this.opts.container;return E?[E]:this.getDocumentEl()},S.prototype.getWindowEl=function(){return this.getContainerEl().map(function(E){var A=E.ownerDocument||E;return A.defaultView||A.parentWindow})},S.prototype.getDocumentEl=function(E){var A=this.opts.doc;if(E=E||this.el,!this.docs.length){var M=[document];E&&M.push(E.ownerDocument),A&&M.push(A),this.docs=M}return this.docs},S.prototype.getPointerPos=function(E){var A=this.opts.getPointerPosition,M=(0,xt.getPointerEvent)(E);return A?A(E):{x:M.clientX,y:M.clientY}},S.prototype.getStartPosition=function(){var E=this.el,A=this.opts.getPosition,M={x:0,y:0};return(0,et.isFunction)(A)?M=A():E&&(M={x:parseFloat(E.style.left),y:parseFloat(E.style.top)}),M},S.prototype.getScrollInfo=function(){var E=this.opts.doc,A=E&&E.body;return{y:A?A.scrollTop:0,x:A?A.scrollLeft:0}},S.prototype.detectAxisLock=function(E,A){var M=E,N=A,it=Math.abs(M),st=Math.abs(N);return N>=it||N<=-it?"x":M>st||M<-st?"y":void 0},S}()},895:(_,lt,D)=>{D.r(lt),D.d(lt,{default:()=>Qt});var et=typeof document<"u"?document:null,xt=typeof window<"u"?window:null,q=Array.prototype,G=q.filter,U=q.indexOf,S=q.map,E=q.push,A=q.reverse,M=q.slice,N=q.splice,it=/^#[\w-]*$/,st=/^\.[\w-]*$/,Et=/<.+>/,Mt=/^\w+$/;function Nt(R,rt){return rt===void 0&&(rt=et),st.test(R)?rt.getElementsByClassName(R.slice(1)):Mt.test(R)?rt.getElementsByTagName(R):rt.querySelectorAll(R)}function ne(R,rt){if(rt===void 0&&(rt=et),R){if(R.__cash)return R;var ht=R;if(Z(R)){if(rt.__cash&&(rt=rt[0]),!(ht=it.test(R)?rt.getElementById(R.slice(1)):Et.test(R)?Ve(R):Nt(R,rt)))return}else if(W(R))return this.ready(R);(ht.nodeType||ht===xt)&&(ht=[ht]),this.length=ht.length;for(var _t=0,te=this.length;_t=0}):ht.value=te})},pt.clone=function(){return this.map(function(R,rt){return rt.cloneNode(!0)})},pt.detach=function(){return this.each(function(R,rt){rt.parentNode&&rt.parentNode.removeChild(rt)})};var Ct,Xt=/^\s*<(\w+)[^>]*>/,ge=/^\s*<(\w+)\s*\/?>(?:<\/\1>)?\s*$/;function Ve(R){if(function(){if(!Ct){var _t=et.createElement("table"),te=et.createElement("tr");Ct={"*":et.createElement("div"),tr:et.createElement("tbody"),td:te,th:te,thead:_t,tbody:_t,tfoot:_t}}}(),!Z(R))return[];if(ge.test(R))return[et.createElement(RegExp.$1)];var rt=Xt.test(R)&&RegExp.$1,ht=Ct[rt]||Ct["*"];return ht.innerHTML=R,ut(ht.childNodes).detach().get()}function ze(R,rt,ht){if(rt!==void 0){var _t=Z(rt);!_t&&rt.length?z(rt,function(te){return ze(R,te,ht)}):z(R,_t?function(te){te.insertAdjacentHTML(ht?"afterbegin":"beforeend",rt)}:function(te,ye){return function(Ue,Xe,Hn){Hn?Ue.insertBefore(Xe,Ue.childNodes[0]):Ue.appendChild(Xe)}(te,ye?rt.cloneNode(!0):rt,ht)})}}ut.parseHTML=Ve,pt.empty=function(){var R=this[0];if(R)for(;R.firstChild;)R.removeChild(R.firstChild);return this},pt.append=function(){var R=this;return z(arguments,function(rt){ze(R,rt)}),this},pt.appendTo=function(R){return ze(ut(R),this),this},pt.html=function(R){if(R===void 0)return this[0]&&this[0].innerHTML;var rt=R.nodeType?R[0].outerHTML:R;return this.each(function(ht,_t){_t.innerHTML=rt})},pt.insertAfter=function(R){var rt=this;return ut(R).each(function(ht,_t){var te=_t.parentNode;rt.each(function(ye,Ue){te.insertBefore(ht?Ue.cloneNode(!0):Ue,_t.nextSibling)})}),this},pt.after=function(){var R=this;return z(A.apply(arguments),function(rt){A.apply(ut(rt).slice()).insertAfter(R)}),this},pt.insertBefore=function(R){var rt=this;return ut(R).each(function(ht,_t){var te=_t.parentNode;rt.each(function(ye,Ue){te.insertBefore(ht?Ue.cloneNode(!0):Ue,_t)})}),this},pt.before=function(){var R=this;return z(arguments,function(rt){ut(rt).insertBefore(R)}),this},pt.prepend=function(){var R=this;return z(arguments,function(rt){ze(R,rt,!0)}),this},pt.prependTo=function(R){return ze(ut(R),A.apply(this.slice()),!0),this},pt.remove=function(){return this.detach().off()},pt.replaceWith=function(R){var rt=this;return this.each(function(ht,_t){var te=_t.parentNode;if(te){var ye=ht?ut(R).clone():ut(R);if(!ye[0])return rt.remove(),!1;te.replaceChild(ye[0],_t),ut(ye[0]).after(ye.slice(1))}})},pt.replaceAll=function(R){return ut(R).replaceWith(this),this},pt.text=function(R){return R===void 0?this[0]?this[0].textContent:"":this.each(function(rt,ht){ht.textContent=R})};var nn=et&&et.documentElement;pt.offset=function(){var R=this[0];if(R){var rt=R.getBoundingClientRect();return{top:rt.top+xt.pageYOffset-nn.clientTop,left:rt.left+xt.pageXOffset-nn.clientLeft}}},pt.offsetParent=function(){return ut(this[0]&&this[0].offsetParent)},pt.position=function(){var R=this[0];if(R)return{left:R.offsetLeft,top:R.offsetTop}},pt.children=function(R){var rt=[];return this.each(function(ht,_t){E.apply(rt,_t.children)}),rt=ut(Pt(rt)),R?rt.filter(function(ht,_t){return I(_t,R)}):rt},pt.contents=function(){var R=[];return this.each(function(rt,ht){E.apply(R,ht.tagName==="IFRAME"?[ht.contentDocument]:ht.childNodes)}),ut(R.length&&Pt(R))},pt.find=function(R){for(var rt=[],ht=0,_t=this.length;ht<_t;ht++){var te=Nt(R,this[ht]);te.length&&E.apply(rt,te)}return ut(rt.length&&Pt(rt))},pt.has=function(R){var rt=Z(R)?function(ht,_t){return!!Nt(R,_t).length}:function(ht,_t){return _t.contains(R)};return this.filter(rt)},pt.is=function(R){if(!R||!this[0])return!1;var rt=gt(R),ht=!1;return this.each(function(_t,te){return!(ht=rt(_t,te,R))}),ht},pt.next=function(){return ut(this[0]&&this[0].nextElementSibling)},pt.not=function(R){if(!R||!this[0])return this;var rt=gt(R);return this.filter(function(ht,_t){return!rt(ht,_t,R)})},pt.parent=function(){var R=[];return this.each(function(rt,ht){ht&&ht.parentNode&&R.push(ht.parentNode)}),ut(Pt(R))},pt.index=function(R){var rt=R?ut(R)[0]:this[0],ht=R?this:ut(rt).parent().children();return U.call(ht,rt)},pt.closest=function(R){return R&&this[0]?this.is(R)?this.filter(R):this.parent().closest(R):ut()},pt.parents=function(R){var rt,ht=[];return this.each(function(_t,te){for(rt=te;rt&&rt.parentNode&&rt!==et.body.parentNode;)rt=rt.parentNode,(!R||R&&I(rt,R))&&ht.push(rt)}),ut(Pt(ht))},pt.prev=function(){return ut(this[0]&&this[0].previousElementSibling)},pt.siblings=function(){var R=this[0];return this.parent().children().filter(function(rt,ht){return ht!==R})};const Qt=ut},491:(_,lt,D)=>{D.d(lt,{$Q:()=>it,FW:()=>A,G1:()=>G,L_:()=>S,Mx:()=>U,R3:()=>st,SJ:()=>ne,dL:()=>N,pn:()=>M,rw:()=>Mt,sE:()=>E,t3:()=>Nt,ut:()=>Et});var et=D(50),xt="tag",q="attributes",G="transitionend oTransitionEnd transitionend webkitTransitionEnd",U=function(ut){return ut&&ut.nodeType===9},S=function(ut){var pt=ut&&ut.parentNode;pt&&pt.removeChild(ut)},E=function(ut,pt){return ut.querySelectorAll(pt)},A=function(ut,pt){return pt===void 0&&(pt={}),ut&&ut.setAttribute&&(0,et.each)(pt,function(Dt,Bt){return ut.setAttribute(Bt,Dt)})},M=function(ut){return ut&&!!(ut.offsetWidth||ut.offsetHeight||ut.getClientRects().length)},N=function(ut,pt){var Dt;(Dt=ut.parentNode)===null||Dt===void 0||Dt.replaceChild(pt,ut)},it=function(ut,pt,Dt){var Bt=ut.childNodes,kt=Bt.length,z=(0,et.isUndefined)(Dt)?kt:Dt;(0,et.isString)(pt)&&(ut.insertAdjacentHTML("beforeEnd",pt),pt=ut.lastChild,ut.removeChild(pt)),z>=kt?ut.appendChild(pt):ut.insertBefore(pt,Bt[z])},st=function(ut,pt){return it(ut,pt)},Et=function(ut,pt,Dt){pt===void 0&&(pt={});var Bt=document.createElement(ut);return pt&&(0,et.each)(pt,function(kt,z){return Bt.setAttribute(z,kt)}),Dt&&((0,et.isString)(Dt)?Bt.innerHTML=Dt:Bt.appendChild(Dt)),Bt},Mt=function(ut){return document.createTextNode(ut)},Nt=function(ut,pt){var Dt,Bt=ut.type;try{Dt=new window[pt](Bt,ut)}catch{(Dt=document.createEvent(pt)).initEvent(Bt,!0,!0)}return Dt._parentEvent=ut,Bt.indexOf("key")===0&&(Dt.keyCodeVal=ut.keyCode,["keyCode","which"].forEach(function(kt){Object.defineProperty(Dt,kt,{get:function(){return this.keyCodeVal}})})),Dt},ne=function(ut,pt){pt===void 0&&(pt=[]),(Array.isArray(pt)?pt:[pt]).forEach(function(Dt){var Bt=Dt[xt]||"div",kt=Dt[q]||{},z=document.createElement(Bt);(0,et.each)(kt,function(O,I){z.setAttribute(I,O)}),ut.appendChild(z)})}},163:(_,lt,D)=>{D.r(lt),D.d(lt,{appendStyles:()=>it,buildBase64UrlFromSvg:()=>ue,camelCase:()=>ut,capitalize:()=>Ie,createId:()=>ce,deepMerge:()=>bt,escape:()=>W,escapeNodeContent:()=>Z,find:()=>I,getElRect:()=>gt,getElement:()=>Bt,getGlobal:()=>S,getKeyChar:()=>Pt,getKeyCode:()=>Lt,getModel:()=>Q,getPointerEvent:()=>F,getUiClass:()=>N,getUnitFromValue:()=>Nt,getViewEl:()=>me,hasDnd:()=>Dt,hasWin:()=>U,isCommentNode:()=>z,isComponent:()=>Ce,isDef:()=>G,isEmptyObj:()=>Oe,isEnterKey:()=>Ae,isEscKey:()=>Yt,isObject:()=>ke,isRule:()=>Pe,isTaggableNode:()=>O,isTextNode:()=>kt,matches:()=>M,normalizeFloat:()=>pt,off:()=>Mt,on:()=>Et,setViewEl:()=>ae,shallowDiff:()=>st,toLowerCase:()=>E,upFirst:()=>ne});var et=D(50),xt=function(){return xt=Object.assign||function(at){for(var Zt,qt=1,ie=arguments.length;qt=0?ee!==je&&(qt[pe]=je):qt[pe]=null}for(var pe in Zt)Zt.hasOwnProperty(pe)&&(0,et.isUndefined)(at[pe])&&(qt[pe]=Zt[pe]);return qt},Et=function(at,Zt,qt,ie){var pe=Zt.split(/\s+/);at=at instanceof Array?at:[at];for(var ee=function(Je){at.forEach(function(Ke){return Ke&&Ke.addEventListener(pe[Je],qt,ie)})},je=0;je/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/`/g,"`")},Z=function(at){return at===void 0&&(at=""),"".concat(at).replace(/&/g,"&").replace(//g,">")},bt=function(){for(var at=[],Zt=0;Zt{var et={"./CanvasClear":858,"./CanvasClear.ts":858,"./CanvasMove":884,"./CanvasMove.ts":884,"./CommandAbstract":790,"./CommandAbstract.ts":790,"./ComponentDelete":180,"./ComponentDelete.ts":180,"./ComponentDrag":544,"./ComponentDrag.ts":544,"./ComponentEnter":236,"./ComponentEnter.ts":236,"./ComponentExit":368,"./ComponentExit.ts":368,"./ComponentNext":243,"./ComponentNext.ts":243,"./ComponentPrev":400,"./ComponentPrev.ts":400,"./ComponentStyleClear":910,"./ComponentStyleClear.ts":910,"./CopyComponent":744,"./CopyComponent.ts":744,"./DeleteComponent":517,"./DeleteComponent.ts":517,"./ExportTemplate":457,"./ExportTemplate.ts":457,"./Fullscreen":975,"./Fullscreen.ts":975,"./MoveComponent":191,"./MoveComponent.ts":191,"./OpenAssets":912,"./OpenAssets.ts":912,"./OpenBlocks":117,"./OpenBlocks.ts":117,"./OpenLayers":614,"./OpenLayers.ts":614,"./OpenStyleManager":801,"./OpenStyleManager.ts":801,"./OpenTraitManager":395,"./OpenTraitManager.ts":395,"./PasteComponent":98,"./PasteComponent.ts":98,"./Preview":129,"./Preview.ts":129,"./Resize":116,"./Resize.ts":116,"./SelectComponent":407,"./SelectComponent.ts":407,"./SelectPosition":189,"./SelectPosition.ts":189,"./ShowOffset":804,"./ShowOffset.ts":804,"./SwitchVisibility":434,"./SwitchVisibility.ts":434};function xt(G){var U=q(G);return D(U)}function q(G){if(!D.o(et,G)){var U=new Error("Cannot find module '"+G+"'");throw U.code="MODULE_NOT_FOUND",U}return et[G]}xt.keys=function(){return Object.keys(et)},xt.resolve=q,_.exports=xt,xt.id=828},50:(_,lt,D)=>{D.r(lt),D.d(lt,{VERSION:()=>xt,after:()=>Pr,all:()=>Yi,allKeys:()=>Qt,any:()=>bi,assign:()=>Rn,before:()=>Ao,bind:()=>So,bindAll:()=>Yo,chain:()=>Vs,chunk:()=>ti,clone:()=>Wo,collect:()=>Ar,compact:()=>ts,compose:()=>Rs,constant:()=>je,contains:()=>vr,countBy:()=>Ia,create:()=>ko,debounce:()=>nr,default:()=>Dl,defaults:()=>To,defer:()=>$i,delay:()=>Po,detect:()=>br,difference:()=>Mo,drop:()=>Mr,each:()=>_n,escape:()=>$t,every:()=>Yi,extend:()=>Vr,extendOwn:()=>Rn,filter:()=>Cn,find:()=>br,findIndex:()=>yi,findKey:()=>zs,findLastIndex:()=>Jo,findWhere:()=>Xn,first:()=>uo,flatten:()=>es,foldl:()=>Hr,foldr:()=>Ki,forEach:()=>_n,functions:()=>Tn,get:()=>Fr,groupBy:()=>Zo,has:()=>Eo,head:()=>uo,identity:()=>no,include:()=>vr,includes:()=>vr,indexBy:()=>Xi,indexOf:()=>rr,initial:()=>Qi,inject:()=>Hr,intersection:()=>Qo,invert:()=>bn,invoke:()=>Rr,isArguments:()=>ie,isArray:()=>at,isArrayBuffer:()=>ke,isBoolean:()=>Z,isDataView:()=>ue,isDate:()=>Lt,isElement:()=>bt,isEmpty:()=>ct,isEqual:()=>nn,isError:()=>Yt,isFinite:()=>pe,isFunction:()=>Ce,isMap:()=>Hn,isMatch:()=>St,isNaN:()=>ee,isNull:()=>I,isNumber:()=>F,isObject:()=>O,isRegExp:()=>Pt,isSet:()=>$e,isString:()=>gt,isSymbol:()=>Ae,isTypedArray:()=>Rt,isUndefined:()=>W,isWeakMap:()=>yn,isWeakSet:()=>Nr,iteratee:()=>_o,keys:()=>H,last:()=>_i,lastIndexOf:()=>Gi,map:()=>Ar,mapObject:()=>be,matcher:()=>Yn,matches:()=>Yn,max:()=>Br,memoize:()=>Fs,methods:()=>Tn,min:()=>wi,mixin:()=>qs,negate:()=>vi,noop:()=>lr,now:()=>Bn,object:()=>Ha,omit:()=>Zi,once:()=>mi,pairs:()=>Ir,partial:()=>co,partition:()=>Va,pick:()=>jo,pluck:()=>zr,property:()=>zn,propertyOf:()=>Go,random:()=>en,range:()=>ns,reduce:()=>Hr,reduceRight:()=>Ki,reject:()=>jr,rest:()=>Mr,restArguments:()=>z,result:()=>Mn,sample:()=>Us,select:()=>Cn,shuffle:()=>Da,size:()=>Fa,some:()=>bi,sortBy:()=>Na,sortedIndex:()=>qi,tail:()=>Mr,take:()=>uo,tap:()=>lo,template:()=>$n,templateSettings:()=>Y,throttle:()=>Hs,times:()=>cr,toArray:()=>Ur,toPath:()=>gr,transpose:()=>Ci,unescape:()=>P,union:()=>Ws,uniq:()=>Lo,unique:()=>Lo,uniqueId:()=>kr,unzip:()=>Ci,values:()=>tr,where:()=>Ln,without:()=>xn,wrap:()=>ro,zip:()=>$s});var et={};D.r(et),D.d(et,{VERSION:()=>xt,after:()=>Pr,all:()=>Yi,allKeys:()=>Qt,any:()=>bi,assign:()=>Rn,before:()=>Ao,bind:()=>So,bindAll:()=>Yo,chain:()=>Vs,chunk:()=>ti,clone:()=>Wo,collect:()=>Ar,compact:()=>ts,compose:()=>Rs,constant:()=>je,contains:()=>vr,countBy:()=>Ia,create:()=>ko,debounce:()=>nr,default:()=>Ra,defaults:()=>To,defer:()=>$i,delay:()=>Po,detect:()=>br,difference:()=>Mo,drop:()=>Mr,each:()=>_n,escape:()=>$t,every:()=>Yi,extend:()=>Vr,extendOwn:()=>Rn,filter:()=>Cn,find:()=>br,findIndex:()=>yi,findKey:()=>zs,findLastIndex:()=>Jo,findWhere:()=>Xn,first:()=>uo,flatten:()=>es,foldl:()=>Hr,foldr:()=>Ki,forEach:()=>_n,functions:()=>Tn,get:()=>Fr,groupBy:()=>Zo,has:()=>Eo,head:()=>uo,identity:()=>no,include:()=>vr,includes:()=>vr,indexBy:()=>Xi,indexOf:()=>rr,initial:()=>Qi,inject:()=>Hr,intersection:()=>Qo,invert:()=>bn,invoke:()=>Rr,isArguments:()=>ie,isArray:()=>at,isArrayBuffer:()=>ke,isBoolean:()=>Z,isDataView:()=>ue,isDate:()=>Lt,isElement:()=>bt,isEmpty:()=>ct,isEqual:()=>nn,isError:()=>Yt,isFinite:()=>pe,isFunction:()=>Ce,isMap:()=>Hn,isMatch:()=>St,isNaN:()=>ee,isNull:()=>I,isNumber:()=>F,isObject:()=>O,isRegExp:()=>Pt,isSet:()=>$e,isString:()=>gt,isSymbol:()=>Ae,isTypedArray:()=>Rt,isUndefined:()=>W,isWeakMap:()=>yn,isWeakSet:()=>Nr,iteratee:()=>_o,keys:()=>H,last:()=>_i,lastIndexOf:()=>Gi,map:()=>Ar,mapObject:()=>be,matcher:()=>Yn,matches:()=>Yn,max:()=>Br,memoize:()=>Fs,methods:()=>Tn,min:()=>wi,mixin:()=>qs,negate:()=>vi,noop:()=>lr,now:()=>Bn,object:()=>Ha,omit:()=>Zi,once:()=>mi,pairs:()=>Ir,partial:()=>co,partition:()=>Va,pick:()=>jo,pluck:()=>zr,property:()=>zn,propertyOf:()=>Go,random:()=>en,range:()=>ns,reduce:()=>Hr,reduceRight:()=>Ki,reject:()=>jr,rest:()=>Mr,restArguments:()=>z,result:()=>Mn,sample:()=>Us,select:()=>Cn,shuffle:()=>Da,size:()=>Fa,some:()=>bi,sortBy:()=>Na,sortedIndex:()=>qi,tail:()=>Mr,take:()=>uo,tap:()=>lo,template:()=>$n,templateSettings:()=>Y,throttle:()=>Hs,times:()=>cr,toArray:()=>Ur,toPath:()=>gr,transpose:()=>Ci,unescape:()=>P,union:()=>Ws,uniq:()=>Lo,unique:()=>Lo,uniqueId:()=>kr,unzip:()=>Ci,values:()=>tr,where:()=>Ln,without:()=>xn,wrap:()=>ro,zip:()=>$s});var xt="1.13.4",q=typeof self=="object"&&self.self===self&&self||typeof zc=="object"&&zc.global===zc&&zc||Function("return this")()||{},G=Array.prototype,U=Object.prototype,S=typeof Symbol<"u"?Symbol.prototype:null,E=G.push,A=G.slice,M=U.toString,N=U.hasOwnProperty,it=typeof ArrayBuffer<"u",st=typeof DataView<"u",Et=Array.isArray,Mt=Object.keys,Nt=Object.create,ne=it&&ArrayBuffer.isView,ut=isNaN,pt=isFinite,Dt=!{toString:null}.propertyIsEnumerable("toString"),Bt=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],kt=Math.pow(2,53)-1;function z(C,L){return L=L==null?C.length-1:+L,function(){for(var J=Math.max(arguments.length-L,0),nt=Array(J),wt=0;wt=0&&J<=kt}}function Ke(C){return function(L){return L==null?void 0:L[C]}}const fn=Ke("byteLength"),jn=Je(fn);var yt=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;const Rt=it?function(C){return ne?ne(C)&&!ue(C):jn(C)&&yt.test(M.call(C))}:je(!1),y=Ke("length");function j(C,L){L=function(Vt){for(var Jt={},De=Vt.length,qe=0;qe":">",'"':""","'":"'","`":"`"},$t=Co(Ko),P=Co(bn(Ko)),Y=Ct.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var It=/(.)^/,oe={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},ve=/\\|'|\r|\n|\u2028|\u2029/g;function Ze(C){return"\\"+oe[C]}var le=/^\s*(\w|\$)+\s*$/;function $n(C,L,J){!L&&J&&(L=J),L=To({},L,Ct.templateSettings);var nt=RegExp([(L.escape||It).source,(L.interpolate||It).source,(L.evaluate||It).source].join("|")+"|$","g"),wt=0,ft="__p+='";C.replace(nt,function(qe,vn,Wr,os,Do){return ft+=C.slice(wt,Do).replace(ve,Ze),wt=Do+qe.length,vn?ft+=`'+ +((__t=(`+vn+`))==null?'':_.escape(__t))+ +'`:Wr?ft+=`'+ +((__t=(`+Wr+`))==null?'':__t)+ +'`:os&&(ft+=`'; +`+os+` +__p+='`),qe}),ft+=`'; +`;var Vt,Jt=L.variable;if(Jt){if(!le.test(Jt))throw new Error("variable is not a bare identifier: "+Jt)}else ft=`with(obj||{}){ +`+ft+`} +`,Jt="obj";ft=`var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');}; +`+ft+`return __p; +`;try{Vt=new Function(Jt,"_",ft)}catch(qe){throw qe.source=ft,qe}var De=function(qe){return Vt.call(this,qe,Ct)};return De.source="function("+Jt+`){ +`+ft+"}",De}function Mn(C,L,J){var nt=(L=gn(L)).length;if(!nt)return Ce(J)?J.call(C):J;for(var wt=0;wt1)Oo(Jt,L-1,J,nt),wt=nt.length;else for(var De=0,qe=Jt.length;DeL?(nt&&(clearTimeout(nt),nt=null),Jt=vn,Vt=C.apply(wt,ft),nt||(wt=ft=null)):nt||J.trailing===!1||(nt=setTimeout(De,Wr)),Vt};return qe.cancel=function(){clearTimeout(nt),Jt=0,nt=wt=ft=null},qe}function nr(C,L,J){var nt,wt,ft,Vt,Jt,De=function(){var vn=Bn()-wt;L>vn?nt=setTimeout(De,L-vn):(nt=null,J||(Vt=C.apply(Jt,ft)),nt||(ft=Jt=null))},qe=z(function(vn){return Jt=this,ft=vn,wt=Bn(),nt||(nt=setTimeout(De,L),J&&(Vt=C.apply(Jt,ft))),Vt});return qe.cancel=function(){clearTimeout(nt),nt=ft=Jt=null},qe}function ro(C,L){return co(L,C)}function vi(C){return function(){return!C.apply(this,arguments)}}function Rs(){var C=arguments,L=C.length-1;return function(){for(var J=L,nt=C[L].apply(this,arguments);J--;)nt=C[J].call(this,nt);return nt}}function Pr(C,L){return function(){if(--C<1)return L.apply(this,arguments)}}function Ao(C,L){var J;return function(){return--C>0&&(J=L.apply(this,arguments)),C<=1&&(L=null),J}}const mi=co(Ao,2);function zs(C,L,J){L=Qe(L,J);for(var nt,wt=H(C),ft=0,Vt=wt.length;ft0?0:wt-1;ft>=0&&ft0?Vt=ft>=0?ft:Math.max(ft+Jt,Vt):Jt=ft>=0?Math.min(ft+1,Jt):ft+Jt+1;else if(J&&ft&&Jt)return nt[ft=J(nt,wt)]===wt?ft:-1;if(wt!=wt)return(ft=L(A.call(nt,Vt,Jt),ee))>=0?ft+Vt:-1;for(ft=C>0?Vt:Jt-1;ft>=0&&ft0?0:Jt-1;for(ft||(wt=J[Vt?Vt[De]:De],De+=C);De>=0&&De=3;return L(J,Jn(nt,ft,4),wt,Vt)}}const Hr=Xo(1),Ki=Xo(-1);function Cn(C,L,J){var nt=[];return L=Qe(L,J),_n(C,function(wt,ft,Vt){L(wt,ft,Vt)&&nt.push(wt)}),nt}function jr(C,L,J){return Cn(C,vi(Qe(L)),J)}function Yi(C,L,J){L=Qe(L,J);for(var nt=!er(C)&&H(C),wt=(nt||C).length,ft=0;ft=0}const Rr=z(function(C,L,J){var nt,wt;return Ce(L)?wt=L:(L=gn(L),nt=L.slice(0,-1),L=L[L.length-1]),Ar(C,function(ft){var Vt=wt;if(!Vt){if(nt&&nt.length&&(ft=$o(ft,nt)),ft==null)return;Vt=ft[L]}return Vt==null?Vt:Vt.apply(ft,J)})});function zr(C,L){return Ar(C,zn(L))}function Ln(C,L){return Cn(C,Yn(L))}function Br(C,L,J){var nt,wt,ft=-1/0,Vt=-1/0;if(L==null||typeof L=="number"&&typeof C[0]!="object"&&C!=null)for(var Jt=0,De=(C=er(C)?C:tr(C)).length;Jtft&&(ft=nt);else L=Qe(L,J),_n(C,function(qe,vn,Wr){((wt=L(qe,vn,Wr))>Vt||wt===-1/0&&ft===-1/0)&&(ft=qe,Vt=wt)});return ft}function wi(C,L,J){var nt,wt,ft=1/0,Vt=1/0;if(L==null||typeof L=="number"&&typeof C[0]!="object"&&C!=null)for(var Jt=0,De=(C=er(C)?C:tr(C)).length;JtJt||Vt===void 0)return 1;if(Vt1&&(nt=Jn(nt,L[1])),L=Qt(C)):(nt=Ll,L=Oo(L,!1,!1),C=Object(C));for(var wt=0,ft=L.length;wt1&&(J=L[1])):(L=Ar(Oo(L,!1,!1),String),nt=function(wt,ft){return!vr(L,ft)}),jo(C,nt,J)});function Qi(C,L,J){return A.call(C,0,Math.max(0,C.length-(L==null||J?1:L)))}function uo(C,L,J){return C==null||C.length<1?L==null||J?void 0:[]:L==null||J?C[0]:Qi(C,C.length-L)}function Mr(C,L,J){return A.call(C,L==null||J?1:L)}function _i(C,L,J){return C==null||C.length<1?L==null||J?void 0:[]:L==null||J?C[C.length-1]:Mr(C,Math.max(0,C.length-L))}function ts(C){return Cn(C,Boolean)}function es(C,L){return Oo(C,L,!1)}const Mo=z(function(C,L){return L=Oo(L,!0,!0),Cn(C,function(J){return!vr(L,J)})}),xn=z(function(C,L){return Mo(C,L)});function Lo(C,L,J,nt){Z(L)||(nt=J,J=L,L=!1),J!=null&&(J=Qe(J,nt));for(var wt=[],ft=[],Vt=0,Jt=y(C);Vt{var lt=_&&_.__esModule?()=>_.default:()=>_;return Wt.d(lt,{a:lt}),lt},Wt.d=(_,lt)=>{for(var D in lt)Wt.o(lt,D)&&!Wt.o(_,D)&&Object.defineProperty(_,D,{enumerable:!0,get:lt[D]})},Wt.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),Wt.o=(_,lt)=>Object.prototype.hasOwnProperty.call(_,lt),Wt.r=_=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(_,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(_,"__esModule",{value:!0})};var Gt={};return(()=>{Wt.d(Gt,{default:()=>wm});var _=Wt(50),lt=Wt(895),D=Wt(163);function et(a){for(var r=[],t=1;t',move:'',plus:'',caret:'',delete:'',copy:'',arrowUp:'',chevron:'',eye:'',eyeOff:''},i18n:{},undoManager:{},assetManager:{},canvas:{},layerManager:{},storageManager:{},richTextEditor:{},domComponents:{},modal:{},codeManager:{},panels:{},commands:{},cssComposer:{},selectorManager:{},deviceManager:{},styleManager:{},blockManager:{},traitManager:{},textViewCode:"Code",keepUnusedStyles:!1,multiFrames:!1,customUI:!1};var q=Wt(316),G=Wt.n(q),U,S=Wt(346),E=(U=function(a,r){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},U(a,r)},function(a,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function t(){this.constructor=a}U(a,r),a.prototype=r===null?Object.create(r):(t.prototype=r.prototype,new t)}),A=function(a){function r(){return a!==null&&a.apply(this,arguments)||this}return E(r,a),r}(S.Hn);const M=function(a){function r(){return a!==null&&a.apply(this,arguments)||this}return E(r,a),r.prototype.getByComponent=function(t){var e=this;return this.filter(function(n){return e.getComponent(n)===t})[0]},r.prototype.addComponent=function(t,e){var n=this,i=((0,_.isArray)(t)?t:[t]).filter(function(l){return!n.hasComponent(l)}).map(function(l){return new A({component:l})})[0];return this.push(i,e)},r.prototype.getComponent=function(t){return t.get("component")},r.prototype.hasComponent=function(t){var e=this.getByComponent(t);return e&&this.contains(e)},r.prototype.lastComponent=function(){var t=this.last();return t?this.getComponent(t):void 0},r.prototype.allComponents=function(){var t=this;return this.map(function(e){return t.getComponent(e)}).filter(function(e){return e})},r.prototype.removeComponent=function(t,e){var n=this,i=((0,_.isArray)(t)?t:[t]).map(function(l){return n.getByComponent(l)});return this.remove(i,e)},r}(S.FE);var N=function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}}(),it=function(){return it=Object.assign||function(a){for(var r,t=1,e=arguments.length;t",frameStyle:` + body { background-color: #fff } + * ::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.1) } + * ::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.2) } + * ::-webkit-scrollbar { width: 10px } + `,notTextable:["button","a","input[type=checkbox]","input[type=radio]"]};var ut=function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}}();const pt=function(a){function r(t,e,n){var i=a.call(this,e,n)||this;return i._module=t,i}return ut(r,a),Object.defineProperty(r.prototype,"module",{get:function(){return this._module},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"config",{get:function(){return this._module.config},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"em",{get:function(){return this._module.em},enumerable:!1,configurable:!0}),r}(S.Hn);var Dt=function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}}();const Bt=function(a){function r(t,e,n){return a.call(this,e,{module:t,modelConstructor:n})||this}return Dt(r,a),r.prototype.add=function(t,e){var n,i=this,l=(0,_.isArray)(t)?t:(0,_.isUndefined)(t)?void 0:[t];return l=(n=l==null?void 0:l.map(function(f){return f instanceof i.newModel?f:new i.newModel(i.module,f)}))!==null&&n!==void 0?n:[void 0],a.prototype.add.call(this,(0,_.isArray)(t)?l:l[0],e)},r.prototype.preinitialize=function(t,e){this.newModel=e.modelConstructor,this.module=e.module},r}(S.FE);var kt=function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}}(),z=function(){return z=Object.assign||function(a){for(var r,t=1,e=arguments.length;t=0&&this.head.splice(l,1)},r.prototype.addLink=function(t){var e="link";!this.getHeadByAttr("href",t,e)&&this.addHeadItem({tag:e,attributes:{href:t,rel:"stylesheet"}})},r.prototype.removeLink=function(t){this.removeHeadByAttr("href",t,"link")},r.prototype.addScript=function(t){var e="script";!this.getHeadByAttr("src",t,e)&&this.addHeadItem({tag:e,attributes:{src:t}})},r.prototype.removeScript=function(t){this.removeHeadByAttr("src",t,"script")},r.prototype.getPage=function(){var t;return(t=this.collection)===null||t===void 0?void 0:t.page},r.prototype._emitUpdated=function(t){t===void 0&&(t={}),this.em.trigger("frame:updated",z({frame:this},t))},r.prototype.toJSON=function(t){t===void 0&&(t={});var e=pt.prototype.toJSON.call(this,t),n=(0,_.result)(this,"defaults");return t.fromUndo&&delete e.component,delete e.styles,delete e.changesCount,e[I]&&delete e.width,e[W]&&delete e.height,(0,_.forEach)(e,function(i,l){l.indexOf("_")===0&&delete e[l]}),(0,_.forEach)(n,function(i,l){e[l]===i&&delete e[l]}),(0,_.forEach)(["attributes","head"],function(i){(0,_.isEmpty)(e[i])&&delete e[i]}),e},r}(pt);const bt=Z;var Q=function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}}();const gt=function(a){function r(t,e){e===void 0&&(e=[]);var n=a.call(this,t,e,bt)||this;return n.loadedItems=0,n.itemsToLoad=0,(0,_.bindAll)(n,"itemLoaded"),n.on("reset",n.onReset),n.on("remove",n.onRemove),n}return Q(r,a),r.prototype.onReset=function(t,e){var n=this;((e==null?void 0:e.previousModels)||[]).map(function(i){return n.onRemove(i)})},r.prototype.onRemove=function(t){t==null||t.onRemove()},r.prototype.itemLoaded=function(){this.loadedItems++,this.loadedItems>=this.itemsToLoad&&(this.trigger("loaded:all"),this.listenToLoadItems(!1))},r.prototype.listenToLoad=function(){this.loadedItems=0,this.itemsToLoad=this.length,this.listenToLoadItems(!0)},r.prototype.listenToLoadItems=function(t){var e=this;this.forEach(function(n){return n[t?"on":"off"]("loaded",e.itemLoaded)})},r}(Bt);var F=function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}}();const Lt=function(a){function r(t,e){e===void 0&&(e={});var n=a.call(this,t,e)||this,i=e.em,l={};n.em=i,t.frames||(l.component=t.component,l.styles=t.styles,["component","styles"].map(function(g){return n.unset(g)}));var f=t.frames||[l],d=new gt(i.Canvas,f);d.page=n,n.set("frames",d),!n.getId()&&n.set("id",i==null?void 0:i.get("PageManager")._createId());var v=i==null?void 0:i.get("UndoManager");return v==null||v.add(d),n}return F(r,a),r.prototype.defaults=function(){return{frames:[],_undo:!0}},r.prototype.onRemove=function(){this.getFrames().reset()},r.prototype.getFrames=function(){return this.get("frames")},r.prototype.getId=function(){return this.id},r.prototype.getName=function(){return this.get("name")},r.prototype.setName=function(t){return this.set({name:t})},r.prototype.getAllFrames=function(){return this.getFrames().models||[]},r.prototype.getMainFrame=function(){return this.getFrames().at(0)},r.prototype.getMainComponent=function(){var t=this.getMainFrame();return t==null?void 0:t.getComponent()},r.prototype.toJSON=function(t){t===void 0&&(t={});var e=S.Hn.prototype.toJSON.call(this,t),n=(0,_.result)(this,"defaults");return(0,_.forEach)(e,function(i,l){l.indexOf("_")===0&&delete e[l]}),(0,_.forEach)(n,function(i,l){e[l]===i&&delete e[l]}),e},r}(S.Hn);var Pt=function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}}(),Yt=function(){return Yt=Object.assign||function(a){for(var r,t=1,e=arguments.length;t',`
+
+ + + +
+
+
+
+ + `],[` +
',`
+
+ + + +
+
+
+
+ + `])),e,n,e,e,e,e,e,e,e)},r.prototype.events=function(){return{change:"updateDevice","click [data-add-trasp]":"startAdd"}},r.prototype.startAdd=function(){},r.prototype.updateDevice=function(){var t=this.em;if(t){var e=this.devicesEl;t.set("device",e?e.val():"")}},r.prototype.updateSelect=function(){var t=this.em,e=this.devicesEl;if(t&&t.getDeviceModel&&e){var n=t.getDeviceModel();e.val(n?n.get("id"):"")}},r.prototype.getOptions=function(){var t=this.collection,e=this.em,n="";return t.forEach(function(i){var l=i.attributes,f=l.name,d=l.id,v=e&&e.t&&e.t("deviceManager.devices.".concat(d))||f;n+='")}),n},r.prototype.render=function(){var t=this,e=t.em,n=t.ppfx,i=t.$el,l=t.el,f=e&&e.t&&e.t("deviceManager.device");return i.html(this.template({ppfx:n,label:f})),this.devicesEl=i.find(".".concat(n,"devices")),this.devicesEl.append(this.getOptions()),this.devicesEl.val(e.get("device")),l.className="".concat(n,"devices-c"),this},r}(S.G7);var ct,St=function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}}(),Ct=function(){return Ct=Object.assign||function(a){for(var r,t=1,e=arguments.length;t";if(e.stopDefault(),e.inAbsoluteMode()){var g=e.Components.getWrapper(),w=g.append({})[0],T=e.Commands.run("core:component-drag",{event:r,guidesInfo:1,center:1,target:w,onEnd:function(B,X,ot){var tt;if(!ot.cancelled){tt=g.append(v)[0];var At=n.getOffset(),Ft=w.getStyle(),de=Ft.top,_e=Ft.left,Ne=Ft.position;tt.addStyle({left:parseFloat(_e)-At.left+"px",top:parseFloat(de)-At.top+"px",position:Ne})}t.handleDragEnd(tt,i),w.remove()}});l=function(B){return T.stop(r,{cancel:B})},f=function(B){return v=B}}else{var V=new d.Sorter(ko({em:e,wmargin:1,nested:1,canvasRelative:1,direction:"a",container:this.el,placer:n.getPlacerEl(),containerSel:"*",itemSel:"*",pfx:"gjs-",onEndMove:function(B){return t.handleDragEnd(B,i)},document:this.el.ownerDocument},this.sortOpts||{}));V.setDropContent(v),V.startSort(),this.sorter=V,l=function(B){B&&(V.moved=!1),V.endMove()},f=function(B){return V.setDropContent(B)}}this.dragStop=l,this.dragContent=f,e.trigger("canvas:dragenter",i,v)}},a.prototype.handleDragEnd=function(r,t){var e=this.em;this.over=!1,r&&(e.set("dragResult",r),e.trigger("canvas:drop",t,r)),e.runDefault({preserveSelected:1})},a.prototype.handleDragOver=function(r){r.preventDefault(),this.em.trigger("canvas:dragover",r)},a.prototype.handleDrop=function(r){r.preventDefault();var t=this.dragContent,e=r.dataTransfer,n=this.getContentByData(e).content;r.target.style.border="",n&&t&&t(n),this.endDrop(!n,r)},a.prototype.getContentByData=function(r){var t=this.em,e=r&&r.types,n=r&&r.files||[],i=t.get("dragContent"),l=r&&r.getData("text");if(n.length){l=[];for(var f=0;f=0)l=r&&r.getData("text/html").replace(/<\/?meta[^>]*>/g,"");else if((0,_.indexOf)(e,"text/uri-list")>=0)l={type:"link",attributes:{href:l},content:l};else if((0,_.indexOf)(e,"text/json")>=0){var g=r&&r.getData("text/json");g&&(l=JSON.parse(g))}else e.length===1&&e[0]==="text/plain"&&(l="
".concat(l,"
"));var w={content:l};return t.trigger("canvas:dragdata",r,w),w},a}();const lo=Wo;var gr=function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}}(),gn=function(){return gn=Object.assign||function(a){for(var r,t=1,e=arguments.length;td&&(v+=l-d),!(0,_.isUndefined)(t)&&v!==i&&v>0&&v0){var V=w.shift(),B=(0,$e.ut)("script",gn({type:"text/javascript"},(0,_.isString)(V)?{src:V}:V));B.onerror=B.onload=g.bind(null,w),(T=n.contentDocument)===null||T===void 0||T.head.appendChild(B)}else t.renderBody(),l&&l.trigger(f,d)};n.onload=function(){var w=t.config.frameContent;if(w){var T=t.getDoc();T.open(),T.write(w),T.close()}l&&l.trigger("".concat(f,":before"),d),g($o([],v.get("scripts"),!0))}},r.prototype.renderStyles=function(t){t===void 0&&(t={});var e=this.getHead(),n=this.getCanvasModel(),i=function(w){return w.map(function(T){return{tag:"link",attributes:gn({rel:"stylesheet"},(0,_.isString)(T)?{href:T}:T)}})},l=i(t.prev||n.previous("styles")),f=i(n.get("styles")),d=[],v=[],g=function(w,T,V){w.forEach(function(B){var X=B.attributes.href;!T.some(function(ot){return ot.attributes.href===X})&&V.push(B)})};g(f,l,v),g(l,f,d),d.forEach(function(w){var T,V=e.querySelector('link[href="'.concat(w.attributes.href,'"]'));(T=V==null?void 0:V.parentNode)===null||T===void 0||T.removeChild(V)}),(0,$e.SJ)(e,v)},r.prototype.renderBody=function(){var t,e,n=this,i=this,l=i.config,f=i.em,d=i.model,v=i.ppfx,g=this.getDoc(),w=this.getBody(),T=this.getWindow(),V=f.config;T._isEditor=!0,this.renderStyles({prev:[]}),(0,$e.R3)(w,``));var B=d.getComponent(),X=f.Components.getType("wrapper").view;this.wrapper=new X({model:B,config:gn(gn({},B.config),{em:f,frameView:this})}).render(),(0,$e.R3)(w,(t=this.wrapper)===null||t===void 0?void 0:t.el),(0,$e.R3)(w,new Uo({collection:d.getStyles(),config:gn(gn({},f.Css.getConfig()),{frameView:this})}).render().el),(0,$e.R3)(w,this.getJsContainer()),(0,D.on)(w,"click",function(ot){var tt;return ot&&((tt=ot.target)===null||tt===void 0?void 0:tt.tagName)=="A"&&ot.preventDefault()}),(0,D.on)(w,"submit",function(ot){return ot&&ot.preventDefault()}),[{event:"keydown keyup keypress",class:"KeyboardEvent"},{event:"mousedown mousemove mouseup",class:"MouseEvent"},{event:"pointerdown pointermove pointerup",class:"PointerEvent"},{event:"wheel",class:"WheelEvent"}].forEach(function(ot){return ot.event.split(" ").forEach(function(tt){g.addEventListener(tt,function(At){return n.el.dispatchEvent((0,$e.t3)(At,ot.class))})})}),this._toggleEffects(!0),(0,D.hasDnd)(f)&&(this.droppable=new lo(f,(e=this.wrapper)===null||e===void 0?void 0:e.el)),d.trigger("loaded")},r.prototype._toggleEffects=function(t){var e=t?D.on:D.off,n=this.getWindow();n&&e(n,"".concat($e.G1," resize"),this._emitUpdate)},r.prototype._emitUpdate=function(){this.model._emitUpdated()},r}(yn);const Eo=Fr;var no=Wt(668),Yn=function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}}(),zn=function(){return zn=Object.assign||function(a){for(var r,t=1,e=arguments.length;t +
+ `).concat(f.get("name")||"",` +
+
+ +
+ +
+
+
+ `)).append(e.el);var g=(0,$e.ut)("div",{class:"".concat(i,"tools"),style:"pointer-events:none; display: none"},` +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ `));this.elTools=g;var w=l==null?void 0:l.toolsWrapper;return w&&w.appendChild(g),v&&v({el:d,elTop:d.querySelector("[data-frame-top]"),elRight:d.querySelector("[data-frame-right]"),elBottom:d.querySelector("[data-frame-bottom]"),elLeft:d.querySelector("[data-frame-left]"),frame:f,frameWrapperView:this,remove:this.remove,startDrag:this.startDrag}),this},r}(yn);var qo=function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}}(),_o=function(a){function r(t,e){t===void 0&&(t={});var n=a.call(this,t,!0)||this;return n.listenTo(n.collection,"reset",n.render),n.canvasView=e.canvasView,n._module=e.module,n}return qo(r,a),r.prototype.onRemoveBefore=function(t,e){e===void 0&&(e={}),t.forEach(function(n){return n.remove(e)})},r.prototype.onRender=function(){var t=this.$el,e=this.ppfx;t.attr({class:"".concat(e,"frames")})},r.prototype.renderView=function(t,e){return new Jn(t,this.canvasView)},r}(tr);const Qe=_o;var be=function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}}(),lr=function(){return lr=Object.assign||function(a){for(var r,t=1,e=arguments.length;t +
+ `)},r.prototype._onFramesUpdate=function(){this._initFrames(),this._renderFrames()},r.prototype._initFrames=function(){var t=this,e=t.frames,n=t.model,i=t.config,l=t.em,f=n.frames;l.set("readyCanvas",0),f.once("loaded:all",function(){return l.set("readyCanvas",1)}),e==null||e.remove(),this.frames=new Qe({collection:f},lr(lr({},i),{canvasView:this}))},r.prototype.checkSelected=function(t,e){var n;e===void 0&&(e={});var i=e.scroll,l=this.em.get("currentFrame");i&&((n=t.views)===null||n===void 0||n.forEach(function(f){f._getFrame()===l&&f.scrollIntoView(i)}))},r.prototype.remove=function(){for(var t,e=[],n=0;n=0&&f>=0&&l<=i.height&&f<=i.width},r.prototype.offset=function(t,e){var n,i;e===void 0&&(e={});var l=(0,D.getElRect)(t),f=t==null?void 0:t.ownerDocument.body,d=e.noScroll;return{top:l.top+(d?0:(n=f==null?void 0:f.scrollTop)!==null&&n!==void 0?n:0),left:l.left+(d?0:(i=f==null?void 0:f.scrollLeft)!==null&&i!==void 0?i:0),width:l.width,height:l.height}},r.prototype.clearOff=function(){this.frmOff=void 0,this.cvsOff=void 0},r.prototype.getFrameOffset=function(t){var e;if(!this.frmOff||t){var n=(e=this.frame)===null||e===void 0?void 0:e.el,i=t==null?void 0:t.ownerDocument.defaultView,l=i?i.frameElement:n;this.frmOff=this.offset(l||n)}return this.frmOff},r.prototype.getCanvasOffset=function(){return this.cvsOff||(this.cvsOff=this.offset(this.el)),this.cvsOff},r.prototype.getElementPos=function(t,e){e===void 0&&(e={});var n=this.getZoom(),i=e||{},l=this.getFrameOffset(t),f=this.el,d=this.getCanvasOffset(),v=this.offset(t,e),g=i.avoidFrameOffset?0:l.top,w=i.avoidFrameOffset?0:l.left;return{top:v.top*n+g-d.top+f.scrollTop,left:v.left*n+w-d.left+f.scrollLeft,height:v.height*n,width:v.width*n,zoom:n,rect:v}},r.prototype.getElementOffsets=function(t){var e=this;if(!t||(0,D.isTextNode)(t))return{};var n={},i=window.getComputedStyle(t);return["marginTop","marginRight","marginBottom","marginLeft","paddingTop","paddingRight","paddingBottom","paddingLeft"].forEach(function(l){n[l]=parseFloat(i[l])*e.getZoom()}),n},r.prototype.getPosition=function(t){var e;t===void 0&&(t={});var n=(e=this.frame)===null||e===void 0?void 0:e.el.contentDocument;if(n){var i=n.body,l=this.getZoom(),f=this.getFrameOffset(),d=this.getCanvasOffset(),v=t.noScroll;return{top:f.top+(v?0:i.scrollTop)*l-d.top,left:f.left+(v?0:i.scrollLeft)*l-d.left,width:d.width,height:d.height}}},r.prototype.updateScript=function(t){var e=t.model,n=e.getId();t.scriptContainer||(t.scriptContainer=(0,$e.ut)("div",{"data-id":n}),this.getJsContainer().appendChild(t.scriptContainer)),t.el.id=n,t.scriptContainer.innerHTML="";var i=document.createElement("script"),l=e.getScriptString(),f=e.get("script-props")?l:`function(){ +`.concat(l,` +;}`),d=JSON.stringify(e.__getScriptProps());i.innerHTML=` + setTimeout(function() { + var item = document.getElementById('`.concat(n,`'); + if (!item) return; + (`).concat(f,".bind(item))(").concat(d,`) + }, 1);`),setTimeout(function(){var v=t.scriptContainer;v==null||v.appendChild(i)},0)},r.prototype.getJsContainer=function(t){var e=this.getFrameView(t);return e&&e.getJsContainer()},r.prototype.getFrameView=function(t){return(t==null?void 0:t._getFrame())||this.em.get("currentFrame")},r.prototype._renderFrames=function(){if(this.ready){var t=this,e=t.model,n=t.frames,i=t.em,l=t.framesArea,f=e.frames;f.listenToLoad(),n.render();var d=f.at(0),v=d==null?void 0:d.view;i.setCurrentFrame(v),l==null||l.appendChild(n.el),this.frame=v}},r.prototype.render=function(){var t=this,e=t.el,n=t.$el,i=t.ppfx,l=t.config,f=t.em;n.html(this.template());var d=n.find("[data-frames]");this.framesArea=d.get(0);var v=n.find("[data-tools]");return this.toolsWrapper=v.get(0),v.append(` +
+
+
+
+
+
+ `).concat(l.extHl?'
'):"",` +
+
+
+
+
+
+
+ `)),this.toolsEl=e.querySelector("#".concat(i,"tools")),this.hlEl=e.querySelector(".".concat(i,"highlighter")),this.badgeEl=e.querySelector(".".concat(i,"badge")),this.placerEl=e.querySelector(".".concat(i,"placeholder")),this.ghostEl=e.querySelector(".".concat(i,"ghost")),this.toolbarEl=e.querySelector(".".concat(i,"toolbar")),this.resizerEl=e.querySelector(".".concat(i,"resizer")),this.offsetEl=e.querySelector(".".concat(i,"offset-v")),this.fixedOffsetEl=e.querySelector(".".concat(i,"offset-fixed-v")),this.toolsGlobEl=e.querySelector(".".concat(i,"tools-gl")),this.el.className=(0,D.getUiClass)(f,this.className),this.ready=!0,this._renderFrames(),this},r}(yn);const cr=Go;var en=function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}}(),Bn=function(){return Bn=Object.assign||function(a){for(var r,t=1,e=arguments.length;tf.top+f.height?f.top+f.height:X,left:B,elementTop:f.top,elementLeft:f.left,elementWidth:f.width,elementHeight:f.height,targetWidth:t.offsetWidth,targetHeight:t.offsetHeight,canvasTop:l.top,canvasLeft:l.left,canvasWidth:l.width,canvasHeight:l.height};return w&&this.em&&this.em.trigger(w,ot),ot}},r.prototype.canvasRectOffset=function(t,e,n){var i=this;n===void 0&&(n={});var l=function(f,d,v){d===void 0&&(d=1);var g=i.em.getZoomDecimal(),w=d?"top":"left",T=f.ownerDocument,V=n.offset?function(on){var On=on.defaultView;return On==null?void 0:On.frameElement}(T):{},B=V.offsetTop,X=B===void 0?0:B,ot=V.offsetLeft,tt=ot===void 0?0:ot,At=T.body||{},Ft=At.scrollTop,de=Ft===void 0?0:Ft,_e=At.scrollLeft,Ne=d?de:_e===void 0?0:_e,We=d?X:tt;return v[w]-(Ne-We)*g};return{top:l(t,1,e),left:l(t,0,e)}},r.prototype.getTargetToElementFixed=function(t,e,n){var i;n===void 0&&(n={});var l=n.pos||this.getElementPos(t),f=n.canvasOff||this.canvasRectOffset(t,l),d=e.offsetHeight||0,v=e.offsetWidth||0,g=l.left+l.width,w=this.getCanvasView(),T=w.getPosition(),V=w.getFrameOffset(t),B=n.event,X=-d,ot=(0,_.isUndefined)(n.left)?l.width-v:n.left;ot=l.left<-ot?-l.left:ot;var tt=(i=T==null?void 0:T.width)!==null&&i!==void 0?i:0;ot=g>tt?ot-(g-tt):ot;var At=l.height+d,Ft=At"||(B.void=!0);var Xr=B.components;if(!B.type&&Xr){for(var Zr=1,ao=0,Qr=0;Qr".concat(At,""),On=_e.parseFromString(on,Ne);if(We){var Dr=On.head,Xr=On.body,Zr=Dr.querySelectorAll("script");(0,_.each)(Zr,function(Qr){return Xr.appendChild(Qr)});var ao=[];(0,_.each)(Dr.children,function(Qr){return ao.push(Qr)}),(0,_.each)(ao,function(Qr,ci){return Xr.insertBefore(Qr,Xr.children[ci])}),de=Xr}else de=On.firstChild;return de}(t,v),w=g.querySelectorAll("script"),T=w.length;if(!((0,_.isUndefined)(l.allowScripts)?v.allowScripts:l.allowScripts))for(;T--;)w[T].parentNode.removeChild(w[T]);if(v.allowUnsafeAttr||this.__clearUnsafeAttr(g),e){for(var V=g.querySelectorAll("style"),B=V.length,X="";B--;)X=V[B].innerHTML+X,V[B].parentNode.removeChild(V[B]);X&&(f.css=e.parse(X))}a&&a.trigger("".concat(Ze,":root"),{input:t,root:g});var ot=this.parseNode(g,d),tt=ot.length!==1||d.returnArray?ot:ot[0];return f.html=tt,a&&a.trigger(Ze,{input:t,output:f}),f},__clearUnsafeAttr:function(t){var e=this,n=t.attributes||[],i=t.childNodes||[],l=[];(0,_.each)(n,function(f){var d=f.nodeName||"";d.indexOf("on")===0&&l.push(d)}),l.map(function(f){return t.removeAttribute(f)}),(0,_.each)(i,function(f){return e.__clearUnsafeAttr(f)})}}};var $n=function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}}(),Mn=function(){return Mn=Object.assign||function(a){for(var r,t=1,e=arguments.length;t=0:l,d="".concat(n[i]).concat(f?" !important":""),v=i.substr(0,2)=="__";d&&!v&&e.push("".concat(i,":").concat(d,";"))}return e.join("")},r.prototype.getSelectors=function(){return this.get("selectors")||this.get("classes")},r.prototype.getSelectorsString=function(t){return this.selectorsToString?this.selectorsToString(t):this.getSelectors().getFullString()},r}(S.Hn);var Vs=function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}}(),Er=function(){return Er=Object.assign||function(a){for(var r,t=1,e=arguments.length;t0&&V.reset(T,t)}else w.components=T}return w})},Oo=function(a){function r(){return a!==null&&a.apply(this,arguments)||this}return Vs(r,a),r.prototype.initialize=function(t,e){e===void 0&&(e={}),this.opt=e,this.listenTo(this,"add",this.onAdd),this.listenTo(this,"remove",this.removeChildren),this.listenTo(this,"reset",this.resetChildren);var n=e.em,i=e.config;this.config=i,this.em=n,this.domc=e.domc||(n==null?void 0:n.Components)},r.prototype.resetChildren=function(t,e){var n=this;e===void 0&&(e={});var i=this,l=e.previousModels||[],f=l.filter(function(v){return!t.get(v.cid)}),d=So(t);e.keepIds=So(l).filter(function(v){return d.indexOf(v)>=0}),f.forEach(function(v){return n.removeChildren(v,i,e)}),t.each(function(v){return n.onAdd(v)})},r.prototype.resetFromString=function(t,e){t===void 0&&(t=""),e===void 0&&(e={}),e.keepIds=So(this);var n=this,i=n.domc,l=n.em,f=n.parent,d=l==null?void 0:l.Css,v=(i==null?void 0:i.allById())||{},g=this.parseString(t,e),w=er(g,v,e),T=e.visitedCmps,V=T===void 0?{}:T;Object.keys(V).forEach(function(B){var X=V[B];if(X.length){var ot=(d==null?void 0:d.getRules("#".concat(B)))||[];ot.length&&X.forEach(function(tt){ot.forEach(function(At){var Ft=At.clone();Ft.set("selectors",["#".concat(tt.attributes.id)]),d.getAll().add(Ft)})})}}),this.reset(w,e),l==null||l.trigger("component:content",f,e,t)},r.prototype.removeChildren=function(t,e,n){var i=this;if(n===void 0&&(n={}),t){var l=this.domc,f=this.em,d=n.temporary||n.fromUndo;if(t.prevColl=this,!d){var v=t.getId(),g=f.Selectors.getAll(),w=f.Css.getAll(),T=(n.keepIds||[]).indexOf(v)<0;delete(l?l.allById():{})[v];var V=T?w.remove(w.filter(function(X){return X.getSelectors().getFullString()==="#".concat(v)}),n):[];g.remove(V.map(function(X){return X.getSelectors().at(0)})),t.opt.temporary||(f.Commands.run("core:component-style-clear",{target:t}),t.removed(),t.trigger("removed"),f.trigger("component:remove",t)),t.components().forEach(function(X){return i.removeChildren(X,e,n)})}var B=t.components();f.stopListening(B),f.stopListening(t),f.stopListening(t.get("classes")),t.__postRemove()}},r.prototype.model=function(t,e){var n,i=e.collection.opt,l=i.em,f=l.Components.componentTypes;e.em=l,e.config=i.config,e.componentTypes=f,e.domc=i.domc;for(var d=0;d=0&&this.set("void",!0),e.em=i,this.opt=e,this.em=i,this.frame=e.frame,this.config=e.config||{},this.set("attributes",Ye(Ye({},(0,_.result)(this,"defaults").attributes||{}),this.get("attributes")||{})),this.ccid=r.createId(this,e),this.initClasses(),this.initTraits(),this.initComponents(),this.initToolbar(),this.initScriptProps(),this.listenTo(this,"change:script",this.scriptUpdated),this.listenTo(this,"change:tagName",this.tagUpdated),this.listenTo(this,"change:attributes",this.attrUpdated),this.listenTo(this,"change:attributes:id",this._idUpdated),this.on("change:toolbar",this.__emitUpdateTlb),this.on("change",this.__onChange),this.on(Hr,this.__propToParent),this.set("status",""),this.views=[],["classes","traits","components"].forEach(function(X){var ot="add remove ".concat(X!=="components"?"change":"");n.listenTo(n.get(X),ot.trim(),function(){for(var tt=[],At=0;At=0})},r.prototype.__getSymbToUp=function(t){var e=this;t===void 0&&(t={});var n=[],i=t.changed;if(t.fromInstance||t.noPropagate||t.fromUndo||i&&this.__isSymbOvrd(i))return n;var l=this.__getSymbols()||[],f=this.__getSymbol();return n=(f?rr([f],f.__getSymbols()||[],!0):l).filter(function(d){return d!==e}).filter(function(d){return!(i&&d.__isSymbOvrd(i))})},r.prototype.__getSymbTop=function(t){for(var e=this,n=this.parent(t);n&&(n.__isSymbol()||n.__getSymbol());)e=n,n=n.parent(t);return e},r.prototype.__upSymbProps=function(t,e){var n=this;e===void 0&&(e={});var i=this.changedAttributes()||{},l=i.attributes||{};if(delete i.status,delete i.open,delete i[Xn],delete i[_n],delete i[Ar],delete i.attributes,delete l.id,(0,D.isEmptyObj)(l)||(i.attributes=l),!(0,D.isEmptyObj)(i)){var f=this.__getSymbToUp(e);(0,_.keys)(i).map(function(d){n.__isSymbOvrd(d)&&delete i[d]}),this.__logSymbol("props",f,{opts:e,changed:i}),f.forEach(function(d){var v=Ye({},i);(0,_.keys)(v).map(function(g){d.__isSymbOvrd(g)&&delete v[g]}),d.set(v,Ye({fromInstance:n},e))})}},r.prototype.__upSymbCls=function(t,e,n){var i=this;n===void 0&&(n={});var l=this.__getSymbToUp(n);this.__logSymbol("classes",l,{opts:n}),l.forEach(function(f){f.set("classes",i.get("classes"),{fromInstance:i})}),this.__changesUp(n)},r.prototype.__upSymbComps=function(t,e,n){var i=this,l=n||e||{},f={fromInstance:l.fromInstance,fromUndo:l.fromUndo},d=t.opt.temporary;if(n)if(n.add){var v=[],g=!!this.__getSymbols();if((Ft=this.__getSymbToUp(Ye(Ye({},f),{changed:"components:add"}))).length){var w=t.__getSymbol();v=(w?w.__getSymbols():t.__getSymbols())||[],(v=rr([],v,!0)).push(w||t)}!d&&this.__logSymbol("add",Ft,{opts:n,addedInstances:v.map(function(_e){return _e.cid}),added:t.cid}),Ft.forEach(function(_e){var Ne=_e.__getSymbTop(),We=v.filter(function(on){var On=on.__getSymbTop({prev:1});return Ne&&On&&On===Ne})[0]||t.clone({symbol:!0,symbolInv:g});_e.append(We,Ye({fromInstance:i},n))})}else{var T=t.__getSymbol();if(T&&!n.temporary&&T.set(Xn,T.__getSymbols().filter(function(_e){return _e!==t})),!t.__isSymbolTop()){var V="components:remove",B=n.index,X=t.parent(),ot=Ye({fromInstance:t},n),tt=t.__isSymbolNested(),At=function(_e){var Ne=_e.parent();Ne&&!Ne.__isSymbOvrd(V)&&_e.remove(ot)};Ft=X!=null&&X.__isSymbOvrd(V)?[]:t.__getSymbToUp(f),tt&&(Ft=X==null?void 0:X.__getSymbToUp(Ye(Ye({},f),{changed:V})),At=function(_e){var Ne=_e.components().at(B);Ne&&Ne.remove(Ye({fromInstance:X},ot))}),!d&&this.__logSymbol("remove",Ft,{opts:n,removed:t.cid,isSymbNested:tt}),Ft.forEach(At)}}else{var Ft=this.__getSymbToUp(Ye(Ye({},f),{changed:"components:reset"})),de=t.models;this.__logSymbol("reset",Ft,{components:de}),Ft.forEach(function(_e){var Ne=de.map(function(We){return We.clone({symbol:!0})});_e.components().reset(Ne,Ye({fromInstance:i},e))})}this.__changesUp(l)},r.prototype.initClasses=function(t,e,n){n===void 0&&(n={});var i=this.get("attributes").class||[],l=[this,"change:classes",this.initClasses],f=this.get("classes")||i,d=(0,_.isString)(f)?f.split(" "):f;this.stopListening.apply(this,l);var v=this.normalizeClasses(d),g=new Pr([]);return this.set("classes",g,n),g.add(v),g.on("add remove reset",this.__upSymbCls),this.listenTo.apply(this,l),this},r.prototype.initComponents=function(){var t=[this,"change:components",this.initComponents];this.stopListening.apply(this,t);var e=new Yo([],this.opt);e.parent=this;var n=this.get("components"),i=!this.opt.avoidChildren;return this.set("components",e),i&&n&&e.add((0,_.isFunction)(n)?n(this):n,this.opt),e.on("add remove reset",this.__upSymbComps),this.listenTo.apply(this,t),this},r.prototype.initTraits=function(t){var e=this.em,n="change:traits";this.off(n,this.initTraits),this.__loadTraits();var i=Ye({},this.get("attributes")),l=this.traits;return l.each(function(f){if(!f.get("changeProp")){var d=f.get("name"),v=f.getInitValue();d&&v&&(i[d]=v)}}),l.length&&this.set("attributes",i),this.on(n,this.initTraits),t&&e&&e.trigger("component:toggled"),this},r.prototype.initScriptProps=function(){if(!this.opt.temporary){var t="script-props",e=["change:".concat(t),this.initScriptProps];this.off.apply(this,e);var n=this.previous(t)||[],i=this.get(t)||[],l=n.map(function(d){return"change:".concat(d)}).join(" "),f=i.map(function(d){return"change:".concat(d)}).join(" ");l&&this.off(l,this.__scriptPropsChange),f&&this.on(f,this.__scriptPropsChange),this.on.apply(this,e)}},r.prototype.__scriptPropsChange=function(t,e,n){n===void 0&&(n={}),n.avoidStore||this.trigger("rerender")},r.prototype.append=function(t,e){e===void 0&&(e={});var n=((0,_.isArray)(t)?rr([],t,!0):[t]).map(function(l){return(0,_.isString)(l)||l.collection&&l.collection.remove(l,{temporary:!0}),l}),i=this.components().add(n,e);return(0,_.isArray)(i)?i:[i]},r.prototype.components=function(t,e){e===void 0&&(e={});var n=this.get("components");return(0,_.isUndefined)(t)?n:(n.reset(void 0,e),t?this.append(t,e):[])},r.prototype.getChildAt=function(t){return this.components().at(t||0)||void 0},r.prototype.getLastChild=function(){var t=this.components();return t.at(t.length-1)||null},r.prototype.empty=function(t){return t===void 0&&(t={}),this.components().reset(void 0,t),this},r.prototype.parent=function(t){t===void 0&&(t={});var e=this.collection||t.prev&&this.prevColl;return e?e.parent:void 0},r.prototype.parents=function(){var t=this.parent();return t?[t].concat(t.parents()):[]},r.prototype.scriptUpdated=function(){this.set("scriptUpdated",1)},r.prototype.initToolbar=function(){var t=this.em,e=this,n=t&&t.getConfig().stylePrefix||"";if(!e.get("toolbar")&&t){var i=[];e.collection&&i.push({label:t.getIcon("arrowUp"),command:function(l){return l.runCommand("core:component-exit",{force:1})}}),e.get("draggable")&&i.push({attributes:{class:"".concat(n,"no-touch-actions"),draggable:!0},label:t.getIcon("move"),command:"tlb-move"}),e.get("copyable")&&i.push({label:t.getIcon("copy"),command:"tlb-clone"}),e.get("removable")&&i.push({label:t.getIcon("delete"),command:"tlb-delete"}),e.set("toolbar",i)}},r.prototype.__loadTraits=function(t,e){e===void 0&&(e={});var n=t||this.traits;if(!(n instanceof Jo)){n=(0,_.isFunction)(n)?n(this):n;var i=new Jo([],this.opt);i.setTarget(this),n.length&&(n.forEach(function(l){return l.attributes&&delete l.attributes.value}),i.add(n)),this.set({traits:i},e)}return this},r.prototype.getTraits=function(){return this.__loadTraits(),rr([],this.traits.models,!0)},r.prototype.setTraits=function(t){var e=(0,_.isArray)(t)?t:[t];return this.set({traits:e}),this.getTraits()},r.prototype.getTrait=function(t){return this.getTraits().filter(function(e){return e.get("id")===t||e.get("name")===t})[0]||null},r.prototype.updateTrait=function(t,e){var n,i=this.getTrait(t);return i&&i.set(e),(n=this.em)===null||n===void 0||n.trigger("component:toggled"),this},r.prototype.getTraitIndex=function(t){var e=this.getTrait(t);return e?this.traits.indexOf(e):-1},r.prototype.removeTrait=function(t){var e,n=this,i=((0,_.isArray)(t)?t:[t]).map(function(d){return n.getTrait(d)}),l=this.traits,f=i.length?l.remove(i):[];return(e=this.em)===null||e===void 0||e.trigger("component:toggled"),(0,_.isArray)(f)?f:[f]},r.prototype.addTrait=function(t,e){var n;e===void 0&&(e={}),this.__loadTraits();var i=this.traits.add(t,e);return(n=this.em)===null||n===void 0||n.trigger("component:toggled"),(0,_.isArray)(i)?i:[i]},r.prototype.normalizeClasses=function(t){var e=[],n=this.em,i=n==null?void 0:n.Selectors;return i?t.models?rr([],t.models,!0):(t.forEach(function(l){return e.push(i.add(l))}),e):[]},r.prototype.clone=function(t){t===void 0&&(t={});var e=this.em,n=Ye({},this.attributes),i=Ye({},this.opt),l=this.getId(),f=e==null?void 0:e.Css;n.attributes=Ye({},n.attributes),delete n.attributes.id,n.components=[],n.classes=[],n.traits=[],this.__isSymbolTop()&&(t.symbol=!0),this.get("components").each(function(V,B){n.components[B]=V.clone(Ye(Ye({},t),{_inner:1}))}),this.get("traits").each(function(V,B){n.traits[B]=V.clone()}),this.get("classes").each(function(V,B){n.classes[B]=V.get("name")}),n.status="",i.collection=null;var d=new this.constructor(n,i),v="#".concat(d.getId());(f?f.getRules("#".concat(l)):[]).forEach(function(V){var B=V.clone();B.set("selectors",[v]),f.getAll().add(B)}),d.set(Xn,0);var g=this.__getSymbol(),w=this.__getSymbols();t.symbol||!g&&!w?g?(g.set(Xn,rr(rr([],g.__getSymbols(),!0),[d],!1)),d.__initSymb()):t.symbol&&(this.__isSymbol()?(this.set(Xn,rr(rr([],w,!0),[d],!1)),d.set(_n,this),d.__initSymb()):t.symbolInv?(this.set(Xn,[d]),d.set(_n,this),[this,d].map(function(V){return V.__initSymb()})):(d.set(Xn,[this]),[this,d].map(function(V){return V.__initSymb()}),this.set(_n,d))):(d.set(_n,0),d.set(Xn,0));var T="component:clone";return e&&e.trigger(T,d),this.trigger(T,d),d},r.prototype.getName=function(){var t=this.em,e=this.attributes,n=e.type,i=e.tagName,l=e.name,f=n||i,d=n?"":i,v="domComponents.names.",g=l&&(t==null?void 0:t.t("".concat(v).concat(l))),w=d&&(t==null?void 0:t.t("".concat(v).concat(d))),T=t&&(t.t("".concat(v).concat(n))||t.t("".concat(v).concat(i)));return this.get("custom-name")||g||l||w||(0,D.capitalize)(d)||T||(0,D.capitalize)(f)},r.prototype.getIcon=function(){var t=this.get("icon");return t?t+" ":""},r.prototype.toHTML=function(t){t===void 0&&(t={});var e=this,n=[],i=t.tag||e.get("tagName"),l=e.get("void"),f=t.attributes,d=this.getAttrToHTML();if(delete t.tag,f&&((0,_.isFunction)(f)?d=f(e,d)||{}:(0,D.isObject)(f)&&(d=f)),t.withProps){var v=this.toJSON();(0,_.forEach)(v,function(tt,At){At[0]!=="_"&&["classes","attributes","components"].indexOf(At)<0&&(d["data-gjs-".concat(At)]=(0,_.isArray)(tt)||(0,D.isObject)(tt)?JSON.stringify(tt):tt)})}for(var g in d){var w=d[g];if(!(0,_.isUndefined)(w)&&w!==null)if((0,_.isBoolean)(w))w&&n.push(g);else{var T="";if(t.altQuoteAttr&&(0,_.isString)(w)&&w.indexOf('"')>=0)T="'".concat(w.replace(/'/g,"'"),"'");else{var V=(0,_.isString)(w)?w.replace(/"/g,"""):w;T='"'.concat(V,'"')}n.push("".concat(g,"=").concat(T))}}var B=n.length?" ".concat(n.join(" ")):"",X=e.getInnerHTML(t),ot="<".concat(i).concat(B).concat(l?"/":"",">").concat(X);return!l&&(ot+="")),ot},r.prototype.getInnerHTML=function(t){return this.__innerHTML(t)},r.prototype.__innerHTML=function(t){t===void 0&&(t={});var e=this.components();return e.length?e.map(function(n){return n.toHTML(t)}).join(""):this.get("content")},r.prototype.getAttrToHTML=function(){var t=this.getAttributes();return delete t.style,t},r.prototype.toJSON=function(t){t===void 0&&(t={});var e=q.Model.prototype.toJSON.call(this,t);if(e.attributes=this.getAttributes(),delete e.attributes.class,delete e.toolbar,delete e.traits,delete e.status,delete e.open,delete e._undoexc,!t.fromUndo){var n=e[_n],i=e[Xn];i&&(0,_.isArray)(i)&&(e[Xn]=i.filter(function(l){return l}).map(function(l){return l.getId?l.getId():l})),n&&!(0,_.isString)(n)&&(e[_n]=n.getId())}return this.em.getConfig().avoidDefaults&&this.getChangedProps(e),e},r.prototype.getChangedProps=function(t){var e=t||q.Model.prototype.toJSON.apply(this),n=(0,_.result)(this,"defaults");return(0,_.forEach)(n,function(i,l){["type"].indexOf(l)===-1&&e[l]===i&&delete e[l]}),(0,_.isEmpty)(e.type)&&delete e.type,(0,_.forEach)(["attributes","style"],function(i){(0,_.isEmpty)(n[i])&&(0,_.isEmpty)(e[i])&&delete e[i]}),(0,_.forEach)(["classes","components"],function(i){(!e[i]||(0,_.isEmpty)(n[i])&&!e[i].length)&&delete e[i]}),e},r.prototype.getId=function(){return(this.get("attributes")||{}).id||this.ccid||this.cid},r.prototype.setId=function(t,e){var n=Ye({},this.get("attributes"));return n.id=t,this.set("attributes",n,e),this},r.prototype.getEl=function(t){t===void 0&&(t=void 0);var e=this.getView(t);return e&&e.el},r.prototype.getView=function(t){var e=this.view,n=this.views;return t&&(e=n.filter(function(i){return i._getFrame()===t.view})[0]),e},r.prototype.getCurrentView=function(){var t=(this.em.get("currentFrame")||{}).model;return this.getView(t)},r.prototype.__getScriptProps=function(){var t=this.props();return(this.get("script-props")||[]).reduce(function(e,n){return e[n]=t[n],e},{})},r.prototype.getScriptString=function(t){var e=this,n=t||this.get("script")||"";if(!n)return n;if(this.get("script-props"))n=n.toString().trim();else{if(typeof n=="function"){var i=n.toString().trim();n=(i=i.replace(/^function[\s\w]*\(\)\s?\{/,"").replace(/\}$/,"")).trim()}var l=this.em.getConfig(),f=Gi(l.tagVarStart||"{[ "),d=Gi(l.tagVarEnd||" ]}"),v=new RegExp("".concat(f,"([\\w\\d-]*)").concat(d),"g");n=n.replace(v,function(g,w){e.scriptUpdated();var T=e.attributes[w]||"";return(0,_.isArray)(T)||typeof T=="object"?JSON.stringify(T):T})}return n},r.prototype.emitUpdate=function(t){for(var e,n=[],i=1;i=0&&this.__propSelfToParent({component:this,changed:(e={},e[t]=d,e),options:n[2]||n[1]||{}})},r.prototype.onAll=function(t){return(0,_.isFunction)(t)&&(t(this),this.components().forEach(function(e){return e.onAll(t)})),this},r.prototype.remove=function(t){var e=this;t===void 0&&(t={});var n=this.em,i=this.collection,l=function(){i&&i.remove(e,Ye(Ye({},t),{action:"remove-component"})),i||(e.components("",t),e.components().removeChildren(e,void 0,t))},f=Ye({},t);return[this,n].map(function(d){return d.trigger("component:remove:before",e,l,f)}),!f.abort&&l(),this},r.prototype.move=function(t,e){if(e===void 0&&(e={}),t){var n=e.at,i=this.index(),l=t===this.parent();l&&(i===n||i===n-1)||(l&&n&&n>i&&(e.at=n-1),this.remove({temporary:1}),t.append(this,e),this.emitUpdate())}return this},r.prototype.isInstanceOf=function(t){var e,n,i=(n=(e=this.em)===null||e===void 0?void 0:e.Components.getType(t))===null||n===void 0?void 0:n.model;return!!i&&this instanceof i},r.prototype.isChildOf=function(t){for(var e=(0,_.isString)(t),n=this.parent();n;){if(e){if(n.isInstanceOf(t))return!0}else if(n===t)return!0;n=n.parent()}return!1},r.prototype.resetId=function(t){var e=this.em,n=this.getId();if(!n)return this;var i=r.createId(this);this.setId(i);var l=e==null?void 0:e.Css.getIdRule(n),f=l==null?void 0:l.get("selectors").at(0);return f==null||f.set("name",i),this},r.prototype._getStyleRule=function(t){var e=(t===void 0?{}:t).id,n=this.em,i=e||this.getId();return n==null?void 0:n.Css.getIdRule(i)},r.prototype._getStyleSelector=function(t){var e=this._getStyleRule(t);return e==null?void 0:e.get("selectors").at(0)},r.prototype._idUpdated=function(t,e,n){if(n===void 0&&(n={}),!n.idUpdate){var i=this.ccid,l=(this.get("attributes")||{}).id,f=(this.previous("attributes")||{}).id||i,d=r.getList(this);if(d[l]||!l&&f)return this.setId(f,{idUpdate:!0});delete d[f],d[l]=this,this.ccid=l;var v=this._getStyleSelector({id:f});v&&v.set({name:l,label:l})}},r.getDefaults=function(){return(0,_.result)(this.prototype,"defaults")},r.isComponent=function(t){return{tagName:(0,D.toLowerCase)(t.tagName)}},r.ensureInList=function(t){var e=r.getList(t),n=t.getId(),i=e[n];if(i){if(i!==t){var l=r.getIncrementId(n,e);t.setId(l),e[l]=t}}else e[n]=t;t.components().forEach(function(f){return r.ensureInList(f)})},r.createId=function(t,e){e===void 0&&(e={});var n,i=r.getList(t),l=e.idMap,f=l===void 0?{}:l,d=t.get("attributes").id;return d?(n=r.getIncrementId(d,i,e),t.setId(n),d!==n&&(f[d]=n)):n=r.getNewId(i),i[n]=t,n},r.getNewId=function(t){for(var e=Object.keys(t).length.toString().length+2,n=(Math.random()+1.1).toString(36).slice(-e),i="i".concat(n);t[i];)i=r.getNewId(t);return i},r.getIncrementId=function(t,e,n){n===void 0&&(n={});var i=n.keepIds,l=1,f=t;if((i===void 0?[]:i).indexOf(t)<0)for(;e[f];)l++,f="".concat(t,"-").concat(l);return f},r.getList=function(t){var e=t.opt,n=e===void 0?{}:e,i=n.domc,l=n.em,f=i||(l==null?void 0:l.Components);return f?f.componentsById:{}},r.checkId=function(t,e,n,i){e===void 0&&(e=[]),n===void 0&&(n={}),i===void 0&&(i={});var l=(0,_.isArray)(t)?t:[t],f=i.keepIds,d=f===void 0?[]:f;l.forEach(function(v){v.attributes;var g=v.attributes,w=g===void 0?{}:g,T=v.components,V=w.id;if(V&&n[V]&&d.indexOf(V)<0){var B=r.getIncrementId(V,n);w.id=B,(0,_.isArray)(e)&&e.forEach(function(X){var ot=X.selectors;ot.forEach(function(tt,At){tt==="#".concat(V)&&(ot[At]="#".concat(B))})})}T&&r.checkId(T,e,n,i)})},r}(kr);const Cn=Ki;var jr=function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}}(),Yi=function(a){function r(){var t=a!==null&&a.apply(this,arguments)||this;return t.compView=Ln,t}return jr(r,a),r.prototype.initialize=function(t){this.opts=t||{},this.config=t.config||{},this.em=this.config.em;var e=this.collection;this.listenTo(e,"add",this.addTo),this.listenTo(e,"reset",this.resetChildren),this.listenTo(e,"remove",this.removeChildren)},r.prototype.removeChildren=function(t,e,n){var i=this;n===void 0&&(n={}),t.views.forEach(function(l){if(l){var f=l.childrenView,d=l.scriptContainer;f&&f.stopListening(),(0,$e.L_)(d),l.remove.apply(l)}}),t.components().forEach(function(l){return i.removeChildren(l,e,n)})},r.prototype.addTo=function(t,e,n){n===void 0&&(n={});var i=this.em,l=this.collection.indexOf(t);if(this.addToCollection(t,null,l),i&&!n.temporary){var f=function(d){i.trigger("component:add",d),d.components().forEach(function(v){return f(v)})};f(t)}},r.prototype.addToCollection=function(t,e,n){for(var i=this,l=i.config,f=i.opts,d=i.em,v=e||null,g=l.frameView,w=(g==null?void 0:g.model)&&t.getView(g.model),T=f.componentTypes||(d==null?void 0:d.Components.getTypes()),V=t.get("type")||"default",B=this.compView,X=0;X=w.scrollTop&&g>=w.scrollLeft&&v<=w.scrollBottom&&g<=(f==null?void 0:f.offsetWidth)+l.scrollLeft},r.prototype.scrollIntoView=function(t){var e;t===void 0&&(t={});var n=this.getOffsetRect();if(!this.isInViewport({rect:n})||t.force){var i=this.el;t.behavior!=="smooth"?(e=i.ownerDocument.defaultView)===null||e===void 0||e.scrollTo(0,n.top):i.scrollIntoView(Rr({behavior:"smooth",block:"nearest"},t))}},r.prototype.reset=function(){var t=this.el;this.el="",this._ensureElement(),this._setData(),(0,$e.dL)(t,this.el),this.render()},r.prototype._setData=function(){var t=this.model,e=t.components();this.$el.data({model:t,collection:e,view:this})},r.prototype._getFrame=function(){var t;return(t=this.em)===null||t===void 0?void 0:t.get("Canvas").config.frameView},r.prototype.renderChildren=function(){this.updateContent();var t=this.getChildrenContainer(),e=this.childrenView||new bi({collection:this.model.get("components"),config:this.config,componentTypes:this.opts.componentTypes});e.render(t),this.childrenView=e;for(var n=Array.prototype.slice.call(e.el.childNodes),i=0,l=n.length;i=0},r}(Cn);var Da=function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}}();const Na=function(a){function r(){return a!==null&&a.apply(this,arguments)||this}return Da(r,a),r}(Ln);var Ji=function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}}(),Zo=function(){return Zo=Object.assign||function(a){for(var r,t=1,e=arguments.length;t + + `),fallback:" + + `),file:""})},enumerable:!1,configurable:!0}),r.prototype.initialize=function(t,e){a.prototype.initialize.call(this,t,e);var n=this.get("attributes").src;n&&(0,D.buildBase64UrlFromSvg)((0,_.result)(this,"defaults").src)!==n&&this.set("src",n,{silent:!0})},r.prototype.initToolbar=function(){a.prototype.initToolbar.call(this);var t=this.em;if(t){var e="image-editor";if(t.Commands.has(e)){for(var n=!1,i=this.get("toolbar"),l=0;l=0)&&delete n.editable})}return n},r}(No);const Sp=xp;var $c=function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}}(),za=function(){return za=Object.assign||function(a){for(var r,t=1,e=arguments.length;t0&&n[n.length-1])||g[0]!==6&&g[0]!==2)){l=0;continue}if(g[0]===3&&(!n||g[1]>n[0]&&g[1]")},r.isComponent=function(t){if(t.nodeType==8)return{tagName:"NULL",type:"comment",content:t.textContent}},r}(Qs);var ql=function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}}();const Ka=function(a){function r(){return a!==null&&a.apply(this,arguments)||this}return ql(r,a),r.prototype._setAttributes=function(){},r.prototype.renderAttributes=function(){},r.prototype.updateStatus=function(){},r.prototype.updateClasses=function(){},r.prototype.setAttribute=function(){},r.prototype.updateAttributes=function(){},r.prototype.initClasses=function(){},r.prototype.initComponents=function(){},r.prototype.delegateEvents=function(){return this},r.prototype._createElement=function(){return document.createTextNode("")},r.prototype.render=function(){var t=this.model,e=this.el;return t.opt.temporary||(e.textContent=t.get("content")),this},r}(Ln);var us=function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}}();const ta=function(a){function r(){return a!==null&&a.apply(this,arguments)||this}return us(r,a),r.prototype._createElement=function(){return document.createComment(this.model.get("content"))},r}(Ka);var Pp=function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}}(),ki=function(){return ki=Object.assign||function(a){for(var r,t=1,e=arguments.length;t-1;return qr(qr({},l),!w||T?{reason:2}:{result:!0})},r.prototype.allById=function(){return this.componentsById},r.prototype.getById=function(t){return this.componentsById[t]||null},r.prototype.destroy=function(){var t,e=this.allById();Object.keys(e).forEach(function(n){return e[n]&&e[n].remove()}),(t=this.componentView)===null||t===void 0||t.remove(),[this.em,this.componentsById,this.componentView].forEach(function(n){return{}})},r}(Nt);const Ap=tu,Pi={stylePrefix:"css-",rules:[]};var Ai=function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}}(),jp=Number.MAX_VALUE,Mp=function(a){function r(){var t=a.call(this)||this;return(0,_.bindAll)(t,"sortRules"),t.compCls=[],t.ids=[],t}return Ai(r,a),r.prototype.buildFromModel=function(t,e){var n=this;e===void 0&&(e={});var i="",l=this.em,f=l&&l.getConfig().avoidInlineStyle,d=t.styleToString(),v=t.classes;return this.ids.push("#".concat(t.getId())),v.forEach(function(g){return n.compCls.push(g.getFullName())}),!f&&d&&(i="#".concat(t.getId(),"{").concat(d,"}")),t.components().forEach(function(g){return i+=n.buildFromModel(g,e)}),i},r.prototype.build=function(t,e){var n=this;e===void 0&&(e={});var i=e.json,l=e.em,f=e.cssc||(l==null?void 0:l.Css);this.em=l,this.compCls=[],this.ids=[],this.model=t;var d=[],v=t?this.buildFromModel(t,e):"",g=(0,_.isUndefined)(e.clearStyles)&&l?l.getConfig().clearStyles:e.clearStyles;if(f){var w=e.rules||f.getAll(),T={},V=[];e.onlyMatched&&t&&(0,D.hasWin)()&&(w=this.matchedRules(t,w)),w.forEach(function(B){var X=B.getAtRule();if(X){var ot=T[X];ot?ot.push(B):T[X]=[B]}else{var tt=n.buildFromRule(B,V,e);i?d.push(tt):v+=tt}}),this.sortMediaObject(T).forEach(function(B){var X="",ot=B.key;B.value.forEach(function(tt){var At=n.buildFromRule(tt,V,e);tt.get("singleAtRule")?v+="".concat(ot,"{").concat(At,"}"):X+=At,i&&d.push(At)}),X&&(v+="".concat(ot,"{").concat(X,"}"))}),l&&g&&w.remove&&w.remove(V)}return i?d.filter(function(B){return B}):v},r.prototype.buildFromRule=function(t,e,n){var i,l=this;n===void 0&&(n={});var f,d="",v=this.model,g=t.selectorsToString({skipAdd:1}),w=t.get("selectorsAdd"),T=t.get("singleAtRule");if((i=t.get("selectors"))===null||i===void 0||i.forEach(function(B){var X=B.getFullName();(l.compCls.indexOf(X)>=0||l.ids.indexOf(X)>=0||n.keepUnusedStyles)&&(f=1)}),g&&f||w||T||!v){var V=t.getDeclaration({body:1});V&&(n.json?d=t:d+=V)}else e.push(t);return d},r.prototype.matchedRules=function(t,e){var n=this,i=t.getEl(),l=[];return e.forEach(function(f){try{f.selectorsToString().split(",").some(function(d){return i==null?void 0:i.matches(n.__cleanSelector(d))})&&l.push(f)}catch{}}),t.components().forEach(function(f){l=l.concat(n.matchedRules(f,e))}),l=l.filter(function(f,d){return l.indexOf(f)===d})},r.prototype.getQueryLength=function(t){var e=/(-?\d*\.?\d+)\w{0,}/.exec(t);return e?parseFloat(e[1]):jp},r.prototype.sortMediaObject=function(t){var e=this;t===void 0&&(t={});var n=[];return(0,_.each)(t,function(i,l){return n.push({key:l,value:i})}),n.sort(function(i,l){var f=[i.key,l.key].every(function(g){return g.indexOf("min-width")!==-1}),d=f?i.key:l.key,v=f?l.key:i.key;return e.getQueryLength(d)-e.getQueryLength(v)})},r.prototype.sortRules=function(t,e){var n=function(d){return d.get("mediaText")||""},i=[n(t),n(e)].every(function(d){return d.indexOf("min-width")!==-1}),l=n(i?t:e),f=n(i?e:t);return this.getQueryLength(l)-this.getQueryLength(f)},r.prototype.__cleanSelector=function(t){return t.split(" ").map(function(e){return e.split(":")[0]}).join(" ")},r}(S.Hn);const Lp=Mp;var Dp=function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}}(),ia=function(){return ia=Object.assign||function(a){for(var r,t=1,e=arguments.length;t=0})},r.prototype.setIdRule=function(t,e,n){e===void 0&&(e={}),n===void 0&&(n={});var i=n.addOpts,l=i===void 0?{}:i,f=n.mediaText,d=n.state||"",v=(0,_.isUndefined)(f)?this.em.getCurrentMedia():f,g=this.em.Selectors.add({name:t,type:nr.TYPE_ID},l),w=this.add(g,d,v,{},l);return w.setStyle(e,ji(ji({},n),l)),w},r.prototype.getIdRule=function(t,e){e===void 0&&(e={});var n=e.mediaText,i=e.state||"",l=(0,_.isUndefined)(n)?this.em.getCurrentMedia():n,f=this.em.Selectors.get(t,nr.TYPE_ID);return f&&this.get(f,i,l)},r.prototype.setClassRule=function(t,e,n){e===void 0&&(e={}),n===void 0&&(n={});var i=n.state||"",l=n.mediaText||this.em.getCurrentMedia(),f=this.em.Selectors.add({name:t,type:nr.TYPE_CLASS}),d=this.add(f,i,l);return d.setStyle(e,n),d},r.prototype.getClassRule=function(t,e){e===void 0&&(e={});var n=e.state||"",i=e.mediaText||this.em.getCurrentMedia(),l=this.em.Selectors.get(t,nr.TYPE_CLASS);return l&&this.get(l,n,i)},r.prototype.remove=function(t,e){var n=(0,_.isString)(t)?this.getRules(t):t,i=this.getAll().remove(n,e);return(0,_.isArray)(i)?i:[i]},r.prototype.clear=function(t){return t===void 0&&(t={}),this.getAll().reset([],t),this},r.prototype.getComponentRules=function(t,e){e===void 0&&(e={});var n=e.state,i=e.mediaText;e.current&&(n=this.em.get("state")||"",i=this.em.getCurrentMedia());var l=t.getId();return this.getAll().filter(function(f){return!(!(0,_.isUndefined)(n)&&f.get("state")!==n)&&!(!(0,_.isUndefined)(i)&&f.get("mediaText")!==i)&&f.getSelectorsString()==="#".concat(l)})},r.prototype.render=function(){var t;return(t=this.rulesView)===null||t===void 0||t.remove(),this.rulesView=new Uo({collection:this.rules,config:this.config}),this.rulesView.render().el},r.prototype.destroy=function(){var t;this.rules.reset(),this.rules.stopListening(),(t=this.rulesView)===null||t===void 0||t.remove()},r}(Nt);const Gl=Fp,eu={appendTo:"",blocks:[],appendOnClick:!1,custom:!1};var Kl=function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}}();const nu=function(a){function r(){return a!==null&&a.apply(this,arguments)||this}return Kl(r,a),r.prototype.defaults=function(){return{label:"",content:"",media:"",category:"",activate:!1,select:void 0,resetId:!1,disable:!1,onClick:void 0,attributes:{}}},r.prototype.getId=function(){return this.id},r.prototype.getLabel=function(){return this.get("label")},r.prototype.getMedia=function(){return this.get("media")},r.prototype.getContent=function(){return this.get("content")},r.prototype.getCategoryLabel=function(){var t=this.get("category");return(0,_.isFunction)(t==null?void 0:t.get)?t.get("label"):t!=null&&t.label?t==null?void 0:t.label:t},r}(S.Hn);var Yl=function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}}(),Ja=function(a){function r(){return a!==null&&a.apply(this,arguments)||this}return Yl(r,a),r}(S.FE);const sa=Ja;Ja.prototype.model=nu;var ru=function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}}();const Xa=function(a){function r(){return a!==null&&a.apply(this,arguments)||this}return ru(r,a),r.prototype.defaults=function(){return{id:"",label:"",open:!0,attributes:{}}},r}(S.Hn);var ou=function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}}(),ds=function(a){function r(){return a!==null&&a.apply(this,arguments)||this}return ou(r,a),r}(S.FE);const iu=ds;ds.prototype.model=Xa;var Za=function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}}(),Vo=function(a){function r(t,e){e===void 0&&(e={});var n=a.call(this,t)||this,i=n.model;return n.em=e.em,n.config=e,n.endDrag=n.endDrag.bind(n),n.ppfx=e.pStylePrefix||"",n.listenTo(i,"destroy remove",n.remove),n.listenTo(i,"change",n.render),n}return Za(r,a),r.prototype.events=function(){return{click:"handleClick",mousedown:"startDrag",dragstart:"handleDragStart",drag:"handleDrag",dragend:"handleDragEnd"}},r.prototype.__getModule=function(){return this.em.Blocks},r.prototype.handleClick=function(t){var e=this,n=e.config,i=e.model,l=e.em,f=i.get("onClick")||n.appendOnClick;if(l.trigger("block:click",i,t),f){if((0,_.isFunction)(f))return f(i,l==null?void 0:l.getEditor(),{event:t});var d,v,g=n.getSorter(),w=i.get("content"),T=l.getSelected();if(g.setDropContent(w),T)if(g.validTarget(T.getEl(),w).valid)d=T;else{var V=T.parent();V&&g.validTarget(V.getEl(),w).valid&&(d=V,v=V.components().indexOf(T)+1)}if(!d){var B=l.getWrapper();g.validTarget(B.getEl(),w).valid&&(d=B)}var X=d&&d.append(w,{at:v})[0];X&&l.setSelected(X,{scroll:1})}},r.prototype.startDrag=function(t){var e=this,n=e.config,i=e.em,l=e.model,f=l.get("disable");if(t.button===0&&n.getSorter&&!this.el.draggable&&!f){i.refreshCanvas();var d=n.getSorter();d.__currentBlock=l,d.setDragHelper(this.el,t),d.setDropContent(this.model.get("content")),d.startSort(this.el),(0,D.on)(document,"mouseup",this.endDrag)}},r.prototype.handleDragStart=function(t){this.__getModule().__startDrag(this.model,t)},r.prototype.handleDrag=function(t){this.__getModule().__drag(t)},r.prototype.handleDragEnd=function(){this.__getModule().__endDrag()},r.prototype.endDrag=function(){(0,D.off)(document,"mouseup",this.endDrag);var t=this.config.getSorter();t.moved=0,t.endMove()},r.prototype.render=function(){var t,e=this,n=e.em,i=e.el,l=e.$el,f=e.ppfx,d=e.model,v=d.get("disable"),g=d.get("attributes")||{},w=g.class||"",T="".concat(f,"block"),V=n&&n.t("blockManager.labels.".concat(d.id))||d.get("label"),B=d.get("render"),X=d.get("media"),ot=v?"".concat(T,"--disable"):"".concat(f,"four-color-h");l.attr(g),i.className="".concat(w," ").concat(T," ").concat(f,"one-bg ").concat(ot).trim(),i.innerHTML=` + `.concat(X?'
').concat(X,"
"):"",` +
').concat(V,`
+ `),i.title=g.title||((t=i.textContent)===null||t===void 0?void 0:t.trim()),i.setAttribute("draggable","".concat(!(!(0,D.hasDnd)(n)||v)));var tt=B&&B({el:i,model:d,className:T,prefix:f});return tt&&(i.innerHTML=tt),this},r}(S.G7);const su=Vo;var Hp=function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}}(),au=function(a,r){return Object.defineProperty?Object.defineProperty(a,"raw",{value:r}):a.raw=r,a},Gr=function(a){function r(t,e){var n=a.call(this,t)||this;n.config=e;var i=e.pStylePrefix||"";return n.em=e.em,n.pfx=i,n.caretR="fa fa-caret-right",n.caretD="fa fa-caret-down",n.iconClass="".concat(i,"caret-icon"),n.activeClass="".concat(i,"open"),n.className="".concat(i,"block-category"),n.listenTo(n.model,"change:open",n.updateVisibility),n.model.view=n,n}return Hp(r,a),r.prototype.events=function(){return{"click [data-title]":"toggle"}},r.prototype.template=function(t){var e=t.pfx,n=t.label;return et(oo||(oo=au([` +
+ + `,` +
+
+ `],[` +
+ + `,` +
+
+ `])),e,e,n,e)},r.prototype.attributes=function(){return this.model.get("attributes")||{}},r.prototype.updateVisibility=function(){this.model.get("open")?this.open():this.close()},r.prototype.open=function(){this.$el.addClass(this.activeClass),this.getIconEl().className="".concat(this.iconClass," ").concat(this.caretD),this.getBlocksEl().style.display=""},r.prototype.close=function(){this.$el.removeClass(this.activeClass),this.getIconEl().className="".concat(this.iconClass," ").concat(this.caretR),this.getBlocksEl().style.display="none"},r.prototype.toggle=function(){var t=this.model;t.set("open",!t.get("open"))},r.prototype.getIconEl=function(){return this.iconEl||(this.iconEl=this.el.querySelector(".".concat(this.iconClass))),this.iconEl},r.prototype.getBlocksEl=function(){return this.blocksEl||(this.blocksEl=this.el.querySelector(".".concat(this.pfx,"blocks-c"))),this.blocksEl},r.prototype.append=function(t){this.getBlocksEl().appendChild(t)},r.prototype.render=function(){var t=this,e=t.em,n=t.el,i=t.$el,l=t.model,f=t.pfx,d=e.t("blockManager.categories.".concat(l.id))||l.get("label");return n.innerHTML=this.template({pfx:f,label:d}),i.addClass(this.className),i.css({order:l.get("order")}),this.updateVisibility(),this},r}(S.G7);const an=Gr;var oo,ri=function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}}(),ho=function(){return ho=Object.assign||function(a){for(var r,t=1,e=arguments.length;t +
+
+
+ `),this.collection.each(function(l){return t.add(l,n)}),this.append(n);var i="".concat(this.blockContClass,"s ").concat(e,"one-bg ").concat(e,"two-color");return this.$el.addClass(i),this.rendered=!0,this},r}(S.G7);const Qa=lu;var cu=function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}}(),oi=function(){return oi=Object.assign||function(a){for(var r,t=1,e=arguments.length;t',iconSync:'',iconTagOn:'',iconTagOff:'',iconTagRemove:'',componentFirst:!1,custom:!1};var zp=function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}}(),Zl=function(a){function r(){return a!==null&&a.apply(this,arguments)||this}return zp(r,a),r.prototype.defaults=function(){return{name:"",label:""}},r.prototype.getName=function(){return this.get("name")},r.prototype.getLabel=function(){return this.get("label")||this.getName()},r}(S.Hn);const Ql=Zl;Zl.prototype.idAttribute="name";var Bp=function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}}(),rl=function(a,r){return Object.defineProperty?Object.defineProperty(a,"raw",{value:r}):a.raw=r,a},tc="contentEditable",Up=function(a){function r(t){t===void 0&&(t={});var e=a.call(this,t)||this,n=t.config||{};return e.config=n,e.module=t.module,e.coll=t.coll||null,e.pfx=n.stylePrefix||"",e.ppfx=n.pStylePrefix||"",e.em=n.em,e.listenTo(e.model,"change:active",e.updateStatus),e}return Bp(r,a),r.prototype.template=function(){var t=this,e=t.pfx,n=t.model,i=t.config,l=n.get("label")||"";return et(ec||(ec=rl([` + + ',` + $',` + `],[` + + ',` + $',` + `])),e,e,e,l,e,e,i.iconTagRemove)},r.prototype.events=function(){return{"click [data-tag-remove]":"removeTag","click [data-tag-status]":"changeStatus","dblclick [data-tag-name]":"startEditTag","focusout [data-tag-name]":"endEditTag"}},r.prototype.getInputEl=function(){return this.inputEl||(this.inputEl=this.el.querySelector("[data-tag-name]")),this.inputEl},r.prototype.startEditTag=function(){var t=this.em,e=this.getInputEl();e[tc]="true",e.focus(),t==null||t.setEditing(!0)},r.prototype.endEditTag=function(){var t=this.model,e=this.getInputEl(),n=e.textContent||"",i=this.em,l=i==null?void 0:i.Selectors;if(e[tc]="false",i==null||i.setEditing(!1),l){var f=l.escapeName(n);l.get(f)?e.innerText=t.get("label"):t.set({name:f,label:n})}},r.prototype.changeStatus=function(){var t=this.model;t.set("active",!t.get("active"))},r.prototype.removeTag=function(){this.module.removeSelected(this.model)},r.prototype.updateStatus=function(){var t=this,e=t.model,n=t.$el,i=t.config,l=i.iconTagOn,f=i.iconTagOff,d=n.find("[data-tag-status]");e.get("active")?(d.html(l),n.removeClass("opac50")):(d.html(f),n.addClass("opac50"))},r.prototype.render=function(){var t=this.pfx,e=this.ppfx;return this.$el.html(this.template()),this.$el.attr("class","".concat(t,"tag ").concat(e,"three-bg")),this.updateStatus(),this},r}(S.G7);const Wp=Up;var ec,hs=function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}}(),Mi=function(a,r){return Object.defineProperty?Object.defineProperty(a,"raw",{value:r}):a.raw=r,a},ol=function(a){function r(t){t===void 0&&(t={});var e=a.call(this,t)||this;e.config=t.config||{},e.pfx=e.config.stylePrefix||"",e.ppfx=e.config.pStylePrefix||"",e.className=e.pfx+"tags",e.stateInputId=e.pfx+"states",e.stateInputC=e.pfx+"input-c",e.states=e.config.states||[];var n=e.config.em,i=e.collection;e.target=n;var l=n.Selectors;return e.module=l,e.em=n,e.componentChanged=(0,_.debounce)(e.componentChanged.bind(e),0),e.checkSync=(0,_.debounce)(e.checkSync.bind(e),0),e.listenTo(n,"component:toggled component:update:classes",e.componentChanged),e.listenTo(n,"styleManager:update",e.componentChanged),e.listenTo(n,"component:update:classes change:state",e.__handleStateChange),e.listenTo(n,"styleable:change change:device",e.checkSync),e.listenTo(i,"add",e.addNew),e.listenTo(i,"reset",e.renderClasses),e.listenTo(i,"remove",e.tagRemoved),e.listenTo(l.getAll(),l.events.state,(0,_.debounce)(function(){return e.renderStates()},0)),e.delegateEvents(),e}return hs(r,a),r.prototype.template=function(t){var e=t.labelInfo,n=t.labelHead,i=t.iconSync,l=t.iconAdd,f=t.pfx,d=t.ppfx;return et(il||(il=Mi(['
+
',`
+
+ +
+ + + +
+
+
+
+
+
+
+
+
+ + $',` + +
+
+
',`:
+
+
`],['
+
',`
+
+ +
+ + + +
+
+
+
+
+
+
+
+
+ + $',` + +
+
+
',`:
+
+
`])),f,f,f,f,n,f,f,f,d,d,d,f,d,d,f,d,f,f,f,f,f,l,f,f,i,f,f,e,f)},r.prototype.events=function(){return{"change [data-states]":"stateChanged","click [data-add]":"startNewTag","focusout [data-input]":"endNewTag","keyup [data-input]":"onInputKeyUp","click [data-sync-style]":"syncStyle"}},r.prototype.syncStyle=function(){var t,e=this.em,n=this.getTarget(),i=e.Css,l=this.getCommonSelectors({opts:{noDisabled:1}}),f=e.get("state"),d=e.getCurrentMedia(),v=[],g=i.get(l,f,d)||i.add(l,f,d);this.getTargets().forEach(function(w){var T=i.getIdRule(w.getId(),{state:f,mediaText:d});t=T.getStyle(),T.setStyle({}),v.push(T)}),t&&g.addStyle(t),e.trigger("component:toggled"),e.trigger("component:sync-style",{component:n,selectors:l,mediaText:d,rule:g,ruleComponents:v,state:f})},r.prototype.tagRemoved=function(t){this.updateStateVis()},r.prototype.addNew=function(t){this.addToClasses(t)},r.prototype.startNewTag=function(){var t,e;(t=this.$addBtn)===null||t===void 0||t.css({display:"none"}),(e=this.$input)===null||e===void 0||e.show().focus()},r.prototype.endNewTag=function(){var t,e;(t=this.$addBtn)===null||t===void 0||t.css({display:""}),(e=this.$input)===null||e===void 0||e.hide().val("")},r.prototype.onInputKeyUp=function(t){var e;t.keyCode===13?(t.preventDefault(),this.addNewTag((e=this.$input)===null||e===void 0?void 0:e.val())):t.keyCode===27&&this.endNewTag()},r.prototype.checkStates=function(){var t=this.em.getState(),e=this.getStates();e&&e.val(t)},r.prototype.componentChanged=function(t){var e=(t===void 0?{}:t).targets;this.updateSelection(e)},r.prototype.updateSelection=function(t){var e=t||this.getTargets(),n=[];return(e=(0,_.isArray)(e)?e:[e])&&e.length&&(n=this.getCommonSelectors({targets:e}),this.checkSync({validSelectors:n})),this.collection.reset(n),this.updateStateVis(e),this.module.__trgCustom(),n},r.prototype.getCommonSelectors=function(t){var e=t===void 0?{}:t,n=e.targets,i=e.opts,l=i===void 0?{}:i,f=n||this.getTargets();return this.module.__getCommonSelectors(f,l)},r.prototype._commonSelectors=function(){for(var t,e=[],n=0;n',""],['',""])),i,t);else{var g=t==null?void 0:t.getSelectors();if(!g)return"";var w=g.getStyleable(),T=f.get("state"),V=t.getId?et(hu||(hu=Mi(['',` + #',""],['',` + #',""])),i,t.getName(),i,t.getId()):"";e=(e=this.collection.getFullString(w))?et(rc||(rc=Mi(['',""],['',""])),i,e):t.get("selectorsAdd")||V,e=v&&V?V:e,e+=T?et(ir||(ir=Mi([':',""],[':',""])),i,T):"",e=d?d({result:e,state:T,target:t}):e}return e&&'').concat(e,"")},r.prototype.stateChanged=function(t){var e=this.em,n=t.target.value;e.set("state",n)},r.prototype.addNewTag=function(t){var e=t.trim();e&&(this.module.addSelected({label:e}),this.endNewTag())},r.prototype.addToClasses=function(t,e){var n=e,i=this.getClasses(),l=new Wp({model:t,config:this.config,coll:this.collection,module:this.module}).render().el;return n?n.appendChild(l):i.append(l),l},r.prototype.renderClasses=function(){var t=this,e=document.createDocumentFragment(),n=this.getClasses();n.empty(),this.collection.each(function(i){return t.addToClasses(i,e)}),n.append(e)},r.prototype.getClasses=function(){return this.$el.find("[data-selectors]")},r.prototype.getStates=function(){if(!this.$states){var t=this.$el.find("[data-states]");this.$states=t[0]&&t}return this.$states},r.prototype.getStatesC=function(){return this.$statesC||(this.$statesC=this.$el.find("#"+this.stateInputC)),this.$statesC},r.prototype.renderStates=function(){var t=this.module,e=this.em,n=e.t("selectorManager.emptyState"),i=t.getStates().map(function(f){var d=e.t("selectorManager.states.".concat(f.id))||f.getLabel()||f.id;return'")}).join(""),l=this.getStates();l&&l.html('").concat(i)),this.checkStates()},r.prototype.render=function(){var t=this,e=t.em,n=t.pfx,i=t.ppfx,l=t.config,f=t.$el,d=t.el,v=l.render,g={iconSync:l.iconSync,iconAdd:l.iconAdd,labelHead:e.t("selectorManager.label"),labelInfo:e.t("selectorManager.selected"),ppfx:i,pfx:n,el:d};f.html(this.template(g));var w=v&&v(g);return w&&w!==d&&f.empty().append(w),this.$input=f.find("[data-input]"),this.$addBtn=f.find("[data-add]"),this.$classes=f.find("#"+n+"tags-c"),this.$btnSyncEl=f.find("[data-sync-style]"),this.$input.hide(),this.renderStates(),this.renderClasses(),f.attr("class","".concat(this.className," ").concat(i,"one-bg ").concat(i,"two-color")),this},r}(S.G7);const du=ol;var il,nc,hu,rc,ir,sl=function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}}(),gs=function(){return gs=Object.assign||function(a){for(var r,t=1,e=arguments.length;t=0}):e.slice(1).reduce(function(i,l){return t.__common(i,l)},e[0]):[]},r.prototype.__updateSelectedByComponents=function(){this.selected.reset(this.__getCommon())},r}(Nt);const ms=$p,yu={textTags:["br","b","i","u","a","ul","ol"],parserCss:void 0,parserHtml:void 0,optionsHtml:{htmlType:"text/html",allowScripts:!1,allowUnsafeAttr:!1,keepEmptyTextNodes:!1}};var ca={4:"media",5:"font-face",6:"page",7:"keyframes",11:"counter-style",12:"supports",13:"document",14:"font-feature-values",15:"viewport"},bu=(0,_.keys)(ca),ua=["5","6","11","15"],pa=["font-face","page","counter-style","viewport"],ys=function(a){a===void 0&&(a="");for(var r=[],t=[],e=a.split(","),n=0,i=e.length;n=0&&(e.singleAtRule=!0),d&&(e.atRuleType=d),v&&(e.selectorsAdd=v),g&&(e.mediaText=g),f&&(a[n-1]=l[0],e.state=f,l.splice(l.length-1,1)),e.selectors=a,e.style=r,e},lc=function(a){for(var r=[],t=a.cssRules||[],e=0,n=t.length;e=0;if(w)f=!0,d=ca[l],v=sc(i);else if(bu.indexOf(l)>=0){var T=lc(i);v=sc(i);for(var V=0,B=T.length;V0&&n[n.length-1])||g[0]!==6&&g[0]!==2)){l=0;continue}if(g[0]===3&&(!n||g[1]>n[0]&&g[1]0&&n[n.length-1])||g[0]!==6&&g[0]!==2)){l=0;continue}if(g[0]===3&&(!n||g[1]>n[0]&&g[1]0&&n[n.length-1])||g[0]!==6&&g[0]!==2)){l=0;continue}if(g[0]===3&&(!n||g[1]>n[0]&&g[1]').concat(n,"")},r.prototype.templateInput=function(t){var e=this.clsField;return'
')},r.prototype.getClbOpts=function(){return{component:this.target,trait:this.model,elInput:this.getInputElem()}},r.prototype.removeView=function(){this.remove(),this.removed()},r.prototype.init=function(){},r.prototype.removed=function(){},r.prototype.onRender=function(t){},r.prototype.onUpdate=function(t){},r.prototype.onEvent=function(t){},r.prototype.onChange=function(t){var e=this.getInputElem();e&&!(0,_.isUndefined)(e.value)&&this.model.set("value",e.value),this.onEvent(Cs(Cs({},this.getClbOpts()),{event:t}))},r.prototype.getValueForTarget=function(){return this.model.get("value")},r.prototype.setInputValue=function(t){var e=this.getInputElem();e&&(e.value=t)},r.prototype.onValueChange=function(t,e,n){if(n===void 0&&(n={}),n.fromTarget)this.setInputValue(t.get("value")),this.postUpdate();else{var i=this.getValueForTarget();t.setTargetValue(i,n)}},r.prototype.renderLabel=function(){var t=this.$el,e=this.target,n=this.getLabel(),i=this.templateLabel(e);this.createLabel&&(i=this.createLabel({label:n,component:e,trait:this})||""),t.find("[data-label]").append(i)},r.prototype.getLabel=function(){var t=this.em,e=this.model.attributes,n=e.label,i=e.name;return t.t("traitManager.traits.labels.".concat(i))||(0,D.capitalize)(n||i).replace(/-/g," ")},r.prototype.getComponent=function(){return this.target},r.prototype.getInputEl=function(){if(!this.$input){var t=this.em,e=this.model,n=e,i=e.attributes.name,l=n.get("placeholder")||n.get("default")||"",f=n.get("type")||"text",d=n.get("min"),v=n.get("max"),g=this.getModelValue(),w=(0,lt.default)('')),T=t.t("traitManager.traits.attributes.".concat(i))||{};w.attr(Cs({placeholder:l},T)),(0,_.isUndefined)(g)||(n.set({value:g},{silent:!0}),w.prop("value",g)),d&&w.prop("min",d),v&&w.prop("max",v),this.$input=w}return this.$input.get(0)},r.prototype.getInputElem=function(){var t=this.input,e=this.$input;return t||e&&e.get&&e.get(0)||this.getElInput()},r.prototype.getModelValue=function(){var t,e=this.model,n=this.target,i=e.getName();if(e.get("changeProp"))t=n.get(i);else{var l=n.get("attributes");t=e.get("value")||l[i]}return(0,_.isUndefined)(t)?"":t},r.prototype.getElInput=function(){return this.elInput},r.prototype.renderField=function(){var t=this,e=t.$el,n=t.appendInput,i=t.model,l=e.find("[data-input]"),f=l[l.length-1],d=i.el;d||(d=this.createInput?this.createInput(this.getClbOpts()):this.getInputEl()),(0,_.isString)(d)?(f.innerHTML=d,this.elInput=f.firstChild):(n?f.appendChild(d):f.insertBefore(d,f.firstChild),this.elInput=d),i.el=this.elInput},r.prototype.hasLabel=function(){var t=this.model.attributes.label;return!this.noLabel&&t!==!1},r.prototype.rerender=function(){delete this.model.el,this.render()},r.prototype.postUpdate=function(){this.onUpdate(this.getClbOpts())},r.prototype.render=function(){var t=this,e=t.$el,n=t.pfx,i=t.ppfx,l=t.model.attributes,f=l.type,d=l.id,v=this.hasLabel&&this.hasLabel(),g="".concat(n,"trait");delete this.$input;var w='
+ `).concat(v?'
'):"",` +
+ `).concat(this.templateInput?(0,_.isFunction)(this.templateInput)?this.templateInput(this.getClbOpts()):this.templateInput:"",` +
+
`);return e.empty().append(w),v&&this.renderLabel(),this.renderField(),this.el.className="".concat(g,"__wrp ").concat(g,"__wrp-").concat(d),this.postUpdate(),this.onRender(this.getClbOpts()),this},r}(S.G7);const zo=fc;fc.prototype.eventCapture=["change"];var dc=function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}}(),hc=function(a){function r(t,e){t===void 0&&(t={});var n=a.call(this,t)||this;n.reuseView=!0,n.itemsView=e;var i=t.config||{},l=i.stylePrefix||"",f=t.editor;return n.config=i,n.em=f,n.pfx=l,n.ppfx=i.pStylePrefix||"",n.className="".concat(l,"traits"),n.listenTo(f,"component:toggled",n.updatedCollection),n.updatedCollection(),n}return dc(r,a),r.prototype.updatedCollection=function(){var t=this,e=t.ppfx,n=t.className,i=t.em.getSelected();this.el.className="".concat(n," ").concat(e,"one-bg ").concat(e,"two-color"),this.collection=i?i.traits:[],this.render()},r}(Xp.Z);const Du=hc;hc.prototype.itemView=zo;var Nu=function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}}();const Iu=function(a){function r(t){t===void 0&&(t={});var e=a.call(this,t)||this;return e.listenTo(e.model,"change:options",e.rerender),e}return Nu(r,a),r.prototype.templateInput=function(){var t=this.ppfx,e=this.clsField;return'
+
+
+
+
+
`)},r.prototype.getInputEl=function(){if(!this.$input){var t=this.model,e=this.em,n=t.get("name"),i=t.get("options")||[],l=[],f="",this.$input=(0,lt.default)(f);var d=t.getTargetValue(),v=l.indexOf(d)>=0?d:t.get("default");!(0,_.isUndefined)(v)&&this.$input.val(v)}return this.$input.get(0)},r}(zo);var ma=function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}}();const ya=function(a){function r(){var t=a!==null&&a.apply(this,arguments)||this;return t.appendInput=!1,t}return ma(r,a),r.prototype.templateInput=function(){var t=this.ppfx,e=this.clsField;return'`)},r.prototype.onChange=function(){this.model.set("value",this.getInputElem().checked)},r.prototype.getInputEl=function(){for(var t=[],e=0;e')},r.prototype.inputClass=function(){return"".concat(this.ppfx,"field")},r.prototype.holderClass=function(){return"".concat(this.ppfx,"input-holder")},r.prototype.elementUpdated=function(){this.model.trigger("el:change")},r.prototype.setValue=function(t,e){var n=this.model,i=t||n.get("defaults"),l=this.getInputEl();l&&(l.value=i)},r.prototype.handleModelChange=function(t,e,n){this.setValue(e,n)},r.prototype.handleChange=function(t){t.stopPropagation();var e=this.getInputEl().value;this.__onInputChange(e),this.elementUpdated()},r.prototype.__onInputChange=function(t){this.model.set({value:t},{fromInput:1})},r.prototype.getInputEl=function(){if(!this.inputEl){var t=this.model,e=this.opts.type||"text",n=t.get("placeholder")||t.get("defaults")||t.get("default")||"";this.inputEl=(0,lt.default)(''))}return this.inputEl.get(0)},r.prototype.render=function(){this.inputEl=null;var t=this.$el;return t.addClass(this.inputClass()),t.html(this.template()),t.find(".".concat(this.holderClass())).append(this.getInputEl()),this},r}(S.G7);const gl=hl;hl.prototype.events={change:"handleChange"};var Vu=function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}}(),Fu=function(a){function r(t){t===void 0&&(t={});var e=a.call(this,t)||this;return(0,_.bindAll)(e,"moveIncrement","upIncrement"),e.doc=document,e.listenTo(e.model,"change:unit",e.handleModelChange),e}return Vu(r,a),r.prototype.template=function(){var t=this.ppfx;return` + + +
+
+
+
+ `)},r.prototype.inputClass=function(){var t=this.ppfx;return this.opts.contClass||"".concat(t,"field ").concat(t,"field-integer")},r.prototype.setValue=function(t,e){var n=e||{},i=this.validateInputValue(t,{deepCheck:1}),l={value:i.value,unit:""};(i.unit||i.force)&&(l.unit=i.unit),this.model.set(l,n),n.silent&&this.handleModelChange()},r.prototype.handleChange=function(t){t.stopPropagation(),this.setValue(this.getInputEl().value),this.elementUpdated()},r.prototype.handleUnitChange=function(t){t.stopPropagation();var e=this.getUnitEl().value;this.model.set("unit",e),this.elementUpdated()},r.prototype.handleKeyDown=function(t){t.key==="ArrowUp"&&(t.preventDefault(),this.upArrowClick()),t.key==="ArrowDown"&&(t.preventDefault(),this.downArrowClick())},r.prototype.elementUpdated=function(){this.model.trigger("el:change")},r.prototype.handleModelChange=function(){var t=this.model;this.getInputEl().value=t.get("value");var e=this.getUnitEl();e&&(e.value=t.get("unit")||"")},r.prototype.getUnitEl=function(){if(!this.unitEl){var t=this.model,e=t.get("units")||[];if(e.length){var n=[''];e.forEach(function(l){var f=l==t.get("unit")?"selected":"";n.push(""))});var i=document.createElement("div");i.innerHTML='"),this.unitEl=i.firstChild}}return this.unitEl},r.prototype.upArrowClick=function(){var t=this.model,e=t.get("step"),n=parseFloat(t.get("value"));this.setValue(this.normalizeValue(n+e)),this.elementUpdated()},r.prototype.downArrowClick=function(){var t=this.model,e=t.get("step"),n=parseFloat(t.get("value"));this.setValue(this.normalizeValue(n-e)),this.elementUpdated()},r.prototype.downIncrement=function(t){t.preventDefault(),this.moved=!1;var e=this.model.get("value")||0;e=this.normalizeValue(e),this.current={y:t.pageY,val:e},(0,D.on)(this.doc,"mousemove",this.moveIncrement),(0,D.on)(this.doc,"mouseup",this.upIncrement)},r.prototype.moveIncrement=function(t){this.moved=!0;var e=this.model,n=e.get("step"),i=this.current,l=this.normalizeValue(i.val+(i.y-t.pageY)*n),f=this.validateInputValue(l),d=f.value,v=f.unit;return this.prValue=d,e.set({value:d,unit:v},{avoidStore:1}),!1},r.prototype.upIncrement=function(){var t=this.model,e=t.get("step");if((0,D.off)(this.doc,"mouseup",this.upIncrement),(0,D.off)(this.doc,"mousemove",this.moveIncrement),this.prValue&&this.moved){var n=this.prValue-e;t.set("value",n,{avoidStore:1}).set("value",n+e),this.elementUpdated()}},r.prototype.normalizeValue=function(t,e){e===void 0&&(e=0);var n=this.model.get("step"),i=0;if(isNaN(t))return e;if(t=parseFloat(t),Math.floor(t)!==t){var l=n.toString().split(".")[1];i=l?l.length:0}return i?parseFloat(t.toFixed(i)):t},r.prototype.validateInputValue=function(t,e){e===void 0&&(e={});var n=0,i=e||{},l=this.model,f="",d=(0,_.isUndefined)(t)?f:t,v=e.units||l.get("units")||[],g=l.get("unit")||v.length&&v[0]||"",w=(0,_.isUndefined)(e.max)?l.get("max"):e.max,T=(0,_.isUndefined)(e.min)?l.get("min"):e.min,V=!!l.get("limitlessMax"),B=!!l.get("limitlessMin");if(i.deepCheck){var X=l.get("fixedValues")||[];if(d===""&&(g=""),d){var ot=new RegExp("^"+X.join("|"),"g");if(X.length&&ot.test(d))d=d.match(ot)[0],g="",n=1;else{var tt=d+"";d+="",d=parseFloat(d.replace(",",".")),d=isNaN(d)?f:d;var At=tt.replace(d,"");(0,_.indexOf)(v,At)>=0&&(g=At)}}}return V||(0,_.isUndefined)(w)||w===""||(d=d>w?w:d),B||(0,_.isUndefined)(T)||T===""||(d=d","
","
",""].join(""),f=function(){var dt="";if(n)for(var Tt=1;Tt<=6;Tt++)dt+="
";return["
","
","
","
","","
","
","
","
","
","
","
","
","
","
","
","
","
","
","
","
","
",dt,"
","
","
","
","
","","
","
","
","","","
","
","
"].join("")}(),d="spectrum.id";a.fn.spectrum=function(dt,Tt){if(typeof dt=="string"){var jt=this,Ut=Array.prototype.slice.call(arguments,1);return this.each(function(){var he=e[a(this).data(d)];if(he){var Ht=he[dt];if(!Ht)throw new Error("Spectrum: no such method: '"+dt+"'");dt=="get"?jt=he.get():dt=="container"?jt=he.container:dt=="option"?jt=he.option.apply(he,Ut):dt=="destroy"?(he.destroy(),a(this).removeData(d)):Ht.apply(he,Ut)}}),jt}return this.spectrum("destroy").each(function(){var he=On(this,a.extend({},dt,a(this).data()));a(this).data(d,he.id)})},a.fn.spectrum.load=!0,a.fn.spectrum.loadOpts={},a.fn.spectrum.draggable=ao,a.fn.spectrum.defaults=t,a.fn.spectrum.inputTypeColorSupport=function dt(){if(dt._cachedResult===void 0){var Tt=a("")[0];dt._cachedResult=Tt.type==="color"&&Tt.value!==""}return dt._cachedResult},a.spectrum={},a.spectrum.localization={},a.spectrum.palettes={},a.fn.spectrum.processNativeColorInputs=function(){var dt=a("input[type=color]");dt.length&&!Qr()&&dt.spectrum({preferredFormat:"hex6"})};var v=/^[\s,#]+/,g=/\s+$/,w=0,T=Math,V=T.round,B=T.min,X=T.max,ot=T.random,tt=function(dt,Tt){if(Tt=Tt||{},(dt=dt||"")instanceof tt)return dt;if(!(this instanceof tt))return new tt(dt,Tt);var jt=function(Ut){var he={r:0,g:0,b:0},Ht=1,Ge=!1,ln=!1;typeof Ut=="string"&&(Ut=function(cn){cn=cn.replace(v,"").replace(g,"").toLowerCase();var Te,pn=!1;if(_e[cn])cn=_e[cn],pn=!0;else if(cn=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};return(Te=We.rgb.exec(cn))?{r:Te[1],g:Te[2],b:Te[3]}:(Te=We.rgba.exec(cn))?{r:Te[1],g:Te[2],b:Te[3],a:Te[4]}:(Te=We.hsl.exec(cn))?{h:Te[1],s:Te[2],l:Te[3]}:(Te=We.hsla.exec(cn))?{h:Te[1],s:Te[2],l:Te[3],a:Te[4]}:(Te=We.hsv.exec(cn))?{h:Te[1],s:Te[2],v:Te[3]}:(Te=We.hsva.exec(cn))?{h:Te[1],s:Te[2],v:Te[3],a:Te[4]}:(Te=We.hex8.exec(cn))?{a:Dm(Te[1]),r:ui(Te[2]),g:ui(Te[3]),b:ui(Te[4]),format:pn?"name":"hex8"}:(Te=We.hex6.exec(cn))?{r:ui(Te[1]),g:ui(Te[2]),b:ui(Te[3]),format:pn?"name":"hex"}:(Te=We.hex3.exec(cn))?{r:ui(Te[1]+""+Te[1]),g:ui(Te[2]+""+Te[2]),b:ui(Te[3]+""+Te[3]),format:pn?"name":"hex"}:!1}(Ut)),typeof Ut=="object"&&(Ut.hasOwnProperty("r")&&Ut.hasOwnProperty("g")&&Ut.hasOwnProperty("b")?(rn=Ut.r,bo=Ut.g,hr=Ut.b,he={r:255*Fn(rn,255),g:255*Fn(bo,255),b:255*Fn(hr,255)},Ge=!0,ln=String(Ut.r).substr(-1)==="%"?"prgb":"rgb"):Ut.hasOwnProperty("h")&&Ut.hasOwnProperty("s")&&Ut.hasOwnProperty("v")?(Ut.s=Lc(Ut.s),Ut.v=Lc(Ut.v),he=function(cn,Te,pn){cn=6*Fn(cn,360),Te=Fn(Te,100),pn=Fn(pn,100);var mn=T.floor(cn),sr=cn-mn,Gn=pn*(1-Te),Sr=pn*(1-sr*Te),to=pn*(1-(1-sr)*Te),wo=mn%6,pi=[pn,Sr,Gn,Gn,to,pn][wo],As=[to,pn,pn,Sr,Gn,Gn][wo],Or=[Gn,Gn,to,pn,pn,Sr][wo];return{r:255*pi,g:255*As,b:255*Or}}(Ut.h,Ut.s,Ut.v),Ge=!0,ln="hsv"):Ut.hasOwnProperty("h")&&Ut.hasOwnProperty("s")&&Ut.hasOwnProperty("l")&&(Ut.s=Lc(Ut.s),Ut.l=Lc(Ut.l),he=function(cn,Te,pn){var mn,sr,Gn;function Sr(pi,As,Or){return Or<0&&(Or+=1),Or>1&&(Or-=1),Or<1/6?pi+6*(As-pi)*Or:Or<1/2?As:Or<2/3?pi+(As-pi)*(2/3-Or)*6:pi}if(cn=Fn(cn,360),Te=Fn(Te,100),pn=Fn(pn,100),Te===0)mn=sr=Gn=pn;else{var to=pn<.5?pn*(1+Te):pn+Te-pn*Te,wo=2*pn-to;mn=Sr(wo,to,cn+1/3),sr=Sr(wo,to,cn),Gn=Sr(wo,to,cn-1/3)}return{r:255*mn,g:255*sr,b:255*Gn}}(Ut.h,Ut.s,Ut.l),Ge=!0,ln="hsl"),Ut.hasOwnProperty("a")&&(Ht=Ut.a));var rn,bo,hr;return Ht=Wd(Ht),{ok:Ge,format:Ut.format||ln,r:B(255,X(he.r,0)),g:B(255,X(he.g,0)),b:B(255,X(he.b,0)),a:Ht}}(dt);this._originalInput=dt,this._r=jt.r,this._g=jt.g,this._b=jt.b,this._a=jt.a,this._roundA=V(100*this._a)/100,this._format=Tt.format||jt.format,this._gradientType=Tt.gradientType,this._r<1&&(this._r=V(this._r)),this._g<1&&(this._g=V(this._g)),this._b<1&&(this._b=V(this._b)),this._ok=jt.ok,this._tc_id=w++};tt.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var dt=this.toRgb();return(299*dt.r+587*dt.g+114*dt.b)/1e3},setAlpha:function(dt){return this._a=Wd(dt),this._roundA=V(100*this._a)/100,this},toHsv:function(){var dt=Bi(this._r,this._g,this._b);return{h:360*dt.h,s:dt.s,v:dt.v,a:this._a}},toHsvString:function(){var dt=Bi(this._r,this._g,this._b),Tt=V(360*dt.h),jt=V(100*dt.s),Ut=V(100*dt.v);return this._a==1?"hsv("+Tt+", "+jt+"%, "+Ut+"%)":"hsva("+Tt+", "+jt+"%, "+Ut+"%, "+this._roundA+")"},toHsl:function(){var dt=ci(this._r,this._g,this._b);return{h:360*dt.h,s:dt.s,l:dt.l,a:this._a}},toHslString:function(){var dt=ci(this._r,this._g,this._b),Tt=V(360*dt.h),jt=V(100*dt.s),Ut=V(100*dt.l);return this._a==1?"hsl("+Tt+", "+jt+"%, "+Ut+"%)":"hsla("+Tt+", "+jt+"%, "+Ut+"%, "+this._roundA+")"},toHex:function(dt){return Ta(this._r,this._g,this._b,dt)},toHexString:function(dt){return"#"+this.toHex(dt)},toHex8:function(){return Ud(this._r,this._g,this._b,this._a)},toHex8String:function(){return"#"+this.toHex8()},toRgb:function(){return{r:V(this._r),g:V(this._g),b:V(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+V(this._r)+", "+V(this._g)+", "+V(this._b)+")":"rgba("+V(this._r)+", "+V(this._g)+", "+V(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:V(100*Fn(this._r,255))+"%",g:V(100*Fn(this._g,255))+"%",b:V(100*Fn(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+V(100*Fn(this._r,255))+"%, "+V(100*Fn(this._g,255))+"%, "+V(100*Fn(this._b,255))+"%)":"rgba("+V(100*Fn(this._r,255))+"%, "+V(100*Fn(this._g,255))+"%, "+V(100*Fn(this._b,255))+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":!(this._a<1)&&(Ne[Ta(this._r,this._g,this._b,!0)]||!1)},toFilter:function(dt){var Tt="#"+Ud(this._r,this._g,this._b,this._a),jt=Tt,Ut=this._gradientType?"GradientType = 1, ":"";return dt&&(jt=tt(dt).toHex8String()),"progid:DXImageTransform.Microsoft.gradient("+Ut+"startColorstr="+Tt+",endColorstr="+jt+")"},toString:function(dt){var Tt=!!dt;dt=dt||this._format;var jt=!1,Ut=this._a<1&&this._a>=0;return Tt||!Ut||dt!=="hex"&&dt!=="hex6"&&dt!=="hex3"&&dt!=="name"?(dt==="rgb"&&(jt=this.toRgbString()),dt==="prgb"&&(jt=this.toPercentageRgbString()),dt!=="hex"&&dt!=="hex6"||(jt=this.toHexString()),dt==="hex3"&&(jt=this.toHexString(!0)),dt==="hex8"&&(jt=this.toHex8String()),dt==="name"&&(jt=this.toName()),dt==="hsl"&&(jt=this.toHslString()),dt==="hsv"&&(jt=this.toHsvString()),jt||this.toHexString()):dt==="name"&&this._a===0?this.toName():this.toRgbString()},_applyModification:function(dt,Tt){var jt=dt.apply(null,[this].concat([].slice.call(Tt)));return this._r=jt._r,this._g=jt._g,this._b=jt._b,this.setAlpha(jt._a),this},lighten:function(){return this._applyModification(Sm,arguments)},brighten:function(){return this._applyModification(Om,arguments)},darken:function(){return this._applyModification(Tm,arguments)},desaturate:function(){return this._applyModification(_m,arguments)},saturate:function(){return this._applyModification(Cm,arguments)},greyscale:function(){return this._applyModification(xm,arguments)},spin:function(){return this._applyModification(km,arguments)},_applyCombination:function(dt,Tt){return dt.apply(null,[this].concat([].slice.call(Tt)))},analogous:function(){return this._applyCombination(Mm,arguments)},complement:function(){return this._applyCombination(Em,arguments)},monochromatic:function(){return this._applyCombination(Lm,arguments)},splitcomplement:function(){return this._applyCombination(jm,arguments)},triad:function(){return this._applyCombination(Pm,arguments)},tetrad:function(){return this._applyCombination(Am,arguments)}},tt.fromRatio=function(dt,Tt){if(typeof dt=="object"){var jt={};for(var Ut in dt)dt.hasOwnProperty(Ut)&&(jt[Ut]=Ut==="a"?dt[Ut]:Lc(dt[Ut]));dt=jt}return tt(dt,Tt)},tt.equals=function(dt,Tt){return!(!dt||!Tt)&&tt(dt).toRgbString()==tt(Tt).toRgbString()},tt.random=function(){return tt.fromRatio({r:ot(),g:ot(),b:ot()})},tt.mix=function(dt,Tt,jt){jt=jt===0?0:jt||50;var Ut,he=tt(dt).toRgb(),Ht=tt(Tt).toRgb(),Ge=jt/100,ln=2*Ge-1,rn=Ht.a-he.a,bo=1-(Ut=((Ut=ln*rn==-1?ln:(ln+rn)/(1+ln*rn))+1)/2),hr={r:Ht.r*Ut+he.r*bo,g:Ht.g*Ut+he.g*bo,b:Ht.b*Ut+he.b*bo,a:Ht.a*Ge+he.a*(1-Ge)};return tt(hr)},tt.readability=function(dt,Tt){var jt=tt(dt),Ut=tt(Tt),he=jt.toRgb(),Ht=Ut.toRgb(),Ge=jt.getBrightness(),ln=Ut.getBrightness(),rn=Math.max(he.r,Ht.r)-Math.min(he.r,Ht.r)+Math.max(he.g,Ht.g)-Math.min(he.g,Ht.g)+Math.max(he.b,Ht.b)-Math.min(he.b,Ht.b);return{brightness:Math.abs(Ge-ln),color:rn}},tt.isReadable=function(dt,Tt){var jt=tt.readability(dt,Tt);return jt.brightness>125&&jt.color>500},tt.mostReadable=function(dt,Tt){for(var jt=null,Ut=0,he=!1,Ht=0;Ht125&&Ge.color>500,rn=3*(Ge.brightness/125)+Ge.color/500;(ln&&!he||ln&&he&&rn>Ut||!ln&&!he&&rn>Ut)&&(he=ln,Ut=rn,jt=tt(Tt[Ht]))}return jt};var At,Ft,de,_e=tt.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",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:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",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",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",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:"f00",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:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},Ne=tt.hexNames=function(dt){var Tt={};for(var jt in dt)dt.hasOwnProperty(jt)&&(Tt[dt[jt]]=jt);return Tt}(_e),We=(Ft="[\\s|\\(]+("+(At="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+At+")[,|\\s]+("+At+")\\s*\\)?",de="[\\s|\\(]+("+At+")[,|\\s]+("+At+")[,|\\s]+("+At+")[,|\\s]+("+At+")\\s*\\)?",{rgb:new RegExp("rgb"+Ft),rgba:new RegExp("rgba"+de),hsl:new RegExp("hsl"+Ft),hsla:new RegExp("hsla"+de),hsv:new RegExp("hsv"+Ft),hsva:new RegExp("hsva"+de),hex3:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex8:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});window.tinycolor=tt,a(function(){a.fn.spectrum.load&&a.fn.spectrum.processNativeColorInputs()})}function on(dt,Tt,jt,Ut){for(var he=[],Ht=0;Ht')}else he.push(a("
").append(a('').attr("title",Ut.noColorSelectedText)).html())}return"
"+he.join("")+"
"}function On(dt,Tt){var jt,Ut,he,Ht=function(Me,Le){var Be=a.extend({},t,Me);return Be.callbacks={move:Zr(Be.move,Le),change:Zr(Be.change,Le),show:Zr(Be.show,Le),hide:Zr(Be.hide,Le),beforeShow:Zr(Be.beforeShow,Le)},Be}(Tt,dt),Ge=Ht.flat,ln=Ht.showSelectionPalette,rn=Ht.localStorageKey,bo=Ht.theme,hr=Ht.callbacks,cn=(jt=ja,Ut=10,function(){var Me=this,Le=arguments,Be=function(){he=null,jt.apply(Me,Le)};he||(he=setTimeout(Be,Ut))}),Te=!1,pn=!1,mn=!0,sr=0,Gn=0,Sr=0,to=0,wo=0,pi=0,As=0,Or=0,Dc=0,Nc=0,fi=1,dp=[],Ic=[],hp={},di=Ht.selectionPalette.slice(0),Nm=Ht.maxSelectionSize,$d="sp-dragging",js=null,Vc=dt.ownerDocument,ar=(Vc.body,a(dt)),Df=!1,tn=a(f,Vc).addClass(bo),Im=tn.find(".sp-picker-container"),gp=tn.find(".sp-color"),vp=tn.find(".sp-dragger"),Nf=tn.find(".sp-hue"),mp=tn.find(".sp-slider"),Fc=tn.find(".sp-alpha-inner"),qd=tn.find(".sp-alpha"),yp=tn.find(".sp-alpha-handle"),hi=tn.find(".sp-input"),Gd=tn.find(".sp-palette"),Kd=tn.find(".sp-initial"),Yd=tn.find(".sp-cancel"),If=tn.find(".sp-clear"),Jd=tn.find(".sp-choose"),Vf=tn.find(".sp-palette-toggle"),bp=ar.is("input"),Vm=bp&&ar.attr("type")==="color"&&Qr(),Ff=bp&&!Ge,kl=Ff?a(l).addClass(bo).addClass(Ht.className).addClass(Ht.replacerClassName):a([]),Hc=Ff?kl:ar,El=kl.find(".sp-preview-inner"),Rc=Ht.color||bp&&ar.val(),Pl=!1,Al=Ht.preferredFormat,Fm=!Ht.showButtons||Ht.clickoutFiresChange,Ms=!Rc,Ea=Ht.allowEmpty&&!Vm;function Hf(){if(Ht.showPaletteOnly&&(Ht.showPalette=!0),Vf.text(Ht.showPaletteOnly?Ht.togglePaletteMoreText:Ht.togglePaletteLessText),Ht.palette){dp=Ht.palette.slice(0),Ic=a.isArray(dp[0])?dp:[dp],hp={};for(var Me=0;Me1&&(delete window.localStorage[rn],a.each(Me,function(Le,Be){Rf(Be)}))}catch{}try{di=window.localStorage[rn].split(";")}catch{}}}function Rf(Me){if(ln){var Le=tt(Me).toRgbString();if(!hp[Le]&&a.inArray(Le,di)===-1)for(di.push(Le);di.length>Nm;)di.shift();if(rn&&window.localStorage)try{window.localStorage[rn]=di.join(";")}catch{}}}function Zd(){var Me=eo(),Le=a.map(Ic,function(Be,He){return on(Be,Me,"sp-palette-row sp-palette-row-"+He,Ht)});Xd(),di&&Le.push(on(function(){var Be=[];if(Ht.showPalette)for(var He=0;Heqf&&qf>He?Math.abs(Ui.left+He-qf):0),Ui.top-=Math.min(Ui.top,Ui.top+Tr>sh&&sh>Tr?Math.abs(Tr+gi-Be):Be),Ui}(tn,Hc))),oh(),Ht.showPalette&&Zd(),ar.trigger("reflow.spectrum"))}function ih(){Ls(),Df=!0,ar.attr("disabled",!0),Hc.addClass("sp-disabled")}(function(){if(n&&tn.find("*:not(input)").attr("unselectable","on"),Hf(),Ff&&ar.after(kl).hide(),Ea||If.hide(),Ge)ar.after(tn).hide();else{var Me=Ht.appendTo==="parent"?ar.parent():a(Ht.appendTo);Me.length!==1&&(Me=a("body")),Me.append(tn)}function Le(He){return He.data&&He.data.ignore?(Pa(a(He.target).closest(".sp-thumb-el").data("color")),jl()):(Pa(a(He.target).closest(".sp-thumb-el").data("color")),jl(),Ht.hideAfterPaletteSelect&&(Aa(!0),Ls())),!1}Xd(),Hc.bind("click.spectrum touchstart.spectrum",function(He){Df||th(),He.stopPropagation(),a(He.target).is("input")||He.preventDefault()}),(ar.is(":disabled")||Ht.disabled===!0)&&ih(),tn.click(Xr),hi.change(Uf),hi.bind("paste",function(){setTimeout(Uf,1)}),hi.keydown(function(He){He.keyCode==13&&Uf()}),Yd.text(Ht.cancelText),Yd.bind("click.spectrum",function(He){He.stopPropagation(),He.preventDefault(),rh(),Ls()}),If.attr("title",Ht.clearText),If.bind("click.spectrum",function(He){He.stopPropagation(),He.preventDefault(),Ms=!0,jl(),Ge&&Aa(!0)}),Jd.text(Ht.chooseText),Jd.bind("click.spectrum",function(He){He.stopPropagation(),He.preventDefault(),n&&hi.is(":focus")&&hi.trigger("change"),hi.hasClass("sp-validation-error")||(Aa(!0),Ls())}),Vf.text(Ht.showPaletteOnly?Ht.togglePaletteMoreText:Ht.togglePaletteLessText),Vf.bind("click.spectrum",function(He){He.stopPropagation(),He.preventDefault(),Ht.showPaletteOnly=!Ht.showPaletteOnly,Ht.showPaletteOnly||Ge||tn.css("left","-="+(Im.outerWidth(!0)+5)),Hf()}),ao(qd,function(He,Tr,gi){fi=He/wo,Ms=!1,gi.shiftKey&&(fi=Math.round(10*fi)/10),jl()},zf,Bf),ao(Nf,function(He,Tr){Or=parseFloat(Tr/to),Ms=!1,Ht.showAlpha||(fi=1),jl()},zf,Bf),ao(gp,function(He,Tr,gi){if(gi.shiftKey){if(!js){var Ds=Dc*sr,Ns=Gn-Nc*Gn,Ma=Math.abs(He-Ds)>Math.abs(Tr-Ns);js=Ma?"x":"y"}}else js=null;var $f=!js||js==="y";(!js||js==="x")&&(Dc=parseFloat(He/sr)),$f&&(Nc=parseFloat((Gn-Tr)/Gn)),Ms=!1,Ht.showAlpha||(fi=1),jl()},zf,Bf),Rc?(Pa(Rc),Ml(),Al=Ht.preferredFormat||tt(Rc).getFormat(),Rf(Rc)):Ml(),Ge&&Wf();var Be=n?"mousedown.spectrum":"click.spectrum touchstart.spectrum";Gd.delegate(".sp-thumb-el",Be,Le),Kd.delegate(".sp-thumb-el:nth-child(1)",Be,{ignore:!0},Le)})();var wp={show:Wf,hide:Ls,toggle:th,reflow:ja,option:function(Me,Le){return Me===r?a.extend({},Ht):Le===r?Ht[Me]:(Ht[Me]=Le,Me==="preferredFormat"&&(Al=Ht.preferredFormat),void Hf())},enable:function(){Df=!1,ar.attr("disabled",!1),Hc.removeClass("sp-disabled")},disable:ih,offset:function(Me){Ht.offset=Me,ja()},set:function(Me){Pa(Me),Aa()},get:eo,destroy:function(){ar.show(),Hc.unbind("click.spectrum touchstart.spectrum"),tn.remove(),kl.remove(),e[wp.id]=null},container:tn};return wp.id=e.push(wp)-1,wp}function Dr(){}function Xr(dt){dt.stopPropagation()}function Zr(dt,Tt){var jt=Array.prototype.slice,Ut=jt.call(arguments,2);return function(){return dt.apply(Tt,Ut.concat(jt.call(arguments)))}}function ao(dt,Tt,jt,Ut){Tt=Tt||function(){},jt=jt||function(){},Ut=Ut||function(){};var he=document,Ht=!1,Ge={},ln=0,rn=0,bo="ontouchstart"in window,hr={};function cn(mn){mn.stopPropagation&&mn.stopPropagation(),mn.preventDefault&&mn.preventDefault(),mn.returnValue=!1}function Te(mn){if(Ht){if(n&&he.documentMode<9&&!mn.button)return pn();var sr=mn&&mn.touches&&mn.touches[0],Gn=sr&&sr.pageX||mn.pageX,Sr=sr&&sr.pageY||mn.pageY,to=Math.max(0,Math.min(Gn-Ge.left,rn)),wo=Math.max(0,Math.min(Sr-Ge.top,ln));bo&&cn(mn),Tt.apply(dt,[to,wo,mn])}}function pn(){Ht&&(a(he).unbind(hr),a(he.body).removeClass("sp-dragging"),setTimeout(function(){Ut.apply(dt,arguments)},0)),Ht=!1}hr.selectstart=cn,hr.dragstart=cn,hr["touchmove mousemove"]=Te,hr["touchend mouseup"]=pn,a(dt).bind("touchstart mousedown",function(mn){var sr=mn.which?mn.which==3:mn.button==2;sr||Ht||jt.apply(dt,arguments)!==!1&&(Ht=!0,ln=a(dt).height(),rn=a(dt).width(),Ge=a(dt).offset(),a(he).bind(hr),a(he.body).addClass("sp-dragging"),Te(mn),cn(mn))})}function Qr(){return a.fn.spectrum.inputTypeColorSupport()}function ci(dt,Tt,jt){dt=Fn(dt,255),Tt=Fn(Tt,255),jt=Fn(jt,255);var Ut,he,Ht=X(dt,Tt,jt),Ge=B(dt,Tt,jt),ln=(Ht+Ge)/2;if(Ht==Ge)Ut=he=0;else{var rn=Ht-Ge;switch(he=ln>.5?rn/(2-Ht-Ge):rn/(Ht+Ge),Ht){case dt:Ut=(Tt-jt)/rn+(Tt>1)+720)%360;--Tt;)Ut.h=(Ut.h+he)%360,Ht.push(tt(Ut));return Ht}function Lm(dt,Tt){Tt=Tt||6;for(var jt=tt(dt).toHsv(),Ut=jt.h,he=jt.s,Ht=jt.v,Ge=[],ln=1/Tt;Tt--;)Ge.push(tt({h:Ut,s:he,v:Ht})),Ht=(Ht+ln)%1;return Ge}function Wd(dt){return dt=parseFloat(dt),(isNaN(dt)||dt<0||dt>1)&&(dt=1),dt}function Fn(dt,Tt){(function(Ut){return typeof Ut=="string"&&Ut.indexOf(".")!=-1&&parseFloat(Ut)===1})(dt)&&(dt="100%");var jt=function(Ut){return typeof Ut=="string"&&Ut.indexOf("%")!=-1}(dt);return dt=B(Tt,X(0,parseFloat(dt))),jt&&(dt=parseInt(dt*Tt,10)/100),T.abs(dt-Tt)<1e-6?1:dt%Tt/parseFloat(Tt)}function fp(dt){return B(1,X(0,dt))}function ui(dt){return parseInt(dt,16)}function ka(dt){return dt.length==1?"0"+dt:""+dt}function Lc(dt){return dt<=1&&(dt=100*dt+"%"),dt}function Dm(dt){return ui(dt)/255}}(lt.default);var vl=function(a){var r=a.getFormat()==="name"&&a.toName(),t=a.getAlpha()==1?a.toHexString():a.toRgbString();return r||t.replace(/ /g,"")};const gc=function(a){function r(){return a!==null&&a.apply(this,arguments)||this}return Ru(r,a),r.prototype.template=function(){var t=this.ppfx;return` +
+
+
+
+
+
+ `)},r.prototype.inputClass=function(){var t=this.ppfx;return"".concat(t,"field ").concat(t,"field-color")},r.prototype.holderClass=function(){return"".concat(this.ppfx,"input-holder")},r.prototype.remove=function(){return a.prototype.remove.call(this),this.colorEl.spectrum("destroy"),this},r.prototype.handleChange=function(t){t.stopPropagation();var e=t.target.value;(0,_.isUndefined)(e)||this.__onInputChange(e)},r.prototype.__onInputChange=function(t){var e=this.model,n=this.opts.onChange,i=t,l=this.getColorEl();if(l){l.spectrum("set",i);var f=l.spectrum("get"),d=i&&vl(f);d&&(i=d)}n?n(i):e.set({value:i},{fromInput:1})},r.prototype.setValue=function(t,e){e===void 0&&(e={});var n=this.model,i=(0,_.isUndefined)(e.def)?n.get("defaults"):e.def,l=(0,_.isUndefined)(t)?(0,_.isUndefined)(i)?"":i:t,f=this.getInputEl(),d=this.getColorEl(),v=l!="none"?l:"";f.value=l,d.get(0).style.backgroundColor=v,(e.fromTarget||e.fromInput&&!e.avoidStore)&&(d.spectrum("set",v),this.noneColor=l=="none",this.movedColor=v)},r.prototype.getColorEl=function(){var t=this;if(!this.colorEl){var e=this,n=e.em,i=e.model,l=e.opts,f=this.ppfx,d=l.onChange,v=(0,lt.default)('
')),g=v.get(0).style,w=n&&n.config?n.config.el:"",T=n&&n.getConfig&&n.getConfig().colorPicker||{};this.movedColor="";var V,B=!1;this.$el.find("[data-colorp-c]").append(v);var X=function(ot,tt){tt===void 0&&(tt=!0),d?d(ot,!tt):(tt&&i.setValueFromInput(0,!1),i.setValueFromInput(ot,tt))};v.spectrum(ba(ba(ba({color:i.getValue()||!1,containerClassName:"".concat(f,"one-bg ").concat(f,"two-color"),appendTo:w||"body",maxSelectionSize:8,showPalette:!0,showAlpha:!0,chooseText:"Ok",cancelText:"⨯",palette:[]},T),i.get("colorPicker")||{}),{move:function(ot){var tt=vl(ot);t.movedColor=tt,g.backgroundColor=tt,X(tt,!1)},change:function(ot){B=!0;var tt=vl(ot);g.backgroundColor=tt,X(tt),t.noneColor=!1},show:function(ot){B=!1,t.movedColor="",V=d?i.getValue({noDefault:!0}):vl(ot)},hide:function(){B||!V&&!d||(t.noneColor&&(V=""),g.backgroundColor=V,v.spectrum("set",V),X(V,!1))}})),n&&n.on&&this.listenTo(n,"component:selected",function(){t.movedColor&&X(t.movedColor),B=!0,t.movedColor="",v.spectrum("hide")}),this.colorEl=v}return this.colorEl},r.prototype.render=function(){return gl.prototype.render.call(this),this.getColorEl(),this},r}(gl);var vc=function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}}();const zu=function(a){function r(){return a!==null&&a.apply(this,arguments)||this}return vc(r,a),r.prototype.templateInput=function(){return""},r.prototype.getInputEl=function(){if(!this.input){var t=this.model,e=this.getModelValue(),n=new gc({model:t,target:this.config.em,contClass:this.ppfx+"field-color",ppfx:this.ppfx}).render();n.setValue(e,{fromTarget:1}),this.input=n.el}return this.input},r}(zo);var ef=function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}}(),mc=function(a){function r(){return a!==null&&a.apply(this,arguments)||this}return ef(r,a),r.prototype.templateInput=function(){return""},r.prototype.onChange=function(){this.handleClick()},r.prototype.handleClick=function(){var t=this.model,e=this.em,n=t.get("command");n&&((0,_.isString)(n)?e.Commands.run(n):n(e.Editor,t))},r.prototype.renderLabel=function(){this.model.get("label")&&zo.prototype.renderLabel.apply(this)},r.prototype.getInputEl=function(){var t=this.model,e=this.ppfx,n=t.props(),i=n.labelButton,l=n.text,f=n.full,d=i||l,v="".concat(e,"btn");return'")},r}(zo);const xs=mc;mc.prototype.eventCapture=["click button"];var Bu=function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}}(),Ss=function(){return Ss=Object.assign||function(a){for(var r,t=1,e=arguments.length;t + ').concat(on,` + ').concat(On,` + `):"",` +
+
+
+ ').concat(Dr,` + `).concat(de?'').concat(de,""):"",` + ').concat(Ft,` +
+
+
+
').concat(T||"",`
+
').concat(We||"",`
+
')},Object.defineProperty(r.prototype,"em",{get:function(){return this.module.em},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"ppfx",{get:function(){return this.em.getConfig().stylePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"pfx",{get:function(){return this.config.stylePrefix},enumerable:!1,configurable:!0}),r.prototype.initComponent=function(){var t=this,e=this.model,n=this.config.onInit,i=e.components();this.listenTo(i,"remove add reset",this.checkChildren),[["change:status",this.updateStatus],["change:open",this.updateOpening],["change:layerable",this.updateLayerable],["change:style:display",this.updateVisibility],["rerender:layer",this.render],["change:name change:custom-name",this.updateName]].forEach(function(l){return t.listenTo(e,l[0],l[1])}),this.$el.data("model",e),this.$el.data("collection",i),e.viewLayer=this,n.bind(this)({component:e,render:this.__render,listenTo:this.listenTo})},r.prototype.updateName=function(){this.getInputName().innerText=this.model.getName()},r.prototype.getVisibilityEl=function(){return this.eyeEl||(this.eyeEl=this.$el.children(".".concat(this.pfx,"layer-vis"))),this.eyeEl},r.prototype.updateVisibility=function(){var t=this,e=t.pfx,n=t.model,i=t.module,l="".concat(e,"layer-hidden"),f=i.isVisible(n)?"removeClass":"addClass";this.$el[f](l),this.getVisibilityEl()[f]("".concat(e,"layer-off"))},r.prototype.toggleVisibility=function(t){t==null||t.stopPropagation();var e=this.module,n=this.model;e.setVisible(n,!e.isVisible(n))},r.prototype.handleEdit=function(t){t==null||t.stopPropagation();var e=this,n=e.em,i=e.$el,l=e.clsNoEdit,f=e.clsEdit,d=this.getInputName();d[wc]="true",d.focus(),document.execCommand("selectAll",!1),n.setEditing(!0),i.find(".".concat(this.inputNameCls)).removeClass(l).addClass(f)},r.prototype.handleEditKey=function(t){t.stopPropagation(),((0,D.isEscKey)(t)||(0,D.isEnterKey)(t))&&this.handleEditEnd(t)},r.prototype.handleEditEnd=function(t){t==null||t.stopPropagation();var e=this,n=e.em,i=e.$el,l=e.clsNoEdit,f=e.clsEdit,d=this.getInputName(),v=d.textContent;d.scrollLeft=0,d[wc]="false",this.setName(v,{component:this.model,propName:"custom-name"}),n.setEditing(!1),i.find(".".concat(this.inputNameCls)).addClass(l).removeClass(f),this.updateName()},r.prototype.setName=function(t,e){var n=e.propName;this.model.set(n,t)},r.prototype.getInputName=function(){return this.inputName||(this.inputName=this.el.querySelector(".".concat(this.inputNameCls))),this.inputName},r.prototype.updateOpening=function(){var t=this,e=t.$el,n=t.model,i=t.pfx,l="open",f="".concat(i,"layer-open"),d=this.getCaret();this.module.isOpen(n)?(e.addClass(l),d.addClass(f)):(e.removeClass(l),d.removeClass(f))},r.prototype.toggleOpening=function(t){var e=this.model,n=this.module;t==null||t.stopImmediatePropagation(),e.get("components").length&&n.setOpen(e,!n.isOpen(e))},r.prototype.handleSelect=function(t){t==null||t.stopPropagation();var e=this.module,n=this.model;e.setLayerData(n,{selected:!0},{event:t})},r.prototype.handleHover=function(t){t==null||t.stopPropagation();var e=this.module,n=this.model;e.setLayerData(n,{hovered:!0})},r.prototype.handleHoverOut=function(t){t==null||t.stopPropagation();var e=this.module,n=this.model;e.setLayerData(n,{hovered:!1})},r.prototype.startSort=function(t){t.stopPropagation();var e=this.em,n=this.sorter;t.button&&t.button!==0||n&&(n.onStart=function(i){return e.trigger("".concat(br,":start"),i)},n.onMoveClb=function(i){return e.trigger(br,i)},n.startSort(t.target))},r.prototype.updateStatus=function(){Ln.prototype.updateStatus.apply(this,[{avoidHover:!this.config.highlightHover,noExtHl:!0}])},r.prototype.checkChildren=function(){var t=this,e=t.model,n=t.clsNoChild,i=t.$el,l=t.module,f=l.getComponents(e).length,d=i.children(".".concat(this.clsTitleC)).children(".".concat(this.clsTitle)),v=this.cnt;v||(v=i.children("[data-count]").get(0),this.cnt=v),d[f?"removeClass":"addClass"](n),v&&(v.innerHTML=f||""),!f&&l.setOpen(e,!1)},r.prototype.getCaret=function(){return this.caret&&this.caret.length||(this.caret=this.$el.children(".".concat(this.clsTitleC)).find(".".concat(this.clsCaret))),this.caret},r.prototype.setRoot=function(t){t=(0,_.isString)(t)?this.em.getWrapper().find(t)[0]:t;var e=(0,D.getModel)(t,0);e&&(this.stopListening(),this.model=e,this.initComponent(),this._rendered&&this.render())},r.prototype.updateLayerable=function(){(this.parentView||this).render()},r.prototype.__clearItems=function(){var t;(t=this.items)===null||t===void 0||t.remove()},r.prototype.remove=function(){for(var t=[],e=0;e + `).concat(this.getPreview(),` +
+
+ `).concat(this.getInfo(),` +
+
+ ⨯ +
+ `)},r.prototype.updateTarget=function(t){t&&t.set&&(t.set("attributes",(0,_.clone)(t.get("attributes"))),t.set("src",this.model.get("src")))},r.prototype.getPreview=function(){return""},r.prototype.getInfo=function(){return""},r.prototype.render=function(){var t=this.el;return t.innerHTML=this.template(this,this.model),t.className=this.className,this},r}(S.G7);const h=p;var m=function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}}(),b=function(a,r){return Object.defineProperty?Object.defineProperty(a,"raw",{value:r}):a.raw=r,a},x=function(a){function r(){return a!==null&&a.apply(this,arguments)||this}return m(r,a),r.prototype.getPreview=function(){var t=this,e=t.pfx,n=t.ppfx,i=t.model.get("src");return et($||($=b([` +
+
+ `],[` +
+
+ `])),e,i,e,n)},r.prototype.getInfo=function(){var t=this.pfx,e=this.model,n=e.get("name"),i=e.get("width"),l=e.get("height"),f=e.get("unitDim"),d=i&&l?"".concat(i,"x").concat(l).concat(f):"";return n=n||e.getFilename(),et(K||(K=b([` +
',`
+
',`
+ `],[` +
',`
+
',`
+ `])),t,n,t,d)},r.prototype.init=function(t){var e=this.pfx;this.className+=" ".concat(e,"asset-image")},r.prototype.onClick=function(){var t=this.model,e=this.pfx,n=this.__getBhv().select,i=this.config.onClick,l=this.collection;l.trigger("deselectAll"),this.$el.addClass(e+"highlight"),(0,_.isFunction)(n)?n(t,!1):(0,_.isFunction)(i)?i(t):this.updateTarget(l.target)},r.prototype.onDblClick=function(){var t=this.em,e=this.model,n=this.__getBhv().select,i=this.config.onDblClick,l=this.collection,f=l.target,d=l.onSelect;(0,_.isFunction)(n)?n(e,!0):(0,_.isFunction)(i)?i(e):(this.updateTarget(f),t==null||t.Modal.close()),(0,_.isFunction)(d)&&d(e)},r.prototype.onRemove=function(t){t.stopImmediatePropagation(),this.model.collection.remove(this.model)},r}(h);const k=x;var $,K;x.prototype.events={"click [data-toggle=asset-remove]":"onRemove",click:"onClick",dblclick:"onDblClick"};var vt=function(){return vt=Object.assign||function(a){for(var r,t=1,e=arguments.length;t +
+ +
+ +
+ + `)),` +
+
+ `).concat(l,` +
+
+
+
+ `)},r.prototype.handleSubmit=function(t){t.preventDefault();var e=this.getAddInput(),n=e&&e.value.trim(),i=this.config.handleAdd;if(n){e.value="";var l=this.getAssetsEl();l&&(l.scrollTop=0),i?i.bind(this)(n):this.options.globalCollection.add(n,{at:0})}},r.prototype.getAssetsEl=function(){return this.el.querySelector(".".concat(this.pfx,"assets"))},r.prototype.getAddInput=function(){return this.inputUrl&&this.inputUrl.value||(this.inputUrl=this.el.querySelector(".".concat(this.pfx,"add-asset input"))),this.inputUrl},r.prototype.removedAsset=function(t){this.collection.length||this.toggleNoAssets()},r.prototype.addToAsset=function(t){this.collection.length==1&&this.toggleNoAssets(!0),this.addAsset(t)},r.prototype.addAsset=function(t,e){e===void 0&&(e=null);var n=e,i=this.collection,l=this.config,f=new t.typeView({model:t,collection:i,config:l}).render().el;if(n)n.appendChild(f);else{var d=this.getAssetsEl();d&&d.insertBefore(f,d.firstChild)}return f},r.prototype.toggleNoAssets=function(t){t===void 0&&(t=!1);var e=this.$el.find(".".concat(this.pfx,"assets"));if(t)e.empty();else{var n=this.config.noAssets;n&&e.append(n)}},r.prototype.deselectAll=function(){var t=this.pfx;this.$el.find(".".concat(t,"highlight")).removeClass("".concat(t,"highlight"))},r.prototype.renderAssets=function(){var t=this,e=document.createDocumentFragment(),n=this.$el.find(".".concat(this.pfx,"assets"));n.empty(),this.toggleNoAssets(!!this.collection.length),this.collection.each(function(i){return t.addAsset(i,e)}),n.append(e)},r.prototype.render=function(){var t=this.options.fu.render().el;return this.$el.empty(),this.$el.append(t).append(this.template(this)),this.el.className="".concat(this.ppfx,"asset-manager"),this.renderAssets(),this},r}(S.G7);const xe=re;re.prototype.events={submit:"handleSubmit"};var we=function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}}(),Ee=function(a,r){return Object.defineProperty?Object.defineProperty(a,"raw",{value:r}):a.raw=r,a},dn=function(a){function r(t){t===void 0&&(t={});var e=a.call(this,t)||this;e.options=t;var n=t.config||{};e.module=t.module,e.config=n,e.em=e.config.em,e.pfx=n.stylePrefix||"",e.ppfx=n.pStylePrefix||"",e.target=e.options.globalCollection||{},e.uploadId=e.pfx+"uploadFile",e.disabled=n.disableUpload!==void 0?n.disableUpload:!n.upload&&!n.embedAsBase64,e.multiUpload=n.multiUpload===void 0||n.multiUpload;var i=n.uploadFile;return i?e.uploadFile=i.bind(e):!n.upload&&n.embedAsBase64&&(e.uploadFile=r.embedAsBase64),e.delegateEvents(),e}return we(r,a),r.prototype.template=function(t){var e=t.pfx,n=t.title,i=t.uploadId,l=t.disabled,f=t.multiUpload;return et(wr||(wr=Ee([` +
+
',`
+ +
+
+ `],[` +
+
',`
+ +
+
+ `])),e,n,i,l?"disabled":"",f?"multiple":"")},r.prototype.events=function(){return{"change [data-input]":"uploadFile"}},r.prototype.onUploadStart=function(){var t=this.module;t&&t.__propEv("asset:upload:start")},r.prototype.onUploadEnd=function(t){var e=this.$el,n=this.module;n&&n.__propEv("asset:upload:end",t);var i=e.find("input");i&&i.val("")},r.prototype.onUploadError=function(t){var e=this.module;console.error(t),this.onUploadEnd(t),e&&e.__propEv("asset:upload:error",t)},r.prototype.onUploadResponse=function(t,e){var n,i=this,l=i.module,f=i.config,d=i.target;try{n=typeof t=="string"?JSON.parse(t):t}catch{n=t}l&&l.__propEv("asset:upload:response",n),f.autoAdd&&d&&d.add(n.data,{at:0}),this.onUploadEnd(t),e==null||e(n)},r.prototype.uploadFile=function(t,e){var n=this,i=t.dataTransfer?t.dataTransfer.files:t.target.files,l=this.config,f=l.beforeUpload;if((f&&f(i))!==!1){var d=new FormData,v=l.params,g=l.customFetch;for(var w in v)d.append(w,v[w]);if(this.multiUpload)for(var T=0;T').concat(i.dropzoneContent,"")),V(),"draggable"in f&&[f,v].forEach(function(tt){tt.ondragover=B,tt.ondragleave=X,tt.ondrop=ot})},r.prototype.render=function(){var t=this,e=t.$el,n=t.pfx,i=t.em;return e.html(this.template({title:i&&i.t("assetManager.uploadTitle"),uploadId:this.uploadId,disabled:this.disabled,multiUpload:this.multiUpload,pfx:n})),this.initDrop(),e.attr("class",n+"file-uploader"),this},r.embedAsBase64=function(t,e){var n=this,i=t.dataTransfer?t.dataTransfer.files:t.target.files,l={data:[]};if(FileReader){for(var f=[],d=/^(.+)\/(.+)$/,v=function(T){var V=new Promise(function(B,X){var ot=new FileReader;ot.addEventListener("load",function(tt){var At,Ft=T.name,de=d.exec(T.type);if((At=de?de[1]:T.type)==="image"){var _e={src:ot.result,name:Ft,type:At,height:0,width:0},Ne=new Image;Ne.addEventListener("error",function(We){X(We)}),Ne.addEventListener("load",function(){_e.height=Ne.height,_e.width=Ne.width,B(_e)}),Ne.src=_e.src}else B(At?{src:ot.result,name:Ft,type:At}:ot.result)}),ot.addEventListener("error",function(tt){X(tt)}),ot.addEventListener("abort",function(tt){X("Aborted")}),ot.readAsDataURL(T)});f.push(V)},g=0,w=i;g0&&(l=t.split(".").reduce(function(f,d){if(!(0,_.isUndefined)(f))return f[d]},i)),l}},r.prototype._debug=function(t,e){e===void 0&&(e={});var n=this.em,i=this.config;(e.debug||i.debug)&&n&&n.logWarning(t)},r.prototype.destroy=function(){},r}(Mt);const fh=ph;var dh=function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}}(),Es=function(){return Es=Object.assign||function(a){for(var r,t=1,e=arguments.length;tv+T-e||fg+w-e)return 1},r.prototype.getCurrentPos=function(){var t=this.eventMove;return{x:(t==null?void 0:t.pageX)||0,y:(t==null?void 0:t.pageY)||0}},r.prototype.getDim=function(t){var e,n,i,l,f=this.em,d=this.canvasRelative,v=f==null?void 0:f.Canvas,g=v?v.getElementOffsets(t):{};if(d&&f){var w=v.getElementPos(t,{noScroll:1});e=w.top,n=w.left,i=w.height,l=w.width}else{var T=this.offset(t);e=this.relative?t.offsetTop:T.top-(this.wmargin?-1:1)*this.elT,n=this.relative?t.offsetLeft:T.left-(this.wmargin?-1:1)*this.elL,i=t.offsetHeight,l=t.offsetWidth}return{top:e,left:n,height:i,width:l,offsets:g}},r.prototype.getChildrenDim=function(t){var e=this,n=[];if(!t)return n;var i=this.getTargetModel(t);if(i&&i.view&&!this.ignoreViewChildren){var l=i.getCurrentView?i.getCurrentView():i.view;t=l.getChildrenContainer()}return(0,_.each)(t.children,function(f,d){var v=f,g=(0,D.getModel)(v,lt.default),w=g&&g.index?g.index():d;if((0,D.isTextNode)(v)||e.matches(v,e.itemSel)){var T,V=e.getDim(v),B=e.direction;T=B=="v"||B!="h"&&e.isInFlow(v,t),V.dir=T,V.el=v,V.indexEl=w,n.push(V)}}),n},r.prototype.nearBorders=function(t,e,n){var i=!1,l=this.borderOffset,f=e||0,d=n||0,v=t.top,g=t.left,w=t.height,T=t.width;return(v+l>d||d>v+w-l||g+l>f||f>g+T-l)&&(i=!0),i},r.prototype.findPosition=function(t,e,n){for(var i,l={index:0,indexEl:0,method:"before"},f=0,d=0,v=0,g=0,w=0,T=0,V=0,B=t.length;Vd||v&&w>=v||f&&ot+Atde&&(At.at=w-1))}i&&(Ft?(delete At.at,l=B.getView().insertComponent(i,At)):l=V.add(i,At)),delete this.dropContent,delete this.prevTarget}else if(f){var Ne=T.dropInfo||(B==null?void 0:B.get("droppable")),We=T.dragInfo||(X==null?void 0:X.get("draggable"));!V&&g.push("Target collection not found"),!tt&&Ne&&g.push("Target is not droppable, accepts [".concat(Ne,"]")),!ot&&We&&g.push("Component not draggable, acceptable by [".concat(We,"]")),f.logWarning("Invalid target position",{errors:g,model:X,context:"sorter",target:B})}return f==null||f.trigger("sorter:drag:end",{targetCollection:V,modelToDrop:i,warns:g,validResult:T,dst:t,srcEl:v}),l},r.prototype.rollback=function(t){(0,D.off)(this.getDocuments(),"keydown",this.rollback),(t.which||t.keyCode)==27&&(this.moved=!1,this.endMove())},r}(S.G7);const vh=gh;var _a=function(){return _a=Object.assign||function(a){for(var r,t=1,e=arguments.length;tFt?ot.h=Math.round(ot.w/Ft):ot.w=Math.round(ot.h*Ft)}return~tt.indexOf("l")&&(ot.l=i.w-ot.w),~tt.indexOf("t")&&(ot.t=i.h-ot.h),ot}},a}();const yh=mh;var bh=function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}}(),pf=function(){return pf=Object.assign||function(a){for(var r,t=1,e=arguments.length;t=0&&_l.splice(e,1),t!=93&&t!=224||(t=91),t in Kr)for(r in Kr[t]=!1,Ca)Ca[r]==t&&(Yr[r]=!1)}function Oh(){for(so in Kr)Kr[so]=!1;for(so in Ca)Yr[so]=!1}function Yr(a,r,t){var e,n;e=id(a),t===void 0&&(t=r,r="all");for(var i=0;i1&&(n=sd(a),a=[a[a.length-1]]),a=a[0],(a=ff(a))in yo||(yo[a]=[]),yo[a].push({shortcut:e[i],scope:r,method:t,key:e[i],mods:n})}for(so in Ca)Yr[so]=!1;function df(){return rd||"all"}function id(a){var r;return(r=(a=a.replace(/\s/g,"")).split(","))[r.length-1]==""&&(r[r.length-2]+=","),r}function sd(a){for(var r=a.slice(0,a.length-1),t=0;t1&&(f=sd(e)),a=e[e.length-1],a=ff(a),r===void 0&&(r=df()),!yo[a])return;for(n=0;n0,Kr)(!Kr[i]&&Tc(n.mods,+i)>-1||Kr[i]&&Tc(n.mods,+i)==-1)&&(f=!1);(n.mods.length!=0||Kr[16]||Kr[18]||Kr[17]||Kr[91])&&!f||n.method(t,n)===!1&&(t.preventDefault?t.preventDefault():t.returnValue=!1,t.stopPropagation&&t.stopPropagation(),t.cancelBubble&&(t.cancelBubble=!0))}}})(r)}),hf(a.document,"keyup",Sh),hf(a,"focus",Oh)};const kc=Yr,Th={defaults:{"core:undo":{keys:"⌘+z, ctrl+z",handler:"core:undo"},"core:redo":{keys:"⌘+shift+z, ctrl+shift+z",handler:"core:redo"},"core:copy":{keys:"⌘+c, ctrl+c",handler:"core:copy"},"core:paste":{keys:"⌘+v, ctrl+v",handler:"core:paste"},"core:component-next":{keys:"s",handler:"core:component-next"},"core:component-prev":{keys:"w",handler:"core:component-prev"},"core:component-enter":{keys:"d",handler:"core:component-enter"},"core:component-exit":{keys:"a",handler:"core:component-exit"},"core:component-delete":{keys:"backspace, delete",handler:"core:component-delete",opts:{prevent:!0}}}};var kh=function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}}(),ad=function(a,r,t){if(t||arguments.length===2)for(var e,n=0,i=r.length;n +
+
').concat(l,`
+
+
+
+
').concat(i,`
+
+
+ + ')},r.prototype.events=function(){return{click:"onClick","click [data-close-modal]":"hide"}},r.prototype.onClick=function(t){this.config.backdrop&&t.target===this.el&&this.hide()},r.prototype.getCollector=function(){return this.$collector||(this.$collector=this.$el.find("."+this.pfx+"collector")),this.$collector},r.prototype.getContent=function(){var t=this.pfx;return this.$content||(this.$content=this.$el.find(".".concat(t,"content #").concat(t,"c"))),this.$content},r.prototype.getTitle=function(t){return t===void 0&&(t={}),this.$title||(this.$title=this.$el.find("."+this.pfx+"title")),t.$?this.$title:this.$title.get(0)},r.prototype.updateContent=function(){var t=this.getContent(),e=t.children(),n=this.getCollector(),i=this.model.get("content");e.length&&n.append(e),t.empty().append(i)},r.prototype.updateTitle=function(){var t=this.getTitle({$:!0});t&&t.empty().append(this.model.get("title"))},r.prototype.updateOpen=function(){this.el.style.display=this.model.get("open")?"":"none"},r.prototype.hide=function(){this.model.close()},r.prototype.show=function(){this.model.open()},r.prototype.updateAttr=function(t){var e=this,n=e.pfx,i=e.$el,l=e.el,f=[].slice.call(l.attributes).map(function(d){return d.name});i.removeAttr(f.join(" ")),i.attr(Yu(Yu({},t||{}),{class:"".concat(n,"container ").concat(t&&t.class||"").trim()}))},r.prototype.render=function(){var t=this.$el,e=this.model.toJSON();return e.pfx=this.pfx,e.ppfx=this.ppfx,t.html(this.template(e)),this.updateAttr(),this.updateOpen(),this},r}(yn);var Nh=function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}}();const Ih=function(a){function r(t){var e=a.call(this,t,"Modal",Ah)||this;return e.model=new Mh(e),e.model.on("change:open",function(n,i){t.trigger("modal:".concat(i?"open":"close"))}),e.model.on("change",(0,_.debounce)(function(){var n=e._evData(),i=e.config.custom;(0,_.isFunction)(i)&&i(n),t.trigger("modal",n)},0)),e}return Nh(r,a),r.prototype._evData=function(){var t=this,e=this.getTitle(),n=this.getContent(),i=this.model.attributes;return{open:i.open,attributes:i.attributes,title:(0,_.isString)(e)?(0,$e.rw)(e):e,content:(0,_.isString)(n)?(0,$e.rw)(n):n.get?n.get(0):n,close:function(){t.close()}}},r.prototype.postRender=function(t){var e=t.model.config.el||t.el,n=this.render();n&&(e==null||e.appendChild(n))},r.prototype.open=function(t){t===void 0&&(t={});var e=t.attributes||{};return t.title&&this.setTitle(t.title),t.content&&this.setContent(t.content),this.model.set("attributes",e),this.model.open(),this.modal&&this.modal.updateAttr(e),this},r.prototype.close=function(){return this.model.close(),this},r.prototype.onceClose=function(t){return this.em.once("modal:close",t),this},r.prototype.onceOpen=function(t){return this.em.once("modal:open",t),this},r.prototype.isOpen=function(){return!!this.model.get("open")},r.prototype.setTitle=function(t){return this.model.set("title",t),this},r.prototype.getTitle=function(){return this.model.get("title")},r.prototype.setContent=function(t){return this.model.set("content"," "),this.model.set("content",t),this},r.prototype.getContent=function(){return this.model.get("content")},r.prototype.getContentEl=function(){var t;return(t=this.modal)===null||t===void 0?void 0:t.getContent().get(0)},r.prototype.getModel=function(){return this.model},r.prototype.render=function(){var t;if(!this.config.custom){var e=Dh.extend(this.config.extend),n=this.modal&&this.modal.el;return this.modal=new e({el:n,model:this.model,config:this.config}),(t=this.modal)===null||t===void 0?void 0:t.render().el}},r.prototype.destroy=function(){var t;(t=this.modal)===null||t===void 0||t.remove()},r}(Mt);var ld="sw-visibility",cd="export-template",ud="open-sm",pd="open-tm",fd="open-layers",dd="open-blocks",gf="fullscreen",vf="preview";const mf={stylePrefix:"pn-",defaults:[{id:"commands",buttons:[{}]},{id:"options",buttons:[{active:!0,id:ld,className:"fa fa-square-o",command:"core:component-outline",context:ld,attributes:{title:"View components"}},{id:vf,className:"fa fa-eye",command:vf,context:vf,attributes:{title:"Preview"}},{id:gf,className:"fa fa-arrows-alt",command:gf,context:gf,attributes:{title:"Fullscreen"}},{id:cd,className:"fa fa-code",command:cd,attributes:{title:"View code"}}]},{id:"views",buttons:[{id:ud,className:"fa fa-paint-brush",command:ud,active:!0,togglable:!1,attributes:{title:"Open Style Manager"}},{id:pd,className:"fa fa-cog",command:pd,togglable:!1,attributes:{title:"Settings"}},{id:fd,className:"fa fa-bars",command:fd,togglable:!1,attributes:{title:"Open Layer Manager"}},{id:dd,className:"fa fa-th-large",command:dd,togglable:!1,attributes:{title:"Open Blocks"}}]}]};var Vh=function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}}();const hd=function(a){function r(t,e){var n=a.call(this,t,e)||this;return n.get("buttons").length&&n.set("buttons",new vd(n.module,n.get("buttons"))),n}return Vh(r,a),r.prototype.defaults=function(){return{id:"",label:"",tagName:"span",className:"",command:"",context:"",buttons:[],attributes:{},options:{},active:!1,dragDrop:!1,togglable:!0,runDefaultCommand:!0,stopDefaultCommand:!1,disable:!1}},Object.defineProperty(r.prototype,"className",{get:function(){return this.get("className")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"command",{get:function(){return this.get("command")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"active",{get:function(){return this.get("active")},set:function(t){this.set("active",t)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"togglable",{get:function(){return this.get("togglable")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"runDefaultCommand",{get:function(){return this.get("runDefaultCommand")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"stopDefaultCommand",{get:function(){return this.get("stopDefaultCommand")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"disable",{get:function(){return this.get("disable")},enumerable:!1,configurable:!0}),r}(pt);var Fh=function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}}(),gd=function(a){function r(t,e){return a.call(this,t,e,hd)||this}return Fh(r,a),r.prototype.deactivateAllExceptOne=function(t,e){this.forEach(function(n,i){n!==t&&(n.set("active",!1),e&&n.get("buttons").length&&n.get("buttons").deactivateAllExceptOne(t,e))})},r.prototype.deactivateAll=function(t,e){var n=t||"";this.forEach(function(i){i.get("context")==n&&i!==e&&i.set("active",!1,{fromCollection:!0})})},r.prototype.disableAllButtons=function(t){var e=t||"";this.forEach(function(n,i){n.get("context")==e&&n.set("disable",!0)})},r.prototype.disableAllButtonsExceptOne=function(t,e){this.forEach(function(n,i){n!==t&&(n.set("disable",!0),e&&n.get("buttons").length&&n.get("buttons").disableAllButtonsExceptOne(t,e))})},r}(Bt);const vd=gd;gd.prototype.model=hd;var Hh=function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}}();const md=function(a){function r(t,e){var n=a.call(this,t,e)||this,i=n.get("buttons")||[];return n.buttons=new vd(t,i),n}return Hh(r,a),r.prototype.defaults=function(){return{id:"",content:"",visible:!0,buttons:[],attributes:{}}},Object.defineProperty(r.prototype,"buttons",{get:function(){return this.get("buttons")},set:function(t){this.set("buttons",t)},enumerable:!1,configurable:!0}),r}(pt);var Rh=function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}}(),yd=function(a){function r(t,e){return a.call(this,t,e,md)||this}return Rh(r,a),r}(Bt);const zh=yd;yd.prototype.model=md;var Bh=function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}}(),Cl=function(){return Cl=Object.assign||function(a){for(var r,t=1,e=arguments.length;t +
',`
+
+ + `],[` +
+
',`
+
+
+ `])),e,e,n,e,i,e)},r.prototype.initialize=function(t){this.config=t.config||{},this.pfx=this.config.stylePrefix},r.prototype.render=function(){var t=this,e=t.model,n=t.pfx,i=t.$el,l=e.toJSON();return l.pfx=n,i.html(this.template(l)),i.attr("class","".concat(n,"editor-c")),i.find("#".concat(n,"code")).append(e.get("input")),this},r}(S.G7);var wd,gg=function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}}(),vg="CodeMirror",mg=function(a){function r(t){var e=a.call(this,t,"CodeManager",tg)||this;e.EditorView=hg;var n=e.config,i=n.pStylePrefix;return i&&(n.stylePrefix=i+n.stylePrefix),e.generators={},e.viewers={},e.defGenerators={html:new rg,css:new Lp,json:new sg,js:new cg},e.defViewers={CodeMirror:new pg},e.loadDefaultGenerators().loadDefaultViewers(),e}return gg(r,a),r.prototype.addGenerator=function(t,e){return this.generators[t]=e,this},r.prototype.getGenerator=function(t){return this.generators[t]},r.prototype.getGenerators=function(){return this.generators},r.prototype.addViewer=function(t,e){return this.viewers[t]=e,this},r.prototype.getViewer=function(t){return this.viewers[t]},r.prototype.getViewers=function(){return this.viewers},r.prototype.createViewer=function(t){t===void 0&&(t={});var e=(0,_.isUndefined)(t.type)?vg:t.type,n=this.getViewer(e)&&this.getViewer(e).clone(),i=document.createElement("div"),l=document.createElement("textarea");return i.appendChild(l),n.set(t),n.init(l),n.setElement(i),n},r.prototype.updateViewer=function(t,e){t.setContent(e)},r.prototype.getCode=function(t,e,n){n===void 0&&(n={}),n.em=this.em;var i=this.getGenerator(e);return i?i.build(t,n):""},r.prototype.loadDefaultGenerators=function(){for(var t in this.defGenerators)this.addGenerator(t,this.defGenerators[t]);return this},r.prototype.loadDefaultViewers=function(){for(var t in this.defViewers)this.addViewer(t,this.defViewers[t]);return this},r.prototype.destroy=function(){},r}(Mt);const yg=mg;var bg=Wt(410),wg=Wt.n(bg);const _g={maximumStackLength:500,trackSelection:!0};var Cg=function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}}(),Hi=function(){return Hi=Object.assign||function(a){for(var r,t=1,e=arguments.length;t=0}))return!1;if((0,_.isBoolean)(l)||(0,_.isArray)(l)&&_d(i).some(function(d){return l.indexOf(d)>=0}))return!0}return!1},on:function(i,l,f){var d=this;!this.beforeCache&&(this.beforeCache=i.previousAttributes());var v=f||l||{};if(v.noUndo&&setTimeout(function(){d.beforeCache=null}),!Ju(v)){var g=i.toJSON({fromUndo:n}),w={object:i,before:this.beforeCache,after:g};if(this.beforeCache=null,!(0,_.isEmpty)(g))return w}}}),e.um.changeUndoType("add",{on:function(i,l,f){if(f===void 0&&(f={}),!Ju(f)&&e.isRegistered(l))return{object:l,before:void 0,after:i,options:Hi(Hi({},f),{fromUndo:n})}}}),e.um.changeUndoType("remove",{on:function(i,l,f){if(f===void 0&&(f={}),!Ju(f)&&e.isRegistered(l))return{object:l,before:i,after:void 0,options:Hi(Hi({},f),{fromUndo:n})}}}),e.um.changeUndoType("reset",{undo:function(i,l){i.reset(l,{fromUndo:n})},redo:function(i,l,f){i.reset(f,{fromUndo:n})},on:function(i,l){if(l===void 0&&(l={}),!Ju(l)&&e.isRegistered(i))return{object:i,before:l.previousModels,after:xg([],i.models,!0),options:Hi(Hi({},l),{fromUndo:n})}}}),e.um.on("undo redo",function(){t.trigger("change:canvasOffset"),t.getSelectedAll().map(function(i){return i.trigger("rerender:layer")})}),["undo","redo"].forEach(function(i){return e.um.on(i,function(){return t.trigger(i)})}),e}return Cg(r,a),r.prototype.postLoad=function(){var t=this.config,e=this.em;t.trackSelection&&e&&this.add(e.get("selected"))},r.prototype.add=function(t){return this.um.register(t),this},r.prototype.remove=function(t){return this.um.unregister(t),this},r.prototype.removeAll=function(){return this.um.unregisterAll(),this},r.prototype.start=function(){return this.um.startTracking(),this},r.prototype.stop=function(){return this.um.stopTracking(),this},r.prototype.undo=function(t){t===void 0&&(t=!0);var e=this.em,n=this.um;return!e.isEditing()&&n.undo(t),this},r.prototype.undoAll=function(){return this.um.undoAll(),this},r.prototype.redo=function(t){t===void 0&&(t=!0);var e=this.em,n=this.um;return!e.isEditing()&&n.redo(t),this},r.prototype.redoAll=function(){return this.um.redoAll(),this},r.prototype.hasUndo=function(){return!!this.um.isAvailable("undo")},r.prototype.hasRedo=function(){return!!this.um.isAvailable("redo")},r.prototype.isRegistered=function(t){return!!this.getInstance().objectRegistry.isRegistered(t)},r.prototype.getStack=function(){return this.um.stack},r.prototype.getStackGroup=function(){var t=[],e=[];return this.getStack().forEach(function(n){var i=n.get("magicFusionIndex");e.indexOf(i)<0&&(e.push(i),t.push(n))}),t},r.prototype.skip=function(t){this.stop(),t(),this.start()},r.prototype.getGroupedStack=function(){var t={},e=this.getStack();return e.forEach(function(n,i){var l=n.get("magicFusionIndex"),f=function(d,v){var g=d.attributes,w=g.type,T=g.after,V=g.before,B=g.object,X=g.options;return{index:v,type:w,after:T,before:V,object:B,options:X===void 0?{}:X}}(n,i);t[l]?t[l].push(f):t[l]=[f]}),Object.keys(t).map(function(n){var i=t[n];return{index:i[i.length-1].index,actions:i,labels:(0,_.unique)(i.reduce(function(l,f){var d,v=(d=f.options)===null||d===void 0?void 0:d.action;return v&&l.push(v),l},[]))}})},r.prototype.goToGroup=function(t){var e=this;if(t){var n=this.getPointer(),i=t.index-n;(0,_.times)(Math.abs(i),function(){e[i<0?"undo":"redo"](!1)})}},r.prototype.getPointer=function(){return this.getStack().pointer},r.prototype.clear=function(){return this.um.clear(),this},r.prototype.getInstance=function(){return this.um},r.prototype.destroy=function(){this.clear().removeAll()},r}(Mt);const Og=Sg;var xl=function(){return xl=Object.assign||function(a){for(var r,t=1,e=arguments.length;tB",attributes:{title:"Bold"},result:function(a){return a.exec("bold")}},italic:{name:"italic",icon:"I",attributes:{title:"Italic"},result:function(a){return a.exec("italic")}},underline:{name:"underline",icon:"U",attributes:{title:"Underline"},result:function(a){return a.exec("underline")}},strikethrough:{name:"strikethrough",icon:"S",attributes:{title:"Strike-through"},result:function(a){return a.exec("strikeThrough")}},link:{icon:` + + `,name:"link",attributes:{style:"font-size:1.4rem;padding:0 4px 2px;",title:"Link"},state:function(a){return a&&a.selection()&&Xu(a)?Cd:_f},result:function(a){Xu(a)?a.exec("unlink"):a.insertHTML('").concat(a.selection(),""),{select:!0})}},wrap:{name:"wrap",icon:` + + `,attributes:{title:"Wrap for style"},state:function(a){return a!=null&&a.selection()&&Xu(a,"SPAN")?xd:_f},result:function(a){!Xu(a,"SPAN")&&a.insertHTML("").concat(a.selection(),""),{select:!0})}}},Tg=function(){function a(r,t,e){e===void 0&&(e={});var n=this;if(this.em=r,this.settings=e,t[wf])return t[wf];t[wf]=this,this.setEl(t),this.updateActiveActions=this.updateActiveActions.bind(this),this.__onKeydown=this.__onKeydown.bind(this),this.__onPaste=this.__onPaste.bind(this);var i=(e.actions||[]).map(function(g){var w=g;return(0,_.isString)(g)?w=xl({},Pc[g]):Pc[g.name]&&(w=xl(xl({},Pc[g.name]),g)),w}),l=i.length?i:Object.keys(Pc).map(function(g){return Pc[g]});e.classes=xl({actionbar:"actionbar",button:"action",active:"active",disabled:"disabled",inactive:"inactive"},e.classes);var f=e.classes,d=e.actionbar;if(this.actionbar=d,this.classes=f,this.actions=l,!d){var v=e.actionbarContainer;(d=document.createElement("div")).className=f.actionbar,v==null||v.appendChild(d),this.actionbar=d,l.forEach(function(g){return n.addAction(g)})}return e.styleWithCSS&&this.exec("styleWithCSS"),this}return a.prototype.destroy=function(){},a.prototype.setEl=function(r){this.el=r,this.doc=r.ownerDocument},a.prototype.updateActiveActions=function(){var r=this;this.getActions().forEach(function(t){var e=t.update,n=t.btn,i=r.classes,l=i.active,f=i.inactive,d=i.disabled,v=t.state,g=t.name,w=r.doc;if(n.className=n.className.replace(l,"").trim(),n.className=n.className.replace(f,"").trim(),n.className=n.className.replace(d,"").trim(),v)switch(v(r,w)){case Cd:n.className+=" ".concat(l);break;case _f:n.className+=" ".concat(f);break;case xd:n.className+=" ".concat(d)}else w.queryCommandSupported(g)&&w.queryCommandState(g)&&(n.className+=" ".concat(l));e==null||e(r,t)})},a.prototype.enable=function(r){return this.enabled?this:this.__toggleEffects(!0,r)},a.prototype.disable=function(){return this.__toggleEffects(!1)},a.prototype.__toggleEffects=function(r,t){r===void 0&&(r=!1),t===void 0&&(t={});var e=r?D.on:D.off,n=this.el,i=this.doc;if(this.actionbarEl().style.display=r?"":"none",n.contentEditable="".concat(!!r),e(n,"mouseup keyup",this.updateActiveActions),e(i,"keydown",this.__onKeydown),e(i,"paste",this.__onPaste),this.enabled=r,r){var l=t.event;if(this.syncActions(),this.updateActiveActions(),l){var f=null;if(i.caretRangeFromPoint){var d=(0,D.getPointerEvent)(l);f=i.caretRangeFromPoint(d.clientX,d.clientY)}else l.rangeParent&&(f=i.createRange()).setStart(l.rangeParent,l.rangeOffset);var v=i.getSelection();v==null||v.removeAllRanges(),f&&(v==null||v.addRange(f))}n.focus()}return this},a.prototype.__onKeydown=function(r){var t=r,e=this.doc;t.key!=="Enter"||["insertOrderedList","insertUnorderedList"].some(function(n){return e.queryCommandState(n)})||(e.execCommand("insertLineBreak"),t.preventDefault())},a.prototype.__onPaste=function(r){var t=r.clipboardData||window.clipboardData,e=t.getData("text"),n=t.getData("text/html");if(e&&!n){r.preventDefault();var i=e.replace(/(?:\r\n|\r|\n)/g,"
");this.doc.execCommand("insertHTML",!1,i)}},a.prototype.syncActions=function(){var r=this;this.getActions().forEach(function(t){if(r.actionbar&&(!t.state||t.state&&t.state(r,r.doc)>=0)){var e=t.event||"click";t.btn["on".concat(e)]=function(){t.result(r,t),r.updateActiveActions()}}})},a.prototype.addAction=function(r,t){t===void 0&&(t={});var e=t.sync,n=document.createElement("span"),i=r.icon,l=r.attributes||{};for(var f in n.className=this.classes.button,r.btn=n,l)n.setAttribute(f,l[f]);typeof i=="string"?n.innerHTML=i:n.appendChild(i),this.actionbarEl().appendChild(n),e&&(this.actions.push(r),this.syncActions())},a.prototype.getActions=function(){return this.actions},a.prototype.selection=function(){return this.doc.getSelection()},a.prototype.exec=function(r,t){this.doc.execCommand(r,!1,t)},a.prototype.actionbarEl=function(){return this.actionbar},a.prototype.insertHTML=function(r,t){var e=(t===void 0?{}:t).select,n=this,i=n.em,l=n.doc,f=n.el,d=l.getSelection();if(d&&d.rangeCount){var v=(0,D.getModel)(f),g=l.createElement("div"),w=d.getRangeAt(0);w.deleteContents(),(0,_.isString)(r)?g.innerHTML=r:r&&g.appendChild(r),Array.prototype.slice.call(g.childNodes).forEach(function(T){w.insertNode(T)}),d.removeAllRanges(),d.addRange(w),f.focus(),e&&v&&(v.once("rte:disable",function(){var T=v.find("[".concat(Zu,"]"))[0];T&&(i.setSelected(T),T.removeAttributes(Zu))}),v.trigger("disable"))}},a}();const kg=Tg,Eg={stylePrefix:"rte-",adjustToolbar:!0,actions:["bold","italic","underline","strikethrough","link","wrap"]};var Pg=function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}}(),Ag=function(a,r,t,e){return new(t||(t=Promise))(function(n,i){function l(v){try{d(e.next(v))}catch(g){i(g)}}function f(v){try{d(e.throw(v))}catch(g){i(g)}}function d(v){var g;v.done?n(v.value):(g=v.value,g instanceof t?g:new t(function(w){w(g)})).then(l,f)}d((e=e.apply(a,r||[])).next())})},jg=function(a,r){var t,e,n,i,l={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return i={next:f(0),throw:f(1),return:f(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function f(d){return function(v){return function(g){if(t)throw new TypeError("Generator is already executing.");for(;i&&(i=0,g[0]&&(l=0)),l;)try{if(t=1,e&&(n=2&g[0]?e.return:g[0]?e.throw||((n=e.return)&&n.call(e),0):e.next)&&!(n=n.call(e,g[1])).done)return n;switch(e=0,n&&(g=[2&g[0],n.value]),g[0]){case 0:case 1:n=g;break;case 4:return l.label++,{value:g[1],done:!1};case 5:l.label++,e=g[1],g=[0];continue;case 7:g=l.ops.pop(),l.trys.pop();continue;default:if(n=l.trys,!((n=n.length>0&&n[n.length-1])||g[0]!==6&&g[0]!==2)){l=0;continue}if(g[0]===3&&(!n||g[1]>n[0]&&g[1]=0})),ot=this.get("onChange"),tt={property:this,from:T,to:w,value:v,opts:e};l.__trgEv(l.events.propertyUpdate,tt),ot&&ot(tt),X&&this.__upTargetsStyle(((n={})[f]=v,n),e)},r.prototype.__upTargetsStyle=function(t,e){var n,i=(n=this.em)===null||n===void 0?void 0:n.get("StyleManager");i==null||i.addStyleTargets(Jr(Jr({},t),{__p:!!e.avoidStore}),e)},r.prototype._up=function(t,e){e===void 0&&(e={}),e.noTarget&&(e.__up=!0);var n=e.partial,i=zg(e,["partial"]);return t.__p=!(!i.avoidStore&&!n),this.set(t,Jr(Jr({},i),{avoidStore:t.__p}))},r.prototype.up=function(t,e){e===void 0&&(e={}),this.set(t,Jr(Jr({},e),{__up:!0}))},r.prototype.init=function(){},r.prototype.getId=function(){return this.get("id")},r.prototype.getType=function(){return this.get("type")},r.prototype.getName=function(){return this.get("property")},r.prototype.getLabel=function(t){var e;t===void 0&&(t={});var n=t.locale,i=n===void 0||n,l=this.getId(),f=this.get("name")||this.get("label");return i&&((e=this.em)===null||e===void 0?void 0:e.t("styleManager.properties.".concat(l)))||f},r.prototype.getValue=function(t){t===void 0&&(t={});var e=t.noDefault,n=this.get("value");return this.hasValue()||e?n:this.getDefaultValue()},r.prototype.hasValue=function(t){t===void 0&&(t={});var e=t.noParent&&this.getParentTarget(),n=this.get("value");return!(0,_.isUndefined)(n)&&n!==""&&!e},r.prototype.hasValueParent=function(){return this.hasValue()&&!this.hasValue({noParent:!0})},r.prototype.getStyle=function(t){var e;t===void 0&&(t={});var n=this.getName();return(e={})[t.camelCase?(0,D.camelCase)(n):n]=this.__getFullValue(t),e},r.prototype.getDefaultValue=function(){var t=this.get("default");return"".concat((0,_.isUndefined)(t)?this.get("defaults"):t)},r.prototype.upValue=function(t,e){e===void 0&&(e={});var n=t===null||t===""?this.__getClearProps():this.__parseValue(t,e);return this._up(n,e)},r.prototype.isVisible=function(){return!!this.get("visible")},r.prototype.clear=function(t){return t===void 0&&(t={}),this._up(this.__getClearProps(),Jr(Jr({},t),{__clear:!0})),this},r.prototype.canClear=function(){var t=this.getParent();return t?t.__canClearProp(this):this.hasValue({noParent:!0})},r.prototype.getParent=function(){return this.__getParentProp()||null},r.prototype.isFull=function(){return!!this.get("full")},r.prototype.__parseValue=function(t,e){return this.parseValue(t,e)},r.prototype.__getClearProps=function(){return{value:""}},r.prototype.setValue=function(t,e,n){e===void 0&&(e=!0),n===void 0&&(n={});var i=this.parseValue(t),l=!e;!l&&this.set({value:void 0},{avoidStore:l,silent:!0}),this.set(i,Jr({avoidStore:l},n))},r.prototype.setValueFromInput=function(t,e,n){n===void 0&&(n={}),this.setValue(t,e,Jr(Jr({},n),{fromInput:1}))},r.prototype.parseValue=function(t,e){e===void 0&&(e={});var n={value:t},i="!important";if((0,_.isString)(t)&&t.indexOf(i)!==-1&&(n.value=t.replace(i,"").trim(),n.important=!0),!this.get("functionName")&&!e.complete)return n;var l=[],f="".concat(n.value),d=f.indexOf("(")+1,v=f.lastIndexOf(")"),g=f.substring(0,d-1);if(g&&(n.functionName=g),l.push(d),v>=0&&l.push(v),n.value=String.prototype.substring.apply(f,l),e.numeric){var w=parseFloat(n.value);n.unit=n.value.replace(w,""),n.value=w}return n},r.prototype.__getFullValue=function(t){var e=(t===void 0?{}:t).withDefault;return!this.hasValue()&&e?this.getDefaultValue():this.getFullValue()},r.prototype.getFullValue=function(t,e){e===void 0&&(e={});var n=this.get("functionName"),i=this.getDefaultValue(),l=(0,_.isUndefined)(t)?this.get("value"):t,f=!(0,_.isUndefined)(l)&&l!=="";if(l&&i&&l===i)return i;if(n&&f){var d=n==="url"?"'".concat(l.replace(/'|"/g,""),"'"):l;l="".concat(n,"(").concat(d,")")}return f&&this.get("important")&&!e.skipImportant&&(l="".concat(l," !important")),l||""},r.prototype.__setParentTarget=function(t){this.up({parentTarget:t})},r.prototype.getParentTarget=function(){return this.get("parentTarget")||null},r.prototype.__parseFn=function(t){t===void 0&&(t="");var e=t.indexOf("(")+1,n=t.lastIndexOf(")");return{name:t.substring(0,e-1).trim(),value:String.prototype.substring.apply(t,[e,n>=0?n:void 0]).trim()}},r.prototype.__checkVisibility=function(t){var e=t.target,n=t.component,i=t.sectors,l=n||e;if(!l)return!1;var f=this.getId(),d=this.getName(),v=this.get("toRequire"),g=this.get("requires"),w=this.get("requiresParent"),T=l.get("unstylable"),V=l.get("stylable-require"),B=l.get("stylable");if((0,_.isArray)(B)&&(B=B.indexOf(d)>=0),(0,_.isArray)(T)&&(B=T.indexOf(d)<0),v&&(B=!e||V&&(V.indexOf(f)>=0||V.indexOf(d)>=0)),i&&g){var X=(0,_.keys)(g);i.forEach(function(Ft){Ft.getProperties().forEach(function(de){if((0,_.includes)(X,de.id)){var _e=g[de.id];B=B&&(0,_.includes)(_e,de.get("value"))}})})}if(w){var ot=n&&n.parent(),tt=ot&&ot.getEl();if(tt){var At=(0,D.hasWin)()?window.getComputedStyle(tt):{};(0,_.each)(w,function(Ft,de){B=B&&At[de]&&(0,_.includes)(Ft,At[de])})}else B=!1}return!!B},r}(S.Hn);const An=Sf;Sf.callParentInit=function(a,r,t,e){e===void 0&&(e={}),a.prototype.initialize.apply(r,[t,Jr(Jr({},e),{skipInit:1})])},Sf.callInit=function(a,r,t){t===void 0&&(t={}),!t.skipInit&&a.init(r,t)};var Bg=function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}}(),Sl=function(){return Sl=Object.assign||function(a){for(var r,t=1,e=arguments.length;t=0?t:void 0},r.prototype.selectLayer=function(t){return this.set("selectedLayer",t,{__select:!0})},r.prototype.selectLayerAt=function(t){t===void 0&&(t=0);var e=this.getLayer(t);return e&&this.selectLayer(e)},r.prototype.moveLayer=function(t,e){e===void 0&&(e=0);var n=t?t.getIndex():-1;n>=0&&(0,_.isNumber)(e)&&e>=0&&e0&&!e},r.prototype.clear=function(t){return t===void 0&&(t={}),this.__getLayers().reset(),this.__upTargetsStyleProps(t),An.prototype.clear.call(this),this},r.prototype.__canClearProp=function(){return!1},r}(Ol);const tv=Qg;var ev=function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}}(),ep=function(){return ep=Object.assign||function(a){for(var r,t=1,e=arguments.length;t +
+ `)},r.prototype.templateLabel=function(t){var e=this.pfx,n=this.em,i=t.parent,l=t.attributes,f=l.icon,d=f===void 0?"":f,v=l.info,g=v===void 0?"":v,w=n==null?void 0:n.getConfig().icons,T=(w==null?void 0:w.close)||"";return` + + `).concat(t.getLabel(),` + + `).concat(i?"":'"),` + `)},r.prototype.templateInput=function(t){return` +
+ +
+ `)},r.prototype.remove=function(){var t=this;return S.G7.prototype.remove.apply(this,arguments),["em","input","$input","view"].forEach(function(e){return t[e]=null}),this.__destroyFn(this._getClbOpts()),this},r.prototype.updateStatus=function(){var t,e=this,n=e.model,i=e.pfx,l=e.ppfx,f=e.config,d="".concat(l,"four-color"),v="".concat(l,"color-warn"),g=this.$el.children(".".concat(i,"label")),w=this.getClearEl(),T=w?w.style:{};g.removeClass("".concat(d," ").concat(v)),T.display="none",n.hasValue({noParent:!0})&&f.highlightChanged?(g.addClass(d),f.clearProperties&&(T.display="")):n.hasValue()&&f.highlightComputed&&g.addClass(v),(t=this.parent)===null||t===void 0||t.updateStatus()},r.prototype.clear=function(t){t&&t.stopPropagation(),this.model.clear()},r.prototype.getClearEl=function(){return this.clearEl||(this.clearEl=this.el.querySelector("[".concat(Of,"]"))),this.clearEl},r.prototype.inputValueChanged=function(t){t&&t.stopPropagation(),this.emit||this.model.upValue(t.target.value)},r.prototype.onValueChange=function(t,e,n){this.setValue(this.model.getFullValue(void 0,{skipImportant:!0})),this.updateStatus()},r.prototype.setValue=function(t){var e=this.model,n=(0,_.isUndefined)(t)||t===""?e.getDefaultValue():t;if(this.update)return this.__update(n);this.__setValueInput(n)},r.prototype.__setValueInput=function(t){var e=this.getInputEl();e&&(e.value=t)},r.prototype.getInputEl=function(){return this.input||(this.input=this.el.querySelector("input")),this.input},r.prototype.updateVisibility=function(){this.el.style.display=this.model.isVisible()?"":"none"},r.prototype.clearCached=function(){delete this.clearEl,delete this.input,delete this.$input},r.prototype.__unset=function(){var t=this.unset&&this.unset.bind(this);t&&t(this._getClbOpts())},r.prototype.__update=function(t){var e=this.update&&this.update.bind(this);e&&e(ep(ep({},this._getClbOpts()),{value:t}))},r.prototype.__change=function(){for(var t=[],e=0;e + + + `)},r.prototype.remove=function(){var t;return(t=this.props)===null||t===void 0||t.remove(),Ri.prototype.remove.apply(this,arguments),this},r.prototype.onValueChange=function(){},r.prototype.onRender=function(){var t=this.pfx,e=this.model,n=e.get("properties");if(n.length&&!this.props){var i=e.isDetached(),l=new Tf({config:np(np({},this.config),{highlightComputed:i,highlightChanged:i}),collection:n,parent:this});l.render(),this.$el.find("#".concat(t,"input-holder")).append(l.el),this.props=l}},r.prototype.clearCached=function(){Ri.prototype.clearCached.apply(this,arguments),delete this.props},r}(Ri);var lv=function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}}(),cv=function(a){function r(){return a!==null&&a.apply(this,arguments)||this}return lv(r,a),r.prototype.events=function(){return{click:"select","click [data-close-layer]":"removeItem","mousedown [data-move-layer]":"initSorter","touchstart [data-move-layer]":"initSorter"}},r.prototype.template=function(){var t=this,e=t.pfx,n=t.ppfx,i=t.em,l=i==null?void 0:i.getConfig().icons,f=(l==null?void 0:l.close)||"",d=(l==null?void 0:l.move)||"";return` +
+
+ `).concat(d,` +
+
+ +
+ `).concat(f,` +
+
+
+ `)},r.prototype.initialize=function(t){t===void 0&&(t={});var e=this.model,n=t.config||{};this.em=n.em,this.config=n,this.sorter=t.sorter,this.pfx=n.stylePrefix||"",this.ppfx=n.pStylePrefix||"",this.propertyView=t.propertyView;var i=this.propertyView.model;this.listenTo(e,"destroy remove",this.remove),this.listenTo(e,"change:values",this.updateLabel),this.listenTo(i,"change:selectedLayer",this.updateVisibility),e.view=this,e.set({droppable:0,draggable:1}),this.$el.data("model",e)},r.prototype.initSorter=function(){var t;(t=this.sorter)===null||t===void 0||t.startSort(this.el)},r.prototype.removeItem=function(t){t&&t.stopPropagation(),this.model.remove()},r.prototype.select=function(){this.model.select()},r.prototype.getPropertiesWrapper=function(){return this.propsWrapEl||(this.propsWrapEl=this.el.querySelector("[data-properties]")),this.propsWrapEl},r.prototype.getPreviewEl=function(){return this.previewEl||(this.previewEl=this.el.querySelector("[data-preview]")),this.previewEl},r.prototype.getLabelEl=function(){return this.labelEl||(this.labelEl=this.el.querySelector("[data-label]")),this.labelEl},r.prototype.updateLabel=function(){var t=this.model,e=t.getLabel();if(this.getLabelEl().innerHTML=e,t.hasPreview()){var n=this.getPreviewEl(),i=t.getStylePreview({number:{min:-3,max:3}}),l=(0,_.keys)(i).map(function(f){return"".concat(f,":").concat(i[f])}).join(";");n.setAttribute("style",l)}},r.prototype.updateVisibility=function(){var t,e=this,n=e.pfx,i=e.model,l=e.propertyView,f=this.getPropertiesWrapper(),d=i.isSelected();f.style.display=d?"":"none",this.$el[d?"addClass":"removeClass"]("".concat(n,"active")),d&&f.appendChild((t=l.props)===null||t===void 0?void 0:t.el)},r.prototype.render=function(){var t=this,e=t.el,n=t.pfx,i=t.model;return e.innerHTML=this.template(),e.className="".concat(n,"layer"),i.hasPreview()&&(e.querySelector("[data-preview-box]").style.display=""),this.updateLabel(),this.updateVisibility(),this},r}(S.G7);const uv=cv;var pv=function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}}(),fv=function(a){function r(t){var e=a.call(this,t)||this,n=e.collection,i=t.config||{},l=i.em,f=i.stylePrefix||"",d=i.pStylePrefix||"";e.config=i,e.pfx=f,e.ppfx=d,e.propertyView=t.propertyView,e.className="".concat(f,"layers ").concat(d,"field"),e.listenTo(n,"add",e.addTo),e.listenTo(n,"reset",e.reset),e.items=[];var v=l==null?void 0:l.Utils;return e.sorter=v?new v.Sorter({container:e.el,ignoreViewChildren:1,containerSel:".".concat(f,"layers"),itemSel:".".concat(f,"layer"),pfx:i.pStylePrefix}):"",n.view=e,e.$el.data("model",n),e.$el.data("collection",n),e}return pv(r,a),r.prototype.addTo=function(t){var e=this.collection.indexOf(t);this.addToCollection(t,null,e)},r.prototype.addToCollection=function(t,e,n){var i=e||null,l=this,f=l.propertyView,d=l.config,v=l.sorter,g=l.$el,w=new uv({model:t,config:d,sorter:v,propertyView:f}),T=w.render().el;if(this.items.push(w),i)i.appendChild(T);else if(n!==void 0){var V="before";g.children().length===n&&(n--,V="after"),n<0?g.append(T):g.children().eq(n)[V](T)}else g.append(T);return T},r.prototype.reset=function(t,e){this.clearItems(),this.render()},r.prototype.remove=function(){return this.clearItems(),S.G7.prototype.remove.apply(this,arguments),this},r.prototype.clearItems=function(){this.items.forEach(function(t){return t.remove()}),this.items=[]},r.prototype.render=function(){var t=this,e=this.$el,n=this.sorter,i=document.createDocumentFragment();return e.empty(),this.collection.forEach(function(l){return t.addToCollection(l,i)}),e.append(i),e.attr("class",this.className),n&&(n.plh=null),this},r}(S.G7);const dv=fv;var hv=function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}}(),Tl=function(){return Tl=Object.assign||function(a){for(var r,t=1,e=arguments.length;t + +
+ + `)},r.prototype.init=function(){var t=this.model;this.listenTo(t.__getLayers(),"change reset",this.updateStatus)},r.prototype.addLayer=function(){this.model.addLayer({},{at:0})},r.prototype.setValue=function(){},r.prototype.remove=function(){var t;return(t=this.layersView)===null||t===void 0||t.remove(),Ac.prototype.remove.apply(this,arguments),this},r.prototype.clearCached=function(){Ac.prototype.clearCached.apply(this,arguments),delete this.layersView},r.prototype.onRender=function(){var t=this,e=t.model,n=t.el,i=t.config,l=e.get("properties");if(l.length&&!this.props){var f=new Tf({config:Tl(Tl({},i),{highlightComputed:!1,highlightChanged:!1}),collection:l,parent:this});f.render();var d=new dv({collection:e.__getLayers(),config:i,propertyView:this});d.render(),n.querySelector("[data-layers-wrapper]").appendChild(d.el),this.props=f,this.layersView=d}},r}(Ac);const vv=gv;var mv=function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}}(),rp=function(){return rp=Object.assign||function(a){for(var r,t=1,e=arguments.length;t +
+
+ +
+
+
+
+
+
').concat(l,`
+
+ + `)},r.prototype.__setValueInput=function(t){var e=this.model,n=this.el,i=e.getDefaultValue(),l=n.querySelector("[data-preview-box]"),f=n.querySelector("[data-preview]");l.style.display=t&&t!==i?"":"none",f.style.backgroundImage=t||e.getDefaultValue()},r.prototype.openAssetManager=function(){var t,e=this,n=(t=this.em)===null||t===void 0?void 0:t.Assets;n==null||n.open({select:function(i,l){var f=(0,_.isString)(i)?i:i.get("src");e.model.upValue(f,{partial:!l}),l&&n.close()},types:["image"],accept:"image/*"})},r}(Ri);var bv=function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}}();const zi=function(a){function r(){return a!==null&&a.apply(this,arguments)||this}return bv(r,a),r.prototype.templateInput=function(t){return""},r.prototype.init=function(){var t=this.model;this.listenTo(t,"change:unit",this.onValueChange),this.listenTo(t,"change:units",this.render)},r.prototype.setValue=function(t){},r.prototype.onRender=function(){var t=this,e=t.ppfx,n=t.model,i=t.el;if(!this.inputInst){var l=n.input;l.ppfx=e,l.render(),i.querySelector(".".concat(e,"fields")).appendChild(l.el),this.input=l.inputEl.get(0),this.inputInst=l}},r.prototype.clearCached=function(){Ri.prototype.clearCached.apply(this,arguments),this.inputInst=null},r}(Ri);var wv=function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}}();const _v=function(a){function r(){return a!==null&&a.apply(this,arguments)||this}return wv(r,a),r.prototype.setValue=function(t){var e;(e=this.inputInst)===null||e===void 0||e.setValue(t,{fromTarget:1,def:this.model.getDefaultValue()})},r.prototype.remove=function(){var t=this;zi.prototype.remove.apply(this,arguments);var e=this.inputInst;return e&&e.remove&&e.remove(),["inputInst","$color"].forEach(function(n){return t[n]=null}),this},r.prototype.__handleChange=function(t,e){this.model.upValue(t,{partial:e})},r.prototype.onRender=function(){var t;if(!this.inputInst){this.__handleChange=this.__handleChange.bind(this);var e=this,n=e.ppfx,i=e.model,l=e.em,f=e.el,d=new gc({target:l,model:i,ppfx:n,onChange:this.__handleChange}).render();f.querySelector(".".concat(n,"fields")).appendChild(d.el),this.input=(t=d.inputEl)===null||t===void 0?void 0:t.get(0),this.inputInst=d}},r}(zi);var Cv=function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}}(),op=function(){return op=Object.assign||function(a){for(var r,t=1,e=arguments.length;t + +
+
+
+ + `)},r.prototype.updateOptions=function(){delete this.input,this.onRender()},r.prototype.onRender=function(){var t=this.pfx,e=this.model,n=e.getOptions();if(!this.input){var i=[];n.forEach(function(f){var d=e.getOptionId(f),v=e.getOptionLabel(d),g=f.style?f.style.replace(/"/g,"""):"",w=g?'style="'.concat(g,'"'):"",T=d.replace(/"/g,""");i.push('"))});var l=this.el.querySelector("#".concat(t,"input-holder"));l.innerHTML=""),this.input=l.firstChild}},r.prototype.__setValueInput=function(t){var e=this.model,n=this.getInputEl(),i=e.getOptions()[0],l=i?e.getOptionId(i):"";n&&(n.value=t||l)},r}(Ri);var Sv=function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}}(),ip=function(){return ip=Object.assign||function(a){for(var r,t=1,e=arguments.length;t')},r.prototype.onRender=function(){var t=this.pfx,e=this.ppfx,n=this.model,i="".concat(e,"radio-item-label"),l=n.getName(),f=n.getOptions(),d="".concat(t,"radio ").concat(t,"radio-").concat(l),v=n.cid;if(!this.input){var g=[];f.forEach(function(T){var V=T.className?"".concat(T.className," ").concat(t,"icon ").concat(i):"",B=n.getOptionId(T),X="".concat(l,"-").concat(B,"-").concat(v),ot=V?"":n.getOptionLabel(B),tt=T.title?'title="'.concat(T.title,'"'):"",At=n.getValue()===B?"checked":"";g.push(` +
+ + +
+ `))});var w=this.el.querySelector(".".concat(e,"field"));w.innerHTML='
').concat(g.join(""),"
"),this.input=w.firstChild}},r.prototype.__setValueInput=function(t){var e,n=this.model,i=t||n.getDefaultValue(),l=(e=this.getInputEl())===null||e===void 0?void 0:e.querySelector('[value="'.concat(i,'"]'));l&&(l.checked=!0)},r}(jd);var Ev=function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}}(),xa=function(){return xa=Object.assign||function(a){for(var r,t=1,e=arguments.length;t + + + `)},r.prototype.getSliderEl=function(){return this.slider||(this.slider=this.el.querySelector("input[type=range]")),this.slider},r.prototype.inputValueChanged=function(){this.model.upValue(this.getSliderEl().value)},r.prototype.inputValueChangedSoft=function(){this.model.upValue(this.getSliderEl().value,{partial:!0})},r.prototype.setValue=function(t){var e=this.model,n=e.parseValue(t);this.getSliderEl().value=t===""?e.getDefaultValue():parseFloat(n.value),zi.prototype.setValue.apply(this,arguments)},r.prototype.onRender=function(){zi.prototype.onRender.apply(this,arguments),this.model.get("showInput")||(this.inputInst.el.style.display="none")},r.prototype.clearCached=function(){zi.prototype.clearCached.apply(this,arguments),delete this.slider},r}(zi),Ef=S.FE.extend(Ot).extend({extendViewApi:1,init:function(){var a=this.opts,r=this.em,t=a.module||(r==null?void 0:r.get("StyleManager"));t&&(t.__listenAdd(this,t.events.propertyAdd),t.__listenRemove(this,t.events.propertyRemove))},types:[{id:"stack",model:tv,view:vv,isType:function(a){if(a&&a.type=="stack")return a}},{id:"composite",model:Ol,view:Ac,isType:function(a){if(a&&a.type=="composite")return a}},{id:"file",model:An,view:yv,isType:function(a){if(a&&a.type=="file")return a}},{id:"color",model:An,view:_v,isType:function(a){if(a&&a.type=="color")return a}},{id:"select",model:kf,view:jd,isType:function(a){if(a&&a.type=="select")return a}},{id:"radio",model:Ov,view:kv,isType:function(a){if(a&&a.type=="radio")return a}},{id:"slider",model:Av,view:Mv,isType:function(a){if(a&&a.type=="slider")return a}},{id:"integer",model:sp,view:zi,isType:function(a){if(a&&a.type=="integer")return a}},{id:"number",model:sp,view:zi,isType:function(a){if(a&&a.type=="number")return a}},{id:"base",model:An,view:Ri,isType:function(a){return a.type="base",a}}]});var Lv=function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}}(),cp=function(){return cp=Object.assign||function(a){for(var r,t=1,e=arguments.length;t +
$',`
+
',`
+ + `],[` +
+
$',`
+
',`
+
+ `])),d,d,f,d,i)},r.prototype.events=function(){return{"click [data-sector-title]":"toggle"}},r.prototype.updateOpen=function(){var t=this,e=t.$el,n=t.model,i=t.pfx,l=n.isOpen();e[l?"addClass":"removeClass"]("".concat(i,"open")),this.getPropertiesEl().style.display=l?"":"none"},r.prototype.updateVisibility=function(){this.el.style.display=this.model.isVisible()?"":"none"},r.prototype.getPropertiesEl=function(){var t=this.$el,e=this.pfx;return t.find(".".concat(e,"properties")).get(0)},r.prototype.toggle=function(){var t=this.model;t.setOpen(!t.get("open"))},r.prototype.renderProperties=function(){var t=this.model,e=this.config,n=t.get("properties");if(n){var i=new Tf({collection:n,config:e});this.$el.append(i.render().el)}},r.prototype.render=function(){var t=this,e=t.pfx,n=t.model,i=t.$el,l=n.getId(),f=n.getName();return i.html(this.template({pfx:e,label:f})),this.renderProperties(),i.attr("class","".concat(e,"sector ").concat(e,"sector__").concat(l," no-select")),this.updateOpen(),this},r}(S.G7);const Wv=Uv;var Ld,$v=function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}}(),qv=function(a){function r(t){t===void 0&&(t={});var e=a.call(this,t)||this,n=t.module,i=t.config,l=e.collection;return e.pfx=(i==null?void 0:i.stylePrefix)||"",e.ppfx=(i==null?void 0:i.pStylePrefix)||"",e.config=i,e.module=n,e.listenTo(l,"add",e.addTo),e.listenTo(l,"reset",e.render),e}return $v(r,a),r.prototype.remove=function(){var t=this;return S.G7.prototype.remove.apply(this,arguments),["config","module","em"].forEach(function(e){return t[e]={}}),this},r.prototype.addTo=function(t,e,n){n===void 0&&(n={}),this.addToCollection(t,null,n)},r.prototype.addToCollection=function(t,e,n){n===void 0&&(n={});var i=this.config,l=this.el,f=e||l,d=new Wv({model:t,config:i}).render().el;return(0,$e.$Q)(f,d,n.at),d},r.prototype.render=function(){var t=this,e=this,n=e.$el,i=e.pfx,l=e.ppfx;n.empty();var f=document.createDocumentFragment();return this.collection.each(function(d){return t.addToCollection(d,f)}),n.append(f),n.addClass("".concat(i,"sectors ").concat(l,"one-bg ").concat(l,"two-color")),this},r}(S.G7);const Gv=qv;var Kv=function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}a(r,t),r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}}(),Oa=function(){return Oa=Object.assign||function(a){for(var r,t=1,e=arguments.length;t0&&n[n.length-1])||g[0]!==6&&g[0]!==2)){l=0;continue}if(g[0]===3&&(!n||g[1]>n[0]&&g[1]=e.getStepsBeforeSave()&&this.store().catch(function(i){return t.logError(i)})},r.prototype.loadModule=function(t){var e=this.config,n=new t(this),i=n.name.charAt(0).toLowerCase()+n.name.slice(1),l=(0,_.isUndefined)(e[i])?e[n.name]:e[i],f=l===!0?{}:l||{};return f.pStylePrefix=e.pStylePrefix||"",(0,_.isUndefined)(l)||l||(f._disable=1),n.storageKey&&n.store&&n.load&&this.storables.push(n),f.em=this,n.init(xr({},f)),!n.private&&this.set(n.name,n),n.onLoad&&this.toLoad.push(n),this.modules.push(n),this},r.prototype.tsLoadModule=function(t){var e=new(t.default||t)(this);return e.storageKey&&e.store&&e.load&&this.storables.push(e),!e.private&&this.set(e.name,e),e.onLoad&&this.toLoad.push(e),this.modules.push(e),this},r.prototype.init=function(t,e){e===void 0&&(e={}),this.destroyed&&(this.initialize(e),this.destroyed=!1),this.set("Editor",t)},r.prototype.getEditor=function(){return this.get("Editor")},r.prototype.handleUpdates=function(t,e,n){var i=this;n===void 0&&(n={}),this.__skip||n.temporary||n.noCount||n.avoidStore||!this.get("ready")||(this.timedInterval&&clearTimeout(this.timedInterval),this.timedInterval=setTimeout(function(){var l=i.getDirtyCount()||0,f=(n.unset,sm(n,["unset"]));i.set("changesCount",l+1,f)},0))},r.prototype.changesUp=function(t){this.handleUpdates(0,0,t)},r.prototype.componentHovered=function(t,e,n){var i=this.previous("componentHovered");i&&this.trigger("component:unhovered",i,n),e&&this.trigger("component:hovered",e,n)},r.prototype.getSelected=function(){return this.selected.lastComponent()},r.prototype.getSelectedAll=function(){return this.selected.allComponents()},r.prototype.setSelected=function(t,e){var n=this;e===void 0&&(e={});var i=e.event,l=i&&(i.ctrlKey||i.metaKey),f=(i||{}).shiftKey,d=((0,_.isArray)(t)?t:[t]).map(function(T){return(0,D.getModel)(T,lt.default)}),v=this.getSelectedAll(),g=this.getConfig().multipleSelection,w=(0,_.isArray)(t);w&&this.removeSelected(v.filter(function(T){return!(0,_.contains)(d,T)})),d.forEach(function(T){var V=(0,D.getModel)(T,void 0);if(V&&(n.trigger("component:select:before",V,e),!V.get("selectable")||e.abort)){if(!e.useValid)return;for(var B=V.parent();B&&!B.get("selectable");)B=B.parent();V=B}if(l&&g)return n.toggleSelected(V);if(f&&g){n.clearSelection(n.get("Canvas").getWindow());var X,ot,tt=V.collection,At=V.index();if(n.getSelectedAll().forEach(function(Ft){var de=Ft.collection,_e=Ft.index();de===tt&&(_eAt&&(ot=(0,_.isUndefined)(ot)?_e:Math.min(ot,_e)))}),!(0,_.isUndefined)(X))for(;X!==At;)n.addSelected(tt.at(X)),X++;if(!(0,_.isUndefined)(ot))for(;ot!==At;)n.addSelected(tt.at(ot)),ot--;return n.addSelected(V)}!w&&n.removeSelected(v.filter(function(Ft){return Ft!==V})),n.addSelected(V,e)})},r.prototype.addSelected=function(t,e){var n=this;e===void 0&&(e={});var i=(0,D.getModel)(t,lt.default);((0,_.isArray)(i)?i:[i]).forEach(function(l){var f=n.selected;l&&l.get("selectable")&&!l.parents().some(function(d){return f.hasComponent(d)})&&(e.forceChange&&n.removeSelected(l,e),f.allComponents().filter(function(d){return(0,_.contains)(d.parents(),l)}).forEach(function(d){return n.removeSelected(d,e)}),f.addComponent(l,e),l&&n.trigger("component:select",l,e))})},r.prototype.removeSelected=function(t,e){e===void 0&&(e={}),this.selected.removeComponent((0,D.getModel)(t,lt.default),e)},r.prototype.toggleSelected=function(t,e){var n=this;e===void 0&&(e={});var i=(0,D.getModel)(t,lt.default);((0,_.isArray)(i)?i:[i]).forEach(function(l){n.selected.hasComponent(l)?n.removeSelected(l,e):n.addSelected(l,e)})},r.prototype.setHovered=function(t,e){if(e===void 0&&(e={}),!t)return this.set("componentHovered","");var n="component:hover",i=(0,D.getModel)(t,void 0);if(i){if(e.forceChange&&this.set("componentHovered",""),this.trigger("".concat(n,":before"),i,e),!i.get("hoverable")){if(!e.useValid||e.abort)return;for(var l=i&&i.parent();l&&!l.get("hoverable");)l=l.parent();i=l}e.abort||(this.set("componentHovered",i,e),this.trigger(n,i,e))}},r.prototype.getHovered=function(){return this.get("componentHovered")},r.prototype.setComponents=function(t,e){return e===void 0&&(e={}),this.get("DomComponents").setComponents(t,e)},r.prototype.getComponents=function(){var t=this.get("DomComponents"),e=this.get("CodeManager");if(t&&e){var n=t.getComponents();return e.getCode(n,"json")}},r.prototype.setStyle=function(t,e){e===void 0&&(e={});var n=this.get("CssComposer");return n.clear(e),n.getAll().add(t,e),this},r.prototype.addStyle=function(t,e){e===void 0&&(e={});var n=this.getStyle().add(t,e);return(0,_.isArray)(n)?n:[n]},r.prototype.getStyle=function(){return this.Css.getAll()},r.prototype.setState=function(t){return this.set("state",t),this},r.prototype.getState=function(){return this.get("state")||""},r.prototype.getHtml=function(t){t===void 0&&(t={});var e=this.config,n=e.optsHtml,i=e.jsInHtml?this.getJs(t):"",l=t.component||this.get("DomComponents").getComponent(),f=l?this.get("CodeManager").getCode(l,"html",xr(xr({},n),t)):"";return f+=i?"