diff --git a/dist/css/grapes.min.css b/dist/css/grapes.min.css index b109a706c9..ca38e7dc4a 100644 --- a/dist/css/grapes.min.css +++ b/dist/css/grapes.min.css @@ -1 +1 @@ -.sp-container{position:absolute;top:0;left:0;display:inline-block;z-index:9999994;overflow:hidden}.sp-container.sp-flat{position:relative}.sp-container,.sp-container *{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}.sp-top{position:relative;width:100%;display:inline-block}.sp-top-inner{position:absolute;top:0;left:0;bottom:0;right:0}.sp-color{position:absolute;top:0;left:0;bottom:0;right:20%}.sp-hue{position:absolute;top:0;right:0;bottom:0;left:84%;height:100%}.sp-clear-enabled .sp-hue{top:33px;height:77.5%}.sp-fill{padding-top:80%}.sp-sat,.sp-val{position:absolute;top:0;left:0;right:0;bottom:0}.sp-alpha-enabled .sp-top{margin-bottom:18px}.sp-alpha-enabled .sp-alpha{display:block}.sp-alpha-handle{position:absolute;top:-4px;bottom:-4px;width:6px;left:50%;cursor:pointer;border:1px solid #000;background:#fff;opacity:.8}.sp-alpha{display:none;position:absolute;bottom:-14px;right:0;left:0;height:8px}.sp-alpha-inner{border:solid 1px #333}.sp-clear{display:none}.sp-clear.sp-clear-display{background-position:center}.sp-clear-enabled .sp-clear{display:block;position:absolute;top:0px;right:0;bottom:0;left:84%;height:28px}.sp-container,.sp-replacer,.sp-preview,.sp-dragger,.sp-slider,.sp-alpha,.sp-clear,.sp-alpha-handle,.sp-container.sp-dragging .sp-input,.sp-container button{-webkit-user-select:none;-moz-user-select:-moz-none;-o-user-select:none;user-select:none}.sp-container.sp-input-disabled .sp-input-container{display:none}.sp-container.sp-buttons-disabled .sp-button-container{display:none}.sp-container.sp-palette-buttons-disabled .sp-palette-button-container{display:none}.sp-palette-only .sp-picker-container{display:none}.sp-palette-disabled .sp-palette-container{display:none}.sp-initial-disabled .sp-initial{display:none}.sp-sat{background-image:-webkit-gradient(linear, 0 0, 100% 0, from(#FFF), to(rgba(204, 154, 129, 0)));background-image:-webkit-linear-gradient(left, #FFF, rgba(204, 154, 129, 0));background-image:-moz-linear-gradient(left, #fff, rgba(204, 154, 129, 0));background-image:-o-linear-gradient(left, #fff, rgba(204, 154, 129, 0));background-image:-ms-linear-gradient(left, #fff, rgba(204, 154, 129, 0));background-image:linear-gradient(to right, #fff, rgba(204, 154, 129, 0));-ms-filter:"progid:DXImageTransform.Microsoft.gradient(GradientType = 1, startColorstr=#FFFFFFFF, endColorstr=#00CC9A81)";filter:progid:DXImageTransform.Microsoft.gradient(GradientType = 1, startColorstr="#FFFFFFFF", endColorstr="#00CC9A81")}.sp-val{background-image:-webkit-gradient(linear, 0 100%, 0 0, from(#000000), to(rgba(204, 154, 129, 0)));background-image:-webkit-linear-gradient(bottom, #000000, rgba(204, 154, 129, 0));background-image:-moz-linear-gradient(bottom, #000, rgba(204, 154, 129, 0));background-image:-o-linear-gradient(bottom, #000, rgba(204, 154, 129, 0));background-image:-ms-linear-gradient(bottom, #000, rgba(204, 154, 129, 0));background-image:linear-gradient(to top, #000, rgba(204, 154, 129, 0));-ms-filter:"progid:DXImageTransform.Microsoft.gradient(startColorstr=#00CC9A81, endColorstr=#FF000000)";filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#00CC9A81", endColorstr="#FF000000")}.sp-hue{background:-moz-linear-gradient(top, #ff0000 0%, #ffff00 17%, #00ff00 33%, #00ffff 50%, #0000ff 67%, #ff00ff 83%, #ff0000 100%);background:-ms-linear-gradient(top, #ff0000 0%, #ffff00 17%, #00ff00 33%, #00ffff 50%, #0000ff 67%, #ff00ff 83%, #ff0000 100%);background:-o-linear-gradient(top, #ff0000 0%, #ffff00 17%, #00ff00 33%, #00ffff 50%, #0000ff 67%, #ff00ff 83%, #ff0000 100%);background:-webkit-gradient(linear, left top, left bottom, from(#ff0000), color-stop(0.17, #ffff00), color-stop(0.33, #00ff00), color-stop(0.5, #00ffff), color-stop(0.67, #0000ff), color-stop(0.83, #ff00ff), to(#ff0000));background:-webkit-linear-gradient(top, #ff0000 0%, #ffff00 17%, #00ff00 33%, #00ffff 50%, #0000ff 67%, #ff00ff 83%, #ff0000 100%);background:linear-gradient(to bottom, #ff0000 0%, #ffff00 17%, #00ff00 33%, #00ffff 50%, #0000ff 67%, #ff00ff 83%, #ff0000 100%)}.sp-1{height:17%;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#ff0000", endColorstr="#ffff00")}.sp-2{height:16%;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#ffff00", endColorstr="#00ff00")}.sp-3{height:17%;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#00ff00", endColorstr="#00ffff")}.sp-4{height:17%;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#00ffff", endColorstr="#0000ff")}.sp-5{height:16%;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#0000ff", endColorstr="#ff00ff")}.sp-6{height:17%;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#ff00ff", endColorstr="#ff0000")}.sp-hidden{display:none !important}.sp-cf:before,.sp-cf:after{content:"";display:table}.sp-cf:after{clear:both}@media(max-device-width: 480px){.sp-color{right:40%}.sp-hue{left:63%}.sp-fill{padding-top:60%}}.sp-dragger{border-radius:5px;height:5px;width:5px;border:1px solid #fff;background:#000;cursor:pointer;position:absolute;top:0;left:0}.sp-slider{position:absolute;top:0;cursor:pointer;height:3px;left:-1px;right:-1px;border:1px solid #000;background:#fff;opacity:.8}.sp-container{border-radius:0;background-color:#ececec;border:solid 1px #f0c49b;padding:0}.sp-container,.sp-container button,.sp-container input,.sp-color,.sp-hue,.sp-clear{font:normal 12px "Lucida Grande","Lucida Sans Unicode","Lucida Sans",Geneva,Verdana,sans-serif;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-ms-box-sizing:border-box;box-sizing:border-box}.sp-top{margin-bottom:3px}.sp-color,.sp-hue,.sp-clear{border:solid 1px #666}.sp-input-container{float:right;width:100px;margin-bottom:4px}.sp-initial-disabled .sp-input-container{width:100%}.sp-input{font-size:12px !important;border:1px inset;padding:4px 5px;margin:0;width:100%;background:transparent;border-radius:3px;color:#222}.sp-input:focus{border:1px solid orange}.sp-input.sp-validation-error{border:1px solid red;background:#fdd}.sp-picker-container,.sp-palette-container{float:left;position:relative;padding:10px;padding-bottom:300px;margin-bottom:-290px}.sp-picker-container{width:172px;border-left:solid 1px #fff}.sp-palette-container{border-right:solid 1px #ccc}.sp-palette-only .sp-palette-container{border:0}.sp-palette .sp-thumb-el{display:block;position:relative;float:left;width:24px;height:15px;margin:3px;cursor:pointer;border:solid 2px transparent}.sp-palette .sp-thumb-el:hover,.sp-palette .sp-thumb-el.sp-thumb-active{border-color:orange}.sp-thumb-el{position:relative}.sp-initial{float:left;border:solid 1px #333}.sp-initial span{width:30px;height:25px;border:none;display:block;float:left;margin:0}.sp-initial .sp-clear-display{background-position:center}.sp-palette-button-container,.sp-button-container{float:right}.sp-replacer{margin:0;overflow:hidden;cursor:pointer;padding:4px;display:inline-block;border:solid 1px #91765d;background:#eee;color:#333;vertical-align:middle}.sp-replacer:hover,.sp-replacer.sp-active{border-color:#f0c49b;color:#111}.sp-replacer.sp-disabled{cursor:default;border-color:silver;color:silver}.sp-dd{padding:2px 0;height:16px;line-height:16px;float:left;font-size:10px}.sp-preview{position:relative;width:25px;height:20px;border:solid 1px #222;margin-right:5px;float:left;z-index:0}.sp-palette{max-width:220px}.sp-palette .sp-thumb-el{width:16px;height:16px;margin:2px 1px;border:solid 1px #d0d0d0}.sp-container{padding-bottom:0}.sp-container button{background-color:#eee;background-image:-webkit-linear-gradient(top, #eeeeee, #cccccc);background-image:-moz-linear-gradient(top, #eeeeee, #cccccc);background-image:-ms-linear-gradient(top, #eeeeee, #cccccc);background-image:-o-linear-gradient(top, #eeeeee, #cccccc);background-image:linear-gradient(to bottom, #eeeeee, #cccccc);border:1px solid #ccc;border-bottom:1px solid #bbb;border-radius:3px;color:#333;font-size:14px;line-height:1;padding:5px 4px;text-align:center;text-shadow:0 1px 0 #eee;vertical-align:middle}.sp-container button:hover{background-color:#ddd;background-image:-webkit-linear-gradient(top, #dddddd, #bbbbbb);background-image:-moz-linear-gradient(top, #dddddd, #bbbbbb);background-image:-ms-linear-gradient(top, #dddddd, #bbbbbb);background-image:-o-linear-gradient(top, #dddddd, #bbbbbb);background-image:linear-gradient(to bottom, #dddddd, #bbbbbb);border:1px solid #bbb;border-bottom:1px solid #999;cursor:pointer;text-shadow:0 1px 0 #ddd}.sp-container button:active{border:1px solid #aaa;border-bottom:1px solid #888;-webkit-box-shadow:inset 0 0 5px 2px #aaa,0 1px 0 0 #eee;-moz-box-shadow:inset 0 0 5px 2px #aaa,0 1px 0 0 #eee;-ms-box-shadow:inset 0 0 5px 2px #aaa,0 1px 0 0 #eee;-o-box-shadow:inset 0 0 5px 2px #aaa,0 1px 0 0 #eee;box-shadow:inset 0 0 5px 2px #aaa,0 1px 0 0 #eee}.sp-cancel{font-size:11px;color:#d93f3f !important;margin:0;padding:2px;margin-right:5px;vertical-align:middle;text-decoration:none}.sp-cancel:hover{color:#d93f3f !important;text-decoration:underline}.sp-palette span:hover,.sp-palette span.sp-thumb-active{border-color:#000}.sp-preview,.sp-alpha,.sp-thumb-el{position:relative;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==)}.sp-preview-inner,.sp-alpha-inner,.sp-thumb-inner{display:block;position:absolute;top:0;left:0;bottom:0;right:0}.sp-palette .sp-thumb-inner{background-position:50% 50%;background-repeat:no-repeat}.sp-palette .sp-thumb-light.sp-thumb-active .sp-thumb-inner{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAIVJREFUeNpiYBhsgJFMffxAXABlN5JruT4Q3wfi/0DsT64h8UD8HmpIPCWG/KemIfOJCUB+Aoacx6EGBZyHBqI+WsDCwuQ9mhxeg2A210Ntfo8klk9sOMijaURm7yc1UP2RNCMbKE9ODK1HM6iegYLkfx8pligC9lCD7KmRof0ZhjQACDAAceovrtpVBRkAAAAASUVORK5CYII=)}.sp-palette .sp-thumb-dark.sp-thumb-active .sp-thumb-inner{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAadEVYdFNvZnR3YXJlAFBhaW50Lk5FVCB2My41LjEwMPRyoQAAAMdJREFUOE+tkgsNwzAMRMugEAahEAahEAZhEAqlEAZhEAohEAYh81X2dIm8fKpEspLGvudPOsUYpxE2BIJCroJmEW9qJ+MKaBFhEMNabSy9oIcIPwrB+afvAUFoK4H0tMaQ3XtlrggDhOVVMuT4E5MMG0FBbCEYzjYT7OxLEvIHQLY2zWwQ3D+9luyOQTfKDiFD3iUIfPk8VqrKjgAiSfGFPecrg6HN6m/iBcwiDAo7WiBeawa+Kwh7tZoSCGLMqwlSAzVDhoK+6vH4G0P5wdkAAAAASUVORK5CYII=)}.sp-clear-display{background-repeat:no-repeat;background-position:center;background-image:url(data:image/gif;base64,R0lGODlhFAAUAPcAAAAAAJmZmZ2dnZ6enqKioqOjo6SkpKWlpaampqenp6ioqKmpqaqqqqurq/Hx8fLy8vT09PX19ff39/j4+Pn5+fr6+vv7+wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEAAP8ALAAAAAAUABQAAAihAP9FoPCvoMGDBy08+EdhQAIJCCMybCDAAYUEARBAlFiQQoMABQhKUJBxY0SPICEYHBnggEmDKAuoPMjS5cGYMxHW3IiT478JJA8M/CjTZ0GgLRekNGpwAsYABHIypcAgQMsITDtWJYBR6NSqMico9cqR6tKfY7GeBCuVwlipDNmefAtTrkSzB1RaIAoXodsABiZAEFB06gIBWC1mLVgBa0AAOw==)}.gjs-is__grab,.gjs-is__grab *{cursor:grab !important}.gjs-is__grabbing,.gjs-is__grabbing *{-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;cursor:grabbing !important}.gjs-one-bg{background-color:var(--gjs-primary-color)}.gjs-one-color{color:var(--gjs-primary-color)}.gjs-one-color-h:hover{color:var(--gjs-primary-color)}.gjs-two-bg{background-color:var(--gjs-secondary-color)}.gjs-two-color{color:var(--gjs-secondary-color)}.gjs-two-color-h:hover{color:var(--gjs-secondary-color)}.gjs-three-bg{background-color:var(--gjs-tertiary-color)}.gjs-three-color{color:var(--gjs-tertiary-color)}.gjs-three-color-h:hover{color:var(--gjs-tertiary-color)}.gjs-four-bg{background-color:var(--gjs-quaternary-color)}.gjs-four-color{color:var(--gjs-quaternary-color)}.gjs-four-color-h:hover{color:var(--gjs-quaternary-color)}.gjs-danger-bg{background-color:var(--gjs-color-red)}.gjs-danger-color{color:var(--gjs-color-red)}.gjs-danger-color-h:hover{color:var(--gjs-color-red)}.gjs-bg-main,.gjs-sm-colorp-c,.gjs-off-prv{background-color:var(--gjs-main-color)}.gjs-color-main,.gjs-sm-stack #gjs-sm-add,.gjs-off-prv{color:var(--gjs-font-color);fill:var(--gjs-font-color)}.gjs-color-active{color:var(--gjs-font-color-active);fill:var(--gjs-font-color-active)}.gjs-color-warn{color:var(--gjs-color-warn);fill:var(--gjs-color-warn)}.gjs-color-hl{color:var(--gjs-color-highlight);fill:var(--gjs-color-highlight)}.gjs-invis-invis,.gjs-clm-tags #gjs-clm-new,.gjs-no-app{background-color:transparent;border:none;color:inherit}.gjs-no-app{height:10px}.gjs-test::btn{color:"#fff"}.opac50{opacity:.5;filter:alpha(opacity=50)}.gjs-checker-bg,.gjs-field-colorp-c,.checker-bg,.gjs-sm-layer-preview{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==")}.gjs-no-user-select,.gjs-rte-toolbar,.gjs-layer-name,.gjs-grabbing,.gjs-grabbing *{-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none}.gjs-no-pointer-events,.gjs-margin-v-el,.gjs-padding-v-el,.gjs-fixedmargin-v-el,.gjs-fixedpadding-v-el,.gjs-resizer-c{pointer-events:none}.gjs-bdrag{pointer-events:none !important;position:absolute !important;z-index:10 !important;width:auto}.gjs-drag-helper{background-color:var(--gjs-color-blue) !important;pointer-events:none !important;position:absolute !important;z-index:10 !important;transform:scale(0.3) !important;transform-origin:top left !important;-webkit-transform-origin:top left !important;margin:15px !important;transition:none !important;outline:none !important}.gjs-grabbing,.gjs-grabbing *{cursor:grabbing !important;cursor:-webkit-grabbing !important}.gjs-grabbing{overflow:hidden}.gjs-off-prv{position:relative;z-index:10;padding:5px;cursor:pointer}.gjs-editor-cont ::-webkit-scrollbar-track{background:var(--gjs-secondary-dark-color)}.gjs-editor-cont ::-webkit-scrollbar-thumb{background-color:rgba(255,255,255,.2)}.gjs-editor-cont ::-webkit-scrollbar{width:8px}:root{--gjs-main-color: #444;--gjs-primary-color: #444;--gjs-secondary-color: #ddd;--gjs-tertiary-color: #804f7b;--gjs-quaternary-color: #d278c9;--gjs-font-color: #ddd;--gjs-font-color-active: #f8f8f8;--gjs-main-dark-color: rgba(0, 0, 0, 0.2);--gjs-secondary-dark-color: rgba(0, 0, 0, 0.1);--gjs-main-light-color: rgba(255, 255, 255, 0.1);--gjs-secondary-light-color: rgba(255, 255, 255, 0.7);--gjs-soft-light-color: rgba(255, 255, 255, 0.015);--gjs-color-blue: #3b97e3;--gjs-color-red: #dd3636;--gjs-color-yellow: #ffca6f;--gjs-color-green: #62c462;--gjs-left-width: 15%;--gjs-color-highlight: #71b7f1;--gjs-color-warn: #ffca6f;--gjs-handle-margin: -5px;--gjs-light-border: rgba(255, 255, 255, 0.05);--gjs-arrow-color: rgba(255, 255, 255, 0.7);--gjs-dark-text-shadow: rgba(0, 0, 0, 0.2);--gjs-color-input-padding: 22px;--gjs-input-padding: 5px;--gjs-padding-elem-classmanager: 5px 6px;--gjs-upload-padding: 150px 10px;--gjs-animation-duration: 0.2s;--gjs-main-font: Helvetica, sans-serif;--gjs-font-size: 0.75rem;--gjs-placeholder-background-color: var(--gjs-color-green);--gjs-canvas-top: 40px;--gjs-flex-item-gap: 5px}.clear{clear:both}.no-select,.gjs-clm-tags #gjs-clm-close,.gjs-category-title,.gjs-layer-title,.gjs-block-category .gjs-title,.gjs-sm-sector-title,.gjs-com-no-select,.gjs-com-no-select img{-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none}.gjs-no-touch-actions{touch-action:none}.gjs-disabled{-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;opacity:.5;filter:alpha(opacity=50)}.gjs-editor{font-family:var(--gjs-main-font);font-size:var(--gjs-font-size);position:relative;box-sizing:border-box;height:100%}.gjs-freezed,.gjs-freezed{opacity:.5;filter:alpha(opacity=50);pointer-events:none}.gjs-traits-label{border-bottom:1px solid var(--gjs-main-dark-color);font-weight:lighter;margin-bottom:5px;padding:10px;text-align:left}.gjs-label-wrp{width:30%;min-width:30%}.gjs-field-wrp{flex-grow:1}.gjs-caret{width:17px;height:17px;min-width:17px;transform:rotate(-90deg)}.gjs-trt-header{font-weight:lighter;padding:10px}.gjs-trt-trait{display:flex;justify-content:flex-start;padding:5px 10px;font-weight:lighter;align-items:center;text-align:left}.gjs-trt-traits{font-size:var(--gjs-font-size)}.gjs-trt-trait .gjs-label{text-align:left;text-overflow:ellipsis;overflow:hidden}.gjs-guide-info{position:absolute}.gjs-guide-info__content{position:absolute;height:100%;display:flex;width:100%;padding:5px}.gjs-guide-info__line{position:relative;margin:auto}.gjs-guide-info__line::before,.gjs-guide-info__line::after{content:"";display:block;position:absolute;background-color:inherit}.gjs-guide-info__y{padding:0 5px}.gjs-guide-info__y .gjs-guide-info__content{justify-content:center}.gjs-guide-info__y .gjs-guide-info__line{width:100%;height:1px}.gjs-guide-info__y .gjs-guide-info__line::before,.gjs-guide-info__y .gjs-guide-info__line::after{width:1px;height:10px;top:0;bottom:0;left:0;margin:auto}.gjs-guide-info__y .gjs-guide-info__line::after{left:auto;right:0}.gjs-guide-info__x{padding:5px 0}.gjs-guide-info__x .gjs-guide-info__content{align-items:center}.gjs-guide-info__x .gjs-guide-info__line{height:100%;width:1px}.gjs-guide-info__x .gjs-guide-info__line::before,.gjs-guide-info__x .gjs-guide-info__line::after{width:10px;height:1px;left:0;right:0;top:0;margin:auto;transform:translateX(-50%)}.gjs-guide-info__x .gjs-guide-info__line::after{top:auto;bottom:0}.gjs-badge{white-space:nowrap}.gjs-badge__icon{vertical-align:middle;display:inline-block;width:15px;height:15px}.gjs-badge__icon svg{fill:currentColor}.gjs-badge__name{display:inline-block;vertical-align:middle}.gjs-frame-wrapper{position:absolute;width:100%;height:100%;left:0;right:0;margin:auto}.gjs-frame-wrapper--anim{transition:width .35s ease,height .35s ease}.gjs-frame-wrapper__top{transform:translateY(-100%) translateX(-50%);display:flex;padding:5px 0;position:absolute;width:100%;left:50%;top:0}.gjs-frame-wrapper__top-r{margin-left:auto}.gjs-frame-wrapper__left{position:absolute;left:0;transform:translateX(-100%) translateY(-50%);height:100%;top:50%}.gjs-frame-wrapper__bottom{position:absolute;bottom:0;transform:translateY(100%) translateX(-50%);width:100%;left:50%}.gjs-frame-wrapper__right{position:absolute;right:0;transform:translateX(100%) translateY(-50%);height:100%;top:50%}.gjs-frame-wrapper__icon{width:24px;cursor:pointer}.gjs-frame-wrapper__icon>svg{fill:currentColor}.gjs-padding-v-top,.gjs-fixedpadding-v-top{width:100%;top:0;left:0}.gjs-padding-v-right,.gjs-fixedpadding-v-right{right:0}.gjs-padding-v-bottom,.gjs-fixedpadding-v-bottom{width:100%;left:0;bottom:0}.gjs-padding-v-left,.gjs-fixedpadding-v-left{left:0}.gjs-cv-canvas{box-sizing:border-box;width:calc(100% - var(--gjs-left-width));height:calc(100% - var(--gjs-canvas-top));bottom:0;overflow:hidden;z-index:1;position:absolute;left:0;top:var(--gjs-canvas-top)}.gjs-cv-canvas-bg{background-color:rgba(0,0,0,.15)}.gjs-cv-canvas.gjs-cui{width:100%;height:100%;top:0}.gjs-cv-canvas.gjs-is__grab .gjs-cv-canvas__frames,.gjs-cv-canvas.gjs-is__grabbing .gjs-cv-canvas__frames{pointer-events:none}.gjs-cv-canvas__frames{position:absolute;top:0;left:0;width:100%;height:100%}.gjs-cv-canvas__spots{position:absolute;pointer-events:none;z-index:1}.gjs-cv-canvas .gjs-ghost{display:none;pointer-events:none;background-color:#5b5b5b;border:2px dashed #ccc;position:absolute;z-index:10;opacity:.55;filter:alpha(opacity=55)}.gjs-cv-canvas .gjs-highlighter,.gjs-cv-canvas .gjs-highlighter-sel{position:absolute;outline:1px solid var(--gjs-color-blue);outline-offset:-1px;pointer-events:none;width:100%;height:100%}.gjs-cv-canvas .gjs-highlighter-warning{outline:3px solid var(--gjs-color-yellow)}.gjs-cv-canvas .gjs-highlighter-sel{outline:2px solid var(--gjs-color-blue);outline-offset:-2px}.gjs-cv-canvas #gjs-tools,.gjs-cv-canvas .gjs-tools{width:100%;height:100%;position:absolute;top:0;left:0;outline:none;z-index:1}.gjs-cv-canvas *{box-sizing:border-box}.gjs-frame{outline:medium none;height:100%;width:100%;border:none;margin:auto;display:block;transition:width .35s ease,height .35s ease;position:absolute;top:0;bottom:0;left:0;right:0}.gjs-toolbar{position:absolute;background-color:var(--gjs-color-blue);white-space:nowrap;color:#fff;z-index:10;top:0;left:0}.gjs-toolbar-item{width:26px;padding:5px;cursor:pointer;display:inline-block}.gjs-toolbar-item svg{fill:currentColor;vertical-align:middle}.gjs-resizer-c{position:absolute;left:0;top:0;width:100%;height:100%;z-index:9}.gjs-margin-v-el,.gjs-padding-v-el,.gjs-fixedmargin-v-el,.gjs-fixedpadding-v-el{opacity:.1;filter:alpha(opacity=10);position:absolute;background-color:#ff0}.gjs-fixedmargin-v-el,.gjs-fixedpadding-v-el{opacity:.2;filter:alpha(opacity=20)}.gjs-padding-v-el,.gjs-fixedpadding-v-el{background-color:navy}.gjs-resizer-h{pointer-events:all;position:absolute;border:3px solid var(--gjs-color-blue);width:10px;height:10px;background-color:#fff;margin:var(--gjs-handle-margin)}.gjs-resizer-h-tl{top:0;left:0;cursor:nwse-resize}.gjs-resizer-h-tr{top:0;right:0;cursor:nesw-resize}.gjs-resizer-h-tc{top:0;margin:var(--gjs-handle-margin) auto;left:0;right:0;cursor:ns-resize}.gjs-resizer-h-cl{left:0;margin:auto var(--gjs-handle-margin);top:0;bottom:0;cursor:ew-resize}.gjs-resizer-h-cr{margin:auto var(--gjs-handle-margin);top:0;bottom:0;right:0;cursor:ew-resize}.gjs-resizer-h-bl{bottom:0;left:0;cursor:nesw-resize}.gjs-resizer-h-bc{bottom:0;margin:var(--gjs-handle-margin) auto;left:0;right:0;cursor:ns-resize}.gjs-resizer-h-br{bottom:0;right:0;cursor:nwse-resize}.gjs-pn-panel .gjs-resizer-h{background-color:rgba(0,0,0,.2);border:none;opacity:0;transition:opacity .25s}.gjs-pn-panel .gjs-resizer-h:hover{opacity:1}.gjs-pn-panel .gjs-resizer-h-tc,.gjs-pn-panel .gjs-resizer-h-bc{margin:0 auto;width:100%}.gjs-pn-panel .gjs-resizer-h-cr,.gjs-pn-panel .gjs-resizer-h-cl{margin:auto 0;height:100%}.gjs-resizing .gjs-highlighter,.gjs-resizing .gjs-badge{display:none !important}.gjs-resizing-tl *{cursor:nwse-resize !important}.gjs-resizing-tr *{cursor:nesw-resize !important}.gjs-resizing-tc *{cursor:ns-resize !important}.gjs-resizing-cl *{cursor:ew-resize !important}.gjs-resizing-cr *{cursor:ew-resize !important}.gjs-resizing-bl *{cursor:nesw-resize !important}.gjs-resizing-bc *{cursor:ns-resize !important}.gjs-resizing-br *{cursor:nwse-resize !important}.btn-cl,.gjs-am-close,.gjs-mdl-btn-close{opacity:.3;filter:alpha(opacity=30);font-size:25px;cursor:pointer}.btn-cl:hover,.gjs-am-close:hover,.gjs-mdl-btn-close:hover{opacity:.7;filter:alpha(opacity=70)}.no-dots,.ui-resizable-handle{border:none !important;margin:0 !important;outline:none !important}.gjs-com-dashed *{outline:1px dashed #888;outline-offset:-2px;box-sizing:border-box}.gjs-com-badge,.gjs-badge{pointer-events:none;background-color:var(--gjs-color-blue);color:#fff;padding:2px 5px;position:absolute;z-index:1;font-size:12px;outline:none;display:none}.gjs-badge-warning{background-color:var(--gjs-color-yellow)}.gjs-placeholder,.gjs-com-placeholder,.gjs-placeholder{position:absolute;z-index:10;pointer-events:none;display:none}.gjs-placeholder,.gjs-placeholder{border-style:solid !important;outline:none;box-sizing:border-box;transition:top var(--gjs-animation-duration),left var(--gjs-animation-duration),width var(--gjs-animation-duration),height var(--gjs-animation-duration)}.gjs-placeholder.horizontal,.gjs-com-placeholder.horizontal,.gjs-placeholder.horizontal{border-color:transparent var(--gjs-placeholder-background-color);border-width:3px 5px;margin:-3px 0 0}.gjs-placeholder.vertical,.gjs-com-placeholder.vertical,.gjs-placeholder.vertical{border-color:var(--gjs-placeholder-background-color) transparent;border-width:5px 3px;margin:0 0 0 -3px}.gjs-placeholder-int,.gjs-com-placeholder-int,.gjs-placeholder-int{background-color:var(--gjs-placeholder-background-color);box-shadow:0 0 3px rgba(0,0,0,.2);height:100%;width:100%;pointer-events:none;padding:1.5px;outline:none}.gjs-pn-panel{display:inline-block;position:absolute;box-sizing:border-box;text-align:center;padding:5px;z-index:3}.gjs-pn-panel .icon-undo,.gjs-pn-panel .icon-redo{font-size:20px;height:30px;width:25px}.gjs-pn-commands{width:calc(100% - var(--gjs-left-width));left:0;top:0;box-shadow:0 0 5px var(--gjs-main-dark-color)}.gjs-pn-options{right:var(--gjs-left-width);top:0}.gjs-pn-views{border-bottom:2px solid var(--gjs-main-dark-color);right:0;width:var(--gjs-left-width);z-index:4}.gjs-pn-views-container{height:100%;padding:42px 0 0;right:0;width:var(--gjs-left-width);overflow:auto;box-shadow:0 0 5px var(--gjs-main-dark-color)}.gjs-pn-buttons{align-items:center;display:flex;justify-content:space-between}.gjs-pn-btn{box-sizing:border-box;min-height:30px;min-width:30px;line-height:21px;background-color:transparent;border:none;font-size:18px;margin-right:5px;border-radius:2px;padding:4px;position:relative;cursor:pointer}.gjs-pn-btn.gjs-pn-active{background-color:rgba(0,0,0,.15);box-shadow:0 0 3px rgba(0,0,0,.25) inset}.gjs-pn-btn svg{fill:currentColor}.gjs-label{line-height:18px}.gjs-fields{display:flex}.gjs-select{padding:0;width:100%}.gjs-select select{padding-right:10px}.gjs-select:-moz-focusring,.gjs-select select:-moz-focusring{color:transparent;text-shadow:0 0 0 var(--gjs-secondary-light-color)}.gjs-input:focus,.gjs-button:focus,.gjs-btn-prim:focus,.gjs-select:focus,.gjs-select select:focus{outline:none}.gjs-field input,.gjs-field select,.gjs-field textarea{-webkit-appearance:none;-moz-appearance:none;appearance:none;color:inherit;border:none;background-color:transparent;box-sizing:border-box;width:100%;position:relative;padding:var(--gjs-input-padding);z-index:1}.gjs-field input:focus,.gjs-field select:focus,.gjs-field textarea:focus{outline:none}.gjs-field input[type=number]{-moz-appearance:textfield}.gjs-field input[type=number]::-webkit-outer-spin-button,.gjs-field input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.gjs-field-range{flex:9 1 auto}.gjs-field-integer input{padding-right:30px}.gjs-select option,.gjs-field-select option,.gjs-clm-select option,.gjs-sm-select option,.gjs-fields option,.gjs-sm-unit option{background-color:var(--gjs-main-color);color:var(--gjs-font-color)}.gjs-field{background-color:var(--gjs-main-dark-color);border:none;box-shadow:none;border-radius:2px;box-sizing:border-box;padding:0;position:relative}.gjs-field textarea{resize:vertical}.gjs-field .gjs-sel-arrow{height:100%;width:9px;position:absolute;right:0;top:0;z-index:0}.gjs-field .gjs-d-s-arrow{bottom:0;top:0;margin:auto;right:var(--gjs-input-padding);border-top:4px solid var(--gjs-arrow-color);position:absolute;height:0;width:0;border-left:3px solid transparent;border-right:4px solid transparent;cursor:pointer}.gjs-field-arrows{position:absolute;cursor:ns-resize;margin:auto;height:20px;width:9px;z-index:10;bottom:0;right:calc(var(--gjs-input-padding) - 2px);top:0}.gjs-field-color,.gjs-field-radio{width:100%}.gjs-field-color input{padding-right:var(--gjs-color-input-padding);box-sizing:border-box}.gjs-field-colorp{border-left:1px solid var(--gjs-main-dark-color);box-sizing:border-box;height:100%;padding:2px;position:absolute;right:0;top:0;width:var(--gjs-color-input-padding);z-index:10}.gjs-field-colorp .gjs-checker-bg,.gjs-field-colorp .gjs-field-colorp-c{height:100%;width:100%;border-radius:1px}.gjs-field-colorp-c{height:100%;position:relative;width:100%}.gjs-field-color-picker{background-color:var(--gjs-font-color);cursor:pointer;height:100%;width:100%;box-shadow:0 0 1px var(--gjs-main-dark-color);border-radius:1px;position:absolute;top:0}.gjs-field-checkbox{padding:0;width:17px;height:17px;display:block;cursor:pointer}.gjs-field-checkbox input{display:none}.gjs-field-checkbox input:checked+.gjs-chk-icon{border-color:rgba(255,255,255,.5);border-width:0 2px 2px 0;border-style:solid}.gjs-radio-item{flex:1 1 auto;text-align:center;border-left:1px solid var(--gjs-dark-text-shadow)}.gjs-radio-item:first-child{border:none}.gjs-radio-item:hover{background:var(--gjs-main-dark-color)}.gjs-radio-item input{display:none}.gjs-radio-item input:checked+.gjs-radio-item-label{background-color:rgba(255,255,255,.2)}.gjs-radio-items{display:flex}.gjs-radio-item-label{cursor:pointer;display:block;padding:var(--gjs-input-padding)}.gjs-field-units{position:absolute;margin:auto;right:10px;bottom:0;top:0}.gjs-field-unit{position:absolute;right:10px;top:3px;font-size:10px;color:var(--gjs-arrow-color);cursor:pointer}.gjs-input-unit{text-align:center}.gjs-field-arrow-u,.gjs-field-arrow-d{position:absolute;height:0;width:0;border-left:3px solid transparent;border-right:4px solid transparent;border-top:4px solid var(--gjs-arrow-color);bottom:4px;cursor:pointer}.gjs-field-arrow-u{border-bottom:4px solid var(--gjs-arrow-color);border-top:none;top:4px}.gjs-field-select{padding:0}.gjs-field-range{background-color:transparent;border:none;box-shadow:none;padding:0}.gjs-field-range input{margin:0;height:100%}.gjs-field-range input:focus{outline:none}.gjs-field-range input::-webkit-slider-thumb{-webkit-appearance:none;margin-top:-4px;height:10px;width:10px;border:1px solid var(--gjs-main-dark-color);border-radius:100%;background-color:var(--gjs-font-color);cursor:pointer}.gjs-field-range input::-moz-range-thumb{height:10px;width:10px;border:1px solid var(--gjs-main-dark-color);border-radius:100%;background-color:var(--gjs-font-color);cursor:pointer}.gjs-field-range input::-ms-thumb{height:10px;width:10px;border:1px solid var(--gjs-main-dark-color);border-radius:100%;background-color:var(--gjs-font-color);cursor:pointer}.gjs-field-range input::-moz-range-track{background-color:var(--gjs-main-dark-color);border-radius:1px;margin-top:3px;height:3px}.gjs-field-range input::-webkit-slider-runnable-track{background-color:var(--gjs-main-dark-color);border-radius:1px;margin-top:3px;height:3px}.gjs-field-range input::-ms-track{background-color:var(--gjs-main-dark-color);border-radius:1px;margin-top:3px;height:3px}.gjs-btn-prim{color:inherit;background-color:var(--gjs-main-light-color);border-radius:2px;padding:3px 6px;padding:var(--gjs-input-padding);cursor:pointer;border:none}.gjs-btn-prim:active{background-color:var(--gjs-main-light-color)}.gjs-btn--full{width:100%}.gjs-chk-icon{-ms-transform:rotate(45deg);-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);transform:rotate(45deg);box-sizing:border-box;display:block;height:14px;margin:0 5px;width:6px}.gjs-add-trasp{background:none;border:none;color:var(--gjs-font-color);cursor:pointer;font-size:1em;border-radius:2px;opacity:.75;filter:alpha(opacity=75)}.gjs-add-trasp:hover{opacity:1;filter:alpha(opacity=100)}.gjs-add-trasp:active{background-color:rgba(0,0,0,.2)}.gjs-devices-c{display:flex;align-items:center;padding:2px 3px 3px 3px}.gjs-devices-c .gjs-device-label{flex-grow:2;text-align:left;margin-right:10px}.gjs-devices-c .gjs-select{flex-grow:20}.gjs-devices-c .gjs-add-trasp{flex-grow:1;margin-left:5px}.gjs-category-open,.gjs-block-category.gjs-open,.gjs-sm-sector.gjs-sm-open{border-bottom:1px solid rgba(0,0,0,.25)}.gjs-category-title,.gjs-layer-title,.gjs-block-category .gjs-title,.gjs-sm-sector-title{font-weight:lighter;background-color:var(--gjs-secondary-dark-color);letter-spacing:1px;padding:9px 10px 9px 20px;border-bottom:1px solid rgba(0,0,0,.25);text-align:left;position:relative;cursor:pointer}.gjs-sm-clear{cursor:pointer;width:14px;min-width:14px;height:14px;margin-left:3px}.gjs-sm-header{font-weight:lighter;padding:10px}.gjs-sm-sector{clear:both;font-weight:lighter;text-align:left}.gjs-sm-sector-title{display:flex;align-items:center}.gjs-sm-sector-caret{width:17px;height:17px;min-width:17px;transform:rotate(-90deg)}.gjs-sm-sector-label{margin-left:5px}.gjs-sm-sector.gjs-sm-open .gjs-sm-sector-caret{transform:none}.gjs-sm-properties{font-size:var(--gjs-font-size);padding:10px 5px;display:flex;flex-wrap:wrap;align-items:flex-end;box-sizing:border-box;width:100%}.gjs-sm-label{margin:5px 5px 3px 0;display:flex;align-items:center}.gjs-sm-close-btn,.gjs-sm-preview-file-close{display:block;font-size:23px;position:absolute;cursor:pointer;right:5px;top:0;opacity:.7;filter:alpha(opacity=70)}.gjs-sm-close-btn:hover,.gjs-sm-preview-file-close:hover{opacity:.9;filter:alpha(opacity=90)}.gjs-sm-field,.gjs-clm-select,.gjs-clm-field{width:100%;position:relative}.gjs-sm-field input,.gjs-clm-select input,.gjs-clm-field input,.gjs-sm-field select,.gjs-clm-select select,.gjs-clm-field select{background-color:transparent;color:rgba(255,255,255,.7);border:none;width:100%}.gjs-sm-field input,.gjs-clm-select input,.gjs-clm-field input{box-sizing:border-box}.gjs-sm-field select,.gjs-clm-select select,.gjs-clm-field select{position:relative;z-index:1;-webkit-appearance:none;-moz-appearance:none;appearance:none}.gjs-sm-field select::-ms-expand,.gjs-clm-select select::-ms-expand,.gjs-clm-field select::-ms-expand{display:none}.gjs-sm-field select:-moz-focusring,.gjs-clm-select select:-moz-focusring,.gjs-clm-field select:-moz-focusring{color:transparent;text-shadow:0 0 0 var(--gjs-secondary-light-color)}.gjs-sm-field input:focus,.gjs-clm-select input:focus,.gjs-clm-field input:focus,.gjs-sm-field select:focus,.gjs-clm-select select:focus,.gjs-clm-field select:focus{outline:none}.gjs-sm-field .gjs-sm-unit,.gjs-clm-select .gjs-sm-unit,.gjs-clm-field .gjs-sm-unit{position:absolute;right:10px;top:3px;font-size:10px;color:var(--gjs-secondary-light-color);cursor:pointer}.gjs-sm-field .gjs-clm-sel-arrow,.gjs-clm-select .gjs-clm-sel-arrow,.gjs-clm-field .gjs-clm-sel-arrow,.gjs-sm-field .gjs-sm-int-arrows,.gjs-clm-select .gjs-sm-int-arrows,.gjs-clm-field .gjs-sm-int-arrows,.gjs-sm-field .gjs-sm-sel-arrow,.gjs-clm-select .gjs-sm-sel-arrow,.gjs-clm-field .gjs-sm-sel-arrow{height:100%;width:9px;position:absolute;right:0;top:0;cursor:ns-resize}.gjs-sm-field .gjs-sm-sel-arrow,.gjs-clm-select .gjs-sm-sel-arrow,.gjs-clm-field .gjs-sm-sel-arrow{cursor:pointer}.gjs-sm-field .gjs-clm-d-s-arrow,.gjs-clm-select .gjs-clm-d-s-arrow,.gjs-clm-field .gjs-clm-d-s-arrow,.gjs-sm-field .gjs-sm-d-arrow,.gjs-clm-select .gjs-sm-d-arrow,.gjs-clm-field .gjs-sm-d-arrow,.gjs-sm-field .gjs-sm-d-s-arrow,.gjs-clm-select .gjs-sm-d-s-arrow,.gjs-clm-field .gjs-sm-d-s-arrow,.gjs-sm-field .gjs-sm-u-arrow,.gjs-clm-select .gjs-sm-u-arrow,.gjs-clm-field .gjs-sm-u-arrow{position:absolute;height:0;width:0;border-left:3px solid transparent;border-right:4px solid transparent;cursor:pointer}.gjs-sm-field .gjs-sm-u-arrow,.gjs-clm-select .gjs-sm-u-arrow,.gjs-clm-field .gjs-sm-u-arrow{border-bottom:4px solid var(--gjs-secondary-light-color);top:4px}.gjs-sm-field .gjs-clm-d-s-arrow,.gjs-clm-select .gjs-clm-d-s-arrow,.gjs-clm-field .gjs-clm-d-s-arrow,.gjs-sm-field .gjs-sm-d-arrow,.gjs-clm-select .gjs-sm-d-arrow,.gjs-clm-field .gjs-sm-d-arrow,.gjs-sm-field .gjs-sm-d-s-arrow,.gjs-clm-select .gjs-sm-d-s-arrow,.gjs-clm-field .gjs-sm-d-s-arrow{border-top:4px solid var(--gjs-secondary-light-color);bottom:4px}.gjs-sm-field .gjs-clm-d-s-arrow,.gjs-clm-select .gjs-clm-d-s-arrow,.gjs-clm-field .gjs-clm-d-s-arrow,.gjs-sm-field .gjs-sm-d-s-arrow,.gjs-clm-select .gjs-sm-d-s-arrow,.gjs-clm-field .gjs-sm-d-s-arrow{bottom:7px}.gjs-sm-field.gjs-sm-color,.gjs-sm-color.gjs-clm-field,.gjs-sm-field.gjs-sm-input,.gjs-sm-input.gjs-clm-field,.gjs-sm-field.gjs-sm-integer,.gjs-sm-integer.gjs-clm-field,.gjs-sm-field.gjs-sm-list,.gjs-sm-list.gjs-clm-field,.gjs-sm-field.gjs-sm-select,.gjs-clm-select,.gjs-sm-select.gjs-clm-field{background-color:var(--gjs-main-dark-color);border:1px solid rgba(0,0,0,.1);box-shadow:1px 1px 0 var(--gjs-main-light-color);color:var(--gjs-secondary-light-color);border-radius:2px;box-sizing:border-box;padding:0 5px}.gjs-sm-field.gjs-sm-composite,.gjs-sm-composite.gjs-clm-select,.gjs-sm-composite.gjs-clm-field{border-radius:2px}.gjs-sm-field.gjs-sm-select,.gjs-clm-select,.gjs-sm-select.gjs-clm-field{padding:0}.gjs-sm-field.gjs-sm-select select,.gjs-clm-select select,.gjs-sm-select.gjs-clm-field select{height:20px}.gjs-sm-field.gjs-sm-select option,.gjs-clm-select option,.gjs-sm-select.gjs-clm-field option{padding:3px 0}.gjs-sm-field.gjs-sm-composite,.gjs-sm-composite.gjs-clm-select,.gjs-sm-composite.gjs-clm-field{background-color:var(--gjs-secondary-dark-color);border:1px solid rgba(0,0,0,.25)}.gjs-sm-field.gjs-sm-list,.gjs-sm-list.gjs-clm-select,.gjs-sm-list.gjs-clm-field{width:auto;padding:0;overflow:hidden;float:left}.gjs-sm-field.gjs-sm-list input,.gjs-sm-list.gjs-clm-select input,.gjs-sm-list.gjs-clm-field input{display:none}.gjs-sm-field.gjs-sm-list label,.gjs-sm-list.gjs-clm-select label,.gjs-sm-list.gjs-clm-field label{cursor:pointer;padding:5px;display:block}.gjs-sm-field.gjs-sm-list .gjs-sm-radio:checked+label,.gjs-sm-list.gjs-clm-select .gjs-sm-radio:checked+label,.gjs-sm-list.gjs-clm-field .gjs-sm-radio:checked+label{background-color:rgba(255,255,255,.2)}.gjs-sm-field.gjs-sm-list .gjs-sm-icon,.gjs-sm-list.gjs-clm-select .gjs-sm-icon,.gjs-sm-list.gjs-clm-field .gjs-sm-icon{background-repeat:no-repeat;background-position:center;text-shadow:none;line-height:normal}.gjs-sm-field.gjs-sm-integer select,.gjs-sm-integer.gjs-clm-select select,.gjs-sm-integer.gjs-clm-field select{width:auto;padding:0}.gjs-sm-list .gjs-sm-el{float:left;border-left:1px solid var(--gjs-main-dark-color)}.gjs-sm-list .gjs-sm-el:first-child{border:none}.gjs-sm-list .gjs-sm-el:hover{background:var(--gjs-main-dark-color)}.gjs-sm-slider .gjs-field-integer{flex:1 1 65px}.gjs-sm-property{box-sizing:border-box;float:left;width:50%;margin-bottom:5px;padding:0 5px}.gjs-sm-property--full,.gjs-sm-property.gjs-sm-composite,.gjs-sm-property.gjs-sm-file,.gjs-sm-property.gjs-sm-list,.gjs-sm-property.gjs-sm-stack,.gjs-sm-property.gjs-sm-slider,.gjs-sm-property.gjs-sm-color{width:100%}.gjs-sm-property .gjs-sm-btn{background-color:color-mix(in srgb, var(--gjs-main-dark-color), white 13%);border-radius:2px;box-shadow:1px 1px 0 color-mix(in srgb, var(--gjs-main-dark-color), white 2%),1px 1px 0 color-mix(in srgb, var(--gjs-main-dark-color), white 17%) inset;padding:5px;position:relative;text-align:center;height:auto;width:100%;cursor:pointer;color:var(--gjs-font-color);box-sizing:border-box;text-shadow:-1px -1px 0 var(--gjs-main-dark-color);border:none;opacity:.85;filter:alpha(opacity=85)}.gjs-sm-property .gjs-sm-btn-c{box-sizing:border-box;float:left;width:100%}.gjs-sm-property__text-shadow .gjs-sm-layer-preview-cnt::after{color:#000;content:"T";font-weight:900;line-height:17px;padding:0 4px}.gjs-sm-preview-file{background-color:var(--gjs-light-border);border-radius:2px;margin-top:5px;position:relative;overflow:hidden;border:1px solid color-mix(in srgb, var(--gjs-light-border), black 1%);padding:3px 20px}.gjs-sm-preview-file-cnt{background-size:auto 100%;background-repeat:no-repeat;background-position:center center;height:50px}.gjs-sm-preview-file-close{top:-5px;width:14px;height:14px}.gjs-sm-layers{margin-top:5px;padding:1px 3px;min-height:30px}.gjs-sm-layer{background-color:rgba(255,255,255,.055);border-radius:2px;margin:2px 0;padding:7px;position:relative}.gjs-sm-layer.gjs-sm-active{background-color:rgba(255,255,255,.12)}.gjs-sm-layer .gjs-sm-label-wrp{display:flex;align-items:center}.gjs-sm-layer #gjs-sm-move{height:14px;width:14px;min-width:14px;cursor:grab}.gjs-sm-layer #gjs-sm-label{flex-grow:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin:0 5px}.gjs-sm-layer-preview{height:15px;width:15px;min-width:15px;margin-right:5px;border-radius:2px}.gjs-sm-layer-preview-cnt{border-radius:2px;background-color:#fff;height:100%;width:100%;background-size:cover !important}.gjs-sm-layer #gjs-sm-close-layer{display:block;cursor:pointer;height:14px;width:14px;min-width:14px;opacity:.5;filter:alpha(opacity=50)}.gjs-sm-layer #gjs-sm-close-layer:hover{opacity:.8;filter:alpha(opacity=80)}.gjs-sm-stack .gjs-sm-properties{padding:5px 0 0}.gjs-sm-stack #gjs-sm-add{background:none;border:none;cursor:pointer;outline:none;position:absolute;right:0;top:-17px;opacity:.75;padding:0;width:18px;height:18px}.gjs-sm-stack #gjs-sm-add:hover{opacity:1;filter:alpha(opacity=100)}.gjs-sm-colorp-c{height:100%;width:20px;position:absolute;right:0;top:0;box-sizing:border-box;border-radius:2px;padding:2px}.gjs-sm-colorp-c .gjs-checker-bg,.gjs-sm-colorp-c .gjs-field-colorp-c{height:100%;width:100%;border-radius:1px}.gjs-sm-color-picker{background-color:var(--gjs-font-color);cursor:pointer;height:16px;width:100%;margin-top:-16px;box-shadow:0 0 1px var(--gjs-main-dark-color);border-radius:1px}.gjs-sm-btn-upload #gjs-sm-upload{left:0;top:0;position:absolute;width:100%;opacity:0;cursor:pointer}.gjs-sm-btn-upload #gjs-sm-label{padding:2px 0}.gjs-sm-layer>#gjs-sm-move{opacity:.7;filter:alpha(opacity=70);cursor:move;font-size:12px;float:left;margin:0 5px 0 0}.gjs-sm-layer>#gjs-sm-move:hover{opacity:.9;filter:alpha(opacity=90)}.gjs-blocks-c{display:flex;flex-wrap:wrap;justify-content:flex-start}.gjs-block-categories{display:flex;flex-direction:column}.gjs-block-category{width:100%}.gjs-block-category .gjs-caret-icon{margin-right:5px}.gjs-block{-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;width:45%;min-width:45px;padding:1em;box-sizing:border-box;min-height:90px;cursor:all-scroll;font-size:11px;font-weight:lighter;text-align:center;display:flex;flex-direction:column;justify-content:space-between;border:1px solid rgba(0,0,0,.2);border-radius:3px;margin:10px 2.5% 5px;box-shadow:0 1px 0 0 rgba(0,0,0,.15);transition:all .2s ease 0s;transition-property:box-shadow,color}.gjs-block:hover{box-shadow:0 3px 4px 0 rgba(0,0,0,.15)}.gjs-block svg{fill:currentColor}.gjs-block__media{margin-bottom:10px;pointer-events:none}.gjs-block-svg{width:54px;fill:currentColor}.gjs-block-svg-path{fill:currentColor}.gjs-block.fa{font-size:2em;line-height:2em;padding:11px}.gjs-block-label{line-height:normal;font-size:.65rem;font-weight:normal;font-family:Helvetica,sans-serif;overflow:hidden;text-overflow:ellipsis;pointer-events:none}.gjs-block.gjs-bdrag{width:auto;padding:0}.gjs-selected-parent{border:1px solid var(--gjs-color-yellow)}.gjs-opac50{opacity:.5;filter:alpha(opacity=50)}.gjs-layer{font-weight:lighter;text-align:left;position:relative;font-size:var(--gjs-font-size);display:grid}.gjs-layer-item{display:flex;align-items:center;justify-content:space-between;padding:5px 10px;border-bottom:1px solid var(--gjs-main-dark-color);background-color:var(--gjs-secondary-dark-color);gap:var(--gjs-flex-item-gap);cursor:pointer}.gjs-layer-item-left,.gjs-layer-item-right{display:flex;align-items:center;gap:var(--gjs-flex-item-gap)}.gjs-layer-item-left{width:100%}.gjs-layer-hidden{opacity:.55;filter:alpha(opacity=55)}.gjs-layer-vis{box-sizing:content-box;cursor:pointer;z-index:1}.gjs-layer-vis-on,.gjs-layer-vis-off{display:flex;width:13px}.gjs-layer-vis-off{display:none}.gjs-layer-vis.gjs-layer-off .gjs-layer-vis-on{display:none}.gjs-layer-vis.gjs-layer-off .gjs-layer-vis-off{display:flex}.gjs-layer-caret{width:15px;cursor:pointer;box-sizing:content-box;transform:rotate(90deg);display:flex;opacity:.7;filter:alpha(opacity=70)}.gjs-layer-caret:hover{opacity:1;filter:alpha(opacity=100)}.gjs-layer.open>.gjs-layer-item .gjs-layer-caret{transform:rotate(180deg)}.gjs-layer-title{padding:0;display:flex;align-items:center;background-color:transparent !important;border-bottom:none}.gjs-layer-title-inn{align-items:center;position:relative;display:flex;gap:var(--gjs-flex-item-gap)}.gjs-layer-title-c{width:100%}.gjs-layer__icon{display:block;width:100%;max-width:15px;max-height:15px;padding-left:5px}.gjs-layer__icon svg{fill:currentColor}.gjs-layer-name{display:inline-block;box-sizing:content-box;overflow:hidden;white-space:nowrap;max-width:170px;height:auto}.gjs-layer-name--no-edit{text-overflow:ellipsis}.gjs-layer>.gjs-layer-children{display:none}.gjs-layer.open>.gjs-layer-children{display:block}.gjs-layer-no-chld>.gjs-layer-title-inn>.gjs-layer-caret{visibility:hidden}.gjs-layer-move{display:flex;width:13px;box-sizing:content-box;cursor:move}.gjs-layer.gjs-hovered .gjs-layer-item{background-color:var(--gjs-soft-light-color)}.gjs-layer.gjs-selected .gjs-layer-item{background-color:var(--gjs-main-light-color)}.gjs-layers{position:relative;height:100%}.gjs-layers #gjs-placeholder{width:100%;position:absolute}.gjs-layers #gjs-placeholder #gjs-plh-int{height:100%;padding:1px}.gjs-layers #gjs-placeholder #gjs-plh-int.gjs-insert{background-color:var(--gjs-color-green)}#gjs-clm-add-tag,.gjs-clm-tags-btn{background-color:rgba(255,255,255,.15);border-radius:2px;padding:3px;margin-right:3px;border:1px solid rgba(0,0,0,.15);width:24px;height:24px;box-sizing:border-box;cursor:pointer}.gjs-clm-tags-btn svg{fill:currentColor;display:block}.gjs-clm-header{display:flex;align-items:center;margin:7px 0}.gjs-clm-header-status{flex-shrink:1;margin-left:auto}.gjs-clm-tag{display:flex;overflow:hidden;align-items:center;border-radius:3px;margin:0 3px 3px 0;padding:5px;cursor:default}.gjs-clm-tag-status,.gjs-clm-tag-close{width:12px;height:12px;flex-shrink:1}.gjs-clm-tag-status svg,.gjs-clm-tag-close svg{vertical-align:middle;fill:currentColor}.gjs-clm-sels-info{margin:7px 0;text-align:left}.gjs-clm-sel-id{font-size:.9em;opacity:.5;filter:alpha(opacity=50)}.gjs-clm-label-sel{float:left;padding-right:5px}.gjs-clm-tags{font-size:var(--gjs-font-size);padding:10px 5px}.gjs-clm-tags #gjs-clm-sel{padding:7px 0;float:left}.gjs-clm-tags #gjs-clm-sel{font-style:italic;margin-left:5px}.gjs-clm-tags #gjs-clm-tags-field{clear:both;padding:5px;margin-bottom:5px;display:flex;flex-wrap:wrap}.gjs-clm-tags #gjs-clm-tags-c{display:flex;flex-wrap:wrap;vertical-align:top;overflow:hidden}.gjs-clm-tags #gjs-clm-new{color:var(--gjs-font-color);padding:var(--gjs-padding-elem-classmanager);display:none}.gjs-clm-tags #gjs-clm-close{opacity:.85;filter:alpha(opacity=85);font-size:20px;line-height:0;cursor:pointer;color:rgba(255,255,255,.9)}.gjs-clm-tags #gjs-clm-close:hover{opacity:1;filter:alpha(opacity=100)}.gjs-clm-tags #gjs-clm-checkbox{color:rgba(255,255,255,.9);vertical-align:middle;cursor:pointer;font-size:9px}.gjs-clm-tags #gjs-clm-tag-label{flex-grow:1;text-overflow:ellipsis;overflow:hidden;padding:0 3px;cursor:text}.gjs-mdl-container{font-family:var(--gjs-main-font);overflow-y:auto;position:fixed;background-color:rgba(0,0,0,.5);display:flex;top:0;left:0;right:0;bottom:0;z-index:100}.gjs-mdl-dialog{text-shadow:-1px -1px 0 rgba(0,0,0,.05);animation:gjs-slide-down .215s;margin:auto;max-width:850px;width:90%;border-radius:3px;font-weight:lighter;position:relative;z-index:2}.gjs-mdl-title{font-size:1rem}.gjs-mdl-btn-close{position:absolute;right:15px;top:5px}.gjs-mdl-active .gjs-mdl-dialog{animation:gjs-mdl-slide-down .216s}.gjs-mdl-header,.gjs-mdl-content{padding:10px 15px;clear:both}.gjs-mdl-header{position:relative;border-bottom:1px solid var(--gjs-main-dark-color);padding:15px 15px 7px}.gjs-export-dl::after{content:"";clear:both;display:block;margin-bottom:10px}.gjs-dropzone{display:none;opacity:0;position:absolute;top:0;left:0;z-index:11;width:100%;height:100%;transition:opacity .25s;pointer-events:none}.gjs-dropzone-active .gjs-dropzone{display:block;opacity:1}.gjs-am-assets{height:290px;overflow:auto;clear:both;display:flex;flex-wrap:wrap;align-items:flex-start;align-content:flex-start}.gjs-am-assets-header{padding:5px}.gjs-am-add-asset .gjs-am-add-field{width:70%;float:left}.gjs-am-add-asset button{width:25%;float:right}.gjs-am-preview-cont{position:relative;height:70px;width:30%;background-color:var(--gjs-main-color);border-radius:2px;float:left;overflow:hidden}.gjs-am-preview{position:absolute;background-position:center center;background-size:cover;background-repeat:no-repeat;height:100%;width:100%;z-index:1}.gjs-am-preview-bg{opacity:.5;filter:alpha(opacity=50);position:absolute;height:100%;width:100%;z-index:0}.gjs-am-dimensions{opacity:.5;filter:alpha(opacity=50);font-size:10px}.gjs-am-meta{width:70%;float:left;font-size:12px;padding:5px 0 0 5px;box-sizing:border-box}.gjs-am-meta>div{margin-bottom:5px}.gjs-am-close{cursor:pointer;position:absolute;right:5px;top:0;display:none}.gjs-am-asset{border-bottom:1px solid color-mix(in srgb, var(--gjs-main-dark-color), black 3%);padding:5px;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.gjs-am-asset:hover .gjs-am-close{display:block}.gjs-am-highlight{background-color:var(--gjs-main-light-color)}.gjs-am-assets-cont{background-color:var(--gjs-secondary-dark-color);border-radius:3px;box-sizing:border-box;padding:10px;width:45%;float:right;height:325px;overflow:hidden}.gjs-am-file-uploader{width:55%;float:left}.gjs-am-file-uploader>form{background-color:var(--gjs-secondary-dark-color);border:2px dashed;border-radius:3px;position:relative;text-align:center;margin-bottom:15px}.gjs-am-file-uploader>form.gjs-am-hover{border:2px solid var(--gjs-color-green);color:color-mix(in srgb, var(--gjs-color-green), white 5%)}.gjs-am-file-uploader>form.gjs-am-disabled{border-color:red}.gjs-am-file-uploader>form #gjs-am-uploadFile{opacity:0;filter:alpha(opacity=0);padding:var(--gjs-upload-padding);width:100%;box-sizing:border-box}.gjs-am-file-uploader #gjs-am-title{position:absolute;padding:var(--gjs-upload-padding);width:100%}.gjs-cm-editor-c{float:left;box-sizing:border-box;width:50%}.gjs-cm-editor-c .cm-editor{height:450px}.gjs-cm-editor{font-size:12px}.gjs-cm-editor#gjs-cm-htmlmixed{padding-right:10px;border-right:1px solid var(--gjs-main-dark-color)}.gjs-cm-editor#gjs-cm-htmlmixed #gjs-cm-title{color:#a97d44}.gjs-cm-editor#gjs-cm-css{padding-left:10px}.gjs-cm-editor#gjs-cm-css #gjs-cm-title{color:#ddca7e}.gjs-cm-editor #gjs-cm-title{background-color:var(--gjs-main-dark-color);font-size:12px;padding:5px 10px 3px;text-align:right}.gjs-rte-toolbar{position:absolute;z-index:10}.gjs-rte-toolbar-ui{border:1px solid var(--gjs-main-dark-color);border-radius:3px}.gjs-rte-actionbar{display:flex}.gjs-rte-action{display:flex;align-items:center;justify-content:center;padding:5px;width:25px;border-right:1px solid var(--gjs-main-dark-color);text-align:center;cursor:pointer;outline:none}.gjs-rte-action:last-child{border-right:none}.gjs-rte-action:hover{background-color:var(--gjs-main-light-color)}.gjs-rte-active{background-color:var(--gjs-main-light-color)}.gjs-rte-disabled{color:var(--gjs-main-light-color);cursor:not-allowed}.gjs-rte-disabled:hover{background-color:unset}.gjs-editor-cont .sp-hue,.gjs-editor-cont .sp-slider{cursor:row-resize}.gjs-editor-cont .sp-color,.gjs-editor-cont .sp-dragger{cursor:crosshair}.gjs-editor-cont .sp-alpha-inner,.gjs-editor-cont .sp-alpha-handle{cursor:col-resize}.gjs-editor-cont .sp-hue{left:90%}.gjs-editor-cont .sp-color{right:15%}.gjs-editor-cont .sp-container{border:1px solid var(--gjs-main-dark-color);box-shadow:0 0 7px var(--gjs-main-dark-color);border-radius:3px}.gjs-editor-cont .sp-picker-container{border:none}.gjs-editor-cont .colpick_dark .colpick_color{outline:1px solid var(--gjs-main-dark-color)}.gjs-editor-cont .sp-cancel,.gjs-editor-cont .sp-cancel:hover{bottom:-8px;color:#777 !important;font-size:25px;left:0;position:absolute;text-decoration:none}.gjs-editor-cont .sp-alpha-handle{background-color:#ccc;border:1px solid #555;width:4px}.gjs-editor-cont .sp-color,.gjs-editor-cont .sp-hue{border:1px solid #333}.gjs-editor-cont .sp-slider{background-color:#ccc;border:1px solid #555;height:3px;left:-4px;width:22px}.gjs-editor-cont .sp-dragger{background:transparent;box-shadow:0 0 0 1px #111}.gjs-editor-cont .sp-button-container{float:none;width:100%;position:relative;text-align:right}.gjs-editor-cont .sp-container button,.gjs-editor-cont .sp-container button:hover,.gjs-editor-cont .sp-container button:active{background:var(--gjs-main-dark-color);border-color:var(--gjs-main-dark-color);color:var(--gjs-font-color);text-shadow:none;box-shadow:none;padding:3px 5px}.gjs-editor-cont .sp-palette-container{border:none;float:none;margin:0;padding:5px 10px 0}.gjs-editor-cont .sp-palette .sp-thumb-el,.gjs-editor-cont .sp-palette .sp-thumb-el:hover{border:1px solid rgba(0,0,0,.9)}.gjs-editor-cont .sp-palette .sp-thumb-el:hover,.gjs-editor-cont .sp-palette .sp-thumb-el.sp-thumb-active{border-color:rgba(0,0,0,.9)}.gjs-hidden{display:none}@keyframes gjs-slide-down{0%{transform:translate(0, -3rem);opacity:0}100%{transform:translate(0, 0);opacity:1}}@keyframes gjs-slide-up{0%{transform:translate(0, 0);opacity:1}100%{transform:translate(0, -3rem);opacity:0}}.cm-s-hopscotch span.cm-error{color:#fff} +.sp-container{position:absolute;top:0;left:0;display:inline-block;z-index:9999994;overflow:hidden}.sp-container.sp-flat{position:relative}.sp-container,.sp-container *{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}.sp-top{position:relative;width:100%;display:inline-block}.sp-top-inner{position:absolute;top:0;left:0;bottom:0;right:0}.sp-color{position:absolute;top:0;left:0;bottom:0;right:20%}.sp-hue{position:absolute;top:0;right:0;bottom:0;left:84%;height:100%}.sp-clear-enabled .sp-hue{top:33px;height:77.5%}.sp-fill{padding-top:80%}.sp-sat,.sp-val{position:absolute;top:0;left:0;right:0;bottom:0}.sp-alpha-enabled .sp-top{margin-bottom:18px}.sp-alpha-enabled .sp-alpha{display:block}.sp-alpha-handle{position:absolute;top:-4px;bottom:-4px;width:6px;left:50%;cursor:pointer;border:1px solid #000;background:#fff;opacity:.8}.sp-alpha{display:none;position:absolute;bottom:-14px;right:0;left:0;height:8px}.sp-alpha-inner{border:solid 1px #333}.sp-clear{display:none}.sp-clear.sp-clear-display{background-position:center}.sp-clear-enabled .sp-clear{display:block;position:absolute;top:0px;right:0;bottom:0;left:84%;height:28px}.sp-container,.sp-replacer,.sp-preview,.sp-dragger,.sp-slider,.sp-alpha,.sp-clear,.sp-alpha-handle,.sp-container.sp-dragging .sp-input,.sp-container button{-webkit-user-select:none;-moz-user-select:-moz-none;-o-user-select:none;user-select:none}.sp-container.sp-input-disabled .sp-input-container{display:none}.sp-container.sp-buttons-disabled .sp-button-container{display:none}.sp-container.sp-palette-buttons-disabled .sp-palette-button-container{display:none}.sp-palette-only .sp-picker-container{display:none}.sp-palette-disabled .sp-palette-container{display:none}.sp-initial-disabled .sp-initial{display:none}.sp-sat{background-image:-webkit-gradient(linear, 0 0, 100% 0, from(#FFF), to(rgba(204, 154, 129, 0)));background-image:-webkit-linear-gradient(left, #FFF, rgba(204, 154, 129, 0));background-image:-moz-linear-gradient(left, #fff, rgba(204, 154, 129, 0));background-image:-o-linear-gradient(left, #fff, rgba(204, 154, 129, 0));background-image:-ms-linear-gradient(left, #fff, rgba(204, 154, 129, 0));background-image:linear-gradient(to right, #fff, rgba(204, 154, 129, 0));-ms-filter:"progid:DXImageTransform.Microsoft.gradient(GradientType = 1, startColorstr=#FFFFFFFF, endColorstr=#00CC9A81)";filter:progid:DXImageTransform.Microsoft.gradient(GradientType = 1, startColorstr="#FFFFFFFF", endColorstr="#00CC9A81")}.sp-val{background-image:-webkit-gradient(linear, 0 100%, 0 0, from(#000000), to(rgba(204, 154, 129, 0)));background-image:-webkit-linear-gradient(bottom, #000000, rgba(204, 154, 129, 0));background-image:-moz-linear-gradient(bottom, #000, rgba(204, 154, 129, 0));background-image:-o-linear-gradient(bottom, #000, rgba(204, 154, 129, 0));background-image:-ms-linear-gradient(bottom, #000, rgba(204, 154, 129, 0));background-image:linear-gradient(to top, #000, rgba(204, 154, 129, 0));-ms-filter:"progid:DXImageTransform.Microsoft.gradient(startColorstr=#00CC9A81, endColorstr=#FF000000)";filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#00CC9A81", endColorstr="#FF000000")}.sp-hue{background:-moz-linear-gradient(top, #ff0000 0%, #ffff00 17%, #00ff00 33%, #00ffff 50%, #0000ff 67%, #ff00ff 83%, #ff0000 100%);background:-ms-linear-gradient(top, #ff0000 0%, #ffff00 17%, #00ff00 33%, #00ffff 50%, #0000ff 67%, #ff00ff 83%, #ff0000 100%);background:-o-linear-gradient(top, #ff0000 0%, #ffff00 17%, #00ff00 33%, #00ffff 50%, #0000ff 67%, #ff00ff 83%, #ff0000 100%);background:-webkit-gradient(linear, left top, left bottom, from(#ff0000), color-stop(0.17, #ffff00), color-stop(0.33, #00ff00), color-stop(0.5, #00ffff), color-stop(0.67, #0000ff), color-stop(0.83, #ff00ff), to(#ff0000));background:-webkit-linear-gradient(top, #ff0000 0%, #ffff00 17%, #00ff00 33%, #00ffff 50%, #0000ff 67%, #ff00ff 83%, #ff0000 100%);background:linear-gradient(to bottom, #ff0000 0%, #ffff00 17%, #00ff00 33%, #00ffff 50%, #0000ff 67%, #ff00ff 83%, #ff0000 100%)}.sp-1{height:17%;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#ff0000", endColorstr="#ffff00")}.sp-2{height:16%;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#ffff00", endColorstr="#00ff00")}.sp-3{height:17%;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#00ff00", endColorstr="#00ffff")}.sp-4{height:17%;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#00ffff", endColorstr="#0000ff")}.sp-5{height:16%;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#0000ff", endColorstr="#ff00ff")}.sp-6{height:17%;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#ff00ff", endColorstr="#ff0000")}.sp-hidden{display:none !important}.sp-cf:before,.sp-cf:after{content:"";display:table}.sp-cf:after{clear:both}@media(max-device-width: 480px){.sp-color{right:40%}.sp-hue{left:63%}.sp-fill{padding-top:60%}}.sp-dragger{border-radius:5px;height:5px;width:5px;border:1px solid #fff;background:#000;cursor:pointer;position:absolute;top:0;left:0}.sp-slider{position:absolute;top:0;cursor:pointer;height:3px;left:-1px;right:-1px;border:1px solid #000;background:#fff;opacity:.8}.sp-container{border-radius:0;background-color:#ececec;border:solid 1px #f0c49b;padding:0}.sp-container,.sp-container button,.sp-container input,.sp-color,.sp-hue,.sp-clear{font:normal 12px "Lucida Grande","Lucida Sans Unicode","Lucida Sans",Geneva,Verdana,sans-serif;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-ms-box-sizing:border-box;box-sizing:border-box}.sp-top{margin-bottom:3px}.sp-color,.sp-hue,.sp-clear{border:solid 1px #666}.sp-input-container{float:right;width:100px;margin-bottom:4px}.sp-initial-disabled .sp-input-container{width:100%}.sp-input{font-size:12px !important;border:1px inset;padding:4px 5px;margin:0;width:100%;background:transparent;border-radius:3px;color:#222}.sp-input:focus{border:1px solid orange}.sp-input.sp-validation-error{border:1px solid red;background:#fdd}.sp-picker-container,.sp-palette-container{float:left;position:relative;padding:10px;padding-bottom:300px;margin-bottom:-290px}.sp-picker-container{width:172px;border-left:solid 1px #fff}.sp-palette-container{border-right:solid 1px #ccc}.sp-palette-only .sp-palette-container{border:0}.sp-palette .sp-thumb-el{display:block;position:relative;float:left;width:24px;height:15px;margin:3px;cursor:pointer;border:solid 2px transparent}.sp-palette .sp-thumb-el:hover,.sp-palette .sp-thumb-el.sp-thumb-active{border-color:orange}.sp-thumb-el{position:relative}.sp-initial{float:left;border:solid 1px #333}.sp-initial span{width:30px;height:25px;border:none;display:block;float:left;margin:0}.sp-initial .sp-clear-display{background-position:center}.sp-palette-button-container,.sp-button-container{float:right}.sp-replacer{margin:0;overflow:hidden;cursor:pointer;padding:4px;display:inline-block;border:solid 1px #91765d;background:#eee;color:#333;vertical-align:middle}.sp-replacer:hover,.sp-replacer.sp-active{border-color:#f0c49b;color:#111}.sp-replacer.sp-disabled{cursor:default;border-color:silver;color:silver}.sp-dd{padding:2px 0;height:16px;line-height:16px;float:left;font-size:10px}.sp-preview{position:relative;width:25px;height:20px;border:solid 1px #222;margin-right:5px;float:left;z-index:0}.sp-palette{max-width:220px}.sp-palette .sp-thumb-el{width:16px;height:16px;margin:2px 1px;border:solid 1px #d0d0d0}.sp-container{padding-bottom:0}.sp-container button{background-color:#eee;background-image:-webkit-linear-gradient(top, #eeeeee, #cccccc);background-image:-moz-linear-gradient(top, #eeeeee, #cccccc);background-image:-ms-linear-gradient(top, #eeeeee, #cccccc);background-image:-o-linear-gradient(top, #eeeeee, #cccccc);background-image:linear-gradient(to bottom, #eeeeee, #cccccc);border:1px solid #ccc;border-bottom:1px solid #bbb;border-radius:3px;color:#333;font-size:14px;line-height:1;padding:5px 4px;text-align:center;text-shadow:0 1px 0 #eee;vertical-align:middle}.sp-container button:hover{background-color:#ddd;background-image:-webkit-linear-gradient(top, #dddddd, #bbbbbb);background-image:-moz-linear-gradient(top, #dddddd, #bbbbbb);background-image:-ms-linear-gradient(top, #dddddd, #bbbbbb);background-image:-o-linear-gradient(top, #dddddd, #bbbbbb);background-image:linear-gradient(to bottom, #dddddd, #bbbbbb);border:1px solid #bbb;border-bottom:1px solid #999;cursor:pointer;text-shadow:0 1px 0 #ddd}.sp-container button:active{border:1px solid #aaa;border-bottom:1px solid #888;-webkit-box-shadow:inset 0 0 5px 2px #aaa,0 1px 0 0 #eee;-moz-box-shadow:inset 0 0 5px 2px #aaa,0 1px 0 0 #eee;-ms-box-shadow:inset 0 0 5px 2px #aaa,0 1px 0 0 #eee;-o-box-shadow:inset 0 0 5px 2px #aaa,0 1px 0 0 #eee;box-shadow:inset 0 0 5px 2px #aaa,0 1px 0 0 #eee}.sp-cancel{font-size:11px;color:#d93f3f !important;margin:0;padding:2px;margin-right:5px;vertical-align:middle;text-decoration:none}.sp-cancel:hover{color:#d93f3f !important;text-decoration:underline}.sp-palette span:hover,.sp-palette span.sp-thumb-active{border-color:#000}.sp-preview,.sp-alpha,.sp-thumb-el{position:relative;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==)}.sp-preview-inner,.sp-alpha-inner,.sp-thumb-inner{display:block;position:absolute;top:0;left:0;bottom:0;right:0}.sp-palette .sp-thumb-inner{background-position:50% 50%;background-repeat:no-repeat}.sp-palette .sp-thumb-light.sp-thumb-active .sp-thumb-inner{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAIVJREFUeNpiYBhsgJFMffxAXABlN5JruT4Q3wfi/0DsT64h8UD8HmpIPCWG/KemIfOJCUB+Aoacx6EGBZyHBqI+WsDCwuQ9mhxeg2A210Ntfo8klk9sOMijaURm7yc1UP2RNCMbKE9ODK1HM6iegYLkfx8pligC9lCD7KmRof0ZhjQACDAAceovrtpVBRkAAAAASUVORK5CYII=)}.sp-palette .sp-thumb-dark.sp-thumb-active .sp-thumb-inner{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAadEVYdFNvZnR3YXJlAFBhaW50Lk5FVCB2My41LjEwMPRyoQAAAMdJREFUOE+tkgsNwzAMRMugEAahEAahEAZhEAqlEAZhEAohEAYh81X2dIm8fKpEspLGvudPOsUYpxE2BIJCroJmEW9qJ+MKaBFhEMNabSy9oIcIPwrB+afvAUFoK4H0tMaQ3XtlrggDhOVVMuT4E5MMG0FBbCEYzjYT7OxLEvIHQLY2zWwQ3D+9luyOQTfKDiFD3iUIfPk8VqrKjgAiSfGFPecrg6HN6m/iBcwiDAo7WiBeawa+Kwh7tZoSCGLMqwlSAzVDhoK+6vH4G0P5wdkAAAAASUVORK5CYII=)}.sp-clear-display{background-repeat:no-repeat;background-position:center;background-image:url(data:image/gif;base64,R0lGODlhFAAUAPcAAAAAAJmZmZ2dnZ6enqKioqOjo6SkpKWlpaampqenp6ioqKmpqaqqqqurq/Hx8fLy8vT09PX19ff39/j4+Pn5+fr6+vv7+wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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wlipDNmefAtTrkSzB1RaIAoXodsABiZAEFB06gIBWC1mLVgBa0AAOw==)}.gjs-is__grab,.gjs-is__grab *{cursor:grab !important}.gjs-is__grabbing,.gjs-is__grabbing *{-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;cursor:grabbing !important}.gjs-one-bg{background-color:var(--gjs-primary-color)}.gjs-one-color{color:var(--gjs-primary-color)}.gjs-one-color-h:hover{color:var(--gjs-primary-color)}.gjs-two-bg{background-color:var(--gjs-secondary-color)}.gjs-two-color{color:var(--gjs-secondary-color)}.gjs-two-color-h:hover{color:var(--gjs-secondary-color)}.gjs-three-bg{background-color:var(--gjs-tertiary-color)}.gjs-three-color{color:var(--gjs-tertiary-color)}.gjs-three-color-h:hover{color:var(--gjs-tertiary-color)}.gjs-four-bg{background-color:var(--gjs-quaternary-color)}.gjs-four-color{color:var(--gjs-quaternary-color)}.gjs-four-color-h:hover{color:var(--gjs-quaternary-color)}.gjs-danger-bg{background-color:var(--gjs-color-red)}.gjs-danger-color{color:var(--gjs-color-red)}.gjs-danger-color-h:hover{color:var(--gjs-color-red)}.gjs-bg-main,.gjs-sm-colorp-c,.gjs-off-prv{background-color:var(--gjs-main-color)}.gjs-color-main,.gjs-sm-stack #gjs-sm-add,.gjs-off-prv{color:var(--gjs-font-color);fill:var(--gjs-font-color)}.gjs-color-active{color:var(--gjs-font-color-active);fill:var(--gjs-font-color-active)}.gjs-color-warn{color:var(--gjs-color-warn);fill:var(--gjs-color-warn)}.gjs-color-hl{color:var(--gjs-color-highlight);fill:var(--gjs-color-highlight)}.gjs-invis-invis,.gjs-clm-tags #gjs-clm-new,.gjs-no-app{background-color:transparent;border:none;color:inherit}.gjs-no-app{height:10px}.gjs-test::btn{color:"#fff"}.opac50{opacity:.5;filter:alpha(opacity=50)}.gjs-checker-bg,.gjs-field-colorp-c,.checker-bg,.gjs-sm-layer-preview{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==")}.gjs-no-user-select,.gjs-rte-toolbar,.gjs-layer-name,.gjs-grabbing,.gjs-grabbing *{-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none}.gjs-no-pointer-events,.gjs-margin-v-el,.gjs-padding-v-el,.gjs-fixedmargin-v-el,.gjs-fixedpadding-v-el,.gjs-resizer-c{pointer-events:none}.gjs-bdrag{pointer-events:none !important;position:absolute !important;z-index:10 !important;width:auto}.gjs-drag-helper{background-color:var(--gjs-color-blue) !important;pointer-events:none !important;position:absolute !important;z-index:10 !important;transform:scale(0.3) !important;transform-origin:top left !important;-webkit-transform-origin:top left !important;margin:15px !important;transition:none !important;outline:none !important}.gjs-grabbing,.gjs-grabbing *{cursor:grabbing !important;cursor:-webkit-grabbing !important}.gjs-grabbing{overflow:hidden}.gjs-off-prv{position:relative;z-index:10;padding:5px;cursor:pointer}.gjs-editor-cont ::-webkit-scrollbar-track{background:var(--gjs-secondary-dark-color)}.gjs-editor-cont ::-webkit-scrollbar-thumb{background-color:rgba(255,255,255,.2)}.gjs-editor-cont ::-webkit-scrollbar{width:8px}:root{--gjs-main-color: #444;--gjs-primary-color: #444;--gjs-secondary-color: #ddd;--gjs-tertiary-color: #804f7b;--gjs-quaternary-color: #d278c9;--gjs-font-color: #ddd;--gjs-font-color-active: #f8f8f8;--gjs-main-dark-color: rgba(0, 0, 0, 0.2);--gjs-secondary-dark-color: rgba(0, 0, 0, 0.1);--gjs-main-light-color: rgba(255, 255, 255, 0.1);--gjs-secondary-light-color: rgba(255, 255, 255, 0.7);--gjs-soft-light-color: rgba(255, 255, 255, 0.015);--gjs-color-blue: #3b97e3;--gjs-color-red: #dd3636;--gjs-color-yellow: #ffca6f;--gjs-color-green: #62c462;--gjs-left-width: 15%;--gjs-color-highlight: #71b7f1;--gjs-color-warn: #ffca6f;--gjs-handle-margin: -5px;--gjs-light-border: rgba(255, 255, 255, 0.05);--gjs-arrow-color: rgba(255, 255, 255, 0.7);--gjs-dark-text-shadow: rgba(0, 0, 0, 0.2);--gjs-color-input-padding: 22px;--gjs-input-padding: 5px;--gjs-padding-elem-classmanager: 5px 6px;--gjs-upload-padding: 150px 10px;--gjs-animation-duration: 0.2s;--gjs-main-font: Helvetica, sans-serif;--gjs-font-size: 0.75rem;--gjs-placeholder-background-color: var(--gjs-color-green);--gjs-canvas-top: 40px;--gjs-flex-item-gap: 5px}.clear{clear:both}.no-select,.gjs-clm-tags #gjs-clm-close,.gjs-category-title,.gjs-layer-title,.gjs-block-category .gjs-title,.gjs-sm-sector-title,.gjs-item-title,.gjs-com-no-select,.gjs-com-no-select img{-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none}.gjs-no-touch-actions{touch-action:none}.gjs-disabled{-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;opacity:.5;filter:alpha(opacity=50)}.gjs-editor{font-family:var(--gjs-main-font);font-size:var(--gjs-font-size);position:relative;box-sizing:border-box;height:100%}.gjs-freezed,.gjs-freezed{opacity:.5;filter:alpha(opacity=50);pointer-events:none}.gjs-traits-label{border-bottom:1px solid var(--gjs-main-dark-color);font-weight:lighter;margin-bottom:5px;padding:10px;text-align:left}.gjs-label-wrp{width:30%;min-width:30%}.gjs-field-wrp{flex-grow:1}.gjs-item-title{display:flex;align-items:center}.gjs-caret{width:17px;height:17px;min-width:17px;transform:rotate(-90deg)}.gjs-trt-header{font-weight:lighter;padding:10px}.gjs-trt-trait{display:flex;justify-content:flex-start;padding:5px 10px;font-weight:lighter;align-items:center;text-align:left}.gjs-trt-traits{font-size:var(--gjs-font-size)}.gjs-trt-trait .gjs-label{text-align:left;text-overflow:ellipsis;overflow:hidden}.gjs-guide-info{position:absolute}.gjs-guide-info__content{position:absolute;height:100%;display:flex;width:100%;padding:5px}.gjs-guide-info__line{position:relative;margin:auto}.gjs-guide-info__line::before,.gjs-guide-info__line::after{content:"";display:block;position:absolute;background-color:inherit}.gjs-guide-info__y{padding:0 5px}.gjs-guide-info__y .gjs-guide-info__content{justify-content:center}.gjs-guide-info__y .gjs-guide-info__line{width:100%;height:1px}.gjs-guide-info__y .gjs-guide-info__line::before,.gjs-guide-info__y .gjs-guide-info__line::after{width:1px;height:10px;top:0;bottom:0;left:0;margin:auto}.gjs-guide-info__y .gjs-guide-info__line::after{left:auto;right:0}.gjs-guide-info__x{padding:5px 0}.gjs-guide-info__x .gjs-guide-info__content{align-items:center}.gjs-guide-info__x .gjs-guide-info__line{height:100%;width:1px}.gjs-guide-info__x .gjs-guide-info__line::before,.gjs-guide-info__x .gjs-guide-info__line::after{width:10px;height:1px;left:0;right:0;top:0;margin:auto;transform:translateX(-50%)}.gjs-guide-info__x .gjs-guide-info__line::after{top:auto;bottom:0}.gjs-badge{white-space:nowrap}.gjs-badge__icon{vertical-align:middle;display:inline-block;width:15px;height:15px}.gjs-badge__icon svg{fill:currentColor}.gjs-badge__name{display:inline-block;vertical-align:middle}.gjs-frame-wrapper{position:absolute;width:100%;height:100%;left:0;right:0;margin:auto}.gjs-frame-wrapper--anim{transition:width .35s ease,height .35s ease}.gjs-frame-wrapper__top{transform:translateY(-100%) translateX(-50%);display:flex;padding:5px 0;position:absolute;width:100%;left:50%;top:0}.gjs-frame-wrapper__top-r{margin-left:auto}.gjs-frame-wrapper__left{position:absolute;left:0;transform:translateX(-100%) translateY(-50%);height:100%;top:50%}.gjs-frame-wrapper__bottom{position:absolute;bottom:0;transform:translateY(100%) translateX(-50%);width:100%;left:50%}.gjs-frame-wrapper__right{position:absolute;right:0;transform:translateX(100%) translateY(-50%);height:100%;top:50%}.gjs-frame-wrapper__icon{width:24px;cursor:pointer}.gjs-frame-wrapper__icon>svg{fill:currentColor}.gjs-padding-v-top,.gjs-fixedpadding-v-top{width:100%;top:0;left:0}.gjs-padding-v-right,.gjs-fixedpadding-v-right{right:0}.gjs-padding-v-bottom,.gjs-fixedpadding-v-bottom{width:100%;left:0;bottom:0}.gjs-padding-v-left,.gjs-fixedpadding-v-left{left:0}.gjs-cv-canvas{box-sizing:border-box;width:calc(100% - var(--gjs-left-width));height:calc(100% - var(--gjs-canvas-top));bottom:0;overflow:hidden;z-index:1;position:absolute;left:0;top:var(--gjs-canvas-top)}.gjs-cv-canvas-bg{background-color:rgba(0,0,0,.15)}.gjs-cv-canvas.gjs-cui{width:100%;height:100%;top:0}.gjs-cv-canvas.gjs-is__grab .gjs-cv-canvas__frames,.gjs-cv-canvas.gjs-is__grabbing .gjs-cv-canvas__frames{pointer-events:none}.gjs-cv-canvas__frames{position:absolute;top:0;left:0;width:100%;height:100%}.gjs-cv-canvas__spots{position:absolute;pointer-events:none;z-index:1}.gjs-cv-canvas .gjs-ghost{display:none;pointer-events:none;background-color:#5b5b5b;border:2px dashed #ccc;position:absolute;z-index:10;opacity:.55;filter:alpha(opacity=55)}.gjs-cv-canvas .gjs-highlighter,.gjs-cv-canvas .gjs-highlighter-sel{position:absolute;outline:1px solid var(--gjs-color-blue);outline-offset:-1px;pointer-events:none;width:100%;height:100%}.gjs-cv-canvas .gjs-highlighter-warning{outline:3px solid var(--gjs-color-yellow)}.gjs-cv-canvas .gjs-highlighter-sel{outline:2px solid var(--gjs-color-blue);outline-offset:-2px}.gjs-cv-canvas #gjs-tools,.gjs-cv-canvas .gjs-tools{width:100%;height:100%;position:absolute;top:0;left:0;outline:none;z-index:1}.gjs-cv-canvas *{box-sizing:border-box}.gjs-frame{outline:medium none;height:100%;width:100%;border:none;margin:auto;display:block;transition:width .35s ease,height .35s ease;position:absolute;top:0;bottom:0;left:0;right:0}.gjs-toolbar{position:absolute;background-color:var(--gjs-color-blue);white-space:nowrap;color:#fff;z-index:10;top:0;left:0}.gjs-toolbar-item{width:26px;padding:5px;cursor:pointer;display:inline-block}.gjs-toolbar-item svg{fill:currentColor;vertical-align:middle}.gjs-resizer-c{position:absolute;left:0;top:0;width:100%;height:100%;z-index:9}.gjs-margin-v-el,.gjs-padding-v-el,.gjs-fixedmargin-v-el,.gjs-fixedpadding-v-el{opacity:.1;filter:alpha(opacity=10);position:absolute;background-color:#ff0}.gjs-fixedmargin-v-el,.gjs-fixedpadding-v-el{opacity:.2;filter:alpha(opacity=20)}.gjs-padding-v-el,.gjs-fixedpadding-v-el{background-color:navy}.gjs-resizer-h{pointer-events:all;position:absolute;border:3px solid var(--gjs-color-blue);width:10px;height:10px;background-color:#fff;margin:var(--gjs-handle-margin)}.gjs-resizer-h-tl{top:0;left:0;cursor:nwse-resize}.gjs-resizer-h-tr{top:0;right:0;cursor:nesw-resize}.gjs-resizer-h-tc{top:0;margin:var(--gjs-handle-margin) auto;left:0;right:0;cursor:ns-resize}.gjs-resizer-h-cl{left:0;margin:auto var(--gjs-handle-margin);top:0;bottom:0;cursor:ew-resize}.gjs-resizer-h-cr{margin:auto var(--gjs-handle-margin);top:0;bottom:0;right:0;cursor:ew-resize}.gjs-resizer-h-bl{bottom:0;left:0;cursor:nesw-resize}.gjs-resizer-h-bc{bottom:0;margin:var(--gjs-handle-margin) auto;left:0;right:0;cursor:ns-resize}.gjs-resizer-h-br{bottom:0;right:0;cursor:nwse-resize}.gjs-pn-panel .gjs-resizer-h{background-color:rgba(0,0,0,.2);border:none;opacity:0;transition:opacity .25s}.gjs-pn-panel .gjs-resizer-h:hover{opacity:1}.gjs-pn-panel .gjs-resizer-h-tc,.gjs-pn-panel .gjs-resizer-h-bc{margin:0 auto;width:100%}.gjs-pn-panel .gjs-resizer-h-cr,.gjs-pn-panel .gjs-resizer-h-cl{margin:auto 0;height:100%}.gjs-resizing .gjs-highlighter,.gjs-resizing .gjs-badge{display:none !important}.gjs-resizing-tl *{cursor:nwse-resize !important}.gjs-resizing-tr *{cursor:nesw-resize !important}.gjs-resizing-tc *{cursor:ns-resize !important}.gjs-resizing-cl *{cursor:ew-resize !important}.gjs-resizing-cr *{cursor:ew-resize !important}.gjs-resizing-bl *{cursor:nesw-resize !important}.gjs-resizing-bc *{cursor:ns-resize !important}.gjs-resizing-br *{cursor:nwse-resize !important}.btn-cl,.gjs-am-close,.gjs-mdl-btn-close{opacity:.3;filter:alpha(opacity=30);font-size:25px;cursor:pointer}.btn-cl:hover,.gjs-am-close:hover,.gjs-mdl-btn-close:hover{opacity:.7;filter:alpha(opacity=70)}.no-dots,.ui-resizable-handle{border:none !important;margin:0 !important;outline:none !important}.gjs-com-dashed *{outline:1px dashed #888;outline-offset:-2px;box-sizing:border-box}.gjs-com-badge,.gjs-badge{pointer-events:none;background-color:var(--gjs-color-blue);color:#fff;padding:2px 5px;position:absolute;z-index:1;font-size:12px;outline:none;display:none}.gjs-badge-warning{background-color:var(--gjs-color-yellow)}.gjs-placeholder,.gjs-com-placeholder,.gjs-placeholder{position:absolute;z-index:10;pointer-events:none;display:none}.gjs-placeholder,.gjs-placeholder{border-style:solid !important;outline:none;box-sizing:border-box;transition:top var(--gjs-animation-duration),left var(--gjs-animation-duration),width var(--gjs-animation-duration),height var(--gjs-animation-duration)}.gjs-placeholder.horizontal,.gjs-com-placeholder.horizontal,.gjs-placeholder.horizontal{border-color:transparent var(--gjs-placeholder-background-color);border-width:3px 5px;margin:-3px 0 0}.gjs-placeholder.vertical,.gjs-com-placeholder.vertical,.gjs-placeholder.vertical{border-color:var(--gjs-placeholder-background-color) transparent;border-width:5px 3px;margin:0 0 0 -3px}.gjs-placeholder-int,.gjs-com-placeholder-int,.gjs-placeholder-int{background-color:var(--gjs-placeholder-background-color);box-shadow:0 0 3px rgba(0,0,0,.2);height:100%;width:100%;pointer-events:none;padding:1.5px;outline:none}.gjs-pn-panel{display:inline-block;position:absolute;box-sizing:border-box;text-align:center;padding:5px;z-index:3}.gjs-pn-panel .icon-undo,.gjs-pn-panel .icon-redo{font-size:20px;height:30px;width:25px}.gjs-pn-commands{width:calc(100% - var(--gjs-left-width));left:0;top:0;box-shadow:0 0 5px var(--gjs-main-dark-color)}.gjs-pn-options{right:var(--gjs-left-width);top:0}.gjs-pn-views{border-bottom:2px solid var(--gjs-main-dark-color);right:0;width:var(--gjs-left-width);z-index:4}.gjs-pn-views-container{height:100%;padding:42px 0 0;right:0;width:var(--gjs-left-width);overflow:auto;box-shadow:0 0 5px var(--gjs-main-dark-color)}.gjs-pn-buttons{align-items:center;display:flex;justify-content:space-between}.gjs-pn-btn{box-sizing:border-box;min-height:30px;min-width:30px;line-height:21px;background-color:transparent;border:none;font-size:18px;margin-right:5px;border-radius:2px;padding:4px;position:relative;cursor:pointer}.gjs-pn-btn.gjs-pn-active{background-color:rgba(0,0,0,.15);box-shadow:0 0 3px rgba(0,0,0,.25) inset}.gjs-pn-btn svg{fill:currentColor}.gjs-label{line-height:18px}.gjs-fields{display:flex}.gjs-select{padding:0;width:100%}.gjs-select select{padding-right:10px}.gjs-select:-moz-focusring,.gjs-select select:-moz-focusring{color:transparent;text-shadow:0 0 0 var(--gjs-secondary-light-color)}.gjs-input:focus,.gjs-button:focus,.gjs-btn-prim:focus,.gjs-select:focus,.gjs-select select:focus{outline:none}.gjs-field input,.gjs-field select,.gjs-field textarea{-webkit-appearance:none;-moz-appearance:none;appearance:none;color:inherit;border:none;background-color:transparent;box-sizing:border-box;width:100%;position:relative;padding:var(--gjs-input-padding);z-index:1}.gjs-field input:focus,.gjs-field select:focus,.gjs-field textarea:focus{outline:none}.gjs-field input[type=number]{-moz-appearance:textfield}.gjs-field input[type=number]::-webkit-outer-spin-button,.gjs-field input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.gjs-field-range{flex:9 1 auto}.gjs-field-integer input{padding-right:30px}.gjs-select option,.gjs-field-select option,.gjs-clm-select option,.gjs-sm-select option,.gjs-fields option,.gjs-sm-unit option{background-color:var(--gjs-main-color);color:var(--gjs-font-color)}.gjs-field{background-color:var(--gjs-main-dark-color);border:none;box-shadow:none;border-radius:2px;box-sizing:border-box;padding:0;position:relative}.gjs-field textarea{resize:vertical}.gjs-field .gjs-sel-arrow{height:100%;width:9px;position:absolute;right:0;top:0;z-index:0}.gjs-field .gjs-d-s-arrow{bottom:0;top:0;margin:auto;right:var(--gjs-input-padding);border-top:4px solid var(--gjs-arrow-color);position:absolute;height:0;width:0;border-left:3px solid transparent;border-right:4px solid transparent;cursor:pointer}.gjs-field-arrows{position:absolute;cursor:ns-resize;margin:auto;height:20px;width:9px;z-index:10;bottom:0;right:calc(var(--gjs-input-padding) - 2px);top:0}.gjs-field-color,.gjs-field-radio{width:100%}.gjs-field-color input{padding-right:var(--gjs-color-input-padding);box-sizing:border-box}.gjs-field-colorp{border-left:1px solid var(--gjs-main-dark-color);box-sizing:border-box;height:100%;padding:2px;position:absolute;right:0;top:0;width:var(--gjs-color-input-padding);z-index:10}.gjs-field-colorp .gjs-checker-bg,.gjs-field-colorp .gjs-field-colorp-c{height:100%;width:100%;border-radius:1px}.gjs-field-colorp-c{height:100%;position:relative;width:100%}.gjs-field-color-picker{background-color:var(--gjs-font-color);cursor:pointer;height:100%;width:100%;box-shadow:0 0 1px var(--gjs-main-dark-color);border-radius:1px;position:absolute;top:0}.gjs-field-checkbox{padding:0;width:17px;height:17px;display:block;cursor:pointer}.gjs-field-checkbox input{display:none}.gjs-field-checkbox input:checked+.gjs-chk-icon{border-color:rgba(255,255,255,.5);border-width:0 2px 2px 0;border-style:solid}.gjs-radio-item{flex:1 1 auto;text-align:center;border-left:1px solid var(--gjs-dark-text-shadow)}.gjs-radio-item:first-child{border:none}.gjs-radio-item:hover{background:var(--gjs-main-dark-color)}.gjs-radio-item input{display:none}.gjs-radio-item input:checked+.gjs-radio-item-label{background-color:rgba(255,255,255,.2)}.gjs-radio-items{display:flex}.gjs-radio-item-label{cursor:pointer;display:block;padding:var(--gjs-input-padding)}.gjs-field-units{position:absolute;margin:auto;right:10px;bottom:0;top:0}.gjs-field-unit{position:absolute;right:10px;top:3px;font-size:10px;color:var(--gjs-arrow-color);cursor:pointer}.gjs-input-unit{text-align:center}.gjs-field-arrow-u,.gjs-field-arrow-d{position:absolute;height:0;width:0;border-left:3px solid transparent;border-right:4px solid transparent;border-top:4px solid var(--gjs-arrow-color);bottom:4px;cursor:pointer}.gjs-field-arrow-u{border-bottom:4px solid var(--gjs-arrow-color);border-top:none;top:4px}.gjs-field-select{padding:0}.gjs-field-range{background-color:transparent;border:none;box-shadow:none;padding:0}.gjs-field-range input{margin:0;height:100%}.gjs-field-range input:focus{outline:none}.gjs-field-range input::-webkit-slider-thumb{-webkit-appearance:none;margin-top:-4px;height:10px;width:10px;border:1px solid var(--gjs-main-dark-color);border-radius:100%;background-color:var(--gjs-font-color);cursor:pointer}.gjs-field-range input::-moz-range-thumb{height:10px;width:10px;border:1px solid var(--gjs-main-dark-color);border-radius:100%;background-color:var(--gjs-font-color);cursor:pointer}.gjs-field-range input::-ms-thumb{height:10px;width:10px;border:1px solid var(--gjs-main-dark-color);border-radius:100%;background-color:var(--gjs-font-color);cursor:pointer}.gjs-field-range input::-moz-range-track{background-color:var(--gjs-main-dark-color);border-radius:1px;margin-top:3px;height:3px}.gjs-field-range input::-webkit-slider-runnable-track{background-color:var(--gjs-main-dark-color);border-radius:1px;margin-top:3px;height:3px}.gjs-field-range input::-ms-track{background-color:var(--gjs-main-dark-color);border-radius:1px;margin-top:3px;height:3px}.gjs-btn-prim{color:inherit;background-color:var(--gjs-main-light-color);border-radius:2px;padding:3px 6px;padding:var(--gjs-input-padding);cursor:pointer;border:none}.gjs-btn-prim:active{background-color:var(--gjs-main-light-color)}.gjs-btn--full{width:100%}.gjs-chk-icon{-ms-transform:rotate(45deg);-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);transform:rotate(45deg);box-sizing:border-box;display:block;height:14px;margin:0 5px;width:6px}.gjs-add-trasp{background:none;border:none;color:var(--gjs-font-color);cursor:pointer;font-size:1em;border-radius:2px;opacity:.75;filter:alpha(opacity=75)}.gjs-add-trasp:hover{opacity:1;filter:alpha(opacity=100)}.gjs-add-trasp:active{background-color:rgba(0,0,0,.2)}.gjs-devices-c{display:flex;align-items:center;padding:2px 3px 3px 3px}.gjs-devices-c .gjs-device-label{flex-grow:2;text-align:left;margin-right:10px}.gjs-devices-c .gjs-select{flex-grow:20}.gjs-devices-c .gjs-add-trasp{flex-grow:1;margin-left:5px}.gjs-category-open,.gjs-block-category.gjs-open,.gjs-sm-sector.gjs-sm-open{border-bottom:1px solid rgba(0,0,0,.25)}.gjs-category-title,.gjs-layer-title,.gjs-block-category .gjs-title,.gjs-sm-sector-title,.gjs-item-title{font-weight:lighter;background-color:var(--gjs-secondary-dark-color);letter-spacing:1px;padding:9px 10px 9px 20px;border-bottom:1px solid rgba(0,0,0,.25);text-align:left;position:relative;cursor:pointer}.gjs-sm-clear{cursor:pointer;width:14px;min-width:14px;height:14px;margin-left:3px}.gjs-sm-header{font-weight:lighter;padding:10px}.gjs-sm-sector{clear:both;font-weight:lighter;text-align:left}.gjs-sm-sector-title{display:flex;align-items:center}.gjs-sm-sector-caret{width:17px;height:17px;min-width:17px;transform:rotate(-90deg)}.gjs-sm-sector-label{margin-left:5px}.gjs-sm-sector.gjs-sm-open .gjs-sm-sector-caret{transform:none}.gjs-sm-properties{font-size:var(--gjs-font-size);padding:10px 5px;display:flex;flex-wrap:wrap;align-items:flex-end;box-sizing:border-box;width:100%}.gjs-sm-label{margin:5px 5px 3px 0;display:flex;align-items:center}.gjs-sm-close-btn,.gjs-sm-preview-file-close{display:block;font-size:23px;position:absolute;cursor:pointer;right:5px;top:0;opacity:.7;filter:alpha(opacity=70)}.gjs-sm-close-btn:hover,.gjs-sm-preview-file-close:hover{opacity:.9;filter:alpha(opacity=90)}.gjs-sm-field,.gjs-clm-select,.gjs-clm-field{width:100%;position:relative}.gjs-sm-field input,.gjs-clm-select input,.gjs-clm-field input,.gjs-sm-field select,.gjs-clm-select select,.gjs-clm-field select{background-color:transparent;color:rgba(255,255,255,.7);border:none;width:100%}.gjs-sm-field input,.gjs-clm-select input,.gjs-clm-field input{box-sizing:border-box}.gjs-sm-field select,.gjs-clm-select select,.gjs-clm-field select{position:relative;z-index:1;-webkit-appearance:none;-moz-appearance:none;appearance:none}.gjs-sm-field select::-ms-expand,.gjs-clm-select select::-ms-expand,.gjs-clm-field select::-ms-expand{display:none}.gjs-sm-field select:-moz-focusring,.gjs-clm-select select:-moz-focusring,.gjs-clm-field select:-moz-focusring{color:transparent;text-shadow:0 0 0 var(--gjs-secondary-light-color)}.gjs-sm-field input:focus,.gjs-clm-select input:focus,.gjs-clm-field input:focus,.gjs-sm-field select:focus,.gjs-clm-select select:focus,.gjs-clm-field select:focus{outline:none}.gjs-sm-field .gjs-sm-unit,.gjs-clm-select .gjs-sm-unit,.gjs-clm-field .gjs-sm-unit{position:absolute;right:10px;top:3px;font-size:10px;color:var(--gjs-secondary-light-color);cursor:pointer}.gjs-sm-field .gjs-clm-sel-arrow,.gjs-clm-select .gjs-clm-sel-arrow,.gjs-clm-field .gjs-clm-sel-arrow,.gjs-sm-field .gjs-sm-int-arrows,.gjs-clm-select .gjs-sm-int-arrows,.gjs-clm-field .gjs-sm-int-arrows,.gjs-sm-field .gjs-sm-sel-arrow,.gjs-clm-select .gjs-sm-sel-arrow,.gjs-clm-field .gjs-sm-sel-arrow{height:100%;width:9px;position:absolute;right:0;top:0;cursor:ns-resize}.gjs-sm-field .gjs-sm-sel-arrow,.gjs-clm-select .gjs-sm-sel-arrow,.gjs-clm-field .gjs-sm-sel-arrow{cursor:pointer}.gjs-sm-field .gjs-clm-d-s-arrow,.gjs-clm-select .gjs-clm-d-s-arrow,.gjs-clm-field .gjs-clm-d-s-arrow,.gjs-sm-field .gjs-sm-d-arrow,.gjs-clm-select .gjs-sm-d-arrow,.gjs-clm-field .gjs-sm-d-arrow,.gjs-sm-field .gjs-sm-d-s-arrow,.gjs-clm-select .gjs-sm-d-s-arrow,.gjs-clm-field .gjs-sm-d-s-arrow,.gjs-sm-field .gjs-sm-u-arrow,.gjs-clm-select .gjs-sm-u-arrow,.gjs-clm-field .gjs-sm-u-arrow{position:absolute;height:0;width:0;border-left:3px solid transparent;border-right:4px solid transparent;cursor:pointer}.gjs-sm-field .gjs-sm-u-arrow,.gjs-clm-select .gjs-sm-u-arrow,.gjs-clm-field .gjs-sm-u-arrow{border-bottom:4px solid var(--gjs-secondary-light-color);top:4px}.gjs-sm-field .gjs-clm-d-s-arrow,.gjs-clm-select .gjs-clm-d-s-arrow,.gjs-clm-field .gjs-clm-d-s-arrow,.gjs-sm-field .gjs-sm-d-arrow,.gjs-clm-select .gjs-sm-d-arrow,.gjs-clm-field .gjs-sm-d-arrow,.gjs-sm-field .gjs-sm-d-s-arrow,.gjs-clm-select .gjs-sm-d-s-arrow,.gjs-clm-field .gjs-sm-d-s-arrow{border-top:4px solid var(--gjs-secondary-light-color);bottom:4px}.gjs-sm-field .gjs-clm-d-s-arrow,.gjs-clm-select .gjs-clm-d-s-arrow,.gjs-clm-field .gjs-clm-d-s-arrow,.gjs-sm-field .gjs-sm-d-s-arrow,.gjs-clm-select .gjs-sm-d-s-arrow,.gjs-clm-field .gjs-sm-d-s-arrow{bottom:7px}.gjs-sm-field.gjs-sm-color,.gjs-sm-color.gjs-clm-field,.gjs-sm-field.gjs-sm-input,.gjs-sm-input.gjs-clm-field,.gjs-sm-field.gjs-sm-integer,.gjs-sm-integer.gjs-clm-field,.gjs-sm-field.gjs-sm-list,.gjs-sm-list.gjs-clm-field,.gjs-sm-field.gjs-sm-select,.gjs-clm-select,.gjs-sm-select.gjs-clm-field{background-color:var(--gjs-main-dark-color);border:1px solid rgba(0,0,0,.1);box-shadow:1px 1px 0 var(--gjs-main-light-color);color:var(--gjs-secondary-light-color);border-radius:2px;box-sizing:border-box;padding:0 5px}.gjs-sm-field.gjs-sm-composite,.gjs-sm-composite.gjs-clm-select,.gjs-sm-composite.gjs-clm-field{border-radius:2px}.gjs-sm-field.gjs-sm-select,.gjs-clm-select,.gjs-sm-select.gjs-clm-field{padding:0}.gjs-sm-field.gjs-sm-select select,.gjs-clm-select select,.gjs-sm-select.gjs-clm-field select{height:20px}.gjs-sm-field.gjs-sm-select option,.gjs-clm-select option,.gjs-sm-select.gjs-clm-field option{padding:3px 0}.gjs-sm-field.gjs-sm-composite,.gjs-sm-composite.gjs-clm-select,.gjs-sm-composite.gjs-clm-field{background-color:var(--gjs-secondary-dark-color);border:1px solid rgba(0,0,0,.25)}.gjs-sm-field.gjs-sm-list,.gjs-sm-list.gjs-clm-select,.gjs-sm-list.gjs-clm-field{width:auto;padding:0;overflow:hidden;float:left}.gjs-sm-field.gjs-sm-list input,.gjs-sm-list.gjs-clm-select input,.gjs-sm-list.gjs-clm-field input{display:none}.gjs-sm-field.gjs-sm-list label,.gjs-sm-list.gjs-clm-select label,.gjs-sm-list.gjs-clm-field label{cursor:pointer;padding:5px;display:block}.gjs-sm-field.gjs-sm-list .gjs-sm-radio:checked+label,.gjs-sm-list.gjs-clm-select .gjs-sm-radio:checked+label,.gjs-sm-list.gjs-clm-field .gjs-sm-radio:checked+label{background-color:rgba(255,255,255,.2)}.gjs-sm-field.gjs-sm-list .gjs-sm-icon,.gjs-sm-list.gjs-clm-select .gjs-sm-icon,.gjs-sm-list.gjs-clm-field .gjs-sm-icon{background-repeat:no-repeat;background-position:center;text-shadow:none;line-height:normal}.gjs-sm-field.gjs-sm-integer select,.gjs-sm-integer.gjs-clm-select select,.gjs-sm-integer.gjs-clm-field select{width:auto;padding:0}.gjs-sm-list .gjs-sm-el{float:left;border-left:1px solid var(--gjs-main-dark-color)}.gjs-sm-list .gjs-sm-el:first-child{border:none}.gjs-sm-list .gjs-sm-el:hover{background:var(--gjs-main-dark-color)}.gjs-sm-slider .gjs-field-integer{flex:1 1 65px}.gjs-sm-property{box-sizing:border-box;float:left;width:50%;margin-bottom:5px;padding:0 5px}.gjs-sm-property--full,.gjs-sm-property.gjs-sm-composite,.gjs-sm-property.gjs-sm-file,.gjs-sm-property.gjs-sm-list,.gjs-sm-property.gjs-sm-stack,.gjs-sm-property.gjs-sm-slider,.gjs-sm-property.gjs-sm-color{width:100%}.gjs-sm-property .gjs-sm-btn{background-color:color-mix(in srgb, var(--gjs-main-dark-color), white 13%);border-radius:2px;box-shadow:1px 1px 0 color-mix(in srgb, var(--gjs-main-dark-color), white 2%),1px 1px 0 color-mix(in srgb, var(--gjs-main-dark-color), white 17%) inset;padding:5px;position:relative;text-align:center;height:auto;width:100%;cursor:pointer;color:var(--gjs-font-color);box-sizing:border-box;text-shadow:-1px -1px 0 var(--gjs-main-dark-color);border:none;opacity:.85;filter:alpha(opacity=85)}.gjs-sm-property .gjs-sm-btn-c{box-sizing:border-box;float:left;width:100%}.gjs-sm-property__text-shadow .gjs-sm-layer-preview-cnt::after{color:#000;content:"T";font-weight:900;line-height:17px;padding:0 4px}.gjs-sm-preview-file{background-color:var(--gjs-light-border);border-radius:2px;margin-top:5px;position:relative;overflow:hidden;border:1px solid color-mix(in srgb, var(--gjs-light-border), black 1%);padding:3px 20px}.gjs-sm-preview-file-cnt{background-size:auto 100%;background-repeat:no-repeat;background-position:center center;height:50px}.gjs-sm-preview-file-close{top:-5px;width:14px;height:14px}.gjs-sm-layers{margin-top:5px;padding:1px 3px;min-height:30px}.gjs-sm-layer{background-color:rgba(255,255,255,.055);border-radius:2px;margin:2px 0;padding:7px;position:relative}.gjs-sm-layer.gjs-sm-active{background-color:rgba(255,255,255,.12)}.gjs-sm-layer .gjs-sm-label-wrp{display:flex;align-items:center}.gjs-sm-layer #gjs-sm-move{height:14px;width:14px;min-width:14px;cursor:grab}.gjs-sm-layer #gjs-sm-label{flex-grow:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin:0 5px}.gjs-sm-layer-preview{height:15px;width:15px;min-width:15px;margin-right:5px;border-radius:2px}.gjs-sm-layer-preview-cnt{border-radius:2px;background-color:#fff;height:100%;width:100%;background-size:cover !important}.gjs-sm-layer #gjs-sm-close-layer{display:block;cursor:pointer;height:14px;width:14px;min-width:14px;opacity:.5;filter:alpha(opacity=50)}.gjs-sm-layer #gjs-sm-close-layer:hover{opacity:.8;filter:alpha(opacity=80)}.gjs-sm-stack .gjs-sm-properties{padding:5px 0 0}.gjs-sm-stack #gjs-sm-add{background:none;border:none;cursor:pointer;outline:none;position:absolute;right:0;top:-17px;opacity:.75;padding:0;width:18px;height:18px}.gjs-sm-stack #gjs-sm-add:hover{opacity:1;filter:alpha(opacity=100)}.gjs-sm-colorp-c{height:100%;width:20px;position:absolute;right:0;top:0;box-sizing:border-box;border-radius:2px;padding:2px}.gjs-sm-colorp-c .gjs-checker-bg,.gjs-sm-colorp-c .gjs-field-colorp-c{height:100%;width:100%;border-radius:1px}.gjs-sm-color-picker{background-color:var(--gjs-font-color);cursor:pointer;height:16px;width:100%;margin-top:-16px;box-shadow:0 0 1px var(--gjs-main-dark-color);border-radius:1px}.gjs-sm-btn-upload #gjs-sm-upload{left:0;top:0;position:absolute;width:100%;opacity:0;cursor:pointer}.gjs-sm-btn-upload #gjs-sm-label{padding:2px 0}.gjs-sm-layer>#gjs-sm-move{opacity:.7;filter:alpha(opacity=70);cursor:move;font-size:12px;float:left;margin:0 5px 0 0}.gjs-sm-layer>#gjs-sm-move:hover{opacity:.9;filter:alpha(opacity=90)}.gjs-blocks-c{display:flex;flex-wrap:wrap;justify-content:flex-start}.gjs-block-categories{display:flex;flex-direction:column}.gjs-block-category{width:100%}.gjs-block-category .gjs-caret-icon{margin-right:5px}.gjs-block{-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;width:45%;min-width:45px;padding:1em;box-sizing:border-box;min-height:90px;cursor:all-scroll;font-size:11px;font-weight:lighter;text-align:center;display:flex;flex-direction:column;justify-content:space-between;border:1px solid rgba(0,0,0,.2);border-radius:3px;margin:10px 2.5% 5px;box-shadow:0 1px 0 0 rgba(0,0,0,.15);transition:all .2s ease 0s;transition-property:box-shadow,color}.gjs-block:hover{box-shadow:0 3px 4px 0 rgba(0,0,0,.15)}.gjs-block svg{fill:currentColor}.gjs-block__media{margin-bottom:10px;pointer-events:none}.gjs-block-svg{width:54px;fill:currentColor}.gjs-block-svg-path{fill:currentColor}.gjs-block.fa{font-size:2em;line-height:2em;padding:11px}.gjs-block-label{line-height:normal;font-size:.65rem;font-weight:normal;font-family:Helvetica,sans-serif;overflow:hidden;text-overflow:ellipsis;pointer-events:none}.gjs-block.gjs-bdrag{width:auto;padding:0}.gjs-selected-parent{border:1px solid var(--gjs-color-yellow)}.gjs-opac50{opacity:.5;filter:alpha(opacity=50)}.gjs-layer{font-weight:lighter;text-align:left;position:relative;font-size:var(--gjs-font-size);display:grid}.gjs-layer-item{display:flex;align-items:center;justify-content:space-between;padding:5px 10px;border-bottom:1px solid var(--gjs-main-dark-color);background-color:var(--gjs-secondary-dark-color);gap:var(--gjs-flex-item-gap);cursor:pointer}.gjs-layer-item-left,.gjs-layer-item-right{display:flex;align-items:center;gap:var(--gjs-flex-item-gap)}.gjs-layer-item-left{width:100%}.gjs-layer-hidden{opacity:.55;filter:alpha(opacity=55)}.gjs-layer-vis{box-sizing:content-box;cursor:pointer;z-index:1}.gjs-layer-vis-on,.gjs-layer-vis-off{display:flex;width:13px}.gjs-layer-vis-off{display:none}.gjs-layer-vis.gjs-layer-off .gjs-layer-vis-on{display:none}.gjs-layer-vis.gjs-layer-off .gjs-layer-vis-off{display:flex}.gjs-layer-caret{width:15px;cursor:pointer;box-sizing:content-box;transform:rotate(90deg);display:flex;opacity:.7;filter:alpha(opacity=70)}.gjs-layer-caret:hover{opacity:1;filter:alpha(opacity=100)}.gjs-layer.open>.gjs-layer-item .gjs-layer-caret{transform:rotate(180deg)}.gjs-layer-title{padding:0;display:flex;align-items:center;background-color:transparent !important;border-bottom:none}.gjs-layer-title-inn{align-items:center;position:relative;display:flex;gap:var(--gjs-flex-item-gap)}.gjs-layer-title-c{width:100%}.gjs-layer__icon{display:block;width:100%;max-width:15px;max-height:15px;padding-left:5px}.gjs-layer__icon svg{fill:currentColor}.gjs-layer-name{display:inline-block;box-sizing:content-box;overflow:hidden;white-space:nowrap;max-width:170px;height:auto}.gjs-layer-name--no-edit{text-overflow:ellipsis}.gjs-layer>.gjs-layer-children{display:none}.gjs-layer.open>.gjs-layer-children{display:block}.gjs-layer-no-chld>.gjs-layer-title-inn>.gjs-layer-caret{visibility:hidden}.gjs-layer-move{display:flex;width:13px;box-sizing:content-box;cursor:move}.gjs-layer.gjs-hovered .gjs-layer-item{background-color:var(--gjs-soft-light-color)}.gjs-layer.gjs-selected .gjs-layer-item{background-color:var(--gjs-main-light-color)}.gjs-layers{position:relative;height:100%}.gjs-layers #gjs-placeholder{width:100%;position:absolute}.gjs-layers #gjs-placeholder #gjs-plh-int{height:100%;padding:1px}.gjs-layers #gjs-placeholder #gjs-plh-int.gjs-insert{background-color:var(--gjs-color-green)}#gjs-clm-add-tag,.gjs-clm-tags-btn{background-color:rgba(255,255,255,.15);border-radius:2px;padding:3px;margin-right:3px;border:1px solid rgba(0,0,0,.15);width:24px;height:24px;box-sizing:border-box;cursor:pointer}.gjs-clm-tags-btn svg{fill:currentColor;display:block}.gjs-clm-header{display:flex;align-items:center;margin:7px 0}.gjs-clm-header-status{flex-shrink:1;margin-left:auto}.gjs-clm-tag{display:flex;overflow:hidden;align-items:center;border-radius:3px;margin:0 3px 3px 0;padding:5px;cursor:default}.gjs-clm-tag-status,.gjs-clm-tag-close{width:12px;height:12px;flex-shrink:1}.gjs-clm-tag-status svg,.gjs-clm-tag-close svg{vertical-align:middle;fill:currentColor}.gjs-clm-sels-info{margin:7px 0;text-align:left}.gjs-clm-sel-id{font-size:.9em;opacity:.5;filter:alpha(opacity=50)}.gjs-clm-label-sel{float:left;padding-right:5px}.gjs-clm-tags{font-size:var(--gjs-font-size);padding:10px 5px}.gjs-clm-tags #gjs-clm-sel{padding:7px 0;float:left}.gjs-clm-tags #gjs-clm-sel{font-style:italic;margin-left:5px}.gjs-clm-tags #gjs-clm-tags-field{clear:both;padding:5px;margin-bottom:5px;display:flex;flex-wrap:wrap}.gjs-clm-tags #gjs-clm-tags-c{display:flex;flex-wrap:wrap;vertical-align:top;overflow:hidden}.gjs-clm-tags #gjs-clm-new{color:var(--gjs-font-color);padding:var(--gjs-padding-elem-classmanager);display:none}.gjs-clm-tags #gjs-clm-close{opacity:.85;filter:alpha(opacity=85);font-size:20px;line-height:0;cursor:pointer;color:rgba(255,255,255,.9)}.gjs-clm-tags #gjs-clm-close:hover{opacity:1;filter:alpha(opacity=100)}.gjs-clm-tags #gjs-clm-checkbox{color:rgba(255,255,255,.9);vertical-align:middle;cursor:pointer;font-size:9px}.gjs-clm-tags #gjs-clm-tag-label{flex-grow:1;text-overflow:ellipsis;overflow:hidden;padding:0 3px;cursor:text}.gjs-mdl-container{font-family:var(--gjs-main-font);overflow-y:auto;position:fixed;background-color:rgba(0,0,0,.5);display:flex;top:0;left:0;right:0;bottom:0;z-index:100}.gjs-mdl-dialog{text-shadow:-1px -1px 0 rgba(0,0,0,.05);animation:gjs-slide-down .215s;margin:auto;max-width:850px;width:90%;border-radius:3px;font-weight:lighter;position:relative;z-index:2}.gjs-mdl-title{font-size:1rem}.gjs-mdl-btn-close{position:absolute;right:15px;top:5px}.gjs-mdl-active .gjs-mdl-dialog{animation:gjs-mdl-slide-down .216s}.gjs-mdl-header,.gjs-mdl-content{padding:10px 15px;clear:both}.gjs-mdl-header{position:relative;border-bottom:1px solid var(--gjs-main-dark-color);padding:15px 15px 7px}.gjs-export-dl::after{content:"";clear:both;display:block;margin-bottom:10px}.gjs-dropzone{display:none;opacity:0;position:absolute;top:0;left:0;z-index:11;width:100%;height:100%;transition:opacity .25s;pointer-events:none}.gjs-dropzone-active .gjs-dropzone{display:block;opacity:1}.gjs-am-assets{height:290px;overflow:auto;clear:both;display:flex;flex-wrap:wrap;align-items:flex-start;align-content:flex-start}.gjs-am-assets-header{padding:5px}.gjs-am-add-asset .gjs-am-add-field{width:70%;float:left}.gjs-am-add-asset button{width:25%;float:right}.gjs-am-preview-cont{position:relative;height:70px;width:30%;background-color:var(--gjs-main-color);border-radius:2px;float:left;overflow:hidden}.gjs-am-preview{position:absolute;background-position:center center;background-size:cover;background-repeat:no-repeat;height:100%;width:100%;z-index:1}.gjs-am-preview-bg{opacity:.5;filter:alpha(opacity=50);position:absolute;height:100%;width:100%;z-index:0}.gjs-am-dimensions{opacity:.5;filter:alpha(opacity=50);font-size:10px}.gjs-am-meta{width:70%;float:left;font-size:12px;padding:5px 0 0 5px;box-sizing:border-box}.gjs-am-meta>div{margin-bottom:5px}.gjs-am-close{cursor:pointer;position:absolute;right:5px;top:0;display:none}.gjs-am-asset{border-bottom:1px solid color-mix(in srgb, var(--gjs-main-dark-color), black 3%);padding:5px;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.gjs-am-asset:hover .gjs-am-close{display:block}.gjs-am-highlight{background-color:var(--gjs-main-light-color)}.gjs-am-assets-cont{background-color:var(--gjs-secondary-dark-color);border-radius:3px;box-sizing:border-box;padding:10px;width:45%;float:right;height:325px;overflow:hidden}.gjs-am-file-uploader{width:55%;float:left}.gjs-am-file-uploader>form{background-color:var(--gjs-secondary-dark-color);border:2px dashed;border-radius:3px;position:relative;text-align:center;margin-bottom:15px}.gjs-am-file-uploader>form.gjs-am-hover{border:2px solid var(--gjs-color-green);color:color-mix(in srgb, var(--gjs-color-green), white 5%)}.gjs-am-file-uploader>form.gjs-am-disabled{border-color:red}.gjs-am-file-uploader>form #gjs-am-uploadFile{opacity:0;filter:alpha(opacity=0);padding:var(--gjs-upload-padding);width:100%;box-sizing:border-box}.gjs-am-file-uploader #gjs-am-title{position:absolute;padding:var(--gjs-upload-padding);width:100%}.gjs-cm-editor-c{float:left;box-sizing:border-box;width:50%}.gjs-cm-editor-c .cm-editor{height:450px}.gjs-cm-editor{font-size:12px}.gjs-cm-editor#gjs-cm-htmlmixed{padding-right:10px;border-right:1px solid var(--gjs-main-dark-color)}.gjs-cm-editor#gjs-cm-htmlmixed #gjs-cm-title{color:#a97d44}.gjs-cm-editor#gjs-cm-css{padding-left:10px}.gjs-cm-editor#gjs-cm-css #gjs-cm-title{color:#ddca7e}.gjs-cm-editor #gjs-cm-title{background-color:var(--gjs-main-dark-color);font-size:12px;padding:5px 10px 3px;text-align:right}.gjs-rte-toolbar{position:absolute;z-index:10}.gjs-rte-toolbar-ui{border:1px solid var(--gjs-main-dark-color);border-radius:3px}.gjs-rte-actionbar{display:flex}.gjs-rte-action{display:flex;align-items:center;justify-content:center;padding:5px;width:25px;border-right:1px solid var(--gjs-main-dark-color);text-align:center;cursor:pointer;outline:none}.gjs-rte-action:last-child{border-right:none}.gjs-rte-action:hover{background-color:var(--gjs-main-light-color)}.gjs-rte-active{background-color:var(--gjs-main-light-color)}.gjs-rte-disabled{color:var(--gjs-main-light-color);cursor:not-allowed}.gjs-rte-disabled:hover{background-color:unset}.gjs-editor-cont .sp-hue,.gjs-editor-cont .sp-slider{cursor:row-resize}.gjs-editor-cont .sp-color,.gjs-editor-cont .sp-dragger{cursor:crosshair}.gjs-editor-cont .sp-alpha-inner,.gjs-editor-cont .sp-alpha-handle{cursor:col-resize}.gjs-editor-cont .sp-hue{left:90%}.gjs-editor-cont .sp-color{right:15%}.gjs-editor-cont .sp-container{border:1px solid var(--gjs-main-dark-color);box-shadow:0 0 7px var(--gjs-main-dark-color);border-radius:3px}.gjs-editor-cont .sp-picker-container{border:none}.gjs-editor-cont .colpick_dark .colpick_color{outline:1px solid var(--gjs-main-dark-color)}.gjs-editor-cont .sp-cancel,.gjs-editor-cont .sp-cancel:hover{bottom:-8px;color:#777 !important;font-size:25px;left:0;position:absolute;text-decoration:none}.gjs-editor-cont .sp-alpha-handle{background-color:#ccc;border:1px solid #555;width:4px}.gjs-editor-cont .sp-color,.gjs-editor-cont .sp-hue{border:1px solid #333}.gjs-editor-cont .sp-slider{background-color:#ccc;border:1px solid #555;height:3px;left:-4px;width:22px}.gjs-editor-cont .sp-dragger{background:transparent;box-shadow:0 0 0 1px #111}.gjs-editor-cont .sp-button-container{float:none;width:100%;position:relative;text-align:right}.gjs-editor-cont .sp-container button,.gjs-editor-cont .sp-container button:hover,.gjs-editor-cont .sp-container button:active{background:var(--gjs-main-dark-color);border-color:var(--gjs-main-dark-color);color:var(--gjs-font-color);text-shadow:none;box-shadow:none;padding:3px 5px}.gjs-editor-cont .sp-palette-container{border:none;float:none;margin:0;padding:5px 10px 0}.gjs-editor-cont .sp-palette .sp-thumb-el,.gjs-editor-cont .sp-palette .sp-thumb-el:hover{border:1px solid rgba(0,0,0,.9)}.gjs-editor-cont .sp-palette .sp-thumb-el:hover,.gjs-editor-cont .sp-palette .sp-thumb-el.sp-thumb-active{border-color:rgba(0,0,0,.9)}.gjs-hidden{display:none}@keyframes gjs-slide-down{0%{transform:translate(0, -3rem);opacity:0}100%{transform:translate(0, 0);opacity:1}}@keyframes gjs-slide-up{0%{transform:translate(0, 0);opacity:1}100%{transform:translate(0, -3rem);opacity:0}}.cm-s-hopscotch span.cm-error{color:#fff} diff --git a/dist/grapes.min.js b/dist/grapes.min.js index 94a05985cc..2c8d3a812c 100644 --- a/dist/grapes.min.js +++ b/dist/grapes.min.js @@ -1,3 +1,3 @@ -/*! grapesjs - 0.21.17 */ -!function(t,e){'object'==typeof exports&&'object'==typeof module?module.exports=e():'function'==typeof define&&define.amd?define([],e):'object'==typeof exports?exports["grapesjs"]=e():t["grapesjs"]=e()}('undefined'!=typeof globalThis?globalThis:'undefined'!=typeof window?window:this,(()=>(()=>{var t={921:(t,e,n)=>{"use strict";var o,i;1&&(o=[n(94),n(838),n(600)],void 0===(i=function(t,e,n){return function(t,e,n){var o=function(e,n){return t.js_beautify(e,n)};return o.js=t.js_beautify,o.css=e.css_beautify,o.html=n.html_beautify,o.js_beautify=t.js_beautify,o.css_beautify=e.css_beautify,o.html_beautify=n.html_beautify,o}(t,e,n)}.apply(e,o))||(t.exports=i))},838:(t,e)=>{var n;!function(){var o;!function(){"use strict";var t=[,,function(t){function e(t){this.__parent=t,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}function n(t,e){this.__cache=[''],this.__indent_size=t.indent_size,this.__indent_string=t.indent_char,t.indent_with_tabs||(this.__indent_string=new Array(t.indent_size+1).join(t.indent_char)),e=e||'',t.indent_level>0&&(e=new Array(t.indent_level+1).join(this.__indent_string)),this.__base_string=e,this.__base_string_length=e.length}function o(t,o){this.__indent_cache=new n(t,o),this.raw=!1,this._end_with_newline=t.end_with_newline,this.indent_size=t.indent_size,this.wrap_line_length=t.wrap_line_length,this.indent_empty_lines=t.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new e(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}e.prototype.clone_empty=function(){var t=new e(this.__parent);return t.set_indent(this.__indent_count,this.__alignment_count),t},e.prototype.item=function(t){return t<0?this.__items[this.__items.length+t]:this.__items[t]},e.prototype.has_match=function(t){for(var e=this.__items.length-1;e>=0;e--)if(this.__items[e].match(t))return!0;return!1},e.prototype.set_indent=function(t,e){this.is_empty()&&(this.__indent_count=t||0,this.__alignment_count=e||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},e.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},e.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},e.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var t=this.__parent.current_line;return t.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),t.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),t.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count," "===t.__items[0]&&(t.__items.splice(0,1),t.__character_count-=1),!0}return!1},e.prototype.is_empty=function(){return 0===this.__items.length},e.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},e.prototype.push=function(t){this.__items.push(t);var e=t.lastIndexOf('\n');-1!==e?this.__character_count=t.length-e:this.__character_count+=t.length},e.prototype.pop=function(){var t=null;return this.is_empty()||(t=this.__items.pop(),this.__character_count-=t.length),t},e.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},e.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},e.prototype.trim=function(){for(;' '===this.last();)this.__items.pop(),this.__character_count-=1},e.prototype.toString=function(){var t='';return this.is_empty()?this.__parent.indent_empty_lines&&(t=this.__parent.get_indent_string(this.__indent_count)):(t=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),t+=this.__items.join('')),t},n.prototype.get_indent_size=function(t,e){var n=this.__base_string_length;return e=e||0,t<0&&(n=0),n+=t*this.__indent_size,n+=e},n.prototype.get_indent_string=function(t,e){var n=this.__base_string;return e=e||0,t<0&&(t=0,n=''),e+=t*this.__indent_size,this.__ensure_cache(e),n+=this.__cache[e]},n.prototype.__ensure_cache=function(t){for(;t>=this.__cache.length;)this.__add_column()},n.prototype.__add_column=function(){var t=this.__cache.length,e=0,n='';this.__indent_size&&t>=this.__indent_size&&(t-=(e=Math.floor(t/this.__indent_size))*this.__indent_size,n=new Array(e+1).join(this.__indent_string)),t&&(n+=new Array(t+1).join(' ')),this.__cache.push(n)},o.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},o.prototype.get_line_number=function(){return this.__lines.length},o.prototype.get_indent_string=function(t,e){return this.__indent_cache.get_indent_string(t,e)},o.prototype.get_indent_size=function(t,e){return this.__indent_cache.get_indent_size(t,e)},o.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},o.prototype.add_new_line=function(t){return!(this.is_empty()||!t&&this.just_added_newline())&&(this.raw||this.__add_outputline(),!0)},o.prototype.get_code=function(t){this.trim(!0);var e=this.current_line.pop();e&&('\n'===e[e.length-1]&&(e=e.replace(/\n+$/g,'')),this.current_line.push(e)),this._end_with_newline&&this.__add_outputline();var n=this.__lines.join('\n');return'\n'!==t&&(n=n.replace(/[\n]/g,t)),n},o.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},o.prototype.set_indent=function(t,e){return t=t||0,e=e||0,this.next_line.set_indent(t,e),this.__lines.length>1?(this.current_line.set_indent(t,e),!0):(this.current_line.set_indent(),!1)},o.prototype.add_raw_token=function(t){for(var e=0;e1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},o.prototype.just_added_newline=function(){return this.current_line.is_empty()},o.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},o.prototype.ensure_empty_line_above=function(t,n){for(var o=this.__lines.length-2;o>=0;){var i=this.__lines[o];if(i.is_empty())break;if(0!==i.item(0).indexOf(t)&&i.item(-1)!==n){this.__lines.splice(o+1,0,new e(this)),this.previous_line=this.__lines[this.__lines.length-2];break}o--}},t.exports.Output=o},,,,function(t){function e(t,e){this.raw_options=n(t,e),this.disabled=this._get_boolean('disabled'),this.eol=this._get_characters('eol','auto'),this.end_with_newline=this._get_boolean('end_with_newline'),this.indent_size=this._get_number('indent_size',4),this.indent_char=this._get_characters('indent_char',' '),this.indent_level=this._get_number('indent_level'),this.preserve_newlines=this._get_boolean('preserve_newlines',!0),this.max_preserve_newlines=this._get_number('max_preserve_newlines',32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean('indent_with_tabs','\t'===this.indent_char),this.indent_with_tabs&&(this.indent_char='\t',1===this.indent_size&&(this.indent_size=4)),this.wrap_line_length=this._get_number('wrap_line_length',this._get_number('max_char')),this.indent_empty_lines=this._get_boolean('indent_empty_lines'),this.templating=this._get_selection_list('templating',['auto','none','django','erb','handlebars','php','smarty'],['auto'])}function n(t,e){var n,i={};for(n in t=o(t))n!==e&&(i[n]=t[n]);if(e&&t[e])for(n in t[e])i[n]=t[e][n];return i}function o(t){var e,n={};for(e in t){n[e.replace(/-/g,"_")]=t[e]}return n}e.prototype._get_array=function(t,e){var n=this.raw_options[t],o=e||[];return'object'==typeof n?null!==n&&'function'==typeof n.concat&&(o=n.concat()):'string'==typeof n&&(o=n.split(/[^a-zA-Z0-9_\/\-]+/)),o},e.prototype._get_boolean=function(t,e){var n=this.raw_options[t];return void 0===n?!!e:!!n},e.prototype._get_characters=function(t,e){var n=this.raw_options[t],o=e||'';return'string'==typeof n&&(o=n.replace(/\\r/,'\r').replace(/\\n/,'\n').replace(/\\t/,'\t')),o},e.prototype._get_number=function(t,e){var n=this.raw_options[t];e=parseInt(e,10),isNaN(e)&&(e=0);var o=parseInt(n,10);return isNaN(o)&&(o=e),o},e.prototype._get_selection=function(t,e,n){var o=this._get_selection_list(t,e,n);if(1!==o.length)throw new Error("Invalid Option Value: The option '"+t+"' can only be one of the following values:\n"+e+"\nYou passed in: '"+this.raw_options[t]+"'");return o[0]},e.prototype._get_selection_list=function(t,e,n){if(!e||0===e.length)throw new Error("Selection list cannot be empty.");if(n=n||[e[0]],!this._is_valid_selection(n,e))throw new Error("Invalid Default Value!");var o=this._get_array(t,n);if(!this._is_valid_selection(o,e))throw new Error("Invalid Option Value: The option '"+t+"' can contain only the following values:\n"+e+"\nYou passed in: '"+this.raw_options[t]+"'");return o},e.prototype._is_valid_selection=function(t,e){return t.length&&e.length&&!t.some((function(t){return-1===e.indexOf(t)}))},t.exports.Options=e,t.exports.normalizeOpts=o,t.exports.mergeOpts=n},,function(t){var e=RegExp.prototype.hasOwnProperty('sticky');function n(t){this.__input=t||'',this.__input_length=this.__input.length,this.__position=0}n.prototype.restart=function(){this.__position=0},n.prototype.back=function(){this.__position>0&&(this.__position-=1)},n.prototype.hasNext=function(){return this.__position=0&&t=0&&e=t.length&&this.__input.substring(e-t.length,e).toLowerCase()===t},t.exports.InputScanner=n},,,,,function(t){function e(t,e){t='string'==typeof t?t:t.source,e='string'==typeof e?e:e.source,this.__directives_block_pattern=new RegExp(t+/ beautify( \w+[:]\w+)+ /.source+e,'g'),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(t+/\sbeautify\signore:end\s/.source+e,'g')}e.prototype.get_directives=function(t){if(!t.match(this.__directives_block_pattern))return null;var e={};this.__directive_pattern.lastIndex=0;for(var n=this.__directive_pattern.exec(t);n;)e[n[1]]=n[2],n=this.__directive_pattern.exec(t);return e},e.prototype.readIgnored=function(t){return t.readUntilAfter(this.__directives_end_ignore_pattern)},t.exports.Directives=e},,function(t,e,n){var o=n(16).Beautifier,i=n(17).Options;t.exports=function(t,e){return new o(t,e).beautify()},t.exports.defaultOptions=function(){return new i}},function(t,e,n){var o=n(17).Options,i=n(2).Output,r=n(8).InputScanner,s=new(0,n(13).Directives)(/\/\*/,/\*\//),a=/\r\n|[\r\n]/,l=/\r\n|[\r\n]/g,c=/\s/,u=/(?:\s|\n)+/g,h=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,p=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function d(t,e){this._source_text=t||'',this._options=new o(e),this._ch=null,this._input=null,this.NESTED_AT_RULE={page:!0,"font-face":!0,keyframes:!0,media:!0,supports:!0,document:!0},this.CONDITIONAL_GROUP_RULE={media:!0,supports:!0,document:!0},this.NON_SEMICOLON_NEWLINE_PROPERTY=["grid-template-areas","grid-template"]}d.prototype.eatString=function(t){var e='';for(this._ch=this._input.next();this._ch;){if(e+=this._ch,"\\"===this._ch)e+=this._input.next();else if(-1!==t.indexOf(this._ch)||"\n"===this._ch)break;this._ch=this._input.next()}return e},d.prototype.eatWhitespace=function(t){for(var e=c.test(this._input.peek()),n=0;c.test(this._input.peek());)this._ch=this._input.next(),t&&'\n'===this._ch&&(0===n||n0&&this._indentLevel--},d.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var t=this._source_text,e=this._options.eol;'auto'===e&&(e='\n',t&&a.test(t||'')&&(e=t.match(a)[0]));var n=(t=t.replace(l,'\n')).match(/^[\t ]*/)[0];this._output=new i(this._options,n),this._input=new r(t),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var o,d,f=0,g=!1,m=!1,v=!1,y=!1,_=!1,O=this._ch,b=!1;1&&(o=''!==this._input.read(u),d=O,this._ch=this._input.next(),'\\'===this._ch&&this._input.hasNext()&&(this._ch+=this._input.next()),O=this._ch,this._ch);)if('/'===this._ch&&'*'===this._input.peek()){this._output.add_new_line(),this._input.back();var w=this._input.read(h),x=s.get_directives(w);x&&'start'===x.ignore&&(w+=s.readIgnored(this._input)),this.print_string(w),this.eatWhitespace(!0),this._output.add_new_line()}else if('/'===this._ch&&'/'===this._input.peek())this._output.space_before_token=!0,this._input.back(),this.print_string(this._input.read(p)),this.eatWhitespace(!0);else if('$'===this._ch){this.preserveSingleSpace(o),this.print_string(this._ch);var S=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);S.match(/[ :]$/)&&(S=this.eatString(": ").replace(/\s+$/,''),this.print_string(S),this._output.space_before_token=!0),0===f&&-1!==S.indexOf(':')&&(m=!0,this.indent())}else if('@'===this._ch)if(this.preserveSingleSpace(o),'{'===this._input.peek())this.print_string(this._ch+this.eatString('}'));else{this.print_string(this._ch);var k=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);k.match(/[ :]$/)&&(k=this.eatString(": ").replace(/\s+$/,''),this.print_string(k),this._output.space_before_token=!0),0===f&&-1!==k.indexOf(':')?(m=!0,this.indent()):k in this.NESTED_AT_RULE?(this._nestedLevel+=1,k in this.CONDITIONAL_GROUP_RULE&&(v=!0)):0!==f||m||(y=!0)}else if('#'===this._ch&&'{'===this._input.peek())this.preserveSingleSpace(o),this.print_string(this._ch+this.eatString('}'));else if('{'===this._ch)m&&(m=!1,this.outdent()),y=!1,v?(v=!1,g=this._indentLevel>=this._nestedLevel):g=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&g&&this._output.previous_line&&'{'!==this._output.previous_line.item(-1)&&this._output.ensure_empty_line_above('/',','),this._output.space_before_token=!0,'expand'===this._options.brace_style?(this._output.add_new_line(),this.print_string(this._ch),this.indent(),this._output.set_indent(this._indentLevel)):('('===d?this._output.space_before_token=!1:','!==d&&this.indent(),this.print_string(this._ch)),this.eatWhitespace(!0),this._output.add_new_line();else if('}'===this._ch)this.outdent(),this._output.add_new_line(),'{'===d&&this._output.trim(!0),m&&(this.outdent(),m=!1),this.print_string(this._ch),g=!1,this._nestedLevel&&this._nestedLevel--,this.eatWhitespace(!0),this._output.add_new_line(),this._options.newline_between_rules&&!this._output.just_added_blankline()&&'}'!==this._input.peek()&&this._output.add_new_line(!0),')'===this._input.peek()&&(this._output.trim(!0),"expand"===this._options.brace_style&&this._output.add_new_line(!0));else if(":"===this._ch){for(var P=0;P'!==this._ch&&'+'!==this._ch&&'~'!==this._ch||m||0!==f)if(']'===this._ch)this.print_string(this._ch);else if('['===this._ch)this.preserveSingleSpace(o),this.print_string(this._ch);else if('='===this._ch)this.eatWhitespace(),this.print_string('='),c.test(this._ch)&&(this._ch='');else if('!'!==this._ch||this._input.lookBack("\\")){var E='"'===d||'\''===d;this.preserveSingleSpace(E||o),this.print_string(this._ch),!this._output.just_added_newline()&&'\n'===this._input.peek()&&b&&this._output.add_new_line()}else this._output.space_before_token=!0,this.print_string(this._ch);else this._options.space_around_combinator?(this._output.space_before_token=!0,this.print_string(this._ch),this._output.space_before_token=!0):(this.print_string(this._ch),this.eatWhitespace(),this._ch&&c.test(this._ch)&&(this._ch=''));return this._output.get_code(e)},t.exports.Beautifier=d},function(t,e,n){var o=n(6).Options;function i(t){o.call(this,t,'css'),this.selector_separator_newline=this._get_boolean('selector_separator_newline',!0),this.newline_between_rules=this._get_boolean('newline_between_rules',!0);var e=this._get_boolean('space_around_selector_separator');this.space_around_combinator=this._get_boolean('space_around_combinator')||e;var n=this._get_selection_list('brace_style',['collapse','expand','end-expand','none','preserve-inline']);this.brace_style='collapse';for(var i=0;i{var o,i;!function(){var r;!function(){"use strict";var t=[,,function(t){function e(t){this.__parent=t,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}function n(t,e){this.__cache=[''],this.__indent_size=t.indent_size,this.__indent_string=t.indent_char,t.indent_with_tabs||(this.__indent_string=new Array(t.indent_size+1).join(t.indent_char)),e=e||'',t.indent_level>0&&(e=new Array(t.indent_level+1).join(this.__indent_string)),this.__base_string=e,this.__base_string_length=e.length}function o(t,o){this.__indent_cache=new n(t,o),this.raw=!1,this._end_with_newline=t.end_with_newline,this.indent_size=t.indent_size,this.wrap_line_length=t.wrap_line_length,this.indent_empty_lines=t.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new e(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}e.prototype.clone_empty=function(){var t=new e(this.__parent);return t.set_indent(this.__indent_count,this.__alignment_count),t},e.prototype.item=function(t){return t<0?this.__items[this.__items.length+t]:this.__items[t]},e.prototype.has_match=function(t){for(var e=this.__items.length-1;e>=0;e--)if(this.__items[e].match(t))return!0;return!1},e.prototype.set_indent=function(t,e){this.is_empty()&&(this.__indent_count=t||0,this.__alignment_count=e||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},e.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},e.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},e.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var t=this.__parent.current_line;return t.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),t.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),t.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count," "===t.__items[0]&&(t.__items.splice(0,1),t.__character_count-=1),!0}return!1},e.prototype.is_empty=function(){return 0===this.__items.length},e.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},e.prototype.push=function(t){this.__items.push(t);var e=t.lastIndexOf('\n');-1!==e?this.__character_count=t.length-e:this.__character_count+=t.length},e.prototype.pop=function(){var t=null;return this.is_empty()||(t=this.__items.pop(),this.__character_count-=t.length),t},e.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},e.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},e.prototype.trim=function(){for(;' '===this.last();)this.__items.pop(),this.__character_count-=1},e.prototype.toString=function(){var t='';return this.is_empty()?this.__parent.indent_empty_lines&&(t=this.__parent.get_indent_string(this.__indent_count)):(t=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),t+=this.__items.join('')),t},n.prototype.get_indent_size=function(t,e){var n=this.__base_string_length;return e=e||0,t<0&&(n=0),n+=t*this.__indent_size,n+=e},n.prototype.get_indent_string=function(t,e){var n=this.__base_string;return e=e||0,t<0&&(t=0,n=''),e+=t*this.__indent_size,this.__ensure_cache(e),n+=this.__cache[e]},n.prototype.__ensure_cache=function(t){for(;t>=this.__cache.length;)this.__add_column()},n.prototype.__add_column=function(){var t=this.__cache.length,e=0,n='';this.__indent_size&&t>=this.__indent_size&&(t-=(e=Math.floor(t/this.__indent_size))*this.__indent_size,n=new Array(e+1).join(this.__indent_string)),t&&(n+=new Array(t+1).join(' ')),this.__cache.push(n)},o.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},o.prototype.get_line_number=function(){return this.__lines.length},o.prototype.get_indent_string=function(t,e){return this.__indent_cache.get_indent_string(t,e)},o.prototype.get_indent_size=function(t,e){return this.__indent_cache.get_indent_size(t,e)},o.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},o.prototype.add_new_line=function(t){return!(this.is_empty()||!t&&this.just_added_newline())&&(this.raw||this.__add_outputline(),!0)},o.prototype.get_code=function(t){this.trim(!0);var e=this.current_line.pop();e&&('\n'===e[e.length-1]&&(e=e.replace(/\n+$/g,'')),this.current_line.push(e)),this._end_with_newline&&this.__add_outputline();var n=this.__lines.join('\n');return'\n'!==t&&(n=n.replace(/[\n]/g,t)),n},o.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},o.prototype.set_indent=function(t,e){return t=t||0,e=e||0,this.next_line.set_indent(t,e),this.__lines.length>1?(this.current_line.set_indent(t,e),!0):(this.current_line.set_indent(),!1)},o.prototype.add_raw_token=function(t){for(var e=0;e1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},o.prototype.just_added_newline=function(){return this.current_line.is_empty()},o.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},o.prototype.ensure_empty_line_above=function(t,n){for(var o=this.__lines.length-2;o>=0;){var i=this.__lines[o];if(i.is_empty())break;if(0!==i.item(0).indexOf(t)&&i.item(-1)!==n){this.__lines.splice(o+1,0,new e(this)),this.previous_line=this.__lines[this.__lines.length-2];break}o--}},t.exports.Output=o},function(t){t.exports.Token=function(t,e,n,o){this.type=t,this.text=e,this.comments_before=null,this.newlines=n||0,this.whitespace_before=o||'',this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}},,,function(t){function e(t,e){this.raw_options=n(t,e),this.disabled=this._get_boolean('disabled'),this.eol=this._get_characters('eol','auto'),this.end_with_newline=this._get_boolean('end_with_newline'),this.indent_size=this._get_number('indent_size',4),this.indent_char=this._get_characters('indent_char',' '),this.indent_level=this._get_number('indent_level'),this.preserve_newlines=this._get_boolean('preserve_newlines',!0),this.max_preserve_newlines=this._get_number('max_preserve_newlines',32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean('indent_with_tabs','\t'===this.indent_char),this.indent_with_tabs&&(this.indent_char='\t',1===this.indent_size&&(this.indent_size=4)),this.wrap_line_length=this._get_number('wrap_line_length',this._get_number('max_char')),this.indent_empty_lines=this._get_boolean('indent_empty_lines'),this.templating=this._get_selection_list('templating',['auto','none','django','erb','handlebars','php','smarty'],['auto'])}function n(t,e){var n,i={};for(n in t=o(t))n!==e&&(i[n]=t[n]);if(e&&t[e])for(n in t[e])i[n]=t[e][n];return i}function o(t){var e,n={};for(e in t){n[e.replace(/-/g,"_")]=t[e]}return n}e.prototype._get_array=function(t,e){var n=this.raw_options[t],o=e||[];return'object'==typeof n?null!==n&&'function'==typeof n.concat&&(o=n.concat()):'string'==typeof n&&(o=n.split(/[^a-zA-Z0-9_\/\-]+/)),o},e.prototype._get_boolean=function(t,e){var n=this.raw_options[t];return void 0===n?!!e:!!n},e.prototype._get_characters=function(t,e){var n=this.raw_options[t],o=e||'';return'string'==typeof n&&(o=n.replace(/\\r/,'\r').replace(/\\n/,'\n').replace(/\\t/,'\t')),o},e.prototype._get_number=function(t,e){var n=this.raw_options[t];e=parseInt(e,10),isNaN(e)&&(e=0);var o=parseInt(n,10);return isNaN(o)&&(o=e),o},e.prototype._get_selection=function(t,e,n){var o=this._get_selection_list(t,e,n);if(1!==o.length)throw new Error("Invalid Option Value: The option '"+t+"' can only be one of the following values:\n"+e+"\nYou passed in: '"+this.raw_options[t]+"'");return o[0]},e.prototype._get_selection_list=function(t,e,n){if(!e||0===e.length)throw new Error("Selection list cannot be empty.");if(n=n||[e[0]],!this._is_valid_selection(n,e))throw new Error("Invalid Default Value!");var o=this._get_array(t,n);if(!this._is_valid_selection(o,e))throw new Error("Invalid Option Value: The option '"+t+"' can contain only the following values:\n"+e+"\nYou passed in: '"+this.raw_options[t]+"'");return o},e.prototype._is_valid_selection=function(t,e){return t.length&&e.length&&!t.some((function(t){return-1===e.indexOf(t)}))},t.exports.Options=e,t.exports.normalizeOpts=o,t.exports.mergeOpts=n},,function(t){var e=RegExp.prototype.hasOwnProperty('sticky');function n(t){this.__input=t||'',this.__input_length=this.__input.length,this.__position=0}n.prototype.restart=function(){this.__position=0},n.prototype.back=function(){this.__position>0&&(this.__position-=1)},n.prototype.hasNext=function(){return this.__position=0&&t=0&&e=t.length&&this.__input.substring(e-t.length,e).toLowerCase()===t},t.exports.InputScanner=n},function(t,e,n){var o=n(8).InputScanner,i=n(3).Token,r=n(10).TokenStream,s=n(11).WhitespacePattern,a={START:'TK_START',RAW:'TK_RAW',EOF:'TK_EOF'},l=function(t,e){this._input=new o(t),this._options=e||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new s(this._input)};l.prototype.tokenize=function(){var t;this._input.restart(),this.__tokens=new r,this._reset();for(var e=new i(a.START,''),n=null,o=[],s=new r;e.type!==a.EOF;){for(t=this._get_next_token(e,n);this._is_comment(t);)s.add(t),t=this._get_next_token(e,n);s.isEmpty()||(t.comments_before=s,s=new r),t.parent=n,this._is_opening(t)?(o.push(n),n=t):n&&this._is_closing(t,n)&&(t.opened=n,n.closed=t,n=o.pop(),t.parent=n),t.previous=e,e.next=t,this.__tokens.add(t),e=t}return this.__tokens},l.prototype._is_first_token=function(){return this.__tokens.isEmpty()},l.prototype._reset=function(){},l.prototype._get_next_token=function(t,e){this._readWhitespace();var n=this._input.read(/.+/g);return n?this._create_token(a.RAW,n):this._create_token(a.EOF,'')},l.prototype._is_comment=function(t){return!1},l.prototype._is_opening=function(t){return!1},l.prototype._is_closing=function(t,e){return!1},l.prototype._create_token=function(t,e){return new i(t,e,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token)},l.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},t.exports.Tokenizer=l,t.exports.TOKEN=a},function(t){function e(t){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=t}e.prototype.restart=function(){this.__position=0},e.prototype.isEmpty=function(){return 0===this.__tokens_length},e.prototype.hasNext=function(){return this.__position=0&&t/),erb:n.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:n.starting_with(/{%/).until_after(/%}/),django_value:n.starting_with(/{{/).until_after(/}}/),django_comment:n.starting_with(/{#/).until_after(/#}/),smarty:n.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:n.starting_with(/{\*/).until_after(/\*}/),smarty_literal:n.starting_with(/{literal}/).until_after(/{\/literal}/)}}r.prototype=new o,r.prototype._create=function(){return new r(this._input,this)},r.prototype._update=function(){this.__set_templated_pattern()},r.prototype.disable=function(t){var e=this._create();return e._disabled[t]=!0,e._update(),e},r.prototype.read_options=function(t){var e=this._create();for(var n in i)e._disabled[n]=-1===t.templating.indexOf(n);return e._update(),e},r.prototype.exclude=function(t){var e=this._create();return e._excluded[t]=!0,e._update(),e},r.prototype.read=function(){var t='';t=this._match_pattern?this._input.read(this._starting_pattern):this._input.read(this._starting_pattern,this.__template_pattern);for(var e=this._read_template();e;)this._match_pattern?e+=this._input.read(this._match_pattern):e+=this._input.readUntil(this.__template_pattern),t+=e,e=this._read_template();return this._until_after&&(t+=this._input.readUntilAfter(this._until_pattern)),t},r.prototype.__set_templated_pattern=function(){var t=[];this._disabled.php||t.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||t.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||t.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(t.push(this.__patterns.django._starting_pattern.source),t.push(this.__patterns.django_value._starting_pattern.source),t.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||t.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&t.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp('(?:'+t.join('|')+')')},r.prototype._read_template=function(){var t='',e=this._input.peek();if('<'===e){var n=this._input.peek(1);this._disabled.php||this._excluded.php||'?'!==n||(t=t||this.__patterns.php.read()),this._disabled.erb||this._excluded.erb||'%'!==n||(t=t||this.__patterns.erb.read())}else'{'===e&&(this._disabled.handlebars||this._excluded.handlebars||(t=(t=(t=t||this.__patterns.handlebars_comment.read())||this.__patterns.handlebars_unescaped.read())||this.__patterns.handlebars.read()),this._disabled.django||(this._excluded.django||this._excluded.handlebars||(t=t||this.__patterns.django_value.read()),this._excluded.django||(t=(t=t||this.__patterns.django_comment.read())||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(t=(t=(t=t||this.__patterns.smarty_comment.read())||this.__patterns.smarty_literal.read())||this.__patterns.smarty.read()));return t},t.exports.TemplatablePattern=r},,,,function(t,e,n){var o=n(19).Beautifier,i=n(20).Options;t.exports=function(t,e,n,i){return new o(t,e,n,i).beautify()},t.exports.defaultOptions=function(){return new i}},function(t,e,n){var o=n(20).Options,i=n(2).Output,r=n(21).Tokenizer,s=n(21).TOKEN,a=/\r\n|[\r\n]/,l=/\r\n|[\r\n]/g,c=function(t,e){this.indent_level=0,this.alignment_size=0,this.max_preserve_newlines=t.max_preserve_newlines,this.preserve_newlines=t.preserve_newlines,this._output=new i(t,e)};c.prototype.current_line_has_match=function(t){return this._output.current_line.has_match(t)},c.prototype.set_space_before_token=function(t,e){this._output.space_before_token=t,this._output.non_breaking_space=e},c.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()},c.prototype.add_raw_token=function(t){this._output.add_raw_token(t)},c.prototype.print_preserved_newlines=function(t){var e=0;t.type!==s.TEXT&&t.previous.type!==s.TEXT&&(e=t.newlines?1:0),this.preserve_newlines&&(e=t.newlines0);return 0!==e},c.prototype.traverse_whitespace=function(t){return!(!t.whitespace_before&&!t.newlines)&&(this.print_preserved_newlines(t)||(this._output.space_before_token=!0),!0)},c.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped},c.prototype.print_newline=function(t){this._output.add_new_line(t)},c.prototype.print_token=function(t){t.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(t.text))},c.prototype.indent=function(){this.indent_level++},c.prototype.get_full_indent=function(t){return(t=this.indent_level+(t||0))<1?'':this._output.get_indent_string(t)};var u=function(t,e){var n=null,o=null;return e.closed?('script'===t?n='text/javascript':'style'===t&&(n='text/css'),n=function(t){for(var e=null,n=t.next;n.type!==s.EOF&&t.closed!==n;){if(n.type===s.ATTRIBUTE&&'type'===n.text){n.next&&n.next.type===s.EQUALS&&n.next.next&&n.next.next.type===s.VALUE&&(e=n.next.next.text);break}n=n.next}return e}(e)||n,n.search('text/css')>-1?o='css':n.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)>-1?o='javascript':n.search(/(text|application|dojo)\/(x-)?(html)/)>-1?o='html':n.search(/test\/null/)>-1&&(o='null'),o):null};function h(t,e){return-1!==e.indexOf(t)}function p(t,e,n){this.parent=t||null,this.tag=e?e.tag_name:'',this.indent_level=n||0,this.parser_token=e||null}function d(t){this._printer=t,this._current_frame=null}function f(t,e,n,i){this._source_text=t||'',e=e||{},this._js_beautify=n,this._css_beautify=i,this._tag_stack=null;var r=new o(e,'html');this._options=r,this._is_wrap_attributes_force='force'===this._options.wrap_attributes.substr(0,'force'.length),this._is_wrap_attributes_force_expand_multiline='force-expand-multiline'===this._options.wrap_attributes,this._is_wrap_attributes_force_aligned='force-aligned'===this._options.wrap_attributes,this._is_wrap_attributes_aligned_multiple='aligned-multiple'===this._options.wrap_attributes,this._is_wrap_attributes_preserve='preserve'===this._options.wrap_attributes.substr(0,'preserve'.length),this._is_wrap_attributes_preserve_aligned='preserve-aligned'===this._options.wrap_attributes}d.prototype.get_parser_token=function(){return this._current_frame?this._current_frame.parser_token:null},d.prototype.record_tag=function(t){var e=new p(this._current_frame,t,this._printer.indent_level);this._current_frame=e},d.prototype._try_pop_frame=function(t){var e=null;return t&&(e=t.parser_token,this._printer.indent_level=t.indent_level,this._current_frame=t.parent),e},d.prototype._get_frame=function(t,e){for(var n=this._current_frame;n&&-1===t.indexOf(n.tag);){if(e&&-1!==e.indexOf(n.tag)){n=null;break}n=n.parent}return n},d.prototype.try_pop=function(t,e){var n=this._get_frame([t],e);return this._try_pop_frame(n)},d.prototype.indent_to_tag=function(t){var e=this._get_frame(t);e&&(this._printer.indent_level=e.indent_level)},f.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var t=this._source_text,e=this._options.eol;'auto'===this._options.eol&&(e='\n',t&&a.test(t)&&(e=t.match(a)[0]));var n=(t=t.replace(l,'\n')).match(/^[\t ]*/)[0],o={text:'',type:''},i=new g,u=new c(this._options,n),h=new r(t,this._options).tokenize();this._tag_stack=new d(u);for(var p=null,f=h.next();f.type!==s.EOF;)f.type===s.TAG_OPEN||f.type===s.COMMENT?i=p=this._handle_tag_open(u,f,i,o,h):f.type===s.ATTRIBUTE||f.type===s.EQUALS||f.type===s.VALUE||f.type===s.TEXT&&!i.tag_complete?p=this._handle_inside_tag(u,f,i,o):f.type===s.TAG_CLOSE?p=this._handle_tag_close(u,f,i):f.type===s.TEXT?p=this._handle_text(u,f,i):u.add_raw_token(f),o=p,f=h.next();return u._output.get_code(e)},f.prototype._handle_tag_close=function(t,e,n){var o={text:e.text,type:e.type};return t.alignment_size=0,n.tag_complete=!0,t.set_space_before_token(e.newlines||''!==e.whitespace_before,!0),n.is_unformatted?t.add_raw_token(e):('<'===n.tag_start_char&&(t.set_space_before_token('/'===e.text[0],!0),this._is_wrap_attributes_force_expand_multiline&&n.has_wrapped_attrs&&t.print_newline(!1)),t.print_token(e)),!n.indent_content||n.is_unformatted||n.is_content_unformatted||(t.indent(),n.indent_content=!1),n.is_inline_element||n.is_unformatted||n.is_content_unformatted||t.set_wrap_point(),o},f.prototype._handle_inside_tag=function(t,e,n,o){var i=n.has_wrapped_attrs,r={text:e.text,type:e.type};return t.set_space_before_token(e.newlines||''!==e.whitespace_before,!0),n.is_unformatted?t.add_raw_token(e):'{'===n.tag_start_char&&e.type===s.TEXT?t.print_preserved_newlines(e)?(e.newlines=0,t.add_raw_token(e)):t.print_token(e):(e.type===s.ATTRIBUTE?t.set_space_before_token(!0):(e.type===s.EQUALS||e.type===s.VALUE&&e.previous.type===s.EQUALS)&&t.set_space_before_token(!1),e.type===s.ATTRIBUTE&&'<'===n.tag_start_char&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(t.traverse_whitespace(e),i=i||0!==e.newlines),this._is_wrap_attributes_force&&n.attr_count>=this._options.wrap_attributes_min_attrs&&(o.type!==s.TAG_OPEN||this._is_wrap_attributes_force_expand_multiline)&&(t.print_newline(!1),i=!0)),t.print_token(e),i=i||t.previous_token_wrapped(),n.has_wrapped_attrs=i),r},f.prototype._handle_text=function(t,e,n){var o={text:e.text,type:'TK_CONTENT'};return n.custom_beautifier_name?this._print_custom_beatifier_text(t,e,n):n.is_unformatted||n.is_content_unformatted?t.add_raw_token(e):(t.traverse_whitespace(e),t.print_token(e)),o},f.prototype._print_custom_beatifier_text=function(t,e,n){var o=this;if(''!==e.text){var i,r=e.text,s=1,a='',l='';'javascript'===n.custom_beautifier_name&&'function'==typeof this._js_beautify?i=this._js_beautify:'css'===n.custom_beautifier_name&&'function'==typeof this._css_beautify?i=this._css_beautify:'html'===n.custom_beautifier_name&&(i=function(t,e){return new f(t,e,o._js_beautify,o._css_beautify).beautify()}),"keep"===this._options.indent_scripts?s=0:"separate"===this._options.indent_scripts&&(s=-t.indent_level);var c=t.get_full_indent(s);if(r=r.replace(/\n[ \t]*$/,''),'html'!==n.custom_beautifier_name&&'<'===r[0]&&r.match(/^(|]]>)$/.exec(r);if(!u)return void t.add_raw_token(e);a=c+u[1]+'\n',r=u[4],u[5]&&(l=c+u[5]),r=r.replace(/\n[ \t]*$/,''),(u[2]||-1!==u[3].indexOf('\n'))&&(u=u[3].match(/[ \t]+$/))&&(e.whitespace_before=u[0])}if(r)if(i){var h=function(){this.eol='\n'};h.prototype=this._options.raw_options,r=i(c+r,new h)}else{var p=e.whitespace_before;p&&(r=r.replace(new RegExp('\n('+p+')?','g'),'\n')),r=c+r.replace(/\n/g,'\n'+c)}a&&(r=r?a+r+'\n'+l:a+l),t.print_newline(!1),r&&(e.text=r,e.whitespace_before='',e.newlines=0,t.add_raw_token(e),t.print_newline(!0))}},f.prototype._handle_tag_open=function(t,e,n,o,i){var r=this._get_tag_open_token(e);if(!n.is_unformatted&&!n.is_content_unformatted||n.is_empty_element||e.type!==s.TAG_OPEN||r.is_start_tag?(t.traverse_whitespace(e),this._set_tag_position(t,e,r,n,o),r.is_inline_element||t.set_wrap_point(),t.print_token(e)):(t.add_raw_token(e),r.start_tag_token=this._tag_stack.try_pop(r.tag_name)),r.is_start_tag&&this._is_wrap_attributes_force){var a,l=0;do{(a=i.peek(l)).type===s.ATTRIBUTE&&(r.attr_count+=1),l+=1}while(a.type!==s.EOF&&a.type!==s.TAG_CLOSE)}return(this._is_wrap_attributes_force_aligned||this._is_wrap_attributes_aligned_multiple||this._is_wrap_attributes_preserve_aligned)&&(r.alignment_size=e.text.length+1),r.tag_complete||r.is_unformatted||(t.alignment_size=r.alignment_size),r};var g=function(t,e){if(this.parent=t||null,this.text='',this.type='TK_TAG_OPEN',this.tag_name='',this.is_inline_element=!1,this.is_unformatted=!1,this.is_content_unformatted=!1,this.is_empty_element=!1,this.is_start_tag=!1,this.is_end_tag=!1,this.indent_content=!1,this.multiline_content=!1,this.custom_beautifier_name=null,this.start_tag_token=null,this.attr_count=0,this.has_wrapped_attrs=!1,this.alignment_size=0,this.tag_complete=!1,this.tag_start_char='',this.tag_check='',e){var n;this.tag_start_char=e.text[0],this.text=e.text,'<'===this.tag_start_char?(n=e.text.match(/^<([^\s>]*)/),this.tag_check=n?n[1]:''):(n=e.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=n?n[1]:'',(e.text.startsWith('{{#>')||e.text.startsWith('{{~#>'))&&'>'===this.tag_check[0]&&('>'===this.tag_check&&null!==e.next?this.tag_check=e.next.text.split(' ')[0]:this.tag_check=e.text.split('>')[1])),this.tag_check=this.tag_check.toLowerCase(),e.type===s.COMMENT&&(this.tag_complete=!0),this.is_start_tag='/'!==this.tag_check.charAt(0),this.tag_name=this.is_start_tag?this.tag_check:this.tag_check.substr(1),this.is_end_tag=!this.is_start_tag||e.closed&&'/>'===e.closed.text;var o=2;'{'===this.tag_start_char&&this.text.length>=3&&'~'===this.text.charAt(2)&&(o=3),this.is_end_tag=this.is_end_tag||'{'===this.tag_start_char&&(this.text.length<3||/[^#\^]/.test(this.text.charAt(o)))}else this.tag_complete=!0};f.prototype._get_tag_open_token=function(t){var e=new g(this._tag_stack.get_parser_token(),t);return e.alignment_size=this._options.wrap_attributes_indent_size,e.is_end_tag=e.is_end_tag||h(e.tag_check,this._options.void_elements),e.is_empty_element=e.tag_complete||e.is_start_tag&&e.is_end_tag,e.is_unformatted=!e.tag_complete&&h(e.tag_check,this._options.unformatted),e.is_content_unformatted=!e.is_empty_element&&h(e.tag_check,this._options.content_unformatted),e.is_inline_element=h(e.tag_name,this._options.inline)||this._options.inline_custom_elements&&e.tag_name.includes("-")||'{'===e.tag_start_char,e},f.prototype._set_tag_position=function(t,e,n,o,i){if(n.is_empty_element||(n.is_end_tag?n.start_tag_token=this._tag_stack.try_pop(n.tag_name):(this._do_optional_end_element(n)&&(n.is_inline_element||t.print_newline(!1)),this._tag_stack.record_tag(n),'script'!==n.tag_name&&'style'!==n.tag_name||n.is_unformatted||n.is_content_unformatted||(n.custom_beautifier_name=u(n.tag_check,e)))),h(n.tag_check,this._options.extra_liners)&&(t.print_newline(!1),t._output.just_added_blankline()||t.print_newline(!0)),n.is_empty_element){if('{'===n.tag_start_char&&'else'===n.tag_check)this._tag_stack.indent_to_tag(['if','unless','each']),n.indent_content=!0,t.current_line_has_match(/{{#if/)||t.print_newline(!1);'!--'===n.tag_name&&i.type===s.TAG_CLOSE&&o.is_end_tag&&-1===n.text.indexOf('\n')||(n.is_inline_element||n.is_unformatted||t.print_newline(!1),this._calcluate_parent_multiline(t,n))}else if(n.is_end_tag){var r=!1;r=(r=n.start_tag_token&&n.start_tag_token.multiline_content)||!n.is_inline_element&&!(o.is_inline_element||o.is_unformatted)&&!(i.type===s.TAG_CLOSE&&n.start_tag_token===o)&&'TK_CONTENT'!==i.type,(n.is_content_unformatted||n.is_unformatted)&&(r=!1),r&&t.print_newline(!1)}else n.indent_content=!n.custom_beautifier_name,'<'===n.tag_start_char&&('html'===n.tag_name?n.indent_content=this._options.indent_inner_html:'head'===n.tag_name?n.indent_content=this._options.indent_head_inner_html:'body'===n.tag_name&&(n.indent_content=this._options.indent_body_inner_html)),n.is_inline_element||n.is_unformatted||'TK_CONTENT'===i.type&&!n.is_content_unformatted||t.print_newline(!1),this._calcluate_parent_multiline(t,n)},f.prototype._calcluate_parent_multiline=function(t,e){!e.parent||!t._output.just_added_newline()||(e.is_inline_element||e.is_unformatted)&&e.parent.is_inline_element||(e.parent.multiline_content=!0)};var m=['address','article','aside','blockquote','details','div','dl','fieldset','figcaption','figure','footer','form','h1','h2','h3','h4','h5','h6','header','hr','main','menu','nav','ol','p','pre','section','table','ul'],v=['a','audio','del','ins','map','noscript','video'];f.prototype._do_optional_end_element=function(t){var e=null;if(!t.is_empty_element&&t.is_start_tag&&t.parent){if('body'===t.tag_name)e=e||this._tag_stack.try_pop('head');else if('li'===t.tag_name)e=e||this._tag_stack.try_pop('li',['ol','ul','menu']);else if('dd'===t.tag_name||'dt'===t.tag_name)e=(e=e||this._tag_stack.try_pop('dt',['dl']))||this._tag_stack.try_pop('dd',['dl']);else if('p'===t.parent.tag_name&&-1!==m.indexOf(t.tag_name)){var n=t.parent.parent;n&&-1!==v.indexOf(n.tag_name)||(e=e||this._tag_stack.try_pop('p'))}else'rp'===t.tag_name||'rt'===t.tag_name?e=(e=e||this._tag_stack.try_pop('rt',['ruby','rtc']))||this._tag_stack.try_pop('rp',['ruby','rtc']):'optgroup'===t.tag_name?e=e||this._tag_stack.try_pop('optgroup',['select']):'option'===t.tag_name?e=e||this._tag_stack.try_pop('option',['select','datalist','optgroup']):'colgroup'===t.tag_name?e=e||this._tag_stack.try_pop('caption',['table']):'thead'===t.tag_name?e=(e=e||this._tag_stack.try_pop('caption',['table']))||this._tag_stack.try_pop('colgroup',['table']):'tbody'===t.tag_name||'tfoot'===t.tag_name?e=(e=(e=(e=e||this._tag_stack.try_pop('caption',['table']))||this._tag_stack.try_pop('colgroup',['table']))||this._tag_stack.try_pop('thead',['table']))||this._tag_stack.try_pop('tbody',['table']):'tr'===t.tag_name?e=(e=(e=e||this._tag_stack.try_pop('caption',['table']))||this._tag_stack.try_pop('colgroup',['table']))||this._tag_stack.try_pop('tr',['table','thead','tbody','tfoot']):'th'!==t.tag_name&&'td'!==t.tag_name||(e=(e=e||this._tag_stack.try_pop('td',['table','thead','tbody','tfoot','tr']))||this._tag_stack.try_pop('th',['table','thead','tbody','tfoot','tr']));return t.parent=this._tag_stack.get_parser_token(),e}},t.exports.Beautifier=f},function(t,e,n){var o=n(6).Options;function i(t){o.call(this,t,'html'),1===this.templating.length&&'auto'===this.templating[0]&&(this.templating=['django','erb','handlebars','php']),this.indent_inner_html=this._get_boolean('indent_inner_html'),this.indent_body_inner_html=this._get_boolean('indent_body_inner_html',!0),this.indent_head_inner_html=this._get_boolean('indent_head_inner_html',!0),this.indent_handlebars=this._get_boolean('indent_handlebars',!0),this.wrap_attributes=this._get_selection('wrap_attributes',['auto','force','force-aligned','force-expand-multiline','aligned-multiple','preserve','preserve-aligned']),this.wrap_attributes_min_attrs=this._get_number('wrap_attributes_min_attrs',2),this.wrap_attributes_indent_size=this._get_number('wrap_attributes_indent_size',this.indent_size),this.extra_liners=this._get_array('extra_liners',['head','body','/html']),this.inline=this._get_array('inline',['a','abbr','area','audio','b','bdi','bdo','br','button','canvas','cite','code','data','datalist','del','dfn','em','embed','i','iframe','img','input','ins','kbd','keygen','label','map','mark','math','meter','noscript','object','output','progress','q','ruby','s','samp','select','small','span','strong','sub','sup','svg','template','textarea','time','u','var','video','wbr','text','acronym','big','strike','tt']),this.inline_custom_elements=this._get_boolean('inline_custom_elements',!0),this.void_elements=this._get_array('void_elements',['area','base','br','col','embed','hr','img','input','keygen','link','menuitem','meta','param','source','track','wbr','!doctype','?xml','basefont','isindex']),this.unformatted=this._get_array('unformatted',[]),this.content_unformatted=this._get_array('content_unformatted',['pre','textarea']),this.unformatted_content_delimiter=this._get_characters('unformatted_content_delimiter'),this.indent_scripts=this._get_selection('indent_scripts',['normal','keep','separate'])}i.prototype=new o,t.exports.Options=i},function(t,e,n){var o=n(9).Tokenizer,i=n(9).TOKEN,r=n(13).Directives,s=n(14).TemplatablePattern,a=n(12).Pattern,l={TAG_OPEN:'TK_TAG_OPEN',TAG_CLOSE:'TK_TAG_CLOSE',ATTRIBUTE:'TK_ATTRIBUTE',EQUALS:'TK_EQUALS',VALUE:'TK_VALUE',COMMENT:'TK_COMMENT',TEXT:'TK_TEXT',UNKNOWN:'TK_UNKNOWN',START:i.START,RAW:i.RAW,EOF:i.EOF},c=new r(/<\!--/,/-->/),u=function(t,e){o.call(this,t,e),this._current_tag_name='';var n=new s(this._input).read_options(this._options),i=new a(this._input);if(this.__patterns={word:n.until(/[\n\r\t <]/),single_quote:n.until_after(/'/),double_quote:n.until_after(/"/),attribute:n.until(/[\n\r\t =>]|\/>/),element_name:n.until(/[\n\r\t >\/]/),handlebars_comment:i.starting_with(/{{!--/).until_after(/--}}/),handlebars:i.starting_with(/{{/).until_after(/}}/),handlebars_open:i.until(/[\n\r\t }]/),handlebars_raw_close:i.until(/}}/),comment:i.starting_with(//),cdata:i.starting_with(//),conditional_comment:i.starting_with(//),processing:i.starting_with(/<\?/).until_after(/\?>/)},this._options.indent_handlebars&&(this.__patterns.word=this.__patterns.word.exclude('handlebars')),this._unformatted_content_delimiter=null,this._options.unformatted_content_delimiter){var r=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=i.matching(r).until_after(r)}};(u.prototype=new o)._is_comment=function(t){return!1},u.prototype._is_opening=function(t){return t.type===l.TAG_OPEN},u.prototype._is_closing=function(t,e){return t.type===l.TAG_CLOSE&&e&&(('>'===t.text||'/>'===t.text)&&'<'===e.text[0]||'}}'===t.text&&'{'===e.text[0]&&'{'===e.text[1])},u.prototype._reset=function(){this._current_tag_name=''},u.prototype._get_next_token=function(t,e){var n=null;this._readWhitespace();var o=this._input.peek();return null===o?this._create_token(l.EOF,''):n=(n=(n=(n=(n=(n=(n=(n=(n=n||this._read_open_handlebars(o,e))||this._read_attribute(o,t,e))||this._read_close(o,e))||this._read_raw_content(o,t,e))||this._read_content_word(o))||this._read_comment_or_cdata(o))||this._read_processing(o))||this._read_open(o,e))||this._create_token(l.UNKNOWN,this._input.next())},u.prototype._read_comment_or_cdata=function(t){var e=null,n=null,o=null;'<'===t&&('!'===this._input.peek(1)&&((n=this.__patterns.comment.read())?(o=c.get_directives(n))&&'start'===o.ignore&&(n+=c.readIgnored(this._input)):n=this.__patterns.cdata.read()),n&&((e=this._create_token(l.COMMENT,n)).directives=o));return e},u.prototype._read_processing=function(t){var e=null,n=null;if('<'===t){var o=this._input.peek(1);'!'!==o&&'?'!==o||(n=(n=this.__patterns.conditional_comment.read())||this.__patterns.processing.read()),n&&((e=this._create_token(l.COMMENT,n)).directives=null)}return e},u.prototype._read_open=function(t,e){var n=null,o=null;return e||'<'===t&&(n=this._input.next(),'/'===this._input.peek()&&(n+=this._input.next()),n+=this.__patterns.element_name.read(),o=this._create_token(l.TAG_OPEN,n)),o},u.prototype._read_open_handlebars=function(t,e){var n=null,o=null;return e||this._options.indent_handlebars&&'{'===t&&'{'===this._input.peek(1)&&('!'===this._input.peek(2)?(n=(n=this.__patterns.handlebars_comment.read())||this.__patterns.handlebars.read(),o=this._create_token(l.COMMENT,n)):(n=this.__patterns.handlebars_open.read(),o=this._create_token(l.TAG_OPEN,n))),o},u.prototype._read_close=function(t,e){var n=null,o=null;return e&&('<'===e.text[0]&&('>'===t||'/'===t&&'>'===this._input.peek(1))?(n=this._input.next(),'/'===t&&(n+=this._input.next()),o=this._create_token(l.TAG_CLOSE,n)):'{'===e.text[0]&&'}'===t&&'}'===this._input.peek(1)&&(this._input.next(),this._input.next(),o=this._create_token(l.TAG_CLOSE,'}}'))),o},u.prototype._read_attribute=function(t,e,n){var o=null,i='';if(n&&'<'===n.text[0])if('='===t)o=this._create_token(l.EQUALS,this._input.next());else if('"'===t||"'"===t){var r=this._input.next();r+='"'===t?this.__patterns.double_quote.read():this.__patterns.single_quote.read(),o=this._create_token(l.VALUE,r)}else(i=this.__patterns.attribute.read())&&(o=e.type===l.EQUALS?this._create_token(l.VALUE,i):this._create_token(l.ATTRIBUTE,i));return o},u.prototype._is_content_unformatted=function(t){return-1===this._options.void_elements.indexOf(t)&&(-1!==this._options.content_unformatted.indexOf(t)||-1!==this._options.unformatted.indexOf(t))},u.prototype._read_raw_content=function(t,e,n){var o='';if(n&&'{'===n.text[0])o=this.__patterns.handlebars_raw_close.read();else if(e.type===l.TAG_CLOSE&&'<'===e.opened.text[0]&&'/'!==e.text[0]){var i=e.opened.text.substr(1).toLowerCase();if('script'===i||'style'===i){var r=this._read_comment_or_cdata(t);if(r)return r.type=l.TEXT,r;o=this._input.readUntil(new RegExp('','ig'))}else this._is_content_unformatted(i)&&(o=this._input.readUntil(new RegExp('','ig')))}return o?this._create_token(l.TEXT,o):null},u.prototype._read_content_word=function(t){var e='';if(this._options.unformatted_content_delimiter&&t===this._options.unformatted_content_delimiter[0]&&(e=this.__patterns.unformatted_content_delimiter.read()),e||(e=this.__patterns.word.read()),e)return this._create_token(l.TEXT,e)},t.exports.Tokenizer=u,t.exports.TOKEN=l}],e={};var n=function n(o){var i=e[o];if(void 0!==i)return i.exports;var r=e[o]={exports:{}};return t[o](r,r.exports,n),r.exports}(18);r=n}();var s=r;if(1)o=[n,n(94),n(838)],i=function(t){var e=n(94),o=n(838);return{html_beautify:function(t,n){return s(t,n,e.js_beautify,o.css_beautify)}}}.apply(e,o),void 0===i||(t.exports=i);else;}()},94:(t,e)=>{var n;!function(){var o;!function(){"use strict";var t=[function(t,e,n){var o=n(1).Beautifier,i=n(5).Options;t.exports=function(t,e){return new o(t,e).beautify()},t.exports.defaultOptions=function(){return new i}},function(t,e,n){var o=n(2).Output,i=n(3).Token,r=n(4),s=n(5).Options,a=n(7).Tokenizer,l=n(7).line_starters,c=n(7).positionable_operators,u=n(7).TOKEN;function h(t,e){return-1!==e.indexOf(t)}function p(t,e){return t&&t.type===u.RESERVED&&t.text===e}function d(t,e){return t&&t.type===u.RESERVED&&h(t.text,e)}var f=['case','return','do','if','throw','else','await','break','continue','async'],g=function(t){for(var e={},n=0;nn&&(n=t.line_indent_level)),{mode:e,parent:t,last_token:t?t.last_token:new i(u.START_BLOCK,''),last_word:t?t.last_word:'',declaration_statement:!1,declaration_assignment:!1,multiline_frame:!1,inline_frame:!1,if_block:!1,else_block:!1,class_start_block:!1,do_block:!1,do_while:!1,import_block:!1,in_case_statement:!1,in_case:!1,case_body:!1,case_block:!1,indentation_level:n,alignment:0,line_indent_level:t?t.line_indent_level:n,start_line_index:this._output.get_line_number(),ternary_depth:0}},C.prototype._reset=function(t){var e=t.match(/^[\t ]*/)[0];this._last_last_text='',this._output=new o(this._options,e),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(v);var n=new a(t,this._options);return this._tokens=n.tokenize(),t},C.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var t=this._reset(this._source_text),e=this._options.eol;'auto'===this._options.eol&&(e='\n',t&&r.lineBreak.test(t||'')&&(e=t.match(r.lineBreak)[0]));for(var n=this._tokens.next();n;)this.handle_token(n),this._last_last_text=this._flags.last_token.text,this._flags.last_token=n,n=this._tokens.next();return this._output.get_code(e)},C.prototype.handle_token=function(t,e){t.type===u.START_EXPR?this.handle_start_expr(t):t.type===u.END_EXPR?this.handle_end_expr(t):t.type===u.START_BLOCK?this.handle_start_block(t):t.type===u.END_BLOCK?this.handle_end_block(t):t.type===u.WORD||t.type===u.RESERVED?this.handle_word(t):t.type===u.SEMICOLON?this.handle_semicolon(t):t.type===u.STRING?this.handle_string(t):t.type===u.EQUALS?this.handle_equals(t):t.type===u.OPERATOR?this.handle_operator(t):t.type===u.COMMA?this.handle_comma(t):t.type===u.BLOCK_COMMENT?this.handle_block_comment(t,e):t.type===u.COMMENT?this.handle_comment(t,e):t.type===u.DOT?this.handle_dot(t):t.type===u.EOF?this.handle_eof(t):(t.type,u.UNKNOWN,this.handle_unknown(t,e))},C.prototype.handle_whitespace_and_comments=function(t,e){var n=t.newlines,o=this._options.keep_array_indentation&&k(this._flags.mode);if(t.comments_before)for(var i=t.comments_before.next();i;)this.handle_whitespace_and_comments(i,e),this.handle_token(i,e),i=t.comments_before.next();if(o)for(var r=0;r0,e);else if(this._options.max_preserve_newlines&&n>this._options.max_preserve_newlines&&(n=this._options.max_preserve_newlines),this._options.preserve_newlines&&n>1){this.print_newline(!1,e);for(var s=1;s0&&(!this._flags.parent||this._flags.indentation_level>this._flags.parent.indentation_level)&&(this._flags.indentation_level-=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},C.prototype.set_mode=function(t){this._flags?(this._flag_store.push(this._flags),this._previous_flags=this._flags):this._previous_flags=this.create_flags(null,t),this._flags=this.create_flags(this._previous_flags,t),this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},C.prototype.restore_mode=function(){this._flag_store.length>0&&(this._previous_flags=this._flags,this._flags=this._flag_store.pop(),this._previous_flags.mode===y&&S(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},C.prototype.start_of_object_property=function(){return this._flags.parent.mode===_&&this._flags.mode===y&&(':'===this._flags.last_token.text&&0===this._flags.ternary_depth||d(this._flags.last_token,['get','set']))},C.prototype.start_of_statement=function(t){var e=!1;return!!(e=(e=(e=(e=(e=(e=(e=e||d(this._flags.last_token,['var','let','const'])&&t.type===u.WORD)||p(this._flags.last_token,'do'))||!(this._flags.parent.mode===_&&this._flags.mode===y)&&d(this._flags.last_token,T)&&!t.newlines)||p(this._flags.last_token,'else')&&!(p(t,'if')&&!t.comments_before))||this._flags.last_token.type===u.END_EXPR&&(this._previous_flags.mode===b||this._previous_flags.mode===w))||this._flags.last_token.type===u.WORD&&this._flags.mode===v&&!this._flags.in_case&&!('--'===t.text||'++'===t.text)&&'function'!==this._last_last_text&&t.type!==u.WORD&&t.type!==u.RESERVED)||this._flags.mode===_&&(':'===this._flags.last_token.text&&0===this._flags.ternary_depth||d(this._flags.last_token,['get','set'])))&&(this.set_mode(y),this.indent(),this.handle_whitespace_and_comments(t,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(t,d(t,['do','for','if','while'])),!0)},C.prototype.handle_start_expr=function(t){this.start_of_statement(t)||this.handle_whitespace_and_comments(t);var e=x;if('['===t.text){if(this._flags.last_token.type===u.WORD||')'===this._flags.last_token.text)return d(this._flags.last_token,l)&&(this._output.space_before_token=!0),this.print_token(t),this.set_mode(e),this.indent(),void(this._options.space_in_paren&&(this._output.space_before_token=!0));e=O,k(this._flags.mode)&&('['!==this._flags.last_token.text&&(','!==this._flags.last_token.text||']'!==this._last_last_text&&'}'!==this._last_last_text)||this._options.keep_array_indentation||this.print_newline()),h(this._flags.last_token.type,[u.START_EXPR,u.END_EXPR,u.WORD,u.OPERATOR,u.DOT])||(this._output.space_before_token=!0)}else{if(this._flags.last_token.type===u.RESERVED)'for'===this._flags.last_token.text?(this._output.space_before_token=this._options.space_before_conditional,e=b):h(this._flags.last_token.text,['if','while','switch'])?(this._output.space_before_token=this._options.space_before_conditional,e=w):h(this._flags.last_word,['await','async'])?this._output.space_before_token=!0:'import'===this._flags.last_token.text&&''===t.whitespace_before?this._output.space_before_token=!1:(h(this._flags.last_token.text,l)||'catch'===this._flags.last_token.text)&&(this._output.space_before_token=!0);else if(this._flags.last_token.type===u.EQUALS||this._flags.last_token.type===u.OPERATOR)this.start_of_object_property()||this.allow_wrap_or_preserved_newline(t);else if(this._flags.last_token.type===u.WORD){this._output.space_before_token=!1;var n=this._tokens.peek(-3);if(this._options.space_after_named_function&&n){var o=this._tokens.peek(-4);d(n,['async','function'])||'*'===n.text&&d(o,['async','function'])?this._output.space_before_token=!0:this._flags.mode===_?'{'!==n.text&&','!==n.text&&('*'!==n.text||'{'!==o.text&&','!==o.text)||(this._output.space_before_token=!0):this._flags.parent&&this._flags.parent.class_start_block&&(this._output.space_before_token=!0)}}else this.allow_wrap_or_preserved_newline(t);(this._flags.last_token.type===u.RESERVED&&('function'===this._flags.last_word||'typeof'===this._flags.last_word)||'*'===this._flags.last_token.text&&(h(this._last_last_text,['function','yield'])||this._flags.mode===_&&h(this._last_last_text,['{',','])))&&(this._output.space_before_token=this._options.space_after_anon_function)}';'===this._flags.last_token.text||this._flags.last_token.type===u.START_BLOCK?this.print_newline():this._flags.last_token.type!==u.END_EXPR&&this._flags.last_token.type!==u.START_EXPR&&this._flags.last_token.type!==u.END_BLOCK&&'.'!==this._flags.last_token.text&&this._flags.last_token.type!==u.COMMA||this.allow_wrap_or_preserved_newline(t,t.newlines),this.print_token(t),this.set_mode(e),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()},C.prototype.handle_end_expr=function(t){for(;this._flags.mode===y;)this.restore_mode();this.handle_whitespace_and_comments(t),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(t,']'===t.text&&k(this._flags.mode)&&!this._options.keep_array_indentation),this._options.space_in_paren&&(this._flags.last_token.type!==u.START_EXPR||this._options.space_in_empty_paren?this._output.space_before_token=!0:(this._output.trim(),this._output.space_before_token=!1)),this.deindent(),this.print_token(t),this.restore_mode(),S(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===w&&(this._previous_flags.mode=x,this._flags.do_block=!1,this._flags.do_while=!1)},C.prototype.handle_start_block=function(t){this.handle_whitespace_and_comments(t);var e=this._tokens.peek(),n=this._tokens.peek(1);'switch'===this._flags.last_word&&this._flags.last_token.type===u.END_EXPR?(this.set_mode(v),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(v):n&&(h(n.text,[':',','])&&h(e.type,[u.STRING,u.WORD,u.RESERVED])||h(e.text,['get','set','...'])&&h(n.type,[u.WORD,u.RESERVED]))?h(this._last_last_text,['class','interface'])&&!h(n.text,[':',','])?this.set_mode(v):this.set_mode(_):this._flags.last_token.type===u.OPERATOR&&'=>'===this._flags.last_token.text?this.set_mode(v):h(this._flags.last_token.type,[u.EQUALS,u.START_EXPR,u.COMMA,u.OPERATOR])||d(this._flags.last_token,['return','throw','import','default'])?this.set_mode(_):this.set_mode(v),this._flags.last_token&&d(this._flags.last_token.previous,['class','extends'])&&(this._flags.class_start_block=!0);var o=!e.comments_before&&'}'===e.text,i=o&&'function'===this._flags.last_word&&this._flags.last_token.type===u.END_EXPR;if(this._options.brace_preserve_inline){var r=0,s=null;this._flags.inline_frame=!0;do{if(r+=1,(s=this._tokens.peek(r-1)).newlines){this._flags.inline_frame=!1;break}}while(s.type!==u.EOF&&(s.type!==u.END_BLOCK||s.opened!==t))}("expand"===this._options.brace_style||"none"===this._options.brace_style&&t.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==u.OPERATOR&&(i||this._flags.last_token.type===u.EQUALS||d(this._flags.last_token,f)&&'else'!==this._flags.last_token.text)?this._output.space_before_token=!0:this.print_newline(!1,!0):(!k(this._previous_flags.mode)||this._flags.last_token.type!==u.START_EXPR&&this._flags.last_token.type!==u.COMMA||((this._flags.last_token.type===u.COMMA||this._options.space_in_paren)&&(this._output.space_before_token=!0),(this._flags.last_token.type===u.COMMA||this._flags.last_token.type===u.START_EXPR&&this._flags.inline_frame)&&(this.allow_wrap_or_preserved_newline(t),this._previous_flags.multiline_frame=this._previous_flags.multiline_frame||this._flags.multiline_frame,this._flags.multiline_frame=!1)),this._flags.last_token.type!==u.OPERATOR&&this._flags.last_token.type!==u.START_EXPR&&(h(this._flags.last_token.type,[u.START_BLOCK,u.SEMICOLON])&&!this._flags.inline_frame?this.print_newline():this._output.space_before_token=!0)),this.print_token(t),this.indent(),o||this._options.brace_preserve_inline&&this._flags.inline_frame||this.print_newline()},C.prototype.handle_end_block=function(t){for(this.handle_whitespace_and_comments(t);this._flags.mode===y;)this.restore_mode();var e=this._flags.last_token.type===u.START_BLOCK;this._flags.inline_frame&&!e?this._output.space_before_token=!0:"expand"===this._options.brace_style?e||this.print_newline():e||(k(this._flags.mode)&&this._options.keep_array_indentation?(this._options.keep_array_indentation=!1,this.print_newline(),this._options.keep_array_indentation=!0):this.print_newline()),this.restore_mode(),this.print_token(t)},C.prototype.handle_word=function(t){if(t.type===u.RESERVED)if(h(t.text,['set','get'])&&this._flags.mode!==_)t.type=u.WORD;else if('import'===t.text&&h(this._tokens.peek().text,['(','.']))t.type=u.WORD;else if(h(t.text,['as','from'])&&!this._flags.import_block)t.type=u.WORD;else if(this._flags.mode===_){':'===this._tokens.peek().text&&(t.type=u.WORD)}if(this.start_of_statement(t)?d(this._flags.last_token,['var','let','const'])&&t.type===u.WORD&&(this._flags.declaration_statement=!0):!t.newlines||P(this._flags.mode)||this._flags.last_token.type===u.OPERATOR&&'--'!==this._flags.last_token.text&&'++'!==this._flags.last_token.text||this._flags.last_token.type===u.EQUALS||!this._options.preserve_newlines&&d(this._flags.last_token,['var','let','const','set','get'])?this.handle_whitespace_and_comments(t):(this.handle_whitespace_and_comments(t),this.print_newline()),this._flags.do_block&&!this._flags.do_while){if(p(t,'while'))return this._output.space_before_token=!0,this.print_token(t),this._output.space_before_token=!0,void(this._flags.do_while=!0);this.print_newline(),this._flags.do_block=!1}if(this._flags.if_block)if(!this._flags.else_block&&p(t,'else'))this._flags.else_block=!0;else{for(;this._flags.mode===y;)this.restore_mode();this._flags.if_block=!1,this._flags.else_block=!1}if(this._flags.in_case_statement&&d(t,['case','default']))return this.print_newline(),this._flags.case_block||!this._flags.case_body&&!this._options.jslint_happy||this.deindent(),this._flags.case_body=!1,this.print_token(t),void(this._flags.in_case=!0);if(this._flags.last_token.type!==u.COMMA&&this._flags.last_token.type!==u.START_EXPR&&this._flags.last_token.type!==u.EQUALS&&this._flags.last_token.type!==u.OPERATOR||this.start_of_object_property()||h(this._flags.last_token.text,['+','-'])&&':'===this._last_last_text&&this._flags.parent.mode===_||this.allow_wrap_or_preserved_newline(t),p(t,'function'))return(h(this._flags.last_token.text,['}',';'])||this._output.just_added_newline()&&!h(this._flags.last_token.text,['(','[','{',':','=',','])&&this._flags.last_token.type!==u.OPERATOR)&&(this._output.just_added_blankline()||t.comments_before||(this.print_newline(),this.print_newline(!0))),this._flags.last_token.type===u.RESERVED||this._flags.last_token.type===u.WORD?d(this._flags.last_token,['get','set','new','export'])||d(this._flags.last_token,T)||p(this._flags.last_token,'default')&&'export'===this._last_last_text||'declare'===this._flags.last_token.text?this._output.space_before_token=!0:this.print_newline():this._flags.last_token.type===u.OPERATOR||'='===this._flags.last_token.text?this._output.space_before_token=!0:(this._flags.multiline_frame||!P(this._flags.mode)&&!k(this._flags.mode))&&this.print_newline(),this.print_token(t),void(this._flags.last_word=t.text);var e='NONE';(this._flags.last_token.type===u.END_BLOCK?this._previous_flags.inline_frame?e='SPACE':d(t,['else','catch','finally','from'])?"expand"===this._options.brace_style||"end-expand"===this._options.brace_style||"none"===this._options.brace_style&&t.newlines?e='NEWLINE':(e='SPACE',this._output.space_before_token=!0):e='NEWLINE':this._flags.last_token.type===u.SEMICOLON&&this._flags.mode===v?e='NEWLINE':this._flags.last_token.type===u.SEMICOLON&&P(this._flags.mode)?e='SPACE':this._flags.last_token.type===u.STRING?e='NEWLINE':this._flags.last_token.type===u.RESERVED||this._flags.last_token.type===u.WORD||'*'===this._flags.last_token.text&&(h(this._last_last_text,['function','yield'])||this._flags.mode===_&&h(this._last_last_text,['{',',']))?e='SPACE':this._flags.last_token.type===u.START_BLOCK?e=this._flags.inline_frame?'SPACE':'NEWLINE':this._flags.last_token.type===u.END_EXPR&&(this._output.space_before_token=!0,e='NEWLINE'),d(t,l)&&')'!==this._flags.last_token.text&&(e=this._flags.inline_frame||'else'===this._flags.last_token.text||'export'===this._flags.last_token.text?'SPACE':'NEWLINE'),d(t,['else','catch','finally']))?(this._flags.last_token.type!==u.END_BLOCK||this._previous_flags.mode!==v||"expand"===this._options.brace_style||"end-expand"===this._options.brace_style||"none"===this._options.brace_style&&t.newlines)&&!this._flags.inline_frame?this.print_newline():(this._output.trim(!0),'}'!==this._output.current_line.last()&&this.print_newline(),this._output.space_before_token=!0):'NEWLINE'===e?d(this._flags.last_token,f)||'declare'===this._flags.last_token.text&&d(t,['var','let','const'])?this._output.space_before_token=!0:this._flags.last_token.type!==u.END_EXPR?this._flags.last_token.type===u.START_EXPR&&d(t,['var','let','const'])||':'===this._flags.last_token.text||(p(t,'if')&&p(t.previous,'else')?this._output.space_before_token=!0:this.print_newline()):d(t,l)&&')'!==this._flags.last_token.text&&this.print_newline():this._flags.multiline_frame&&k(this._flags.mode)&&','===this._flags.last_token.text&&'}'===this._last_last_text?this.print_newline():'SPACE'===e&&(this._output.space_before_token=!0);!t.previous||t.previous.type!==u.WORD&&t.previous.type!==u.RESERVED||(this._output.space_before_token=!0),this.print_token(t),this._flags.last_word=t.text,t.type===u.RESERVED&&('do'===t.text?this._flags.do_block=!0:'if'===t.text?this._flags.if_block=!0:'import'===t.text?this._flags.import_block=!0:this._flags.import_block&&p(t,'from')&&(this._flags.import_block=!1))},C.prototype.handle_semicolon=function(t){this.start_of_statement(t)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(t);for(var e=this._tokens.peek();!(this._flags.mode!==y||this._flags.if_block&&p(e,'else')||this._flags.do_block);)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(t)},C.prototype.handle_string=function(t){(!t.text.startsWith("`")||0!==t.newlines||''!==t.whitespace_before||')'!==t.previous.text&&this._flags.last_token.type!==u.WORD)&&(this.start_of_statement(t)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(t),this._flags.last_token.type===u.RESERVED||this._flags.last_token.type===u.WORD||this._flags.inline_frame?this._output.space_before_token=!0:this._flags.last_token.type===u.COMMA||this._flags.last_token.type===u.START_EXPR||this._flags.last_token.type===u.EQUALS||this._flags.last_token.type===u.OPERATOR?this.start_of_object_property()||this.allow_wrap_or_preserved_newline(t):!t.text.startsWith("`")||this._flags.last_token.type!==u.END_EXPR||']'!==t.previous.text&&')'!==t.previous.text||0!==t.newlines?this.print_newline():this._output.space_before_token=!0)),this.print_token(t)},C.prototype.handle_equals=function(t){this.start_of_statement(t)||this.handle_whitespace_and_comments(t),this._flags.declaration_statement&&(this._flags.declaration_assignment=!0),this._output.space_before_token=!0,this.print_token(t),this._output.space_before_token=!0},C.prototype.handle_comma=function(t){this.handle_whitespace_and_comments(t,!0),this.print_token(t),this._output.space_before_token=!0,this._flags.declaration_statement?(P(this._flags.parent.mode)&&(this._flags.declaration_assignment=!1),this._flags.declaration_assignment?(this._flags.declaration_assignment=!1,this.print_newline(!1,!0)):this._options.comma_first&&this.allow_wrap_or_preserved_newline(t)):this._flags.mode===_||this._flags.mode===y&&this._flags.parent.mode===_?(this._flags.mode===y&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(t)},C.prototype.handle_operator=function(t){var e='*'===t.text&&(d(this._flags.last_token,['function','yield'])||h(this._flags.last_token.type,[u.START_BLOCK,u.COMMA,u.END_BLOCK,u.SEMICOLON])),n=h(t.text,['-','+'])&&(h(this._flags.last_token.type,[u.START_BLOCK,u.START_EXPR,u.EQUALS,u.OPERATOR])||h(this._flags.last_token.text,l)||','===this._flags.last_token.text);if(this.start_of_statement(t));else{var o=!e;this.handle_whitespace_and_comments(t,o)}if('*'!==t.text||this._flags.last_token.type!==u.DOT)if('::'!==t.text)if(h(t.text,['-','+'])&&this.start_of_object_property())this.print_token(t);else{if(this._flags.last_token.type===u.OPERATOR&&h(this._options.operator_position,m)&&this.allow_wrap_or_preserved_newline(t),':'===t.text&&this._flags.in_case)return this.print_token(t),this._flags.in_case=!1,this._flags.case_body=!0,void(this._tokens.peek().type!==u.START_BLOCK?(this.indent(),this.print_newline(),this._flags.case_block=!1):(this._flags.case_block=!0,this._output.space_before_token=!0));var i=!0,r=!0,s=!1;if(':'===t.text?0===this._flags.ternary_depth?i=!1:(this._flags.ternary_depth-=1,s=!0):'?'===t.text&&(this._flags.ternary_depth+=1),!n&&!e&&this._options.preserve_newlines&&h(t.text,c)){var a=':'===t.text,p=a&&s,_=a&&!s;switch(this._options.operator_position){case g.before_newline:return this._output.space_before_token=!_,this.print_token(t),a&&!p||this.allow_wrap_or_preserved_newline(t),void(this._output.space_before_token=!0);case g.after_newline:return this._output.space_before_token=!0,!a||p?this._tokens.peek().newlines?this.print_newline(!1,!0):this.allow_wrap_or_preserved_newline(t):this._output.space_before_token=!1,this.print_token(t),void(this._output.space_before_token=!0);case g.preserve_newline:return _||this.allow_wrap_or_preserved_newline(t),i=!(this._output.just_added_newline()||_),this._output.space_before_token=i,this.print_token(t),void(this._output.space_before_token=!0)}}if(e){this.allow_wrap_or_preserved_newline(t),i=!1;var O=this._tokens.peek();r=O&&h(O.type,[u.WORD,u.RESERVED])}else if('...'===t.text)this.allow_wrap_or_preserved_newline(t),i=this._flags.last_token.type===u.START_BLOCK,r=!1;else if(h(t.text,['--','++','!','~'])||n){if(this._flags.last_token.type!==u.COMMA&&this._flags.last_token.type!==u.START_EXPR||this.allow_wrap_or_preserved_newline(t),i=!1,r=!1,t.newlines&&('--'===t.text||'++'===t.text||'~'===t.text)){var b=d(this._flags.last_token,f)&&t.newlines;b&&(this._previous_flags.if_block||this._previous_flags.else_block)&&this.restore_mode(),this.print_newline(b,!0)}';'===this._flags.last_token.text&&P(this._flags.mode)&&(i=!0),this._flags.last_token.type===u.RESERVED?i=!0:this._flags.last_token.type===u.END_EXPR?i=!(']'===this._flags.last_token.text&&('--'===t.text||'++'===t.text)):this._flags.last_token.type===u.OPERATOR&&(i=h(t.text,['--','-','++','+'])&&h(this._flags.last_token.text,['--','-','++','+']),h(t.text,['+','-'])&&h(this._flags.last_token.text,['--','++'])&&(r=!0)),(this._flags.mode!==v||this._flags.inline_frame)&&this._flags.mode!==y||'{'!==this._flags.last_token.text&&';'!==this._flags.last_token.text||this.print_newline()}this._output.space_before_token=this._output.space_before_token||i,this.print_token(t),this._output.space_before_token=r}else this.print_token(t);else this.print_token(t)},C.prototype.handle_block_comment=function(t,e){return this._output.raw?(this._output.add_raw_token(t),void(t.directives&&'end'===t.directives.preserve&&(this._output.raw=this._options.test_output_raw))):t.directives?(this.print_newline(!1,e),this.print_token(t),'start'===t.directives.preserve&&(this._output.raw=!0),void this.print_newline(!1,!0)):r.newline.test(t.text)||t.newlines?void this.print_block_commment(t,e):(this._output.space_before_token=!0,this.print_token(t),void(this._output.space_before_token=!0))},C.prototype.print_block_commment=function(t,e){var n,o=function(t){for(var e=[],n=(t=t.replace(r.allLineBreaks,'\n')).indexOf("\n");-1!==n;)e.push(t.substring(0,n)),n=(t=t.substring(n+1)).indexOf("\n");return t.length&&e.push(t),e}(t.text),i=!1,s=!1,a=t.whitespace_before,l=a.length;if(this.print_newline(!1,e),this.print_token_line_indentation(t),this._output.add_token(o[0]),this.print_newline(!1,e),o.length>1){for(i=function(t,e){for(var n=0;n0&&(e=new Array(t.indent_level+1).join(this.__indent_string)),this.__base_string=e,this.__base_string_length=e.length}function o(t,o){this.__indent_cache=new n(t,o),this.raw=!1,this._end_with_newline=t.end_with_newline,this.indent_size=t.indent_size,this.wrap_line_length=t.wrap_line_length,this.indent_empty_lines=t.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new e(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}e.prototype.clone_empty=function(){var t=new e(this.__parent);return t.set_indent(this.__indent_count,this.__alignment_count),t},e.prototype.item=function(t){return t<0?this.__items[this.__items.length+t]:this.__items[t]},e.prototype.has_match=function(t){for(var e=this.__items.length-1;e>=0;e--)if(this.__items[e].match(t))return!0;return!1},e.prototype.set_indent=function(t,e){this.is_empty()&&(this.__indent_count=t||0,this.__alignment_count=e||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},e.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},e.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},e.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var t=this.__parent.current_line;return t.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),t.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),t.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count," "===t.__items[0]&&(t.__items.splice(0,1),t.__character_count-=1),!0}return!1},e.prototype.is_empty=function(){return 0===this.__items.length},e.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},e.prototype.push=function(t){this.__items.push(t);var e=t.lastIndexOf('\n');-1!==e?this.__character_count=t.length-e:this.__character_count+=t.length},e.prototype.pop=function(){var t=null;return this.is_empty()||(t=this.__items.pop(),this.__character_count-=t.length),t},e.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},e.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},e.prototype.trim=function(){for(;' '===this.last();)this.__items.pop(),this.__character_count-=1},e.prototype.toString=function(){var t='';return this.is_empty()?this.__parent.indent_empty_lines&&(t=this.__parent.get_indent_string(this.__indent_count)):(t=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),t+=this.__items.join('')),t},n.prototype.get_indent_size=function(t,e){var n=this.__base_string_length;return e=e||0,t<0&&(n=0),n+=t*this.__indent_size,n+=e},n.prototype.get_indent_string=function(t,e){var n=this.__base_string;return e=e||0,t<0&&(t=0,n=''),e+=t*this.__indent_size,this.__ensure_cache(e),n+=this.__cache[e]},n.prototype.__ensure_cache=function(t){for(;t>=this.__cache.length;)this.__add_column()},n.prototype.__add_column=function(){var t=this.__cache.length,e=0,n='';this.__indent_size&&t>=this.__indent_size&&(t-=(e=Math.floor(t/this.__indent_size))*this.__indent_size,n=new Array(e+1).join(this.__indent_string)),t&&(n+=new Array(t+1).join(' ')),this.__cache.push(n)},o.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},o.prototype.get_line_number=function(){return this.__lines.length},o.prototype.get_indent_string=function(t,e){return this.__indent_cache.get_indent_string(t,e)},o.prototype.get_indent_size=function(t,e){return this.__indent_cache.get_indent_size(t,e)},o.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},o.prototype.add_new_line=function(t){return!(this.is_empty()||!t&&this.just_added_newline())&&(this.raw||this.__add_outputline(),!0)},o.prototype.get_code=function(t){this.trim(!0);var e=this.current_line.pop();e&&('\n'===e[e.length-1]&&(e=e.replace(/\n+$/g,'')),this.current_line.push(e)),this._end_with_newline&&this.__add_outputline();var n=this.__lines.join('\n');return'\n'!==t&&(n=n.replace(/[\n]/g,t)),n},o.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},o.prototype.set_indent=function(t,e){return t=t||0,e=e||0,this.next_line.set_indent(t,e),this.__lines.length>1?(this.current_line.set_indent(t,e),!0):(this.current_line.set_indent(),!1)},o.prototype.add_raw_token=function(t){for(var e=0;e1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},o.prototype.just_added_newline=function(){return this.current_line.is_empty()},o.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},o.prototype.ensure_empty_line_above=function(t,n){for(var o=this.__lines.length-2;o>=0;){var i=this.__lines[o];if(i.is_empty())break;if(0!==i.item(0).indexOf(t)&&i.item(-1)!==n){this.__lines.splice(o+1,0,new e(this)),this.previous_line=this.__lines[this.__lines.length-2];break}o--}},t.exports.Output=o},function(t){t.exports.Token=function(t,e,n,o){this.type=t,this.text=e,this.comments_before=null,this.newlines=n||0,this.whitespace_before=o||'',this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}},function(t,e){var n="\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a",o="\\xaa\\xb5\\xba\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\u02c1\\u02c6-\\u02d1\\u02e0-\\u02e4\\u02ec\\u02ee\\u0370-\\u0374\\u0376\\u0377\\u037a-\\u037d\\u0386\\u0388-\\u038a\\u038c\\u038e-\\u03a1\\u03a3-\\u03f5\\u03f7-\\u0481\\u048a-\\u0527\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05d0-\\u05ea\\u05f0-\\u05f2\\u0620-\\u064a\\u066e\\u066f\\u0671-\\u06d3\\u06d5\\u06e5\\u06e6\\u06ee\\u06ef\\u06fa-\\u06fc\\u06ff\\u0710\\u0712-\\u072f\\u074d-\\u07a5\\u07b1\\u07ca-\\u07ea\\u07f4\\u07f5\\u07fa\\u0800-\\u0815\\u081a\\u0824\\u0828\\u0840-\\u0858\\u08a0\\u08a2-\\u08ac\\u0904-\\u0939\\u093d\\u0950\\u0958-\\u0961\\u0971-\\u0977\\u0979-\\u097f\\u0985-\\u098c\\u098f\\u0990\\u0993-\\u09a8\\u09aa-\\u09b0\\u09b2\\u09b6-\\u09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5\\u0ea7\\u0eaa\\u0eab\\u0ead-\\u0eb0\\u0eb2\\u0eb3\\u0ebd\\u0ec0-\\u0ec4\\u0ec6\\u0edc-\\u0edf\\u0f00\\u0f40-\\u0f47\\u0f49-\\u0f6c\\u0f88-\\u0f8c\\u1000-\\u102a\\u103f\\u1050-\\u1055\\u105a-\\u105d\\u1061\\u1065\\u1066\\u106e-\\u1070\\u1075-\\u1081\\u108e\\u10a0-\\u10c5\\u10c7\\u10cd\\u10d0-\\u10fa\\u10fc-\\u1248\\u124a-\\u124d\\u1250-\\u1256\\u1258\\u125a-\\u125d\\u1260-\\u1288\\u128a-\\u128d\\u1290-\\u12b0\\u12b2-\\u12b5\\u12b8-\\u12be\\u12c0\\u12c2-\\u12c5\\u12c8-\\u12d6\\u12d8-\\u1310\\u1312-\\u1315\\u1318-\\u135a\\u1380-\\u138f\\u13a0-\\u13f4\\u1401-\\u166c\\u166f-\\u167f\\u1681-\\u169a\\u16a0-\\u16ea\\u16ee-\\u16f0\\u1700-\\u170c\\u170e-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176c\\u176e-\\u1770\\u1780-\\u17b3\\u17d7\\u17dc\\u1820-\\u1877\\u1880-\\u18a8\\u18aa\\u18b0-\\u18f5\\u1900-\\u191c\\u1950-\\u196d\\u1970-\\u1974\\u1980-\\u19ab\\u19c1-\\u19c7\\u1a00-\\u1a16\\u1a20-\\u1a54\\u1aa7\\u1b05-\\u1b33\\u1b45-\\u1b4b\\u1b83-\\u1ba0\\u1bae\\u1baf\\u1bba-\\u1be5\\u1c00-\\u1c23\\u1c4d-\\u1c4f\\u1c5a-\\u1c7d\\u1ce9-\\u1cec\\u1cee-\\u1cf1\\u1cf5\\u1cf6\\u1d00-\\u1dbf\\u1e00-\\u1f15\\u1f18-\\u1f1d\\u1f20-\\u1f45\\u1f48-\\u1f4d\\u1f50-\\u1f57\\u1f59\\u1f5b\\u1f5d\\u1f5f-\\u1f7d\\u1f80-\\u1fb4\\u1fb6-\\u1fbc\\u1fbe\\u1fc2-\\u1fc4\\u1fc6-\\u1fcc\\u1fd0-\\u1fd3\\u1fd6-\\u1fdb\\u1fe0-\\u1fec\\u1ff2-\\u1ff4\\u1ff6-\\u1ffc\\u2071\\u207f\\u2090-\\u209c\\u2102\\u2107\\u210a-\\u2113\\u2115\\u2119-\\u211d\\u2124\\u2126\\u2128\\u212a-\\u212d\\u212f-\\u2139\\u213c-\\u213f\\u2145-\\u2149\\u214e\\u2160-\\u2188\\u2c00-\\u2c2e\\u2c30-\\u2c5e\\u2c60-\\u2ce4\\u2ceb-\\u2cee\\u2cf2\\u2cf3\\u2d00-\\u2d25\\u2d27\\u2d2d\\u2d30-\\u2d67\\u2d6f\\u2d80-\\u2d96\\u2da0-\\u2da6\\u2da8-\\u2dae\\u2db0-\\u2db6\\u2db8-\\u2dbe\\u2dc0-\\u2dc6\\u2dc8-\\u2dce\\u2dd0-\\u2dd6\\u2dd8-\\u2dde\\u2e2f\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303c\\u3041-\\u3096\\u309d-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312d\\u3131-\\u318e\\u31a0-\\u31ba\\u31f0-\\u31ff\\u3400-\\u4db5\\u4e00-\\u9fcc\\ua000-\\ua48c\\ua4d0-\\ua4fd\\ua500-\\ua60c\\ua610-\\ua61f\\ua62a\\ua62b\\ua640-\\ua66e\\ua67f-\\ua697\\ua6a0-\\ua6ef\\ua717-\\ua71f\\ua722-\\ua788\\ua78b-\\ua78e\\ua790-\\ua793\\ua7a0-\\ua7aa\\ua7f8-\\ua801\\ua803-\\ua805\\ua807-\\ua80a\\ua80c-\\ua822\\ua840-\\ua873\\ua882-\\ua8b3\\ua8f2-\\ua8f7\\ua8fb\\ua90a-\\ua925\\ua930-\\ua946\\ua960-\\ua97c\\ua984-\\ua9b2\\ua9cf\\uaa00-\\uaa28\\uaa40-\\uaa42\\uaa44-\\uaa4b\\uaa60-\\uaa76\\uaa7a\\uaa80-\\uaaaf\\uaab1\\uaab5\\uaab6\\uaab9-\\uaabd\\uaac0\\uaac2\\uaadb-\\uaadd\\uaae0-\\uaaea\\uaaf2-\\uaaf4\\uab01-\\uab06\\uab09-\\uab0e\\uab11-\\uab16\\uab20-\\uab26\\uab28-\\uab2e\\uabc0-\\uabe2\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufb00-\\ufb06\\ufb13-\\ufb17\\ufb1d\\ufb1f-\\ufb28\\ufb2a-\\ufb36\\ufb38-\\ufb3c\\ufb3e\\ufb40\\ufb41\\ufb43\\ufb44\\ufb46-\\ufbb1\\ufbd3-\\ufd3d\\ufd50-\\ufd8f\\ufd92-\\ufdc7\\ufdf0-\\ufdfb\\ufe70-\\ufe74\\ufe76-\\ufefc\\uff21-\\uff3a\\uff41-\\uff5a\\uff66-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc",i="\\u0300-\\u036f\\u0483-\\u0487\\u0591-\\u05bd\\u05bf\\u05c1\\u05c2\\u05c4\\u05c5\\u05c7\\u0610-\\u061a\\u0620-\\u0649\\u0672-\\u06d3\\u06e7-\\u06e8\\u06fb-\\u06fc\\u0730-\\u074a\\u0800-\\u0814\\u081b-\\u0823\\u0825-\\u0827\\u0829-\\u082d\\u0840-\\u0857\\u08e4-\\u08fe\\u0900-\\u0903\\u093a-\\u093c\\u093e-\\u094f\\u0951-\\u0957\\u0962-\\u0963\\u0966-\\u096f\\u0981-\\u0983\\u09bc\\u09be-\\u09c4\\u09c7\\u09c8\\u09d7\\u09df-\\u09e0\\u0a01-\\u0a03\\u0a3c\\u0a3e-\\u0a42\\u0a47\\u0a48\\u0a4b-\\u0a4d\\u0a51\\u0a66-\\u0a71\\u0a75\\u0a81-\\u0a83\\u0abc\\u0abe-\\u0ac5\\u0ac7-\\u0ac9\\u0acb-\\u0acd\\u0ae2-\\u0ae3\\u0ae6-\\u0aef\\u0b01-\\u0b03\\u0b3c\\u0b3e-\\u0b44\\u0b47\\u0b48\\u0b4b-\\u0b4d\\u0b56\\u0b57\\u0b5f-\\u0b60\\u0b66-\\u0b6f\\u0b82\\u0bbe-\\u0bc2\\u0bc6-\\u0bc8\\u0bca-\\u0bcd\\u0bd7\\u0be6-\\u0bef\\u0c01-\\u0c03\\u0c46-\\u0c48\\u0c4a-\\u0c4d\\u0c55\\u0c56\\u0c62-\\u0c63\\u0c66-\\u0c6f\\u0c82\\u0c83\\u0cbc\\u0cbe-\\u0cc4\\u0cc6-\\u0cc8\\u0cca-\\u0ccd\\u0cd5\\u0cd6\\u0ce2-\\u0ce3\\u0ce6-\\u0cef\\u0d02\\u0d03\\u0d46-\\u0d48\\u0d57\\u0d62-\\u0d63\\u0d66-\\u0d6f\\u0d82\\u0d83\\u0dca\\u0dcf-\\u0dd4\\u0dd6\\u0dd8-\\u0ddf\\u0df2\\u0df3\\u0e34-\\u0e3a\\u0e40-\\u0e45\\u0e50-\\u0e59\\u0eb4-\\u0eb9\\u0ec8-\\u0ecd\\u0ed0-\\u0ed9\\u0f18\\u0f19\\u0f20-\\u0f29\\u0f35\\u0f37\\u0f39\\u0f41-\\u0f47\\u0f71-\\u0f84\\u0f86-\\u0f87\\u0f8d-\\u0f97\\u0f99-\\u0fbc\\u0fc6\\u1000-\\u1029\\u1040-\\u1049\\u1067-\\u106d\\u1071-\\u1074\\u1082-\\u108d\\u108f-\\u109d\\u135d-\\u135f\\u170e-\\u1710\\u1720-\\u1730\\u1740-\\u1750\\u1772\\u1773\\u1780-\\u17b2\\u17dd\\u17e0-\\u17e9\\u180b-\\u180d\\u1810-\\u1819\\u1920-\\u192b\\u1930-\\u193b\\u1951-\\u196d\\u19b0-\\u19c0\\u19c8-\\u19c9\\u19d0-\\u19d9\\u1a00-\\u1a15\\u1a20-\\u1a53\\u1a60-\\u1a7c\\u1a7f-\\u1a89\\u1a90-\\u1a99\\u1b46-\\u1b4b\\u1b50-\\u1b59\\u1b6b-\\u1b73\\u1bb0-\\u1bb9\\u1be6-\\u1bf3\\u1c00-\\u1c22\\u1c40-\\u1c49\\u1c5b-\\u1c7d\\u1cd0-\\u1cd2\\u1d00-\\u1dbe\\u1e01-\\u1f15\\u200c\\u200d\\u203f\\u2040\\u2054\\u20d0-\\u20dc\\u20e1\\u20e5-\\u20f0\\u2d81-\\u2d96\\u2de0-\\u2dff\\u3021-\\u3028\\u3099\\u309a\\ua640-\\ua66d\\ua674-\\ua67d\\ua69f\\ua6f0-\\ua6f1\\ua7f8-\\ua800\\ua806\\ua80b\\ua823-\\ua827\\ua880-\\ua881\\ua8b4-\\ua8c4\\ua8d0-\\ua8d9\\ua8f3-\\ua8f7\\ua900-\\ua909\\ua926-\\ua92d\\ua930-\\ua945\\ua980-\\ua983\\ua9b3-\\ua9c0\\uaa00-\\uaa27\\uaa40-\\uaa41\\uaa4c-\\uaa4d\\uaa50-\\uaa59\\uaa7b\\uaae0-\\uaae9\\uaaf2-\\uaaf3\\uabc0-\\uabe1\\uabec\\uabed\\uabf0-\\uabf9\\ufb20-\\ufb28\\ufe00-\\ufe0f\\ufe20-\\ufe26\\ufe33\\ufe34\\ufe4d-\\ufe4f\\uff10-\\uff19\\uff3f",r="\\\\u[0-9a-fA-F]{4}|\\\\u\\{[0-9a-fA-F]+\\}",s="(?:"+r+"|["+"\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a"+o+"])",a="(?:"+r+"|["+n+o+i+"])*";e.identifier=new RegExp(s+a,'g'),e.identifierStart=new RegExp(s),e.identifierMatch=new RegExp("(?:"+r+"|["+n+o+i+"])+");e.newline=/[\n\r\u2028\u2029]/,e.lineBreak=new RegExp('\r\n|'+e.newline.source),e.allLineBreaks=new RegExp(e.lineBreak.source,'g')},function(t,e,n){var o=n(6).Options,i=['before-newline','after-newline','preserve-newline'];function r(t){o.call(this,t,'js');var e=this.raw_options.brace_style||null;"expand-strict"===e?this.raw_options.brace_style="expand":"collapse-preserve-inline"===e?this.raw_options.brace_style="collapse,preserve-inline":void 0!==this.raw_options.braces_on_own_line&&(this.raw_options.brace_style=this.raw_options.braces_on_own_line?"expand":"collapse");var n=this._get_selection_list('brace_style',['collapse','expand','end-expand','none','preserve-inline']);this.brace_preserve_inline=!1,this.brace_style="collapse";for(var r=0;r>> === !== &&= ??= ||= "+"<< && >= ** != == <= >> || ?? |> "+"< / - + > : & % ? ^ | *").split(' '),v=">>>= "+"... >>= <<= === >>> !== **= &&= ??= ||= "+"=> ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> "+"= ! ? > < : / ^ - + * & % ~ |";v=(v='\\?\\.(?!\\d) '+(v=v.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"))).replace(/ /g,'|');var y,_=new RegExp(v),O='continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export'.split(','),b=O.concat(['do','in','of','else','get','set','new','catch','finally','typeof','yield','async','await','from','as','class','extends']),w=new RegExp('^(?:'+b.join('|')+')$'),x=function(t,e){i.call(this,t,e),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var n=new l(this._input),o=new c(this._input).read_options(this._options);this.__patterns={template:o,identifier:o.starting_with(a.identifier).matching(a.identifierMatch),number:n.matching(d),punct:n.matching(_),comment:n.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:n.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:n.matching(//),include:n.starting_with(/#include/).until_after(a.lineBreak),shebang:n.starting_with(/#!/).until_after(a.lineBreak),xml:n.matching(/[\s\S]*?<(\/?)([-a-zA-Z:0-9_.]+|{[^}]+?}|!\[CDATA\[[^\]]*?\]\]|)(\s*{[^}]+?}|\s+[-a-zA-Z:0-9_.]+|\s+[-a-zA-Z:0-9_.]+\s*=\s*('[^']*'|"[^"]*"|{([^{}]|{[^}]+?})+?}))*\s*(\/?)\s*>/),single_quote:o.until(/['\\\n\r\u2028\u2029]/),double_quote:o.until(/["\\\n\r\u2028\u2029]/),template_text:o.until(/[`\\$]/),template_expression:o.until(/[`}\\]/)}};(x.prototype=new i)._is_comment=function(t){return t.type===h.COMMENT||t.type===h.BLOCK_COMMENT||t.type===h.UNKNOWN},x.prototype._is_opening=function(t){return t.type===h.START_BLOCK||t.type===h.START_EXPR},x.prototype._is_closing=function(t,e){return(t.type===h.END_BLOCK||t.type===h.END_EXPR)&&e&&(']'===t.text&&'['===e.text||')'===t.text&&'('===e.text||'}'===t.text&&'{'===e.text)},x.prototype._reset=function(){y=!1},x.prototype._get_next_token=function(t,e){var n=null;this._readWhitespace();var o=this._input.peek();return null===o?this._create_token(h.EOF,''):n=(n=(n=(n=(n=(n=(n=(n=(n=(n=n||this._read_non_javascript(o))||this._read_string(o))||this._read_pair(o,this._input.peek(1)))||this._read_word(t))||this._read_singles(o))||this._read_comment(o))||this._read_regexp(o,t))||this._read_xml(o,t))||this._read_punctuation())||this._create_token(h.UNKNOWN,this._input.next())},x.prototype._read_word=function(t){var e;return''!==(e=this.__patterns.identifier.read())?(e=e.replace(a.allLineBreaks,'\n'),t.type!==h.DOT&&(t.type!==h.RESERVED||'set'!==t.text&&'get'!==t.text)&&w.test(e)?'in'!==e&&'of'!==e||t.type!==h.WORD&&t.type!==h.STRING?this._create_token(h.RESERVED,e):this._create_token(h.OPERATOR,e):this._create_token(h.WORD,e)):''!==(e=this.__patterns.number.read())?this._create_token(h.WORD,e):void 0},x.prototype._read_singles=function(t){var e=null;return'('===t||'['===t?e=this._create_token(h.START_EXPR,t):')'===t||']'===t?e=this._create_token(h.END_EXPR,t):'{'===t?e=this._create_token(h.START_BLOCK,t):'}'===t?e=this._create_token(h.END_BLOCK,t):';'===t?e=this._create_token(h.SEMICOLON,t):'.'===t&&g.test(this._input.peek(1))?e=this._create_token(h.DOT,t):','===t&&(e=this._create_token(h.COMMA,t)),e&&this._input.next(),e},x.prototype._read_pair=function(t,e){var n=null;return'#'===t&&'{'===e&&(n=this._create_token(h.START_BLOCK,t+e)),n&&(this._input.next(),this._input.next()),n},x.prototype._read_punctuation=function(){var t=this.__patterns.punct.read();if(''!==t)return'='===t?this._create_token(h.EQUALS,t):'?.'===t?this._create_token(h.DOT,t):this._create_token(h.OPERATOR,t)},x.prototype._read_non_javascript=function(t){var e='';if('#'===t){if(this._is_first_token()&&(e=this.__patterns.shebang.read()))return this._create_token(h.UNKNOWN,e.trim()+'\n');if(e=this.__patterns.include.read())return this._create_token(h.UNKNOWN,e.trim()+'\n');t=this._input.next();var n='#';if(this._input.hasNext()&&this._input.testChar(f)){do{n+=t=this._input.next()}while(this._input.hasNext()&&'#'!==t&&'='!==t);return'#'===t||('['===this._input.peek()&&']'===this._input.peek(1)?(n+='[]',this._input.next(),this._input.next()):'{'===this._input.peek()&&'}'===this._input.peek(1)&&(n+='{}',this._input.next(),this._input.next())),this._create_token(h.WORD,n)}this._input.back()}else if('<'===t&&this._is_first_token()){if(e=this.__patterns.html_comment_start.read()){for(;this._input.hasNext()&&!this._input.testChar(a.newline);)e+=this._input.next();return y=!0,this._create_token(h.COMMENT,e)}}else if(y&&'-'===t&&(e=this.__patterns.html_comment_end.read()))return y=!1,this._create_token(h.COMMENT,e);return null},x.prototype._read_comment=function(t){var e=null;if('/'===t){var n='';if('*'===this._input.peek(1)){n=this.__patterns.block_comment.read();var o=p.get_directives(n);o&&'start'===o.ignore&&(n+=p.readIgnored(this._input)),n=n.replace(a.allLineBreaks,'\n'),(e=this._create_token(h.BLOCK_COMMENT,n)).directives=o}else'/'===this._input.peek(1)&&(n=this.__patterns.comment.read(),e=this._create_token(h.COMMENT,n))}return e},x.prototype._read_string=function(t){if('`'===t||"'"===t||'"'===t){var e=this._input.next();return this.has_char_escapes=!1,e+='`'===t?this._read_string_recursive('`',!0,'${'):this._read_string_recursive(t),this.has_char_escapes&&this._options.unescape_strings&&(e=function(t){var e='',n=0,i=new o(t),r=null;for(;i.hasNext();)if((r=i.match(/([\s]|[^\\]|\\\\)+/g))&&(e+=r[0]),'\\'===i.peek()){if(i.next(),'x'===i.peek())r=i.match(/x([0-9A-Fa-f]{2})/g);else{if('u'!==i.peek()){e+='\\',i.hasNext()&&(e+=i.next());continue}(r=i.match(/u([0-9A-Fa-f]{4})/g))||(r=i.match(/u\{([0-9A-Fa-f]+)\}/g))}if(!r)return t;if((n=parseInt(r[1],16))>126&&n<=255&&0===r[0].indexOf('x'))return t;e+=n>=0&&n<32||n>1114111?'\\'+r[0]:34===n||39===n||92===n?'\\'+String.fromCharCode(n):String.fromCharCode(n)}return e}(e)),this._input.peek()===t&&(e+=this._input.next()),e=e.replace(a.allLineBreaks,'\n'),this._create_token(h.STRING,e)}return null},x.prototype._allow_regexp_or_xml=function(t){return t.type===h.RESERVED&&u(t.text,['return','case','throw','else','do','typeof','yield'])||t.type===h.END_EXPR&&')'===t.text&&t.opened.previous.type===h.RESERVED&&u(t.opened.previous.text,['if','while','for'])||u(t.type,[h.COMMENT,h.START_EXPR,h.START_BLOCK,h.START,h.END_BLOCK,h.OPERATOR,h.EQUALS,h.EOF,h.SEMICOLON,h.COMMA])},x.prototype._read_regexp=function(t,e){if('/'===t&&this._allow_regexp_or_xml(e)){for(var n=this._input.next(),o=!1,i=!1;this._input.hasNext()&&(o||i||this._input.peek()!==t)&&!this._input.testChar(a.newline);)n+=this._input.peek(),o?o=!1:(o='\\'===this._input.peek(),'['===this._input.peek()?i=!0:']'===this._input.peek()&&(i=!1)),this._input.next();return this._input.peek()===t&&(n+=this._input.next(),n+=this._input.read(a.identifier)),this._create_token(h.STRING,n)}return null},x.prototype._read_xml=function(t,e){if(this._options.e4x&&"<"===t&&this._allow_regexp_or_xml(e)){var n='',o=this.__patterns.xml.read_match();if(o){for(var i=o[2].replace(/^{\s+/,'{').replace(/\s+}$/,'}'),r=0===i.indexOf('{'),s=0;o;){var l=!!o[1],c=o[2];if(!(!!o[o.length-1]||"![CDATA["===c.slice(0,8))&&(c===i||r&&c.replace(/^{\s+/,'{').replace(/\s+}$/,'}'))&&(l?--s:++s),n+=o[0],s<=0)break;o=this.__patterns.xml.read_match()}return o||(n+=this._input.match(/[\s\S]*/g)[0]),n=n.replace(a.allLineBreaks,'\n'),this._create_token(h.STRING,n)}}return null},x.prototype._read_string_recursive=function(t,e,n){var o,i;'\''===t?i=this.__patterns.single_quote:'"'===t?i=this.__patterns.double_quote:'`'===t?i=this.__patterns.template_text:'}'===t&&(i=this.__patterns.template_expression);for(var r=i.read(),s='';this._input.hasNext();){if((s=this._input.next())===t||!e&&a.newline.test(s)){this._input.back();break}'\\'===s&&this._input.hasNext()?('x'===(o=this._input.peek())||'u'===o?this.has_char_escapes=!0:'\r'===o&&'\n'===this._input.peek(1)&&this._input.next(),s+=this._input.next()):n&&('${'===n&&'$'===s&&'{'===this._input.peek()&&(s+=this._input.next()),n===s&&(s+='`'===t?this._read_string_recursive('}',e,'`'):this._read_string_recursive('`',e,'${'),this._input.hasNext()&&(s+=this._input.next()))),r+=s+=i.read()}return r},t.exports.Tokenizer=x,t.exports.TOKEN=h,t.exports.positionable_operators=m.slice(),t.exports.line_starters=O.slice()},function(t){var e=RegExp.prototype.hasOwnProperty('sticky');function n(t){this.__input=t||'',this.__input_length=this.__input.length,this.__position=0}n.prototype.restart=function(){this.__position=0},n.prototype.back=function(){this.__position>0&&(this.__position-=1)},n.prototype.hasNext=function(){return this.__position=0&&t=0&&e=t.length&&this.__input.substring(e-t.length,e).toLowerCase()===t},t.exports.InputScanner=n},function(t,e,n){var o=n(8).InputScanner,i=n(3).Token,r=n(10).TokenStream,s=n(11).WhitespacePattern,a={START:'TK_START',RAW:'TK_RAW',EOF:'TK_EOF'},l=function(t,e){this._input=new o(t),this._options=e||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new s(this._input)};l.prototype.tokenize=function(){var t;this._input.restart(),this.__tokens=new r,this._reset();for(var e=new i(a.START,''),n=null,o=[],s=new r;e.type!==a.EOF;){for(t=this._get_next_token(e,n);this._is_comment(t);)s.add(t),t=this._get_next_token(e,n);s.isEmpty()||(t.comments_before=s,s=new r),t.parent=n,this._is_opening(t)?(o.push(n),n=t):n&&this._is_closing(t,n)&&(t.opened=n,n.closed=t,n=o.pop(),t.parent=n),t.previous=e,e.next=t,this.__tokens.add(t),e=t}return this.__tokens},l.prototype._is_first_token=function(){return this.__tokens.isEmpty()},l.prototype._reset=function(){},l.prototype._get_next_token=function(t,e){this._readWhitespace();var n=this._input.read(/.+/g);return n?this._create_token(a.RAW,n):this._create_token(a.EOF,'')},l.prototype._is_comment=function(t){return!1},l.prototype._is_opening=function(t){return!1},l.prototype._is_closing=function(t,e){return!1},l.prototype._create_token=function(t,e){return new i(t,e,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token)},l.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},t.exports.Tokenizer=l,t.exports.TOKEN=a},function(t){function e(t){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=t}e.prototype.restart=function(){this.__position=0},e.prototype.isEmpty=function(){return 0===this.__tokens_length},e.prototype.hasNext=function(){return this.__position=0&&t/),erb:n.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:n.starting_with(/{%/).until_after(/%}/),django_value:n.starting_with(/{{/).until_after(/}}/),django_comment:n.starting_with(/{#/).until_after(/#}/),smarty:n.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:n.starting_with(/{\*/).until_after(/\*}/),smarty_literal:n.starting_with(/{literal}/).until_after(/{\/literal}/)}}r.prototype=new o,r.prototype._create=function(){return new r(this._input,this)},r.prototype._update=function(){this.__set_templated_pattern()},r.prototype.disable=function(t){var e=this._create();return e._disabled[t]=!0,e._update(),e},r.prototype.read_options=function(t){var e=this._create();for(var n in i)e._disabled[n]=-1===t.templating.indexOf(n);return e._update(),e},r.prototype.exclude=function(t){var e=this._create();return e._excluded[t]=!0,e._update(),e},r.prototype.read=function(){var t='';t=this._match_pattern?this._input.read(this._starting_pattern):this._input.read(this._starting_pattern,this.__template_pattern);for(var e=this._read_template();e;)this._match_pattern?e+=this._input.read(this._match_pattern):e+=this._input.readUntil(this.__template_pattern),t+=e,e=this._read_template();return this._until_after&&(t+=this._input.readUntilAfter(this._until_pattern)),t},r.prototype.__set_templated_pattern=function(){var t=[];this._disabled.php||t.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||t.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||t.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(t.push(this.__patterns.django._starting_pattern.source),t.push(this.__patterns.django_value._starting_pattern.source),t.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||t.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&t.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp('(?:'+t.join('|')+')')},r.prototype._read_template=function(){var t='',e=this._input.peek();if('<'===e){var n=this._input.peek(1);this._disabled.php||this._excluded.php||'?'!==n||(t=t||this.__patterns.php.read()),this._disabled.erb||this._excluded.erb||'%'!==n||(t=t||this.__patterns.erb.read())}else'{'===e&&(this._disabled.handlebars||this._excluded.handlebars||(t=(t=(t=t||this.__patterns.handlebars_comment.read())||this.__patterns.handlebars_unescaped.read())||this.__patterns.handlebars.read()),this._disabled.django||(this._excluded.django||this._excluded.handlebars||(t=t||this.__patterns.django_value.read()),this._excluded.django||(t=(t=t||this.__patterns.django_comment.read())||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(t=(t=(t=t||this.__patterns.smarty_comment.read())||this.__patterns.smarty_literal.read())||this.__patterns.smarty.read()));return t},t.exports.TemplatablePattern=r}],e={};var n=function n(o){var i=e[o];if(void 0!==i)return i.exports;var r=e[o]={exports:{}};return t[o](r,r.exports,n),r.exports}(0);o=n}();var i=o;1&&(void 0===(n=function(){return{js_beautify:i}}.apply(e,[]))||(t.exports=n))}()},410:(t,e,n)=>{var o,i,r;1&&(i=[n(50),n(316)],void 0===(r='function'==typeof(o=function(t,e){var n=Array.prototype.slice;function o(t,e,n){return n.length<=4?t.call(e,n[0],n[1],n[2],n[3]):t.apply(e,n)}function i(t,e){return n.call(t,e)}function r(e,n){return null!=e&&(t.isArray(n)||(n=i(arguments,1)),t.all(n,(function(t){return t in e})))}var s=function(){var e=!1,n=-1;function o(){n++,e=!0,t.defer((function(){e=!1}))}return function(){return e||o(),n}}();function a(){this.registeredObjects=[],this.cidIndexes=[]}function l(e,n,o,i){for(var r,s=0,a=n.length;st.maximumStackLength&&(t.shift(),t.pointer--)}}}a.prototype={isRegistered:function(e){return e&&e.cid?this.registeredObjects[e.cid]:t.contains(this.registeredObjects,e)},register:function(t){return!this.isRegistered(t)&&(t&&t.cid?(this.registeredObjects[t.cid]=t,this.cidIndexes.push(t.cid)):this.registeredObjects.push(t),!0)},unregister:function(e){if(this.isRegistered(e)){if(e&&e.cid)delete this.registeredObjects[e.cid],this.cidIndexes.splice(t.indexOf(this.cidIndexes,e.cid),1);else{var n=t.indexOf(this.registeredObjects,e);this.registeredObjects.splice(n,1)}return!0}return!1},get:function(){return t.map(this.cidIndexes,(function(t){return this.registeredObjects[t]}),this).concat(this.registeredObjects)}};var d={add:{undo:function(t,e,n,o){t.remove(n,o)},redo:function(t,e,n,o){o.index&&(o.at=o.index),t.add(n,o)},on:function(e,n,o){return{object:n,before:void 0,after:e,options:t.clone(o)}}},remove:{undo:function(t,e,n,o){"index"in o&&(o.at=o.index),t.add(e,o)},redo:function(t,e,n,o){t.remove(e,o)},on:function(e,n,o){return{object:n,before:e,after:void 0,options:t.clone(o)}}},change:{undo:function(e,n,o,i){t.isEmpty(n)?t.each(t.keys(o),e.unset,e):(e.set(n),i&&i.unsetData&&i.unsetData.before&&i.unsetData.before.length&&t.each(i.unsetData.before,e.unset,e))},redo:function(e,n,o,i){t.isEmpty(o)?t.each(t.keys(n),e.unset,e):(e.set(o),i&&i.unsetData&&i.unsetData.after&&i.unsetData.after.length&&t.each(i.unsetData.after,e.unset,e))},on:function(e,n){var o=e.changedAttributes(),i=t.keys(o),r=t.pick(e.previousAttributes(),i),s=t.keys(r),a=(n||(n={})).unsetData={after:[],before:[]};return i.length!=s.length&&(i.length>s.length?t.each(i,(function(t){t in r||a.before.push(t)}),this):t.each(s,(function(t){t in o||a.after.push(t)}))),{object:e,before:r,after:o,options:t.clone(n)}}},reset:{undo:function(t,e,n){t.reset(e)},redo:function(t,e,n){t.reset(n)},on:function(e,n){return{object:e,before:n.previousModels,after:t.clone(e.models)}}}};function f(){}function g(e,n,o,i){if("object"==typeof n)return t.each(n,(function(t,n){2===e?g(e,t,o,i):g(e,n,t,o)}));switch(e){case 0:r(o,"undo","redo","on")&&t.all(t.pick(o,"undo","redo","on"),t.isFunction)&&(i[n]=o);break;case 1:i[n]&&t.isObject(o)&&(i[n]=t.extend({},i[n],o));break;case 2:delete i[n]}return this}f.prototype=d;var m=e.Model.extend({defaults:{type:null,object:null,before:null,after:null,magicFusionIndex:null},undo:function(t){c("undo",this.attributes)},redo:function(t){c("redo",this.attributes)}}),v=e.Collection.extend({model:m,pointer:-1,track:!1,isCurrentlyUndoRedoing:!1,maximumStackLength:1/0,setMaxLength:function(t){this.maximumStackLength=t}}),y=e.Model.extend({defaults:{maximumStackLength:1/0,track:!1},initialize:function(e){this.stack=new v,this.objectRegistry=new a,this.undoTypes=new f,this.stack.setMaxLength(this.get("maximumStackLength")),this.on("change:maximumStackLength",(function(t,e){this.stack.setMaxLength(e)}),this),e&&e.track&&this.startTracking(),e&&e.register&&(t.isArray(e.register)||t.isArguments(e.register)?o(this.register,this,e.register):this.register(e.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(t){p(this.stack,t,i(arguments,1),this.undoTypes)},register:function(){l("on",arguments,this._addToStack,this)},unregister:function(){l("off",arguments,this._addToStack,this)},unregisterAll:function(){o(this.unregister,this,this.objectRegistry.get())},undo:function(t){u("undo",this,this.stack,t)},undoAll:function(){u("undo",this,this.stack,!1,!0)},redo:function(t){u("redo",this,this.stack,t)},redoAll:function(){u("redo",this,this.stack,!1,!0)},isAvailable:function(t){var e=this.stack,n=e.length;switch(t){case"undo":return n>0&&e.pointer>-1;case"redo":return n>0&&e.pointer{var o,i;!function(r){var s='object'==typeof self&&self.self===self&&self||'object'==typeof n.g&&n.g.global===n.g&&n.g;if(1)o=[n(50),n(815),e],i=function(t,e,n){s.Backbone=function(t,e,n,o){var i=t.Backbone,r=Array.prototype.slice;e.VERSION='1.4.1',e.$=o,e.noConflict=function(){return t.Backbone=i,this},e.emulateHTTP=!1,e.emulateJSON=!1;var s,a=e.Events={},l=/\s+/,c=function(t,e,o,i,r){var s,a=0;if(o&&'object'==typeof o){void 0!==i&&'context'in r&&void 0===r.context&&(r.context=i);for(s=n.keys(o);athis.length&&(i=this.length),i<0&&(i+=this.length+1);var r,s,a=[],l=[],c=[],u=[],h={},p=e.add,d=e.merge,f=e.remove,g=!1,m=this.comparator&&null==i&&!1!==e.sort,v=n.isString(this.comparator)?this.comparator:null;for(s=0;s7),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(Y,'/'),this._wantsHashChange&&this._wantsPushState){if(!this._hasPushState&&!this.atRoot()){var e=this.root.slice(0,-1)||'/';return this.location.replace(e+'#'+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 o=document.body,i=o.insertBefore(this.iframe,o.firstChild).contentWindow;i.document.open(),i.document.close(),i.location.hash='#'+this.fragment}var r=window.addEventListener||function(t,e){return attachEvent('on'+t,e)};if(this._usePushState?r('popstate',this.checkUrl,!1):this._useHashChange&&!this.iframe?r('hashchange',this.checkUrl,!1):this._wantsHashChange&&(this._checkUrlInterval=setInterval(this.checkUrl,this.interval)),!this.options.silent)return this.loadUrl()},stop:function(){var t=window.removeEventListener||function(t,e){return detachEvent('on'+t,e)};this._usePushState?t('popstate',this.checkUrl,!1):this._useHashChange&&!this.iframe&&t('hashchange',this.checkUrl,!1),this.iframe&&(document.body.removeChild(this.iframe),this.iframe=null),this._checkUrlInterval&&clearInterval(this._checkUrlInterval),X.started=!1},route:function(t,e){this.handlers.unshift({route:t,callback:e})},checkUrl:function(t){var e=this.getFragment();if(e===this.fragment&&this.iframe&&(e=this.getHash(this.iframe.contentWindow)),e===this.fragment)return!1;this.iframe&&this.navigate(e),this.loadUrl()},loadUrl:function(t){return!!this.matchRoot()&&(t=this.fragment=this.getFragment(t),n.some(this.handlers,(function(e){if(e.route.test(t))return e.callback(t),!0})))},navigate:function(t,e){if(!X.started)return!1;e&&!0!==e||(e={trigger:!!e}),t=this.getFragment(t||'');var n=this.root;''!==t&&'?'!==t.charAt(0)||(n=n.slice(0,-1)||'/');var o=n+t;t=t.replace(z,'');var i=this.decodeFragment(t);if(this.fragment!==i){if(this.fragment=i,this._usePushState)this.history[e.replace?'replaceState':'pushState']({},document.title,o);else{if(!this._wantsHashChange)return this.location.assign(o);if(this._updateHash(this.location,t,e.replace),this.iframe&&t!==this.getHash(this.iframe.contentWindow)){var r=this.iframe.contentWindow;e.replace||(r.document.open(),r.document.close()),this._updateHash(r.location,t,e.replace)}}return e.trigger?this.loadUrl(t):void 0}},_updateHash:function(t,e,n){if(n){var o=t.href.replace(/(javascript:|#).*$/,'');t.replace(o+'#'+e)}else t.hash='#'+e}}),e.history=new X;var q=function(t,e){var o,i=this;return o=t&&n.has(t,'constructor')?t.constructor:function(){return i.apply(this,arguments)},n.extend(o,i,e),o.prototype=n.create(i.prototype,t),o.prototype.constructor=o,o.__super__=i.prototype,o};v.extend=y.extend=V.extend=C.extend=X.extend=q;var U=function(){throw new Error('A "url" property or function must be specified')},B=function(t,e){var n=e.error;e.error=function(o){n&&n.call(e.context,t,o,e),t.trigger('error',t,o,e)}};return e}(s,n,t,e)}.apply(e,o),void 0===i||(t.exports=i);else;}()},728:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var o,i=n(847),r=void 0&&(void 0).__extends||(o=function(t,e){return o=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])},o(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});const s=function(t){function e(e,n,o){var i=t.call(this,n,o)||this;return i._module=e,i}return r(e,t),Object.defineProperty(e.prototype,"module",{get:function(){return this._module},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"config",{get:function(){return this._module.config},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"em",{get:function(){return this._module.em},enumerable:!1,configurable:!0}),e}(i.Hn)},201:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a,q:()=>i});var o,i,r=n(728),s=void 0&&(void 0).__extends||(o=function(t,e){return o=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])},o(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});!function(t){t["Select"]="select",t["Hover"]="hover",t["Spacing"]="spacing",t["Target"]="target",t["Resize"]="resize"}(i||(i={}));const a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.prototype.defaults=function(){return{id:'',type:''}},Object.defineProperty(e.prototype,"type",{get:function(){return this.get('type')||''},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"component",{get:function(){var t;return this.get('component')||(null===(t=this.get('componentView'))||void 0===t?void 0:t.model)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"componentView",{get:function(){var t;return this.get('componentView')||(null===(t=this.get('component'))||void 0===t?void 0:t.getView())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"el",{get:function(){var t;return null===(t=this.componentView)||void 0===t?void 0:t.el},enumerable:!1,configurable:!0}),e.prototype.getBoxRect=function(t){var e=this.el,n=this.em.Canvas.getCanvasView(),o=this.get('boxRect');return o||(e&&n?n.getElBoxRect(e,t):{x:0,y:0,width:0,height:0})},e.prototype.getStyle=function(t){void 0===t&&(t={});var e=t.boxRect||this.getBoxRect(t),n=e.width,o=e.height,i=e.x,r=e.y;return{width:"".concat(n,"px"),height:"".concat(o,"px"),top:'0',left:'0',position:'absolute',translate:"".concat(i,"px ").concat(r,"px")}},e.prototype.isType=function(t){return this.type===t},e}(r.Z)},266:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});const o={run:function(t){t.Components.clear(),t.Css.clear()}}},142:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>s});var o=n(50),i=n(250),r=n(968);const s={run:function(t){(0,o.bindAll)(this,'onKeyUp','enableDragger','disableDragger'),this.editor=t,this.canvasModel=this.canvas.getCanvasView().model,this.toggleMove(1)},stop:function(t){this.toggleMove(),this.disableDragger()},onKeyUp:function(t){' '===(0,r.sN)(t)&&this.editor.stopCommand(this.id)},enableDragger:function(t){this.toggleDragger(1,t)},disableDragger:function(t){this.toggleDragger(0,t)},toggleDragger:function(t,e){var n=this.canvasModel,o=this.em,r=this.dragger,s=t?'add':'remove';this.getCanvas().classList[s]("".concat(this.ppfx,"is__grabbing")),r||(r=new i.Z({getPosition:function(){return{x:n.get('x'),y:n.get('y')}},setPosition:function(t){var e=t.x,o=t.y;n.set({x:e,y:o})},onStart:function(t,e){o.trigger('canvas:move:start',e)},onDrag:function(t,e){o.trigger('canvas:move',e)},onEnd:function(t,e){o.trigger('canvas:move:end',e)}}),this.dragger=r),t?r.start(e):r.stop()},toggleMove:function(t){var e=this.ppfx,n=t?'add':'remove',o=t?'on':'off',i={on:r.on,off:r.S1},s=this.getCanvas(),a=["".concat(e,"is__grab")];!t&&a.push("".concat(e,"is__grabbing")),a.forEach((function(t){return s.classList[n](t)})),i[o](document,'keyup',this.onKeyUp),i[o](s,'mousedown',this.enableDragger),i[o](document,'mouseup',this.disableDragger)}}},458:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a,defineCommand:()=>s});var o,i=n(847),r=void 0&&(void 0).__extends||(o=function(t,e){return o=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])},o(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});function s(t){return t}const a=function(t){function e(e){var n=t.call(this,0)||this;n.config=e||{},n.em=n.config.em||{};var o=n.config.stylePrefix;return n.pfx=o,n.ppfx=n.config.pStylePrefix,n.hoverClass="".concat(o,"hover"),n.badgeClass="".concat(o,"badge"),n.plhClass="".concat(o,"placeholder"),n.freezClass="".concat(n.ppfx,"freezed"),n.canvas=n.em.Canvas,n.init(n.config),n}return r(e,t),e.prototype.onFrameScroll=function(t){},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(t){var e=t.getBoundingClientRect();return{top:e.top+t.ownerDocument.body.scrollTop,left:e.left+t.ownerDocument.body.scrollLeft}},e.prototype.init=function(t){},e.prototype.callRun=function(t,e){void 0===e&&(e={});var n=this.id;if(t.trigger("run:".concat(n,":before"),e),!e||!e.abort){var o=e.sender||t,i=this.run(t,o,e);return t.trigger("run:".concat(n),i,e),t.trigger('run',n,i,e),i}t.trigger("abort:".concat(n),e)},e.prototype.callStop=function(t,e){void 0===e&&(e={});var n=this.id,o=e.sender||t;t.trigger("stop:".concat(n,":before"),e);var i=this.stop(t,o,e);return t.trigger("stop:".concat(n),i,e),t.trigger('stop',n,i,e),i},e.prototype.stopCommand=function(t){this.em.Commands.stop(this.id,t)},e.prototype.run=function(t,e,n){},e.prototype.stop=function(t,e,n){},e}(i.Hn)},463:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});var o=n(50),i=void 0&&(void 0).__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var o,i=0,r=e.length;i{"use strict";n.r(e),n.d(e,{default:()=>a});var o=n(50),i=n(250),r=void 0&&(void 0).__assign||function(){return r=Object.assign||function(t){for(var e,n=1,o=arguments.length;n\n
\n ");(e=document.createElement('div')).className="".concat(a,"guides"),l.className="".concat(a,"guide-info ").concat(a,"guide-info__x"),c.className="".concat(a,"guide-info ").concat(a,"guide-info__y"),l.innerHTML=u,c.innerHTML=u,e.appendChild(l),e.appendChild(c),i.Canvas.getGlobalToolsEl().appendChild(e),this.guidesEl=e,this.elGuideInfoX=l,this.elGuideInfoY=c,this.elGuideInfoContentX=l.querySelector(".".concat(a,"guide-info__content")),this.elGuideInfoContentY=c.querySelector(".".concat(a,"guide-info__content")),r.on('canvas:update frame:scroll',(0,o.debounce)((function(){var e;t.updateGuides(),s.debug&&(null===(e=t.guides)||void 0===e||e.forEach((function(e){return t.renderGuide(e)})))}),200))}return e},getGuidesStatic:function(){var t=this,e=[],n=this.target.getEl(),i=n.parentNode,r=void 0===i?{}:i;return(0,o.each)(r.children,(function(o){return e=e.concat(n!==o?t.getElementGuides(o):[])})),e.concat(this.getElementGuides(r))},getGuidesTarget:function(){return this.getElementGuides(this.target.getEl())},updateGuides:function(t){var e,n,i=this;(t||this.guides).forEach((function(t){var r=t.origin,s=e===r?n:i.getElementPos(r);e=r,n=s,(0,o.each)(i.getGuidePosUpdate(t,s),(function(e,n){return t[n]=e})),t.originRect=s}))},getGuidePosUpdate:function(t,e){var n={},o=e.top,i=e.height,r=e.left,s=e.width;switch(t.type){case't':n.y=o;break;case'b':n.y=o+i;break;case'l':n.x=r;break;case'r':n.x=r+s;break;case'x':n.x=r+s/2;break;case'y':n.y=o+i/2}return n},renderGuide:function(t){void 0===t&&(t={});var e=t.guide||document.createElement('div'),n='px',o=t.active?2:1,i=e.children[0];return e.style="position: absolute; background-color: ".concat(t.active?'green':'red',";"),e.children.length||((i=document.createElement('div')).style='position: absolute; color: red; padding: 5px; top: 0; left: 0;',e.appendChild(i)),t.y?(e.style.width='100%',e.style.height="".concat(o).concat(n),e.style.top="".concat(t.y).concat(n),e.style.left=0):(e.style.width="".concat(o).concat(n),e.style.height='100%',e.style.left="".concat(t.x).concat(n),e.style.top="0".concat(n)),!t.guide&&this.guidesContainer.appendChild(e),e},getElementPos:function(t){return this.editor.Canvas.getElementPos(t,{noScroll:1})},getElementGuides:function(t){var e=this,n=this.opts,o=this.getElementPos(t),i=o.top,s=o.height,a=o.left,l=o.width,c=[{type:'t',y:i},{type:'b',y:i+s},{type:'l',x:a},{type:'r',x:a+l},{type:'x',x:a+l/2},{type:'y',y:i+s/2}].map((function(i){return r(r({},i),{origin:t,originRect:o,guide:n.debug&&e.renderGuide(i)})}));return c.forEach((function(t){var n;return null===(n=e.guides)||void 0===n?void 0:n.push(t)})),c},getTranslate:function(t,e){void 0===e&&(e='x');var n=0;return(t||'').split(' ').forEach((function(t){var o=t.trim(),i="translate".concat(e.toUpperCase(),"(");0===o.indexOf(i)&&(n=parseFloat(o.replace(i,'')))})),n},setTranslate:function(t,e,n){var o="translate".concat(e.toUpperCase(),"("),i="".concat(o).concat(n,")"),r=(t||'').split(' ').map((function(t){return 0===t.trim().indexOf(o)&&(t=i),t})).join(' ');return r.indexOf(o)<0&&(r+=" ".concat(i)),r},getPosition:function(){var t=this.target,e=this.isTran,n=t.getStyle(),o=n.left,i=n.top,r=n.transform,s=0,a=0;return e?(s=this.getTranslate(r),a=this.getTranslate(r,'y')):(s=parseFloat(o||0),a=parseFloat(i||0)),{x:s,y:a}},setPosition:function(t){var e=t.x,n=t.y,i=t.end,r=t.position,s=t.width,a=t.height,l=this,c=l.target,u=l.isTran,h=l.em,p='px',d=!i,f="".concat(parseInt(e,10)).concat(p),g="".concat(parseInt(n,10)).concat(p),m={};if(u){var v=c.getStyle()['transform']||'';v=this.setTranslate(v,'x',f),m={transform:v=this.setTranslate(v,'y',g),__p:d},c.addStyle(m,{avoidStore:!i})}else{var y={position:r,width:s,height:a},_={left:f,top:g,__p:d};(0,o.keys)(y).forEach((function(t){var e=y[t];e&&(_[t]=e)})),m=_,c.addStyle(m,{avoidStore:!i})}null==h||h.Styles.__emitCmpStyleUpdate(m,{components:h.getSelected()})},_getDragData:function(){var t=this.target;return{target:t,parent:t.parent(),index:t.index()}},onStart:function(t){var e=this,n=e.target,o=e.editor,i=e.isTran,r=e.opts,s=r.center,a=r.onStart,l=o.Canvas,c=n.getStyle(),u='absolute',h=[u,'relative'];if(a&&a(this._getDragData()),!i&&c.position!==u){var p=l.offset(n.getEl()),d=p.left,f=p.top,g=p.width,m=p.height,v=n.parent(),y=void 0;do{var _=v.getStyle();y=h.indexOf(_.position)>=0?v:null,v=v.parent()}while(v&&!y);if(s){var O=l.getMouseRelativeCanvas(t);d=O.x,f=O.y}else if(y){var b=l.offset(y.getEl());d-=b.left,f-=b.top}this.setPosition({x:d,y:f,width:"".concat(g,"px"),height:"".concat(m,"px"),position:u})}},onDrag:function(){for(var t=this,e=[],n=0;n0})).sort((function(t,e){return t.gap-e.gap})).map((function(t){return t.guide}))[0];if(y){var _=y.originRect,O=_.left,b=_.width,w=_.top,x=_.height,S=_.rect,k=u?O{"use strict";n.r(e),n.d(e,{default:()=>o});const o={run:function(t){if(t.Canvas.hasFocus()){var e=[];t.getSelectedAll().forEach((function(t){var n=t.components(),o=n&&n.filter((function(t){return t.get('selectable')}))[0];o&&e.push(o)})),e.length&&t.select(e)}}}},594:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});const o={run:function(t,e,n){if(void 0===n&&(n={}),t.Canvas.hasFocus()||n.force){var o=[];t.getSelectedAll().forEach((function(t){for(var e=t.parent();e&&!e.get('selectable');)e=e.parent();e&&o.push(e)})),o.length&&t.select(o)}}}},656:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});const o={run:function(t){if(t.Canvas.hasFocus()){var e=[];t.getSelectedAll().forEach((function(t){var n=t.parent();if(n){var o,i=n.components().length,r=0,s=0;do{r++,o=(s=t.index()+r)<=i?n.getChildAt(s):null}while(o&&!o.get('selectable'));e.push(o||t)}})),e.length&&t.select(e)}}}},768:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});const o={run:function(t){if(t.Canvas.hasFocus()){var e=[];t.getSelectedAll().forEach((function(t){var n=t.parent();if(n){var o,i=0,r=0;do{i++,o=(r=t.index()-i)>=0?n.getChildAt(r):null}while(o&&!o.get('selectable'));e.push(o||t)}})),e.length&&t.select(e)}}}},570:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>i});var o=n(50);const i={run:function(t,e,n){void 0===n&&(n={});var i=n.target,r=[];if(!i.get('styles'))return r;var s=i.get('type'),a=t.Pages.getAllWrappers();if(!(0,o.flatten)(a.map((function(t){return t.findType(s)}))).length){var l=t.CssComposer.getAll();r=l.filter((function(t){return t.get('group')==="cmp:".concat(s)})),l.remove(r)}return r}}},282:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>i});var o=void 0&&(void 0).__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var o,i=0,r=e.length;i{"use strict";n.r(e),n.d(e,{default:()=>i});var o=n(968);const i={run:function(t,e,n){var i=this;void 0===n&&(n={}),e&&e.set&&e.set('active',0);var r=t.getConfig(),s=t.Modal,a=r.stylePrefix;if(this.cm=t.CodeManager||null,!this.editors){var l=this.buildEditor('htmlmixed','hopscotch','HTML'),c=this.buildEditor('css','hopscotch','CSS');this.htmlEditor=l.model,this.cssEditor=c.model;var u=(0,o.ut)('div',{class:"".concat(a,"export-dl")});u.appendChild(l.el),u.appendChild(c.el),this.editors=u}s.open({title:r.textViewCode,content:this.editors}).getModel().once('change:open',(function(){return t.stopCommand("".concat(i.id))})),this.htmlEditor.setContent(t.getHtml(n.optsHtml)),this.cssEditor.setContent(t.getCss(n.optsCss))},stop:function(t){var e=t.Modal;e&&e.close()},buildEditor:function(t,e,n){var o=this.em.CodeManager,i=o.createViewer({label:n,codeName:t,theme:e});return{model:i,el:new o.EditorView({model:i,config:o.getConfig()}).render().el}}}},212:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>i});var o=n(50);const i={isEnabled:function(){var t=document;return!!(t.fullscreenElement||t.webkitFullscreenElement||t.mozFullScreenElement)},enable:function(t){var e='';return t.requestFullscreen?t.requestFullscreen():t.webkitRequestFullscreen?(e='webkit',t.webkitRequestFullscreen()):t.mozRequestFullScreen?(e='moz',t.mozRequestFullScreen()):t.msRequestFullscreen&&t.msRequestFullscreen(),e},disable:function(){var t=document;this.isEnabled()&&(t.exitFullscreen?t.exitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():t.msExitFullscreen&&t.msExitFullscreen())},fsChanged:function(t){this.isEnabled()||(this.stopCommand({sender:this.sender}),document.removeEventListener("".concat(t||'',"fullscreenchange"),this.fsChanged))},run:function(t,e,n){void 0===n&&(n={}),this.sender=e;var i=n.target,r=(0,o.isElement)(i)?i:document.querySelector(i),s=this.enable(r||t.getContainer());this.fsChanged=this.fsChanged.bind(this,s),document.addEventListener(s+'fullscreenchange',this.fsChanged),t.trigger('change:canvasOffset')},stop:function(t,e){e&&e.set&&e.set('active',!1),this.disable(),t&&t.trigger('change:canvasOffset')}}},907:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>l});var o=n(50),i=n(815),r=n(968),s=n(938),a=n(477);const l=(0,o.extend)({},a["default"],s["default"],{init:function(t){s["default"].init.apply(this,arguments),(0,o.bindAll)(this,'initSorter','rollback','onEndMove'),this.opt=t,this.hoverClass=this.ppfx+'highlighter-warning',this.badgeClass=this.ppfx+'badge-warning',this.noSelClass=this.ppfx+'no-select'},enable:function(){for(var t=[],e=0;e{"use strict";n.r(e),n.d(e,{default:()=>r});var o=n(50),i=n(968);const r={open:function(t){var e=this,n=this,i=n.editor,r=n.title,s=n.config,a=n.am,l=s.custom;if((0,o.isFunction)(l.open))return l.open(a.__customData());i.Modal.open({title:r,content:t}).onceClose((function(){return i.stopCommand(e.id)}))},close:function(){var t=this.config.custom;if((0,o.isFunction)(t.close))return t.close(this.am.__customData());var e=this.editor.Modal;e&&e.close()},run:function(t,e,n){void 0===n&&(n={});var o=t.AssetManager,r=o.getConfig(),s=n.types,a=void 0===s?[]:s,l=n.accept,c=n.select;if(this.title=n.modalTitle||t.t('assetManager.modalTitle')||'',this.editor=t,this.config=r,this.am=o,o.setTarget(n.target),o.onClick(n.onClick),o.onDblClick(n.onDblClick),o.onSelect(n.onSelect),o.__behaviour({select:c,types:a,options:n}),r.custom)this.rendered=this.rendered||(0,i.ut)('div'),this.rendered.className="".concat(r.stylePrefix,"custom-wrp"),o.__behaviour({container:this.rendered}),o.__trgCustom();else{if(!this.rendered||a){var u=o.getAll().filter((function(t){return t}));a&&a.length&&(u=u.filter((function(t){return-1!==a.indexOf(t.get('type'))}))),o.render(u),this.rendered=o.getContainer()}if(l){var h=this.rendered.querySelector("input#".concat(r.stylePrefix,"uploadFile"));h&&h.setAttribute('accept',l)}}return this.open(this.rendered),this},stop:function(t){this.editor=t,this.close(this.rendered)}}},268:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});var o=n(50),i=n(968);const r={open:function(){var t=this,e=t.container,n=t.editor,i=t.bm,r=t.config,s=r.custom,a=r.appendTo;if((0,o.isFunction)(s.open))return s.open(i.__customData());if(this.firstRender&&!a){var l='views-container',c=n.Panels;(c.getPanel(l)||c.addPanel({id:l})).set('appendContent',e).trigger('change:appendContent'),s||e.appendChild(i.render())}e&&(e.style.display='block')},close:function(){var t=this.container,e=this.config.custom;if((0,o.isFunction)(e.close))return e.close(this.bm.__customData());t&&(t.style.display='none')},run:function(t){var e=t.Blocks;this.config=e.getConfig(),this.firstRender=!this.container,this.container=this.container||(0,i.ut)('div'),this.editor=t,this.bm=e;var n=this.container;e.__behaviour({container:n}),this.config.custom&&e.__trgCustom(),this.open()},stop:function(){this.close()}}},556:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});const o={run:function(t){var e=t.LayerManager,n=t.Panels,o=e.getConfig();if(!o.appendTo){if(!this.layers){var i='views-container',r=document.createElement('div'),s=n.getPanel(i)||n.addPanel({id:i});o.custom?e.__trgCustom({container:r}):r.appendChild(e.render()),s.set('appendContent',r).trigger('change:appendContent'),this.layers=r}this.layers.style.display='block'}},stop:function(){var t=this.layers;t&&(t.style.display='none')}}},120:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});const o={run:function(t){var e=t.Pages,n=t.Panels;if(!e.getConfig().appendTo){if(!this.layers){var o='views-container',i=document.createElement('div'),r=n.getPanel(o)||n.addPanel({id:o});i.appendChild(e.render()),r.set('appendContent',i).trigger('change:appendContent'),this.layers=i}this.layers.style.display='block'}},stop:function(){var t=this.layers;t&&(t.style.display='none')}}},462:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>i});var o=n(815);const i={run:function(t,e){if(this.sender=e,!this.$cnt){var n=t.getConfig(),i=t.Panels,r=t.DeviceManager,s=t.SelectorManager,a=t.StyleManager,l='change:appendContent',c=(0,o["default"])('
'),u=(0,o["default"])('
'),h=(0,o["default"])('
'),p=(0,o["default"])('
');if(this.$cnt=c,this.$cntInner=u,u.append(h),u.append(p),c.append(u),r&&n.showDevices){var d=i.addPanel({id:'devices-c'}),f=r.render();d.set('appendContent',f).trigger(l)}var g=s.getConfig();g.custom?s.__trgCustom({container:h.get(0)}):g.appendTo||h.append(s.render([])),this.sm=a;var m=a.getConfig(),v=m.stylePrefix;this.$header=(0,o["default"])("
").concat(t.t('styleManager.empty'),"
")),c.append(this.$header),m.custom?a.__trgCustom({container:p.get(0)}):m.appendTo||p.append(a.render());var y='views-container';(i.getPanel(y)||i.addPanel({id:y})).set('appendContent',c).trigger(l);var _=t.getModel();this.listenTo(_,a.events.target,this.toggleSm)}this.toggleSm()},toggleSm:function(){var t=this,e=t.sender,n=t.sm,o=t.$cntInner,i=t.$header;e&&e.get&&!e.get('active')||!n||(n.getSelected()?(null==o||o.show(),null==i||i.hide()):(null==o||o.hide(),null==i||i.show()))},stop:function(){var t,e;null===(t=this.$cntInner)||void 0===t||t.hide(),null===(e=this.$header)||void 0===e||e.hide()}}},521:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>i});var o=n(815);const i={run:function(t,e){this.sender=e;var n,i=t.getModel(),r=t.Config.stylePrefix,s=t.TraitManager,a=s.getConfig();if(!a.appendTo){if(!this.$cn){this.$cn=(0,o["default"])('
'),this.$cn2=(0,o["default"])('
'),this.$cn.append(this.$cn2),this.$header=(0,o["default"])('
').append("
").concat(i.t('traitManager.empty'),"
")),this.$cn.append(this.$header),a.custom?s.__trgCustom({container:this.$cn2.get(0)}):(this.$cn2.append("
").concat(i.t('traitManager.label'),"
")),this.$cn2.append(s.render()));var l=t.Panels;null==(n=l.getPanel('views-container')?l.getPanel('views-container'):l.addPanel({id:'views-container'}))||n.set('appendContent',this.$cn.get(0)).trigger('change:appendContent'),this.target=t.getModel(),this.listenTo(this.target,'component:toggled',this.toggleTm)}this.toggleTm()}},toggleTm:function(){var t=this.sender;t&&t.get&&!t.get('active')||(1===this.target.getSelectedAll().length?(this.$cn2.show(),this.$header.hide()):(this.$cn2.hide(),this.$header.show()))},stop:function(){this.$cn2&&this.$cn2.hide(),this.$header&&this.$header.hide()}}},133:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>i});var o=n(50);const i={run:function(t,e,n){void 0===n&&(n={});var i=t.getModel(),s=i.get('clipboard'),a=t.getSelected();(null==s?void 0:s.length)&&a&&(t.getSelectedAll().forEach((function(e){var a,l,c,u,h=(null===(l=null===(a=e.delegate)||void 0===a?void 0:a.copy)||void 0===l?void 0:l.call(a,e))||e,p=h.collection;if(p){var d={at:h.index()+1,action:n.action||'paste-component'};u=(0,o.contains)(s,h)&&h.get('copyable')?p.add(h.clone(),d):r(t,s,h.parent(),d)}else{var f=null===(c=i.Pages.getSelected())||void 0===c?void 0:c.getMainComponent();d={at:(null==f?void 0:f.components().length)||0,action:n.action||'paste-component'};u=r(t,s,f,d)}(u=(0,o.isArray)(u)?u:[u]).forEach((function(e){return t.trigger('component:paste',e)}))})),a.emitUpdate())}};function r(t,e,n,o){var i=e.filter((function(t){return t.get('copyable')})).filter((function(e){return t.Components.canMove(n,e).result}));return n.components().add(i.map((function(t){return t.clone()})),o)}},931:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>s});var o=n(50),i=void 0&&(void 0).__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var o,i=0,r=e.length;i{"use strict";n.r(e),n.d(e,{default:()=>i});var o=void 0&&(void 0).__assign||function(){return o=Object.assign||function(t){for(var e,n=1,o=arguments.length;n{"use strict";n.r(e),n.d(e,{default:()=>k});var o,i=n(50),r=n(847),s=void 0&&(void 0).__extends||(o=function(t,e){return o=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])},o(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});const a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.prototype.defaults=function(){return{command:'',attributes:{}}},e}(r.Hn);var l=void 0&&(void 0).__extends||function(){var t=function(e,n){return t=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])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return l(e,t),e}(r.FE);const u=c;c.prototype.model=a;var h=void 0&&(void 0).__extends||function(){var t=function(e,n){return t=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])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),p=function(t){function e(e,n,o){void 0===e&&(e={}),void 0===o&&(o=!1);var i=t.call(this,e)||this;return i.itemsView='',i.itemType='type',i.reuseView=!1,i.config=n||e.config||{},o&&i.listenTo(i.collection,'add',i.addTo),i.items=[],i}return h(e,t),e.prototype.addTo=function(t){this.add(t)},e.prototype.itemViewNotFound=function(t){var e=this.config,n=this.ns,o=e.em,i="".concat(n?"[".concat(n,"]: "):'',"'").concat(t,"' type not found");o&&o.logWarning(i)},e.prototype.add=function(t,e){var n,o=this,r=o.config,s=o.reuseView,a=o.items,l=this.itemsView||{},c=e||null,u=this.itemView,h=t.get(this.itemType);l[h]?u=l[h]:!h||l[h]||(0,i.includes)(['button','checkbox','color','date','datetime-local','email','file','hidden','image','month','number','password','radio','range','reset','search','submit','tel','text','time','url','week'],h)||this.itemViewNotFound(h),n=t.view&&s?t.view:new u({model:t,config:r},r),a&&a.push(n);var p=n.render().el;c?c.appendChild(p):this.$el.append(p)},e.prototype.render=function(){var t=document.createDocumentFragment();return this.clearItems(),this.$el.empty(),this.collection.length&&this.collection.each((function(e){this.add(e,t)}),this),this.$el.append(t),this.onRender(),this},e.prototype.onRender=function(){},e.prototype.onRemoveBefore=function(t,e){},e.prototype.onRemove=function(t,e){},e.prototype.remove=function(e){void 0===e&&(e={});var n=this.items;return this.onRemoveBefore(n,e),this.clearItems(),t.prototype.remove.call(this),this.onRemove(n,e),this},e.prototype.clearItems=function(){this.items},e}(r.G7);const d=p;p.prototype.itemView='';var f=void 0&&(void 0).__extends||function(){var t=function(e,n){return t=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])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),g=void 0&&(void 0).__assign||function(){return g=Object.assign||function(t){for(var e,n=1,o=arguments.length;n").concat(l,"
"):'',"\n
").concat(i.getName(),"
");r.innerHTML=h?h(i):p}var d='px';s.display='block';var f=o.getTargetToElementFixed(t,r,{pos:e}).top,g=n.leftOff<0?-n.leftOff:0;s.top=f+d,s.left=g+d}else s.display='none'},showHighlighter:function(t){this.canvas.getHighlighter(t).style.opacity=''},initResize:function(t){var e=this.em,n=this.canvas,o=e.Editor,r=!(0,i.isElement)(t)&&(0,b.o5)(t)?t:e.getSelected(),s=null==r?void 0:r.get('resizable'),a=x.q.Resize,l=n.hasCustomSpot(a);if(n.removeSpots({type:a}),r&&s){n.addSpot({type:a,component:r});var c,u=(0,i.isElement)(t)?t:r.getEl();if(l||!u)return;var h=e.config.stylePrefix||'',p="".concat(h,"resizing"),d=function(t,e,n){var o=n.docs;o&&o.forEach((function(e){var n=e.body,o=n.className||'';n.className=('add'==t?"".concat(o," ").concat(p):o.replace(p,'')).trim()}))},f=S({onStart:function(t,o){void 0===o&&(o={});var i=o.el,s=o.config,a=o.resizer,l=s.keyHeight,u=s.keyWidth,h=s.currentUnit,p=s.keepAutoHeight,f=s.keepAutoWidth;d('add',0,o),c=e.Styles.getModelToStyle(r),n.toggleFramesEvents(!1);var g=getComputedStyle(i),m=c.getStyle(),v=m[u];s.autoWidth=f&&'auto'===v,isNaN(parseFloat(v))&&(v=g[u]);var y=m[l];s.autoHeight=p&&'auto'===y,isNaN(parseFloat(y))&&(y=g[l]),a.startDim.w=parseFloat(v),a.startDim.h=parseFloat(y),O=!1,h&&(s.unitHeight=(0,w.getUnitFromValue)(y),s.unitWidth=(0,w.getUnitFromValue)(v))},onMove:function(){o.trigger('component:resize')},onEnd:function(t,e){d('remove',0,e),o.trigger('component:resize'),n.toggleFramesEvents(!0),O=!0},updateTarget:function(t,o,i){if(void 0===i&&(i={}),c){var s=i.store,a=i.selectedHandler,l=i.config,u=l.keyHeight,h=l.keyWidth,p=l.autoHeight,d=l.autoWidth,f=l.unitWidth,g=l.unitHeight,m=['tc','bc'].indexOf(a)>=0,v=['cl','cr'].indexOf(a)>=0,y={};if(!m){var _=n.getBody().offsetWidth,O=o.w<_?o.w:_;y[h]=d?'auto':"".concat(O).concat(f)}v||(y[u]=p?'auto':"".concat(o.h).concat(g)),e.getDragMode(r)&&(y.top="".concat(o.t).concat(g),y.left="".concat(o.l).concat(f));var b=S(S({},y),{__p:!s});c.addStyle(b,{avoidStore:!s}),e.Styles.__emitCmpStyleUpdate(b,{components:e.getSelected()})}}},(0,w.isObject)(s)?s:{});this.resizer=o.runCommand('resize',{el:u,options:f,force:1})}else{if(l)return;o.stopCommand('resize'),this.resizer=null}},updateToolbar:function(t){var e=this.canvas,n=this.config.em,o=t===n?n.getSelected():t,i=e.getToolbarEl(),r=i.style,s=o.get('toolbar'),a=n.config.showToolbar,l=!e.hasCustomSpot(x.q.Select);if(o&&a&&s&&s.length&&l){if(r.display='',!this.toolbar){i.innerHTML='',this.toolbar=new u(s);var c=new _({collection:this.toolbar,em:n});i.appendChild(c.render().el)}this.toolbar.reset(s),r.top='-100px',r.left='0'}else r.display='none'},updateToolbarPos:function(t){var e='px',n=this.canvas.getToolbarEl().style;n.top="".concat(t.top).concat(e),n.left="".concat(t.left).concat(e),n.opacity=''},getCanvasPosition:function(){return this.canvas.getCanvasView().getPosition()},getBadge:function(t){return void 0===t&&(t={}),this.canvas.getBadgeEl(t.view)},onFrameScroll:function(){this.updateTools(),this.canvas.refreshSpots()},onFrameResize:function(){this.canvas.refreshSpots()},updateTools:function(){this.updateLocalPos(),this.updateGlobalPos()},isCompSelected:function(t){return t&&'selected'===t.get('status')},updateToolsLocal:function(t){var e=this.em.getConfig(),n=t||this.getElHovered(),o=n.el,i=n.pos,r=n.view,s=n.component;if(o){var a=s.get('hoverable'),l=this.lastHovered!==o,c=l?{}:{posOnly:1},u=this.canvas.hasCustomSpot(x.q.Hover);l&&a&&(this.lastHovered=o,u?this.hideHighlighter(r):this.showHighlighter(r),this.showElementOffset(o,i,{view:r})),this.isCompSelected(s)&&(this.hideHighlighter(r),!e.showOffsetsSelected&&this.hideElementOffset(r));var h='px',p=this.toggleToolsEl(1,r),d=p.style,f=this.canvas.canvasRectOffset(o,i),g=f.top,m=f.left;!u&&this.updateBadge(o,i,S(S({},c),{view:r,topOff:g,leftOff:m})),d.top=g+h,d.left=m+h,d.width=i.width+h,d.height=i.height+h,this._trgToolUp('local',{component:s,el:p,top:g,left:m,width:i.width,height:i.height})}else this.lastHovered=0},_upToolbar:(0,i.debounce)((function(){this.updateToolsGlobal({force:1})}),0),_trgToolUp:function(t,e){void 0===e&&(e={}),this.em.trigger('canvas:tools:update',S({type:t},e))},updateToolsGlobal:function(t){void 0===t&&(t={});var e=this.getElSelected(),n=e.el,o=e.pos,i=e.component;if(!n)return this.toggleToolsEl(),void(this.lastSelected=0);var r=this.canvas;(this.lastSelected!==n||t.force)&&(this.lastSelected=n,this.updateToolbar(i));var s='px',a=this.toggleToolsEl(1),l=a.style,c=r.getTargetToElementFixed(n,r.getToolbarEl(),{pos:o}),u=c.canvasOffsetTop,h=c.canvasOffsetLeft;l.top=u+s,l.left=h+s,l.width=o.width+s,l.height=o.height+s,this.updateToolbarPos({top:c.top,left:c.left}),this._trgToolUp('global',{component:i,el:a,top:u,left:h,width:o.width,height:o.height})},updateAttached:(0,i.debounce)((function(){this.updateGlobalPos()}),0),onContainerChange:(0,i.debounce)((function(){this.em.refreshCanvas()}),150),getElementPos:function(t){return this.canvas.getCanvasView().getElementPos(t,{noScroll:!0})},hideBadge:function(){this.getBadge().style.display='none'},cleanPrevious:function(t){t&&t.set({status:'',state:''})},getContentWindow:function(){return this.canvas.getWindow()},run:function(t){(0,w.hasWin)()&&(this.editor=t&&t.get('Editor'),this.enable())},stop:function(t,e,n){if(void 0===n&&(n={}),(0,w.hasWin)()){var o=this.em,i=this.editor;this.onHovered(),this.stopSelectComponent(),!n.preserveSelected&&o.setSelected(),this.toggleToolsEl(),i&&i.stopCommand('resize')}}}},477:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>i});var o=n(815);const i={startSelectPosition:function(t,e,n){var o=this;void 0===n&&(n={}),this.isPointed=!1;var i=this.em.Utils,r=t.ownerDocument.body;i&&!this.sorter&&(this.sorter=new i.Sorter({container:r,placer:this.canvas.getPlacerEl(),containerSel:'*',itemSel:'*',pfx:this.ppfx,direction:'a',document:e,wmargin:1,nested:1,em:this.em,canvasRelative:1,scale:function(){return o.em.getZoomDecimal()}})),n.onStart&&(this.sorter.onStart=n.onStart),t&&this.sorter.startSort(t,{container:r})},getOffsetDim:function(){var t=this.offset(this.canvas.getFrameEl()),e=this.offset(this.canvas.getElement());return{top:t.top-e.top,left:t.left-e.left}},stopSelectPosition:function(){this.posTargetCollection=null,this.posIndex='after'==this.posMethod&&0!==this.cDim.length?this.posIndex+1:this.posIndex,this.sorter&&(this.sorter.moved=0,this.sorter.endMove()),this.cDim&&(this.posIsLastEl=0!==this.cDim.length&&'after'==this.posMethod&&this.posIndex==this.cDim.length,this.posTargetEl=0===this.cDim.length?(0,o["default"])(this.outsideElem):!this.posIsLastEl&&this.cDim[this.posIndex]?(0,o["default"])(this.cDim[this.posIndex][5]).parent():(0,o["default"])(this.outsideElem),this.posTargetModel=this.posTargetEl.data('model'),this.posTargetCollection=this.posTargetEl.data('model-comp'))},enable:function(){this.startSelectPosition()},nearFloat:function(t,e,n){var o=t||0,i=e||'before',r=n.length,s=0!==r&&'after'==i&&o==r;return 0!==r&&(!s&&!n[o][4]||n[o-1]&&!n[o-1][4]||s&&!n[o-1][4])?1:0},run:function(){this.enable()},stop:function(){this.stopSelectPosition(),this.$wrapper.css('cursor',''),this.$wrapper.unbind()}}},886:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>l});var o=n(50),i=n(201),r=n(815),s=n(968),a=void 0&&(void 0).__assign||function(){return a=Object.assign||function(t){for(var e,n=1,o=arguments.length;n")).get(0),A=(0,r["default"])("
")).get(0),$=m+E+'-el',j="".concat(m+T+'-el'," ").concat(m+T),R="".concat($," ").concat(m+E);_=(0,r["default"])("
")).get(0),O=(0,r["default"])("
")).get(0),b=(0,r["default"])("
")).get(0),w=(0,r["default"])("
")).get(0),x=(0,r["default"])("
")).get(0),S=(0,r["default"])("
")).get(0),k=(0,r["default"])("
")).get(0),P=(0,r["default"])("
")).get(0),this['marginT'+u]=_,this['marginB'+u]=O,this['marginL'+u]=b,this['marginR'+u]=w,this['padT'+u]=x,this['padB'+u]=S,this['padL'+u]=k,this['padR'+u]=P,Q.appendChild(_),Q.appendChild(O),Q.appendChild(b),Q.appendChild(w),A.appendChild(x),A.appendChild(S),A.appendChild(k),A.appendChild(P),y.appendChild(Q),y.appendChild(A),this[v]='1'}var Z='px',M=parseFloat(g.marginLeft.replace(Z,''))*p,V=parseFloat(g.marginRight.replace(Z,''))*p,D=parseFloat(g.marginTop.replace(Z,''))*p,I=parseFloat(g.marginBottom.replace(Z,''))*p,N=_.style,W=O.style,X=b.style,L=w.style,Y=x.style,z=S.style,q=k.style,U=P.style,B=parseFloat(f.left),F=parseFloat(g.width)*p+Z;N.height=D+Z,N.width=F,N.top=f.top-D+Z,N.left=B+Z,W.height=I+Z,W.width=F,W.top=f.top+f.height+Z,W.left=B+Z;var G=f.height+D+I+Z,H=f.top-D+Z;X.height=G,X.width=M+Z,X.top=H,X.left=B-M+Z,L.height=G,L.width=V+Z,L.top=H,L.left=B+f.width+Z;var K=parseFloat(g.paddingTop)*p;Y.height=K+Z;var J=parseFloat(g.paddingBottom)*p;z.height=J+Z;var tt=f.height-J-K+Z,et=f.top+K+Z;q.height=tt,q.width=parseFloat(g.paddingLeft)*p+Z,q.top=et;var nt=parseFloat(g.paddingRight)*p;U.height=tt,U.width=nt+Z,U.top=et}}else t.stopCommand("".concat(this.id),n)},stop:function(t,e,n){void 0===n&&(n={});var o=(n||{}).state||'',i=this.getOffsetMethod(o),r=n.view;this.canvas[i](r).style.opacity=0}}},817:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});var o=n(50),i=n(283);const r={init:function(){(0,o.bindAll)(this,'_onFramesChange')},run:function(t){this.toggleVis(t,!0)},stop:function(t){this.toggleVis(t,!1)},toggleVis:function(t,e){if(void 0===e&&(e=!0),!t.Commands.isActive('preview')){var n=t.Canvas,o=e?'on':'off';n.getModel()[o]('change:frames',this._onFramesChange),this.handleFrames(n.getFrames(),e)}},handleFrames:function(t,e){var n=this;t.forEach((function(t){var o;(null===(o=t.view)||void 0===o?void 0:o.loaded)&&n._upFrame(t,e),t.__ol||(t.on('loaded',(function(){return n._upFrame(t)})),t.__ol=!0)}))},_onFramesChange:function(t,e){this.handleFrames(e)},_upFrame:function(t,e){var n,o=this,r=o.ppfx,s=o.em,a=o.id,l=((0,i.isDef)(e)?e:s.Commands.isActive(a))?'add':'remove',c="".concat(r,"dashed");null===(n=t.view)||void 0===n||n.getBody().classList[l](c)}}},847:(t,e,n)=>{"use strict";n.d(e,{FE:()=>u,G7:()=>h,Hn:()=>c,pH:()=>p,vA:()=>i});var o,i,r=n(316),s=n.n(r),a=void 0&&(void 0).__extends||(o=function(t,e){return o=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])},o(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),l=void 0&&(void 0).__assign||function(){return l=Object.assign||function(t){for(var e,n=1,o=arguments.length;n{"use strict";n.d(e,{Z:()=>a});var o=n(50),i=n(968),r=void 0&&(void 0).__assign||function(){return r=Object.assign||function(t){for(var e,n=1,o=arguments.length;n=e&&t<=e+o||t<=e&&t>=e-o},t.prototype.setGuideLock=function(t,e){var n=(0,o.isUndefined)(t.x)?'Y':'X',i="trg".concat(n);return null!==e?(t.active=!0,t.lock=e,this[i]=t):(delete t.active,delete t.lock,delete this[i]),t},t.prototype.stop=function(t,e){void 0===e&&(e={});var n=this.delta,i=!!e.cancel,r=i?0:n.x,s=i?0:n.y;this.toggleDrag(),this.lockedAxis=null,this.move(r,s,!0);var a=this.opts.onEnd;(0,o.isFunction)(a)&&a(t,this,{cancelled:i})},t.prototype.keyHandle=function(t){(0,i.kl)(t)&&this.stop(t,{cancel:!0})},t.prototype.move=function(t,e,n){var i=this.el,r=this.opts,s=this.startPosition;if(s){var a=r.setPosition,l=s.x+t,c=s.y+e;this.position={x:l,y:c,end:n},(0,o.isFunction)(a)&&a(this.position),i&&(i.style.left="".concat(l,"px"),i.style.top="".concat(c,"px"))}},t.prototype.getContainerEl=function(){var t=this.opts.container;return t?[t]:this.getDocumentEl()},t.prototype.getWindowEl=function(){return this.getContainerEl().map((function(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow}))},t.prototype.getDocumentEl=function(t){var e=this.opts.doc;if(t=t||this.el,!this.docs.length){var n=[document];t&&n.push(t.ownerDocument),e&&n.push(e),this.docs=n}return this.docs},t.prototype.getPointerPos=function(t){var e=this.opts.getPointerPosition,n=(0,i.VB)(t);return e?e(t):{x:n.clientX,y:n.clientY}},t.prototype.getStartPosition=function(){var t=this.el,e=this.opts.getPosition,n={x:0,y:0};return(0,o.isFunction)(e)?n=e():t&&(n={x:parseFloat(t.style.left),y:parseFloat(t.style.top)}),n},t.prototype.getScrollInfo=function(){var t=this.opts.doc,e=t&&t.body;return{y:e?e.scrollTop:0,x:e?e.scrollLeft:0}},t.prototype.detectAxisLock=function(t,e){var n=t,o=e,i=Math.abs(n),r=Math.abs(o);return o>=i||o<=-i?'x':n>r||n<-r?'y':void 0},t}()},815:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>mt});var o='undefined'!=typeof document?document:null,i='undefined'!=typeof window?window:null,r=Array.prototype,s=r.filter,a=r.indexOf,l=r.map,c=r.push,u=r.reverse,h=r.slice,p=r.splice,d=/^#[\w-]*$/,f=/^\.[\w-]*$/,g=/<.+>/,m=/^\w+$/;function v(t,e){return void 0===e&&(e=o),f.test(t)?e.getElementsByClassName(t.slice(1)):m.test(t)?e.getElementsByTagName(t):e.querySelectorAll(t)}function y(t,e){if(void 0===e&&(e=o),t){if(t.__cash)return t;var n=t;if(T(t)){if(e.__cash&&(e=e[0]),!(n=d.test(t)?e.getElementById(t.slice(1)):g.test(t)?dt(t):v(t,e)))return}else if(C(t))return this.ready(t);(n.nodeType||n===i)&&(n=[n]),this.length=n.length;for(var r=0,s=this.length;r=0})):n.value=i}))},O.clone=function(){return this.map((function(t,e){return e.cloneNode(!0)}))},O.detach=function(){return this.each((function(t,e){e.parentNode&&e.parentNode.removeChild(e)}))};var ut,ht=/^\s*<(\w+)[^>]*>/,pt=/^\s*<(\w+)\s*\/?>(?:<\/\1>)?\s*$/;function dt(t){if(function(){if(!ut){var t=o.createElement('table'),e=o.createElement('tr');ut={'*':o.createElement('div'),tr:o.createElement('tbody'),td:e,th:e,thead:t,tbody:t,tfoot:t}}}(),!T(t))return[];if(pt.test(t))return[o.createElement(RegExp.$1)];var e=ht.test(t)&&RegExp.$1,n=ut[e]||ut['*'];return n.innerHTML=t,_(n.childNodes).detach().get()}function ft(t,e,n){if(void 0!==e){var o=T(e);!o&&e.length?S(e,(function(e){return ft(t,e,n)})):S(t,o?function(t){t.insertAdjacentHTML(n?'afterbegin':'beforeend',e)}:function(t,o){return function(t,e,n){n?t.insertBefore(e,t.childNodes[0]):t.appendChild(e)}(t,o?e.cloneNode(!0):e,n)})}}_.parseHTML=dt,O.empty=function(){var t=this[0];if(t)for(;t.firstChild;)t.removeChild(t.firstChild);return this},O.append=function(){var t=this;return S(arguments,(function(e){ft(t,e)})),this},O.appendTo=function(t){return ft(_(t),this),this},O.html=function(t){if(void 0===t)return this[0]&&this[0].innerHTML;var e=t.nodeType?t[0].outerHTML:t;return this.each((function(t,n){n.innerHTML=e}))},O.insertAfter=function(t){var e=this;return _(t).each((function(t,n){var o=n.parentNode;e.each((function(e,i){o.insertBefore(t?i.cloneNode(!0):i,n.nextSibling)}))})),this},O.after=function(){var t=this;return S(u.apply(arguments),(function(e){u.apply(_(e).slice()).insertAfter(t)})),this},O.insertBefore=function(t){var e=this;return _(t).each((function(t,n){var o=n.parentNode;e.each((function(e,i){o.insertBefore(t?i.cloneNode(!0):i,n)}))})),this},O.before=function(){var t=this;return S(arguments,(function(e){_(e).insertBefore(t)})),this},O.prepend=function(){var t=this;return S(arguments,(function(e){ft(t,e,!0)})),this},O.prependTo=function(t){return ft(_(t),u.apply(this.slice()),!0),this},O.remove=function(){return this.detach().off()},O.replaceWith=function(t){var e=this;return this.each((function(n,o){var i=o.parentNode;if(i){var r=n?_(t).clone():_(t);if(!r[0])return e.remove(),!1;i.replaceChild(r[0],o),_(r[0]).after(r.slice(1))}}))},O.replaceAll=function(t){return _(t).replaceWith(this),this},O.text=function(t){return void 0===t?this[0]?this[0].textContent:'':this.each((function(e,n){n.textContent=t}))};var gt=o&&o.documentElement;O.offset=function(){var t=this[0];if(t){var e=t.getBoundingClientRect();return{top:e.top+i.pageYOffset-gt.clientTop,left:e.left+i.pageXOffset-gt.clientLeft}}},O.offsetParent=function(){return _(this[0]&&this[0].offsetParent)},O.position=function(){var t=this[0];if(t)return{left:t.offsetLeft,top:t.offsetTop}},O.children=function(t){var e=[];return this.each((function(t,n){c.apply(e,n.children)})),e=_(R(e)),t?e.filter((function(e,n){return P(n,t)})):e},O.contents=function(){var t=[];return this.each((function(e,n){c.apply(t,'IFRAME'===n.tagName?[n.contentDocument]:n.childNodes)})),_(t.length&&R(t))},O.find=function(t){for(var e=[],n=0,o=this.length;n{"use strict";n.d(e,{$Q:()=>g,BM:()=>b,FW:()=>p,G1:()=>a,GX:()=>S,L_:()=>c,Mx:()=>l,R3:()=>m,S1:()=>$,SJ:()=>O,Ut:()=>x,VB:()=>C,Vb:()=>Q,cx:()=>u,dL:()=>f,kl:()=>T,o5:()=>w,on:()=>A,pn:()=>d,r$:()=>E,rw:()=>y,sE:()=>h,sN:()=>P,t3:()=>_,ut:()=>v});var o=n(50),i=void 0&&(void 0).__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var o,i=0,r=e.length;i=r?t.appendChild(e):t.insertBefore(e,i[s])},m=function(t,e){return g(t,e)},v=function(t,e,n){void 0===e&&(e={});var i=document.createElement(t);return e&&(0,o.each)(e,(function(t,e){return i.setAttribute(e,t)})),n&&((0,o.isString)(n)?i.innerHTML=n:i.appendChild(n)),i},y=function(t){return document.createTextNode(t)},_=function(t,e){var n,o=t.type;try{n=new window[e](o,t)}catch(t){(n=document.createEvent(e)).initEvent(o,!0,!0)}return n._parentEvent=t,0===o.indexOf('key')&&(n.keyCodeVal=t.keyCode,['keyCode','which'].forEach((function(t){Object.defineProperty(n,t,{get:function(){return this.keyCodeVal}})}))),n},O=function(t,e){void 0===e&&(e=[]),(Array.isArray(e)?e:[e]).forEach((function(e){var n=e[r]||'div',i=e[s]||{},a=document.createElement(n);(0,o.each)(i,(function(t,e){a.setAttribute(e,t)})),t.appendChild(a)}))},b=function(t){return(null==t?void 0:t.nodeType)===Node.TEXT_NODE},w=function(t){return t&&!b(t)&&!function(t){return(null==t?void 0:t.nodeType)===Node.COMMENT_NODE}(t)},x=function(t){var e,n={top:0,left:0,width:0,height:0};if(!t)return n;if(b(t)){var o=document.createRange();o.selectNode(t),e=o.getBoundingClientRect(),o.detach()}return e||(t.getBoundingClientRect?t.getBoundingClientRect():n)},S=function(t){var e=(null==t?void 0:t.ownerDocument)||document,n=e.documentElement,o=e.defaultView||window;return{x:(o.pageXOffset||n.scrollLeft||0)-(n.clientLeft||0),y:(o.pageYOffset||n.scrollTop||0)-(n.clientTop||0)}},k=function(t){return t.which||t.keyCode},P=function(t){return String.fromCharCode(k(t))},C=function(t){return t.touches&&t.touches[0]?t.touches[0]:t},T=function(t){return 27===k(t)},E=function(t){return 13===k(t)},Q=function(t){return function(t){return t.ctrlKey}(t)||t.metaKey},A=function(t,e,n,i){var r=e.split(/\s+/),s=(0,o.isArray)(t)?t:[t];r.forEach((function(t){s.forEach((function(e){return null==e?void 0:e.addEventListener(t,n,i)}))}))},$=function(t,e,n,i){var r=e.split(/\s+/),s=(0,o.isArray)(t)?t:[t];r.forEach((function(t){s.forEach((function(e){return null==e?void 0:e.removeEventListener(t,n,i)}))}))}},283:(t,e,n)=>{"use strict";n.r(e),n.d(e,{appendStyles:()=>y,buildBase64UrlFromSvg:()=>W,camelCase:()=>w,capitalize:()=>j,createId:()=>N,deepMerge:()=>E,escape:()=>C,escapeNodeContent:()=>T,find:()=>P,getComponentModel:()=>D,getComponentView:()=>V,getElement:()=>k,getGlobal:()=>d,getModel:()=>Q,getUiClass:()=>v,getUnitFromValue:()=>O,getViewEl:()=>Z,hasDnd:()=>S,hasWin:()=>p,isBultInMethod:()=>l,isComponent:()=>M,isDef:()=>h,isEmptyObj:()=>$,isObject:()=>A,isRule:()=>R,matches:()=>m,normalizeFloat:()=>x,normalizeKey:()=>c,setViewEl:()=>I,shallowDiff:()=>_,toLowerCase:()=>f,upFirst:()=>b,wait:()=>u});var o=n(50),i=n(968),r=void 0&&(void 0).__assign||function(){return r=Object.assign||function(t){for(var e,n=1,o=arguments.length;n=0?s!==a&&(n[r]=a):n[r]=null}for(var r in e)e.hasOwnProperty(r)&&(0,o.isUndefined)(t[r])&&(n[r]=e[r]);return n},O=function(t){return t.replace(parseFloat(t),'')},b=function(t){return t[0].toUpperCase()+t.toLowerCase().slice(1)},w=function(t){return t.replace(/-./g,(function(t){return t[1].toUpperCase()}))},x=function(t,e,n){void 0===e&&(e=1),void 0===n&&(n=0);var o=0;if(isNaN(t))return n;if(t=parseFloat(t),Math.floor(t)!==t){var i=e.toString().split('.')[1];o=i?i.length:0}return o?parseFloat(t.toFixed(o)):t},S=function(t){return'draggable'in document.createElement('i')&&(!t||t.config.nativeDnD)},k=function(t){return(0,o.isElement)(t)||(0,i.BM)(t)?t:t&&t.getEl?t.getEl():void 0},P=function(t,e){var n=null;return t.some((function(o,i){return e(o,i,t)?(n=o,1):0})),n},C=function(t){return void 0===t&&(t=''),"".concat(t).replace(/&/g,'&').replace(//g,'>').replace(/"/g,'"').replace(/'/g,''').replace(/`/g,'`')},T=function(t){return void 0===t&&(t=''),"".concat(t).replace(/&/g,'&').replace(//g,'>')},E=function(){for(var t=[],e=0;e{var o={"./CanvasClear":266,"./CanvasClear.ts":266,"./CanvasMove":142,"./CanvasMove.ts":142,"./CommandAbstract":458,"./CommandAbstract.ts":458,"./ComponentDelete":463,"./ComponentDelete.ts":463,"./ComponentDrag":474,"./ComponentDrag.ts":474,"./ComponentEnter":866,"./ComponentEnter.ts":866,"./ComponentExit":594,"./ComponentExit.ts":594,"./ComponentNext":656,"./ComponentNext.ts":656,"./ComponentPrev":768,"./ComponentPrev.ts":768,"./ComponentStyleClear":570,"./ComponentStyleClear.ts":570,"./CopyComponent":282,"./CopyComponent.ts":282,"./ExportTemplate":905,"./ExportTemplate.ts":905,"./Fullscreen":212,"./Fullscreen.ts":212,"./MoveComponent":907,"./MoveComponent.ts":907,"./OpenAssets":963,"./OpenAssets.ts":963,"./OpenBlocks":268,"./OpenBlocks.ts":268,"./OpenLayers":556,"./OpenLayers.ts":556,"./OpenPages":120,"./OpenPages.ts":120,"./OpenStyleManager":462,"./OpenStyleManager.ts":462,"./OpenTraitManager":521,"./OpenTraitManager.ts":521,"./PasteComponent":133,"./PasteComponent.ts":133,"./Preview":931,"./Preview.ts":931,"./Resize":676,"./Resize.ts":676,"./SelectComponent":938,"./SelectComponent.ts":938,"./SelectPosition":477,"./SelectPosition.ts":477,"./ShowOffset":886,"./ShowOffset.ts":886,"./SwitchVisibility":817,"./SwitchVisibility.ts":817};function i(t){var e=r(t);return n(e)}function r(t){if(!n.o(o,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code='MODULE_NOT_FOUND',e}return o[t]}i.keys=function(){return Object.keys(o)},i.resolve=r,t.exports=i,i.id=828},50:(t,e,n)=>{"use strict";n.r(e),n.d(e,{VERSION:()=>i,after:()=>Ze,all:()=>en,allKeys:()=>mt,any:()=>nn,assign:()=>Zt,before:()=>Me,bind:()=>xe,bindAll:()=>Pe,chain:()=>_e,chunk:()=>In,clone:()=>It,collect:()=>Fe,compact:()=>Tn,compose:()=>Re,constant:()=>K,contains:()=>on,countBy:()=>yn,create:()=>Dt,debounce:()=>Ae,default:()=>Yn,defaults:()=>Mt,defer:()=>Ee,delay:()=>Te,detect:()=>qe,difference:()=>Qn,drop:()=>Pn,each:()=>Be,escape:()=>ae,every:()=>en,extend:()=>Rt,extendOwn:()=>Zt,filter:()=>Je,find:()=>qe,findIndex:()=>Ne,findKey:()=>De,findLastIndex:()=>We,findWhere:()=>Ue,first:()=>kn,flatten:()=>En,foldl:()=>He,foldr:()=>Ke,forEach:()=>Be,functions:()=>$t,get:()=>Yt,groupBy:()=>mn,has:()=>zt,head:()=>kn,identity:()=>qt,include:()=>on,includes:()=>on,indexBy:()=>vn,indexOf:()=>Ye,initial:()=>Sn,inject:()=>He,intersection:()=>Rn,invert:()=>At,invoke:()=>rn,isArguments:()=>F,isArray:()=>q,isArrayBuffer:()=>V,isBoolean:()=>T,isDataView:()=>z,isDate:()=>j,isElement:()=>E,isEmpty:()=>lt,isEqual:()=>gt,isError:()=>Z,isFinite:()=>G,isFunction:()=>N,isMap:()=>kt,isMatch:()=>ct,isNaN:()=>H,isNull:()=>P,isNumber:()=>$,isObject:()=>k,isRegExp:()=>R,isSet:()=>Ct,isString:()=>A,isSymbol:()=>M,isTypedArray:()=>it,isUndefined:()=>C,isWeakMap:()=>Pt,isWeakSet:()=>Tt,iteratee:()=>Ht,keys:()=>at,last:()=>Cn,lastIndexOf:()=>ze,map:()=>Fe,mapObject:()=>Jt,matcher:()=>Ut,matches:()=>Ut,max:()=>ln,memoize:()=>Ce,methods:()=>$t,min:()=>cn,mixin:()=>Wn,negate:()=>je,noop:()=>te,now:()=>ie,object:()=>Vn,omit:()=>xn,once:()=>Ve,pairs:()=>Qt,partial:()=>we,partition:()=>_n,pick:()=>wn,pluck:()=>sn,property:()=>Bt,propertyOf:()=>ee,random:()=>oe,range:()=>Dn,reduce:()=>He,reduceRight:()=>Ke,reject:()=>tn,rest:()=>Pn,restArguments:()=>S,result:()=>me,sample:()=>pn,select:()=>Je,shuffle:()=>dn,size:()=>On,some:()=>nn,sortBy:()=>fn,sortedIndex:()=>Xe,tail:()=>Pn,take:()=>kn,tap:()=>Nt,template:()=>ge,templateSettings:()=>ce,throttle:()=>Qe,times:()=>ne,toArray:()=>hn,toPath:()=>Wt,transpose:()=>Zn,unescape:()=>le,union:()=>jn,uniq:()=>$n,unique:()=>$n,uniqueId:()=>ye,unzip:()=>Zn,values:()=>Et,where:()=>an,without:()=>An,wrap:()=>$e,zip:()=>Mn});var o={};n.r(o),n.d(o,{VERSION:()=>i,after:()=>Ze,all:()=>en,allKeys:()=>mt,any:()=>nn,assign:()=>Zt,before:()=>Me,bind:()=>xe,bindAll:()=>Pe,chain:()=>_e,chunk:()=>In,clone:()=>It,collect:()=>Fe,compact:()=>Tn,compose:()=>Re,constant:()=>K,contains:()=>on,countBy:()=>yn,create:()=>Dt,debounce:()=>Ae,default:()=>Xn,defaults:()=>Mt,defer:()=>Ee,delay:()=>Te,detect:()=>qe,difference:()=>Qn,drop:()=>Pn,each:()=>Be,escape:()=>ae,every:()=>en,extend:()=>Rt,extendOwn:()=>Zt,filter:()=>Je,find:()=>qe,findIndex:()=>Ne,findKey:()=>De,findLastIndex:()=>We,findWhere:()=>Ue,first:()=>kn,flatten:()=>En,foldl:()=>He,foldr:()=>Ke,forEach:()=>Be,functions:()=>$t,get:()=>Yt,groupBy:()=>mn,has:()=>zt,head:()=>kn,identity:()=>qt,include:()=>on,includes:()=>on,indexBy:()=>vn,indexOf:()=>Ye,initial:()=>Sn,inject:()=>He,intersection:()=>Rn,invert:()=>At,invoke:()=>rn,isArguments:()=>F,isArray:()=>q,isArrayBuffer:()=>V,isBoolean:()=>T,isDataView:()=>z,isDate:()=>j,isElement:()=>E,isEmpty:()=>lt,isEqual:()=>gt,isError:()=>Z,isFinite:()=>G,isFunction:()=>N,isMap:()=>kt,isMatch:()=>ct,isNaN:()=>H,isNull:()=>P,isNumber:()=>$,isObject:()=>k,isRegExp:()=>R,isSet:()=>Ct,isString:()=>A,isSymbol:()=>M,isTypedArray:()=>it,isUndefined:()=>C,isWeakMap:()=>Pt,isWeakSet:()=>Tt,iteratee:()=>Ht,keys:()=>at,last:()=>Cn,lastIndexOf:()=>ze,map:()=>Fe,mapObject:()=>Jt,matcher:()=>Ut,matches:()=>Ut,max:()=>ln,memoize:()=>Ce,methods:()=>$t,min:()=>cn,mixin:()=>Wn,negate:()=>je,noop:()=>te,now:()=>ie,object:()=>Vn,omit:()=>xn,once:()=>Ve,pairs:()=>Qt,partial:()=>we,partition:()=>_n,pick:()=>wn,pluck:()=>sn,property:()=>Bt,propertyOf:()=>ee,random:()=>oe,range:()=>Dn,reduce:()=>He,reduceRight:()=>Ke,reject:()=>tn,rest:()=>Pn,restArguments:()=>S,result:()=>me,sample:()=>pn,select:()=>Je,shuffle:()=>dn,size:()=>On,some:()=>nn,sortBy:()=>fn,sortedIndex:()=>Xe,tail:()=>Pn,take:()=>kn,tap:()=>Nt,template:()=>ge,templateSettings:()=>ce,throttle:()=>Qe,times:()=>ne,toArray:()=>hn,toPath:()=>Wt,transpose:()=>Zn,unescape:()=>le,union:()=>jn,uniq:()=>$n,unique:()=>$n,uniqueId:()=>ye,unzip:()=>Zn,values:()=>Et,where:()=>an,without:()=>An,wrap:()=>$e,zip:()=>Mn});var i='1.13.6',r='object'==typeof self&&self.self===self&&self||'object'==typeof global&&global.global===global&&global||Function('return this')()||{},s=Array.prototype,a=Object.prototype,l='undefined'!=typeof Symbol?Symbol.prototype:null,c=s.push,u=s.slice,h=a.toString,p=a.hasOwnProperty,d='undefined'!=typeof ArrayBuffer,f='undefined'!=typeof DataView,g=Array.isArray,m=Object.keys,v=Object.create,y=d&&ArrayBuffer.isView,_=isNaN,O=isFinite,b=!{toString:null}.propertyIsEnumerable('toString'),w=['valueOf','isPrototypeOf','toString','propertyIsEnumerable','hasOwnProperty','toLocaleString'],x=Math.pow(2,53)-1;function S(t,e){return e=null==e?t.length-1:+e,function(){for(var n=Math.max(arguments.length-e,0),o=Array(n),i=0;i=0&&n<=x}}function tt(t){return function(e){return null==e?void 0:e[t]}}const et=tt('byteLength'),nt=J(et);var ot=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;const it=d?function(t){return y?y(t)&&!z(t):nt(t)&&ot.test(h.call(t))}:K(!1),rt=tt('length');function st(t,e){e=function(t){for(var e={},n=t.length,o=0;o':'>','"':'"',"'":''','`':'`'},ae=re(se),le=re(At(se)),ce=ut.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var ue=/(.)^/,he={"'":"'",'\\':'\\','\r':'r','\n':'n','\u2028':'u2028','\u2029':'u2029'},pe=/\\|'|\r|\n|\u2028|\u2029/g;function de(t){return'\\'+he[t]}var fe=/^\s*(\w|\$)+\s*$/;function ge(t,e,n){!e&&n&&(e=n),e=Mt({},e,ut.templateSettings);var o=RegExp([(e.escape||ue).source,(e.interpolate||ue).source,(e.evaluate||ue).source].join('|')+'|$','g'),i=0,r="__p+='";t.replace(o,(function(e,n,o,s,a){return r+=t.slice(i,a).replace(pe,de),i=a+e.length,n?r+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":o?r+="'+\n((__t=("+o+"))==null?'':__t)+\n'":s&&(r+="';\n"+s+"\n__p+='"),e})),r+="';\n";var s,a=e.variable;if(a){if(!fe.test(a))throw new Error('variable is not a bare identifier: '+a)}else r='with(obj||{}){\n'+r+'}\n',a='obj';r="var __t,__p='',__j=Array.prototype.join,"+"print=function(){__p+=__j.call(arguments,'');};\n"+r+'return __p;\n';try{s=new Function(a,'_',r)}catch(t){throw t.source=r,t}var l=function(t){return s.call(this,t,ut)};return l.source='function('+a+'){\n'+r+'}',l}function me(t,e,n){var o=(e=Xt(e)).length;if(!o)return N(n)?n.call(t):n;for(var i=0;i1)ke(a,e-1,n,o),i=o.length;else for(var l=0,c=a.length;le?(o&&(clearTimeout(o),o=null),a=c,s=t.apply(i,r),o||(i=r=null)):o||!1===n.trailing||(o=setTimeout(l,u)),s};return c.cancel=function(){clearTimeout(o),a=0,o=i=r=null},c}function Ae(t,e,n){var o,i,r,s,a,l=function(){var c=ie()-i;e>c?o=setTimeout(l,e-c):(o=null,n||(s=t.apply(a,r)),o||(r=a=null))},c=S((function(c){return a=this,r=c,i=ie(),o||(o=setTimeout(l,e),n&&(s=t.apply(a,r))),s}));return c.cancel=function(){clearTimeout(o),o=r=a=null},c}function $e(t,e){return we(e,t)}function je(t){return function(){return!t.apply(this,arguments)}}function Re(){var t=arguments,e=t.length-1;return function(){for(var n=e,o=t[e].apply(this,arguments);n--;)o=t[n].call(this,o);return o}}function Ze(t,e){return function(){if(--t<1)return e.apply(this,arguments)}}function Me(t,e){var n;return function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=null),n}}const Ve=we(Me,2);function De(t,e,n){e=Kt(e,n);for(var o,i=at(t),r=0,s=i.length;r0?0:i-1;r>=0&&r0?s=r>=0?r:Math.max(r+a,s):a=r>=0?Math.min(r+1,a):r+a+1;else if(n&&r&&a)return o[r=n(o,i)]===i?r:-1;if(i!=i)return(r=e(u.call(o,s,a),H))>=0?r+s:-1;for(r=t>0?s:a-1;r>=0&&r=3;return function(e,n,o,i){var r=!Se(e)&&at(e),s=(r||e).length,a=t>0?0:s-1;for(i||(o=e[r?r[a]:a],a+=t);a>=0&&a=0}const rn=S((function(t,e,n){var o,i;return N(e)?i=e:(e=Xt(e),o=e.slice(0,-1),e=e[e.length-1]),Fe(t,(function(t){var r=i;if(!r){if(o&&o.length&&(t=Lt(t,o)),null==t)return;r=t[e]}return null==r?r:r.apply(t,n)}))}));function sn(t,e){return Fe(t,Bt(e))}function an(t,e){return Je(t,Ut(e))}function ln(t,e,n){var o,i,r=-1/0,s=-1/0;if(null==e||'number'==typeof e&&'object'!=typeof t[0]&&null!=t)for(var a=0,l=(t=Se(t)?t:Et(t)).length;ar&&(r=o);else e=Kt(e,n),Be(t,(function(t,n,o){((i=e(t,n,o))>s||i===-1/0&&r===-1/0)&&(r=t,s=i)}));return r}function cn(t,e,n){var o,i,r=1/0,s=1/0;if(null==e||'number'==typeof e&&'object'!=typeof t[0]&&null!=t)for(var a=0,l=(t=Se(t)?t:Et(t)).length;ao||void 0===n)return 1;if(n1&&(o=Ft(o,e[1])),e=mt(t)):(o=bn,e=ke(e,!1,!1),t=Object(t));for(var i=0,r=e.length;i1&&(n=e[1])):(e=Fe(ke(e,!1,!1),String),o=function(t,n){return!on(e,n)}),wn(t,o,n)}));function Sn(t,e,n){return u.call(t,0,Math.max(0,t.length-(null==e||n?1:e)))}function kn(t,e,n){return null==t||t.length<1?null==e||n?void 0:[]:null==e||n?t[0]:Sn(t,t.length-e)}function Pn(t,e,n){return u.call(t,null==e||n?1:e)}function Cn(t,e,n){return null==t||t.length<1?null==e||n?void 0:[]:null==e||n?t[t.length-1]:Pn(t,Math.max(0,t.length-e))}function Tn(t){return Je(t,Boolean)}function En(t,e){return ke(t,e,!1)}const Qn=S((function(t,e){return e=ke(e,!0,!0),Je(t,(function(t){return!on(e,t)}))})),An=S((function(t,e){return Qn(t,e)}));function $n(t,e,n,o){T(e)||(o=n,n=e,e=!1),null!=n&&(n=Kt(n,o));for(var i=[],r=[],s=0,a=rt(t);s{var e=t&&t.__esModule?()=>t['default']:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.g=function(){if('object'==typeof globalThis)return globalThis;try{return this||new Function('return this')()}catch(t){if('object'==typeof window)return window}}(),n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{'undefined'!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:'Module'}),Object.defineProperty(t,'__esModule',{value:!0})};var o={};return(()=>{"use strict";n.d(o,{default:()=>UZ});var t=n(50),e=n(283);function i(t){for(var n=[],o=1;o',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,customUI:!1};var s=n(316),a=n.n(s),l=n(815);var c,u=n(847),h=void 0&&(void 0).__extends||(c=function(t,e){return c=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])},c(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}c(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return h(e,t),e}(u.Hn),d=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return h(n,e),n.prototype.getByComponent=function(t){var e=this;return this.filter((function(n){return e.getComponent(n)===t}))[0]},n.prototype.addComponent=function(e,n){var o=this,i=((0,t.isArray)(e)?e:[e]).filter((function(t){return!o.hasComponent(t)})).map((function(t){return new p({component:t})}))[0];return this.push(i,n)},n.prototype.getComponent=function(t){return t.get('component')},n.prototype.hasComponent=function(t){var e=this.getByComponent(t);return e&&this.contains(e)},n.prototype.lastComponent=function(){var t=this.last();return t?this.getComponent(t):void 0},n.prototype.allComponents=function(){var t=this;return this.map((function(e){return t.getComponent(e)})).filter((function(t){return t}))},n.prototype.removeComponent=function(e,n){var o=this,i=((0,t.isArray)(e)?e:[e]).map((function(t){return o.getByComponent(t)}));return this.remove(i,n)},n}(u.FE);const f=d;var g=void 0&&(void 0).__extends||function(){var t=function(e,n){return t=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])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),m=void 0&&(void 0).__assign||function(){return m=Object.assign||function(t){for(var e,n=1,o=arguments.length;n',frameStyle:"\n body { background-color: #fff }\n * ::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.1) }\n * ::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.2) }\n * ::-webkit-scrollbar { width: 10px }\n ",notTextable:['button','a','input[type=checkbox]','input[type=radio]'],allowExternalDrop:!0};var w=n(728);const x={default:'',devices:[{id:'desktop',name:'Desktop',width:''},{id:'tablet',name:'Tablet',width:'770px',widthMedia:'992px'},{id:'mobileLandscape',name:'Mobile landscape',width:'568px',widthMedia:'768px'},{id:'mobilePortrait',name:'Mobile portrait',width:'320px',widthMedia:'480px'}]};var S=void 0&&(void 0).__extends||function(){var t=function(e,n){return t=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])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}();const k=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return S(e,t),e.prototype.defaults=function(){return{name:'',width:null,height:'',widthMedia:null,priority:null}},e.prototype.initialize=function(){var t=this;null===this.get('widthMedia')&&this.set('widthMedia',this.get('width')),null===this.get('width')&&this.set('width',this.get('widthMedia')),!this.get('priority')&&this.set('priority',parseFloat(this.get('widthMedia'))||0);['width','height','widthMedia'].forEach((function(e){return t.checkUnit(e)}))},e.prototype.checkUnit=function(t){var e=this.get(t)||'';(parseFloat(e)||0).toString()===e.toString()&&this.set(t,"".concat(e,"px"))},e.prototype.getName=function(){return this.get('name')||this.get('id')},e.prototype.getWidthMedia=function(){return this.get('widthMedia')||''},e}(u.Hn);var P=void 0&&(void 0).__extends||function(){var t=function(e,n){return t=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])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),C=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e}(u.FE);const T=C;C.prototype.model=k;var E=void 0&&(void 0).__extends||function(){var t=function(e,n){return t=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])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Q=void 0&&(void 0).__makeTemplateObject||function(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t},A=function(t){function e(e){var n=t.call(this,e)||this;return n.config=e.config||{},n.em=n.config.em,n.ppfx=n.config.pStylePrefix||'',n.listenTo(n.em,'change:device',n.updateSelect),n}return E(e,t),e.prototype.template=function(t){var e=t.ppfx,n=t.label;return i(R||(R=Q(["\n
","
\n
\n \n \n \n
\n
\n
\n
\n \n "],["\n
","
\n
\n \n \n \n
\n
\n
\n
\n \n "])),e,n,e,e,e,e,e,e,e)},e.prototype.events=function(){return{change:'updateDevice','click [data-add-trasp]':'startAdd'}},e.prototype.startAdd=function(){},e.prototype.updateDevice=function(){var t=this.em;if(t){var e=this.devicesEl;t.set('device',e?e.val():'')}},e.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'):'')}},e.prototype.getOptions=function(){var t=this.collection,e=this.em,n='';return t.forEach((function(t){var o=t.attributes,i=o.name,r=o.id,s=e&&e.t&&e.t("deviceManager.devices.".concat(r))||i;n+="")})),n},e.prototype.render=function(){var t=this,e=t.em,n=t.ppfx,o=t.$el,i=t.el,r=e&&e.t&&e.t('deviceManager.device');return o.html(this.template({ppfx:n,label:r})),this.devicesEl=o.find(".".concat(n,"devices")),this.devicesEl.append(this.getOptions()),this.devicesEl.val(e.get('device')),i.className="".concat(n,"devices-c"),this},e}(u.G7);const j=A;var R,Z=void 0&&(void 0).__extends||function(){var t=function(e,n){return t=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])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),M=void 0&&(void 0).__assign||function(){return M=Object.assign||function(t){for(var e,n=1,o=arguments.length;n=0&&this.head.splice(i,1)},o.prototype.addLink=function(t){var e='link';!this.getHeadByAttr('href',t,e)&&this.addHeadItem({tag:e,attributes:{href:t,rel:'stylesheet'}})},o.prototype.removeLink=function(t){this.removeHeadByAttr('href',t,'link')},o.prototype.addScript=function(t){var e='script';!this.getHeadByAttr('src',t,e)&&this.addHeadItem({tag:e,attributes:{src:t}})},o.prototype.removeScript=function(t){this.removeHeadByAttr('src',t,'script')},o.prototype.getPage=function(){var t;return null===(t=this.collection)||void 0===t?void 0:t.page},o.prototype._emitUpdated=function(t){void 0===t&&(t={}),this.em.trigger('frame:updated',K({frame:this},t))},o.prototype.hasAutoHeight=function(){return!('auto'!==this.attributes.height&&!this.config.infiniteCanvas)},o.prototype.toJSON=function(e){void 0===e&&(e={});var n=w.Z.prototype.toJSON.call(this,e),o=(0,t.result)(this,'defaults');return e.fromUndo&&delete n.component,delete n.styles,delete n.changesCount,n[tt]&&delete n.width,n[et]&&delete n.height,n.refFrame&&(n.refFrame=n.refFrame.id,delete n.component),(0,t.forEach)(n,(function(t,e){0===e.indexOf('_')&&delete n[e]})),(0,t.forEach)(o,(function(t,e){n[e]===t&&delete n[e]})),(0,t.forEach)(['attributes','head'],(function(e){(0,t.isEmpty)(n[e])&&delete n[e]})),n},o}(w.Z);const it=ot;var rt=void 0&&(void 0).__extends||function(){var t=function(e,n){return t=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])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}();const st=function(e){function n(n,o){void 0===o&&(o=[]);var i=e.call(this,n,o,it)||this;return i.loadedItems=0,i.itemsToLoad=0,(0,t.bindAll)(i,'itemLoaded'),i.on('add',i.onAdd),i.on('reset',i.onReset),i.on('remove',i.onRemove),i.forEach((function(t){return i.onAdd(t)})),i}return rt(n,e),n.prototype.onAdd=function(t){this.module.framesById[t.id]=t},n.prototype.onReset=function(t,e){var n=this;((null==e?void 0:e.previousModels)||[]).map((function(t){return n.onRemove(t)}))},n.prototype.onRemove=function(t){t.onRemove(),delete this.module.framesById[t.id]},n.prototype.initRefs=function(){this.forEach((function(t){return t.initRefs()}))},n.prototype.itemLoaded=function(){this.loadedItems++,this.loadedItems>=this.itemsToLoad&&(this.trigger('loaded:all'),this.listenToLoadItems(!1))},n.prototype.listenToLoad=function(){this.loadedItems=0,this.itemsToLoad=this.length,this.listenToLoadItems(!0)},n.prototype.listenToLoadItems=function(t){var e=this;this.forEach((function(n){return n[t?'on':'off']('loaded',e.itemLoaded)}))},n}(G);var at=void 0&&(void 0).__extends||function(){var t=function(e,n){return t=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])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),lt=function(e){function n(t,n){void 0===n&&(n={});var o=e.call(this,t,n)||this,i=n.em,r={};o.em=i,t.frames||(r.component=t.component,r.styles=t.styles,['component','styles'].map((function(t){return o.unset(t)})));var s=t.frames||[r],a=new st(i.Canvas,s);return a.page=o,o.set('frames',a),!o.getId()&&o.set('id',null==i?void 0:i.Pages._createId()),null==i||i.UndoManager.add(a),o}return at(n,e),n.prototype.defaults=function(){return{name:'',frames:[],_undo:!0}},n.prototype.onRemove=function(){this.getFrames().reset()},n.prototype.getFrames=function(){return this.get('frames')},n.prototype.getId=function(){return this.id},n.prototype.getName=function(){return this.get('name')},n.prototype.setName=function(t){return this.set({name:t})},n.prototype.getAllFrames=function(){return this.getFrames().models||[]},n.prototype.getMainFrame=function(){return this.getFrames().at(0)},n.prototype.getMainComponent=function(){var t=this.getMainFrame();return null==t?void 0:t.getComponent()},n.prototype.toJSON=function(e){void 0===e&&(e={});var n=u.Hn.prototype.toJSON.call(this,e),o=(0,t.result)(this,'defaults');return(0,t.forEach)(n,(function(t,e){0===e.indexOf('_')&&delete n[e]})),(0,t.forEach)(o,(function(t,e){n[e]===t&&delete n[e]})),n},n}(u.Hn);const ct=lt;var ut=void 0&&(void 0).__extends||function(){var t=function(e,n){return t=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])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ht=void 0&&(void 0).__assign||function(){return ht=Object.assign||function(t){for(var e,n=1,o=arguments.length;n1?new xt(e,this,{name:e,traits:i,value:n}):new _t(e,this,kt(kt({},i),{value:n}))},n.prototype.getValue=function(){var t=this.model,e=this.name;return t.get(e).map((function(t,e){return{id:e+'',value:t}}))},n.prototype.setValue=function(t){var e=this.name;this.model.set(e,t.map((function(t){return t.value})))},n.prototype.add=function(){this.setValue(Pt(Pt([],this.value,!0),[{id:this.value.length+'',value:''}],!1)),this.model.trigger("change:".concat(this.name))},n.prototype.remove=function(t){var e,n=this.value,o=null!==(e=null==n?void 0:n.findIndex((function(e){return e.id==t})))&&void 0!==e?e:-1;o>-1&&n.splice(o,1),this.setValue(n)},n}(mt);const Tt=Ct;var Et=void 0&&(void 0).__extends||function(){var t=function(e,n){return t=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])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Qt=void 0&&(void 0).__assign||function(){return Qt=Object.assign||function(t){for(var e,n=1,o=arguments.length;n").concat(n,"
")},o.prototype.templateInput=function(t){var e=this.clsField;return"
")},o.prototype.onChange=function(){console.log('traitchange'),this.target.value=this.inputValue},o.prototype.onUpdateEvent=function(t){this.inputValue=t},o.prototype.renderLabel=function(){var t=this.$el,e=this.templateLabel();t.find('[data-label]').append(e)},o.prototype.getLabel=function(){var t=this.em,n=this.name,o=null!=n?n:this.label;return t.t("traitManager.traits.labels.".concat(o))||(0,e.capitalize)(o).replace(/-/g,' ')},o.prototype.getInputEl=function(){if(!this.$input){var e=this,n=e.em,o=e.name,i=e.type,r=this.target.value,s=(0,l["default"])("")),a=n.t("traitManager.traits.attributes.".concat(o))||{};s.attr(It({placeholder:this.paceholder||r},a)),(0,t.isUndefined)(r)||s.prop('value',r),this.$input=s}return this.$input.get(0)},o.prototype.getElInput=function(){return this.elInput},o.prototype.renderField=function(){var t=this,e=t.$el,n=t.appendInput,o=t.elInput,i=e.find('[data-input]'),r=i[i.length-1];o||(this.elInput=this.getInputEl(),n?r.appendChild(this.elInput):r.insertBefore(this.elInput,r.firstChild))},o.prototype.rerender=function(){delete this.elInput,this.render()},o.prototype.render=function(){var t=this,e=t.$el,n=t.pfx,o=t.ppfx,i=t.name,r=t.type,s=t.clsLabel,a=this.hasLabel(),l="".concat(n,"trait");delete this.$input;var c="
\n ").concat(a?"
"):'',"\n
\n ").concat(this.templateInput(this.target.value),"\n
\n
");return e.empty().append(c),a&&this.renderLabel(),this.renderField(),this.el.className="".concat(l,"__wrp ").concat(l,"__wrp-").concat(i),this.setElement(this.el),this},o}(Vt);const Wt=Nt;var Xt=void 0&&(void 0).__extends||function(){var t=function(e,n){return t=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])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Lt=function(t){function e(e,n){var o=t.call(this,e,n)||this;return o.type='text',o}return Xt(e,t),e.prototype.getInputElem=function(){var t=this.input,e=this.$input;return t||e&&e.get&&e.get(0)||this.getElInput()},Object.defineProperty(e.prototype,"inputValue",{get:function(){var t,e=this.getInputElem();return null!==(t=null==e?void 0:e.value)&&void 0!==t?t:this.target.value},set:function(t){var e=this.getInputElem();e&&(e.value=t)},enumerable:!1,configurable:!0}),e}(Wt);const Yt=Lt;var zt=void 0&&(void 0).__extends||function(){var t=function(e,n){return t=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])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),qt=function(t){function e(e,n){var o=t.call(this,e)||this;o.highlightedClass='gjs-three-bg',o.config=n;var i=o,r=i.model,s=i.pfx,a=i.ppfx,l=r.get('type')||'default';return o.className="".concat(a,"layer ").concat(a,"layer__t-").concat(l," no-select ").concat(s,"two-color"),o}return zt(e,t),e.prototype.render=function(){var t=this,e=t.em;t.pfx,t.ppfx,t.model;this.$el.attr('class',this.className);var n=new Yt(e).setTarget('name',this.model,{changeProp:!0});return this.$el.append(n.render().el),this},e.prototype.events=function(){var t=this;return{click:function(){return t.trigger('onClick',t)}}},Object.defineProperty(e.prototype,"em",{get:function(){return this.config.em},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ppfx",{get:function(){return this.em.getConfig().stylePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pfx",{get:function(){return this.config.stylePrefix},enumerable:!1,configurable:!0}),e.prototype.setHighlighted=function(t){t?this.$el.addClass(this.highlightedClass):this.$el.removeClass(this.highlightedClass)},Object.defineProperty(e.prototype,"page",{get:function(){return this.model},enumerable:!1,configurable:!0}),e}(u.G7);const Ut=qt;var Bt=void 0&&(void 0).__extends||function(){var t=function(e,n){return t=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])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ft=function(t){function e(e,n){var o=t.call(this,e)||this;o.config=n||{};var i=o.config.pStylePrefix||'';o.ppfx=i;var r=o.collection;return o.listenTo(r,'reset',o.render),o.listenTo(r,'remove',o.render),o.em=o.config.em,o}return Bt(e,t),e.prototype.events=function(){var t,e=this.buttonAddId,n='click #'+this.buttonRemoveId;return(t={})['click #'+e]=this.__addPage,t[n]=this.__removePage,t},e.prototype.__getModule=function(){return this.em.Pages},Object.defineProperty(e.prototype,"buttonAddId",{get:function(){return this.ppfx+'button-add'},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"buttonRemoveId",{get:function(){return this.ppfx+'button-remove'},enumerable:!1,configurable:!0}),e.prototype.__addPage=function(){var t=this.em;this.collection.add(new ct({},{em:t})),this.render()},e.prototype.__removePage=function(){this.selectedView&&this.collection.remove(this.selectedView.model)},e.prototype.addTo=function(t){this.collection.add(t)},e.prototype.add=function(t,e){var n,o=this.config,i=new Ut({model:t},o),r=i.render().el;(null===(n=this.em.Pages.getSelected())||void 0===n?void 0:n.id)==t.id&&(i.setHighlighted(!0),this.selectedView=i),i.on('onClick',this.selectedHandler,this),e.appendChild(r)},e.prototype.selectedHandler=function(t){var e;this.em.Pages.select(t.model),null===(e=this.selectedView)||void 0===e||e.setHighlighted(!1),this.trigger('selected',t.model),this.selectedView=t,this.selectedView.setHighlighted(!0)},e.prototype.getCommandsNav=function(){var t=this.buttonAddId,e=this.buttonRemoveId;return(0,l["default"])("
\n
\n
\n
"))},e.prototype.render=function(){var t=this;this.$el.empty();var e=(0,l["default"])('
');e.className='gps-block',e.append(this.getCommandsNav());var n=document.createDocumentFragment();return this.collection.each((function(e){t.add(e,n)}),this),e.append(n),this.$el.append(e),this.setElement(this.$el),this},e}(u.G7);const Gt=Ft;const Ht={stylePrefix:'pg-',appendTo:'',optionsTarget:[{value:!1},{value:'_blank'}],custom:!1};var Kt=void 0&&(void 0).__extends||function(){var t=function(e,n){return t=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])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Jt=function(e){function n(t,n){var o=e.call(this,t,n)||this;return o.type='button',o.command=n.command,o.text=n.text,o.full=n.full,o}return Kt(n,e),n.prototype.events=function(){return{'click button':this.handleClick}},n.prototype.templateInput=function(){return''},Object.defineProperty(n.prototype,"inputValue",{get:function(){},set:function(t){this.handleClick()},enumerable:!1,configurable:!0}),n.prototype.handleClick=function(){var e=this,n=e.model,o=e.command,i=e.em;o&&((0,t.isString)(o)?i.Commands.run(o):o(i.Editor,n))},n.prototype.getInputEl=function(){var t=this,e=t.ppfx,n=t.text,o=t.full,i="".concat(e,"btn");return(0,l["default"])("")).get(0)},n}(Wt);const te=Jt;var ee=void 0&&(void 0).__extends||function(){var t=function(e,n){return t=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])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ne=function(t){function e(e,n){var o=t.call(this,e,n)||this;return o.type='checkbox',o.appendInput=!1,o}return ee(e,t),e.prototype.templateInput=function(){var t=this.ppfx,e=this.clsField;return"")},e.prototype.getInputElem=function(){var t=this.input,e=this.$input;return t||e&&e.get&&e.get(0)||this.getElInput()},Object.defineProperty(e.prototype,"inputValue",{get:function(){var t,e=this.getInputElem();return null!==(t=null==e?void 0:e.checked)&&void 0!==t?t:this.target.value},set:function(t){console.log('Text input value '+t);var e=this.getInputElem();e&&(e.checked=!!t)},enumerable:!1,configurable:!0}),e}(Wt);const oe=ne;function ie(t,n){if((0,e.hasWin)()){var o={beforeShow:C,move:C,change:C,show:C,hide:C,color:!1,flat:!1,showInput:!1,allowEmpty:!1,showButtons:!0,clickoutFiresChange:!0,showInitial:!1,showPalette:!1,showPaletteOnly:!1,hideAfterPaletteSelect:!1,togglePaletteOnly:!1,showSelectionPalette:!0,localStorageKey:!1,appendTo:'body',maxSelectionSize:7,cancelText:'cancel',chooseText:'choose',togglePaletteMoreText:'more',togglePaletteLessText:'less',clearText:'Clear Color Selection',noColorSelectedText:'No Color Selected',preferredFormat:!1,className:'',containerClassName:'',replacerClassName:'',showAlpha:!1,theme:'sp-light',palette:[['#ffffff','#000000','#ff0000','#ff8000','#ffff00','#008000','#0000ff','#4b0082','#9400d3']],selectionPalette:[],disabled:!1,offset:null},i=[],r=!!/msie/i.exec(window.navigator.userAgent),s=function(){function t(t,e){return!!~(''+t).indexOf(e)}var e=document.createElement('div').style;return e.cssText='background-color:rgba(0,0,0,.5)',t(e.backgroundColor,'rgba')||t(e.backgroundColor,'hsla')}(),a=["
","
","
",'
'].join(''),l=function(){var t='';if(r)for(var e=1;e<=6;e++)t+="
";return["
","
","
","
","",'
','
',"
","
","
","
","
","
","
","
",'
','
','
',"
",'
',"
","
",t,'
','
',"
",'
',"
","",'
',"
","
","","",'
','
','
'].join('')}(),c='spectrum.id';t.fn.spectrum=function(e,n){if('string'==typeof e){var o=this,r=Array.prototype.slice.call(arguments,1);return this.each((function(){var n=i[t(this).data(c)];if(n){var s=n[e];if(!s)throw new Error("Spectrum: no such method: '"+e+"'");'get'==e?o=n.get():'container'==e?o=n.container:'option'==e?o=n.option.apply(n,r):'destroy'==e?(n.destroy(),t(this).removeData(c)):s.apply(n,r)}})),o}return this.spectrum('destroy').each((function(){var n=P(this,t.extend({},e,t(this).data()));t(this).data(c,n.id)}))},t.fn.spectrum.load=!0,t.fn.spectrum.loadOpts={},t.fn.spectrum.draggable=Q,t.fn.spectrum.defaults=o,t.fn.spectrum.inputTypeColorSupport=function e(){if(void 0===e._cachedResult){var n=t("")[0];e._cachedResult='color'===n.type&&''!==n.value}return e._cachedResult},t.spectrum={},t.spectrum.localization={},t.spectrum.palettes={},t.fn.spectrum.processNativeColorInputs=function(){var e=t('input[type=color]');e.length&&!A()&&e.spectrum({preferredFormat:'hex6'})};var u=/^[\s,#]+/,h=/\s+$/,p=0,d=Math,f=d.round,g=d.min,m=d.max,v=d.random,y=function(t,e){if(e=e||{},(t=t||'')instanceof y)return t;if(!(this instanceof y))return new y(t,e);var n=function(t){var e={r:0,g:0,b:0},n=1,o=!1,i=!1;'string'==typeof t&&(t=function(t){t=t.replace(u,'').replace(h,'').toLowerCase();var e,n=!1;if(w[t])t=w[t],n=!0;else if('transparent'==t)return{r:0,g:0,b:0,a:0,format:'name'};if(e=S.rgb.exec(t))return{r:e[1],g:e[2],b:e[3]};if(e=S.rgba.exec(t))return{r:e[1],g:e[2],b:e[3],a:e[4]};if(e=S.hsl.exec(t))return{h:e[1],s:e[2],l:e[3]};if(e=S.hsla.exec(t))return{h:e[1],s:e[2],l:e[3],a:e[4]};if(e=S.hsv.exec(t))return{h:e[1],s:e[2],v:e[3]};if(e=S.hsva.exec(t))return{h:e[1],s:e[2],v:e[3],a:e[4]};if(e=S.hex8.exec(t))return{a:et(e[1]),r:K(e[2]),g:K(e[3]),b:K(e[4]),format:n?'name':'hex8'};if(e=S.hex6.exec(t))return{r:K(e[1]),g:K(e[2]),b:K(e[3]),format:n?'name':'hex'};if(e=S.hex3.exec(t))return{r:K(e[1]+''+e[1]),g:K(e[2]+''+e[2]),b:K(e[3]+''+e[3]),format:n?'name':'hex'};return!1}(t));'object'==typeof t&&(t.hasOwnProperty('r')&&t.hasOwnProperty('g')&&t.hasOwnProperty('b')?(r=t.r,s=t.g,a=t.b,e={r:255*G(r,255),g:255*G(s,255),b:255*G(a,255)},o=!0,i='%'===String(t.r).substr(-1)?'prgb':'rgb'):t.hasOwnProperty('h')&&t.hasOwnProperty('s')&&t.hasOwnProperty('v')?(t.s=tt(t.s),t.v=tt(t.v),e=function(t,e,n){t=6*G(t,360),e=G(e,100),n=G(n,100);var o=d.floor(t),i=t-o,r=n*(1-e),s=n*(1-i*e),a=n*(1-(1-i)*e),l=o%6,c=[n,s,r,r,a,n][l],u=[a,n,n,s,r,r][l],h=[r,r,a,n,n,s][l];return{r:255*c,g:255*u,b:255*h}}(t.h,t.s,t.v),o=!0,i='hsv'):t.hasOwnProperty('h')&&t.hasOwnProperty('s')&&t.hasOwnProperty('l')&&(t.s=tt(t.s),t.l=tt(t.l),e=function(t,e,n){var o,i,r;function s(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}if(t=G(t,360),e=G(e,100),n=G(n,100),0===e)o=i=r=n;else{var a=n<.5?n*(1+e):n+e-n*e,l=2*n-a;o=s(l,a,t+1/3),i=s(l,a,t),r=s(l,a,t-1/3)}return{r:255*o,g:255*i,b:255*r}}(t.h,t.s,t.l),o=!0,i='hsl'),t.hasOwnProperty('a')&&(n=t.a));var r,s,a;return n=F(n),{ok:o,format:t.format||i,r:g(255,m(e.r,0)),g:g(255,m(e.g,0)),b:g(255,m(e.b,0)),a:n}}(t);this._originalInput=t,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=f(100*this._a)/100,this._format=e.format||n.format,this._gradientType=e.gradientType,this._r<1&&(this._r=f(this._r)),this._g<1&&(this._g=f(this._g)),this._b<1&&(this._b=f(this._b)),this._ok=n.ok,this._tc_id=p++};y.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 t=this.toRgb();return(299*t.r+587*t.g+114*t.b)/1e3},setAlpha:function(t){return this._a=F(t),this._roundA=f(100*this._a)/100,this},toHsv:function(){var t=j(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=j(this._r,this._g,this._b),e=f(360*t.h),n=f(100*t.s),o=f(100*t.v);return 1==this._a?'hsv('+e+', '+n+'%, '+o+'%)':'hsva('+e+', '+n+'%, '+o+'%, '+this._roundA+')'},toHsl:function(){var t=$(this._r,this._g,this._b);return{h:360*t.h,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=$(this._r,this._g,this._b),e=f(360*t.h),n=f(100*t.s),o=f(100*t.l);return 1==this._a?'hsl('+e+', '+n+'%, '+o+'%)':'hsla('+e+', '+n+'%, '+o+'%, '+this._roundA+')'},toHex:function(t){return R(this._r,this._g,this._b,t)},toHexString:function(t){return'#'+this.toHex(t)},toHex8:function(){return Z(this._r,this._g,this._b,this._a)},toHex8String:function(){return'#'+this.toHex8()},toRgb:function(){return{r:f(this._r),g:f(this._g),b:f(this._b),a:this._a}},toRgbString:function(){return 1==this._a?'rgb('+f(this._r)+', '+f(this._g)+', '+f(this._b)+')':'rgba('+f(this._r)+', '+f(this._g)+', '+f(this._b)+', '+this._roundA+')'},toPercentageRgb:function(){return{r:f(100*G(this._r,255))+'%',g:f(100*G(this._g,255))+'%',b:f(100*G(this._b,255))+'%',a:this._a}},toPercentageRgbString:function(){return 1==this._a?'rgb('+f(100*G(this._r,255))+'%, '+f(100*G(this._g,255))+'%, '+f(100*G(this._b,255))+'%)':'rgba('+f(100*G(this._r,255))+'%, '+f(100*G(this._g,255))+'%, '+f(100*G(this._b,255))+'%, '+this._roundA+')'},toName:function(){return 0===this._a?'transparent':!(this._a<1)&&(x[R(this._r,this._g,this._b,!0)]||!1)},toFilter:function(t){var e='#'+Z(this._r,this._g,this._b,this._a),n=e,o=this._gradientType?'GradientType = 1, ':'';t&&(n=y(t).toHex8String());return'progid:DXImageTransform.Microsoft.gradient('+o+'startColorstr='+e+',endColorstr='+n+')'},toString:function(t){var e=!!t;t=t||this._format;var n=!1,o=this._a<1&&this._a>=0;return e||!o||'hex'!==t&&'hex6'!==t&&'hex3'!==t&&'name'!==t?('rgb'===t&&(n=this.toRgbString()),'prgb'===t&&(n=this.toPercentageRgbString()),'hex'!==t&&'hex6'!==t||(n=this.toHexString()),'hex3'===t&&(n=this.toHexString(!0)),'hex8'===t&&(n=this.toHex8String()),'name'===t&&(n=this.toName()),'hsl'===t&&(n=this.toHslString()),'hsv'===t&&(n=this.toHsvString()),n||this.toHexString()):'name'===t&&0===this._a?this.toName():this.toRgbString()},_applyModification:function(t,e){var n=t.apply(null,[this].concat([].slice.call(e)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(I,arguments)},brighten:function(){return this._applyModification(N,arguments)},darken:function(){return this._applyModification(W,arguments)},desaturate:function(){return this._applyModification(M,arguments)},saturate:function(){return this._applyModification(V,arguments)},greyscale:function(){return this._applyModification(D,arguments)},spin:function(){return this._applyModification(X,arguments)},_applyCombination:function(t,e){return t.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination(U,arguments)},complement:function(){return this._applyCombination(L,arguments)},monochromatic:function(){return this._applyCombination(B,arguments)},splitcomplement:function(){return this._applyCombination(q,arguments)},triad:function(){return this._applyCombination(Y,arguments)},tetrad:function(){return this._applyCombination(z,arguments)}},y.fromRatio=function(t,e){if('object'==typeof t){var n={};for(var o in t)t.hasOwnProperty(o)&&(n[o]='a'===o?t[o]:tt(t[o]));t=n}return y(t,e)},y.equals=function(t,e){return!(!t||!e)&&y(t).toRgbString()==y(e).toRgbString()},y.random=function(){return y.fromRatio({r:v(),g:v(),b:v()})},y.mix=function(t,e,n){n=0===n?0:n||50;var o,i=y(t).toRgb(),r=y(e).toRgb(),s=n/100,a=2*s-1,l=r.a-i.a,c=1-(o=((o=a*l==-1?a:(a+l)/(1+a*l))+1)/2),u={r:r.r*o+i.r*c,g:r.g*o+i.g*c,b:r.b*o+i.b*c,a:r.a*s+i.a*(1-s)};return y(u)},y.readability=function(t,e){var n=y(t),o=y(e),i=n.toRgb(),r=o.toRgb(),s=n.getBrightness(),a=o.getBrightness(),l=Math.max(i.r,r.r)-Math.min(i.r,r.r)+Math.max(i.g,r.g)-Math.min(i.g,r.g)+Math.max(i.b,r.b)-Math.min(i.b,r.b);return{brightness:Math.abs(s-a),color:l}},y.isReadable=function(t,e){var n=y.readability(t,e);return n.brightness>125&&n.color>500},y.mostReadable=function(t,e){for(var n=null,o=0,i=!1,r=0;r125&&s.color>500,l=3*(s.brightness/125)+s.color/500;(a&&!i||a&&i&&l>o||!a&&!i&&l>o)&&(i=a,o=l,n=y(e[r]))}return n};var _,O,b,w=y.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'},x=y.hexNames=function(t){var e={};for(var n in t)t.hasOwnProperty(n)&&(e[t[n]]=n);return e}(w),S=(O='[\\s|\\(]+('+(_='(?:'+'[-\\+]?\\d*\\.\\d+%?'+')|(?:'+'[-\\+]?\\d+%?'+')')+')[,|\\s]+('+_+')[,|\\s]+('+_+')\\s*\\)?',b='[\\s|\\(]+('+_+')[,|\\s]+('+_+')[,|\\s]+('+_+')[,|\\s]+('+_+')\\s*\\)?',{rgb:new RegExp('rgb'+O),rgba:new RegExp('rgba'+b),hsl:new RegExp('hsl'+O),hsla:new RegExp('hsla'+b),hsv:new RegExp('hsv'+O),hsva:new RegExp('hsva'+b),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=y,t((function(){t.fn.spectrum.load&&t.fn.spectrum.processNativeColorInputs()}))}function k(e,n,o,i){for(var r=[],a=0;a')}else{r.push(t('
').append(t('').attr('title',i.noColorSelectedText)).html())}}return"
"+r.join('')+'
'}function P(e,c){var u,h,p,d,f=function(e,n){var i=t.extend({},o,e);return i.callbacks={move:E(i.move,n),change:E(i.change,n),show:E(i.show,n),hide:E(i.hide,n),beforeShow:E(i.beforeShow,n)},i}(c,e),g=f.flat,m=f.showSelectionPalette,v=f.localStorageKey,_=f.theme,O=f.callbacks,b=(u=zt,h=10,function(){var t=this,e=arguments,n=function(){d=null,u.apply(t,e)};p&&clearTimeout(d),!p&&d||(d=setTimeout(n,h))}),w=!1,x=!1,S=!0,P=0,C=0,$=0,j=0,R=0,Z=0,M=0,V=0,D=0,I=0,N=1,W=[],X=[],L={},Y=f.selectionPalette.slice(0),z=f.maxSelectionSize,q='sp-dragging',U=null,B=e.ownerDocument,F=(B.body,t(e)),G=!1,H=t(l,B).addClass(_),K=H.find('.sp-picker-container'),J=H.find('.sp-color'),tt=H.find('.sp-dragger'),et=H.find('.sp-hue'),nt=H.find('.sp-slider'),ot=H.find('.sp-alpha-inner'),it=H.find('.sp-alpha'),rt=H.find('.sp-alpha-handle'),st=H.find('.sp-input'),at=H.find('.sp-palette'),lt=H.find('.sp-initial'),ct=H.find('.sp-cancel'),ut=H.find('.sp-clear'),ht=H.find('.sp-choose'),pt=H.find('.sp-palette-toggle'),dt=F.is('input'),ft=dt&&'color'===F.attr('type')&&A(),gt=dt&&!g,mt=gt?t(a).addClass(_).addClass(f.className).addClass(f.replacerClassName):t([]),vt=gt?mt:F,yt=mt.find('.sp-preview-inner'),_t=f.color||dt&&F.val(),Ot=!1,bt=f.preferredFormat,wt=!f.showButtons||f.clickoutFiresChange,xt=!_t,St=f.allowEmpty&&!ft;function kt(){if(f.showPaletteOnly&&(f.showPalette=!0),pt.text(f.showPaletteOnly?f.togglePaletteMoreText:f.togglePaletteLessText),f.palette){W=f.palette.slice(0),X=t.isArray(W[0])?W:[W],L={};for(var e=0;e1&&(delete window.localStorage[v],t.each(e,(function(t,e){Ct(e)})))}catch(t){}try{Y=window.localStorage[v].split(';')}catch(t){}}}function Ct(e){if(m){var n=y(e).toRgbString();if(!L[n]&&-1===t.inArray(n,Y))for(Y.push(n);Y.length>z;)Y.shift();if(v&&window.localStorage)try{window.localStorage[v]=Y.join(';')}catch(t){}}}function Tt(){var e=Nt(),n=t.map(X,(function(t,n){return k(t,e,'sp-palette-row sp-palette-row-'+n,f)}));Pt(),Y&&n.push(k(function(){var t=[];if(f.showPalette)for(var e=0;ed&&d>i?Math.abs(g.left+i-d):0),g.top-=Math.min(g.top,g.top+r>f&&f>r?Math.abs(r+s-o):o),g}(H,vt))),Lt(),f.showPalette&&Tt(),F.trigger('reflow.spectrum'))}function qt(){Vt(),G=!0,F.attr('disabled',!0),vt.addClass('sp-disabled')}!function(){if(r&&H.find('*:not(input)').attr('unselectable','on'),kt(),gt&&F.after(mt).hide(),St||ut.hide(),g)F.after(H).hide();else{var e='parent'===f.appendTo?F.parent():t(f.appendTo);1!==e.length&&(e=t('body')),e.append(H)}function n(e){return e.data&&e.data.ignore?(It(t(e.target).closest('.sp-thumb-el').data('color')),Wt()):(It(t(e.target).closest('.sp-thumb-el').data('color')),Wt(),f.hideAfterPaletteSelect&&(Yt(!0),Vt())),!1}Pt(),vt.bind('click.spectrum touchstart.spectrum',(function(e){G||jt(),e.stopPropagation(),t(e.target).is('input')||e.preventDefault()})),(F.is(':disabled')||!0===f.disabled)&&qt(),H.click(T),st.change($t),st.bind('paste',(function(){setTimeout($t,1)})),st.keydown((function(t){13==t.keyCode&&$t()})),ct.text(f.cancelText),ct.bind('click.spectrum',(function(t){t.stopPropagation(),t.preventDefault(),Dt(),Vt()})),ut.attr('title',f.clearText),ut.bind('click.spectrum',(function(t){t.stopPropagation(),t.preventDefault(),xt=!0,Wt(),g&&Yt(!0)})),ht.text(f.chooseText),ht.bind('click.spectrum',(function(t){t.stopPropagation(),t.preventDefault(),r&&st.is(':focus')&&st.trigger('change'),st.hasClass('sp-validation-error')||(Yt(!0),Vt())})),pt.text(f.showPaletteOnly?f.togglePaletteMoreText:f.togglePaletteLessText),pt.bind('click.spectrum',(function(t){t.stopPropagation(),t.preventDefault(),f.showPaletteOnly=!f.showPaletteOnly,f.showPaletteOnly||g||H.css('left','-='+(K.outerWidth(!0)+5)),kt()})),Q(it,(function(t,e,n){N=t/R,xt=!1,n.shiftKey&&(N=Math.round(10*N)/10),Wt()}),Qt,At),Q(et,(function(t,e){V=parseFloat(e/j),xt=!1,f.showAlpha||(N=1),Wt()}),Qt,At),Q(J,(function(t,e,n){if(n.shiftKey){if(!U){var o=D*P,i=C-I*C,r=Math.abs(t-o)>Math.abs(e-i);U=r?'x':'y'}}else U=null;var s=!U||'y'===U;(!U||'x'===U)&&(D=parseFloat(t/P)),s&&(I=parseFloat((C-e)/C)),xt=!1,f.showAlpha||(N=1),Wt()}),Qt,At),_t?(It(_t),Xt(),bt=f.preferredFormat||y(_t).getFormat(),Ct(_t)):Xt(),g&&Rt();var o=r?'mousedown.spectrum':'click.spectrum touchstart.spectrum';at.delegate('.sp-thumb-el',o,n),lt.delegate('.sp-thumb-el:nth-child(1)',o,{ignore:!0},n)}();var Ut={show:Rt,hide:Vt,toggle:jt,reflow:zt,option:function(e,o){return e===n?t.extend({},f):o===n?f[e]:(f[e]=o,'preferredFormat'===e&&(bt=f.preferredFormat),void kt())},enable:function(){G=!1,F.attr('disabled',!1),vt.removeClass('sp-disabled')},disable:qt,offset:function(t){f.offset=t,zt()},set:function(t){It(t),Yt()},get:Nt,destroy:function(){F.show(),vt.unbind('click.spectrum touchstart.spectrum'),H.remove(),mt.remove(),i[Ut.id]=null},container:H};return Ut.id=i.push(Ut)-1,Ut}function C(){}function T(t){t.stopPropagation()}function E(t,e){var n=Array.prototype.slice,o=n.call(arguments,2);return function(){return t.apply(e,o.concat(n.call(arguments)))}}function Q(e,n,o,i){n=n||function(){},o=o||function(){},i=i||function(){};var s=document,a=!1,l={},c=0,u=0,h='ontouchstart'in window,p={};function d(t){t.stopPropagation&&t.stopPropagation(),t.preventDefault&&t.preventDefault(),t.returnValue=!1}function f(t){if(a){if(r&&s.documentMode<9&&!t.button)return g();var o=t&&t.touches&&t.touches[0],i=o&&o.pageX||t.pageX,p=o&&o.pageY||t.pageY,f=Math.max(0,Math.min(i-l.left,u)),m=Math.max(0,Math.min(p-l.top,c));h&&d(t),n.apply(e,[f,m,t])}}function g(){a&&(t(s).unbind(p),t(s.body).removeClass('sp-dragging'),setTimeout((function(){i.apply(e,arguments)}),0)),a=!1}p['selectstart']=d,p['dragstart']=d,p['touchmove mousemove']=f,p['touchend mouseup']=g,t(e).bind('touchstart mousedown',(function(n){(n.which?3==n.which:2==n.button)||a||!1!==o.apply(e,arguments)&&(a=!0,c=t(e).height(),u=t(e).width(),l=t(e).offset(),t(s).bind(p),t(s.body).addClass('sp-dragging'),f(n),d(n))}))}function A(){return t.fn.spectrum.inputTypeColorSupport()}function $(t,e,n){t=G(t,255),e=G(e,255),n=G(n,255);var o,i,r=m(t,e,n),s=g(t,e,n),a=(r+s)/2;if(r==s)o=i=0;else{var l=r-s;switch(i=a>.5?l/(2-r-s):l/(r+s),r){case t:o=(e-n)/l+(e>1)+720)%360;--e;)o.h=(o.h+i)%360,r.push(y(o));return r}function B(t,e){e=e||6;for(var n=y(t).toHsv(),o=n.h,i=n.s,r=n.v,s=[],a=1/e;e--;)s.push(y({h:o,s:i,v:r})),r=(r+a)%1;return s}function F(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function G(t,e){(function(t){return'string'==typeof t&&-1!=t.indexOf('.')&&1===parseFloat(t)})(t)&&(t='100%');var n=function(t){return'string'==typeof t&&-1!=t.indexOf('%')}(t);return t=g(e,m(0,parseFloat(t))),n&&(t=parseInt(t*e,10)/100),d.abs(t-e)<1e-6?1:t%e/parseFloat(e)}function H(t){return g(1,m(0,t))}function K(t){return parseInt(t,16)}function J(t){return 1==t.length?'0'+t:''+t}function tt(t){return t<=1&&(t=100*t+'%'),t}function et(t){return K(t)/255}}var re=void 0&&(void 0).__extends||function(){var t=function(e,n){return t=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])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),se=void 0&&(void 0).__assign||function(){return se=Object.assign||function(t){for(var e,n=1,o=arguments.length;n"));r.find(".".concat(this.holderClass())).append(a);var c=this.getColorEl();return r.find('[data-colorp-c]').append(c),a.val(t),this.$input=a,r.get(0)}return this.input},n.prototype.template=function(){var t=this.ppfx;return"\n
\n
\n
\n
\n
\n
\n ")},n.prototype.inputClass=function(){var t=this.ppfx;return"".concat(t,"field ").concat(t,"field-color")},n.prototype.holderClass=function(){return"".concat(this.ppfx,"input-holder")},n.prototype.remove=function(){return e.prototype.remove.call(this),this.colorEl.spectrum('destroy'),this},n.prototype.setValue=function(e,n){void 0===n&&(n={});var o=this.model,i=(0,t.isUndefined)(n.def)?o.get('defaults'):n.def,r=(0,t.isUndefined)(e)?(0,t.isUndefined)(i)?'':i:e,s=this.getInputEl(),a=this.getColorEl(),l='none'!=r?r:'';s.value=r,a.get(0).style.backgroundColor=l,(n.fromTarget||n.fromInput&&!n.avoidStore)&&(a.spectrum('set',l),this.noneColor='none'==r,this.movedColor=l)},n.prototype.getColorEl=function(){var t=this;if(!this.colorEl){var e=this.em,n=this.colorPicker,o=this.ppfx,i=(0,l["default"])("
")),r=i.get(0).style,s=e&&e.config?e.config.el:'',a=e&&e.getConfig&&e.getConfig().colorPicker||{};this.movedColor='';var c,u=!1,h=function(e){t.inputValue=e};i.spectrum(se(se(se({color:this.target.value||!1,containerClassName:"".concat(o,"one-bg ").concat(o,"two-color"),appendTo:s||'body',maxSelectionSize:8,showPalette:!0,showAlpha:!0,chooseText:'Ok',cancelText:'⨯',palette:[]},a),n||{}),{move:function(e){var n=ae(e);t.movedColor=n,r.backgroundColor=n,h(n)},change:function(e){u=!0;var n=ae(e);r.backgroundColor=n,h(n),t.noneColor=!1},show:function(e){u=!1,t.movedColor='',c=ae(e)},hide:function(){!u&&c&&(t.noneColor&&(c=''),r.backgroundColor=c,i.spectrum('set',c),h(c))}})),this.colorEl=i}return this.colorEl},n}(Wt);const ce=le;var ue=n(968),he=void 0&&(void 0).__extends||function(){var t=function(e,n){return t=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])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),pe=function(e){function n(n,o){var i,r,s=e.call(this,n,o)||this;return s.type='number',(0,t.bindAll)(s,'moveIncrement','upIncrement'),s.step=null!==(i=null==o?void 0:o.step)&&void 0!==i?i:1,s.min=null==o?void 0:o.min,s.max=null==o?void 0:o.max,s.fixedValues=null!==(r=null==o?void 0:o.fixedValues)&&void 0!==r?r:[],s}return he(n,e),n.prototype.events=function(){return{'change input':'handleChange','change select':'handleUnitChange','click [data-arrow-up]':'upArrowClick','click [data-arrow-down]':'downArrowClick','mousedown [data-arrows]':'downIncrement',keydown:'handleKeyDown'}},Object.defineProperty(n.prototype,"inputNumberValue",{get:function(){var t,e=null===(t=this.$input)||void 0===t?void 0:t.get(0);return(null==e?void 0:e.value)?parseFloat(e.value):this.target.value},set:function(t){var e,n=null===(e=this.$input)||void 0===e?void 0:e.get(0);n&&(n.value=t)},enumerable:!1,configurable:!0}),n.prototype.getInputEl=function(){var t=this,e=(t.ppfx,t.target),n=t.type,o=t.paceholder,i=this.target.value;console.log(this.$el.get(0));var r=(0,l["default"])(document.createElement('div'));r.addClass(this.inputClass()),r.html(this.template());var s=o||e.value,a=(0,l["default"])(""));return r.find(".".concat("".concat(this.ppfx,"input-holder"))).append(a),console.log(r.get(0)),a.val(i),console.log(this.$el.get(0)),this.$input=a,r.get(0)},n.prototype.template=function(){var t=this.ppfx;return"\n \n \n
\n
\n
\n
\n ")},n.prototype.inputClass=function(){var t=this.ppfx;return"".concat(t,"field-int")||0},n.prototype.setValue=function(t){var e=this.validateInputValue(t,{deepCheck:1});this.inputNumberValue=e,console.log('SetValue'+this.inputValue),this.target.value=this.inputValue},n.prototype.handleChange=function(t){t.stopPropagation(),this.setValue(this.inputNumberValue)},n.prototype.handleKeyDown=function(t){'ArrowUp'===t.key&&(t.preventDefault(),this.upArrowClick()),'ArrowDown'===t.key&&(t.preventDefault(),this.downArrowClick())},n.prototype.upArrowClick=function(){var t=this.step,e=this.inputNumberValue;this.setValue(this.normalizeValue(e+t))},n.prototype.downArrowClick=function(){var t=this.step,e=this.inputNumberValue;this.setValue(this.normalizeValue(e-t))},n.prototype.downIncrement=function(t){t.preventDefault(),console.log('downIncrement'),this.moved=!1,this.inputNumberValue=this.inputNumberValue||0;var e=this.normalizeValue(this.inputNumberValue);this.setValue(e),this.current={y:t.pageY,val:e},(0,ue.on)(document,'mousemove',this.moveIncrement),(0,ue.on)(document,'mouseup',this.upIncrement)},n.prototype.moveIncrement=function(t){this.moved=!0,console.log('moveIncrement');var e=this.step,n=this.current,o=this.normalizeValue(n.val+(n.y-t.pageY)*e),i=this.validateInputValue(o);return this.prValue=i,this.inputNumberValue=i,!1},n.prototype.upIncrement=function(){if(console.log('upIncrement'),(0,ue.S1)(document,'mouseup',this.upIncrement),(0,ue.S1)(document,'mousemove',this.moveIncrement),this.prValue&&this.moved){var t=this.prValue;this.setValue(t)}},n.prototype.normalizeValue=function(t,e){void 0===e&&(e=0);var n=this.step,o=0;if(isNaN(t))return e;if(t=parseFloat(t),Math.floor(t)!==t){var i=n.toString().split('.')[1];o=i?i.length:0}return o?parseFloat(t.toFixed(o)):t},n.prototype.validateInputValue=function(e,n){void 0===n&&(n={});var o=this,i=o.min,r=o.max,s=o.fixedValues,a=n||{},l='',c=(0,t.isUndefined)(e)?l:e;if(a.deepCheck&&c){var u=new RegExp('^'+s.join('|'),'g');s.length&&u.test(c)?c=c.match(u)[0]:(c+='',c=parseFloat(c.replace(',','.')),c=isNaN(c)?l:c)}return(0,t.isUndefined)(r)||(c=c>r?r:c),(0,t.isUndefined)(i)||(c=c=0&&(i=e),n&&(n.value=i)},enumerable:!1,configurable:!0}),n.prototype.getInputEl=function(){var t=e.prototype.getInputEl.call(this);this.unitEl=void 0;var n=this.getUnitEl();return n&&(0,l["default"])(t).find(".".concat(this.ppfx,"field-units")).get(0).appendChild(n),t},n.prototype.handleUnitChange=function(t){t.stopPropagation(),console.log('Unit changed'),this.target.value=this.inputValue},n.prototype.getUnitEl=function(){var t=this;if(!this.unitEl){var e=this.units;if(e.length){var n=[''];e.forEach((function(e){var o=e==t.inputUnitValue?'selected':'';n.push(""))}));var o=document.createElement('div');o.innerHTML=""),this.unitEl=o.firstChild}}return this.unitEl},n}(pe),ge=void 0&&(void 0).__extends||function(){var t=function(e,n){return t=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])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),me=function(e){function n(t,n){var o=e.call(this,t,n)||this;return o.type='select',o.options=n.options,o}return ge(n,e),n.prototype.getInputElem=function(){var t=this.input,e=this.$input;return t||e&&e.get&&e.get(0)||this.getElInput()},Object.defineProperty(n.prototype,"inputValue",{get:function(){var t,e=this.getInputElem();return null!==(t=null==e?void 0:e.value)&&void 0!==t?t:this.target.value},set:function(t){console.log('Text input value '+t);var e=this.getInputElem();e&&(e.value=t)},enumerable:!1,configurable:!0}),n.prototype.templateInput=function(){var t=this.ppfx,e=this.clsField;return"
\n
\n
\n
\n
\n
")},n.prototype.getInputEl=function(){if(!this.$input){var e=this,n=(e.name,e.options),o=e.em,i=[],r='',this.$input=(0,l["default"])(r);var s=this.target.value,a=i.indexOf(s)>=0?s:'';!(0,t.isUndefined)(a)&&this.$input.val(a)}return this.$input.get(0)},n}(Wt);const ve=me;var ye=void 0&&(void 0).__extends||function(){var t=function(e,n){return t=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])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),_e=function(t){function e(e,n){var o=t.call(this,{model:e})||this;o.highlightedClass='gjs-three-bg',o.config=n;var i=o,r=i.pfx,s=i.ppfx;return o.className="".concat(s,"layer no-select ").concat(r,"two-color"),o}return ye(e,t),e.prototype.render=function(){var t=this.em;if(this.$el.empty(),this.$el.attr('class',this.className),this.model){var e=new de(t,{min:0});e.setTarget('name',this.model,{changeProp:!0}),this.$el.append(e.render().el);var n=new fe(t,{min:0,units:['px','%']});n.setTarget('name',this.model,{changeProp:!0}),this.$el.append(n.render().el),this.$el.append(new ve(t,{options:['px','%']}).setTarget('name',this.model,{changeProp:!0}).render().el),this.$el.append(new oe(t).setTarget('name',this.model,{changeProp:!0}).render().el),this.$el.append(new te(t,{text:'Ok',command:function(){console.log('click')},full:!0}).setTarget('name',this.model,{changeProp:!0}).render().el),this.$el.append(new ce(t,{}).setTarget('name',this.model,{changeProp:!0}).render().el);var o=new Yt(t,{}).setTarget('route',this.model,{changeProp:!0});this.$el.append(o.render().el)}return this},e.prototype.events=function(){var t=this;return{click:function(){return t.trigger('onClick',t)}}},e.prototype.changePage=function(t){this.model=t,this.render()},Object.defineProperty(e.prototype,"em",{get:function(){return this.config.em},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ppfx",{get:function(){return this.em.getConfig().stylePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pfx",{get:function(){return this.config.stylePrefix},enumerable:!1,configurable:!0}),e.prototype.setHighlighted=function(t){t?this.$el.addClass(this.highlightedClass):this.$el.removeClass(this.highlightedClass)},Object.defineProperty(e.prototype,"page",{get:function(){return this.model},enumerable:!1,configurable:!0}),e}(u.G7);const Oe=_e;var be=void 0&&(void 0).__extends||function(){var t=function(e,n){return t=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])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),we=void 0&&(void 0).__assign||function(){return we=Object.assign||function(t){for(var e,n=1,o=arguments.length;n';if(n.stopDefault(),n.inAbsoluteMode()){var u=n.Components.getWrapper(),h=u.append({})[0],p=n.Commands.run('core:component-drag',{event:t,guidesInfo:1,center:1,target:h,onEnd:function(t,n,r){var s;if(!r.cancelled){s=u.append(c)[0];var a=o.getOffset(),l=h.getStyle(),p=l.top,d=l.left,f=l.position,g=(0,ue.GX)(t.target),m=parseInt("".concat(parseFloat(d)+g.x-a.left),10),v=parseInt("".concat(parseFloat(p)+g.y-a.top),10);s.addStyle({left:m+'px',top:v+'px',position:f})}e.handleDragEnd(s,i),h.remove()}});s=function(e){return p.stop(t,{cancel:e})},a=function(t){return c=t}}else{var d=new l.Sorter(an({em:n,wmargin:1,nested:1,canvasRelative:1,direction:'a',container:this.el,placer:o.getPlacerEl(),containerSel:'*',itemSel:'*',pfx:'gjs-',onEndMove:function(t){return e.handleDragEnd(t,i)},document:this.el.ownerDocument},this.sortOpts||{}));d.setDropContent(c),d.startSort(),this.sorter=d,s=function(t){t&&(d.moved=!1),d.endMove()},a=function(t){return d.setDropContent(t)}}this.dragStop=s,this.dragContent=a,n.trigger('canvas:dragenter',i,c)}},e.prototype.handleDragEnd=function(t,e){var n=this.em;this.over=!1,t&&(n.set('dragResult',t),n.trigger('canvas:drop',e,t)),n.runDefault({preserveSelected:1})},e.prototype.handleDragOver=function(t){t.preventDefault(),this.em.trigger('canvas:dragover',t)},e.prototype.handleDrop=function(t){t.preventDefault();var e=this.dragContent,n=t.dataTransfer,o=this.getContentByData(n).content;t.target.style.border='',o&&e&&e(o),this.endDrop(!o,t)},e.prototype.getContentByData=function(e){var n=this.em,o=e&&e.types,i=e&&e.files||[],r=n.get('dragContent'),s=e&&e.getData('text');if(i.length){s=[];for(var a=0;a=0)s=e&&e.getData('text/html').replace(/<\/?meta[^>]*>/g,'');else if((0,t.indexOf)(o,'text/uri-list')>=0)s={type:'link',attributes:{href:s},content:s};else if((0,t.indexOf)(o,'text/json')>=0){var u=e&&e.getData('text/json');u&&(s=JSON.parse(u))}else 1===o.length&&'text/plain'===o[0]&&(s="
".concat(s,"
"));var h={content:s};return n.trigger('canvas:dragdata',e,h),h},e}();const cn=ln;var un=void 0&&(void 0).__extends||function(){var t=function(e,n){return t=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])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),hn=void 0&&(void 0).__assign||function(){return hn=Object.assign||function(t){for(var e,n=1,o=arguments.length;na&&(l+=r-a),!(0,t.isUndefined)(e)&&l!==i&&l>0&&l0){var l=n.shift(),u=(0,ue.ut)('script',hn({type:'text/javascript'},(0,t.isString)(l)?{src:l}:l));null===(i=o.contentDocument)||void 0===i||i.head.appendChild(u),u.hasAttribute('nomodule')&&'noModule'in HTMLScriptElement.prototype?c(n):u.onerror=u.onload=c.bind(null,n)}else null==r||r.trigger(qe.frameLoadHead,a),e.renderBody(),null==r||r.trigger(qe.frameLoadBody,a),null==r||r.trigger(s,a)};o.onload=function(){var t=e.config.frameContent;if(t){var n=e.getDoc();n.open(),n.write(t),n.close()}a.window=e.getWindow(),null==r||r.trigger("".concat(s,":before"),a),null==r||r.trigger(qe.frameLoad,a),c(pn([],l.get('scripts'),!0))}},o.prototype.renderStyles=function(e){void 0===e&&(e={});var n=this.getHead(),o=this.getCanvasModel(),i=function(e){return e.map((function(e){return{tag:'link',attributes:hn({rel:'stylesheet'},(0,t.isString)(e)?{href:e}:e)}}))},r=i(e.prev||o.previous('styles')),s=i(o.get('styles')),a=[],l=[],c=function(t,e,n){t.forEach((function(t){var o=t.attributes.href;!e.some((function(t){return t.attributes.href===o}))&&n.push(t)}))};c(s,r,l),c(r,s,a),a.forEach((function(t){var e,o=n.querySelector("link[href=\"".concat(t.attributes.href,"\"]"));null===(e=null==o?void 0:o.parentNode)||void 0===e||e.removeChild(o)})),(0,ue.SJ)(n,l)},o.prototype.renderBody=function(){var t,n,o=this,i=this,r=i.config,s=i.em,a=i.model,l=i.ppfx,c=this.getDoc(),u=this.getBody(),h=this.getWindow(),p=a.hasAutoHeight(),d=s.config;h._isEditor=!0,this.renderStyles({prev:[]});(0,ue.R3)(u,""));var f=a.root,g=s.Components.getType('wrapper').view;this.wrapper=new g({model:f,config:hn(hn({},f.config),{em:s,frameView:this})}).render(),(0,ue.R3)(u,null===(t=this.wrapper)||void 0===t?void 0:t.el),(0,ue.R3)(u,new sn({collection:a.getStyles(),config:hn(hn({},s.Css.getConfig()),{frameView:this})}).render().el),(0,ue.R3)(u,this.getJsContainer()),(0,ue.on)(u,'click',(function(t){var e;return t&&'A'==(null===(e=t.target)||void 0===e?void 0:e.tagName)&&t.preventDefault()})),(0,ue.on)(u,'submit',(function(t){return t&&t.preventDefault()})),[{event:'keydown keyup keypress',class:'KeyboardEvent'},{event:'mousedown mousemove mouseup',class:'MouseEvent'},{event:'pointerdown pointermove pointerup',class:'PointerEvent'},{event:'wheel',class:'WheelEvent',opts:{passive:!r.infiniteCanvas}}].forEach((function(t){return t.event.split(' ').forEach((function(e){c.addEventListener(e,(function(e){return o.el.dispatchEvent((0,ue.t3)(e,t.class))}),t.opts)}))})),this._toggleEffects(!0),(0,e.hasDnd)(s)&&(this.droppable=new cn(s,null===(n=this.wrapper)||void 0===n?void 0:n.el)),this.loaded=!0,a.trigger('loaded')},o.prototype._toggleEffects=function(t){var e=t?ue.on:ue.S1,n=this.getWindow();n&&e(n,"".concat(ue.G1," resize"),this._emitUpdate)},o.prototype._emitUpdate=function(){this.model._emitUpdated()},o}(Fe);const fn=dn;var gn=n(250),mn=void 0&&(void 0).__extends||function(){var t=function(e,n){return t=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])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),vn=void 0&&(void 0).__assign||function(){return vn=Object.assign||function(t){for(var e,n=1,o=arguments.length;n\n
\n ").concat(r.get('name')||'',"\n
\n
\n
\n \n
\n
\n
\n
\n
\n
\n ")).append(e.el);var l=(0,ue.ut)('div',{class:"".concat(o,"tools"),style:'pointer-events:none; display: none'},"\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n "));this.elTools=l;var c=null==i?void 0:i.toolsWrapper;return c&&c.appendChild(l),a&&a({el:s,elTop:s.querySelector('[data-frame-top]'),elRight:s.querySelector('[data-frame-right]'),elBottom:s.querySelector('[data-frame-bottom]'),elLeft:s.querySelector('[data-frame-left]'),frame:r,frameWrapperView:this,remove:this.remove,startDrag:this.startDrag}),this},n}(Fe);const _n=yn;var On=void 0&&(void 0).__extends||function(){var t=function(e,n){return t=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])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),bn=function(t){function e(e,n){void 0===e&&(e={});var o=t.call(this,e,!0)||this;return o.listenTo(o.collection,'reset',o.render),o.canvasView=n.canvasView,o._module=n.module,o}return On(e,t),e.prototype.onRemoveBefore=function(t,e){void 0===e&&(e={}),t.forEach((function(t){return t.remove(e)}))},e.prototype.onRender=function(){var t=this.$el,e=this.ppfx;t.attr({class:"".concat(e,"frames")})},e.prototype.clearItems=function(){(this.viewCollection||[]).forEach((function(t){return t.remove()})),this.viewCollection=[]},e.prototype.renderView=function(t,e){return new _n(t,this.canvasView)},e}(He);const wn=bn;var xn=void 0&&(void 0).__extends||function(){var t=function(e,n){return t=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])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Sn=void 0&&(void 0).__assign||function(){return Sn=Object.assign||function(t){for(var e,n=1,o=arguments.length;n\n
\n \n
\n \n ")},o.prototype._onFramesUpdate=function(){this._initFrames(),this._renderFrames()},o.prototype._initFrames=function(){var t=this,e=t.frames,n=t.model,o=t.config,i=t.em,r=n.frames;i.set('readyCanvas',0),r.once('loaded:all',(function(){return i.set('readyCanvas',1)})),null==e||e.remove(),this.frames=new wn({collection:r},Sn(Sn({},o),{canvasView:this}))},o.prototype.checkSelected=function(t,e){var n;void 0===e&&(e={});var o=e.scroll,i=this.em.getCurrentFrame();o&&(null===(n=t.views)||void 0===n||n.forEach((function(t){t.frameView===i&&t.scrollIntoView(o)})))},o.prototype.remove=function(){for(var t,e=[],n=0;n=k?k/2-x/2:-b)+b)*E,y:(-m.y+P/2-S/2+w)*E};if(y){var $=a.getZoomMultiplier(),j=(P*$-P)/2;A.y=(-m.y+w)*E-j/$}a.setCoords(A.x,A.y)},o.prototype.isElInViewport=function(t){var n=(0,e.getElement)(t),o=(0,ue.Ut)(n),i=this.getFrameOffset(n),r=o.top,s=o.left;return r>=0&&s>=0&&r<=i.height&&s<=i.width},o.prototype.offset=function(t,e){void 0===e&&(e={});var n=e.noScroll,o=(0,ue.Ut)(t),i=n?{x:0,y:0}:(0,ue.GX)(t);return{top:o.top+i.y,left:o.left+i.x,width:o.width,height:o.height}},o.prototype.getRectToScreen=function(t){var e,n,o,i,r=this.module.getZoomDecimal(),s=this.module.getCoords(),a=this.getViewportDelta();return{x:(null!==(e=t.x)&&void 0!==e?e:0)*r+s.x+a.x||0,y:(null!==(n=t.y)&&void 0!==n?n:0)*r+s.y+a.y||0,width:(null!==(o=t.width)&&void 0!==o?o:0)*r,height:(null!==(i=t.height)&&void 0!==i?i:0)*r}},o.prototype.getElBoxRect=function(t,n){var o,i,r;void 0===n&&(n={});var s=this.module,a=(0,ue.Ut)(t),l=a.width,c=a.height,u=a.left,h=a.top,p=null===(o=(0,e.getComponentView)(t))||void 0===o?void 0:o.frameView,d=null==p?void 0:p.getBoxRect(),f=s.getZoomMultiplier(),g=null!==(i=null==d?void 0:d.x)&&void 0!==i?i:0,m=null!==(r=null==d?void 0:d.y)&&void 0!==r?r:0,v=this.el,y=(0,ue.GX)(),_={x:u+g+(v.scrollLeft+y.x)*f,y:h+m+(v.scrollTop+y.y)*f,width:l,height:c};return n.local&&(_.x=u,_.y=h),n.toScreen?this.getRectToScreen(_):_},o.prototype.getViewportRect=function(t){void 0===t&&(t={});var e=this.getCanvasOffset(),n=e.top,o=e.left,i=e.width,r=e.height,s=this.module;if(t.toWorld){var a=s.getZoomMultiplier(),l=s.getCoords(),c=this.getViewportDelta();return{x:(-l.x-c.x||0)*a,y:(-l.y-c.y||0)*a,width:i*a,height:r*a}}return{x:o,y:n,width:i,height:r}},o.prototype.getViewportDelta=function(t){void 0===t&&(t={});var e=this.module.getZoomMultiplier(),n=this.getCanvasOffset(),o=n.width,i=n.height;return{x:(o*e-o)/2/e,y:(i*e-i)/2/e}},o.prototype.clearOff=function(){this.frmOff=void 0,this.cvsOff=void 0},o.prototype.getFrameOffset=function(t){var e;if(!this.frmOff||t){var n=null===(e=this.frame)||void 0===e?void 0:e.el,o=null==t?void 0:t.ownerDocument.defaultView,i=o?o.frameElement:n;this.frmOff=this.offset(i||n)}return this.frmOff},o.prototype.getCanvasOffset=function(){return this.cvsOff||(this.cvsOff=this.offset(this.el)),this.cvsOff},o.prototype.getElementPos=function(t,e){void 0===e&&(e={});var n=this.module.getZoomDecimal(),o=this.getFrameOffset(t),i=this.el,r=this.getCanvasOffset(),s=this.offset(t,e),a=e.avoidFrameOffset?0:o.top,l=e.avoidFrameOffset?0:o.left,c=e.avoidFrameZoom?s.top:s.top*n,u=e.avoidFrameZoom?s.left:s.left*n;return{top:e.avoidFrameOffset?c:c+a-r.top+i.scrollTop,left:e.avoidFrameOffset?u:u+l-r.left+i.scrollLeft,height:e.avoidFrameZoom?s.height:s.height*n,width:e.avoidFrameZoom?s.width:s.width*n,zoom:n,rect:s}},o.prototype.getElementOffsets=function(t){if(!t||(0,ue.BM)(t))return{};var e={},n=window.getComputedStyle(t),o=this.module.getZoomDecimal();return['marginTop','marginRight','marginBottom','marginLeft','paddingTop','paddingRight','paddingBottom','paddingLeft'].forEach((function(t){e[t]=parseFloat(n[t])*o})),e},o.prototype.getPosition=function(t){var e;void 0===t&&(t={});var n=null===(e=this.frame)||void 0===e?void 0:e.el.contentDocument;if(!n)return{top:0,left:0,width:0,height:0};var o=n.body,i=this.module.getZoomDecimal(),r=this.getFrameOffset(),s=this.getCanvasOffset(),a=t.noScroll;return{top:r.top+(a?0:o.scrollTop)*i-s.top,left:r.left+(a?0:o.scrollLeft)*i-s.left,width:s.width,height:s.height}},o.prototype.updateScript=function(t){var e=t.model,n=e.getId();if(!t.scriptContainer){t.scriptContainer=(0,ue.ut)('div',{'data-id':n});var o=this.getJsContainer();null==o||o.appendChild(t.scriptContainer)}t.el.id=n,t.scriptContainer.innerHTML='';var i=document.createElement('script'),r=e.getScriptString(),s=e.get('script-props')?r:"function(){\n".concat(r,"\n;}"),a=JSON.stringify(e.__getScriptProps());console.log(i),i.innerHTML="\n setTimeout(function() {\n var item = document.getElementById('".concat(n,"');\n if (!item) return;\n (").concat(s,".bind(item))(").concat(a,")\n }, 1);"),setTimeout((function(){var e=t.scriptContainer;null==e||e.appendChild(i)}),0)},o.prototype.getJsContainer=function(t){var e=this.getFrameView(t);return null==e?void 0:e.getJsContainer()},o.prototype.getFrameView=function(t){return(null==t?void 0:t.frameView)||this.em.getCurrentFrame()},o.prototype._renderFrames=function(){if(this.ready){var t=this,e=t.model,n=t.frames,o=t.em,i=t.framesArea,r=e.frames;r.listenToLoad(),n.render();var s=r.at(0),a=null==s?void 0:s.view;o.setCurrentFrame(a),null==i||i.appendChild(n.el),this.frame=a,this.updateFramesArea()}},o.prototype.renderFrames=function(){this._renderFrames()},o.prototype.render=function(){var t=this,n=t.el,o=t.$el,i=t.ppfx,r=t.config,s=t.em;o.html(this.template());var a=o.find('[data-frames]');this.framesArea=a.get(0);var l=o.find('[data-tools]');return this.toolsWrapper=l.get(0),l.append("\n
\n
\n
\n
\n
\n
\n ").concat(r.extHl?"
"):'',"\n
\n
\n
\n
\n
\n
\n
\n ")),this.toolsEl=n.querySelector("#".concat(i,"tools")),this.hlEl=n.querySelector(".".concat(i,"highlighter")),this.badgeEl=n.querySelector(".".concat(i,"badge")),this.placerEl=n.querySelector(".".concat(i,"placeholder")),this.ghostEl=n.querySelector(".".concat(i,"ghost")),this.toolbarEl=n.querySelector(".".concat(i,"toolbar")),this.resizerEl=n.querySelector(".".concat(i,"resizer")),this.offsetEl=n.querySelector(".".concat(i,"offset-v")),this.fixedOffsetEl=n.querySelector(".".concat(i,"offset-fixed-v")),this.toolsGlobEl=n.querySelector(".".concat(i,"tools-gl")),this.spotsEl=n.querySelector('[data-spots]'),this.cvStyle=n.querySelector('[data-canvas-style]'),this.el.className=(0,e.getUiClass)(s,this.className),this.ready=!0,this._renderFrames(),this},o}(Fe);const Pn=kn;var Cn=void 0&&(void 0).__extends||function(){var t=function(e,n){return t=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])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Tn=void 0&&(void 0).__assign||function(){return Tn=Object.assign||function(t){for(var e,n=1,o=arguments.length;nr.top+r.height?r.top+r.height:d,left:p,elementTop:r.top,elementLeft:r.left,elementWidth:r.width,elementHeight:r.height,targetWidth:t.offsetWidth,targetHeight:t.offsetHeight,canvasTop:i.top,canvasLeft:i.left,canvasWidth:i.width,canvasHeight:i.height};return c&&this.em&&this.em.trigger(c,f),f}},o.prototype.canvasRectOffset=function(t,e,n){var o=this;void 0===n&&(n={});var i=function(t,e,i){void 0===e&&(e=1);var r=o.em.getZoomDecimal(),s=e?'top':'left',a=t.ownerDocument,l=n.offset?function(t){var e=t.defaultView;return null==e?void 0:e.frameElement}(a):{},c=l.offsetTop,u=void 0===c?0:c,h=l.offsetLeft,p=void 0===h?0:h,d=a.body||{},f=d.scrollTop,g=void 0===f?0:f,m=d.scrollLeft,v=e?g:void 0===m?0:m,y=e?u:p;return i[s]-(v-y)*r};return{top:i(t,1,e),left:i(t,0,e)}},o.prototype.getTargetToElementFixed=function(e,n,o){void 0===o&&(o={});var i=o.pos||this.getElementPos(e,{noScroll:!0}),r=o.canvasOff||this.canvasRectOffset(e,i),s=n.offsetHeight||0,a=n.offsetWidth||0,l=i.left+i.width,c=this.getCanvasView(),u=c.getPosition(),h=c.getFrameOffset(e),p=o.event,d=-s,f=(0,t.isUndefined)(o.left)?i.width-a:o.left;if(f=i.left<-f?-i.left:f,f=l>u.width?f-(l-u.width):f,r.top=0;){var o=e.indexOf('/*'),i=e.indexOf('*/')+2;e=e.replace(e.slice(o,i),'')}for(var r=e.split(';'),s=0,a=r.length;s'!=="".concat(a.outerHTML).slice(-2)||(d.void=!0);var P=d.components;if(!d.type&&P){for(var C=1,T=0,E=0;E".concat(e,""),l=i.parseFromString(a,r);if(s){var c=l.head,u=l.body,h=c.querySelectorAll('script');(0,t.each)(h,(function(t){return u.appendChild(t)}));var p=[];(0,t.each)(c.children,(function(t){return p.push(t)})),(0,t.each)(p,(function(t,e){return u.insertBefore(t,u.children[e])})),o=u}else o=l.firstChild;return o}(o,u),p=h.querySelectorAll('script'),d=p.length;if(!((0,t.isUndefined)(a.allowScripts)?u.allowScripts:a.allowScripts))for(;d--;)p[d].parentNode.removeChild(p[d]);if(u.allowUnsafeAttr||this.__clearUnsafeAttr(h),i){for(var f=h.querySelectorAll('style'),g=f.length,m='';g--;)m=f[g].innerHTML+m,f[g].parentNode.removeChild(f[g]);m&&(l.css=i.parse(m))}e&&e.trigger("".concat(Vn,":root"),{input:o,root:h});var v=this.parseNode(h,c),y=1!==v.length||c.returnArray?v:v[0];return l.html=y,e&&e.trigger(Vn,{input:o,output:l}),l},__clearUnsafeAttr:function(e){var n=this,o=e.attributes||[],i=e.childNodes||[],r=[];(0,t.each)(o,(function(t){var e=t.nodeName||'';0===e.indexOf('on')&&r.push(e)})),r.map((function(t){return e.removeAttribute(t)})),(0,t.each)(i,(function(t){return n.__clearUnsafeAttr(t)}))}}};var In=void 0&&(void 0).__extends||function(){var t=function(e,n){return t=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])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Nn=void 0&&(void 0).__assign||function(){return Nn=Object.assign||function(t){for(var e,n=1,o=arguments.length;n=0:i;if('__'===e.substring(0,2))return"continue";var s=o[e];((0,t.isArray)(s)?s:[s]).forEach((function(t){var o="".concat(t).concat(r?' !important':'');o&&n.push("".concat(e,":").concat(o,";"))}))};for(var s in o)r(s);return n.join('')},o.prototype.getSelectors=function(){return this.get('selectors')||this.get('classes')},o.prototype.getSelectorsString=function(t){return this.selectorsToString?this.selectorsToString(t):this.getSelectors().getFullString()},o}(u.Hn);const Yn=Ln;var zn=void 0&&(void 0).__extends||function(){var t=function(e,n){return t=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])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),qn=void 0&&(void 0).__assign||function(){return qn=Object.assign||function(t){for(var e,n=1,o=arguments.length;n0&&g.reset(f,o)}else p.components=f}return p}))},Hn=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return zn(n,e),n.prototype.initialize=function(t,e){void 0===e&&(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,o=e.config;this.config=o,this.em=n,this.domc=e.domc||(null==n?void 0:n.Components)},n.prototype.resetChildren=function(t,e){var n=this;void 0===e&&(e={});var o=this,i=e.previousModels||[],r=i.filter((function(e){return!t.get(e.cid)})),s=Fn(t),a=Fn(i).filter((function(t){return s.indexOf(t)>=0}));e.keepIds=(e.keepIds||[]).concat(a),r.forEach((function(t){return n.removeChildren(t,o,e)})),t.each((function(t){return n.onAdd(t)}))},n.prototype.resetFromString=function(t,e){var n,o;void 0===t&&(t=''),void 0===e&&(e={}),e.keepIds=Fn(this);var i=this,r=i.domc,s=i.em,a=i.parent,l=null==s?void 0:s.Css,c=(null==r?void 0:r.allById())||{},u=this.parseString(t,e),h=Gn(u,c,e),p=e.visitedCmps,d=void 0===p?{}:p;Object.keys(d).forEach((function(t){var e=d[t];if(e.length){var n=(null==l?void 0:l.getRules("#".concat(t)))||[];n.length&&e.forEach((function(t){n.forEach((function(e){var n=e.clone();n.set('selectors',["#".concat(t.attributes.id)]),l.getAll().add(n)}))}))}})),this.reset(h,e),null==s||s.trigger('component:content',a,e,t),null===(o=(n=a).__checkInnerChilds)||void 0===o||o.call(n)},n.prototype.removeChildren=function(t,e,n){var o=this;if(void 0===n&&(n={}),t){var i=this.domc,r=this.em,s=n.temporary||n.fromUndo;if(t.prevColl=this,!s){var a=t.getId(),l=r.Selectors.getAll(),c=r.Css.getAll(),u=(n.keepIds||[]).indexOf(a)<0;delete(i?i.allById():{})[a];var h=u?c.remove(c.filter((function(t){return t.getSelectors().getFullString()==="#".concat(a)})),n):[];l.remove(h.map((function(t){return t.getSelectors().at(0)}))),t.opt.temporary||(r.Commands.run('core:component-style-clear',{target:t}),t.removed(),t.trigger('removed'),r.trigger('component:remove',t)),t.components().forEach((function(t){return o.removeChildren(t,e,n)}))}var p=t.components();r.stopListening(p),r.stopListening(t),r.stopListening(t.get('classes')),t.__postRemove()}},n.prototype.model=function(t,e){var n,o=e.collection.opt,i=o.em,r=i.Components.componentTypes;e.em=i,e.config=o.config,e.componentTypes=r,e.domc=o.domc;for(var s=0;s\n \n \n ").get(0)}return this.toolbarEl},n.prototype.renderItem=function(t){var e=this,n=e.em,o=e.ppfx,i=(e.label,null==n?void 0:n.getConfig().icons),r=(null==i?void 0:i.caret)||'',s=nx.buildView(t,n,co(co({},t.opts),{noLabel:!0})).render(),a=document.createElement('div');a.setAttribute('data-item-title',''),a.className="".concat(o,"title"),a.innerHTML="\n
").concat(r,"
\n \n "),console.log(a);var c=document.createElement('div');return c.className='data-item',c.setAttribute('item-id',t.name),c.append(s.el),console.log(a),(0,l["default"])(a).append(c)},n.prototype.renderItems=function(){var t=this;this.itemsEl=this.target.traits.map((function(e){return t.renderItem(e)}))},n.prototype.render=function(){var t,e=this,n=(e.$el,e.pfx),o=e.ppfx,i=(e.name,e.type);e.className;console.log('render');var r=this.hasLabel(),s="".concat(n,"trait"),a=document.createDocumentFragment();this.$el.empty(),this.renderItems(),null===(t=this.itemsEl)||void 0===t||t.forEach((function(t){return a.appendChild(t.get(0))}));var l=document.createElement('div');l.className="".concat(o,"field-").concat(i,"-items"),l.append(a);var c="
\n ").concat(r?"
"):'',"\n
\n\n
\n
");return this.$el.append(c),this.$el.find('[data-input]').append(this.renderToolbar()).append(l),console.log('render'),this.select(),this.setElement(this.el),this},n}(Vt);const ho=uo;var po=void 0&&(void 0).__extends||function(){var t=function(e,n){return t=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])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),fo=void 0&&(void 0).__assign||function(){return fo=Object.assign||function(t){for(var e,n=1,o=arguments.length;nthis.length)throw new RangeError(`Invalid position ${t} in document of length ${this.length}`);return this.lineInner(t,!1,1,0)}line(t){if(t<1||t>this.lines)throw new RangeError(`Invalid line number ${t} in ${this.lines}-line document`);return this.lineInner(t,!0,1,0)}replace(t,e,n){[t,e]=Po(this,t,e);let o=[];return this.decompose(0,t,o,2),n.length&&n.decompose(0,n.length,o,1|2),this.decompose(e,this.length,o,1),_o.from(o,this.length-(e-t)+n.length)}append(t){return this.replace(this.length,this.length,t)}slice(t,e=this.length){[t,e]=Po(this,t,e);let n=[];return this.decompose(t,e,n,0),_o.from(n,e-t)}eq(t){if(t==this)return!0;if(t.length!=this.length||t.lines!=this.lines)return!1;let e=this.scanIdentical(t,1),n=this.length-this.scanIdentical(t,-1),o=new wo(this),i=new wo(t);for(let t=e,r=e;;){if(o.next(t),i.next(t),t=0,o.lineBreak!=i.lineBreak||o.done!=i.done||o.value!=i.value)return!1;if(r+=o.value.length,o.done||r>=n)return!0}}iter(t=1){return new wo(this,t)}iterRange(t,e=this.length){return new xo(this,t,e)}iterLines(t,e){let n;if(null==t)n=this.iter();else{null==e&&(e=this.lines+1);let o=this.line(t).from;n=this.iterRange(o,Math.max(o,e==this.lines+1?this.length:e<=1?0:this.line(e-1).to))}return new So(n)}toString(){return this.sliceString(0)}toJSON(){let t=[];return this.flatten(t),t}constructor(){}static of(t){if(0==t.length)throw new RangeError("A document must have at least one line");return 1!=t.length||t[0]?t.length<=32?new yo(t):_o.from(yo.split(t,[])):vo.empty}}class yo extends vo{constructor(t,e=function(t){let e=-1;for(let n of t)e+=n.length+1;return e}(t)){super(),this.text=t,this.length=e}get lines(){return this.text.length}get children(){return null}lineInner(t,e,n,o){for(let i=0;;i++){let r=this.text[i],s=o+r.length;if((e?n:s)>=t)return new ko(o,s,n,r);o=s+1,n++}}decompose(t,e,n,o){let i=t<=0&&e>=this.length?this:new yo(bo(this.text,t,e),Math.min(e,this.length)-Math.max(0,t));if(1&o){let t=n.pop(),e=Oo(i.text,t.text.slice(),0,i.length);if(e.length<=32)n.push(new yo(e,t.length+i.length));else{let t=e.length>>1;n.push(new yo(e.slice(0,t)),new yo(e.slice(t)))}}else n.push(i)}replace(t,e,n){if(!(n instanceof yo))return super.replace(t,e,n);[t,e]=Po(this,t,e);let o=Oo(this.text,Oo(n.text,bo(this.text,0,t)),e),i=this.length+n.length-(e-t);return o.length<=32?new yo(o,i):_o.from(yo.split(o,[]),i)}sliceString(t,e=this.length,n="\n"){[t,e]=Po(this,t,e);let o="";for(let i=0,r=0;i<=e&&rt&&r&&(o+=n),ti&&(o+=s.slice(Math.max(0,t-i),e-i)),i=a+1}return o}flatten(t){for(let e of this.text)t.push(e)}scanIdentical(){return 0}static split(t,e){let n=[],o=-1;for(let i of t)n.push(i),o+=i.length+1,32==n.length&&(e.push(new yo(n,o)),n=[],o=-1);return o>-1&&e.push(new yo(n,o)),e}}class _o extends vo{constructor(t,e){super(),this.children=t,this.length=e,this.lines=0;for(let e of t)this.lines+=e.lines}lineInner(t,e,n,o){for(let i=0;;i++){let r=this.children[i],s=o+r.length,a=n+r.lines-1;if((e?a:s)>=t)return r.lineInner(t,e,n,o);o=s+1,n=a+1}}decompose(t,e,n,o){for(let i=0,r=0;r<=e&&i=r){let i=o&((r<=t?1:0)|(a>=e?2:0));r>=t&&a<=e&&!i?n.push(s):s.decompose(t-r,e-r,n,i)}r=a+1}}replace(t,e,n){if([t,e]=Po(this,t,e),n.lines=i&&e<=s){let a=r.replace(t-i,e-i,n),l=this.lines-r.lines+a.lines;if(a.lines>5-1&&a.lines>l>>5+1){let i=this.children.slice();return i[o]=a,new _o(i,this.length-(e-t)+n.length)}return super.replace(i,s,a)}i=s+1}return super.replace(t,e,n)}sliceString(t,e=this.length,n="\n"){[t,e]=Po(this,t,e);let o="";for(let i=0,r=0;it&&i&&(o+=n),tr&&(o+=s.sliceString(t-r,e-r,n)),r=a+1}return o}flatten(t){for(let e of this.children)e.flatten(t)}scanIdentical(t,e){if(!(t instanceof _o))return 0;let n=0,[o,i,r,s]=e>0?[0,0,this.children.length,t.children.length]:[this.children.length-1,t.children.length-1,-1,-1];for(;;o+=e,i+=e){if(o==r||i==s)return n;let a=this.children[o],l=t.children[i];if(a!=l)return n+a.scanIdentical(l,e);n+=a.length+1}}static from(t,e=t.reduce(((t,e)=>t+e.length+1),-1)){let n=0;for(let e of t)n+=e.lines;if(n<32){let n=[];for(let e of t)e.flatten(n);return new yo(n,e)}let o=Math.max(32,n>>5),i=o<<1,r=o>>1,s=[],a=0,l=-1,c=[];function u(t){let e;if(t.lines>i&&t instanceof _o)for(let e of t.children)u(e);else t.lines>r&&(a>r||!a)?(h(),s.push(t)):t instanceof yo&&a&&(e=c[c.length-1])instanceof yo&&t.lines+e.lines<=32?(a+=t.lines,l+=t.length+1,c[c.length-1]=new yo(e.text.concat(t.text),e.length+1+t.length)):(a+t.lines>o&&h(),a+=t.lines,l+=t.length+1,c.push(t))}function h(){0!=a&&(s.push(1==c.length?c[0]:_o.from(c,l)),l=-1,a=c.length=0)}for(let e of t)u(e);return h(),1==s.length?s[0]:new _o(s,e)}}function Oo(t,e,n=0,o=1e9){for(let i=0,r=0,s=!0;r=n&&(l>o&&(a=a.slice(0,o-i)),i0?1:(t instanceof yo?t.text.length:t.children.length)<<1]}nextInner(t,e){for(this.done=this.lineBreak=!1;;){let n=this.nodes.length-1,o=this.nodes[n],i=this.offsets[n],r=i>>1,s=o instanceof yo?o.text.length:o.children.length;if(r==(e>0?s:0)){if(0==n)return this.done=!0,this.value="",this;e>0&&this.offsets[n-1]++,this.nodes.pop(),this.offsets.pop()}else if((1&i)==(e>0?0:1)){if(this.offsets[n]+=e,0==t)return this.lineBreak=!0,this.value="\n",this;t--}else if(o instanceof yo){let i=o.text[r+(e<0?-1:0)];if(this.offsets[n]+=e,i.length>Math.max(0,t))return this.value=0==t?i:e>0?i.slice(t):i.slice(0,i.length-t),this;t-=i.length}else{let i=o.children[r+(e<0?-1:0)];t>i.length?(t-=i.length,this.offsets[n]+=e):(e<0&&this.offsets[n]--,this.nodes.push(i),this.offsets.push(e>0?1:(i instanceof yo?i.text.length:i.children.length)<<1))}}}next(t=0){return t<0&&(this.nextInner(-t,-this.dir),t=this.value.length),this.nextInner(t,this.dir)}}class xo{constructor(t,e,n){this.value="",this.done=!1,this.cursor=new wo(t,e>n?-1:1),this.pos=e>n?t.length:0,this.from=Math.min(e,n),this.to=Math.max(e,n)}nextInner(t,e){if(e<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;t+=Math.max(0,e<0?this.pos-this.to:this.from-this.pos);let n=e<0?this.pos-this.from:this.to-this.pos;t>n&&(t=n),n-=t;let{value:o}=this.cursor.next(t);return this.pos+=(o.length+t)*e,this.value=o.length<=n?o:e<0?o.slice(o.length-n):o.slice(0,n),this.done=!this.value,this}next(t=0){return t<0?t=Math.max(t,this.from-this.pos):t>0&&(t=Math.min(t,this.to-this.pos)),this.nextInner(t,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&""!=this.value}}class So{constructor(t){this.inner=t,this.afterBreak=!0,this.value="",this.done=!1}next(t=0){let{done:e,lineBreak:n,value:o}=this.inner.next(t);return e&&this.afterBreak?(this.value="",this.afterBreak=!1):e?(this.done=!0,this.value=""):n?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=o,this.afterBreak=!1),this}get lineBreak(){return!1}}"undefined"!=typeof Symbol&&(vo.prototype[Symbol.iterator]=function(){return this.iter()},wo.prototype[Symbol.iterator]=xo.prototype[Symbol.iterator]=So.prototype[Symbol.iterator]=function(){return this});class ko{constructor(t,e,n,o){this.from=t,this.to=e,this.number=n,this.text=o}get length(){return this.to-this.from}}function Po(t,e,n){return[e=Math.max(0,Math.min(t.length,e)),Math.max(e,Math.min(t.length,n))]}let Co="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map((t=>t?parseInt(t,36):1));for(let t=1;tt)return Co[e-1]<=t;return!1}function Eo(t){return t>=127462&&t<=127487}const Qo=8205;function Ao(t,e,n=!0,o=!0){return(n?$o:jo)(t,e,o)}function $o(t,e,n){if(e==t.length)return e;e&&Ro(t.charCodeAt(e))&&Zo(t.charCodeAt(e-1))&&e--;let o=Mo(t,e);for(e+=Do(o);e=0&&Eo(Mo(t,o));)n++,o-=2;if(n%2==0)break;e+=2}}}return e}function jo(t,e,n){for(;e>0;){let o=$o(t,e-2,n);if(o=56320&&t<57344}function Zo(t){return t>=55296&&t<56320}function Mo(t,e){let n=t.charCodeAt(e);if(!Zo(n)||e+1==t.length)return n;let o=t.charCodeAt(e+1);return Ro(o)?(n-55296<<10)+(o-56320)+65536:n}function Vo(t){return t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode((t>>10)+55296,(1023&t)+56320))}function Do(t){return t<65536?1:2}const Io=/\r\n?|\n/;var No=function(t){return t[t["Simple"]=0]="Simple",t[t["TrackDel"]=1]="TrackDel",t[t["TrackBefore"]=2]="TrackBefore",t[t["TrackAfter"]=3]="TrackAfter",t}(No||(No={}));class Wo{constructor(t){this.sections=t}get length(){let t=0;for(let e=0;et)return i+(t-o);i+=s}else{if(n!=No.Simple&&l>=t&&(n==No.TrackDel&&ot||n==No.TrackBefore&&ot))return null;if(l>t||l==t&&e<0&&!s)return t==o||e<0?i:i+a;i+=a}o=l}if(t>o)throw new RangeError(`Position ${t} is out of range for changeset of length ${o}`);return i}touchesRange(t,e=t){for(let n=0,o=0;n=0&&o<=e&&i>=t)return!(oe)||"cover";o=i}return!1}toString(){let t="";for(let e=0;e=0?":"+o:"")}return t}toJSON(){return this.sections}static fromJSON(t){if(!Array.isArray(t)||t.length%2||t.some((t=>"number"!=typeof t)))throw new RangeError("Invalid JSON representation of ChangeDesc");return new Wo(t)}static create(t){return new Wo(t)}}class Xo extends Wo{constructor(t,e){super(t),this.inserted=e}apply(t){if(this.length!=t.length)throw new RangeError("Applying change set to a document with the wrong length");return zo(this,((e,n,o,i,r)=>t=t.replace(o,o+(n-e),r)),!1),t}mapDesc(t,e=!1){return qo(this,t,e,!0)}invert(t){let e=this.sections.slice(),n=[];for(let o=0,i=0;o=0){e[o]=s,e[o+1]=r;let a=o>>1;for(;n.length0&&Yo(n,e,i.text),i.forward(t),s+=t}let l=t[r++];for(;s>1].toJSON()))}return t}static of(t,e,n){let o=[],i=[],r=0,s=null;function a(t=!1){if(!t&&!o.length)return;rs||t<0||s>e)throw new RangeError(`Invalid change range ${t} to ${s} (in doc of length ${e})`);let u=c?"string"==typeof c?vo.of(c.split(n||Io)):c:vo.empty,h=u.length;if(t==s&&0==h)return;tr&&Lo(o,t-r,-1),Lo(o,s-t,h),Yo(i,o,u),r=s}}(t),a(!s),s}static empty(t){return new Xo(t?[t,-1]:[],[])}static fromJSON(t){if(!Array.isArray(t))throw new RangeError("Invalid JSON representation of ChangeSet");let e=[],n=[];for(let o=0;oe&&"string"!=typeof t)))throw new RangeError("Invalid JSON representation of ChangeSet");if(1==i.length)e.push(i[0],0);else{for(;n.length=0&&n<=0&&n==t[i+1]?t[i]+=e:0==e&&0==t[i]?t[i+1]+=n:o?(t[i]+=e,t[i+1]+=n):t.push(e,n)}function Yo(t,e,n){if(0==n.length)return;let o=e.length-2>>1;if(o>1])),!(n||s==t.sections.length||t.sections[s+1]<0);)a=t.sections[s++],l=t.sections[s++];e(i,c,r,u,h),i=c,r=u}}}function qo(t,e,n,o=!1){let i=[],r=o?[]:null,s=new Bo(t),a=new Bo(e);for(let t=-1;;)if(-1==s.ins&&-1==a.ins){let t=Math.min(s.len,a.len);Lo(i,t,-1),s.forward(t),a.forward(t)}else if(a.ins>=0&&(s.ins<0||t==s.i||0==s.off&&(a.len=0&&t=0)){if(s.done&&a.done)return r?Xo.createSet(i,r):Wo.create(i);throw new Error("Mismatched change set lengths")}{let e=0,n=s.len;for(;n;)if(-1==a.ins){let t=Math.min(n,a.len);e+=t,n-=t,a.forward(t)}else{if(!(0==a.ins&&a.lene||s.ins>=0&&s.len>e)&&(t||o.length>n),r.forward2(e),s.forward(e)}}else Lo(o,0,s.ins,t),i&&Yo(i,o,s.text),s.next()}}class Bo{constructor(t){this.set=t,this.i=0,this.next()}next(){let{sections:t}=this.set;this.i>1;return e>=t.length?vo.empty:t[e]}textBit(t){let{inserted:e}=this.set,n=this.i-2>>1;return n>=e.length&&!t?vo.empty:e[n].slice(this.off,null==t?void 0:this.off+t)}forward(t){t==this.len?this.next():(this.len-=t,this.off+=t)}forward2(t){-1==this.ins?this.forward(t):t==this.ins?this.next():(this.ins-=t,this.off+=t)}}class Fo{constructor(t,e,n){this.from=t,this.to=e,this.flags=n}get anchor(){return 32&this.flags?this.to:this.from}get head(){return 32&this.flags?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return 8&this.flags?-1:16&this.flags?1:0}get bidiLevel(){let t=7&this.flags;return 7==t?null:t}get goalColumn(){let t=this.flags>>6;return 16777215==t?void 0:t}map(t,e=-1){let n,o;return this.empty?n=o=t.mapPos(this.from,e):(n=t.mapPos(this.from,1),o=t.mapPos(this.to,-1)),n==this.from&&o==this.to?this:new Fo(n,o,this.flags)}extend(t,e=t){if(t<=this.anchor&&e>=this.anchor)return Go.range(t,e);let n=Math.abs(t-this.anchor)>Math.abs(e-this.anchor)?t:e;return Go.range(this.anchor,n)}eq(t){return this.anchor==t.anchor&&this.head==t.head}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(t){if(!t||"number"!=typeof t.anchor||"number"!=typeof t.head)throw new RangeError("Invalid JSON representation for SelectionRange");return Go.range(t.anchor,t.head)}static create(t,e,n){return new Fo(t,e,n)}}class Go{constructor(t,e){this.ranges=t,this.mainIndex=e}map(t,e=-1){return t.empty?this:Go.create(this.ranges.map((n=>n.map(t,e))),this.mainIndex)}eq(t){if(this.ranges.length!=t.ranges.length||this.mainIndex!=t.mainIndex)return!1;for(let e=0;et.toJSON())),main:this.mainIndex}}static fromJSON(t){if(!t||!Array.isArray(t.ranges)||"number"!=typeof t.main||t.main>=t.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new Go(t.ranges.map((t=>Fo.fromJSON(t))),t.main)}static single(t,e=t){return new Go([Go.range(t,e)],0)}static create(t,e=0){if(0==t.length)throw new RangeError("A selection needs at least one range");for(let n=0,o=0;ot?8:0)|i)}static normalized(t,e=0){let n=t[e];t.sort(((t,e)=>t.from-e.from)),e=t.indexOf(n);for(let n=1;no.head?Go.range(s,r):Go.range(r,s))}}return new Go(t,e)}}function Ho(t,e){for(let n of t.ranges)if(n.to>e)throw new RangeError("Selection points outside of document")}let Ko=0;class Jo{constructor(t,e,n,o,i){this.combine=t,this.compareInput=e,this.compare=n,this.isStatic=o,this.id=Ko++,this.default=t([]),this.extensions="function"==typeof i?i(this):i}get reader(){return this}static define(t={}){return new Jo(t.combine||(t=>t),t.compareInput||((t,e)=>t===e),t.compare||(t.combine?(t,e)=>t===e:ti),!!t.static,t.enables)}of(t){return new ei([],this,0,t)}compute(t,e){if(this.isStatic)throw new Error("Can't compute a static facet");return new ei(t,this,1,e)}computeN(t,e){if(this.isStatic)throw new Error("Can't compute a static facet");return new ei(t,this,2,e)}from(t,e){return e||(e=t=>t),this.compute([t],(n=>e(n.field(t))))}}function ti(t,e){return t==e||t.length==e.length&&t.every(((t,n)=>t===e[n]))}class ei{constructor(t,e,n,o){this.dependencies=t,this.facet=e,this.type=n,this.value=o,this.id=Ko++}dynamicSlot(t){var e;let n=this.value,o=this.facet.compareInput,i=this.id,r=t[i]>>1,s=2==this.type,a=!1,l=!1,c=[];for(let n of this.dependencies)"doc"==n?a=!0:"selection"==n?l=!0:0==(1&(null!==(e=t[n.id])&&void 0!==e?e:1))&&c.push(t[n.id]);return{create:t=>(t.values[r]=n(t),1),update(t,e){if(a&&e.docChanged||l&&(e.docChanged||e.selection)||oi(t,c)){let e=n(t);if(s?!ni(e,t.values[r],o):!o(e,t.values[r]))return t.values[r]=e,1}return 0},reconfigure:(t,e)=>{let a,l=e.config.address[i];if(null!=l){let i=yi(e,l);if(this.dependencies.every((n=>n instanceof Jo?e.facet(n)===t.facet(n):!(n instanceof si)||e.field(n,!1)==t.field(n,!1)))||(s?ni(a=n(t),i,o):o(a=n(t),i)))return t.values[r]=i,0}else a=n(t);return t.values[r]=a,1}}}}function ni(t,e,n){if(t.length!=e.length)return!1;for(let o=0;ot[e.id])),i=n.map((t=>t.type)),r=o.filter((t=>!(1&t))),s=t[e.id]>>1;function a(t){let n=[];for(let e=0;et===e),t);return t.provide&&(e.provides=t.provide(e)),e}create(t){let e=t.facet(ri).find((t=>t.field==this));return((null==e?void 0:e.create)||this.createF)(t)}slot(t){let e=t[this.id]>>1;return{create:t=>(t.values[e]=this.create(t),1),update:(t,n)=>{let o=t.values[e],i=this.updateF(o,n);return this.compareF(o,i)?0:(t.values[e]=i,1)},reconfigure:(t,n)=>null!=n.config.address[this.id]?(t.values[e]=n.field(this),0):(t.values[e]=this.create(t),1)}}init(t){return[this,ri.of({field:this,create:t})]}get extension(){return this}}const ai=4,li=3,ci=2,ui=1;function hi(t){return e=>new di(e,t)}const pi={highest:hi(0),high:hi(ui),default:hi(ci),low:hi(li),lowest:hi(ai)};class di{constructor(t,e){this.inner=t,this.prec=e}}class fi{of(t){return new gi(this,t)}reconfigure(t){return fi.reconfigure.of({compartment:this,extension:t})}get(t){return t.config.compartments.get(this)}}class gi{constructor(t,e){this.compartment=t,this.inner=e}}class mi{constructor(t,e,n,o,i,r){for(this.base=t,this.compartments=e,this.dynamicSlots=n,this.address=o,this.staticValues=i,this.facets=r,this.statusTemplate=[];this.statusTemplate.length>1]}static resolve(t,e,n){let o=[],i=Object.create(null),r=new Map;for(let n of function(t,e,n){let o=[[],[],[],[],[]],i=new Map;function r(t,s){let a=i.get(t);if(null!=a){if(a<=s)return;let e=o[a].indexOf(t);e>-1&&o[a].splice(e,1),t instanceof gi&&n.delete(t.compartment)}if(i.set(t,s),Array.isArray(t))for(let e of t)r(e,s);else if(t instanceof gi){if(n.has(t.compartment))throw new RangeError(`Duplicate use of compartment in extensions`);let o=e.get(t.compartment)||t.inner;n.set(t.compartment,o),r(o,s)}else if(t instanceof di)r(t.inner,t.prec);else if(t instanceof si)o[s].push(t),t.provides&&r(t.provides,s);else if(t instanceof ei)o[s].push(t),t.facet.extensions&&r(t.facet.extensions,ci);else{let e=t.extension;if(!e)throw new Error(`Unrecognized extension value in extension set (${t}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);r(e,s)}}return r(t,ci),o.reduce(((t,e)=>t.concat(e)))}(t,e,r))n instanceof si?o.push(n):(i[n.facet.id]||(i[n.facet.id]=[])).push(n);let s=Object.create(null),a=[],l=[];for(let t of o)s[t.id]=l.length<<1,l.push((e=>t.slot(e)));let c=null==n?void 0:n.config.facets;for(let t in i){let e=i[t],o=e[0].facet,r=c&&c[t]||[];if(e.every((t=>0==t.type)))if(s[o.id]=a.length<<1|1,ti(r,e))a.push(n.facet(o));else{let t=o.combine(e.map((t=>t.value)));a.push(n&&o.compare(t,n.facet(o))?n.facet(o):t)}else{for(let t of e)0==t.type?(s[t.id]=a.length<<1|1,a.push(t.value)):(s[t.id]=l.length<<1,l.push((e=>t.dynamicSlot(e))));s[o.id]=l.length<<1,l.push((t=>ii(t,o,e)))}}let u=l.map((t=>t(s)));return new mi(t,r,u,s,a,i)}}function vi(t,e){if(1&e)return 2;let n=e>>1,o=t.status[n];if(4==o)throw new Error("Cyclic dependency between fields and/or facets");if(2&o)return o;t.status[n]=4;let i=t.computeSlot(t,t.config.dynamicSlots[n]);return t.status[n]=2|i}function yi(t,e){return 1&e?t.config.staticValues[e>>1]:t.values[e>>1]}const _i=Jo.define(),Oi=Jo.define({combine:t=>t.some((t=>t)),static:!0}),bi=Jo.define({combine:t=>t.length?t[0]:void 0,static:!0}),wi=Jo.define(),xi=Jo.define(),Si=Jo.define(),ki=Jo.define({combine:t=>!!t.length&&t[0]});class Pi{constructor(t,e){this.type=t,this.value=e}static define(){return new Ci}}class Ci{of(t){return new Pi(this,t)}}class Ti{constructor(t){this.map=t}of(t){return new Ei(this,t)}}class Ei{constructor(t,e){this.type=t,this.value=e}map(t){let e=this.type.map(this.value,t);return void 0===e?void 0:e==this.value?this:new Ei(this.type,e)}is(t){return this.type==t}static define(t={}){return new Ti(t.map||(t=>t))}static mapEffects(t,e){if(!t.length)return t;let n=[];for(let o of t){let t=o.map(e);t&&n.push(t)}return n}}Ei.reconfigure=Ei.define(),Ei.appendConfig=Ei.define();class Qi{constructor(t,e,n,o,i,r){this.startState=t,this.changes=e,this.selection=n,this.effects=o,this.annotations=i,this.scrollIntoView=r,this._doc=null,this._state=null,n&&Ho(n,e.newLength),i.some((t=>t.type==Qi.time))||(this.annotations=i.concat(Qi.time.of(Date.now())))}static create(t,e,n,o,i,r){return new Qi(t,e,n,o,i,r)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(t){for(let e of this.annotations)if(e.type==t)return e.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(t){let e=this.annotation(Qi.userEvent);return!(!e||!(e==t||e.length>t.length&&e.slice(0,t.length)==t&&"."==e[t.length]))}}function Ai(t,e){let n=[];for(let o=0,i=0;;){let r,s;if(o=t[o]))r=t[o++],s=t[o++];else{if(!(i=0;i--){let r=n[i](t);r&&Object.keys(r).length&&(o=$i(o,ji(e,r,t.changes.newLength),!0))}return o==t?t:Qi.create(e,t.changes,t.selection,o.effects,o.annotations,o.scrollIntoView)}(n?function(t){let e=t.startState,n=!0;for(let o of e.facet(wi)){let e=o(t);if(!1===e){n=!1;break}Array.isArray(e)&&(n=!0===n?e:Ai(n,e))}if(!0!==n){let o,i;if(!1===n)i=t.changes.invertedDesc,o=Xo.empty(e.doc.length);else{let e=t.changes.filter(n);o=e.changes,i=e.filtered.mapDesc(e.changes).invertedDesc}t=Qi.create(e,o,t.selection&&t.selection.map(i),Ei.mapEffects(t.effects,i),t.annotations,t.scrollIntoView)}let o=e.facet(xi);for(let n=o.length-1;n>=0;n--){let i=o[n](t);t=i instanceof Qi?i:Array.isArray(i)&&1==i.length&&i[0]instanceof Qi?i[0]:Ri(e,Mi(i),!1)}return t}(i):i)}Qi.time=Pi.define(),Qi.userEvent=Pi.define(),Qi.addToHistory=Pi.define(),Qi.remote=Pi.define();const Zi=[];function Mi(t){return null==t?Zi:Array.isArray(t)?t:[t]}var Vi=function(t){return t[t["Word"]=0]="Word",t[t["Space"]=1]="Space",t[t["Other"]=2]="Other",t}(Vi||(Vi={}));const Di=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let Ii;try{Ii=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch(t){}function Ni(t){return e=>{if(!/\S/.test(e))return Vi.Space;if(function(t){if(Ii)return Ii.test(t);for(let e=0;e"€"&&(n.toUpperCase()!=n.toLowerCase()||Di.test(n)))return!0}return!1}(e))return Vi.Word;for(let n=0;n-1)return Vi.Word;return Vi.Other}}class Wi{constructor(t,e,n,o,i,r){this.config=t,this.doc=e,this.selection=n,this.values=o,this.status=t.statusTemplate.slice(),this.computeSlot=i,r&&(r._state=this);for(let t=0;ti.set(e,t))),n=null),i.set(e.value.compartment,e.value.extension)):e.is(Ei.reconfigure)?(n=null,o=e.value):e.is(Ei.appendConfig)&&(n=null,o=Mi(o).concat(e.value));if(n)e=t.startState.values.slice();else{n=mi.resolve(o,i,this),e=new Wi(n,this.doc,this.selection,n.dynamicSlots.map((()=>null)),((t,e)=>e.reconfigure(t,this)),null).values}let r=t.startState.facet(Oi)?t.newSelection:t.newSelection.asSingle();new Wi(n,t.newDoc,r,e,((e,n)=>n.update(e,t)),t)}replaceSelection(t){return"string"==typeof t&&(t=this.toText(t)),this.changeByRange((e=>({changes:{from:e.from,to:e.to,insert:t},range:Go.cursor(e.from+t.length)})))}changeByRange(t){let e=this.selection,n=t(e.ranges[0]),o=this.changes(n.changes),i=[n.range],r=Mi(n.effects);for(let n=1;ni.spec.fromJSON(r,t))))}return Wi.create({doc:t.doc,selection:Go.fromJSON(t.selection),extensions:e.extensions?o.concat([e.extensions]):o})}static create(t={}){let e=mi.resolve(t.extensions||[],new Map),n=t.doc instanceof vo?t.doc:vo.of((t.doc||"").split(e.staticFacet(Wi.lineSeparator)||Io)),o=t.selection?t.selection instanceof Go?t.selection:Go.single(t.selection.anchor,t.selection.head):Go.single(0);return Ho(o,n.length),e.staticFacet(Oi)||(o=o.asSingle()),new Wi(e,n,o,e.dynamicSlots.map((()=>null)),((t,e)=>e.create(t)),null)}get tabSize(){return this.facet(Wi.tabSize)}get lineBreak(){return this.facet(Wi.lineSeparator)||"\n"}get readOnly(){return this.facet(ki)}phrase(t,...e){for(let e of this.facet(Wi.phrases))if(Object.prototype.hasOwnProperty.call(e,t)){t=e[t];break}return e.length&&(t=t.replace(/\$(\$|\d*)/g,((t,n)=>{if("$"==n)return"$";let o=+(n||1);return!o||o>e.length?t:e[o-1]}))),t}languageDataAt(t,e,n=-1){let o=[];for(let i of this.facet(_i))for(let r of i(this,e,n))Object.prototype.hasOwnProperty.call(r,t)&&o.push(r[t]);return o}charCategorizer(t){return Ni(this.languageDataAt("wordChars",t).join(""))}wordAt(t){let{text:e,from:n,length:o}=this.doc.lineAt(t),i=this.charCategorizer(t),r=t-n,s=t-n;for(;r>0;){let t=Ao(e,r,!1);if(i(e.slice(t,r))!=Vi.Word)break;r=t}for(;st.length?t[0]:4}),Wi.lineSeparator=bi,Wi.readOnly=ki,Wi.phrases=Jo.define({compare(t,e){let n=Object.keys(t),o=Object.keys(e);return n.length==o.length&&n.every((n=>t[n]==e[n]))}}),Wi.languageData=_i,Wi.changeFilter=wi,Wi.transactionFilter=xi,Wi.transactionExtender=Si,fi.reconfigure=Ei.define();class Li{eq(t){return this==t}range(t,e=t){return Yi.create(t,e,this)}}Li.prototype.startSide=Li.prototype.endSide=0,Li.prototype.point=!1,Li.prototype.mapMode=No.TrackDel;class Yi{constructor(t,e,n){this.from=t,this.to=e,this.value=n}static create(t,e,n){return new Yi(t,e,n)}}function zi(t,e){return t.from-e.from||t.value.startSide-e.value.startSide}class qi{constructor(t,e,n,o){this.from=t,this.to=e,this.value=n,this.maxPoint=o}get length(){return this.to[this.to.length-1]}findIndex(t,e,n,o=0){let i=n?this.to:this.from;for(let r=o,s=i.length;;){if(r==s)return r;let o=r+s>>1,a=i[o]-t||(n?this.value[o].endSide:this.value[o].startSide)-e;if(o==r)return a>=0?r:s;a>=0?s=o:r=o+1}}between(t,e,n,o){for(let i=this.findIndex(e,-1e9,!0),r=this.findIndex(n,1e9,!1,i);ic||l==c&&u.startSide>0&&u.endSide<=0)continue;(c-l||u.endSide-u.startSide)<0||(r<0&&(r=l),u.point&&(s=Math.max(s,c-l)),n.push(u),o.push(l-r),i.push(c-r))}return{mapped:n.length?new qi(o,i,n,s):null,pos:r}}}class Ui{constructor(t,e,n,o){this.chunkPos=t,this.chunk=e,this.nextLayer=n,this.maxPoint=o}static create(t,e,n,o){return new Ui(t,e,n,o)}get length(){let t=this.chunk.length-1;return t<0?0:Math.max(this.chunkEnd(t),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let t=this.nextLayer.size;for(let e of this.chunk)t+=e.value.length;return t}chunkEnd(t){return this.chunkPos[t]+this.chunk[t].length}update(t){let{add:e=[],sort:n=!1,filterFrom:o=0,filterTo:i=this.length}=t,r=t.filter;if(0==e.length&&!r)return this;if(n&&(e=e.slice().sort(zi)),this.isEmpty)return e.length?Ui.of(e):this;let s=new Gi(this,null,-1).goto(0),a=0,l=[],c=new Bi;for(;s.value||a=0){let t=e[a++];c.addInner(t.from,t.to,t.value)||l.push(t)}else 1==s.rangeIndex&&s.chunkIndexthis.chunkEnd(s.chunkIndex)||is.to||i=i&&t<=i+r.length&&!1===r.between(i,t-i,e-i,n))return}this.nextLayer.between(t,e,n)}}iter(t=0){return Hi.from([this]).goto(t)}get isEmpty(){return this.nextLayer==this}static iter(t,e=0){return Hi.from(t).goto(e)}static compare(t,e,n,o,i=-1){let r=t.filter((t=>t.maxPoint>0||!t.isEmpty&&t.maxPoint>=i)),s=e.filter((t=>t.maxPoint>0||!t.isEmpty&&t.maxPoint>=i)),a=Fi(r,s,n),l=new Ji(r,a,i),c=new Ji(s,a,i);n.iterGaps(((t,e,n)=>tr(l,t,c,e,n,o))),n.empty&&0==n.length&&tr(l,0,c,0,0,o)}static eq(t,e,n=0,o){null==o&&(o=1e9-1);let i=t.filter((t=>!t.isEmpty&&e.indexOf(t)<0)),r=e.filter((e=>!e.isEmpty&&t.indexOf(e)<0));if(i.length!=r.length)return!1;if(!i.length)return!0;let s=Fi(i,r),a=new Ji(i,s,0).goto(n),l=new Ji(r,s,0).goto(n);for(;;){if(a.to!=l.to||!er(a.active,l.active)||a.point&&(!l.point||!a.point.eq(l.point)))return!1;if(a.to>o)return!0;a.next(),l.next()}}static spans(t,e,n,o,i=-1){let r=new Ji(t,null,i).goto(e),s=e,a=r.openStart;for(;;){let t=Math.min(r.to,n);if(r.point){let n=r.activeForPoint(r.to),i=r.pointFroms&&(o.span(s,t,r.active,a),a=r.openEnd(t));if(r.to>n)return a+(r.point&&r.to>n?1:0);s=r.to,r.next()}}static of(t,e=!1){let n=new Bi;for(let o of t instanceof Yi?[t]:e?function(t){if(t.length>1)for(let e=t[0],n=1;n0)return t.slice().sort(zi);e=o}return t}(t):t)n.add(o.from,o.to,o.value);return n.finish()}}Ui.empty=new Ui([],[],null,-1),Ui.empty.nextLayer=Ui.empty;class Bi{finishChunk(t){this.chunks.push(new qi(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,t&&(this.from=[],this.to=[],this.value=[])}constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}add(t,e,n){this.addInner(t,e,n)||(this.nextLayer||(this.nextLayer=new Bi)).add(t,e,n)}addInner(t,e,n){let o=t-this.lastTo||n.startSide-this.last.endSide;if(o<=0&&(t-this.lastFrom||n.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return!(o<0)&&(250==this.from.length&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=t),this.from.push(t-this.chunkStart),this.to.push(e-this.chunkStart),this.last=n,this.lastFrom=t,this.lastTo=e,this.value.push(n),n.point&&(this.maxPoint=Math.max(this.maxPoint,e-t)),!0)}addChunk(t,e){if((t-this.lastTo||e.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,e.maxPoint),this.chunks.push(e),this.chunkPos.push(t);let n=e.value.length-1;return this.last=e.value[n],this.lastFrom=e.from[n]+t,this.lastTo=e.to[n]+t,!0}finish(){return this.finishInner(Ui.empty)}finishInner(t){if(this.from.length&&this.finishChunk(!1),0==this.chunks.length)return t;let e=Ui.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(t):t,this.setMaxPoint);return this.from=null,e}}function Fi(t,e,n){let o=new Map;for(let e of t)for(let t=0;t=this.minPoint)break}}}setRangeIndex(t){if(t==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex=n&&o.push(new Gi(r,e,n,i));return 1==o.length?o[0]:new Hi(o)}get startSide(){return this.value?this.value.startSide:0}goto(t,e=-1e9){for(let n of this.heap)n.goto(t,e);for(let t=this.heap.length>>1;t>=0;t--)Ki(this.heap,t);return this.next(),this}forward(t,e){for(let n of this.heap)n.forward(t,e);for(let t=this.heap.length>>1;t>=0;t--)Ki(this.heap,t);(this.to-t||this.value.endSide-e)<0&&this.next()}next(){if(0==this.heap.length)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let t=this.heap[0];this.from=t.from,this.to=t.to,this.value=t.value,this.rank=t.rank,t.value&&t.next(),Ki(this.heap,0)}}}function Ki(t,e){for(let n=t[e];;){let o=(e<<1)+1;if(o>=t.length)break;let i=t[o];if(o+1=0&&(i=t[o+1],o++),n.compare(i)<0)break;t[o]=n,t[e]=i,e=o}}class Ji{constructor(t,e,n){this.minPoint=n,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=Hi.from(t,e,n)}goto(t,e=-1e9){return this.cursor.goto(t,e),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=t,this.endSide=e,this.openStart=-1,this.next(),this}forward(t,e){for(;this.minActive>-1&&(this.activeTo[this.minActive]-t||this.active[this.minActive].endSide-e)<0;)this.removeActive(this.minActive);this.cursor.forward(t,e)}removeActive(t){nr(this.active,t),nr(this.activeTo,t),nr(this.activeRank,t),this.minActive=ir(this.active,this.activeTo)}addActive(t){let e=0,{value:n,to:o,rank:i}=this.cursor;for(;e-1&&(this.activeTo[o]-this.cursor.from||this.active[o].endSide-this.cursor.startSide)<0){if(this.activeTo[o]>t){this.to=this.activeTo[o],this.endSide=this.active[o].endSide;break}this.removeActive(o),n&&nr(n,o)}else{if(!this.cursor.value){this.to=this.endSide=1e9;break}if(this.cursor.from>t){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}{let t=this.cursor.value;if(t.point){if(!(e&&this.cursor.to==this.to&&this.cursor.from=0&&n[e]=0&&!(this.activeRank[n]t||this.activeTo[n]==t&&this.active[n].endSide>=this.point.endSide)&&e.push(this.active[n]);return e.reverse()}openEnd(t){let e=0;for(let n=this.activeTo.length-1;n>=0&&this.activeTo[n]>t;n--)e++;return e}}function tr(t,e,n,o,i,r){t.goto(e),n.goto(o);let s=o+i,a=o,l=o-e;for(;;){let e=t.to+l-n.to||t.endSide-n.endSide,o=e<0?t.to+l:n.to,i=Math.min(o,s);if(t.point||n.point?t.point&&n.point&&(t.point==n.point||t.point.eq(n.point))&&er(t.activeForPoint(t.to),n.activeForPoint(n.to))||r.comparePoint(a,i,t.point,n.point):i>a&&!er(t.active,n.active)&&r.compareRange(a,i,t.active,n.active),o>s)break;a=o,e<=0&&t.next(),e>=0&&n.next()}}function er(t,e){if(t.length!=e.length)return!1;for(let n=0;n=e;n--)t[n+1]=t[n];t[e]=n}function ir(t,e){let n=-1,o=1e9;for(let i=0;i=e)return o;if(o==t.length)break;i+=9==t.charCodeAt(o)?n-i%n:1,o=Ao(t,o)}return!0===o?-1:t.length}function ar(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=new Array(e);n-1&&(this.modules.splice(s,1),o--,s=-1),-1==s){if(this.modules.splice(o++,0,r),e)for(var a=0;a",191:"?",192:"~",219:"{",220:"|",221:"}",222:"\""},xr="undefined"!=typeof navigator&&/Mac/.test(navigator.platform),Sr="undefined"!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),kr=0;kr<10;kr++)br[48+kr]=br[96+kr]=String(kr);for(kr=1;kr<=24;kr++)br[kr+111]="F"+kr;for(kr=65;kr<=90;kr++)br[kr]=String.fromCharCode(kr+32),wr[kr]=String.fromCharCode(kr);for(var Pr in br)wr.hasOwnProperty(Pr)||(wr[Pr]=br[Pr]);function Cr(t){let e;return e=11==t.nodeType?t.getSelection?t:t.ownerDocument:t,e.getSelection()}function Tr(t,e){return!!e&&(t==e||t.contains(1!=e.nodeType?e.parentNode:e))}function Er(t,e){if(!e.anchorNode)return!1;try{return Tr(t,e.anchorNode)}catch(t){return!1}}function Qr(t){return 3==t.nodeType?Xr(t,0,t.nodeValue.length).getClientRects():1==t.nodeType?t.getClientRects():[]}function Ar(t,e,n,o){return!!n&&(jr(t,e,n,o,-1)||jr(t,e,n,o,1))}function $r(t){for(var e=0;;e++)if(!(t=t.previousSibling))return e}function jr(t,e,n,o,i){for(;;){if(t==n&&e==o)return!0;if(e==(i<0?0:Rr(t))){if("DIV"==t.nodeName)return!1;let n=t.parentNode;if(!n||1!=n.nodeType)return!1;e=$r(t)+(i<0?0:1),t=n}else{if(1!=t.nodeType)return!1;if(1==(t=t.childNodes[e+(i<0?-1:0)]).nodeType&&"false"==t.contentEditable)return!1;e=i<0?Rr(t):0}}}function Rr(t){return 3==t.nodeType?t.nodeValue.length:t.childNodes.length}function Zr(t,e){let n=e?t.left:t.right;return{left:n,right:n,top:t.top,bottom:t.bottom}}function Mr(t){return{left:0,right:t.innerWidth,top:0,bottom:t.innerHeight}}function Vr(t,e){let n=e.width/t.offsetWidth,o=e.height/t.offsetHeight;return(n>.995&&n<1.005||!isFinite(n)||Math.abs(e.width-t.offsetWidth)<1)&&(n=1),(o>.995&&o<1.005||!isFinite(o)||Math.abs(e.height-t.offsetHeight)<1)&&(o=1),{scaleX:n,scaleY:o}}class Dr{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(t){return this.anchorNode==t.anchorNode&&this.anchorOffset==t.anchorOffset&&this.focusNode==t.focusNode&&this.focusOffset==t.focusOffset}setRange(t){let{anchorNode:e,focusNode:n}=t;this.set(e,Math.min(t.anchorOffset,e?Rr(e):0),n,Math.min(t.focusOffset,n?Rr(n):0))}set(t,e,n,o){this.anchorNode=t,this.anchorOffset=e,this.focusNode=n,this.focusOffset=o}}let Ir,Nr=null;function Wr(t){if(t.setActive)return t.setActive();if(Nr)return t.focus(Nr);let e=[];for(let n=t;n&&(e.push(n,n.scrollTop,n.scrollLeft),n!=n.ownerDocument);n=n.parentNode);if(t.focus(null==Nr?{get preventScroll(){return Nr={preventScroll:!0},!0}}:void 0),!Nr){Nr=!1;for(let t=0;tMath.max(1,t.scrollHeight-t.clientHeight-4)}class qr{constructor(t,e,n=!0){this.node=t,this.offset=e,this.precise=n}static before(t,e){return new qr(t.parentNode,$r(t),e)}static after(t,e){return new qr(t.parentNode,$r(t)+1,e)}}const Ur=[];class Br{constructor(){this.parent=null,this.dom=null,this.flags=2}get overrideDOMText(){return null}get posAtStart(){return this.parent?this.parent.posBefore(this):0}get posAtEnd(){return this.posAtStart+this.length}posBefore(t){let e=this.posAtStart;for(let n of this.children){if(n==t)return e;e+=n.length+n.breakAfter}throw new RangeError("Invalid child in posBefore")}posAfter(t){return this.posBefore(t)+t.length}sync(t,e){if(2&this.flags){let n,o=this.dom,i=null;for(let r of this.children){if(7&r.flags){if(!r.dom&&(n=i?i.nextSibling:o.firstChild)){let t=Br.get(n);(!t||!t.parent&&t.canReuseDOM(r))&&r.reuseDOM(n)}r.sync(t,e),r.flags&=~7}if(n=i?i.nextSibling:o.firstChild,e&&!e.written&&e.node==o&&n!=r.dom&&(e.written=!0),r.dom.parentNode==o)for(;n&&n!=r.dom;)n=Fr(n);else o.insertBefore(r.dom,n);i=r.dom}for(n=i?i.nextSibling:o.firstChild,n&&e&&e.node==o&&(e.written=!0);n;)n=Fr(n)}else if(1&this.flags)for(let n of this.children)7&n.flags&&(n.sync(t,e),n.flags&=~7)}reuseDOM(t){}localPosFromDOM(t,e){let n;if(t==this.dom)n=this.dom.childNodes[e];else{let o=0==Rr(t)?0:0==e?-1:1;for(;;){let e=t.parentNode;if(e==this.dom)break;0==o&&e.firstChild!=e.lastChild&&(o=t==e.firstChild?-1:1),t=e}n=o<0?t:t.nextSibling}if(n==this.dom.firstChild)return 0;for(;n&&!Br.get(n);)n=n.nextSibling;if(!n)return this.length;for(let t=0,e=0;;t++){let o=this.children[t];if(o.dom==n)return e;e+=o.length+o.breakAfter}}domBoundsAround(t,e,n=0){let o=-1,i=-1,r=-1,s=-1;for(let a=0,l=n,c=n;ae)return n.domBoundsAround(t,e,l);if(u>=t&&-1==o&&(o=a,i=l),l>e&&n.dom.parentNode==this.dom){r=a,s=c;break}c=u,l=u+n.breakAfter}return{from:i,to:s<0?n+this.length:s,startDOM:(o?this.children[o-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:r=0?this.children[r].dom:null}}markDirty(t=!1){this.flags|=2,this.markParentsDirty(t)}markParentsDirty(t){for(let e=this.parent;e;e=e.parent){if(t&&(e.flags|=2),1&e.flags)return;e.flags|=1,t=!1}}setParent(t){this.parent!=t&&(this.parent=t,7&this.flags&&this.markParentsDirty(!0))}setDOM(t){this.dom!=t&&(this.dom&&(this.dom.cmView=null),this.dom=t,t.cmView=this)}get rootView(){for(let t=this;;){let e=t.parent;if(!e)return t;t=e}}replaceChildren(t,e,n=Ur){this.markDirty();for(let o=t;othis.pos||t==this.pos&&(e>0||0==this.i||this.children[this.i-1].breakAfter))return this.off=t-this.pos,this;let n=this.children[--this.i];this.pos-=n.length+n.breakAfter}}}function Hr(t,e,n,o,i,r,s,a,l){let{children:c}=t,u=c.length?c[e]:null,h=r.length?r[r.length-1]:null,p=h?h.breakAfter:s;if(!(e==o&&u&&!s&&!p&&r.length<2&&u.merge(n,i,r.length?h:null,0==n,a,l))){if(o0&&(!s&&r.length&&u.merge(n,u.length,r[0],!1,a,0)?u.breakAfter=r.shift().breakAfter:(n2);var us={mac:cs||/Mac/.test(Jr.platform),windows:/Win/.test(Jr.platform),linux:/Linux|X11/.test(Jr.platform),ie:is,ie_version:ns?ts.documentMode||6:os?+os[1]:es?+es[1]:0,gecko:rs,gecko_version:rs?+(/Firefox\/(\d+)/.exec(Jr.userAgent)||[0,0])[1]:0,chrome:!!ss,chrome_version:ss?+ss[1]:0,ios:cs,android:/Android\b/.test(Jr.userAgent),webkit:as,safari:ls,webkit_version:as?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0,tabSize:null!=ts.documentElement.style.tabSize?"tab-size":"-moz-tab-size"};const hs=256;class ps extends Br{constructor(t){super(),this.text=t}get length(){return this.text.length}createDOM(t){this.setDOM(t||document.createTextNode(this.text))}sync(t,e){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(e&&e.node==this.dom&&(e.written=!0),this.dom.nodeValue=this.text)}reuseDOM(t){3==t.nodeType&&this.createDOM(t)}merge(t,e,n){return!(8&this.flags||n&&(!(n instanceof ps)||this.length-(e-t)+n.length>hs||8&n.flags))&&(this.text=this.text.slice(0,t)+(n?n.text:"")+this.text.slice(e),this.markDirty(),!0)}split(t){let e=new ps(this.text.slice(t));return this.text=this.text.slice(0,t),this.markDirty(),e.flags|=8&this.flags,e}localPosFromDOM(t,e){return t==this.dom?e:e?this.text.length:0}domAtPos(t){return new qr(this.dom,t)}domBoundsAround(t,e,n){return{from:n,to:n+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}coordsAt(t,e){return function(t,e,n){let o=t.nodeValue.length;e>o&&(e=o);let i=e,r=e,s=0;0==e&&n<0||e==o&&n>=0?us.chrome||us.gecko||(e?(i--,s=1):r=0)?0:a.length-1];us.safari&&!s&&0==l.width&&(l=Array.prototype.find.call(a,(t=>t.width))||l);return s?Zr(l,s<0):l||null}(this.dom,t,e)}}class ds extends Br{constructor(t,e=[],n=0){super(),this.mark=t,this.children=e,this.length=n;for(let t of e)t.setParent(this)}setAttrs(t){if(Yr(t),this.mark.class&&(t.className=this.mark.class),this.mark.attrs)for(let e in this.mark.attrs)t.setAttribute(e,this.mark.attrs[e]);return t}canReuseDOM(t){return super.canReuseDOM(t)&&!(8&(this.flags|t.flags))}reuseDOM(t){t.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(t),this.flags|=4|2)}sync(t,e){this.dom?4&this.flags&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),super.sync(t,e)}merge(t,e,n,o,i,r){return(!n||!(!(n instanceof ds&&n.mark.eq(this.mark))||t&&i<=0||et&&e.push(n=t&&(o=i),n=s,i++}let r=this.length-t;return this.length=t,o>-1&&(this.children.length=o,this.markDirty()),new ds(this.mark,e,r)}domAtPos(t){return ms(this,t)}coordsAt(t,e){return ys(this,t,e)}}class fs extends Br{static create(t,e,n){return new fs(t,e,n)}constructor(t,e,n){super(),this.widget=t,this.length=e,this.side=n,this.prevWidget=null}split(t){let e=fs.create(this.widget,this.length-t,this.side);return this.length-=t,e}sync(t){this.dom&&this.widget.updateDOM(this.dom,t)||(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(t)),this.dom.contentEditable="false")}getSide(){return this.side}merge(t,e,n,o,i,r){return!(n&&(!(n instanceof fs&&this.widget.compare(n.widget))||t>0&&i<=0||e0)?qr.before(this.dom):qr.after(this.dom,t==this.length)}domBoundsAround(){return null}coordsAt(t,e){let n=this.widget.coordsAt(this.dom,t,e);if(n)return n;let o=this.dom.getClientRects(),i=null;if(!o.length)return null;let r=this.side?this.side<0:t>0;for(let e=r?o.length-1:0;i=o[e],!(t>0?0==e:e==o.length-1||i.top0?qr.before(this.dom):qr.after(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(t){return this.dom.getBoundingClientRect()}get overrideDOMText(){return vo.empty}get isHidden(){return!0}}function ms(t,e){let n=t.dom,{children:o}=t,i=0;for(let t=0;it&&e0;t--){let e=o[t-1];if(e.dom.parentNode==n)return e.domAtPos(e.length)}for(let t=i;t0&&e instanceof ds&&i.length&&(o=i[i.length-1])instanceof ds&&o.mark.eq(e.mark)?vs(o,e.children[0],n-1):(i.push(e),e.setParent(t)),t.length+=e.length}function ys(t,e,n){let o=null,i=-1,r=null,s=-1;!function t(e,a){for(let l=0,c=0;l=a&&(u.children.length?t(u,a-c):(!r||r.isHidden&&n>0)&&(h>a||c==h&&u.getSide()>0)?(r=u,s=a-c):(c-1?1:0)!=i.length-(n&&i.indexOf(n)>-1?1:0))return!1;for(let r of o)if(r!=n&&(-1==i.indexOf(r)||t[r]!==e[r]))return!1;return!0}function ws(t,e,n){let o=!1;if(e)for(let i in e)n&&i in n||(o=!0,"style"==i?t.style.cssText="":t.removeAttribute(i));if(n)for(let i in n)e&&e[i]==n[i]||(o=!0,"style"==i?t.style.cssText=n[i]:t.setAttribute(i,n[i]));return o}function xs(t){let e=Object.create(null);for(let n=0;n0&&0==this.children[n-1].length;)this.children[--n].destroy();return this.children.length=n,this.markDirty(),this.length=t,e}transferDOM(t){this.dom&&(this.markDirty(),t.setDOM(this.dom),t.prevAttrs=void 0===this.prevAttrs?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}setDeco(t){bs(this.attrs,t)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=t)}append(t,e){vs(this,t,e)}addLineDeco(t){let e=t.spec.attributes,n=t.spec.class;e&&(this.attrs=_s(e,this.attrs||{})),n&&(this.attrs=_s({class:n},this.attrs||{}))}domAtPos(t){return ms(this,t)}reuseDOM(t){"DIV"==t.nodeName&&(this.setDOM(t),this.flags|=4|2)}sync(t,e){var n;this.dom?4&this.flags&&(Yr(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),void 0!==this.prevAttrs&&(ws(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),super.sync(t,e);let o=this.dom.lastChild;for(;o&&Br.get(o)instanceof ds;)o=o.lastChild;if(!(o&&this.length&&("BR"==o.nodeName||0!=(null===(n=Br.get(o))||void 0===n?void 0:n.isEditable)||us.ios&&this.children.some((t=>t instanceof ps))))){let t=document.createElement("BR");t.cmIgnore=!0,this.dom.appendChild(t)}}measureTextSize(){if(0==this.children.length||this.length>20)return null;let t,e=0;for(let n of this.children){if(!(n instanceof ps)||/[^ -~]/.test(n.text))return null;let o=Qr(n.dom);if(1!=o.length)return null;e+=o[0].width,t=o[0].height}return e?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:e/this.length,textHeight:t}:null}coordsAt(t,e){let n=ys(this,t,e);if(!this.children.length&&n&&this.parent){let{heightOracle:t}=this.parent.view.viewState,e=n.bottom-n.top;if(Math.abs(e-t.lineHeight)<2&&t.textHeight=e){if(i instanceof Ss)return i;if(r>e)break}o=r+i.breakAfter}return null}}class ks extends Br{constructor(t,e,n){super(),this.widget=t,this.length=e,this.deco=n,this.breakAfter=0,this.prevWidget=null}merge(t,e,n,o,i,r){return!(n&&(!(n instanceof ks&&this.widget.compare(n.widget))||t>0&&i<=0||e0)}}class Ps{eq(t){return!1}updateDOM(t,e){return!1}compare(t){return this==t||this.constructor==t.constructor&&this.eq(t)}get estimatedHeight(){return-1}get lineBreaks(){return 0}ignoreEvent(t){return!0}coordsAt(t,e,n){return null}get isHidden(){return!1}destroy(t){}}var Cs=function(t){return t[t["Text"]=0]="Text",t[t["WidgetBefore"]=1]="WidgetBefore",t[t["WidgetAfter"]=2]="WidgetAfter",t[t["WidgetRange"]=3]="WidgetRange",t}(Cs||(Cs={}));class Ts extends Li{constructor(t,e,n,o){super(),this.startSide=t,this.endSide=e,this.widget=n,this.spec=o}get heightRelevant(){return!1}static mark(t){return new Es(t)}static widget(t){let e=Math.max(-1e4,Math.min(1e4,t.side||0)),n=!!t.block;return e+=n&&!t.inlineOrder?e>0?3e8:-4e8:e>0?1e8:-1e8,new As(t,e,e,n,t.widget||null,!1)}static replace(t){let e,n,o=!!t.block;if(t.isBlockGap)e=-5e8,n=4e8;else{let{start:i,end:r}=$s(t,o);e=(i?o?-3e8:-1:5e8)-1,n=(r?o?2e8:1:-6e8)+1}return new As(t,e,n,o,t.widget||null,!0)}static line(t){return new Qs(t)}static set(t,e=!1){return Ui.of(t,e)}hasHeight(){return!!this.widget&&this.widget.estimatedHeight>-1}}Ts.none=Ui.empty;class Es extends Ts{constructor(t){let{start:e,end:n}=$s(t);super(e?-1:5e8,n?1:-6e8,null,t),this.tagName=t.tagName||"span",this.class=t.class||"",this.attrs=t.attributes||null}eq(t){var e,n;return this==t||t instanceof Es&&this.tagName==t.tagName&&(this.class||(null===(e=this.attrs)||void 0===e?void 0:e.class))==(t.class||(null===(n=t.attrs)||void 0===n?void 0:n.class))&&bs(this.attrs,t.attrs,"class")}range(t,e=t){if(t>=e)throw new RangeError("Mark decorations may not be empty");return super.range(t,e)}}Es.prototype.point=!1;class Qs extends Ts{constructor(t){super(-2e8,-2e8,null,t)}eq(t){return t instanceof Qs&&this.spec.class==t.spec.class&&bs(this.spec.attributes,t.spec.attributes)}range(t,e=t){if(e!=t)throw new RangeError("Line decoration ranges must be zero-length");return super.range(t,e)}}Qs.prototype.mapMode=No.TrackBefore,Qs.prototype.point=!0;class As extends Ts{constructor(t,e,n,o,i,r){super(e,n,i,t),this.block=o,this.isReplace=r,this.mapMode=o?e<=0?No.TrackBefore:No.TrackAfter:No.TrackDel}get type(){return this.startSide!=this.endSide?Cs.WidgetRange:this.startSide<=0?Cs.WidgetBefore:Cs.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(t){return t instanceof As&&function(t,e){return t==e||!!(t&&e&&t.compare(e))}(this.widget,t.widget)&&this.block==t.block&&this.startSide==t.startSide&&this.endSide==t.endSide}range(t,e=t){if(this.isReplace&&(t>e||t==e&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&e!=t)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(t,e)}}function $s(t,e=!1){let{inclusiveStart:n,inclusiveEnd:o}=t;return null==n&&(n=t.inclusive),null==o&&(o=t.inclusive),{start:null!=n?n:e,end:null!=o?o:e}}function js(t,e,n,o=0){let i=n.length-1;i>=0&&n[i]+o>=t?n[i]=Math.max(n[i],e):n.push(t,e)}As.prototype.point=!0;class Rs{constructor(t,e,n,o){this.doc=t,this.pos=e,this.end=n,this.disallowBlockEffectsFor=o,this.content=[],this.curLine=null,this.breakAtStart=0,this.pendingBuffer=0,this.bufferMarks=[],this.atCursorPos=!0,this.openStart=-1,this.openEnd=-1,this.text="",this.textOff=0,this.cursor=t.iter(),this.skip=e}posCovered(){if(0==this.content.length)return!this.breakAtStart&&this.doc.lineAt(this.pos).from!=this.pos;let t=this.content[this.content.length-1];return!(t.breakAfter||t instanceof ks&&t.deco.endSide<0)}getLine(){return this.curLine||(this.content.push(this.curLine=new Ss),this.atCursorPos=!0),this.curLine}flushBuffer(t=this.bufferMarks){this.pendingBuffer&&(this.curLine.append(Zs(new gs(-1),t),t.length),this.pendingBuffer=0)}addBlockWidget(t){this.flushBuffer(),this.curLine=null,this.content.push(t)}finish(t){this.pendingBuffer&&t<=this.bufferMarks.length?this.flushBuffer():this.pendingBuffer=0,this.posCovered()||t&&this.content.length&&this.content[this.content.length-1]instanceof ks||this.getLine()}buildText(t,e,n){for(;t>0;){if(this.textOff==this.text.length){let{value:e,lineBreak:n,done:o}=this.cursor.next(this.skip);if(this.skip=0,o)throw new Error("Ran out of text content when drawing inline views");if(n){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer(),this.curLine=null,this.atCursorPos=!0,t--;continue}this.text=e,this.textOff=0}let o=Math.min(this.text.length-this.textOff,t,512);this.flushBuffer(e.slice(e.length-n)),this.getLine().append(Zs(new ps(this.text.slice(this.textOff,this.textOff+o)),e),n),this.atCursorPos=!0,this.textOff+=o,t-=o,n=0}}span(t,e,n,o){this.buildText(e-t,n,o),this.pos=e,this.openStart<0&&(this.openStart=o)}point(t,e,n,o,i,r){if(this.disallowBlockEffectsFor[r]&&n instanceof As){if(n.block)throw new RangeError("Block decorations may not be specified via plugins");if(e>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}let s=e-t;if(n instanceof As)if(n.block)n.startSide>0&&!this.posCovered()&&this.getLine(),this.addBlockWidget(new ks(n.widget||new Ms("div"),s,n));else{let r=fs.create(n.widget||new Ms("span"),s,s?0:n.startSide),a=this.atCursorPos&&!r.isEditable&&i<=o.length&&(t0),l=!r.isEditable&&(to.length||n.startSide<=0),c=this.getLine();2!=this.pendingBuffer||a||r.isEditable||(this.pendingBuffer=0),this.flushBuffer(o),a&&(c.append(Zs(new gs(1),o),i),i=o.length+Math.max(0,i-o.length)),c.append(Zs(r,o),i),this.atCursorPos=l,this.pendingBuffer=l?to.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=o.slice())}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(n);s&&(this.textOff+s<=this.text.length?this.textOff+=s:(this.skip+=s-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=e),this.openStart<0&&(this.openStart=i)}static build(t,e,n,o,i){let r=new Rs(t,e,n,i);return r.openEnd=Ui.spans(o,e,n,r),r.openStart<0&&(r.openStart=r.openEnd),r.finish(r.openEnd),r}}function Zs(t,e){for(let n of e)t=new ds(n,[t],t.length);return t}class Ms extends Ps{constructor(t){super(),this.tag=t}eq(t){return t.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(t){return t.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}}const Vs=Jo.define(),Ds=Jo.define(),Is=Jo.define(),Ns=Jo.define(),Ws=Jo.define(),Xs=Jo.define(),Ls=Jo.define(),Ys=Jo.define({combine:t=>t.some((t=>t))}),zs=Jo.define({combine:t=>t.some((t=>t))});class qs{constructor(t,e="nearest",n="nearest",o=5,i=5,r=!1){this.range=t,this.y=e,this.x=n,this.yMargin=o,this.xMargin=i,this.isSnapshot=r}map(t){return t.empty?this:new qs(this.range.map(t),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}clip(t){return this.range.to<=t.doc.length?this:new qs(Go.cursor(t.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}}const Us=Ei.define({map:(t,e)=>t.map(e)});function Bs(t,e,n){let o=t.facet(Ns);o.length?o[0](e):window.onerror?window.onerror(String(e),n,void 0,void 0,e):n?console.error(n+":",e):console.error(e)}const Fs=Jo.define({combine:t=>!t.length||t[0]});let Gs=0;const Hs=Jo.define();class Ks{constructor(t,e,n,o,i){this.id=t,this.create=e,this.domEventHandlers=n,this.domEventObservers=o,this.extension=i(this)}static define(t,e){const{eventHandlers:n,eventObservers:o,provide:i,decorations:r}=e||{};return new Ks(Gs++,t,n,o,(t=>{let e=[Hs.of(t)];return r&&e.push(na.of((e=>{let n=e.plugin(t);return n?r(n):Ts.none}))),i&&e.push(i(t)),e}))}static fromClass(t,e){return Ks.define((e=>new t(e)),e)}}class Js{constructor(t){this.spec=t,this.mustUpdate=null,this.value=null}update(t){if(this.value){if(this.mustUpdate){let t=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(t)}catch(e){if(Bs(t.state,e,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch(t){}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.create(t)}catch(e){Bs(t.state,e,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(t){var e;if(null===(e=this.value)||void 0===e?void 0:e.destroy)try{this.value.destroy()}catch(e){Bs(t.state,e,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const ta=Jo.define(),ea=Jo.define(),na=Jo.define(),oa=Jo.define(),ia=Jo.define();function ra(t,e,n){let o=t.state.facet(ia);if(!o.length)return o;let i=o.map((e=>e instanceof Function?e(t):e)),r=[];return Ui.spans(i,e,n,{point(){},span(t,e,n,o){let i=r;for(let r=n.length-1;r>=0;r--,o--){let s,a=n[r].spec.bidiIsolate;if(null!=a)if(o>0&&i.length&&(s=i[i.length-1]).to==t&&s.direction==a)s.to=e,i=s.inner;else{let n={from:t,to:e,direction:a,inner:[]};i.push(n),i=n.inner}}}}),r}const sa=Jo.define();function aa(t){let e=0,n=0,o=0,i=0;for(let r of t.state.facet(sa)){let s=r(t);s&&(null!=s.left&&(e=Math.max(e,s.left)),null!=s.right&&(n=Math.max(n,s.right)),null!=s.top&&(o=Math.max(o,s.top)),null!=s.bottom&&(i=Math.max(i,s.bottom)))}return{left:e,right:n,top:o,bottom:i}}const la=Jo.define();class ca{constructor(t,e,n,o){this.fromA=t,this.toA=e,this.fromB=n,this.toB=o}join(t){return new ca(Math.min(this.fromA,t.fromA),Math.max(this.toA,t.toA),Math.min(this.fromB,t.fromB),Math.max(this.toB,t.toB))}addToSet(t){let e=t.length,n=this;for(;e>0;e--){let o=t[e-1];if(!(o.fromA>n.toA)){if(o.toAc)break;i+=2}if(!a)return n;new ca(a.fromA,a.toA,a.fromB,a.toB).addToSet(n),r=a.toA,s=a.toB}}}class ua{constructor(t,e,n){this.view=t,this.state=e,this.transactions=n,this.flags=0,this.startState=t.state,this.changes=Xo.empty(this.startState.doc.length);for(let t of n)this.changes=this.changes.compose(t.changes);let o=[];this.changes.iterChangedRanges(((t,e,n,i)=>o.push(new ca(t,e,n,i)))),this.changedRanges=o}static create(t,e,n){return new ua(t,e,n)}get viewportChanged(){return(4&this.flags)>0}get heightChanged(){return(2&this.flags)>0}get geometryChanged(){return this.docChanged||(this.flags&(8|2))>0}get focusChanged(){return(1&this.flags)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some((t=>t.selection))}get empty(){return 0==this.flags&&0==this.transactions.length}}var ha=function(t){return t[t["LTR"]=0]="LTR",t[t["RTL"]=1]="RTL",t}(ha||(ha={}));const pa=ha.LTR,da=ha.RTL;function fa(t){let e=[];for(let n=0;n=e){if(s.level==n)return r;(i<0||(0!=o?o<0?s.frome:t[i].level>s.level))&&(i=r)}}if(i<0)throw new RangeError("Index out of range");return i}}function ba(t,e){if(t.length!=e.length)return!1;for(let n=0;nl&&s.push(new Oa(l,f.from,p)),Sa(t,f.direction==pa!=!(p%2)?o+1:o,i,f.inner,f.from,f.to,s),l=f.to}d=f.to}else{if(d==n||(e?wa[d]!=a:wa[d]==a))break;d++}h?xa(t,l,d,o+1,i,h,s):le;){let n=!0,u=!1;if(!c||l>r[c-1].to){let t=wa[l-1];t!=a&&(n=!1,u=16==t)}let h=n||1!=a?null:[],p=n?o:o+1,d=l;t:for(;;)if(c&&d==r[c-1].to){if(u)break t;let f=r[--c];if(!n)for(let t=f.from,n=c;;){if(t==e)break t;if(!n||r[n-1].to!=t){if(wa[t-1]==a)break t;break}t=r[--n].from}if(h)h.push(f);else{f.to=0;t-=3)if(ya[t+1]==-n){let e=ya[t+2],n=2&e?i:4&e?1&e?r:i:0;n&&(wa[s]=wa[ya[t]]=n),a=t;break}}else{if(189==ya.length)break;ya[a++]=s,ya[a++]=e,ya[a++]=l}else if(2==(o=wa[s])||1==o){let t=o==i;l=t?0:1;for(let e=a-3;e>=0;e-=3){let n=ya[e+2];if(2&n)break;if(t)ya[e+2]|=2;else{if(4&n)break;ya[e+2]|=4}}}}}(t,i,r,o,a),function(t,e,n,o){for(let i=0,r=o;i<=n.length;i++){let s=i?n[i-1].to:t,a=il;)e==r&&(e=n[--o].from,r=o?n[o-1].to:t),wa[--e]=u;l=s}else r=s,l++}}}(i,r,o,a),xa(t,i,r,e,n,o,s)}function ka(t,e,n){if(!t)return[new Oa(0,0,e==da?1:0)];if(e==pa&&!n.length&&!_a.test(t))return Pa(t.length);if(n.length)for(;t.length>wa.length;)wa[wa.length]=256;let o=[],i=e==pa?0:1;return Sa(t,i,i,n,0,t.length,o),o}function Pa(t){return[new Oa(0,t,0)]}let Ca="";function Ta(t,e,n,o,i){var r;let s=o.head-t.from,a=-1;if(0==s){if(!i||!t.length)return null;e[0].level!=n&&(s=e[0].side(!1,n),a=0)}else if(s==t.length){if(i)return null;let t=e[e.length-1];t.level!=n&&(s=t.side(!0,n),a=e.length-1)}a<0&&(a=Oa.find(e,s,null!==(r=o.bidiLevel)&&void 0!==r?r:-1,o.assoc));let l=e[a];s==l.side(i,n)&&(l=e[a+=i?1:-1],s=l.side(!i,n));let c=i==(l.dir==n),u=Ao(t.text,s,c);if(Ca=t.text.slice(Math.min(s,u),Math.max(s,u)),u>l.from&&u0&&n.length&&(n.every((({fromA:t,toA:e})=>ethis.minWidthTo))?(this.minWidthFrom=t.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=t.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0);let o=-1;this.view.inputState.composing>=0&&((null===(e=this.domChanged)||void 0===e?void 0:e.newSel)?o=this.domChanged.newSel.head:function(t,e){let n=!1;e&&t.iterChangedRanges(((t,o)=>{te.from&&(n=!0)}));return n}(t.changes,this.hasComposition)||t.selectionSet||(o=t.state.selection.main.head));let i=o>-1?function(t,e,n){let o=Aa(t,n);if(!o)return null;let{node:i,from:r,to:s}=o,a=i.nodeValue;if(/[\n\r]/.test(a))return null;if(t.state.doc.sliceString(o.from,o.to)!=a)return null;let l=e.invertedDesc,c=new ca(l.mapPos(r),l.mapPos(s),r,s),u=[];for(let e=i.parentNode;;e=e.parentNode){let n=Br.get(e);if(n instanceof ds)u.push({node:e,deco:n.mark});else{if(n instanceof Ss||"DIV"==e.nodeName&&e.parentNode==t.contentDOM)return{range:c,text:i,marks:u,line:e};if(e==t.contentDOM)return null;u.push({node:e,deco:new Es({inclusive:!0,attributes:xs(e),tagName:e.tagName.toLowerCase()})})}}}(this.view,t.changes,o):null;if(this.domChanged=null,this.hasComposition){this.markedForComposition.clear();let{from:e,to:o}=this.hasComposition;n=new ca(e,o,t.changes.mapPos(e,-1),t.changes.mapPos(o,1)).addToSet(n.slice())}this.hasComposition=i?{from:i.range.fromB,to:i.range.toB}:null,(us.ie||us.chrome)&&!i&&t&&t.state.doc.lines!=t.startState.doc.lines&&(this.forceSelection=!0);let r=function(t,e,n){let o=new ja;return Ui.compare(t,e,n,o),o.changes}(this.decorations,this.updateDeco(),t.changes);return n=ca.extendWithRanges(n,r),!!(7&this.flags||0!=n.length)&&(this.updateInner(n,t.startState.doc.length,i),t.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(t,e,n){this.view.viewState.mustMeasureContent=!0,this.updateChildren(t,e,n);let{observer:o}=this.view;o.ignore((()=>{this.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px",this.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let t=us.chrome||us.ios?{node:o.selectionRange.focusNode,written:!1}:void 0;this.sync(this.view,t),this.flags&=~7,t&&(t.written||o.selectionRange.focusNode!=t.node)&&(this.forceSelection=!0),this.dom.style.height=""})),this.markedForComposition.forEach((t=>t.flags&=~8));let i=[];if(this.view.viewport.from||this.view.viewport.to=0?o[t]:null;if(!e)break;let r,s,a,l,{fromA:c,toA:u,fromB:h,toB:p}=e;if(n&&n.range.fromBh){let t=Rs.build(this.view.state.doc,h,n.range.fromB,this.decorations,this.dynamicDecorationMap),e=Rs.build(this.view.state.doc,n.range.toB,p,this.decorations,this.dynamicDecorationMap);s=t.breakAtStart,a=t.openStart,l=e.openEnd;let o=this.compositionView(n);e.breakAtStart?o.breakAfter=1:e.content.length&&o.merge(o.length,o.length,e.content[0],!1,e.openStart,0)&&(o.breakAfter=e.content[0].breakAfter,e.content.shift()),t.content.length&&o.merge(0,0,t.content[t.content.length-1],!0,0,t.openEnd)&&t.content.pop(),r=t.content.concat(o).concat(e.content)}else({content:r,breakAtStart:s,openStart:a,openEnd:l}=Rs.build(this.view.state.doc,h,p,this.decorations,this.dynamicDecorationMap));let{i:d,off:f}=i.findPos(u,1),{i:g,off:m}=i.findPos(c,-1);Hr(this,g,m,d,f,r,s,a,l)}n&&this.fixCompositionDOM(n)}compositionView(t){let e=new ps(t.text.nodeValue);e.flags|=8;for(let{deco:n}of t.marks)e=new ds(n,[e],e.length);let n=new Ss;return n.append(e,0),n}fixCompositionDOM(t){let e=(t,e)=>{e.flags|=8|(e.children.some((t=>7&t.flags))?1:0),this.markedForComposition.add(e);let n=Br.get(t);n&&n!=e&&(n.dom=null),e.setDOM(t)},n=this.childPos(t.range.fromB,1),o=this.children[n.i];e(t.line,o);for(let i=t.marks.length-1;i>=-1;i--)n=o.childPos(n.off,1),o=o.children[n.i],e(i>=0?t.marks[i].node:t.text,o)}updateSelection(t=!1,e=!1){!t&&this.view.observer.selectionRange.focusNode||this.view.observer.readSelectionRange();let n=this.view.root.activeElement,o=n==this.dom,i=!o&&Er(this.dom,this.view.observer.selectionRange)&&!(n&&this.dom.contains(n));if(!(o||e||i))return;let r=this.forceSelection;this.forceSelection=!1;let s=this.view.state.selection.main,a=this.moveToLine(this.domAtPos(s.anchor)),l=s.empty?a:this.moveToLine(this.domAtPos(s.head));if(us.gecko&&s.empty&&!this.hasComposition&&(1==(c=a).node.nodeType&&c.node.firstChild&&(0==c.offset||"false"==c.node.childNodes[c.offset-1].contentEditable)&&(c.offset==c.node.childNodes.length||"false"==c.node.childNodes[c.offset].contentEditable))){let t=document.createTextNode("");this.view.observer.ignore((()=>a.node.insertBefore(t,a.node.childNodes[a.offset]||null))),a=l=new qr(t,0),r=!0}var c;let u=this.view.observer.selectionRange;!r&&u.focusNode&&Ar(a.node,a.offset,u.anchorNode,u.anchorOffset)&&Ar(l.node,l.offset,u.focusNode,u.focusOffset)||(this.view.observer.ignore((()=>{us.android&&us.chrome&&this.dom.contains(u.focusNode)&&function(t,e){for(let n=t;n&&n!=e;n=n.assignedSlot||n.parentNode)if(1==n.nodeType&&'false'==n.contentEditable)return!0;return!1}(u.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let t=Cr(this.view.root);if(t)if(s.empty){if(us.gecko){let t=(e=a.node,o=a.offset,1!=e.nodeType?0:(o&&"false"==e.childNodes[o-1].contentEditable?1:0)|(os.head&&([a,l]=[l,a]),e.setEnd(l.node,l.offset),e.setStart(a.node,a.offset),t.removeAllRanges(),t.addRange(e)}else;var e,o;i&&this.view.root.activeElement==this.dom&&(this.dom.blur(),n&&n.focus())})),this.view.observer.setSelectionRange(a,l)),this.impreciseAnchor=a.precise?null:new qr(u.anchorNode,u.anchorOffset),this.impreciseHead=l.precise?null:new qr(u.focusNode,u.focusOffset)}enforceCursorAssoc(){if(this.hasComposition)return;let{view:t}=this,e=t.state.selection.main,n=Cr(t.root),{anchorNode:o,anchorOffset:i}=t.observer.selectionRange;if(!(n&&e.empty&&e.assoc&&n.modify))return;let r=Ss.find(this,e.head);if(!r)return;let s=r.posAtStart;if(e.head==s||e.head==s+r.length)return;let a=this.coordsAt(e.head,-1),l=this.coordsAt(e.head,1);if(!a||!l||a.bottom>l.top)return;let c=this.domAtPos(e.head+e.assoc);n.collapse(c.node,c.offset),n.modify("move",e.assoc<0?"forward":"backward","lineboundary"),t.observer.readSelectionRange();let u=t.observer.selectionRange;t.docView.posFromDOM(u.anchorNode,u.anchorOffset)!=e.from&&n.collapse(o,i)}moveToLine(t){let e,n=this.dom;if(t.node!=n)return t;for(let o=t.offset;!e&&o=0;o--){let t=Br.get(n.childNodes[o]);t instanceof Ss&&(e=t.domAtPos(t.length))}return e?new qr(e.node,e.offset,!0):t}nearest(t){for(let e=t;e;){let t=Br.get(e);if(t&&t.rootView==this)return t;e=e.parentNode}return null}posFromDOM(t,e){let n=this.nearest(t);if(!n)throw new RangeError("Trying to find position for a DOM position outside of the document");return n.localPosFromDOM(t,e)+n.posAtStart}domAtPos(t){let{i:e,off:n}=this.childCursor().findPos(t,-1);for(;e=0;r--){let s=this.children[r],a=i-s.breakAfter,l=a-s.length;if(at||s.covers(1))&&(!n||s instanceof Ss&&!(n instanceof Ss&&e>=0))&&(n=s,o=l),i=l}return n?n.coordsAt(t-o,e):null}coordsForChar(t){let{i:e,off:n}=this.childPos(t,1),o=this.children[e];if(!(o instanceof Ss))return null;for(;o.children.length;){let{i:t,off:e}=o.childPos(n,1);for(;;t++){if(t==o.children.length)return null;if((o=o.children[t]).length)break}n=e}if(!(o instanceof ps))return null;let i=Ao(o.text,n);if(i==n)return null;let r=Xr(o.dom,n,i).getClientRects();for(let t=0;tMath.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,s=-1,a=this.view.textDirection==ha.LTR;for(let t=0,l=0;lo)break;if(t>=n){let n=c.dom.getBoundingClientRect();if(e.push(n.height),r){let e=c.dom.lastChild,o=e?Qr(e):[];if(o.length){let e=o[o.length-1],r=a?e.right-n.left:n.right-e.left;r>s&&(s=r,this.minWidth=i,this.minWidthFrom=t,this.minWidthTo=u)}}}t=u+c.breakAfter}return e}textDirectionAt(t){let{i:e}=this.childPos(t,1);return"rtl"==getComputedStyle(this.children[e].dom).direction?ha.RTL:ha.LTR}measureTextSize(){for(let t of this.children)if(t instanceof Ss){let e=t.measureTextSize();if(e)return e}let t,e,n,o=document.createElement("div");return o.className="cm-line",o.style.width="99999px",o.style.position="absolute",o.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore((()=>{this.dom.appendChild(o);let i=Qr(o.firstChild)[0];t=o.getBoundingClientRect().height,e=i?i.width/27:7,n=i?i.height:t,o.remove()})),{lineHeight:t,charWidth:e,textHeight:n}}childCursor(t=this.length){let e=this.children.length;return e&&(t-=this.children[--e].length),new Gr(this.children,t,e)}computeBlockGapDeco(){let t=[],e=this.view.viewState;for(let n=0,o=0;;o++){let i=o==e.viewports.length?null:e.viewports[o],r=i?i.from-1:this.length;if(r>n){let o=(e.lineBlockAt(r).bottom-e.lineBlockAt(n).top)/this.view.scaleY;t.push(Ts.replace({widget:new Qa(o),block:!0,inclusive:!0,isBlockGap:!0}).range(n,r))}if(!i)break;n=i.to+1}return Ts.set(t)}updateDeco(){let t=this.view.state.facet(na).map(((t,e)=>(this.dynamicDecorationMap[e]="function"==typeof t)?t(this.view):t));for(let e=t.length;en.anchor?-1:1);if(!o)return;!n.empty&&(e=this.coordsAt(n.anchor,n.anchor>n.head?-1:1))&&(o={left:Math.min(o.left,e.left),top:Math.min(o.top,e.top),right:Math.max(o.right,e.right),bottom:Math.max(o.bottom,e.bottom)});let i=aa(this.view),r={left:o.left-i.left,top:o.top-i.top,right:o.right+i.right,bottom:o.bottom+i.bottom},{offsetWidth:s,offsetHeight:a}=this.view.scrollDOM;!function(t,e,n,o,i,r,s,a){let l=t.ownerDocument,c=l.defaultView||window;for(let u=t,h=!1;u&&!h;)if(1==u.nodeType){let t,p=u==l.body,d=1,f=1;if(p)t=Mr(c);else{if(/^(fixed|sticky)$/.test(getComputedStyle(u).position)&&(h=!0),u.scrollHeight<=u.clientHeight&&u.scrollWidth<=u.clientWidth){u=u.assignedSlot||u.parentNode;continue}let e=u.getBoundingClientRect();({scaleX:d,scaleY:f}=Vr(u,e)),t={left:e.left,right:e.left+u.clientWidth*d,top:e.top,bottom:e.top+u.clientHeight*f}}let g=0,m=0;if("nearest"==i)e.top0&&e.bottom>t.bottom+m&&(m=e.bottom-t.bottom+m+s)):e.bottom>t.bottom&&(m=e.bottom-t.bottom+s,n<0&&e.top-m0&&e.right>t.right+g&&(g=e.right-t.right+g+r)):e.right>t.right&&(g=e.right-t.right+r,n<0&&e.left0))break;n=n.childNodes[o-1],o=Rr(n)}if(n>=0)for(let o=t,i=e;;){if(3==o.nodeType)return{node:o,offset:i};if(!(1==o.nodeType&&i=0))break;o=o.childNodes[i],i=0}return null}let ja=class{constructor(){this.changes=[]}compareRange(t,e){js(t,e,this.changes)}comparePoint(t,e){js(t,e,this.changes)}};function Ra(t,e){return e.left>t?e.left-t:Math.max(0,t-e.right)}function Za(t,e){return e.top>t?e.top-t:Math.max(0,t-e.bottom)}function Ma(t,e){return t.tope.top+1}function Va(t,e){return et.bottom?{top:t.top,left:t.left,right:t.right,bottom:e}:t}function Ia(t,e,n){let o,i,r,s,a,l,c,u,h=!1;for(let p=t.firstChild;p;p=p.nextSibling){let t=Qr(p);for(let d=0;dm||s==m&&r>g){o=p,i=f,r=g,s=m;let a=m?n0?d0)}0==g?n>f.bottom&&(!c||c.bottomf.top)&&(l=p,u=f):c&&Ma(c,f)?c=Da(c,f.bottom):u&&Ma(u,f)&&(u=Va(u,f.top))}}if(c&&c.bottom>=n?(o=a,i=c):u&&u.top<=n&&(o=l,i=u),!o)return{node:t,offset:0};let p=Math.max(i.left,Math.min(i.right,e));return 3==o.nodeType?Na(o,p,n):h&&"false"!=o.contentEditable?Ia(o,p,n):{node:t,offset:Array.prototype.indexOf.call(t.childNodes,o)+(e>=(i.left+i.right)/2?1:0)}}function Na(t,e,n){let o=t.nodeValue.length,i=-1,r=1e9,s=0;for(let a=0;an?c.top-n:n-c.bottom)-1;if(c.left-1<=e&&c.right+1>=e&&u=(c.left+c.right)/2,o=n;if(us.chrome||us.gecko){Xr(t,a).getBoundingClientRect().left==c.right&&(o=!n)}if(u<=0)return{node:t,offset:a+(o?1:0)};i=a+(o?1:0),r=u}}}return{node:t,offset:i>-1?i:s>0?t.nodeValue.length:0}}function Wa(t,e,n,o=-1){var i,r;let s,a=t.contentDOM.getBoundingClientRect(),l=a.top+t.viewState.paddingTop,{docHeight:c}=t.viewState,{x:u,y:h}=e,p=h-l;if(p<0)return 0;if(p>c)return t.state.doc.length;for(let e=t.viewState.heightOracle.textHeight/2,i=!1;s=t.elementAtHeight(p),s.type!=Cs.Text;)for(;p=o>0?s.bottom+e:s.top-e,!(p>=0&&p<=c);){if(i)return n?null:0;i=!0,o=-o}h=l+p;let d=s.from;if(dt.viewport.to)return t.viewport.to==t.state.doc.length?t.state.doc.length:n?null:Xa(t,a,s,u,h);let f=t.dom.ownerDocument,g=t.root.elementFromPoint?t.root:f,m=g.elementFromPoint(u,h);m&&!t.contentDOM.contains(m)&&(m=null),m||(u=Math.max(a.left+1,Math.min(a.right-1,u)),m=g.elementFromPoint(u,h),m&&!t.contentDOM.contains(m)&&(m=null));let v,y=-1;if(m&&0!=(null===(i=t.docView.nearest(m))||void 0===i?void 0:i.isEditable))if(f.caretPositionFromPoint){let t=f.caretPositionFromPoint(u,h);t&&({offsetNode:v,offset:y}=t)}else if(f.caretRangeFromPoint){let e=f.caretRangeFromPoint(u,h);e&&(({startContainer:v,startOffset:y}=e),(!t.contentDOM.contains(v)||us.safari&&function(t,e,n){let o;if(3!=t.nodeType||e!=(o=t.nodeValue.length))return!1;for(let e=t.nextSibling;e;e=e.nextSibling)if(1!=e.nodeType||"BR"!=e.nodeName)return!1;return Xr(t,o-1,o).getBoundingClientRect().left>n}(v,y,u)||us.chrome&&function(t,e,n){if(0!=e)return!1;for(let e=t;;){let t=e.parentNode;if(!t||1!=t.nodeType||t.firstChild!=e)return!1;if(t.classList.contains("cm-line"))break;e=t}let o=1==t.nodeType?t.getBoundingClientRect():Xr(t,0,Math.max(t.nodeValue.length,1)).getBoundingClientRect();return n-o.left>5}(v,y,u))&&(v=void 0))}if(!v||!t.docView.dom.contains(v)){let e=Ss.find(t.docView,d);if(!e)return p>s.top+s.height/2?s.to:s.from;({node:v,offset:y}=Ia(e.dom,u,h))}let _=t.docView.nearest(v);if(!_)return null;if(_.isWidget&&1==(null===(r=_.dom)||void 0===r?void 0:r.nodeType)){let t=_.dom.getBoundingClientRect();return e.y1.5*t.defaultLineHeight){let e=t.viewState.heightOracle.textHeight;r+=Math.floor((i-n.top-.5*(t.defaultLineHeight-e))/e)*t.viewState.heightOracle.lineLength}let s=t.state.sliceDoc(n.from,n.to);return n.from+sr(s,r,t.state.tabSize)}function La(t,e){let n=t.lineBlockAt(e);if(Array.isArray(n.type))for(let t of n.type)if(t.to>e||t.to==e&&(t.to==n.to||t.type==Cs.Text))return t;return n}function Ya(t,e,n,o){let i=t.state.doc.lineAt(e.head),r=t.bidiSpans(i),s=t.textDirectionAt(i.from);for(let a=e,l=null;;){let e=Ta(i,r,s,a,n),c=Ca;if(!e){if(i.number==(n?t.state.doc.lines:1))return a;c="\n",i=t.state.doc.line(i.number+(n?1:-1)),r=t.bidiSpans(i),e=Go.cursor(n?i.from:i.to)}if(l){if(!l(c))return a}else{if(!o)return e;l=o(c)}a=e}}function za(t,e,n){for(;;){let o=0;for(let i of t)i.between(e-1,e+1,((t,i,r)=>{if(e>t&&ee(t))),n.from,e.head>n.from?-1:1);return o==n.from?n:Go.cursor(o,onull)),us.gecko&&function(t){bl.has(t)||(bl.add(t),t.addEventListener("copy",(()=>{})),t.addEventListener("cut",(()=>{})))}(t.contentDOM.ownerDocument)}handleEvent(t){(function(t,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let n,o=e.target;o!=t.contentDOM;o=o.parentNode)if(!o||11==o.nodeType||(n=Br.get(o))&&n.ignoreEvent(e))return!1;return!0})(this.view,t)&&!this.ignoreDuringComposition(t)&&("keydown"==t.type&&this.keydown(t)||this.runHandlers(t.type,t))}runHandlers(t,e){let n=this.handlers[t];if(n){for(let t of n.observers)t(this.view,e);for(let t of n.handlers){if(e.defaultPrevented)break;if(t(this.view,e)){e.preventDefault();break}}}}ensureHandlers(t){let e=Fa(t),n=this.handlers,o=this.view.contentDOM;for(let t in e)if("scroll"!=t){let i=!e[t].handlers.length,r=n[t];r&&i!=!r.handlers.length&&(o.removeEventListener(t,this.handleEvent),r=null),r||o.addEventListener(t,this.handleEvent,{passive:i})}for(let t in n)"scroll"==t||e[t]||o.removeEventListener(t,this.handleEvent);this.handlers=e}keydown(t){if(this.lastKeyCode=t.keyCode,this.lastKeyTime=Date.now(),9==t.keyCode&&Date.now()e.keyCode==t.keyCode)))&&!t.ctrlKey||Ha.indexOf(t.key)>-1&&t.ctrlKey&&!t.shiftKey)?(229!=t.keyCode&&this.view.observer.forceFlush(),!1):(this.pendingIOSKey=e||t,setTimeout((()=>this.flushIOSKey()),250),!0)}flushIOSKey(){let t=this.pendingIOSKey;return!!t&&(this.pendingIOSKey=void 0,Lr(this.view.contentDOM,t.key,t.keyCode))}ignoreDuringComposition(t){return!!/^key/.test(t.type)&&(this.composing>0||!!(us.safari&&!us.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100)&&(this.compositionPendingKey=!1,!0))}startMouseSelection(t){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=t}update(t){this.mouseSelection&&this.mouseSelection.update(t),this.draggedContent&&t.docChanged&&(this.draggedContent=this.draggedContent.map(t.changes)),t.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}function Ba(t,e){return(n,o)=>{try{return e.call(t,o,n)}catch(t){Bs(n.state,t)}}}function Fa(t){let e=Object.create(null);function n(t){return e[t]||(e[t]={observers:[],handlers:[]})}for(let e of t){let t=e.spec;if(t&&t.domEventHandlers)for(let o in t.domEventHandlers){let i=t.domEventHandlers[o];i&&n(o).handlers.push(Ba(e.value,i))}if(t&&t.domEventObservers)for(let o in t.domEventObservers){let i=t.domEventObservers[o];i&&n(o).observers.push(Ba(e.value,i))}}for(let t in nl)n(t).handlers.push(nl[t]);for(let t in ol)n(t).observers.push(ol[t]);return e}const Ga=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],Ha="dthko",Ka=[16,17,18,20,91,92,224,225],Ja=6;function tl(t){return.7*Math.max(0,t)+8}class el{constructor(t,e,n,o){this.view=t,this.startEvent=e,this.style=n,this.mustSelect=o,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=e,this.scrollParent=function(t){let e=t.ownerDocument;for(let n=t.parentNode;n&&n!=e.body;)if(1==n.nodeType){if(n.scrollHeight>n.clientHeight||n.scrollWidth>n.clientWidth)return n;n=n.assignedSlot||n.parentNode}else{if(11!=n.nodeType)break;n=n.host}return null}(t.contentDOM),this.atoms=t.state.facet(oa).map((e=>e(t)));let i=t.contentDOM.ownerDocument;i.addEventListener("mousemove",this.move=this.move.bind(this)),i.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=e.shiftKey,this.multiple=t.state.facet(Wi.allowMultipleSelections)&&function(t,e){let n=t.state.facet(Vs);return n.length?n[0](e):us.mac?e.metaKey:e.ctrlKey}(t,e),this.dragging=!(!function(t,e){let{main:n}=t.state.selection;if(n.empty)return!1;let o=Cr(t.root);if(!o||0==o.rangeCount)return!0;let i=o.getRangeAt(0).getClientRects();for(let t=0;t=e.clientX&&n.top<=e.clientY&&n.bottom>=e.clientY)return!0}return!1}(t,e)||1!=gl(e))&&null}start(t){!1===this.dragging&&this.select(t)}move(t){var e;if(0==t.buttons)return this.destroy();if(this.dragging||null==this.dragging&&function(t,e){return Math.max(Math.abs(t.clientX-e.clientX),Math.abs(t.clientY-e.clientY))}(this.startEvent,t)<10)return;this.select(this.lastEvent=t);let n=0,o=0,i=(null===(e=this.scrollParent)||void 0===e?void 0:e.getBoundingClientRect())||{left:0,top:0,right:this.view.win.innerWidth,bottom:this.view.win.innerHeight},r=aa(this.view);t.clientX-r.left<=i.left+Ja?n=-tl(i.left-t.clientX):t.clientX+r.right>=i.right-Ja&&(n=tl(t.clientX-i.right)),t.clientY-r.top<=i.top+Ja?o=-tl(i.top-t.clientY):t.clientY+r.bottom>=i.bottom-Ja&&(o=tl(t.clientY-i.bottom)),this.setScrollSpeed(n,o)}up(t){null==this.dragging&&this.select(this.lastEvent),this.dragging||t.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let t=this.view.contentDOM.ownerDocument;t.removeEventListener("mousemove",this.move),t.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=this.view.inputState.draggedContent=null}setScrollSpeed(t,e){this.scrollSpeed={x:t,y:e},t||e?this.scrolling<0&&(this.scrolling=setInterval((()=>this.scroll()),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){this.scrollParent?(this.scrollParent.scrollLeft+=this.scrollSpeed.x,this.scrollParent.scrollTop+=this.scrollSpeed.y):this.view.win.scrollBy(this.scrollSpeed.x,this.scrollSpeed.y),!1===this.dragging&&this.select(this.lastEvent)}skipAtoms(t){let e=null;for(let n=0;nthis.select(this.lastEvent)),20)}}const nl=Object.create(null),ol=Object.create(null),il=us.ie&&us.ie_version<15||us.ios&&us.webkit_version<604;function rl(t,e){let n,{state:o}=t,i=1,r=o.toText(e),s=r.lines==o.selection.ranges.length;if(null!=vl&&o.selection.ranges.every((t=>t.empty))&&vl==r.toString()){let t=-1;n=o.changeByRange((n=>{let a=o.doc.lineAt(n.from);if(a.from==t)return{range:n};t=a.from;let l=o.toText((s?r.line(i++).text:e)+o.lineBreak);return{changes:{from:a.from,insert:l},range:Go.cursor(n.from+l.length)}}))}else n=s?o.changeByRange((t=>{let e=r.line(i++);return{changes:{from:t.from,to:t.to,insert:e.text},range:Go.cursor(t.from+e.length)}})):o.replaceSelection(r);t.dispatch(n,{userEvent:"input.paste",scrollIntoView:!0})}function sl(t,e,n,o){if(1==o)return Go.cursor(e,n);if(2==o)return function(t,e,n=1){let o=t.charCategorizer(e),i=t.doc.lineAt(e),r=e-i.from;if(0==i.length)return Go.cursor(e);0==r?n=1:r==i.length&&(n=-1);let s=r,a=r;n<0?s=Ao(i.text,r,!1):a=Ao(i.text,r);let l=o(i.text.slice(s,a));for(;s>0;){let t=Ao(i.text,s,!1);if(o(i.text.slice(t,s))!=l)break;s=t}for(;a{t.inputState.lastScrollTop=t.scrollDOM.scrollTop,t.inputState.lastScrollLeft=t.scrollDOM.scrollLeft},nl.keydown=(t,e)=>(t.inputState.setSelectionOrigin("select"),27==e.keyCode&&(t.inputState.lastEscPress=Date.now()),!1),ol.touchstart=(t,e)=>{t.inputState.lastTouchTime=Date.now(),t.inputState.setSelectionOrigin("select.pointer")},ol.touchmove=t=>{t.inputState.setSelectionOrigin("select.pointer")},nl.mousedown=(t,e)=>{if(t.observer.flush(),t.inputState.lastTouchTime>Date.now()-2e3)return!1;let n=null;for(let o of t.state.facet(Is))if(n=o(t,e),n)break;if(n||0!=e.button||(n=function(t,e){let n=ul(t,e),o=gl(e),i=t.state.selection;return{update(t){t.docChanged&&(n.pos=t.changes.mapPos(n.pos),i=i.map(t.changes))},get(e,r,s){let a,l=ul(t,e),c=sl(t,l.pos,l.bias,o);if(n.pos!=l.pos&&!r){let e=sl(t,n.pos,n.bias,o),i=Math.min(e.from,c.from),r=Math.max(e.to,c.to);c=i1&&(a=function(t,e){for(let n=0;n=e)return Go.create(t.ranges.slice(0,n).concat(t.ranges.slice(n+1)),t.mainIndex==n?0:t.mainIndex-(t.mainIndex>n?1:0))}return null}(i,l.pos))?a:s?i.addRange(c):Go.create([c])}}}(t,e)),n){let o=!t.hasFocus;t.inputState.startMouseSelection(new el(t,e,n,o)),o&&t.observer.ignore((()=>Wr(t.contentDOM)));let i=t.inputState.mouseSelection;if(i)return i.start(e),!1===i.dragging}return!1};let al=(t,e)=>t>=e.top&&t<=e.bottom,ll=(t,e,n)=>al(e,n)&&t>=n.left&&t<=n.right;function cl(t,e,n,o){let i=Ss.find(t.docView,e);if(!i)return 1;let r=e-i.posAtStart;if(0==r)return 1;if(r==i.length)return-1;let s=i.coordsAt(r,-1);if(s&&ll(n,o,s))return-1;let a=i.coordsAt(r,1);return a&&ll(n,o,a)?1:s&&al(o,s)?-1:1}function ul(t,e){let n=t.posAtCoords({x:e.clientX,y:e.clientY},!1);return{pos:n,bias:cl(t,n,e.clientX,e.clientY)}}const hl=us.ie&&us.ie_version<=11;let pl=null,dl=0,fl=0;function gl(t){if(!hl)return t.detail;let e=pl,n=fl;return pl=t,fl=Date.now(),dl=!e||n>Date.now()-400&&Math.abs(e.clientX-t.clientX)<2&&Math.abs(e.clientY-t.clientY)<2?(dl+1)%3:1}function ml(t,e,n,o){if(!n)return;let i=t.posAtCoords({x:e.clientX,y:e.clientY},!1),{draggedContent:r}=t.inputState,s=o&&r&&function(t,e){let n=t.state.facet(Ds);return n.length?n[0](e):us.mac?!e.altKey:!e.ctrlKey}(t,e)?{from:r.from,to:r.to}:null,a={from:i,insert:n},l=t.state.changes(s?[s,a]:a);t.focus(),t.dispatch({changes:l,selection:{anchor:l.mapPos(i,-1),head:l.mapPos(i,1)},userEvent:s?"move.drop":"input.drop"}),t.inputState.draggedContent=null}nl.dragstart=(t,e)=>{let{selection:{main:n}}=t.state;if(e.target.draggable){let o=t.docView.nearest(e.target);if(o&&o.isWidget){let t=o.posAtStart,e=t+o.length;(t>=n.to||e<=n.from)&&(n=Go.range(t,e))}}let{inputState:o}=t;return o.mouseSelection&&(o.mouseSelection.dragging=!0),o.draggedContent=n,e.dataTransfer&&(e.dataTransfer.setData("Text",t.state.sliceDoc(n.from,n.to)),e.dataTransfer.effectAllowed="copyMove"),!1},nl.dragend=t=>(t.inputState.draggedContent=null,!1),nl.drop=(t,e)=>{if(!e.dataTransfer)return!1;if(t.state.readOnly)return!0;let n=e.dataTransfer.files;if(n&&n.length){let o=Array(n.length),i=0,r=()=>{++i==n.length&&ml(t,e,o.filter((t=>null!=t)).join(t.state.lineBreak),!1)};for(let t=0;t{/[\x00-\x08\x0e-\x1f]{2}/.test(e.result)||(o[t]=e.result),r()},e.readAsText(n[t])}return!0}{let n=e.dataTransfer.getData("Text");if(n)return ml(t,e,n,!0),!0}return!1},nl.paste=(t,e)=>{if(t.state.readOnly)return!0;t.observer.flush();let n=il?null:e.clipboardData;return n?(rl(t,n.getData("text/plain")||n.getData("text/uri-text")),!0):(function(t){let e=t.dom.parentNode;if(!e)return;let n=e.appendChild(document.createElement("textarea"));n.style.cssText="position: fixed; left: -10000px; top: 10px",n.focus(),setTimeout((()=>{t.focus(),n.remove(),rl(t,n.value)}),50)}(t),!1)};let vl=null;nl.copy=nl.cut=(t,e)=>{let{text:n,ranges:o,linewise:i}=function(t){let e=[],n=[],o=!1;for(let o of t.selection.ranges)o.empty||(e.push(t.sliceDoc(o.from,o.to)),n.push(o));if(!e.length){let i=-1;for(let{from:o}of t.selection.ranges){let r=t.doc.lineAt(o);r.number>i&&(e.push(r.text),n.push({from:r.from,to:Math.min(t.doc.length,r.to+1)})),i=r.number}o=!0}return{text:e.join(t.lineBreak),ranges:n,linewise:o}}(t.state);if(!n&&!i)return!1;vl=i?n:null,"cut"!=e.type||t.state.readOnly||t.dispatch({changes:o,scrollIntoView:!0,userEvent:"delete.cut"});let r=il?null:e.clipboardData;return r?(r.clearData(),r.setData("text/plain",n),!0):(function(t,e){let n=t.dom.parentNode;if(!n)return;let o=n.appendChild(document.createElement("textarea"));o.style.cssText="position: fixed; left: -10000px; top: 10px",o.value=e,o.focus(),o.selectionEnd=e.length,o.selectionStart=0,setTimeout((()=>{o.remove(),t.focus()}),50)}(t,n),!1)};const yl=Pi.define();function _l(t,e){let n=[];for(let o of t.facet(Ls)){let i=o(t,e);i&&n.push(i)}return n?t.update({effects:n,annotations:yl.of(!0)}):null}function Ol(t){setTimeout((()=>{let e=t.hasFocus;if(e!=t.inputState.notifiedFocused){let n=_l(t.state,e);n?t.dispatch(n):t.update([])}}),10)}ol.focus=t=>{t.inputState.lastFocusTime=Date.now(),t.scrollDOM.scrollTop||!t.inputState.lastScrollTop&&!t.inputState.lastScrollLeft||(t.scrollDOM.scrollTop=t.inputState.lastScrollTop,t.scrollDOM.scrollLeft=t.inputState.lastScrollLeft),Ol(t)},ol.blur=t=>{t.observer.clearSelectionRange(),Ol(t)},ol.compositionstart=ol.compositionupdate=t=>{null==t.inputState.compositionFirstChange&&(t.inputState.compositionFirstChange=!0),t.inputState.composing<0&&(t.inputState.composing=0)},ol.compositionend=t=>{t.inputState.composing=-1,t.inputState.compositionEndedAt=Date.now(),t.inputState.compositionPendingKey=!0,t.inputState.compositionPendingChange=t.observer.pendingRecords().length>0,t.inputState.compositionFirstChange=null,us.chrome&&us.android?t.observer.flushSoon():t.inputState.compositionPendingChange?Promise.resolve().then((()=>t.observer.flush())):setTimeout((()=>{t.inputState.composing<0&&t.docView.hasComposition&&t.update([])}),50)},ol.contextmenu=t=>{t.inputState.lastContextMenu=Date.now()},nl.beforeinput=(t,e)=>{var n;let o;if(us.chrome&&us.android&&(o=Ga.find((t=>t.inputType==e.inputType)))&&(t.observer.delayAndroidKey(o.key,o.keyCode),"Backspace"==o.key||"Delete"==o.key)){let e=(null===(n=window.visualViewport)||void 0===n?void 0:n.height)||0;setTimeout((()=>{var n;((null===(n=window.visualViewport)||void 0===n?void 0:n.height)||0)>e+10&&t.hasFocus&&(t.contentDOM.blur(),t.focus())}),100)}return!1};const bl=new Set;const wl=["pre-wrap","normal","pre-line","break-spaces"];class xl{constructor(t){this.lineWrapping=t,this.doc=vo.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30,this.heightChanged=!1}heightForGap(t,e){let n=this.doc.lineAt(e).number-this.doc.lineAt(t).number+1;return this.lineWrapping&&(n+=Math.max(0,Math.ceil((e-t-n*this.lineLength*.5)/this.lineLength))),this.lineHeight*n}heightForLine(t){if(!this.lineWrapping)return this.lineHeight;return(1+Math.max(0,Math.ceil((t-this.lineLength)/(this.lineLength-5))))*this.lineHeight}setDoc(t){return this.doc=t,this}mustRefreshForWrapping(t){return wl.indexOf(t)>-1!=this.lineWrapping}mustRefreshForHeights(t){let e=!1;for(let n=0;n-1,a=Math.round(e)!=Math.round(this.lineHeight)||this.lineWrapping!=s;if(this.lineWrapping=s,this.lineHeight=e,this.charWidth=n,this.textHeight=o,this.lineLength=i,a){this.heightSamples={};for(let t=0;t0}set outdated(t){this.flags=(t?2:0)|~2&this.flags}setHeight(t,e){this.height!=e&&(Math.abs(this.height-e)>Cl&&(t.heightChanged=!0),this.height=e)}replace(t,e,n){return Tl.of(n)}decomposeLeft(t,e){e.push(this)}decomposeRight(t,e){e.push(this)}applyChanges(t,e,n,o){let i=this,r=n.doc;for(let s=o.length-1;s>=0;s--){let{fromA:a,toA:l,fromB:c,toB:u}=o[s],h=i.lineAt(a,Pl.ByPosNoHeight,n.setDoc(e),0,0),p=h.to>=l?h:i.lineAt(l,Pl.ByPosNoHeight,n,0,0);for(u+=p.to-l,l=p.to;s>0&&h.from<=o[s-1].toA;)a=o[s-1].fromA,c=o[s-1].fromB,s--,a2*i){let i=t[e-1];i.break?t.splice(--e,1,i.left,null,i.right):t.splice(--e,1,i.left,i.right),n+=1+i.break,o-=i.size}else{if(!(i>2*o))break;{let e=t[n];e.break?t.splice(n,1,e.left,null,e.right):t.splice(n,1,e.left,e.right),n+=2+e.break,i-=e.size}}else if(o=i&&r(this.blockAt(0,n,o,i))}updateHeight(t,e=0,n=!1,o){return o&&o.from<=e&&o.more&&this.setHeight(t,o.heights[o.index++]),this.outdated=!1,this}toString(){return`block(${this.length})`}}class Ql extends El{constructor(t,e){super(t,e,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0}blockAt(t,e,n,o){return new kl(o,this.length,n,this.height,this.breaks)}replace(t,e,n){let o=n[0];return 1==n.length&&(o instanceof Ql||o instanceof Al&&4&o.flags)&&Math.abs(this.length-o.length)<10?(o instanceof Al?o=new Ql(o.length,this.height):o.height=this.height,this.outdated||(o.outdated=!1),o):Tl.of(n)}updateHeight(t,e=0,n=!1,o){return o&&o.from<=e&&o.more?this.setHeight(t,o.heights[o.index++]):(n||this.outdated)&&this.setHeight(t,Math.max(this.widgetHeight,t.heightForLine(this.length-this.collapsed))+this.breaks*t.lineHeight),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class Al extends Tl{constructor(t){super(t,0)}heightMetrics(t,e){let n,o=t.doc.lineAt(e).number,i=t.doc.lineAt(e+this.length).number,r=i-o+1,s=0;if(t.lineWrapping){let e=Math.min(this.height,t.lineHeight*r);n=e/r,this.length>r+1&&(s=(this.height-e)/(this.length-r-1))}else n=this.height/r;return{firstLine:o,lastLine:i,perLine:n,perChar:s}}blockAt(t,e,n,o){let{firstLine:i,lastLine:r,perLine:s,perChar:a}=this.heightMetrics(e,o);if(e.lineWrapping){let i=o+Math.round(Math.max(0,Math.min(1,(t-n)/this.height))*this.length),r=e.doc.lineAt(i),l=s+r.length*a,c=Math.max(n,t-l/2);return new kl(r.from,r.length,c,l,0)}{let o=Math.max(0,Math.min(r-i,Math.floor((t-n)/s))),{from:a,length:l}=e.doc.line(i+o);return new kl(a,l,n+s*o,s,0)}}lineAt(t,e,n,o,i){if(e==Pl.ByHeight)return this.blockAt(t,n,o,i);if(e==Pl.ByPosNoHeight){let{from:e,to:o}=n.doc.lineAt(t);return new kl(e,o-e,0,0,0)}let{firstLine:r,perLine:s,perChar:a}=this.heightMetrics(n,i),l=n.doc.lineAt(t),c=s+l.length*a,u=l.number-r,h=o+s*u+a*(l.from-i-u);return new kl(l.from,l.length,Math.max(o,Math.min(h,o+this.height-c)),c,0)}forEachLine(t,e,n,o,i,r){t=Math.max(t,i),e=Math.min(e,i+this.length);let{firstLine:s,perLine:a,perChar:l}=this.heightMetrics(n,i);for(let c=t,u=o;c<=e;){let e=n.doc.lineAt(c);if(c==t){let n=e.number-s;u+=a*n+l*(t-i-n)}let o=a+l*e.length;r(new kl(e.from,e.length,u,o,0)),u+=o,c=e.to+1}}replace(t,e,n){let o=this.length-e;if(o>0){let t=n[n.length-1];t instanceof Al?n[n.length-1]=new Al(t.length+o):n.push(null,new Al(o-1))}if(t>0){let e=n[0];e instanceof Al?n[0]=new Al(t+e.length):n.unshift(new Al(t-1),null)}return Tl.of(n)}decomposeLeft(t,e){e.push(new Al(t-1),null)}decomposeRight(t,e){e.push(null,new Al(this.length-t-1))}updateHeight(t,e=0,n=!1,o){let i=e+this.length;if(o&&o.from<=e+this.length&&o.more){let n=[],r=Math.max(e,o.from),s=-1;for(o.from>e&&n.push(new Al(o.from-e-1).updateHeight(t,e));r<=i&&o.more;){let e=t.doc.lineAt(r).length;n.length&&n.push(null);let i=o.heights[o.index++];-1==s?s=i:Math.abs(i-s)>=Cl&&(s=-2);let a=new Ql(e,i);a.outdated=!1,n.push(a),r+=e+1}r<=i&&n.push(null,new Al(i-r).updateHeight(t,r));let a=Tl.of(n);return(s<0||Math.abs(a.height-this.height)>=Cl||Math.abs(s-this.heightMetrics(t,e).perLine)>=Cl)&&(t.heightChanged=!0),a}return(n||this.outdated)&&(this.setHeight(t,t.heightForGap(e,e+this.length)),this.outdated=!1),this}toString(){return`gap(${this.length})`}}class $l extends Tl{constructor(t,e,n){super(t.length+e+n.length,t.height+n.height,e|(t.outdated||n.outdated?2:0)),this.left=t,this.right=n,this.size=t.size+n.size}get break(){return 1&this.flags}blockAt(t,e,n,o){let i=n+this.left.height;return ts))return l;let c=e==Pl.ByPosNoHeight?Pl.ByPosNoHeight:Pl.ByPos;return a?l.join(this.right.lineAt(s,c,n,r,s)):this.left.lineAt(s,c,n,o,i).join(l)}forEachLine(t,e,n,o,i,r){let s=o+this.left.height,a=i+this.left.length+this.break;if(this.break)t=a&&this.right.forEachLine(t,e,n,s,a,r);else{let l=this.lineAt(a,Pl.ByPos,n,o,i);t=t&&l.from<=e&&r(l),e>l.to&&this.right.forEachLine(l.to+1,e,n,s,a,r)}}replace(t,e,n){let o=this.left.length+this.break;if(ethis.left.length)return this.balanced(this.left,this.right.replace(t-o,e-o,n));let i=[];t>0&&this.decomposeLeft(t,i);let r=i.length;for(let t of n)i.push(t);if(t>0&&jl(i,r-1),e=n&&e.push(null)),t>n&&this.right.decomposeLeft(t-n,e)}decomposeRight(t,e){let n=this.left.length,o=n+this.break;if(t>=o)return this.right.decomposeRight(t-o,e);t2*e.size||e.size>2*t.size?Tl.of(this.break?[t,null,e]:[t,e]):(this.left=t,this.right=e,this.height=t.height+e.height,this.outdated=t.outdated||e.outdated,this.size=t.size+e.size,this.length=t.length+this.break+e.length,this)}updateHeight(t,e=0,n=!1,o){let{left:i,right:r}=this,s=e+i.length+this.break,a=null;return o&&o.from<=e+i.length&&o.more?a=i=i.updateHeight(t,e,n,o):i.updateHeight(t,e,n),o&&o.from<=s+r.length&&o.more?a=r=r.updateHeight(t,s,n,o):r.updateHeight(t,s,n),a?this.balanced(i,r):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function jl(t,e){let n,o;null==t[e]&&(n=t[e-1])instanceof Al&&(o=t[e+1])instanceof Al&&t.splice(e-1,3,new Al(n.length+1+o.length))}const Rl=5;class Zl{constructor(t,e){this.pos=t,this.oracle=e,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=t}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(t,e){if(this.lineStart>-1){let t=Math.min(e,this.lineEnd),n=this.nodes[this.nodes.length-1];n instanceof Ql?n.length+=t-this.pos:(t>this.pos||!this.isCovered)&&this.nodes.push(new Ql(t-this.pos,-1)),this.writtenTo=t,e>t&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=e}point(t,e,n){if(t=Rl)&&this.addLineDeco(o,i,r)}else e>t&&this.span(t,e);this.lineEnd>-1&&this.lineEnd-1)return;let{from:t,to:e}=this.oracle.doc.lineAt(this.pos);this.lineStart=t,this.lineEnd=e,this.writtenTot&&this.nodes.push(new Ql(this.pos-t,-1)),this.writtenTo=this.pos}blankContent(t,e){let n=new Al(e-t);return this.oracle.doc.lineAt(t).to==e&&(n.flags|=4),n}ensureLine(){this.enterLine();let t=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(t instanceof Ql)return t;let e=new Ql(0,-1);return this.nodes.push(e),e}addBlock(t){this.enterLine();let e=t.deco;e&&e.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(t),this.writtenTo=this.pos=this.pos+t.length,e&&e.endSide>0&&(this.covering=t)}addLineDeco(t,e,n){let o=this.ensureLine();o.length+=n,o.collapsed+=n,o.widgetHeight=Math.max(o.widgetHeight,t),o.breaks+=e,this.writtenTo=this.pos=this.pos+n}finish(t){let e=0==this.nodes.length?null:this.nodes[this.nodes.length-1];!(this.lineStart>-1)||e instanceof Ql||this.isCovered?(this.writtenTon.clientHeight||n.scrollWidth>n.clientWidth)&&"visible"!=o.overflow){let o=n.getBoundingClientRect();r=Math.max(r,o.left),s=Math.min(s,o.right),a=Math.max(a,o.top),l=e==t.parentNode?o.bottom:Math.min(l,o.bottom)}e="absolute"==o.position||"fixed"==o.position?n.offsetParent:n.parentNode}else{if(11!=e.nodeType)break;e=e.host}return{left:r-n.left,right:Math.max(r,s)-n.left,top:a-(n.top+e),bottom:Math.max(a,l)-(n.top+e)}}function Dl(t,e){let n=t.getBoundingClientRect();return{left:0,right:n.right-n.left,top:e,bottom:n.bottom-(n.top+e)}}class Il{constructor(t,e,n){this.from=t,this.to=e,this.size=n}static same(t,e){if(t.length!=e.length)return!1;for(let n=0;n"function"!=typeof t&&"cm-lineWrapping"==t.class));this.heightOracle=new xl(e),this.stateDeco=t.facet(na).filter((t=>"function"!=typeof t)),this.heightMap=Tl.empty().applyChanges(this.stateDeco,vo.empty,this.heightOracle.setDoc(t.doc),[new ca(0,0,0,t.doc.length)]),this.viewport=this.getViewport(0,null),this.updateViewportLines(),this.updateForViewport(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=Ts.set(this.lineGaps.map((t=>t.draw(this,!1)))),this.computeVisibleRanges()}updateForViewport(){let t=[this.viewport],{main:e}=this.state.selection;for(let n=0;n<=1;n++){let o=n?e.head:e.anchor;if(!t.some((({from:t,to:e})=>o>=t&&o<=e))){let{from:e,to:n}=this.lineBlockAt(o);t.push(new Xl(e,n))}}this.viewports=t.sort(((t,e)=>t.from-e.from)),this.scaler=this.heightMap.height<=7e6?ql:new Ul(this.heightOracle,this.heightMap,this.viewports)}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,(t=>{this.viewportLines.push(1==this.scaler.scale?t:Bl(t,this.scaler))}))}update(t,e=null){this.state=t.state;let n=this.stateDeco;this.stateDeco=this.state.facet(na).filter((t=>"function"!=typeof t));let o=t.changedRanges,i=ca.extendWithRanges(o,function(t,e,n){let o=new Ml;return Ui.compare(t,e,n,o,0),o.changes}(n,this.stateDeco,t?t.changes:Xo.empty(this.state.doc.length))),r=this.heightMap.height,s=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollTop);this.heightMap=this.heightMap.applyChanges(this.stateDeco,t.startState.doc,this.heightOracle.setDoc(this.state.doc),i),this.heightMap.height!=r&&(t.flags|=2),s?(this.scrollAnchorPos=t.changes.mapPos(s.from,-1),this.scrollAnchorHeight=s.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=this.heightMap.height);let a=i.length?this.mapViewport(this.viewport,t.changes):this.viewport;(e&&(e.range.heada.to)||!this.viewportIsAppropriate(a))&&(a=this.getViewport(0,e));let l=!t.changes.empty||2&t.flags||a.from!=this.viewport.from||a.to!=this.viewport.to;this.viewport=a,this.updateForViewport(),l&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>2e3<<1)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,t.changes))),t.flags|=this.computeVisibleRanges(),e&&(this.scrollTarget=e),!this.mustEnforceCursorAssoc&&t.selectionSet&&t.view.lineWrapping&&t.state.selection.main.empty&&t.state.selection.main.assoc&&!t.state.facet(zs)&&(this.mustEnforceCursorAssoc=!0)}measure(t){let e=t.contentDOM,n=window.getComputedStyle(e),o=this.heightOracle,i=n.whiteSpace;this.defaultTextDirection="rtl"==n.direction?ha.RTL:ha.LTR;let r=this.heightOracle.mustRefreshForWrapping(i),s=e.getBoundingClientRect(),a=r||this.mustMeasureContent||this.contentDOMHeight!=s.height;this.contentDOMHeight=s.height,this.mustMeasureContent=!1;let l=0,c=0;if(s.width&&s.height){let{scaleX:t,scaleY:n}=Vr(e,s);this.scaleX==t&&this.scaleY==n||(this.scaleX=t,this.scaleY=n,l|=8,r=a=!0)}let u=(parseInt(n.paddingTop)||0)*this.scaleY,h=(parseInt(n.paddingBottom)||0)*this.scaleY;this.paddingTop==u&&this.paddingBottom==h||(this.paddingTop=u,this.paddingBottom=h,l|=8|2),this.editorWidth!=t.scrollDOM.clientWidth&&(o.lineWrapping&&(a=!0),this.editorWidth=t.scrollDOM.clientWidth,l|=8);let p=t.scrollDOM.scrollTop*this.scaleY;this.scrollTop!=p&&(this.scrollAnchorHeight=-1,this.scrollTop=p),this.scrolledToBottom=zr(t.scrollDOM);let d=(this.printing?Dl:Vl)(e,this.paddingTop),f=d.top-this.pixelViewport.top,g=d.bottom-this.pixelViewport.bottom;this.pixelViewport=d;let m=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(m!=this.inView&&(this.inView=m,m&&(a=!0)),!this.inView&&!this.scrollTarget)return 0;let v=s.width;if(this.contentDOMWidth==v&&this.editorHeight==t.scrollDOM.clientHeight||(this.contentDOMWidth=s.width,this.editorHeight=t.scrollDOM.clientHeight,l|=8),a){let e=t.docView.measureVisibleLineHeights(this.viewport);if(o.mustRefreshForHeights(e)&&(r=!0),r||o.lineWrapping&&Math.abs(v-this.contentDOMWidth)>o.charWidth){let{lineHeight:n,charWidth:s,textHeight:a}=t.docView.measureTextSize();r=n>0&&o.refresh(i,n,s,a,v/s,e),r&&(t.docView.minWidth=0,l|=8)}f>0&&g>0?c=Math.max(f,g):f<0&&g<0&&(c=Math.min(f,g)),o.heightChanged=!1;for(let n of this.viewports){let i=n.from==this.viewport.from?e:t.docView.measureVisibleLineHeights(n);this.heightMap=(r?Tl.empty().applyChanges(this.stateDeco,vo.empty,this.heightOracle,[new ca(0,0,0,t.state.doc.length)]):this.heightMap).updateHeight(o,0,r,new Sl(n.from,i))}o.heightChanged&&(l|=2)}let y=!this.viewportIsAppropriate(this.viewport,c)||this.scrollTarget&&(this.scrollTarget.range.headthis.viewport.to);return y&&(this.viewport=this.getViewport(c,this.scrollTarget)),this.updateForViewport(),(2&l||y)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>2e3<<1)&&this.updateLineGaps(this.ensureLineGaps(r?[]:this.lineGaps,t)),l|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,t.docView.enforceCursorAssoc()),l}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(t,e){let n=.5-Math.max(-.5,Math.min(.5,t/1e3/2)),o=this.heightMap,i=this.heightOracle,{visibleTop:r,visibleBottom:s}=this,a=new Xl(o.lineAt(r-1e3*n,Pl.ByHeight,i,0,0).from,o.lineAt(s+1e3*(1-n),Pl.ByHeight,i,0,0).to);if(e){let{head:t}=e.range;if(ta.to){let n,r=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),s=o.lineAt(t,Pl.ByPos,i,0,0);n="center"==e.y?(s.top+s.bottom)/2-r/2:"start"==e.y||"nearest"==e.y&&t=s+Math.max(10,Math.min(n,250)))&&o>r-2*1e3&&i>1,r=o<<1;if(this.defaultTextDirection!=ha.LTR&&!n)return[];let s=[],a=(o,r,l,c)=>{if(r-oo&&tt.from>=l.from&&t.to<=l.to&&Math.abs(t.from-o)t.frome))));if(!p){if(rt.from<=r&&t.to>=r))){let t=e.moveToLineBoundary(Go.cursor(r),!1,!0).head;t>o&&(r=t)}p=new Il(o,r,this.gapSize(l,o,r,c))}s.push(p)};for(let t of this.viewportLines){if(t.lengtht.from&&a(t.from,i,t,e),st.draw(this,this.heightOracle.lineWrapping)))))}computeVisibleRanges(){let t=this.stateDeco;this.lineGaps.length&&(t=t.concat(this.lineGapDeco));let e=[];Ui.spans(t,this.viewport.from,this.viewport.to,{span(t,n){e.push({from:t,to:n})},point(){}},20);let n=e.length!=this.visibleRanges.length||this.visibleRanges.some(((t,n)=>t.from!=e[n].from||t.to!=e[n].to));return this.visibleRanges=e,n?4:0}lineBlockAt(t){return t>=this.viewport.from&&t<=this.viewport.to&&this.viewportLines.find((e=>e.from<=t&&e.to>=t))||Bl(this.heightMap.lineAt(t,Pl.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(t){return Bl(this.heightMap.lineAt(this.scaler.fromDOM(t),Pl.ByHeight,this.heightOracle,0,0),this.scaler)}scrollAnchorAt(t){let e=this.lineBlockAtHeight(t+8);return e.from>=this.viewport.from||this.viewportLines[0].top-t>200?e:this.viewportLines[0]}elementAtHeight(t){return Bl(this.heightMap.blockAt(this.scaler.fromDOM(t),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class Xl{constructor(t,e){this.from=t,this.to=e}}function Ll(t,e,n){let o=[],i=t,r=0;return Ui.spans(n,t,e,{span(){},point(t,e){t>i&&(o.push({from:i,to:t}),r+=t-i),i=e}},20),i=1)return e[e.length-1].to;let o=Math.floor(t*n);for(let t=0;;t++){let{from:n,to:i}=e[t],r=i-n;if(o<=r)return n+o;o-=r}}function zl(t,e){let n=0;for(let{from:o,to:i}of t.ranges){if(e<=i){n+=e-o;break}n+=i-o}return n/t.total}const ql={toDOM:t=>t,fromDOM:t=>t,scale:1};class Ul{constructor(t,e,n){let o=0,i=0,r=0;this.viewports=n.map((({from:n,to:i})=>{let r=e.lineAt(n,Pl.ByPos,t,0,0).top,s=e.lineAt(i,Pl.ByPos,t,0,0).bottom;return o+=s-r,{from:n,to:i,top:r,bottom:s,domTop:0,domBottom:0}})),this.scale=(7e6-o)/(e.height-o);for(let t of this.viewports)t.domTop=r+(t.top-i)*this.scale,r=t.domBottom=t.domTop+(t.bottom-t.top),i=t.bottom}toDOM(t){for(let e=0,n=0,o=0;;e++){let i=eBl(t,e))):t._content)}const Fl=Jo.define({combine:t=>t.join(" ")}),Gl=Jo.define({combine:t=>t.indexOf(!0)>-1}),Hl=yr.newName(),Kl=yr.newName(),Jl=yr.newName(),tc={"&light":"."+Kl,"&dark":"."+Jl};function ec(t,e,n){return new yr(e,{finish:e=>/&/.test(e)?e.replace(/&\w*/,(e=>{if("&"==e)return t;if(!n||!n[e])throw new RangeError(`Unsupported selector: ${e}`);return n[e]})):t+" "+e})}const nc=ec("."+Hl,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",minHeight:"100%",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#444"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},".cm-announced":{position:"fixed",top:"-10000px"},"@media print":{".cm-announced":{display:"none"}},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",insetInlineStart:0,zIndex:200},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",borderRight:"1px solid #ddd"},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top"},".cm-highlightSpace:before":{content:"attr(data-display)",position:"absolute",pointerEvents:"none",color:"#888"},".cm-highlightTab":{backgroundImage:`url('data:image/svg+xml,')`,backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},tc),oc="￿";class ic{constructor(t,e){this.points=t,this.text="",this.lineSeparator=e.facet(Wi.lineSeparator)}append(t){this.text+=t}lineBreak(){this.text+=oc}readRange(t,e){if(!t)return this;let n=t.parentNode;for(let o=t;;){this.findPointBefore(n,o);let t=this.text.length;this.readNode(o);let i=o.nextSibling;if(i==e)break;let r=Br.get(o),s=Br.get(i);(r&&s?r.breakAfter:(r?r.breakAfter:sc(o))||sc(i)&&("BR"!=o.nodeName||o.cmIgnore)&&this.text.length>t)&&this.lineBreak(),o=i}return this.findPointBefore(n,e),this}readTextNode(t){let e=t.nodeValue;for(let n of this.points)n.node==t&&(n.pos=this.text.length+Math.min(n.offset,e.length));for(let n=0,o=this.lineSeparator?null:/\r\n?|\n/g;;){let i,r=-1,s=1;if(this.lineSeparator?(r=e.indexOf(this.lineSeparator,n),s=this.lineSeparator.length):(i=o.exec(e))&&(r=i.index,s=i[0].length),this.append(e.slice(n,r<0?e.length:r)),r<0)break;if(this.lineBreak(),s>1)for(let e of this.points)e.node==t&&e.pos>this.text.length&&(e.pos-=s-1);n=r+s}}readNode(t){if(t.cmIgnore)return;let e=Br.get(t),n=e&&e.overrideDOMText;if(null!=n){this.findPointInside(t,n.length);for(let t=n.iter();!t.next().done;)t.lineBreak?this.lineBreak():this.append(t.value)}else 3==t.nodeType?this.readTextNode(t):"BR"==t.nodeName?t.nextSibling&&this.lineBreak():1==t.nodeType&&this.readRange(t.firstChild,null)}findPointBefore(t,e){for(let n of this.points)n.node==t&&t.childNodes[n.offset]==e&&(n.pos=this.text.length)}findPointInside(t,e){for(let n of this.points)(3==t.nodeType?n.node==t:t.contains(n.node))&&(n.pos=this.text.length+(rc(t,n.node,n.offset)?e:0))}}function rc(t,e,n){for(;;){if(!e||n-1)this.newSel=null;else if(e>-1&&(this.bounds=t.docView.domBoundsAround(e,n,0))){let e=i||r?[]:function(t){let e=[];if(t.root.activeElement!=t.contentDOM)return e;let{anchorNode:n,anchorOffset:o,focusNode:i,focusOffset:r}=t.observer.selectionRange;n&&(e.push(new ac(n,o)),i==n&&r==o||e.push(new ac(i,r)));return e}(t),n=new ic(e,t.state);n.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=n.text,this.newSel=function(t,e){if(0==t.length)return null;let n=t[0].pos,o=2==t.length?t[1].pos:n;return n>-1&&o>-1?Go.single(n+e,o+e):null}(e,this.bounds.from)}else{let e=t.observer.selectionRange,n=i&&i.node==e.focusNode&&i.offset==e.focusOffset||!Tr(t.contentDOM,e.focusNode)?t.state.selection.main.head:t.docView.posFromDOM(e.focusNode,e.focusOffset),o=r&&r.node==e.anchorNode&&r.offset==e.anchorOffset||!Tr(t.contentDOM,e.anchorNode)?t.state.selection.main.anchor:t.docView.posFromDOM(e.anchorNode,e.anchorOffset);this.newSel=Go.single(o,n)}}}function cc(t,e){let n,{newSel:o}=e,i=t.state.selection.main,r=t.inputState.lastKeyTime>Date.now()-100?t.inputState.lastKeyCode:-1;if(e.bounds){let{from:o,to:s}=e.bounds,a=i.from,l=null;(8===r||us.android&&e.text.length0&&a>0&&t.charCodeAt(s-1)==e.charCodeAt(a-1);)s--,a--;if("end"==o){n-=s+Math.max(0,r-Math.min(s,a))-r}if(s=s?r-n:0,a=r+(a-s),s=r}else if(a=a?r-n:0,s=r+(s-a),a=r}return{from:r,toA:s,toB:a}}(t.state.doc.sliceString(o,s,oc),e.text,a-o,l);c&&(us.chrome&&13==r&&c.toB==c.from+2&&e.text.slice(c.from,c.toB)==oc+oc&&c.toB--,n={from:o+c.from,to:o+c.toA,insert:vo.of(e.text.slice(c.from,c.toB).split(oc))})}else o&&(!t.hasFocus&&t.state.facet(Fs)||o.main.eq(i))&&(o=null);if(!n&&!o)return!1;if(!n&&e.typeOver&&!i.empty&&o&&o.main.empty?n={from:i.from,to:i.to,insert:t.state.doc.slice(i.from,i.to)}:n&&n.from>=i.from&&n.to<=i.to&&(n.from!=i.from||n.to!=i.to)&&i.to-i.from-(n.to-n.from)<=4?n={from:i.from,to:i.to,insert:t.state.doc.slice(i.from,n.from).append(n.insert).append(t.state.doc.slice(n.to,i.to))}:(us.mac||us.android)&&n&&n.from==n.to&&n.from==i.head-1&&/^\. ?$/.test(n.insert.toString())&&"off"==t.contentDOM.getAttribute("autocorrect")?(o&&2==n.insert.length&&(o=Go.single(o.main.anchor-1,o.main.head-1)),n={from:i.from,to:i.to,insert:vo.of([" "])}):us.chrome&&n&&n.from==n.to&&n.from==i.head&&"\n "==n.insert.toString()&&t.lineWrapping&&(o&&(o=Go.single(o.main.anchor-1,o.main.head-1)),n={from:i.from,to:i.to,insert:vo.of([" "])}),n){if(us.ios&&t.inputState.flushIOSKey())return!0;if(us.android&&(n.from==i.from&&n.to==i.to&&1==n.insert.length&&2==n.insert.lines&&Lr(t.contentDOM,"Enter",13)||(n.from==i.from-1&&n.to==i.to&&0==n.insert.length||8==r&&n.insert.lengthi.head)&&Lr(t.contentDOM,"Backspace",8)||n.from==i.from&&n.to==i.to+1&&0==n.insert.length&&Lr(t.contentDOM,"Delete",46)))return!0;let e,s=n.insert.toString();t.inputState.composing>=0&&t.inputState.composing++;let a=()=>e||(e=function(t,e,n){let o,i=t.state,r=i.selection.main;if(e.from>=r.from&&e.to<=r.to&&e.to-e.from>=(r.to-r.from)/3&&(!n||n.main.empty&&n.main.from==e.from+e.insert.length)&&t.inputState.composing<0){let n=r.frome.to?i.sliceDoc(e.to,r.to):"";o=i.replaceSelection(t.state.toText(n+e.insert.sliceString(0,void 0,t.state.lineBreak)+s))}else{let s=i.changes(e),a=n&&n.main.to<=s.newLength?n.main:void 0;if(i.selection.ranges.length>1&&t.inputState.composing>=0&&e.to<=r.to&&e.to>=r.to-10){let l,c=t.state.sliceDoc(e.from,e.to),u=n&&Aa(t,n.main.head);if(u){let t=e.insert.length-(e.to-e.from);l={from:u.from,to:u.to-t}}else l=t.state.doc.lineAt(r.head);let h=r.to-e.to,p=r.to-r.from;o=i.changeByRange((n=>{if(n.from==r.from&&n.to==r.to)return{changes:s,range:a||n.map(s)};let o=n.to-h,u=o-c.length;if(n.to-n.from!=p||t.state.sliceDoc(u,o)!=c||n.to>=l.from&&n.from<=l.to)return{range:n};let d=i.changes({from:u,to:o,insert:e.insert}),f=n.to-r.to;return{changes:d,range:a?Go.range(Math.max(0,a.anchor+f),Math.max(0,a.head+f)):n.map(d)}}))}else o={changes:s,selection:a&&i.selection.replaceRange(a)}}let s="input.type";(t.composing||t.inputState.compositionPendingChange&&t.inputState.compositionEndedAt>Date.now()-50)&&(t.inputState.compositionPendingChange=!1,s+=".compose",t.inputState.compositionFirstChange&&(s+=".start",t.inputState.compositionFirstChange=!1));return i.update(o,{userEvent:s,scrollIntoView:!0})}(t,n,o));return t.state.facet(Xs).some((e=>e(t,n.from,n.to,s,a)))||t.dispatch(a()),!0}if(o&&!o.main.eq(i)){let e=!1,n="select";return t.inputState.lastSelectionTime>Date.now()-50&&("select"==t.inputState.lastSelectionOrigin&&(e=!0),n=t.inputState.lastSelectionOrigin),t.dispatch({selection:o,scrollIntoView:e,userEvent:n}),!0}return!1}const uc={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},hc=us.ie&&us.ie_version<=11;class pc{constructor(t){this.view=t,this.active=!1,this.selectionRange=new Dr,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.parentCheck=-1,this.dom=t.contentDOM,this.observer=new MutationObserver((e=>{for(let t of e)this.queue.push(t);(us.ie&&us.ie_version<=11||us.ios&&t.composing)&&e.some((t=>"childList"==t.type&&t.removedNodes.length||"characterData"==t.type&&t.oldValue.length>t.target.nodeValue.length))?this.flushSoon():this.flush()})),hc&&(this.onCharData=t=>{this.queue.push({target:t.target,type:"characterData",oldValue:t.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),"function"==typeof ResizeObserver&&(this.resizeScroll=new ResizeObserver((()=>{var t;(null===(t=this.view.docView)||void 0===t?void 0:t.lastUpdate){this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),t.length>0&&t[t.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))}),{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver((t=>{t.length>0&&t[t.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))}),{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(t){this.view.inputState.runHandlers("scroll",t),this.intersecting&&this.view.measure()}onScroll(t){this.intersecting&&this.flush(!1),this.onScrollChanged(t)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout((()=>{this.resizeTimeout=-1,this.view.requestMeasure()}),50))}onPrint(){this.view.viewState.printing=!0,this.view.measure(),setTimeout((()=>{this.view.viewState.printing=!1,this.view.requestMeasure()}),500)}updateGaps(t){if(this.gapIntersection&&(t.length!=this.gaps.length||this.gaps.some(((e,n)=>e!=t[n])))){this.gapIntersection.disconnect();for(let e of t)this.gapIntersection.observe(e);this.gaps=t}}onSelectionChange(t){let e=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:n}=this,o=this.selectionRange;if(n.state.facet(Fs)?n.root.activeElement!=this.dom:!Er(n.dom,o))return;let i=o.anchorNode&&n.docView.nearest(o.anchorNode);i&&i.ignoreEvent(t)?e||(this.selectionChanged=!1):(us.ie&&us.ie_version<=11||us.android&&us.chrome)&&!n.state.selection.main.empty&&o.focusNode&&Ar(o.focusNode,o.focusOffset,o.anchorNode,o.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:t}=this,e=us.safari&&11==t.root.nodeType&&function(t){let e=t.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}(this.dom.ownerDocument)==this.dom&&function(t){let e=null;function n(t){t.preventDefault(),t.stopImmediatePropagation(),e=t.getTargetRanges()[0]}if(t.contentDOM.addEventListener("beforeinput",n,!0),t.dom.ownerDocument.execCommand("indent"),t.contentDOM.removeEventListener("beforeinput",n,!0),!e)return null;let o=e.startContainer,i=e.startOffset,r=e.endContainer,s=e.endOffset,a=t.docView.domAtPos(t.state.selection.main.anchor);Ar(a.node,a.offset,r,s)&&([o,i,r,s]=[r,s,o,i]);return{anchorNode:o,anchorOffset:i,focusNode:r,focusOffset:s}}(this.view)||Cr(t.root);if(!e||this.selectionRange.eq(e))return!1;let n=Er(this.dom,e);return n&&!this.selectionChanged&&t.inputState.lastFocusTime>Date.now()-200&&t.inputState.lastTouchTime{let t=this.delayedAndroidKey;if(t){this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=t.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&t.force&&Lr(this.dom,t.key,t.keyCode)}};this.flushingAndroidKey=this.view.win.requestAnimationFrame(t)}this.delayedAndroidKey&&"Enter"!=t||(this.delayedAndroidKey={key:t,keyCode:e,force:this.lastChange{this.delayedFlush=-1,this.flush()})))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let t of this.observer.takeRecords())this.queue.push(t);return this.queue}processRecords(){let t=this.pendingRecords();t.length&&(this.queue=[]);let e=-1,n=-1,o=!1;for(let i of t){let t=this.readMutation(i);t&&(t.typeOver&&(o=!0),-1==e?({from:e,to:n}=t):(e=Math.min(t.from,e),n=Math.max(t.to,n)))}return{from:e,to:n,typeOver:o}}readChange(){let{from:t,to:e,typeOver:n}=this.processRecords(),o=this.selectionChanged&&Er(this.dom,this.selectionRange);if(t<0&&!o)return null;t>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let i=new lc(this.view,t,e,n);return this.view.docView.domChanged={newSel:i.newSel?i.newSel.main:null},i}flush(t=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;t&&this.readSelectionRange();let e=this.readChange();if(!e)return this.view.requestMeasure(),!1;let n=this.view.state,o=cc(this.view,e);return this.view.state==n&&this.view.update([]),o}readMutation(t){let e=this.view.docView.nearest(t.target);if(!e||e.ignoreMutation(t))return null;if(e.markDirty("attributes"==t.type),"attributes"==t.type&&(e.flags|=4),"childList"==t.type){let n=dc(e,t.previousSibling||t.target.previousSibling,-1),o=dc(e,t.nextSibling||t.target.nextSibling,1);return{from:n?e.posAfter(n):e.posAtStart,to:o?e.posBefore(o):e.posAtEnd,typeOver:!1}}return"characterData"==t.type?{from:e.posAtStart,to:e.posAtEnd,typeOver:t.target.nodeValue==t.oldValue}:null}setWindow(t){t!=this.win&&(this.removeWindowListeners(this.win),this.win=t,this.addWindowListeners(this.win))}addWindowListeners(t){t.addEventListener("resize",this.onResize),t.addEventListener("beforeprint",this.onPrint),t.addEventListener("scroll",this.onScroll),t.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(t){t.removeEventListener("scroll",this.onScroll),t.removeEventListener("resize",this.onResize),t.removeEventListener("beforeprint",this.onPrint),t.document.removeEventListener("selectionchange",this.onSelectionChange)}destroy(){var t,e,n;this.stop(),null===(t=this.intersection)||void 0===t||t.disconnect(),null===(e=this.gapIntersection)||void 0===e||e.disconnect(),null===(n=this.resizeScroll)||void 0===n||n.disconnect();for(let t of this.scrollTargets)t.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey)}}function dc(t,e,n){for(;e;){let o=Br.get(e);if(o&&o.parent==t)return o;let i=e.parentNode;e=i!=t.dom?i:n>0?e.nextSibling:e.previousSibling}return null}class fc{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return this.inputState.composing>0}get compositionStarted(){return this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(t={}){this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.className="cm-announced",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),t.parent&&t.parent.appendChild(this.dom);let{dispatch:e}=t;this.dispatchTransactions=t.dispatchTransactions||e&&(t=>t.forEach((t=>e(t,this))))||(t=>this.update(t)),this.dispatch=this.dispatch.bind(this),this._root=t.root||function(t){for(;t;){if(t&&(9==t.nodeType||11==t.nodeType&&t.host))return t;t=t.assignedSlot||t.parentNode}return null}(t.parent)||document,this.viewState=new Wl(t.state||Wi.create(t)),t.scrollTo&&t.scrollTo.is(Us)&&(this.viewState.scrollTarget=t.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(Hs).map((t=>new Js(t)));for(let t of this.plugins)t.update(this);this.observer=new pc(this),this.inputState=new Ua(this),this.inputState.ensureHandlers(this.plugins),this.docView=new Ea(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure()}dispatch(...t){let e=1==t.length&&t[0]instanceof Qi?t:1==t.length&&Array.isArray(t[0])?t[0]:[this.state.update(...t)];this.dispatchTransactions(e,this)}update(t){if(0!=this.updateState)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let e,n=!1,o=!1,i=this.state;for(let e of t){if(e.startState!=i)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");i=e.state}if(this.destroyed)return void(this.viewState.state=i);let r=this.hasFocus,s=0,a=null;t.some((t=>t.annotation(yl)))?(this.inputState.notifiedFocused=r,s=1):r!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=r,a=_l(i,r),a||(s=1));let l=this.observer.delayedAndroidKey,c=null;if(l?(this.observer.clearDelayedAndroidKey(),c=this.observer.readChange(),(c&&!this.state.doc.eq(i.doc)||!this.state.selection.eq(i.selection))&&(c=null)):this.observer.clear(),i.facet(Wi.phrases)!=this.state.facet(Wi.phrases))return this.setState(i);e=ua.create(this,i,t),e.flags|=s;let u=this.viewState.scrollTarget;try{this.updateState=2;for(let e of t){if(u&&(u=u.map(e.changes)),e.scrollIntoView){let{main:t}=e.state.selection;u=new qs(t.empty?t:Go.cursor(t.head,t.head>t.anchor?-1:1))}for(let t of e.effects)t.is(Us)&&(u=t.value.clip(this.state))}this.viewState.update(e,u),this.bidiCache=vc.update(this.bidiCache,e.changes),e.empty||(this.updatePlugins(e),this.inputState.update(e)),n=this.docView.update(e),this.state.facet(la)!=this.styleModules&&this.mountStyles(),o=this.updateAttrs(),this.showAnnouncements(t),this.docView.updateSelection(n,t.some((t=>t.isUserEvent("select.pointer"))))}finally{this.updateState=0}if(e.startState.facet(Fl)!=e.state.facet(Fl)&&(this.viewState.mustMeasureContent=!0),(n||o||u||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),!e.empty)for(let t of this.state.facet(Ws))try{t(e)}catch(t){Bs(this.state,t,"update listener")}(a||c)&&Promise.resolve().then((()=>{a&&this.state==a.startState&&this.dispatch(a),c&&!cc(this,c)&&l.force&&Lr(this.contentDOM,l.key,l.keyCode)}))}setState(t){if(0!=this.updateState)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed)return void(this.viewState.state=t);this.updateState=2;let e=this.hasFocus;try{for(let t of this.plugins)t.destroy(this);this.viewState=new Wl(t),this.plugins=t.facet(Hs).map((t=>new Js(t))),this.pluginMap.clear();for(let t of this.plugins)t.update(this);this.docView.destroy(),this.docView=new Ea(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}e&&this.focus(),this.requestMeasure()}updatePlugins(t){let e=t.startState.facet(Hs),n=t.state.facet(Hs);if(e!=n){let o=[];for(let i of n){let n=e.indexOf(i);if(n<0)o.push(new Js(i));else{let e=this.plugins[n];e.mustUpdate=t,o.push(e)}}for(let e of this.plugins)e.mustUpdate!=t&&e.destroy(this);this.plugins=o,this.pluginMap.clear()}else for(let e of this.plugins)e.mustUpdate=t;for(let t=0;t-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey)return this.measureScheduled=-1,void this.requestMeasure();this.measureScheduled=0,t&&this.observer.forceFlush();let e=null,n=this.scrollDOM,o=n.scrollTop*this.scaleY,{scrollAnchorPos:i,scrollAnchorHeight:r}=this.viewState;Math.abs(o-this.viewState.scrollTop)>1&&(r=-1),this.viewState.scrollAnchorHeight=-1;try{for(let t=0;;t++){if(r<0)if(zr(n))i=-1,r=this.viewState.heightMap.height;else{let t=this.viewState.scrollAnchorAt(o);i=t.from,r=t.top}this.updateState=1;let s=this.viewState.measure(this);if(!s&&!this.measureRequests.length&&null==this.viewState.scrollTarget)break;if(t>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let a=[];4&s||([this.measureRequests,a]=[a,this.measureRequests]);let l=a.map((t=>{try{return t.read(this)}catch(t){return Bs(this.state,t),mc}})),c=ua.create(this,this.state,[]),u=!1;c.flags|=s,e?e.flags|=s:e=c,this.updateState=2,c.empty||(this.updatePlugins(c),this.inputState.update(c),this.updateAttrs(),u=this.docView.update(c));for(let t=0;t1||t<-1){o+=t,n.scrollTop=o/this.scaleY,r=-1;continue}}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(e&&!e.empty)for(let t of this.state.facet(Ws))t(e)}get themeClasses(){return Hl+" "+(this.state.facet(Gl)?Jl:Kl)+" "+this.state.facet(Fl)}updateAttrs(){let t=yc(this,ta,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),e={spellcheck:"false",autocorrect:"off",autocapitalize:"off",translate:"no",contenteditable:this.state.facet(Fs)?"true":"false",class:"cm-content",style:`${us.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(e["aria-readonly"]="true"),yc(this,ea,e);let n=this.observer.ignore((()=>{let n=ws(this.contentDOM,this.contentAttrs,e),o=ws(this.dom,this.editorAttrs,t);return n||o}));return this.editorAttrs=t,this.contentAttrs=e,n}showAnnouncements(t){let e=!0;for(let n of t)for(let t of n.effects)if(t.is(fc.announce)){e&&(this.announceDOM.textContent=""),e=!1,this.announceDOM.appendChild(document.createElement("div")).textContent=t.value}}mountStyles(){this.styleModules=this.state.facet(la);let t=this.state.facet(fc.cspNonce);yr.mount(this.root,this.styleModules.concat(nc).reverse(),t?{nonce:t}:void 0)}readMeasured(){if(2==this.updateState)throw new Error("Reading the editor layout isn't allowed during an update");0==this.updateState&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(t){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame((()=>this.measure()))),t){if(this.measureRequests.indexOf(t)>-1)return;if(null!=t.key)for(let e=0;ee.spec==t))||null),e&&e.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}get scaleX(){return this.viewState.scaleX}get scaleY(){return this.viewState.scaleY}elementAtHeight(t){return this.readMeasured(),this.viewState.elementAtHeight(t)}lineBlockAtHeight(t){return this.readMeasured(),this.viewState.lineBlockAtHeight(t)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(t){return this.viewState.lineBlockAt(t)}get contentHeight(){return this.viewState.contentHeight}moveByChar(t,e,n){return qa(this,t,Ya(this,t,e,n))}moveByGroup(t,e){return qa(this,t,Ya(this,t,e,(e=>function(t,e,n){let o=t.state.charCategorizer(e),i=o(n);return t=>{let e=o(t);return i==Vi.Space&&(i=e),i==e}}(this,t.head,e))))}moveToLineBoundary(t,e,n=!0){return function(t,e,n,o){let i=La(t,e.head),r=o&&i.type==Cs.Text&&(t.lineWrapping||i.widgetLineBreaks)?t.coordsAtPos(e.assoc<0&&e.head>i.from?e.head-1:e.head):null;if(r){let e=t.dom.getBoundingClientRect(),o=t.textDirectionAt(i.from),s=t.posAtCoords({x:n==(o==ha.LTR)?e.right-1:e.left+1,y:(r.top+r.bottom)/2});if(null!=s)return Go.cursor(s,n?-1:1)}return Go.cursor(n?i.to:i.from,n?-1:1)}(this,t,e,n)}moveVertically(t,e,n){return qa(this,t,function(t,e,n,o){let i=e.head,r=n?1:-1;if(i==(n?t.state.doc.length:0))return Go.cursor(i,e.assoc);let s,a=e.goalColumn,l=t.contentDOM.getBoundingClientRect(),c=t.coordsAtPos(i,e.assoc||-1),u=t.documentTop;if(c)null==a&&(a=c.left-l.left),s=r<0?c.top:c.bottom;else{let e=t.viewState.lineBlockAt(i);null==a&&(a=Math.min(l.right-l.left,t.defaultCharacterWidth*(i-e.from))),s=(r<0?e.top:e.bottom)+u}let h=l.left+a,p=null!=o?o:t.viewState.heightOracle.textHeight>>1;for(let e=0;;e+=10){let n=s+(p+e)*r,o=Wa(t,{x:h,y:n},!1,r);if(nl.bottom||(r<0?oi)){let e=t.docView.coordsForChar(o),i=!e||n0)}coordsForChar(t){return this.readMeasured(),this.docView.coordsForChar(t)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(t){return!this.state.facet(Ys)||tthis.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(t))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(t){if(t.length>gc)return Pa(t.length);let e,n=this.textDirectionAt(t.from);for(let o of this.bidiCache)if(o.from==t.from&&o.dir==n&&(o.fresh||ba(o.isolates,e=ra(this,t.from,t.to))))return o.order;e||(e=ra(this,t.from,t.to));let o=ka(t.text,n,e);return this.bidiCache.push(new vc(t.from,t.to,n,e,!0,o)),o}get hasFocus(){var t;return(this.dom.ownerDocument.hasFocus()||us.safari&&(null===(t=this.inputState)||void 0===t?void 0:t.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore((()=>{Wr(this.contentDOM),this.docView.updateSelection()}))}setRoot(t){this._root!=t&&(this._root=t,this.observer.setWindow((9==t.nodeType?t:t.ownerDocument).defaultView||window),this.mountStyles())}destroy(){for(let t of this.plugins)t.destroy(this);this.plugins=[],this.inputState.destroy(),this.docView.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(t,e={}){return Us.of(new qs("number"==typeof t?Go.cursor(t):t,e.y,e.x,e.yMargin,e.xMargin))}scrollSnapshot(){let{scrollTop:t,scrollLeft:e}=this.scrollDOM,n=this.viewState.scrollAnchorAt(t);return Us.of(new qs(Go.cursor(n.from),"start","start",n.top-t,e,!0))}static domEventHandlers(t){return Ks.define((()=>({})),{eventHandlers:t})}static domEventObservers(t){return Ks.define((()=>({})),{eventObservers:t})}static theme(t,e){let n=yr.newName(),o=[Fl.of(n),la.of(ec(`.${n}`,t))];return e&&e.dark&&o.push(Gl.of(!0)),o}static baseTheme(t){return pi.lowest(la.of(ec("."+Hl,t,tc)))}static findFromDOM(t){var e;let n=t.querySelector(".cm-content"),o=n&&Br.get(n)||Br.get(t);return(null===(e=null==o?void 0:o.rootView)||void 0===e?void 0:e.view)||null}}fc.styleModule=la,fc.inputHandler=Xs,fc.focusChangeEffect=Ls,fc.perLineTextDirection=Ys,fc.exceptionSink=Ns,fc.updateListener=Ws,fc.editable=Fs,fc.mouseSelectionStyle=Is,fc.dragMovesSelection=Ds,fc.clickAddsSelectionRange=Vs,fc.decorations=na,fc.atomicRanges=oa,fc.bidiIsolatedRanges=ia,fc.scrollMargins=sa,fc.darkTheme=Gl,fc.cspNonce=Jo.define({combine:t=>t.length?t[0]:""}),fc.contentAttributes=ea,fc.editorAttributes=ta,fc.lineWrapping=fc.contentAttributes.of({class:"cm-lineWrapping"}),fc.announce=Ei.define();const gc=4096,mc={};class vc{constructor(t,e,n,o,i,r){this.from=t,this.to=e,this.dir=n,this.isolates=o,this.fresh=i,this.order=r}static update(t,e){if(e.empty&&!t.some((t=>t.fresh)))return t;let n=[],o=t.length?t[t.length-1].dir:ha.LTR;for(let i=Math.max(0,t.length-10);i=0;i--){let e=o[i],r="function"==typeof e?e(t):e;r&&_s(r,n)}return n}const _c=us.mac?"mac":us.windows?"win":us.linux?"linux":"key";function Oc(t,e,n){return e.altKey&&(t="Alt-"+t),e.ctrlKey&&(t="Ctrl-"+t),e.metaKey&&(t="Meta-"+t),!1!==n&&e.shiftKey&&(t="Shift-"+t),t}const bc=pi.default(fc.domEventHandlers({keydown:(t,e)=>Cc(Sc(e.state),t,e,"editor")})),wc=Jo.define({enables:bc}),xc=new WeakMap;function Sc(t){let e=t.facet(wc),n=xc.get(e);return n||xc.set(e,n=function(t,e=_c){let n=Object.create(null),o=Object.create(null),i=(t,e)=>{let n=o[t];if(null==n)o[t]=e;else if(n!=e)throw new Error("Key binding "+t+" is used both as a regular binding and as a multi-stroke prefix")},r=(t,o,r,s,a)=>{var l,c;let u=n[t]||(n[t]=Object.create(null)),h=o.split(/ (?!$)/).map((t=>function(t,e){const n=t.split(/-(?!$)/);let o,i,r,s,a=n[n.length-1];"Space"==a&&(a=" ");for(let t=0;t{let o=kc={view:e,prefix:n,scope:t};return setTimeout((()=>{kc==o&&(kc=null)}),Pc),!0}]})}let p=h.join(" ");i(p,!1);let d=u[p]||(u[p]={preventDefault:!1,stopPropagation:!1,run:(null===(c=null===(l=u._any)||void 0===l?void 0:l.run)||void 0===c?void 0:c.slice())||[]});r&&d.run.push(r),s&&(d.preventDefault=!0),a&&(d.stopPropagation=!0)};for(let o of t){let t=o.scope?o.scope.split(" "):["editor"];if(o.any)for(let e of t){let t=n[e]||(n[e]=Object.create(null));t._any||(t._any={preventDefault:!1,stopPropagation:!1,run:[]});for(let e in t)t[e].run.push(o.any)}let i=o[e]||o.key;if(i)for(let e of t)r(e,i,o.run,o.preventDefault,o.stopPropagation),o.shift&&r(e,"Shift-"+i,o.shift,o.preventDefault,o.stopPropagation)}return n}(e.reduce(((t,e)=>t.concat(e)),[]))),n}let kc=null;const Pc=4e3;function Cc(t,e,n,o){let i=function(t){var e=!(xr&&t.metaKey&&t.shiftKey&&!t.ctrlKey&&!t.altKey||Sr&&t.shiftKey&&t.key&&1==t.key.length||"Unidentified"==t.key)&&t.key||(t.shiftKey?wr:br)[t.keyCode]||t.key||"Unidentified";return"Esc"==e&&(e="Escape"),"Del"==e&&(e="Delete"),"Left"==e&&(e="ArrowLeft"),"Up"==e&&(e="ArrowUp"),"Right"==e&&(e="ArrowRight"),"Down"==e&&(e="ArrowDown"),e}(e),r=Do(Mo(i,0))==i.length&&" "!=i,s="",a=!1,l=!1,c=!1;kc&&kc.view==n&&kc.scope==o&&(s=kc.prefix+" ",Ka.indexOf(e.keyCode)<0&&(l=!0,kc=null));let u,h,p=new Set,d=t=>{if(t){for(let o of t.run)if(!p.has(o)&&(p.add(o),o(n,e)))return t.stopPropagation&&(c=!0),!0;t.preventDefault&&(t.stopPropagation&&(c=!0),l=!0)}return!1},f=t[o];return f&&(d(f[s+Oc(i,e,!r)])?a=!0:r&&(e.altKey||e.metaKey||e.ctrlKey)&&!(us.windows&&e.ctrlKey&&e.altKey)&&(u=br[e.keyCode])&&u!=i?(d(f[s+Oc(u,e,!0)])||e.shiftKey&&(h=wr[e.keyCode])!=i&&h!=u&&d(f[s+Oc(h,e,!1)]))&&(a=!0):r&&e.shiftKey&&d(f[s+Oc(i,e,!0)])&&(a=!0),!a&&d(f._any)&&(a=!0)),l&&(a=!0),a&&c&&e.stopPropagation(),a}class Tc{constructor(t,e,n,o,i){this.className=t,this.left=e,this.top=n,this.width=o,this.height=i}draw(){let t=document.createElement("div");return t.className=this.className,this.adjust(t),t}update(t,e){return e.className==this.className&&(this.adjust(t),!0)}adjust(t){t.style.left=this.left+"px",t.style.top=this.top+"px",null!=this.width&&(t.style.width=this.width+"px"),t.style.height=this.height+"px"}eq(t){return this.left==t.left&&this.top==t.top&&this.width==t.width&&this.height==t.height&&this.className==t.className}static forRange(t,e,n){if(n.empty){let o=t.coordsAtPos(n.head,n.assoc||1);if(!o)return[];let i=Ec(t);return[new Tc(e,o.left-i.left,o.top-i.top,null,o.bottom-o.top)]}return function(t,e,n){if(n.to<=t.viewport.from||n.from>=t.viewport.to)return[];let o=Math.max(n.from,t.viewport.from),i=Math.min(n.to,t.viewport.to),r=t.textDirection==ha.LTR,s=t.contentDOM,a=s.getBoundingClientRect(),l=Ec(t),c=s.querySelector(".cm-line"),u=c&&window.getComputedStyle(c),h=a.left+(u?parseInt(u.paddingLeft)+Math.min(0,parseInt(u.textIndent)):0),p=a.right-(u?parseInt(u.paddingRight):0),d=La(t,o),f=La(t,i),g=d.type==Cs.Text?d:null,m=f.type==Cs.Text?f:null;g&&(t.lineWrapping||d.widgetLineBreaks)&&(g=Qc(t,o,g));m&&(t.lineWrapping||f.widgetLineBreaks)&&(m=Qc(t,i,m));if(g&&m&&g.from==m.from)return y(_(n.from,n.to,g));{let e=g?_(n.from,null,g):O(d,!1),o=m?_(null,n.to,m):O(f,!0),i=[];return(g||d).to<(m||f).from-(g&&m?1:0)||d.widgetLineBreaks>1&&e.bottom+t.defaultLineHeight/2c&&o.from=r)break;a>i&&l(Math.max(t,i),null==e&&t<=c,Math.min(a,r),null==n&&a>=u,s.dir)}if(i=o.to+1,i>=r)break}return 0==a.length&&l(c,null==e,u,null==n,t.textDirection),{top:i,bottom:s,horizontal:a}}function O(t,e){let n=a.top+(e?t.top:t.bottom);return{top:n,bottom:n,horizontal:[]}}}(t,e,n)}}function Ec(t){let e=t.scrollDOM.getBoundingClientRect();return{left:(t.textDirection==ha.LTR?e.left:e.right-t.scrollDOM.clientWidth*t.scaleX)-t.scrollDOM.scrollLeft*t.scaleX,top:e.top-t.scrollDOM.scrollTop*t.scaleY}}function Qc(t,e,n){let o=Go.cursor(e);return{from:Math.max(n.from,t.moveToLineBoundary(o,!1,!0).from),to:Math.min(n.to,t.moveToLineBoundary(o,!0,!0).from),type:Cs.Text}}class Ac{constructor(t,e){this.view=t,this.layer=e,this.drawn=[],this.scaleX=1,this.scaleY=1,this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)},this.dom=t.scrollDOM.appendChild(document.createElement("div")),this.dom.classList.add("cm-layer"),e.above&&this.dom.classList.add("cm-layer-above"),e.class&&this.dom.classList.add(e.class),this.scale(),this.dom.setAttribute("aria-hidden","true"),this.setOrder(t.state),t.requestMeasure(this.measureReq),e.mount&&e.mount(this.dom,t)}update(t){t.startState.facet($c)!=t.state.facet($c)&&this.setOrder(t.state),(this.layer.update(t,this.dom)||t.geometryChanged)&&(this.scale(),t.view.requestMeasure(this.measureReq))}setOrder(t){let e=0,n=t.facet($c);for(;e!function(t,e){return t.constructor==e.constructor&&t.eq(e)}(t,this.drawn[e])))){let e=this.dom.firstChild,n=0;for(let o of t)o.update&&e&&o.constructor&&this.drawn[n].constructor&&o.update(e,this.drawn[n])?(e=e.nextSibling,n++):this.dom.insertBefore(o.draw(),e);for(;e;){let t=e.nextSibling;e.remove(),e=t}this.drawn=t}}destroy(){this.layer.destroy&&this.layer.destroy(this.dom,this.view),this.dom.remove()}}const $c=Jo.define();function jc(t){return[Ks.define((e=>new Ac(e,t))),$c.of(t)]}const Rc=!us.ios,Zc=Jo.define({combine:t=>Xi(t,{cursorBlinkRate:1200,drawRangeCursor:!0},{cursorBlinkRate:(t,e)=>Math.min(t,e),drawRangeCursor:(t,e)=>t||e})});function Mc(t={}){return[Zc.of(t),Dc,Nc,Xc,zs.of(!0)]}function Vc(t){return t.startState.facet(Zc)!=t.state.facet(Zc)}const Dc=jc({above:!0,markers(t){let{state:e}=t,n=e.facet(Zc),o=[];for(let i of e.selection.ranges){let r=i==e.selection.main;if(i.empty?!r||Rc:n.drawRangeCursor){let e=r?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",n=i.empty?i:Go.cursor(i.head,i.head>i.anchor?-1:1);for(let i of Tc.forRange(t,e,n))o.push(i)}}return o},update(t,e){t.transactions.some((t=>t.selection))&&(e.style.animationName="cm-blink"==e.style.animationName?"cm-blink2":"cm-blink");let n=Vc(t);return n&&Ic(t.state,e),t.docChanged||t.selectionSet||n},mount(t,e){Ic(e.state,t)},class:"cm-cursorLayer"});function Ic(t,e){e.style.animationDuration=t.facet(Zc).cursorBlinkRate+"ms"}const Nc=jc({above:!1,markers:t=>t.state.selection.ranges.map((e=>e.empty?[]:Tc.forRange(t,"cm-selectionBackground",e))).reduce(((t,e)=>t.concat(e))),update:(t,e)=>t.docChanged||t.selectionSet||t.viewportChanged||Vc(t),class:"cm-selectionLayer"}),Wc={".cm-line":{"& ::selection":{backgroundColor:"transparent !important"},"&::selection":{backgroundColor:"transparent !important"}}};Rc&&(Wc[".cm-line"].caretColor="transparent !important",Wc[".cm-content"]={caretColor:"transparent !important"});const Xc=pi.highest(fc.theme(Wc)),Lc=Ei.define({map:(t,e)=>null==t?null:e.mapPos(t)}),Yc=si.define({create:()=>null,update:(t,e)=>(null!=t&&(t=e.changes.mapPos(t)),e.effects.reduce(((t,e)=>e.is(Lc)?e.value:t),t))}),zc=Ks.fromClass(class{constructor(t){this.view=t,this.cursor=null,this.measureReq={read:this.readPos.bind(this),write:this.drawCursor.bind(this)}}update(t){var e;let n=t.state.field(Yc);null==n?null!=this.cursor&&(null===(e=this.cursor)||void 0===e||e.remove(),this.cursor=null):(this.cursor||(this.cursor=this.view.scrollDOM.appendChild(document.createElement("div")),this.cursor.className="cm-dropCursor"),(t.startState.field(Yc)!=n||t.docChanged||t.geometryChanged)&&this.view.requestMeasure(this.measureReq))}readPos(){let{view:t}=this,e=t.state.field(Yc),n=null!=e&&t.coordsAtPos(e);if(!n)return null;let o=t.scrollDOM.getBoundingClientRect();return{left:n.left-o.left+t.scrollDOM.scrollLeft*t.scaleX,top:n.top-o.top+t.scrollDOM.scrollTop*t.scaleY,height:n.bottom-n.top}}drawCursor(t){if(this.cursor){let{scaleX:e,scaleY:n}=this.view;t?(this.cursor.style.left=t.left/e+"px",this.cursor.style.top=t.top/n+"px",this.cursor.style.height=t.height/n+"px"):this.cursor.style.left="-100000px"}}destroy(){this.cursor&&this.cursor.remove()}setDropPos(t){this.view.state.field(Yc)!=t&&this.view.dispatch({effects:Lc.of(t)})}},{eventObservers:{dragover(t){this.setDropPos(this.view.posAtCoords({x:t.clientX,y:t.clientY}))},dragleave(t){t.target!=this.view.contentDOM&&this.view.contentDOM.contains(t.relatedTarget)||this.setDropPos(null)},dragend(){this.setDropPos(null)},drop(){this.setDropPos(null)}}});function qc(t,e,n,o,i){e.lastIndex=0;for(let r,s=t.iterRange(n,o),a=n;!s.next().done;a+=s.value.length)if(!s.lineBreak)for(;r=e.exec(s.value);)i(a+r.index,r)}class Uc{constructor(t){const{regexp:e,decoration:n,decorate:o,boundary:i,maxLength:r=1e3}=t;if(!e.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=e,o)this.addMatch=(t,e,n,i)=>o(i,n,n+t[0].length,t,e);else if("function"==typeof n)this.addMatch=(t,e,o,i)=>{let r=n(t,e,o);r&&i(o,o+t[0].length,r)};else{if(!n)throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.addMatch=(t,e,o,i)=>i(o,o+t[0].length,n)}this.boundary=i,this.maxLength=r}createDeco(t){let e=new Bi,n=e.add.bind(e);for(let{from:e,to:o}of function(t,e){let n=t.visibleRanges;if(1==n.length&&n[0].from==t.viewport.from&&n[0].to==t.viewport.to)return n;let o=[];for(let{from:i,to:r}of n)i=Math.max(t.state.doc.lineAt(i).from,i-e),r=Math.min(t.state.doc.lineAt(r).to,r+e),o.length&&o[o.length-1].to>=i?o[o.length-1].to=r:o.push({from:i,to:r});return o}(t,this.maxLength))qc(t.state.doc,this.regexp,e,o,((e,o)=>this.addMatch(o,t,e,n)));return e.finish()}updateDeco(t,e){let n=1e9,o=-1;return t.docChanged&&t.changes.iterChanges(((e,i,r,s)=>{s>t.view.viewport.from&&r1e3?this.createDeco(t.view):o>-1?this.updateRange(t.view,e.map(t.changes),n,o):e}updateRange(t,e,n,o){for(let i of t.visibleRanges){let r=Math.max(i.from,n),s=Math.min(i.to,o);if(s>r){let n=t.state.doc.lineAt(r),o=n.ton.from;r--)if(this.boundary.test(n.text[r-1-n.from])){a=r;break}for(;su.push(n.range(t,e));if(n==o)for(this.regexp.lastIndex=a-n.from;(c=this.regexp.exec(n.text))&&c.indexthis.addMatch(n,t,e,h)));e=e.update({filterFrom:a,filterTo:l,filter:(t,e)=>tl,add:u})}}return e}}const Bc=null!=/x/.unicode?"gu":"g",Fc=new RegExp("[\0-\b\n--Ÿ­؜​‎‏\u2028\u2029‭‮⁦⁧⁩\ufeff-]",Bc),Gc={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"};let Hc=null;const Kc=Jo.define({combine(t){let e=Xi(t,{render:null,specialChars:Fc,addSpecialChars:null});return(e.replaceTabs=!function(){var t;if(null==Hc&&"undefined"!=typeof document&&document.body){let e=document.body.style;Hc=null!=(null!==(t=e.tabSize)&&void 0!==t?t:e.MozTabSize)}return Hc||!1}())&&(e.specialChars=new RegExp("\t|"+e.specialChars.source,Bc)),e.addSpecialChars&&(e.specialChars=new RegExp(e.specialChars.source+"|"+e.addSpecialChars.source,Bc)),e}});function Jc(t={}){return[Kc.of(t),tu||(tu=Ks.fromClass(class{constructor(t){this.view=t,this.decorations=Ts.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(t.state.facet(Kc)),this.decorations=this.decorator.createDeco(t)}makeDecorator(t){return new Uc({regexp:t.specialChars,decoration:(e,n,o)=>{let{doc:i}=n.state,r=Mo(e[0],0);if(9==r){let t=i.lineAt(o),e=n.state.tabSize,r=rr(t.text,e,o-t.from);return Ts.replace({widget:new ou((e-r%e)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[r]||(this.decorationCache[r]=Ts.replace({widget:new nu(t,r)}))},boundary:t.replaceTabs?void 0:/[^]/})}update(t){let e=t.state.facet(Kc);t.startState.facet(Kc)!=e?(this.decorator=this.makeDecorator(e),this.decorations=this.decorator.createDeco(t.view)):this.decorations=this.decorator.updateDeco(t,this.decorations)}},{decorations:t=>t.decorations}))]}let tu=null;const eu="•";class nu extends Ps{constructor(t,e){super(),this.options=t,this.code=e}eq(t){return t.code==this.code}toDOM(t){let e=function(t){return t>=32?eu:10==t?"␤":String.fromCharCode(9216+t)}(this.code),n=t.state.phrase("Control character")+" "+(Gc[this.code]||"0x"+this.code.toString(16)),o=this.options.render&&this.options.render(this.code,n,e);if(o)return o;let i=document.createElement("span");return i.textContent=e,i.title=n,i.setAttribute("aria-label",n),i.className="cm-specialChar",i}ignoreEvent(){return!1}}class ou extends Ps{constructor(t){super(),this.width=t}eq(t){return t.width==this.width}toDOM(){let t=document.createElement("span");return t.textContent="\t",t.className="cm-tab",t.style.width=this.width+"px",t}ignoreEvent(){return!1}}null&&Ks.fromClass(class{constructor(){this.height=1e3,this.attrs={style:"padding-bottom: 1000px"}}update(t){let{view:e}=t,n=e.viewState.editorHeight*e.scaleY-e.defaultLineHeight-e.documentPadding.top-.5;n>=0&&n!=this.height&&(this.height=n,this.attrs={style:`padding-bottom: ${n}px`})}});const iu=Ts.line({class:"cm-activeLine"}),ru=Ks.fromClass(class{constructor(t){this.decorations=this.getDeco(t)}update(t){(t.docChanged||t.selectionSet)&&(this.decorations=this.getDeco(t.view))}getDeco(t){let e=-1,n=[];for(let o of t.state.selection.ranges){let i=t.lineBlockAt(o.head);i.from>e&&(n.push(iu.range(i.from)),e=i.from)}return Ts.set(n)}},{decorations:t=>t.decorations});const su=2e3;function au(t,e){let n=t.posAtCoords({x:e.clientX,y:e.clientY},!1),o=t.state.doc.lineAt(n),i=n-o.from,r=i>su?-1:i==o.length?function(t,e){let n=t.coordsAtPos(t.viewport.from);return n?Math.round(Math.abs((n.left-e)/t.defaultCharacterWidth)):-1}(t,e.clientX):rr(o.text,t.state.tabSize,n-o.from);return{line:o.number,col:r,off:i}}function lu(t,e){let n=au(t,e),o=t.state.selection;return n?{update(t){if(t.docChanged){let e=t.changes.mapPos(t.startState.doc.line(n.line).from),i=t.state.doc.lineAt(e);n={line:i.number,col:n.col,off:Math.min(n.off,i.length)},o=o.map(t.changes)}},get(e,i,r){let s=au(t,e);if(!s)return o;let a=function(t,e,n){let o=Math.min(e.line,n.line),i=Math.max(e.line,n.line),r=[];if(e.off>su||n.off>su||e.col<0||n.col<0){let s=Math.min(e.off,n.off),a=Math.max(e.off,n.off);for(let e=o;e<=i;e++){let n=t.doc.line(e);n.length<=a&&r.push(Go.range(n.from+s,n.to+a))}}else{let s=Math.min(e.col,n.col),a=Math.max(e.col,n.col);for(let e=o;e<=i;e++){let n=t.doc.line(e),o=sr(n.text,s,t.tabSize,!0);if(o<0)r.push(Go.cursor(n.to));else{let e=sr(n.text,a,t.tabSize);r.push(Go.range(n.from+o,n.from+e))}}}return r}(t.state,n,s);return a.length?r?Go.create(a.concat(o.ranges)):Go.create(a):o}}:null}function cu(t){let e=(null==t?void 0:t.eventFilter)||(t=>t.altKey&&0==t.button);return fc.mouseSelectionStyle.of(((t,n)=>e(n)?lu(t,n):null))}const uu={Alt:[18,t=>!!t.altKey],Control:[17,t=>!!t.ctrlKey],Shift:[16,t=>!!t.shiftKey],Meta:[91,t=>!!t.metaKey]},hu={style:"cursor: crosshair"};function pu(t={}){let[e,n]=uu[t.key||"Alt"],o=Ks.fromClass(class{constructor(t){this.view=t,this.isDown=!1}set(t){this.isDown!=t&&(this.isDown=t,this.view.update([]))}},{eventObservers:{keydown(t){this.set(t.keyCode==e||n(t))},keyup(t){t.keyCode!=e&&n(t)||this.set(!1)},mousemove(t){this.set(n(t))}}});return[o,fc.contentAttributes.of((t=>{var e;return(null===(e=t.plugin(o))||void 0===e?void 0:e.isDown)?hu:null}))]}const du="-10000px";class fu{constructor(t,e,n){this.facet=e,this.createTooltipView=n,this.input=t.state.facet(e),this.tooltips=this.input.filter((t=>t)),this.tooltipViews=this.tooltips.map(n)}update(t,e){var n;let o=t.state.facet(this.facet),i=o.filter((t=>t));if(o===this.input){for(let e of this.tooltipViews)e.update&&e.update(t);return!1}let r=[],s=e?[]:null;for(let n=0;ne[n]=t)),e.length=s.length),this.input=o,this.tooltips=i,this.tooltipViews=r,!0}}function gu(t){let{win:e}=t;return{top:0,left:0,bottom:e.innerHeight,right:e.innerWidth}}const mu=Jo.define({combine:t=>{var e,n,o;return{position:us.ios?"absolute":(null===(e=t.find((t=>t.position)))||void 0===e?void 0:e.position)||"fixed",parent:(null===(n=t.find((t=>t.parent)))||void 0===n?void 0:n.parent)||null,tooltipSpace:(null===(o=t.find((t=>t.tooltipSpace)))||void 0===o?void 0:o.tooltipSpace)||gu}}}),vu=new WeakMap,yu=Ks.fromClass(class{constructor(t){this.view=t,this.above=[],this.inView=!0,this.madeAbsolute=!1,this.lastTransaction=0,this.measureTimeout=-1;let e=t.state.facet(mu);this.position=e.position,this.parent=e.parent,this.classes=t.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.manager=new fu(t,bu,(t=>this.createTooltip(t))),this.intersectionObserver="function"==typeof IntersectionObserver?new IntersectionObserver((t=>{Date.now()>this.lastTransaction-50&&t.length>0&&t[t.length-1].intersectionRatio<1&&this.measureSoon()}),{threshold:[1]}):null,this.observeIntersection(),t.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver){this.intersectionObserver.disconnect();for(let t of this.manager.tooltipViews)this.intersectionObserver.observe(t.dom)}}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout((()=>{this.measureTimeout=-1,this.maybeMeasure()}),50))}update(t){t.transactions.length&&(this.lastTransaction=Date.now());let e=this.manager.update(t,this.above);e&&this.observeIntersection();let n=e||t.geometryChanged,o=t.state.facet(mu);if(o.position!=this.position&&!this.madeAbsolute){this.position=o.position;for(let t of this.manager.tooltipViews)t.dom.style.position=this.position;n=!0}if(o.parent!=this.parent){this.parent&&this.container.remove(),this.parent=o.parent,this.createContainer();for(let t of this.manager.tooltipViews)this.container.appendChild(t.dom);n=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);n&&this.maybeMeasure()}createTooltip(t){let e=t.create(this.view);if(e.dom.classList.add("cm-tooltip"),t.arrow&&!e.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let t=document.createElement("div");t.className="cm-tooltip-arrow",e.dom.appendChild(t)}return e.dom.style.position=this.position,e.dom.style.top=du,e.dom.style.left="0px",this.container.appendChild(e.dom),e.mount&&e.mount(this.view),e}destroy(){var t,e;this.view.win.removeEventListener("resize",this.measureSoon);for(let e of this.manager.tooltipViews)e.dom.remove(),null===(t=e.destroy)||void 0===t||t.call(e);this.parent&&this.container.remove(),null===(e=this.intersectionObserver)||void 0===e||e.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let t=this.view.dom.getBoundingClientRect(),e=1,n=1,o=!1;if("fixed"==this.position&&this.manager.tooltipViews.length){let{dom:t}=this.manager.tooltipViews[0];if(us.gecko)o=t.offsetParent!=this.container.ownerDocument.body;else if(t.style.top==du&&"0px"==t.style.left){let e=t.getBoundingClientRect();o=Math.abs(e.top+1e4)>1||Math.abs(e.left)>1}}if(o||"absolute"==this.position)if(this.parent){let t=this.parent.getBoundingClientRect();t.width&&t.height&&(e=t.width/this.parent.offsetWidth,n=t.height/this.parent.offsetHeight)}else({scaleX:e,scaleY:n}=this.view.viewState);return{editor:t,parent:this.parent?this.container.getBoundingClientRect():t,pos:this.manager.tooltips.map(((t,e)=>{let n=this.manager.tooltipViews[e];return n.getCoords?n.getCoords(t.pos):this.view.coordsAtPos(t.pos)})),size:this.manager.tooltipViews.map((({dom:t})=>t.getBoundingClientRect())),space:this.view.state.facet(mu).tooltipSpace(this.view),scaleX:e,scaleY:n,makeAbsolute:o}}writeMeasure(t){var e;if(t.makeAbsolute){this.madeAbsolute=!0,this.position="absolute";for(let t of this.manager.tooltipViews)t.dom.style.position="absolute"}let{editor:n,space:o,scaleX:i,scaleY:r}=t,s=[];for(let a=0;a=Math.min(n.bottom,o.bottom)||h.rightMath.min(n.right,o.right)+.1){u.style.top=du;continue}let d=l.arrow?c.dom.querySelector(".cm-tooltip-arrow"):null,f=d?7:0,g=p.right-p.left,m=null!==(e=vu.get(c))&&void 0!==e?e:p.bottom-p.top,v=c.offset||Ou,y=this.view.textDirection==ha.LTR,_=p.width>o.right-o.left?y?o.left:o.right-p.width:y?Math.min(h.left-(d?14:0)+v.x,o.right-g):Math.max(o.left,h.left-g+(d?14:0)-v.x),O=this.above[a];!l.strictSide&&(O?h.top-(p.bottom-p.top)-v.yo.bottom)&&O==o.bottom-h.bottom>h.top-o.top&&(O=this.above[a]=!O);let b=(O?h.top-o.top:o.bottom-h.bottom)-f;if(b_&&t.topw&&(w=O?t.top-m-2-f:t.bottom+f+2);if("absolute"==this.position?(u.style.top=(w-t.parent.top)/r+"px",u.style.left=(_-t.parent.left)/i+"px"):(u.style.top=w/r+"px",u.style.left=_/i+"px"),d){let t=h.left+(y?v.x:-v.x)-(_+14-7);d.style.left=t/i+"px"}!0!==c.overlap&&s.push({left:_,top:w,right:x,bottom:w+m}),u.classList.toggle("cm-tooltip-above",O),u.classList.toggle("cm-tooltip-below",!O),c.positioned&&c.positioned(t.space)}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView)))for(let t of this.manager.tooltipViews)t.dom.style.top=du}},{eventObservers:{scroll(){this.maybeMeasure()}}}),_u=fc.baseTheme({".cm-tooltip":{zIndex:100,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:`${7}px`,width:`${7*2}px`,position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:`${7}px solid transparent`,borderRight:`${7}px solid transparent`},".cm-tooltip-above &":{bottom:`-${7}px`,"&:before":{borderTop:`${7}px solid #bbb`},"&:after":{borderTop:`${7}px solid #f5f5f5`,bottom:"1px"}},".cm-tooltip-below &":{top:`-${7}px`,"&:before":{borderBottom:`${7}px solid #bbb`},"&:after":{borderBottom:`${7}px solid #f5f5f5`,top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),Ou={x:0,y:0},bu=Jo.define({enables:[yu,_u]}),wu=Jo.define();class xu{static create(t){return new xu(t)}constructor(t){this.view=t,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new fu(t,wu,(t=>this.createHostedView(t)))}createHostedView(t){let e=t.create(this.view);return e.dom.classList.add("cm-tooltip-section"),this.dom.appendChild(e.dom),this.mounted&&e.mount&&e.mount(this.view),e}mount(t){for(let e of this.manager.tooltipViews)e.mount&&e.mount(t);this.mounted=!0}positioned(t){for(let e of this.manager.tooltipViews)e.positioned&&e.positioned(t)}update(t){this.manager.update(t)}destroy(){var t;for(let e of this.manager.tooltipViews)null===(t=e.destroy)||void 0===t||t.call(e)}passProp(t){let e;for(let n of this.manager.tooltipViews){let o=n[t];if(void 0!==o)if(void 0===e)e=o;else if(e!==o)return}return e}get offset(){return this.passProp("offset")}get getCoords(){return this.passProp("getCoords")}get overlap(){return this.passProp("overlap")}get resize(){return this.passProp("resize")}}const Su=bu.compute([wu],(t=>{let e=t.facet(wu).filter((t=>t));return 0===e.length?null:{pos:Math.min(...e.map((t=>t.pos))),end:Math.max(...e.map((t=>{var e;return null!==(e=t.end)&&void 0!==e?e:t.pos}))),create:xu.create,above:e[0].above,arrow:e.some((t=>t.arrow))}}));class ku{constructor(t,e,n,o,i){this.view=t,this.source=e,this.field=n,this.setHover=o,this.hoverTime=i,this.hoverTimeout=-1,this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:t.dom,time:0},this.checkHover=this.checkHover.bind(this),t.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),t.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}update(){this.pending&&(this.pending=null,clearTimeout(this.restartTimeout),this.restartTimeout=setTimeout((()=>this.startHover()),20))}get active(){return this.view.state.field(this.field)}checkHover(){if(this.hoverTimeout=-1,this.active)return;let t=Date.now()-this.lastMove.time;tn.bottom||e.xn.right+t.defaultCharacterWidth)return;let r=t.bidiSpans(t.state.doc.lineAt(o)).find((t=>t.from<=o&&t.to>=o)),s=r&&r.dir==ha.RTL?-1:1;i=e.x{this.pending==e&&(this.pending=null,n&&t.dispatch({effects:this.setHover.of(n)}))}),(e=>Bs(t.state,e,"hover tooltip")))}else r&&t.dispatch({effects:this.setHover.of(r)})}get tooltip(){let t=this.view.plugin(yu),e=t?t.manager.tooltips.findIndex((t=>t.create==xu.create)):-1;return e>-1?t.manager.tooltipViews[e]:null}mousemove(t){var e;this.lastMove={x:t.clientX,y:t.clientY,target:t.target,time:Date.now()},this.hoverTimeout<0&&(this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime));let{active:n,tooltip:o}=this;if(n&&o&&!function(t,e){let n=t.getBoundingClientRect();return e.clientX>=n.left-Pu&&e.clientX<=n.right+Pu&&e.clientY>=n.top-Pu&&e.clientY<=n.bottom+Pu}(o.dom,t)||this.pending){let{pos:o}=n||this.pending,i=null!==(e=null==n?void 0:n.end)&&void 0!==e?e:o;(o==i?this.view.posAtCoords(this.lastMove)==o:function(t,e,n,o,i,r){let s=t.scrollDOM.getBoundingClientRect(),a=t.documentTop+t.documentPadding.top+t.contentHeight;if(s.left>o||s.righti||Math.min(s.bottom,a)=e&&l<=n}(this.view,o,i,t.clientX,t.clientY))||(this.view.dispatch({effects:this.setHover.of(null)}),this.pending=null)}}mouseleave(t){clearTimeout(this.hoverTimeout),this.hoverTimeout=-1;let{active:e}=this;if(e){let{tooltip:e}=this;e&&e.dom.contains(t.relatedTarget)?this.watchTooltipLeave(e.dom):this.view.dispatch({effects:this.setHover.of(null)})}}watchTooltipLeave(t){let e=n=>{t.removeEventListener("mouseleave",e),this.active&&!this.view.dom.contains(n.relatedTarget)&&this.view.dispatch({effects:this.setHover.of(null)})};t.addEventListener("mouseleave",e)}destroy(){clearTimeout(this.hoverTimeout),this.view.dom.removeEventListener("mouseleave",this.mouseleave),this.view.dom.removeEventListener("mousemove",this.mousemove)}}const Pu=4;function Cu(t,e={}){let n=Ei.define(),o=si.define({create:()=>null,update(t,o){if(t&&(e.hideOnChange&&(o.docChanged||o.selection)||e.hideOn&&e.hideOn(o,t)))return null;if(t&&o.docChanged){let e=o.changes.mapPos(t.pos,-1,No.TrackDel);if(null==e)return null;let n=Object.assign(Object.create(null),t);n.pos=e,null!=t.end&&(n.end=o.changes.mapPos(t.end)),t=n}for(let e of o.effects)e.is(n)&&(t=e.value),e.is(Eu)&&(t=null);return t},provide:t=>wu.from(t)});return[o,Ks.define((i=>new ku(i,t,o,n,e.hoverTime||300))),Su]}function Tu(t,e){let n=t.plugin(yu);if(!n)return null;let o=n.manager.tooltips.indexOf(e);return o<0?null:n.manager.tooltipViews[o]}const Eu=Ei.define();null&&Eu.of(null);const Qu=Jo.define({combine(t){let e,n;for(let o of t)e=e||o.topContainer,n=n||o.bottomContainer;return{topContainer:e,bottomContainer:n}}});function Au(t,e){let n=t.plugin($u),o=n?n.specs.indexOf(e):-1;return o>-1?n.panels[o]:null}const $u=Ks.fromClass(class{constructor(t){this.input=t.state.facet(Zu),this.specs=this.input.filter((t=>t)),this.panels=this.specs.map((e=>e(t)));let e=t.state.facet(Qu);this.top=new ju(t,!0,e.topContainer),this.bottom=new ju(t,!1,e.bottomContainer),this.top.sync(this.panels.filter((t=>t.top))),this.bottom.sync(this.panels.filter((t=>!t.top)));for(let t of this.panels)t.dom.classList.add("cm-panel"),t.mount&&t.mount()}update(t){let e=t.state.facet(Qu);this.top.container!=e.topContainer&&(this.top.sync([]),this.top=new ju(t.view,!0,e.topContainer)),this.bottom.container!=e.bottomContainer&&(this.bottom.sync([]),this.bottom=new ju(t.view,!1,e.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let n=t.state.facet(Zu);if(n!=this.input){let e=n.filter((t=>t)),o=[],i=[],r=[],s=[];for(let n of e){let e,a=this.specs.indexOf(n);a<0?(e=n(t.view),s.push(e)):(e=this.panels[a],e.update&&e.update(t)),o.push(e),(e.top?i:r).push(e)}this.specs=e,this.panels=o,this.top.sync(i),this.bottom.sync(r);for(let t of s)t.dom.classList.add("cm-panel"),t.mount&&t.mount()}else for(let e of this.panels)e.update&&e.update(t)}destroy(){this.top.sync([]),this.bottom.sync([])}},{provide:t=>fc.scrollMargins.of((e=>{let n=e.plugin(t);return n&&{top:n.top.scrollMargin(),bottom:n.bottom.scrollMargin()}}))});class ju{constructor(t,e,n){this.view=t,this.top=e,this.container=n,this.dom=void 0,this.classes="",this.panels=[],this.syncClasses()}sync(t){for(let e of this.panels)e.destroy&&t.indexOf(e)<0&&e.destroy();this.panels=t,this.syncDOM()}syncDOM(){if(0==this.panels.length)return void(this.dom&&(this.dom.remove(),this.dom=void 0));if(!this.dom){this.dom=document.createElement("div"),this.dom.className=this.top?"cm-panels cm-panels-top":"cm-panels cm-panels-bottom",this.dom.style[this.top?"top":"bottom"]="0";let t=this.container||this.view.dom;t.insertBefore(this.dom,this.top?t.firstChild:null)}let t=this.dom.firstChild;for(let e of this.panels)if(e.dom.parentNode==this.dom){for(;t!=e.dom;)t=Ru(t);t=t.nextSibling}else this.dom.insertBefore(e.dom,t);for(;t;)t=Ru(t)}scrollMargin(){return!this.dom||this.container?0:Math.max(0,this.top?this.dom.getBoundingClientRect().bottom-Math.max(0,this.view.scrollDOM.getBoundingClientRect().top):Math.min(innerHeight,this.view.scrollDOM.getBoundingClientRect().bottom)-this.dom.getBoundingClientRect().top)}syncClasses(){if(this.container&&this.classes!=this.view.themeClasses){for(let t of this.classes.split(" "))t&&this.container.classList.remove(t);for(let t of(this.classes=this.view.themeClasses).split(" "))t&&this.container.classList.add(t)}}}function Ru(t){let e=t.nextSibling;return t.remove(),e}const Zu=Jo.define({enables:$u});class Mu extends Li{compare(t){return this==t||this.constructor==t.constructor&&this.eq(t)}eq(t){return!1}destroy(t){}}Mu.prototype.elementClass="",Mu.prototype.toDOM=void 0,Mu.prototype.mapMode=No.TrackBefore,Mu.prototype.startSide=Mu.prototype.endSide=-1,Mu.prototype.point=!0;const Vu=Jo.define(),Du={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>Ui.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{}},Iu=Jo.define();function Nu(t){return[Xu(),Iu.of(Object.assign(Object.assign({},Du),t))]}const Wu=Jo.define({combine:t=>t.some((t=>t))});function Xu(t){let e=[Lu];return t&&!1===t.fixed&&e.push(Wu.of(!0)),e}const Lu=Ks.fromClass(class{constructor(t){this.view=t,this.prevViewport=t.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.gutters=t.state.facet(Iu).map((e=>new Uu(t,e)));for(let t of this.gutters)this.dom.appendChild(t.dom);this.fixed=!t.state.facet(Wu),this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),t.scrollDOM.insertBefore(this.dom,t.contentDOM)}update(t){if(this.updateGutters(t)){let e=this.prevViewport,n=t.view.viewport,o=Math.min(e.to,n.to)-Math.max(e.from,n.from);this.syncGutters(o<.8*(n.to-n.from))}t.geometryChanged&&(this.dom.style.minHeight=this.view.contentHeight+"px"),this.view.state.facet(Wu)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":""),this.prevViewport=t.view.viewport}syncGutters(t){let e=this.dom.nextSibling;t&&this.dom.remove();let n=Ui.iter(this.view.state.facet(Vu),this.view.viewport.from),o=[],i=this.gutters.map((t=>new qu(t,this.view.viewport,-this.view.documentPadding.top)));for(let t of this.view.viewportLineBlocks)if(o.length&&(o=[]),Array.isArray(t.type)){let e=!0;for(let r of t.type)if(r.type==Cs.Text&&e){zu(n,o,r.from);for(let t of i)t.line(this.view,r,o);e=!1}else if(r.widget)for(let t of i)t.widget(this.view,r)}else if(t.type==Cs.Text){zu(n,o,t.from);for(let e of i)e.line(this.view,t,o)}else if(t.widget)for(let e of i)e.widget(this.view,t);for(let t of i)t.finish();t&&this.view.scrollDOM.insertBefore(this.dom,e)}updateGutters(t){let e=t.startState.facet(Iu),n=t.state.facet(Iu),o=t.docChanged||t.heightChanged||t.viewportChanged||!Ui.eq(t.startState.facet(Vu),t.state.facet(Vu),t.view.viewport.from,t.view.viewport.to);if(e==n)for(let e of this.gutters)e.update(t)&&(o=!0);else{o=!0;let i=[];for(let o of n){let n=e.indexOf(o);n<0?i.push(new Uu(this.view,o)):(this.gutters[n].update(t),i.push(this.gutters[n]))}for(let t of this.gutters)t.dom.remove(),i.indexOf(t)<0&&t.destroy();for(let t of i)this.dom.appendChild(t.dom);this.gutters=i}return o}destroy(){for(let t of this.gutters)t.destroy();this.dom.remove()}},{provide:t=>fc.scrollMargins.of((e=>{let n=e.plugin(t);return n&&0!=n.gutters.length&&n.fixed?e.textDirection==ha.LTR?{left:n.dom.offsetWidth*e.scaleX}:{right:n.dom.offsetWidth*e.scaleX}:null}))});function Yu(t){return Array.isArray(t)?t:[t]}function zu(t,e,n){for(;t.value&&t.from<=n;)t.from==n&&e.push(t.value),t.next()}class qu{constructor(t,e,n){this.gutter=t,this.height=n,this.i=0,this.cursor=Ui.iter(t.markers,e.from)}addElement(t,e,n){let{gutter:o}=this,i=(e.top-this.height)/t.scaleY,r=e.height/t.scaleY;if(this.i==o.elements.length){let e=new Bu(t,r,i,n);o.elements.push(e),o.dom.appendChild(e.dom)}else o.elements[this.i].update(t,r,i,n);this.height=e.bottom,this.i++}line(t,e,n){let o=[];zu(this.cursor,o,e.from),n.length&&(o=o.concat(n));let i=this.gutter.config.lineMarker(t,e,o);i&&o.unshift(i);let r=this.gutter;(0!=o.length||r.config.renderEmptyElements)&&this.addElement(t,e,o)}widget(t,e){let n=this.gutter.config.widgetMarker(t,e.widget,e);n&&this.addElement(t,e,[n])}finish(){let t=this.gutter;for(;t.elements.length>this.i;){let e=t.elements.pop();t.dom.removeChild(e.dom),e.destroy()}}}class Uu{constructor(t,e){this.view=t,this.config=e,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let n in e.domEventHandlers)this.dom.addEventListener(n,(o=>{let i,r=o.target;if(r!=this.dom&&this.dom.contains(r)){for(;r.parentNode!=this.dom;)r=r.parentNode;let t=r.getBoundingClientRect();i=(t.top+t.bottom)/2}else i=o.clientY;let s=t.lineBlockAtHeight(i-t.documentTop);e.domEventHandlers[n](t,s,o)&&o.preventDefault()}));this.markers=Yu(e.markers(t)),e.initialSpacer&&(this.spacer=new Bu(t,0,0,[e.initialSpacer(t)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(t){let e=this.markers;if(this.markers=Yu(this.config.markers(t.view)),this.spacer&&this.config.updateSpacer){let e=this.config.updateSpacer(this.spacer.markers[0],t);e!=this.spacer.markers[0]&&this.spacer.update(t.view,0,0,[e])}let n=t.view.viewport;return!Ui.eq(this.markers,e,n.from,n.to)||!!this.config.lineMarkerChange&&this.config.lineMarkerChange(t)}destroy(){for(let t of this.elements)t.destroy()}}class Bu{constructor(t,e,n,o){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(t,e,n,o)}update(t,e,n,o){this.height!=e&&(this.height=e,this.dom.style.height=e+"px"),this.above!=n&&(this.dom.style.marginTop=(this.above=n)?n+"px":""),function(t,e){if(t.length!=e.length)return!1;for(let n=0;nXi(t,{formatNumber:String,domEventHandlers:{}},{domEventHandlers(t,e){let n=Object.assign({},t);for(let t in e){let o=n[t],i=e[t];n[t]=o?(t,e,n)=>o(t,e,n)||i(t,e,n):i}return n}})});class Hu extends Mu{constructor(t){super(),this.number=t}eq(t){return this.number==t.number}toDOM(){return document.createTextNode(this.number)}}function Ku(t,e){return t.state.facet(Gu).formatNumber(e,t.state)}const Ju=Iu.compute([Gu],(t=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers:t=>t.state.facet(Fu),lineMarker:(t,e,n)=>n.some((t=>t.toDOM))?null:new Hu(Ku(t,t.state.doc.lineAt(e.from).number)),widgetMarker:()=>null,lineMarkerChange:t=>t.startState.facet(Gu)!=t.state.facet(Gu),initialSpacer:t=>new Hu(Ku(t,eh(t.state.doc.lines))),updateSpacer(t,e){let n=Ku(e.view,eh(e.view.state.doc.lines));return n==t.number?t:new Hu(n)},domEventHandlers:t.facet(Gu).domEventHandlers})));function th(t={}){return[Gu.of(t),Xu(),Ju]}function eh(t){let e=9;for(;e{let e=[],n=-1;for(let o of t.selection.ranges){let i=t.doc.lineAt(o.head).from;i>n&&(n=i,e.push(nh.range(i)))}return Ui.of(e)}));var ih=function(){return ih=Object.assign||function(t){for(var e,n=1,o=arguments.length;n0&&(h=Math.max.apply(Math,u),p=Math.min.apply(Math,u));var d=Math.abs(h),f=Math.abs(p),g=Math.max(d,f)+1,m=-g;return o=o.map((function(t){return t.from=sh(t.from)?t.from:m,t.to=sh(t.to)?t.to:g,t})),i={from:sh(i.from)?i.from:m,to:sh(i.to)?i.to:g},s={from:sh(s.from)?s.from:m,to:sh(s.to)?s.to:g},o=o.slice().sort((function(t,e){var n=t.to-t.from,o=e.to-e.from;if(t.from>e.from)return 1;if(t.from===e.from){if(t.from+n>e.from+o)return-1;if(t.from+n===e.from+o)return 0;if(t.from+n=o.from}))).map((function(t){return function(t,e){return{from:t.frome.to?e.to:t.to}}(t,o)}));var r=e.to-e.from;if(e.from>=t[0].from&&e.from<=t[0].to)e.from+r<=t[0].to?e=null:e.from=t[0].to+1;else if(e.from=t[0].from){var s=e.to,a={from:e.from,to:t[0].from-1};n.push(a),s>t[0].to?e.from=t[0].to+1:e=null}return t.shift(),lh(t,e,n,o)},ch=function(t){return fc.domEventHandlers({paste:function(e,n){var o=(e.clipboardData||window.clipboardData).getData("Text"),i=n.state.selection.ranges.map((function(t){return{from:t.from,to:t.to}}));if(i.length>0){var r=t(n.state),s=ah(r,i[0],{from:0,to:n.state.doc.line(n.state.doc.lines).to});s.length>0&&n.dispatch({changes:{from:s[0].from,to:s[0].to,insert:o},annotations:Qi.userEvent.of("input.paste.smart")})}return!0}})};const uh=1024;let hh=0;class ph{constructor(t,e){this.from=t,this.to=e}}class dh{constructor(t={}){this.id=hh++,this.perNode=!!t.perNode,this.deserialize=t.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")})}add(t){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return"function"!=typeof t&&(t=mh.match(t)),e=>{let n=t(e);return void 0===n?null:[this,n]}}}dh.closedBy=new dh({deserialize:t=>t.split(" ")}),dh.openedBy=new dh({deserialize:t=>t.split(" ")}),dh.group=new dh({deserialize:t=>t.split(" ")}),dh.contextHash=new dh({perNode:!0}),dh.lookAhead=new dh({perNode:!0}),dh.mounted=new dh({perNode:!0});class fh{constructor(t,e,n){this.tree=t,this.overlay=e,this.parser=n}static get(t){return t&&t.props&&t.props[dh.mounted.id]}}const gh=Object.create(null);class mh{constructor(t,e,n,o=0){this.name=t,this.props=e,this.id=n,this.flags=o}static define(t){let e=t.props&&t.props.length?Object.create(null):gh,n=(t.top?1:0)|(t.skipped?2:0)|(t.error?4:0)|(null==t.name?8:0),o=new mh(t.name||"",e,t.id,n);if(t.props)for(let n of t.props)if(Array.isArray(n)||(n=n(o)),n){if(n[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");e[n[0].id]=n[1]}return o}prop(t){return this.props[t.id]}get isTop(){return(1&this.flags)>0}get isSkipped(){return(2&this.flags)>0}get isError(){return(4&this.flags)>0}get isAnonymous(){return(8&this.flags)>0}is(t){if('string'==typeof t){if(this.name==t)return!0;let e=this.prop(dh.group);return!!e&&e.indexOf(t)>-1}return this.id==t}static match(t){let e=Object.create(null);for(let n in t)for(let o of n.split(" "))e[o]=t[n];return t=>{for(let n=t.prop(dh.group),o=-1;o<(n?n.length:0);o++){let i=e[o<0?t.name:n[o]];if(i)return i}}}}mh.none=new mh("",Object.create(null),0,8);class vh{constructor(t){this.types=t;for(let e=0;e=e){let s=new Ch(r.tree,r.overlay[0].from+t.from,-1,t);(i||(i=[o])).push(kh(s,e,n,!1))}}return i?$h(i):o}(this,t,e)}iterate(t){let{enter:e,leave:n,from:o=0,to:i=this.length}=t,r=t.mode||0,s=(r&Oh.IncludeAnonymous)>0;for(let t=this.cursor(r|Oh.IncludeAnonymous);;){let r=!1;if(t.from<=i&&t.to>=o&&(!s&&t.type.isAnonymous||!1!==e(t))){if(t.firstChild())continue;r=!0}for(;r&&n&&(s||!t.type.isAnonymous)&&n(t),!t.nextSibling();){if(!t.parent())return;r=!0}}}prop(t){return t.perNode?this.props?this.props[t.id]:void 0:this.type.prop(t)}get propValues(){let t=[];if(this.props)for(let e in this.props)t.push([+e,this.props[e]]);return t}balance(t={}){return this.children.length<=8?this:Dh(mh.none,this.children,this.positions,0,this.children.length,0,this.length,((t,e,n)=>new bh(this.type,t,e,n,this.propValues)),t.makeTree||((t,e,n)=>new bh(mh.none,t,e,n)))}static build(t){return function(t){var e;let{buffer:n,nodeSet:o,maxBufferLength:i=uh,reused:r=[],minRepeatType:s=o.types.length}=t,a=Array.isArray(n)?new wh(n,n.length):n,l=o.types,c=0,u=0;function h(t,e,n,y,_,O){let{id:b,start:w,end:x,size:S}=a,k=u;for(;S<0;){if(a.next(),-1==S){let e=r[b];return n.push(e),void y.push(w-t)}if(-3==S)return void(c=b);if(-4==S)return void(u=b);throw new RangeError(`Unrecognized record size: ${S}`)}let P,C,T=l[b],E=w-t;if(x-w<=i&&(C=m(a.pos-e,_))){let e=new Uint16Array(C.size-C.skip),n=a.pos-C.size,i=e.length;for(;a.pos>n;)i=v(C.start,e,i);P=new xh(e,x-C.start,o),E=C.start-t}else{let t=a.pos-S;a.next();let e=[],n=[],o=b>=s?b:-1,r=0,l=x;for(;a.pos>t;)o>=0&&a.id==o&&a.size>=0?(a.end<=l-i&&(f(e,n,w,r,a.end,l,o,k),r=e.length,l=a.end),a.next()):O>2500?p(w,t,e,n):h(w,t,e,n,o,O+1);if(o>=0&&r>0&&r-1&&r>0){let t=d(T);P=Dh(T,e,n,0,e.length,0,x-w,t,t)}else P=g(T,e,n,x-w,k-x)}n.push(P),y.push(E)}function p(t,e,n,r){let s=[],l=0,c=-1;for(;a.pos>e;){let{id:t,start:e,end:n,size:o}=a;if(o>4)a.next();else{if(c>-1&&e=0;t-=3)e[n++]=s[t],e[n++]=s[t+1]-i,e[n++]=s[t+2]-i,e[n++]=n;n.push(new xh(e,s[2]-i,o)),r.push(i-t)}}function d(t){return(e,n,o)=>{let i,r,s=0,a=e.length-1;if(a>=0&&(i=e[a])instanceof bh){if(!a&&i.type==t&&i.length==o)return i;(r=i.prop(dh.lookAhead))&&(s=n[a]+i.length+r)}return g(t,e,n,o,s)}}function f(t,e,n,i,r,s,a,l){let c=[],u=[];for(;t.length>i;)c.push(t.pop()),u.push(e.pop()+n-r);t.push(g(o.types[a],c,u,s-r,l-s)),e.push(r-n)}function g(t,e,n,o,i=0,r){if(c){let t=[dh.contextHash,c];r=r?[t].concat(r):[t]}if(i>25){let t=[dh.lookAhead,i];r=r?[t].concat(r):[t]}return new bh(t,e,n,o,r)}function m(t,e){let n=a.fork(),o=0,r=0,l=0,c=n.end-i,u={size:0,start:0,skip:0};t:for(let i=n.pos-t;n.pos>i;){let t=n.size;if(n.id==e&&t>=0){u.size=o,u.start=r,u.skip=l,l+=4,o+=4,n.next();continue}let a=n.pos-t;if(t<0||a=s?4:0,p=n.start;for(n.next();n.pos>a;){if(n.size<0){if(-3!=n.size)break t;h+=4}else n.id>=s&&(h+=4);n.next()}r=p,o+=t,l+=h}return(e<0||o==t)&&(u.size=o,u.start=r,u.skip=l),u.size>4?u:void 0}function v(t,e,n){let{id:o,start:i,end:r,size:l}=a;if(a.next(),l>=0&&o4){let o=a.pos-(l-4);for(;a.pos>o;)n=v(t,e,n)}e[--n]=s,e[--n]=r-t,e[--n]=i-t,e[--n]=o}else-3==l?c=o:-4==l&&(u=o);return n}let y=[],_=[];for(;a.pos>0;)h(t.start||0,t.bufferStart||0,y,_,-1,0);let O=null!==(e=t.length)&&void 0!==e?e:y.length?_[0]+y[0].length:0;return new bh(l[t.topID],y.reverse(),_.reverse(),O)}(t)}}bh.empty=new bh(mh.none,[],[],0);class wh{constructor(t,e){this.buffer=t,this.index=e}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new wh(this.buffer,this.index)}}class xh{constructor(t,e,n){this.buffer=t,this.length=e,this.set=n}get type(){return mh.none}toString(){let t=[];for(let e=0;e0));a=r[a+3]);return s}slice(t,e,n){let o=this.buffer,i=new Uint16Array(e-t),r=0;for(let s=t,a=0;s=e&&ne;case 1:return n<=e&&o>e;case 2:return o>e;case 4:return!0}}function kh(t,e,n,o){for(var i;t.from==t.to||(n<1?t.from>=e:t.from>e)||(n>-1?t.to<=e:t.to0?s.length:-1;t!=l;t+=e){let l=s[t],c=a[t]+r.from;if(Sh(o,n,c,c+l.length))if(l instanceof xh){if(i&Oh.ExcludeBuffers)continue;let s=l.findChild(0,l.buffer.length,e,n-c,o);if(s>-1)return new Ah(new Qh(r,l,t,c),null,s)}else if(i&Oh.IncludeAnonymous||!l.type.isAnonymous||Zh(l)){let s;if(!(i&Oh.IgnoreMounts)&&(s=fh.get(l))&&!s.overlay)return new Ch(s.tree,c,t,r);let a=new Ch(l,c,t,r);return i&Oh.IncludeAnonymous||!a.type.isAnonymous?a:a.nextChild(e<0?l.children.length-1:0,e,n,o)}}if(i&Oh.IncludeAnonymous||!r.type.isAnonymous)return null;if(t=r.index>=0?r.index+e:e<0?-1:r._parent._tree.children.length,r=r._parent,!r)return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(t){return this.nextChild(0,1,t,2)}childBefore(t){return this.nextChild(this._tree.children.length-1,-1,t,-2)}enter(t,e,n=0){let o;if(!(n&Oh.IgnoreOverlays)&&(o=fh.get(this._tree))&&o.overlay){let n=t-this.from;for(let{from:t,to:i}of o.overlay)if((e>0?t<=n:t=n:i>n))return new Ch(o.tree,o.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,t,e,n)}nextSignificantParent(){let t=this;for(;t.type.isAnonymous&&t._parent;)t=t._parent;return t}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function Th(t,e,n,o){let i=t.cursor(),r=[];if(!i.firstChild())return r;if(null!=n)for(;!i.type.is(n);)if(!i.nextSibling())return r;for(;;){if(null!=o&&i.type.is(o))return r;if(i.type.is(e)&&r.push(i.node),!i.nextSibling())return null==o?r:[]}}function Eh(t,e,n=e.length-1){for(let o=t.parent;n>=0;o=o.parent){if(!o)return!1;if(!o.type.isAnonymous){if(e[n]&&e[n]!=o.name)return!1;n--}}return!0}class Qh{constructor(t,e,n,o){this.parent=t,this.buffer=e,this.index=n,this.start=o}}class Ah extends Ph{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(t,e,n){super(),this.context=t,this._parent=e,this.index=n,this.type=t.buffer.set.types[t.buffer.buffer[n]]}child(t,e,n){let{buffer:o}=this.context,i=o.findChild(this.index+4,o.buffer[this.index+3],t,e-this.context.start,n);return i<0?null:new Ah(this.context,this,i)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(t){return this.child(1,t,2)}childBefore(t){return this.child(-1,t,-2)}enter(t,e,n=0){if(n&Oh.ExcludeBuffers)return null;let{buffer:o}=this.context,i=o.findChild(this.index+4,o.buffer[this.index+3],e>0?1:-1,t-this.context.start,e);return i<0?null:new Ah(this.context,this,i)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(t){return this._parent?null:this.context.parent.nextChild(this.context.index+t,t,0,4)}get nextSibling(){let{buffer:t}=this.context,e=t.buffer[this.index+3];return e<(this._parent?t.buffer[this._parent.index+3]:t.buffer.length)?new Ah(this.context,this._parent,e):this.externalSibling(1)}get prevSibling(){let{buffer:t}=this.context,e=this._parent?this._parent.index+4:0;return this.index==e?this.externalSibling(-1):new Ah(this.context,this._parent,t.findChild(e,this.index,-1,0,4))}get tree(){return null}toTree(){let t=[],e=[],{buffer:n}=this.context,o=this.index+4,i=n.buffer[this.index+3];if(i>o){let r=n.buffer[this.index+1];t.push(n.slice(o,i,r)),e.push(0)}return new bh(this.type,t,e,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function $h(t){if(!t.length)return null;let e=0,n=t[0];for(let o=1;on.from||i.to0){if(this.index-1)for(let o=e+t,i=t<0?-1:n._tree.children.length;o!=i;o+=t){let t=n._tree.children[o];if(this.mode&Oh.IncludeAnonymous||t instanceof xh||!t.type.isAnonymous||Zh(t))return!1}return!0}move(t,e){if(e&&this.enterChild(t,0,4))return!0;for(;;){if(this.sibling(t))return!0;if(this.atLastNode(t)||!this.parent())return!1}}next(t=!0){return this.move(1,t)}prev(t=!0){return this.move(-1,t)}moveTo(t,e=0){for(;(this.from==this.to||(e<1?this.from>=t:this.from>t)||(e>-1?this.to<=t:this.to=0;){for(let r=t;r;r=r._parent)if(r.index==o){if(o==this.index)return r;e=r,n=i+1;break t}o=this.stack[--i]}for(let t=n;t=0;i--){if(i<0)return Eh(this.node,t,o);let r=n[e.buffer[this.stack[i]]];if(!r.isAnonymous){if(t[o]&&t[o]!=r.name)return!1;o--}}return!0}}function Zh(t){return t.children.some((t=>t instanceof xh||!t.type.isAnonymous||Zh(t)))}const Mh=new WeakMap;function Vh(t,e){if(!t.isAnonymous||e instanceof xh||e.type!=t)return 1;let n=Mh.get(e);if(null==n){n=1;for(let o of e.children){if(o.type!=t||!(o instanceof bh)){n=1;break}n+=Vh(t,o)}Mh.set(e,n)}return n}function Dh(t,e,n,o,i,r,s,a,l){let c=0;for(let n=o;n=u)break;f+=e}if(c==i+1){if(f>u){let t=n[i];e(t.children,t.positions,0,t.children.length,o[i]+a);continue}h.push(n[i])}else{let e=o[c-1]+n[c-1].length-d;h.push(Dh(t,n,o,i,c,d,e,null,l))}p.push(d+a-r)}}(e,n,o,i,0),(a||l)(h,p,s)}class Ih{constructor(){this.map=new WeakMap}setBuffer(t,e,n){let o=this.map.get(t);o||this.map.set(t,o=new Map),o.set(e,n)}getBuffer(t,e){let n=this.map.get(t);return n&&n.get(e)}set(t,e){t instanceof Ah?this.setBuffer(t.context.buffer,t.index,e):t instanceof Ch&&this.map.set(t.tree,e)}get(t){return t instanceof Ah?this.getBuffer(t.context.buffer,t.index):t instanceof Ch?this.map.get(t.tree):void 0}cursorSet(t,e){t.buffer?this.setBuffer(t.buffer.buffer,t.index,e):this.map.set(t.tree,e)}cursorGet(t){return t.buffer?this.getBuffer(t.buffer.buffer,t.index):this.map.get(t.tree)}}class Nh{constructor(t,e,n,o,i=!1,r=!1){this.from=t,this.to=e,this.tree=n,this.offset=o,this.open=(i?1:0)|(r?2:0)}get openStart(){return(1&this.open)>0}get openEnd(){return(2&this.open)>0}static addTree(t,e=[],n=!1){let o=[new Nh(0,t.length,t,0,!1,n)];for(let n of e)n.to>t.length&&o.push(n);return o}static applyChanges(t,e,n=128){if(!e.length)return t;let o=[],i=1,r=t.length?t[0]:null;for(let s=0,a=0,l=0;;s++){let c=s=n)for(;r&&r.from=e.from||u<=e.to||l){let t=Math.max(e.from,a)-l,n=Math.min(e.to,u)-l;e=t>=n?null:new Nh(t,n,e.tree,e.offset+l,s>0,!!c)}if(e&&o.push(e),r.to>u)break;r=inew ph(t.from,t.to))):[new ph(0,0)]:[new ph(0,t.length)],this.createParse(t,e||[],n)}parse(t,e,n){let o=this.startParse(t,e,n);for(;;){let t=o.advance();if(t)return t}}}class Xh{constructor(t){this.string=t}get length(){return this.string.length}chunk(t){return this.string.slice(t)}get lineChunks(){return!1}read(t,e){return this.string.slice(t,e)}}class Lh{constructor(t,e,n,o,i){this.parser=t,this.parse=e,this.overlay=n,this.target=o,this.from=i}}function Yh(t){if(!t.length||t.some((t=>t.from>=t.to)))throw new RangeError("Invalid inner parse ranges given: "+JSON.stringify(t))}class zh{constructor(t,e,n,o,i,r,s){this.parser=t,this.predicate=e,this.mounts=n,this.index=o,this.start=i,this.target=r,this.prev=s,this.depth=0,this.ranges=[]}}const qh=new dh({perNode:!0});class Uh{constructor(t,e,n,o,i){this.nest=e,this.input=n,this.fragments=o,this.ranges=i,this.inner=[],this.innerDone=0,this.baseTree=null,this.stoppedAt=null,this.baseParse=t}advance(){if(this.baseParse){let t=this.baseParse.advance();if(!t)return null;if(this.baseParse=null,this.baseTree=t,this.startInner(),null!=this.stoppedAt)for(let t of this.inner)t.parse.stopAt(this.stoppedAt)}if(this.innerDone==this.inner.length){let t=this.baseTree;return null!=this.stoppedAt&&(t=new bh(t.type,t.children,t.positions,t.length,t.propValues.concat([[qh,this.stoppedAt]]))),t}let t=this.inner[this.innerDone],e=t.parse.advance();if(e){this.innerDone++;let n=Object.assign(Object.create(null),t.target.props);n[dh.mounted.id]=new fh(e,t.overlay,t.parser),t.target.props=n}return null}get parsedPos(){if(this.baseParse)return 0;let t=this.input.length;for(let e=this.innerDone;e=this.stoppedAt)a=!1;else if(t.hasNode(o)){if(e){let t=e.mounts.find((t=>t.frag.from<=o.from&&t.frag.to>=o.to&&t.mount.overlay));if(t)for(let n of t.mount.overlay){let i=n.from+t.pos,r=n.to+t.pos;i>=o.from&&r<=o.to&&!e.ranges.some((t=>t.fromi))&&e.ranges.push({from:i,to:r})}}a=!1}else if(n&&(r=Bh(n.ranges,o.from,o.to)))a=2!=r;else if(!o.type.isAnonymous&&(i=this.nest(o,this.input))&&(o.fromnew ph(t.from-o.from,t.to-o.from))):null,o.tree,t.length?t[0].from:o.from)),i.overlay?t.length&&(n={ranges:t,depth:0,prev:n}):a=!1}}else e&&(s=e.predicate(o))&&(!0===s&&(s=new ph(o.from,o.to)),s.fromnew ph(t.from-e.start,t.to-e.start))),e.target,t[0].from))),e=e.prev}n&&! --n.depth&&(n=n.prev)}}}}function Bh(t,e,n){for(let o of t){if(o.from>=n)break;if(o.to>e)return o.from<=e&&o.to>=n?2:1}return 0}function Fh(t,e,n,o,i,r){if(e=t&&e.enter(n,1,Oh.IgnoreOverlays|Oh.ExcludeBuffers)||e.next(!1)||(this.done=!0)}hasNode(t){if(this.moveTo(t.from),!this.done&&this.cursor.from+this.offset==t.from&&this.cursor.tree)for(let e=this.cursor.tree;;){if(e==t.tree)return!0;if(!(e.children.length&&0==e.positions[0]&&e.children[0]instanceof bh))break;e=e.children[0]}return!1}}class Kh{constructor(t){var e;if(this.fragments=t,this.curTo=0,this.fragI=0,t.length){let n=this.curFrag=t[0];this.curTo=null!==(e=n.tree.prop(qh))&&void 0!==e?e:n.to,this.inner=new Hh(n.tree,-n.offset)}else this.curFrag=this.inner=null}hasNode(t){for(;this.curFrag&&t.from>=this.curTo;)this.nextFrag();return this.curFrag&&this.curFrag.from<=t.from&&this.curTo>=t.to&&this.inner.hasNode(t)}nextFrag(){var t;if(this.fragI++,this.fragI==this.fragments.length)this.curFrag=this.inner=null;else{let e=this.curFrag=this.fragments[this.fragI];this.curTo=null!==(t=e.tree.prop(qh))&&void 0!==t?t:e.to,this.inner=new Hh(e.tree,-e.offset)}}findMounts(t,e){var n;let o=[];if(this.inner){this.inner.cursor.moveTo(t,1);for(let t=this.inner.cursor.node;t;t=t.parent){let i=null===(n=t.tree)||void 0===n?void 0:n.prop(dh.mounted);if(i&&i.parser==e)for(let e=this.fragI;e=t.to)break;n.tree==this.curFrag.tree&&o.push({frag:n,pos:t.from-n.offset,mount:i})}}}return o}}function Jh(t,e){let n=null,o=e;for(let i=1,r=0;i=a)break;t.to<=s||(n||(o=n=e.slice()),t.froma&&n.splice(r+1,0,new ph(a,t.to))):t.to>a?n[r--]=new ph(a,t.to):n.splice(r--,1))}}return o}function tp(t,e,n,o){let i=0,r=0,s=!1,a=!1,l=-1e9,c=[];for(;;){let u=i==t.length?1e9:s?t[i].to:t[i].from,h=r==e.length?1e9:a?e[r].to:e[r].from;if(s!=a){let t=Math.max(l,n),e=Math.min(u,h,o);tnew ph(t.from+o,t.to+o))),a,l);for(let e=0,o=a;;e++){let a=e==s.length,c=a?l:s[e].from;if(c>o&&n.push(new Nh(o,c,i.tree,-t,r.from>=o||r.openStart,r.to<=c||r.openEnd)),a)break;o=s[e].to}}else n.push(new Nh(a,l,i.tree,-t,r.from>=t||r.openStart,r.to<=s||r.openEnd))}return n}let np=0;class op{constructor(t,e,n){this.set=t,this.base=e,this.modified=n,this.id=np++}static define(t){if(null==t?void 0:t.base)throw new Error("Can not derive from a modified tag");let e=new op([],null,[]);if(e.set.push(e),t)for(let n of t.set)e.set.push(n);return e}static defineModifier(){let t=new rp;return e=>e.modified.indexOf(t)>-1?e:rp.get(e.base||e,e.modified.concat(t).sort(((t,e)=>t.id-e.id)))}}let ip=0;class rp{constructor(){this.instances=[],this.id=ip++}static get(t,e){if(!e.length)return t;let n=e[0].instances.find((n=>n.base==t&&function(t,e){return t.length==e.length&&t.every(((t,n)=>t==e[n]))}(e,n.modified)));if(n)return n;let o=[],i=new op(o,t,e);for(let t of e)t.instances.push(i);let r=function(t){let e=[[]];for(let n=0;ne.length-t.length))}(e);for(let e of t.set)if(!e.modified.length)for(let t of r)o.push(rp.get(e,t));return i}}function sp(t){let e=Object.create(null);for(let n in t){let o=t[n];Array.isArray(o)||(o=[o]);for(let t of n.split(" "))if(t){let n=[],i=2,r=t;for(let e=0;;){if("..."==r&&e>0&&e+3==t.length){i=1;break}let o=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(r);if(!o)throw new RangeError("Invalid path: "+t);if(n.push("*"==o[0]?"":'"'==o[0][0]?JSON.parse(o[0]):o[0]),e+=o[0].length,e==t.length)break;let s=t[e++];if(e==t.length&&"!"==s){i=0;break}if("/"!=s)throw new RangeError("Invalid path: "+t);r=t.slice(e)}let s=n.length-1,a=n[s];if(!a)throw new RangeError("Invalid path: "+t);let l=new lp(o,i,s>0?n.slice(0,s):null);e[a]=l.sort(e[a])}}return ap.add(e)}const ap=new dh;class lp{constructor(t,e,n,o){this.tags=t,this.mode=e,this.context=n,this.next=o}get opaque(){return 0==this.mode}get inherit(){return 1==this.mode}sort(t){return!t||t.depth{let e=i;for(let o of t)for(let t of o.set){let o=n[t.id];if(o){e=e?e+" "+o:o;break}}return e},scope:o}}function up(t,e,n,o=0,i=t.length){let r=new hp(o,Array.isArray(e)?e:[e],n);r.highlightRange(t.cursor(),o,i,"",r.highlighters),r.flush(i)}lp.empty=new lp([],2,null);class hp{constructor(t,e,n){this.at=t,this.highlighters=e,this.span=n,this.class=""}startSpan(t,e){e!=this.class&&(this.flush(t),t>this.at&&(this.at=t),this.class=e)}flush(t){t>this.at&&this.class&&this.span(this.at,t,this.class)}highlightRange(t,e,n,o,i){let{type:r,from:s,to:a}=t;if(s>=n||a<=e)return;r.isTop&&(i=this.highlighters.filter((t=>!t.scope||t.scope(r))));let l=o,c=function(t){let e=t.type.prop(ap);for(;e&&e.context&&!t.matchContext(e.context);)e=e.next;return e||null}(t)||lp.empty,u=function(t,e){let n=null;for(let o of t){let t=o.style(e);t&&(n=n?n+" "+t:t)}return n}(i,c.tags);if(u&&(l&&(l+=" "),l+=u,1==c.mode&&(o+=(o?" ":"")+u)),this.startSpan(Math.max(e,s),l),c.opaque)return;let h=t.tree&&t.tree.prop(dh.mounted);if(h&&h.overlay){let r=t.node.enter(h.overlay[0].from+s,1),c=this.highlighters.filter((t=>!t.scope||t.scope(h.tree.type))),u=t.firstChild();for(let p=0,d=s;;p++){let f=p=g)&&t.nextSibling()););if(!f||g>n)break;d=f.to+s,d>e&&(this.highlightRange(r.cursor(),Math.max(e,f.from+s),Math.min(n,d),"",c),this.startSpan(Math.min(n,d),l))}u&&t.parent()}else if(t.firstChild()){h&&(o="");do{if(!(t.to<=e)){if(t.from>=n)break;this.highlightRange(t,e,n,o,i),this.startSpan(Math.min(n,t.to),l)}}while(t.nextSibling());t.parent()}}}const pp=op.define,dp=pp(),fp=pp(),gp=pp(fp),mp=pp(fp),vp=pp(),yp=pp(vp),_p=pp(vp),Op=pp(),bp=pp(Op),wp=pp(),xp=pp(),Sp=pp(),kp=pp(Sp),Pp=pp(),Cp={comment:dp,lineComment:pp(dp),blockComment:pp(dp),docComment:pp(dp),name:fp,variableName:pp(fp),typeName:gp,tagName:pp(gp),propertyName:mp,attributeName:pp(mp),className:pp(fp),labelName:pp(fp),namespace:pp(fp),macroName:pp(fp),literal:vp,string:yp,docString:pp(yp),character:pp(yp),attributeValue:pp(yp),number:_p,integer:pp(_p),float:pp(_p),bool:pp(vp),regexp:pp(vp),escape:pp(vp),color:pp(vp),url:pp(vp),keyword:wp,self:pp(wp),null:pp(wp),atom:pp(wp),unit:pp(wp),modifier:pp(wp),operatorKeyword:pp(wp),controlKeyword:pp(wp),definitionKeyword:pp(wp),moduleKeyword:pp(wp),operator:xp,derefOperator:pp(xp),arithmeticOperator:pp(xp),logicOperator:pp(xp),bitwiseOperator:pp(xp),compareOperator:pp(xp),updateOperator:pp(xp),definitionOperator:pp(xp),typeOperator:pp(xp),controlOperator:pp(xp),punctuation:Sp,separator:pp(Sp),bracket:kp,angleBracket:pp(kp),squareBracket:pp(kp),paren:pp(kp),brace:pp(kp),content:Op,heading:bp,heading1:pp(bp),heading2:pp(bp),heading3:pp(bp),heading4:pp(bp),heading5:pp(bp),heading6:pp(bp),contentSeparator:pp(Op),list:pp(Op),quote:pp(Op),emphasis:pp(Op),strong:pp(Op),link:pp(Op),monospace:pp(Op),strikethrough:pp(Op),inserted:pp(),deleted:pp(),changed:pp(),invalid:pp(),meta:Pp,documentMeta:pp(Pp),annotation:pp(Pp),processingInstruction:pp(Pp),definition:op.defineModifier(),constant:op.defineModifier(),function:op.defineModifier(),standard:op.defineModifier(),local:op.defineModifier(),special:op.defineModifier()};cp([{tag:Cp.link,class:"tok-link"},{tag:Cp.heading,class:"tok-heading"},{tag:Cp.emphasis,class:"tok-emphasis"},{tag:Cp.strong,class:"tok-strong"},{tag:Cp.keyword,class:"tok-keyword"},{tag:Cp.atom,class:"tok-atom"},{tag:Cp.bool,class:"tok-bool"},{tag:Cp.url,class:"tok-url"},{tag:Cp.labelName,class:"tok-labelName"},{tag:Cp.inserted,class:"tok-inserted"},{tag:Cp.deleted,class:"tok-deleted"},{tag:Cp.literal,class:"tok-literal"},{tag:Cp.string,class:"tok-string"},{tag:Cp.number,class:"tok-number"},{tag:[Cp.regexp,Cp.escape,Cp.special(Cp.string)],class:"tok-string2"},{tag:Cp.variableName,class:"tok-variableName"},{tag:Cp.local(Cp.variableName),class:"tok-variableName tok-local"},{tag:Cp.definition(Cp.variableName),class:"tok-variableName tok-definition"},{tag:Cp.special(Cp.variableName),class:"tok-variableName2"},{tag:Cp.definition(Cp.propertyName),class:"tok-propertyName tok-definition"},{tag:Cp.typeName,class:"tok-typeName"},{tag:Cp.namespace,class:"tok-namespace"},{tag:Cp.className,class:"tok-className"},{tag:Cp.macroName,class:"tok-macroName"},{tag:Cp.propertyName,class:"tok-propertyName"},{tag:Cp.operator,class:"tok-operator"},{tag:Cp.comment,class:"tok-comment"},{tag:Cp.meta,class:"tok-meta"},{tag:Cp.invalid,class:"tok-invalid"},{tag:Cp.punctuation,class:"tok-punctuation"}]);var Tp;const Ep=new dh;function Qp(t){return Jo.define({combine:t?e=>e.concat(t):void 0})}const Ap=new dh;class $p{constructor(t,e,n=[],o=""){this.data=t,this.name=o,Wi.prototype.hasOwnProperty("tree")||Object.defineProperty(Wi.prototype,"tree",{get(){return Zp(this)}}),this.parser=e,this.extension=[Yp.of(this),Wi.languageData.of(((t,e,n)=>{let o=jp(t,e,n),i=o.type.prop(Ep);if(!i)return[];let r=t.facet(i),s=o.type.prop(Ap);if(s){let i=o.resolve(e-o.from,n);for(let e of s)if(e.test(i,t)){let n=t.facet(e.facet);return"replace"==e.type?n:n.concat(r)}}return r}))].concat(n)}isActiveAt(t,e,n=-1){return jp(t,e,n).type.prop(Ep)==this.data}findRegions(t){let e=t.facet(Yp);if((null==e?void 0:e.data)==this.data)return[{from:0,to:t.doc.length}];if(!e||!e.allowsNesting)return[];let n=[],o=(t,e)=>{if(t.prop(Ep)==this.data)return void n.push({from:e,to:e+t.length});let i=t.prop(dh.mounted);if(i){if(i.tree.prop(Ep)==this.data){if(i.overlay)for(let t of i.overlay)n.push({from:t.from+e,to:t.to+e});else n.push({from:e,to:e+t.length});return}if(i.overlay){let t=n.length;if(o(i.tree,i.overlay[0].from+e),n.length>t)return}}for(let n=0;nt.isTop?e:void 0))]}),t.name)}configure(t,e){return new Rp(this.data,this.parser.configure(t),e||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function Zp(t){let e=t.field($p.state,!1);return e?e.tree:bh.empty}class Mp{constructor(t){this.doc=t,this.cursorPos=0,this.string="",this.cursor=t.iter()}get length(){return this.doc.length}syncTo(t){return this.string=this.cursor.next(t-this.cursorPos).value,this.cursorPos=t+this.string.length,this.cursorPos-this.string.length}chunk(t){return this.syncTo(t),this.string}get lineChunks(){return!0}read(t,e){let n=this.cursorPos-this.string.length;return t=this.cursorPos?this.doc.sliceString(t,e):this.string.slice(t-n,e-n)}}let Vp=null;class Dp{constructor(t,e,n=[],o,i,r,s,a){this.parser=t,this.state=e,this.fragments=n,this.tree=o,this.treeLen=i,this.viewport=r,this.skipped=s,this.scheduleOn=a,this.parse=null,this.tempSkipped=[]}static create(t,e,n){return new Dp(t,e,[],bh.empty,0,n,[],null)}startParse(){return this.parser.startParse(new Mp(this.state.doc),this.fragments)}work(t,e){return null!=e&&e>=this.state.doc.length&&(e=void 0),this.tree!=bh.empty&&this.isDone(null!=e?e:this.state.doc.length)?(this.takeTree(),!0):this.withContext((()=>{var n;if("number"==typeof t){let e=Date.now()+t;t=()=>Date.now()>e}for(this.parse||(this.parse=this.startParse()),null!=e&&(null==this.parse.stoppedAt||this.parse.stoppedAt>e)&&e=this.treeLen&&((null==this.parse.stoppedAt||this.parse.stoppedAt>t)&&this.parse.stopAt(t),this.withContext((()=>{for(;!(e=this.parse.advance()););})),this.treeLen=t,this.tree=e,this.fragments=this.withoutTempSkipped(Nh.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(t){let e=Vp;Vp=this;try{return t()}finally{Vp=e}}withoutTempSkipped(t){for(let e;e=this.tempSkipped.pop();)t=Ip(t,e.from,e.to);return t}changes(t,e){let{fragments:n,tree:o,treeLen:i,viewport:r,skipped:s}=this;if(this.takeTree(),!t.empty){let e=[];if(t.iterChangedRanges(((t,n,o,i)=>e.push({fromA:t,toA:n,fromB:o,toB:i}))),n=Nh.applyChanges(n,e),o=bh.empty,i=0,r={from:t.mapPos(r.from,-1),to:t.mapPos(r.to,1)},this.skipped.length){s=[];for(let e of this.skipped){let n=t.mapPos(e.from,1),o=t.mapPos(e.to,-1);nt.from&&(this.fragments=Ip(this.fragments,n,o),this.skipped.splice(e--,1))}return!(this.skipped.length>=e)&&(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(t,e){this.skipped.push({from:t,to:e})}static getSkippingParser(t){return new class extends Wh{createParse(e,n,o){let i=o[0].from,r=o[o.length-1].to;return{parsedPos:i,advance(){let e=Vp;if(e){for(let t of o)e.tempSkipped.push(t);t&&(e.scheduleOn=e.scheduleOn?Promise.all([e.scheduleOn,t]):t)}return this.parsedPos=r,new bh(mh.none,[],[],r-i)},stoppedAt:null,stopAt(){}}}}}isDone(t){t=Math.min(t,this.state.doc.length);let e=this.fragments;return this.treeLen>=t&&e.length&&0==e[0].from&&e[0].to>=t}static get(){return Vp}}function Ip(t,e,n){return Nh.applyChanges(t,[{fromA:e,toA:n,fromB:e,toB:n}])}class Np{constructor(t){this.context=t,this.tree=t.tree}apply(t){if(!t.docChanged&&this.tree==this.context.tree)return this;let e=this.context.changes(t.changes,t.state),n=this.context.treeLen==t.startState.doc.length?void 0:Math.max(t.changes.mapPos(this.context.treeLen),e.viewport.to);return e.work(20,n)||e.takeTree(),new Np(e)}static init(t){let e=Math.min(3e3,t.doc.length),n=Dp.create(t.facet(Yp).parser,t,{from:0,to:e});return n.work(20,e)||n.takeTree(),new Np(n)}}$p.state=si.define({create:Np.init,update(t,e){for(let t of e.effects)if(t.is($p.setState))return t.value;return e.startState.facet(Yp)!=e.state.facet(Yp)?Np.init(e.state):t.apply(e)}});let Wp=t=>{let e=setTimeout((()=>t()),500);return()=>clearTimeout(e)};"undefined"!=typeof requestIdleCallback&&(Wp=t=>{let e=-1,n=setTimeout((()=>{e=requestIdleCallback(t,{timeout:500-100})}),100);return()=>e<0?clearTimeout(n):cancelIdleCallback(e)});const Xp="undefined"!=typeof navigator&&(null===(Tp=navigator.scheduling)||void 0===Tp?void 0:Tp.isInputPending)?()=>navigator.scheduling.isInputPending():null,Lp=Ks.fromClass(class{constructor(t){this.view=t,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(t){let e=this.view.state.field($p.state).context;(e.updateViewport(t.view.viewport)||this.view.viewport.to>e.treeLen)&&this.scheduleWork(),(t.docChanged||t.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(e)}scheduleWork(){if(this.working)return;let{state:t}=this.view,e=t.field($p.state);e.tree==e.context.tree&&e.context.isDone(t.doc.length)||(this.working=Wp(this.work))}work(t){this.working=null;let e=Date.now();if(this.chunkEndo+1e3,a=i.context.work((()=>Xp&&Xp()||Date.now()>r),o+(s?0:1e5));this.chunkBudget-=Date.now()-e,(a||this.chunkBudget<=0)&&(i.context.takeTree(),this.view.dispatch({effects:$p.setState.of(new Np(i.context))})),this.chunkBudget>0&&(!a||s)&&this.scheduleWork(),this.checkAsyncSchedule(i.context)}checkAsyncSchedule(t){t.scheduleOn&&(this.workScheduled++,t.scheduleOn.then((()=>this.scheduleWork())).catch((t=>Bs(this.view.state,t))).then((()=>this.workScheduled--)),t.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),Yp=Jo.define({combine:t=>t.length?t[0]:null,enables:t=>[$p.state,Lp,fc.contentAttributes.compute([t],(e=>{let n=e.facet(t);return n&&n.name?{"data-language":n.name}:{}}))]});class zp{constructor(t,e=[]){this.language=t,this.support=e,this.extension=[t,e]}}const qp=Jo.define(),Up=Jo.define({combine:t=>{if(!t.length)return" ";let e=t[0];if(!e||/\S/.test(e)||Array.from(e).some((t=>t!=e[0])))throw new Error("Invalid indent unit: "+JSON.stringify(t[0]));return e}});function Bp(t){let e=t.facet(Up);return 9==e.charCodeAt(0)?t.tabSize*e.length:e.length}function Fp(t,e){let n="",o=t.tabSize,i=t.facet(Up)[0];if("\t"==i){for(;e>=o;)n+="\t",e-=o;i=" "}for(let t=0;t=e?function(t,e,n){let o=e.resolveStack(n),i=o.node.enterUnfinishedNodesBefore(n);if(i!=o.node){let t=[];for(let e=i;e!=o.node;e=e.parent)t.push(e);for(let e=t.length-1;e>=0;e--)o={node:t[e],next:o}}return Jp(o,t,n)}(t,n,e):null}class Hp{constructor(t,e={}){this.state=t,this.options=e,this.unit=Bp(t)}lineAt(t,e=1){let n=this.state.doc.lineAt(t),{simulateBreak:o,simulateDoubleBreak:i}=this.options;return null!=o&&o>=n.from&&o<=n.to?i&&o==t?{text:"",from:t}:(e<0?o-1&&(i+=r-this.countColumn(n,n.search(/\S|$/))),i}countColumn(t,e=t.length){return rr(t,this.state.tabSize,e)}lineIndent(t,e=1){let{text:n,from:o}=this.lineAt(t,e),i=this.options.overrideIndentation;if(i){let t=i(o);if(t>-1)return t}return this.countColumn(n,n.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const Kp=new dh;function Jp(t,e,n){for(let o=t;o;o=o.next){let t=td(o.node);if(t)return t(nd.create(e,n,o))}return 0}function td(t){let e=t.type.prop(Kp);if(e)return e;let n,o=t.firstChild;if(o&&(n=o.type.prop(dh.closedBy))){let e=t.lastChild,o=e&&n.indexOf(e.name)>-1;return t=>rd(t,!0,1,void 0,o&&!function(t){return t.pos==t.options.simulateBreak&&t.options.simulateDoubleBreak}(t)?e.from:void 0)}return null==t.parent?ed:null}function ed(){return 0}class nd extends Hp{constructor(t,e,n){super(t.state,t.options),this.base=t,this.pos=e,this.context=n}get node(){return this.context.node}static create(t,e,n){return new nd(t,e,n)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(t){let e=this.state.doc.lineAt(t.from);for(;;){let n=t.resolve(e.from);for(;n.parent&&n.parent.from==n.from;)n=n.parent;if(od(n,t))break;e=this.state.doc.lineAt(n.from)}return this.lineIndent(e.from)}continue(){return Jp(this.context.next,this.base,this.pos)}}function od(t,e){for(let n=e;n;n=n.parent)if(t==n)return!0;return!1}function id({closing:t,align:e=!0,units:n=1}){return o=>rd(o,e,n,t)}function rd(t,e,n,o,i){let r=t.textAfter,s=r.match(/^\s*/)[0].length,a=o&&r.slice(s,s+o.length)==o||i==t.pos+s,l=e?function(t){let e=t.node,n=e.childAfter(e.from),o=e.lastChild;if(!n)return null;let i=t.options.simulateBreak,r=t.state.doc.lineAt(n.from),s=null==i||i<=r.from?r.to:Math.min(r.to,i);for(let t=n.to;;){let i=e.childAfter(t);if(!i||i==o)return null;if(!i.type.isSkipped)return i.from{let o=t&&t.test(n.textAfter);return n.baseIndent+(o?0:e*n.unit)}}const ad=200;const ld=Jo.define(),cd=new dh;function ud(t){let e=t.firstChild,n=t.lastChild;return e&&e.ton)continue;if(i&&s.from=e&&o.to>n&&(i=o)}}return i}(t,e,n)}function dd(t,e){let n=e.mapPos(t.from,1),o=e.mapPos(t.to,-1);return n>=o?void 0:{from:n,to:o}}const fd=Ei.define({map:dd}),gd=Ei.define({map:dd});function md(t){let e=[];for(let{head:n}of t.state.selection.ranges)e.some((t=>t.from<=n&&t.to>=n))||e.push(t.lineBlockAt(n));return e}const vd=si.define({create:()=>Ts.none,update(t,e){t=t.map(e.changes);for(let n of e.effects)if(n.is(fd)&&!_d(t,n.value.from,n.value.to)){let{preparePlaceholder:o}=e.state.facet(Sd),i=o?Ts.replace({widget:new Td(o(e.state,n.value))}):Cd;t=t.update({add:[i.range(n.value.from,n.value.to)]})}else n.is(gd)&&(t=t.update({filter:(t,e)=>n.value.from!=t||n.value.to!=e,filterFrom:n.value.from,filterTo:n.value.to}));if(e.selection){let n=!1,{head:o}=e.selection.main;t.between(o,o,((t,e)=>{to&&(n=!0)})),n&&(t=t.update({filterFrom:o,filterTo:o,filter:(t,e)=>e<=o||t>=o}))}return t},provide:t=>fc.decorations.from(t),toJSON(t,e){let n=[];return t.between(0,e.doc.length,((t,e)=>{n.push(t,e)})),n},fromJSON(t){if(!Array.isArray(t)||t.length%2)throw new RangeError("Invalid JSON for fold state");let e=[];for(let n=0;n{(!i||i.from>t)&&(i={from:t,to:e})})),i}function _d(t,e,n){let o=!1;return t.between(e,e,((t,i)=>{t==e&&i==n&&(o=!0)})),o}function Od(t,e){return t.field(vd,!1)?e:e.concat(Ei.appendConfig.of(kd()))}function bd(t,e,n=!0){let o=t.state.doc.lineAt(e.from).number,i=t.state.doc.lineAt(e.to).number;return fc.announce.of(`${t.state.phrase(n?"Folded lines":"Unfolded lines")} ${o} ${t.state.phrase("to")} ${i}.`)}const wd=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:t=>{for(let e of md(t)){let n=pd(t.state,e.from,e.to);if(n)return t.dispatch({effects:Od(t.state,[fd.of(n),bd(t,n)])}),!0}return!1}},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:t=>{if(!t.state.field(vd,!1))return!1;let e=[];for(let n of md(t)){let o=yd(t.state,n.from,n.to);o&&e.push(gd.of(o),bd(t,o,!1))}return e.length&&t.dispatch({effects:e}),e.length>0}},{key:"Ctrl-Alt-[",run:t=>{let{state:e}=t,n=[];for(let o=0;o{let e=t.state.field(vd,!1);if(!e||!e.size)return!1;let n=[];return e.between(0,t.state.doc.length,((t,e)=>{n.push(gd.of({from:t,to:e}))})),t.dispatch({effects:n}),!0}}],xd={placeholderDOM:null,preparePlaceholder:null,placeholderText:"…"},Sd=Jo.define({combine:t=>Xi(t,xd)});function kd(t){let e=[vd,$d];return t&&e.push(Sd.of(t)),e}function Pd(t,e){let{state:n}=t,o=n.facet(Sd),i=e=>{let n=t.lineBlockAt(t.posAtDOM(e.target)),o=yd(t.state,n.from,n.to);o&&t.dispatch({effects:gd.of(o)}),e.preventDefault()};if(o.placeholderDOM)return o.placeholderDOM(t,i,e);let r=document.createElement("span");return r.textContent=o.placeholderText,r.setAttribute("aria-label",n.phrase("folded code")),r.title=n.phrase("unfold"),r.className="cm-foldPlaceholder",r.onclick=i,r}const Cd=Ts.replace({widget:new class extends Ps{toDOM(t){return Pd(t,null)}}});class Td extends Ps{constructor(t){super(),this.value=t}eq(t){return this.value==t.value}toDOM(t){return Pd(t,this.value)}}const Ed={openText:"⌄",closedText:"›",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};class Qd extends Mu{constructor(t,e){super(),this.config=t,this.open=e}eq(t){return this.config==t.config&&this.open==t.open}toDOM(t){if(this.config.markerDOM)return this.config.markerDOM(this.open);let e=document.createElement("span");return e.textContent=this.open?this.config.openText:this.config.closedText,e.title=t.state.phrase(this.open?"Fold line":"Unfold line"),e}}function Ad(t={}){let e=Object.assign(Object.assign({},Ed),t),n=new Qd(e,!0),o=new Qd(e,!1),i=Ks.fromClass(class{constructor(t){this.from=t.viewport.from,this.markers=this.buildMarkers(t)}update(t){(t.docChanged||t.viewportChanged||t.startState.facet(Yp)!=t.state.facet(Yp)||t.startState.field(vd,!1)!=t.state.field(vd,!1)||Zp(t.startState)!=Zp(t.state)||e.foldingChanged(t))&&(this.markers=this.buildMarkers(t.view))}buildMarkers(t){let e=new Bi;for(let i of t.viewportLineBlocks){let r=yd(t.state,i.from,i.to)?o:pd(t.state,i.from,i.to)?n:null;r&&e.add(i.from,i.from,r)}return e.finish()}}),{domEventHandlers:r}=e;return[i,Nu({class:"cm-foldGutter",markers(t){var e;return(null===(e=t.plugin(i))||void 0===e?void 0:e.markers)||Ui.empty},initialSpacer:()=>new Qd(e,!1),domEventHandlers:Object.assign(Object.assign({},r),{click:(t,e,n)=>{if(r.click&&r.click(t,e,n))return!0;let o=yd(t.state,e.from,e.to);if(o)return t.dispatch({effects:gd.of(o)}),!0;let i=pd(t.state,e.from,e.to);return!!i&&(t.dispatch({effects:fd.of(i)}),!0)}})}),kd()]}const $d=fc.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}});class jd{constructor(t,e){let n;function o(t){let e=yr.newName();return(n||(n=Object.create(null)))["."+e]=t,e}this.specs=t;const i="string"==typeof e.all?e.all:e.all?o(e.all):void 0,r=e.scope;this.scope=r instanceof $p?t=>t.prop(Ep)==r.data:r?t=>t==r:void 0,this.style=cp(t.map((t=>({tag:t.tag,class:t.class||o(Object.assign({},t,{tag:null}))}))),{all:i}).style,this.module=n?new yr(n):null,this.themeType=e.themeType}static define(t,e){return new jd(t,e||{})}}const Rd=Jo.define(),Zd=Jo.define({combine:t=>t.length?[t[0]]:null});function Md(t){let e=t.facet(Rd);return e.length?e:t.facet(Zd)}function Vd(t,e){let n,o=[Id];return t instanceof jd&&(t.module&&o.push(fc.styleModule.of(t.module)),n=t.themeType),(null==e?void 0:e.fallback)?o.push(Zd.of(t)):n?o.push(Rd.computeN([fc.darkTheme],(e=>e.facet(fc.darkTheme)==("dark"==n)?[t]:[]))):o.push(Rd.of(t)),o}class Dd{constructor(t){this.markCache=Object.create(null),this.tree=Zp(t.state),this.decorations=this.buildDeco(t,Md(t.state))}update(t){let e=Zp(t.state),n=Md(t.state),o=n!=Md(t.startState);e.length{n.add(t,e,this.markCache[o]||(this.markCache[o]=Ts.mark({class:o})))}),o,i);return n.finish()}}const Id=pi.high(Ks.fromClass(Dd,{decorations:t=>t.decorations})),Nd=jd.define([{tag:Cp.meta,color:"#404740"},{tag:Cp.link,textDecoration:"underline"},{tag:Cp.heading,textDecoration:"underline",fontWeight:"bold"},{tag:Cp.emphasis,fontStyle:"italic"},{tag:Cp.strong,fontWeight:"bold"},{tag:Cp.strikethrough,textDecoration:"line-through"},{tag:Cp.keyword,color:"#708"},{tag:[Cp.atom,Cp.bool,Cp.url,Cp.contentSeparator,Cp.labelName],color:"#219"},{tag:[Cp.literal,Cp.inserted],color:"#164"},{tag:[Cp.string,Cp.deleted],color:"#a11"},{tag:[Cp.regexp,Cp.escape,Cp.special(Cp.string)],color:"#e40"},{tag:Cp.definition(Cp.variableName),color:"#00f"},{tag:Cp.local(Cp.variableName),color:"#30a"},{tag:[Cp.typeName,Cp.namespace],color:"#085"},{tag:Cp.className,color:"#167"},{tag:[Cp.special(Cp.variableName),Cp.macroName],color:"#256"},{tag:Cp.definition(Cp.propertyName),color:"#00c"},{tag:Cp.comment,color:"#940"},{tag:Cp.invalid,color:"#f00"}]),Wd=fc.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),Xd=1e4,Ld="()[]{}",Yd=Jo.define({combine:t=>Xi(t,{afterCursor:!0,brackets:Ld,maxScanDistance:Xd,renderMatch:Ud})}),zd=Ts.mark({class:"cm-matchingBracket"}),qd=Ts.mark({class:"cm-nonmatchingBracket"});function Ud(t){let e=[],n=t.matched?zd:qd;return e.push(n.range(t.start.from,t.start.to)),t.end&&e.push(n.range(t.end.from,t.end.to)),e}const Bd=si.define({create:()=>Ts.none,update(t,e){if(!e.docChanged&&!e.selection)return t;let n=[],o=e.state.facet(Yd);for(let t of e.state.selection.ranges){if(!t.empty)continue;let i=tf(e.state,t.head,-1,o)||t.head>0&&tf(e.state,t.head-1,1,o)||o.afterCursor&&(tf(e.state,t.head,1,o)||t.headfc.decorations.from(t)}),Fd=[Bd,Wd];function Gd(t={}){return[Yd.of(t),Fd]}const Hd=new dh;function Kd(t,e,n){let o=t.prop(e<0?dh.openedBy:dh.closedBy);if(o)return o;if(1==t.name.length){let o=n.indexOf(t.name);if(o>-1&&o%2==(e<0?1:0))return[n[o+e]]}return null}function Jd(t){let e=t.type.prop(Hd);return e?e(t.node):t}function tf(t,e,n,o={}){let i=o.maxScanDistance||Xd,r=o.brackets||Ld,s=Zp(t),a=s.resolveInner(e,n);for(let o=a;o;o=o.parent){let i=Kd(o.type,n,r);if(i&&o.from0?e>=s.from&&es.from&&e<=s.to))return ef(t,e,n,o,s,i,r)}}return function(t,e,n,o,i,r,s){let a=n<0?t.sliceDoc(e-1,e):t.sliceDoc(e,e+1),l=s.indexOf(a);if(l<0||l%2==0!=n>0)return null;let c={from:n<0?e-1:e,to:n>0?e+1:e},u=t.doc.iterRange(e,n>0?t.doc.length:0),h=0;for(let t=0;!u.next().done&&t<=r;){let r=u.value;n<0&&(t+=r.length);let a=e+t*n;for(let t=n>0?0:r.length-1,e=n>0?r.length:-1;t!=e;t+=n){let e=s.indexOf(r[t]);if(!(e<0||o.resolveInner(a+t,1).type!=i))if(e%2==0==n>0)h++;else{if(1==h)return{start:c,end:{from:a+t,to:a+t+1},matched:e>>1==l>>1};h--}}n>0&&(t+=r.length)}return u.done?{start:c,matched:!1}:null}(t,e,n,s,a.type,i,r)}function ef(t,e,n,o,i,r,s){let a=o.parent,l={from:i.from,to:i.to},c=0,u=null==a?void 0:a.cursor();if(u&&(n<0?u.childBefore(o.from):u.childAfter(o.to)))do{if(n<0?u.to<=o.from:u.from>=o.to){if(0==c&&r.indexOf(u.type.name)>-1&&u.from-1||(rf.push(t),console.warn(e))}function cf(t,e){let n=[];for(let o of e.split(" ")){let e=[];for(let n of o.split(".")){let o=t[n]||Cp[n];o?"function"==typeof o?e.length?e=e.map(o):lf(n,`Modifier ${n} used at start of tag`):e.length?lf(n,`Tag ${n} used as modifier`):e=Array.isArray(o)?o:[o]:lf(n,`Unknown highlighting tag ${n}`)}for(let t of e)n.push(t)}if(!n.length)return 0;let o=e.replace(/ /g,"_"),i=o+" "+n.map((t=>t.id)),r=sf[i];if(r)return r.id;let s=sf[i]=mh.define({id:of.length,name:o,props:[sp({[o]:n})]});return of.push(s),s.id}function uf(t,e){return({state:n,dispatch:o})=>{if(n.readOnly)return!1;let i=t(e,n);return!!i&&(o(n.update(i)),!0)}}const hf=uf(vf,0),pf=(null&&uf(vf,1),null&&uf(vf,2),uf(mf,0)),df=(null&&uf(mf,1),null&&uf(mf,2),uf(((t,e)=>mf(t,e,function(t){let e=[];for(let n of t.selection.ranges){let o=t.doc.lineAt(n.from),i=n.to<=o.to?o:t.doc.lineAt(n.to),r=e.length-1;r>=0&&e[r].to>o.from?e[r].to=i.to:e.push({from:o.from+/^\s*/.exec(o.text)[0].length,to:i.to})}return e}(e))),0));function ff(t,e){let n=t.languageDataAt("commentTokens",e);return n.length?n[0]:{}}const gf=50;function mf(t,e,n=e.selection.ranges){let o=n.map((t=>ff(e,t.from).block));if(!o.every((t=>t)))return null;let i=n.map(((t,n)=>function(t,{open:e,close:n},o,i){let r,s,a=t.sliceDoc(o-gf,o),l=t.sliceDoc(i,i+gf),c=/\s*$/.exec(a)[0].length,u=/^\s*/.exec(l)[0].length,h=a.length-c;if(a.slice(h-e.length,h)==e&&l.slice(u,u+n.length)==n)return{open:{pos:o-c,margin:c&&1},close:{pos:i+u,margin:u&&1}};i-o<=2*gf?r=s=t.sliceDoc(o,i):(r=t.sliceDoc(o,o+gf),s=t.sliceDoc(i-gf,i));let p=/^\s*/.exec(r)[0].length,d=/\s*$/.exec(s)[0].length,f=s.length-d-n.length;return r.slice(p,p+e.length)==e&&s.slice(f,f+n.length)==n?{open:{pos:o+p+e.length,margin:/\s/.test(r.charAt(p+e.length))?1:0},close:{pos:i-d-n.length,margin:/\s/.test(s.charAt(f-1))?1:0}}:null}(e,o[n],t.from,t.to)));if(2!=t&&!i.every((t=>t)))return{changes:e.changes(n.map(((t,e)=>i[e]?[]:[{from:t.from,insert:o[e].open+" "},{from:t.to,insert:" "+o[e].close}])))};if(1!=t&&i.some((t=>t))){let t=[];for(let e,n=0;ni&&(t==r||r>l.from)){i=l.from;let t=/^\s*/.exec(l.text)[0].length,e=t==l.length,n=l.text.slice(t,t+a.length)==a?t:-1;tt.comment<0&&(!t.empty||t.single)))){let t=[];for(let{line:e,token:n,indent:i,empty:r,single:s}of o)!s&&r||t.push({from:e.from+i,insert:n+" "});let n=e.changes(t);return{changes:n,selection:e.selection.map(n,1)}}if(1!=t&&o.some((t=>t.comment>=0))){let t=[];for(let{line:e,comment:n,token:i}of o)if(n>=0){let o=e.from+n,r=o+i.length;" "==e.text[r-e.from]&&r++,t.push({from:o,to:r})}return{changes:t}}return null}const yf=Pi.define(),_f=Pi.define(),Of=Jo.define(),bf=Jo.define({combine:t=>Xi(t,{minDepth:100,newGroupDelay:500,joinToEvent:(t,e)=>e},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(t,e)=>(n,o)=>t(n,o)||e(n,o)})}),wf=si.define({create:()=>Nf.empty,update(t,e){let n=e.state.facet(bf),o=e.annotation(yf);if(o){let i=Qf.fromTransaction(e,o.selection),r=o.side,s=0==r?t.undone:t.done;return s=i?Af(s,s.length,n.minDepth,i):Zf(s,e.startState.selection),new Nf(0==r?o.rest:s,0==r?s:o.rest)}let i=e.annotation(_f);if("full"!=i&&"before"!=i||(t=t.isolate()),!1===e.annotation(Qi.addToHistory))return e.changes.empty?t:t.addMapping(e.changes.desc);let r=Qf.fromTransaction(e),s=e.annotation(Qi.time),a=e.annotation(Qi.userEvent);return r?t=t.addChanges(r,s,a,n,e):e.selection&&(t=t.addSelection(e.startState.selection,s,a,n.newGroupDelay)),"full"!=i&&"after"!=i||(t=t.isolate()),t},toJSON:t=>({done:t.done.map((t=>t.toJSON())),undone:t.undone.map((t=>t.toJSON()))}),fromJSON:t=>new Nf(t.done.map(Qf.fromJSON),t.undone.map(Qf.fromJSON))});function xf(t={}){return[wf,bf.of(t),fc.domEventHandlers({beforeinput(t,e){let n="historyUndo"==t.inputType?kf:"historyRedo"==t.inputType?Pf:null;return!!n&&(t.preventDefault(),n(e))}})]}function Sf(t,e){return function({state:n,dispatch:o}){if(!e&&n.readOnly)return!1;let i=n.field(wf,!1);if(!i)return!1;let r=i.pop(t,n,e);return!!r&&(o(r),!0)}}const kf=Sf(0,!1),Pf=Sf(1,!1),Cf=Sf(0,!0),Tf=Sf(1,!0);function Ef(t){return function(e){let n=e.field(wf,!1);if(!n)return 0;let o=0==t?n.done:n.undone;return o.length-(o.length&&!o[0].changes?1:0)}}null&&Ef(0),null&&Ef(1);class Qf{constructor(t,e,n,o,i){this.changes=t,this.effects=e,this.mapped=n,this.startSelection=o,this.selectionsAfter=i}setSelAfter(t){return new Qf(this.changes,this.effects,this.mapped,this.startSelection,t)}toJSON(){var t,e,n;return{changes:null===(t=this.changes)||void 0===t?void 0:t.toJSON(),mapped:null===(e=this.mapped)||void 0===e?void 0:e.toJSON(),startSelection:null===(n=this.startSelection)||void 0===n?void 0:n.toJSON(),selectionsAfter:this.selectionsAfter.map((t=>t.toJSON()))}}static fromJSON(t){return new Qf(t.changes&&Xo.fromJSON(t.changes),[],t.mapped&&Wo.fromJSON(t.mapped),t.startSelection&&Go.fromJSON(t.startSelection),t.selectionsAfter.map(Go.fromJSON))}static fromTransaction(t,e){let n=jf;for(let e of t.startState.facet(Of)){let o=e(t);o.length&&(n=n.concat(o))}return!n.length&&t.changes.empty?null:new Qf(t.changes.invert(t.startState.doc),n,void 0,e||t.startState.selection,jf)}static selection(t){return new Qf(void 0,jf,void 0,void 0,t)}}function Af(t,e,n,o){let i=e+1>n+20?e-n-1:0,r=t.slice(i,e);return r.push(o),r}function $f(t,e){return t.length?e.length?t.concat(e):t:e}const jf=[],Rf=200;function Zf(t,e){if(t.length){let n=t[t.length-1],o=n.selectionsAfter.slice(Math.max(0,n.selectionsAfter.length-Rf));return o.length&&o[o.length-1].eq(e)?t:(o.push(e),Af(t,t.length-1,1e9,n.setSelAfter(o)))}return[Qf.selection([e])]}function Mf(t){let e=t[t.length-1],n=t.slice();return n[t.length-1]=e.setSelAfter(e.selectionsAfter.slice(0,e.selectionsAfter.length-1)),n}function Vf(t,e){if(!t.length)return t;let n=t.length,o=jf;for(;n;){let i=Df(t[n-1],e,o);if(i.changes&&!i.changes.empty||i.effects.length){let e=t.slice(0,n);return e[n-1]=i,e}e=i.mapped,n--,o=i.selectionsAfter}return o.length?[Qf.selection(o)]:jf}function Df(t,e,n){let o=$f(t.selectionsAfter.length?t.selectionsAfter.map((t=>t.map(e))):jf,n);if(!t.changes)return Qf.selection(o);let i=t.changes.map(e),r=e.mapDesc(t.changes,!0),s=t.mapped?t.mapped.composeDesc(r):r;return new Qf(i,Ei.mapEffects(t.effects,e),s,t.startSelection.map(r),o)}const If=/^(input\.type|delete)($|\.)/;class Nf{constructor(t,e,n=0,o=void 0){this.done=t,this.undone=e,this.prevTime=n,this.prevUserEvent=o}isolate(){return this.prevTime?new Nf(this.done,this.undone):this}addChanges(t,e,n,o,i){let r=this.done,s=r[r.length-1];return r=s&&s.changes&&!s.changes.empty&&t.changes&&(!n||If.test(n))&&(!s.selectionsAfter.length&&e-this.prevTimen.push(t,e))),e.iterChangedRanges(((t,e,i,r)=>{for(let t=0;t=e&&i<=s&&(o=!0)}})),o}(s.changes,t.changes))||"input.type.compose"==n)?Af(r,r.length-1,o.minDepth,new Qf(t.changes.compose(s.changes),$f(t.effects,s.effects),s.mapped,s.startSelection,jf)):Af(r,r.length,o.minDepth,t),new Nf(r,jf,e,n)}addSelection(t,e,n,o){let i=this.done.length?this.done[this.done.length-1].selectionsAfter:jf;return i.length>0&&e-this.prevTimet.empty!=e.ranges[n].empty)).length}(i[i.length-1],t)?this:new Nf(Zf(this.done,t),this.undone,e,n)}addMapping(t){return new Nf(Vf(this.done,t),Vf(this.undone,t),this.prevTime,this.prevUserEvent)}pop(t,e,n){let o=0==t?this.done:this.undone;if(0==o.length)return null;let i=o[o.length-1],r=i.selectionsAfter[0]||e.selection;if(n&&i.selectionsAfter.length)return e.update({selection:i.selectionsAfter[i.selectionsAfter.length-1],annotations:yf.of({side:t,rest:Mf(o),selection:r}),userEvent:0==t?"select.undo":"select.redo",scrollIntoView:!0});if(i.changes){let n=1==o.length?jf:o.slice(0,o.length-1);return i.mapped&&(n=Vf(n,i.mapped)),e.update({changes:i.changes,selection:i.startSelection,effects:i.effects,annotations:yf.of({side:t,rest:n,selection:r}),filter:!1,userEvent:0==t?"undo":"redo",scrollIntoView:!0})}return null}}Nf.empty=new Nf(jf,jf);const Wf=[{key:"Mod-z",run:kf,preventDefault:!0},{key:"Mod-y",mac:"Mod-Shift-z",run:Pf,preventDefault:!0},{linux:"Ctrl-Shift-z",run:Pf,preventDefault:!0},{key:"Mod-u",run:Cf,preventDefault:!0},{key:"Alt-u",mac:"Mod-Shift-u",run:Tf,preventDefault:!0}];function Xf(t,e){return Go.create(t.ranges.map(e),t.mainIndex)}function Lf(t,e){return t.update({selection:e,scrollIntoView:!0,userEvent:"select"})}function Yf({state:t,dispatch:e},n){let o=Xf(t.selection,n);return!o.eq(t.selection)&&(e(Lf(t,o)),!0)}function zf(t,e){return Go.cursor(e?t.to:t.from)}function qf(t,e){return Yf(t,(n=>n.empty?t.moveByChar(n,e):zf(n,e)))}function Uf(t){return t.textDirectionAt(t.state.selection.main.head)==ha.LTR}const Bf=t=>qf(t,!Uf(t)),Ff=t=>qf(t,Uf(t));function Gf(t,e){return Yf(t,(n=>n.empty?t.moveByGroup(n,e):zf(n,e)))}"undefined"!=typeof Intl&&Intl.Segmenter;function Hf(t,e,n){if(e.type.prop(n))return!0;let o=e.to-e.from;return o&&(o>2||/[^\s,.;:]/.test(t.sliceDoc(e.from,e.to)))||e.firstChild}function Kf(t,e,n){let o,i,r=Zp(t).resolveInner(e.head),s=n?dh.closedBy:dh.openedBy;for(let o=e.head;;){let e=n?r.childAfter(o):r.childBefore(o);if(!e)break;Hf(t,e,s)?r=e:o=n?e.to:e.from}return i=r.type.prop(s)&&(o=n?tf(t,r.from,1):tf(t,r.to,-1))&&o.matched?n?o.end.to:o.end.from:n?r.to:r.from,Go.cursor(i,n?-1:1)}function Jf(t,e){return Yf(t,(n=>{if(!n.empty)return zf(n,e);let o=t.moveVertically(n,e);return o.head!=n.head?o:t.moveToLineBoundary(n,e)}))}const tg=t=>Jf(t,!1),eg=t=>Jf(t,!0);function ng(t){let e,n=t.scrollDOM.clientHeightn.empty?t.moveVertically(n,e,o.height):zf(n,e)));if(r.eq(i.selection))return!1;if(o.selfScroll){let e=t.coordsAtPos(i.selection.main.head),s=t.scrollDOM.getBoundingClientRect(),a=s.top+o.marginTop,l=s.bottom-o.marginBottom;e&&e.top>a&&e.bottomog(t,!1),rg=t=>og(t,!0);function sg(t,e,n){let o=t.lineBlockAt(e.head),i=t.moveToLineBoundary(e,n);if(i.head==e.head&&i.head!=(n?o.to:o.from)&&(i=t.moveToLineBoundary(e,n,!1)),!n&&i.head==o.from&&o.length){let n=/^\s*/.exec(t.state.sliceDoc(o.from,Math.min(o.from+100,o.to)))[0].length;n&&e.head!=o.from+n&&(i=Go.cursor(o.from+n))}return i}function ag(t,e,n){let o=!1,i=Xf(t.selection,(e=>{let i=tf(t,e.head,-1)||tf(t,e.head,1)||e.head>0&&tf(t,e.head-1,1)||e.head{let n=e(t);return Go.range(t.anchor,n.head,n.goalColumn,n.bidiLevel||void 0)}));return!n.eq(t.state.selection)&&(t.dispatch(Lf(t.state,n)),!0)}function cg(t,e){return lg(t,(n=>t.moveByChar(n,e)))}const ug=t=>cg(t,!Uf(t)),hg=t=>cg(t,Uf(t));function pg(t,e){return lg(t,(n=>t.moveByGroup(n,e)))}function dg(t,e){return lg(t,(n=>t.moveVertically(n,e)))}const fg=t=>dg(t,!1),gg=t=>dg(t,!0);function mg(t,e){return lg(t,(n=>t.moveVertically(n,e,ng(t).height)))}const vg=t=>mg(t,!1),yg=t=>mg(t,!0),_g=({state:t,dispatch:e})=>(e(Lf(t,{anchor:0})),!0),Og=({state:t,dispatch:e})=>(e(Lf(t,{anchor:t.doc.length})),!0),bg=({state:t,dispatch:e})=>(e(Lf(t,{anchor:t.selection.main.anchor,head:0})),!0),wg=({state:t,dispatch:e})=>(e(Lf(t,{anchor:t.selection.main.anchor,head:t.doc.length})),!0);function xg(t,e){if(t.state.readOnly)return!1;let n="delete.selection",{state:o}=t,i=o.changeByRange((o=>{let{from:i,to:r}=o;if(i==r){let s=e(o);si&&(n="delete.forward",s=Sg(t,s,!0)),i=Math.min(i,s),r=Math.max(r,s)}else i=Sg(t,i,!1),r=Sg(t,r,!0);return i==r?{range:o}:{changes:{from:i,to:r},range:Go.cursor(i,ie(t))))o.between(e,e,((t,o)=>{te&&(e=n?o:t)}));return e}const kg=(t,e)=>xg(t,(n=>{let o,i,r=n.from,{state:s}=t,a=s.doc.lineAt(r);if(!e&&r>a.from&&rkg(t,!1),Cg=t=>kg(t,!0),Tg=(t,e)=>xg(t,(n=>{let o=n.head,{state:i}=t,r=i.doc.lineAt(o),s=i.charCategorizer(o);for(let t=null;;){if(o==(e?r.to:r.from)){o==n.head&&r.number!=(e?i.doc.lines:1)&&(o+=e?1:-1);break}let a=Ao(r.text,o-r.from,e)+r.from,l=r.text.slice(Math.min(o,a)-r.from,Math.max(o,a)-r.from),c=s(l);if(null!=t&&c!=t)break;" "==l&&o==n.head||(t=c),o=a}return o})),Eg=t=>Tg(t,!1);function Qg(t){let e=[],n=-1;for(let o of t.selection.ranges){let i=t.doc.lineAt(o.from),r=t.doc.lineAt(o.to);if(o.empty||o.to!=r.from||(r=t.doc.lineAt(o.to-1)),n>=i.number){let t=e[e.length-1];t.to=r.to,t.ranges.push(o)}else e.push({from:i.from,to:r.to,ranges:[o]});n=r.number+1}return e}function Ag(t,e,n){if(t.readOnly)return!1;let o=[],i=[];for(let e of Qg(t)){if(n?e.to==t.doc.length:0==e.from)continue;let r=t.doc.lineAt(n?e.to+1:e.from-1),s=r.length+1;if(n){o.push({from:e.to,to:r.to},{from:e.from,insert:r.text+t.lineBreak});for(let n of e.ranges)i.push(Go.range(Math.min(t.doc.length,n.anchor+s),Math.min(t.doc.length,n.head+s)))}else{o.push({from:r.from,to:e.from},{from:e.to,insert:t.lineBreak+r.text});for(let t of e.ranges)i.push(Go.range(t.anchor-s,t.head-s))}}return!!o.length&&(e(t.update({changes:o,scrollIntoView:!0,selection:Go.create(i,t.selection.mainIndex),userEvent:"move.line"})),!0)}function $g(t,e,n){if(t.readOnly)return!1;let o=[];for(let e of Qg(t))n?o.push({from:e.from,insert:t.doc.slice(e.from,e.to)+t.lineBreak}):o.push({from:e.to,insert:t.lineBreak+t.doc.slice(e.from,e.to)});return e(t.update({changes:o,scrollIntoView:!0,userEvent:"input.copyline"})),!0}const jg=Zg(!1),Rg=Zg(!0);function Zg(t){return({state:e,dispatch:n})=>{if(e.readOnly)return!1;let o=e.changeByRange((n=>{let{from:o,to:i}=n,r=e.doc.lineAt(o),s=!t&&o==i&&function(t,e){if(/\(\)|\[\]|\{\}/.test(t.sliceDoc(e-1,e+1)))return{from:e,to:e};let n,o=Zp(t).resolveInner(e),i=o.childBefore(e),r=o.childAfter(e);return i&&r&&i.to<=e&&r.from>=e&&(n=i.type.prop(dh.closedBy))&&n.indexOf(r.name)>-1&&t.doc.lineAt(i.to).from==t.doc.lineAt(r.from).from&&!/\S/.test(t.sliceDoc(i.to,r.from))?{from:i.to,to:r.from}:null}(e,o);t&&(o=i=(i<=r.to?r:e.doc.lineAt(i)).to);let a=new Hp(e,{simulateBreak:o,simulateDoubleBreak:!!s}),l=Gp(a,o);for(null==l&&(l=rr(/^\s*/.exec(e.doc.lineAt(o).text)[0],e.tabSize));ir.from&&o{let i=[];for(let r=o.from;r<=o.to;){let s=t.doc.lineAt(r);s.number>n&&(o.empty||o.to>s.from)&&(e(s,i,o),n=s.number),r=s.to+1}let r=t.changes(i);return{changes:i,range:Go.range(r.mapPos(o.anchor,1),r.mapPos(o.head,1))}}))}const Vg=({state:t,dispatch:e})=>!t.readOnly&&(e(t.update(Mg(t,((e,n)=>{n.push({from:e.from,insert:t.facet(Up)})})),{userEvent:"input.indent"})),!0),Dg=({state:t,dispatch:e})=>!t.readOnly&&(e(t.update(Mg(t,((e,n)=>{let o=/^\s*/.exec(e.text)[0];if(!o)return;let i=rr(o,t.tabSize),r=0,s=Fp(t,Math.max(0,i-Bp(t)));for(;rYf(t,(e=>Go.cursor(t.lineBlockAt(e.head).from,1))),shift:t=>lg(t,(e=>Go.cursor(t.lineBlockAt(e.head).from)))},{key:"Ctrl-e",run:t=>Yf(t,(e=>Go.cursor(t.lineBlockAt(e.head).to,-1))),shift:t=>lg(t,(e=>Go.cursor(t.lineBlockAt(e.head).to)))},{key:"Ctrl-d",run:Cg},{key:"Ctrl-h",run:Pg},{key:"Ctrl-k",run:t=>xg(t,(e=>{let n=t.lineBlockAt(e.head).to;return e.head{if(t.readOnly)return!1;let n=t.changeByRange((t=>({changes:{from:t.from,to:t.to,insert:vo.of(["",""])},range:Go.cursor(t.from)})));return e(t.update(n,{scrollIntoView:!0,userEvent:"input"})),!0}},{key:"Ctrl-t",run:({state:t,dispatch:e})=>{if(t.readOnly)return!1;let n=t.changeByRange((e=>{if(!e.empty||0==e.from||e.from==t.doc.length)return{range:e};let n=e.from,o=t.doc.lineAt(n),i=n==o.from?n-1:Ao(o.text,n-o.from,!1)+o.from,r=n==o.to?n+1:Ao(o.text,n-o.from,!0)+o.from;return{changes:{from:i,to:r,insert:t.doc.slice(n,r).append(t.doc.slice(i,n))},range:Go.cursor(r)}}));return!n.changes.empty&&(e(t.update(n,{scrollIntoView:!0,userEvent:"move.character"})),!0)}},{key:"Ctrl-v",run:rg}],Ng=[{key:"ArrowLeft",run:Bf,shift:ug,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:t=>Gf(t,!Uf(t)),shift:t=>pg(t,!Uf(t)),preventDefault:!0},{mac:"Cmd-ArrowLeft",run:t=>Yf(t,(e=>sg(t,e,!Uf(t)))),shift:t=>lg(t,(e=>sg(t,e,!Uf(t)))),preventDefault:!0},{key:"ArrowRight",run:Ff,shift:hg,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:t=>Gf(t,Uf(t)),shift:t=>pg(t,Uf(t)),preventDefault:!0},{mac:"Cmd-ArrowRight",run:t=>Yf(t,(e=>sg(t,e,Uf(t)))),shift:t=>lg(t,(e=>sg(t,e,Uf(t)))),preventDefault:!0},{key:"ArrowUp",run:tg,shift:fg,preventDefault:!0},{mac:"Cmd-ArrowUp",run:_g,shift:bg},{mac:"Ctrl-ArrowUp",run:ig,shift:vg},{key:"ArrowDown",run:eg,shift:gg,preventDefault:!0},{mac:"Cmd-ArrowDown",run:Og,shift:wg},{mac:"Ctrl-ArrowDown",run:rg,shift:yg},{key:"PageUp",run:ig,shift:vg},{key:"PageDown",run:rg,shift:yg},{key:"Home",run:t=>Yf(t,(e=>sg(t,e,!1))),shift:t=>lg(t,(e=>sg(t,e,!1))),preventDefault:!0},{key:"Mod-Home",run:_g,shift:bg},{key:"End",run:t=>Yf(t,(e=>sg(t,e,!0))),shift:t=>lg(t,(e=>sg(t,e,!0))),preventDefault:!0},{key:"Mod-End",run:Og,shift:wg},{key:"Enter",run:jg},{key:"Mod-a",run:({state:t,dispatch:e})=>(e(t.update({selection:{anchor:0,head:t.doc.length},userEvent:"select"})),!0)},{key:"Backspace",run:Pg,shift:Pg},{key:"Delete",run:Cg},{key:"Mod-Backspace",mac:"Alt-Backspace",run:Eg},{key:"Mod-Delete",mac:"Alt-Delete",run:t=>Tg(t,!0)},{mac:"Mod-Backspace",run:t=>xg(t,(e=>{let n=t.moveToLineBoundary(e,!1).head;return e.head>n?n:Math.max(0,e.head-1)}))},{mac:"Mod-Delete",run:t=>xg(t,(e=>{let n=t.moveToLineBoundary(e,!0).head;return e.head({mac:t.key,run:t.run,shift:t.shift})))),Wg=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:t=>Yf(t,(e=>Kf(t.state,e,!Uf(t)))),shift:t=>lg(t,(e=>Kf(t.state,e,!Uf(t))))},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:t=>Yf(t,(e=>Kf(t.state,e,Uf(t)))),shift:t=>lg(t,(e=>Kf(t.state,e,Uf(t))))},{key:"Alt-ArrowUp",run:({state:t,dispatch:e})=>Ag(t,e,!1)},{key:"Shift-Alt-ArrowUp",run:({state:t,dispatch:e})=>$g(t,e,!1)},{key:"Alt-ArrowDown",run:({state:t,dispatch:e})=>Ag(t,e,!0)},{key:"Shift-Alt-ArrowDown",run:({state:t,dispatch:e})=>$g(t,e,!0)},{key:"Escape",run:({state:t,dispatch:e})=>{let n=t.selection,o=null;return n.ranges.length>1?o=Go.create([n.main]):n.main.empty||(o=Go.create([Go.cursor(n.main.head)])),!!o&&(e(Lf(t,o)),!0)}},{key:"Mod-Enter",run:Rg},{key:"Alt-l",mac:"Ctrl-l",run:({state:t,dispatch:e})=>{let n=Qg(t).map((({from:e,to:n})=>Go.range(e,Math.min(n+1,t.doc.length))));return e(t.update({selection:Go.create(n),userEvent:"select"})),!0}},{key:"Mod-i",run:({state:t,dispatch:e})=>{let n=Xf(t.selection,(e=>{var n;for(let o=Zp(t).resolveStack(e.from,1);o;o=o.next){let{node:t}=o;if((t.from=e.to||t.to>e.to&&t.from<=e.from)&&(null===(n=t.parent)||void 0===n?void 0:n.parent))return Go.range(t.to,t.from)}return e}));return e(Lf(t,n)),!0},preventDefault:!0},{key:"Mod-[",run:Dg},{key:"Mod-]",run:Vg},{key:"Mod-Alt-\\",run:({state:t,dispatch:e})=>{if(t.readOnly)return!1;let n=Object.create(null),o=new Hp(t,{overrideIndentation:t=>{let e=n[t];return null==e?-1:e}}),i=Mg(t,((e,i,r)=>{let s=Gp(o,e.from);if(null==s)return;/\S/.test(e.text)||(s=0);let a=/^\s*/.exec(e.text)[0],l=Fp(t,s);(a!=l||r.from{if(t.state.readOnly)return!1;let{state:e}=t,n=e.changes(Qg(e).map((({from:t,to:n})=>(t>0?t--:nt.moveVertically(e,!0))).map(n);return t.dispatch({changes:n,selection:o,scrollIntoView:!0,userEvent:"delete.line"}),!0}},{key:"Shift-Mod-\\",run:({state:t,dispatch:e})=>ag(t,e,!1)},{key:"Mod-/",run:t=>{let{state:e}=t,n=e.doc.lineAt(e.selection.main.from),o=ff(t.state,n.from);return o.line?hf(t):!!o.block&&df(t)}},{key:"Alt-A",run:pf}].concat(Ng);function Xg(){var t=arguments[0];"string"==typeof t&&(t=document.createElement(t));var e=1,n=arguments[1];if(n&&"object"==typeof n&&null==n.nodeType&&!Array.isArray(n)){for(var o in n)if(Object.prototype.hasOwnProperty.call(n,o)){var i=n[o];"string"==typeof i?t.setAttribute(o,i):null!=i&&(t[o]=i)}e++}for(;et.normalize("NFKD"):t=>t;class zg{constructor(t,e,n=0,o=t.length,i,r){this.test=r,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=t.iterRange(n,o),this.bufferStart=n,this.normalize=i?t=>i(Yg(t)):Yg,this.query=this.normalize(e)}peek(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return Mo(this.buffer,this.bufferPos)}next(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let t=this.peek();if(t<0)return this.done=!0,this;let e=Vo(t),n=this.bufferStart+this.bufferPos;this.bufferPos+=Do(t);let o=this.normalize(e);for(let t=0,i=n;;t++){let r=o.charCodeAt(t),s=this.match(r,i);if(t==o.length-1){if(s)return this.value=s,this;break}i==n&&tthis.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}next(){for(let t=this.matchPos-this.curLineStart;;){this.re.lastIndex=t;let e=this.matchPos<=this.to&&this.re.exec(this.curLine);if(e){let n=this.curLineStart+e.index,o=n+e[0].length;if(this.matchPos=Kg(this.text,o+(n==o?1:0)),n==this.curLineStart+this.curLine.length&&this.nextLine(),(nthis.value.to)&&(!this.test||this.test(n,o,e)))return this.value={from:n,to:o,match:e},this;t=this.matchPos-this.curLineStart}else{if(!(this.curLineStart+this.curLine.length=n||o.to<=e){let o=new Gg(e,t.sliceString(e,n));return Fg.set(t,o),o}if(o.from==e&&o.to==n)return o;let{text:i,from:r}=o;return r>e&&(i=t.sliceString(e,r)+i,r=e),o.to=this.to?this.to:this.text.lineAt(t).to}next(){for(;;){let t=this.re.lastIndex=this.matchPos-this.flat.from,e=this.re.exec(this.flat.text);if(e&&!e[0]&&e.index==t&&(this.re.lastIndex=t+1,e=this.re.exec(this.flat.text)),e){let t=this.flat.from+e.index,n=t+e[0].length;if((this.flat.to>=this.to||e.index+e[0].length<=this.flat.text.length-10)&&(!this.test||this.test(t,n,e)))return this.value={from:t,to:n,match:e},this.matchPos=Kg(this.text,n+(t==n?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=Gg.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+2*this.flat.text.length))}}}function Kg(t,e){if(e>=t.length)return e;let n,o=t.lineAt(e);for(;e=56320&&n<57344;)e++;return e}function Jg(t){let e=Xg("input",{class:"cm-textfield",name:"line",value:String(t.state.doc.lineAt(t.state.selection.main.head).number)});function n(){let n=/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(e.value);if(!n)return;let{state:o}=t,i=o.doc.lineAt(o.selection.main.head),[,r,s,a,l]=n,c=a?+a.slice(1):0,u=s?+s:i.number;if(s&&l){let t=u/100;r&&(t=t*("-"==r?-1:1)+i.number/o.doc.lines),u=Math.round(o.doc.lines*t)}else s&&r&&(u=u*("-"==r?-1:1)+i.number);let h=o.doc.line(Math.max(1,Math.min(o.doc.lines,u))),p=Go.cursor(h.from+Math.max(0,Math.min(c,h.length)));t.dispatch({effects:[tm.of(!1),fc.scrollIntoView(p.from,{y:'center'})],selection:p}),t.focus()}return{dom:Xg("form",{class:"cm-gotoLine",onkeydown:e=>{27==e.keyCode?(e.preventDefault(),t.dispatch({effects:tm.of(!1)}),t.focus()):13==e.keyCode&&(e.preventDefault(),n())},onsubmit:t=>{t.preventDefault(),n()}},Xg("label",t.state.phrase("Go to line"),": ",e)," ",Xg("button",{class:"cm-button",type:"submit"},t.state.phrase("go")))}}"undefined"!=typeof Symbol&&(Bg.prototype[Symbol.iterator]=Hg.prototype[Symbol.iterator]=function(){return this});const tm=Ei.define(),em=si.define({create:()=>!0,update(t,e){for(let n of e.effects)n.is(tm)&&(t=n.value);return t},provide:t=>Zu.from(t,(t=>t?Jg:null))}),nm=fc.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px","& label":{fontSize:"80%"}}}),om={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},im=Jo.define({combine:t=>Xi(t,om,{highlightWordAroundCursor:(t,e)=>t||e,minSelectionLength:Math.min,maxMatches:Math.min})});function rm(t){let e=[um,cm];return t&&e.push(im.of(t)),e}const sm=Ts.mark({class:"cm-selectionMatch"}),am=Ts.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function lm(t,e,n,o){return!(0!=n&&t(e.sliceDoc(n-1,n))==Vi.Word||o!=e.doc.length&&t(e.sliceDoc(o,o+1))==Vi.Word)}const cm=Ks.fromClass(class{constructor(t){this.decorations=this.getDeco(t)}update(t){(t.selectionSet||t.docChanged||t.viewportChanged)&&(this.decorations=this.getDeco(t.view))}getDeco(t){let e=t.state.facet(im),{state:n}=t,o=n.selection;if(o.ranges.length>1)return Ts.none;let i,r=o.main,s=null;if(r.empty){if(!e.highlightWordAroundCursor)return Ts.none;let t=n.wordAt(r.head);if(!t)return Ts.none;s=n.charCategorizer(r.head),i=n.sliceDoc(t.from,t.to)}else{let t=r.to-r.from;if(t200)return Ts.none;if(e.wholeWords){if(i=n.sliceDoc(r.from,r.to),s=n.charCategorizer(r.head),!lm(s,n,r.from,r.to)||!function(t,e,n,o){return t(e.sliceDoc(n,n+1))==Vi.Word&&t(e.sliceDoc(o-1,o))==Vi.Word}(s,n,r.from,r.to))return Ts.none}else if(i=n.sliceDoc(r.from,r.to).trim(),!i)return Ts.none}let a=[];for(let o of t.visibleRanges){let t=new zg(n.doc,i,o.from,o.to);for(;!t.next().done;){let{from:o,to:i}=t.value;if((!s||lm(s,n,o,i))&&(r.empty&&o<=r.from&&i>=r.to?a.push(am.range(o,i)):(o>=r.to||i<=r.from)&&a.push(sm.range(o,i)),a.length>e.maxMatches))return Ts.none}}return Ts.set(a)}},{decorations:t=>t.decorations}),um=fc.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}});const hm=Jo.define({combine:t=>Xi(t,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:t=>new Nm(t),scrollToMatch:t=>fc.scrollIntoView(t)})});class pm{constructor(t){this.search=t.search,this.caseSensitive=!!t.caseSensitive,this.literal=!!t.literal,this.regexp=!!t.regexp,this.replace=t.replace||"",this.valid=!!this.search&&(!this.regexp||function(t){try{return new RegExp(t,Ug),!0}catch(t){return!1}}(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!t.wholeWord}unquote(t){return this.literal?t:t.replace(/\\([nrt\\])/g,((t,e)=>"n"==e?"\n":"r"==e?"\r":"t"==e?"\t":"\\"))}eq(t){return this.search==t.search&&this.replace==t.replace&&this.caseSensitive==t.caseSensitive&&this.regexp==t.regexp&&this.wholeWord==t.wholeWord}create(){return this.regexp?new _m(this):new gm(this)}getCursor(t,e=0,n){let o=t.doc?t:Wi.create({doc:t});return null==n&&(n=o.doc.length),this.regexp?mm(this,o,e,n):fm(this,o,e,n)}}class dm{constructor(t){this.spec=t}}function fm(t,e,n,o){return new zg(e.doc,t.unquoted,n,o,t.caseSensitive?void 0:t=>t.toLowerCase(),t.wholeWord?function(t,e){return(n,o,i,r)=>((r>n||r+i.length=e)return null;o.push(n.value)}return o}highlight(t,e,n,o){let i=fm(this.spec,t,Math.max(0,e-this.spec.unquoted.length),Math.min(n+this.spec.unquoted.length,t.doc.length));for(;!i.next().done;)o(i.value.from,i.value.to)}}function mm(t,e,n,o){return new Bg(e.doc,t.search,{ignoreCase:!t.caseSensitive,test:t.wholeWord?(i=e.charCategorizer(e.selection.main.head),(t,e,n)=>!n[0].length||(i(vm(n.input,n.index))!=Vi.Word||i(ym(n.input,n.index))!=Vi.Word)&&(i(ym(n.input,n.index+n[0].length))!=Vi.Word||i(vm(n.input,n.index+n[0].length))!=Vi.Word)):void 0},n,o);var i}function vm(t,e){return t.slice(Ao(t,e,!1),e)}function ym(t,e){return t.slice(e,Ao(t,e))}class _m extends dm{nextMatch(t,e,n){let o=mm(this.spec,t,n,t.doc.length).next();return o.done&&(o=mm(this.spec,t,0,e).next()),o.done?null:o.value}prevMatchInRange(t,e,n){for(let o=1;;o++){let i=Math.max(e,n-1e4*o),r=mm(this.spec,t,i,n),s=null;for(;!r.next().done;)s=r.value;if(s&&(i==e||s.from>i+10))return s;if(i==e)return null}}prevMatch(t,e,n){return this.prevMatchInRange(t,0,e)||this.prevMatchInRange(t,n,t.doc.length)}getReplacement(t){return this.spec.unquote(this.spec.replace).replace(/\$([$&\d+])/g,((e,n)=>"$"==n?"$":"&"==n?t.match[0]:"0"!=n&&+n=e)return null;o.push(n.value)}return o}highlight(t,e,n,o){let i=mm(this.spec,t,Math.max(0,e-250),Math.min(n+250,t.doc.length));for(;!i.next().done;)o(i.value.from,i.value.to)}}const Om=Ei.define(),bm=Ei.define(),wm=si.define({create:t=>new xm(Rm(t).create(),null),update(t,e){for(let n of e.effects)n.is(Om)?t=new xm(n.value.create(),t.panel):n.is(bm)&&(t=new xm(t.query,n.value?jm:null));return t},provide:t=>Zu.from(t,(t=>t.panel))});class xm{constructor(t,e){this.query=t,this.panel=e}}const Sm=Ts.mark({class:"cm-searchMatch"}),km=Ts.mark({class:"cm-searchMatch cm-searchMatch-selected"}),Pm=Ks.fromClass(class{constructor(t){this.view=t,this.decorations=this.highlight(t.state.field(wm))}update(t){let e=t.state.field(wm);(e!=t.startState.field(wm)||t.docChanged||t.selectionSet||t.viewportChanged)&&(this.decorations=this.highlight(e))}highlight({query:t,panel:e}){if(!e||!t.spec.valid)return Ts.none;let{view:n}=this,o=new Bi;for(let e=0,i=n.visibleRanges,r=i.length;ei[e+1].from-2*250;)a=i[++e].to;t.highlight(n.state,s,a,((t,e)=>{let i=n.state.selection.ranges.some((n=>n.from==t&&n.to==e));o.add(t,e,i?km:Sm)}))}return o.finish()}},{decorations:t=>t.decorations});function Cm(t){return e=>{let n=e.state.field(wm,!1);return n&&n.query.spec.valid?t(e,n):Vm(e)}}const Tm=Cm(((t,{query:e})=>{let{to:n}=t.state.selection.main,o=e.nextMatch(t.state,n,n);if(!o)return!1;let i=Go.single(o.from,o.to),r=t.state.facet(hm);return t.dispatch({selection:i,effects:[Ym(t,o),r.scrollToMatch(i.main,t)],userEvent:"select.search"}),Mm(t),!0})),Em=Cm(((t,{query:e})=>{let{state:n}=t,{from:o}=n.selection.main,i=e.prevMatch(n,o,o);if(!i)return!1;let r=Go.single(i.from,i.to),s=t.state.facet(hm);return t.dispatch({selection:r,effects:[Ym(t,i),s.scrollToMatch(r.main,t)],userEvent:"select.search"}),Mm(t),!0})),Qm=Cm(((t,{query:e})=>{let n=e.matchAll(t.state,1e3);return!(!n||!n.length)&&(t.dispatch({selection:Go.create(n.map((t=>Go.range(t.from,t.to)))),userEvent:"select.search.matches"}),!0)})),Am=Cm(((t,{query:e})=>{let{state:n}=t,{from:o,to:i}=n.selection.main;if(n.readOnly)return!1;let r=e.nextMatch(n,o,o);if(!r)return!1;let s,a,l=[],c=[];if(r.from==o&&r.to==i&&(a=n.toText(e.getReplacement(r)),l.push({from:r.from,to:r.to,insert:a}),r=e.nextMatch(n,r.from,r.to),c.push(fc.announce.of(n.phrase("replaced match on line $",n.doc.lineAt(o).number)+"."))),r){let e=0==l.length||l[0].from>=r.to?0:r.to-r.from-a.length;s=Go.single(r.from-e,r.to-e),c.push(Ym(t,r)),c.push(n.facet(hm).scrollToMatch(s.main,t))}return t.dispatch({changes:l,selection:s,effects:c,userEvent:"input.replace"}),!0})),$m=Cm(((t,{query:e})=>{if(t.state.readOnly)return!1;let n=e.matchAll(t.state,1e9).map((t=>{let{from:n,to:o}=t;return{from:n,to:o,insert:e.getReplacement(t)}}));if(!n.length)return!1;let o=t.state.phrase("replaced $ matches",n.length)+".";return t.dispatch({changes:n,effects:fc.announce.of(o),userEvent:"input.replace.all"}),!0}));function jm(t){return t.state.facet(hm).createPanel(t)}function Rm(t,e){var n,o,i,r,s;let a=t.selection.main,l=a.empty||a.to>a.from+100?"":t.sliceDoc(a.from,a.to);if(e&&!l)return e;let c=t.facet(hm);return new pm({search:(null!==(n=null==e?void 0:e.literal)&&void 0!==n?n:c.literal)?l:l.replace(/\n/g,"\\n"),caseSensitive:null!==(o=null==e?void 0:e.caseSensitive)&&void 0!==o?o:c.caseSensitive,literal:null!==(i=null==e?void 0:e.literal)&&void 0!==i?i:c.literal,regexp:null!==(r=null==e?void 0:e.regexp)&&void 0!==r?r:c.regexp,wholeWord:null!==(s=null==e?void 0:e.wholeWord)&&void 0!==s?s:c.wholeWord})}function Zm(t){let e=Au(t,jm);return e&&e.dom.querySelector("[main-field]")}function Mm(t){let e=Zm(t);e&&e==t.root.activeElement&&e.select()}const Vm=t=>{let e=t.state.field(wm,!1);if(e&&e.panel){let n=Zm(t);if(n&&n!=t.root.activeElement){let o=Rm(t.state,e.query.spec);o.valid&&t.dispatch({effects:Om.of(o)}),n.focus(),n.select()}}else t.dispatch({effects:[bm.of(!0),e?Om.of(Rm(t.state,e.query.spec)):Ei.appendConfig.of(qm)]});return!0},Dm=t=>{let e=t.state.field(wm,!1);if(!e||!e.panel)return!1;let n=Au(t,jm);return n&&n.dom.contains(t.root.activeElement)&&t.focus(),t.dispatch({effects:bm.of(!1)}),!0},Im=[{key:"Mod-f",run:Vm,scope:"editor search-panel"},{key:"F3",run:Tm,shift:Em,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:Tm,shift:Em,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:Dm,scope:"editor search-panel"},{key:"Mod-Shift-l",run:({state:t,dispatch:e})=>{let n=t.selection;if(n.ranges.length>1||n.main.empty)return!1;let{from:o,to:i}=n.main,r=[],s=0;for(let e=new zg(t.doc,t.sliceDoc(o,i));!e.next().done;){if(r.length>1e3)return!1;e.value.from==o&&(s=r.length),r.push(Go.range(e.value.from,e.value.to))}return e(t.update({selection:Go.create(r,s),userEvent:"select.search.matches"})),!0}},{key:"Mod-Alt-g",run:t=>{let e=Au(t,Jg);if(!e){let n=[tm.of(!0)];null==t.state.field(em,!1)&&n.push(Ei.appendConfig.of([em,nm])),t.dispatch({effects:n}),e=Au(t,Jg)}return e&&e.dom.querySelector("input").select(),!0}},{key:"Mod-d",run:({state:t,dispatch:e})=>{let{ranges:n}=t.selection;if(n.some((t=>t.from===t.to)))return(({state:t,dispatch:e})=>{let{selection:n}=t,o=Go.create(n.ranges.map((e=>t.wordAt(e.head)||Go.cursor(e.head))),n.mainIndex);return!o.eq(n)&&(e(t.update({selection:o})),!0)})({state:t,dispatch:e});let o=t.sliceDoc(n[0].from,n[0].to);if(t.selection.ranges.some((e=>t.sliceDoc(e.from,e.to)!=o)))return!1;let i=function(t,e){let{main:n,ranges:o}=t.selection,i=t.wordAt(n.head),r=i&&i.from==n.from&&i.to==n.to;for(let n=!1,i=new zg(t.doc,e,o[o.length-1].to);;){if(i.next(),!i.done){if(n&&o.some((t=>t.from==i.value.from)))continue;if(r){let e=t.wordAt(i.value.from);if(!e||e.from!=i.value.from||e.to!=i.value.to)continue}return i.value}if(n)return null;i=new zg(t.doc,e,0,Math.max(0,o[o.length-1].from-1)),n=!0}}(t,o);return!!i&&(e(t.update({selection:t.selection.addRange(Go.range(i.from,i.to),!1),effects:fc.scrollIntoView(i.to)})),!0)},preventDefault:!0}];class Nm{constructor(t){this.view=t;let e=this.query=t.state.field(wm).query.spec;function n(t,e,n){return Xg("button",{class:"cm-button",name:t,onclick:e,type:"button"},n)}this.commit=this.commit.bind(this),this.searchField=Xg("input",{value:e.search,placeholder:Wm(t,"Find"),"aria-label":Wm(t,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=Xg("input",{value:e.replace,placeholder:Wm(t,"Replace"),"aria-label":Wm(t,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=Xg("input",{type:"checkbox",name:"case",form:"",checked:e.caseSensitive,onchange:this.commit}),this.reField=Xg("input",{type:"checkbox",name:"re",form:"",checked:e.regexp,onchange:this.commit}),this.wordField=Xg("input",{type:"checkbox",name:"word",form:"",checked:e.wholeWord,onchange:this.commit}),this.dom=Xg("div",{onkeydown:t=>this.keydown(t),class:"cm-search"},[this.searchField,n("next",(()=>Tm(t)),[Wm(t,"next")]),n("prev",(()=>Em(t)),[Wm(t,"previous")]),n("select",(()=>Qm(t)),[Wm(t,"all")]),Xg("label",null,[this.caseField,Wm(t,"match case")]),Xg("label",null,[this.reField,Wm(t,"regexp")]),Xg("label",null,[this.wordField,Wm(t,"by word")]),...t.state.readOnly?[]:[Xg("br"),this.replaceField,n("replace",(()=>Am(t)),[Wm(t,"replace")]),n("replaceAll",(()=>$m(t)),[Wm(t,"replace all")])],Xg("button",{name:"close",onclick:()=>Dm(t),"aria-label":Wm(t,"close"),type:"button"},["×"])])}commit(){let t=new pm({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});t.eq(this.query)||(this.query=t,this.view.dispatch({effects:Om.of(t)}))}keydown(t){var e,n,o;e=this.view,n=t,o="search-panel",Cc(Sc(e.state),n,e,o)?t.preventDefault():13==t.keyCode&&t.target==this.searchField?(t.preventDefault(),(t.shiftKey?Em:Tm)(this.view)):13==t.keyCode&&t.target==this.replaceField&&(t.preventDefault(),Am(this.view))}update(t){for(let e of t.transactions)for(let t of e.effects)t.is(Om)&&!t.value.eq(this.query)&&this.setQuery(t.value)}setQuery(t){this.query=t,this.searchField.value=t.search,this.replaceField.value=t.replace,this.caseField.checked=t.caseSensitive,this.reField.checked=t.regexp,this.wordField.checked=t.wholeWord}mount(){this.searchField.select()}get pos(){return 80}get top(){return this.view.state.facet(hm).top}}function Wm(t,e){return t.state.phrase(e)}const Xm=30,Lm=/[\s\.,:;?!]/;function Ym(t,{from:e,to:n}){let o=t.state.doc.lineAt(e),i=t.state.doc.lineAt(n).to,r=Math.max(o.from,e-Xm),s=Math.min(i,n+Xm),a=t.state.sliceDoc(r,s);if(r!=o.from)for(let t=0;ta.length-Xm;t--)if(!Lm.test(a[t-1])&&Lm.test(a[t])){a=a.slice(0,t);break}return fc.announce.of(`${t.state.phrase("current match")}. ${a} ${t.state.phrase("on line")} ${o.number}.`)}const zm=fc.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),qm=[wm,pi.low(Pm),zm];class Um{constructor(t,e,n){this.state=t,this.pos=e,this.explicit=n,this.abortListeners=[]}tokenBefore(t){let e=Zp(this.state).resolveInner(this.pos,-1);for(;e&&t.indexOf(e.name)<0;)e=e.parent;return e?{from:e.from,to:this.pos,text:this.state.sliceDoc(e.from,this.pos),type:e.type}:null}matchBefore(t){let e=this.state.doc.lineAt(this.pos),n=Math.max(e.from,this.pos-250),o=e.text.slice(n-e.from,this.pos-e.from),i=o.search(Km(t,!1));return i<0?null:{from:n+i,to:this.pos,text:o.slice(i)}}get aborted(){return null==this.abortListeners}addEventListener(t,e){"abort"==t&&this.abortListeners&&this.abortListeners.push(e)}}function Bm(t){let e=Object.keys(t).join(""),n=/\w/.test(e);return n&&(e=e.replace(/\w/g,"")),`[${n?"\\w":""}${e.replace(/[^\w\s]/g,"\\$&")}]`}function Fm(t){let e=t.map((t=>"string"==typeof t?{label:t}:t)),[n,o]=e.every((t=>/^\w+$/.test(t.label)))?[/\w*$/,/\w+$/]:function(t){let e=Object.create(null),n=Object.create(null);for(let{label:o}of t){e[o[0]]=!0;for(let t=1;t{let i=t.matchBefore(o);return i||t.explicit?{from:i?i.from:t.pos,options:e,validFor:n}:null}}class Gm{constructor(t,e,n,o){this.completion=t,this.source=e,this.match=n,this.score=o}}function Hm(t){return t.selection.main.from}function Km(t,e){var n;let{source:o}=t,i=e&&"^"!=o[0],r="$"!=o[o.length-1];return i||r?new RegExp(`${i?"^":""}(?:${o})${r?"$":""}`,null!==(n=t.flags)&&void 0!==n?n:t.ignoreCase?"i":""):t}const Jm=Pi.define();const tv=new WeakMap;function ev(t){if(!Array.isArray(t))return t;let e=tv.get(t);return e||tv.set(t,e=Fm(t)),e}const nv=Ei.define(),ov=Ei.define();class iv{constructor(t){this.pattern=t,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(let e=0;e=48&&l<=57||l>=97&&l<=122?2:l>=65&&l<=90?1:0:(y=Vo(l))!=y.toLowerCase()?1:y!=y.toUpperCase()?2:0;(!o||1==_&&g||0==v&&0!=_)&&(e[u]==l||n[u]==l&&(h=!0)?r[u++]=o:r.length&&(m=!1)),v=_,o+=Do(l)}return u==a&&0==r[0]&&m?this.result(-100+(h?-200:0),r,t):p==a&&0==d?this.ret(-200-t.length+(f==t.length?0:-100),[0,f]):s>-1?this.ret(-700-t.length,[s,s+this.pattern.length]):p==a?this.ret(-200+-700-t.length,[d,f]):u==a?this.result(-100+(h?-200:0)+-700+(m?0:-1100),r,t):2!=e.length&&this.result((o[0]?-700:0)+-200+-1100,o,t)}result(t,e,n){let o=[],i=0;for(let t of e){let e=t+(this.astral?Do(Mo(n,t)):1);i&&o[i-1]==t?o[i-1]=e:(o[i++]=t,o[i++]=e)}return this.ret(t-n.length,o)}}const rv=Jo.define({combine:t=>Xi(t,{activateOnTyping:!0,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:av,compareCompletions:(t,e)=>t.label.localeCompare(e.label),interactionDelay:75,updateSyncTime:100},{defaultKeymap:(t,e)=>t&&e,closeOnBlur:(t,e)=>t&&e,icons:(t,e)=>t&&e,tooltipClass:(t,e)=>n=>sv(t(n),e(n)),optionClass:(t,e)=>n=>sv(t(n),e(n)),addToOptions:(t,e)=>t.concat(e)})});function sv(t,e){return t?e?t+" "+e:t:e}function av(t,e,n,o,i,r){let s,a,l=t.textDirection==ha.RTL,c=l,u=!1,h="top",p=e.left-i.left,d=i.right-e.right,f=o.right-o.left,g=o.bottom-o.top;if(c&&p=g||t>e.top?s=n.bottom-e.top:(h="bottom",s=e.bottom-n.top)}return{style:`${h}: ${s/((e.bottom-e.top)/r.offsetHeight)}px; max-width: ${a/((e.right-e.left)/r.offsetWidth)}px`,class:"cm-completionInfo-"+(u?l?"left-narrow":"right-narrow":c?"left":"right")}}function lv(t,e,n){if(t<=n)return{from:0,to:t};if(e<0&&(e=0),e<=t>>1){let t=Math.floor(e/n);return{from:t*n,to:(t+1)*n}}let o=Math.floor((t-e)/n);return{from:t-(o+1)*n,to:t-o*n}}class cv{constructor(t,e,n){this.view=t,this.stateField=e,this.applyCompletion=n,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:t=>this.placeInfo(t),key:this},this.space=null,this.currentClass="";let o=t.state.field(e),{options:i,selected:r}=o.open,s=t.state.facet(rv);this.optionContent=function(t){let e=t.addToOptions.slice();return t.icons&&e.push({render(t){let e=document.createElement("div");return e.classList.add("cm-completionIcon"),t.type&&e.classList.add(...t.type.split(/\s+/g).map((t=>"cm-completionIcon-"+t))),e.setAttribute("aria-hidden","true"),e},position:20}),e.push({render(t,e,n,o){let i=document.createElement("span");i.className="cm-completionLabel";let r=t.displayLabel||t.label,s=0;for(let t=0;ts&&i.appendChild(document.createTextNode(r.slice(s,e)));let a=i.appendChild(document.createElement("span"));a.appendChild(document.createTextNode(r.slice(e,n))),a.className="cm-completionMatchedText",s=n}return st.position-e.position)).map((t=>t.render))}(s),this.optionClass=s.optionClass,this.tooltipClass=s.tooltipClass,this.range=lv(i.length,r,s.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(t.state),this.dom.addEventListener("mousedown",(n=>{let{options:o}=t.state.field(e).open;for(let e,i=n.target;i&&i!=this.dom;i=i.parentNode)if("LI"==i.nodeName&&(e=/-(\d+)$/.exec(i.id))&&+e[1]{let n=t.state.field(this.stateField,!1);n&&n.tooltip&&t.state.facet(rv).closeOnBlur&&e.relatedTarget!=t.contentDOM&&t.dispatch({effects:ov.of(null)})})),this.showOptions(i,o.id)}mount(){this.updateSel()}showOptions(t,e){this.list&&this.list.remove(),this.list=this.dom.appendChild(this.createListBox(t,e,this.range)),this.list.addEventListener("scroll",(()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)}))}update(t){var e;let n=t.state.field(this.stateField),o=t.startState.field(this.stateField);if(this.updateTooltipClass(t.state),n!=o){let{options:i,selected:r,disabled:s}=n.open;o.open&&o.open.options==i||(this.range=lv(i.length,r,t.state.facet(rv).maxRenderedOptions),this.showOptions(i,n.id)),this.updateSel(),s!=(null===(e=o.open)||void 0===e?void 0:e.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!s)}}updateTooltipClass(t){let e=this.tooltipClass(t);if(e!=this.currentClass){for(let t of this.currentClass.split(" "))t&&this.dom.classList.remove(t);for(let t of e.split(" "))t&&this.dom.classList.add(t);this.currentClass=e}}positioned(t){this.space=t,this.info&&this.view.requestMeasure(this.placeInfoReq)}updateSel(){let t=this.view.state.field(this.stateField),e=t.open;if((e.selected>-1&&e.selected=this.range.to)&&(this.range=lv(e.options.length,e.selected,this.view.state.facet(rv).maxRenderedOptions),this.showOptions(e.options,t.id)),this.updateSelectedOption(e.selected)){this.destroyInfo();let{completion:n}=e.options[e.selected],{info:o}=n;if(!o)return;let i="string"==typeof o?document.createTextNode(o):o(n);if(!i)return;"then"in i?i.then((e=>{e&&this.view.state.field(this.stateField,!1)==t&&this.addInfoPane(e,n)})).catch((t=>Bs(this.view.state,t,"completion info"))):this.addInfoPane(i,n)}}addInfoPane(t,e){this.destroyInfo();let n=this.info=document.createElement("div");if(n.className="cm-tooltip cm-completionInfo",null!=t.nodeType)n.appendChild(t),this.infoDestroy=null;else{let{dom:e,destroy:o}=t;n.appendChild(e),this.infoDestroy=o||null}this.dom.appendChild(n),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(t){let e=null;for(let n=this.list.firstChild,o=this.range.from;n;n=n.nextSibling,o++)"LI"==n.nodeName&&n.id?o==t?n.hasAttribute("aria-selected")||(n.setAttribute("aria-selected","true"),e=n):n.hasAttribute("aria-selected")&&n.removeAttribute("aria-selected"):o--;return e&&function(t,e){let n=t.getBoundingClientRect(),o=e.getBoundingClientRect(),i=n.height/t.offsetHeight;o.topn.bottom&&(t.scrollTop+=(o.bottom-n.bottom)/i)}(this.list,e),e}measureInfo(){let t=this.dom.querySelector("[aria-selected]");if(!t||!this.info)return null;let e=this.dom.getBoundingClientRect(),n=this.info.getBoundingClientRect(),o=t.getBoundingClientRect(),i=this.space;if(!i){let t=this.dom.ownerDocument.defaultView||window;i={left:0,top:0,right:t.innerWidth,bottom:t.innerHeight}}return o.top>Math.min(i.bottom,e.bottom)-10||o.bottomn.from||0==n.from))if(i=t,"string"!=typeof l&&l.header)o.appendChild(l.header(l));else{o.appendChild(document.createElement("completion-section")).textContent=t}}const c=o.appendChild(document.createElement("li"));c.id=e+"-"+r,c.setAttribute("role","option");let u=this.optionClass(s);u&&(c.className=u);for(let t of this.optionContent){let e=t(s,this.view.state,this.view,a);e&&c.appendChild(e)}}return n.from&&o.classList.add("cm-completionListIncompleteTop"),n.tonew cv(n,t,e)}function hv(t){return 100*(t.boost||0)+(t.apply?10:0)+(t.info?5:0)+(t.type?1:0)}class pv{constructor(t,e,n,o,i,r){this.options=t,this.attrs=e,this.tooltip=n,this.timestamp=o,this.selected=i,this.disabled=r}setSelected(t,e){return t==this.selected||t>=this.options.length?this:new pv(this.options,gv(e,t),this.tooltip,this.timestamp,t,this.disabled)}static build(t,e,n,o,i){let r=function(t,e){let n=[],o=null,i=t=>{n.push(t);let{section:e}=t.completion;if(e){o||(o=[]);let t="string"==typeof e?e:e.name;o.some((e=>e.name==t))||o.push("string"==typeof e?{name:t}:e)}};for(let o of t)if(o.hasResult()){let t=o.result.getMatch;if(!1===o.result.filter)for(let e of o.result.options)i(new Gm(e,o.source,t?t(e):[],1e9-n.length));else{let n=new iv(e.sliceDoc(o.from,o.to));for(let e of o.result.options)if(n.match(e.label)){let r=e.displayLabel?t?t(e,n.matched):[]:n.matched;i(new Gm(e,o.source,r,n.score+(e.boost||0)))}}}if(o){let t=Object.create(null),e=0,i=(t,e)=>{var n,o;return(null!==(n=t.rank)&&void 0!==n?n:1e9)-(null!==(o=e.rank)&&void 0!==o?o:1e9)||(t.namee.score-t.score||a(t.completion,e.completion)))){let e=t.completion;!s||s.label!=e.label||s.detail!=e.detail||null!=s.type&&null!=e.type&&s.type!=e.type||s.apply!=e.apply||s.boost!=e.boost?r.push(t):hv(t.completion)>hv(s)&&(r[r.length-1]=t),s=t.completion}return r}(t,e);if(!r.length)return o&&t.some((t=>1==t.state))?new pv(o.options,o.attrs,o.tooltip,o.timestamp,o.selected,!0):null;let s=e.facet(rv).selectOnOpen?0:-1;if(o&&o.selected!=s&&-1!=o.selected){let t=o.options[o.selected].completion;for(let e=0;ee.hasResult()?Math.min(t,e.from):t),1e8),create:Sv,above:i.aboveCursor},o?o.timestamp:Date.now(),s,!1)}map(t){return new pv(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:t.mapPos(this.tooltip.pos)}),this.timestamp,this.selected,this.disabled)}}class dv{constructor(t,e,n){this.active=t,this.id=e,this.open=n}static start(){return new dv(mv,"cm-ac-"+Math.floor(2e6*Math.random()).toString(36),null)}update(t){let{state:e}=t,n=e.facet(rv),o=(n.override||e.languageDataAt("autocomplete",Hm(e)).map(ev)).map((e=>{let o=this.active.find((t=>t.source==e))||new yv(e,this.active.some((t=>0!=t.state))?1:0);return o.update(t,n)}));o.length==this.active.length&&o.every(((t,e)=>t==this.active[e]))&&(o=this.active);let i=this.open;i&&t.docChanged&&(i=i.map(t.changes)),t.selection||o.some((e=>e.hasResult()&&t.changes.touchesRange(e.from,e.to)))||!function(t,e){if(t==e)return!0;for(let n=0,o=0;;){for(;n1==t.state))&&(i=null),!i&&o.every((t=>1!=t.state))&&o.some((t=>t.hasResult()))&&(o=o.map((t=>t.hasResult()?new yv(t.source,0):t)));for(let e of t.effects)e.is(bv)&&(i=i&&i.setSelected(e.value,this.id));return o==this.active&&i==this.open?this:new dv(o,this.id,i)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:fv}}const fv={"aria-autocomplete":"list"};function gv(t,e){let n={"aria-autocomplete":"list","aria-haspopup":"listbox","aria-controls":t};return e>-1&&(n["aria-activedescendant"]=t+"-"+e),n}const mv=[];function vv(t){return t.isUserEvent("input.type")?"input":t.isUserEvent("delete.backward")?"delete":null}class yv{constructor(t,e,n=-1){this.source=t,this.state=e,this.explicitPos=n}hasResult(){return!1}update(t,e){let n=vv(t),o=this;n?o=o.handleUserEvent(t,n,e):t.docChanged?o=o.handleChange(t):t.selection&&0!=o.state&&(o=new yv(o.source,0));for(let e of t.effects)if(e.is(nv))o=new yv(o.source,1,e.value?Hm(t.state):-1);else if(e.is(ov))o=new yv(o.source,0);else if(e.is(Ov))for(let t of e.value)t.source==o.source&&(o=t);return o}handleUserEvent(t,e,n){return"delete"!=e&&n.activateOnTyping?new yv(this.source,1):this.map(t.changes)}handleChange(t){return t.changes.touchesRange(Hm(t.startState))?new yv(this.source,0):this.map(t.changes)}map(t){return t.empty||this.explicitPos<0?this:new yv(this.source,this.state,t.mapPos(this.explicitPos))}}class _v extends yv{constructor(t,e,n,o,i){super(t,2,e),this.result=n,this.from=o,this.to=i}hasResult(){return!0}handleUserEvent(t,e,n){var o;let i=t.changes.mapPos(this.from),r=t.changes.mapPos(this.to,1),s=Hm(t.state);if((this.explicitPos<0?s<=i:sr||"delete"==e&&Hm(t.startState)==this.from)return new yv(this.source,"input"==e&&n.activateOnTyping?1:0);let a,l=this.explicitPos<0?-1:t.changes.mapPos(this.explicitPos);return function(t,e,n,o){if(!t)return!1;let i=e.sliceDoc(n,o);return"function"==typeof t?t(i,n,o,e):Km(t,!0).test(i)}(this.result.validFor,t.state,i,r)?new _v(this.source,l,this.result,i,r):this.result.update&&(a=this.result.update(this.result,i,r,new Um(t.state,s,l>=0)))?new _v(this.source,l,a,a.from,null!==(o=a.to)&&void 0!==o?o:Hm(t.state)):new yv(this.source,1,l)}handleChange(t){return t.changes.touchesRange(this.from,this.to)?new yv(this.source,0):this.map(t.changes)}map(t){return t.empty?this:new _v(this.source,this.explicitPos<0?-1:t.mapPos(this.explicitPos),this.result,t.mapPos(this.from),t.mapPos(this.to,1))}}const Ov=Ei.define({map:(t,e)=>t.map((t=>t.map(e)))}),bv=Ei.define(),wv=si.define({create:()=>dv.start(),update:(t,e)=>t.update(e),provide:t=>[bu.from(t,(t=>t.tooltip)),fc.contentAttributes.from(t,(t=>t.attrs))]});function xv(t,e){const n=e.completion.apply||e.completion.label;let o=t.state.field(wv).active.find((t=>t.source==e.source));return o instanceof _v&&("string"==typeof n?t.dispatch(Object.assign(Object.assign({},function(t,e,n,o){let{main:i}=t.selection,r=n-i.from,s=o-i.from;return Object.assign(Object.assign({},t.changeByRange((a=>a!=i&&n!=o&&t.sliceDoc(a.from+r,a.from+s)!=t.sliceDoc(n,o)?{range:a}:{changes:{from:a.from+r,to:o==i.from?a.to:a.from+s,insert:e},range:Go.cursor(a.from+r+e.length)}))),{scrollIntoView:!0,userEvent:"input.complete"})}(t.state,n,o.from,o.to)),{annotations:Jm.of(e.completion)})):n(t,e.completion,o.from,o.to),!0)}const Sv=uv(wv,xv);function kv(t,e="option"){return n=>{let o=n.state.field(wv,!1);if(!o||!o.open||o.open.disabled||Date.now()-o.open.timestamp-1?o.open.selected+r*(t?1:-1):t?0:s-1;return a<0?a="page"==e?0:s-1:a>=s&&(a="page"==e?s-1:0),n.dispatch({effects:bv.of(a)}),!0}}class Pv{constructor(t,e){this.active=t,this.context=e,this.time=Date.now(),this.updates=[],this.done=void 0}}const Cv=50,Tv=1e3,Ev=Ks.fromClass(class{constructor(t){this.view=t,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.composing=0;for(let e of t.state.field(wv).active)1==e.state&&this.startQuery(e)}update(t){let e=t.state.field(wv);if(!t.selectionSet&&!t.docChanged&&t.startState.field(wv)==e)return;let n=t.transactions.some((t=>(t.selection||t.docChanged)&&!vv(t)));for(let e=0;eCv&&Date.now()-o.time>Tv){for(let t of o.context.abortListeners)try{t()}catch(t){Bs(this.view.state,t)}o.context.abortListeners=null,this.running.splice(e--,1)}else o.updates.push(...t.transactions)}if(this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),this.debounceUpdate=e.active.some((t=>1==t.state&&!this.running.some((e=>e.active.source==t.source))))?setTimeout((()=>this.startUpdate()),50):-1,0!=this.composing)for(let e of t.transactions)"input"==vv(e)?this.composing=2:2==this.composing&&e.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1;let{state:t}=this.view,e=t.field(wv);for(let t of e.active)1!=t.state||this.running.some((e=>e.active.source==t.source))||this.startQuery(t)}startQuery(t){let{state:e}=this.view,n=Hm(e),o=new Um(e,n,t.explicitPos==n),i=new Pv(t,o);this.running.push(i),Promise.resolve(t.source(o)).then((t=>{i.context.aborted||(i.done=t||null,this.scheduleAccept())}),(t=>{this.view.dispatch({effects:ov.of(null)}),Bs(this.view.state,t)}))}scheduleAccept(){this.running.every((t=>void 0!==t.done))?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout((()=>this.accept()),this.view.state.facet(rv).updateSyncTime))}accept(){var t;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let e=[],n=this.view.state.facet(rv);for(let o=0;ot.source==i.active.source));if(r&&1==r.state)if(null==i.done){let t=new yv(i.active.source,0);for(let e of i.updates)t=t.update(e,n);1!=t.state&&e.push(t)}else this.startQuery(r)}e.length&&this.view.dispatch({effects:Ov.of(e)})}},{eventHandlers:{blur(t){let e=this.view.state.field(wv,!1);if(e&&e.tooltip&&this.view.state.facet(rv).closeOnBlur){let n=e.open&&Tu(this.view,e.open.tooltip);n&&n.dom.contains(t.relatedTarget)||this.view.dispatch({effects:ov.of(null)})}},compositionstart(){this.composing=1},compositionend(){3==this.composing&&setTimeout((()=>this.view.dispatch({effects:nv.of(!1)})),20),this.composing=0}}}),Qv=fc.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li, & > completion-section":{padding:"1px 3px",lineHeight:1.2},"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer"},"& > completion-section":{display:"list-item",borderBottom:"1px solid silver",paddingLeft:"0.5em",opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"···"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:`${400}px`,boxSizing:"border-box"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:`${30}px`},".cm-completionInfo.cm-completionInfo-right-narrow":{left:`${30}px`},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'ƒ'"}},".cm-completionIcon-class":{"&:after":{content:"'○'"}},".cm-completionIcon-interface":{"&:after":{content:"'◌'"}},".cm-completionIcon-variable":{"&:after":{content:"'𝑥'"}},".cm-completionIcon-constant":{"&:after":{content:"'𝐶'"}},".cm-completionIcon-type":{"&:after":{content:"'𝑡'"}},".cm-completionIcon-enum":{"&:after":{content:"'∪'"}},".cm-completionIcon-property":{"&:after":{content:"'□'"}},".cm-completionIcon-keyword":{"&:after":{content:"'🔑︎'"}},".cm-completionIcon-namespace":{"&:after":{content:"'▢'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}});class Av{constructor(t,e,n,o){this.field=t,this.line=e,this.from=n,this.to=o}}class $v{constructor(t,e,n){this.field=t,this.from=e,this.to=n}map(t){let e=t.mapPos(this.from,-1,No.TrackDel),n=t.mapPos(this.to,1,No.TrackDel);return null==e||null==n?null:new $v(this.field,e,n)}}class jv{constructor(t,e){this.lines=t,this.fieldPositions=e}instantiate(t,e){let n=[],o=[e],i=t.doc.lineAt(e),r=/^\s*/.exec(i.text)[0];for(let i of this.lines){if(n.length){let n=r,s=/^\t*/.exec(i)[0].length;for(let e=0;enew $v(t.field,o[t.line]+t.from,o[t.line]+t.to)));return{text:n,ranges:s}}static parse(t){let e,n=[],o=[],i=[];for(let r of t.split(/\r\n?|\n/)){for(;e=/[#$]\{(?:(\d+)(?::([^}]*))?|([^}]*))\}/.exec(r);){let t=e[1]?+e[1]:null,s=e[2]||e[3]||"",a=-1;for(let e=0;e=a&&t.field++}i.push(new Av(a,o.length,e.index,e.index+s.length)),r=r.slice(0,e.index)+s+r.slice(e.index+e[0].length)}for(let t;t=/\\([{}])/.exec(r);){r=r.slice(0,t.index)+t[1]+r.slice(t.index+t[0].length);for(let e of i)e.line==o.length&&e.from>t.index&&(e.from--,e.to--)}o.push(r)}return new jv(o,i)}}let Rv=Ts.widget({widget:new class extends Ps{toDOM(){let t=document.createElement("span");return t.className="cm-snippetFieldPosition",t}ignoreEvent(){return!1}}}),Zv=Ts.mark({class:"cm-snippetField"});class Mv{constructor(t,e){this.ranges=t,this.active=e,this.deco=Ts.set(t.map((t=>(t.from==t.to?Rv:Zv).range(t.from,t.to))))}map(t){let e=[];for(let n of this.ranges){let o=n.map(t);if(!o)return null;e.push(o)}return new Mv(e,this.active)}selectionInsideField(t){return t.ranges.every((t=>this.ranges.some((e=>e.field==this.active&&e.from<=t.from&&e.to>=t.to))))}}const Vv=Ei.define({map:(t,e)=>t&&t.map(e)}),Dv=Ei.define(),Iv=si.define({create:()=>null,update(t,e){for(let n of e.effects){if(n.is(Vv))return n.value;if(n.is(Dv)&&t)return new Mv(t.ranges,n.value)}return t&&e.docChanged&&(t=t.map(e.changes)),t&&e.selection&&!t.selectionInsideField(e.selection)&&(t=null),t},provide:t=>fc.decorations.from(t,(t=>t?t.deco:Ts.none))});function Nv(t,e){return Go.create(t.filter((t=>t.field==e)).map((t=>Go.range(t.from,t.to))))}function Wv(t){let e=jv.parse(t);return(t,n,o,i)=>{let{text:r,ranges:s}=e.instantiate(t.state,o),a={changes:{from:o,to:i,insert:vo.of(r)},scrollIntoView:!0,annotations:n?Jm.of(n):void 0};if(s.length&&(a.selection=Nv(s,0)),s.length>1){let e=new Mv(s,0),n=a.effects=[Vv.of(e)];void 0===t.state.field(Iv,!1)&&n.push(Ei.appendConfig.of([Iv,zv,Uv,Qv]))}t.dispatch(t.state.update(a))}}function Xv(t){return({state:e,dispatch:n})=>{let o=e.field(Iv,!1);if(!o||t<0&&0==o.active)return!1;let i=o.active+t,r=t>0&&!o.ranges.some((e=>e.field==i+t));return n(e.update({selection:Nv(o.ranges,i),effects:Vv.of(r?null:new Mv(o.ranges,i)),scrollIntoView:!0})),!0}}const Lv=[{key:"Tab",run:Xv(1),shift:Xv(-1)},{key:"Escape",run:({state:t,dispatch:e})=>!!t.field(Iv,!1)&&(e(t.update({effects:Vv.of(null)})),!0)}],Yv=Jo.define({combine:t=>t.length?t[0]:Lv}),zv=pi.highest(wc.compute([Yv],(t=>t.facet(Yv))));function qv(t,e){return Object.assign(Object.assign({},e),{apply:Wv(t)})}const Uv=fc.domEventHandlers({mousedown(t,e){let n,o=e.state.field(Iv,!1);if(!o||null==(n=e.posAtCoords({x:t.clientX,y:t.clientY})))return!1;let i=o.ranges.find((t=>t.from<=n&&t.to>=n));return!(!i||i.field==o.active)&&(e.dispatch({selection:Nv(o.ranges,i.field),effects:Vv.of(o.ranges.some((t=>t.field>i.field))?new Mv(o.ranges,i.field):null),scrollIntoView:!0}),!0)}});null&&Object.create(null);const Bv={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},Fv=Ei.define({map(t,e){let n=e.mapPos(t,-1,No.TrackAfter);return null==n?void 0:n}}),Gv=new class extends Li{};Gv.startSide=1,Gv.endSide=-1;const Hv=si.define({create:()=>Ui.empty,update(t,e){if(t=t.map(e.changes),e.selection){let n=e.state.doc.lineAt(e.selection.main.head);t=t.update({filter:t=>t>=n.from&&t<=n.to})}for(let n of e.effects)n.is(Fv)&&(t=t.update({add:[Gv.range(n.value,n.value+1)]}));return t}});const Kv="()[]{}<>";function Jv(t){for(let e=0;e{if((ey?t.composing:t.compositionStarted)||t.state.readOnly)return!1;let i=t.state.selection.main;if(o.length>2||2==o.length&&1==Do(Mo(o,0))||e!=i.from||n!=i.to)return!1;let r=function(t,e){let n=ty(t,t.selection.main.head),o=n.brackets||Bv.brackets;for(let i of o){let r=Jv(Mo(i,0));if(e==i)return r==i?ly(t,i,o.indexOf(i+i+i)>-1,n):sy(t,i,r,n.before||Bv.before);if(e==r&&iy(t,t.selection.main.from))return ay(t,i,r)}return null}(t.state,o);return!!r&&(t.dispatch(r),!0)})),oy=[{key:"Backspace",run:({state:t,dispatch:e})=>{if(t.readOnly)return!1;let n=ty(t,t.selection.main.head).brackets||Bv.brackets,o=null,i=t.changeByRange((e=>{if(e.empty){let o=function(t,e){let n=t.sliceString(e-2,e);return Do(Mo(n,0))==n.length?n:n.slice(1)}(t.doc,e.head);for(let i of n)if(i==o&&ry(t.doc,e.head)==Jv(Mo(i,0)))return{changes:{from:e.head-i.length,to:e.head+i.length},range:Go.cursor(e.head-i.length)}}return{range:o=e}}));return o||e(t.update(i,{scrollIntoView:!0,userEvent:"delete.backward"})),!o}}];function iy(t,e){let n=!1;return t.field(Hv).between(0,t.doc.length,(t=>{t==e&&(n=!0)})),n}function ry(t,e){let n=t.sliceString(e,e+2);return n.slice(0,Do(Mo(n,0)))}function sy(t,e,n,o){let i=null,r=t.changeByRange((r=>{if(!r.empty)return{changes:[{insert:e,from:r.from},{insert:n,from:r.to}],effects:Fv.of(r.to+e.length),range:Go.range(r.anchor+e.length,r.head+e.length)};let s=ry(t.doc,r.head);return!s||/\s/.test(s)||o.indexOf(s)>-1?{changes:{insert:e+n,from:r.head},effects:Fv.of(r.head+e.length),range:Go.cursor(r.head+e.length)}:{range:i=r}}));return i?null:t.update(r,{scrollIntoView:!0,userEvent:"input.type"})}function ay(t,e,n){let o=null,i=t.changeByRange((e=>e.empty&&ry(t.doc,e.head)==n?{changes:{from:e.head,to:e.head+n.length,insert:n},range:Go.cursor(e.head+n.length)}:o={range:e}));return o?null:t.update(i,{scrollIntoView:!0,userEvent:"input.type"})}function ly(t,e,n,o){let i=o.stringPrefixes||Bv.stringPrefixes,r=null,s=t.changeByRange((o=>{if(!o.empty)return{changes:[{insert:e,from:o.from},{insert:e,from:o.to}],effects:Fv.of(o.to+e.length),range:Go.range(o.anchor+e.length,o.head+e.length)};let s,a=o.head,l=ry(t.doc,a);if(l==e){if(cy(t,a))return{changes:{insert:e+e,from:a},effects:Fv.of(a+e.length),range:Go.cursor(a+e.length)};if(iy(t,a)){let o=n&&t.sliceDoc(a,a+3*e.length)==e+e+e?e+e+e:e;return{changes:{from:a,to:a+o.length,insert:o},range:Go.cursor(a+o.length)}}}else{if(n&&t.sliceDoc(a-2*e.length,a)==e+e&&(s=uy(t,a-2*e.length,i))>-1&&cy(t,s))return{changes:{insert:e+e+e+e,from:a},effects:Fv.of(a+e.length),range:Go.cursor(a+e.length)};if(t.charCategorizer(a)(l)!=Vi.Word&&uy(t,a,i)>-1&&!function(t,e,n,o){let i=Zp(t).resolveInner(e,-1),r=o.reduce(((t,e)=>Math.max(t,e.length)),0);for(let s=0;s<5;s++){let s=t.sliceDoc(i.from,Math.min(i.to,i.from+n.length+r)),a=s.indexOf(n);if(!a||a>-1&&o.indexOf(s.slice(0,a))>-1){let e=i.firstChild;for(;e&&e.from==i.from&&e.to-e.from>n.length+a;){if(t.sliceDoc(e.to-n.length,e.to)==n)return!1;e=e.firstChild}return!0}let l=i.to==e&&i.parent;if(!l)break;i=l}return!1}(t,a,e,i))return{changes:{insert:e+e,from:a},effects:Fv.of(a+e.length),range:Go.cursor(a+e.length)}}return{range:r=o}}));return r?null:t.update(s,{scrollIntoView:!0,userEvent:"input.type"})}function cy(t,e){let n=Zp(t).resolveInner(e+1);return n.parent&&n.from==e}function uy(t,e,n){let o=t.charCategorizer(e);if(o(t.sliceDoc(e-1,e))!=Vi.Word)return e;for(let i of n){let n=e-i.length;if(t.sliceDoc(n,e)==i&&o(t.sliceDoc(n-1,n))!=Vi.Word)return n}return-1}function hy(t={}){return[wv,rv.of(t),Ev,dy,Qv]}const py=[{key:"Ctrl-Space",run:t=>!!t.state.field(wv,!1)&&(t.dispatch({effects:nv.of(!0)}),!0)},{key:"Escape",run:t=>{let e=t.state.field(wv,!1);return!(!e||!e.active.some((t=>0!=t.state)))&&(t.dispatch({effects:ov.of(null)}),!0)}},{key:"ArrowDown",run:kv(!0)},{key:"ArrowUp",run:kv(!1)},{key:"PageDown",run:kv(!0,"page")},{key:"PageUp",run:kv(!1,"page")},{key:"Enter",run:t=>{let e=t.state.field(wv,!1);return!(t.state.readOnly||!e||!e.open||e.open.selected<0||e.open.disabled||Date.now()-e.open.timestampt.facet(rv).defaultKeymap?[py]:[])));class fy{constructor(t,e,n){this.from=t,this.to=e,this.diagnostic=n}}class gy{constructor(t,e,n){this.diagnostics=t,this.panel=e,this.selected=n}static init(t,e,n){let o=t,i=n.facet(Ty).markerFilter;i&&(o=i(o));let r=Ts.set(o.map((t=>t.from==t.to||t.from==t.to-1&&n.doc.lineAt(t.from).to==t.from?Ts.widget({widget:new Ay(t),diagnostic:t}).range(t.from):Ts.mark({attributes:{class:"cm-lintRange cm-lintRange-"+t.severity+(t.markClass?" "+t.markClass:"")},diagnostic:t}).range(t.from,t.to))),!0);return new gy(r,e,my(r))}}function my(t,e=null,n=0){let o=null;return t.between(n,1e9,((t,n,{spec:i})=>{if(!e||i.diagnostic==e)return o=new fy(t,n,i.diagnostic),!1})),o}function vy(t,e){let n=t.startState.doc.lineAt(e.pos);return!(!t.effects.some((t=>t.is(_y)))&&!t.changes.touchesRange(n.from,n.to))}function yy(t,e){return t.field(wy,!1)?e:e.concat(Ei.appendConfig.of(Vy))}const _y=Ei.define(),Oy=Ei.define(),by=Ei.define(),wy=si.define({create:()=>new gy(Ts.none,null,null),update(t,e){if(e.docChanged){let n=t.diagnostics.map(e.changes),o=null;if(t.selected){let i=e.changes.mapPos(t.selected.from,1);o=my(n,t.selected.diagnostic,i)||my(n,null,i)}t=new gy(n,t.panel,o)}for(let n of e.effects)n.is(_y)?t=gy.init(n.value,t.panel,e.state):n.is(Oy)?t=new gy(t.diagnostics,n.value?jy.open:null,t.selected):n.is(by)&&(t=new gy(t.diagnostics,t.panel,n.value));return t},provide:t=>[Zu.from(t,(t=>t.panel)),fc.decorations.from(t,(t=>t.diagnostics))]});const xy=Ts.mark({class:"cm-lintRange cm-lintRange-active"});function Sy(t,e,n){let{diagnostics:o}=t.state.field(wy),i=[],r=2e8,s=0;o.between(e-(n<0?1:0),e+(n>0?1:0),((t,o,{spec:a})=>{e>=t&&e<=o&&(t==o||(e>t||n>0)&&(e({dom:ky(t,i)})}:null}function ky(t,e){return Xg("ul",{class:"cm-tooltip-lint"},e.map((e=>Qy(t,e,!1))))}const Py=t=>{let e=t.state.field(wy,!1);return!(!e||!e.panel)&&(t.dispatch({effects:Oy.of(!1)}),!0)},Cy=[{key:"Mod-Shift-m",run:t=>{let e=t.state.field(wy,!1);e&&e.panel||t.dispatch({effects:yy(t.state,[Oy.of(!0)])});let n=Au(t,jy.open);return n&&n.dom.querySelector(".cm-panel-lint ul").focus(),!0},preventDefault:!0},{key:"F8",run:t=>{let e=t.state.field(wy,!1);if(!e)return!1;let n=t.state.selection.main,o=e.diagnostics.iter(n.to+1);return!(!o.value&&(o=e.diagnostics.iter(0),!o.value||o.from==n.from&&o.to==n.to))&&(t.dispatch({selection:{anchor:o.from,head:o.to},scrollIntoView:!0}),!0)}}],Ty=(null&&ViewPlugin.fromClass(class{constructor(t){this.view=t,this.timeout=-1,this.set=!0;let{delay:e}=t.state.facet(Ty);this.lintTime=Date.now()+e,this.run=this.run.bind(this),this.timeout=setTimeout(this.run,e)}run(){let t=Date.now();if(tPromise.resolve(t(this.view))))).then((e=>{let n=e.reduce(((t,e)=>t.concat(e)));this.view.state.doc==t.doc&&this.view.dispatch(function(t,e){return{effects:yy(t,[_y.of(e)])}}(this.view.state,n))}),(t=>{logException(this.view.state,t)}))}}update(t){let e=t.state.facet(Ty);(t.docChanged||e!=t.startState.facet(Ty)||e.needsRefresh&&e.needsRefresh(t))&&(this.lintTime=Date.now()+e.delay,this.set||(this.set=!0,this.timeout=setTimeout(this.run,e.delay)))}force(){this.set&&(this.lintTime=Date.now(),this.run())}destroy(){clearTimeout(this.timeout)}}),Jo.define({combine:t=>Object.assign({sources:t.map((t=>t.source))},Xi(t.map((t=>t.config)),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null},{needsRefresh:(t,e)=>t?e?n=>t(n)||e(n):t:e}))}));function Ey(t){let e=[];if(t)t:for(let{name:n}of t){for(let t=0;tt.toLowerCase()==o.toLowerCase()))){e.push(o);continue t}}e.push("")}return e}function Qy(t,e,n){var o;let i=n?Ey(e.actions):[];return Xg("li",{class:"cm-diagnostic cm-diagnostic-"+e.severity},Xg("span",{class:"cm-diagnosticText"},e.renderMessage?e.renderMessage():e.message),null===(o=e.actions)||void 0===o?void 0:o.map(((n,o)=>{let r=!1,s=o=>{if(o.preventDefault(),r)return;r=!0;let i=my(t.state.field(wy).diagnostics,e);i&&n.apply(t,i.from,i.to)},{name:a}=n,l=i[o]?a.indexOf(i[o]):-1,c=l<0?a:[a.slice(0,l),Xg("u",a.slice(l,l+1)),a.slice(l+1)];return Xg("button",{type:"button",class:"cm-diagnosticAction",onclick:s,onmousedown:s,"aria-label":` Action: ${a}${l<0?"":` (access key "${i[o]})"`}.`},c)})),e.source&&Xg("div",{class:"cm-diagnosticSource"},e.source))}class Ay extends Ps{constructor(t){super(),this.diagnostic=t}eq(t){return t.diagnostic==this.diagnostic}toDOM(){return Xg("span",{class:"cm-lintPoint cm-lintPoint-"+this.diagnostic.severity})}}class $y{constructor(t,e){this.diagnostic=e,this.id="item_"+Math.floor(4294967295*Math.random()).toString(16),this.dom=Qy(t,e,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}}class jy{constructor(t){this.view=t,this.items=[];this.list=Xg("ul",{tabIndex:0,role:"listbox","aria-label":this.view.state.phrase("Diagnostics"),onkeydown:e=>{if(27==e.keyCode)Py(this.view),this.view.focus();else if(38==e.keyCode||33==e.keyCode)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(40==e.keyCode||34==e.keyCode)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(36==e.keyCode)this.moveSelection(0);else if(35==e.keyCode)this.moveSelection(this.items.length-1);else if(13==e.keyCode)this.view.focus();else{if(!(e.keyCode>=65&&e.keyCode<=90&&this.selectedIndex>=0))return;{let{diagnostic:n}=this.items[this.selectedIndex],o=Ey(n.actions);for(let i=0;i{for(let e=0;ePy(this.view)},"×")),this.update()}get selectedIndex(){let t=this.view.state.field(wy).selected;if(!t)return-1;for(let e=0;e{let a,l=-1;for(let t=n;tn&&(this.items.splice(n,l-n),o=!0)),e&&a.diagnostic==e.diagnostic?a.dom.hasAttribute("aria-selected")||(a.dom.setAttribute("aria-selected","true"),i=a):a.dom.hasAttribute("aria-selected")&&a.dom.removeAttribute("aria-selected"),n++}));n({sel:i.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:({sel:t,panel:e})=>{let n=e.height/this.list.offsetHeight;t.tope.bottom&&(this.list.scrollTop+=(t.bottom-e.bottom)/n)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),o&&this.sync()}sync(){let t=this.list.firstChild;function e(){let e=t;t=e.nextSibling,e.remove()}for(let n of this.items)if(n.dom.parentNode==this.list){for(;t!=n.dom;)e();t=n.dom.nextSibling}else this.list.insertBefore(n.dom,t);for(;t;)e()}moveSelection(t){if(this.selectedIndex<0)return;let e=my(this.view.state.field(wy).diagnostics,this.items[t].diagnostic);e&&this.view.dispatch({selection:{anchor:e.from,head:e.to},scrollIntoView:!0,effects:by.of(e)})}static open(t){return new jy(t)}}function Ry(t,e=`viewBox="0 0 40 40"`){return`url('data:image/svg+xml,${encodeURIComponent(t)}')`}function Zy(t){return Ry(``,`width="6" height="3"`)}const My=fc.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnostic-hint":{borderLeft:"5px solid #66d"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px",cursor:"pointer"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:Zy("#d11")},".cm-lintRange-warning":{backgroundImage:Zy("orange")},".cm-lintRange-info":{backgroundImage:Zy("#999")},".cm-lintRange-hint":{backgroundImage:Zy("#66d")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-lintPoint-hint":{"&:after":{borderBottomColor:"#66d"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}}});const Vy=[wy,fc.decorations.compute([wy],(t=>{let{selected:e,panel:n}=t.field(wy);return e&&n&&e.from!=e.to?Ts.set([xy.range(e.from,e.to)]):Ts.none})),Cu(Sy,{hideOn:vy}),My];const Dy=(()=>[th(),oh,Jc(),xf(),Ad(),Mc(),[Yc,zc],Wi.allowMultipleSelections.of(!0),Wi.transactionFilter.of((t=>{if(!t.docChanged||!t.isUserEvent("input.type")&&!t.isUserEvent("input.complete"))return t;let e=t.startState.languageDataAt("indentOnInput",t.startState.selection.main.head);if(!e.length)return t;let n=t.newDoc,{head:o}=t.newSelection.main,i=n.lineAt(o);if(o>i.from+ad)return t;let r=n.sliceString(i.from,o);if(!e.some((t=>t.test(r))))return t;let{state:s}=t,a=-1,l=[];for(let{head:t}of s.selection.ranges){let e=s.doc.lineAt(t);if(e.from==a)continue;a=e.from;let n=Gp(s,e.from);if(null==n)continue;let o=/^\s*/.exec(e.text)[0],i=Fp(s,n);o!=i&&l.push({from:e.from,to:e.from+o.length,insert:i})}return l.length?[t,{changes:l,sequential:!0}]:t})),Vd(Nd,{fallback:!0}),Gd(),[ny,Hv],hy(),cu(),pu(),ru,rm(),wc.of([...oy,...Wg,...Im,...Wf,...wd,...py,...Cy])])(),Iy=(null&&(highlightSpecialChars(),history(),drawSelection(),syntaxHighlighting(defaultHighlightStyle,{fallback:!0}),keymap.of([...defaultKeymap,...historyKeymap])),"#e5c07b"),Ny="#e06c75",Wy="#56b6c2",Xy="#ffffff",Ly="#abb2bf",Yy="#7d8799",zy="#61afef",qy="#98c379",Uy="#d19a66",By="#c678dd",Fy="#21252b",Gy="#2c313a",Hy="#282c34",Ky="#353a42",Jy="#3E4451",t_="#528bff",e_=fc.theme({"&":{color:Ly,backgroundColor:Hy},".cm-content":{caretColor:t_},".cm-cursor, .cm-dropCursor":{borderLeftColor:t_},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:Jy},".cm-panels":{backgroundColor:Fy,color:Ly},".cm-panels.cm-panels-top":{borderBottom:"2px solid black"},".cm-panels.cm-panels-bottom":{borderTop:"2px solid black"},".cm-searchMatch":{backgroundColor:"#72a1ff59",outline:"1px solid #457dff"},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:"#6199ff2f"},".cm-activeLine":{backgroundColor:"#6699ff0b"},".cm-selectionMatch":{backgroundColor:"#aafe661a"},"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bad0f847"},".cm-gutters":{backgroundColor:Hy,color:Yy,border:"none"},".cm-activeLineGutter":{backgroundColor:Gy},".cm-foldPlaceholder":{backgroundColor:"transparent",border:"none",color:"#ddd"},".cm-tooltip":{border:"none",backgroundColor:Ky},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:Ky,borderBottomColor:Ky},".cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{backgroundColor:Gy,color:Ly}}},{dark:!0}),n_=jd.define([{tag:Cp.keyword,color:By},{tag:[Cp.name,Cp.deleted,Cp.character,Cp.propertyName,Cp.macroName],color:Ny},{tag:[Cp.function(Cp.variableName),Cp.labelName],color:zy},{tag:[Cp.color,Cp.constant(Cp.name),Cp.standard(Cp.name)],color:Uy},{tag:[Cp.definition(Cp.name),Cp.separator],color:Ly},{tag:[Cp.typeName,Cp.className,Cp.number,Cp.changed,Cp.annotation,Cp.modifier,Cp.self,Cp.namespace],color:Iy},{tag:[Cp.operator,Cp.operatorKeyword,Cp.url,Cp.escape,Cp.regexp,Cp.link,Cp.special(Cp.string)],color:Wy},{tag:[Cp.meta,Cp.comment],color:Yy},{tag:Cp.strong,fontWeight:"bold"},{tag:Cp.emphasis,fontStyle:"italic"},{tag:Cp.strikethrough,textDecoration:"line-through"},{tag:Cp.link,color:Yy,textDecoration:"underline"},{tag:Cp.heading,fontWeight:"bold",color:Ny},{tag:[Cp.atom,Cp.bool,Cp.special(Cp.variableName)],color:Uy},{tag:[Cp.processingInstruction,Cp.string,Cp.inserted],color:qy},{tag:Cp.invalid,color:Xy}]);class o_{constructor(t,e,n,o,i,r,s,a,l,c=0,u){this.p=t,this.stack=e,this.state=n,this.reducePos=o,this.pos=i,this.score=r,this.buffer=s,this.bufferBase=a,this.curContext=l,this.lookAhead=c,this.parent=u}toString(){return`[${this.stack.filter(((t,e)=>e%3==0)).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(t,e,n=0){let o=t.parser.context;return new o_(t,[],e,n,n,0,[],0,o?new i_(o,o.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(t,e){this.stack.push(this.state,e,this.bufferBase+this.buffer.length),this.state=t}reduce(t){var e;let n=t>>19,o=65535&t,{parser:i}=this.p,r=i.dynamicPrecedence(o);if(r&&(this.score+=r),0==n)return this.pushState(i.getGoto(this.state,o,!0),this.reducePos),o=2e3&&!(null===(e=this.p.parser.nodeSet.types[o])||void 0===e?void 0:e.isAnonymous)&&(a==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=l):this.p.lastBigReductionSizes;)this.stack.pop();this.reduceContext(o,a)}storeNode(t,e,n,o=4,i=!1){if(0==t&&(!this.stack.length||this.stack[this.stack.length-1]0&&0==t.buffer[o-4]&&t.buffer[o-1]>-1){if(e==n)return;if(t.buffer[o-2]>=e)return void(t.buffer[o-2]=n)}}if(i&&this.pos!=n){let i=this.buffer.length;if(i>0&&0!=this.buffer[i-4])for(;i>0&&this.buffer[i-2]>n;)this.buffer[i]=this.buffer[i-4],this.buffer[i+1]=this.buffer[i-3],this.buffer[i+2]=this.buffer[i-2],this.buffer[i+3]=this.buffer[i-1],i-=4,o>4&&(o-=4);this.buffer[i]=t,this.buffer[i+1]=e,this.buffer[i+2]=n,this.buffer[i+3]=o}else this.buffer.push(t,e,n,o)}shift(t,e,n,o){if(131072&t)this.pushState(65535&t,this.pos);else if(0==(262144&t)){let i=t,{parser:r}=this.p;(o>this.pos||e<=r.maxNode)&&(this.pos=o,r.stateFlag(i,1)||(this.reducePos=o)),this.pushState(i,n),this.shiftContext(e,n),e<=r.maxNode&&this.buffer.push(e,n,o,4)}else this.pos=o,this.shiftContext(e,n),e<=this.p.parser.maxNode&&this.buffer.push(e,n,o,4)}apply(t,e,n,o){65536&t?this.reduce(t):this.shift(t,e,n,o)}useNode(t,e){let n=this.p.reused.length-1;(n<0||this.p.reused[n]!=t)&&(this.p.reused.push(t),n++);let o=this.pos;this.reducePos=this.pos=o+t.length,this.pushState(e,o),this.buffer.push(n,o,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,t,this,this.p.stream.reset(this.pos-t.length)))}split(){let t=this,e=t.buffer.length;for(;e>0&&t.buffer[e-2]>t.reducePos;)e-=4;let n=t.buffer.slice(e),o=t.bufferBase+e;for(;t&&o==t.bufferBase;)t=t.parent;return new o_(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,n,o,this.curContext,this.lookAhead,t)}recoverByDelete(t,e){let n=t<=this.p.parser.maxNode;n&&this.storeNode(t,this.pos,e,4),this.storeNode(0,this.pos,e,n?8:4),this.pos=this.reducePos=e,this.score-=190}canShift(t){for(let e=new r_(this);;){let n=this.p.parser.stateSlot(e.state,4)||this.p.parser.hasAction(e.state,t);if(0==n)return!1;if(0==(65536&n))return!0;e.reduce(n)}}recoverByInsert(t){if(this.stack.length>=300)return[];let e=this.p.parser.nextStates(this.state);if(e.length>4<<1||this.stack.length>=120){let n=[];for(let o,i=0;i1&e&&t==o))||n.push(e[t],o)}e=n}let n=[];for(let t=0;t>19,o=65535&e,i=this.stack.length-3*n;if(i<0||t.getGoto(this.stack[i],o,!1)<0){let t=this.findForcedReduction();if(null==t)return!1;e=t}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(e),!0}findForcedReduction(){let{parser:t}=this.p,e=[],n=(o,i)=>{if(!e.includes(o))return e.push(o),t.allActions(o,(e=>{if(e&(262144|131072));else if(65536&e){let n=(e>>19)-i;if(n>1){let o=65535&e,i=this.stack.length-3*n;if(i>=0&&t.getGoto(this.stack[i],o,!1)>=0)return n<<19|65536|o}}else{let t=n(e,i+1);if(null!=t)return t}}))};return n(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(3!=this.stack.length)return!1;let{parser:t}=this.p;return 65535==t.data[t.stateSlot(this.state,1)]&&!t.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(t){if(this.state!=t.state||this.stack.length!=t.stack.length)return!1;for(let e=0;ethis.lookAhead&&(this.emitLookAhead(),this.lookAhead=t)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class i_{constructor(t,e){this.tracker=t,this.context=e,this.hash=t.strict?t.hash(e):0}}class r_{constructor(t){this.start=t,this.state=t.state,this.stack=t.stack,this.base=this.stack.length}reduce(t){let e=65535&t,n=t>>19;0==n?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=3*(n-1);let o=this.start.p.parser.getGoto(this.stack[this.base-3],e,!0);this.state=o}}class s_{constructor(t,e,n){this.stack=t,this.pos=e,this.index=n,this.buffer=t.buffer,0==this.index&&this.maybeNext()}static create(t,e=t.bufferBase+t.buffer.length){return new s_(t,e,e-t.bufferBase)}maybeNext(){let t=this.stack.parent;null!=t&&(this.index=this.stack.bufferBase-t.bufferBase,this.stack=t,this.buffer=t.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,0==this.index&&this.maybeNext()}fork(){return new s_(this.stack,this.pos,this.index)}}function a_(t,e=Uint16Array){if("string"!=typeof t)return t;let n=null;for(let o=0,i=0;o=92&&e--,e>=34&&e--;let i=e-32;if(i>=46&&(i-=46,n=!0),r+=i,n)break;r*=46}n?n[i++]=r:n=new e(r)}return n}class l_{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const c_=new l_;class u_{constructor(t,e){this.input=t,this.ranges=e,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=c_,this.rangeIndex=0,this.pos=this.chunkPos=e[0].from,this.range=e[0],this.end=e[e.length-1].to,this.readNext()}resolveOffset(t,e){let n=this.range,o=this.rangeIndex,i=this.pos+t;for(;in.to:i>=n.to;){if(o==this.ranges.length-1)return null;let t=this.ranges[++o];i+=t.from-n.to,n=t}return i}clipPos(t){if(t>=this.range.from&&tt)return Math.max(t,e.from);return this.end}peek(t){let e,n,o=this.chunkOff+t;if(o>=0&&o=this.chunk2Pos&&eo.to&&(this.chunk2=this.chunk2.slice(0,o.to-e)),n=this.chunk2.charCodeAt(0)}}return e>=this.token.lookAhead&&(this.token.lookAhead=e+1),n}acceptToken(t,e=0){let n=e?this.resolveOffset(e,-1):this.pos;if(null==n||n=this.chunk2Pos&&this.posthis.range.to?t.slice(0,this.range.to-this.pos):t,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(t=1){for(this.chunkOff+=t;this.pos+t>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();t-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=t,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(t,e){if(e?(this.token=e,e.start=t,e.lookAhead=t+1,e.value=e.extended=-1):this.token=c_,this.pos!=t){if(this.pos=t,t==this.end)return this.setDone(),this;for(;t=this.range.to;)this.range=this.ranges[++this.rangeIndex];t>=this.chunkPos&&t=this.chunkPos&&e<=this.chunkPos+this.chunk.length)return this.chunk.slice(t-this.chunkPos,e-this.chunkPos);if(t>=this.chunk2Pos&&e<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(t-this.chunk2Pos,e-this.chunk2Pos);if(t>=this.range.from&&e<=this.range.to)return this.input.read(t,e);let n="";for(let o of this.ranges){if(o.from>=e)break;o.to>t&&(n+=this.input.read(Math.max(o.from,t),Math.min(o.to,e)))}return n}}class h_{constructor(t,e){this.data=t,this.id=e}token(t,e){let{parser:n}=e.p;f_(this.data,t,e,this.id,n.data,n.tokenPrecTable)}}h_.prototype.contextual=h_.prototype.fallback=h_.prototype.extend=!1;class p_{constructor(t,e,n){this.precTable=e,this.elseToken=n,this.data="string"==typeof t?a_(t):t}token(t,e){let n=t.pos,o=0;for(;;){let n=t.next<0,i=t.resolveOffset(1,1);if(f_(this.data,t,e,0,this.data,this.precTable),t.token.value>-1)break;if(null==this.elseToken)return;if(n||o++,null==i)break;t.reset(i,t.token)}o&&(t.reset(n,t.token),t.acceptToken(this.elseToken,o))}}p_.prototype.contextual=h_.prototype.fallback=h_.prototype.extend=!1;class d_{constructor(t,e={}){this.token=t,this.contextual=!!e.contextual,this.fallback=!!e.fallback,this.extend=!!e.extend}}function f_(t,e,n,o,i,r){let s=0,a=1<0){let n=t[o];if(l.allows(n)&&(-1==e.token.value||e.token.value==n||m_(n,e.token.value,i,r))){e.acceptToken(n);break}}let o=e.next,c=0,u=t[s+2];if(!(e.next<0&&u>c&&65535==t[n+3*u-3])){for(;c>1,r=n+i+(i<<1),a=t[r],l=t[r+1]||65536;if(o=l)){s=t[r+2],e.advance();continue t}c=i+1}}break}s=t[n+3*u-1]}}function g_(t,e,n){for(let o,i=e;65535!=(o=t[i]);i++)if(o==n)return i-e;return-1}function m_(t,e,n,o){let i=g_(n,o,e);return i<0||g_(n,o,t)e)&&!o.type.isError)return n<0?Math.max(0,Math.min(o.to-1,e-25)):Math.min(t.length,Math.max(o.from+1,e+25));if(n<0?o.prevSibling():o.nextSibling())break;if(!o.parent())return n<0?0:t.length}}class O_{constructor(t,e){this.fragments=t,this.nodeSet=e,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let t=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(t){for(this.safeFrom=t.openStart?__(t.tree,t.from+t.offset,1)-t.offset:t.from,this.safeTo=t.openEnd?__(t.tree,t.to+t.offset,-1)-t.offset:t.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(t.tree),this.start.push(-t.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(t){if(tt)return this.nextStart=r,null;if(i instanceof bh){if(r==t){if(r=Math.max(this.safeFrom,t)&&(this.trees.push(i),this.start.push(r),this.index.push(0))}else this.index[e]++,this.nextStart=r+i.length}}}class b_{constructor(t,e){this.stream=e,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=t.tokenizers.map((t=>new l_))}getActions(t){let e=0,n=null,{parser:o}=t.p,{tokenizers:i}=o,r=o.stateSlot(t.state,3),s=t.curContext?t.curContext.hash:0,a=0;for(let o=0;oc.end+25&&(a=Math.max(c.lookAhead,a)),0!=c.value)){let o=e;if(c.extended>-1&&(e=this.addActions(t,c.extended,c.end,e)),e=this.addActions(t,c.value,c.end,e),!l.extend&&(n=c,e>o))break}}for(;this.actions.length>e;)this.actions.pop();return a&&t.setLookAhead(a),n||t.pos!=this.stream.end||(n=new l_,n.value=t.p.parser.eofTerm,n.start=n.end=t.pos,e=this.addActions(t,n.value,n.end,e)),this.mainToken=n,this.actions}getMainToken(t){if(this.mainToken)return this.mainToken;let e=new l_,{pos:n,p:o}=t;return e.start=n,e.end=Math.min(n+1,o.stream.end),e.value=n==o.stream.end?o.parser.eofTerm:0,e}updateCachedToken(t,e,n){let o=this.stream.clipPos(n.pos);if(e.token(this.stream.reset(o,t),n),t.value>-1){let{parser:e}=n.p;for(let o=0;o=0&&n.p.parser.dialect.allows(i>>1)){0==(1&i)?t.value=i>>1:t.extended=i>>1;break}}}else t.value=0,t.end=this.stream.clipPos(o+1)}putAction(t,e,n,o){for(let e=0;e4*t.bufferLength?new O_(n,t.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let t,e,n=this.stacks,o=this.minStackPos,i=this.stacks=[];if(this.bigReductionCount>300&&1==n.length){let[t]=n;for(;t.forceReduce()&&t.stack.length&&t.stack[t.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let r=0;ro)i.push(s);else{if(this.advanceStack(s,i,n))continue;{t||(t=[],e=[]),t.push(s);let n=this.tokens.getMainToken(s);e.push(n.value,n.end)}}break}}if(!i.length){let e=t&&function(t){let e=null;for(let n of t){let t=n.p.stoppedAt;(n.pos==n.p.stream.end||null!=t&&n.pos>t)&&n.p.parser.stateFlag(n.state,2)&&(!e||e.scorethis.stoppedAt?t[0]:this.runRecovery(t,e,i);if(n)return v_&&console.log("Force-finish "+this.stackID(n)),this.stackToTree(n.forceAll())}if(this.recovering){let t=1==this.recovering?1:3*this.recovering;if(i.length>t)for(i.sort(((t,e)=>e.score-t.score));i.length>t;)i.pop();i.some((t=>t.reducePos>o))&&this.recovering--}else if(i.length>1){t:for(let t=0;t500&&o.buffer.length>500){if(!((e.score-o.score||e.buffer.length-o.buffer.length)>0)){i.splice(t--,1);continue t}i.splice(n--,1)}}}i.length>12&&i.splice(12,i.length-12)}this.minStackPos=i[0].pos;for(let t=1;t ":"";if(null!=this.stoppedAt&&o>this.stoppedAt)return t.forceReduce()?t:null;if(this.fragments){let e=t.curContext&&t.curContext.tracker.strict,n=e?t.curContext.hash:0;for(let s=this.fragments.nodeAt(o);s;){let o=this.parser.nodeSet.types[s.type.id]==s.type?i.getGoto(t.state,s.type.id):-1;if(o>-1&&s.length&&(!e||(s.prop(dh.contextHash)||0)==n))return t.useNode(s,o),v_&&console.log(r+this.stackID(t)+` (via reuse of ${i.getName(s.type.id)})`),!0;if(!(s instanceof bh)||0==s.children.length||s.positions[0]>0)break;let a=s.children[0];if(!(a instanceof bh&&0==s.positions[0]))break;s=a}}let s=i.stateSlot(t.state,4);if(s>0)return t.reduce(s),v_&&console.log(r+this.stackID(t)+` (via always-reduce ${i.getName(65535&s)})`),!0;if(t.stack.length>=8400)for(;t.stack.length>6e3&&t.forceReduce(););let a=this.tokens.getActions(t);for(let s=0;so?e.push(p):n.push(p)}return!1}advanceFully(t,e){let n=t.pos;for(;;){if(!this.advanceStack(t,null,null))return!1;if(t.pos>n)return x_(t,e),!0}}runRecovery(t,e,n){let o=null,i=!1;for(let r=0;r ":"";if(s.deadEnd){if(i)continue;if(i=!0,s.restart(),v_&&console.log(c+this.stackID(s)+" (restarted)"),this.advanceFully(s,n))continue}let u=s.split(),h=c;for(let t=0;u.forceReduce()&&t<10;t++){if(v_&&console.log(h+this.stackID(u)+" (via force-reduce)"),this.advanceFully(u,n))break;v_&&(h=this.stackID(u)+" -> ")}for(let t of s.recoverByInsert(a))v_&&console.log(c+this.stackID(t)+" (via recover-insert)"),this.advanceFully(t,n);this.stream.end>s.pos?(l==s.pos&&(l++,a=0),s.recoverByDelete(a,l),v_&&console.log(c+this.stackID(s)+` (via recover-delete ${this.parser.getName(a)})`),x_(s,n)):(!o||o.scoret;class P_{constructor(t){this.start=t.start,this.shift=t.shift||k_,this.reduce=t.reduce||k_,this.reuse=t.reuse||k_,this.hash=t.hash||(()=>0),this.strict=!1!==t.strict}}class C_ extends Wh{constructor(t){if(super(),this.wrappers=[],14!=t.version)throw new RangeError(`Parser version (${t.version}) doesn't match runtime version (${14})`);let e=t.nodeNames.split(" ");this.minRepeatTerm=e.length;for(let n=0;nt.topRules[e][1])),o=[];for(let t=0;t=0)i(o,t,e[n++]);else{let r=e[n+-o];for(let s=-o;s>0;s--)i(e[n++],t,r);n++}}}this.nodeSet=new vh(e.map(((e,i)=>mh.define({name:i>=this.minRepeatTerm?void 0:e,id:i,props:o[i],top:n.indexOf(i)>-1,error:0==i,skipped:t.skippedNodes&&t.skippedNodes.indexOf(i)>-1})))),t.propSources&&(this.nodeSet=this.nodeSet.extend(...t.propSources)),this.strict=!1,this.bufferLength=uh;let r=a_(t.tokenData);this.context=t.context,this.specializerSpecs=t.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let t=0;t"number"==typeof t?new h_(r,t):t)),this.topRules=t.topRules,this.dialects=t.dialects||{},this.dynamicPrecedences=t.dynamicPrecedences||null,this.tokenPrecTable=t.tokenPrec,this.termNames=t.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(t,e,n){let o=new w_(this,t,e,n);for(let i of this.wrappers)o=i(o,t,e,n);return o}getGoto(t,e,n=!1){let o=this.goto;if(e>=o[0])return-1;for(let i=o[e+1];;){let e=o[i++],r=1&e,s=o[i++];if(r&&n)return s;for(let n=i+(e>>1);i0}validAction(t,e){return!!this.allActions(t,(t=>t==e||null))}allActions(t,e){let n=this.stateSlot(t,4),o=n?e(n):void 0;for(let n=this.stateSlot(t,1);null==o;n+=3){if(65535==this.data[n]){if(1!=this.data[n+1])break;n=T_(this.data,n+2)}o=e(T_(this.data,n+1))}return o}nextStates(t){let e=[];for(let n=this.stateSlot(t,1);;n+=3){if(65535==this.data[n]){if(1!=this.data[n+1])break;n=T_(this.data,n+2)}if(0==(this.data[n+2]&65536>>16)){let t=this.data[n+1];e.some(((e,n)=>1&n&&e==t))||e.push(this.data[n],t)}}return e}configure(t){let e=Object.assign(Object.create(C_.prototype),this);if(t.props&&(e.nodeSet=this.nodeSet.extend(...t.props)),t.top){let n=this.topRules[t.top];if(!n)throw new RangeError(`Invalid top rule name ${t.top}`);e.top=n}return t.tokenizers&&(e.tokenizers=this.tokenizers.map((e=>{let n=t.tokenizers.find((t=>t.from==e));return n?n.to:e}))),t.specializers&&(e.specializers=this.specializers.slice(),e.specializerSpecs=this.specializerSpecs.map(((n,o)=>{let i=t.specializers.find((t=>t.from==n.external));if(!i)return n;let r=Object.assign(Object.assign({},n),{external:i.to});return e.specializers[o]=E_(r),r}))),t.contextTracker&&(e.context=t.contextTracker),t.dialect&&(e.dialect=this.parseDialect(t.dialect)),null!=t.strict&&(e.strict=t.strict),t.wrap&&(e.wrappers=e.wrappers.concat(t.wrap)),null!=t.bufferLength&&(e.bufferLength=t.bufferLength),e}hasWrappers(){return this.wrappers.length>0}getName(t){return this.termNames?this.termNames[t]:String(t<=this.maxNode&&this.nodeSet.types[t].name||t)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(t){let e=this.dynamicPrecedences;return null==e?0:e[t]||0}parseDialect(t){let e=Object.keys(this.dialects),n=e.map((()=>!1));if(t)for(let o of t.split(" ")){let t=e.indexOf(o);t>=0&&(n[t]=!0)}let o=null;for(let t=0;tt.external(n,o)<<1|e}return t.get}const Q_=96,A_=1,$_=97,j_=98,R_=2,Z_=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],M_=58,V_=40,D_=95,I_=91,N_=45,W_=46,X_=35,L_=37,Y_=38,z_=92,q_=10;function U_(t){return t>=65&&t<=90||t>=97&&t<=122||t>=161}const B_=new d_(((t,e)=>{for(let o=!1,i=0,r=0;;r++){let{next:s}=t;if(U_(s)||s==N_||s==D_||o&&((n=s)>=48&&n<=57))!o&&(s!=N_||r>0)&&(o=!0),i===r&&s==N_&&i++,t.advance();else{if(s!=z_||t.peek(1)==q_){o&&t.acceptToken(s==V_?$_:2==i&&e.canShift(R_)?R_:j_);break}t.advance(),t.next>-1&&t.advance(),o=!0}}var n})),F_=new d_((t=>{if(Z_.includes(t.peek(-1))){let{next:e}=t;(U_(e)||e==D_||e==X_||e==W_||e==I_||e==M_||e==N_||e==Y_)&&t.acceptToken(Q_)}})),G_=new d_((t=>{if(!Z_.includes(t.peek(-1))){let{next:e}=t;if(e==L_&&(t.advance(),t.acceptToken(A_)),U_(e)){do{t.advance()}while(U_(t.next));t.acceptToken(A_)}}})),H_=sp({"AtKeyword import charset namespace keyframes media supports":Cp.definitionKeyword,"from to selector":Cp.keyword,NamespaceName:Cp.namespace,KeyframeName:Cp.labelName,KeyframeRangeName:Cp.operatorKeyword,TagName:Cp.tagName,ClassName:Cp.className,PseudoClassName:Cp.constant(Cp.className),IdName:Cp.labelName,"FeatureName PropertyName":Cp.propertyName,AttributeName:Cp.attributeName,NumberLiteral:Cp.number,KeywordQuery:Cp.keyword,UnaryQueryOp:Cp.operatorKeyword,"CallTag ValueName":Cp.atom,VariableName:Cp.variableName,Callee:Cp.operatorKeyword,Unit:Cp.unit,"UniversalSelector NestingSelector":Cp.definitionOperator,MatchOp:Cp.compareOperator,"ChildOp SiblingOp, LogicOp":Cp.logicOperator,BinOp:Cp.arithmeticOperator,Important:Cp.modifier,Comment:Cp.blockComment,ColorLiteral:Cp.color,"ParenthesizedContent StringLiteral":Cp.string,":":Cp.punctuation,"PseudoOp #":Cp.derefOperator,"; ,":Cp.separator,"( )":Cp.paren,"[ ]":Cp.squareBracket,"{ }":Cp.brace}),K_={__proto__:null,lang:32,"nth-child":32,"nth-last-child":32,"nth-of-type":32,"nth-last-of-type":32,dir:32,"host-context":32,url:60,"url-prefix":60,domain:60,regexp:60,selector:134},J_={__proto__:null,"@import":114,"@media":138,"@charset":142,"@namespace":146,"@keyframes":152,"@supports":164},tO={__proto__:null,not:128,only:128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]||-1}],tokenPrec:1169});let nO=null;function oO(){if(!nO&&"object"==typeof document&&document.body){let{style:t}=document.body,e=[],n=new Set;for(let o in t)"cssText"!=o&&"cssFloat"!=o&&"string"==typeof t[o]&&(/[A-Z]/.test(o)&&(o=o.replace(/[A-Z]/g,(t=>"-"+t.toLowerCase()))),n.has(o)||(e.push(o),n.add(o)));nO=e.sort().map((t=>({type:"property",label:t})))}return nO||[]}const iO=["active","after","any-link","autofill","backdrop","before","checked","cue","default","defined","disabled","empty","enabled","file-selector-button","first","first-child","first-letter","first-line","first-of-type","focus","focus-visible","focus-within","fullscreen","has","host","host-context","hover","in-range","indeterminate","invalid","is","lang","last-child","last-of-type","left","link","marker","modal","not","nth-child","nth-last-child","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","part","placeholder","placeholder-shown","read-only","read-write","required","right","root","scope","selection","slotted","target","target-text","valid","visited","where"].map((t=>({type:"class",label:t}))),rO=["above","absolute","activeborder","additive","activecaption","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","antialiased","appworkspace","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic-abegede-gez","ethiopic-halehame-aa-er","ethiopic-halehame-gez","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","graytext","grid","groove","hand","hard-light","help","hidden","hide","higher","highlight","highlighttext","horizontal","hsl","hsla","hue","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","justify","keep-all","landscape","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-hexadecimal","lower-latin","lower-norwegian","lowercase","ltr","luminosity","manipulation","match","matrix","matrix3d","medium","menu","menutext","message-box","middle","min-intrinsic","mix","monospace","move","multiple","multiple_mask_images","multiply","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","opacity","open-quote","optimizeLegibility","optimizeSpeed","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","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","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","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","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","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","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","text","text-bottom","text-top","textarea","textfield","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","to","top","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-latin","uppercase","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"].map((t=>({type:"keyword",label:t}))).concat(["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","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","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","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","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","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"].map((t=>({type:"constant",label:t})))),sO=["a","abbr","address","article","aside","b","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","dd","del","details","dfn","dialog","div","dl","dt","em","figcaption","figure","footer","form","header","hgroup","h1","h2","h3","h4","h5","h6","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","meter","nav","ol","output","p","pre","ruby","section","select","small","source","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","tr","u","ul"].map((t=>({type:"type",label:t}))),aO=/^(\w[\w-]*|-\w[\w-]*|)$/,lO=/^-(-[\w-]*)?$/;const cO=new Ih,uO=["Declaration"];function hO(t){for(let e=t;;){if(e.type.isTop)return e;if(!(e=e.parent))return t}}function pO(t,e,n){if(e.to-e.from>4096){let o=cO.get(e);if(o)return o;let i=[],r=new Set,s=e.cursor(Oh.IncludeAnonymous);if(s.firstChild())do{for(let e of pO(t,s.node,n))r.has(e.label)||(r.add(e.label),i.push(e))}while(s.nextSibling());return cO.set(e,i),i}{let o=[],i=new Set;return e.cursor().iterate((e=>{var r;if(n(e)&&e.matchContext(uO)&&":"==(null===(r=e.node.nextSibling)||void 0===r?void 0:r.name)){let n=t.sliceString(e.from,e.to);i.has(n)||(i.add(n),o.push({label:n,type:"variable"}))}})),o}}const dO=t=>e=>{let{state:n,pos:o}=e,i=Zp(n).resolveInner(o,-1),r=i.type.isError&&i.from==i.to-1&&"-"==n.doc.sliceString(i.from,i.to);if("PropertyName"==i.name||(r||"TagName"==i.name)&&/^(Block|Styles)$/.test(i.resolve(i.to).name))return{from:i.from,options:oO(),validFor:aO};if("ValueName"==i.name)return{from:i.from,options:rO,validFor:aO};if("PseudoClassName"==i.name)return{from:i.from,options:iO,validFor:aO};if(t(i)||(e.explicit||r)&&function(t,e){var n;if(("("==t.name||t.type.isError)&&(t=t.parent||t),"ArgList"!=t.name)return!1;let o=null===(n=t.parent)||void 0===n?void 0:n.firstChild;return"Callee"==(null==o?void 0:o.name)&&"var"==e.sliceString(o.from,o.to)}(i,n.doc))return{from:t(i)||r?i.from:o,options:pO(n.doc,hO(i),t),validFor:lO};if("TagName"==i.name){for(let{parent:t}=i;t;t=t.parent)if("Block"==t.name)return{from:i.from,options:oO(),validFor:aO};return{from:i.from,options:sO,validFor:aO}}if(!e.explicit)return null;let s=i.resolve(o),a=s.childBefore(o);return a&&":"==a.name&&"PseudoClassSelector"==s.name?{from:o,options:iO,validFor:aO}:a&&":"==a.name&&"Declaration"==s.name||"ArgList"==s.name?{from:o,options:rO,validFor:aO}:"Block"==s.name||"Styles"==s.name?{from:o,options:oO(),validFor:aO}:null},fO=dO((t=>"VariableName"==t.name)),gO=Rp.define({name:"css",parser:eO.configure({props:[Kp.add({Declaration:sd()}),cd.add({"Block KeyframeList":ud})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"}},indentOnInput:/^\s*\}$/,wordChars:"-"}});function mO(){return new zp(gO,gO.data.of({autocomplete:fO}))}const vO=4,yO=5,_O=6,OO=7,bO=8,wO=9,xO=10,SO=11,kO=12,PO=13,CO=57,TO=14,EO=58,QO=20,AO=22,$O=23,jO=24,RO=26,ZO=27,MO=28,VO=31,DO=34,IO=36,NO=37,WO=0,XO=1,LO={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},YO={dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},zO={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}};function qO(t){return 9==t||10==t||13==t||32==t}let UO=null,BO=null,FO=0;function GO(t,e){let n=t.pos+e;if(FO==n&&BO==t)return UO;let o=t.peek(e);for(;qO(o);)o=t.peek(++e);let i="";for(;45==(r=o)||46==r||58==r||r>=65&&r<=90||95==r||r>=97&&r<=122||r>=161;)i+=String.fromCharCode(o),o=t.peek(++e);var r;return BO=t,FO=n,UO=i?i.toLowerCase():o==tb||o==eb?void 0:null}const HO=60,KO=62,JO=47,tb=63,eb=33,nb=45;function ob(t,e){this.name=t,this.parent=e,this.hash=e?e.hash:0;for(let e=0;eib.indexOf(e)>-1?new ob(GO(o,1)||"",t):t,reduce:(t,e)=>e==QO&&t?t.parent:t,reuse(t,e,n,o){let i=e.type.id;return i==_O||i==IO?new ob(GO(o,1)||"",t):t},hash:t=>t?t.hash:0,strict:!1}),sb=new d_(((t,e)=>{if(t.next!=HO)return void(t.next<0&&e.context&&t.acceptToken(CO));t.advance();let n=t.next==JO;n&&t.advance();let o=GO(t,0);if(void 0===o)return;if(!o)return t.acceptToken(n?TO:_O);let i=e.context?e.context.name:null;if(n){if(o==i)return t.acceptToken(SO);if(i&&YO[i])return t.acceptToken(CO,-2);if(e.dialectEnabled(WO))return t.acceptToken(kO);for(let t=e.context;t;t=t.parent)if(t.name==o)return;t.acceptToken(PO)}else{if("script"==o)return t.acceptToken(OO);if("style"==o)return t.acceptToken(bO);if("textarea"==o)return t.acceptToken(wO);if(LO.hasOwnProperty(o))return t.acceptToken(xO);i&&zO[i]&&zO[i][o]?t.acceptToken(CO,-1):t.acceptToken(_O)}}),{contextual:!0}),ab=new d_((t=>{for(let e=0,n=0;;n++){if(t.next<0){n&&t.acceptToken(EO);break}if(t.next==nb)e++;else{if(t.next==KO&&e>=2){n>=3&&t.acceptToken(EO,-2);break}e=0}t.advance()}}));const lb=new d_(((t,e)=>{if(t.next==JO&&t.peek(1)==KO){let n=e.dialectEnabled(XO)||function(t){for(;t;t=t.parent)if("svg"==t.name||"math"==t.name)return!0;return!1}(e.context);t.acceptToken(n?yO:vO,2)}else t.next==KO&&t.acceptToken(vO,1)}));function cb(t,e,n){let o=2+t.length;return new d_((i=>{for(let r=0,s=0,a=0;;a++){if(i.next<0){a&&i.acceptToken(e);break}if(0==r&&i.next==HO||1==r&&i.next==JO||r>=2&&rs?i.acceptToken(e,-s):i.acceptToken(n,-(s-2));break}if((10==i.next||13==i.next)&&a){i.acceptToken(e,1);break}r=s=0}else s++;i.advance()}}))}const ub=cb("script",54,1),hb=cb("style",55,2),pb=cb("textarea",56,3),db=sp({"Text RawText":Cp.content,"StartTag StartCloseTag SelfClosingEndTag EndTag":Cp.angleBracket,TagName:Cp.tagName,"MismatchedCloseTag/TagName":[Cp.tagName,Cp.invalid],AttributeName:Cp.attributeName,"AttributeValue UnquotedAttributeValue":Cp.attributeValue,Is:Cp.definitionOperator,"EntityReference CharacterReference":Cp.character,Comment:Cp.blockComment,ProcessingInst:Cp.processingInstruction,DoctypeDecl:Cp.documentMeta}),fb=C_.deserialize({version:14,states:",xOVO!rOOO!WQ#tO'#CqO!]Q#tO'#CzO!bQ#tO'#C}O!gQ#tO'#DQO!lQ#tO'#DSO!qOaO'#CpO!|ObO'#CpO#XOdO'#CpO$eO!rO'#CpOOO`'#Cp'#CpO$lO$fO'#DTO$tQ#tO'#DVO$yQ#tO'#DWOOO`'#Dk'#DkOOO`'#DY'#DYQVO!rOOO%OQ&rO,59]O%WQ&rO,59fO%`Q&rO,59iO%hQ&rO,59lO%sQ&rO,59nOOOa'#D^'#D^O%{OaO'#CxO&WOaO,59[O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PlX!ZlX~OP!WO!Z!XO~O!XiOQoX!ZoX~OQ!ZO!Z!XO~O!YlORrX!ZrX~OR!]O!Z!XO~O!Z!XO~P#dOf!_O~O![sO!e!aO~OS!bO~OS!cO~Oi!dOSgXhgXTgX~OS!fOhyO~OS!gOhyO~OS!hOhyO~OS!iOT!jOhyO~OS!jOhyO~Of!kO~Of!lO~Of!mO~OS!nO~Ok!qO!`!oO!b!pO~OS!rO~OS!sO~OS!tO~Oa!uOb!uOc!uO!`!wO!a!uO~Oa!xOb!xOc!xO!b!wO!c!xO~Oa!uOb!uOc!uO!`!{O!a!uO~Oa!xOb!xOc!xO!b!{O!c!xO~OT~bac!dx{!d~",goto:"%p!`PPPPPPPPPPPPPPPPPPPP!a!gP!mPP!yP!|#P#S#Y#]#`#f#i#l#r#x!aP!a!aP$O$U$l$r$x%O%U%[%bPPPPPPPP%hX^OX`pXUOX`pezabcde{}!P!R!UR!q!dRhUR!XhXVOX`pRkVR!XkXWOX`pRnWR!XnXXOX`pQrXR!XpXYOX`pQ`ORx`Q{aQ}bQ!PcQ!RdQ!UeZ!e{}!P!R!UQ!v!oR!z!vQ!y!pR!|!yQgUR!VgQjVR!YjQmWR![mQpXR!^pQtZR!`tS_O`ToXp",nodeNames:"⚠ StartCloseTag StartCloseTag StartCloseTag EndTag SelfClosingEndTag StartTag StartTag StartTag StartTag StartTag StartCloseTag StartCloseTag StartCloseTag IncompleteCloseTag Document Text EntityReference CharacterReference InvalidEntity Element OpenTag TagName Attribute AttributeName Is AttributeValue UnquotedAttributeValue ScriptText CloseTag OpenTag StyleText CloseTag OpenTag TextareaText CloseTag OpenTag CloseTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag CloseTag DoctypeDecl",maxTerm:67,context:rb,nodeProps:[["closedBy",-10,1,2,3,7,8,9,10,11,12,13,"EndTag",6,"EndTag SelfClosingEndTag",-4,21,30,33,36,"CloseTag"],["openedBy",4,"StartTag StartCloseTag",5,"StartTag",-4,29,32,35,37,"OpenTag"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ksv!4tvw!6Vwx!8]x!a!4t!a!b!:]!b;'S!4t;'S;=`!;r<%lO!4tq!5pV!cpOv!5kvx!6Vx!a!5k!a!b!7W!b;'S!5k;'S;=`!8V<%lO!5kP!6YTO!a!6V!a!b!6i!b;'S!6V;'S;=`!7Q<%lO!6VP!6lTO!`!6V!`!a!6{!a;'S!6V;'S;=`!7Q<%lO!6VP!7QOxPP!7TP;=`<%l!6Vq!7]V!cpOv!5kvx!6Vx!`!5k!`!a!7r!a;'S!5k;'S;=`!8V<%lO!5kq!7yS!cpxPOv(Vx;'S(V;'S;=`(h<%lO(Vq!8YP;=`<%l!5ka!8bX!a`Or!8]rs!6Vsv!8]vw!6Vw!a!8]!a!b!8}!b;'S!8];'S;=`!:V<%lO!8]a!9SX!a`Or!8]rs!6Vsv!8]vw!6Vw!`!8]!`!a!9o!a;'S!8];'S;=`!:V<%lO!8]a!9vT!a`xPOr)esv)ew;'S)e;'S;=`)y<%lO)ea!:YP;=`<%l!8]!R!:dY!a`!cpOr!4trs!5ksv!4tvw!6Vwx!8]x!`!4t!`!a!;S!a;'S!4t;'S;=`!;r<%lO!4t!R!;]V!a`!cpxPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!;uP;=`<%l!4t!V!{let a=t.type.id;if(a==MO)return vb(t,e,n);if(a==VO)return vb(t,e,o);if(a==DO)return vb(t,e,i);if(a==QO&&r.length){let n,o=t.node,i=o.firstChild,s=i&&mb(i,e);if(s)for(let t of r)if(t.tag==s&&(!t.attrs||t.attrs(n||(n=gb(o,e))))){let e=o.lastChild,n=e.type.id==NO?e.from:o.to;if(n>i.to)return{parser:t.parser,overlay:[{from:i.to,to:n}]}}}if(s&&a==$O){let n,o=t.node;if(n=o.firstChild){let t=s[e.read(n.from,n.to)];if(t)for(let n of t){if(n.tagName&&n.tagName!=mb(o.parent,e))continue;let t=o.lastChild;if(t.type.id==RO){let e=t.from+1,o=t.lastChild,i=t.to-(o&&o.isError?0:1);if(i>e)return{parser:n.parser,overlay:[{from:e,to:i}]}}else if(t.type.id==ZO)return{parser:n.parser,overlay:[{from:t.from,to:t.to}]}}}}return null},(t,e,n,o)=>new Uh(t,a,e,n,o);var a}const _b=309,Ob=1,bb=2,wb=3,xb=310,Sb=312,kb=313,Pb=4,Cb=5,Tb=0,Eb=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],Qb=125,Ab=59,$b=47,jb=42,Rb=43,Zb=45,Mb=60,Vb=44,Db=new P_({start:!1,shift:(t,e)=>e==Pb||e==Cb||e==Sb?t:e==kb,strict:!1}),Ib=new d_(((t,e)=>{let{next:n}=t;(n==Qb||-1==n||e.context)&&t.acceptToken(xb)}),{contextual:!0,fallback:!0}),Nb=new d_(((t,e)=>{let n,{next:o}=t;Eb.indexOf(o)>-1||(o!=$b||(n=t.peek(1))!=$b&&n!=jb)&&(o==Qb||o==Ab||-1==o||e.context||t.acceptToken(_b))}),{contextual:!0}),Wb=new d_(((t,e)=>{let{next:n}=t;if((n==Rb||n==Zb)&&(t.advance(),n==t.next)){t.advance();let n=!e.context&&e.canShift(Ob);t.acceptToken(n?Ob:bb)}}),{contextual:!0});function Xb(t,e){return t>=65&&t<=90||t>=97&&t<=122||95==t||t>=192||!e&&t>=48&&t<=57}const Lb=new d_(((t,e)=>{if(t.next!=Mb||!e.dialectEnabled(Tb))return;if(t.advance(),t.next==$b)return;let n=0;for(;Eb.indexOf(t.next)>-1;)t.advance(),n++;if(Xb(t.next,!0)){for(t.advance(),n++;Xb(t.next,!1);)t.advance(),n++;for(;Eb.indexOf(t.next)>-1;)t.advance(),n++;if(t.next==Vb)return;for(let e=0;;e++){if(7==e){if(!Xb(t.next,!0))return;break}if(t.next!="extends".charCodeAt(e))break;t.advance(),n++}}t.acceptToken(wb,-n)})),Yb=sp({"get set async static":Cp.modifier,"for while do if else switch try catch finally return throw break continue default case":Cp.controlKeyword,"in of await yield void typeof delete instanceof":Cp.operatorKeyword,"let var const using function class extends":Cp.definitionKeyword,"import export from":Cp.moduleKeyword,"with debugger as new":Cp.keyword,TemplateString:Cp.special(Cp.string),super:Cp.atom,BooleanLiteral:Cp.bool,this:Cp.self,null:Cp.null,Star:Cp.modifier,VariableName:Cp.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":Cp.function(Cp.variableName),VariableDefinition:Cp.definition(Cp.variableName),Label:Cp.labelName,PropertyName:Cp.propertyName,PrivatePropertyName:Cp.special(Cp.propertyName),"CallExpression/MemberExpression/PropertyName":Cp.function(Cp.propertyName),"FunctionDeclaration/VariableDefinition":Cp.function(Cp.definition(Cp.variableName)),"ClassDeclaration/VariableDefinition":Cp.definition(Cp.className),PropertyDefinition:Cp.definition(Cp.propertyName),PrivatePropertyDefinition:Cp.definition(Cp.special(Cp.propertyName)),UpdateOp:Cp.updateOperator,"LineComment Hashbang":Cp.lineComment,BlockComment:Cp.blockComment,Number:Cp.number,String:Cp.string,Escape:Cp.escape,ArithOp:Cp.arithmeticOperator,LogicOp:Cp.logicOperator,BitOp:Cp.bitwiseOperator,CompareOp:Cp.compareOperator,RegExp:Cp.regexp,Equals:Cp.definitionOperator,Arrow:Cp.function(Cp.punctuation),": Spread":Cp.punctuation,"( )":Cp.paren,"[ ]":Cp.squareBracket,"{ }":Cp.brace,"InterpolationStart InterpolationEnd":Cp.special(Cp.brace),".":Cp.derefOperator,", ;":Cp.separator,"@":Cp.meta,TypeName:Cp.typeName,TypeDefinition:Cp.definition(Cp.typeName),"type enum interface implements namespace module declare":Cp.definitionKeyword,"abstract global Privacy readonly override":Cp.modifier,"is keyof unique infer":Cp.operatorKeyword,JSXAttributeValue:Cp.attributeValue,JSXText:Cp.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":Cp.angleBracket,"JSXIdentifier JSXNameSpacedName":Cp.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":Cp.attributeName,"JSXBuiltin/JSXIdentifier":Cp.standard(Cp.tagName)}),zb={__proto__:null,export:18,as:23,from:31,default:34,async:39,function:40,extends:52,this:56,true:64,false:64,null:76,void:80,typeof:84,super:102,new:136,delete:152,yield:161,await:165,class:170,public:227,private:227,protected:227,readonly:229,instanceof:248,satisfies:251,in:252,const:254,import:286,keyof:339,unique:343,infer:349,is:385,abstract:405,implements:407,type:409,let:412,var:414,using:417,interface:423,enum:427,namespace:433,module:435,declare:439,global:443,for:462,of:471,while:474,with:478,do:482,if:486,else:488,switch:492,case:498,try:504,catch:508,finally:512,return:516,throw:520,break:524,continue:528,debugger:532},qb={__proto__:null,async:123,get:125,set:127,declare:187,public:189,private:189,protected:189,static:191,abstract:193,override:195,readonly:201,accessor:203,new:389},Ub={__proto__:null,"<":143},Bb=C_.deserialize({version:14,states:"$RQWO'#CdO>cQWO'#H[O>kQWO'#HbO>kQWO'#HdO`Q^O'#HfO>kQWO'#HhO>kQWO'#HkO>pQWO'#HqO>uQ07iO'#HwO%[Q^O'#HyO?QQ07iO'#H{O?]Q07iO'#H}O9kQ07hO'#IPO?hQ08SO'#ChO@jQ`O'#DiQOQWOOO%[Q^O'#EPOAQQWO'#ESO:RQ7[O'#EjOA]QWO'#EjOAhQpO'#FbOOQU'#Cf'#CfOOQ07`'#Dn'#DnOOQ07`'#Jm'#JmO%[Q^O'#JmOOQO'#Jq'#JqOOQO'#Ib'#IbOBhQ`O'#EcOOQ07`'#Eb'#EbOCdQ07pO'#EcOCnQ`O'#EVOOQO'#Jp'#JpODSQ`O'#JqOEaQ`O'#EVOCnQ`O'#EcPEnO!0LbO'#CaPOOO)CDu)CDuOOOO'#IX'#IXOEyO!bO,59TOOQ07b,59T,59TOOOO'#IY'#IYOFXO#tO,59TO%[Q^O'#D`OOOO'#I['#I[OFgO?MpO,59xOOQ07b,59x,59xOFuQ^O'#I]OGYQWO'#JkOI[QrO'#JkO+}Q^O'#JkOIcQWO,5:OOIyQWO'#ElOJWQWO'#JyOJcQWO'#JxOJcQWO'#JxOJk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Q/|*jQ1f,YR;Y:g%OdOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%j%p%}&f&i&m&o&p&r&v'O']'m'}(P(V(^(r(v(z)y+O+S,e,h,m-^-f-t-z.l.s0[0a0q1_1o1p1r1t1w1z1|2m2s3Z5Y5d5t5u5x6]7w7|8]8gS#p]:d!r)[$[$m'S)n,y,|.{2]3p5W6S9W9i:c:f:g:j:k:l:m:n:o:p:q:r:s:t:u:v:w:{;Y;Z;[;^;e;f;o;p<]Q*u%ZQ+k%{Q,Z&bQ,b&jQ.c;QQ0h+^Q0l+`Q0w+lQ1n,`Q2{.[Q4v0rQ5k1gQ6i3PQ6u;RQ7h4wR8m6j&|kOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m%j%p%}&f&i&j&m&o&p&r&v'O'S']'m'}(P(V(^(r(v(z)n)y+O+S+^,e,h,m,y,|-^-f-t-z.[.l.s.{0[0a0q1_1o1p1r1t1w1z1|2]2m2s3P3Z3p5W5Y5d5t5u5x6S6]6j7w7|8]8g9W9i:c:f:g:j:k:l:m:n:o:p:q:r:s:t:u:v:w:{;Y;Z;[;^;e;f;o;p<]t!nQ!r!u!x!y'R'Y'Z'g'h'i-Q-W-Y-j1[5]5_$v$si#u#w$c$d$x${%O%Q%[%]%a)u){)}*P*R*Y*`*p*q+]+`+w+z.Z.i/Z/j/k/m0Q0S0^1R1U1^3O3x4S4[4f4n4p5c6g7T7^7y8j8w9[9n:O:W:y:z:|:};O;P;S;T;U;V;W;X;_;`;a;b;c;d;g;h;i;j;k;l;m;n;q;r < TypeParamList TypeDefinition extends ThisType this LiteralType ArithOp Number BooleanLiteral TemplateType InterpolationEnd Interpolation InterpolationStart NullType null VoidType void TypeofType typeof MemberExpression . ?. PropertyName [ TemplateString Escape Interpolation super RegExp ] ArrayExpression Spread , } { ObjectExpression Property async get set PropertyDefinition Block : NewExpression new TypeArgList CompareOp < ) ( ArgList UnaryExpression delete LogicOp BitOp YieldExpression yield AwaitExpression await ParenthesizedExpression ClassExpression class ClassBody MethodDeclaration Decorator @ MemberExpression PrivatePropertyName CallExpression declare Privacy static abstract override PrivatePropertyDefinition PropertyDeclaration readonly accessor Optional TypeAnnotation Equals StaticBlock FunctionExpression ArrowFunction ParamList ParamList ArrayPattern ObjectPattern PatternProperty Privacy readonly Arrow MemberExpression BinaryExpression ArithOp ArithOp ArithOp ArithOp BitOp CompareOp instanceof satisfies in const CompareOp BitOp BitOp BitOp LogicOp LogicOp ConditionalExpression LogicOp LogicOp AssignmentExpression UpdateOp PostfixExpression CallExpression TaggedTemplateExpression DynamicImport import ImportMeta JSXElement JSXSelfCloseEndTag JSXSelfClosingTag JSXIdentifier JSXBuiltin JSXIdentifier JSXNamespacedName JSXMemberExpression JSXSpreadAttribute JSXAttribute JSXAttributeValue JSXEscape JSXEndTag JSXOpenTag JSXFragmentTag JSXText JSXEscape JSXStartCloseTag JSXCloseTag PrefixCast ArrowFunction TypeParamList SequenceExpression KeyofType keyof UniqueType unique ImportType InferredType infer TypeName ParenthesizedType FunctionSignature ParamList NewSignature IndexedType TupleType Label ArrayType ReadonlyType ObjectType MethodType PropertyType IndexSignature PropertyDefinition CallSignature TypePredicate is NewSignature new UnionType LogicOp IntersectionType LogicOp ConditionalType ParameterizedType ClassDeclaration abstract implements type VariableDeclaration let var using TypeAliasDeclaration InterfaceDeclaration interface EnumDeclaration enum EnumBody NamespaceDeclaration namespace module AmbientDeclaration declare GlobalDeclaration global ClassDeclaration ClassBody AmbientFunctionDeclaration ExportGroup VariableName VariableName ImportDeclaration ImportGroup ForStatement for ForSpec ForInSpec ForOfSpec of WhileStatement while WithStatement with DoStatement do IfStatement if else SwitchStatement switch SwitchBody CaseLabel case DefaultLabel TryStatement try CatchClause catch FinallyClause finally ReturnStatement return ThrowStatement throw BreakStatement break ContinueStatement continue DebuggerStatement debugger LabeledStatement ExpressionStatement SingleExpression SingleClassItem",maxTerm:371,context:Db,nodeProps:[["group",-26,8,16,18,65,201,205,209,210,212,215,218,228,230,236,238,240,242,245,251,257,259,261,263,265,267,268,"Statement",-32,12,13,28,31,32,38,48,51,52,54,59,67,75,79,81,83,84,106,107,116,117,134,137,139,140,141,142,144,145,164,165,167,"Expression",-23,27,29,33,37,39,41,168,170,172,173,175,176,177,179,180,181,183,184,185,195,197,199,200,"Type",-3,87,99,105,"ClassItem"],["openedBy",22,"<",34,"InterpolationStart",53,"[",57,"{",72,"(",157,"JSXStartCloseTag"],["closedBy",23,">",36,"InterpolationEnd",47,"]",58,"}",73,")",162,"JSXEndTag"]],propSources:[Yb],skippedNodes:[0,4,5,271],repeatNodeCount:37,tokenData:"$Fj(CSR!bOX%ZXY+gYZ-yZ[+g[]%Z]^.c^p%Zpq+gqr/mrs3cst:_tuEruvJSvwLkwx! Yxy!'iyz!(sz{!)}{|!,q|}!.O}!O!,q!O!P!/Y!P!Q!9j!Q!R#8g!R![#:v![!]#Gv!]!^#IS!^!_#J^!_!`#Ns!`!a$#_!a!b$(l!b!c$,k!c!}Er!}#O$-u#O#P$/P#P#Q$4h#Q#R$5r#R#SEr#S#T$7P#T#o$8Z#o#p$q#r#s$?}#s$f%Z$f$g+g$g#BYEr#BY#BZ$AX#BZ$ISEr$IS$I_$AX$I_$I|Er$I|$I}$Dd$I}$JO$Dd$JO$JTEr$JT$JU$AX$JU$KVEr$KV$KW$AX$KW&FUEr&FU&FV$AX&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$AX?HUOEr(n%d_$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z&j&hT$f&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c&j&zP;=`<%l&c'|'U]$f&j(R!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}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) {\n\t${}\n}",{label:"for",detail:"of loop",type:"keyword"}),qv("do {\n\t${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),qv("while (${}) {\n\t${}\n}",{label:"while",detail:"loop",type:"keyword"}),qv("try {\n\t${}\n} catch (${error}) {\n\t${}\n}",{label:"try",detail:"/ catch block",type:"keyword"}),qv("if (${}) {\n\t${}\n}",{label:"if",detail:"block",type:"keyword"}),qv("if (${}) {\n\t${}\n} else {\n\t${}\n}",{label:"if",detail:"/ else block",type:"keyword"}),qv("class ${name} {\n\tconstructor(${params}) {\n\t\t${}\n\t}\n}",{label:"class",detail:"definition",type:"keyword"}),qv("import {${names}} from \"${module}\"\n${}",{label:"import",detail:"named",type:"keyword"}),qv("import ${name} from \"${module}\"\n${}",{label:"import",detail:"default",type:"keyword"})],Gb=Fb.concat([qv("interface ${name} {\n\t${}\n}",{label:"interface",detail:"definition",type:"keyword"}),qv("type ${name} = ${type}",{label:"type",detail:"definition",type:"keyword"}),qv("enum ${name} {\n\t${}\n}",{label:"enum",detail:"definition",type:"keyword"})]),Hb=new Ih,Kb=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function Jb(t){return(e,n)=>{let o=e.node.getChild("VariableDefinition");return o&&n(o,t),!0}}const tw=["FunctionDeclaration"],ew={FunctionDeclaration:Jb("function"),ClassDeclaration:Jb("class"),ClassExpression:()=>!0,EnumDeclaration:Jb("constant"),TypeAliasDeclaration:Jb("type"),NamespaceDeclaration:Jb("namespace"),VariableDefinition(t,e){t.matchContext(tw)||e(t,"variable")},TypeDefinition(t,e){e(t,"type")},__proto__:null};function nw(t,e){let n=Hb.get(e);if(n)return n;let o=[],i=!0;function r(e,n){let i=t.sliceString(e.from,e.to);o.push({label:i,type:n})}return e.cursor(Oh.IncludeAnonymous).iterate((e=>{if(i)i=!1;else if(e.name){let t=ew[e.name];if(t&&t(e,r)||Kb.has(e.name))return!1}else if(e.to-e.from>8192){for(let n of nw(t,e.node))o.push(n);return!1}})),Hb.set(e,o),o}const ow=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,iw=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName",".","?."];function rw(t){let e=Zp(t.state).resolveInner(t.pos,-1);if(iw.indexOf(e.name)>-1)return null;let n="VariableName"==e.name||e.to-e.from<20&&ow.test(t.state.sliceDoc(e.from,e.to));if(!n&&!t.explicit)return null;let o=[];for(let n=e;n;n=n.parent)Kb.has(n.name)&&(o=o.concat(nw(t.state.doc,n)));return{options:o,from:n?e.from:t.pos,validFor:ow}}const sw=Rp.define({name:"javascript",parser:Bb.configure({props:[Kp.add({IfStatement:sd({except:/^\s*({|else\b)/}),TryStatement:sd({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:t=>t.baseIndent,SwitchBody:t=>{let e=t.textAfter,n=/^\s*\}/.test(e),o=/^\s*(case|default)\b/.test(e);return t.baseIndent+(n?0:o?1:2)*t.unit},Block:id({closing:"}"}),ArrowFunction:t=>t.baseIndent+t.unit,"TemplateString BlockComment":()=>null,"Statement Property":sd({except:/^{/}),JSXElement(t){let e=/^\s*<\//.test(t.textAfter);return t.lineIndent(t.node.from)+(e?0:t.unit)},JSXEscape(t){let e=/\s*\}/.test(t.textAfter);return t.lineIndent(t.node.from)+(e?0:t.unit)},"JSXOpenTag JSXSelfClosingTag":t=>t.column(t.node.from)+t.unit}),cd.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":ud,BlockComment:t=>({from:t.from+2,to:t.to-2})})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),aw={test:t=>/^JSX/.test(t.name),facet:Qp({commentTokens:{block:{open:"{/*",close:"*/}"}}})},lw=sw.configure({dialect:"ts"},"typescript"),cw=sw.configure({dialect:"jsx",props:[Ap.add((t=>t.isTop?[aw]:void 0))]}),uw=sw.configure({dialect:"jsx ts",props:[Ap.add((t=>t.isTop?[aw]:void 0))]},"typescript");let hw=t=>({label:t,type:"keyword"});const pw="break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield".split(" ").map(hw),dw=pw.concat(["declare","implements","private","protected","public"].map(hw));function fw(t={}){let e=t.jsx?t.typescript?uw:cw:t.typescript?lw:sw,n=t.typescript?Gb.concat(dw):Fb.concat(pw);return new zp(e,[sw.data.of({autocomplete:(o=iw,i=Fm(n),t=>{for(let e=Zp(t.state).resolveInner(t.pos,-1);e;e=e.parent){if(o.indexOf(e.name)>-1)return null;if(e.type.isTop)break}return i(t)})}),sw.data.of({autocomplete:rw}),t.jsx?vw:[]]);var o,i}function gw(t,e,n=t.length){for(let o=null==e?void 0:e.firstChild;o;o=o.nextSibling)if("JSXIdentifier"==o.name||"JSXBuiltin"==o.name||"JSXNamespacedName"==o.name||"JSXMemberExpression"==o.name)return t.sliceString(o.from,Math.min(o.to,n));return""}const mw="object"==typeof navigator&&/Android\b/.test(navigator.userAgent),vw=fc.inputHandler.of(((t,e,n,o,i)=>{if((mw?t.composing:t.compositionStarted)||t.state.readOnly||e!=n||">"!=o&&"/"!=o||!sw.isActiveAt(t.state,e,-1))return!1;let r=i(),{state:s}=r,a=s.changeByRange((t=>{var e;let n,{head:i}=t,r=Zp(s).resolveInner(i-1,-1);if("JSXStartTag"==r.name&&(r=r.parent),s.doc.sliceString(i-1,i)!=o||"JSXAttributeValue"==r.name&&r.to>i);else{if(">"==o&&"JSXFragmentTag"==r.name)return{range:t,changes:{from:i,insert:``}};if("/"==o&&"JSXStartCloseTag"==r.name){let t=r.parent,o=t.parent;if(o&&t.from==i-2&&((n=gw(s.doc,o.firstChild,i))||"JSXFragmentTag"==(null===(e=o.firstChild)||void 0===e?void 0:e.name))){let t=`${n}>`;return{range:Go.cursor(i+t.length,-1),changes:{from:i,insert:t}}}}else if(">"==o){let e=function(t){for(;;){if("JSXOpenTag"==t.name||"JSXSelfClosingTag"==t.name||"JSXFragmentTag"==t.name)return t;if("JSXEscape"==t.name||!t.parent)return null;t=t.parent}}(r);if(e&&!/^\/?>|^<\//.test(s.doc.sliceString(i,i+2))&&(n=gw(s.doc,e,i)))return{range:t,changes:{from:i,insert:``}}}}return{range:t}}));return!a.changes.empty&&(t.dispatch([r,s.update(a,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}));const yw=["_blank","_self","_top","_parent"],_w=["ascii","utf-8","utf-16","latin1","latin1"],Ow=["get","post","put","delete"],bw=["application/x-www-form-urlencoded","multipart/form-data","text/plain"],ww=["true","false"],xw={},Sw={a:{attrs:{href:null,ping:null,type:null,media:null,target:yw,hreflang:null}},abbr:xw,address:xw,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:null,hreflang:null,type:null,shape:["default","rect","circle","poly"]}},article:xw,aside:xw,audio:{attrs:{src:null,mediagroup:null,crossorigin:["anonymous","use-credentials"],preload:["none","metadata","auto"],autoplay:["autoplay"],loop:["loop"],controls:["controls"]}},b:xw,base:{attrs:{href:null,target:yw}},bdi:xw,bdo:xw,blockquote:{attrs:{cite:null}},body:xw,br:xw,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:["autofocus"],disabled:["autofocus"],formenctype:bw,formmethod:Ow,formnovalidate:["novalidate"],formtarget:yw,type:["submit","reset","button"]}},canvas:{attrs:{width:null,height:null}},caption:xw,center:xw,cite:xw,code:xw,col:{attrs:{span:null}},colgroup:{attrs:{span:null}},command:{attrs:{type:["command","checkbox","radio"],label:null,icon:null,radiogroup:null,command:null,title:null,disabled:["disabled"],checked:["checked"]}},data:{attrs:{value:null}},datagrid:{attrs:{disabled:["disabled"],multiple:["multiple"]}},datalist:{attrs:{data:null}},dd:xw,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:["open"]}},dfn:xw,div:xw,dl:xw,dt:xw,em:xw,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:["disabled"],form:null,name:null}},figcaption:xw,figure:xw,footer:xw,form:{attrs:{action:null,name:null,"accept-charset":_w,autocomplete:["on","off"],enctype:bw,method:Ow,novalidate:["novalidate"],target:yw}},h1:xw,h2:xw,h3:xw,h4:xw,h5:xw,h6:xw,head:{children:["title","base","link","style","meta","script","noscript","command"]},header:xw,hgroup:xw,hr:xw,html:{attrs:{manifest:null}},i:xw,iframe:{attrs:{src:null,srcdoc:null,name:null,width:null,height:null,sandbox:["allow-top-navigation","allow-same-origin","allow-forms","allow-scripts"],seamless:["seamless"]}},img:{attrs:{alt:null,src:null,ismap:null,usemap:null,width:null,height:null,crossorigin:["anonymous","use-credentials"]}},input:{attrs:{alt:null,dirname:null,form:null,formaction:null,height:null,list:null,max:null,maxlength:null,min:null,name:null,pattern:null,placeholder:null,size:null,src:null,step:null,value:null,width:null,accept:["audio/*","video/*","image/*"],autocomplete:["on","off"],autofocus:["autofocus"],checked:["checked"],disabled:["disabled"],formenctype:bw,formmethod:Ow,formnovalidate:["novalidate"],formtarget:yw,multiple:["multiple"],readonly:["readonly"],required:["required"],type:["hidden","text","search","tel","url","email","password","datetime","date","month","week","time","datetime-local","number","range","color","checkbox","radio","file","submit","image","reset","button"]}},ins:{attrs:{cite:null,datetime:null}},kbd:xw,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:["autofocus"],disabled:["disabled"],keytype:["RSA"]}},label:{attrs:{for:null,form:null}},legend:xw,li:{attrs:{value:null}},link:{attrs:{href:null,type:null,hreflang:null,media:null,sizes:["all","16x16","16x16 32x32","16x16 32x32 64x64"]}},map:{attrs:{name:null}},mark:xw,menu:{attrs:{label:null,type:["list","context","toolbar"]}},meta:{attrs:{content:null,charset:_w,name:["viewport","application-name","author","description","generator","keywords"],"http-equiv":["content-language","content-type","default-style","refresh"]}},meter:{attrs:{value:null,min:null,low:null,high:null,max:null,optimum:null}},nav:xw,noscript:xw,object:{attrs:{data:null,type:null,name:null,usemap:null,form:null,width:null,height:null,typemustmatch:["typemustmatch"]}},ol:{attrs:{reversed:["reversed"],start:null,type:["1","a","A","i","I"]},children:["li","script","template","ul","ol"]},optgroup:{attrs:{disabled:["disabled"],label:null}},option:{attrs:{disabled:["disabled"],label:null,selected:["selected"],value:null}},output:{attrs:{for:null,form:null,name:null}},p:xw,param:{attrs:{name:null,value:null}},pre:xw,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:xw,rt:xw,ruby:xw,samp:xw,script:{attrs:{type:["text/javascript"],src:null,async:["async"],defer:["defer"],charset:_w}},section:xw,select:{attrs:{form:null,name:null,size:null,autofocus:["autofocus"],disabled:["disabled"],multiple:["multiple"]}},slot:{attrs:{name:null}},small:xw,source:{attrs:{src:null,type:null,media:null}},span:xw,strong:xw,style:{attrs:{type:["text/css"],media:null,scoped:null}},sub:xw,summary:xw,sup:xw,table:xw,tbody:xw,td:{attrs:{colspan:null,rowspan:null,headers:null}},template:xw,textarea:{attrs:{dirname:null,form:null,maxlength:null,name:null,placeholder:null,rows:null,cols:null,autofocus:["autofocus"],disabled:["disabled"],readonly:["readonly"],required:["required"],wrap:["soft","hard"]}},tfoot:xw,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:["row","col","rowgroup","colgroup"]}},thead:xw,time:{attrs:{datetime:null}},title:xw,tr:xw,track:{attrs:{src:null,label:null,default:null,kind:["subtitles","captions","descriptions","chapters","metadata"],srclang:null}},ul:{children:["li","script","template","ul","ol"]},var:xw,video:{attrs:{src:null,poster:null,width:null,height:null,crossorigin:["anonymous","use-credentials"],preload:["auto","metadata","none"],autoplay:["autoplay"],mediagroup:["movie"],muted:["muted"],controls:["controls"]}},wbr:xw},kw={accesskey:null,class:null,contenteditable:ww,contextmenu:null,dir:["ltr","rtl","auto"],draggable:["true","false","auto"],dropzone:["copy","move","link","string:","file:"],hidden:["hidden"],id:null,inert:["inert"],itemid:null,itemprop:null,itemref:null,itemscope:["itemscope"],itemtype:null,lang:["ar","bn","de","en-GB","en-US","es","fr","hi","id","ja","pa","pt","ru","tr","zh"],spellcheck:ww,autocorrect:ww,autocapitalize:ww,style:null,tabindex:null,title:null,translate:["yes","no"],rel:["stylesheet","alternate","author","bookmark","help","license","next","nofollow","noreferrer","prefetch","prev","search","tag"],role:"alert application article banner button cell checkbox complementary contentinfo dialog document feed figure form grid gridcell heading img list listbox listitem main navigation region row rowgroup search switch tab table tabpanel textbox timer".split(" "),"aria-activedescendant":null,"aria-atomic":ww,"aria-autocomplete":["inline","list","both","none"],"aria-busy":ww,"aria-checked":["true","false","mixed","undefined"],"aria-controls":null,"aria-describedby":null,"aria-disabled":ww,"aria-dropeffect":null,"aria-expanded":["true","false","undefined"],"aria-flowto":null,"aria-grabbed":["true","false","undefined"],"aria-haspopup":ww,"aria-hidden":ww,"aria-invalid":["true","false","grammar","spelling"],"aria-label":null,"aria-labelledby":null,"aria-level":null,"aria-live":["off","polite","assertive"],"aria-multiline":ww,"aria-multiselectable":ww,"aria-owns":null,"aria-posinset":null,"aria-pressed":["true","false","mixed","undefined"],"aria-readonly":ww,"aria-relevant":null,"aria-required":ww,"aria-selected":["true","false","undefined"],"aria-setsize":null,"aria-sort":["ascending","descending","none","other"],"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null},Pw=("beforeunload copy cut dragstart dragover dragleave dragenter dragend "+"drag paste focus blur change click load mousedown mouseenter mouseleave "+"mouseup keydown keyup resize scroll unload").split(" ").map((t=>"on"+t));for(let t of Pw)kw[t]=null;class Cw{constructor(t,e){this.tags=Object.assign(Object.assign({},Sw),t),this.globalAttrs=Object.assign(Object.assign({},kw),e),this.allTags=Object.keys(this.tags),this.globalAttrNames=Object.keys(this.globalAttrs)}}function Tw(t,e,n=t.length){if(!e)return"";let o=e.firstChild,i=o&&o.getChild("TagName");return i?t.sliceString(i.from,Math.min(i.to,n)):""}function Ew(t,e=!1){for(;t;t=t.parent)if("Element"==t.name){if(!e)return t;e=!1}return null}function Qw(t,e,n){let o=n.tags[Tw(t,Ew(e))];return(null==o?void 0:o.children)||n.allTags}function Aw(t,e){let n=[];for(let o=Ew(e);o&&!o.type.isTop;o=Ew(o.parent)){let i=Tw(t,o);if(i&&"CloseTag"==o.lastChild.name)break;i&&n.indexOf(i)<0&&("EndTag"==e.name||e.from>=o.firstChild.to)&&n.push(i)}return n}Cw.default=new Cw;const $w=/^[:\-\.\w\u00b7-\uffff]*$/;function jw(t,e,n,o,i){let r=/\s*>/.test(t.sliceDoc(i,i+5))?"":">",s=Ew(n,!0);return{from:o,to:i,options:Qw(t.doc,s,e).map((t=>({label:t,type:"type"}))).concat(Aw(t.doc,n).map(((t,e)=>({label:"/"+t,apply:"/"+t+r,type:"type",boost:99-e})))),validFor:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}function Rw(t,e,n,o){let i=/\s*>/.test(t.sliceDoc(o,o+5))?"":">";return{from:n,to:o,options:Aw(t.doc,e).map(((t,e)=>({label:t,apply:t+i,type:"type",boost:99-e}))),validFor:$w}}function Zw(t,e){let{state:n,pos:o}=e,i=Zp(n).resolveInner(o,-1),r=i.resolve(o);for(let t,e=o;r==i&&(t=i.childBefore(e));){let n=t.lastChild;if(!n||!n.type.isError||n.from({label:t,type:"property"}))),validFor:$w}}(n,t,i,"AttributeName"==i.name?i.from:o,o):"Is"==i.name||"AttributeValue"==i.name||"UnquotedAttributeValue"==i.name?function(t,e,n,o,i){var r;let s,a=null===(r=n.parent)||void 0===r?void 0:r.getChild("AttributeName"),l=[];if(a){let r=t.sliceDoc(a.from,a.to),c=e.globalAttrs[r];if(!c){let o=Ew(n),i=o?e.tags[Tw(t.doc,o)]:null;c=(null==i?void 0:i.attrs)&&i.attrs[r]}if(c){let e=t.sliceDoc(o,i).toLowerCase(),n='"',r='"';/^['"]/.test(e)?(s='"'==e[0]?/^[^"]*$/:/^[^']*$/,n="",r=t.sliceDoc(i,i+1)==e[0]?"":e[0],e=e.slice(1),o++):s=/^[^\s<>='"]*$/;for(let t of c)l.push({label:t,apply:n+t+r,type:"constant"})}}return{from:o,to:i,options:l,validFor:s}}(n,t,i,"Is"==i.name?o:i.from,o):!e.explicit||"Element"!=r.name&&"Text"!=r.name&&"Document"!=r.name?null:function(t,e,n,o){let i=[],r=0;for(let o of Qw(t.doc,n,e))i.push({label:"<"+o,type:"type"});for(let e of Aw(t.doc,n))i.push({label:"",type:"type",boost:99-r++});return{from:o,to:o,options:i,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}(n,t,i,o)}function Mw(t){let{extraTags:e,extraGlobalAttributes:n}=t,o=n||e?new Cw(e,n):Cw.default;return t=>Zw(o,t)}const Vw=sw.parser.configure({top:"SingleExpression"}),Dw=[{tag:"script",attrs:t=>"text/typescript"==t.type||"ts"==t.lang,parser:lw.parser},{tag:"script",attrs:t=>"text/babel"==t.type||"text/jsx"==t.type,parser:cw.parser},{tag:"script",attrs:t=>"text/typescript-jsx"==t.type,parser:uw.parser},{tag:"script",attrs:t=>/^(importmap|speculationrules|application\/(.+\+)?json)$/i.test(t.type),parser:Vw},{tag:"script",attrs:t=>!t.type||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(t.type),parser:sw.parser},{tag:"style",attrs:t=>(!t.lang||"css"==t.lang)&&(!t.type||/^(text\/)?(x-)?(stylesheet|css)$/i.test(t.type)),parser:gO.parser}],Iw=[{name:"style",parser:gO.parser.configure({top:"Styles"})}].concat(Pw.map((t=>({name:t,parser:sw.parser})))),Nw=Rp.define({name:"html",parser:fb.configure({props:[Kp.add({Element(t){let e=/^(\s*)(<\/)?/.exec(t.textAfter);return t.node.to<=t.pos+e[0].length?t.continue():t.lineIndent(t.node.from)+(e[2]?0:t.unit)},"OpenTag CloseTag SelfClosingTag":t=>t.column(t.node.from)+t.unit,Document(t){if(t.pos+/\s*/.exec(t.textAfter)[0].lengtht.getChild("TagName")})]}),languageData:{commentTokens:{block:{open:"\x3c!--",close:"--\x3e"}},indentOnInput:/^\s*<\/\w+\W$/,wordChars:"-._"}}),Ww=Nw.configure({wrap:yb(Dw,Iw)});const Xw=new Set("area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" ")),Lw=fc.inputHandler.of(((t,e,n,o,i)=>{if(t.composing||t.state.readOnly||e!=n||">"!=o&&"/"!=o||!Ww.isActiveAt(t.state,e,-1))return!1;let r=i(),{state:s}=r,a=s.changeByRange((t=>{var e,n,i;let r,a=s.doc.sliceString(t.from-1,t.to)==o,{head:l}=t,c=Zp(s).resolveInner(l-1,-1);if("TagName"!=c.name&&"StartTag"!=c.name||(c=c.parent),a&&">"==o&&"OpenTag"==c.name){if("CloseTag"!=(null===(n=null===(e=c.parent)||void 0===e?void 0:e.lastChild)||void 0===n?void 0:n.name)&&(r=Tw(s.doc,c.parent,l))&&!Xw.has(r)){return{range:t,changes:{from:l,to:l+(">"===s.doc.sliceString(l,l+1)?1:0),insert:``}}}}else if(a&&"/"==o&&"IncompleteCloseTag"==c.name){let t=c.parent;if(c.from==l-2&&"CloseTag"!=(null===(i=t.lastChild)||void 0===i?void 0:i.name)&&(r=Tw(s.doc,t,l))&&!Xw.has(r)){let t=l+(">"===s.doc.sliceString(l,l+1)?1:0),e=`${r}>`;return{range:Go.cursor(l+e.length,-1),changes:{from:l,to:t,insert:e}}}}return{range:t}}));return!a.changes.empty&&(t.dispatch([r,s.update(a,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}));var Yw=n(921);function zw(t,{state:e,dispatch:n}){var o;let i=e.doc.iterRange(t.from,t.to),r='';for(;!i.done;)r+=i.value,i=i.next();const s=null!==(o=e.facet(qw))&&void 0!==o?o:{},a=function(t){const e=t.facet(Yp);return e===gO?(t,e)=>(0,Yw.css_beautify)(t,e):e===Ww?(t,e)=>(0,Yw.html_beautify)(t,e):e===sw?(t,e)=>(0,Yw.js_beautify)(t,e):(t,e)=>t}(e)(e.doc.toString(),Object.assign({indent_size:Bp(e)},s));return e.selection.asSingle().main==t?n(e.update(e.replaceSelection(a))):n({changes:{from:t.from,to:t.to,insert:a}}),!0}const qw=Jo.define();var Uw=void 0&&(void 0).__extends||function(){var t=function(e,n){return t=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])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Bw=void 0&&(void 0).__assign||function(){return Bw=Object.assign||function(t){for(var e,n=1,o=arguments.length;n0){var o=n(t.startState);return ah(o,e[0],{from:0,to:t.startState.doc.line(t.startState.doc.lines).to}).map((function(e){return t.startState.update({changes:{from:e.from,to:e.to},annotations:Qi.userEvent.of("".concat(t.annotation(Qi.userEvent),".smart"))})}))}}return t}))),(e=t,Wi.changeFilter.of((function(t){var n,o,i,r;try{for(var s=e(t.startState),a=e(t.state),l=0;l{zw(Go.range(0,t.doc.length),{state:t,dispatch:e})})(this.editor),this.setReadonlyState(n)}},e}(u.Hn);const Gw=Fw;Fw.prototype.CodeMirror=fc;var Hw=void 0&&(void 0).__extends||function(){var t=function(e,n){return t=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])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Kw=function(t){function e(e,n){var o=t.call(this,e,n)||this;return o.type='function',o.variables=null==n?void 0:n.variables,o}return Hw(e,t),Object.defineProperty(e.prototype,"clsLabel",{get:function(){var t=this.ppfx;return"".concat(t,"field")},enumerable:!1,configurable:!0}),e.prototype.getInputElem=function(){var t=this.input,e=this.$input;return t||e&&e.get&&e.get(0)||this.getElInput()},Object.defineProperty(e.prototype,"inputValue",{get:function(){var t,e=this.getInputElem();return null!==(t=null==e?void 0:e.value)&&void 0!==t?t:this.target.value},set:function(t){var e=this.getInputElem();e&&(e.value=t)},enumerable:!1,configurable:!0}),e.prototype.templateInput=function(){return''},e.prototype.codeUpdated=function(){var t=this.editor;t&&(this.target.value=t.getContent().toString())},e.prototype.renderField=function(){var t,e=this.$el,n=this.variables,o=e.find('[data-input]'),i=o[o.length-1],r=document.createElement('textarea');r.value="(".concat(null!==(t=null==n?void 0:n.join(', '))&&void 0!==t?t:'',") => { \n \n}"),i.appendChild(r),this.editor=new Gw({el:r,readOnly:!1,lineNumbers:!1,codeName:'js',readOnlyRanges:function(t){return[{to:t.doc.line(1).to},{from:t.doc.line(t.doc.lines).from}]}}),this.editor.init(r),this.editor.on('update',this.codeUpdated,this)},e}(Wt);const Jw=Kw;var tx=void 0&&(void 0).__assign||function(){return tx=Object.assign||function(t){for(var e,n=1,o=arguments.length;n=0&&this.set('void',!0),n.em=r,this.opt=n,this.em=r,this.frame=n.frame,this.config=n.config||{},this.set('attributes',ix(ix({},(0,t.result)(this,'defaults').attributes||{}),this.get('attributes')||{})),this.ccid=o.createId(this,n),this.initClasses(),this.initComponents(),this.initTraits(),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(fx,this.__propToParent),this.set('status',''),this.views=[],['classes','components'].forEach((function(t){var e="add remove ".concat('components'!==t?'change':'');i.listenTo(i.get(t),e.trim(),(function(){for(var e=[],n=0;n=0}))},o.prototype.__getSymbToUp=function(t){var e=this;void 0===t&&(t={});var n=[],o=t.changed;if(t.fromInstance||t.noPropagate||t.fromUndo||o&&this.__isSymbOvrd(o))return n;var i=this.__getSymbols()||[],r=this.__getSymbol();return n=(r?sx([r],r.__getSymbols()||[],!0):i).filter((function(t){return t!==e})).filter((function(t){return!(o&&t.__isSymbOvrd(o))}))},o.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},o.prototype.__upSymbProps=function(n,o){var i=this;void 0===o&&(o={});var r=this.changedAttributes()||{},s=r.attributes||{};if(delete r.status,delete r.open,delete r[ux],delete r[hx],delete r[px],delete r.attributes,delete s.id,(0,e.isEmptyObj)(s)||(r.attributes=s),!(0,e.isEmptyObj)(r)){var a=this.__getSymbToUp(o);(0,t.keys)(r).map((function(t){i.__isSymbOvrd(t)&&delete r[t]})),this.__logSymbol('props',a,{opts:o,changed:r}),a.forEach((function(e){var n=ix({},r);(0,t.keys)(n).map((function(t){e.__isSymbOvrd(t)&&delete n[t]})),e.set(n,ix({fromInstance:i},o))}))}},o.prototype.__upSymbCls=function(t,e,n){var o=this;void 0===n&&(n={});var i=this.__getSymbToUp(n);this.__logSymbol('classes',i,{opts:n}),i.forEach((function(t){t.set('classes',o.get('classes'),{fromInstance:o})})),this.__changesUp(n)},o.prototype.__upSymbComps=function(t,e,n){var o=this,i=n||e||{},r={fromInstance:i.fromInstance,fromUndo:i.fromUndo},s=t.opt.temporary;if(n)if(n.add){var a=[],l=!!this.__getSymbols();if((v=this.__getSymbToUp(ix(ix({},r),{changed:'components:add'}))).length){var c=t.__getSymbol();a=(c?c.__getSymbols():t.__getSymbols())||[],(a=sx([],a,!0)).push(c||t)}!s&&this.__logSymbol('add',v,{opts:n,addedInstances:a.map((function(t){return t.cid})),added:t.cid}),v.forEach((function(e){var i=e.__getSymbTop(),r=a.filter((function(t){var e=t.__getSymbTop({prev:1});return i&&e&&e===i}))[0]||t.clone({symbol:!0,symbolInv:l});e.append(r,ix({fromInstance:o},n))}))}else{var u=t.__getSymbol();if(u&&!n.temporary&&u.set(ux,u.__getSymbols().filter((function(e){return e!==t}))),!t.__isSymbolTop()){var h='components:remove',p=n.index,d=t.parent(),f=ix({fromInstance:t},n),g=t.__isSymbolNested(),m=function(t){var e=t.parent();e&&!e.__isSymbOvrd(h)&&t.remove(f)};v=(null==d?void 0:d.__isSymbOvrd(h))?[]:t.__getSymbToUp(r);g&&(v=null==d?void 0:d.__getSymbToUp(ix(ix({},r),{changed:h})),m=function(t){var e=t.components().at(p);e&&e.remove(ix({fromInstance:d},f))}),!s&&this.__logSymbol('remove',v,{opts:n,removed:t.cid,isSymbNested:g}),v.forEach(m)}}else{var v=this.__getSymbToUp(ix(ix({},r),{changed:'components:reset'})),y=t.models;this.__logSymbol('reset',v,{components:y}),v.forEach((function(t){var n=y.map((function(t){return t.clone({symbol:!0})}));t.components().reset(n,ix({fromInstance:o},e))}))}this.__changesUp(i)},o.prototype.initClasses=function(e,n,o){void 0===o&&(o={});var i=this.get('attributes')||{},r=i.class,s=rx(i,["class"]),a=[this,'change:classes',this.initClasses],l=this.get('classes')||r||[],c=(0,t.isString)(l)?l.split(' '):l;this.stopListening.apply(this,a);var u=this.normalizeClasses(c),h=new ao([]);return this.set('classes',h,o),h.add(u),h.on('add remove reset',this.__upSymbCls),r&&u.length&&this.set('attributes',s),this.listenTo.apply(this,a),this},o.prototype.initComponents=function(){var e=[this,'change:components',this.initComponents];this.stopListening.apply(this,e);var n=new Kn([],this.opt);n.parent=this;var o=this.get('components'),i=!this.opt.avoidChildren;return this.set('components',n),i&&o&&n.add((0,t.isFunction)(o)?o(this):o,this.opt),n.on('add remove reset',this.__upSymbComps),this.listenTo.apply(this,e),this},o.prototype.initTraits=function(t){var e=this.em,n='change:traits';return this.off(n,this.initTraits),this.__loadTraits(),this.on(n,this.initTraits),t&&e&&e.trigger('component:toggled'),this},o.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)||[],o=this.get(t)||[],i=n.map((function(t){return"change:".concat(t)})).join(' '),r=o.map((function(t){return"change:".concat(t)})).join(' ');i&&this.off(i,this.__scriptPropsChange),r&&this.on(r,this.__scriptPropsChange),this.on.apply(this,e)}},o.prototype.__scriptPropsChange=function(t,e,n){void 0===n&&(n={}),n.avoidStore||this.trigger('rerender')},o.prototype.append=function(e,n){void 0===n&&(n={});var o=((0,t.isArray)(e)?sx([],e,!0):[e]).map((function(e){return(0,t.isString)(e)||e.collection&&e.collection.remove(e,{temporary:!0}),e})),i=this.components().add(o,n);return(0,t.isArray)(i)?i:[i]},o.prototype.components=function(e,n){void 0===n&&(n={});var o=this.get('components');return(0,t.isUndefined)(e)?o:(o.reset(void 0,n),e?this.append(e,n):[])},o.prototype.getChildAt=function(t){return this.components().at(t||0)||void 0},o.prototype.getLastChild=function(){var t=this.components();return t.at(t.length-1)||null},o.prototype.empty=function(t){return void 0===t&&(t={}),this.components().reset(void 0,t),this},o.prototype.parent=function(t){void 0===t&&(t={});var e=this.collection||t.prev&&this.prevColl;return e?e.parent:void 0},o.prototype.parents=function(){var t=this.parent();return t?[t].concat(t.parents()):[]},o.prototype.scriptUpdated=function(){this.set('scriptUpdated',1)},o.prototype.initToolbar=function(){var t=this.em,e=this,n=t&&t.getConfig().stylePrefix||'';if(!e.get('toolbar')&&t){var o=[];e.collection&&o.push({label:t.getIcon('arrowUp'),command:function(t){return t.runCommand('core:component-exit',{force:1})}}),e.get('draggable')&&o.push({attributes:{class:"".concat(n,"no-touch-actions"),draggable:!0},label:t.getIcon('move'),command:'tlb-move'}),e.get('copyable')&&o.push({label:t.getIcon('copy'),command:'tlb-clone'}),e.get('removable')&&o.push({label:t.getIcon('delete'),command:'tlb-delete'}),e.set('toolbar',o)}},o.prototype.__loadTraits=function(t){var e=this,n=t||this.traits;this.set('traits',n.map((function(t){return nx.build(e,t)})));var o=ix({},this.get('attributes'));return this.traits.forEach((function(t){if(!t.changeProp){var e=t.name,n=t.value;e&&n&&(o[e]=n)}})),n.length&&this.set('attributes',o),this},o.prototype.getTraits=function(){return this.traits},o.prototype.setTraits=function(e){var n=(0,t.isArray)(e)?e:[e];return this.__loadTraits(n),this.getTraits()},o.prototype.getTrait=function(t){return this.traits.find((function(e){return e.name===t}))||null},o.prototype.updateTrait=function(t,e){var n,o=this.getTrait(t);return null==o||o.updateOpts(e),null===(n=this.em)||void 0===n||n.trigger('component:toggled'),this},o.prototype.getTraitIndex=function(t){var e=this.getTrait(t);return e?this.traits.indexOf(e):-1},o.prototype.removeTrait=function(e){var n,o=this,i=((0,t.isArray)(e)?e:[e]).map((function(t){var e=o.getTraitIndex(t);if(-1!=e)return o.traits.splice(e,1)[0]}));return null===(n=this.em)||void 0===n||n.trigger('component:toggled'),(0,t.isArray)(i)?i:[i]},o.prototype.addTrait=function(e,n){var o,i=this;void 0===n&&(n={});var r=((0,t.isArray)(e)?e:[e]).map((function(t){var e=nx.build(i,t);return i.traits.push(e),e}));return null===(o=this.em)||void 0===o||o.trigger('component:toggled'),r},o.prototype.normalizeClasses=function(t){var e=[],n=this.em,o=null==n?void 0:n.Selectors;return o?t.models?sx([],t.models,!0):(t.forEach((function(t){return e.push(o.add(t))})),e):[]},o.prototype.clone=function(t){void 0===t&&(t={});var e=this.em,n=ix({},this.attributes),o=ix({},this.opt),i=this.getId(),r=null==e?void 0:e.Css;n.attributes=ix({},n.attributes),delete n.attributes.id,n.components=[],n.classes=[],n.traits=[],this.__isSymbolTop()&&(t.symbol=!0),this.get('components').each((function(e,o){n.components[o]=e.clone(ix(ix({},t),{_inner:1}))})),this.traits.forEach((function(t,e){n.traits[e]=ix(ix({},t.opts),{name:t.name})})),this.get('classes').each((function(t,e){n.classes[e]=t.get('name')})),n.status='',o.collection=null;var s=new this.constructor(n,o),a="#".concat(s.getId());(r?r.getRules("#".concat(i)):[]).forEach((function(t){var e=t.clone();e.set('selectors',[a]),r.getAll().add(e)})),s.set(ux,0);var l=this.__getSymbol(),c=this.__getSymbols();t.symbol||!l&&!c?l?(l.set(ux,sx(sx([],l.__getSymbols(),!0),[s],!1)),s.__initSymb()):t.symbol&&(this.__isSymbol()?(this.set(ux,sx(sx([],c,!0),[s],!1)),s.set(hx,this),s.__initSymb()):t.symbolInv?(this.set(ux,[s]),s.set(hx,this),[this,s].map((function(t){return t.__initSymb()}))):(s.set(ux,[this]),[this,s].map((function(t){return t.__initSymb()})),this.set(hx,s))):(s.set(hx,0),s.set(ux,0));var u='component:clone';return e&&e.trigger(u,s),this.trigger(u,s),s},o.prototype.getName=function(t){void 0===t&&(t={});var n=this.em,o=this.attributes,i=o.type,r=o.tagName,s=o.name,a=i||r,l=i?'':r,c='domComponents.names.',u=s&&(null==n?void 0:n.t("".concat(c).concat(s))),h=l&&(null==n?void 0:n.t("".concat(c).concat(l))),p=n&&(n.t("".concat(c).concat(i))||n.t("".concat(c).concat(r))),d=this.get('custom-name');return(t.noCustom?'':d)||u||s||h||(0,e.capitalize)(l)||p||(0,e.capitalize)(a)},o.prototype.getIcon=function(){var t=this.get('icon');return t?t+' ':''},o.prototype.toHTML=function(n){void 0===n&&(n={});var o=this,i=[],r=n.tag||o.get('tagName'),s=o.get('void'),a=n.attributes,l=this.getAttrToHTML();if(delete n.tag,a&&((0,t.isFunction)(a)?l=a(o,l)||{}:(0,e.isObject)(a)&&(l=a)),n.withProps){var c=this.toJSON();(0,t.forEach)(c,(function(n,o){'_'!==o[0]&&['classes','attributes','components'].indexOf(o)<0&&(l["data-gjs-".concat(o)]=(0,t.isArray)(n)||(0,e.isObject)(n)?JSON.stringify(n):n)}))}for(var u in l){var h=l[u];if(!(0,t.isUndefined)(h)&&null!==h)if((0,t.isBoolean)(h))h&&i.push(u);else{var p='';if(n.altQuoteAttr&&(0,t.isString)(h)&&h.indexOf('"')>=0)p="'".concat(h.replace(/'/g,'''),"'");else{var d=(0,t.isString)(h)?h.replace(/"/g,'"'):h;p="\"".concat(d,"\"")}i.push("".concat(u,"=").concat(p))}}var f=i.length?" ".concat(i.join(' ')):'',g=o.getInnerHTML(n),m="<".concat(r).concat(f).concat(s?'/':'',">").concat(g);return!s&&(m+="")),m},o.prototype.getInnerHTML=function(t){return this.__innerHTML(t)},o.prototype.__innerHTML=function(t){void 0===t&&(t={});var e=this.components();return e.length?e.map((function(e){return e.toHTML(t)})).join(''):this.content},o.prototype.getAttrToHTML=function(){var t=this.getAttributes();return lx(this.em)&&delete t.style,t},o.prototype.toJSON=function(e){void 0===e&&(e={});var n=s.Model.prototype.toJSON.call(this,e);if(n.attributes=this.getAttributes(),delete n.attributes.class,delete n.toolbar,delete n.traits,delete n.status,delete n.open,delete n._undoexc,delete n.delegate,!e.fromUndo){var o=n[hx],i=n[ux];i&&(0,t.isArray)(i)&&(n[ux]=i.filter((function(t){return t})).map((function(t){return t.getId?t.getId():t}))),o&&!(0,t.isString)(o)&&(n[hx]=o.getId())}return this.em.getConfig().avoidDefaults&&this.getChangedProps(n),n},o.prototype.getChangedProps=function(e){var n=e||s.Model.prototype.toJSON.apply(this),o=(0,t.result)(this,'defaults');return(0,t.forEach)(o,(function(t,e){-1===['type'].indexOf(e)&&n[e]===t&&delete n[e]})),(0,t.isEmpty)(n.type)&&delete n.type,(0,t.forEach)(['attributes','style'],(function(e){(0,t.isEmpty)(o[e])&&(0,t.isEmpty)(n[e])&&delete n[e]})),(0,t.forEach)(['classes','components'],(function(e){(!n[e]||(0,t.isEmpty)(o[e])&&!n[e].length)&&delete n[e]})),n},o.prototype.getId=function(){return(this.get('attributes')||{}).id||this.ccid||this.cid},o.prototype.setId=function(t,e){var n=ix({},this.get('attributes'));return n.id=t,this.set('attributes',n,e),this},o.prototype.getEl=function(t){var e=this.getView(t);return e&&e.el},o.prototype.getView=function(t){var e=this,n=e.view,o=e.views,i=e.em,r=t||(null==i?void 0:i.getCurrentFrameModel());return r&&(n=o.filter((function(t){return t.frameView===r.view}))[0]),n},o.prototype.getCurrentView=function(){var t=this.em.getCurrentFrame(),e=null==t?void 0:t.model;return this.getView(e)},o.prototype.__getScriptProps=function(){var t=this.props();return(this.get('script-props')||[]).reduce((function(e,n){return e[n]=t[n],e}),{})},o.prototype.getScriptString=function(e){var n=this,o=e||this.get('script')||'';if(!o)return o;if(this.get('script-props'))o=o.toString().trim();else{if((0,t.isFunction)(o)){var i=o.toString().trim();o=(i=i.slice(i.indexOf('{')+1,i.lastIndexOf('}'))).trim()}var r=this.em.getConfig(),s=ax(r.tagVarStart||'{[ '),a=ax(r.tagVarEnd||' ]}'),l=new RegExp("".concat(s,"([\\w\\d-]*)").concat(a),'g');o=o.replace(l,(function(e,o){n.scriptUpdated();var i=n.attributes[o]||'';return(0,t.isArray)(i)||'object'==typeof i?JSON.stringify(i):i}))}return o},o.prototype.emitUpdate=function(t){for(var e,n=[],o=1;o=0&&this.__propSelfToParent({component:this,changed:(e={},e[t]=s,e),options:n[2]||n[1]||{}})},o.prototype.onAll=function(e){return(0,t.isFunction)(e)&&(e(this),this.components().forEach((function(t){return t.onAll(e)}))),this},o.prototype.forEachChild=function(e){(0,t.isFunction)(e)&&this.components().forEach((function(t){e(t),t.forEachChild(e)}))},o.prototype.remove=function(t){var e=this;void 0===t&&(t={});var n=this.em,o=this.collection,i=function(){o&&o.remove(e,ix(ix({},t),{action:'remove-component'})),o||(e.components('',t),e.components().removeChildren(e,void 0,t))},r=ix({},t);return[this,n].map((function(t){return t.trigger('component:remove:before',e,i,r)})),!r.abort&&i(),this},o.prototype.move=function(t,e){if(void 0===e&&(e={}),t){var n=e.at,o=this.index(),i=t===this.parent();i&&(o===n||o===n-1)||(i&&n&&n>o&&(e.at=n-1),this.remove({temporary:1}),t.append(this,e),this.emitUpdate())}return this},o.prototype.isInstanceOf=function(t){var e,n,o=null===(n=null===(e=this.em)||void 0===e?void 0:e.Components.getType(t))||void 0===n?void 0:n.model;return!!o&&this instanceof o},o.prototype.isChildOf=function(e){for(var n=(0,t.isString)(e),o=this.parent();o;){if(n){if(o.isInstanceOf(e))return!0}else if(o===e)return!0;o=o.parent()}return!1},o.prototype.resetId=function(t){void 0===t&&(t={});var e=this.em,n=this.getId();if(!n)return this;var i=o.createId(this);this.setId(i);var r=null==e?void 0:e.Css.getIdRule(n),s=null==r?void 0:r.get('selectors').at(0);return null==s||s.set('name',i),this},o.prototype._getStyleRule=function(t){var e=(void 0===t?{}:t).id,n=this.em,o=e||this.getId();return null==n?void 0:n.Css.getIdRule(o)},o.prototype._getStyleSelector=function(t){var e=this._getStyleRule(t);return null==e?void 0:e.get('selectors').at(0)},o.prototype._idUpdated=function(t,e,n){if(void 0===n&&(n={}),!n.idUpdate){var i=this.ccid,r=(this.get('attributes')||{}).id,s=(this.previous('attributes')||{}).id||i,a=o.getList(this);if(a[r]||!r&&s)return this.setId(s,{idUpdate:!0});delete a[s],a[r]=this,this.ccid=r;var l=this._getStyleSelector({id:s});l&&l.set({name:r,label:r})}},o.getDefaults=function(){return(0,t.result)(this.prototype,'defaults')},o.isComponent=function(t){return{tagName:(0,e.toLowerCase)(t.tagName)}},o.ensureInList=function(t){var e=o.getList(t),n=t.getId(),i=e[n];if(i){if(i!==t){var r=o.getIncrementId(n,e);t.setId(r),e[r]=t}}else e[n]=t;t.components().forEach((function(t){return o.ensureInList(t)}))},o.createId=function(t,e){void 0===e&&(e={});var n,i=o.getList(t),r=e.idMap,s=void 0===r?{}:r,a=t.get('attributes').id;return a?(n=o.getIncrementId(a,i,e),t.setId(n),a!==n&&(s[a]=n)):n=o.getNewId(i),i[n]=t,n},o.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=o.getNewId(t);return i},o.getIncrementId=function(t,e,n){void 0===n&&(n={});var o=n.keepIds,i=1,r=t;if((void 0===o?[]:o).indexOf(t)<0)for(;e[r];)i++,r="".concat(t,"-").concat(i);return r},o.getList=function(t){var e=t.opt,n=void 0===e?{}:e,o=n.domc,i=n.em,r=o||(null==i?void 0:i.Components);return r?r.componentsById:{}},o.checkId=function(e,n,i,r){void 0===n&&(n=[]),void 0===i&&(i={}),void 0===r&&(r={});var s=(0,t.isArray)(e)?e:[e],a=r.keepIds,l=void 0===a?[]:a,c=r.idMap,u=void 0===c?{}:c;s.forEach((function(e){e.attributes;var s=e.attributes,a=void 0===s?{}:s,c=e.components,h=a.id;if(h&&i[h]&&l.indexOf(h)<0){var p=o.getIncrementId(h,i);u[h]=p,a.id=p,(0,t.isArray)(n)&&n.forEach((function(t){var e=t.selectors;e.forEach((function(t,n){t==="#".concat(h)&&(e[n]="#".concat(p))}))}))}c&&o.checkId(c,n,i,r)}))},o}(Yn);const vx=mx;var yx=void 0&&(void 0).__extends||function(){var t=function(e,n){return t=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])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),_x=void 0&&(void 0).__assign||function(){return _x=Object.assign||function(t){for(var e,n=1,o=arguments.length;n\n \n "),fallback:"\n \n "),file:''})},enumerable:!1,configurable:!0}),o.prototype.initialize=function(o,i){n.prototype.initialize.call(this,o,i);var r=this.get('attributes').src;r&&(0,e.buildBase64UrlFromSvg)((0,t.result)(this,'defaults').src)!==r&&this.set('src',r,{silent:!0})},o.prototype.initToolbar=function(){n.prototype.initToolbar.call(this);var t=this.em;if(t){var e='image-editor';if(t.Commands.has(e)){for(var o=!1,i=this.get('toolbar'),r=0;r=0)&&delete i.editable}))}return i},o}(Vx);const qx=zx;var Ux=void 0&&(void 0).__extends||function(){var t=function(e,n){return t=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])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Bx=void 0&&(void 0).__assign||function(){return Bx=Object.assign||function(t){for(var e,n=1,o=arguments.length;n=0},n}(vx);var _S=void 0&&(void 0).__extends||function(){var t=function(e,n){return t=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])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),OS=void 0&&(void 0).__assign||function(){return OS=Object.assign||function(t){for(var e,n=1,o=arguments.length;n=0&&l0&&u=0&&h0&&c<=a)},o.prototype.scrollIntoView=function(t){var e;if(void 0===t&&(t={}),!this.isInViewport()||t.force){var n=this.el;if('smooth'!==t.behavior){var o=this.getOffsetRect();null===(e=n.ownerDocument.defaultView)||void 0===e||e.scrollTo(0,o.top)}else n.scrollIntoView(FS({behavior:'smooth',block:'nearest'},t))}},o.prototype.reset=function(){var t=this.el;this.el='',this._ensureElement(),this._setData(),(0,ue.dL)(t,this.el),this.render()},o.prototype._setData=function(){var t=this.model,e=t.components();this.$el.data({model:t,collection:e,view:this})},o.prototype._createElement=function(t){return this.createDoc.createElement(t)},o.prototype.renderChildren=function(){this.updateContent();var t=this.getChildrenContainer(),e=this.childrenView||new US({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),o=0,i=n.length;o0&&i[i.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]-1;return Lk(Lk({},r),!u||h?{reason:Wk.TargetReject}:{result:!0})},o.prototype.allById=function(){return this.componentsById},o.prototype.getById=function(t){return this.componentsById[t]||null},o.prototype.destroy=function(){var t,e=this.allById();Object.keys(e).forEach((function(t){return e[t]&&e[t].remove()})),null===(t=this.componentView)||void 0===t||t.remove(),[this.em,this.componentsById,this.componentView].forEach((function(t){return{}}))},o}(O);const qk=zk;const Uk={stylePrefix:'css-',rules:[]};var Bk=void 0&&(void 0).__extends||function(){var t=function(e,n){return t=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])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Fk=Number.MAX_VALUE,Gk=function(n){function o(){var e=n.call(this)||this;return(0,t.bindAll)(e,'sortRules'),e.compCls=[],e.ids=[],e}return Bk(o,n),o.prototype.buildFromModel=function(t,e){var n=this;void 0===e&&(e={});var o='',i=this.em,r=i&&i.getConfig().avoidInlineStyle,s=t.styleToString(),a=t.classes;return this.ids.push("#".concat(t.getId())),a.forEach((function(t){return n.compCls.push(t.getFullName())})),!r&&s&&(o="#".concat(t.getId(),"{").concat(s,"}")),t.components().forEach((function(t){return o+=n.buildFromModel(t,e)})),o},o.prototype.build=function(n,o){var i=this;void 0===o&&(o={});var r=o.json,s=o.em,a=o.cssc||(null==s?void 0:s.Css);this.em=s,this.compCls=[],this.ids=[],this.model=n;var l=[],c=n?this.buildFromModel(n,o):'',u=(0,t.isUndefined)(o.clearStyles)&&s?s.getConfig().clearStyles:o.clearStyles;if(a){var h=o.rules||a.getAll(),p={},d=[];o.onlyMatched&&n&&(0,e.hasWin)()&&(h=this.matchedRules(n,h)),h.forEach((function(t){var e=t.getAtRule();if(e){var n=p[e];n?n.push(t):p[e]=[t]}else{var s=i.buildFromRule(t,d,o);r?l.push(s):c+=s}})),this.sortMediaObject(p).forEach((function(t){var e='',n=t.key;t.value.forEach((function(t){var s=i.buildFromRule(t,d,o);t.get('singleAtRule')?c+="".concat(n,"{").concat(s,"}"):e+=s,r&&l.push(s)})),e&&(c+="".concat(n,"{").concat(e,"}"))})),s&&u&&h.remove&&h.remove(d)}return r?l.filter((function(t){return t})):c},o.prototype.buildFromRule=function(t,e,n){var o,i=this;void 0===n&&(n={});var r,s='',a=this.model,l=t.selectorsToString({skipAdd:1}),c=t.get('selectorsAdd'),u=t.get('singleAtRule');if(null===(o=t.get('selectors'))||void 0===o||o.forEach((function(t){var e=t.getFullName();(i.compCls.indexOf(e)>=0||i.ids.indexOf(e)>=0||n.keepUnusedStyles)&&(r=1)})),l&&r||c||u||!a){var h=t.getDeclaration({body:1});h&&(n.json?s=t:s+=h)}else e.push(t);return s},o.prototype.matchedRules=function(t,e){var n=this,o=t.getEl(),i=[];return e.forEach((function(t){try{t.selectorsToString().split(',').some((function(t){return null==o?void 0:o.matches(n.__cleanSelector(t))}))&&i.push(t)}catch(t){}})),t.components().forEach((function(t){i=i.concat(n.matchedRules(t,e))})),i=i.filter((function(t,e){return i.indexOf(t)===e})),i},o.prototype.getQueryLength=function(t){var e=/(-?\d*\.?\d+)\w{0,}/.exec(t);return e?parseFloat(e[1]):Fk},o.prototype.sortMediaObject=function(e){var n=this;void 0===e&&(e={});var o=[];return(0,t.each)(e,(function(t,e){return o.push({key:e,value:t})})),o.sort((function(t,e){var o=[t.key,e.key].every((function(t){return-1!==t.indexOf('min-width')})),i=o?t.key:e.key,r=o?e.key:t.key;return n.getQueryLength(i)-n.getQueryLength(r)}))},o.prototype.sortRules=function(t,e){var n=function(t){return t.get('mediaText')||''},o=[n(t),n(e)].every((function(t){return-1!==t.indexOf('min-width')})),i=n(o?t:e),r=n(o?e:t);return this.getQueryLength(i)-this.getQueryLength(r)},o.prototype.__cleanSelector=function(t){return t.split(' ').map((function(t){return t.split(':')[0]})).join(' ')},o}(u.Hn);const Hk=Gk;var Kk=void 0&&(void 0).__extends||function(){var t=function(e,n){return t=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])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Jk=void 0&&(void 0).__assign||function(){return Jk=Object.assign||function(t){for(var e,n=1,o=arguments.length;n=0}))},o.prototype.setIdRule=function(e,n,o){void 0===n&&(n={}),void 0===o&&(o={});var i=o.addOpts,r=void 0===i?{}:i,s=o.mediaText,a=o.state||'',l=(0,t.isUndefined)(s)?this.em.getCurrentMedia():s,c=this.em.Selectors.add({name:e,type:oo.TYPE_ID},r),u=this.add(c,a,l,{},r);return u.setStyle(n,lP(lP({},o),r)),u},o.prototype.getIdRule=function(e,n){void 0===n&&(n={});var o=n.mediaText,i=n.state||'',r=(0,t.isUndefined)(o)?this.em.getCurrentMedia():o,s=this.em.Selectors.get(e,oo.TYPE_ID);return s&&this.get(s,i,r)},o.prototype.setClassRule=function(t,e,n){void 0===e&&(e={}),void 0===n&&(n={});var o=n.state||'',i=n.mediaText||this.em.getCurrentMedia(),r=this.em.Selectors.add({name:t,type:oo.TYPE_CLASS}),s=this.add(r,o,i);return s.setStyle(e,n),s},o.prototype.getClassRule=function(t,e){void 0===e&&(e={});var n=e.state||'',o=e.mediaText||this.em.getCurrentMedia(),i=this.em.Selectors.get(t,oo.TYPE_CLASS);return i&&this.get(i,n,o)},o.prototype.remove=function(e,n){var o=(0,t.isString)(e)?this.getRules(e):e,i=this.getAll().remove(o,n);return(0,t.isArray)(i)?i:[i]},o.prototype.clear=function(t){return void 0===t&&(t={}),this.getAll().reset([],t),this},o.prototype.getComponentRules=function(e,n){void 0===n&&(n={});var o=n.state,i=n.mediaText;n.current&&(o=this.em.get('state')||'',i=this.em.getCurrentMedia());var r=e.getId();return this.getAll().filter((function(e){return!(!(0,t.isUndefined)(o)&&e.get('state')!==o)&&(!(!(0,t.isUndefined)(i)&&e.get('mediaText')!==i)&&e.getSelectorsString()==="#".concat(r))}))},o.prototype.render=function(){var t;return null===(t=this.rulesView)||void 0===t||t.remove(),this.rulesView=new sn({collection:this.rules,config:this.config}),this.rulesView.render().el},o.prototype.checkId=function(e,n){void 0===n&&(n={});var o=n.idMap,i=void 0===o?{}:o,r=[];return Object.keys(i).length?((Array.isArray(e)?e:[e]).forEach((function(e){var n=e.selectors;if(n&&1==n.length){var o=n[0];if((0,t.isString)(o)){if('#'===o[0]){var s=o.substring(1),a=i[s];s&&a&&(n[0]="#".concat(a),r.push(e))}}else if(o.name&&o.type===oo.TYPE_ID){(a=i[o.name])&&(o.name=a,r.push(e))}}})),r):r},o.prototype.destroy=function(){var t;this.rules.reset(),this.rules.stopListening(),null===(t=this.rulesView)||void 0===t||t.remove()},o}(O);const hP=uP;const pP={appendTo:'',blocks:[],appendOnClick:!1,custom:!1};var dP=void 0&&(void 0).__extends||function(){var t=function(e,n){return t=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])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}();const fP=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return dP(n,e),n.prototype.defaults=function(){return{label:'',content:'',media:'',category:'',activate:!1,select:void 0,resetId:!1,disable:!1,onClick:void 0,attributes:{}}},n.prototype.getId=function(){return this.id},n.prototype.getLabel=function(){return this.get('label')},n.prototype.getMedia=function(){return this.get('media')},n.prototype.getContent=function(){return this.get('content')},n.prototype.getCategoryLabel=function(){var e=this.get('category');return(0,t.isFunction)(null==e?void 0:e.get)?e.get('label'):(null==e?void 0:e.label)?null==e?void 0:e.label:e},n}(u.Hn);var gP=void 0&&(void 0).__extends||function(){var t=function(e,n){return t=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])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),mP=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return gP(e,t),e}(u.FE);const vP=mP;mP.prototype.model=fP;var yP=void 0&&(void 0).__extends||function(){var t=function(e,n){return t=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])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}();const _P=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return yP(e,t),e.prototype.defaults=function(){return{id:'',label:'',open:!0,attributes:{}}},e}(u.Hn);var OP=void 0&&(void 0).__extends||function(){var t=function(e,n){return t=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])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),bP=function(n){function o(){return null!==n&&n.apply(this,arguments)||this}return OP(o,n),o.prototype.add=function(o,i){return((0,t.isArray)(o)?o:[o]).forEach((function(t){return t&&(t.id=(0,e.normalizeKey)("".concat(t.id)))})),n.prototype.add.call(this,o,i)},o.prototype.get=function(o){return n.prototype.get.call(this,(0,t.isString)(o)?(0,e.normalizeKey)(o):o)},o}(u.FE);const wP=bP;var xP;bP.prototype.model=_P,function(t){t["add"]="block:add",t["remove"]="block:remove",t["removeBefore"]="block:remove:before",t["update"]="block:update",t["dragStart"]="block:drag:start",t["drag"]="block:drag",t["dragEnd"]="block:drag:stop",t["custom"]="block:custom",t["all"]="block"}(xP||(xP={}));var SP=void 0&&(void 0).__extends||function(){var t=function(e,n){return t=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])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),kP=function(n){function o(t,e){void 0===e&&(e={});var o=n.call(this,t)||this,i=o.model;return o.em=e.em,o.config=e,o.endDrag=o.endDrag.bind(o),o.ppfx=e.pStylePrefix||'',o.listenTo(i,'destroy remove',o.remove),o.listenTo(i,'change',o.render),o}return SP(o,n),o.prototype.events=function(){return{click:'handleClick',mousedown:'startDrag',dragstart:'handleDragStart',drag:'handleDrag',dragend:'handleDragEnd'}},o.prototype.__getModule=function(){return this.em.Blocks},o.prototype.handleClick=function(e){var n=this,o=n.config,i=n.model,r=n.em,s=i.get('onClick')||o.appendOnClick;if(r.trigger('block:click',i,e),s){if((0,t.isFunction)(s))return s(i,null==r?void 0:r.getEditor(),{event:e});var a,l,c=o.getSorter(),u=i.get('content'),h=r.getSelected();if(c.setDropContent(u),h)if(c.validTarget(h.getEl(),u).valid)a=h;else{var p=h.parent();p&&c.validTarget(p.getEl(),u).valid&&(a=p,l=p.components().indexOf(h)+1)}if(!a){var d=r.getWrapper();c.validTarget(d.getEl(),u).valid&&(a=d)}var f=a&&a.append(u,{at:l})[0];f&&r.setSelected(f,{scroll:1})}},o.prototype.startDrag=function(t){var e=this,n=e.config,o=e.em,i=e.model,r=i.get('disable');if(0===t.button&&n.getSorter&&!this.el.draggable&&!r){o.refreshCanvas();var s=n.getSorter();s.__currentBlock=i,s.setDragHelper(this.el,t),s.setDropContent(this.model.get('content')),s.startSort(this.el),(0,ue.on)(document,'mouseup',this.endDrag)}},o.prototype.handleDragStart=function(t){this.__getModule().__startDrag(this.model,t)},o.prototype.handleDrag=function(t){this.__getModule().__drag(t)},o.prototype.handleDragEnd=function(){this.__getModule().__endDrag()},o.prototype.endDrag=function(){(0,ue.S1)(document,'mouseup',this.endDrag);var t=this.config.getSorter();t.moved=0,t.endMove()},o.prototype.render=function(){var t,n=this,o=n.em,i=n.el,r=n.$el,s=n.ppfx,a=n.model,l=a.get('disable'),c=a.get('attributes')||{},u=c.class||'',h="".concat(s,"block"),p=o&&o.t("blockManager.labels.".concat(a.id))||a.get('label'),d=a.get('render'),f=a.get('media'),g=l?"".concat(h,"--disable"):"".concat(s,"four-color-h");r.attr(c),i.className="".concat(u," ").concat(h," ").concat(s,"one-bg ").concat(g).trim(),i.innerHTML="\n ".concat(f?"
").concat(f,"
"):'',"\n
").concat(p,"
\n "),i.title=c.title||(null===(t=i.textContent)||void 0===t?void 0:t.trim()),i.setAttribute('draggable',"".concat(!(!(0,e.hasDnd)(o)||l)));var m=d&&d({el:i,model:a,className:h,prefix:s});return m&&(i.innerHTML=m),this},o}(u.G7);const PP=kP;var CP=void 0&&(void 0).__extends||function(){var t=function(e,n){return t=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])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),TP=void 0&&(void 0).__makeTemplateObject||function(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t},EP=function(t){function e(e,n){var o=t.call(this,e)||this;o.config=n;var i=n.pStylePrefix||'';return o.em=n.em,o.pfx=i,o.caretR='fa fa-caret-right',o.caretD='fa fa-caret-down',o.iconClass="".concat(i,"caret-icon"),o.activeClass="".concat(i,"open"),o.className="".concat(i,"block-category"),o.listenTo(o.model,'change:open',o.updateVisibility),o.model.view=o,o}return CP(e,t),e.prototype.events=function(){return{'click [data-title]':'toggle'}},e.prototype.template=function(t){var e=t.pfx,n=t.label;return i(AP||(AP=TP(["\n
\n \n ","\n
\n
\n "],["\n
\n \n ","\n
\n
\n "])),e,e,n,e)},e.prototype.attributes=function(){return this.model.get('attributes')||{}},e.prototype.updateVisibility=function(){this.model.get('open')?this.open():this.close()},e.prototype.open=function(){this.$el.addClass(this.activeClass),this.getIconEl().className="".concat(this.iconClass," ").concat(this.caretD),this.getBlocksEl().style.display=''},e.prototype.close=function(){this.$el.removeClass(this.activeClass),this.getIconEl().className="".concat(this.iconClass," ").concat(this.caretR),this.getBlocksEl().style.display='none'},e.prototype.toggle=function(){var t=this.model;t.set('open',!t.get('open'))},e.prototype.getIconEl=function(){return this.iconEl||(this.iconEl=this.el.querySelector(".".concat(this.iconClass))),this.iconEl},e.prototype.getBlocksEl=function(){return this.blocksEl||(this.blocksEl=this.el.querySelector(".".concat(this.pfx,"blocks-c"))),this.blocksEl},e.prototype.append=function(t){this.getBlocksEl().appendChild(t)},e.prototype.render=function(){var t=this,e=t.em,n=t.el,o=t.$el,i=t.model,r=t.pfx,s=e.t("blockManager.categories.".concat(i.id))||i.get('label');return n.innerHTML=this.template({pfx:r,label:s}),o.addClass(this.className),o.css({order:i.get('order')}),this.updateVisibility(),this},e}(u.G7);const QP=EP;var AP,$P=void 0&&(void 0).__extends||function(){var t=function(e,n){return t=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])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),jP=void 0&&(void 0).__assign||function(){return jP=Object.assign||function(t){for(var e,n=1,o=arguments.length;n\n
\n
\n
\n "),this.collection.each((function(e){return t.add(e,n)})),this.append(n);var o="".concat(this.blockContClass,"s ").concat(e,"one-bg ").concat(e,"two-color");return this.$el.addClass(o),this.rendered=!0,this},n}(u.G7);const ZP=RP;var MP=void 0&&(void 0).__extends||function(){var t=function(e,n){return t=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])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),VP=void 0&&(void 0).__assign||function(){return VP=Object.assign||function(t){for(var e,n=1,o=arguments.length;n',iconSync:'',iconTagOn:'',iconTagOff:'',iconTagRemove:'',componentFirst:!1,custom:!1};var WP=void 0&&(void 0).__extends||function(){var t=function(e,n){return t=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])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),XP=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return WP(e,t),e.prototype.defaults=function(){return{name:'',label:''}},e.prototype.getName=function(){return this.get('name')},e.prototype.getLabel=function(){return this.get('label')||this.getName()},e}(u.Hn);const LP=XP;XP.prototype.idAttribute='name';var YP=void 0&&(void 0).__extends||function(){var t=function(e,n){return t=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])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),zP=void 0&&(void 0).__makeTemplateObject||function(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t},qP='contentEditable',UP=function(t){function e(e){void 0===e&&(e={});var n=t.call(this,e)||this,o=e.config||{};return n.config=o,n.module=e.module,n.coll=e.coll||null,n.pfx=o.stylePrefix||'',n.ppfx=o.pStylePrefix||'',n.em=o.em,n.listenTo(n.model,'change:active',n.updateStatus),n}return YP(e,t),e.prototype.template=function(){var t=this,e=t.pfx,n=t.model,o=t.config,r=n.get('label')||'';return i(FP||(FP=zP(["\n \n ","\n $"," \n "],["\n \n ","\n $"," \n "])),e,e,e,r,e,e,o.iconTagRemove)},e.prototype.events=function(){return{'click [data-tag-remove]':'removeTag','click [data-tag-status]':'changeStatus','dblclick [data-tag-name]':'startEditTag','focusout [data-tag-name]':'endEditTag'}},e.prototype.getInputEl=function(){return this.inputEl||(this.inputEl=this.el.querySelector('[data-tag-name]')),this.inputEl},e.prototype.startEditTag=function(){var t=this.em,e=this.getInputEl();e[qP]='true',e.focus(),null==t||t.setEditing(!0)},e.prototype.endEditTag=function(){var t=this.model,e=this.em,n=this.getInputEl(),o=n.textContent||'',i=null==e?void 0:e.Selectors;n[qP]='false',null==e||e.setEditing(!1),i&&i.rename(t,o)!==t&&(n.innerText=t.getLabel())},e.prototype.changeStatus=function(){var t=this.model;t.set('active',!t.getActive())},e.prototype.removeTag=function(){this.module.removeSelected(this.model)},e.prototype.updateStatus=function(){var t=this,e=t.model,n=t.$el,o=t.config,i=o.iconTagOn,r=o.iconTagOff,s=n.find('[data-tag-status]');e.get('active')?(s.html(i),n.removeClass('opac50')):(s.html(r),n.addClass('opac50'))},e.prototype.render=function(){var t=this,e=t.pfx,n=t.ppfx,o=t.$el,i=t.model,r="".concat(e,"tag"),s=["".concat(r," ").concat(n,"three-bg")];return i.get('protected')&&s.push("".concat(r,"-protected")),o.html(this.template()),o.attr('class',s.join(' ')),this.updateStatus(),this},e}(u.G7);const BP=UP;var FP,GP=void 0&&(void 0).__extends||function(){var t=function(e,n){return t=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])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),HP=void 0&&(void 0).__makeTemplateObject||function(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t},KP=function(e){function n(n){void 0===n&&(n={});var o=e.call(this,n)||this;o.config=n.config||{},o.pfx=o.config.stylePrefix||'',o.ppfx=o.config.pStylePrefix||'',o.className=o.pfx+'tags',o.stateInputId=o.pfx+'states',o.stateInputC=o.pfx+'input-c',o.states=o.config.states||[];var i=o.config.em,r=o.collection;o.target=i;var s=i.Selectors;o.module=s,o.em=i,o.componentChanged=(0,t.debounce)(o.componentChanged.bind(o),0),o.checkSync=(0,t.debounce)(o.checkSync.bind(o),0);return o.listenTo(i,'component:toggled component:update:classes',o.componentChanged),o.listenTo(i,'styleManager:update',o.componentChanged),o.listenTo(i,'component:update:classes change:state',o.__handleStateChange),o.listenTo(i,'styleable:change change:device',o.checkSync),o.listenTo(r,'add',o.addNew),o.listenTo(r,'reset',o.renderClasses),o.listenTo(r,'remove',o.tagRemoved),o.listenTo(s.getAll(),s.events.state,(0,t.debounce)((function(){return o.renderStates()}),0)),o.delegateEvents(),o}return GP(n,e),n.prototype.template=function(t){var e=t.labelInfo,n=t.labelHead,o=t.iconSync,r=t.iconAdd,s=t.pfx,a=t.ppfx;return i(tC||(tC=HP(["
\n
","
\n
\n \n
\n \n \n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n \n $"," \n $"," \n
\n
\n
",":
\n
\n
"],["
\n
","
\n
\n \n
\n \n \n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n \n $"," \n $"," \n
\n
\n
",":
\n
\n
"])),s,s,s,s,n,s,s,s,a,a,a,s,a,a,s,a,s,s,s,s,s,r,s,s,o,s,s,e,s)},n.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'}},n.prototype.syncStyle=function(){var t,e=this.em,n=this.getTarget(),o=e.Css,i=this.getCommonSelectors({opts:{noDisabled:1}}),r=e.get('state'),s=e.getCurrentMedia(),a=[],l=o.get(i,r,s)||o.add(i,r,s);this.getTargets().forEach((function(e){var n=o.getIdRule(e.getId(),{state:r,mediaText:s});t=n.getStyle(),n.setStyle({}),a.push(n)})),t&&l.addStyle(t),e.trigger('component:toggled'),e.trigger('component:sync-style',{component:n,selectors:i,mediaText:s,rule:l,ruleComponents:a,state:r})},n.prototype.tagRemoved=function(t){this.updateStateVis()},n.prototype.addNew=function(t){this.addToClasses(t)},n.prototype.startNewTag=function(){var t,e;null===(t=this.$addBtn)||void 0===t||t.css({display:'none'}),null===(e=this.$input)||void 0===e||e.show().focus()},n.prototype.endNewTag=function(){var t,e;null===(t=this.$addBtn)||void 0===t||t.css({display:''}),null===(e=this.$input)||void 0===e||e.hide().val('')},n.prototype.onInputKeyUp=function(t){var e;13===t.keyCode?(t.preventDefault(),this.addNewTag(null===(e=this.$input)||void 0===e?void 0:e.val())):27===t.keyCode&&this.endNewTag()},n.prototype.checkStates=function(){var t=this.em.getState(),e=this.getStates();e&&e.val(t)},n.prototype.componentChanged=function(t){var e=(void 0===t?{}:t).targets;this.updateSelection(e)},n.prototype.updateSelection=function(e){var n=e||this.getTargets(),o=[];return(n=(0,t.isArray)(n)?n:[n])&&n.length&&(o=this.getCommonSelectors({targets:n}),this.checkSync({validSelectors:o})),this.collection.reset(o),this.updateStateVis(n),this.module.__trgCustom(),o},n.prototype.getCommonSelectors=function(t){var e=void 0===t?{}:t,n=e.targets,o=e.opts,i=void 0===o?{}:o,r=n||this.getTargets();return this.module.__getCommonSelectors(r,i)},n.prototype._commonSelectors=function(){for(var t,e=[],n=0;n",""],["",""])),r,e);else{var u=null==e?void 0:e.getSelectors();if(!u)return'';var h=u.getStyleable(),p=a.get('state'),d=e.getId?i(nC||(nC=HP(["","\n #",""],["","\n #",""])),r,e.getName(),r,e.getId()):'';n=(n=this.collection.getFullString(h))?i(oC||(oC=HP(["",""],["",""])),r,n):e.get('selectorsAdd')||d,n=c&&d?d:n,n+=p?i(iC||(iC=HP([":",""],[":",""])),r,p):'',n=l?l({result:n,state:p,target:e}):n}return n&&"").concat(n,"")},n.prototype.stateChanged=function(t){var e=this.em,n=t.target.value;e.set('state',n)},n.prototype.addNewTag=function(t){var e=t.trim();e&&(this.module.addSelected({label:e}),this.endNewTag())},n.prototype.addToClasses=function(t,e){var n=e,o=this.getClasses(),i=new BP({model:t,config:this.config,coll:this.collection,module:this.module}).render().el;return n?n.appendChild(i):o.append(i),i},n.prototype.renderClasses=function(){var t=this,e=document.createDocumentFragment(),n=this.getClasses();n.empty(),this.collection.each((function(n){return t.addToClasses(n,e)})),n.append(e)},n.prototype.getClasses=function(){return this.$el.find('[data-selectors]')},n.prototype.getStates=function(){if(!this.$states){var t=this.$el.find('[data-states]');this.$states=t[0]&&t}return this.$states},n.prototype.getStatesC=function(){return this.$statesC||(this.$statesC=this.$el.find('#'+this.stateInputC)),this.$statesC},n.prototype.renderStates=function(){var t=this.module,e=this.em,n=e.t('selectorManager.emptyState'),o=t.getStates().map((function(t){var n=e.t("selectorManager.states.".concat(t.id))||t.getLabel()||t.id;return"")})).join(''),i=this.getStates();i&&i.html("").concat(o)),this.checkStates()},n.prototype.render=function(){var t=this,e=t.em,n=t.pfx,o=t.ppfx,i=t.config,r=t.$el,s=t.el,a=i.render,l={iconSync:i.iconSync,iconAdd:i.iconAdd,labelHead:e.t('selectorManager.label'),labelInfo:e.t('selectorManager.selected'),ppfx:o,pfx:n,el:s};r.html(this.template(l));var c=a&&a(l);return c&&c!==s&&r.empty().append(c),this.$input=r.find('[data-input]'),this.$addBtn=r.find('[data-add]'),this.$classes=r.find('#'+n+'tags-c'),this.$btnSyncEl=r.find('[data-sync-style]'),this.$input.hide(),this.renderStates(),this.renderClasses(),r.attr('class',"".concat(this.className," ").concat(o,"one-bg ").concat(o,"two-color")),this},n}(u.G7);const JP=KP;var tC,eC,nC,oC,iC,rC=void 0&&(void 0).__extends||function(){var t=function(e,n){return t=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])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),sC=void 0&&(void 0).__assign||function(){return sC=Object.assign||function(t){for(var e,n=1,o=arguments.length;n=0})):e.slice(1).reduce((function(e,n){return t.__common(e,n)}),e[0]):[]},o.prototype.__updateSelectedByComponents=function(){this.selected.reset(this.__getCommon())},o}(O);const OC=_C;const bC={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 wC,xC=5,SC=6,kC=7,PC=11,CC=12,TC=13,EC=14,QC=15,AC=((wC={})[4]='media',wC[xC]='font-face',wC[SC]='page',wC[kC]='keyframes',wC[PC]='counter-style',wC[CC]='supports',wC[TC]='document',wC[EC]='font-feature-values',wC[QC]='viewport',wC),$C=(0,t.keys)(AC),jC=[xC,SC,PC,QC],RC=$C.filter((function(t){return jC.indexOf(Number(t))<0})).map((function(t){return AC[t]})).concat(['container','layer']),ZC=jC.map((function(t){return AC[t]})),MC=function(t){void 0===t&&(t='');for(var e=[],n=[],o=t.split(','),i=0,r=o.length;i=0&&(o.singleAtRule=!0),l&&(o.atRuleType=l),c&&(o.selectorsAdd=c),u&&(o.mediaText=u),a&&(t[i-1]=s[0],o.state=a,s.splice(s.length-1,1)),o.selectors=t,o.style=e,o},NC=function(t){var e=t.cssText,n=void 0===e?'':e;return RC.find((function(t){return 0===n.indexOf("@".concat(t))}))},WC=function(t){for(var e=[],n=t.cssRules||[],o=0,i=n.length;o=0;if(h)a=!0,l=AC[s],c=DC(r);else if($C.indexOf("".concat(s))>=0||!s&&NC(r)){var p=WC(r),d=AC[s]||NC(r);c=DC(r);for(var f=0,g=p.length;f0&&i[i.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]0&&i[i.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]0&&i[i.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]\n
\n ").concat(c?"\n ").concat(w,"\n ").concat(x,"\n "):'',"\n
\n
\n
\n ").concat(S,"\n ").concat(y?"").concat(y,""):'',"\n ").concat(v,"\n
\n
\n
\n
\n
\n ").concat(u?"
").concat(u||'',"
"):'',"\n
").concat(b||'',"
\n
\n \n
\n ")},Object.defineProperty(o.prototype,"em",{get:function(){return this.module.em},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"ppfx",{get:function(){return this.em.getConfig().stylePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"pfx",{get:function(){return this.config.stylePrefix},enumerable:!1,configurable:!0}),o.prototype.initComponent=function(){var t=this,e=this.model,n=this.config.onInit,o=e.components();this.listenTo(o,'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(n){return t.listenTo(e,n[0],n[1])})),this.$el.data('model',e),this.$el.data('collection',o),e.viewLayer=this,n.bind(this)({component:e,render:this.__render,listenTo:this.listenTo})},o.prototype.updateName=function(){this.getInputName().innerText=this.model.getName()},o.prototype.getVisibilityEl=function(){return this.eyeEl||(this.eyeEl=this.$el.children('[data-toggle-select]').find('[data-toggle-visible]')),this.eyeEl},o.prototype.updateVisibility=function(){var t=this,e=t.pfx,n=t.model,o=t.module,i="".concat(e,"layer-hidden"),r=!o.isVisible(n)?'addClass':'removeClass';this.$el[r](i),this.getVisibilityEl()[r]("".concat(e,"layer-off"))},o.prototype.toggleVisibility=function(t){null==t||t.stopImmediatePropagation();var e=this.module,n=this.model;e.setVisible(n,!e.isVisible(n))},o.prototype.handleEdit=function(t){null==t||t.stopPropagation();var e=this,n=e.em,o=e.$el,i=e.clsNoEdit,r=e.clsEdit,s=this.getInputName();s[HT]='true',s.focus(),document.execCommand('selectAll',!1),n.setEditing(!0),o.find(".".concat(this.inputNameCls)).removeClass(i).addClass(r)},o.prototype.handleEditKey=function(t){t.stopPropagation(),((0,ue.kl)(t)||(0,ue.r$)(t))&&this.handleEditEnd(t)},o.prototype.handleEditEnd=function(t){null==t||t.stopPropagation();var e=this,n=e.em,o=e.$el,i=e.clsNoEdit,r=e.clsEdit,s=this.getInputName(),a=s.textContent;s.scrollLeft=0,s[HT]='false',this.setName(a,{component:this.model,propName:'custom-name'}),n.setEditing(!1),o.find(".".concat(this.inputNameCls)).addClass(i).removeClass(r),this.updateName()},o.prototype.setName=function(t,e){var n=e.propName;this.model.set(n,t)},o.prototype.getInputName=function(){return this.inputName||(this.inputName=this.el.querySelector(".".concat(this.inputNameCls))),this.inputName},o.prototype.updateOpening=function(){var t=this,e=t.$el,n=t.model,o=t.pfx,i='open',r="".concat(o,"layer-open"),s=this.getCaret();this.module.isOpen(n)?(e.addClass(i),s.addClass(r)):(e.removeClass(i),s.removeClass(r))},o.prototype.toggleOpening=function(t){var e=this.model,n=this.module;null==t||t.stopImmediatePropagation(),e.get('components').length&&n.setOpen(e,!n.isOpen(e))},o.prototype.handleSelect=function(t){null==t||t.stopPropagation();var e=this.module,n=this.model;e.setLayerData(n,{selected:!0},{event:t})},o.prototype.handleHover=function(t){null==t||t.stopPropagation();var e=this.module,n=this.model;e.setLayerData(n,{hovered:!0})},o.prototype.handleHoverOut=function(t){null==t||t.stopPropagation();var e=this.module,n=this.model;e.setLayerData(n,{hovered:!1})},o.prototype.startSort=function(t){var e,n,o;t.stopPropagation();var i=this,r=i.em,s=i.sorter,a=i.model;if((!t.button||0===t.button)&&s){var l=(null===(n=null===(e=a.delegate)||void 0===e?void 0:e.move)||void 0===n?void 0:n.call(e,a))||a;s.onStart=zT(r),s.onMoveClb=qT(r),s.onEndMove=UT(r,[l]);var c=(null===(o=l.viewLayer)||void 0===o?void 0:o.el)||t.target;s.startSort(c)}},o.prototype.updateStatus=function(){HS.prototype.updateStatus.apply(this,[{avoidHover:!this.config.highlightHover,noExtHl:!0}])},o.prototype.checkChildren=function(){var t=this,e=t.model,n=t.clsNoChild,o=t.$el,i=t.module,r=i.getComponents(e).length,s=o.children(".".concat(this.clsTitleC)).children(".".concat(this.clsTitle)),a=this.cnt;a||(a=o.children('[data-count]').get(0),this.cnt=a),s[r?'removeClass':'addClass'](n),a&&(a.innerHTML=r||''),!r&&i.setOpen(e,!1)},o.prototype.getCaret=function(){return this.caret&&this.caret.length||(this.caret=this.$el.children(".".concat(this.clsTitleC)).find(".".concat(this.clsCaret))),this.caret},o.prototype.setRoot=function(n){var o;n=(0,t.isString)(n)?null===(o=this.em.getWrapper())||void 0===o?void 0:o.find(n)[0]:n;var i=(0,e.getModel)(n);i&&(this.stopListening(),this.model=i,this.initComponent(),this._rendered&&this.render())},o.prototype.updateLayerable=function(){(this.parentView||this).render()},o.prototype.__clearItems=function(){var t;null===(t=this.items)||void 0===t||t.remove()},o.prototype.remove=function(){for(var t=[],e=0;e\n ").concat(this.getPreview(),"\n \n
\n ").concat(this.getInfo(),"\n
\n
\n ⨯\n
\n ")},n.prototype.updateTarget=function(e){e&&e.set&&(e.set('attributes',(0,t.clone)(e.get('attributes'))),e.set('src',this.model.get('src')))},n.prototype.getPreview=function(){return''},n.prototype.getInfo=function(){return''},n.prototype.render=function(){var t=this.el;return t.innerHTML=this.template(this,this.model),t.className=this.className,this},n}(u.G7);const bE=OE;var wE=void 0&&(void 0).__extends||function(){var t=function(e,n){return t=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])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),xE=void 0&&(void 0).__makeTemplateObject||function(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t},SE=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return wE(n,e),n.prototype.getPreview=function(){var t=this,e=t.pfx,n=t.ppfx,o=t.model.get('src');return i(PE||(PE=xE(["\n
\n
\n "],["\n
\n
\n "])),e,o,e,n)},n.prototype.getInfo=function(){var t=this.pfx,e=this.model,n=e.get('name'),o=e.get('width'),r=e.get('height'),s=e.get('unitDim'),a=o&&r?"".concat(o,"x").concat(r).concat(s):'';return n=n||e.getFilename(),i(CE||(CE=xE(["\n
","
\n
","
\n "],["\n
","
\n
","
\n "])),t,n,t,a)},n.prototype.init=function(t){var e=this.pfx;this.className+=" ".concat(e,"asset-image")},n.prototype.onClick=function(){var e=this.model,n=this.pfx,o=this.__getBhv().select,i=this.config.onClick,r=this.collection;r.trigger('deselectAll'),this.$el.addClass(n+'highlight'),(0,t.isFunction)(o)?o(e,!1):(0,t.isFunction)(i)?i(e):this.updateTarget(r.target)},n.prototype.onDblClick=function(){var e=this.em,n=this.model,o=this.__getBhv().select,i=this.config.onDblClick,r=this.collection,s=r.target,a=r.onSelect;(0,t.isFunction)(o)?o(n,!0):(0,t.isFunction)(i)?i(n):(this.updateTarget(s),null==e||e.Modal.close()),(0,t.isFunction)(a)&&a(n)},n.prototype.onRemove=function(t){t.stopImmediatePropagation(),this.model.collection.remove(this.model)},n}(bE);const kE=SE;var PE,CE;SE.prototype.events={'click [data-toggle=asset-remove]':'onRemove',click:'onClick',dblclick:'onDblClick'};var TE=void 0&&(void 0).__assign||function(){return TE=Object.assign||function(t){for(var e,n=1,o=arguments.length;n\n
\n \n
\n \n
\n \n ")),"\n
\n
\n ").concat(i,"\n
\n
\n
\n
\n ")},e.prototype.handleSubmit=function(t){t.preventDefault();var e=this.getAddInput(),n=e&&e.value.trim(),o=this.config.handleAdd;if(n){e.value='';var i=this.getAssetsEl();i&&(i.scrollTop=0),o?o.bind(this)(n):this.options.globalCollection.add(n,{at:0})}},e.prototype.getAssetsEl=function(){return this.el.querySelector(".".concat(this.pfx,"assets"))},e.prototype.getAddInput=function(){return this.inputUrl&&this.inputUrl.value||(this.inputUrl=this.el.querySelector(".".concat(this.pfx,"add-asset input"))),this.inputUrl},e.prototype.removedAsset=function(t){this.collection.length||this.toggleNoAssets()},e.prototype.addToAsset=function(t){1==this.collection.length&&this.toggleNoAssets(!0),this.addAsset(t)},e.prototype.addAsset=function(t,e){void 0===e&&(e=null);var n=e,o=this.collection,i=this.config,r=new t.typeView({model:t,collection:o,config:i}).render().el;if(n)n.appendChild(r);else{var s=this.getAssetsEl();s&&s.insertBefore(r,s.firstChild)}return r},e.prototype.toggleNoAssets=function(t){void 0===t&&(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)}},e.prototype.deselectAll=function(){var t=this.pfx;this.$el.find(".".concat(t,"highlight")).removeClass("".concat(t,"highlight"))},e.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(n){return t.addAsset(n,e)})),n.append(e)},e.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},e}(u.G7);const ME=ZE;ZE.prototype.events={submit:'handleSubmit'};var VE=void 0&&(void 0).__extends||function(){var t=function(e,n){return t=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])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),DE=void 0&&(void 0).__makeTemplateObject||function(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t},IE=function(t){function e(n){void 0===n&&(n={});var o=t.call(this,n)||this;o.options=n;var i=n.config||{};o.module=n.module,o.config=i,o.em=o.config.em,o.pfx=i.stylePrefix||'',o.ppfx=i.pStylePrefix||'',o.target=o.options.globalCollection||{},o.uploadId=o.pfx+'uploadFile',o.disabled=void 0!==i.disableUpload?i.disableUpload:!i.upload&&!i.embedAsBase64,o.multiUpload=void 0===i.multiUpload||i.multiUpload;var r=i.uploadFile;return r?o.uploadFile=r.bind(o):!i.upload&&i.embedAsBase64&&(o.uploadFile=e.embedAsBase64),o.delegateEvents(),o}return VE(e,t),e.prototype.template=function(t){var e=t.pfx,n=t.title,o=t.uploadId,r=t.disabled,s=t.multiUpload;return i(WE||(WE=DE(["\n
\n
","
\n \n
\n \n "],["\n
\n
","
\n \n
\n \n "])),e,n,o,r?'disabled':'',s?'multiple':'')},e.prototype.events=function(){return{'change [data-input]':'uploadFile'}},e.prototype.onUploadStart=function(){var t=this.module;t&&t.__propEv('asset:upload:start')},e.prototype.onUploadEnd=function(t){var e=this.$el,n=this.module;n&&n.__propEv('asset:upload:end',t);var o=e.find('input');o&&o.val('')},e.prototype.onUploadError=function(t){var e=this.module;console.error(t),this.onUploadEnd(t),e&&e.__propEv('asset:upload:error',t)},e.prototype.onUploadResponse=function(t,e){var n,o=this,i=o.module,r=o.config,s=o.target;try{n='string'==typeof t?JSON.parse(t):t}catch(e){n=t}i&&i.__propEv('asset:upload:response',n),r.autoAdd&&s&&s.add(n.data,{at:0}),this.onUploadEnd(t),null==e||e(n)},e.prototype.uploadFile=function(t,e){var n=this,o=t.dataTransfer?t.dataTransfer.files:t.target.files,i=this.config,r=i.beforeUpload;if(!1!==(r&&r(o))){var s=new FormData,a=i.params,l=i.customFetch,c=i.fetchOptions;for(var u in a)s.append(u,a[u]);if(this.multiUpload)for(var h=0;h").concat(o.dropzoneContent,"")),h(),'draggable'in r&&[r,a].forEach((function(t){t.ondragover=p,t.ondragleave=d,t.ondrop=f}))},e.prototype.render=function(){var t=this,e=t.$el,n=t.pfx,o=t.em;return e.html(this.template({title:o&&o.t('assetManager.uploadTitle'),uploadId:this.uploadId,disabled:this.disabled,multiUpload:this.multiUpload,pfx:n})),this.initDrop(),e.attr('class',n+'file-uploader'),this},e.embedAsBase64=function(t,e){var n=this,o=t.dataTransfer?t.dataTransfer.files:t.target.files,i={data:[]};if(FileReader){for(var r=[],s=/^(.+)\/(.+)$/,a=function(t){var e=new Promise((function(e,n){var o=new FileReader;o.addEventListener('load',(function(i){var r,a=t.name,l=s.exec(t.type);if('image'===(r=l?l[1]:t.type)){var c={src:o.result,name:a,type:r,height:0,width:0},u=new Image;u.addEventListener('error',(function(t){n(t)})),u.addEventListener('load',(function(){c.height=u.height,c.width=u.width,e(c)})),u.src=c.src}else e(r?{src:o.result,name:a,type:r}:o.result)})),o.addEventListener('error',(function(t){n(t)})),o.addEventListener('abort',(function(t){n('Aborted')})),o.readAsDataURL(t)}));r.push(e)},l=0,c=o;l0&&(r=e.split('.').reduce((function(e,n){if(!(0,t.isUndefined)(e))return e[n]}),i)),r}},o.prototype._debug=function(t,e){void 0===e&&(e={});var n=this.em,o=this.config;(e.debug||o.debug)&&n&&n.logWarning(t)},o.prototype.destroy=function(){},o}(_);const fQ=dQ;var gQ=void 0&&(void 0).__extends||function(){var t=function(e,n){return t=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])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),mQ=void 0&&(void 0).__assign||function(){return mQ=Object.assign||function(t){for(var e,n=1,o=arguments.length;na+u-e||rl+c-e)return 1},o.prototype.getCurrentPos=function(){var t=this.eventMove;return{x:(null==t?void 0:t.pageX)||0,y:(null==t?void 0:t.pageY)||0}},o.prototype.getDim=function(t){var e,n,o,i,r=this.em,s=this.canvasRelative,a=null==r?void 0:r.Canvas,l=a?a.getElementOffsets(t):{};if(s&&r){var c=a.getElementPos(t,{noScroll:1});e=c.top,n=c.left,o=c.height,i=c.width}else{var u=this.offset(t);e=this.relative?t.offsetTop:u.top-(this.wmargin?-1:1)*this.elT,n=this.relative?t.offsetLeft:u.left-(this.wmargin?-1:1)*this.elL,o=t.offsetHeight,i=t.offsetWidth}return{top:e,left:n,height:o,width:i,offsets:l}},o.prototype.getChildrenDim=function(n){var o=this,i=[];if(!n)return i;var r=this.getTargetModel(n);if(r&&r.view&&!this.ignoreViewChildren){var s=r.getCurrentView?r.getCurrentView():r.view;n=s.getChildrenContainer()}return(0,t.each)(n.children,(function(t,r){var s=t,a=(0,e.getModel)(s,l["default"]),c=a&&a.index?a.index():r;if((0,ue.BM)(s)||o.matches(s,o.itemSel)){var u,h=o.getDim(s),p=o.direction;u='v'==p||'h'!=p&&o.isInFlow(s,n),h.dir=u,h.el=s,h.indexEl=c,i.push(h)}})),i},o.prototype.nearBorders=function(t,e,n){var o=!1,i=this.borderOffset,r=e||0,s=n||0,a=t.top,l=t.left,c=t.height,u=t.width;return(a+i>s||s>a+c-i||l+i>r||r>l+u-i)&&(o=!0),o},o.prototype.findPosition=function(t,e,n){for(var o,i={index:0,indexEl:0,method:'before'},r=0,s=0,a=0,l=0,c=0,u=0,h=0,p=t.length;hs||a&&c>=a||r&&f+mw&&(O.at=d-1))}r&&(b?(delete O.at,s=m.getView().insertComponent(r,O)):s=g.add(r,O)),delete this.dropContent,delete this.prevTarget}else if(a){var S=f.dropInfo||(null==m?void 0:m.get('droppable')),k=f.dragInfo||(null==v?void 0:v.get('draggable'));!g&&p.push('Target collection not found'),!_&&S&&p.push("Target is not droppable, accepts [".concat(S,"]")),!y&&k&&p.push("Component not draggable, acceptable by [".concat(k,"]")),a.logWarning('Invalid target position',{errors:p,model:v,context:'sorter',target:m})}return null==a||a.trigger('sorter:drag:end',{targetCollection:g,modelToDrop:r,warns:p,validResult:f,dst:n,srcEl:h}),s},o.prototype.rollback=function(t){(0,ue.S1)(this.getDocuments(),'keydown',this.rollback),27==(t.which||t.keyCode)&&(this.moved=!1,this.endMove())},o}(u.G7);const OQ=_Q;var bQ=void 0&&(void 0).__assign||function(){return bQ=Object.assign||function(t){for(var e,n=1,o=arguments.length;n_?m.h=Math.round(m.w/_):m.w=Math.round(m.h*_)}for(var O in~v.indexOf('l')&&(m.l+=r.w-m.w),~v.indexOf('t')&&(m.t+=r.h-m.h),m){var b=O;m[b]=parseInt("".concat(m[b]),10)}return m}},n}();const xQ=wQ;var SQ=void 0&&(void 0).__extends||function(){var t=function(e,n){return t=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])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),kQ=void 0&&(void 0).__assign||function(){return kQ=Object.assign||function(t){for(var e,n=1,o=arguments.length;n=0&&RQ.splice(o,1),93!=n&&224!=n||(n=91),n in EQ)for(e in EQ[n]=!1,AQ)AQ[e]==n&&(WQ[e]=!1)}function NQ(){for(CQ in EQ)EQ[CQ]=!1;for(CQ in AQ)WQ[CQ]=!1}function WQ(t,e,n){var o,i;o=LQ(t),void 0===n&&(n=e,e='all');for(var r=0;r1&&(i=YQ(t),t=[t[t.length-1]]),t=t[0],(t=jQ(t))in TQ||(TQ[t]=[]),TQ[t].push({shortcut:o[r],scope:e,method:n,key:o[r],mods:i})}for(CQ in AQ)WQ[CQ]=!1;function XQ(){return QQ||'all'}function LQ(t){var e;return''==(e=(t=t.replace(/\s/g,'')).split(','))[e.length-1]&&(e[e.length-2]+=','),e}function YQ(t){for(var e=t.slice(0,t.length-1),n=0;n1&&(a=YQ(o)),t=o[o.length-1],t=jQ(t),void 0===e&&(e=XQ()),!TQ[t])return;for(i=0;i0,EQ)(!EQ[o]&&ZQ(n.mods,+o)>-1||EQ[o]&&-1==ZQ(n.mods,+o))&&(r=!1);(0!=n.mods.length||EQ[16]||EQ[18]||EQ[17]||EQ[91])&&!r||!1===n.method(t,n)&&(t.preventDefault?t.preventDefault():t.returnValue=!1,t.stopPropagation&&t.stopPropagation(),t.cancelBubble&&(t.cancelBubble=!0))}}(t)})),zQ(t.document,'keyup',IQ),zQ(t,'focus',NQ)};const qQ=WQ;const UQ={defaults:{'core:undo':{keys:'⌘+z, ctrl+z',handler:'core:undo',opts:{prevent:!0}},'core:redo':{keys:'⌘+shift+z, ctrl+shift+z',handler:'core:redo',opts:{prevent:!0}},'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 BQ=void 0&&(void 0).__extends||function(){var t=function(e,n){return t=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])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),FQ=void 0&&(void 0).__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var o,i=0,r=e.length;i\n
\n
").concat(i,"
\n
\n
\n
\n
").concat(o,"
\n
\n
\n \n
")},e.prototype.events=function(){return{click:'onClick','click [data-close-modal]':'hide'}},e.prototype.onClick=function(t){this.config.backdrop&&t.target===this.el&&this.hide()},e.prototype.getCollector=function(){return this.$collector||(this.$collector=this.$el.find('.'+this.pfx+'collector')),this.$collector},e.prototype.getContent=function(){var t=this.pfx;return this.$content||(this.$content=this.$el.find(".".concat(t,"content #").concat(t,"c"))),this.$content},e.prototype.getTitle=function(t){return void 0===t&&(t={}),this.$title||(this.$title=this.$el.find('.'+this.pfx+'title')),t.$?this.$title:this.$title.get(0)},e.prototype.updateContent=function(){var t=this.getContent(),e=t.children(),n=this.getCollector(),o=this.model.get('content');e.length&&n.append(e),t.empty().append(o)},e.prototype.updateTitle=function(){var t=this.getTitle({$:!0});t&&t.empty().append(this.model.get('title'))},e.prototype.updateOpen=function(){this.el.style.display=this.model.get('open')?'':'none'},e.prototype.hide=function(){this.model.close()},e.prototype.show=function(){this.model.open()},e.prototype.updateAttr=function(t){var e=this,n=e.pfx,o=e.$el,i=e.el,r=[].slice.call(i.attributes).map((function(t){return t.name}));o.removeAttr(r.join(' ')),o.attr(nA(nA({},t||{}),{class:"".concat(n,"container ").concat(t&&t.class||'').trim()}))},e.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},e}(Fe);const iA=oA;var rA=void 0&&(void 0).__extends||function(){var t=function(e,n){return t=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])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),sA=function(e){function n(n){var o=e.call(this,n,'Modal',KQ)||this;return o.model=new tA(o),o.model.on('change:open',(function(t,e){n.trigger("modal:".concat(e?'open':'close'))})),o.model.on('change',(0,t.debounce)((function(){var e=o._evData(),i=o.config.custom;(0,t.isFunction)(i)&&i(e),n.trigger('modal',e)}),0)),o}return rA(n,e),n.prototype._evData=function(){var e=this,n=this.getTitle(),o=this.getContent(),i=this.model.attributes;return{open:i.open,attributes:i.attributes,title:(0,t.isString)(n)?(0,ue.rw)(n):n,content:(0,t.isString)(o)?(0,ue.rw)(o):o.get?o.get(0):o,close:function(){e.close()}}},n.prototype.postRender=function(t){var e=t.model.config.el||t.el,n=this.render();n&&(null==e||e.appendChild(n))},n.prototype.open=function(t){void 0===t&&(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},n.prototype.close=function(){return this.model.close(),this},n.prototype.onceClose=function(t){return this.em.once('modal:close',t),this},n.prototype.onceOpen=function(t){return this.em.once('modal:open',t),this},n.prototype.isOpen=function(){return!!this.model.get('open')},n.prototype.setTitle=function(t){return this.model.set('title',t),this},n.prototype.getTitle=function(){return this.model.get('title')},n.prototype.setContent=function(t){return this.model.set('content',' '),this.model.set('content',t),this},n.prototype.getContent=function(){return this.model.get('content')},n.prototype.getContentEl=function(){var t;return null===(t=this.modal)||void 0===t?void 0:t.getContent().get(0)},n.prototype.getModel=function(){return this.model},n.prototype.render=function(){var t;if(!this.config.custom){var e=iA.extend(this.config.extend),n=this.modal&&this.modal.el;return this.modal=new e({el:n,model:this.model,config:this.config}),null===(t=this.modal)||void 0===t?void 0:t.render().el}},n.prototype.destroy=function(){var t;null===(t=this.modal)||void 0===t||t.remove()},n}(_);const aA=sA;var lA='sw-visibility',cA='export-template',uA='open-sm',hA='open-tm',pA='open-layers',dA='open-blocks',fA='open-pages',gA='fullscreen',mA='preview';const vA={stylePrefix:'pn-',defaults:[{id:'commands',buttons:[{}]},{id:'options',buttons:[{active:!0,id:lA,className:'fa fa-square-o',command:'core:component-outline',context:lA,attributes:{title:'View components'}},{id:mA,className:'fa fa-eye',command:mA,context:mA,attributes:{title:'Preview'}},{id:gA,className:'fa fa-arrows-alt',command:gA,context:gA,attributes:{title:'Fullscreen'}},{id:cA,className:'fa fa-code',command:cA,attributes:{title:'View code'}}]},{id:'views',buttons:[{id:uA,className:'fa fa-paint-brush',command:uA,active:!0,togglable:!1,attributes:{title:'Open Style Manager'}},{id:hA,className:'fa fa-cog',command:hA,togglable:!1,attributes:{title:'Settings'}},{id:pA,className:'fa fa-bars',command:pA,togglable:!1,attributes:{title:'Open Layer Manager'}},{id:dA,className:'fa fa-th-large',command:dA,togglable:!1,attributes:{title:'Open Blocks'}},{id:fA,className:'fa fa-th-large',command:fA,togglable:!1,attributes:{title:'Open Pages'}}]}]};var yA=void 0&&(void 0).__extends||function(){var t=function(e,n){return t=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])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}();const _A=function(t){function e(e,n){var o=t.call(this,e,n)||this;return o.get('buttons').length&&o.set('buttons',new wA(o.module,o.get('buttons'))),o}return yA(e,t),e.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(e.prototype,"className",{get:function(){return this.get('className')},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"command",{get:function(){return this.get('command')},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"active",{get:function(){return this.get('active')},set:function(t){this.set('active',t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"togglable",{get:function(){return this.get('togglable')},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"runDefaultCommand",{get:function(){return this.get('runDefaultCommand')},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"stopDefaultCommand",{get:function(){return this.get('stopDefaultCommand')},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"disable",{get:function(){return this.get('disable')},enumerable:!1,configurable:!0}),e}(w.Z);var OA=void 0&&(void 0).__extends||function(){var t=function(e,n){return t=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])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),bA=function(t){function e(e,n){return t.call(this,e,n,_A)||this}return OA(e,t),e.prototype.deactivateAllExceptOne=function(t,e){this.forEach((function(n,o){n!==t&&(n.set('active',!1),e&&n.get('buttons').length&&n.get('buttons').deactivateAllExceptOne(t,e))}))},e.prototype.deactivateAll=function(t,e){var n=t||'';this.forEach((function(t){t.get('context')==n&&t!==e&&t.set('active',!1,{fromCollection:!0})}))},e.prototype.disableAllButtons=function(t){var e=t||'';this.forEach((function(t,n){t.get('context')==e&&t.set('disable',!0)}))},e.prototype.disableAllButtonsExceptOne=function(t,e){this.forEach((function(n,o){n!==t&&(n.set('disable',!0),e&&n.get('buttons').length&&n.get('buttons').disableAllButtonsExceptOne(t,e))}))},e}(G);const wA=bA;bA.prototype.model=_A;var xA=void 0&&(void 0).__extends||function(){var t=function(e,n){return t=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])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}();const SA=function(t){function e(e,n){var o=t.call(this,e,n)||this,i=o.get('buttons')||[];return o.buttons=new wA(e,i),o}return xA(e,t),e.prototype.defaults=function(){return{id:'',content:'',visible:!0,buttons:[],attributes:{}}},Object.defineProperty(e.prototype,"buttons",{get:function(){return this.get('buttons')},set:function(t){this.set('buttons',t)},enumerable:!1,configurable:!0}),e}(w.Z);var kA=void 0&&(void 0).__extends||function(){var t=function(e,n){return t=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])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),PA=function(t){function e(e,n){return t.call(this,e,n,SA)||this}return kA(e,t),e}(G);const CA=PA;PA.prototype.model=SA;var TA=void 0&&(void 0).__extends||function(){var t=function(e,n){return t=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])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),EA=void 0&&(void 0).__assign||function(){return EA=Object.assign||function(t){for(var e,n=1,o=arguments.length;n\n
","
\n
\n \n "],["\n
\n
","
\n
\n
\n "])),e,e,n,e,o,e)},e.prototype.initialize=function(t){this.config=t.config||{},this.pfx=this.config.stylePrefix},e.prototype.render=function(){var t,e,n=this,o=n.model,i=n.pfx,r=n.$el,s=o.toJSON(),a=o.get('input')||(null===(e=(t=o).getElement)||void 0===e?void 0:e.call(t));return s.pfx=i,r.html(this.template(s)),r.attr('class',"".concat(i,"editor-c")),r.find("#".concat(i,"code")).append(a),this},e}(u.G7);const i$=o$;var r$,s$=void 0&&(void 0).__extends||function(){var t=function(e,n){return t=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])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),a$=void 0&&(void 0).__assign||function(){return a$=Object.assign||function(t){for(var e,n=1,o=arguments.length;n=0})))return!1;if((0,t.isBoolean)(n))return!0;if((0,t.isArray)(n)&&y$(e).some((function(t){return n.indexOf(t)>=0})))return!0}return!1},on:function(e,n,o){var r=this;!this.beforeCache&&(this.beforeCache=e.previousAttributes());var s=o||n||{};if(s.noUndo&&setTimeout((function(){r.beforeCache=null})),!v$(s)){var a=e.toJSON({fromUndo:i}),l={object:e,before:this.beforeCache,after:a};if(this.beforeCache=null,!(0,t.isEmpty)(a))return l}}}),o.um.changeUndoType('add',{on:function(t,e,n){if(void 0===n&&(n={}),!v$(n)&&o.isRegistered(e))return{object:e,before:void 0,after:t,options:g$(g$({},n),{fromUndo:i})}}}),o.um.changeUndoType('remove',{on:function(t,e,n){if(void 0===n&&(n={}),!v$(n)&&o.isRegistered(e))return{object:e,before:t,after:void 0,options:g$(g$({},n),{fromUndo:i})}}}),o.um.changeUndoType('reset',{undo:function(t,e){t.reset(e,{fromUndo:i})},redo:function(t,e,n){t.reset(n,{fromUndo:i})},on:function(t,e){if(void 0===e&&(e={}),!v$(e)&&o.isRegistered(t))return{object:t,before:e.previousModels,after:m$([],t.models,!0),options:g$(g$({},e),{fromUndo:i})}}}),o.um.on('undo redo',(function(){n.trigger('change:canvasOffset'),n.getSelectedAll().map((function(t){return t.trigger('rerender:layer')}))})),['undo','redo'].forEach((function(t){return o.um.on(t,(function(){return n.trigger(t)}))})),o}return f$(n,e),n.prototype.postLoad=function(){var t=this.config,e=this.em;t.trackSelection&&e&&this.add(e.get('selected'))},n.prototype.add=function(t){return this.um.register(t),this},n.prototype.remove=function(t){return this.um.unregister(t),this},n.prototype.removeAll=function(){return this.um.unregisterAll(),this},n.prototype.start=function(){return this.um.startTracking(),this},n.prototype.stop=function(){return this.um.stopTracking(),this},n.prototype.undo=function(t){void 0===t&&(t=!0);var e=this.em,n=this.um;return!e.isEditing()&&n.undo(t),this},n.prototype.undoAll=function(){return this.um.undoAll(),this},n.prototype.redo=function(t){void 0===t&&(t=!0);var e=this.em,n=this.um;return!e.isEditing()&&n.redo(t),this},n.prototype.redoAll=function(){return this.um.redoAll(),this},n.prototype.hasUndo=function(){return!!this.um.isAvailable('undo')},n.prototype.hasRedo=function(){return!!this.um.isAvailable('redo')},n.prototype.isRegistered=function(t){return!!this.getInstance().objectRegistry.isRegistered(t)},n.prototype.getStack=function(){return this.um.stack},n.prototype.getStackGroup=function(){var t=[],e=[];return this.getStack().forEach((function(n){var o=n.get('magicFusionIndex');e.indexOf(o)<0&&(e.push(o),t.push(n))})),t},n.prototype.skip=function(t){var e=!!this.um.isTracking();e&&this.stop(),t(),e&&this.start()},n.prototype.getGroupedStack=function(){var e={},n=this.getStack();return n.forEach((function(t,n){var o=t.get('magicFusionIndex'),i=function(t,e){var n=t.attributes,o=n.type,i=n.after,r=n.before,s=n.object,a=n.options;return{index:e,type:o,after:i,before:r,object:s,options:void 0===a?{}:a}}(t,n);e[o]?e[o].push(i):e[o]=[i]})),Object.keys(e).map((function(n){var o=e[n];return{index:o[o.length-1].index,actions:o,labels:(0,t.unique)(o.reduce((function(t,e){var n,o=null===(n=e.options)||void 0===n?void 0:n.action;return o&&t.push(o),t}),[]))}}))},n.prototype.goToGroup=function(e){var n=this;if(e){var o=this.getPointer(),i=e.index-o;(0,t.times)(Math.abs(i),(function(){n[i<0?'undo':'redo'](!1)}))}},n.prototype.getPointer=function(){return this.getStack().pointer},n.prototype.clear=function(){return this.um.clear(),this},n.prototype.getInstance=function(){return this.um},n.prototype.destroy=function(){this.clear().removeAll()},n}(_);const O$=_$;const b$={stylePrefix:'rte-',adjustToolbar:!0,actions:['bold','italic','underline','strikethrough','link','wrap'],custom:!1};var w$,x$=void 0&&(void 0).__assign||function(){return x$=Object.assign||function(t){for(var e,n=1,o=arguments.length;nB',attributes:{title:'Bold'},result:function(t){return t.exec('bold')}},italic:{name:'italic',icon:'I',attributes:{title:'Italic'},result:function(t){return t.exec('italic')}},underline:{name:'underline',icon:'U',attributes:{title:'Underline'},result:function(t){return t.exec('underline')}},strikethrough:{name:'strikethrough',icon:'S',attributes:{title:'Strike-through'},result:function(t){return t.exec('strikeThrough')}},link:{icon:"\n \n ",name:'link',attributes:{style:'font-size:1.4rem;padding:0 4px 2px;',title:'Link'},state:function(t){return t&&t.selection()&&T$(t)?k$:P$},result:function(t){T$(t)?t.exec('unlink'):t.insertHTML("").concat(t.selection(),""),{select:!0})}},wrap:{name:'wrap',icon:"\n \n ",attributes:{title:'Wrap for style'},state:function(t){return(null==t?void 0:t.selection())&&T$(t,'SPAN')?C$:P$},result:function(t){!T$(t,'SPAN')&&t.insertHTML("").concat(t.selection(),""),{select:!0})}}},A$=function(){function n(e,n,o){void 0===o&&(o={});var i=this;if(this.em=e,this.settings=o,n[S$])return n[S$];n[S$]=this,this.setEl(n),this.updateActiveActions=this.updateActiveActions.bind(this),this.__onKeydown=this.__onKeydown.bind(this),this.__onPaste=this.__onPaste.bind(this);var r=(o.actions||[]).map((function(e){var n=e;return(0,t.isString)(e)?n=x$({},Q$[e]):Q$[e.name]&&(n=x$(x$({},Q$[e.name]),e)),n})),s=r.length?r:Object.keys(Q$).map((function(t){return Q$[t]}));o.classes=x$({actionbar:'actionbar',button:'action',active:'active',disabled:'disabled',inactive:'inactive'},o.classes);var a=o.classes,l=o.actionbar;if(this.actionbar=l,this.classes=a,this.actions=s,!l){if(!this.isCustom(o.module)){var c=o.actionbarContainer;(l=document.createElement('div')).className=a.actionbar,null==c||c.appendChild(l),this.actionbar=l}s.forEach((function(t){return i.addAction(t)}))}return o.styleWithCSS&&this.exec('styleWithCSS'),this}return n.prototype.isCustom=function(t){var e=t||this.em.RichTextEditor;return!(!(null==e?void 0:e.config.custom)&&!(null==e?void 0:e.customRte))},n.prototype.destroy=function(){},n.prototype.setEl=function(t){this.el=t,this.doc=t.ownerDocument},n.prototype.updateActiveActions=function(){var t=this,e=this.getActions();e.forEach((function(e){var n=e.update,o=e.btn,i=t.classes,r=i.active,s=i.inactive,a=i.disabled,l=e.state,c=e.name,u=t.doc,h=w$.INACTIVE;if(o&&(o.className=o.className.replace(r,'').trim(),o.className=o.className.replace(s,'').trim(),o.className=o.className.replace(a,'').trim()),l){var p=l(t,u);if(h=p,o)switch(p){case k$:o.className+=" ".concat(r);break;case P$:o.className+=" ".concat(s);break;case C$:o.className+=" ".concat(a)}}else u.queryCommandSupported(c)&&u.queryCommandState(c)&&(o&&(o.className+=" ".concat(r)),h=w$.ACTIVE);e.currentState=h,null==n||n(t,e)})),e.length&&this.em.RichTextEditor.__dbdTrgCustom()},n.prototype.enable=function(t){return this.enabled?this:this.__toggleEffects(!0,t)},n.prototype.disable=function(){return this.__toggleEffects(!1)},n.prototype.__toggleEffects=function(t,e){void 0===t&&(t=!1),void 0===e&&(e={});var n=t?ue.on:ue.S1,o=this.el,i=this.doc,r=this.actionbarEl();if(r&&(r.style.display=t?'':'none'),o.contentEditable="".concat(!!t),n(o,'mouseup keyup',this.updateActiveActions),n(i,'keydown',this.__onKeydown),n(i,'paste',this.__onPaste),this.enabled=t,t){var s=e.event;if(this.syncActions(),this.updateActiveActions(),s){var a=null;if(i.caretRangeFromPoint){var l=(0,ue.VB)(s);a=i.caretRangeFromPoint(l.clientX,l.clientY)}else s.rangeParent&&(a=i.createRange()).setStart(s.rangeParent,s.rangeOffset);var c=i.getSelection();null==c||c.removeAllRanges(),a&&(null==c||c.addRange(a))}o.focus()}return this},n.prototype.__onKeydown=function(t){var e=t,n=this.doc;'Enter'!==e.key||['insertOrderedList','insertUnorderedList'].some((function(t){return n.queryCommandState(t)}))||(n.execCommand('insertLineBreak'),e.preventDefault())},n.prototype.__onPaste=function(t){var e=t.clipboardData||window.clipboardData,n=e.getData('text'),o=e.getData('text/html');if(n&&!o){t.preventDefault();var i=n.replace(/(?:\r\n|\r|\n)/g,'
');this.doc.execCommand('insertHTML',!1,i)}},n.prototype.syncActions=function(){var t=this;this.getActions().forEach((function(e){if(t.actionbar&&(!e.state||e.state&&e.state(t,t.doc)>=0)){var n=e.event||'click',o=e.btn;o&&(o["on".concat(n)]=function(){e.result(t,e),t.updateActiveActions()})}}))},n.prototype.addAction=function(t,e){void 0===e&&(e={});var n=e.sync,o=this.actionbarEl();if(o){var i=t.icon,r=t.attributes,s=void 0===r?{}:r,a=document.createElement('span');for(var l in a.className=this.classes.button,t.btn=a,s)a.setAttribute(l,s[l]);'string'==typeof i?a.innerHTML=i:a.appendChild(i),o.appendChild(a)}n&&(this.actions.push(t),this.syncActions())},n.prototype.getActions=function(){return this.actions},n.prototype.selection=function(){return this.doc.getSelection()},n.prototype.exec=function(t,e){this.doc.execCommand(t,!1,e)},n.prototype.actionbarEl=function(){return this.actionbar},n.prototype.insertHTML=function(n,o){var i=(void 0===o?{}:o).select,r=this,s=r.em,a=r.doc,l=r.el,c=a.getSelection();if(c&&c.rangeCount){var u=(0,e.getComponentModel)(l)||s.getSelected(),h=a.createElement('div'),p=c.getRangeAt(0);p.deleteContents(),(0,t.isString)(n)?h.innerHTML=n:n&&h.appendChild(n),Array.prototype.slice.call(h.childNodes).forEach((function(t){p.insertNode(t)})),c.removeAllRanges(),c.addRange(p),l.focus(),i&&u&&(u.once('rte:disable',(function(){var t=u.find("[".concat(E$,"]"))[0];t&&(s.setSelected(t),t.removeAttributes(E$))})),u.trigger('disable'))}},n}();const $$=A$;var j$=void 0&&(void 0).__extends||function(){var t=function(e,n){return t=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])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),R$=void 0&&(void 0).__awaiter||function(t,e,n,o){return new(n||(n=Promise))((function(i,r){function s(t){try{l(o.next(t))}catch(t){r(t)}}function a(t){try{l(o["throw"](t))}catch(t){r(t)}}function l(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}l((o=o.apply(t,e||[])).next())}))},Z$=void 0&&(void 0).__generator||function(t,e){var n,o,i,r,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(a){return function(l){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;r&&(r=0,a[0]&&(s=0)),s;)try{if(n=1,o&&(i=2&a[0]?o["return"]:a[0]?o["throw"]||((i=o["return"])&&i.call(o),0):o.next)&&!(i=i.call(o,a[1])).done)return i;switch(o=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,o=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!(i=s.trys,(i=i.length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]=0}))),g=this.get('onChange'),m={property:this,from:h,to:u,value:l,opts:n};r.__trgEv(r.events.propertyUpdate,m),g&&g(m),f&&this.__upTargetsStyle(((o={})[s]=l,o),n)},o.prototype.__upTargetsStyle=function(t,e){var n,o=null===(n=this.em)||void 0===n?void 0:n.get('StyleManager');null==o||o.addStyleTargets(L$(L$({},t),{__p:!!e.avoidStore}),e)},o.prototype._up=function(t,e){void 0===e&&(e={}),e.noTarget&&(e.__up=!0);var n=e.partial,o=Y$(e,["partial"]);return t.__p=!(!o.avoidStore&&!n),this.set(t,L$(L$({},o),{avoidStore:t.__p}))},o.prototype.up=function(t,e){void 0===e&&(e={}),this.set(t,L$(L$({},e),{__up:!0}))},o.prototype.init=function(){},o.prototype.getId=function(){return this.get('id')},o.prototype.getType=function(){return this.get('type')},o.prototype.getName=function(){return this.get('property')},o.prototype.getLabel=function(t){var e;void 0===t&&(t={});var n=t.locale,o=void 0===n||n,i=this.getId(),r=this.get('name')||this.get('label');return o&&(null===(e=this.em)||void 0===e?void 0:e.t("styleManager.properties.".concat(i)))||r},o.prototype.getValue=function(t){void 0===t&&(t={});var e=t.noDefault,n=this.get('value');return this.hasValue()||e?n:this.getDefaultValue()},o.prototype.hasValue=function(e){void 0===e&&(e={});var n=e.noParent&&this.getParentTarget(),o=this.get('value');return!(0,t.isUndefined)(o)&&''!==o&&!n},o.prototype.hasValueParent=function(){return this.hasValue()&&!this.hasValue({noParent:!0})},o.prototype.getStyle=function(t){var n;void 0===t&&(t={});var o=this.getName();return(n={})[t.camelCase?(0,e.camelCase)(o):o]=this.__getFullValue(t),n},o.prototype.getDefaultValue=function(){var e=this.get('default');return"".concat((0,t.isUndefined)(e)?this.get('defaults'):e)},o.prototype.upValue=function(t,e){void 0===e&&(e={});var n=null===t||''===t?this.__getClearProps():this.__parseValue(t,e);return this._up(n,e)},o.prototype.isVisible=function(){return!!this.get('visible')},o.prototype.clear=function(t){return void 0===t&&(t={}),this._up(this.__getClearProps(),L$(L$({},t),{__clear:!0})),this},o.prototype.canClear=function(){var t=this.getParent();return t?t.__canClearProp(this):this.hasValue({noParent:!0})},o.prototype.getParent=function(){return this.__getParentProp()},o.prototype.isFull=function(){return!!this.get('full')},o.prototype.__parseValue=function(t,e){return this.parseValue(t,e)},o.prototype.__getClearProps=function(){return{value:''}},o.prototype.setValue=function(t,e,n){void 0===e&&(e=!0),void 0===n&&(n={});var o=this.parseValue(t),i=!e;!i&&this.set({value:void 0},{avoidStore:i,silent:!0}),this.set(o,L$({avoidStore:i},n))},o.prototype.setValueFromInput=function(t,e,n){void 0===n&&(n={}),this.setValue(t,e,L$(L$({},n),{fromInput:1}))},o.prototype.parseValue=function(e,n){void 0===n&&(n={});var o={value:e},i='!important',r=this.get('functionName')||'';if((0,t.isString)(e)&&-1!==e.indexOf(i)&&(o.value=e.replace(i,'').trim(),o.important=!0),!r&&!n.complete)return o;var s=[],a="".concat(o.value).trim(),l=a.indexOf('(')+1,c=r||a.substring(0,l-1);if(c&&(o.functionName=c),!r||0===a.indexOf("".concat(r,"("))){var u=a.lastIndexOf(')');s.push(l),u>=0&&s.push(u),o.value=String.prototype.substring.apply(a,s)}if(n.numeric){var h=parseFloat(o.value);o.unit=o.value.replace(h,''),o.value=h}return o},o.prototype.__getFullValue=function(t){var e=(void 0===t?{}:t).withDefault;return!this.hasValue()&&e?this.getDefaultValue():this.getFullValue()},o.prototype.getFullValue=function(e,n){void 0===n&&(n={});var o=this.get('functionName'),i=this.getDefaultValue(),r=(0,t.isUndefined)(e)?this.get('value'):e,s=!(0,t.isUndefined)(r)&&''!==r;if(r&&i&&r===i)return i;if(o&&s){var a='url'===o?"'".concat(r.replace(/'|"/g,''),"'"):r;r="".concat(o,"(").concat(a,")")}return s&&this.get('important')&&!n.skipImportant&&(r="".concat(r," !important")),r||''},o.prototype.__setParentTarget=function(t){this.up({parentTarget:t})},o.prototype.getParentTarget=function(){return this.get('parentTarget')||null},o.prototype.__parseFn=function(t){void 0===t&&(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()}},o.prototype.__checkVisibility=function(n){var o=n.target,i=n.component,r=n.sectors,s=i||o;if(!s)return!1;var a=this.getId(),l=this.getName(),c=this.get('toRequire'),u=this.get('requires'),h=this.get('requiresParent'),p=s.get('unstylable'),d=s.get('stylable-require'),f=s.get('stylable');if((0,t.isArray)(f)&&(f=f.indexOf(l)>=0),(0,t.isArray)(p)&&(f=p.indexOf(l)<0),c&&(f=!o||d&&(d.indexOf(a)>=0||d.indexOf(l)>=0)),r&&u){var g=(0,t.keys)(u);r.forEach((function(e){e.getProperties().forEach((function(e){if((0,t.includes)(g,e.id)){var n=u[e.id];f=f&&(0,t.includes)(n,e.get('value'))}}))}))}if(h){var m=i&&i.parent(),v=m&&m.getEl();if(v){var y=(0,e.hasWin)()?window.getComputedStyle(v):{};(0,t.each)(h,(function(e,n){f=f&&y[n]&&(0,t.includes)(e,y[n])}))}else f=!1}return!!f},o}(u.Hn);const U$=q$;q$.callParentInit=function(t,e,n,o){void 0===o&&(o={}),t.prototype.initialize.apply(e,[n,L$(L$({},o),{skipInit:1})])},q$.callInit=function(t,e,n){void 0===n&&(n={}),!n.skipInit&&t.init(e,n)};var B$=void 0&&(void 0).__extends||function(){var t=function(e,n){return t=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])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),F$=void 0&&(void 0).__assign||function(){return F$=Object.assign||function(t){for(var e,n=1,o=arguments.length;n=0?t:void 0},o.prototype.selectLayer=function(t){return this.set('selectedLayer',t,{__select:!0})},o.prototype.selectLayerAt=function(t){void 0===t&&(t=0);var e=this.getLayer(t);return e&&this.selectLayer(e)},o.prototype.moveLayer=function(e,n){void 0===n&&(n=0);var o=e?e.getIndex():-1;o>=0&&(0,t.isNumber)(n)&&n>=0&&n0&&!e},o.prototype.clear=function(t){return void 0===t&&(t={}),this.__getLayers().reset(),this.__upTargetsStyleProps(t),U$.prototype.clear.call(this),this},o.prototype.__canClearProp=function(){return!1},o}(sj);const dj=pj;var fj=void 0&&(void 0).__extends||function(){var t=function(e,n){return t=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])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),gj=void 0&&(void 0).__assign||function(){return gj=Object.assign||function(t){for(var e,n=1,o=arguments.length;n\n
\n ")},o.prototype.templateLabel=function(t){var e=this.pfx,n=this.em,o=t.parent,i=t.attributes,r=i.icon,s=void 0===r?'':r,a=i.info,l=void 0===a?'':a,c=null==n?void 0:n.getConfig().icons,u=(null==c?void 0:c.close)||'';return"\n \n ").concat(t.getLabel(),"\n \n ").concat(o?'':"
").concat(u,"
"),"\n ")},o.prototype.templateInput=function(t){return"\n
\n \n
\n ")},o.prototype.remove=function(){var t=this;return u.G7.prototype.remove.apply(this,arguments),['em','input','$input','view'].forEach((function(e){return t[e]=null})),this.__destroyFn(this._getClbOpts()),this},o.prototype.updateStatus=function(){var t,e=this,n=e.model,o=e.pfx,i=e.ppfx,r=e.config,s="".concat(i,"four-color"),a="".concat(i,"color-warn"),l=this.$el.children(".".concat(o,"label")),c=this.getClearEl(),u=c?c.style:{};l.removeClass("".concat(s," ").concat(a)),u.display='none',n.hasValue({noParent:!0})&&r.highlightChanged?(l.addClass(s),r.clearProperties&&(u.display='')):n.hasValue()&&r.highlightComputed&&l.addClass(a),null===(t=this.parent)||void 0===t||t.updateStatus()},o.prototype.clear=function(t){t&&t.stopPropagation(),this.model.clear()},o.prototype.getClearEl=function(){return this.clearEl||(this.clearEl=this.el.querySelector("[".concat(yj,"]"))),this.clearEl},o.prototype.inputValueChanged=function(t){t&&t.stopPropagation(),this.emit||this.model.upValue(t.target.value)},o.prototype.onValueChange=function(t,e,n){void 0===n&&(n={}),this.setValue(this.model.getFullValue(void 0,{skipImportant:!0})),this.updateStatus()},o.prototype.setValue=function(e){var n=this.model,o=(0,t.isUndefined)(e)||''===e?n.getDefaultValue():e;if(this.update)return this.__update(o);this.__setValueInput(o)},o.prototype.__setValueInput=function(t){var e=this.getInputEl();e&&(e.value=t)},o.prototype.getInputEl=function(){return this.input||(this.input=this.el.querySelector('input')),this.input},o.prototype.updateVisibility=function(){this.el.style.display=this.model.isVisible()?'':'none'},o.prototype.clearCached=function(){delete this.clearEl,delete this.input,delete this.$input},o.prototype.__unset=function(){var t=this.unset&&this.unset.bind(this);t&&t(this._getClbOpts())},o.prototype.__update=function(t){var e=this.update&&this.update.bind(this);e&&e(gj(gj({},this._getClbOpts()),{value:t}))},o.prototype.__change=function(){for(var t=[],e=0;e\n \n \n ")},e.prototype.remove=function(){var t;return null===(t=this.props)||void 0===t||t.remove(),Oj.prototype.remove.apply(this,arguments),this},e.prototype.onValueChange=function(){},e.prototype.onRender=function(){var t=this.pfx,e=this.model,n=e.get('properties');if(n.length&&!this.props){var o=e.isDetached(),i=new xj({config:kj(kj({},this.config),{highlightComputed:o,highlightChanged:o}),collection:n,parent:this});i.render(),this.$el.find("#".concat(t,"input-holder")).append(i.el),this.props=i}},e.prototype.clearCached=function(){Oj.prototype.clearCached.apply(this,arguments),delete this.props},e}(Oj);const Cj=Pj;var Tj=void 0&&(void 0).__extends||function(){var t=function(e,n){return t=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])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ej=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return Tj(n,e),n.prototype.events=function(){return{click:'select','click [data-close-layer]':'removeItem','mousedown [data-move-layer]':'initSorter','touchstart [data-move-layer]':'initSorter'}},n.prototype.template=function(){var t=this,e=t.pfx,n=t.ppfx,o=t.em,i=null==o?void 0:o.getConfig().icons,r=(null==i?void 0:i.close)||'',s=(null==i?void 0:i.move)||'';return"\n
\n
\n ").concat(s,"\n
\n
\n
\n
\n
\n
\n ").concat(r,"\n
\n
\n
\n ")},n.prototype.initialize=function(t){void 0===t&&(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 o=this.propertyView.model;this.listenTo(e,'destroy remove',this.remove),this.listenTo(e,'change:values',this.updateLabel),this.listenTo(o,'change:selectedLayer',this.updateVisibility),e.view=this,e.set({droppable:0,draggable:1}),this.$el.data('model',e)},n.prototype.initSorter=function(){var t;null===(t=this.sorter)||void 0===t||t.startSort(this.el)},n.prototype.removeItem=function(t){t&&t.stopPropagation(),this.model.remove()},n.prototype.select=function(){this.model.select()},n.prototype.getPropertiesWrapper=function(){return this.propsWrapEl||(this.propsWrapEl=this.el.querySelector('[data-properties]')),this.propsWrapEl},n.prototype.getPreviewEl=function(){return this.previewEl||(this.previewEl=this.el.querySelector('[data-preview]')),this.previewEl},n.prototype.getLabelEl=function(){return this.labelEl||(this.labelEl=this.el.querySelector('[data-label]')),this.labelEl},n.prototype.updateLabel=function(){var e=this.model,n=e.getLabel();if(this.getLabelEl().innerHTML=n,e.hasPreview()){var o=this.getPreviewEl(),i=e.getStylePreview({number:{min:-3,max:3}}),r=(0,t.keys)(i).map((function(t){return"".concat(t,":").concat(i[t])})).join(';');o.setAttribute('style',r)}},n.prototype.updateVisibility=function(){var t,e=this,n=e.pfx,o=e.model,i=e.propertyView,r=this.getPropertiesWrapper(),s=o.isSelected();r.style.display=s?'':'none',this.$el[s?'addClass':'removeClass']("".concat(n,"active")),s&&r.appendChild(null===(t=i.props)||void 0===t?void 0:t.el)},n.prototype.render=function(){var t=this,e=t.el,n=t.pfx,o=t.model;return e.innerHTML=this.template(),e.className="".concat(n,"layer"),o.hasPreview()&&(e.querySelector('[data-preview-box]').style.display=''),this.updateLabel(),this.updateVisibility(),this},n}(u.G7);const Qj=Ej;var Aj=void 0&&(void 0).__extends||function(){var t=function(e,n){return t=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])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),$j=function(t){function e(e){var n=t.call(this,e)||this,o=n.collection,i=e.config||{},r=i.em,s=i.stylePrefix||'',a=i.pStylePrefix||'';n.config=i,n.pfx=s,n.ppfx=a,n.propertyView=e.propertyView,n.className="".concat(s,"layers ").concat(a,"field"),n.listenTo(o,'add',n.addTo),n.listenTo(o,'reset',n.reset),n.items=[];var l=null==r?void 0:r.Utils;return n.sorter=l?new l.Sorter({container:n.el,ignoreViewChildren:1,containerSel:".".concat(s,"layers"),itemSel:".".concat(s,"layer"),pfx:i.pStylePrefix,em:r}):'',o.view=n,n.$el.data('model',o),n.$el.data('collection',o),n}return Aj(e,t),e.prototype.addTo=function(t){var e=this.collection.indexOf(t);this.addToCollection(t,null,e)},e.prototype.addToCollection=function(t,e,n){var o=e||null,i=this,r=i.propertyView,s=i.config,a=i.sorter,l=i.$el,c=new Qj({model:t,config:s,sorter:a,propertyView:r}),u=c.render().el;if(this.items.push(c),o)o.appendChild(u);else if(void 0!==n){var h='before';l.children().length===n&&(n--,h='after'),n<0?l.append(u):l.children().eq(n)[h](u)}else l.append(u);return u},e.prototype.reset=function(t,e){this.clearItems(),this.render()},e.prototype.remove=function(){return this.clearItems(),u.G7.prototype.remove.apply(this,arguments),this},e.prototype.clearItems=function(){this.items.forEach((function(t){return t.remove()})),this.items=[]},e.prototype.render=function(){var t=this,e=this.$el,n=this.sorter,o=document.createDocumentFragment();return e.empty(),this.collection.forEach((function(e){return t.addToCollection(e,o)})),e.append(o),e.attr('class',this.className),n&&(n.plh=null),this},e}(u.G7);const jj=$j;var Rj=void 0&&(void 0).__extends||function(){var t=function(e,n){return t=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])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Zj=void 0&&(void 0).__assign||function(){return Zj=Object.assign||function(t){for(var e,n=1,o=arguments.length;n\n \n
\n \n ")},e.prototype.init=function(){var t=this.model;this.listenTo(t.__getLayers(),'change reset',this.updateStatus)},e.prototype.addLayer=function(){this.model.addLayer({},{at:0})},e.prototype.setValue=function(){},e.prototype.remove=function(){var t;return null===(t=this.layersView)||void 0===t||t.remove(),Cj.prototype.remove.apply(this,arguments),this},e.prototype.clearCached=function(){Cj.prototype.clearCached.apply(this,arguments),delete this.layersView},e.prototype.onRender=function(){var t=this,e=t.model,n=t.el,o=t.config,i=e.get('properties');if(i.length&&!this.props){var r=new xj({config:Zj(Zj({},o),{highlightComputed:!1,highlightChanged:!1}),collection:i,parent:this});r.render();var s=new jj({collection:e.__getLayers(),config:o,propertyView:this});s.render(),n.querySelector('[data-layers-wrapper]').appendChild(s.el),this.props=r,this.layersView=s}},e}(Cj);const Vj=Mj;var Dj=void 0&&(void 0).__extends||function(){var t=function(e,n){return t=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])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ij=void 0&&(void 0).__assign||function(){return Ij=Object.assign||function(t){for(var e,n=1,o=arguments.length;n\n
\n
\n \n
\n
\n
\n
\n
\n
").concat(i,"
\n
\n \n ")},n.prototype.__setValueInput=function(t){var e=this.model,n=this.el,o=e.getDefaultValue(),i=n.querySelector('[data-preview-box]'),r=n.querySelector('[data-preview]');i.style.display=t&&t!==o?'':'none',r.style.backgroundImage=t||e.getDefaultValue()},n.prototype.openAssetManager=function(){var e,n=this,o=null===(e=this.em)||void 0===e?void 0:e.Assets;null==o||o.open({select:function(e,i){var r=(0,t.isString)(e)?e:e.get('src');n.model.upValue(r,{partial:!i}),i&&o.close()},types:['image'],accept:'image/*'})},n}(Oj);const Wj=Nj;var Xj=void 0&&(void 0).__extends||function(){var t=function(e,n){return t=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])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Lj=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Xj(e,t),e.prototype.templateInput=function(t){return''},e.prototype.init=function(){var t=this.model;this.listenTo(t,'change:unit',this.onValueChange),this.listenTo(t,'change:units',this.render)},e.prototype.setValue=function(t){},e.prototype.onRender=function(){var t=this,e=t.ppfx,n=t.model,o=t.el;if(!this.inputInst){var i=n.input;i.ppfx=e,i.render(),o.querySelector(".".concat(e,"fields")).appendChild(i.el),this.input=i.inputEl.get(0),this.inputInst=i}},e.prototype.clearCached=function(){Oj.prototype.clearCached.apply(this,arguments),this.inputInst=null},e}(Oj);const Yj=Lj;var zj=void 0&&(void 0).__extends||function(){var t=function(e,n){return t=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])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),qj=function(t){function e(e){void 0===e&&(e={});var n=t.call(this,e)||this,o=e.ppfx||'';return n.opts=e,n.ppfx=o,n.em=e.target||{},!e.onChange&&n.listenTo(n.model,'change:value',n.handleModelChange),n}return zj(e,t),e.prototype.template=function(){return"")},e.prototype.inputClass=function(){return"".concat(this.ppfx,"field")},e.prototype.holderClass=function(){return"".concat(this.ppfx,"input-holder")},e.prototype.elementUpdated=function(){this.model.trigger('el:change')},e.prototype.setValue=function(t,e){var n=this.model,o=t||n.get('defaults'),i=this.getInputEl();i&&(i.value=o)},e.prototype.handleModelChange=function(t,e,n){this.setValue(e,n)},e.prototype.handleChange=function(t){t.stopPropagation();var e=this.getInputEl().value;this.__onInputChange(e),this.elementUpdated()},e.prototype.__onInputChange=function(t){this.model.set({value:t},{fromInput:1})},e.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,l["default"])(""))}return this.inputEl.get(0)},e.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},e}(u.G7);const Uj=qj;qj.prototype.events={change:'handleChange'};var Bj=void 0&&(void 0).__extends||function(){var t=function(e,n){return t=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])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Fj=void 0&&(void 0).__assign||function(){return Fj=Object.assign||function(t){for(var e,n=1,o=arguments.length;n\n
\n
\n
\n
\n
\n ")},n.prototype.inputClass=function(){var t=this.ppfx;return"".concat(t,"field ").concat(t,"field-color")},n.prototype.holderClass=function(){return"".concat(this.ppfx,"input-holder")},n.prototype.remove=function(){return e.prototype.remove.call(this),this.colorEl.spectrum('destroy'),this},n.prototype.handleChange=function(e){e.stopPropagation();var n=e.target.value;(0,t.isUndefined)(n)||this.__onInputChange(n)},n.prototype.__onInputChange=function(t){var e=this.model,n=this.opts.onChange,o=t,i=this.getColorEl();if(i){i.spectrum('set',o);var r=i.spectrum('get'),s=o&&Gj(r);s&&(o=s)}n?n(o):e.set({value:o},{fromInput:1})},n.prototype.setValue=function(e,n){void 0===n&&(n={});var o=this.model,i=(0,t.isUndefined)(n.def)?o.get('defaults'):n.def,r=(0,t.isUndefined)(e)?(0,t.isUndefined)(i)?'':i:e,s=this.getInputEl(),a=this.getColorEl(),l='none'!=r?r:'';s.value=r,a.get(0).style.backgroundColor=l,(n.fromTarget||n.fromInput&&!n.avoidStore)&&(a.spectrum('set',l),this.noneColor='none'==r,this.movedColor=l)},n.prototype.getColorEl=function(){var t=this;if(!this.colorEl){var e=this,n=e.em,o=e.model,i=e.opts,r=this.ppfx,s=i.onChange,a=(0,l["default"])("
")),c=a.get(0).style,u=n&&n.config?n.config.el:'',h=n&&n.getConfig&&n.getConfig().colorPicker||{};this.movedColor='';var p,d=!1;this.$el.find('[data-colorp-c]').append(a);var f=function(t,e){void 0===e&&(e=!0),s?s(t,!e):(e&&o.setValueFromInput(0,!1),o.setValueFromInput(t,e))};a.spectrum(Fj(Fj(Fj({color:o.getValue()||!1,containerClassName:"".concat(r,"one-bg ").concat(r,"two-color"),appendTo:u||'body',maxSelectionSize:8,showPalette:!0,showAlpha:!0,chooseText:'Ok',cancelText:'⨯',palette:[]},h),o.get('colorPicker')||{}),{move:function(e){var n=Gj(e);t.movedColor=n,c.backgroundColor=n,f(n,!1)},change:function(e){d=!0;var n=Gj(e);c.backgroundColor=n,f(n),t.noneColor=!1},show:function(e){d=!1,t.movedColor='',p=s?o.getValue({noDefault:!0}):Gj(e)},hide:function(){d||!p&&!s||(t.noneColor&&(p=''),c.backgroundColor=p,a.spectrum('set',p),f(p,!1))}})),n&&n.on&&this.listenTo(n,'component:selected',(function(){t.movedColor&&f(t.movedColor),d=!0,t.movedColor='',a.spectrum('hide')})),this.colorEl=a}return this.colorEl},n.prototype.render=function(){return Uj.prototype.render.call(this),this.getColorEl(),this},n}(Uj);const Kj=Hj;var Jj=void 0&&(void 0).__extends||function(){var t=function(e,n){return t=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])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),tR=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Jj(e,t),e.prototype.setValue=function(t){var e;null===(e=this.inputInst)||void 0===e||e.setValue(t,{fromTarget:1,def:this.model.getDefaultValue()})},e.prototype.remove=function(){var t=this;Yj.prototype.remove.apply(this,arguments);var e=this.inputInst;return e&&e.remove&&e.remove(),['inputInst','$color'].forEach((function(e){return t[e]=null})),this},e.prototype.__handleChange=function(t,e){this.model.upValue(t,{partial:e})},e.prototype.onRender=function(){var t;if(!this.inputInst){this.__handleChange=this.__handleChange.bind(this);var e=this,n=e.ppfx,o=e.model,i=e.em,r=e.el,s=new Kj({target:i,model:o,ppfx:n,onChange:this.__handleChange}).render();r.querySelector(".".concat(n,"fields")).appendChild(s.el),this.input=null===(t=s.inputEl)||void 0===t?void 0:t.get(0),this.inputInst=s}},e}(Yj);const eR=tR;var nR=void 0&&(void 0).__extends||function(){var t=function(e,n){return t=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])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),oR=void 0&&(void 0).__assign||function(){return oR=Object.assign||function(t){for(var e,n=1,o=arguments.length;n\n \n
\n
\n
\n \n ")},e.prototype.updateOptions=function(){delete this.input,this.onRender()},e.prototype.onRender=function(){var t=this.pfx,e=this.model,n=e.getOptions();if(!this.input){var o=[];n.forEach((function(t){var n=e.getOptionId(t),i=e.getOptionLabel(n),r=t.style?t.style.replace(/"/g,'"'):'',s=r?"style=\"".concat(r,"\""):'',a=n.replace(/"/g,'"');o.push(""))}));var i=this.el.querySelector("#".concat(t,"input-holder"));i.innerHTML=""),this.input=i.firstChild}},e.prototype.__setValueInput=function(t){var e=this.model,n=this.getInputEl(),o=e.getOptions()[0],i=o?e.getOptionId(o):'';n&&(n.value=t||i)},e}(Oj);const cR=lR;var uR=void 0&&(void 0).__extends||function(){var t=function(e,n){return t=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])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),hR=void 0&&(void 0).__assign||function(){return hR=Object.assign||function(t){for(var e,n=1,o=arguments.length;n")},e.prototype.onRender=function(){var t=this.pfx,e=this.ppfx,n=this.model,o="".concat(e,"radio-item-label"),i=n.getName(),r=n.getOptions(),s="".concat(t,"radio ").concat(t,"radio-").concat(i),a=n.cid;if(!this.input){var l=[];r.forEach((function(r){var c=r.className?"".concat(r.className," ").concat(t,"icon ").concat(o):'',u=n.getOptionId(r),h="".concat(i,"-").concat(u,"-").concat(a),p=c?'':n.getOptionLabel(u),d=r.title?"title=\"".concat(r.title,"\""):'',f=n.getValue()===u?'checked':'';l.push("\n
\n \n \n
\n "))}));var c=this.el.querySelector(".".concat(e,"field"));c.innerHTML="
").concat(l.join(''),"
"),this.input=c.firstChild}},e.prototype.__setValueInput=function(t){var e,n=this.model,o=t||n.getDefaultValue(),i=null===(e=this.getInputEl())||void 0===e?void 0:e.querySelector("[value=\"".concat(o,"\"]"));i&&(i.checked=!0)},e}(cR);const gR=fR;var mR=void 0&&(void 0).__extends||function(){var t=function(e,n){return t=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])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),vR=function(e){function n(n){void 0===n&&(n={});var o=e.call(this,n)||this;return(0,t.bindAll)(o,'moveIncrement','upIncrement'),o.doc=document,o.listenTo(o.model,'change:unit',o.handleModelChange),o}return mR(n,e),n.prototype.template=function(){var t=this.ppfx;return"\n \n \n
\n
\n
\n
\n ")},n.prototype.inputClass=function(){var t=this.ppfx;return this.opts.contClass||"".concat(t,"field ").concat(t,"field-integer")},n.prototype.setValue=function(t,e){var n=e||{},o=this.validateInputValue(t,{deepCheck:1}),i={value:o.value,unit:''};(o.unit||o.force)&&(i.unit=o.unit),this.model.set(i,n),n.silent&&this.handleModelChange()},n.prototype.handleChange=function(t){t.stopPropagation(),this.setValue(this.getInputEl().value),this.elementUpdated()},n.prototype.handleUnitChange=function(t){t.stopPropagation();var e=this.getUnitEl().value;this.model.set('unit',e),this.elementUpdated()},n.prototype.handleKeyDown=function(t){'ArrowUp'===t.key&&(t.preventDefault(),this.upArrowClick()),'ArrowDown'===t.key&&(t.preventDefault(),this.downArrowClick())},n.prototype.elementUpdated=function(){this.model.trigger('el:change')},n.prototype.handleModelChange=function(){var t=this.model;this.getInputEl().value=t.get('value');var e=this.getUnitEl();e&&(e.value=t.get('unit')||'')},n.prototype.getUnitEl=function(){if(!this.unitEl){var t=this.model,e=t.get('units')||[];if(e.length){var n=[''];e.forEach((function(e){var o=e==t.get('unit')?'selected':'';n.push(""))}));var o=document.createElement('div');o.innerHTML=""),this.unitEl=o.firstChild}}return this.unitEl},n.prototype.upArrowClick=function(){var t=this.model,e=t.get('step'),n=parseFloat(t.get('value'));this.setValue(this.normalizeValue(n+e)),this.elementUpdated()},n.prototype.downArrowClick=function(){var t=this.model,e=t.get('step'),n=parseFloat(t.get('value'));this.setValue(this.normalizeValue(n-e)),this.elementUpdated()},n.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,ue.on)(this.doc,'mousemove',this.moveIncrement),(0,ue.on)(this.doc,'mouseup',this.upIncrement)},n.prototype.moveIncrement=function(t){this.moved=!0;var e=this.model,n=e.get('step'),o=this.current,i=this.normalizeValue(o.val+(o.y-t.pageY)*n),r=this.validateInputValue(i),s=r.value,a=r.unit;return this.prValue=s,e.set({value:s,unit:a},{avoidStore:1}),!1},n.prototype.upIncrement=function(){var t=this.model,e=t.get('step');if((0,ue.S1)(this.doc,'mouseup',this.upIncrement),(0,ue.S1)(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()}},n.prototype.normalizeValue=function(t,e){void 0===e&&(e=0);var n=this.model.get('step'),o=0;if(isNaN(t))return e;if(t=parseFloat(t),Math.floor(t)!==t){var i=n.toString().split('.')[1];o=i?i.length:0}return o?parseFloat(t.toFixed(o)):t},n.prototype.validateInputValue=function(e,n){void 0===n&&(n={});var o=0,i=n||{},r=this.model,s='',a=(0,t.isUndefined)(e)?s:e,l=n.units||r.get('units')||[],c=r.get('unit')||l.length&&l[0]||'',u=(0,t.isUndefined)(n.max)?r.get('max'):n.max,h=(0,t.isUndefined)(n.min)?r.get('min'):n.min,p=!!r.get('limitlessMax'),d=!!r.get('limitlessMin');if(i.deepCheck){var f=r.get('fixedValues')||[];if(''===a&&(c=''),a){var g=new RegExp('^'+f.join('|'),'g');if(f.length&&g.test(a))a=a.match(g)[0],c='',o=1;else{var m=a+'';a+='',a=parseFloat(a.replace(',','.')),a=isNaN(a)?s:a;var v=m.replace(a,'');(0,t.indexOf)(l,v)>=0&&(c=v)}}}return p||(0,t.isUndefined)(u)||''===u||(a=a>u?u:a),d||(0,t.isUndefined)(h)||''===h||(a=a\n \n \n ")},e.prototype.getSliderEl=function(){return this.slider||(this.slider=this.el.querySelector('input[type=range]')),this.slider},e.prototype.inputValueChanged=function(t){t.stopPropagation(),this.model.upValue(this.getSliderEl().value)},e.prototype.inputValueChangedSoft=function(t){t.stopPropagation(),this.model.upValue(this.getSliderEl().value,{partial:!0})},e.prototype.setValue=function(t){var e=this.model,n=e.parseValue(t);this.getSliderEl().value=''===t?e.getDefaultValue():parseFloat(n.value),Yj.prototype.setValue.apply(this,arguments)},e.prototype.onRender=function(){Yj.prototype.onRender.apply(this,arguments),this.model.get('showInput')||(this.inputInst.el.style.display='none')},e.prototype.clearCached=function(){Yj.prototype.clearCached.apply(this,arguments),delete this.slider},e}(Yj);const ER=u.FE.extend(QE).extend({extendViewApi:1,init:function(){var t=this.opts,e=this.em,n=t.module||(null==e?void 0:e.get('StyleManager'));n&&(n.__listenAdd(this,n.events.propertyAdd),n.__listenRemove(this,n.events.propertyRemove))},types:[{id:'stack',model:dj,view:Vj,isType:function(t){if(t&&'stack'==t.type)return t}},{id:'composite',model:sj,view:Cj,isType:function(t){if(t&&'composite'==t.type)return t}},{id:'file',model:U$,view:Wj,isType:function(t){if(t&&'file'==t.type)return t}},{id:'color',model:U$,view:eR,isType:function(t){if(t&&'color'==t.type)return t}},{id:'select',model:sR,view:cR,isType:function(t){if(t&&'select'==t.type)return t}},{id:'radio',model:pR,view:gR,isType:function(t){if(t&&'radio'==t.type)return t}},{id:'slider',model:kR,view:TR,isType:function(t){if(t&&'slider'==t.type)return t}},{id:'integer',model:wR,view:Yj,isType:function(t){if(t&&'integer'==t.type)return t}},{id:'number',model:wR,view:Yj,isType:function(t){if(t&&'number'==t.type)return t}},{id:'base',model:U$,view:Oj,isType:function(t){return t.type='base',t}}]});var QR=void 0&&(void 0).__extends||function(){var t=function(e,n){return t=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])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),AR=void 0&&(void 0).__assign||function(){return AR=Object.assign||function(t){for(var e,n=1,o=arguments.length;n\n
$","
\n
","
\n \n "],["\n
\n
$","
\n
","
\n
\n "])),a,a,s,a,o)},e.prototype.events=function(){return{'click [data-sector-title]':'toggle'}},e.prototype.updateOpen=function(){var t=this,e=t.$el,n=t.model,o=t.pfx,i=n.isOpen();e[i?'addClass':'removeClass']("".concat(o,"open")),this.getPropertiesEl().style.display=i?'':'none'},e.prototype.updateVisibility=function(){this.el.style.display=this.model.isVisible()?'':'none'},e.prototype.getPropertiesEl=function(){var t=this.$el,e=this.pfx;return t.find(".".concat(e,"properties")).get(0)},e.prototype.toggle=function(){var t=this.model;t.setOpen(!t.get('open'))},e.prototype.renderProperties=function(){var t=this.model,e=this.config,n=t.get('properties');if(n){var o=new xj({collection:n,config:e});this.$el.append(o.render().el)}},e.prototype.render=function(){var t=this,e=t.pfx,n=t.model,o=t.$el,i=n.getId(),r=n.getName();return o.html(this.template({pfx:e,label:r})),this.renderProperties(),o.attr('class',"".concat(e,"sector ").concat(e,"sector__").concat(i," no-select")),this.updateOpen(),this},e}(u.G7);const BR=UR;var FR,GR=void 0&&(void 0).__extends||function(){var t=function(e,n){return t=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])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),HR=function(t){function e(e){void 0===e&&(e={});var n=t.call(this,e)||this,o=e.module,i=e.config,r=n.collection;return n.pfx=(null==i?void 0:i.stylePrefix)||'',n.ppfx=(null==i?void 0:i.pStylePrefix)||'',n.config=i,n.module=o,n.listenTo(r,'add',n.addTo),n.listenTo(r,'reset',n.render),n}return GR(e,t),e.prototype.remove=function(){var t=this;return u.G7.prototype.remove.apply(this,arguments),['config','module','em'].forEach((function(e){return t[e]={}})),this},e.prototype.addTo=function(t,e,n){void 0===n&&(n={}),this.addToCollection(t,null,n)},e.prototype.addToCollection=function(t,e,n){void 0===n&&(n={});var o=this.config,i=this.el,r=e||i,s=new BR({model:t,config:o}).render().el;return(0,ue.$Q)(r,s,n.at),s},e.prototype.render=function(){var t=this,e=this,n=e.$el,o=e.pfx,i=e.ppfx;n.empty();var r=document.createDocumentFragment();return this.collection.each((function(e){return t.addToCollection(e,r)})),n.append(r),n.addClass("".concat(o,"sectors ").concat(i,"one-bg ").concat(i,"two-color")),this},e}(u.G7);const KR=HR;var JR=void 0&&(void 0).__extends||function(){var t=function(e,n){return t=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])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),tZ=void 0&&(void 0).__assign||function(){return tZ=Object.assign||function(t){for(var e,n=1,o=arguments.length;n=0}))}))};h?(d=c.getRules("#".concat(h.getId())),g=(f=l?m(l.getSelectors().getFullName(p)):[]).concat(d)):(d=l?c.getRules("#".concat(l.getId())):[],f=m(e.getSelectors().getFullName(p)),g=d.concat(f));var v=g.filter((function(e){return(0,t.isUndefined)(i)?1:e.get('state')===i})).sort(u.sortRules).reverse();a=v.slice(v.indexOf(e)+1)}return a},o.prototype.addType=function(t,e){this.properties.addType(t,e)},o.prototype.getType=function(t){return this.properties.getType(t)},o.prototype.getTypes=function(){return this.properties.getTypes()},o.prototype.createType=function(t,e){var n=void 0===e?{}:e,o=n.model,i=void 0===o?{}:o,r=n.view,s=void 0===r?{}:r,a=this.config,l=this.getType(t);if(l)return new l.view(tZ({model:new l.model(i),config:a},s))},o.prototype.render=function(){var t=this,e=t.config,n=t.em,o=t.SectView,i=o&&o.el;return this.SectView=new KR({el:i,em:n,config:e,module:this,collection:this.sectors}),this.SectView.render().el},o.prototype._logNoSector=function(t){var e=this.em;e&&e.logWarning("'".concat(t,"' sector not found"))},o.prototype.__emitCmpStyleUpdate=function(t,e){void 0===e&&(e={});var n=this.em;if(!t.__p){var o=this.getSelectedAll(),i=e.components||n.getSelectedAll(),r=Array.isArray(i)?i:[i],s=tZ({},t);delete s.__p,r.forEach((function(t){return!o.includes(t)&&t.__onStyleChange(s)}))}},o.prototype.__upProps=function(t){var e=this;void 0===t&&(t={});var n=this.getSelected();if(n){var o=this.sectors,i=this.model.get('component'),r=this.getSelectedParents(),s=n.getStyle(),a=r.map((function(t){return{target:t,style:t.getStyle()}}));o.map((function(n){n.getProperties().map((function(n){e.__upProp(n,s,a,t)}))})),o.forEach((function(t){var e=t.getProperties();e.forEach((function(t){var e=t.__checkVisibility({target:n,component:i,sectors:o});t.set('visible',e)}));var r=e.some((function(t){return t.isVisible()}));t.set('visible',r)}))}},o.prototype.__upProp=function(t,e,n,o){var i=this,r=t.getName(),s=e[r],a=gZ(s),l='stack'===t.getType(),c='composite'===t.getType(),u=tZ(tZ({},o),{__up:!0}),h=!c&&!l,p=l?t.__getLayersFromStyle(e):[],d=c?t.__getPropsFromStyle(e):{},f=a?s:null,g=null;if(l&&null===p||c&&null===d){var m=l?'__getLayersFromStyle':'__getPropsFromStyle';if(y=n.filter((function(e){return null!==t[m](e.style)}))[0]){f=y.style[r],g=y.target;var v=t[m](y.style);l?p=v:d=v}}else if(!a){var y;f=null,(y=n.filter((function(t){return gZ(t.style[r])}))[0])&&(f=y.style[r],g=y.target)}if(t.__setParentTarget(g),h&&t.__getFullValue()!==f&&t.upValue(f,u),l&&t.__setLayers(p||[]),c){var _=t.getProperties();if(t.isDetached()){var O=t.__getPropsFromStyle(e,{byName:!0})||{},b=n.map((function(e){return tZ(tZ({},e),{style:t.__getPropsFromStyle(e.style,{byName:!0})||{}})}));_.map((function(t){return i.__upProp(t,O,b,o)}))}else t.__setProperties(d||{},u),t.getProperties().map((function(t){return t.__setParentTarget(g)}))}},o.prototype.destroy=function(){var t;[this.properties,this.sectors].forEach((function(t){t.reset(),t.stopListening()})),null===(t=this.SectView)||void 0===t||t.remove(),this.model.stopListening(),this.upAll.cancel()},o}(O);const yZ=vZ;var _Z=void 0&&(void 0).__extends||function(){var t=function(e,n){return t=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])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),OZ=void 0&&(void 0).__assign||function(){return OZ=Object.assign||function(t){for(var e,n=1,o=arguments.length;n0&&i[i.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]=i.getStepsBeforeSave()&&this.store().catch((function(t){return o.logError(t)}))},o.prototype.loadModule=function(t){var e=new t(this);return this.set(e.name,e),e.onLoad&&this.toLoad.push(e),this.modules.push(e),e},o.prototype.loadStorableModule=function(t){var e=this.loadModule(t);return this.storables.push(e),e},o.prototype.init=function(t,e){void 0===e&&(e={}),this.destroyed&&(this.initialize(e),this.destroyed=!1),this.set('Editor',t)},o.prototype.getEditor=function(){return this.get('Editor')},o.prototype.handleUpdates=function(t,e,n){var o=this;void 0===n&&(n={}),this.__skip||n.temporary||n.noCount||n.avoidStore||!this.get('ready')||(this.timedInterval&&clearTimeout(this.timedInterval),this.timedInterval=setTimeout((function(){var t=o.getDirtyCount()||0,e=(n.unset,xZ(n,["unset"]));o.set('changesCount',t+1,e)}),0))},o.prototype.changesUp=function(t){this.handleUpdates(0,0,t)},o.prototype.componentHovered=function(t,e,n){var o=this.previous('componentHovered');o&&this.trigger('component:unhovered',o,n),e&&this.trigger('component:hovered',e,n)},o.prototype.getSelected=function(){return this.selected.lastComponent()},o.prototype.getSelectedAll=function(){return this.selected.allComponents()},o.prototype.setSelected=function(e,n){var o=this;void 0===n&&(n={});var i=n.event,r=i&&(i.ctrlKey||i.metaKey),s=(i||{}).shiftKey,a=((0,t.isArray)(e)?e:[e]).map((function(t){var e,n;return(null===(n=null===(e=null==t?void 0:t.delegate)||void 0===e?void 0:e.select)||void 0===n?void 0:n.call(e,t))||t})).filter(Boolean),l=this.getSelectedAll(),c=this.getConfig().multipleSelection,u=(0,t.isArray)(e);u&&this.removeSelected(l.filter((function(e){return!(0,t.contains)(a,e)}))),a.forEach((function(e){if(e&&(o.trigger('component:select:before',e,n),!e.get('selectable')||n.abort)){if(!n.useValid)return;for(var i=e.parent();i&&!i.get('selectable');)i=i.parent();e=i}if(r&&c)return o.toggleSelected(e);if(s&&c){o.clearSelection(o.Canvas.getWindow());var a,h,p=e.collection,d=e.index();if(o.getSelectedAll().forEach((function(e){var n=e.collection,o=e.index();n===p&&(od&&(h=(0,t.isUndefined)(h)?o:Math.min(h,o)))})),!(0,t.isUndefined)(a))for(;a!==d;)o.addSelected(p.at(a)),a++;if(!(0,t.isUndefined)(h))for(;h!==d;)o.addSelected(p.at(h)),h--;return o.addSelected(e)}!u&&o.removeSelected(l.filter((function(t){return t!==e}))),o.addSelected(e,n)}))},o.prototype.addSelected=function(e,n){var o=this;void 0===n&&(n={}),((0,t.isArray)(e)?e:[e]).forEach((function(e){var i=o.selected;e&&e.get('selectable')&&!e.parents().some((function(t){return i.hasComponent(t)}))&&(n.forceChange&&o.removeSelected(e,n),i.allComponents().filter((function(n){return(0,t.contains)(n.parents(),e)})).forEach((function(t){return o.removeSelected(t,n)})),i.addComponent(e,n),o.trigger('component:select',e,n),o.Canvas.addSpot({type:We.q.Select,component:e}))}))},o.prototype.removeSelected=function(e,n){var o=this;void 0===n&&(n={}),this.selected.removeComponent(e,n),((0,t.isArray)(e)?e:[e]).forEach((function(t){return o.Canvas.removeSpots({type:We.q.Select,component:t})}))},o.prototype.toggleSelected=function(e,n){var o=this;void 0===n&&(n={}),((0,t.isArray)(e)?e:[e]).forEach((function(t){o.selected.hasComponent(t)?o.removeSelected(t,n):o.addSelected(t,n)}))},o.prototype.setHovered=function(t,e){var n=this;void 0===e&&(e={});var o=function(t,e){var o=n,i=o.config,r=o.Canvas,s=n.getHovered(),a=n.getSelectedAll(),l=We.q.Hover,c=We.q.Spacing;n.set('componentHovered',t||null,e),s&&(r.removeSpots({type:l,component:s}),r.removeSpots({type:c,component:s})),t&&(r.addSpot({type:l,component:t}),a.includes(t)&&!i.showOffsetsSelected||r.addSpot({type:c,component:t}))};if(!t)return o();var i='component:hover';if(e.forceChange&&o(),this.trigger("".concat(i,":before"),t,e),!t.get('hoverable')){if(!e.useValid||e.abort)return;for(var r=t.parent();r&&!r.get('hoverable');)r=r.parent();t=r}e.abort||(o(t,e),this.trigger(i,t,e))},o.prototype.getHovered=function(){return this.get('componentHovered')},o.prototype.setComponents=function(t,e){return void 0===e&&(e={}),this.Components.setComponents(t,e)},o.prototype.getComponents=function(){var t=this.Components,e=this.CodeManager;if(t&&e){var n=t.getComponents();return e.getCode(n,'json')}},o.prototype.setStyle=function(t,e){void 0===e&&(e={});var n=this.Css;return n.clear(e),n.getAll().add(t,e),this},o.prototype.addStyle=function(e,n){void 0===n&&(n={});var o=this.getStyle().add(e,n);return(0,t.isArray)(o)?o:[o]},o.prototype.getStyle=function(){return this.Css.getAll()},o.prototype.setState=function(t){return this.set('state',t),this},o.prototype.getState=function(){return this.get('state')||''},o.prototype.getHtml=function(t){void 0===t&&(t={});var e=this.config,n=e.optsHtml,o=e.jsInHtml?this.getJs(t):'',i=t.component||this.Components.getComponent(),r=i?this.CodeManager.getCode(i,'html',OZ(OZ({},n),t)):'';return r+=o?"` : '';\n return html;\n }\n\n /**\n * Returns CSS built inside canvas\n * @param {Object} [opts={}] Options\n * @returns {string} CSS string\n * @public\n */\n getCss(opts: { component?: Component; avoidProtected?: boolean } & CssGeneratorBuildOptions = {}) {\n const { config } = this;\n const { optsCss } = config;\n const avoidProt = opts.avoidProtected;\n const keepUnusedStyles = !isUndefined(opts.keepUnusedStyles) ? opts.keepUnusedStyles : config.keepUnusedStyles;\n const cssc = this.Css;\n const wrp = opts.component || this.Components.getComponent();\n const protCss = !avoidProt ? config.protectedCss! : '';\n const css =\n wrp &&\n this.CodeManager.getCode(wrp, 'css', {\n cssc,\n keepUnusedStyles,\n ...optsCss,\n ...opts,\n });\n return wrp ? (opts.json ? css : protCss + css) : '';\n }\n\n /**\n * Returns JS of all components\n * @return {string} JS string\n * @public\n */\n getJs(opts: { component?: Component } = {}) {\n var wrp = opts.component || this.Components.getWrapper();\n return wrp ? this.CodeManager.getCode(wrp, 'js').trim() : '';\n }\n\n /**\n * Store data to the current storage.\n * @public\n */\n async store(options?: T) {\n const data = this.storeData();\n await this.Storage.store(data, options);\n this.clearDirtyCount();\n return data;\n }\n\n /**\n * Load data from the current storage.\n * @public\n */\n async load(options?: T, loadOptions: EditorLoadOptions = {}) {\n const result = await this.Storage.load(options);\n this.loadData(result);\n // Wait in order to properly update the dirty counter (#5385)\n await wait();\n\n if (loadOptions.clear) {\n this.UndoManager.clear();\n this.clearDirtyCount();\n }\n\n return result;\n }\n\n storeData(): ProjectData {\n let result = {};\n // Sync content if there is an active RTE\n const editingCmp = this.getEditing();\n editingCmp && editingCmp.trigger('sync:content', { noCount: true });\n\n this.storables.forEach(m => {\n result = { ...result, ...m.store(1) };\n });\n return JSON.parse(JSON.stringify(result));\n }\n\n loadData(data: ProjectData = {}): ProjectData {\n if (!isEmptyObj(data)) {\n this.storables.forEach(module => module.clear());\n this.storables.forEach(module => module.load(data));\n }\n return data;\n }\n\n /**\n * Returns device model by name\n * @return {Device|null}\n * @private\n */\n getDeviceModel() {\n const name = this.get('device');\n return this.Devices.get(name);\n }\n\n /**\n * Run default command if setted\n * @param {Object} [opts={}] Options\n * @private\n */\n runDefault(opts = {}) {\n const command = this.get('Commands').get(this.config.defaultCommand);\n if (!command || this.defaultRunning) return;\n command.stop(this, this, opts);\n command.run(this, this, opts);\n this.defaultRunning = true;\n }\n\n /**\n * Stop default command\n * @param {Object} [opts={}] Options\n * @private\n */\n stopDefault(opts = {}) {\n const commands = this.get('Commands');\n const command = commands.get(this.config.defaultCommand);\n if (!command || !this.defaultRunning) return;\n command.stop(this, this, opts);\n this.defaultRunning = false;\n }\n\n /**\n * Update canvas dimensions and refresh data useful for tools positioning\n * @public\n */\n refreshCanvas(opts: any = {}) {\n this.set('canvasOffset', null);\n this.set('canvasOffset', this.Canvas.getOffset());\n opts.tools && this.trigger('canvas:updateTools');\n }\n\n /**\n * Clear all selected stuf inside the window, sometimes is useful to call before\n * doing some dragging opearation\n * @param {Window} win If not passed the current one will be used\n * @private\n */\n clearSelection(win?: Window) {\n var w = win || window;\n w.getSelection()?.removeAllRanges();\n }\n\n /**\n * Get the current media text\n * @return {string}\n */\n getCurrentMedia() {\n const config = this.config;\n const device = this.getDeviceModel();\n const condition = config.mediaCondition;\n const preview = config.devicePreviewMode;\n const width = device && device.get('widthMedia');\n return device && width && !preview ? `(${condition}: ${width})` : '';\n }\n\n /**\n * Return the component wrapper\n * @return {Component}\n */\n getWrapper(): ComponentWrapper | undefined {\n return this.Components.getWrapper();\n }\n\n setCurrentFrame(frameView?: FrameView) {\n return this.set('currentFrame', frameView);\n }\n\n getCurrentFrame(): FrameView | undefined {\n return this.get('currentFrame');\n }\n\n getCurrentFrameModel() {\n return (this.getCurrentFrame() || {})?.model;\n }\n\n getIcon(icon: string) {\n const icons = this.config.icons || {};\n return icons[icon] || '';\n }\n\n /**\n * Return the count of changes made to the content and not yet stored.\n * This count resets at any `store()`\n * @return {number}\n */\n getDirtyCount(): number {\n return this.get('changesCount');\n }\n\n clearDirtyCount() {\n return this.set({ changesCount: 0 }, { isClear: true });\n }\n\n getZoomDecimal() {\n return this.Canvas.getZoomDecimal();\n }\n\n getZoomMultiplier() {\n return this.Canvas.getZoomMultiplier();\n }\n\n setDragMode(value: DragMode) {\n return this.set('dmode', value);\n }\n\n getDragMode(component?: Component): DragMode {\n const mode = component?.getDragMode() || this.get('dmode');\n return mode || '';\n }\n\n t(...args: any[]) {\n const i18n = this.get('I18n');\n return i18n?.t(...args);\n }\n\n /**\n * Returns true if the editor is in absolute mode\n * @returns {Boolean}\n */\n inAbsoluteMode(component?: Component) {\n return this.getDragMode(component) === 'absolute';\n }\n\n /**\n * Destroy editor\n */\n destroyAll() {\n const { config, view } = this;\n const editor = this.getEditor();\n // @ts-ignore\n const { editors = [] } = config.grapesjs || {};\n const shallow = this.get('shallow');\n this._storageTimeout && clearTimeout(this._storageTimeout);\n shallow?.destroyAll();\n this.stopListening();\n this.stopDefault();\n this.modules\n .slice()\n .reverse()\n .forEach(mod => mod.destroy());\n view && view.remove();\n this.clear({ silent: true });\n this.destroyed = true;\n ['_config', 'view', '_previousAttributes', '_events', '_listeners'].forEach(\n //@ts-ignore\n i => (this[i] = {})\n );\n editors.splice(editors.indexOf(editor), 1);\n //@ts-ignore\n hasWin() && $(config.el).empty().attr(this.attrsOrig);\n }\n\n getEditing(): Component | undefined {\n const res = this.get('editing');\n return (res && res.model) || undefined;\n }\n\n setEditing(value: boolean | ComponentView) {\n this.set('editing', value);\n return this;\n }\n\n isEditing() {\n return !!this.get('editing');\n }\n\n log(msg: string, opts: any = {}) {\n const { ns, level = 'debug' } = opts;\n this.trigger('log', msg, opts);\n level && this.trigger(`log:${level}`, msg, opts);\n\n if (ns) {\n const logNs = `log-${ns}`;\n this.trigger(logNs, msg, opts);\n level && this.trigger(`${logNs}:${level}`, msg, opts);\n }\n }\n\n logInfo(msg: string, opts?: any) {\n this.log(msg, { ...opts, level: 'info' });\n }\n\n logWarning(msg: string, opts?: any) {\n this.log(msg, { ...opts, level: 'warning' });\n }\n\n logError(msg: string, opts?: any) {\n this.log(msg, { ...opts, level: 'error' });\n }\n\n initBaseColorPicker(el: any, opts = {}) {\n const { config } = this;\n const { colorPicker = {} } = config;\n const elToAppend = config.el;\n const ppfx = config.stylePrefix;\n\n //@ts-ignore\n return $(el).spectrum({\n containerClassName: `${ppfx}one-bg ${ppfx}two-color`,\n appendTo: elToAppend || 'body',\n maxSelectionSize: 8,\n showPalette: true,\n palette: [],\n showAlpha: true,\n chooseText: 'Ok',\n cancelText: '⨯',\n ...opts,\n ...colorPicker,\n });\n }\n\n /**\n * Execute actions without triggering the storage and undo manager.\n * @param {Function} clb\n * @private\n */\n skip(clb: Function) {\n this.__skip = true;\n const um = this.UndoManager;\n um ? um.skip(clb) : clb();\n this.__skip = false;\n }\n\n /**\n * Set/get data from the HTMLElement\n * @param {HTMLElement} el\n * @param {string} name Data name\n * @param {any} value Date value\n * @return {any}\n * @private\n */\n data(el: any, name: string, value: any) {\n const varName = '_gjs-data';\n\n if (!el[varName]) {\n el[varName] = {};\n }\n\n if (isUndefined(value)) {\n return el[varName][name];\n } else {\n el[varName][name] = value;\n }\n }\n}\n","import { isObject } from 'underscore';\n\nexport default ({ $ }: { $: any }) => {\n if ($ && $.prototype && $.prototype.constructor.name !== 'jQuery') {\n const fn = $.fn;\n\n // Additional helpers\n\n fn.hide = function () {\n return this.css('display', 'none');\n };\n\n fn.show = function () {\n return this.css('display', 'block');\n };\n\n fn.focus = function () {\n const el = this.get(0);\n el && el.focus();\n return this;\n };\n\n // For spectrum compatibility\n\n fn.bind = function (ev: any, h: any) {\n return this.on(ev, h);\n };\n\n fn.unbind = function (ev: any, h: any) {\n if (isObject(ev)) {\n for (let name in ev) {\n ev.hasOwnProperty(name) && this.off(name, ev[name]);\n }\n\n return this;\n } else {\n return this.off(ev, h);\n }\n };\n\n fn.click = function (h: any) {\n return h ? this.on('click', h) : this.trigger('click');\n };\n\n fn.change = function (h: any) {\n return h ? this.on('change', h) : this.trigger('change');\n };\n\n fn.keydown = function (h: any) {\n return h ? this.on('keydown', h) : this.trigger('keydown');\n };\n\n fn.delegate = function (selector: any, events: any, data: any, handler: any) {\n if (!handler) {\n handler = data;\n }\n\n return this.on(events, selector, function (e: any) {\n e.data = data;\n handler(e);\n });\n };\n\n fn.scrollLeft = function () {\n let el = this.get(0);\n el = el.nodeType == 9 ? el.defaultView : el;\n let win = el instanceof Window ? el : null;\n return win ? win.pageXOffset : el.scrollLeft || 0;\n };\n\n fn.scrollTop = function () {\n let el = this.get(0);\n el = el.nodeType == 9 ? el.defaultView : el;\n let win = el instanceof Window ? el : null;\n return win ? win.pageYOffset : el.scrollTop || 0;\n };\n\n const offset = $.prototype.offset;\n fn.offset = function (coords: any) {\n let top, left;\n\n if (coords) {\n top = coords.top;\n left = coords.left;\n }\n\n if (typeof top != 'undefined') {\n this.css('top', `${top}px`);\n }\n if (typeof left != 'undefined') {\n this.css('left', `${left}px`);\n }\n\n return offset.call(this);\n };\n\n $.map = function (items: any, clb: any) {\n const ar = [];\n\n for (var i = 0; i < items.length; i++) {\n ar.push(clb(items[i], i));\n }\n\n return ar;\n };\n\n const indexOf = Array.prototype.indexOf;\n\n $.inArray = function (val: any, arr: any, i: any) {\n return arr == null ? -1 : indexOf.call(arr, val, i);\n };\n\n $.Event = function (src: any, props: any) {\n if (!(this instanceof $.Event)) {\n return new $.Event(src, props);\n }\n\n this.type = src;\n this.isDefaultPrevented = () => false;\n };\n }\n};\n","import { View, $ } from '../../common';\nimport { appendStyles } from '../../utils/mixins';\nimport EditorModel from '../model/Editor';\n\nexport default class EditorView extends View {\n constructor(model: EditorModel) {\n super({ model });\n //const { model } = this;\n const { Panels, UndoManager } = model.attributes;\n model.view = this;\n model.once('change:ready', () => {\n Panels.active();\n Panels.disableButtons();\n UndoManager.clear();\n setTimeout(() => {\n model.trigger('load', model.get('Editor'));\n model.clearDirtyCount();\n });\n });\n }\n\n render() {\n const { $el, model } = this;\n const { Panels, Canvas } = model.attributes;\n const { config, modules } = model;\n const pfx = config.stylePrefix;\n const classNames = [`${pfx}editor`];\n !config.customUI && classNames.push(`${pfx}one-bg ${pfx}two-color`);\n\n // @ts-ignore\n const contEl = $(config.el || `body ${config.container}`);\n config.cssIcons && appendStyles(config.cssIcons, { unique: true, prepand: true });\n $el.empty();\n\n // @ts-ignore\n if (config.width) contEl.css('width', config.width);\n // @ts-ignore\n if (config.height) contEl.css('height', config.height);\n\n $el.append(Canvas.render());\n $el.append(Panels.render());\n\n // Load shallow editor\n const shallow = model.get('shallow');\n const shallowCanvasEl = shallow.get('Canvas').render();\n shallowCanvasEl.style.display = 'none';\n $el.append(shallowCanvasEl);\n\n $el.attr('class', classNames.join(' '));\n // @ts-ignore\n contEl.addClass(`${pfx}editor-cont`).empty().append($el);\n modules.forEach(md => md.postRender && md.postRender(this));\n\n return this;\n }\n}\n","/**\n * Editor contains the top level API which you'll probably use to customize the editor or extend it with plugins.\n * You get the Editor instance on init method and you can pass options via its [Configuration Object](https://github.com/GrapesJS/grapesjs/blob/master/src/editor/config/config.ts)\n *\n * ```js\n * const editor = grapesjs.init({\n * // options\n * });\n * ```\n *\n * ## Available Events\n *\n * You can make use of available events in this way\n * ```js\n * editor.on('EVENT-NAME', (some, argument) => {\n * // do something\n * })\n * ```\n *\n * * `update` - The structure of the template is updated (its HTML/CSS)\n * * `undo` - Undo executed\n * * `redo` - Redo executed\n * * `load` - Editor is loaded\n *\n * ### Components\n * Check the [Components](/api/components.html) module.\n * ### Keymaps\n * Check the [Keymaps](/api/keymaps.html) module.\n * ### Style Manager\n * Check the [Style Manager](/api/style_manager.html) module.\n * ### Storage\n * Check the [Storage](/api/storage_manager.html) module.\n * ### Canvas\n * Check the [Canvas](/api/canvas.html) module.\n * ### RTE\n * Check the [Rich Text Editor](/api/rich_text_editor.html) module.\n * ### Commands\n * Check the [Commands](/api/commands.html) module.\n * ### Selectors\n * Check the [Selectors](/api/selector_manager.html) module.\n * ### Blocks\n * Check the [Blocks](/api/block_manager.html) module.\n * ### Assets\n * Check the [Assets](/api/assets.html) module.\n * ### Modal\n * Check the [Modal](/api/modal_dialog.html) module.\n * ### Devices\n * Check the [Devices](/api/device_manager.html) module.\n * ### Parser\n * Check the [Parser](/api/parser.html) module.\n * ### Pages\n * Check the [Pages](/api/pages.html) module.\n *\n * ## Methods\n * @module docsjs.Editor\n */\nimport { IBaseModule } from '../abstract/Module';\nimport AssetManager, { AssetEvent } from '../asset_manager';\nimport BlockManager, { BlockEvent } from '../block_manager';\nimport CanvasModule, { CanvasEvent } from '../canvas';\nimport CodeManagerModule from '../code_manager';\nimport CommandsModule, { CommandEvent } from '../commands';\nimport { AddOptions, EventHandler, LiteralUnion } from '../common';\nimport CssComposer from '../css_composer';\nimport CssRule from '../css_composer/model/CssRule';\nimport CssRules from '../css_composer/model/CssRules';\nimport DeviceManager from '../device_manager';\nimport ComponentManager, { ComponentEvent } from '../dom_components';\nimport Component from '../dom_components/model/Component';\nimport Components from '../dom_components/model/Components';\nimport ComponentWrapper from '../dom_components/model/ComponentWrapper';\nimport { ComponentAdd, DragMode } from '../dom_components/model/types';\nimport I18nModule from '../i18n';\nimport KeymapsModule, { KeymapEvent } from '../keymaps';\nimport ModalModule, { ModalEvent } from '../modal_dialog';\nimport LayerManager from '../navigator';\nimport PageManager from '../pages';\nimport PanelManager from '../panels';\nimport ParserModule from '../parser';\nimport { CustomParserCss } from '../parser/config/config';\nimport RichTextEditorModule, { RichTextEditorEvent } from '../rich_text_editor';\nimport { CustomRTE } from '../rich_text_editor/config/config';\nimport SelectorManager, { SelectorEvent } from '../selector_manager';\nimport StorageManager, { StorageEvent, StorageOptions, ProjectData } from '../storage_manager';\nimport StyleManager, { StyleManagerEvent } from '../style_manager';\nimport TraitManager from '../trait_manager';\nimport UndoManagerModule from '../undo_manager';\nimport UtilsModule from '../utils';\nimport html from '../utils/html';\nimport defaults, { EditorConfig, EditorConfigKeys } from './config/config';\nimport EditorModel, { EditorLoadOptions } from './model/Editor';\nimport EditorView from './view/EditorView';\n\nexport type ParsedRule = {\n selectors: string;\n style: Record;\n atRule?: string;\n params?: string;\n};\n\ntype GeneralEvent = 'canvasScroll' | 'undo' | 'redo' | 'load' | 'update';\n\ntype EditorBuiltInEvents =\n | ComponentEvent\n | BlockEvent\n | AssetEvent\n | KeymapEvent\n | StyleManagerEvent\n | StorageEvent\n | CanvasEvent\n | SelectorEvent\n | RichTextEditorEvent\n | ModalEvent\n | CommandEvent\n | GeneralEvent;\n\ntype EditorEvent = LiteralUnion;\n\ntype EditorConfigType = EditorConfig & { pStylePrefix?: string };\n\ntype EditorModelParam = Parameters[N];\n\nexport type EditorParam = Parameters[N];\n\nexport default class Editor implements IBaseModule {\n editorView?: EditorView;\n editor: EditorModel;\n $: any;\n em: EditorModel;\n config: EditorConfigType;\n\n constructor(config: EditorConfig = {}, opts: any = {}) {\n this.config = {\n ...defaults,\n ...config,\n pStylePrefix: config.stylePrefix ?? defaults.stylePrefix,\n };\n this.em = new EditorModel(this.config);\n this.$ = opts.$;\n this.em.init(this);\n this.editor = this.em;\n }\n\n get Config() {\n return this.em.config;\n }\n get I18n(): I18nModule {\n return this.em.I18n;\n }\n get Utils(): UtilsModule {\n return this.em.Utils;\n }\n get Commands(): CommandsModule {\n return this.em.Commands;\n }\n get Keymaps(): KeymapsModule {\n return this.em.Keymaps;\n }\n get Modal(): ModalModule {\n return this.em.Modal;\n }\n get Panels(): PanelManager {\n return this.em.Panels;\n }\n get Canvas(): CanvasModule {\n return this.em.Canvas;\n }\n get Parser(): ParserModule {\n return this.em.Parser;\n }\n get CodeManager(): CodeManagerModule {\n return this.em.CodeManager;\n }\n get UndoManager(): UndoManagerModule {\n return this.em.UndoManager;\n }\n get RichTextEditor(): RichTextEditorModule {\n return this.em.RichTextEditor;\n }\n get Pages(): PageManager {\n return this.em.Pages;\n }\n get Components(): ComponentManager {\n return this.em.Components;\n }\n get DomComponents(): ComponentManager {\n return this.em.Components;\n }\n get Layers(): LayerManager {\n return this.em.Layers;\n }\n get LayerManager(): LayerManager {\n return this.em.Layers;\n }\n get Css(): CssComposer {\n return this.em.Css;\n }\n get CssComposer(): CssComposer {\n return this.em.Css;\n }\n get Storage(): StorageManager {\n return this.em.Storage;\n }\n get StorageManager(): StorageManager {\n return this.em.Storage;\n }\n get Assets(): AssetManager {\n return this.em.Assets;\n }\n get AssetManager(): AssetManager {\n return this.em.Assets;\n }\n get Blocks(): BlockManager {\n return this.em.Blocks;\n }\n get BlockManager(): BlockManager {\n return this.em.Blocks;\n }\n get Traits(): TraitManager {\n return this.em.Traits;\n }\n get TraitManager(): TraitManager {\n return this.em.Traits;\n }\n get Selectors(): SelectorManager {\n return this.em.Selectors;\n }\n get SelectorManager(): SelectorManager {\n return this.em.Selectors;\n }\n get Styles(): StyleManager {\n return this.em.Styles;\n }\n get StyleManager(): StyleManager {\n return this.em.Styles;\n }\n get Devices(): DeviceManager {\n return this.em.Devices;\n }\n get DeviceManager(): DeviceManager {\n return this.em.Devices;\n }\n\n get EditorModel() {\n return this.em;\n }\n\n /**\n * Returns configuration object\n * @returns {any} Returns the configuration object or the value of the specified property\n */\n getConfig<\n P extends EditorConfigKeys | undefined = undefined,\n R = P extends EditorConfigKeys ? EditorConfig[P] : EditorConfig\n >(prop?: P): R {\n return this.em.getConfig(prop);\n }\n\n /**\n * Returns HTML built inside canvas\n * @param {Object} [opts={}] Options\n * @param {Component} [opts.component] Return the HTML of a specific Component\n * @param {Boolean} [opts.cleanId=false] Remove unnecessary IDs (eg. those created automatically)\n * @returns {string} HTML string\n */\n getHtml(opts?: EditorModelParam<'getHtml', 0>) {\n return this.em.getHtml(opts);\n }\n\n /**\n * Returns CSS built inside canvas\n * @param {Object} [opts={}] Options\n * @param {Component} [opts.component] Return the CSS of a specific Component\n * @param {Boolean} [opts.json=false] Return an array of CssRules instead of the CSS string\n * @param {Boolean} [opts.avoidProtected=false] Don't include protected CSS\n * @param {Boolean} [opts.onlyMatched=false] Return only rules matched by the passed component.\n * @param {Boolean} [opts.keepUnusedStyles=false] Force keep all defined rules. Toggle on in case output looks different inside/outside of the editor.\n * @returns {String|Array} CSS string or array of CssRules\n */\n getCss(opts?: EditorModelParam<'getCss', 0>) {\n return this.em.getCss(opts);\n }\n\n /**\n * Returns JS of all components\n * @param {Object} [opts={}] Options\n * @param {Component} [opts.component] Get the JS of a specific component\n * @returns {String} JS string\n */\n getJs(opts?: EditorModelParam<'getJs', 0>) {\n return this.em.getJs(opts);\n }\n\n /**\n * Return the complete tree of components. Use `getWrapper` to include also the wrapper\n * @return {Components}\n */\n getComponents(): Components {\n return this.Components.getComponents();\n }\n\n /**\n * Return the wrapper and its all components\n * @return {Component}\n */\n getWrapper(): ComponentWrapper | undefined {\n return this.Components.getWrapper();\n }\n\n /**\n * Set components inside editor's canvas. This method overrides actual components\n * @param {Array|Object|string} components HTML string or components model\n * @param {Object} opt the options object to be used by the [setComponents]{@link em#setComponents} method\n * @return {this}\n * @example\n * editor.setComponents('
New component
');\n * // or\n * editor.setComponents({\n * type: 'text',\n * classes:['cls'],\n * content: 'New component'\n * });\n */\n setComponents(components: ComponentAdd, opt: AddOptions = {}) {\n this.em.setComponents(components, opt);\n return this;\n }\n\n /**\n * Add components\n * @param {Array|Object|string} components HTML string or components model\n * @param {Object} opts Options\n * @param {Boolean} [opts.avoidUpdateStyle=false] If the HTML string contains styles,\n * by default, they will be created and, if already exist, updated. When this option\n * is true, styles already created will not be updated.\n * @return {Array}\n * @example\n * editor.addComponents('
New component
');\n * // or\n * editor.addComponents({\n * type: 'text',\n * classes:['cls'],\n * content: 'New component'\n * });\n */\n addComponents(components: ComponentAdd, opts?: AddOptions): Component[] {\n return this.getWrapper()!.append(components, opts);\n }\n\n /**\n * Returns style in JSON format object\n * @return {Object}\n */\n getStyle(): CssRules {\n return this.em.Css.getAll();\n }\n\n /**\n * Set style inside editor's canvas. This method overrides actual style\n * @param {Array|Object|string} style CSS string or style model\n * @return {this}\n * @example\n * editor.setStyle('.cls{color: red}');\n * //or\n * editor.setStyle({\n * selectors: ['cls'],\n * style: { color: 'red' }\n * });\n */\n setStyle(style: any, opt: any = {}) {\n this.em.setStyle(style, opt);\n return this;\n }\n\n /**\n * Add styles to the editor\n * @param {Array|Object|string} style CSS string or style model\n * @returns {Array} Array of created CssRule instances\n * @example\n * editor.addStyle('.cls{color: red}');\n */\n addStyle(style: any, opts = {}): CssRule[] {\n return this.em.addStyle(style, opts);\n }\n\n /**\n * Returns the last selected component, if there is one\n * @return {Model}\n */\n getSelected() {\n return this.em.getSelected();\n }\n\n /**\n * Returns an array of all selected components\n * @return {Array}\n */\n getSelectedAll() {\n return this.em.getSelectedAll();\n }\n\n /**\n * Get a stylable entity from the selected component.\n * If you select a component without classes the entity is the Component\n * itself and all changes will go inside its 'style' attribute. Otherwise,\n * if the selected component has one or more classes, the function will\n * return the corresponding CSS Rule\n * @return {Model}\n */\n getSelectedToStyle() {\n let selected = this.em.getSelected();\n\n if (selected) {\n return this.StyleManager.getModelToStyle(selected);\n }\n }\n\n /**\n * Select a component\n * @param {Component|HTMLElement} el Component to select\n * @param {Object} [opts] Options\n * @param {Boolean} [opts.scroll] Scroll canvas to the selected element\n * @return {this}\n * @example\n * // Select dropped block\n * editor.on('block:drag:stop', function(model) {\n * editor.select(model);\n * });\n */\n select(el?: EditorModelParam<'setSelected', 0>, opts?: { scroll?: boolean }) {\n this.em.setSelected(el, opts);\n return this;\n }\n\n /**\n * Add component to selection\n * @param {Component|HTMLElement|Array} el Component to select\n * @return {this}\n * @example\n * editor.selectAdd(model);\n */\n // selectAdd(el: Parameters[0]) {\n selectAdd(el: EditorModelParam<'addSelected', 0>) {\n this.em.addSelected(el);\n return this;\n }\n\n /**\n * Remove component from selection\n * @param {Component|HTMLElement|Array} el Component to select\n * @return {this}\n * @example\n * editor.selectRemove(model);\n */\n selectRemove(el: EditorModelParam<'removeSelected', 0>) {\n this.em.removeSelected(el);\n return this;\n }\n\n /**\n * Toggle component selection\n * @param {Component|HTMLElement|Array} el Component to select\n * @return {this}\n * @example\n * editor.selectToggle(model);\n */\n selectToggle(el: EditorModelParam<'toggleSelected', 0>) {\n this.em.toggleSelected(el);\n return this;\n }\n\n /**\n * Returns, if active, the Component enabled in rich text editing mode.\n * @returns {Component|null}\n * @example\n * const textComp = editor.getEditing();\n * if (textComp) {\n * console.log('HTML: ', textComp.toHTML());\n * }\n */\n getEditing() {\n return this.em.getEditing();\n }\n\n /**\n * Set device to the editor. If the device exists it will\n * change the canvas to the proper width\n * @param {string} name Name of the device\n * @return {this}\n * @example\n * editor.setDevice('Tablet');\n */\n setDevice(name: string) {\n this.em.set('device', name);\n return this;\n }\n\n /**\n * Return the actual active device\n * @return {string} Device name\n * @example\n * var device = editor.getDevice();\n * console.log(device);\n * // 'Tablet'\n */\n getDevice(): string {\n return this.em.get('device');\n }\n\n /**\n * Execute command\n * @param {string} id Command ID\n * @param {Object} options Custom options\n * @return {*} The return is defined by the command\n * @example\n * editor.runCommand('myCommand', {someValue: 1});\n */\n runCommand(id: string, options: Record = {}) {\n return this.Commands.run(id, options);\n }\n\n /**\n * Stop the command if stop method was provided\n * @param {string} id Command ID\n * @param {Object} options Custom options\n * @return {*} The return is defined by the command\n * @example\n * editor.stopCommand('myCommand', {someValue: 1});\n */\n stopCommand(id: string, options: Record = {}) {\n return this.Commands.stop(id, options);\n }\n\n /**\n * Store data to the current storage.\n * This will reset the counter of changes (`editor.getDirtyCount()`).\n * @param {Object} [options] Storage options.\n * @returns {Object} Stored data.\n * @example\n * const storedData = await editor.store();\n */\n async store(options?: T) {\n return await this.em.store(options);\n }\n\n /**\n * Load data from the current storage.\n * @param {Object} [options] Storage options.\n * @param {Object} [loadOptions={}] Load options.\n * @param {Boolean} [loadOptions.clear=false] Clear the editor state (eg. dirty counter, undo manager, etc.).\n * @returns {Object} Loaded data.\n * @example\n * const data = await editor.load();\n */\n async load(options?: T, loadOptions: EditorLoadOptions = {}) {\n return await this.em.load(options, loadOptions);\n }\n\n /**\n * Get the JSON project data, which could be stored and loaded back with `editor.loadProjectData(json)`\n * @returns {Object}\n * @example\n * console.log(editor.getProjectData());\n * // { pages: [...], styles: [...], ... }\n */\n getProjectData() {\n return this.em.storeData();\n }\n\n /**\n * Load data from the JSON project\n * @param {Object} data Project to load\n * @example\n * editor.loadProjectData({ pages: [...], styles: [...], ... })\n */\n loadProjectData(data: ProjectData) {\n return this.em.loadData(data);\n }\n\n storeData() {\n return this.em.storeData();\n }\n\n loadData(data: any) {\n return this.em.loadData(data);\n }\n\n /**\n * Returns container element. The one which was indicated as 'container'\n * on init method\n * @return {HTMLElement}\n */\n getContainer() {\n return this.config.el;\n }\n\n /**\n * Return the count of changes made to the content and not yet stored.\n * This count resets at any `store()`\n * @return {number}\n */\n getDirtyCount() {\n return this.em.getDirtyCount();\n }\n\n /**\n * Reset the counter of changes.\n */\n clearDirtyCount() {\n return this.em.clearDirtyCount();\n }\n\n /**\n * Update editor dimension offsets\n *\n * This method could be useful when you update, for example, some position\n * of the editor element (eg. canvas, panels, etc.) with CSS, where without\n * refresh you'll get misleading position of tools\n * @param {Object} [options] Options\n * @param {Boolean} [options.tools=false] Update the position of tools (eg. rich text editor, component highlighter, etc.)\n */\n refresh(opts?: { tools?: boolean }) {\n this.em.refreshCanvas(opts);\n }\n\n /**\n * Replace the built-in Rich Text Editor with a custom one.\n * @param {Object} obj Custom RTE Interface\n * @example\n * editor.setCustomRte({\n * // Function for enabling custom RTE\n * // el is the HTMLElement of the double clicked Text Component\n * // rte is the same instance you have returned the first time you call\n * // enable(). This is useful if need to check if the RTE is already enabled so\n * // ion this case you'll need to return the RTE and the end of the function\n * enable: function(el, rte) {\n * rte = new MyCustomRte(el, {}); // this depends on the Custom RTE API\n * ...\n * return rte; // return the RTE instance\n * }\n *\n * // Disable the editor, called for example when you unfocus the Text Component\n * disable: function(el, rte) {\n * rte.blur(); // this depends on the Custom RTE API\n * }\n *\n * // Called when the Text Component is focused again. If you returned the RTE instance\n * // from the enable function, the enable won't be called again instead will call focus,\n * // in this case to avoid double binding of the editor\n * focus: function (el, rte) {\n * rte.focus(); // this depends on the Custom RTE API\n * }\n * });\n */\n setCustomRte(obj: CustomRTE & ThisType) {\n this.RichTextEditor.customRte = obj;\n }\n\n /**\n * Replace the default CSS parser with a custom one.\n * The parser function receives a CSS string as a parameter and expects\n * an array of CSSRule objects as a result. If you need to remove the\n * custom parser, pass `null` as the argument\n * @param {Function|null} parser Parser function\n * @return {this}\n * @example\n * editor.setCustomParserCss(css => {\n * const result = [];\n * // ... parse the CSS string\n * result.push({\n * selectors: '.someclass, div .otherclass',\n * style: { color: 'red' }\n * })\n * // ...\n * return result;\n * });\n */\n setCustomParserCss(parser: CustomParserCss) {\n this.Parser.getConfig().parserCss = parser;\n return this;\n }\n\n /**\n * Change the global drag mode of components.\n * To get more about this feature read: https://github.com/GrapesJS/grapesjs/issues/1936\n * @param {String} value Drag mode, options: 'absolute' | 'translate'\n * @returns {this}\n */\n setDragMode(value: DragMode) {\n this.em.setDragMode(value);\n return this;\n }\n\n /**\n * Trigger event log message\n * @param {*} msg Message to log\n * @param {Object} [opts={}] Custom options\n * @param {String} [opts.ns=''] Namespace of the log (eg. to use in plugins)\n * @param {String} [opts.level='debug'] Level of the log, `debug`, `info`, `warning`, `error`\n * @return {this}\n * @example\n * editor.log('Something done!', { ns: 'from-plugin-x', level: 'info' });\n * // This will trigger following events\n * // `log`, `log:info`, `log-from-plugin-x`, `log-from-plugin-x:info`\n * // Callbacks of those events will always receive the message and\n * // options, as arguments, eg:\n * // editor.on('log:info', (msg, opts) => console.info(msg, opts))\n */\n log(msg: string, opts: { ns?: string; level?: string } = {}) {\n this.em.log(msg, opts);\n return this;\n }\n\n /**\n * Translate label\n * @param {String} key Label to translate\n * @param {Object} [opts] Options for the translation\n * @param {Object} [opts.params] Params for the translation\n * @param {Boolean} [opts.noWarn] Avoid warnings in case of missing resources\n * @returns {String}\n * @example\n * editor.t('msg');\n * // use params\n * editor.t('msg2', { params: { test: 'hello' } });\n * // custom local\n * editor.t('msg2', { params: { test: 'hello' } l: 'it' });\n */\n t(...args: any[]) {\n return this.em.t(...args);\n }\n\n /**\n * Attach event\n * @param {string} event Event name\n * @param {Function} callback Callback function\n * @return {this}\n */\n on(event: EditorEvent, callback: EventHandler) {\n this.em.on(event, callback);\n return this;\n }\n\n /**\n * Attach event and detach it after the first run\n * @param {string} event Event name\n * @param {Function} callback Callback function\n * @return {this}\n */\n once(event: EditorEvent, callback: EventHandler) {\n this.em.once(event, callback);\n return this;\n }\n\n /**\n * Detach event\n * @param {string} event Event name\n * @param {Function} callback Callback function\n * @return {this}\n */\n off(event: EditorEvent, callback: EventHandler) {\n this.em.off(event, callback);\n return this;\n }\n\n /**\n * Trigger event\n * @param {string} event Event to trigger\n * @return {this}\n */\n trigger(event: EditorEvent, ...args: any[]) {\n this.em.trigger.apply(this.em, [event, ...args]);\n return this;\n }\n\n /**\n * Destroy the editor\n */\n destroy() {\n if (!this.em) return;\n this.em.destroyAll();\n this.editorView = undefined;\n }\n\n /**\n * Returns editor element\n * @return {HTMLElement}\n * @private\n */\n getEl() {\n return this.editorView?.el;\n }\n\n /**\n * Returns editor model\n * @return {Model}\n * @private\n */\n getModel() {\n return this.em;\n }\n\n /**\n * Render editor\n * @return {HTMLElement}\n */\n render() {\n this.editorView?.remove();\n this.editorView = new EditorView(this.em);\n return this.editorView.render().el;\n }\n\n /**\n * Trigger a callback once the editor is loaded and rendered.\n * The callback will be executed immediately if the method is called on the already rendered editor.\n * @param {Function} clb Callback to trigger\n * @example\n * editor.onReady(() => {\n * // perform actions\n * });\n */\n onReady(clb: EventHandler) {\n this.em.get('ready') ? clb(this) : this.em.on('load', clb);\n }\n\n /**\n * Print safe HTML by using ES6 tagged template strings.\n * @param {Array} literals\n * @param {Array} substs\n * @returns {String}\n * @example\n * const unsafeStr = '';\n * const safeStr = 'Hello';\n * // Use `$${var}` to avoid escaping\n * const strHtml = editor.html`Escaped ${unsafeStr} unescaped $${safeStr}`;\n */\n html = html;\n}\n","import { isString } from 'underscore';\nimport Editor from '../editor';\nimport { getGlobal } from '../utils/mixins';\n\ntype PluginOptions = Record;\n\nexport type Plugin = (editor: Editor, config: T) => void;\n\nconst getPluginById = (pluginId: string, plugins: PluginManager) => {\n let result = plugins.get(pluginId);\n\n // Try to search in global context\n if (!result) {\n const wplg = (getGlobal() as any)[pluginId];\n result = wplg?.default || wplg;\n }\n\n return result;\n};\n\nexport const getPlugin = (plugin: string | Plugin, plugins: PluginManager) => {\n return isString(plugin)\n ? getPluginById(plugin, plugins)\n : (plugin as unknown as { default: Plugin })?.default || plugin;\n};\n\nexport const logPluginWarn = (editor: Editor, plugin: string) => {\n editor.getModel().logWarning(`Plugin ${plugin} not found`, {\n context: 'plugins',\n plugin,\n });\n};\n\nexport default class PluginManager {\n plugins: Record = {};\n\n /**\n * Add new plugin. Plugins could not be overwritten\n * @param {string} id Plugin ID\n * @param {Function} plugin Function which contains all plugin logic\n * @return {Function} The plugin function\n * @deprecated Don't use named plugins, create plugins as simple functions. More about [Plugins](https://grapesjs.com/docs/modules/Plugins.html)\n * @example\n * PluginManager.add('some-plugin', function(editor) {\n * editor.Commands.add('new-command', {\n * run: function(editor, senderBtn){\n * console.log('Executed new-command');\n * }\n * })\n * });\n */\n add(id: string, plugin: Plugin) {\n const plg = this.get(id);\n\n if (plg) {\n return plg;\n }\n\n // @ts-ignore\n this.plugins[id] = plugin;\n\n return plugin;\n }\n\n /**\n * Returns plugin by ID\n * @param {string} id Plugin ID\n * @return {Function|undefined} Plugin\n * @example\n * var plugin = PluginManager.get('some-plugin');\n * plugin(editor);\n */\n get(id: string): Plugin | undefined {\n return this.plugins[id];\n }\n\n /**\n * Returns object with all plugins\n */\n getAll() {\n return this.plugins;\n }\n}\n","/**\n * File made for IE/Edge support\n * https://github.com/GrapesJS/grapesjs/issues/214\n */\nimport { hasWin } from './mixins';\n\nexport default () => {\n /**\n * Check if IE/Edge\n * @return {Boolean}\n */\n const isIE = () => {\n let match;\n const agent = window.navigator.userAgent;\n const rules: [string, RegExp][] = [\n ['edge', /Edge\\/([0-9\\._]+)/],\n ['ie', /MSIE\\s(7\\.0)/],\n ['ie', /MSIE\\s([0-9\\.]+);.*Trident\\/[4-7].0/],\n ['ie', /Trident\\/7\\.0.*rv\\:([0-9\\.]+).*\\).*Gecko$/],\n ];\n\n for (let i = 0; i < rules.length; i++) {\n const rule = rules[i];\n match = rule[1].exec(agent);\n if (match) break;\n }\n\n return !!match;\n };\n\n if (hasWin() && isIE()) {\n const originalCreateHTMLDocument = DOMImplementation.prototype.createHTMLDocument;\n DOMImplementation.prototype.createHTMLDocument = title => {\n if (!title) title = '';\n return originalCreateHTMLDocument.apply(document.implementation, [title]);\n };\n }\n};\n","import { isElement } from 'underscore';\nimport Editor from './editor';\nimport { EditorConfig } from './editor/config/config';\nimport PluginManager, { Plugin, getPlugin, logPluginWarn } from './plugin_manager';\nimport $ from './utils/cash-dom';\nimport polyfills from './utils/polyfills';\n\ninterface InitEditorConfig extends EditorConfig {\n grapesjs?: typeof grapesjs;\n}\n\npolyfills();\n\nconst plugins = new PluginManager();\nconst editors: Editor[] = [];\n\nexport const usePlugin =

| string>(plugin: P, opts?: P extends Plugin ? C : {}) => {\n let pluginResult = getPlugin(plugin, plugins);\n\n return (editor: Editor) => {\n if (pluginResult) {\n pluginResult(editor, opts || {});\n } else {\n logPluginWarn(editor, plugin as string);\n }\n };\n};\n\nexport const grapesjs = {\n $,\n\n editors,\n\n plugins,\n\n usePlugin,\n\n // @ts-ignore Will be replaced on build\n version: __GJS_VERSION__,\n\n /**\n * Initialize the editor with passed options\n * @param {Object} config Configuration object\n * @param {string|HTMLElement} config.container Selector which indicates where render the editor\n * @param {Boolean} [config.autorender=true] If true, auto-render the content\n * @param {Array} [config.plugins=[]] Array of plugins to execute on start\n * @param {Object} [config.pluginsOpts={}] Custom options for plugins\n * @param {Boolean} [config.headless=false] Init headless editor\n * @return {Editor} Editor instance\n * @example\n * var editor = grapesjs.init({\n * container: '#myeditor',\n * components: '

Hello world
',\n * style: '.hello{color: red}',\n * })\n */\n init(config: EditorConfig = {}) {\n const { headless } = config;\n const els = config.container;\n if (!els && !headless) throw new Error(\"'container' is required\");\n const initConfig: InitEditorConfig = {\n autorender: true,\n plugins: [],\n pluginsOpts: {},\n ...config,\n grapesjs: this,\n el: headless ? undefined : isElement(els) ? els : (document.querySelector(els!) as HTMLElement),\n };\n const editor = new Editor(initConfig, { $ });\n const em = editor.getModel();\n\n // Load plugins\n initConfig.plugins!.forEach(pluginId => {\n const plugin = getPlugin(pluginId, plugins);\n const plgOptions = initConfig.pluginsOpts![pluginId as string] || {};\n\n if (plugin) {\n plugin(editor, plgOptions);\n } else {\n logPluginWarn(editor, pluginId as string);\n }\n });\n\n // Execute `onLoad` on modules once all plugins are initialized.\n // A plugin might have extended/added some custom type so this\n // is a good point to load stuff like components, css rules, etc.\n em.loadOnStart();\n initConfig.autorender && !headless && editor.render();\n editors.push(editor);\n\n return editor;\n },\n};\n\n// Exports for TS\nexport type { default as Asset } from './asset_manager/model/Asset';\nexport type { default as Assets } from './asset_manager/model/Assets';\nexport type { default as Block } from './block_manager/model/Block';\nexport type { default as Blocks } from './block_manager/model/Blocks';\nexport type { default as Categories } from './block_manager/model/Categories';\nexport type { default as Category } from './block_manager/model/Category';\nexport type { default as Canvas } from './canvas/model/Canvas';\nexport type { default as CanvasSpot } from './canvas/model/CanvasSpot';\nexport type { default as CanvasSpots } from './canvas/model/CanvasSpots';\nexport type { default as Frame } from './canvas/model/Frame';\nexport type { default as Frames } from './canvas/model/Frames';\nexport type { default as CssRule } from './css_composer/model/CssRule';\nexport type { default as CssRules } from './css_composer/model/CssRules';\nexport type { default as Device } from './device_manager/model/Device';\nexport type { default as Devices } from './device_manager/model/Devices';\nexport type { default as ComponentManager } from './dom_components';\nexport type { default as Component } from './dom_components/model/Component';\nexport type { default as Components } from './dom_components/model/Components';\nexport type { default as ComponentView } from './dom_components/view/ComponentView';\nexport type { default as Editor } from './editor';\nexport type { default as Modal } from './modal_dialog/model/Modal';\nexport type { default as Page } from './pages/model/Page';\nexport type { default as Pages } from './pages/model/Pages';\nexport type { default as Button } from './panels/model/Button';\nexport type { default as Buttons } from './panels/model/Buttons';\nexport type { default as Panel } from './panels/model/Panel';\nexport type { default as Panels } from './panels/model/Panels';\nexport type { default as Selector } from './selector_manager/model/Selector';\nexport type { default as Selectors } from './selector_manager/model/Selectors';\nexport type { default as State } from './selector_manager/model/State';\nexport type { default as Properties } from './style_manager/model/Properties';\nexport type { default as Property } from './style_manager/model/Property';\nexport type { default as PropertyRadio } from './style_manager/model/PropertyRadio';\nexport type { default as PropertySelect } from './style_manager/model/PropertySelect';\nexport type { default as PropertyNumber } from './style_manager/model/PropertyNumber';\nexport type { default as PropertySlider } from './style_manager/model/PropertySlider';\nexport type { default as PropertyComposite } from './style_manager/model/PropertyComposite';\nexport type { default as PropertyStack } from './style_manager/model/PropertyStack';\nexport type { default as Sector } from './style_manager/model/Sector';\nexport type { default as Sectors } from './style_manager/model/Sectors';\n\nexport default grapesjs;\n"],"names":["root","factory","exports","module","define","amd","globalThis","window","this","js_beautify","css_beautify","html_beautify","beautify","src","config","js","css","html","get_beautify","legacy_beautify_css","__webpack_modules__","OutputLine","parent","__parent","__character_count","__indent_count","__alignment_count","__wrap_point_index","__wrap_point_character_count","__wrap_point_indent_count","__wrap_point_alignment_count","__items","IndentStringCache","options","baseIndentString","__cache","__indent_size","indent_size","__indent_string","indent_char","indent_with_tabs","Array","join","indent_level","__base_string","__base_string_length","length","Output","__indent_cache","raw","_end_with_newline","end_with_newline","wrap_line_length","indent_empty_lines","__lines","previous_line","current_line","next_line","space_before_token","non_breaking_space","previous_token_wrapped","__add_outputline","prototype","clone_empty","line","set_indent","item","index","has_match","pattern","lastCheckedOutput","match","indent","alignment","is_empty","get_indent_size","_set_wrap_point","_should_wrap","_allow_wrap","add_new_line","next","slice","splice","last","push","last_newline_index","lastIndexOf","pop","_remove_indent","_remove_wrap_indent","trim","toString","result","get_indent_string","column","__ensure_cache","__add_column","Math","floor","get_line_number","force_newline","just_added_newline","get_code","eol","last_item","replace","sweet_code","set_wrap_point","add_raw_token","token","x","newlines","whitespace_before","text","add_token","printable_token","__add_space_before_token","remove_indent","output_length","eat_newlines","undefined","just_added_blankline","ensure_empty_line_above","starts_with","ends_with","potentialEmptyLine","indexOf","Options","merge_child_field","raw_options","_mergeOpts","disabled","_get_boolean","_get_characters","_get_number","preserve_newlines","max_preserve_newlines","templating","_get_selection_list","allOptions","childFieldName","name","finalOpts","_normalizeOpts","key","convertedOpts","_get_array","default_value","option_value","concat","split","parseInt","isNaN","_get_selection","selection_list","Error","_is_valid_selection","some","normalizeOpts","mergeOpts","regexp_has_sticky","RegExp","hasOwnProperty","InputScanner","input_string","__input","__input_length","__position","restart","back","hasNext","val","charAt","peek","__match","lastIndex","pattern_match","exec","sticky","test","testChar","read","starting_pattern","until_pattern","until_after","readUntil","match_index","substring","readUntilAfter","get_regexp","match_from","flags","source","get_literal_regexp","literal_string","peekUntilAfter","start","lookBack","testVal","toLowerCase","Directives","start_block_pattern","end_block_pattern","__directives_block_pattern","__directive_pattern","__directives_end_ignore_pattern","get_directives","directives","directive_match","readIgnored","input","__unused_webpack_exports","Beautifier","source_text","defaultOptions","directives_core","lineBreak","allLineBreaks","whitespaceChar","whitespacePattern","block_comment_pattern","comment_pattern","_source_text","_options","_ch","_input","NESTED_AT_RULE","CONDITIONAL_GROUP_RULE","NON_SEMICOLON_NEWLINE_PROPERTY","eatString","endChars","eatWhitespace","allowAtLeastOneNewLine","newline_count","_output","foundNestedPseudoClass","openParen","i","ch","print_string","output_string","_indentLevel","preserveSingleSpace","isAfterSpace","outdent","_nestedLevel","previous_ch","parenLevel","insideRule","insidePropertyValue","enteringConditionalGroup","insideNonNestedAtRule","insideScssMap","topCharacter","insideNonSemiColonValues","comment","ignore","variable","variableOrRule","newline_between_rules","brace_style","preserveQuoteSpace","space_needed","selector_separator_newline","preserveAfterSpace","space_around_combinator","BaseOptions","call","space_around_selector_separator","brace_style_split","bs","__webpack_module_cache__","moduleId","cachedModule","legacy_beautify_html","Token","type","comments_before","previous","opened","closed","TokenStream","WhitespacePattern","TOKEN","START","RAW","EOF","Tokenizer","__tokens","_patterns","whitespace","tokenize","current","_reset","open_token","open_stack","comments","_get_next_token","_is_comment","add","isEmpty","_is_opening","_is_closing","_is_first_token","previous_token","_readWhitespace","resulting_string","_create_token","current_token","whitespace_before_token","parent_token","__tokens_length","__parent_token","Pattern","input_scanner","_line_regexp","__set_whitespace_patterns","whitespace_chars","newline_chars","_match_pattern","_newline_regexp","matches","__split","matching","_create","_update","regexp","start_index","next_match","_starting_pattern","_until_pattern","_until_after","read_match","until","starting_with","template_names","django","erb","handlebars","php","smarty","TemplatablePattern","__template_pattern","_disabled","Object","assign","_excluded","__patterns","handlebars_comment","handlebars_unescaped","django_value","django_comment","smarty_comment","smarty_literal","__set_templated_pattern","disable","language","read_options","exclude","_read_template","items","c","peek1","html_source","Printer","base_indent_string","alignment_size","current_line_has_match","set_space_before_token","value","non_breaking","print_preserved_newlines","raw_token","TEXT","n","print_newline","traverse_whitespace","force","print_token","get_full_indent","level","get_custom_beautifier_name","tag_check","typeAttribute","start_token","ATTRIBUTE","EQUALS","VALUE","get_type_attribute","search","in_array","what","arr","TagFrame","parser_token","tag","tag_name","TagStack","printer","_printer","_current_frame","_js_beautify","_css_beautify","_tag_stack","optionHtml","_is_wrap_attributes_force","wrap_attributes","substr","_is_wrap_attributes_force_expand_multiline","_is_wrap_attributes_force_aligned","_is_wrap_attributes_aligned_multiple","_is_wrap_attributes_preserve","_is_wrap_attributes_preserve_aligned","get_parser_token","record_tag","new_frame","_try_pop_frame","frame","_get_frame","tag_list","stop_list","try_pop","indent_to_tag","last_token","last_tag_token","TagOpenParserToken","tokens","TAG_OPEN","COMMENT","_handle_tag_open","tag_complete","_handle_inside_tag","TAG_CLOSE","_handle_tag_close","_handle_text","is_unformatted","tag_start_char","has_wrapped_attrs","indent_content","is_content_unformatted","is_inline_element","wrapped","attr_count","wrap_attributes_min_attrs","custom_beautifier_name","_print_custom_beatifier_text","local","_beautifier","script_indent_level","pre","post","indent_scripts","indentation","matched","Child_options","white","_get_tag_open_token","is_empty_element","is_start_tag","_set_tag_position","start_tag_token","peek_token","peek_index","is_end_tag","multiline_content","tag_check_match","startsWith","handlebar_starts","wrap_attributes_indent_size","void_elements","unformatted","content_unformatted","inline","inline_custom_elements","includes","_do_optional_end_element","extra_liners","_calcluate_parent_multiline","do_end_expand","indent_inner_html","indent_head_inner_html","indent_body_inner_html","p_closers","p_parent_excludes","p_parent","indent_handlebars","unformatted_content_delimiter","BaseTokenizer","BASETOKEN","UNKNOWN","_current_tag_name","templatable_reader","pattern_reader","word","single_quote","double_quote","attribute","element_name","handlebars_open","handlebars_raw_close","cdata","conditional_comment","processing","_unformatted_content_delimiter","literal_regexp","_read_open_handlebars","_read_attribute","_read_close","_read_raw_content","_read_content_word","_read_comment_or_cdata","_read_processing","_read_open","content","_is_content_unformatted","style_html","requireamd","legacy_beautify_js","js_source_text","acorn","line_starters","positionable_operators","reserved_word","RESERVED","reserved_array","words","special_words","OPERATOR_POSITION","list","generateMapFromStrings","OPERATOR_POSITION_BEFORE_OR_PRESERVE","before_newline","preserve_newline","MODE","remove_redundant_indentation","output","multiline_frame","mode","start_line_index","is_array","is_expression","_tokens","_last_last_text","_flags","_previous_flags","_flag_store","create_flags","flags_base","next_indent_level","indentation_level","line_indent_level","START_BLOCK","last_word","declaration_statement","declaration_assignment","inline_frame","if_block","else_block","class_start_block","do_block","do_while","import_block","in_case_statement","in_case","case_body","case_block","ternary_depth","test_output_raw","set_mode","tokenizer","handle_token","preserve_statement_flags","START_EXPR","handle_start_expr","END_EXPR","handle_end_expr","handle_start_block","END_BLOCK","handle_end_block","WORD","handle_word","SEMICOLON","handle_semicolon","STRING","handle_string","handle_equals","OPERATOR","handle_operator","COMMA","handle_comma","BLOCK_COMMENT","handle_block_comment","handle_comment","DOT","handle_dot","handle_eof","handle_unknown","handle_whitespace_and_comments","keep_whitespace","keep_array_indentation","comment_token","j","newline_restricted_tokens","allow_wrap_or_preserved_newline","force_linewrap","shouldPreserveOrForce","shouldPrintOperatorNewline","operator_position","next_token","restore_mode","print_token_line_indentation","comma_first","popped","deindent","start_of_object_property","start_of_statement","next_mode","space_in_paren","space_before_conditional","peek_back_two","space_after_named_function","peek_back_three","space_after_anon_function","space_in_empty_paren","second_token","empty_braces","empty_anonymous_function","brace_preserve_inline","check_token","jslint_happy","prefix","isGeneratorAsterisk","isUnary","space_before","space_after","in_ternary","isColon","isTernaryColon","isOtherColon","after_newline","new_line_needed","preserve","newline","print_block_commment","lines","s","out","idx","split_linebreaks","javadoc","starless","lastIndent","lastIndentLength","all_lines_start_with","len","each_line_matches_indent","break_chained_methods","unindent_chained_methods","__unused_webpack_module","baseASCIIidentifierChars","nonASCIIidentifierStartChars","nonASCIIidentifierChars","unicodeEscapeOrCodePoint","identifierStart","identifierChars","identifier","identifierMatch","validPositionValues","raw_brace_style","braces_on_own_line","unescape_strings","e4x","number_pattern","digit","dot_pattern","punct","in_html_comment","punct_pattern","reserved_words","reserved_word_pattern","templatable","template","number","block_comment","html_comment_start","html_comment_end","include","shebang","xml","template_text","template_expression","_read_non_javascript","_read_string","_read_pair","_read_word","_read_singles","_read_comment","_read_regexp","_read_xml","_read_punctuation","d","sharp","has_char_escapes","_read_string_recursive","escaped","input_scan","String","fromCharCode","unescape_string","_allow_regexp_or_xml","esc","in_char_class","xmlStr","rootTag","isCurlyRoot","depth","isEndTag","tagName","delimiter","allow_unescaped_newlines","start_sub","current_char","_","Backbone","core_slice","apply","fn","ctx","args","hasKeys","obj","keys","isArray","arguments","all","getMagicFusionIndex","callstackWasIndexed","magicFusionIndex","indexCycle","defer","ObjectRegistry","registeredObjects","cidIndexes","onoff","which","objects","l","objectRegistry","register","unregister","isFunction","actionUndoRedo","action","undoTypes","object","before","after","managerUndoRedo","manager","stack","magic","everything","isCurrentlyUndoRedoing","pointer","actions","isUndo","clone","models","at","where","get","shift","trigger","validateUndoActionCreation","undoTypesType","condition","addToStack","track","res","diff","maximumStackLength","isRegistered","cid","contains","map","UndoTypes","collection","model","remove","each","unset","set","unsetData","afterAttributes","changedAttributes","keysAfter","previousAttributes","pick","keysPrevious","reset","previousModels","OwnedUndoTypes","manipulateUndoType","manipType","undoType","fns","undoTypesInstance","isObject","extend","Action","Model","defaults","undo","attributes","redo","UndoStack","Collection","Infinity","setMaxLength","UndoManager","initialize","attr","on","startTracking","isArguments","stopTracking","isTracking","_addToStack","unregisterAll","undoAll","redoAll","isAvailable","merge","undoManager","addUndoType","changeUndoType","removeUndoType","clear","defaultAttributes","self","g","global","$","previousBackbone","VERSION","noConflict","emulateHTTP","emulateJSON","_listening","Events","eventSplitter","eventsApi","iteratee","events","callback","opts","names","context","_events","onApi","listening","_listeners","id","interop","listenTo","_listenId","uniqueId","listeningTo","_listeningTo","Listening","error","tryCatchOn","handlers","count","e","off","offApi","listeners","stopListening","ids","remaining","handler","_callback","cleanup","once","onceMap","bind","listenToOnce","offer","max","triggerApi","objEvents","allEvents","triggerEvents","ev","a1","a2","a3","listener","unbind","attrs","preinitialize","cidPrefix","parse","changed","validationError","idAttribute","toJSON","sync","escape","has","_validate","silent","changes","changing","_changing","_previousAttributes","prev","isEqual","prevId","_pending","hasChanged","old","fetch","success","resp","serverAttrs","wrapError","save","wait","validate","method","isNew","patch","xhr","destroy","url","base","urlError","encodeURIComponent","constructor","isValid","comparator","setOptions","addOptions","array","insert","min","tail","singular","removed","_removeModels","added","merged","_isModel","toAdd","toMerge","toRemove","modelMap","sort","sortable","sortAttr","isString","existing","_prepareModel","_addReference","orderChanged","m","_removeReference","unshift","_byId","modelId","first","findWhere","sortBy","pluck","create","callbackOpts","values","CollectionIterator","ITERATOR_VALUES","ITERATOR_KEYS","entries","ITERATOR_KEYSVALUES","_onModelEvent","event","$$iterator","Symbol","iterator","kind","_collection","_kind","_index","done","View","viewOptions","_ensureElement","delegateEventSplitter","selector","$el","find","render","_removeElement","setElement","element","undelegateEvents","_setElement","delegateEvents","el","delegate","eventName","undelegate","_createElement","document","createElement","className","_setAttributes","addMethod","cb","defaultVal","addUnderscoreMethods","Class","methods","instance","modelMatcher","matcher","collectionMethods","forEach","collect","reduce","foldl","inject","reduceRight","foldr","detect","filter","select","reject","every","any","invoke","toArray","size","head","take","initial","rest","drop","without","difference","shuffle","chain","sample","partition","groupBy","countBy","indexBy","findIndex","findLastIndex","modelMethods","pairs","invert","omit","Base","mixin","mappings","functions","memo","methodMap","params","dataType","data","contentType","JSON","stringify","_method","beforeSend","setRequestHeader","processData","textStatus","errorThrown","ajax","Router","routes","_bindRoutes","optionalParam","namedParam","splatParam","escapeRegExp","route","isRegExp","_routeToRegExp","router","history","fragment","_extractParameters","execute","navigate","optional","param","decodeURIComponent","History","checkUrl","location","routeStripper","rootStripper","pathStripper","started","interval","atRoot","pathname","getSearch","matchRoot","decodeFragment","decodeURI","href","getHash","getPath","path","getFragment","_usePushState","_wantsHashChange","hashChange","_hasHashChange","documentMode","_useHashChange","_wantsPushState","pushState","_hasPushState","rootPath","iframe","style","display","tabIndex","body","iWindow","insertBefore","firstChild","contentWindow","open","close","hash","addEventListener","attachEvent","_checkUrlInterval","setInterval","loadUrl","stop","removeEventListener","detachEvent","removeChild","clearInterval","decodedFragment","title","_updateHash","protoProps","staticProps","child","__super__","_module","em","CanvasSpotBuiltInTypes","getView","componentView","getBoxRect","cvView","Canvas","getCanvasView","boxRect","getElBoxRect","y","width","height","getStyle","top","left","position","translate","isType","run","ed","Components","Css","bindAll","editor","canvasModel","canvas","toggleMove","disableDragger","onKeyUp","stopCommand","enableDragger","toggleDragger","enable","dragger","methodCls","getCanvas","classList","ppfx","getPosition","setPosition","onStart","onDrag","onEnd","methodEv","methodsEv","classes","cls","defineCommand","def","o","pfx","stylePrefix","pStylePrefix","hoverClass","badgeClass","plhClass","freezClass","init","onFrameScroll","getElement","getCanvasBody","getBody","getCanvasTools","getToolsEl","offset","rect","getBoundingClientRect","ownerDocument","scrollTop","scrollLeft","callRun","abort","sender","callStop","Commands","toSelect","components","component","getSelectedAll","Boolean","logWarning","evName","target","getEl","doc","guidesStatic","guidesTarget","setupGuides","getModel","isTran","guidesContainer","getGuidesContainer","getGuidesTarget","getGuidesStatic","drg","toggleDrag","getEventOpts","guides","guide","parentNode","guidesEl","getConfig","elInfoX","elInfoY","guideContent","innerHTML","appendChild","getGlobalToolsEl","elGuideInfoX","elGuideInfoY","elGuideInfoContentX","querySelector","elGuideInfoContentY","debounce","updateGuides","debug","renderGuide","children","getElementGuides","lastEl","lastPos","origin","pos","getElementPos","getGuidePosUpdate","originRect","un","guideSize","active","numEl","noScroll","getTranslate","transform","axis","itemStr","toUpperCase","parseFloat","setTranslate","end","unit","__p","styleUp","addStyle","avoidStore","prop","Styles","__emitCmpStyleUpdate","getSelected","_getDragData","center","relPos","parentRel","pStyle","getMouseRelativeCanvas","offsetP","guidesInfo","renderGuideInfo","opt","hideGuidesInfo","rectOrigin","isUndefined","isY","origEdge1","origEdge1Raw","origEdge2","origEdge2Raw","elGuideInfo","elGuideInfoCnt","guideInfoStyle","stat","statEdge2","gap","a","b","isEdge1","statEdge1","statEdge1Raw","statEdge2Raw","posFirst","posSecond","pos2","sizeRaw","round","hasFocus","coll","snd","cmp","incr","getChildAt","wrappers","Pages","getAllWrappers","flatten","wrp","findType","rules","CssComposer","getAll","rule","md","copy","modal","Modal","cm","CodeManager","editors","oHtmlEd","buildEditor","oCsslEd","htmlEditor","cssEditor","class","textViewCode","setContent","getHtml","optsHtml","getCss","optsCss","codeName","theme","label","createViewer","EditorView","isEnabled","fullscreenElement","webkitFullscreenElement","mozFullScreenElement","requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen","exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen","fsChanged","targetEl","isElement","getContainer","noSelClass","getBadgeEl","addClass","getHighlighterEl","wp","$wrapper","initSorter","toggleClipboard","drag","cacheEl","startSelectPosition","frameEl","contentDocument","sorter","draggable","onEndMove","stopSelectComponent","getContentWindow","rollback","initSorterFromModel","view","onEndMoveFromModel","initSorterFromModels","lastModel","frameView","getCurrentFrame","toMove","onMoveClb","onSelect","keyCode","moved","endMove","$badge","getBadge","$hl","getHighlighter","removeClass","am","custom","__customData","onceClose","AssetManager","types","accept","modalTitle","t","setTarget","onClick","onDblClick","__behaviour","rendered","container","__trgCustom","assets","uploadEl","setAttribute","bm","appendTo","firstRender","pn","Panels","getPanel","addPanel","Blocks","lm","LayerManager","lmConfig","layers","panels","pm","$cnt","DeviceManager","SelectorManager","StyleManager","trgEvCnt","$cntInner","$cntSlm","$cntSm","append","showDevices","devicePanel","dvEl","slmConfig","sm","smConfig","$header","pnCnt","toggleSm","show","hide","panelC","Config","tm","TraitManager","confTm","$cn","$cn2","toggleTm","clp","lastSelected","sel","selected","addOpts","doAdd","pageBody","getMainComponent","emitUpdate","pasteable","cop","canMove","cmdOutline","getPanels","preventDrag","tglEffects","mthEv","tlb","getToolbarEl","elP","querySelectorAll","pointerEvents","shouldRunSwVisibility","isActive","stopDefault","editorEl","helper","onclick","panel","canvasS","padding","margin","refresh","runCommand","runDefault","canvasView","getResizerEl","posFetcher","mousePosFetcher","getMouseRelativePos","canvasResizer","forceNew","Utils","Resizer","blur","focus","command","Toolbar","autoAdd","itemsView","itemType","reuseView","addTo","itemViewNotFound","ns","warn","frag","itemView","typeField","createDocumentFragment","clearItems","empty","onRender","onRemoveBefore","onRemove","DomainViews","props","mousedown","handleClick","preventDefault","stopPropagation","getFrameEl","clientX","clientY","execCommand","Editor","ToolbarView","showOffsets","frameOff","canvasOff","adjScroll","startSelectComponent","toggleSelectComponent","listenToEl","onFrameUpdated","onContainerChange","onHovered","updateGlobalPos","_upToolbar","updateAttached","getFrames","win","getWindow","onHover","onOut","onFrameResize","getComponentView","parentEl","getComponentModel","currentDoc","setHovered","useValid","setCurrentFrame","updateLocalPos","views","getViewEl","elHovered","updateToolsLocal","toggleToolsEl","currentFrame","elSelected","updateToolsGlobal","initResize","getElSelected","getElHovered","showElementOffset","elPos","hideElementOffset","showFixedElementOffset","state","hideFixedElementOffset","hideHighlighter","opacity","isEditing","isChildOf","updateBadge","badge","bStyle","posOnly","icon","getIcon","clsBadge","customeLabel","customBadgeLabel","badgeLabel","getName","getTargetToElementFixed","leftOff","showHighlighter","elem","resizable","spotTypeResize","CanvasSpot","Resize","hasCustomResize","hasCustomSpot","removeSpots","addSpot","docs","resizer","keyHeight","keyWidth","currentUnit","keepAutoHeight","keepAutoWidth","getModelToStyle","toggleFramesEvents","computedStyle","getComputedStyle","modelStyle","currentWidth","autoWidth","currentHeight","autoHeight","startDim","w","h","unitHeight","getUnitFromValue","unitWidth","onMove","updateTarget","store","selectedHandler","onlyHeight","onlyWidth","bodyw","offsetWidth","getDragMode","finalStyle","updateToolbar","mod","toolbarEl","toolbarStyle","toolbar","showToolbar","noCustomSpotSelect","Select","toolbarView","updateToolbarPos","getCanvasPosition","updateTools","refreshSpots","isCompSelected","comp","isHoverEn","isNewEl","lastHovered","badgeOpts","customHoverSpot","Hover","showOffsetsSelected","toolsEl","canvasRectOffset","topOff","_trgToolUp","targetToElem","canvasOffsetTop","canvasOffsetLeft","refreshCanvas","hideBadge","cleanPrevious","status","hasWin","preserveSelected","setSelected","trg","isPointed","utils","Sorter","placer","getPlacerEl","containerSel","itemSel","direction","wmargin","nested","canvasRelative","scale","getZoomDecimal","startSort","getOffsetDim","stopSelectPosition","posTargetCollection","posIndex","posMethod","cDim","posIsLastEl","posTargetEl","outsideElem","posTargetModel","nearFloat","dims","isLast","getOffsetMethod","zoom","Spacing","stateVar","offsetViewer","marginT","marginB","marginL","marginR","padT","padB","padL","padR","childNodes","stateLow","marginName","paddingName","marginV","paddingV","paddingEls","fullMargName","fullPadName","marginLeftSt","marginLeft","marginRightSt","marginRight","marginTopSt","marginTop","marginBottomSt","marginBottom","mtStyle","mbStyle","mlStyle","mrStyle","ptStyle","pbStyle","plStyle","prStyle","posLeft","widthEl","marginSideH","marginSideT","padTop","paddingTop","padBot","paddingBottom","padSideH","padSideT","paddingLeft","padRight","paddingRight","toggleVis","cv","mth","_onFramesChange","handleFrames","frames","loaded","_upFrame","__ol","isDef","CoordinatesTypes","DEFAULT_COORDS","xyArr","snapOffset","delta","lastScroll","lastScrollDiff","startPointer","startPosition","globScrollDiff","currentPointer","getDocumentEl","getContainerEl","getWindowEl","keyHandle","handleScroll","actualScroll","getScrollInfo","scrollDiff","move","getPointerPos","getStartPosition","currentPos","glDiff","lockedAxis","shiftKey","detectAxisLock","moveDelta","co","deltaPre","snapGuides","newDelta","trgX","trgY","axs","trgPoint","statPoint","deltaPoint","trgGuide","isPointIn","trgValue","setGuideLock","lock","ofst","trgName","cancelled","cancel","xPos","yPos","defaultView","parentWindow","getPos","getPointerPosition","pEv","relX","relY","absX","abs","absY","_Array$prototype","reverse","idRe","classRe","htmlRe","tagRe","getElementsByClassName","getElementsByTagName","Cash","__cash","eles","getElementById","parseHTML","ready","nodeType","cash","eq","ele","camelCaseRe","camelCaseWhitespaceRe","camelCase","str","letter","removeProp","guid","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector","isNumeric","isFinite","getCompareFunction","is","splitValuesRe","getSplitValues","unique","computeStyle","isVariable","getPropertyValue","computeStyleInt","hasClass","check","removeAttr","removeAttribute","_value","getAttribute","toggleClass","isForce","toggle","cssVariableRe","isCSSVariable","prefixedProps","docEl","vendorsPrefixes","getPrefixedProp","propCC","propUC","p","prefixedProp","numericProps","animationIterationCount","columnCount","flexGrow","flexShrink","fontWeight","lineHeight","order","orphans","widows","zIndex","getSuffixedValue","setProperty","dataNamespace","dataAttributeRe","getDataCache","getData","cache","dataset","getExtraSpace","xAxis","hasNamespaces","ns1","ns2","removeEventListeners","_ref","hasData","_this","setData","removeData","boxSizing","includeMargins","eventsNamespace","eventsNamespacesSeparator","getEventsCache","parseEventName","parts","removeEvent","namespaces","eventCache","_ref2","eventFullName","_this2","_parseEventName","_one","_this3","_parseEventName2","finalCallback","namespace","thisArg","returnValue","addEvent","one","readyState","setTimeout","evt","_parseEventName3","createEvent","initEvent","dispatchEvent","selectOneRe","selectMultipleRe","getValue","selectedIndex","getValueSelectSingle","option","getValueSelectMultiple","queryEncodeSpaceRe","skippableRe","checkableRe","serialize","query","elements","checked","queryEncode","isMultiple","eleValue","cloneNode","detach","containers","fragmentRe","singleTagRe","table","tr","td","th","thead","tbody","tfoot","initContainers","$1","insertContent","prepend","isStr","insertAdjacentHTML","insertElement","_this4","outerHTML","insertAfter","_this5","nextSibling","_this6","_this7","_this8","_this9","prependTo","replaceWith","_this10","$eles","replaceChild","replaceAll","textContent","docEle","documentElement","pageYOffset","clientTop","pageXOffset","clientLeft","offsetParent","offsetLeft","offsetTop","contents","found","nextElementSibling","not","closest","parents","previousElementSibling","siblings","KEY_TAG","KEY_ATTR","motionsEv","isDoc","Node","DOCUMENT_NODE","removeEl","cx","inputs","attrUp","isVisible","offsetHeight","getClientRects","oldEl","newEl","appendAtIndex","total","lastChild","createEl","createText","createTextNode","createCustomEvent","oEvent","err","_parentEvent","keyCodeVal","defineProperty","appendVNodes","node","vNodes","vnode","isTextNode","TEXT_NODE","isTaggableNode","COMMENT_NODE","isCommentNode","getElRect","rectText","range","createRange","selectNode","getDocumentScroll","getKeyCode","getKeyChar","getPointerEvent","touches","isEscKey","isEnterKey","hasModifierKey","ctrlKey","hasCtrlKey","metaKey","evs","els","isBultInMethod","normalizeKey","mls","Promise","getGlobal","elProt","Element","getUiClass","defCls","appendStyles","styles","stls","link","rel","prepand","shallowDiff","objOrig","objNew","keysNew","origValue","newValue","upFirst","normalizeFloat","step","valueDef","stepDecimals","side","toFixed","hasDnd","nativeDnD","escapeNodeContent","deepMerge","targValue","srcValue","__cashData","isEmptyObj","capitalize","isRule","toCSS","__gjsv","isComponent","toHTML","setViewEl","createId","chars","random","buildBase64UrlFromSvg","svg","base64Str","btoa","Buffer","from","webpackContext","req","webpackContextResolve","__webpack_require__","code","resolve","Function","ArrayProto","ObjProto","SymbolProto","supportsArrayBuffer","ArrayBuffer","supportsDataView","DataView","nativeIsArray","nativeKeys","nativeCreate","nativeIsView","isView","_isNaN","_isFinite","hasEnumBug","propertyIsEnumerable","nonEnumerableProps","MAX_ARRAY_INDEX","pow","restArguments","func","startIndex","isNull","isBoolean","tagTester","nodelist","Int8Array","hasStringTagBug","isIE11","Map","isDataView","getInt8","isArrayBuffer","buffer","isSymbol","isNumber","constant","createSizePropertyCheck","getSizeProperty","sizeProperty","shallowProperty","typedArrayPattern","collectNonEnumProps","emulatedSet","nonEnumIdx","proto","isMatch","_keys","_wrapped","toBufferView","bufferSource","Uint8Array","byteOffset","valueOf","tagDataView","aStack","bStack","deepEq","areArrays","aCtor","bCtor","allKeys","ie11fingerprint","weakMapMethods","forEachName","hasName","commonInit","mapTail","mapMethods","setMethods","createAssigner","keysFunc","baseCreate","Ctor","extendOwn","tap","interceptor","toPath","deepGet","defaultValue","identity","property","optimizeCb","argCount","accumulator","baseIteratee","mapObject","results","currentKey","noop","propertyOf","times","accum","Date","now","getTime","createEscaper","escaper","testRegexp","replaceRegexp","string","templateSettings","evaluate","interpolate","noMatch","escapes","escapeChar","bareIdentifier","settings","oldSettings","argument","fallback","idCounter","_chain","executeBound","sourceFunc","boundFunc","callingContext","partial","boundArgs","placeholder","bound","TypeError","callArgs","strict","memoize","hasher","address","delay","throttle","timeout","later","leading","throttled","_now","clearTimeout","trailing","immediate","passed","debounced","_args","wrap","wrapper","negate","predicate","compose","findKey","createPredicateIndexFinder","dir","sortedIndex","low","high","mid","createIndexFinder","predicateFind","createReduce","reducer","fromIndex","guard","contextPath","computed","lastComputed","v","reStrSymbol","rand","temp","criteria","right","group","behavior","pass","keyInObj","compact","otherArrays","uniq","isSorted","seen","arrays","intersection","argsLength","unzip","ceil","chunk","chainResult","getter","__esModule","definition","enumerable","r","toStringTag","literals","acc","lit","subst","substs","fromElement","projectData","noticeOnUnload","forceClass","log","baseCss","protectedCss","canvasCss","defaultCommand","devicePreviewMode","mediaCondition","tagVarStart","tagVarEnd","keepEmptyTextNodes","jsInHtml","multipleSelection","avoidInlineStyle","avoidDefaults","clearStyles","cssIcons","icons","plus","caret","delete","arrowUp","chevron","eye","eyeOff","i18n","assetManager","layerManager","storageManager","richTextEditor","domComponents","codeManager","commands","cssComposer","selectorManager","deviceManager","styleManager","blockManager","traitManager","keepUnusedStyles","customUI","getByComponent","getComponent","addComponent","hasComponent","Selectable","lastComponent","allComponents","removeComponent","moduleName","_em","_name","cfgParent","cfg","_disable","_config","postLoad","__logWarn","__appendTo","elTo","private","skipListen","__initListen","getProjectData","storageKey","loadProjectData","onResult","getAllMap","update","__catchAllEvent","collections","propagate","entity","__remove","rm","removeBefore","__onAllEvent","renderProps","_createId","ln","allMap","__listenAdd","__listenRemove","__listenUpdate","__destroy","Module","scripts","autoscrollLimit","extHl","frameContent","frameStyle","notTextable","allowExternalDrop","default","devices","widthMedia","priority","checkUnit","pr","getWidthMedia","Devices","updateSelect","change","startAdd","updateDevice","devEl","devicesEl","getDeviceModel","device","getOptions","evAll","evPfx","evSelect","evUpdate","evAdd","evRemove","evRemoveBefore","chnSel","deviceEvents","Device","_onSelect","deviceId","newDevice","getDevices","ItemManagerModule","modelConstructor","newModel","keyAutoW","keyAutoH","getDimension","dim","viewDim","endsWith","domc","conf","allRules","idMap","modOpts","Wrapper","getType","newStyles","Parser","parseCss","checkId","changesCount","refFrame","_undo","_undoexc","initRefs","framesById","changesUp","temporary","noCount","getStyles","getHead","setHead","addHeadItem","getHeadByAttr","removeHeadByAttr","addLink","removeLink","addScript","removeScript","getPage","page","_emitUpdated","hasAutoHeight","infiniteCanvas","ModuleModel","fromUndo","loadedItems","itemsToLoad","onAdd","onReset","itemLoaded","listenToLoadItems","listenToLoad","defFrame","frms","getId","setName","getAllFrames","getMainFrame","updatingValue","registerForUpdateEvent","changeProp","setValue","setValueFromModel","onUpdateEvent","updateOpts","console","getParentValue","setParentValue","templates","traits","initTrait","build","trait","Traits","_label","noLabel","TraitFactory","getLabelText","hasLabel","appendInput","onChange","templateLabel","getLabel","templateInput","clsField","inputValue","renderLabel","tpl","getInputEl","$input","i18nAttr","paceholder","getElInput","elInput","renderField","rerender","clsLabel","tmpl","getInputElem","highlightedClass","click","setHighlighted","buttonAddId","buttonRemoveEvent","__addPage","__removePage","__getModule","selectedView","getCommandsNav","buttonRemoveId","optionsTarget","full","defaultOpts","beforeShow","color","flat","showInput","allowEmpty","showButtons","clickoutFiresChange","showInitial","showPalette","showPaletteOnly","hideAfterPaletteSelect","togglePaletteOnly","showSelectionPalette","localStorageKey","maxSelectionSize","cancelText","chooseText","togglePaletteMoreText","togglePaletteLessText","clearText","noColorSelectedText","preferredFormat","containerClassName","replacerClassName","showAlpha","palette","selectionPalette","spectrums","IE","navigator","userAgent","rgbaSupport","cssText","backgroundColor","replaceInput","markup","gradientFix","dataID","spectrum","extra","spect","load","loadOpts","inputTypeColorSupport","_cachedResult","colorInput","localization","palettes","processNativeColorInputs","colorInputs","trimLeft","trimRight","tinyCounter","math","mathRound","mathMin","mathMax","mathRandom","tinycolor","rgb","ok","format","named","matchers","rgba","hsl","hsla","hsv","hsva","hex8","convertHexToDecimal","parseIntFromHex","hex6","hex3","stringInputToObject","bound01","convertToPercentage","f","q","hsvToRgb","hue2rgb","hslToRgb","boundAlpha","inputToRGB","_originalInput","_r","_g","_b","_a","_roundA","_format","_gradientType","gradientType","_ok","_tc_id","isDark","getBrightness","isLight","getOriginalInput","getFormat","getAlpha","toRgb","setAlpha","toHsv","rgbToHsv","toHsvString","toHsl","rgbToHsl","toHslString","toHex","allow3Char","rgbToHex","toHexString","toHex8","rgbaToHex","toHex8String","toRgbString","toPercentageRgb","toPercentageRgbString","toName","hexNames","toFilter","secondColor","hex8String","secondHex8String","formatSet","formattedString","hasAlpha","_applyModification","lighten","brighten","darken","desaturate","saturate","greyscale","spin","_applyCombination","analogous","complement","monochromatic","splitcomplement","triad","tetrad","fromRatio","newColor","equals","color1","color2","mix","amount","w1","rgb1","rgb2","w2","readability","c1","c2","brightnessA","brightnessB","colorDiff","brightness","isReadable","mostReadable","baseColor","colorList","bestColor","bestScore","bestIsReadable","readable","score","CSS_UNIT","PERMISSIVE_MATCH3","PERMISSIVE_MATCH4","aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","burntsienna","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","green","greenyellow","grey","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","whitesmoke","yellow","yellowgreen","flipped","flip","paletteTemplate","tiny","swatchStyle","callbackContext","callbacks","instanceOptions","resize","reflow","throttler","visible","isDragging","isDefault","dragWidth","dragHeight","dragHelperHeight","slideHeight","alphaWidth","alphaSlideHelperWidth","slideHelperHeight","currentHue","currentSaturation","currentValue","currentAlpha","paletteArray","paletteLookup","draggingClass","shiftMovementDirection","boundElement","pickerContainer","dragHelper","slider","slideHelper","alphaSliderInner","alphaSlider","alphaSlideHelper","textInput","paletteContainer","initialColorContainer","cancelButton","clearButton","chooseButton","toggleButton","isInput","isInputTypeColor","shouldReplace","replacer","offsetElement","previewElement","initialColor","colorOnShow","currentPreferredFormat","applyOptions","updateSelectionPaletteFromStorage","localStorage","oldPalette","addColorToSelectionPalette","inArray","drawPalette","currentColor","getUniqueSelectionPalette","drawInitial","dragStart","dragStop","setFromTextInput","updateOriginalInput","Event","isDefaultPrevented","hideAll","$doc","onkeydown","clickout","updateUI","button","revert","ignoreFormatChange","newHsv","updateHelperLocations","flatColor","realColor","displayColor","realHex","realRgb","alpha","realAlpha","gradient","dragX","dragY","alphaX","slideY","fireCallback","picker","extraY","dpWidth","outerWidth","dpHeight","outerHeight","inputHeight","docElem","cW","clientWidth","cH","clientHeight","scL","scT","viewWidth","viewHeight","getOffset","paletteElementClick","keydown","oldDragX","oldDragY","furtherFromX","paletteEvent","optionName","optionValue","coord","onmove","onstart","onstop","dragging","maxHeight","maxWidth","hasTouch","duringDragEvents","prevent","t0","pageX","pageY","hex","pad2","clamp01","hue","slices","part","ret","modification","isOnePointZero","processPercent","isPercentage","ColorPicker","getColor","cl","colorEl","getColorEl","valueClr","tc","noneColor","movedColor","inputClass","plh","inputEl","holderClass","fromTarget","fromInput","colorPicker","cpStyle","elToAppend","colorPickerConfig","fixedValues","valid","validateInputValue","deepCheck","inputNumberValue","handleChange","handleKeyDown","upArrowClick","downArrowClick","normalizeValue","downIncrement","moveIncrement","upIncrement","prValue","defValue","regFixed","TraitNumberView","TraitNumberViewAbstract","units","inputUnitValue","valueString","numberRegexp","unitEl","getUnitEl","handleUnitChange","resultName","valResult","input3","TraitNumberUnitView","input2","changePage","evPageSelect","evPageSelectBefore","evPageUpdate","evPageAdd","evPageAddBefore","evPageRemove","evPageRemoveBefore","typeMain","pageEvents","selectBefore","addBefore","pages","__onChange","_onPageChange","onLoad","configPages","mainPage","getMain","Layers","mainComp","setRoot","um","pg","pagesMap","onZoomChange","onCoordsChange","onPointerChange","_pageUpdated","rulers","pointerScreen","getCurrentFrameModel","noUndo","coords","getPointerCoords","World","refreshDbn","spot","__trgEvent","spotAdd","spotUpdate","spotRemove","CanvasEvents","viewCollection","renderView","important","getDeclaration","getBlockId","atRules","addToCollection","fragmentEl","renderStarted","atRule","getAtRule","atRuleEl","styleEl","appendData","clsName","mediaText","defaultBlockId","blockId","getMediaWidth","contRules","sortRules","isMobFirst","prs","rootEl","counter","toggleEffects","handleDragEnter","handleDragOver","handleDrop","handleDragLeave","__customTglEff","frameElement","sortOpts","customTarget","elementFromPoint","startCustom","endCustom","over","endDrop","updateCounter","dt","dataTransfer","dragContentOrigin","dragContent","inAbsoluteMode","getWrapper","canvasOffset","postLeft","posTop","handleDragEnd","cnt","setDropContent","getContentByData","border","files","file","alt","json","lastMaxHeight","tools","frameWrapView","showGlobalTools","cvModel","getCanvasModel","updateHead","renderStyles","allowfullscreen","getCoords","frameRect","canvasRect","getCanvasOffset","vwDelta","getViewportDelta","zoomM","getZoomMultiplier","headEl","attrStr","stl","getDoc","getJsContainer","jsContainer","elTools","_getTool","getOffsetViewerEl","getRect","getOffsetRect","scrollBottom","scrollRight","_toggleEffects","startAutoscroll","_toggleAutoscrollFx","requestAnimationFrame","autoscroll","lastClientY","actualTop","limitTop","limitBottom","nextTop","scrollTo","spots","updateClientY","stopAutoscroll","mt","renderScripts","evLoad","evOpts","appendScript","scriptEl","hasAttribute","HTMLScriptElement","onerror","onload","frameLoadHead","renderBody","frameLoadBody","write","frameLoad","normalize","prevStyles","_isEditor","passive","droppable","_emitUpdate","classAnim","updateOffset","updateSize","frameLoaded","updatePos","setupDragger","Dragger","posOpts","startDrag","__clear","destroyed","updateDim","__handleSize","noChanges","onScroll","onscroll","currW","currH","newW","newH","newWidth","newHeight","observer","ResizeObserver","scrollHeight","observe","sizeObserver","disconnect","twrp","toolsWrapper","elTop","elRight","elBottom","elLeft","frameWrapperView","clsUnscale","_initFrames","clearOff","checkSelected","updateFrames","_onFramesUpdate","toggleListeners","_renderFrames","scroll","currFrame","scrollIntoView","onKeyPress","onWheel","onPointer","screenToWorld","docScroll","screenCoords","isInputFocused","deltaX","deltaY","isZooming","newZoom","setZoom","Screen","pointerX","pointerY","zoomDelta","setCoords","toolsWrpEl","defOpts","updateFramesArea","timerZoom","framesArea","cvStyle","mpl","zoomDc","fitViewport","elFrame","elRect","noHeight","ignoreHeight","gapIsNum","gapX","gapY","boxWidth","boxHeight","canvasWidth","canvasHeight","widthRatio","heightRatio","zoomRatio","zoomMltp","yDelta","isElInViewport","getFrameOffset","rTop","rLeft","getRectToScreen","zoomMlt","frameX","frameY","canvasEl","toScreen","getViewportRect","toWorld","frmOff","cvsOff","winEl","frEl","frameOffset","frameTop","avoidFrameOffset","frameLeft","avoidFrameZoom","getElementOffsets","bEl","fo","updateScript","scriptContainer","jsEl","script","scriptFn","getScriptString","scriptFnStr","scriptProps","__getScriptProps","scr","getFrameView","mainFrame","renderFrames","$frames","toolsWrp","hlEl","badgeEl","placerEl","ghostEl","resizerEl","offsetEl","fixedOffsetEl","toolsGlobEl","spotsEl","getFrame","getFramesEl","getDocument","_getLocalEl","globalEl","compView","getGhostEl","getFixedOffsetViewerEl","getSpotsEl","setCustomBadgeLabel","topScroll","leftScroll","getTargetToElementDim","canvasPos","toRight","targetHeight","targetWidth","eventToTrigger","leftPos","topPos","elementTop","elementLeft","elementWidth","elementHeight","canvasTop","canvasLeft","rectOff","getFrameElFromDoc","fullHeight","subWinOffset","yOffset","xOffset","addTop","addLeft","toIgnore","focused","activeElement","fr","getZoom","hasX","hasY","getPointer","screen","addFrame","getLastDragResult","spotProps","getSpots","cmpView","customSpots","getWorldRectToScreen","draggableComponents","disableTextInnerChilds","processor","useFrameDoc","voidElements","htmlType","defaultType","modelAttrStart","compTypes","getPropAttribute","attrName","attrValue","valueLen","firstChar","lastChar","splitPropsFromAttr","propsResult","parseStyle","decls","decl","parseClass","parseNode","nodes","attrsLen","nodePrev","nodeChild","ct","compType","namespaceURI","nodeName","nodeValue","inSvg","void","comps","allTxt","foundTextNode","ci","cType","textTags","parserCss","cf","optionsHtml","parserHtml","parser","DOMParser","mimeType","strF","parseFromString","BrowserParserHtml","allowScripts","allowUnsafeAttr","__clearUnsafeAttr","styleStr","resHtml","returnArray","getLastStyleValue","extendStyle","setStyle","propOrig","propNew","newStyle","noEvent","removeStyle","styleToString","imp","getSelectors","getSelectorsString","selectorsToString","getFullString","getComponentIds","getComponentsFromDefs","visitedCmps","restAttr","getNewId","addAttributes","newComponents","cmps","removeChildren","resetChildren","newIds","idsToKeep","keepIds","resetFromString","cssc","allByID","allById","parsed","parseString","newCmps","getRules","newRule","__checkInnerChilds","isTemp","prevColl","sels","Selectors","canRemoveStyle","rulesRemoved","it","inner","__postRemove","df","componentTypes","parseHtml","componentsById","optsToPass","addCollection","isMult","processDef","__firstAdd","mdl","ccid","modelPr","$$typeof","avoidInline","Component","ensureInList","setClassRule","__postAdd","recursive","TYPE_CLASS","TYPE_ID","namePreEsc","escapeName","nameEsc","Selector","protected","isId","isClass","getFullName","setLabel","getActive","setActive","objLen","combine","curr","getStyleable","getValid","noDisabled","combination","addItem","removeItem","selectedEl","itemsEl","renderToolbar","renderItem","iconCaret","buildView","itemEl","itemDataEl","renderItems","Text","lineAt","RangeError","lineInner","to","clip","decompose","TextNode","other","scanIdentical","RawTextCursor","skip","iter","iterRange","PartialTextCursor","iterLines","LineCursor","sliceString","of","TextLeaf","textLength","super","isLine","Line","sliceText","joined","appendText","newLen","lineSep","endLine","childOpen","updated","totalLines","iA","iB","eA","eB","chA","chB","maxChunk","minChunk","chunked","currentLines","currentLen","currentChunk","flush","offsets","nextInner","offsetValue","cursor","limit","afterBreak","isExtendingChar","isRegionalIndicator","ZWJ","findClusterBreak","forward","includeExtending","nextClusterBreak","prevClusterBreak","surrogateLow","charCodeAt","surrogateHigh","codePointAt","codePointSize","countBefore","code0","code1","fromCodePoint","DefaultSplit","MapMode","ChangeDesc","sections","newLength","ins","iterGaps","posA","posB","iterChangedRanges","individual","iterChanges","invertedDesc","composeDesc","composeSets","mapDesc","mapSet","mapPos","assoc","Simple","endA","TrackDel","TrackBefore","TrackAfter","touchesRange","fromJSON","ChangeSet","inserted","fromA","toA","fromB","_toB","desc","ranges","resultSections","resultInserted","filteredSections","SectionIter","addSection","addInsert","filtered","process","spec","sub","insText","insLen","createSet","forceJoin","endB","setA","setB","mkSet","piece","len2","sectionLen","insB","textBit","forward2","SelectionRange","anchor","bidiLevel","goalColumn","mainIndex","main","asSingle","addRange","replaceRange","single","normalized","checkSelection","selection","docLength","nextID","Facet","compareInput","compare","isStatic","enables","extensions","reader","sameArray","static","FacetProvider","compute","deps","computeN","field","dependencies","facet","dynamicSlot","addresses","multi","depDoc","depSel","depAddrs","dep","docChanged","ensureAll","newVal","compareArray","reconfigure","oldState","oldAddr","oldVal","getAddr","StateField","addrs","addr","ensureAddr","dynamicFacetSlot","providers","providerAddrs","providerTypes","dynamic","depChanged","oldProviders","facets","oldValue","initField","createF","updateF","compareF","provides","provide","slot","extension","Prec_","prec","ext","PrecExtension","Prec","highest","lowest","Compartment","CompartmentInstance","compartment","compartments","Configuration","dynamicSlots","staticValues","statusTemplate","staticFacet","fields","newCompartments","known","oldFacets","computeSlot","languageData","allowMultipleSelections","lineSeparator","changeFilter","transactionFilter","transactionExtender","readOnly","Annotation","AnnotationType","StateEffectType","StateEffect","mapping","mapped","mapEffects","effects","effect","appendConfig","Transaction","startState","annotations","_doc","_state","time","newDoc","newSelection","applyTransaction","annotation","ann","reconfigured","isUserEvent","userEvent","joinRanges","mergeTransaction","sequential","mapForA","mapForB","resolveTransactionInner","docSize","asArray","resolveTransaction","specs","seq","extenders","extendTransaction","filters","filterTransaction","addToHistory","remote","none","CharCategory","nonASCIISingleCaseWordChar","wordChar","makeCategorizer","wordChars","char","Space","hasWordChar","Word","Other","EditorState","require","startValues","replaceSelection","toText","changeByRange","result1","newChanges","newMapped","mapBy","sliceDoc","fieldInit","configuration","tabSize","phrase","phrases","languageDataAt","provider","charCategorizer","wordAt","cat","combineConfig","configs","kA","kB","k","RangeValue","Range","startSide","endSide","point","mapMode","cmpRange","Chunk","maxPoint","startAt","lo","hi","between","newPos","newFrom","newTo","curFrom","curTo","chunkPos","nextLayer","chunkEnd","updateSpec","filterFrom","filterTo","cur","LayerCursor","goto","spill","builder","RangeSetBuilder","addInner","rangeIndex","chunkIndex","addChunk","nextChunk","finishInner","chunks","touch","HeapCursor","sets","oldSets","newSets","textDiff","minPointSize","sharedChunks","findSharedChunks","sideA","SpanCursor","sideB","sameValues","spans","openRanges","openStart","activeForPoint","openCount","pointFrom","pointRank","openEnd","span","lazySort","finish","finishChunk","newArrays","chunkStart","setMaxPoint","lastFrom","lastTo","inA","shared","Set","layer","minPoint","rank","gotoInner","setRangeIndex","heap","heapBubble","childIndex","activeTo","activeRank","minActive","removeActive","findMinIndex","addActive","trackOpen","wasPoint","nextVal","startA","startB","dPos","clipEnd","comparePoint","compareRange","foundPos","countColumn","findColumn","col","_arrayLikeToArray","arr2","_toConsumableArray","minLen","_typeof","_classCallCheck","Constructor","_toPropertyKey","arg","hint","prim","toPrimitive","Number","_defineProperties","descriptor","configurable","writable","_createClass","C","COUNT","for","SET","StyleModule","splitSelector","selectors","isKeyframes","isAt","keyframes","modules","nonce","setNonce","StyleSet","mount","adoptedSet","adoptedStyleSheets","CSSStyleSheet","adopted","sheet","styleTag","insertRule","mac","platform","ie","getSelection","dom","hasSelection","anchorNode","clientRectsFor","textRange","isEquivalentPosition","targetNode","targetOff","scanFor","domIndex","previousSibling","maxOffset","contentEditable","flattenRect","bottom","windowRect","innerWidth","innerHeight","getScale","elt","scaleX","scaleY","DOMSelectionState","anchorOffset","focusNode","focusOffset","domSel","setRange","scratchRange","preventScrollSupported","focusPreventScroll","preventScroll","setEnd","setStart","dispatchKey","cancelable","down","KeyboardEvent","synthetic","up","defaultPrevented","clearAttributes","removeAttributeNode","isScrolledToBottom","DOMPos","precise","noChildren","ContentView","overrideDOMText","posAtStart","posBefore","posAtEnd","breakAfter","posAfter","contentView","canReuseDOM","reuseDOM","written","rm$1","_dom","localPosFromDOM","bias","domBoundsAround","fromI","fromStart","toI","toEnd","prevEnd","startDOM","endDOM","markDirty","andParent","markParentsDirty","childList","setParent","setDOM","cmView","rootView","replaceChildren","ignoreMutation","_rec","ignoreEvent","_event","childCursor","ChildCursor","childPos","findPos","isEditable","isWidget","isHidden","hasStart","become","getSide","fromOff","toOff","breakAtStart","breakAtEnd","mergeChildrenInto","dLen","nav","vendor","ie_edge","ie_upto10","ie_11up","gecko","chrome","webkit","safari","ios","maxTouchPoints","browser","windows","linux","ie_version","gecko_version","chrome_version","android","webkit_version","MaxJoinLen","TextView","createDOM","textDOM","domAtPos","_from","_to","coordsAt","rects","textCoords","MarkView","mark","setAttrs","_hasStart","detachFrom","inlineDOMAtPos","coordsInChildren","WidgetView","widget","prevWidget","updateDOM","toDOM","fromBack","WidgetBufferView","joinInlineInto","beforePos","afterPos","scan","fallbackRect","combineAttrs","noAttrs","attrsEq","keysA","keysB","updateAttrs","getAttrs","LineView","prevAttrs","transferDOM","setDeco","addLineDeco","deco","hack","cmIgnore","measureTextSize","textHeight","totalWidth","charWidth","heightOracle","viewState","dist","_other","covers","docView","block","BlockWidgetView","_takeDeco","WidgetType","estimatedHeight","lineBreaks","BlockType","Decoration","heightRelevant","MarkDecoration","inlineOrder","PointDecoration","isBlockGap","getInclusive","LineDecoration","hasHeight","isReplace","WidgetRange","WidgetBefore","WidgetAfter","widgetsEq","inclusiveStart","inclusiveEnd","inclusive","ContentBuilder","disallowBlockEffectsFor","curLine","pendingBuffer","bufferMarks","atCursorPos","textOff","posCovered","getLine","flushBuffer","wrapMarks","addBlockWidget","buildText","NullWidget","cursorBefore","cursorAfter","decorations","dynamicDecorationMap","clickAddsSelectionRange","dragMovesSelection$1","mouseSelectionStyle","exceptionSink","updateListener","inputHandler","focusChangeEffect","perLineTextDirection","nativeSelectionHidden","ScrollTarget","yMargin","xMargin","isSnapshot","exception","editable","nextPluginID","viewPlugin","domEventHandlers","domEventObservers","buildExtensions","eventHandlers","eventObservers","plugin","pluginInst","fromClass","PluginInstance","mustUpdate","deactivate","editorAttributes","contentAttributes","atomicRanges","bidiIsolatedRanges","getIsolatedRanges","isolates","iso","bidiIsolate","scrollMargins","getScrollMargins","styleModule","ChangedRange","toB","addToSet","me","extendWithRanges","dI","rI","ViewUpdate","transactions","changedRanges","viewportChanged","heightChanged","geometryChanged","focusChanged","selectionSet","Direction","LTR","RTL","dec","LowTypes","ArabicTypes","Brackets","BracketStack","BidiRE","BidiSpan","maybe","isolatesEq","emitSpans","baseLevel","ourType","iCh","iI","sameDir","isNum","recurse","localLevel","iScan","upto","jI","computeSectionOrder","outerType","rFrom","rTo","prevType","prevStrong","computeCharTypes","oppositeType","sI","br","sJ","embed","processBracketPairs","beforeL","fromJ","processNeutrals","computeOrder","trivialOrder","movedOver","moveVisually","spanI","indexForward","nextIndex","nextSpan","DocView","domChanged","hasComposition","markedForComposition","minWidth","minWidthFrom","minWidthTo","impreciseAnchor","impreciseHead","forceSelection","lastUpdate","contentDOM","updateDeco","updateInner","readCompositionAt","inputState","composing","newSel","composition","touched","touchesComposition","headPos","findCompositionNode","textNode","inv","marks","parentView","findCompositionRange","decoDiff","DecorationComparator$1","findChangedDeco","oldLength","mustMeasureContent","updateChildren","contentHeight","flexBasis","selectionRange","cView","gaps","viewport","BlockGapWidget","updateGaps","compLine","compositionView","fixCompositionDOM","fix","updateSelection","mustRead","fromPointer","readSelectionRange","activeElt","selectionNotFocus","moveToLine","dummy","inside","assignedSlot","inUneditable","rawSel","nextTo","nearbyTextNode","collapse","caretBidiLevel","removeAllRanges","setSelectionRange","enforceCursorAssoc","modify","lineStart","newRange","posFromDOM","nearest","domView","best","bestPos","coordsForChar","childOff","measureVisibleLineHeights","contentWidth","isWider","scrollDOM","widest","ltr","textDirection","childRect","textDirectionAt","measure","computeBlockGapDeco","vs","viewports","lineBlockAt","allDeco","lineGapDeco","ref","margins","targetRect","bounding","scrollWidth","moveX","moveY","rectHeight","boundingHeight","scrollBy","movedX","movedY","host","scrollRectIntoView","startNode","startOffset","getdx","getdy","yOverlap","upTop","upBot","domPosAtCoords","closestRect","closestX","closestY","above","below","aboveRect","belowRect","closestOverlap","dx","dy","domPosInText","clipX","closestOffset","closestDY","generalSide","posAtCoords","docTop","docHeight","halfLine","bounced","elementAtHeight","posAtCoordsImprecise","caretPositionFromPoint","offsetNode","caretRangeFromPoint","startContainer","isSuspiciousSafariCaretResult","isSuspiciousChromeCaretResult","contentRect","into","defaultCharacterWidth","lineWrapping","defaultLineHeight","lineLength","blockAt","moveByChar","by","bidiSpans","skipAtomicRanges","atoms","skipAtoms","oldPos","InputState","setSelectionOrigin","lastSelectionOrigin","lastSelectionTime","lastKeyCode","lastKeyTime","lastTouchTime","lastFocusTime","lastScrollTop","lastScrollLeft","pendingIOSKey","lastEscPress","lastContextMenu","scrollHandlers","compositionFirstChange","compositionEndedAt","compositionPendingKey","compositionPendingChange","mouseSelection","draggedContent","handleEvent","notifiedFocused","appliedFirefoxHack","firefoxCopyCutHack","bubbles","eventBelongsToEditor","ignoreDuringComposition","runHandlers","observers","ensureHandlers","plugins","computeHandlers","exists","modifierCodes","delayAndroidKey","pending","altKey","PendingKeys","EmacsyPendingKeys","forceFlush","flushIOSKey","startMouseSelection","bindHandler","record","inputType","dragScrollMargin","dragScrollSpeed","MouseSelection","startEvent","mustSelect","scrollSpeed","scrolling","lastEvent","scrollParent","scrollableParent","multiple","addsSelectionRange","rangeCount","getRangeAt","isInPrimarySelection","getClickType","buttons","sx","sy","setScrollSpeed","dispatch","brokenClipboardAPI","doPaste","byLine","lastLinewiseCopy","lastLine","rangeForClick","categorize","linePos","groupAt","visual","touchstart","touchmove","makeStyle","queryPos","startSel","startRange","removeRangeAround","basicMouseSelection","mustFocus","mouseSel","insideY","findPositionSide","BadMouseDetail","lastMouseDown","lastMouseDownCount","lastMouseDownTime","detail","lastTime","dropText","direct","dropPos","del","dragMovesSelection","dragstart","effectAllowed","dragend","finishFile","FileReader","readAsText","paste","clipboardData","capturePaste","cut","linewise","copiedRange","clearData","selectionEnd","selectionStart","captureCopy","isFocusChange","focusChangeTransaction","getEffect","updateForFocusChange","clearSelectionRange","compositionstart","compositionupdate","compositionend","pendingRecords","flushSoon","then","contextmenu","beforeinput","startViewHeight","visualViewport","wrappingWhiteSpace","HeightOracle","heightSamples","heightForGap","heightForLine","setDoc","mustRefreshForWrapping","whiteSpace","mustRefreshForHeights","lineHeights","knownHeights","MeasuredHeights","heights","more","BlockInfo","_content","widgetLineBreaks","QueryType","Epsilon","HeightMap","outdated","setHeight","oracle","decomposeLeft","decomposeRight","applyChanges","oldDoc","ByPosNoHeight","NodeBuilder","updateHeight","HeightMapText","break","brk","HeightMapBranch","HeightMapBlock","_height","_oracle","_type","forEachLine","_force","measured","collapsed","widgetHeight","breaks","HeightMapGap","heightMetrics","perLine","firstLine","perChar","totalPerLine","guess","lineTop","ByHeight","linesAbove","singleHeight","rightTop","rightOffset","subQuery","ByPos","rightStart","balanced","mergeGaps","rebalance","around","relevantWidgetHeight","lineEnd","covering","writtenTo","isCovered","addBlock","enterLine","blankContent","ensureLine","DecorationComparator","visiblePixelRange","overflow","parentRect","fullPixelRange","LineGap","same","gA","gB","draw","wrapping","LineGapWidget","vertical","ViewState","pixelViewport","inView","contentDOMWidth","contentDOMHeight","editorHeight","editorWidth","scrolledToBottom","scrollAnchorPos","scrollAnchorHeight","scaler","IdScaler","scrollTarget","printing","defaultTextDirection","visibleRanges","mustEnforceCursorAssoc","guessWrapping","stateDeco","heightMap","getViewport","updateViewportLines","updateForViewport","lineGaps","ensureLineGaps","computeVisibleRanges","Viewport","BigScaler","viewportLines","scaleBlock","prevDeco","contentChanges","heightChanges","heightRelevantDecoChanges","prevHeight","scrollAnchor","scrollAnchorAt","mapViewport","viewportIsAppropriate","updateLines","updateLineGaps","mapLineGaps","domRect","measureContent","dTop","dBottom","vp","viewportChange","visibleTop","fromDOM","visibleBottom","mayMeasure","halfMargin","doubleMargin","addGap","structure","avoid","moveToLineBoundary","gapSize","lineStructure","viewFrom","viewTo","bot","marginHeight","targetFrac","findFraction","spaceFrac","findPosition","marginWidth","fraction","lineBlockAtHeight","ratio","counted","vpHeight","domBase","domTop","domBottom","bTop","bBottom","strs","darkTheme","baseThemeID","newName","baseLightID","baseDarkID","lightDarkIDs","buildTheme","scopes","baseTheme$1","outline","flexDirection","alignItems","fontFamily","overflowX","wordWrap","minHeight","WebkitUserModify","whiteSpace_fallback","wordBreak","overflowWrap","caretColor","contain","background","animation","borderLeft","borderLeftColor","insetInlineStart","borderRight","textAlign","borderBottom","borderTop","verticalAlign","backgroundImage","backgroundSize","backgroundPosition","backgroundRepeat","fontSize","borderRadius","LineBreakPlaceholder","DOMReader","points","readRange","findPointBefore","oldLen","readNode","nextView","isBlockElement","readTextNode","re","nextBreak","breakSize","fromView","findPointInside","isAtEnd","DOMPoint","DOMChange","typeOver","bounds","iHead","iAnchor","selPoints","selectionPoints","selectionFromPoints","applyDOMChange","domChange","lastKey","preferredPos","preferredSide","findDiff","defaultTr","defaultInsert","mainSel","compositionRange","replaced","rangeChanges","selOff","applyDefaultInsert","observeOptions","characterData","subtree","characterDataOldValue","useCharData","DOMObserver","selectionChanged","delayedFlush","resizeTimeout","queue","delayedAndroidKey","flushingAndroidKey","lastChange","scrollTargets","resizeScroll","intersecting","gapIntersection","parentCheck","MutationObserver","mutations","mut","removedNodes","onCharData","prevValue","onSelectionChange","onResize","onPrint","addWindowListeners","IntersectionObserver","listenForScroll","intersectionRatio","onScrollChanged","threshold","requestMeasure","wasChanged","shadowRoot","deepActiveElement","stopImmediatePropagation","getTargetRanges","endContainer","endOffset","curAnchor","safariSelectionRangeHack","atElementStart","processRecords","clearDelayedAndroidKey","cancelAnimationFrame","takeRecords","records","readMutation","readChange","readSelection","handled","rec","childBefore","findChild","childAfter","setWindow","removeWindowListeners","_c","curView","compositionStarted","_root","pluginMap","editorAttrs","contentAttrs","bidiCache","updateState","measureScheduled","measureRequests","announceDOM","dispatchTransactions","trs","getRoot","mountStyles","redrawn","attrsChanged","focusFlag","dispatchFocus","pendingKey","setState","CachedOrder","updatePlugins","styleModules","showAnnouncements","newState","hadFocus","prevSpecs","newPlugins","sDOM","measuring","BadMeasure","themeClasses","attrsFromFacet","spellcheck","autocorrect","autocapitalize","contenteditable","role","changedContent","changedEditor","announce","cspNonce","readMeasured","request","documentTop","documentPadding","viewportLineBlocks","moveByGroup","nextCat","byGroup","includeWrap","coordsAtPos","editorRect","moveVertically","distance","startPos","startY","goal","startCoords","resolvedGoal","curY","charRect","posAtDOM","MaxBidiLine","entry","fresh","scrollSnapshot","dark","baseTheme","findFromDOM","lastDir","sources","currentPlatform","modifiers","handleKeyEvents","getKeymap","Keymaps","WeakMap","bindings","isPrefix","checkPrefix","scope","scopeObj","ctrl","meta","normalizeKeyName","ourObj","storedPrefix","PrefixTimeout","binding","_any","buildKeymap","keyName","isChar","prevented","baseName","shiftName","ran","runFor","cmd","RectangleMarker","adjust","forRange","getBase","lineElt","lineStyle","leftSide","textIndent","rightSide","startBlock","endBlock","visualStart","visualEnd","wrappedLine","pieces","drawForLine","drawForWidget","horizontal","addSpan","fromOpen","toOpen","fromCoords","toCoords","endPos","docLine","spanFrom","spanTo","rectanglesForRange","LayerView","drawn","measureReq","setOrder","layerOrder","markers","sameMarker","oldI","marker","CanHidePrimary","selectionConfig","cursorBlinkRate","drawRangeCursor","cursorLayer","selectionLayer","hideNativeSelection","configChanged","cursors","animationName","confChange","setBlinkRate","animationDuration","themeSpec","setDropCursorPos","dropCursorPos","drawDropCursor","readPos","drawCursor","cursorPos","outer","setDropPos","dragover","dragleave","relatedTarget","iterMatches","MatchDecorator","decoration","decorate","boundary","maxLength","addMatch","_view","createDeco","matchRanges","changeFrom","changeTo","_f","_t","updateRange","updateFrom","updateTo","fromLine","toLine","UnicodeRegexpSupport","unicode","Specials","Names","_supportsTabSize","specialCharConfig","specialChars","addSpecialChars","replaceTabs","MozTabSize","supportsTabSize","_plugin","decorationCache","decorator","makeDecorator","TabWidget","SpecialCharWidget","DefaultPlaceholder","ph","placeholder$1","lineDeco","activeLineHighlighter","getDeco","lastLineStart","MaxOff","absoluteColumn","rectangleSelectionStyle","newStart","newLine","_extend","startLine","startOff","endOff","startCol","endCol","rectangleFor","rectangularSelection","eventFilter","Alt","Control","Shift","Meta","showCrosshair","crosshairCursor","isDown","keyup","mousemove","Outside","TooltipViewManager","createTooltipView","tooltips","tooltipViews","newAbove","tip","tooltipView","windowSpace","tooltipConfig","tooltipSpace","knownHeight","tooltipPlugin","madeAbsolute","lastTransaction","measureTimeout","createContainer","readMeasure","writeMeasure","showTooltip","createTooltip","intersectionObserver","measureSoon","observeIntersection","maybeMeasure","tooltip","shouldMeasure","newConfig","arrow","makeAbsolute","tv","space","others","tView","arrowHeight","noOffset","strictSide","spaceVert","overlap","arrowLeft","positioned","borderTopColor","borderBottomColor","showHoverTooltip","HoverTooltipHost","mounted","createHostedView","hostedView","passProp","given","showHoverTooltipHost","HoverPlugin","setHover","hoverTime","hoverTimeout","restartTimeout","lastMove","checkHover","mouseleave","startHover","hovered","posCoords","bidi","rtl","tooltipMargin","isInTooltip","docBottom","isOverRange","watchTooltipLeave","watch","hoverTooltip","hoverState","hideOnChange","hideOn","closeHoverTooltipEffect","getTooltip","panelConfig","topContainer","bottomContainer","panelPlugin","showPanel","PanelGroup","syncClasses","scrollMargin","syncDOM","curDOM","GutterMarker","elementClass","gutterLineClass","renderEmptyElements","elementStyle","lineMarker","widgetMarker","lineMarkerChange","initialSpacer","updateSpacer","activeGutters","gutter","gutters","unfixGutters","gutterView","fixed","prevViewport","SingleGutterView","syncGutters","updateGutters","vpA","vpB","vpOverlap","lineClasses","classSet","contexts","UpdateContext","advanceCursor","addElement","newElt","GutterElement","extraMarkers","localMarkers","forLine","spacer","prevMarkers","sameMarkers","setMarkers","domPos","iNew","iOld","skipTo","lineNumberMarkers","lineNumberConfig","formatNumber","NumberMarker","lineNumberGutter","maxLineNumber","lineNumbers","activeLineGutterMarker","activeLineGutterHighlighter","u","M","S","DefaultBufferLength","nextPropID","perNode","deserialize","closedBy","openedBy","contextHash","lookAhead","MountedTree","tree","overlay","noProps","skipped","isTop","isSkipped","isError","isAnonymous","groups","NodeSet","newTypes","newProps","CachedNode","CachedInnerNode","IterMode","positions","TreeCursor","topNode","cursorAt","moveTo","_tree","TreeNode","resolveNode","resolveInner","resolveStack","iterStack","stackIterator","iterate","enter","leave","anon","IncludeAnonymous","entered","propValues","balance","balanceRange","makeTree","nodeSet","maxBufferLength","reused","minRepeatType","FlatBufferCursor","takeNode","parentStart","minPos","inRepeat","lookAheadAtStart","findBufferSize","Uint16Array","copyToBuffer","TreeBuffer","localChildren","localPositions","localInRepeat","lastGroup","lastEnd","makeRepeatLeaf","takeFlatNode","make","makeBalanced","nodeCount","stopAt","lookAheadProp","lastI","pair","maxSize","fork","minStart","nodeSize","localSkipped","nodeStart","bufferStart","topID","buildTree","childString","endIndex","checkSide","startI","endI","overlays","IgnoreOverlays","BaseNode","getChild","getChildren","matchContext","matchNodeContext","enterUnfinishedNodesBefore","prevSibling","_parent","nextChild","ExcludeBuffers","BufferNode","BufferContext","hasChild","IgnoreMounts","rPos","nextSignificantParent","toTree","externalSibling","heads","picked","newHeads","StackIterator","bufferNode","yieldNode","yieldBuf","yield","enterChild","sibling","atLastNode","mustLeave","nodeSizeCache","balanceType","mkTop","mkTree","maxChild","divide","groupFrom","groupStart","groupSize","nextSize","only","NodeWeakMap","setBuffer","getBuffer","cursorSet","cursorGet","TreeFragment","addTree","fragments","minGap","fI","nextF","cI","nextC","nextPos","fFrom","fTo","startParse","StringInput","createParse","advance","lineChunks","InnerParse","checkRanges","ActiveOverlay","mounts","stoppedInner","MixedParse","nest","innerDone","baseTree","stoppedAt","baseParse","startInner","parsedPos","fragmentCursor","FragmentCursor","covered","hasNode","checkCover","materialize","oldMounts","findMounts","punchRanges","enterFragments","sliceBuf","buf","newStack","innerOffset","stackPos","targetI","StructureCursor","fragI","curFrag","nextFrag","gapFrom","gapTo","findCoverChanges","inB","nextA","nextB","nextTagID","Tag","modified","defineModifier","Modifier","nextModifierID","instances","mods","powerSet","styleTags","byName","tags","Rule","ruleNodeProp","opaque","inherit","tagHighlighter","tagClass","highlightTree","highlighter","putStyle","HighlightBuilder","highlightRange","highlighters","startSpan","inheritedClass","getStyleTags","tagCls","highlightTags","innerHighlighters","rangeFrom","rangeTo","typeName","propertyName","literal","heading","keyword","operator","punctuation","bracket","lineComment","blockComment","docComment","variableName","attributeName","labelName","macroName","docString","character","attributeValue","integer","float","bool","null","atom","modifier","operatorKeyword","controlKeyword","definitionKeyword","moduleKeyword","derefOperator","arithmeticOperator","logicOperator","bitwiseOperator","compareOperator","updateOperator","definitionOperator","typeOperator","controlOperator","separator","angleBracket","squareBracket","paren","brace","heading1","heading2","heading3","heading4","heading5","heading6","contentSeparator","quote","emphasis","strong","monospace","strikethrough","deleted","invalid","documentMeta","processingInstruction","function","standard","special","languageDataProp","defineLanguageFacet","baseData","sublanguageProp","Language","extraExtensions","topNodeAt","innerNode","sublang","isActiveAt","findRegions","lang","allowsNesting","explore","topLang","LRLanguage","configure","hasWrappers","DocInput","syncTo","stringStart","currentContext","ParseContext","treeLen","scheduleOn","tempSkipped","work","isDone","takeTree","withContext","endTime","withoutTempSkipped","cutFragments","updateViewport","startLen","skipUntilInView","getSkippingParser","frags","LanguageState","newCx","vpTo","parseState","requestIdle","requestIdleCallback","idle","cancelIdleCallback","isInputPending","scheduling","parseWorker","working","workScheduled","chunkBudget","scheduleWork","checkAsyncSchedule","deadline","timeRemaining","viewportFirst","catch","isWorking","languages","LanguageSupport","support","indentService","indentUnit","getIndentUnit","indentString","cols","ts","getIndentation","IndentContext","service","ast","indentFor","syntaxIndentation","simulateBreak","simulateDoubleBreak","textAfterPos","override","overrideIndentation","lineIndent","overriden","simulatedBreak","indentNodeProp","strategy","indentStrategy","TreeIndentContext","delimitedStrategy","ignoreClosed","topIndent","textAfter","baseIndent","baseIndentFor","atBreak","isParent","delimitedIndent","closing","align","closedAt","aligned","openToken","sim","openLine","bracketedAligned","continuedIndent","except","matchExcept","DontIndentBeyond","foldService","foldNodeProp","foldInside","isUnfinished","foldable","syntaxFolding","mapRange","foldEffect","unfoldEffect","selectedLines","foldState","folded","foldExists","preparePlaceholder","foldConfig","PreparedFoldWidget","foldWidget","onSelection","findFold","maybeEnable","codeFolding","announceFold","fold","lineFrom","lineTo","foldKeymap","defaultConfig","placeholderDOM","placeholderText","widgetToDOM","prepared","foldGutterDefaults","openText","closedText","markerDOM","foldingChanged","FoldMarker","foldGutter","fullConfig","canFold","canUnfold","buildMarkers","HighlightStyle","modSpec","scopeOpt","themeType","highlighterFacet","fallbackHighlighter","getHighlighters","treeHighlighter","TreeHighlighter","markCache","buildDeco","styleChange","textDecoration","fontStyle","DefaultScanDist","DefaultBrackets","bracketMatchingConfig","afterCursor","brackets","maxScanDistance","renderMatch","defaultRenderMatch","matchingMark","nonmatchingMark","bracketMatchingState","matchBrackets","bracketMatchingUnique","bracketMatching","bracketMatchingHandle","matchingNodes","byProp","findHandle","hasHandle","handle","matchMarkedBrackets","tokenType","startCh","startToken","basePos","matchPlainBrackets","_pos","firstToken","endHandle","noTokens","typeArray","warned","byTag","defaultTable","legacyName","createTokenType","warnForPart","msg","tagStr","tags$1","toggleLineComment","changeLineComment","toggleBlockComment","changeBlockComment","toggleBlockCommentByLine","selectedLineRanges","SearchMargin","startText","endText","textBefore","spaceBefore","spaceAfter","beforeOff","startSpace","endSpace","findBlockComment","prevLine","minIndent","changeSet","fromHistory","isolateHistory","invertedEffects","historyConfig","minDepth","newGroupDelay","joinToEvent","isAdjacent","adj","historyField_","HistoryState","fromHist","HistEvent","fromTransaction","undone","updateBranch","addSelection","isolate","addMapping","addChanges","historyState","undoSelection","redoSelection","histState","branch","startSelection","selectionsAfter","setSelAfter","selections","maxLen","newEvent","newBranch","conc","MaxSelectionsPerEvent","popSelection","addMappingToBranch","mapEvent","extraSelections","mappedChanges","fullMapping","joinableUserEvent","prevTime","prevUserEvent","eqSelectionShape","onlySelection","updateSel","setSel","moveSel","how","rangeEnd","cursorByChar","ltrAtCursor","cursorCharLeft","cursorCharRight","cursorByGroup","Intl","Segmenter","interestingNode","bracketProp","moveBySyntax","cursorByLine","cursorLineUp","cursorLineDown","pageInfo","selfScroll","cursorByPage","scrollRect","cursorPageUp","cursorPageDown","moveByLineBoundary","toMatchingBracket","extendSel","selectByChar","selectCharLeft","selectCharRight","selectByGroup","selectByLine","selectLineUp","selectLineDown","selectByPage","selectPageUp","selectPageDown","cursorDocStart","cursorDocEnd","selectDocStart","selectDocEnd","deleteBy","towards","skipAtomic","deleteByChar","targetPos","deleteCharBackward","deleteCharForward","deleteByGroup","nextChar","deleteGroupBackward","selectedLineBlocks","blocks","moveLine","nextLine","copyLine","insertNewlineAndIndent","newlineAndIndent","insertBlankLine","atEof","explode","isBetweenBrackets","changeBySelectedLine","atLine","indentMore","indentLess","keep","emacsStyleKeymap","standardKeymap","norm","crelt","basicNormalize","SearchCursor","bufferPos","nextOverlapping","baseFlags","RegExpCursor","MultilineRegExpCursor","ignoreCase","curLineStart","matchPos","toCharEnd","flattened","FlattenedDoc","cached","cachedFrom","createLineDialog","go","sign","percent","pc","dialogEffect","onsubmit","dialogField","defaultHighlightOptions","highlightWordAroundCursor","minSelectionLength","maxMatches","wholeWords","highlightConfig","highlightSelectionMatches","defaultTheme","matchHighlighter","matchDeco","mainMatchDeco","insideWordBoundaries","insideWord","searchConfigFacet","caseSensitive","wholeWord","createPanel","SearchPanel","scrollToMatch","SearchQuery","validRegExp","unquoted","unquote","RegExpQuery","StringQuery","getCursor","st","regexpCursor","stringCursor","categorizer","bufPos","charBefore","charAfter","stringWordTest","nextMatch","prevMatchInRange","prevMatch","getReplacement","_result","matchAll","highlight","setSearchQuery","togglePanel","searchState","SearchState","defaultQuery","createSearchPanel","matchMark","selectedMatchMark","searchHighlighter","searchCommand","openSearchPanel","findNext","announceMatch","selectSearchInput","findPrevious","selectMatches","replaceNext","replacement","announceText","_d","_e","selText","getSearchInput","searchInput","searchExtensions","closeSearchPanel","searchKeymap","selectWord","searchedText","fullWord","cycled","findNextOccurrence","commit","searchField","form","onchange","onkeyup","replaceField","caseField","reField","wordField","setQuery","AnnounceMargin","Break","font","CompletionContext","explicit","abortListeners","tokenBefore","matchBefore","expr","ensureAnchor","aborted","toSet","completeFromList","validFor","prefixMatch","Option","completion","addStart","addEnd","pickedCompletion","SourceCache","asSource","startCompletionEffect","closeCompletionEffect","FuzzyMatcher","byWord","upper","astral","firstSize","anyTo","preciseTo","byWordTo","byWordFolded","adjacentTo","adjacentStart","adjacentEnd","hasLower","wordAdjacent","completionConfig","activateOnTyping","selectOnOpen","closeOnBlur","maxRenderedOptions","defaultKeymap","tooltipClass","optionClass","aboveCursor","addToOptions","positionInfo","defaultPositionInfo","compareCompletions","localeCompare","interactionDelay","updateSyncTime","joinClass","info","narrow","spaceLeft","spaceRight","infoWidth","infoHeight","spaceBelow","rangeAroundSelected","CompletionTooltip","stateField","applyCompletion","infoDestroy","placeInfoReq","measureInfo","placeInfo","currentClass","cState","optionContent","_s","_v","labelElt","displayLabel","detailElt","updateTooltipClass","showOptions","createListBox","prevState","updateSelectedOption","destroyInfo","infoResult","addInfoPane","listRect","infoRect","selRect","ul","curSection","section","header","li","completionTooltip","boost","CompletionDialog","timestamp","makeAttrs","addOption","hasResult","getMatch","sectionOrder","sortOptions","selectedValue","CompletionState","ActiveSource","sameResults","setSelectedEffect","baseAttrs","getUserEvent","explicitPos","handleUserEvent","setActiveEffect","ActiveResult","checkValid","completionState","insertCompletionText","moveCompletionSelection","RunningQuery","updates","MaxUpdateCount","MinAbortTime","completionPlugin","debounceUpdate","running","debounceAccept","startQuery","doesReset","startUpdate","scheduleAccept","dialog","maxWidth_fallback","listStyle","textOverflow","FieldPos","FieldRange","Snippet","fieldPositions","instantiate","lineObj","tabs","fieldMarker","fieldRange","ActiveSnippet","selectionInsideField","moveToField","snippetState","fieldSelection","snippet","addSnippetKeymap","snippetPointerHandler","moveField","defaultSnippetKeymap","snippetKeymap","maps","snippetCompletion","stringPrefixes","closeBracketEffect","closedBracket","bracketState","definedClosing","tok","handleSame","handleOpen","closedBracketAt","handleClose","insertBracket","closeBracketsKeymap","dont","prevChar","closeBefore","_open","allowTriple","canStartStringAt","quoteToken","prefixes","maxPrefix","quotePos","probablyInString","charCat","autocompletion","completionKeymapExt","completionKeymap","SelectedDiagnostic","diagnostic","LintState","diagnostics","markedDiagnostics","diagnosticFilter","lintConfig","markerFilter","DiagnosticWidget","severity","markClass","findDiagnostic","hideTooltip","setDiagnosticsEffect","maybeEnableLint","lintState","lintExtensions","movePanelSelection","selPos","LintPanel","activeMark","lintTooltip","stackStart","stackEnd","tooltipFilter","diagnosticsTooltip","renderDiagnostic","closeLintPanel","lintKeymap","ViewPlugin","lintTime","setDiagnostics","logException","needsRefresh","assignKeys","assigned","inPanel","renderMessage","message","fired","keyIndex","nameElt","onmousedown","PanelItem","moveSelection","needsSync","newSelectedItem","_start","_end","underline","overflowY","background_fallback","color_fallback","basicSetup","chalky","highlightSpecialChars","drawSelection","syntaxHighlighting","defaultHighlightStyle","keymap","historyKeymap","stone","malibu","sage","whiskey","darkBackground","highlightBackground","tooltipBackground","oneDarkTheme","oneDarkHighlightStyle","Stack","reducePos","bufferBase","curContext","StackContext","dPrec","dynamicPrecedence","getGoto","minRepeatTerm","storeNode","reduceContext","lastBigReductionStart","bigReductionCount","lastBigReductionSize","stateFlag","baseStateID","term","isReduce","nextState","maxNode","shiftContext","nextStart","nextEnd","useNode","updateContext","tracker","reuse","stream","recoverByDelete","isNode","canShift","SimulatedStack","stateSlot","hasAction","recoverByInsert","nextStates","forceReduce","validAction","backup","findForcedReduction","allActions","rDepth","forceAll","deadEnd","sameState","dialectEnabled","dialectID","dialect","emitContext","emitLookAhead","setLookAhead","StackBufferCursor","maybeNext","decodeArray","Type","CachedToken","extended","mask","nullToken","InputStream","chunkOff","chunk2","chunk2Pos","readNext","resolveOffset","clipPos","resolved","acceptToken","getChunk","setDone","TokenGroup","tokenPrecTable","contextual","LocalTokenGroup","precTable","elseToken","ExternalTokenizer","precOffset","groupMask","accEnd","allows","overrides","findOffset","tableData","tableOffset","iPrev","verbose","env","LOG","stackIDs","cutAt","safeFrom","safeTo","trees","nextFragment","nodeAt","TokenCache","mainToken","tokenizers","getActions","actionIndex","updateCachedToken","addActions","eofTerm","getMainToken","specialized","specializers","putAction","recovering","nextStackID","minStackPos","topTerm","stacks","bufferLength","stopped","stoppedTokens","newStacks","advanceStack","finished","findFinished","stackID","stackToTree","SyntaxError","runRecovery","maxRemaining","strictCx","cxHash","defaultReduce","localStack","advanceFully","pushStackDedup","restarted","tokenEnd","forceBase","Dialect","ContextTracker","LRParser","version","nodeNames","repeatNodeCount","topTerms","topRules","nodeProps","setProp","nodeID","propSpec","skippedNodes","propSources","tokenArray","tokenData","specializerSpecs","getSpecializer","states","Uint32Array","stateData","maxTerm","dialects","dynamicPrecedences","tokenPrec","termNames","parseDialect","loose","groupTag","terminal","flag","deflt","external","contextTracker","descendantOp","Unit","callee","VariableName","colon","parenL","underscore","bracketL","dash","period","ampersand","backslash","isAlpha","identifiers","dashes","descendant","unitToken","cssHighlighting","NamespaceName","KeyframeName","KeyframeRangeName","TagName","ClassName","PseudoClassName","IdName","AttributeName","NumberLiteral","KeywordQuery","UnaryQueryOp","Callee","MatchOp","BinOp","Important","Comment","ColorLiteral","spec_callee","__proto__","domain","spec_AtKeyword","spec_identifier","_properties","properties","pseudoClasses","VariablesByNode","declSelector","astTop","variableNames","defineCSSCompletionSource","isDash","isVarArg","cssCompletionSource","cssLanguage","Declaration","commentTokens","indentOnInput","autocomplete","EndTag","SelfClosingEndTag","StartTag","StartScriptTag","StartStyleTag","StartTextareaTag","StartSelfClosingTag","StartCloseTag","NoMatchStartCloseTag","MismatchedStartCloseTag","missingCloseTag","IncompleteCloseTag","commentContent$1","Attribute","AttributeValue","UnquotedAttributeValue","ScriptText","StyleText","TextareaText","OpenTag","CloseTag","Dialect_noMatch","Dialect_selfClosing","selfClosers","area","hr","img","keygen","wbr","menuitem","implicitlyClosed","dd","optgroup","rp","rt","closeOnOpen","article","aside","blockquote","div","dl","fieldset","footer","h1","h2","h3","h4","h5","h6","hgroup","menu","ol","isSpace","cachedName","cachedInput","cachedPos","tagNameAfter","question","bang","lessThan","greaterThan","slash","ElementContext","startTagTerms","elementContext","tagStart","commentContent","endTag","selfClosing","inForeignElement","contentTokenizer","textToken","endToken","lastState","matchedLen","scriptTokens","styleTokens","textareaTokens","htmlHighlighting","Is","ProcessingInst","DoctypeDecl","openTag","att","findTagName","tagNameNode","maybeNest","configureNesting","textarea","nameNode","noSemi","incdec","incdecPrefix","JSXStartTag","insertSemi","spaces","LineComment","BlockComment","Dialect_jsx","braceR","semicolon","star","minus","lt","comma","trackNewline","insertSemicolon","noSemicolon","incdecToken","mayPostfix","identifierChar","jsx","jsHighlight","TemplateString","BooleanLiteral","Star","VariableDefinition","Label","PropertyName","PrivatePropertyName","PropertyDefinition","PrivatePropertyDefinition","UpdateOp","Escape","ArithOp","LogicOp","BitOp","CompareOp","Equals","Arrow","TypeName","TypeDefinition","JSXAttributeValue","JSXText","export","as","async","extends","true","false","typeof","new","await","public","readonly","instanceof","satisfies","in","const","import","keyof","infer","abstract","implements","let","var","using","interface","enum","declare","while","with","do","if","else","switch","case","try","finally","return","throw","continue","debugger","spec_word","accessor","spec_LessThan","snippets","typescriptSnippets","ScopeNodes","defID","functionContext","gatherCompletions","FunctionDeclaration","ClassDeclaration","ClassExpression","EnumDeclaration","TypeAliasDeclaration","NamespaceDeclaration","getScope","completions","gather","Identifier","dontComplete","localCompletionSource","isWord","javascriptLanguage","IfStatement","TryStatement","LabeledStatement","SwitchBody","isCase","Block","ArrowFunction","JSXElement","JSXEscape","closeBrackets","jsxSublanguage","typescriptLanguage","jsxLanguage","tsxLanguage","kwCompletion","keywords","typescriptKeywords","javascript","typescript","autoCloseTags","elementName","closeTags","findOpenTag","Targets","Charsets","Methods","Encs","Bool","Tags","ping","media","hreflang","abbr","shape","audio","mediagroup","crossorigin","preload","autoplay","loop","controls","bdi","bdo","cite","formaction","autofocus","formenctype","formmethod","formnovalidate","formtarget","caption","colgroup","radiogroup","datagrid","datalist","datetime","details","dfn","eventsource","figcaption","figure","enctype","novalidate","manifest","srcdoc","sandbox","seamless","ismap","usemap","dirname","maxlength","required","kbd","challenge","keytype","legend","sizes","charset","meter","optimum","noscript","typemustmatch","reversed","progress","ruby","samp","small","scoped","summary","sup","colspan","rowspan","headers","rows","srclang","video","poster","muted","GlobalAttrs","accesskey","dropzone","hidden","inert","itemid","itemprop","itemref","itemscope","itemtype","tabindex","eventAttributes","Schema","extraTags","extraAttrs","globalAttrs","allTags","globalAttrNames","findParentElement","allowedChildren","schema","parentInfo","openTags","completeTag","completeCloseTag","htmlCompletionFor","localAttrs","completeAttrName","quoteStart","quoteEnd","completeAttrValue","completeStartTag","htmlCompletionSourceWith","extraGlobalAttributes","jsonParser","defaultNesting","defaultAttrs","htmlPlain","Document","endElt","htmlLanguage","insertTransaction","didType","beautifyText","textIter","configRaw","beautifyConfig","beautified","stateLanguage","getBeautify","readOnlyCompartment","lineNumbersCompartment","autoFormat","readOnlyRanges","targetState","editorFromTextArea","getCodeLanguage","matchClosingTags","selfClosingTags","nestedLanguages","nestedAttributes","setReadonlyState","readonlyState","languageState","getEditor","getContent","autoFormaAll","CodeMirrorEditor","CodeMirror","variables","codeUpdated","txtarea","eventDrag","keySymbols","keySymbol","keySymbolOvrd","keyUpdate","keyUpdateInside","initLib","columnDefs","table_el","DataTable","columns","dataSrc","test2","integrity","crossOrigin","removable","badgable","stylable","unstylable","highlightable","copyable","layerable","selectable","hoverable","locked","dmode","parentAttr","toPropagate","initClasses","initComponents","initTraits","initToolbar","initScriptProps","scriptUpdated","tagUpdated","attrUpdated","_idUpdated","__emitUpdateTlb","__propToParent","avoidUpdateStyle","__isSymbolOrInst","__initSymb","__hasUm","__changesUp","__propSelfToParent","__onStyleChange","styleKeys","pros","setDragMode","$els","closestType","setClass","attrPrev","setAttributes","getAttributes","noClass","removeAttributes","attrArr","compAttr","optsAdd","getIdRule","cc","setIdRule","noStyle","addId","__getSymbol","__getSymbols","classe","getClasses","classStr","__logSymbol","toUp","symbol","symbols","__symbReady","__upSymbProps","__isSymbol","__isSymbolTop","__isSymbolNested","symbTopSelf","__getSymbTop","symbTop","__getAllById","symb","symbs","__isSymbOvrd","ovrd","prp","__getSymbToUp","fromInstance","noPropagate","propsChanged","__upSymbCls","__upSymbComps","optUp","toUpOpts","addSymb","addedInstances","toAppend","addedInst","addedTop","symbolInv","isSymbNested","toUpFn","symbPrnt","newMods","attrCls","toListen","clsArr","normalizeClasses","addChild","avoidChildren","__loadTraits","prevProps","prevPropsEv","newPropsEv","__scriptPropsChange","getLastChild","tb","getTraits","setTraits","getTrait","updateTrait","getTraitIndex","removeTrait","addTrait","clm","_inner","cloned","newId","defName","nameTag","i18nPfx","i18nName","i18nNameTag","i18nDefName","customName","noCustom","sTag","customAttr","getAttrToHTML","withProps","valueRes","altQuoteAttr","attrString","getInnerHTML","__innerHTML","getChangedProps","setId","frm","getCurrentView","modelProps","scrStr","reg","onAll","clb","forEachChild","rmOpts","sameParent","isInstanceOf","byType","resetId","oldId","_getStyleRule","idS","_getStyleSelector","idUpdate","idPrev","getList","getDefaults","nextId","getIncrementId","ilen","uid","dm","__escapeContent","frameborder","svgAttrs","ratioDefault","cmdName","hasButtonBool","getSrcResult","isDefaultSrc","srcDef","parseUri","uri","URL","hostname","protocol","port","qrs","getQueryObject","defs","mapUrl","mapType","parseFromSrc","updateSrc","getMapUrl","qr","z","rowsToAdd","columnsToAdd","yt","vi","ytnc","defProvider","hasParam","videoId","ytUrl","ytncUrl","viUrl","modestbranding","updatePropsFromAttr","updateTraits","getYoutubeTraits","getVimeoTraits","getSourceTraits","prov","getYoutubeSrc","getYoutubeNoCookieSrc","getVimeoSrc","getProviderTrait","getAutoplayTrait","getLoopTrait","getControlsTrait","isYtProv","isYtncProv","isViProv","isExtProv","childrenView","sameFrameView","getTypes","viewObject","logError","modelOpt","updateStyle","renderAttributes","updateHighlight","updateStatus","updateContent","onActive","onDisable","avoidRender","getEvents","_clbObj","__isDraggable","handleDragStart","updateClasses","importClasses","renderChildren","chgArr","selectedCls","selectedParentCls","freezedCls","hoveredCls","noPointerCls","selCls","noExtHl","noCustomSpotTarget","Target","avoidHover","clsStr","isTextable","hl","styleOpts","__cmpStyleOpts","onAttrUpdate","updateAttributes","textable","defaultAttr","hasComps","getChildrenContainer","prevDef","getChildrenSelector","getTemplate","gtop","gleft","assignRect","isInViewport","frameH","frameW","_setData","createDoc","postRender","createComment","__getSrc","dblclick","classEmpty","fetchFile","fu","Assets","FileUploader","uploadFile","asset","complete","getSrc","onError","noDrag","updateContentText","syncContent","rte","RichTextEditor","fromDisable","disableEditing","canActivate","rteEnabled","sameInEdit","getEditing","isInnerText","lastContent","activeRte","toggleEvents","contentOpt","customRte","parseContent","insertComponent","onInput","disablePropagation","mixins","setEditing","elDocs","getIframe","ifrm","frameBorder","scrCnt","scriptCount","svar","svarNext","svarFn","svarNextFn","createElementNS","updateProvider","updateVideo","renderByProvider","videoEl","renderYoutube","renderYoutubeNoCookie","renderVimeo","renderSource","initVideoEl","CanMoveReason","ComponentTableView","ComponentView","ComponentsView","componentHovered","selectAdd","selectRemove","getComponents","setComponents","addType","extendView","extendFn","extendFnView","extendType","extendViewType","typeToExtend","modelToExt","viewToExt","getExtendedObj","srcToExt","parentFn","removeType","getShallowWrapper","shallow","shallowEm","reason","InvalidSource","srcModel","SourceReject","isTargetInside","TargetReject","getById","maxValue","MAX_VALUE","compCls","buildFromModel","codeJson","onlyMatched","matchedRules","mRules","buildFromRule","sortMediaObject","rulesStr","ruleStr","dump","selectorStrNoAdd","skipAdd","selectorsAdd","singleAtRule","__cleanSelector","getQueryLength","mediaQuery","itemsArr","mquery","getKey","CSS","ensureSelectors","atRuleType","typeStr","addSelector","selOpts","stateStr","skipState","getDevice","deviceDefault","getState","stateValue","getStates","sngl","cmpId","ruleProps","wd","selAdd","a1S","a2S","CssRules","slc","singleSel","checkNode","sl","newSels","le","selec","modelExists","styleUpdate","addRules","setRule","atRuleParams","addStyles","getRule","optRuleSel","getCurrentMedia","getClassRule","getComponentRules","rulesView","sSel","appendOnClick","category","activate","getMedia","getCategoryLabel","ctg","BlocksEvents","Categories","endDrag","insertAt","getSorter","validTarget","__currentBlock","setDragHelper","__startDrag","handleDrag","__drag","__endDrag","clsAdd","caretR","caretD","iconClass","activeClass","updateVisibility","getIconEl","getBlocksEl","iconEl","blocksEl","renderedCategories","categories","noCatClass","blockContClass","catsClass","updateConfig","onDrop","ignoreCategories","catModel","catId","getCategoriesEl","catView","catsEl","Category","blocksVisible","bhv","__getBehaviour","_dragBlock","dragResult","oldKey","oldActive","toActive","dragEnd","__getFrameViews","_bhv","fv","blocksView","getAllVisible","getCategories","getDragBlock","toRender","colls","iconAdd","iconSync","iconTagOn","iconTagOff","iconTagRemove","componentFirst","State","inputProp","startEditTag","endEditTag","rename","innerText","changeStatus","removeTag","removeSelected","$chk","mainCls","stateInputId","stateInputC","componentChanged","checkSync","__handleStateChange","addNew","renderClasses","tagRemoved","renderStates","labelInfo","labelHead","syncStyle","getTarget","cssC","getCommonSelectors","ruleComponents","getTargets","ruleComponent","updateStateVis","addToClasses","startNewTag","$addBtn","endNewTag","onInputKeyUp","addNewTag","checkStates","statesEl","targets","trgs","validSelectors","__getCommonSelectors","_commonSelectors","__common","hasStyle","$btnSyncEl","getStatesC","updateSelector","elSel","__getName","selectedName","idRes","stateChanged","addSelected","$states","$statesC","labelStates","tmpOpts","renderRes","$classes","evCustom","evState","selectorEvents","cFirst","__update","__updateSelectedByComponents","__ctn","selTags","selectorTags","cOpts","cname","selModel","getSelector","setStates","__getCommon","duplicateSelected","commonSelectors","styleToApply","suffix","newSelector","getSelectedTargets","setComponentFirst","getComponentFirst","CSS_RULE_TYPES","AT_RULE_NAMES","AT_RULE_KEYS","SINGLE_AT_RULE_TYPES","NESTABLE_AT_RULE_NAMES","SINGLE_AT_RULE_NAMES","parseSelector","propName","propValue","getPropertyPriority","parseCondition","conditionText","selectorText","createNode","selLen","lastClass","stateArr","getNestableAtRule","cssRules","keyText","isSingleAtRule","subRules","subAtRuleType","lens","subRule","selsParsed","selsAdd","selsArr","lastRule","len3","selsAddStr","parsedNode","classSets","autosave","autoload","stepsBeforeSave","recovery","onStore","checkLocal","urlStore","urlLoad","contentTypeJson","fetchOptions","credentials","hasLocal","setItem","getItem","thr","AggregateError","errors","P","rejectionReasons","ex","setTimeoutFunc","_handled","_deferreds","doResolve","deferred","_immediateFn","onFulfilled","onRejected","promise","finale","_unhandledRejectionFn","Handler","prom","promiseFinally","allSettled","race","setImmediate","rej","XMLHttpRequest","withCredentials","statusText","responseText","upload","onProgress","onprogress","send","__props","parsable","typeJson","fetchOpts","reqHead","typeHead","FormData","StorageEvents","STORAGE_LOCAL","STORAGE_REMOTE","storages","setCurrent","isAutosave","setAutosave","getStepsBeforeSave","setStepsBeforeSave","storage","getStorages","getCurrent","currentStorage","getCurrentStorage","getStorageOptions","getCurrentOptions","getRecoveryStorage","recoveryOpts","__exec","recoveryStorage","recoveryData","__askRecovery","getRecovery","confirm","response","toStore","__clearKeys","onAfter","itemKey","startLoad","startStore","evAfter","afterLoad","afterStore","endLoad","endStore","errorLoad","errorStore","canAutoload","TraitsView","upAll","__upSel","__onUp","getTraitsViewer","baseView","hidable","hideTextnode","showWrapper","showHover","scrollCanvas","scrollLayers","highlightHover","onInit","sortContainer","ignoreViewChildren","avoidSelectOnEnd","viewLayer","ItemView","commandsDef","defComOptions","getOnComponentDragStart","getOnComponentDrag","getOnComponentDragEnd","altMode","CommandAbstract","defaultCommands","nativeDrag","hideTlb","fromMove","setDragImage","cmdMove","oldCmd","noStop","cmdObj","inputNameCls","clsTitleC","clsTitle","clsCaret","clsCount","clsMove","clsChildren","clsNoChild","clsEdit","clsNoEdit","initComponent","clsInput","gut","clsBase","checkChildren","updateOpening","updateLayerable","updateName","__render","getInputName","getVisibilityEl","eyeEl","hClass","toggleVisibility","setVisible","handleEdit","handleEditKey","handleEditEnd","inputName","clsOpen","clsChvOpen","getCaret","isOpen","toggleOpening","setOpen","handleSelect","setLayerData","handleHover","handleHoverOut","_rendered","__clearItems","__isLayerable","evRoot","evComponent","propsToListen","__onRootChange","__onComponent","prevDspKey","prevDisplay","updateLayer","setLocked","isLocked","getLayerData","cmpOpts","fromLayers","noAssets","uploadName","multiUpload","customFetch","embedAsBase64","handleAdd","beforeUpload","showUrlInput","openAssetsOnDrop","dropzoneContent","getFilename","getExtension","Asset","unitDim","__getBhv","getPreview","getInfo","AssetImageView","TypeableCollection","baseType","getBaseType","typeFound","recognizeType","typeView","ModelInst","ViewInst","extendViewApi","renderAssets","addToAsset","removedAsset","deselectAll","handleSubmit","getAddInput","assetsEl","getAssetsEl","globalCollection","inputUrl","toggleNoAssets","addAsset","fuRendered","AssetsView","submit","uploadId","disableUpload","FileUploaderView","onUploadStart","__propEv","onUploadEnd","onUploadError","onUploadResponse","fetchOptsResult","initDrop","that","uploadForm","ondragover","ondragleave","ondrop","initDropzone","addedCls","edEl","updatedCls","dropzoneCls","cleanEditorElCls","onDragOver","onDragLeave","promises","mimeTypeMatcher","Image","readAsDataURL","evOpen","evClose","evUpload","evUploadStart","evUploadEnd","evUploadError","evUploadRes","assetCmd","assetEvents","uploadStart","uploadEnd","uploadError","uploadResponse","assetsVis","assts","__viewParams","editorView","traitInputAttr","locale","localeFallback","detectLocale","messages","en","addButton","inputPlh","uploadTitle","labels","image","row","cell","desktop","tablet","mobileLandscape","mobilePortrait","titles","preview","fullscreen","emptyState","hover","fileButton","sectors","general","layout","typography","flex","dimension","_blank","recover","messagesAdd","addMessages","_localLang","setLocale","evObj","valuePrev","getLocale","getMessages","_debug","setMessages","localeFlb","lFlb","_getMsg","_addParams","userLanguage","msgSet","spotTarget","elT","elL","borderOffset","freezeClass","relative","offTop","offLeft","selectOnEnd","getDocuments","elDoc","dropModel","dropContent","updateTextViewCursorPosition","targetDoc","poiner","rangeParent","rangeOffset","setContentEditable","activeTextModel","toggleSortCursor","clonedEl","moveDragHelper","posY","posX","dragHelperStyle","createPlaceholder","prevTarget","sourceEl","getSourceModel","clearSelection","getTargetModel","isTextableActive","tempModel","selectTargetModel","targetModel","dsp","eO","rY","rX","mousePos","eventMove","sourceModel","dimsFromTarget","lastDims","disableTextable","movePlaceholder","prevTargetDim","$plh","isInFlow","styleInFlow","$parent","propFloat","trgModel","dragInfo","dropInfo","targetP","validResult","getDim","cacheDimsP","getChildrenDim","cacheDims","nearBorders","targetParent","getTargetFromEl","targetPrev","nearElBorders","getCurrentPos","elIndex","dirValue","indexEl","leftLimit","xLimit","yLimit","xCenter","yCenter","dimDown","trgDim","marg","margI","elDim","pT","pL","obj1","obj2","ancester","s1","toMoveArr","dst","modelToDrop","created","srcEl","warns","targetCollection","srcIndex","sameCollection","onUpdateContainer","minDim","maxDim","silentFrames","avoidContainerUpdate","tl","cr","bl","bc","setup","hdl","createHandler","toggleFrames","isHandler","getFocusedEl","getParentEl","parentElement","getBoundingRect","updateContainer","forceShow","handleMouseDown","mouseFetch","handlerAttr","clickedHandler","rectDim","parentDim","calc","updateRect","getSelectedHandler","elStyle","parentW","parentH","startW","startH","box","ratioActive","helpers","_handlers","_mods","_scope","_MODIFIERS","control","_MAP","backspace","tab","home","pageup","pagedown","_downKeys","modifierMap","updateModifierKey","clearModifier","assignKey","resetModifiers","getKeys","getMods","shortcut","mi","setScope","deleteScope","srcElement","isPressed","getPressedKeyCodes","multipleKeys","modifiersMatch","cancelBubble","keymaster","keymaps","defKeys","handlerRes","removeAll","backdrop","updateOpen","updateTitle","getCollector","$collector","$content","getTitle","$title","updateAttr","currAttr","_evData","titl","setTitle","onceOpen","getContentEl","swv","expt","osm","otm","ola","obl","opa","ful","prv","togglable","dragDrop","runDefaultCommand","stopDefaultCommand","deactivateAllExceptOne","deactivateAll","fromCollection","disableAllButtons","disableAllButtonsExceptOne","Buttons","btn","listen","activeCls","disableCls","btnsVisCls","updateActive","checkActive","updateBtnsVis","updateClassName","updateDisable","fromListen","$buttons","commandName","clicked","toggleActive","appendContent","toggleVisible","resz","resLen","resBools","forContainer","styleWidth","styleHeight","buttonsView","appendEl","getPanelsEl","PanelsViewObj","removePanel","panelId","removeButton","getButton","disableButtons","optsCodeViewer","htmlOpts","cleanId","beforeEach","isFunctionEmpty","mapModel","scrProps","mapJs","defaultViewer","generators","viewers","defGenerators","defViewers","loadDefaultGenerators","loadDefaultViewers","addGenerator","generator","getGenerator","getGenerators","addViewer","viewer","getViewer","getViewers","cont","updateViewer","getCode","genId","trackSelection","hasSkip","getChanged","hasUndo","chn","beforeCache","hasRedo","getInstance","getStack","getStackGroup","getGroupedStack","createItem","goToGroup","goTo","adjustToolbar","RichTextEditorActionState","RTE_KEY","btnState","isValidTag","parentAnchor","parentFocus","customElAttr","defActions","bold","italic","insertHTML","setEl","updateActiveActions","__onKeydown","__onPaste","acts","actionbar","inactive","isCustom","actionbarCont","actionbarContainer","addAction","styleWithCSS","currentState","INACTIVE","queryCommandSupported","queryCommandState","ACTIVE","__dbdTrgCustom","enabled","__toggleEffects","actionbarEl","syncActions","textHtml","deleteContents","nd","insertNode","toSel","eventsUp","initRte","globalRte","hideToolbar","actionRes","updatePosition","rteInst","currentView","hideNotStylable","highlightChanged","highlightComputed","showComputed","clearProperties","avoidComputed","functionName","toRequire","requires","requiresParent","parentTarget","__upTargets","Property","callInit","__getParentProp","parentProp","isClear","__getFullValue","kProps","__getClearProps","toProps","applyStyle","__up","__trgEv","propertyUpdate","__upTargetsStyle","addStyleTargets","_up","noTarget","noDefault","hasValue","getDefaultValue","parentValue","getParentTarget","hasValueParent","noParent","upValue","__parseValue","canClear","getParent","__canClearProp","isFull","parseValue","setValueFromInput","valueStr","numeric","num","withDefault","getFullValue","fnParameter","skipImportant","__setParentTarget","__parseFn","__checkVisibility","stylableReq","sector","getProperties","callParentInit","skipInit","getIndex","getValues","getLayerLabel","isSelected","getSelectedLayer","selectLayer","removeLayer","moveLayer","getStylePreview","hasPreview","upValues","isNumberType","detached","fromStyle","toStyle","__upProperties","getProperty","getPropertyAt","isDetached","getSeparator","getSplitSeparator","getJoin","__getJoin","getStyleFromProps","__clearIn","__upTargetsStyleProps","__setProperties","__getSplitValue","__styleHasProps","nameProps","__splitValue","sep","__splitStyleName","props4Nums","__getPropsFromStyle","valuesStr","VALUES_REG","PARTS_REG","layerSeparator","layerJoin","layerLabel","selectedLayer","layersColl","__upSelected","__upLayers","getLayers","__getLayers","getLayer","__select","selectLayerAt","currIndex","addLayer","removeLayerAt","getStyleFromLayer","joinLayers","__getJoinLayers","getLayerSeparator","getStyleFromLayers","layerSelect","__layers","__setLayers","newLayers","layersNew","__parseLayer","parseFn","__getLayersFromStyle","separatorLayers","inLayer","clearProp","__destroyFn","onValueChange","iconClose","_getClbOpts","computedCls","labelEl","clearStyleEl","getClearEl","clearStyle","clearEl","inputValueChanged","emit","__setValueInput","clearCached","__unset","__change","__updateStyle","final","createdEl","clsType","propsView","iconMove","propertyView","pModel","updateLabel","getPropertiesWrapper","propsWrapEl","getPreviewEl","previewEl","getLabelEl","prvEl","wrapEl","iconPlus","layersView","prvBoxEl","openAssetManager","inputInst","handleModelChange","elementUpdated","__onInputChange","Input","inp","__handleChange","getOption","idSel","getOptionId","getOptionLabel","optId","propId","__onOptionChange","updateOptions","styleAttr","inputH","firstOpt","firstId","itemCls","elId","titleAttr","inputHld","inputIn","contClass","validObj","limitlessMax","limitlessMin","valCopy","uN","InputNumber","getUnits","getUnit","getMin","getMax","getStep","upUnit","valueProp","unitProp","getSliderEl","inputValueChangedSoft","propertyAdd","propertyRemove","builded","buildProperties","buildProps","extendProperties","checkExtend","propsModel","extendBuilded","withValue","withParentValue","addProperty","moProps","pLen","mProps","isolated","mProp","mPProps","buildP","builtIn","sect","typeNumber","typeColor","typeRadio","typeSelect","typeFile","typeSlider","typeComposite","typeStack","unitsSize","unitsSizeNoPerc","unitsTime","unitsAngle","ss","optsFlex","optsFlexAlign","optsBgSize","optsBgAttach","optsBgRepeat","optsWrap","optsOverflow","optsDir","opstDisplay","optsTransitFn","optsCursor","optsFloat","optsPos","optsTextAlign","optsJustCont","optsAlignCont","optsAlignSelf","optsTransitProp","optsBorderStyle","optsBgPos","optsWeight","optsShadowType","optsFonts","fixedFontSizes","fixedLetSpace","requireFlex","__sub","propsToCreate","spread","propToUp","fromRes","clsPfx","getPropertiesEl","renderProperties","objs","evSector","evSectorAdd","evSectorRemove","evSectorUpdate","evProp","evPropAdd","evPropRemove","evPropUp","evLayerSelect","evTarget","propDef","stylesEvents","sectorAdd","sectorRemove","sectorUpdate","Sector","__clearStateTarget","upProps","__upProps","trgCustom","stateTarget","__getStateTarget","addSector","getSector","_logNoSector","getSectors","removeSector","sectorId","removeProperty","lastTarget","lastTargetParents","getParentRules","getSelectedParents","getBuiltIn","getBuiltInAll","addBuiltIn","smConf","useClasses","deviceW","cssGen","optsSel","cmpRules","otherRules","rulesBySelectors","rSel","createType","SectView","parentStyles","__upProp","sectorVisible","hasVal","isStack","isComposite","canUpdate","parentItem","storableDeps","Window","ar","logs","warning","__skip","defaultRunning","dragMode","toLog","attrsOrig","pageManager","constr","loadModule","loadStorableModule","updateChanges","_checkReady","listenLog","eventFrom","eventTo","editing","clipboard","previousModel","storables","toLoad","loadOnStart","headless","Storage","loadData","_storageTimeout","EditorModel","stm","getDirtyCount","updateItr","onbeforeunload","InitModule","Mod","handleUpdates","timedInterval","mltSel","toggleSelected","selColl","selIndex","forceChange","upHovered","getHovered","selectedAll","typeHover","typeSpacing","getJs","avoidProt","avoidProtected","protCss","storeData","clearDirtyCount","loadOptions","editingCmp","destroyAll","grapesjs","logNs","logInfo","initBaseColorPicker","varName","classNames","contEl","shallowCanvasEl","I18n","addComponents","getSelectedToStyle","selectToggle","setDevice","setCustomRte","setCustomParserCss","onReady","getPlugin","pluginId","wplg","getPluginById","logPluginWarn","plg","agent","isIE","DOMImplementation","createHTMLDocument","implementation","polyfills","usePlugin","pluginResult","initConfig","autorender","pluginsOpts","plgOptions"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"grapes.min.js","mappings":";CAAA,SAA2CA,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,IACQ,mBAAXG,QAAyBA,OAAOC,IAC9CD,OAAO,GAAIH,GACe,iBAAZC,QACdA,QAAQ,YAAcD,IAEtBD,EAAK,YAAcC,GACpB,CATD,CASyB,oBAAfK,WAA6BA,WAAgC,oBAAXC,OAAyBA,OAASC,MAAO,I,2DCTrG,QAkEI,IAEF,EAAO,CACL,QACA,QACA,cAGD,KAFE,EAAF,SAAWC,EAAaC,EAAcC,GACrC,OA1BJ,SAAsBF,EAAaC,EAAcC,GAE/C,IAAIC,EAAW,SAASC,EAAKC,GAC3B,OAAOL,EAAYA,YAAYI,EAAKC,EACtC,EAYA,OATAF,EAASG,GAAKN,EAAYA,YAC1BG,EAASI,IAAMN,EAAaA,aAC5BE,EAASK,KAAON,EAAcA,cAG9BC,EAASH,YAAcA,EAAYA,YACnCG,EAASF,aAAeA,EAAaA,aACrCE,EAASD,cAAgBA,EAAcA,cAEhCC,CACT,CASWM,CAAaT,EAAaC,EAAcC,EAChD,6B,eC1EH,OAgEC,WAGD,IAAIQ,GACK,WACC,aACA,IAAIC,EAAsB,CAC7B,CACA,CAED,SAAUjB,GA+BhB,SAASkB,EAAWC,GAClBd,KAAKe,SAAWD,EAChBd,KAAKgB,kBAAoB,EAEzBhB,KAAKiB,gBAAkB,EACvBjB,KAAKkB,kBAAoB,EACzBlB,KAAKmB,mBAAqB,EA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EAE/Dn8M,EACFA,EAAOigC,EAAQk9K,GAEfb,GAAcr8K,EAAQk8K,EAE1B,IAKAtvO,EAAGosO,cACH+D,EAAWC,aAAe/D,GAAYj5K,EAAOn9D,SAC7Cs1H,GAAQ3uJ,KAAKw2F,GAENA,CACT,GA6CF,W","sources":["webpack://grapesjs/webpack/universalModuleDefinition","webpack://grapesjs/./node_modules/@qwex/codemirror-beautify/node_modules/js-beautify/js/index.js","webpack://grapesjs/./node_modules/@qwex/codemirror-beautify/node_modules/js-beautify/js/lib/beautify-css.js","webpack://grapesjs/./node_modules/@qwex/codemirror-beautify/node_modules/js-beautify/js/lib/beautify-html.js","webpack://grapesjs/./node_modules/@qwex/codemirror-beautify/node_modules/js-beautify/js/lib/beautify.js","webpack://grapesjs/./node_modules/backbone-undo/Backbone.Undo.js","webpack://grapesjs/./node_modules/backbone/backbone.js","webpack://grapesjs/./src/abstract/ModuleModel.ts","webpack://grapesjs/./src/canvas/model/CanvasSpot.ts","webpack://grapesjs/./node_modules/@codemirror/state/dist/index.js","webpack://grapesjs/./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js","webpack://grapesjs/./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js","webpack://grapesjs/./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js","webpack://grapesjs/./node_modules/@babel/runtime/helpers/esm/iterableToArray.js","webpack://grapesjs/./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js","webpack://grapesjs/./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js","webpack://grapesjs/./node_modules/@babel/runtime/helpers/esm/classCallCheck.js","webpack://grapesjs/./node_modules/@babel/runtime/helpers/esm/toPropertyKey.js","webpack://grapesjs/./node_modules/@babel/runtime/helpers/esm/toPrimitive.js","webpack://grapesjs/./node_modules/@babel/runtime/helpers/esm/createClass.js","webpack://grapesjs/./node_modules/w3c-keyname/index.js","webpack://grapesjs/./node_modules/style-mod/src/style-mod.js","webpack://grapesjs/./node_modules/@codemirror/view/dist/index.js","webpack://grapesjs/./node_modules/codemirror-readonly-ranges/dist/index.es.js","webpack://grapesjs/./node_modules/@lezer/common/dist/index.js","webpack://grapesjs/./node_modules/@lezer/highlight/dist/index.js","webpack://grapesjs/./node_modules/@codemirror/language/dist/index.js","webpack://grapesjs/./node_modules/@codemirror/commands/dist/index.js","webpack://grapesjs/./node_modules/crelt/index.js","webpack://grapesjs/./node_modules/@codemirror/search/dist/index.js","webpack://grapesjs/./node_modules/@codemirror/autocomplete/dist/index.js","webpack://grapesjs/./node_modules/@codemirror/lint/dist/index.js","webpack://grapesjs/./node_modules/codemirror/dist/index.js","webpack://grapesjs/./node_modules/@codemirror/theme-one-dark/dist/index.js","webpack://grapesjs/./node_modules/@lezer/lr/dist/index.js","webpack://grapesjs/./node_modules/@lezer/css/dist/index.js","webpack://grapesjs/./node_modules/@codemirror/lang-css/dist/index.js","webpack://grapesjs/./node_modules/@lezer/html/dist/index.js","webpack://grapesjs/./node_modules/@lezer/javascript/dist/index.js","webpack://grapesjs/./node_modules/@codemirror/lang-javascript/dist/index.js","webpack://grapesjs/./node_modules/@codemirror/lang-html/dist/index.js","webpack://grapesjs/./node_modules/@qwex/codemirror-beautify/dist/index.js","webpack://grapesjs/./src/code_manager/model/CodeMirrorEditor.ts","webpack://grapesjs/./src/commands/view/CanvasClear.ts","webpack://grapesjs/./src/commands/view/CanvasMove.ts","webpack://grapesjs/./src/commands/view/CommandAbstract.ts","webpack://grapesjs/./src/commands/view/ComponentDelete.ts","webpack://grapesjs/./src/commands/view/ComponentDrag.ts","webpack://grapesjs/./src/commands/view/ComponentEnter.ts","webpack://grapesjs/./src/commands/view/ComponentExit.ts","webpack://grapesjs/./src/commands/view/ComponentNext.ts","webpack://grapesjs/./src/commands/view/ComponentPrev.ts","webpack://grapesjs/./src/commands/view/ComponentStyleClear.ts","webpack://grapesjs/./src/commands/view/CopyComponent.ts","webpack://grapesjs/./src/commands/view/ExportTemplate.ts","webpack://grapesjs/./src/commands/view/Fullscreen.ts","webpack://grapesjs/./src/commands/view/MoveComponent.ts","webpack://grapesjs/./src/commands/view/OpenAssets.ts","webpack://grapesjs/./src/commands/view/OpenBlocks.ts","webpack://grapesjs/./src/commands/view/OpenLayers.ts","webpack://grapesjs/./src/commands/view/OpenPages.ts","webpack://grapesjs/./src/commands/view/OpenStyleManager.ts","webpack://grapesjs/./src/commands/view/OpenTraitManager.ts","webpack://grapesjs/./src/commands/view/PasteComponent.ts","webpack://grapesjs/./src/commands/view/Preview.ts","webpack://grapesjs/./src/commands/view/Resize.ts","webpack://grapesjs/./src/dom_components/model/ToolbarButton.ts","webpack://grapesjs/./src/dom_components/model/Toolbar.ts","webpack://grapesjs/./src/domain_abstract/view/DomainViews.ts","webpack://grapesjs/./src/dom_components/view/ToolbarButtonView.ts","webpack://grapesjs/./src/dom_components/view/ToolbarView.ts","webpack://grapesjs/./src/commands/view/SelectComponent.ts","webpack://grapesjs/./src/commands/view/SelectPosition.ts","webpack://grapesjs/./src/commands/view/ShowOffset.ts","webpack://grapesjs/./src/commands/view/SwitchVisibility.ts","webpack://grapesjs/./src/common/index.ts","webpack://grapesjs/./src/common/traits/view/TraitListView.ts","webpack://grapesjs/./src/common/traits/view/TraitObjectView.ts","webpack://grapesjs/./src/common/traits/view/TraitAjaxView.ts","webpack://grapesjs/./src/common/traits/index.ts","webpack://grapesjs/./src/common/traits/model/Trait.ts","webpack://grapesjs/./src/common/traits/model/TraitGroup.ts","webpack://grapesjs/./src/common/traits/model/TraitGroupItem.ts","webpack://grapesjs/./src/common/traits/model/TraitList.ts","webpack://grapesjs/./src/common/traits/model/TraitSingle.ts","webpack://grapesjs/./src/common/traits/view/TraitButtonView.ts","webpack://grapesjs/./src/common/traits/view/TraitCheckboxView.ts","webpack://grapesjs/./src/common/traits/view/TraitColorView.ts","webpack://grapesjs/./src/common/traits/view/TraitFunctionView.ts","webpack://grapesjs/./src/common/traits/view/TraitInputView.ts","webpack://grapesjs/./src/common/traits/view/TraitNumberView.ts","webpack://grapesjs/./src/common/traits/view/TraitSelectView.ts","webpack://grapesjs/./src/common/traits/view/TraitTextView.ts","webpack://grapesjs/./src/common/traits/model/TraitFactory.ts","webpack://grapesjs/./src/common/traits/view/TraitView.ts","webpack://grapesjs/./src/common/traits/view/TraitsView.ts","webpack://grapesjs/./src/dom_components/model/Component.ts","webpack://grapesjs/./src/dom_components/model/ComponentWrapper.ts","webpack://grapesjs/./src/dom_components/model/Components.ts","webpack://grapesjs/./src/domain_abstract/model/StyleableModel.ts","webpack://grapesjs/./src/parser/model/BrowserParserHtml.ts","webpack://grapesjs/./src/parser/model/ParserHtml.ts","webpack://grapesjs/./src/selector_manager/model/Selector.ts","webpack://grapesjs/./src/selector_manager/model/Selectors.ts","webpack://grapesjs/./src/utils/ColorPicker.ts","webpack://grapesjs/./src/utils/Dragger.ts","webpack://grapesjs/./src/utils/cash-dom.ts","webpack://grapesjs/./src/utils/dom.ts","webpack://grapesjs/./src/utils/mixins.ts","webpack://grapesjs/./src/commands/view/ sync ^\\.\\/.*$","webpack://grapesjs/./node_modules/@babel/runtime/helpers/esm/typeof.js","webpack://grapesjs/./node_modules/underscore/modules/_setup.js","webpack://grapesjs/./node_modules/underscore/modules/restArguments.js","webpack://grapesjs/./node_modules/underscore/modules/isObject.js","webpack://grapesjs/./node_modules/underscore/modules/isNull.js","webpack://grapesjs/./node_modules/underscore/modules/isUndefined.js","webpack://grapesjs/./node_modules/underscore/modules/isBoolean.js","webpack://grapesjs/./node_modules/underscore/modules/isElement.js","webpack://grapesjs/./node_modules/underscore/modules/_tagTester.js","webpack://grapesjs/./node_modules/underscore/modules/isString.js","webpack://grapesjs/./node_modules/underscore/modules/isNumber.js","webpack://grapesjs/./node_modules/underscore/modules/isDate.js","webpack://grapesjs/./node_modules/underscore/modules/isRegExp.js","webpack://grapesjs/./node_modules/underscore/modules/isError.js","webpack://grapesjs/./node_modules/underscore/modules/isSymbol.js","webpack://grapesjs/./node_modules/underscore/modules/isArrayBuffer.js","webpack://grapesjs/./node_modules/underscore/modules/isFunction.js","webpack://grapesjs/./node_modules/underscore/modules/_hasObjectTag.js","webpack://grapesjs/./node_modules/underscore/modules/_stringTagBug.js","webpack://grapesjs/./node_modules/underscore/modules/isDataView.js","webpack://grapesjs/./node_modules/underscore/modules/isArray.js","webpack://grapesjs/./node_modules/underscore/modules/_has.js","webpack://grapesjs/./node_modules/underscore/modules/isArguments.js","webpack://grapesjs/./node_modules/underscore/modules/isFinite.js","webpack://grapesjs/./node_modules/underscore/modules/isNaN.js","webpack://grapesjs/./node_modules/underscore/modules/constant.js","webpack://grapesjs/./node_modules/underscore/modules/_createSizePropertyCheck.js","webpack://grapesjs/./node_modules/underscore/modules/_shallowProperty.js","webpack://grapesjs/./node_modules/underscore/modules/_getByteLength.js","webpack://grapesjs/./node_modules/underscore/modules/_isBufferLike.js","webpack://grapesjs/./node_modules/underscore/modules/isTypedArray.js","webpack://grapesjs/./node_modules/underscore/modules/_getLength.js","webpack://grapesjs/./node_modules/underscore/modules/_collectNonEnumProps.js","webpack://grapesjs/./node_modules/underscore/modules/keys.js","webpack://grapesjs/./node_modules/underscore/modules/isEmpty.js","webpack://grapesjs/./node_modules/underscore/modules/isMatch.js","webpack://grapesjs/./node_modules/underscore/modules/underscore.js","webpack://grapesjs/./node_modules/underscore/modules/_toBufferView.js","webpack://grapesjs/./node_modules/underscore/modules/isEqual.js","webpack://grapesjs/./node_modules/underscore/modules/allKeys.js","webpack://grapesjs/./node_modules/underscore/modules/_methodFingerprint.js","webpack://grapesjs/./node_modules/underscore/modules/isMap.js","webpack://grapesjs/./node_modules/underscore/modules/isWeakMap.js","webpack://grapesjs/./node_modules/underscore/modules/isSet.js","webpack://grapesjs/./node_modules/underscore/modules/isWeakSet.js","webpack://grapesjs/./node_modules/underscore/modules/values.js","webpack://grapesjs/./node_modules/underscore/modules/pairs.js","webpack://grapesjs/./node_modules/underscore/modules/invert.js","webpack://grapesjs/./node_modules/underscore/modules/functions.js","webpack://grapesjs/./node_modules/underscore/modules/_createAssigner.js","webpack://grapesjs/./node_modules/underscore/modules/extend.js","webpack://grapesjs/./node_modules/underscore/modules/extendOwn.js","webpack://grapesjs/./node_modules/underscore/modules/defaults.js","webpack://grapesjs/./node_modules/underscore/modules/_baseCreate.js","webpack://grapesjs/./node_modules/underscore/modules/create.js","webpack://grapesjs/./node_modules/underscore/modules/clone.js","webpack://grapesjs/./node_modules/underscore/modules/tap.js","webpack://grapesjs/./node_modules/underscore/modules/toPath.js","webpack://grapesjs/./node_modules/underscore/modules/_toPath.js","webpack://grapesjs/./node_modules/underscore/modules/_deepGet.js","webpack://grapesjs/./node_modules/underscore/modules/get.js","webpack://grapesjs/./node_modules/underscore/modules/has.js","webpack://grapesjs/./node_modules/underscore/modules/identity.js","webpack://grapesjs/./node_modules/underscore/modules/matcher.js","webpack://grapesjs/./node_modules/underscore/modules/property.js","webpack://grapesjs/./node_modules/underscore/modules/_optimizeCb.js","webpack://grapesjs/./node_modules/underscore/modules/_baseIteratee.js","webpack://grapesjs/./node_modules/underscore/modules/iteratee.js","webpack://grapesjs/./node_modules/underscore/modules/_cb.js","webpack://grapesjs/./node_modules/underscore/modules/mapObject.js","webpack://grapesjs/./node_modules/underscore/modules/noop.js","webpack://grapesjs/./node_modules/underscore/modules/propertyOf.js","webpack://grapesjs/./node_modules/underscore/modules/times.js","webpack://grapesjs/./node_modules/underscore/modules/random.js","webpack://grapesjs/./node_modules/underscore/modules/now.js","webpack://grapesjs/./node_modules/underscore/modules/_createEscaper.js","webpack://grapesjs/./node_modules/underscore/modules/_escapeMap.js","webpack://grapesjs/./node_modules/underscore/modules/escape.js","webpack://grapesjs/./node_modules/underscore/modules/unescape.js","webpack://grapesjs/./node_modules/underscore/modules/_unescapeMap.js","webpack://grapesjs/./node_modules/underscore/modules/templateSettings.js","webpack://grapesjs/./node_modules/underscore/modules/template.js","webpack://grapesjs/./node_modules/underscore/modules/result.js","webpack://grapesjs/./node_modules/underscore/modules/uniqueId.js","webpack://grapesjs/./node_modules/underscore/modules/chain.js","webpack://grapesjs/./node_modules/underscore/modules/_executeBound.js","webpack://grapesjs/./node_modules/underscore/modules/partial.js","webpack://grapesjs/./node_modules/underscore/modules/bind.js","webpack://grapesjs/./node_modules/underscore/modules/_isArrayLike.js","webpack://grapesjs/./node_modules/underscore/modules/_flatten.js","webpack://grapesjs/./node_modules/underscore/modules/bindAll.js","webpack://grapesjs/./node_modules/underscore/modules/memoize.js","webpack://grapesjs/./node_modules/underscore/modules/delay.js","webpack://grapesjs/./node_modules/underscore/modules/defer.js","webpack://grapesjs/./node_modules/underscore/modules/throttle.js","webpack://grapesjs/./node_modules/underscore/modules/debounce.js","webpack://grapesjs/./node_modules/underscore/modules/wrap.js","webpack://grapesjs/./node_modules/underscore/modules/negate.js","webpack://grapesjs/./node_modules/underscore/modules/compose.js","webpack://grapesjs/./node_modules/underscore/modules/after.js","webpack://grapesjs/./node_modules/underscore/modules/before.js","webpack://grapesjs/./node_modules/underscore/modules/once.js","webpack://grapesjs/./node_modules/underscore/modules/findKey.js","webpack://grapesjs/./node_modules/underscore/modules/_createPredicateIndexFinder.js","webpack://grapesjs/./node_modules/underscore/modules/findIndex.js","webpack://grapesjs/./node_modules/underscore/modules/findLastIndex.js","webpack://grapesjs/./node_modules/underscore/modules/sortedIndex.js","webpack://grapesjs/./node_modules/underscore/modules/_createIndexFinder.js","webpack://grapesjs/./node_modules/underscore/modules/indexOf.js","webpack://grapesjs/./node_modules/underscore/modules/lastIndexOf.js","webpack://grapesjs/./node_modules/underscore/modules/find.js","webpack://grapesjs/./node_modules/underscore/modules/findWhere.js","webpack://grapesjs/./node_modules/underscore/modules/each.js","webpack://grapesjs/./node_modules/underscore/modules/map.js","webpack://grapesjs/./node_modules/underscore/modules/_createReduce.js","webpack://grapesjs/./node_modules/underscore/modules/reduce.js","webpack://grapesjs/./node_modules/underscore/modules/reduceRight.js","webpack://grapesjs/./node_modules/underscore/modules/filter.js","webpack://grapesjs/./node_modules/underscore/modules/reject.js","webpack://grapesjs/./node_modules/underscore/modules/every.js","webpack://grapesjs/./node_modules/underscore/modules/some.js","webpack://grapesjs/./node_modules/underscore/modules/contains.js","webpack://grapesjs/./node_modules/underscore/modules/invoke.js","webpack://grapesjs/./node_modules/underscore/modules/pluck.js","webpack://grapesjs/./node_modules/underscore/modules/where.js","webpack://grapesjs/./node_modules/underscore/modules/max.js","webpack://grapesjs/./node_modules/underscore/modules/min.js","webpack://grapesjs/./node_modules/underscore/modules/toArray.js","webpack://grapesjs/./node_modules/underscore/modules/sample.js","webpack://grapesjs/./node_modules/underscore/modules/shuffle.js","webpack://grapesjs/./node_modules/underscore/modules/sortBy.js","webpack://grapesjs/./node_modules/underscore/modules/_group.js","webpack://grapesjs/./node_modules/underscore/modules/groupBy.js","webpack://grapesjs/./node_modules/underscore/modules/indexBy.js","webpack://grapesjs/./node_modules/underscore/modules/countBy.js","webpack://grapesjs/./node_modules/underscore/modules/partition.js","webpack://grapesjs/./node_modules/underscore/modules/size.js","webpack://grapesjs/./node_modules/underscore/modules/_keyInObj.js","webpack://grapesjs/./node_modules/underscore/modules/pick.js","webpack://grapesjs/./node_modules/underscore/modules/omit.js","webpack://grapesjs/./node_modules/underscore/modules/initial.js","webpack://grapesjs/./node_modules/underscore/modules/first.js","webpack://grapesjs/./node_modules/underscore/modules/rest.js","webpack://grapesjs/./node_modules/underscore/modules/last.js","webpack://grapesjs/./node_modules/underscore/modules/compact.js","webpack://grapesjs/./node_modules/underscore/modules/flatten.js","webpack://grapesjs/./node_modules/underscore/modules/difference.js","webpack://grapesjs/./node_modules/underscore/modules/without.js","webpack://grapesjs/./node_modules/underscore/modules/uniq.js","webpack://grapesjs/./node_modules/underscore/modules/union.js","webpack://grapesjs/./node_modules/underscore/modules/intersection.js","webpack://grapesjs/./node_modules/underscore/modules/unzip.js","webpack://grapesjs/./node_modules/underscore/modules/zip.js","webpack://grapesjs/./node_modules/underscore/modules/object.js","webpack://grapesjs/./node_modules/underscore/modules/range.js","webpack://grapesjs/./node_modules/underscore/modules/chunk.js","webpack://grapesjs/./node_modules/underscore/modules/_chainResult.js","webpack://grapesjs/./node_modules/underscore/modules/mixin.js","webpack://grapesjs/./node_modules/underscore/modules/underscore-array-methods.js","webpack://grapesjs/./node_modules/underscore/modules/index-default.js","webpack://grapesjs/webpack/bootstrap","webpack://grapesjs/webpack/runtime/compat get default export","webpack://grapesjs/webpack/runtime/define property getters","webpack://grapesjs/webpack/runtime/global","webpack://grapesjs/webpack/runtime/hasOwnProperty shorthand","webpack://grapesjs/webpack/runtime/make namespace object","webpack://grapesjs/./src/utils/html.ts","webpack://grapesjs/./src/editor/config/config.ts","webpack://grapesjs/./src/editor/model/Selected.ts","webpack://grapesjs/./src/abstract/Module.ts","webpack://grapesjs/./src/canvas/config/config.ts","webpack://grapesjs/./src/device_manager/config/config.ts","webpack://grapesjs/./src/device_manager/model/Device.ts","webpack://grapesjs/./src/device_manager/model/Devices.ts","webpack://grapesjs/./src/device_manager/view/DevicesView.ts","webpack://grapesjs/./src/device_manager/index.ts","webpack://grapesjs/./src/abstract/ModuleCollection.ts","webpack://grapesjs/./src/canvas/model/Frame.ts","webpack://grapesjs/./src/canvas/model/Frames.ts","webpack://grapesjs/./src/pages/model/Page.ts","webpack://grapesjs/./src/pages/model/Pages.ts","webpack://grapesjs/./src/pages/view/PageView.ts","webpack://grapesjs/./src/pages/view/PagesView.ts","webpack://grapesjs/./src/pages/config/config.ts","webpack://grapesjs/./src/pages/view/PageEditView.ts","webpack://grapesjs/./src/pages/index.ts","webpack://grapesjs/./src/canvas/model/Canvas.ts","webpack://grapesjs/./src/canvas/model/CanvasSpots.ts","webpack://grapesjs/./src/canvas/types.ts","webpack://grapesjs/./src/abstract/ModuleView.ts","webpack://grapesjs/./src/abstract/ModuleDomainViews.ts","webpack://grapesjs/./src/css_composer/view/CssRuleView.ts","webpack://grapesjs/./src/css_composer/view/CssGroupRuleView.ts","webpack://grapesjs/./src/css_composer/view/CssRulesView.ts","webpack://grapesjs/./src/utils/Droppable.ts","webpack://grapesjs/./src/canvas/view/FrameView.ts","webpack://grapesjs/./src/canvas/view/FrameWrapView.ts","webpack://grapesjs/./src/canvas/view/FramesView.ts","webpack://grapesjs/./src/canvas/view/CanvasView.ts","webpack://grapesjs/./src/canvas/index.ts","webpack://grapesjs/./src/dom_components/config/config.ts","webpack://grapesjs/./src/dom_components/model/ComponentTextNode.ts","webpack://grapesjs/./src/dom_components/model/ComponentComment.ts","webpack://grapesjs/./src/dom_components/model/ComponentFrame.ts","webpack://grapesjs/./src/dom_components/model/ComponentImage.ts","webpack://grapesjs/./src/dom_components/model/ComponentText.ts","webpack://grapesjs/./src/dom_components/model/ComponentLabel.ts","webpack://grapesjs/./src/dom_components/model/ComponentLink.ts","webpack://grapesjs/./src/dom_components/model/ComponentMap.ts","webpack://grapesjs/./src/dom_components/model/ComponentScript.ts","webpack://grapesjs/./src/dom_components/model/ComponentSvg.ts","webpack://grapesjs/./src/dom_components/model/ComponentSvgIn.ts","webpack://grapesjs/./src/dom_components/model/ComponentTable.ts","webpack://grapesjs/./src/dom_components/model/ComponentTableBody.ts","webpack://grapesjs/./src/dom_components/model/ComponentTableCell.ts","webpack://grapesjs/./src/dom_components/model/ComponentTableFoot.ts","webpack://grapesjs/./src/dom_components/model/ComponentTableHead.ts","webpack://grapesjs/./src/dom_components/model/ComponentTableRow.ts","webpack://grapesjs/./src/dom_components/model/ComponentVideo.ts","webpack://grapesjs/./src/dom_components/view/ComponentsView.ts","webpack://grapesjs/./src/dom_components/view/ComponentView.ts","webpack://grapesjs/./src/dom_components/view/ComponentTextNodeView.ts","webpack://grapesjs/./src/dom_components/view/ComponentCommentView.ts","webpack://grapesjs/./src/dom_components/view/ComponentFrameView.ts","webpack://grapesjs/./src/dom_components/view/ComponentImageView.ts","webpack://grapesjs/./src/dom_components/view/ComponentTextView.ts","webpack://grapesjs/./src/dom_components/view/ComponentLinkView.ts","webpack://grapesjs/./src/dom_components/view/ComponentLabelView.ts","webpack://grapesjs/./src/dom_components/view/ComponentMapView.ts","webpack://grapesjs/./src/dom_components/view/ComponentScriptView.ts","webpack://grapesjs/./src/dom_components/view/ComponentSvgView.ts","webpack://grapesjs/./src/dom_components/view/ComponentTableBodyView.ts","webpack://grapesjs/./src/dom_components/view/ComponentTableCellView.ts","webpack://grapesjs/./src/dom_components/view/ComponentTableFootView.ts","webpack://grapesjs/./src/dom_components/view/ComponentTableHeadView.ts","webpack://grapesjs/./src/dom_components/view/ComponentTableRowView.ts","webpack://grapesjs/./src/dom_components/view/ComponentTableView.ts","webpack://grapesjs/./src/dom_components/view/ComponentVideoView.ts","webpack://grapesjs/./src/dom_components/view/ComponentWrapperView.ts","webpack://grapesjs/./src/dom_components/index.ts","webpack://grapesjs/./src/css_composer/config/config.ts","webpack://grapesjs/./src/code_manager/model/CssGenerator.ts","webpack://grapesjs/./src/css_composer/model/CssRule.ts","webpack://grapesjs/./src/css_composer/model/CssRules.ts","webpack://grapesjs/./src/css_composer/index.ts","webpack://grapesjs/./src/block_manager/config/config.ts","webpack://grapesjs/./src/block_manager/model/Block.ts","webpack://grapesjs/./src/block_manager/model/Blocks.ts","webpack://grapesjs/./src/block_manager/model/Category.ts","webpack://grapesjs/./src/block_manager/model/Categories.ts","webpack://grapesjs/./src/block_manager/types.ts","webpack://grapesjs/./src/block_manager/view/BlockView.ts","webpack://grapesjs/./src/block_manager/view/CategoryView.ts","webpack://grapesjs/./src/block_manager/view/BlocksView.ts","webpack://grapesjs/./src/block_manager/index.ts","webpack://grapesjs/./src/selector_manager/config/config.ts","webpack://grapesjs/./src/selector_manager/model/State.ts","webpack://grapesjs/./src/selector_manager/view/ClassTagView.ts","webpack://grapesjs/./src/selector_manager/view/ClassTagsView.ts","webpack://grapesjs/./src/selector_manager/index.ts","webpack://grapesjs/./src/parser/config/config.ts","webpack://grapesjs/./src/parser/model/BrowserParserCss.ts","webpack://grapesjs/./src/parser/model/ParserCss.ts","webpack://grapesjs/./src/parser/index.ts","webpack://grapesjs/./src/storage_manager/config/config.ts","webpack://grapesjs/./src/storage_manager/model/LocalStorage.ts","webpack://grapesjs/./node_modules/promise-polyfill/src/finally.js","webpack://grapesjs/./node_modules/promise-polyfill/src/allSettled.js","webpack://grapesjs/./node_modules/promise-polyfill/src/any.js","webpack://grapesjs/./node_modules/promise-polyfill/src/index.js","webpack://grapesjs/./src/utils/fetch.ts","webpack://grapesjs/./src/storage_manager/model/RemoteStorage.ts","webpack://grapesjs/./src/storage_manager/types.ts","webpack://grapesjs/./src/storage_manager/index.ts","webpack://grapesjs/./src/trait_manager/config/config.ts","webpack://grapesjs/./src/trait_manager/index.ts","webpack://grapesjs/./src/navigator/config/config.ts","webpack://grapesjs/./src/navigator/view/ItemsView.ts","webpack://grapesjs/./src/commands/config/config.ts","webpack://grapesjs/./src/commands/index.ts","webpack://grapesjs/./src/navigator/view/ItemView.ts","webpack://grapesjs/./src/navigator/index.ts","webpack://grapesjs/./src/asset_manager/config/config.ts","webpack://grapesjs/./src/asset_manager/model/Asset.ts","webpack://grapesjs/./src/asset_manager/model/AssetImage.ts","webpack://grapesjs/./src/asset_manager/view/AssetView.ts","webpack://grapesjs/./src/asset_manager/view/AssetImageView.ts","webpack://grapesjs/./src/domain_abstract/model/TypeableCollection.ts","webpack://grapesjs/./src/asset_manager/model/Assets.ts","webpack://grapesjs/./src/asset_manager/view/AssetsView.ts","webpack://grapesjs/./src/asset_manager/view/FileUploader.ts","webpack://grapesjs/./src/asset_manager/index.ts","webpack://grapesjs/./src/i18n/locale/en.js","webpack://grapesjs/./src/i18n/config.ts","webpack://grapesjs/./src/i18n/index.ts","webpack://grapesjs/./src/utils/Sorter.ts","webpack://grapesjs/./src/utils/Resizer.ts","webpack://grapesjs/./src/utils/index.ts","webpack://grapesjs/./src/utils/keymaster.ts","webpack://grapesjs/./src/keymaps/config.ts","webpack://grapesjs/./src/keymaps/index.ts","webpack://grapesjs/./src/modal_dialog/config/config.ts","webpack://grapesjs/./src/modal_dialog/model/Modal.ts","webpack://grapesjs/./src/modal_dialog/view/ModalView.ts","webpack://grapesjs/./src/modal_dialog/index.ts","webpack://grapesjs/./src/panels/config/config.ts","webpack://grapesjs/./src/panels/model/Button.ts","webpack://grapesjs/./src/panels/model/Buttons.ts","webpack://grapesjs/./src/panels/model/Panel.ts","webpack://grapesjs/./src/panels/model/Panels.ts","webpack://grapesjs/./src/panels/view/ButtonView.ts","webpack://grapesjs/./src/panels/view/ButtonsView.ts","webpack://grapesjs/./src/panels/view/PanelView.ts","webpack://grapesjs/./src/panels/view/PanelsView.ts","webpack://grapesjs/./src/panels/index.ts","webpack://grapesjs/./src/code_manager/config/config.ts","webpack://grapesjs/./src/code_manager/model/HtmlGenerator.ts","webpack://grapesjs/./src/code_manager/model/JsonGenerator.ts","webpack://grapesjs/./src/code_manager/model/JsGenerator.ts","webpack://grapesjs/./src/code_manager/view/EditorView.ts","webpack://grapesjs/./src/code_manager/index.ts","webpack://grapesjs/./src/undo_manager/config.ts","webpack://grapesjs/./src/undo_manager/index.ts","webpack://grapesjs/./src/rich_text_editor/config/config.ts","webpack://grapesjs/./src/rich_text_editor/model/RichTextEditor.ts","webpack://grapesjs/./src/rich_text_editor/index.ts","webpack://grapesjs/./src/style_manager/config/config.ts","webpack://grapesjs/./src/style_manager/model/Property.ts","webpack://grapesjs/./src/style_manager/model/Layer.ts","webpack://grapesjs/./src/style_manager/model/Layers.ts","webpack://grapesjs/./src/style_manager/model/PropertyComposite.ts","webpack://grapesjs/./src/style_manager/model/PropertyStack.ts","webpack://grapesjs/./src/style_manager/view/PropertyView.ts","webpack://grapesjs/./src/style_manager/view/PropertiesView.ts","webpack://grapesjs/./src/style_manager/view/PropertyCompositeView.ts","webpack://grapesjs/./src/style_manager/view/LayerView.ts","webpack://grapesjs/./src/style_manager/view/LayersView.ts","webpack://grapesjs/./src/style_manager/view/PropertyStackView.ts","webpack://grapesjs/./src/style_manager/view/PropertyFileView.ts","webpack://grapesjs/./src/style_manager/view/PropertyNumberView.ts","webpack://grapesjs/./src/domain_abstract/ui/Input.ts","webpack://grapesjs/./src/domain_abstract/ui/InputColor.ts","webpack://grapesjs/./src/style_manager/view/PropertyColorView.ts","webpack://grapesjs/./src/style_manager/model/PropertySelect.ts","webpack://grapesjs/./src/style_manager/view/PropertySelectView.ts","webpack://grapesjs/./src/style_manager/model/PropertyRadio.ts","webpack://grapesjs/./src/style_manager/view/PropertyRadioView.ts","webpack://grapesjs/./src/domain_abstract/ui/InputNumber.ts","webpack://grapesjs/./src/style_manager/model/PropertyNumber.ts","webpack://grapesjs/./src/style_manager/model/PropertySlider.ts","webpack://grapesjs/./src/style_manager/view/PropertySliderView.ts","webpack://grapesjs/./src/style_manager/model/Properties.ts","webpack://grapesjs/./src/style_manager/model/Sector.ts","webpack://grapesjs/./src/style_manager/model/Sectors.ts","webpack://grapesjs/./src/style_manager/model/PropertyFactory.ts","webpack://grapesjs/./src/style_manager/view/SectorView.ts","webpack://grapesjs/./src/style_manager/view/SectorsView.ts","webpack://grapesjs/./src/style_manager/index.ts","webpack://grapesjs/./src/editor/model/Editor.ts","webpack://grapesjs/./src/utils/extender.ts","webpack://grapesjs/./src/editor/view/EditorView.ts","webpack://grapesjs/./src/editor/index.ts","webpack://grapesjs/./src/plugin_manager/index.ts","webpack://grapesjs/./src/utils/polyfills.ts","webpack://grapesjs/./src/index.ts"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"grapesjs\"] = factory();\n\telse\n\t\troot[\"grapesjs\"] = factory();\n})(typeof globalThis !== 'undefined' ? globalThis : (typeof window !== 'undefined' ? window : this), () => {\nreturn ","/*jshint node:true */\n/* globals define */\n/*\n The MIT License (MIT)\n\n Copyright (c) 2007-2018 Einar Lielmanis, Liam Newman, and contributors.\n\n Permission is hereby granted, free of charge, to any person\n obtaining a copy of this software and associated documentation files\n (the \"Software\"), to deal in the Software without restriction,\n including without limitation the rights to use, copy, modify, merge,\n publish, distribute, sublicense, and/or sell copies of the Software,\n and to permit persons to whom the Software is furnished to do so,\n subject to the following conditions:\n\n The above copyright notice and this permission notice shall be\n included in all copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\n NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS\n BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN\n ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\n CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n*/\n\n'use strict';\n\n/**\nThe following batches are equivalent:\n\nvar beautify_js = require('js-beautify');\nvar beautify_js = require('js-beautify').js;\nvar beautify_js = require('js-beautify').js_beautify;\n\nvar beautify_css = require('js-beautify').css;\nvar beautify_css = require('js-beautify').css_beautify;\n\nvar beautify_html = require('js-beautify').html;\nvar beautify_html = require('js-beautify').html_beautify;\n\nAll methods returned accept two arguments, the source string and an options object.\n**/\n\nfunction get_beautify(js_beautify, css_beautify, html_beautify) {\n // the default is js\n var beautify = function(src, config) {\n return js_beautify.js_beautify(src, config);\n };\n\n // short aliases\n beautify.js = js_beautify.js_beautify;\n beautify.css = css_beautify.css_beautify;\n beautify.html = html_beautify.html_beautify;\n\n // legacy aliases\n beautify.js_beautify = js_beautify.js_beautify;\n beautify.css_beautify = css_beautify.css_beautify;\n beautify.html_beautify = html_beautify.html_beautify;\n\n return beautify;\n}\n\nif (typeof define === \"function\" && define.amd) {\n // Add support for AMD ( https://github.com/amdjs/amdjs-api/wiki/AMD#defineamd-property- )\n define([\n \"./lib/beautify\",\n \"./lib/beautify-css\",\n \"./lib/beautify-html\"\n ], function(js_beautify, css_beautify, html_beautify) {\n return get_beautify(js_beautify, css_beautify, html_beautify);\n });\n} else {\n (function(mod) {\n var beautifier = require('./src/index');\n beautifier.js_beautify = beautifier.js;\n beautifier.css_beautify = beautifier.css;\n beautifier.html_beautify = beautifier.html;\n\n mod.exports = get_beautify(beautifier, beautifier, beautifier);\n\n })(module);\n}","/* AUTO-GENERATED. DO NOT MODIFY. */\n/*\n\n The MIT License (MIT)\n\n Copyright (c) 2007-2018 Einar Lielmanis, Liam Newman, and contributors.\n\n Permission is hereby granted, free of charge, to any person\n obtaining a copy of this software and associated documentation files\n (the \"Software\"), to deal in the Software without restriction,\n including without limitation the rights to use, copy, modify, merge,\n publish, distribute, sublicense, and/or sell copies of the Software,\n and to permit persons to whom the Software is furnished to do so,\n subject to the following conditions:\n\n The above copyright notice and this permission notice shall be\n included in all copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\n NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS\n BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN\n ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\n CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n\n CSS Beautifier\n---------------\n\n Written by Harutyun Amirjanyan, (amirjanyan@gmail.com)\n\n Based on code initially developed by: Einar Lielmanis, \n https://beautifier.io/\n\n Usage:\n css_beautify(source_text);\n css_beautify(source_text, options);\n\n The options are (default in brackets):\n indent_size (4) — indentation size,\n indent_char (space) — character to indent with,\n selector_separator_newline (true) - separate selectors with newline or\n not (e.g. \"a,\\nbr\" or \"a, br\")\n end_with_newline (false) - end with a newline\n newline_between_rules (true) - add a new line after every css rule\n space_around_selector_separator (false) - ensure space around selector separators:\n '>', '+', '~' (e.g. \"a>b\" -> \"a > b\")\n e.g\n\n css_beautify(css_source_text, {\n 'indent_size': 1,\n 'indent_char': '\\t',\n 'selector_separator': ' ',\n 'end_with_newline': false,\n 'newline_between_rules': true,\n 'space_around_selector_separator': true\n });\n*/\n\n// http://www.w3.org/TR/CSS21/syndata.html#tokenization\n// http://www.w3.org/TR/css3-syntax/\n\n(function() {\n\n/* GENERATED_BUILD_OUTPUT */\nvar legacy_beautify_css;\n/******/ (function() { // webpackBootstrap\n/******/ \t\"use strict\";\n/******/ \tvar __webpack_modules__ = ([\n/* 0 */,\n/* 1 */,\n/* 2 */\n/***/ (function(module) {\n\n/*jshint node:true */\n/*\n The MIT License (MIT)\n\n Copyright (c) 2007-2018 Einar Lielmanis, Liam Newman, and contributors.\n\n Permission is hereby granted, free of charge, to any person\n obtaining a copy of this software and associated documentation files\n (the \"Software\"), to deal in the Software without restriction,\n including without limitation the rights to use, copy, modify, merge,\n publish, distribute, sublicense, and/or sell copies of the Software,\n and to permit persons to whom the Software is furnished to do so,\n subject to the following conditions:\n\n The above copyright notice and this permission notice shall be\n included in all copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\n NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS\n BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN\n ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\n CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n*/\n\n\n\nfunction OutputLine(parent) {\n this.__parent = parent;\n this.__character_count = 0;\n // use indent_count as a marker for this.__lines that have preserved indentation\n this.__indent_count = -1;\n this.__alignment_count = 0;\n this.__wrap_point_index = 0;\n this.__wrap_point_character_count = 0;\n this.__wrap_point_indent_count = -1;\n this.__wrap_point_alignment_count = 0;\n\n this.__items = [];\n}\n\nOutputLine.prototype.clone_empty = function() {\n var line = new OutputLine(this.__parent);\n line.set_indent(this.__indent_count, this.__alignment_count);\n return line;\n};\n\nOutputLine.prototype.item = function(index) {\n if (index < 0) {\n return this.__items[this.__items.length + index];\n } else {\n return this.__items[index];\n }\n};\n\nOutputLine.prototype.has_match = function(pattern) {\n for (var lastCheckedOutput = this.__items.length - 1; lastCheckedOutput >= 0; lastCheckedOutput--) {\n if (this.__items[lastCheckedOutput].match(pattern)) {\n return true;\n }\n }\n return false;\n};\n\nOutputLine.prototype.set_indent = function(indent, alignment) {\n if (this.is_empty()) {\n this.__indent_count = indent || 0;\n this.__alignment_count = alignment || 0;\n this.__character_count = this.__parent.get_indent_size(this.__indent_count, this.__alignment_count);\n }\n};\n\nOutputLine.prototype._set_wrap_point = function() {\n if (this.__parent.wrap_line_length) {\n this.__wrap_point_index = this.__items.length;\n this.__wrap_point_character_count = this.__character_count;\n this.__wrap_point_indent_count = this.__parent.next_line.__indent_count;\n this.__wrap_point_alignment_count = this.__parent.next_line.__alignment_count;\n }\n};\n\nOutputLine.prototype._should_wrap = function() {\n return this.__wrap_point_index &&\n this.__character_count > this.__parent.wrap_line_length &&\n this.__wrap_point_character_count > this.__parent.next_line.__character_count;\n};\n\nOutputLine.prototype._allow_wrap = function() {\n if (this._should_wrap()) {\n this.__parent.add_new_line();\n var next = this.__parent.current_line;\n next.set_indent(this.__wrap_point_indent_count, this.__wrap_point_alignment_count);\n next.__items = this.__items.slice(this.__wrap_point_index);\n this.__items = this.__items.slice(0, this.__wrap_point_index);\n\n next.__character_count += this.__character_count - this.__wrap_point_character_count;\n this.__character_count = this.__wrap_point_character_count;\n\n if (next.__items[0] === \" \") {\n next.__items.splice(0, 1);\n next.__character_count -= 1;\n }\n return true;\n }\n return false;\n};\n\nOutputLine.prototype.is_empty = function() {\n return this.__items.length === 0;\n};\n\nOutputLine.prototype.last = function() {\n if (!this.is_empty()) {\n return this.__items[this.__items.length - 1];\n } else {\n return null;\n }\n};\n\nOutputLine.prototype.push = function(item) {\n this.__items.push(item);\n var last_newline_index = item.lastIndexOf('\\n');\n if (last_newline_index !== -1) {\n this.__character_count = item.length - last_newline_index;\n } else {\n this.__character_count += item.length;\n }\n};\n\nOutputLine.prototype.pop = function() {\n var item = null;\n if (!this.is_empty()) {\n item = this.__items.pop();\n this.__character_count -= item.length;\n }\n return item;\n};\n\n\nOutputLine.prototype._remove_indent = function() {\n if (this.__indent_count > 0) {\n this.__indent_count -= 1;\n this.__character_count -= this.__parent.indent_size;\n }\n};\n\nOutputLine.prototype._remove_wrap_indent = function() {\n if (this.__wrap_point_indent_count > 0) {\n this.__wrap_point_indent_count -= 1;\n }\n};\nOutputLine.prototype.trim = function() {\n while (this.last() === ' ') {\n this.__items.pop();\n this.__character_count -= 1;\n }\n};\n\nOutputLine.prototype.toString = function() {\n var result = '';\n if (this.is_empty()) {\n if (this.__parent.indent_empty_lines) {\n result = this.__parent.get_indent_string(this.__indent_count);\n }\n } else {\n result = this.__parent.get_indent_string(this.__indent_count, this.__alignment_count);\n result += this.__items.join('');\n }\n return result;\n};\n\nfunction IndentStringCache(options, baseIndentString) {\n this.__cache = [''];\n this.__indent_size = options.indent_size;\n this.__indent_string = options.indent_char;\n if (!options.indent_with_tabs) {\n this.__indent_string = new Array(options.indent_size + 1).join(options.indent_char);\n }\n\n // Set to null to continue support for auto detection of base indent\n baseIndentString = baseIndentString || '';\n if (options.indent_level > 0) {\n baseIndentString = new Array(options.indent_level + 1).join(this.__indent_string);\n }\n\n this.__base_string = baseIndentString;\n this.__base_string_length = baseIndentString.length;\n}\n\nIndentStringCache.prototype.get_indent_size = function(indent, column) {\n var result = this.__base_string_length;\n column = column || 0;\n if (indent < 0) {\n result = 0;\n }\n result += indent * this.__indent_size;\n result += column;\n return result;\n};\n\nIndentStringCache.prototype.get_indent_string = function(indent_level, column) {\n var result = this.__base_string;\n column = column || 0;\n if (indent_level < 0) {\n indent_level = 0;\n result = '';\n }\n column += indent_level * this.__indent_size;\n this.__ensure_cache(column);\n result += this.__cache[column];\n return result;\n};\n\nIndentStringCache.prototype.__ensure_cache = function(column) {\n while (column >= this.__cache.length) {\n this.__add_column();\n }\n};\n\nIndentStringCache.prototype.__add_column = function() {\n var column = this.__cache.length;\n var indent = 0;\n var result = '';\n if (this.__indent_size && column >= this.__indent_size) {\n indent = Math.floor(column / this.__indent_size);\n column -= indent * this.__indent_size;\n result = new Array(indent + 1).join(this.__indent_string);\n }\n if (column) {\n result += new Array(column + 1).join(' ');\n }\n\n this.__cache.push(result);\n};\n\nfunction Output(options, baseIndentString) {\n this.__indent_cache = new IndentStringCache(options, baseIndentString);\n this.raw = false;\n this._end_with_newline = options.end_with_newline;\n this.indent_size = options.indent_size;\n this.wrap_line_length = options.wrap_line_length;\n this.indent_empty_lines = options.indent_empty_lines;\n this.__lines = [];\n this.previous_line = null;\n this.current_line = null;\n this.next_line = new OutputLine(this);\n this.space_before_token = false;\n this.non_breaking_space = false;\n this.previous_token_wrapped = false;\n // initialize\n this.__add_outputline();\n}\n\nOutput.prototype.__add_outputline = function() {\n this.previous_line = this.current_line;\n this.current_line = this.next_line.clone_empty();\n this.__lines.push(this.current_line);\n};\n\nOutput.prototype.get_line_number = function() {\n return this.__lines.length;\n};\n\nOutput.prototype.get_indent_string = function(indent, column) {\n return this.__indent_cache.get_indent_string(indent, column);\n};\n\nOutput.prototype.get_indent_size = function(indent, column) {\n return this.__indent_cache.get_indent_size(indent, column);\n};\n\nOutput.prototype.is_empty = function() {\n return !this.previous_line && this.current_line.is_empty();\n};\n\nOutput.prototype.add_new_line = function(force_newline) {\n // never newline at the start of file\n // otherwise, newline only if we didn't just add one or we're forced\n if (this.is_empty() ||\n (!force_newline && this.just_added_newline())) {\n return false;\n }\n\n // if raw output is enabled, don't print additional newlines,\n // but still return True as though you had\n if (!this.raw) {\n this.__add_outputline();\n }\n return true;\n};\n\nOutput.prototype.get_code = function(eol) {\n this.trim(true);\n\n // handle some edge cases where the last tokens\n // has text that ends with newline(s)\n var last_item = this.current_line.pop();\n if (last_item) {\n if (last_item[last_item.length - 1] === '\\n') {\n last_item = last_item.replace(/\\n+$/g, '');\n }\n this.current_line.push(last_item);\n }\n\n if (this._end_with_newline) {\n this.__add_outputline();\n }\n\n var sweet_code = this.__lines.join('\\n');\n\n if (eol !== '\\n') {\n sweet_code = sweet_code.replace(/[\\n]/g, eol);\n }\n return sweet_code;\n};\n\nOutput.prototype.set_wrap_point = function() {\n this.current_line._set_wrap_point();\n};\n\nOutput.prototype.set_indent = function(indent, alignment) {\n indent = indent || 0;\n alignment = alignment || 0;\n\n // Next line stores alignment values\n this.next_line.set_indent(indent, alignment);\n\n // Never indent your first output indent at the start of the file\n if (this.__lines.length > 1) {\n this.current_line.set_indent(indent, alignment);\n return true;\n }\n\n this.current_line.set_indent();\n return false;\n};\n\nOutput.prototype.add_raw_token = function(token) {\n for (var x = 0; x < token.newlines; x++) {\n this.__add_outputline();\n }\n this.current_line.set_indent(-1);\n this.current_line.push(token.whitespace_before);\n this.current_line.push(token.text);\n this.space_before_token = false;\n this.non_breaking_space = false;\n this.previous_token_wrapped = false;\n};\n\nOutput.prototype.add_token = function(printable_token) {\n this.__add_space_before_token();\n this.current_line.push(printable_token);\n this.space_before_token = false;\n this.non_breaking_space = false;\n this.previous_token_wrapped = this.current_line._allow_wrap();\n};\n\nOutput.prototype.__add_space_before_token = function() {\n if (this.space_before_token && !this.just_added_newline()) {\n if (!this.non_breaking_space) {\n this.set_wrap_point();\n }\n this.current_line.push(' ');\n }\n};\n\nOutput.prototype.remove_indent = function(index) {\n var output_length = this.__lines.length;\n while (index < output_length) {\n this.__lines[index]._remove_indent();\n index++;\n }\n this.current_line._remove_wrap_indent();\n};\n\nOutput.prototype.trim = function(eat_newlines) {\n eat_newlines = (eat_newlines === undefined) ? false : eat_newlines;\n\n this.current_line.trim();\n\n while (eat_newlines && this.__lines.length > 1 &&\n this.current_line.is_empty()) {\n this.__lines.pop();\n this.current_line = this.__lines[this.__lines.length - 1];\n this.current_line.trim();\n }\n\n this.previous_line = this.__lines.length > 1 ?\n this.__lines[this.__lines.length - 2] : null;\n};\n\nOutput.prototype.just_added_newline = function() {\n return this.current_line.is_empty();\n};\n\nOutput.prototype.just_added_blankline = function() {\n return this.is_empty() ||\n (this.current_line.is_empty() && this.previous_line.is_empty());\n};\n\nOutput.prototype.ensure_empty_line_above = function(starts_with, ends_with) {\n var index = this.__lines.length - 2;\n while (index >= 0) {\n var potentialEmptyLine = this.__lines[index];\n if (potentialEmptyLine.is_empty()) {\n break;\n } else if (potentialEmptyLine.item(0).indexOf(starts_with) !== 0 &&\n potentialEmptyLine.item(-1) !== ends_with) {\n this.__lines.splice(index + 1, 0, new OutputLine(this));\n this.previous_line = this.__lines[this.__lines.length - 2];\n break;\n }\n index--;\n }\n};\n\nmodule.exports.Output = Output;\n\n\n/***/ }),\n/* 3 */,\n/* 4 */,\n/* 5 */,\n/* 6 */\n/***/ (function(module) {\n\n/*jshint node:true */\n/*\n\n The MIT License (MIT)\n\n Copyright (c) 2007-2018 Einar Lielmanis, Liam Newman, and contributors.\n\n Permission is hereby granted, free of charge, to any person\n obtaining a copy of this software and associated documentation files\n (the \"Software\"), to deal in the Software without restriction,\n including without limitation the rights to use, copy, modify, merge,\n publish, distribute, sublicense, and/or sell copies of the Software,\n and to permit persons to whom the Software is furnished to do so,\n subject to the following conditions:\n\n The above copyright notice and this permission notice shall be\n included in all copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\n NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS\n BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN\n ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\n CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n*/\n\n\n\nfunction Options(options, merge_child_field) {\n this.raw_options = _mergeOpts(options, merge_child_field);\n\n // Support passing the source text back with no change\n this.disabled = this._get_boolean('disabled');\n\n this.eol = this._get_characters('eol', 'auto');\n this.end_with_newline = this._get_boolean('end_with_newline');\n this.indent_size = this._get_number('indent_size', 4);\n this.indent_char = this._get_characters('indent_char', ' ');\n this.indent_level = this._get_number('indent_level');\n\n this.preserve_newlines = this._get_boolean('preserve_newlines', true);\n this.max_preserve_newlines = this._get_number('max_preserve_newlines', 32786);\n if (!this.preserve_newlines) {\n this.max_preserve_newlines = 0;\n }\n\n this.indent_with_tabs = this._get_boolean('indent_with_tabs', this.indent_char === '\\t');\n if (this.indent_with_tabs) {\n this.indent_char = '\\t';\n\n // indent_size behavior changed after 1.8.6\n // It used to be that indent_size would be\n // set to 1 for indent_with_tabs. That is no longer needed and\n // actually doesn't make sense - why not use spaces? Further,\n // that might produce unexpected behavior - tabs being used\n // for single-column alignment. So, when indent_with_tabs is true\n // and indent_size is 1, reset indent_size to 4.\n if (this.indent_size === 1) {\n this.indent_size = 4;\n }\n }\n\n // Backwards compat with 1.3.x\n this.wrap_line_length = this._get_number('wrap_line_length', this._get_number('max_char'));\n\n this.indent_empty_lines = this._get_boolean('indent_empty_lines');\n\n // valid templating languages ['django', 'erb', 'handlebars', 'php', 'smarty']\n // For now, 'auto' = all off for javascript, all on for html (and inline javascript).\n // other values ignored\n this.templating = this._get_selection_list('templating', ['auto', 'none', 'django', 'erb', 'handlebars', 'php', 'smarty'], ['auto']);\n}\n\nOptions.prototype._get_array = function(name, default_value) {\n var option_value = this.raw_options[name];\n var result = default_value || [];\n if (typeof option_value === 'object') {\n if (option_value !== null && typeof option_value.concat === 'function') {\n result = option_value.concat();\n }\n } else if (typeof option_value === 'string') {\n result = option_value.split(/[^a-zA-Z0-9_\\/\\-]+/);\n }\n return result;\n};\n\nOptions.prototype._get_boolean = function(name, default_value) {\n var option_value = this.raw_options[name];\n var result = option_value === undefined ? !!default_value : !!option_value;\n return result;\n};\n\nOptions.prototype._get_characters = function(name, default_value) {\n var option_value = this.raw_options[name];\n var result = default_value || '';\n if (typeof option_value === 'string') {\n result = option_value.replace(/\\\\r/, '\\r').replace(/\\\\n/, '\\n').replace(/\\\\t/, '\\t');\n }\n return result;\n};\n\nOptions.prototype._get_number = function(name, default_value) {\n var option_value = this.raw_options[name];\n default_value = parseInt(default_value, 10);\n if (isNaN(default_value)) {\n default_value = 0;\n }\n var result = parseInt(option_value, 10);\n if (isNaN(result)) {\n result = default_value;\n }\n return result;\n};\n\nOptions.prototype._get_selection = function(name, selection_list, default_value) {\n var result = this._get_selection_list(name, selection_list, default_value);\n if (result.length !== 1) {\n throw new Error(\n \"Invalid Option Value: The option '\" + name + \"' can only be one of the following values:\\n\" +\n selection_list + \"\\nYou passed in: '\" + this.raw_options[name] + \"'\");\n }\n\n return result[0];\n};\n\n\nOptions.prototype._get_selection_list = function(name, selection_list, default_value) {\n if (!selection_list || selection_list.length === 0) {\n throw new Error(\"Selection list cannot be empty.\");\n }\n\n default_value = default_value || [selection_list[0]];\n if (!this._is_valid_selection(default_value, selection_list)) {\n throw new Error(\"Invalid Default Value!\");\n }\n\n var result = this._get_array(name, default_value);\n if (!this._is_valid_selection(result, selection_list)) {\n throw new Error(\n \"Invalid Option Value: The option '\" + name + \"' can contain only the following values:\\n\" +\n selection_list + \"\\nYou passed in: '\" + this.raw_options[name] + \"'\");\n }\n\n return result;\n};\n\nOptions.prototype._is_valid_selection = function(result, selection_list) {\n return result.length && selection_list.length &&\n !result.some(function(item) { return selection_list.indexOf(item) === -1; });\n};\n\n\n// merges child options up with the parent options object\n// Example: obj = {a: 1, b: {a: 2}}\n// mergeOpts(obj, 'b')\n//\n// Returns: {a: 2}\nfunction _mergeOpts(allOptions, childFieldName) {\n var finalOpts = {};\n allOptions = _normalizeOpts(allOptions);\n var name;\n\n for (name in allOptions) {\n if (name !== childFieldName) {\n finalOpts[name] = allOptions[name];\n }\n }\n\n //merge in the per type settings for the childFieldName\n if (childFieldName && allOptions[childFieldName]) {\n for (name in allOptions[childFieldName]) {\n finalOpts[name] = allOptions[childFieldName][name];\n }\n }\n return finalOpts;\n}\n\nfunction _normalizeOpts(options) {\n var convertedOpts = {};\n var key;\n\n for (key in options) {\n var newKey = key.replace(/-/g, \"_\");\n convertedOpts[newKey] = options[key];\n }\n return convertedOpts;\n}\n\nmodule.exports.Options = Options;\nmodule.exports.normalizeOpts = _normalizeOpts;\nmodule.exports.mergeOpts = _mergeOpts;\n\n\n/***/ }),\n/* 7 */,\n/* 8 */\n/***/ (function(module) {\n\n/*jshint node:true */\n/*\n\n The MIT License (MIT)\n\n Copyright (c) 2007-2018 Einar Lielmanis, Liam Newman, and contributors.\n\n Permission is hereby granted, free of charge, to any person\n obtaining a copy of this software and associated documentation files\n (the \"Software\"), to deal in the Software without restriction,\n including without limitation the rights to use, copy, modify, merge,\n publish, distribute, sublicense, and/or sell copies of the Software,\n and to permit persons to whom the Software is furnished to do so,\n subject to the following conditions:\n\n The above copyright notice and this permission notice shall be\n included in all copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\n NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS\n BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN\n ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\n CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n*/\n\n\n\nvar regexp_has_sticky = RegExp.prototype.hasOwnProperty('sticky');\n\nfunction InputScanner(input_string) {\n this.__input = input_string || '';\n this.__input_length = this.__input.length;\n this.__position = 0;\n}\n\nInputScanner.prototype.restart = function() {\n this.__position = 0;\n};\n\nInputScanner.prototype.back = function() {\n if (this.__position > 0) {\n this.__position -= 1;\n }\n};\n\nInputScanner.prototype.hasNext = function() {\n return this.__position < this.__input_length;\n};\n\nInputScanner.prototype.next = function() {\n var val = null;\n if (this.hasNext()) {\n val = this.__input.charAt(this.__position);\n this.__position += 1;\n }\n return val;\n};\n\nInputScanner.prototype.peek = function(index) {\n var val = null;\n index = index || 0;\n index += this.__position;\n if (index >= 0 && index < this.__input_length) {\n val = this.__input.charAt(index);\n }\n return val;\n};\n\n// This is a JavaScript only helper function (not in python)\n// Javascript doesn't have a match method\n// and not all implementation support \"sticky\" flag.\n// If they do not support sticky then both this.match() and this.test() method\n// must get the match and check the index of the match.\n// If sticky is supported and set, this method will use it.\n// Otherwise it will check that global is set, and fall back to the slower method.\nInputScanner.prototype.__match = function(pattern, index) {\n pattern.lastIndex = index;\n var pattern_match = pattern.exec(this.__input);\n\n if (pattern_match && !(regexp_has_sticky && pattern.sticky)) {\n if (pattern_match.index !== index) {\n pattern_match = null;\n }\n }\n\n return pattern_match;\n};\n\nInputScanner.prototype.test = function(pattern, index) {\n index = index || 0;\n index += this.__position;\n\n if (index >= 0 && index < this.__input_length) {\n return !!this.__match(pattern, index);\n } else {\n return false;\n }\n};\n\nInputScanner.prototype.testChar = function(pattern, index) {\n // test one character regex match\n var val = this.peek(index);\n pattern.lastIndex = 0;\n return val !== null && pattern.test(val);\n};\n\nInputScanner.prototype.match = function(pattern) {\n var pattern_match = this.__match(pattern, this.__position);\n if (pattern_match) {\n this.__position += pattern_match[0].length;\n } else {\n pattern_match = null;\n }\n return pattern_match;\n};\n\nInputScanner.prototype.read = function(starting_pattern, until_pattern, until_after) {\n var val = '';\n var match;\n if (starting_pattern) {\n match = this.match(starting_pattern);\n if (match) {\n val += match[0];\n }\n }\n if (until_pattern && (match || !starting_pattern)) {\n val += this.readUntil(until_pattern, until_after);\n }\n return val;\n};\n\nInputScanner.prototype.readUntil = function(pattern, until_after) {\n var val = '';\n var match_index = this.__position;\n pattern.lastIndex = this.__position;\n var pattern_match = pattern.exec(this.__input);\n if (pattern_match) {\n match_index = pattern_match.index;\n if (until_after) {\n match_index += pattern_match[0].length;\n }\n } else {\n match_index = this.__input_length;\n }\n\n val = this.__input.substring(this.__position, match_index);\n this.__position = match_index;\n return val;\n};\n\nInputScanner.prototype.readUntilAfter = function(pattern) {\n return this.readUntil(pattern, true);\n};\n\nInputScanner.prototype.get_regexp = function(pattern, match_from) {\n var result = null;\n var flags = 'g';\n if (match_from && regexp_has_sticky) {\n flags = 'y';\n }\n // strings are converted to regexp\n if (typeof pattern === \"string\" && pattern !== '') {\n // result = new RegExp(pattern.replace(/[-\\/\\\\^$*+?.()|[\\]{}]/g, '\\\\$&'), flags);\n result = new RegExp(pattern, flags);\n } else if (pattern) {\n result = new RegExp(pattern.source, flags);\n }\n return result;\n};\n\nInputScanner.prototype.get_literal_regexp = function(literal_string) {\n return RegExp(literal_string.replace(/[-\\/\\\\^$*+?.()|[\\]{}]/g, '\\\\$&'));\n};\n\n/* css beautifier legacy helpers */\nInputScanner.prototype.peekUntilAfter = function(pattern) {\n var start = this.__position;\n var val = this.readUntilAfter(pattern);\n this.__position = start;\n return val;\n};\n\nInputScanner.prototype.lookBack = function(testVal) {\n var start = this.__position - 1;\n return start >= testVal.length && this.__input.substring(start - testVal.length, start)\n .toLowerCase() === testVal;\n};\n\nmodule.exports.InputScanner = InputScanner;\n\n\n/***/ }),\n/* 9 */,\n/* 10 */,\n/* 11 */,\n/* 12 */,\n/* 13 */\n/***/ (function(module) {\n\n/*jshint node:true */\n/*\n\n The MIT License (MIT)\n\n Copyright (c) 2007-2018 Einar Lielmanis, Liam Newman, and contributors.\n\n Permission is hereby granted, free of charge, to any person\n obtaining a copy of this software and associated documentation files\n (the \"Software\"), to deal in the Software without restriction,\n including without limitation the rights to use, copy, modify, merge,\n publish, distribute, sublicense, and/or sell copies of the Software,\n and to permit persons to whom the Software is furnished to do so,\n subject to the following conditions:\n\n The above copyright notice and this permission notice shall be\n included in all copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\n NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS\n BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN\n ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\n CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n*/\n\n\n\nfunction Directives(start_block_pattern, end_block_pattern) {\n start_block_pattern = typeof start_block_pattern === 'string' ? start_block_pattern : start_block_pattern.source;\n end_block_pattern = typeof end_block_pattern === 'string' ? end_block_pattern : end_block_pattern.source;\n this.__directives_block_pattern = new RegExp(start_block_pattern + / beautify( \\w+[:]\\w+)+ /.source + end_block_pattern, 'g');\n this.__directive_pattern = / (\\w+)[:](\\w+)/g;\n\n this.__directives_end_ignore_pattern = new RegExp(start_block_pattern + /\\sbeautify\\signore:end\\s/.source + end_block_pattern, 'g');\n}\n\nDirectives.prototype.get_directives = function(text) {\n if (!text.match(this.__directives_block_pattern)) {\n return null;\n }\n\n var directives = {};\n this.__directive_pattern.lastIndex = 0;\n var directive_match = this.__directive_pattern.exec(text);\n\n while (directive_match) {\n directives[directive_match[1]] = directive_match[2];\n directive_match = this.__directive_pattern.exec(text);\n }\n\n return directives;\n};\n\nDirectives.prototype.readIgnored = function(input) {\n return input.readUntilAfter(this.__directives_end_ignore_pattern);\n};\n\n\nmodule.exports.Directives = Directives;\n\n\n/***/ }),\n/* 14 */,\n/* 15 */\n/***/ (function(module, __unused_webpack_exports, __webpack_require__) {\n\n/*jshint node:true */\n/*\n\n The MIT License (MIT)\n\n Copyright (c) 2007-2018 Einar Lielmanis, Liam Newman, and contributors.\n\n Permission is hereby granted, free of charge, to any person\n obtaining a copy of this software and associated documentation files\n (the \"Software\"), to deal in the Software without restriction,\n including without limitation the rights to use, copy, modify, merge,\n publish, distribute, sublicense, and/or sell copies of the Software,\n and to permit persons to whom the Software is furnished to do so,\n subject to the following conditions:\n\n The above copyright notice and this permission notice shall be\n included in all copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\n NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS\n BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN\n ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\n CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n*/\n\n\n\nvar Beautifier = (__webpack_require__(16).Beautifier),\n Options = (__webpack_require__(17).Options);\n\nfunction css_beautify(source_text, options) {\n var beautifier = new Beautifier(source_text, options);\n return beautifier.beautify();\n}\n\nmodule.exports = css_beautify;\nmodule.exports.defaultOptions = function() {\n return new Options();\n};\n\n\n/***/ }),\n/* 16 */\n/***/ (function(module, __unused_webpack_exports, __webpack_require__) {\n\n/*jshint node:true */\n/*\n\n The MIT License (MIT)\n\n Copyright (c) 2007-2018 Einar Lielmanis, Liam Newman, and contributors.\n\n Permission is hereby granted, free of charge, to any person\n obtaining a copy of this software and associated documentation files\n (the \"Software\"), to deal in the Software without restriction,\n including without limitation the rights to use, copy, modify, merge,\n publish, distribute, sublicense, and/or sell copies of the Software,\n and to permit persons to whom the Software is furnished to do so,\n subject to the following conditions:\n\n The above copyright notice and this permission notice shall be\n included in all copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\n NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS\n BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN\n ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\n CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n*/\n\n\n\nvar Options = (__webpack_require__(17).Options);\nvar Output = (__webpack_require__(2).Output);\nvar InputScanner = (__webpack_require__(8).InputScanner);\nvar Directives = (__webpack_require__(13).Directives);\n\nvar directives_core = new Directives(/\\/\\*/, /\\*\\//);\n\nvar lineBreak = /\\r\\n|[\\r\\n]/;\nvar allLineBreaks = /\\r\\n|[\\r\\n]/g;\n\n// tokenizer\nvar whitespaceChar = /\\s/;\nvar whitespacePattern = /(?:\\s|\\n)+/g;\nvar block_comment_pattern = /\\/\\*(?:[\\s\\S]*?)((?:\\*\\/)|$)/g;\nvar comment_pattern = /\\/\\/(?:[^\\n\\r\\u2028\\u2029]*)/g;\n\nfunction Beautifier(source_text, options) {\n this._source_text = source_text || '';\n // Allow the setting of language/file-type specific options\n // with inheritance of overall settings\n this._options = new Options(options);\n this._ch = null;\n this._input = null;\n\n // https://developer.mozilla.org/en-US/docs/Web/CSS/At-rule\n this.NESTED_AT_RULE = {\n \"page\": true,\n \"font-face\": true,\n \"keyframes\": true,\n // also in CONDITIONAL_GROUP_RULE below\n \"media\": true,\n \"supports\": true,\n \"document\": true\n };\n this.CONDITIONAL_GROUP_RULE = {\n \"media\": true,\n \"supports\": true,\n \"document\": true\n };\n this.NON_SEMICOLON_NEWLINE_PROPERTY = [\n \"grid-template-areas\",\n \"grid-template\"\n ];\n\n}\n\nBeautifier.prototype.eatString = function(endChars) {\n var result = '';\n this._ch = this._input.next();\n while (this._ch) {\n result += this._ch;\n if (this._ch === \"\\\\\") {\n result += this._input.next();\n } else if (endChars.indexOf(this._ch) !== -1 || this._ch === \"\\n\") {\n break;\n }\n this._ch = this._input.next();\n }\n return result;\n};\n\n// Skips any white space in the source text from the current position.\n// When allowAtLeastOneNewLine is true, will output new lines for each\n// newline character found; if the user has preserve_newlines off, only\n// the first newline will be output\nBeautifier.prototype.eatWhitespace = function(allowAtLeastOneNewLine) {\n var result = whitespaceChar.test(this._input.peek());\n var newline_count = 0;\n while (whitespaceChar.test(this._input.peek())) {\n this._ch = this._input.next();\n if (allowAtLeastOneNewLine && this._ch === '\\n') {\n if (newline_count === 0 || newline_count < this._options.max_preserve_newlines) {\n newline_count++;\n this._output.add_new_line(true);\n }\n }\n }\n return result;\n};\n\n// Nested pseudo-class if we are insideRule\n// and the next special character found opens\n// a new block\nBeautifier.prototype.foundNestedPseudoClass = function() {\n var openParen = 0;\n var i = 1;\n var ch = this._input.peek(i);\n while (ch) {\n if (ch === \"{\") {\n return true;\n } else if (ch === '(') {\n // pseudoclasses can contain ()\n openParen += 1;\n } else if (ch === ')') {\n if (openParen === 0) {\n return false;\n }\n openParen -= 1;\n } else if (ch === \";\" || ch === \"}\") {\n return false;\n }\n i++;\n ch = this._input.peek(i);\n }\n return false;\n};\n\nBeautifier.prototype.print_string = function(output_string) {\n this._output.set_indent(this._indentLevel);\n this._output.non_breaking_space = true;\n this._output.add_token(output_string);\n};\n\nBeautifier.prototype.preserveSingleSpace = function(isAfterSpace) {\n if (isAfterSpace) {\n this._output.space_before_token = true;\n }\n};\n\nBeautifier.prototype.indent = function() {\n this._indentLevel++;\n};\n\nBeautifier.prototype.outdent = function() {\n if (this._indentLevel > 0) {\n this._indentLevel--;\n }\n};\n\n/*_____________________--------------------_____________________*/\n\nBeautifier.prototype.beautify = function() {\n if (this._options.disabled) {\n return this._source_text;\n }\n\n var source_text = this._source_text;\n var eol = this._options.eol;\n if (eol === 'auto') {\n eol = '\\n';\n if (source_text && lineBreak.test(source_text || '')) {\n eol = source_text.match(lineBreak)[0];\n }\n }\n\n\n // HACK: newline parsing inconsistent. This brute force normalizes the this._input.\n source_text = source_text.replace(allLineBreaks, '\\n');\n\n // reset\n var baseIndentString = source_text.match(/^[\\t ]*/)[0];\n\n this._output = new Output(this._options, baseIndentString);\n this._input = new InputScanner(source_text);\n this._indentLevel = 0;\n this._nestedLevel = 0;\n\n this._ch = null;\n var parenLevel = 0;\n\n var insideRule = false;\n // This is the value side of a property value pair (blue in the following ex)\n // label { content: blue }\n var insidePropertyValue = false;\n var enteringConditionalGroup = false;\n var insideNonNestedAtRule = false;\n var insideScssMap = false;\n var topCharacter = this._ch;\n var insideNonSemiColonValues = false;\n var whitespace;\n var isAfterSpace;\n var previous_ch;\n\n while (true) {\n whitespace = this._input.read(whitespacePattern);\n isAfterSpace = whitespace !== '';\n previous_ch = topCharacter;\n this._ch = this._input.next();\n if (this._ch === '\\\\' && this._input.hasNext()) {\n this._ch += this._input.next();\n }\n topCharacter = this._ch;\n\n if (!this._ch) {\n break;\n } else if (this._ch === '/' && this._input.peek() === '*') {\n // /* css comment */\n // Always start block comments on a new line.\n // This handles scenarios where a block comment immediately\n // follows a property definition on the same line or where\n // minified code is being beautified.\n this._output.add_new_line();\n this._input.back();\n\n var comment = this._input.read(block_comment_pattern);\n\n // Handle ignore directive\n var directives = directives_core.get_directives(comment);\n if (directives && directives.ignore === 'start') {\n comment += directives_core.readIgnored(this._input);\n }\n\n this.print_string(comment);\n\n // Ensures any new lines following the comment are preserved\n this.eatWhitespace(true);\n\n // Block comments are followed by a new line so they don't\n // share a line with other properties\n this._output.add_new_line();\n } else if (this._ch === '/' && this._input.peek() === '/') {\n // // single line comment\n // Preserves the space before a comment\n // on the same line as a rule\n this._output.space_before_token = true;\n this._input.back();\n this.print_string(this._input.read(comment_pattern));\n\n // Ensures any new lines following the comment are preserved\n this.eatWhitespace(true);\n } else if (this._ch === '$') {\n this.preserveSingleSpace(isAfterSpace);\n\n this.print_string(this._ch);\n\n // strip trailing space, if present, for hash property checks\n var variable = this._input.peekUntilAfter(/[: ,;{}()[\\]\\/='\"]/g);\n\n if (variable.match(/[ :]$/)) {\n // we have a variable or pseudo-class, add it and insert one space before continuing\n variable = this.eatString(\": \").replace(/\\s+$/, '');\n this.print_string(variable);\n this._output.space_before_token = true;\n }\n\n // might be sass variable\n if (parenLevel === 0 && variable.indexOf(':') !== -1) {\n insidePropertyValue = true;\n this.indent();\n }\n } else if (this._ch === '@') {\n this.preserveSingleSpace(isAfterSpace);\n\n // deal with less property mixins @{...}\n if (this._input.peek() === '{') {\n this.print_string(this._ch + this.eatString('}'));\n } else {\n this.print_string(this._ch);\n\n // strip trailing space, if present, for hash property checks\n var variableOrRule = this._input.peekUntilAfter(/[: ,;{}()[\\]\\/='\"]/g);\n\n if (variableOrRule.match(/[ :]$/)) {\n // we have a variable or pseudo-class, add it and insert one space before continuing\n variableOrRule = this.eatString(\": \").replace(/\\s+$/, '');\n this.print_string(variableOrRule);\n this._output.space_before_token = true;\n }\n\n // might be less variable\n if (parenLevel === 0 && variableOrRule.indexOf(':') !== -1) {\n insidePropertyValue = true;\n this.indent();\n\n // might be a nesting at-rule\n } else if (variableOrRule in this.NESTED_AT_RULE) {\n this._nestedLevel += 1;\n if (variableOrRule in this.CONDITIONAL_GROUP_RULE) {\n enteringConditionalGroup = true;\n }\n\n // might be a non-nested at-rule\n } else if (parenLevel === 0 && !insidePropertyValue) {\n insideNonNestedAtRule = true;\n }\n }\n } else if (this._ch === '#' && this._input.peek() === '{') {\n this.preserveSingleSpace(isAfterSpace);\n this.print_string(this._ch + this.eatString('}'));\n } else if (this._ch === '{') {\n if (insidePropertyValue) {\n insidePropertyValue = false;\n this.outdent();\n }\n\n // non nested at rule becomes nested\n insideNonNestedAtRule = false;\n\n // when entering conditional groups, only rulesets are allowed\n if (enteringConditionalGroup) {\n enteringConditionalGroup = false;\n insideRule = (this._indentLevel >= this._nestedLevel);\n } else {\n // otherwise, declarations are also allowed\n insideRule = (this._indentLevel >= this._nestedLevel - 1);\n }\n if (this._options.newline_between_rules && insideRule) {\n if (this._output.previous_line && this._output.previous_line.item(-1) !== '{') {\n this._output.ensure_empty_line_above('/', ',');\n }\n }\n\n this._output.space_before_token = true;\n\n // The difference in print_string and indent order is necessary to indent the '{' correctly\n if (this._options.brace_style === 'expand') {\n this._output.add_new_line();\n this.print_string(this._ch);\n this.indent();\n this._output.set_indent(this._indentLevel);\n } else {\n // inside mixin and first param is object\n if (previous_ch === '(') {\n this._output.space_before_token = false;\n } else if (previous_ch !== ',') {\n this.indent();\n }\n this.print_string(this._ch);\n }\n\n this.eatWhitespace(true);\n this._output.add_new_line();\n } else if (this._ch === '}') {\n this.outdent();\n this._output.add_new_line();\n if (previous_ch === '{') {\n this._output.trim(true);\n }\n\n if (insidePropertyValue) {\n this.outdent();\n insidePropertyValue = false;\n }\n this.print_string(this._ch);\n insideRule = false;\n if (this._nestedLevel) {\n this._nestedLevel--;\n }\n\n this.eatWhitespace(true);\n this._output.add_new_line();\n\n if (this._options.newline_between_rules && !this._output.just_added_blankline()) {\n if (this._input.peek() !== '}') {\n this._output.add_new_line(true);\n }\n }\n if (this._input.peek() === ')') {\n this._output.trim(true);\n if (this._options.brace_style === \"expand\") {\n this._output.add_new_line(true);\n }\n }\n } else if (this._ch === \":\") {\n\n for (var i = 0; i < this.NON_SEMICOLON_NEWLINE_PROPERTY.length; i++) {\n if (this._input.lookBack(this.NON_SEMICOLON_NEWLINE_PROPERTY[i])) {\n insideNonSemiColonValues = true;\n break;\n }\n }\n\n if ((insideRule || enteringConditionalGroup) && !(this._input.lookBack(\"&\") || this.foundNestedPseudoClass()) && !this._input.lookBack(\"(\") && !insideNonNestedAtRule && parenLevel === 0) {\n // 'property: value' delimiter\n // which could be in a conditional group query\n\n this.print_string(':');\n if (!insidePropertyValue) {\n insidePropertyValue = true;\n this._output.space_before_token = true;\n this.eatWhitespace(true);\n this.indent();\n }\n } else {\n // sass/less parent reference don't use a space\n // sass nested pseudo-class don't use a space\n\n // preserve space before pseudoclasses/pseudoelements, as it means \"in any child\"\n if (this._input.lookBack(\" \")) {\n this._output.space_before_token = true;\n }\n if (this._input.peek() === \":\") {\n // pseudo-element\n this._ch = this._input.next();\n this.print_string(\"::\");\n } else {\n // pseudo-class\n this.print_string(':');\n }\n }\n } else if (this._ch === '\"' || this._ch === '\\'') {\n var preserveQuoteSpace = previous_ch === '\"' || previous_ch === '\\'';\n this.preserveSingleSpace(preserveQuoteSpace || isAfterSpace);\n this.print_string(this._ch + this.eatString(this._ch));\n this.eatWhitespace(true);\n } else if (this._ch === ';') {\n insideNonSemiColonValues = false;\n if (parenLevel === 0) {\n if (insidePropertyValue) {\n this.outdent();\n insidePropertyValue = false;\n }\n insideNonNestedAtRule = false;\n this.print_string(this._ch);\n this.eatWhitespace(true);\n\n // This maintains single line comments on the same\n // line. Block comments are also affected, but\n // a new line is always output before one inside\n // that section\n if (this._input.peek() !== '/') {\n this._output.add_new_line();\n }\n } else {\n this.print_string(this._ch);\n this.eatWhitespace(true);\n this._output.space_before_token = true;\n }\n } else if (this._ch === '(') { // may be a url\n if (this._input.lookBack(\"url\")) {\n this.print_string(this._ch);\n this.eatWhitespace();\n parenLevel++;\n this.indent();\n this._ch = this._input.next();\n if (this._ch === ')' || this._ch === '\"' || this._ch === '\\'') {\n this._input.back();\n } else if (this._ch) {\n this.print_string(this._ch + this.eatString(')'));\n if (parenLevel) {\n parenLevel--;\n this.outdent();\n }\n }\n } else {\n var space_needed = false;\n if (this._input.lookBack(\"with\")) {\n // look back is not an accurate solution, we need tokens to confirm without whitespaces\n space_needed = true;\n }\n this.preserveSingleSpace(isAfterSpace || space_needed);\n this.print_string(this._ch);\n\n // handle scss/sass map\n if (insidePropertyValue && previous_ch === \"$\" && this._options.selector_separator_newline) {\n this._output.add_new_line();\n insideScssMap = true;\n } else {\n this.eatWhitespace();\n parenLevel++;\n this.indent();\n }\n }\n } else if (this._ch === ')') {\n if (parenLevel) {\n parenLevel--;\n this.outdent();\n }\n if (insideScssMap && this._input.peek() === \";\" && this._options.selector_separator_newline) {\n insideScssMap = false;\n this.outdent();\n this._output.add_new_line();\n }\n this.print_string(this._ch);\n } else if (this._ch === ',') {\n this.print_string(this._ch);\n this.eatWhitespace(true);\n if (this._options.selector_separator_newline && (!insidePropertyValue || insideScssMap) && parenLevel === 0 && !insideNonNestedAtRule) {\n this._output.add_new_line();\n } else {\n this._output.space_before_token = true;\n }\n } else if ((this._ch === '>' || this._ch === '+' || this._ch === '~') && !insidePropertyValue && parenLevel === 0) {\n //handle combinator spacing\n if (this._options.space_around_combinator) {\n this._output.space_before_token = true;\n this.print_string(this._ch);\n this._output.space_before_token = true;\n } else {\n this.print_string(this._ch);\n this.eatWhitespace();\n // squash extra whitespace\n if (this._ch && whitespaceChar.test(this._ch)) {\n this._ch = '';\n }\n }\n } else if (this._ch === ']') {\n this.print_string(this._ch);\n } else if (this._ch === '[') {\n this.preserveSingleSpace(isAfterSpace);\n this.print_string(this._ch);\n } else if (this._ch === '=') { // no whitespace before or after\n this.eatWhitespace();\n this.print_string('=');\n if (whitespaceChar.test(this._ch)) {\n this._ch = '';\n }\n } else if (this._ch === '!' && !this._input.lookBack(\"\\\\\")) { // !important\n this._output.space_before_token = true;\n this.print_string(this._ch);\n } else {\n var preserveAfterSpace = previous_ch === '\"' || previous_ch === '\\'';\n this.preserveSingleSpace(preserveAfterSpace || isAfterSpace);\n this.print_string(this._ch);\n\n if (!this._output.just_added_newline() && this._input.peek() === '\\n' && insideNonSemiColonValues) {\n this._output.add_new_line();\n }\n }\n }\n\n var sweetCode = this._output.get_code(eol);\n\n return sweetCode;\n};\n\nmodule.exports.Beautifier = Beautifier;\n\n\n/***/ }),\n/* 17 */\n/***/ (function(module, __unused_webpack_exports, __webpack_require__) {\n\n/*jshint node:true */\n/*\n\n The MIT License (MIT)\n\n Copyright (c) 2007-2018 Einar Lielmanis, Liam Newman, and contributors.\n\n Permission is hereby granted, free of charge, to any person\n obtaining a copy of this software and associated documentation files\n (the \"Software\"), to deal in the Software without restriction,\n including without limitation the rights to use, copy, modify, merge,\n publish, distribute, sublicense, and/or sell copies of the Software,\n and to permit persons to whom the Software is furnished to do so,\n subject to the following conditions:\n\n The above copyright notice and this permission notice shall be\n included in all copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\n NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS\n BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN\n ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\n CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n*/\n\n\n\nvar BaseOptions = (__webpack_require__(6).Options);\n\nfunction Options(options) {\n BaseOptions.call(this, options, 'css');\n\n this.selector_separator_newline = this._get_boolean('selector_separator_newline', true);\n this.newline_between_rules = this._get_boolean('newline_between_rules', true);\n var space_around_selector_separator = this._get_boolean('space_around_selector_separator');\n this.space_around_combinator = this._get_boolean('space_around_combinator') || space_around_selector_separator;\n\n var brace_style_split = this._get_selection_list('brace_style', ['collapse', 'expand', 'end-expand', 'none', 'preserve-inline']);\n this.brace_style = 'collapse';\n for (var bs = 0; bs < brace_style_split.length; bs++) {\n if (brace_style_split[bs] !== 'expand') {\n // default to collapse, as only collapse|expand is implemented for now\n this.brace_style = 'collapse';\n } else {\n this.brace_style = brace_style_split[bs];\n }\n }\n}\nOptions.prototype = new BaseOptions();\n\n\n\nmodule.exports.Options = Options;\n\n\n/***/ })\n/******/ \t]);\n/************************************************************************/\n/******/ \t// The module cache\n/******/ \tvar __webpack_module_cache__ = {};\n/******/ \t\n/******/ \t// The require function\n/******/ \tfunction __webpack_require__(moduleId) {\n/******/ \t\t// Check if module is in cache\n/******/ \t\tvar cachedModule = __webpack_module_cache__[moduleId];\n/******/ \t\tif (cachedModule !== undefined) {\n/******/ \t\t\treturn cachedModule.exports;\n/******/ \t\t}\n/******/ \t\t// Create a new module (and put it into the cache)\n/******/ \t\tvar module = __webpack_module_cache__[moduleId] = {\n/******/ \t\t\t// no module.id needed\n/******/ \t\t\t// no module.loaded needed\n/******/ \t\t\texports: {}\n/******/ \t\t};\n/******/ \t\n/******/ \t\t// Execute the module function\n/******/ \t\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n/******/ \t\n/******/ \t\t// Return the exports of the module\n/******/ \t\treturn module.exports;\n/******/ \t}\n/******/ \t\n/************************************************************************/\n/******/ \t\n/******/ \t// startup\n/******/ \t// Load entry module and return exports\n/******/ \t// This entry module is referenced by other modules so it can't be inlined\n/******/ \tvar __webpack_exports__ = __webpack_require__(15);\n/******/ \tlegacy_beautify_css = __webpack_exports__;\n/******/ \t\n/******/ })()\n;\nvar css_beautify = legacy_beautify_css;\n/* Footer */\nif (typeof define === \"function\" && define.amd) {\n // Add support for AMD ( https://github.com/amdjs/amdjs-api/wiki/AMD#defineamd-property- )\n define([], function() {\n return {\n css_beautify: css_beautify\n };\n });\n} else if (typeof exports !== \"undefined\") {\n // Add support for CommonJS. Just put this file somewhere on your require.paths\n // and you will be able to `var html_beautify = require(\"beautify\").html_beautify`.\n exports.css_beautify = css_beautify;\n} else if (typeof window !== \"undefined\") {\n // If we're running a web page and don't have either of the above, add our one global\n window.css_beautify = css_beautify;\n} else if (typeof global !== \"undefined\") {\n // If we don't even have window, try global.\n global.css_beautify = css_beautify;\n}\n\n}());\n","/* AUTO-GENERATED. DO NOT MODIFY. */\n/*\n\n The MIT License (MIT)\n\n Copyright (c) 2007-2018 Einar Lielmanis, Liam Newman, and contributors.\n\n Permission is hereby granted, free of charge, to any person\n obtaining a copy of this software and associated documentation files\n (the \"Software\"), to deal in the Software without restriction,\n including without limitation the rights to use, copy, modify, merge,\n publish, distribute, sublicense, and/or sell copies of the Software,\n and to permit persons to whom the Software is furnished to do so,\n subject to the following conditions:\n\n The above copyright notice and this permission notice shall be\n included in all copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\n NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS\n BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN\n ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\n CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n\n Style HTML\n---------------\n\n Written by Nochum Sossonko, (nsossonko@hotmail.com)\n\n Based on code initially developed by: Einar Lielmanis, \n https://beautifier.io/\n\n Usage:\n style_html(html_source);\n\n style_html(html_source, options);\n\n The options are:\n indent_inner_html (default false) — indent and sections,\n indent_size (default 4) — indentation size,\n indent_char (default space) — character to indent with,\n wrap_line_length (default 250) - maximum amount of characters per line (0 = disable)\n brace_style (default \"collapse\") - \"collapse\" | \"expand\" | \"end-expand\" | \"none\"\n put braces on the same line as control statements (default), or put braces on own line (Allman / ANSI style), or just put end braces on own line, or attempt to keep them where they are.\n inline (defaults to inline tags) - list of tags to be considered inline tags\n unformatted (defaults to inline tags) - list of tags, that shouldn't be reformatted\n content_unformatted (defaults to [\"pre\", \"textarea\"] tags) - list of tags, whose content shouldn't be reformatted\n indent_scripts (default normal) - \"keep\"|\"separate\"|\"normal\"\n preserve_newlines (default true) - whether existing line breaks before elements should be preserved\n Only works before elements, not inside tags or for text.\n max_preserve_newlines (default unlimited) - maximum number of line breaks to be preserved in one chunk\n indent_handlebars (default false) - format and indent {{#foo}} and {{/foo}}\n end_with_newline (false) - end with a newline\n extra_liners (default [head,body,/html]) -List of tags that should have an extra newline before them.\n\n e.g.\n\n style_html(html_source, {\n 'indent_inner_html': false,\n 'indent_size': 2,\n 'indent_char': ' ',\n 'wrap_line_length': 78,\n 'brace_style': 'expand',\n 'preserve_newlines': true,\n 'max_preserve_newlines': 5,\n 'indent_handlebars': false,\n 'extra_liners': ['/html']\n });\n*/\n\n(function() {\n\n/* GENERATED_BUILD_OUTPUT */\nvar legacy_beautify_html;\n/******/ (function() { // webpackBootstrap\n/******/ \t\"use strict\";\n/******/ \tvar __webpack_modules__ = ([\n/* 0 */,\n/* 1 */,\n/* 2 */\n/***/ (function(module) {\n\n/*jshint node:true */\n/*\n The MIT License (MIT)\n\n Copyright (c) 2007-2018 Einar Lielmanis, Liam Newman, and contributors.\n\n Permission is hereby granted, free of charge, to any person\n obtaining a copy of this software and associated documentation files\n (the \"Software\"), to deal in the Software without restriction,\n including without limitation the rights to use, copy, modify, merge,\n publish, distribute, sublicense, and/or sell copies of the Software,\n and to permit persons to whom the Software is furnished to do so,\n subject to the following conditions:\n\n The above copyright notice and this permission notice shall be\n included in all copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\n NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS\n BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN\n ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\n CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n*/\n\n\n\nfunction OutputLine(parent) {\n this.__parent = parent;\n this.__character_count = 0;\n // use indent_count as a marker for this.__lines that have preserved indentation\n this.__indent_count = -1;\n this.__alignment_count = 0;\n this.__wrap_point_index = 0;\n this.__wrap_point_character_count = 0;\n this.__wrap_point_indent_count = -1;\n this.__wrap_point_alignment_count = 0;\n\n this.__items = [];\n}\n\nOutputLine.prototype.clone_empty = function() {\n var line = new OutputLine(this.__parent);\n line.set_indent(this.__indent_count, this.__alignment_count);\n return line;\n};\n\nOutputLine.prototype.item = function(index) {\n if (index < 0) {\n return this.__items[this.__items.length + index];\n } else {\n return this.__items[index];\n }\n};\n\nOutputLine.prototype.has_match = function(pattern) {\n for (var lastCheckedOutput = this.__items.length - 1; lastCheckedOutput >= 0; lastCheckedOutput--) {\n if (this.__items[lastCheckedOutput].match(pattern)) {\n return true;\n }\n }\n return false;\n};\n\nOutputLine.prototype.set_indent = function(indent, alignment) {\n if (this.is_empty()) {\n this.__indent_count = indent || 0;\n this.__alignment_count = alignment || 0;\n this.__character_count = this.__parent.get_indent_size(this.__indent_count, this.__alignment_count);\n }\n};\n\nOutputLine.prototype._set_wrap_point = function() {\n if (this.__parent.wrap_line_length) {\n this.__wrap_point_index = this.__items.length;\n this.__wrap_point_character_count = this.__character_count;\n this.__wrap_point_indent_count = this.__parent.next_line.__indent_count;\n this.__wrap_point_alignment_count = this.__parent.next_line.__alignment_count;\n }\n};\n\nOutputLine.prototype._should_wrap = function() {\n return this.__wrap_point_index &&\n this.__character_count > this.__parent.wrap_line_length &&\n this.__wrap_point_character_count > this.__parent.next_line.__character_count;\n};\n\nOutputLine.prototype._allow_wrap = function() {\n if (this._should_wrap()) {\n this.__parent.add_new_line();\n var next = this.__parent.current_line;\n next.set_indent(this.__wrap_point_indent_count, this.__wrap_point_alignment_count);\n next.__items = this.__items.slice(this.__wrap_point_index);\n this.__items = this.__items.slice(0, this.__wrap_point_index);\n\n next.__character_count += this.__character_count - this.__wrap_point_character_count;\n this.__character_count = this.__wrap_point_character_count;\n\n if (next.__items[0] === \" \") {\n next.__items.splice(0, 1);\n next.__character_count -= 1;\n }\n return true;\n }\n return false;\n};\n\nOutputLine.prototype.is_empty = function() {\n return this.__items.length === 0;\n};\n\nOutputLine.prototype.last = function() {\n if (!this.is_empty()) {\n return this.__items[this.__items.length - 1];\n } else {\n return null;\n }\n};\n\nOutputLine.prototype.push = function(item) {\n this.__items.push(item);\n var last_newline_index = item.lastIndexOf('\\n');\n if (last_newline_index !== -1) {\n this.__character_count = item.length - last_newline_index;\n } else {\n this.__character_count += item.length;\n }\n};\n\nOutputLine.prototype.pop = function() {\n var item = null;\n if (!this.is_empty()) {\n item = this.__items.pop();\n this.__character_count -= item.length;\n }\n return item;\n};\n\n\nOutputLine.prototype._remove_indent = function() {\n if (this.__indent_count > 0) {\n this.__indent_count -= 1;\n this.__character_count -= this.__parent.indent_size;\n }\n};\n\nOutputLine.prototype._remove_wrap_indent = function() {\n if (this.__wrap_point_indent_count > 0) {\n this.__wrap_point_indent_count -= 1;\n }\n};\nOutputLine.prototype.trim = function() {\n while (this.last() === ' ') {\n this.__items.pop();\n this.__character_count -= 1;\n }\n};\n\nOutputLine.prototype.toString = function() {\n var result = '';\n if (this.is_empty()) {\n if (this.__parent.indent_empty_lines) {\n result = this.__parent.get_indent_string(this.__indent_count);\n }\n } else {\n result = this.__parent.get_indent_string(this.__indent_count, this.__alignment_count);\n result += this.__items.join('');\n }\n return result;\n};\n\nfunction IndentStringCache(options, baseIndentString) {\n this.__cache = [''];\n this.__indent_size = options.indent_size;\n this.__indent_string = options.indent_char;\n if (!options.indent_with_tabs) {\n this.__indent_string = new Array(options.indent_size + 1).join(options.indent_char);\n }\n\n // Set to null to continue support for auto detection of base indent\n baseIndentString = baseIndentString || '';\n if (options.indent_level > 0) {\n baseIndentString = new Array(options.indent_level + 1).join(this.__indent_string);\n }\n\n this.__base_string = baseIndentString;\n this.__base_string_length = baseIndentString.length;\n}\n\nIndentStringCache.prototype.get_indent_size = function(indent, column) {\n var result = this.__base_string_length;\n column = column || 0;\n if (indent < 0) {\n result = 0;\n }\n result += indent * this.__indent_size;\n result += column;\n return result;\n};\n\nIndentStringCache.prototype.get_indent_string = function(indent_level, column) {\n var result = this.__base_string;\n column = column || 0;\n if (indent_level < 0) {\n indent_level = 0;\n result = '';\n }\n column += indent_level * this.__indent_size;\n this.__ensure_cache(column);\n result += this.__cache[column];\n return result;\n};\n\nIndentStringCache.prototype.__ensure_cache = function(column) {\n while (column >= this.__cache.length) {\n this.__add_column();\n }\n};\n\nIndentStringCache.prototype.__add_column = function() {\n var column = this.__cache.length;\n var indent = 0;\n var result = '';\n if (this.__indent_size && column >= this.__indent_size) {\n indent = Math.floor(column / this.__indent_size);\n column -= indent * this.__indent_size;\n result = new Array(indent + 1).join(this.__indent_string);\n }\n if (column) {\n result += new Array(column + 1).join(' ');\n }\n\n this.__cache.push(result);\n};\n\nfunction Output(options, baseIndentString) {\n this.__indent_cache = new IndentStringCache(options, baseIndentString);\n this.raw = false;\n this._end_with_newline = options.end_with_newline;\n this.indent_size = options.indent_size;\n this.wrap_line_length = options.wrap_line_length;\n this.indent_empty_lines = options.indent_empty_lines;\n this.__lines = [];\n this.previous_line = null;\n this.current_line = null;\n this.next_line = new OutputLine(this);\n this.space_before_token = false;\n this.non_breaking_space = false;\n this.previous_token_wrapped = false;\n // initialize\n this.__add_outputline();\n}\n\nOutput.prototype.__add_outputline = function() {\n this.previous_line = this.current_line;\n this.current_line = this.next_line.clone_empty();\n this.__lines.push(this.current_line);\n};\n\nOutput.prototype.get_line_number = function() {\n return this.__lines.length;\n};\n\nOutput.prototype.get_indent_string = function(indent, column) {\n return this.__indent_cache.get_indent_string(indent, column);\n};\n\nOutput.prototype.get_indent_size = function(indent, column) {\n return this.__indent_cache.get_indent_size(indent, column);\n};\n\nOutput.prototype.is_empty = function() {\n return !this.previous_line && this.current_line.is_empty();\n};\n\nOutput.prototype.add_new_line = function(force_newline) {\n // never newline at the start of file\n // otherwise, newline only if we didn't just add one or we're forced\n if (this.is_empty() ||\n (!force_newline && this.just_added_newline())) {\n return false;\n }\n\n // if raw output is enabled, don't print additional newlines,\n // but still return True as though you had\n if (!this.raw) {\n this.__add_outputline();\n }\n return true;\n};\n\nOutput.prototype.get_code = function(eol) {\n this.trim(true);\n\n // handle some edge cases where the last tokens\n // has text that ends with newline(s)\n var last_item = this.current_line.pop();\n if (last_item) {\n if (last_item[last_item.length - 1] === '\\n') {\n last_item = last_item.replace(/\\n+$/g, '');\n }\n this.current_line.push(last_item);\n }\n\n if (this._end_with_newline) {\n this.__add_outputline();\n }\n\n var sweet_code = this.__lines.join('\\n');\n\n if (eol !== '\\n') {\n sweet_code = sweet_code.replace(/[\\n]/g, eol);\n }\n return sweet_code;\n};\n\nOutput.prototype.set_wrap_point = function() {\n this.current_line._set_wrap_point();\n};\n\nOutput.prototype.set_indent = function(indent, alignment) {\n indent = indent || 0;\n alignment = alignment || 0;\n\n // Next line stores alignment values\n this.next_line.set_indent(indent, alignment);\n\n // Never indent your first output indent at the start of the file\n if (this.__lines.length > 1) {\n this.current_line.set_indent(indent, alignment);\n return true;\n }\n\n this.current_line.set_indent();\n return false;\n};\n\nOutput.prototype.add_raw_token = function(token) {\n for (var x = 0; x < token.newlines; x++) {\n this.__add_outputline();\n }\n this.current_line.set_indent(-1);\n this.current_line.push(token.whitespace_before);\n this.current_line.push(token.text);\n this.space_before_token = false;\n this.non_breaking_space = false;\n this.previous_token_wrapped = false;\n};\n\nOutput.prototype.add_token = function(printable_token) {\n this.__add_space_before_token();\n this.current_line.push(printable_token);\n this.space_before_token = false;\n this.non_breaking_space = false;\n this.previous_token_wrapped = this.current_line._allow_wrap();\n};\n\nOutput.prototype.__add_space_before_token = function() {\n if (this.space_before_token && !this.just_added_newline()) {\n if (!this.non_breaking_space) {\n this.set_wrap_point();\n }\n this.current_line.push(' ');\n }\n};\n\nOutput.prototype.remove_indent = function(index) {\n var output_length = this.__lines.length;\n while (index < output_length) {\n this.__lines[index]._remove_indent();\n index++;\n }\n this.current_line._remove_wrap_indent();\n};\n\nOutput.prototype.trim = function(eat_newlines) {\n eat_newlines = (eat_newlines === undefined) ? false : eat_newlines;\n\n this.current_line.trim();\n\n while (eat_newlines && this.__lines.length > 1 &&\n this.current_line.is_empty()) {\n this.__lines.pop();\n this.current_line = this.__lines[this.__lines.length - 1];\n this.current_line.trim();\n }\n\n this.previous_line = this.__lines.length > 1 ?\n this.__lines[this.__lines.length - 2] : null;\n};\n\nOutput.prototype.just_added_newline = function() {\n return this.current_line.is_empty();\n};\n\nOutput.prototype.just_added_blankline = function() {\n return this.is_empty() ||\n (this.current_line.is_empty() && this.previous_line.is_empty());\n};\n\nOutput.prototype.ensure_empty_line_above = function(starts_with, ends_with) {\n var index = this.__lines.length - 2;\n while (index >= 0) {\n var potentialEmptyLine = this.__lines[index];\n if (potentialEmptyLine.is_empty()) {\n break;\n } else if (potentialEmptyLine.item(0).indexOf(starts_with) !== 0 &&\n potentialEmptyLine.item(-1) !== ends_with) {\n this.__lines.splice(index + 1, 0, new OutputLine(this));\n this.previous_line = this.__lines[this.__lines.length - 2];\n break;\n }\n index--;\n }\n};\n\nmodule.exports.Output = Output;\n\n\n/***/ }),\n/* 3 */\n/***/ (function(module) {\n\n/*jshint node:true */\n/*\n\n The MIT License (MIT)\n\n Copyright (c) 2007-2018 Einar Lielmanis, Liam Newman, and contributors.\n\n Permission is hereby granted, free of charge, to any person\n obtaining a copy of this software and associated documentation files\n (the \"Software\"), to deal in the Software without restriction,\n including without limitation the rights to use, copy, modify, merge,\n publish, distribute, sublicense, and/or sell copies of the Software,\n and to permit persons to whom the Software is furnished to do so,\n subject to the following conditions:\n\n The above copyright notice and this permission notice shall be\n included in all copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\n NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS\n BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN\n ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\n CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n*/\n\n\n\nfunction Token(type, text, newlines, whitespace_before) {\n this.type = type;\n this.text = text;\n\n // comments_before are\n // comments that have a new line before them\n // and may or may not have a newline after\n // this is a set of comments before\n this.comments_before = null; /* inline comment*/\n\n\n // this.comments_after = new TokenStream(); // no new line before and newline after\n this.newlines = newlines || 0;\n this.whitespace_before = whitespace_before || '';\n this.parent = null;\n this.next = null;\n this.previous = null;\n this.opened = null;\n this.closed = null;\n this.directives = null;\n}\n\n\nmodule.exports.Token = Token;\n\n\n/***/ }),\n/* 4 */,\n/* 5 */,\n/* 6 */\n/***/ (function(module) {\n\n/*jshint node:true */\n/*\n\n The MIT License (MIT)\n\n Copyright (c) 2007-2018 Einar Lielmanis, Liam Newman, and contributors.\n\n Permission is hereby granted, free of charge, to any person\n obtaining a copy of this software and associated documentation files\n (the \"Software\"), to deal in the Software without restriction,\n including without limitation the rights to use, copy, modify, merge,\n publish, distribute, sublicense, and/or sell copies of the Software,\n and to permit persons to whom the Software is furnished to do so,\n subject to the following conditions:\n\n The above copyright notice and this permission notice shall be\n included in all copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\n NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS\n BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN\n ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\n CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n*/\n\n\n\nfunction Options(options, merge_child_field) {\n this.raw_options = _mergeOpts(options, merge_child_field);\n\n // Support passing the source text back with no change\n this.disabled = this._get_boolean('disabled');\n\n this.eol = this._get_characters('eol', 'auto');\n this.end_with_newline = this._get_boolean('end_with_newline');\n this.indent_size = this._get_number('indent_size', 4);\n this.indent_char = this._get_characters('indent_char', ' ');\n this.indent_level = this._get_number('indent_level');\n\n this.preserve_newlines = this._get_boolean('preserve_newlines', true);\n this.max_preserve_newlines = this._get_number('max_preserve_newlines', 32786);\n if (!this.preserve_newlines) {\n this.max_preserve_newlines = 0;\n }\n\n this.indent_with_tabs = this._get_boolean('indent_with_tabs', this.indent_char === '\\t');\n if (this.indent_with_tabs) {\n this.indent_char = '\\t';\n\n // indent_size behavior changed after 1.8.6\n // It used to be that indent_size would be\n // set to 1 for indent_with_tabs. That is no longer needed and\n // actually doesn't make sense - why not use spaces? Further,\n // that might produce unexpected behavior - tabs being used\n // for single-column alignment. So, when indent_with_tabs is true\n // and indent_size is 1, reset indent_size to 4.\n if (this.indent_size === 1) {\n this.indent_size = 4;\n }\n }\n\n // Backwards compat with 1.3.x\n this.wrap_line_length = this._get_number('wrap_line_length', this._get_number('max_char'));\n\n this.indent_empty_lines = this._get_boolean('indent_empty_lines');\n\n // valid templating languages ['django', 'erb', 'handlebars', 'php', 'smarty']\n // For now, 'auto' = all off for javascript, all on for html (and inline javascript).\n // other values ignored\n this.templating = this._get_selection_list('templating', ['auto', 'none', 'django', 'erb', 'handlebars', 'php', 'smarty'], ['auto']);\n}\n\nOptions.prototype._get_array = function(name, default_value) {\n var option_value = this.raw_options[name];\n var result = default_value || [];\n if (typeof option_value === 'object') {\n if (option_value !== null && typeof option_value.concat === 'function') {\n result = option_value.concat();\n }\n } else if (typeof option_value === 'string') {\n result = option_value.split(/[^a-zA-Z0-9_\\/\\-]+/);\n }\n return result;\n};\n\nOptions.prototype._get_boolean = function(name, default_value) {\n var option_value = this.raw_options[name];\n var result = option_value === undefined ? !!default_value : !!option_value;\n return result;\n};\n\nOptions.prototype._get_characters = function(name, default_value) {\n var option_value = this.raw_options[name];\n var result = default_value || '';\n if (typeof option_value === 'string') {\n result = option_value.replace(/\\\\r/, '\\r').replace(/\\\\n/, '\\n').replace(/\\\\t/, '\\t');\n }\n return result;\n};\n\nOptions.prototype._get_number = function(name, default_value) {\n var option_value = this.raw_options[name];\n default_value = parseInt(default_value, 10);\n if (isNaN(default_value)) {\n default_value = 0;\n }\n var result = parseInt(option_value, 10);\n if (isNaN(result)) {\n result = default_value;\n }\n return result;\n};\n\nOptions.prototype._get_selection = function(name, selection_list, default_value) {\n var result = this._get_selection_list(name, selection_list, default_value);\n if (result.length !== 1) {\n throw new Error(\n \"Invalid Option Value: The option '\" + name + \"' can only be one of the following values:\\n\" +\n selection_list + \"\\nYou passed in: '\" + this.raw_options[name] + \"'\");\n }\n\n return result[0];\n};\n\n\nOptions.prototype._get_selection_list = function(name, selection_list, default_value) {\n if (!selection_list || selection_list.length === 0) {\n throw new Error(\"Selection list cannot be empty.\");\n }\n\n default_value = default_value || [selection_list[0]];\n if (!this._is_valid_selection(default_value, selection_list)) {\n throw new Error(\"Invalid Default Value!\");\n }\n\n var result = this._get_array(name, default_value);\n if (!this._is_valid_selection(result, selection_list)) {\n throw new Error(\n \"Invalid Option Value: The option '\" + name + \"' can contain only the following values:\\n\" +\n selection_list + \"\\nYou passed in: '\" + this.raw_options[name] + \"'\");\n }\n\n return result;\n};\n\nOptions.prototype._is_valid_selection = function(result, selection_list) {\n return result.length && selection_list.length &&\n !result.some(function(item) { return selection_list.indexOf(item) === -1; });\n};\n\n\n// merges child options up with the parent options object\n// Example: obj = {a: 1, b: {a: 2}}\n// mergeOpts(obj, 'b')\n//\n// Returns: {a: 2}\nfunction _mergeOpts(allOptions, childFieldName) {\n var finalOpts = {};\n allOptions = _normalizeOpts(allOptions);\n var name;\n\n for (name in allOptions) {\n if (name !== childFieldName) {\n finalOpts[name] = allOptions[name];\n }\n }\n\n //merge in the per type settings for the childFieldName\n if (childFieldName && allOptions[childFieldName]) {\n for (name in allOptions[childFieldName]) {\n finalOpts[name] = allOptions[childFieldName][name];\n }\n }\n return finalOpts;\n}\n\nfunction _normalizeOpts(options) {\n var convertedOpts = {};\n var key;\n\n for (key in options) {\n var newKey = key.replace(/-/g, \"_\");\n convertedOpts[newKey] = options[key];\n }\n return convertedOpts;\n}\n\nmodule.exports.Options = Options;\nmodule.exports.normalizeOpts = _normalizeOpts;\nmodule.exports.mergeOpts = _mergeOpts;\n\n\n/***/ }),\n/* 7 */,\n/* 8 */\n/***/ (function(module) {\n\n/*jshint node:true */\n/*\n\n The MIT License (MIT)\n\n Copyright (c) 2007-2018 Einar Lielmanis, Liam Newman, and contributors.\n\n Permission is hereby granted, free of charge, to any person\n obtaining a copy of this software and associated documentation files\n (the \"Software\"), to deal in the Software without restriction,\n including without limitation the rights to use, copy, modify, merge,\n publish, distribute, sublicense, and/or sell copies of the Software,\n and to permit persons to whom the Software is furnished to do so,\n subject to the following conditions:\n\n The above copyright notice and this permission notice shall be\n included in all copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\n NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS\n BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN\n ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\n CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n*/\n\n\n\nvar regexp_has_sticky = RegExp.prototype.hasOwnProperty('sticky');\n\nfunction InputScanner(input_string) {\n this.__input = input_string || '';\n this.__input_length = this.__input.length;\n this.__position = 0;\n}\n\nInputScanner.prototype.restart = function() {\n this.__position = 0;\n};\n\nInputScanner.prototype.back = function() {\n if (this.__position > 0) {\n this.__position -= 1;\n }\n};\n\nInputScanner.prototype.hasNext = function() {\n return this.__position < this.__input_length;\n};\n\nInputScanner.prototype.next = function() {\n var val = null;\n if (this.hasNext()) {\n val = this.__input.charAt(this.__position);\n this.__position += 1;\n }\n return val;\n};\n\nInputScanner.prototype.peek = function(index) {\n var val = null;\n index = index || 0;\n index += this.__position;\n if (index >= 0 && index < this.__input_length) {\n val = this.__input.charAt(index);\n }\n return val;\n};\n\n// This is a JavaScript only helper function (not in python)\n// Javascript doesn't have a match method\n// and not all implementation support \"sticky\" flag.\n// If they do not support sticky then both this.match() and this.test() method\n// must get the match and check the index of the match.\n// If sticky is supported and set, this method will use it.\n// Otherwise it will check that global is set, and fall back to the slower method.\nInputScanner.prototype.__match = function(pattern, index) {\n pattern.lastIndex = index;\n var pattern_match = pattern.exec(this.__input);\n\n if (pattern_match && !(regexp_has_sticky && pattern.sticky)) {\n if (pattern_match.index !== index) {\n pattern_match = null;\n }\n }\n\n return pattern_match;\n};\n\nInputScanner.prototype.test = function(pattern, index) {\n index = index || 0;\n index += this.__position;\n\n if (index >= 0 && index < this.__input_length) {\n return !!this.__match(pattern, index);\n } else {\n return false;\n }\n};\n\nInputScanner.prototype.testChar = function(pattern, index) {\n // test one character regex match\n var val = this.peek(index);\n pattern.lastIndex = 0;\n return val !== null && pattern.test(val);\n};\n\nInputScanner.prototype.match = function(pattern) {\n var pattern_match = this.__match(pattern, this.__position);\n if (pattern_match) {\n this.__position += pattern_match[0].length;\n } else {\n pattern_match = null;\n }\n return pattern_match;\n};\n\nInputScanner.prototype.read = function(starting_pattern, until_pattern, until_after) {\n var val = '';\n var match;\n if (starting_pattern) {\n match = this.match(starting_pattern);\n if (match) {\n val += match[0];\n }\n }\n if (until_pattern && (match || !starting_pattern)) {\n val += this.readUntil(until_pattern, until_after);\n }\n return val;\n};\n\nInputScanner.prototype.readUntil = function(pattern, until_after) {\n var val = '';\n var match_index = this.__position;\n pattern.lastIndex = this.__position;\n var pattern_match = pattern.exec(this.__input);\n if (pattern_match) {\n match_index = pattern_match.index;\n if (until_after) {\n match_index += pattern_match[0].length;\n }\n } else {\n match_index = this.__input_length;\n }\n\n val = this.__input.substring(this.__position, match_index);\n this.__position = match_index;\n return val;\n};\n\nInputScanner.prototype.readUntilAfter = function(pattern) {\n return this.readUntil(pattern, true);\n};\n\nInputScanner.prototype.get_regexp = function(pattern, match_from) {\n var result = null;\n var flags = 'g';\n if (match_from && regexp_has_sticky) {\n flags = 'y';\n }\n // strings are converted to regexp\n if (typeof pattern === \"string\" && pattern !== '') {\n // result = new RegExp(pattern.replace(/[-\\/\\\\^$*+?.()|[\\]{}]/g, '\\\\$&'), flags);\n result = new RegExp(pattern, flags);\n } else if (pattern) {\n result = new RegExp(pattern.source, flags);\n }\n return result;\n};\n\nInputScanner.prototype.get_literal_regexp = function(literal_string) {\n return RegExp(literal_string.replace(/[-\\/\\\\^$*+?.()|[\\]{}]/g, '\\\\$&'));\n};\n\n/* css beautifier legacy helpers */\nInputScanner.prototype.peekUntilAfter = function(pattern) {\n var start = this.__position;\n var val = this.readUntilAfter(pattern);\n this.__position = start;\n return val;\n};\n\nInputScanner.prototype.lookBack = function(testVal) {\n var start = this.__position - 1;\n return start >= testVal.length && this.__input.substring(start - testVal.length, start)\n .toLowerCase() === testVal;\n};\n\nmodule.exports.InputScanner = InputScanner;\n\n\n/***/ }),\n/* 9 */\n/***/ (function(module, __unused_webpack_exports, __webpack_require__) {\n\n/*jshint node:true */\n/*\n\n The MIT License (MIT)\n\n Copyright (c) 2007-2018 Einar Lielmanis, Liam Newman, and contributors.\n\n Permission is hereby granted, free of charge, to any person\n obtaining a copy of this software and associated documentation files\n (the \"Software\"), to deal in the Software without restriction,\n including without limitation the rights to use, copy, modify, merge,\n publish, distribute, sublicense, and/or sell copies of the Software,\n and to permit persons to whom the Software is furnished to do so,\n subject to the following conditions:\n\n The above copyright notice and this permission notice shall be\n included in all copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\n NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS\n BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN\n ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\n CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n*/\n\n\n\nvar InputScanner = (__webpack_require__(8).InputScanner);\nvar Token = (__webpack_require__(3).Token);\nvar TokenStream = (__webpack_require__(10).TokenStream);\nvar WhitespacePattern = (__webpack_require__(11).WhitespacePattern);\n\nvar TOKEN = {\n START: 'TK_START',\n RAW: 'TK_RAW',\n EOF: 'TK_EOF'\n};\n\nvar Tokenizer = function(input_string, options) {\n this._input = new InputScanner(input_string);\n this._options = options || {};\n this.__tokens = null;\n\n this._patterns = {};\n this._patterns.whitespace = new WhitespacePattern(this._input);\n};\n\nTokenizer.prototype.tokenize = function() {\n this._input.restart();\n this.__tokens = new TokenStream();\n\n this._reset();\n\n var current;\n var previous = new Token(TOKEN.START, '');\n var open_token = null;\n var open_stack = [];\n var comments = new TokenStream();\n\n while (previous.type !== TOKEN.EOF) {\n current = this._get_next_token(previous, open_token);\n while (this._is_comment(current)) {\n comments.add(current);\n current = this._get_next_token(previous, open_token);\n }\n\n if (!comments.isEmpty()) {\n current.comments_before = comments;\n comments = new TokenStream();\n }\n\n current.parent = open_token;\n\n if (this._is_opening(current)) {\n open_stack.push(open_token);\n open_token = current;\n } else if (open_token && this._is_closing(current, open_token)) {\n current.opened = open_token;\n open_token.closed = current;\n open_token = open_stack.pop();\n current.parent = open_token;\n }\n\n current.previous = previous;\n previous.next = current;\n\n this.__tokens.add(current);\n previous = current;\n }\n\n return this.__tokens;\n};\n\n\nTokenizer.prototype._is_first_token = function() {\n return this.__tokens.isEmpty();\n};\n\nTokenizer.prototype._reset = function() {};\n\nTokenizer.prototype._get_next_token = function(previous_token, open_token) { // jshint unused:false\n this._readWhitespace();\n var resulting_string = this._input.read(/.+/g);\n if (resulting_string) {\n return this._create_token(TOKEN.RAW, resulting_string);\n } else {\n return this._create_token(TOKEN.EOF, '');\n }\n};\n\nTokenizer.prototype._is_comment = function(current_token) { // jshint unused:false\n return false;\n};\n\nTokenizer.prototype._is_opening = function(current_token) { // jshint unused:false\n return false;\n};\n\nTokenizer.prototype._is_closing = function(current_token, open_token) { // jshint unused:false\n return false;\n};\n\nTokenizer.prototype._create_token = function(type, text) {\n var token = new Token(type, text,\n this._patterns.whitespace.newline_count,\n this._patterns.whitespace.whitespace_before_token);\n return token;\n};\n\nTokenizer.prototype._readWhitespace = function() {\n return this._patterns.whitespace.read();\n};\n\n\n\nmodule.exports.Tokenizer = Tokenizer;\nmodule.exports.TOKEN = TOKEN;\n\n\n/***/ }),\n/* 10 */\n/***/ (function(module) {\n\n/*jshint node:true */\n/*\n\n The MIT License (MIT)\n\n Copyright (c) 2007-2018 Einar Lielmanis, Liam Newman, and contributors.\n\n Permission is hereby granted, free of charge, to any person\n obtaining a copy of this software and associated documentation files\n (the \"Software\"), to deal in the Software without restriction,\n including without limitation the rights to use, copy, modify, merge,\n publish, distribute, sublicense, and/or sell copies of the Software,\n and to permit persons to whom the Software is furnished to do so,\n subject to the following conditions:\n\n The above copyright notice and this permission notice shall be\n included in all copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\n NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS\n BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN\n ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\n CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n*/\n\n\n\nfunction TokenStream(parent_token) {\n // private\n this.__tokens = [];\n this.__tokens_length = this.__tokens.length;\n this.__position = 0;\n this.__parent_token = parent_token;\n}\n\nTokenStream.prototype.restart = function() {\n this.__position = 0;\n};\n\nTokenStream.prototype.isEmpty = function() {\n return this.__tokens_length === 0;\n};\n\nTokenStream.prototype.hasNext = function() {\n return this.__position < this.__tokens_length;\n};\n\nTokenStream.prototype.next = function() {\n var val = null;\n if (this.hasNext()) {\n val = this.__tokens[this.__position];\n this.__position += 1;\n }\n return val;\n};\n\nTokenStream.prototype.peek = function(index) {\n var val = null;\n index = index || 0;\n index += this.__position;\n if (index >= 0 && index < this.__tokens_length) {\n val = this.__tokens[index];\n }\n return val;\n};\n\nTokenStream.prototype.add = function(token) {\n if (this.__parent_token) {\n token.parent = this.__parent_token;\n }\n this.__tokens.push(token);\n this.__tokens_length += 1;\n};\n\nmodule.exports.TokenStream = TokenStream;\n\n\n/***/ }),\n/* 11 */\n/***/ (function(module, __unused_webpack_exports, __webpack_require__) {\n\n/*jshint node:true */\n/*\n\n The MIT License (MIT)\n\n Copyright (c) 2007-2018 Einar Lielmanis, Liam Newman, and contributors.\n\n Permission is hereby granted, free of charge, to any person\n obtaining a copy of this software and associated documentation files\n (the \"Software\"), to deal in the Software without restriction,\n including without limitation the rights to use, copy, modify, merge,\n publish, distribute, sublicense, and/or sell copies of the Software,\n and to permit persons to whom the Software is furnished to do so,\n subject to the following conditions:\n\n The above copyright notice and this permission notice shall be\n included in all copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\n NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS\n BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN\n ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\n CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n*/\n\n\n\nvar Pattern = (__webpack_require__(12).Pattern);\n\nfunction WhitespacePattern(input_scanner, parent) {\n Pattern.call(this, input_scanner, parent);\n if (parent) {\n this._line_regexp = this._input.get_regexp(parent._line_regexp);\n } else {\n this.__set_whitespace_patterns('', '');\n }\n\n this.newline_count = 0;\n this.whitespace_before_token = '';\n}\nWhitespacePattern.prototype = new Pattern();\n\nWhitespacePattern.prototype.__set_whitespace_patterns = function(whitespace_chars, newline_chars) {\n whitespace_chars += '\\\\t ';\n newline_chars += '\\\\n\\\\r';\n\n this._match_pattern = this._input.get_regexp(\n '[' + whitespace_chars + newline_chars + ']+', true);\n this._newline_regexp = this._input.get_regexp(\n '\\\\r\\\\n|[' + newline_chars + ']');\n};\n\nWhitespacePattern.prototype.read = function() {\n this.newline_count = 0;\n this.whitespace_before_token = '';\n\n var resulting_string = this._input.read(this._match_pattern);\n if (resulting_string === ' ') {\n this.whitespace_before_token = ' ';\n } else if (resulting_string) {\n var matches = this.__split(this._newline_regexp, resulting_string);\n this.newline_count = matches.length - 1;\n this.whitespace_before_token = matches[this.newline_count];\n }\n\n return resulting_string;\n};\n\nWhitespacePattern.prototype.matching = function(whitespace_chars, newline_chars) {\n var result = this._create();\n result.__set_whitespace_patterns(whitespace_chars, newline_chars);\n result._update();\n return result;\n};\n\nWhitespacePattern.prototype._create = function() {\n return new WhitespacePattern(this._input, this);\n};\n\nWhitespacePattern.prototype.__split = function(regexp, input_string) {\n regexp.lastIndex = 0;\n var start_index = 0;\n var result = [];\n var next_match = regexp.exec(input_string);\n while (next_match) {\n result.push(input_string.substring(start_index, next_match.index));\n start_index = next_match.index + next_match[0].length;\n next_match = regexp.exec(input_string);\n }\n\n if (start_index < input_string.length) {\n result.push(input_string.substring(start_index, input_string.length));\n } else {\n result.push('');\n }\n\n return result;\n};\n\n\n\nmodule.exports.WhitespacePattern = WhitespacePattern;\n\n\n/***/ }),\n/* 12 */\n/***/ (function(module) {\n\n/*jshint node:true */\n/*\n\n The MIT License (MIT)\n\n Copyright (c) 2007-2018 Einar Lielmanis, Liam Newman, and contributors.\n\n Permission is hereby granted, free of charge, to any person\n obtaining a copy of this software and associated documentation files\n (the \"Software\"), to deal in the Software without restriction,\n including without limitation the rights to use, copy, modify, merge,\n publish, distribute, sublicense, and/or sell copies of the Software,\n and to permit persons to whom the Software is furnished to do so,\n subject to the following conditions:\n\n The above copyright notice and this permission notice shall be\n included in all copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\n NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS\n BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN\n ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\n CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n*/\n\n\n\nfunction Pattern(input_scanner, parent) {\n this._input = input_scanner;\n this._starting_pattern = null;\n this._match_pattern = null;\n this._until_pattern = null;\n this._until_after = false;\n\n if (parent) {\n this._starting_pattern = this._input.get_regexp(parent._starting_pattern, true);\n this._match_pattern = this._input.get_regexp(parent._match_pattern, true);\n this._until_pattern = this._input.get_regexp(parent._until_pattern);\n this._until_after = parent._until_after;\n }\n}\n\nPattern.prototype.read = function() {\n var result = this._input.read(this._starting_pattern);\n if (!this._starting_pattern || result) {\n result += this._input.read(this._match_pattern, this._until_pattern, this._until_after);\n }\n return result;\n};\n\nPattern.prototype.read_match = function() {\n return this._input.match(this._match_pattern);\n};\n\nPattern.prototype.until_after = function(pattern) {\n var result = this._create();\n result._until_after = true;\n result._until_pattern = this._input.get_regexp(pattern);\n result._update();\n return result;\n};\n\nPattern.prototype.until = function(pattern) {\n var result = this._create();\n result._until_after = false;\n result._until_pattern = this._input.get_regexp(pattern);\n result._update();\n return result;\n};\n\nPattern.prototype.starting_with = function(pattern) {\n var result = this._create();\n result._starting_pattern = this._input.get_regexp(pattern, true);\n result._update();\n return result;\n};\n\nPattern.prototype.matching = function(pattern) {\n var result = this._create();\n result._match_pattern = this._input.get_regexp(pattern, true);\n result._update();\n return result;\n};\n\nPattern.prototype._create = function() {\n return new Pattern(this._input, this);\n};\n\nPattern.prototype._update = function() {};\n\nmodule.exports.Pattern = Pattern;\n\n\n/***/ }),\n/* 13 */\n/***/ (function(module) {\n\n/*jshint node:true */\n/*\n\n The MIT License (MIT)\n\n Copyright (c) 2007-2018 Einar Lielmanis, Liam Newman, and contributors.\n\n Permission is hereby granted, free of charge, to any person\n obtaining a copy of this software and associated documentation files\n (the \"Software\"), to deal in the Software without restriction,\n including without limitation the rights to use, copy, modify, merge,\n publish, distribute, sublicense, and/or sell copies of the Software,\n and to permit persons to whom the Software is furnished to do so,\n subject to the following conditions:\n\n The above copyright notice and this permission notice shall be\n included in all copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\n NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS\n BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN\n ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\n CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n*/\n\n\n\nfunction Directives(start_block_pattern, end_block_pattern) {\n start_block_pattern = typeof start_block_pattern === 'string' ? start_block_pattern : start_block_pattern.source;\n end_block_pattern = typeof end_block_pattern === 'string' ? end_block_pattern : end_block_pattern.source;\n this.__directives_block_pattern = new RegExp(start_block_pattern + / beautify( \\w+[:]\\w+)+ /.source + end_block_pattern, 'g');\n this.__directive_pattern = / (\\w+)[:](\\w+)/g;\n\n this.__directives_end_ignore_pattern = new RegExp(start_block_pattern + /\\sbeautify\\signore:end\\s/.source + end_block_pattern, 'g');\n}\n\nDirectives.prototype.get_directives = function(text) {\n if (!text.match(this.__directives_block_pattern)) {\n return null;\n }\n\n var directives = {};\n this.__directive_pattern.lastIndex = 0;\n var directive_match = this.__directive_pattern.exec(text);\n\n while (directive_match) {\n directives[directive_match[1]] = directive_match[2];\n directive_match = this.__directive_pattern.exec(text);\n }\n\n return directives;\n};\n\nDirectives.prototype.readIgnored = function(input) {\n return input.readUntilAfter(this.__directives_end_ignore_pattern);\n};\n\n\nmodule.exports.Directives = Directives;\n\n\n/***/ }),\n/* 14 */\n/***/ (function(module, __unused_webpack_exports, __webpack_require__) {\n\n/*jshint node:true */\n/*\n\n The MIT License (MIT)\n\n Copyright (c) 2007-2018 Einar Lielmanis, Liam Newman, and contributors.\n\n Permission is hereby granted, free of charge, to any person\n obtaining a copy of this software and associated documentation files\n (the \"Software\"), to deal in the Software without restriction,\n including without limitation the rights to use, copy, modify, merge,\n publish, distribute, sublicense, and/or sell copies of the Software,\n and to permit persons to whom the Software is furnished to do so,\n subject to the following conditions:\n\n The above copyright notice and this permission notice shall be\n included in all copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\n NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS\n BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN\n ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\n CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n*/\n\n\n\nvar Pattern = (__webpack_require__(12).Pattern);\n\n\nvar template_names = {\n django: false,\n erb: false,\n handlebars: false,\n php: false,\n smarty: false\n};\n\n// This lets templates appear anywhere we would do a readUntil\n// The cost is higher but it is pay to play.\nfunction TemplatablePattern(input_scanner, parent) {\n Pattern.call(this, input_scanner, parent);\n this.__template_pattern = null;\n this._disabled = Object.assign({}, template_names);\n this._excluded = Object.assign({}, template_names);\n\n if (parent) {\n this.__template_pattern = this._input.get_regexp(parent.__template_pattern);\n this._excluded = Object.assign(this._excluded, parent._excluded);\n this._disabled = Object.assign(this._disabled, parent._disabled);\n }\n var pattern = new Pattern(input_scanner);\n this.__patterns = {\n handlebars_comment: pattern.starting_with(/{{!--/).until_after(/--}}/),\n handlebars_unescaped: pattern.starting_with(/{{{/).until_after(/}}}/),\n handlebars: pattern.starting_with(/{{/).until_after(/}}/),\n php: pattern.starting_with(/<\\?(?:[= ]|php)/).until_after(/\\?>/),\n erb: pattern.starting_with(/<%[^%]/).until_after(/[^%]%>/),\n // django coflicts with handlebars a bit.\n django: pattern.starting_with(/{%/).until_after(/%}/),\n django_value: pattern.starting_with(/{{/).until_after(/}}/),\n django_comment: pattern.starting_with(/{#/).until_after(/#}/),\n smarty: pattern.starting_with(/{(?=[^}{\\s\\n])/).until_after(/[^\\s\\n]}/),\n smarty_comment: pattern.starting_with(/{\\*/).until_after(/\\*}/),\n smarty_literal: pattern.starting_with(/{literal}/).until_after(/{\\/literal}/)\n };\n}\nTemplatablePattern.prototype = new Pattern();\n\nTemplatablePattern.prototype._create = function() {\n return new TemplatablePattern(this._input, this);\n};\n\nTemplatablePattern.prototype._update = function() {\n this.__set_templated_pattern();\n};\n\nTemplatablePattern.prototype.disable = function(language) {\n var result = this._create();\n result._disabled[language] = true;\n result._update();\n return result;\n};\n\nTemplatablePattern.prototype.read_options = function(options) {\n var result = this._create();\n for (var language in template_names) {\n result._disabled[language] = options.templating.indexOf(language) === -1;\n }\n result._update();\n return result;\n};\n\nTemplatablePattern.prototype.exclude = function(language) {\n var result = this._create();\n result._excluded[language] = true;\n result._update();\n return result;\n};\n\nTemplatablePattern.prototype.read = function() {\n var result = '';\n if (this._match_pattern) {\n result = this._input.read(this._starting_pattern);\n } else {\n result = this._input.read(this._starting_pattern, this.__template_pattern);\n }\n var next = this._read_template();\n while (next) {\n if (this._match_pattern) {\n next += this._input.read(this._match_pattern);\n } else {\n next += this._input.readUntil(this.__template_pattern);\n }\n result += next;\n next = this._read_template();\n }\n\n if (this._until_after) {\n result += this._input.readUntilAfter(this._until_pattern);\n }\n return result;\n};\n\nTemplatablePattern.prototype.__set_templated_pattern = function() {\n var items = [];\n\n if (!this._disabled.php) {\n items.push(this.__patterns.php._starting_pattern.source);\n }\n if (!this._disabled.handlebars) {\n items.push(this.__patterns.handlebars._starting_pattern.source);\n }\n if (!this._disabled.erb) {\n items.push(this.__patterns.erb._starting_pattern.source);\n }\n if (!this._disabled.django) {\n items.push(this.__patterns.django._starting_pattern.source);\n // The starting pattern for django is more complex because it has different\n // patterns for value, comment, and other sections\n items.push(this.__patterns.django_value._starting_pattern.source);\n items.push(this.__patterns.django_comment._starting_pattern.source);\n }\n if (!this._disabled.smarty) {\n items.push(this.__patterns.smarty._starting_pattern.source);\n }\n\n if (this._until_pattern) {\n items.push(this._until_pattern.source);\n }\n this.__template_pattern = this._input.get_regexp('(?:' + items.join('|') + ')');\n};\n\nTemplatablePattern.prototype._read_template = function() {\n var resulting_string = '';\n var c = this._input.peek();\n if (c === '<') {\n var peek1 = this._input.peek(1);\n //if we're in a comment, do something special\n // We treat all comments as literals, even more than preformatted tags\n // we just look for the appropriate close tag\n if (!this._disabled.php && !this._excluded.php && peek1 === '?') {\n resulting_string = resulting_string ||\n this.__patterns.php.read();\n }\n if (!this._disabled.erb && !this._excluded.erb && peek1 === '%') {\n resulting_string = resulting_string ||\n this.__patterns.erb.read();\n }\n } else if (c === '{') {\n if (!this._disabled.handlebars && !this._excluded.handlebars) {\n resulting_string = resulting_string ||\n this.__patterns.handlebars_comment.read();\n resulting_string = resulting_string ||\n this.__patterns.handlebars_unescaped.read();\n resulting_string = resulting_string ||\n this.__patterns.handlebars.read();\n }\n if (!this._disabled.django) {\n // django coflicts with handlebars a bit.\n if (!this._excluded.django && !this._excluded.handlebars) {\n resulting_string = resulting_string ||\n this.__patterns.django_value.read();\n }\n if (!this._excluded.django) {\n resulting_string = resulting_string ||\n this.__patterns.django_comment.read();\n resulting_string = resulting_string ||\n this.__patterns.django.read();\n }\n }\n if (!this._disabled.smarty) {\n // smarty cannot be enabled with django or handlebars enabled\n if (this._disabled.django && this._disabled.handlebars) {\n resulting_string = resulting_string ||\n this.__patterns.smarty_comment.read();\n resulting_string = resulting_string ||\n this.__patterns.smarty_literal.read();\n resulting_string = resulting_string ||\n this.__patterns.smarty.read();\n }\n }\n }\n return resulting_string;\n};\n\n\nmodule.exports.TemplatablePattern = TemplatablePattern;\n\n\n/***/ }),\n/* 15 */,\n/* 16 */,\n/* 17 */,\n/* 18 */\n/***/ (function(module, __unused_webpack_exports, __webpack_require__) {\n\n/*jshint node:true */\n/*\n\n The MIT License (MIT)\n\n Copyright (c) 2007-2018 Einar Lielmanis, Liam Newman, and contributors.\n\n Permission is hereby granted, free of charge, to any person\n obtaining a copy of this software and associated documentation files\n (the \"Software\"), to deal in the Software without restriction,\n including without limitation the rights to use, copy, modify, merge,\n publish, distribute, sublicense, and/or sell copies of the Software,\n and to permit persons to whom the Software is furnished to do so,\n subject to the following conditions:\n\n The above copyright notice and this permission notice shall be\n included in all copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\n NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS\n BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN\n ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\n CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n*/\n\n\n\nvar Beautifier = (__webpack_require__(19).Beautifier),\n Options = (__webpack_require__(20).Options);\n\nfunction style_html(html_source, options, js_beautify, css_beautify) {\n var beautifier = new Beautifier(html_source, options, js_beautify, css_beautify);\n return beautifier.beautify();\n}\n\nmodule.exports = style_html;\nmodule.exports.defaultOptions = function() {\n return new Options();\n};\n\n\n/***/ }),\n/* 19 */\n/***/ (function(module, __unused_webpack_exports, __webpack_require__) {\n\n/*jshint node:true */\n/*\n\n The MIT License (MIT)\n\n Copyright (c) 2007-2018 Einar Lielmanis, Liam Newman, and contributors.\n\n Permission is hereby granted, free of charge, to any person\n obtaining a copy of this software and associated documentation files\n (the \"Software\"), to deal in the Software without restriction,\n including without limitation the rights to use, copy, modify, merge,\n publish, distribute, sublicense, and/or sell copies of the Software,\n and to permit persons to whom the Software is furnished to do so,\n subject to the following conditions:\n\n The above copyright notice and this permission notice shall be\n included in all copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\n NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS\n BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN\n ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\n CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n*/\n\n\n\nvar Options = (__webpack_require__(20).Options);\nvar Output = (__webpack_require__(2).Output);\nvar Tokenizer = (__webpack_require__(21).Tokenizer);\nvar TOKEN = (__webpack_require__(21).TOKEN);\n\nvar lineBreak = /\\r\\n|[\\r\\n]/;\nvar allLineBreaks = /\\r\\n|[\\r\\n]/g;\n\nvar Printer = function(options, base_indent_string) { //handles input/output and some other printing functions\n\n this.indent_level = 0;\n this.alignment_size = 0;\n this.max_preserve_newlines = options.max_preserve_newlines;\n this.preserve_newlines = options.preserve_newlines;\n\n this._output = new Output(options, base_indent_string);\n\n};\n\nPrinter.prototype.current_line_has_match = function(pattern) {\n return this._output.current_line.has_match(pattern);\n};\n\nPrinter.prototype.set_space_before_token = function(value, non_breaking) {\n this._output.space_before_token = value;\n this._output.non_breaking_space = non_breaking;\n};\n\nPrinter.prototype.set_wrap_point = function() {\n this._output.set_indent(this.indent_level, this.alignment_size);\n this._output.set_wrap_point();\n};\n\n\nPrinter.prototype.add_raw_token = function(token) {\n this._output.add_raw_token(token);\n};\n\nPrinter.prototype.print_preserved_newlines = function(raw_token) {\n var newlines = 0;\n if (raw_token.type !== TOKEN.TEXT && raw_token.previous.type !== TOKEN.TEXT) {\n newlines = raw_token.newlines ? 1 : 0;\n }\n\n if (this.preserve_newlines) {\n newlines = raw_token.newlines < this.max_preserve_newlines + 1 ? raw_token.newlines : this.max_preserve_newlines + 1;\n }\n for (var n = 0; n < newlines; n++) {\n this.print_newline(n > 0);\n }\n\n return newlines !== 0;\n};\n\nPrinter.prototype.traverse_whitespace = function(raw_token) {\n if (raw_token.whitespace_before || raw_token.newlines) {\n if (!this.print_preserved_newlines(raw_token)) {\n this._output.space_before_token = true;\n }\n return true;\n }\n return false;\n};\n\nPrinter.prototype.previous_token_wrapped = function() {\n return this._output.previous_token_wrapped;\n};\n\nPrinter.prototype.print_newline = function(force) {\n this._output.add_new_line(force);\n};\n\nPrinter.prototype.print_token = function(token) {\n if (token.text) {\n this._output.set_indent(this.indent_level, this.alignment_size);\n this._output.add_token(token.text);\n }\n};\n\nPrinter.prototype.indent = function() {\n this.indent_level++;\n};\n\nPrinter.prototype.get_full_indent = function(level) {\n level = this.indent_level + (level || 0);\n if (level < 1) {\n return '';\n }\n\n return this._output.get_indent_string(level);\n};\n\nvar get_type_attribute = function(start_token) {\n var result = null;\n var raw_token = start_token.next;\n\n // Search attributes for a type attribute\n while (raw_token.type !== TOKEN.EOF && start_token.closed !== raw_token) {\n if (raw_token.type === TOKEN.ATTRIBUTE && raw_token.text === 'type') {\n if (raw_token.next && raw_token.next.type === TOKEN.EQUALS &&\n raw_token.next.next && raw_token.next.next.type === TOKEN.VALUE) {\n result = raw_token.next.next.text;\n }\n break;\n }\n raw_token = raw_token.next;\n }\n\n return result;\n};\n\nvar get_custom_beautifier_name = function(tag_check, raw_token) {\n var typeAttribute = null;\n var result = null;\n\n if (!raw_token.closed) {\n return null;\n }\n\n if (tag_check === 'script') {\n typeAttribute = 'text/javascript';\n } else if (tag_check === 'style') {\n typeAttribute = 'text/css';\n }\n\n typeAttribute = get_type_attribute(raw_token) || typeAttribute;\n\n // For script and style tags that have a type attribute, only enable custom beautifiers for matching values\n // For those without a type attribute use default;\n if (typeAttribute.search('text/css') > -1) {\n result = 'css';\n } else if (typeAttribute.search(/module|((text|application|dojo)\\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\\+)?json|method|aspect))/) > -1) {\n result = 'javascript';\n } else if (typeAttribute.search(/(text|application|dojo)\\/(x-)?(html)/) > -1) {\n result = 'html';\n } else if (typeAttribute.search(/test\\/null/) > -1) {\n // Test only mime-type for testing the beautifier when null is passed as beautifing function\n result = 'null';\n }\n\n return result;\n};\n\nfunction in_array(what, arr) {\n return arr.indexOf(what) !== -1;\n}\n\nfunction TagFrame(parent, parser_token, indent_level) {\n this.parent = parent || null;\n this.tag = parser_token ? parser_token.tag_name : '';\n this.indent_level = indent_level || 0;\n this.parser_token = parser_token || null;\n}\n\nfunction TagStack(printer) {\n this._printer = printer;\n this._current_frame = null;\n}\n\nTagStack.prototype.get_parser_token = function() {\n return this._current_frame ? this._current_frame.parser_token : null;\n};\n\nTagStack.prototype.record_tag = function(parser_token) { //function to record a tag and its parent in this.tags Object\n var new_frame = new TagFrame(this._current_frame, parser_token, this._printer.indent_level);\n this._current_frame = new_frame;\n};\n\nTagStack.prototype._try_pop_frame = function(frame) { //function to retrieve the opening tag to the corresponding closer\n var parser_token = null;\n\n if (frame) {\n parser_token = frame.parser_token;\n this._printer.indent_level = frame.indent_level;\n this._current_frame = frame.parent;\n }\n\n return parser_token;\n};\n\nTagStack.prototype._get_frame = function(tag_list, stop_list) { //function to retrieve the opening tag to the corresponding closer\n var frame = this._current_frame;\n\n while (frame) { //till we reach '' (the initial value);\n if (tag_list.indexOf(frame.tag) !== -1) { //if this is it use it\n break;\n } else if (stop_list && stop_list.indexOf(frame.tag) !== -1) {\n frame = null;\n break;\n }\n frame = frame.parent;\n }\n\n return frame;\n};\n\nTagStack.prototype.try_pop = function(tag, stop_list) { //function to retrieve the opening tag to the corresponding closer\n var frame = this._get_frame([tag], stop_list);\n return this._try_pop_frame(frame);\n};\n\nTagStack.prototype.indent_to_tag = function(tag_list) {\n var frame = this._get_frame(tag_list);\n if (frame) {\n this._printer.indent_level = frame.indent_level;\n }\n};\n\nfunction Beautifier(source_text, options, js_beautify, css_beautify) {\n //Wrapper function to invoke all the necessary constructors and deal with the output.\n this._source_text = source_text || '';\n options = options || {};\n this._js_beautify = js_beautify;\n this._css_beautify = css_beautify;\n this._tag_stack = null;\n\n // Allow the setting of language/file-type specific options\n // with inheritance of overall settings\n var optionHtml = new Options(options, 'html');\n\n this._options = optionHtml;\n\n this._is_wrap_attributes_force = this._options.wrap_attributes.substr(0, 'force'.length) === 'force';\n this._is_wrap_attributes_force_expand_multiline = (this._options.wrap_attributes === 'force-expand-multiline');\n this._is_wrap_attributes_force_aligned = (this._options.wrap_attributes === 'force-aligned');\n this._is_wrap_attributes_aligned_multiple = (this._options.wrap_attributes === 'aligned-multiple');\n this._is_wrap_attributes_preserve = this._options.wrap_attributes.substr(0, 'preserve'.length) === 'preserve';\n this._is_wrap_attributes_preserve_aligned = (this._options.wrap_attributes === 'preserve-aligned');\n}\n\nBeautifier.prototype.beautify = function() {\n\n // if disabled, return the input unchanged.\n if (this._options.disabled) {\n return this._source_text;\n }\n\n var source_text = this._source_text;\n var eol = this._options.eol;\n if (this._options.eol === 'auto') {\n eol = '\\n';\n if (source_text && lineBreak.test(source_text)) {\n eol = source_text.match(lineBreak)[0];\n }\n }\n\n // HACK: newline parsing inconsistent. This brute force normalizes the input.\n source_text = source_text.replace(allLineBreaks, '\\n');\n\n var baseIndentString = source_text.match(/^[\\t ]*/)[0];\n\n var last_token = {\n text: '',\n type: ''\n };\n\n var last_tag_token = new TagOpenParserToken();\n\n var printer = new Printer(this._options, baseIndentString);\n var tokens = new Tokenizer(source_text, this._options).tokenize();\n\n this._tag_stack = new TagStack(printer);\n\n var parser_token = null;\n var raw_token = tokens.next();\n while (raw_token.type !== TOKEN.EOF) {\n\n if (raw_token.type === TOKEN.TAG_OPEN || raw_token.type === TOKEN.COMMENT) {\n parser_token = this._handle_tag_open(printer, raw_token, last_tag_token, last_token, tokens);\n last_tag_token = parser_token;\n } else if ((raw_token.type === TOKEN.ATTRIBUTE || raw_token.type === TOKEN.EQUALS || raw_token.type === TOKEN.VALUE) ||\n (raw_token.type === TOKEN.TEXT && !last_tag_token.tag_complete)) {\n parser_token = this._handle_inside_tag(printer, raw_token, last_tag_token, last_token);\n } else if (raw_token.type === TOKEN.TAG_CLOSE) {\n parser_token = this._handle_tag_close(printer, raw_token, last_tag_token);\n } else if (raw_token.type === TOKEN.TEXT) {\n parser_token = this._handle_text(printer, raw_token, last_tag_token);\n } else {\n // This should never happen, but if it does. Print the raw token\n printer.add_raw_token(raw_token);\n }\n\n last_token = parser_token;\n\n raw_token = tokens.next();\n }\n var sweet_code = printer._output.get_code(eol);\n\n return sweet_code;\n};\n\nBeautifier.prototype._handle_tag_close = function(printer, raw_token, last_tag_token) {\n var parser_token = {\n text: raw_token.text,\n type: raw_token.type\n };\n printer.alignment_size = 0;\n last_tag_token.tag_complete = true;\n\n printer.set_space_before_token(raw_token.newlines || raw_token.whitespace_before !== '', true);\n if (last_tag_token.is_unformatted) {\n printer.add_raw_token(raw_token);\n } else {\n if (last_tag_token.tag_start_char === '<') {\n printer.set_space_before_token(raw_token.text[0] === '/', true); // space before />, no space before >\n if (this._is_wrap_attributes_force_expand_multiline && last_tag_token.has_wrapped_attrs) {\n printer.print_newline(false);\n }\n }\n printer.print_token(raw_token);\n\n }\n\n if (last_tag_token.indent_content &&\n !(last_tag_token.is_unformatted || last_tag_token.is_content_unformatted)) {\n printer.indent();\n\n // only indent once per opened tag\n last_tag_token.indent_content = false;\n }\n\n if (!last_tag_token.is_inline_element &&\n !(last_tag_token.is_unformatted || last_tag_token.is_content_unformatted)) {\n printer.set_wrap_point();\n }\n\n return parser_token;\n};\n\nBeautifier.prototype._handle_inside_tag = function(printer, raw_token, last_tag_token, last_token) {\n var wrapped = last_tag_token.has_wrapped_attrs;\n var parser_token = {\n text: raw_token.text,\n type: raw_token.type\n };\n\n printer.set_space_before_token(raw_token.newlines || raw_token.whitespace_before !== '', true);\n if (last_tag_token.is_unformatted) {\n printer.add_raw_token(raw_token);\n } else if (last_tag_token.tag_start_char === '{' && raw_token.type === TOKEN.TEXT) {\n // For the insides of handlebars allow newlines or a single space between open and contents\n if (printer.print_preserved_newlines(raw_token)) {\n raw_token.newlines = 0;\n printer.add_raw_token(raw_token);\n } else {\n printer.print_token(raw_token);\n }\n } else {\n if (raw_token.type === TOKEN.ATTRIBUTE) {\n printer.set_space_before_token(true);\n } else if (raw_token.type === TOKEN.EQUALS) { //no space before =\n printer.set_space_before_token(false);\n } else if (raw_token.type === TOKEN.VALUE && raw_token.previous.type === TOKEN.EQUALS) { //no space before value\n printer.set_space_before_token(false);\n }\n\n if (raw_token.type === TOKEN.ATTRIBUTE && last_tag_token.tag_start_char === '<') {\n if (this._is_wrap_attributes_preserve || this._is_wrap_attributes_preserve_aligned) {\n printer.traverse_whitespace(raw_token);\n wrapped = wrapped || raw_token.newlines !== 0;\n }\n\n // Wrap for 'force' options, and if the number of attributes is at least that specified in 'wrap_attributes_min_attrs':\n // 1. always wrap the second and beyond attributes\n // 2. wrap the first attribute only if 'force-expand-multiline' is specified\n if (this._is_wrap_attributes_force &&\n last_tag_token.attr_count >= this._options.wrap_attributes_min_attrs &&\n (last_token.type !== TOKEN.TAG_OPEN || // ie. second attribute and beyond\n this._is_wrap_attributes_force_expand_multiline)) {\n printer.print_newline(false);\n wrapped = true;\n }\n }\n printer.print_token(raw_token);\n wrapped = wrapped || printer.previous_token_wrapped();\n last_tag_token.has_wrapped_attrs = wrapped;\n }\n return parser_token;\n};\n\nBeautifier.prototype._handle_text = function(printer, raw_token, last_tag_token) {\n var parser_token = {\n text: raw_token.text,\n type: 'TK_CONTENT'\n };\n if (last_tag_token.custom_beautifier_name) { //check if we need to format javascript\n this._print_custom_beatifier_text(printer, raw_token, last_tag_token);\n } else if (last_tag_token.is_unformatted || last_tag_token.is_content_unformatted) {\n printer.add_raw_token(raw_token);\n } else {\n printer.traverse_whitespace(raw_token);\n printer.print_token(raw_token);\n }\n return parser_token;\n};\n\nBeautifier.prototype._print_custom_beatifier_text = function(printer, raw_token, last_tag_token) {\n var local = this;\n if (raw_token.text !== '') {\n\n var text = raw_token.text,\n _beautifier,\n script_indent_level = 1,\n pre = '',\n post = '';\n if (last_tag_token.custom_beautifier_name === 'javascript' && typeof this._js_beautify === 'function') {\n _beautifier = this._js_beautify;\n } else if (last_tag_token.custom_beautifier_name === 'css' && typeof this._css_beautify === 'function') {\n _beautifier = this._css_beautify;\n } else if (last_tag_token.custom_beautifier_name === 'html') {\n _beautifier = function(html_source, options) {\n var beautifier = new Beautifier(html_source, options, local._js_beautify, local._css_beautify);\n return beautifier.beautify();\n };\n }\n\n if (this._options.indent_scripts === \"keep\") {\n script_indent_level = 0;\n } else if (this._options.indent_scripts === \"separate\") {\n script_indent_level = -printer.indent_level;\n }\n\n var indentation = printer.get_full_indent(script_indent_level);\n\n // if there is at least one empty line at the end of this text, strip it\n // we'll be adding one back after the text but before the containing tag.\n text = text.replace(/\\n[ \\t]*$/, '');\n\n // Handle the case where content is wrapped in a comment or cdata.\n if (last_tag_token.custom_beautifier_name !== 'html' &&\n text[0] === '<' && text.match(/^(|]]>)$/.exec(text);\n\n // if we start to wrap but don't finish, print raw\n if (!matched) {\n printer.add_raw_token(raw_token);\n return;\n }\n\n pre = indentation + matched[1] + '\\n';\n text = matched[4];\n if (matched[5]) {\n post = indentation + matched[5];\n }\n\n // if there is at least one empty line at the end of this text, strip it\n // we'll be adding one back after the text but before the containing tag.\n text = text.replace(/\\n[ \\t]*$/, '');\n\n if (matched[2] || matched[3].indexOf('\\n') !== -1) {\n // if the first line of the non-comment text has spaces\n // use that as the basis for indenting in null case.\n matched = matched[3].match(/[ \\t]+$/);\n if (matched) {\n raw_token.whitespace_before = matched[0];\n }\n }\n }\n\n if (text) {\n if (_beautifier) {\n\n // call the Beautifier if avaliable\n var Child_options = function() {\n this.eol = '\\n';\n };\n Child_options.prototype = this._options.raw_options;\n var child_options = new Child_options();\n text = _beautifier(indentation + text, child_options);\n } else {\n // simply indent the string otherwise\n var white = raw_token.whitespace_before;\n if (white) {\n text = text.replace(new RegExp('\\n(' + white + ')?', 'g'), '\\n');\n }\n\n text = indentation + text.replace(/\\n/g, '\\n' + indentation);\n }\n }\n\n if (pre) {\n if (!text) {\n text = pre + post;\n } else {\n text = pre + text + '\\n' + post;\n }\n }\n\n printer.print_newline(false);\n if (text) {\n raw_token.text = text;\n raw_token.whitespace_before = '';\n raw_token.newlines = 0;\n printer.add_raw_token(raw_token);\n printer.print_newline(true);\n }\n }\n};\n\nBeautifier.prototype._handle_tag_open = function(printer, raw_token, last_tag_token, last_token, tokens) {\n var parser_token = this._get_tag_open_token(raw_token);\n\n if ((last_tag_token.is_unformatted || last_tag_token.is_content_unformatted) &&\n !last_tag_token.is_empty_element &&\n raw_token.type === TOKEN.TAG_OPEN && !parser_token.is_start_tag) {\n // End element tags for unformatted or content_unformatted elements\n // are printed raw to keep any newlines inside them exactly the same.\n printer.add_raw_token(raw_token);\n parser_token.start_tag_token = this._tag_stack.try_pop(parser_token.tag_name);\n } else {\n printer.traverse_whitespace(raw_token);\n this._set_tag_position(printer, raw_token, parser_token, last_tag_token, last_token);\n if (!parser_token.is_inline_element) {\n printer.set_wrap_point();\n }\n printer.print_token(raw_token);\n }\n\n // count the number of attributes\n if (parser_token.is_start_tag && this._is_wrap_attributes_force) {\n var peek_index = 0;\n var peek_token;\n do {\n peek_token = tokens.peek(peek_index);\n if (peek_token.type === TOKEN.ATTRIBUTE) {\n parser_token.attr_count += 1;\n }\n peek_index += 1;\n } while (peek_token.type !== TOKEN.EOF && peek_token.type !== TOKEN.TAG_CLOSE);\n }\n\n //indent attributes an auto, forced, aligned or forced-align line-wrap\n if (this._is_wrap_attributes_force_aligned || this._is_wrap_attributes_aligned_multiple || this._is_wrap_attributes_preserve_aligned) {\n parser_token.alignment_size = raw_token.text.length + 1;\n }\n\n if (!parser_token.tag_complete && !parser_token.is_unformatted) {\n printer.alignment_size = parser_token.alignment_size;\n }\n\n return parser_token;\n};\n\nvar TagOpenParserToken = function(parent, raw_token) {\n this.parent = parent || null;\n this.text = '';\n this.type = 'TK_TAG_OPEN';\n this.tag_name = '';\n this.is_inline_element = false;\n this.is_unformatted = false;\n this.is_content_unformatted = false;\n this.is_empty_element = false;\n this.is_start_tag = false;\n this.is_end_tag = false;\n this.indent_content = false;\n this.multiline_content = false;\n this.custom_beautifier_name = null;\n this.start_tag_token = null;\n this.attr_count = 0;\n this.has_wrapped_attrs = false;\n this.alignment_size = 0;\n this.tag_complete = false;\n this.tag_start_char = '';\n this.tag_check = '';\n\n if (!raw_token) {\n this.tag_complete = true;\n } else {\n var tag_check_match;\n\n this.tag_start_char = raw_token.text[0];\n this.text = raw_token.text;\n\n if (this.tag_start_char === '<') {\n tag_check_match = raw_token.text.match(/^<([^\\s>]*)/);\n this.tag_check = tag_check_match ? tag_check_match[1] : '';\n } else {\n tag_check_match = raw_token.text.match(/^{{~?(?:[\\^]|#\\*?)?([^\\s}]+)/);\n this.tag_check = tag_check_match ? tag_check_match[1] : '';\n\n // handle \"{{#> myPartial}}\" or \"{{~#> myPartial}}\"\n if ((raw_token.text.startsWith('{{#>') || raw_token.text.startsWith('{{~#>')) && this.tag_check[0] === '>') {\n if (this.tag_check === '>' && raw_token.next !== null) {\n this.tag_check = raw_token.next.text.split(' ')[0];\n } else {\n this.tag_check = raw_token.text.split('>')[1];\n }\n }\n }\n\n this.tag_check = this.tag_check.toLowerCase();\n\n if (raw_token.type === TOKEN.COMMENT) {\n this.tag_complete = true;\n }\n\n this.is_start_tag = this.tag_check.charAt(0) !== '/';\n this.tag_name = !this.is_start_tag ? this.tag_check.substr(1) : this.tag_check;\n this.is_end_tag = !this.is_start_tag ||\n (raw_token.closed && raw_token.closed.text === '/>');\n\n // if whitespace handler ~ included (i.e. {{~#if true}}), handlebars tags start at pos 3 not pos 2\n var handlebar_starts = 2;\n if (this.tag_start_char === '{' && this.text.length >= 3) {\n if (this.text.charAt(2) === '~') {\n handlebar_starts = 3;\n }\n }\n\n // handlebars tags that don't start with # or ^ are single_tags, and so also start and end.\n this.is_end_tag = this.is_end_tag ||\n (this.tag_start_char === '{' && (this.text.length < 3 || (/[^#\\^]/.test(this.text.charAt(handlebar_starts)))));\n }\n};\n\nBeautifier.prototype._get_tag_open_token = function(raw_token) { //function to get a full tag and parse its type\n var parser_token = new TagOpenParserToken(this._tag_stack.get_parser_token(), raw_token);\n\n parser_token.alignment_size = this._options.wrap_attributes_indent_size;\n\n parser_token.is_end_tag = parser_token.is_end_tag ||\n in_array(parser_token.tag_check, this._options.void_elements);\n\n parser_token.is_empty_element = parser_token.tag_complete ||\n (parser_token.is_start_tag && parser_token.is_end_tag);\n\n parser_token.is_unformatted = !parser_token.tag_complete && in_array(parser_token.tag_check, this._options.unformatted);\n parser_token.is_content_unformatted = !parser_token.is_empty_element && in_array(parser_token.tag_check, this._options.content_unformatted);\n parser_token.is_inline_element = in_array(parser_token.tag_name, this._options.inline) || (this._options.inline_custom_elements && parser_token.tag_name.includes(\"-\")) || parser_token.tag_start_char === '{';\n\n return parser_token;\n};\n\nBeautifier.prototype._set_tag_position = function(printer, raw_token, parser_token, last_tag_token, last_token) {\n\n if (!parser_token.is_empty_element) {\n if (parser_token.is_end_tag) { //this tag is a double tag so check for tag-ending\n parser_token.start_tag_token = this._tag_stack.try_pop(parser_token.tag_name); //remove it and all ancestors\n } else { // it's a start-tag\n // check if this tag is starting an element that has optional end element\n // and do an ending needed\n if (this._do_optional_end_element(parser_token)) {\n if (!parser_token.is_inline_element) {\n printer.print_newline(false);\n }\n }\n\n this._tag_stack.record_tag(parser_token); //push it on the tag stack\n\n if ((parser_token.tag_name === 'script' || parser_token.tag_name === 'style') &&\n !(parser_token.is_unformatted || parser_token.is_content_unformatted)) {\n parser_token.custom_beautifier_name = get_custom_beautifier_name(parser_token.tag_check, raw_token);\n }\n }\n }\n\n if (in_array(parser_token.tag_check, this._options.extra_liners)) { //check if this double needs an extra line\n printer.print_newline(false);\n if (!printer._output.just_added_blankline()) {\n printer.print_newline(true);\n }\n }\n\n if (parser_token.is_empty_element) { //if this tag name is a single tag type (either in the list or has a closing /)\n\n // if you hit an else case, reset the indent level if you are inside an:\n // 'if', 'unless', or 'each' block.\n if (parser_token.tag_start_char === '{' && parser_token.tag_check === 'else') {\n this._tag_stack.indent_to_tag(['if', 'unless', 'each']);\n parser_token.indent_content = true;\n // Don't add a newline if opening {{#if}} tag is on the current line\n var foundIfOnCurrentLine = printer.current_line_has_match(/{{#if/);\n if (!foundIfOnCurrentLine) {\n printer.print_newline(false);\n }\n }\n\n // Don't add a newline before elements that should remain where they are.\n if (parser_token.tag_name === '!--' && last_token.type === TOKEN.TAG_CLOSE &&\n last_tag_token.is_end_tag && parser_token.text.indexOf('\\n') === -1) {\n //Do nothing. Leave comments on same line.\n } else {\n if (!(parser_token.is_inline_element || parser_token.is_unformatted)) {\n printer.print_newline(false);\n }\n this._calcluate_parent_multiline(printer, parser_token);\n }\n } else if (parser_token.is_end_tag) { //this tag is a double tag so check for tag-ending\n var do_end_expand = false;\n\n // deciding whether a block is multiline should not be this hard\n do_end_expand = parser_token.start_tag_token && parser_token.start_tag_token.multiline_content;\n do_end_expand = do_end_expand || (!parser_token.is_inline_element &&\n !(last_tag_token.is_inline_element || last_tag_token.is_unformatted) &&\n !(last_token.type === TOKEN.TAG_CLOSE && parser_token.start_tag_token === last_tag_token) &&\n last_token.type !== 'TK_CONTENT'\n );\n\n if (parser_token.is_content_unformatted || parser_token.is_unformatted) {\n do_end_expand = false;\n }\n\n if (do_end_expand) {\n printer.print_newline(false);\n }\n } else { // it's a start-tag\n parser_token.indent_content = !parser_token.custom_beautifier_name;\n\n if (parser_token.tag_start_char === '<') {\n if (parser_token.tag_name === 'html') {\n parser_token.indent_content = this._options.indent_inner_html;\n } else if (parser_token.tag_name === 'head') {\n parser_token.indent_content = this._options.indent_head_inner_html;\n } else if (parser_token.tag_name === 'body') {\n parser_token.indent_content = this._options.indent_body_inner_html;\n }\n }\n\n if (!(parser_token.is_inline_element || parser_token.is_unformatted) &&\n (last_token.type !== 'TK_CONTENT' || parser_token.is_content_unformatted)) {\n printer.print_newline(false);\n }\n\n this._calcluate_parent_multiline(printer, parser_token);\n }\n};\n\nBeautifier.prototype._calcluate_parent_multiline = function(printer, parser_token) {\n if (parser_token.parent && printer._output.just_added_newline() &&\n !((parser_token.is_inline_element || parser_token.is_unformatted) && parser_token.parent.is_inline_element)) {\n parser_token.parent.multiline_content = true;\n }\n};\n\n//To be used for

tag special case:\nvar p_closers = ['address', 'article', 'aside', 'blockquote', 'details', 'div', 'dl', 'fieldset', 'figcaption', 'figure', 'footer', 'form', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'header', 'hr', 'main', 'menu', 'nav', 'ol', 'p', 'pre', 'section', 'table', 'ul'];\nvar p_parent_excludes = ['a', 'audio', 'del', 'ins', 'map', 'noscript', 'video'];\n\nBeautifier.prototype._do_optional_end_element = function(parser_token) {\n var result = null;\n // NOTE: cases of \"if there is no more content in the parent element\"\n // are handled automatically by the beautifier.\n // It assumes parent or ancestor close tag closes all children.\n // https://www.w3.org/TR/html5/syntax.html#optional-tags\n if (parser_token.is_empty_element || !parser_token.is_start_tag || !parser_token.parent) {\n return;\n\n }\n\n if (parser_token.tag_name === 'body') {\n // A head element’s end tag may be omitted if the head element is not immediately followed by a space character or a comment.\n result = result || this._tag_stack.try_pop('head');\n\n //} else if (parser_token.tag_name === 'body') {\n // DONE: A body element’s end tag may be omitted if the body element is not immediately followed by a comment.\n\n } else if (parser_token.tag_name === 'li') {\n // An li element’s end tag may be omitted if the li element is immediately followed by another li element or if there is no more content in the parent element.\n result = result || this._tag_stack.try_pop('li', ['ol', 'ul', 'menu']);\n\n } else if (parser_token.tag_name === 'dd' || parser_token.tag_name === 'dt') {\n // A dd element’s end tag may be omitted if the dd element is immediately followed by another dd element or a dt element, or if there is no more content in the parent element.\n // A dt element’s end tag may be omitted if the dt element is immediately followed by another dt element or a dd element.\n result = result || this._tag_stack.try_pop('dt', ['dl']);\n result = result || this._tag_stack.try_pop('dd', ['dl']);\n\n\n } else if (parser_token.parent.tag_name === 'p' && p_closers.indexOf(parser_token.tag_name) !== -1) {\n // IMPORTANT: this else-if works because p_closers has no overlap with any other element we look for in this method\n // check for the parent element is an HTML element that is not an ,

\n
\n
\n
\n `\n )\n .append(frame.el);\n const elTools = createEl(\n 'div',\n {\n class: `${ppfx}tools`,\n style: 'pointer-events:none; display: none',\n },\n `\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n `\n );\n this.elTools = elTools;\n const twrp = cv?.toolsWrapper;\n twrp && twrp.appendChild(elTools); // TODO remove on frame remove\n onRender &&\n onRender({\n el,\n elTop: el.querySelector('[data-frame-top]'),\n elRight: el.querySelector('[data-frame-right]'),\n elBottom: el.querySelector('[data-frame-bottom]'),\n elLeft: el.querySelector('[data-frame-left]'),\n frame: model,\n frameWrapperView: this,\n remove: this.remove,\n startDrag: this.startDrag,\n });\n return this;\n }\n}\n","import CanvasModule from '..';\nimport ModuleDomainViews from '../../abstract/ModuleDomainViews';\nimport Frames from '../model/Frames';\nimport CanvasView from './CanvasView';\nimport FrameWrapView from './FrameWrapView';\n\nexport default class FramesView extends ModuleDomainViews {\n canvasView: CanvasView;\n private _module: CanvasModule;\n\n constructor(opts = {}, config: any) {\n super(opts, true);\n this.listenTo(this.collection, 'reset', this.render);\n this.canvasView = config.canvasView;\n this._module = config.module;\n }\n\n onRemoveBefore(items: FrameWrapView[], opts = {}) {\n items.forEach(item => item.remove(opts));\n }\n\n onRender() {\n const { $el, ppfx } = this;\n $el.attr({ class: `${ppfx}frames` });\n }\n\n clearItems() {\n const items = this.viewCollection || [];\n items.forEach(item => item.remove());\n this.viewCollection = [];\n }\n\n protected renderView(item: any, type: string) {\n return new FrameWrapView(item, this.canvasView);\n }\n}\n","import { bindAll, isNumber } from 'underscore';\nimport { ModuleView } from '../../abstract';\nimport { BoxRect, Coordinates, CoordinatesTypes, ElementRect } from '../../common';\nimport Component from '../../dom_components/model/Component';\nimport ComponentView from '../../dom_components/view/ComponentView';\nimport {\n createEl,\n getDocumentScroll,\n getElRect,\n getKeyChar,\n hasModifierKey,\n isTextNode,\n off,\n on,\n} from '../../utils/dom';\nimport { getComponentView, getElement, getUiClass } from '../../utils/mixins';\nimport Canvas from '../model/Canvas';\nimport Frame from '../model/Frame';\nimport { GetBoxRectOptions, ToWorldOption } from '../types';\nimport FrameView from './FrameView';\nimport FramesView from './FramesView';\n\nexport interface MarginPaddingOffsets {\n marginTop?: number;\n marginRight?: number;\n marginBottom?: number;\n marginLeft?: number;\n paddingTop?: number;\n paddingRight?: number;\n paddingBottom?: number;\n paddingLeft?: number;\n}\n\nexport type ElementPosOpts = {\n avoidFrameOffset?: boolean;\n avoidFrameZoom?: boolean;\n noScroll?: boolean;\n};\n\nexport interface FitViewportOptions {\n frame?: Frame;\n gap?: number | { x: number; y: number };\n ignoreHeight?: boolean;\n el?: HTMLElement;\n}\n\nexport default class CanvasView extends ModuleView {\n template() {\n const { pfx } = this;\n return `\n
\n
\n
\n
\n \n `;\n }\n /*get className(){\n return this.pfx + 'canvas':\n }*/\n hlEl?: HTMLElement;\n badgeEl?: HTMLElement;\n placerEl?: HTMLElement;\n ghostEl?: HTMLElement;\n toolbarEl?: HTMLElement;\n resizerEl?: HTMLElement;\n offsetEl?: HTMLElement;\n fixedOffsetEl?: HTMLElement;\n toolsGlobEl?: HTMLElement;\n toolsEl?: HTMLElement;\n framesArea?: HTMLElement;\n toolsWrapper?: HTMLElement;\n spotsEl?: HTMLElement;\n cvStyle?: HTMLElement;\n clsUnscale: string;\n ready = false;\n\n frames!: FramesView;\n frame?: FrameView;\n\n private timerZoom?: number;\n\n private frmOff?: { top: number; left: number; width: number; height: number };\n private cvsOff?: { top: number; left: number; width: number; height: number };\n\n constructor(model: Canvas) {\n super({ model });\n bindAll(this, 'clearOff', 'onKeyPress', 'onWheel', 'onPointer');\n const { em, pfx, ppfx } = this;\n const { events } = this.module;\n this.className = `${pfx}canvas ${ppfx}no-touch-actions${!em.config.customUI ? ` ${pfx}canvas-bg` : ''}`;\n this.clsUnscale = `${pfx}unscale`;\n this._initFrames();\n this.listenTo(em, 'change:canvasOffset', this.clearOff);\n this.listenTo(em, 'component:selected', this.checkSelected);\n this.listenTo(em, `${events.coords} ${events.zoom}`, this.updateFrames);\n this.listenTo(model, 'change:frames', this._onFramesUpdate);\n this.toggleListeners(true);\n }\n\n _onFramesUpdate() {\n this._initFrames();\n this._renderFrames();\n }\n\n _initFrames() {\n const { frames, model, config, em } = this;\n const collection = model.frames;\n em.set('readyCanvas', 0);\n collection.once('loaded:all', () => em.set('readyCanvas', 1));\n frames?.remove();\n this.frames = new FramesView(\n { collection },\n {\n ...config,\n canvasView: this,\n }\n );\n }\n\n checkSelected(component: Component, opts: { scroll?: ScrollIntoViewOptions } = {}) {\n const { scroll } = opts;\n const currFrame = this.em.getCurrentFrame();\n\n scroll &&\n component.views?.forEach(view => {\n view.frameView === currFrame && view.scrollIntoView(scroll);\n });\n }\n\n remove(...args: any) {\n this.frames?.remove();\n //@ts-ignore\n this.frames = undefined;\n ModuleView.prototype.remove.apply(this, args);\n this.toggleListeners(false);\n return this;\n }\n\n preventDefault(ev: Event) {\n if (ev) {\n ev.preventDefault();\n (ev as any)._parentEvent?.preventDefault();\n }\n }\n\n toggleListeners(enable: boolean) {\n const { el, config } = this;\n const fn = enable ? on : off;\n fn(document, 'keypress', this.onKeyPress);\n fn(window, 'scroll resize', this.clearOff);\n fn(el, 'wheel', this.onWheel, { passive: !config.infiniteCanvas });\n fn(el, 'pointermove', this.onPointer);\n }\n\n screenToWorld(x: number, y: number): Coordinates {\n const { module } = this;\n const coords = module.getCoords();\n const zoom = module.getZoomMultiplier();\n const vwDelta = this.getViewportDelta();\n\n return {\n x: (x - coords.x - vwDelta.x) * zoom,\n y: (y - coords.y - vwDelta.y) * zoom,\n };\n }\n\n onPointer(ev: WheelEvent) {\n if (!this.config.infiniteCanvas) return;\n\n const canvasRect = this.getCanvasOffset();\n const docScroll = getDocumentScroll();\n const screenCoords: Coordinates = {\n x: ev.clientX - canvasRect.left + docScroll.x,\n y: ev.clientY - canvasRect.top + docScroll.y,\n };\n\n if ((ev as any)._parentEvent) {\n // with _parentEvent means was triggered from the iframe\n const frameRect = (ev.target as HTMLElement).getBoundingClientRect();\n const zoom = this.module.getZoomDecimal();\n screenCoords.x = frameRect.left - canvasRect.left + docScroll.x + ev.clientX * zoom;\n screenCoords.y = frameRect.top - canvasRect.top + docScroll.y + ev.clientY * zoom;\n }\n\n this.model.set({\n pointerScreen: screenCoords,\n pointer: this.screenToWorld(screenCoords.x, screenCoords.y),\n });\n }\n\n onKeyPress(ev: KeyboardEvent) {\n const { em } = this;\n const key = getKeyChar(ev);\n\n if (key === ' ' && em.getZoomDecimal() !== 1 && !em.Canvas.isInputFocused()) {\n this.preventDefault(ev);\n em.Editor.runCommand('core:canvas-move');\n }\n }\n\n onWheel(ev: WheelEvent) {\n const { module, config } = this;\n if (config.infiniteCanvas) {\n this.preventDefault(ev);\n const { deltaX, deltaY } = ev;\n const zoom = module.getZoomDecimal();\n const isZooming = hasModifierKey(ev);\n const coords = module.getCoords();\n\n if (isZooming) {\n const newZoom = zoom - deltaY * zoom * 0.01;\n module.setZoom(newZoom * 100);\n\n // Update coordinates based on pointer\n const pointer = this.model.getPointerCoords(CoordinatesTypes.Screen);\n const canvasRect = this.getCanvasOffset();\n const pointerX = pointer.x - canvasRect.width / 2;\n const pointerY = pointer.y - canvasRect.height / 2;\n const zoomDelta = newZoom / zoom;\n const x = pointerX - (pointerX - coords.x) * zoomDelta;\n const y = pointerY - (pointerY - coords.y) * zoomDelta;\n module.setCoords(x, y);\n } else {\n this.onPointer(ev);\n module.setCoords(coords.x - deltaX, coords.y - deltaY);\n }\n }\n }\n\n updateFrames(ev: Event) {\n const { em } = this;\n const toolsWrpEl = this.toolsWrapper!;\n const defOpts = { preserveSelected: 1 };\n this.updateFramesArea();\n this.clearOff();\n toolsWrpEl.style.display = 'none';\n em.trigger('canvas:update', ev);\n this.timerZoom && clearTimeout(this.timerZoom);\n this.timerZoom = setTimeout(() => {\n em.stopDefault(defOpts);\n em.runDefault(defOpts);\n toolsWrpEl.style.display = '';\n }, 300) as any;\n }\n\n updateFramesArea() {\n const { framesArea, model, module, cvStyle, clsUnscale } = this;\n const mpl = module.getZoomMultiplier();\n\n if (framesArea) {\n const { x, y } = model.attributes;\n const zoomDc = module.getZoomDecimal();\n\n framesArea.style.transform = `scale(${zoomDc}) translate(${x * mpl}px, ${y * mpl}px)`;\n }\n\n if (cvStyle) {\n cvStyle.innerHTML = `\n .${clsUnscale} { scale: ${mpl} }\n `;\n }\n }\n\n fitViewport(opts: FitViewportOptions = {}) {\n const { em, module, model } = this;\n const canvasRect = this.getCanvasOffset();\n const { el } = opts;\n const elFrame = el && getComponentView(el)?.frameView;\n const frame = elFrame ? elFrame.model : opts.frame || em.getCurrentFrameModel() || model.frames.at(0);\n const { x, y } = frame.attributes;\n const boxRect: BoxRect = {\n x: x ?? 0,\n y: y ?? 0,\n width: frame.width,\n height: frame.height,\n };\n\n if (el) {\n const elRect = this.getElBoxRect(el);\n boxRect.x = boxRect.x + elRect.x;\n boxRect.y = boxRect.y + elRect.y;\n boxRect.width = elRect.width;\n boxRect.height = elRect.height;\n }\n\n const noHeight = opts.ignoreHeight;\n const gap = opts.gap ?? 0;\n const gapIsNum = isNumber(gap);\n const gapX = gapIsNum ? gap : gap.x;\n const gapY = gapIsNum ? gap : gap.y;\n const boxWidth = boxRect.width + gapX * 2;\n const boxHeight = boxRect.height + gapY * 2;\n const canvasWidth = canvasRect.width;\n const canvasHeight = canvasRect.height;\n const widthRatio = canvasWidth / boxWidth;\n const heightRatio = canvasHeight / boxHeight;\n\n const zoomRatio = noHeight ? widthRatio : Math.min(widthRatio, heightRatio);\n const zoom = zoomRatio * 100;\n module.setZoom(zoom);\n\n // check for the frame witdh is necessary as we're centering the frame via CSS\n const coordX = -boxRect.x + (frame.width >= canvasWidth ? canvasWidth / 2 - boxWidth / 2 : -gapX);\n const coordY = -boxRect.y + canvasHeight / 2 - boxHeight / 2;\n\n const coords = {\n x: (coordX + gapX) * zoomRatio,\n y: (coordY + gapY) * zoomRatio,\n };\n\n if (noHeight) {\n const zoomMltp = module.getZoomMultiplier();\n const canvasWorldHeight = canvasHeight * zoomMltp;\n const canvasHeightDiff = canvasWorldHeight - canvasHeight;\n const yDelta = canvasHeightDiff / 2;\n coords.y = (-boxRect.y + gapY) * zoomRatio - yDelta / zoomMltp;\n }\n\n module.setCoords(coords.x, coords.y);\n }\n\n /**\n * Checks if the element is visible in the canvas's viewport\n * @param {HTMLElement} el\n * @return {Boolean}\n */\n isElInViewport(el: HTMLElement) {\n const elem = getElement(el);\n const rect = getElRect(elem);\n const frameRect = this.getFrameOffset(elem);\n const rTop = rect.top;\n const rLeft = rect.left;\n return rTop >= 0 && rLeft >= 0 && rTop <= frameRect.height && rLeft <= frameRect.width;\n }\n\n /**\n * Get the offset of the element\n * @param {HTMLElement} el\n * @return { {top: number, left: number, width: number, height: number} }\n */\n offset(el?: HTMLElement, opts: ElementPosOpts = {}) {\n const { noScroll } = opts;\n const rect = getElRect(el);\n const scroll = noScroll ? { x: 0, y: 0 } : getDocumentScroll(el);\n\n return {\n top: rect.top + scroll.y,\n left: rect.left + scroll.x,\n width: rect.width,\n height: rect.height,\n };\n }\n\n getRectToScreen(boxRect: Partial): BoxRect {\n const zoom = this.module.getZoomDecimal();\n const coords = this.module.getCoords();\n const vwDelta = this.getViewportDelta();\n const x = (boxRect.x ?? 0) * zoom + coords.x + vwDelta.x || 0;\n const y = (boxRect.y ?? 0) * zoom + coords.y + vwDelta.y || 0;\n\n return {\n x,\n y,\n width: (boxRect.width ?? 0) * zoom,\n height: (boxRect.height ?? 0) * zoom,\n };\n }\n\n getElBoxRect(el: HTMLElement, opts: GetBoxRectOptions = {}): BoxRect {\n const { module } = this;\n const { width, height, left, top } = getElRect(el);\n const frameView = getComponentView(el)?.frameView;\n const frameRect = frameView?.getBoxRect();\n const zoomMlt = module.getZoomMultiplier();\n const frameX = frameRect?.x ?? 0;\n const frameY = frameRect?.y ?? 0;\n const canvasEl = this.el;\n const docScroll = getDocumentScroll();\n const xWithFrame = left + frameX + (canvasEl.scrollLeft + docScroll.x) * zoomMlt;\n const yWithFrame = top + frameY + (canvasEl.scrollTop + docScroll.y) * zoomMlt;\n const boxRect = {\n x: xWithFrame,\n y: yWithFrame,\n width,\n height,\n };\n\n if (opts.local) {\n boxRect.x = left;\n boxRect.y = top;\n }\n\n return opts.toScreen ? this.getRectToScreen(boxRect) : boxRect;\n }\n\n getViewportRect(opts: ToWorldOption = {}): BoxRect {\n const { top, left, width, height } = this.getCanvasOffset();\n const { module } = this;\n\n if (opts.toWorld) {\n const zoom = module.getZoomMultiplier();\n const coords = module.getCoords();\n const vwDelta = this.getViewportDelta();\n const x = -coords.x - vwDelta.x || 0;\n const y = -coords.y - vwDelta.y || 0;\n\n return {\n x: x * zoom,\n y: y * zoom,\n width: width * zoom,\n height: height * zoom,\n };\n } else {\n return {\n x: left,\n y: top,\n width,\n height,\n };\n }\n }\n\n getViewportDelta(opts: { withZoom?: number } = {}): Coordinates {\n const zoom = this.module.getZoomMultiplier();\n const { width, height } = this.getCanvasOffset();\n const worldWidth = width * zoom;\n const worldHeight = height * zoom;\n const widthDelta = worldWidth - width;\n const heightDelta = worldHeight - height;\n\n return {\n x: widthDelta / 2 / zoom,\n y: heightDelta / 2 / zoom,\n };\n }\n\n /**\n * Cleare cached offsets\n * @private\n */\n clearOff() {\n this.frmOff = undefined;\n this.cvsOff = undefined;\n }\n\n /**\n * Return frame offset\n * @return { {top: number, left: number, width: number, height: number} }\n * @public\n */\n getFrameOffset(el?: HTMLElement) {\n if (!this.frmOff || el) {\n const frame = this.frame?.el;\n const winEl = el?.ownerDocument.defaultView;\n const frEl = winEl ? (winEl.frameElement as HTMLElement) : frame;\n this.frmOff = this.offset(frEl || frame);\n }\n return this.frmOff;\n }\n\n /**\n * Return canvas offset\n * @return { {top: number, left: number, width: number, height: number} }\n * @public\n */\n getCanvasOffset() {\n if (!this.cvsOff) this.cvsOff = this.offset(this.el);\n return this.cvsOff;\n }\n\n /**\n * Returns element's rect info\n * @param {HTMLElement} el\n * @param {object} opts\n * @return { {top: number, left: number, width: number, height: number, zoom: number, rect: any} }\n * @public\n */\n getElementPos(el: HTMLElement, opts: ElementPosOpts = {}) {\n const zoom = this.module.getZoomDecimal();\n const frameOffset = this.getFrameOffset(el);\n const canvasEl = this.el;\n const canvasOffset = this.getCanvasOffset();\n const elRect = this.offset(el, opts);\n const frameTop = opts.avoidFrameOffset ? 0 : frameOffset.top;\n const frameLeft = opts.avoidFrameOffset ? 0 : frameOffset.left;\n\n const elTop = opts.avoidFrameZoom ? elRect.top : elRect.top * zoom;\n const elLeft = opts.avoidFrameZoom ? elRect.left : elRect.left * zoom;\n\n const top = opts.avoidFrameOffset ? elTop : elTop + frameTop - canvasOffset.top + canvasEl.scrollTop;\n const left = opts.avoidFrameOffset ? elLeft : elLeft + frameLeft - canvasOffset.left + canvasEl.scrollLeft;\n const height = opts.avoidFrameZoom ? elRect.height : elRect.height * zoom;\n const width = opts.avoidFrameZoom ? elRect.width : elRect.width * zoom;\n\n return { top, left, height, width, zoom, rect: elRect };\n }\n\n /**\n * Returns element's offsets like margins and paddings\n * @param {HTMLElement} el\n * @return { MarginPaddingOffsets }\n * @public\n */\n getElementOffsets(el: HTMLElement) {\n if (!el || isTextNode(el)) return {};\n const result: MarginPaddingOffsets = {};\n const styles = window.getComputedStyle(el);\n const zoom = this.module.getZoomDecimal();\n const marginPaddingOffsets: (keyof MarginPaddingOffsets)[] = [\n 'marginTop',\n 'marginRight',\n 'marginBottom',\n 'marginLeft',\n 'paddingTop',\n 'paddingRight',\n 'paddingBottom',\n 'paddingLeft',\n ];\n marginPaddingOffsets.forEach(offset => {\n result[offset] = parseFloat(styles[offset]) * zoom;\n });\n\n return result;\n }\n\n /**\n * Returns position data of the canvas element\n * @return { {top: number, left: number, width: number, height: number} } obj Position object\n * @public\n */\n getPosition(opts: any = {}): ElementRect {\n const doc = this.frame?.el.contentDocument;\n if (!doc) {\n return {\n top: 0,\n left: 0,\n width: 0,\n height: 0,\n };\n }\n const bEl = doc.body;\n const zoom = this.module.getZoomDecimal();\n const fo = this.getFrameOffset();\n const co = this.getCanvasOffset();\n const { noScroll } = opts;\n\n return {\n top: fo.top + (noScroll ? 0 : bEl.scrollTop) * zoom - co.top,\n left: fo.left + (noScroll ? 0 : bEl.scrollLeft) * zoom - co.left,\n width: co.width,\n height: co.height,\n };\n }\n\n /**\n * Update javascript of a specific component passed by its View\n * @param {ModuleView} view Component's View\n * @private\n */\n //TODO change type after the ComponentView was updated to ts\n updateScript(view: ComponentView) {\n const model = view.model;\n const id = model.getId();\n console.log(\"//////////////////////////////////////////////////////////////////\\n/////////////// updateScript////////////////\");\n if (!view.scriptContainer) {\n view.scriptContainer = createEl('div', { 'data-id': id });\n const jsEl = this.getJsContainer();\n jsEl?.appendChild(view.scriptContainer);\n }\n\n view.el.id = id;\n // In editor, I make use of setTimeout as during the append process of elements\n // those will not be available immediately, therefore 'item' variable\n const script = document.createElement('script');\n const scriptFn = model.getScriptString();\n const scriptFnStr = model.get('script-props') ? scriptFn : `function(){\\n${scriptFn}\\n;}`;\n const scriptProps = JSON.stringify(model.__getScriptProps());\n //@ts-ignore\n script.innerHTML = model?.globalScript ?? ''\n if(scriptFnStr){\n script.innerHTML += `\n setTimeout(function() {\n var item = document.getElementById('${id}');\n if (!item) return;\n (${scriptFnStr}.bind(item))(${scriptProps})\n }, 1);`;\n }\n // #873\n // Adding setTimeout will make js components work on init of the editor\n setTimeout(() => {\n const scr = view.scriptContainer;\n scr?.replaceChildren(script);\n }, 0);\n }\n\n /**\n * Get javascript container\n * @private\n */\n getJsContainer(view?: ComponentView) {\n const frameView = this.getFrameView(view);\n return frameView?.getJsContainer();\n }\n\n getFrameView(view?: ComponentView) {\n return view?.frameView || this.em.getCurrentFrame();\n }\n\n _renderFrames() {\n if (!this.ready) return;\n const { model, frames, em, framesArea } = this;\n const frms = model.frames;\n frms.listenToLoad();\n frames.render();\n const mainFrame = frms.at(0);\n const currFrame = mainFrame?.view;\n em.setCurrentFrame(currFrame);\n framesArea?.appendChild(frames.el);\n this.frame = currFrame;\n this.updateFramesArea();\n }\n\n renderFrames() {\n this._renderFrames();\n }\n\n render() {\n const { el, $el, ppfx, config, em } = this;\n $el.html(this.template());\n const $frames = $el.find('[data-frames]');\n this.framesArea = $frames.get(0);\n\n const toolsWrp = $el.find('[data-tools]');\n this.toolsWrapper = toolsWrp.get(0);\n toolsWrp.append(`\n
\n
\n
\n
\n
\n
\n ${config.extHl ? `
` : ''}\n
\n
\n
\n
\n
\n
\n
\n `);\n this.toolsEl = el.querySelector(`#${ppfx}tools`)!;\n this.hlEl = el.querySelector(`.${ppfx}highlighter`)!;\n this.badgeEl = el.querySelector(`.${ppfx}badge`)!;\n this.placerEl = el.querySelector(`.${ppfx}placeholder`)!;\n this.ghostEl = el.querySelector(`.${ppfx}ghost`)!;\n this.toolbarEl = el.querySelector(`.${ppfx}toolbar`)!;\n this.resizerEl = el.querySelector(`.${ppfx}resizer`)!;\n this.offsetEl = el.querySelector(`.${ppfx}offset-v`)!;\n this.fixedOffsetEl = el.querySelector(`.${ppfx}offset-fixed-v`)!;\n this.toolsGlobEl = el.querySelector(`.${ppfx}tools-gl`)!;\n this.spotsEl = el.querySelector('[data-spots]')!;\n this.cvStyle = el.querySelector('[data-canvas-style]')!;\n this.el.className = getUiClass(em, this.className);\n this.ready = true;\n this._renderFrames();\n\n return this;\n }\n}\n","/**\n * You can customize the initial state of the module from the editor initialization, by passing the following [Configuration Object](https://github.com/GrapesJS/grapesjs/blob/master/src/canvas/config/config.ts)\n * ```js\n * const editor = grapesjs.init({\n * canvas: {\n * // options\n * }\n * })\n * ```\n *\n * Once the editor is instantiated you can use its API and listen to its events. Before using these methods, you should get the module from the instance.\n *\n * ```js\n * // Listen to events\n * editor.on('canvas:drop', () => { ... });\n *\n * // Use the API\n * const canvas = editor.Canvas;\n * canvas.setCoords(...);\n * ```\n *\n * {REPLACE_EVENTS}\n *\n * [Component]: component.html\n * [Frame]: frame.html\n * [CanvasSpot]: canvas_spot.html\n *\n * @module Canvas\n */\n\nimport { isArray, isUndefined } from 'underscore';\nimport { Module } from '../abstract';\nimport { AddOptions, Coordinates } from '../common';\nimport Component from '../dom_components/model/Component';\nimport ComponentView from '../dom_components/view/ComponentView';\nimport EditorModel from '../editor/model/Editor';\nimport { getElement, getViewEl } from '../utils/mixins';\nimport defaults, { CanvasConfig } from './config/config';\nimport Canvas from './model/Canvas';\nimport CanvasSpot, { CanvasSpotBuiltInTypes, CanvasSpotProps } from './model/CanvasSpot';\nimport CanvasSpots from './model/CanvasSpots';\nimport Frame from './model/Frame';\nimport { CanvasEvents, ToWorldOption } from './types';\nimport CanvasView, { FitViewportOptions } from './view/CanvasView';\nimport FrameView from './view/FrameView';\n\nexport type CanvasEvent = `${CanvasEvents}`;\n\nexport default class CanvasModule extends Module {\n /**\n * Get configuration object\n * @name getConfig\n * @function\n * @return {Object}\n */\n\n /**\n * Used inside RTE\n * @private\n */\n getCanvasView(): CanvasView {\n return this.canvasView as any;\n }\n\n canvas: Canvas;\n model: Canvas;\n spots: CanvasSpots;\n events = CanvasEvents;\n framesById: Record = {};\n private canvasView?: CanvasView;\n\n /**\n * Initialize module. Automatically called with a new instance of the editor\n * @param {Object} config Configurations\n * @private\n */\n constructor(em: EditorModel) {\n super(em, 'Canvas', defaults);\n\n this.canvas = new Canvas(this);\n this.spots = new CanvasSpots(this);\n this.model = this.canvas;\n this.startAutoscroll = this.startAutoscroll.bind(this);\n this.stopAutoscroll = this.stopAutoscroll.bind(this);\n return this;\n }\n\n postLoad() {\n this.model.init();\n }\n\n getModel() {\n return this.canvas;\n }\n\n /**\n * Get the canvas element\n * @returns {HTMLElement}\n */\n getElement() {\n return this.getCanvasView().el;\n }\n\n getFrame(index?: number) {\n return this.getFrames()[index || 0];\n }\n\n /**\n * Get the main frame element of the canvas\n * @returns {HTMLIFrameElement}\n */\n getFrameEl() {\n const { frame } = this.canvasView || {};\n return frame?.el as HTMLIFrameElement;\n }\n\n getFramesEl() {\n return this.canvasView?.framesArea as HTMLElement;\n }\n\n /**\n * Get the main frame window instance\n * @returns {Window}\n */\n getWindow() {\n const { frame } = this.canvasView || {};\n return frame?.getWindow() as Window;\n }\n\n /**\n * Get the main frame document element\n * @returns {HTMLDocument}\n */\n getDocument() {\n const frame = this.getFrameEl();\n return frame?.contentDocument as Document;\n }\n\n /**\n * Get the main frame body element\n * @return {HTMLBodyElement}\n */\n getBody() {\n const doc = this.getDocument();\n return doc?.body as HTMLBodyElement;\n }\n\n _getLocalEl(globalEl: any, compView: ComponentView, method: keyof FrameView) {\n let result = globalEl;\n const frameView = compView?.frameView;\n result = frameView ? (frameView as any)[method]() : result;\n\n return result;\n }\n\n /**\n * Returns element containing all global canvas tools\n * @returns {HTMLElement}\n * @private\n */\n getGlobalToolsEl() {\n return this.canvasView?.toolsGlobEl;\n }\n\n /**\n * Returns element containing all canvas tools\n * @returns {HTMLElement}\n * @private\n */\n getToolsEl(compView?: any) {\n return this._getLocalEl(this.getCanvasView().toolsEl, compView, 'getToolsEl');\n }\n\n /**\n * Returns highlighter element\n * @returns {HTMLElement}\n * @private\n */\n getHighlighter(compView?: any) {\n return this._getLocalEl(this.getCanvasView().hlEl, compView, 'getHighlighter');\n }\n\n /**\n * Returns badge element\n * @returns {HTMLElement}\n * @private\n */\n getBadgeEl(compView: any) {\n return this._getLocalEl(this.getCanvasView().badgeEl, compView, 'getBadgeEl');\n }\n\n /**\n * Returns placer element\n * @returns {HTMLElement}\n * @private\n */\n getPlacerEl() {\n return this.getCanvasView().placerEl;\n }\n\n /**\n * Returns ghost element\n * @returns {HTMLElement}\n * @private\n */\n getGhostEl() {\n return this.getCanvasView().ghostEl;\n }\n\n /**\n * Returns toolbar element\n * @returns {HTMLElement}\n * @private\n */\n getToolbarEl() {\n return this.getCanvasView().toolbarEl;\n }\n\n /**\n * Returns resizer element\n * @returns {HTMLElement}\n * @private\n */\n getResizerEl() {\n return this.getCanvasView().resizerEl;\n }\n\n /**\n * Returns offset viewer element\n * @returns {HTMLElement}\n * @private\n */\n getOffsetViewerEl(compView: any) {\n return this._getLocalEl(this.getCanvasView().offsetEl, compView, 'getOffsetViewerEl');\n }\n\n /**\n * Returns fixed offset viewer element\n * @returns {HTMLElement}\n * @private\n */\n getFixedOffsetViewerEl() {\n return this.getCanvasView().fixedOffsetEl;\n }\n\n getSpotsEl() {\n return this.canvasView?.spotsEl;\n }\n\n render(): HTMLElement {\n this.canvasView?.remove();\n this.canvasView = new CanvasView(this.canvas);\n return this.canvasView.render().el;\n }\n\n /**\n * Get frame position\n * @returns {Object}\n * @private\n */\n getOffset() {\n var frameOff = this.offset(this.getFrameEl());\n var canvasOff = this.offset(this.getElement());\n return {\n top: frameOff.top - canvasOff.top,\n left: frameOff.left - canvasOff.left,\n };\n }\n\n /**\n * Get the offset of the passed component element\n * @param {HTMLElement} el\n * @returns {Object}\n * @private\n */\n offset(el: HTMLElement) {\n return this.getCanvasView().offset(el);\n }\n\n /**\n * Set custom badge naming strategy\n * @param {Function} f\n * @example\n * canvas.setCustomBadgeLabel(function(component){\n * return component.getName();\n * });\n */\n setCustomBadgeLabel(f: Function) {\n //@ts-ignore\n this.config.customBadgeLabel = f;\n }\n\n /**\n * Get element position relative to the canvas\n * @param {HTMLElement} el\n * @returns {Object}\n * @private\n */\n getElementPos(el: HTMLElement, opts?: any) {\n return this.getCanvasView().getElementPos(el, opts);\n }\n\n /**\n * Returns element's offsets like margins and paddings\n * @param {HTMLElement} el\n * @returns {Object}\n * @private\n */\n getElementOffsets(el: HTMLElement) {\n return this.getCanvasView().getElementOffsets(el);\n }\n\n /**\n * Get canvas rectangular data\n * @returns {Object}\n */\n getRect() {\n const { top = 0, left = 0 } = this.getCanvasView().getPosition() ?? {};\n return {\n ...this.getCanvasView().getCanvasOffset(),\n topScroll: top,\n leftScroll: left,\n };\n }\n\n /**\n * This method comes handy when you need to attach something like toolbars\n * to elements inside the canvas, dealing with all relative position,\n * offsets, etc. and returning as result the object with positions which are\n * viewable by the user (when the canvas is scrolled the top edge of the element\n * is not viewable by the user anymore so the new top edge is the one of the canvas)\n *\n * The target should be visible before being passed here as invisible elements\n * return empty string as width\n * @param {HTMLElement} target The target in this case could be the toolbar\n * @param {HTMLElement} element The element on which I'd attach the toolbar\n * @param {Object} options Custom options\n * @param {Boolean} options.toRight Set to true if you want the toolbar attached to the right\n * @return {Object}\n * @private\n */\n getTargetToElementDim(target: HTMLElement, element: HTMLElement, options: any = {}) {\n var opts = options || {};\n var canvasPos = this.getCanvasView().getPosition();\n if (!canvasPos) return;\n var pos = opts.elPos || this.getCanvasView().getElementPos(element);\n var toRight = options.toRight || 0;\n var targetHeight = opts.targetHeight || target.offsetHeight;\n var targetWidth = opts.targetWidth || target.offsetWidth;\n var eventToTrigger = opts.event || null;\n\n var elTop = pos.top - targetHeight;\n var elLeft = pos.left;\n elLeft += toRight ? pos.width : 0;\n elLeft = toRight ? elLeft - targetWidth : elLeft;\n\n var leftPos = elLeft < canvasPos.left ? canvasPos.left : elLeft;\n var topPos = elTop < canvasPos.top ? canvasPos.top : elTop;\n topPos = topPos > pos.top + pos.height ? pos.top + pos.height : topPos;\n\n var result = {\n top: topPos,\n left: leftPos,\n elementTop: pos.top,\n elementLeft: pos.left,\n elementWidth: pos.width,\n elementHeight: pos.height,\n targetWidth: target.offsetWidth,\n targetHeight: target.offsetHeight,\n canvasTop: canvasPos.top,\n canvasLeft: canvasPos.left,\n canvasWidth: canvasPos.width,\n canvasHeight: canvasPos.height,\n };\n\n // In this way I can catch data and also change the position strategy\n if (eventToTrigger && this.em) {\n this.em.trigger(eventToTrigger, result);\n }\n\n return result;\n }\n\n canvasRectOffset(el: HTMLElement, pos: { top: number; left: number }, opts: any = {}) {\n const getFrameElFromDoc = (doc: Document) => {\n const { defaultView } = doc;\n return defaultView?.frameElement as HTMLElement;\n };\n\n const rectOff = (el: HTMLElement, top = 1, pos: { top: number; left: number }) => {\n const zoom = this.em.getZoomDecimal();\n const side = top ? 'top' : 'left';\n const doc = el.ownerDocument;\n const { offsetTop = 0, offsetLeft = 0 } = opts.offset ? getFrameElFromDoc(doc) : {};\n const { scrollTop = 0, scrollLeft = 0 } = doc.body || {};\n const scroll = top ? scrollTop : scrollLeft;\n const offset = top ? offsetTop : offsetLeft;\n\n return pos[side] - (scroll - offset) * zoom;\n };\n\n return {\n top: rectOff(el, 1, pos),\n left: rectOff(el, 0, pos),\n };\n }\n\n /**\n *\n * @param {HTMLElement} el The component element in the canvas\n * @param {HTMLElement} targetEl The target element to position (eg. toolbar)\n * @param {Object} opts\n * @private\n */\n getTargetToElementFixed(el: HTMLElement, targetEl: HTMLElement, opts: any = {}) {\n const elRect = opts.pos || this.getElementPos(el, { noScroll: true });\n const canvasOffset = opts.canvasOff || this.canvasRectOffset(el, elRect);\n const targetHeight = targetEl.offsetHeight || 0;\n const targetWidth = targetEl.offsetWidth || 0;\n const elRight = elRect.left + elRect.width;\n const canvasView = this.getCanvasView();\n const canvasRect = canvasView.getPosition();\n const frameOffset = canvasView.getFrameOffset(el);\n const { event } = opts;\n\n let top = -targetHeight;\n let left = !isUndefined(opts.left) ? opts.left : elRect.width - targetWidth;\n left = elRect.left < -left ? -elRect.left : left;\n left = elRight > canvasRect.width ? left - (elRight - canvasRect.width) : left;\n\n // Check when the target top edge reaches the top of the viewable canvas\n if (canvasOffset.top < targetHeight) {\n const fullHeight = elRect.height + targetHeight;\n const elIsShort = fullHeight < frameOffset.height;\n\n // Scroll with the window if the top edge is reached and the\n // element is bigger than the canvas\n if (elIsShort) {\n top = top + fullHeight;\n } else {\n top = -canvasOffset.top < elRect.height ? -canvasOffset.top : elRect.height;\n }\n }\n\n const result = {\n top,\n left,\n canvasOffsetTop: canvasOffset.top,\n canvasOffsetLeft: canvasOffset.left,\n elRect,\n canvasOffset,\n canvasRect,\n targetWidth,\n targetHeight,\n };\n\n // In this way I can catch data and also change the position strategy\n event && this.em.trigger(event, result);\n\n return result;\n }\n\n /**\n * Instead of simply returning e.clientX and e.clientY this function\n * calculates also the offset based on the canvas. This is helpful when you\n * need to get X and Y position while moving between the editor area and\n * canvas area, which is in the iframe\n * @param {Event} e\n * @return {Object}\n * @private\n */\n getMouseRelativePos(e: any, opts: any = {}) {\n const subWinOffset = opts.subWinOffset;\n const doc = e.target.ownerDocument;\n const win = doc.defaultView || doc.parentWindow;\n const frame = win.frameElement;\n const yOffset = subWinOffset ? win.pageYOffset : 0;\n const xOffset = subWinOffset ? win.pageXOffset : 0;\n const zoomMlt = this.getZoomMultiplier();\n let addTop = 0;\n let addLeft = 0;\n\n if (frame) {\n var frameRect = frame.getBoundingClientRect();\n addTop = frameRect.top || 0;\n addLeft = frameRect.left || 0;\n }\n\n return {\n y: (e.clientY + addTop - yOffset) * zoomMlt,\n x: (e.clientX + addLeft - xOffset) * zoomMlt,\n };\n }\n\n /**\n * X and Y mouse position relative to the canvas\n * @param {Event} ev\n * @return {Object}\n * @private\n */\n getMouseRelativeCanvas(ev: MouseEvent, opts: any) {\n const zoom = this.getZoomDecimal();\n const { top = 0, left = 0 } = this.getCanvasView().getPosition(opts) ?? {};\n\n return {\n y: ev.clientY * zoom + top,\n x: ev.clientX * zoom + left,\n };\n }\n\n /**\n * Check if the canvas is focused\n * @returns {Boolean}\n */\n hasFocus() {\n return this.getDocument().hasFocus();\n }\n\n /**\n * Detects if some input is focused (input elements, text components, etc.)\n * @return {Boolean}\n * @private\n */\n isInputFocused() {\n const doc = this.getDocument();\n const frame = this.getFrameEl();\n const toIgnore = ['body', ...this.config.notTextable!];\n const docActive = frame && document.activeElement === frame;\n const focused = docActive ? doc && doc.activeElement : document.activeElement;\n\n return focused && !toIgnore.some(item => focused.matches(item));\n }\n\n /**\n * Scroll canvas to the element if it's not visible. The scrolling is\n * executed via `scrollIntoView` API and options of this method are\n * passed to it. For instance, you can scroll smoothly by using\n * `{ behavior: 'smooth' }`.\n * @param {HTMLElement|[Component]} el\n * @param {Object} [opts={}] Options, same as options for `scrollIntoView`\n * @param {Boolean} [opts.force=false] Force the scroll, even if the element is already visible\n * @example\n * const selected = editor.getSelected();\n * // Scroll smoothly (this behavior can be polyfilled)\n * canvas.scrollTo(selected, { behavior: 'smooth' });\n * // Force the scroll, even if the element is alredy visible\n * canvas.scrollTo(selected, { force: true });\n */\n scrollTo(el: any, opts = {}) {\n const elem = getElement(el);\n const view = elem && getViewEl(elem);\n view && view.scrollIntoView(opts);\n }\n\n /**\n * Start autoscroll\n * @private\n */\n startAutoscroll(frame?: Frame) {\n const fr = (frame && frame.view) || this.em.getCurrentFrame();\n fr && fr.startAutoscroll();\n }\n\n /**\n * Stop autoscroll\n * @private\n */\n stopAutoscroll(frame?: Frame) {\n const fr = (frame && frame.view) || this.em.getCurrentFrame();\n fr && fr.stopAutoscroll();\n }\n\n /**\n * Set canvas zoom value\n * @param {Number} value The zoom value, from 0 to 100\n * @returns {this}\n * @example\n * canvas.setZoom(50); // set zoom to 50%\n */\n setZoom(value: number | string) {\n this.canvas.set('zoom', typeof value === 'string' ? parseFloat(value) : value);\n return this;\n }\n\n /**\n * Get canvas zoom value\n * @returns {Number}\n * @example\n * canvas.setZoom(50); // set zoom to 50%\n * const zoom = canvas.getZoom(); // 50\n */\n getZoom() {\n return parseFloat(this.canvas.get('zoom'));\n }\n\n /**\n * Set canvas position coordinates\n * @param {Number} x Horizontal position\n * @param {Number} y Vertical position\n * @returns {this}\n * @example\n * canvas.setCoords(100, 100);\n */\n setCoords(x?: string | number, y?: string | number, opts: ToWorldOption = {}) {\n const hasX = x || x === 0;\n const hasY = y || y === 0;\n const coords = {\n x: this.canvas.get('x'),\n y: this.canvas.get('y'),\n };\n\n if (hasX) coords.x = parseFloat(`${x}`);\n if (hasY) coords.y = parseFloat(`${y}`);\n\n if (opts.toWorld) {\n const delta = this.canvasView?.getViewportDelta();\n if (delta) {\n if (hasX) coords.x = coords.x - delta.x;\n if (hasY) coords.y = coords.y - delta.y;\n }\n }\n\n this.canvas.set(coords);\n\n return this;\n }\n\n /**\n * Get canvas position coordinates\n * @returns {Object} Object containing coordinates\n * @example\n * canvas.setCoords(100, 100);\n * const coords = canvas.getCoords();\n * // { x: 100, y: 100 }\n */\n getCoords(): Coordinates {\n const { x, y } = this.canvas.attributes;\n return { x, y };\n }\n\n /**\n * Get canvas pointer position coordinates.\n * @returns {Object} Object containing pointer coordinates\n * @private\n * @example\n * const worldPointer = canvas.getPointer();\n * const screenPointer = canvas.getPointer(true);\n */\n getPointer(screen?: boolean): Coordinates {\n const { pointer, pointerScreen } = this.canvas.attributes;\n return screen ? pointerScreen : pointer;\n }\n\n getZoomDecimal() {\n return this.getZoom() / 100;\n }\n\n getZoomMultiplier() {\n const zoom = this.getZoomDecimal();\n return zoom ? 1 / zoom : 1;\n }\n\n fitViewport(opts?: FitViewportOptions) {\n this.canvasView?.fitViewport(opts);\n }\n\n toggleFramesEvents(on: boolean) {\n const { style } = this.getFramesEl();\n style.pointerEvents = on ? '' : 'none';\n }\n\n getFrames() {\n return this.canvas.frames.map(item => item);\n }\n\n /**\n * Add new frame to the canvas\n * @param {Object} props Frame properties\n * @returns {[Frame]}\n * @private\n * @example\n * canvas.addFrame({\n * name: 'Mobile home page',\n * x: 100, // Position in canvas\n * y: 100,\n * width: 500, // Frame dimensions\n * height: 600,\n * // device: 'DEVICE-ID',\n * components: [\n * '

Title frame

',\n * '

Paragraph frame

',\n * ],\n * styles: `\n * .testh { color: red; }\n * .testp { color: blue; }\n * `,\n * });\n */\n addFrame(props = {}, opts = {}) {\n return this.canvas.frames.add(new Frame(this, { ...props }), opts);\n }\n\n /**\n * Get the last created Component from a drag & drop to the canvas.\n * @returns {[Component]|undefined}\n */\n getLastDragResult(): Component | undefined {\n return this.em.get('dragResult');\n }\n\n /**\n * Add or update canvas spot.\n * @param {Object} props Canvas spot properties.\n * @param opts\n * @returns {[CanvasSpot]}\n * @example\n * // Add new canvas spot\n * const spot = canvas.addSpot({\n * type: 'select', // 'select' is one of the built-in spots\n * component: editor.getSelected(),\n * });\n *\n * // Add custom canvas spot\n * const spot = canvas.addSpot({\n * type: 'my-custom-spot',\n * component: editor.getSelected(),\n * });\n * // Update the same spot by reusing its ID\n * canvas.addSpot({\n * id: spot.id,\n * component: anotherComponent,\n * });\n */\n addSpot(props: Omit & { id?: string }, opts: AddOptions = {}) {\n const spotProps = props as T;\n const spots = this.getSpots(spotProps);\n\n if (spots.length) {\n const spot = spots[0];\n spot.set(spotProps);\n return spot;\n }\n\n const cmpView = spotProps.componentView || spotProps.component?.view;\n const spot = new CanvasSpot(this, {\n ...spotProps,\n id: spotProps.id || `cs_${spotProps.type}_${cmpView?.cid}`,\n type: spotProps.type || '',\n } as T);\n\n this.spots.add(spot, opts);\n\n return spot;\n }\n\n /**\n * Get canvas spots.\n * @param {Object} [spotProps] Canvas spot properties for filtering the result. With no properties, all available spots will be returned.\n * @returns {[CanvasSpot][]}\n * @example\n * canvas.addSpot({ type: 'select', component: cmp1 });\n * canvas.addSpot({ type: 'select', component: cmp2 });\n * canvas.addSpot({ type: 'target', component: cmp3 });\n *\n * // Get all spots\n * const allSpots = canvas.getSpots();\n * allSpots.length; // 3\n *\n * // Get all 'select' spots\n * const allSelectSpots = canvas.getSpots({ type: 'select' });\n * allSelectSpots.length; // 2\n */\n getSpots(spotProps: Partial = {}) {\n return this.spots.where(spotProps.id ? { id: spotProps.id } : spotProps) as CanvasSpot[];\n }\n\n /**\n * Remove canvas spots.\n * @param {Object|[CanvasSpot][]} [spotProps] Canvas spot properties for filtering spots to remove or an array of spots to remove. With no properties, all available spots will be removed.\n * @returns {[CanvasSpot][]}\n * @example\n * canvas.addSpot({ type: 'select', component: cmp1 });\n * canvas.addSpot({ type: 'select', component: cmp2 });\n * canvas.addSpot({ type: 'target', component: cmp3 });\n *\n * // Remove all 'select' spots\n * canvas.removeSpots({ type: 'select' });\n *\n * // Remove spots by an array of canvas spots\n * const filteredSpots = canvas.getSpots().filter(spot => myCustomCondition);\n * canvas.removeSpots(filteredSpots);\n *\n * // Remove all spots\n * canvas.removeSpots();\n */\n removeSpots(spotProps: Partial | CanvasSpot[] = {}) {\n const spots = isArray(spotProps) ? spotProps : this.getSpots(spotProps);\n const removed = this.spots.remove(spots);\n return removed as unknown as CanvasSpot[];\n }\n\n /**\n * Check if the built-in canvas spot has a declared custom rendering.\n * @param {String} type Built-in canvas spot type\n * @returns {Boolean}\n * @example\n * grapesjs.init({\n * // ...\n * canvas: {\n * // avoid rendering the built-in 'target' canvas spot\n * customSpots: { target: true }\n * }\n * });\n * // ...\n * canvas.hasCustomSpot('select'); // false\n * canvas.hasCustomSpot('target'); // true\n */\n hasCustomSpot(type?: CanvasSpotBuiltInTypes) {\n const { customSpots } = this.config;\n\n if (customSpots === true || (customSpots && type && customSpots[type])) {\n return true;\n }\n\n return false;\n }\n\n /**\n * Transform a box rect from the world coordinate system to the screen one.\n * @param {Object} boxRect\n * @returns {Object}\n */\n getWorldRectToScreen(boxRect: Parameters[0]) {\n return this.canvasView?.getRectToScreen(boxRect);\n }\n\n refreshSpots() {\n this.spots.refresh();\n }\n\n destroy() {\n this.canvas.stopListening();\n this.canvasView?.remove();\n //[this.canvas, this.canvasView].forEach(i => (i = {}));\n //@ts-ignore\n ['model', 'droppable'].forEach(i => (this[i] = {}));\n }\n}\n","import Component from '../model/Component';\n\nexport interface DomComponentsConfig {\n stylePrefix?: string;\n\n /**\n * Could be used for default components.\n */\n components?: Record[];\n\n /**\n * If the component is draggable you can drag the component itself (not only from the toolbar).\n * @default true\n */\n draggableComponents?: boolean;\n\n /**\n * Experimental: Disable text inner components.\n * With this option, you're able to decide which inner component inside text should be\n * disabled (eg. no select, no hover, no layer visibility) once edited.\n * @default false\n * @example\n * // disable all inner childs\n * disableTextInnerChilds: true,\n * // disable all except link components\n * disableTextInnerChilds: (child) => !child.is('link'),\n */\n disableTextInnerChilds?: boolean | ((cmp: Component) => boolean | void);\n\n /**\n * You can setup a custom component definition processor before adding it into the editor.\n * It might be useful to transform custom objects (es. some framework specific JSX) to GrapesJS component one.\n * This custom function will be executed on ANY new added component to the editor so make smart checks/conditions\n * to avoid doing useless executions\n * By default, GrapesJS supports already elements generated from React JSX preset\n * @example\n * processor: (obj) => {\n * if (obj.$$typeof) { // eg. this is a React Element\n * const gjsComponent = {\n * type: obj.type,\n * components: obj.props.children,\n * ...\n * };\n * ...\n * return gjsComponent;\n * }\n * }\n */\n processor?: (obj: any) => Record | undefined;\n\n /**\n * List of HTML void elements.\n * https://www.w3.org/TR/2011/WD-html-markup-20110113/syntax.html#void-elements\n */\n voidElements?: string[];\n\n /**\n * Experimental: Use the frame document for DOM element creation.\n * This option might be useful when elements require the local document context to\n * work properly (eg. Web Components).\n */\n useFrameDoc?: boolean;\n}\n\nexport default {\n stylePrefix: 'comp-',\n components: [],\n draggableComponents: true,\n disableTextInnerChilds: false,\n processor: undefined,\n useFrameDoc: false,\n voidElements: [\n 'area',\n 'base',\n 'br',\n 'col',\n 'embed',\n 'hr',\n 'img',\n 'input',\n 'keygen',\n 'link',\n 'menuitem',\n 'meta',\n 'param',\n 'source',\n 'track',\n 'wbr',\n ],\n} as DomComponentsConfig;\n","import Component from './Component';\nimport { escapeNodeContent } from '../../utils/mixins';\n\nexport default class ComponentTextNode extends Component {\n get defaults() {\n return {\n // @ts-ignore\n ...super.defaults,\n tagName: '',\n droppable: false,\n layerable: false,\n selectable: false,\n editable: true,\n };\n }\n\n toHTML() {\n const { content } = this;\n const parent = this.parent();\n return parent?.is('script') ? content : this.__escapeContent(content);\n }\n\n __escapeContent(content: string) {\n return escapeNodeContent(content);\n }\n\n static isComponent(el: HTMLElement) {\n if (el.nodeType === 3) {\n return {\n type: 'textnode',\n content: el.textContent ?? '',\n };\n }\n }\n}\n","import ComponentTextNode from './ComponentTextNode';\n\nexport default class ComponentComment extends ComponentTextNode {\n get defaults() {\n // @ts-ignore\n return { ...super.defaults };\n }\n\n toHTML() {\n return ``;\n }\n\n static isComponent(el: HTMLElement) {\n if (el.nodeType == 8) {\n return {\n tagName: 'NULL',\n type: 'comment',\n content: el.textContent ?? '',\n };\n }\n }\n}\n","import Component from './Component';\nimport { toLowerCase } from '../../utils/mixins';\n\nconst type = 'iframe';\n\nexport default class ComponentFrame extends Component {\n get defaults() {\n return {\n // @ts-ignore\n ...super.defaults,\n type,\n tagName: type,\n droppable: false,\n resizable: true,\n traits: ['id', 'title', 'src'],\n attributes: { frameborder: '0' },\n };\n }\n\n static isComponent(el: HTMLElement) {\n return toLowerCase(el.tagName) === type;\n }\n}\n\n// ComponentFrame.isComponent = el => toLowerCase(el.tagName) === type;\n","import { result } from 'underscore';\nimport Component from './Component';\nimport { toLowerCase, buildBase64UrlFromSvg, hasWin } from '../../utils/mixins';\nimport { ObjectStrings } from '../../common';\n\nconst svgAttrs =\n 'xmlns=\"http://www.w3.org/2000/svg\" width=\"100\" viewBox=\"0 0 24 24\" style=\"fill: rgba(0,0,0,0.15); transform: scale(0.75)\"';\n\nexport default class ComponentImage extends Component {\n get defaults() {\n return {\n // @ts-ignore\n ...super.defaults,\n type: 'image',\n tagName: 'img',\n void: true,\n droppable: 0,\n editable: 1,\n highlightable: 0,\n resizable: { ratioDefault: 1 },\n traits: ['alt'],\n\n src: `\n \n `,\n\n // Fallback image in case the src can't be loaded\n // If you use SVG, xmlns=\"http://www.w3.org/2000/svg\" is required\n fallback: `\n \n `,\n\n // File to load asynchronously once the model is rendered\n file: '',\n };\n }\n\n initialize(props: any, opts: any) {\n super.initialize(props, opts);\n const { src } = this.get('attributes')!;\n if (src && buildBase64UrlFromSvg(result(this, 'defaults').src) !== src) {\n this.set('src', src, { silent: true });\n }\n }\n\n initToolbar() {\n super.initToolbar();\n const { em } = this;\n\n if (em) {\n const cmd = em.Commands;\n const cmdName = 'image-editor';\n\n // Add Image Editor button only if the default command exists\n if (cmd.has(cmdName)) {\n let hasButtonBool = false;\n const tb = this.get('toolbar')!;\n\n for (let i = 0; i < tb.length; i++) {\n if (tb[i].command === 'image-editor') {\n hasButtonBool = true;\n break;\n }\n }\n\n if (!hasButtonBool) {\n tb.push({\n attributes: { class: 'fa fa-pencil' },\n command: cmdName,\n });\n this.set('toolbar', tb);\n }\n }\n }\n }\n\n /**\n * Returns object of attributes for HTML\n * @return {Object}\n * @private\n */\n getAttrToHTML() {\n const attr = super.getAttrToHTML();\n const src = this.getSrcResult();\n if (src) attr.src = src;\n return attr;\n }\n\n getSrcResult(opt: { fallback?: boolean } = {}) {\n const src = this.get(opt.fallback ? 'fallback' : 'src') || '';\n let result = src;\n\n if (src && src.substr(0, 4) === '[0]) {\n const obj = super.toJSON(opts);\n const { attributes } = obj;\n\n if (attributes && obj.src === attributes.src) {\n delete obj.src;\n }\n\n return obj;\n }\n\n /**\n * Parse uri\n * @param {string} uri\n * @return {object}\n * @private\n */\n parseUri(uri: string) {\n let result: HTMLAnchorElement | URL | ObjectStrings = {};\n\n const getQueryObject = (search = '') => {\n const query: ObjectStrings = {};\n const qrs = search.substring(1).split('&');\n\n for (let i = 0; i < qrs.length; i++) {\n const pair = qrs[i].split('=');\n const name = decodeURIComponent(pair[0]);\n if (name) query[name] = decodeURIComponent(pair[1] || '');\n }\n\n return query;\n };\n\n if (hasWin()) {\n result = document.createElement('a');\n result.href = uri;\n } else if (typeof URL !== 'undefined') {\n try {\n result = new URL(uri);\n } catch (e) {}\n }\n\n return {\n hostname: result.hostname || '',\n pathname: result.pathname || '',\n protocol: result.protocol || '',\n search: result.search || '',\n hash: result.hash || '',\n port: result.port || '',\n query: getQueryObject(result.search),\n };\n }\n\n static isComponent(el: HTMLElement) {\n return toLowerCase(el.tagName) === 'img';\n }\n}\n","import { isFunction } from 'underscore';\nimport Component from './Component';\n\nexport default class ComponentText extends Component {\n get defaults() {\n return {\n // @ts-ignore\n ...super.defaults,\n type: 'text',\n droppable: false,\n editable: true,\n };\n }\n\n initialize(props: any, opts: any) {\n super.initialize(props, opts);\n this.__checkInnerChilds();\n }\n\n __checkInnerChilds() {\n const { disableTextInnerChilds } = this.em.Components.config;\n if (disableTextInnerChilds) {\n const disableChild = (child: Component) => {\n if (!child.isInstanceOf('textnode')) {\n child.set({\n locked: true,\n layerable: false,\n });\n }\n };\n\n if (isFunction(disableTextInnerChilds)) {\n this.forEachChild(child => {\n disableTextInnerChilds(child) && disableChild(child);\n });\n } else {\n this.forEachChild(disableChild);\n }\n }\n }\n}\n","import ComponentText from './ComponentText';\nimport { toLowerCase } from '../../utils/mixins';\n\nconst type = 'label';\n\nexport default class ComponentLabel extends ComponentText {\n get defaults() {\n return {\n // @ts-ignore\n ...super.defaults,\n type,\n tagName: type,\n traits: ['id', 'title', 'for'],\n };\n }\n\n static isComponent(el: HTMLElement) {\n return toLowerCase(el.tagName) === type;\n }\n}\n","import { forEach } from 'underscore';\nimport { toLowerCase } from '../../utils/mixins';\nimport ComponentText from './ComponentText';\n\nconst type = 'link';\n\nexport default class ComponentLink extends ComponentText {\n get defaults() {\n return {\n // @ts-ignore\n ...super.defaults,\n type,\n tagName: 'a',\n traits: ['title', 'href', 'target'],\n };\n }\n\n static isComponent(el: HTMLElement, opts: any = {}) {\n let result: any;\n\n if (toLowerCase(el.tagName) === 'a') {\n const textTags = opts.textTags || [];\n result = { type, editable: false };\n\n // The link is editable only if, at least, one of its\n // children is a text node (not empty one)\n const children = el.childNodes;\n const len = children.length;\n if (!len) delete result.editable;\n\n forEach(children, child => {\n const { tagName } = child as HTMLElement;\n if (\n (child.nodeType == 3 && (child as any).textContent.trim() !== '') ||\n (tagName && textTags.indexOf(toLowerCase(tagName)) >= 0)\n ) {\n delete result.editable;\n }\n });\n }\n\n return result;\n }\n}\n","import ComponentImage from './ComponentImage';\nimport { toLowerCase } from '../../utils/mixins';\n\nexport default class ComponentMap extends ComponentImage {\n /** @ts-ignore */\n get defaults() {\n // @ts-ignore\n const defs = super.defaults;\n\n return {\n ...defs,\n type: 'map',\n src: '',\n void: false,\n mapUrl: 'https://maps.google.com/maps',\n tagName: 'iframe',\n mapType: 'q',\n address: '',\n zoom: '1',\n attributes: { frameborder: 0 },\n // @ts-ignore\n toolbar: defs.toolbar,\n traits: [\n {\n label: 'Address',\n name: 'address',\n placeholder: 'eg. London, UK',\n changeProp: 1,\n },\n {\n type: 'select',\n label: 'Map type',\n name: 'mapType',\n changeProp: 1,\n options: [\n { value: 'q', name: 'Roadmap' },\n { value: 'w', name: 'Satellite' },\n ],\n },\n {\n label: 'Zoom',\n name: 'zoom',\n type: 'range',\n min: '1',\n max: '20',\n changeProp: 1,\n },\n ],\n };\n }\n\n initialize(props: any, opts: any) {\n if (this.get('src')) this.parseFromSrc();\n else this.updateSrc();\n super.initialize(props, opts);\n this.listenTo(this, 'change:address change:zoom change:mapType', this.updateSrc);\n }\n\n updateSrc() {\n this.set('src', this.getMapUrl());\n }\n\n /**\n * Returns url of the map\n * @return {string}\n * @private\n */\n getMapUrl() {\n let addr = this.get('address');\n let zoom = this.get('zoom');\n let type = this.get('mapType');\n addr = addr ? '&q=' + addr : '';\n zoom = zoom ? '&z=' + zoom : '';\n type = type ? '&t=' + type : '';\n let result = this.get('mapUrl') + '?' + addr + zoom + type;\n result += '&output=embed';\n return result;\n }\n\n /**\n * Set attributes by src string\n * @private\n */\n parseFromSrc() {\n const uri = this.parseUri(this.get('src'));\n const qr = uri.query;\n if (qr.q) this.set('address', qr.q);\n if (qr.z) this.set('zoom', qr.z);\n if (qr.t) this.set('mapType', qr.t);\n }\n\n static isComponent(el: HTMLIFrameElement) {\n if (toLowerCase(el.tagName) == 'iframe' && /maps\\.google\\.com/.test(el.src)) {\n return { type: 'map', src: el.src };\n }\n }\n}\n","import Component from './Component';\nimport { toLowerCase } from '../../utils/mixins';\n\nconst type = 'script';\n\nexport default class ComponentScript extends Component {\n get defaults() {\n return {\n // @ts-ignore\n ...super.defaults,\n type,\n tagName: type,\n droppable: false,\n draggable: false,\n layerable: false,\n };\n }\n\n static isComponent(el: HTMLImageElement) {\n if (toLowerCase(el.tagName) == type) {\n const result: any = { type };\n\n if (el.src) {\n result.src = el.src;\n result.onload = el.onload;\n }\n\n return result;\n }\n }\n}\n","import Component from './Component';\nimport { toLowerCase } from '../../utils/mixins';\n\nconst type = 'svg';\n\nexport default class ComponentSvg extends Component {\n get defaults() {\n return {\n // @ts-ignore\n ...super.defaults,\n type,\n tagName: type,\n highlightable: false,\n resizable: { ratioDefault: true },\n };\n }\n\n getName() {\n let name = this.get('tagName')!;\n const customName = this.get('custom-name');\n name = name.charAt(0).toUpperCase() + name.slice(1);\n return customName || name;\n }\n\n static isComponent(el: HTMLElement) {\n return toLowerCase(el.tagName) === type;\n }\n}\n","import ComponentSvg from './ComponentSvg';\n\n/**\n * Component for inner SVG elements\n */\nexport default class ComponentSvgIn extends ComponentSvg {\n get defaults() {\n return {\n // @ts-ignore\n ...super.defaults,\n selectable: false,\n hoverable: false,\n layerable: false,\n };\n }\n\n static isComponent(el: any, opts: any = {}) {\n return !!opts.inSvg;\n }\n}\n","import Component from './Component';\nimport { toLowerCase } from '../../utils/mixins';\n\nconst type = 'table';\n\nexport default class ComponentTable extends Component {\n get defaults() {\n return {\n // @ts-ignore\n ...super.defaults,\n type,\n tagName: type,\n droppable: ['tbody', 'thead', 'tfoot'],\n };\n }\n\n initialize(props: any, opts: any) {\n super.initialize(props, opts);\n const components = this.get('components')!;\n !components.length && components.add({ type: 'tbody' });\n }\n\n static isComponent(el: HTMLElement) {\n return toLowerCase(el.tagName) === type;\n }\n}\n","import Component from './Component';\nimport { toLowerCase } from '../../utils/mixins';\n\nconst type = 'tbody';\n\nexport default class ComponentTableBody extends Component {\n get defaults() {\n return {\n // @ts-ignore\n ...super.defaults,\n type,\n tagName: type,\n draggable: ['table'],\n droppable: ['tr'],\n columns: 1,\n rows: 1,\n };\n }\n\n initialize(props: any, opts: any) {\n super.initialize(props, opts);\n const components = this.get('components')!;\n let columns = this.get('columns');\n let rows = this.get('rows');\n\n // Init components if empty\n if (!components.length) {\n const rowsToAdd = [];\n\n while (rows--) {\n const columnsToAdd = [];\n let clm = columns;\n\n while (clm--) {\n columnsToAdd.push({\n type: 'cell',\n classes: ['cell'],\n });\n }\n\n rowsToAdd.push({\n type: 'row',\n classes: ['row'],\n components: columnsToAdd,\n });\n }\n\n components.add(rowsToAdd);\n }\n }\n\n static isComponent(el: HTMLElement) {\n return toLowerCase(el.tagName) === type;\n }\n}\n","import Component from './Component';\nimport { toLowerCase } from '../../utils/mixins';\n\nexport default class ComponentTableCell extends Component {\n get defaults() {\n return {\n // @ts-ignore\n ...super.defaults,\n type: 'cell',\n tagName: 'td',\n draggable: ['tr'],\n };\n }\n\n static isComponent(el: HTMLElement) {\n return ['td', 'th'].indexOf(toLowerCase(el.tagName)) >= 0;\n }\n}\n","import ComponentTableBody from './ComponentTableBody';\nimport { toLowerCase } from '../../utils/mixins';\n\nconst type = 'tfoot';\n\nexport default class ComponentTableFoot extends ComponentTableBody {\n get defaults() {\n return {\n // @ts-ignore\n ...super.defaults,\n type,\n tagName: type,\n };\n }\n\n static isComponent(el: HTMLElement) {\n return toLowerCase(el.tagName) === type;\n }\n}\n","import ComponentTableBody from './ComponentTableBody';\nimport { toLowerCase } from '../../utils/mixins';\n\nconst type = 'thead';\n\nexport default class ComponentTableHead extends ComponentTableBody {\n get defaults() {\n return {\n // @ts-ignore\n ...super.defaults,\n type,\n tagName: type,\n };\n }\n\n static isComponent(el: HTMLElement) {\n return toLowerCase(el.tagName) === type;\n }\n}\n","import Component from './Component';\nimport { toLowerCase } from '../../utils/mixins';\n\nconst tagName = 'tr';\n\nexport default class ComponentTableRow extends Component {\n get defaults() {\n return {\n // @ts-ignore\n ...super.defaults,\n tagName,\n draggable: ['thead', 'tbody', 'tfoot'],\n droppable: ['th', 'td'],\n };\n }\n\n static isComponent(el: HTMLElement) {\n return toLowerCase(el.tagName) === tagName;\n }\n}\n","import { ObjectAny } from '../../common';\nimport { isDef, isEmptyObj, toLowerCase } from '../../utils/mixins';\nimport ComponentImage from './ComponentImage';\n\nconst type = 'video';\nconst yt = 'yt';\nconst vi = 'vi';\nconst ytnc = 'ytnc';\nconst defProvider = 'so';\n\nconst hasParam = (value: string) => value && value !== '0';\n\nexport default class ComponentVideo extends ComponentImage {\n get defaults() {\n return {\n // @ts-ignore\n ...super.defaults,\n type,\n tagName: type,\n videoId: '',\n void: false,\n provider: defProvider, // on change of provider, traits are switched\n ytUrl: 'https://www.youtube.com/embed/',\n ytncUrl: 'https://www.youtube-nocookie.com/embed/',\n viUrl: 'https://player.vimeo.com/video/',\n loop: false,\n poster: '',\n muted: 0,\n autoplay: false,\n controls: true,\n color: '',\n list: '',\n src: '',\n rel: 1, // YT related videos\n modestbranding: 0, // YT modest branding\n sources: [],\n attributes: { allowfullscreen: 'allowfullscreen' },\n };\n }\n\n initialize(props: any, opts: any) {\n this.em = opts.em;\n if (this.get('src')) this.parseFromSrc();\n this.updatePropsFromAttr();\n this.updateTraits();\n this.on('change:provider', this.updateTraits);\n this.on('change:videoId change:provider', this.updateSrc);\n super.initialize(props, opts);\n }\n\n updatePropsFromAttr() {\n if (this.get('provider') === defProvider) {\n const { controls, autoplay, loop } = this.get('attributes')!;\n const toUp: ObjectAny = {};\n\n if (isDef(controls)) toUp.controls = !!controls;\n if (isDef(autoplay)) toUp.autoplay = !!autoplay;\n if (isDef(loop)) toUp.loop = !!loop;\n\n if (!isEmptyObj(toUp)) {\n this.set(toUp);\n }\n }\n }\n\n /**\n * Update traits by provider\n * @private\n */\n updateTraits() {\n const { em } = this;\n const prov = this.get('provider');\n let tagName = 'iframe';\n let traits;\n\n switch (prov) {\n case yt:\n case ytnc:\n traits = this.getYoutubeTraits();\n break;\n case vi:\n traits = this.getVimeoTraits();\n break;\n default:\n tagName = 'video';\n traits = this.getSourceTraits();\n }\n\n this.set({ tagName }, { silent: true }); // avoid break in view\n // @ts-ignore\n this.set({ traits });\n em.get('ready') && em.trigger('component:toggled');\n }\n\n /**\n * Set attributes by src string\n */\n parseFromSrc() {\n const prov = this.get('provider');\n const uri = this.parseUri(this.get('src'));\n const qr = uri.query;\n switch (prov) {\n case yt:\n case ytnc:\n case vi:\n this.set('videoId', uri.pathname.split('/').pop());\n qr.list && this.set('list', qr.list);\n hasParam(qr.autoplay) && this.set('autoplay', true);\n hasParam(qr.loop) && this.set('loop', true);\n parseInt(qr.controls) === 0 && this.set('controls', false);\n hasParam(qr.color) && this.set('color', qr.color);\n qr.rel === '0' && this.set('rel', 0);\n qr.modestbranding === '1' && this.set('modestbranding', 1);\n break;\n default:\n }\n }\n\n /**\n * Update src on change of video ID\n * @private\n */\n updateSrc() {\n const prov = this.get('provider');\n let src = '';\n\n switch (prov) {\n case yt:\n src = this.getYoutubeSrc();\n break;\n case ytnc:\n src = this.getYoutubeNoCookieSrc();\n break;\n case vi:\n src = this.getVimeoSrc();\n break;\n }\n\n this.set({ src });\n }\n\n /**\n * Returns object of attributes for HTML\n * @return {Object}\n * @private\n */\n getAttrToHTML() {\n const attr = super.getAttrToHTML();\n const prov = this.get('provider');\n\n switch (prov) {\n case yt:\n case ytnc:\n case vi:\n break;\n default:\n attr.loop = !!this.get('loop');\n attr.autoplay = !!this.get('autoplay');\n attr.controls = !!this.get('controls');\n }\n\n return attr;\n }\n\n // Listen provider change and switch traits, in TraitView listen traits change\n\n /**\n * Return the provider trait\n * @return {Object}\n * @private\n */\n getProviderTrait() {\n return {\n type: 'select',\n label: 'Provider',\n name: 'provider',\n changeProp: true,\n options: [\n { value: 'so', name: 'HTML5 Source' },\n { value: yt, name: 'Youtube' },\n { value: ytnc, name: 'Youtube (no cookie)' },\n { value: vi, name: 'Vimeo' },\n ],\n };\n }\n\n /**\n * Return traits for the source provider\n * @return {Array}\n * @private\n */\n getSourceTraits() {\n return [\n this.getProviderTrait(),\n {\n label: 'Source',\n name: 'src',\n placeholder: 'eg. ./media/video.mp4',\n changeProp: true,\n },\n {\n label: 'Poster',\n name: 'poster',\n placeholder: 'eg. ./media/image.jpg',\n },\n this.getAutoplayTrait(),\n this.getLoopTrait(),\n this.getControlsTrait(),\n ];\n }\n /**\n * Return traits for the source provider\n * @return {Array}\n * @private\n */\n getYoutubeTraits() {\n return [\n this.getProviderTrait(),\n {\n label: 'Video ID',\n name: 'videoId',\n placeholder: 'eg. jNQXAC9IVRw',\n changeProp: true,\n },\n this.getAutoplayTrait(),\n this.getLoopTrait(),\n this.getControlsTrait(),\n {\n type: 'checkbox',\n label: 'Related',\n name: 'rel',\n changeProp: true,\n },\n {\n type: 'checkbox',\n label: 'Modest',\n name: 'modestbranding',\n changeProp: true,\n },\n ];\n }\n\n /**\n * Return traits for the source provider\n * @return {Array}\n * @private\n */\n getVimeoTraits() {\n return [\n this.getProviderTrait(),\n {\n label: 'Video ID',\n name: 'videoId',\n placeholder: 'eg. 123456789',\n changeProp: true,\n },\n {\n label: 'Color',\n name: 'color',\n placeholder: 'eg. FF0000',\n changeProp: true,\n },\n this.getAutoplayTrait(),\n this.getLoopTrait(),\n ];\n }\n\n /**\n * Return object trait\n * @return {Object}\n * @private\n */\n getAutoplayTrait() {\n return {\n type: 'checkbox',\n label: 'Autoplay',\n name: 'autoplay',\n changeProp: true,\n };\n }\n\n /**\n * Return object trait\n * @return {Object}\n * @private\n */\n getLoopTrait() {\n return {\n type: 'checkbox',\n label: 'Loop',\n name: 'loop',\n changeProp: true,\n };\n }\n\n /**\n * Return object trait\n * @return {Object}\n * @private\n */\n getControlsTrait() {\n return {\n type: 'checkbox',\n label: 'Controls',\n name: 'controls',\n changeProp: true,\n };\n }\n\n /**\n * Returns url to youtube video\n * @return {string}\n * @private\n */\n getYoutubeSrc() {\n const id = this.get('videoId');\n let url = this.get('ytUrl') as string;\n const list = this.get('list');\n url += id + (id.indexOf('?') < 0 ? '?' : '');\n url += list ? `&list=${list}` : '';\n url += this.get('autoplay') ? '&autoplay=1&mute=1' : '';\n url += !this.get('controls') ? '&controls=0&showinfo=0' : '';\n // Loop works only with playlist enabled\n // https://stackoverflow.com/questions/25779966/youtube-iframe-loop-doesnt-work\n url += this.get('loop') ? `&loop=1&playlist=${id}` : '';\n url += this.get('rel') ? '' : '&rel=0';\n url += this.get('modestbranding') ? '&modestbranding=1' : '';\n return url;\n }\n\n /**\n * Returns url to youtube no cookie video\n * @return {string}\n * @private\n */\n getYoutubeNoCookieSrc() {\n let url = this.getYoutubeSrc();\n url = url.replace(this.get('ytUrl'), this.get('ytncUrl'));\n return url;\n }\n\n /**\n * Returns url to vimeo video\n * @return {string}\n * @private\n */\n getVimeoSrc() {\n let url = this.get('viUrl') as string;\n url += this.get('videoId') + '?';\n url += this.get('autoplay') ? '&autoplay=1&muted=1' : '';\n url += this.get('loop') ? '&loop=1' : '';\n url += !this.get('controls') ? '&title=0&portrait=0&badge=0' : '';\n url += this.get('color') ? '&color=' + this.get('color') : '';\n return url;\n }\n\n static isComponent(el: HTMLVideoElement) {\n const { tagName, src } = el;\n const isYtProv = /youtube\\.com\\/embed/.test(src);\n const isYtncProv = /youtube-nocookie\\.com\\/embed/.test(src);\n const isViProv = /player\\.vimeo\\.com\\/video/.test(src);\n const isExtProv = isYtProv || isYtncProv || isViProv;\n if (toLowerCase(tagName) == type || (toLowerCase(tagName) == 'iframe' && isExtProv)) {\n const result: any = { type: 'video' };\n if (src) result.src = src;\n if (isExtProv) {\n if (isYtProv) result.provider = yt;\n else if (isYtncProv) result.provider = ytnc;\n else if (isViProv) result.provider = vi;\n }\n return result;\n }\n }\n}\n","import { isUndefined } from 'underscore';\nimport { removeEl } from '../../utils/dom';\nimport { View } from '../../common';\nimport { DomComponentsConfig } from '../config/config';\nimport EditorModel from '../../editor/model/Editor';\nimport Component from '../model/Component';\nimport ComponentView from './ComponentView';\nimport FrameView from '../../canvas/view/FrameView';\nimport Components from '../model/Components';\n\nexport default class ComponentsView extends View {\n opts!: any;\n config!: DomComponentsConfig & { frameView?: FrameView };\n em!: EditorModel;\n parentEl?: HTMLElement;\n compView = ComponentView;\n\n initialize(o: any) {\n this.opts = o || {};\n this.config = o.config || {};\n // @ts-ignore\n this.em = this.config.em;\n const coll = this.collection;\n this.listenTo(coll, 'add', this.addTo);\n this.listenTo(coll, 'reset', this.resetChildren);\n this.listenTo(coll, 'remove', this.removeChildren);\n }\n\n removeChildren(removed: Component, coll: any, opts = {}) {\n removed.views.forEach(view => {\n if (!view) return;\n const { childrenView, scriptContainer } = view;\n childrenView && childrenView.stopListening();\n removeEl(scriptContainer);\n view.remove.apply(view);\n });\n\n const inner = removed.components();\n inner.forEach(it => this.removeChildren(it, coll, opts));\n }\n\n /**\n * Add to collection\n * @param {Model} model\n * @param {Collection} coll\n * @param {Object} opts\n * @private\n * */\n addTo(model: Component, coll: any = {}, opts: { temporary?: boolean } = {}) {\n const { em } = this;\n const i = this.collection.indexOf(model);\n this.addToCollection(model, null, i);\n\n if (em && !opts.temporary) {\n const triggerAdd = (model: Component) => {\n em.trigger('component:add', model);\n model.components().forEach(comp => triggerAdd(comp));\n };\n triggerAdd(model);\n }\n }\n\n /**\n * Add new object to collection\n * @param {Object} Model\n * @param {Object} Fragment collection\n * @param {Integer} Index of append\n *\n * @return {Object} Object rendered\n * @private\n * */\n addToCollection(model: Component, fragmentEl?: DocumentFragment | null, index?: number) {\n // if (!this.compView) this.compView = require('./ComponentView').default;\n const { config, opts, em } = this;\n const fragment = fragmentEl || null;\n const { frameView } = config;\n const sameFrameView = frameView?.model && model.getView(frameView.model);\n const dt = opts.componentTypes || em?.Components.getTypes();\n const type = model.get('type') || 'default';\n let viewObject = this.compView;\n\n for (let it = 0; it < dt.length; it++) {\n if (dt[it].id == type) {\n viewObject = dt[it].view;\n break;\n }\n }\n const view =\n sameFrameView ||\n new viewObject({\n model,\n // @ts-ignore\n config,\n componentTypes: dt,\n });\n let rendered;\n\n try {\n // Avoid breaking on DOM rendering (eg. invalid attribute name)\n rendered = view.render().el;\n } catch (error) {\n rendered = document.createTextNode('');\n em.logError(error as any);\n }\n\n if (fragment) {\n fragment.appendChild(rendered);\n } else {\n const parent = this.parentEl!;\n const children = parent.childNodes;\n\n if (!isUndefined(index)) {\n const lastIndex = children.length == index;\n\n // If the added model is the last of collection\n // need to change the logic of append\n if (lastIndex) {\n index--;\n }\n\n // In case the added is new in the collection index will be -1\n if (lastIndex || !children.length) {\n parent.appendChild(rendered);\n } else {\n parent.insertBefore(rendered, children[index]);\n }\n } else {\n parent.appendChild(rendered);\n }\n }\n\n if (!model.opt.temporary) {\n em?.trigger('component:mount', model);\n }\n\n return rendered;\n }\n\n resetChildren(models: Components, { previousModels = [] } = {}) {\n this.parentEl!.innerHTML = '';\n previousModels.forEach(md => this.removeChildren(md, this.collection));\n models.each(model => this.addToCollection(model));\n }\n\n render(parent?: HTMLElement) {\n const el = this.el;\n const frag = document.createDocumentFragment();\n this.parentEl = parent || this.el;\n this.collection.each(model => this.addToCollection(model, frag));\n el.innerHTML = '';\n el.appendChild(frag);\n return this;\n }\n}\n","import { each, isEmpty, keys, result } from 'underscore';\nimport { CanvasSpotBuiltInTypes } from '../../canvas/model/CanvasSpot';\nimport FrameView from '../../canvas/view/FrameView';\nimport { DisableOptions, ExtractMethods, ObjectAny, View } from '../../common';\nimport { GetSetRuleOptions } from '../../css_composer';\nimport Editor from '../../editor';\nimport EditorModel from '../../editor/model/Editor';\nimport Selectors from '../../selector_manager/model/Selectors';\nimport { replaceWith } from '../../utils/dom';\nimport { setViewEl } from '../../utils/mixins';\nimport { DomComponentsConfig } from '../config/config';\nimport Component, { avoidInline } from '../model/Component';\nimport Components from '../model/Components';\nimport { ComponentOptions } from '../model/types';\nimport ComponentsView from './ComponentsView';\n\ntype ClbObj = ReturnType;\n\nexport interface IComponentView extends ExtractMethods {}\n\nexport default class ComponentView extends View {\n /** @ts-ignore */\n model!: Component;\n\n /** @ts-ignore */\n className() {\n return this.getClasses();\n }\n\n /** @ts-ignore */\n tagName() {\n return this.model.get('tagName')!;\n }\n\n modelOpt!: ComponentOptions;\n em!: EditorModel;\n opts?: any;\n pfx?: string;\n ppfx?: string;\n attr?: Record;\n classe?: string;\n config!: DomComponentsConfig;\n childrenView?: ComponentsView;\n getChildrenSelector?: Function;\n getTemplate?: Function;\n scriptContainer?: HTMLElement;\n\n preinitialize(opt: any = {}) {\n this.opts = opt;\n }\n\n initialize(opt: any = {}) {\n const model = this.model;\n const config = opt.config || {};\n const em = config.em;\n const modelOpt = model.opt || {};\n const { $el, el } = this;\n this.opts = opt;\n this.modelOpt = modelOpt;\n this.config = config;\n this.em = em;\n this.pfx = config.stylePrefix || '';\n this.ppfx = config.pStylePrefix || '';\n this.attr = model.get('attributes')!;\n this.classe = this.attr.class || [];\n this.listenTo(model, 'change:style', this.updateStyle);\n this.listenTo(model, 'change:attributes', this.renderAttributes);\n this.listenTo(model, 'change:highlightable', this.updateHighlight);\n this.listenTo(model, 'change:status change:locked', this.updateStatus);\n this.listenTo(model, 'change:script rerender', this.reset);\n this.listenTo(model, 'change:content', this.updateContent);\n this.listenTo(model, 'change', this.handleChange);\n this.listenTo(model, 'active', this.onActive);\n this.listenTo(model, 'disable', this.onDisable);\n $el.data('model', model);\n setViewEl(el, this);\n model.view = this;\n this.frameView && model.views.push(this);\n this.initClasses();\n this.initComponents({ avoidRender: true });\n this.events = {\n ...(this.constructor as typeof ComponentView).getEvents(),\n dragstart: 'handleDragStart',\n };\n this.delegateEvents();\n !modelOpt.temporary && this.init(this._clbObj());\n }\n\n get __cmpStyleOpts(): GetSetRuleOptions {\n return { state: '', mediaText: '' };\n }\n\n get frameView(): FrameView {\n return this.opts.config.frameView;\n }\n\n get createDoc() {\n const doc = this.frameView?.getDoc() || document;\n return this.opts.config?.useFrameDoc ? doc : document;\n }\n\n __isDraggable() {\n const { model, config } = this;\n const { draggable } = model.attributes;\n return config.draggableComponents && draggable;\n }\n\n _clbObj() {\n const { em, model, el } = this;\n return {\n editor: em?.getEditor() as Editor,\n model,\n el,\n };\n }\n\n /**\n * Initialize callback\n */\n init(opts: ClbObj) {}\n\n /**\n * Remove callback\n */\n removed(opts: ClbObj) {}\n\n /**\n * On render callback\n */\n onRender(opts: ClbObj) {}\n\n /**\n * Callback executed when the `active` event is triggered on component\n */\n onActive(ev: Event) {}\n\n /**\n * Callback executed when the `disable` event is triggered on component\n */\n onDisable(opts?: DisableOptions) {}\n\n remove() {\n super.remove();\n const { model, $el } = this;\n const { views } = model;\n const frame = this.frameView || {};\n model.components().forEach(comp => {\n const view = comp.getView(frame.model);\n view?.remove();\n });\n this.childrenView?.remove();\n views.splice(views.indexOf(this), 1);\n this.removed(this._clbObj());\n $el.data({ model: '', collection: '', view: '' });\n // delete model.view; // Sorter relies on this property\n return this;\n }\n\n handleDragStart(event: Event) {\n if (!this.__isDraggable()) return false;\n event.stopPropagation();\n event.preventDefault();\n this.em.Commands.run('tlb-move', {\n target: this.model,\n event,\n });\n }\n\n initClasses() {\n const { model } = this;\n const { classes } = model;\n const event = 'change:classes';\n\n if (classes instanceof Selectors) {\n this.stopListening(model, event, this.initClasses);\n this.listenTo(model, event, this.initClasses);\n this.listenTo(classes, 'add remove change reset', this.updateClasses);\n classes.length && this.importClasses();\n }\n }\n\n initComponents(opts: { avoidRender?: boolean } = {}) {\n const { model, $el, childrenView } = this;\n const event = 'change:components';\n const comps = model.get('components');\n const toListen = [model, event, this.initComponents];\n\n if (comps instanceof Components) {\n $el.data('collection', comps);\n childrenView && childrenView.remove();\n this.stopListening(...toListen);\n !opts.avoidRender && this.renderChildren();\n // @ts-ignore\n this.listenTo(...toListen);\n }\n }\n\n /**\n * Handle any property change\n * @private\n */\n handleChange() {\n const { model } = this;\n const chgArr = keys(model.changed);\n if (chgArr.length === 1 && chgArr[0] === 'status') return;\n model.emitUpdate();\n\n for (let prop in model.changed) {\n model.emitUpdate(prop);\n }\n }\n\n /**\n * Import, if possible, classes inside main container\n * @private\n * */\n importClasses() {\n const { em, model } = this;\n const sm = em.Selectors;\n sm && model.classes.forEach(s => sm.add(s.getName()));\n }\n\n /**\n * Update item on status change\n * @param {Event} e\n * @private\n * */\n updateStatus(opts: { noExtHl?: boolean; avoidHover?: boolean } = {}) {\n const { em, el, ppfx, model } = this;\n const canvas = em?.Canvas;\n const extHl = canvas?.config.extHl;\n const status = model.get('status');\n const selectedCls = `${ppfx}selected`;\n const selectedParentCls = `${selectedCls}-parent`;\n const freezedCls = `${ppfx}freezed`;\n const hoveredCls = `${ppfx}hovered`;\n const noPointerCls = `${ppfx}no-pointer`;\n const toRemove = [selectedCls, selectedParentCls, freezedCls, hoveredCls, noPointerCls];\n const selCls = extHl && !opts.noExtHl ? '' : selectedCls;\n this.$el.removeClass(toRemove.join(' '));\n const actualCls = el.getAttribute('class') || '';\n const cls = [actualCls];\n const noCustomSpotSelect = !canvas?.hasCustomSpot(CanvasSpotBuiltInTypes.Select);\n const noCustomSpotTarget = !canvas?.hasCustomSpot(CanvasSpotBuiltInTypes.Target);\n\n switch (status) {\n case 'selected':\n noCustomSpotSelect && cls.push(selCls);\n break;\n case 'selected-parent':\n noCustomSpotTarget && cls.push(selectedParentCls);\n break;\n case 'freezed':\n cls.push(freezedCls);\n break;\n case 'freezed-selected':\n cls.push(freezedCls);\n noCustomSpotSelect && cls.push(selCls);\n break;\n case 'hovered':\n !opts.avoidHover && cls.push(hoveredCls);\n break;\n }\n\n model.get('locked') && cls.push(noPointerCls);\n\n const clsStr = cls.filter(Boolean).join(' ');\n clsStr && el.setAttribute('class', clsStr);\n }\n\n /**\n * Update highlight attribute\n * @private\n * */\n updateHighlight() {\n const { model } = this;\n const isTextable = model.get('textable');\n const hl = model.get('highlightable') && (isTextable || !model.isChildOf('text'));\n this.setAttribute('data-gjs-highlightable', hl ? true : '');\n }\n\n /**\n * Update style attribute\n * @private\n * */\n updateStyle(m?: any, v?: any, opts: ObjectAny = {}) {\n const { model, em } = this;\n\n if (avoidInline(em) && !opts.inline) {\n const styleOpts = this.__cmpStyleOpts;\n const style = model.getStyle(styleOpts);\n !isEmpty(style) && model.setStyle(style, styleOpts);\n } else {\n this.setAttribute('style', model.styleToString(opts));\n }\n }\n\n /**\n * Update classe attribute\n * @private\n * */\n updateClasses() {\n const str = this.model.classes.pluck('name').join(' ');\n this.setAttribute('class', str);\n\n // Regenerate status class\n this.updateStatus();\n this.onAttrUpdate();\n }\n\n /**\n * Update single attribute\n * @param {[type]} name [description]\n * @param {[type]} value [description]\n */\n setAttribute(name: string, value: any) {\n const el = this.$el;\n value ? el.attr(name, value) : el.removeAttr(name);\n }\n\n /**\n * Get classes from attributes.\n * This method is called before initialize\n *\n * @return {Array}|null\n * @private\n * */\n getClasses() {\n return this.model.getClasses().join(' ');\n }\n\n /**\n * Update attributes\n * @private\n * */\n updateAttributes() {\n const attrs: string[] = [];\n const { model, $el, el } = this;\n const { textable, type } = model.attributes;\n\n const defaultAttr = {\n id: model.getId(),\n 'data-gjs-type': type || 'default',\n ...(this.__isDraggable() && { draggable: true }),\n ...(textable && { contenteditable: 'false' }),\n };\n\n // Remove all current attributes\n each(el.attributes, attr => attrs.push(attr.nodeName));\n attrs.forEach(attr => $el.removeAttr(attr));\n this.updateStyle();\n this.updateHighlight();\n const attr = {\n ...defaultAttr,\n ...model.getAttributes(),\n };\n\n // Remove all `false` attributes\n keys(attr).forEach(key => attr[key] === false && delete attr[key]);\n\n $el.attr(attr);\n }\n\n /**\n * Update component content\n * @private\n * */\n updateContent() {\n const { content } = this.model;\n const hasComps = this.model.components().length;\n this.getChildrenContainer().innerHTML = hasComps ? '' : content;\n }\n\n /**\n * Prevent default helper\n * @param {Event} e\n * @private\n */\n prevDef(e: Event) {\n e.preventDefault();\n }\n\n /**\n * Render component's script\n * @private\n */\n updateScript() {\n const { model, em } = this;\n //@ts-ignore\n if (!model.get('script') && !model.globalScript) return;\n em?.Canvas.getCanvasView().updateScript(this);\n }\n\n /**\n * Return children container\n * Differently from a simple component where children container is the\n * component itself\n * \n * \n * \n * You could have the children container more deeper\n * \n *
\n *
\n *
\n *
\n * \n *
\n *
\n *
\n * @return HTMLElement\n * @private\n */\n getChildrenContainer() {\n var container = this.el;\n\n if (typeof this.getChildrenSelector == 'function') {\n container = this.el.querySelector(this.getChildrenSelector());\n } else if (typeof this.getTemplate == 'function') {\n // Need to find deepest first child\n }\n\n return container;\n }\n\n /**\n * This returns rect informations not affected by the canvas zoom.\n * The method `getBoundingClientRect` doesn't work here and we\n * have to take in account offsetParent\n */\n getOffsetRect() {\n const rect = { top: 0, left: 0, bottom: 0, right: 0 };\n const target = this.el;\n let gtop = 0;\n let gleft = 0;\n\n const assignRect = (el: HTMLElement) => {\n const offsetParent = el.offsetParent as HTMLElement;\n\n if (offsetParent) {\n gtop += offsetParent.offsetTop;\n gleft += offsetParent.offsetLeft;\n assignRect(offsetParent);\n } else {\n rect.top = target.offsetTop + gtop;\n rect.left = target.offsetLeft + gleft;\n rect.bottom = rect.top + target.offsetHeight;\n rect.right = rect.left + target.offsetWidth;\n }\n };\n assignRect(target);\n\n return rect;\n }\n\n isInViewport() {\n const { el, em, frameView } = this;\n const canvasView = em.Canvas.getCanvasView();\n const elRect = canvasView.getElBoxRect(el, { local: true });\n const frameEl = frameView.el;\n const frameH = frameEl.clientHeight;\n const frameW = frameEl.clientWidth;\n\n const elTop = elRect.y;\n const elRight = elRect.x;\n const elBottom = elTop + elRect.height;\n const elLeft = elRight + elRect.width;\n const isTopInside = elTop >= 0 && elTop < frameH;\n const isBottomInside = elBottom > 0 && elBottom < frameH;\n const isLeftInside = elLeft >= 0 && elLeft < frameW;\n const isRightInside = elRight > 0 && elRight <= frameW;\n\n const partiallyIn = (isTopInside || isBottomInside) && (isLeftInside || isRightInside);\n\n return partiallyIn;\n }\n\n scrollIntoView(opts: { force?: boolean } & ScrollIntoViewOptions = {}) {\n const isInViewport = this.isInViewport();\n\n if (!isInViewport || opts.force) {\n const { el } = this;\n\n // PATCH: scrollIntoView won't work with multiple requests from iframes\n if (opts.behavior !== 'smooth') {\n const rect = this.getOffsetRect();\n el.ownerDocument.defaultView?.scrollTo(0, rect.top);\n } else {\n el.scrollIntoView({\n behavior: 'smooth',\n block: 'nearest',\n ...opts,\n });\n }\n }\n }\n\n /**\n * Recreate the element of the view\n */\n reset() {\n const { el } = this;\n // @ts-ignore\n this.el = '';\n this._ensureElement();\n this._setData();\n replaceWith(el, this.el);\n this.render();\n }\n\n _setData() {\n const { model } = this;\n const collection = model.components();\n const view = this;\n this.$el.data({ model, collection, view });\n }\n\n _createElement(tagName: string): Node {\n return this.createDoc.createElement(tagName);\n }\n\n /**\n * Render children components\n * @private\n */\n renderChildren() {\n this.updateContent();\n const container = this.getChildrenContainer();\n const view =\n this.childrenView ||\n new ComponentsView({\n // @ts-ignore\n collection: this.model.get('components')!,\n config: this.config,\n componentTypes: this.opts.componentTypes,\n });\n\n view.render(container);\n this.childrenView = view;\n const childNodes = Array.prototype.slice.call(view.el.childNodes);\n\n for (var i = 0, len = childNodes.length; i < len; i++) {\n container.appendChild(childNodes.shift());\n }\n }\n\n renderAttributes() {\n this.updateAttributes();\n this.updateClasses();\n }\n\n onAttrUpdate() {}\n\n render() {\n this.renderAttributes();\n if (this.modelOpt.temporary) return this;\n this.renderChildren();\n this.updateScript();\n setViewEl(this.el, this);\n this.postRender();\n\n return this;\n }\n\n postRender() {\n if (!this.modelOpt.temporary) {\n this.onRender(this._clbObj());\n }\n }\n\n static getEvents() {\n return result(this.prototype, 'events');\n }\n}\n","import ComponentView from './ComponentView';\n\nexport default class ComponentTextNodeView extends ComponentView {\n // Clear methods used on Nodes with attributes\n _setAttributes() {}\n renderAttributes() {}\n updateStatus() {}\n updateClasses() {}\n setAttribute() {}\n updateAttributes() {}\n initClasses() {}\n initComponents() {}\n delegateEvents() {\n return this;\n }\n\n _createElement() {\n return document.createTextNode('');\n }\n\n render() {\n const { model, el } = this;\n if (model.opt.temporary) return this;\n el.textContent = model.content;\n return this;\n }\n}\n","import ComponentTextNodeView from './ComponentTextNodeView';\n\nexport default class ComponentCommentView extends ComponentTextNodeView {\n _createElement() {\n return document.createComment(this.model.content) as Text;\n }\n}\n","import ComponentView from './ComponentView';\nimport { createEl, find, attrUp } from '../../utils/dom';\n\nexport default class ComponentFrameView extends ComponentView {\n tagName() {\n return 'div';\n }\n\n initialize(props: any) {\n super.initialize(props);\n this.listenTo(this.model, 'change:attributes:src', this.updateSrc);\n }\n\n updateSrc() {\n const frame = find(this.el, 'iframe')[0] as HTMLElement;\n frame && attrUp(frame, { src: this.__getSrc() });\n }\n\n render() {\n super.render();\n const frame = createEl('iframe', {\n class: `${this.ppfx}no-pointer`,\n style: 'width: 100%; height: 100%; border: none',\n src: this.__getSrc(),\n });\n this.el.appendChild(frame);\n return this;\n }\n\n __getSrc() {\n return this.model.getAttributes().src || '';\n }\n}\n","import { isString } from 'underscore';\nimport { ObjectAny } from '../../common';\nimport ComponentImage from '../model/ComponentImage';\nimport ComponentView from './ComponentView';\n\nexport default class ComponentImageView extends ComponentView {\n classEmpty!: string;\n model!: ComponentImage;\n el!: HTMLImageElement;\n\n tagName() {\n return 'img';\n }\n\n events(): ObjectAny {\n return {\n dblclick: 'onActive',\n click: 'initResize',\n error: 'onError',\n load: 'onLoad',\n dragstart: 'noDrag',\n };\n }\n\n initialize(props: any) {\n super.initialize(props);\n this.listenTo(this.model, 'change:src', this.updateSrc);\n this.classEmpty = `${this.ppfx}plh-image`;\n this.fetchFile();\n }\n\n /**\n * Fetch file if exists\n */\n fetchFile() {\n if (this.modelOpt.temporary) return;\n const { model, em } = this;\n const file = model.get('file');\n\n if (file && em) {\n const fu = em.Assets.FileUploader();\n fu?.uploadFile(\n {\n // @ts-ignore\n dataTransfer: { files: [file] },\n },\n (res: any) => {\n const obj = res && res.data && res.data[0];\n const src = obj && (isString(obj) ? obj : obj.src);\n src && model.set({ src });\n }\n );\n model.set('file', '');\n }\n }\n\n /**\n * Update src attribute\n * @private\n * */\n updateSrc() {\n const { model } = this;\n model.addAttributes({ src: model.getSrcResult() });\n this.updateClasses();\n }\n\n updateClasses() {\n super.updateClasses();\n const { el, classEmpty, model } = this;\n const srcExists = model.getSrcResult() && !model.isDefaultSrc();\n const method = srcExists ? 'remove' : 'add';\n el.classList[method](classEmpty);\n }\n\n /**\n * Open dialog for image changing\n * @param {Object} e Event\n * @private\n * */\n onActive(ev: Event) {\n ev?.stopPropagation();\n const { em, model } = this;\n const am = em?.Assets;\n\n if (am && model.get('editable')) {\n am.open({\n select(asset, complete) {\n model.set({ src: asset.getSrc() });\n complete && am.close();\n },\n target: model,\n types: ['image'],\n accept: 'image/*',\n });\n }\n }\n\n onError() {\n const fallback = this.model.getSrcResult({ fallback: true });\n if (fallback) {\n this.el.src = fallback;\n }\n }\n\n onLoad() {\n // Used to update component tools box (eg. toolbar, resizer) once the image is loaded\n this.em.trigger('change:canvasOffset');\n }\n\n noDrag(ev: Event) {\n ev.preventDefault();\n return false;\n }\n\n render() {\n this.renderAttributes();\n if (this.modelOpt.temporary) return this;\n this.updateSrc();\n const { $el, model } = this;\n const cls = $el.attr('class') || '';\n !model.get('src') && $el.attr('class', `${cls} ${this.classEmpty}`.trim());\n this.postRender();\n\n return this;\n }\n}\n","import { bindAll } from 'underscore';\nimport { DisableOptions, ObjectAny } from '../../common';\nimport RichTextEditorModule from '../../rich_text_editor';\nimport RichTextEditor from '../../rich_text_editor/model/RichTextEditor';\nimport { off, on } from '../../utils/dom';\nimport { getComponentModel } from '../../utils/mixins';\nimport Component from '../model/Component';\nimport { getComponentIds } from '../model/Components';\nimport { ComponentDefinition } from '../model/types';\nimport ComponentView from './ComponentView';\n\nexport default class ComponentTextView extends ComponentView {\n rte?: RichTextEditorModule;\n rteEnabled?: boolean;\n activeRte?: RichTextEditor;\n lastContent?: string;\n\n events() {\n return {\n dblclick: 'onActive',\n input: 'onInput',\n };\n }\n\n initialize(props: any) {\n super.initialize(props);\n bindAll(this, 'disableEditing', 'onDisable');\n const model = this.model;\n const em = this.em;\n this.listenTo(model, 'focus', this.onActive);\n this.listenTo(model, 'change:content', this.updateContentText);\n this.listenTo(model, 'sync:content', this.syncContent);\n this.rte = em?.RichTextEditor;\n }\n\n updateContentText(m: any, v: any, opts: { fromDisable?: boolean } = {}) {\n !opts.fromDisable && this.disableEditing();\n }\n\n canActivate() {\n const { model, rteEnabled, em } = this;\n const modelInEdit = em?.getEditing();\n const sameInEdit = modelInEdit === model;\n let result = true;\n let isInnerText = false;\n let delegate;\n\n if (rteEnabled || !model.get('editable') || sameInEdit || (isInnerText = model.isChildOf('text'))) {\n result = false;\n // If the current is inner text, select the closest text\n if (isInnerText && !model.get('textable')) {\n let parent = model.parent();\n\n while (parent && !parent.isInstanceOf('text')) {\n parent = parent.parent();\n }\n\n if (parent && parent.get('editable')) {\n delegate = parent;\n } else {\n result = true;\n }\n }\n }\n\n return { result, delegate };\n }\n\n /**\n * Enable element content editing\n * @private\n * */\n async onActive(ev: Event) {\n const { rte, em } = this;\n const { result, delegate } = this.canActivate();\n\n // We place this before stopPropagation in case of nested\n // text components will not block the editing (#1394)\n if (!result) {\n if (delegate) {\n ev?.stopPropagation?.();\n em.setSelected(delegate);\n delegate.trigger('active', ev);\n }\n return;\n }\n\n ev?.stopPropagation?.();\n this.lastContent = await this.getContent();\n\n if (rte) {\n try {\n this.activeRte = await rte.enable(this, this.activeRte!, { event: ev });\n } catch (err) {\n em.logError(err as any);\n }\n }\n\n this.toggleEvents(true);\n }\n\n onDisable(opts?: DisableOptions) {\n this.disableEditing(opts);\n }\n\n /**\n * Disable element content editing\n * @private\n * */\n async disableEditing(opts: DisableOptions = {}) {\n const { model, rte, activeRte, em } = this;\n // There are rare cases when disableEditing is called when the view is already removed\n // so, we have to check for the model, this will avoid breaking stuff.\n const editable = model && model.get('editable');\n\n if (rte) {\n try {\n await rte.disable(this, activeRte, opts);\n } catch (err) {\n em.logError(err as any);\n }\n\n if (editable && (await this.getContent()) !== this.lastContent) {\n await this.syncContent(opts);\n this.lastContent = '';\n }\n }\n\n this.toggleEvents();\n }\n\n /**\n * get content from RTE\n * @return string\n */\n async getContent() {\n const { rte, activeRte } = this;\n let result = '';\n\n if (rte) {\n result = await rte.getContent(this, activeRte!);\n }\n\n return result;\n }\n\n /**\n * Merge content from the DOM to the model\n */\n async syncContent(opts: ObjectAny = {}) {\n const { model, rte, rteEnabled } = this;\n if (!rteEnabled && !opts.force) return;\n const content = await this.getContent();\n const comps = model.components();\n const contentOpt: ObjectAny = { fromDisable: 1, ...opts };\n model.set('content', '', contentOpt);\n\n // If there is a custom RTE the content is just added staticly\n // inside 'content'\n if (rte?.customRte && !rte.customRte.parseContent) {\n comps.length &&\n comps.reset(undefined, {\n ...opts,\n // @ts-ignore\n keepIds: getComponentIds(comps),\n });\n model.set('content', content, contentOpt);\n } else {\n comps.resetFromString(content, opts);\n }\n }\n\n insertComponent(content: ComponentDefinition, opts = {}) {\n const { model, el } = this;\n const doc = el.ownerDocument;\n const selection = doc.getSelection();\n\n if (selection?.rangeCount) {\n const range = selection.getRangeAt(0);\n const textNode = range.startContainer;\n const offset = range.startOffset;\n const textModel = getComponentModel(textNode);\n const newCmps: (ComponentDefinition | Component)[] = [];\n\n if (textModel && textModel.is?.('textnode')) {\n const cmps = textModel.collection;\n cmps.forEach(cmp => {\n if (cmp === textModel) {\n const type = 'textnode';\n const cnt = cmp.content;\n newCmps.push({ type, content: cnt.slice(0, offset) });\n newCmps.push(content);\n newCmps.push({ type, content: cnt.slice(offset) });\n } else {\n newCmps.push(cmp);\n }\n });\n\n const result = newCmps.filter(Boolean);\n const index = result.indexOf(content);\n cmps.reset(result, opts);\n\n return cmps.at(index);\n }\n }\n\n return model.append(content, opts);\n }\n\n /**\n * Callback on input event\n * @param {Event} e\n */\n onInput() {\n const { em } = this;\n const evPfx = 'component';\n const ev = [`${evPfx}:update`, `${evPfx}:input`].join(' ');\n\n // Update toolbars\n em && em.trigger(ev, this.model);\n }\n\n /**\n * Isolate disable propagation method\n * @param {Event}\n * @private\n * */\n disablePropagation(e: Event) {\n e.stopPropagation();\n }\n\n /**\n * Enable/Disable events\n * @param {Boolean} enable\n */\n toggleEvents(enable?: boolean) {\n const { em, model, $el } = this;\n const mixins = { on, off };\n const method = enable ? 'on' : 'off';\n em.setEditing(enable ? this : false);\n this.rteEnabled = !!enable;\n\n // The ownerDocument is from the frame\n var elDocs = [this.el.ownerDocument, document];\n mixins.off(elDocs, 'mousedown', this.onDisable as any);\n mixins[method](elDocs, 'mousedown', this.onDisable as any);\n em[method]('toolbar:run:before', this.onDisable);\n if (model) {\n model[method]('removed', this.onDisable);\n model.trigger(`rte:${enable ? 'enable' : 'disable'}`);\n }\n\n // @ts-ignore Avoid closing edit mode on component click\n $el?.off('mousedown', this.disablePropagation);\n // @ts-ignore\n $el && $el[method]('mousedown', this.disablePropagation);\n\n // Fixes #2210 but use this also as a replacement\n // of this fix: bd7b804f3b46eb45b4398304b2345ce870f232d2\n if (this.config.draggableComponents) {\n let { el } = this;\n\n while (el) {\n el.draggable = enable ? !1 : !0;\n // Note: el.parentNode is sometimes null here\n el = el.parentNode as HTMLElement;\n if (el && el.tagName == 'BODY') {\n // @ts-ignore\n el = 0;\n }\n }\n }\n }\n}\n","import ComponentTextView from './ComponentTextView';\n\nexport default class ComponentLinkView extends ComponentTextView {\n render() {\n super.render();\n // I need capturing instead of bubbling as bubbled clicks from other\n // children will execute the link event\n this.el.addEventListener('click', this.prevDef, true);\n\n return this;\n }\n}\n","import ComponentLinkView from './ComponentLinkView';\n\nexport default class ComponentLabelView extends ComponentLinkView {}\n","import ComponentImageView from './ComponentImageView';\n\nexport default class ComponentMapView extends ComponentImageView {\n iframe?: HTMLIFrameElement;\n\n tagName() {\n return 'div';\n }\n\n events() {\n return {};\n }\n\n initialize(props: any) {\n super.initialize(props);\n this.classEmpty = this.ppfx + 'plh-map';\n }\n\n /**\n * Update the map on the canvas\n * @private\n */\n updateSrc() {\n this.getIframe().src = this.model.get('src');\n }\n\n getIframe() {\n if (!this.iframe) {\n const ifrm = document.createElement('iframe');\n ifrm.src = this.model.get('src');\n ifrm.frameBorder = '0';\n ifrm.style.height = '100%';\n ifrm.style.width = '100%';\n ifrm.className = this.ppfx + 'no-pointer';\n this.iframe = ifrm;\n }\n return this.iframe;\n }\n\n render() {\n super.render();\n this.updateClasses();\n this.el.appendChild(this.getIframe());\n return this;\n }\n}\n","import ComponentView from './ComponentImageView';\n\nexport default class ComponentScriptView extends ComponentView {\n tagName() {\n return 'script';\n }\n\n // @ts-ignore\n events() {\n return {};\n }\n\n render() {\n const { model, em } = this;\n const src = model.get('src');\n const scrCnt = em && em.get('scriptCount');\n const scriptCount = scrCnt ? scrCnt : 0;\n let content = '';\n\n // If it's an external script\n if (src) {\n const onload = model.get('onload');\n const svar = `script${scriptCount}`;\n const svarNext = `script${scriptCount + 1}`;\n const svarFn = `${svar}Start`;\n const svarNextFn = `${svarNext}Start`;\n // Load multiple external scripts in the correct order\n content = `\n var ${svar} = document.createElement('script');\n ${svar}.onload = function() {\n ${onload ? `${onload}();\\n` : ''}\n typeof ${svarNextFn} == 'function' && ${svarNextFn}();\n };\n ${svar}.src = '${src}';\n function ${svarFn}() { document.body.appendChild(${svar}); };\n ${!scriptCount ? `${svarFn}();` : ''}\n `;\n em && em.set('scriptCount', scriptCount + 1);\n } else {\n content = model.__innerHTML()!;\n }\n\n this.el.innerHTML = content;\n this.postRender();\n return this;\n }\n}\n","import ComponentView from './ComponentView';\n\nexport default class ComponentSvgView extends ComponentView {\n _createElement(tagName: string) {\n return document.createElementNS('http://www.w3.org/2000/svg', tagName);\n }\n}\n","import ComponentView from './ComponentView';\n\nexport default class ComponentTableBodyView extends ComponentView {}\n","import ComponentView from './ComponentView';\n\nexport default class ComponentTableCellView extends ComponentView {}\n","import ComponentView from './ComponentView';\n\nexport default class ComponentTableFootView extends ComponentView {}\n","import ComponentView from './ComponentView';\n\nexport default class ComponentTableHeadView extends ComponentView {}\n","import ComponentView from './ComponentView';\n\nexport default class ComponentTableRowView extends ComponentView {}\n","import ComponentView from './ComponentView';\n\nexport default ComponentView.extend({\n events: {},\n});\n","import ComponentVideo from '../model/ComponentVideo';\nimport ComponentImageView from './ComponentImageView';\nimport ComponentView from './ComponentView';\n\nexport default class ComponentVideoView extends ComponentImageView {\n videoEl?: HTMLVideoElement | HTMLIFrameElement;\n model!: ComponentVideo;\n\n tagName() {\n return 'div';\n }\n\n // @ts-ignore\n events() {\n return {};\n }\n\n initialize() {\n // @ts-ignore\n ComponentView.prototype.initialize.apply(this, arguments);\n const { model } = this;\n const props = ['loop', 'autoplay', 'controls', 'color', 'rel', 'modestbranding', 'poster'];\n const events = props.map(p => `change:${p}`).join(' ');\n this.listenTo(model, 'change:provider', this.updateProvider);\n this.listenTo(model, 'change:src', this.updateSrc);\n this.listenTo(model, events, this.updateVideo);\n }\n\n /**\n * Rerender on update of the provider\n * @private\n */\n updateProvider() {\n var prov = this.model.get('provider');\n this.el.innerHTML = '';\n this.el.appendChild(this.renderByProvider(prov));\n }\n\n /**\n * Update the source of the video\n * @private\n */\n updateSrc() {\n const { model, videoEl } = this;\n if (!videoEl) return;\n const prov = model.get('provider');\n let src = model.get('src');\n\n switch (prov) {\n case 'yt':\n src = model.getYoutubeSrc();\n break;\n case 'ytnc':\n src = model.getYoutubeNoCookieSrc();\n break;\n case 'vi':\n src = model.getVimeoSrc();\n break;\n }\n\n videoEl.src = src;\n }\n\n /**\n * Update video parameters\n * @private\n */\n updateVideo() {\n const { model, videoEl } = this;\n const prov = model.get('provider');\n switch (prov) {\n case 'yt':\n case 'ytnc':\n case 'vi':\n model.trigger('change:videoId');\n break;\n default: {\n if (videoEl) {\n const el = videoEl as HTMLVideoElement;\n el.loop = model.get('loop');\n el.autoplay = model.get('autoplay');\n el.controls = model.get('controls');\n el.poster = model.get('poster');\n }\n }\n }\n }\n\n renderByProvider(prov: string) {\n let videoEl;\n\n switch (prov) {\n case 'yt':\n videoEl = this.renderYoutube();\n break;\n case 'ytnc':\n videoEl = this.renderYoutubeNoCookie();\n break;\n case 'vi':\n videoEl = this.renderVimeo();\n break;\n default:\n videoEl = this.renderSource();\n }\n\n this.videoEl = videoEl;\n return videoEl;\n }\n\n renderSource() {\n const el = document.createElement('video');\n el.src = this.model.get('src');\n this.initVideoEl(el);\n return el;\n }\n\n renderYoutube() {\n const el = document.createElement('iframe');\n el.src = this.model.getYoutubeSrc();\n el.frameBorder = '0';\n el.setAttribute('allowfullscreen', 'true');\n this.initVideoEl(el);\n return el;\n }\n\n renderYoutubeNoCookie() {\n var el = document.createElement('iframe');\n el.src = this.model.getYoutubeNoCookieSrc();\n el.frameBorder = '0';\n el.setAttribute('allowfullscreen', 'true');\n this.initVideoEl(el);\n return el;\n }\n\n renderVimeo() {\n var el = document.createElement('iframe');\n el.src = this.model.getVimeoSrc();\n el.frameBorder = '0';\n el.setAttribute('allowfullscreen', 'true');\n this.initVideoEl(el);\n return el;\n }\n\n initVideoEl(el: HTMLElement) {\n el.className = this.ppfx + 'no-pointer';\n el.style.height = '100%';\n el.style.width = '100%';\n }\n\n render() {\n ComponentView.prototype.render.apply(this);\n this.updateClasses();\n var prov = this.model.get('provider');\n this.el.appendChild(this.renderByProvider(prov));\n this.updateVideo();\n return this;\n }\n}\n","import ComponentView from './ComponentView';\n\nexport default class ComponentWrapperView extends ComponentView {\n tagName() {\n return 'div';\n }\n}\n","/**\n * With this module is possible to manage components inside the canvas. You can customize the initial state of the module from the editor initialization, by passing the following [Configuration Object](https://github.com/GrapesJS/grapesjs/blob/master/src/dom_components/config/config.ts)\n * ```js\n * const editor = grapesjs.init({\n * domComponents: {\n * // options\n * }\n * })\n * ```\n *\n * Once the editor is instantiated you can use its API and listen to its events. Before using these methods, you should get the module from the instance.\n *\n * ```js\n * // Listen to events\n * editor.on('component:create', () => { ... });\n *\n * // Use the API\n * const cmp = editor.Components;\n * cmp.addType(...);\n * ```\n *\n * ## Available Events\n * * `component:create` - Component is created (only the model, is not yet mounted in the canvas), called after the init() method\n * * `component:mount` - Component is mounted to an element and rendered in canvas\n * * `component:add` - Triggered when a new component is added to the editor, the model is passed as an argument to the callback\n * * `component:remove` - Triggered when a component is removed, the model is passed as an argument to the callback\n * * `component:remove:before` - Triggered before the remove of the component, the model, remove function (if aborted via options, with this function you can complete the remove) and options (use options.abort = true to prevent remove), are passed as arguments to the callback\n * * `component:clone` - Triggered when a component is cloned, the new model is passed as an argument to the callback\n * * `component:update` - Triggered when a component is updated (moved, styled, etc.), the model is passed as an argument to the callback\n * * `component:update:{propertyName}` - Listen any property change, the model is passed as an argument to the callback\n * * `component:styleUpdate` - Triggered when the style of the component is updated, the model is passed as an argument to the callback\n * * `component:styleUpdate:{propertyName}` - Listen for a specific style property change, the model is passed as an argument to the callback\n * * `component:selected` - New component selected, the selected model is passed as an argument to the callback\n * * `component:deselected` - Component deselected, the deselected model is passed as an argument to the callback\n * * `component:toggled` - Component selection changed, toggled model is passed as an argument to the callback\n * * `component:type:add` - New component type added, the new type is passed as an argument to the callback\n * * `component:type:update` - Component type updated, the updated type is passed as an argument to the callback\n * * `component:drag:start` - Component drag started. Passed an object, to the callback, containing the `target` (component to drag), `parent` (parent of the component) and `index` (component index in the parent)\n * * `component:drag` - During component drag. Passed the same object as in `component:drag:start` event, but in this case, `parent` and `index` are updated by the current pointer\n * * `component:drag:end` - Component drag ended. Passed the same object as in `component:drag:start` event, but in this case, `parent` and `index` are updated by the final pointer\n * * `component:resize` - During component resize.\n *\n * ## Methods\n * * [getWrapper](#getwrapper)\n * * [getComponents](#getcomponents)\n * * [addComponent](#addcomponent)\n * * [clear](#clear)\n * * [addType](#addtype)\n * * [getType](#gettype)\n * * [getTypes](#gettypes)\n *\n * * [Component]: component.html\n *\n * @module Components\n */\nimport { debounce, isArray, isEmpty, isFunction, isString, result } from 'underscore';\nimport { ItemManagerModule } from '../abstract/Module';\nimport { AddOptions, ObjectAny } from '../common';\nimport EditorModel from '../editor/model/Editor';\nimport { isComponent } from '../utils/mixins';\nimport defaults, { DomComponentsConfig } from './config/config';\nimport Component, { IComponent, keyUpdate, keyUpdateInside } from './model/Component';\nimport ComponentComment from './model/ComponentComment';\nimport ComponentFrame from './model/ComponentFrame';\nimport ComponentImage from './model/ComponentImage';\nimport ComponentLabel from './model/ComponentLabel';\nimport ComponentLink from './model/ComponentLink';\nimport ComponentMap from './model/ComponentMap';\nimport ComponentScript from './model/ComponentScript';\nimport ComponentSvg from './model/ComponentSvg';\nimport ComponentSvgIn from './model/ComponentSvgIn';\nimport ComponentTable from './model/ComponentTable';\nimport ComponentTableBody from './model/ComponentTableBody';\nimport ComponentTableCell from './model/ComponentTableCell';\nimport ComponentTableFoot from './model/ComponentTableFoot';\nimport ComponentTableHead from './model/ComponentTableHead';\nimport ComponentTableRow from './model/ComponentTableRow';\nimport ComponentText from './model/ComponentText';\nimport ComponentTextNode from './model/ComponentTextNode';\nimport ComponentVideo from './model/ComponentVideo';\nimport ComponentWrapper from './model/ComponentWrapper';\nimport Components from './model/Components';\nimport { ComponentAdd, ComponentDefinition, ComponentDefinitionDefined } from './model/types';\nimport ComponentCommentView from './view/ComponentCommentView';\nimport ComponentFrameView from './view/ComponentFrameView';\nimport ComponentImageView from './view/ComponentImageView';\nimport ComponentLabelView from './view/ComponentLabelView';\nimport ComponentLinkView from './view/ComponentLinkView';\nimport ComponentMapView from './view/ComponentMapView';\nimport ComponentScriptView from './view/ComponentScriptView';\nimport ComponentSvgView from './view/ComponentSvgView';\nimport ComponentTableBodyView from './view/ComponentTableBodyView';\nimport ComponentTableCellView from './view/ComponentTableCellView';\nimport ComponentTableFootView from './view/ComponentTableFootView';\nimport ComponentTableHeadView from './view/ComponentTableHeadView';\nimport ComponentTableRowView from './view/ComponentTableRowView';\nimport ComponentTableView from './view/ComponentTableView';\nimport ComponentTextNodeView from './view/ComponentTextNodeView';\nimport ComponentTextView from './view/ComponentTextView';\nimport ComponentVideoView from './view/ComponentVideoView';\nimport ComponentView, { IComponentView } from './view/ComponentView';\nimport ComponentWrapperView from './view/ComponentWrapperView';\nimport ComponentsView from './view/ComponentsView';\n\nexport type ComponentEvent =\n | 'component:create'\n | 'component:mount'\n | 'component:add'\n | 'component:remove'\n | 'component:remove:before'\n | 'component:clone'\n | 'component:update'\n | 'component:styleUpdate'\n | 'component:selected'\n | 'component:deselected'\n | 'component:toggled'\n | 'component:type:add'\n | 'component:type:update'\n | 'component:drag:start'\n | 'component:drag'\n | 'component:drag:end'\n | 'component:resize';\n\nexport interface ComponentModelDefinition extends IComponent {\n defaults?: ComponentDefinition | (() => ComponentDefinition);\n [key: string]: any;\n}\n\nexport interface ComponentViewDefinition extends IComponentView {\n [key: string]: any;\n}\n\nexport interface AddComponentTypeOptions {\n isComponent?: (el: HTMLElement) => boolean | ComponentDefinitionDefined | undefined;\n model?: Partial & ThisType;\n view?: Partial & ThisType;\n extend?: string;\n extendView?: string;\n extendFn?: string[];\n extendFnView?: string[];\n}\n\n/** @private */\nexport enum CanMoveReason {\n /**\n * Invalid source. This is a default value and should be ignored in case the `result` is true\n */\n InvalidSource = 0,\n /**\n * Source doesn't accept target as destination.\n */\n SourceReject = 1,\n /**\n * Target doesn't accept source.\n */\n TargetReject = 2,\n}\n\nexport interface CanMoveResult {\n result: boolean;\n reason: CanMoveReason;\n target: Component;\n source?: Component | null;\n}\n\nexport default class ComponentManager extends ItemManagerModule {\n componentTypes = [\n {\n id: 'cell',\n model: ComponentTableCell,\n view: ComponentTableCellView,\n },\n {\n id: 'row',\n model: ComponentTableRow,\n view: ComponentTableRowView,\n },\n {\n id: 'table',\n model: ComponentTable,\n view: ComponentTableView,\n },\n {\n id: 'thead',\n model: ComponentTableHead,\n view: ComponentTableHeadView,\n },\n {\n id: 'tbody',\n model: ComponentTableBody,\n view: ComponentTableBodyView,\n },\n {\n id: 'tfoot',\n model: ComponentTableFoot,\n view: ComponentTableFootView,\n },\n {\n id: 'map',\n model: ComponentMap,\n view: ComponentMapView,\n },\n {\n id: 'link',\n model: ComponentLink,\n view: ComponentLinkView,\n },\n {\n id: 'label',\n model: ComponentLabel,\n view: ComponentLabelView,\n },\n {\n id: 'video',\n model: ComponentVideo,\n view: ComponentVideoView,\n },\n {\n id: 'image',\n model: ComponentImage,\n view: ComponentImageView,\n },\n {\n id: 'script',\n model: ComponentScript,\n view: ComponentScriptView,\n },\n {\n id: 'svg-in',\n model: ComponentSvgIn,\n view: ComponentSvgView,\n },\n {\n id: 'svg',\n model: ComponentSvg,\n view: ComponentSvgView,\n },\n {\n id: 'iframe',\n model: ComponentFrame,\n view: ComponentFrameView,\n },\n {\n id: 'comment',\n model: ComponentComment,\n view: ComponentCommentView,\n },\n {\n id: 'textnode',\n model: ComponentTextNode,\n view: ComponentTextNodeView,\n },\n {\n id: 'text',\n model: ComponentText,\n view: ComponentTextView,\n },\n {\n id: 'wrapper',\n model: ComponentWrapper,\n view: ComponentWrapperView,\n },\n {\n id: 'default',\n model: Component,\n view: ComponentView,\n },\n ];\n\n componentsById: { [id: string]: Component } = {};\n componentView?: ComponentWrapperView;\n\n Component = Component;\n\n Components = Components;\n\n ComponentView = ComponentView;\n\n ComponentsView = ComponentsView;\n\n /**\n * Name of the module\n * @type {String}\n * @private\n */\n //name = \"DomComponents\";\n\n storageKey = 'components';\n\n shallow?: Component;\n\n /**\n * Initialize module. Called on a new instance of the editor with configurations passed\n * inside 'domComponents' field\n * @param {Object} config Configurations\n * @private\n */\n constructor(em: EditorModel) {\n super(em, 'DomComponents', new Components(undefined, { em }));\n\n if (em) {\n //@ts-ignore\n this.config.components = em.config.components || this.config.components;\n }\n\n for (var name in defaults) {\n //@ts-ignore\n if (!(name in this.config)) this.config[name] = defaults[name];\n }\n\n var ppfx = this.config.pStylePrefix;\n if (ppfx) this.config.stylePrefix = ppfx + this.config.stylePrefix;\n\n // Load dependencies\n if (em) {\n em.get('Parser').compTypes = this.componentTypes;\n em.on('change:componentHovered', this.componentHovered, this);\n\n const selected = em.get('selected');\n em.listenTo(selected, 'add', (sel, c, opts) => this.selectAdd(selected.getComponent(sel), opts));\n em.listenTo(selected, 'remove', (sel, c, opts) => this.selectRemove(selected.getComponent(sel), opts));\n }\n\n return this;\n }\n\n load(data: any) {\n return this.loadProjectData(data, {\n onResult: (result: Component) => {\n let wrapper = this.getWrapper()!;\n\n if (!wrapper) {\n this.em.Pages.add({}, { select: true });\n wrapper = this.getWrapper()!;\n }\n\n if (isArray(result)) {\n result.length && wrapper.components(result);\n } else {\n const { components = [], ...rest } = result;\n wrapper.set(rest);\n //@ts-ignore\n wrapper.components(components);\n }\n },\n });\n }\n\n store() {\n return {};\n }\n\n /**\n * Returns the main wrapper.\n * @return {Object}\n * @private\n */\n getComponent() {\n const sel = this.em.Pages.getSelected();\n const frame = sel?.getMainFrame();\n return frame?.getComponent();\n }\n\n /**\n * Returns root component inside the canvas. Something like `` inside HTML page\n * The wrapper doesn't differ from the original Component Model\n * @return {[Component]} Root Component\n * @example\n * // Change background of the wrapper and set some attribute\n * var wrapper = cmp.getWrapper();\n * wrapper.set('style', {'background-color': 'red'});\n * wrapper.set('attributes', {'title': 'Hello!'});\n */\n getWrapper() {\n return this.getComponent();\n }\n\n /**\n * Returns wrapper's children collection. Once you have the collection you can\n * add other Components(Models) inside. Each component can have several nested\n * components inside and you can nest them as more as you wish.\n * @return {Components} Collection of components\n * @example\n * // Let's add some component\n * var wrapperChildren = cmp.getComponents();\n * var comp1 = wrapperChildren.add({\n * style: { 'background-color': 'red'}\n * });\n * var comp2 = wrapperChildren.add({\n * tagName: 'span',\n * attributes: { title: 'Hello!'}\n * });\n * // Now let's add an other one inside first component\n * // First we have to get the collection inside. Each\n * // component has 'components' property\n * var comp1Children = comp1.get('components');\n * // Procede as before. You could also add multiple objects\n * comp1Children.add([\n * { style: { 'background-color': 'blue'}},\n * { style: { height: '100px', width: '100px'}}\n * ]);\n * // Remove comp2\n * wrapperChildren.remove(comp2);\n */\n getComponents(): Components {\n const wrp = this.getWrapper();\n return wrp?.components()!;\n }\n\n /**\n * Add new components to the wrapper's children. It's the same\n * as 'cmp.getComponents().add(...)'\n * @param {Object|[Component]|Array} component Component/s to add\n * @param {string} [component.tagName='div'] Tag name\n * @param {string} [component.type=''] Type of the component. Available: ''(default), 'text', 'image'\n * @param {boolean} [component.removable=true] If component is removable\n * @param {boolean} [component.draggable=true] If is possible to move the component around the structure\n * @param {boolean} [component.droppable=true] If is possible to drop inside other components\n * @param {boolean} [component.badgable=true] If the badge is visible when the component is selected\n * @param {boolean} [component.stylable=true] If is possible to style component\n * @param {boolean} [component.copyable=true] If is possible to copy&paste the component\n * @param {string} [component.content=''] String inside component\n * @param {Object} [component.style={}] Style object\n * @param {Object} [component.attributes={}] Attribute object\n * @param {Object} opt the options object to be used by the [Components.add]{@link getComponents} method\n * @return {[Component]|Array<[Component]>} Component/s added\n * @example\n * // Example of a new component with some extra property\n * var comp1 = cmp.addComponent({\n * tagName: 'div',\n * removable: true, // Can't remove it\n * draggable: true, // Can't move it\n * copyable: true, // Disable copy/past\n * content: 'Content text', // Text inside component\n * style: { color: 'red'},\n * attributes: { title: 'here' }\n * });\n */\n addComponent(component: ComponentAdd, opt: AddOptions = {}): Component | Component[] {\n return this.getComponents().add(component, opt);\n }\n\n /**\n * Render and returns wrapper element with all components inside.\n * Once the wrapper is rendered, and it's what happens when you init the editor,\n * the all new components will be added automatically and property changes are all\n * updated immediately\n * @return {HTMLElement}\n * @private\n */\n render() {\n return this.componentView?.render().el;\n }\n\n /**\n * Remove all components\n * @return {this}\n */\n clear(opts = {}) {\n const components = this.getComponents();\n //@ts-ignore\n components?.filter(Boolean).forEach(i => i.remove(opts));\n return this;\n }\n\n /**\n * Set components\n * @param {Object|string} components HTML string or components model\n * @param {Object} opt the options object to be used by the {@link addComponent} method\n * @return {this}\n * @private\n */\n setComponents(components: ComponentAdd, opt: AddOptions = {}) {\n this.clear(opt).addComponent(components, opt);\n }\n\n /**\n * Add new component type.\n * Read more about this in [Define New Component](https://grapesjs.com/docs/modules/Components.html#define-new-component)\n * @param {string} type Component ID\n * @param {Object} methods Component methods\n * @return {this}\n */\n addType(type: string, methods: AddComponentTypeOptions) {\n const { em } = this;\n const { model = {}, view = {}, isComponent, extend, extendView, extendFn = [], extendFnView = [] } = methods;\n const compType = this.getType(type);\n const extendType = this.getType(extend!);\n const extendViewType = this.getType(extendView!);\n const typeToExtend = extendType ? extendType : compType ? compType : this.getType('default');\n const modelToExt = typeToExtend.model;\n const viewToExt = extendViewType ? extendViewType.view : typeToExtend.view;\n\n // Function for extending source object methods\n const getExtendedObj = (fns: any[], target: any, srcToExt: any) =>\n fns.reduce((res, next) => {\n const fn = target[next];\n const parentFn = srcToExt.prototype[next];\n if (fn && parentFn) {\n res[next] = function (...args: any[]) {\n parentFn.bind(this)(...args);\n fn.bind(this)(...args);\n };\n }\n return res;\n }, {});\n\n // If the model/view is a simple object I need to extend it\n if (typeof model === 'object') {\n const modelDefaults = { defaults: model.defaults };\n delete model.defaults;\n methods.model = modelToExt.extend(\n {\n ...model,\n ...getExtendedObj(extendFn, model, modelToExt),\n },\n {\n isComponent: compType && !extendType && !isComponent ? modelToExt.isComponent : isComponent || (() => 0),\n }\n );\n // Reassign the defaults getter to the model\n Object.defineProperty(methods.model!.prototype, 'defaults', {\n get: () => ({\n ...(result(modelToExt.prototype, 'defaults') || {}),\n ...(result(modelDefaults, 'defaults') || {}),\n }),\n });\n }\n\n if (typeof view === 'object') {\n methods.view = viewToExt.extend({\n ...view,\n ...getExtendedObj(extendFnView, view, viewToExt),\n });\n }\n\n if (compType) {\n compType.model = methods.model;\n compType.view = methods.view;\n } else {\n // @ts-ignore\n methods.id = type;\n this.componentTypes.unshift(methods as any);\n }\n\n const event = `component:type:${compType ? 'update' : 'add'}`;\n em?.trigger(event, compType || methods);\n\n return this;\n }\n\n /**\n * Get component type.\n * Read more about this in [Define New Component](https://grapesjs.com/docs/modules/Components.html#define-new-component)\n * @param {string} type Component ID\n * @return {Object} Component type definition, eg. `{ model: ..., view: ... }`\n */\n getType(type: 'default'): { id: string; model: any; view: any };\n getType(type: string): { id: string; model: any; view: any } | undefined;\n getType(type: string) {\n var df = this.componentTypes;\n\n for (var it = 0; it < df.length; it++) {\n var dfId = df[it].id;\n if (dfId == type) {\n return df[it];\n }\n }\n return;\n }\n\n /**\n * Remove component type\n * @param {string} type Component ID\n * @returns {Object|undefined} Removed component type, undefined otherwise\n */\n removeType(id: string) {\n const df = this.componentTypes;\n const type = this.getType(id);\n if (!type) return;\n const index = df.indexOf(type);\n df.splice(index, 1);\n return type;\n }\n\n /**\n * Return the array of all types\n * @return {Array}\n */\n getTypes() {\n return this.componentTypes;\n }\n\n selectAdd(component: Component, opts = {}) {\n if (component) {\n component.set({\n status: 'selected',\n });\n ['component:selected', 'component:toggled'].forEach(event => this.em.trigger(event, component, opts));\n }\n }\n\n selectRemove(component: Component, opts = {}) {\n if (component) {\n const { em } = this;\n component.set({\n status: '',\n state: '',\n });\n ['component:deselected', 'component:toggled'].forEach(event => this.em.trigger(event, component, opts));\n }\n }\n\n /**\n * Triggered when the component is hovered\n * @private\n */\n componentHovered() {\n const { em } = this;\n const model = em.get('componentHovered');\n const previous = em.previous('componentHovered');\n const state = 'hovered';\n\n // Deselect the previous component\n previous &&\n previous.get('status') == state &&\n previous.set({\n status: '',\n state: '',\n });\n\n model && isEmpty(model.get('status')) && model.set('status', state);\n }\n\n getShallowWrapper() {\n let { shallow, em } = this;\n\n if (!shallow && em) {\n const shallowEm = em.shallow;\n if (!shallowEm) return;\n const domc = shallowEm.Components;\n domc.componentTypes = this.componentTypes;\n shallow = domc.getWrapper();\n if (shallow) {\n const events = [keyUpdate, keyUpdateInside].join(' ');\n shallow.on(\n events,\n debounce(() => shallow?.components(''), 100)\n );\n }\n this.shallow = shallow;\n }\n\n return shallow;\n }\n\n /**\n * Check if the object is a [Component].\n * @param {Object} obj\n * @returns {Boolean}\n * @example\n * cmp.isComponent(editor.getSelected()); // true\n * cmp.isComponent({}); // false\n */\n isComponent(obj?: ObjectAny): obj is Component {\n return isComponent(obj);\n }\n\n /**\n * Check if a component can be moved inside another one.\n * @param {[Component]} target The target component is the one that is supposed to receive the source one.\n * @param {[Component]|String} source The source can be another component, a component definition or an HTML string.\n * @param {Number} [index] Index position, if not specified, the check will be performed against appending the source to the target.\n * @returns {Object} Object containing the `result` (Boolean), `source`, `target` (as Components), and a `reason` (Number) with these meanings:\n * * `0` - Invalid source. This is a default value and should be ignored in case the `result` is true.\n * * `1` - Source doesn't accept target as destination.\n * * `2` - Target doesn't accept source.\n * @example\n * const rootComponent = editor.getWrapper();\n * const someComponent = editor.getSelected();\n *\n * // Check with two components\n * editor.Components.canMove(rootComponent, someComponent);\n *\n * // Check with component definition\n * editor.Components.canMove(rootComponent, { tagName: 'a', draggable: false });\n *\n * // Check with HTML string\n * editor.Components.canMove(rootComponent, '
...
');\n */\n canMove(target: Component, source?: Component | ComponentDefinition | string, index?: number): CanMoveResult {\n const result: CanMoveResult = {\n result: false,\n reason: CanMoveReason.InvalidSource,\n target,\n source: null,\n };\n\n if (!source || !target) return result;\n\n let srcModel = isComponent(source) ? source : null;\n\n if (!srcModel) {\n const wrapper = this.getShallowWrapper();\n srcModel = wrapper?.append(source)[0] || null;\n }\n\n result.source = srcModel;\n\n if (!srcModel) return result;\n\n // Check if the source is draggable in the target\n let draggable = srcModel.get('draggable');\n\n if (isFunction(draggable)) {\n draggable = !!draggable(srcModel, target, index);\n } else {\n const el = target.getEl();\n draggable = isArray(draggable) ? draggable.join(',') : draggable;\n draggable = isString(draggable) ? el?.matches(draggable) : draggable;\n }\n\n if (!draggable) return { ...result, reason: CanMoveReason.SourceReject };\n\n // Check if the target accepts the source\n let droppable = target.get('droppable');\n\n if (isFunction(droppable)) {\n droppable = !!droppable(srcModel, target, index);\n } else {\n if (droppable === false && target.isInstanceOf('text') && srcModel.get('textable')) {\n droppable = true;\n } else {\n const el = srcModel.getEl();\n droppable = isArray(droppable) ? droppable.join(',') : droppable;\n droppable = isString(droppable) ? el?.matches(droppable) : droppable;\n }\n }\n\n // Ensure the target is not inside the source\n const isTargetInside = [target].concat(target.parents()).indexOf(srcModel) > -1;\n\n if (!droppable || isTargetInside) return { ...result, reason: CanMoveReason.TargetReject };\n\n return { ...result, result: true };\n }\n\n allById() {\n return this.componentsById;\n }\n\n getById(id: string) {\n return this.componentsById[id] || null;\n }\n\n destroy() {\n const all = this.allById();\n Object.keys(all).forEach(id => all[id] && all[id].remove());\n this.componentView?.remove();\n [this.em, this.componentsById, this.componentView].forEach(i => (i = {}));\n }\n}\n","export interface CssComposerConfig {\n /**\n * Style prefix.\n * @default 'css-'\n */\n stylePrefix?: string;\n\n /**\n * Default CSS style rules\n */\n rules?: Array; // TODO\n}\n\nconst config: CssComposerConfig = {\n stylePrefix: 'css-',\n rules: [],\n};\n\nexport default config;\n","import { bindAll, isUndefined, each } from 'underscore';\nimport { Model } from '../../common';\nimport CssComposer from '../../css_composer';\nimport CssRule from '../../css_composer/model/CssRule';\nimport CssRules from '../../css_composer/model/CssRules';\nimport Component from '../../dom_components/model/Component';\nimport EditorModel from '../../editor/model/Editor';\nimport { hasWin } from '../../utils/mixins';\n\nconst maxValue = Number.MAX_VALUE;\n\nexport const getMediaLength = (mediaQuery: string) => {\n const length = /(-?\\d*\\.?\\d+)\\w{0,}/.exec(mediaQuery);\n return !length ? '' : length[0];\n};\n\nexport type CssGeneratorBuildOptions = {\n /**\n * Return an array of CssRules instead of the CSS string.\n */\n json?: boolean;\n\n /**\n * Return only rules matched by the passed component.\n */\n onlyMatched?: boolean;\n\n /**\n * Force keep all defined rules. Toggle on in case output looks different inside/outside of the editor.\n */\n keepUnusedStyles?: boolean;\n rules?: CssRule[];\n clearStyles?: boolean;\n};\n\ntype CssGeneratorBuildOptionsProps = CssGeneratorBuildOptions & {\n em?: EditorModel;\n cssc?: CssComposer;\n};\n\ntype AtRules = Record;\n\nexport default class CssGenerator extends Model {\n compCls: string[];\n ids: string[];\n model?: Component;\n em?: EditorModel;\n\n constructor() {\n super();\n bindAll(this, 'sortRules');\n this.compCls = [];\n this.ids = [];\n }\n\n /**\n * Get CSS from a component\n * @param {Model} model\n * @return {String}\n */\n buildFromModel(model: Component, opts: CssGeneratorBuildOptions = {}) {\n let code = '';\n const em = this.em;\n const avoidInline = em && em.getConfig().avoidInlineStyle;\n const style = model.styleToString();\n const classes = model.classes;\n this.ids.push(`#${model.getId()}`);\n\n // Let's know what classes I've found\n classes.forEach((model: any) => this.compCls.push(model.getFullName()));\n\n if (!avoidInline && style) {\n code = `#${model.getId()}{${style}}`;\n }\n\n const components = model.components();\n components.forEach((model: Component) => (code += this.buildFromModel(model, opts)));\n return code;\n }\n\n build(model: Component, opts: CssGeneratorBuildOptionsProps = {}) {\n const { json } = opts;\n const em = opts.em;\n const cssc = opts.cssc || em?.Css;\n this.em = em;\n this.compCls = [];\n this.ids = [];\n this.model = model;\n const codeJson: CssRule[] = [];\n let code = model ? this.buildFromModel(model, opts) : '';\n const clearStyles = isUndefined(opts.clearStyles) && em ? em.getConfig().clearStyles : opts.clearStyles;\n\n if (cssc) {\n let rules: CssRules | CssRule[] = opts.rules || cssc.getAll();\n const atRules: AtRules = {};\n const dump: CssRule[] = [];\n\n if (opts.onlyMatched && model && hasWin()) {\n rules = this.matchedRules(model, rules);\n }\n\n rules.forEach(rule => {\n const atRule = rule.getAtRule();\n\n if (atRule) {\n const mRules = atRules[atRule];\n if (mRules) {\n mRules.push(rule);\n } else {\n atRules[atRule] = [rule];\n }\n return;\n }\n\n const res = this.buildFromRule(rule, dump, opts);\n\n if (json) {\n codeJson.push(res as CssRule);\n } else {\n code += res;\n }\n });\n\n this.sortMediaObject(atRules).forEach(item => {\n let rulesStr = '';\n const atRule = item.key;\n const mRules = item.value;\n\n mRules.forEach(rule => {\n const ruleStr = this.buildFromRule(rule, dump, opts);\n\n if (rule.get('singleAtRule')) {\n code += `${atRule}{${ruleStr}}`;\n } else {\n rulesStr += ruleStr;\n }\n\n json && codeJson.push(ruleStr as CssRule);\n });\n\n if (rulesStr) {\n code += `${atRule}{${rulesStr}}`;\n }\n });\n\n // @ts-ignore\n em && clearStyles && rules.remove && rules.remove(dump);\n }\n\n return json ? codeJson.filter(r => r) : code;\n }\n\n /**\n * Get CSS from the rule model\n * @param {Model} rule\n * @return {string} CSS string\n */\n buildFromRule(rule: CssRule, dump: CssRule[], opts: CssGeneratorBuildOptions = {}) {\n let result: CssRule | string = '';\n const { model } = this;\n const selectorStrNoAdd = rule.selectorsToString({ skipAdd: 1 });\n const selectorsAdd = rule.get('selectorsAdd');\n const singleAtRule = rule.get('singleAtRule');\n let found;\n\n // This will not render a rule if there is no its component\n rule.get('selectors')?.forEach(selector => {\n const name = selector.getFullName();\n if (this.compCls.indexOf(name) >= 0 || this.ids.indexOf(name) >= 0 || opts.keepUnusedStyles) {\n found = 1;\n }\n });\n\n if ((selectorStrNoAdd && found) || selectorsAdd || singleAtRule || !model) {\n const block = rule.getDeclaration({ body: 1 });\n block && (opts.json ? (result = rule) : (result += block));\n } else {\n dump.push(rule);\n }\n\n return result;\n }\n\n /**\n * Get matched rules of a component\n * @param {Component} component\n * @param {Array} rules\n * @returns {Array}\n */\n matchedRules(component: Component, rules: CssRules | CssRule[]) {\n const el = component.getEl();\n let result: CssRule[] = [];\n\n rules.forEach(rule => {\n try {\n if (\n rule\n .selectorsToString()\n .split(',')\n .some(selector => el?.matches(this.__cleanSelector(selector)))\n ) {\n result.push(rule);\n }\n } catch (err) {}\n });\n\n component.components().forEach((component: Component) => {\n result = result.concat(this.matchedRules(component, rules));\n });\n\n // Remove duplicates\n result = result.filter((rule, i) => result.indexOf(rule) === i);\n\n return result;\n }\n\n /**\n * Get the numeric length of the media query string\n * @param {String} mediaQuery Media query string\n * @return {Number}\n */\n getQueryLength(mediaQuery: string) {\n const length = /(-?\\d*\\.?\\d+)\\w{0,}/.exec(mediaQuery);\n if (!length) return maxValue;\n\n return parseFloat(length[1]);\n }\n\n /**\n * Return a sorted array from media query object\n * @param {Object} items\n * @return {Array}\n */\n sortMediaObject(items: AtRules = {}) {\n const itemsArr: { key: string; value: CssRule[] }[] = [];\n each(items, (value, key) => itemsArr.push({ key, value }));\n return itemsArr.sort((a, b) => {\n const isMobFirst = [a.key, b.key].every(mquery => mquery.indexOf('min-width') !== -1);\n const left = isMobFirst ? a.key : b.key;\n const right = isMobFirst ? b.key : a.key;\n return this.getQueryLength(left) - this.getQueryLength(right);\n });\n }\n\n sortRules(a: CssRule, b: CssRule) {\n const getKey = (rule: CssRule) => rule.get('mediaText') || '';\n const isMobFirst = [getKey(a), getKey(b)].every(q => q.indexOf('min-width') !== -1);\n const left = isMobFirst ? getKey(a) : getKey(b);\n const right = isMobFirst ? getKey(b) : getKey(a);\n return this.getQueryLength(left) - this.getQueryLength(right);\n }\n\n /**\n * Return passed selector without states\n * @param {String} selector\n * @returns {String}\n * @private\n */\n __cleanSelector(selector: string) {\n return selector\n .split(' ')\n .map(item => item.split(':')[0])\n .join(' ');\n }\n}\n","import { isEmpty, forEach, isString, isArray } from 'underscore';\nimport { Model, ObjectAny } from '../../common';\nimport StyleableModel from '../../domain_abstract/model/StyleableModel';\nimport Selectors from '../../selector_manager/model/Selectors';\nimport { getMediaLength } from '../../code_manager/model/CssGenerator';\nimport { isEmptyObj, hasWin } from '../../utils/mixins';\nimport Selector, { SelectorProps } from '../../selector_manager/model/Selector';\nimport EditorModel from '../../editor/model/Editor';\n\n/** @private */\nexport interface CssRuleProperties {\n /**\n * Array of selectors\n */\n selectors: Selector[];\n /**\n * Object containing style definitions\n * @default {}\n */\n style?: Record;\n /**\n * Additional string css selectors\n * @default ''\n */\n selectorsAdd?: string;\n /**\n * Type of at-rule, eg. `media`, 'font-face'\n * @default ''\n */\n atRuleType?: string;\n /**\n * At-rule value, eg. `(max-width: 1000px)`\n * @default ''\n */\n mediaText?: string;\n /**\n * This property is used only on at-rules, like 'page' or 'font-face', where the block containes only style declarations.\n * @default false\n */\n singleAtRule?: boolean;\n /**\n * State of the rule, eg: `hover`, `focused`\n * @default ''\n */\n state?: string;\n /**\n * If true, sets `!important` on all properties. You can also pass an array to specify properties on which to use important.\n * @default false\n */\n important?: boolean | string[];\n /**\n * Indicates if the rule is stylable from the editor.\n * @default true\n */\n stylable?: boolean | string[];\n /**\n * Group for rules.\n * @default ''\n */\n group?: string;\n /**\n * If true, the rule won't be stored in JSON or showed in CSS export.\n * @default false\n */\n shallow?: boolean;\n}\n\nexport interface CssRuleJSON extends Omit {\n selectors: (string | SelectorProps)[];\n}\n\n// @ts-ignore\nconst { CSS } = hasWin() ? window : {};\n\n/**\n * @typedef CssRule\n * @property {Array} selectors Array of selectors\n * @property {Object} style Object containing style definitions\n * @property {String} [selectorsAdd=''] Additional string css selectors\n * @property {String} [atRuleType=''] Type of at-rule, eg. `media`, 'font-face'\n * @property {String} [mediaText=''] At-rule value, eg. `(max-width: 1000px)`\n * @property {Boolean} [singleAtRule=false] This property is used only on at-rules, like 'page' or 'font-face', where the block containes only style declarations\n * @property {String} [state=''] State of the rule, eg: `hover`, `focused`\n * @property {Boolean|Array} [important=false] If true, sets `!important` on all properties. You can also pass an array to specify properties on which use important\n * @property {Boolean} [stylable=true] Indicates if the rule is stylable from the editor\n *\n * [Device]: device.html\n * [State]: state.html\n * [Component]: component.html\n */\nexport default class CssRule extends StyleableModel {\n config: CssRuleProperties;\n em?: EditorModel;\n opt: any;\n\n defaults() {\n return {\n selectors: [],\n selectorsAdd: '',\n style: {},\n mediaText: '',\n state: '',\n stylable: true,\n atRuleType: '',\n singleAtRule: false,\n important: false,\n group: '',\n shallow: false,\n _undo: true,\n };\n }\n\n constructor(props: CssRuleProperties, opt: any = {}) {\n super(props);\n this.config = props || {};\n this.opt = opt;\n this.em = opt.em;\n this.ensureSelectors(null, null, {});\n this.on('change', this.__onChange);\n }\n\n __onChange(m: CssRule, opts: any) {\n const { em } = this;\n const changed = this.changedAttributes();\n changed && !isEmptyObj(changed) && em?.changesUp(opts);\n }\n\n clone(): CssRule {\n const opts = { ...this.opt };\n const attr = { ...this.attributes };\n attr.selectors = this.get('selectors')!.map(s => s.clone()) as Selector[];\n // @ts-ignore\n return new this.constructor(attr, opts);\n }\n\n ensureSelectors(m: any, c: any, opts: any) {\n const { em } = this;\n const sm = em?.get('SelectorManager');\n const toListen = [this, 'change:selectors', this.ensureSelectors];\n let sels = this.getSelectors() as any;\n this.stopListening(...toListen);\n\n if (sels.models) {\n sels = [...sels.models];\n }\n\n sels = isString(sels) ? [sels] : sels;\n\n if (Array.isArray(sels)) {\n const res = sels.filter(i => i).map(i => (sm ? sm.add(i) : i));\n sels = new Selectors(res);\n }\n\n this.set('selectors', sels, opts);\n // @ts-ignore\n this.listenTo(...toListen);\n }\n\n /**\n * Returns the at-rule statement when exists, eg. `@media (...)`, `@keyframes`\n * @returns {String}\n * @example\n * const cssRule = editor.Css.setRule('.class1', { color: 'red' }, {\n * atRuleType: 'media',\n * atRuleParams: '(min-width: 500px)'\n * });\n * cssRule.getAtRule(); // \"@media (min-width: 500px)\"\n */\n getAtRule() {\n const type = this.get('atRuleType');\n const condition = this.get('mediaText');\n // Avoid breaks with the last condition\n const typeStr = type ? `@${type}` : condition ? '@media' : '';\n\n return typeStr + (condition && typeStr ? ` ${condition}` : '');\n }\n\n /**\n * Return selectors of the rule as a string\n * @param {Object} [opts] Options\n * @param {Boolean} [opts.skipState] Skip state from the result\n * @returns {String}\n * @example\n * const cssRule = editor.Css.setRule('.class1:hover', { color: 'red' });\n * cssRule.selectorsToString(); // \".class1:hover\"\n * cssRule.selectorsToString({ skipState: true }); // \".class1\"\n */\n selectorsToString(opts: ObjectAny = {}) {\n const result = [];\n const state = this.get('state');\n const addSelector = this.get('selectorsAdd');\n const selOpts = {\n escape: (str: string) => (CSS && CSS.escape ? CSS.escape(str) : str),\n };\n // @ts-ignore\n const selectors = this.get('selectors').getFullString(0, selOpts);\n const stateStr = state && !opts.skipState ? `:${state}` : '';\n selectors && result.push(`${selectors}${stateStr}`);\n addSelector && !opts.skipAdd && result.push(addSelector);\n return result.join(', ');\n }\n\n /**\n * Get declaration block (without the at-rule statement)\n * @param {Object} [opts={}] Options (same as in `selectorsToString`)\n * @returns {String}\n * @example\n * const cssRule = editor.Css.setRule('.class1', { color: 'red' }, {\n * atRuleType: 'media',\n * atRuleParams: '(min-width: 500px)'\n * });\n * cssRule.getDeclaration() // \".class1{color:red;}\"\n */\n getDeclaration(opts: ObjectAny = {}) {\n let result = '';\n const { important } = this.attributes;\n const selectors = this.selectorsToString(opts);\n const style = this.styleToString({ important, ...opts });\n const singleAtRule = this.get('singleAtRule');\n\n if ((selectors || singleAtRule) && (style || opts.allowEmpty)) {\n result = singleAtRule ? style : `${selectors}{${style}}`;\n }\n\n return result;\n }\n\n /**\n * Get the Device the rule is related to.\n * @returns {[Device]|null}\n * @example\n * const device = rule.getDevice();\n * console.log(device?.getName());\n */\n getDevice() {\n const { em } = this;\n const { atRuleType, mediaText } = this.attributes;\n const devices = em?.get('DeviceManager').getDevices() || [];\n const deviceDefault = devices.filter((d: any) => d.getWidthMedia() === '')[0];\n if (atRuleType !== 'media' || !mediaText) {\n return deviceDefault || null;\n }\n return devices.filter((d: any) => d.getWidthMedia() === getMediaLength(mediaText))[0] || null;\n }\n\n /**\n * Get the State the rule is related to.\n * @returns {[State]|null}\n * @example\n * const state = rule.getState();\n * console.log(state?.getLabel());\n */\n getState() {\n const { em } = this;\n const stateValue = this.get('state');\n const states = em?.get('SelectorManager').getStates() || [];\n return states.filter((s: any) => s.getName() === stateValue)[0] || null;\n }\n\n /**\n * Returns the related Component (valid only for component-specific rules).\n * @returns {[Component]|null}\n * @example\n * const cmp = rule.getComponent();\n * console.log(cmp?.toHTML());\n */\n getComponent() {\n const sel = this.getSelectors() as any;\n const sngl = sel.length == 1 && sel.at(0);\n const cmpId = sngl && sngl.isId() && sngl.get('name');\n return (cmpId && this.em?.Components.getById(cmpId)) || null;\n }\n\n /**\n * Return the CSS string of the rule\n * @param {Object} [opts={}] Options (same as in `getDeclaration`)\n * @return {String} CSS string\n * @example\n * const cssRule = editor.Css.setRule('.class1', { color: 'red' }, {\n * atRuleType: 'media',\n * atRuleParams: '(min-width: 500px)'\n * });\n * cssRule.toCSS() // \"@media (min-width: 500px){.class1{color:red;}}\"\n */\n toCSS(opts: ObjectAny = {}) {\n let result = '';\n const atRule = this.getAtRule();\n const block = this.getDeclaration(opts);\n if (block || opts.allowEmpty) {\n result = block;\n }\n\n if (atRule && result) {\n result = `${atRule}{${result}}`;\n }\n\n return result;\n }\n\n toJSON(...args: any) {\n const obj = Model.prototype.toJSON.apply(this, args);\n\n if (this.em?.getConfig().avoidDefaults) {\n const defaults = this.defaults();\n\n forEach(defaults, (value, key) => {\n if (obj[key] === value) {\n delete obj[key];\n }\n });\n\n // Delete the property used for partial updates\n delete obj.style.__p;\n\n if (isEmpty(obj.selectors)) delete obj.selectors;\n if (isEmpty(obj.style)) delete obj.style;\n }\n\n return obj;\n }\n\n /**\n * Compare the actual model with parameters\n * @param {Object} selectors Collection of selectors\n * @param {String} state Css rule state\n * @param {String} width For which device this style is oriented\n * @param {Object} ruleProps Other rule props\n * @returns {Boolean}\n * @private\n */\n compare(selectors: any, state?: string, width?: string, ruleProps: Partial = {}) {\n const st = state || '';\n const wd = width || '';\n const selAdd = ruleProps.selectorsAdd || '';\n let atRule = ruleProps.atRuleType || '';\n const sel = !isArray(selectors) && !selectors.models ? [selectors] : selectors.models || selectors;\n\n // Fix atRuleType in case is not specified with width\n if (wd && !atRule) atRule = 'media';\n\n const a1: string[] = sel.map((model: any) => model.getFullName());\n const a2: string[] = this.get('selectors')?.map(model => model.getFullName())!;\n\n // Check selectors\n const a1S = a1.slice().sort();\n const a2S = a2.slice().sort();\n if (a1.length !== a2.length || !a1S.every((v, i) => v === a2S[i])) {\n return false;\n }\n\n // Check other properties\n if (\n this.get('state') !== st ||\n this.get('mediaText') !== wd ||\n this.get('selectorsAdd') !== selAdd ||\n this.get('atRuleType') !== atRule\n ) {\n return false;\n }\n\n return true;\n }\n}\n","import { Collection } from '../../common';\nimport EditorModel from '../../editor/model/Editor';\nimport CssRule, { CssRuleProperties } from './CssRule';\n\nexport default class CssRules extends Collection {\n editor: EditorModel;\n\n constructor(props: any, opt: any) {\n super(props);\n // Inject editor\n this.editor = opt?.em;\n\n // This will put the listener post CssComposer.postLoad\n setTimeout(() => {\n this.on('remove', this.onRemove);\n this.on('add', this.onAdd);\n });\n }\n\n toJSON(opts?: any) {\n const result = Collection.prototype.toJSON.call(this, opts);\n return result.filter((rule: CssRuleProperties) => rule.style && !rule.shallow);\n }\n\n onAdd(model: CssRule, c: CssRules, o: any) {\n model.ensureSelectors(model, c, o); // required for undo\n }\n\n onRemove(removed: CssRule) {\n const em = this.editor;\n em.stopListening(removed);\n em.UndoManager.remove(removed);\n }\n\n /** @ts-ignore */\n add(models: any, opt: any = {}) {\n if (typeof models === 'string') {\n models = this.editor.get('Parser').parseCss(models);\n }\n opt.em = this.editor;\n return Collection.prototype.add.apply(this, [models, opt]);\n }\n}\n\nCssRules.prototype.model = CssRule;\n","/**\n * This module manages CSS rules in the canvas.\n * You can customize the initial state of the module from the editor initialization, by passing the following [Configuration Object](https://github.com/GrapesJS/grapesjs/blob/master/src/css_composer/config/config.ts)\n * ```js\n * const editor = grapesjs.init({\n * cssComposer: {\n * // options\n * }\n * })\n * ```\n *\n * Once the editor is instantiated you can use its API. Before using these methods you should get the module from the instance\n *\n * ```js\n * const css = editor.Css;\n * ```\n *\n * * [addRules](#addrules)\n * * [setRule](#setrule)\n * * [getRule](#getrule)\n * * [getRules](#getrules)\n * * [remove](#remove)\n * * [clear](#clear)\n *\n * [CssRule]: css_rule.html\n *\n * @module Css\n */\n\nimport { isArray, isString, isUndefined } from 'underscore';\nimport { isObject } from '../utils/mixins';\nimport Selectors from '../selector_manager/model/Selectors';\nimport Selector from '../selector_manager/model/Selector';\nimport defaults, { CssComposerConfig } from './config/config';\nimport CssRule, { CssRuleJSON, CssRuleProperties } from './model/CssRule';\nimport CssRules from './model/CssRules';\nimport CssRulesView from './view/CssRulesView';\nimport { ItemManagerModule } from '../abstract/Module';\nimport EditorModel from '../editor/model/Editor';\nimport Component from '../dom_components/model/Component';\nimport { ObjectAny, PrevToNewIdMap } from '../common';\n\n/** @private */\ninterface RuleOptions {\n /**\n * At-rule type, eg. `media`\n */\n atRuleType?: string;\n /**\n * At-rule parameters, eg. `(min-width: 500px)`\n */\n atRuleParams?: string;\n}\n\n/** @private */\ninterface SetRuleOptions extends RuleOptions {\n /**\n * If the rule exists already, merge passed styles instead of replacing them.\n */\n addStyles?: boolean;\n}\n\n/** @private */\nexport interface GetSetRuleOptions {\n state?: string;\n mediaText?: string;\n addOpts?: ObjectAny;\n current?: boolean;\n}\n\ntype CssRuleStyle = Required['style'];\n\nexport default class CssComposer extends ItemManagerModule {\n rules: CssRules;\n rulesView?: CssRulesView;\n\n Selectors = Selectors;\n\n storageKey = 'styles';\n\n /**\n * Initializes module. Automatically called with a new instance of the editor\n * @param {Object} config Configurations\n * @private\n */\n constructor(em: EditorModel) {\n super(em, 'CssComposer', null, {}, defaults);\n const { config } = this;\n\n const ppfx = config.pStylePrefix;\n if (ppfx) config.stylePrefix = ppfx + config.stylePrefix;\n\n // @ts-ignore\n config.rules = this.em.config.style || config.rules || '';\n\n this.rules = new CssRules([], config);\n }\n\n /**\n * On load callback\n * @private\n */\n onLoad() {\n this.rules.add(this.config.rules, { silent: true });\n }\n\n /**\n * Do stuff after load\n * @param {Editor} em\n * @private\n */\n postLoad() {\n const um = this.em?.get('UndoManager');\n um && um.add(this.getAll());\n }\n\n store() {\n return this.getProjectData();\n }\n\n load(data: any) {\n return this.loadProjectData(data, {\n // @ts-ignore Fix add() first in CssRules\n all: this.rules,\n });\n }\n\n /**\n * Add new rule to the collection, if not yet exists with the same selectors\n * @param {Array} selectors Array of selectors\n * @param {String} state Css rule state\n * @param {String} width For which device this style is oriented\n * @param {Object} props Other props for the rule\n * @param {Object} opts Options for the add of new rule\n * @return {Model}\n * @private\n * @example\n * var sm = editor.SelectorManager;\n * var sel1 = sm.add('myClass1');\n * var sel2 = sm.add('myClass2');\n * var rule = cssComposer.add([sel1, sel2], 'hover');\n * rule.set('style', {\n * width: '100px',\n * color: '#fff',\n * });\n * */\n add(selectors: any, state?: string, width?: string, opts = {}, addOpts = {}) {\n const s = state || '';\n const w = width || '';\n const opt = { ...opts } as CssRuleProperties;\n let rule = this.get(selectors, s, w, opt);\n\n // do not create rules that were found before\n // unless this is a single at-rule, for which multiple declarations\n // make sense (e.g. multiple `@font-type`s)\n if (rule && rule.config && !rule.config.singleAtRule) {\n return rule;\n } else {\n opt.state = s;\n opt.mediaText = w;\n opt.selectors = [];\n // #4727: Prevent updating atRuleType if already defined\n if (w && !opt.atRuleType) {\n opt.atRuleType = 'media';\n }\n rule = new CssRule(opt, this.config);\n // @ts-ignore\n rule.get('selectors').add(selectors, addOpts);\n this.rules.add(rule, addOpts);\n return rule;\n }\n }\n\n /**\n * Get the rule\n * @param {String|Array} selectors Array of selectors or selector string, eg `.myClass1.myClass2`\n * @param {String} state Css rule state, eg. 'hover'\n * @param {String} width Media rule value, eg. '(max-width: 992px)'\n * @param {Object} ruleProps Other rule props\n * @return {Model|null}\n * @private\n * @example\n * const sm = editor.SelectorManager;\n * const sel1 = sm.add('myClass1');\n * const sel2 = sm.add('myClass2');\n * const rule = cssComposer.get([sel1, sel2], 'hover', '(max-width: 992px)');\n * // Update the style\n * rule.set('style', {\n * width: '300px',\n * color: '#000',\n * });\n * */\n get(\n selectors: any,\n state?: string,\n width?: string,\n ruleProps?: Omit\n ): CssRule | undefined {\n let slc = selectors;\n if (isString(selectors)) {\n const sm = this.em.Selectors;\n const singleSel = selectors.split(',')[0].trim();\n const node = this.em.Parser.parserCss.checkNode({ selectors: singleSel } as any)[0];\n slc = sm.get(node.selectors as string[]);\n }\n return this.rules.find(rule => rule.compare(slc, state, width, ruleProps)) || null;\n }\n\n getAll() {\n return this.rules;\n }\n\n /**\n * Add a raw collection of rule objects\n * This method overrides styles, in case, of already defined rule\n * @param {String|Array} data CSS string or an array of rule objects, eg. [{selectors: ['class1'], style: {....}}, ..]\n * @param {Object} opts Options\n * @param {Object} props Additional properties to add on rules\n * @return {Array}\n * @private\n */\n addCollection(data: string | CssRuleJSON[], opts: Record = {}, props = {}) {\n const { em } = this;\n const result: CssRule[] = [];\n\n if (isString(data)) {\n data = em.Parser.parseCss(data);\n }\n\n const d = data instanceof Array ? data : [data];\n\n for (var i = 0, l = d.length; i < l; i++) {\n const rule = (d[i] || {}) as CssRuleJSON;\n if (!rule.selectors) continue;\n\n const sm = em?.Selectors;\n if (!sm) console.warn('Selector Manager not found');\n const sl = rule.selectors;\n const sels = sl instanceof Array ? sl : [sl];\n const newSels = [];\n\n for (let j = 0, le = sels.length; j < le; j++) {\n // @ts-ignore\n const selec = sm.add(sels[j]);\n newSels.push(selec);\n }\n\n const modelExists = this.get(newSels, rule.state, rule.mediaText, rule);\n const model = this.add(newSels, rule.state, rule.mediaText, rule, opts);\n const updateStyle = !modelExists || !opts.avoidUpdateStyle;\n const style = rule.style || {};\n\n isObject(props) && model.set(props, opts);\n\n if (updateStyle) {\n const styleUpdate = opts.extend ? { ...model.get('style'), ...style } : style;\n model.set('style', styleUpdate, opts);\n }\n\n result.push(model);\n }\n\n return result;\n }\n\n /**\n * Add CssRules via CSS string.\n * @param {String} css CSS string of rules to add.\n * @returns {Array<[CssRule]>} Array of rules\n * @example\n * const addedRules = css.addRules('.my-cls{ color: red } @media (max-width: 992px) { .my-cls{ color: darkred } }');\n * // Check rules\n * console.log(addedRules.map(rule => rule.toCSS()));\n */\n addRules(css: string) {\n return this.addCollection(css);\n }\n\n /**\n * Add/update the CssRule.\n * @param {String} selectors Selector string, eg. `.myclass`\n * @param {Object} style Style properties and values. If the rule exists, styles will be replaced unless `addStyles` option is used.\n * @param {Object} [opts={}] Additional properties.\n * @param {String} [opts.atRuleType=''] At-rule type, eg. `media`.\n * @param {String} [opts.atRuleParams=''] At-rule parameters, eg. `(min-width: 500px)`.\n * @param {Boolean} [opts.addStyles=false] If the rule exists already, merge passed styles instead of replacing them.\n * @returns {[CssRule]} The new/updated CssRule.\n * @example\n * // Simple class-based rule\n * const rule = css.setRule('.class1.class2', { color: 'red' });\n * console.log(rule.toCSS()) // output: .class1.class2 { color: red }\n * // With state and other mixed selector\n * const rule = css.setRule('.class1.class2:hover, div#myid', { color: 'red' });\n * // output: .class1.class2:hover, div#myid { color: red }\n * // With media\n * const rule = css.setRule('.class1:hover', { color: 'red' }, {\n * atRuleType: 'media',\n * atRuleParams: '(min-width: 500px)',\n * });\n * // output: `@media (min-width: 500px) { .class1:hover { color: red } }`\n *\n * // Update styles of existent rule\n * css.setRule('.class1', { color: 'red', background: 'red' });\n * css.setRule('.class1', { color: 'blue' }, { addStyles: true });\n * // output: .class1 { color: blue; background: red }\n */\n setRule(selectors: any, style: CssRuleProperties['style'] = {}, opts: SetRuleOptions = {}) {\n const { atRuleType, atRuleParams } = opts;\n const node = this.em.Parser.parserCss.checkNode({\n selectors,\n style,\n })[0];\n const { state, selectorsAdd } = node;\n const sm = this.em.Selectors;\n const selector = sm.add(node.selectors as any);\n const rule = this.add(selector, state, atRuleParams, {\n selectorsAdd,\n atRule: atRuleType,\n });\n\n if (opts.addStyles) {\n rule.addStyle(style, opts);\n } else {\n rule.setStyle(style, opts);\n }\n\n return rule;\n }\n\n /**\n * Get the CssRule.\n * @param {String} selectors Selector string, eg. `.myclass:hover`\n * @param {Object} [opts={}] Additional properties\n * @param {String} [opts.atRuleType=''] At-rule type, eg. `media`\n * @param {String} [opts.atRuleParams=''] At-rule parameters, eg. '(min-width: 500px)'\n * @returns {[CssRule]}\n * @example\n * const rule = css.getRule('.myclass1:hover');\n * const rule2 = css.getRule('.myclass1:hover, div#myid');\n * const rule3 = css.getRule('.myclass1', {\n * atRuleType: 'media',\n * atRuleParams: '(min-width: 500px)',\n * });\n */\n getRule(selectors: any, opts: RuleOptions = {}) {\n const { em } = this;\n const sm = em.Selectors;\n const node = em.Parser.parserCss.checkNode({ selectors })[0];\n // @ts-ignore\n const selector = sm.get(node.selectors);\n const { state, selectorsAdd } = node;\n const { atRuleType, atRuleParams } = opts;\n return selector\n ? this.get(selector, state, atRuleParams, {\n selectorsAdd,\n atRuleType,\n })\n : undefined;\n }\n\n /**\n * Get all rules or filtered by a matching selector.\n * @param {String} [selector=''] Selector, eg. `.myclass`\n * @returns {Array<[CssRule]>}\n * @example\n * // Take all the component specific rules\n * const id = someComponent.getId();\n * const rules = css.getRules(`#${id}`);\n * console.log(rules.map(rule => rule.toCSS()))\n * // All rules in the project\n * console.log(css.getRules())\n */\n getRules(selector?: string) {\n const rules = this.getAll();\n if (!selector) return [...rules.models];\n const optRuleSel = { sort: true };\n const sels = isString(selector) ? selector.split(',').map(s => s.trim()) : selector;\n const result = rules.filter(r => sels.indexOf(r.getSelectors().getFullString(null, optRuleSel)) >= 0);\n return result;\n }\n\n /**\n * Add/update the CSS rule with id selector\n * @param {string} name Id selector name, eg. 'my-id'\n * @param {Object} style Style properties and values\n * @param {Object} [opts={}] Custom options, like `state` and `mediaText`\n * @return {CssRule} The new/updated rule\n * @private\n * @example\n * const rule = css.setIdRule('myid', { color: 'red' });\n * const ruleHover = css.setIdRule('myid', { color: 'blue' }, { state: 'hover' });\n * // This will add current CSS:\n * // #myid { color: red }\n * // #myid:hover { color: blue }\n */\n setIdRule(name: string, style: CssRuleStyle = {}, opts: GetSetRuleOptions = {}) {\n const { addOpts = {}, mediaText } = opts;\n const state = opts.state || '';\n const media = !isUndefined(mediaText) ? mediaText : this.em.getCurrentMedia();\n const sm = this.em.Selectors;\n const selector = sm.add({ name, type: Selector.TYPE_ID }, addOpts);\n const rule = this.add(selector, state, media, {}, addOpts);\n rule.setStyle(style, { ...opts, ...addOpts });\n return rule;\n }\n\n /**\n * Get the CSS rule by id selector\n * @param {string} name Id selector name, eg. 'my-id'\n * @param {Object} [opts={}] Custom options, like `state` and `mediaText`\n * @return {CssRule}\n * @private\n * @example\n * const rule = css.getIdRule('myid');\n * const ruleHover = css.setIdRule('myid', { state: 'hover' });\n */\n getIdRule(name: string, opts: GetSetRuleOptions = {}) {\n const { mediaText } = opts;\n const state = opts.state || '';\n const media = !isUndefined(mediaText) ? mediaText : this.em.getCurrentMedia();\n const selector = this.em.Selectors.get(name, Selector.TYPE_ID);\n return selector && this.get(selector, state, media);\n }\n\n /**\n * Add/update the CSS rule with class selector\n * @param {string} name Class selector name, eg. 'my-class'\n * @param {Object} style Style properties and values\n * @param {Object} [opts={}] Custom options, like `state` and `mediaText`\n * @return {CssRule} The new/updated rule\n * @private\n * @example\n * const rule = css.setClassRule('myclass', { color: 'red' });\n * const ruleHover = css.setClassRule('myclass', { color: 'blue' }, { state: 'hover' });\n * // This will add current CSS:\n * // .myclass { color: red }\n * // .myclass:hover { color: blue }\n */\n setClassRule(name: string, style: CssRuleStyle = {}, opts: GetSetRuleOptions = {}) {\n const state = opts.state || '';\n const media = opts.mediaText || this.em.getCurrentMedia();\n const sm = this.em.Selectors;\n const selector = sm.add({ name, type: Selector.TYPE_CLASS });\n const rule = this.add(selector, state, media);\n rule.setStyle(style, opts);\n return rule;\n }\n\n /**\n * Get the CSS rule by class selector\n * @param {string} name Class selector name, eg. 'my-class'\n * @param {Object} [opts={}] Custom options, like `state` and `mediaText`\n * @return {CssRule}\n * @private\n * @example\n * const rule = css.getClassRule('myclass');\n * const ruleHover = css.getClassRule('myclass', { state: 'hover' });\n */\n getClassRule(name: string, opts: GetSetRuleOptions = {}) {\n const state = opts.state || '';\n const media = opts.mediaText || this.em.getCurrentMedia();\n const selector = this.em.Selectors.get(name, Selector.TYPE_CLASS);\n return selector && this.get(selector, state, media);\n }\n\n /**\n * Remove rule, by CssRule or matching selector (eg. the selector will match also at-rules like `@media`)\n * @param {String|[CssRule]|Array<[CssRule]>} rule CssRule or matching selector.\n * @return {Array<[CssRule]>} Removed rules\n * @example\n * // Remove by CssRule\n * const toRemove = css.getRules('.my-cls');\n * css.remove(toRemove);\n * // Remove by selector\n * css.remove('.my-cls-2');\n */\n remove(rule: string | CssRule, opts?: any) {\n const toRemove = isString(rule) ? this.getRules(rule) : rule;\n const result = this.getAll().remove(toRemove, opts);\n return isArray(result) ? result : [result];\n }\n\n /**\n * Remove all rules\n * @return {this}\n */\n clear(opts = {}) {\n this.getAll().reset([], opts);\n return this;\n }\n\n getComponentRules(cmp: Component, opts: GetSetRuleOptions = {}) {\n let { state, mediaText, current } = opts;\n if (current) {\n state = this.em.get('state') || '';\n mediaText = this.em.getCurrentMedia();\n }\n const id = cmp.getId();\n const rules = this.getAll().filter(r => {\n if (!isUndefined(state) && r.get('state') !== state) return false;\n if (!isUndefined(mediaText) && r.get('mediaText') !== mediaText) return false;\n return r.getSelectorsString() === `#${id}`;\n });\n return rules;\n }\n\n /**\n * Render the block of CSS rules\n * @return {HTMLElement}\n * @private\n */\n render() {\n this.rulesView?.remove();\n this.rulesView = new CssRulesView({\n collection: this.rules,\n config: this.config,\n });\n return this.rulesView.render().el;\n }\n\n checkId(rule: CssRuleJSON | CssRuleJSON[], opts: { idMap?: PrevToNewIdMap } = {}) {\n const { idMap = {} } = opts;\n const changed: CssRuleJSON[] = [];\n\n if (!Object.keys(idMap).length) return changed;\n\n const rules = Array.isArray(rule) ? rule : [rule];\n rules.forEach(rule => {\n const sel = rule.selectors;\n\n if (sel && sel.length == 1) {\n const sSel = sel[0];\n\n if (isString(sSel)) {\n if (sSel[0] === '#') {\n const prevId = sSel.substring(1);\n const newId = idMap[prevId];\n if (prevId && newId) {\n sel[0] = `#${newId}`;\n changed.push(rule);\n }\n }\n } else if (sSel.name && sSel.type === Selector.TYPE_ID) {\n const newId = idMap[sSel.name];\n if (newId) {\n sSel.name = newId;\n changed.push(rule);\n }\n }\n }\n });\n\n return changed;\n }\n\n destroy() {\n this.rules.reset();\n this.rules.stopListening();\n this.rulesView?.remove();\n }\n}\n","import Editor from '../../editor';\nimport Block, { BlockProperties } from '../model/Block';\n\nexport interface BlockManagerConfig {\n /**\n * Specify the element to use as a container, string (query) or HTMLElement.\n * With the empty value, nothing will be rendered.\n * @default ''\n */\n appendTo?: HTMLElement | string;\n /**\n * Default blocks.\n * @default []\n */\n blocks?: BlockProperties[];\n /**\n * Append blocks to canvas on click.\n * With the `true` value, it will try to append the block to the selected component\n * If there is no selected component, the block will be appened to the wrapper.\n * You can also pass a function to this option, use it as a catch-all for all block\n * clicks and implement a custom logic for each block.\n * @default false\n * @example\n * // Example with a function\n * appendOnClick: (block, editor) => {\n * if (block.get('id') === 'some-id')\n * editor.getSelected().append(block.get('content'))\n * else\n * editor.getWrapper().append(block.get('content'))\n * }\n */\n appendOnClick?: boolean | ((block: Block, editor: Editor, opts: { event: Event }) => void);\n /**\n * Avoid rendering the default block manager UI.\n * More about it here: https://grapesjs.com/docs/modules/Blocks.html#customization\n * @default false\n */\n custom?: boolean;\n}\n\nconst config: BlockManagerConfig = {\n appendTo: '',\n blocks: [],\n appendOnClick: false,\n custom: false,\n};\n\nexport default config;\n","import { Model } from '../../common';\nimport { isFunction } from 'underscore';\nimport Editor from '../../editor';\nimport { BlockCategoryProperties } from './Category';\nimport { ComponentDefinition } from '../../dom_components/model/types';\n\n/** @private */\nexport interface BlockProperties {\n /**\n * Block label, eg. `My block`\n */\n label: string;\n /**\n * The content of the block. Might be an HTML string or a [Component Defintion](/modules/Components.html#component-definition)\n */\n content: string | ComponentDefinition;\n /**\n * HTML string for the media/icon of the block, eg. ` editor.getWrapper().append(block.get('content'))\n */\n onClick?: (block: Block, editor: Editor) => void;\n /**\n * Block attributes\n */\n attributes?: Record;\n\n id?: string;\n\n /**\n * @deprecated\n */\n activeOnRender?: boolean;\n}\n\n/**\n * @property {String} label Block label, eg. `My block`\n * @property {String|Object} content The content of the block. Might be an HTML string or a [Component Defintion](/modules/Components.html#component-definition)\n * @property {String} [media=''] HTML string for the media/icon of the block, eg. ` editor.getWrapper().append(block.get('content'))`\n * @property {Object} [attributes={}] Block attributes to apply in the view element\n *\n * @module docsjs.Block\n */\nexport default class Block extends Model {\n defaults() {\n return {\n label: '',\n content: '',\n media: '',\n category: '',\n activate: false,\n select: undefined,\n resetId: false,\n disable: false,\n onClick: undefined,\n attributes: {},\n };\n }\n\n /**\n * Get block id\n * @returns {String}\n */\n getId() {\n return this.id as string;\n }\n\n /**\n * Get block label\n * @returns {String}\n */\n getLabel() {\n return this.get('label')!;\n }\n\n /**\n * Get block media\n * @returns {String}\n */\n getMedia() {\n return this.get('media');\n }\n\n /**\n * Get block content\n * @returns {Object|String|Array}\n */\n getContent() {\n return this.get('content');\n }\n\n /**\n * Get block category label\n * @returns {String}\n */\n getCategoryLabel(): string {\n const ctg = this.get('category');\n // @ts-ignore\n return isFunction(ctg?.get) ? ctg.get('label') : ctg?.label ? ctg?.label : ctg;\n }\n}\n","import { Collection } from '../../common';\nimport Block from './Block';\n\nexport default class Blocks extends Collection {}\n\nBlocks.prototype.model = Block;\n","import { Model } from '../../common';\nimport CategoryView from '../view/CategoryView';\n\nexport interface BlockCategoryProperties {\n /**\n * Category id.\n */\n id: string;\n /**\n * Category label.\n */\n label: string;\n /**\n * Category open state.\n * @default true\n */\n open?: boolean;\n /**\n * Category order.\n */\n order?: string | number;\n /**\n * Category attributes.\n * @default {}\n */\n attributes?: Record;\n}\n\nexport default class Category extends Model {\n view?: CategoryView;\n\n defaults() {\n return {\n id: '',\n label: '',\n open: true,\n attributes: {},\n };\n }\n}\n","import { isArray, isString } from 'underscore';\nimport { AddOptions, Collection } from '../../common';\nimport { normalizeKey } from '../../utils/mixins';\nimport Category, { BlockCategoryProperties } from './Category';\n\nexport default class Categories extends Collection {\n /** @ts-ignore */\n add(model: (BlockCategoryProperties | Category)[] | BlockCategoryProperties | Category, opts?: AddOptions) {\n const models = isArray(model) ? model : [model];\n models.forEach(md => md && (md.id = normalizeKey(`${md.id}`)));\n return super.add(model, opts);\n }\n\n get(id: string | Category) {\n return super.get(isString(id) ? normalizeKey(id) : id);\n }\n}\n\nCategories.prototype.model = Category;\n","/**{START_EVENTS}*/\nexport enum BlocksEvents {\n /**\n * @event `block:add` New block added to the collection. The [Block] is passed as an argument to the callback.\n * @example\n * editor.on('block:add', (block) => { ... });\n */\n add = 'block:add',\n\n /**\n * @event `block:remove` Block removed from the collection. The [Block] is passed as an argument to the callback.\n * @example\n * editor.on('block:remove', (block) => { ... });\n */\n remove = 'block:remove',\n\n /**\n * @event `block:remove:before` Event triggered before Block remove.\n * @example\n * editor.on('block:remove:before', (block, remove, opts) => { ... });\n */\n removeBefore = 'block:remove:before',\n\n /**\n * @event `block:update` Block updated. The [Block] and the object containing changes are passed as arguments to the callback.\n * @example\n * editor.on('block:update', (block, updatedProps) => { ... });\n */\n update = 'block:update',\n\n /**\n * @event `block:drag:start` Started dragging block. The [Block] is passed as an argument.\n * @example\n * editor.on('block:drag:start', (block) => { ... });\n */\n dragStart = 'block:drag:start',\n\n /**\n * @event `block:drag` The block is dragging. The [Block] is passed as an argument.\n * @example\n * editor.on('block:drag', (block) => { ... });\n */\n drag = 'block:drag',\n\n /**\n * @event `block:drag:stop` Dragging of the block is stopped. The dropped [Component] (if dropped successfully) and the [Block] are passed as arguments.\n * @example\n * editor.on('block:drag:stop', (component, block) => { ... });\n */\n dragEnd = 'block:drag:stop',\n\n /**\n * @event `block:custom` Event to use in case of [custom Block Manager UI](https://grapesjs.com/docs/modules/Blocks.html#customization).\n * @example\n * editor.on('block:custom', ({ container, blocks, ... }) => { ... });\n */\n custom = 'block:custom',\n\n /**\n * @event `block` Catch-all event for all the events mentioned above. An object containing all the available data about the triggered event is passed as an argument to the callback.\n * @example\n * editor.on('block', ({ event, model, ... }) => { ... });\n */\n all = 'block',\n}\n/**{END_EVENTS}*/\n\n// need this to avoid the TS documentation generator to break\nexport default BlocksEvents;\n","import { isFunction } from 'underscore';\nimport { View } from '../../common';\nimport EditorModel from '../../editor/model/Editor';\nimport { on, off } from '../../utils/dom';\nimport { hasDnd } from '../../utils/mixins';\nimport { BlockManagerConfig } from '../config/config';\nimport Block from '../model/Block';\n\nexport interface BlockViewConfig {\n em?: EditorModel;\n pStylePrefix?: string;\n appendOnClick?: BlockManagerConfig['appendOnClick'];\n getSorter?: any;\n}\n\nexport default class BlockView extends View {\n em: EditorModel;\n config: BlockViewConfig;\n ppfx: string;\n\n events() {\n return {\n click: 'handleClick',\n mousedown: 'startDrag',\n dragstart: 'handleDragStart',\n drag: 'handleDrag',\n dragend: 'handleDragEnd',\n };\n }\n\n constructor(o: any, config: BlockViewConfig = {}) {\n super(o);\n const { model } = this;\n this.em = config.em!;\n this.config = config;\n this.endDrag = this.endDrag.bind(this);\n this.ppfx = config.pStylePrefix || '';\n this.listenTo(model, 'destroy remove', this.remove);\n this.listenTo(model, 'change', this.render);\n }\n\n __getModule() {\n return this.em.Blocks;\n }\n\n handleClick(ev: Event) {\n const { config, model, em } = this;\n const onClick = model.get('onClick') || config.appendOnClick;\n em.trigger('block:click', model, ev);\n if (!onClick) {\n return;\n } else if (isFunction(onClick)) {\n return onClick(model, em?.getEditor(), { event: ev });\n }\n const sorter = config.getSorter();\n const content = model.get('content')!;\n const selected = em.getSelected();\n sorter.setDropContent(content);\n let target, valid, insertAt;\n\n // If there is a selected component, try first to append\n // the block inside, otherwise, try to place it as a next sibling\n if (selected) {\n valid = sorter.validTarget(selected.getEl(), content);\n\n if (valid.valid) {\n target = selected;\n } else {\n const parent = selected.parent();\n if (parent) {\n valid = sorter.validTarget(parent.getEl(), content);\n if (valid.valid) {\n target = parent;\n insertAt = parent.components().indexOf(selected) + 1;\n }\n }\n }\n }\n\n // If no target found yet, try to append the block to the wrapper\n if (!target) {\n const wrapper = em.getWrapper()!;\n valid = sorter.validTarget(wrapper.getEl(), content);\n if (valid.valid) target = wrapper;\n }\n\n const result = target && target.append(content, { at: insertAt })[0];\n result && em.setSelected(result, { scroll: 1 });\n }\n\n /**\n * Start block dragging\n * @private\n */\n startDrag(e: MouseEvent) {\n const { config, em, model } = this;\n const disable = model.get('disable');\n //Right or middel click\n if (e.button !== 0 || !config.getSorter || this.el.draggable || disable) return;\n em.refreshCanvas();\n const sorter = config.getSorter();\n sorter.__currentBlock = model;\n sorter.setDragHelper(this.el, e);\n sorter.setDropContent(this.model.get('content'));\n sorter.startSort(this.el);\n on(document, 'mouseup', this.endDrag);\n }\n\n handleDragStart(ev: DragEvent) {\n this.__getModule().__startDrag(this.model, ev);\n }\n\n handleDrag(ev: DragEvent) {\n this.__getModule().__drag(ev);\n }\n\n handleDragEnd() {\n this.__getModule().__endDrag();\n }\n\n /**\n * Drop block\n * @private\n */\n endDrag() {\n off(document, 'mouseup', this.endDrag);\n const sorter = this.config.getSorter();\n\n // After dropping the block in the canvas the mouseup event is not yet\n // triggerd on 'this.doc' and so clicking outside, the sorter, tries to move\n // things (throws false positives). As this method just need to drop away\n // the block helper I use the trick of 'moved = 0' to void those errors.\n sorter.moved = 0;\n sorter.endMove();\n }\n\n render() {\n const { em, el, $el, ppfx, model } = this;\n const disable = model.get('disable');\n const attr = model.get('attributes') || {};\n const cls = attr.class || '';\n const className = `${ppfx}block`;\n const label = (em && em.t(`blockManager.labels.${model.id}`)) || model.get('label');\n // @ts-ignore deprecated\n const render = model.get('render');\n const media = model.get('media');\n const clsAdd = disable ? `${className}--disable` : `${ppfx}four-color-h`;\n $el.attr(attr);\n el.className = `${cls} ${className} ${ppfx}one-bg ${clsAdd}`.trim();\n el.innerHTML = `\n ${media ? `
${media}
` : ''}\n
${label}
\n `;\n el.title = attr.title || el.textContent?.trim();\n el.setAttribute('draggable', `${hasDnd(em) && !disable ? true : false}`);\n // @ts-ignore\n const result = render && render({ el, model, className, prefix: ppfx });\n if (result) el.innerHTML = result;\n return this;\n }\n}\n","import { View } from '../../common';\nimport EditorModel from '../../editor/model/Editor';\nimport html from '../../utils/html';\nimport Category from '../model/Category';\n\nexport interface CategoryViewConfig {\n em: EditorModel;\n pStylePrefix?: string;\n}\n\nexport default class CategoryView extends View {\n em: EditorModel;\n config: CategoryViewConfig;\n pfx: string;\n caretR: string;\n caretD: string;\n iconClass: string;\n activeClass: string;\n iconEl?: HTMLElement;\n blocksEl?: HTMLElement;\n\n events() {\n return {\n 'click [data-title]': 'toggle',\n };\n }\n\n template({ pfx, label }: { pfx: string; label: string }) {\n return html`\n
\n \n ${label}\n
\n
\n `;\n }\n\n /** @ts-ignore */\n attributes() {\n return this.model.get('attributes') || {};\n }\n\n constructor(o: any, config: CategoryViewConfig) {\n super(o);\n this.config = config;\n const pfx = config.pStylePrefix || '';\n this.em = config.em;\n this.pfx = pfx;\n this.caretR = 'fa fa-caret-right';\n this.caretD = 'fa fa-caret-down';\n this.iconClass = `${pfx}caret-icon`;\n this.activeClass = `${pfx}open`;\n this.className = `${pfx}block-category`;\n this.listenTo(this.model, 'change:open', this.updateVisibility);\n this.model.view = this;\n }\n\n updateVisibility() {\n if (this.model.get('open')) this.open();\n else this.close();\n }\n\n open() {\n this.$el.addClass(this.activeClass);\n this.getIconEl()!.className = `${this.iconClass} ${this.caretD}`;\n this.getBlocksEl()!.style.display = '';\n }\n\n close() {\n this.$el.removeClass(this.activeClass);\n this.getIconEl()!.className = `${this.iconClass} ${this.caretR}`;\n this.getBlocksEl()!.style.display = 'none';\n }\n\n toggle() {\n var model = this.model;\n model.set('open', !model.get('open'));\n }\n\n getIconEl() {\n if (!this.iconEl) {\n this.iconEl = this.el.querySelector(`.${this.iconClass}`)!;\n }\n\n return this.iconEl;\n }\n\n getBlocksEl() {\n if (!this.blocksEl) {\n this.blocksEl = this.el.querySelector(`.${this.pfx}blocks-c`)!;\n }\n\n return this.blocksEl;\n }\n\n append(el: HTMLElement) {\n this.getBlocksEl().appendChild(el);\n }\n\n render() {\n const { em, el, $el, model, pfx } = this;\n const label = em.t(`blockManager.categories.${model.id}`) || model.get('label');\n el.innerHTML = this.template({ pfx, label });\n $el.addClass(this.className!);\n $el.css({ order: model.get('order')! });\n this.updateVisibility();\n\n return this;\n }\n}\n","import { isString, isObject, bindAll } from 'underscore';\nimport BlockManager from '..';\nimport { View } from '../../common';\nimport Component from '../../dom_components/model/Component';\nimport EditorModel from '../../editor/model/Editor';\nimport Block from '../model/Block';\nimport Categories from '../model/Categories';\nimport BlockView from './BlockView';\nimport CategoryView from './CategoryView';\n\nexport interface BlocksViewConfig {\n em: EditorModel;\n pStylePrefix?: string;\n ignoreCategories?: boolean;\n getSorter?: any;\n}\n\nexport default class BlocksView extends View {\n em: EditorModel;\n config: BlocksViewConfig;\n categories: Categories;\n renderedCategories = new Map();\n ppfx: string;\n noCatClass: string;\n blockContClass: string;\n catsClass: string;\n catsEl?: HTMLElement;\n blocksEl?: HTMLElement;\n rendered?: boolean;\n sorter: any;\n\n constructor(opts: any, config: BlocksViewConfig) {\n super(opts);\n bindAll(this, 'getSorter', 'onDrag', 'onDrop', 'onMove');\n this.config = config || {};\n this.categories = opts.categories || '';\n const ppfx = this.config.pStylePrefix || '';\n this.ppfx = ppfx;\n this.noCatClass = `${ppfx}blocks-no-cat`;\n this.blockContClass = `${ppfx}blocks-c`;\n this.catsClass = `${ppfx}block-categories`;\n const coll = this.collection;\n this.listenTo(coll, 'add', this.addTo);\n this.listenTo(coll, 'reset', this.render);\n this.em = this.config.em;\n\n if (this.em) {\n this.config.getSorter = this.getSorter;\n }\n }\n\n __getModule(): BlockManager {\n return this.em.Blocks;\n }\n\n updateConfig(opts = {}) {\n this.config = {\n ...this.config,\n ...opts,\n };\n }\n\n /**\n * Get sorter\n * @private\n */\n getSorter() {\n const { em } = this;\n if (!em) return;\n\n if (!this.sorter) {\n const utils = em.Utils;\n const canvas = em.Canvas;\n\n this.sorter = new utils.Sorter({\n // @ts-ignore\n container: canvas.getBody(),\n placer: canvas.getPlacerEl(),\n containerSel: '*',\n itemSel: '*',\n pfx: this.ppfx,\n onStart: this.onDrag,\n onEndMove: this.onDrop,\n onMove: this.onMove,\n document: canvas.getFrameEl().contentDocument,\n direction: 'a',\n wmargin: 1,\n nested: 1,\n em,\n canvasRelative: 1,\n });\n }\n\n return this.sorter;\n }\n\n onDrag(ev: Event) {\n this.em.stopDefault();\n this.__getModule().__startDrag(this.sorter.__currentBlock, ev);\n }\n\n onMove(ev: Event) {\n this.__getModule().__drag(ev);\n }\n\n onDrop(component?: Component) {\n this.em.runDefault();\n this.__getModule().__endDrag({ component });\n delete this.sorter.__currentBlock;\n }\n\n /**\n * Add new model to the collection\n * @param {Model} model\n * @private\n * */\n addTo(model: Block) {\n this.add(model);\n }\n\n /**\n * Render new model inside the view\n * @param {Model} model\n * @param {Object} fragment Fragment collection\n * @private\n * */\n add(model: Block, fragment?: DocumentFragment) {\n const { config, renderedCategories } = this;\n const view = new BlockView(\n {\n model,\n attributes: model.get('attributes'),\n },\n config\n );\n const rendered = view.render().el;\n let category = model.get('category');\n\n // Check for categories\n if (category && this.categories && !config.ignoreCategories) {\n if (isString(category)) {\n category = { id: category, label: category };\n } else if (isObject(category) && !category.id) {\n category.id = category.label;\n }\n\n const catModel = this.categories.add(category);\n const catId = catModel.get('id')!;\n const categories = this.getCategoriesEl();\n let catView = renderedCategories.get(catId);\n // @ts-ignore\n model.set('category', catModel, { silent: true });\n\n if (!catView && categories) {\n catView = new CategoryView({ model: catModel }, config).render();\n renderedCategories.set(catId, catView);\n categories.appendChild(catView.el);\n }\n\n catView && catView.append(rendered);\n return;\n }\n\n fragment ? fragment.appendChild(rendered) : this.append(rendered);\n }\n\n getCategoriesEl() {\n if (!this.catsEl) {\n this.catsEl = this.el.querySelector(`.${this.catsClass}`)!;\n }\n\n return this.catsEl;\n }\n\n getBlocksEl() {\n if (!this.blocksEl) {\n this.blocksEl = this.el.querySelector(`.${this.noCatClass} .${this.blockContClass}`)!;\n }\n\n return this.blocksEl;\n }\n\n append(el: HTMLElement | DocumentFragment) {\n let blocks = this.getBlocksEl();\n blocks && blocks.appendChild(el);\n }\n\n render() {\n const ppfx = this.ppfx;\n const frag = document.createDocumentFragment();\n delete this.catsEl;\n delete this.blocksEl;\n this.renderedCategories = new Map();\n this.el.innerHTML = `\n
\n
\n
\n
\n `;\n\n this.collection.each(model => this.add(model, frag));\n this.append(frag);\n const cls = `${this.blockContClass}s ${ppfx}one-bg ${ppfx}two-color`;\n this.$el.addClass(cls);\n this.rendered = true;\n return this;\n }\n}\n","/**\n * You can customize the initial state of the module from the editor initialization, by passing the following [Configuration Object](https://github.com/GrapesJS/grapesjs/blob/master/src/block_manager/config/config.ts)\n * ```js\n * const editor = grapesjs.init({\n * blockManager: {\n * // options\n * }\n * })\n * ```\n *\n * Once the editor is instantiated you can use its API and listen to its events. Before using these methods, you should get the module from the instance.\n *\n * ```js\n * // Listen to events\n * editor.on('block:add', (block) => { ... });\n *\n * // Use the API\n * const blockManager = editor.Blocks;\n * blockManager.add(...);\n * ```\n *\n * {REPLACE_EVENTS}\n *\n * [Block]: block.html\n * [Component]: component.html\n *\n * @module Blocks\n */\nimport { debounce, isArray } from 'underscore';\nimport { ItemManagerModule } from '../abstract/Module';\nimport FrameView from '../canvas/view/FrameView';\nimport Component from '../dom_components/model/Component';\nimport EditorModel from '../editor/model/Editor';\nimport defaults, { BlockManagerConfig } from './config/config';\nimport Block, { BlockProperties } from './model/Block';\nimport Blocks from './model/Blocks';\nimport Categories from './model/Categories';\nimport Category from './model/Category';\nimport { BlocksEvents } from './types';\nimport BlocksView from './view/BlocksView';\n\nexport type BlockEvent = `${BlocksEvents}`;\n\nexport default class BlockManager extends ItemManagerModule {\n blocks: Blocks;\n blocksVisible: Blocks;\n categories: Categories;\n blocksView?: BlocksView;\n _dragBlock?: Block;\n _bhv?: Record;\n events = BlocksEvents;\n\n Block = Block;\n\n Blocks = Blocks;\n\n Category = Category;\n\n Categories = Categories;\n\n storageKey = '';\n\n constructor(em: EditorModel) {\n super(em, 'BlockManager', new Blocks(em.config.blockManager?.blocks || []), BlocksEvents, defaults);\n\n // Global blocks collection\n this.blocks = this.all;\n this.blocksVisible = new Blocks(this.blocks.models);\n this.categories = new Categories();\n\n // Setup the sync between the global and public collections\n this.blocks.on('add', model => this.blocksVisible.add(model));\n this.blocks.on('remove', model => this.blocksVisible.remove(model));\n this.blocks.on('reset', coll => this.blocksVisible.reset(coll.models));\n\n this.__onAllEvent = debounce(() => this.__trgCustom(), 0);\n\n return this;\n }\n\n /**\n * Get configuration object\n * @name getConfig\n * @function\n * @return {Object}\n */\n\n __trgCustom() {\n this.em.trigger(this.events.custom, this.__customData());\n }\n\n __customData() {\n const bhv = this.__getBehaviour();\n return {\n bm: this as BlockManager,\n blocks: this.getAll().models,\n container: bhv.container,\n dragStart: (block: Block, ev?: Event) => this.startDrag(block, ev),\n drag: (ev: Event) => this.__drag(ev),\n dragStop: (cancel?: boolean) => this.endDrag(cancel),\n };\n }\n\n __startDrag(block: Block, ev?: Event) {\n const { em, events, blocks } = this;\n const content = block.getContent ? block.getContent() : block;\n this._dragBlock = block;\n em.set({ dragResult: null, dragContent: content });\n [em, blocks].map(i => i.trigger(events.dragStart, block, ev));\n }\n\n __drag(ev: Event) {\n const { em, events, blocks } = this;\n const block = this._dragBlock;\n [em, blocks].map(i => i.trigger(events.drag, block, ev));\n }\n\n __endDrag(opts: { component?: Component } = {}) {\n const { em, events, blocks } = this;\n const block = this._dragBlock;\n const cmp = opts.component || em.get('dragResult');\n delete this._dragBlock;\n\n if (cmp && block) {\n const oldKey = 'activeOnRender';\n const oldActive = cmp.get && cmp.get(oldKey);\n const toActive = block.get('activate') || oldActive;\n const toSelect = block.get('select');\n const first = isArray(cmp) ? cmp[0] : cmp;\n\n if (toSelect || (toActive && toSelect !== false)) {\n em.setSelected(first);\n }\n\n if (toActive) {\n first.trigger('active');\n oldActive && first.unset(oldKey);\n }\n\n if (block.get('resetId')) {\n first.onAll((cmp: any) => cmp.resetId());\n }\n }\n\n em.set({ dragResult: null, dragContent: null });\n\n if (block) {\n [em, blocks].map(i => i.trigger(events.dragEnd, cmp, block));\n }\n }\n\n __getFrameViews(): FrameView[] {\n return this.em.Canvas.getFrames()\n .map(frame => frame.view!)\n .filter(Boolean);\n }\n\n __behaviour(opts = {}) {\n return (this._bhv = {\n ...(this._bhv || {}),\n ...opts,\n });\n }\n\n __getBehaviour() {\n return this._bhv || {};\n }\n\n startDrag(block: Block, ev?: Event) {\n this.__startDrag(block, ev);\n this.__getFrameViews().forEach(fv => fv.droppable?.startCustom());\n }\n\n endDrag(cancel?: boolean) {\n this.__getFrameViews().forEach(fv => fv.droppable?.endCustom(cancel));\n this.__endDrag();\n }\n\n postRender() {\n const { categories, config, em } = this;\n const collection = this.blocksVisible;\n this.blocksView = new BlocksView({ collection, categories }, { ...config, em });\n this.__appendTo(collection.models);\n this.__trgCustom();\n }\n\n /**\n * Add new block.\n * @param {String} id Block ID\n * @param {[Block]} props Block properties\n * @returns {[Block]} Added block\n * @example\n * blockManager.add('h1-block', {\n * label: 'Heading',\n * content: '

Put your title here

',\n * category: 'Basic',\n * attributes: {\n * title: 'Insert h1 block'\n * }\n * });\n */\n add(id: string, props: BlockProperties, opts = {}) {\n const prp = props || {};\n prp.id = id;\n return this.blocks.add(prp, opts);\n }\n\n /**\n * Get the block by id.\n * @param {String} id Block id\n * @returns {[Block]}\n * @example\n * const block = blockManager.get('h1-block');\n * console.log(JSON.stringify(block));\n * // {label: 'Heading', content: '

Put your ...', ...}\n */\n get(id: string) {\n return this.blocks.get(id);\n }\n\n /**\n * Return all blocks.\n * @returns {Collection<[Block]>}\n * @example\n * const blocks = blockManager.getAll();\n * console.log(JSON.stringify(blocks));\n * // [{label: 'Heading', content: '

Put your ...'}, ...]\n */\n getAll() {\n return this.blocks;\n }\n\n /**\n * Return the visible collection, which containes blocks actually rendered\n * @returns {Collection<[Block]>}\n */\n getAllVisible() {\n return this.blocksVisible;\n }\n\n /**\n * Remove block.\n * @param {String|[Block]} block Block or block ID\n * @returns {[Block]} Removed block\n * @example\n * const removed = blockManager.remove('BLOCK_ID');\n * // or by passing the Block\n * const block = blockManager.get('BLOCK_ID');\n * blockManager.remove(block);\n */\n remove(block: string | Block, opts = {}) {\n return this.__remove(block, opts);\n }\n\n /**\n * Get all available categories.\n * It's possible to add categories only within blocks via 'add()' method\n * @return {Array|Collection}\n */\n getCategories() {\n return this.categories;\n }\n\n /**\n * Return the Blocks container element\n * @return {HTMLElement}\n */\n getContainer() {\n return this.blocksView?.el;\n }\n\n /**\n * Returns currently dragging block.\n * Updated when the drag starts and cleared once it's done.\n * @returns {[Block]|undefined}\n */\n getDragBlock() {\n return this._dragBlock;\n }\n\n /**\n * Render blocks\n * @param {Array} blocks Blocks to render, without the argument will render all global blocks\n * @param {Object} [opts={}] Options\n * @param {Boolean} [opts.external] Render blocks in a new container (HTMLElement will be returned)\n * @param {Boolean} [opts.ignoreCategories] Render blocks without categories\n * @return {HTMLElement} Rendered element\n * @example\n * // Render all blocks (inside the global collection)\n * blockManager.render();\n *\n * // Render new set of blocks\n * const blocks = blockManager.getAll();\n * const filtered = blocks.filter(block => block.get('category') == 'sections')\n *\n * blockManager.render(filtered);\n * // Or a new set from an array\n * blockManager.render([\n * {label: 'Label text', content: '
Content
'}\n * ]);\n *\n * // Back to blocks from the global collection\n * blockManager.render();\n *\n * // You can also render your blocks outside of the main block container\n * const newBlocksEl = blockManager.render(filtered, { external: true });\n * document.getElementById('some-id').appendChild(newBlocksEl);\n */\n render(blocks?: Block[], opts: { external?: boolean } = {}) {\n const { categories, config, em } = this;\n const toRender = blocks || this.getAll().models;\n\n if (opts.external) {\n const collection = new Blocks(toRender);\n return new BlocksView({ collection, categories }, { em, ...config, ...opts }).render().el;\n }\n\n if (this.blocksView) {\n this.blocksView.updateConfig(opts);\n this.blocksView.collection.reset(toRender);\n\n if (!this.blocksView.rendered) {\n this.blocksView.render();\n this.blocksView.rendered = true;\n }\n }\n\n return this.getContainer();\n }\n\n destroy() {\n const colls = [this.blocks, this.blocksVisible, this.categories];\n colls.map(c => c.stopListening());\n colls.map(c => c.reset());\n this.blocksView?.remove();\n }\n}\n","export interface SelectorManagerConfig {\n /**\n * Style prefix.\n * @default 'clm-'\n */\n stylePrefix?: string;\n\n /**\n * Specify the element to use as a container, string (query) or HTMLElement.\n * With the empty value, nothing will be rendered.\n * @default ''\n */\n appendTo?: string | HTMLElement;\n\n /**\n * Default selectors.\n * @default []\n */\n selectors?: any[];\n\n /**\n * Default states.\n * @default [{ name: 'hover' }, { name: 'active' }, { name: 'nth-of-type(2n)' }]\n */\n states?: any[];\n\n /**\n * Custom selector name escaping strategy.\n * @example\n * escapeName: name => name.replace(' ', '_'),\n */\n escapeName?: (name: string) => string;\n\n /**\n * Custom selected name strategy (the string you see after 'Selected').\n * @example\n * selectedName: ({ result, state, target }) => `${result} - ID: ${target.getId()}`,\n */\n selectedName?: (props: { result: string; state: any; target: any }) => string;\n\n /**\n * Icon used to add new selector\n */\n iconAdd?: string;\n\n /**\n * Icon used to sync styles.\n */\n iconSync?: string;\n\n /**\n * Icon to show when the selector is enabled.\n */\n iconTagOn?: string;\n\n /**\n * Icon to show when the selector is disabled.\n */\n iconTagOff?: string;\n\n /**\n * Icon used to remove the selector.\n */\n iconTagRemove?: string;\n\n /**\n * Custom render function for the Selector Manager.\n * @example\n * render: ({ el, labelHead, labelStates, labelInfo, }) => {\n * // You can use the default `el` to extend/edit the current\n * // DOM element of the Selector Manager\n * const someEl = document.createElement('div');\n * // ...\n * el.appendChild(someEl);\n * // no need to return anything from the function\n *\n * // Create and return a new DOM element\n * const newEl = document.createElement('div');\n * // ...\n * return newEl;\n *\n * // Return an HTML string for a completely different layout.\n * // Use `data-*` attributes to make the module recognize some elements:\n * // `data-states` - Where to append state `