@innovastudio/contentbox 1.6.192 → 1.6.193

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -16,7 +16,7 @@ var ContentBox=function(){"use strict";class t{appendHtml(t,e,i="beforeend"){t.i
16
16
  * @author RubaXa <trash@rubaxa.org>
17
17
  * @author owenm <owen23355@gmail.com>
18
18
  * @license MIT
19
- */function j(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function F(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?j(Object(i),!0).forEach((function(e){W(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):j(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function U(t){return U="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},U(t)}function W(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function G(){return G=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},G.apply(this,arguments)}function Y(t,e){if(null==t)return{};var i,n,o=function(t,e){if(null==t)return{};var i,n,o={},s=Object.keys(t);for(n=0;n<s.length;n++)i=s[n],e.indexOf(i)>=0||(o[i]=t[i]);return o}(t,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(n=0;n<s.length;n++)i=s[n],e.indexOf(i)>=0||Object.prototype.propertyIsEnumerable.call(t,i)&&(o[i]=t[i])}return o}function X(t){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(t)}var V=X(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),K=X(/Edge/i),Z=X(/firefox/i),Q=X(/safari/i)&&!X(/chrome/i)&&!X(/android/i),J=X(/iP(ad|od|hone)/i),tt=X(/chrome/i)&&X(/android/i),et={capture:!1,passive:!1};function it(t,e,i){t.addEventListener(e,i,!V&&et)}function nt(t,e,i){t.removeEventListener(e,i,!V&&et)}function ot(t,e){if(e){if(">"===e[0]&&(e=e.substring(1)),t)try{if(t.matches)return t.matches(e);if(t.msMatchesSelector)return t.msMatchesSelector(e);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(e)}catch(t){return!1}return!1}}function st(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function lt(t,e,i,n){if(t){i=i||document;do{if(null!=e&&(">"===e[0]?t.parentNode===i&&ot(t,e):ot(t,e))||n&&t===i)return t;if(t===i)break}while(t=st(t))}return null}var at,rt=/\s+/g;function ct(t,e,i){if(t&&e)if(t.classList)t.classList[i?"add":"remove"](e);else{var n=(" "+t.className+" ").replace(rt," ").replace(" "+e+" "," ");t.className=(n+(i?" "+e:"")).replace(rt," ")}}function ut(t,e,i){var n=t&&t.style;if(n){if(void 0===i)return document.defaultView&&document.defaultView.getComputedStyle?i=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(i=t.currentStyle),void 0===e?i:i[e];e in n||-1!==e.indexOf("webkit")||(e="-webkit-"+e),n[e]=i+("string"==typeof i?"":"px")}}function dt(t,e){var i="";if("string"==typeof t)i=t;else do{var n=ut(t,"transform");n&&"none"!==n&&(i=n+" "+i)}while(!e&&(t=t.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(i)}function bt(t,e,i){if(t){var n=t.getElementsByTagName(e),o=0,s=n.length;if(i)for(;o<s;o++)i(n[o],o);return n}return[]}function pt(){var t=document.scrollingElement;return t||document.documentElement}function ht(t,e,i,n,o){if(t.getBoundingClientRect||t===window){var s,l,a,r,c,u,d;if(t!==window&&t.parentNode&&t!==pt()?(l=(s=t.getBoundingClientRect()).top,a=s.left,r=s.bottom,c=s.right,u=s.height,d=s.width):(l=0,a=0,r=window.innerHeight,c=window.innerWidth,u=window.innerHeight,d=window.innerWidth),(e||i)&&t!==window&&(o=o||t.parentNode,!V))do{if(o&&o.getBoundingClientRect&&("none"!==ut(o,"transform")||i&&"static"!==ut(o,"position"))){var b=o.getBoundingClientRect();l-=b.top+parseInt(ut(o,"border-top-width")),a-=b.left+parseInt(ut(o,"border-left-width")),r=l+s.height,c=a+s.width;break}}while(o=o.parentNode);if(n&&t!==window){var p=dt(o||t),h=p&&p.a,g=p&&p.d;p&&(r=(l/=g)+(u/=g),c=(a/=h)+(d/=h))}return{top:l,left:a,bottom:r,right:c,width:d,height:u}}}function gt(t,e,i){for(var n=xt(t,!0),o=ht(t)[e];n;){var s=ht(n)[i];if(!("top"===i||"left"===i?o>=s:o<=s))return n;if(n===pt())break;n=xt(n,!1)}return!1}function mt(t,e,i,n){for(var o=0,s=0,l=t.children;s<l.length;){if("none"!==l[s].style.display&&l[s]!==_e.ghost&&(n||l[s]!==_e.dragged)&&lt(l[s],i.draggable,t,!1)){if(o===e)return l[s];o++}s++}return null}function ft(t,e){for(var i=t.lastElementChild;i&&(i===_e.ghost||"none"===ut(i,"display")||e&&!ot(i,e));)i=i.previousElementSibling;return i||null}function vt(t,e){var i=0;if(!t||!t.parentNode)return-1;for(;t=t.previousElementSibling;)"TEMPLATE"===t.nodeName.toUpperCase()||t===_e.clone||e&&!ot(t,e)||i++;return i}function yt(t){var e=0,i=0,n=pt();if(t)do{var o=dt(t),s=o.a,l=o.d;e+=t.scrollLeft*s,i+=t.scrollTop*l}while(t!==n&&(t=t.parentNode));return[e,i]}function xt(t,e){if(!t||!t.getBoundingClientRect)return pt();var i=t,n=!1;do{if(i.clientWidth<i.scrollWidth||i.clientHeight<i.scrollHeight){var o=ut(i);if(i.clientWidth<i.scrollWidth&&("auto"==o.overflowX||"scroll"==o.overflowX)||i.clientHeight<i.scrollHeight&&("auto"==o.overflowY||"scroll"==o.overflowY)){if(!i.getBoundingClientRect||i===document.body)return pt();if(n||e)return i;n=!0}}}while(i=i.parentNode);return pt()}function wt(t,e){return Math.round(t.top)===Math.round(e.top)&&Math.round(t.left)===Math.round(e.left)&&Math.round(t.height)===Math.round(e.height)&&Math.round(t.width)===Math.round(e.width)}function St(t,e){return function(){if(!at){var i=arguments,n=this;1===i.length?t.call(n,i[0]):t.apply(n,i),at=setTimeout((function(){at=void 0}),e)}}}function kt(t,e,i){t.scrollLeft+=e,t.scrollTop+=i}function _t(t){var e=window.Polymer,i=window.jQuery||window.Zepto;return e&&e.dom?e.dom(t).cloneNode(!0):i?i(t).clone(!0)[0]:t.cloneNode(!0)}function Ct(t,e,i){var n={};return Array.from(t.children).forEach((function(o){var s,l,a,r;if(lt(o,e.draggable,t,!1)&&!o.animated&&o!==i){var c=ht(o);n.left=Math.min(null!==(s=n.left)&&void 0!==s?s:1/0,c.left),n.top=Math.min(null!==(l=n.top)&&void 0!==l?l:1/0,c.top),n.right=Math.max(null!==(a=n.right)&&void 0!==a?a:-1/0,c.right),n.bottom=Math.max(null!==(r=n.bottom)&&void 0!==r?r:-1/0,c.bottom)}})),n.width=n.right-n.left,n.height=n.bottom-n.top,n.x=n.left,n.y=n.top,n}var Lt="Sortable"+(new Date).getTime();function At(){var t,e=[];return{captureAnimationState:function(){(e=[],this.options.animation)&&[].slice.call(this.el.children).forEach((function(t){if("none"!==ut(t,"display")&&t!==_e.ghost){e.push({target:t,rect:ht(t)});var i=F({},e[e.length-1].rect);if(t.thisAnimationDuration){var n=dt(t,!0);n&&(i.top-=n.f,i.left-=n.e)}t.fromRect=i}}))},addAnimationState:function(t){e.push(t)},removeAnimationState:function(t){e.splice(function(t,e){for(var i in t)if(t.hasOwnProperty(i))for(var n in e)if(e.hasOwnProperty(n)&&e[n]===t[i][n])return Number(i);return-1}(e,{target:t}),1)},animateAll:function(i){var n=this;if(!this.options.animation)return clearTimeout(t),void("function"==typeof i&&i());var o=!1,s=0;e.forEach((function(t){var e=0,i=t.target,l=i.fromRect,a=ht(i),r=i.prevFromRect,c=i.prevToRect,u=t.rect,d=dt(i,!0);d&&(a.top-=d.f,a.left-=d.e),i.toRect=a,i.thisAnimationDuration&&wt(r,a)&&!wt(l,a)&&(u.top-a.top)/(u.left-a.left)==(l.top-a.top)/(l.left-a.left)&&(e=function(t,e,i,n){return Math.sqrt(Math.pow(e.top-t.top,2)+Math.pow(e.left-t.left,2))/Math.sqrt(Math.pow(e.top-i.top,2)+Math.pow(e.left-i.left,2))*n.animation}(u,r,c,n.options)),wt(a,l)||(i.prevFromRect=l,i.prevToRect=a,e||(e=n.options.animation),n.animate(i,u,a,e)),e&&(o=!0,s=Math.max(s,e),clearTimeout(i.animationResetTimer),i.animationResetTimer=setTimeout((function(){i.animationTime=0,i.prevFromRect=null,i.fromRect=null,i.prevToRect=null,i.thisAnimationDuration=null}),e),i.thisAnimationDuration=e)})),clearTimeout(t),o?t=setTimeout((function(){"function"==typeof i&&i()}),s):"function"==typeof i&&i(),e=[]},animate:function(t,e,i,n){if(n){ut(t,"transition",""),ut(t,"transform","");var o=dt(this.el),s=o&&o.a,l=o&&o.d,a=(e.left-i.left)/(s||1),r=(e.top-i.top)/(l||1);t.animatingX=!!a,t.animatingY=!!r,ut(t,"transform","translate3d("+a+"px,"+r+"px,0)"),this.forRepaintDummy=function(t){return t.offsetWidth}(t),ut(t,"transition","transform "+n+"ms"+(this.options.easing?" "+this.options.easing:"")),ut(t,"transform","translate3d(0,0,0)"),"number"==typeof t.animated&&clearTimeout(t.animated),t.animated=setTimeout((function(){ut(t,"transition",""),ut(t,"transform",""),t.animated=!1,t.animatingX=!1,t.animatingY=!1}),n)}}}}var Et=[],qt={initializeByDefault:!0},Tt={mount:function(t){for(var e in qt)qt.hasOwnProperty(e)&&!(e in t)&&(t[e]=qt[e]);Et.forEach((function(e){if(e.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")})),Et.push(t)},pluginEvent:function(t,e,i){var n=this;this.eventCanceled=!1,i.cancel=function(){n.eventCanceled=!0};var o=t+"Global";Et.forEach((function(n){e[n.pluginName]&&(e[n.pluginName][o]&&e[n.pluginName][o](F({sortable:e},i)),e.options[n.pluginName]&&e[n.pluginName][t]&&e[n.pluginName][t](F({sortable:e},i)))}))},initializePlugins:function(t,e,i,n){for(var o in Et.forEach((function(n){var o=n.pluginName;if(t.options[o]||n.initializeByDefault){var s=new n(t,e,t.options);s.sortable=t,s.options=t.options,t[o]=s,G(i,s.defaults)}})),t.options)if(t.options.hasOwnProperty(o)){var s=this.modifyOption(t,o,t.options[o]);void 0!==s&&(t.options[o]=s)}},getEventProperties:function(t,e){var i={};return Et.forEach((function(n){"function"==typeof n.eventProperties&&G(i,n.eventProperties.call(e[n.pluginName],t))})),i},modifyOption:function(t,e,i){var n;return Et.forEach((function(o){t[o.pluginName]&&o.optionListeners&&"function"==typeof o.optionListeners[e]&&(n=o.optionListeners[e].call(t[o.pluginName],i))})),n}};var Mt=["evt"],Rt=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=i.evt,o=Y(i,Mt);Tt.pluginEvent.bind(_e)(t,e,F({dragEl:Ot,parentEl:$t,ghostEl:Bt,rootEl:zt,nextEl:Pt,lastDownEl:Dt,cloneEl:Nt,cloneHidden:Ht,dragStarted:te,putSortable:Yt,activeSortable:_e.active,originalEvent:n,oldIndex:jt,oldDraggableIndex:Ut,newIndex:Ft,newDraggableIndex:Wt,hideGhostForTarget:xe,unhideGhostForTarget:we,cloneNowHidden:function(){Ht=!0},cloneNowShown:function(){Ht=!1},dispatchSortableEvent:function(t){It({sortable:e,name:t,originalEvent:n})}},o))};function It(t){!function(t){var e=t.sortable,i=t.rootEl,n=t.name,o=t.targetEl,s=t.cloneEl,l=t.toEl,a=t.fromEl,r=t.oldIndex,c=t.newIndex,u=t.oldDraggableIndex,d=t.newDraggableIndex,b=t.originalEvent,p=t.putSortable,h=t.extraEventProperties;if(e=e||i&&i[Lt]){var g,m=e.options,f="on"+n.charAt(0).toUpperCase()+n.substr(1);!window.CustomEvent||V||K?(g=document.createEvent("Event")).initEvent(n,!0,!0):g=new CustomEvent(n,{bubbles:!0,cancelable:!0}),g.to=l||i,g.from=a||i,g.item=o||i,g.clone=s,g.oldIndex=r,g.newIndex=c,g.oldDraggableIndex=u,g.newDraggableIndex=d,g.originalEvent=b,g.pullMode=p?p.lastPutMode:void 0;var v=F(F({},h),Tt.getEventProperties(n,e));for(var y in v)g[y]=v[y];i&&i.dispatchEvent(g),m[f]&&m[f].call(e,g)}}(F({putSortable:Yt,cloneEl:Nt,targetEl:Ot,rootEl:zt,oldIndex:jt,oldDraggableIndex:Ut,newIndex:Ft,newDraggableIndex:Wt},t))}var Ot,$t,Bt,zt,Pt,Dt,Nt,Ht,jt,Ft,Ut,Wt,Gt,Yt,Xt,Vt,Kt,Zt,Qt,Jt,te,ee,ie,ne,oe,se=!1,le=!1,ae=[],re=!1,ce=!1,ue=[],de=!1,be=[],pe="undefined"!=typeof document,he=J,ge=K||V?"cssFloat":"float",me=pe&&!tt&&!J&&"draggable"in document.createElement("div"),fe=function(){if(pe){if(V)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto","auto"===t.style.pointerEvents}}(),ve=function(t,e){var i=ut(t),n=parseInt(i.width)-parseInt(i.paddingLeft)-parseInt(i.paddingRight)-parseInt(i.borderLeftWidth)-parseInt(i.borderRightWidth),o=mt(t,0,e),s=mt(t,1,e),l=o&&ut(o),a=s&&ut(s),r=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+ht(o).width,c=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+ht(s).width;if("flex"===i.display)return"column"===i.flexDirection||"column-reverse"===i.flexDirection?"vertical":"horizontal";if("grid"===i.display)return i.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(o&&l.float&&"none"!==l.float){var u="left"===l.float?"left":"right";return!s||"both"!==a.clear&&a.clear!==u?"horizontal":"vertical"}return o&&("block"===l.display||"flex"===l.display||"table"===l.display||"grid"===l.display||r>=n&&"none"===i[ge]||s&&"none"===i[ge]&&r+c>n)?"vertical":"horizontal"},ye=function(t){function e(t,i){return function(n,o,s,l){var a=n.options.group.name&&o.options.group.name&&n.options.group.name===o.options.group.name;if(null==t&&(i||a))return!0;if(null==t||!1===t)return!1;if(i&&"clone"===t)return t;if("function"==typeof t)return e(t(n,o,s,l),i)(n,o,s,l);var r=(i?n:o).options.group.name;return!0===t||"string"==typeof t&&t===r||t.join&&t.indexOf(r)>-1}}var i={},n=t.group;n&&"object"==U(n)||(n={name:n}),i.name=n.name,i.checkPull=e(n.pull,!0),i.checkPut=e(n.put),i.revertClone=n.revertClone,t.group=i},xe=function(){!fe&&Bt&&ut(Bt,"display","none")},we=function(){!fe&&Bt&&ut(Bt,"display","")};pe&&!tt&&document.addEventListener("click",(function(t){if(le)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),le=!1,!1}),!0);var Se=function(t){if(Ot){var e=function(t,e){var i;return ae.some((function(n){var o=n[Lt].options.emptyInsertThreshold;if(o&&!ft(n)){var s=ht(n),l=t>=s.left-o&&t<=s.right+o,a=e>=s.top-o&&e<=s.bottom+o;return l&&a?i=n:void 0}})),i}((t=t.touches?t.touches[0]:t).clientX,t.clientY);if(e){var i={};for(var n in t)t.hasOwnProperty(n)&&(i[n]=t[n]);i.target=i.rootEl=e,i.preventDefault=void 0,i.stopPropagation=void 0,e[Lt]._onDragOver(i)}}},ke=function(t){Ot&&Ot.parentNode[Lt]._isOutsideThisEl(t.target)};function _e(t,e){if(!t||!t.nodeType||1!==t.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=e=G({},e),t[Lt]=this;var i={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(t.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return ve(t,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(t,e){t.setData("Text",e.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==_e.supportPointer&&"PointerEvent"in window&&!Q,emptyInsertThreshold:5};for(var n in Tt.initializePlugins(this,t,i),i)!(n in e)&&(e[n]=i[n]);for(var o in ye(e),this)"_"===o.charAt(0)&&"function"==typeof this[o]&&(this[o]=this[o].bind(this));this.nativeDraggable=!e.forceFallback&&me,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?it(t,"pointerdown",this._onTapStart):(it(t,"mousedown",this._onTapStart),it(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(it(t,"dragover",this),it(t,"dragenter",this)),ae.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),G(this,At())}function Ce(t,e,i,n,o,s,l,a){var r,c,u=t[Lt],d=u.options.onMove;return!window.CustomEvent||V||K?(r=document.createEvent("Event")).initEvent("move",!0,!0):r=new CustomEvent("move",{bubbles:!0,cancelable:!0}),r.to=e,r.from=t,r.dragged=i,r.draggedRect=n,r.related=o||e,r.relatedRect=s||ht(e),r.willInsertAfter=a,r.originalEvent=l,t.dispatchEvent(r),d&&(c=d.call(u,r,l)),c}function Le(t){t.draggable=!1}function Ae(){de=!1}function Ee(t){for(var e=t.tagName+t.className+t.src+t.href+t.textContent,i=e.length,n=0;i--;)n+=e.charCodeAt(i);return n.toString(36)}function qe(t){return setTimeout(t,0)}function Te(t){return clearTimeout(t)}_e.prototype={constructor:_e,_isOutsideThisEl:function(t){this.el.contains(t)||t===this.el||(ee=null)},_getDirection:function(t,e){return"function"==typeof this.options.direction?this.options.direction.call(this,t,e,Ot):this.options.direction},_onTapStart:function(t){if(t.cancelable){var e=this,i=this.el,n=this.options,o=n.preventOnFilter,s=t.type,l=t.touches&&t.touches[0]||t.pointerType&&"touch"===t.pointerType&&t,a=(l||t).target,r=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||a,c=n.filter;if(function(t){be.length=0;var e=t.getElementsByTagName("input"),i=e.length;for(;i--;){var n=e[i];n.checked&&be.push(n)}}(i),!Ot&&!(/mousedown|pointerdown/.test(s)&&0!==t.button||n.disabled)&&!r.isContentEditable&&(this.nativeDraggable||!Q||!a||"SELECT"!==a.tagName.toUpperCase())&&!((a=lt(a,n.draggable,i,!1))&&a.animated||Dt===a)){if(jt=vt(a),Ut=vt(a,n.draggable),"function"==typeof c){if(c.call(this,t,a,this))return It({sortable:e,rootEl:r,name:"filter",targetEl:a,toEl:i,fromEl:i}),Rt("filter",e,{evt:t}),void(o&&t.cancelable&&t.preventDefault())}else if(c&&(c=c.split(",").some((function(n){if(n=lt(r,n.trim(),i,!1))return It({sortable:e,rootEl:n,name:"filter",targetEl:a,fromEl:i,toEl:i}),Rt("filter",e,{evt:t}),!0}))))return void(o&&t.cancelable&&t.preventDefault());n.handle&&!lt(r,n.handle,i,!1)||this._prepareDragStart(t,l,a)}}},_prepareDragStart:function(t,e,i){var n,o=this,s=o.el,l=o.options,a=s.ownerDocument;if(i&&!Ot&&i.parentNode===s){var r=ht(i);if(zt=s,$t=(Ot=i).parentNode,Pt=Ot.nextSibling,Dt=i,Gt=l.group,_e.dragged=Ot,Xt={target:Ot,clientX:(e||t).clientX,clientY:(e||t).clientY},Qt=Xt.clientX-r.left,Jt=Xt.clientY-r.top,this._lastX=(e||t).clientX,this._lastY=(e||t).clientY,Ot.style["will-change"]="all",n=function(){Rt("delayEnded",o,{evt:t}),_e.eventCanceled?o._onDrop():(o._disableDelayedDragEvents(),!Z&&o.nativeDraggable&&(Ot.draggable=!0),o._triggerDragStart(t,e),It({sortable:o,name:"choose",originalEvent:t}),ct(Ot,l.chosenClass,!0))},l.ignore.split(",").forEach((function(t){bt(Ot,t.trim(),Le)})),it(a,"dragover",Se),it(a,"mousemove",Se),it(a,"touchmove",Se),it(a,"mouseup",o._onDrop),it(a,"touchend",o._onDrop),it(a,"touchcancel",o._onDrop),Z&&this.nativeDraggable&&(this.options.touchStartThreshold=4,Ot.draggable=!0),Rt("delayStart",this,{evt:t}),!l.delay||l.delayOnTouchOnly&&!e||this.nativeDraggable&&(K||V))n();else{if(_e.eventCanceled)return void this._onDrop();it(a,"mouseup",o._disableDelayedDrag),it(a,"touchend",o._disableDelayedDrag),it(a,"touchcancel",o._disableDelayedDrag),it(a,"mousemove",o._delayedDragTouchMoveHandler),it(a,"touchmove",o._delayedDragTouchMoveHandler),l.supportPointer&&it(a,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(n,l.delay)}}},_delayedDragTouchMoveHandler:function(t){var e=t.touches?t.touches[0]:t;Math.max(Math.abs(e.clientX-this._lastX),Math.abs(e.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){Ot&&Le(Ot),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;nt(t,"mouseup",this._disableDelayedDrag),nt(t,"touchend",this._disableDelayedDrag),nt(t,"touchcancel",this._disableDelayedDrag),nt(t,"mousemove",this._delayedDragTouchMoveHandler),nt(t,"touchmove",this._delayedDragTouchMoveHandler),nt(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,e){e=e||"touch"==t.pointerType&&t,!this.nativeDraggable||e?this.options.supportPointer?it(document,"pointermove",this._onTouchMove):it(document,e?"touchmove":"mousemove",this._onTouchMove):(it(Ot,"dragend",this),it(zt,"dragstart",this._onDragStart));try{document.selection?qe((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(t){}},_dragStarted:function(t,e){if(se=!1,zt&&Ot){Rt("dragStarted",this,{evt:e}),this.nativeDraggable&&it(document,"dragover",ke);var i=this.options;!t&&ct(Ot,i.dragClass,!1),ct(Ot,i.ghostClass,!0),_e.active=this,t&&this._appendGhost(),It({sortable:this,name:"start",originalEvent:e})}else this._nulling()},_emulateDragOver:function(){if(Vt){this._lastX=Vt.clientX,this._lastY=Vt.clientY,xe();for(var t=document.elementFromPoint(Vt.clientX,Vt.clientY),e=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(Vt.clientX,Vt.clientY))!==e;)e=t;if(Ot.parentNode[Lt]._isOutsideThisEl(t),e)do{if(e[Lt]){if(e[Lt]._onDragOver({clientX:Vt.clientX,clientY:Vt.clientY,target:t,rootEl:e})&&!this.options.dragoverBubble)break}t=e}while(e=e.parentNode);we()}},_onTouchMove:function(t){if(Xt){var e=this.options,i=e.fallbackTolerance,n=e.fallbackOffset,o=t.touches?t.touches[0]:t,s=Bt&&dt(Bt,!0),l=Bt&&s&&s.a,a=Bt&&s&&s.d,r=he&&oe&&yt(oe),c=(o.clientX-Xt.clientX+n.x)/(l||1)+(r?r[0]-ue[0]:0)/(l||1),u=(o.clientY-Xt.clientY+n.y)/(a||1)+(r?r[1]-ue[1]:0)/(a||1);if(!_e.active&&!se){if(i&&Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))<i)return;this._onDragStart(t,!0)}if(Bt){s?(s.e+=c-(Kt||0),s.f+=u-(Zt||0)):s={a:1,b:0,c:0,d:1,e:c,f:u};var d="matrix(".concat(s.a,",").concat(s.b,",").concat(s.c,",").concat(s.d,",").concat(s.e,",").concat(s.f,")");ut(Bt,"webkitTransform",d),ut(Bt,"mozTransform",d),ut(Bt,"msTransform",d),ut(Bt,"transform",d),Kt=c,Zt=u,Vt=o}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!Bt){var t=this.options.fallbackOnBody?document.body:zt,e=ht(Ot,!0,he,!0,t),i=this.options;if(he){for(oe=t;"static"===ut(oe,"position")&&"none"===ut(oe,"transform")&&oe!==document;)oe=oe.parentNode;oe!==document.body&&oe!==document.documentElement?(oe===document&&(oe=pt()),e.top+=oe.scrollTop,e.left+=oe.scrollLeft):oe=pt(),ue=yt(oe)}ct(Bt=Ot.cloneNode(!0),i.ghostClass,!1),ct(Bt,i.fallbackClass,!0),ct(Bt,i.dragClass,!0),ut(Bt,"transition",""),ut(Bt,"transform",""),ut(Bt,"box-sizing","border-box"),ut(Bt,"margin",0),ut(Bt,"top",e.top),ut(Bt,"left",e.left),ut(Bt,"width",e.width),ut(Bt,"height",e.height),ut(Bt,"opacity","0.8"),ut(Bt,"position",he?"absolute":"fixed"),ut(Bt,"zIndex","100000"),ut(Bt,"pointerEvents","none"),_e.ghost=Bt,t.appendChild(Bt),ut(Bt,"transform-origin",Qt/parseInt(Bt.style.width)*100+"% "+Jt/parseInt(Bt.style.height)*100+"%")}},_onDragStart:function(t,e){var i=this,n=t.dataTransfer,o=i.options;Rt("dragStart",this,{evt:t}),_e.eventCanceled?this._onDrop():(Rt("setupClone",this),_e.eventCanceled||((Nt=_t(Ot)).removeAttribute("id"),Nt.draggable=!1,Nt.style["will-change"]="",this._hideClone(),ct(Nt,this.options.chosenClass,!1),_e.clone=Nt),i.cloneId=qe((function(){Rt("clone",i),_e.eventCanceled||(i.options.removeCloneOnHide||zt.insertBefore(Nt,Ot),i._hideClone(),It({sortable:i,name:"clone"}))})),!e&&ct(Ot,o.dragClass,!0),e?(le=!0,i._loopId=setInterval(i._emulateDragOver,50)):(nt(document,"mouseup",i._onDrop),nt(document,"touchend",i._onDrop),nt(document,"touchcancel",i._onDrop),n&&(n.effectAllowed="move",o.setData&&o.setData.call(i,n,Ot)),it(document,"drop",i),ut(Ot,"transform","translateZ(0)")),se=!0,i._dragStartId=qe(i._dragStarted.bind(i,e,t)),it(document,"selectstart",i),te=!0,Q&&ut(document.body,"user-select","none"))},_onDragOver:function(t){var e,i,n,o,s=this.el,l=t.target,a=this.options,r=a.group,c=_e.active,u=Gt===r,d=a.sort,b=Yt||c,p=this,h=!1;if(!de){if(void 0!==t.preventDefault&&t.cancelable&&t.preventDefault(),l=lt(l,a.draggable,s,!0),q("dragOver"),_e.eventCanceled)return h;if(Ot.contains(t.target)||l.animated&&l.animatingX&&l.animatingY||p._ignoreWhileAnimating===l)return M(!1);if(le=!1,c&&!a.disabled&&(u?d||(n=$t!==zt):Yt===this||(this.lastPutMode=Gt.checkPull(this,c,Ot,t))&&r.checkPut(this,c,Ot,t))){if(o="vertical"===this._getDirection(t,l),e=ht(Ot),q("dragOverValid"),_e.eventCanceled)return h;if(n)return $t=zt,T(),this._hideClone(),q("revert"),_e.eventCanceled||(Pt?zt.insertBefore(Ot,Pt):zt.appendChild(Ot)),M(!0);var g=ft(s,a.draggable);if(!g||function(t,e,i){var n=ht(ft(i.el,i.options.draggable)),o=Ct(i.el,i.options,Bt),s=10;return e?t.clientX>o.right+s||t.clientY>n.bottom&&t.clientX>n.left:t.clientY>o.bottom+s||t.clientX>n.right&&t.clientY>n.top}(t,o,this)&&!g.animated){if(g===Ot)return M(!1);if(g&&s===t.target&&(l=g),l&&(i=ht(l)),!1!==Ce(zt,s,Ot,e,l,i,t,!!l))return T(),g&&g.nextSibling?s.insertBefore(Ot,g.nextSibling):s.appendChild(Ot),$t=s,R(),M(!0)}else if(g&&function(t,e,i){var n=ht(mt(i.el,0,i.options,!0)),o=Ct(i.el,i.options,Bt),s=10;return e?t.clientX<o.left-s||t.clientY<n.top&&t.clientX<n.right:t.clientY<o.top-s||t.clientY<n.bottom&&t.clientX<n.left}(t,o,this)){var m=mt(s,0,a,!0);if(m===Ot)return M(!1);if(i=ht(l=m),!1!==Ce(zt,s,Ot,e,l,i,t,!1))return T(),s.insertBefore(Ot,m),$t=s,R(),M(!0)}else if(l.parentNode===s){i=ht(l);var f,v,y,x=Ot.parentNode!==s,w=!function(t,e,i){var n=i?t.left:t.top,o=i?t.right:t.bottom,s=i?t.width:t.height,l=i?e.left:e.top,a=i?e.right:e.bottom,r=i?e.width:e.height;return n===l||o===a||n+s/2===l+r/2}(Ot.animated&&Ot.toRect||e,l.animated&&l.toRect||i,o),S=o?"top":"left",k=gt(l,"top","top")||gt(Ot,"top","top"),_=k?k.scrollTop:void 0;if(ee!==l&&(v=i[S],re=!1,ce=!w&&a.invertSwap||x),f=function(t,e,i,n,o,s,l,a){var r=n?t.clientY:t.clientX,c=n?i.height:i.width,u=n?i.top:i.left,d=n?i.bottom:i.right,b=!1;if(!l)if(a&&ne<c*o){if(!re&&(1===ie?r>u+c*s/2:r<d-c*s/2)&&(re=!0),re)b=!0;else if(1===ie?r<u+ne:r>d-ne)return-ie}else if(r>u+c*(1-o)/2&&r<d-c*(1-o)/2)return function(t){return vt(Ot)<vt(t)?1:-1}(e);if((b=b||l)&&(r<u+c*s/2||r>d-c*s/2))return r>u+c/2?1:-1;return 0}(t,l,i,o,w?1:a.swapThreshold,null==a.invertedSwapThreshold?a.swapThreshold:a.invertedSwapThreshold,ce,ee===l),0!==f){var C=vt(Ot);do{C-=f,y=$t.children[C]}while(y&&("none"===ut(y,"display")||y===Bt))}if(0===f||y===l)return M(!1);ee=l,ie=f;var L=l.nextElementSibling,A=!1,E=Ce(zt,s,Ot,e,l,i,t,A=1===f);if(!1!==E)return 1!==E&&-1!==E||(A=1===E),de=!0,setTimeout(Ae,30),T(),A&&!L?s.appendChild(Ot):l.parentNode.insertBefore(Ot,A?L:l),k&&kt(k,0,_-k.scrollTop),$t=Ot.parentNode,void 0===v||ce||(ne=Math.abs(v-ht(l)[S])),R(),M(!0)}if(s.contains(Ot))return M(!1)}return!1}function q(a,r){Rt(a,p,F({evt:t,isOwner:u,axis:o?"vertical":"horizontal",revert:n,dragRect:e,targetRect:i,canSort:d,fromSortable:b,target:l,completed:M,onMove:function(i,n){return Ce(zt,s,Ot,e,i,ht(i),t,n)},changed:R},r))}function T(){q("dragOverAnimationCapture"),p.captureAnimationState(),p!==b&&b.captureAnimationState()}function M(e){return q("dragOverCompleted",{insertion:e}),e&&(u?c._hideClone():c._showClone(p),p!==b&&(ct(Ot,Yt?Yt.options.ghostClass:c.options.ghostClass,!1),ct(Ot,a.ghostClass,!0)),Yt!==p&&p!==_e.active?Yt=p:p===_e.active&&Yt&&(Yt=null),b===p&&(p._ignoreWhileAnimating=l),p.animateAll((function(){q("dragOverAnimationComplete"),p._ignoreWhileAnimating=null})),p!==b&&(b.animateAll(),b._ignoreWhileAnimating=null)),(l===Ot&&!Ot.animated||l===s&&!l.animated)&&(ee=null),a.dragoverBubble||t.rootEl||l===document||(Ot.parentNode[Lt]._isOutsideThisEl(t.target),!e&&Se(t)),!a.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),h=!0}function R(){Ft=vt(Ot),Wt=vt(Ot,a.draggable),It({sortable:p,name:"change",toEl:s,newIndex:Ft,newDraggableIndex:Wt,originalEvent:t})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){nt(document,"mousemove",this._onTouchMove),nt(document,"touchmove",this._onTouchMove),nt(document,"pointermove",this._onTouchMove),nt(document,"dragover",Se),nt(document,"mousemove",Se),nt(document,"touchmove",Se)},_offUpEvents:function(){var t=this.el.ownerDocument;nt(t,"mouseup",this._onDrop),nt(t,"touchend",this._onDrop),nt(t,"pointerup",this._onDrop),nt(t,"touchcancel",this._onDrop),nt(document,"selectstart",this)},_onDrop:function(t){var e=this.el,i=this.options;Ft=vt(Ot),Wt=vt(Ot,i.draggable),Rt("drop",this,{evt:t}),$t=Ot&&Ot.parentNode,Ft=vt(Ot),Wt=vt(Ot,i.draggable),_e.eventCanceled||(se=!1,ce=!1,re=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Te(this.cloneId),Te(this._dragStartId),this.nativeDraggable&&(nt(document,"drop",this),nt(e,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Q&&ut(document.body,"user-select",""),ut(Ot,"transform",""),t&&(te&&(t.cancelable&&t.preventDefault(),!i.dropBubble&&t.stopPropagation()),Bt&&Bt.parentNode&&Bt.parentNode.removeChild(Bt),(zt===$t||Yt&&"clone"!==Yt.lastPutMode)&&Nt&&Nt.parentNode&&Nt.parentNode.removeChild(Nt),Ot&&(this.nativeDraggable&&nt(Ot,"dragend",this),Le(Ot),Ot.style["will-change"]="",te&&!se&&ct(Ot,Yt?Yt.options.ghostClass:this.options.ghostClass,!1),ct(Ot,this.options.chosenClass,!1),It({sortable:this,name:"unchoose",toEl:$t,newIndex:null,newDraggableIndex:null,originalEvent:t}),zt!==$t?(Ft>=0&&(It({rootEl:$t,name:"add",toEl:$t,fromEl:zt,originalEvent:t}),It({sortable:this,name:"remove",toEl:$t,originalEvent:t}),It({rootEl:$t,name:"sort",toEl:$t,fromEl:zt,originalEvent:t}),It({sortable:this,name:"sort",toEl:$t,originalEvent:t})),Yt&&Yt.save()):Ft!==jt&&Ft>=0&&(It({sortable:this,name:"update",toEl:$t,originalEvent:t}),It({sortable:this,name:"sort",toEl:$t,originalEvent:t})),_e.active&&(null!=Ft&&-1!==Ft||(Ft=jt,Wt=Ut),It({sortable:this,name:"end",toEl:$t,originalEvent:t}),this.save())))),this._nulling()},_nulling:function(){Rt("nulling",this),zt=Ot=$t=Bt=Pt=Nt=Dt=Ht=Xt=Vt=te=Ft=Wt=jt=Ut=ee=ie=Yt=Gt=_e.dragged=_e.ghost=_e.clone=_e.active=null,be.forEach((function(t){t.checked=!0})),be.length=Kt=Zt=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":Ot&&(this._onDragOver(t),function(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move");t.cancelable&&t.preventDefault()}(t));break;case"selectstart":t.preventDefault()}},toArray:function(){for(var t,e=[],i=this.el.children,n=0,o=i.length,s=this.options;n<o;n++)lt(t=i[n],s.draggable,this.el,!1)&&e.push(t.getAttribute(s.dataIdAttr)||Ee(t));return e},sort:function(t,e){var i={},n=this.el;this.toArray().forEach((function(t,e){var o=n.children[e];lt(o,this.options.draggable,n,!1)&&(i[t]=o)}),this),e&&this.captureAnimationState(),t.forEach((function(t){i[t]&&(n.removeChild(i[t]),n.appendChild(i[t]))})),e&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,e){return lt(t,e||this.options.draggable,this.el,!1)},option:function(t,e){var i=this.options;if(void 0===e)return i[t];var n=Tt.modifyOption(this,t,e);i[t]=void 0!==n?n:e,"group"===t&&ye(i)},destroy:function(){Rt("destroy",this);var t=this.el;t[Lt]=null,nt(t,"mousedown",this._onTapStart),nt(t,"touchstart",this._onTapStart),nt(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(nt(t,"dragover",this),nt(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),(function(t){t.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),ae.splice(ae.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!Ht){if(Rt("hideClone",this),_e.eventCanceled)return;ut(Nt,"display","none"),this.options.removeCloneOnHide&&Nt.parentNode&&Nt.parentNode.removeChild(Nt),Ht=!0}},_showClone:function(t){if("clone"===t.lastPutMode){if(Ht){if(Rt("showClone",this),_e.eventCanceled)return;Ot.parentNode!=zt||this.options.group.revertClone?Pt?zt.insertBefore(Nt,Pt):zt.appendChild(Nt):zt.insertBefore(Nt,Ot),this.options.group.revertClone&&this.animate(Ot,Nt),ut(Nt,"display",""),Ht=!1}}else this._hideClone()}},pe&&it(document,"touchmove",(function(t){(_e.active||se)&&t.cancelable&&t.preventDefault()})),_e.utils={on:it,off:nt,css:ut,find:bt,is:function(t,e){return!!lt(t,e,t,!1)},extend:function(t,e){if(t&&e)for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t},throttle:St,closest:lt,toggleClass:ct,clone:_t,index:vt,nextTick:qe,cancelNextTick:Te,detectDirection:ve,getChild:mt},_e.get=function(t){return t[Lt]},_e.mount=function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];e[0].constructor===Array&&(e=e[0]),e.forEach((function(t){if(!t.prototype||!t.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(t));t.utils&&(_e.utils=F(F({},_e.utils),t.utils)),Tt.mount(t)}))},_e.create=function(t,e){return new _e(t,e)},_e.version="1.15.2";var Me,Re,Ie,Oe,$e,Be,ze=[],Pe=!1;function De(){ze.forEach((function(t){clearInterval(t.pid)})),ze=[]}function Ne(){clearInterval(Be)}var He=St((function(t,e,i,n){if(e.scroll){var o,s=(t.touches?t.touches[0]:t).clientX,l=(t.touches?t.touches[0]:t).clientY,a=e.scrollSensitivity,r=e.scrollSpeed,c=pt(),u=!1;Re!==i&&(Re=i,De(),Me=e.scroll,o=e.scrollFn,!0===Me&&(Me=xt(i,!0)));var d=0,b=Me;do{var p=b,h=ht(p),g=h.top,m=h.bottom,f=h.left,v=h.right,y=h.width,x=h.height,w=void 0,S=void 0,k=p.scrollWidth,_=p.scrollHeight,C=ut(p),L=p.scrollLeft,A=p.scrollTop;p===c?(w=y<k&&("auto"===C.overflowX||"scroll"===C.overflowX||"visible"===C.overflowX),S=x<_&&("auto"===C.overflowY||"scroll"===C.overflowY||"visible"===C.overflowY)):(w=y<k&&("auto"===C.overflowX||"scroll"===C.overflowX),S=x<_&&("auto"===C.overflowY||"scroll"===C.overflowY));var E=w&&(Math.abs(v-s)<=a&&L+y<k)-(Math.abs(f-s)<=a&&!!L),q=S&&(Math.abs(m-l)<=a&&A+x<_)-(Math.abs(g-l)<=a&&!!A);if(!ze[d])for(var T=0;T<=d;T++)ze[T]||(ze[T]={});ze[d].vx==E&&ze[d].vy==q&&ze[d].el===p||(ze[d].el=p,ze[d].vx=E,ze[d].vy=q,clearInterval(ze[d].pid),0==E&&0==q||(u=!0,ze[d].pid=setInterval(function(){n&&0===this.layer&&_e.active._onTouchMove($e);var e=ze[this.layer].vy?ze[this.layer].vy*r:0,i=ze[this.layer].vx?ze[this.layer].vx*r:0;"function"==typeof o&&"continue"!==o.call(_e.dragged.parentNode[Lt],i,e,t,$e,ze[this.layer].el)||kt(ze[this.layer].el,i,e)}.bind({layer:d}),24))),d++}while(e.bubbleScroll&&b!==c&&(b=xt(b,!1)));Pe=u}}),30),je=function(t){var e=t.originalEvent,i=t.putSortable,n=t.dragEl,o=t.activeSortable,s=t.dispatchSortableEvent,l=t.hideGhostForTarget,a=t.unhideGhostForTarget;if(e){var r=i||o;l();var c=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e,u=document.elementFromPoint(c.clientX,c.clientY);a(),r&&!r.el.contains(u)&&(s("spill"),this.onSpill({dragEl:n,putSortable:i}))}};function Fe(){}function Ue(){}Fe.prototype={startIndex:null,dragStart:function(t){var e=t.oldDraggableIndex;this.startIndex=e},onSpill:function(t){var e=t.dragEl,i=t.putSortable;this.sortable.captureAnimationState(),i&&i.captureAnimationState();var n=mt(this.sortable.el,this.startIndex,this.options);n?this.sortable.el.insertBefore(e,n):this.sortable.el.appendChild(e),this.sortable.animateAll(),i&&i.animateAll()},drop:je},G(Fe,{pluginName:"revertOnSpill"}),Ue.prototype={onSpill:function(t){var e=t.dragEl,i=t.putSortable||this.sortable;i.captureAnimationState(),e.parentNode&&e.parentNode.removeChild(e),i.animateAll()},drop:je},G(Ue,{pluginName:"removeOnSpill"}),_e.mount(new function(){function t(){for(var t in this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===t.charAt(0)&&"function"==typeof this[t]&&(this[t]=this[t].bind(this))}return t.prototype={dragStarted:function(t){var e=t.originalEvent;this.sortable.nativeDraggable?it(document,"dragover",this._handleAutoScroll):this.options.supportPointer?it(document,"pointermove",this._handleFallbackAutoScroll):e.touches?it(document,"touchmove",this._handleFallbackAutoScroll):it(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(t){var e=t.originalEvent;this.options.dragOverBubble||e.rootEl||this._handleAutoScroll(e)},drop:function(){this.sortable.nativeDraggable?nt(document,"dragover",this._handleAutoScroll):(nt(document,"pointermove",this._handleFallbackAutoScroll),nt(document,"touchmove",this._handleFallbackAutoScroll),nt(document,"mousemove",this._handleFallbackAutoScroll)),Ne(),De(),clearTimeout(at),at=void 0},nulling:function(){$e=Re=Me=Pe=Be=Ie=Oe=null,ze.length=0},_handleFallbackAutoScroll:function(t){this._handleAutoScroll(t,!0)},_handleAutoScroll:function(t,e){var i=this,n=(t.touches?t.touches[0]:t).clientX,o=(t.touches?t.touches[0]:t).clientY,s=document.elementFromPoint(n,o);if($e=t,e||this.options.forceAutoScrollFallback||K||V||Q){He(t,this.options,s,e);var l=xt(s,!0);!Pe||Be&&n===Ie&&o===Oe||(Be&&Ne(),Be=setInterval((function(){var s=xt(document.elementFromPoint(n,o),!0);s!==l&&(l=s,De()),He(t,i.options,s,e)}),10),Ie=n,Oe=o)}else{if(!this.options.bubbleScroll||xt(s,!0)===pt())return void De();He(t,this.options,xt(s,!1),!1)}}},G(t,{pluginName:"scroll",initializeByDefault:!0})}),_e.mount(Ue,Fe);class We{constructor(t){this.builder=t,this.dom=this.builder.dom}cellSelected(){return this.builder.doc.querySelector(".cell-active")}rowSelected(){return this.builder.doc.querySelector(".row-active")}builderStuff(){return document.querySelector("#_cbhtml")}cellNext(t){const e=this.dom;let i=t.nextElementSibling;return i?e.hasClass(i,"is-row-tool")||e.hasClass(i,"is-col-tool")||e.hasClass(i,"is-rowadd-tool")||e.hasClass(i,"is-row-overlay")?null:i:null}out(t){if(this.builder){let e=this.builder.opts.lang[t];return e||(this.builder.checkLang&&console.log(t),t)}return t}loadLightboxFromCdn(t){const e="https://cdnjs.cloudflare.com/ajax/libs/glightbox/3.2.0/js/glightbox.min.js";if(this.isJsOnContentIncluded(e))this.builder.doc.querySelector("#_skin")||this.builder.doc.body.insertAdjacentHTML("beforeend",`<style>${this.getLightboxCss()}</style>`),t&&t();else{const i=this.builder.doc.createElement("script");i.src=e,i.async=!0,i.onload=()=>{this.loadCssOnContent("https://cdnjs.cloudflare.com/ajax/libs/glightbox/3.2.0/css/glightbox.min.css"),this.builder.doc.body.insertAdjacentHTML("beforeend",`<style id="_skin">${this.getLightboxCss()}</style>`),t&&t()},this.builder.doc.body.appendChild(i)}}loadLightboxScript(t){const e=this.builder.assetPath+"scripts/glightbox/glightbox.min.js";if(this.isJsOnContentIncluded(e))t&&t();else{const i=this.builder.doc.createElement("script");i.src=e,i.async=!0,i.onload=()=>{this.builder.GLightbox?(this.loadCssOnContent(this.builder.assetPath+"scripts/glightbox/glightbox.min.css"),this.loadCssOnContent(this.builder.assetPath+"scripts/glightbox/skin.css"),t&&t()):this.loadLightboxFromCdn(t)},this.builder.doc.body.appendChild(i),i.onerror=()=>{this.loadLightboxFromCdn(t)}}}refreshLightbox(t,e){this.builder.glightbox&&this.builder.GLightbox?(this.builder.glightbox.destroy(),this.builder.glightbox=this.builder.GLightbox(t),e&&e()):this.loadLightboxScript((()=>{this.builder.GLightbox=this.builder.win.GLightbox,this.builder.glightbox=this.builder.win.GLightbox(t),e&&e()}))}openLightbox(t,e){const i=this.builder.openMediaElm;if(this.builder.glightbox){if(this.builder.doc.body.classList.contains("glightbox-open")){this.builder.glightbox.close();let i=this.builder.doc.querySelector(".goverlay");return i&&i.click(),void setTimeout((()=>{this.openLightbox(t,e)}),400)}let n=[],o=0;if(i){const e=i.closest("[data-gallery]");let s=[];if(e)s=e.querySelectorAll(".is-lightbox"),s.forEach(((e,i)=>{let s=e.getAttribute("href");n.push({href:s}),t===s&&(o=i)}));else{this.builder.doc.querySelectorAll(".is-lightbox,.block-click").forEach((t=>{t.closest("[data-gallery]")||t.classList.contains("lightbox-all")||s.push(t)})),s.forEach(((e,i)=>{let s=e.getAttribute("href");s||(s=e.getAttribute("data-modal-url")),n.push({href:s}),t===s&&(o=i)}))}}n.length>0?(this.builder.glightbox.setElements(n),this.builder.glightbox.openAt(o)):(this.builder.glightbox.setElements([{href:t}]),this.builder.glightbox.open()),this.builder.glightbox.on("close",(()=>{this.builder.glightbox.setElements([]),this.refreshLightbox(e)}))}this.builder.openMediaElm=null}isJsOnContentIncluded(t){const e=this.builder.doc.getElementsByTagName("script");for(let i=0;i<e.length;i++)if(e[i].getAttribute("src")===t)return!0;return!1}loadCssOnContent(t){const e=this.builder.doc.createElement("link");e.href=t,e.rel="stylesheet",this.builder.doc.head.appendChild(e)}showMessage(t,e,i){const n=this.dom;let o="";o=`<div class="is-modal modalmessage" tabindex="-1" role="dialog" aria-modal="true" aria-hidden="true">\n <div class="is-modal-content" style="padding-top: 15px;padding-bottom: 20px;max-width: 450px;">\n <div style="margin: 20px 0 30px;font-size: 17px;">${t}</div>\n <button title="${this.out("Ok")}" class="input-ok classic">${this.out("Ok")}</button>\n </div>\n </div>`;const s=this.builder.builderStuff;let l=s.querySelector(".modalmessage");l||(n.appendHtml(s,o),l=s.querySelector(".modalmessage")),this.showModal(l,!1,(()=>{l.parentNode.removeChild(l),i&&i()}));let a=l.querySelector(".modalmessage .input-ok");n.addEventListener(a,"click",(()=>{this.hideModal(l),l.parentNode&&l.parentNode.removeChild(l),i&&i()})),a.focus(),e&&a.classList.add("focus-outline")}showChoice(t,e,i){const n=this.dom;let o="";o=`<div class="is-modal modalmessage" tabindex="-1" role="dialog" aria-modal="true" aria-hidden="true">\n <div class="is-modal-content" style="padding-top: 15px;padding-bottom: 20px;max-width: 450px;">\n <div style="margin: 20px 0 30px;font-size: 17px;">${t}</div>\n\n <div style="display:flex;">\n <button title="${this.out("Cancel")}" class="input-cancel classic-secondary" style="width:100%;margin-right:4px;">${this.out("Cancel")}</button>\n <button title="${e}" class="input-ok classic-primary" style="width:100%">${e}</button>\n </div>\n </div>\n </div>`;const s=this.builder.builderStuff;let l=s.querySelector(".modalmessage");l||(n.appendHtml(s,o),l=s.querySelector(".modalmessage")),this.showModal(l,!1,(()=>{l.parentNode.removeChild(l),i(!1)}));let a=l.querySelector(".modalmessage .input-cancel");n.addEventListener(a,"click",(()=>{this.hideModal(l),l.parentNode.removeChild(l),i(!1)})),a.focus();let r=l.querySelector(".modalmessage .input-ok");n.addEventListener(r,"click",(()=>{this.hideModal(l),l.parentNode.removeChild(l),i(!0)}))}confirm(t,e,i,n,o,s="Cancel"){if(!this.builder.deleteConfirm&&!o)return void e(!0);const l=this.dom;let a="";a=`<div class="is-modal is-confirm" tabindex="-1" role="dialog" aria-modal="true" aria-hidden="true">\n <div class="is-modal-content" style="padding-bottom:20px;">\n <div style="margin: 20px 0 30px;font-size: 14px;">${t}</div>\n <button title="${this.out("Delete")}" class="input-ok classic focus-warning">${this.out("Delete")}</button>\n </div>\n </div>`,i&&(a=`<div class="is-modal is-confirm" tabindex="-1" role="dialog" aria-modal="true" aria-hidden="true">\n <div class="is-modal-content" style="padding-bottom:20px;">\n <div style="margin: 20px 0 30px;font-size: 14px;">${t}</div>\n <button title="${this.out(s)}" class="input-cancel classic-secondary">${this.out(s)}</button>\n <button title="${this.out(n)}" class="input-ok classic-primary">${this.out(n)}</button>\n </div>\n </div>`);const r=this.builder.builderStuff;let c=r.querySelector(".is-confirm");c||(l.appendHtml(r,a),c=r.querySelector(".is-confirm")),this.showModal(c,!1,(t=>{c.parentNode.removeChild(c),e(!1,t)}),!0);let u=c.querySelector(".is-confirm .input-ok");l.addEventListener(u,"click",(()=>{this.hideModal(c),c.parentNode.removeChild(c),e(!0)}));let d=c.querySelector(".is-confirm .input-cancel");l.addEventListener(d,"click",(t=>{this.hideModal(c),c.parentNode.removeChild(c),e(!1),t.preventDefault(),t.stopImmediatePropagation()})),u&&u.focus()}showRtePop(t,e,i){const n=this.dom;t.style.display="flex",t.setAttribute("aria-hidden","false"),e&&e(),n.removeClass(t,"deactive"),n.addClass(t,"active");const o=e=>{t.contains(e.target)||i.contains(e.target)||e.target.closest(".pickcolormore")||(this.hideRtePop(t),t.removeEventListener("keydown",s),document.removeEventListener("mousedown",o),document.removeEventListener("touchstart",o),this.builder.iframeDocument&&(this.builder.doc.removeEventListener("mousedown",o),this.builder.doc.removeEventListener("touchstart",o)))},s=e=>{27===e.keyCode&&(this.hideRtePop(t),t.removeEventListener("keydown",s),document.removeEventListener("mousedown",o),document.removeEventListener("touchstart",o),this.builder.iframeDocument&&(this.builder.doc.removeEventListener("mousedown",o),this.builder.doc.removeEventListener("touchstart",o)))};t.addEventListener("keydown",s),document.addEventListener("mousedown",o),document.addEventListener("touchstart",o,{passive:!1}),this.builder.iframeDocument&&(this.builder.doc.addEventListener("mousedown",o),this.builder.doc.addEventListener("touchstart",o,{passive:!1}))}hideRtePop(t){const e=this.dom;t.style.display="",e.removeClass(t,"active"),e.addClass(t,"deactive"),t.setAttribute("aria-hidden","true")}showPopOverlay(t,e,i){const n=this.builder.builderStuff;let o=n.querySelectorAll(".is-pop-overlay");const s=this.makeId(),l=`<div class="is-pop-overlay ${s}" style="display:flex;z-index:10004"></div>`;n.insertAdjacentHTML("beforeend",l);const a=n.querySelector(`.is-pop-overlay.${s}`);0===o.length&&(t.classList.add("pop1"),a.classList.add("pop1")),1===o.length&&(t.classList.add("pop2"),a.classList.add("pop2")),2===o.length&&(t.classList.add("pop3"),a.classList.add("pop3")),4===o.length&&(t.classList.add("pop4"),a.classList.add("pop4"));const r=()=>{a.remove(),t.style.display="",t.classList.remove("active"),t.setAttribute("aria-hidden",!0),a.classList.remove("pop1"),a.classList.remove("pop2"),a.classList.remove("pop3"),a.classList.remove("pop4"),t.classList.remove("pop1"),t.classList.remove("pop2"),t.classList.remove("pop3"),t.classList.remove("pop4"),t.removeEventListener("keydown",c),e&&e(),i&&i.focus()};this.hidePopOverlay=r;const c=t=>{27===t.keyCode&&r()};a.addEventListener("click",(t=>{r(),t.preventDefault(),t.stopImmediatePropagation()})),t.style.display="flex",t.classList.add("active"),t.setAttribute("aria-hidden",!1),this.setupTabKeys(t),t.focus({preventScroll:!0}),t.addEventListener("keydown",c)}showPop(t,e,i,n){const o=this.dom;document.querySelectorAll(".is-pop.active").forEach((e=>{let n=!0;e.contains(i)&&(n=!1),e!==t&&n&&(e.style.display="",o.removeClass(e,"active"),e.setAttribute("aria-hidden",!0))})),n?this.showPopOverlay(t,e,i):(this.clearAllEventListener(t),t.style.display="flex",o.addClass(t,"active"),t.setAttribute("aria-hidden",!1),this.setupTabKeys(t),t.focus({preventScroll:!0}),this.handlePopClickOut=n=>{t.contains(n.target)||i.contains(n.target)||(this.hidePop(t),e&&e(),i&&i.focus())},this.handlePopKeyDown=n=>{27===n.keyCode&&(this.hidePop(t),e&&e(),i&&i.focus())},t.addEventListener("keydown",this.handlePopKeyDown),document.addEventListener("mousedown",this.handlePopClickOut),document.addEventListener("touchstart",this.handlePopClickOut,{passive:!1}),this.builder.iframeDocument&&(this.builder.doc.addEventListener("mousedown",this.handlePopClickOut),this.builder.doc.addEventListener("touchstart",this.handlePopClickOut,{passive:!1})))}hidePop(t){const e=this.dom;t.style.display="",e.removeClass(t,"active"),this.builder.doc.body.focus(),setTimeout((()=>{t.setAttribute("aria-hidden",!0)}),0),this.clearAllEventListener(t)}clearAllEventListener(t){for(let e=0;e<10;e++)t.removeEventListener("keydown",this.handlePopKeyDown),document.removeEventListener("mousedown",this.handlePopClickOut),document.removeEventListener("touchstart",this.handlePopClickOut,{passive:!1}),this.builder.iframeDocument&&(this.builder.doc.removeEventListener("mousedown",this.handlePopClickOut),this.builder.doc.removeEventListener("touchstart",this.handlePopClickOut,{passive:!1}))}setupTabKeys(t){let e=t.querySelectorAll('a[href], input:not([disabled]):not([type="hidden"]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]):not([tabindex="-1"]), iframe, object, embed, *[tabindex]:not([tabindex="-1"])');if(0===e.length)return;let i=e[0],n=e[e.length-1];n.addEventListener("keydown",(n=>{9!==n.which||n.shiftKey||(n.preventDefault(),e=t.querySelectorAll('a[href], input:not([disabled]):not([type="hidden"]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]):not([tabindex="-1"]), iframe, object, embed, *[tabindex]:not([tabindex="-1"])'),i=e[0],i.focus())})),i.addEventListener("keydown",(t=>{9===t.which&&t.shiftKey&&(t.preventDefault(),n.focus())}));t.querySelectorAll("iframe").forEach((t=>{t.addEventListener("focus",(()=>{const e=t.contentWindow.document.querySelectorAll('a[href], input:not([disabled]):not([type="hidden"]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]):not([tabindex="-1"]), iframe, object, embed, *[tabindex]:not([tabindex="-1"])');if(0===e.length)return;let i=e[0];i&&i.focus()}))}))}showModal(t,e,i,n,o){const s=this.dom;s.addClass(t,"active"),t.setAttribute("aria-hidden",!1),o&&(document.body.style.overflow="hidden");const l=e=>{if(27===e.keyCode){o&&(document.body.style.overflow=""),s.hasClass(t,"active")&&this.hideModal(t),t.removeEventListener("keydown",l);const n=t.querySelector(".is-modal-close");n&&n.removeEventListener("click",c),i&&i(e)}};t.addEventListener("keydown",l);let a=t.querySelector(".is-tab-content.active");a?(a.focus(),this.builder.tabs.setupTabKey(a)):(this.setupTabKeys(t),t.focus());const r=t.querySelector(".is-modal-overlay");if(r&&r.parentNode.removeChild(r),!t.querySelector(".is-modal-overlay")){let n;if(n=e?'<div class="is-modal-overlay overlay-stay"></div>':'<div class="is-modal-overlay"></div>',t.insertAdjacentHTML("afterbegin",n),!e){let e=t.querySelector(".is-modal-overlay");s.addEventListener(e,"click",(()=>{o&&(document.body.style.overflow=""),this.hideModal(t),t.removeEventListener("keydown",l);const e=t.querySelector(".is-modal-close");e&&e.removeEventListener("click",c),i&&i()}))}}const c=()=>{o&&(document.body.style.overflow=""),s.hasClass(t,"active")&&this.hideModal(t),t.removeEventListener("keydown",l);const e=t.querySelector(".is-modal-close");e&&e.removeEventListener("click",c),i&&i()},u=t.querySelector(".is-modal-close");u&&s.addEventListener(u,"click",c)}_hideModal(t){let e=t.querySelector(".is-modal-overlay");e?e.classList.contains("overlay-stay")?(this.hideModal(t),t.dispatchEvent(new KeyboardEvent("keydown",{key:"e",keyCode:27,code:"KeyE",which:27,shiftKey:!1,ctrlKey:!1,metaKey:!1}))):e.click():(this.hideModal(t),t.dispatchEvent(new KeyboardEvent("keydown",{key:"e",keyCode:27,code:"KeyE",which:27,shiftKey:!1,ctrlKey:!1,metaKey:!1})))}hideModal(t){if(!t)return;if(this.builder.doc.activeElement.blur(),document.activeElement.blur(),t.setAttribute("aria-hidden",!0),this.builder){const t=this.builder.doc.querySelectorAll(this.builder.opts.container);Array.prototype.forEach.call(t,(t=>{t.getAttribute("scaled-down")&&(t.style.transform=`scale(${this.builder.opts.zoom})`,t.style.WebkitTransform=`scale(${this.builder.opts.zoom})`,t.style.MozTransform=`scale(${this.builder.opts.zoom})`,t.removeAttribute("scaled-down"))}))}this.dom.removeClass(t,"active"),t.style.display=""}refreshModuleLayout(t){let e;t.style.height?e=t.style.height:t.style.height=`${t.offsetHeight}px`,t.style.opacity=0;let i=decodeURIComponent(t.getAttribute("data-html"));i=i.replace(/{id}/g,this.builder.util.makeId()),t.innerHTML="";let n=document.createRange();n.setStart(t,0),t.appendChild(n.createContextualFragment(i));let o=t.querySelectorAll("[data-subblock]");var s=1;Array.prototype.forEach.call(o,(e=>{t.getAttribute("data-html-"+s)&&(e.innerHTML=decodeURIComponent(t.getAttribute("data-html-"+s)),e.contentEditable=!0),s++})),setTimeout((()=>{t.style.height=e||"",t.style.opacity=""}),100)}removeColClasses(t){t.classList.remove("full"),t.classList.remove("two-third"),t.classList.remove("two-fourth"),t.classList.remove("two-fifth"),t.classList.remove("two-sixth"),t.classList.remove("half"),t.classList.remove("third"),t.classList.remove("fourth"),t.classList.remove("fifth"),t.classList.remove("sixth"),t.classList.remove("seventh"),t.classList.remove("eighth"),t.classList.remove("ninth"),t.classList.remove("tenth"),t.classList.remove("eleventh"),t.classList.remove("twelfth")}getAllColumns(t){let e=[];const i=this.dom;return i.elementChildren(t).forEach((t=>{i.hasClass(t,"is-row-tool")||i.hasClass(t,"is-col-tool")||i.hasClass(t,"is-rowadd-tool")||i.hasClass(t,"is-row-overlay")||e.push(t)})),e}fixLayout(t){const e=this.dom;let i=!1,n=!1;if(Array.from(t.children).map((t=>{t.classList.contains("is-row-tool")||t.classList.contains("is-col-tool")||t.classList.contains("is-rowadd-tool")||(t.style.width="",t.style.flex="",t.classList.contains("sm-hidden")&&(i=!0),t.classList.contains("md-hidden")&&(n=!0))})),i?t.classList.add("sm-autofit"):t.classList.remove("sm-autofit"),n?t.classList.add("md-autofit"):t.classList.remove("md-autofit"),this.builder.useDefaultGrid){return e.elementChildren(t).forEach((t=>{e.hasClass(t,"is-row-tool")||e.hasClass(t,"is-col-tool")||e.hasClass(t,"is-rowadd-tool")||e.hasClass(t,"is-row-overlay")||this.removeColClasses(t)})),void Array.from(t.children).map((t=>{t.classList.contains("is-row-tool")||t.classList.contains("is-rowadd-tool")||t.classList.contains("is-col-tool")||t.getAttribute("data-module")&&this.refreshModuleLayout(t)}))}let o=3;t.querySelector(".is-row-overlay")&&(o=4);const s=t.childElementCount-o,l=this.builder.opts.row;let a=this.builder.opts.cols;const r=this.builder.opts.colequal;if(r.length>0){return e.elementChildren(t).forEach((t=>{if(!(e.hasClass(t,"is-row-tool")||e.hasClass(t,"is-col-tool")||e.hasClass(t,"is-rowadd-tool")||e.hasClass(t,"is-row-overlay"))){for(let i=0;i<=a.length-1;i++)e.removeClass(t,a[i]);for(let i=0;i<=r.length-1;i++)if(r[i].length===s){e.addClass(t,r[i][0]);break}1===s&&e.addClass(t,a[a.length-1])}})),void Array.from(t.children).map((t=>{t.classList.contains("is-row-tool")||t.classList.contains("is-rowadd-tool")||t.classList.contains("is-col-tool")||t.getAttribute("data-module")&&this.refreshModuleLayout(t)}))}if(""!==l&&a.length>0){let i=0;e.elementChildren(t).forEach((t=>{if(!(e.hasClass(t,"is-row-tool")||e.hasClass(t,"is-col-tool")||e.hasClass(t,"is-rowadd-tool")||e.hasClass(t,"is-row-overlay"))){-1!==t.className.indexOf("col-md-")||(-1!==t.className.indexOf("col-sm-")?a=["col-sm-1","col-sm-2","col-sm-3","col-sm-4","col-sm-5","col-sm-6","col-sm-7","col-sm-8","col-sm-9","col-sm-10","col-sm-11","col-sm-12"]:-1!==t.className.indexOf("col-xs-")?a=["col-xs-1","col-xs-2","col-xs-3","col-xs-4","col-xs-5","col-xs-6","col-xs-7","col-xs-8","col-xs-9","col-xs-10","col-xs-11","col-xs-12"]:-1!==t.className.indexOf("col-lg-")?a=["col-lg-1","col-lg-2","col-lg-3","col-lg-4","col-lg-5","col-lg-6","col-lg-7","col-lg-8","col-lg-9","col-lg-10","col-lg-11","col-lg-12"]:-1!==t.className.indexOf("col-xl-")?a=["col-xl-1","col-xl-2","col-xl-3","col-xl-4","col-xl-5","col-xl-6","col-xl-7","col-xl-8","col-xl-9","col-xl-10","col-xl-11","col-xl-12"]:-1!==t.className.indexOf("col-xxl-")&&(a=["col-xxl-1","col-xxl-2","col-xxl-3","col-xxl-4","col-xxl-5","col-xxl-6","col-xxl-7","col-xxl-8","col-xxl-9","col-xxl-10","col-xxl-11","col-xxl-12"])),i++;for(var n=0;n<=a.length-1;n++)e.removeClass(t,a[n]);1===s&&e.addClass(t,a[11]),2===s&&e.addClass(t,a[5]),3===s&&e.addClass(t,a[3]),4===s&&e.addClass(t,a[2]),5===s&&(5===i?e.addClass(t,a[3]):e.addClass(t,a[1])),6===s&&e.addClass(t,a[1]),7===s&&(i>=6?e.addClass(t,a[0]):e.addClass(t,a[1])),8===s&&(i>=5?e.addClass(t,a[0]):e.addClass(t,a[1])),9===s&&(i>=4?e.addClass(t,a[0]):e.addClass(t,a[1])),10===s&&(i>=3?e.addClass(t,a[0]):e.addClass(t,a[1])),11===s&&(i>=2?e.addClass(t,a[0]):e.addClass(t,a[1])),12===s&&e.addClass(t,a[0])}}))}Array.from(t.children).map((t=>{t.classList.contains("is-row-tool")||t.classList.contains("is-rowadd-tool")||t.classList.contains("is-col-tool")||t.getAttribute("data-module")&&this.refreshModuleLayout(t)}))}addContent(t,e,i){const n=this.dom;this.builder.opts.onAdd&&(t=this.builder.opts.onAdd(t));const o=this.cellSelected();let s;if(o)s=o.parentNode;else{let t=this.builder.activeElement;t&&t.closest(".is-block")||(s=this.builder.doc.querySelector(".row-active"),s&&(e="row"))}if("cell"===e||"cell-left"===e||"cell-right"===e){let l=4;this.builder.maxColumns&&(l=this.builder.maxColumns);let a,r,c=3;if(s.querySelector(".is-row-overlay")&&(c=4),s.childElementCount>=l+c)return alert(this.out("You have reached the maximum number of columns")),!1;if(this.builder.uo.saveForUndo(),""===this.builder.opts.row){let e=this.builder.opts.cellFormat,i=e.indexOf("</");t=e.substring(0,i)+t+e.substring(i),a=this.createElementFromHTML(t)}else{a=o.cloneNode(!0),a.removeAttribute("data-noedit"),a.removeAttribute("data-protected"),a.removeAttribute("data-module"),a.removeAttribute("data-module-desc"),a.removeAttribute("data-dialog-width"),a.removeAttribute("data-html"),a.removeAttribute("data-settings");for(let t=1;t<=20;t++)a.removeAttribute("data-html-"+t);a.removeAttribute("data-noedit"),n.removeClass(a,"cell-active"),n.removeClass(a,"is-light-text"),n.removeClass(a,"is-dark-text"),n.removeClass(a,"padding-0"),n.removeClass(a,"p-0"),a.removeAttribute("data-click"),a.removeAttribute("style"),i&&a.setAttribute(i,""),a.innerHTML=t}if(s.insertBefore(a,o),"cell"!==e&&"cell-right"!==e||n.moveAfter(a,o),a.children&&a.children[0]){const t=["H1","H2","H3","H4","P","PRE","LI","TD"];for(let e=0;e<t.length;e++){const i=a.querySelector(t[e]);if(i){r=i;break}}r||(r=a.children[0])}let u=this.builder.doc.querySelector(".builder-active");u&&this.builder.applyBehaviorOn(u),this.fixLayout(s);try{if(r&&r.tagName&&"img"===r.tagName.toLowerCase())r.onload=()=>{r.click(),r.onload=null,setTimeout((()=>{this.builder.element.image.repositionImageTool()}),100)};else if(r){r.focus();const t=this.builder.doc.createRange(),e=this.builder.win.getSelection();t.selectNodeContents(r),t.collapse(!1),e.removeAllRanges(),e.addRange(t),r.click()}}catch(t){}}if("row"===e){let e,o,l;if(this.builder.uo.saveForUndo(),""===this.builder.opts.row){e=this.htmlToElement(this.builder.opts.rowFormat);let s=this.builder.opts.cellFormat,l=s.indexOf("</");t=s.substring(0,l)+t+s.substring(l);let a=n.elementChildren(e);for(;a.length>0&&(a=a[0],n.elementChildren(a).length>0);)a=n.elementChildren(a);a.innerHTML=t,o=a.firstChild,i&&o.setAttribute(i,"")}else o=n.createElement("div"),n.addClass(o,this.builder.opts.cols[this.builder.opts.cols.length-1]),o.innerHTML=t,i&&o.setAttribute(i,""),e=n.createElement("div"),n.addClass(e,this.builder.opts.row),n.appendChild(e,o);if(s.parentNode.insertBefore(e,s),n.moveAfter(e,s),e.children&&e.children[0]&&e.children[0].children&&e.children[0].children[0]){const t=e.children[0],i=["H1","H2","H3","H4","P","PRE","LI","TD"];for(let e=0;e<i.length;e++){const n=t.querySelector(i[e]);if(n){l=n;break}}l||(l=t.children[0])}let a=this.builder.doc.querySelector(".builder-active");a&&this.builder.applyBehaviorOn(a);try{if(l&&l.tagName&&"img"===l.tagName.toLowerCase())l.onload=()=>{l.click(),l.onload=null,setTimeout((()=>{this.builder.element.image.repositionImageTool()}),100)};else if(l){l.focus();const t=this.builder.doc.createRange(),e=this.builder.win.getSelection();t.selectNodeContents(l),t.collapse(!1),e.removeAllRanges(),e.addRange(t),l.click()}}catch(t){}}let l=!1,a=this.builder.activeElement;const r=a.closest("[data-cb-type]"),c=a.closest(".is-subblock");if(r&&c&&(l=!0),"elm"===e){let e=this.builder.activeElement;if(!e)return;this.builder.uo.saveForUndo();let i,o=e;if(o.closest("[data-cb-type]"))o.insertAdjacentHTML("afterend",t),i=o.nextElementSibling;else if(!o.nextElementSibling&&o.closest(".display")){let e,s=this.builder.activeCol;n.elementChildren(s).forEach((t=>{t.contains(o)&&(e=t)})),e&&(e.insertAdjacentHTML("afterend",t),i=e.nextElementSibling)}else o.insertAdjacentHTML("afterend",t),i=o.nextElementSibling;let s=o.closest(".is-container");if(s&&this.builder.applyBehaviorOn(s),"img"===i.tagName.toLowerCase()){let t=setInterval((()=>{i.complete&&(i.click(),setTimeout((()=>{this.builder.element.image.repositionImageTool()}),100),clearInterval(t))}),30)}else{let t;if(-1!==["H1","H2","H3","H4","P","PRE","LI","TD"].indexOf(i.tagName)?t=i:(t=i.querySelector("h1, h2, h3, h4, p, pre, li, td"),!t&&i.children&&i.children[0]&&(t=i.children[0])),t){const e=this.builder.doc.createRange(),i=this.builder.win.getSelection();e.selectNodeContents(t),e.collapse(!1),i.removeAllRanges(),i.addRange(e),t.click()}else i.click()}}let u=this.builder.builderStuff.querySelector(".quickadd");if(u&&this.hidePop(u),this.builder.useCssClasses){let t=this.builder.doc.querySelector(".builder-active");t&&n.contentReformat(t,this.builder.cssClasses)}this.builder.opts.onChange(),this.builder.opts.onRender(),this.builder.win.builderRuntime&&!l&&this.builder.win.builderRuntime.reinitialize(),setTimeout((()=>{this.builder.makeSortable(this.builder.doc)}),400)}htmlToElement(t){var e=document.createElement("template");return t=t.trim(),e.innerHTML=t,e.content.firstChild}autoSelect(t){let e;if(t.children&&t.children[0]&&t.children[0].children&&t.children[0].children[0]){const i=t.children[0];if(i.hasAttribute("data-html"))setTimeout((()=>{i.click()}),100);else if(i.children[0].hasAttribute("data-cb-type"))setTimeout((()=>{i.click()}),10);else{const n=["H1","H2","H3","H4","P","PRE","LI","TD"];for(let i=0;i<n.length;i++){const o=t.querySelector(n[i]);if(o){e=o;break}}e||(e=i.children[0]);try{if(e&&e.tagName&&"img"===e.tagName.toLowerCase())e.onload=()=>{e.click(),e.onload=null,setTimeout((()=>{this.builder.element.image.repositionImageTool()}),100)};else if(e){e.focus();const t=this.builder.doc.createRange(),i=this.builder.win.getSelection();t.selectNodeContents(e),t.collapse(!1),i.removeAllRanges(),i.addRange(t),setTimeout((()=>{e.click()}),100)}}catch(t){}}}}addSnippet(t,e,i){this.builder.uo.saveForUndo();const n=this.dom;let o,s,l,a=!1;let r,c=this.builder.builderStuff.querySelector(".quickadd");if(r=c?c.getAttribute("data-mode"):"row",!e||"cell"!==r&&"cell-left"!==r&&"cell-right"!==r){if(e&&"row"===r){let e;if(l=document.createElement("div"),l.className=this.builder.opts.cols[this.builder.opts.cols.length-1],l.innerHTML=t,i&&l.setAttribute("data-noedit",""),o=document.createElement("div"),o.className=this.builder.opts.row,o.appendChild(l),s=this.builder.cellSelected(),s?e=s.parentNode:(e=this.builder.doc.querySelector(".row-active"),e||(a=!0)),a){const t=this.builder.doc.querySelectorAll(".is-builder"),i=t[t.length-1],o=n.elementChildren(i);e=o[o.length-1]}e.parentNode.insertBefore(o,e),n.moveAfter(o,e);let r=this.builder.doc.querySelector(".builder-active");r||(r=this.builder.doc.querySelector(".is-builder")),this.builder.applyBehaviorOn(r),this.autoSelect(o),this.builder.util.hideColumnTool(),setTimeout((()=>{this.builder.makeSortable(this.builder.doc)}),400)}else{if(e)return void(i?this.addContent(t,r,"data-noedit"):this.addContent(t,r));{var u=document.createElement("div");u.innerHTML=t;var d=u.querySelectorAll("[data-html]");if(Array.prototype.forEach.call(d,(e=>{t=(t=(t=decodeURIComponent(e.getAttribute("data-html"))).replace(/{id}/g,this.makeId())).replace(/<script>/g,""+(this.builder.nonce?`<script nonce="${this.builder.nonce}">`:"<script>"));for(var i=1;i<=20;i++)t=t.replace("[%HTML"+i+"%]",void 0===e.getAttribute("data-html-"+i)?"":decodeURIComponent(e.getAttribute("data-html-"+i)));e.innerHTML=t,e.classList.add("dummy-module")})),1===u.childNodes.length&&1===u.childNodes[0].childNodes.length&&("cell"===r||"cell-left"===r||"cell-right"===r)){const t=this.cellSelected();let e=t.parentNode,i=4;if(this.builder.maxColumns&&(i=this.builder.maxColumns),e.querySelector(".is-row-overlay")){if(e.childElementCount>=i+4)return alert(this.out("You have reached the maximum number of columns")),!1}else if(e.childElementCount>=i+3)return alert(this.out("You have reached the maximum number of columns")),!1;this.builder.uo.saveForUndo();let n=u.childNodes[0].childNodes[0];var b=document.createRange();t.parentNode.insertBefore(b.createContextualFragment(n.outerHTML),t),"cell"!==r&&"cell-right"!==r||(t.parentNode.insertBefore(t.previousElementSibling,t),t.parentNode.insertBefore(t,t.previousElementSibling));let o=this.builder.doc.querySelector(".builder-active");return o||(o=this.builder.doc.querySelector(".is-builder")),this.builder.applyBehaviorOn(o),this.fixLayout(e),"cell"===r||"cell-right"===r?t.nextElementSibling.click():t.previousElementSibling.click(),this.builder.opts.onChange(),void this.builder.opts.onRender()}let e;if(s=this.builder.activeCol,s?e=s.parentNode:(e=this.builder.doc.querySelector(".row-active"),e||(a=!0)),a){const t=this.builder.doc.querySelectorAll(".is-builder"),i=t[t.length-1],o=n.elementChildren(i);e=o[o.length-1]}b=document.createRange(),e.parentNode.insertBefore(b.createContextualFragment(u.innerHTML),e.nextSibling),o=u.childNodes[0],o=e.nextElementSibling;let i=this.builder.doc.querySelector(".builder-active");i||(i=this.builder.doc.querySelector(".is-builder")),this.builder.applyBehaviorOn(i),this.autoSelect(o);let l=this.builder.builderStuff.querySelector(".quickadd");l&&this.hidePop(l);this.builder.doc.querySelectorAll(".dummy-module").forEach((t=>{t.querySelectorAll(".grid-sortable").forEach((t=>{new _e(t,{animation:600,dragClass:"hide-drag-class",onStart:()=>{this.builder.uo.saveForUndo(!0)},onSort:()=>{if(t.closest("[data-html]")){const e=t.closest("[data-html]"),i=encodeURIComponent(e.innerHTML);e.setAttribute("data-html",i),this.builder.opts.onChange()}}})}))})),this.builder.doc.querySelectorAll(".dummy-module").forEach((t=>{t.classList.remove("dummy-module")})),setTimeout((()=>{this.builder.makeSortable(this.builder.doc)}),400),o.className=o.className.replace("row-outline",""),this.builder.util.hideColumnTool()}}if(this.builder.useCssClasses){let t=this.builder.doc.querySelector(".builder-active");t&&n.contentReformat(t,this.builder.cssClasses)}this.builder.opts.onChange(),this.builder.opts.onRender(),this.builder.win.builderRuntime&&this.builder.win.builderRuntime.reinitialize()}else i?this.addContent(t,r,"data-noedit"):this.addContent(t,r)}clearActiveCell(){if(!this.builder.builderStuff)return;let t=this.builder.doc.getElementsByClassName("cell-active");for(;t.length;)t[0].classList.remove("cell-active");for(t=this.builder.doc.getElementsByClassName("row-outline");t.length;)t[0].classList.remove("row-outline");for(t=this.builder.doc.getElementsByClassName("row-active");t.length;)t[0].classList.remove("row-active");for(t=this.builder.doc.getElementsByClassName("builder-active");t.length;)t[0].classList.remove("builder-active");this.builder.activeCol=null,this.builder.dom.removeClass(this.builder.doc.body,"content-edit")}clearAfterUndoRedo(){const t=this.dom,e=this.builder.builderStuff;let i=e.querySelectorAll(".is-tool");Array.prototype.forEach.call(i,(e=>{e.style.display="",t.removeClass(e,"active")})),this.builder.iframe&&(i=this.builder.contentStuff.querySelectorAll(".is-tool"),Array.prototype.forEach.call(i,(e=>{e.style.display="",t.removeClass(e,"active")}))),this.builder.moveable&&this.builder.moveable.updateRect();const n=document.querySelector(".moveable-control-box");if(n&&(n.style.display="none"),this.builder.activeSpacer=null,this.builder.activeCodeBlock=null,this.builder.activeLink=null,this.builder.activeLinkButton=null,this.builder.activeButton=null,this.builder.activeIframe=null,this.builder.activeTd=null,this.builder.activeTable=null,this.builder.activeModule=null,this.builder.doc.querySelectorAll(".icon-active").forEach((t=>t.classList.remove("icon-active"))),this.builder.activeIcon=null,!this.builder.controlPanel){let i=e.querySelector(".is-rte-tool").querySelectorAll("button");Array.prototype.forEach.call(i,(e=>{t.removeClass(e,"on")})),i=e.querySelector(".is-elementrte-tool").querySelectorAll("button"),Array.prototype.forEach.call(i,(e=>{t.removeClass(e,"on")}))}let o=e.querySelectorAll(".is-pop");Array.prototype.forEach.call(o,(t=>{t.style.display=""}))}hidePops(){const t=this.dom,e=this.builder.builderStuff;let i=e.querySelectorAll(".is-tool");Array.prototype.forEach.call(i,(e=>{e.style.display="",t.removeClass(e,"active")}));let n=e.querySelectorAll(".is-pop.active");Array.prototype.forEach.call(n,(e=>{e.style.transition="all 200ms ease",setTimeout((()=>{e.style.opacity="0"}),10),setTimeout((()=>{e.style.display="",t.removeClass(e,"active"),e.style.opacity="",e.style.transition=""}),200)}));const o=document.querySelector(".moveable-control-box"),s=document.querySelector("#divImageResizer");o&&s&&!s.getAttribute("data-resizing")&&(o.style.display="none")}hideControls(){const t=this.dom;let e=this.builder.builderStuff.querySelectorAll(".is-tool");Array.prototype.forEach.call(e,(e=>{e.style.display="",t.removeClass(e,"active")})),this.builder.iframe&&(e=this.builder.contentStuff.querySelectorAll(".is-tool"),Array.prototype.forEach.call(e,(e=>{e.style.display="",t.removeClass(e,"active")}))),this.builder.moveable&&this.builder.moveable.updateRect();const i=document.querySelector(".moveable-control-box");i&&(i.style.display="none")}clearActiveElement(t){const e=this.dom,i=this.builder.builderStuff;this.builder.doc.querySelectorAll(".icon-active").forEach((t=>t.classList.remove("icon-active"))),this.builder.activeIcon=null;let n=this.builder.doc.querySelectorAll(".elm-inspected");Array.prototype.forEach.call(n,(t=>{e.removeClass(t,"elm-inspected")})),this.builder.inspectedElement=null,n=this.builder.doc.querySelectorAll(".elm-active"),Array.prototype.forEach.call(n,(t=>{e.removeClass(t,"elm-active")})),this.builder.activeElement=null,this.builder.doc.querySelector(".is-element-tool").style.display="";let o=this.builder.doc.querySelector("#divLinkTool");if(o&&(o.style.display=""),t&&!this.builder.controlPanel){let t=i.querySelector(".is-rte-tool");t&&(t.style.display="none");let e=i.querySelector(".is-elementrte-tool");e&&(e.style.display="flex");let n=i.querySelector(".rte-more-options");n&&(n.style.display="");let o=i.querySelector(".elementrte-more-options");o&&(o.style.display="");let s=e.querySelectorAll("button[data-align]");Array.prototype.forEach.call(s,(t=>{t.style.display="none"})),this.builder.rte.positionToolbar()}}clearPops(){const t=this.dom,e=this.builder.builderStuff;if(!e)return;let i=e.querySelectorAll(".is-tool");Array.prototype.forEach.call(i,(e=>{e.style.display="",t.removeClass(e,"active")})),this.builder.iframe&&(i=this.builder.contentStuff.querySelectorAll(".is-tool"),Array.prototype.forEach.call(i,(e=>{e.style.display="",t.removeClass(e,"active")}))),this.builder.moveable&&this.builder.moveable.updateRect();const n=document.querySelector(".moveable-control-box");n&&(n.style.display="none");let o=this.builder.doc.querySelectorAll(".ovl");Array.prototype.forEach.call(o,(t=>{t.style.display="block"}));let s=e.querySelectorAll(".is-pop");Array.prototype.forEach.call(s,(e=>{e.style.display="",t.removeClass(e,"active"),e.setAttribute("aria-hidden",!0)})),this.builder.colTool.lockIndicator.style.display="",this.builder.resize&&this.builder.resize.destroy()}clearModals(){let t=this.builder.builderStuff.querySelector(".pluginsettings.active");this.hideModal(t)}clearControls(){const t=this.dom,e=this.builder.builderStuff;if(!e)return;let i=e.querySelectorAll(".is-tool");Array.prototype.forEach.call(i,(e=>{e.style.display="",t.removeClass(e,"active")})),this.builder.iframe&&(i=this.builder.contentStuff.querySelectorAll(".is-tool"),Array.prototype.forEach.call(i,(e=>{e.style.display="",t.removeClass(e,"active")}))),this.builder.moveable&&this.builder.moveable.updateRect();const n=document.querySelector(".moveable-control-box");n&&(n.style.display="none"),this.builder.activeSpacer=null,this.builder.activeCodeBlock=null,this.builder.activeLink=null,this.builder.activeLinkButton=null,this.builder.activeButton=null,this.builder.activeIframe=null,this.builder.activeTd=null,this.builder.activeTable=null,this.builder.activeModule=null,this.builder.activeImage=null,this.builder.doc.querySelectorAll(".icon-active").forEach((t=>t.classList.remove("icon-active"))),this.builder.activeIcon=null;let o=this.builder.doc.querySelectorAll(".ovl");Array.prototype.forEach.call(o,(t=>{t.style.display="block"}));var s=e.querySelectorAll(".is-side.elementstyles");Array.prototype.forEach.call(s,(e=>{t.removeClass(e,"active")}));let l=this.builder.doc.querySelectorAll("[data-saveforundo]");if(Array.prototype.forEach.call(l,(t=>{t.removeAttribute("data-saveforundo")})),l=this.builder.doc.querySelectorAll(".elm-inspected"),Array.prototype.forEach.call(l,(e=>{t.removeClass(e,"elm-inspected")})),!this.builder.controlPanel&&"auto"===this.builder.toolbarDisplay){let t=e.querySelector(".is-rte-tool");t&&(t.style.display="none");let i=e.querySelector(".is-elementrte-tool");i&&(i.style.display="none");let n=e.querySelector(".rte-more-options");n&&(n.style.display="");let o=e.querySelector(".elementrte-more-options");o&&(o.style.display="")}if(l=this.builder.doc.querySelectorAll(".elm-active"),Array.prototype.forEach.call(l,(e=>{t.removeClass(e,"elm-active")})),!this.builder.controlPanel){let i=e.querySelectorAll(".is-rte-pop");Array.prototype.forEach.call(i,(e=>{e.style.display="",t.removeClass(e,"active"),t.removeClass(e,"deactive")}))}let a=e.querySelectorAll(".is-pop");Array.prototype.forEach.call(a,(e=>{e.style.display="",t.removeClass(e,"active"),this.builder.doc.body.focus(),setTimeout((()=>{e.setAttribute("aria-hidden",!0)}),0)})),this.builder.colTool.lockIndicator.style.display="",this.builder.resize&&this.builder.resize.destroy()}makeId(){let t="",e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";for(let i=0;i<2;i++)t+=e.charAt(Math.floor(Math.random()*e.length));let i="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";for(let t=0;t<5;t++)i+=n.charAt(Math.floor(Math.random()*n.length));return t+i}getSelection(){if(this.builder.dom.getSelectedBlocks().length>0)this.builder.selectionMulti=!0;else{this.builder.selectionMulti=!1;const t=this.builder.win.getSelection(),e=this.builder.dom.getElm();if(!e)return;if(e&&e.innerText===t.toString().trim()||""===t.toString().trim()){this.builder.selectionElm=e;let t=e.closest("a");this.builder.activeLink=t||null}else this.builder.selectionText=t,this.builder.activeLink=null}}saveSelection(){if(this.builder.win.getSelection){let t=this.builder.win.getSelection();if(t.getRangeAt&&t.rangeCount){let e=[];for(let i=0,n=t.rangeCount;i<n;++i)e.push(t.getRangeAt(i));return this.builder.selection=e,e}}else if(this.builder.doc.selection&&this.builder.doc.selection.createRange)return this.builder.selection=this.builder.doc.selection.createRange(),this.builder.doc.selection.createRange();return this.builder.selection=null,null}restoreSelection(){let t=this.builder.selection;if(t)if(this.builder.win.getSelection){let o=this.builder.win.getSelection();if(this.builder.doc.body.createTextRange){var e=this.builder.doc.body.createTextRange();e.collapse(),e.select()}else this.builder.win.getSelection?this.builder.win.getSelection().empty?this.builder.win.getSelection().empty():this.builder.win.getSelection().removeAllRanges&&this.builder.win.getSelection().removeAllRanges():this.builder.doc.selection&&this.builder.doc.selection.empty();for(var i=0,n=t.length;i<n;++i)o.addRange(t[i])}else this.builder.doc.selection&&t.select&&t.select()}cleanHTML(t,e){let i,n=t.replace(/(\n|\r| class=(")?Mso[a-zA-Z]+(")?)/g," "),o=new RegExp("\x3c!--(.*?)--\x3e","g");n=n.replace(o,""),i=e?new RegExp("<(/)*(meta|link|span|\\?xml:|st1:|o:|font)(.*?)>","gi"):new RegExp("<(/)*(meta|link|\\?xml:|st1:|o:|font)(.*?)>","gi"),n=n.replace(i,"");let s,l=["style","script","applet","embed","noframes","noscript"];for(let t=0;t<l.length;t++)i=new RegExp("<"+l[t]+".*?"+l[t]+"(.*?)>","gi"),n=n.replace(i,"");s=e?["style","start"]:["start"];for(let t=0;t<s.length;t++){let e=new RegExp(" "+s[t]+'="(.*?)"',"gi");n=n.replace(e,"")}return n=n.replace(/<(!|script[^>]*>.*?<\/script(?=[>\s])|\/?(\?xml(:\w+)?|img|meta|link|style|\w:\w+)(?=[\s/>]))[^>]*>/gi,""),n=n.replace(/<(\/?)s>/gi,"<$1strike>"),n=n.replace(/&nbsp;/gi," "),n=n.replace(/background-color: rgba\(200, 200, 201, 0.11\);/gi,""),n=n.replace(/background-color: rgba\(200, 200, 201, 0.11\)/gi,""),n}checkEmpty(){const t=this.builder.doc.querySelectorAll(this.builder.opts.container);Array.prototype.forEach.call(t,(t=>{this.checkEmptyOn(t)}))}checkEmptyOn(t){const e=this.dom,i=e.elementChildren(t);let n=!0;if(i.forEach((t=>{e.hasClass(t,"row-add-initial")||e.hasClass(t,"dummy-space")||"link"!==t.tagName.toLowerCase()&&(n=!1)})),n){let i=t.querySelector(".row-add-initial");i||(t.innerHTML=`<button type="button" class="row-add-initial">${this.out("Empty")}<br><span class="block">${this.out("+ Click to add content")}</span></div>`,i=t.querySelector(".row-add-initial")),i.addEventListener("click",(()=>{this.clearActiveCell();const n=this.builder.doc.querySelectorAll(this.builder.opts.container);Array.prototype.forEach.call(n,(t=>{e.removeClass(t,"builder-active")})),e.addClass(t,"builder-active"),e.addClass(i,"row-active");const o=H(this.builder);o.querySelector(".is-pop-tabs").style.display="none";const s=window.innerHeight,l=this.getElementPosition(i);let a=l.top,r=l.left,c=l.scaleX,u=l.scaleY;r+=i.offsetWidth*(c*this.builder.opts.zoom)/2-11,a-=i.offsetHeight-i.offsetHeight*u,o.style.display="flex",this.showPop(o,!1,i);const d=o.offsetWidth,b=o.offsetHeight;s-a>b?(a=a+i.offsetHeight*this.builder.opts.zoom-19,o.style.top=a+window.pageYOffset+27+"px",o.style.left=r-d/2+7+"px",e.removeClass(o,"arrow-bottom"),e.removeClass(o,"arrow-right"),e.removeClass(o,"arrow-left"),e.removeClass(o,"center"),e.addClass(o,"arrow-top"),e.addClass(o,"center")):(o.style.top=a+window.pageYOffset-b-8+"px",o.style.left=r-d/2+7+"px",e.removeClass(o,"arrow-top"),e.removeClass(o,"arrow-right"),e.removeClass(o,"arrow-left"),e.removeClass(o,"center"),e.addClass(o,"arrow-bottom"),e.addClass(o,"center")),o.setAttribute("data-mode","row")}))}else{let e=t.querySelector(".row-add-initial");e&&e.parentNode.removeChild(e)}}clearPreferences(){localStorage.removeItem("_theme"),localStorage.removeItem("_zoom"),localStorage.removeItem("_buildermode"),localStorage.removeItem("_editingtoolbar"),localStorage.removeItem("_editingtoolbardisplay"),localStorage.removeItem("_hidecelltool"),localStorage.removeItem("_rowtool"),localStorage.removeItem("_hideelementtool"),localStorage.removeItem("_hidesnippetaddtool"),localStorage.removeItem("_outlinemode"),localStorage.removeItem("_hiderowcoloutline"),localStorage.removeItem("_outlinestyle"),localStorage.removeItem("_hideelementhighlight"),localStorage.removeItem("_opensnippets"),localStorage.removeItem("_toolstyle"),localStorage.removeItem("_snippetssidebardisplay"),localStorage.removeItem("_htmlview"),localStorage.removeItem("_pasteresult"),localStorage.removeItem("_livepreview"),localStorage.removeItem("_dictation"),localStorage.removeItem("_mic"),localStorage.removeItem("_autosendcommand"),localStorage.removeItem("_disclaimershown"),localStorage.removeItem("_temp"),localStorage.removeItem("_top_p"),localStorage.removeItem("_autosend_delay"),localStorage.removeItem("_auto_editblock"),localStorage.removeItem("_command_lang"),localStorage.removeItem("_ai_panel_open"),localStorage.removeItem("_pagesize"),localStorage.removeItem("chatPanelVisible"),localStorage.removeItem("chatSettings"),localStorage.removeItem("_scrollableeditor"),localStorage.removeItem("_animatedsorting"),localStorage.removeItem("_addbuttonplace"),localStorage.removeItem("_hiderowtool"),localStorage.removeItem("_dragwithouthandle"),localStorage.removeItem("_advancedhtmleditor"),localStorage.removeItem("_hidecolhtmleditor"),localStorage.removeItem("_hiderowhtmleditor"),localStorage.removeItem("_sampleshown")}pasteHtmlAtCaret(t,e){var i,n;if(this.restoreSelection(),this.builder.dom.getElm().closest(".is-container"))if(this.builder.win.getSelection){if(!this.builder.activeCol)return;if((i=this.builder.win.getSelection()).getRangeAt&&i.rangeCount){(n=i.getRangeAt(0)).deleteContents();var o=this.builder.doc.createElement("div");o.innerHTML=t;for(var s,l,a=this.builder.doc.createDocumentFragment();s=o.firstChild;)l=a.appendChild(s);var r=a.firstChild;n.insertNode(a),l&&((n=n.cloneRange()).setStartAfter(l),e?n.setStartBefore(r):n.collapse(!0),i.removeAllRanges(),this.builder.isTouchSupport||i.addRange(n))}}else if((i=this.builder.doc.selection)&&"Control"!==i.type){if(!this.builder.activeCol)return;var c=i.createRange();c.collapse(!0),i.createRange().pasteHTML(t),e&&((n=i.createRange()).setEndPoint("StartToStart",c),this.builder.isTouchSupport||n.select())}}refreshModule(){let t=this.builder.activeModule;if(!t)return;let e=1,i=t.querySelectorAll("[data-subblock]");Array.prototype.forEach.call(i,(i=>{let n=i.innerHTML;t.setAttribute("data-html-"+e,encodeURIComponent(n)),e++}));let n=decodeURIComponent(t.getAttribute("data-html"));n=n.replace(/{id}/g,this.makeId()),t.innerHTML="";var o=document.createRange();o.setStart(t,0),t.appendChild(o.createContextualFragment(n)),i=t.querySelectorAll("[data-subblock]");var s=1;Array.prototype.forEach.call(i,(e=>{t.getAttribute("data-html-"+s)&&(e.innerHTML=decodeURIComponent(t.getAttribute("data-html-"+s))),s++})),this.repositionColumnTool(!0),this.builder.onRefreshTool&&this.builder.onRefreshTool()}repositionColumnTool(){let t=this.builder.activeCol;if(!t)return;let e=t.parentNode;if(t.parentNode||(e=this.rowSelected()),!e)return;if(this.colTool=e.querySelector(":scope > .is-col-tool"),!this.colTool)return;t.parentNode||(this.colTool.style.display="none"),this.colTool.style.left=t.offsetLeft+"px";const i=this.builder.builderStuff.querySelector(".columnmore.active");if(i){const t=this.colTool.querySelector(".cell-more");i.classList.add("transition1"),setTimeout((()=>{const e=this.getElementPosition(t);let n=e.top,o=e.left;i.style.top=n+35+window.pageYOffset+"px",i.style.left=o-7+window.pageXOffset+"px",setTimeout((()=>{i.classList.remove("transition1")}),300)}),30)}}hideColumnTool(){this.builder.doc.querySelectorAll(".is-col-tool").forEach((t=>{t.style.display="none"}))}isTouchSupport(){return!!window.matchMedia("(pointer: coarse)").matches}detectIE(){return!!document.documentMode}LightenDarkenColor(t,e){var i=!1;"#"===t[0]&&(t=t.slice(1),i=!0);var n=parseInt(t,16),o=(n>>16)+e;o>255?o=255:o<0&&(o=0);var s=(n>>8&255)+e;s>255?s=255:s<0&&(s=0);var l=(255&n)+e;return l>255?l=255:l<0&&(l=0),(i?"#":"")+String("000000"+(l|s<<8|o<<16).toString(16)).slice(-6)}getUIStyles(){this.dom.appendHtml(this.builder.builderStuff,'\n <input type="text" class="style-helper-input" id="__style_helper_input" style="display:none;">\n <button class="style-helper-button-classic classic" style="display:none;"><svg><use xlink:href="#ion-code-working"></use></svg></button>\n <select class="style-helper-select" id="__style_helper_select" style="display:none;"><option value=""></option></select>\n\n <div class="style-helper modal-color"></div>\n <div class="style-helper modal-background"></div>\n <div class="style-helper button-pickcolor-border"></div>\n <div class="style-helper button-pickcolor-background"></div>\n\n <button class="style-helper base"><svg><use xlink:href="#ion-code-working"></use></svg></button>\n <div class="style-helper base on"></div>\n <div class="style-helper base hover"></div>\n\n <div class="style-helper snippet-color"></div>\n <div class="style-helper snippet-background"></div>\n <div class="style-helper snippet-tabs-background"></div>\n <div class="style-helper snippet-tab-item-background"></div>\n <div class="style-helper snippet-tab-item-background-active"></div>\n <div class="style-helper snippet-tab-item-background-hover"></div>\n <div class="style-helper snippet-tab-item-color"></div>\n\n <div class="style-helper snippet-more-item-background"></div>\n <div class="style-helper snippet-more-item-background-active"></div>\n <div class="style-helper snippet-more-item-background-hover"></div>\n <div class="style-helper snippet-more-item-color"></div>\n\n <div class="style-helper tabs-background"></div>\n <div class="style-helper tab-item-active-border-bottom"></div>\n <div class="style-helper tab-item-color"></div>\n <div class="style-helper tabs-more-background"></div>\n <div class="style-helper tabs-more-border"></div>\n <div class="style-helper tabs-more-item-color"></div>\n <div class="style-helper tabs-more-item-background-hover"></div>\n <div class="style-helper separator-color"></div>\n <div class="style-helper outline-color"></div>\n ');const t=(t,e)=>{const i=this.builder.builderStuff.querySelector(".style-helper"+t);return window.getComputedStyle(i,null).getPropertyValue(e)},e=this.builder.builderStuff.querySelector(".style-helper-input"),i=this.builder.builderStuff.querySelector(".style-helper-select"),n=this.builder.builderStuff.querySelector(".style-helper-button-classic");this.builder.styleModalColor=t(".modal-color","background-color"),this.builder.styleModalBackground=t(".modal-background","background-color"),this.builder.styleButtonPickColorBorder=t(".button-pickcolor-border","border"),this.builder.styleButtonPickColorBackground=t(".button-pickcolor-background","background-color"),this.builder.styleToolBackground=t(".base","background-color"),this.builder.styleButtonColor=t(".base","color"),this.builder.styleButtonSvgFill=(()=>{const t=this.builder.builderStuff.querySelector(".style-helper.base");return window.getComputedStyle(t.querySelector("svg"),null).getPropertyValue("fill")})(),this.builder.styleButtonBackgroundHover=t(".base.hover","background-color"),this.builder.styleSnippetColor=t(".snippet-color","background-color"),this.builder.styleSnippetBackground=t(".snippet-background","background-color"),this.builder.styleSnippetTabsBackground=t(".snippet-tabs-background","background-color"),this.builder.styleSnippetTabItemBackground=t(".snippet-tab-item-background","background-color"),this.builder.styleSnippetTabItemBackgroundActive=t(".snippet-tab-item-background-active","background-color"),this.builder.styleSnippetTabItemBackgroundHover=t(".snippet-tab-item-background-hover","background-color"),this.builder.styleSnippetTabItemColor=t(".snippet-tab-item-color","background-color"),this.builder.styleSnippetMoreItemBackground=t(".snippet-more-item-background","background-color"),this.builder.styleSnippetMoreItemBackgroundActive=t(".snippet-more-item-background-active","background-color"),this.builder.styleSnippetMoreItemBackgroundHover=t(".snippet-more-item-background-hover","background-color"),this.builder.styleSnippetMoreItemColor=t(".snippet-more-item-color","background-color"),this.builder.styleTabsBackground=t(".tabs-background","background-color"),this.builder.styleTabItemBorderBottomActive=t(".tab-item-active-border-bottom","border"),this.builder.styleTabItemColor=t(".tab-item-color","background-color"),this.builder.styleTabsMoreBackground=t(".tabs-more-background","background-color"),this.builder.styleTabsMoreBorder=t(".tabs-more-border","border"),this.builder.styleTabsMoreItemColor=t(".tabs-more-item-color","background-color"),this.builder.styleTabsMoreBackgroundHover=t(".tabs-more-item-background-hover","background-color"),this.builder.styleSeparatorColor=t(".separator-color","background-color"),this.builder.styleOutlineColor=t(".outline-color","background-color"),this.builder.styleSelectBackground=window.getComputedStyle(i,null).getPropertyValue("background-color"),this.builder.styleSelectColor=window.getComputedStyle(i,null).getPropertyValue("color"),this.builder.styleSelectOptionBackground=window.getComputedStyle(i.querySelector("option"),null).getPropertyValue("background-color"),this.builder.styleInputBackground=window.getComputedStyle(e,null).getPropertyValue("background-color"),this.builder.styleInputBorderBottom=window.getComputedStyle(e,null).getPropertyValue("border-bottom"),this.builder.styleInputColor=window.getComputedStyle(e,null).getPropertyValue("color"),this.builder.styleButtonClassicBackground=window.getComputedStyle(n,null).getPropertyValue("background-color"),this.builder.styleButtonClassicColor=window.getComputedStyle(n,null).getPropertyValue("color"),this.builder.styleButtonClassicBackgroundHover=this.getUIStyleValue(n,"hover","background-color"),this.builder.styleDark=!1,this.builder.styleColored=!1,this.builder.styleColoredDark=!1,this.builder.styleLight=!1,document.body.getAttribute("class")&&(-1!==document.body.getAttribute("class").indexOf("colored-dark")?this.builder.styleColoredDark=!0:-1!==document.body.getAttribute("class").indexOf("dark")?this.builder.styleDark=!0:-1!==document.body.getAttribute("class").indexOf("colored")?this.builder.styleColored=!0:-1!==document.body.getAttribute("class").indexOf("light")&&(this.builder.styleLight=!0))}getUIStyleValue(t,e,i){const n=this.dom;n.addClass(t,e);let o=window.getComputedStyle(t,null).getPropertyValue(i);return n.removeClass(t,e),o}getPageTemplate(t){let e="";return e=""===t?'\n <!DOCTYPE html>\n <html lang="en">\n <head>\n <meta charset="utf-8">\n <title>Page</title>\n <meta name="viewport" content="width=device-width, initial-scale=1">\n <meta name="description" content="">\n <link rel="shortcut icon" href="#">\n \n <link href="[%PATH%]/assets/minimalist-blocks/content.css" rel="stylesheet">\n \n <link href="[%PATH%]/assets/scripts/glide/css/glide.core.css" rel="stylesheet">\n <link href="[%PATH%]/assets/scripts/glide/css/glide.theme.css" rel="stylesheet">\n <script src="[%PATH%]/assets/scripts/glide/glide.js"><\/script>\n \n <style>\n .container {\n margin: 150px auto 0;\n max-width: 800px;\n width: 100%;\n padding: 0 20px;\n box-sizing: border-box;\n }\n </style>\n </head>\n <body>\n \n <div class="container">\n [%CONTENT%]\n </div>\n \n </body>\n </html>\n ':"tailwind"===t?'\n <!DOCTYPE html>\n <html lang="en">\n <head>\n <meta charset="utf-8">\n <title>Page</title>\n <meta name="viewport" content="width=device-width, initial-scale=1">\n <meta name="description" content="">\n <link rel="shortcut icon" href="#">\n \n <link href="[%PATH%]/assets/minimalist-blocks/content-tailwind.css" rel="stylesheet">\n \n <link href="[%PATH%]/assets/scripts/glide/css/glide.core.css" rel="stylesheet">\n <link href="[%PATH%]/assets/scripts/glide/css/glide.theme.css" rel="stylesheet">\n <script src="[%PATH%]/assets/scripts/glide/glide.js"><\/script>\n \n <link rel="stylesheet" href="[%PATH%]/assets/frameworks/tailwindcss/styles.css">\n \x3c!-- To build your own, please see: https://tailwindcss.com/docs/installation --\x3e\n \n <style>\n .container {\n margin: 150px auto 0;\n max-width: 800px;\n width: 100%;\n padding: 0 20px;\n box-sizing: border-box;\n }\n </style>\n </head>\n <body>\n \n <div class="container">\n [%CONTENT%]\n </div>\n \n </body>\n </html>\n ':"bootstrap"===t?'\n <!DOCTYPE html>\n <html lang="en">\n <head>\n <meta charset="utf-8">\n <title>Page</title>\n <meta name="viewport" content="width=device-width, initial-scale=1">\n <meta name="description" content="">\n <link rel="shortcut icon" href="#">\n\n <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">\n \n <link href="[%PATH%]/assets/minimalist-blocks/content.css" rel="stylesheet">\n \n <link href="[%PATH%]/assets/scripts/glide/css/glide.core.css" rel="stylesheet">\n <link href="[%PATH%]/assets/scripts/glide/css/glide.theme.css" rel="stylesheet">\n <script src="[%PATH%]/assets/scripts/glide/glide.js"><\/script>\n \n <style>\n .container {margin: 140px auto; max-width: 800px; width:100%; padding:0 35px; box-sizing: border-box;}\n /* Bootstrap css adjustment to enable column drag to resize */\n .row > *,\n .column {\n max-width: unset !important;\n }\n </style>\n </head>\n <body>\n \n <div class="container">\n [%CONTENT%]\n </div>\n \n </body>\n </html>\n ':"foundation"===t?'\n <!DOCTYPE html>\n <html lang="en">\n <head>\n <meta charset="utf-8">\n <title>Page</title>\n <meta name="viewport" content="width=device-width, initial-scale=1">\n <meta name="description" content="">\n <link rel="shortcut icon" href="#">\n\n <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/foundation/6.5.3/css/foundation.min.css">\n <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/foundation/6.5.3/css/foundation-float.min.css">\n \n <link href="[%PATH%]/assets/minimalist-blocks/content.css" rel="stylesheet">\n \n <link href="[%PATH%]/assets/scripts/glide/css/glide.core.css" rel="stylesheet">\n <link href="[%PATH%]/assets/scripts/glide/css/glide.theme.css" rel="stylesheet">\n <script src="[%PATH%]/assets/scripts/glide/glide.js"><\/script>\n \n <style>\n .container {\n margin: 150px auto 0;\n max-width: 800px;\n width: 100%;\n padding: 0 20px;\n box-sizing: border-box;\n }\n </style>\n </head>\n <body>\n \n <div class="container">\n [%CONTENT%]\n </div>\n \n </body>\n </html>\n ':"[%CONTENT%]",e}getElementPosition(t){const e=this.builder.iframe;let i,n,o,s;if(this.builder.iframe){let l=document.querySelector(".is-content-view");l||(l=e.parentNode);const a=window.getComputedStyle(l).transform;if("none"!==a){const t=a.match(/matrix\(([0-9., -]+)\)/)[1].split(",");o=parseFloat(t[0]),s=parseFloat(t[3])}else o=1,s=1;const r=e.getBoundingClientRect();i=t.getBoundingClientRect().top*s+r.top,n=t.getBoundingClientRect().left*o+r.left}else i=t.getBoundingClientRect().top,n=t.getBoundingClientRect().left,o=1,s=1;return{top:i,left:n,scaleX:o,scaleY:s}}getLightboxCss(){return"\n /* Light */\n .glightbox-light .gslide-description {\n background: #fff;\n }\n \n .glightbox-light .gdesc-inner {\n padding: 22px 20px;\n }\n \n .glightbox-light .gslide-title {\n font-size: 1em;\n font-weight: normal;\n font-family: arial;\n color: #000;\n margin-bottom: 19px;\n line-height: 1.4em;\n }\n \n .glightbox-light .gslide-desc {\n font-size: 0.86em;\n margin-bottom: 0;\n font-family: arial;\n line-height: 1.4em;\n }\n \n .glightbox-light .gslide-video {\n background: #000;\n }\n \n .glightbox-light .gprev,\n .glightbox-light .gnext,\n .glightbox-light .gclose {\n background-color: rgb(255 255 255 / 0%);\n border-radius: 4px;\n }\n \n .glightbox-light .gprev path,\n .glightbox-light .gnext path,\n .glightbox-light .gclose path {\n fill: #000;\n }\n \n .glightbox-light .gprev {\n position: absolute;\n top: -100%;\n left: 30px;\n width: 40px;\n height: 50px;\n }\n \n .glightbox-light .gnext {\n position: absolute;\n top: -100%;\n right: 30px;\n width: 40px;\n height: 50px;\n }\n \n .glightbox-light .gclose {\n width: 35px;\n height: 35px;\n top: 15px;\n right: 10px;\n position: absolute;\n }\n \n .glightbox-light .gclose svg {\n width: 18px;\n height: auto;\n }\n \n .glightbox-light .gclose:hover {\n opacity: 1;\n }\n \n /**/\n .glightbox-light .gslide-media {\n -webkit-box-shadow: none !important;\n box-shadow: none !important;\n }\n .glightbox-light .description-left .gdesc-inner,\n .glightbox-light .description-right .gdesc-inner {\n position: absolute;\n height: 100%;\n overflow-y: auto;\n }\n .glightbox-light .gprev,\n .glightbox-light .gnext,\n .glightbox-light .gclose {\n background-color: rgb(255 255 255 / 0%);\n }\n .glightbox-light .gprev:hover,\n .glightbox-light .gnext:hover,\n .glightbox-light .gclose:hover {\n background-color: rgb(255 255 255 / 0%);\n }\n .glightbox-light .gprev {\n top: 45%;\n }\n .glightbox-light .gnext {\n top: 45%;\n }\n \n @media (min-width: 992px) {\n .glightbox-light .gclose {\n opacity: 0.7;\n right: 20px;\n }\n }\n \n /**/\n .glightbox-light .goverlay {\n background: rgb(255 255 255 / 100%) !important;\n }\n @media screen and (max-height: 420px) {\n .goverlay {\n background: rgb(255 255 255 / 100%);\n }\n }\n \n /* override (light) */\n .glightbox-light .gprev,\n .glightbox-light .gnext {\n width: 55px !important;\n height: 70px !important;\n }\n .gclose svg, .gnext svg, .gprev svg {\n width: 50px !important;\n }\n .glightbox-light .gclose {\n width: 55px !important;\n height: 55px !important;\n }\n .glightbox-light .gclose svg {\n width: 30px !important;\n }\n .glightbox-light .gslide-title {\n font-size: 1.2em !important;\n font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif !important;\n }\n .glightbox-light .gslide-desc {\n font-size: 1em !important;\n font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif !important;\n } \n \n /* override (clean) */\n .glightbox-clean .gprev,\n .glightbox-clean .gnext {\n width: 55px !important;\n height: 70px !important;\n }\n .gclose svg, .gnext svg, .gprev svg {\n width: 50px !important;\n }\n .glightbox-clean .gclose {\n width: 55px !important;\n height: 55px !important;\n }\n .glightbox-clean .gclose svg {\n width: 30px !important;\n }\n .glightbox-clean .gslide-title {\n font-size: 1.2em !important;\n font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif !important;\n }\n .glightbox-clean .gslide-desc {\n font-size: 1em !important;\n font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif !important;\n } \n \n /* other override */\n .gclose.disabled, .gnext.disabled, .gprev.disabled {\n opacity: 0;\n } \n "}}class Ge{constructor(t){this.builder=t}detectMobileOrTablet(){const t=navigator.userAgent.toLowerCase(),e=/ipad|iphone|ipod/.test(t)&&!window.MSStream,i=/android/.test(t),n="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0,o=window.innerWidth<=1600;return!(!e&&!i)||!(!n||!o)}getScale(t){let e=window.getComputedStyle(t).transform;if("none"===e)return 1;let i=e.split("(")[1];i=i.split(")")[0],i=i.split(",");let n=i[0],o=i[1];return Math.sqrt(n*n+o*o)}createElement(t){return document.createElement(t)}appendChild(t,e){t&&t.appendChild(e)}appendHtml(t,e){t&&t.insertAdjacentHTML("beforeend",e)}addEventListener(t,e,i){t&&t.addEventListener(e,i)}addClass(t,e){t&&(this.hasClass(t,e)||(0===t.classList.length?t.className=e:t.className=t.className+" "+e,t.className=t.className.replace(/ +/g," ")))}removeClass(t,e){if(t&&t.classList.length>0){let i,n,o,s,l=e.split(" ");for(i=0,o=l.length;i<o;++i)if(l[i])try{let e=l[i],o="",a=t.className.split(" ");for(n=0,s=a.length;n<s;++n)a[n]&&a[n]!==e&&(o+=a[n]+" ");t.className=o.trim()}catch(t){}""===t.className&&t.removeAttribute("class")}}removeClassesByPrefix(t,e){t.classList&&t.classList.forEach((i=>{0===i.indexOf(e)&&this.removeClass(t,i)}))}hasClass(t,e){return!!t&&(!!t.className&&(" "+t.className+" ").indexOf(" "+e+" ")>-1)}moveAfter(t,e){e.parentNode.insertBefore(t,e),e.parentNode.insertBefore(e,e.previousElementSibling)}elementChildren(t){const e=t.childNodes;let i=[],n=e.length;for(;n--;)1===e[n].nodeType&&i.unshift(e[n]);return i}getElementOffset(t){const e=t.getBoundingClientRect();return{top:e.top+window.pageYOffset,left:e.left+window.pageXOffset,width:e.width,height:e.height}}parentsHasClass(t,e){for(;t;){if(!t.tagName)return!1;if("BODY"===t.tagName||"HTML"===t.tagName)return!1;if(this.hasClass(t,e))return!0;t=t.parentNode}}parentsHasId(t,e){for(;t;){if(!t.tagName)return!1;if("BODY"===t.tagName||"HTML"===t.tagName)return!1;if(t.id===e)return!0;t=t.parentNode}}parentsHasTag(t,e){for(;t;){if(!t.tagName)return!1;if("BODY"===t.tagName||"HTML"===t.tagName)return!1;if(t.tagName.toLowerCase()===e.toLowerCase())return!0;t=t.parentNode}}parentsHasAttribute(t,e){for(;t;){if(!t.tagName)return!1;if("BODY"===t.tagName||"HTML"===t.tagName)return!1;try{if(t.hasAttribute(e))return!0}catch(t){}t=t.parentNode}}getParentByTag(t,e){for(;t;){if(!t.tagName)return!1;if("BODY"===t.tagName||"HTML"===t.tagName)return!1;if(t.tagName.toLowerCase()===e.toLowerCase())return t;t=t.parentNode}}getParentByAttribute(t,e){for(;t;){if(!t.tagName)return!1;if("BODY"===t.tagName||"HTML"===t.tagName)return!1;try{if(t.hasAttribute(e))return t}catch(t){}t=t.parentNode}}parentsHasElement(t,e){for(;t;){if(!t.tagName)return!1;if("BODY"===t.tagName||"HTML"===t.tagName)return!1;if(!(t=t.parentNode))return!1;if(!t.tagName)return!1;if(t.tagName.toLowerCase()===e)return!0}}getParentElement(t,e){for(;t;){if(!t.tagName)return!1;if("BODY"===t.tagName||"HTML"===t.tagName)return!1;if(!(t=t.parentNode))return!1;if(!t.tagName)return!1;if(t.tagName.toLowerCase()===e)return t}}removeClasses(t,e){for(let i=0;i<t.length;i++)t[i].classList.remove(e)}removeAttributes(t,e){for(let i=0;i<t.length;i++)t[i].removeAttribute(e)}removeElements(t){Array.prototype.forEach.call(t,(t=>{t.parentNode.removeChild(t)}))}moveCursorToElement(t){var e,i;window.getSelection&&this.builder.doc.createRange?((i=this.builder.doc.createRange()).selectNodeContents(t),i.collapse(!1),(e=window.getSelection()).removeAllRanges(),e.addRange(i)):this.builder.doc.body.createTextRange&&((i=this.builder.doc.body.createTextRange()).moveToElementText(t),i.collapse(!1),i.select())}selectElementContents(t){var e=this.builder.doc.createRange();e.selectNodeContents(t);var i=this.builder.win.getSelection();i.removeAllRanges(),i.addRange(e)}getSelected(){if(this.builder.win.getSelection)return this.builder.win.getSelection().toString();if(this.builder.doc.getSelection)return this.builder.doc.getSelection().toString();var t=this.builder.doc.selection&&this.builder.doc.selection.createRange();return!!t.text&&t.text}checkEditable(){try{var t,e;return this.builder.win.getSelection?t=3===(e=this.builder.win.getSelection().getRangeAt(0).commonAncestorContainer).nodeType?e.parentNode:e:this.builder.doc.selection&&(e=this.builder.doc.selection.createRange(),t=this.builder.doc.selection.createRange().parentElement()),!!this.parentsHasAttribute(t,"contenteditable")}catch(t){return!1}}textSelection(){const t=this.getSelection().anchorNode;if(!t)return!1;return t.nodeType!==Node.TEXT_NODE&&t.nodeType!==Node.COMMENT_NODE?t:t.parentElement}getStyle(t,e){return window.getComputedStyle?window.getComputedStyle(t,null).getPropertyValue(e):t.style[e.replace(/-([a-z])/g,(function(t){return t[1].toUpperCase()}))]}observeElement(t,e,i,n=0){let o=Object.getPrototypeOf(t);if(Object.prototype.hasOwnProperty.call(o,e)){let s=Object.getOwnPropertyDescriptor(o,e);Object.defineProperty(t,e,{get:function(){return s.get.apply(this,arguments)},set:function(){let t=this[e];s.set.apply(this,arguments);let o=this[e];"function"==typeof i&&setTimeout(i.bind(this,t,o),n)}})}}baseName(t){if("string"==typeof t){var e=t.split(".");return e.splice(0,e.length-1).join(".")}}doFunction(t,e,i){if(e(t),i){let i=Array.prototype.slice.call(t.getElementsByTagName("*"));for(var n=0;n<i.length;n++)e(i[n])}}execCommand(t,e,i){const n=this.getSelectedBlocks();if(n.length>0)n.forEach((t=>{i(!0,t)}));else{const n=this.builder.win.getSelection(),o=this.getElm();if(!o)return void(i&&i(!1));let s;s=o&&o.innerText===n.toString().trim()||""===n.toString().trim()?this.updateSelection(t,e,o):this.replaceSelection(t,e,n,o),i&&i(!0,s)}}updateSelection(t,e,i){return i.style[t]=this.getStyleValue(i,t,e),this.checkStyleIfSameAsParent(i,t),this.cleanChildren(t,i),this.cleanUnusedSpan(i),i}replaceSelection(t,e,i,n){const o=i.getRangeAt(0),s=o.extractContents(),l=this.createSpan(n,t,e);return l.appendChild(s),this.cleanChildren(t,l),this.cleanUnusedSpan(l),o.insertNode(l),i.selectAllChildren(l),this.checkStyleIfSameAsParent(l,t),l}checkStyleIfSameAsParent(t,e){if(t.parentNode&&(t.parentNode.style[e]===t.style[e]||window.getComputedStyle(t.parentNode,null).getPropertyValue(e)===t.style[e])){t.style[e]="",""!==t.getAttribute("style")&&null!==t.style||t.removeAttribute("style");let i=0===t.attributes.length||1===t.attributes.length&&t.hasAttribute("data-keep");if("span"===t.nodeName.toLowerCase()&&i){const e=document.createTextNode(t.textContent);t.parentElement.replaceChild(e,t)}}}createSpan(t,e,i){const n=document.createElement("span");return n.style[e]=this.getStyleValue(t,e,i),n}findParentStyle(t,e){if("HTML"===t.nodeName.toUpperCase()||"BODY"===t.nodeName.toUpperCase())return null;if(!t.parentNode)return null;if(null!==t.style[e]&&void 0!==t.style[e]&&""!==t.style[e])return t;this.findParentStyle(t.parentNode,e)}getStyleValue(t,e,i){if("font-weight"===e||"font-style"===e||"text-decoration"===e||"text-transform"===e){let n,o=this.findParentStyle(t,e);if(o&&(n=o.style[e]),i===n){t.style[e]="";let o=window.getComputedStyle(t,null).getPropertyValue(e);t.style[e]=n,i=o}}return i}getParentBlock(t){for(;t;){if(!t.tagName)return!1;if("BODY"===t.tagName||"HTML"===t.tagName)return!1;if("inline"!==this.getStyle(t,"display"))return t;t=t.parentNode}}execCommandClass(t,e,i=!0,n){const o=this.getSelectedBlocks();if(o.length>0)o.forEach((i=>{for(let t=0;t<Object.keys(e).length;t++){let n=Object.values(e)[t];this.removeClass(i,n)}""!==t&&this.addClass(i,t),this.cleanChildrenClass(i,e),this.cleanUnusedSpan(i)}));else{const o=this.builder.win.getSelection();let s=this.getElm();if(!s)return;const l=s&&s.innerText===o.toString().trim();(i||l||""===o.toString().trim())&&("block"===n&&"inline"===this.getStyle(s,"display")&&(s=this.getParentBlock(s)),this.updateSelectionClass(t,e,s))}}updateSelectionClass(t,e,i){for(let t=0;t<Object.keys(e).length;t++){let n=Object.values(e)[t];this.removeClass(i,n)}return""!==t&&this.addClass(i,t),this.cleanChildrenClass(i,e),this.cleanUnusedSpan(i),i}cleanChildrenClass(t,e){if(!t.hasChildNodes())return;Array.from(t.children).map((t=>{for(let i=0;i<Object.keys(e).length;i++){let n=Object.values(e)[i];this.removeClass(t,n)}}));const i=Array.from(t.children).map((t=>this.cleanChildrenClass(t,e)));i&&i.length}getSelectedBlocks(){let t=!1,e=this.builder.win.getSelection(),i=[];if(!e.isCollapsed){let t=e.getRangeAt(0),n=t.commonAncestorContainer;const o=e=>{if(e.nodeType===Node.ELEMENT_NODE&&t.intersectsNode(e)&&i.push(e),e.childNodes.length>0)for(let t=0;t<e.childNodes.length;t++)o(e.childNodes[t])};o(n),i.length>0&&i[0]===n&&i.shift()}let n=[];const o=["p","h1","h2","h3","h4","h5","h6","div","pre","td","th","li"];return i.forEach((e=>{const i=e.tagName.toLowerCase();o.includes(i)&&(t=!0,n.push(e))})),2===n.length&&n[0].innerText.trim()===e.toString().trim()&&n.pop(),t?n:[]}execCommandToggle(t,e,i){const n=this.getSelectedBlocks();if(n.length>0)n.forEach((n=>{if("fontWeight"===t){let t=!1;this.hasClass(n,i.fontWeight.defaultBold)&&(t=!0),this.removeClass(n,i.fontWeight.thin),this.removeClass(n,i.fontWeight.extralight),this.removeClass(n,i.fontWeight.light),this.removeClass(n,i.fontWeight.normal),this.removeClass(n,i.fontWeight.medium),this.removeClass(n,i.fontWeight.semibold),this.removeClass(n,i.fontWeight.bold),this.removeClass(n,i.fontWeight.extrabold),this.removeClass(n,i.fontWeight.black),t||this.addClass(n,i.fontWeight.defaultBold)}if("fontStyle"===t){let t=!1;this.hasClass(n,i.fontStyle.italic)&&(t=!0),this.removeClass(n,i.fontStyle.italic),this.removeClass(n,i.fontStyle.normal),t||this.addClass(n,i.fontStyle.italic)}if("textUnderline"===t){let t=!1;this.hasClass(n,i.textDecoration.underline)&&(t=!0),this.removeClass(n,i.textDecoration.linethrough),this.removeClass(n,i.textDecoration.underline),this.removeClass(n,i.textDecoration.normal),t||this.addClass(n,i.textDecoration.underline)}if("textLinethrough"===t){let t=!1;this.hasClass(n,i.textDecoration.linethrough)&&(t=!0),this.removeClass(n,i.textDecoration.underline),this.removeClass(n,i.textDecoration.linethrough),this.removeClass(n,i.textDecoration.normal),t||this.addClass(n,i.textDecoration.linethrough)}if("textTransform"===t){let t="";this.hasClass(n,i.textTransform.uppercase)&&(t="uppercase"),this.removeClass(n,i.textTransform.uppercase),this.removeClass(n,i.textTransform.lowercase),this.removeClass(n,i.textTransform.capitalize),this.removeClass(n,i.textTransform.normal),""===t&&this.addClass(n,i.textTransform.uppercase)}if("clean"===t&&(n.className="",n.style.cssText=""),"extend"===t){let t=!1;this.hasClass(n,i.extend[e])&&(t=!0),t?this.removeClass(n,i.extend[e]):this.addClass(n,i.extend[e])}this.cleanChildrenToggle(t,e,n,i),this.cleanUnusedSpan(n)}));else{const n=this.builder.win.getSelection(),o=this.getElm();if(!o)return;o&&o.innerText===n.toString().trim()||""===n.toString().trim()?this.updateSelectionToggle(t,e,i,o):this.replaceSelectionToggle(t,e,i,n,o)}}getElm(){const t=this.builder.win.getSelection();if(!t)return!1;const e=t.anchorNode;if(!e)return!1;return e.nodeType!==Node.TEXT_NODE&&e.nodeType!==Node.COMMENT_NODE?e:e.parentElement}updateSelectionToggle(t,e,i,n){if("fontWeight"===t){let t=!1;this.hasClass(n,i.fontWeight.defaultBold)&&(t=!0);parseInt(window.getComputedStyle(n,null).getPropertyValue("font-weight"))>=500&&(t=!0),this.removeClass(n,i.fontWeight.thin),this.removeClass(n,i.fontWeight.extralight),this.removeClass(n,i.fontWeight.light),this.removeClass(n,i.fontWeight.normal),this.removeClass(n,i.fontWeight.medium),this.removeClass(n,i.fontWeight.semibold),this.removeClass(n,i.fontWeight.bold),this.removeClass(n,i.fontWeight.extrabold),this.removeClass(n,i.fontWeight.black),t?this.addClass(n,i.fontWeight.defaultNormal):this.addClass(n,i.fontWeight.defaultBold)}if("fontStyle"===t){let t=!1;this.hasClass(n,i.fontStyle.italic)&&(t=!0),this.removeClass(n,i.fontStyle.italic),this.removeClass(n,i.fontStyle.normal),t?this.addClass(n,i.fontStyle.normal):this.addClass(n,i.fontStyle.italic)}if("textUnderline"===t){let t=!1;this.hasClass(n,i.textDecoration.underline)&&(t=!0),this.removeClass(n,i.textDecoration.underline),this.removeClass(n,i.textDecoration.linethrough),this.removeClass(n,i.textDecoration.normal),t?this.addClass(n,i.textDecoration.normal):this.addClass(n,i.textDecoration.underline)}if("textLinethrough"===t){let t=!1;this.hasClass(n,i.textDecoration.linethrough)&&(t=!0),this.removeClass(n,i.textDecoration.underline),this.removeClass(n,i.textDecoration.linethrough),this.removeClass(n,i.textDecoration.normal),t?this.addClass(n,i.textDecoration.normal):this.addClass(n,i.textDecoration.linethrough)}if("textTransform"===t){let t="";this.hasClass(n,i.textTransform.uppercase)&&(t="uppercase"),this.removeClass(n,i.textTransform.uppercase),this.removeClass(n,i.textTransform.lowercase),this.removeClass(n,i.textTransform.capitalize),this.removeClass(n,i.textTransform.normal),""===t&&this.addClass(n,i.textTransform.uppercase)}if("clean"===t&&(n.className="",n.style.cssText=""),"extend"===t){let t=!1;this.hasClass(n,i.extend[e])&&(t=!0),t?this.removeClass(n,i.extend[e]):this.addClass(n,i.extend[e])}return this.cleanChildrenToggle(t,e,n,i),this.cleanUnusedSpan(n),n}replaceSelectionToggle(t,e,i,n,o){const s=n.getRangeAt(0),l=s.extractContents(),a=document.createElement("span");if("fontWeight"===t){let t=!1;o.closest(`.${i.fontWeight.defaultBold}`)&&(t=!0,this.hasClass(o,i.fontWeight.defaultNormal)&&(t=!1));parseInt(window.getComputedStyle(o,null).getPropertyValue("font-weight"))>=500&&(t=!0),t?this.addClass(a,i.fontWeight.defaultNormal):this.addClass(a,i.fontWeight.defaultBold)}if("fontStyle"===t){let t=!1;o.closest(`.${i.fontStyle.italic}`)&&(t=!0,this.hasClass(o,i.fontStyle.normal)&&(t=!1)),t?this.addClass(a,i.fontStyle.normal):this.addClass(a,i.fontStyle.italic)}if("textUnderline"===t){let t=!1;o.closest(`.${i.textDecoration.underline}`)&&(t=!0),t||this.addClass(a,i.textDecoration.underline)}if("textLinethrough"===t){let t=!1;o.closest(`.${i.textDecoration.linethrough}`)&&(t=!0),t||this.addClass(a,i.textDecoration.linethrough)}if("textTransform"===t){let t="";o.closest(`.${i.textTransform.uppercase}`)&&(t="uppercase"),this.removeClass(a,i.textTransform.uppercase),this.removeClass(a,i.textTransform.lowercase),this.removeClass(a,i.textTransform.capitalize),this.removeClass(a,i.textTransform.normal),""===t&&this.addClass(a,i.textTransform.uppercase)}if("extend"===t){let t=!1;o.closest(`.${i.extend[e]}`)&&(t=!0),t||this.addClass(a,i.extend[e])}return a.appendChild(l),this.cleanChildrenToggle(t,e,a,i),this.cleanUnusedSpan(a),s.insertNode(a),n.selectAllChildren(a),a}cleanChildrenToggle(t,e,i,n){if(!i.hasChildNodes())return;"fontWeight"===t&&Array.from(i.children).map((t=>{this.removeClass(t,n.fontWeight.thin),this.removeClass(t,n.fontWeight.extralight),this.removeClass(t,n.fontWeight.light),this.removeClass(t,n.fontWeight.normal),this.removeClass(t,n.fontWeight.medium),this.removeClass(t,n.fontWeight.semibold),this.removeClass(t,n.fontWeight.bold),this.removeClass(t,n.fontWeight.extrabold),this.removeClass(t,n.fontWeight.black)})),"fontStyle"===t&&Array.from(i.children).map((t=>{this.removeClass(t,n.fontStyle.italic),this.removeClass(t,n.fontStyle.normal)})),"textUnderline"===t&&Array.from(i.children).map((t=>{this.removeClass(t,n.textDecoration.underline),this.removeClass(t,n.textDecoration.linethrough),this.removeClass(t,n.textDecoration.normal)})),"textLinethrough"===t&&Array.from(i.children).map((t=>{this.removeClass(t,n.textDecoration.underline),this.removeClass(t,n.textDecoration.linethrough),this.removeClass(t,n.textDecoration.normal)})),"textTransform"===t&&Array.from(i.children).map((t=>{this.removeClass(t,n.textTransform.uppercase),this.removeClass(t,n.textTransform.lowercase),this.removeClass(t,n.textTransform.capitalize),this.removeClass(t,n.textTransform.normal)})),"clean"===t&&Array.from(i.children).map((t=>{t.className="",t.style.cssText=""})),"extend"===t&&Array.from(i.children).map((t=>{this.removeClass(t,n.extend[e])}));const o=Array.from(i.children).map((i=>this.cleanChildrenToggle(t,e,i,n)));o&&o.length}getSelection(){return this.builder.win&&this.builder.win.getSelection?this.builder.win.getSelection():this.builder.doc&&this.builder.doc.getSelection?this.builder.doc.getSelection():this.builder.doc&&this.builder.doc.selection?this.builder.doc.selection.createRange().text:null}cleanChildren(t,e){if(!e.hasChildNodes())return;const i=Array.from(e.children).filter((e=>void 0!==e.style[t]&&""!==e.style[t.style]));i&&i.length>0&&i.forEach((e=>{e.style[t]="",""!==e.getAttribute("style")&&null!==e.style||e.removeAttribute("style")}));const n=Array.from(e.children).map((e=>this.cleanChildren(t,e)));n&&n.length}addCssClass(t,e,i){this.removeCssClasses(t,i),this.addClass(t,e)}removeCssClasses(t,e){for(let i=0;i<Object.keys(e).length;i++){const n=Object.values(e)[i];this.removeClass(t,n)}}removeEmptyStyle(t){if(!t.hasChildNodes())return;const e=Array.from(t.children).filter((t=>t.getAttribute("style")));e&&e.length>0&&e.forEach((t=>{""!==t.getAttribute("style").trim()&&null!==t.style||t.removeAttribute("style")}));const i=Array.from(t.children).map((t=>this.removeEmptyStyle(t)));i&&i.length}cleanClassSize(t,e){if(!t.hasChildNodes())return;const i=Array.from(t.children).filter((t=>this.hasClass(t,e)));i&&i.length>0&&i.forEach((t=>{this.removeClass(t,e)}));const n=Array.from(t.children).map((t=>this.cleanClassSize(t,e)));n&&n.length}removeFormat(){const t=this.getSelection();if(!t)return;const e=t.anchorNode;if(!e)return;const i=e.nodeType!==Node.TEXT_NODE&&e.nodeType!==Node.COMMENT_NODE?e:e.parentElement;i&&i.innerText===t.toString().trim()||""===t.toString().trim()?this.cleanElement(i):this.cleanSelection(t)}cleanElement(t){t.style.fontWeight="",t.style.fontStyle="",t.style.textDecoration="",t.style.textTransform="",t.style.fontFamily="",t.style.fontSize="",t.style.color="",t.style.backgroundColor="",t.classList.forEach((e=>{-1!==e.indexOf("size-")&&this.removeClass(t,e)})),t.querySelectorAll("*").forEach((t=>{t.style.fontWeight="",t.style.fontStyle="",t.style.textDecoration="",t.style.textTransform="",t.style.fontFamily="",t.style.fontSize="",t.style.color="",t.style.backgroundColor="",t.classList.forEach((e=>{-1!==e.indexOf("size-")&&this.removeClass(t,e)}))})),this.cleanUnusedSpan(t)}cleanSelection(t){const e=t.getRangeAt(0),i=e.extractContents(),n=document.createElement("span");n.appendChild(i),e.insertNode(n),t.selectAllChildren(n),this.cleanElement(n)}cleanUnusedSpan(t){let e=t.querySelectorAll("span");const i=Array.prototype.filter;let n=i.call(e,(t=>0===t.attributes.length));n&&n.length>0&&n.forEach((t=>{t.outerHTML=t.innerHTML})),e=t.querySelectorAll("span"),i.call(e,(t=>{""===t.innerHTML&&t.parentNode.removeChild(t)})),e=t.querySelectorAll("span"),n=i.call(e,(t=>0===t.attributes.length)),n&&n.length>0&&this.cleanUnusedSpan(t)}contentReformat(t,e){this.replaceTag(t,"b",e.fontWeight.defaultBold),this.replaceTag(t,"i",e.fontStyle.italic),this.replaceTag(t,"u",e.textDecoration.underline),this.replaceTag(t,"strike",e.textDecoration.linethrough),this.replaceInline(t,"font-weight","normal",e.fontWeight.defaultBold),this.replaceInline(t,"font-weight","bold",e.fontWeight.defaultBold),this.replaceInline(t,"font-weight","600",e.fontWeight.semibold),this.replaceInline(t,"text-align","left",e.textAlign.left),this.replaceInline(t,"text-align","right",e.textAlign.right),this.replaceInline(t,"text-align","center",e.textAlign.center),this.replaceInline(t,"text-align","justify",e.textAlign.justify),this.replaceInline(t,"display","flex",e.display.flex),this.replaceInline(t,"justiify-content","flex-start",e.justifyContent.start),this.replaceInline(t,"justiify-content","flex-end",e.justifyContent.end),this.replaceInline(t,"justiify-content","center",e.justifyContent.center),this.replaceInline(t,"justiify-content","space-between",e.justifyContent.between),this.replaceInline(t,"flex-direction","column",e.flexDirection.column),this.replaceInline(t,"flex-direction","row",e.flexDirection.row),this.replaceInline(t,"align-items","flex-start",e.alignItems.start),this.replaceInline(t,"align-items","flex-end",e.alignItems.end),this.replaceInline(t,"align-items","center",e.alignItems.center),this.replaceInline(t,"text-transform","uppercase",e.textTransform.uppercase),this.replaceInline(t,"text-transform","lowercase",e.textTransform.lowercase),this.replaceInline(t,"text-transform","none",e.textTransform.normal),this.replaceInline(t,"line-height","1",e.leading.leading_10),this.replaceInline(t,"line-height","1.1",e.leading.leading_11),this.replaceInline(t,"line-height","1.2",e.leading.leading_12),this.replaceInline(t,"line-height","1.25",e.leading.leading_125),this.replaceInline(t,"line-height","1.3",e.leading.leading_13),this.replaceInline(t,"line-height","1.375",e.leading.leading_1375),this.replaceInline(t,"line-height","1.4",e.leading.leading_14),this.replaceInline(t,"line-height","1.5",e.leading.leading_15),this.replaceInline(t,"line-height","1.6",e.leading.leading_16),this.replaceInline(t,"line-height","1.625",e.leading.leading_1625),this.replaceInline(t,"line-height","1.7",e.leading.leading_17),this.replaceInline(t,"line-height","1.8",e.leading.leading_18),this.replaceInline(t,"line-height","1.9",e.leading.leading_19),this.replaceInline(t,"line-height","2",e.leading.leading_20),this.replaceInline(t,"line-height","2.1",e.leading.leading_21),this.replaceInline(t,"line-height","2.2",e.leading.leading_22)}replaceTag(t,e,i){let n=t.querySelectorAll(e);let o=Array.prototype.filter.call(n,(t=>0===t.attributes.length));o&&o.length>0&&o.forEach((t=>{const e=document.createElement("span");e.setAttribute("class",i),e.innerHTML=t.innerHTML,t.outerHTML=e.outerHTML}))}replaceInline(t,e,i,n){t.querySelectorAll("*").forEach((t=>{"justiify-content"===e?t.style.justifyContent===`${i}`&&(this.addClass(t,n),t.style.justifyContent=""):t.style[e]===`${i}`&&(this.addClass(t,n),t.style[e]="")}))}countOccurrences(t,e){const i=new RegExp(e,"gi"),n=t.match(i);return n?n.length:0}}var Ye="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Xe={exports:{}},Ve={},Ke={exports:{}},Ze={},Qe={};function Je(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 ti(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 ei(t,e){this.__indent_cache=new ti(t,e),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 Je(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}Je.prototype.clone_empty=function(){var t=new Je(this.__parent);return t.set_indent(this.__indent_count,this.__alignment_count),t},Je.prototype.item=function(t){return t<0?this.__items[this.__items.length+t]:this.__items[t]},Je.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},Je.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))},Je.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)},Je.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},Je.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},Je.prototype.is_empty=function(){return 0===this.__items.length},Je.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},Je.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},Je.prototype.pop=function(){var t=null;return this.is_empty()||(t=this.__items.pop(),this.__character_count-=t.length),t},Je.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},Je.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},Je.prototype.trim=function(){for(;" "===this.last();)this.__items.pop(),this.__character_count-=1},Je.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},ti.prototype.get_indent_size=function(t,e){var i=this.__base_string_length;return e=e||0,t<0&&(i=0),i+=t*this.__indent_size,i+=e},ti.prototype.get_indent_string=function(t,e){var i=this.__base_string;return e=e||0,t<0&&(t=0,i=""),e+=t*this.__indent_size,this.__ensure_cache(e),i+=this.__cache[e]},ti.prototype.__ensure_cache=function(t){for(;t>=this.__cache.length;)this.__add_column()},ti.prototype.__add_column=function(){var t=this.__cache.length,e=0,i="";this.__indent_size&&t>=this.__indent_size&&(t-=(e=Math.floor(t/this.__indent_size))*this.__indent_size,i=new Array(e+1).join(this.__indent_string)),t&&(i+=new Array(t+1).join(" ")),this.__cache.push(i)},ei.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},ei.prototype.get_line_number=function(){return this.__lines.length},ei.prototype.get_indent_string=function(t,e){return this.__indent_cache.get_indent_string(t,e)},ei.prototype.get_indent_size=function(t,e){return this.__indent_cache.get_indent_size(t,e)},ei.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},ei.prototype.add_new_line=function(t){return!(this.is_empty()||!t&&this.just_added_newline())&&(this.raw||this.__add_outputline(),!0)},ei.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 i=this.__lines.join("\n");return"\n"!==t&&(i=i.replace(/[\n]/g,t)),i},ei.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},ei.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)},ei.prototype.add_raw_token=function(t){for(var e=0;e<t.newlines;e++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(t.whitespace_before),this.current_line.push(t.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},ei.prototype.add_token=function(t){this.__add_space_before_token(),this.current_line.push(t),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},ei.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},ei.prototype.remove_indent=function(t){for(var e=this.__lines.length;t<e;)this.__lines[t]._remove_indent(),t++;this.current_line._remove_wrap_indent()},ei.prototype.trim=function(t){for(t=void 0!==t&&t,this.current_line.trim();t&&this.__lines.length>1&&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},ei.prototype.just_added_newline=function(){return this.current_line.is_empty()},ei.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},ei.prototype.ensure_empty_line_above=function(t,e){for(var i=this.__lines.length-2;i>=0;){var n=this.__lines[i];if(n.is_empty())break;if(0!==n.item(0).indexOf(t)&&n.item(-1)!==e){this.__lines.splice(i+1,0,new Je(this)),this.previous_line=this.__lines[this.__lines.length-2];break}i--}},Qe.Output=ei;var ii={};ii.Token=function(t,e,i,n){this.type=t,this.text=e,this.comments_before=null,this.newlines=i||0,this.whitespace_before=n||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null};var ni,oi,si,li,ai,ri={};oi="\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a",li="\\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",ai="(?:\\\\u[0-9a-fA-F]{4}|[\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a"+(si="\\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-\\u09b9\\u09bd\\u09ce\\u09dc\\u09dd\\u09df-\\u09e1\\u09f0\\u09f1\\u0a05-\\u0a0a\\u0a0f\\u0a10\\u0a13-\\u0a28\\u0a2a-\\u0a30\\u0a32\\u0a33\\u0a35\\u0a36\\u0a38\\u0a39\\u0a59-\\u0a5c\\u0a5e\\u0a72-\\u0a74\\u0a85-\\u0a8d\\u0a8f-\\u0a91\\u0a93-\\u0aa8\\u0aaa-\\u0ab0\\u0ab2\\u0ab3\\u0ab5-\\u0ab9\\u0abd\\u0ad0\\u0ae0\\u0ae1\\u0b05-\\u0b0c\\u0b0f\\u0b10\\u0b13-\\u0b28\\u0b2a-\\u0b30\\u0b32\\u0b33\\u0b35-\\u0b39\\u0b3d\\u0b5c\\u0b5d\\u0b5f-\\u0b61\\u0b71\\u0b83\\u0b85-\\u0b8a\\u0b8e-\\u0b90\\u0b92-\\u0b95\\u0b99\\u0b9a\\u0b9c\\u0b9e\\u0b9f\\u0ba3\\u0ba4\\u0ba8-\\u0baa\\u0bae-\\u0bb9\\u0bd0\\u0c05-\\u0c0c\\u0c0e-\\u0c10\\u0c12-\\u0c28\\u0c2a-\\u0c33\\u0c35-\\u0c39\\u0c3d\\u0c58\\u0c59\\u0c60\\u0c61\\u0c85-\\u0c8c\\u0c8e-\\u0c90\\u0c92-\\u0ca8\\u0caa-\\u0cb3\\u0cb5-\\u0cb9\\u0cbd\\u0cde\\u0ce0\\u0ce1\\u0cf1\\u0cf2\\u0d05-\\u0d0c\\u0d0e-\\u0d10\\u0d12-\\u0d3a\\u0d3d\\u0d4e\\u0d60\\u0d61\\u0d7a-\\u0d7f\\u0d85-\\u0d96\\u0d9a-\\u0db1\\u0db3-\\u0dbb\\u0dbd\\u0dc0-\\u0dc6\\u0e01-\\u0e30\\u0e32\\u0e33\\u0e40-\\u0e46\\u0e81\\u0e82\\u0e84\\u0e87\\u0e88\\u0e8a\\u0e8d\\u0e94-\\u0e97\\u0e99-\\u0e9f\\u0ea1-\\u0ea3\\u0ea5\\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")+"])",(ni=ri).identifier=new RegExp(ai+"(?:\\\\u[0-9a-fA-F]{4}|[\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a\\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-\\u09b9\\u09bd\\u09ce\\u09dc\\u09dd\\u09df-\\u09e1\\u09f0\\u09f1\\u0a05-\\u0a0a\\u0a0f\\u0a10\\u0a13-\\u0a28\\u0a2a-\\u0a30\\u0a32\\u0a33\\u0a35\\u0a36\\u0a38\\u0a39\\u0a59-\\u0a5c\\u0a5e\\u0a72-\\u0a74\\u0a85-\\u0a8d\\u0a8f-\\u0a91\\u0a93-\\u0aa8\\u0aaa-\\u0ab0\\u0ab2\\u0ab3\\u0ab5-\\u0ab9\\u0abd\\u0ad0\\u0ae0\\u0ae1\\u0b05-\\u0b0c\\u0b0f\\u0b10\\u0b13-\\u0b28\\u0b2a-\\u0b30\\u0b32\\u0b33\\u0b35-\\u0b39\\u0b3d\\u0b5c\\u0b5d\\u0b5f-\\u0b61\\u0b71\\u0b83\\u0b85-\\u0b8a\\u0b8e-\\u0b90\\u0b92-\\u0b95\\u0b99\\u0b9a\\u0b9c\\u0b9e\\u0b9f\\u0ba3\\u0ba4\\u0ba8-\\u0baa\\u0bae-\\u0bb9\\u0bd0\\u0c05-\\u0c0c\\u0c0e-\\u0c10\\u0c12-\\u0c28\\u0c2a-\\u0c33\\u0c35-\\u0c39\\u0c3d\\u0c58\\u0c59\\u0c60\\u0c61\\u0c85-\\u0c8c\\u0c8e-\\u0c90\\u0c92-\\u0ca8\\u0caa-\\u0cb3\\u0cb5-\\u0cb9\\u0cbd\\u0cde\\u0ce0\\u0ce1\\u0cf1\\u0cf2\\u0d05-\\u0d0c\\u0d0e-\\u0d10\\u0d12-\\u0d3a\\u0d3d\\u0d4e\\u0d60\\u0d61\\u0d7a-\\u0d7f\\u0d85-\\u0d96\\u0d9a-\\u0db1\\u0db3-\\u0dbb\\u0dbd\\u0dc0-\\u0dc6\\u0e01-\\u0e30\\u0e32\\u0e33\\u0e40-\\u0e46\\u0e81\\u0e82\\u0e84\\u0e87\\u0e88\\u0e8a\\u0e8d\\u0e94-\\u0e97\\u0e99-\\u0e9f\\u0ea1-\\u0ea3\\u0ea5\\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\\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])*","g"),ni.identifierStart=new RegExp(ai),ni.identifierMatch=new RegExp("(?:\\\\u[0-9a-fA-F]{4}|["+oi+si+li+"])+"),ni.newline=/[\n\r\u2028\u2029]/,ni.lineBreak=new RegExp("\r\n|"+ni.newline.source),ni.allLineBreaks=new RegExp(ni.lineBreak.source,"g");var ci={},ui={};function di(t,e){this.raw_options=bi(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 bi(t,e){var i,n={};for(i in t=pi(t))i!==e&&(n[i]=t[i]);if(e&&t[e])for(i in t[e])n[i]=t[e][i];return n}function pi(t){var e,i={};for(e in t){i[e.replace(/-/g,"_")]=t[e]}return i}di.prototype._get_array=function(t,e){var i=this.raw_options[t],n=e||[];return"object"==typeof i?null!==i&&"function"==typeof i.concat&&(n=i.concat()):"string"==typeof i&&(n=i.split(/[^a-zA-Z0-9_\/\-]+/)),n},di.prototype._get_boolean=function(t,e){var i=this.raw_options[t];return void 0===i?!!e:!!i},di.prototype._get_characters=function(t,e){var i=this.raw_options[t],n=e||"";return"string"==typeof i&&(n=i.replace(/\\r/,"\r").replace(/\\n/,"\n").replace(/\\t/,"\t")),n},di.prototype._get_number=function(t,e){var i=this.raw_options[t];e=parseInt(e,10),isNaN(e)&&(e=0);var n=parseInt(i,10);return isNaN(n)&&(n=e),n},di.prototype._get_selection=function(t,e,i){var n=this._get_selection_list(t,e,i);if(1!==n.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 n[0]},di.prototype._get_selection_list=function(t,e,i){if(!e||0===e.length)throw new Error("Selection list cannot be empty.");if(i=i||[e[0]],!this._is_valid_selection(i,e))throw new Error("Invalid Default Value!");var n=this._get_array(t,i);if(!this._is_valid_selection(n,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 n},di.prototype._is_valid_selection=function(t,e){return t.length&&e.length&&!t.some((function(t){return-1===e.indexOf(t)}))},ui.Options=di,ui.normalizeOpts=pi,ui.mergeOpts=bi;var hi=ui.Options,gi=["before-newline","after-newline","preserve-newline"];function mi(t){hi.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 i=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_preserve_inline=!1,this.brace_style="collapse";for(var n=0;n<i.length;n++)"preserve-inline"===i[n]?this.brace_preserve_inline=!0:this.brace_style=i[n];this.unindent_chained_methods=this._get_boolean("unindent_chained_methods"),this.break_chained_methods=this._get_boolean("break_chained_methods"),this.space_in_paren=this._get_boolean("space_in_paren"),this.space_in_empty_paren=this._get_boolean("space_in_empty_paren"),this.jslint_happy=this._get_boolean("jslint_happy"),this.space_after_anon_function=this._get_boolean("space_after_anon_function"),this.space_after_named_function=this._get_boolean("space_after_named_function"),this.keep_array_indentation=this._get_boolean("keep_array_indentation"),this.space_before_conditional=this._get_boolean("space_before_conditional",!0),this.unescape_strings=this._get_boolean("unescape_strings"),this.e4x=this._get_boolean("e4x"),this.comma_first=this._get_boolean("comma_first"),this.operator_position=this._get_selection("operator_position",gi),this.test_output_raw=this._get_boolean("test_output_raw"),this.jslint_happy&&(this.space_after_anon_function=!0)}mi.prototype=new hi,ci.Options=mi;var fi={},vi={},yi=RegExp.prototype.hasOwnProperty("sticky");function xi(t){this.__input=t||"",this.__input_length=this.__input.length,this.__position=0}xi.prototype.restart=function(){this.__position=0},xi.prototype.back=function(){this.__position>0&&(this.__position-=1)},xi.prototype.hasNext=function(){return this.__position<this.__input_length},xi.prototype.next=function(){var t=null;return this.hasNext()&&(t=this.__input.charAt(this.__position),this.__position+=1),t},xi.prototype.peek=function(t){var e=null;return t=t||0,(t+=this.__position)>=0&&t<this.__input_length&&(e=this.__input.charAt(t)),e},xi.prototype.__match=function(t,e){t.lastIndex=e;var i=t.exec(this.__input);return!i||yi&&t.sticky||i.index!==e&&(i=null),i},xi.prototype.test=function(t,e){return e=e||0,(e+=this.__position)>=0&&e<this.__input_length&&!!this.__match(t,e)},xi.prototype.testChar=function(t,e){var i=this.peek(e);return t.lastIndex=0,null!==i&&t.test(i)},xi.prototype.match=function(t){var e=this.__match(t,this.__position);return e?this.__position+=e[0].length:e=null,e},xi.prototype.read=function(t,e,i){var n,o="";return t&&(n=this.match(t))&&(o+=n[0]),!e||!n&&t||(o+=this.readUntil(e,i)),o},xi.prototype.readUntil=function(t,e){var i,n=this.__position;t.lastIndex=this.__position;var o=t.exec(this.__input);return o?(n=o.index,e&&(n+=o[0].length)):n=this.__input_length,i=this.__input.substring(this.__position,n),this.__position=n,i},xi.prototype.readUntilAfter=function(t){return this.readUntil(t,!0)},xi.prototype.get_regexp=function(t,e){var i=null,n="g";return e&&yi&&(n="y"),"string"==typeof t&&""!==t?i=new RegExp(t,n):t&&(i=new RegExp(t.source,n)),i},xi.prototype.get_literal_regexp=function(t){return RegExp(t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},xi.prototype.peekUntilAfter=function(t){var e=this.__position,i=this.readUntilAfter(t);return this.__position=e,i},xi.prototype.lookBack=function(t){var e=this.__position-1;return e>=t.length&&this.__input.substring(e-t.length,e).toLowerCase()===t},vi.InputScanner=xi;var wi={},Si={};function ki(t){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=t}ki.prototype.restart=function(){this.__position=0},ki.prototype.isEmpty=function(){return 0===this.__tokens_length},ki.prototype.hasNext=function(){return this.__position<this.__tokens_length},ki.prototype.next=function(){var t=null;return this.hasNext()&&(t=this.__tokens[this.__position],this.__position+=1),t},ki.prototype.peek=function(t){var e=null;return t=t||0,(t+=this.__position)>=0&&t<this.__tokens_length&&(e=this.__tokens[t]),e},ki.prototype.add=function(t){this.__parent_token&&(t.parent=this.__parent_token),this.__tokens.push(t),this.__tokens_length+=1},Si.TokenStream=ki;var _i={},Ci={};function Li(t,e){this._input=t,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,e&&(this._starting_pattern=this._input.get_regexp(e._starting_pattern,!0),this._match_pattern=this._input.get_regexp(e._match_pattern,!0),this._until_pattern=this._input.get_regexp(e._until_pattern),this._until_after=e._until_after)}Li.prototype.read=function(){var t=this._input.read(this._starting_pattern);return this._starting_pattern&&!t||(t+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),t},Li.prototype.read_match=function(){return this._input.match(this._match_pattern)},Li.prototype.until_after=function(t){var e=this._create();return e._until_after=!0,e._until_pattern=this._input.get_regexp(t),e._update(),e},Li.prototype.until=function(t){var e=this._create();return e._until_after=!1,e._until_pattern=this._input.get_regexp(t),e._update(),e},Li.prototype.starting_with=function(t){var e=this._create();return e._starting_pattern=this._input.get_regexp(t,!0),e._update(),e},Li.prototype.matching=function(t){var e=this._create();return e._match_pattern=this._input.get_regexp(t,!0),e._update(),e},Li.prototype._create=function(){return new Li(this._input,this)},Li.prototype._update=function(){},Ci.Pattern=Li;var Ai=Ci.Pattern;function Ei(t,e){Ai.call(this,t,e),e?this._line_regexp=this._input.get_regexp(e._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}Ei.prototype=new Ai,Ei.prototype.__set_whitespace_patterns=function(t,e){t+="\\t ",e+="\\n\\r",this._match_pattern=this._input.get_regexp("["+t+e+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+e+"]")},Ei.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var t=this._input.read(this._match_pattern);if(" "===t)this.whitespace_before_token=" ";else if(t){var e=this.__split(this._newline_regexp,t);this.newline_count=e.length-1,this.whitespace_before_token=e[this.newline_count]}return t},Ei.prototype.matching=function(t,e){var i=this._create();return i.__set_whitespace_patterns(t,e),i._update(),i},Ei.prototype._create=function(){return new Ei(this._input,this)},Ei.prototype.__split=function(t,e){t.lastIndex=0;for(var i=0,n=[],o=t.exec(e);o;)n.push(e.substring(i,o.index)),i=o.index+o[0].length,o=t.exec(e);return i<e.length?n.push(e.substring(i,e.length)):n.push(""),n},_i.WhitespacePattern=Ei;var qi=vi.InputScanner,Ti=ii.Token,Mi=Si.TokenStream,Ri=_i.WhitespacePattern,Ii={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},Oi=function(t,e){this._input=new qi(t),this._options=e||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new Ri(this._input)};Oi.prototype.tokenize=function(){var t;this._input.restart(),this.__tokens=new Mi,this._reset();for(var e=new Ti(Ii.START,""),i=null,n=[],o=new Mi;e.type!==Ii.EOF;){for(t=this._get_next_token(e,i);this._is_comment(t);)o.add(t),t=this._get_next_token(e,i);o.isEmpty()||(t.comments_before=o,o=new Mi),t.parent=i,this._is_opening(t)?(n.push(i),i=t):i&&this._is_closing(t,i)&&(t.opened=i,i.closed=t,i=n.pop(),t.parent=i),t.previous=e,e.next=t,this.__tokens.add(t),e=t}return this.__tokens},Oi.prototype._is_first_token=function(){return this.__tokens.isEmpty()},Oi.prototype._reset=function(){},Oi.prototype._get_next_token=function(t,e){this._readWhitespace();var i=this._input.read(/.+/g);return i?this._create_token(Ii.RAW,i):this._create_token(Ii.EOF,"")},Oi.prototype._is_comment=function(t){return!1},Oi.prototype._is_opening=function(t){return!1},Oi.prototype._is_closing=function(t,e){return!1},Oi.prototype._create_token=function(t,e){return new Ti(t,e,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token)},Oi.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},wi.Tokenizer=Oi,wi.TOKEN=Ii;var $i={};function Bi(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")}Bi.prototype.get_directives=function(t){if(!t.match(this.__directives_block_pattern))return null;var e={};this.__directive_pattern.lastIndex=0;for(var i=this.__directive_pattern.exec(t);i;)e[i[1]]=i[2],i=this.__directive_pattern.exec(t);return e},Bi.prototype.readIgnored=function(t){return t.readUntilAfter(this.__directives_end_ignore_pattern)},$i.Directives=Bi;var zi={},Pi=Ci.Pattern,Di={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1};function Ni(t,e){Pi.call(this,t,e),this.__template_pattern=null,this._disabled=Object.assign({},Di),this._excluded=Object.assign({},Di),e&&(this.__template_pattern=this._input.get_regexp(e.__template_pattern),this._excluded=Object.assign(this._excluded,e._excluded),this._disabled=Object.assign(this._disabled,e._disabled));var i=new Pi(t);this.__patterns={handlebars_comment:i.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:i.starting_with(/{{{/).until_after(/}}}/),handlebars:i.starting_with(/{{/).until_after(/}}/),php:i.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:i.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:i.starting_with(/{%/).until_after(/%}/),django_value:i.starting_with(/{{/).until_after(/}}/),django_comment:i.starting_with(/{#/).until_after(/#}/),smarty:i.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:i.starting_with(/{\*/).until_after(/\*}/),smarty_literal:i.starting_with(/{literal}/).until_after(/{\/literal}/)}}Ni.prototype=new Pi,Ni.prototype._create=function(){return new Ni(this._input,this)},Ni.prototype._update=function(){this.__set_templated_pattern()},Ni.prototype.disable=function(t){var e=this._create();return e._disabled[t]=!0,e._update(),e},Ni.prototype.read_options=function(t){var e=this._create();for(var i in Di)e._disabled[i]=-1===t.templating.indexOf(i);return e._update(),e},Ni.prototype.exclude=function(t){var e=this._create();return e._excluded[t]=!0,e._update(),e},Ni.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},Ni.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("|")+")")},Ni.prototype._read_template=function(){var t="",e=this._input.peek();if("<"===e){var i=this._input.peek(1);this._disabled.php||this._excluded.php||"?"!==i||(t=t||this.__patterns.php.read()),this._disabled.erb||this._excluded.erb||"%"!==i||(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},zi.TemplatablePattern=Ni;var Hi=vi.InputScanner,ji=wi.Tokenizer,Fi=wi.TOKEN,Ui=$i.Directives,Wi=ri,Gi=Ci.Pattern,Yi=zi.TemplatablePattern;function Xi(t,e){return-1!==e.indexOf(t)}var Vi={START_EXPR:"TK_START_EXPR",END_EXPR:"TK_END_EXPR",START_BLOCK:"TK_START_BLOCK",END_BLOCK:"TK_END_BLOCK",WORD:"TK_WORD",RESERVED:"TK_RESERVED",SEMICOLON:"TK_SEMICOLON",STRING:"TK_STRING",EQUALS:"TK_EQUALS",OPERATOR:"TK_OPERATOR",COMMA:"TK_COMMA",BLOCK_COMMENT:"TK_BLOCK_COMMENT",COMMENT:"TK_COMMENT",DOT:"TK_DOT",UNKNOWN:"TK_UNKNOWN",START:Fi.START,RAW:Fi.RAW,EOF:Fi.EOF},Ki=new Ui(/\/\*/,/\*\//),Zi=/0[xX][0123456789abcdefABCDEF_]*n?|0[oO][01234567_]*n?|0[bB][01_]*n?|\d[\d_]*n|(?:\.\d[\d_]*|\d[\d_]*\.?[\d_]*)(?:[eE][+-]?[\d_]+)?/,Qi=/[0-9]/,Ji=/[^\d\.]/,tn=">>> === !== << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "),en=">>>= ... >>= <<= === >>> !== **= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";en=(en="\\?\\.(?!\\d) "+(en=en.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"))).replace(/ /g,"|");var nn,on=new RegExp(en),sn="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),ln=sn.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as"]),an=new RegExp("^(?:"+ln.join("|")+")$"),rn=function(t,e){ji.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 i=new Gi(this._input),n=new Yi(this._input).read_options(this._options);this.__patterns={template:n,identifier:n.starting_with(Wi.identifier).matching(Wi.identifierMatch),number:i.matching(Zi),punct:i.matching(on),comment:i.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:i.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:i.matching(/<!--/),html_comment_end:i.matching(/-->/),include:i.starting_with(/#include/).until_after(Wi.lineBreak),shebang:i.starting_with(/#!/).until_after(Wi.lineBreak),xml:i.matching(/[\s\S]*?<(\/?)([-a-zA-Z:0-9_.]+|{[\s\S]+?}|!\[CDATA\[[\s\S]*?\]\]|)(\s+{[\s\S]+?}|\s+[-a-zA-Z:0-9_.]+|\s+[-a-zA-Z:0-9_.]+\s*=\s*('[^']*'|"[^"]*"|{[\s\S]+?}))*\s*(\/?)\s*>/),single_quote:n.until(/['\\\n\r\u2028\u2029]/),double_quote:n.until(/["\\\n\r\u2028\u2029]/),template_text:n.until(/[`\\$]/),template_expression:n.until(/[`}\\]/)}};(rn.prototype=new ji)._is_comment=function(t){return t.type===Vi.COMMENT||t.type===Vi.BLOCK_COMMENT||t.type===Vi.UNKNOWN},rn.prototype._is_opening=function(t){return t.type===Vi.START_BLOCK||t.type===Vi.START_EXPR},rn.prototype._is_closing=function(t,e){return(t.type===Vi.END_BLOCK||t.type===Vi.END_EXPR)&&e&&("]"===t.text&&"["===e.text||")"===t.text&&"("===e.text||"}"===t.text&&"{"===e.text)},rn.prototype._reset=function(){nn=!1},rn.prototype._get_next_token=function(t,e){var i=null;this._readWhitespace();var n=this._input.peek();return null===n?this._create_token(Vi.EOF,""):i=(i=(i=(i=(i=(i=(i=(i=(i=i||this._read_non_javascript(n))||this._read_string(n))||this._read_word(t))||this._read_singles(n))||this._read_comment(n))||this._read_regexp(n,t))||this._read_xml(n,t))||this._read_punctuation())||this._create_token(Vi.UNKNOWN,this._input.next())},rn.prototype._read_word=function(t){var e;return""!==(e=this.__patterns.identifier.read())?(e=e.replace(Wi.allLineBreaks,"\n"),t.type!==Vi.DOT&&(t.type!==Vi.RESERVED||"set"!==t.text&&"get"!==t.text)&&an.test(e)?"in"===e||"of"===e?this._create_token(Vi.OPERATOR,e):this._create_token(Vi.RESERVED,e):this._create_token(Vi.WORD,e)):""!==(e=this.__patterns.number.read())?this._create_token(Vi.WORD,e):void 0},rn.prototype._read_singles=function(t){var e=null;return"("===t||"["===t?e=this._create_token(Vi.START_EXPR,t):")"===t||"]"===t?e=this._create_token(Vi.END_EXPR,t):"{"===t?e=this._create_token(Vi.START_BLOCK,t):"}"===t?e=this._create_token(Vi.END_BLOCK,t):";"===t?e=this._create_token(Vi.SEMICOLON,t):"."===t&&Ji.test(this._input.peek(1))?e=this._create_token(Vi.DOT,t):","===t&&(e=this._create_token(Vi.COMMA,t)),e&&this._input.next(),e},rn.prototype._read_punctuation=function(){var t=this.__patterns.punct.read();if(""!==t)return"="===t?this._create_token(Vi.EQUALS,t):"?."===t?this._create_token(Vi.DOT,t):this._create_token(Vi.OPERATOR,t)},rn.prototype._read_non_javascript=function(t){var e="";if("#"===t){if(this._is_first_token()&&(e=this.__patterns.shebang.read()))return this._create_token(Vi.UNKNOWN,e.trim()+"\n");if(e=this.__patterns.include.read())return this._create_token(Vi.UNKNOWN,e.trim()+"\n");t=this._input.next();var i="#";if(this._input.hasNext()&&this._input.testChar(Qi)){do{i+=t=this._input.next()}while(this._input.hasNext()&&"#"!==t&&"="!==t);return"#"===t||("["===this._input.peek()&&"]"===this._input.peek(1)?(i+="[]",this._input.next(),this._input.next()):"{"===this._input.peek()&&"}"===this._input.peek(1)&&(i+="{}",this._input.next(),this._input.next())),this._create_token(Vi.WORD,i)}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(Wi.newline);)e+=this._input.next();return nn=!0,this._create_token(Vi.COMMENT,e)}}else if(nn&&"-"===t&&(e=this.__patterns.html_comment_end.read()))return nn=!1,this._create_token(Vi.COMMENT,e);return null},rn.prototype._read_comment=function(t){var e=null;if("/"===t){var i="";if("*"===this._input.peek(1)){i=this.__patterns.block_comment.read();var n=Ki.get_directives(i);n&&"start"===n.ignore&&(i+=Ki.readIgnored(this._input)),i=i.replace(Wi.allLineBreaks,"\n"),(e=this._create_token(Vi.BLOCK_COMMENT,i)).directives=n}else"/"===this._input.peek(1)&&(i=this.__patterns.comment.read(),e=this._create_token(Vi.COMMENT,i))}return e},rn.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="",i=0,n=new Hi(t),o=null;for(;n.hasNext();)if((o=n.match(/([\s]|[^\\]|\\\\)+/g))&&(e+=o[0]),"\\"===n.peek()){if(n.next(),"x"===n.peek())o=n.match(/x([0-9A-Fa-f]{2})/g);else{if("u"!==n.peek()){e+="\\",n.hasNext()&&(e+=n.next());continue}o=n.match(/u([0-9A-Fa-f]{4})/g)}if(!o)return t;if((i=parseInt(o[1],16))>126&&i<=255&&0===o[0].indexOf("x"))return t;if(i>=0&&i<32){e+="\\"+o[0];continue}e+=34===i||39===i||92===i?"\\"+String.fromCharCode(i):String.fromCharCode(i)}return e}(e)),this._input.peek()===t&&(e+=this._input.next()),e=e.replace(Wi.allLineBreaks,"\n"),this._create_token(Vi.STRING,e)}return null},rn.prototype._allow_regexp_or_xml=function(t){return t.type===Vi.RESERVED&&Xi(t.text,["return","case","throw","else","do","typeof","yield"])||t.type===Vi.END_EXPR&&")"===t.text&&t.opened.previous.type===Vi.RESERVED&&Xi(t.opened.previous.text,["if","while","for"])||Xi(t.type,[Vi.COMMENT,Vi.START_EXPR,Vi.START_BLOCK,Vi.START,Vi.END_BLOCK,Vi.OPERATOR,Vi.EQUALS,Vi.EOF,Vi.SEMICOLON,Vi.COMMA])},rn.prototype._read_regexp=function(t,e){if("/"===t&&this._allow_regexp_or_xml(e)){for(var i=this._input.next(),n=!1,o=!1;this._input.hasNext()&&(n||o||this._input.peek()!==t)&&!this._input.testChar(Wi.newline);)i+=this._input.peek(),n?n=!1:(n="\\"===this._input.peek(),"["===this._input.peek()?o=!0:"]"===this._input.peek()&&(o=!1)),this._input.next();return this._input.peek()===t&&(i+=this._input.next(),i+=this._input.read(Wi.identifier)),this._create_token(Vi.STRING,i)}return null},rn.prototype._read_xml=function(t,e){if(this._options.e4x&&"<"===t&&this._allow_regexp_or_xml(e)){var i="",n=this.__patterns.xml.read_match();if(n){for(var o=n[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),s=0===o.indexOf("{"),l=0;n;){var a=!!n[1],r=n[2];if(!(!!n[n.length-1]||"![CDATA["===r.slice(0,8))&&(r===o||s&&r.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(a?--l:++l),i+=n[0],l<=0)break;n=this.__patterns.xml.read_match()}return n||(i+=this._input.match(/[\s\S]*/g)[0]),i=i.replace(Wi.allLineBreaks,"\n"),this._create_token(Vi.STRING,i)}}return null},rn.prototype._read_string_recursive=function(t,e,i){var n,o;"'"===t?o=this.__patterns.single_quote:'"'===t?o=this.__patterns.double_quote:"`"===t?o=this.__patterns.template_text:"}"===t&&(o=this.__patterns.template_expression);for(var s=o.read(),l="";this._input.hasNext();){if((l=this._input.next())===t||!e&&Wi.newline.test(l)){this._input.back();break}"\\"===l&&this._input.hasNext()?("x"===(n=this._input.peek())||"u"===n?this.has_char_escapes=!0:"\r"===n&&"\n"===this._input.peek(1)&&this._input.next(),l+=this._input.next()):i&&("${"===i&&"$"===l&&"{"===this._input.peek()&&(l+=this._input.next()),i===l&&(l+="`"===t?this._read_string_recursive("}",e,"`"):this._read_string_recursive("`",e,"${"),this._input.hasNext()&&(l+=this._input.next()))),s+=l+=o.read()}return s},fi.Tokenizer=rn,fi.TOKEN=Vi,fi.positionable_operators=tn.slice(),fi.line_starters=sn.slice();var cn=Qe.Output,un=ii.Token,dn=ri,bn=ci.Options,pn=fi.Tokenizer,hn=fi.line_starters,gn=fi.positionable_operators,mn=fi.TOKEN;function fn(t,e){return-1!==e.indexOf(t)}function vn(t,e){return t&&t.type===mn.RESERVED&&t.text===e}function yn(t,e){return t&&t.type===mn.RESERVED&&fn(t.text,e)}var xn=["case","return","do","if","throw","else","await","break","continue","async"],wn=function(t){for(var e={},i=0;i<t.length;i++)e[t[i].replace(/-/g,"_")]=t[i];return e}(["before-newline","after-newline","preserve-newline"]),Sn=[wn.before_newline,wn.preserve_newline],kn="BlockStatement",_n="Statement",Cn="ObjectLiteral",Ln="ArrayLiteral",An="ForInitializer",En="Conditional",qn="Expression";function Tn(t,e){e.multiline_frame||e.mode===An||e.mode===En||t.remove_indent(e.start_line_index)}function Mn(t){return t===Ln}function Rn(t){return fn(t,[qn,An,En])}function In(t,e){e=e||{},this._source_text=t||"",this._output=null,this._tokens=null,this._last_last_text=null,this._flags=null,this._previous_flags=null,this._flag_store=null,this._options=new bn(e)}In.prototype.create_flags=function(t,e){var i=0;return t&&(i=t.indentation_level,!this._output.just_added_newline()&&t.line_indent_level>i&&(i=t.line_indent_level)),{mode:e,parent:t,last_token:t?t.last_token:new un(mn.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,do_block:!1,do_while:!1,import_block:!1,in_case_statement:!1,in_case:!1,case_body:!1,indentation_level:i,alignment:0,line_indent_level:t?t.line_indent_level:i,start_line_index:this._output.get_line_number(),ternary_depth:0}},In.prototype._reset=function(t){var e=t.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new cn(this._options,e),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(kn);var i=new pn(t,this._options);return this._tokens=i.tokenize(),t},In.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&&dn.lineBreak.test(t||"")&&(e=t.match(dn.lineBreak)[0]));for(var i=this._tokens.next();i;)this.handle_token(i),this._last_last_text=this._flags.last_token.text,this._flags.last_token=i,i=this._tokens.next();return this._output.get_code(e)},In.prototype.handle_token=function(t,e){t.type===mn.START_EXPR?this.handle_start_expr(t):t.type===mn.END_EXPR?this.handle_end_expr(t):t.type===mn.START_BLOCK?this.handle_start_block(t):t.type===mn.END_BLOCK?this.handle_end_block(t):t.type===mn.WORD||t.type===mn.RESERVED?this.handle_word(t):t.type===mn.SEMICOLON?this.handle_semicolon(t):t.type===mn.STRING?this.handle_string(t):t.type===mn.EQUALS?this.handle_equals(t):t.type===mn.OPERATOR?this.handle_operator(t):t.type===mn.COMMA?this.handle_comma(t):t.type===mn.BLOCK_COMMENT?this.handle_block_comment(t,e):t.type===mn.COMMENT?this.handle_comment(t,e):t.type===mn.DOT?this.handle_dot(t):t.type===mn.EOF?this.handle_eof(t):(t.type,mn.UNKNOWN,this.handle_unknown(t,e))},In.prototype.handle_whitespace_and_comments=function(t,e){var i=t.newlines,n=this._options.keep_array_indentation&&Mn(this._flags.mode);if(t.comments_before)for(var o=t.comments_before.next();o;)this.handle_whitespace_and_comments(o,e),this.handle_token(o,e),o=t.comments_before.next();if(n)for(var s=0;s<i;s+=1)this.print_newline(s>0,e);else if(this._options.max_preserve_newlines&&i>this._options.max_preserve_newlines&&(i=this._options.max_preserve_newlines),this._options.preserve_newlines&&i>1){this.print_newline(!1,e);for(var l=1;l<i;l+=1)this.print_newline(!0,e)}};var On=["async","break","continue","return","throw","yield"];In.prototype.allow_wrap_or_preserved_newline=function(t,e){if(e=void 0!==e&&e,!this._output.just_added_newline()){var i=this._options.preserve_newlines&&t.newlines||e;if(fn(this._flags.last_token.text,gn)||fn(t.text,gn)){var n=fn(this._flags.last_token.text,gn)&&fn(this._options.operator_position,Sn)||fn(t.text,gn);i=i&&n}if(i)this.print_newline(!1,!0);else if(this._options.wrap_line_length){if(yn(this._flags.last_token,On))return;this._output.set_wrap_point()}}},In.prototype.print_newline=function(t,e){if(!e&&";"!==this._flags.last_token.text&&","!==this._flags.last_token.text&&"="!==this._flags.last_token.text&&(this._flags.last_token.type!==mn.OPERATOR||"--"===this._flags.last_token.text||"++"===this._flags.last_token.text))for(var i=this._tokens.peek();!(this._flags.mode!==_n||this._flags.if_block&&vn(i,"else")||this._flags.do_block);)this.restore_mode();this._output.add_new_line(t)&&(this._flags.multiline_frame=!0)},In.prototype.print_token_line_indentation=function(t){this._output.just_added_newline()&&(this._options.keep_array_indentation&&t.newlines&&("["===t.text||Mn(this._flags.mode))?(this._output.current_line.set_indent(-1),this._output.current_line.push(t.whitespace_before),this._output.space_before_token=!1):this._output.set_indent(this._flags.indentation_level,this._flags.alignment)&&(this._flags.line_indent_level=this._flags.indentation_level))},In.prototype.print_token=function(t){if(this._output.raw)this._output.add_raw_token(t);else{if(this._options.comma_first&&t.previous&&t.previous.type===mn.COMMA&&this._output.just_added_newline()&&","===this._output.previous_line.last()){var e=this._output.previous_line.pop();this._output.previous_line.is_empty()&&(this._output.previous_line.push(e),this._output.trim(!0),this._output.current_line.pop(),this._output.trim()),this.print_token_line_indentation(t),this._output.add_token(","),this._output.space_before_token=!0}this.print_token_line_indentation(t),this._output.non_breaking_space=!0,this._output.add_token(t.text),this._output.previous_token_wrapped&&(this._flags.multiline_frame=!0)}},In.prototype.indent=function(){this._flags.indentation_level+=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},In.prototype.deindent=function(){this._flags.indentation_level>0&&(!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))},In.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)},In.prototype.restore_mode=function(){this._flag_store.length>0&&(this._previous_flags=this._flags,this._flags=this._flag_store.pop(),this._previous_flags.mode===_n&&Tn(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},In.prototype.start_of_object_property=function(){return this._flags.parent.mode===Cn&&this._flags.mode===_n&&(":"===this._flags.last_token.text&&0===this._flags.ternary_depth||yn(this._flags.last_token,["get","set"]))},In.prototype.start_of_statement=function(t){var e=!1;return!!(e=(e=(e=(e=(e=(e=(e=e||yn(this._flags.last_token,["var","let","const"])&&t.type===mn.WORD)||vn(this._flags.last_token,"do"))||!(this._flags.parent.mode===Cn&&this._flags.mode===_n)&&yn(this._flags.last_token,On)&&!t.newlines)||vn(this._flags.last_token,"else")&&!(vn(t,"if")&&!t.comments_before))||this._flags.last_token.type===mn.END_EXPR&&(this._previous_flags.mode===An||this._previous_flags.mode===En))||this._flags.last_token.type===mn.WORD&&this._flags.mode===kn&&!this._flags.in_case&&!("--"===t.text||"++"===t.text)&&"function"!==this._last_last_text&&t.type!==mn.WORD&&t.type!==mn.RESERVED)||this._flags.mode===Cn&&(":"===this._flags.last_token.text&&0===this._flags.ternary_depth||yn(this._flags.last_token,["get","set"])))&&(this.set_mode(_n),this.indent(),this.handle_whitespace_and_comments(t,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(t,yn(t,["do","for","if","while"])),!0)},In.prototype.handle_start_expr=function(t){this.start_of_statement(t)||this.handle_whitespace_and_comments(t);var e=qn;if("["===t.text){if(this._flags.last_token.type===mn.WORD||")"===this._flags.last_token.text)return yn(this._flags.last_token,hn)&&(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=Ln,Mn(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()),fn(this._flags.last_token.type,[mn.START_EXPR,mn.END_EXPR,mn.WORD,mn.OPERATOR,mn.DOT])||(this._output.space_before_token=!0)}else{if(this._flags.last_token.type===mn.RESERVED)"for"===this._flags.last_token.text?(this._output.space_before_token=this._options.space_before_conditional,e=An):fn(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,e=En):fn(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:(fn(this._flags.last_token.text,hn)||"catch"===this._flags.last_token.text)&&(this._output.space_before_token=!0);else if(this._flags.last_token.type===mn.EQUALS||this._flags.last_token.type===mn.OPERATOR)this.start_of_object_property()||this.allow_wrap_or_preserved_newline(t);else if(this._flags.last_token.type===mn.WORD){this._output.space_before_token=!1;var i=this._tokens.peek(-3);if(this._options.space_after_named_function&&i){var n=this._tokens.peek(-4);yn(i,["async","function"])||"*"===i.text&&yn(n,["async","function"])?this._output.space_before_token=!0:this._flags.mode===Cn&&("{"!==i.text&&","!==i.text&&("*"!==i.text||"{"!==n.text&&","!==n.text)||(this._output.space_before_token=!0))}}else this.allow_wrap_or_preserved_newline(t);(this._flags.last_token.type===mn.RESERVED&&("function"===this._flags.last_word||"typeof"===this._flags.last_word)||"*"===this._flags.last_token.text&&(fn(this._last_last_text,["function","yield"])||this._flags.mode===Cn&&fn(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===mn.START_BLOCK?this.print_newline():this._flags.last_token.type!==mn.END_EXPR&&this._flags.last_token.type!==mn.START_EXPR&&this._flags.last_token.type!==mn.END_BLOCK&&"."!==this._flags.last_token.text&&this._flags.last_token.type!==mn.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()},In.prototype.handle_end_expr=function(t){for(;this._flags.mode===_n;)this.restore_mode();this.handle_whitespace_and_comments(t),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(t,"]"===t.text&&Mn(this._flags.mode)&&!this._options.keep_array_indentation),this._options.space_in_paren&&(this._flags.last_token.type!==mn.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(),Tn(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===En&&(this._previous_flags.mode=qn,this._flags.do_block=!1,this._flags.do_while=!1)},In.prototype.handle_start_block=function(t){this.handle_whitespace_and_comments(t);var e=this._tokens.peek(),i=this._tokens.peek(1);"switch"===this._flags.last_word&&this._flags.last_token.type===mn.END_EXPR?(this.set_mode(kn),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(kn):i&&(fn(i.text,[":",","])&&fn(e.type,[mn.STRING,mn.WORD,mn.RESERVED])||fn(e.text,["get","set","..."])&&fn(i.type,[mn.WORD,mn.RESERVED]))?fn(this._last_last_text,["class","interface"])?this.set_mode(kn):this.set_mode(Cn):this._flags.last_token.type===mn.OPERATOR&&"=>"===this._flags.last_token.text?this.set_mode(kn):fn(this._flags.last_token.type,[mn.EQUALS,mn.START_EXPR,mn.COMMA,mn.OPERATOR])||yn(this._flags.last_token,["return","throw","import","default"])?this.set_mode(Cn):this.set_mode(kn);var n=!e.comments_before&&"}"===e.text,o=n&&"function"===this._flags.last_word&&this._flags.last_token.type===mn.END_EXPR;if(this._options.brace_preserve_inline){var s=0,l=null;this._flags.inline_frame=!0;do{if(s+=1,(l=this._tokens.peek(s-1)).newlines){this._flags.inline_frame=!1;break}}while(l.type!==mn.EOF&&(l.type!==mn.END_BLOCK||l.opened!==t))}("expand"===this._options.brace_style||"none"===this._options.brace_style&&t.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==mn.OPERATOR&&(o||this._flags.last_token.type===mn.EQUALS||yn(this._flags.last_token,xn)&&"else"!==this._flags.last_token.text)?this._output.space_before_token=!0:this.print_newline(!1,!0):(!Mn(this._previous_flags.mode)||this._flags.last_token.type!==mn.START_EXPR&&this._flags.last_token.type!==mn.COMMA||((this._flags.last_token.type===mn.COMMA||this._options.space_in_paren)&&(this._output.space_before_token=!0),(this._flags.last_token.type===mn.COMMA||this._flags.last_token.type===mn.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!==mn.OPERATOR&&this._flags.last_token.type!==mn.START_EXPR&&(this._flags.last_token.type!==mn.START_BLOCK||this._flags.inline_frame?this._output.space_before_token=!0:this.print_newline())),this.print_token(t),this.indent(),n||this._options.brace_preserve_inline&&this._flags.inline_frame||this.print_newline()},In.prototype.handle_end_block=function(t){for(this.handle_whitespace_and_comments(t);this._flags.mode===_n;)this.restore_mode();var e=this._flags.last_token.type===mn.START_BLOCK;this._flags.inline_frame&&!e?this._output.space_before_token=!0:"expand"===this._options.brace_style?e||this.print_newline():e||(Mn(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)},In.prototype.handle_word=function(t){if(t.type===mn.RESERVED)if(fn(t.text,["set","get"])&&this._flags.mode!==Cn)t.type=mn.WORD;else if("import"===t.text&&"("===this._tokens.peek().text)t.type=mn.WORD;else if(fn(t.text,["as","from"])&&!this._flags.import_block)t.type=mn.WORD;else if(this._flags.mode===Cn){":"===this._tokens.peek().text&&(t.type=mn.WORD)}if(this.start_of_statement(t)?yn(this._flags.last_token,["var","let","const"])&&t.type===mn.WORD&&(this._flags.declaration_statement=!0):!t.newlines||Rn(this._flags.mode)||this._flags.last_token.type===mn.OPERATOR&&"--"!==this._flags.last_token.text&&"++"!==this._flags.last_token.text||this._flags.last_token.type===mn.EQUALS||!this._options.preserve_newlines&&yn(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(vn(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&&vn(t,"else"))this._flags.else_block=!0;else{for(;this._flags.mode===_n;)this.restore_mode();this._flags.if_block=!1,this._flags.else_block=!1}if(this._flags.in_case_statement&&yn(t,["case","default"]))return this.print_newline(),this._flags.last_token.type!==mn.END_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!==mn.COMMA&&this._flags.last_token.type!==mn.START_EXPR&&this._flags.last_token.type!==mn.EQUALS&&this._flags.last_token.type!==mn.OPERATOR||this.start_of_object_property()||this.allow_wrap_or_preserved_newline(t),vn(t,"function"))return(fn(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!fn(this._flags.last_token.text,["(","[","{",":","=",","])&&this._flags.last_token.type!==mn.OPERATOR)&&(this._output.just_added_blankline()||t.comments_before||(this.print_newline(),this.print_newline(!0))),this._flags.last_token.type===mn.RESERVED||this._flags.last_token.type===mn.WORD?yn(this._flags.last_token,["get","set","new","export"])||yn(this._flags.last_token,On)||vn(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===mn.OPERATOR||"="===this._flags.last_token.text?this._output.space_before_token=!0:(this._flags.multiline_frame||!Rn(this._flags.mode)&&!Mn(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===mn.END_BLOCK?this._previous_flags.inline_frame?e="SPACE":yn(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===mn.SEMICOLON&&this._flags.mode===kn?e="NEWLINE":this._flags.last_token.type===mn.SEMICOLON&&Rn(this._flags.mode)?e="SPACE":this._flags.last_token.type===mn.STRING?e="NEWLINE":this._flags.last_token.type===mn.RESERVED||this._flags.last_token.type===mn.WORD||"*"===this._flags.last_token.text&&(fn(this._last_last_text,["function","yield"])||this._flags.mode===Cn&&fn(this._last_last_text,["{",","]))?e="SPACE":this._flags.last_token.type===mn.START_BLOCK?e=this._flags.inline_frame?"SPACE":"NEWLINE":this._flags.last_token.type===mn.END_EXPR&&(this._output.space_before_token=!0,e="NEWLINE"),yn(t,hn)&&")"!==this._flags.last_token.text&&(e=this._flags.inline_frame||"else"===this._flags.last_token.text||"export"===this._flags.last_token.text?"SPACE":"NEWLINE"),yn(t,["else","catch","finally"]))?(this._flags.last_token.type!==mn.END_BLOCK||this._previous_flags.mode!==kn||"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?yn(this._flags.last_token,xn)||"declare"===this._flags.last_token.text&&yn(t,["var","let","const"])?this._output.space_before_token=!0:this._flags.last_token.type!==mn.END_EXPR?this._flags.last_token.type===mn.START_EXPR&&yn(t,["var","let","const"])||":"===this._flags.last_token.text||(vn(t,"if")&&vn(t.previous,"else")?this._output.space_before_token=!0:this.print_newline()):yn(t,hn)&&")"!==this._flags.last_token.text&&this.print_newline():this._flags.multiline_frame&&Mn(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!==mn.WORD&&t.previous.type!==mn.RESERVED||(this._output.space_before_token=!0),this.print_token(t),this._flags.last_word=t.text,t.type===mn.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&&vn(t,"from")&&(this._flags.import_block=!1))},In.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!==_n||this._flags.if_block&&vn(e,"else")||this._flags.do_block);)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(t)},In.prototype.handle_string=function(t){(!t.text.startsWith("`")||0!==t.newlines||""!==t.whitespace_before||")"!==t.previous.text&&this._flags.last_token.type!==mn.WORD)&&(this.start_of_statement(t)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(t),this._flags.last_token.type===mn.RESERVED||this._flags.last_token.type===mn.WORD||this._flags.inline_frame?this._output.space_before_token=!0:this._flags.last_token.type===mn.COMMA||this._flags.last_token.type===mn.START_EXPR||this._flags.last_token.type===mn.EQUALS||this._flags.last_token.type===mn.OPERATOR?this.start_of_object_property()||this.allow_wrap_or_preserved_newline(t):!t.text.startsWith("`")||this._flags.last_token.type!==mn.END_EXPR||"]"!==t.previous.text&&")"!==t.previous.text||0!==t.newlines?this.print_newline():this._output.space_before_token=!0)),this.print_token(t)},In.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},In.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?(Rn(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===Cn||this._flags.mode===_n&&this._flags.parent.mode===Cn?(this._flags.mode===_n&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(t)},In.prototype.handle_operator=function(t){var e="*"===t.text&&(yn(this._flags.last_token,["function","yield"])||fn(this._flags.last_token.type,[mn.START_BLOCK,mn.COMMA,mn.END_BLOCK,mn.SEMICOLON])),i=fn(t.text,["-","+"])&&(fn(this._flags.last_token.type,[mn.START_BLOCK,mn.START_EXPR,mn.EQUALS,mn.OPERATOR])||fn(this._flags.last_token.text,hn)||","===this._flags.last_token.text);if(this.start_of_statement(t));else{var n=!e;this.handle_whitespace_and_comments(t,n)}if(yn(this._flags.last_token,xn))return this._output.space_before_token=!0,void this.print_token(t);if("*"!==t.text||this._flags.last_token.type!==mn.DOT)if("::"!==t.text){if(this._flags.last_token.type===mn.OPERATOR&&fn(this._options.operator_position,Sn)&&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!==mn.START_BLOCK?(this.indent(),this.print_newline()):this._output.space_before_token=!0);var o=!0,s=!0,l=!1;if(":"===t.text?0===this._flags.ternary_depth?o=!1:(this._flags.ternary_depth-=1,l=!0):"?"===t.text&&(this._flags.ternary_depth+=1),!i&&!e&&this._options.preserve_newlines&&fn(t.text,gn)){var a=":"===t.text,r=a&&l,c=a&&!l;switch(this._options.operator_position){case wn.before_newline:return this._output.space_before_token=!c,this.print_token(t),a&&!r||this.allow_wrap_or_preserved_newline(t),void(this._output.space_before_token=!0);case wn.after_newline:return this._output.space_before_token=!0,!a||r?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 wn.preserve_newline:return c||this.allow_wrap_or_preserved_newline(t),o=!(this._output.just_added_newline()||c),this._output.space_before_token=o,this.print_token(t),void(this._output.space_before_token=!0)}}if(e){this.allow_wrap_or_preserved_newline(t),o=!1;var u=this._tokens.peek();s=u&&fn(u.type,[mn.WORD,mn.RESERVED])}else"..."===t.text?(this.allow_wrap_or_preserved_newline(t),o=this._flags.last_token.type===mn.START_BLOCK,s=!1):(fn(t.text,["--","++","!","~"])||i)&&(this._flags.last_token.type!==mn.COMMA&&this._flags.last_token.type!==mn.START_EXPR||this.allow_wrap_or_preserved_newline(t),o=!1,s=!1,!t.newlines||"--"!==t.text&&"++"!==t.text||this.print_newline(!1,!0),";"===this._flags.last_token.text&&Rn(this._flags.mode)&&(o=!0),this._flags.last_token.type===mn.RESERVED?o=!0:this._flags.last_token.type===mn.END_EXPR?o=!("]"===this._flags.last_token.text&&("--"===t.text||"++"===t.text)):this._flags.last_token.type===mn.OPERATOR&&(o=fn(t.text,["--","-","++","+"])&&fn(this._flags.last_token.text,["--","-","++","+"]),fn(t.text,["+","-"])&&fn(this._flags.last_token.text,["--","++"])&&(s=!0)),(this._flags.mode!==kn||this._flags.inline_frame)&&this._flags.mode!==_n||"{"!==this._flags.last_token.text&&";"!==this._flags.last_token.text||this.print_newline());this._output.space_before_token=this._output.space_before_token||o,this.print_token(t),this._output.space_before_token=s}else this.print_token(t);else this.print_token(t)},In.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)):dn.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))},In.prototype.print_block_commment=function(t,e){var i,n=function(t){for(var e=[],i=(t=t.replace(dn.allLineBreaks,"\n")).indexOf("\n");-1!==i;)e.push(t.substring(0,i)),i=(t=t.substring(i+1)).indexOf("\n");return t.length&&e.push(t),e}(t.text),o=!1,s=!1,l=t.whitespace_before,a=l.length;if(this.print_newline(!1,e),this.print_token_line_indentation(t),this._output.add_token(n[0]),this.print_newline(!1,e),n.length>1){for(o=function(t,e){for(var i=0;i<t.length;i++)if(t[i].trim().charAt(0)!==e)return!1;return!0}(n=n.slice(1),"*"),s=function(t,e){for(var i,n=0,o=t.length;n<o;n++)if((i=t[n])&&0!==i.indexOf(e))return!1;return!0}(n,l),o&&(this._flags.alignment=1),i=0;i<n.length;i++)o?(this.print_token_line_indentation(t),this._output.add_token(n[i].replace(/^\s+/g,""))):s&&n[i]?(this.print_token_line_indentation(t),this._output.add_token(n[i].substring(a))):(this._output.current_line.set_indent(-1),this._output.add_token(n[i])),this.print_newline(!1,e);this._flags.alignment=0}},In.prototype.handle_comment=function(t,e){t.newlines?this.print_newline(!1,e):this._output.trim(!0),this._output.space_before_token=!0,this.print_token(t),this.print_newline(!1,e)},In.prototype.handle_dot=function(t){this.start_of_statement(t)||this.handle_whitespace_and_comments(t,!0),yn(this._flags.last_token,xn)?this._output.space_before_token=!1:this.allow_wrap_or_preserved_newline(t,")"===this._flags.last_token.text&&this._options.break_chained_methods),this._options.unindent_chained_methods&&this._output.just_added_newline()&&this.deindent(),this.print_token(t)},In.prototype.handle_unknown=function(t,e){this.print_token(t),"\n"===t.text[t.text.length-1]&&this.print_newline(!1,e)},In.prototype.handle_eof=function(t){for(;this._flags.mode===_n;)this.restore_mode();this.handle_whitespace_and_comments(t)},Ze.Beautifier=In;var $n=Ze.Beautifier,Bn=ci.Options;Ke.exports=function(t,e){return new $n(t,e).beautify()},Ke.exports.defaultOptions=function(){return new Bn};var zn={exports:{}},Pn={},Dn={},Nn=ui.Options;function Hn(t){Nn.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 i=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var n=0;n<i.length;n++)"expand"!==i[n]?this.brace_style="collapse":this.brace_style=i[n]}Hn.prototype=new Nn,Dn.Options=Hn;var jn=Dn.Options,Fn=Qe.Output,Un=vi.InputScanner,Wn=new(0,$i.Directives)(/\/\*/,/\*\//),Gn=/\r\n|[\r\n]/,Yn=/\r\n|[\r\n]/g,Xn=/\s/,Vn=/(?:\s|\n)+/g,Kn=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,Zn=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function Qn(t,e){this._source_text=t||"",this._options=new jn(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}}Qn.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},Qn.prototype.eatWhitespace=function(t){for(var e=Xn.test(this._input.peek()),i=0;Xn.test(this._input.peek());)this._ch=this._input.next(),t&&"\n"===this._ch&&(0===i||i<this._options.max_preserve_newlines)&&(i++,this._output.add_new_line(!0));return e},Qn.prototype.foundNestedPseudoClass=function(){for(var t=0,e=1,i=this._input.peek(e);i;){if("{"===i)return!0;if("("===i)t+=1;else if(")"===i){if(0===t)return!1;t-=1}else if(";"===i||"}"===i)return!1;e++,i=this._input.peek(e)}return!1},Qn.prototype.print_string=function(t){this._output.set_indent(this._indentLevel),this._output.non_breaking_space=!0,this._output.add_token(t)},Qn.prototype.preserveSingleSpace=function(t){t&&(this._output.space_before_token=!0)},Qn.prototype.indent=function(){this._indentLevel++},Qn.prototype.outdent=function(){this._indentLevel>0&&this._indentLevel--},Qn.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&&Gn.test(t||"")&&(e=t.match(Gn)[0]));var i=(t=t.replace(Yn,"\n")).match(/^[\t ]*/)[0];this._output=new Fn(this._options,i),this._input=new Un(t),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var n,o,s=0,l=!1,a=!1,r=!1,c=!1,u=!1,d=this._ch;n=""!==this._input.read(Vn),o=d,this._ch=this._input.next(),"\\"===this._ch&&this._input.hasNext()&&(this._ch+=this._input.next()),d=this._ch,this._ch;)if("/"===this._ch&&"*"===this._input.peek()){this._output.add_new_line(),this._input.back();var b=this._input.read(Kn),p=Wn.get_directives(b);p&&"start"===p.ignore&&(b+=Wn.readIgnored(this._input)),this.print_string(b),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(Zn)),this.eatWhitespace(!0);else if("@"===this._ch)if(this.preserveSingleSpace(n),"{"===this._input.peek())this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var h=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);h.match(/[ :]$/)&&(h=this.eatString(": ").replace(/\s$/,""),this.print_string(h),this._output.space_before_token=!0),"extend"===(h=h.replace(/\s$/,""))?c=!0:"import"===h&&(u=!0),h in this.NESTED_AT_RULE?(this._nestedLevel+=1,h in this.CONDITIONAL_GROUP_RULE&&(r=!0)):l||0!==s||-1===h.indexOf(":")||(a=!0,this.indent())}else"#"===this._ch&&"{"===this._input.peek()?(this.preserveSingleSpace(n),this.print_string(this._ch+this.eatString("}"))):"{"===this._ch?(a&&(a=!1,this.outdent()),r?(r=!1,l=this._indentLevel>=this._nestedLevel):l=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&l&&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)):(this.indent(),this.print_string(this._ch)),this.eatWhitespace(!0),this._output.add_new_line()):"}"===this._ch?(this.outdent(),this._output.add_new_line(),"{"===o&&this._output.trim(!0),u=!1,c=!1,a&&(this.outdent(),a=!1),this.print_string(this._ch),l=!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._ch?!l&&!r||this._input.lookBack("&")||this.foundNestedPseudoClass()||this._input.lookBack("(")||c||0!==s?(this._input.lookBack(" ")&&(this._output.space_before_token=!0),":"===this._input.peek()?(this._ch=this._input.next(),this.print_string("::")):this.print_string(":")):(this.print_string(":"),a||(a=!0,this._output.space_before_token=!0,this.eatWhitespace(!0),this.indent())):'"'===this._ch||"'"===this._ch?(this.preserveSingleSpace(n),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)):";"===this._ch?0===s?(a&&(this.outdent(),a=!1),c=!1,u=!1,this.print_string(this._ch),this.eatWhitespace(!0),"/"!==this._input.peek()&&this._output.add_new_line()):(this.print_string(this._ch),this.eatWhitespace(!0),this._output.space_before_token=!0):"("===this._ch?this._input.lookBack("url")?(this.print_string(this._ch),this.eatWhitespace(),s++,this.indent(),this._ch=this._input.next(),")"===this._ch||'"'===this._ch||"'"===this._ch?this._input.back():this._ch&&(this.print_string(this._ch+this.eatString(")")),s&&(s--,this.outdent()))):(this.preserveSingleSpace(n),this.print_string(this._ch),this.eatWhitespace(),s++,this.indent()):")"===this._ch?(s&&(s--,this.outdent()),this.print_string(this._ch)):","===this._ch?(this.print_string(this._ch),this.eatWhitespace(!0),!this._options.selector_separator_newline||a||0!==s||u||c?this._output.space_before_token=!0:this._output.add_new_line()):">"!==this._ch&&"+"!==this._ch&&"~"!==this._ch||a||0!==s?"]"===this._ch?this.print_string(this._ch):"["===this._ch?(this.preserveSingleSpace(n),this.print_string(this._ch)):"="===this._ch?(this.eatWhitespace(),this.print_string("="),Xn.test(this._ch)&&(this._ch="")):"!"!==this._ch||this._input.lookBack("\\")?(this.preserveSingleSpace(n),this.print_string(this._ch)):(this.print_string(" "),this.print_string(this._ch)):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&&Xn.test(this._ch)&&(this._ch=""));return this._output.get_code(e)},Pn.Beautifier=Qn;var Jn=Pn.Beautifier,to=Dn.Options;zn.exports=function(t,e){return new Jn(t,e).beautify()},zn.exports.defaultOptions=function(){return new to};var eo={exports:{}},io={},no={},oo=ui.Options;function so(t){oo.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_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.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"])}so.prototype=new oo,no.Options=so;var lo={},ao=wi.Tokenizer,ro=wi.TOKEN,co=$i.Directives,uo=zi.TemplatablePattern,bo=Ci.Pattern,po={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:ro.START,RAW:ro.RAW,EOF:ro.EOF},ho=new co(/<\!--/,/-->/),go=function(t,e){ao.call(this,t,e),this._current_tag_name="";var i=new uo(this._input).read_options(this._options),n=new bo(this._input);if(this.__patterns={word:i.until(/[\n\r\t <]/),single_quote:i.until_after(/'/),double_quote:i.until_after(/"/),attribute:i.until(/[\n\r\t =>]|\/>/),element_name:i.until(/[\n\r\t >\/]/),handlebars_comment:n.starting_with(/{{!--/).until_after(/--}}/),handlebars:n.starting_with(/{{/).until_after(/}}/),handlebars_open:n.until(/[\n\r\t }]/),handlebars_raw_close:n.until(/}}/),comment:n.starting_with(/<!--/).until_after(/-->/),cdata:n.starting_with(/<!\[CDATA\[/).until_after(/]]>/),conditional_comment:n.starting_with(/<!\[/).until_after(/]>/),processing:n.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 o=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=n.matching(o).until_after(o)}};(go.prototype=new ao)._is_comment=function(t){return!1},go.prototype._is_opening=function(t){return t.type===po.TAG_OPEN},go.prototype._is_closing=function(t,e){return t.type===po.TAG_CLOSE&&e&&((">"===t.text||"/>"===t.text)&&"<"===e.text[0]||"}}"===t.text&&"{"===e.text[0]&&"{"===e.text[1])},go.prototype._reset=function(){this._current_tag_name=""},go.prototype._get_next_token=function(t,e){var i=null;this._readWhitespace();var n=this._input.peek();return null===n?this._create_token(po.EOF,""):i=(i=(i=(i=(i=(i=(i=(i=(i=i||this._read_open_handlebars(n,e))||this._read_attribute(n,t,e))||this._read_close(n,e))||this._read_raw_content(n,t,e))||this._read_content_word(n))||this._read_comment_or_cdata(n))||this._read_processing(n))||this._read_open(n,e))||this._create_token(po.UNKNOWN,this._input.next())},go.prototype._read_comment_or_cdata=function(t){var e=null,i=null,n=null;"<"===t&&("!"===this._input.peek(1)&&((i=this.__patterns.comment.read())?(n=ho.get_directives(i))&&"start"===n.ignore&&(i+=ho.readIgnored(this._input)):i=this.__patterns.cdata.read()),i&&((e=this._create_token(po.COMMENT,i)).directives=n));return e},go.prototype._read_processing=function(t){var e=null,i=null;if("<"===t){var n=this._input.peek(1);"!"!==n&&"?"!==n||(i=(i=this.__patterns.conditional_comment.read())||this.__patterns.processing.read()),i&&((e=this._create_token(po.COMMENT,i)).directives=null)}return e},go.prototype._read_open=function(t,e){var i=null,n=null;return e||"<"===t&&(i=this._input.next(),"/"===this._input.peek()&&(i+=this._input.next()),i+=this.__patterns.element_name.read(),n=this._create_token(po.TAG_OPEN,i)),n},go.prototype._read_open_handlebars=function(t,e){var i=null,n=null;return e||this._options.indent_handlebars&&"{"===t&&"{"===this._input.peek(1)&&("!"===this._input.peek(2)?(i=(i=this.__patterns.handlebars_comment.read())||this.__patterns.handlebars.read(),n=this._create_token(po.COMMENT,i)):(i=this.__patterns.handlebars_open.read(),n=this._create_token(po.TAG_OPEN,i))),n},go.prototype._read_close=function(t,e){var i=null,n=null;return e&&("<"===e.text[0]&&(">"===t||"/"===t&&">"===this._input.peek(1))?(i=this._input.next(),"/"===t&&(i+=this._input.next()),n=this._create_token(po.TAG_CLOSE,i)):"{"===e.text[0]&&"}"===t&&"}"===this._input.peek(1)&&(this._input.next(),this._input.next(),n=this._create_token(po.TAG_CLOSE,"}}"))),n},go.prototype._read_attribute=function(t,e,i){var n=null,o="";if(i&&"<"===i.text[0])if("="===t)n=this._create_token(po.EQUALS,this._input.next());else if('"'===t||"'"===t){var s=this._input.next();s+='"'===t?this.__patterns.double_quote.read():this.__patterns.single_quote.read(),n=this._create_token(po.VALUE,s)}else(o=this.__patterns.attribute.read())&&(n=e.type===po.EQUALS?this._create_token(po.VALUE,o):this._create_token(po.ATTRIBUTE,o));return n},go.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))},go.prototype._read_raw_content=function(t,e,i){var n="";if(i&&"{"===i.text[0])n=this.__patterns.handlebars_raw_close.read();else if(e.type===po.TAG_CLOSE&&"<"===e.opened.text[0]&&"/"!==e.text[0]){var o=e.opened.text.substr(1).toLowerCase();if("script"===o||"style"===o){var s=this._read_comment_or_cdata(t);if(s)return s.type=po.TEXT,s;n=this._input.readUntil(new RegExp("</"+o+"[\\n\\r\\t ]*?>","ig"))}else this._is_content_unformatted(o)&&(n=this._input.readUntil(new RegExp("</"+o+"[\\n\\r\\t ]*?>","ig")))}return n?this._create_token(po.TEXT,n):null},go.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(po.TEXT,e)},lo.Tokenizer=go,lo.TOKEN=po;var mo=no.Options,fo=Qe.Output,vo=lo.Tokenizer,yo=lo.TOKEN,xo=/\r\n|[\r\n]/,wo=/\r\n|[\r\n]/g,So=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 fo(t,e)};So.prototype.current_line_has_match=function(t){return this._output.current_line.has_match(t)},So.prototype.set_space_before_token=function(t,e){this._output.space_before_token=t,this._output.non_breaking_space=e},So.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()},So.prototype.add_raw_token=function(t){this._output.add_raw_token(t)},So.prototype.print_preserved_newlines=function(t){var e=0;t.type!==yo.TEXT&&t.previous.type!==yo.TEXT&&(e=t.newlines?1:0),this.preserve_newlines&&(e=t.newlines<this.max_preserve_newlines+1?t.newlines:this.max_preserve_newlines+1);for(var i=0;i<e;i++)this.print_newline(i>0);return 0!==e},So.prototype.traverse_whitespace=function(t){return!(!t.whitespace_before&&!t.newlines)&&(this.print_preserved_newlines(t)||(this._output.space_before_token=!0),!0)},So.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped},So.prototype.print_newline=function(t){this._output.add_new_line(t)},So.prototype.print_token=function(t){t.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(t.text))},So.prototype.indent=function(){this.indent_level++},So.prototype.get_full_indent=function(t){return(t=this.indent_level+(t||0))<1?"":this._output.get_indent_string(t)};var ko=function(t,e){var i=null,n=null;return e.closed?("script"===t?i="text/javascript":"style"===t&&(i="text/css"),i=function(t){for(var e=null,i=t.next;i.type!==yo.EOF&&t.closed!==i;){if(i.type===yo.ATTRIBUTE&&"type"===i.text){i.next&&i.next.type===yo.EQUALS&&i.next.next&&i.next.next.type===yo.VALUE&&(e=i.next.next.text);break}i=i.next}return e}(e)||i,i.search("text/css")>-1?n="css":i.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)>-1?n="javascript":i.search(/(text|application|dojo)\/(x-)?(html)/)>-1?n="html":i.search(/test\/null/)>-1&&(n="null"),n):null};function _o(t,e){return-1!==e.indexOf(t)}function Co(t,e,i){this.parent=t||null,this.tag=e?e.tag_name:"",this.indent_level=i||0,this.parser_token=e||null}function Lo(t){this._printer=t,this._current_frame=null}function Ao(t,e,i,n){this._source_text=t||"",e=e||{},this._js_beautify=i,this._css_beautify=n,this._tag_stack=null;var o=new mo(e,"html");this._options=o,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}Lo.prototype.get_parser_token=function(){return this._current_frame?this._current_frame.parser_token:null},Lo.prototype.record_tag=function(t){var e=new Co(this._current_frame,t,this._printer.indent_level);this._current_frame=e},Lo.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},Lo.prototype._get_frame=function(t,e){for(var i=this._current_frame;i&&-1===t.indexOf(i.tag);){if(e&&-1!==e.indexOf(i.tag)){i=null;break}i=i.parent}return i},Lo.prototype.try_pop=function(t,e){var i=this._get_frame([t],e);return this._try_pop_frame(i)},Lo.prototype.indent_to_tag=function(t){var e=this._get_frame(t);e&&(this._printer.indent_level=e.indent_level)},Ao.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&&xo.test(t)&&(e=t.match(xo)[0]));var i=(t=t.replace(wo,"\n")).match(/^[\t ]*/)[0],n={text:"",type:""},o=new Eo,s=new So(this._options,i),l=new vo(t,this._options).tokenize();this._tag_stack=new Lo(s);for(var a=null,r=l.next();r.type!==yo.EOF;)r.type===yo.TAG_OPEN||r.type===yo.COMMENT?o=a=this._handle_tag_open(s,r,o,n):r.type===yo.ATTRIBUTE||r.type===yo.EQUALS||r.type===yo.VALUE||r.type===yo.TEXT&&!o.tag_complete?a=this._handle_inside_tag(s,r,o,l):r.type===yo.TAG_CLOSE?a=this._handle_tag_close(s,r,o):r.type===yo.TEXT?a=this._handle_text(s,r,o):s.add_raw_token(r),n=a,r=l.next();return s._output.get_code(e)},Ao.prototype._handle_tag_close=function(t,e,i){var n={text:e.text,type:e.type};return t.alignment_size=0,i.tag_complete=!0,t.set_space_before_token(e.newlines||""!==e.whitespace_before,!0),i.is_unformatted?t.add_raw_token(e):("<"===i.tag_start_char&&(t.set_space_before_token("/"===e.text[0],!0),this._is_wrap_attributes_force_expand_multiline&&i.has_wrapped_attrs&&t.print_newline(!1)),t.print_token(e)),!i.indent_content||i.is_unformatted||i.is_content_unformatted||(t.indent(),i.indent_content=!1),i.is_inline_element||i.is_unformatted||i.is_content_unformatted||t.set_wrap_point(),n},Ao.prototype._handle_inside_tag=function(t,e,i,n){var o=i.has_wrapped_attrs,s={text:e.text,type:e.type};if(t.set_space_before_token(e.newlines||""!==e.whitespace_before,!0),i.is_unformatted)t.add_raw_token(e);else if("{"===i.tag_start_char&&e.type===yo.TEXT)t.print_preserved_newlines(e)?(e.newlines=0,t.add_raw_token(e)):t.print_token(e);else{if(e.type===yo.ATTRIBUTE?(t.set_space_before_token(!0),i.attr_count+=1):(e.type===yo.EQUALS||e.type===yo.VALUE&&e.previous.type===yo.EQUALS)&&t.set_space_before_token(!1),e.type===yo.ATTRIBUTE&&"<"===i.tag_start_char&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(t.traverse_whitespace(e),o=o||0!==e.newlines),this._is_wrap_attributes_force)){var l=i.attr_count>1;if(this._is_wrap_attributes_force_expand_multiline&&1===i.attr_count){var a,r=!0,c=0;do{if((a=n.peek(c)).type===yo.ATTRIBUTE){r=!1;break}c+=1}while(c<4&&a.type!==yo.EOF&&a.type!==yo.TAG_CLOSE);l=!r}l&&(t.print_newline(!1),o=!0)}t.print_token(e),o=o||t.previous_token_wrapped(),i.has_wrapped_attrs=o}return s},Ao.prototype._handle_text=function(t,e,i){var n={text:e.text,type:"TK_CONTENT"};return i.custom_beautifier_name?this._print_custom_beatifier_text(t,e,i):i.is_unformatted||i.is_content_unformatted?t.add_raw_token(e):(t.traverse_whitespace(e),t.print_token(e)),n},Ao.prototype._print_custom_beatifier_text=function(t,e,i){var n=this;if(""!==e.text){var o,s=e.text,l=1,a="",r="";"javascript"===i.custom_beautifier_name&&"function"==typeof this._js_beautify?o=this._js_beautify:"css"===i.custom_beautifier_name&&"function"==typeof this._css_beautify?o=this._css_beautify:"html"===i.custom_beautifier_name&&(o=function(t,e){return new Ao(t,e,n._js_beautify,n._css_beautify).beautify()}),"keep"===this._options.indent_scripts?l=0:"separate"===this._options.indent_scripts&&(l=-t.indent_level);var c=t.get_full_indent(l);if(s=s.replace(/\n[ \t]*$/,""),"html"!==i.custom_beautifier_name&&"<"===s[0]&&s.match(/^(<!--|<!\[CDATA\[)/)){var u=/^(<!--[^\n]*|<!\[CDATA\[)(\n?)([ \t\n]*)([\s\S]*)(-->|]]>)$/.exec(s);if(!u)return void t.add_raw_token(e);a=c+u[1]+"\n",s=u[4],u[5]&&(r=c+u[5]),s=s.replace(/\n[ \t]*$/,""),(u[2]||-1!==u[3].indexOf("\n"))&&(u=u[3].match(/[ \t]+$/))&&(e.whitespace_before=u[0])}if(s)if(o){var d=function(){this.eol="\n"};d.prototype=this._options.raw_options,s=o(c+s,new d)}else{var b=e.whitespace_before;b&&(s=s.replace(new RegExp("\n("+b+")?","g"),"\n")),s=c+s.replace(/\n/g,"\n"+c)}a&&(s=s?a+s+"\n"+r:a+r),t.print_newline(!1),s&&(e.text=s,e.whitespace_before="",e.newlines=0,t.add_raw_token(e),t.print_newline(!0))}},Ao.prototype._handle_tag_open=function(t,e,i,n){var o=this._get_tag_open_token(e);return!i.is_unformatted&&!i.is_content_unformatted||i.is_empty_element||e.type!==yo.TAG_OPEN||0!==e.text.indexOf("</")?(t.traverse_whitespace(e),this._set_tag_position(t,e,o,i,n),o.is_inline_element||t.set_wrap_point(),t.print_token(e)):(t.add_raw_token(e),o.start_tag_token=this._tag_stack.try_pop(o.tag_name)),(this._is_wrap_attributes_force_aligned||this._is_wrap_attributes_aligned_multiple||this._is_wrap_attributes_preserve_aligned)&&(o.alignment_size=e.text.length+1),o.tag_complete||o.is_unformatted||(t.alignment_size=o.alignment_size),o};var Eo=function(t,e){var i;(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)?(this.tag_start_char=e.text[0],this.text=e.text,"<"===this.tag_start_char?(i=e.text.match(/^<([^\s>]*)/),this.tag_check=i?i[1]:""):(i=e.text.match(/^{{(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=i?i[1]:"","{{#>"===e.text&&">"===this.tag_check&&null!==e.next&&(this.tag_check=e.next.text)),this.tag_check=this.tag_check.toLowerCase(),e.type===yo.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,this.is_end_tag=this.is_end_tag||"{"===this.tag_start_char&&(this.text.length<3||/[^#\^]/.test(this.text.charAt(2)))):this.tag_complete=!0};Ao.prototype._get_tag_open_token=function(t){var e=new Eo(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||_o(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&&_o(e.tag_check,this._options.unformatted),e.is_content_unformatted=!e.is_empty_element&&_o(e.tag_check,this._options.content_unformatted),e.is_inline_element=_o(e.tag_name,this._options.inline)||"{"===e.tag_start_char,e},Ao.prototype._set_tag_position=function(t,e,i,n,o){if(i.is_empty_element||(i.is_end_tag?i.start_tag_token=this._tag_stack.try_pop(i.tag_name):(this._do_optional_end_element(i)&&(i.is_inline_element||t.print_newline(!1)),this._tag_stack.record_tag(i),"script"!==i.tag_name&&"style"!==i.tag_name||i.is_unformatted||i.is_content_unformatted||(i.custom_beautifier_name=ko(i.tag_check,e)))),_o(i.tag_check,this._options.extra_liners)&&(t.print_newline(!1),t._output.just_added_blankline()||t.print_newline(!0)),i.is_empty_element){if("{"===i.tag_start_char&&"else"===i.tag_check)this._tag_stack.indent_to_tag(["if","unless","each"]),i.indent_content=!0,t.current_line_has_match(/{{#if/)||t.print_newline(!1);"!--"===i.tag_name&&o.type===yo.TAG_CLOSE&&n.is_end_tag&&-1===i.text.indexOf("\n")||(i.is_inline_element||i.is_unformatted||t.print_newline(!1),this._calcluate_parent_multiline(t,i))}else if(i.is_end_tag){var s=!1;s=(s=i.start_tag_token&&i.start_tag_token.multiline_content)||!i.is_inline_element&&!(n.is_inline_element||n.is_unformatted)&&!(o.type===yo.TAG_CLOSE&&i.start_tag_token===n)&&"TK_CONTENT"!==o.type,(i.is_content_unformatted||i.is_unformatted)&&(s=!1),s&&t.print_newline(!1)}else i.indent_content=!i.custom_beautifier_name,"<"===i.tag_start_char&&("html"===i.tag_name?i.indent_content=this._options.indent_inner_html:"head"===i.tag_name?i.indent_content=this._options.indent_head_inner_html:"body"===i.tag_name&&(i.indent_content=this._options.indent_body_inner_html)),i.is_inline_element||i.is_unformatted||"TK_CONTENT"===o.type&&!i.is_content_unformatted||t.print_newline(!1),this._calcluate_parent_multiline(t,i)},Ao.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 qo=["address","article","aside","blockquote","details","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hr","main","nav","ol","p","pre","section","table","ul"],To=["a","audio","del","ins","map","noscript","video"];Ao.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"]);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!==qo.indexOf(t.tag_name)){var i=t.parent.parent;i&&-1!==To.indexOf(i.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}},io.Beautifier=Ao;var Mo=io.Beautifier,Ro=no.Options;eo.exports=function(t,e,i,n){return new Mo(t,e,i,n).beautify()},eo.exports.defaultOptions=function(){return new Ro};var Io=Ke.exports,Oo=zn.exports,$o=eo.exports;function Bo(t,e,i,n){return $o(t,e,i=i||Io,n=n||Oo)}Bo.defaultOptions=$o.defaultOptions,Ve.js=Io,Ve.css=Oo,Ve.html=Bo,function(t){var e=Ve;e.js_beautify=e.js,e.css_beautify=e.css,e.html_beautify=e.html,t.exports=function(t,e,i){var n=function(e,i){return t.js_beautify(e,i)};return n.js=t.js_beautify,n.css=e.css_beautify,n.html=i.html_beautify,n.js_beautify=t.js_beautify,n.css_beautify=e.css_beautify,n.html_beautify=i.html_beautify,n}(e,e,e)}(Xe);var zo=Xe.exports;function Po(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i<e;i++)n[i]=t[i];return n}function Do(t,e,i){return(e=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function No(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function Ho(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?No(Object(i),!0).forEach((function(e){Do(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):No(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function jo(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function Fo(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function Uo(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Fo(Object(i),!0).forEach((function(e){jo(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Fo(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function Wo(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return function(t){return e.reduceRight((function(t,e){return e(t)}),t)}}function Go(t){return function e(){for(var i=this,n=arguments.length,o=new Array(n),s=0;s<n;s++)o[s]=arguments[s];return o.length>=t.length?t.apply(this,o):function(){for(var t=arguments.length,n=new Array(t),s=0;s<t;s++)n[s]=arguments[s];return e.apply(i,[].concat(o,n))}}}function Yo(t){return{}.toString.call(t).includes("Object")}function Xo(t){return"function"==typeof t}var Vo=Go((function(t,e){throw new Error(t[e]||t.default)}))({initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"}),Ko={changes:function(t,e){return Yo(e)||Vo("changeType"),Object.keys(e).some((function(e){return i=t,n=e,!Object.prototype.hasOwnProperty.call(i,n);var i,n}))&&Vo("changeField"),e},selector:function(t){Xo(t)||Vo("selectorType")},handler:function(t){Xo(t)||Yo(t)||Vo("handlerType"),Yo(t)&&Object.values(t).some((function(t){return!Xo(t)}))&&Vo("handlersType")},initial:function(t){var e;t||Vo("initialIsRequired"),Yo(t)||Vo("initialType"),e=t,Object.keys(e).length||Vo("initialContent")}};function Zo(t,e){return Xo(e)?e(t.current):e}function Qo(t,e){return t.current=Uo(Uo({},t.current),e),e}function Jo(t,e,i){return Xo(e)?e(t.current):Object.keys(i).forEach((function(i){var n;return null===(n=e[i])||void 0===n?void 0:n.call(e,t.current[i])})),i}var ts={create:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ko.initial(t),Ko.handler(e);var i={current:t},n=Go(Jo)(i,e),o=Go(Qo)(i),s=Go(Ko.changes)(t),l=Go(Zo)(i);function a(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(t){return t};return Ko.selector(t),t(i.current)}function r(t){Wo(n,o,s,l)(t)}return[a,r]}};var es,is={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:"Deprecation warning!\n You are using deprecated way of configuration.\n\n Instead of using\n monaco.config({ urls: { monacoBase: '...' } })\n use\n monaco.config({ paths: { vs: '...' } })\n\n For more please check the link https://github.com/suren-atoyan/monaco-loader#config\n "},ns=(es=function(t,e){throw new Error(t[e]||t.default)},function t(){for(var e=this,i=arguments.length,n=new Array(i),o=0;o<i;o++)n[o]=arguments[o];return n.length>=es.length?es.apply(this,n):function(){for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return t.apply(e,[].concat(n,o))}})(is),os={config:function(t){var e;return t||ns("configIsRequired"),e=t,{}.toString.call(e).includes("Object")||ns("configType"),t.urls?(console.warn(is.deprecation),{paths:{vs:t.urls.monacoBase}}):t}};function ss(t,e){return Object.keys(e).forEach((function(i){e[i]instanceof Object&&t[i]&&Object.assign(e[i],ss(t[i],e[i]))})),Ho(Ho({},t),e)}var ls={type:"cancelation",msg:"operation is manually canceled"};function as(t){var e=!1,i=new Promise((function(i,n){t.then((function(t){return e?n(ls):i(t)})),t.catch(n)}));return i.cancel=function(){return e=!0},i}var rs,cs,us=["monaco"],ds=ts.create({config:{paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.54.0/min/vs"}},isInitialized:!1,resolve:null,reject:null,monaco:null}),bs=(cs=2,function(t){if(Array.isArray(t))return t}(rs=ds)||function(t,e){var i=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=i){var n,o,s,l,a=[],r=!0,c=!1;try{if(s=(i=i.call(t)).next,0===e);else for(;!(r=(n=s.call(i)).done)&&(a.push(n.value),a.length!==e);r=!0);}catch(t){c=!0,o=t}finally{try{if(!r&&null!=i.return&&(l=i.return(),Object(l)!==l))return}finally{if(c)throw o}}return a}}(rs,cs)||function(t,e){if(t){if("string"==typeof t)return Po(t,e);var i={}.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Po(t,e):void 0}}(rs,cs)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),ps=bs[0],hs=bs[1];function gs(t){return document.body.appendChild(t)}function ms(t){var e=ps((function(t){return{config:t.config,reject:t.reject}})),i=function(t){var e=document.createElement("script");return t&&(e.src=t),e}("".concat(e.config.paths.vs,"/loader.js"));return i.onload=function(){return t()},i.onerror=e.reject,i}function fs(){var t=ps((function(t){return{config:t.config,resolve:t.resolve,reject:t.reject}})),e=window.require;e.config(t.config),e(["vs/editor/editor.main"],(function(e){var i=e.m;vs(i),t.resolve(i)}),(function(e){t.reject(e)}))}function vs(t){ps().monaco||hs({monaco:t})}var ys=new Promise((function(t,e){return hs({resolve:t,reject:e})})),xs={config:function(t){var e=os.config(t),i=e.monaco,n=function(t,e){if(null==t)return{};var i,n,o=function(t,e){if(null==t)return{};var i={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(-1!==e.indexOf(n))continue;i[n]=t[n]}return i}(t,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(n=0;n<s.length;n++)i=s[n],-1===e.indexOf(i)&&{}.propertyIsEnumerable.call(t,i)&&(o[i]=t[i])}return o}(e,us);hs((function(t){return{config:ss(t.config,n),monaco:i}}))},init:function(){var t=ps((function(t){return{monaco:t.monaco,isInitialized:t.isInitialized,resolve:t.resolve}}));if(!t.isInitialized){if(hs({isInitialized:!0}),t.monaco)return t.resolve(t.monaco),as(ys);if(window.monaco&&window.monaco.editor)return vs(window.monaco),t.resolve(window.monaco),as(ys);!function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return function(t){return e.reduceRight((function(t,e){return e(t)}),t)}}(gs,ms)(fs)}return as(ys)},__getMonacoInstance:function(){return ps((function(t){return t.monaco}))}};let ws={};class Ss{constructor(t){this.builder=t}renderPanel(){const t=this.builder.builderStuff,e=this.builder.util,i=this.builder.dom;let n=t.querySelector(".viewhtml");if(!n){const o=`<div class="is-modal viewhtml" tabindex="-1" role="dialog" aria-modal="true" aria-hidden="true">\n <div class="is-modal-content">\n <textarea class="tabSupport" id="__tabsupport" style="width:100%;height:calc(100% - 50px);border:none;margin:0;box-sizing:border-box;"></textarea>\n <div class="is-modal-footer" style="border-top:1px solid ${this.builder.styleSeparatorColor};width:100%;height:50px;position:absolute;left:0;bottom:0;overflow:hidden;text-align:right">\n <button title="${e.out("Cancel")}" class="input-cancel classic-secondary">${e.out("Cancel")}</button>\n <button title="${e.out("Ok")}" class="input-ok classic-primary">${e.out("Ok")}</button>\n </div>\n </div>\n </div>\n\n <div class="is-modal viewhtmlmonaco" tabindex="-1" role="dialog" aria-modal="true" aria-hidden="true">\n <div class="is-modal-content" style="width:${this.builder.blockCodeEditorWidth};max-width:${this.builder.blockCodeEditorMaxWidth};padding:0">\n <textarea id="__viewhtmlmonaco" style="position:absolute;display:none;"></textarea>\n <div class="input-code-editor" style="width:100%;height:${this.builder.blockCodeEditorHeight};"></div>\n <div class="is-modal-footer" style="display:flex;justify-content:flex-end;border-top:1px solid ${this.builder.styleSeparatorColor};">\n <button title="${e.out("Cancel")}" class="input-cancel classic-secondary">${e.out("Cancel")}</button>\n <button title="${e.out("Ok")}" class="input-ok classic-primary">${e.out("Ok")}</button>\n </div>\n </div>\n </div>\n\n <div class="is-modal viewhtmlexternal" tabindex="-1" role="dialog" aria-modal="true" aria-hidden="true">\n <div class="is-modal-content" style="width:${this.builder.codeEditorWidth};max-width:${this.builder.codeEditorMaxWidth};padding:0">\n <div class="input-code-editor" id="__input_code_editor" style="width:100%;height:${this.builder.codeEditorHeight};"></div>\n <div class="is-modal-footer" style="display:flex;justify-content:flex-end;border-top:1px solid ${this.builder.styleSeparatorColor};">\n <button title="${e.out("Cancel")}" class="input-cancel classic-secondary">${e.out("Cancel")}</button>\n <button title="${e.out("Ok")}" class="input-ok classic-primary">${e.out("Ok")}</button>\n </div>\n </div>\n </div>\n \n `;i.appendHtml(t,o),n=t.querySelector(".viewhtml");let s=t.querySelector(".viewhtmlmonaco"),l=t.querySelector(".viewhtmlexternal"),a=n.querySelector(".input-ok");i.addEventListener(a,"click",(()=>{this.applyHtml(n)})),a=n.querySelector(".input-cancel"),i.addEventListener(a,"click",(()=>{this.builder.hideModal(n)})),a=s.querySelector(".input-ok"),i.addEventListener(a,"click",(()=>{this.applyHtml(s)})),a=s.querySelector(".input-cancel"),i.addEventListener(a,"click",(()=>{this.builder.hideModal(s)})),a=l.querySelector(".input-ok"),i.addEventListener(a,"click",(()=>{const t=document.querySelector("textarea[data-source-active]"),e=t.getAttribute("data-source-ok");t.removeAttribute("data-source-active"),t.removeAttribute("data-source-ok"),t.removeAttribute("data-source-cancel"),document.querySelector(e).click(),this.builder.hideModal(l)})),a=l.querySelector(".input-cancel"),i.addEventListener(a,"click",(()=>{const t=document.querySelector("textarea[data-source-active]"),e=t.getAttribute("data-source-cancel");t.removeAttribute("data-source-active"),t.removeAttribute("data-source-ok"),t.removeAttribute("data-source-cancel"),document.querySelector(e).click(),this.builder.hideModal(l)}))}}async applyHtml(t){const e=this.builder.util,i=e.cellSelected();i&&i.parentNode.classList.add("row-active");let n=this.builder.codeEditorMode,o=this.builder.codeEditorArea;this.builder.uo.saveForUndo();let s=t.querySelector("textarea").value;if("code"===n){let i=this.builder.activeCodeBlock;i.setAttribute("data-html",encodeURIComponent(s)),s=s.replace(/{id}/g,e.makeId());for(let t=1;t<=20;t++)s=s.replace("[%HTML"+t+"%]",void 0===i.getAttribute("data-html-"+t)?"":decodeURIComponent(i.getAttribute("data-html-"+t)));i.innerHTML="";let n=document.createRange();n.setStart(i,0),i.appendChild(n.createContextualFragment(s));let o=this.builder.doc.querySelector(".builder-active");return o&&this.builder.applyBehaviorOn(o),this.builder.opts.onChange(),this.builder.opts.onRender(),this.builder.hideModal(t),void e.hideControls()}if(s=this.fromViewToActual(s),"cell"===n){e.cellSelected().innerHTML=s;let t=this.builder.doc.querySelector(".builder-active");t&&(this.builder.applyBehaviorOn(t),this.builder.win.builderRuntime&&t.querySelector("[data-cb-type]")&&this.builder.win.builderRuntime.reinitialize(t)),this.builder.opts.onChange(),this.builder.opts.onRender()}if("row"===n){let t,i=e.cellSelected();if(t=i?i.parentNode:e.rowSelected(),!t)return;t.innerHTML=s;let n=this.builder.doc.querySelector(".builder-active");n&&(this.builder.applyBehaviorOn(n),this.builder.win.builderRuntime&&n.querySelector("[data-cb-type]")&&this.builder.win.builderRuntime.reinitialize(n)),this.builder.opts.onChange(),this.builder.opts.onRender(),t.classList.remove("row-outline"),e.hideColumnTool()}if("full"===n){if(this.builder.docContainer)return this.builder.loadHTML(s),e.clearControls(),void this.builder.hideModal(t);o.innerHTML="";let i=document.createRange();i.setStart(o,0),o.appendChild(i.createContextualFragment(s)),this.builder.applyBehaviorOn(o),this.builder.win.builderRuntime&&o.querySelector("[data-cb-type]")&&this.builder.win.builderRuntime.reinitialize(o),this.builder.opts.onChange(),this.builder.opts.onRender(),e.clearActiveCell()}e.clearControls(),this.builder.win.builderRuntime&&await this.builder.win.builderRuntime.reinitialize(),this.builder.hideModal(t),this.builder.makeSortable(this.builder.doc)}viewHtmlExternal(){const t=this.builder.util,e=this.builder.builderStuff;this.renderPanel();const i=e.querySelector(".viewhtmlexternal");document.activeElement&&(this.elmFocus=document.activeElement),t.showModal(i,!0,(()=>{this.elmFocus&&this.elmFocus.focus()}),!1),i.querySelector(".input-code-editor").style.opacity=.01,this._viewHtmlExternal()}_viewHtmlExternal(){const t=this.builder.builderStuff,e=document.querySelector("textarea[data-source-active]");let i=t.querySelector(".viewhtmlexternal").querySelector(".input-code-editor");if(!i.querySelector(".monaco-editor"))return xs.init().then((t=>{this.builder.monaco=t,i.getAttribute("data-mode-id")||(this.builder.codeEditorExternal=t.editor.create(i,{value:"",minimap:{enabled:!1},automaticLayout:!0,contextmenu:!1,fontSize:13,wordWrap:!0,scrollbar:{useShadows:!1,vertical:"visible",horizontal:"visible",horizontalScrollbarSize:12,verticalScrollbarSize:12},language:"html",theme:this.builder.styleDark||this.builder.styleColoredDark?"vs-dark":""})),this.builder.codeEditorExternal.onDidChangeModelContent((()=>{document.querySelector("textarea[data-source-active]").value=this.builder.codeEditorExternal.getModel().getValue()}))})),void setTimeout((()=>{this._viewHtmlExternal()}),100);const n=this.builder.monaco.editor.createModel(e.value,"html");this.builder.codeEditorExternal.setModel(n),i.style.opacity=""}view(t,e,i){this.renderPanel();const n=this.builder.util,o=this.builder.builderStuff;let s;s=this.builder.opts.htmlSyntaxHighlighting?o.querySelector(".viewhtmlmonaco"):o.querySelector(".viewhtml");let l=s.querySelector(".is-modal-content"),a=s.querySelector(".input-code-editor");a.style.opacity=.01,"full"===t?(l.style.width=this.builder.codeEditorWidth,l.style.maxWidth=this.builder.codeEditorMaxWidth,a.style.height=this.builder.codeEditorHeight):(l.style.width=this.builder.blockCodeEditorWidth,l.style.maxWidth=this.builder.blockCodeEditorMaxWidth,a.style.height=this.builder.blockCodeEditorHeight);const r=this.builder.doc.querySelector(".row-active");r&&r.classList.remove("row-active"),n.showModal(s,!0,(()=>{i&&(i.removeAttribute("data-focus"),i.focus());const t=n.cellSelected();t&&t.parentNode.classList.add("row-active")})),i&&i.setAttribute("data-focus",!0),this._view(t,e)}_view(t,e){const i=this.builder.dom,n=this.builder.util,o=this.builder.builderStuff;let s;if(this.builder.opts.htmlSyntaxHighlighting){s=o.querySelector(".viewhtmlmonaco");let i=s.querySelector(".input-code-editor");if(!i.querySelector(".monaco-editor"))return xs.init().then((t=>{this.builder.monaco=t,i.getAttribute("data-mode-id")||(this.builder.codeEditor=t.editor.create(i,{value:"",minimap:{enabled:!1},automaticLayout:!0,contextmenu:!1,fontSize:13,wordWrap:!0,scrollbar:{useShadows:!1,vertical:"visible",horizontal:"visible",horizontalScrollbarSize:12,verticalScrollbarSize:12},language:"html",theme:this.builder.styleDark||this.builder.styleColoredDark?"vs-dark":""}));let e=s.querySelector("textarea");this.builder.codeEditor.onDidChangeModelContent((()=>{e.value=this.builder.codeEditor.getModel().getValue()}))})),void setTimeout((()=>{this._view(t,e)}),100)}else s=o.querySelector(".viewhtml");let l=s.querySelector("textarea");if("cell"===t){const t=n.cellSelected();if(!t)return;let e=s.querySelector("textarea");this.builder.cleanHtmlFormatting=!0,e.value=this.readHtml(t,!0),this.builder.cleanHtmlFormatting=!1}if("row"===t){let t,e=n.cellSelected();if(t=e?e.parentNode:n.rowSelected(),!t)return;let o=s.querySelector("textarea");this.builder.cleanHtmlFormatting=!0,o.value=this.readHtml(t,!0),this.builder.cleanHtmlFormatting=!1,i.removeClass(t,"row-outline")}if("full"===t){if(e);else{const t=this.builder.doc.querySelectorAll(this.builder.opts.container);if(t.length>1){const i=n.cellSelected();e=i?i.parentNode.parentNode:t[0]}else e=t[0];if(""!==this.builder.opts.page){const t=this.builder.doc.querySelector(this.builder.opts.page);t&&(e=t)}}let t=s.querySelector("textarea");this.builder.cleanHtmlFormatting=!0,this.builder.shortenHTML?t.value=this.readHtml(e,!0):t.value=this.readHtml(e,!1),this.builder.cleanHtmlFormatting=!1}if(this.builder.opts.htmlSyntaxHighlighting){const t=this.builder.monaco.editor.createModel(l.value,"html");this.builder.codeEditor.setModel(t)}let a=o.querySelector(".is-pop.columnmore");a&&(a.style.display="");let r=o.querySelector(".is-pop.rowmore");r&&(r.style.display=""),this.builder.codeEditorMode=t,this.builder.codeEditorArea=e,s.querySelector(".input-code-editor").style.opacity=""}fromViewToActual(t){for(var e in ws)t=t.replace(e,ws[e]);return t}readHtml(t,e,i,n){const o=this.builder.dom;if(this.builder.opts.absolutePath){let e=t.querySelectorAll("a");Array.prototype.forEach.call(e,(t=>{let e=t.href;t.setAttribute("href",e)}));let i=t.querySelectorAll("img");Array.prototype.forEach.call(i,(t=>{let e=t.src;t.setAttribute("src",e)}))}this.builder.cleanHtmlFormatting;const s=this.builder.util;let l,a=document.createElement("div");a.innerHTML=t.innerHTML;let r=a.querySelectorAll("[data-html]");if(Array.prototype.forEach.call(r,(t=>{let e=1,i=t.querySelectorAll("[data-subblock]");Array.prototype.forEach.call(i,(i=>{if(i.closest(".glide__slide--clone"))return;let n=i.innerHTML;t.setAttribute("data-html-"+e,encodeURIComponent(n)),e++}))})),r=a.querySelectorAll("[data-html]"),Array.prototype.forEach.call(r,(t=>{let e=decodeURIComponent(t.getAttribute("data-html"));e=e.replace(/{id}/g,s.makeId()),t.innerHTML=e;let i=t.querySelectorAll("[data-subblock]");var n=1;Array.prototype.forEach.call(i,(e=>{e.innerHTML=void 0===t.getAttribute("data-html-"+n)?"":decodeURIComponent(t.getAttribute("data-html-"+n)),n++}))})),e&&(ws={},r=a.querySelectorAll("[data-html]"),Array.prototype.forEach.call(r,(t=>{let e=s.makeId();ws[e]=t.getAttribute("data-html"),t.setAttribute("data-html",e);for(let i=1;i<=20;i++)void 0!==t.getAttribute("data-html-"+i)&&(e=s.makeId(),ws[e]=t.getAttribute("data-html-"+i),t.getAttribute("data-html-"+i,e));void 0!==t.getAttribute("data-settings")&&(e=s.makeId(),ws[e]=t.getAttribute("data-settings"),t.getAttribute("data-settings",e))}))),this.builder.makeAbsolute){const t=t=>{let e=document.createElement("img");return e.src=t,e.setAttribute("data-absoluteurl",e.src),t=e.getAttribute("data-absoluteurl")},e=t=>{let e=document.createElement("img");e.src=t,e.setAttribute("data-absoluteurl",e.src),t=e.getAttribute("data-absoluteurl");let i=window.location.href.substring(0,window.location.href.lastIndexOf("/"));return t.replace(i,"[%PATH%]")},i=(e,i)=>{if(e.hasAttribute(i)){if("video"!==e.parentNode.tagName.toLowerCase()&&"audio"!==e.parentNode.tagName.toLowerCase())return;let n=e.getAttribute(i);n=t(n),e.setAttribute(i,`${n}`)}};let n=a.querySelectorAll("img");Array.prototype.forEach.call(n,(t=>{let e=t.src;t.setAttribute("src",e)})),a.querySelectorAll("*").forEach((n=>{if(n.style.backgroundImage){let t=n.style.backgroundImage;if(-1!==t.indexOf("url(")){let i=t.slice(4,-1).replace(/["']/g,"");i=e(i),n.style.backgroundImage=`url(${i})`}}if(i(n,"src"),i(n,"data-default"),i(n,"data-240"),i(n,"data-360"),i(n,"data-480"),i(n,"data-540"),i(n,"data-720"),i(n,"data-1080"),i(n,"data-1440"),i(n,"data-2160"),n.hasAttribute("href")){if("link"===n.tagName.toLowerCase()){let e=n.getAttribute("href");e=t(e),n.setAttribute("href",`${e}`)}if("a"===n.tagName.toLowerCase()){let e=n.getAttribute("href"),i=e.split(".").pop().split("?")[0].split("#")[0];if(i=i.toLowerCase(),"jpg"===i||"jpeg"===i||"png"===i||"gif"===i||"webm"===i||"webp"===i||"mp4"===i||"mp3"===i){let i=t(e);n.setAttribute("href",`${i}`)}}}}))}let c=a.querySelectorAll(".is-builder");Array.prototype.forEach.call(c,(t=>{t.style.transform="",t.style.WebkitTransform="",t.style.MozTransform="",t.removeAttribute("data-sort"),o.removeClass(t,"builder-active");o.elementChildren(t).forEach((t=>{o.elementChildren(t).forEach((t=>{t.style.cursor=""}))}))}));let u;if(o.elementChildren(a).forEach((t=>{t.style.cursor="";o.elementChildren(t).forEach((t=>{t.style.cursor=""}))})),u=a.querySelectorAll(".sortable-chosen, .sortable-ghost, .elm-active, .icon-active, .elm-inspected, .cell-active, .row-active, .row-outline, .is-builder"),u.forEach((t=>{t.classList.remove("sortable-chosen"),t.classList.remove("sortable-ghost"),t.classList.remove("elm-active"),t.classList.remove("icon-active"),t.classList.remove("elm-inspected"),t.classList.remove("cell-active"),t.classList.remove("row-active"),t.classList.remove("row-outline"),t.classList.remove("is-builder")})),u=a.querySelectorAll("[data-click], [contenteditable], [draggridoutline], [between-blocks-left], [between-blocks-center], [hideelementhighlight], [data-module-active], [draggable]"),u.forEach((t=>{t.removeAttribute("data-click"),t.removeAttribute("contenteditable"),t.removeAttribute("draggridoutline"),t.removeAttribute("between-blocks-left"),t.removeAttribute("between-blocks-center"),t.removeAttribute("hideelementhighlight"),t.removeAttribute("data-module-active"),t.removeAttribute("draggable")})),u=a.querySelectorAll("[data-animated], [data-saveforundo], [hidesnippetaddtool], [gray], [rowoutline], [hidecolumntool], [grayoutline], [hideoutline]"),u.forEach((t=>{t.removeAttribute("data-animated"),t.removeAttribute("data-saveforundo"),t.removeAttribute("hidesnippetaddtool"),t.removeAttribute("gray"),t.removeAttribute("rowoutline"),t.removeAttribute("hidecolumntool"),t.removeAttribute("grayoutline"),t.removeAttribute("hideoutline")})),u=a.querySelectorAll("[leftrowtool], [minimal], [clean], [grideditor], [gridoutline]"),u.forEach((t=>{t.removeAttribute("leftrowtool"),t.removeAttribute("minimal"),t.removeAttribute("clean"),t.removeAttribute("grideditor"),t.removeAttribute("gridoutline")})),u=a.querySelectorAll(".is-row-tool,.is-col-tool,.is-rowadd-tool,.is-canvas-tool,.is-canvasadd-tool,.h-ruler,.v-ruler"),u.forEach((t=>{t.previousSibling&&t.previousSibling.nodeType===Node.TEXT_NODE&&t.previousSibling.remove(),t.nextSibling&&t.nextSibling.nodeType===Node.TEXT_NODE&&t.nextSibling.remove(),t.remove()})),u=a.querySelectorAll(".ovl,.row-add-initial"),u.forEach((t=>{t.remove()})),this.builder.cleanAOS&&(u=a.querySelectorAll(".aos-init, .aos-animate"),u.forEach((t=>{t.classList.remove("aos-init"),t.classList.remove("aos-animate")}))),u=a.querySelectorAll(".skrollable, .skrollable-after, .skrollable-before, .skrollable-between, .is-inview"),u.forEach((t=>{t.classList.remove("skrollable"),t.classList.remove("skrollable-after"),t.classList.remove("skrollable-before"),t.classList.remove("skrollable-between"),t.classList.remove("is-inview")})),a.querySelectorAll('[class=""]').forEach((t=>{t.removeAttribute("class")})),a.querySelectorAll(".is-row-overlay").forEach((t=>{t.hasAttribute("style")||t.parentNode.removeChild(t)})),o.removeEmptyStyle(a),u=a.querySelectorAll("[data-keep]"),o.removeAttributes(u,"data-keep"),a.querySelectorAll("a").forEach((t=>{"inline-block"===t.style.display&&1===t.parentNode.childElementCount&&"span"===t.parentNode.tagName.toLowerCase()&&(t.parentNode.outerHTML=t.parentNode.innerHTML)})),n){a.querySelectorAll("[data-html]").forEach((t=>{t.innerHTML=""}))}if(a.querySelectorAll("[data-cb-type]").forEach((t=>{const e=t.getAttribute("data-cb-original-content");if(e){t.innerHTML=e,t.removeAttribute("data-cb-original-content"),Array.from(t.attributes).forEach((e=>{const i=e.name;i.startsWith("data-cb-")&&i.endsWith("-initialized")&&t.removeAttribute(i)}));const i=t.querySelectorAll(".is-container");Array.from(i).forEach((t=>{t.removeAttribute("data-sort"),t.classList.remove("is-builder")}));const n=t.getAttribute("data-cb-type");t.classList.remove(`cb-${n}`)}let i;t.removeAttribute("data-cb-loaded"),t.classList.contains("grid-sortable")&&(i=t),t.querySelector(".grid-sortable")&&(i=t.querySelector(".grid-sortable")),t.removeAttribute("id"),i&&Array.from(i.children).forEach((t=>{t.removeAttribute("data-index"),t.removeAttribute("data-item-id")}));let n=t.querySelectorAll("[data-item-id],[data-slide-id],[contenteditable]");n.forEach((t=>{t.removeAttribute("data-item-id"),t.removeAttribute("data-slide-id"),t.removeAttribute("contenteditable")})),t.querySelectorAll(".edit").forEach((t=>{t.removeAttribute("data-edit-id")})),n=t.querySelectorAll("[data-scroll], [data-scroll-once]"),n.forEach((t=>{t.removeAttribute("data-scroll"),t.removeAttribute("data-scroll-once")})),n=t.querySelectorAll(".elm-active, .icon-active"),n.forEach((t=>{t.classList.remove("elm-active"),t.classList.remove("icon-active")}));t.querySelectorAll('[contenteditable="true"]').forEach((t=>t.removeAttribute("contenteditable")))})),l="",i){u=a.querySelectorAll(".is-dummy"),u.forEach((t=>{t.remove()})),u=a.querySelectorAll("[data-scroll], [data-scroll-once]"),u.forEach((t=>{t.removeAttribute("data-scroll"),t.removeAttribute("data-scroll-once")})),this.builder.shortenOutput&&(u=a.querySelectorAll("[data-noedit], [data-module], [data-module-desc], [data-dialog-width], [data-dialog-height], [data-html], [data-settings]"),u.forEach((t=>{t.removeAttribute("data-noedit"),t.removeAttribute("data-module"),t.removeAttribute("data-module-desc"),t.removeAttribute("data-dialog-width"),t.removeAttribute("data-dialog-height"),t.removeAttribute("data-html"),t.removeAttribute("data-settings")})),u=a.querySelectorAll("[data-html-1], [data-html-2], [data-html-3], [data-html-4], [data-html-5], [data-html-6], [data-html-7], [data-html-8], [data-html-9], [data-html-10]"),u.forEach((t=>{t.removeAttribute("data-html-1"),t.removeAttribute("data-html-2"),t.removeAttribute("data-html-3"),t.removeAttribute("data-html-4"),t.removeAttribute("data-html-5"),t.removeAttribute("data-html-6"),t.removeAttribute("data-html-7"),t.removeAttribute("data-html-8"),t.removeAttribute("data-html-9"),t.removeAttribute("data-html-10")}))),u=a.querySelectorAll("[data-bottom-top],[data-center],[data-center-bottom],[data-100-top],[data-50-top],[data-top],[data-top-bottom],[data-center-top],[data--300-bottom],[data--150-bottom],[data--50-bottom],[data-bottom],[data-100-bottom],[data-150-bottom],[data-400-bottom],[data--400-bottom],[data--200-bottom],[data--100-bottom],[data-50-bottom],[data-200-bottom],[data-300-bottom],[data-in],[data-in-150],[data-in-300],[data-cen--150],[data-cen],[data-cen-150],[data-out--300],[data-out--150],[data-out][data-t],[data-t-100],[data-t-200],[data-t-300],[data-t-400],[data-t-500],[data-t-600],[data-t-700],[data-t-800],[data-t-900],[data-t-1000],[data-t-1100],[data-t-1200],[data-t-1300],[data-t-1400],[data-t-1500],[data-t-1600],[data-t-1700],[data-t-1800],[data-t-1900],[data-t-2000],[data-t-2100],[data-t-2200],[data-t-2300],[data-t-2400],[data-t-2500],[data-t-2600],[data-t-2700],[data-t-2800]"),Array.prototype.forEach.call(u,(t=>{t.style.transition="",t.style.transform="",t.style.opacity=""})),u=a.querySelectorAll(".is-animated"),Array.prototype.forEach.call(u,(t=>{o.removeClass(t,"animated"),o.removeClass(t,"pulse"),o.removeClass(t,"bounceIn"),o.removeClass(t,"fadeIn"),o.removeClass(t,"fadeOut"),o.removeClass(t,"fadeInDown"),o.removeClass(t,"fadeInLeft"),o.removeClass(t,"fadeInRight"),o.removeClass(t,"fadeInUp"),o.removeClass(t,"flipInX"),o.removeClass(t,"flipInY"),o.removeClass(t,"slideInUp"),o.removeClass(t,"slideInDown"),o.removeClass(t,"slideInLeft"),o.removeClass(t,"slideInRight"),o.removeClass(t,"zoomIn"),t.style.animationDelay="",t.style.transitionDelay="",t.style.transitionDuration="",t.style.transitionTimingFunction="",t.style.transitionProperty=""}));let t=a.querySelectorAll('[style=""]');Array.prototype.forEach.call(t,(t=>{t.removeAttribute("style")})),u=a.querySelectorAll(".is-appeared, .box-active, .section-active, .section-select, .box-select"),u.forEach((t=>{t.classList.remove("is-appeared"),t.classList.remove("box-active"),t.classList.remove("section-active"),t.classList.remove("section-select"),t.classList.remove("box-select")})),u=a.querySelectorAll(".is-section-tool, .is-box-tool, .is-box-info, .is-section-info"),u.forEach((t=>{t.previousSibling&&t.previousSibling.nodeType===Node.TEXT_NODE&&t.previousSibling.remove(),t.nextSibling&&t.nextSibling.nodeType===Node.TEXT_NODE&&t.nextSibling.remove(),t.remove()})),u=a.querySelectorAll(".is-block .handle, .is-block .rotate-handle"),o.removeElements(u),u=a.querySelectorAll(".is-block"),Array.prototype.forEach.call(u,(t=>{o.removeClass(t,"active"),o.removeClass(t,"multi"),o.removeClass(t,"editable"),o.removeClass(t,"fluid"),o.removeClass(t,"cloned"),t.removeAttribute("data-fluid-val"),t.removeAttribute("data-fluid"),t.removeAttribute("data-prev")})),a.querySelectorAll(".is-block.clone").forEach((t=>t.parentNode.removeChild(t)));var d="",b="",p="";o.elementChildren(a).forEach((t=>{let e=t;if(o.hasClass(e,"is-section")){var i="";e.getAttribute("class")&&(i=' class="'+e.getAttribute("class")+'"');var n=e.cloneNode(!0),s=n.outerHTML;l+=s,-1===i.indexOf("is-static")?d+=s+"\n\n":b+=s+"\n\n"}else s=(n=e.cloneNode(!0)).outerHTML,l+=s,p+=s}));let e=document.querySelector("[data-contentbox]"),i=!1;e&&(i=e.settings.disableStaticSection),i||(l=d+b+p),l=a.innerHTML.trim(),l=l.replace(/<font/g,"<span").replace(/<\/font/g,"</span")}else{let t=a.querySelectorAll('[style=""]');Array.prototype.forEach.call(t,(t=>{t.removeAttribute("style")})),this.builder.shortenOutput&&(u=a.querySelectorAll("[data-noedit], [data-module], [data-module-desc], [data-dialog-width], [data-dialog-height], [data-html], [data-settings]"),u.forEach((t=>{t.removeAttribute("data-noedit"),t.removeAttribute("data-module"),t.removeAttribute("data-module-desc"),t.removeAttribute("data-dialog-width"),t.removeAttribute("data-dialog-height"),t.removeAttribute("data-html"),t.removeAttribute("data-settings")})),u=a.querySelectorAll("[data-html-1], [data-html-2], [data-html-3], [data-html-4], [data-html-5], [data-html-6], [data-html-7], [data-html-8], [data-html-9], [data-html-10]"),u.forEach((t=>{t.removeAttribute("data-html-1"),t.removeAttribute("data-html-2"),t.removeAttribute("data-html-3"),t.removeAttribute("data-html-4"),t.removeAttribute("data-html-5"),t.removeAttribute("data-html-6"),t.removeAttribute("data-html-7"),t.removeAttribute("data-html-8"),t.removeAttribute("data-html-9"),t.removeAttribute("data-html-10")}))),u=a.querySelectorAll(".is-block .handle, .is-block .rotate-handle"),o.removeElements(u),u=a.querySelectorAll(".is-block"),Array.prototype.forEach.call(u,(t=>{o.removeClass(t,"active"),o.removeClass(t,"multi"),o.removeClass(t,"editable"),o.removeClass(t,"fluid"),o.removeClass(t,"cloned"),t.removeAttribute("data-fluid-val"),t.removeAttribute("data-fluid"),t.removeAttribute("data-prev")})),a.querySelectorAll(".is-block.clone").forEach((t=>t.parentNode.removeChild(t))),l=a.innerHTML.trim(),l=l.replace(/<font/g,"<span").replace(/<\/font/g,"</span")}let h=zo.html;return l=h(l),l=l.replace(/(\r\n|\r|\n){3,}/g,"$1\n"),l}beautify(t){return t=(t=(0,zo.html)(t)).replace(/(\r\n|\r|\n){3,}/g,"$1\n")}}class ks{constructor(t){this.builder=t;const e=this.builder.dom;this.dom=e,this.undoList=[]}readStyles(){if(this.builder.opts.undoContainerOnly)return"";let t,e,i="",n=this.builder.doc.getElementsByTagName("link");for(t=0;t<n.length;t++)e=n[t].href.toLowerCase(),-1!==e.indexOf("basetype-")&&(i+=n[t].outerHTML);for(n=this.builder.doc.getElementsByTagName("link"),t=0;t<n.length;t++)e=n[t].href.toLowerCase(),-1!==e.indexOf("basetype-")||-1!==e.indexOf("type-")&&(i+=n[t].outerHTML);return i}writeStyles(t){const e=this.dom;if(this.builder.opts.undoContainerOnly)return;let i,n,o=this.builder.doc.getElementsByTagName("link");for(i=0;i<o.length;i++)n=o[i].href.toLowerCase(),(-1!==n.indexOf("basetype-")||-1!==n.indexOf("type-"))&&o[i].parentNode.removeChild(o[i]);let s=this.builder.doc.getElementsByTagName("head")[0];e.appendHtml(s,t)}readHtml(){if(""===this.builder.opts.page||this.builder.opts.undoContainerOnly){if(this.builder.docContainer){return this.builder.doc.querySelector(this.builder.docContainer).innerHTML}{const t=this.builder.doc.querySelectorAll(this.builder.opts.container);let e="";return Array.prototype.forEach.call(t,(t=>{e+=t.innerHTML+"####|####"})),e=e.substr(0,e.length-9),e}}return this.builder.doc.querySelector(this.builder.opts.page).innerHTML}cleaning(t){const e=this.dom;let i=t.querySelectorAll(".is-builder");Array.prototype.forEach.call(i,(t=>{t.removeAttribute("data-sort")}));let n=t.querySelectorAll("[data-click]");e.removeAttributes(n,"data-click"),e.removeElements(t.querySelectorAll(".is-row-tool")),e.removeElements(t.querySelectorAll(".is-rowadd-tool")),e.removeElements(t.querySelectorAll(".is-col-tool")),e.removeElements(t.querySelectorAll(".is-canvas-tool")),e.removeElements(t.querySelectorAll(".is-canvasadd-tool")),e.removeElements(t.querySelectorAll(".ovl")),e.removeElements(t.querySelectorAll(".row-add-initial")),e.removeElements(t.querySelectorAll(".h-ruler")),e.removeElements(t.querySelectorAll(".v-ruler")),n=t.querySelectorAll(".is-block .handle, .is-block .rotate-handle"),e.removeElements(n),n=t.querySelectorAll(".is-block"),Array.prototype.forEach.call(n,(t=>{e.removeClass(t,"active"),e.removeClass(t,"multi"),e.removeClass(t,"editable"),e.removeClass(t,"fluid"),e.removeClass(t,"cloned"),t.removeAttribute("data-fluid-val"),t.removeAttribute("data-fluid"),t.removeAttribute("data-prev")})),t.querySelectorAll(".is-block.clone").forEach((t=>t.parentNode.removeChild(t))),n=t.querySelectorAll(".is-section-tool"),e.removeElements(n)}writeHtml(t){if(""===this.builder.opts.page||this.builder.opts.undoContainerOnly)if(this.builder.docContainer){let e=this.builder.doc.querySelector(this.builder.docContainer),i=document.createRange();e.innerHTML="",e.appendChild(i.createContextualFragment(t)),this.cleaning(e)}else{const e=this.builder.doc.querySelectorAll(this.builder.opts.container);let i=0;Array.prototype.forEach.call(e,(e=>{var n=document.createRange();e.innerHTML="",e.appendChild(n.createContextualFragment(t.split("####|####")[i])),this.cleaning(e),this.builder.applyBehaviorOn(e),i++}))}else{let e=this.builder.doc.querySelector(this.builder.opts.page),i=document.createRange();e.innerHTML="",e.appendChild(i.createContextualFragment(t)),this.cleaning(e)}this.builder.opts.onRender()}saveForUndo(t){if(this.builder.onBeforeSaveForUndo&&this.builder.onBeforeSaveForUndo(),this.builder.undoRedoStyles){if(this.undoList[120]){let e=this.undoList[120][0].split("###$###")[1];if(this.builder.saveForUndoCheck&&e===this.readHtml())return void(this.builder.saveForUndoCheck=!0===t)}}else if(this.undoList[120]){let e=this.undoList[120][0];if(this.builder.saveForUndoCheck&&e===this.readHtml())return void(this.builder.saveForUndoCheck=!0===t)}if(this.builder.saveForUndoCheck=!0===t,this.undoList[140]=this.undoList[139],this.undoList[139]=this.undoList[138],this.undoList[138]=this.undoList[137],this.undoList[137]=this.undoList[136],this.undoList[136]=this.undoList[135],this.undoList[135]=this.undoList[134],this.undoList[134]=this.undoList[133],this.undoList[133]=this.undoList[132],this.undoList[132]=this.undoList[131],this.undoList[131]=this.undoList[130],this.undoList[130]=this.undoList[129],this.undoList[129]=this.undoList[128],this.undoList[128]=this.undoList[127],this.undoList[127]=this.undoList[126],this.undoList[126]=this.undoList[125],this.undoList[125]=this.undoList[124],this.undoList[124]=this.undoList[123],this.undoList[123]=this.undoList[122],this.undoList[122]=this.undoList[121],this.undoList[121]=this.undoList[120],this.builder.undoRedoStyles){let t=" "+this.readStyles()+"###$###"+this.readHtml();this.undoList[120]=[t,null]}else this.undoList[120]=[this.readHtml(),null]}doUndo(){const t=this.dom;if(!this.undoList[120])return;if(!0===this.builder.undoRedoInProcess)return;if(this.builder.undoRedoInProcess=!0,this.undoList[99]=this.undoList[100],this.undoList[100]=this.undoList[101],this.undoList[101]=this.undoList[102],this.undoList[102]=this.undoList[103],this.undoList[103]=this.undoList[104],this.undoList[104]=this.undoList[105],this.undoList[105]=this.undoList[106],this.undoList[106]=this.undoList[107],this.undoList[107]=this.undoList[108],this.undoList[108]=this.undoList[109],this.undoList[109]=this.undoList[110],this.undoList[110]=this.undoList[111],this.undoList[111]=this.undoList[112],this.undoList[112]=this.undoList[113],this.undoList[113]=this.undoList[114],this.undoList[114]=this.undoList[115],this.undoList[115]=this.undoList[116],this.undoList[116]=this.undoList[117],this.undoList[117]=this.undoList[118],this.undoList[118]=this.undoList[119],this.builder.undoRedoStyles){let t=this.readStyles(),e=this.readHtml(),i=" "+t+"###$###"+e;this.undoList[119]=[i,null],i=this.undoList[120][0],t=i.split("###$###")[0].trim(),e=i.split("###$###")[1],this.writeStyles(t),this.writeHtml(e)}else{this.undoList[119]=[this.readHtml(),null];let t=this.undoList[120][0];this.writeHtml(t)}this.builder.applyBehavior(),this.builder.applyBehaviorCanvas(),this.builder.opts.onChange(),this.undoList[120]=this.undoList[121],this.undoList[121]=this.undoList[122],this.undoList[122]=this.undoList[123],this.undoList[123]=this.undoList[124],this.undoList[124]=this.undoList[125],this.undoList[125]=this.undoList[126],this.undoList[126]=this.undoList[127],this.undoList[127]=this.undoList[128],this.undoList[128]=this.undoList[129],this.undoList[129]=this.undoList[130],this.undoList[130]=this.undoList[131],this.undoList[131]=this.undoList[132],this.undoList[132]=this.undoList[133],this.undoList[133]=this.undoList[134],this.undoList[134]=this.undoList[135],this.undoList[135]=this.undoList[136],this.undoList[136]=this.undoList[137],this.undoList[137]=this.undoList[138],this.undoList[138]=this.undoList[139],this.undoList[139]=this.undoList[140],this.undoList[140]=this.undoList[141];const e=new We(this.builder);e.clearActiveCell(),e.clearAfterUndoRedo();let i=this.builder.doc.querySelector("[data-saveforundo]");if(i){let e=document.querySelector(".is-side.elementstyles");t.addClass(e,"active"),setTimeout((()=>{i.click()}),700)}else{let e=document.querySelector(".is-side.elementstyles");t.removeClass(e,"active")}this.builder.opts.onUndo&&this.builder.opts.onUndo(),this.builder.undoRedoInProcess=!1}doRedo(){const t=this.dom;if(!this.undoList[119])return;if(!0===this.builder.undoRedoInProcess)return;if(this.builder.undoRedoInProcess=!0,this.undoList[141]=this.undoList[140],this.undoList[140]=this.undoList[139],this.undoList[139]=this.undoList[138],this.undoList[138]=this.undoList[137],this.undoList[137]=this.undoList[136],this.undoList[136]=this.undoList[135],this.undoList[135]=this.undoList[134],this.undoList[134]=this.undoList[133],this.undoList[133]=this.undoList[132],this.undoList[132]=this.undoList[131],this.undoList[131]=this.undoList[130],this.undoList[130]=this.undoList[129],this.undoList[129]=this.undoList[128],this.undoList[128]=this.undoList[127],this.undoList[127]=this.undoList[126],this.undoList[126]=this.undoList[125],this.undoList[125]=this.undoList[124],this.undoList[124]=this.undoList[123],this.undoList[123]=this.undoList[122],this.undoList[122]=this.undoList[121],this.undoList[121]=this.undoList[120],this.builder.undoRedoStyles){let t=this.readStyles(),e=this.readHtml(),i=" "+t+"###$###"+e;this.undoList[120]=[i,null],i=this.undoList[119][0],t=i.split("###$###")[0].trim(),e=i.split("###$###")[1],this.writeStyles(t),this.writeHtml(e)}else{this.undoList[120]=[this.readHtml(),null];let t=this.undoList[119][0];this.writeHtml(t)}this.builder.applyBehavior(),this.builder.applyBehaviorCanvas(),this.builder.opts.onChange(),this.undoList[119]=this.undoList[118],this.undoList[118]=this.undoList[117],this.undoList[117]=this.undoList[116],this.undoList[116]=this.undoList[115],this.undoList[115]=this.undoList[114],this.undoList[114]=this.undoList[113],this.undoList[113]=this.undoList[112],this.undoList[112]=this.undoList[111],this.undoList[111]=this.undoList[110],this.undoList[110]=this.undoList[109],this.undoList[109]=this.undoList[108],this.undoList[108]=this.undoList[107],this.undoList[107]=this.undoList[106],this.undoList[106]=this.undoList[105],this.undoList[105]=this.undoList[104],this.undoList[104]=this.undoList[103],this.undoList[103]=this.undoList[102],this.undoList[102]=this.undoList[101],this.undoList[101]=this.undoList[100],this.undoList[100]=this.undoList[99],this.undoList[99]=null;const e=new We(this.builder);e.clearActiveCell(),e.clearAfterUndoRedo();let i=this.builder.doc.querySelector("[data-saveforundo]");if(i){let e=document.querySelector(".is-side.elementstyles");t.addClass(e,"active"),setTimeout((()=>{i.click()}),700)}else{let e=document.querySelector(".is-side.elementstyles");t.removeClass(e,"active")}this.builder.opts.onRedo&&this.builder.opts.onRedo(),this.builder.undoRedoInProcess=!1}}
19
+ */function j(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function F(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?j(Object(i),!0).forEach((function(e){W(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):j(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function U(t){return U="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},U(t)}function W(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function G(){return G=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},G.apply(this,arguments)}function Y(t,e){if(null==t)return{};var i,n,o=function(t,e){if(null==t)return{};var i,n,o={},s=Object.keys(t);for(n=0;n<s.length;n++)i=s[n],e.indexOf(i)>=0||(o[i]=t[i]);return o}(t,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(n=0;n<s.length;n++)i=s[n],e.indexOf(i)>=0||Object.prototype.propertyIsEnumerable.call(t,i)&&(o[i]=t[i])}return o}function X(t){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(t)}var V=X(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),K=X(/Edge/i),Z=X(/firefox/i),Q=X(/safari/i)&&!X(/chrome/i)&&!X(/android/i),J=X(/iP(ad|od|hone)/i),tt=X(/chrome/i)&&X(/android/i),et={capture:!1,passive:!1};function it(t,e,i){t.addEventListener(e,i,!V&&et)}function nt(t,e,i){t.removeEventListener(e,i,!V&&et)}function ot(t,e){if(e){if(">"===e[0]&&(e=e.substring(1)),t)try{if(t.matches)return t.matches(e);if(t.msMatchesSelector)return t.msMatchesSelector(e);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(e)}catch(t){return!1}return!1}}function st(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function lt(t,e,i,n){if(t){i=i||document;do{if(null!=e&&(">"===e[0]?t.parentNode===i&&ot(t,e):ot(t,e))||n&&t===i)return t;if(t===i)break}while(t=st(t))}return null}var at,rt=/\s+/g;function ct(t,e,i){if(t&&e)if(t.classList)t.classList[i?"add":"remove"](e);else{var n=(" "+t.className+" ").replace(rt," ").replace(" "+e+" "," ");t.className=(n+(i?" "+e:"")).replace(rt," ")}}function ut(t,e,i){var n=t&&t.style;if(n){if(void 0===i)return document.defaultView&&document.defaultView.getComputedStyle?i=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(i=t.currentStyle),void 0===e?i:i[e];e in n||-1!==e.indexOf("webkit")||(e="-webkit-"+e),n[e]=i+("string"==typeof i?"":"px")}}function dt(t,e){var i="";if("string"==typeof t)i=t;else do{var n=ut(t,"transform");n&&"none"!==n&&(i=n+" "+i)}while(!e&&(t=t.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(i)}function bt(t,e,i){if(t){var n=t.getElementsByTagName(e),o=0,s=n.length;if(i)for(;o<s;o++)i(n[o],o);return n}return[]}function pt(){var t=document.scrollingElement;return t||document.documentElement}function ht(t,e,i,n,o){if(t.getBoundingClientRect||t===window){var s,l,a,r,c,u,d;if(t!==window&&t.parentNode&&t!==pt()?(l=(s=t.getBoundingClientRect()).top,a=s.left,r=s.bottom,c=s.right,u=s.height,d=s.width):(l=0,a=0,r=window.innerHeight,c=window.innerWidth,u=window.innerHeight,d=window.innerWidth),(e||i)&&t!==window&&(o=o||t.parentNode,!V))do{if(o&&o.getBoundingClientRect&&("none"!==ut(o,"transform")||i&&"static"!==ut(o,"position"))){var b=o.getBoundingClientRect();l-=b.top+parseInt(ut(o,"border-top-width")),a-=b.left+parseInt(ut(o,"border-left-width")),r=l+s.height,c=a+s.width;break}}while(o=o.parentNode);if(n&&t!==window){var p=dt(o||t),h=p&&p.a,g=p&&p.d;p&&(r=(l/=g)+(u/=g),c=(a/=h)+(d/=h))}return{top:l,left:a,bottom:r,right:c,width:d,height:u}}}function gt(t,e,i){for(var n=xt(t,!0),o=ht(t)[e];n;){var s=ht(n)[i];if(!("top"===i||"left"===i?o>=s:o<=s))return n;if(n===pt())break;n=xt(n,!1)}return!1}function mt(t,e,i,n){for(var o=0,s=0,l=t.children;s<l.length;){if("none"!==l[s].style.display&&l[s]!==_e.ghost&&(n||l[s]!==_e.dragged)&&lt(l[s],i.draggable,t,!1)){if(o===e)return l[s];o++}s++}return null}function ft(t,e){for(var i=t.lastElementChild;i&&(i===_e.ghost||"none"===ut(i,"display")||e&&!ot(i,e));)i=i.previousElementSibling;return i||null}function vt(t,e){var i=0;if(!t||!t.parentNode)return-1;for(;t=t.previousElementSibling;)"TEMPLATE"===t.nodeName.toUpperCase()||t===_e.clone||e&&!ot(t,e)||i++;return i}function yt(t){var e=0,i=0,n=pt();if(t)do{var o=dt(t),s=o.a,l=o.d;e+=t.scrollLeft*s,i+=t.scrollTop*l}while(t!==n&&(t=t.parentNode));return[e,i]}function xt(t,e){if(!t||!t.getBoundingClientRect)return pt();var i=t,n=!1;do{if(i.clientWidth<i.scrollWidth||i.clientHeight<i.scrollHeight){var o=ut(i);if(i.clientWidth<i.scrollWidth&&("auto"==o.overflowX||"scroll"==o.overflowX)||i.clientHeight<i.scrollHeight&&("auto"==o.overflowY||"scroll"==o.overflowY)){if(!i.getBoundingClientRect||i===document.body)return pt();if(n||e)return i;n=!0}}}while(i=i.parentNode);return pt()}function wt(t,e){return Math.round(t.top)===Math.round(e.top)&&Math.round(t.left)===Math.round(e.left)&&Math.round(t.height)===Math.round(e.height)&&Math.round(t.width)===Math.round(e.width)}function St(t,e){return function(){if(!at){var i=arguments,n=this;1===i.length?t.call(n,i[0]):t.apply(n,i),at=setTimeout((function(){at=void 0}),e)}}}function kt(t,e,i){t.scrollLeft+=e,t.scrollTop+=i}function _t(t){var e=window.Polymer,i=window.jQuery||window.Zepto;return e&&e.dom?e.dom(t).cloneNode(!0):i?i(t).clone(!0)[0]:t.cloneNode(!0)}function Ct(t,e,i){var n={};return Array.from(t.children).forEach((function(o){var s,l,a,r;if(lt(o,e.draggable,t,!1)&&!o.animated&&o!==i){var c=ht(o);n.left=Math.min(null!==(s=n.left)&&void 0!==s?s:1/0,c.left),n.top=Math.min(null!==(l=n.top)&&void 0!==l?l:1/0,c.top),n.right=Math.max(null!==(a=n.right)&&void 0!==a?a:-1/0,c.right),n.bottom=Math.max(null!==(r=n.bottom)&&void 0!==r?r:-1/0,c.bottom)}})),n.width=n.right-n.left,n.height=n.bottom-n.top,n.x=n.left,n.y=n.top,n}var Lt="Sortable"+(new Date).getTime();function At(){var t,e=[];return{captureAnimationState:function(){(e=[],this.options.animation)&&[].slice.call(this.el.children).forEach((function(t){if("none"!==ut(t,"display")&&t!==_e.ghost){e.push({target:t,rect:ht(t)});var i=F({},e[e.length-1].rect);if(t.thisAnimationDuration){var n=dt(t,!0);n&&(i.top-=n.f,i.left-=n.e)}t.fromRect=i}}))},addAnimationState:function(t){e.push(t)},removeAnimationState:function(t){e.splice(function(t,e){for(var i in t)if(t.hasOwnProperty(i))for(var n in e)if(e.hasOwnProperty(n)&&e[n]===t[i][n])return Number(i);return-1}(e,{target:t}),1)},animateAll:function(i){var n=this;if(!this.options.animation)return clearTimeout(t),void("function"==typeof i&&i());var o=!1,s=0;e.forEach((function(t){var e=0,i=t.target,l=i.fromRect,a=ht(i),r=i.prevFromRect,c=i.prevToRect,u=t.rect,d=dt(i,!0);d&&(a.top-=d.f,a.left-=d.e),i.toRect=a,i.thisAnimationDuration&&wt(r,a)&&!wt(l,a)&&(u.top-a.top)/(u.left-a.left)==(l.top-a.top)/(l.left-a.left)&&(e=function(t,e,i,n){return Math.sqrt(Math.pow(e.top-t.top,2)+Math.pow(e.left-t.left,2))/Math.sqrt(Math.pow(e.top-i.top,2)+Math.pow(e.left-i.left,2))*n.animation}(u,r,c,n.options)),wt(a,l)||(i.prevFromRect=l,i.prevToRect=a,e||(e=n.options.animation),n.animate(i,u,a,e)),e&&(o=!0,s=Math.max(s,e),clearTimeout(i.animationResetTimer),i.animationResetTimer=setTimeout((function(){i.animationTime=0,i.prevFromRect=null,i.fromRect=null,i.prevToRect=null,i.thisAnimationDuration=null}),e),i.thisAnimationDuration=e)})),clearTimeout(t),o?t=setTimeout((function(){"function"==typeof i&&i()}),s):"function"==typeof i&&i(),e=[]},animate:function(t,e,i,n){if(n){ut(t,"transition",""),ut(t,"transform","");var o=dt(this.el),s=o&&o.a,l=o&&o.d,a=(e.left-i.left)/(s||1),r=(e.top-i.top)/(l||1);t.animatingX=!!a,t.animatingY=!!r,ut(t,"transform","translate3d("+a+"px,"+r+"px,0)"),this.forRepaintDummy=function(t){return t.offsetWidth}(t),ut(t,"transition","transform "+n+"ms"+(this.options.easing?" "+this.options.easing:"")),ut(t,"transform","translate3d(0,0,0)"),"number"==typeof t.animated&&clearTimeout(t.animated),t.animated=setTimeout((function(){ut(t,"transition",""),ut(t,"transform",""),t.animated=!1,t.animatingX=!1,t.animatingY=!1}),n)}}}}var Et=[],qt={initializeByDefault:!0},Tt={mount:function(t){for(var e in qt)qt.hasOwnProperty(e)&&!(e in t)&&(t[e]=qt[e]);Et.forEach((function(e){if(e.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")})),Et.push(t)},pluginEvent:function(t,e,i){var n=this;this.eventCanceled=!1,i.cancel=function(){n.eventCanceled=!0};var o=t+"Global";Et.forEach((function(n){e[n.pluginName]&&(e[n.pluginName][o]&&e[n.pluginName][o](F({sortable:e},i)),e.options[n.pluginName]&&e[n.pluginName][t]&&e[n.pluginName][t](F({sortable:e},i)))}))},initializePlugins:function(t,e,i,n){for(var o in Et.forEach((function(n){var o=n.pluginName;if(t.options[o]||n.initializeByDefault){var s=new n(t,e,t.options);s.sortable=t,s.options=t.options,t[o]=s,G(i,s.defaults)}})),t.options)if(t.options.hasOwnProperty(o)){var s=this.modifyOption(t,o,t.options[o]);void 0!==s&&(t.options[o]=s)}},getEventProperties:function(t,e){var i={};return Et.forEach((function(n){"function"==typeof n.eventProperties&&G(i,n.eventProperties.call(e[n.pluginName],t))})),i},modifyOption:function(t,e,i){var n;return Et.forEach((function(o){t[o.pluginName]&&o.optionListeners&&"function"==typeof o.optionListeners[e]&&(n=o.optionListeners[e].call(t[o.pluginName],i))})),n}};var Mt=["evt"],Rt=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=i.evt,o=Y(i,Mt);Tt.pluginEvent.bind(_e)(t,e,F({dragEl:Ot,parentEl:$t,ghostEl:Bt,rootEl:zt,nextEl:Pt,lastDownEl:Dt,cloneEl:Nt,cloneHidden:Ht,dragStarted:te,putSortable:Yt,activeSortable:_e.active,originalEvent:n,oldIndex:jt,oldDraggableIndex:Ut,newIndex:Ft,newDraggableIndex:Wt,hideGhostForTarget:xe,unhideGhostForTarget:we,cloneNowHidden:function(){Ht=!0},cloneNowShown:function(){Ht=!1},dispatchSortableEvent:function(t){It({sortable:e,name:t,originalEvent:n})}},o))};function It(t){!function(t){var e=t.sortable,i=t.rootEl,n=t.name,o=t.targetEl,s=t.cloneEl,l=t.toEl,a=t.fromEl,r=t.oldIndex,c=t.newIndex,u=t.oldDraggableIndex,d=t.newDraggableIndex,b=t.originalEvent,p=t.putSortable,h=t.extraEventProperties;if(e=e||i&&i[Lt]){var g,m=e.options,f="on"+n.charAt(0).toUpperCase()+n.substr(1);!window.CustomEvent||V||K?(g=document.createEvent("Event")).initEvent(n,!0,!0):g=new CustomEvent(n,{bubbles:!0,cancelable:!0}),g.to=l||i,g.from=a||i,g.item=o||i,g.clone=s,g.oldIndex=r,g.newIndex=c,g.oldDraggableIndex=u,g.newDraggableIndex=d,g.originalEvent=b,g.pullMode=p?p.lastPutMode:void 0;var v=F(F({},h),Tt.getEventProperties(n,e));for(var y in v)g[y]=v[y];i&&i.dispatchEvent(g),m[f]&&m[f].call(e,g)}}(F({putSortable:Yt,cloneEl:Nt,targetEl:Ot,rootEl:zt,oldIndex:jt,oldDraggableIndex:Ut,newIndex:Ft,newDraggableIndex:Wt},t))}var Ot,$t,Bt,zt,Pt,Dt,Nt,Ht,jt,Ft,Ut,Wt,Gt,Yt,Xt,Vt,Kt,Zt,Qt,Jt,te,ee,ie,ne,oe,se=!1,le=!1,ae=[],re=!1,ce=!1,ue=[],de=!1,be=[],pe="undefined"!=typeof document,he=J,ge=K||V?"cssFloat":"float",me=pe&&!tt&&!J&&"draggable"in document.createElement("div"),fe=function(){if(pe){if(V)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto","auto"===t.style.pointerEvents}}(),ve=function(t,e){var i=ut(t),n=parseInt(i.width)-parseInt(i.paddingLeft)-parseInt(i.paddingRight)-parseInt(i.borderLeftWidth)-parseInt(i.borderRightWidth),o=mt(t,0,e),s=mt(t,1,e),l=o&&ut(o),a=s&&ut(s),r=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+ht(o).width,c=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+ht(s).width;if("flex"===i.display)return"column"===i.flexDirection||"column-reverse"===i.flexDirection?"vertical":"horizontal";if("grid"===i.display)return i.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(o&&l.float&&"none"!==l.float){var u="left"===l.float?"left":"right";return!s||"both"!==a.clear&&a.clear!==u?"horizontal":"vertical"}return o&&("block"===l.display||"flex"===l.display||"table"===l.display||"grid"===l.display||r>=n&&"none"===i[ge]||s&&"none"===i[ge]&&r+c>n)?"vertical":"horizontal"},ye=function(t){function e(t,i){return function(n,o,s,l){var a=n.options.group.name&&o.options.group.name&&n.options.group.name===o.options.group.name;if(null==t&&(i||a))return!0;if(null==t||!1===t)return!1;if(i&&"clone"===t)return t;if("function"==typeof t)return e(t(n,o,s,l),i)(n,o,s,l);var r=(i?n:o).options.group.name;return!0===t||"string"==typeof t&&t===r||t.join&&t.indexOf(r)>-1}}var i={},n=t.group;n&&"object"==U(n)||(n={name:n}),i.name=n.name,i.checkPull=e(n.pull,!0),i.checkPut=e(n.put),i.revertClone=n.revertClone,t.group=i},xe=function(){!fe&&Bt&&ut(Bt,"display","none")},we=function(){!fe&&Bt&&ut(Bt,"display","")};pe&&!tt&&document.addEventListener("click",(function(t){if(le)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),le=!1,!1}),!0);var Se=function(t){if(Ot){var e=function(t,e){var i;return ae.some((function(n){var o=n[Lt].options.emptyInsertThreshold;if(o&&!ft(n)){var s=ht(n),l=t>=s.left-o&&t<=s.right+o,a=e>=s.top-o&&e<=s.bottom+o;return l&&a?i=n:void 0}})),i}((t=t.touches?t.touches[0]:t).clientX,t.clientY);if(e){var i={};for(var n in t)t.hasOwnProperty(n)&&(i[n]=t[n]);i.target=i.rootEl=e,i.preventDefault=void 0,i.stopPropagation=void 0,e[Lt]._onDragOver(i)}}},ke=function(t){Ot&&Ot.parentNode[Lt]._isOutsideThisEl(t.target)};function _e(t,e){if(!t||!t.nodeType||1!==t.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=e=G({},e),t[Lt]=this;var i={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(t.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return ve(t,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(t,e){t.setData("Text",e.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==_e.supportPointer&&"PointerEvent"in window&&!Q,emptyInsertThreshold:5};for(var n in Tt.initializePlugins(this,t,i),i)!(n in e)&&(e[n]=i[n]);for(var o in ye(e),this)"_"===o.charAt(0)&&"function"==typeof this[o]&&(this[o]=this[o].bind(this));this.nativeDraggable=!e.forceFallback&&me,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?it(t,"pointerdown",this._onTapStart):(it(t,"mousedown",this._onTapStart),it(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(it(t,"dragover",this),it(t,"dragenter",this)),ae.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),G(this,At())}function Ce(t,e,i,n,o,s,l,a){var r,c,u=t[Lt],d=u.options.onMove;return!window.CustomEvent||V||K?(r=document.createEvent("Event")).initEvent("move",!0,!0):r=new CustomEvent("move",{bubbles:!0,cancelable:!0}),r.to=e,r.from=t,r.dragged=i,r.draggedRect=n,r.related=o||e,r.relatedRect=s||ht(e),r.willInsertAfter=a,r.originalEvent=l,t.dispatchEvent(r),d&&(c=d.call(u,r,l)),c}function Le(t){t.draggable=!1}function Ae(){de=!1}function Ee(t){for(var e=t.tagName+t.className+t.src+t.href+t.textContent,i=e.length,n=0;i--;)n+=e.charCodeAt(i);return n.toString(36)}function qe(t){return setTimeout(t,0)}function Te(t){return clearTimeout(t)}_e.prototype={constructor:_e,_isOutsideThisEl:function(t){this.el.contains(t)||t===this.el||(ee=null)},_getDirection:function(t,e){return"function"==typeof this.options.direction?this.options.direction.call(this,t,e,Ot):this.options.direction},_onTapStart:function(t){if(t.cancelable){var e=this,i=this.el,n=this.options,o=n.preventOnFilter,s=t.type,l=t.touches&&t.touches[0]||t.pointerType&&"touch"===t.pointerType&&t,a=(l||t).target,r=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||a,c=n.filter;if(function(t){be.length=0;var e=t.getElementsByTagName("input"),i=e.length;for(;i--;){var n=e[i];n.checked&&be.push(n)}}(i),!Ot&&!(/mousedown|pointerdown/.test(s)&&0!==t.button||n.disabled)&&!r.isContentEditable&&(this.nativeDraggable||!Q||!a||"SELECT"!==a.tagName.toUpperCase())&&!((a=lt(a,n.draggable,i,!1))&&a.animated||Dt===a)){if(jt=vt(a),Ut=vt(a,n.draggable),"function"==typeof c){if(c.call(this,t,a,this))return It({sortable:e,rootEl:r,name:"filter",targetEl:a,toEl:i,fromEl:i}),Rt("filter",e,{evt:t}),void(o&&t.cancelable&&t.preventDefault())}else if(c&&(c=c.split(",").some((function(n){if(n=lt(r,n.trim(),i,!1))return It({sortable:e,rootEl:n,name:"filter",targetEl:a,fromEl:i,toEl:i}),Rt("filter",e,{evt:t}),!0}))))return void(o&&t.cancelable&&t.preventDefault());n.handle&&!lt(r,n.handle,i,!1)||this._prepareDragStart(t,l,a)}}},_prepareDragStart:function(t,e,i){var n,o=this,s=o.el,l=o.options,a=s.ownerDocument;if(i&&!Ot&&i.parentNode===s){var r=ht(i);if(zt=s,$t=(Ot=i).parentNode,Pt=Ot.nextSibling,Dt=i,Gt=l.group,_e.dragged=Ot,Xt={target:Ot,clientX:(e||t).clientX,clientY:(e||t).clientY},Qt=Xt.clientX-r.left,Jt=Xt.clientY-r.top,this._lastX=(e||t).clientX,this._lastY=(e||t).clientY,Ot.style["will-change"]="all",n=function(){Rt("delayEnded",o,{evt:t}),_e.eventCanceled?o._onDrop():(o._disableDelayedDragEvents(),!Z&&o.nativeDraggable&&(Ot.draggable=!0),o._triggerDragStart(t,e),It({sortable:o,name:"choose",originalEvent:t}),ct(Ot,l.chosenClass,!0))},l.ignore.split(",").forEach((function(t){bt(Ot,t.trim(),Le)})),it(a,"dragover",Se),it(a,"mousemove",Se),it(a,"touchmove",Se),it(a,"mouseup",o._onDrop),it(a,"touchend",o._onDrop),it(a,"touchcancel",o._onDrop),Z&&this.nativeDraggable&&(this.options.touchStartThreshold=4,Ot.draggable=!0),Rt("delayStart",this,{evt:t}),!l.delay||l.delayOnTouchOnly&&!e||this.nativeDraggable&&(K||V))n();else{if(_e.eventCanceled)return void this._onDrop();it(a,"mouseup",o._disableDelayedDrag),it(a,"touchend",o._disableDelayedDrag),it(a,"touchcancel",o._disableDelayedDrag),it(a,"mousemove",o._delayedDragTouchMoveHandler),it(a,"touchmove",o._delayedDragTouchMoveHandler),l.supportPointer&&it(a,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(n,l.delay)}}},_delayedDragTouchMoveHandler:function(t){var e=t.touches?t.touches[0]:t;Math.max(Math.abs(e.clientX-this._lastX),Math.abs(e.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){Ot&&Le(Ot),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;nt(t,"mouseup",this._disableDelayedDrag),nt(t,"touchend",this._disableDelayedDrag),nt(t,"touchcancel",this._disableDelayedDrag),nt(t,"mousemove",this._delayedDragTouchMoveHandler),nt(t,"touchmove",this._delayedDragTouchMoveHandler),nt(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,e){e=e||"touch"==t.pointerType&&t,!this.nativeDraggable||e?this.options.supportPointer?it(document,"pointermove",this._onTouchMove):it(document,e?"touchmove":"mousemove",this._onTouchMove):(it(Ot,"dragend",this),it(zt,"dragstart",this._onDragStart));try{document.selection?qe((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(t){}},_dragStarted:function(t,e){if(se=!1,zt&&Ot){Rt("dragStarted",this,{evt:e}),this.nativeDraggable&&it(document,"dragover",ke);var i=this.options;!t&&ct(Ot,i.dragClass,!1),ct(Ot,i.ghostClass,!0),_e.active=this,t&&this._appendGhost(),It({sortable:this,name:"start",originalEvent:e})}else this._nulling()},_emulateDragOver:function(){if(Vt){this._lastX=Vt.clientX,this._lastY=Vt.clientY,xe();for(var t=document.elementFromPoint(Vt.clientX,Vt.clientY),e=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(Vt.clientX,Vt.clientY))!==e;)e=t;if(Ot.parentNode[Lt]._isOutsideThisEl(t),e)do{if(e[Lt]){if(e[Lt]._onDragOver({clientX:Vt.clientX,clientY:Vt.clientY,target:t,rootEl:e})&&!this.options.dragoverBubble)break}t=e}while(e=e.parentNode);we()}},_onTouchMove:function(t){if(Xt){var e=this.options,i=e.fallbackTolerance,n=e.fallbackOffset,o=t.touches?t.touches[0]:t,s=Bt&&dt(Bt,!0),l=Bt&&s&&s.a,a=Bt&&s&&s.d,r=he&&oe&&yt(oe),c=(o.clientX-Xt.clientX+n.x)/(l||1)+(r?r[0]-ue[0]:0)/(l||1),u=(o.clientY-Xt.clientY+n.y)/(a||1)+(r?r[1]-ue[1]:0)/(a||1);if(!_e.active&&!se){if(i&&Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))<i)return;this._onDragStart(t,!0)}if(Bt){s?(s.e+=c-(Kt||0),s.f+=u-(Zt||0)):s={a:1,b:0,c:0,d:1,e:c,f:u};var d="matrix(".concat(s.a,",").concat(s.b,",").concat(s.c,",").concat(s.d,",").concat(s.e,",").concat(s.f,")");ut(Bt,"webkitTransform",d),ut(Bt,"mozTransform",d),ut(Bt,"msTransform",d),ut(Bt,"transform",d),Kt=c,Zt=u,Vt=o}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!Bt){var t=this.options.fallbackOnBody?document.body:zt,e=ht(Ot,!0,he,!0,t),i=this.options;if(he){for(oe=t;"static"===ut(oe,"position")&&"none"===ut(oe,"transform")&&oe!==document;)oe=oe.parentNode;oe!==document.body&&oe!==document.documentElement?(oe===document&&(oe=pt()),e.top+=oe.scrollTop,e.left+=oe.scrollLeft):oe=pt(),ue=yt(oe)}ct(Bt=Ot.cloneNode(!0),i.ghostClass,!1),ct(Bt,i.fallbackClass,!0),ct(Bt,i.dragClass,!0),ut(Bt,"transition",""),ut(Bt,"transform",""),ut(Bt,"box-sizing","border-box"),ut(Bt,"margin",0),ut(Bt,"top",e.top),ut(Bt,"left",e.left),ut(Bt,"width",e.width),ut(Bt,"height",e.height),ut(Bt,"opacity","0.8"),ut(Bt,"position",he?"absolute":"fixed"),ut(Bt,"zIndex","100000"),ut(Bt,"pointerEvents","none"),_e.ghost=Bt,t.appendChild(Bt),ut(Bt,"transform-origin",Qt/parseInt(Bt.style.width)*100+"% "+Jt/parseInt(Bt.style.height)*100+"%")}},_onDragStart:function(t,e){var i=this,n=t.dataTransfer,o=i.options;Rt("dragStart",this,{evt:t}),_e.eventCanceled?this._onDrop():(Rt("setupClone",this),_e.eventCanceled||((Nt=_t(Ot)).removeAttribute("id"),Nt.draggable=!1,Nt.style["will-change"]="",this._hideClone(),ct(Nt,this.options.chosenClass,!1),_e.clone=Nt),i.cloneId=qe((function(){Rt("clone",i),_e.eventCanceled||(i.options.removeCloneOnHide||zt.insertBefore(Nt,Ot),i._hideClone(),It({sortable:i,name:"clone"}))})),!e&&ct(Ot,o.dragClass,!0),e?(le=!0,i._loopId=setInterval(i._emulateDragOver,50)):(nt(document,"mouseup",i._onDrop),nt(document,"touchend",i._onDrop),nt(document,"touchcancel",i._onDrop),n&&(n.effectAllowed="move",o.setData&&o.setData.call(i,n,Ot)),it(document,"drop",i),ut(Ot,"transform","translateZ(0)")),se=!0,i._dragStartId=qe(i._dragStarted.bind(i,e,t)),it(document,"selectstart",i),te=!0,Q&&ut(document.body,"user-select","none"))},_onDragOver:function(t){var e,i,n,o,s=this.el,l=t.target,a=this.options,r=a.group,c=_e.active,u=Gt===r,d=a.sort,b=Yt||c,p=this,h=!1;if(!de){if(void 0!==t.preventDefault&&t.cancelable&&t.preventDefault(),l=lt(l,a.draggable,s,!0),q("dragOver"),_e.eventCanceled)return h;if(Ot.contains(t.target)||l.animated&&l.animatingX&&l.animatingY||p._ignoreWhileAnimating===l)return M(!1);if(le=!1,c&&!a.disabled&&(u?d||(n=$t!==zt):Yt===this||(this.lastPutMode=Gt.checkPull(this,c,Ot,t))&&r.checkPut(this,c,Ot,t))){if(o="vertical"===this._getDirection(t,l),e=ht(Ot),q("dragOverValid"),_e.eventCanceled)return h;if(n)return $t=zt,T(),this._hideClone(),q("revert"),_e.eventCanceled||(Pt?zt.insertBefore(Ot,Pt):zt.appendChild(Ot)),M(!0);var g=ft(s,a.draggable);if(!g||function(t,e,i){var n=ht(ft(i.el,i.options.draggable)),o=Ct(i.el,i.options,Bt),s=10;return e?t.clientX>o.right+s||t.clientY>n.bottom&&t.clientX>n.left:t.clientY>o.bottom+s||t.clientX>n.right&&t.clientY>n.top}(t,o,this)&&!g.animated){if(g===Ot)return M(!1);if(g&&s===t.target&&(l=g),l&&(i=ht(l)),!1!==Ce(zt,s,Ot,e,l,i,t,!!l))return T(),g&&g.nextSibling?s.insertBefore(Ot,g.nextSibling):s.appendChild(Ot),$t=s,R(),M(!0)}else if(g&&function(t,e,i){var n=ht(mt(i.el,0,i.options,!0)),o=Ct(i.el,i.options,Bt),s=10;return e?t.clientX<o.left-s||t.clientY<n.top&&t.clientX<n.right:t.clientY<o.top-s||t.clientY<n.bottom&&t.clientX<n.left}(t,o,this)){var m=mt(s,0,a,!0);if(m===Ot)return M(!1);if(i=ht(l=m),!1!==Ce(zt,s,Ot,e,l,i,t,!1))return T(),s.insertBefore(Ot,m),$t=s,R(),M(!0)}else if(l.parentNode===s){i=ht(l);var f,v,y,x=Ot.parentNode!==s,w=!function(t,e,i){var n=i?t.left:t.top,o=i?t.right:t.bottom,s=i?t.width:t.height,l=i?e.left:e.top,a=i?e.right:e.bottom,r=i?e.width:e.height;return n===l||o===a||n+s/2===l+r/2}(Ot.animated&&Ot.toRect||e,l.animated&&l.toRect||i,o),S=o?"top":"left",k=gt(l,"top","top")||gt(Ot,"top","top"),_=k?k.scrollTop:void 0;if(ee!==l&&(v=i[S],re=!1,ce=!w&&a.invertSwap||x),f=function(t,e,i,n,o,s,l,a){var r=n?t.clientY:t.clientX,c=n?i.height:i.width,u=n?i.top:i.left,d=n?i.bottom:i.right,b=!1;if(!l)if(a&&ne<c*o){if(!re&&(1===ie?r>u+c*s/2:r<d-c*s/2)&&(re=!0),re)b=!0;else if(1===ie?r<u+ne:r>d-ne)return-ie}else if(r>u+c*(1-o)/2&&r<d-c*(1-o)/2)return function(t){return vt(Ot)<vt(t)?1:-1}(e);if((b=b||l)&&(r<u+c*s/2||r>d-c*s/2))return r>u+c/2?1:-1;return 0}(t,l,i,o,w?1:a.swapThreshold,null==a.invertedSwapThreshold?a.swapThreshold:a.invertedSwapThreshold,ce,ee===l),0!==f){var C=vt(Ot);do{C-=f,y=$t.children[C]}while(y&&("none"===ut(y,"display")||y===Bt))}if(0===f||y===l)return M(!1);ee=l,ie=f;var L=l.nextElementSibling,A=!1,E=Ce(zt,s,Ot,e,l,i,t,A=1===f);if(!1!==E)return 1!==E&&-1!==E||(A=1===E),de=!0,setTimeout(Ae,30),T(),A&&!L?s.appendChild(Ot):l.parentNode.insertBefore(Ot,A?L:l),k&&kt(k,0,_-k.scrollTop),$t=Ot.parentNode,void 0===v||ce||(ne=Math.abs(v-ht(l)[S])),R(),M(!0)}if(s.contains(Ot))return M(!1)}return!1}function q(a,r){Rt(a,p,F({evt:t,isOwner:u,axis:o?"vertical":"horizontal",revert:n,dragRect:e,targetRect:i,canSort:d,fromSortable:b,target:l,completed:M,onMove:function(i,n){return Ce(zt,s,Ot,e,i,ht(i),t,n)},changed:R},r))}function T(){q("dragOverAnimationCapture"),p.captureAnimationState(),p!==b&&b.captureAnimationState()}function M(e){return q("dragOverCompleted",{insertion:e}),e&&(u?c._hideClone():c._showClone(p),p!==b&&(ct(Ot,Yt?Yt.options.ghostClass:c.options.ghostClass,!1),ct(Ot,a.ghostClass,!0)),Yt!==p&&p!==_e.active?Yt=p:p===_e.active&&Yt&&(Yt=null),b===p&&(p._ignoreWhileAnimating=l),p.animateAll((function(){q("dragOverAnimationComplete"),p._ignoreWhileAnimating=null})),p!==b&&(b.animateAll(),b._ignoreWhileAnimating=null)),(l===Ot&&!Ot.animated||l===s&&!l.animated)&&(ee=null),a.dragoverBubble||t.rootEl||l===document||(Ot.parentNode[Lt]._isOutsideThisEl(t.target),!e&&Se(t)),!a.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),h=!0}function R(){Ft=vt(Ot),Wt=vt(Ot,a.draggable),It({sortable:p,name:"change",toEl:s,newIndex:Ft,newDraggableIndex:Wt,originalEvent:t})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){nt(document,"mousemove",this._onTouchMove),nt(document,"touchmove",this._onTouchMove),nt(document,"pointermove",this._onTouchMove),nt(document,"dragover",Se),nt(document,"mousemove",Se),nt(document,"touchmove",Se)},_offUpEvents:function(){var t=this.el.ownerDocument;nt(t,"mouseup",this._onDrop),nt(t,"touchend",this._onDrop),nt(t,"pointerup",this._onDrop),nt(t,"touchcancel",this._onDrop),nt(document,"selectstart",this)},_onDrop:function(t){var e=this.el,i=this.options;Ft=vt(Ot),Wt=vt(Ot,i.draggable),Rt("drop",this,{evt:t}),$t=Ot&&Ot.parentNode,Ft=vt(Ot),Wt=vt(Ot,i.draggable),_e.eventCanceled||(se=!1,ce=!1,re=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Te(this.cloneId),Te(this._dragStartId),this.nativeDraggable&&(nt(document,"drop",this),nt(e,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Q&&ut(document.body,"user-select",""),ut(Ot,"transform",""),t&&(te&&(t.cancelable&&t.preventDefault(),!i.dropBubble&&t.stopPropagation()),Bt&&Bt.parentNode&&Bt.parentNode.removeChild(Bt),(zt===$t||Yt&&"clone"!==Yt.lastPutMode)&&Nt&&Nt.parentNode&&Nt.parentNode.removeChild(Nt),Ot&&(this.nativeDraggable&&nt(Ot,"dragend",this),Le(Ot),Ot.style["will-change"]="",te&&!se&&ct(Ot,Yt?Yt.options.ghostClass:this.options.ghostClass,!1),ct(Ot,this.options.chosenClass,!1),It({sortable:this,name:"unchoose",toEl:$t,newIndex:null,newDraggableIndex:null,originalEvent:t}),zt!==$t?(Ft>=0&&(It({rootEl:$t,name:"add",toEl:$t,fromEl:zt,originalEvent:t}),It({sortable:this,name:"remove",toEl:$t,originalEvent:t}),It({rootEl:$t,name:"sort",toEl:$t,fromEl:zt,originalEvent:t}),It({sortable:this,name:"sort",toEl:$t,originalEvent:t})),Yt&&Yt.save()):Ft!==jt&&Ft>=0&&(It({sortable:this,name:"update",toEl:$t,originalEvent:t}),It({sortable:this,name:"sort",toEl:$t,originalEvent:t})),_e.active&&(null!=Ft&&-1!==Ft||(Ft=jt,Wt=Ut),It({sortable:this,name:"end",toEl:$t,originalEvent:t}),this.save())))),this._nulling()},_nulling:function(){Rt("nulling",this),zt=Ot=$t=Bt=Pt=Nt=Dt=Ht=Xt=Vt=te=Ft=Wt=jt=Ut=ee=ie=Yt=Gt=_e.dragged=_e.ghost=_e.clone=_e.active=null,be.forEach((function(t){t.checked=!0})),be.length=Kt=Zt=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":Ot&&(this._onDragOver(t),function(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move");t.cancelable&&t.preventDefault()}(t));break;case"selectstart":t.preventDefault()}},toArray:function(){for(var t,e=[],i=this.el.children,n=0,o=i.length,s=this.options;n<o;n++)lt(t=i[n],s.draggable,this.el,!1)&&e.push(t.getAttribute(s.dataIdAttr)||Ee(t));return e},sort:function(t,e){var i={},n=this.el;this.toArray().forEach((function(t,e){var o=n.children[e];lt(o,this.options.draggable,n,!1)&&(i[t]=o)}),this),e&&this.captureAnimationState(),t.forEach((function(t){i[t]&&(n.removeChild(i[t]),n.appendChild(i[t]))})),e&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,e){return lt(t,e||this.options.draggable,this.el,!1)},option:function(t,e){var i=this.options;if(void 0===e)return i[t];var n=Tt.modifyOption(this,t,e);i[t]=void 0!==n?n:e,"group"===t&&ye(i)},destroy:function(){Rt("destroy",this);var t=this.el;t[Lt]=null,nt(t,"mousedown",this._onTapStart),nt(t,"touchstart",this._onTapStart),nt(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(nt(t,"dragover",this),nt(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),(function(t){t.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),ae.splice(ae.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!Ht){if(Rt("hideClone",this),_e.eventCanceled)return;ut(Nt,"display","none"),this.options.removeCloneOnHide&&Nt.parentNode&&Nt.parentNode.removeChild(Nt),Ht=!0}},_showClone:function(t){if("clone"===t.lastPutMode){if(Ht){if(Rt("showClone",this),_e.eventCanceled)return;Ot.parentNode!=zt||this.options.group.revertClone?Pt?zt.insertBefore(Nt,Pt):zt.appendChild(Nt):zt.insertBefore(Nt,Ot),this.options.group.revertClone&&this.animate(Ot,Nt),ut(Nt,"display",""),Ht=!1}}else this._hideClone()}},pe&&it(document,"touchmove",(function(t){(_e.active||se)&&t.cancelable&&t.preventDefault()})),_e.utils={on:it,off:nt,css:ut,find:bt,is:function(t,e){return!!lt(t,e,t,!1)},extend:function(t,e){if(t&&e)for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t},throttle:St,closest:lt,toggleClass:ct,clone:_t,index:vt,nextTick:qe,cancelNextTick:Te,detectDirection:ve,getChild:mt},_e.get=function(t){return t[Lt]},_e.mount=function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];e[0].constructor===Array&&(e=e[0]),e.forEach((function(t){if(!t.prototype||!t.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(t));t.utils&&(_e.utils=F(F({},_e.utils),t.utils)),Tt.mount(t)}))},_e.create=function(t,e){return new _e(t,e)},_e.version="1.15.2";var Me,Re,Ie,Oe,$e,Be,ze=[],Pe=!1;function De(){ze.forEach((function(t){clearInterval(t.pid)})),ze=[]}function Ne(){clearInterval(Be)}var He=St((function(t,e,i,n){if(e.scroll){var o,s=(t.touches?t.touches[0]:t).clientX,l=(t.touches?t.touches[0]:t).clientY,a=e.scrollSensitivity,r=e.scrollSpeed,c=pt(),u=!1;Re!==i&&(Re=i,De(),Me=e.scroll,o=e.scrollFn,!0===Me&&(Me=xt(i,!0)));var d=0,b=Me;do{var p=b,h=ht(p),g=h.top,m=h.bottom,f=h.left,v=h.right,y=h.width,x=h.height,w=void 0,S=void 0,k=p.scrollWidth,_=p.scrollHeight,C=ut(p),L=p.scrollLeft,A=p.scrollTop;p===c?(w=y<k&&("auto"===C.overflowX||"scroll"===C.overflowX||"visible"===C.overflowX),S=x<_&&("auto"===C.overflowY||"scroll"===C.overflowY||"visible"===C.overflowY)):(w=y<k&&("auto"===C.overflowX||"scroll"===C.overflowX),S=x<_&&("auto"===C.overflowY||"scroll"===C.overflowY));var E=w&&(Math.abs(v-s)<=a&&L+y<k)-(Math.abs(f-s)<=a&&!!L),q=S&&(Math.abs(m-l)<=a&&A+x<_)-(Math.abs(g-l)<=a&&!!A);if(!ze[d])for(var T=0;T<=d;T++)ze[T]||(ze[T]={});ze[d].vx==E&&ze[d].vy==q&&ze[d].el===p||(ze[d].el=p,ze[d].vx=E,ze[d].vy=q,clearInterval(ze[d].pid),0==E&&0==q||(u=!0,ze[d].pid=setInterval(function(){n&&0===this.layer&&_e.active._onTouchMove($e);var e=ze[this.layer].vy?ze[this.layer].vy*r:0,i=ze[this.layer].vx?ze[this.layer].vx*r:0;"function"==typeof o&&"continue"!==o.call(_e.dragged.parentNode[Lt],i,e,t,$e,ze[this.layer].el)||kt(ze[this.layer].el,i,e)}.bind({layer:d}),24))),d++}while(e.bubbleScroll&&b!==c&&(b=xt(b,!1)));Pe=u}}),30),je=function(t){var e=t.originalEvent,i=t.putSortable,n=t.dragEl,o=t.activeSortable,s=t.dispatchSortableEvent,l=t.hideGhostForTarget,a=t.unhideGhostForTarget;if(e){var r=i||o;l();var c=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e,u=document.elementFromPoint(c.clientX,c.clientY);a(),r&&!r.el.contains(u)&&(s("spill"),this.onSpill({dragEl:n,putSortable:i}))}};function Fe(){}function Ue(){}Fe.prototype={startIndex:null,dragStart:function(t){var e=t.oldDraggableIndex;this.startIndex=e},onSpill:function(t){var e=t.dragEl,i=t.putSortable;this.sortable.captureAnimationState(),i&&i.captureAnimationState();var n=mt(this.sortable.el,this.startIndex,this.options);n?this.sortable.el.insertBefore(e,n):this.sortable.el.appendChild(e),this.sortable.animateAll(),i&&i.animateAll()},drop:je},G(Fe,{pluginName:"revertOnSpill"}),Ue.prototype={onSpill:function(t){var e=t.dragEl,i=t.putSortable||this.sortable;i.captureAnimationState(),e.parentNode&&e.parentNode.removeChild(e),i.animateAll()},drop:je},G(Ue,{pluginName:"removeOnSpill"}),_e.mount(new function(){function t(){for(var t in this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===t.charAt(0)&&"function"==typeof this[t]&&(this[t]=this[t].bind(this))}return t.prototype={dragStarted:function(t){var e=t.originalEvent;this.sortable.nativeDraggable?it(document,"dragover",this._handleAutoScroll):this.options.supportPointer?it(document,"pointermove",this._handleFallbackAutoScroll):e.touches?it(document,"touchmove",this._handleFallbackAutoScroll):it(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(t){var e=t.originalEvent;this.options.dragOverBubble||e.rootEl||this._handleAutoScroll(e)},drop:function(){this.sortable.nativeDraggable?nt(document,"dragover",this._handleAutoScroll):(nt(document,"pointermove",this._handleFallbackAutoScroll),nt(document,"touchmove",this._handleFallbackAutoScroll),nt(document,"mousemove",this._handleFallbackAutoScroll)),Ne(),De(),clearTimeout(at),at=void 0},nulling:function(){$e=Re=Me=Pe=Be=Ie=Oe=null,ze.length=0},_handleFallbackAutoScroll:function(t){this._handleAutoScroll(t,!0)},_handleAutoScroll:function(t,e){var i=this,n=(t.touches?t.touches[0]:t).clientX,o=(t.touches?t.touches[0]:t).clientY,s=document.elementFromPoint(n,o);if($e=t,e||this.options.forceAutoScrollFallback||K||V||Q){He(t,this.options,s,e);var l=xt(s,!0);!Pe||Be&&n===Ie&&o===Oe||(Be&&Ne(),Be=setInterval((function(){var s=xt(document.elementFromPoint(n,o),!0);s!==l&&(l=s,De()),He(t,i.options,s,e)}),10),Ie=n,Oe=o)}else{if(!this.options.bubbleScroll||xt(s,!0)===pt())return void De();He(t,this.options,xt(s,!1),!1)}}},G(t,{pluginName:"scroll",initializeByDefault:!0})}),_e.mount(Ue,Fe);class We{constructor(t){this.builder=t,this.dom=this.builder.dom}cellSelected(){return this.builder.doc.querySelector(".cell-active")}rowSelected(){return this.builder.doc.querySelector(".row-active")}builderStuff(){return document.querySelector("#_cbhtml")}cellNext(t){const e=this.dom;let i=t.nextElementSibling;return i?e.hasClass(i,"is-row-tool")||e.hasClass(i,"is-col-tool")||e.hasClass(i,"is-rowadd-tool")||e.hasClass(i,"is-row-overlay")?null:i:null}out(t){if(this.builder){let e=this.builder.opts.lang[t];return e||(this.builder.checkLang&&console.log(t),t)}return t}loadLightboxFromCdn(t){const e="https://cdnjs.cloudflare.com/ajax/libs/glightbox/3.2.0/js/glightbox.min.js";if(this.isJsOnContentIncluded(e))this.builder.doc.querySelector("#_skin")||this.builder.doc.body.insertAdjacentHTML("beforeend",`<style>${this.getLightboxCss()}</style>`),t&&t();else{const i=this.builder.doc.createElement("script");i.src=e,i.async=!0,i.onload=()=>{this.loadCssOnContent("https://cdnjs.cloudflare.com/ajax/libs/glightbox/3.2.0/css/glightbox.min.css"),this.builder.doc.body.insertAdjacentHTML("beforeend",`<style id="_skin">${this.getLightboxCss()}</style>`),t&&t()},this.builder.doc.body.appendChild(i)}}loadLightboxScript(t){const e=this.builder.assetPath+"scripts/glightbox/glightbox.min.js";if(this.isJsOnContentIncluded(e))t&&t();else{const i=this.builder.doc.createElement("script");i.src=e,i.async=!0,i.onload=()=>{this.builder.GLightbox?(this.loadCssOnContent(this.builder.assetPath+"scripts/glightbox/glightbox.min.css"),this.loadCssOnContent(this.builder.assetPath+"scripts/glightbox/skin.css"),t&&t()):this.loadLightboxFromCdn(t)},this.builder.doc.body.appendChild(i),i.onerror=()=>{this.loadLightboxFromCdn(t)}}}refreshLightbox(t,e){this.builder.glightbox&&this.builder.GLightbox?(this.builder.glightbox.destroy(),this.builder.glightbox=this.builder.GLightbox(t),e&&e()):this.loadLightboxScript((()=>{this.builder.GLightbox=this.builder.win.GLightbox,this.builder.glightbox=this.builder.win.GLightbox(t),e&&e()}))}openLightbox(t,e){const i=this.builder.openMediaElm;if(this.builder.glightbox){if(this.builder.doc.body.classList.contains("glightbox-open")){this.builder.glightbox.close();let i=this.builder.doc.querySelector(".goverlay");return i&&i.click(),void setTimeout((()=>{this.openLightbox(t,e)}),400)}let n=[],o=0;if(i){const e=i.closest("[data-gallery]");let s=[];if(e)s=e.querySelectorAll(".is-lightbox"),s.forEach(((e,i)=>{let s=e.getAttribute("href");n.push({href:s}),t===s&&(o=i)}));else{this.builder.doc.querySelectorAll(".is-lightbox,.block-click").forEach((t=>{t.closest("[data-gallery]")||t.classList.contains("lightbox-all")||s.push(t)})),s.forEach(((e,i)=>{let s=e.getAttribute("href");s||(s=e.getAttribute("data-modal-url")),n.push({href:s}),t===s&&(o=i)}))}}n.length>0?(this.builder.glightbox.setElements(n),this.builder.glightbox.openAt(o)):(this.builder.glightbox.setElements([{href:t}]),this.builder.glightbox.open()),this.builder.glightbox.on("close",(()=>{this.builder.glightbox.setElements([]),this.refreshLightbox(e)}))}this.builder.openMediaElm=null}isJsOnContentIncluded(t){const e=this.builder.doc.getElementsByTagName("script");for(let i=0;i<e.length;i++)if(e[i].getAttribute("src")===t)return!0;return!1}loadCssOnContent(t){const e=this.builder.doc.createElement("link");e.href=t,e.rel="stylesheet",this.builder.doc.head.appendChild(e)}showMessage(t,e,i){const n=this.dom;let o="";o=`<div class="is-modal modalmessage" tabindex="-1" role="dialog" aria-modal="true" aria-hidden="true">\n <div class="is-modal-content" style="padding-top: 15px;padding-bottom: 20px;max-width: 450px;">\n <div style="margin: 20px 0 30px;font-size: 17px;">${t}</div>\n <button title="${this.out("Ok")}" class="input-ok classic">${this.out("Ok")}</button>\n </div>\n </div>`;const s=this.builder.builderStuff;let l=s.querySelector(".modalmessage");l||(n.appendHtml(s,o),l=s.querySelector(".modalmessage")),this.showModal(l,!1,(()=>{l.parentNode.removeChild(l),i&&i()}));let a=l.querySelector(".modalmessage .input-ok");n.addEventListener(a,"click",(()=>{this.hideModal(l),l.parentNode&&l.parentNode.removeChild(l),i&&i()})),a.focus(),e&&a.classList.add("focus-outline")}showChoice(t,e,i){const n=this.dom;let o="";o=`<div class="is-modal modalmessage" tabindex="-1" role="dialog" aria-modal="true" aria-hidden="true">\n <div class="is-modal-content" style="padding-top: 15px;padding-bottom: 20px;max-width: 450px;">\n <div style="margin: 20px 0 30px;font-size: 17px;">${t}</div>\n\n <div style="display:flex;">\n <button title="${this.out("Cancel")}" class="input-cancel classic-secondary" style="width:100%;margin-right:4px;">${this.out("Cancel")}</button>\n <button title="${e}" class="input-ok classic-primary" style="width:100%">${e}</button>\n </div>\n </div>\n </div>`;const s=this.builder.builderStuff;let l=s.querySelector(".modalmessage");l||(n.appendHtml(s,o),l=s.querySelector(".modalmessage")),this.showModal(l,!1,(()=>{l.parentNode.removeChild(l),i(!1)}));let a=l.querySelector(".modalmessage .input-cancel");n.addEventListener(a,"click",(()=>{this.hideModal(l),l.parentNode.removeChild(l),i(!1)})),a.focus();let r=l.querySelector(".modalmessage .input-ok");n.addEventListener(r,"click",(()=>{this.hideModal(l),l.parentNode.removeChild(l),i(!0)}))}confirm(t,e,i,n,o,s="Cancel"){if(!this.builder.deleteConfirm&&!o)return void e(!0);const l=this.dom;let a="";a=`<div class="is-modal is-confirm" tabindex="-1" role="dialog" aria-modal="true" aria-hidden="true">\n <div class="is-modal-content" style="padding-bottom:20px;">\n <div style="margin: 20px 0 30px;font-size: 14px;">${t}</div>\n <button title="${this.out("Delete")}" class="input-ok classic focus-warning">${this.out("Delete")}</button>\n </div>\n </div>`,i&&(a=`<div class="is-modal is-confirm" tabindex="-1" role="dialog" aria-modal="true" aria-hidden="true">\n <div class="is-modal-content" style="padding-bottom:20px;">\n <div style="margin: 20px 0 30px;font-size: 14px;">${t}</div>\n <button title="${this.out(s)}" class="input-cancel classic-secondary">${this.out(s)}</button>\n <button title="${this.out(n)}" class="input-ok classic-primary">${this.out(n)}</button>\n </div>\n </div>`);const r=this.builder.builderStuff;let c=r.querySelector(".is-confirm");c||(l.appendHtml(r,a),c=r.querySelector(".is-confirm")),this.showModal(c,!1,(t=>{c.parentNode.removeChild(c),e(!1,t)}),!0);let u=c.querySelector(".is-confirm .input-ok");l.addEventListener(u,"click",(()=>{this.hideModal(c),c.parentNode.removeChild(c),e(!0)}));let d=c.querySelector(".is-confirm .input-cancel");l.addEventListener(d,"click",(t=>{this.hideModal(c),c.parentNode.removeChild(c),e(!1),t.preventDefault(),t.stopImmediatePropagation()})),u&&u.focus()}showRtePop(t,e,i){const n=this.dom;t.style.display="flex",t.setAttribute("aria-hidden","false"),e&&e(),n.removeClass(t,"deactive"),n.addClass(t,"active");const o=e=>{t.contains(e.target)||i.contains(e.target)||e.target.closest(".pickcolormore")||(this.hideRtePop(t),t.removeEventListener("keydown",s),document.removeEventListener("mousedown",o),document.removeEventListener("touchstart",o),this.builder.iframeDocument&&(this.builder.doc.removeEventListener("mousedown",o),this.builder.doc.removeEventListener("touchstart",o)))},s=e=>{27===e.keyCode&&(this.hideRtePop(t),t.removeEventListener("keydown",s),document.removeEventListener("mousedown",o),document.removeEventListener("touchstart",o),this.builder.iframeDocument&&(this.builder.doc.removeEventListener("mousedown",o),this.builder.doc.removeEventListener("touchstart",o)))};t.addEventListener("keydown",s),document.addEventListener("mousedown",o),document.addEventListener("touchstart",o,{passive:!1}),this.builder.iframeDocument&&(this.builder.doc.addEventListener("mousedown",o),this.builder.doc.addEventListener("touchstart",o,{passive:!1}))}hideRtePop(t){const e=this.dom;t.style.display="",e.removeClass(t,"active"),e.addClass(t,"deactive"),t.setAttribute("aria-hidden","true")}showPopOverlay(t,e,i){const n=this.builder.builderStuff;let o=n.querySelectorAll(".is-pop-overlay");const s=this.makeId(),l=`<div class="is-pop-overlay ${s}" style="display:flex;z-index:10004"></div>`;n.insertAdjacentHTML("beforeend",l);const a=n.querySelector(`.is-pop-overlay.${s}`);0===o.length&&(t.classList.add("pop1"),a.classList.add("pop1")),1===o.length&&(t.classList.add("pop2"),a.classList.add("pop2")),2===o.length&&(t.classList.add("pop3"),a.classList.add("pop3")),4===o.length&&(t.classList.add("pop4"),a.classList.add("pop4"));const r=()=>{a.remove(),t.style.display="",t.classList.remove("active"),t.setAttribute("aria-hidden",!0),a.classList.remove("pop1"),a.classList.remove("pop2"),a.classList.remove("pop3"),a.classList.remove("pop4"),t.classList.remove("pop1"),t.classList.remove("pop2"),t.classList.remove("pop3"),t.classList.remove("pop4"),t.removeEventListener("keydown",c),e&&e(),i&&i.focus()};this.hidePopOverlay=r;const c=t=>{27===t.keyCode&&r()};a.addEventListener("click",(t=>{r(),t.preventDefault(),t.stopImmediatePropagation()})),t.style.display="flex",t.classList.add("active"),t.setAttribute("aria-hidden",!1),this.setupTabKeys(t),t.focus({preventScroll:!0}),t.addEventListener("keydown",c)}showPop(t,e,i,n){const o=this.dom;document.querySelectorAll(".is-pop.active").forEach((e=>{let n=!0;e.contains(i)&&(n=!1),e!==t&&n&&(e.style.display="",o.removeClass(e,"active"),e.setAttribute("aria-hidden",!0))})),n?this.showPopOverlay(t,e,i):(this.clearAllEventListener(t),t.style.display="flex",o.addClass(t,"active"),t.setAttribute("aria-hidden",!1),this.setupTabKeys(t),t.focus({preventScroll:!0}),this.handlePopClickOut=n=>{t.contains(n.target)||i.contains(n.target)||(this.hidePop(t),e&&e(),i&&i.focus())},this.handlePopKeyDown=n=>{27===n.keyCode&&(this.hidePop(t),e&&e(),i&&i.focus())},t.addEventListener("keydown",this.handlePopKeyDown),document.addEventListener("mousedown",this.handlePopClickOut),document.addEventListener("touchstart",this.handlePopClickOut,{passive:!1}),this.builder.iframeDocument&&(this.builder.doc.addEventListener("mousedown",this.handlePopClickOut),this.builder.doc.addEventListener("touchstart",this.handlePopClickOut,{passive:!1})))}hidePop(t){const e=this.dom;t.style.display="",e.removeClass(t,"active"),this.builder.doc.body.focus(),setTimeout((()=>{t.setAttribute("aria-hidden",!0)}),0),this.clearAllEventListener(t)}clearAllEventListener(t){for(let e=0;e<10;e++)t.removeEventListener("keydown",this.handlePopKeyDown),document.removeEventListener("mousedown",this.handlePopClickOut),document.removeEventListener("touchstart",this.handlePopClickOut,{passive:!1}),this.builder.iframeDocument&&(this.builder.doc.removeEventListener("mousedown",this.handlePopClickOut),this.builder.doc.removeEventListener("touchstart",this.handlePopClickOut,{passive:!1}))}setupTabKeys(t){let e=t.querySelectorAll('a[href], input:not([disabled]):not([type="hidden"]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]):not([tabindex="-1"]), iframe, object, embed, *[tabindex]:not([tabindex="-1"])');if(0===e.length)return;let i=e[0],n=e[e.length-1];n.addEventListener("keydown",(n=>{9!==n.which||n.shiftKey||(n.preventDefault(),e=t.querySelectorAll('a[href], input:not([disabled]):not([type="hidden"]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]):not([tabindex="-1"]), iframe, object, embed, *[tabindex]:not([tabindex="-1"])'),i=e[0],i.focus())})),i.addEventListener("keydown",(t=>{9===t.which&&t.shiftKey&&(t.preventDefault(),n.focus())}));t.querySelectorAll("iframe").forEach((t=>{t.addEventListener("focus",(()=>{const e=t.contentWindow.document.querySelectorAll('a[href], input:not([disabled]):not([type="hidden"]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]):not([tabindex="-1"]), iframe, object, embed, *[tabindex]:not([tabindex="-1"])');if(0===e.length)return;let i=e[0];i&&i.focus()}))}))}showModal(t,e,i,n,o){const s=this.dom;s.addClass(t,"active"),t.setAttribute("aria-hidden",!1),o&&(document.body.style.overflow="hidden");const l=e=>{if(27===e.keyCode){o&&(document.body.style.overflow=""),s.hasClass(t,"active")&&this.hideModal(t),t.removeEventListener("keydown",l);const n=t.querySelector(".is-modal-close");n&&n.removeEventListener("click",c),i&&i(e)}};t.addEventListener("keydown",l);let a=t.querySelector(".is-tab-content.active");a?(a.focus(),this.builder.tabs.setupTabKey(a)):(this.setupTabKeys(t),t.focus());const r=t.querySelector(".is-modal-overlay");if(r&&r.parentNode.removeChild(r),!t.querySelector(".is-modal-overlay")){let n;if(n=e?'<div class="is-modal-overlay overlay-stay"></div>':'<div class="is-modal-overlay"></div>',t.insertAdjacentHTML("afterbegin",n),!e){let e=t.querySelector(".is-modal-overlay");s.addEventListener(e,"click",(()=>{o&&(document.body.style.overflow=""),this.hideModal(t),t.removeEventListener("keydown",l);const e=t.querySelector(".is-modal-close");e&&e.removeEventListener("click",c),i&&i()}))}}const c=()=>{o&&(document.body.style.overflow=""),s.hasClass(t,"active")&&this.hideModal(t),t.removeEventListener("keydown",l);const e=t.querySelector(".is-modal-close");e&&e.removeEventListener("click",c),i&&i()},u=t.querySelector(".is-modal-close");u&&s.addEventListener(u,"click",c)}_hideModal(t){let e=t.querySelector(".is-modal-overlay");e?e.classList.contains("overlay-stay")?(this.hideModal(t),t.dispatchEvent(new KeyboardEvent("keydown",{key:"e",keyCode:27,code:"KeyE",which:27,shiftKey:!1,ctrlKey:!1,metaKey:!1}))):e.click():(this.hideModal(t),t.dispatchEvent(new KeyboardEvent("keydown",{key:"e",keyCode:27,code:"KeyE",which:27,shiftKey:!1,ctrlKey:!1,metaKey:!1})))}hideModal(t){if(!t)return;if(this.builder.doc.activeElement.blur(),document.activeElement.blur(),t.setAttribute("aria-hidden",!0),this.builder){const t=this.builder.doc.querySelectorAll(this.builder.opts.container);Array.prototype.forEach.call(t,(t=>{t.getAttribute("scaled-down")&&(t.style.transform=`scale(${this.builder.opts.zoom})`,t.style.WebkitTransform=`scale(${this.builder.opts.zoom})`,t.style.MozTransform=`scale(${this.builder.opts.zoom})`,t.removeAttribute("scaled-down"))}))}this.dom.removeClass(t,"active"),t.style.display=""}refreshModuleLayout(t){let e;t.style.height?e=t.style.height:t.style.height=`${t.offsetHeight}px`,t.style.opacity=0;let i=decodeURIComponent(t.getAttribute("data-html"));i=i.replace(/{id}/g,this.builder.util.makeId()),t.innerHTML="";let n=document.createRange();n.setStart(t,0),t.appendChild(n.createContextualFragment(i));let o=t.querySelectorAll("[data-subblock]");var s=1;Array.prototype.forEach.call(o,(e=>{t.getAttribute("data-html-"+s)&&(e.innerHTML=decodeURIComponent(t.getAttribute("data-html-"+s)),e.contentEditable=!0),s++})),setTimeout((()=>{t.style.height=e||"",t.style.opacity=""}),100)}removeColClasses(t){t.classList.remove("full"),t.classList.remove("two-third"),t.classList.remove("two-fourth"),t.classList.remove("two-fifth"),t.classList.remove("two-sixth"),t.classList.remove("half"),t.classList.remove("third"),t.classList.remove("fourth"),t.classList.remove("fifth"),t.classList.remove("sixth"),t.classList.remove("seventh"),t.classList.remove("eighth"),t.classList.remove("ninth"),t.classList.remove("tenth"),t.classList.remove("eleventh"),t.classList.remove("twelfth")}getAllColumns(t){let e=[];const i=this.dom;return i.elementChildren(t).forEach((t=>{i.hasClass(t,"is-row-tool")||i.hasClass(t,"is-col-tool")||i.hasClass(t,"is-rowadd-tool")||i.hasClass(t,"is-row-overlay")||e.push(t)})),e}fixLayout(t){const e=this.dom;let i=!1,n=!1;if(Array.from(t.children).map((t=>{t.classList.contains("is-row-tool")||t.classList.contains("is-col-tool")||t.classList.contains("is-rowadd-tool")||(t.style.width="",t.style.flex="",t.classList.contains("sm-hidden")&&(i=!0),t.classList.contains("md-hidden")&&(n=!0))})),i?t.classList.add("sm-autofit"):t.classList.remove("sm-autofit"),n?t.classList.add("md-autofit"):t.classList.remove("md-autofit"),this.builder.useDefaultGrid){return e.elementChildren(t).forEach((t=>{e.hasClass(t,"is-row-tool")||e.hasClass(t,"is-col-tool")||e.hasClass(t,"is-rowadd-tool")||e.hasClass(t,"is-row-overlay")||this.removeColClasses(t)})),void Array.from(t.children).map((t=>{t.classList.contains("is-row-tool")||t.classList.contains("is-rowadd-tool")||t.classList.contains("is-col-tool")||t.getAttribute("data-module")&&this.refreshModuleLayout(t)}))}let o=3;t.querySelector(".is-row-overlay")&&(o=4);const s=t.childElementCount-o,l=this.builder.opts.row;let a=this.builder.opts.cols;const r=this.builder.opts.colequal;if(r.length>0){return e.elementChildren(t).forEach((t=>{if(!(e.hasClass(t,"is-row-tool")||e.hasClass(t,"is-col-tool")||e.hasClass(t,"is-rowadd-tool")||e.hasClass(t,"is-row-overlay"))){for(let i=0;i<=a.length-1;i++)e.removeClass(t,a[i]);for(let i=0;i<=r.length-1;i++)if(r[i].length===s){e.addClass(t,r[i][0]);break}1===s&&e.addClass(t,a[a.length-1])}})),void Array.from(t.children).map((t=>{t.classList.contains("is-row-tool")||t.classList.contains("is-rowadd-tool")||t.classList.contains("is-col-tool")||t.getAttribute("data-module")&&this.refreshModuleLayout(t)}))}if(""!==l&&a.length>0){let i=0;e.elementChildren(t).forEach((t=>{if(!(e.hasClass(t,"is-row-tool")||e.hasClass(t,"is-col-tool")||e.hasClass(t,"is-rowadd-tool")||e.hasClass(t,"is-row-overlay"))){-1!==t.className.indexOf("col-md-")||(-1!==t.className.indexOf("col-sm-")?a=["col-sm-1","col-sm-2","col-sm-3","col-sm-4","col-sm-5","col-sm-6","col-sm-7","col-sm-8","col-sm-9","col-sm-10","col-sm-11","col-sm-12"]:-1!==t.className.indexOf("col-xs-")?a=["col-xs-1","col-xs-2","col-xs-3","col-xs-4","col-xs-5","col-xs-6","col-xs-7","col-xs-8","col-xs-9","col-xs-10","col-xs-11","col-xs-12"]:-1!==t.className.indexOf("col-lg-")?a=["col-lg-1","col-lg-2","col-lg-3","col-lg-4","col-lg-5","col-lg-6","col-lg-7","col-lg-8","col-lg-9","col-lg-10","col-lg-11","col-lg-12"]:-1!==t.className.indexOf("col-xl-")?a=["col-xl-1","col-xl-2","col-xl-3","col-xl-4","col-xl-5","col-xl-6","col-xl-7","col-xl-8","col-xl-9","col-xl-10","col-xl-11","col-xl-12"]:-1!==t.className.indexOf("col-xxl-")&&(a=["col-xxl-1","col-xxl-2","col-xxl-3","col-xxl-4","col-xxl-5","col-xxl-6","col-xxl-7","col-xxl-8","col-xxl-9","col-xxl-10","col-xxl-11","col-xxl-12"])),i++;for(var n=0;n<=a.length-1;n++)e.removeClass(t,a[n]);1===s&&e.addClass(t,a[11]),2===s&&e.addClass(t,a[5]),3===s&&e.addClass(t,a[3]),4===s&&e.addClass(t,a[2]),5===s&&(5===i?e.addClass(t,a[3]):e.addClass(t,a[1])),6===s&&e.addClass(t,a[1]),7===s&&(i>=6?e.addClass(t,a[0]):e.addClass(t,a[1])),8===s&&(i>=5?e.addClass(t,a[0]):e.addClass(t,a[1])),9===s&&(i>=4?e.addClass(t,a[0]):e.addClass(t,a[1])),10===s&&(i>=3?e.addClass(t,a[0]):e.addClass(t,a[1])),11===s&&(i>=2?e.addClass(t,a[0]):e.addClass(t,a[1])),12===s&&e.addClass(t,a[0])}}))}Array.from(t.children).map((t=>{t.classList.contains("is-row-tool")||t.classList.contains("is-rowadd-tool")||t.classList.contains("is-col-tool")||t.getAttribute("data-module")&&this.refreshModuleLayout(t)}))}addContent(t,e,i){const n=this.dom;this.builder.opts.onAdd&&(t=this.builder.opts.onAdd(t));const o=this.cellSelected();let s;if(o)s=o.parentNode;else{let t=this.builder.activeElement;t&&t.closest(".is-block")||(s=this.builder.doc.querySelector(".row-active"),s&&(e="row"))}if("cell"===e||"cell-left"===e||"cell-right"===e){let l=4;this.builder.maxColumns&&(l=this.builder.maxColumns);let a,r,c=3;if(s.querySelector(".is-row-overlay")&&(c=4),s.childElementCount>=l+c)return alert(this.out("You have reached the maximum number of columns")),!1;if(this.builder.uo.saveForUndo(),""===this.builder.opts.row){let e=this.builder.opts.cellFormat,i=e.indexOf("</");t=e.substring(0,i)+t+e.substring(i),a=this.createElementFromHTML(t)}else{a=o.cloneNode(!0),a.removeAttribute("data-noedit"),a.removeAttribute("data-protected"),a.removeAttribute("data-module"),a.removeAttribute("data-module-desc"),a.removeAttribute("data-dialog-width"),a.removeAttribute("data-html"),a.removeAttribute("data-settings");for(let t=1;t<=20;t++)a.removeAttribute("data-html-"+t);a.removeAttribute("data-noedit"),n.removeClass(a,"cell-active"),n.removeClass(a,"is-light-text"),n.removeClass(a,"is-dark-text"),n.removeClass(a,"padding-0"),n.removeClass(a,"p-0"),a.removeAttribute("data-click"),a.removeAttribute("style"),i&&a.setAttribute(i,""),a.innerHTML=t}if(s.insertBefore(a,o),"cell"!==e&&"cell-right"!==e||n.moveAfter(a,o),a.children&&a.children[0]){const t=["H1","H2","H3","H4","P","PRE","LI","TD"];for(let e=0;e<t.length;e++){const i=a.querySelector(t[e]);if(i){r=i;break}}r||(r=a.children[0])}let u=this.builder.doc.querySelector(".builder-active");u&&this.builder.applyBehaviorOn(u),this.fixLayout(s);try{if(r&&r.tagName&&"img"===r.tagName.toLowerCase())r.onload=()=>{r.click(),r.onload=null,setTimeout((()=>{this.builder.element.image.repositionImageTool()}),100)};else if(r){r.focus();const t=this.builder.doc.createRange(),e=this.builder.win.getSelection();t.selectNodeContents(r),t.collapse(!1),e.removeAllRanges(),e.addRange(t),r.click()}}catch(t){}}if("row"===e){let e,o,l;if(this.builder.uo.saveForUndo(),""===this.builder.opts.row){e=this.htmlToElement(this.builder.opts.rowFormat);let s=this.builder.opts.cellFormat,l=s.indexOf("</");t=s.substring(0,l)+t+s.substring(l);let a=n.elementChildren(e);for(;a.length>0&&(a=a[0],n.elementChildren(a).length>0);)a=n.elementChildren(a);a.innerHTML=t,o=a.firstChild,i&&o.setAttribute(i,"")}else o=n.createElement("div"),n.addClass(o,this.builder.opts.cols[this.builder.opts.cols.length-1]),o.innerHTML=t,i&&o.setAttribute(i,""),e=n.createElement("div"),n.addClass(e,this.builder.opts.row),n.appendChild(e,o);if(s.parentNode.insertBefore(e,s),n.moveAfter(e,s),e.children&&e.children[0]&&e.children[0].children&&e.children[0].children[0]){const t=e.children[0],i=["H1","H2","H3","H4","P","PRE","LI","TD"];for(let e=0;e<i.length;e++){const n=t.querySelector(i[e]);if(n){l=n;break}}l||(l=t.children[0])}let a=this.builder.doc.querySelector(".builder-active");a&&this.builder.applyBehaviorOn(a);try{if(l&&l.tagName&&"img"===l.tagName.toLowerCase())l.onload=()=>{l.click(),l.onload=null,setTimeout((()=>{this.builder.element.image.repositionImageTool()}),100)};else if(l){l.focus();const t=this.builder.doc.createRange(),e=this.builder.win.getSelection();t.selectNodeContents(l),t.collapse(!1),e.removeAllRanges(),e.addRange(t),l.click()}}catch(t){}}let l=!1,a=this.builder.activeElement;const r=a&&a.closest("[data-cb-type]"),c=a&&a.closest(".is-subblock");if(r&&c&&(l=!0),"elm"===e){let e=this.builder.activeElement;if(!e)return;this.builder.uo.saveForUndo();let i,o=e;if(o.closest("[data-cb-type]"))o.insertAdjacentHTML("afterend",t),i=o.nextElementSibling;else if(!o.nextElementSibling&&o.closest(".display")){let e,s=this.builder.activeCol;n.elementChildren(s).forEach((t=>{t.contains(o)&&(e=t)})),e&&(e.insertAdjacentHTML("afterend",t),i=e.nextElementSibling)}else o.insertAdjacentHTML("afterend",t),i=o.nextElementSibling;let s=o.closest(".is-container");if(s&&this.builder.applyBehaviorOn(s),"img"===i.tagName.toLowerCase()){let t=setInterval((()=>{i.complete&&(i.click(),setTimeout((()=>{this.builder.element.image.repositionImageTool()}),100),clearInterval(t))}),30)}else{let t;if(-1!==["H1","H2","H3","H4","P","PRE","LI","TD"].indexOf(i.tagName)?t=i:(t=i.querySelector("h1, h2, h3, h4, p, pre, li, td"),!t&&i.children&&i.children[0]&&(t=i.children[0])),t){const e=this.builder.doc.createRange(),i=this.builder.win.getSelection();e.selectNodeContents(t),e.collapse(!1),i.removeAllRanges(),i.addRange(e),t.click()}else i.click()}}let u=this.builder.builderStuff.querySelector(".quickadd");if(u&&this.hidePop(u),this.builder.useCssClasses){let t=this.builder.doc.querySelector(".builder-active");t&&n.contentReformat(t,this.builder.cssClasses)}this.builder.opts.onChange(),this.builder.opts.onRender(),this.builder.win.builderRuntime&&!l&&this.builder.win.builderRuntime.reinitialize(),setTimeout((()=>{this.builder.makeSortable(this.builder.doc)}),400)}htmlToElement(t){var e=document.createElement("template");return t=t.trim(),e.innerHTML=t,e.content.firstChild}autoSelect(t){let e;if(t.children&&t.children[0]&&t.children[0].children&&t.children[0].children[0]){const i=t.children[0];if(i.hasAttribute("data-html"))setTimeout((()=>{i.click()}),100);else if(i.children[0].hasAttribute("data-cb-type"))setTimeout((()=>{i.click()}),10);else{const n=["H1","H2","H3","H4","P","PRE","LI","TD"];for(let i=0;i<n.length;i++){const o=t.querySelector(n[i]);if(o){e=o;break}}e||(e=i.children[0]);try{if(e&&e.tagName&&"img"===e.tagName.toLowerCase())e.onload=()=>{e.click(),e.onload=null,setTimeout((()=>{this.builder.element.image.repositionImageTool()}),100)};else if(e){e.focus();const t=this.builder.doc.createRange(),i=this.builder.win.getSelection();t.selectNodeContents(e),t.collapse(!1),i.removeAllRanges(),i.addRange(t),setTimeout((()=>{e.click()}),100)}}catch(t){}}}}addSnippet(t,e,i){this.builder.uo.saveForUndo();const n=this.dom;let o,s,l,a=!1;let r,c=this.builder.builderStuff.querySelector(".quickadd");if(r=c?c.getAttribute("data-mode"):"row",!e||"cell"!==r&&"cell-left"!==r&&"cell-right"!==r){if(e&&"row"===r){let e;if(l=document.createElement("div"),l.className=this.builder.opts.cols[this.builder.opts.cols.length-1],l.innerHTML=t,i&&l.setAttribute("data-noedit",""),o=document.createElement("div"),o.className=this.builder.opts.row,o.appendChild(l),s=this.builder.cellSelected(),s?e=s.parentNode:(e=this.builder.doc.querySelector(".row-active"),e||(a=!0)),a){const t=this.builder.doc.querySelectorAll(".is-builder"),i=t[t.length-1],o=n.elementChildren(i);e=o[o.length-1]}e.parentNode.insertBefore(o,e),n.moveAfter(o,e);let r=this.builder.doc.querySelector(".builder-active");r||(r=this.builder.doc.querySelector(".is-builder")),this.builder.applyBehaviorOn(r),this.autoSelect(o),this.builder.util.hideColumnTool(),setTimeout((()=>{this.builder.makeSortable(this.builder.doc)}),400)}else{if(e)return void(i?this.addContent(t,r,"data-noedit"):this.addContent(t,r));{var u=document.createElement("div");u.innerHTML=t;var d=u.querySelectorAll("[data-html]");if(Array.prototype.forEach.call(d,(e=>{t=(t=(t=decodeURIComponent(e.getAttribute("data-html"))).replace(/{id}/g,this.makeId())).replace(/<script>/g,""+(this.builder.nonce?`<script nonce="${this.builder.nonce}">`:"<script>"));for(var i=1;i<=20;i++)t=t.replace("[%HTML"+i+"%]",void 0===e.getAttribute("data-html-"+i)?"":decodeURIComponent(e.getAttribute("data-html-"+i)));e.innerHTML=t,e.classList.add("dummy-module")})),1===u.childNodes.length&&1===u.childNodes[0].childNodes.length&&("cell"===r||"cell-left"===r||"cell-right"===r)){const t=this.cellSelected();let e=t.parentNode,i=4;if(this.builder.maxColumns&&(i=this.builder.maxColumns),e.querySelector(".is-row-overlay")){if(e.childElementCount>=i+4)return alert(this.out("You have reached the maximum number of columns")),!1}else if(e.childElementCount>=i+3)return alert(this.out("You have reached the maximum number of columns")),!1;this.builder.uo.saveForUndo();let n=u.childNodes[0].childNodes[0];var b=document.createRange();t.parentNode.insertBefore(b.createContextualFragment(n.outerHTML),t),"cell"!==r&&"cell-right"!==r||(t.parentNode.insertBefore(t.previousElementSibling,t),t.parentNode.insertBefore(t,t.previousElementSibling));let o=this.builder.doc.querySelector(".builder-active");return o||(o=this.builder.doc.querySelector(".is-builder")),this.builder.applyBehaviorOn(o),this.fixLayout(e),"cell"===r||"cell-right"===r?t.nextElementSibling.click():t.previousElementSibling.click(),this.builder.opts.onChange(),void this.builder.opts.onRender()}let e;if(s=this.builder.activeCol,s?e=s.parentNode:(e=this.builder.doc.querySelector(".row-active"),e||(a=!0)),a){const t=this.builder.doc.querySelectorAll(".is-builder"),i=t[t.length-1],o=n.elementChildren(i);e=o[o.length-1]}b=document.createRange(),e.parentNode.insertBefore(b.createContextualFragment(u.innerHTML),e.nextSibling),o=u.childNodes[0],o=e.nextElementSibling;let i=this.builder.doc.querySelector(".builder-active");i||(i=this.builder.doc.querySelector(".is-builder")),this.builder.applyBehaviorOn(i),this.autoSelect(o);let l=this.builder.builderStuff.querySelector(".quickadd");l&&this.hidePop(l);this.builder.doc.querySelectorAll(".dummy-module").forEach((t=>{t.querySelectorAll(".grid-sortable").forEach((t=>{new _e(t,{animation:600,dragClass:"hide-drag-class",onStart:()=>{this.builder.uo.saveForUndo(!0)},onSort:()=>{if(t.closest("[data-html]")){const e=t.closest("[data-html]"),i=encodeURIComponent(e.innerHTML);e.setAttribute("data-html",i),this.builder.opts.onChange()}}})}))})),this.builder.doc.querySelectorAll(".dummy-module").forEach((t=>{t.classList.remove("dummy-module")})),setTimeout((()=>{this.builder.makeSortable(this.builder.doc)}),400),o.className=o.className.replace("row-outline",""),this.builder.util.hideColumnTool()}}if(this.builder.useCssClasses){let t=this.builder.doc.querySelector(".builder-active");t&&n.contentReformat(t,this.builder.cssClasses)}this.builder.opts.onChange(),this.builder.opts.onRender(),this.builder.win.builderRuntime&&this.builder.win.builderRuntime.reinitialize()}else i?this.addContent(t,r,"data-noedit"):this.addContent(t,r)}clearActiveCell(){if(!this.builder.builderStuff)return;let t=this.builder.doc.getElementsByClassName("cell-active");for(;t.length;)t[0].classList.remove("cell-active");for(t=this.builder.doc.getElementsByClassName("row-outline");t.length;)t[0].classList.remove("row-outline");for(t=this.builder.doc.getElementsByClassName("row-active");t.length;)t[0].classList.remove("row-active");for(t=this.builder.doc.getElementsByClassName("builder-active");t.length;)t[0].classList.remove("builder-active");this.builder.activeCol=null,this.builder.dom.removeClass(this.builder.doc.body,"content-edit")}clearAfterUndoRedo(){const t=this.dom,e=this.builder.builderStuff;let i=e.querySelectorAll(".is-tool");Array.prototype.forEach.call(i,(e=>{e.style.display="",t.removeClass(e,"active")})),this.builder.iframe&&(i=this.builder.contentStuff.querySelectorAll(".is-tool"),Array.prototype.forEach.call(i,(e=>{e.style.display="",t.removeClass(e,"active")}))),this.builder.moveable&&this.builder.moveable.updateRect();const n=document.querySelector(".moveable-control-box");if(n&&(n.style.display="none"),this.builder.activeSpacer=null,this.builder.activeCodeBlock=null,this.builder.activeLink=null,this.builder.activeLinkButton=null,this.builder.activeButton=null,this.builder.activeIframe=null,this.builder.activeTd=null,this.builder.activeTable=null,this.builder.activeModule=null,this.builder.doc.querySelectorAll(".icon-active").forEach((t=>t.classList.remove("icon-active"))),this.builder.activeIcon=null,!this.builder.controlPanel){let i=e.querySelector(".is-rte-tool").querySelectorAll("button");Array.prototype.forEach.call(i,(e=>{t.removeClass(e,"on")})),i=e.querySelector(".is-elementrte-tool").querySelectorAll("button"),Array.prototype.forEach.call(i,(e=>{t.removeClass(e,"on")}))}let o=e.querySelectorAll(".is-pop");Array.prototype.forEach.call(o,(t=>{t.style.display=""}))}hidePops(){const t=this.dom,e=this.builder.builderStuff;let i=e.querySelectorAll(".is-tool");Array.prototype.forEach.call(i,(e=>{e.style.display="",t.removeClass(e,"active")}));let n=e.querySelectorAll(".is-pop.active");Array.prototype.forEach.call(n,(e=>{e.style.transition="all 200ms ease",setTimeout((()=>{e.style.opacity="0"}),10),setTimeout((()=>{e.style.display="",t.removeClass(e,"active"),e.style.opacity="",e.style.transition=""}),200)}));const o=document.querySelector(".moveable-control-box"),s=document.querySelector("#divImageResizer");o&&s&&!s.getAttribute("data-resizing")&&(o.style.display="none")}hideControls(){const t=this.dom;let e=this.builder.builderStuff.querySelectorAll(".is-tool");Array.prototype.forEach.call(e,(e=>{e.style.display="",t.removeClass(e,"active")})),this.builder.iframe&&(e=this.builder.contentStuff.querySelectorAll(".is-tool"),Array.prototype.forEach.call(e,(e=>{e.style.display="",t.removeClass(e,"active")}))),this.builder.moveable&&this.builder.moveable.updateRect();const i=document.querySelector(".moveable-control-box");i&&(i.style.display="none")}clearActiveElement(t){const e=this.dom,i=this.builder.builderStuff;this.builder.doc.querySelectorAll(".icon-active").forEach((t=>t.classList.remove("icon-active"))),this.builder.activeIcon=null;let n=this.builder.doc.querySelectorAll(".elm-inspected");Array.prototype.forEach.call(n,(t=>{e.removeClass(t,"elm-inspected")})),this.builder.inspectedElement=null,n=this.builder.doc.querySelectorAll(".elm-active"),Array.prototype.forEach.call(n,(t=>{e.removeClass(t,"elm-active")})),this.builder.activeElement=null,this.builder.doc.querySelector(".is-element-tool").style.display="";let o=this.builder.doc.querySelector("#divLinkTool");if(o&&(o.style.display=""),t&&!this.builder.controlPanel){let t=i.querySelector(".is-rte-tool");t&&(t.style.display="none");let e=i.querySelector(".is-elementrte-tool");e&&(e.style.display="flex");let n=i.querySelector(".rte-more-options");n&&(n.style.display="");let o=i.querySelector(".elementrte-more-options");o&&(o.style.display="");let s=e.querySelectorAll("button[data-align]");Array.prototype.forEach.call(s,(t=>{t.style.display="none"})),this.builder.rte.positionToolbar()}}clearPops(){const t=this.dom,e=this.builder.builderStuff;if(!e)return;let i=e.querySelectorAll(".is-tool");Array.prototype.forEach.call(i,(e=>{e.style.display="",t.removeClass(e,"active")})),this.builder.iframe&&(i=this.builder.contentStuff.querySelectorAll(".is-tool"),Array.prototype.forEach.call(i,(e=>{e.style.display="",t.removeClass(e,"active")}))),this.builder.moveable&&this.builder.moveable.updateRect();const n=document.querySelector(".moveable-control-box");n&&(n.style.display="none");let o=this.builder.doc.querySelectorAll(".ovl");Array.prototype.forEach.call(o,(t=>{t.style.display="block"}));let s=e.querySelectorAll(".is-pop");Array.prototype.forEach.call(s,(e=>{e.style.display="",t.removeClass(e,"active"),e.setAttribute("aria-hidden",!0)})),this.builder.colTool.lockIndicator.style.display="",this.builder.resize&&this.builder.resize.destroy()}clearModals(){let t=this.builder.builderStuff.querySelector(".pluginsettings.active");this.hideModal(t)}clearControls(){const t=this.dom,e=this.builder.builderStuff;if(!e)return;let i=e.querySelectorAll(".is-tool");Array.prototype.forEach.call(i,(e=>{e.style.display="",t.removeClass(e,"active")})),this.builder.iframe&&(i=this.builder.contentStuff.querySelectorAll(".is-tool"),Array.prototype.forEach.call(i,(e=>{e.style.display="",t.removeClass(e,"active")}))),this.builder.moveable&&this.builder.moveable.updateRect();const n=document.querySelector(".moveable-control-box");n&&(n.style.display="none"),this.builder.activeSpacer=null,this.builder.activeCodeBlock=null,this.builder.activeLink=null,this.builder.activeLinkButton=null,this.builder.activeButton=null,this.builder.activeIframe=null,this.builder.activeTd=null,this.builder.activeTable=null,this.builder.activeModule=null,this.builder.activeImage=null,this.builder.doc.querySelectorAll(".icon-active").forEach((t=>t.classList.remove("icon-active"))),this.builder.activeIcon=null;let o=this.builder.doc.querySelectorAll(".ovl");Array.prototype.forEach.call(o,(t=>{t.style.display="block"}));var s=e.querySelectorAll(".is-side.elementstyles");Array.prototype.forEach.call(s,(e=>{t.removeClass(e,"active")}));let l=this.builder.doc.querySelectorAll("[data-saveforundo]");if(Array.prototype.forEach.call(l,(t=>{t.removeAttribute("data-saveforundo")})),l=this.builder.doc.querySelectorAll(".elm-inspected"),Array.prototype.forEach.call(l,(e=>{t.removeClass(e,"elm-inspected")})),!this.builder.controlPanel&&"auto"===this.builder.toolbarDisplay){let t=e.querySelector(".is-rte-tool");t&&(t.style.display="none");let i=e.querySelector(".is-elementrte-tool");i&&(i.style.display="none");let n=e.querySelector(".rte-more-options");n&&(n.style.display="");let o=e.querySelector(".elementrte-more-options");o&&(o.style.display="")}if(l=this.builder.doc.querySelectorAll(".elm-active"),Array.prototype.forEach.call(l,(e=>{t.removeClass(e,"elm-active")})),!this.builder.controlPanel){let i=e.querySelectorAll(".is-rte-pop");Array.prototype.forEach.call(i,(e=>{e.style.display="",t.removeClass(e,"active"),t.removeClass(e,"deactive")}))}let a=e.querySelectorAll(".is-pop");Array.prototype.forEach.call(a,(e=>{e.style.display="",t.removeClass(e,"active"),this.builder.doc.body.focus(),setTimeout((()=>{e.setAttribute("aria-hidden",!0)}),0)})),this.builder.colTool.lockIndicator.style.display="",this.builder.resize&&this.builder.resize.destroy()}makeId(){let t="",e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";for(let i=0;i<2;i++)t+=e.charAt(Math.floor(Math.random()*e.length));let i="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";for(let t=0;t<5;t++)i+=n.charAt(Math.floor(Math.random()*n.length));return t+i}getSelection(){if(this.builder.dom.getSelectedBlocks().length>0)this.builder.selectionMulti=!0;else{this.builder.selectionMulti=!1;const t=this.builder.win.getSelection(),e=this.builder.dom.getElm();if(!e)return;if(e&&e.innerText===t.toString().trim()||""===t.toString().trim()){this.builder.selectionElm=e;let t=e.closest("a");this.builder.activeLink=t||null}else this.builder.selectionText=t,this.builder.activeLink=null}}saveSelection(){if(this.builder.win.getSelection){let t=this.builder.win.getSelection();if(t.getRangeAt&&t.rangeCount){let e=[];for(let i=0,n=t.rangeCount;i<n;++i)e.push(t.getRangeAt(i));return this.builder.selection=e,e}}else if(this.builder.doc.selection&&this.builder.doc.selection.createRange)return this.builder.selection=this.builder.doc.selection.createRange(),this.builder.doc.selection.createRange();return this.builder.selection=null,null}restoreSelection(){let t=this.builder.selection;if(t)if(this.builder.win.getSelection){let o=this.builder.win.getSelection();if(this.builder.doc.body.createTextRange){var e=this.builder.doc.body.createTextRange();e.collapse(),e.select()}else this.builder.win.getSelection?this.builder.win.getSelection().empty?this.builder.win.getSelection().empty():this.builder.win.getSelection().removeAllRanges&&this.builder.win.getSelection().removeAllRanges():this.builder.doc.selection&&this.builder.doc.selection.empty();for(var i=0,n=t.length;i<n;++i)o.addRange(t[i])}else this.builder.doc.selection&&t.select&&t.select()}cleanHTML(t,e){let i,n=t.replace(/(\n|\r| class=(")?Mso[a-zA-Z]+(")?)/g," "),o=new RegExp("\x3c!--(.*?)--\x3e","g");n=n.replace(o,""),i=e?new RegExp("<(/)*(meta|link|span|\\?xml:|st1:|o:|font)(.*?)>","gi"):new RegExp("<(/)*(meta|link|\\?xml:|st1:|o:|font)(.*?)>","gi"),n=n.replace(i,"");let s,l=["style","script","applet","embed","noframes","noscript"];for(let t=0;t<l.length;t++)i=new RegExp("<"+l[t]+".*?"+l[t]+"(.*?)>","gi"),n=n.replace(i,"");s=e?["style","start"]:["start"];for(let t=0;t<s.length;t++){let e=new RegExp(" "+s[t]+'="(.*?)"',"gi");n=n.replace(e,"")}return n=n.replace(/<(!|script[^>]*>.*?<\/script(?=[>\s])|\/?(\?xml(:\w+)?|img|meta|link|style|\w:\w+)(?=[\s/>]))[^>]*>/gi,""),n=n.replace(/<(\/?)s>/gi,"<$1strike>"),n=n.replace(/&nbsp;/gi," "),n=n.replace(/background-color: rgba\(200, 200, 201, 0.11\);/gi,""),n=n.replace(/background-color: rgba\(200, 200, 201, 0.11\)/gi,""),n}checkEmpty(){const t=this.builder.doc.querySelectorAll(this.builder.opts.container);Array.prototype.forEach.call(t,(t=>{this.checkEmptyOn(t)}))}checkEmptyOn(t){const e=this.dom,i=e.elementChildren(t);let n=!0;if(i.forEach((t=>{e.hasClass(t,"row-add-initial")||e.hasClass(t,"dummy-space")||"link"!==t.tagName.toLowerCase()&&(n=!1)})),n){let i=t.querySelector(".row-add-initial");i||(t.innerHTML=`<button type="button" class="row-add-initial">${this.out("Empty")}<br><span class="block">${this.out("+ Click to add content")}</span></div>`,i=t.querySelector(".row-add-initial")),i.addEventListener("click",(()=>{this.clearActiveCell();const n=this.builder.doc.querySelectorAll(this.builder.opts.container);Array.prototype.forEach.call(n,(t=>{e.removeClass(t,"builder-active")})),e.addClass(t,"builder-active"),e.addClass(i,"row-active");const o=H(this.builder);o.querySelector(".is-pop-tabs").style.display="none";const s=window.innerHeight,l=this.getElementPosition(i);let a=l.top,r=l.left,c=l.scaleX,u=l.scaleY;r+=i.offsetWidth*(c*this.builder.opts.zoom)/2-11,a-=i.offsetHeight-i.offsetHeight*u,o.style.display="flex",this.showPop(o,!1,i);const d=o.offsetWidth,b=o.offsetHeight;s-a>b?(a=a+i.offsetHeight*this.builder.opts.zoom-19,o.style.top=a+window.pageYOffset+27+"px",o.style.left=r-d/2+7+"px",e.removeClass(o,"arrow-bottom"),e.removeClass(o,"arrow-right"),e.removeClass(o,"arrow-left"),e.removeClass(o,"center"),e.addClass(o,"arrow-top"),e.addClass(o,"center")):(o.style.top=a+window.pageYOffset-b-8+"px",o.style.left=r-d/2+7+"px",e.removeClass(o,"arrow-top"),e.removeClass(o,"arrow-right"),e.removeClass(o,"arrow-left"),e.removeClass(o,"center"),e.addClass(o,"arrow-bottom"),e.addClass(o,"center")),o.setAttribute("data-mode","row")}))}else{let e=t.querySelector(".row-add-initial");e&&e.parentNode.removeChild(e)}}clearPreferences(){localStorage.removeItem("_theme"),localStorage.removeItem("_zoom"),localStorage.removeItem("_buildermode"),localStorage.removeItem("_editingtoolbar"),localStorage.removeItem("_editingtoolbardisplay"),localStorage.removeItem("_hidecelltool"),localStorage.removeItem("_rowtool"),localStorage.removeItem("_hideelementtool"),localStorage.removeItem("_hidesnippetaddtool"),localStorage.removeItem("_outlinemode"),localStorage.removeItem("_hiderowcoloutline"),localStorage.removeItem("_outlinestyle"),localStorage.removeItem("_hideelementhighlight"),localStorage.removeItem("_opensnippets"),localStorage.removeItem("_toolstyle"),localStorage.removeItem("_snippetssidebardisplay"),localStorage.removeItem("_htmlview"),localStorage.removeItem("_pasteresult"),localStorage.removeItem("_livepreview"),localStorage.removeItem("_dictation"),localStorage.removeItem("_mic"),localStorage.removeItem("_autosendcommand"),localStorage.removeItem("_disclaimershown"),localStorage.removeItem("_temp"),localStorage.removeItem("_top_p"),localStorage.removeItem("_autosend_delay"),localStorage.removeItem("_auto_editblock"),localStorage.removeItem("_command_lang"),localStorage.removeItem("_ai_panel_open"),localStorage.removeItem("_pagesize"),localStorage.removeItem("chatPanelVisible"),localStorage.removeItem("chatSettings"),localStorage.removeItem("_scrollableeditor"),localStorage.removeItem("_animatedsorting"),localStorage.removeItem("_addbuttonplace"),localStorage.removeItem("_hiderowtool"),localStorage.removeItem("_dragwithouthandle"),localStorage.removeItem("_advancedhtmleditor"),localStorage.removeItem("_hidecolhtmleditor"),localStorage.removeItem("_hiderowhtmleditor"),localStorage.removeItem("_sampleshown")}pasteHtmlAtCaret(t,e){var i,n;if(this.restoreSelection(),this.builder.dom.getElm().closest(".is-container"))if(this.builder.win.getSelection){if(!this.builder.activeCol)return;if((i=this.builder.win.getSelection()).getRangeAt&&i.rangeCount){(n=i.getRangeAt(0)).deleteContents();var o=this.builder.doc.createElement("div");o.innerHTML=t;for(var s,l,a=this.builder.doc.createDocumentFragment();s=o.firstChild;)l=a.appendChild(s);var r=a.firstChild;n.insertNode(a),l&&((n=n.cloneRange()).setStartAfter(l),e?n.setStartBefore(r):n.collapse(!0),i.removeAllRanges(),this.builder.isTouchSupport||i.addRange(n))}}else if((i=this.builder.doc.selection)&&"Control"!==i.type){if(!this.builder.activeCol)return;var c=i.createRange();c.collapse(!0),i.createRange().pasteHTML(t),e&&((n=i.createRange()).setEndPoint("StartToStart",c),this.builder.isTouchSupport||n.select())}}refreshModule(){let t=this.builder.activeModule;if(!t)return;let e=1,i=t.querySelectorAll("[data-subblock]");Array.prototype.forEach.call(i,(i=>{let n=i.innerHTML;t.setAttribute("data-html-"+e,encodeURIComponent(n)),e++}));let n=decodeURIComponent(t.getAttribute("data-html"));n=n.replace(/{id}/g,this.makeId()),t.innerHTML="";var o=document.createRange();o.setStart(t,0),t.appendChild(o.createContextualFragment(n)),i=t.querySelectorAll("[data-subblock]");var s=1;Array.prototype.forEach.call(i,(e=>{t.getAttribute("data-html-"+s)&&(e.innerHTML=decodeURIComponent(t.getAttribute("data-html-"+s))),s++})),this.repositionColumnTool(!0),this.builder.onRefreshTool&&this.builder.onRefreshTool()}repositionColumnTool(){let t=this.builder.activeCol;if(!t)return;let e=t.parentNode;if(t.parentNode||(e=this.rowSelected()),!e)return;if(this.colTool=e.querySelector(":scope > .is-col-tool"),!this.colTool)return;t.parentNode||(this.colTool.style.display="none"),this.colTool.style.left=t.offsetLeft+"px";const i=this.builder.builderStuff.querySelector(".columnmore.active");if(i){const t=this.colTool.querySelector(".cell-more");i.classList.add("transition1"),setTimeout((()=>{const e=this.getElementPosition(t);let n=e.top,o=e.left;i.style.top=n+35+window.pageYOffset+"px",i.style.left=o-7+window.pageXOffset+"px",setTimeout((()=>{i.classList.remove("transition1")}),300)}),30)}}hideColumnTool(){this.builder.doc.querySelectorAll(".is-col-tool").forEach((t=>{t.style.display="none"}))}isTouchSupport(){return!!window.matchMedia("(pointer: coarse)").matches}detectIE(){return!!document.documentMode}LightenDarkenColor(t,e){var i=!1;"#"===t[0]&&(t=t.slice(1),i=!0);var n=parseInt(t,16),o=(n>>16)+e;o>255?o=255:o<0&&(o=0);var s=(n>>8&255)+e;s>255?s=255:s<0&&(s=0);var l=(255&n)+e;return l>255?l=255:l<0&&(l=0),(i?"#":"")+String("000000"+(l|s<<8|o<<16).toString(16)).slice(-6)}getUIStyles(){this.dom.appendHtml(this.builder.builderStuff,'\n <input type="text" class="style-helper-input" id="__style_helper_input" style="display:none;">\n <button class="style-helper-button-classic classic" style="display:none;"><svg><use xlink:href="#ion-code-working"></use></svg></button>\n <select class="style-helper-select" id="__style_helper_select" style="display:none;"><option value=""></option></select>\n\n <div class="style-helper modal-color"></div>\n <div class="style-helper modal-background"></div>\n <div class="style-helper button-pickcolor-border"></div>\n <div class="style-helper button-pickcolor-background"></div>\n\n <button class="style-helper base"><svg><use xlink:href="#ion-code-working"></use></svg></button>\n <div class="style-helper base on"></div>\n <div class="style-helper base hover"></div>\n\n <div class="style-helper snippet-color"></div>\n <div class="style-helper snippet-background"></div>\n <div class="style-helper snippet-tabs-background"></div>\n <div class="style-helper snippet-tab-item-background"></div>\n <div class="style-helper snippet-tab-item-background-active"></div>\n <div class="style-helper snippet-tab-item-background-hover"></div>\n <div class="style-helper snippet-tab-item-color"></div>\n\n <div class="style-helper snippet-more-item-background"></div>\n <div class="style-helper snippet-more-item-background-active"></div>\n <div class="style-helper snippet-more-item-background-hover"></div>\n <div class="style-helper snippet-more-item-color"></div>\n\n <div class="style-helper tabs-background"></div>\n <div class="style-helper tab-item-active-border-bottom"></div>\n <div class="style-helper tab-item-color"></div>\n <div class="style-helper tabs-more-background"></div>\n <div class="style-helper tabs-more-border"></div>\n <div class="style-helper tabs-more-item-color"></div>\n <div class="style-helper tabs-more-item-background-hover"></div>\n <div class="style-helper separator-color"></div>\n <div class="style-helper outline-color"></div>\n ');const t=(t,e)=>{const i=this.builder.builderStuff.querySelector(".style-helper"+t);return window.getComputedStyle(i,null).getPropertyValue(e)},e=this.builder.builderStuff.querySelector(".style-helper-input"),i=this.builder.builderStuff.querySelector(".style-helper-select"),n=this.builder.builderStuff.querySelector(".style-helper-button-classic");this.builder.styleModalColor=t(".modal-color","background-color"),this.builder.styleModalBackground=t(".modal-background","background-color"),this.builder.styleButtonPickColorBorder=t(".button-pickcolor-border","border"),this.builder.styleButtonPickColorBackground=t(".button-pickcolor-background","background-color"),this.builder.styleToolBackground=t(".base","background-color"),this.builder.styleButtonColor=t(".base","color"),this.builder.styleButtonSvgFill=(()=>{const t=this.builder.builderStuff.querySelector(".style-helper.base");return window.getComputedStyle(t.querySelector("svg"),null).getPropertyValue("fill")})(),this.builder.styleButtonBackgroundHover=t(".base.hover","background-color"),this.builder.styleSnippetColor=t(".snippet-color","background-color"),this.builder.styleSnippetBackground=t(".snippet-background","background-color"),this.builder.styleSnippetTabsBackground=t(".snippet-tabs-background","background-color"),this.builder.styleSnippetTabItemBackground=t(".snippet-tab-item-background","background-color"),this.builder.styleSnippetTabItemBackgroundActive=t(".snippet-tab-item-background-active","background-color"),this.builder.styleSnippetTabItemBackgroundHover=t(".snippet-tab-item-background-hover","background-color"),this.builder.styleSnippetTabItemColor=t(".snippet-tab-item-color","background-color"),this.builder.styleSnippetMoreItemBackground=t(".snippet-more-item-background","background-color"),this.builder.styleSnippetMoreItemBackgroundActive=t(".snippet-more-item-background-active","background-color"),this.builder.styleSnippetMoreItemBackgroundHover=t(".snippet-more-item-background-hover","background-color"),this.builder.styleSnippetMoreItemColor=t(".snippet-more-item-color","background-color"),this.builder.styleTabsBackground=t(".tabs-background","background-color"),this.builder.styleTabItemBorderBottomActive=t(".tab-item-active-border-bottom","border"),this.builder.styleTabItemColor=t(".tab-item-color","background-color"),this.builder.styleTabsMoreBackground=t(".tabs-more-background","background-color"),this.builder.styleTabsMoreBorder=t(".tabs-more-border","border"),this.builder.styleTabsMoreItemColor=t(".tabs-more-item-color","background-color"),this.builder.styleTabsMoreBackgroundHover=t(".tabs-more-item-background-hover","background-color"),this.builder.styleSeparatorColor=t(".separator-color","background-color"),this.builder.styleOutlineColor=t(".outline-color","background-color"),this.builder.styleSelectBackground=window.getComputedStyle(i,null).getPropertyValue("background-color"),this.builder.styleSelectColor=window.getComputedStyle(i,null).getPropertyValue("color"),this.builder.styleSelectOptionBackground=window.getComputedStyle(i.querySelector("option"),null).getPropertyValue("background-color"),this.builder.styleInputBackground=window.getComputedStyle(e,null).getPropertyValue("background-color"),this.builder.styleInputBorderBottom=window.getComputedStyle(e,null).getPropertyValue("border-bottom"),this.builder.styleInputColor=window.getComputedStyle(e,null).getPropertyValue("color"),this.builder.styleButtonClassicBackground=window.getComputedStyle(n,null).getPropertyValue("background-color"),this.builder.styleButtonClassicColor=window.getComputedStyle(n,null).getPropertyValue("color"),this.builder.styleButtonClassicBackgroundHover=this.getUIStyleValue(n,"hover","background-color"),this.builder.styleDark=!1,this.builder.styleColored=!1,this.builder.styleColoredDark=!1,this.builder.styleLight=!1,document.body.getAttribute("class")&&(-1!==document.body.getAttribute("class").indexOf("colored-dark")?this.builder.styleColoredDark=!0:-1!==document.body.getAttribute("class").indexOf("dark")?this.builder.styleDark=!0:-1!==document.body.getAttribute("class").indexOf("colored")?this.builder.styleColored=!0:-1!==document.body.getAttribute("class").indexOf("light")&&(this.builder.styleLight=!0))}getUIStyleValue(t,e,i){const n=this.dom;n.addClass(t,e);let o=window.getComputedStyle(t,null).getPropertyValue(i);return n.removeClass(t,e),o}getPageTemplate(t){let e="";return e=""===t?'\n <!DOCTYPE html>\n <html lang="en">\n <head>\n <meta charset="utf-8">\n <title>Page</title>\n <meta name="viewport" content="width=device-width, initial-scale=1">\n <meta name="description" content="">\n <link rel="shortcut icon" href="#">\n \n <link href="[%PATH%]/assets/minimalist-blocks/content.css" rel="stylesheet">\n \n <link href="[%PATH%]/assets/scripts/glide/css/glide.core.css" rel="stylesheet">\n <link href="[%PATH%]/assets/scripts/glide/css/glide.theme.css" rel="stylesheet">\n <script src="[%PATH%]/assets/scripts/glide/glide.js"><\/script>\n \n <style>\n .container {\n margin: 150px auto 0;\n max-width: 800px;\n width: 100%;\n padding: 0 20px;\n box-sizing: border-box;\n }\n </style>\n </head>\n <body>\n \n <div class="container">\n [%CONTENT%]\n </div>\n \n </body>\n </html>\n ':"tailwind"===t?'\n <!DOCTYPE html>\n <html lang="en">\n <head>\n <meta charset="utf-8">\n <title>Page</title>\n <meta name="viewport" content="width=device-width, initial-scale=1">\n <meta name="description" content="">\n <link rel="shortcut icon" href="#">\n \n <link href="[%PATH%]/assets/minimalist-blocks/content-tailwind.css" rel="stylesheet">\n \n <link href="[%PATH%]/assets/scripts/glide/css/glide.core.css" rel="stylesheet">\n <link href="[%PATH%]/assets/scripts/glide/css/glide.theme.css" rel="stylesheet">\n <script src="[%PATH%]/assets/scripts/glide/glide.js"><\/script>\n \n <link rel="stylesheet" href="[%PATH%]/assets/frameworks/tailwindcss/styles.css">\n \x3c!-- To build your own, please see: https://tailwindcss.com/docs/installation --\x3e\n \n <style>\n .container {\n margin: 150px auto 0;\n max-width: 800px;\n width: 100%;\n padding: 0 20px;\n box-sizing: border-box;\n }\n </style>\n </head>\n <body>\n \n <div class="container">\n [%CONTENT%]\n </div>\n \n </body>\n </html>\n ':"bootstrap"===t?'\n <!DOCTYPE html>\n <html lang="en">\n <head>\n <meta charset="utf-8">\n <title>Page</title>\n <meta name="viewport" content="width=device-width, initial-scale=1">\n <meta name="description" content="">\n <link rel="shortcut icon" href="#">\n\n <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">\n \n <link href="[%PATH%]/assets/minimalist-blocks/content.css" rel="stylesheet">\n \n <link href="[%PATH%]/assets/scripts/glide/css/glide.core.css" rel="stylesheet">\n <link href="[%PATH%]/assets/scripts/glide/css/glide.theme.css" rel="stylesheet">\n <script src="[%PATH%]/assets/scripts/glide/glide.js"><\/script>\n \n <style>\n .container {margin: 140px auto; max-width: 800px; width:100%; padding:0 35px; box-sizing: border-box;}\n /* Bootstrap css adjustment to enable column drag to resize */\n .row > *,\n .column {\n max-width: unset !important;\n }\n </style>\n </head>\n <body>\n \n <div class="container">\n [%CONTENT%]\n </div>\n \n </body>\n </html>\n ':"foundation"===t?'\n <!DOCTYPE html>\n <html lang="en">\n <head>\n <meta charset="utf-8">\n <title>Page</title>\n <meta name="viewport" content="width=device-width, initial-scale=1">\n <meta name="description" content="">\n <link rel="shortcut icon" href="#">\n\n <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/foundation/6.5.3/css/foundation.min.css">\n <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/foundation/6.5.3/css/foundation-float.min.css">\n \n <link href="[%PATH%]/assets/minimalist-blocks/content.css" rel="stylesheet">\n \n <link href="[%PATH%]/assets/scripts/glide/css/glide.core.css" rel="stylesheet">\n <link href="[%PATH%]/assets/scripts/glide/css/glide.theme.css" rel="stylesheet">\n <script src="[%PATH%]/assets/scripts/glide/glide.js"><\/script>\n \n <style>\n .container {\n margin: 150px auto 0;\n max-width: 800px;\n width: 100%;\n padding: 0 20px;\n box-sizing: border-box;\n }\n </style>\n </head>\n <body>\n \n <div class="container">\n [%CONTENT%]\n </div>\n \n </body>\n </html>\n ':"[%CONTENT%]",e}getElementPosition(t){const e=this.builder.iframe;let i,n,o,s;if(this.builder.iframe){let l=document.querySelector(".is-content-view");l||(l=e.parentNode);const a=window.getComputedStyle(l).transform;if("none"!==a){const t=a.match(/matrix\(([0-9., -]+)\)/)[1].split(",");o=parseFloat(t[0]),s=parseFloat(t[3])}else o=1,s=1;const r=e.getBoundingClientRect();i=t.getBoundingClientRect().top*s+r.top,n=t.getBoundingClientRect().left*o+r.left}else i=t.getBoundingClientRect().top,n=t.getBoundingClientRect().left,o=1,s=1;return{top:i,left:n,scaleX:o,scaleY:s}}getLightboxCss(){return"\n /* Light */\n .glightbox-light .gslide-description {\n background: #fff;\n }\n \n .glightbox-light .gdesc-inner {\n padding: 22px 20px;\n }\n \n .glightbox-light .gslide-title {\n font-size: 1em;\n font-weight: normal;\n font-family: arial;\n color: #000;\n margin-bottom: 19px;\n line-height: 1.4em;\n }\n \n .glightbox-light .gslide-desc {\n font-size: 0.86em;\n margin-bottom: 0;\n font-family: arial;\n line-height: 1.4em;\n }\n \n .glightbox-light .gslide-video {\n background: #000;\n }\n \n .glightbox-light .gprev,\n .glightbox-light .gnext,\n .glightbox-light .gclose {\n background-color: rgb(255 255 255 / 0%);\n border-radius: 4px;\n }\n \n .glightbox-light .gprev path,\n .glightbox-light .gnext path,\n .glightbox-light .gclose path {\n fill: #000;\n }\n \n .glightbox-light .gprev {\n position: absolute;\n top: -100%;\n left: 30px;\n width: 40px;\n height: 50px;\n }\n \n .glightbox-light .gnext {\n position: absolute;\n top: -100%;\n right: 30px;\n width: 40px;\n height: 50px;\n }\n \n .glightbox-light .gclose {\n width: 35px;\n height: 35px;\n top: 15px;\n right: 10px;\n position: absolute;\n }\n \n .glightbox-light .gclose svg {\n width: 18px;\n height: auto;\n }\n \n .glightbox-light .gclose:hover {\n opacity: 1;\n }\n \n /**/\n .glightbox-light .gslide-media {\n -webkit-box-shadow: none !important;\n box-shadow: none !important;\n }\n .glightbox-light .description-left .gdesc-inner,\n .glightbox-light .description-right .gdesc-inner {\n position: absolute;\n height: 100%;\n overflow-y: auto;\n }\n .glightbox-light .gprev,\n .glightbox-light .gnext,\n .glightbox-light .gclose {\n background-color: rgb(255 255 255 / 0%);\n }\n .glightbox-light .gprev:hover,\n .glightbox-light .gnext:hover,\n .glightbox-light .gclose:hover {\n background-color: rgb(255 255 255 / 0%);\n }\n .glightbox-light .gprev {\n top: 45%;\n }\n .glightbox-light .gnext {\n top: 45%;\n }\n \n @media (min-width: 992px) {\n .glightbox-light .gclose {\n opacity: 0.7;\n right: 20px;\n }\n }\n \n /**/\n .glightbox-light .goverlay {\n background: rgb(255 255 255 / 100%) !important;\n }\n @media screen and (max-height: 420px) {\n .goverlay {\n background: rgb(255 255 255 / 100%);\n }\n }\n \n /* override (light) */\n .glightbox-light .gprev,\n .glightbox-light .gnext {\n width: 55px !important;\n height: 70px !important;\n }\n .gclose svg, .gnext svg, .gprev svg {\n width: 50px !important;\n }\n .glightbox-light .gclose {\n width: 55px !important;\n height: 55px !important;\n }\n .glightbox-light .gclose svg {\n width: 30px !important;\n }\n .glightbox-light .gslide-title {\n font-size: 1.2em !important;\n font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif !important;\n }\n .glightbox-light .gslide-desc {\n font-size: 1em !important;\n font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif !important;\n } \n \n /* override (clean) */\n .glightbox-clean .gprev,\n .glightbox-clean .gnext {\n width: 55px !important;\n height: 70px !important;\n }\n .gclose svg, .gnext svg, .gprev svg {\n width: 50px !important;\n }\n .glightbox-clean .gclose {\n width: 55px !important;\n height: 55px !important;\n }\n .glightbox-clean .gclose svg {\n width: 30px !important;\n }\n .glightbox-clean .gslide-title {\n font-size: 1.2em !important;\n font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif !important;\n }\n .glightbox-clean .gslide-desc {\n font-size: 1em !important;\n font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif !important;\n } \n \n /* other override */\n .gclose.disabled, .gnext.disabled, .gprev.disabled {\n opacity: 0;\n } \n "}}class Ge{constructor(t){this.builder=t}detectMobileOrTablet(){const t=navigator.userAgent.toLowerCase(),e=/ipad|iphone|ipod/.test(t)&&!window.MSStream,i=/android/.test(t),n="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0,o=window.innerWidth<=1600;return!(!e&&!i)||!(!n||!o)}getScale(t){let e=window.getComputedStyle(t).transform;if("none"===e)return 1;let i=e.split("(")[1];i=i.split(")")[0],i=i.split(",");let n=i[0],o=i[1];return Math.sqrt(n*n+o*o)}createElement(t){return document.createElement(t)}appendChild(t,e){t&&t.appendChild(e)}appendHtml(t,e){t&&t.insertAdjacentHTML("beforeend",e)}addEventListener(t,e,i){t&&t.addEventListener(e,i)}addClass(t,e){t&&(this.hasClass(t,e)||(0===t.classList.length?t.className=e:t.className=t.className+" "+e,t.className=t.className.replace(/ +/g," ")))}removeClass(t,e){if(t&&t.classList.length>0){let i,n,o,s,l=e.split(" ");for(i=0,o=l.length;i<o;++i)if(l[i])try{let e=l[i],o="",a=t.className.split(" ");for(n=0,s=a.length;n<s;++n)a[n]&&a[n]!==e&&(o+=a[n]+" ");t.className=o.trim()}catch(t){}""===t.className&&t.removeAttribute("class")}}removeClassesByPrefix(t,e){t.classList&&t.classList.forEach((i=>{0===i.indexOf(e)&&this.removeClass(t,i)}))}hasClass(t,e){return!!t&&(!!t.className&&(" "+t.className+" ").indexOf(" "+e+" ")>-1)}moveAfter(t,e){e.parentNode.insertBefore(t,e),e.parentNode.insertBefore(e,e.previousElementSibling)}elementChildren(t){const e=t.childNodes;let i=[],n=e.length;for(;n--;)1===e[n].nodeType&&i.unshift(e[n]);return i}getElementOffset(t){const e=t.getBoundingClientRect();return{top:e.top+window.pageYOffset,left:e.left+window.pageXOffset,width:e.width,height:e.height}}parentsHasClass(t,e){for(;t;){if(!t.tagName)return!1;if("BODY"===t.tagName||"HTML"===t.tagName)return!1;if(this.hasClass(t,e))return!0;t=t.parentNode}}parentsHasId(t,e){for(;t;){if(!t.tagName)return!1;if("BODY"===t.tagName||"HTML"===t.tagName)return!1;if(t.id===e)return!0;t=t.parentNode}}parentsHasTag(t,e){for(;t;){if(!t.tagName)return!1;if("BODY"===t.tagName||"HTML"===t.tagName)return!1;if(t.tagName.toLowerCase()===e.toLowerCase())return!0;t=t.parentNode}}parentsHasAttribute(t,e){for(;t;){if(!t.tagName)return!1;if("BODY"===t.tagName||"HTML"===t.tagName)return!1;try{if(t.hasAttribute(e))return!0}catch(t){}t=t.parentNode}}getParentByTag(t,e){for(;t;){if(!t.tagName)return!1;if("BODY"===t.tagName||"HTML"===t.tagName)return!1;if(t.tagName.toLowerCase()===e.toLowerCase())return t;t=t.parentNode}}getParentByAttribute(t,e){for(;t;){if(!t.tagName)return!1;if("BODY"===t.tagName||"HTML"===t.tagName)return!1;try{if(t.hasAttribute(e))return t}catch(t){}t=t.parentNode}}parentsHasElement(t,e){for(;t;){if(!t.tagName)return!1;if("BODY"===t.tagName||"HTML"===t.tagName)return!1;if(!(t=t.parentNode))return!1;if(!t.tagName)return!1;if(t.tagName.toLowerCase()===e)return!0}}getParentElement(t,e){for(;t;){if(!t.tagName)return!1;if("BODY"===t.tagName||"HTML"===t.tagName)return!1;if(!(t=t.parentNode))return!1;if(!t.tagName)return!1;if(t.tagName.toLowerCase()===e)return t}}removeClasses(t,e){for(let i=0;i<t.length;i++)t[i].classList.remove(e)}removeAttributes(t,e){for(let i=0;i<t.length;i++)t[i].removeAttribute(e)}removeElements(t){Array.prototype.forEach.call(t,(t=>{t.parentNode.removeChild(t)}))}moveCursorToElement(t){var e,i;window.getSelection&&this.builder.doc.createRange?((i=this.builder.doc.createRange()).selectNodeContents(t),i.collapse(!1),(e=window.getSelection()).removeAllRanges(),e.addRange(i)):this.builder.doc.body.createTextRange&&((i=this.builder.doc.body.createTextRange()).moveToElementText(t),i.collapse(!1),i.select())}selectElementContents(t){var e=this.builder.doc.createRange();e.selectNodeContents(t);var i=this.builder.win.getSelection();i.removeAllRanges(),i.addRange(e)}getSelected(){if(this.builder.win.getSelection)return this.builder.win.getSelection().toString();if(this.builder.doc.getSelection)return this.builder.doc.getSelection().toString();var t=this.builder.doc.selection&&this.builder.doc.selection.createRange();return!!t.text&&t.text}checkEditable(){try{var t,e;return this.builder.win.getSelection?t=3===(e=this.builder.win.getSelection().getRangeAt(0).commonAncestorContainer).nodeType?e.parentNode:e:this.builder.doc.selection&&(e=this.builder.doc.selection.createRange(),t=this.builder.doc.selection.createRange().parentElement()),!!this.parentsHasAttribute(t,"contenteditable")}catch(t){return!1}}textSelection(){const t=this.getSelection().anchorNode;if(!t)return!1;return t.nodeType!==Node.TEXT_NODE&&t.nodeType!==Node.COMMENT_NODE?t:t.parentElement}getStyle(t,e){return window.getComputedStyle?window.getComputedStyle(t,null).getPropertyValue(e):t.style[e.replace(/-([a-z])/g,(function(t){return t[1].toUpperCase()}))]}observeElement(t,e,i,n=0){let o=Object.getPrototypeOf(t);if(Object.prototype.hasOwnProperty.call(o,e)){let s=Object.getOwnPropertyDescriptor(o,e);Object.defineProperty(t,e,{get:function(){return s.get.apply(this,arguments)},set:function(){let t=this[e];s.set.apply(this,arguments);let o=this[e];"function"==typeof i&&setTimeout(i.bind(this,t,o),n)}})}}baseName(t){if("string"==typeof t){var e=t.split(".");return e.splice(0,e.length-1).join(".")}}doFunction(t,e,i){if(e(t),i){let i=Array.prototype.slice.call(t.getElementsByTagName("*"));for(var n=0;n<i.length;n++)e(i[n])}}execCommand(t,e,i){const n=this.getSelectedBlocks();if(n.length>0)n.forEach((t=>{i(!0,t)}));else{const n=this.builder.win.getSelection(),o=this.getElm();if(!o)return void(i&&i(!1));let s;s=o&&o.innerText===n.toString().trim()||""===n.toString().trim()?this.updateSelection(t,e,o):this.replaceSelection(t,e,n,o),i&&i(!0,s)}}updateSelection(t,e,i){return i.style[t]=this.getStyleValue(i,t,e),this.checkStyleIfSameAsParent(i,t),this.cleanChildren(t,i),this.cleanUnusedSpan(i),i}replaceSelection(t,e,i,n){const o=i.getRangeAt(0),s=o.extractContents(),l=this.createSpan(n,t,e);return l.appendChild(s),this.cleanChildren(t,l),this.cleanUnusedSpan(l),o.insertNode(l),i.selectAllChildren(l),this.checkStyleIfSameAsParent(l,t),l}checkStyleIfSameAsParent(t,e){if(t.parentNode&&(t.parentNode.style[e]===t.style[e]||window.getComputedStyle(t.parentNode,null).getPropertyValue(e)===t.style[e])){t.style[e]="",""!==t.getAttribute("style")&&null!==t.style||t.removeAttribute("style");let i=0===t.attributes.length||1===t.attributes.length&&t.hasAttribute("data-keep");if("span"===t.nodeName.toLowerCase()&&i){const e=document.createTextNode(t.textContent);t.parentElement.replaceChild(e,t)}}}createSpan(t,e,i){const n=document.createElement("span");return n.style[e]=this.getStyleValue(t,e,i),n}findParentStyle(t,e){if("HTML"===t.nodeName.toUpperCase()||"BODY"===t.nodeName.toUpperCase())return null;if(!t.parentNode)return null;if(null!==t.style[e]&&void 0!==t.style[e]&&""!==t.style[e])return t;this.findParentStyle(t.parentNode,e)}getStyleValue(t,e,i){if("font-weight"===e||"font-style"===e||"text-decoration"===e||"text-transform"===e){let n,o=this.findParentStyle(t,e);if(o&&(n=o.style[e]),i===n){t.style[e]="";let o=window.getComputedStyle(t,null).getPropertyValue(e);t.style[e]=n,i=o}}return i}getParentBlock(t){for(;t;){if(!t.tagName)return!1;if("BODY"===t.tagName||"HTML"===t.tagName)return!1;if("inline"!==this.getStyle(t,"display"))return t;t=t.parentNode}}execCommandClass(t,e,i=!0,n){const o=this.getSelectedBlocks();if(o.length>0)o.forEach((i=>{for(let t=0;t<Object.keys(e).length;t++){let n=Object.values(e)[t];this.removeClass(i,n)}""!==t&&this.addClass(i,t),this.cleanChildrenClass(i,e),this.cleanUnusedSpan(i)}));else{const o=this.builder.win.getSelection();let s=this.getElm();if(!s)return;const l=s&&s.innerText===o.toString().trim();(i||l||""===o.toString().trim())&&("block"===n&&"inline"===this.getStyle(s,"display")&&(s=this.getParentBlock(s)),this.updateSelectionClass(t,e,s))}}updateSelectionClass(t,e,i){for(let t=0;t<Object.keys(e).length;t++){let n=Object.values(e)[t];this.removeClass(i,n)}return""!==t&&this.addClass(i,t),this.cleanChildrenClass(i,e),this.cleanUnusedSpan(i),i}cleanChildrenClass(t,e){if(!t.hasChildNodes())return;Array.from(t.children).map((t=>{for(let i=0;i<Object.keys(e).length;i++){let n=Object.values(e)[i];this.removeClass(t,n)}}));const i=Array.from(t.children).map((t=>this.cleanChildrenClass(t,e)));i&&i.length}getSelectedBlocks(){let t=!1,e=this.builder.win.getSelection(),i=[];if(!e.isCollapsed){let t=e.getRangeAt(0),n=t.commonAncestorContainer;const o=e=>{if(e.nodeType===Node.ELEMENT_NODE&&t.intersectsNode(e)&&i.push(e),e.childNodes.length>0)for(let t=0;t<e.childNodes.length;t++)o(e.childNodes[t])};o(n),i.length>0&&i[0]===n&&i.shift()}let n=[];const o=["p","h1","h2","h3","h4","h5","h6","div","pre","td","th","li"];return i.forEach((e=>{const i=e.tagName.toLowerCase();o.includes(i)&&(t=!0,n.push(e))})),2===n.length&&n[0].innerText.trim()===e.toString().trim()&&n.pop(),t?n:[]}execCommandToggle(t,e,i){const n=this.getSelectedBlocks();if(n.length>0)n.forEach((n=>{if("fontWeight"===t){let t=!1;this.hasClass(n,i.fontWeight.defaultBold)&&(t=!0),this.removeClass(n,i.fontWeight.thin),this.removeClass(n,i.fontWeight.extralight),this.removeClass(n,i.fontWeight.light),this.removeClass(n,i.fontWeight.normal),this.removeClass(n,i.fontWeight.medium),this.removeClass(n,i.fontWeight.semibold),this.removeClass(n,i.fontWeight.bold),this.removeClass(n,i.fontWeight.extrabold),this.removeClass(n,i.fontWeight.black),t||this.addClass(n,i.fontWeight.defaultBold)}if("fontStyle"===t){let t=!1;this.hasClass(n,i.fontStyle.italic)&&(t=!0),this.removeClass(n,i.fontStyle.italic),this.removeClass(n,i.fontStyle.normal),t||this.addClass(n,i.fontStyle.italic)}if("textUnderline"===t){let t=!1;this.hasClass(n,i.textDecoration.underline)&&(t=!0),this.removeClass(n,i.textDecoration.linethrough),this.removeClass(n,i.textDecoration.underline),this.removeClass(n,i.textDecoration.normal),t||this.addClass(n,i.textDecoration.underline)}if("textLinethrough"===t){let t=!1;this.hasClass(n,i.textDecoration.linethrough)&&(t=!0),this.removeClass(n,i.textDecoration.underline),this.removeClass(n,i.textDecoration.linethrough),this.removeClass(n,i.textDecoration.normal),t||this.addClass(n,i.textDecoration.linethrough)}if("textTransform"===t){let t="";this.hasClass(n,i.textTransform.uppercase)&&(t="uppercase"),this.removeClass(n,i.textTransform.uppercase),this.removeClass(n,i.textTransform.lowercase),this.removeClass(n,i.textTransform.capitalize),this.removeClass(n,i.textTransform.normal),""===t&&this.addClass(n,i.textTransform.uppercase)}if("clean"===t&&(n.className="",n.style.cssText=""),"extend"===t){let t=!1;this.hasClass(n,i.extend[e])&&(t=!0),t?this.removeClass(n,i.extend[e]):this.addClass(n,i.extend[e])}this.cleanChildrenToggle(t,e,n,i),this.cleanUnusedSpan(n)}));else{const n=this.builder.win.getSelection(),o=this.getElm();if(!o)return;o&&o.innerText===n.toString().trim()||""===n.toString().trim()?this.updateSelectionToggle(t,e,i,o):this.replaceSelectionToggle(t,e,i,n,o)}}getElm(){const t=this.builder.win.getSelection();if(!t)return!1;const e=t.anchorNode;if(!e)return!1;return e.nodeType!==Node.TEXT_NODE&&e.nodeType!==Node.COMMENT_NODE?e:e.parentElement}updateSelectionToggle(t,e,i,n){if("fontWeight"===t){let t=!1;this.hasClass(n,i.fontWeight.defaultBold)&&(t=!0);parseInt(window.getComputedStyle(n,null).getPropertyValue("font-weight"))>=500&&(t=!0),this.removeClass(n,i.fontWeight.thin),this.removeClass(n,i.fontWeight.extralight),this.removeClass(n,i.fontWeight.light),this.removeClass(n,i.fontWeight.normal),this.removeClass(n,i.fontWeight.medium),this.removeClass(n,i.fontWeight.semibold),this.removeClass(n,i.fontWeight.bold),this.removeClass(n,i.fontWeight.extrabold),this.removeClass(n,i.fontWeight.black),t?this.addClass(n,i.fontWeight.defaultNormal):this.addClass(n,i.fontWeight.defaultBold)}if("fontStyle"===t){let t=!1;this.hasClass(n,i.fontStyle.italic)&&(t=!0),this.removeClass(n,i.fontStyle.italic),this.removeClass(n,i.fontStyle.normal),t?this.addClass(n,i.fontStyle.normal):this.addClass(n,i.fontStyle.italic)}if("textUnderline"===t){let t=!1;this.hasClass(n,i.textDecoration.underline)&&(t=!0),this.removeClass(n,i.textDecoration.underline),this.removeClass(n,i.textDecoration.linethrough),this.removeClass(n,i.textDecoration.normal),t?this.addClass(n,i.textDecoration.normal):this.addClass(n,i.textDecoration.underline)}if("textLinethrough"===t){let t=!1;this.hasClass(n,i.textDecoration.linethrough)&&(t=!0),this.removeClass(n,i.textDecoration.underline),this.removeClass(n,i.textDecoration.linethrough),this.removeClass(n,i.textDecoration.normal),t?this.addClass(n,i.textDecoration.normal):this.addClass(n,i.textDecoration.linethrough)}if("textTransform"===t){let t="";this.hasClass(n,i.textTransform.uppercase)&&(t="uppercase"),this.removeClass(n,i.textTransform.uppercase),this.removeClass(n,i.textTransform.lowercase),this.removeClass(n,i.textTransform.capitalize),this.removeClass(n,i.textTransform.normal),""===t&&this.addClass(n,i.textTransform.uppercase)}if("clean"===t&&(n.className="",n.style.cssText=""),"extend"===t){let t=!1;this.hasClass(n,i.extend[e])&&(t=!0),t?this.removeClass(n,i.extend[e]):this.addClass(n,i.extend[e])}return this.cleanChildrenToggle(t,e,n,i),this.cleanUnusedSpan(n),n}replaceSelectionToggle(t,e,i,n,o){const s=n.getRangeAt(0),l=s.extractContents(),a=document.createElement("span");if("fontWeight"===t){let t=!1;o.closest(`.${i.fontWeight.defaultBold}`)&&(t=!0,this.hasClass(o,i.fontWeight.defaultNormal)&&(t=!1));parseInt(window.getComputedStyle(o,null).getPropertyValue("font-weight"))>=500&&(t=!0),t?this.addClass(a,i.fontWeight.defaultNormal):this.addClass(a,i.fontWeight.defaultBold)}if("fontStyle"===t){let t=!1;o.closest(`.${i.fontStyle.italic}`)&&(t=!0,this.hasClass(o,i.fontStyle.normal)&&(t=!1)),t?this.addClass(a,i.fontStyle.normal):this.addClass(a,i.fontStyle.italic)}if("textUnderline"===t){let t=!1;o.closest(`.${i.textDecoration.underline}`)&&(t=!0),t||this.addClass(a,i.textDecoration.underline)}if("textLinethrough"===t){let t=!1;o.closest(`.${i.textDecoration.linethrough}`)&&(t=!0),t||this.addClass(a,i.textDecoration.linethrough)}if("textTransform"===t){let t="";o.closest(`.${i.textTransform.uppercase}`)&&(t="uppercase"),this.removeClass(a,i.textTransform.uppercase),this.removeClass(a,i.textTransform.lowercase),this.removeClass(a,i.textTransform.capitalize),this.removeClass(a,i.textTransform.normal),""===t&&this.addClass(a,i.textTransform.uppercase)}if("extend"===t){let t=!1;o.closest(`.${i.extend[e]}`)&&(t=!0),t||this.addClass(a,i.extend[e])}return a.appendChild(l),this.cleanChildrenToggle(t,e,a,i),this.cleanUnusedSpan(a),s.insertNode(a),n.selectAllChildren(a),a}cleanChildrenToggle(t,e,i,n){if(!i.hasChildNodes())return;"fontWeight"===t&&Array.from(i.children).map((t=>{this.removeClass(t,n.fontWeight.thin),this.removeClass(t,n.fontWeight.extralight),this.removeClass(t,n.fontWeight.light),this.removeClass(t,n.fontWeight.normal),this.removeClass(t,n.fontWeight.medium),this.removeClass(t,n.fontWeight.semibold),this.removeClass(t,n.fontWeight.bold),this.removeClass(t,n.fontWeight.extrabold),this.removeClass(t,n.fontWeight.black)})),"fontStyle"===t&&Array.from(i.children).map((t=>{this.removeClass(t,n.fontStyle.italic),this.removeClass(t,n.fontStyle.normal)})),"textUnderline"===t&&Array.from(i.children).map((t=>{this.removeClass(t,n.textDecoration.underline),this.removeClass(t,n.textDecoration.linethrough),this.removeClass(t,n.textDecoration.normal)})),"textLinethrough"===t&&Array.from(i.children).map((t=>{this.removeClass(t,n.textDecoration.underline),this.removeClass(t,n.textDecoration.linethrough),this.removeClass(t,n.textDecoration.normal)})),"textTransform"===t&&Array.from(i.children).map((t=>{this.removeClass(t,n.textTransform.uppercase),this.removeClass(t,n.textTransform.lowercase),this.removeClass(t,n.textTransform.capitalize),this.removeClass(t,n.textTransform.normal)})),"clean"===t&&Array.from(i.children).map((t=>{t.className="",t.style.cssText=""})),"extend"===t&&Array.from(i.children).map((t=>{this.removeClass(t,n.extend[e])}));const o=Array.from(i.children).map((i=>this.cleanChildrenToggle(t,e,i,n)));o&&o.length}getSelection(){return this.builder.win&&this.builder.win.getSelection?this.builder.win.getSelection():this.builder.doc&&this.builder.doc.getSelection?this.builder.doc.getSelection():this.builder.doc&&this.builder.doc.selection?this.builder.doc.selection.createRange().text:null}cleanChildren(t,e){if(!e.hasChildNodes())return;const i=Array.from(e.children).filter((e=>void 0!==e.style[t]&&""!==e.style[t.style]));i&&i.length>0&&i.forEach((e=>{e.style[t]="",""!==e.getAttribute("style")&&null!==e.style||e.removeAttribute("style")}));const n=Array.from(e.children).map((e=>this.cleanChildren(t,e)));n&&n.length}addCssClass(t,e,i){this.removeCssClasses(t,i),this.addClass(t,e)}removeCssClasses(t,e){for(let i=0;i<Object.keys(e).length;i++){const n=Object.values(e)[i];this.removeClass(t,n)}}removeEmptyStyle(t){if(!t.hasChildNodes())return;const e=Array.from(t.children).filter((t=>t.getAttribute("style")));e&&e.length>0&&e.forEach((t=>{""!==t.getAttribute("style").trim()&&null!==t.style||t.removeAttribute("style")}));const i=Array.from(t.children).map((t=>this.removeEmptyStyle(t)));i&&i.length}cleanClassSize(t,e){if(!t.hasChildNodes())return;const i=Array.from(t.children).filter((t=>this.hasClass(t,e)));i&&i.length>0&&i.forEach((t=>{this.removeClass(t,e)}));const n=Array.from(t.children).map((t=>this.cleanClassSize(t,e)));n&&n.length}removeFormat(){const t=this.getSelection();if(!t)return;const e=t.anchorNode;if(!e)return;const i=e.nodeType!==Node.TEXT_NODE&&e.nodeType!==Node.COMMENT_NODE?e:e.parentElement;i&&i.innerText===t.toString().trim()||""===t.toString().trim()?this.cleanElement(i):this.cleanSelection(t)}cleanElement(t){t.style.fontWeight="",t.style.fontStyle="",t.style.textDecoration="",t.style.textTransform="",t.style.fontFamily="",t.style.fontSize="",t.style.color="",t.style.backgroundColor="",t.classList.forEach((e=>{-1!==e.indexOf("size-")&&this.removeClass(t,e)})),t.querySelectorAll("*").forEach((t=>{t.style.fontWeight="",t.style.fontStyle="",t.style.textDecoration="",t.style.textTransform="",t.style.fontFamily="",t.style.fontSize="",t.style.color="",t.style.backgroundColor="",t.classList.forEach((e=>{-1!==e.indexOf("size-")&&this.removeClass(t,e)}))})),this.cleanUnusedSpan(t)}cleanSelection(t){const e=t.getRangeAt(0),i=e.extractContents(),n=document.createElement("span");n.appendChild(i),e.insertNode(n),t.selectAllChildren(n),this.cleanElement(n)}cleanUnusedSpan(t){let e=t.querySelectorAll("span");const i=Array.prototype.filter;let n=i.call(e,(t=>0===t.attributes.length));n&&n.length>0&&n.forEach((t=>{t.outerHTML=t.innerHTML})),e=t.querySelectorAll("span"),i.call(e,(t=>{""===t.innerHTML&&t.parentNode.removeChild(t)})),e=t.querySelectorAll("span"),n=i.call(e,(t=>0===t.attributes.length)),n&&n.length>0&&this.cleanUnusedSpan(t)}contentReformat(t,e){this.replaceTag(t,"b",e.fontWeight.defaultBold),this.replaceTag(t,"i",e.fontStyle.italic),this.replaceTag(t,"u",e.textDecoration.underline),this.replaceTag(t,"strike",e.textDecoration.linethrough),this.replaceInline(t,"font-weight","normal",e.fontWeight.defaultBold),this.replaceInline(t,"font-weight","bold",e.fontWeight.defaultBold),this.replaceInline(t,"font-weight","600",e.fontWeight.semibold),this.replaceInline(t,"text-align","left",e.textAlign.left),this.replaceInline(t,"text-align","right",e.textAlign.right),this.replaceInline(t,"text-align","center",e.textAlign.center),this.replaceInline(t,"text-align","justify",e.textAlign.justify),this.replaceInline(t,"display","flex",e.display.flex),this.replaceInline(t,"justiify-content","flex-start",e.justifyContent.start),this.replaceInline(t,"justiify-content","flex-end",e.justifyContent.end),this.replaceInline(t,"justiify-content","center",e.justifyContent.center),this.replaceInline(t,"justiify-content","space-between",e.justifyContent.between),this.replaceInline(t,"flex-direction","column",e.flexDirection.column),this.replaceInline(t,"flex-direction","row",e.flexDirection.row),this.replaceInline(t,"align-items","flex-start",e.alignItems.start),this.replaceInline(t,"align-items","flex-end",e.alignItems.end),this.replaceInline(t,"align-items","center",e.alignItems.center),this.replaceInline(t,"text-transform","uppercase",e.textTransform.uppercase),this.replaceInline(t,"text-transform","lowercase",e.textTransform.lowercase),this.replaceInline(t,"text-transform","none",e.textTransform.normal),this.replaceInline(t,"line-height","1",e.leading.leading_10),this.replaceInline(t,"line-height","1.1",e.leading.leading_11),this.replaceInline(t,"line-height","1.2",e.leading.leading_12),this.replaceInline(t,"line-height","1.25",e.leading.leading_125),this.replaceInline(t,"line-height","1.3",e.leading.leading_13),this.replaceInline(t,"line-height","1.375",e.leading.leading_1375),this.replaceInline(t,"line-height","1.4",e.leading.leading_14),this.replaceInline(t,"line-height","1.5",e.leading.leading_15),this.replaceInline(t,"line-height","1.6",e.leading.leading_16),this.replaceInline(t,"line-height","1.625",e.leading.leading_1625),this.replaceInline(t,"line-height","1.7",e.leading.leading_17),this.replaceInline(t,"line-height","1.8",e.leading.leading_18),this.replaceInline(t,"line-height","1.9",e.leading.leading_19),this.replaceInline(t,"line-height","2",e.leading.leading_20),this.replaceInline(t,"line-height","2.1",e.leading.leading_21),this.replaceInline(t,"line-height","2.2",e.leading.leading_22)}replaceTag(t,e,i){let n=t.querySelectorAll(e);let o=Array.prototype.filter.call(n,(t=>0===t.attributes.length));o&&o.length>0&&o.forEach((t=>{const e=document.createElement("span");e.setAttribute("class",i),e.innerHTML=t.innerHTML,t.outerHTML=e.outerHTML}))}replaceInline(t,e,i,n){t.querySelectorAll("*").forEach((t=>{"justiify-content"===e?t.style.justifyContent===`${i}`&&(this.addClass(t,n),t.style.justifyContent=""):t.style[e]===`${i}`&&(this.addClass(t,n),t.style[e]="")}))}countOccurrences(t,e){const i=new RegExp(e,"gi"),n=t.match(i);return n?n.length:0}}var Ye="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Xe={exports:{}},Ve={},Ke={exports:{}},Ze={},Qe={};function Je(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 ti(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 ei(t,e){this.__indent_cache=new ti(t,e),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 Je(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}Je.prototype.clone_empty=function(){var t=new Je(this.__parent);return t.set_indent(this.__indent_count,this.__alignment_count),t},Je.prototype.item=function(t){return t<0?this.__items[this.__items.length+t]:this.__items[t]},Je.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},Je.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))},Je.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)},Je.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},Je.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},Je.prototype.is_empty=function(){return 0===this.__items.length},Je.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},Je.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},Je.prototype.pop=function(){var t=null;return this.is_empty()||(t=this.__items.pop(),this.__character_count-=t.length),t},Je.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},Je.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},Je.prototype.trim=function(){for(;" "===this.last();)this.__items.pop(),this.__character_count-=1},Je.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},ti.prototype.get_indent_size=function(t,e){var i=this.__base_string_length;return e=e||0,t<0&&(i=0),i+=t*this.__indent_size,i+=e},ti.prototype.get_indent_string=function(t,e){var i=this.__base_string;return e=e||0,t<0&&(t=0,i=""),e+=t*this.__indent_size,this.__ensure_cache(e),i+=this.__cache[e]},ti.prototype.__ensure_cache=function(t){for(;t>=this.__cache.length;)this.__add_column()},ti.prototype.__add_column=function(){var t=this.__cache.length,e=0,i="";this.__indent_size&&t>=this.__indent_size&&(t-=(e=Math.floor(t/this.__indent_size))*this.__indent_size,i=new Array(e+1).join(this.__indent_string)),t&&(i+=new Array(t+1).join(" ")),this.__cache.push(i)},ei.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},ei.prototype.get_line_number=function(){return this.__lines.length},ei.prototype.get_indent_string=function(t,e){return this.__indent_cache.get_indent_string(t,e)},ei.prototype.get_indent_size=function(t,e){return this.__indent_cache.get_indent_size(t,e)},ei.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},ei.prototype.add_new_line=function(t){return!(this.is_empty()||!t&&this.just_added_newline())&&(this.raw||this.__add_outputline(),!0)},ei.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 i=this.__lines.join("\n");return"\n"!==t&&(i=i.replace(/[\n]/g,t)),i},ei.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},ei.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)},ei.prototype.add_raw_token=function(t){for(var e=0;e<t.newlines;e++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(t.whitespace_before),this.current_line.push(t.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},ei.prototype.add_token=function(t){this.__add_space_before_token(),this.current_line.push(t),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},ei.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},ei.prototype.remove_indent=function(t){for(var e=this.__lines.length;t<e;)this.__lines[t]._remove_indent(),t++;this.current_line._remove_wrap_indent()},ei.prototype.trim=function(t){for(t=void 0!==t&&t,this.current_line.trim();t&&this.__lines.length>1&&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},ei.prototype.just_added_newline=function(){return this.current_line.is_empty()},ei.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},ei.prototype.ensure_empty_line_above=function(t,e){for(var i=this.__lines.length-2;i>=0;){var n=this.__lines[i];if(n.is_empty())break;if(0!==n.item(0).indexOf(t)&&n.item(-1)!==e){this.__lines.splice(i+1,0,new Je(this)),this.previous_line=this.__lines[this.__lines.length-2];break}i--}},Qe.Output=ei;var ii={};ii.Token=function(t,e,i,n){this.type=t,this.text=e,this.comments_before=null,this.newlines=i||0,this.whitespace_before=n||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null};var ni,oi,si,li,ai,ri={};oi="\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a",li="\\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",ai="(?:\\\\u[0-9a-fA-F]{4}|[\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a"+(si="\\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-\\u09b9\\u09bd\\u09ce\\u09dc\\u09dd\\u09df-\\u09e1\\u09f0\\u09f1\\u0a05-\\u0a0a\\u0a0f\\u0a10\\u0a13-\\u0a28\\u0a2a-\\u0a30\\u0a32\\u0a33\\u0a35\\u0a36\\u0a38\\u0a39\\u0a59-\\u0a5c\\u0a5e\\u0a72-\\u0a74\\u0a85-\\u0a8d\\u0a8f-\\u0a91\\u0a93-\\u0aa8\\u0aaa-\\u0ab0\\u0ab2\\u0ab3\\u0ab5-\\u0ab9\\u0abd\\u0ad0\\u0ae0\\u0ae1\\u0b05-\\u0b0c\\u0b0f\\u0b10\\u0b13-\\u0b28\\u0b2a-\\u0b30\\u0b32\\u0b33\\u0b35-\\u0b39\\u0b3d\\u0b5c\\u0b5d\\u0b5f-\\u0b61\\u0b71\\u0b83\\u0b85-\\u0b8a\\u0b8e-\\u0b90\\u0b92-\\u0b95\\u0b99\\u0b9a\\u0b9c\\u0b9e\\u0b9f\\u0ba3\\u0ba4\\u0ba8-\\u0baa\\u0bae-\\u0bb9\\u0bd0\\u0c05-\\u0c0c\\u0c0e-\\u0c10\\u0c12-\\u0c28\\u0c2a-\\u0c33\\u0c35-\\u0c39\\u0c3d\\u0c58\\u0c59\\u0c60\\u0c61\\u0c85-\\u0c8c\\u0c8e-\\u0c90\\u0c92-\\u0ca8\\u0caa-\\u0cb3\\u0cb5-\\u0cb9\\u0cbd\\u0cde\\u0ce0\\u0ce1\\u0cf1\\u0cf2\\u0d05-\\u0d0c\\u0d0e-\\u0d10\\u0d12-\\u0d3a\\u0d3d\\u0d4e\\u0d60\\u0d61\\u0d7a-\\u0d7f\\u0d85-\\u0d96\\u0d9a-\\u0db1\\u0db3-\\u0dbb\\u0dbd\\u0dc0-\\u0dc6\\u0e01-\\u0e30\\u0e32\\u0e33\\u0e40-\\u0e46\\u0e81\\u0e82\\u0e84\\u0e87\\u0e88\\u0e8a\\u0e8d\\u0e94-\\u0e97\\u0e99-\\u0e9f\\u0ea1-\\u0ea3\\u0ea5\\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")+"])",(ni=ri).identifier=new RegExp(ai+"(?:\\\\u[0-9a-fA-F]{4}|[\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a\\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-\\u09b9\\u09bd\\u09ce\\u09dc\\u09dd\\u09df-\\u09e1\\u09f0\\u09f1\\u0a05-\\u0a0a\\u0a0f\\u0a10\\u0a13-\\u0a28\\u0a2a-\\u0a30\\u0a32\\u0a33\\u0a35\\u0a36\\u0a38\\u0a39\\u0a59-\\u0a5c\\u0a5e\\u0a72-\\u0a74\\u0a85-\\u0a8d\\u0a8f-\\u0a91\\u0a93-\\u0aa8\\u0aaa-\\u0ab0\\u0ab2\\u0ab3\\u0ab5-\\u0ab9\\u0abd\\u0ad0\\u0ae0\\u0ae1\\u0b05-\\u0b0c\\u0b0f\\u0b10\\u0b13-\\u0b28\\u0b2a-\\u0b30\\u0b32\\u0b33\\u0b35-\\u0b39\\u0b3d\\u0b5c\\u0b5d\\u0b5f-\\u0b61\\u0b71\\u0b83\\u0b85-\\u0b8a\\u0b8e-\\u0b90\\u0b92-\\u0b95\\u0b99\\u0b9a\\u0b9c\\u0b9e\\u0b9f\\u0ba3\\u0ba4\\u0ba8-\\u0baa\\u0bae-\\u0bb9\\u0bd0\\u0c05-\\u0c0c\\u0c0e-\\u0c10\\u0c12-\\u0c28\\u0c2a-\\u0c33\\u0c35-\\u0c39\\u0c3d\\u0c58\\u0c59\\u0c60\\u0c61\\u0c85-\\u0c8c\\u0c8e-\\u0c90\\u0c92-\\u0ca8\\u0caa-\\u0cb3\\u0cb5-\\u0cb9\\u0cbd\\u0cde\\u0ce0\\u0ce1\\u0cf1\\u0cf2\\u0d05-\\u0d0c\\u0d0e-\\u0d10\\u0d12-\\u0d3a\\u0d3d\\u0d4e\\u0d60\\u0d61\\u0d7a-\\u0d7f\\u0d85-\\u0d96\\u0d9a-\\u0db1\\u0db3-\\u0dbb\\u0dbd\\u0dc0-\\u0dc6\\u0e01-\\u0e30\\u0e32\\u0e33\\u0e40-\\u0e46\\u0e81\\u0e82\\u0e84\\u0e87\\u0e88\\u0e8a\\u0e8d\\u0e94-\\u0e97\\u0e99-\\u0e9f\\u0ea1-\\u0ea3\\u0ea5\\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\\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])*","g"),ni.identifierStart=new RegExp(ai),ni.identifierMatch=new RegExp("(?:\\\\u[0-9a-fA-F]{4}|["+oi+si+li+"])+"),ni.newline=/[\n\r\u2028\u2029]/,ni.lineBreak=new RegExp("\r\n|"+ni.newline.source),ni.allLineBreaks=new RegExp(ni.lineBreak.source,"g");var ci={},ui={};function di(t,e){this.raw_options=bi(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 bi(t,e){var i,n={};for(i in t=pi(t))i!==e&&(n[i]=t[i]);if(e&&t[e])for(i in t[e])n[i]=t[e][i];return n}function pi(t){var e,i={};for(e in t){i[e.replace(/-/g,"_")]=t[e]}return i}di.prototype._get_array=function(t,e){var i=this.raw_options[t],n=e||[];return"object"==typeof i?null!==i&&"function"==typeof i.concat&&(n=i.concat()):"string"==typeof i&&(n=i.split(/[^a-zA-Z0-9_\/\-]+/)),n},di.prototype._get_boolean=function(t,e){var i=this.raw_options[t];return void 0===i?!!e:!!i},di.prototype._get_characters=function(t,e){var i=this.raw_options[t],n=e||"";return"string"==typeof i&&(n=i.replace(/\\r/,"\r").replace(/\\n/,"\n").replace(/\\t/,"\t")),n},di.prototype._get_number=function(t,e){var i=this.raw_options[t];e=parseInt(e,10),isNaN(e)&&(e=0);var n=parseInt(i,10);return isNaN(n)&&(n=e),n},di.prototype._get_selection=function(t,e,i){var n=this._get_selection_list(t,e,i);if(1!==n.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 n[0]},di.prototype._get_selection_list=function(t,e,i){if(!e||0===e.length)throw new Error("Selection list cannot be empty.");if(i=i||[e[0]],!this._is_valid_selection(i,e))throw new Error("Invalid Default Value!");var n=this._get_array(t,i);if(!this._is_valid_selection(n,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 n},di.prototype._is_valid_selection=function(t,e){return t.length&&e.length&&!t.some((function(t){return-1===e.indexOf(t)}))},ui.Options=di,ui.normalizeOpts=pi,ui.mergeOpts=bi;var hi=ui.Options,gi=["before-newline","after-newline","preserve-newline"];function mi(t){hi.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 i=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_preserve_inline=!1,this.brace_style="collapse";for(var n=0;n<i.length;n++)"preserve-inline"===i[n]?this.brace_preserve_inline=!0:this.brace_style=i[n];this.unindent_chained_methods=this._get_boolean("unindent_chained_methods"),this.break_chained_methods=this._get_boolean("break_chained_methods"),this.space_in_paren=this._get_boolean("space_in_paren"),this.space_in_empty_paren=this._get_boolean("space_in_empty_paren"),this.jslint_happy=this._get_boolean("jslint_happy"),this.space_after_anon_function=this._get_boolean("space_after_anon_function"),this.space_after_named_function=this._get_boolean("space_after_named_function"),this.keep_array_indentation=this._get_boolean("keep_array_indentation"),this.space_before_conditional=this._get_boolean("space_before_conditional",!0),this.unescape_strings=this._get_boolean("unescape_strings"),this.e4x=this._get_boolean("e4x"),this.comma_first=this._get_boolean("comma_first"),this.operator_position=this._get_selection("operator_position",gi),this.test_output_raw=this._get_boolean("test_output_raw"),this.jslint_happy&&(this.space_after_anon_function=!0)}mi.prototype=new hi,ci.Options=mi;var fi={},vi={},yi=RegExp.prototype.hasOwnProperty("sticky");function xi(t){this.__input=t||"",this.__input_length=this.__input.length,this.__position=0}xi.prototype.restart=function(){this.__position=0},xi.prototype.back=function(){this.__position>0&&(this.__position-=1)},xi.prototype.hasNext=function(){return this.__position<this.__input_length},xi.prototype.next=function(){var t=null;return this.hasNext()&&(t=this.__input.charAt(this.__position),this.__position+=1),t},xi.prototype.peek=function(t){var e=null;return t=t||0,(t+=this.__position)>=0&&t<this.__input_length&&(e=this.__input.charAt(t)),e},xi.prototype.__match=function(t,e){t.lastIndex=e;var i=t.exec(this.__input);return!i||yi&&t.sticky||i.index!==e&&(i=null),i},xi.prototype.test=function(t,e){return e=e||0,(e+=this.__position)>=0&&e<this.__input_length&&!!this.__match(t,e)},xi.prototype.testChar=function(t,e){var i=this.peek(e);return t.lastIndex=0,null!==i&&t.test(i)},xi.prototype.match=function(t){var e=this.__match(t,this.__position);return e?this.__position+=e[0].length:e=null,e},xi.prototype.read=function(t,e,i){var n,o="";return t&&(n=this.match(t))&&(o+=n[0]),!e||!n&&t||(o+=this.readUntil(e,i)),o},xi.prototype.readUntil=function(t,e){var i,n=this.__position;t.lastIndex=this.__position;var o=t.exec(this.__input);return o?(n=o.index,e&&(n+=o[0].length)):n=this.__input_length,i=this.__input.substring(this.__position,n),this.__position=n,i},xi.prototype.readUntilAfter=function(t){return this.readUntil(t,!0)},xi.prototype.get_regexp=function(t,e){var i=null,n="g";return e&&yi&&(n="y"),"string"==typeof t&&""!==t?i=new RegExp(t,n):t&&(i=new RegExp(t.source,n)),i},xi.prototype.get_literal_regexp=function(t){return RegExp(t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},xi.prototype.peekUntilAfter=function(t){var e=this.__position,i=this.readUntilAfter(t);return this.__position=e,i},xi.prototype.lookBack=function(t){var e=this.__position-1;return e>=t.length&&this.__input.substring(e-t.length,e).toLowerCase()===t},vi.InputScanner=xi;var wi={},Si={};function ki(t){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=t}ki.prototype.restart=function(){this.__position=0},ki.prototype.isEmpty=function(){return 0===this.__tokens_length},ki.prototype.hasNext=function(){return this.__position<this.__tokens_length},ki.prototype.next=function(){var t=null;return this.hasNext()&&(t=this.__tokens[this.__position],this.__position+=1),t},ki.prototype.peek=function(t){var e=null;return t=t||0,(t+=this.__position)>=0&&t<this.__tokens_length&&(e=this.__tokens[t]),e},ki.prototype.add=function(t){this.__parent_token&&(t.parent=this.__parent_token),this.__tokens.push(t),this.__tokens_length+=1},Si.TokenStream=ki;var _i={},Ci={};function Li(t,e){this._input=t,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,e&&(this._starting_pattern=this._input.get_regexp(e._starting_pattern,!0),this._match_pattern=this._input.get_regexp(e._match_pattern,!0),this._until_pattern=this._input.get_regexp(e._until_pattern),this._until_after=e._until_after)}Li.prototype.read=function(){var t=this._input.read(this._starting_pattern);return this._starting_pattern&&!t||(t+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),t},Li.prototype.read_match=function(){return this._input.match(this._match_pattern)},Li.prototype.until_after=function(t){var e=this._create();return e._until_after=!0,e._until_pattern=this._input.get_regexp(t),e._update(),e},Li.prototype.until=function(t){var e=this._create();return e._until_after=!1,e._until_pattern=this._input.get_regexp(t),e._update(),e},Li.prototype.starting_with=function(t){var e=this._create();return e._starting_pattern=this._input.get_regexp(t,!0),e._update(),e},Li.prototype.matching=function(t){var e=this._create();return e._match_pattern=this._input.get_regexp(t,!0),e._update(),e},Li.prototype._create=function(){return new Li(this._input,this)},Li.prototype._update=function(){},Ci.Pattern=Li;var Ai=Ci.Pattern;function Ei(t,e){Ai.call(this,t,e),e?this._line_regexp=this._input.get_regexp(e._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}Ei.prototype=new Ai,Ei.prototype.__set_whitespace_patterns=function(t,e){t+="\\t ",e+="\\n\\r",this._match_pattern=this._input.get_regexp("["+t+e+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+e+"]")},Ei.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var t=this._input.read(this._match_pattern);if(" "===t)this.whitespace_before_token=" ";else if(t){var e=this.__split(this._newline_regexp,t);this.newline_count=e.length-1,this.whitespace_before_token=e[this.newline_count]}return t},Ei.prototype.matching=function(t,e){var i=this._create();return i.__set_whitespace_patterns(t,e),i._update(),i},Ei.prototype._create=function(){return new Ei(this._input,this)},Ei.prototype.__split=function(t,e){t.lastIndex=0;for(var i=0,n=[],o=t.exec(e);o;)n.push(e.substring(i,o.index)),i=o.index+o[0].length,o=t.exec(e);return i<e.length?n.push(e.substring(i,e.length)):n.push(""),n},_i.WhitespacePattern=Ei;var qi=vi.InputScanner,Ti=ii.Token,Mi=Si.TokenStream,Ri=_i.WhitespacePattern,Ii={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},Oi=function(t,e){this._input=new qi(t),this._options=e||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new Ri(this._input)};Oi.prototype.tokenize=function(){var t;this._input.restart(),this.__tokens=new Mi,this._reset();for(var e=new Ti(Ii.START,""),i=null,n=[],o=new Mi;e.type!==Ii.EOF;){for(t=this._get_next_token(e,i);this._is_comment(t);)o.add(t),t=this._get_next_token(e,i);o.isEmpty()||(t.comments_before=o,o=new Mi),t.parent=i,this._is_opening(t)?(n.push(i),i=t):i&&this._is_closing(t,i)&&(t.opened=i,i.closed=t,i=n.pop(),t.parent=i),t.previous=e,e.next=t,this.__tokens.add(t),e=t}return this.__tokens},Oi.prototype._is_first_token=function(){return this.__tokens.isEmpty()},Oi.prototype._reset=function(){},Oi.prototype._get_next_token=function(t,e){this._readWhitespace();var i=this._input.read(/.+/g);return i?this._create_token(Ii.RAW,i):this._create_token(Ii.EOF,"")},Oi.prototype._is_comment=function(t){return!1},Oi.prototype._is_opening=function(t){return!1},Oi.prototype._is_closing=function(t,e){return!1},Oi.prototype._create_token=function(t,e){return new Ti(t,e,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token)},Oi.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},wi.Tokenizer=Oi,wi.TOKEN=Ii;var $i={};function Bi(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")}Bi.prototype.get_directives=function(t){if(!t.match(this.__directives_block_pattern))return null;var e={};this.__directive_pattern.lastIndex=0;for(var i=this.__directive_pattern.exec(t);i;)e[i[1]]=i[2],i=this.__directive_pattern.exec(t);return e},Bi.prototype.readIgnored=function(t){return t.readUntilAfter(this.__directives_end_ignore_pattern)},$i.Directives=Bi;var zi={},Pi=Ci.Pattern,Di={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1};function Ni(t,e){Pi.call(this,t,e),this.__template_pattern=null,this._disabled=Object.assign({},Di),this._excluded=Object.assign({},Di),e&&(this.__template_pattern=this._input.get_regexp(e.__template_pattern),this._excluded=Object.assign(this._excluded,e._excluded),this._disabled=Object.assign(this._disabled,e._disabled));var i=new Pi(t);this.__patterns={handlebars_comment:i.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:i.starting_with(/{{{/).until_after(/}}}/),handlebars:i.starting_with(/{{/).until_after(/}}/),php:i.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:i.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:i.starting_with(/{%/).until_after(/%}/),django_value:i.starting_with(/{{/).until_after(/}}/),django_comment:i.starting_with(/{#/).until_after(/#}/),smarty:i.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:i.starting_with(/{\*/).until_after(/\*}/),smarty_literal:i.starting_with(/{literal}/).until_after(/{\/literal}/)}}Ni.prototype=new Pi,Ni.prototype._create=function(){return new Ni(this._input,this)},Ni.prototype._update=function(){this.__set_templated_pattern()},Ni.prototype.disable=function(t){var e=this._create();return e._disabled[t]=!0,e._update(),e},Ni.prototype.read_options=function(t){var e=this._create();for(var i in Di)e._disabled[i]=-1===t.templating.indexOf(i);return e._update(),e},Ni.prototype.exclude=function(t){var e=this._create();return e._excluded[t]=!0,e._update(),e},Ni.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},Ni.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("|")+")")},Ni.prototype._read_template=function(){var t="",e=this._input.peek();if("<"===e){var i=this._input.peek(1);this._disabled.php||this._excluded.php||"?"!==i||(t=t||this.__patterns.php.read()),this._disabled.erb||this._excluded.erb||"%"!==i||(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},zi.TemplatablePattern=Ni;var Hi=vi.InputScanner,ji=wi.Tokenizer,Fi=wi.TOKEN,Ui=$i.Directives,Wi=ri,Gi=Ci.Pattern,Yi=zi.TemplatablePattern;function Xi(t,e){return-1!==e.indexOf(t)}var Vi={START_EXPR:"TK_START_EXPR",END_EXPR:"TK_END_EXPR",START_BLOCK:"TK_START_BLOCK",END_BLOCK:"TK_END_BLOCK",WORD:"TK_WORD",RESERVED:"TK_RESERVED",SEMICOLON:"TK_SEMICOLON",STRING:"TK_STRING",EQUALS:"TK_EQUALS",OPERATOR:"TK_OPERATOR",COMMA:"TK_COMMA",BLOCK_COMMENT:"TK_BLOCK_COMMENT",COMMENT:"TK_COMMENT",DOT:"TK_DOT",UNKNOWN:"TK_UNKNOWN",START:Fi.START,RAW:Fi.RAW,EOF:Fi.EOF},Ki=new Ui(/\/\*/,/\*\//),Zi=/0[xX][0123456789abcdefABCDEF_]*n?|0[oO][01234567_]*n?|0[bB][01_]*n?|\d[\d_]*n|(?:\.\d[\d_]*|\d[\d_]*\.?[\d_]*)(?:[eE][+-]?[\d_]+)?/,Qi=/[0-9]/,Ji=/[^\d\.]/,tn=">>> === !== << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "),en=">>>= ... >>= <<= === >>> !== **= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";en=(en="\\?\\.(?!\\d) "+(en=en.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"))).replace(/ /g,"|");var nn,on=new RegExp(en),sn="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),ln=sn.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as"]),an=new RegExp("^(?:"+ln.join("|")+")$"),rn=function(t,e){ji.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 i=new Gi(this._input),n=new Yi(this._input).read_options(this._options);this.__patterns={template:n,identifier:n.starting_with(Wi.identifier).matching(Wi.identifierMatch),number:i.matching(Zi),punct:i.matching(on),comment:i.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:i.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:i.matching(/<!--/),html_comment_end:i.matching(/-->/),include:i.starting_with(/#include/).until_after(Wi.lineBreak),shebang:i.starting_with(/#!/).until_after(Wi.lineBreak),xml:i.matching(/[\s\S]*?<(\/?)([-a-zA-Z:0-9_.]+|{[\s\S]+?}|!\[CDATA\[[\s\S]*?\]\]|)(\s+{[\s\S]+?}|\s+[-a-zA-Z:0-9_.]+|\s+[-a-zA-Z:0-9_.]+\s*=\s*('[^']*'|"[^"]*"|{[\s\S]+?}))*\s*(\/?)\s*>/),single_quote:n.until(/['\\\n\r\u2028\u2029]/),double_quote:n.until(/["\\\n\r\u2028\u2029]/),template_text:n.until(/[`\\$]/),template_expression:n.until(/[`}\\]/)}};(rn.prototype=new ji)._is_comment=function(t){return t.type===Vi.COMMENT||t.type===Vi.BLOCK_COMMENT||t.type===Vi.UNKNOWN},rn.prototype._is_opening=function(t){return t.type===Vi.START_BLOCK||t.type===Vi.START_EXPR},rn.prototype._is_closing=function(t,e){return(t.type===Vi.END_BLOCK||t.type===Vi.END_EXPR)&&e&&("]"===t.text&&"["===e.text||")"===t.text&&"("===e.text||"}"===t.text&&"{"===e.text)},rn.prototype._reset=function(){nn=!1},rn.prototype._get_next_token=function(t,e){var i=null;this._readWhitespace();var n=this._input.peek();return null===n?this._create_token(Vi.EOF,""):i=(i=(i=(i=(i=(i=(i=(i=(i=i||this._read_non_javascript(n))||this._read_string(n))||this._read_word(t))||this._read_singles(n))||this._read_comment(n))||this._read_regexp(n,t))||this._read_xml(n,t))||this._read_punctuation())||this._create_token(Vi.UNKNOWN,this._input.next())},rn.prototype._read_word=function(t){var e;return""!==(e=this.__patterns.identifier.read())?(e=e.replace(Wi.allLineBreaks,"\n"),t.type!==Vi.DOT&&(t.type!==Vi.RESERVED||"set"!==t.text&&"get"!==t.text)&&an.test(e)?"in"===e||"of"===e?this._create_token(Vi.OPERATOR,e):this._create_token(Vi.RESERVED,e):this._create_token(Vi.WORD,e)):""!==(e=this.__patterns.number.read())?this._create_token(Vi.WORD,e):void 0},rn.prototype._read_singles=function(t){var e=null;return"("===t||"["===t?e=this._create_token(Vi.START_EXPR,t):")"===t||"]"===t?e=this._create_token(Vi.END_EXPR,t):"{"===t?e=this._create_token(Vi.START_BLOCK,t):"}"===t?e=this._create_token(Vi.END_BLOCK,t):";"===t?e=this._create_token(Vi.SEMICOLON,t):"."===t&&Ji.test(this._input.peek(1))?e=this._create_token(Vi.DOT,t):","===t&&(e=this._create_token(Vi.COMMA,t)),e&&this._input.next(),e},rn.prototype._read_punctuation=function(){var t=this.__patterns.punct.read();if(""!==t)return"="===t?this._create_token(Vi.EQUALS,t):"?."===t?this._create_token(Vi.DOT,t):this._create_token(Vi.OPERATOR,t)},rn.prototype._read_non_javascript=function(t){var e="";if("#"===t){if(this._is_first_token()&&(e=this.__patterns.shebang.read()))return this._create_token(Vi.UNKNOWN,e.trim()+"\n");if(e=this.__patterns.include.read())return this._create_token(Vi.UNKNOWN,e.trim()+"\n");t=this._input.next();var i="#";if(this._input.hasNext()&&this._input.testChar(Qi)){do{i+=t=this._input.next()}while(this._input.hasNext()&&"#"!==t&&"="!==t);return"#"===t||("["===this._input.peek()&&"]"===this._input.peek(1)?(i+="[]",this._input.next(),this._input.next()):"{"===this._input.peek()&&"}"===this._input.peek(1)&&(i+="{}",this._input.next(),this._input.next())),this._create_token(Vi.WORD,i)}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(Wi.newline);)e+=this._input.next();return nn=!0,this._create_token(Vi.COMMENT,e)}}else if(nn&&"-"===t&&(e=this.__patterns.html_comment_end.read()))return nn=!1,this._create_token(Vi.COMMENT,e);return null},rn.prototype._read_comment=function(t){var e=null;if("/"===t){var i="";if("*"===this._input.peek(1)){i=this.__patterns.block_comment.read();var n=Ki.get_directives(i);n&&"start"===n.ignore&&(i+=Ki.readIgnored(this._input)),i=i.replace(Wi.allLineBreaks,"\n"),(e=this._create_token(Vi.BLOCK_COMMENT,i)).directives=n}else"/"===this._input.peek(1)&&(i=this.__patterns.comment.read(),e=this._create_token(Vi.COMMENT,i))}return e},rn.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="",i=0,n=new Hi(t),o=null;for(;n.hasNext();)if((o=n.match(/([\s]|[^\\]|\\\\)+/g))&&(e+=o[0]),"\\"===n.peek()){if(n.next(),"x"===n.peek())o=n.match(/x([0-9A-Fa-f]{2})/g);else{if("u"!==n.peek()){e+="\\",n.hasNext()&&(e+=n.next());continue}o=n.match(/u([0-9A-Fa-f]{4})/g)}if(!o)return t;if((i=parseInt(o[1],16))>126&&i<=255&&0===o[0].indexOf("x"))return t;if(i>=0&&i<32){e+="\\"+o[0];continue}e+=34===i||39===i||92===i?"\\"+String.fromCharCode(i):String.fromCharCode(i)}return e}(e)),this._input.peek()===t&&(e+=this._input.next()),e=e.replace(Wi.allLineBreaks,"\n"),this._create_token(Vi.STRING,e)}return null},rn.prototype._allow_regexp_or_xml=function(t){return t.type===Vi.RESERVED&&Xi(t.text,["return","case","throw","else","do","typeof","yield"])||t.type===Vi.END_EXPR&&")"===t.text&&t.opened.previous.type===Vi.RESERVED&&Xi(t.opened.previous.text,["if","while","for"])||Xi(t.type,[Vi.COMMENT,Vi.START_EXPR,Vi.START_BLOCK,Vi.START,Vi.END_BLOCK,Vi.OPERATOR,Vi.EQUALS,Vi.EOF,Vi.SEMICOLON,Vi.COMMA])},rn.prototype._read_regexp=function(t,e){if("/"===t&&this._allow_regexp_or_xml(e)){for(var i=this._input.next(),n=!1,o=!1;this._input.hasNext()&&(n||o||this._input.peek()!==t)&&!this._input.testChar(Wi.newline);)i+=this._input.peek(),n?n=!1:(n="\\"===this._input.peek(),"["===this._input.peek()?o=!0:"]"===this._input.peek()&&(o=!1)),this._input.next();return this._input.peek()===t&&(i+=this._input.next(),i+=this._input.read(Wi.identifier)),this._create_token(Vi.STRING,i)}return null},rn.prototype._read_xml=function(t,e){if(this._options.e4x&&"<"===t&&this._allow_regexp_or_xml(e)){var i="",n=this.__patterns.xml.read_match();if(n){for(var o=n[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),s=0===o.indexOf("{"),l=0;n;){var a=!!n[1],r=n[2];if(!(!!n[n.length-1]||"![CDATA["===r.slice(0,8))&&(r===o||s&&r.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(a?--l:++l),i+=n[0],l<=0)break;n=this.__patterns.xml.read_match()}return n||(i+=this._input.match(/[\s\S]*/g)[0]),i=i.replace(Wi.allLineBreaks,"\n"),this._create_token(Vi.STRING,i)}}return null},rn.prototype._read_string_recursive=function(t,e,i){var n,o;"'"===t?o=this.__patterns.single_quote:'"'===t?o=this.__patterns.double_quote:"`"===t?o=this.__patterns.template_text:"}"===t&&(o=this.__patterns.template_expression);for(var s=o.read(),l="";this._input.hasNext();){if((l=this._input.next())===t||!e&&Wi.newline.test(l)){this._input.back();break}"\\"===l&&this._input.hasNext()?("x"===(n=this._input.peek())||"u"===n?this.has_char_escapes=!0:"\r"===n&&"\n"===this._input.peek(1)&&this._input.next(),l+=this._input.next()):i&&("${"===i&&"$"===l&&"{"===this._input.peek()&&(l+=this._input.next()),i===l&&(l+="`"===t?this._read_string_recursive("}",e,"`"):this._read_string_recursive("`",e,"${"),this._input.hasNext()&&(l+=this._input.next()))),s+=l+=o.read()}return s},fi.Tokenizer=rn,fi.TOKEN=Vi,fi.positionable_operators=tn.slice(),fi.line_starters=sn.slice();var cn=Qe.Output,un=ii.Token,dn=ri,bn=ci.Options,pn=fi.Tokenizer,hn=fi.line_starters,gn=fi.positionable_operators,mn=fi.TOKEN;function fn(t,e){return-1!==e.indexOf(t)}function vn(t,e){return t&&t.type===mn.RESERVED&&t.text===e}function yn(t,e){return t&&t.type===mn.RESERVED&&fn(t.text,e)}var xn=["case","return","do","if","throw","else","await","break","continue","async"],wn=function(t){for(var e={},i=0;i<t.length;i++)e[t[i].replace(/-/g,"_")]=t[i];return e}(["before-newline","after-newline","preserve-newline"]),Sn=[wn.before_newline,wn.preserve_newline],kn="BlockStatement",_n="Statement",Cn="ObjectLiteral",Ln="ArrayLiteral",An="ForInitializer",En="Conditional",qn="Expression";function Tn(t,e){e.multiline_frame||e.mode===An||e.mode===En||t.remove_indent(e.start_line_index)}function Mn(t){return t===Ln}function Rn(t){return fn(t,[qn,An,En])}function In(t,e){e=e||{},this._source_text=t||"",this._output=null,this._tokens=null,this._last_last_text=null,this._flags=null,this._previous_flags=null,this._flag_store=null,this._options=new bn(e)}In.prototype.create_flags=function(t,e){var i=0;return t&&(i=t.indentation_level,!this._output.just_added_newline()&&t.line_indent_level>i&&(i=t.line_indent_level)),{mode:e,parent:t,last_token:t?t.last_token:new un(mn.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,do_block:!1,do_while:!1,import_block:!1,in_case_statement:!1,in_case:!1,case_body:!1,indentation_level:i,alignment:0,line_indent_level:t?t.line_indent_level:i,start_line_index:this._output.get_line_number(),ternary_depth:0}},In.prototype._reset=function(t){var e=t.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new cn(this._options,e),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(kn);var i=new pn(t,this._options);return this._tokens=i.tokenize(),t},In.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&&dn.lineBreak.test(t||"")&&(e=t.match(dn.lineBreak)[0]));for(var i=this._tokens.next();i;)this.handle_token(i),this._last_last_text=this._flags.last_token.text,this._flags.last_token=i,i=this._tokens.next();return this._output.get_code(e)},In.prototype.handle_token=function(t,e){t.type===mn.START_EXPR?this.handle_start_expr(t):t.type===mn.END_EXPR?this.handle_end_expr(t):t.type===mn.START_BLOCK?this.handle_start_block(t):t.type===mn.END_BLOCK?this.handle_end_block(t):t.type===mn.WORD||t.type===mn.RESERVED?this.handle_word(t):t.type===mn.SEMICOLON?this.handle_semicolon(t):t.type===mn.STRING?this.handle_string(t):t.type===mn.EQUALS?this.handle_equals(t):t.type===mn.OPERATOR?this.handle_operator(t):t.type===mn.COMMA?this.handle_comma(t):t.type===mn.BLOCK_COMMENT?this.handle_block_comment(t,e):t.type===mn.COMMENT?this.handle_comment(t,e):t.type===mn.DOT?this.handle_dot(t):t.type===mn.EOF?this.handle_eof(t):(t.type,mn.UNKNOWN,this.handle_unknown(t,e))},In.prototype.handle_whitespace_and_comments=function(t,e){var i=t.newlines,n=this._options.keep_array_indentation&&Mn(this._flags.mode);if(t.comments_before)for(var o=t.comments_before.next();o;)this.handle_whitespace_and_comments(o,e),this.handle_token(o,e),o=t.comments_before.next();if(n)for(var s=0;s<i;s+=1)this.print_newline(s>0,e);else if(this._options.max_preserve_newlines&&i>this._options.max_preserve_newlines&&(i=this._options.max_preserve_newlines),this._options.preserve_newlines&&i>1){this.print_newline(!1,e);for(var l=1;l<i;l+=1)this.print_newline(!0,e)}};var On=["async","break","continue","return","throw","yield"];In.prototype.allow_wrap_or_preserved_newline=function(t,e){if(e=void 0!==e&&e,!this._output.just_added_newline()){var i=this._options.preserve_newlines&&t.newlines||e;if(fn(this._flags.last_token.text,gn)||fn(t.text,gn)){var n=fn(this._flags.last_token.text,gn)&&fn(this._options.operator_position,Sn)||fn(t.text,gn);i=i&&n}if(i)this.print_newline(!1,!0);else if(this._options.wrap_line_length){if(yn(this._flags.last_token,On))return;this._output.set_wrap_point()}}},In.prototype.print_newline=function(t,e){if(!e&&";"!==this._flags.last_token.text&&","!==this._flags.last_token.text&&"="!==this._flags.last_token.text&&(this._flags.last_token.type!==mn.OPERATOR||"--"===this._flags.last_token.text||"++"===this._flags.last_token.text))for(var i=this._tokens.peek();!(this._flags.mode!==_n||this._flags.if_block&&vn(i,"else")||this._flags.do_block);)this.restore_mode();this._output.add_new_line(t)&&(this._flags.multiline_frame=!0)},In.prototype.print_token_line_indentation=function(t){this._output.just_added_newline()&&(this._options.keep_array_indentation&&t.newlines&&("["===t.text||Mn(this._flags.mode))?(this._output.current_line.set_indent(-1),this._output.current_line.push(t.whitespace_before),this._output.space_before_token=!1):this._output.set_indent(this._flags.indentation_level,this._flags.alignment)&&(this._flags.line_indent_level=this._flags.indentation_level))},In.prototype.print_token=function(t){if(this._output.raw)this._output.add_raw_token(t);else{if(this._options.comma_first&&t.previous&&t.previous.type===mn.COMMA&&this._output.just_added_newline()&&","===this._output.previous_line.last()){var e=this._output.previous_line.pop();this._output.previous_line.is_empty()&&(this._output.previous_line.push(e),this._output.trim(!0),this._output.current_line.pop(),this._output.trim()),this.print_token_line_indentation(t),this._output.add_token(","),this._output.space_before_token=!0}this.print_token_line_indentation(t),this._output.non_breaking_space=!0,this._output.add_token(t.text),this._output.previous_token_wrapped&&(this._flags.multiline_frame=!0)}},In.prototype.indent=function(){this._flags.indentation_level+=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},In.prototype.deindent=function(){this._flags.indentation_level>0&&(!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))},In.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)},In.prototype.restore_mode=function(){this._flag_store.length>0&&(this._previous_flags=this._flags,this._flags=this._flag_store.pop(),this._previous_flags.mode===_n&&Tn(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},In.prototype.start_of_object_property=function(){return this._flags.parent.mode===Cn&&this._flags.mode===_n&&(":"===this._flags.last_token.text&&0===this._flags.ternary_depth||yn(this._flags.last_token,["get","set"]))},In.prototype.start_of_statement=function(t){var e=!1;return!!(e=(e=(e=(e=(e=(e=(e=e||yn(this._flags.last_token,["var","let","const"])&&t.type===mn.WORD)||vn(this._flags.last_token,"do"))||!(this._flags.parent.mode===Cn&&this._flags.mode===_n)&&yn(this._flags.last_token,On)&&!t.newlines)||vn(this._flags.last_token,"else")&&!(vn(t,"if")&&!t.comments_before))||this._flags.last_token.type===mn.END_EXPR&&(this._previous_flags.mode===An||this._previous_flags.mode===En))||this._flags.last_token.type===mn.WORD&&this._flags.mode===kn&&!this._flags.in_case&&!("--"===t.text||"++"===t.text)&&"function"!==this._last_last_text&&t.type!==mn.WORD&&t.type!==mn.RESERVED)||this._flags.mode===Cn&&(":"===this._flags.last_token.text&&0===this._flags.ternary_depth||yn(this._flags.last_token,["get","set"])))&&(this.set_mode(_n),this.indent(),this.handle_whitespace_and_comments(t,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(t,yn(t,["do","for","if","while"])),!0)},In.prototype.handle_start_expr=function(t){this.start_of_statement(t)||this.handle_whitespace_and_comments(t);var e=qn;if("["===t.text){if(this._flags.last_token.type===mn.WORD||")"===this._flags.last_token.text)return yn(this._flags.last_token,hn)&&(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=Ln,Mn(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()),fn(this._flags.last_token.type,[mn.START_EXPR,mn.END_EXPR,mn.WORD,mn.OPERATOR,mn.DOT])||(this._output.space_before_token=!0)}else{if(this._flags.last_token.type===mn.RESERVED)"for"===this._flags.last_token.text?(this._output.space_before_token=this._options.space_before_conditional,e=An):fn(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,e=En):fn(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:(fn(this._flags.last_token.text,hn)||"catch"===this._flags.last_token.text)&&(this._output.space_before_token=!0);else if(this._flags.last_token.type===mn.EQUALS||this._flags.last_token.type===mn.OPERATOR)this.start_of_object_property()||this.allow_wrap_or_preserved_newline(t);else if(this._flags.last_token.type===mn.WORD){this._output.space_before_token=!1;var i=this._tokens.peek(-3);if(this._options.space_after_named_function&&i){var n=this._tokens.peek(-4);yn(i,["async","function"])||"*"===i.text&&yn(n,["async","function"])?this._output.space_before_token=!0:this._flags.mode===Cn&&("{"!==i.text&&","!==i.text&&("*"!==i.text||"{"!==n.text&&","!==n.text)||(this._output.space_before_token=!0))}}else this.allow_wrap_or_preserved_newline(t);(this._flags.last_token.type===mn.RESERVED&&("function"===this._flags.last_word||"typeof"===this._flags.last_word)||"*"===this._flags.last_token.text&&(fn(this._last_last_text,["function","yield"])||this._flags.mode===Cn&&fn(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===mn.START_BLOCK?this.print_newline():this._flags.last_token.type!==mn.END_EXPR&&this._flags.last_token.type!==mn.START_EXPR&&this._flags.last_token.type!==mn.END_BLOCK&&"."!==this._flags.last_token.text&&this._flags.last_token.type!==mn.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()},In.prototype.handle_end_expr=function(t){for(;this._flags.mode===_n;)this.restore_mode();this.handle_whitespace_and_comments(t),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(t,"]"===t.text&&Mn(this._flags.mode)&&!this._options.keep_array_indentation),this._options.space_in_paren&&(this._flags.last_token.type!==mn.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(),Tn(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===En&&(this._previous_flags.mode=qn,this._flags.do_block=!1,this._flags.do_while=!1)},In.prototype.handle_start_block=function(t){this.handle_whitespace_and_comments(t);var e=this._tokens.peek(),i=this._tokens.peek(1);"switch"===this._flags.last_word&&this._flags.last_token.type===mn.END_EXPR?(this.set_mode(kn),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(kn):i&&(fn(i.text,[":",","])&&fn(e.type,[mn.STRING,mn.WORD,mn.RESERVED])||fn(e.text,["get","set","..."])&&fn(i.type,[mn.WORD,mn.RESERVED]))?fn(this._last_last_text,["class","interface"])?this.set_mode(kn):this.set_mode(Cn):this._flags.last_token.type===mn.OPERATOR&&"=>"===this._flags.last_token.text?this.set_mode(kn):fn(this._flags.last_token.type,[mn.EQUALS,mn.START_EXPR,mn.COMMA,mn.OPERATOR])||yn(this._flags.last_token,["return","throw","import","default"])?this.set_mode(Cn):this.set_mode(kn);var n=!e.comments_before&&"}"===e.text,o=n&&"function"===this._flags.last_word&&this._flags.last_token.type===mn.END_EXPR;if(this._options.brace_preserve_inline){var s=0,l=null;this._flags.inline_frame=!0;do{if(s+=1,(l=this._tokens.peek(s-1)).newlines){this._flags.inline_frame=!1;break}}while(l.type!==mn.EOF&&(l.type!==mn.END_BLOCK||l.opened!==t))}("expand"===this._options.brace_style||"none"===this._options.brace_style&&t.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==mn.OPERATOR&&(o||this._flags.last_token.type===mn.EQUALS||yn(this._flags.last_token,xn)&&"else"!==this._flags.last_token.text)?this._output.space_before_token=!0:this.print_newline(!1,!0):(!Mn(this._previous_flags.mode)||this._flags.last_token.type!==mn.START_EXPR&&this._flags.last_token.type!==mn.COMMA||((this._flags.last_token.type===mn.COMMA||this._options.space_in_paren)&&(this._output.space_before_token=!0),(this._flags.last_token.type===mn.COMMA||this._flags.last_token.type===mn.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!==mn.OPERATOR&&this._flags.last_token.type!==mn.START_EXPR&&(this._flags.last_token.type!==mn.START_BLOCK||this._flags.inline_frame?this._output.space_before_token=!0:this.print_newline())),this.print_token(t),this.indent(),n||this._options.brace_preserve_inline&&this._flags.inline_frame||this.print_newline()},In.prototype.handle_end_block=function(t){for(this.handle_whitespace_and_comments(t);this._flags.mode===_n;)this.restore_mode();var e=this._flags.last_token.type===mn.START_BLOCK;this._flags.inline_frame&&!e?this._output.space_before_token=!0:"expand"===this._options.brace_style?e||this.print_newline():e||(Mn(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)},In.prototype.handle_word=function(t){if(t.type===mn.RESERVED)if(fn(t.text,["set","get"])&&this._flags.mode!==Cn)t.type=mn.WORD;else if("import"===t.text&&"("===this._tokens.peek().text)t.type=mn.WORD;else if(fn(t.text,["as","from"])&&!this._flags.import_block)t.type=mn.WORD;else if(this._flags.mode===Cn){":"===this._tokens.peek().text&&(t.type=mn.WORD)}if(this.start_of_statement(t)?yn(this._flags.last_token,["var","let","const"])&&t.type===mn.WORD&&(this._flags.declaration_statement=!0):!t.newlines||Rn(this._flags.mode)||this._flags.last_token.type===mn.OPERATOR&&"--"!==this._flags.last_token.text&&"++"!==this._flags.last_token.text||this._flags.last_token.type===mn.EQUALS||!this._options.preserve_newlines&&yn(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(vn(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&&vn(t,"else"))this._flags.else_block=!0;else{for(;this._flags.mode===_n;)this.restore_mode();this._flags.if_block=!1,this._flags.else_block=!1}if(this._flags.in_case_statement&&yn(t,["case","default"]))return this.print_newline(),this._flags.last_token.type!==mn.END_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!==mn.COMMA&&this._flags.last_token.type!==mn.START_EXPR&&this._flags.last_token.type!==mn.EQUALS&&this._flags.last_token.type!==mn.OPERATOR||this.start_of_object_property()||this.allow_wrap_or_preserved_newline(t),vn(t,"function"))return(fn(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!fn(this._flags.last_token.text,["(","[","{",":","=",","])&&this._flags.last_token.type!==mn.OPERATOR)&&(this._output.just_added_blankline()||t.comments_before||(this.print_newline(),this.print_newline(!0))),this._flags.last_token.type===mn.RESERVED||this._flags.last_token.type===mn.WORD?yn(this._flags.last_token,["get","set","new","export"])||yn(this._flags.last_token,On)||vn(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===mn.OPERATOR||"="===this._flags.last_token.text?this._output.space_before_token=!0:(this._flags.multiline_frame||!Rn(this._flags.mode)&&!Mn(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===mn.END_BLOCK?this._previous_flags.inline_frame?e="SPACE":yn(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===mn.SEMICOLON&&this._flags.mode===kn?e="NEWLINE":this._flags.last_token.type===mn.SEMICOLON&&Rn(this._flags.mode)?e="SPACE":this._flags.last_token.type===mn.STRING?e="NEWLINE":this._flags.last_token.type===mn.RESERVED||this._flags.last_token.type===mn.WORD||"*"===this._flags.last_token.text&&(fn(this._last_last_text,["function","yield"])||this._flags.mode===Cn&&fn(this._last_last_text,["{",","]))?e="SPACE":this._flags.last_token.type===mn.START_BLOCK?e=this._flags.inline_frame?"SPACE":"NEWLINE":this._flags.last_token.type===mn.END_EXPR&&(this._output.space_before_token=!0,e="NEWLINE"),yn(t,hn)&&")"!==this._flags.last_token.text&&(e=this._flags.inline_frame||"else"===this._flags.last_token.text||"export"===this._flags.last_token.text?"SPACE":"NEWLINE"),yn(t,["else","catch","finally"]))?(this._flags.last_token.type!==mn.END_BLOCK||this._previous_flags.mode!==kn||"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?yn(this._flags.last_token,xn)||"declare"===this._flags.last_token.text&&yn(t,["var","let","const"])?this._output.space_before_token=!0:this._flags.last_token.type!==mn.END_EXPR?this._flags.last_token.type===mn.START_EXPR&&yn(t,["var","let","const"])||":"===this._flags.last_token.text||(vn(t,"if")&&vn(t.previous,"else")?this._output.space_before_token=!0:this.print_newline()):yn(t,hn)&&")"!==this._flags.last_token.text&&this.print_newline():this._flags.multiline_frame&&Mn(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!==mn.WORD&&t.previous.type!==mn.RESERVED||(this._output.space_before_token=!0),this.print_token(t),this._flags.last_word=t.text,t.type===mn.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&&vn(t,"from")&&(this._flags.import_block=!1))},In.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!==_n||this._flags.if_block&&vn(e,"else")||this._flags.do_block);)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(t)},In.prototype.handle_string=function(t){(!t.text.startsWith("`")||0!==t.newlines||""!==t.whitespace_before||")"!==t.previous.text&&this._flags.last_token.type!==mn.WORD)&&(this.start_of_statement(t)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(t),this._flags.last_token.type===mn.RESERVED||this._flags.last_token.type===mn.WORD||this._flags.inline_frame?this._output.space_before_token=!0:this._flags.last_token.type===mn.COMMA||this._flags.last_token.type===mn.START_EXPR||this._flags.last_token.type===mn.EQUALS||this._flags.last_token.type===mn.OPERATOR?this.start_of_object_property()||this.allow_wrap_or_preserved_newline(t):!t.text.startsWith("`")||this._flags.last_token.type!==mn.END_EXPR||"]"!==t.previous.text&&")"!==t.previous.text||0!==t.newlines?this.print_newline():this._output.space_before_token=!0)),this.print_token(t)},In.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},In.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?(Rn(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===Cn||this._flags.mode===_n&&this._flags.parent.mode===Cn?(this._flags.mode===_n&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(t)},In.prototype.handle_operator=function(t){var e="*"===t.text&&(yn(this._flags.last_token,["function","yield"])||fn(this._flags.last_token.type,[mn.START_BLOCK,mn.COMMA,mn.END_BLOCK,mn.SEMICOLON])),i=fn(t.text,["-","+"])&&(fn(this._flags.last_token.type,[mn.START_BLOCK,mn.START_EXPR,mn.EQUALS,mn.OPERATOR])||fn(this._flags.last_token.text,hn)||","===this._flags.last_token.text);if(this.start_of_statement(t));else{var n=!e;this.handle_whitespace_and_comments(t,n)}if(yn(this._flags.last_token,xn))return this._output.space_before_token=!0,void this.print_token(t);if("*"!==t.text||this._flags.last_token.type!==mn.DOT)if("::"!==t.text){if(this._flags.last_token.type===mn.OPERATOR&&fn(this._options.operator_position,Sn)&&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!==mn.START_BLOCK?(this.indent(),this.print_newline()):this._output.space_before_token=!0);var o=!0,s=!0,l=!1;if(":"===t.text?0===this._flags.ternary_depth?o=!1:(this._flags.ternary_depth-=1,l=!0):"?"===t.text&&(this._flags.ternary_depth+=1),!i&&!e&&this._options.preserve_newlines&&fn(t.text,gn)){var a=":"===t.text,r=a&&l,c=a&&!l;switch(this._options.operator_position){case wn.before_newline:return this._output.space_before_token=!c,this.print_token(t),a&&!r||this.allow_wrap_or_preserved_newline(t),void(this._output.space_before_token=!0);case wn.after_newline:return this._output.space_before_token=!0,!a||r?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 wn.preserve_newline:return c||this.allow_wrap_or_preserved_newline(t),o=!(this._output.just_added_newline()||c),this._output.space_before_token=o,this.print_token(t),void(this._output.space_before_token=!0)}}if(e){this.allow_wrap_or_preserved_newline(t),o=!1;var u=this._tokens.peek();s=u&&fn(u.type,[mn.WORD,mn.RESERVED])}else"..."===t.text?(this.allow_wrap_or_preserved_newline(t),o=this._flags.last_token.type===mn.START_BLOCK,s=!1):(fn(t.text,["--","++","!","~"])||i)&&(this._flags.last_token.type!==mn.COMMA&&this._flags.last_token.type!==mn.START_EXPR||this.allow_wrap_or_preserved_newline(t),o=!1,s=!1,!t.newlines||"--"!==t.text&&"++"!==t.text||this.print_newline(!1,!0),";"===this._flags.last_token.text&&Rn(this._flags.mode)&&(o=!0),this._flags.last_token.type===mn.RESERVED?o=!0:this._flags.last_token.type===mn.END_EXPR?o=!("]"===this._flags.last_token.text&&("--"===t.text||"++"===t.text)):this._flags.last_token.type===mn.OPERATOR&&(o=fn(t.text,["--","-","++","+"])&&fn(this._flags.last_token.text,["--","-","++","+"]),fn(t.text,["+","-"])&&fn(this._flags.last_token.text,["--","++"])&&(s=!0)),(this._flags.mode!==kn||this._flags.inline_frame)&&this._flags.mode!==_n||"{"!==this._flags.last_token.text&&";"!==this._flags.last_token.text||this.print_newline());this._output.space_before_token=this._output.space_before_token||o,this.print_token(t),this._output.space_before_token=s}else this.print_token(t);else this.print_token(t)},In.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)):dn.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))},In.prototype.print_block_commment=function(t,e){var i,n=function(t){for(var e=[],i=(t=t.replace(dn.allLineBreaks,"\n")).indexOf("\n");-1!==i;)e.push(t.substring(0,i)),i=(t=t.substring(i+1)).indexOf("\n");return t.length&&e.push(t),e}(t.text),o=!1,s=!1,l=t.whitespace_before,a=l.length;if(this.print_newline(!1,e),this.print_token_line_indentation(t),this._output.add_token(n[0]),this.print_newline(!1,e),n.length>1){for(o=function(t,e){for(var i=0;i<t.length;i++)if(t[i].trim().charAt(0)!==e)return!1;return!0}(n=n.slice(1),"*"),s=function(t,e){for(var i,n=0,o=t.length;n<o;n++)if((i=t[n])&&0!==i.indexOf(e))return!1;return!0}(n,l),o&&(this._flags.alignment=1),i=0;i<n.length;i++)o?(this.print_token_line_indentation(t),this._output.add_token(n[i].replace(/^\s+/g,""))):s&&n[i]?(this.print_token_line_indentation(t),this._output.add_token(n[i].substring(a))):(this._output.current_line.set_indent(-1),this._output.add_token(n[i])),this.print_newline(!1,e);this._flags.alignment=0}},In.prototype.handle_comment=function(t,e){t.newlines?this.print_newline(!1,e):this._output.trim(!0),this._output.space_before_token=!0,this.print_token(t),this.print_newline(!1,e)},In.prototype.handle_dot=function(t){this.start_of_statement(t)||this.handle_whitespace_and_comments(t,!0),yn(this._flags.last_token,xn)?this._output.space_before_token=!1:this.allow_wrap_or_preserved_newline(t,")"===this._flags.last_token.text&&this._options.break_chained_methods),this._options.unindent_chained_methods&&this._output.just_added_newline()&&this.deindent(),this.print_token(t)},In.prototype.handle_unknown=function(t,e){this.print_token(t),"\n"===t.text[t.text.length-1]&&this.print_newline(!1,e)},In.prototype.handle_eof=function(t){for(;this._flags.mode===_n;)this.restore_mode();this.handle_whitespace_and_comments(t)},Ze.Beautifier=In;var $n=Ze.Beautifier,Bn=ci.Options;Ke.exports=function(t,e){return new $n(t,e).beautify()},Ke.exports.defaultOptions=function(){return new Bn};var zn={exports:{}},Pn={},Dn={},Nn=ui.Options;function Hn(t){Nn.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 i=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var n=0;n<i.length;n++)"expand"!==i[n]?this.brace_style="collapse":this.brace_style=i[n]}Hn.prototype=new Nn,Dn.Options=Hn;var jn=Dn.Options,Fn=Qe.Output,Un=vi.InputScanner,Wn=new(0,$i.Directives)(/\/\*/,/\*\//),Gn=/\r\n|[\r\n]/,Yn=/\r\n|[\r\n]/g,Xn=/\s/,Vn=/(?:\s|\n)+/g,Kn=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,Zn=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function Qn(t,e){this._source_text=t||"",this._options=new jn(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}}Qn.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},Qn.prototype.eatWhitespace=function(t){for(var e=Xn.test(this._input.peek()),i=0;Xn.test(this._input.peek());)this._ch=this._input.next(),t&&"\n"===this._ch&&(0===i||i<this._options.max_preserve_newlines)&&(i++,this._output.add_new_line(!0));return e},Qn.prototype.foundNestedPseudoClass=function(){for(var t=0,e=1,i=this._input.peek(e);i;){if("{"===i)return!0;if("("===i)t+=1;else if(")"===i){if(0===t)return!1;t-=1}else if(";"===i||"}"===i)return!1;e++,i=this._input.peek(e)}return!1},Qn.prototype.print_string=function(t){this._output.set_indent(this._indentLevel),this._output.non_breaking_space=!0,this._output.add_token(t)},Qn.prototype.preserveSingleSpace=function(t){t&&(this._output.space_before_token=!0)},Qn.prototype.indent=function(){this._indentLevel++},Qn.prototype.outdent=function(){this._indentLevel>0&&this._indentLevel--},Qn.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&&Gn.test(t||"")&&(e=t.match(Gn)[0]));var i=(t=t.replace(Yn,"\n")).match(/^[\t ]*/)[0];this._output=new Fn(this._options,i),this._input=new Un(t),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var n,o,s=0,l=!1,a=!1,r=!1,c=!1,u=!1,d=this._ch;n=""!==this._input.read(Vn),o=d,this._ch=this._input.next(),"\\"===this._ch&&this._input.hasNext()&&(this._ch+=this._input.next()),d=this._ch,this._ch;)if("/"===this._ch&&"*"===this._input.peek()){this._output.add_new_line(),this._input.back();var b=this._input.read(Kn),p=Wn.get_directives(b);p&&"start"===p.ignore&&(b+=Wn.readIgnored(this._input)),this.print_string(b),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(Zn)),this.eatWhitespace(!0);else if("@"===this._ch)if(this.preserveSingleSpace(n),"{"===this._input.peek())this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var h=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);h.match(/[ :]$/)&&(h=this.eatString(": ").replace(/\s$/,""),this.print_string(h),this._output.space_before_token=!0),"extend"===(h=h.replace(/\s$/,""))?c=!0:"import"===h&&(u=!0),h in this.NESTED_AT_RULE?(this._nestedLevel+=1,h in this.CONDITIONAL_GROUP_RULE&&(r=!0)):l||0!==s||-1===h.indexOf(":")||(a=!0,this.indent())}else"#"===this._ch&&"{"===this._input.peek()?(this.preserveSingleSpace(n),this.print_string(this._ch+this.eatString("}"))):"{"===this._ch?(a&&(a=!1,this.outdent()),r?(r=!1,l=this._indentLevel>=this._nestedLevel):l=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&l&&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)):(this.indent(),this.print_string(this._ch)),this.eatWhitespace(!0),this._output.add_new_line()):"}"===this._ch?(this.outdent(),this._output.add_new_line(),"{"===o&&this._output.trim(!0),u=!1,c=!1,a&&(this.outdent(),a=!1),this.print_string(this._ch),l=!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._ch?!l&&!r||this._input.lookBack("&")||this.foundNestedPseudoClass()||this._input.lookBack("(")||c||0!==s?(this._input.lookBack(" ")&&(this._output.space_before_token=!0),":"===this._input.peek()?(this._ch=this._input.next(),this.print_string("::")):this.print_string(":")):(this.print_string(":"),a||(a=!0,this._output.space_before_token=!0,this.eatWhitespace(!0),this.indent())):'"'===this._ch||"'"===this._ch?(this.preserveSingleSpace(n),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)):";"===this._ch?0===s?(a&&(this.outdent(),a=!1),c=!1,u=!1,this.print_string(this._ch),this.eatWhitespace(!0),"/"!==this._input.peek()&&this._output.add_new_line()):(this.print_string(this._ch),this.eatWhitespace(!0),this._output.space_before_token=!0):"("===this._ch?this._input.lookBack("url")?(this.print_string(this._ch),this.eatWhitespace(),s++,this.indent(),this._ch=this._input.next(),")"===this._ch||'"'===this._ch||"'"===this._ch?this._input.back():this._ch&&(this.print_string(this._ch+this.eatString(")")),s&&(s--,this.outdent()))):(this.preserveSingleSpace(n),this.print_string(this._ch),this.eatWhitespace(),s++,this.indent()):")"===this._ch?(s&&(s--,this.outdent()),this.print_string(this._ch)):","===this._ch?(this.print_string(this._ch),this.eatWhitespace(!0),!this._options.selector_separator_newline||a||0!==s||u||c?this._output.space_before_token=!0:this._output.add_new_line()):">"!==this._ch&&"+"!==this._ch&&"~"!==this._ch||a||0!==s?"]"===this._ch?this.print_string(this._ch):"["===this._ch?(this.preserveSingleSpace(n),this.print_string(this._ch)):"="===this._ch?(this.eatWhitespace(),this.print_string("="),Xn.test(this._ch)&&(this._ch="")):"!"!==this._ch||this._input.lookBack("\\")?(this.preserveSingleSpace(n),this.print_string(this._ch)):(this.print_string(" "),this.print_string(this._ch)):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&&Xn.test(this._ch)&&(this._ch=""));return this._output.get_code(e)},Pn.Beautifier=Qn;var Jn=Pn.Beautifier,to=Dn.Options;zn.exports=function(t,e){return new Jn(t,e).beautify()},zn.exports.defaultOptions=function(){return new to};var eo={exports:{}},io={},no={},oo=ui.Options;function so(t){oo.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_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.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"])}so.prototype=new oo,no.Options=so;var lo={},ao=wi.Tokenizer,ro=wi.TOKEN,co=$i.Directives,uo=zi.TemplatablePattern,bo=Ci.Pattern,po={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:ro.START,RAW:ro.RAW,EOF:ro.EOF},ho=new co(/<\!--/,/-->/),go=function(t,e){ao.call(this,t,e),this._current_tag_name="";var i=new uo(this._input).read_options(this._options),n=new bo(this._input);if(this.__patterns={word:i.until(/[\n\r\t <]/),single_quote:i.until_after(/'/),double_quote:i.until_after(/"/),attribute:i.until(/[\n\r\t =>]|\/>/),element_name:i.until(/[\n\r\t >\/]/),handlebars_comment:n.starting_with(/{{!--/).until_after(/--}}/),handlebars:n.starting_with(/{{/).until_after(/}}/),handlebars_open:n.until(/[\n\r\t }]/),handlebars_raw_close:n.until(/}}/),comment:n.starting_with(/<!--/).until_after(/-->/),cdata:n.starting_with(/<!\[CDATA\[/).until_after(/]]>/),conditional_comment:n.starting_with(/<!\[/).until_after(/]>/),processing:n.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 o=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=n.matching(o).until_after(o)}};(go.prototype=new ao)._is_comment=function(t){return!1},go.prototype._is_opening=function(t){return t.type===po.TAG_OPEN},go.prototype._is_closing=function(t,e){return t.type===po.TAG_CLOSE&&e&&((">"===t.text||"/>"===t.text)&&"<"===e.text[0]||"}}"===t.text&&"{"===e.text[0]&&"{"===e.text[1])},go.prototype._reset=function(){this._current_tag_name=""},go.prototype._get_next_token=function(t,e){var i=null;this._readWhitespace();var n=this._input.peek();return null===n?this._create_token(po.EOF,""):i=(i=(i=(i=(i=(i=(i=(i=(i=i||this._read_open_handlebars(n,e))||this._read_attribute(n,t,e))||this._read_close(n,e))||this._read_raw_content(n,t,e))||this._read_content_word(n))||this._read_comment_or_cdata(n))||this._read_processing(n))||this._read_open(n,e))||this._create_token(po.UNKNOWN,this._input.next())},go.prototype._read_comment_or_cdata=function(t){var e=null,i=null,n=null;"<"===t&&("!"===this._input.peek(1)&&((i=this.__patterns.comment.read())?(n=ho.get_directives(i))&&"start"===n.ignore&&(i+=ho.readIgnored(this._input)):i=this.__patterns.cdata.read()),i&&((e=this._create_token(po.COMMENT,i)).directives=n));return e},go.prototype._read_processing=function(t){var e=null,i=null;if("<"===t){var n=this._input.peek(1);"!"!==n&&"?"!==n||(i=(i=this.__patterns.conditional_comment.read())||this.__patterns.processing.read()),i&&((e=this._create_token(po.COMMENT,i)).directives=null)}return e},go.prototype._read_open=function(t,e){var i=null,n=null;return e||"<"===t&&(i=this._input.next(),"/"===this._input.peek()&&(i+=this._input.next()),i+=this.__patterns.element_name.read(),n=this._create_token(po.TAG_OPEN,i)),n},go.prototype._read_open_handlebars=function(t,e){var i=null,n=null;return e||this._options.indent_handlebars&&"{"===t&&"{"===this._input.peek(1)&&("!"===this._input.peek(2)?(i=(i=this.__patterns.handlebars_comment.read())||this.__patterns.handlebars.read(),n=this._create_token(po.COMMENT,i)):(i=this.__patterns.handlebars_open.read(),n=this._create_token(po.TAG_OPEN,i))),n},go.prototype._read_close=function(t,e){var i=null,n=null;return e&&("<"===e.text[0]&&(">"===t||"/"===t&&">"===this._input.peek(1))?(i=this._input.next(),"/"===t&&(i+=this._input.next()),n=this._create_token(po.TAG_CLOSE,i)):"{"===e.text[0]&&"}"===t&&"}"===this._input.peek(1)&&(this._input.next(),this._input.next(),n=this._create_token(po.TAG_CLOSE,"}}"))),n},go.prototype._read_attribute=function(t,e,i){var n=null,o="";if(i&&"<"===i.text[0])if("="===t)n=this._create_token(po.EQUALS,this._input.next());else if('"'===t||"'"===t){var s=this._input.next();s+='"'===t?this.__patterns.double_quote.read():this.__patterns.single_quote.read(),n=this._create_token(po.VALUE,s)}else(o=this.__patterns.attribute.read())&&(n=e.type===po.EQUALS?this._create_token(po.VALUE,o):this._create_token(po.ATTRIBUTE,o));return n},go.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))},go.prototype._read_raw_content=function(t,e,i){var n="";if(i&&"{"===i.text[0])n=this.__patterns.handlebars_raw_close.read();else if(e.type===po.TAG_CLOSE&&"<"===e.opened.text[0]&&"/"!==e.text[0]){var o=e.opened.text.substr(1).toLowerCase();if("script"===o||"style"===o){var s=this._read_comment_or_cdata(t);if(s)return s.type=po.TEXT,s;n=this._input.readUntil(new RegExp("</"+o+"[\\n\\r\\t ]*?>","ig"))}else this._is_content_unformatted(o)&&(n=this._input.readUntil(new RegExp("</"+o+"[\\n\\r\\t ]*?>","ig")))}return n?this._create_token(po.TEXT,n):null},go.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(po.TEXT,e)},lo.Tokenizer=go,lo.TOKEN=po;var mo=no.Options,fo=Qe.Output,vo=lo.Tokenizer,yo=lo.TOKEN,xo=/\r\n|[\r\n]/,wo=/\r\n|[\r\n]/g,So=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 fo(t,e)};So.prototype.current_line_has_match=function(t){return this._output.current_line.has_match(t)},So.prototype.set_space_before_token=function(t,e){this._output.space_before_token=t,this._output.non_breaking_space=e},So.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()},So.prototype.add_raw_token=function(t){this._output.add_raw_token(t)},So.prototype.print_preserved_newlines=function(t){var e=0;t.type!==yo.TEXT&&t.previous.type!==yo.TEXT&&(e=t.newlines?1:0),this.preserve_newlines&&(e=t.newlines<this.max_preserve_newlines+1?t.newlines:this.max_preserve_newlines+1);for(var i=0;i<e;i++)this.print_newline(i>0);return 0!==e},So.prototype.traverse_whitespace=function(t){return!(!t.whitespace_before&&!t.newlines)&&(this.print_preserved_newlines(t)||(this._output.space_before_token=!0),!0)},So.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped},So.prototype.print_newline=function(t){this._output.add_new_line(t)},So.prototype.print_token=function(t){t.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(t.text))},So.prototype.indent=function(){this.indent_level++},So.prototype.get_full_indent=function(t){return(t=this.indent_level+(t||0))<1?"":this._output.get_indent_string(t)};var ko=function(t,e){var i=null,n=null;return e.closed?("script"===t?i="text/javascript":"style"===t&&(i="text/css"),i=function(t){for(var e=null,i=t.next;i.type!==yo.EOF&&t.closed!==i;){if(i.type===yo.ATTRIBUTE&&"type"===i.text){i.next&&i.next.type===yo.EQUALS&&i.next.next&&i.next.next.type===yo.VALUE&&(e=i.next.next.text);break}i=i.next}return e}(e)||i,i.search("text/css")>-1?n="css":i.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)>-1?n="javascript":i.search(/(text|application|dojo)\/(x-)?(html)/)>-1?n="html":i.search(/test\/null/)>-1&&(n="null"),n):null};function _o(t,e){return-1!==e.indexOf(t)}function Co(t,e,i){this.parent=t||null,this.tag=e?e.tag_name:"",this.indent_level=i||0,this.parser_token=e||null}function Lo(t){this._printer=t,this._current_frame=null}function Ao(t,e,i,n){this._source_text=t||"",e=e||{},this._js_beautify=i,this._css_beautify=n,this._tag_stack=null;var o=new mo(e,"html");this._options=o,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}Lo.prototype.get_parser_token=function(){return this._current_frame?this._current_frame.parser_token:null},Lo.prototype.record_tag=function(t){var e=new Co(this._current_frame,t,this._printer.indent_level);this._current_frame=e},Lo.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},Lo.prototype._get_frame=function(t,e){for(var i=this._current_frame;i&&-1===t.indexOf(i.tag);){if(e&&-1!==e.indexOf(i.tag)){i=null;break}i=i.parent}return i},Lo.prototype.try_pop=function(t,e){var i=this._get_frame([t],e);return this._try_pop_frame(i)},Lo.prototype.indent_to_tag=function(t){var e=this._get_frame(t);e&&(this._printer.indent_level=e.indent_level)},Ao.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&&xo.test(t)&&(e=t.match(xo)[0]));var i=(t=t.replace(wo,"\n")).match(/^[\t ]*/)[0],n={text:"",type:""},o=new Eo,s=new So(this._options,i),l=new vo(t,this._options).tokenize();this._tag_stack=new Lo(s);for(var a=null,r=l.next();r.type!==yo.EOF;)r.type===yo.TAG_OPEN||r.type===yo.COMMENT?o=a=this._handle_tag_open(s,r,o,n):r.type===yo.ATTRIBUTE||r.type===yo.EQUALS||r.type===yo.VALUE||r.type===yo.TEXT&&!o.tag_complete?a=this._handle_inside_tag(s,r,o,l):r.type===yo.TAG_CLOSE?a=this._handle_tag_close(s,r,o):r.type===yo.TEXT?a=this._handle_text(s,r,o):s.add_raw_token(r),n=a,r=l.next();return s._output.get_code(e)},Ao.prototype._handle_tag_close=function(t,e,i){var n={text:e.text,type:e.type};return t.alignment_size=0,i.tag_complete=!0,t.set_space_before_token(e.newlines||""!==e.whitespace_before,!0),i.is_unformatted?t.add_raw_token(e):("<"===i.tag_start_char&&(t.set_space_before_token("/"===e.text[0],!0),this._is_wrap_attributes_force_expand_multiline&&i.has_wrapped_attrs&&t.print_newline(!1)),t.print_token(e)),!i.indent_content||i.is_unformatted||i.is_content_unformatted||(t.indent(),i.indent_content=!1),i.is_inline_element||i.is_unformatted||i.is_content_unformatted||t.set_wrap_point(),n},Ao.prototype._handle_inside_tag=function(t,e,i,n){var o=i.has_wrapped_attrs,s={text:e.text,type:e.type};if(t.set_space_before_token(e.newlines||""!==e.whitespace_before,!0),i.is_unformatted)t.add_raw_token(e);else if("{"===i.tag_start_char&&e.type===yo.TEXT)t.print_preserved_newlines(e)?(e.newlines=0,t.add_raw_token(e)):t.print_token(e);else{if(e.type===yo.ATTRIBUTE?(t.set_space_before_token(!0),i.attr_count+=1):(e.type===yo.EQUALS||e.type===yo.VALUE&&e.previous.type===yo.EQUALS)&&t.set_space_before_token(!1),e.type===yo.ATTRIBUTE&&"<"===i.tag_start_char&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(t.traverse_whitespace(e),o=o||0!==e.newlines),this._is_wrap_attributes_force)){var l=i.attr_count>1;if(this._is_wrap_attributes_force_expand_multiline&&1===i.attr_count){var a,r=!0,c=0;do{if((a=n.peek(c)).type===yo.ATTRIBUTE){r=!1;break}c+=1}while(c<4&&a.type!==yo.EOF&&a.type!==yo.TAG_CLOSE);l=!r}l&&(t.print_newline(!1),o=!0)}t.print_token(e),o=o||t.previous_token_wrapped(),i.has_wrapped_attrs=o}return s},Ao.prototype._handle_text=function(t,e,i){var n={text:e.text,type:"TK_CONTENT"};return i.custom_beautifier_name?this._print_custom_beatifier_text(t,e,i):i.is_unformatted||i.is_content_unformatted?t.add_raw_token(e):(t.traverse_whitespace(e),t.print_token(e)),n},Ao.prototype._print_custom_beatifier_text=function(t,e,i){var n=this;if(""!==e.text){var o,s=e.text,l=1,a="",r="";"javascript"===i.custom_beautifier_name&&"function"==typeof this._js_beautify?o=this._js_beautify:"css"===i.custom_beautifier_name&&"function"==typeof this._css_beautify?o=this._css_beautify:"html"===i.custom_beautifier_name&&(o=function(t,e){return new Ao(t,e,n._js_beautify,n._css_beautify).beautify()}),"keep"===this._options.indent_scripts?l=0:"separate"===this._options.indent_scripts&&(l=-t.indent_level);var c=t.get_full_indent(l);if(s=s.replace(/\n[ \t]*$/,""),"html"!==i.custom_beautifier_name&&"<"===s[0]&&s.match(/^(<!--|<!\[CDATA\[)/)){var u=/^(<!--[^\n]*|<!\[CDATA\[)(\n?)([ \t\n]*)([\s\S]*)(-->|]]>)$/.exec(s);if(!u)return void t.add_raw_token(e);a=c+u[1]+"\n",s=u[4],u[5]&&(r=c+u[5]),s=s.replace(/\n[ \t]*$/,""),(u[2]||-1!==u[3].indexOf("\n"))&&(u=u[3].match(/[ \t]+$/))&&(e.whitespace_before=u[0])}if(s)if(o){var d=function(){this.eol="\n"};d.prototype=this._options.raw_options,s=o(c+s,new d)}else{var b=e.whitespace_before;b&&(s=s.replace(new RegExp("\n("+b+")?","g"),"\n")),s=c+s.replace(/\n/g,"\n"+c)}a&&(s=s?a+s+"\n"+r:a+r),t.print_newline(!1),s&&(e.text=s,e.whitespace_before="",e.newlines=0,t.add_raw_token(e),t.print_newline(!0))}},Ao.prototype._handle_tag_open=function(t,e,i,n){var o=this._get_tag_open_token(e);return!i.is_unformatted&&!i.is_content_unformatted||i.is_empty_element||e.type!==yo.TAG_OPEN||0!==e.text.indexOf("</")?(t.traverse_whitespace(e),this._set_tag_position(t,e,o,i,n),o.is_inline_element||t.set_wrap_point(),t.print_token(e)):(t.add_raw_token(e),o.start_tag_token=this._tag_stack.try_pop(o.tag_name)),(this._is_wrap_attributes_force_aligned||this._is_wrap_attributes_aligned_multiple||this._is_wrap_attributes_preserve_aligned)&&(o.alignment_size=e.text.length+1),o.tag_complete||o.is_unformatted||(t.alignment_size=o.alignment_size),o};var Eo=function(t,e){var i;(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)?(this.tag_start_char=e.text[0],this.text=e.text,"<"===this.tag_start_char?(i=e.text.match(/^<([^\s>]*)/),this.tag_check=i?i[1]:""):(i=e.text.match(/^{{(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=i?i[1]:"","{{#>"===e.text&&">"===this.tag_check&&null!==e.next&&(this.tag_check=e.next.text)),this.tag_check=this.tag_check.toLowerCase(),e.type===yo.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,this.is_end_tag=this.is_end_tag||"{"===this.tag_start_char&&(this.text.length<3||/[^#\^]/.test(this.text.charAt(2)))):this.tag_complete=!0};Ao.prototype._get_tag_open_token=function(t){var e=new Eo(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||_o(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&&_o(e.tag_check,this._options.unformatted),e.is_content_unformatted=!e.is_empty_element&&_o(e.tag_check,this._options.content_unformatted),e.is_inline_element=_o(e.tag_name,this._options.inline)||"{"===e.tag_start_char,e},Ao.prototype._set_tag_position=function(t,e,i,n,o){if(i.is_empty_element||(i.is_end_tag?i.start_tag_token=this._tag_stack.try_pop(i.tag_name):(this._do_optional_end_element(i)&&(i.is_inline_element||t.print_newline(!1)),this._tag_stack.record_tag(i),"script"!==i.tag_name&&"style"!==i.tag_name||i.is_unformatted||i.is_content_unformatted||(i.custom_beautifier_name=ko(i.tag_check,e)))),_o(i.tag_check,this._options.extra_liners)&&(t.print_newline(!1),t._output.just_added_blankline()||t.print_newline(!0)),i.is_empty_element){if("{"===i.tag_start_char&&"else"===i.tag_check)this._tag_stack.indent_to_tag(["if","unless","each"]),i.indent_content=!0,t.current_line_has_match(/{{#if/)||t.print_newline(!1);"!--"===i.tag_name&&o.type===yo.TAG_CLOSE&&n.is_end_tag&&-1===i.text.indexOf("\n")||(i.is_inline_element||i.is_unformatted||t.print_newline(!1),this._calcluate_parent_multiline(t,i))}else if(i.is_end_tag){var s=!1;s=(s=i.start_tag_token&&i.start_tag_token.multiline_content)||!i.is_inline_element&&!(n.is_inline_element||n.is_unformatted)&&!(o.type===yo.TAG_CLOSE&&i.start_tag_token===n)&&"TK_CONTENT"!==o.type,(i.is_content_unformatted||i.is_unformatted)&&(s=!1),s&&t.print_newline(!1)}else i.indent_content=!i.custom_beautifier_name,"<"===i.tag_start_char&&("html"===i.tag_name?i.indent_content=this._options.indent_inner_html:"head"===i.tag_name?i.indent_content=this._options.indent_head_inner_html:"body"===i.tag_name&&(i.indent_content=this._options.indent_body_inner_html)),i.is_inline_element||i.is_unformatted||"TK_CONTENT"===o.type&&!i.is_content_unformatted||t.print_newline(!1),this._calcluate_parent_multiline(t,i)},Ao.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 qo=["address","article","aside","blockquote","details","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hr","main","nav","ol","p","pre","section","table","ul"],To=["a","audio","del","ins","map","noscript","video"];Ao.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"]);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!==qo.indexOf(t.tag_name)){var i=t.parent.parent;i&&-1!==To.indexOf(i.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}},io.Beautifier=Ao;var Mo=io.Beautifier,Ro=no.Options;eo.exports=function(t,e,i,n){return new Mo(t,e,i,n).beautify()},eo.exports.defaultOptions=function(){return new Ro};var Io=Ke.exports,Oo=zn.exports,$o=eo.exports;function Bo(t,e,i,n){return $o(t,e,i=i||Io,n=n||Oo)}Bo.defaultOptions=$o.defaultOptions,Ve.js=Io,Ve.css=Oo,Ve.html=Bo,function(t){var e=Ve;e.js_beautify=e.js,e.css_beautify=e.css,e.html_beautify=e.html,t.exports=function(t,e,i){var n=function(e,i){return t.js_beautify(e,i)};return n.js=t.js_beautify,n.css=e.css_beautify,n.html=i.html_beautify,n.js_beautify=t.js_beautify,n.css_beautify=e.css_beautify,n.html_beautify=i.html_beautify,n}(e,e,e)}(Xe);var zo=Xe.exports;function Po(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i<e;i++)n[i]=t[i];return n}function Do(t,e,i){return(e=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function No(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function Ho(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?No(Object(i),!0).forEach((function(e){Do(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):No(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function jo(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function Fo(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function Uo(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Fo(Object(i),!0).forEach((function(e){jo(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Fo(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function Wo(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return function(t){return e.reduceRight((function(t,e){return e(t)}),t)}}function Go(t){return function e(){for(var i=this,n=arguments.length,o=new Array(n),s=0;s<n;s++)o[s]=arguments[s];return o.length>=t.length?t.apply(this,o):function(){for(var t=arguments.length,n=new Array(t),s=0;s<t;s++)n[s]=arguments[s];return e.apply(i,[].concat(o,n))}}}function Yo(t){return{}.toString.call(t).includes("Object")}function Xo(t){return"function"==typeof t}var Vo=Go((function(t,e){throw new Error(t[e]||t.default)}))({initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"}),Ko={changes:function(t,e){return Yo(e)||Vo("changeType"),Object.keys(e).some((function(e){return i=t,n=e,!Object.prototype.hasOwnProperty.call(i,n);var i,n}))&&Vo("changeField"),e},selector:function(t){Xo(t)||Vo("selectorType")},handler:function(t){Xo(t)||Yo(t)||Vo("handlerType"),Yo(t)&&Object.values(t).some((function(t){return!Xo(t)}))&&Vo("handlersType")},initial:function(t){var e;t||Vo("initialIsRequired"),Yo(t)||Vo("initialType"),e=t,Object.keys(e).length||Vo("initialContent")}};function Zo(t,e){return Xo(e)?e(t.current):e}function Qo(t,e){return t.current=Uo(Uo({},t.current),e),e}function Jo(t,e,i){return Xo(e)?e(t.current):Object.keys(i).forEach((function(i){var n;return null===(n=e[i])||void 0===n?void 0:n.call(e,t.current[i])})),i}var ts={create:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ko.initial(t),Ko.handler(e);var i={current:t},n=Go(Jo)(i,e),o=Go(Qo)(i),s=Go(Ko.changes)(t),l=Go(Zo)(i);function a(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(t){return t};return Ko.selector(t),t(i.current)}function r(t){Wo(n,o,s,l)(t)}return[a,r]}};var es,is={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:"Deprecation warning!\n You are using deprecated way of configuration.\n\n Instead of using\n monaco.config({ urls: { monacoBase: '...' } })\n use\n monaco.config({ paths: { vs: '...' } })\n\n For more please check the link https://github.com/suren-atoyan/monaco-loader#config\n "},ns=(es=function(t,e){throw new Error(t[e]||t.default)},function t(){for(var e=this,i=arguments.length,n=new Array(i),o=0;o<i;o++)n[o]=arguments[o];return n.length>=es.length?es.apply(this,n):function(){for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return t.apply(e,[].concat(n,o))}})(is),os={config:function(t){var e;return t||ns("configIsRequired"),e=t,{}.toString.call(e).includes("Object")||ns("configType"),t.urls?(console.warn(is.deprecation),{paths:{vs:t.urls.monacoBase}}):t}};function ss(t,e){return Object.keys(e).forEach((function(i){e[i]instanceof Object&&t[i]&&Object.assign(e[i],ss(t[i],e[i]))})),Ho(Ho({},t),e)}var ls={type:"cancelation",msg:"operation is manually canceled"};function as(t){var e=!1,i=new Promise((function(i,n){t.then((function(t){return e?n(ls):i(t)})),t.catch(n)}));return i.cancel=function(){return e=!0},i}var rs,cs,us=["monaco"],ds=ts.create({config:{paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.54.0/min/vs"}},isInitialized:!1,resolve:null,reject:null,monaco:null}),bs=(cs=2,function(t){if(Array.isArray(t))return t}(rs=ds)||function(t,e){var i=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=i){var n,o,s,l,a=[],r=!0,c=!1;try{if(s=(i=i.call(t)).next,0===e);else for(;!(r=(n=s.call(i)).done)&&(a.push(n.value),a.length!==e);r=!0);}catch(t){c=!0,o=t}finally{try{if(!r&&null!=i.return&&(l=i.return(),Object(l)!==l))return}finally{if(c)throw o}}return a}}(rs,cs)||function(t,e){if(t){if("string"==typeof t)return Po(t,e);var i={}.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Po(t,e):void 0}}(rs,cs)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),ps=bs[0],hs=bs[1];function gs(t){return document.body.appendChild(t)}function ms(t){var e=ps((function(t){return{config:t.config,reject:t.reject}})),i=function(t){var e=document.createElement("script");return t&&(e.src=t),e}("".concat(e.config.paths.vs,"/loader.js"));return i.onload=function(){return t()},i.onerror=e.reject,i}function fs(){var t=ps((function(t){return{config:t.config,resolve:t.resolve,reject:t.reject}})),e=window.require;e.config(t.config),e(["vs/editor/editor.main"],(function(e){var i=e.m;vs(i),t.resolve(i)}),(function(e){t.reject(e)}))}function vs(t){ps().monaco||hs({monaco:t})}var ys=new Promise((function(t,e){return hs({resolve:t,reject:e})})),xs={config:function(t){var e=os.config(t),i=e.monaco,n=function(t,e){if(null==t)return{};var i,n,o=function(t,e){if(null==t)return{};var i={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(-1!==e.indexOf(n))continue;i[n]=t[n]}return i}(t,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(n=0;n<s.length;n++)i=s[n],-1===e.indexOf(i)&&{}.propertyIsEnumerable.call(t,i)&&(o[i]=t[i])}return o}(e,us);hs((function(t){return{config:ss(t.config,n),monaco:i}}))},init:function(){var t=ps((function(t){return{monaco:t.monaco,isInitialized:t.isInitialized,resolve:t.resolve}}));if(!t.isInitialized){if(hs({isInitialized:!0}),t.monaco)return t.resolve(t.monaco),as(ys);if(window.monaco&&window.monaco.editor)return vs(window.monaco),t.resolve(window.monaco),as(ys);!function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return function(t){return e.reduceRight((function(t,e){return e(t)}),t)}}(gs,ms)(fs)}return as(ys)},__getMonacoInstance:function(){return ps((function(t){return t.monaco}))}};let ws={};class Ss{constructor(t){this.builder=t}renderPanel(){const t=this.builder.builderStuff,e=this.builder.util,i=this.builder.dom;let n=t.querySelector(".viewhtml");if(!n){const o=`<div class="is-modal viewhtml" tabindex="-1" role="dialog" aria-modal="true" aria-hidden="true">\n <div class="is-modal-content">\n <textarea class="tabSupport" id="__tabsupport" style="width:100%;height:calc(100% - 50px);border:none;margin:0;box-sizing:border-box;"></textarea>\n <div class="is-modal-footer" style="border-top:1px solid ${this.builder.styleSeparatorColor};width:100%;height:50px;position:absolute;left:0;bottom:0;overflow:hidden;text-align:right">\n <button title="${e.out("Cancel")}" class="input-cancel classic-secondary">${e.out("Cancel")}</button>\n <button title="${e.out("Ok")}" class="input-ok classic-primary">${e.out("Ok")}</button>\n </div>\n </div>\n </div>\n\n <div class="is-modal viewhtmlmonaco" tabindex="-1" role="dialog" aria-modal="true" aria-hidden="true">\n <div class="is-modal-content" style="width:${this.builder.blockCodeEditorWidth};max-width:${this.builder.blockCodeEditorMaxWidth};padding:0">\n <textarea id="__viewhtmlmonaco" style="position:absolute;display:none;"></textarea>\n <div class="input-code-editor" style="width:100%;height:${this.builder.blockCodeEditorHeight};"></div>\n <div class="is-modal-footer" style="display:flex;justify-content:flex-end;border-top:1px solid ${this.builder.styleSeparatorColor};">\n <button title="${e.out("Cancel")}" class="input-cancel classic-secondary">${e.out("Cancel")}</button>\n <button title="${e.out("Ok")}" class="input-ok classic-primary">${e.out("Ok")}</button>\n </div>\n </div>\n </div>\n\n <div class="is-modal viewhtmlexternal" tabindex="-1" role="dialog" aria-modal="true" aria-hidden="true">\n <div class="is-modal-content" style="width:${this.builder.codeEditorWidth};max-width:${this.builder.codeEditorMaxWidth};padding:0">\n <div class="input-code-editor" id="__input_code_editor" style="width:100%;height:${this.builder.codeEditorHeight};"></div>\n <div class="is-modal-footer" style="display:flex;justify-content:flex-end;border-top:1px solid ${this.builder.styleSeparatorColor};">\n <button title="${e.out("Cancel")}" class="input-cancel classic-secondary">${e.out("Cancel")}</button>\n <button title="${e.out("Ok")}" class="input-ok classic-primary">${e.out("Ok")}</button>\n </div>\n </div>\n </div>\n \n `;i.appendHtml(t,o),n=t.querySelector(".viewhtml");let s=t.querySelector(".viewhtmlmonaco"),l=t.querySelector(".viewhtmlexternal"),a=n.querySelector(".input-ok");i.addEventListener(a,"click",(()=>{this.applyHtml(n)})),a=n.querySelector(".input-cancel"),i.addEventListener(a,"click",(()=>{this.builder.hideModal(n)})),a=s.querySelector(".input-ok"),i.addEventListener(a,"click",(()=>{this.applyHtml(s)})),a=s.querySelector(".input-cancel"),i.addEventListener(a,"click",(()=>{this.builder.hideModal(s)})),a=l.querySelector(".input-ok"),i.addEventListener(a,"click",(()=>{const t=document.querySelector("textarea[data-source-active]"),e=t.getAttribute("data-source-ok");t.removeAttribute("data-source-active"),t.removeAttribute("data-source-ok"),t.removeAttribute("data-source-cancel"),document.querySelector(e).click(),this.builder.hideModal(l)})),a=l.querySelector(".input-cancel"),i.addEventListener(a,"click",(()=>{const t=document.querySelector("textarea[data-source-active]"),e=t.getAttribute("data-source-cancel");t.removeAttribute("data-source-active"),t.removeAttribute("data-source-ok"),t.removeAttribute("data-source-cancel"),document.querySelector(e).click(),this.builder.hideModal(l)}))}}async applyHtml(t){const e=this.builder.util,i=e.cellSelected();i&&i.parentNode.classList.add("row-active");let n=this.builder.codeEditorMode,o=this.builder.codeEditorArea;this.builder.uo.saveForUndo();let s=t.querySelector("textarea").value;if("code"===n){let i=this.builder.activeCodeBlock;i.setAttribute("data-html",encodeURIComponent(s)),s=s.replace(/{id}/g,e.makeId());for(let t=1;t<=20;t++)s=s.replace("[%HTML"+t+"%]",void 0===i.getAttribute("data-html-"+t)?"":decodeURIComponent(i.getAttribute("data-html-"+t)));i.innerHTML="";let n=document.createRange();n.setStart(i,0),i.appendChild(n.createContextualFragment(s));let o=this.builder.doc.querySelector(".builder-active");return o&&this.builder.applyBehaviorOn(o),this.builder.opts.onChange(),this.builder.opts.onRender(),this.builder.hideModal(t),void e.hideControls()}if(s=this.fromViewToActual(s),"cell"===n){e.cellSelected().innerHTML=s;let t=this.builder.doc.querySelector(".builder-active");t&&(this.builder.applyBehaviorOn(t),this.builder.win.builderRuntime&&t.querySelector("[data-cb-type]")&&this.builder.win.builderRuntime.reinitialize(t)),this.builder.opts.onChange(),this.builder.opts.onRender()}if("row"===n){let t,i=e.cellSelected();if(t=i?i.parentNode:e.rowSelected(),!t)return;t.innerHTML=s;let n=this.builder.doc.querySelector(".builder-active");n&&(this.builder.applyBehaviorOn(n),this.builder.win.builderRuntime&&n.querySelector("[data-cb-type]")&&this.builder.win.builderRuntime.reinitialize(n)),this.builder.opts.onChange(),this.builder.opts.onRender(),t.classList.remove("row-outline"),e.hideColumnTool()}if("full"===n){if(this.builder.docContainer)return this.builder.loadHTML(s),e.clearControls(),void this.builder.hideModal(t);o.innerHTML="";let i=document.createRange();i.setStart(o,0),o.appendChild(i.createContextualFragment(s)),this.builder.applyBehaviorOn(o),this.builder.win.builderRuntime&&o.querySelector("[data-cb-type]")&&this.builder.win.builderRuntime.reinitialize(o),this.builder.opts.onChange(),this.builder.opts.onRender(),e.clearActiveCell()}e.clearControls(),this.builder.win.builderRuntime&&await this.builder.win.builderRuntime.reinitialize(),this.builder.hideModal(t),this.builder.makeSortable(this.builder.doc)}viewHtmlExternal(){const t=this.builder.util,e=this.builder.builderStuff;this.renderPanel();const i=e.querySelector(".viewhtmlexternal");document.activeElement&&(this.elmFocus=document.activeElement),t.showModal(i,!0,(()=>{this.elmFocus&&this.elmFocus.focus()}),!1),i.querySelector(".input-code-editor").style.opacity=.01,this._viewHtmlExternal()}_viewHtmlExternal(){const t=this.builder.builderStuff,e=document.querySelector("textarea[data-source-active]");let i=t.querySelector(".viewhtmlexternal").querySelector(".input-code-editor");if(!i.querySelector(".monaco-editor"))return xs.init().then((t=>{this.builder.monaco=t,i.getAttribute("data-mode-id")||(this.builder.codeEditorExternal=t.editor.create(i,{value:"",minimap:{enabled:!1},automaticLayout:!0,contextmenu:!1,fontSize:13,wordWrap:!0,scrollbar:{useShadows:!1,vertical:"visible",horizontal:"visible",horizontalScrollbarSize:12,verticalScrollbarSize:12},language:"html",theme:this.builder.styleDark||this.builder.styleColoredDark?"vs-dark":""})),this.builder.codeEditorExternal.onDidChangeModelContent((()=>{document.querySelector("textarea[data-source-active]").value=this.builder.codeEditorExternal.getModel().getValue()}))})),void setTimeout((()=>{this._viewHtmlExternal()}),100);const n=this.builder.monaco.editor.createModel(e.value,"html");this.builder.codeEditorExternal.setModel(n),i.style.opacity=""}view(t,e,i){this.renderPanel();const n=this.builder.util,o=this.builder.builderStuff;let s;s=this.builder.opts.htmlSyntaxHighlighting?o.querySelector(".viewhtmlmonaco"):o.querySelector(".viewhtml");let l=s.querySelector(".is-modal-content"),a=s.querySelector(".input-code-editor");a.style.opacity=.01,"full"===t?(l.style.width=this.builder.codeEditorWidth,l.style.maxWidth=this.builder.codeEditorMaxWidth,a.style.height=this.builder.codeEditorHeight):(l.style.width=this.builder.blockCodeEditorWidth,l.style.maxWidth=this.builder.blockCodeEditorMaxWidth,a.style.height=this.builder.blockCodeEditorHeight);const r=this.builder.doc.querySelector(".row-active");r&&r.classList.remove("row-active"),n.showModal(s,!0,(()=>{i&&(i.removeAttribute("data-focus"),i.focus());const t=n.cellSelected();t&&t.parentNode.classList.add("row-active")})),i&&i.setAttribute("data-focus",!0),this._view(t,e)}_view(t,e){const i=this.builder.dom,n=this.builder.util,o=this.builder.builderStuff;let s;if(this.builder.opts.htmlSyntaxHighlighting){s=o.querySelector(".viewhtmlmonaco");let i=s.querySelector(".input-code-editor");if(!i.querySelector(".monaco-editor"))return xs.init().then((t=>{this.builder.monaco=t,i.getAttribute("data-mode-id")||(this.builder.codeEditor=t.editor.create(i,{value:"",minimap:{enabled:!1},automaticLayout:!0,contextmenu:!1,fontSize:13,wordWrap:!0,scrollbar:{useShadows:!1,vertical:"visible",horizontal:"visible",horizontalScrollbarSize:12,verticalScrollbarSize:12},language:"html",theme:this.builder.styleDark||this.builder.styleColoredDark?"vs-dark":""}));let e=s.querySelector("textarea");this.builder.codeEditor.onDidChangeModelContent((()=>{e.value=this.builder.codeEditor.getModel().getValue()}))})),void setTimeout((()=>{this._view(t,e)}),100)}else s=o.querySelector(".viewhtml");let l=s.querySelector("textarea");if("cell"===t){const t=n.cellSelected();if(!t)return;let e=s.querySelector("textarea");this.builder.cleanHtmlFormatting=!0,e.value=this.readHtml(t,!0),this.builder.cleanHtmlFormatting=!1}if("row"===t){let t,e=n.cellSelected();if(t=e?e.parentNode:n.rowSelected(),!t)return;let o=s.querySelector("textarea");this.builder.cleanHtmlFormatting=!0,o.value=this.readHtml(t,!0),this.builder.cleanHtmlFormatting=!1,i.removeClass(t,"row-outline")}if("full"===t){if(e);else{const t=this.builder.doc.querySelectorAll(this.builder.opts.container);if(t.length>1){const i=n.cellSelected();e=i?i.parentNode.parentNode:t[0]}else e=t[0];if(""!==this.builder.opts.page){const t=this.builder.doc.querySelector(this.builder.opts.page);t&&(e=t)}}let t=s.querySelector("textarea");this.builder.cleanHtmlFormatting=!0,this.builder.shortenHTML?t.value=this.readHtml(e,!0):t.value=this.readHtml(e,!1),this.builder.cleanHtmlFormatting=!1}if(this.builder.opts.htmlSyntaxHighlighting){const t=this.builder.monaco.editor.createModel(l.value,"html");this.builder.codeEditor.setModel(t)}let a=o.querySelector(".is-pop.columnmore");a&&(a.style.display="");let r=o.querySelector(".is-pop.rowmore");r&&(r.style.display=""),this.builder.codeEditorMode=t,this.builder.codeEditorArea=e,s.querySelector(".input-code-editor").style.opacity=""}fromViewToActual(t){for(var e in ws)t=t.replace(e,ws[e]);return t}readHtml(t,e,i,n){const o=this.builder.dom;if(this.builder.opts.absolutePath){let e=t.querySelectorAll("a");Array.prototype.forEach.call(e,(t=>{let e=t.href;t.setAttribute("href",e)}));let i=t.querySelectorAll("img");Array.prototype.forEach.call(i,(t=>{let e=t.src;t.setAttribute("src",e)}))}this.builder.cleanHtmlFormatting;const s=this.builder.util;let l,a=document.createElement("div");a.innerHTML=t.innerHTML;let r=a.querySelectorAll("[data-html]");if(Array.prototype.forEach.call(r,(t=>{let e=1,i=t.querySelectorAll("[data-subblock]");Array.prototype.forEach.call(i,(i=>{if(i.closest(".glide__slide--clone"))return;let n=i.innerHTML;t.setAttribute("data-html-"+e,encodeURIComponent(n)),e++}))})),r=a.querySelectorAll("[data-html]"),Array.prototype.forEach.call(r,(t=>{let e=decodeURIComponent(t.getAttribute("data-html"));e=e.replace(/{id}/g,s.makeId()),t.innerHTML=e;let i=t.querySelectorAll("[data-subblock]");var n=1;Array.prototype.forEach.call(i,(e=>{e.innerHTML=void 0===t.getAttribute("data-html-"+n)?"":decodeURIComponent(t.getAttribute("data-html-"+n)),n++}))})),e&&(ws={},r=a.querySelectorAll("[data-html]"),Array.prototype.forEach.call(r,(t=>{let e=s.makeId();ws[e]=t.getAttribute("data-html"),t.setAttribute("data-html",e);for(let i=1;i<=20;i++)void 0!==t.getAttribute("data-html-"+i)&&(e=s.makeId(),ws[e]=t.getAttribute("data-html-"+i),t.getAttribute("data-html-"+i,e));void 0!==t.getAttribute("data-settings")&&(e=s.makeId(),ws[e]=t.getAttribute("data-settings"),t.getAttribute("data-settings",e))}))),this.builder.makeAbsolute){const t=t=>{let e=document.createElement("img");return e.src=t,e.setAttribute("data-absoluteurl",e.src),t=e.getAttribute("data-absoluteurl")},e=t=>{let e=document.createElement("img");e.src=t,e.setAttribute("data-absoluteurl",e.src),t=e.getAttribute("data-absoluteurl");let i=window.location.href.substring(0,window.location.href.lastIndexOf("/"));return t.replace(i,"[%PATH%]")},i=(e,i)=>{if(e.hasAttribute(i)){if("video"!==e.parentNode.tagName.toLowerCase()&&"audio"!==e.parentNode.tagName.toLowerCase())return;let n=e.getAttribute(i);n=t(n),e.setAttribute(i,`${n}`)}};let n=a.querySelectorAll("img");Array.prototype.forEach.call(n,(t=>{let e=t.src;t.setAttribute("src",e)})),a.querySelectorAll("*").forEach((n=>{if(n.style.backgroundImage){let t=n.style.backgroundImage;if(-1!==t.indexOf("url(")){let i=t.slice(4,-1).replace(/["']/g,"");i=e(i),n.style.backgroundImage=`url(${i})`}}if(i(n,"src"),i(n,"data-default"),i(n,"data-240"),i(n,"data-360"),i(n,"data-480"),i(n,"data-540"),i(n,"data-720"),i(n,"data-1080"),i(n,"data-1440"),i(n,"data-2160"),n.hasAttribute("href")){if("link"===n.tagName.toLowerCase()){let e=n.getAttribute("href");e=t(e),n.setAttribute("href",`${e}`)}if("a"===n.tagName.toLowerCase()){let e=n.getAttribute("href"),i=e.split(".").pop().split("?")[0].split("#")[0];if(i=i.toLowerCase(),"jpg"===i||"jpeg"===i||"png"===i||"gif"===i||"webm"===i||"webp"===i||"mp4"===i||"mp3"===i){let i=t(e);n.setAttribute("href",`${i}`)}}}}))}let c=a.querySelectorAll(".is-builder");Array.prototype.forEach.call(c,(t=>{t.style.transform="",t.style.WebkitTransform="",t.style.MozTransform="",t.removeAttribute("data-sort"),o.removeClass(t,"builder-active");o.elementChildren(t).forEach((t=>{o.elementChildren(t).forEach((t=>{t.style.cursor=""}))}))}));let u;if(o.elementChildren(a).forEach((t=>{t.style.cursor="";o.elementChildren(t).forEach((t=>{t.style.cursor=""}))})),u=a.querySelectorAll(".sortable-chosen, .sortable-ghost, .elm-active, .icon-active, .elm-inspected, .cell-active, .row-active, .row-outline, .is-builder"),u.forEach((t=>{t.classList.remove("sortable-chosen"),t.classList.remove("sortable-ghost"),t.classList.remove("elm-active"),t.classList.remove("icon-active"),t.classList.remove("elm-inspected"),t.classList.remove("cell-active"),t.classList.remove("row-active"),t.classList.remove("row-outline"),t.classList.remove("is-builder")})),u=a.querySelectorAll("[data-click], [contenteditable], [draggridoutline], [between-blocks-left], [between-blocks-center], [hideelementhighlight], [data-module-active], [draggable]"),u.forEach((t=>{t.removeAttribute("data-click"),t.removeAttribute("contenteditable"),t.removeAttribute("draggridoutline"),t.removeAttribute("between-blocks-left"),t.removeAttribute("between-blocks-center"),t.removeAttribute("hideelementhighlight"),t.removeAttribute("data-module-active"),t.removeAttribute("draggable")})),u=a.querySelectorAll("[data-animated], [data-saveforundo], [hidesnippetaddtool], [gray], [rowoutline], [hidecolumntool], [grayoutline], [hideoutline]"),u.forEach((t=>{t.removeAttribute("data-animated"),t.removeAttribute("data-saveforundo"),t.removeAttribute("hidesnippetaddtool"),t.removeAttribute("gray"),t.removeAttribute("rowoutline"),t.removeAttribute("hidecolumntool"),t.removeAttribute("grayoutline"),t.removeAttribute("hideoutline")})),u=a.querySelectorAll("[leftrowtool], [minimal], [clean], [grideditor], [gridoutline]"),u.forEach((t=>{t.removeAttribute("leftrowtool"),t.removeAttribute("minimal"),t.removeAttribute("clean"),t.removeAttribute("grideditor"),t.removeAttribute("gridoutline")})),u=a.querySelectorAll(".is-row-tool,.is-col-tool,.is-rowadd-tool,.is-canvas-tool,.is-canvasadd-tool,.h-ruler,.v-ruler"),u.forEach((t=>{t.previousSibling&&t.previousSibling.nodeType===Node.TEXT_NODE&&t.previousSibling.remove(),t.nextSibling&&t.nextSibling.nodeType===Node.TEXT_NODE&&t.nextSibling.remove(),t.remove()})),u=a.querySelectorAll(".ovl,.row-add-initial"),u.forEach((t=>{t.remove()})),this.builder.cleanAOS&&(u=a.querySelectorAll(".aos-init, .aos-animate"),u.forEach((t=>{t.classList.remove("aos-init"),t.classList.remove("aos-animate")}))),u=a.querySelectorAll(".skrollable, .skrollable-after, .skrollable-before, .skrollable-between, .is-inview"),u.forEach((t=>{t.classList.remove("skrollable"),t.classList.remove("skrollable-after"),t.classList.remove("skrollable-before"),t.classList.remove("skrollable-between"),t.classList.remove("is-inview")})),a.querySelectorAll('[class=""]').forEach((t=>{t.removeAttribute("class")})),a.querySelectorAll(".is-row-overlay").forEach((t=>{t.hasAttribute("style")||t.parentNode.removeChild(t)})),o.removeEmptyStyle(a),u=a.querySelectorAll("[data-keep]"),o.removeAttributes(u,"data-keep"),a.querySelectorAll("a").forEach((t=>{"inline-block"===t.style.display&&1===t.parentNode.childElementCount&&"span"===t.parentNode.tagName.toLowerCase()&&(t.parentNode.outerHTML=t.parentNode.innerHTML)})),n){a.querySelectorAll("[data-html]").forEach((t=>{t.innerHTML=""}))}if(a.querySelectorAll("[data-cb-type]").forEach((t=>{const e=t.getAttribute("data-cb-original-content");if(e){t.innerHTML=e,t.removeAttribute("data-cb-original-content"),Array.from(t.attributes).forEach((e=>{const i=e.name;i.startsWith("data-cb-")&&i.endsWith("-initialized")&&t.removeAttribute(i)}));const i=t.querySelectorAll(".is-container");Array.from(i).forEach((t=>{t.removeAttribute("data-sort"),t.classList.remove("is-builder")}));const n=t.getAttribute("data-cb-type");t.classList.remove(`cb-${n}`)}let i;t.removeAttribute("data-cb-loaded"),t.classList.contains("grid-sortable")&&(i=t),t.querySelector(".grid-sortable")&&(i=t.querySelector(".grid-sortable")),t.removeAttribute("id"),i&&Array.from(i.children).forEach((t=>{t.removeAttribute("data-index"),t.removeAttribute("data-item-id")}));let n=t.querySelectorAll("[data-item-id],[data-slide-id],[contenteditable]");n.forEach((t=>{t.removeAttribute("data-item-id"),t.removeAttribute("data-slide-id"),t.removeAttribute("contenteditable")})),t.querySelectorAll(".edit").forEach((t=>{t.removeAttribute("data-edit-id")})),n=t.querySelectorAll("[data-scroll], [data-scroll-once]"),n.forEach((t=>{t.removeAttribute("data-scroll"),t.removeAttribute("data-scroll-once")})),n=t.querySelectorAll(".elm-active, .icon-active"),n.forEach((t=>{t.classList.remove("elm-active"),t.classList.remove("icon-active")}));t.querySelectorAll('[contenteditable="true"]').forEach((t=>t.removeAttribute("contenteditable")))})),l="",i){u=a.querySelectorAll(".is-dummy"),u.forEach((t=>{t.remove()})),u=a.querySelectorAll("[data-scroll], [data-scroll-once]"),u.forEach((t=>{t.removeAttribute("data-scroll"),t.removeAttribute("data-scroll-once")})),this.builder.shortenOutput&&(u=a.querySelectorAll("[data-noedit], [data-module], [data-module-desc], [data-dialog-width], [data-dialog-height], [data-html], [data-settings]"),u.forEach((t=>{t.removeAttribute("data-noedit"),t.removeAttribute("data-module"),t.removeAttribute("data-module-desc"),t.removeAttribute("data-dialog-width"),t.removeAttribute("data-dialog-height"),t.removeAttribute("data-html"),t.removeAttribute("data-settings")})),u=a.querySelectorAll("[data-html-1], [data-html-2], [data-html-3], [data-html-4], [data-html-5], [data-html-6], [data-html-7], [data-html-8], [data-html-9], [data-html-10]"),u.forEach((t=>{t.removeAttribute("data-html-1"),t.removeAttribute("data-html-2"),t.removeAttribute("data-html-3"),t.removeAttribute("data-html-4"),t.removeAttribute("data-html-5"),t.removeAttribute("data-html-6"),t.removeAttribute("data-html-7"),t.removeAttribute("data-html-8"),t.removeAttribute("data-html-9"),t.removeAttribute("data-html-10")}))),u=a.querySelectorAll("[data-bottom-top],[data-center],[data-center-bottom],[data-100-top],[data-50-top],[data-top],[data-top-bottom],[data-center-top],[data--300-bottom],[data--150-bottom],[data--50-bottom],[data-bottom],[data-100-bottom],[data-150-bottom],[data-400-bottom],[data--400-bottom],[data--200-bottom],[data--100-bottom],[data-50-bottom],[data-200-bottom],[data-300-bottom],[data-in],[data-in-150],[data-in-300],[data-cen--150],[data-cen],[data-cen-150],[data-out--300],[data-out--150],[data-out][data-t],[data-t-100],[data-t-200],[data-t-300],[data-t-400],[data-t-500],[data-t-600],[data-t-700],[data-t-800],[data-t-900],[data-t-1000],[data-t-1100],[data-t-1200],[data-t-1300],[data-t-1400],[data-t-1500],[data-t-1600],[data-t-1700],[data-t-1800],[data-t-1900],[data-t-2000],[data-t-2100],[data-t-2200],[data-t-2300],[data-t-2400],[data-t-2500],[data-t-2600],[data-t-2700],[data-t-2800]"),Array.prototype.forEach.call(u,(t=>{t.style.transition="",t.style.transform="",t.style.opacity=""})),u=a.querySelectorAll(".is-animated"),Array.prototype.forEach.call(u,(t=>{o.removeClass(t,"animated"),o.removeClass(t,"pulse"),o.removeClass(t,"bounceIn"),o.removeClass(t,"fadeIn"),o.removeClass(t,"fadeOut"),o.removeClass(t,"fadeInDown"),o.removeClass(t,"fadeInLeft"),o.removeClass(t,"fadeInRight"),o.removeClass(t,"fadeInUp"),o.removeClass(t,"flipInX"),o.removeClass(t,"flipInY"),o.removeClass(t,"slideInUp"),o.removeClass(t,"slideInDown"),o.removeClass(t,"slideInLeft"),o.removeClass(t,"slideInRight"),o.removeClass(t,"zoomIn"),t.style.animationDelay="",t.style.transitionDelay="",t.style.transitionDuration="",t.style.transitionTimingFunction="",t.style.transitionProperty=""}));let t=a.querySelectorAll('[style=""]');Array.prototype.forEach.call(t,(t=>{t.removeAttribute("style")})),u=a.querySelectorAll(".is-appeared, .box-active, .section-active, .section-select, .box-select"),u.forEach((t=>{t.classList.remove("is-appeared"),t.classList.remove("box-active"),t.classList.remove("section-active"),t.classList.remove("section-select"),t.classList.remove("box-select")})),u=a.querySelectorAll(".is-section-tool, .is-box-tool, .is-box-info, .is-section-info"),u.forEach((t=>{t.previousSibling&&t.previousSibling.nodeType===Node.TEXT_NODE&&t.previousSibling.remove(),t.nextSibling&&t.nextSibling.nodeType===Node.TEXT_NODE&&t.nextSibling.remove(),t.remove()})),u=a.querySelectorAll(".is-block .handle, .is-block .rotate-handle"),o.removeElements(u),u=a.querySelectorAll(".is-block"),Array.prototype.forEach.call(u,(t=>{o.removeClass(t,"active"),o.removeClass(t,"multi"),o.removeClass(t,"editable"),o.removeClass(t,"fluid"),o.removeClass(t,"cloned"),t.removeAttribute("data-fluid-val"),t.removeAttribute("data-fluid"),t.removeAttribute("data-prev")})),a.querySelectorAll(".is-block.clone").forEach((t=>t.parentNode.removeChild(t)));var d="",b="",p="";o.elementChildren(a).forEach((t=>{let e=t;if(o.hasClass(e,"is-section")){var i="";e.getAttribute("class")&&(i=' class="'+e.getAttribute("class")+'"');var n=e.cloneNode(!0),s=n.outerHTML;l+=s,-1===i.indexOf("is-static")?d+=s+"\n\n":b+=s+"\n\n"}else s=(n=e.cloneNode(!0)).outerHTML,l+=s,p+=s}));let e=document.querySelector("[data-contentbox]"),i=!1;e&&(i=e.settings.disableStaticSection),i||(l=d+b+p),l=a.innerHTML.trim(),l=l.replace(/<font/g,"<span").replace(/<\/font/g,"</span")}else{let t=a.querySelectorAll('[style=""]');Array.prototype.forEach.call(t,(t=>{t.removeAttribute("style")})),this.builder.shortenOutput&&(u=a.querySelectorAll("[data-noedit], [data-module], [data-module-desc], [data-dialog-width], [data-dialog-height], [data-html], [data-settings]"),u.forEach((t=>{t.removeAttribute("data-noedit"),t.removeAttribute("data-module"),t.removeAttribute("data-module-desc"),t.removeAttribute("data-dialog-width"),t.removeAttribute("data-dialog-height"),t.removeAttribute("data-html"),t.removeAttribute("data-settings")})),u=a.querySelectorAll("[data-html-1], [data-html-2], [data-html-3], [data-html-4], [data-html-5], [data-html-6], [data-html-7], [data-html-8], [data-html-9], [data-html-10]"),u.forEach((t=>{t.removeAttribute("data-html-1"),t.removeAttribute("data-html-2"),t.removeAttribute("data-html-3"),t.removeAttribute("data-html-4"),t.removeAttribute("data-html-5"),t.removeAttribute("data-html-6"),t.removeAttribute("data-html-7"),t.removeAttribute("data-html-8"),t.removeAttribute("data-html-9"),t.removeAttribute("data-html-10")}))),u=a.querySelectorAll(".is-block .handle, .is-block .rotate-handle"),o.removeElements(u),u=a.querySelectorAll(".is-block"),Array.prototype.forEach.call(u,(t=>{o.removeClass(t,"active"),o.removeClass(t,"multi"),o.removeClass(t,"editable"),o.removeClass(t,"fluid"),o.removeClass(t,"cloned"),t.removeAttribute("data-fluid-val"),t.removeAttribute("data-fluid"),t.removeAttribute("data-prev")})),a.querySelectorAll(".is-block.clone").forEach((t=>t.parentNode.removeChild(t))),l=a.innerHTML.trim(),l=l.replace(/<font/g,"<span").replace(/<\/font/g,"</span")}let h=zo.html;return l=h(l),l=l.replace(/(\r\n|\r|\n){3,}/g,"$1\n"),l}beautify(t){return t=(t=(0,zo.html)(t)).replace(/(\r\n|\r|\n){3,}/g,"$1\n")}}class ks{constructor(t){this.builder=t;const e=this.builder.dom;this.dom=e,this.undoList=[]}readStyles(){if(this.builder.opts.undoContainerOnly)return"";let t,e,i="",n=this.builder.doc.getElementsByTagName("link");for(t=0;t<n.length;t++)e=n[t].href.toLowerCase(),-1!==e.indexOf("basetype-")&&(i+=n[t].outerHTML);for(n=this.builder.doc.getElementsByTagName("link"),t=0;t<n.length;t++)e=n[t].href.toLowerCase(),-1!==e.indexOf("basetype-")||-1!==e.indexOf("type-")&&(i+=n[t].outerHTML);return i}writeStyles(t){const e=this.dom;if(this.builder.opts.undoContainerOnly)return;let i,n,o=this.builder.doc.getElementsByTagName("link");for(i=0;i<o.length;i++)n=o[i].href.toLowerCase(),(-1!==n.indexOf("basetype-")||-1!==n.indexOf("type-"))&&o[i].parentNode.removeChild(o[i]);let s=this.builder.doc.getElementsByTagName("head")[0];e.appendHtml(s,t)}readHtml(){if(""===this.builder.opts.page||this.builder.opts.undoContainerOnly){if(this.builder.docContainer){return this.builder.doc.querySelector(this.builder.docContainer).innerHTML}{const t=this.builder.doc.querySelectorAll(this.builder.opts.container);let e="";return Array.prototype.forEach.call(t,(t=>{e+=t.innerHTML+"####|####"})),e=e.substr(0,e.length-9),e}}return this.builder.doc.querySelector(this.builder.opts.page).innerHTML}cleaning(t){const e=this.dom;let i=t.querySelectorAll(".is-builder");Array.prototype.forEach.call(i,(t=>{t.removeAttribute("data-sort")}));let n=t.querySelectorAll("[data-click]");e.removeAttributes(n,"data-click"),e.removeElements(t.querySelectorAll(".is-row-tool")),e.removeElements(t.querySelectorAll(".is-rowadd-tool")),e.removeElements(t.querySelectorAll(".is-col-tool")),e.removeElements(t.querySelectorAll(".is-canvas-tool")),e.removeElements(t.querySelectorAll(".is-canvasadd-tool")),e.removeElements(t.querySelectorAll(".ovl")),e.removeElements(t.querySelectorAll(".row-add-initial")),e.removeElements(t.querySelectorAll(".h-ruler")),e.removeElements(t.querySelectorAll(".v-ruler")),n=t.querySelectorAll(".is-block .handle, .is-block .rotate-handle"),e.removeElements(n),n=t.querySelectorAll(".is-block"),Array.prototype.forEach.call(n,(t=>{e.removeClass(t,"active"),e.removeClass(t,"multi"),e.removeClass(t,"editable"),e.removeClass(t,"fluid"),e.removeClass(t,"cloned"),t.removeAttribute("data-fluid-val"),t.removeAttribute("data-fluid"),t.removeAttribute("data-prev")})),t.querySelectorAll(".is-block.clone").forEach((t=>t.parentNode.removeChild(t))),n=t.querySelectorAll(".is-section-tool"),e.removeElements(n)}writeHtml(t){if(""===this.builder.opts.page||this.builder.opts.undoContainerOnly)if(this.builder.docContainer){let e=this.builder.doc.querySelector(this.builder.docContainer),i=document.createRange();e.innerHTML="",e.appendChild(i.createContextualFragment(t)),this.cleaning(e)}else{const e=this.builder.doc.querySelectorAll(this.builder.opts.container);let i=0;Array.prototype.forEach.call(e,(e=>{var n=document.createRange();e.innerHTML="",e.appendChild(n.createContextualFragment(t.split("####|####")[i])),this.cleaning(e),this.builder.applyBehaviorOn(e),i++}))}else{let e=this.builder.doc.querySelector(this.builder.opts.page),i=document.createRange();e.innerHTML="",e.appendChild(i.createContextualFragment(t)),this.cleaning(e)}this.builder.opts.onRender()}saveForUndo(t){if(this.builder.onBeforeSaveForUndo&&this.builder.onBeforeSaveForUndo(),this.builder.undoRedoStyles){if(this.undoList[120]){let e=this.undoList[120][0].split("###$###")[1];if(this.builder.saveForUndoCheck&&e===this.readHtml())return void(this.builder.saveForUndoCheck=!0===t)}}else if(this.undoList[120]){let e=this.undoList[120][0];if(this.builder.saveForUndoCheck&&e===this.readHtml())return void(this.builder.saveForUndoCheck=!0===t)}if(this.builder.saveForUndoCheck=!0===t,this.undoList[140]=this.undoList[139],this.undoList[139]=this.undoList[138],this.undoList[138]=this.undoList[137],this.undoList[137]=this.undoList[136],this.undoList[136]=this.undoList[135],this.undoList[135]=this.undoList[134],this.undoList[134]=this.undoList[133],this.undoList[133]=this.undoList[132],this.undoList[132]=this.undoList[131],this.undoList[131]=this.undoList[130],this.undoList[130]=this.undoList[129],this.undoList[129]=this.undoList[128],this.undoList[128]=this.undoList[127],this.undoList[127]=this.undoList[126],this.undoList[126]=this.undoList[125],this.undoList[125]=this.undoList[124],this.undoList[124]=this.undoList[123],this.undoList[123]=this.undoList[122],this.undoList[122]=this.undoList[121],this.undoList[121]=this.undoList[120],this.builder.undoRedoStyles){let t=" "+this.readStyles()+"###$###"+this.readHtml();this.undoList[120]=[t,null]}else this.undoList[120]=[this.readHtml(),null]}doUndo(){const t=this.dom;if(!this.undoList[120])return;if(!0===this.builder.undoRedoInProcess)return;if(this.builder.undoRedoInProcess=!0,this.undoList[99]=this.undoList[100],this.undoList[100]=this.undoList[101],this.undoList[101]=this.undoList[102],this.undoList[102]=this.undoList[103],this.undoList[103]=this.undoList[104],this.undoList[104]=this.undoList[105],this.undoList[105]=this.undoList[106],this.undoList[106]=this.undoList[107],this.undoList[107]=this.undoList[108],this.undoList[108]=this.undoList[109],this.undoList[109]=this.undoList[110],this.undoList[110]=this.undoList[111],this.undoList[111]=this.undoList[112],this.undoList[112]=this.undoList[113],this.undoList[113]=this.undoList[114],this.undoList[114]=this.undoList[115],this.undoList[115]=this.undoList[116],this.undoList[116]=this.undoList[117],this.undoList[117]=this.undoList[118],this.undoList[118]=this.undoList[119],this.builder.undoRedoStyles){let t=this.readStyles(),e=this.readHtml(),i=" "+t+"###$###"+e;this.undoList[119]=[i,null],i=this.undoList[120][0],t=i.split("###$###")[0].trim(),e=i.split("###$###")[1],this.writeStyles(t),this.writeHtml(e)}else{this.undoList[119]=[this.readHtml(),null];let t=this.undoList[120][0];this.writeHtml(t)}this.builder.applyBehavior(),this.builder.applyBehaviorCanvas(),this.builder.opts.onChange(),this.undoList[120]=this.undoList[121],this.undoList[121]=this.undoList[122],this.undoList[122]=this.undoList[123],this.undoList[123]=this.undoList[124],this.undoList[124]=this.undoList[125],this.undoList[125]=this.undoList[126],this.undoList[126]=this.undoList[127],this.undoList[127]=this.undoList[128],this.undoList[128]=this.undoList[129],this.undoList[129]=this.undoList[130],this.undoList[130]=this.undoList[131],this.undoList[131]=this.undoList[132],this.undoList[132]=this.undoList[133],this.undoList[133]=this.undoList[134],this.undoList[134]=this.undoList[135],this.undoList[135]=this.undoList[136],this.undoList[136]=this.undoList[137],this.undoList[137]=this.undoList[138],this.undoList[138]=this.undoList[139],this.undoList[139]=this.undoList[140],this.undoList[140]=this.undoList[141];const e=new We(this.builder);e.clearActiveCell(),e.clearAfterUndoRedo();let i=this.builder.doc.querySelector("[data-saveforundo]");if(i){let e=document.querySelector(".is-side.elementstyles");t.addClass(e,"active"),setTimeout((()=>{i.click()}),700)}else{let e=document.querySelector(".is-side.elementstyles");t.removeClass(e,"active")}this.builder.opts.onUndo&&this.builder.opts.onUndo(),this.builder.undoRedoInProcess=!1}doRedo(){const t=this.dom;if(!this.undoList[119])return;if(!0===this.builder.undoRedoInProcess)return;if(this.builder.undoRedoInProcess=!0,this.undoList[141]=this.undoList[140],this.undoList[140]=this.undoList[139],this.undoList[139]=this.undoList[138],this.undoList[138]=this.undoList[137],this.undoList[137]=this.undoList[136],this.undoList[136]=this.undoList[135],this.undoList[135]=this.undoList[134],this.undoList[134]=this.undoList[133],this.undoList[133]=this.undoList[132],this.undoList[132]=this.undoList[131],this.undoList[131]=this.undoList[130],this.undoList[130]=this.undoList[129],this.undoList[129]=this.undoList[128],this.undoList[128]=this.undoList[127],this.undoList[127]=this.undoList[126],this.undoList[126]=this.undoList[125],this.undoList[125]=this.undoList[124],this.undoList[124]=this.undoList[123],this.undoList[123]=this.undoList[122],this.undoList[122]=this.undoList[121],this.undoList[121]=this.undoList[120],this.builder.undoRedoStyles){let t=this.readStyles(),e=this.readHtml(),i=" "+t+"###$###"+e;this.undoList[120]=[i,null],i=this.undoList[119][0],t=i.split("###$###")[0].trim(),e=i.split("###$###")[1],this.writeStyles(t),this.writeHtml(e)}else{this.undoList[120]=[this.readHtml(),null];let t=this.undoList[119][0];this.writeHtml(t)}this.builder.applyBehavior(),this.builder.applyBehaviorCanvas(),this.builder.opts.onChange(),this.undoList[119]=this.undoList[118],this.undoList[118]=this.undoList[117],this.undoList[117]=this.undoList[116],this.undoList[116]=this.undoList[115],this.undoList[115]=this.undoList[114],this.undoList[114]=this.undoList[113],this.undoList[113]=this.undoList[112],this.undoList[112]=this.undoList[111],this.undoList[111]=this.undoList[110],this.undoList[110]=this.undoList[109],this.undoList[109]=this.undoList[108],this.undoList[108]=this.undoList[107],this.undoList[107]=this.undoList[106],this.undoList[106]=this.undoList[105],this.undoList[105]=this.undoList[104],this.undoList[104]=this.undoList[103],this.undoList[103]=this.undoList[102],this.undoList[102]=this.undoList[101],this.undoList[101]=this.undoList[100],this.undoList[100]=this.undoList[99],this.undoList[99]=null;const e=new We(this.builder);e.clearActiveCell(),e.clearAfterUndoRedo();let i=this.builder.doc.querySelector("[data-saveforundo]");if(i){let e=document.querySelector(".is-side.elementstyles");t.addClass(e,"active"),setTimeout((()=>{i.click()}),700)}else{let e=document.querySelector(".is-side.elementstyles");t.removeClass(e,"active")}this.builder.opts.onRedo&&this.builder.opts.onRedo(),this.builder.undoRedoInProcess=!1}}
20
20
  /*!
21
21
  Ionicons
22
22
  License: MIT
@@ -146,4 +146,4 @@ const Mm={variantFlipOrder:{start:"sme",middle:"mse",end:"ems"},positionFlipOrde
146
146
  * @author RubaXa <trash@rubaxa.org>
147
147
  * @author owenm <owen23355@gmail.com>
148
148
  * @license MIT
149
- */function nS(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function oS(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?nS(Object(i),!0).forEach((function(e){lS(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):nS(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function sS(t){return sS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sS(t)}function lS(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function aS(){return aS=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},aS.apply(this,arguments)}function rS(t,e){if(null==t)return{};var i,n,o=function(t,e){if(null==t)return{};var i,n,o={},s=Object.keys(t);for(n=0;n<s.length;n++)i=s[n],e.indexOf(i)>=0||(o[i]=t[i]);return o}(t,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(n=0;n<s.length;n++)i=s[n],e.indexOf(i)>=0||Object.prototype.propertyIsEnumerable.call(t,i)&&(o[i]=t[i])}return o}function cS(t){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(t)}var uS=cS(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),dS=cS(/Edge/i),bS=cS(/firefox/i),pS=cS(/safari/i)&&!cS(/chrome/i)&&!cS(/android/i),hS=cS(/iP(ad|od|hone)/i),gS=cS(/chrome/i)&&cS(/android/i),mS={capture:!1,passive:!1};function fS(t,e,i){t.addEventListener(e,i,!uS&&mS)}function vS(t,e,i){t.removeEventListener(e,i,!uS&&mS)}function yS(t,e){if(e){if(">"===e[0]&&(e=e.substring(1)),t)try{if(t.matches)return t.matches(e);if(t.msMatchesSelector)return t.msMatchesSelector(e);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(e)}catch(t){return!1}return!1}}function xS(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function wS(t,e,i,n){if(t){i=i||document;do{if(null!=e&&(">"===e[0]?t.parentNode===i&&yS(t,e):yS(t,e))||n&&t===i)return t;if(t===i)break}while(t=xS(t))}return null}var SS,kS=/\s+/g;function _S(t,e,i){if(t&&e)if(t.classList)t.classList[i?"add":"remove"](e);else{var n=(" "+t.className+" ").replace(kS," ").replace(" "+e+" "," ");t.className=(n+(i?" "+e:"")).replace(kS," ")}}function CS(t,e,i){var n=t&&t.style;if(n){if(void 0===i)return document.defaultView&&document.defaultView.getComputedStyle?i=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(i=t.currentStyle),void 0===e?i:i[e];e in n||-1!==e.indexOf("webkit")||(e="-webkit-"+e),n[e]=i+("string"==typeof i?"":"px")}}function LS(t,e){var i="";if("string"==typeof t)i=t;else do{var n=CS(t,"transform");n&&"none"!==n&&(i=n+" "+i)}while(!e&&(t=t.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(i)}function AS(t,e,i){if(t){var n=t.getElementsByTagName(e),o=0,s=n.length;if(i)for(;o<s;o++)i(n[o],o);return n}return[]}function ES(){var t=document.scrollingElement;return t||document.documentElement}function qS(t,e,i,n,o){if(t.getBoundingClientRect||t===window){var s,l,a,r,c,u,d;if(t!==window&&t.parentNode&&t!==ES()?(l=(s=t.getBoundingClientRect()).top,a=s.left,r=s.bottom,c=s.right,u=s.height,d=s.width):(l=0,a=0,r=window.innerHeight,c=window.innerWidth,u=window.innerHeight,d=window.innerWidth),(e||i)&&t!==window&&(o=o||t.parentNode,!uS))do{if(o&&o.getBoundingClientRect&&("none"!==CS(o,"transform")||i&&"static"!==CS(o,"position"))){var b=o.getBoundingClientRect();l-=b.top+parseInt(CS(o,"border-top-width")),a-=b.left+parseInt(CS(o,"border-left-width")),r=l+s.height,c=a+s.width;break}}while(o=o.parentNode);if(n&&t!==window){var p=LS(o||t),h=p&&p.a,g=p&&p.d;p&&(r=(l/=g)+(u/=g),c=(a/=h)+(d/=h))}return{top:l,left:a,bottom:r,right:c,width:d,height:u}}}function TS(t,e,i){for(var n=$S(t,!0),o=qS(t)[e];n;){var s=qS(n)[i];if(!("top"===i||"left"===i?o>=s:o<=s))return n;if(n===ES())break;n=$S(n,!1)}return!1}function MS(t,e,i,n){for(var o=0,s=0,l=t.children;s<l.length;){if("none"!==l[s].style.display&&l[s]!==Dk.ghost&&(n||l[s]!==Dk.dragged)&&wS(l[s],i.draggable,t,!1)){if(o===e)return l[s];o++}s++}return null}function RS(t,e){for(var i=t.lastElementChild;i&&(i===Dk.ghost||"none"===CS(i,"display")||e&&!yS(i,e));)i=i.previousElementSibling;return i||null}function IS(t,e){var i=0;if(!t||!t.parentNode)return-1;for(;t=t.previousElementSibling;)"TEMPLATE"===t.nodeName.toUpperCase()||t===Dk.clone||e&&!yS(t,e)||i++;return i}function OS(t){var e=0,i=0,n=ES();if(t)do{var o=LS(t),s=o.a,l=o.d;e+=t.scrollLeft*s,i+=t.scrollTop*l}while(t!==n&&(t=t.parentNode));return[e,i]}function $S(t,e){if(!t||!t.getBoundingClientRect)return ES();var i=t,n=!1;do{if(i.clientWidth<i.scrollWidth||i.clientHeight<i.scrollHeight){var o=CS(i);if(i.clientWidth<i.scrollWidth&&("auto"==o.overflowX||"scroll"==o.overflowX)||i.clientHeight<i.scrollHeight&&("auto"==o.overflowY||"scroll"==o.overflowY)){if(!i.getBoundingClientRect||i===document.body)return ES();if(n||e)return i;n=!0}}}while(i=i.parentNode);return ES()}function BS(t,e){return Math.round(t.top)===Math.round(e.top)&&Math.round(t.left)===Math.round(e.left)&&Math.round(t.height)===Math.round(e.height)&&Math.round(t.width)===Math.round(e.width)}function zS(t,e){return function(){if(!SS){var i=arguments,n=this;1===i.length?t.call(n,i[0]):t.apply(n,i),SS=setTimeout((function(){SS=void 0}),e)}}}function PS(t,e,i){t.scrollLeft+=e,t.scrollTop+=i}function DS(t){var e=window.Polymer,i=window.jQuery||window.Zepto;return e&&e.dom?e.dom(t).cloneNode(!0):i?i(t).clone(!0)[0]:t.cloneNode(!0)}function NS(t,e,i){var n={};return Array.from(t.children).forEach((function(o){var s,l,a,r;if(wS(o,e.draggable,t,!1)&&!o.animated&&o!==i){var c=qS(o);n.left=Math.min(null!==(s=n.left)&&void 0!==s?s:1/0,c.left),n.top=Math.min(null!==(l=n.top)&&void 0!==l?l:1/0,c.top),n.right=Math.max(null!==(a=n.right)&&void 0!==a?a:-1/0,c.right),n.bottom=Math.max(null!==(r=n.bottom)&&void 0!==r?r:-1/0,c.bottom)}})),n.width=n.right-n.left,n.height=n.bottom-n.top,n.x=n.left,n.y=n.top,n}var HS="Sortable"+(new Date).getTime();function jS(){var t,e=[];return{captureAnimationState:function(){(e=[],this.options.animation)&&[].slice.call(this.el.children).forEach((function(t){if("none"!==CS(t,"display")&&t!==Dk.ghost){e.push({target:t,rect:qS(t)});var i=oS({},e[e.length-1].rect);if(t.thisAnimationDuration){var n=LS(t,!0);n&&(i.top-=n.f,i.left-=n.e)}t.fromRect=i}}))},addAnimationState:function(t){e.push(t)},removeAnimationState:function(t){e.splice(function(t,e){for(var i in t)if(t.hasOwnProperty(i))for(var n in e)if(e.hasOwnProperty(n)&&e[n]===t[i][n])return Number(i);return-1}(e,{target:t}),1)},animateAll:function(i){var n=this;if(!this.options.animation)return clearTimeout(t),void("function"==typeof i&&i());var o=!1,s=0;e.forEach((function(t){var e=0,i=t.target,l=i.fromRect,a=qS(i),r=i.prevFromRect,c=i.prevToRect,u=t.rect,d=LS(i,!0);d&&(a.top-=d.f,a.left-=d.e),i.toRect=a,i.thisAnimationDuration&&BS(r,a)&&!BS(l,a)&&(u.top-a.top)/(u.left-a.left)==(l.top-a.top)/(l.left-a.left)&&(e=function(t,e,i,n){return Math.sqrt(Math.pow(e.top-t.top,2)+Math.pow(e.left-t.left,2))/Math.sqrt(Math.pow(e.top-i.top,2)+Math.pow(e.left-i.left,2))*n.animation}(u,r,c,n.options)),BS(a,l)||(i.prevFromRect=l,i.prevToRect=a,e||(e=n.options.animation),n.animate(i,u,a,e)),e&&(o=!0,s=Math.max(s,e),clearTimeout(i.animationResetTimer),i.animationResetTimer=setTimeout((function(){i.animationTime=0,i.prevFromRect=null,i.fromRect=null,i.prevToRect=null,i.thisAnimationDuration=null}),e),i.thisAnimationDuration=e)})),clearTimeout(t),o?t=setTimeout((function(){"function"==typeof i&&i()}),s):"function"==typeof i&&i(),e=[]},animate:function(t,e,i,n){if(n){CS(t,"transition",""),CS(t,"transform","");var o=LS(this.el),s=o&&o.a,l=o&&o.d,a=(e.left-i.left)/(s||1),r=(e.top-i.top)/(l||1);t.animatingX=!!a,t.animatingY=!!r,CS(t,"transform","translate3d("+a+"px,"+r+"px,0)"),this.forRepaintDummy=function(t){return t.offsetWidth}(t),CS(t,"transition","transform "+n+"ms"+(this.options.easing?" "+this.options.easing:"")),CS(t,"transform","translate3d(0,0,0)"),"number"==typeof t.animated&&clearTimeout(t.animated),t.animated=setTimeout((function(){CS(t,"transition",""),CS(t,"transform",""),t.animated=!1,t.animatingX=!1,t.animatingY=!1}),n)}}}}var FS=[],US={initializeByDefault:!0},WS={mount:function(t){for(var e in US)US.hasOwnProperty(e)&&!(e in t)&&(t[e]=US[e]);FS.forEach((function(e){if(e.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")})),FS.push(t)},pluginEvent:function(t,e,i){var n=this;this.eventCanceled=!1,i.cancel=function(){n.eventCanceled=!0};var o=t+"Global";FS.forEach((function(n){e[n.pluginName]&&(e[n.pluginName][o]&&e[n.pluginName][o](oS({sortable:e},i)),e.options[n.pluginName]&&e[n.pluginName][t]&&e[n.pluginName][t](oS({sortable:e},i)))}))},initializePlugins:function(t,e,i,n){for(var o in FS.forEach((function(n){var o=n.pluginName;if(t.options[o]||n.initializeByDefault){var s=new n(t,e,t.options);s.sortable=t,s.options=t.options,t[o]=s,aS(i,s.defaults)}})),t.options)if(t.options.hasOwnProperty(o)){var s=this.modifyOption(t,o,t.options[o]);void 0!==s&&(t.options[o]=s)}},getEventProperties:function(t,e){var i={};return FS.forEach((function(n){"function"==typeof n.eventProperties&&aS(i,n.eventProperties.call(e[n.pluginName],t))})),i},modifyOption:function(t,e,i){var n;return FS.forEach((function(o){t[o.pluginName]&&o.optionListeners&&"function"==typeof o.optionListeners[e]&&(n=o.optionListeners[e].call(t[o.pluginName],i))})),n}};var GS=["evt"],YS=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=i.evt,o=rS(i,GS);WS.pluginEvent.bind(Dk)(t,e,oS({dragEl:VS,parentEl:KS,ghostEl:ZS,rootEl:QS,nextEl:JS,lastDownEl:tk,cloneEl:ek,cloneHidden:ik,dragStarted:gk,putSortable:rk,activeSortable:Dk.active,originalEvent:n,oldIndex:nk,oldDraggableIndex:sk,newIndex:ok,newDraggableIndex:lk,hideGhostForTarget:$k,unhideGhostForTarget:Bk,cloneNowHidden:function(){ik=!0},cloneNowShown:function(){ik=!1},dispatchSortableEvent:function(t){XS({sortable:e,name:t,originalEvent:n})}},o))};function XS(t){!function(t){var e=t.sortable,i=t.rootEl,n=t.name,o=t.targetEl,s=t.cloneEl,l=t.toEl,a=t.fromEl,r=t.oldIndex,c=t.newIndex,u=t.oldDraggableIndex,d=t.newDraggableIndex,b=t.originalEvent,p=t.putSortable,h=t.extraEventProperties;if(e=e||i&&i[HS]){var g,m=e.options,f="on"+n.charAt(0).toUpperCase()+n.substr(1);!window.CustomEvent||uS||dS?(g=document.createEvent("Event")).initEvent(n,!0,!0):g=new CustomEvent(n,{bubbles:!0,cancelable:!0}),g.to=l||i,g.from=a||i,g.item=o||i,g.clone=s,g.oldIndex=r,g.newIndex=c,g.oldDraggableIndex=u,g.newDraggableIndex=d,g.originalEvent=b,g.pullMode=p?p.lastPutMode:void 0;var v=oS(oS({},h),WS.getEventProperties(n,e));for(var y in v)g[y]=v[y];i&&i.dispatchEvent(g),m[f]&&m[f].call(e,g)}}(oS({putSortable:rk,cloneEl:ek,targetEl:VS,rootEl:QS,oldIndex:nk,oldDraggableIndex:sk,newIndex:ok,newDraggableIndex:lk},t))}var VS,KS,ZS,QS,JS,tk,ek,ik,nk,ok,sk,lk,ak,rk,ck,uk,dk,bk,pk,hk,gk,mk,fk,vk,yk,xk=!1,wk=!1,Sk=[],kk=!1,_k=!1,Ck=[],Lk=!1,Ak=[],Ek="undefined"!=typeof document,qk=hS,Tk=dS||uS?"cssFloat":"float",Mk=Ek&&!gS&&!hS&&"draggable"in document.createElement("div"),Rk=function(){if(Ek){if(uS)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto","auto"===t.style.pointerEvents}}(),Ik=function(t,e){var i=CS(t),n=parseInt(i.width)-parseInt(i.paddingLeft)-parseInt(i.paddingRight)-parseInt(i.borderLeftWidth)-parseInt(i.borderRightWidth),o=MS(t,0,e),s=MS(t,1,e),l=o&&CS(o),a=s&&CS(s),r=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+qS(o).width,c=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+qS(s).width;if("flex"===i.display)return"column"===i.flexDirection||"column-reverse"===i.flexDirection?"vertical":"horizontal";if("grid"===i.display)return i.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(o&&l.float&&"none"!==l.float){var u="left"===l.float?"left":"right";return!s||"both"!==a.clear&&a.clear!==u?"horizontal":"vertical"}return o&&("block"===l.display||"flex"===l.display||"table"===l.display||"grid"===l.display||r>=n&&"none"===i[Tk]||s&&"none"===i[Tk]&&r+c>n)?"vertical":"horizontal"},Ok=function(t){function e(t,i){return function(n,o,s,l){var a=n.options.group.name&&o.options.group.name&&n.options.group.name===o.options.group.name;if(null==t&&(i||a))return!0;if(null==t||!1===t)return!1;if(i&&"clone"===t)return t;if("function"==typeof t)return e(t(n,o,s,l),i)(n,o,s,l);var r=(i?n:o).options.group.name;return!0===t||"string"==typeof t&&t===r||t.join&&t.indexOf(r)>-1}}var i={},n=t.group;n&&"object"==sS(n)||(n={name:n}),i.name=n.name,i.checkPull=e(n.pull,!0),i.checkPut=e(n.put),i.revertClone=n.revertClone,t.group=i},$k=function(){!Rk&&ZS&&CS(ZS,"display","none")},Bk=function(){!Rk&&ZS&&CS(ZS,"display","")};Ek&&!gS&&document.addEventListener("click",(function(t){if(wk)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),wk=!1,!1}),!0);var zk=function(t){if(VS){var e=function(t,e){var i;return Sk.some((function(n){var o=n[HS].options.emptyInsertThreshold;if(o&&!RS(n)){var s=qS(n),l=t>=s.left-o&&t<=s.right+o,a=e>=s.top-o&&e<=s.bottom+o;return l&&a?i=n:void 0}})),i}((t=t.touches?t.touches[0]:t).clientX,t.clientY);if(e){var i={};for(var n in t)t.hasOwnProperty(n)&&(i[n]=t[n]);i.target=i.rootEl=e,i.preventDefault=void 0,i.stopPropagation=void 0,e[HS]._onDragOver(i)}}},Pk=function(t){VS&&VS.parentNode[HS]._isOutsideThisEl(t.target)};function Dk(t,e){if(!t||!t.nodeType||1!==t.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=e=aS({},e),t[HS]=this;var i={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(t.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Ik(t,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(t,e){t.setData("Text",e.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==Dk.supportPointer&&"PointerEvent"in window&&!pS,emptyInsertThreshold:5};for(var n in WS.initializePlugins(this,t,i),i)!(n in e)&&(e[n]=i[n]);for(var o in Ok(e),this)"_"===o.charAt(0)&&"function"==typeof this[o]&&(this[o]=this[o].bind(this));this.nativeDraggable=!e.forceFallback&&Mk,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?fS(t,"pointerdown",this._onTapStart):(fS(t,"mousedown",this._onTapStart),fS(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(fS(t,"dragover",this),fS(t,"dragenter",this)),Sk.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),aS(this,jS())}function Nk(t,e,i,n,o,s,l,a){var r,c,u=t[HS],d=u.options.onMove;return!window.CustomEvent||uS||dS?(r=document.createEvent("Event")).initEvent("move",!0,!0):r=new CustomEvent("move",{bubbles:!0,cancelable:!0}),r.to=e,r.from=t,r.dragged=i,r.draggedRect=n,r.related=o||e,r.relatedRect=s||qS(e),r.willInsertAfter=a,r.originalEvent=l,t.dispatchEvent(r),d&&(c=d.call(u,r,l)),c}function Hk(t){t.draggable=!1}function jk(){Lk=!1}function Fk(t){for(var e=t.tagName+t.className+t.src+t.href+t.textContent,i=e.length,n=0;i--;)n+=e.charCodeAt(i);return n.toString(36)}function Uk(t){return setTimeout(t,0)}function Wk(t){return clearTimeout(t)}Dk.prototype={constructor:Dk,_isOutsideThisEl:function(t){this.el.contains(t)||t===this.el||(mk=null)},_getDirection:function(t,e){return"function"==typeof this.options.direction?this.options.direction.call(this,t,e,VS):this.options.direction},_onTapStart:function(t){if(t.cancelable){var e=this,i=this.el,n=this.options,o=n.preventOnFilter,s=t.type,l=t.touches&&t.touches[0]||t.pointerType&&"touch"===t.pointerType&&t,a=(l||t).target,r=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||a,c=n.filter;if(function(t){Ak.length=0;var e=t.getElementsByTagName("input"),i=e.length;for(;i--;){var n=e[i];n.checked&&Ak.push(n)}}(i),!VS&&!(/mousedown|pointerdown/.test(s)&&0!==t.button||n.disabled)&&!r.isContentEditable&&(this.nativeDraggable||!pS||!a||"SELECT"!==a.tagName.toUpperCase())&&!((a=wS(a,n.draggable,i,!1))&&a.animated||tk===a)){if(nk=IS(a),sk=IS(a,n.draggable),"function"==typeof c){if(c.call(this,t,a,this))return XS({sortable:e,rootEl:r,name:"filter",targetEl:a,toEl:i,fromEl:i}),YS("filter",e,{evt:t}),void(o&&t.cancelable&&t.preventDefault())}else if(c&&(c=c.split(",").some((function(n){if(n=wS(r,n.trim(),i,!1))return XS({sortable:e,rootEl:n,name:"filter",targetEl:a,fromEl:i,toEl:i}),YS("filter",e,{evt:t}),!0}))))return void(o&&t.cancelable&&t.preventDefault());n.handle&&!wS(r,n.handle,i,!1)||this._prepareDragStart(t,l,a)}}},_prepareDragStart:function(t,e,i){var n,o=this,s=o.el,l=o.options,a=s.ownerDocument;if(i&&!VS&&i.parentNode===s){var r=qS(i);if(QS=s,KS=(VS=i).parentNode,JS=VS.nextSibling,tk=i,ak=l.group,Dk.dragged=VS,ck={target:VS,clientX:(e||t).clientX,clientY:(e||t).clientY},pk=ck.clientX-r.left,hk=ck.clientY-r.top,this._lastX=(e||t).clientX,this._lastY=(e||t).clientY,VS.style["will-change"]="all",n=function(){YS("delayEnded",o,{evt:t}),Dk.eventCanceled?o._onDrop():(o._disableDelayedDragEvents(),!bS&&o.nativeDraggable&&(VS.draggable=!0),o._triggerDragStart(t,e),XS({sortable:o,name:"choose",originalEvent:t}),_S(VS,l.chosenClass,!0))},l.ignore.split(",").forEach((function(t){AS(VS,t.trim(),Hk)})),fS(a,"dragover",zk),fS(a,"mousemove",zk),fS(a,"touchmove",zk),fS(a,"mouseup",o._onDrop),fS(a,"touchend",o._onDrop),fS(a,"touchcancel",o._onDrop),bS&&this.nativeDraggable&&(this.options.touchStartThreshold=4,VS.draggable=!0),YS("delayStart",this,{evt:t}),!l.delay||l.delayOnTouchOnly&&!e||this.nativeDraggable&&(dS||uS))n();else{if(Dk.eventCanceled)return void this._onDrop();fS(a,"mouseup",o._disableDelayedDrag),fS(a,"touchend",o._disableDelayedDrag),fS(a,"touchcancel",o._disableDelayedDrag),fS(a,"mousemove",o._delayedDragTouchMoveHandler),fS(a,"touchmove",o._delayedDragTouchMoveHandler),l.supportPointer&&fS(a,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(n,l.delay)}}},_delayedDragTouchMoveHandler:function(t){var e=t.touches?t.touches[0]:t;Math.max(Math.abs(e.clientX-this._lastX),Math.abs(e.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){VS&&Hk(VS),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;vS(t,"mouseup",this._disableDelayedDrag),vS(t,"touchend",this._disableDelayedDrag),vS(t,"touchcancel",this._disableDelayedDrag),vS(t,"mousemove",this._delayedDragTouchMoveHandler),vS(t,"touchmove",this._delayedDragTouchMoveHandler),vS(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,e){e=e||"touch"==t.pointerType&&t,!this.nativeDraggable||e?this.options.supportPointer?fS(document,"pointermove",this._onTouchMove):fS(document,e?"touchmove":"mousemove",this._onTouchMove):(fS(VS,"dragend",this),fS(QS,"dragstart",this._onDragStart));try{document.selection?Uk((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(t){}},_dragStarted:function(t,e){if(xk=!1,QS&&VS){YS("dragStarted",this,{evt:e}),this.nativeDraggable&&fS(document,"dragover",Pk);var i=this.options;!t&&_S(VS,i.dragClass,!1),_S(VS,i.ghostClass,!0),Dk.active=this,t&&this._appendGhost(),XS({sortable:this,name:"start",originalEvent:e})}else this._nulling()},_emulateDragOver:function(){if(uk){this._lastX=uk.clientX,this._lastY=uk.clientY,$k();for(var t=document.elementFromPoint(uk.clientX,uk.clientY),e=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(uk.clientX,uk.clientY))!==e;)e=t;if(VS.parentNode[HS]._isOutsideThisEl(t),e)do{if(e[HS]){if(e[HS]._onDragOver({clientX:uk.clientX,clientY:uk.clientY,target:t,rootEl:e})&&!this.options.dragoverBubble)break}t=e}while(e=e.parentNode);Bk()}},_onTouchMove:function(t){if(ck){var e=this.options,i=e.fallbackTolerance,n=e.fallbackOffset,o=t.touches?t.touches[0]:t,s=ZS&&LS(ZS,!0),l=ZS&&s&&s.a,a=ZS&&s&&s.d,r=qk&&yk&&OS(yk),c=(o.clientX-ck.clientX+n.x)/(l||1)+(r?r[0]-Ck[0]:0)/(l||1),u=(o.clientY-ck.clientY+n.y)/(a||1)+(r?r[1]-Ck[1]:0)/(a||1);if(!Dk.active&&!xk){if(i&&Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))<i)return;this._onDragStart(t,!0)}if(ZS){s?(s.e+=c-(dk||0),s.f+=u-(bk||0)):s={a:1,b:0,c:0,d:1,e:c,f:u};var d="matrix(".concat(s.a,",").concat(s.b,",").concat(s.c,",").concat(s.d,",").concat(s.e,",").concat(s.f,")");CS(ZS,"webkitTransform",d),CS(ZS,"mozTransform",d),CS(ZS,"msTransform",d),CS(ZS,"transform",d),dk=c,bk=u,uk=o}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!ZS){var t=this.options.fallbackOnBody?document.body:QS,e=qS(VS,!0,qk,!0,t),i=this.options;if(qk){for(yk=t;"static"===CS(yk,"position")&&"none"===CS(yk,"transform")&&yk!==document;)yk=yk.parentNode;yk!==document.body&&yk!==document.documentElement?(yk===document&&(yk=ES()),e.top+=yk.scrollTop,e.left+=yk.scrollLeft):yk=ES(),Ck=OS(yk)}_S(ZS=VS.cloneNode(!0),i.ghostClass,!1),_S(ZS,i.fallbackClass,!0),_S(ZS,i.dragClass,!0),CS(ZS,"transition",""),CS(ZS,"transform",""),CS(ZS,"box-sizing","border-box"),CS(ZS,"margin",0),CS(ZS,"top",e.top),CS(ZS,"left",e.left),CS(ZS,"width",e.width),CS(ZS,"height",e.height),CS(ZS,"opacity","0.8"),CS(ZS,"position",qk?"absolute":"fixed"),CS(ZS,"zIndex","100000"),CS(ZS,"pointerEvents","none"),Dk.ghost=ZS,t.appendChild(ZS),CS(ZS,"transform-origin",pk/parseInt(ZS.style.width)*100+"% "+hk/parseInt(ZS.style.height)*100+"%")}},_onDragStart:function(t,e){var i=this,n=t.dataTransfer,o=i.options;YS("dragStart",this,{evt:t}),Dk.eventCanceled?this._onDrop():(YS("setupClone",this),Dk.eventCanceled||((ek=DS(VS)).removeAttribute("id"),ek.draggable=!1,ek.style["will-change"]="",this._hideClone(),_S(ek,this.options.chosenClass,!1),Dk.clone=ek),i.cloneId=Uk((function(){YS("clone",i),Dk.eventCanceled||(i.options.removeCloneOnHide||QS.insertBefore(ek,VS),i._hideClone(),XS({sortable:i,name:"clone"}))})),!e&&_S(VS,o.dragClass,!0),e?(wk=!0,i._loopId=setInterval(i._emulateDragOver,50)):(vS(document,"mouseup",i._onDrop),vS(document,"touchend",i._onDrop),vS(document,"touchcancel",i._onDrop),n&&(n.effectAllowed="move",o.setData&&o.setData.call(i,n,VS)),fS(document,"drop",i),CS(VS,"transform","translateZ(0)")),xk=!0,i._dragStartId=Uk(i._dragStarted.bind(i,e,t)),fS(document,"selectstart",i),gk=!0,pS&&CS(document.body,"user-select","none"))},_onDragOver:function(t){var e,i,n,o,s=this.el,l=t.target,a=this.options,r=a.group,c=Dk.active,u=ak===r,d=a.sort,b=rk||c,p=this,h=!1;if(!Lk){if(void 0!==t.preventDefault&&t.cancelable&&t.preventDefault(),l=wS(l,a.draggable,s,!0),q("dragOver"),Dk.eventCanceled)return h;if(VS.contains(t.target)||l.animated&&l.animatingX&&l.animatingY||p._ignoreWhileAnimating===l)return M(!1);if(wk=!1,c&&!a.disabled&&(u?d||(n=KS!==QS):rk===this||(this.lastPutMode=ak.checkPull(this,c,VS,t))&&r.checkPut(this,c,VS,t))){if(o="vertical"===this._getDirection(t,l),e=qS(VS),q("dragOverValid"),Dk.eventCanceled)return h;if(n)return KS=QS,T(),this._hideClone(),q("revert"),Dk.eventCanceled||(JS?QS.insertBefore(VS,JS):QS.appendChild(VS)),M(!0);var g=RS(s,a.draggable);if(!g||function(t,e,i){var n=qS(RS(i.el,i.options.draggable)),o=NS(i.el,i.options,ZS),s=10;return e?t.clientX>o.right+s||t.clientY>n.bottom&&t.clientX>n.left:t.clientY>o.bottom+s||t.clientX>n.right&&t.clientY>n.top}(t,o,this)&&!g.animated){if(g===VS)return M(!1);if(g&&s===t.target&&(l=g),l&&(i=qS(l)),!1!==Nk(QS,s,VS,e,l,i,t,!!l))return T(),g&&g.nextSibling?s.insertBefore(VS,g.nextSibling):s.appendChild(VS),KS=s,R(),M(!0)}else if(g&&function(t,e,i){var n=qS(MS(i.el,0,i.options,!0)),o=NS(i.el,i.options,ZS),s=10;return e?t.clientX<o.left-s||t.clientY<n.top&&t.clientX<n.right:t.clientY<o.top-s||t.clientY<n.bottom&&t.clientX<n.left}(t,o,this)){var m=MS(s,0,a,!0);if(m===VS)return M(!1);if(i=qS(l=m),!1!==Nk(QS,s,VS,e,l,i,t,!1))return T(),s.insertBefore(VS,m),KS=s,R(),M(!0)}else if(l.parentNode===s){i=qS(l);var f,v,y,x=VS.parentNode!==s,w=!function(t,e,i){var n=i?t.left:t.top,o=i?t.right:t.bottom,s=i?t.width:t.height,l=i?e.left:e.top,a=i?e.right:e.bottom,r=i?e.width:e.height;return n===l||o===a||n+s/2===l+r/2}(VS.animated&&VS.toRect||e,l.animated&&l.toRect||i,o),S=o?"top":"left",k=TS(l,"top","top")||TS(VS,"top","top"),_=k?k.scrollTop:void 0;if(mk!==l&&(v=i[S],kk=!1,_k=!w&&a.invertSwap||x),f=function(t,e,i,n,o,s,l,a){var r=n?t.clientY:t.clientX,c=n?i.height:i.width,u=n?i.top:i.left,d=n?i.bottom:i.right,b=!1;if(!l)if(a&&vk<c*o){if(!kk&&(1===fk?r>u+c*s/2:r<d-c*s/2)&&(kk=!0),kk)b=!0;else if(1===fk?r<u+vk:r>d-vk)return-fk}else if(r>u+c*(1-o)/2&&r<d-c*(1-o)/2)return function(t){return IS(VS)<IS(t)?1:-1}(e);if((b=b||l)&&(r<u+c*s/2||r>d-c*s/2))return r>u+c/2?1:-1;return 0}(t,l,i,o,w?1:a.swapThreshold,null==a.invertedSwapThreshold?a.swapThreshold:a.invertedSwapThreshold,_k,mk===l),0!==f){var C=IS(VS);do{C-=f,y=KS.children[C]}while(y&&("none"===CS(y,"display")||y===ZS))}if(0===f||y===l)return M(!1);mk=l,fk=f;var L=l.nextElementSibling,A=!1,E=Nk(QS,s,VS,e,l,i,t,A=1===f);if(!1!==E)return 1!==E&&-1!==E||(A=1===E),Lk=!0,setTimeout(jk,30),T(),A&&!L?s.appendChild(VS):l.parentNode.insertBefore(VS,A?L:l),k&&PS(k,0,_-k.scrollTop),KS=VS.parentNode,void 0===v||_k||(vk=Math.abs(v-qS(l)[S])),R(),M(!0)}if(s.contains(VS))return M(!1)}return!1}function q(a,r){YS(a,p,oS({evt:t,isOwner:u,axis:o?"vertical":"horizontal",revert:n,dragRect:e,targetRect:i,canSort:d,fromSortable:b,target:l,completed:M,onMove:function(i,n){return Nk(QS,s,VS,e,i,qS(i),t,n)},changed:R},r))}function T(){q("dragOverAnimationCapture"),p.captureAnimationState(),p!==b&&b.captureAnimationState()}function M(e){return q("dragOverCompleted",{insertion:e}),e&&(u?c._hideClone():c._showClone(p),p!==b&&(_S(VS,rk?rk.options.ghostClass:c.options.ghostClass,!1),_S(VS,a.ghostClass,!0)),rk!==p&&p!==Dk.active?rk=p:p===Dk.active&&rk&&(rk=null),b===p&&(p._ignoreWhileAnimating=l),p.animateAll((function(){q("dragOverAnimationComplete"),p._ignoreWhileAnimating=null})),p!==b&&(b.animateAll(),b._ignoreWhileAnimating=null)),(l===VS&&!VS.animated||l===s&&!l.animated)&&(mk=null),a.dragoverBubble||t.rootEl||l===document||(VS.parentNode[HS]._isOutsideThisEl(t.target),!e&&zk(t)),!a.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),h=!0}function R(){ok=IS(VS),lk=IS(VS,a.draggable),XS({sortable:p,name:"change",toEl:s,newIndex:ok,newDraggableIndex:lk,originalEvent:t})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){vS(document,"mousemove",this._onTouchMove),vS(document,"touchmove",this._onTouchMove),vS(document,"pointermove",this._onTouchMove),vS(document,"dragover",zk),vS(document,"mousemove",zk),vS(document,"touchmove",zk)},_offUpEvents:function(){var t=this.el.ownerDocument;vS(t,"mouseup",this._onDrop),vS(t,"touchend",this._onDrop),vS(t,"pointerup",this._onDrop),vS(t,"touchcancel",this._onDrop),vS(document,"selectstart",this)},_onDrop:function(t){var e=this.el,i=this.options;ok=IS(VS),lk=IS(VS,i.draggable),YS("drop",this,{evt:t}),KS=VS&&VS.parentNode,ok=IS(VS),lk=IS(VS,i.draggable),Dk.eventCanceled||(xk=!1,_k=!1,kk=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Wk(this.cloneId),Wk(this._dragStartId),this.nativeDraggable&&(vS(document,"drop",this),vS(e,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),pS&&CS(document.body,"user-select",""),CS(VS,"transform",""),t&&(gk&&(t.cancelable&&t.preventDefault(),!i.dropBubble&&t.stopPropagation()),ZS&&ZS.parentNode&&ZS.parentNode.removeChild(ZS),(QS===KS||rk&&"clone"!==rk.lastPutMode)&&ek&&ek.parentNode&&ek.parentNode.removeChild(ek),VS&&(this.nativeDraggable&&vS(VS,"dragend",this),Hk(VS),VS.style["will-change"]="",gk&&!xk&&_S(VS,rk?rk.options.ghostClass:this.options.ghostClass,!1),_S(VS,this.options.chosenClass,!1),XS({sortable:this,name:"unchoose",toEl:KS,newIndex:null,newDraggableIndex:null,originalEvent:t}),QS!==KS?(ok>=0&&(XS({rootEl:KS,name:"add",toEl:KS,fromEl:QS,originalEvent:t}),XS({sortable:this,name:"remove",toEl:KS,originalEvent:t}),XS({rootEl:KS,name:"sort",toEl:KS,fromEl:QS,originalEvent:t}),XS({sortable:this,name:"sort",toEl:KS,originalEvent:t})),rk&&rk.save()):ok!==nk&&ok>=0&&(XS({sortable:this,name:"update",toEl:KS,originalEvent:t}),XS({sortable:this,name:"sort",toEl:KS,originalEvent:t})),Dk.active&&(null!=ok&&-1!==ok||(ok=nk,lk=sk),XS({sortable:this,name:"end",toEl:KS,originalEvent:t}),this.save())))),this._nulling()},_nulling:function(){YS("nulling",this),QS=VS=KS=ZS=JS=ek=tk=ik=ck=uk=gk=ok=lk=nk=sk=mk=fk=rk=ak=Dk.dragged=Dk.ghost=Dk.clone=Dk.active=null,Ak.forEach((function(t){t.checked=!0})),Ak.length=dk=bk=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":VS&&(this._onDragOver(t),function(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move");t.cancelable&&t.preventDefault()}(t));break;case"selectstart":t.preventDefault()}},toArray:function(){for(var t,e=[],i=this.el.children,n=0,o=i.length,s=this.options;n<o;n++)wS(t=i[n],s.draggable,this.el,!1)&&e.push(t.getAttribute(s.dataIdAttr)||Fk(t));return e},sort:function(t,e){var i={},n=this.el;this.toArray().forEach((function(t,e){var o=n.children[e];wS(o,this.options.draggable,n,!1)&&(i[t]=o)}),this),e&&this.captureAnimationState(),t.forEach((function(t){i[t]&&(n.removeChild(i[t]),n.appendChild(i[t]))})),e&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,e){return wS(t,e||this.options.draggable,this.el,!1)},option:function(t,e){var i=this.options;if(void 0===e)return i[t];var n=WS.modifyOption(this,t,e);i[t]=void 0!==n?n:e,"group"===t&&Ok(i)},destroy:function(){YS("destroy",this);var t=this.el;t[HS]=null,vS(t,"mousedown",this._onTapStart),vS(t,"touchstart",this._onTapStart),vS(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(vS(t,"dragover",this),vS(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),(function(t){t.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),Sk.splice(Sk.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!ik){if(YS("hideClone",this),Dk.eventCanceled)return;CS(ek,"display","none"),this.options.removeCloneOnHide&&ek.parentNode&&ek.parentNode.removeChild(ek),ik=!0}},_showClone:function(t){if("clone"===t.lastPutMode){if(ik){if(YS("showClone",this),Dk.eventCanceled)return;VS.parentNode!=QS||this.options.group.revertClone?JS?QS.insertBefore(ek,JS):QS.appendChild(ek):QS.insertBefore(ek,VS),this.options.group.revertClone&&this.animate(VS,ek),CS(ek,"display",""),ik=!1}}else this._hideClone()}},Ek&&fS(document,"touchmove",(function(t){(Dk.active||xk)&&t.cancelable&&t.preventDefault()})),Dk.utils={on:fS,off:vS,css:CS,find:AS,is:function(t,e){return!!wS(t,e,t,!1)},extend:function(t,e){if(t&&e)for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t},throttle:zS,closest:wS,toggleClass:_S,clone:DS,index:IS,nextTick:Uk,cancelNextTick:Wk,detectDirection:Ik,getChild:MS},Dk.get=function(t){return t[HS]},Dk.mount=function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];e[0].constructor===Array&&(e=e[0]),e.forEach((function(t){if(!t.prototype||!t.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(t));t.utils&&(Dk.utils=oS(oS({},Dk.utils),t.utils)),WS.mount(t)}))},Dk.create=function(t,e){return new Dk(t,e)},Dk.version="1.15.2";var Gk,Yk,Xk,Vk,Kk,Zk,Qk=[],Jk=!1;function t_(){Qk.forEach((function(t){clearInterval(t.pid)})),Qk=[]}function e_(){clearInterval(Zk)}var i_=zS((function(t,e,i,n){if(e.scroll){var o,s=(t.touches?t.touches[0]:t).clientX,l=(t.touches?t.touches[0]:t).clientY,a=e.scrollSensitivity,r=e.scrollSpeed,c=ES(),u=!1;Yk!==i&&(Yk=i,t_(),Gk=e.scroll,o=e.scrollFn,!0===Gk&&(Gk=$S(i,!0)));var d=0,b=Gk;do{var p=b,h=qS(p),g=h.top,m=h.bottom,f=h.left,v=h.right,y=h.width,x=h.height,w=void 0,S=void 0,k=p.scrollWidth,_=p.scrollHeight,C=CS(p),L=p.scrollLeft,A=p.scrollTop;p===c?(w=y<k&&("auto"===C.overflowX||"scroll"===C.overflowX||"visible"===C.overflowX),S=x<_&&("auto"===C.overflowY||"scroll"===C.overflowY||"visible"===C.overflowY)):(w=y<k&&("auto"===C.overflowX||"scroll"===C.overflowX),S=x<_&&("auto"===C.overflowY||"scroll"===C.overflowY));var E=w&&(Math.abs(v-s)<=a&&L+y<k)-(Math.abs(f-s)<=a&&!!L),q=S&&(Math.abs(m-l)<=a&&A+x<_)-(Math.abs(g-l)<=a&&!!A);if(!Qk[d])for(var T=0;T<=d;T++)Qk[T]||(Qk[T]={});Qk[d].vx==E&&Qk[d].vy==q&&Qk[d].el===p||(Qk[d].el=p,Qk[d].vx=E,Qk[d].vy=q,clearInterval(Qk[d].pid),0==E&&0==q||(u=!0,Qk[d].pid=setInterval(function(){n&&0===this.layer&&Dk.active._onTouchMove(Kk);var e=Qk[this.layer].vy?Qk[this.layer].vy*r:0,i=Qk[this.layer].vx?Qk[this.layer].vx*r:0;"function"==typeof o&&"continue"!==o.call(Dk.dragged.parentNode[HS],i,e,t,Kk,Qk[this.layer].el)||PS(Qk[this.layer].el,i,e)}.bind({layer:d}),24))),d++}while(e.bubbleScroll&&b!==c&&(b=$S(b,!1)));Jk=u}}),30),n_=function(t){var e=t.originalEvent,i=t.putSortable,n=t.dragEl,o=t.activeSortable,s=t.dispatchSortableEvent,l=t.hideGhostForTarget,a=t.unhideGhostForTarget;if(e){var r=i||o;l();var c=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e,u=document.elementFromPoint(c.clientX,c.clientY);a(),r&&!r.el.contains(u)&&(s("spill"),this.onSpill({dragEl:n,putSortable:i}))}};function o_(){}function s_(){}o_.prototype={startIndex:null,dragStart:function(t){var e=t.oldDraggableIndex;this.startIndex=e},onSpill:function(t){var e=t.dragEl,i=t.putSortable;this.sortable.captureAnimationState(),i&&i.captureAnimationState();var n=MS(this.sortable.el,this.startIndex,this.options);n?this.sortable.el.insertBefore(e,n):this.sortable.el.appendChild(e),this.sortable.animateAll(),i&&i.animateAll()},drop:n_},aS(o_,{pluginName:"revertOnSpill"}),s_.prototype={onSpill:function(t){var e=t.dragEl,i=t.putSortable||this.sortable;i.captureAnimationState(),e.parentNode&&e.parentNode.removeChild(e),i.animateAll()},drop:n_},aS(s_,{pluginName:"removeOnSpill"}),Dk.mount(new function(){function t(){for(var t in this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===t.charAt(0)&&"function"==typeof this[t]&&(this[t]=this[t].bind(this))}return t.prototype={dragStarted:function(t){var e=t.originalEvent;this.sortable.nativeDraggable?fS(document,"dragover",this._handleAutoScroll):this.options.supportPointer?fS(document,"pointermove",this._handleFallbackAutoScroll):e.touches?fS(document,"touchmove",this._handleFallbackAutoScroll):fS(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(t){var e=t.originalEvent;this.options.dragOverBubble||e.rootEl||this._handleAutoScroll(e)},drop:function(){this.sortable.nativeDraggable?vS(document,"dragover",this._handleAutoScroll):(vS(document,"pointermove",this._handleFallbackAutoScroll),vS(document,"touchmove",this._handleFallbackAutoScroll),vS(document,"mousemove",this._handleFallbackAutoScroll)),e_(),t_(),clearTimeout(SS),SS=void 0},nulling:function(){Kk=Yk=Gk=Jk=Zk=Xk=Vk=null,Qk.length=0},_handleFallbackAutoScroll:function(t){this._handleAutoScroll(t,!0)},_handleAutoScroll:function(t,e){var i=this,n=(t.touches?t.touches[0]:t).clientX,o=(t.touches?t.touches[0]:t).clientY,s=document.elementFromPoint(n,o);if(Kk=t,e||this.options.forceAutoScrollFallback||dS||uS||pS){i_(t,this.options,s,e);var l=$S(s,!0);!Jk||Zk&&n===Xk&&o===Vk||(Zk&&e_(),Zk=setInterval((function(){var s=$S(document.elementFromPoint(n,o),!0);s!==l&&(l=s,t_()),i_(t,i.options,s,e)}),10),Xk=n,Vk=o)}else{if(!this.options.bubbleScroll||$S(s,!0)===ES())return void t_();i_(t,this.options,$S(s,!1),!1)}}},aS(t,{pluginName:"scroll",initializeByDefault:!0})}),Dk.mount(s_,o_);class l_{constructor(t={}){if(!t.iframe)throw new Error("IframeDragDrop: iframe element is required");if(!t.dropZoneSelector)throw new Error("IframeDragDrop: dropZoneSelector is required");this.config={iframe:t.iframe,draggableSelector:t.draggableSelector||"[data-drag-id]",dropZoneSelector:t.dropZoneSelector,dragThreshold:t.dragThreshold||5,ghostClass:t.ghostClass||"idd-ghost",dragOverClass:t.dragOverClass||"idd-drag-over",dropIndicatorClass:t.dropIndicatorClass||"idd-drop-indicator",itemClass:t.itemClass||"idd-item",ghostTemplate:t.ghostTemplate||null,zIndex:t.zIndex||1e4},this.blocks=new Map,this.state={isDragging:!1,currentDragId:null,currentDragData:null,startX:0,startY:0,ghostElement:null,overlay:null},this.callbacks={onDragStart:t.onDragStart||null,onDragMove:t.onDragMove||null,onDragEnd:t.onDragEnd||null,onDrop:t.onDrop||null,onDragCancel:t.onDragCancel||null,onValidate:t.onValidate||null},this._onPointerDown=this._onPointerDown.bind(this),this._onPointerMove=this._onPointerMove.bind(this),this._onPointerUp=this._onPointerUp.bind(this),this._init()}_init(){this._createGhostElement(),this._createOverlay(),this._injectIframeStyles(),this._bindDraggables()}_getScale(){const t=this.config.iframe,e=t.getBoundingClientRect().width,i=t.offsetWidth;return i>0?e/i:1}registerBlock(t,e){if(!e.html)throw new Error(`IframeDragDrop: Block ${t} must have html property`);return this.blocks.set(t,{id:t,html:e.html,data:e.data||{},...e}),this}registerBlocks(t){return Object.entries(t).forEach((([t,e])=>{this.registerBlock(t,e)})),this}getBlock(t){return this.blocks.get(t)||this.blocks.get(String(t))||this.blocks.get(Number(t))}_createGhostElement(){const t=document.createElement("div");t.className=this.config.ghostClass,t.style.cssText=`\n position: fixed;\n pointer-events: none;\n z-index: ${this.config.zIndex};\n opacity: 0.9;\n transform: translate(-50%, -50%) rotate(2deg);\n width: 190px;\n height: 50px;\n background: #f3f3f3;\n color: #fff;\n border-radius: 8px;\n display: none;\n white-space: nowrap;\n `,document.body.appendChild(t),this.state.ghostElement=t}_createOverlay(){const t=this.config.iframe.parentElement;"static"===window.getComputedStyle(t).position&&(t.style.position="relative");const e=document.createElement("div");e.className="idd-overlay",e.style.cssText=`\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n pointer-events: none;\n z-index: ${this.config.zIndex-1};\n `,t.appendChild(e),this.state.overlay=e,e.addEventListener("touchmove",this._onPointerMove,{passive:!1}),e.addEventListener("touchend",this._onPointerUp),e.addEventListener("touchcancel",this._onPointerUp),e.addEventListener("mousemove",this._onPointerMove),e.addEventListener("mouseup",this._onPointerUp)}_injectIframeStyles(){const t=()=>{const t=this._getIframeDocument();if(!t)return;if(t.getElementById("idd-styles"))return;const e=t.createElement("style");e.id="idd-styles",e.textContent=`\n /*.${this.config.dragOverClass} {\n outline: 2px dashed #00da89 !important;\n outline-offset: -2px;\n }*/\n .box-canvas.${this.config.dragOverClass} {\n outline: 4px dashed #ff9fda !important;\n outline-offset: -4px;\n background: #fffcfe !important;\n }\n .${this.config.dropIndicatorClass} { \n width: 100%;\n height: 8px;\n background: rgb(233, 233, 233);\n border-radius: 2px;\n margin: 0;\n pointer-events: none;\n opacity: 0.7;\n animation: iddExpand 0.15s ease-out forwards;\n }\n .box-canvas .${this.config.dropIndicatorClass} {\n background: transparent;\n opacity: 0;\n }\n @keyframes iddPulse {\n from { opacity: 0.5; }\n to { opacity: 1; }\n }\n @keyframes iddExpand {\n from { height: 0; }\n to { height: 8px; }\n }\n .${this.config.itemClass} {\n position: relative;\n transition: transform 0.15s ease, box-shadow 0.15s ease;\n }\n .${this.config.itemClass}:hover {\n outline: 2px solid #00da89;\n outline-offset: 2px;\n }\n `,t.head.appendChild(e)};t(),this.config.iframe.addEventListener("load",t)}_bindDraggables(){document.addEventListener("mousedown",this._onPointerDown),document.addEventListener("touchstart",this._onPointerDown,{passive:!1}),document.addEventListener("mousemove",this._onPointerMove),document.addEventListener("mouseup",this._onPointerUp),document.addEventListener("touchmove",this._onPointerMove,{passive:!1}),document.addEventListener("touchend",this._onPointerUp),document.addEventListener("touchcancel",this._onPointerUp)}_getPointerPosition(t){return t.touches&&t.touches.length>0?{x:t.touches[0].clientX,y:t.touches[0].clientY}:t.changedTouches&&t.changedTouches.length>0?{x:t.changedTouches[0].clientX,y:t.changedTouches[0].clientY}:{x:t.clientX,y:t.clientY}}_getIframeDocument(){try{return this.config.iframe.contentDocument||this.config.iframe.contentWindow.document}catch(t){return console.error("IframeDragDrop: Cannot access iframe document. Ensure same-origin policy."),null}}_getDropZone(){const t=this._getIframeDocument();return t?t.querySelector(this.config.dropZoneSelector):null}_onPointerDown(t){const e=t.target.closest(this.config.draggableSelector);if(!e)return;"touchstart"===t.type&&t.preventDefault();const i=this._getPointerPosition(t),n=e.dataset.dragId,o=this.getBlock(n);this.state.startX=i.x,this.state.startY=i.y,this.state.currentDragId=n,this.state.currentDragData={element:e,block:o,dragId:n},this.config.ghostTemplate?this.state.ghostElement.innerHTML=this.config.ghostTemplate(o,e):this.state.ghostElement.textContent=e.textContent.trim()}_onPointerMove(t){if(!this.state.currentDragId)return;"touchmove"===t.type&&t.preventDefault();const e=this._getPointerPosition(t);if(!this.state.isDragging){if(!(Math.sqrt(Math.pow(e.x-this.state.startX,2)+Math.pow(e.y-this.state.startY,2))>this.config.dragThreshold))return;this._startDrag()}this.state.ghostElement.style.left=e.x+"px",this.state.ghostElement.style.top=e.y+"px";const i=this.config.iframe.getBoundingClientRect(),n=e.x>=i.left&&e.x<=i.right&&e.y>=i.top&&e.y<=i.bottom;if(n){const t=this._getScale(),n=(e.x-i.left)/t,o=(e.y-i.top)/t;this._handleDragOverIframe(n,o)}else this._handleDragLeaveIframe();this.callbacks.onDragMove&&this.callbacks.onDragMove({position:e,isOverIframe:n,dragData:this.state.currentDragData})}_startDrag(){this.state.isDragging=!0,this.state.ghostElement.style.display="block",this.state.overlay.style.pointerEvents="auto",document.body.style.userSelect="none",document.body.style.webkitUserSelect="none",this.callbacks.onDragStart&&this.callbacks.onDragStart({dragData:this.state.currentDragData})}_findDropZoneAtPoint(t,e){const i=this._getIframeDocument();if(!i)return null;const n=i.querySelectorAll(this.config.dropZoneSelector);let o=null;for(const i of n){const n=i.getBoundingClientRect();t>=n.left&&t<=n.right&&e>=n.top&&e<=n.bottom&&(o&&!1!==i.contains(o)||(o=i))}return o}_handleDragOverIframe(t,e){const i=this._getIframeDocument();if(!i)return;const n=this._findDropZoneAtPoint(t,e);if(!n)return void this._handleDragLeaveIframe();i.querySelectorAll(this.config.dropZoneSelector).forEach((t=>{t!==n&&t.classList.remove(this.config.dragOverClass)})),n.classList.add(this.config.dragOverClass);let o=null;const s=n.classList.contains("is-wrapper")?n.querySelectorAll(":scope > .is-section"):n.children;for(const t of s){if(t.classList.contains(this.config.dropIndicatorClass))continue;const i=t.getBoundingClientRect();if(e<i.top+i.height/2){o=t;break}}let l=i.querySelector(`.${this.config.dropIndicatorClass}`);if(l){const t=l.parentElement,e=l.nextElementSibling,i=o?e===o:null===e;t===n&&i||(o?n.insertBefore(l,o):n.appendChild(l))}else l=i.createElement("div"),l.className=this.config.dropIndicatorClass,l.style.height="0",o?n.insertBefore(l,o):n.appendChild(l),requestAnimationFrame((()=>{l.style.transition="height 0.15s ease-out",l.style.height="20px"}))}_handleDragLeaveIframe(){const t=this._getIframeDocument();if(!t)return;t.querySelectorAll(this.config.dropZoneSelector).forEach((t=>{t.classList.remove(this.config.dragOverClass)}));const e=t.querySelector(`.${this.config.dropIndicatorClass}`);e&&e.remove()}_onPointerUp(t){if(!this.state.currentDragId)return;const e=this.state.isDragging,i=this._getPointerPosition(t);if(e){const t=this.config.iframe.getBoundingClientRect();if(i.x>=t.left&&i.x<=t.right&&i.y>=t.top&&i.y<=t.bottom){const e=this._getScale(),n=(i.x-t.left)/e,o=(i.y-t.top)/e;this._handleDrop(n,o)}else this._handleCancel()}this._resetState()}_handleDrop(t,e){const i=this._getIframeDocument();if(!i)return;const n=this.state.currentDragData.block;if(!n)return console.warn("IframeDragDrop: No block found for dragId:",this.state.currentDragId),void this._handleDragLeaveIframe();const o=i.querySelector(`.${this.config.dropIndicatorClass}`);if(!o)return void this._handleDragLeaveIframe();const s=o.parentElement;let l,a=i.createRange(),r=n.html.trim(),c=o.closest(".is-builder");if(this.callbacks.onValidate&&(r=this.callbacks.onValidate({block:n,builder:c,html:r,dropTarget:s})),s.classList.contains("is-wrapper")){const t=`\n <div class="is-section is-box is-section-100 box-autofit type-system-ui">\n <div class="is-container is-content-760 v2 v3 size-17 leading-13">\n ${r}\n </div>\n </div>\n `;l=a.createContextualFragment(t).firstElementChild}else{const t=a.createContextualFragment(r);l=t.firstElementChild||t}o.replaceWith(l);i.querySelectorAll(this.config.dropZoneSelector).forEach((t=>{t.classList.remove(this.config.dragOverClass)}));i.querySelectorAll(`.${this.config.dropIndicatorClass}`).forEach((t=>t.remove())),this.callbacks.onDrop&&this.callbacks.onDrop({block:n,element:l,dropZone:s,position:{x:t,y:e},dragData:this.state.currentDragData})}_handleCancel(){this._handleDragLeaveIframe(),this.callbacks.onDragCancel&&this.callbacks.onDragCancel({dragData:this.state.currentDragData})}_resetState(){this.state.isDragging=!1,this.state.currentDragId=null,this.state.currentDragData=null,this.state.ghostElement.style.display="none",this.state.overlay.style.pointerEvents="none",document.body.style.userSelect="",document.body.style.webkitUserSelect="";const t=this._getIframeDocument();if(t){const e=t.querySelector(`.${this.config.dropIndicatorClass}`);e&&e.remove()}this.callbacks.onDragEnd&&this.callbacks.onDragEnd()}refresh(){return this._injectIframeStyles(),this}getItems(){const t=this._getDropZone();if(!t)return[];const e=t.querySelectorAll(`:scope > .${this.config.itemClass}`);return Array.from(e).map(((t,e)=>({index:e,blockId:t.dataset.blockId,element:t,html:t.outerHTML})))}getContent(){const t=this._getDropZone();return t?t.innerHTML:""}clearContent(){const t=this._getDropZone();if(!t)return this;return t.querySelectorAll(`:scope > .${this.config.itemClass}`).forEach((t=>t.remove())),this}insertBlock(t,e=-1){const i=this.getBlock(t);if(!i)return console.error("IframeDragDrop: Block not found:",t),this;const n=this._getDropZone(),o=this._getIframeDocument();if(!n||!o)return this;const s=o.createElement("div");s.innerHTML=i.html.trim();const l=s.firstElementChild||s;l.classList.add(this.config.itemClass),l.dataset.blockId=i.id;const a=n.querySelectorAll(`:scope > .${this.config.itemClass}`);return-1===e||e>=a.length?n.appendChild(l):n.insertBefore(l,a[e]),this}removeItem(t){const e=this._getDropZone();if(!e)return this;const i=e.querySelectorAll(`:scope > .${this.config.itemClass}`);return i[t]&&i[t].remove(),this}destroy(){document.removeEventListener("mousedown",this._onPointerDown),document.removeEventListener("touchstart",this._onPointerDown),document.removeEventListener("mousemove",this._onPointerMove),document.removeEventListener("mouseup",this._onPointerUp),document.removeEventListener("touchmove",this._onPointerMove),document.removeEventListener("touchend",this._onPointerUp),document.removeEventListener("touchcancel",this._onPointerUp),this.state.ghostElement&&this.state.ghostElement.remove(),this.state.overlay&&this.state.overlay.remove(),this.blocks.clear(),this.state={},this.callbacks={}}}const a_=new t;return class{constructor(t={}){const i={iframeDragDrop:!1,wrapper:".is-wrapper",siteToken:"",previewURL:"preview.html",autoOpenPanel:!1,openPanelOnStart:!1,useSidebar:!0,disableLoadingStatus:!1,sidebarData:{buttons:[{name:"section",title:"Sections"},{name:"snippet",title:"Blocks"},{name:"typography",title:"Typography"},{name:"code",title:"HTML"}]},htmlSyntaxHighlighting:!0,enableContentStyle:!0,disableStaticSection:!1,framework:"",imageRenameOnEdit:!0,imageResizeOnBlock:!1,iframeCentered:!0,htmlButton:!0,undoRedoButtons:!0,toggleDeviceButton:!0,deviceButtons:!0,simpleEditingBreakpoint:"970px",canvas:!0,blankHtml:"",shiftDisableBreakpoint:0,lang:[],contentExcludeSelectors:["[data-top-locked]","[data-bottom-locked]"],topLockedSelectors:["[data-top-locked]"],bottomLockedSelectors:["[data-bottom-locked]"],designUrl1:"assets/designs/basic.js",designUrl2:"assets/designs/examples.js",designPath:"assets/designs/",designPathReplace:[],defaultDesignCategory:5,templates:[{url:"assets/templates-simple/templates.js",path:"assets/templates-simple/",pathReplace:[],numbering:!0,showNumberOnHover:!0},{url:"assets/templates-quick/templates.js",path:"assets/templates-quick/",pathReplace:[],numbering:!0,showNumberOnHover:!0},{url:"assets/templates-animated/templates.js",path:"assets/templates-animated/",pathReplace:[],numbering:!0,showNumberOnHover:!0}],featuredCategories:[{id:1,designId:1,name:"Basic"},{id:1,designId:2,name:"Hero"},{id:2,designId:1,name:"Slider"},{id:2,designId:2,name:"Article"},{id:3,designId:2,name:"Photos"}],defaultCategory:{id:1,designId:1},templateThumbnailSize:"",scriptPath:"",snippetUrl:"assets/minimalist-blocks/content.js",snippetPath:"assets/minimalist-blocks/",snippetPathReplace:[],assetPath:"assets/",modulePath:"assets/modules/",contentStylePath:"assets/styles/",pluginPath:"contentbuilder/",fontAssetPath:"assets/fonts/",disableBootstrapIcons:!1,plugins:[],disableConfig:!0,maxColumns:6,useLightbox:!0,lightboxArrow:!0,backgroundColor:"transparent",imageselect:"",fileselect:"",imageSelect:"",fileSelect:"",videoselect:"",videoSelect:"",audioSelect:"",mediaSelect:"",filePickerSize:"medium",selectIcon:'<svg class="is-icon-flex" style="width:16px;height:16px;"><use xlink:href="#icon-folder"></use></svg>',otherSelect:"",otherSelectCaption:"Select Document",otherSelectIcon:'<svg class="is-icon-flex" style="width:16px;height:16px;"><use xlink:href="#icon-list-search"></use></svg>',imageSelectWidth:"88vw",imageSelectHeight:"88vh",fileSelectWidth:"88vw",fileSelectHeight:"88vh",videoSelectWidth:"88vw",videoSelectHeight:"88vh",audioSelectWidth:"88vw",audioSelectHeight:"88vh",mediaSelectWidth:"88vw",mediaSelectHeight:"88vh",otherSelectWidth:"88vw",otherSelectHeight:"88vh",imageSelectMaxWidth:"1600px",fileSelectMaxWidth:"1600px",videoSelectMaxWidth:"1600px",audioSelectMaxWidth:"1600px",mediaSelectMaxWidth:"1600px",otherSelectMaxWidth:"1600px",assetPanelFullScreen:!1,codeEditorWidth:"80vw",codeEditorHeight:"80vh",codeEditorMaxWidth:"1600px",blockCodeEditorWidth:"80vw",blockCodeEditorHeight:"45vh",blockCodeEditorMaxWidth:"960px",assetRefresh:!1,slider:"glide",navbar:!0,screenMode:"fullview",onRender:function(){},onChange:function(){},coverImageHandler:"",showSelectCover:!0,customval:"",enableAnimation:!1,colors:["#ff8f00","#ef6c00","#d84315","#c62828","#58362f","#37474f","#353535","#f9a825","#9e9d24","#558b2f","#ad1457","#6a1b9a","#4527a0","#616161","#00b8c9","#009666","#2e7d32","#0277bd","#1565c0","#283593","#9e9e9e"],swatches:["#ff8f00","#ef6c00","#d84315","#c62828","#58362f","#37474f","#f9a825","#9e9d24","#558b2f","#ad1457","#6a1b9a","#4527a0","#00b8c9","#009666","#2e7d32","#0277bd","#1565c0","#283593"],gradientcolors:[["linear-gradient(0deg, rgb(255, 57, 25), rgb(249, 168, 37))","light"],["linear-gradient(0deg, rgb(255, 57, 25), rgb(255, 104, 15))","light"],["linear-gradient(0deg, #FF5722, #FF9800)","light"],["linear-gradient(0deg, #613ca2, rgb(110, 123, 217))","light"],["linear-gradient(0deg, rgb(65, 70, 206), rgb(236, 78, 130))","light"],["linear-gradient(0deg, rgb(0, 150, 102), rgb(90, 103, 197))","light"],["linear-gradient(30deg, rgb(249, 119, 148), rgb(98, 58, 162))","light"],["linear-gradient(0deg, rgb(223, 70, 137), rgb(90, 103, 197))","light"],["linear-gradient(0deg, rgb(40, 53, 147), rgb(90, 103, 197))","light"],["linear-gradient(0deg, rgb(21, 101, 192), rgb(52, 169, 239))","light"],["linear-gradient(0deg, rgb(32, 149, 219), rgb(139, 109, 230))","light"],["linear-gradient(0deg, rgb(90, 103, 197), rgb(0, 184, 201))","light"],["linear-gradient(0deg, rgb(0, 184, 201), rgb(253, 187, 45))","light"],["linear-gradient(0deg, rgb(255, 208, 100), rgb(239, 98, 159))","light"],["linear-gradient(0deg, rgb(0, 214, 223), rgb(130, 162, 253))","light"],["linear-gradient(0deg, rgb(50, 234, 251), rgb(248, 247, 126))","dark"],["linear-gradient(0deg, rgb(141, 221, 255), rgb(255, 227, 255))","dark"],["linear-gradient(0deg, rgb(255, 170, 170), rgb(255, 255, 200))","dark"],["linear-gradient(0deg, rgb(239, 239, 239), rgb(252, 252, 252))","dark"]],shadowTemplates:["rgba(0,0,0,0.3) 0px 1px 3px 0px","rgba(0,0,0,0.15) 0px 1px 5px","rgba(0,0,0,0.16) 0px 3px 6px","rgba(0,0,0,0.22) 0px 10px 10px -5px","rgba(0,0,0,0.19) 0px 10px 20px","rgba(0,0,0,0.21) 0px 5px 6px","rgba(0,0,0,0.25) 0px 14px 28px","rgba(0,0,0,0.19) 0px 6px 20px 0px","rgba(0,0,0,0.08) 4px 17px 20px","rgba(0,0,0,0.12) 0px 11px 35px","rgba(0,0,0,0.06) 17px 17px 0px","rgba(0,0,0,0.1) 0px 0px 40px inset","rgba(22,22,22,0.2) 2em 2em 5em","rgba(0,0,0,0.24) 30px 30px 45px"],photoselect:"",moduleConfig:[],largerImageHandler:"",imageHandler:"",mediaHandler:"",videoHandler:"",audioHandler:"",fileHandler:"",cellFormat:"",rowFormat:"",row:"",cols:[],colequal:[],colsizes:[],classReplace:[],columnTool:!0,elementTool:!0,buttons:["bold","italic","underline","formatting","color","align","textsettings","createLink","tags","|","undo","redo","zoom","more"],buttonsMore:["icon","image","|","list","font","formatPara","|","preferences"],elementButtons:["left","center","right","full","undo","redo","zoom","more"],elementButtonsMore:["|","preferences"],iconButtons:["icon","color","textsettings","createLink","|","undo","redo","zoom","more"],iconButtonsMore:["|","preferences"],customTags:[],animateModal:!1,elementAnimate:!1,elementEditor:!0,imageQuality:.92,columnHtmlEditor:!0,rowHtmlEditor:!0,rowMoveButtons:!0,scrollableEditingToolbar:!0,toolbar:"top",toolbarDisplay:"auto",toolbarAddSnippetButton:!1,paste:"text",builderMode:"",rowcolOutline:!0,elementSelection:!0,animatedSorting:!1,dragWithoutHandle:!1,addButtonPlacement:"",snippetCategories:[[120,"Basic"],[118,"Article"],[101,"Headline"],[119,"Buttons"],[102,"Photos"],[103,"Profile"],[116,"Contact"],[104,"Products"],[105,"Features"],[106,"Process"],[107,"Pricing"],[108,"Skills"],[109,"Achievements"],[110,"Quotes"],[111,"Partners"],[112,"As Featured On"],[113,"Page Not Found"],[114,"Coming Soon"],[115,"Help, FAQ"]],defaultSnippetCategory:120,outlineMode:"",elementHighlight:!0,rowTool:"right",toolStyle:"",outlineStyle:"",rowHandle:!0,snippetAddTool:!0,mobileSimpleEdit:!1,clearPreferences:!1,imageEmbed:!0,undoRedoStyles:!0,undoContainerOnly:!1,absolutePath:!1,maxEmbedImageWidth:1600,zoom:1,shortenHTML:!0,advancedTimeline:!0,previewStyle:"top:auto;bottom:30px;left:90px;right:auto;",livePreviewOpen:!1,livePreviewAlwaysReload:!1,livePreviewReloadEvery:30,deleteConfirm:!1,blockRotate:!0,sectionTemplate:'\n <div class="is-section is-box is-section-100 box-autofit type-system-ui">\n <div class="is-overlay"></div>\n <div class="is-container is-content-1000 v2 size-18 leading-14">\n [%CONTENT%]\n </div>\n </div>\n ',formTemplate:"",defaultFontSizes:[16,17,18,19,24,32,48,54,76,96,120,200],fontSizeClassValues:[12,14,15,16,17,18,19,21,24,28,32,35,38,42,46,48,50,54,60,64,68,72,76,80,84,88,92,96,100,104,108,112,116,120,124,128,132,136,140,144,148,152,156,160,164,168,172,176,180,184,188,192,196,200,204,208,212,216,220,224,228,232,236,240,244,248,252,256,260,264,268,272,276,280,284,288,292,296,300,304,308,312,316,320,324,328,332,336,340,344,348,352,356,360,364,368,372,376,380,384,388,392,396,400],leadingPreset:[1,1.1,1.2,1.3,1.4,1.6,1.8],contentSizes:[300,320,340,360,380,400,420,440,460,480,500,520,540,560,580,600,620,640,660,680,700,720,740,760,780,800,820,840,860,880,900,920,940,960,970,980,1e3,1020,1040,1050,1060,1080,1100,1120,1140,1160,1180,1200,1220,1240,1260,1280,1300,1320,1340,1360,1380,1400,1420,1440,1460,1480,1500,1520,1540,1560,1580,1600,1620,1640,1660,1680,1700,1720,1740,1760,1780,1800,1820,1840,1860,1880,1900,1920,1940,1960,1980,2e3,2020,2040,2060,2080,2100,2120,2140,2160,2180,2200,2220,2240,2260,2280,2300,2320,2340,2360,2380,2400,2420,2440,2460,2480,2500,2520,2540,2560,2580,2600,2620,2640,2660,2680,2700],contentStyles:{data:{categories:[{id:-1,desc:"ALL"},{id:1,desc:"Sans-serif & Sans-serif"},{id:2,desc:"Serif & Serif"},{id:3,desc:"Sans-serif & Serif"},{id:4,desc:"Serif & Sans-serif"},{id:5,desc:"Monospace & Monospace"},{id:6,desc:"Monospace & Sans-serif"},{id:7,desc:"Sans-serif & Monospace"},{id:8,desc:"Display & Sans-serif"},{id:9,desc:"Handwriting & Sans-serif"},{id:10,desc:"Display & Serif"},{id:11,desc:"Handwriting & Serif"},{id:12,desc:"Display & Monospace"},{id:13,desc:"Handwriting & Monospace"},{id:14,desc:"Display & Display"}],styles:[{css:"basetype-system-ui.css",sectioncss:"type-system-ui.css",classname:"type-system-ui",img:"115.png",category:9,default:!0,caption:"system-ui"},{css:"basetype-opensans.css",sectioncss:"type-opensans.css",classname:"type-opensans",img:"000.png",category:9,default:!0,caption:"Open Sans"},{css:"basetype-roboto.css",sectioncss:"type-roboto.css",classname:"type-roboto",img:"116.png",category:9,default:!0,caption:"Roboto"},{css:"basetype-spectralsc-karma.css",sectioncss:"type-spectralsc-karma.css",classname:"type-spectralsc-karma",img:"004.png",category:2,default:!0,caption:"Spectral SC & Karma"},{css:"basetype-alegreyasanssc-hind.css",sectioncss:"type-alegreyasanssc-hind.css",classname:"type-alegreyasanssc-hind",img:"006.png",category:1,default:!0,caption:"Alegreya Sans SC & Hind"},{css:"basetype-cabinsketch-montserrat.css",sectioncss:"type-cabinsketch-montserrat.css",classname:"type-cabinsketch-montserrat",img:"007.png",category:8,default:!0,caption:"Cabin Sketch & Montserrat"},{css:"basetype-anonymouspro-catamaran.css",sectioncss:"type-anonymouspro-catamaran.css",classname:"type-anonymouspro-catamaran",img:"010.png",category:6,default:!0,caption:"Anonymous Pro & Catamaran"},{css:"basetype-nothingyouc-ibmplexmono.css",sectioncss:"type-nothingyouc-ibmplexmono.css",classname:"type-nothingyouc-ibmplexmono",img:"011.png",category:13,default:!0,caption:"Nothing You Could Do & IBM Plex Mono"},{css:"basetype-juliussansone-taviraj.css",sectioncss:"type-juliussansone-taviraj.css",classname:"type-juliussansone-taviraj",img:"012.png",category:3,default:!0,caption:"Julius Sans One & Taviraj"},{css:"basetype-voltaire-sourcecodepro.css",sectioncss:"type-voltaire-sourcecodepro.css",classname:"type-voltaire-sourcecodepro",img:"013.png",category:7,default:!0,caption:"Voltaire & Source Code Pro"},{css:"basetype-oregano-zillaslab.css",sectioncss:"type-oregano-zillaslab.css",classname:"type-oregano-zillaslab",img:"014.png",category:10,default:!0,caption:"Oregano & Zilla Slab"},{css:"basetype-anonymouspro.css",sectioncss:"type-anonymouspro.css",classname:"type-anonymouspro",img:"016.png",category:5,default:!1,caption:"Anonymous Pro"},{css:"basetype-dancingscript-anonymouspro.css",sectioncss:"type-dancingscript-anonymouspro.css",classname:"type-dancingscript-anonymouspro",img:"018.png",category:13,default:!1,caption:"Dancing Script & Anonymous Pro"},{css:"basetype-unicaone-cormorantgaramond.css",sectioncss:"type-unicaone-cormorantgaramond.css",classname:"type-unicaone-cormorantgaramond",img:"019.png",category:10,default:!1,caption:"Unica One & Cormorant Garamond"},{css:"basetype-allan-overpassmono.css",sectioncss:"type-allan-overpassmono.css",classname:"type-allan-overpassmono",img:"020.png",category:12,default:!1,caption:"Allan & Overpass Mono"},{css:"basetype-averialibre-barlow.css",sectioncss:"type-averialibre-barlow.css",classname:"type-averialibre-barlow",img:"021.png",category:8,default:!1,caption:"Averia Libre & Barlow"},{css:"basetype-merriweathersans-martel.css",sectioncss:"type-merriweathersans-martel.css",classname:"type-merriweathersans-martel",img:"022.png",category:3,default:!1,caption:"Merriweather Sans & Martel"},{css:"basetype-poppins.css",sectioncss:"type-poppins.css",classname:"type-poppins",img:"023.png",category:1,default:!1,caption:"Poppins"},{css:"basetype-specialelite-encodesans.css",sectioncss:"type-specialelite-encodesans.css",classname:"type-specialelite-encodesans",img:"026.png",category:8,default:!1,caption:"Special Elite & Encode Sans"},{css:"basetype-marcellussc-heebo.css",sectioncss:"type-marcellussc-heebo.css",classname:"type-marcellussc-heebo",img:"028.png",category:4,default:!1,caption:"Marcellus SC & Heebo"},{css:"basetype-oswald-cousine.css",sectioncss:"type-oswald-cousine.css",classname:"type-oswald-cousine",img:"029.png",category:7,default:!1,caption:"Oswald & Cousine"},{css:"basetype-oranienbaum-sourcesanspro.css",sectioncss:"type-oranienbaum-sourcesanspro.css",classname:"type-oranienbaum-sourcesanspro",img:"031.png",category:4,default:!1,caption:"Oranienbaum & Source Sans Pro"},{css:"basetype-sriracha-arvo.css",sectioncss:"type-sriracha-arvo.css",classname:"type-sriracha-arvo",img:"032.png",category:11,default:!1,caption:"Sriracha & Arvo"},{css:"basetype-merriweather.css",sectioncss:"type-merriweather.css",classname:"type-merriweather",img:"033.png",category:2,default:!1,caption:"Merriweather"},{css:"basetype-badscript-rokkitt.css",sectioncss:"type-badscript-rokkitt.css",classname:"type-badscript-rokkitt",img:"034.png",category:11,default:!1,caption:"Bad Script & Rokkitt"},{css:"basetype-inconsolata.css",sectioncss:"type-inconsolata.css",classname:"type-inconsolata",img:"036.png",category:5,default:!1,caption:"Inconsolata"},{css:"basetype-novamono-robotomono.css",sectioncss:"type-novamono-robotomono.css",classname:"type-novamono-robotomono",img:"037.png",category:5,default:!1,caption:"Nova Mono & Roboto Mono"},{css:"basetype-spacemono.css",sectioncss:"type-spacemono.css",classname:"type-spacemono",img:"038.png",category:5,default:!1,caption:"Space Mono"},{css:"basetype-elsie-frankruhllibre.css",sectioncss:"type-elsie-frankruhllibre.css",classname:"type-elsie-frankruhllibre",img:"042.png",category:10,default:!1,caption:"Elsie & Frank Ruhl Libre"},{css:"basetype-playfairdisp-petitformalscr.css",sectioncss:"type-playfairdisp-petitformalscr.css",classname:"type-playfairdisp-petitformalscr",img:"043.png",category:2,default:!1,caption:"Playfair Display"},{css:"basetype-josefinsans-neuton.css",sectioncss:"type-josefinsans-neuton.css",classname:"type-josefinsans-neuton",img:"044.png",category:3,default:!1,caption:"Josefin Sans & Neuton"},{css:"basetype-stintultracon-inconsolata.css",sectioncss:"type-stintultracon-inconsolata.css",classname:"type-stintultracon-inconsolata",img:"045.png",category:12,default:!1,caption:"Stint Ultra Condensed & Inconsolata"},{css:"basetype-raleway-playfairdisplay.css",sectioncss:"type-raleway-playfairdisplay.css",classname:"type-raleway-playfairdisplay",img:"047.png",category:1,default:!1,caption:"Raleway"},{css:"basetype-ubuntumono-sourcecodepro.css",sectioncss:"type-ubuntumono-sourcecodepro.css",classname:"type-ubuntumono-sourcecodepro",img:"049.png",category:5,default:!1,caption:"Ubuntu Mono & Source Code Pro"},{css:"basetype-sharetechmono-nunito.css",sectioncss:"type-sharetechmono-nunito.css",classname:"type-sharetechmono-nunito",img:"050.png",category:6,default:!1,caption:"Share Tech Mono & Nunito"},{css:"basetype-lato.css",sectioncss:"type-lato.css",classname:"type-lato",img:"051.png",category:1,default:!1,caption:"Lato"},{css:"basetype-pathwaygothicone-merriweather.css",sectioncss:"type-pathwaygothicone-merriweather.css",classname:"type-pathwaygothicone-merriweather",img:"052.png",category:3,default:!1,caption:"Pathway Gothic One & Merriweather"},{css:"basetype-forum-nanumgothiccoding.css",sectioncss:"type-forum-nanumgothiccoding.css",classname:"type-forum-nanumgothiccoding",img:"053.png",category:12,default:!1,caption:"Forum & Nanum Gothic Coding"},{css:"basetype-bilbo-halant.css",sectioncss:"type-bilbo-halant.css",classname:"type-bilbo-halant",img:"054.png",category:11,default:!1,caption:"Bilbo & Halant"},{css:"basetype-hammersmithone-poppins.css",sectioncss:"type-hammersmithone-poppins.css",classname:"type-hammersmithone-poppins",img:"057.png",category:1,default:!1,caption:"Hammersmith One & Poppins"},{css:"basetype-arimamadurai.css",sectioncss:"type-arimamadurai.css",classname:"type-arimamadurai",img:"058.png",category:14,default:!1,caption:"Arima Madurai"},{css:"basetype-teko-muktamahee.css",sectioncss:"type-teko-muktamahee.css",classname:"type-teko-muktamahee",img:"059.png",category:1,default:!1,caption:"Teko & Mukta Mahee"},{css:"basetype-heebo-ibmplexmono.css",sectioncss:"type-heebo-ibmplexmono.css",classname:"type-heebo-ibmplexmono",img:"060.png",category:7,default:!1,caption:"Heebo & IBM Plex Mono"},{css:"basetype-sairacon-thegirlnextdoor.css",sectioncss:"type-sairacon-thegirlnextdoor.css",classname:"type-sairacon-thegirlnextdoor",img:"062.png",category:1,default:!1,caption:"Saira Condensed"},{css:"basetype-frankruhllibre-lato.css",sectioncss:"type-frankruhllibre-lato.css",classname:"type-frankruhllibre-lato",img:"063.png",category:4,default:!1,caption:"Frank Ruhl Libre & Lato"},{css:"basetype-yantramanav-ibmplexserif.css",sectioncss:"type-yantramanav-ibmplexserif.css",classname:"type-yantramanav-ibmplexserif",img:"064.png",category:1,default:!1,caption:"Yantramanav & IBM Plex Serif"},{css:"basetype-quicksand-kalam.css",sectioncss:"type-quicksand-kalam.css",classname:"type-quicksand-kalam",img:"065.png",category:1,default:!1,caption:"Quicksand & Kalam"},{css:"basetype-ibmplexmono.css",sectioncss:"type-ibmplexmono.css",classname:"type-ibmplexmono",img:"066.png",category:5,default:!1,caption:"IBM Plex Mono"},{css:"basetype-cinzeldecor-palanquin.css",sectioncss:"type-cinzeldecor-palanquin.css",classname:"type-cinzeldecor-palanquin",img:"067.png",category:8,default:!1,caption:"Cinzel Decorative & Palanquin"},{css:"basetype-oswald-biryani.css",sectioncss:"type-oswald-biryani.css",classname:"type-oswald-biryani",img:"069.png",category:1,default:!1,caption:"Oswald & Biryani"},{css:"basetype-yanonekaff-josefinsans.css",sectioncss:"type-yanonekaff-josefinsans.css",classname:"type-yanonekaff-josefinsans",img:"070.png",category:1,default:!1,caption:"Yanone Kaffeesatz & Josefin Sans"},{css:"basetype-abrilfatface-assistant.css",sectioncss:"type-abrilfatface-assistant.css",classname:"type-abrilfatface-assistant",img:"071.png",category:8,default:!1,caption:"Abril Fatface & Assistant"},{css:"basetype-nanumgothiccod-firasanscon.css",sectioncss:"type-nanumgothiccod-firasanscon.css",classname:"type-nanumgothiccod-firasanscon",img:"072.png",category:6,default:!1,caption:"Nanum Gothic Coding & Fira Sans Condensed"},{css:"basetype-inder-trirong.css",sectioncss:"type-inder-trirong.css",classname:"type-inder-trirong",img:"073.png",category:3,default:!1,caption:"Inder & Trirong"},{css:"basetype-atma-tajawal.css",sectioncss:"type-atma-tajawal.css",classname:"type-atma-tajawal",img:"075.png",category:8,default:!1,caption:"Atma & Tajawal"},{css:"basetype-prata-hindsiliguri.css",sectioncss:"type-prata-hindsiliguri.css",classname:"type-prata-hindsiliguri",img:"076.png",category:4,default:!1,caption:"Prata & Hind Siliguri"},{css:"basetype-federo-gothica1.css",sectioncss:"type-federo-gothica1.css",classname:"type-federo-gothica1",img:"078.png",category:1,default:!1,caption:"Federo & Gothic A1"},{css:"basetype-fjallaone-ibmplexserif.css",sectioncss:"type-fjallaone-ibmplexserif.css",classname:"type-fjallaone-ibmplexserif",img:"079.png",category:3,default:!1,caption:"Fjalla One & IBM Plex Serif"},{css:"basetype-cormorantsc-ibmplexsanscon.css",sectioncss:"type-cormorantsc-ibmplexsanscon.css",classname:"type-cormorantsc-ibmplexsanscon",img:"081.png",category:4,default:!1,caption:"Cormorant SC & IBM Plex Sans Condensed"},{css:"basetype-kalam-robotomono.css",sectioncss:"type-kalam-robotomono.css",classname:"type-kalam-robotomono",img:"082.png",category:13,default:!1,caption:"Kalam & Roboto Mono"},{css:"basetype-fugazone-librefranklin.css",sectioncss:"type-fugazone-librefranklin.css",classname:"type-fugazone-librefranklin",img:"083.png",category:8,default:!1,caption:"Fugaz One & Libre Franklin"},{css:"basetype-yeonsung-palanquin.css",sectioncss:"type-yeonsung-palanquin.css",classname:"type-yeonsung-palanquin",img:"085.png",category:8,default:!1,caption:"Yeon Sung & Palanquin"},{css:"basetype-rancho-robotoslab.css",sectioncss:"type-rancho-robotoslab.css",classname:"type-rancho-robotoslab",img:"086.png",category:11,default:!1,caption:"Rancho & Roboto Slab"},{css:"basetype-tenaram-overpassmono.css",sectioncss:"type-tenaram-overpassmono.css",classname:"type-tenaram-overpassmono",img:"087.png",category:7,default:!1,caption:"Tenali Ramakrishna & Overpass Mono"},{css:"basetype-thegirlnextdoor-sourcesanspro.css",sectioncss:"type-thegirlnextdoor-sourcesanspro.css",classname:"type-thegirlnextdoor-sourcesanspro",img:"088.png",category:9,default:!1,caption:"The Girl Next Door & Source Sans Pro"},{css:"basetype-boogaloo-inconsolata.css",sectioncss:"type-boogaloo-inconsolata.css",classname:"type-boogaloo-inconsolata",img:"090.png",category:12,default:!1,caption:"Boogaloo & Inconsolata"},{css:"basetype-caveat-sourcecodepro.css",sectioncss:"type-caveat-sourcecodepro.css",classname:"type-caveat-sourcecodepro",img:"091.png",category:13,default:!1,caption:"Caveat & Source Code Pro"},{css:"basetype-passionone-worksans.css",sectioncss:"type-passionone-worksans.css",classname:"type-passionone-worksans",img:"092.png",category:8,default:!1,caption:"Passion One & Work Sans"},{css:"basetype-anticdidone-halant.css",sectioncss:"type-anticdidone-halant.css",classname:"type-anticdidone-halant",img:"093.png",category:2,default:!1,caption:"Antic Didone & Halant"},{css:"basetype-adventpro-opensans.css",sectioncss:"type-adventpro-opensans.css",classname:"type-adventpro-opensans",img:"094.png",category:1,default:!1,caption:"Advent Pro & Open Sans"},{css:"basetype-cutivemono-lato.css",sectioncss:"type-cutivemono-lato.css",classname:"type-cutivemono-lato",img:"095.png",category:6,default:!1,caption:"Cutive Mono & Lato"},{css:"basetype-elsie-montserrat.css",sectioncss:"type-elsie-montserrat.css",classname:"type-elsie-montserrat",img:"096.png",category:8,default:!1,caption:"Elsie & Montserrat"},{css:"basetype-macondo-mukta.css",sectioncss:"type-macondo-mukta.css",classname:"type-macondo-mukta",img:"097.png",category:8,default:!1,caption:"Macondo & Mukta"},{css:"basetype-oswald-opensans.css",sectioncss:"type-oswald-opensans.css",classname:"type-oswald-opensans",img:"098.png",category:1,default:!1,caption:"Oswald & Open Sans"},{css:"basetype-poppins-lekton.css",sectioncss:"type-poppins-lekton.css",classname:"type-poppins-lekton",img:"099.png",category:1,default:!1,caption:"Poppins & Lekton"},{css:"basetype-raleway-neuton.css",sectioncss:"type-raleway-neuton.css",classname:"type-raleway-neuton",img:"100.png",category:3,default:!1,caption:"Raleway & Neuton"},{css:"basetype-sourcecodepro-nunitosans.css",sectioncss:"type-sourcecodepro-nunitosans.css",classname:"type-sourcecodepro-nunitosans",img:"101.png",category:6,default:!1,caption:"Source Code Pro & Nunito Sans"},{css:"basetype-tangerine-opensans.css",sectioncss:"type-tangerine-opensans.css",classname:"type-tangerine-opensans",img:"102.png",category:9,default:!1,caption:"Tangerine & Open Sans"},{css:"basetype-alegreya-lato.css",sectioncss:"type-alegreya-lato.css",classname:"type-alegreya-lato",img:"103.png",category:4,default:!1,caption:"Alegreya & Lato"},{css:"basetype-amaticsc-lato.css",sectioncss:"type-amaticsc-lato.css",classname:"type-amaticsc-lato",img:"104.png",category:9,default:!1,caption:"Amatic SC & Lato"},{css:"basetype-heebo-ibmplexmono-2.css",sectioncss:"type-heebo-ibmplexmono-2.css",classname:"type-heebo-ibmplexmono-2",img:"105.png",category:7,default:!1,caption:"Heebo & IBM Plex Mono"},{css:"basetype-juliussansone-robotocondensed.css",sectioncss:"type-juliussansone-robotocondensed.css",classname:"type-juliussansone-robotocondensed",img:"106.png",category:1,default:!1,caption:"Julius Sans One & Roboto Condensed"},{css:"basetype-montserrat-roboto.css",sectioncss:"type-montserrat-roboto.css",classname:"type-montserrat-roboto",img:"107.png",category:1,default:!1,caption:"Montserrat & Roboto"},{css:"basetype-nothingyouc-ibmplexmono-2.css",sectioncss:"type-nothingyouc-ibmplexmono-2.css",classname:"type-nothingyouc-ibmplexmono-2",img:"108.png",category:13,default:!1,caption:"Nothing You Could Do & IBM Plex Mono"},{css:"basetype-raleway-lato.css",sectioncss:"type-raleway-lato.css",classname:"type-raleway-lato",img:"109.png",category:1,default:!1,caption:"Raleway & Lato"},{css:"basetype-raleway-lusitana.css",sectioncss:"type-raleway-lusitana.css",classname:"type-raleway-lusitana",img:"110.png",category:3,default:!1,caption:"Raleway & Lusitana"},{css:"basetype-rufina-oxygen.css",sectioncss:"type-rufina-oxygen.css",classname:"type-rufina-oxygen",img:"111.png",category:4,default:!1,caption:"Rufina & Oxygen"},{css:"basetype-sacramento-opensans.css",sectioncss:"type-sacramento-opensans.css",classname:"type-sacramento-opensans",img:"112.png",category:9,default:!1,caption:"Sacramento & Open Sans"},{css:"basetype-specialelite-playfairdisplay.css",sectioncss:"type-specialelite-playfairdisplay.css",classname:"type-specialelite-playfairdisplay",img:"113.png",category:10,default:!1,caption:"Special Elite & Playfair Display"},{css:"basetype-unicaone-sourcesanspro.css",sectioncss:"type-unicaone-sourcesanspro.css",classname:"type-unicaone-sourcesanspro",img:"114.png",category:8,default:!1,caption:"Unica One & Source Sans Pro"},{css:"basetype-amaticsc-josepfinsans.css",sectioncss:"type-amaticsc-josepfinsans.css",classname:"type-amaticsc-josepfinsans",img:"001.png",category:9,default:!0,caption:"Amatic SC & Josefin Sans"},{css:"basetype-sourcesanspro-anonymouspro.css",sectioncss:"type-sourcesanspro-anonymouspro.css",classname:"type-sourcesanspro-anonymouspro",img:"002.png",category:7,default:!0,caption:"Source Sans Pro & Anonymous Pro"},{css:"basetype-poppins-oldstandardtt.css",sectioncss:"type-poppins-oldstandardtt.css",classname:"type-poppins-oldstandardtt",img:"003.png",category:3,default:!0,caption:"Poppins & Old Standard TT"},{css:"basetype-yesteryear-chivo.css",sectioncss:"type-yesteryear-chivo.css",classname:"type-yesteryear-chivo",img:"005.png",category:9,default:!0,caption:"Yesteryear & Chivo"},{css:"basetype-ptserif-poppins.css",sectioncss:"type-ptserif-poppins.css",classname:"type-ptserif-poppins",img:"008.png",category:4,default:!0,caption:"PT Serif & Poppins"},{css:"basetype-kellyslab-yantramanav.css",sectioncss:"type-kellyslab-yantramanav.css",classname:"type-kellyslab-yantramanav",img:"009.png",category:8,default:!0,caption:"Kelly Slab & Yantramanav"},{css:"basetype-yellowtail-frankruhllibre.css",sectioncss:"type-yellowtail-frankruhllibre.css",classname:"type-yellowtail-frankruhllibre",img:"015.png",category:11,default:!0,caption:"Yellowtail & Frank Ruhl Libre"},{css:"basetype-sedgwickave-spectral.css",sectioncss:"type-sedgwickave-spectral.css",classname:"type-sedgwickave-spectral",img:"017.png",category:10,default:!1,caption:"Sedgwick Ave & Spectral"},{css:"basetype-satisfy-economica.css",sectioncss:"type-satisfy-economica.css",classname:"type-satisfy-economica",img:"024.png",category:9,default:!1,caption:"Satisfy & Economica"},{css:"basetype-josefinsans-lekton.css",sectioncss:"type-josefinsans-lekton.css",classname:"type-josefinsans-lekton",img:"025.png",category:1,default:!1,caption:"Josefin Sans & Lekton"},{css:"basetype-parisienne-maitree.css",sectioncss:"type-parisienne-maitree.css",classname:"type-parisienne-maitree",img:"027.png",category:11,default:!1,caption:"Parisienne & Maitree"},{css:"basetype-londrinashadow-martel.css",sectioncss:"type-londrinashadow-martel.css",classname:"type-londrinashadow-martel",img:"030.png",category:10,default:!1,caption:"Londrina Shadow & Martel"},{css:"basetype-poiretone-pridi.css",sectioncss:"type-poiretone-pridi.css",classname:"type-poiretone-pridi",img:"035.png",category:10,default:!1,caption:"Poiret One & Pridi"},{css:"basetype-pollerone-ibmplexserif.css",sectioncss:"type-pollerone-ibmplexserif.css",classname:"type-pollerone-ibmplexserif",img:"039.png",category:10,default:!1,caption:"Poller One & IBM Plex Serif"},{css:"basetype-italiana-martel.css",sectioncss:"type-italiana-martel.css",classname:"type-italiana-martel",img:"040.png",category:2,default:!1,caption:"Italiana & Martel"},{css:"basetype-julee-lora.css",sectioncss:"type-julee-lora.css",classname:"type-julee-lora",img:"041.png",category:11,default:!1,caption:"Julee & Lora"},{css:"basetype-sixcaps-robotomono.css",sectioncss:"type-sixcaps-robotomono.css",classname:"type-sixcaps-robotomono",img:"046.png",category:7,default:!1,caption:"Six Caps & Roboto Mono"},{css:"basetype-pacifico-nanumgothiccod.css",sectioncss:"type-pacifico-nanumgothiccod.css",classname:"type-pacifico-nanumgothiccod",img:"048.png",category:13,default:!1,caption:"Pacifico & Nanum Gothic Coding"},{css:"basetype-greatvibes-robotomono.css",sectioncss:"type-greatvibes-robotomono.css",classname:"type-greatvibes-robotomono",img:"055.png",category:13,default:!1,caption:"Great Vibes & Roboto Mono"},{css:"basetype-pinyonscript-firasans.css",sectioncss:"type-pinyonscript-firasans.css",classname:"type-pinyonscript-firasans",img:"056.png",category:9,default:!1,caption:"Pinyon Script & Fira Sans"},{css:"basetype-sail-rasa.css",sectioncss:"type-sail-rasa.css",classname:"type-sail-rasa",img:"061.png",category:10,default:!1,caption:"Sail & Rasa"},{css:"basetype-yesevaone-forum.css",sectioncss:"type-yesevaone-forum.css",classname:"type-yesevaone-forum",img:"068.png",category:14,default:!1,caption:"Yeseva One & Forum"},{css:"basetype-dosis-oldstandardtt.css",sectioncss:"type-dosis-oldstandardtt.css",classname:"type-dosis-oldstandardtt",img:"074.png",category:1,default:!1,caption:"Dosis & Old Standard TT"},{css:"basetype-engagement-spectral.css",sectioncss:"type-engagement-spectral.css",classname:"type-engagement-spectral",img:"077.png",category:11,default:!1,caption:"Engagement & Spectral"},{css:"basetype-dynalight-mada.css",sectioncss:"type-dynalight-mada.css",classname:"type-dynalight-mada",img:"080.png",category:8,default:!1,caption:"Dynalight & Mada"},{css:"basetype-gravitasone-nanummyeongjo.css",sectioncss:"type-gravitasone-nanummyeongjo.css",classname:"type-gravitasone-nanummyeongjo",img:"084.png",category:10,default:!1,caption:"Gravitas One & Nanum Myeongjo"},{css:"basetype-alexbrush-ibmplexsans.css",sectioncss:"type-alexbrush-ibmplexsans.css",classname:"type-alexbrush-ibmplexsans",img:"089.png",category:9,default:!1,caption:"Alex Brush & IBM Plex Sans"}]}},contentStylesV2:{data:{categories:[{id:-1,desc:"ALL"},{id:1,desc:"Sans-serif & Sans-serif"},{id:2,desc:"Serif & Serif"},{id:3,desc:"Sans-serif & Serif"},{id:4,desc:"Serif & Sans-serif"},{id:5,desc:"Monospace & Monospace"},{id:6,desc:"Monospace & Sans-serif"},{id:7,desc:"Sans-serif & Monospace"},{id:8,desc:"Display & Sans-serif"},{id:9,desc:"Handwriting & Sans-serif"},{id:10,desc:"Display & Serif"},{id:11,desc:"Handwriting & Serif"},{id:12,desc:"Display & Monospace"},{id:13,desc:"Handwriting & Monospace"},{id:14,desc:"Display & Display"}],styles:[{css:"basetype-system-ui.css",sectioncss:"type-system-ui.css",classname:"type-system-ui",img:"type-system-native.png",category:1,default:!0,caption:"system-native"},{css:"basetype-classic-editorial.css",sectioncss:"type-classic-editorial.css",classname:"type-classic-editorial",img:"type-classic-editorial.png",category:2,default:!0,caption:"classic-editorial"},{css:"basetype-material-standard.css",sectioncss:"type-material-standard.css",classname:"type-material-standard",img:"type-material-standard.png",category:1,default:!0,caption:"material-standard"},{css:"basetype-neutral-workhorse.css",sectioncss:"type-neutral-workhorse.css",classname:"type-neutral-workhorse",img:"type-neutral-workhorse.png",category:1,default:!0,caption:"neutral-workhorse"},{css:"basetype-contemporary-editorial.css",sectioncss:"type-contemporary-editorial.css",classname:"type-contemporary-editorial",img:"type-contemporary-editorial.png",category:4,default:!0,caption:"contemporary-editorial"},{css:"basetype-literary-journal.css",sectioncss:"type-literary-journal.css",classname:"type-literary-journal",img:"type-literary-journal.png",category:4,default:!0,caption:"literary-journal"},{css:"basetype-swiss-modern.css",sectioncss:"type-swiss-modern.css",classname:"type-swiss-modern",img:"type-swiss-modern.png",category:3,default:!0,caption:"swiss-modern"},{css:"basetype-luxury-fashion.css",sectioncss:"type-luxury-fashion.css",classname:"type-luxury-fashion",img:"type-luxury-fashion.png",category:4,default:!0,caption:"luxury-fashion"},{css:"basetype-refined-minimalism.css",sectioncss:"type-refined-minimalism.css",classname:"type-refined-minimalism",img:"type-refined-minimalism.png",category:1,default:!0,caption:"refined-minimalism"},{css:"basetype-new-wave-editorial.css",sectioncss:"type-new-wave-editorial.css",classname:"type-new-wave-editorial",img:"type-new-wave-editorial.png",category:4,default:!0,caption:"new-wave-editorial"},{css:"basetype-art-deco-revival.css",sectioncss:"type-art-deco-revival.css",classname:"type-art-deco-revival",img:"type-art-deco-revival.png",category:4,default:!0,caption:"art-deco-revival"},{css:"basetype-architectural-studio.css",sectioncss:"type-architectural-studio.css",classname:"type-architectural-studio",img:"type-architectural-studio.png",category:3,default:!0,caption:"architectural-studio"},{css:"basetype-scandinavian-clean.css",sectioncss:"type-scandinavian-clean.css",classname:"type-scandinavian-clean",img:"type-scandinavian-clean.png",category:4,default:!0,caption:"scandinavian-clean"},{css:"basetype-avant-garde-magazine.css",sectioncss:"type-avant-garde-magazine.css",classname:"type-avant-garde-magazine",img:"type-avant-garde-magazine.png",category:3,default:!0,caption:"avant-garde-magazine"},{css:"basetype-timeless-classic.css",sectioncss:"type-timeless-classic.css",classname:"type-timeless-classic",img:"type-timeless-classic.png",category:4,default:!0,caption:"timeless-classic"},{css:"basetype-brutalist-refined.css",sectioncss:"type-brutalist-refined.css",classname:"type-brutalist-refined",img:"type-brutalist-refined.png",category:1,default:!0,caption:"brutalist-refined"},{css:"basetype-contemporary-classic.css",sectioncss:"type-contemporary-classic.css",classname:"type-contemporary-classic",img:"type-contemporary-classic.png",category:4,default:!0,caption:"contemporary-classic"},{css:"basetype-tech-editorial.css",sectioncss:"type-tech-editorial.css",classname:"type-tech-editorial",img:"type-tech-editorial.png",category:4,default:!0,caption:"tech-editorial"},{css:"basetype-gallery-modern.css",sectioncss:"type-gallery-modern.css",classname:"type-gallery-modern",img:"type-gallery-modern.png",category:4,default:!0,caption:"gallery-modern"},{css:"basetype-organic-artisan.css",sectioncss:"type-organic-artisan.css",classname:"type-organic-artisan",img:"type-organic-artisan.png",category:4,default:!0,caption:"organic-artisan"},{css:"basetype-modern-sans.css",sectioncss:"type-modern-sans.css",classname:"type-modern-sans",img:"type-modern-sans.png",category:1,default:!0,caption:"modern-sans"},{css:"basetype-inter-clean.css",sectioncss:"type-inter-clean.css",classname:"type-inter-clean",img:"type-inter-clean.png",category:1,default:!0,caption:"inter-clean"},{css:"basetype-mono-technical.css",sectioncss:"type-mono-technical.css",classname:"type-mono-technical",img:"type-mono-technical.png",category:5,default:!0,caption:"mono-technical"},{css:"basetype-space-grotesk.css",sectioncss:"type-space-grotesk.css",classname:"type-space-grotesk",img:"type-space-grotesk.png",category:1,default:!0,caption:"space-grotesk"},{css:"basetype-dm-sans-pure.css",sectioncss:"type-dm-sans-pure.css",classname:"type-dm-sans-pure",img:"type-dm-sans-pure.png",category:1,default:!0,caption:"dm-sans-pure"},{css:"basetype-outfit-essential.css",sectioncss:"type-outfit-essential.css",classname:"type-outfit-essential",img:"type-outfit-essential.png",category:1,default:!0,caption:"outfit-essential"},{css:"basetype-genz-bold.css",sectioncss:"type-genz-bold.css",classname:"type-genz-bold",img:"type-genz-bold.png",category:1,default:!0,caption:"genz-bold"},{css:"basetype-candy-pop.css",sectioncss:"type-candy-pop.css",classname:"type-candy-pop",img:"type-candy-pop.png",category:1,default:!0,caption:"candy-pop"},{css:"basetype-blush-bloom.css",sectioncss:"type-blush-bloom.css",classname:"type-blush-bloom",img:"type-blush-bloom.png",category:4,default:!0,caption:"blush-bloom"},{css:"basetype-70s-revival.css",sectioncss:"type-70s-revival.css",classname:"type-70s-revival",img:"type-70s-revival.png",category:4,default:!0,caption:"70s-revival"},{css:"basetype-trail-explorer.css",sectioncss:"type-trail-explorer.css",classname:"type-trail-explorer",img:"type-trail-explorer.png",category:8,default:!0,caption:"trail-explorer"},{css:"basetype-founder-mode.css",sectioncss:"type-founder-mode.css",classname:"type-founder-mode",img:"type-founder-mode.png",category:1,default:!0,caption:"founder-mode"},{css:"basetype-cornerstone.css",sectioncss:"type-cornerstone.css",classname:"type-cornerstone",img:"type-cornerstone.png",category:4,default:!0,caption:"cornerstone"},{css:"basetype-analog-era.css",sectioncss:"type-analog-era.css",classname:"type-analog-era",img:"type-analog-era.png",category:6,default:!0,caption:"analog-era"},{css:"basetype-launch-day.css",sectioncss:"type-launch-day.css",classname:"type-launch-day",img:"type-launch-day.png",category:1,default:!0,caption:"launch-day"},{css:"basetype-botanical-garden.css",sectioncss:"type-botanical-garden.css",classname:"type-botanical-garden",img:"type-botanical-garden.png",category:2,default:!0,caption:"botanical-garden"},{css:"basetype-city-guide.css",sectioncss:"type-city-guide.css",classname:"type-city-guide",img:"type-city-guide.png",category:4,default:!0,caption:"city-guide"},{css:"basetype-grand-tour.css",sectioncss:"type-grand-tour.css",classname:"type-grand-tour",img:"type-grand-tour.png",category:4,default:!0,caption:"grand-tour"},{css:"basetype-classic-authority.css",sectioncss:"type-classic-authority.css",classname:"type-classic-authority",img:"type-classic-authority.png",category:4,default:!0,caption:"classic-authority"},{css:"basetype-startup-friendly.css",sectioncss:"type-startup-friendly.css",classname:"type-startup-friendly",img:"type-startup-friendly.png",category:1,default:!0,caption:"startup-friendly"},{css:"basetype-cultural-heritage.css",sectioncss:"type-cultural-heritage.css",classname:"type-cultural-heritage",img:"type-cultural-heritage.png",category:4,default:!0,caption:"cultural-heritage"},{css:"basetype-spicy-kitchen.css",sectioncss:"type-spicy-kitchen.css",classname:"type-spicy-kitchen",img:"type-spicy-kitchen.png",category:10,default:!0,caption:"spicy-kitchen"},{css:"basetype-dev-console.css",sectioncss:"type-dev-console.css",classname:"type-dev-console",img:"type-dev-console.png",category:5,default:!0,caption:"dev-console"},{css:"basetype-retro-terminal.css",sectioncss:"type-retro-terminal.css",classname:"type-retro-terminal",img:"type-retro-terminal.png",category:5,default:!0,caption:"retro-terminal"},{css:"basetype-elegant-minimal.css",sectioncss:"type-elegant-minimal.css",classname:"type-elegant-minimal",img:"type-elegant-minimal.png",category:1,default:!0,caption:"elegant-minimal"},{css:"basetype-open-source.css",sectioncss:"type-open-source.css",classname:"type-open-source",img:"type-open-source.png",category:5,default:!0,caption:"open-source"},{css:"basetype-warm-humanist.css",sectioncss:"type-warm-humanist.css",classname:"type-warm-humanist",img:"type-warm-humanist.png",category:1,default:!0,caption:"warm-humanist"},{css:"basetype-tech-editorial2.css",sectioncss:"type-tech-editorial2.css",classname:"type-tech-editorial2",img:"type-tech-editorial2.png",category:7,default:!0,caption:"tech-editorial-2"},{css:"basetype-dev-journal.css",sectioncss:"type-dev-journal.css",classname:"type-dev-journal",img:"type-dev-journal.png",category:13,default:!0,caption:"dev-journal"},{css:"basetype-code-school.css",sectioncss:"type-code-school.css",classname:"type-code-school",img:"type-code-school.png",category:7,default:!0,caption:"code-school"},{css:"basetype-long-form.css",sectioncss:"type-long-form.css",classname:"type-long-form",img:"type-long-form.png",category:4,default:!0,caption:"long-form"},{css:"basetype-craft-market.css",sectioncss:"type-craft-market.css",classname:"type-craft-market",img:"type-craft-market.png",category:9,default:!0,caption:"craft-market"},{css:"basetype-corporate-modern.css",sectioncss:"type-corporate-modern.css",classname:"type-corporate-modern",img:"type-corporate-modern.png",category:1,default:!0,caption:"corporate-modern"},{css:"basetype-design-studio.css",sectioncss:"type-design-studio.css",classname:"type-design-studio",img:"type-design-studio.png",category:1,default:!0,caption:"design-studio"},{css:"basetype-classic-web.css",sectioncss:"type-classic-web.css",classname:"type-classic-web",img:"type-classic-web.png",category:4,default:!0,caption:"classic-web"},{css:"basetype-boutique-hotel.css",sectioncss:"type-boutique-hotel.css",classname:"type-boutique-hotel",img:"type-boutique-hotel.png",category:4,default:!0,caption:"boutique-hotel"},{css:"basetype-event-planner.css",sectioncss:"type-event-planner.css",classname:"type-event-planner",img:"type-event-planner.png",category:9,default:!0,caption:"event-planner"},{css:"basetype-roboto.css",sectioncss:"type-roboto.css",classname:"type-roboto",img:"type-roboto.png",category:1,default:!0,caption:"Roboto"},{css:"basetype-alegreyasanssc-hind.css",sectioncss:"type-alegreyasanssc-hind.css",classname:"type-alegreyasanssc-hind",img:"type-alegreyasanssc-hind.png",category:1,default:!0,caption:"Alegreya Sans SC & Hind"},{css:"basetype-opensans.css",sectioncss:"type-opensans.css",classname:"type-opensans",img:"type-opensans.png",category:1,default:!0,caption:"Open Sans"},{css:"basetype-anonymouspro-catamaran.css",sectioncss:"type-anonymouspro-catamaran.css",classname:"type-anonymouspro-catamaran",img:"type-anonymouspro-catamaran.png",category:6,default:!0,caption:"Anonymous Pro & Catamaran"},{css:"basetype-nothingyouc-ibmplexmono.css",sectioncss:"type-nothingyouc-ibmplexmono.css",classname:"type-nothingyouc-ibmplexmono",img:"type-nothingyouc-ibmplexmono.png",category:13,default:!0,caption:"Nothing You Could Do & IBM Plex Mono"},{css:"basetype-juliussansone-taviraj.css",sectioncss:"type-juliussansone-taviraj.css",classname:"type-juliussansone-taviraj",img:"type-juliussansone-taviraj.png",category:3,default:!0,caption:"Julius Sans One & Taviraj"},{css:"basetype-voltaire-sourcecodepro.css",sectioncss:"type-voltaire-sourcecodepro.css",classname:"type-voltaire-sourcecodepro",img:"type-voltaire-sourcecodepro.png",category:7,default:!0,caption:"Voltaire & Source Code Pro"},{css:"basetype-anonymouspro.css",sectioncss:"type-anonymouspro.css",classname:"type-anonymouspro",img:"type-anonymouspro.png",category:5,default:!1,caption:"Anonymous Pro"},{css:"basetype-unicaone-cormorantgaramond.css",sectioncss:"type-unicaone-cormorantgaramond.css",classname:"type-unicaone-cormorantgaramond",img:"type-unicaone-cormorantgaramond.png",category:10,default:!1,caption:"Unica One & Cormorant Garamond"},{css:"basetype-merriweathersans-martel.css",sectioncss:"type-merriweathersans-martel.css",classname:"type-merriweathersans-martel",img:"type-merriweathersans-martel.png",category:3,default:!1,caption:"Merriweather Sans & Martel"},{css:"basetype-poppins.css",sectioncss:"type-poppins.css",classname:"type-poppins",img:"type-poppins.png",category:1,default:!1,caption:"Poppins"},{css:"basetype-specialelite-encodesans.css",sectioncss:"type-specialelite-encodesans.css",classname:"type-specialelite-encodesans",img:"type-specialelite-encodesans.png",category:8,default:!1,caption:"Special Elite & Encode Sans"},{css:"basetype-marcellussc-heebo.css",sectioncss:"type-marcellussc-heebo.css",classname:"type-marcellussc-heebo",img:"type-marcellussc-heebo.png",category:4,default:!1,caption:"Marcellus SC & Heebo"},{css:"basetype-oranienbaum-sourcesanspro.css",sectioncss:"type-oranienbaum-sourcesanspro.css",classname:"type-oranienbaum-sourcesanspro",img:"type-oranienbaum-sourcesanspro.png",category:4,default:!1,caption:"Oranienbaum & Source Sans Pro"},{css:"basetype-sriracha-arvo.css",sectioncss:"type-sriracha-arvo.css",classname:"type-sriracha-arvo",img:"type-sriracha-arvo.png",category:11,default:!1,caption:"Sriracha & Arvo"},{css:"basetype-merriweather.css",sectioncss:"type-merriweather.css",classname:"type-merriweather",img:"type-merriweather.png",category:2,default:!1,caption:"Merriweather"},{css:"basetype-inconsolata.css",sectioncss:"type-inconsolata.css",classname:"type-inconsolata",img:"type-inconsolata.png",category:5,default:!1,caption:"Inconsolata"},{css:"basetype-novamono-robotomono.css",sectioncss:"type-novamono-robotomono.css",classname:"type-novamono-robotomono",img:"type-novamono-robotomono.png",category:5,default:!1,caption:"Nova Mono & Roboto Mono"},{css:"basetype-spacemono.css",sectioncss:"type-spacemono.css",classname:"type-spacemono",img:"type-spacemono.png",category:5,default:!1,caption:"Space Mono"},{css:"basetype-elsie-frankruhllibre.css",sectioncss:"type-elsie-frankruhllibre.css",classname:"type-elsie-frankruhllibre",img:"type-elsie-frankruhllibre.png",category:10,default:!1,caption:"Elsie & Frank Ruhl Libre"},{css:"basetype-stintultracon-inconsolata.css",sectioncss:"type-stintultracon-inconsolata.css",classname:"type-stintultracon-inconsolata",img:"type-stintultracon-inconsolata.png",category:12,default:!1,caption:"Stint Ultra Condensed & Inconsolata"},{css:"basetype-raleway-playfairdisplay.css",sectioncss:"type-raleway-playfairdisplay.css",classname:"type-raleway-playfairdisplay",img:"type-raleway-playfairdisplay.png",category:1,default:!1,caption:"Raleway"},{css:"basetype-ubuntumono-sourcecodepro.css",sectioncss:"type-ubuntumono-sourcecodepro.css",classname:"type-ubuntumono-sourcecodepro",img:"type-ubuntumono-sourcecodepro.png",category:5,default:!1,caption:"Ubuntu Mono & Source Code Pro"},{css:"basetype-lato.css",sectioncss:"type-lato.css",classname:"type-lato",img:"type-lato.png",category:1,default:!1,caption:"Lato"},{css:"basetype-pathwaygothicone-merriweather.css",sectioncss:"type-pathwaygothicone-merriweather.css",classname:"type-pathwaygothicone-merriweather",img:"type-pathwaygothicone-merriweather.png",category:3,default:!1,caption:"Pathway Gothic One & Merriweather"},{css:"basetype-arimamadurai.css",sectioncss:"type-arimamadurai.css",classname:"type-arimamadurai",img:"type-arimamadurai.png",category:14,default:!1,caption:"Arima Madurai"},{css:"basetype-teko-muktamahee.css",sectioncss:"type-teko-muktamahee.css",classname:"type-teko-muktamahee",img:"type-teko-muktamahee.png",category:1,default:!1,caption:"Teko & Mukta Mahee"},{css:"basetype-heebo-ibmplexmono.css",sectioncss:"type-heebo-ibmplexmono.css",classname:"type-heebo-ibmplexmono",img:"type-heebo-ibmplexmono.png",category:7,default:!1,caption:"Heebo & IBM Plex Mono"},{css:"basetype-frankruhllibre-lato.css",sectioncss:"type-frankruhllibre-lato.css",classname:"type-frankruhllibre-lato",img:"type-frankruhllibre-lato.png",category:4,default:!1,caption:"Frank Ruhl Libre & Lato"},{css:"basetype-yantramanav-ibmplexserif.css",sectioncss:"type-yantramanav-ibmplexserif.css",classname:"type-yantramanav-ibmplexserif",img:"type-yantramanav-ibmplexserif.png",category:1,default:!1,caption:"Yantramanav & IBM Plex Serif"},{css:"basetype-quicksand-kalam.css",sectioncss:"type-quicksand-kalam.css",classname:"type-quicksand-kalam",img:"type-quicksand-kalam.png",category:1,default:!1,caption:"Quicksand & Kalam"},{css:"basetype-ibmplexmono.css",sectioncss:"type-ibmplexmono.css",classname:"type-ibmplexmono",img:"type-ibmplexmono.png",category:5,default:!1,caption:"IBM Plex Mono"},{css:"basetype-oswald-biryani.css",sectioncss:"type-oswald-biryani.css",classname:"type-oswald-biryani",img:"type-oswald-biryani.png",category:1,default:!1,caption:"Oswald & Biryani"},{css:"basetype-abrilfatface-assistant.css",sectioncss:"type-abrilfatface-assistant.css",classname:"type-abrilfatface-assistant",img:"type-abrilfatface-assistant.png",category:8,default:!1,caption:"Abril Fatface & Assistant"},{css:"basetype-prata-hindsiliguri.css",sectioncss:"type-prata-hindsiliguri.css",classname:"type-prata-hindsiliguri",img:"type-prata-hindsiliguri.png",category:4,default:!1,caption:"Prata & Hind Siliguri"},{css:"basetype-fjallaone-ibmplexserif.css",sectioncss:"type-fjallaone-ibmplexserif.css",classname:"type-fjallaone-ibmplexserif",img:"type-fjallaone-ibmplexserif.png",category:3,default:!1,caption:"Fjalla One & IBM Plex Serif"},{css:"basetype-cormorantsc-ibmplexsanscon.css",sectioncss:"type-cormorantsc-ibmplexsanscon.css",classname:"type-cormorantsc-ibmplexsanscon",img:"type-cormorantsc-ibmplexsanscon.png",category:4,default:!1,caption:"Cormorant SC & IBM Plex Sans Condensed"},{css:"basetype-fugazone-librefranklin.css",sectioncss:"type-fugazone-librefranklin.css",classname:"type-fugazone-librefranklin",img:"type-fugazone-librefranklin.png",category:8,default:!1,caption:"Fugaz One & Libre Franklin"},{css:"basetype-caveat-sourcecodepro.css",sectioncss:"type-caveat-sourcecodepro.css",classname:"type-caveat-sourcecodepro",img:"type-caveat-sourcecodepro.png",category:13,default:!1,caption:"Caveat & Source Code Pro"},{css:"basetype-cutivemono-lato.css",sectioncss:"type-cutivemono-lato.css",classname:"type-cutivemono-lato",img:"type-cutivemono-lato.png",category:6,default:!1,caption:"Cutive Mono & Lato"},{css:"basetype-oswald-opensans.css",sectioncss:"type-oswald-opensans.css",classname:"type-oswald-opensans",img:"type-oswald-opensans.png",category:1,default:!1,caption:"Oswald & Open Sans"},{css:"basetype-poppins-lekton.css",sectioncss:"type-poppins-lekton.css",classname:"type-poppins-lekton",img:"type-poppins-lekton.png",category:1,default:!1,caption:"Poppins & Lekton"},{css:"basetype-raleway-neuton.css",sectioncss:"type-raleway-neuton.css",classname:"type-raleway-neuton",img:"type-raleway-neuton.png",category:3,default:!1,caption:"Raleway & Neuton"},{css:"basetype-sourcecodepro-nunitosans.css",sectioncss:"type-sourcecodepro-nunitosans.css",classname:"type-sourcecodepro-nunitosans",img:"type-sourcecodepro-nunitosans.png",category:6,default:!1,caption:"Source Code Pro & Nunito Sans"},{css:"basetype-alegreya-lato.css",sectioncss:"type-alegreya-lato.css",classname:"type-alegreya-lato",img:"type-alegreya-lato.png",category:4,default:!1,caption:"Alegreya & Lato"},{css:"basetype-heebo-ibmplexmono-2.css",sectioncss:"type-heebo-ibmplexmono-2.css",classname:"type-heebo-ibmplexmono-2",img:"type-heebo-ibmplexmono-2.png",category:7,default:!1,caption:"Heebo & IBM Plex Mono"},{css:"basetype-montserrat-roboto.css",sectioncss:"type-montserrat-roboto.css",classname:"type-montserrat-roboto",img:"type-montserrat-roboto.png",category:1,default:!1,caption:"Montserrat & Roboto"},{css:"basetype-raleway-lato.css",sectioncss:"type-raleway-lato.css",classname:"type-raleway-lato",img:"type-raleway-lato.png",category:1,default:!1,caption:"Raleway & Lato"},{css:"basetype-rufina-oxygen.css",sectioncss:"type-rufina-oxygen.css",classname:"type-rufina-oxygen",img:"type-rufina-oxygen.png",category:4,default:!1,caption:"Rufina & Oxygen"},{css:"basetype-sacramento-opensans.css",sectioncss:"type-sacramento-opensans.css",classname:"type-sacramento-opensans",img:"type-sacramento-opensans.png",category:9,default:!1,caption:"Sacramento & Open Sans"},{css:"basetype-sourcesanspro-anonymouspro.css",sectioncss:"type-sourcesanspro-anonymouspro.css",classname:"type-sourcesanspro-anonymouspro",img:"type-sourcesanspro-anonymouspro.png",category:7,default:!0,caption:"Source Sans Pro & Anonymous Pro"},{css:"basetype-poppins-oldstandardtt.css",sectioncss:"type-poppins-oldstandardtt.css",classname:"type-poppins-oldstandardtt",img:"type-poppins-oldstandardtt.png",category:3,default:!0,caption:"Poppins & Old Standard TT"},{css:"basetype-yesteryear-chivo.css",sectioncss:"type-yesteryear-chivo.css",classname:"type-yesteryear-chivo",img:"type-yesteryear-chivo.png",category:9,default:!0,caption:"Yesteryear & Chivo"},{css:"basetype-ptserif-poppins.css",sectioncss:"type-ptserif-poppins.css",classname:"type-ptserif-poppins",img:"type-ptserif-poppins.png",category:4,default:!0,caption:"PT Serif & Poppins"},{css:"basetype-josefinsans-lekton.css",sectioncss:"type-josefinsans-lekton.css",classname:"type-josefinsans-lekton",img:"type-josefinsans-lekton.png",category:1,default:!1,caption:"Josefin Sans & Lekton"},{css:"basetype-italiana-martel.css",sectioncss:"type-italiana-martel.css",classname:"type-italiana-martel",img:"type-italiana-martel.png",category:2,default:!1,caption:"Italiana & Martel"},{css:"basetype-greatvibes-robotomono.css",sectioncss:"type-greatvibes-robotomono.css",classname:"type-greatvibes-robotomono",img:"type-greatvibes-robotomono.png",category:13,default:!1,caption:"Great Vibes & Roboto Mono"},{css:"basetype-dosis-oldstandardtt.css",sectioncss:"type-dosis-oldstandardtt.css",classname:"type-dosis-oldstandardtt",img:"type-dosis-oldstandardtt.png",category:1,default:!1,caption:"Dosis & Old Standard TT"},{css:"basetype-engagement-spectral.css",sectioncss:"type-engagement-spectral.css",classname:"type-engagement-spectral",img:"type-engagement-spectral.png",category:11,default:!1,caption:"Engagement & Spectral"},{css:"basetype-dynalight-mada.css",sectioncss:"type-dynalight-mada.css",classname:"type-dynalight-mada",img:"type-dynalight-mada.png",category:8,default:!1,caption:"Dynalight & Mada"},{css:"basetype-alexbrush-ibmplexsans.css",sectioncss:"type-alexbrush-ibmplexsans.css",classname:"type-alexbrush-ibmplexsans",img:"type-alexbrush-ibmplexsans.png",category:9,default:!1,caption:"Alex Brush & IBM Plex Sans"}]}},cssInBody:!1,cssClasses:{fontWeight:{thin:"font-thin",extralight:"font-extralight",light:"font-light",normal:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold",extrabold:"font-extrabold",black:"font-black",defaultBold:"font-semibold",defaultNormal:"font-light"},fontStyle:{italic:"italic",normal:"not-italic"},textDecoration:{underline:"underline",linethrough:"line-through",normal:"no-underline"},textTransform:{uppercase:"uppercase",lowercase:"lowercase",capitalize:"capitalize",normal:"normal-case"},tracking:{tracking__100:"tracking--100",tracking__075:"tracking--75",tracking__050:"tracking-tighter",tracking__025:"tracking-tight",tracking_000:"tracking-normal",tracking_025:"tracking-wide",tracking_050:"tracking-wider",tracking_075:"tracking-75",tracking_100:"tracking-widest",tracking_125:"tracking-125",tracking_150:"tracking-150",tracking_175:"tracking-175",tracking_200:"tracking-200",tracking_225:"tracking-225",tracking_250:"tracking-250",tracking_275:"tracking-275",tracking_300:"tracking-300",tracking_325:"tracking-325",tracking_350:"tracking-350",tracking_375:"tracking-375",tracking_400:"tracking-400",tracking_425:"tracking-425",tracking_450:"tracking-450",tracking_475:"tracking-475",tracking_500:"tracking-500"},leading:{leading_5:"leading-05",leading_6:"leading-06",leading_7:"leading-07",leading_8:"leading-08",leading_9:"leading-09",leading_10:"leading-none",leading_11:"leading-11",leading_12:"leading-12",leading_125:"leading-tight",leading_13:"leading-13",leading_1375:"leading-snug",leading_14:"leading-14",leading_15:"leading-normal",leading_16:"leading-16",leading_1625:"leading-relaxed",leading_17:"leading-17",leading_18:"leading-18",leading_19:"leading-19",leading_20:"leading-loose",leading_21:"leading-21",leading_22:"leading-22",leading_23:"leading-23",leading_24:"leading-24",leading_25:"leading-25",leading_26:"leading-26",leading_27:"leading-27",leading_28:"leading-28",leading_29:"leading-29",leading_30:"leading-30"},opacity:{opacity_0:"opacity-0",opacity_2:"opacity-2",opacity_4:"opacity-4",opacity_5:"opacity-5",opacity_6:"opacity-6",opacity_8:"opacity-8",opacity_10:"opacity-10",opacity_12:"opacity-12",opacity_15:"opacity-15",opacity_20:"opacity-20",opacity_25:"opacity-25",opacity_30:"opacity-30",opacity_35:"opacity-35",opacity_40:"opacity-40",opacity_45:"opacity-45",opacity_50:"opacity-50",opacity_55:"opacity-55",opacity_60:"opacity-60",opacity_65:"opacity-65",opacity_70:"opacity-70",opacity_75:"opacity-75",opacity_80:"opacity-80",opacity_85:"opacity-85",opacity_90:"opacity-90",opacity_95:"opacity-95",opacity_100:"opacity-100"},padding:{all:{p_0:"p-0",p_1:"p-1",p_2:"p-2",p_3:"p-3",p_4:"p-4",p_5:"p-5",p_6:"p-6",p_7:"p-7",p_8:"p-8",p_9:"p-9",p_10:"p-10",p_11:"p-11",p_12:"p-12",p_14:"p-14",p_16:"p-16",p_20:"p-20"},x:{px_0:"px-0",px_1:"px-1",px_2:"px-2",px_3:"px-3",px_4:"px-4",px_5:"px-5",px_6:"px-6",px_7:"px-7",px_8:"px-8",px_9:"px-9",px_10:"px-10",px_11:"px-11",px_12:"px-12",px_14:"px-14",px_16:"px-16",px_20:"px-20"},y:{py_0:"py-0",py_1:"py-1",py_2:"py-2",py_3:"py-3",py_4:"py-4",py_5:"py-5",py_6:"py-6",py_7:"py-7",py_8:"py-8",py_9:"py-9",py_10:"py-10",py_11:"py-11",py_12:"py-12",py_14:"py-14",py_16:"py-16",py_20:"py-20"},top:{pt_0:"pt-0",pt_1:"pt-1",pt_2:"pt-2",pt_3:"pt-3",pt_4:"pt-4",pt_5:"pt-5",pt_6:"pt-6",pt_7:"pt-7",pt_8:"pt-8",pt_9:"pt-9",pt_10:"pt-10",pt_11:"pt-11",pt_12:"pt-12",pt_14:"pt-14",pt_16:"pt-16",pt_20:"pt-20"},right:{pr_0:"pr-0",pr_1:"pr-1",pr_2:"pr-2",pr_3:"pr-3",pr_4:"pr-4",pr_5:"pr-5",pr_6:"pr-6",pr_7:"pr-7",pr_8:"pr-8",pr_9:"pr-9",pr_10:"pr-10",pr_11:"pr-11",pr_12:"pr-12",pr_14:"pr-14",pr_16:"pr-16",pr_20:"pr-20"},bottom:{pb_0:"pb-0",pb_1:"pb-1",pb_2:"pb-2",pb_3:"pb-3",pb_4:"pb-4",pb_5:"pb-5",pb_6:"pb-6",pb_7:"pb-7",pb_8:"pb-8",pb_9:"pb-9",pb_10:"pb-10",pb_11:"pb-11",pb_12:"pb-12",pb_14:"pb-14",pb_16:"pb-16",pb_20:"pb-20"},left:{pl_0:"pl-0",pl_1:"pl-1",pl_2:"pl-2",pl_3:"pl-3",pl_4:"pl-4",pl_5:"pl-5",pl_6:"pl-6",pl_7:"pl-7",pl_8:"pl-8",pl_9:"pl-9",pl_10:"pl-10",pl_11:"pl-11",pl_12:"pl-12",pl_14:"pl-14",pl_16:"pl-16",pl_20:"pl-20"}},extend:{superscript:"sup",subscript:"sub"},textAlign:{left:"text-left",center:"text-center",right:"text-right",justify:"text-justify"},display:{flex:"flex",block:"block",inline:"inline",inline_block:"inline-block"},flexDirection:{row:"flex-row",column:"flex-col",row_reverse:"flex-row-reverse",column_reverse:"flex-col-reverse"},flexWrap:{wrap:"flex-wrap",nowrap:"flex-nowrap",wrap_reverse:"flex-wrap-reverse"},justifyContent:{start:"justify-start",end:"justify-end",center:"justify-center",between:"justify-between",around:"justify-around",evenly:"justify-evenly"},alignItems:{start:"items-start",end:"items-end",center:"items-center",baseline:"items-baseline",stretch:"items-stretch"}},useCssClasses:!0,useButtonPlugin:!1,enableDragResize:!0,simpleTextSettings:!1,defaultHeaders:{"Content-Type":"application/json"},headers:{},metadata:{},consoleLog:!1,AIToolbar:!1,sendCommandUrl:"",enableDictation:!1,hideImageGeneration:!1,imageAutoUpscale:!0,speechTranscribeUrl:"",autoSendDelay:4e3,onlineDemo:!1,startAIAssistant:!1,temperature:.6,topP:.9,useMediaRecorder:!0,encoderPath:"",commandPlaceholders:{general:"Create a section containing a short article with ideas for outdoor activities.",ask_questions:"Can you explain our galaxy in a beginner-friendly and interesting way?",edit_block:"Align the headline to the center",generate_image:"City view from the window, sunset, realistic photo"},disclaimerAI:"The feature you're about to use utilizes AI in some of its processes. \n It's important to understand that AI systems have limitations.\n There may be instances where the results are not 100% accurate or may provide unexpected responses or information.\n As a user, it's your responsibility to independently verify any information or results obtained through this AI-powered feature. \n Our team is dedicated to continuously improving its performance and accuracy to enhance your experience.",showDisclaimer:!0,enableShortCommands:!0,speechRecognitionLang:"en-US",triggerWords:{send:["send","okay","ok","execute","run"],abort:["abort","cancel"],clear:["clear","erase"]},similarityThreshold:.65,headlineList:["We're [CompanyName]. Full stack development with a spark of creativity."],mediaPath:"assets/gallery/",media:{slider:["slide-01.jpg","slide-02.jpg"],blank_video:"blank.mp4",videos:["beach1.mp4","beach2.mp4"],youtube_videos:["https://www.youtube-nocookie.com/embed/P5yHEKqx86U?rel=0&autoplay=1&color=white"],maps:["https://www.youtube-nocookie.com/embed/P5yHEKqx86U?rel=0&autoplay=1&color=white"],audios:["example.mp3"],images:{square:["desk.jpg","chair.jpg","coffee.jpg","product.jpg","table.jpg","person-01.jpg","person-02.jpg","person-03.jpg","person-04.jpg","person-05.jpg","person-06.jpg","person-08.jpg"]},bg_images:{box:["person-01.jpg","person-02.jpg","person-03.jpg","person-04.jpg","person-05.jpg","person-06.jpg","person-07.jpg","person-08.jpg","person-09.jpg","person-10.jpg","building.jpg","desk.jpg","chair.jpg","coffee.jpg","product.jpg","table.jpg"],small_box:["person-01.jpg","person-03.jpg","person-04.jpg","person-05.jpg","person-10.jpg","chair.jpg","coffee.jpg","product.jpg","table.jpg"],section_text_left:["header-01.jpg","header-02.jpg","header-03.jpg","header-05.jpg","header-08.jpg","header-10b.jpg","header-14.jpg"],section_text_center:["header-07.jpg","header-11.jpg","header-12.jpg","header-13.jpg"],section_text_right:["header-04.jpg","header-05b.jpg","header-06.jpg","header-08b.jpg","header-09.jpg","header-10.jpg","header-14b.jpg","header-15.jpg"]}},shortCommandList:{undo:["undo"],redo:["undo"],increase:["increase","bigger","larger","enlarge"],decrease:["decrease","smaller"],bold:["bold"],italic:["italic"],underline:["underline"],strikethrough:["strikethrough"],superscript:["superscript"],subscript:["subscript"],uppercase:["uppercase"],lowercase:["lowercase"],capitalize:["capitalize"],clean:["clean"]},commandList:{new_section:["new section","create section","add section","craft section","develop section","build section","construct section","design section"],redesign:["redesign layout","change layout","change placement","decide placement","decide layout"],two_boxes:["2 boxes","two boxes"],select:["select","select first","select first block"],select_next:["select next","select after","select next block","select next row"],select_previous:["select previous","select before","select previous block","select previous row"],select_last:["select last","select last block"],select_block:["select block"],unselect_block:["unselect","unselect block"],select_headline:["select headline"],select_paragraph:["select paragraph"],select_button:["select button"],select_space:["select space"],select_image:["select image"],change_font:["change font","change typography","change style"],fade_in:["fade in"],fade_in_up:["fade in up"],slide_up:["slide up"],zoom_in:["zoom in"],zoom_out:["zoom out"],animate_once:["animate once"],always_animate:["always animate"],remove_animation:["remove animation","clear animation","remove fade in","clear fade in","remove slide up","clear slide up","remove zoom in","clear zoom in","remove zoom out","clear zoom out"],add_bg_color:["add background color","set background color"],add_bg_image:["add background image","add background"],change_bg_color:["change background color"],change_bg_image:["change background image","change background"],remove_bg_color:["remove background color","clear background color"],remove_bg:["remove background","remove background image","clear background","clear background image"],increase_content_width:["increase content width","enlarge content width"],decrease_content_width:["decrease content width","reduce content width"],clear_content_width:["clear content width","remove content width","make content full","full width content"],make_content_light:["make content white","make content light","make text white","make text light","change content white","change content light","change text white","change text light","change to white content","change to light content","change to white text","change to light text"],make_content_dark:["make content black","make content dark","make text black","make text dark","change content black","change content dark","change text black","change text dark","change to black content","change to dark content","change to black text","change to dark text"],make_section_height_10:["make section height 10"],make_section_height_15:["make section height 15"],make_section_height_20:["make section height 20"],make_section_height_25:["make section height 25"],make_section_height_30:["make section height 30"],make_section_height_40:["make section height 40"],make_section_height_50:["make section height 50"],make_section_height_60:["make section height 60"],make_section_height_70:["make section height 70"],make_section_height_75:["make section height 75"],make_section_height_80:["make section height 80"],make_section_height_85:["make section height 85"],make_section_height_90:["make section height 90"],make_section_height_100:["make section height 100"],make_section_height_auto:["make section height auto"],suggest_headline:["suggest headline","suggest header","suggest title","write headline","write header","write title"],suggest_text:["suggest text","write text"],add_headline:["add headline","add header","add title"],add_paragraph:["add paragraph"],add_image:["add image"],add_youtube:["add youtube"],add_video:["add video"],remove_video:["remove video","clear video"],add_bg_video:["add background video"],remove_bg_video:["remove background video","clear background video"],add_slider:["add slider"],remove_slider:["remove slider","clear slider"],add_bg_slider:["add background slider"],remove_bg_slider:["remove background slider","clear background slider"],add_audio:["add audio","add music","add mp3"],add_map:["add map","add google map"],add_table:["add table"],add_social:["add social"],add_icon:["add icon"],add_button:["add button"],add_2buttons:["add 2 button","add 2 buttons"],add_space:["add space"],position_before:["above","before"],increase_line_height:["increase line height","increase line spacing","increase text spacing","enlarge line height","enlarge line spacing","enlarge text spacing","bigger line height","bigger line spacing","bigger text spacing","make line height bigger","make line spacing bigger","make text spacing bigger"],increase_default_line_height:["increase default line height","increase default line spacing","increase default text spacing","enlarge default line height","enlarge default line spacing","enlarge default text spacing","bigger default line height","bigger default line spacing","bigger default text spacing","make default line height bigger","make default line spacing bigger","make default text spacing bigger"],decrease_line_height:["decrease line height","decrease line spacing","decrease text spacing","reduce line height","reduce line spacing","reduce text spacing","smaller line height","smaller line spacing","smaller text spacing","make line height smaller","make line spacing smaller","make text spacing smaller"],decrease_default_line_height:["decrease default line height","decrease default line spacing","decrease default text spacing","reduce default line height","reduce default line spacing","reduce default text spacing","smaller default line height","smaller default line spacing","smaller default text spacing","make default line height smaller","make default line spacing smaller","make default text spacing smaller"],increase_font_size:["increase font","increase size","increase font size","increase text","increase size","increase text size","enlarge font","enlarge size","enlarge font size","enlarge text","enlarge size","enlarge text size","text bigger","font bigger","size bigger"],decrease_font_size:["decrease font","decrease size","decrease font size","decrease text","decrease size","decrease text size","reduce font","reduce size","reduce font size","reduce text","reduce size","reduce text size","text smaller","font smaller","size smaller"],increase_default_font_size:["increase default font","increase default size","increase default font size","increase default text","increase default size","increase default text size","enlarge default font","enlarge default size","enlarge default font size","enlarge default text","enlarge default text size","default text bigger","default font bigger","default size bigger","increase default content","increase default content size","enlarge default content","enlarge default content size"],decrease_default_font_size:["decrease default font","decrease default size","decrease default font size","decrease default text","decrease default size","decrease default text size","reduce default font","reduce default size","reduce default font size","reduce default text","reduce default text size","default text smaller","default font smaller","default size smaller","decrease default content","decrease default content size","reduce default content","reduce default content size"],clear_font_size:["clear font size","remove font size","clear text size","remove text size","use default font size"],align_left:["align left","align text left","left aligned"],align_center:["align center","align text center","center aligned"],align_right:["align right","align text right","right aligned"],align_full:["align full","align justify","justify","justify text","justify full"],clear_alignment:["clear alignment","remove alignment","clear text alignment","remove text alignment"],move_content_left:["move content left","align content left"],move_content_center:["move content center","align content center"],move_content_right:["move content right","align content right"],move_content_top:["move content top","align content top"],move_content_bottom:["move content bottom","align content bottom"],align_content_top_left:["move content top left","align content top left"],align_content_top_right:["move content top right","align content top right"],align_content_bottom_left:["move content bottom left","align content bottom left"],align_content_bottom_right:["move content bottom right","align content bottom right"],increase_space:["more space","increase space","enlarge space"],decrease_space:["less space","decrease space","reduce space"],move_up:["move up"],move_down:["move down"],move_row_up:["move row up"],move_row_down:["move row down"],duplicate_row:["duplicate row","copy row"],remove_row:["remove row","delete row"],move_col_left:["move left","move column left"],move_col_right:["move right","move column right"],duplicate_col:["duplicate column","copy column"],remove_col:["remove column","delete column"],move_column_up:["move column up"],move_column_down:["move column down"],move_section_up:["move section up"],move_section_down:["move section down"],move_section_top:["move section top"],move_section_bottom:["move section bottom"],duplicate_section:["duplicate section","copy section"],remove_section:["remove section","delete section"],remove_content:["remove content","remove all text","remove all content","delete content","delete all text","delete all content","clear content","clear all text","clear all content"],add_content:["add content","add text"]},commandInfo:{general:{title:"General",description:"Commands for designing or editing.",list:["Add a section that highlights our AI-powered web solutions. Include a compelling headline, a paragraph, and two buttons named 'Our Works' and 'Get in Touch'. Also, add a background image.","Create a section containing an article on ideas for outdoor activities. Include a minimum of 300 words.","Can you suggest a captivating headline for us and replace the current one?","Add a section showcasing our AI-powered innovations. Craft an attention-grabbing headline, provide explanations, incorporate an image, and add an enticing call-to-action.","Create a section containing a feature list of our wood cabin for rent:<br>\n- Scenic forest view<br>\n- Modern comforts<br>\n- Outdoor escape<br>\nAdd an icon for each list item.","Add a section highlighting the features of our creative arts courses:<br>\n- Hands-on projects<br>\n- Guidance from experts<br>\nAdd an image for each feature.","Revise the headline, paragraph, and all the text using alternative ideas.","Let's redesign the layout. Surprise me with a new idea!","Create a new section showcasing a photo gallery of our latest photography workshop. Includes up to 3 photo placeholders.","Do you see the button with a gray background? Please change the background color to light green.","Underline the phrase 'every monday' and change the color to dark blue.","Summarize this content in 100 words."]},others:{title:"Ask Questions or Request Information",description:"Commands that are <u>not related to designing and editing of the current content</u>.",list:["Provide well-researched information about bookstores in the Melbourne city area that offer collections of classic titles. Include specific details such as locations, website links, the range of classic titles they offer, and any unique features they have.","Explain our galaxy in a beginner-friendly and interesting way.","Can you explain the process of baking a classic chocolate cake from scratch?","Provide me with a 10-hour plan for learning practical data science."]},block:{title:"Edit Selected Block",description:"Specifically target the selected block for editing, providing more precise results.",list:["Enhance the content by including introductory paragraphs after the title.","Add a space between the title and the button.","Increase the space between the title and the paragraph.","Apply a gradient text color from red to orange horizontally to the title.","Rewrite the headline with alternative ideas","Reduce the title font size.","Add a link on the text 'Download' that directs to: https://example.com/download","Add a new block containing a Google map showing local cafes in the Perth city area."]},image:{title:"Image",description:"Generate image for the selected image or background",list:["A small office building in a distant view, surrounded by a warm blend of brown and orange hues against a serene blue sky. Embrace a muted color palette with pastel tones, emphasizing natural and clean aesthetics. Craft a simple yet impactful composition with generous negative space, channeling a minimalist look that exudes brightness and sophistication. Infuse the scene with a style reminiscent of architecture magazines, ensuring a full focus background that complements the building's design. Utilize high-quality equipment such as an 8K UHD camera and DSLR for impeccable detail, and employ soft lighting to enhance the overall visual appeal.","A minimalist wood cabin is captured from a distance, surrounded by a sea of grass, bathed in the soft, breathtaking sunlight of 17:00, under an expansive blue sky. The image is crafted in a true minimalist photographic style, emphasizing the bright open sky and featuring lots of white space.","A simple wooden table adorned with a petite vase and a vibrant yellow flower. Opt for a clean background with ample white space, prioritizing minimalism. Cultivate a muted color palette and pastel tones to create a serene atmosphere. Employ soft lighting to enhance the gentle ambiance. Aim for a style reminiscent of interior magazines, capturing the essence of sophistication and simplicity in every detail."]},selection:{title:"Selection & Layout",list:["Select the headline","Select the next block","Move up","Move down","Duplicate row","Remove row","Move column left","Move column right","Duplicate column","Remove column","Move section up","Move section down"]},section:{title:"Section",list:["Add a background image","Change the background image","Add a background slider","Add a background video","Clear background","Adjust the section height to 70%","Change the section height to 100%","Set the section height to auto"]},typography:{title:"Typography",list:["Change the font"]},content:{title:"Content",list:["Set the content color to white","Set the content color to black","Increase the width of the content","Reduce the width of the content","Increase the default font size","Increase the default line height","Clear the content","Add new content","Move the content to the left","Move the content to the center","Move the content to the right","Move the content to the top"]},element:{title:"Element",list:["Add a headline","Add a paragraph","Add an image","Add a Youtube video","Add a button","Add two buttons","Add a space","Increase the space"]},text:{title:"Text Formatting",list:["Increase font size","Clear font size","Align center","Align right","Align justify","Clear alignment","Bold","Italic","Underline","Strikethrough","Uppercase","Clean"]},animation:{title:"Animation",list:["Add a fade in animation","Add fade in up animation","Add slide up animation","Add zoom in animation","Add zoom out animation","Clear the animation","Animate once","Always animate"]}},commandInfoCanvasMode:{general:{title:"General (on standard section)",description:"Commands for designing or editing.",list:["Add a section that highlights our AI-powered web solutions. Include a compelling headline, a paragraph, and two buttons named 'Our Works' and 'Get in Touch'. Also, add a background image.","Create a section containing an article on ideas for outdoor activities. Include a minimum of 300 words.","Can you suggest a captivating headline for us and replace the current one?","Add a section showcasing our AI-powered innovations. Craft an attention-grabbing headline, provide explanations, incorporate an image, and add an enticing call-to-action.","Create a section containing a feature list of our wood cabin for rent:<br>\n- Scenic forest view<br>\n- Modern comforts<br>\n- Outdoor escape<br>\nAdd an icon for each list item.","Add a section highlighting the features of our creative arts courses:<br>\n- Hands-on projects<br>\n- Guidance from experts<br>\nAdd an image for each feature.","Revise the headline, paragraph, and all the text using alternative ideas.","Let's redesign the layout. Surprise me with a new idea!","Create a new section showcasing a photo gallery of our latest photography workshop. Includes up to 3 photo placeholders.","Do you see the button with a gray background? Please change the background color to light green.","Underline the phrase 'every monday' and change the color to dark blue.","Summarize this content in 100 words."]},general2:{title:"General (on canvas section)",description:"Commands for designing or editing.",list:["Add a block that highlights our AI-powered web solutions. Include a compelling headline, a paragraph, and two buttons named 'Our Works' and 'Get in Touch'. ","Create an article block on ideas for outdoor activities. Include a minimum of 300 words.","Add a block showcasing our AI-powered innovations. Craft an attention-grabbing headline, provide explanations, incorporate an image, and add an enticing call-to-action.","Create a feature list of our wood cabin for rent:<br>\n- Scenic forest view<br>\n- Modern comforts<br>\n- Outdoor escape<br>\nAdd an icon for each list item.","Add a block highlighting the features of our creative arts courses:<br>\n- Hands-on projects<br>\n- Guidance from experts<br>\nAdd an image for each feature.","Create a new block showcasing a photo gallery of our latest photography workshop. Includes up to 3 photo placeholders.","Create a block highlighting what sets our web development studio apart. Include a maximum of 3 list items, each with an item title and a short paragraph with less than 20 words. Also, add a numbering.","My name is Emilie, and I'm a product designer with 5 years of experience. Please create a new 'About Me' block with a headline, description, and two buttons named 'My Works' and 'Get in Touch'. Additionally, please include an image."]},general3:{title:"General (on canvas section with block selection)",description:"Commands for designing or editing.",list:["Rewrite the headline to captivate readers and maximize impact","Change the button text with an alternative wording","Do you see the button with a gray background? Please change the background color to light green.","Summarize this content in 100 words."]},others:{title:"Ask Questions or Request Information",description:"Commands that are <u>not related to designing and editing of the current content</u>.",list:["Provide well-researched information about bookstores in the Melbourne city area that offer collections of classic titles. Include specific details such as locations, website links, the range of classic titles they offer, and any unique features they have.","Explain our galaxy in a beginner-friendly and interesting way.","Can you explain the process of baking a classic chocolate cake from scratch?","Provide me with a 10-hour plan for learning practical data science."]},block:{title:"Edit Selected Text",description:"Specifically target the selected block for editing, providing more precise results.",list:["Enhance the content by including introductory paragraphs after the title.","Add a space between the title and the button.","Increase the space between the title and the paragraph.","Apply a gradient text color from red to orange horizontally to the title.","Rewrite the headline with alternative ideas","Reduce the title font size.","Add a link on the text 'Download' that directs to: https://example.com/download","Add a new block containing a Google map showing local cafes in the Perth city area."]},image:{title:"Image",description:"Generate image for the selected image or background",list:["A small office building in a distant view, surrounded by a warm blend of brown and orange hues against a serene blue sky. Embrace a muted color palette with pastel tones, emphasizing natural and clean aesthetics. Craft a simple yet impactful composition with generous negative space, channeling a minimalist look that exudes brightness and sophistication. Infuse the scene with a style reminiscent of architecture magazines, ensuring a full focus background that complements the building's design. Utilize high-quality equipment such as an 8K UHD camera and DSLR for impeccable detail, and employ soft lighting to enhance the overall visual appeal.","A minimalist wood cabin is captured from a distance, surrounded by a sea of grass, bathed in the soft, breathtaking sunlight of 17:00, under an expansive blue sky. The image is crafted in a true minimalist photographic style, emphasizing the bright open sky and featuring lots of white space.","A simple wooden table adorned with a petite vase and a vibrant yellow flower. Opt for a clean background with ample white space, prioritizing minimalism. Cultivate a muted color palette and pastel tones to create a serene atmosphere. Employ soft lighting to enhance the gentle ambiance. Aim for a style reminiscent of interior magazines, capturing the essence of sophistication and simplicity in every detail."]}},demoMode:!1,onAddSectionOpen:function(){},contentHtmlStart:'<div class="is-container is-builder container"><div class="row clearfix"><div class="column full">',contentHtmlEnd:"</div></div></div>"};if(this.settings=Object.assign(this,i,t),this.screenMode=this.settings.screenMode,this.onLoadHtml=null,2===this.contentStylesVersion&&(this.settings.contentStyles=this.settings.contentStylesV2),Object.keys(this.settings.lang).length>0&&(window._txt=this.settings.lang),this.clearPreferences&&(localStorage.removeItem("_disclaimershown"),localStorage.removeItem("_screenmode")),this.controlPanel&&(localStorage.removeItem("_zoom"),localStorage.removeItem("_livepreview"),localStorage.removeItem("_disableanimation")),this.uploadFile){const t=async t=>{const e=await this.uploadFile(t);this.returnUrl(e.url)};this.onImageUpload=t,this.onVideoUpload=t,this.onAudioUpload=t,this.onMediaUpload=t,this.onFileUpload=t,this.onUploadCoverImage=async t=>{const e=await this.uploadFile(t);this.boxImage(e.url)}}if(this.upload){const t=async t=>{const e=t.target.files[0],i=await this.upload(e);this.returnUrl(i.url)};this.onImageUpload=t,this.onVideoUpload=t,this.onAudioUpload=t,this.onMediaUpload=t,this.onFileUpload=t,this.onUploadCoverImage=async t=>{const e=t.target.files[0],i=await this.upload(e);this.boxImage(i.url)}}if(this.topSpace&&(this.undoRedoButtons=!1,this.toggleDeviceButton=!1,this.deviceButtons=!1),this.templateJSON=[{url:this.settings.designUrl1,path:this.settings.designPath,pathReplace:this.settings.designPathReplace},{url:this.settings.designUrl2,path:this.settings.designPath,pathReplace:this.settings.designPathReplace}],0!==this.settings.templates.length&&""===this.settings.templateThumbnailSize){let t=document.body.clientWidth;this.settings.templateThumbnailSize=t<=1440?"small":t>1440&&t<=1920?"medium":"large"}""!==this.settings.imageSelect?this.settings.imageselect=this.settings.imageSelect:""!==this.settings.imageselect&&(this.settings.imageSelect=this.settings.imageselect),""!==this.settings.fileSelect?this.settings.fileselect=this.settings.fileSelect:""!==this.settings.fileselect&&(this.settings.fileSelect=this.settings.fileselect),""!==this.settings.videoSelect?this.settings.videoselect=this.settings.videoSelect:""!==this.settings.videoselect&&(this.settings.videoSelect=this.settings.videoselect),this.settings.filePicker&&(this.settings.imageSelect=this.settings.filePicker,this.settings.videoSelect=this.settings.filePicker,this.settings.audioSelect=this.settings.filePicker,this.settings.fileSelect=this.settings.filePicker,this.settings.mediaSelect=this.settings.filePicker,this.settings.imageselect=this.settings.filePicker,this.settings.fileselect=this.settings.filePicker,this.settings.videoselect=this.settings.filePicker);const n=this.settings.assetBasePath;void 0!==n&&(this.settings.iframeSrc=t.iframeSrc||`${n}blank.html`,this.settings.assetPath=t.assetPath||`${n}assets/`,this.settings.fontAssetPath=t.fontAssetPath||`${n}assets/fonts/`,this.settings.snippetUrl=t.snippetUrl||`${n}assets/minimalist-blocks/content.js`,this.settings.snippetPath=t.snippetPath||`${n}assets/minimalist-blocks/`,this.settings.snippetPathReplace=t.snippetPathReplace||["assets/minimalist-blocks/",`${n}assets/minimalist-blocks/`],this.settings.modulePath=t.modulePath||`${n}assets/modules/`,this.settings.pluginPath=t.pluginPath||`${n}contentbuilder/`,this.settings.contentStylePath=t.contentStylePath||`${n}assets/styles/`,this.settings.templates=t.templates||[{url:`${n}assets/templates-simple/templates.js`,path:`${n}assets/templates-simple/`,pathReplace:[],numbering:!0,showNumberOnHover:!0},{url:`${n}assets/templates-quick/templates.js`,path:`${n}assets/templates-quick/`,pathReplace:[],numbering:!0,showNumberOnHover:!0},{url:`${n}assets/templates-animated/templates.js`,path:`${n}assets/templates-animated/`,pathReplace:[],numbering:!0,showNumberOnHover:!0}],this.settings.assetsFolder=t.assetsFolder||`${n}assets/formfiles/`,this.settings.templatesUrl=t.templatesUrl||`${n}assets/templates.json`,this.settings.exampleImageUrl=t.exampleImageUrl||`${n}assets/formfiles/ai-V8Khk.jpg`,this.settings.exampleVideoUrl=t.exampleVideoUrl||`${n}assets/formfiles/ai-thhyR.mp4`,this.settings.exampleAudioUrl=t.exampleAudioUrl||`${n}assets/formfiles/ai-3EVMb.wav`),this.settings.snippetPathReplace.length>0&&0===this.settings.designPathReplace.length&&(this.settings.designPathReplace=this.settings.snippetPathReplace),this.isIPad()&&(this.settings.iframeDragDrop=!0);let o=document.querySelector("#_cbhtml");o||(o=document.createElement("div"),o.id="_cbhtml",o.style.visibility="hidden",o.className="is-ui",document.body.appendChild(o),o=document.querySelector("#_cbhtml")),this.builderStuff=o,(t=>{const i=t.builderStuff;e.appendHtml(i,'<svg width="0" height="0" style="position:absolute;display:none;">\n <defs>\n\n <symbol viewBox="0 0 512 512" id="ion-android-add"><path d="M416 277.333H277.333V416h-42.666V277.333H96v-42.666h138.667V96h42.666v138.667H416v42.666z"></path></symbol>\n <symbol viewBox="0 0 512 512" id="ion-edit"><path d="M163 439.573l-90.569-90.569L322.78 98.656l90.57 90.569zM471.723 88.393l-48.115-48.114c-11.723-11.724-31.558-10.896-44.304 1.85l-45.202 45.203 90.569 90.568 45.202-45.202c12.743-12.746 13.572-32.582 1.85-44.305zM64.021 363.252L32 480l116.737-32.021z"></path></symbol>\n <symbol viewBox="0 0 2048.0 2048.0" id="icon-snippets"><g id="document" transform="matrix(1,0,0,1,1024.0,1024.0)">\t\t\t<path d="M-727.581,329.502 L318.058,329.502 L318.058,-527.853 L-727.581,-527.853 L-727.581,329.502 Z " fill="#ffffff" fill-opacity="1.00" stroke-width="85.63" stroke="#000000" stroke-linecap="square" stroke-linejoin="miter" />\t\t\t<path d="M-347.749,652.594 L697.89,652.594 L697.89,-204.761 L-347.749,-204.761 L-347.749,652.594 Z " fill="#ffffff" fill-opacity="1.00" stroke-width="85.63" stroke="#000000" stroke-linecap="square" stroke-linejoin="miter" />\t\t</g></symbol>\n <symbol viewBox="0 0 512 512" id="ion-ios-copy-outline"><path d="M304 96h-16v80h80v-16h-64z"></path><path d="M325.3 64H160v48h-48v336h240v-48h48V139l-74.7-75zM336 432H128V128h32v272h176v32zm48-48H176V80h142.7l65.3 65.6V384z"></path></symbol>\n \n <symbol viewBox="0 0 24 24" id="icon-arrow-bar-to-up" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"/>\n <line x1="12" y1="10" x2="12" y2="20" />\n <line x1="12" y1="10" x2="16" y2="14" />\n <line x1="12" y1="10" x2="8" y2="14" />\n <line x1="4" y1="4" x2="20" y2="4" />\n </symbol>\n <symbol viewBox="0 0 24 24" id="icon-arrow-bar-to-down" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"/>\n <line x1="4" y1="20" x2="20" y2="20" />\n <line x1="12" y1="14" x2="12" y2="4" />\n <line x1="12" y1="14" x2="16" y2="10" />\n <line x1="12" y1="14" x2="8" y2="10" />\n </symbol>\n <symbol viewBox="0 0 24 24" id="icon-space-between" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"/>\n <line x1="4" y1="4" x2="20" y2="4" />\n <line x1="4" y1="20" x2="20" y2="20" />\n </symbol>\n\n <symbol id="icon-rotate-clockwise" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <path d="M9 4.55a8 8 0 0 1 6 14.9m0 -4.45v5h5"></path>\n <line x1="5.63" y1="7.16" x2="5.63" y2="7.17"></line>\n <line x1="4.06" y1="11" x2="4.06" y2="11.01"></line>\n <line x1="4.63" y1="15.1" x2="4.63" y2="15.11"></line>\n <line x1="7.16" y1="18.37" x2="7.16" y2="18.38"></line>\n <line x1="11" y1="19.94" x2="11" y2="19.95"></line>\n </symbol>\n\n <symbol id="icon-rotate-2" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <path d="M15 4.55a8 8 0 0 0 -6 14.9m0 -4.45v5h-5"></path>\n <line x1="18.37" y1="7.16" x2="18.37" y2="7.17"></line>\n <line x1="13" y1="19.94" x2="13" y2="19.95"></line>\n <line x1="16.84" y1="18.37" x2="16.84" y2="18.38"></line>\n <line x1="19.37" y1="15.1" x2="19.37" y2="15.11"></line>\n <line x1="19.94" y1="11" x2="19.94" y2="11.01"></line>\n </symbol>\n\n <symbol viewBox="0 0 24 24" id="icon-arrows-diagonal" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <polyline points="16 4 20 4 20 8"></polyline>\n <line x1="14" y1="10" x2="20" y2="4"></line>\n <polyline points="8 20 4 20 4 16"></polyline>\n <line x1="4" y1="20" x2="10" y2="14"></line>\n </symbol>\n \n <symbol viewBox="0 0 24 24" id="icon-arrows-diagonal-minimize" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <path d="M18 10h-4v-4"></path>\n <path d="M20 4l-6 6"></path>\n <path d="M6 14h4v4"></path>\n <path d="M10 14l-6 6"></path>\n </symbol>\n\n <symbol id="icon-circle-half" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <circle cx="12" cy="12" r="9"></circle>\n <path d="M12 3v18"></path>\n <path d="M12 14l7 -7"></path>\n <path d="M12 19l8.5 -8.5"></path>\n <path d="M12 9l4.5 -4.5"></path>\n </symbol>\n\n <symbol id="icon-box-multiple" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <rect x="7" y="3" width="14" height="14" rx="2"></rect>\n <path d="M17 17v2a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2v-10a2 2 0 0 1 2 -2h2"></path>\n </symbol>\n\n <symbol id="icon-typography" viewBox="0 0 24 24" stroke-width="1,3" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <line x1="4" y1="20" x2="7" y2="20"></line>\n <line x1="14" y1="20" x2="21" y2="20"></line>\n <line x1="6.9" y1="15" x2="13.8" y2="15"></line>\n <line x1="10.2" y1="6.3" x2="16" y2="20"></line>\n <polyline points="5 20 11 4 13 4 20 20"></polyline>\n </symbol>\n\n <symbol id="icon-hand-move" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <path d="M8 13v-8.5a1.5 1.5 0 0 1 3 0v7.5"></path>\n <path d="M11 11.5v-2a1.5 1.5 0 0 1 3 0v2.5"></path>\n <path d="M14 10.5a1.5 1.5 0 0 1 3 0v1.5"></path>\n <path d="M17 11.5a1.5 1.5 0 0 1 3 0v4.5a6 6 0 0 1 -6 6h-2h.208a6 6 0 0 1 -5.012 -2.7l-.196 -.3c-.312 -.479 -1.407 -2.388 -3.286 -5.728a1.5 1.5 0 0 1 .536 -2.022a1.867 1.867 0 0 1 2.28 .28l1.47 1.47"></path>\n <path d="M2.541 5.594a13.487 13.487 0 0 1 2.46 -1.427"></path>\n <path d="M14 3.458c1.32 .354 2.558 .902 3.685 1.612"></path>\n </symbol>\n \n <symbol id="icon-wand" viewBox="0 0 24 24" stroke-width="1.05" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <polyline points="6 21 21 6 18 3 3 18 6 21"></polyline>\n <line x1="15" y1="6" x2="18" y2="9"></line>\n <path d="M9 3a2 2 0 0 0 2 2a2 2 0 0 0 -2 2a2 2 0 0 0 -2 -2a2 2 0 0 0 2 -2"></path>\n <path d="M19 13a2 2 0 0 0 2 2a2 2 0 0 0 -2 2a2 2 0 0 0 -2 -2a2 2 0 0 0 2 -2"></path>\n </symbol>\n\n <symbol id="icon-pencil" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <path d="M4 20h4l10.5 -10.5a1.5 1.5 0 0 0 -4 -4l-10.5 10.5v4"></path>\n <line x1="13.5" y1="6.5" x2="17.5" y2="10.5"></line>\n </symbol>\n\n <symbol id="icon-window-maximize" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <rect x="3" y="16" width="5" height="5" rx="1"></rect>\n <path d="M4 12v-6a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-6"></path>\n <path d="M12 8h4v4"></path>\n <path d="M16 8l-5 5"></path>\n </symbol>\n\n <symbol id="icon-settings" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <path d="M10.325 4.317c.426 -1.756 2.924 -1.756 3.35 0a1.724 1.724 0 0 0 2.573 1.066c1.543 -.94 3.31 .826 2.37 2.37a1.724 1.724 0 0 0 1.065 2.572c1.756 .426 1.756 2.924 0 3.35a1.724 1.724 0 0 0 -1.066 2.573c.94 1.543 -.826 3.31 -2.37 2.37a1.724 1.724 0 0 0 -2.572 1.065c-.426 1.756 -2.924 1.756 -3.35 0a1.724 1.724 0 0 0 -2.573 -1.066c-1.543 .94 -3.31 -.826 -2.37 -2.37a1.724 1.724 0 0 0 -1.065 -2.572c-1.756 -.426 -1.756 -2.924 0 -3.35a1.724 1.724 0 0 0 1.066 -2.573c-.94 -1.543 .826 -3.31 2.37 -2.37c1 .608 2.296 .07 2.572 -1.065z"></path>\n <circle cx="12" cy="12" r="3"></circle>\n </symbol>\n\n <symbol id="icon-microphone" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <path d="M9 2m0 3a3 3 0 0 1 3 -3h0a3 3 0 0 1 3 3v5a3 3 0 0 1 -3 3h0a3 3 0 0 1 -3 -3z"></path>\n <path d="M5 10a7 7 0 0 0 14 0"></path>\n <path d="M8 21l8 0"></path>\n <path d="M12 17l0 4"></path>\n </symbol>\n <symbol id="icon-microphone-off" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <path d="M3 3l18 18"></path>\n <path d="M9 5a3 3 0 0 1 6 0v5a3 3 0 0 1 -.13 .874m-2 2a3 3 0 0 1 -3.87 -2.872v-1"></path>\n <path d="M5 10a7 7 0 0 0 10.846 5.85m2 -2a6.967 6.967 0 0 0 1.152 -3.85"></path>\n <path d="M8 21l8 0"></path>\n <path d="M12 17l0 4"></path>\n </symbol>\n <symbol id="icon-trash" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <path d="M4 7l16 0"></path>\n <path d="M10 11l0 6"></path>\n <path d="M14 11l0 6"></path>\n <path d="M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12"></path>\n <path d="M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3"></path>\n </symbol>\n <symbol id="icon-eraser" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <path d="M19 20h-10.5l-4.21 -4.3a1 1 0 0 1 0 -1.41l10 -10a1 1 0 0 1 1.41 0l5 5a1 1 0 0 1 0 1.41l-9.2 9.3"></path>\n <path d="M18 13.3l-6.3 -6.3"></path>\n </symbol>\n <symbol id="icon-refresh" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <path d="M20 11a8.1 8.1 0 0 0 -15.5 -2m-.5 -4v4h4"></path>\n <path d="M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4"></path>\n </symbol>\n <symbol id="icon-more" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <path d="M5 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"></path>\n <path d="M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"></path>\n <path d="M19 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"></path>\n </symbol>\n\n <symbol id="icon-arrow-down2" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <path d="M12 5l0 14"></path>\n <path d="M18 13l-6 6"></path>\n <path d="M6 13l6 6"></path>\n </symbol>\n <symbol id="icon-close" viewBox="0 0 24 24" stroke-width="1.6" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <path d="M18 6l-12 12"></path>\n <path d="M6 6l12 12"></path>\n </symbol>\n\n\n\n \n <symbol id="icon-right" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <path d="M9 6l6 6l-6 6"></path>\n </symbol>\n <symbol id="icon-close-right" viewBox="0 0 24 24" stroke-width="0.7" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <path d="M7 7l5 5l-5 5"></path>\n <path d="M13 7l5 5l-5 5"></path>\n </symbol>\n <symbol id="icon-pencil" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <path d="M4 20h4l10.5 -10.5a2.828 2.828 0 1 0 -4 -4l-10.5 10.5v4"></path>\n <path d="M13.5 6.5l4 4"></path>\n </symbol>\n <symbol id="icon-link" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <path d="M9 15l6 -6"></path>\n <path d="M11 6l.463 -.536a5 5 0 0 1 7.071 7.072l-.534 .464"></path>\n <path d="M13 18l-.397 .534a5.068 5.068 0 0 1 -7.127 0a4.972 4.972 0 0 1 0 -7.071l.524 -.463"></path>\n </symbol>\n <symbol id="icon-image" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <path d="M15 8h.01"></path>\n <path d="M3 6a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v12a3 3 0 0 1 -3 3h-12a3 3 0 0 1 -3 -3v-12z"></path>\n <path d="M3 16l5 -5c.928 -.893 2.072 -.893 3 0l5 5"></path>\n <path d="M14 14l1 -1c.928 -.893 2.072 -.893 3 0l3 3"></path>\n </symbol>\n <symbol id="icon-mood-smile" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"></path>\n <path d="M9 10l.01 0"></path>\n <path d="M15 10l.01 0"></path>\n <path d="M9.5 15a3.5 3.5 0 0 0 5 0"></path>\n </symbol>\n <symbol id="icon-eraser" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <path d="M19 20h-10.5l-4.21 -4.3a1 1 0 0 1 0 -1.41l10 -10a1 1 0 0 1 1.41 0l5 5a1 1 0 0 1 0 1.41l-9.2 9.3"></path>\n <path d="M18 13.3l-6.3 -6.3"></path>\n </symbol>\n <symbol id="icon-upload" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <path d="M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-2"></path>\n <path d="M7 9l5 -5l5 5"></path>\n <path d="M12 4l0 12"></path>\n </symbol>\n <symbol id="icon-settings" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <path d="M10.325 4.317c.426 -1.756 2.924 -1.756 3.35 0a1.724 1.724 0 0 0 2.573 1.066c1.543 -.94 3.31 .826 2.37 2.37a1.724 1.724 0 0 0 1.065 2.572c1.756 .426 1.756 2.924 0 3.35a1.724 1.724 0 0 0 -1.066 2.573c.94 1.543 -.826 3.31 -2.37 2.37a1.724 1.724 0 0 0 -2.572 1.065c-.426 1.756 -2.924 1.756 -3.35 0a1.724 1.724 0 0 0 -2.573 -1.066c-1.543 .94 -3.31 -.826 -2.37 -2.37a1.724 1.724 0 0 0 -1.065 -2.572c-1.756 -.426 -1.756 -2.924 0 -3.35a1.724 1.724 0 0 0 1.066 -2.573c-.94 -1.543 .826 -3.31 2.37 -2.37c1 .608 2.296 .07 2.572 -1.065z"></path>\n <path d="M9 12a3 3 0 1 0 6 0a3 3 0 0 0 -6 0"></path>\n </symbol>\n <symbol id="icon-viewcode" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <path d="M7 8l-4 4l4 4"></path>\n <path d="M17 8l4 4l-4 4"></path>\n <path d="M14 4l-4 16"></path>\n </symbol>\n <symbol id="icon-tool" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <path d="M7 10h3v-3l-3.5 -3.5a6 6 0 0 1 8 8l6 6a2 2 0 0 1 -3 3l-6 -6a6 6 0 0 1 -8 -8l3.5 3.5"></path>\n </symbol>\n <symbol id="icon-arrow-left" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <path d="M5 12l14 0"></path>\n <path d="M5 12l6 6"></path>\n <path d="M5 12l6 -6"></path>\n </symbol>\n <symbol id="icon-arrow-right" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <path d="M5 12l14 0"></path>\n <path d="M13 18l6 -6"></path>\n <path d="M13 6l6 6"></path>\n </symbol>\n <symbol id="icon-minus" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <path d="M5 12l14 0"></path>\n </symbol>\n <symbol id="icon-plus2" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <path d="M12 5l0 14"></path>\n <path d="M5 12l14 0"></path>\n </symbol>\n <symbol id="icon-arrow-back" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <path d="M9 14l-4 -4l4 -4"></path>\n <path d="M5 10h11a4 4 0 1 1 0 8h-1"></path>\n </symbol>\n <symbol id="icon-arrow-up" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <path d="M12 5l0 14"></path>\n <path d="M18 11l-6 -6"></path>\n <path d="M6 11l6 -6"></path>\n </symbol>\n <symbol id="icon-arrow-down" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <path d="M12 5l0 14"></path>\n <path d="M18 13l-6 6"></path>\n <path d="M6 13l6 6"></path>\n </symbol>\n <symbol id="icon-arrow-top" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <path d="M12 10l0 10"></path>\n <path d="M12 10l4 4"></path>\n <path d="M12 10l-4 4"></path>\n <path d="M4 4l16 0"></path>\n </symbol>\n <symbol id="icon-arrow-bottom" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <path d="M4 20l16 0"></path>\n <path d="M12 14l0 -10"></path>\n <path d="M12 14l4 -4"></path>\n <path d="M12 14l-4 -4"></path>\n </symbol>\n <symbol id="icon-copy" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <path d="M8 8m0 2a2 2 0 0 1 2 -2h8a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-8a2 2 0 0 1 -2 -2z"></path>\n <path d="M16 8v-2a2 2 0 0 0 -2 -2h-8a2 2 0 0 0 -2 2v8a2 2 0 0 0 2 2h2"></path>\n </symbol>\n <symbol id="icon-sidebar-right" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <path d="M4 4m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z"></path>\n <path d="M15 4l0 16"></path>\n </symbol>\n <symbol id="icon-upload" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <path d="M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-2"></path>\n <path d="M7 9l5 -5l5 5"></path>\n <path d="M12 4l0 12"></path>\n </symbol>\n <symbol id="icon-code-dots" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <path d="M15 12h.01"></path>\n <path d="M12 12h.01"></path>\n <path d="M9 12h.01"></path>\n <path d="M6 19a2 2 0 0 1 -2 -2v-4l-1 -1l1 -1v-4a2 2 0 0 1 2 -2"></path>\n <path d="M18 19a2 2 0 0 0 2 -2v-4l1 -1l-1 -1v-4a2 2 0 0 0 -2 -2"></path>\n </symbol>\n <symbol id="icon-dots" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <path d="M5 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"></path>\n <path d="M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"></path>\n <path d="M19 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"></path>\n </symbol>\n <symbol id="icon-chevron-down" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <path d="M6 9l6 6l6 -6"></path>\n </symbol>\n <symbol id="icon-chevron-uo" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <path d="M6 15l6 -6l6 6"></path>\n </symbol>\n\n <symbol id="icon-anim-timeline" viewBox="0 0 24 24" stroke-width="1.1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <path d="M9.225 18.412a1.595 1.595 0 0 1 -1.225 .588c-.468 0 -.914 -.214 -1.225 -.588l-4.361 -5.248a1.844 1.844 0 0 1 0 -2.328l4.361 -5.248a1.595 1.595 0 0 1 1.225 -.588c.468 0 .914 .214 1.225 .588l4.361 5.248a1.844 1.844 0 0 1 0 2.328l-4.361 5.248z"></path>\n <path d="M17 5l4.586 5.836a1.844 1.844 0 0 1 0 2.328l-4.586 5.836"></path>\n <path d="M13 5l4.586 5.836a1.844 1.844 0 0 1 0 2.328l-4.586 5.836"></path>\n </symbol>\n <symbol id="icon-download" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-2" /><path d="M7 11l5 5l5 -5" /><path d="M12 4l0 12" />\n </symbol>\n <symbol id="icon-blocks" viewBox="0 0 24 24" stroke-width="1.3" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M8 8m0 2a2 2 0 0 1 2 -2h8a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-8a2 2 0 0 1 -2 -2z" /><path d="M4 4l0 .01" /><path d="M8 4l0 .01" /><path d="M12 4l0 .01" /><path d="M16 4l0 .01" /><path d="M4 8l0 .01" /><path d="M4 12l0 .01" /><path d="M4 16l0 .01" />\n </symbol>\n\n </defs>\n </svg>')})(this),this.sidebar=new s(this),this.animateScroll=new Sy(this),this.timeline=new _y(this),this.util=new Cy(this),this.box=new Dx(this),this.section=new Nx(this),this.controlPanel&&(this.controlpanel=new D(this));const l=t=>{let e,i;if(t&&(this.iframe=t),this.iframe){e=this.iframe.contentWindow;let t=this.iframe.contentDocument||this.iframe.contentWindow.document;i=t,this.iframeDocument=t}else e=window,i=document;if(this.win=e,this.doc=i,this.iframe){let t=i.querySelector(".content-stuff");t||(t=document.createElement("div"),t.className="content-stuff is-ui",t.id="_cbhtml",i.body.appendChild(t)),this.contentStuff=t,this.stuff=new xy(this)}if(this.wrapperEl=this.doc.querySelector(this.wrapper),this.siteToken&&this.wrapperEl.setAttribute("data-site-token",this.siteToken),this.iframe){let t=document.querySelector(this.wrapper);if(t){let e=t.innerHTML,i=document.createRange();this.wrapperEl.innerHTML="",this.wrapperEl.appendChild(i.createContextualFragment(e))}}if(a_.hasClass(this.wrapperEl,"preview"))return void(this.preview=!0);a_.addClass(this.wrapperEl,"is-wrapper"),a_.addClass(this.wrapperEl,"is-edit");let n=this.settings.onChange;this.settings.onChange=(...t)=>{n&&n.apply(this,t),this.markContentChanged(),setTimeout((()=>{this.editor.livePreview.previewRefresh()}),100)};let s=this.settings.onAdd;this.settings.onAdd=t=>(s&&(t=s(t)),(t.includes("data-bottom-top")||t.includes("data-center-top"))&&setTimeout((()=>{this.win.pageReRender&&this.win.pageReRender()}),600),t),this.iframeSrc||(o.style.position="fixed",setTimeout((()=>{o.style.position="",this.wrapperEl.getBoundingClientRect().left<0&&(o.style.position="fixed",setTimeout((()=>{o.style.position=""}),1500))}),1500)),this.editorSetup();const l=`\n# Box Framework\n\nThe Box Framework handles page structure and layout. It works with the Content.css Framework to create complete, responsive designs.\n\n## Architecture Overview\n\n.is-section (page section)\n └── .is-box (layout box)\n ├── .is-overlay (background layer)\n │ └── .is-overlay-bg (background image/color)\n └── .is-container (content area)\n └── .row > .column (content from Content.css)\n\n---\n\n## Sections\n\nSections are full-width page divisions. Each section is a '<div class="is-section">'.\n\n### Basic Section\n\n<div class="is-section type-system-ui">\n \x3c!-- Content goes here --\x3e\n</div>\n\n${2===(a=this).contentStylesVersion?"\nThe 'type-*' class defines typography style. Always include one typography class on sections.\n\n### Typography Selection\n\nChoose the appropriate 'type-*' class based on design context. Always include one typography class on sections.\n\n| Class | Headings | Body | Character | Best For |\n|-------|----------|------|-----------|----------|\n| 'type-system-ui' | System UI | System UI | Neutral, clean, universal | Default choice, corporate, apps, general purpose |\n| 'type-literary-journal' | Lora (serif) | Karla (sans) | Elegant, intellectual, refined | Blogs, essays, publishing, book reviews, magazines |\n| 'type-luxury-fashion' | Cormorant Garamond | Montserrat | Sophisticated, high-end, minimal | Fashion, jewelry, luxury brands, galleries, high-end retail |\n| 'type-brutalist-refined' | Archivo Black | Libre Franklin | Bold, industrial, impactful | Architecture, design studios, portfolios, creative agencies |\n| 'type-mono-technical' | JetBrains Mono | JetBrains Mono | Technical, precise, developer-focused | Documentation, dev tools, SaaS, tech products, code-heavy |\n| 'type-space-grotesk' | Space Grotesk | Space Grotesk | Modern, geometric, tech-forward | Startups, fintech, crypto, modern tech, innovation |\n| 'type-candy-pop' | Fredoka | Nunito | Playful, friendly, rounded | Kids, games, entertainment, casual apps, fun brands |\n| 'type-blush-bloom' | Cormorant Infant | Quicksand | Soft, romantic, delicate | Weddings, beauty, wellness, feminine brands, florists |\n| 'type-botanical-garden' | Playfair Display | Lora | Organic, classic, natural | Gardens, eco brands, organic products, nature, sustainability |\n| 'type-city-guide' | DM Serif Display | DM Sans | Urban, contemporary, editorial | City guides, local businesses, restaurants, urban lifestyle |\n| 'type-grand-tour' | Cormorant SC (small caps) | Raleway | Classical, prestigious, timeless | Luxury travel, heritage tourism, museums, historic sites |\n| 'type-cultural-heritage' | Oranienbaum | Source Sans 3 | Stately, traditional, authoritative | Cultural institutions, history, government, academia |\n| 'type-spicy-kitchen' | Sriracha (handwritten) | Arvo | Warm, casual, appetizing | Food blogs, restaurants, recipes, cafes, culinary brands |\n":"\n**Important:** Always include 'type-system-ui' class on sections for default typography.\n"}\n\n### Section Height\n\nControl minimum section height with viewport-based classes:\n\n| Class | Height | Use Case |\n|-------|--------|----------|\n| '.is-section-50' | 50vh | Half screen sections |\n| '.is-section-60' | 60vh | Medium sections |\n| '.is-section-80' | 80vh | Tall sections |\n| '.is-section-100' | 100vh | Full screen hero sections |\n| '.is-section-auto' | Auto | Content-based height |\n\n**Example:**\n\n<div class="is-section type-system-ui is-section-100">\n \x3c!-- Full screen hero --\x3e\n</div>\n\n> **Available heights:** 10, 15, 20, 25, 30, 40, 50, 60, 70, 75, 80, 85, 90, 100, auto\n\n---\n\n## Boxes\n\nBoxes are layout divisions within sections. A section can contain one or multiple boxes.\n\n### Single Box Section\n\nWhen a section has only one box (full-width), combine classes:\n\n<div class="is-section is-box type-system-ui is-section-100">\n <div class="is-overlay">\n \x3c!-- Background --\x3e\n </div>\n <div class="is-container">\n \x3c!-- Content --\x3e\n </div>\n</div>\n\n### Multi-Box Section\n\nWhen a section has multiple boxes (split layout):\n\n<div class="is-section type-system-ui is-section-100">\n <div class="is-box is-box-5">\n <div class="is-overlay">\n \x3c!-- Background for left box --\x3e\n </div>\n <div class="is-container">\n \x3c!-- Left content --\x3e\n </div>\n </div>\n <div class="is-box is-box-7">\n <div class="is-overlay">\n \x3c!-- Background for right box --\x3e\n </div>\n <div class="is-container">\n \x3c!-- Right content --\x3e\n </div>\n </div>\n</div>\n\n### Box Width Classes\n\nBoxes use a 12-column grid system:\n\n| Class | Width | Common Use |\n|-------|-------|------------|\n| '.is-box-4' | 33.33% | Three columns |\n| '.is-box-5' | 41.67% | 40/60 split |\n| '.is-box-6' | 50% | Half/half split |\n| '.is-box-7' | 58.33% | 60/40 split |\n| '.is-box-8' | 66.67% | Two-thirds |\n| '.is-box-12' | 100% | Full width |\n\n> **Available widths:** 1-12 (increments of 8.33%)\n\n> **Mobile behavior:** On screens < 970px, all boxes stack to 100% width automatically.\n\n---\n\n## Overlay (Backgrounds)\n\nThe overlay system provides background images and colors behind content.\n\n### Background Color Only\n\n<div class="is-overlay" style="background-color: rgb(245, 245, 245);">\n</div>\n\n### Background Image\n\n<div class="is-overlay">\n <div class="is-overlay-bg" \n style="background-image: url('image.jpg'); \n background-position: 50% 60%;">\n </div>\n</div>\n\n### Dark Overlay on Image\n\n**Use case:** For the background behind white text content.\n\n<div class="is-overlay">\n <div class="is-overlay-bg" \n style="background-image: url('image.jpg'); \n background-position: 50% 60%;">\n <div class="is-overlay-color opacity-30"></div>\n </div>\n</div>\n\n> **Tip:** Use 'background-position' to control image focal point. Format: 'horizontal% vertical%'\n\n---\n\n## Container (Content Area)\n\nContainers hold the actual content and control its width and positioning.\n\n### Basic Container\n\n<div class="is-container">\n <div class="row">\n <div class="column">\n \x3c!-- Your content from Content.css framework --\x3e\n </div>\n </div>\n</div>\n\n> **Important:** Always wrap content inside container using the row → column structure from Content.css.\n\n### Container Width\n\nControl maximum content width:\n\n<div class="is-container is-content-1200">\n \x3c!-- Content max-width: 1200px --\x3e\n</div>\n\n**Common widths:**\n\n| Class | Max Width | Use Case |\n|-------|-----------|----------|\n| '.is-content-760' | 760px | Narrow text content |\n| '.is-content-980' | 980px | Default (if no class) |\n| '.is-content-1200' | 1200px | Standard wide |\n| '.is-content-1400' | 1400px | Extra wide |\n| '.is-content-1740' | 1740px | Ultra wide |\n\n> **Available widths:** 560, 580, 600... 1800 (increments of 20px)\n\n### Horizontal Position\n\nPosition container left, center (default), or right:\n\n\x3c!-- Left aligned --\x3e\n<div class="is-container is-content-left">\n\n\x3c!-- Centered (default) --\x3e\n<div class="is-container">\n\n\x3c!-- Right aligned --\x3e\n<div class="is-container is-content-right">\n\n> **Mobile behavior:** On screens < 760px, all containers center automatically.\n\n### Vertical Position\n\nPosition container top, middle (default), or bottom within the box:\n\n\x3c!-- Top aligned --\x3e\n<div class="is-section is-box type-system-ui is-content-top">\n <div class="is-container">\n\n\x3c!-- Middle aligned (default) --\x3e\n<div class="is-section is-box type-system-ui">\n <div class="is-container">\n\n\x3c!-- Bottom aligned --\x3e\n<div class="is-section is-box type-system-ui is-content-bottom">\n <div class="is-container">\n\n### Fine-Tune Vertical Position\n\nAdjust vertical spacing with edge classes:\n\n\x3c!-- Push content closer to top edge --\x3e\n<div class="is-section is-box type-system-ui is-content-top edge-y-0">\n\n\x3c!-- Push content away from bottom edge --\x3e\n<div class="is-section is-box type-system-ui is-content-bottom edge-y-4">\n\n**Edge values:**\n\n| Class | Effect |\n|-------|--------|\n| 'edge-y--5' to 'edge-y--1' | Pull inward (negative space) |\n| 'edge-y-0' | Flush to edge |\n| 'edge-y-1' to 'edge-y-5' | Push outward |\n\n> **Default spacing:** Without edge classes, containers have 6.5vh margin from top/bottom.\n\n### Container Vertical Padding\n\nAdd internal spacing inside containers:\n\n<div class="is-container content-py-60">\n \x3c!-- 60px padding top and bottom --\x3e\n</div>\n\n**Padding classes:**\n\n- 'content-pt-*' - Top padding only \n- 'content-pb-*' - Bottom padding only\n\n> **Available values:** 0, 10, 20, 30, 40, 50, 60, 70, 80\n\n---\n\n## Complete Examples\n\n### Full-Width Hero Section\n\n<div class="is-section is-box type-system-ui is-section-100 is-content-bottom">\n <div class="is-overlay" style="background-color: rgb(225, 225, 225);">\n <div class="is-overlay-bg" \n style="background-image: url('hero.jpg'); \n background-position: 50% 60%; \n opacity: 1;">\n </div>\n </div>\n <div class="is-container is-content-1400">\n <div class="row">\n <div class="column">\n <h1 class="size-72 leading-12">Hero Title</h1>\n <p class="size-18 leading-17">Subtitle text</p>\n </div>\n </div>\n </div>\n</div>\n\n### Split Section (40/60)\n\n<div class="is-section type-system-ui is-section-80">\n \x3c!-- Left box: 40% --\x3e\n <div class="is-box is-box-5">\n <div class="is-overlay" style="background-color: rgb(240, 240, 240);">\n </div>\n <div class="is-container is-content-760">\n <div class="row">\n <div class="column">\n <h2 class="size-42 leading-13">Text Content</h2>\n <p class="size-17 leading-17">Description...</p>\n </div>\n </div>\n </div>\n </div>\n \n \x3c!-- Right box: 60% --\x3e\n <div class="is-box is-box-7">\n <div class="is-overlay">\n <div class="is-overlay-bg" \n style="background-image: url('image.jpg'); \n background-position: 67% 60%;">\n </div>\n </div>\n </div>\n</div>\n\n### Centered Content Section\n\n<div class="is-section is-box type-system-ui is-section-60">\n <div class="is-container is-content-900">\n <div class="row">\n <div class="column">\n <p class="size-14 uppercase tracking-150 text-gray-400 text-center">About</p>\n </div>\n </div>\n <div class="row">\n <div class="column">\n <div class="spacer height-40"></div>\n </div>\n </div>\n <div class="row">\n <div class="column">\n <h2 class="size-48 leading-13 text-center">Our Story</h2>\n <p class="size-17 leading-17 text-gray-600 text-center">\n Company description...\n </p>\n </div>\n </div>\n </div>\n</div>\n\n---\n\n## Best Practices\n\n### 1. Typography Class\n\n\n${2===a.contentStylesVersion?"\n**Always include a 'type-*' class on every section.** Use 'type-system-ui' as the default, or select a contextual typography style based on the design:\n\n<div class=\"is-section type-system-ui is-section-100\">\n\n| Class | Best For |\n|-------|----------|\n| 'type-system-ui' | Default, corporate, apps, general purpose |\n| 'type-literary-journal' | Blogs, essays, publishing, magazines |\n| 'type-luxury-fashion' | Fashion, jewelry, luxury brands, galleries |\n| 'type-brutalist-refined' | Architecture, design studios, creative agencies |\n| 'type-mono-technical' | Documentation, dev tools, SaaS, tech products |\n| 'type-space-grotesk' | Startups, fintech, crypto, modern tech |\n| 'type-candy-pop' | Kids, games, entertainment, fun brands |\n| 'type-blush-bloom' | Weddings, beauty, wellness, feminine brands |\n| 'type-botanical-garden' | Gardens, eco brands, organic, sustainability |\n| 'type-city-guide' | City guides, restaurants, urban lifestyle |\n| 'type-grand-tour' | Luxury travel, heritage tourism, museums |\n| 'type-cultural-heritage' | Cultural institutions, history, academia |\n| 'type-spicy-kitchen' | Food blogs, restaurants, recipes, cafes |\n":"\n**Always include 'type-system-ui' on every section** for default typography:\n"}\n\n### 2. When to Use is-content-left and is-content-right\n\n**Primary Use Case: Full-Width Hero Sections**\n\n'is-content-left' and 'is-content-right' are primarily for **full-width sections** where you want content positioned to the left or right:\n\n\x3c!-- Hero section with left-aligned content --\x3e\n<div class="is-section is-box type-system-ui is-section-100">\n <div class="is-overlay">\n <div class="is-overlay-bg" style="background-image: url('hero.jpg');"></div>\n </div>\n <div class="is-container is-content-1200 is-content-left">\n <div class="row">\n <div class="column">\n <h1 class="size-72 leading-12">Hero Title</h1>\n </div>\n </div>\n </div>\n</div>\n\n> **Note:** Center alignment is the default - no class needed.\n\n**Split Sections: Generally NOT Needed**\n\nIn split sections, **avoid using is-content-left or is-content-right** because:\n\n1. **Small boxes (is-box-5, is-box-4, etc.)** are already narrow - left/right alignment doesn't make sense\n2. **Even is-box-6 (50% width)** - if content is wide (like is-content-540), it already takes up most of the box width, so left/right positioning has little effect\n\n\x3c!-- CORRECT: Split section WITHOUT left/right alignment --\x3e\n<div class="is-section type-system-ui is-section-70">\n <div class="is-box is-box-6">\n <div class="is-container is-content-540">\n \x3c!-- ✓ Centered naturally, no positioning needed --\x3e\n <div class="row">\n <div class="column">\n <h2 class="size-42 leading-13">Content</h2>\n </div>\n </div>\n </div>\n </div>\n <div class="is-box is-box-6">\n \x3c!-- Image box --\x3e\n </div>\n</div>\n\n\x3c!-- INCORRECT: Unnecessary left alignment in split section --\x3e\n<div class="is-section type-system-ui is-section-70">\n <div class="is-box is-box-6">\n <div class="is-container is-content-540 is-content-left">\n \x3c!-- ❌ Doesn't make sense - content is already wide --\x3e\n </div>\n </div>\n</div>\n\n**Exception: Small Content Like Captions**\n\nOnly use 'is-content-left' or 'is-content-right' in split sections for **very small content** (is-content-300 or smaller) where positioning makes a visual difference:\n\n\x3c!-- CORRECT: Small caption aligned left in split section --\x3e\n<div class="is-section type-system-ui is-section-80">\n <div class="is-box is-box-6">\n <div class="is-overlay">\n <div class="is-overlay-bg" style="background-image: url('photo.jpg'); \n background-position: 50% 50%;">\n </div>\n </div>\n </div>\n <div class="is-box is-box-6 is-content-bottom edge-y-1">\n <div class="is-overlay"></div>\n <div class="is-container is-content-300 is-content-left">\n <div class="row">\n <div class="column">\n <p class="size-14 text-gray-500">Photo caption text</p>\n </div>\n </div>\n </div>\n </div>\n</div>\n\n**CRITICAL: Width Limits with Left/Right Alignment**\n\nIf you do use 'is-content-left' or 'is-content-right':\n- **Maximum container width: is-content-540** (preferably smaller)\n- Wider containers can overflow box boundaries\n- This is because max-width only works properly when containers are centered\n\n**Guidelines:**\n- **Full-width sections** → Use is-content-left/right for left or right positioning (center is default)\n- **Split sections** → Usually DON'T use left/right alignment (content centers naturally)\n- **Split sections with tiny captions** → Can use left/right for small content (≤ is-content-300)\n- **Width limit** → If using left/right alignment, max is-content-540\n\n### 3. Section Structure\n\n**Always use this hierarchy:**\n- Section → Box → Overlay + Container → Row → Column\n\n**Never skip layers** or nest sections inside sections.\n\n### 4. Background Images\n\n- Use 'background-position' to control focal point\n- Common positions: '50% 60%' (centered, slightly below middle), '67% 60%' (right of center)\n- Adjust opacity for overlay effects: '0.7' to '0.9' for subtle tint\n\n### 5. Content Width\n\n- **Text-heavy content:** Use narrower widths (760-900px) for better readability\n- **Visual layouts:** Use wider widths (1200-1400px)\n- **Full bleed designs:** Use ultra-wide (1600-1740px)\n\n### 6. Vertical Positioning\n\n- **Hero sections:** Use 'is-content-bottom' to anchor text at bottom\n- **Centered messages:** Use default (middle) positioning\n- **Headers/navigation areas:** Use 'is-content-top'\n\n### 7. Mobile Responsiveness\n\nThe framework handles mobile automatically:\n- Boxes stack to 100% width\n- Containers center horizontally\n- Edge adjustments apply only on desktop\n\nNo mobile-specific code needed for basic layouts.\n\n### 8. Combining with Content.css\n\nThe Box Framework provides structure. The Content.css Framework provides content styling.\n\n**Box Framework handles:**\n- Page sections and layout\n- Background images/colors\n- Container positioning and width\n\n**Content.css handles:**\n- Typography and spacing\n- Buttons and components\n- Grid layout (rows/columns)\n- Text colors and styles\n\nAlways use both frameworks together for complete designs.\n\n### 9. Add smooth image scaling for overlay background image\n\n<div class="is-section ...">\n \x3c!-- Section content --\x3e\n</div>\n<div class="is-section ...">\n \x3c!-- Section content --\x3e\n</div>\n<style>\n /* Smooth image scaling */\n .is-overlay-bg {\n transition: transform 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);\n }\n .is-box:hover .is-overlay-bg {\n transform: scale(1.03);\n }\n</style>\n\n---\n\n## Common Patterns\n\n### Pattern: Image Left, Text Right\n\n<div class="is-section type-system-ui is-section-70">\n <div class="is-box is-box-6">\n <div class="is-overlay">\n <div class="is-overlay-bg" style="background-image: url('image.jpg');"></div>\n </div>\n </div>\n <div class="is-box is-box-6">\n <div class="is-container is-content-540 is-content-left">\n <div class="row">\n <div class="column">\n <h3 class="size-32 leading-13">Title</h3>\n <p class="size-17 leading-17 text-gray-600">Text content...</p>\n </div>\n </div>\n </div>\n </div>\n</div>\n\n### Pattern: Full-Width with Top-Aligned Narrow Content\n\n<div class="is-section is-box type-system-ui is-section-100 is-content-top edge-y-2">\n <div class="is-overlay" style="background-color: rgb(250, 250, 250);">\n </div>\n <div class="is-container is-content-760">\n <div class="row">\n <div class="column">\n <h1 class="size-60 leading-12">Headline</h1>\n <p class="size-18 leading-17">Description...</p>\n </div>\n </div>\n </div>\n</div>\n\n### Pattern: Dark overlay background image behind white text content.\n\n<div class="is-section is-box type-system-ui is-section-60 is-content-bottom edge-y-4">\n <div class="is-overlay">\n <div class="is-overlay-bg" style="background-image: url('assets/thelayout/images/ai-aZkV0.jpg'); background-position: 50% 40%;">\n <div class="is-overlay-color opacity-30"></div>\n </div>\n </div>\n <div class="is-container is-content-1200 text-center">\n <div class="row">\n <div class="column">\n <h2 class="size-60 font-light text-white leading-12 pb-6">Start your next chapter.</h2>\n <div class="spacer height-20"></div>\n <div>\n <a href="#" role="button" class="transition-all inline-block whitespace-nowrap cursor-pointer no-underline border-2 border-solid mt-2 mb-1 font-normal tracking-normal rounded-full py-3 px-10 size-16 leading-16 border-white hover:bg-white hover:text-black" style="color: #ffffff;">\n Visit Us Today\n </a>\n </div>\n </div>\n </div>\n </div>\n</div>\n\n### Pattern: Three Equal Boxes\n\n<div class="is-section type-system-ui is-section-60">\n <div class="is-box is-box-4">\n <div class="is-container">\n \x3c!-- Content --\x3e\n </div>\n </div>\n <div class="is-box is-box-4">\n <div class="is-container">\n \x3c!-- Content --\x3e\n </div>\n </div>\n <div class="is-box is-box-4">\n <div class="is-container">\n \x3c!-- Content --\x3e\n </div>\n </div>\n</div>\n`;var a;this.codechat=new eS({context:'\n\n# Content.css Framework\n\n## Grid System\n\nAll content must be wrapped in rows and columns.\n\n<div class="row">\n <div class="column">\n \x3c!-- Content here --\x3e\n </div>\n</div>\n<div class="row">\n <div class="column">\n \x3c!-- Content here --\x3e\n </div>\n <div class="column">\n \x3c!-- Content here --\x3e\n </div>\n</div>\n\n> **Important:** Never place content directly under a container. Always use row → column structure.\n\n### Inline Width Style\n\nJust use: <div class="column" style="width: 52%; flex: 0 0 auto;">\n\n<div class="row">\n <div class="column" style="width: 52%; flex: 0 0 auto;">\n <div class="column">\n</div>\n\n**If columns should be equal width:**\n\nJust use: <div class="column"> for each column.\n\n<div class="row">\n <div class="column">\n <div class="column">\n</div\n\n> **Tip:** On mobile (< 760px), columns automatically stack full-width for better responsiveness.\n\n### Column Gap\n\nRules:\n\n- **DO NOT add gap by default.** Columns have default padding (1rem left/right) which handles most cases.\n\n- **Use gap ONLY when the design specifically needs extra breathing room.**\n\n- ***ALWAYS use inline style for gap, NEVER use gap utility classes (gap-4, gap-6, etc.).***\n\nWhen gap is needed, use these guidelines based on content type:\n\n**Image galleries/portfolio grids: gap:20px (maximum)**\n\n<div class="row" style="gap:20px">\n <div class="column pb-6"><img...></div>\n <div class="column pb-6"><img...></div>\n <div class="column pb-6"><img...></div>\n</div>\n\n**Image + text layouts (2 columns): gap:30px (maximum)** \n\n<div class="row" style="gap:20px">\n <div class="column" style="width: 55%; flex: 0 0 auto;">\n <img...>\n </div>\n <div class="column flex flex-col justify-center">\n <h3>Title</h3>\n <p>Details...</p>\n </div>\n</div>\n\n**Default rule: No gap unless there\'s a specific design reason. When in doubt, omit gap.**\n\n\n### CRITICAL: When using gap with custom column widths:\n\n**Gap takes up space**, so column widths + gap must not exceed 100%.\n\n**Best practice: Use only ONE custom width, let other column(s) flex:**\n\nCORRECT (one width + gap):\n<div class="row" style="gap:20px">\n <div class="column" style="width: 55%; flex: 0 0 auto;">\n <img...>\n </div>\n <div class="column">\n \x3c!-- This column flexes to fill remaining space --\x3e\n <h3>Content...</h3>\n </div>\n</div>\n\nINCORRECT (widths don\'t account for gap):\n<div class="row" style="gap:20px">\n <div class="column" style="width: 38%; flex: 0 0 auto;">...</div> ❌\n <div class="column" style="width: 62%; flex: 0 0 auto;">...</div> ❌\n \x3c!-- 38% + 62% + 20px gap = overflow! --\x3e\n</div>\n\n### Font Sizes\n\nUse \'size-*\' classes for precise font sizing.\n\n| Class | Size | Common Use |\n|-------|------|------------|\n| \'.size-12\' | 12px | Small labels, captions |\n| \'.size-14\' | 14px | Labels, meta info |\n| \'.size-16\' | 16px | Body text |\n| \'.size-18\' | 18px | Large body text |\n| \'.size-20\' | 20px | Small headings |\n| \'.size-24\' | 24px | Subheadings |\n| \'.size-32\' | 32px | Medium headings |\n| \'.size-42\' | 42px | Large headings |\n| \'.size-48\' | 48px | Hero headings |\n| \'.size-60\' | 60px | Extra large headings |\n| \'.size-72\' | 72px | Display text, stats |\n| \'.size-96\' | 96px | Extra large display |\n\n> **Available sizes:** 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 24, 28, 32, 35, 38, 42, 46, 48, 50, 54, 60, 64, 68, 72, 76, 80, 84, 88, 92, 96, 100... up to 400\n\n### Font Weights\n\nClasses: font-light, font-normal, font-medium, font-semibold, font-bold\n\n### Letter Spacing (Tracking)\n\nClasses: tracking-tight, tracking-normal, tracking-wide, tracking-wider, tracking-150 (ideal for uppercase labels)\n\n### Line Height (Leading)\n\nClasses: leading-none, leading-12, leading-13, leading-14, leading-15, leading-16, leading-17, leading-18\n\n> **Best Practice:** Use \'leading-17\' or \'leading-18\' for body text. Use \'leading-12\' or \'leading-13\' for headings.\n\n### Text Utilities\n\nClasses: uppercase, lowercase, capitalize, text-center, text-left, text-right\n\nWhen creating centered (or left/right aligned) text sections: Apply alignment classes directly to text elements, NOT to wrapper divs.\n\nCORRECT (alignment on elements):\n\n<div class="column">\n <p class="size-12 text-gray-400 pb-4 text-center">Label</p>\n <h2 class="size-48 leading-12 pb-6 text-center">Heading</h2>\n <p class="size-17 leading-18 text-gray-600 text-center">Description...</p>\n</div>\n\nINCORRECT (wrapper div for alignment):\n\n<div class="column">\n <div class="text-center"> ❌\n <p class="size-12 text-gray-400 pb-4">Label</p>\n <h2 class="size-48 leading-12 pb-6">Heading</h2>\n <p class="size-17 leading-18 text-gray-600">Description...</p>\n </div>\n</div>\n\nKeep the content structure in column flat.\n\n### Padding\n\nClasses: p-0, p-2, p-3, p-4, p-6, p-8, p-10, p-12\n\n> **Available values:** 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 14, 16, 20\n\n**Example: Card with padding**\n\n\x3c!-- Example: Card with padding --\x3e\n<div class="p-12 box-border bg-gray-50">\n <p class="size-18 pb-4">Card content</p>\n <p class="size-14 text-gray-600">Description</p>\n</div>\n\n**Key classes:** p-X, box-border (always use box-border with padding on DIV or cards)\n\n### Directional Padding\n\nClasses: px-4, py-4, pt-4, pb-4, pl-4, pr-4\n\n### Spacer (Vertical Spacing)\n\n| Class | Description |\n|-------|-------------|\n| \'.spacer.height-20\' | 20px vertical space |\n| \'.spacer.height-40\' | 40px vertical space |\n| \'.spacer.height-60\' | 60px vertical space |\n| \'.spacer.height-80\' | 80px vertical space |\n| \'.spacer.height-100\' | 100px vertical space |\n| \'.spacer.height-120\' | 120px vertical space |\n\n**Example: Adding space between sections**\n\n\x3c!-- Example: Adding space between sections --\x3e\n<div class="row">\n <div class="column">\n <h2>Section Title</h2>\n </div>\n</div>\n<div class="row">\n <div class="column">\n <div class="spacer height-60"></div>\n </div>\n</div>\n<div class="row">\n <div class="column">\n <p>Section content...</p>\n </div>\n</div>\n\n> **Available heights:** 20, 40, 60, 80, 100, 120, 140, 160, 180, 200, 220, 240, 260, 280, 300\n\n---\n\n\n## Buttons\n\nButtons are portable and must be wrapped in a div inside a column. All styling uses content.css classes with inline styles for colors.\n\n### Button Structure\n\nAll buttons must be wrapped in a \'div\' (or use \'space-x-2\' for button groups):\n\n<div class="row">\n <div class="column">\n <div>\n <a href="#" role="button" class="...">\n Button Text\n </a>\n </div>\n </div>\n</div>\n\n### Base Button Classes\n\nEvery button includes these base classes:\n\ntransition-all inline-block whitespace-nowrap cursor-pointer \nborder-2 border-solid mt-2 mb-1 font-normal tracking-normal rounded-full\n\n### Button Sizes\n\n| Size | Classes | Use Case |\n|------|---------|----------|\n| **Small** | \'py-1 px-4 size-14 leading-13\' | Compact actions, inline buttons |\n| **Medium** | \'py-2 px-6 size-15 leading-14\' | Default size, most common |\n| **Large** | \'py-2 px-7 size-16 leading-16\' | Primary CTAs, hero sections |\n\n### Button Variants\n\n#### 1. Filled Button (Solid Background)\n\n\x3c!-- Light Background --\x3e\n<a href="#" role="button" \n class="transition-all inline-block whitespace-nowrap cursor-pointer \n no-underline border-2 border-solid mt-2 mb-1 font-normal \n tracking-normal rounded-full py-2 px-6 size-15 leading-14 \n border-transparent hover:border-transparent" \n style="color: rgb(24, 24, 27); background-color: rgb(240, 240, 241);"\n data-bg="rgb(240, 240, 241)" \n data-hover-bg="rgb(236, 236, 238)"\n onmouseover="if(this.getAttribute(\'data-hover-bg\'))\n this.style.backgroundColor=this.getAttribute(\'data-hover-bg\');" \n onmouseout="if(this.getAttribute(\'data-bg\'))\n this.style.backgroundColor=this.getAttribute(\'data-bg\');\n else this.style.backgroundColor=\'\';">\n Read More\n</a>\n\n\x3c!-- Dark Background --\x3e\n<a href="#" role="button" \n class="transition-all inline-block whitespace-nowrap cursor-pointer \n no-underline border-2 border-solid mt-2 mb-1 font-normal \n tracking-normal rounded-full py-2 px-6 size-15 leading-14 \n border-transparent hover:border-transparent" \n style="color: rgb(250, 250, 250); background-color: rgb(24, 24, 27);"\n data-bg="rgb(24, 24, 27)" \n data-hover-bg="rgb(63, 63, 70)"\n onmouseover="if(this.getAttribute(\'data-hover-bg\'))\n this.style.backgroundColor=this.getAttribute(\'data-hover-bg\');" \n onmouseout="if(this.getAttribute(\'data-bg\'))\n this.style.backgroundColor=this.getAttribute(\'data-bg\');\n else this.style.backgroundColor=\'\';">\n Get Started\n</a>\n\n\x3c!-- Dark Background (Square) --\x3e\n<a href="#" role="button" \n class="transition-all inline-block whitespace-nowrap cursor-pointer \n no-underline border-2 border-solid mt-2 mb-1 font-normal \n tracking-normal py-2 px-6 size-15 leading-14 \n border-transparent hover:border-transparent" \n style="color: rgb(250, 250, 250); background-color: rgb(24, 24, 27);"\n data-bg="rgb(24, 24, 27)" \n data-hover-bg="rgb(63, 63, 70)"\n onmouseover="if(this.getAttribute(\'data-hover-bg\'))\n this.style.backgroundColor=this.getAttribute(\'data-hover-bg\');" \n onmouseout="if(this.getAttribute(\'data-bg\'))\n this.style.backgroundColor=this.getAttribute(\'data-bg\');\n else this.style.backgroundColor=\'\';">\n Get Started\n</a>\n\n**Key classes:** \'no-underline\' + \'border-transparent\' + inline background color\n\n#### 2. Outline Button (Border Only)\n\n<a href="#" role="button" \n class="transition-all inline-block whitespace-nowrap cursor-pointer \n no-underline border-2 border-solid mt-2 mb-1 font-normal \n tracking-normal rounded-full py-2 px-6 size-15 leading-14 \n border-current hover:border-current">\n Read More\n</a>\n\n**Key classes:** \'no-underline\' + \'border-current\' (inherits text color)\n\n#### 3. Text Button (Underline)\n\n**For single text button:**\n\n<div>\n <a href="#" role="button" \n class="transition-all inline-block whitespace-nowrap cursor-pointer \n border-2 border-solid mt-2 mb-1 font-normal tracking-normal \n py-2 size-15 leading-14 \n underline border-transparent" \n style="color: rgb(24, 24, 27);">\n Read More\n </a>\n</div>\n\n**Key classes:** \'underline\'+ \'underline-offset-4\' + \'border-transparent\' (no horizontal padding needed).\n\n**For button groups:**\n\nWhen grouping multiple buttons together, ALL buttons need consistent horizontal padding (e.g. \'px-6\'):\n\n<div class="space-x-2">\n <a ... class="py-2 px-6 rounded-full" style="background-color:...">Get Started</a>\n <a ... class="py-2 px-6 underline border-transparent">Learn More</a>\n</div>\n\n### Button Groups\n\nUse \'space-x-1\' or \'space-x-2\' class to group buttons with consistent spacing:\n\n<div class="space-x-2">\n <a href="#" role="button" class="...">Read More</a>\n <a href="#" role="button" class="...">Get Started</a>\n</div>\n\n### Examples by Size\n\n#### Small Buttons\n\n<a href="#" role="button" \n class="transition-all inline-block whitespace-nowrap cursor-pointer no-underline border-2 border-solid mt-2 mb-1 font-normal tracking-normal rounded-full py-1 px-4 size-14 leading-13 border-transparent hover:border-transparent" style="color: rgb(250, 250, 250); background-color: rgb(24, 24, 27);" \n style="color: rgb(250, 250, 250); background-color: rgb(24, 24, 27);"\n data-bg="rgb(24, 24, 27)" \n data-hover-bg="rgb(63, 63, 70)"\n onmouseover="if(this.getAttribute(\'data-hover-bg\'))this.style.backgroundColor=this.getAttribute(\'data-hover-bg\');" \t\t\n onmouseout="if(this.getAttribute(\'data-bg\'))this.style.backgroundColor=this.getAttribute(\'data-bg\');else this.style.backgroundColor=\'\';"\n Read More\n</a>\n\n#### Large Buttons\n\n<div>\n <a href="#" role="button" \n class="transition-all inline-block whitespace-nowrap cursor-pointer no-underline border-2 border-solid mt-2 mb-1 font-normal tracking-normal rounded-full py-2 px-7 size-16 leading-16 border-transparent hover:border-transparent" \n style="color: rgb(250, 250, 250); background-color: rgb(24, 24, 27);" \n data-bg="rgb(24, 24, 27)" \n data-hover-bg="rgb(63, 63, 70)"\n onmouseover="if(this.getAttribute(\'data-hover-bg\'))this.style.backgroundColor=this.getAttribute(\'data-hover-bg\');" \n onmouseout="if(this.getAttribute(\'data-bg\'))this.style.backgroundColor=this.getAttribute(\'data-bg\');else this.style.backgroundColor=\'\';" >Read More</a>\n</div>\n\n> **Important:** Buttons are portable components. Users edit text and colors through the ContentBuilder UI, so all styling must use utility classes plus inline styles for colors.\n\n> **Hover Effect:** The \'data-bg\' and \'data-hover-bg\' attributes with \'onmouseover/onmouseout\' handlers enable hover color changes without additional CSS.\n\n### Text Colors\n\nUse grayscale for minimalist design.\n\n| Class | Color | Description |\n|-------|-------|-------------|\n| \'.text-black\' | #000 | Primary text, headings |\n| \'.text-gray-700\' | #374151 | Secondary text |\n| \'.text-gray-600\' | #6b7280 | Body text |\n| \'.text-gray-500\' | #9ca3af | Muted text, labels |\n| \'.text-gray-400\' | #d1d5db | Subtle text, placeholders |\n| \'.text-gray-300\' | #e5e7eb | Very subtle text |\n| \'.text-gray-200\' | #f3f4f6 | Ultra light text |\n\n### Background Colors\n\n| Class | Color | Description |\n|-------|-------|-------------|\n| \'.bg-white\' | #ffffff | White background |\n| \'.bg-gray-50\' | #fafafa | Light gray - cards, sections |\n| \'.bg-gray-100\' | #f3f4f6 | Slightly darker gray |\n| \'.bg-black\' | #000000 | Black - buttons, highlights |\n\n> **Editorial Style:** Stick to black, white, and grays for a clean, minimalist aesthetic. Use color sparingly for accents.\n\n\n## Animation\n\n**Transition**\n\nClasses: transition-none, transition, transition-colors, transition-opacity, transition-shadow, transition-transform, transition-all\n\n**Duration**\n\nClasses: duration-75, duration-100, duration-150, duration-200, duration-300, duration-400, duration-500, duration-600, duration-700, duration-800, duration-900, duration-1000, duration-1500\n\n**Timing**\n\nClasses: ease-linear, ease-in, ease-out, ease-in-out\n\n**Hover Transforms**\n\nClasses: hover:scale-105, hover:-translate-y-1, hover:-translate-y-2, .hover:translate-x-1, .hover:translate-x-2\n\n**Hover Shadow**\n\nClasses: hover:shadow-sm, hover:shadow, hover:shadow-md, hover:shadow-lg, hover:shadow-xl, hover:shadow-2xl\n\n**Hover Background Colors**\n\nClasses: hover:bg-white, hover:bg-black, hover:bg-gray-50, hover:bg-gray-100, hover:bg-gray-200, hover:bg-gray-300, hover:bg-gray-400, hover:bg-gray-500, hover:bg-gray-600, hover:bg-gray-700, hover:bg-gray-800, hover:bg-gray-900, hover:bg-transparent\n\n**Hover Text Colors**\n\nClasses: hover:text-white, hover:text-black, hover:text-current, hover:text-gray-50, hover:text-gray-100, hover:text-gray-200, hover:text-gray-300, hover:text-gray-400, hover:text-gray-500, hover:text-gray-600, hover:text-gray-700, hover:text-gray-800, hover:text-gray-900, hover:text-gray-950\n\n**Hover Opacity**\n\nClasses: hover:opacity-70, hover:opacity-75, hover:opacity-80, hover:opacity-90, hover:opacity-95, hover:opacity-100\n\n**Animation keyframes**\n\nClasses: spin, ping, pulse, bounce\n\n### Animation Examples\n\n**Example: Hover lift on Cards**\n\n<div class="row" style="gap: 30px;">\n <div class="column">\n \t\x3c!-- card --\x3e\n <div class="p-10 box-border bg-white h-full transition-transform duration-300 hover:-translate-y-2" style="border: 1px solid #e0e0e0;">\n <div class="mb-6 text-gray-300"><i class="bi bi-star-fill"></i><i class="bi bi-star-fill"></i><i class="bi bi-star-fill"></i><i class="bi bi-star-fill"></i><i class="bi bi-star-fill"></i></div>\n <p class="size-18 leading-16 mb-8 text-gray-800">"It\'s rare to find a tool that balances power with simplicity so effectively. It has completely streamlined our workflow."</p>\n <p class="size-13 font-bold uppercase tracking-widest">Freja E. — Company</p>\n </div>\n </div>\n <div class="column">\n \t\x3c!-- card --\x3e\n </div>\n <div class="column">\n \t\x3c!-- card --\x3e\n </div>\n</div>\n\n**Key classes:** transition-transform, duration-300, hover:translate-y--2\n\n**Example: Hover shift on List Items**\n\n<div class="row" style="gap: 30px;">\n <div class="column">\n \x3c!-- list item --\x3e\n <div class="flex items-start pb-10 mb-10 transition-transform duration-300 ease-out hover:translate-x-2" style="border-bottom: 1px solid #e0e0e0;">\n <div class="pr-6 pt-5">\n <i class="bi bi-globe size-24 text-black"></i>\n </div>\n <div>\n <h3 class="size-24 font-normal mb-3">Global Perspective</h3>\n <p class="size-16 leading-17 text-gray-600">\n Our team spans three continents, bringing diverse cultural insights to every project. We design experiences that transcend borders while respecting local nuances, ensuring your brand resonates globally.\n </p>\n </div>\n </div>\n \x3c!-- list item --\x3e\n <div class="flex items-start pb-10 mb-10 transition-transform duration-300 ease-out hover:translate-x-2" style="border-bottom: 1px solid #e0e0e0;">\n \t\t\x3c!-- item content --\x3e\n </div>\n </div>\n</div>\n\n**Key classes:** transition-transform, duration-300, hover:translate-x-2\n\n**Example: Hover lift and shadow on Cards**\n\n<div class="row" style="gap: 30px;">\n <div class="column">\n \t\x3c!-- card --\x3e\n <div class="p-10 box-border bg-white transition-all duration-300 ease-out hover:-translate-y-2 hover:shadow-xl" style="border: 1px solid #e5e5e5;">\n \t\t\x3c!-- card content --\x3e \n </div>\n </div>\n <div class="column">\n \t\x3c!-- card --\x3e\n </div>\n <div class="column">\n \t\x3c!-- card --\x3e\n </div>\n</div>\n\n**Key classes:** transition-all duration-300 ease-out hover:-translate-y-2 hover:shadow-xl\n\n**Example: Hover zoom on Cards**\n\n<div class="row" style="gap: 30px;">\n <div class="column">\n \t\x3c!-- card --\x3e\n <div class="p-12 box-border bg-white h-full flex flex-col items-center text-center transition-transform duration-300 ease-out hover:scale-105" style="box-shadow: 0 10px 40px -10px rgba(0,0,0,0.05);">\n \t\t\x3c!-- card content --\x3e \n </div>\n </div>\n <div class="column">\n \t\x3c!-- card --\x3e\n </div>\n <div class="column">\n \t\x3c!-- card --\x3e\n </div>\n</div>\n\n**Key classes:** transition-transform, duration-300, ease-out, hover:scale-105\n\n**Example: Hover zoom on Images**\n\n<div class="row" style="gap:40px;">\n <div class="column">\n <div class="w-full overflow-hidden relative bg-gray-50 mb-6" style="aspect-ratio: 4 / 3;">\n <img src="image1.jpg" alt="Freja E. Andersen" class="w-full h-full object-cover transition-transform hover:scale-105 duration-1000">\n </div>\n <h4 class="size-20 font-normal">Freja E. Andersen</h4>\n <p class="size-14 text-gray-500 uppercase tracking-wide mt-1 mb-3">Lead Architect</p>\n <p class="size-15 text-gray-600 leading-16">Specializing in sustainable residential architecture with a focus on natural light.</p>\n </div>\n <div class="column">\n \n </div>\n <div class="column">\n \n </div>\n </div>\n\n**Key classes:** transition-transform, hover:scale-105, duration-1000 (or use duration-1500 for larger image)\n\n---\n\n## Common Patterns\n\n### Section Header\n\n<div class="row">\n <div class="column">\n <p class="uppercase tracking-150 size-12 text-gray-400">\n Section Label\n </p>\n </div>\n</div>\n<div class="row">\n <div class="column">\n <div class="spacer height-40"></div>\n </div>\n</div>\n\n### Card with Padding\n\n<div class="p-12 box-border bg-gray-50">\n <p class="size-18 leading-17 text-black pb-4">\n Card title or content\n </p>\n <p class="size-14 text-gray-600">\n Secondary text\n </p>\n</div>\n\n### Feature with Number\n\n<div class="column">\n <p class="size-14 font-semibold tracking-150 text-gray-300 pb-4">\n 01\n </p>\n <h3 class="size-32 font-normal leading-13 pb-4">\n Feature Title\n </h3>\n <p class="size-16 leading-17 text-gray-600">\n Feature description text here.\n </p>\n</div>\n\n### Centered Content\n\n<div class="row">\n <div class="column">\n <h1 class="size-60 font-light leading-12 text-center">\n Centered Heading\n </h1>\n </div>\n</div>\n\n### Image Grid\n\n<div class="row">\n <div class="column">\n <p class="uppercase tracking-150 size-12 text-gray-400">Meet The Team</p>\n </div>\n</div>\n<div class="row">\n <div class="column">\n <div class="spacer height-60"></div>\n </div>\n</div>\n<div class="row">\n <div class="column">\n \t<div class="w-full overflow-hidden relative bg-gray-50 mb-2" style="aspect-ratio: 4 / 3;">\n <img src="image1.jpg" alt="Freja E. Andersen" class="w-full h-full object-cover transition-transform hover:scale-105 duration-1000">\n </div>\n <h4 class="size-18 font-medium pb-2 text-center">Alex Thompson</h4>\n <p class="size-12 uppercase tracking-150 text-gray-500 pb-3 text-center">Founder &amp; CEO</p>\n <p class="size-15 leading-16 text-gray-600 text-center">Visionary leader with 15 years of experience.</p>\n </div>\n <div class="column">\n \x3c!-- Next image --\x3e\n </div>\n <div class="column">\n \x3c!-- Next image --\x3e\n </div>\n</div>\n\n## Best Practices\n\n### 1. Typography Hierarchy\n\n- **Large Headings:** Use \'size-48\' to \'size-96\' with \'font-light\' and \'leading-12\'\n- **Medium Headings:** Use \'size-28\' to \'size-42\' with \'font-normal\' and \'leading-13\'\n- **Body Text:** Use \'size-16\' to \'size-18\' with \'text-gray-600\' and \'leading-17\'\n- **Labels:** Use \'size-12\' to \'size-14\' with \'uppercase tracking-150\' and \'text-gray-400\'\n\n### 2. Color Usage\n\n- Primary text: \'text-black\'\n- Body text: \'text-gray-600\'\n- Muted text: \'text-gray-500\' or \'text-gray-400\'\n\n### 3. Structure Rules\n\n- Always wrap content in \'.row\' → \'.column\'\n- Never place text/content directly under container\n- Wrap all links in \'<p>\' or \'<div>\' \n- Keep layout structure *flat* (no nested rows/columns inside other columns)\n\n### 4. Minimalist Approach\n\n- Use generous white space\n- Keep color palette minimal (black, white, grays)\n- Use light font weights for headings\n- Maintain visual hierarchy through size and spacing, not color\n\n### 5. When creating multi-column layouts:\n\nColumns have default padding (1rem left/right) which handles most cases.\n\n**Do NOT use:**\n\n- pr-* pl-* px-* for column spacing ❌\n Use gap when you need **MORE** spacing than the default.\n- Padding classes on columns (except for image gallery exception)\n\nImages have no default margin, so add pb-* to columns for mobile stacking:\n\n<div class="row" style="gap:20px">\n <div class="column pb-6"><img...></div>\n <div class="column pb-6"><img...></div>\n</div>\n\n\n### 6. Vertical Centering\nWhen creating side-by-side layouts with vertical positioning:\n\n**For functional alignment (content should align based on column height):**\nUse flexbox, NOT spacers:\n- Center: flex flex-col justify-center\n- Bottom: flex flex-col justify-end\n- Top: (default, no class needed)\n\nCORRECT:\n<div class="row" style="gap:20px">\n <div class="column">\n <img src="..." style="width: 100%; object-fit: cover;">\n </div>\n <div class="column flex flex-col justify-center">\n <h3>Title</h3>\n <p>Content...</p>\n </div>\n</div>\n\nINCORRECT:\n<div class="column">\n <div class="spacer height-120"></div> ❌ (Fixed spacing breaks responsively)\n <h3>Title</h3>\n <p>Content...</p>\n</div>\n\n**For creative/editorial positioning (intentional staggered or asymmetric layouts):**\nUse spacers for deliberate visual rhythm:\n\n<div class="row">\n <div class="column">\n <div class="spacer height-160"></div>\n <img...>\n </div>\n <div class="column">\n <div class="spacer height-80"></div>\n <img...>\n </div>\n <div class="column">\n <h2>Title</h2>\n </div>\n</div>\n\n**Decision guide:**\n- Content needs to align based on other column heights? → Use flexbox\n- Content should be deliberately offset for visual interest? → Use spacers\n\nSpacers in editorial designs create intentional asymmetry and visual rhythm, which is different from trying to align content responsively.\n\n\n### 7. DO NOT create nested grids (row/column inside column).\n\nFor horizontal layouts within a column, use simple flexbox instead of nested grids.\n\nINCORRECT (nested grid):\n<div class="row">\n <div class="column">\n <div class="row"> ❌\n <div class="column"><h3>Title</h3></div>\n <div class="column"><p>Category</p></div>\n <div class="column"><p>Date</p></div>\n </div>\n </div>\n</div>\n\nCORRECT (simple flexbox):\n\n<div class="row">\n <div class="column">\n <div class="flex justify-between items-center">\n <h3>Title</h3>\n <p>Category</p>\n <p>Date</p>\n </div>\n </div>\n</div>\n\nINCORRECT (nested grid):\n\nCommon flexbox utilities for simple layouts:\n\n- flex justify-between = space items apart\n- flex justify-center = center items\n- flex items-center = vertically center\n- flex gap-4 = add spacing between items\n\nKeep the structure flat.\n\n### 8. Spacing in Design\n\nIMPORTANT: Text elements (h1-h6, p) already have default top/bottom margins in the framework.\nThe framework\'s default margins are designed to create proper text spacing. Only add padding for design purposes (borders, containers, backgrounds), not for basic text spacing.\n\nGuidelines:\n- For borders between items: pb-2 pt-2 is sufficient\n- For visual grouping: pb-3 pt-3 maximum\n- For design containers (backgrounds, cards, boxes): use generous padding (p-8, p-10, p-12, etc.)\n- For major section breaks: use spacer elements instead\n- Trust default margins - don\'t fight them with excessive padding\n\nCORRECT (minimal padding with borders):\n<div class="pb-2" style="border-bottom: 1px solid #f0f0f0;">\n <div class="flex justify-between items-center">\n <p class="size-14 uppercase tracking-150 text-gray-500">Material</p>\n <p class="size-16 text-gray-700">Solid Oak, Italian Leather</p>\n </div>\n</div>\n<div class="pb-2 pt-2" style="border-bottom: 1px solid #f0f0f0;">\n <div class="flex justify-between items-center">\n <p class="size-14 uppercase tracking-150 text-gray-500">Dimensions</p>\n <p class="size-16 text-gray-700">76 × 68 × 82 cm</p>\n </div>\n</div>\n\nINCORRECT (excessive padding):\n<div class="pb-6" style="border-bottom: 1px solid #f0f0f0;"> ❌\n <div class="flex justify-between items-center pb-4"> ❌\n <p class="size-14 uppercase tracking-150 text-gray-500">Material</p>\n <p class="size-16 text-gray-700">Solid Oak, Italian Leather</p>\n </div>\n</div>\n<div class="pb-6 pt-6" style="border-bottom: 1px solid #f0f0f0;"> ❌\n <div class="flex justify-between items-center pb-4"> ❌\n <p class="size-14 uppercase tracking-150 text-gray-500">Dimensions</p>\n <p class="size-16 text-gray-700">76 × 68 × 82 cm</p>\n </div>\n</div>\n\nCORRECT (intentional design padding):\n<div class="p-12 bg-gray-50">\n <p class="size-18 leading-17 text-black pb-8">Quote text...</p>\n <p class="size-14 font-semibold text-black pb-2">Name</p>\n <p class="size-13 text-gray-600">Title</p>\n</div>\n\nGenerous padding is appropriate for visual design elements like cards, testimonials, or highlighted sections.\n\n### 9. Icons\n\nWhen creating icon-based features, benefits, or service sections: use Bootstrap Icons, NOT emojis. The framework includes Bootstrap Icons support. Wrap icons in a div for proper display:\n\n<div class="text-center pb-6">\n <i class="bi bi-lightning size-42"></i>\n</div>\n<h4 class="size-18 font-medium text-center pb-3">Lightning Fast</h4>\n<p class="size-14 leading-16 text-gray-600 text-center">Description...</p>\n\n### 9. Image Layout with Hover Effect\n\nUse this pattern for all images (galleries, featured images, portfolio items):\n\n<div class="w-full overflow-hidden relative bg-gray-50" style="aspect-ratio:16/9">\n <img src="..." alt="..." class="w-full h-full object-cover transition-transform duration-1500 hover:scale-105">\n</div>\n\n**Key elements:**\n- \'aspect-ratio:16/9\' - maintains proportions (adjust as needed: 1/1, 4/3, 3/2, 16/9, etc.)\n- \'overflow-hidden\' - keeps scaled image contained\n- \'bg-gray-50\' - placeholder while image loads\n- \'transition-transform duration-1000\' - smooth 1-second animation\n- \'hover:scale-105\' - subtle 5% scale on hover\n- \'object-cover\' - ensures image fills container\n\n**Common aspect ratios:**\n- Square: \'aspect-ratio:1/1\'\n- Portrait: \'aspect-ratio:3/4\' or \'aspect-ratio:2/3\'\n- Landscape: \'aspect-ratio:4/3\' or \'aspect-ratio:3/2\'\n- Wide: \'aspect-ratio:16/9\' or \'aspect-ratio:21/9\'\n- Tall portrait: \'aspect-ratio:9/16\'\n\nAlways include this hover effect for a polished, interactive feel.\n\n'+l+'\n# Custom Code Block\n\nUse Code Block for creating interactive elements that need JavaScript.\n\nCode Block can only be placed:\n\n- in content (inside div.column)\n- in overlay (must be in div.is-overlay-content)\n\n**In Content**\n\n<div class="row">\n <div class="column">\n \t\t<div data-cb-type="code">\n \x3c!-- Your Code --\x3e\n </div>\n \t</div>\n</div>\n\n**In Overlay**\n\n<div class="is-section is-box is-section-100 type-system-ui">\n <div class="is-overlay">\n <div class="is-overlay-content">\n <div data-cb-type="code" style="position: absolute; top:0, left:0; width: 100%; height: 100%">\n \t\t\t\x3c!-- Your Code --\x3e\n </div>\n </div>\n </div>\n \n \x3c!-- ... --\x3e\n</div>\n\n### 1. Basic Example\n\n**Important**: Always Use \'data-cb-type="code"\' and create \'mount\' function.\n\n<div data-cb-type="code">\n <h3 class="code-block__title font-normal size-24">Code Block</h3>\n <p>This is a custom code block. Open HTML code editor to edit this block.</p>\n <script>\n (function() {\n // Get reference to this specific script element\n const currentScript = document.currentScript;\n // Navigate to the parent container\n const container = currentScript.parentElement;\n\n \tconst initialize = async () => {\n // Find the title within THIS container only\n const title = container.querySelector(\'.code-block__title\');\n if (title) {\n title.textContent = \'Code Block\';\n }\n };\n \n // Create mount function and store it on the container\n // for the Runtime to render the plugin\n container.mount = function() {\n initialize(); // Start initialization\n };\n // If no runtime, just start initialization\n if (!window.builderRuntime) {\n initialize();\n }\n })();\n <\/script>\n</div>\n\n### 2. Inline \'<style>\' and Dynamic External Script Loading\n\n<div data-cb-type="code">\n <style>\n\n </style>\n\n <div class="swiper swiper-initialized swiper-horizontal">\n \n </div>\n\n <script>\n (function() {\n const currentScript = document.currentScript;\n const container = currentScript.parentElement;\n\n // Dynamic loader for Swiper CSS\n const loadSwiperCSS = () => {\n return new Promise((resolve, reject) => {\n // Check if CSS already loaded\n const existingLink = document.querySelector(\'link[href*="swiper-bundle.min.css"]\');\n if (existingLink) {\n resolve();\n return;\n }\n\n const link = document.createElement(\'link\');\n link.rel = \'stylesheet\';\n link.href = \'https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.css\';\n link.onload = () => resolve();\n link.onerror = reject;\n document.head.appendChild(link);\n });\n };\n\n // Dynamic loader for Swiper JS\n const loadSwiper = () => {\n return new Promise((resolve, reject) => {\n if (window.Swiper) {\n resolve(window.Swiper);\n return;\n }\n const script = document.createElement(\'script\');\n script.src = \'https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.js\';\n script.onload = () => resolve(window.Swiper);\n script.onerror = reject;\n document.head.appendChild(script);\n });\n };\n\n // Initialize plugin\n const initializeSlider = async () => {\n try {\n // Load dependencies\n await loadSwiperCSS();\n const Swiper = await loadSwiper();\n\n\t\t\t\t\t\t\t\t\t\t// ...\n\n } catch (error) {\n console.error(\'Failed to initialize slider:\', error);\n }\n };\n\n // Create mount function and store it on the container\n // for the Runtime to render the plugin\n container.mount = function() {\n initializeSlider(); // Start initialization\n };\n // If no runtime, just start initialization\n if (!window.builderRuntime) {\n initializeSlider();\n }\n })();\n <\/script>\n</div>\n\nRemember: The goal is to create code blocks that are **self-contained**, **conflict-free**, and **easy to integrate** into any HTML environment. Follow these patterns for consistent, reliable code block development.\n\n### Important:\n\n**Code Block can only be placed**:\n\n- in content (inside div.column)\n- in overlay (must be in div.is-overlay-content)\n\n**In Content**\n\n<div class="row">\n <div class="column">\n \t\t<div data-cb-type="code">\n \x3c!-- Your Code --\x3e\n </div>\n \t</div>\n</div>\n\n**In Overlay**\n\n<div class="is-section is-box is-section-100 type-system-ui">\n <div class="is-overlay">\n <div class="is-overlay-content">\n <div data-cb-type="code" style="position: absolute; top:0, left:0; width: 100%; height: 100%">\n \t\t\t\x3c!-- Your Code --\x3e\n </div>\n </div>\n </div>\n \n \x3c!-- ... --\x3e\n</div>\n\n# Design Directive:\n\n## Purpose\n\nThis guide complements the Box Framework and Content Framework documentation. It explains how to create **diverse, creative designs** that go beyond default aesthetics while strictly adhering to framework utility classes.\n\n## Core Philosophy: Design Freedom Within Constraints\n\nThe frameworks provide utility classes for structure and typography. To create rich, varied designs:\n\n1. **Use framework classes** for all structural elements (sections, boxes, containers, typography, spacing)\n2. **Add inline styles** for colors, backgrounds, gradients, shadows, transforms, and animations\n3. **Create embedded styles** in \'<style>...</style>\' blocks for animations, transitions, and reusable patterns\n\n## CRITICAL: Output Format\n\n**DO NOT include:**\n- \'<!DOCTYPE>\', \'<html>\', \'<head>\', \'<body>\' tags\n- External CSS files or \'<link>\' tags\n- The frameworks are already loaded in the system\n\n**DO create:**\n- Multiple \'<div class="is-section">\' blocks with complete content\n- Embedded \'<style>...</style>\' block at the end when needed for animations, transitions, or reusable patterns\n- Only the HTML sections that will be inserted into an existing page\n\n**Example structure:**\n\n\x3c!-- Section 1 --\x3e\n<div class="is-section is-box type-system-ui is-section-100">\n \x3c!-- Content --\x3e\n</div>\n\n\x3c!-- Section 2 --\x3e\n<div class="is-section is-box type-system-ui is-section-80">\n \x3c!-- Content --\x3e\n</div>\n\n\x3c!-- Section 3 --\x3e\n<div class="is-section is-box is-section-100 type-system-ui">\n\n <div class="is-container leading-14 size-18 is-content-1100">\n\n <div class="row">\n <div class="column">\n\n \x3c!-- GUIDANCE: Use this layout to show images at any aspect ratio with a hover scale effect --\x3e\n <div class="w-full overflow-hidden relative bg-gray-50" style="aspect-ratio:16/9">\n <img src="https://placehold.co/1200x1200/f5f5f5/999?text=Featured" alt="Featured Project" class="w-full h-full object-cover transition-transform duration-1500 hover:scale-105">\n </div>\n\n </div>\n </div>\n \n <div class="row">\n <div class="column">\n\n <div class="featured-image">\n <img src="https://placehold.co/1600x700" alt="Featured Project">\n </div>\n\n </div>\n </div>\n\n <div class="row portfolio-row">\n <div class="column">\n\n <div class="row-image">\n <img src="https://placehold.co/1200x900" alt="Digital Banking">\n </div>\n\n </div>\n <div class="column">\n\n \x3c!-- Content --\x3e\n\n </div>\n </div>\n\n <div class="row">\n\n <div class="column">\n\n <div class="p-12 bg-gray-50 hover-lift">\n <p class="size-18 leading-17 text-black pb-8">The level of professionalism and expertise demonstrated throughout the project was outstanding. Highly recommend to anyone looking for quality work.</p>\n <p class="size-14 font-semibold text-black pb-1">Michael Chen</p>\n <p class="size-13 text-gray-600 tracking-wide">Founder, Innovation Labs</p>\n </div>\n\n </div>\n <div class="column">\n\n \x3c!-- Content --\x3e\n\n </div>\n </div>\n </div>\n</div>\n\n\x3c!-- Embedded Styke --\x3e\n<style>\n\n /* Featured image */\n .featured-image {\n width: 100%;\n aspect-ratio: 21/9;\n overflow: hidden;\n position: relative;\n background: #fafafa;\n }\n .featured-image img {\n width: 100%;\n height: 100%;\n object-fit: cover;\n transition: transform 2s cubic-bezier(0.4, 0, 0.2, 1);\n }\n .featured-image:hover img {\n transform: scale(1.03);\n }\n\n /* Row image */\n .row-image {\n width: 100%;\n aspect-ratio: 4/3;\n overflow: hidden;\n position: relative;\n background: #fafafa;\n }\n .row-image img {\n width: 100%;\n height: 100%;\n object-fit: cover;\n transition: transform 1.4s cubic-bezier(0.4, 0, 0.2, 1);\n }\n .portfolio-row:hover .row-image img {\n transform: scale(1.05);\n }\n\n /* Smooth hover animations */\n .hover-lift {\n transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);\n }\n .hover-lift:hover {\n transform: translateY(-4px);\n }\n</style>\n\n\n## Key Aesthetic Philosophy:\n**Swiss/Minimalist meets Portfolio Presentation** - Clean, grid-based, information-focused design where content hierarchy is created through scale, weight, and spacing rather than color or decoration. Every element serves a functional purpose. Photography is professional and high-quality. Typography creates drama through size contrast. The overall feel is sophisticated, professional, and timeless.\n\n## Design Characteristics:\n\n### Typography Treatment\n- **Extreme scale contrast**: Massive headlines (80px-140px) paired with tiny metadata text \n- **Version/number typography**: Large numbers (like "1.1", "2.4", "2027") used as design elements\n- **Mix of weights**: Bold project names with light secondary information\n\n### Layout Patterns\n- **Horizontal information bars**: Thin lines (1px-2px) separating sections or containing metadata\n- **Asymmetric content placement**: Image on left (40-45%), text/info on right (55-60%)\n- **Card-based presentation**: Content contained in white cards floating on gray backgrounds\n- **Top metadata strips**: Small text in corners (studio name, project type, year)\n- **Multi-column text blocks**: Body copy split into 2-3 narrow columns for readability\n\n### Image Treatment\n- **Photography as hero**: Large, high-quality images dominating the layout (not decorative)\n- **Clean crops**: Images in rectangular containers, no fancy shapes\n- **Generous padding**: White space around images, never cramping them\n- **Grid systems for galleries**: Even-sized thumbnails in rows (4x2, 4x4 grids)\n- **Product-on-white aesthetic**: Clean product photography on pure white backgrounds\n\n### Color & Background\n- **Pure white dominant**: Clean #ffffff backgrounds, not cream or off-white\n- **Minimal color usage**: Mostly black text on white, with occasional single accent color\n- **Light gray backgrounds**: #f5f5f5 or #e5e5e5 for page backgrounds behind white cards\n\n### Information Architecture\n- **Numbered lists**: "1. OVERVIEW", "2. SERVICES", etc. as section headers\n- **Metadata in lines**: "Client Name | Project Type | Year" separated by pipes or lines\n- **Small label categories**: Uppercase 11px labels like "SPECIALISED IN", "CONTACT", "ABOUT"\n- **Horizontal dividing lines**: Thin rules (1px) creating visual sections\n- **List-style information**: Stacked items with consistent spacing and alignment\n\n### Spatial Organization\n- **Air and breathing room**: Generous margins and padding throughout\n- **Contained sections**: Content lives in defined rectangular areas\n- **Aligned grids**: Everything aligns to invisible grid lines\n- **Consistent gaps**: Equal spacing between elements (20px, 30px, 40px)\n- **Edge-to-edge in black sections**: Dark sections can be full-bleed\n\n### Professional Polish\n- **Precise alignment**: Everything lines up perfectly (left edges, baselines, top edges)\n- **Consistent typography system**: Limited font sizes used repeatedly (12px, 14px, 16px, 32px, 80px, 120px)\n- **No decorative elements**: Everything serves a purpose, nothing ornamental\n- **Clean hover states**: Understated interactions, not flashy\n\n### What to AVOID:\n- ❌ Gradients (use solid colors only)\n- ❌ Rounded corners on everything (keep rectangular, maybe subtle 4-8px radius on cards)\n- ❌ Drop shadows (use very subtle if any, like 0 2px 8px rgba(0,0,0,0.04))\n- ❌ Overly decorative fonts (stick to clean system-ui)\n- ❌ Busy patterns or textures\n- ❌ Too many accent colors (pick one, use sparingly)\n- ❌ Cramped spacing (always err on the side of more whitespace)\n'},this),this.editor.imageModels=this.imageModels?this.imageModels:this.codechat.imageModels,this.editor.imageGenerationModels=this.imageGenerationModels?this.imageGenerationModels:this.codechat.imageModels,this.eb=this.editor,this.editor.onMultipleSelect=()=>{this.controlPanel&&setTimeout((()=>{this.controlpanel.objDialogGroup.open()}),1)},this.editor.onDelete=()=>{this.controlPanel&&this.onSelectChange&&this.onSelectChange()};const r=()=>{const t=this.win.innerWidth;this.onIframeResize&&this.onIframeResize(t),this.controlPanel&&(this.controlpanel.panelText.classList.contains("active")&&this.controlpanel.objPanelText.getStateTargeted(),this.controlpanel.panelSpacer.classList.contains("active")&&this.controlpanel.objPanelSpacer.getStateTargeted(),this.controlpanel.panelBox.classList.contains("active")&&this.controlpanel.objPanelBox.getStateTargeted(),"flex"===this.controlpanel.dialogSpacingColumn.style.display&&this.controlpanel.objDialogSpacingColumn.getState(),"flex"===this.controlpanel.dialogSpacingContainer.style.display&&this.controlpanel.objDialogSpacingContainer.getState())};this.editor.onPageResize=()=>{r()};const c=()=>{this.controlPanel&&this.controlpanel.panelBlock.classList.contains("active")&&this.controlpanel.objPanelBlock.showBlockPos()};this.editor.onPageResizeDebounce=()=>{c()},this.init(),window.contentbox=this,window.applyBoxImage=this.boxImage.bind(this),window.applyLargerImage=this.applyLargerImage.bind(this),window.returnUrl=this.returnUrl.bind(this),this.win.applyBoxImage=this.boxImage.bind(this),window._contentbox=this,window.keydown=()=>{},this.topSpace&&document.body.classList.add("topspace"),window.addEventListener("error",(t=>{"Script error."===t.message&&""===t.filename&&(t.preventDefault(),t.stopImmediatePropagation())}),!0)};this.iframeSrc?this.iframePanel=new iS({src:this.iframeSrc,blankHtml:this.blankHtml,page:".is-wrapper",onReady:t=>{l(t),this.iframePanel.showTooltip()}},this):l(),this.autoSaveDelay=t.autoSaveDelay||3e3,this.maxAutoSaveInterval=t.maxAutoSaveInterval||3e4,this.minAutoSaveInterval=t.minAutoSaveInterval||5e3,this.autoSave=t.autoSave,this.autoSaveTimeoutId=null,this.maxIntervalCheckerId=null,this.previousHash=null,this.lastSaveTime=0,this.pendingChanges=!1,this.isSaving=!1,this.autoSave&&"function"==typeof this.autoSave&&this.initAutoSave()}initAutoSave(){this.startMaxIntervalChecker()}startMaxIntervalChecker(){this.maxIntervalCheckerId=setInterval((()=>{if(this.pendingChanges&&!this.isSaving){Date.now()-this.lastSaveTime>=this.maxAutoSaveInterval&&this.performAutoSave()}}),1e3)}markContentChanged(){if(!this.autoSave)return;this.pendingChanges=!0,0===this.lastSaveTime&&(this.lastSaveTime=Date.now());const t=Date.now()-this.lastSaveTime;if(this.autoSaveTimeoutId&&clearTimeout(this.autoSaveTimeoutId),t>=this.maxAutoSaveInterval&&!this.isSaving)this.performAutoSave();else if(t>=this.minAutoSaveInterval)this.autoSaveTimeoutId=setTimeout((()=>{this.performAutoSave()}),this.autoSaveDelay);else{const e=this.minAutoSaveInterval-t;this.autoSaveTimeoutId=setTimeout((()=>{this.pendingChanges&&this.performAutoSave()}),e+this.autoSaveDelay)}}async performAutoSave(){if(this.isSaving)return;const t=this.htmlCheck(),e=this.simpleHash(t);if(this.previousHash!==e){this.isSaving=!0;try{await this.autoSave(),this.previousHash=e,this.lastSaveTime=Date.now(),this.pendingChanges=!1}catch(t){}finally{this.isSaving=!1}}else this.pendingChanges=!1}simpleHash(t){let e=0;for(let i=0;i<t.length;i++){e=(e<<5)-e+t.charCodeAt(i),e&=e}return e}async saveNow(){this.pendingChanges&&!this.isSaving&&await this.performAutoSave()}isNewV2(){return this.wrapperEl.classList.contains("box-v2")}loadFonts(){let t=this.settings.contentStylePath;this.wrapperEl.querySelectorAll(".is-section").forEach((e=>{e.classList.forEach((e=>{if(-1!==e.indexOf("type-")){const i=e,n=e+".css";let o=!1,s=this.doc.getElementsByTagName("link");for(let t=0;t<s.length;t++){-1!==s[t].href.toLowerCase().indexOf(n.toLowerCase())&&(o=!0)}o||this.wrapperEl.insertAdjacentHTML("beforeend",'<link data-name="contentstyle" data-class="'+i+'" href="'+t+n+'" rel="stylesheet">')}}))}))}editorSetup(){this.editor=new yy({iframeDragDrop:this.settings.iframeDragDrop,onType:()=>{this.markContentChanged()},quickAddButtons:this.settings.quickAddButtons,assetManagerBasePath:this.settings.assetManagerBasePath||"",assetAbsoluteBasePath:this.settings.assetAbsoluteBasePath||"",metadata:this.settings.metadata,enableDictation:this.settings.enableDictation,onStartRequest:this.settings.onStartRequest,controlPanel:this.settings.controlPanel,canvas:this.settings.canvas,docContainer:this.settings.wrapper,consoleLog:this.settings.consoleLog,defaultHeaders:this.settings.defaultHeaders,headers:this.settings.headers,isContentBox:!0,speechTranscribeUrl:this.settings.speechTranscribeUrl,autoSendDelay:this.settings.autoSendDelay,onlineDemo:this.settings.onlineDemo,temperature:this.settings.temperature,topP:this.settings.topP,speechRecognitionLang:this.settings.speechRecognitionLang,triggerWords:this.settings.triggerWords,headlineList:this.settings.headlineList,commandList:this.settings.commandList,disclaimerAI:this.settings.disclaimerAI,showDisclaimer:this.settings.showDisclaimer,enableShortCommands:this.settings.enableShortCommands,shortCommandList:this.settings.shortCommandList,commandInfo:this.settings.commandInfo,commandInfoCanvasMode:this.settings.commandInfoCanvasMode,commandPlaceholders:this.settings.commandPlaceholders,similarityThreshold:this.settings.similarityThreshold,useMediaRecorder:this.settings.useMediaRecorder,encoderPath:this.settings.encoderPath,hideImageGeneration:this.settings.hideImageGeneration,imageResizeOnBlock:this.settings.imageResizeOnBlock,listFilesUrl:this.settings.listFilesUrl,listFoldersUrl:this.settings.listFoldersUrl,deleteFilesUrl:this.settings.deleteFilesUrl,moveFilesUrl:this.settings.moveFilesUrl,createFolderUrl:this.settings.createFolderUrl,uploadFilesUrl:this.settings.uploadFilesUrl,renameFileUrl:this.settings.renameFileUrl,getMmodelsUrl:this.settings.getMmodelsUrl,textToImageUrl:this.settings.textToImageUrl,upscaleImageUrl:this.settings.upscaleImageUrl,controlNetUrl:this.settings.controlNetUrl,saveTextUrl:this.settings.saveTextUrl,viewUrl:this.settings.viewUrl,viewFileUrl:this.settings.viewFileUrl,imageModel:this.settings.imageModel,imageNegativePrompt:this.settings.imageNegativePrompt,imageSteps:this.settings.imageSteps,imageGuidance:this.settings.imageGuidance,imageScheduler:this.settings.imageScheduler,imageAutoUpscale:this.settings.imageAutoUpscale,defaultImageGenerationProvider:this.settings.defaultImageGenerationProvider,imageSize:this.settings.imageSize,imageGenerationModels:this.settings.imageGenerationModels,generateMediaUrl_Fal:this.settings.generateMediaUrl_Fal,checkRequestStatusUrl_Fal:this.settings.checkRequestStatusUrl_Fal,getResultUrl_Fal:this.settings.getResultUrl_Fal,assetPanelReverse:this.settings.assetPanelReverse,assetFilesOnly:this.settings.assetFilesOnly,assetRefreshButton:this.settings.assetRefreshButton,assetAllowedFileTypes:this.settings.assetAllowedFileTypes,container:".is-container",page:".is-wrapper",deleteConfirm:this.settings.deleteConfirm,previewURL:this.settings.previewURL,onPreviewOpen:()=>{let t=this.html();localStorage.setItem("preview-html",t);let e=this.mainCss();localStorage.setItem("preview-maincss",e);let i=this.sectionCss();localStorage.setItem("preview-sectioncss",i),localStorage.removeItem("_lastscrollpos")},onPreviewClose:()=>{this.wrapperEl.style.marginBottom=""},onPreviewContentLoad:()=>{setTimeout((()=>{const t=this.builderStuff.querySelector(".is-modal.content-preview");if(t){const e=t.querySelector("iframe");this.scrollSync(e)}}),1e3)},previewStyle:this.settings.previewStyle,livePreviewOpen:this.settings.livePreviewOpen,livePreviewAlwaysReload:this.settings.livePreviewAlwaysReload,livePreviewReloadEvery:this.settings.livePreviewReloadEvery,iframe:this.settings.iframe,screenMode:this.settings.screenMode,lang:this.settings.lang,simpleEditingBreakpoint:this.settings.simpleEditingBreakpoint,disableBootstrapIcons:this.settings.disableBootstrapIcons,imageAdjust:1,scriptPath:this.settings.scriptPath,pluginPath:this.settings.pluginPath,modulePath:this.settings.modulePath,fontAssetPath:this.settings.fontAssetPath,fontPath:this.settings.fontPath,assetPath:this.settings.assetPath,plugins:this.settings.plugins,disableConfig:this.settings.disableConfig,snippetList:this.settings.snippetListSelector||"#divSidebarSnippets",snippetPath:this.settings.snippetPath,snippetUrl:this.settings.snippetUrl,snippetJSON:window.data_basic,snippetPathReplace:this.settings.snippetPathReplace,maxColumns:this.settings.maxColumns,maxEmbedImageWidth:this.settings.maxEmbedImageWidth,imageRenameOnEdit:this.settings.imageRenameOnEdit,icons:this.settings.icons,sectionTemplate:this.settings.sectionTemplate,formTemplate:this.settings.formTemplate,onBlockSectionAdd:()=>{this.loadFonts(),this.pageSetup()},onBlockCanvasAdd:()=>{this.eb.refresh()},blockContainer:".is-box",slider:this.settings.slider,onRender:()=>{this.settings.onRender()},onChange:()=>{this.settings.onChange()},useLightbox:this.settings.useLightbox,lightboxArrow:this.settings.lightboxArrow,themes:this.settings.themes,moduleConfig:this.settings.moduleConfig,onImageBrowseClick:this.settings.onImageBrowseClick,onImageSettingClick:this.settings.onImageSettingClick,onImageSelectClick:this.settings.onImageSelectClick,onFileSelectClick:this.settings.onFileSelectClick,onVideoSelectClick:this.settings.onVideoSelectClick,onAudioSelectClick:this.settings.onAudioSelectClick,onMediaSelectClick:this.settings.onMediaSelectClick,onImageEditClick:this.settings.onImageEditClick,setCropperConfig:this.settings.setCropperConfig,onPluginsLoaded:this.settings.onPluginsLoaded,imageselect:this.settings.imageselect,fileselect:this.settings.fileselect,imageEmbed:this.settings.imageEmbed,sourceEditor:this.settings.sourceEditor,customval:this.settings.customval,colors:this.settings.colors,gradientcolors:this.settings.gradientcolors,buttons:this.settings.buttons,buttonsMore:this.settings.buttonsMore,elementButtons:this.settings.elementButtons,elementButtonsMore:this.settings.elementButtonsMore,iconButtons:this.settings.iconButtons,iconButtonsMore:this.settings.iconButtonsMore,customTags:this.settings.customTags,largerImageHandler:this.settings.largerImageHandler,onLargerImageUpload:this.settings.onLargerImageUpload,imageHandler:this.settings.imageHandler,mediaHandler:this.settings.mediaHandler,videoHandler:this.settings.videoHandler,audioHandler:this.settings.audioHandler,fileHandler:this.settings.fileHandler,uploadFile:this.settings.uploadFile,onVideoUpload:this.settings.onVideoUpload,onAudioUpload:this.settings.onAudioUpload,onImageUpload:this.settings.onImageUpload,onMediaUpload:this.settings.onMediaUpload,onFileUpload:this.settings.onFileUpload,framework:this.settings.framework,cellFormat:this.settings.cellFormat,rowFormat:this.settings.rowFormat,row:this.settings.row,cols:this.settings.cols,colequal:this.settings.colequal,colsizes:this.settings.colsizes,classReplace:this.settings.classReplace,columnTool:this.settings.columnTool,elementTool:this.settings.elementTool,animateModal:this.settings.animateModal,elementAnimate:this.settings.elementAnimate,elementEditor:this.settings.elementEditor,onAdd:this.settings.onAdd,imageQuality:this.settings.imageQuality,columnHtmlEditor:this.settings.columnHtmlEditor,rowHtmlEditor:this.settings.rowHtmlEditor,rowMoveButtons:this.settings.rowMoveButtons,htmlSyntaxHighlighting:this.settings.htmlSyntaxHighlighting,scrollableEditingToolbar:this.settings.scrollableEditingToolbar,toolbar:this.settings.toolbar,toolbarDisplay:this.settings.toolbarDisplay,toolbarAddSnippetButton:this.settings.toolbarAddSnippetButton,paste:this.settings.paste,builderMode:this.settings.builderMode,rowcolOutline:this.settings.rowcolOutline,elementSelection:this.settings.elementSelection,animatedSorting:this.settings.animatedSorting,dragWithoutHandle:this.settings.dragWithoutHandle,addButtonPlacement:this.settings.addButtonPlacement,outlineMode:this.settings.outlineMode,elementHighlight:this.settings.elementHighlight,rowTool:this.settings.rowTool,toolStyle:this.settings.toolStyle,outlineStyle:this.settings.outlineStyle,rowHandle:this.settings.rowHandle,snippetAddTool:this.settings.snippetAddTool,mobileSimpleEdit:this.settings.mobileSimpleEdit,clearPreferences:this.settings.clearPreferences,snippetCategories:this.settings.snippetCategories,defaultSnippetCategory:this.settings.defaultSnippetCategory,undoRedoStyles:this.settings.undoRedoStyles,onUndo:()=>{this.doUndoRedo()},onRedo:()=>{this.doUndoRedo()},onBeforeSaveForUndo:()=>{this.doBeforeSaveForUndo()},undoContainerOnly:this.settings.undoContainerOnly,absolutePath:this.settings.absolutePath,defaultFontSizes:this.settings.defaultFontSizes,fontSizeClassValues:this.settings.fontSizeClassValues,leadingPreset:this.settings.leadingPreset,contentSizes:this.settings.contentSizes,cssClasses:this.settings.cssClasses,useCssClasses:this.settings.useCssClasses,useButtonPlugin:this.settings.useButtonPlugin,enableDragResize:this.settings.enableDragResize,simpleTextSettings:this.settings.simpleTextSettings,shortenHTML:this.settings.shortenHTML,zoom:this.settings.zoom,onZoomStart:()=>{this.wrapperEl.style.transition="none"},onZoom:t=>{const e=300*(1-t)/.5;this.wrapperEl.style.marginTop=`${e}px`;const i=this.wrapperEl;let n=i.querySelectorAll(".is-section-tool");n.forEach((t=>{t.setAttribute("data-section-active","")})),n=i.querySelectorAll(".is-box-tool"),n.forEach((t=>{t.setAttribute("data-box-active","")})),n=i.querySelectorAll(".is-box-info"),n.forEach((t=>{t.setAttribute("data-boxinfo-active","")}))},onZoomEnd:()=>{const t=this.wrapperEl;if(!t.querySelector(".is-section"))return;this.addSpace();let e=t.querySelectorAll(".is-section-tool");e.forEach((t=>{t.removeAttribute("data-section-active")})),e=t.querySelectorAll(".is-box-tool"),e.forEach((t=>{t.removeAttribute("data-box-active")})),e=t.querySelectorAll(".is-box-info"),e.forEach((t=>{t.removeAttribute("data-boxinfo-active")})),this.rePositionTool(),this.wrapperEl.style.transition="",this.refreshAnim()},onThemeChange:()=>{this.refreshUIStyle()},filePicker:this.settings.filePicker,filePickerSize:this.settings.filePickerSize,fileSelect:this.settings.fileSelect,imageSelect:this.settings.imageSelect,videoSelect:this.settings.videoSelect,audioSelect:this.settings.audioSelect,mediaSelect:this.settings.mediaSelect,onAssetOpen:this.settings.onAssetOpen,selectIcon:this.settings.selectIcon,otherSelect:this.settings.otherSelect,otherSelectCaption:this.settings.otherSelectCaption,otherSelectIcon:this.settings.otherSelectIcon,imageSelectWidth:this.settings.imageSelectWidth,imageSelectHeight:this.settings.imageSelectHeight,fileSelectWidth:this.settings.fileSelectWidth,fileSelectHeight:this.settings.fileSelectHeight,videoSelectWidth:this.settings.videoSelectWidth,videoSelectHeight:this.settings.videoSelectHeight,audioSelectWidth:this.settings.audioSelectWidth,audioSelectHeight:this.settings.audioSelectHeight,mediaSelectWidth:this.settings.mediaSelectWidth,mediaSelectHeight:this.settings.mediaSelectHeight,otherSelectWidth:this.settings.otherSelectWidth,otherSelectHeight:this.settings.otherSelectHeight,imageSelectMaxWidth:this.settings.imageSelectMaxWidth,fileSelectMaxWidth:this.settings.fileSelectMaxWidth,videoSelectMaxWidth:this.settings.videoSelectMaxWidth,audioSelectMaxWidth:this.settings.audioSelectMaxWidth,mediaSelectMaxWidth:this.settings.mediaSelectMaxWidth,otherSelectMaxWidth:this.settings.otherSelectMaxWidth,assetPanelFullScreen:this.settings.assetPanelFullScreen,codeEditorWidth:this.settings.codeEditorWidth,codeEditorHeight:this.settings.codeEditorHeight,codeEditorMaxWidth:this.settings.codeEditorMaxWidth,blockCodeEditorWidth:this.settings.blockCodeEditorWidth,blockCodeEditorHeight:this.settings.blockCodeEditorHeight,blockCodeEditorMaxWidth:this.settings.blockCodeEditorMaxWidth,assetRefresh:this.settings.assetRefresh,leftSidebarAdj:30,leftSidebarAdj2:80,onContentClick:t=>{this.settings.onContentClick&&this.settings.onContentClick(t),this.doc.body.classList.remove("temporary-hide-tools");let e=t.target;if(!e.closest('[contenteditable="true"]')){let i=this.editor.dom.getParentElement(e,"a");if("a"===e.tagName.toLowerCase()||i){"a"===e.tagName.toLowerCase()&&(i=e);let n=i.getAttribute("href");if(n&&0===n.indexOf("#")&&"#"!==n.trim())if(0===n.indexOf("#section")){let e=n.replace("#section","");if(!isNaN(parseInt(e))){let i,n=this.doc.querySelectorAll(".is-section"),o=0;n.forEach((function(t){a_.hasClass(t,"is-section-navbar")||(o===e-1&&(i=t),o++)})),i&&this.scrollTo(i),t.preventDefault()}}else{let e=this.doc.querySelector(n);e&&(this.scrollTo(e),t.preventDefault())}}}}}),this.editor.loadSnippets(this.snippetUrl),this.controlpanel&&this.controlpanel.editorReady();const t=this.builderStuff.querySelector(".is-modal.content-preview");this.modalPagePreview=t;const e=t.querySelector("iframe");this.win.addEventListener("scroll",this.doScrollSync=()=>{this.scrollSync(e)}),this.isTouchSupport=this.editor.isTouchSupport,this.startAIAssistant&&this.openAIAssistant(),this.UIColor&&this.editor.setUIColor(this.UIColor.mode,this.UIColor.css);const i=this.builderStuff.querySelector(".is-sidebar");if(i){let t=i.querySelectorAll("[title]");Array.prototype.forEach.call(t,(t=>{t.setAttribute("data-title",t.getAttribute("title")),this.editor.tooltip.set(t,5,3)}))}if(this.tooltipScope){document.querySelectorAll(this.tooltipScope).forEach((t=>{t.querySelectorAll("[title]").forEach((t=>{t.setAttribute("data-title",t.getAttribute("title")),this.editor.tooltip.set(t,5,3)}))}))}this.settings.iframeDragDrop&&this.iframeDragDropSetup()}isIPad(){return/iPad/.test(navigator.userAgent)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1}iframeDragDropSetup(){if(!window.data_basic)return void setTimeout((()=>{this.iframeDragDropSetup()}),100);const t=new l_({iframe:this.iframe,dropZoneSelector:".is-wrapper, .box-canvas, .is-container",onValidate:({block:t,dropTarget:e})=>{let i=t.html;const n=t.noedit;let o,s=!1;e.classList.contains("box-canvas")&&(s=!0),s||"canvas"!==t.mode||(i=t.html2),o=-1===i.indexOf('"row');let l=!1;i.includes('"is-block')&&(l=!0,o=!1);const a=this.editor.row,r=this.editor.cols;if(""!==a&&12===r.length&&(i=i.replace(new RegExp("row clearfix","g"),"row"),i=i.replace(new RegExp('"row',"g"),'"'+a),i=i.replace(new RegExp("column full","g"),r[11]),i=i.replace(new RegExp("column half","g"),r[5]),i=i.replace(new RegExp("column third","g"),r[3]),i=i.replace(new RegExp("column fourth","g"),r[2]),i=i.replace(new RegExp("column fifth","g"),r[1]),i=i.replace(new RegExp("column sixth","g"),r[1]),i=i.replace(new RegExp("column two-third","g"),r[7]),i=i.replace(new RegExp("column two-fourth","g"),r[8]),i=i.replace(new RegExp("column two-fifth","g"),r[9]),i=i.replace(new RegExp("column two-sixth","g"),r[9])),i=i.replace(/{id}/g,this.makeId()),this.settings.onAdd&&(i=this.settings.onAdd(i)),this.settings.snippetPathReplace.length>0&&""!==this.settings.snippetPathReplace[0]){var c=new RegExp(this.settings.snippetPathReplace[0],"g");i=i.replace(c,this.settings.snippetPathReplace[1]);var u=this.settings.snippetPathReplace[0].replace(/\//g,"%2F"),d=this.settings.snippetPathReplace[1].replace(/\//g,"%2F"),b=new RegExp(u,"g");i=i.replace(b,d)}if(o){if(i=`<div class="${this.editor.row}"><div class="${this.editor.cols[this.editor.cols.length-1]}"${n?" data-noedit":""}>${i}</div></div>`,s){i=`\n <div class="is-block block-steady height-auto" data-new-dummy="1" style="top: 20%; left: 20%; width: ${"760px"};">\n <div class="is-container size-17 leading-13">\n ${i}\n </div>\n </div>\n `}}else if(l);else{let t=document.createElement("div");t.innerHTML=i;let e=t.querySelectorAll("[data-html]");if(Array.prototype.forEach.call(e,(t=>{i=decodeURIComponent(t.getAttribute("data-html")),i=i.replace(/{id}/g,this.makeId()),i=i.replace(/<script>/g,""+(this.settings.nonce?`<script nonce="${this.settings.nonce}">`:"<script>"));for(var e=1;e<=20;e++)i=i.replace("[%HTML"+e+"%]",void 0===t.getAttribute("data-html-"+e)?"":decodeURIComponent(t.getAttribute("data-html-"+e)));t.innerHTML=i,t.classList.add("dummy-module")})),i=t.innerHTML,s){i=`\n <div class="is-block block-steady height-auto" data-new-dummy="1" style="top: 20%; left: 20%; width: ${"760px"};">\n <div class="is-container size-17 leading-13">\n ${i}\n </div>\n </div>\n `}}return i},onDrop:({element:t})=>{const e=t.closest(".is-builder");if(e){let t=e.children,i=[];for(let e=0;e<t.length;e++){const n=t[e];n.querySelector(".is-tool")||i.push(n)}if(this.editor.applyBehaviorOn(e),this.win.builderRuntime&&this.win.builderRuntime.reinitialize(e),i.length>0){let t=i[0];this.editor.util.autoSelect(t)}this.editor.onChange(),this.editor.onRender(),this.editor.elmTool.hide(),this.editor.applySortableGrid()}else this.editor.onBlockSectionAdd&&this.editor.onBlockSectionAdd(),this.editor.onChange(),this.editor.onRender(),this.win.builderRuntime&&this.win.builderRuntime.reinitialize()}});t.registerBlocks(window.data_basic.snippets)}scrollSync(t){if(this.modalPagePreview.classList.contains("active")&&!this.cancelScrollSync)try{let e=t.contentWindow.document.querySelector(".is-wrapper").offsetHeight,i=this.wrapperEl.offsetHeight*this.editor.zoom,n=e-i;this.wrapperEl.style.marginBottom="100vh",t.contentWindow.scrollTo(0,this.win.scrollY+this.win.scrollY/i*n)}catch(t){}}init(){a_.appendHtml(this.doc.head,`<style id="_contentbox_css">\n body {\n background: ${this.settings.backgroundColor};\n }\n .block-click.is-box {\n cursor: unset;\n }\n .block-click.is-box > * {\n pointer-events: unset;\n user-select: unset;\n } \n\n .is-wrapper.is-container-edit > div.section-select, .is-wrapper.is-clean-edit > div.section-select {\n overflow-x: unset !important;\n overflow-y: unset !important;\n z-index: 2;\n }\n\n .is-wrapper .drag-over-image {\n outline: #a2f0ce 3px solid;\n }\n\n /*\n .is-wrapper.is-edit {\n min-height: 100vh;\n }\n */\n\n ${this.iframe?"":"\n .is-wrapper.is-edit {\n padding-left: 61px;\n }\n\n .is-wrapper.is-edit .is-section.is-section-navbar,\n .is-wrapper.is-edit .is-section.is-section-navbar .is-topbar {\n left: 0;\n margin-left: 60px;\n width: calc(100% - 60px);\n }\n .is-wrapper.is-edit .is-section.is-section-navbar .is-topbar.static {\n width: 100%;\n margin-left: unset;\n }\n "}\n \n /* protected section */\n .is-section.protected .is-box-tool {\n display: none !important;\n }\n .is-section.protected .is-box-info {\n display: none !important;\n }\n\n /* manual selection during animation edit */\n .hard-select .is-box-tool {\n display: none !important;\n }\n .hard-select .is-box-info {\n display: none !important;\n }\n .hard-select .is-section-tool {\n display: none !important;\n }\n .hard-select .box-select {\n outline: #00da89 1px solid;\n outline-offset: -1px;\n z-index: 1;\n }\n .hard-select .box-select.box-canvas {\n outline: #ff9fda 1px solid;\n }\n\n .hard-select .box-select .is-box-tool {\n display: flex !important;\n }\n .hard-select .box-select .is-box-info {\n display: flex !important;\n }\n .hard-select .box-select .is-overlay {\n z-index: -1;\n }\n .hard-select .section-select .is-section-tool {\n display: flex !important;\n }\n\n /* drop block as section */\n .is-wrapper > .sortable-ghost {\n height: 40px !important;\n min-height: unset !important;\n background: rgba(204, 204, 204, 0.15) !important;\n }\n .is-wrapper > .sortable-ghost * {\n opacity: 0 !important;\n }\n\n /* toggle tool */\n .is-wrapper.is-clean-edit.hard-select .box-select .is-box-tool,\n .is-wrapper.is-clean-edit .box-select .is-box-tool {\n display: none !important;\n }\n .is-wrapper.is-clean-edit.hard-select .box-select .is-box-info,\n .is-wrapper.is-clean-edit .box-select .is-box-tool {\n display: none !important;\n }\n .is-wrapper.is-clean-edit.hard-select .section-select .is-section-tool,\n .is-wrapper.is-clean-edit .section-select .is-section-tool {\n display: none !important;\n }\n .is-wrapper.is-clean-edit.hard-select .box-select,\n .is-wrapper.is-clean-edit .box-select {\n outline: none !important;\n }\n \n /* clean UI for selection only */\n /*\n .selection-only:not([data-skrollrr-off]) .is-wrapper.hard-select .box-select .is-box-tool,\n .selection-only:not([data-skrollrr-off]) .is-wrapper .box-select .is-box-tool {\n display: none !important;\n }\n .selection-only:not([data-skrollrr-off]) .is-wrapper.hard-select .box-select .is-box-info,\n .selection-only:not([data-skrollrr-off]) .is-wrapper .box-select .is-box-info {\n display: none !important;\n }\n .selection-only:not([data-skrollrr-off]) .is-wrapper.hard-select .section-select .is-section-tool,\n .selection-only:not([data-skrollrr-off]) .is-wrapper .section-select .is-section-tool {\n display: none !important;\n }\n .selection-only:not([data-skrollrr-off]) .is-wrapper .is-rowadd-tool {\n display: none !important;\n }\n .selection-only:not([data-skrollrr-off]) .is-wrapper .is-tool {\n display: none !important;\n }\n .selection-only:not([data-skrollrr-off]) .is-tool {\n z-index: -10000 !important;\n }\n */\n\n /* box info */\n .is-wrapper .is-box-info {\n position: absolute;\n z-index: 1;\n top: 15px;\n right: 15px;\n left: auto;\n width: auto;\n display: none;\n border-radius: 50px;\n overflow:hidden;\n background: rgba(243, 243, 243, 0.9);\n width: 92px;\n justify-content: center;\n }\n .is-wrapper .is-box-info button {\n width:32px;\n height:32px;\n cursor:pointer;\n }\n .is-wrapper .is-box-info * {\n color: #000;\n }\n .is-wrapper .box-select .is-box-info {\n display: flex;\n }\n .is-wrapper .is-section-navbar .is-box-info {\n display: none !important;\n }\n div.is-section-navbar + div .is-box-info {\n top: 90px;\n }\n \n /* section info */\n .is-wrapper .is-section-info {\n position: absolute;\n z-index: 2;\n top: 3px;\n left: 3px;\n display: none;\n }\n .is-wrapper .is-section-info > div {\n width: auto;\n height: auto;\n padding: 5px 20px;\n background-color: rgb(255, 239, 100);\n color: #111;\n font-family: sans-serif;\n letter-spacing: 2px;\n font-size: 17px;\n }\n .is-wrapper .section-select .is-section-info {\n display: block;\n }\n\n /* To make editing possible on wide content */\n .is-wrapper.is-edit .section-wide-250 .is-box-centered { /*old structure*/\n overflow-x: auto;\n overflow-y: hidden;\n }\n\n .is-wrapper.is-container-edit > div.section-wide-250.section-select, \n .is-wrapper.is-clean-edit > div.section-wide-250.section-select,\n .is-wrapper.is-edit .section-wide-250 {\n overflow-x: auto !important;\n overflow-y: hidden !important;\n }\n\n .is-wrapper.is-edit .section-wide-250 .is-container > div > div { /* To make col tool visible */\n max-height: 90vh; \n }\n\n /* Hide on Zoom */\n .hard-select .section-select .is-section-tool[data-section-active],\n .is-section-tool[data-section-active] {\n display: none !important;\n }\n .hard-select .box-select .is-box-tool[data-box-active],\n .is-box-tool[data-box-active] {\n display: none !important;\n }\n .hard-select .box-select .is-box-info[data-boxinfo-active],\n .is-box-info[data-boxinfo-active] {\n display: none !important;\n }\n \n /* New Section Tool */\n .is-section-tool {\n display: none;\n z-index: 1001;\n position: absolute;\n top: calc(17% - 14px);\n right: 0px;\n left: auto;\n width: 35px;\n height: auto;\n flex-direction: column;\n border-top-left-radius: 3px;\n border-bottom-left-radius: 3px;\n overflow: hidden;\n }\n .is-section-tool > button {\n width: 35px;\n height: 35px;\n border-radius: 0;\n line-height: 35px;\n padding: 0px;\n font-size: 13px;\n cursor: pointer;\n border: none;\n background: transparent;\n }\n .is-section-tool > button.btn-move-section-up, .is-section-tool > button.btn-move-section-down {\n background: #E3E3E3;\n }\n .is-section-tool > button.btn-section-edit {\n background: #03ACD6;\n }\n .is-section-tool > button.btn-section-remove {\n background: rgb(247, 99, 46);\n }\n .is-section-tool > button svg {\n width: 16px;\n height: 16px;\n flex: none;\n }\n .is-section-tool > button.btn-move-section-up *, .is-section-tool > button.btn-move-section-down * {\n color: #000;\n fill: #000;\n }\n .is-section-tool > button.btn-section-edit *, .is-section-tool > button.btn-section-remove * {\n color: #fff;\n fill: #fff;\n }\n\n ${this.simpleEditingBreakpoint?`\n \n @media all and (max-width: ${this.simpleEditingBreakpoint}) {\n .is-tool:not(#divSpacerTool) {\n display: none !important;\n }\n .hard-select .box-select .is-box-info.is-tool {\n display: none !important;\n }\n\n .is-section-tool, \n .hard-select .is-section.section-select .is-section-tool {\n display: none !important;\n }\n\n .is-box-tool > *:not(.is-select-image),\n .hard-select .is-box.box-select .is-box-tool > *:not(.is-select-image) {\n display: none !important;\n }\n \n .is-box .is-box-tool {\n left: -200px !important;\n }\n .is-box:has(.is-overlay-bg) .is-box-tool {\n width: 40px !important;\n left: calc(50% - 20px) !important;\n }\n\n .is-builder .row-active:not([data-protected]).row-outline {\n outline: none !important;\n }\n .hard-select .is-box.box-select {\n // outline: none !important;\n }\n }\n \n `:""}\n\n .container-select {\n outline: #00da89 1px solid\n }\n \n .selection-active {\n animation-name: selection-active-anim;\n animation-duration: 1s;\n }\n @keyframes selection-active-anim {\n 0% {transform:scale(1);}\n 50% {transform:scale(0.95);}\n 100% {transform:scale(1);}\n }\n\n .is-wrapper .transition-edit.is-section {\n transition: all 0.2s ease !important;\n }\n .is-wrapper .transition-edit .is-box {\n transition: all 0.2s ease !important;\n }\n \n\n /* box-canvas */\n :root {\n --is-outline: 1px solid rgb(96 108 255 / 65%);\n --is-handle: 1px solid rgb(121 131 255);\n \n --is-outline2: 1px solid rgba(255, 1, 107, 0.65);\n --is-handle2: 1px solid rgb(253 83 154); \n }\n \n .editableblocks .is-block {\n cursor: pointer;\n user-select: none;\n touch-action: none;\n outline: none;\n }\n .editableblocks .is-block:not(.is-group):not(.editable):after {\n position: absolute;\n content: "";\n display: block;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n opacity: 0;\n z-index: 1;\n }\n .is-block.active {\n outline: var(--is-outline);\n }\n .is-block.active.editable {\n outline: none;\n cursor: auto; \n z-index: 10;\n }\n .is-block.active.multi {\n outline: var(--is-outline);\n }\n .is-block.is-shape.active.multi {\n outline: var(--is-outline2);\n }\n .is-block.is-shape.active:not(.multi) {\n outline: none;\n }\n .is-block.is-shape {\n transform-origin: 0 0 !important;\n -webkit-transform-origin: 0 0;\n -moz-transform-origin: 0 0;\n -o-transform-origin: 0 0;\n }\n .block-active {\n background-color: #f5f6f7c7;\n }\n \n /* Ruler */\n .ruler {\n position: absolute;\n background-color: rgba(157, 155, 255, 0.4);\n z-index: 1;\n }\n .horizontal-ruler {\n width: 100%;\n height: 2px;\n top: -1000px;\n left: 0;\n }\n .vertical-ruler {\n width: 2px;\n height: 100%;\n top: 0;\n left: -1000px;\n }\n \n /* Resize Handles */\n .handle {\n width: 8px;\n height: 8px;\n position: absolute;\n cursor: pointer;\n display: none;\n \n background-color: #fff;\n outline: var(--is-handle);\n }\n .is-block.active > .handle {\n display: block;\n z-index: 2;\n }\n .is-block.active.editable > .handle {\n display: none;\n }\n .is-block.active.multi .handle {\n display: none;\n }\n .top-left,\n .top-right,\n .bottom-left,\n .bottom-right,\n .top, .bottom, .left, .right {\n z-index: 1;\n }\n .top-left {\n top: -4px;\n left: -4px;\n cursor: nwse-resize;\n }\n .top-right {\n top: -4px;\n right: -4px;\n cursor: nesw-resize;\n }\n .bottom-left {\n bottom: -4px;\n left: -4px;\n cursor: nesw-resize;\n }\n .bottom-right {\n bottom: -4px;\n right: -4px;\n cursor: nwse-resize;\n }\n .top {\n top: -4px;\n left: calc(50% - 4px);\n cursor: ns-resize;\n }\n .bottom {\n bottom: -4px;\n left: calc(50% - 4px);\n cursor: ns-resize;\n }\n .left {\n top: calc(50% - 4px);\n left: -4px;\n cursor: ew-resize;\n }\n .right {\n top: calc(50% - 4px);\n right: -4px;\n cursor: ew-resize;\n }\n \n /* Rotate handle */\n .rotate-handle {\n width: 8px;\n height: 8px;\n position: absolute;\n top: calc(50% - 4px);\n right: -33px;\n cursor: ew-resize;\n display: none;\n cursor: grab;\n z-index: 2;\n \n background-color: #fff;\n outline: var(--is-handle);\n }\n .rotate-handle div {\n width: 25px;\n height: 1px;\n border-top: var(--is-outline);\n right: 8px;\n top: calc(50% - 0px);\n position: absolute;\n pointer-events: none;\n }\n .is-block.active > .rotate-handle {\n display: block;\n }\n .is-block.active.editable .rotate-handle {\n display: none;\n }\n .is-block.is-group.active > .rotate-handle {\n display: none;\n }\n .is-block.active.multi .rotate-handle {\n display: none;\n }\n \n /* Shape handles */\n .shape-handle {\n width: 8px;\n height: 8px;\n position: absolute;\n display: none;\n transform: none;\n z-index: 1;\n /*backface-visibility: hidden; Improve rendering during transformation */\n \n background-color: #fff;\n outline: var(--is-handle2);\n }\n .shape-handle.top-left {\n transform: translate(-4px, -4px);\n }\n .shape-handle.top-right {\n transform: translate(-4px, -4px);\n }\n .shape-handle.bottom-left {\n transform: translate(-4px, -4px);\n }\n .shape-handle.bottom-right {\n transform: translate(-4px, -4px);\n }\n .shape-handle.rotate {\n transform: translate(-4px, -4px);\n cursor: grab;\n }\n .shape-line {\n width: 0px;\n height: 1px;\n position: absolute;\n transform-origin: 0 0;\n border-top: var(--is-outline2);\n display: none;\n z-index: 1;\n pointer-events: none;\n backface-visibility: hidden; /* Improve rendering during transformation */\n }\n \n .is-shape > .rotate-handle,\n .is-shape > .handle,\n .is-shape > .handle.left, .is-shape >.handle.top, .is-shape > .handle.right, .is-shape > .handle.bottom {\n display: none !important;\n }\n \n .is-block.clone {\n z-index:1000;\n background-color: transparent !important;\n background: none !important;\n }\n .is-block.clone .is-container,\n .is-block.clone .is-block-overlay {\n opacity:0;\n }\n .is-block.cloned {\n outline:none;\n }\n .is-block.cloned .handle, \n .is-block.cloned .rotate-handle {\n display:none;\n }\n \n @media (max-width: 760px) {\n .is-box.autolayout .is-block > .rotate-handle,\n .is-box.autolayout .is-block > .handle {\n display: none;\n }\n\n /* NEW */\n .is-box.autolayout .is-block.clone {\n display:none;\n }\n .is-box.autolayout .is-block.cloned {\n outline: var(--is-outline);\n }\n /*\n .is-box.box-select {\n outline: none !important;\n }\n */\n }\n \n .is-block.locked .handle,\n .is-block.locked .rotate-handle {\n display: none !important;\n } \n\n\n /* Canvas Mode */\n .box-canvas > .sortable-ghost {\n background: transparent;\n outline: rgba(140, 140, 140, 0.5) 4px dashed !important;\n outline-offset: -15px;\n height:100% !important;\n transition: none !important;\n z-index:1;\n }\n\n /* Group color */\n .block-active,\n .is-group.active {\n background-color: #81ffd538;\n }\n .block-active .is-block {\n outline: #51e1b2a3 2px solid;\n outline-offset: 2px;\n }\n\n i.bi, i.icon { display: inline-flex; }\n\n </style>`),a_.appendHtml(document.head,'<style id="_contentboxstuff_css">\n\n #_cbhtml .is-modal.editbox.is-modal-content {\n z-index: 10002;\n position: fixed;\n overflow: hidden;\n width: 380px;\n height: auto;\n top: calc(50% - 250px);\n left: calc(50% - 175px);\n box-sizing: content-box;\n flex-direction: row;\n align-items: flex-start;\n }\n #_cbhtml .is-modal.editbox.is-modal-content.active {\n display: flex;\n }\n #_cbhtml .is-modal.editbox.is-modal-content .is-modal-overlay {\n display: none;\n }\n\n #_cbhtml .is-modal.editsection.is-modal-content {\n z-index: 10002;\n position: fixed;\n overflow: hidden;\n width: 400px;\n height: auto;\n top: calc(50% - 265px);\n left: calc(50% - 157px);\n box-sizing: content-box;\n flex-direction: row;\n align-items: flex-start;\n }\n #_cbhtml .is-modal.editbox.is-modal-content.active {\n display: flex;\n }\n #_cbhtml .is-modal.editbox.is-modal-content .is-modal-overlay {\n display: none;\n }\n\n /* Switch */\n .is-ui .switch {\n position: relative;\n display: inline-block;\n width: 60px;\n height: 34px;\n }\n \n .is-ui .switch input {\n opacity: 0;\n width: 0;\n height: 0;\n }\n \n .is-ui .switch .slider {\n position: absolute;\n cursor: pointer;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background-color: #ccc;\n -webkit-transition: 0.4s;\n transition: 0.4s;\n border-radius: 34px;\n }\n \n .dark .is-ui .switch .slider {\n background-color: #7c7c7c;\n }\n \n .is-ui .switch .slider:before {\n position: absolute;\n content: "";\n height: 26px;\n width: 26px;\n left: 4px;\n bottom: 4px;\n background-color: #fff;\n -webkit-transition: 0.4s;\n transition: 0.4s;\n border-radius: 50%;\n }\n \n .dark .is-ui .switch .slider:before {\n background-color: rgba(255, 255, 255, 0.82);\n }\n \n .is-ui .switch input:checked + .slider {\n background-color: #0e75de;\n border-radius: 34px;\n }\n \n .dark .is-ui .switch input:checked + .slider {\n background-color: #0e75de;\n }\n \n .is-ui .switch input:focus + .slider {\n box-shadow: 0 0 1px #0e75de;\n }\n \n .dark .is-ui .switch input:focus + .slider {\n box-shadow: 0 0 1px #0e75de;\n }\n \n .is-ui .switch input:checked + .slider:before {\n -webkit-transform: translateX(26px);\n -ms-transform: translateX(26px);\n transform: translateX(26px);\n }\n\n /* temporary hide tools on wide section during scroll */\n .temporary-hide-tools .is-ui .is-tool {\n display: none !important;\n }\n\n\n /* pop ai more */\n .dark #_cbhtml .is-pop.ai-more button:hover {\n background-color: rgba(255,255,255,0.1) !important;\n }\n #_cbhtml .is-pop.ai-more button:hover {\n background-color: rgba(0,0,0,0.03) !important;\n }\n .is-pop.ai-more button {\n font-size: 14px !important;\n }\n </style>');const t=this.builderStuff;a_.appendHtml(t,'<div class="page-overlay"></div>');let e=t.querySelector(".page-overlay"),n=`\n <form class="is-cover-upload-central" data-tooltip-top title="${i("Change Background")}" data-title="${i("Change Background")}" style="opacity:1;position:absolute;width:35px;height:35px;" target="target-upload-cover" method="post" action="${this.coverImageHandler}" enctype="multipart/form-data" style="position:relative;width:35px;height:35px;display:inline-block;float:left;background: rgb(90, 156, 38);">\n <input type="file" tabindex="-1" class="input-file-cover-central" name="fileCover" accept="image/*" style="position:absolute;top:-30px;left:0;width:100%;height:80px;opacity: 0;cursor: pointer;"/>\n <input tabindex="-1" class="input-custom-value-central" name="hidcustomval" type="hidden" value="${this.customval}" />\n </form>\n <iframe id="target-upload-cover" name="target-upload-cover" src="about:blank" style="width:0.1px;height:0.1px;position:absolute;top:0;right:0px;opacity:0.0001"></iframe>\n `;a_.appendHtml(t,n);let o=t.querySelector(".input-file-cover-central");if(this.iframe&&(o=this.contentStuff.querySelector(".input-file-cover-central")),o&&o.addEventListener("change",(e=>{if(""===o.value)return;this.editor.saveForUndo(),t.insertAdjacentHTML("beforeend",`<div class="waiting-indicator-overlay"></div>\n <div class="waiting-indicator">\n <div>${i("Uploading..")}</div>\n </div>\n `);const n=t.querySelector(".waiting-indicator");let s,l,a=this.targetBox;this.iframe?(n.style.top="0",n.style.left="calc(50% - 68px)"):(s=a.getBoundingClientRect().top+window.pageYOffset,l=a.getBoundingClientRect().left+window.pageXOffset,n.style.top=s+"px",n.style.left=l+"px"),this.settings.onUploadCoverImage?this.settings.onUploadCoverImage(e):this.iframe?this.contentStuff.querySelector(".is-cover-upload-central").submit():t.querySelector(".is-cover-upload-central").submit(),o.value="",e.preventDefault(),e.stopImmediatePropagation()})),this.controlPanel){let e=`\n <div class="is-modal editcustomcode" tabindex="-1" role="dialog" aria-modal="true" aria-hidden="true">\n <div style="max-width:900px;height:570px;padding:0;box-sizing:border-box;position:relative;">\n <div class="is-modal-bar is-draggable" style="position: absolute;top: 0;left: 0;width: 100%;z-index:1;">${i("Custom Code (Javascript Allowed)")}</div>\n <textarea id="txtBoxCustomCode" class="inptxt" style="background: #fff;position: absolute;top: 0;left: 0;width:100%;height:100%;border:none;border-bottom:60px solid transparent;border-top:40px solid transparent;box-sizing:border-box;"></textarea>\n <input id="hidBoxCustomCode" type="hidden" />\n <button class="input-ok classic" style="height:60px;position:absolute;left:0;bottom:0;">${i("Ok")}</button>\n </div>\n </div>\n \n <div class="is-modal editmodule" tabindex="-1" role="dialog" aria-modal="true" aria-hidden="true">\n <div style="max-width:900px;height:570px;padding:0;box-sizing:border-box;position:relative;">\n <div class="is-modal-bar is-draggable" style="position: absolute;top: 0;left: 0;width: 100%;z-index:1;"><span>${i("Module Settings")}</span>\n <button class="is-modal-close" tabindex="-1" title="${i("Close")}">\n <svg class="is-icon-flex" style="width:30px;height:30px;"><use xlink:href="#ion-ios-close-empty"></use></svg>\n </button>\n </div>\n <iframe style="position: absolute;top: 0;left: 0;width:100%;height:100%;border:none;border-bottom:60px solid transparent;border-top:40px solid transparent;margin:0;box-sizing:border-box;" src="about:blank"></iframe>\n <input id="hidModuleCode" type="hidden" />\n <input id="hidModuleSettings" type="hidden" />\n <button class="input-ok classic-primary" style="width:100%;height:60px;position:absolute;left:0;bottom:0;">${i("Ok")}</button>\n </div>\n </div>\n \n <div class="is-modal delsectionconfirm" tabindex="-1" role="dialog" aria-modal="true" aria-hidden="true">\n <div style="max-width: 450px;">\n <div style="margin: 20px 0 30px;text-align:center;font-size: 14px;">${i("Are you sure you want to delete this section?")}</div>\n <button title="${i("Delete")}" class="input-ok classic">${i("Delete")}</button>\n </div>\n </div>\n `;a_.appendHtml(t,e);const n=t.querySelector(".is-modal.delsectionconfirm");n.querySelector(".input-ok").addEventListener("click",(()=>{this.section.sectionDelete(),this.hideModal(n),this.onSelectChange&&this.onSelectChange()}));const o=t.querySelector(".is-modal.editcustomcode");o.querySelector(".input-ok").addEventListener("click",(()=>{let e=this.activeBox.querySelector(".is-overlay-content[data-module]");this.editor.saveForUndo();const i=t.querySelector("#hidBoxCustomCode"),n=t.querySelector("#txtBoxCustomCode");i.value=n.value,e.setAttribute("data-html",encodeURIComponent(i.value));let s=i.value;s=s.replace(/{id}/g,a_.uniqueId());let l=document.createRange();e.innerHTML="",e.appendChild(l.createContextualFragment(s)),this.settings.onRender(),this.settings.onChange(),this.hideModal(o)}));const s=t.querySelector(".is-modal.editmodule");s.querySelector(".input-ok").addEventListener("click",(()=>{let e=this.doc.querySelector('[data-module-active="1"]');this.editor.saveForUndo();let i=s.querySelector("iframe");if(!i.contentWindow.construct)return;{const t=i.contentWindow.construct();if("object"==typeof t&&null!==t&&t.error)return void alert(t.error)}this.editor.saveForUndo();const n=t.querySelector("#hidModuleCode"),o=t.querySelector("#hidModuleSettings");e.setAttribute("data-html",encodeURIComponent(n.value)),e.setAttribute("data-settings",encodeURIComponent(o.value));let l=n.value;l=l.replace(/{id}/g,a_.uniqueId());let a=document.createRange();e.innerHTML="",e.appendChild(a.createContextualFragment(l)),this.settings.onRender(),this.makeSortable(e),this.settings.onChange(),this.hideModal(s)}))}else this.editsection=new r(this),this.editbox=new u(this);setTimeout((()=>{if(this.pageSetupDone||this.pageSetup(),(null!=localStorage.getItem("_livepreview")||this.settings.livePreviewOpen)&&this.openPreview(),null!=localStorage.getItem("_disableanimation")){this.doc.body.setAttribute("data-skrollrr-off","true");this.sidebar.pageQuickSettings.querySelector(".cmd-live-preview").checked=!1,this.refreshPage()}null!=localStorage.getItem("_timelinewindow")&&this.timeline.edit()}),300);const s=()=>{let i,n=document.querySelector(".pace-inactive");n&&n.parentNode.removeChild(n),i=null!==localStorage.getItem("_zoom")?localStorage.getItem("_zoom"):this.settings.zoom,this.wrapperEl.style.transition="none";const o=300*(1-i)/.5;this.wrapperEl.style.marginTop=`${o}px`,this.wrapperEl.style.transition="all 400ms ease",setTimeout((()=>{this.wrapperEl.style.opacity=1,setTimeout((()=>{this.wrapperEl.style.transition=""}),400)}),400);let s=t.querySelector(".is-sidebar");s&&(s.style.opacity=1),this.builderStuff.style.visibility="visible",setTimeout((()=>{e=t.querySelectorAll(".page-overlay"),e.forEach((t=>{t.parentNode.removeChild(t)})),this.wrapperEl.style.transition=""}),300)};setTimeout((()=>{this.onStart&&this.onStart(),s()}),300),this.doc.addEventListener("wheel",(()=>{if(this.editor.activeElement){if(this.editor.activeElement.closest(".section-wide-250")){this.doc.body.classList.add("temporary-hide-tools"),this.editor.moveable&&this.editor.moveable.updateRect();let t=this.doc.querySelector(".moveable-control-box");t&&(t.style.display="none")}if(this.editor.activeElement.closest(".scroll-y")){this.doc.body.classList.add("temporary-hide-tools"),this.editor.moveable&&this.editor.moveable.updateRect();let t=this.doc.querySelector(".moveable-control-box");t&&(t.style.display="none")}}})),this.doDocumentClick=t=>{this.onPageClick&&this.onPageClick();var e=(t=t||window.event).target||t.srcElement;if(e.closest("[data-top-locked], [data-bottom-locked]")){let i=e.closest("a");if(i){let e=i.getAttribute("href");if(e)if(0===e.indexOf("#")&&"#"!==e.trim())if(0===e.indexOf("#section")){let i=e.replace("#section","");if(!isNaN(parseInt(i))){let e,n=this.doc.querySelectorAll(".is-section"),o=0;n.forEach((function(t){t.classList.contains("is-section-navbar")||t.hasAttribute("data-top-locked")||(o===i-1&&(e=t),o++)})),e&&this.scrollTo(e),t.preventDefault()}}else{let i=this.doc.querySelector(e);i&&(this.scrollTo(i),t.preventDefault())}else"_blank"!==i.getAttribute("target")&&t.preventDefault()}return}if(!(e.closest("#_cbhtml")||e.closest(".is-box-tool")||e.closest(".is-box-info")||e.closest(".is-section-tool")||e.closest(".is-side")||e.closest(".keep-selection")||e.closest(".is-modal")||e.closest(".is-sidebar"))){if(e.closest(".is-wrapper")&&!e.classList.contains("is-wrapper")){let i=this.doc.activeElement&&this.doc.activeElement.closest("[contenteditable]");if(e.closest(".is-container")||i||e.closest(".is-block")){const t=e.closest(".is-box");if(t){e.closest(".is-tool")||e.closest(".is-rowadd-tool")||(t.classList.contains("box-select")&&this.wrapperEl.classList.contains("is-container-edit")?(this.wrapperEl.classList.remove("is-container-edit"),this.wrapperEl.classList.add("is-clean-edit")):(this.wrapperEl.classList.add("is-container-edit"),this.wrapperEl.classList.remove("is-clean-edit")));const i=this.doc.querySelector(".box-select");i&&i.classList.remove("box-select"),t.classList.add("box-select"),this.activeBox=t,this.editor&&(this.editor.activeBox=t),this.wrapperEl.classList.add("hard-select")}const i=e.closest(".is-section");if(i){const t=this.doc.querySelector(".section-select");t&&t.classList.remove("section-select"),this.activeSection&&i!==this.activeSection&&(this.prevSection=this.activeSection),i.classList.add("section-select"),this.activeSection=i}}else{this.editor.inspectedElement=null,this.editor.activeElement=null,this.editor.activeCol=null;const t=e.closest(".is-box");if(t)if(t.classList.contains("box-select")&&!this.wrapperEl.classList.contains("is-clean-edit"))if(this.activeBox=t,this.editor&&(this.editor.activeBox=t),this.controlPanel){if(!this.timeline.modalTimeline.classList.contains("active")&&!this.animateScroll.modalAnimateScroll.classList.contains("active")){const t=this.doc.querySelector(".box-select");t&&t.classList.remove("box-select");const e=this.doc.querySelector(".section-select");e&&e.classList.remove("section-select"),this.wrapperEl.classList.remove("hard-select")}}else{const t=this.editbox.modalEditBox,e=this.editsection.modalEditSection;if("flex"!==t.style.display&&"flex"!==e.style.display&&!this.timeline.modalTimeline.classList.contains("active")&&!this.animateScroll.modalAnimateScroll.classList.contains("active")){const t=this.doc.querySelector(".box-select");t&&t.classList.remove("box-select");const e=this.doc.querySelector(".section-select");e&&e.classList.remove("section-select"),this.wrapperEl.classList.remove("hard-select")}}else{const e=this.doc.querySelector(".box-select");e&&e.classList.remove("box-select");const i=this.doc.querySelector(".section-select");i&&i.classList.remove("section-select"),t.classList.add("box-select"),this.activeBox=t,this.editor&&(this.editor.activeBox=t);const n=t.closest(".is-section");this.activeSection&&n!==this.activeSection&&(this.prevSection=this.activeSection),n.classList.add("section-select"),this.activeSection=n,this.wrapperEl.classList.add("hard-select")}this.wrapperEl.classList.remove("is-container-edit"),this.wrapperEl.classList.remove("is-clean-edit")}if(!this.controlPanel){this.editbox.modalEditBox.style.display="";this.editsection.modalEditSection.style.display=""}e.closest(".is-tool")||e.closest(".is-rowadd-tool")||e.closest(".row-add-initial")||this.settings.onPageContentClick&&this.settings.onPageContentClick(t),this.rePositionTool()}else{if(document.activeElement&&"input"===document.activeElement.tagName.toLowerCase())return;if(this.wrapperEl.classList.remove("is-container-edit"),this.wrapperEl.classList.remove("is-clean-edit"),this.controlPanel){if(!this.timeline.modalTimeline.classList.contains("active")&&!this.animateScroll.modalAnimateScroll.classList.contains("active")){this.wrapperEl.classList.remove("hard-select");this.doc.querySelectorAll(".box-select").forEach((t=>{t.classList.remove("box-select")}));this.doc.querySelectorAll(".section-select").forEach((t=>{t.classList.remove("section-select")}))}}else{const t=this.editbox.modalEditBox;t.style.display="";const e=this.editsection.modalEditSection;if(e.style.display="","flex"!==t.style.display&&"flex"!==e.style.display&&!this.timeline.modalTimeline.classList.contains("active")&&!this.animateScroll.modalAnimateScroll.classList.contains("active")){this.wrapperEl.classList.remove("hard-select");this.doc.querySelectorAll(".box-select").forEach((t=>{t.classList.remove("box-select")}));this.doc.querySelectorAll(".section-select").forEach((t=>{t.classList.remove("section-select")}))}}this.timeline.modalTimeline.classList.contains("active")&&this.timeline.clearSettings(),!this.onSelectChange||e.closest(".keep-selection")||e.closest("#glightbox-body")||this.onSelectChange()}document.body.classList.remove("box-modal-open")}let i=e.closest(".is-sidebar-content"),n=e.closest(".is-sidebar"),o=e.closest(".is-wrapper"),s=e.closest(".is-rte-tool"),l=e.closest(".is-modal"),a=e.closest(".is-pop"),r=e.closest(".is-tool"),c=e.closest(".keep-selection");if(!(i||n||o||s||l||a||r||c)){this.wrapperEl.querySelectorAll(".is-box-tool").forEach((t=>{t.style.display="none"}));this.wrapperEl.querySelectorAll(".is-section-tool").forEach((t=>{t.style.display="none"}));this.wrapperEl.querySelectorAll(".is-box-info").forEach((t=>{t.style.display="none"}))}i||n||this.sidebar.closeSidebar()},this.doc.addEventListener("click",this.doDocumentClick),this.iframe&&(this.doIframeDocumentClick=t=>{var e=(t=t||window.event).target||t.srcElement;if(!document.body.contains(e))return;const i=document.querySelector(".pop-picker.active");if((!e.closest("#_cbhtml")||e.closest("#editPanel")&&!e.closest(".is-content-view"))&&!e.closest(".is-box-tool")&&!e.closest(".is-box-info")&&!e.closest(".is-section-tool")&&!e.closest(".is-side")&&!e.closest(".keep-selection")&&!e.closest(".is-modal")&&!e.closest(".is-sidebar")&&!i){if(document.activeElement&&"input"===document.activeElement.tagName.toLowerCase())return;if(this.wrapperEl.classList.remove("is-container-edit"),this.wrapperEl.classList.remove("is-clean-edit"),this.controlPanel){if(!this.timeline.modalTimeline.classList.contains("active")&&!this.animateScroll.modalAnimateScroll.classList.contains("active")){this.wrapperEl.classList.remove("hard-select");this.doc.querySelectorAll(".box-select").forEach((t=>{t.classList.remove("box-select")}));this.doc.querySelectorAll(".section-select").forEach((t=>{t.classList.remove("section-select")}))}}else{const t=this.editbox.modalEditBox;t.style.display="";const e=this.editsection.modalEditSection;if(e.style.display="","flex"!==t.style.display&&"flex"!==e.style.display&&!this.timeline.modalTimeline.classList.contains("active")&&!this.animateScroll.modalAnimateScroll.classList.contains("active")){this.wrapperEl.classList.remove("hard-select");this.doc.querySelectorAll(".box-select").forEach((t=>{t.classList.remove("box-select")}));this.doc.querySelectorAll(".section-select").forEach((t=>{t.classList.remove("section-select")}))}}this.timeline.modalTimeline.classList.contains("active")&&this.timeline.clearSettings(),document.body.classList.remove("box-modal-open"),this.onSelectChange&&!e.closest(".keep-selection")&&this.onSelectChange()}let n=e.closest(".is-sidebar-content"),o=e.closest(".is-sidebar"),s=e.closest(".is-wrapper"),l=e.closest(".is-rte-tool"),a=e.closest(".is-modal"),r=e.closest(".is-pop"),c=e.closest(".is-tool"),u=e.closest(".keep-selection");if(!(n||o||s||l||a||r||c||u)){this.wrapperEl.querySelectorAll(".is-box-tool").forEach((t=>{t.style.display="none"}));this.wrapperEl.querySelectorAll(".is-section-tool").forEach((t=>{t.style.display="none"}));this.wrapperEl.querySelectorAll(".is-box-info").forEach((t=>{t.style.display="none"}))}n||o||this.sidebar.closeSidebar()},document.addEventListener("click",this.doIframeDocumentClick)),document.addEventListener("keydown",this.doDocumentKeydown=t=>{if(!this.canvas)return;if(!this.activeBox)return;const e=t.ctrlKey||t.metaKey,i="a"===t.key||"A"===t.key;if(e&&i&&this.activeBox.classList.contains("box-canvas"))if(this.iframe){if("iframe"===document.activeElement.tagName.toLowerCase()&&"body"===this.doc.activeElement.tagName.toLowerCase()){const e=this.activeBox.querySelectorAll(".is-block");e.forEach((t=>{t.classList.add("active"),e.length>1&&t.classList.add("multi")})),t.preventDefault(),e.length>0&&this.eb.onMultipleSelect&&this.eb.onMultipleSelect()}}else if("body"===document.activeElement.tagName.toLowerCase()){const e=this.activeBox.querySelectorAll(".is-block");e.forEach((t=>{t.classList.add("active"),e.length>1&&t.classList.add("multi")})),t.preventDefault(),e.length>0&&this.eb.onMultipleSelect&&this.eb.onMultipleSelect()}}),this.iframe&&this.doc.addEventListener("keydown",this.doDocumentKeydown),window.wheel=()=>{}}openFilePicker(t,e){this.editor.openAssetSelect(t,e)}openColorPicker(t,e,i){this.editor.openColorPicker(t,e,i)}openIconPicker(t){this.editor.openIconPicker(t)}openPreview(){this.animateScroll.openPreview()}closePreview(){this.animateScroll.closePreview()}openSettings(t){this.sidebar.openSettings(t)}pageSetup(){if(this.wrapperEl.querySelectorAll(".is-section").forEach((t=>{if(this.sectionSetup(t),a_.hasClass(t,"is-box"))this.boxSetup(t);else{t.querySelectorAll(".is-box").forEach((t=>{this.boxSetup(t)}))}})),this.editor.applyBehavior(),this.addSpace(),setTimeout((()=>{let t=()=>{if(!this.doc.body.hasAttribute("data-skrollrr-off"))return!0},e=this.doc.querySelector(".is-element-tool"),i=document.querySelector("#divImageTool"),n=document.querySelector("#divImageResizer"),o=()=>{if(i&&"flex"===i.style.display){this.editor.moveable&&this.editor.moveable.updateRect();let t=this.doc.querySelector(".moveable-control-box");t&&(t.style.display="none")}e&&(e.style.display=""),i&&(i.style.display=""),n&&(n.style.display="",n.style.top="-10px",n.style.left="-10px",n.style.width="1px",n.style.height="1px")};t&&(this.doc.addEventListener("wheel",this.doAnimWheel=()=>{t()&&o()}),this.win.addEventListener("scroll",this.doAnimScroll=()=>{t()&&o()}))}),300),this.eb&&this.eb.refresh(),null!=localStorage.getItem("_animationmodal")){const t=this.wrapperEl.querySelector(".is-box"),e=this.wrapperEl.querySelector(".is-section");t&&(t.classList.add("box-select"),this.activeBox=t,this.editor&&(this.editor.activeBox=t)),e&&(e.classList.add("section-select"),this.activeSection=e),this.animateScroll.edit()}}addSpace(){}scrollTo(t,e=0){this.cancelScrollSync=!0,setTimeout((()=>{t.scrollIntoView({behavior:"smooth",block:"center"}),setTimeout((()=>{this.cancelScrollSync=!1;const t=this.builderStuff.querySelector(".is-modal.content-preview").querySelector("iframe");this.scrollSync(t)}),1e3)}),e)}sectionSetup(t){let e=t.querySelector(".is-section-tool");e&&e.parentNode.removeChild(e),a_.appendHtml(t,`<div class="is-section-tool">\n <button type="button" class="btn-move-section-up" tabindex="-1" data-title="${i("Move Up")}" title="${i("Move Up")}">\n <svg class="is-icon-flex" style="transform:rotate(180deg)"><use xlink:href="#icon-arrow-down2"></use></svg>\n </button>\n <button type="button" class="btn-move-section-down" tabindex="-1" data-title="${i("Move Down")}" title="${i("Move Down")}">\n <svg class="is-icon-flex"><use xlink:href="#icon-arrow-down2"></use></svg>\n </button>\n <button type="button" class="btn-section-edit" tabindex="-1" data-title="${i("Section Settings")}" title="${i("Section Settings")}">\n <svg class="is-icon-flex"><use xlink:href="#ion-wrench"></use></svg>\n </button>\n <button type="button" class="btn-section-remove" tabindex="-1" data-title="${i("Remove")}" title="${i("Remove")}">\n <svg class="is-icon-flex" style="width:18px;height:18px;margin-top:-3px;"><use xlink:href="#icon-trash2"></use></svg>\n </button>\n </div>`);let n=t.querySelector(".is-section-info");n&&n.parentNode.removeChild(n);const o=t.getAttribute("id");a_.appendHtml(t,'<div class="is-section-info">'+(o?`<div>#${o}</div>`:"")+"</div>");let s=t.querySelector(".is-section-tool").querySelectorAll("[title]");Array.prototype.forEach.call(s,(t=>{t.setAttribute("data-title",t.getAttribute("title")),this.iframe?this.editor.tooltip.set(t,5,3,!0):this.editor.tooltip.set(t,5,3)}));t.querySelector(".btn-move-section-up").addEventListener("click",(()=>{this.section.sectionMove("up")}));t.querySelector(".btn-move-section-down").addEventListener("click",(()=>{this.section.sectionMove("down")}));t.querySelector(".btn-section-edit").addEventListener("click",(()=>{this.controlPanel?(this.controlpanel.open(),this.controlpanel.select("section",!0)):(this.editbox.close(),this.editsection.edit())}));if(t.querySelector(".btn-section-remove").addEventListener("click",(()=>{const t=document.querySelector(".is-modal.delsectionconfirm");this.settings.deleteConfirm?this.editor.util.showModal(t):(this.section.sectionDelete(),this.onSelectChange&&this.onSelectChange());const e=this.builderStuff.querySelector(".editbox");e&&(e.style.display="");const i=this.builderStuff.querySelector(".editsection");i&&(i.style.display="")})),t.classList.contains("section-wide-250")){let e=t.querySelector(".is-box-centered");e&&e.addEventListener("scroll",(()=>{this.doc.body.classList.add("temporary-hide-tools"),this.editor.moveable&&this.editor.moveable.updateRect();let t=this.doc.querySelector(".moveable-control-box");t&&(t.style.display="none")}))}t.querySelectorAll(".scroll-y").forEach((t=>{t.addEventListener("scroll",(()=>{this.doc.body.classList.add("temporary-hide-tools"),this.editor.moveable&&this.editor.moveable.updateRect();let t=this.doc.querySelector(".moveable-control-box");t&&(t.style.display="none")}))}))}boxSetup(t){let e=t.querySelector(".is-box-tool");if(e&&e.parentNode.removeChild(e),a_.appendHtml(t,'<div class="is-box-tool" data-tool="1"><button type="button" class="is-cover-upload" tabindex="-1" data-tooltip-top data-title="'+i("Upload Background")+'" title="'+i("Upload Background")+'" style="background:rgb(78 170 57)"><svg class="is-icon-flex" style="position: absolute;top: 9px;left: 9px;fill:rgb(255,255,255);"><use xlink:href="#ion-image"></use></svg></button><button type="button" class="is-select-image" tabindex="-1" data-tooltip-top data-title="'+i("Select Background")+'" title="'+i("Select Background")+'" style="background:rgb(251 173 27)"><svg class="is-icon-flex" style="color:#fff;width:17px;height:17px;"><use style="color: #fff;" xlink:href="#icon-folder2"></use></svg></button><button type="button" class="is-box-edit" tabindex="-1" data-tooltip-top data-title="'+i("Box Settings")+'" title="'+i("Box Settings")+'"><svg class="is-icon-flex"><use xlink:href="#ion-wrench"></use></svg></button><button type="button" class="is-module-edit" tabindex="-1" data-tooltip-top data-title="'+i("Module Settings")+'" title="'+i("Module Settings")+'" style="background:rgb(135 116 215)"><svg class="is-icon-flex"><use xlink:href="#ion-ios-gear"></use></svg></button></div>'),e=t.querySelector(".is-box-tool"),e){let t=e.querySelectorAll("[title]");Array.prototype.forEach.call(t,(t=>{t.setAttribute("data-title",t.getAttribute("title")),this.iframe?this.editor.tooltip.set(t,5,3,!0):this.editor.tooltip.set(t,5,3)}))}const n=t.querySelector(".is-box-edit");n&&n.addEventListener("click",(()=>{this.controlPanel?(this.controlpanel.open(),this.controlpanel.select("box",!0)):(this.editsection.close(),this.editbox.edit())}));const o=t.querySelector(".is-select-image");o&&o.addEventListener("click",(()=>{let t;this.editsection&&this.editsection.close();let e=this.activeBox.querySelector(".is-overlay");if(e){const i=e.querySelector(".is-overlay-bg");i&&i.style.backgroundImage&&-1!==i.style.backgroundImage.indexOf("url(")&&(t=i.style.backgroundImage.slice(4,-1).replace(/["']/g,""))}this.editor.openImageSelect(((t,e)=>{if(this.editor.saveForUndo(),this.boxImage(t),e){let t=this.activeBox.querySelector(".is-overlay-bg");t&&t.setAttribute("data-filename",e)}this.onChange()}),t)}));const s=t.querySelector(".is-module-edit");s&&s.addEventListener("click",(()=>{this.box.editModule()}));const l=t.querySelector(".is-cover-upload");l&&l.addEventListener("click",(()=>{let t;this.targetBox=this.activeBox,t=this.iframe?this.contentStuff.querySelector(".is-cover-upload-central .input-file-cover-central"):this.builderStuff.querySelector(".is-cover-upload-central .input-file-cover-central"),t.click()}));const a=t.querySelector(".is-overlay-content");if(a){let t=a.querySelectorAll("iframe");Array.prototype.forEach.call(t,(t=>{let e=t.querySelector(".ovl");e||(a.insertAdjacentHTML("beforeend",'<div class="ovl" style="position:absolute;background:#fff;opacity:0.01;cursor:pointer;top:0;left:0px;width:100%;height:100%;z-index:1"></div>'),e=a.querySelector(".ovl"),e.addEventListener("click",(()=>{let t=document.querySelectorAll(".ovl");Array.prototype.forEach.call(t,(t=>{t.style.display="block"})),setTimeout((()=>{e.style.display="none",a.parentNode.style.zIndex=1}),200)})))}))}t.addEventListener("mouseenter",(()=>{if(t.closest("[data-top-locked], [data-bottom-locked]"))return;if(this.positionTool(t),this.wrapperEl.classList.contains("hard-select"))return;const e=t.closest(".is-section");this.activeSection&&e!==this.activeSection&&(this.prevSection=this.activeSection),this.activeBox=t,this.editor&&(this.editor.activeBox=t),this.activeSection=e;const i=document.querySelector("#divSidebarTypography");i&&i.classList.contains("active")&&this.sidebar.selectType()})),this.makeSortable(t,!0),t.addEventListener("click",(t=>{const e=t.target;if(e.closest(".is-container"))return;let n=e.closest("a");if(n){let e=n.getAttribute("href");if(e)if(0===e.indexOf("#")&&"#"!==e.trim())if(0===e.indexOf("#section")){let i=e.replace("#section","");if(!isNaN(parseInt(i))){let e,n=this.doc.querySelectorAll(".is-section"),o=0;n.forEach((function(t){a_.hasClass(t,"is-section-navbar")||(o===i-1&&(e=t),o++)})),e&&this.scrollTo(e),t.preventDefault()}}else{let i=this.doc.querySelector(e);i&&(this.scrollTo(i),t.preventDefault())}else{window.confirm(i("Do you want to open the link?"))&&window.open(e,"_blank"),t.preventDefault()}}}))}makeSortable(t,e){t.querySelectorAll(".grid-sortable").forEach((t=>{const i=new Dk(t,{animation:600,onStart:()=>{this.editor.saveForUndo(!0)},onSort:async()=>{if(e&&t.closest("[data-html]")){const e=t.closest("[data-html]"),i=encodeURIComponent(e.innerHTML);e.setAttribute("data-html",i),this.onChange()}t.closest("[data-cb-original-content]")&&(this.updateCleanContentOrder(t),this.onChange(),t.click())}});t._sortable=i}))}async updateCleanContentOrder(t){if(!t)return;const e=t.closest("[data-cb-original-content]");if(!e)return;const i=Array.from(t.children).map((t=>t.dataset.index)).filter((t=>void 0!==t)),n=e.dataset.cbOriginalContent,o=(new DOMParser).parseFromString(n,"text/html");let s=o.querySelector(".grid-sortable"),l=!1;s||(s=o.createElement("div"),s.classList.add("grid-sortable"),Array.from(o.body.children).forEach((t=>{1===t.nodeType&&s.appendChild(t)})),o.body.innerHTML="",o.body.appendChild(s),l=!0);const a=Array.from(s.children).filter((t=>1===t.nodeType)),r=new Map;a.forEach((t=>{const e=t.dataset.index;void 0!==e&&r.set(e,t)}));const c=i.map((t=>r.get(t))).filter(Boolean).map((t=>t.outerHTML)).join("");if(l)e.setAttribute("data-cb-original-content",c);else{s.innerHTML=c;const t=o.body.innerHTML;e.setAttribute("data-cb-original-content",t)}}addSection(t){this.addIdea(t)}sectionStack(){this.section.sectionStack()}doBeforeSaveForUndo(){this.markScrollTarget(this.activeSection)}async doUndoRedo(){this.doc.querySelectorAll(".idd-drop-indicator").forEach((t=>t.remove()));let t=this.doc.querySelectorAll(".is-section-tool");t.forEach((t=>{t.parentNode.removeChild(t)})),t=this.doc.querySelectorAll(".is-box-tool"),t.forEach((t=>{t.parentNode.removeChild(t)})),t=this.doc.querySelectorAll(".is-box-info"),t.forEach((t=>{t.parentNode.removeChild(t)}));this.doc.querySelectorAll(".box-select").forEach((t=>{t.classList.remove("box-select")}));this.doc.querySelectorAll(".section-select").forEach((t=>{t.classList.remove("section-select")})),this.activeBox=null,this.editor&&(this.editor.activeBox=null),this.activeSection=null,this.wrapperEl.classList.remove("is-container-edit"),this.wrapperEl.classList.remove("is-clean-edit");const e=this.builderStuff.querySelector(".editbox");e&&(e.style.display="");const i=this.builderStuff.querySelector(".editsection");i&&(i.style.display=""),this.timeline.modalTimeline.classList.contains("active")||this.animateScroll.modalAnimateScroll.classList.contains("active")||this.wrapperEl.classList.remove("hard-select"),this.pageSetup(),this.onLoadHtml&&this.onLoadHtml();if(this.hasPin())this.viewMarkedTarget();else{this.win.skrollrr&&this.win.skrollrr.refresh();let t=this.doc.querySelector(".scroll-target");t&&t.classList.remove("scroll-target")}this.controlPanel&&this.controlpanel.select("");const n=this.win.builderRuntime;n&&n.reinitialize()}refreshAnim(){this.win.skrollrr&&this.win.skrollrr.refresh()}refreshPage(t){this.win.skrollrr&&this.win.skrollrr.refresh();const e=this.wrapperEl;e.querySelectorAll(".is-section").forEach((t=>{const e=t.innerHTML;var i=document.createRange();t.innerHTML="",t.appendChild(i.createContextualFragment(e))})),this.editor.uo.cleaning(e),this.pageSetup(),this.win.skrollrr&&this.win.skrollrr.refresh(),t&&t()}loadAsset(t,e,i,{retries:n=100,retryDelay:o=200}={}){return new Promise(((s,l)=>{const a=n=>{const r=this.doc;if(!r)return n<=0?void l(new Error("builder.doc not available")):void setTimeout((()=>a(n-1)),o);const c=r.getElementById(t);c&&c.remove();const u=r.createElement(e);u.id=t,Object.assign(u,i),u.onload=()=>s(u),u.onerror=()=>{l(new Error(`Failed to load asset: ${i.src||i.href}`))},r.head.appendChild(u)};a(n)}))}runInlineScript(t,e,i={}){return this.loadInlineScript(t,`(${e})()`,i)}loadInlineScript(t,e,{retries:i=50,retryDelay:n=100}={}){return new Promise(((o,s)=>{const l=i=>{const a=this.doc;if(!a)return i<=0?void s(new Error("builder.doc not available")):void setTimeout((()=>l(i-1)),n);const r=a.getElementById(t);r&&r.remove();const c=a.createElement("script");c.id=t,c.type="text/javascript",c.textContent=e;try{a.head.appendChild(c),o(c)}catch(t){s(t)}};l(i)}))}getInsertAfterElement(){const t=this.wrapperEl,e=Array.from(t.children);let i=null;return e.forEach((t=>{this.section.isTopLocked(t)&&(i=t)})),i||null}getInsertBeforeElement(){const t=this.wrapperEl.children;let e=null;for(let i=t.length-1;i>=0;i--){const n=t[i];if(this.section.isBottomLocked(n))e=n;else if(e)break}return e}addIdea(t){const e=(new DOMParser).parseFromString(t,"text/html");Array.from(e.body.children).forEach((t=>{t.setAttribute("data-new","true")})),t=e.body.innerHTML,this.editor.saveForUndo();const n=new Date;if(-1!==(t=t.replace("[%YEAR%]",n.getFullYear())).indexOf("is-section-navbar")||-1!==t.indexOf('data-cb-type="nav-menu"')){const e=this.wrapperEl.querySelector(".is-section-navbar");if(e)return void this.editor.util.confirm(i("Do you want to replace the current navigation bar?"),(i=>{i&&(e.parentNode.removeChild(e),this.addIdea(t))}),!0,i("Replace"),!0);a_.appendHtml(this.wrapperEl,t,"afterbegin")}else if(-1!==t.indexOf("is-static")){let e=Array.from(this.wrapperEl.children).filter((t=>t.classList.contains("is-section")||t.classList.contains("pin-wrap"))),i=e[e.length-1];i?a_.appendHtml(i,t,"afterend"):a_.appendHtml(this.wrapperEl,t,"afterbegin")}else if(this.activeSection&&this.wrapperEl.contains(this.activeSection)){let e=this.activeSection;if(a_.hasClass(e,"is-static"))e.parentNode.classList.contains("pin-wrap")&&(e=e.parentNode),a_.appendHtml(e,t,"beforebegin");else if(e.parentNode.classList.contains("pin-wrap")&&(e=e.parentNode),this.section.isTopLocked(e)){const e=this.getInsertAfterElement();a_.appendHtml(e,t,"afterend")}else if(this.section.isBottomLocked(e)){const e=this.getInsertBeforeElement();a_.appendHtml(e,t,"beforebegin")}else a_.appendHtml(e,t,"afterend")}else{const e=this.getInsertAfterElement(),i=this.getInsertBeforeElement();e?a_.appendHtml(e,t,"afterend"):i?a_.appendHtml(i,t,"beforebegin"):a_.appendHtml(this.wrapperEl,t,"afterbegin")}const o=this.wrapperEl.querySelectorAll('[data-new="true"]');o.forEach((t=>{if(!t.classList.contains("is-section"))return;const e=this.settings.contentStylePath;if(t.classList.forEach((t=>{if(-1!==t.indexOf("type-")){const i=t,n=t+".css",o=this.getInlineTypographyStyle&&this.getInlineTypographyStyle(i);if(o){if(![...this.doc.querySelectorAll("style[data-class]")].some((t=>t.dataset.class===i))){const t=this.doc.createElement("style");t.dataset.class=i,t.textContent=o,this.doc.head.appendChild(t)}}else{let t=!1,o=this.doc.getElementsByTagName("link");for(let e=0;e<o.length;e++){-1!==o[e].href.toLowerCase().indexOf(n.toLowerCase())&&(t=!0)}t||this.wrapperEl.insertAdjacentHTML("beforeend",'<link data-name="contentstyle" data-class="'+i+'" href="'+e+n+'" rel="stylesheet">')}}})),t.querySelectorAll("[data-html]").forEach((t=>{let e=decodeURIComponent(t.getAttribute("data-html"));e=e.replace(/{id}/g,a_.uniqueId()),a_.html(t,e)})),t.querySelectorAll(".is-overlay").forEach((t=>{let e=t.querySelector(".is-overlay-content");e&&""===e.innerHTML&&1===t.childElementCount&&t.parentNode.removeChild(t)})),this.sectionSetup(t),a_.hasClass(t,"is-box"))this.boxSetup(t);else{t.querySelectorAll(".is-box").forEach((t=>{this.boxSetup(t)}))}})),document.querySelectorAll(".is-overlay-bg").forEach((t=>{t.style&&t.style.filter&&-1!==t.style.filter.indexOf("grayscale")&&(t.parentNode.style.filter="grayscale(1)")})),this.editor.applyBehavior(),this.settings.onRender(),this.win.builderRuntime&&this.win.builderRuntime.reinitialize();this.wrapperEl.querySelectorAll(".is-arrow-down a").forEach((t=>{t.addEventListener("click",(e=>{let i=t.parentNode.parentNode;return this.scrollTo(i.nextElementSibling),e.preventDefault(),e.stopImmediatePropagation(),!1}))})),this.sectionStack();const s=(t,e)=>{let i=t.getAttribute("class");t.setAttribute("class",i+" "+e)},l=(t,e)=>{94<=e&&e<=100&&s(t,this.editor.cols[11]),86<=e&&e<94&&s(t,this.editor.cols[10]),78<=e&&e<86&&s(t,this.editor.cols[9]),70<=e&&e<78&&s(t,this.editor.cols[8]),62<=e&&e<70&&s(t,this.editor.cols[7]),54<=e&&e<62&&s(t,this.editor.cols[6]),46<=e&&e<54&&s(t,this.editor.cols[5]),37<=e&&e<46&&s(t,this.editor.cols[4]),29<=e&&e<37&&s(t,this.editor.cols[3]),21<=e&&e<29&&s(t,this.editor.cols[2]),13<=e&&e<21&&s(t,this.editor.cols[1]),5<=e&&e<13&&s(t,this.editor.cols[0])};this.editor.useDefaultGrid||o.forEach((t=>{if(!t.classList.contains("is-section"))return;let e=t.querySelectorAll(".is-container > div");e.forEach((t=>{t.style.flexWrap="nowrap";let e=this.editor.util.getAllColumns(t);e.forEach((t=>{t.style.flexShrink="unset"})),e.forEach((e=>{if(e.style.width&&e.style.width.includes("%")){let t=parseFloat(e.style.width);e.setAttribute("data-temp-w",t)}else{let i=Number(window.getComputedStyle(e).getPropertyValue("width").match(/\d+/)[0])/Number(window.getComputedStyle(t).getPropertyValue("width").match(/\d+/)[0])*100;e.setAttribute("data-temp-w",i)}}))})),e=t.querySelectorAll(".is-container > div"),e.forEach((t=>{this.editor.util.getAllColumns(t).forEach((t=>{let e=t.getAttribute("data-temp-w");if(l(t,parseFloat(e)),t.removeAttribute("data-temp-w"),this.editor.cols[0].split(" ").includes("column")){const e=t.className.split(" "),i=[...new Set(e)];t.className=i.join(" ")}else t.classList.remove("column");t.style.flexShrink="",t.style.width="",t.style.flex=""})),t.style.flexWrap=""}))})),t.includes("box-canvas")&&this.eb.refresh();const a=this.wrapperEl.querySelectorAll("div.is-section[data-new]"),r=a.length?a[a.length-1]:null;this.clearSelection(),this.selectNewSection(r),this.wrapperEl.querySelectorAll("[data-new]").forEach((t=>{t.removeAttribute("data-new")})),this.onChange();document.querySelector(".is-sidebar")&&(a_.removeElement(document.querySelector(".is-sidebar-overlay")),a_.removeClass(document.querySelectorAll(".is-sidebar .is-sidebar-button"),"active"),a_.removeClass(document.querySelectorAll(".is-sidebar-content"),"active")),this.iframe||(document.body.style.overflowY=""),this.addSpace();this.hasPin()?(this.markScrollTarget(r),this.scrollToMarkedTarget()):(this.scrollTo(r,600),setTimeout((()=>{this.refreshAnim()}),600)),this.onAddSection&&this.onAddSection()}loadSectionList(){this.sidebar.viewIdeas()}loadTypographyList(){this.sidebar.loadTypography()}setTypographyStyleScope(t){this.typographyStyleScope=t}applyTypographyStyle(t,e){e||(e=t+".css"),this.sidebar.applyTypographyStyle(t,e)}applyInlineTypographyStyle(t,e){this.sidebar.applyInlineTypographyStyle(t,e)}clearSelection(){const t=this.doc.querySelector(".box-select");t&&t.classList.remove("box-select");const e=this.doc.querySelector(".section-select");e&&e.classList.remove("section-select"),this.editor.util.clearActiveCell(),this.editor.util.clearAfterUndoRedo()}selectNewSection(t){let e=!1;if(t.classList.contains("is-box")&&(e=!0),e)t.classList.add("box-select"),this.activeBox=t,this.editor&&(this.editor.activeBox=t),this.wrapperEl.classList.add("hard-select"),t.classList.add("section-select"),this.activeSection=t,this.positionTool(t),t.click();else{let e=t.querySelector(".is-box");e&&(e.classList.add("box-select"),this.activeBox=e,this.editor&&(this.editor.activeBox=e),e.click()),this.wrapperEl.classList.add("hard-select"),t.classList.add("section-select"),this.activeSection=t,this.positionTool(e)}}refreshUIStyle(){if(!this.editor)return;if(!this.editor.styleSnippetBackground)return void setTimeout((()=>{this.refreshUIStyle()}),300);if(!this.controlPanel){document.querySelector("#divSidebarSnippets").style.backgroundColor=this.editor.styleSnippetBackground;document.querySelectorAll(".is-sidebar-content").forEach((t=>{t.style.backgroundColor=this.editor.styleSnippetBackground}));const t=document.querySelector("#divStyles");t.style.backgroundColor=this.editor.styleSnippetBackground,t.style.color=this.editor.styleSnippetColor;const e=document.querySelector(".is-sidebar");e.style.backgroundColor=this.editor.styleModalBackground,e.style.color=this.editor.styleModalColor;e.querySelectorAll("svg").forEach((t=>{t.style.fill=this.editor.styleModalColor}));e.querySelectorAll("button").forEach((t=>{t.style.color=this.editor.styleModalColor}))}const t=document.querySelector("#ifrIdeasPanel");t&&t.contentWindow.applyParentStyles&&t.contentWindow.applyParentStyles()}rePositionTool(){this.activeBox&&this.positionTool(this.activeBox)}scaleTools(){this.removeCustomStyle("_css_scale");const t=document.querySelector(".is-content-view");if(!t)return;const e=window.getComputedStyle(t).transform.slice(7,-1).split(",");let i=parseFloat(e[0]);this.removeCustomStyle("_css_scale_apply"),this.addCustomStyle("_css_scale_apply",`\n .is-section-tool {\n transform: scale(${1/i}) !important;;\n transform-origin: top right !important;\n }\n .is-box-tool {\n transform: scale(${1/i}) !important;;\n transform-origin: center bottomt !important;\n }\n .is-section-info {\n transform: scale(${1/i}) !important;;\n }\n\n .is-col-tool {\n transform: scale(${1/i}) !important;;\n transform-origin: bottom left !important;\n\n }\n .is-row-tool {\n transform: scale(${1/i}) !important;;\n transform-origin: top left !important;\n }\n .is-rowadd-tool button {\n transform: scale(${1/i}) !important;;\n }\n\n .is-element-tool,\n .is-video-tool,\n .is-audio-tool,\n .is-iframe-tool,\n .is-module-tool,\n .is-code-tool,\n .is-spacer-tool,\n .is-svg-tool,\n .is-table-tool,\n .is-locked-indicator,\n #divLinkTool, #divButtonTool {\n transform: scale(${1/i}) !important;;\n transform-origin: top !important;\n }\n `)}positionTool(t){if(!t)return;var e;e=null!==localStorage.getItem("_zoom")?localStorage.getItem("_zoom"):this.settings.zoom;const i=t.closest(".is-section-navbar"),n=t.querySelector('[data-module="slider-box"]'),o=t.closest(".box-custom");let s,l;this.wrapperEl.querySelectorAll(".is-section-tool").forEach((t=>{t.style.display="none"})),a_.hasClass(t,"is-section")?(s=t,l=t.querySelector(".is-section-tool")):(s=a_.parentsHasClass(t,"is-section"),l=s.querySelector(".is-section-tool")),l&&(l.style.display="block",l.style.transform="scale("+1/e+")",l.style.transformOrigin="top right");const a=l.querySelector(".btn-move-section-up"),r=l.querySelector(".btn-move-section-down"),c=l.querySelector(".btn-section-remove");t.offsetHeight<160?(a.style.display="none",r.style.display="none",c.style.display="none",l.style.top="17px"):(a.style.display="",r.style.display="",c.style.display="");this.wrapperEl.querySelectorAll(".is-box-tool").forEach((t=>{t.style.display="none"}));let u=t.querySelector(".is-box-tool");u&&(u.style.display="flex",u.style.transform="scale("+1/e+")",u.style.transformOrigin="center bottom",t.querySelector(".is-select-image").style.display="none",n?(t.querySelector(".is-cover-upload").style.display="none",t.querySelector(".is-box-edit").style.display="inline-block",t.querySelector(".is-module-edit").style.display="inline-block",u.style.width="70px",u.style.left="calc(50% - 35px)"):i?(t.querySelector(".is-cover-upload").style.display="none",t.querySelector(".is-box-edit").style.display="none",t.querySelector(".is-module-edit").style.display="inline-block",u.style.width="35px",u.style.left="calc(50% - 17.5px)"):o?(t.querySelector(".is-cover-upload").style.display="none",t.querySelector(".is-box-edit").style.display="inline-block",t.querySelector(".is-module-edit").style.display="inline-block",u.style.width="70px",u.style.left="calc(50% - 35px)"):t.querySelectorAll(".is-overlay-content[data-module]").length>0?(t.querySelector(".is-cover-upload").style.display="block",t.querySelector(".is-box-edit").style.display="inline-block",t.querySelector(".is-module-edit").style.display="inline-block",u.style.width="105px",u.style.left="calc(50% - 52.5px)",(this.onImageSelectClick||this.imageselect)&&this.showSelectCover&&(u.style.width="140px",t.querySelector(".is-select-image").style.display="inline-block",u.style.left="calc(50% - 70px)"),"video-bg"===t.querySelector(".is-overlay-content[data-module]").getAttribute("data-module")&&(t.querySelector(".is-cover-upload").style.display="none",t.querySelector(".is-select-image").style.display="none",u.style.width="70px",u.style.left="calc(50% - 35px)")):(t.querySelector(".is-cover-upload").style.display="block",t.querySelector(".is-box-edit").style.display="inline-block",t.querySelector(".is-module-edit").style.display="none",u.style.width="70px",u.style.left="calc(50% - 35px)",(this.onImageSelectClick||this.imageselect)&&this.showSelectCover&&(u.style.width="105px",t.querySelector(".is-select-image").style.display="inline-block",u.style.left="calc(50% - 52.5px)")));const d=t.querySelector(".is-container"),b=t.querySelector("[data-cb-type]");!d&&b&&(u.style.zIndex=-10,u.style.visibility="hidden"),this.scaleTools()}addCustomStyle(t,e){let i=this.doc.getElementById(t);if(i)i.innerHTML=e;else{let i=this.doc.createElement("style");i.type="text/css",i.id=t,i.innerHTML=e,this.doc.head.appendChild(i)}}removeCustomStyle(t){let e=this.doc.getElementById(t);e&&this.doc.head.removeChild(e)}addButton(t){if(this.preview)return;const e=this.builderStuff,n=a_.uniqueId(),o=a_.uniqueId();let s;if(t.src){s=`<button type="button" id="${n}" class="is-sidebar-button" tabindex="-1" data-content="${o}" data-title="${i(t.title)}" title="${i(t.title)}" data-src="${t.src}" data-refresh="${t.refresh?1:0}">\n ${t.html}\n </button>`;let l=`<div id="${o}" class="is-sidebar-content is-area-2nd ${t.class}" tabindex="-1" role="dialog" aria-modal="true" aria-hidden="true" style="max-width:${t.maxwidth?t.maxwidth:"1005px"};">\n <div style="padding:0 0 0 50px;box-sizing:border-box;">\n <iframe src="about:blank" style="width:100%;height:100%;box-sizing:border-box;border:none;">\n </iframe>\n </div>\n </div>`;a_.appendHtml(e,l)}else s=t.onClick?'<button type="button" id="'+n+'" tabindex="-1" class="is-sidebar-button" data-title="'+i(t.title)+'" title="'+i(t.title)+'">'+t.html+"</button>":`<button id="${n}" class="is-sidebar-button" tabindex="-1" data-content="${t.content.substr(1)}" data-title="${i(t.title)}" title="${i(t.title)}">\n ${t.html}\n </button>`;const l=e.querySelector(".is-sidebar");if(l){let e=l.children[t.pos];e||(e=l.children[t.pos-1]),e||(e=l.children[t.pos-2]),e||(e=l.children[t.pos-3]),e||(e=l.children[t.pos-4]),e||(e=l.children[t.pos-5]),e&&e.insertAdjacentHTML("afterEnd",s)}const a=e.querySelector("#"+n);a&&a.addEventListener("click",(i=>{if(t.onClick)t.onClick(i);else if(a_.hasClass(a,"active"))this.sidebar.closeSidebar();else{this.sidebar.closeSidebar(),a_.addClass(a,"active");var n=a.getAttribute("data-content");const i=document.querySelector("#"+n);if(i.style.display="block",i.setAttribute("aria-hidden",!1),setTimeout((()=>{a_.addClass(i,"active"),i.focus()}),10),t.src){var o=e.querySelector("#"+n+" iframe");("1"===a.getAttribute("data-refresh")||"about:blank"===o.getAttribute("src"))&&o.setAttribute("src",t.src)}a_.appendHtml(e,'<div class="is-sidebar-overlay" style="position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(255,255,255,0.000001);z-index: 1000;;"></div>');const s=e.querySelector(".is-sidebar-overlay");s.addEventListener("click",(()=>{s.parentNode.removeChild(s);let t=e.querySelectorAll(".is-sidebar > div");t.forEach((t=>{a_.removeClass(t,"active")})),t=e.querySelectorAll(".is-sidebar-content"),t.forEach((t=>{a_.removeClass(t,"active")})),document.body.style.overflowY=""}))}})),setTimeout((()=>{if(!t.onClick){const t=a.getAttribute("data-content");document.querySelector("#"+t).addEventListener("keydown",(t=>{27===t.keyCode&&this.sidebar.closeSidebar()}))}}),300)}openPanel(){this.controlpanel.open_()}toggleEditPanel(){document.body.classList.contains("controlpanel")?(this.controlpanel.close(),this.disableAutoOpenEditPanel=!0):this.controlpanel.open_()}toggleDevice(){this.controlpanel.toggleDevice()}viewHtml(){this.htmlSyntaxHighlighting?this.sidebar.viewHtml():this.sidebar.viewHtml2()}undo(){this.editor.undo()}redo(){this.editor.redo()}saveImages(t,e,i){this.editor.saveImages(t,e,i)}applyLargerImage(t){this.editor.applyLargerImage(t)}returnUrl(t){this.editor.returnUrl(t)}showMessage(t){this.editor.util.showMessage(t)}showChoice(t,e,i){this.editor.util.showChoice(t,e,i)}showModal(t,e,i,n,o){this.editor.util.showModal(t,e,i,n,o)}hideModal(t){this.editor.hideModal(t)}confirm(t,e){return new Promise((i=>{this.editor.util.confirm(t,((t,e)=>{e&&e.stopPropagation(),i(t)}),!0,e,!0)}))}selectAsset(t){this.editor.selectAsset(t)}closeAsset(){this.editor.closeAsset()}refreshModule(){this.box.refreshModule()}loadStyles(t,e){if(!this.wrapperEl)return void setTimeout((()=>{this.loadStyles(t,e)}),100);let i,n=this.doc.getElementsByTagName("link");for(let t=0;t<n.length;t++)"contentstyle"===n[t].getAttribute("data-name")&&n[t].setAttribute("data-rel","_del"),-1!==n[t].getAttribute("href").indexOf("basetype-")&&n[t].setAttribute("data-rel","_del"),-1===n[t].getAttribute("href").indexOf("/box.css")&&-1===n[t].getAttribute("href").indexOf("/box-flex.css")||n[t].closest("body")&&(i=!0,this.settings.cssInBody=!0);this.settings.cssInBody&&(i=!0),this.doc.querySelectorAll('[data-rel="_del"]').forEach((t=>{t.parentNode.removeChild(t)}));let o=this.doc.head;o||(o=this.doc.body),t&&""!==t&&(i?this.wrapperEl.insertAdjacentHTML("beforebegin",t):o.insertAdjacentHTML("beforeend",t)),e&&""!==e&&(i?this.wrapperEl.insertAdjacentHTML("beforebegin",e):o.insertAdjacentHTML("beforeend",e))}loadStyles_BAK(t,e){this.wrapperEl?(t&&""!==t&&this.doc.head.insertAdjacentHTML("beforeend",t),e&&""!==e&&this.doc.head.insertAdjacentHTML("beforeend",e)):setTimeout((()=>{this.loadStyles(t,e)}),100)}getWrapper(){return this.wrapperEl}setTopContentProvider(t){this.topContentProvider=t}setBottomContentProvider(t){this.bottomContentProvider=t}refresh(){const t=this.html();this.loadHtml(t)}loadHtml(t){this.activeBox=null,this.editor&&(this.editor.activeBox=null),this.activeSection=null;const e=this.wrapperEl;if(!e)return void setTimeout((()=>{this.loadHtml(t)}),100);if(this.topContentProvider){let e=this.topContentProvider();const i=(new DOMParser).parseFromString(e,"text/html");Array.from(i.body.children).forEach((t=>{t.setAttribute("data-top-locked","true")})),e=i.body.innerHTML,t=e+t}if(this.bottomContentProvider){let e=this.bottomContentProvider();const i=(new DOMParser).parseFromString(e,"text/html");Array.from(i.body.children).forEach((t=>{t.setAttribute("data-bottom-locked","true")})),e=i.body.innerHTML,t+=e}let i=!1;if("glide"!==this.settings.slider&&"all"!==this.settings.slider||void 0!==this.win.Glide&&(new this.win.Glide).mount||(i=!0),!this.editor||i)return void setTimeout((()=>{this.loadHtml(t)}),100);let n=document.createRange();e.innerHTML="",e.appendChild(n.createContextualFragment(t));let o=this.settings.contentStylePath;e.querySelectorAll(".is-section").forEach((t=>{t.querySelector(".is-box")?t.classList.remove("is-box"):t.classList.add("is-box");t.querySelectorAll(".is-container").forEach((t=>{const e=[],i=t.closest(".is-box");t.classList.forEach((t=>{("is-content-bottom"===t||"is-content-top"===t||t.startsWith("edge-y-"))&&e.push(t)}));t.querySelectorAll("[data-cb-type]").forEach((t=>{const e=t.parentNode;e.classList.remove("items-start"),e.classList.remove("items-center"),e.classList.remove("items-end"),e.classList.remove("flex"),e.classList.remove("flex-col"),e.classList.remove("justify-start"),e.classList.remove("justify-center"),e.classList.remove("justify-end"),e.classList.remove("flex"),"100%"===e.style.width&&(e.style.width="")})),e.length>0&&e.forEach((e=>{t.classList.remove(e),i.classList.add(e)})),t.classList.contains("v2")||t.classList.contains("v3")||t.classList.add("v3")})),t.classList.forEach((t=>{if(-1!==t.indexOf("type-")){const e=t,i=t+".css",n=this.getInlineTypographyStyle&&this.getInlineTypographyStyle(e);if(n){if(![...this.doc.querySelectorAll("style[data-class]")].some((t=>t.dataset.class===e))){const t=this.doc.createElement("style");t.dataset.class=e,t.textContent=n,this.doc.head.appendChild(t)}}else{let t=!1,n=this.doc.getElementsByTagName("link");for(let e=0;e<n.length;e++){-1!==n[e].href.toLowerCase().indexOf(i.toLowerCase())&&(t=!0)}t||this.wrapperEl.insertAdjacentHTML("beforeend",'<link data-name="contentstyle" data-class="'+e+'" href="'+o+i+'" rel="stylesheet">')}}}))})),this.pageSetup(),this.pageSetupDone=!0,this.onLoadHtml&&this.onLoadHtml(),this.settings.onRender(),this.win.builderRuntime&&this.win.builderRuntime.reinitialize();e.querySelectorAll(".is-arrow-down a").forEach((t=>{t.addEventListener("click",(e=>{let i=t.parentNode.parentNode;return this.scrollTo(i.nextElementSibling),e.preventDefault(),e.stopImmediatePropagation(),!1}))})),null!=localStorage.getItem("_livepreview")&&this.openPreview(),this.win.pageReRender&&this.win.pageReRender(),this.wrapperEl.style.transition="all 400ms ease",setTimeout((()=>{this.wrapperEl.style.opacity=1,setTimeout((()=>{this.wrapperEl.style.transition=""}),400)}),400)}openModal(t,e={}){const i={w:"88vw",maxW:"1600px",h:"88vh",extraStyle:"",ariaLabel:"Modal",showCloseButton:!1,...e},n=`\n <div class="is-modal custom-modal" style="z-index:10005" tabindex="-1" role="dialog" aria-modal="true" aria-hidden="true">\n <div style="width:${i.w};max-width:${i.maxW};height:${i.h};padding:0;${i.extraStyle}">\n <iframe tabindex="0" style="width:100%;height:100%;border: none;display: block;" src="about:blank"></iframe>\n </div>\n </div> \n `,o=this.builderStuff.querySelector(".is-modal.custom-modal");o&&o.remove(),this.builderStuff.insertAdjacentHTML("beforeend",n);const s=this.builderStuff.querySelector(".is-modal.custom-modal");s.setAttribute("aria-label",i.ariaLabel);const l=s.querySelector("iframe");if(l.src=t,i.showCloseButton){const t=document.createElement("button");t.innerHTML='\n <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-x"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 6l-12 12" /><path d="M6 6l12 12" /></svg>\n ',t.className="modal-close",t.addEventListener("click",(()=>{s.remove(),"function"==typeof i.onClose&&i.onClose(s,l)})),s.querySelector("div").prepend(t)}"function"==typeof i.onOpen&&i.onOpen(s,l),this.editor.util.showModal(s,!1,(()=>{"function"==typeof i.onClose&&i.onClose(s,l)}))}boxImage(t,e){this.controlPanel?this.box.boxImage(t,e):this.editbox.boxImage(t,e),this.onSelectChange&&this.onSelectChange()}mainCss(t){let e=this.doc.getElementsByTagName("link"),i=[];for(let n=0;n<e.length;n++){if(-1!==e[n].href.toLowerCase().indexOf("basetype-"))if(t){const t=e[n].cloneNode();let o=t.href,s=window.location.href.substring(0,window.location.href.lastIndexOf("/"));o=o.replace(s,"[%PATH%]"),t.href=o,i.push(t.outerHTML)}else i.push(e[n].outerHTML)}return i=[...new Set(i)],i.join("")}mainCssList(){let t=this.doc.getElementsByTagName("link"),e=[];for(let i=0;i<t.length;i++){-1!==t[i].href.toLowerCase().indexOf("basetype-")&&e.push(t[i].outerHTML)}return e}sectionCss(t){let e=this.doc.getElementsByTagName("link"),i=[];for(let n=0;n<e.length;n++){let o=e[n].href.toLowerCase();if(-1!==o.indexOf("basetype-"));else if(-1!==o.indexOf("type-"))if(t){const t=e[n].cloneNode();let o=t.href,s=window.location.href.substring(0,window.location.href.lastIndexOf("/"));o=o.replace(s,"[%PATH%]"),t.href=o,i.push(t.outerHTML)}else i.push(e[n].outerHTML)}i=[...new Set(i)];let n="";return this.wrapperEl.querySelectorAll(".is-section").forEach((t=>{t.classList.forEach((t=>{if(-1!==t.indexOf("type-")){const e=t,i=this.getInlineTypographyStyle&&this.getInlineTypographyStyle(e);if(i){const t=this.doc.createElement("style");t.dataset.class=e,t.textContent=i,n+=t.outerHTML}}}))})),i.join("")+n}sectionCssList(){let t=this.doc.getElementsByTagName("link"),e=[];for(let i=0;i<t.length;i++){let n=t[i].href.toLowerCase();-1!==n.indexOf("basetype-")||-1!==n.indexOf("type-")&&e.push(t[i].outerHTML)}return e=[...new Set(e)],e}htmlCheck(){this.cleanupUnused();return this.editor.readHtml(this.wrapperEl,!1,!0,!0)}hasPin(){return this.section.hasPin()}markScrollTarget(t){this.doc.querySelectorAll(".scroll-target").forEach((t=>t.classList.remove("scroll-target"))),t&&t.classList.add("scroll-target")}scrollToMarkedTarget(t=!0){this.win.pageReRender&&t&&this.win.pageReRender();let e=this.doc.querySelector(".scroll-target");e&&(e.classList.remove("scroll-target"),setTimeout((()=>{this.scrollTo(e,0)}),600))}viewMarkedTarget(){this.win.pageReRender&&this.win.pageReRender();let t=this.doc.querySelector(".scroll-target");t&&(t.classList.remove("scroll-target"),t.scrollIntoView())}getActiveSectionHtml(t){t=t||1;let e=this.activeSection;for(let i=0;i<t&&e;i++){if(0===i)e.classList.add("this");else{if(!e.classList.contains("is-section"))break;e.classList.add("this")}e=e.nextElementSibling}let i=this.html();const n=(new DOMParser).parseFromString(i,"text/html");Array.from(n.body.children).forEach((function(t){t.classList.contains("is-section")&&t.classList.contains("this")||t.remove()})),n.body.querySelectorAll(".this").forEach((function(t){t.classList.remove("this")})),i=n.body.innerHTML;return this.wrapperEl.querySelectorAll(".is-section.this").forEach((function(t){t.classList.remove("this")})),i}html(t){this.cleanupUnused();const e=this.wrapperEl.cloneNode(!0);e.querySelectorAll("video").forEach((t=>{t.pause()})),e.querySelectorAll(".pin-wrap").forEach((t=>{const e=t.firstElementChild;t.after(e),t.parentNode.removeChild(t)}));e.querySelectorAll(".is-section").forEach((t=>{t.hasAttribute("data-section-clone")&&t.parentNode.removeChild(t),t.hasAttribute("data-section-original")&&(t.style.display="",t.removeAttribute("data-section-original"))}));let i=this.editor.readHtml(e,t,!0);e.remove();const n=this.contentExcludeSelectors;if(Array.isArray(n)&&n.length){const t=(new DOMParser).parseFromString(i,"text/html");n.forEach((e=>{try{t.querySelectorAll(e).forEach((t=>t.remove()))}catch(t){this.options.consoleLog&&console.warn("Invalid contentExcludeSelectors selector:",e)}})),i=t.body.innerHTML}return i.trim()}download(t={}){this.export(t,!0)}clear(){this.editor.util.confirm(i("Are you sure you want to clear the page content?"),(t=>{t&&(this.editor.saveForUndo(),this.loadHtml(""),this.settings.onChange())}),!0,i("Clear"),!0)}export(t={},e=!1){let i;i=this.pageTemplate?this.pageTemplate:this.util.getPageTemplate(this.framework,t);let n="";this.cleanupUnused(),this.editor.makeAbsolute=!0,this.editor.shortenOutput=e;let o=this.editor.readHtml(this.wrapperEl,!1,!0);this.editor.makeAbsolute=!1,this.editor.shortenOutput=!1,n=i.replace("[%CONTENT%]",o);let s=this.mainCss(!0),l=this.sectionCss(!0);if(n=n.replaceAll("[%MAINCSS%]",s),n=n.replaceAll("[%SECTIONCSS%]",l),t.replace&&t.replace.forEach((t=>{n=n.replaceAll(`${t[0]}`,t[1])})),t.path)n=n.replaceAll("[%PATH%]",t.path);else{let t;t=window.location.href.substring(0,window.location.href.lastIndexOf("/")),n=n.replaceAll("[%PATH%]",t)}n=this.editor.beautify(n);const a=document.createElement("a");a.href=window.URL.createObjectURL(new Blob([n],{type:"text/plain"})),a.download="page.html",a.click()}viewZoom(){this.editor.viewZoom()}openAnimationPanel(){this.animateScroll.edit()}openAnimationTimeline(){this.timeline.edit()}setScreenMode(t){this.iframePanel.setScreenMode(t)}openTimelinePanel(){this.timeline.edit()}openAIAssistant(){this.codechat.open()}destroy(){this.pendingChanges&&!this.isSaving&&this.performAutoSave(),this.autoSaveTimeoutId&&(clearTimeout(this.autoSaveTimeoutId),this.autoSaveTimeoutId=null),this.maxIntervalCheckerId&&(clearInterval(this.maxIntervalCheckerId),this.maxIntervalCheckerId=null),this.resizeObserver&&this.resizeObserver.disconnect();const t=document.querySelector("#_style_editpanel");t&&t.remove(t);const e=document.querySelector("#editPanel");e&&e.remove();const i=document.querySelector(".is-responsive-tool");if(i&&i.remove(),this.builderStuff.innerHTML="",document.body.classList.remove("sidebar-active"),document.body.removeAttribute("data-skrollrr-off"),document.body.style.overflowY="",this.doc){const t=this.doc.querySelector("#_contentbox_css");t&&t.remove(t)}const n=document.querySelector("#_contentboxstuff_css");n&&n.remove(n),this.editor&&this.editor.destroy();const o=document.querySelector("#_newbox");o&&o.parentNode.removeChild(o),document.body.classList.remove("controlpanel"),this.doc&&this.doc.removeEventListener("click",this.doDocumentClick,!1),this.iframe&&document.removeEventListener("click",this.doIframeDocumentClick,!1),this.doc&&this.doc.removeEventListener("click",this.doDocumentKeydown,!1),this.iframe&&document.removeEventListener("click",this.doDocumentKeydown,!1),this.doc&&this.doc.removeEventListener("scroll",this.doAnimWheel,!1),this.win&&this.win.removeEventListener("scroll",this.doAnimScroll,!1),this.win&&this.win.removeEventListener("scroll",this.doScrollSync,!1),window.removeEventListener("scroll",this.doWindowScroll,!1)}cleanupUnused(){if(!this.doc)return;this.doc.querySelectorAll(".idd-drop-indicator").forEach((t=>t.remove())),this.editor&&this.editor.rte.cleanupFontCssLink();let t=this.doc.getElementsByTagName("link");for(let e=0;e<t.length;e++)if("contentstyle"===t[e].getAttribute("data-name")){let i=t[e].getAttribute("data-class");""===i&&t[e].setAttribute("data-rel","_del"),""!==i&&(this.wrapperEl.querySelector("."+i)||t[e].setAttribute("data-rel","_del"))}let e=this.doc.querySelectorAll('[data-rel="_del"]');e.forEach((t=>{t.parentNode.removeChild(t)})),e=this.doc.head.querySelectorAll("link"),e.forEach((t=>{let e=t.getAttribute("href");this.wrapperEl.querySelectorAll("link").forEach((t=>{e===t.getAttribute("href")&&t.setAttribute("data-rel","_del")}))})),e=this.doc.querySelectorAll('[data-rel="_del"]'),e.forEach((t=>{t.parentNode.removeChild(t)})),e=this.doc.querySelectorAll(".scroll-target, .last-box"),e.forEach((t=>{t.classList.remove("scroll-target"),t.classList.remove("last-box")}))}calculateVisibleArea(t){const e=window.innerHeight||document.documentElement.clientHeight,i=window.innerWidth||document.documentElement.clientWidth,n=Math.max(t.top,0),o=Math.min(t.bottom,e),s=Math.max(t.left,0);return(Math.min(t.right,i)-s)*(o-n)}findMostVisibleElement(t){let e=0,i=null;return t.forEach((t=>{const n=t.getBoundingClientRect();if(n.top<window.innerHeight&&n.bottom>=0&&n.left<window.innerWidth&&n.right>=0){const o=this.calculateVisibleArea(n);o>e&&(e=o,i=t)}})),i}selectSection(){if(this.activeBox)return;const t=this.wrapperEl.querySelectorAll(".is-section"),e=this.findMostVisibleElement(t);if(!e)return;let i=!1;if(e.classList.contains("is-box")&&(i=!0),i)this.activeBox=e,this.editor&&(this.editor.activeBox=e),e.classList.add("section-select"),this.activeSection=e;else{const t=e.querySelector(".is-box");t&&(t.classList.add("box-select"),this.activeBox=t,this.editor&&(this.editor.activeBox=t)),e.classList.add("section-select"),this.activeSection=e}}makeId(){let t="",e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";for(let i=0;i<2;i++)t+=e.charAt(Math.floor(Math.random()*e.length));let i="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";for(let t=0;t<5;t++)i+=n.charAt(Math.floor(Math.random()*n.length));return t+i}async createImage(t,e){try{return await this.editor.createImage(t,e)}catch(t){console.error("Image generation failed",t)}}applyDragDropBlocks(t){this.editor?this.editor.applyDragDropBlocks(t):setTimeout((()=>{this.applyDragDropBlocks(t)}),100)}}}();
149
+ */function nS(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function oS(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?nS(Object(i),!0).forEach((function(e){lS(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):nS(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function sS(t){return sS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sS(t)}function lS(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function aS(){return aS=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},aS.apply(this,arguments)}function rS(t,e){if(null==t)return{};var i,n,o=function(t,e){if(null==t)return{};var i,n,o={},s=Object.keys(t);for(n=0;n<s.length;n++)i=s[n],e.indexOf(i)>=0||(o[i]=t[i]);return o}(t,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(n=0;n<s.length;n++)i=s[n],e.indexOf(i)>=0||Object.prototype.propertyIsEnumerable.call(t,i)&&(o[i]=t[i])}return o}function cS(t){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(t)}var uS=cS(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),dS=cS(/Edge/i),bS=cS(/firefox/i),pS=cS(/safari/i)&&!cS(/chrome/i)&&!cS(/android/i),hS=cS(/iP(ad|od|hone)/i),gS=cS(/chrome/i)&&cS(/android/i),mS={capture:!1,passive:!1};function fS(t,e,i){t.addEventListener(e,i,!uS&&mS)}function vS(t,e,i){t.removeEventListener(e,i,!uS&&mS)}function yS(t,e){if(e){if(">"===e[0]&&(e=e.substring(1)),t)try{if(t.matches)return t.matches(e);if(t.msMatchesSelector)return t.msMatchesSelector(e);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(e)}catch(t){return!1}return!1}}function xS(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function wS(t,e,i,n){if(t){i=i||document;do{if(null!=e&&(">"===e[0]?t.parentNode===i&&yS(t,e):yS(t,e))||n&&t===i)return t;if(t===i)break}while(t=xS(t))}return null}var SS,kS=/\s+/g;function _S(t,e,i){if(t&&e)if(t.classList)t.classList[i?"add":"remove"](e);else{var n=(" "+t.className+" ").replace(kS," ").replace(" "+e+" "," ");t.className=(n+(i?" "+e:"")).replace(kS," ")}}function CS(t,e,i){var n=t&&t.style;if(n){if(void 0===i)return document.defaultView&&document.defaultView.getComputedStyle?i=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(i=t.currentStyle),void 0===e?i:i[e];e in n||-1!==e.indexOf("webkit")||(e="-webkit-"+e),n[e]=i+("string"==typeof i?"":"px")}}function LS(t,e){var i="";if("string"==typeof t)i=t;else do{var n=CS(t,"transform");n&&"none"!==n&&(i=n+" "+i)}while(!e&&(t=t.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(i)}function AS(t,e,i){if(t){var n=t.getElementsByTagName(e),o=0,s=n.length;if(i)for(;o<s;o++)i(n[o],o);return n}return[]}function ES(){var t=document.scrollingElement;return t||document.documentElement}function qS(t,e,i,n,o){if(t.getBoundingClientRect||t===window){var s,l,a,r,c,u,d;if(t!==window&&t.parentNode&&t!==ES()?(l=(s=t.getBoundingClientRect()).top,a=s.left,r=s.bottom,c=s.right,u=s.height,d=s.width):(l=0,a=0,r=window.innerHeight,c=window.innerWidth,u=window.innerHeight,d=window.innerWidth),(e||i)&&t!==window&&(o=o||t.parentNode,!uS))do{if(o&&o.getBoundingClientRect&&("none"!==CS(o,"transform")||i&&"static"!==CS(o,"position"))){var b=o.getBoundingClientRect();l-=b.top+parseInt(CS(o,"border-top-width")),a-=b.left+parseInt(CS(o,"border-left-width")),r=l+s.height,c=a+s.width;break}}while(o=o.parentNode);if(n&&t!==window){var p=LS(o||t),h=p&&p.a,g=p&&p.d;p&&(r=(l/=g)+(u/=g),c=(a/=h)+(d/=h))}return{top:l,left:a,bottom:r,right:c,width:d,height:u}}}function TS(t,e,i){for(var n=$S(t,!0),o=qS(t)[e];n;){var s=qS(n)[i];if(!("top"===i||"left"===i?o>=s:o<=s))return n;if(n===ES())break;n=$S(n,!1)}return!1}function MS(t,e,i,n){for(var o=0,s=0,l=t.children;s<l.length;){if("none"!==l[s].style.display&&l[s]!==Dk.ghost&&(n||l[s]!==Dk.dragged)&&wS(l[s],i.draggable,t,!1)){if(o===e)return l[s];o++}s++}return null}function RS(t,e){for(var i=t.lastElementChild;i&&(i===Dk.ghost||"none"===CS(i,"display")||e&&!yS(i,e));)i=i.previousElementSibling;return i||null}function IS(t,e){var i=0;if(!t||!t.parentNode)return-1;for(;t=t.previousElementSibling;)"TEMPLATE"===t.nodeName.toUpperCase()||t===Dk.clone||e&&!yS(t,e)||i++;return i}function OS(t){var e=0,i=0,n=ES();if(t)do{var o=LS(t),s=o.a,l=o.d;e+=t.scrollLeft*s,i+=t.scrollTop*l}while(t!==n&&(t=t.parentNode));return[e,i]}function $S(t,e){if(!t||!t.getBoundingClientRect)return ES();var i=t,n=!1;do{if(i.clientWidth<i.scrollWidth||i.clientHeight<i.scrollHeight){var o=CS(i);if(i.clientWidth<i.scrollWidth&&("auto"==o.overflowX||"scroll"==o.overflowX)||i.clientHeight<i.scrollHeight&&("auto"==o.overflowY||"scroll"==o.overflowY)){if(!i.getBoundingClientRect||i===document.body)return ES();if(n||e)return i;n=!0}}}while(i=i.parentNode);return ES()}function BS(t,e){return Math.round(t.top)===Math.round(e.top)&&Math.round(t.left)===Math.round(e.left)&&Math.round(t.height)===Math.round(e.height)&&Math.round(t.width)===Math.round(e.width)}function zS(t,e){return function(){if(!SS){var i=arguments,n=this;1===i.length?t.call(n,i[0]):t.apply(n,i),SS=setTimeout((function(){SS=void 0}),e)}}}function PS(t,e,i){t.scrollLeft+=e,t.scrollTop+=i}function DS(t){var e=window.Polymer,i=window.jQuery||window.Zepto;return e&&e.dom?e.dom(t).cloneNode(!0):i?i(t).clone(!0)[0]:t.cloneNode(!0)}function NS(t,e,i){var n={};return Array.from(t.children).forEach((function(o){var s,l,a,r;if(wS(o,e.draggable,t,!1)&&!o.animated&&o!==i){var c=qS(o);n.left=Math.min(null!==(s=n.left)&&void 0!==s?s:1/0,c.left),n.top=Math.min(null!==(l=n.top)&&void 0!==l?l:1/0,c.top),n.right=Math.max(null!==(a=n.right)&&void 0!==a?a:-1/0,c.right),n.bottom=Math.max(null!==(r=n.bottom)&&void 0!==r?r:-1/0,c.bottom)}})),n.width=n.right-n.left,n.height=n.bottom-n.top,n.x=n.left,n.y=n.top,n}var HS="Sortable"+(new Date).getTime();function jS(){var t,e=[];return{captureAnimationState:function(){(e=[],this.options.animation)&&[].slice.call(this.el.children).forEach((function(t){if("none"!==CS(t,"display")&&t!==Dk.ghost){e.push({target:t,rect:qS(t)});var i=oS({},e[e.length-1].rect);if(t.thisAnimationDuration){var n=LS(t,!0);n&&(i.top-=n.f,i.left-=n.e)}t.fromRect=i}}))},addAnimationState:function(t){e.push(t)},removeAnimationState:function(t){e.splice(function(t,e){for(var i in t)if(t.hasOwnProperty(i))for(var n in e)if(e.hasOwnProperty(n)&&e[n]===t[i][n])return Number(i);return-1}(e,{target:t}),1)},animateAll:function(i){var n=this;if(!this.options.animation)return clearTimeout(t),void("function"==typeof i&&i());var o=!1,s=0;e.forEach((function(t){var e=0,i=t.target,l=i.fromRect,a=qS(i),r=i.prevFromRect,c=i.prevToRect,u=t.rect,d=LS(i,!0);d&&(a.top-=d.f,a.left-=d.e),i.toRect=a,i.thisAnimationDuration&&BS(r,a)&&!BS(l,a)&&(u.top-a.top)/(u.left-a.left)==(l.top-a.top)/(l.left-a.left)&&(e=function(t,e,i,n){return Math.sqrt(Math.pow(e.top-t.top,2)+Math.pow(e.left-t.left,2))/Math.sqrt(Math.pow(e.top-i.top,2)+Math.pow(e.left-i.left,2))*n.animation}(u,r,c,n.options)),BS(a,l)||(i.prevFromRect=l,i.prevToRect=a,e||(e=n.options.animation),n.animate(i,u,a,e)),e&&(o=!0,s=Math.max(s,e),clearTimeout(i.animationResetTimer),i.animationResetTimer=setTimeout((function(){i.animationTime=0,i.prevFromRect=null,i.fromRect=null,i.prevToRect=null,i.thisAnimationDuration=null}),e),i.thisAnimationDuration=e)})),clearTimeout(t),o?t=setTimeout((function(){"function"==typeof i&&i()}),s):"function"==typeof i&&i(),e=[]},animate:function(t,e,i,n){if(n){CS(t,"transition",""),CS(t,"transform","");var o=LS(this.el),s=o&&o.a,l=o&&o.d,a=(e.left-i.left)/(s||1),r=(e.top-i.top)/(l||1);t.animatingX=!!a,t.animatingY=!!r,CS(t,"transform","translate3d("+a+"px,"+r+"px,0)"),this.forRepaintDummy=function(t){return t.offsetWidth}(t),CS(t,"transition","transform "+n+"ms"+(this.options.easing?" "+this.options.easing:"")),CS(t,"transform","translate3d(0,0,0)"),"number"==typeof t.animated&&clearTimeout(t.animated),t.animated=setTimeout((function(){CS(t,"transition",""),CS(t,"transform",""),t.animated=!1,t.animatingX=!1,t.animatingY=!1}),n)}}}}var FS=[],US={initializeByDefault:!0},WS={mount:function(t){for(var e in US)US.hasOwnProperty(e)&&!(e in t)&&(t[e]=US[e]);FS.forEach((function(e){if(e.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")})),FS.push(t)},pluginEvent:function(t,e,i){var n=this;this.eventCanceled=!1,i.cancel=function(){n.eventCanceled=!0};var o=t+"Global";FS.forEach((function(n){e[n.pluginName]&&(e[n.pluginName][o]&&e[n.pluginName][o](oS({sortable:e},i)),e.options[n.pluginName]&&e[n.pluginName][t]&&e[n.pluginName][t](oS({sortable:e},i)))}))},initializePlugins:function(t,e,i,n){for(var o in FS.forEach((function(n){var o=n.pluginName;if(t.options[o]||n.initializeByDefault){var s=new n(t,e,t.options);s.sortable=t,s.options=t.options,t[o]=s,aS(i,s.defaults)}})),t.options)if(t.options.hasOwnProperty(o)){var s=this.modifyOption(t,o,t.options[o]);void 0!==s&&(t.options[o]=s)}},getEventProperties:function(t,e){var i={};return FS.forEach((function(n){"function"==typeof n.eventProperties&&aS(i,n.eventProperties.call(e[n.pluginName],t))})),i},modifyOption:function(t,e,i){var n;return FS.forEach((function(o){t[o.pluginName]&&o.optionListeners&&"function"==typeof o.optionListeners[e]&&(n=o.optionListeners[e].call(t[o.pluginName],i))})),n}};var GS=["evt"],YS=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=i.evt,o=rS(i,GS);WS.pluginEvent.bind(Dk)(t,e,oS({dragEl:VS,parentEl:KS,ghostEl:ZS,rootEl:QS,nextEl:JS,lastDownEl:tk,cloneEl:ek,cloneHidden:ik,dragStarted:gk,putSortable:rk,activeSortable:Dk.active,originalEvent:n,oldIndex:nk,oldDraggableIndex:sk,newIndex:ok,newDraggableIndex:lk,hideGhostForTarget:$k,unhideGhostForTarget:Bk,cloneNowHidden:function(){ik=!0},cloneNowShown:function(){ik=!1},dispatchSortableEvent:function(t){XS({sortable:e,name:t,originalEvent:n})}},o))};function XS(t){!function(t){var e=t.sortable,i=t.rootEl,n=t.name,o=t.targetEl,s=t.cloneEl,l=t.toEl,a=t.fromEl,r=t.oldIndex,c=t.newIndex,u=t.oldDraggableIndex,d=t.newDraggableIndex,b=t.originalEvent,p=t.putSortable,h=t.extraEventProperties;if(e=e||i&&i[HS]){var g,m=e.options,f="on"+n.charAt(0).toUpperCase()+n.substr(1);!window.CustomEvent||uS||dS?(g=document.createEvent("Event")).initEvent(n,!0,!0):g=new CustomEvent(n,{bubbles:!0,cancelable:!0}),g.to=l||i,g.from=a||i,g.item=o||i,g.clone=s,g.oldIndex=r,g.newIndex=c,g.oldDraggableIndex=u,g.newDraggableIndex=d,g.originalEvent=b,g.pullMode=p?p.lastPutMode:void 0;var v=oS(oS({},h),WS.getEventProperties(n,e));for(var y in v)g[y]=v[y];i&&i.dispatchEvent(g),m[f]&&m[f].call(e,g)}}(oS({putSortable:rk,cloneEl:ek,targetEl:VS,rootEl:QS,oldIndex:nk,oldDraggableIndex:sk,newIndex:ok,newDraggableIndex:lk},t))}var VS,KS,ZS,QS,JS,tk,ek,ik,nk,ok,sk,lk,ak,rk,ck,uk,dk,bk,pk,hk,gk,mk,fk,vk,yk,xk=!1,wk=!1,Sk=[],kk=!1,_k=!1,Ck=[],Lk=!1,Ak=[],Ek="undefined"!=typeof document,qk=hS,Tk=dS||uS?"cssFloat":"float",Mk=Ek&&!gS&&!hS&&"draggable"in document.createElement("div"),Rk=function(){if(Ek){if(uS)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto","auto"===t.style.pointerEvents}}(),Ik=function(t,e){var i=CS(t),n=parseInt(i.width)-parseInt(i.paddingLeft)-parseInt(i.paddingRight)-parseInt(i.borderLeftWidth)-parseInt(i.borderRightWidth),o=MS(t,0,e),s=MS(t,1,e),l=o&&CS(o),a=s&&CS(s),r=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+qS(o).width,c=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+qS(s).width;if("flex"===i.display)return"column"===i.flexDirection||"column-reverse"===i.flexDirection?"vertical":"horizontal";if("grid"===i.display)return i.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(o&&l.float&&"none"!==l.float){var u="left"===l.float?"left":"right";return!s||"both"!==a.clear&&a.clear!==u?"horizontal":"vertical"}return o&&("block"===l.display||"flex"===l.display||"table"===l.display||"grid"===l.display||r>=n&&"none"===i[Tk]||s&&"none"===i[Tk]&&r+c>n)?"vertical":"horizontal"},Ok=function(t){function e(t,i){return function(n,o,s,l){var a=n.options.group.name&&o.options.group.name&&n.options.group.name===o.options.group.name;if(null==t&&(i||a))return!0;if(null==t||!1===t)return!1;if(i&&"clone"===t)return t;if("function"==typeof t)return e(t(n,o,s,l),i)(n,o,s,l);var r=(i?n:o).options.group.name;return!0===t||"string"==typeof t&&t===r||t.join&&t.indexOf(r)>-1}}var i={},n=t.group;n&&"object"==sS(n)||(n={name:n}),i.name=n.name,i.checkPull=e(n.pull,!0),i.checkPut=e(n.put),i.revertClone=n.revertClone,t.group=i},$k=function(){!Rk&&ZS&&CS(ZS,"display","none")},Bk=function(){!Rk&&ZS&&CS(ZS,"display","")};Ek&&!gS&&document.addEventListener("click",(function(t){if(wk)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),wk=!1,!1}),!0);var zk=function(t){if(VS){var e=function(t,e){var i;return Sk.some((function(n){var o=n[HS].options.emptyInsertThreshold;if(o&&!RS(n)){var s=qS(n),l=t>=s.left-o&&t<=s.right+o,a=e>=s.top-o&&e<=s.bottom+o;return l&&a?i=n:void 0}})),i}((t=t.touches?t.touches[0]:t).clientX,t.clientY);if(e){var i={};for(var n in t)t.hasOwnProperty(n)&&(i[n]=t[n]);i.target=i.rootEl=e,i.preventDefault=void 0,i.stopPropagation=void 0,e[HS]._onDragOver(i)}}},Pk=function(t){VS&&VS.parentNode[HS]._isOutsideThisEl(t.target)};function Dk(t,e){if(!t||!t.nodeType||1!==t.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=e=aS({},e),t[HS]=this;var i={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(t.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Ik(t,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(t,e){t.setData("Text",e.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==Dk.supportPointer&&"PointerEvent"in window&&!pS,emptyInsertThreshold:5};for(var n in WS.initializePlugins(this,t,i),i)!(n in e)&&(e[n]=i[n]);for(var o in Ok(e),this)"_"===o.charAt(0)&&"function"==typeof this[o]&&(this[o]=this[o].bind(this));this.nativeDraggable=!e.forceFallback&&Mk,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?fS(t,"pointerdown",this._onTapStart):(fS(t,"mousedown",this._onTapStart),fS(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(fS(t,"dragover",this),fS(t,"dragenter",this)),Sk.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),aS(this,jS())}function Nk(t,e,i,n,o,s,l,a){var r,c,u=t[HS],d=u.options.onMove;return!window.CustomEvent||uS||dS?(r=document.createEvent("Event")).initEvent("move",!0,!0):r=new CustomEvent("move",{bubbles:!0,cancelable:!0}),r.to=e,r.from=t,r.dragged=i,r.draggedRect=n,r.related=o||e,r.relatedRect=s||qS(e),r.willInsertAfter=a,r.originalEvent=l,t.dispatchEvent(r),d&&(c=d.call(u,r,l)),c}function Hk(t){t.draggable=!1}function jk(){Lk=!1}function Fk(t){for(var e=t.tagName+t.className+t.src+t.href+t.textContent,i=e.length,n=0;i--;)n+=e.charCodeAt(i);return n.toString(36)}function Uk(t){return setTimeout(t,0)}function Wk(t){return clearTimeout(t)}Dk.prototype={constructor:Dk,_isOutsideThisEl:function(t){this.el.contains(t)||t===this.el||(mk=null)},_getDirection:function(t,e){return"function"==typeof this.options.direction?this.options.direction.call(this,t,e,VS):this.options.direction},_onTapStart:function(t){if(t.cancelable){var e=this,i=this.el,n=this.options,o=n.preventOnFilter,s=t.type,l=t.touches&&t.touches[0]||t.pointerType&&"touch"===t.pointerType&&t,a=(l||t).target,r=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||a,c=n.filter;if(function(t){Ak.length=0;var e=t.getElementsByTagName("input"),i=e.length;for(;i--;){var n=e[i];n.checked&&Ak.push(n)}}(i),!VS&&!(/mousedown|pointerdown/.test(s)&&0!==t.button||n.disabled)&&!r.isContentEditable&&(this.nativeDraggable||!pS||!a||"SELECT"!==a.tagName.toUpperCase())&&!((a=wS(a,n.draggable,i,!1))&&a.animated||tk===a)){if(nk=IS(a),sk=IS(a,n.draggable),"function"==typeof c){if(c.call(this,t,a,this))return XS({sortable:e,rootEl:r,name:"filter",targetEl:a,toEl:i,fromEl:i}),YS("filter",e,{evt:t}),void(o&&t.cancelable&&t.preventDefault())}else if(c&&(c=c.split(",").some((function(n){if(n=wS(r,n.trim(),i,!1))return XS({sortable:e,rootEl:n,name:"filter",targetEl:a,fromEl:i,toEl:i}),YS("filter",e,{evt:t}),!0}))))return void(o&&t.cancelable&&t.preventDefault());n.handle&&!wS(r,n.handle,i,!1)||this._prepareDragStart(t,l,a)}}},_prepareDragStart:function(t,e,i){var n,o=this,s=o.el,l=o.options,a=s.ownerDocument;if(i&&!VS&&i.parentNode===s){var r=qS(i);if(QS=s,KS=(VS=i).parentNode,JS=VS.nextSibling,tk=i,ak=l.group,Dk.dragged=VS,ck={target:VS,clientX:(e||t).clientX,clientY:(e||t).clientY},pk=ck.clientX-r.left,hk=ck.clientY-r.top,this._lastX=(e||t).clientX,this._lastY=(e||t).clientY,VS.style["will-change"]="all",n=function(){YS("delayEnded",o,{evt:t}),Dk.eventCanceled?o._onDrop():(o._disableDelayedDragEvents(),!bS&&o.nativeDraggable&&(VS.draggable=!0),o._triggerDragStart(t,e),XS({sortable:o,name:"choose",originalEvent:t}),_S(VS,l.chosenClass,!0))},l.ignore.split(",").forEach((function(t){AS(VS,t.trim(),Hk)})),fS(a,"dragover",zk),fS(a,"mousemove",zk),fS(a,"touchmove",zk),fS(a,"mouseup",o._onDrop),fS(a,"touchend",o._onDrop),fS(a,"touchcancel",o._onDrop),bS&&this.nativeDraggable&&(this.options.touchStartThreshold=4,VS.draggable=!0),YS("delayStart",this,{evt:t}),!l.delay||l.delayOnTouchOnly&&!e||this.nativeDraggable&&(dS||uS))n();else{if(Dk.eventCanceled)return void this._onDrop();fS(a,"mouseup",o._disableDelayedDrag),fS(a,"touchend",o._disableDelayedDrag),fS(a,"touchcancel",o._disableDelayedDrag),fS(a,"mousemove",o._delayedDragTouchMoveHandler),fS(a,"touchmove",o._delayedDragTouchMoveHandler),l.supportPointer&&fS(a,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(n,l.delay)}}},_delayedDragTouchMoveHandler:function(t){var e=t.touches?t.touches[0]:t;Math.max(Math.abs(e.clientX-this._lastX),Math.abs(e.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){VS&&Hk(VS),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;vS(t,"mouseup",this._disableDelayedDrag),vS(t,"touchend",this._disableDelayedDrag),vS(t,"touchcancel",this._disableDelayedDrag),vS(t,"mousemove",this._delayedDragTouchMoveHandler),vS(t,"touchmove",this._delayedDragTouchMoveHandler),vS(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,e){e=e||"touch"==t.pointerType&&t,!this.nativeDraggable||e?this.options.supportPointer?fS(document,"pointermove",this._onTouchMove):fS(document,e?"touchmove":"mousemove",this._onTouchMove):(fS(VS,"dragend",this),fS(QS,"dragstart",this._onDragStart));try{document.selection?Uk((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(t){}},_dragStarted:function(t,e){if(xk=!1,QS&&VS){YS("dragStarted",this,{evt:e}),this.nativeDraggable&&fS(document,"dragover",Pk);var i=this.options;!t&&_S(VS,i.dragClass,!1),_S(VS,i.ghostClass,!0),Dk.active=this,t&&this._appendGhost(),XS({sortable:this,name:"start",originalEvent:e})}else this._nulling()},_emulateDragOver:function(){if(uk){this._lastX=uk.clientX,this._lastY=uk.clientY,$k();for(var t=document.elementFromPoint(uk.clientX,uk.clientY),e=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(uk.clientX,uk.clientY))!==e;)e=t;if(VS.parentNode[HS]._isOutsideThisEl(t),e)do{if(e[HS]){if(e[HS]._onDragOver({clientX:uk.clientX,clientY:uk.clientY,target:t,rootEl:e})&&!this.options.dragoverBubble)break}t=e}while(e=e.parentNode);Bk()}},_onTouchMove:function(t){if(ck){var e=this.options,i=e.fallbackTolerance,n=e.fallbackOffset,o=t.touches?t.touches[0]:t,s=ZS&&LS(ZS,!0),l=ZS&&s&&s.a,a=ZS&&s&&s.d,r=qk&&yk&&OS(yk),c=(o.clientX-ck.clientX+n.x)/(l||1)+(r?r[0]-Ck[0]:0)/(l||1),u=(o.clientY-ck.clientY+n.y)/(a||1)+(r?r[1]-Ck[1]:0)/(a||1);if(!Dk.active&&!xk){if(i&&Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))<i)return;this._onDragStart(t,!0)}if(ZS){s?(s.e+=c-(dk||0),s.f+=u-(bk||0)):s={a:1,b:0,c:0,d:1,e:c,f:u};var d="matrix(".concat(s.a,",").concat(s.b,",").concat(s.c,",").concat(s.d,",").concat(s.e,",").concat(s.f,")");CS(ZS,"webkitTransform",d),CS(ZS,"mozTransform",d),CS(ZS,"msTransform",d),CS(ZS,"transform",d),dk=c,bk=u,uk=o}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!ZS){var t=this.options.fallbackOnBody?document.body:QS,e=qS(VS,!0,qk,!0,t),i=this.options;if(qk){for(yk=t;"static"===CS(yk,"position")&&"none"===CS(yk,"transform")&&yk!==document;)yk=yk.parentNode;yk!==document.body&&yk!==document.documentElement?(yk===document&&(yk=ES()),e.top+=yk.scrollTop,e.left+=yk.scrollLeft):yk=ES(),Ck=OS(yk)}_S(ZS=VS.cloneNode(!0),i.ghostClass,!1),_S(ZS,i.fallbackClass,!0),_S(ZS,i.dragClass,!0),CS(ZS,"transition",""),CS(ZS,"transform",""),CS(ZS,"box-sizing","border-box"),CS(ZS,"margin",0),CS(ZS,"top",e.top),CS(ZS,"left",e.left),CS(ZS,"width",e.width),CS(ZS,"height",e.height),CS(ZS,"opacity","0.8"),CS(ZS,"position",qk?"absolute":"fixed"),CS(ZS,"zIndex","100000"),CS(ZS,"pointerEvents","none"),Dk.ghost=ZS,t.appendChild(ZS),CS(ZS,"transform-origin",pk/parseInt(ZS.style.width)*100+"% "+hk/parseInt(ZS.style.height)*100+"%")}},_onDragStart:function(t,e){var i=this,n=t.dataTransfer,o=i.options;YS("dragStart",this,{evt:t}),Dk.eventCanceled?this._onDrop():(YS("setupClone",this),Dk.eventCanceled||((ek=DS(VS)).removeAttribute("id"),ek.draggable=!1,ek.style["will-change"]="",this._hideClone(),_S(ek,this.options.chosenClass,!1),Dk.clone=ek),i.cloneId=Uk((function(){YS("clone",i),Dk.eventCanceled||(i.options.removeCloneOnHide||QS.insertBefore(ek,VS),i._hideClone(),XS({sortable:i,name:"clone"}))})),!e&&_S(VS,o.dragClass,!0),e?(wk=!0,i._loopId=setInterval(i._emulateDragOver,50)):(vS(document,"mouseup",i._onDrop),vS(document,"touchend",i._onDrop),vS(document,"touchcancel",i._onDrop),n&&(n.effectAllowed="move",o.setData&&o.setData.call(i,n,VS)),fS(document,"drop",i),CS(VS,"transform","translateZ(0)")),xk=!0,i._dragStartId=Uk(i._dragStarted.bind(i,e,t)),fS(document,"selectstart",i),gk=!0,pS&&CS(document.body,"user-select","none"))},_onDragOver:function(t){var e,i,n,o,s=this.el,l=t.target,a=this.options,r=a.group,c=Dk.active,u=ak===r,d=a.sort,b=rk||c,p=this,h=!1;if(!Lk){if(void 0!==t.preventDefault&&t.cancelable&&t.preventDefault(),l=wS(l,a.draggable,s,!0),q("dragOver"),Dk.eventCanceled)return h;if(VS.contains(t.target)||l.animated&&l.animatingX&&l.animatingY||p._ignoreWhileAnimating===l)return M(!1);if(wk=!1,c&&!a.disabled&&(u?d||(n=KS!==QS):rk===this||(this.lastPutMode=ak.checkPull(this,c,VS,t))&&r.checkPut(this,c,VS,t))){if(o="vertical"===this._getDirection(t,l),e=qS(VS),q("dragOverValid"),Dk.eventCanceled)return h;if(n)return KS=QS,T(),this._hideClone(),q("revert"),Dk.eventCanceled||(JS?QS.insertBefore(VS,JS):QS.appendChild(VS)),M(!0);var g=RS(s,a.draggable);if(!g||function(t,e,i){var n=qS(RS(i.el,i.options.draggable)),o=NS(i.el,i.options,ZS),s=10;return e?t.clientX>o.right+s||t.clientY>n.bottom&&t.clientX>n.left:t.clientY>o.bottom+s||t.clientX>n.right&&t.clientY>n.top}(t,o,this)&&!g.animated){if(g===VS)return M(!1);if(g&&s===t.target&&(l=g),l&&(i=qS(l)),!1!==Nk(QS,s,VS,e,l,i,t,!!l))return T(),g&&g.nextSibling?s.insertBefore(VS,g.nextSibling):s.appendChild(VS),KS=s,R(),M(!0)}else if(g&&function(t,e,i){var n=qS(MS(i.el,0,i.options,!0)),o=NS(i.el,i.options,ZS),s=10;return e?t.clientX<o.left-s||t.clientY<n.top&&t.clientX<n.right:t.clientY<o.top-s||t.clientY<n.bottom&&t.clientX<n.left}(t,o,this)){var m=MS(s,0,a,!0);if(m===VS)return M(!1);if(i=qS(l=m),!1!==Nk(QS,s,VS,e,l,i,t,!1))return T(),s.insertBefore(VS,m),KS=s,R(),M(!0)}else if(l.parentNode===s){i=qS(l);var f,v,y,x=VS.parentNode!==s,w=!function(t,e,i){var n=i?t.left:t.top,o=i?t.right:t.bottom,s=i?t.width:t.height,l=i?e.left:e.top,a=i?e.right:e.bottom,r=i?e.width:e.height;return n===l||o===a||n+s/2===l+r/2}(VS.animated&&VS.toRect||e,l.animated&&l.toRect||i,o),S=o?"top":"left",k=TS(l,"top","top")||TS(VS,"top","top"),_=k?k.scrollTop:void 0;if(mk!==l&&(v=i[S],kk=!1,_k=!w&&a.invertSwap||x),f=function(t,e,i,n,o,s,l,a){var r=n?t.clientY:t.clientX,c=n?i.height:i.width,u=n?i.top:i.left,d=n?i.bottom:i.right,b=!1;if(!l)if(a&&vk<c*o){if(!kk&&(1===fk?r>u+c*s/2:r<d-c*s/2)&&(kk=!0),kk)b=!0;else if(1===fk?r<u+vk:r>d-vk)return-fk}else if(r>u+c*(1-o)/2&&r<d-c*(1-o)/2)return function(t){return IS(VS)<IS(t)?1:-1}(e);if((b=b||l)&&(r<u+c*s/2||r>d-c*s/2))return r>u+c/2?1:-1;return 0}(t,l,i,o,w?1:a.swapThreshold,null==a.invertedSwapThreshold?a.swapThreshold:a.invertedSwapThreshold,_k,mk===l),0!==f){var C=IS(VS);do{C-=f,y=KS.children[C]}while(y&&("none"===CS(y,"display")||y===ZS))}if(0===f||y===l)return M(!1);mk=l,fk=f;var L=l.nextElementSibling,A=!1,E=Nk(QS,s,VS,e,l,i,t,A=1===f);if(!1!==E)return 1!==E&&-1!==E||(A=1===E),Lk=!0,setTimeout(jk,30),T(),A&&!L?s.appendChild(VS):l.parentNode.insertBefore(VS,A?L:l),k&&PS(k,0,_-k.scrollTop),KS=VS.parentNode,void 0===v||_k||(vk=Math.abs(v-qS(l)[S])),R(),M(!0)}if(s.contains(VS))return M(!1)}return!1}function q(a,r){YS(a,p,oS({evt:t,isOwner:u,axis:o?"vertical":"horizontal",revert:n,dragRect:e,targetRect:i,canSort:d,fromSortable:b,target:l,completed:M,onMove:function(i,n){return Nk(QS,s,VS,e,i,qS(i),t,n)},changed:R},r))}function T(){q("dragOverAnimationCapture"),p.captureAnimationState(),p!==b&&b.captureAnimationState()}function M(e){return q("dragOverCompleted",{insertion:e}),e&&(u?c._hideClone():c._showClone(p),p!==b&&(_S(VS,rk?rk.options.ghostClass:c.options.ghostClass,!1),_S(VS,a.ghostClass,!0)),rk!==p&&p!==Dk.active?rk=p:p===Dk.active&&rk&&(rk=null),b===p&&(p._ignoreWhileAnimating=l),p.animateAll((function(){q("dragOverAnimationComplete"),p._ignoreWhileAnimating=null})),p!==b&&(b.animateAll(),b._ignoreWhileAnimating=null)),(l===VS&&!VS.animated||l===s&&!l.animated)&&(mk=null),a.dragoverBubble||t.rootEl||l===document||(VS.parentNode[HS]._isOutsideThisEl(t.target),!e&&zk(t)),!a.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),h=!0}function R(){ok=IS(VS),lk=IS(VS,a.draggable),XS({sortable:p,name:"change",toEl:s,newIndex:ok,newDraggableIndex:lk,originalEvent:t})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){vS(document,"mousemove",this._onTouchMove),vS(document,"touchmove",this._onTouchMove),vS(document,"pointermove",this._onTouchMove),vS(document,"dragover",zk),vS(document,"mousemove",zk),vS(document,"touchmove",zk)},_offUpEvents:function(){var t=this.el.ownerDocument;vS(t,"mouseup",this._onDrop),vS(t,"touchend",this._onDrop),vS(t,"pointerup",this._onDrop),vS(t,"touchcancel",this._onDrop),vS(document,"selectstart",this)},_onDrop:function(t){var e=this.el,i=this.options;ok=IS(VS),lk=IS(VS,i.draggable),YS("drop",this,{evt:t}),KS=VS&&VS.parentNode,ok=IS(VS),lk=IS(VS,i.draggable),Dk.eventCanceled||(xk=!1,_k=!1,kk=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Wk(this.cloneId),Wk(this._dragStartId),this.nativeDraggable&&(vS(document,"drop",this),vS(e,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),pS&&CS(document.body,"user-select",""),CS(VS,"transform",""),t&&(gk&&(t.cancelable&&t.preventDefault(),!i.dropBubble&&t.stopPropagation()),ZS&&ZS.parentNode&&ZS.parentNode.removeChild(ZS),(QS===KS||rk&&"clone"!==rk.lastPutMode)&&ek&&ek.parentNode&&ek.parentNode.removeChild(ek),VS&&(this.nativeDraggable&&vS(VS,"dragend",this),Hk(VS),VS.style["will-change"]="",gk&&!xk&&_S(VS,rk?rk.options.ghostClass:this.options.ghostClass,!1),_S(VS,this.options.chosenClass,!1),XS({sortable:this,name:"unchoose",toEl:KS,newIndex:null,newDraggableIndex:null,originalEvent:t}),QS!==KS?(ok>=0&&(XS({rootEl:KS,name:"add",toEl:KS,fromEl:QS,originalEvent:t}),XS({sortable:this,name:"remove",toEl:KS,originalEvent:t}),XS({rootEl:KS,name:"sort",toEl:KS,fromEl:QS,originalEvent:t}),XS({sortable:this,name:"sort",toEl:KS,originalEvent:t})),rk&&rk.save()):ok!==nk&&ok>=0&&(XS({sortable:this,name:"update",toEl:KS,originalEvent:t}),XS({sortable:this,name:"sort",toEl:KS,originalEvent:t})),Dk.active&&(null!=ok&&-1!==ok||(ok=nk,lk=sk),XS({sortable:this,name:"end",toEl:KS,originalEvent:t}),this.save())))),this._nulling()},_nulling:function(){YS("nulling",this),QS=VS=KS=ZS=JS=ek=tk=ik=ck=uk=gk=ok=lk=nk=sk=mk=fk=rk=ak=Dk.dragged=Dk.ghost=Dk.clone=Dk.active=null,Ak.forEach((function(t){t.checked=!0})),Ak.length=dk=bk=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":VS&&(this._onDragOver(t),function(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move");t.cancelable&&t.preventDefault()}(t));break;case"selectstart":t.preventDefault()}},toArray:function(){for(var t,e=[],i=this.el.children,n=0,o=i.length,s=this.options;n<o;n++)wS(t=i[n],s.draggable,this.el,!1)&&e.push(t.getAttribute(s.dataIdAttr)||Fk(t));return e},sort:function(t,e){var i={},n=this.el;this.toArray().forEach((function(t,e){var o=n.children[e];wS(o,this.options.draggable,n,!1)&&(i[t]=o)}),this),e&&this.captureAnimationState(),t.forEach((function(t){i[t]&&(n.removeChild(i[t]),n.appendChild(i[t]))})),e&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,e){return wS(t,e||this.options.draggable,this.el,!1)},option:function(t,e){var i=this.options;if(void 0===e)return i[t];var n=WS.modifyOption(this,t,e);i[t]=void 0!==n?n:e,"group"===t&&Ok(i)},destroy:function(){YS("destroy",this);var t=this.el;t[HS]=null,vS(t,"mousedown",this._onTapStart),vS(t,"touchstart",this._onTapStart),vS(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(vS(t,"dragover",this),vS(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),(function(t){t.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),Sk.splice(Sk.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!ik){if(YS("hideClone",this),Dk.eventCanceled)return;CS(ek,"display","none"),this.options.removeCloneOnHide&&ek.parentNode&&ek.parentNode.removeChild(ek),ik=!0}},_showClone:function(t){if("clone"===t.lastPutMode){if(ik){if(YS("showClone",this),Dk.eventCanceled)return;VS.parentNode!=QS||this.options.group.revertClone?JS?QS.insertBefore(ek,JS):QS.appendChild(ek):QS.insertBefore(ek,VS),this.options.group.revertClone&&this.animate(VS,ek),CS(ek,"display",""),ik=!1}}else this._hideClone()}},Ek&&fS(document,"touchmove",(function(t){(Dk.active||xk)&&t.cancelable&&t.preventDefault()})),Dk.utils={on:fS,off:vS,css:CS,find:AS,is:function(t,e){return!!wS(t,e,t,!1)},extend:function(t,e){if(t&&e)for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t},throttle:zS,closest:wS,toggleClass:_S,clone:DS,index:IS,nextTick:Uk,cancelNextTick:Wk,detectDirection:Ik,getChild:MS},Dk.get=function(t){return t[HS]},Dk.mount=function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];e[0].constructor===Array&&(e=e[0]),e.forEach((function(t){if(!t.prototype||!t.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(t));t.utils&&(Dk.utils=oS(oS({},Dk.utils),t.utils)),WS.mount(t)}))},Dk.create=function(t,e){return new Dk(t,e)},Dk.version="1.15.2";var Gk,Yk,Xk,Vk,Kk,Zk,Qk=[],Jk=!1;function t_(){Qk.forEach((function(t){clearInterval(t.pid)})),Qk=[]}function e_(){clearInterval(Zk)}var i_=zS((function(t,e,i,n){if(e.scroll){var o,s=(t.touches?t.touches[0]:t).clientX,l=(t.touches?t.touches[0]:t).clientY,a=e.scrollSensitivity,r=e.scrollSpeed,c=ES(),u=!1;Yk!==i&&(Yk=i,t_(),Gk=e.scroll,o=e.scrollFn,!0===Gk&&(Gk=$S(i,!0)));var d=0,b=Gk;do{var p=b,h=qS(p),g=h.top,m=h.bottom,f=h.left,v=h.right,y=h.width,x=h.height,w=void 0,S=void 0,k=p.scrollWidth,_=p.scrollHeight,C=CS(p),L=p.scrollLeft,A=p.scrollTop;p===c?(w=y<k&&("auto"===C.overflowX||"scroll"===C.overflowX||"visible"===C.overflowX),S=x<_&&("auto"===C.overflowY||"scroll"===C.overflowY||"visible"===C.overflowY)):(w=y<k&&("auto"===C.overflowX||"scroll"===C.overflowX),S=x<_&&("auto"===C.overflowY||"scroll"===C.overflowY));var E=w&&(Math.abs(v-s)<=a&&L+y<k)-(Math.abs(f-s)<=a&&!!L),q=S&&(Math.abs(m-l)<=a&&A+x<_)-(Math.abs(g-l)<=a&&!!A);if(!Qk[d])for(var T=0;T<=d;T++)Qk[T]||(Qk[T]={});Qk[d].vx==E&&Qk[d].vy==q&&Qk[d].el===p||(Qk[d].el=p,Qk[d].vx=E,Qk[d].vy=q,clearInterval(Qk[d].pid),0==E&&0==q||(u=!0,Qk[d].pid=setInterval(function(){n&&0===this.layer&&Dk.active._onTouchMove(Kk);var e=Qk[this.layer].vy?Qk[this.layer].vy*r:0,i=Qk[this.layer].vx?Qk[this.layer].vx*r:0;"function"==typeof o&&"continue"!==o.call(Dk.dragged.parentNode[HS],i,e,t,Kk,Qk[this.layer].el)||PS(Qk[this.layer].el,i,e)}.bind({layer:d}),24))),d++}while(e.bubbleScroll&&b!==c&&(b=$S(b,!1)));Jk=u}}),30),n_=function(t){var e=t.originalEvent,i=t.putSortable,n=t.dragEl,o=t.activeSortable,s=t.dispatchSortableEvent,l=t.hideGhostForTarget,a=t.unhideGhostForTarget;if(e){var r=i||o;l();var c=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e,u=document.elementFromPoint(c.clientX,c.clientY);a(),r&&!r.el.contains(u)&&(s("spill"),this.onSpill({dragEl:n,putSortable:i}))}};function o_(){}function s_(){}o_.prototype={startIndex:null,dragStart:function(t){var e=t.oldDraggableIndex;this.startIndex=e},onSpill:function(t){var e=t.dragEl,i=t.putSortable;this.sortable.captureAnimationState(),i&&i.captureAnimationState();var n=MS(this.sortable.el,this.startIndex,this.options);n?this.sortable.el.insertBefore(e,n):this.sortable.el.appendChild(e),this.sortable.animateAll(),i&&i.animateAll()},drop:n_},aS(o_,{pluginName:"revertOnSpill"}),s_.prototype={onSpill:function(t){var e=t.dragEl,i=t.putSortable||this.sortable;i.captureAnimationState(),e.parentNode&&e.parentNode.removeChild(e),i.animateAll()},drop:n_},aS(s_,{pluginName:"removeOnSpill"}),Dk.mount(new function(){function t(){for(var t in this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===t.charAt(0)&&"function"==typeof this[t]&&(this[t]=this[t].bind(this))}return t.prototype={dragStarted:function(t){var e=t.originalEvent;this.sortable.nativeDraggable?fS(document,"dragover",this._handleAutoScroll):this.options.supportPointer?fS(document,"pointermove",this._handleFallbackAutoScroll):e.touches?fS(document,"touchmove",this._handleFallbackAutoScroll):fS(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(t){var e=t.originalEvent;this.options.dragOverBubble||e.rootEl||this._handleAutoScroll(e)},drop:function(){this.sortable.nativeDraggable?vS(document,"dragover",this._handleAutoScroll):(vS(document,"pointermove",this._handleFallbackAutoScroll),vS(document,"touchmove",this._handleFallbackAutoScroll),vS(document,"mousemove",this._handleFallbackAutoScroll)),e_(),t_(),clearTimeout(SS),SS=void 0},nulling:function(){Kk=Yk=Gk=Jk=Zk=Xk=Vk=null,Qk.length=0},_handleFallbackAutoScroll:function(t){this._handleAutoScroll(t,!0)},_handleAutoScroll:function(t,e){var i=this,n=(t.touches?t.touches[0]:t).clientX,o=(t.touches?t.touches[0]:t).clientY,s=document.elementFromPoint(n,o);if(Kk=t,e||this.options.forceAutoScrollFallback||dS||uS||pS){i_(t,this.options,s,e);var l=$S(s,!0);!Jk||Zk&&n===Xk&&o===Vk||(Zk&&e_(),Zk=setInterval((function(){var s=$S(document.elementFromPoint(n,o),!0);s!==l&&(l=s,t_()),i_(t,i.options,s,e)}),10),Xk=n,Vk=o)}else{if(!this.options.bubbleScroll||$S(s,!0)===ES())return void t_();i_(t,this.options,$S(s,!1),!1)}}},aS(t,{pluginName:"scroll",initializeByDefault:!0})}),Dk.mount(s_,o_);class l_{constructor(t={}){if(!t.iframe)throw new Error("IframeDragDrop: iframe element is required");if(!t.dropZoneSelector)throw new Error("IframeDragDrop: dropZoneSelector is required");this.config={iframe:t.iframe,draggableSelector:t.draggableSelector||"[data-drag-id]",dropZoneSelector:t.dropZoneSelector,dragThreshold:t.dragThreshold||5,ghostClass:t.ghostClass||"idd-ghost",dragOverClass:t.dragOverClass||"idd-drag-over",dropIndicatorClass:t.dropIndicatorClass||"idd-drop-indicator",itemClass:t.itemClass||"idd-item",ghostTemplate:t.ghostTemplate||null,zIndex:t.zIndex||1e4},this.blocks=new Map,this.state={isDragging:!1,currentDragId:null,currentDragData:null,startX:0,startY:0,ghostElement:null,overlay:null},this.callbacks={onDragStart:t.onDragStart||null,onDragMove:t.onDragMove||null,onDragEnd:t.onDragEnd||null,onDrop:t.onDrop||null,onDragCancel:t.onDragCancel||null,onValidate:t.onValidate||null},this._onPointerDown=this._onPointerDown.bind(this),this._onPointerMove=this._onPointerMove.bind(this),this._onPointerUp=this._onPointerUp.bind(this),this._init()}_init(){this._createGhostElement(),this._createOverlay(),this._injectIframeStyles(),this._bindDraggables()}_getScale(){const t=this.config.iframe,e=t.getBoundingClientRect().width,i=t.offsetWidth;return i>0?e/i:1}registerBlock(t,e){if(!e.html)throw new Error(`IframeDragDrop: Block ${t} must have html property`);return this.blocks.set(t,{id:t,html:e.html,data:e.data||{},...e}),this}registerBlocks(t){return Object.entries(t).forEach((([t,e])=>{this.registerBlock(t,e)})),this}getBlock(t){return this.blocks.get(t)||this.blocks.get(String(t))||this.blocks.get(Number(t))}_createGhostElement(){const t=document.createElement("div");t.className=this.config.ghostClass,t.style.cssText=`\n position: fixed;\n pointer-events: none;\n z-index: ${this.config.zIndex};\n opacity: 0.9;\n transform: translate(-50%, -50%) rotate(2deg);\n width: 190px;\n height: 50px;\n background: #f3f3f3;\n color: #fff;\n border-radius: 8px;\n display: none;\n white-space: nowrap;\n `,document.body.appendChild(t),this.state.ghostElement=t}_createOverlay(){const t=this.config.iframe.parentElement;"static"===window.getComputedStyle(t).position&&(t.style.position="relative");const e=document.createElement("div");e.className="idd-overlay",e.style.cssText=`\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n pointer-events: none;\n z-index: ${this.config.zIndex-1};\n `,t.appendChild(e),this.state.overlay=e,e.addEventListener("touchmove",this._onPointerMove,{passive:!1}),e.addEventListener("touchend",this._onPointerUp),e.addEventListener("touchcancel",this._onPointerUp),e.addEventListener("mousemove",this._onPointerMove),e.addEventListener("mouseup",this._onPointerUp)}_injectIframeStyles(){const t=()=>{const t=this._getIframeDocument();if(!t)return;if(t.getElementById("idd-styles"))return;const e=t.createElement("style");e.id="idd-styles",e.textContent=`\n /*.${this.config.dragOverClass} {\n outline: 2px dashed #00da89 !important;\n outline-offset: -2px;\n }*/\n .box-canvas.${this.config.dragOverClass} {\n outline: 4px dashed #ff9fda !important;\n outline-offset: -4px;\n background: #fffcfe !important;\n }\n .${this.config.dropIndicatorClass} { \n width: 100%;\n height: 8px;\n background: rgb(233, 233, 233);\n border-radius: 2px;\n margin: 0;\n pointer-events: none;\n opacity: 0.7;\n animation: iddExpand 0.15s ease-out forwards;\n }\n .box-canvas .${this.config.dropIndicatorClass} {\n background: transparent;\n opacity: 0;\n }\n @keyframes iddPulse {\n from { opacity: 0.5; }\n to { opacity: 1; }\n }\n @keyframes iddExpand {\n from { height: 0; }\n to { height: 8px; }\n }\n .${this.config.itemClass} {\n position: relative;\n transition: transform 0.15s ease, box-shadow 0.15s ease;\n }\n .${this.config.itemClass}:hover {\n outline: 2px solid #00da89;\n outline-offset: 2px;\n }\n `,t.head.appendChild(e)};t(),this.config.iframe.addEventListener("load",t)}_bindDraggables(){document.addEventListener("mousedown",this._onPointerDown),document.addEventListener("touchstart",this._onPointerDown,{passive:!1}),document.addEventListener("mousemove",this._onPointerMove),document.addEventListener("mouseup",this._onPointerUp),document.addEventListener("touchmove",this._onPointerMove,{passive:!1}),document.addEventListener("touchend",this._onPointerUp),document.addEventListener("touchcancel",this._onPointerUp)}_getPointerPosition(t){return t.touches&&t.touches.length>0?{x:t.touches[0].clientX,y:t.touches[0].clientY}:t.changedTouches&&t.changedTouches.length>0?{x:t.changedTouches[0].clientX,y:t.changedTouches[0].clientY}:{x:t.clientX,y:t.clientY}}_getIframeDocument(){try{return this.config.iframe.contentDocument||this.config.iframe.contentWindow.document}catch(t){return console.error("IframeDragDrop: Cannot access iframe document. Ensure same-origin policy."),null}}_getDropZone(){const t=this._getIframeDocument();return t?t.querySelector(this.config.dropZoneSelector):null}_onPointerDown(t){const e=t.target.closest(this.config.draggableSelector);if(!e)return;"touchstart"===t.type&&t.preventDefault();const i=this._getPointerPosition(t),n=e.dataset.dragId,o=this.getBlock(n);this.state.startX=i.x,this.state.startY=i.y,this.state.currentDragId=n,this.state.currentDragData={element:e,block:o,dragId:n},this.config.ghostTemplate?this.state.ghostElement.innerHTML=this.config.ghostTemplate(o,e):this.state.ghostElement.textContent=e.textContent.trim()}_onPointerMove(t){if(!this.state.currentDragId)return;"touchmove"===t.type&&t.preventDefault();const e=this._getPointerPosition(t);if(!this.state.isDragging){if(!(Math.sqrt(Math.pow(e.x-this.state.startX,2)+Math.pow(e.y-this.state.startY,2))>this.config.dragThreshold))return;this._startDrag()}this.state.ghostElement.style.left=e.x+"px",this.state.ghostElement.style.top=e.y+"px";const i=this.config.iframe.getBoundingClientRect(),n=e.x>=i.left&&e.x<=i.right&&e.y>=i.top&&e.y<=i.bottom;if(n){const t=this._getScale(),n=(e.x-i.left)/t,o=(e.y-i.top)/t;this._handleDragOverIframe(n,o)}else this._handleDragLeaveIframe();this.callbacks.onDragMove&&this.callbacks.onDragMove({position:e,isOverIframe:n,dragData:this.state.currentDragData})}_startDrag(){this.state.isDragging=!0,this.state.ghostElement.style.display="block",this.state.overlay.style.pointerEvents="auto",document.body.style.userSelect="none",document.body.style.webkitUserSelect="none",this.callbacks.onDragStart&&this.callbacks.onDragStart({dragData:this.state.currentDragData})}_findDropZoneAtPoint(t,e){const i=this._getIframeDocument();if(!i)return null;const n=i.querySelectorAll(this.config.dropZoneSelector);let o=null;for(const i of n){const n=i.getBoundingClientRect();t>=n.left&&t<=n.right&&e>=n.top&&e<=n.bottom&&(o&&!1!==i.contains(o)||(o=i))}return o}_handleDragOverIframe(t,e){const i=this._getIframeDocument();if(!i)return;const n=this._findDropZoneAtPoint(t,e);if(!n)return void this._handleDragLeaveIframe();i.querySelectorAll(this.config.dropZoneSelector).forEach((t=>{t!==n&&t.classList.remove(this.config.dragOverClass)})),n.classList.add(this.config.dragOverClass);let o=null;const s=n.classList.contains("is-wrapper")?n.querySelectorAll(":scope > .is-section"):n.children;for(const t of s){if(t.classList.contains(this.config.dropIndicatorClass))continue;const i=t.getBoundingClientRect();if(e<i.top+i.height/2){o=t;break}}let l=i.querySelector(`.${this.config.dropIndicatorClass}`);if(l){const t=l.parentElement,e=l.nextElementSibling,i=o?e===o:null===e;t===n&&i||(o?n.insertBefore(l,o):n.appendChild(l))}else l=i.createElement("div"),l.className=this.config.dropIndicatorClass,l.style.height="0",o?n.insertBefore(l,o):n.appendChild(l),requestAnimationFrame((()=>{l.style.transition="height 0.15s ease-out",l.style.height="20px"}))}_handleDragLeaveIframe(){const t=this._getIframeDocument();if(!t)return;t.querySelectorAll(this.config.dropZoneSelector).forEach((t=>{t.classList.remove(this.config.dragOverClass)}));const e=t.querySelector(`.${this.config.dropIndicatorClass}`);e&&e.remove()}_onPointerUp(t){if(!this.state.currentDragId)return;const e=this.state.isDragging,i=this._getPointerPosition(t);if(e){const t=this.config.iframe.getBoundingClientRect();if(i.x>=t.left&&i.x<=t.right&&i.y>=t.top&&i.y<=t.bottom){const e=this._getScale(),n=(i.x-t.left)/e,o=(i.y-t.top)/e;this._handleDrop(n,o)}else this._handleCancel()}this._resetState()}_handleDrop(t,e){const i=this._getIframeDocument();if(!i)return;const n=this.state.currentDragData.block;if(!n)return console.warn("IframeDragDrop: No block found for dragId:",this.state.currentDragId),void this._handleDragLeaveIframe();const o=i.querySelector(`.${this.config.dropIndicatorClass}`);if(!o)return void this._handleDragLeaveIframe();const s=o.parentElement;let l,a=i.createRange(),r=n.html.trim(),c=o.closest(".is-builder");if(this.callbacks.onValidate&&(r=this.callbacks.onValidate({block:n,builder:c,html:r,dropTarget:s})),s.classList.contains("is-wrapper")){const t=`\n <div class="is-section is-box is-section-100 box-autofit type-system-ui">\n <div class="is-container is-content-760 v2 v3 size-17 leading-13">\n ${r}\n </div>\n </div>\n `;l=a.createContextualFragment(t).firstElementChild}else{const t=a.createContextualFragment(r);l=t.firstElementChild||t}o.replaceWith(l);i.querySelectorAll(this.config.dropZoneSelector).forEach((t=>{t.classList.remove(this.config.dragOverClass)}));i.querySelectorAll(`.${this.config.dropIndicatorClass}`).forEach((t=>t.remove())),this.callbacks.onDrop&&this.callbacks.onDrop({block:n,element:l,dropZone:s,position:{x:t,y:e},dragData:this.state.currentDragData})}_handleCancel(){this._handleDragLeaveIframe(),this.callbacks.onDragCancel&&this.callbacks.onDragCancel({dragData:this.state.currentDragData})}_resetState(){this.state.isDragging=!1,this.state.currentDragId=null,this.state.currentDragData=null,this.state.ghostElement.style.display="none",this.state.overlay.style.pointerEvents="none",document.body.style.userSelect="",document.body.style.webkitUserSelect="";const t=this._getIframeDocument();if(t){const e=t.querySelector(`.${this.config.dropIndicatorClass}`);e&&e.remove()}this.callbacks.onDragEnd&&this.callbacks.onDragEnd()}refresh(){return this._injectIframeStyles(),this}getItems(){const t=this._getDropZone();if(!t)return[];const e=t.querySelectorAll(`:scope > .${this.config.itemClass}`);return Array.from(e).map(((t,e)=>({index:e,blockId:t.dataset.blockId,element:t,html:t.outerHTML})))}getContent(){const t=this._getDropZone();return t?t.innerHTML:""}clearContent(){const t=this._getDropZone();if(!t)return this;return t.querySelectorAll(`:scope > .${this.config.itemClass}`).forEach((t=>t.remove())),this}insertBlock(t,e=-1){const i=this.getBlock(t);if(!i)return console.error("IframeDragDrop: Block not found:",t),this;const n=this._getDropZone(),o=this._getIframeDocument();if(!n||!o)return this;const s=o.createElement("div");s.innerHTML=i.html.trim();const l=s.firstElementChild||s;l.classList.add(this.config.itemClass),l.dataset.blockId=i.id;const a=n.querySelectorAll(`:scope > .${this.config.itemClass}`);return-1===e||e>=a.length?n.appendChild(l):n.insertBefore(l,a[e]),this}removeItem(t){const e=this._getDropZone();if(!e)return this;const i=e.querySelectorAll(`:scope > .${this.config.itemClass}`);return i[t]&&i[t].remove(),this}destroy(){document.removeEventListener("mousedown",this._onPointerDown),document.removeEventListener("touchstart",this._onPointerDown),document.removeEventListener("mousemove",this._onPointerMove),document.removeEventListener("mouseup",this._onPointerUp),document.removeEventListener("touchmove",this._onPointerMove),document.removeEventListener("touchend",this._onPointerUp),document.removeEventListener("touchcancel",this._onPointerUp),this.state.ghostElement&&this.state.ghostElement.remove(),this.state.overlay&&this.state.overlay.remove(),this.blocks.clear(),this.state={},this.callbacks={}}}const a_=new t;return class{constructor(t={}){const i={iframeDragDrop:!1,wrapper:".is-wrapper",siteToken:"",previewURL:"preview.html",autoOpenPanel:!1,openPanelOnStart:!1,useSidebar:!0,disableLoadingStatus:!1,sidebarData:{buttons:[{name:"section",title:"Sections"},{name:"snippet",title:"Blocks"},{name:"typography",title:"Typography"},{name:"code",title:"HTML"}]},htmlSyntaxHighlighting:!0,enableContentStyle:!0,disableStaticSection:!1,framework:"",imageRenameOnEdit:!0,imageResizeOnBlock:!1,iframeCentered:!0,htmlButton:!0,undoRedoButtons:!0,toggleDeviceButton:!0,deviceButtons:!0,simpleEditingBreakpoint:"970px",canvas:!0,blankHtml:"",shiftDisableBreakpoint:0,lang:[],contentExcludeSelectors:["[data-top-locked]","[data-bottom-locked]"],topLockedSelectors:["[data-top-locked]"],bottomLockedSelectors:["[data-bottom-locked]"],designUrl1:"assets/designs/basic.js",designUrl2:"assets/designs/examples.js",designPath:"assets/designs/",designPathReplace:[],defaultDesignCategory:5,templates:[{url:"assets/templates-simple/templates.js",path:"assets/templates-simple/",pathReplace:[],numbering:!0,showNumberOnHover:!0},{url:"assets/templates-quick/templates.js",path:"assets/templates-quick/",pathReplace:[],numbering:!0,showNumberOnHover:!0},{url:"assets/templates-animated/templates.js",path:"assets/templates-animated/",pathReplace:[],numbering:!0,showNumberOnHover:!0}],featuredCategories:[{id:1,designId:1,name:"Basic"},{id:1,designId:2,name:"Hero"},{id:2,designId:1,name:"Slider"},{id:2,designId:2,name:"Article"},{id:3,designId:2,name:"Photos"}],defaultCategory:{id:1,designId:1},templateThumbnailSize:"",scriptPath:"",snippetUrl:"assets/minimalist-blocks/content.js",snippetPath:"assets/minimalist-blocks/",snippetPathReplace:[],assetPath:"assets/",modulePath:"assets/modules/",contentStylePath:"assets/styles/",pluginPath:"contentbuilder/",fontAssetPath:"assets/fonts/",disableBootstrapIcons:!1,plugins:[],disableConfig:!0,maxColumns:6,useLightbox:!0,lightboxArrow:!0,backgroundColor:"transparent",imageselect:"",fileselect:"",imageSelect:"",fileSelect:"",videoselect:"",videoSelect:"",audioSelect:"",mediaSelect:"",filePickerSize:"medium",selectIcon:'<svg class="is-icon-flex" style="width:16px;height:16px;"><use xlink:href="#icon-folder"></use></svg>',otherSelect:"",otherSelectCaption:"Select Document",otherSelectIcon:'<svg class="is-icon-flex" style="width:16px;height:16px;"><use xlink:href="#icon-list-search"></use></svg>',imageSelectWidth:"88vw",imageSelectHeight:"88vh",fileSelectWidth:"88vw",fileSelectHeight:"88vh",videoSelectWidth:"88vw",videoSelectHeight:"88vh",audioSelectWidth:"88vw",audioSelectHeight:"88vh",mediaSelectWidth:"88vw",mediaSelectHeight:"88vh",otherSelectWidth:"88vw",otherSelectHeight:"88vh",imageSelectMaxWidth:"1600px",fileSelectMaxWidth:"1600px",videoSelectMaxWidth:"1600px",audioSelectMaxWidth:"1600px",mediaSelectMaxWidth:"1600px",otherSelectMaxWidth:"1600px",assetPanelFullScreen:!1,codeEditorWidth:"80vw",codeEditorHeight:"80vh",codeEditorMaxWidth:"1600px",blockCodeEditorWidth:"80vw",blockCodeEditorHeight:"45vh",blockCodeEditorMaxWidth:"960px",assetRefresh:!1,slider:"glide",navbar:!0,screenMode:"fullview",onRender:function(){},onChange:function(){},coverImageHandler:"",showSelectCover:!0,customval:"",enableAnimation:!1,colors:["#ff8f00","#ef6c00","#d84315","#c62828","#58362f","#37474f","#353535","#f9a825","#9e9d24","#558b2f","#ad1457","#6a1b9a","#4527a0","#616161","#00b8c9","#009666","#2e7d32","#0277bd","#1565c0","#283593","#9e9e9e"],swatches:["#ff8f00","#ef6c00","#d84315","#c62828","#58362f","#37474f","#f9a825","#9e9d24","#558b2f","#ad1457","#6a1b9a","#4527a0","#00b8c9","#009666","#2e7d32","#0277bd","#1565c0","#283593"],gradientcolors:[["linear-gradient(0deg, rgb(255, 57, 25), rgb(249, 168, 37))","light"],["linear-gradient(0deg, rgb(255, 57, 25), rgb(255, 104, 15))","light"],["linear-gradient(0deg, #FF5722, #FF9800)","light"],["linear-gradient(0deg, #613ca2, rgb(110, 123, 217))","light"],["linear-gradient(0deg, rgb(65, 70, 206), rgb(236, 78, 130))","light"],["linear-gradient(0deg, rgb(0, 150, 102), rgb(90, 103, 197))","light"],["linear-gradient(30deg, rgb(249, 119, 148), rgb(98, 58, 162))","light"],["linear-gradient(0deg, rgb(223, 70, 137), rgb(90, 103, 197))","light"],["linear-gradient(0deg, rgb(40, 53, 147), rgb(90, 103, 197))","light"],["linear-gradient(0deg, rgb(21, 101, 192), rgb(52, 169, 239))","light"],["linear-gradient(0deg, rgb(32, 149, 219), rgb(139, 109, 230))","light"],["linear-gradient(0deg, rgb(90, 103, 197), rgb(0, 184, 201))","light"],["linear-gradient(0deg, rgb(0, 184, 201), rgb(253, 187, 45))","light"],["linear-gradient(0deg, rgb(255, 208, 100), rgb(239, 98, 159))","light"],["linear-gradient(0deg, rgb(0, 214, 223), rgb(130, 162, 253))","light"],["linear-gradient(0deg, rgb(50, 234, 251), rgb(248, 247, 126))","dark"],["linear-gradient(0deg, rgb(141, 221, 255), rgb(255, 227, 255))","dark"],["linear-gradient(0deg, rgb(255, 170, 170), rgb(255, 255, 200))","dark"],["linear-gradient(0deg, rgb(239, 239, 239), rgb(252, 252, 252))","dark"]],shadowTemplates:["rgba(0,0,0,0.3) 0px 1px 3px 0px","rgba(0,0,0,0.15) 0px 1px 5px","rgba(0,0,0,0.16) 0px 3px 6px","rgba(0,0,0,0.22) 0px 10px 10px -5px","rgba(0,0,0,0.19) 0px 10px 20px","rgba(0,0,0,0.21) 0px 5px 6px","rgba(0,0,0,0.25) 0px 14px 28px","rgba(0,0,0,0.19) 0px 6px 20px 0px","rgba(0,0,0,0.08) 4px 17px 20px","rgba(0,0,0,0.12) 0px 11px 35px","rgba(0,0,0,0.06) 17px 17px 0px","rgba(0,0,0,0.1) 0px 0px 40px inset","rgba(22,22,22,0.2) 2em 2em 5em","rgba(0,0,0,0.24) 30px 30px 45px"],photoselect:"",moduleConfig:[],largerImageHandler:"",imageHandler:"",mediaHandler:"",videoHandler:"",audioHandler:"",fileHandler:"",cellFormat:"",rowFormat:"",row:"",cols:[],colequal:[],colsizes:[],classReplace:[],columnTool:!0,elementTool:!0,buttons:["bold","italic","underline","formatting","color","align","textsettings","createLink","tags","|","undo","redo","zoom","more"],buttonsMore:["icon","image","|","list","font","formatPara","|","preferences"],elementButtons:["left","center","right","full","undo","redo","zoom","more"],elementButtonsMore:["|","preferences"],iconButtons:["icon","color","textsettings","createLink","|","undo","redo","zoom","more"],iconButtonsMore:["|","preferences"],customTags:[],animateModal:!1,elementAnimate:!1,elementEditor:!0,imageQuality:.92,columnHtmlEditor:!0,rowHtmlEditor:!0,rowMoveButtons:!0,scrollableEditingToolbar:!0,toolbar:"top",toolbarDisplay:"auto",toolbarAddSnippetButton:!1,paste:"text",builderMode:"",rowcolOutline:!0,elementSelection:!0,animatedSorting:!1,dragWithoutHandle:!1,addButtonPlacement:"",snippetCategories:[[120,"Basic"],[118,"Article"],[101,"Headline"],[119,"Buttons"],[102,"Photos"],[103,"Profile"],[116,"Contact"],[104,"Products"],[105,"Features"],[106,"Process"],[107,"Pricing"],[108,"Skills"],[109,"Achievements"],[110,"Quotes"],[111,"Partners"],[112,"As Featured On"],[113,"Page Not Found"],[114,"Coming Soon"],[115,"Help, FAQ"]],defaultSnippetCategory:120,outlineMode:"",elementHighlight:!0,rowTool:"right",toolStyle:"",outlineStyle:"",rowHandle:!0,snippetAddTool:!0,mobileSimpleEdit:!1,clearPreferences:!1,imageEmbed:!0,undoRedoStyles:!0,undoContainerOnly:!1,absolutePath:!1,maxEmbedImageWidth:1600,zoom:1,shortenHTML:!0,advancedTimeline:!0,previewStyle:"top:auto;bottom:30px;left:90px;right:auto;",livePreviewOpen:!1,livePreviewAlwaysReload:!1,livePreviewReloadEvery:30,deleteConfirm:!1,blockRotate:!0,sectionTemplate:'\n <div class="is-section is-box is-section-100 box-autofit type-system-ui">\n <div class="is-overlay"></div>\n <div class="is-container is-content-1000 v2 size-18 leading-14">\n [%CONTENT%]\n </div>\n </div>\n ',formTemplate:"",defaultFontSizes:[16,17,18,19,24,32,48,54,76,96,120,200],fontSizeClassValues:[12,14,15,16,17,18,19,21,24,28,32,35,38,42,46,48,50,54,60,64,68,72,76,80,84,88,92,96,100,104,108,112,116,120,124,128,132,136,140,144,148,152,156,160,164,168,172,176,180,184,188,192,196,200,204,208,212,216,220,224,228,232,236,240,244,248,252,256,260,264,268,272,276,280,284,288,292,296,300,304,308,312,316,320,324,328,332,336,340,344,348,352,356,360,364,368,372,376,380,384,388,392,396,400],leadingPreset:[1,1.1,1.2,1.3,1.4,1.6,1.8],contentSizes:[300,320,340,360,380,400,420,440,460,480,500,520,540,560,580,600,620,640,660,680,700,720,740,760,780,800,820,840,860,880,900,920,940,960,970,980,1e3,1020,1040,1050,1060,1080,1100,1120,1140,1160,1180,1200,1220,1240,1260,1280,1300,1320,1340,1360,1380,1400,1420,1440,1460,1480,1500,1520,1540,1560,1580,1600,1620,1640,1660,1680,1700,1720,1740,1760,1780,1800,1820,1840,1860,1880,1900,1920,1940,1960,1980,2e3,2020,2040,2060,2080,2100,2120,2140,2160,2180,2200,2220,2240,2260,2280,2300,2320,2340,2360,2380,2400,2420,2440,2460,2480,2500,2520,2540,2560,2580,2600,2620,2640,2660,2680,2700],contentStyles:{data:{categories:[{id:-1,desc:"ALL"},{id:1,desc:"Sans-serif & Sans-serif"},{id:2,desc:"Serif & Serif"},{id:3,desc:"Sans-serif & Serif"},{id:4,desc:"Serif & Sans-serif"},{id:5,desc:"Monospace & Monospace"},{id:6,desc:"Monospace & Sans-serif"},{id:7,desc:"Sans-serif & Monospace"},{id:8,desc:"Display & Sans-serif"},{id:9,desc:"Handwriting & Sans-serif"},{id:10,desc:"Display & Serif"},{id:11,desc:"Handwriting & Serif"},{id:12,desc:"Display & Monospace"},{id:13,desc:"Handwriting & Monospace"},{id:14,desc:"Display & Display"}],styles:[{css:"basetype-system-ui.css",sectioncss:"type-system-ui.css",classname:"type-system-ui",img:"115.png",category:9,default:!0,caption:"system-ui"},{css:"basetype-opensans.css",sectioncss:"type-opensans.css",classname:"type-opensans",img:"000.png",category:9,default:!0,caption:"Open Sans"},{css:"basetype-roboto.css",sectioncss:"type-roboto.css",classname:"type-roboto",img:"116.png",category:9,default:!0,caption:"Roboto"},{css:"basetype-spectralsc-karma.css",sectioncss:"type-spectralsc-karma.css",classname:"type-spectralsc-karma",img:"004.png",category:2,default:!0,caption:"Spectral SC & Karma"},{css:"basetype-alegreyasanssc-hind.css",sectioncss:"type-alegreyasanssc-hind.css",classname:"type-alegreyasanssc-hind",img:"006.png",category:1,default:!0,caption:"Alegreya Sans SC & Hind"},{css:"basetype-cabinsketch-montserrat.css",sectioncss:"type-cabinsketch-montserrat.css",classname:"type-cabinsketch-montserrat",img:"007.png",category:8,default:!0,caption:"Cabin Sketch & Montserrat"},{css:"basetype-anonymouspro-catamaran.css",sectioncss:"type-anonymouspro-catamaran.css",classname:"type-anonymouspro-catamaran",img:"010.png",category:6,default:!0,caption:"Anonymous Pro & Catamaran"},{css:"basetype-nothingyouc-ibmplexmono.css",sectioncss:"type-nothingyouc-ibmplexmono.css",classname:"type-nothingyouc-ibmplexmono",img:"011.png",category:13,default:!0,caption:"Nothing You Could Do & IBM Plex Mono"},{css:"basetype-juliussansone-taviraj.css",sectioncss:"type-juliussansone-taviraj.css",classname:"type-juliussansone-taviraj",img:"012.png",category:3,default:!0,caption:"Julius Sans One & Taviraj"},{css:"basetype-voltaire-sourcecodepro.css",sectioncss:"type-voltaire-sourcecodepro.css",classname:"type-voltaire-sourcecodepro",img:"013.png",category:7,default:!0,caption:"Voltaire & Source Code Pro"},{css:"basetype-oregano-zillaslab.css",sectioncss:"type-oregano-zillaslab.css",classname:"type-oregano-zillaslab",img:"014.png",category:10,default:!0,caption:"Oregano & Zilla Slab"},{css:"basetype-anonymouspro.css",sectioncss:"type-anonymouspro.css",classname:"type-anonymouspro",img:"016.png",category:5,default:!1,caption:"Anonymous Pro"},{css:"basetype-dancingscript-anonymouspro.css",sectioncss:"type-dancingscript-anonymouspro.css",classname:"type-dancingscript-anonymouspro",img:"018.png",category:13,default:!1,caption:"Dancing Script & Anonymous Pro"},{css:"basetype-unicaone-cormorantgaramond.css",sectioncss:"type-unicaone-cormorantgaramond.css",classname:"type-unicaone-cormorantgaramond",img:"019.png",category:10,default:!1,caption:"Unica One & Cormorant Garamond"},{css:"basetype-allan-overpassmono.css",sectioncss:"type-allan-overpassmono.css",classname:"type-allan-overpassmono",img:"020.png",category:12,default:!1,caption:"Allan & Overpass Mono"},{css:"basetype-averialibre-barlow.css",sectioncss:"type-averialibre-barlow.css",classname:"type-averialibre-barlow",img:"021.png",category:8,default:!1,caption:"Averia Libre & Barlow"},{css:"basetype-merriweathersans-martel.css",sectioncss:"type-merriweathersans-martel.css",classname:"type-merriweathersans-martel",img:"022.png",category:3,default:!1,caption:"Merriweather Sans & Martel"},{css:"basetype-poppins.css",sectioncss:"type-poppins.css",classname:"type-poppins",img:"023.png",category:1,default:!1,caption:"Poppins"},{css:"basetype-specialelite-encodesans.css",sectioncss:"type-specialelite-encodesans.css",classname:"type-specialelite-encodesans",img:"026.png",category:8,default:!1,caption:"Special Elite & Encode Sans"},{css:"basetype-marcellussc-heebo.css",sectioncss:"type-marcellussc-heebo.css",classname:"type-marcellussc-heebo",img:"028.png",category:4,default:!1,caption:"Marcellus SC & Heebo"},{css:"basetype-oswald-cousine.css",sectioncss:"type-oswald-cousine.css",classname:"type-oswald-cousine",img:"029.png",category:7,default:!1,caption:"Oswald & Cousine"},{css:"basetype-oranienbaum-sourcesanspro.css",sectioncss:"type-oranienbaum-sourcesanspro.css",classname:"type-oranienbaum-sourcesanspro",img:"031.png",category:4,default:!1,caption:"Oranienbaum & Source Sans Pro"},{css:"basetype-sriracha-arvo.css",sectioncss:"type-sriracha-arvo.css",classname:"type-sriracha-arvo",img:"032.png",category:11,default:!1,caption:"Sriracha & Arvo"},{css:"basetype-merriweather.css",sectioncss:"type-merriweather.css",classname:"type-merriweather",img:"033.png",category:2,default:!1,caption:"Merriweather"},{css:"basetype-badscript-rokkitt.css",sectioncss:"type-badscript-rokkitt.css",classname:"type-badscript-rokkitt",img:"034.png",category:11,default:!1,caption:"Bad Script & Rokkitt"},{css:"basetype-inconsolata.css",sectioncss:"type-inconsolata.css",classname:"type-inconsolata",img:"036.png",category:5,default:!1,caption:"Inconsolata"},{css:"basetype-novamono-robotomono.css",sectioncss:"type-novamono-robotomono.css",classname:"type-novamono-robotomono",img:"037.png",category:5,default:!1,caption:"Nova Mono & Roboto Mono"},{css:"basetype-spacemono.css",sectioncss:"type-spacemono.css",classname:"type-spacemono",img:"038.png",category:5,default:!1,caption:"Space Mono"},{css:"basetype-elsie-frankruhllibre.css",sectioncss:"type-elsie-frankruhllibre.css",classname:"type-elsie-frankruhllibre",img:"042.png",category:10,default:!1,caption:"Elsie & Frank Ruhl Libre"},{css:"basetype-playfairdisp-petitformalscr.css",sectioncss:"type-playfairdisp-petitformalscr.css",classname:"type-playfairdisp-petitformalscr",img:"043.png",category:2,default:!1,caption:"Playfair Display"},{css:"basetype-josefinsans-neuton.css",sectioncss:"type-josefinsans-neuton.css",classname:"type-josefinsans-neuton",img:"044.png",category:3,default:!1,caption:"Josefin Sans & Neuton"},{css:"basetype-stintultracon-inconsolata.css",sectioncss:"type-stintultracon-inconsolata.css",classname:"type-stintultracon-inconsolata",img:"045.png",category:12,default:!1,caption:"Stint Ultra Condensed & Inconsolata"},{css:"basetype-raleway-playfairdisplay.css",sectioncss:"type-raleway-playfairdisplay.css",classname:"type-raleway-playfairdisplay",img:"047.png",category:1,default:!1,caption:"Raleway"},{css:"basetype-ubuntumono-sourcecodepro.css",sectioncss:"type-ubuntumono-sourcecodepro.css",classname:"type-ubuntumono-sourcecodepro",img:"049.png",category:5,default:!1,caption:"Ubuntu Mono & Source Code Pro"},{css:"basetype-sharetechmono-nunito.css",sectioncss:"type-sharetechmono-nunito.css",classname:"type-sharetechmono-nunito",img:"050.png",category:6,default:!1,caption:"Share Tech Mono & Nunito"},{css:"basetype-lato.css",sectioncss:"type-lato.css",classname:"type-lato",img:"051.png",category:1,default:!1,caption:"Lato"},{css:"basetype-pathwaygothicone-merriweather.css",sectioncss:"type-pathwaygothicone-merriweather.css",classname:"type-pathwaygothicone-merriweather",img:"052.png",category:3,default:!1,caption:"Pathway Gothic One & Merriweather"},{css:"basetype-forum-nanumgothiccoding.css",sectioncss:"type-forum-nanumgothiccoding.css",classname:"type-forum-nanumgothiccoding",img:"053.png",category:12,default:!1,caption:"Forum & Nanum Gothic Coding"},{css:"basetype-bilbo-halant.css",sectioncss:"type-bilbo-halant.css",classname:"type-bilbo-halant",img:"054.png",category:11,default:!1,caption:"Bilbo & Halant"},{css:"basetype-hammersmithone-poppins.css",sectioncss:"type-hammersmithone-poppins.css",classname:"type-hammersmithone-poppins",img:"057.png",category:1,default:!1,caption:"Hammersmith One & Poppins"},{css:"basetype-arimamadurai.css",sectioncss:"type-arimamadurai.css",classname:"type-arimamadurai",img:"058.png",category:14,default:!1,caption:"Arima Madurai"},{css:"basetype-teko-muktamahee.css",sectioncss:"type-teko-muktamahee.css",classname:"type-teko-muktamahee",img:"059.png",category:1,default:!1,caption:"Teko & Mukta Mahee"},{css:"basetype-heebo-ibmplexmono.css",sectioncss:"type-heebo-ibmplexmono.css",classname:"type-heebo-ibmplexmono",img:"060.png",category:7,default:!1,caption:"Heebo & IBM Plex Mono"},{css:"basetype-sairacon-thegirlnextdoor.css",sectioncss:"type-sairacon-thegirlnextdoor.css",classname:"type-sairacon-thegirlnextdoor",img:"062.png",category:1,default:!1,caption:"Saira Condensed"},{css:"basetype-frankruhllibre-lato.css",sectioncss:"type-frankruhllibre-lato.css",classname:"type-frankruhllibre-lato",img:"063.png",category:4,default:!1,caption:"Frank Ruhl Libre & Lato"},{css:"basetype-yantramanav-ibmplexserif.css",sectioncss:"type-yantramanav-ibmplexserif.css",classname:"type-yantramanav-ibmplexserif",img:"064.png",category:1,default:!1,caption:"Yantramanav & IBM Plex Serif"},{css:"basetype-quicksand-kalam.css",sectioncss:"type-quicksand-kalam.css",classname:"type-quicksand-kalam",img:"065.png",category:1,default:!1,caption:"Quicksand & Kalam"},{css:"basetype-ibmplexmono.css",sectioncss:"type-ibmplexmono.css",classname:"type-ibmplexmono",img:"066.png",category:5,default:!1,caption:"IBM Plex Mono"},{css:"basetype-cinzeldecor-palanquin.css",sectioncss:"type-cinzeldecor-palanquin.css",classname:"type-cinzeldecor-palanquin",img:"067.png",category:8,default:!1,caption:"Cinzel Decorative & Palanquin"},{css:"basetype-oswald-biryani.css",sectioncss:"type-oswald-biryani.css",classname:"type-oswald-biryani",img:"069.png",category:1,default:!1,caption:"Oswald & Biryani"},{css:"basetype-yanonekaff-josefinsans.css",sectioncss:"type-yanonekaff-josefinsans.css",classname:"type-yanonekaff-josefinsans",img:"070.png",category:1,default:!1,caption:"Yanone Kaffeesatz & Josefin Sans"},{css:"basetype-abrilfatface-assistant.css",sectioncss:"type-abrilfatface-assistant.css",classname:"type-abrilfatface-assistant",img:"071.png",category:8,default:!1,caption:"Abril Fatface & Assistant"},{css:"basetype-nanumgothiccod-firasanscon.css",sectioncss:"type-nanumgothiccod-firasanscon.css",classname:"type-nanumgothiccod-firasanscon",img:"072.png",category:6,default:!1,caption:"Nanum Gothic Coding & Fira Sans Condensed"},{css:"basetype-inder-trirong.css",sectioncss:"type-inder-trirong.css",classname:"type-inder-trirong",img:"073.png",category:3,default:!1,caption:"Inder & Trirong"},{css:"basetype-atma-tajawal.css",sectioncss:"type-atma-tajawal.css",classname:"type-atma-tajawal",img:"075.png",category:8,default:!1,caption:"Atma & Tajawal"},{css:"basetype-prata-hindsiliguri.css",sectioncss:"type-prata-hindsiliguri.css",classname:"type-prata-hindsiliguri",img:"076.png",category:4,default:!1,caption:"Prata & Hind Siliguri"},{css:"basetype-federo-gothica1.css",sectioncss:"type-federo-gothica1.css",classname:"type-federo-gothica1",img:"078.png",category:1,default:!1,caption:"Federo & Gothic A1"},{css:"basetype-fjallaone-ibmplexserif.css",sectioncss:"type-fjallaone-ibmplexserif.css",classname:"type-fjallaone-ibmplexserif",img:"079.png",category:3,default:!1,caption:"Fjalla One & IBM Plex Serif"},{css:"basetype-cormorantsc-ibmplexsanscon.css",sectioncss:"type-cormorantsc-ibmplexsanscon.css",classname:"type-cormorantsc-ibmplexsanscon",img:"081.png",category:4,default:!1,caption:"Cormorant SC & IBM Plex Sans Condensed"},{css:"basetype-kalam-robotomono.css",sectioncss:"type-kalam-robotomono.css",classname:"type-kalam-robotomono",img:"082.png",category:13,default:!1,caption:"Kalam & Roboto Mono"},{css:"basetype-fugazone-librefranklin.css",sectioncss:"type-fugazone-librefranklin.css",classname:"type-fugazone-librefranklin",img:"083.png",category:8,default:!1,caption:"Fugaz One & Libre Franklin"},{css:"basetype-yeonsung-palanquin.css",sectioncss:"type-yeonsung-palanquin.css",classname:"type-yeonsung-palanquin",img:"085.png",category:8,default:!1,caption:"Yeon Sung & Palanquin"},{css:"basetype-rancho-robotoslab.css",sectioncss:"type-rancho-robotoslab.css",classname:"type-rancho-robotoslab",img:"086.png",category:11,default:!1,caption:"Rancho & Roboto Slab"},{css:"basetype-tenaram-overpassmono.css",sectioncss:"type-tenaram-overpassmono.css",classname:"type-tenaram-overpassmono",img:"087.png",category:7,default:!1,caption:"Tenali Ramakrishna & Overpass Mono"},{css:"basetype-thegirlnextdoor-sourcesanspro.css",sectioncss:"type-thegirlnextdoor-sourcesanspro.css",classname:"type-thegirlnextdoor-sourcesanspro",img:"088.png",category:9,default:!1,caption:"The Girl Next Door & Source Sans Pro"},{css:"basetype-boogaloo-inconsolata.css",sectioncss:"type-boogaloo-inconsolata.css",classname:"type-boogaloo-inconsolata",img:"090.png",category:12,default:!1,caption:"Boogaloo & Inconsolata"},{css:"basetype-caveat-sourcecodepro.css",sectioncss:"type-caveat-sourcecodepro.css",classname:"type-caveat-sourcecodepro",img:"091.png",category:13,default:!1,caption:"Caveat & Source Code Pro"},{css:"basetype-passionone-worksans.css",sectioncss:"type-passionone-worksans.css",classname:"type-passionone-worksans",img:"092.png",category:8,default:!1,caption:"Passion One & Work Sans"},{css:"basetype-anticdidone-halant.css",sectioncss:"type-anticdidone-halant.css",classname:"type-anticdidone-halant",img:"093.png",category:2,default:!1,caption:"Antic Didone & Halant"},{css:"basetype-adventpro-opensans.css",sectioncss:"type-adventpro-opensans.css",classname:"type-adventpro-opensans",img:"094.png",category:1,default:!1,caption:"Advent Pro & Open Sans"},{css:"basetype-cutivemono-lato.css",sectioncss:"type-cutivemono-lato.css",classname:"type-cutivemono-lato",img:"095.png",category:6,default:!1,caption:"Cutive Mono & Lato"},{css:"basetype-elsie-montserrat.css",sectioncss:"type-elsie-montserrat.css",classname:"type-elsie-montserrat",img:"096.png",category:8,default:!1,caption:"Elsie & Montserrat"},{css:"basetype-macondo-mukta.css",sectioncss:"type-macondo-mukta.css",classname:"type-macondo-mukta",img:"097.png",category:8,default:!1,caption:"Macondo & Mukta"},{css:"basetype-oswald-opensans.css",sectioncss:"type-oswald-opensans.css",classname:"type-oswald-opensans",img:"098.png",category:1,default:!1,caption:"Oswald & Open Sans"},{css:"basetype-poppins-lekton.css",sectioncss:"type-poppins-lekton.css",classname:"type-poppins-lekton",img:"099.png",category:1,default:!1,caption:"Poppins & Lekton"},{css:"basetype-raleway-neuton.css",sectioncss:"type-raleway-neuton.css",classname:"type-raleway-neuton",img:"100.png",category:3,default:!1,caption:"Raleway & Neuton"},{css:"basetype-sourcecodepro-nunitosans.css",sectioncss:"type-sourcecodepro-nunitosans.css",classname:"type-sourcecodepro-nunitosans",img:"101.png",category:6,default:!1,caption:"Source Code Pro & Nunito Sans"},{css:"basetype-tangerine-opensans.css",sectioncss:"type-tangerine-opensans.css",classname:"type-tangerine-opensans",img:"102.png",category:9,default:!1,caption:"Tangerine & Open Sans"},{css:"basetype-alegreya-lato.css",sectioncss:"type-alegreya-lato.css",classname:"type-alegreya-lato",img:"103.png",category:4,default:!1,caption:"Alegreya & Lato"},{css:"basetype-amaticsc-lato.css",sectioncss:"type-amaticsc-lato.css",classname:"type-amaticsc-lato",img:"104.png",category:9,default:!1,caption:"Amatic SC & Lato"},{css:"basetype-heebo-ibmplexmono-2.css",sectioncss:"type-heebo-ibmplexmono-2.css",classname:"type-heebo-ibmplexmono-2",img:"105.png",category:7,default:!1,caption:"Heebo & IBM Plex Mono"},{css:"basetype-juliussansone-robotocondensed.css",sectioncss:"type-juliussansone-robotocondensed.css",classname:"type-juliussansone-robotocondensed",img:"106.png",category:1,default:!1,caption:"Julius Sans One & Roboto Condensed"},{css:"basetype-montserrat-roboto.css",sectioncss:"type-montserrat-roboto.css",classname:"type-montserrat-roboto",img:"107.png",category:1,default:!1,caption:"Montserrat & Roboto"},{css:"basetype-nothingyouc-ibmplexmono-2.css",sectioncss:"type-nothingyouc-ibmplexmono-2.css",classname:"type-nothingyouc-ibmplexmono-2",img:"108.png",category:13,default:!1,caption:"Nothing You Could Do & IBM Plex Mono"},{css:"basetype-raleway-lato.css",sectioncss:"type-raleway-lato.css",classname:"type-raleway-lato",img:"109.png",category:1,default:!1,caption:"Raleway & Lato"},{css:"basetype-raleway-lusitana.css",sectioncss:"type-raleway-lusitana.css",classname:"type-raleway-lusitana",img:"110.png",category:3,default:!1,caption:"Raleway & Lusitana"},{css:"basetype-rufina-oxygen.css",sectioncss:"type-rufina-oxygen.css",classname:"type-rufina-oxygen",img:"111.png",category:4,default:!1,caption:"Rufina & Oxygen"},{css:"basetype-sacramento-opensans.css",sectioncss:"type-sacramento-opensans.css",classname:"type-sacramento-opensans",img:"112.png",category:9,default:!1,caption:"Sacramento & Open Sans"},{css:"basetype-specialelite-playfairdisplay.css",sectioncss:"type-specialelite-playfairdisplay.css",classname:"type-specialelite-playfairdisplay",img:"113.png",category:10,default:!1,caption:"Special Elite & Playfair Display"},{css:"basetype-unicaone-sourcesanspro.css",sectioncss:"type-unicaone-sourcesanspro.css",classname:"type-unicaone-sourcesanspro",img:"114.png",category:8,default:!1,caption:"Unica One & Source Sans Pro"},{css:"basetype-amaticsc-josepfinsans.css",sectioncss:"type-amaticsc-josepfinsans.css",classname:"type-amaticsc-josepfinsans",img:"001.png",category:9,default:!0,caption:"Amatic SC & Josefin Sans"},{css:"basetype-sourcesanspro-anonymouspro.css",sectioncss:"type-sourcesanspro-anonymouspro.css",classname:"type-sourcesanspro-anonymouspro",img:"002.png",category:7,default:!0,caption:"Source Sans Pro & Anonymous Pro"},{css:"basetype-poppins-oldstandardtt.css",sectioncss:"type-poppins-oldstandardtt.css",classname:"type-poppins-oldstandardtt",img:"003.png",category:3,default:!0,caption:"Poppins & Old Standard TT"},{css:"basetype-yesteryear-chivo.css",sectioncss:"type-yesteryear-chivo.css",classname:"type-yesteryear-chivo",img:"005.png",category:9,default:!0,caption:"Yesteryear & Chivo"},{css:"basetype-ptserif-poppins.css",sectioncss:"type-ptserif-poppins.css",classname:"type-ptserif-poppins",img:"008.png",category:4,default:!0,caption:"PT Serif & Poppins"},{css:"basetype-kellyslab-yantramanav.css",sectioncss:"type-kellyslab-yantramanav.css",classname:"type-kellyslab-yantramanav",img:"009.png",category:8,default:!0,caption:"Kelly Slab & Yantramanav"},{css:"basetype-yellowtail-frankruhllibre.css",sectioncss:"type-yellowtail-frankruhllibre.css",classname:"type-yellowtail-frankruhllibre",img:"015.png",category:11,default:!0,caption:"Yellowtail & Frank Ruhl Libre"},{css:"basetype-sedgwickave-spectral.css",sectioncss:"type-sedgwickave-spectral.css",classname:"type-sedgwickave-spectral",img:"017.png",category:10,default:!1,caption:"Sedgwick Ave & Spectral"},{css:"basetype-satisfy-economica.css",sectioncss:"type-satisfy-economica.css",classname:"type-satisfy-economica",img:"024.png",category:9,default:!1,caption:"Satisfy & Economica"},{css:"basetype-josefinsans-lekton.css",sectioncss:"type-josefinsans-lekton.css",classname:"type-josefinsans-lekton",img:"025.png",category:1,default:!1,caption:"Josefin Sans & Lekton"},{css:"basetype-parisienne-maitree.css",sectioncss:"type-parisienne-maitree.css",classname:"type-parisienne-maitree",img:"027.png",category:11,default:!1,caption:"Parisienne & Maitree"},{css:"basetype-londrinashadow-martel.css",sectioncss:"type-londrinashadow-martel.css",classname:"type-londrinashadow-martel",img:"030.png",category:10,default:!1,caption:"Londrina Shadow & Martel"},{css:"basetype-poiretone-pridi.css",sectioncss:"type-poiretone-pridi.css",classname:"type-poiretone-pridi",img:"035.png",category:10,default:!1,caption:"Poiret One & Pridi"},{css:"basetype-pollerone-ibmplexserif.css",sectioncss:"type-pollerone-ibmplexserif.css",classname:"type-pollerone-ibmplexserif",img:"039.png",category:10,default:!1,caption:"Poller One & IBM Plex Serif"},{css:"basetype-italiana-martel.css",sectioncss:"type-italiana-martel.css",classname:"type-italiana-martel",img:"040.png",category:2,default:!1,caption:"Italiana & Martel"},{css:"basetype-julee-lora.css",sectioncss:"type-julee-lora.css",classname:"type-julee-lora",img:"041.png",category:11,default:!1,caption:"Julee & Lora"},{css:"basetype-sixcaps-robotomono.css",sectioncss:"type-sixcaps-robotomono.css",classname:"type-sixcaps-robotomono",img:"046.png",category:7,default:!1,caption:"Six Caps & Roboto Mono"},{css:"basetype-pacifico-nanumgothiccod.css",sectioncss:"type-pacifico-nanumgothiccod.css",classname:"type-pacifico-nanumgothiccod",img:"048.png",category:13,default:!1,caption:"Pacifico & Nanum Gothic Coding"},{css:"basetype-greatvibes-robotomono.css",sectioncss:"type-greatvibes-robotomono.css",classname:"type-greatvibes-robotomono",img:"055.png",category:13,default:!1,caption:"Great Vibes & Roboto Mono"},{css:"basetype-pinyonscript-firasans.css",sectioncss:"type-pinyonscript-firasans.css",classname:"type-pinyonscript-firasans",img:"056.png",category:9,default:!1,caption:"Pinyon Script & Fira Sans"},{css:"basetype-sail-rasa.css",sectioncss:"type-sail-rasa.css",classname:"type-sail-rasa",img:"061.png",category:10,default:!1,caption:"Sail & Rasa"},{css:"basetype-yesevaone-forum.css",sectioncss:"type-yesevaone-forum.css",classname:"type-yesevaone-forum",img:"068.png",category:14,default:!1,caption:"Yeseva One & Forum"},{css:"basetype-dosis-oldstandardtt.css",sectioncss:"type-dosis-oldstandardtt.css",classname:"type-dosis-oldstandardtt",img:"074.png",category:1,default:!1,caption:"Dosis & Old Standard TT"},{css:"basetype-engagement-spectral.css",sectioncss:"type-engagement-spectral.css",classname:"type-engagement-spectral",img:"077.png",category:11,default:!1,caption:"Engagement & Spectral"},{css:"basetype-dynalight-mada.css",sectioncss:"type-dynalight-mada.css",classname:"type-dynalight-mada",img:"080.png",category:8,default:!1,caption:"Dynalight & Mada"},{css:"basetype-gravitasone-nanummyeongjo.css",sectioncss:"type-gravitasone-nanummyeongjo.css",classname:"type-gravitasone-nanummyeongjo",img:"084.png",category:10,default:!1,caption:"Gravitas One & Nanum Myeongjo"},{css:"basetype-alexbrush-ibmplexsans.css",sectioncss:"type-alexbrush-ibmplexsans.css",classname:"type-alexbrush-ibmplexsans",img:"089.png",category:9,default:!1,caption:"Alex Brush & IBM Plex Sans"}]}},contentStylesV2:{data:{categories:[{id:-1,desc:"ALL"},{id:1,desc:"Sans-serif & Sans-serif"},{id:2,desc:"Serif & Serif"},{id:3,desc:"Sans-serif & Serif"},{id:4,desc:"Serif & Sans-serif"},{id:5,desc:"Monospace & Monospace"},{id:6,desc:"Monospace & Sans-serif"},{id:7,desc:"Sans-serif & Monospace"},{id:8,desc:"Display & Sans-serif"},{id:9,desc:"Handwriting & Sans-serif"},{id:10,desc:"Display & Serif"},{id:11,desc:"Handwriting & Serif"},{id:12,desc:"Display & Monospace"},{id:13,desc:"Handwriting & Monospace"},{id:14,desc:"Display & Display"}],styles:[{css:"basetype-system-ui.css",sectioncss:"type-system-ui.css",classname:"type-system-ui",img:"type-system-native.png",category:1,default:!0,caption:"system-native"},{css:"basetype-classic-editorial.css",sectioncss:"type-classic-editorial.css",classname:"type-classic-editorial",img:"type-classic-editorial.png",category:2,default:!0,caption:"classic-editorial"},{css:"basetype-material-standard.css",sectioncss:"type-material-standard.css",classname:"type-material-standard",img:"type-material-standard.png",category:1,default:!0,caption:"material-standard"},{css:"basetype-neutral-workhorse.css",sectioncss:"type-neutral-workhorse.css",classname:"type-neutral-workhorse",img:"type-neutral-workhorse.png",category:1,default:!0,caption:"neutral-workhorse"},{css:"basetype-contemporary-editorial.css",sectioncss:"type-contemporary-editorial.css",classname:"type-contemporary-editorial",img:"type-contemporary-editorial.png",category:4,default:!0,caption:"contemporary-editorial"},{css:"basetype-literary-journal.css",sectioncss:"type-literary-journal.css",classname:"type-literary-journal",img:"type-literary-journal.png",category:4,default:!0,caption:"literary-journal"},{css:"basetype-swiss-modern.css",sectioncss:"type-swiss-modern.css",classname:"type-swiss-modern",img:"type-swiss-modern.png",category:3,default:!0,caption:"swiss-modern"},{css:"basetype-luxury-fashion.css",sectioncss:"type-luxury-fashion.css",classname:"type-luxury-fashion",img:"type-luxury-fashion.png",category:4,default:!0,caption:"luxury-fashion"},{css:"basetype-refined-minimalism.css",sectioncss:"type-refined-minimalism.css",classname:"type-refined-minimalism",img:"type-refined-minimalism.png",category:1,default:!0,caption:"refined-minimalism"},{css:"basetype-new-wave-editorial.css",sectioncss:"type-new-wave-editorial.css",classname:"type-new-wave-editorial",img:"type-new-wave-editorial.png",category:4,default:!0,caption:"new-wave-editorial"},{css:"basetype-art-deco-revival.css",sectioncss:"type-art-deco-revival.css",classname:"type-art-deco-revival",img:"type-art-deco-revival.png",category:4,default:!0,caption:"art-deco-revival"},{css:"basetype-architectural-studio.css",sectioncss:"type-architectural-studio.css",classname:"type-architectural-studio",img:"type-architectural-studio.png",category:3,default:!0,caption:"architectural-studio"},{css:"basetype-scandinavian-clean.css",sectioncss:"type-scandinavian-clean.css",classname:"type-scandinavian-clean",img:"type-scandinavian-clean.png",category:4,default:!0,caption:"scandinavian-clean"},{css:"basetype-avant-garde-magazine.css",sectioncss:"type-avant-garde-magazine.css",classname:"type-avant-garde-magazine",img:"type-avant-garde-magazine.png",category:3,default:!0,caption:"avant-garde-magazine"},{css:"basetype-timeless-classic.css",sectioncss:"type-timeless-classic.css",classname:"type-timeless-classic",img:"type-timeless-classic.png",category:4,default:!0,caption:"timeless-classic"},{css:"basetype-brutalist-refined.css",sectioncss:"type-brutalist-refined.css",classname:"type-brutalist-refined",img:"type-brutalist-refined.png",category:1,default:!0,caption:"brutalist-refined"},{css:"basetype-contemporary-classic.css",sectioncss:"type-contemporary-classic.css",classname:"type-contemporary-classic",img:"type-contemporary-classic.png",category:4,default:!0,caption:"contemporary-classic"},{css:"basetype-tech-editorial.css",sectioncss:"type-tech-editorial.css",classname:"type-tech-editorial",img:"type-tech-editorial.png",category:4,default:!0,caption:"tech-editorial"},{css:"basetype-gallery-modern.css",sectioncss:"type-gallery-modern.css",classname:"type-gallery-modern",img:"type-gallery-modern.png",category:4,default:!0,caption:"gallery-modern"},{css:"basetype-organic-artisan.css",sectioncss:"type-organic-artisan.css",classname:"type-organic-artisan",img:"type-organic-artisan.png",category:4,default:!0,caption:"organic-artisan"},{css:"basetype-modern-sans.css",sectioncss:"type-modern-sans.css",classname:"type-modern-sans",img:"type-modern-sans.png",category:1,default:!0,caption:"modern-sans"},{css:"basetype-inter-clean.css",sectioncss:"type-inter-clean.css",classname:"type-inter-clean",img:"type-inter-clean.png",category:1,default:!0,caption:"inter-clean"},{css:"basetype-mono-technical.css",sectioncss:"type-mono-technical.css",classname:"type-mono-technical",img:"type-mono-technical.png",category:5,default:!0,caption:"mono-technical"},{css:"basetype-space-grotesk.css",sectioncss:"type-space-grotesk.css",classname:"type-space-grotesk",img:"type-space-grotesk.png",category:1,default:!0,caption:"space-grotesk"},{css:"basetype-dm-sans-pure.css",sectioncss:"type-dm-sans-pure.css",classname:"type-dm-sans-pure",img:"type-dm-sans-pure.png",category:1,default:!0,caption:"dm-sans-pure"},{css:"basetype-outfit-essential.css",sectioncss:"type-outfit-essential.css",classname:"type-outfit-essential",img:"type-outfit-essential.png",category:1,default:!0,caption:"outfit-essential"},{css:"basetype-genz-bold.css",sectioncss:"type-genz-bold.css",classname:"type-genz-bold",img:"type-genz-bold.png",category:1,default:!0,caption:"genz-bold"},{css:"basetype-candy-pop.css",sectioncss:"type-candy-pop.css",classname:"type-candy-pop",img:"type-candy-pop.png",category:1,default:!0,caption:"candy-pop"},{css:"basetype-blush-bloom.css",sectioncss:"type-blush-bloom.css",classname:"type-blush-bloom",img:"type-blush-bloom.png",category:4,default:!0,caption:"blush-bloom"},{css:"basetype-70s-revival.css",sectioncss:"type-70s-revival.css",classname:"type-70s-revival",img:"type-70s-revival.png",category:4,default:!0,caption:"70s-revival"},{css:"basetype-trail-explorer.css",sectioncss:"type-trail-explorer.css",classname:"type-trail-explorer",img:"type-trail-explorer.png",category:8,default:!0,caption:"trail-explorer"},{css:"basetype-founder-mode.css",sectioncss:"type-founder-mode.css",classname:"type-founder-mode",img:"type-founder-mode.png",category:1,default:!0,caption:"founder-mode"},{css:"basetype-cornerstone.css",sectioncss:"type-cornerstone.css",classname:"type-cornerstone",img:"type-cornerstone.png",category:4,default:!0,caption:"cornerstone"},{css:"basetype-analog-era.css",sectioncss:"type-analog-era.css",classname:"type-analog-era",img:"type-analog-era.png",category:6,default:!0,caption:"analog-era"},{css:"basetype-launch-day.css",sectioncss:"type-launch-day.css",classname:"type-launch-day",img:"type-launch-day.png",category:1,default:!0,caption:"launch-day"},{css:"basetype-botanical-garden.css",sectioncss:"type-botanical-garden.css",classname:"type-botanical-garden",img:"type-botanical-garden.png",category:2,default:!0,caption:"botanical-garden"},{css:"basetype-city-guide.css",sectioncss:"type-city-guide.css",classname:"type-city-guide",img:"type-city-guide.png",category:4,default:!0,caption:"city-guide"},{css:"basetype-grand-tour.css",sectioncss:"type-grand-tour.css",classname:"type-grand-tour",img:"type-grand-tour.png",category:4,default:!0,caption:"grand-tour"},{css:"basetype-classic-authority.css",sectioncss:"type-classic-authority.css",classname:"type-classic-authority",img:"type-classic-authority.png",category:4,default:!0,caption:"classic-authority"},{css:"basetype-startup-friendly.css",sectioncss:"type-startup-friendly.css",classname:"type-startup-friendly",img:"type-startup-friendly.png",category:1,default:!0,caption:"startup-friendly"},{css:"basetype-cultural-heritage.css",sectioncss:"type-cultural-heritage.css",classname:"type-cultural-heritage",img:"type-cultural-heritage.png",category:4,default:!0,caption:"cultural-heritage"},{css:"basetype-spicy-kitchen.css",sectioncss:"type-spicy-kitchen.css",classname:"type-spicy-kitchen",img:"type-spicy-kitchen.png",category:10,default:!0,caption:"spicy-kitchen"},{css:"basetype-dev-console.css",sectioncss:"type-dev-console.css",classname:"type-dev-console",img:"type-dev-console.png",category:5,default:!0,caption:"dev-console"},{css:"basetype-retro-terminal.css",sectioncss:"type-retro-terminal.css",classname:"type-retro-terminal",img:"type-retro-terminal.png",category:5,default:!0,caption:"retro-terminal"},{css:"basetype-elegant-minimal.css",sectioncss:"type-elegant-minimal.css",classname:"type-elegant-minimal",img:"type-elegant-minimal.png",category:1,default:!0,caption:"elegant-minimal"},{css:"basetype-open-source.css",sectioncss:"type-open-source.css",classname:"type-open-source",img:"type-open-source.png",category:5,default:!0,caption:"open-source"},{css:"basetype-warm-humanist.css",sectioncss:"type-warm-humanist.css",classname:"type-warm-humanist",img:"type-warm-humanist.png",category:1,default:!0,caption:"warm-humanist"},{css:"basetype-tech-editorial2.css",sectioncss:"type-tech-editorial2.css",classname:"type-tech-editorial2",img:"type-tech-editorial2.png",category:7,default:!0,caption:"tech-editorial-2"},{css:"basetype-dev-journal.css",sectioncss:"type-dev-journal.css",classname:"type-dev-journal",img:"type-dev-journal.png",category:13,default:!0,caption:"dev-journal"},{css:"basetype-code-school.css",sectioncss:"type-code-school.css",classname:"type-code-school",img:"type-code-school.png",category:7,default:!0,caption:"code-school"},{css:"basetype-long-form.css",sectioncss:"type-long-form.css",classname:"type-long-form",img:"type-long-form.png",category:4,default:!0,caption:"long-form"},{css:"basetype-craft-market.css",sectioncss:"type-craft-market.css",classname:"type-craft-market",img:"type-craft-market.png",category:9,default:!0,caption:"craft-market"},{css:"basetype-corporate-modern.css",sectioncss:"type-corporate-modern.css",classname:"type-corporate-modern",img:"type-corporate-modern.png",category:1,default:!0,caption:"corporate-modern"},{css:"basetype-design-studio.css",sectioncss:"type-design-studio.css",classname:"type-design-studio",img:"type-design-studio.png",category:1,default:!0,caption:"design-studio"},{css:"basetype-classic-web.css",sectioncss:"type-classic-web.css",classname:"type-classic-web",img:"type-classic-web.png",category:4,default:!0,caption:"classic-web"},{css:"basetype-boutique-hotel.css",sectioncss:"type-boutique-hotel.css",classname:"type-boutique-hotel",img:"type-boutique-hotel.png",category:4,default:!0,caption:"boutique-hotel"},{css:"basetype-event-planner.css",sectioncss:"type-event-planner.css",classname:"type-event-planner",img:"type-event-planner.png",category:9,default:!0,caption:"event-planner"},{css:"basetype-roboto.css",sectioncss:"type-roboto.css",classname:"type-roboto",img:"type-roboto.png",category:1,default:!0,caption:"Roboto"},{css:"basetype-alegreyasanssc-hind.css",sectioncss:"type-alegreyasanssc-hind.css",classname:"type-alegreyasanssc-hind",img:"type-alegreyasanssc-hind.png",category:1,default:!0,caption:"Alegreya Sans SC & Hind"},{css:"basetype-opensans.css",sectioncss:"type-opensans.css",classname:"type-opensans",img:"type-opensans.png",category:1,default:!0,caption:"Open Sans"},{css:"basetype-anonymouspro-catamaran.css",sectioncss:"type-anonymouspro-catamaran.css",classname:"type-anonymouspro-catamaran",img:"type-anonymouspro-catamaran.png",category:6,default:!0,caption:"Anonymous Pro & Catamaran"},{css:"basetype-nothingyouc-ibmplexmono.css",sectioncss:"type-nothingyouc-ibmplexmono.css",classname:"type-nothingyouc-ibmplexmono",img:"type-nothingyouc-ibmplexmono.png",category:13,default:!0,caption:"Nothing You Could Do & IBM Plex Mono"},{css:"basetype-juliussansone-taviraj.css",sectioncss:"type-juliussansone-taviraj.css",classname:"type-juliussansone-taviraj",img:"type-juliussansone-taviraj.png",category:3,default:!0,caption:"Julius Sans One & Taviraj"},{css:"basetype-voltaire-sourcecodepro.css",sectioncss:"type-voltaire-sourcecodepro.css",classname:"type-voltaire-sourcecodepro",img:"type-voltaire-sourcecodepro.png",category:7,default:!0,caption:"Voltaire & Source Code Pro"},{css:"basetype-anonymouspro.css",sectioncss:"type-anonymouspro.css",classname:"type-anonymouspro",img:"type-anonymouspro.png",category:5,default:!1,caption:"Anonymous Pro"},{css:"basetype-unicaone-cormorantgaramond.css",sectioncss:"type-unicaone-cormorantgaramond.css",classname:"type-unicaone-cormorantgaramond",img:"type-unicaone-cormorantgaramond.png",category:10,default:!1,caption:"Unica One & Cormorant Garamond"},{css:"basetype-merriweathersans-martel.css",sectioncss:"type-merriweathersans-martel.css",classname:"type-merriweathersans-martel",img:"type-merriweathersans-martel.png",category:3,default:!1,caption:"Merriweather Sans & Martel"},{css:"basetype-poppins.css",sectioncss:"type-poppins.css",classname:"type-poppins",img:"type-poppins.png",category:1,default:!1,caption:"Poppins"},{css:"basetype-specialelite-encodesans.css",sectioncss:"type-specialelite-encodesans.css",classname:"type-specialelite-encodesans",img:"type-specialelite-encodesans.png",category:8,default:!1,caption:"Special Elite & Encode Sans"},{css:"basetype-marcellussc-heebo.css",sectioncss:"type-marcellussc-heebo.css",classname:"type-marcellussc-heebo",img:"type-marcellussc-heebo.png",category:4,default:!1,caption:"Marcellus SC & Heebo"},{css:"basetype-oranienbaum-sourcesanspro.css",sectioncss:"type-oranienbaum-sourcesanspro.css",classname:"type-oranienbaum-sourcesanspro",img:"type-oranienbaum-sourcesanspro.png",category:4,default:!1,caption:"Oranienbaum & Source Sans Pro"},{css:"basetype-sriracha-arvo.css",sectioncss:"type-sriracha-arvo.css",classname:"type-sriracha-arvo",img:"type-sriracha-arvo.png",category:11,default:!1,caption:"Sriracha & Arvo"},{css:"basetype-merriweather.css",sectioncss:"type-merriweather.css",classname:"type-merriweather",img:"type-merriweather.png",category:2,default:!1,caption:"Merriweather"},{css:"basetype-inconsolata.css",sectioncss:"type-inconsolata.css",classname:"type-inconsolata",img:"type-inconsolata.png",category:5,default:!1,caption:"Inconsolata"},{css:"basetype-novamono-robotomono.css",sectioncss:"type-novamono-robotomono.css",classname:"type-novamono-robotomono",img:"type-novamono-robotomono.png",category:5,default:!1,caption:"Nova Mono & Roboto Mono"},{css:"basetype-spacemono.css",sectioncss:"type-spacemono.css",classname:"type-spacemono",img:"type-spacemono.png",category:5,default:!1,caption:"Space Mono"},{css:"basetype-elsie-frankruhllibre.css",sectioncss:"type-elsie-frankruhllibre.css",classname:"type-elsie-frankruhllibre",img:"type-elsie-frankruhllibre.png",category:10,default:!1,caption:"Elsie & Frank Ruhl Libre"},{css:"basetype-stintultracon-inconsolata.css",sectioncss:"type-stintultracon-inconsolata.css",classname:"type-stintultracon-inconsolata",img:"type-stintultracon-inconsolata.png",category:12,default:!1,caption:"Stint Ultra Condensed & Inconsolata"},{css:"basetype-raleway-playfairdisplay.css",sectioncss:"type-raleway-playfairdisplay.css",classname:"type-raleway-playfairdisplay",img:"type-raleway-playfairdisplay.png",category:1,default:!1,caption:"Raleway"},{css:"basetype-ubuntumono-sourcecodepro.css",sectioncss:"type-ubuntumono-sourcecodepro.css",classname:"type-ubuntumono-sourcecodepro",img:"type-ubuntumono-sourcecodepro.png",category:5,default:!1,caption:"Ubuntu Mono & Source Code Pro"},{css:"basetype-lato.css",sectioncss:"type-lato.css",classname:"type-lato",img:"type-lato.png",category:1,default:!1,caption:"Lato"},{css:"basetype-pathwaygothicone-merriweather.css",sectioncss:"type-pathwaygothicone-merriweather.css",classname:"type-pathwaygothicone-merriweather",img:"type-pathwaygothicone-merriweather.png",category:3,default:!1,caption:"Pathway Gothic One & Merriweather"},{css:"basetype-arimamadurai.css",sectioncss:"type-arimamadurai.css",classname:"type-arimamadurai",img:"type-arimamadurai.png",category:14,default:!1,caption:"Arima Madurai"},{css:"basetype-teko-muktamahee.css",sectioncss:"type-teko-muktamahee.css",classname:"type-teko-muktamahee",img:"type-teko-muktamahee.png",category:1,default:!1,caption:"Teko & Mukta Mahee"},{css:"basetype-heebo-ibmplexmono.css",sectioncss:"type-heebo-ibmplexmono.css",classname:"type-heebo-ibmplexmono",img:"type-heebo-ibmplexmono.png",category:7,default:!1,caption:"Heebo & IBM Plex Mono"},{css:"basetype-frankruhllibre-lato.css",sectioncss:"type-frankruhllibre-lato.css",classname:"type-frankruhllibre-lato",img:"type-frankruhllibre-lato.png",category:4,default:!1,caption:"Frank Ruhl Libre & Lato"},{css:"basetype-yantramanav-ibmplexserif.css",sectioncss:"type-yantramanav-ibmplexserif.css",classname:"type-yantramanav-ibmplexserif",img:"type-yantramanav-ibmplexserif.png",category:1,default:!1,caption:"Yantramanav & IBM Plex Serif"},{css:"basetype-quicksand-kalam.css",sectioncss:"type-quicksand-kalam.css",classname:"type-quicksand-kalam",img:"type-quicksand-kalam.png",category:1,default:!1,caption:"Quicksand & Kalam"},{css:"basetype-ibmplexmono.css",sectioncss:"type-ibmplexmono.css",classname:"type-ibmplexmono",img:"type-ibmplexmono.png",category:5,default:!1,caption:"IBM Plex Mono"},{css:"basetype-oswald-biryani.css",sectioncss:"type-oswald-biryani.css",classname:"type-oswald-biryani",img:"type-oswald-biryani.png",category:1,default:!1,caption:"Oswald & Biryani"},{css:"basetype-abrilfatface-assistant.css",sectioncss:"type-abrilfatface-assistant.css",classname:"type-abrilfatface-assistant",img:"type-abrilfatface-assistant.png",category:8,default:!1,caption:"Abril Fatface & Assistant"},{css:"basetype-prata-hindsiliguri.css",sectioncss:"type-prata-hindsiliguri.css",classname:"type-prata-hindsiliguri",img:"type-prata-hindsiliguri.png",category:4,default:!1,caption:"Prata & Hind Siliguri"},{css:"basetype-fjallaone-ibmplexserif.css",sectioncss:"type-fjallaone-ibmplexserif.css",classname:"type-fjallaone-ibmplexserif",img:"type-fjallaone-ibmplexserif.png",category:3,default:!1,caption:"Fjalla One & IBM Plex Serif"},{css:"basetype-cormorantsc-ibmplexsanscon.css",sectioncss:"type-cormorantsc-ibmplexsanscon.css",classname:"type-cormorantsc-ibmplexsanscon",img:"type-cormorantsc-ibmplexsanscon.png",category:4,default:!1,caption:"Cormorant SC & IBM Plex Sans Condensed"},{css:"basetype-fugazone-librefranklin.css",sectioncss:"type-fugazone-librefranklin.css",classname:"type-fugazone-librefranklin",img:"type-fugazone-librefranklin.png",category:8,default:!1,caption:"Fugaz One & Libre Franklin"},{css:"basetype-caveat-sourcecodepro.css",sectioncss:"type-caveat-sourcecodepro.css",classname:"type-caveat-sourcecodepro",img:"type-caveat-sourcecodepro.png",category:13,default:!1,caption:"Caveat & Source Code Pro"},{css:"basetype-cutivemono-lato.css",sectioncss:"type-cutivemono-lato.css",classname:"type-cutivemono-lato",img:"type-cutivemono-lato.png",category:6,default:!1,caption:"Cutive Mono & Lato"},{css:"basetype-oswald-opensans.css",sectioncss:"type-oswald-opensans.css",classname:"type-oswald-opensans",img:"type-oswald-opensans.png",category:1,default:!1,caption:"Oswald & Open Sans"},{css:"basetype-poppins-lekton.css",sectioncss:"type-poppins-lekton.css",classname:"type-poppins-lekton",img:"type-poppins-lekton.png",category:1,default:!1,caption:"Poppins & Lekton"},{css:"basetype-raleway-neuton.css",sectioncss:"type-raleway-neuton.css",classname:"type-raleway-neuton",img:"type-raleway-neuton.png",category:3,default:!1,caption:"Raleway & Neuton"},{css:"basetype-sourcecodepro-nunitosans.css",sectioncss:"type-sourcecodepro-nunitosans.css",classname:"type-sourcecodepro-nunitosans",img:"type-sourcecodepro-nunitosans.png",category:6,default:!1,caption:"Source Code Pro & Nunito Sans"},{css:"basetype-alegreya-lato.css",sectioncss:"type-alegreya-lato.css",classname:"type-alegreya-lato",img:"type-alegreya-lato.png",category:4,default:!1,caption:"Alegreya & Lato"},{css:"basetype-heebo-ibmplexmono-2.css",sectioncss:"type-heebo-ibmplexmono-2.css",classname:"type-heebo-ibmplexmono-2",img:"type-heebo-ibmplexmono-2.png",category:7,default:!1,caption:"Heebo & IBM Plex Mono"},{css:"basetype-montserrat-roboto.css",sectioncss:"type-montserrat-roboto.css",classname:"type-montserrat-roboto",img:"type-montserrat-roboto.png",category:1,default:!1,caption:"Montserrat & Roboto"},{css:"basetype-raleway-lato.css",sectioncss:"type-raleway-lato.css",classname:"type-raleway-lato",img:"type-raleway-lato.png",category:1,default:!1,caption:"Raleway & Lato"},{css:"basetype-rufina-oxygen.css",sectioncss:"type-rufina-oxygen.css",classname:"type-rufina-oxygen",img:"type-rufina-oxygen.png",category:4,default:!1,caption:"Rufina & Oxygen"},{css:"basetype-sacramento-opensans.css",sectioncss:"type-sacramento-opensans.css",classname:"type-sacramento-opensans",img:"type-sacramento-opensans.png",category:9,default:!1,caption:"Sacramento & Open Sans"},{css:"basetype-sourcesanspro-anonymouspro.css",sectioncss:"type-sourcesanspro-anonymouspro.css",classname:"type-sourcesanspro-anonymouspro",img:"type-sourcesanspro-anonymouspro.png",category:7,default:!0,caption:"Source Sans Pro & Anonymous Pro"},{css:"basetype-poppins-oldstandardtt.css",sectioncss:"type-poppins-oldstandardtt.css",classname:"type-poppins-oldstandardtt",img:"type-poppins-oldstandardtt.png",category:3,default:!0,caption:"Poppins & Old Standard TT"},{css:"basetype-yesteryear-chivo.css",sectioncss:"type-yesteryear-chivo.css",classname:"type-yesteryear-chivo",img:"type-yesteryear-chivo.png",category:9,default:!0,caption:"Yesteryear & Chivo"},{css:"basetype-ptserif-poppins.css",sectioncss:"type-ptserif-poppins.css",classname:"type-ptserif-poppins",img:"type-ptserif-poppins.png",category:4,default:!0,caption:"PT Serif & Poppins"},{css:"basetype-josefinsans-lekton.css",sectioncss:"type-josefinsans-lekton.css",classname:"type-josefinsans-lekton",img:"type-josefinsans-lekton.png",category:1,default:!1,caption:"Josefin Sans & Lekton"},{css:"basetype-italiana-martel.css",sectioncss:"type-italiana-martel.css",classname:"type-italiana-martel",img:"type-italiana-martel.png",category:2,default:!1,caption:"Italiana & Martel"},{css:"basetype-greatvibes-robotomono.css",sectioncss:"type-greatvibes-robotomono.css",classname:"type-greatvibes-robotomono",img:"type-greatvibes-robotomono.png",category:13,default:!1,caption:"Great Vibes & Roboto Mono"},{css:"basetype-dosis-oldstandardtt.css",sectioncss:"type-dosis-oldstandardtt.css",classname:"type-dosis-oldstandardtt",img:"type-dosis-oldstandardtt.png",category:1,default:!1,caption:"Dosis & Old Standard TT"},{css:"basetype-engagement-spectral.css",sectioncss:"type-engagement-spectral.css",classname:"type-engagement-spectral",img:"type-engagement-spectral.png",category:11,default:!1,caption:"Engagement & Spectral"},{css:"basetype-dynalight-mada.css",sectioncss:"type-dynalight-mada.css",classname:"type-dynalight-mada",img:"type-dynalight-mada.png",category:8,default:!1,caption:"Dynalight & Mada"},{css:"basetype-alexbrush-ibmplexsans.css",sectioncss:"type-alexbrush-ibmplexsans.css",classname:"type-alexbrush-ibmplexsans",img:"type-alexbrush-ibmplexsans.png",category:9,default:!1,caption:"Alex Brush & IBM Plex Sans"}]}},cssInBody:!1,cssClasses:{fontWeight:{thin:"font-thin",extralight:"font-extralight",light:"font-light",normal:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold",extrabold:"font-extrabold",black:"font-black",defaultBold:"font-semibold",defaultNormal:"font-light"},fontStyle:{italic:"italic",normal:"not-italic"},textDecoration:{underline:"underline",linethrough:"line-through",normal:"no-underline"},textTransform:{uppercase:"uppercase",lowercase:"lowercase",capitalize:"capitalize",normal:"normal-case"},tracking:{tracking__100:"tracking--100",tracking__075:"tracking--75",tracking__050:"tracking-tighter",tracking__025:"tracking-tight",tracking_000:"tracking-normal",tracking_025:"tracking-wide",tracking_050:"tracking-wider",tracking_075:"tracking-75",tracking_100:"tracking-widest",tracking_125:"tracking-125",tracking_150:"tracking-150",tracking_175:"tracking-175",tracking_200:"tracking-200",tracking_225:"tracking-225",tracking_250:"tracking-250",tracking_275:"tracking-275",tracking_300:"tracking-300",tracking_325:"tracking-325",tracking_350:"tracking-350",tracking_375:"tracking-375",tracking_400:"tracking-400",tracking_425:"tracking-425",tracking_450:"tracking-450",tracking_475:"tracking-475",tracking_500:"tracking-500"},leading:{leading_5:"leading-05",leading_6:"leading-06",leading_7:"leading-07",leading_8:"leading-08",leading_9:"leading-09",leading_10:"leading-none",leading_11:"leading-11",leading_12:"leading-12",leading_125:"leading-tight",leading_13:"leading-13",leading_1375:"leading-snug",leading_14:"leading-14",leading_15:"leading-normal",leading_16:"leading-16",leading_1625:"leading-relaxed",leading_17:"leading-17",leading_18:"leading-18",leading_19:"leading-19",leading_20:"leading-loose",leading_21:"leading-21",leading_22:"leading-22",leading_23:"leading-23",leading_24:"leading-24",leading_25:"leading-25",leading_26:"leading-26",leading_27:"leading-27",leading_28:"leading-28",leading_29:"leading-29",leading_30:"leading-30"},opacity:{opacity_0:"opacity-0",opacity_2:"opacity-2",opacity_4:"opacity-4",opacity_5:"opacity-5",opacity_6:"opacity-6",opacity_8:"opacity-8",opacity_10:"opacity-10",opacity_12:"opacity-12",opacity_15:"opacity-15",opacity_20:"opacity-20",opacity_25:"opacity-25",opacity_30:"opacity-30",opacity_35:"opacity-35",opacity_40:"opacity-40",opacity_45:"opacity-45",opacity_50:"opacity-50",opacity_55:"opacity-55",opacity_60:"opacity-60",opacity_65:"opacity-65",opacity_70:"opacity-70",opacity_75:"opacity-75",opacity_80:"opacity-80",opacity_85:"opacity-85",opacity_90:"opacity-90",opacity_95:"opacity-95",opacity_100:"opacity-100"},padding:{all:{p_0:"p-0",p_1:"p-1",p_2:"p-2",p_3:"p-3",p_4:"p-4",p_5:"p-5",p_6:"p-6",p_7:"p-7",p_8:"p-8",p_9:"p-9",p_10:"p-10",p_11:"p-11",p_12:"p-12",p_14:"p-14",p_16:"p-16",p_20:"p-20"},x:{px_0:"px-0",px_1:"px-1",px_2:"px-2",px_3:"px-3",px_4:"px-4",px_5:"px-5",px_6:"px-6",px_7:"px-7",px_8:"px-8",px_9:"px-9",px_10:"px-10",px_11:"px-11",px_12:"px-12",px_14:"px-14",px_16:"px-16",px_20:"px-20"},y:{py_0:"py-0",py_1:"py-1",py_2:"py-2",py_3:"py-3",py_4:"py-4",py_5:"py-5",py_6:"py-6",py_7:"py-7",py_8:"py-8",py_9:"py-9",py_10:"py-10",py_11:"py-11",py_12:"py-12",py_14:"py-14",py_16:"py-16",py_20:"py-20"},top:{pt_0:"pt-0",pt_1:"pt-1",pt_2:"pt-2",pt_3:"pt-3",pt_4:"pt-4",pt_5:"pt-5",pt_6:"pt-6",pt_7:"pt-7",pt_8:"pt-8",pt_9:"pt-9",pt_10:"pt-10",pt_11:"pt-11",pt_12:"pt-12",pt_14:"pt-14",pt_16:"pt-16",pt_20:"pt-20"},right:{pr_0:"pr-0",pr_1:"pr-1",pr_2:"pr-2",pr_3:"pr-3",pr_4:"pr-4",pr_5:"pr-5",pr_6:"pr-6",pr_7:"pr-7",pr_8:"pr-8",pr_9:"pr-9",pr_10:"pr-10",pr_11:"pr-11",pr_12:"pr-12",pr_14:"pr-14",pr_16:"pr-16",pr_20:"pr-20"},bottom:{pb_0:"pb-0",pb_1:"pb-1",pb_2:"pb-2",pb_3:"pb-3",pb_4:"pb-4",pb_5:"pb-5",pb_6:"pb-6",pb_7:"pb-7",pb_8:"pb-8",pb_9:"pb-9",pb_10:"pb-10",pb_11:"pb-11",pb_12:"pb-12",pb_14:"pb-14",pb_16:"pb-16",pb_20:"pb-20"},left:{pl_0:"pl-0",pl_1:"pl-1",pl_2:"pl-2",pl_3:"pl-3",pl_4:"pl-4",pl_5:"pl-5",pl_6:"pl-6",pl_7:"pl-7",pl_8:"pl-8",pl_9:"pl-9",pl_10:"pl-10",pl_11:"pl-11",pl_12:"pl-12",pl_14:"pl-14",pl_16:"pl-16",pl_20:"pl-20"}},extend:{superscript:"sup",subscript:"sub"},textAlign:{left:"text-left",center:"text-center",right:"text-right",justify:"text-justify"},display:{flex:"flex",block:"block",inline:"inline",inline_block:"inline-block"},flexDirection:{row:"flex-row",column:"flex-col",row_reverse:"flex-row-reverse",column_reverse:"flex-col-reverse"},flexWrap:{wrap:"flex-wrap",nowrap:"flex-nowrap",wrap_reverse:"flex-wrap-reverse"},justifyContent:{start:"justify-start",end:"justify-end",center:"justify-center",between:"justify-between",around:"justify-around",evenly:"justify-evenly"},alignItems:{start:"items-start",end:"items-end",center:"items-center",baseline:"items-baseline",stretch:"items-stretch"}},useCssClasses:!0,useButtonPlugin:!1,enableDragResize:!0,simpleTextSettings:!1,defaultHeaders:{"Content-Type":"application/json"},headers:{},metadata:{},consoleLog:!1,AIToolbar:!1,sendCommandUrl:"",enableDictation:!1,hideImageGeneration:!1,imageAutoUpscale:!0,speechTranscribeUrl:"",autoSendDelay:4e3,onlineDemo:!1,startAIAssistant:!1,temperature:.6,topP:.9,useMediaRecorder:!0,encoderPath:"",commandPlaceholders:{general:"Create a section containing a short article with ideas for outdoor activities.",ask_questions:"Can you explain our galaxy in a beginner-friendly and interesting way?",edit_block:"Align the headline to the center",generate_image:"City view from the window, sunset, realistic photo"},disclaimerAI:"The feature you're about to use utilizes AI in some of its processes. \n It's important to understand that AI systems have limitations.\n There may be instances where the results are not 100% accurate or may provide unexpected responses or information.\n As a user, it's your responsibility to independently verify any information or results obtained through this AI-powered feature. \n Our team is dedicated to continuously improving its performance and accuracy to enhance your experience.",showDisclaimer:!0,enableShortCommands:!0,speechRecognitionLang:"en-US",triggerWords:{send:["send","okay","ok","execute","run"],abort:["abort","cancel"],clear:["clear","erase"]},similarityThreshold:.65,headlineList:["We're [CompanyName]. Full stack development with a spark of creativity."],mediaPath:"assets/gallery/",media:{slider:["slide-01.jpg","slide-02.jpg"],blank_video:"blank.mp4",videos:["beach1.mp4","beach2.mp4"],youtube_videos:["https://www.youtube-nocookie.com/embed/P5yHEKqx86U?rel=0&autoplay=1&color=white"],maps:["https://www.youtube-nocookie.com/embed/P5yHEKqx86U?rel=0&autoplay=1&color=white"],audios:["example.mp3"],images:{square:["desk.jpg","chair.jpg","coffee.jpg","product.jpg","table.jpg","person-01.jpg","person-02.jpg","person-03.jpg","person-04.jpg","person-05.jpg","person-06.jpg","person-08.jpg"]},bg_images:{box:["person-01.jpg","person-02.jpg","person-03.jpg","person-04.jpg","person-05.jpg","person-06.jpg","person-07.jpg","person-08.jpg","person-09.jpg","person-10.jpg","building.jpg","desk.jpg","chair.jpg","coffee.jpg","product.jpg","table.jpg"],small_box:["person-01.jpg","person-03.jpg","person-04.jpg","person-05.jpg","person-10.jpg","chair.jpg","coffee.jpg","product.jpg","table.jpg"],section_text_left:["header-01.jpg","header-02.jpg","header-03.jpg","header-05.jpg","header-08.jpg","header-10b.jpg","header-14.jpg"],section_text_center:["header-07.jpg","header-11.jpg","header-12.jpg","header-13.jpg"],section_text_right:["header-04.jpg","header-05b.jpg","header-06.jpg","header-08b.jpg","header-09.jpg","header-10.jpg","header-14b.jpg","header-15.jpg"]}},shortCommandList:{undo:["undo"],redo:["undo"],increase:["increase","bigger","larger","enlarge"],decrease:["decrease","smaller"],bold:["bold"],italic:["italic"],underline:["underline"],strikethrough:["strikethrough"],superscript:["superscript"],subscript:["subscript"],uppercase:["uppercase"],lowercase:["lowercase"],capitalize:["capitalize"],clean:["clean"]},commandList:{new_section:["new section","create section","add section","craft section","develop section","build section","construct section","design section"],redesign:["redesign layout","change layout","change placement","decide placement","decide layout"],two_boxes:["2 boxes","two boxes"],select:["select","select first","select first block"],select_next:["select next","select after","select next block","select next row"],select_previous:["select previous","select before","select previous block","select previous row"],select_last:["select last","select last block"],select_block:["select block"],unselect_block:["unselect","unselect block"],select_headline:["select headline"],select_paragraph:["select paragraph"],select_button:["select button"],select_space:["select space"],select_image:["select image"],change_font:["change font","change typography","change style"],fade_in:["fade in"],fade_in_up:["fade in up"],slide_up:["slide up"],zoom_in:["zoom in"],zoom_out:["zoom out"],animate_once:["animate once"],always_animate:["always animate"],remove_animation:["remove animation","clear animation","remove fade in","clear fade in","remove slide up","clear slide up","remove zoom in","clear zoom in","remove zoom out","clear zoom out"],add_bg_color:["add background color","set background color"],add_bg_image:["add background image","add background"],change_bg_color:["change background color"],change_bg_image:["change background image","change background"],remove_bg_color:["remove background color","clear background color"],remove_bg:["remove background","remove background image","clear background","clear background image"],increase_content_width:["increase content width","enlarge content width"],decrease_content_width:["decrease content width","reduce content width"],clear_content_width:["clear content width","remove content width","make content full","full width content"],make_content_light:["make content white","make content light","make text white","make text light","change content white","change content light","change text white","change text light","change to white content","change to light content","change to white text","change to light text"],make_content_dark:["make content black","make content dark","make text black","make text dark","change content black","change content dark","change text black","change text dark","change to black content","change to dark content","change to black text","change to dark text"],make_section_height_10:["make section height 10"],make_section_height_15:["make section height 15"],make_section_height_20:["make section height 20"],make_section_height_25:["make section height 25"],make_section_height_30:["make section height 30"],make_section_height_40:["make section height 40"],make_section_height_50:["make section height 50"],make_section_height_60:["make section height 60"],make_section_height_70:["make section height 70"],make_section_height_75:["make section height 75"],make_section_height_80:["make section height 80"],make_section_height_85:["make section height 85"],make_section_height_90:["make section height 90"],make_section_height_100:["make section height 100"],make_section_height_auto:["make section height auto"],suggest_headline:["suggest headline","suggest header","suggest title","write headline","write header","write title"],suggest_text:["suggest text","write text"],add_headline:["add headline","add header","add title"],add_paragraph:["add paragraph"],add_image:["add image"],add_youtube:["add youtube"],add_video:["add video"],remove_video:["remove video","clear video"],add_bg_video:["add background video"],remove_bg_video:["remove background video","clear background video"],add_slider:["add slider"],remove_slider:["remove slider","clear slider"],add_bg_slider:["add background slider"],remove_bg_slider:["remove background slider","clear background slider"],add_audio:["add audio","add music","add mp3"],add_map:["add map","add google map"],add_table:["add table"],add_social:["add social"],add_icon:["add icon"],add_button:["add button"],add_2buttons:["add 2 button","add 2 buttons"],add_space:["add space"],position_before:["above","before"],increase_line_height:["increase line height","increase line spacing","increase text spacing","enlarge line height","enlarge line spacing","enlarge text spacing","bigger line height","bigger line spacing","bigger text spacing","make line height bigger","make line spacing bigger","make text spacing bigger"],increase_default_line_height:["increase default line height","increase default line spacing","increase default text spacing","enlarge default line height","enlarge default line spacing","enlarge default text spacing","bigger default line height","bigger default line spacing","bigger default text spacing","make default line height bigger","make default line spacing bigger","make default text spacing bigger"],decrease_line_height:["decrease line height","decrease line spacing","decrease text spacing","reduce line height","reduce line spacing","reduce text spacing","smaller line height","smaller line spacing","smaller text spacing","make line height smaller","make line spacing smaller","make text spacing smaller"],decrease_default_line_height:["decrease default line height","decrease default line spacing","decrease default text spacing","reduce default line height","reduce default line spacing","reduce default text spacing","smaller default line height","smaller default line spacing","smaller default text spacing","make default line height smaller","make default line spacing smaller","make default text spacing smaller"],increase_font_size:["increase font","increase size","increase font size","increase text","increase size","increase text size","enlarge font","enlarge size","enlarge font size","enlarge text","enlarge size","enlarge text size","text bigger","font bigger","size bigger"],decrease_font_size:["decrease font","decrease size","decrease font size","decrease text","decrease size","decrease text size","reduce font","reduce size","reduce font size","reduce text","reduce size","reduce text size","text smaller","font smaller","size smaller"],increase_default_font_size:["increase default font","increase default size","increase default font size","increase default text","increase default size","increase default text size","enlarge default font","enlarge default size","enlarge default font size","enlarge default text","enlarge default text size","default text bigger","default font bigger","default size bigger","increase default content","increase default content size","enlarge default content","enlarge default content size"],decrease_default_font_size:["decrease default font","decrease default size","decrease default font size","decrease default text","decrease default size","decrease default text size","reduce default font","reduce default size","reduce default font size","reduce default text","reduce default text size","default text smaller","default font smaller","default size smaller","decrease default content","decrease default content size","reduce default content","reduce default content size"],clear_font_size:["clear font size","remove font size","clear text size","remove text size","use default font size"],align_left:["align left","align text left","left aligned"],align_center:["align center","align text center","center aligned"],align_right:["align right","align text right","right aligned"],align_full:["align full","align justify","justify","justify text","justify full"],clear_alignment:["clear alignment","remove alignment","clear text alignment","remove text alignment"],move_content_left:["move content left","align content left"],move_content_center:["move content center","align content center"],move_content_right:["move content right","align content right"],move_content_top:["move content top","align content top"],move_content_bottom:["move content bottom","align content bottom"],align_content_top_left:["move content top left","align content top left"],align_content_top_right:["move content top right","align content top right"],align_content_bottom_left:["move content bottom left","align content bottom left"],align_content_bottom_right:["move content bottom right","align content bottom right"],increase_space:["more space","increase space","enlarge space"],decrease_space:["less space","decrease space","reduce space"],move_up:["move up"],move_down:["move down"],move_row_up:["move row up"],move_row_down:["move row down"],duplicate_row:["duplicate row","copy row"],remove_row:["remove row","delete row"],move_col_left:["move left","move column left"],move_col_right:["move right","move column right"],duplicate_col:["duplicate column","copy column"],remove_col:["remove column","delete column"],move_column_up:["move column up"],move_column_down:["move column down"],move_section_up:["move section up"],move_section_down:["move section down"],move_section_top:["move section top"],move_section_bottom:["move section bottom"],duplicate_section:["duplicate section","copy section"],remove_section:["remove section","delete section"],remove_content:["remove content","remove all text","remove all content","delete content","delete all text","delete all content","clear content","clear all text","clear all content"],add_content:["add content","add text"]},commandInfo:{general:{title:"General",description:"Commands for designing or editing.",list:["Add a section that highlights our AI-powered web solutions. Include a compelling headline, a paragraph, and two buttons named 'Our Works' and 'Get in Touch'. Also, add a background image.","Create a section containing an article on ideas for outdoor activities. Include a minimum of 300 words.","Can you suggest a captivating headline for us and replace the current one?","Add a section showcasing our AI-powered innovations. Craft an attention-grabbing headline, provide explanations, incorporate an image, and add an enticing call-to-action.","Create a section containing a feature list of our wood cabin for rent:<br>\n- Scenic forest view<br>\n- Modern comforts<br>\n- Outdoor escape<br>\nAdd an icon for each list item.","Add a section highlighting the features of our creative arts courses:<br>\n- Hands-on projects<br>\n- Guidance from experts<br>\nAdd an image for each feature.","Revise the headline, paragraph, and all the text using alternative ideas.","Let's redesign the layout. Surprise me with a new idea!","Create a new section showcasing a photo gallery of our latest photography workshop. Includes up to 3 photo placeholders.","Do you see the button with a gray background? Please change the background color to light green.","Underline the phrase 'every monday' and change the color to dark blue.","Summarize this content in 100 words."]},others:{title:"Ask Questions or Request Information",description:"Commands that are <u>not related to designing and editing of the current content</u>.",list:["Provide well-researched information about bookstores in the Melbourne city area that offer collections of classic titles. Include specific details such as locations, website links, the range of classic titles they offer, and any unique features they have.","Explain our galaxy in a beginner-friendly and interesting way.","Can you explain the process of baking a classic chocolate cake from scratch?","Provide me with a 10-hour plan for learning practical data science."]},block:{title:"Edit Selected Block",description:"Specifically target the selected block for editing, providing more precise results.",list:["Enhance the content by including introductory paragraphs after the title.","Add a space between the title and the button.","Increase the space between the title and the paragraph.","Apply a gradient text color from red to orange horizontally to the title.","Rewrite the headline with alternative ideas","Reduce the title font size.","Add a link on the text 'Download' that directs to: https://example.com/download","Add a new block containing a Google map showing local cafes in the Perth city area."]},image:{title:"Image",description:"Generate image for the selected image or background",list:["A small office building in a distant view, surrounded by a warm blend of brown and orange hues against a serene blue sky. Embrace a muted color palette with pastel tones, emphasizing natural and clean aesthetics. Craft a simple yet impactful composition with generous negative space, channeling a minimalist look that exudes brightness and sophistication. Infuse the scene with a style reminiscent of architecture magazines, ensuring a full focus background that complements the building's design. Utilize high-quality equipment such as an 8K UHD camera and DSLR for impeccable detail, and employ soft lighting to enhance the overall visual appeal.","A minimalist wood cabin is captured from a distance, surrounded by a sea of grass, bathed in the soft, breathtaking sunlight of 17:00, under an expansive blue sky. The image is crafted in a true minimalist photographic style, emphasizing the bright open sky and featuring lots of white space.","A simple wooden table adorned with a petite vase and a vibrant yellow flower. Opt for a clean background with ample white space, prioritizing minimalism. Cultivate a muted color palette and pastel tones to create a serene atmosphere. Employ soft lighting to enhance the gentle ambiance. Aim for a style reminiscent of interior magazines, capturing the essence of sophistication and simplicity in every detail."]},selection:{title:"Selection & Layout",list:["Select the headline","Select the next block","Move up","Move down","Duplicate row","Remove row","Move column left","Move column right","Duplicate column","Remove column","Move section up","Move section down"]},section:{title:"Section",list:["Add a background image","Change the background image","Add a background slider","Add a background video","Clear background","Adjust the section height to 70%","Change the section height to 100%","Set the section height to auto"]},typography:{title:"Typography",list:["Change the font"]},content:{title:"Content",list:["Set the content color to white","Set the content color to black","Increase the width of the content","Reduce the width of the content","Increase the default font size","Increase the default line height","Clear the content","Add new content","Move the content to the left","Move the content to the center","Move the content to the right","Move the content to the top"]},element:{title:"Element",list:["Add a headline","Add a paragraph","Add an image","Add a Youtube video","Add a button","Add two buttons","Add a space","Increase the space"]},text:{title:"Text Formatting",list:["Increase font size","Clear font size","Align center","Align right","Align justify","Clear alignment","Bold","Italic","Underline","Strikethrough","Uppercase","Clean"]},animation:{title:"Animation",list:["Add a fade in animation","Add fade in up animation","Add slide up animation","Add zoom in animation","Add zoom out animation","Clear the animation","Animate once","Always animate"]}},commandInfoCanvasMode:{general:{title:"General (on standard section)",description:"Commands for designing or editing.",list:["Add a section that highlights our AI-powered web solutions. Include a compelling headline, a paragraph, and two buttons named 'Our Works' and 'Get in Touch'. Also, add a background image.","Create a section containing an article on ideas for outdoor activities. Include a minimum of 300 words.","Can you suggest a captivating headline for us and replace the current one?","Add a section showcasing our AI-powered innovations. Craft an attention-grabbing headline, provide explanations, incorporate an image, and add an enticing call-to-action.","Create a section containing a feature list of our wood cabin for rent:<br>\n- Scenic forest view<br>\n- Modern comforts<br>\n- Outdoor escape<br>\nAdd an icon for each list item.","Add a section highlighting the features of our creative arts courses:<br>\n- Hands-on projects<br>\n- Guidance from experts<br>\nAdd an image for each feature.","Revise the headline, paragraph, and all the text using alternative ideas.","Let's redesign the layout. Surprise me with a new idea!","Create a new section showcasing a photo gallery of our latest photography workshop. Includes up to 3 photo placeholders.","Do you see the button with a gray background? Please change the background color to light green.","Underline the phrase 'every monday' and change the color to dark blue.","Summarize this content in 100 words."]},general2:{title:"General (on canvas section)",description:"Commands for designing or editing.",list:["Add a block that highlights our AI-powered web solutions. Include a compelling headline, a paragraph, and two buttons named 'Our Works' and 'Get in Touch'. ","Create an article block on ideas for outdoor activities. Include a minimum of 300 words.","Add a block showcasing our AI-powered innovations. Craft an attention-grabbing headline, provide explanations, incorporate an image, and add an enticing call-to-action.","Create a feature list of our wood cabin for rent:<br>\n- Scenic forest view<br>\n- Modern comforts<br>\n- Outdoor escape<br>\nAdd an icon for each list item.","Add a block highlighting the features of our creative arts courses:<br>\n- Hands-on projects<br>\n- Guidance from experts<br>\nAdd an image for each feature.","Create a new block showcasing a photo gallery of our latest photography workshop. Includes up to 3 photo placeholders.","Create a block highlighting what sets our web development studio apart. Include a maximum of 3 list items, each with an item title and a short paragraph with less than 20 words. Also, add a numbering.","My name is Emilie, and I'm a product designer with 5 years of experience. Please create a new 'About Me' block with a headline, description, and two buttons named 'My Works' and 'Get in Touch'. Additionally, please include an image."]},general3:{title:"General (on canvas section with block selection)",description:"Commands for designing or editing.",list:["Rewrite the headline to captivate readers and maximize impact","Change the button text with an alternative wording","Do you see the button with a gray background? Please change the background color to light green.","Summarize this content in 100 words."]},others:{title:"Ask Questions or Request Information",description:"Commands that are <u>not related to designing and editing of the current content</u>.",list:["Provide well-researched information about bookstores in the Melbourne city area that offer collections of classic titles. Include specific details such as locations, website links, the range of classic titles they offer, and any unique features they have.","Explain our galaxy in a beginner-friendly and interesting way.","Can you explain the process of baking a classic chocolate cake from scratch?","Provide me with a 10-hour plan for learning practical data science."]},block:{title:"Edit Selected Text",description:"Specifically target the selected block for editing, providing more precise results.",list:["Enhance the content by including introductory paragraphs after the title.","Add a space between the title and the button.","Increase the space between the title and the paragraph.","Apply a gradient text color from red to orange horizontally to the title.","Rewrite the headline with alternative ideas","Reduce the title font size.","Add a link on the text 'Download' that directs to: https://example.com/download","Add a new block containing a Google map showing local cafes in the Perth city area."]},image:{title:"Image",description:"Generate image for the selected image or background",list:["A small office building in a distant view, surrounded by a warm blend of brown and orange hues against a serene blue sky. Embrace a muted color palette with pastel tones, emphasizing natural and clean aesthetics. Craft a simple yet impactful composition with generous negative space, channeling a minimalist look that exudes brightness and sophistication. Infuse the scene with a style reminiscent of architecture magazines, ensuring a full focus background that complements the building's design. Utilize high-quality equipment such as an 8K UHD camera and DSLR for impeccable detail, and employ soft lighting to enhance the overall visual appeal.","A minimalist wood cabin is captured from a distance, surrounded by a sea of grass, bathed in the soft, breathtaking sunlight of 17:00, under an expansive blue sky. The image is crafted in a true minimalist photographic style, emphasizing the bright open sky and featuring lots of white space.","A simple wooden table adorned with a petite vase and a vibrant yellow flower. Opt for a clean background with ample white space, prioritizing minimalism. Cultivate a muted color palette and pastel tones to create a serene atmosphere. Employ soft lighting to enhance the gentle ambiance. Aim for a style reminiscent of interior magazines, capturing the essence of sophistication and simplicity in every detail."]}},demoMode:!1,onAddSectionOpen:function(){},contentHtmlStart:'<div class="is-container is-builder container"><div class="row clearfix"><div class="column full">',contentHtmlEnd:"</div></div></div>"};if(this.settings=Object.assign(this,i,t),this.screenMode=this.settings.screenMode,this.onLoadHtml=null,2===this.contentStylesVersion&&(this.settings.contentStyles=this.settings.contentStylesV2),Object.keys(this.settings.lang).length>0&&(window._txt=this.settings.lang),this.clearPreferences&&(localStorage.removeItem("_disclaimershown"),localStorage.removeItem("_screenmode")),this.controlPanel&&(localStorage.removeItem("_zoom"),localStorage.removeItem("_livepreview"),localStorage.removeItem("_disableanimation")),this.uploadFile){const t=async t=>{const e=await this.uploadFile(t);this.returnUrl(e.url)};this.onImageUpload=t,this.onVideoUpload=t,this.onAudioUpload=t,this.onMediaUpload=t,this.onFileUpload=t,this.onUploadCoverImage=async t=>{const e=await this.uploadFile(t);this.boxImage(e.url)}}if(this.upload){const t=async t=>{const e=t.target.files[0],i=await this.upload(e);this.returnUrl(i.url)};this.onImageUpload=t,this.onVideoUpload=t,this.onAudioUpload=t,this.onMediaUpload=t,this.onFileUpload=t,this.onUploadCoverImage=async t=>{const e=t.target.files[0],i=await this.upload(e);this.boxImage(i.url)}}if(this.topSpace&&(this.undoRedoButtons=!1,this.toggleDeviceButton=!1,this.deviceButtons=!1),this.templateJSON=[{url:this.settings.designUrl1,path:this.settings.designPath,pathReplace:this.settings.designPathReplace},{url:this.settings.designUrl2,path:this.settings.designPath,pathReplace:this.settings.designPathReplace}],0!==this.settings.templates.length&&""===this.settings.templateThumbnailSize){let t=document.body.clientWidth;this.settings.templateThumbnailSize=t<=1440?"small":t>1440&&t<=1920?"medium":"large"}""!==this.settings.imageSelect?this.settings.imageselect=this.settings.imageSelect:""!==this.settings.imageselect&&(this.settings.imageSelect=this.settings.imageselect),""!==this.settings.fileSelect?this.settings.fileselect=this.settings.fileSelect:""!==this.settings.fileselect&&(this.settings.fileSelect=this.settings.fileselect),""!==this.settings.videoSelect?this.settings.videoselect=this.settings.videoSelect:""!==this.settings.videoselect&&(this.settings.videoSelect=this.settings.videoselect),this.settings.filePicker&&(this.settings.imageSelect=this.settings.filePicker,this.settings.videoSelect=this.settings.filePicker,this.settings.audioSelect=this.settings.filePicker,this.settings.fileSelect=this.settings.filePicker,this.settings.mediaSelect=this.settings.filePicker,this.settings.imageselect=this.settings.filePicker,this.settings.fileselect=this.settings.filePicker,this.settings.videoselect=this.settings.filePicker);const n=this.settings.assetBasePath;void 0!==n&&(this.settings.iframeSrc=t.iframeSrc||`${n}blank.html`,this.settings.assetPath=t.assetPath||`${n}assets/`,this.settings.fontAssetPath=t.fontAssetPath||`${n}assets/fonts/`,this.settings.snippetUrl=t.snippetUrl||`${n}assets/minimalist-blocks/content.js`,this.settings.snippetPath=t.snippetPath||`${n}assets/minimalist-blocks/`,this.settings.snippetPathReplace=t.snippetPathReplace||["assets/minimalist-blocks/",`${n}assets/minimalist-blocks/`],this.settings.modulePath=t.modulePath||`${n}assets/modules/`,this.settings.pluginPath=t.pluginPath||`${n}contentbuilder/`,this.settings.contentStylePath=t.contentStylePath||`${n}assets/styles/`,this.settings.templates=t.templates||[{url:`${n}assets/templates-simple/templates.js`,path:`${n}assets/templates-simple/`,pathReplace:[],numbering:!0,showNumberOnHover:!0},{url:`${n}assets/templates-quick/templates.js`,path:`${n}assets/templates-quick/`,pathReplace:[],numbering:!0,showNumberOnHover:!0},{url:`${n}assets/templates-animated/templates.js`,path:`${n}assets/templates-animated/`,pathReplace:[],numbering:!0,showNumberOnHover:!0}],this.settings.assetsFolder=t.assetsFolder||`${n}assets/formfiles/`,this.settings.templatesUrl=t.templatesUrl||`${n}assets/templates.json`,this.settings.exampleImageUrl=t.exampleImageUrl||`${n}assets/formfiles/ai-V8Khk.jpg`,this.settings.exampleVideoUrl=t.exampleVideoUrl||`${n}assets/formfiles/ai-thhyR.mp4`,this.settings.exampleAudioUrl=t.exampleAudioUrl||`${n}assets/formfiles/ai-3EVMb.wav`),this.settings.snippetPathReplace.length>0&&0===this.settings.designPathReplace.length&&(this.settings.designPathReplace=this.settings.snippetPathReplace),this.isIPad()&&(this.settings.iframeDragDrop=!0);let o=document.querySelector("#_cbhtml");o||(o=document.createElement("div"),o.id="_cbhtml",o.style.visibility="hidden",o.className="is-ui",document.body.appendChild(o),o=document.querySelector("#_cbhtml")),this.builderStuff=o,(t=>{const i=t.builderStuff;e.appendHtml(i,'<svg width="0" height="0" style="position:absolute;display:none;">\n <defs>\n\n <symbol viewBox="0 0 512 512" id="ion-android-add"><path d="M416 277.333H277.333V416h-42.666V277.333H96v-42.666h138.667V96h42.666v138.667H416v42.666z"></path></symbol>\n <symbol viewBox="0 0 512 512" id="ion-edit"><path d="M163 439.573l-90.569-90.569L322.78 98.656l90.57 90.569zM471.723 88.393l-48.115-48.114c-11.723-11.724-31.558-10.896-44.304 1.85l-45.202 45.203 90.569 90.568 45.202-45.202c12.743-12.746 13.572-32.582 1.85-44.305zM64.021 363.252L32 480l116.737-32.021z"></path></symbol>\n <symbol viewBox="0 0 2048.0 2048.0" id="icon-snippets"><g id="document" transform="matrix(1,0,0,1,1024.0,1024.0)">\t\t\t<path d="M-727.581,329.502 L318.058,329.502 L318.058,-527.853 L-727.581,-527.853 L-727.581,329.502 Z " fill="#ffffff" fill-opacity="1.00" stroke-width="85.63" stroke="#000000" stroke-linecap="square" stroke-linejoin="miter" />\t\t\t<path d="M-347.749,652.594 L697.89,652.594 L697.89,-204.761 L-347.749,-204.761 L-347.749,652.594 Z " fill="#ffffff" fill-opacity="1.00" stroke-width="85.63" stroke="#000000" stroke-linecap="square" stroke-linejoin="miter" />\t\t</g></symbol>\n <symbol viewBox="0 0 512 512" id="ion-ios-copy-outline"><path d="M304 96h-16v80h80v-16h-64z"></path><path d="M325.3 64H160v48h-48v336h240v-48h48V139l-74.7-75zM336 432H128V128h32v272h176v32zm48-48H176V80h142.7l65.3 65.6V384z"></path></symbol>\n \n <symbol viewBox="0 0 24 24" id="icon-arrow-bar-to-up" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"/>\n <line x1="12" y1="10" x2="12" y2="20" />\n <line x1="12" y1="10" x2="16" y2="14" />\n <line x1="12" y1="10" x2="8" y2="14" />\n <line x1="4" y1="4" x2="20" y2="4" />\n </symbol>\n <symbol viewBox="0 0 24 24" id="icon-arrow-bar-to-down" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"/>\n <line x1="4" y1="20" x2="20" y2="20" />\n <line x1="12" y1="14" x2="12" y2="4" />\n <line x1="12" y1="14" x2="16" y2="10" />\n <line x1="12" y1="14" x2="8" y2="10" />\n </symbol>\n <symbol viewBox="0 0 24 24" id="icon-space-between" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"/>\n <line x1="4" y1="4" x2="20" y2="4" />\n <line x1="4" y1="20" x2="20" y2="20" />\n </symbol>\n\n <symbol id="icon-rotate-clockwise" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <path d="M9 4.55a8 8 0 0 1 6 14.9m0 -4.45v5h5"></path>\n <line x1="5.63" y1="7.16" x2="5.63" y2="7.17"></line>\n <line x1="4.06" y1="11" x2="4.06" y2="11.01"></line>\n <line x1="4.63" y1="15.1" x2="4.63" y2="15.11"></line>\n <line x1="7.16" y1="18.37" x2="7.16" y2="18.38"></line>\n <line x1="11" y1="19.94" x2="11" y2="19.95"></line>\n </symbol>\n\n <symbol id="icon-rotate-2" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <path d="M15 4.55a8 8 0 0 0 -6 14.9m0 -4.45v5h-5"></path>\n <line x1="18.37" y1="7.16" x2="18.37" y2="7.17"></line>\n <line x1="13" y1="19.94" x2="13" y2="19.95"></line>\n <line x1="16.84" y1="18.37" x2="16.84" y2="18.38"></line>\n <line x1="19.37" y1="15.1" x2="19.37" y2="15.11"></line>\n <line x1="19.94" y1="11" x2="19.94" y2="11.01"></line>\n </symbol>\n\n <symbol viewBox="0 0 24 24" id="icon-arrows-diagonal" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <polyline points="16 4 20 4 20 8"></polyline>\n <line x1="14" y1="10" x2="20" y2="4"></line>\n <polyline points="8 20 4 20 4 16"></polyline>\n <line x1="4" y1="20" x2="10" y2="14"></line>\n </symbol>\n \n <symbol viewBox="0 0 24 24" id="icon-arrows-diagonal-minimize" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <path d="M18 10h-4v-4"></path>\n <path d="M20 4l-6 6"></path>\n <path d="M6 14h4v4"></path>\n <path d="M10 14l-6 6"></path>\n </symbol>\n\n <symbol id="icon-circle-half" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <circle cx="12" cy="12" r="9"></circle>\n <path d="M12 3v18"></path>\n <path d="M12 14l7 -7"></path>\n <path d="M12 19l8.5 -8.5"></path>\n <path d="M12 9l4.5 -4.5"></path>\n </symbol>\n\n <symbol id="icon-box-multiple" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <rect x="7" y="3" width="14" height="14" rx="2"></rect>\n <path d="M17 17v2a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2v-10a2 2 0 0 1 2 -2h2"></path>\n </symbol>\n\n <symbol id="icon-typography" viewBox="0 0 24 24" stroke-width="1,3" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <line x1="4" y1="20" x2="7" y2="20"></line>\n <line x1="14" y1="20" x2="21" y2="20"></line>\n <line x1="6.9" y1="15" x2="13.8" y2="15"></line>\n <line x1="10.2" y1="6.3" x2="16" y2="20"></line>\n <polyline points="5 20 11 4 13 4 20 20"></polyline>\n </symbol>\n\n <symbol id="icon-hand-move" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <path d="M8 13v-8.5a1.5 1.5 0 0 1 3 0v7.5"></path>\n <path d="M11 11.5v-2a1.5 1.5 0 0 1 3 0v2.5"></path>\n <path d="M14 10.5a1.5 1.5 0 0 1 3 0v1.5"></path>\n <path d="M17 11.5a1.5 1.5 0 0 1 3 0v4.5a6 6 0 0 1 -6 6h-2h.208a6 6 0 0 1 -5.012 -2.7l-.196 -.3c-.312 -.479 -1.407 -2.388 -3.286 -5.728a1.5 1.5 0 0 1 .536 -2.022a1.867 1.867 0 0 1 2.28 .28l1.47 1.47"></path>\n <path d="M2.541 5.594a13.487 13.487 0 0 1 2.46 -1.427"></path>\n <path d="M14 3.458c1.32 .354 2.558 .902 3.685 1.612"></path>\n </symbol>\n \n <symbol id="icon-wand" viewBox="0 0 24 24" stroke-width="1.05" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <polyline points="6 21 21 6 18 3 3 18 6 21"></polyline>\n <line x1="15" y1="6" x2="18" y2="9"></line>\n <path d="M9 3a2 2 0 0 0 2 2a2 2 0 0 0 -2 2a2 2 0 0 0 -2 -2a2 2 0 0 0 2 -2"></path>\n <path d="M19 13a2 2 0 0 0 2 2a2 2 0 0 0 -2 2a2 2 0 0 0 -2 -2a2 2 0 0 0 2 -2"></path>\n </symbol>\n\n <symbol id="icon-pencil" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <path d="M4 20h4l10.5 -10.5a1.5 1.5 0 0 0 -4 -4l-10.5 10.5v4"></path>\n <line x1="13.5" y1="6.5" x2="17.5" y2="10.5"></line>\n </symbol>\n\n <symbol id="icon-window-maximize" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <rect x="3" y="16" width="5" height="5" rx="1"></rect>\n <path d="M4 12v-6a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-6"></path>\n <path d="M12 8h4v4"></path>\n <path d="M16 8l-5 5"></path>\n </symbol>\n\n <symbol id="icon-settings" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <path d="M10.325 4.317c.426 -1.756 2.924 -1.756 3.35 0a1.724 1.724 0 0 0 2.573 1.066c1.543 -.94 3.31 .826 2.37 2.37a1.724 1.724 0 0 0 1.065 2.572c1.756 .426 1.756 2.924 0 3.35a1.724 1.724 0 0 0 -1.066 2.573c.94 1.543 -.826 3.31 -2.37 2.37a1.724 1.724 0 0 0 -2.572 1.065c-.426 1.756 -2.924 1.756 -3.35 0a1.724 1.724 0 0 0 -2.573 -1.066c-1.543 .94 -3.31 -.826 -2.37 -2.37a1.724 1.724 0 0 0 -1.065 -2.572c-1.756 -.426 -1.756 -2.924 0 -3.35a1.724 1.724 0 0 0 1.066 -2.573c-.94 -1.543 .826 -3.31 2.37 -2.37c1 .608 2.296 .07 2.572 -1.065z"></path>\n <circle cx="12" cy="12" r="3"></circle>\n </symbol>\n\n <symbol id="icon-microphone" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <path d="M9 2m0 3a3 3 0 0 1 3 -3h0a3 3 0 0 1 3 3v5a3 3 0 0 1 -3 3h0a3 3 0 0 1 -3 -3z"></path>\n <path d="M5 10a7 7 0 0 0 14 0"></path>\n <path d="M8 21l8 0"></path>\n <path d="M12 17l0 4"></path>\n </symbol>\n <symbol id="icon-microphone-off" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <path d="M3 3l18 18"></path>\n <path d="M9 5a3 3 0 0 1 6 0v5a3 3 0 0 1 -.13 .874m-2 2a3 3 0 0 1 -3.87 -2.872v-1"></path>\n <path d="M5 10a7 7 0 0 0 10.846 5.85m2 -2a6.967 6.967 0 0 0 1.152 -3.85"></path>\n <path d="M8 21l8 0"></path>\n <path d="M12 17l0 4"></path>\n </symbol>\n <symbol id="icon-trash" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <path d="M4 7l16 0"></path>\n <path d="M10 11l0 6"></path>\n <path d="M14 11l0 6"></path>\n <path d="M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12"></path>\n <path d="M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3"></path>\n </symbol>\n <symbol id="icon-eraser" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <path d="M19 20h-10.5l-4.21 -4.3a1 1 0 0 1 0 -1.41l10 -10a1 1 0 0 1 1.41 0l5 5a1 1 0 0 1 0 1.41l-9.2 9.3"></path>\n <path d="M18 13.3l-6.3 -6.3"></path>\n </symbol>\n <symbol id="icon-refresh" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <path d="M20 11a8.1 8.1 0 0 0 -15.5 -2m-.5 -4v4h4"></path>\n <path d="M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4"></path>\n </symbol>\n <symbol id="icon-more" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <path d="M5 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"></path>\n <path d="M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"></path>\n <path d="M19 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"></path>\n </symbol>\n\n <symbol id="icon-arrow-down2" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <path d="M12 5l0 14"></path>\n <path d="M18 13l-6 6"></path>\n <path d="M6 13l6 6"></path>\n </symbol>\n <symbol id="icon-close" viewBox="0 0 24 24" stroke-width="1.6" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <path d="M18 6l-12 12"></path>\n <path d="M6 6l12 12"></path>\n </symbol>\n\n\n\n \n <symbol id="icon-right" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <path d="M9 6l6 6l-6 6"></path>\n </symbol>\n <symbol id="icon-close-right" viewBox="0 0 24 24" stroke-width="0.7" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <path d="M7 7l5 5l-5 5"></path>\n <path d="M13 7l5 5l-5 5"></path>\n </symbol>\n <symbol id="icon-pencil" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <path d="M4 20h4l10.5 -10.5a2.828 2.828 0 1 0 -4 -4l-10.5 10.5v4"></path>\n <path d="M13.5 6.5l4 4"></path>\n </symbol>\n <symbol id="icon-link" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <path d="M9 15l6 -6"></path>\n <path d="M11 6l.463 -.536a5 5 0 0 1 7.071 7.072l-.534 .464"></path>\n <path d="M13 18l-.397 .534a5.068 5.068 0 0 1 -7.127 0a4.972 4.972 0 0 1 0 -7.071l.524 -.463"></path>\n </symbol>\n <symbol id="icon-image" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <path d="M15 8h.01"></path>\n <path d="M3 6a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v12a3 3 0 0 1 -3 3h-12a3 3 0 0 1 -3 -3v-12z"></path>\n <path d="M3 16l5 -5c.928 -.893 2.072 -.893 3 0l5 5"></path>\n <path d="M14 14l1 -1c.928 -.893 2.072 -.893 3 0l3 3"></path>\n </symbol>\n <symbol id="icon-mood-smile" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"></path>\n <path d="M9 10l.01 0"></path>\n <path d="M15 10l.01 0"></path>\n <path d="M9.5 15a3.5 3.5 0 0 0 5 0"></path>\n </symbol>\n <symbol id="icon-eraser" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <path d="M19 20h-10.5l-4.21 -4.3a1 1 0 0 1 0 -1.41l10 -10a1 1 0 0 1 1.41 0l5 5a1 1 0 0 1 0 1.41l-9.2 9.3"></path>\n <path d="M18 13.3l-6.3 -6.3"></path>\n </symbol>\n <symbol id="icon-upload" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <path d="M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-2"></path>\n <path d="M7 9l5 -5l5 5"></path>\n <path d="M12 4l0 12"></path>\n </symbol>\n <symbol id="icon-settings" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <path d="M10.325 4.317c.426 -1.756 2.924 -1.756 3.35 0a1.724 1.724 0 0 0 2.573 1.066c1.543 -.94 3.31 .826 2.37 2.37a1.724 1.724 0 0 0 1.065 2.572c1.756 .426 1.756 2.924 0 3.35a1.724 1.724 0 0 0 -1.066 2.573c.94 1.543 -.826 3.31 -2.37 2.37a1.724 1.724 0 0 0 -2.572 1.065c-.426 1.756 -2.924 1.756 -3.35 0a1.724 1.724 0 0 0 -2.573 -1.066c-1.543 .94 -3.31 -.826 -2.37 -2.37a1.724 1.724 0 0 0 -1.065 -2.572c-1.756 -.426 -1.756 -2.924 0 -3.35a1.724 1.724 0 0 0 1.066 -2.573c-.94 -1.543 .826 -3.31 2.37 -2.37c1 .608 2.296 .07 2.572 -1.065z"></path>\n <path d="M9 12a3 3 0 1 0 6 0a3 3 0 0 0 -6 0"></path>\n </symbol>\n <symbol id="icon-viewcode" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <path d="M7 8l-4 4l4 4"></path>\n <path d="M17 8l4 4l-4 4"></path>\n <path d="M14 4l-4 16"></path>\n </symbol>\n <symbol id="icon-tool" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <path d="M7 10h3v-3l-3.5 -3.5a6 6 0 0 1 8 8l6 6a2 2 0 0 1 -3 3l-6 -6a6 6 0 0 1 -8 -8l3.5 3.5"></path>\n </symbol>\n <symbol id="icon-arrow-left" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <path d="M5 12l14 0"></path>\n <path d="M5 12l6 6"></path>\n <path d="M5 12l6 -6"></path>\n </symbol>\n <symbol id="icon-arrow-right" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <path d="M5 12l14 0"></path>\n <path d="M13 18l6 -6"></path>\n <path d="M13 6l6 6"></path>\n </symbol>\n <symbol id="icon-minus" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <path d="M5 12l14 0"></path>\n </symbol>\n <symbol id="icon-plus2" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <path d="M12 5l0 14"></path>\n <path d="M5 12l14 0"></path>\n </symbol>\n <symbol id="icon-arrow-back" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <path d="M9 14l-4 -4l4 -4"></path>\n <path d="M5 10h11a4 4 0 1 1 0 8h-1"></path>\n </symbol>\n <symbol id="icon-arrow-up" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <path d="M12 5l0 14"></path>\n <path d="M18 11l-6 -6"></path>\n <path d="M6 11l6 -6"></path>\n </symbol>\n <symbol id="icon-arrow-down" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <path d="M12 5l0 14"></path>\n <path d="M18 13l-6 6"></path>\n <path d="M6 13l6 6"></path>\n </symbol>\n <symbol id="icon-arrow-top" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <path d="M12 10l0 10"></path>\n <path d="M12 10l4 4"></path>\n <path d="M12 10l-4 4"></path>\n <path d="M4 4l16 0"></path>\n </symbol>\n <symbol id="icon-arrow-bottom" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <path d="M4 20l16 0"></path>\n <path d="M12 14l0 -10"></path>\n <path d="M12 14l4 -4"></path>\n <path d="M12 14l-4 -4"></path>\n </symbol>\n <symbol id="icon-copy" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <path d="M8 8m0 2a2 2 0 0 1 2 -2h8a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-8a2 2 0 0 1 -2 -2z"></path>\n <path d="M16 8v-2a2 2 0 0 0 -2 -2h-8a2 2 0 0 0 -2 2v8a2 2 0 0 0 2 2h2"></path>\n </symbol>\n <symbol id="icon-sidebar-right" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <path d="M4 4m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z"></path>\n <path d="M15 4l0 16"></path>\n </symbol>\n <symbol id="icon-upload" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <path d="M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-2"></path>\n <path d="M7 9l5 -5l5 5"></path>\n <path d="M12 4l0 12"></path>\n </symbol>\n <symbol id="icon-code-dots" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <path d="M15 12h.01"></path>\n <path d="M12 12h.01"></path>\n <path d="M9 12h.01"></path>\n <path d="M6 19a2 2 0 0 1 -2 -2v-4l-1 -1l1 -1v-4a2 2 0 0 1 2 -2"></path>\n <path d="M18 19a2 2 0 0 0 2 -2v-4l1 -1l-1 -1v-4a2 2 0 0 0 -2 -2"></path>\n </symbol>\n <symbol id="icon-dots" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <path d="M5 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"></path>\n <path d="M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"></path>\n <path d="M19 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"></path>\n </symbol>\n <symbol id="icon-chevron-down" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <path d="M6 9l6 6l6 -6"></path>\n </symbol>\n <symbol id="icon-chevron-uo" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <path d="M6 15l6 -6l6 6"></path>\n </symbol>\n\n <symbol id="icon-anim-timeline" viewBox="0 0 24 24" stroke-width="1.1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <path d="M9.225 18.412a1.595 1.595 0 0 1 -1.225 .588c-.468 0 -.914 -.214 -1.225 -.588l-4.361 -5.248a1.844 1.844 0 0 1 0 -2.328l4.361 -5.248a1.595 1.595 0 0 1 1.225 -.588c.468 0 .914 .214 1.225 .588l4.361 5.248a1.844 1.844 0 0 1 0 2.328l-4.361 5.248z"></path>\n <path d="M17 5l4.586 5.836a1.844 1.844 0 0 1 0 2.328l-4.586 5.836"></path>\n <path d="M13 5l4.586 5.836a1.844 1.844 0 0 1 0 2.328l-4.586 5.836"></path>\n </symbol>\n <symbol id="icon-download" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-2" /><path d="M7 11l5 5l5 -5" /><path d="M12 4l0 12" />\n </symbol>\n <symbol id="icon-blocks" viewBox="0 0 24 24" stroke-width="1.3" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M8 8m0 2a2 2 0 0 1 2 -2h8a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-8a2 2 0 0 1 -2 -2z" /><path d="M4 4l0 .01" /><path d="M8 4l0 .01" /><path d="M12 4l0 .01" /><path d="M16 4l0 .01" /><path d="M4 8l0 .01" /><path d="M4 12l0 .01" /><path d="M4 16l0 .01" />\n </symbol>\n\n </defs>\n </svg>')})(this),this.sidebar=new s(this),this.animateScroll=new Sy(this),this.timeline=new _y(this),this.util=new Cy(this),this.box=new Dx(this),this.section=new Nx(this),this.controlPanel&&(this.controlpanel=new D(this));const l=t=>{let e,i;if(t&&(this.iframe=t),this.iframe){e=this.iframe.contentWindow;let t=this.iframe.contentDocument||this.iframe.contentWindow.document;i=t,this.iframeDocument=t}else e=window,i=document;if(this.win=e,this.doc=i,this.iframe){let t=i.querySelector(".content-stuff");t||(t=document.createElement("div"),t.className="content-stuff is-ui",t.id="_cbhtml",i.body.appendChild(t)),this.contentStuff=t,this.stuff=new xy(this)}if(this.wrapperEl=this.doc.querySelector(this.wrapper),this.siteToken&&this.wrapperEl.setAttribute("data-site-token",this.siteToken),this.iframe){let t=document.querySelector(this.wrapper);if(t){let e=t.innerHTML,i=document.createRange();this.wrapperEl.innerHTML="",this.wrapperEl.appendChild(i.createContextualFragment(e))}}if(a_.hasClass(this.wrapperEl,"preview"))return void(this.preview=!0);a_.addClass(this.wrapperEl,"is-wrapper"),a_.addClass(this.wrapperEl,"is-edit");let n=this.settings.onChange;this.settings.onChange=(...t)=>{n&&n.apply(this,t),this.markContentChanged(),setTimeout((()=>{this.editor.livePreview.previewRefresh()}),100)};let s=this.settings.onAdd;this.settings.onAdd=t=>(s&&(t=s(t)),(t.includes("data-bottom-top")||t.includes("data-center-top"))&&setTimeout((()=>{this.win.pageReRender&&this.win.pageReRender()}),600),t),this.iframeSrc||(o.style.position="fixed",setTimeout((()=>{o.style.position="",this.wrapperEl.getBoundingClientRect().left<0&&(o.style.position="fixed",setTimeout((()=>{o.style.position=""}),1500))}),1500)),this.editorSetup();const l=`\n# Box Framework\n\nThe Box Framework handles page structure and layout. It works with the Content.css Framework to create complete, responsive designs.\n\n## Architecture Overview\n\n.is-section (page section)\n └── .is-box (layout box)\n ├── .is-overlay (background layer)\n │ └── .is-overlay-bg (background image/color)\n └── .is-container (content area)\n └── .row > .column (content from Content.css)\n\n---\n\n## Sections\n\nSections are full-width page divisions. Each section is a '<div class="is-section">'.\n\n### Basic Section\n\n<div class="is-section type-system-ui">\n \x3c!-- Content goes here --\x3e\n</div>\n\n${2===(a=this).contentStylesVersion?"\nThe 'type-*' class defines typography style. Always include one typography class on sections.\n\n### Typography Selection\n\nChoose the appropriate 'type-*' class based on design context. Always include one typography class on sections.\n\n| Class | Headings | Body | Character | Best For |\n|-------|----------|------|-----------|----------|\n| 'type-system-ui' | System UI | System UI | Neutral, clean, universal | Default choice, corporate, apps, general purpose |\n| 'type-literary-journal' | Lora (serif) | Karla (sans) | Elegant, intellectual, refined | Blogs, essays, publishing, book reviews, magazines |\n| 'type-luxury-fashion' | Cormorant Garamond | Montserrat | Sophisticated, high-end, minimal | Fashion, jewelry, luxury brands, galleries, high-end retail |\n| 'type-brutalist-refined' | Archivo Black | Libre Franklin | Bold, industrial, impactful | Architecture, design studios, portfolios, creative agencies |\n| 'type-mono-technical' | JetBrains Mono | JetBrains Mono | Technical, precise, developer-focused | Documentation, dev tools, SaaS, tech products, code-heavy |\n| 'type-space-grotesk' | Space Grotesk | Space Grotesk | Modern, geometric, tech-forward | Startups, fintech, crypto, modern tech, innovation |\n| 'type-candy-pop' | Fredoka | Nunito | Playful, friendly, rounded | Kids, games, entertainment, casual apps, fun brands |\n| 'type-blush-bloom' | Cormorant Infant | Quicksand | Soft, romantic, delicate | Weddings, beauty, wellness, feminine brands, florists |\n| 'type-botanical-garden' | Playfair Display | Lora | Organic, classic, natural | Gardens, eco brands, organic products, nature, sustainability |\n| 'type-city-guide' | DM Serif Display | DM Sans | Urban, contemporary, editorial | City guides, local businesses, restaurants, urban lifestyle |\n| 'type-grand-tour' | Cormorant SC (small caps) | Raleway | Classical, prestigious, timeless | Luxury travel, heritage tourism, museums, historic sites |\n| 'type-cultural-heritage' | Oranienbaum | Source Sans 3 | Stately, traditional, authoritative | Cultural institutions, history, government, academia |\n| 'type-spicy-kitchen' | Sriracha (handwritten) | Arvo | Warm, casual, appetizing | Food blogs, restaurants, recipes, cafes, culinary brands |\n":"\n**Important:** Always include 'type-system-ui' class on sections for default typography.\n"}\n\n### Section Height\n\nControl minimum section height with viewport-based classes:\n\n| Class | Height | Use Case |\n|-------|--------|----------|\n| '.is-section-50' | 50vh | Half screen sections |\n| '.is-section-60' | 60vh | Medium sections |\n| '.is-section-80' | 80vh | Tall sections |\n| '.is-section-100' | 100vh | Full screen hero sections |\n| '.is-section-auto' | Auto | Content-based height |\n\n**Example:**\n\n<div class="is-section type-system-ui is-section-100">\n \x3c!-- Full screen hero --\x3e\n</div>\n\n> **Available heights:** 10, 15, 20, 25, 30, 40, 50, 60, 70, 75, 80, 85, 90, 100, auto\n\n---\n\n## Boxes\n\nBoxes are layout divisions within sections. A section can contain one or multiple boxes.\n\n### Single Box Section\n\nWhen a section has only one box (full-width), combine classes:\n\n<div class="is-section is-box type-system-ui is-section-100">\n <div class="is-overlay">\n \x3c!-- Background --\x3e\n </div>\n <div class="is-container">\n \x3c!-- Content --\x3e\n </div>\n</div>\n\n### Multi-Box Section\n\nWhen a section has multiple boxes (split layout):\n\n<div class="is-section type-system-ui is-section-100">\n <div class="is-box is-box-5">\n <div class="is-overlay">\n \x3c!-- Background for left box --\x3e\n </div>\n <div class="is-container">\n \x3c!-- Left content --\x3e\n </div>\n </div>\n <div class="is-box is-box-7">\n <div class="is-overlay">\n \x3c!-- Background for right box --\x3e\n </div>\n <div class="is-container">\n \x3c!-- Right content --\x3e\n </div>\n </div>\n</div>\n\n### Box Width Classes\n\nBoxes use a 12-column grid system:\n\n| Class | Width | Common Use |\n|-------|-------|------------|\n| '.is-box-4' | 33.33% | Three columns |\n| '.is-box-5' | 41.67% | 40/60 split |\n| '.is-box-6' | 50% | Half/half split |\n| '.is-box-7' | 58.33% | 60/40 split |\n| '.is-box-8' | 66.67% | Two-thirds |\n| '.is-box-12' | 100% | Full width |\n\n> **Available widths:** 1-12 (increments of 8.33%)\n\n> **Mobile behavior:** On screens < 970px, all boxes stack to 100% width automatically.\n\n---\n\n## Overlay (Backgrounds)\n\nThe overlay system provides background images and colors behind content.\n\n### Background Color Only\n\n<div class="is-overlay" style="background-color: rgb(245, 245, 245);">\n</div>\n\n### Background Image\n\n<div class="is-overlay">\n <div class="is-overlay-bg" \n style="background-image: url('image.jpg'); \n background-position: 50% 60%;">\n </div>\n</div>\n\n### Dark Overlay on Image\n\n**Use case:** For the background behind white text content.\n\n<div class="is-overlay">\n <div class="is-overlay-bg" \n style="background-image: url('image.jpg'); \n background-position: 50% 60%;">\n <div class="is-overlay-color opacity-30"></div>\n </div>\n</div>\n\n> **Tip:** Use 'background-position' to control image focal point. Format: 'horizontal% vertical%'\n\n---\n\n## Container (Content Area)\n\nContainers hold the actual content and control its width and positioning.\n\n### Basic Container\n\n<div class="is-container">\n <div class="row">\n <div class="column">\n \x3c!-- Your content from Content.css framework --\x3e\n </div>\n </div>\n</div>\n\n> **Important:** Always wrap content inside container using the row → column structure from Content.css.\n\n### Container Width\n\nControl maximum content width:\n\n<div class="is-container is-content-1200">\n \x3c!-- Content max-width: 1200px --\x3e\n</div>\n\n**Common widths:**\n\n| Class | Max Width | Use Case |\n|-------|-----------|----------|\n| '.is-content-760' | 760px | Narrow text content |\n| '.is-content-980' | 980px | Default (if no class) |\n| '.is-content-1200' | 1200px | Standard wide |\n| '.is-content-1400' | 1400px | Extra wide |\n| '.is-content-1740' | 1740px | Ultra wide |\n\n> **Available widths:** 560, 580, 600... 1800 (increments of 20px)\n\n### Horizontal Position\n\nPosition container left, center (default), or right:\n\n\x3c!-- Left aligned --\x3e\n<div class="is-container is-content-left">\n\n\x3c!-- Centered (default) --\x3e\n<div class="is-container">\n\n\x3c!-- Right aligned --\x3e\n<div class="is-container is-content-right">\n\n> **Mobile behavior:** On screens < 760px, all containers center automatically.\n\n### Vertical Position\n\nPosition container top, middle (default), or bottom within the box:\n\n\x3c!-- Top aligned --\x3e\n<div class="is-section is-box type-system-ui is-content-top">\n <div class="is-container">\n\n\x3c!-- Middle aligned (default) --\x3e\n<div class="is-section is-box type-system-ui">\n <div class="is-container">\n\n\x3c!-- Bottom aligned --\x3e\n<div class="is-section is-box type-system-ui is-content-bottom">\n <div class="is-container">\n\n### Fine-Tune Vertical Position\n\nAdjust vertical spacing with edge classes:\n\n\x3c!-- Push content closer to top edge --\x3e\n<div class="is-section is-box type-system-ui is-content-top edge-y-0">\n\n\x3c!-- Push content away from bottom edge --\x3e\n<div class="is-section is-box type-system-ui is-content-bottom edge-y-4">\n\n**Edge values:**\n\n| Class | Effect |\n|-------|--------|\n| 'edge-y--5' to 'edge-y--1' | Pull inward (negative space) |\n| 'edge-y-0' | Flush to edge |\n| 'edge-y-1' to 'edge-y-5' | Push outward |\n\n> **Default spacing:** Without edge classes, containers have 6.5vh margin from top/bottom.\n\n### Container Vertical Padding\n\nAdd internal spacing inside containers:\n\n<div class="is-container content-py-60">\n \x3c!-- 60px padding top and bottom --\x3e\n</div>\n\n**Padding classes:**\n\n- 'content-pt-*' - Top padding only \n- 'content-pb-*' - Bottom padding only\n\n> **Available values:** 0, 10, 20, 30, 40, 50, 60, 70, 80\n\n---\n\n## Complete Examples\n\n### Full-Width Hero Section\n\n<div class="is-section is-box type-system-ui is-section-100 is-content-bottom">\n <div class="is-overlay" style="background-color: rgb(225, 225, 225);">\n <div class="is-overlay-bg" \n style="background-image: url('hero.jpg'); \n background-position: 50% 60%; \n opacity: 1;">\n </div>\n </div>\n <div class="is-container is-content-1400">\n <div class="row">\n <div class="column">\n <h1 class="size-72 leading-12">Hero Title</h1>\n <p class="size-18 leading-17">Subtitle text</p>\n </div>\n </div>\n </div>\n</div>\n\n### Split Section (40/60)\n\n<div class="is-section type-system-ui is-section-80">\n \x3c!-- Left box: 40% --\x3e\n <div class="is-box is-box-5">\n <div class="is-overlay" style="background-color: rgb(240, 240, 240);">\n </div>\n <div class="is-container is-content-760">\n <div class="row">\n <div class="column">\n <h2 class="size-42 leading-13">Text Content</h2>\n <p class="size-17 leading-17">Description...</p>\n </div>\n </div>\n </div>\n </div>\n \n \x3c!-- Right box: 60% --\x3e\n <div class="is-box is-box-7">\n <div class="is-overlay">\n <div class="is-overlay-bg" \n style="background-image: url('image.jpg'); \n background-position: 67% 60%;">\n </div>\n </div>\n </div>\n</div>\n\n### Centered Content Section\n\n<div class="is-section is-box type-system-ui is-section-60">\n <div class="is-container is-content-900">\n <div class="row">\n <div class="column">\n <p class="size-14 uppercase tracking-150 text-gray-400 text-center">About</p>\n </div>\n </div>\n <div class="row">\n <div class="column">\n <div class="spacer height-40"></div>\n </div>\n </div>\n <div class="row">\n <div class="column">\n <h2 class="size-48 leading-13 text-center">Our Story</h2>\n <p class="size-17 leading-17 text-gray-600 text-center">\n Company description...\n </p>\n </div>\n </div>\n </div>\n</div>\n\n---\n\n## Best Practices\n\n### 1. Typography Class\n\n\n${2===a.contentStylesVersion?"\n**Always include a 'type-*' class on every section.** Use 'type-system-ui' as the default, or select a contextual typography style based on the design:\n\n<div class=\"is-section type-system-ui is-section-100\">\n\n| Class | Best For |\n|-------|----------|\n| 'type-system-ui' | Default, corporate, apps, general purpose |\n| 'type-literary-journal' | Blogs, essays, publishing, magazines |\n| 'type-luxury-fashion' | Fashion, jewelry, luxury brands, galleries |\n| 'type-brutalist-refined' | Architecture, design studios, creative agencies |\n| 'type-mono-technical' | Documentation, dev tools, SaaS, tech products |\n| 'type-space-grotesk' | Startups, fintech, crypto, modern tech |\n| 'type-candy-pop' | Kids, games, entertainment, fun brands |\n| 'type-blush-bloom' | Weddings, beauty, wellness, feminine brands |\n| 'type-botanical-garden' | Gardens, eco brands, organic, sustainability |\n| 'type-city-guide' | City guides, restaurants, urban lifestyle |\n| 'type-grand-tour' | Luxury travel, heritage tourism, museums |\n| 'type-cultural-heritage' | Cultural institutions, history, academia |\n| 'type-spicy-kitchen' | Food blogs, restaurants, recipes, cafes |\n":"\n**Always include 'type-system-ui' on every section** for default typography:\n"}\n\n### 2. When to Use is-content-left and is-content-right\n\n**Primary Use Case: Full-Width Hero Sections**\n\n'is-content-left' and 'is-content-right' are primarily for **full-width sections** where you want content positioned to the left or right:\n\n\x3c!-- Hero section with left-aligned content --\x3e\n<div class="is-section is-box type-system-ui is-section-100">\n <div class="is-overlay">\n <div class="is-overlay-bg" style="background-image: url('hero.jpg');"></div>\n </div>\n <div class="is-container is-content-1200 is-content-left">\n <div class="row">\n <div class="column">\n <h1 class="size-72 leading-12">Hero Title</h1>\n </div>\n </div>\n </div>\n</div>\n\n> **Note:** Center alignment is the default - no class needed.\n\n**Split Sections: Generally NOT Needed**\n\nIn split sections, **avoid using is-content-left or is-content-right** because:\n\n1. **Small boxes (is-box-5, is-box-4, etc.)** are already narrow - left/right alignment doesn't make sense\n2. **Even is-box-6 (50% width)** - if content is wide (like is-content-540), it already takes up most of the box width, so left/right positioning has little effect\n\n\x3c!-- CORRECT: Split section WITHOUT left/right alignment --\x3e\n<div class="is-section type-system-ui is-section-70">\n <div class="is-box is-box-6">\n <div class="is-container is-content-540">\n \x3c!-- ✓ Centered naturally, no positioning needed --\x3e\n <div class="row">\n <div class="column">\n <h2 class="size-42 leading-13">Content</h2>\n </div>\n </div>\n </div>\n </div>\n <div class="is-box is-box-6">\n \x3c!-- Image box --\x3e\n </div>\n</div>\n\n\x3c!-- INCORRECT: Unnecessary left alignment in split section --\x3e\n<div class="is-section type-system-ui is-section-70">\n <div class="is-box is-box-6">\n <div class="is-container is-content-540 is-content-left">\n \x3c!-- ❌ Doesn't make sense - content is already wide --\x3e\n </div>\n </div>\n</div>\n\n**Exception: Small Content Like Captions**\n\nOnly use 'is-content-left' or 'is-content-right' in split sections for **very small content** (is-content-300 or smaller) where positioning makes a visual difference:\n\n\x3c!-- CORRECT: Small caption aligned left in split section --\x3e\n<div class="is-section type-system-ui is-section-80">\n <div class="is-box is-box-6">\n <div class="is-overlay">\n <div class="is-overlay-bg" style="background-image: url('photo.jpg'); \n background-position: 50% 50%;">\n </div>\n </div>\n </div>\n <div class="is-box is-box-6 is-content-bottom edge-y-1">\n <div class="is-overlay"></div>\n <div class="is-container is-content-300 is-content-left">\n <div class="row">\n <div class="column">\n <p class="size-14 text-gray-500">Photo caption text</p>\n </div>\n </div>\n </div>\n </div>\n</div>\n\n**CRITICAL: Width Limits with Left/Right Alignment**\n\nIf you do use 'is-content-left' or 'is-content-right':\n- **Maximum container width: is-content-540** (preferably smaller)\n- Wider containers can overflow box boundaries\n- This is because max-width only works properly when containers are centered\n\n**Guidelines:**\n- **Full-width sections** → Use is-content-left/right for left or right positioning (center is default)\n- **Split sections** → Usually DON'T use left/right alignment (content centers naturally)\n- **Split sections with tiny captions** → Can use left/right for small content (≤ is-content-300)\n- **Width limit** → If using left/right alignment, max is-content-540\n\n### 3. Section Structure\n\n**Always use this hierarchy:**\n- Section → Box → Overlay + Container → Row → Column\n\n**Never skip layers** or nest sections inside sections.\n\n### 4. Background Images\n\n- Use 'background-position' to control focal point\n- Common positions: '50% 60%' (centered, slightly below middle), '67% 60%' (right of center)\n- Adjust opacity for overlay effects: '0.7' to '0.9' for subtle tint\n\n### 5. Content Width\n\n- **Text-heavy content:** Use narrower widths (760-900px) for better readability\n- **Visual layouts:** Use wider widths (1200-1400px)\n- **Full bleed designs:** Use ultra-wide (1600-1740px)\n\n### 6. Vertical Positioning\n\n- **Hero sections:** Use 'is-content-bottom' to anchor text at bottom\n- **Centered messages:** Use default (middle) positioning\n- **Headers/navigation areas:** Use 'is-content-top'\n\n### 7. Mobile Responsiveness\n\nThe framework handles mobile automatically:\n- Boxes stack to 100% width\n- Containers center horizontally\n- Edge adjustments apply only on desktop\n\nNo mobile-specific code needed for basic layouts.\n\n### 8. Combining with Content.css\n\nThe Box Framework provides structure. The Content.css Framework provides content styling.\n\n**Box Framework handles:**\n- Page sections and layout\n- Background images/colors\n- Container positioning and width\n\n**Content.css handles:**\n- Typography and spacing\n- Buttons and components\n- Grid layout (rows/columns)\n- Text colors and styles\n\nAlways use both frameworks together for complete designs.\n\n### 9. Add smooth image scaling for overlay background image\n\n<div class="is-section ...">\n \x3c!-- Section content --\x3e\n</div>\n<div class="is-section ...">\n \x3c!-- Section content --\x3e\n</div>\n<style>\n /* Smooth image scaling */\n .is-overlay-bg {\n transition: transform 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);\n }\n .is-box:hover .is-overlay-bg {\n transform: scale(1.03);\n }\n</style>\n\n---\n\n## Common Patterns\n\n### Pattern: Image Left, Text Right\n\n<div class="is-section type-system-ui is-section-70">\n <div class="is-box is-box-6">\n <div class="is-overlay">\n <div class="is-overlay-bg" style="background-image: url('image.jpg');"></div>\n </div>\n </div>\n <div class="is-box is-box-6">\n <div class="is-container is-content-540 is-content-left">\n <div class="row">\n <div class="column">\n <h3 class="size-32 leading-13">Title</h3>\n <p class="size-17 leading-17 text-gray-600">Text content...</p>\n </div>\n </div>\n </div>\n </div>\n</div>\n\n### Pattern: Full-Width with Top-Aligned Narrow Content\n\n<div class="is-section is-box type-system-ui is-section-100 is-content-top edge-y-2">\n <div class="is-overlay" style="background-color: rgb(250, 250, 250);">\n </div>\n <div class="is-container is-content-760">\n <div class="row">\n <div class="column">\n <h1 class="size-60 leading-12">Headline</h1>\n <p class="size-18 leading-17">Description...</p>\n </div>\n </div>\n </div>\n</div>\n\n### Pattern: Dark overlay background image behind white text content.\n\n<div class="is-section is-box type-system-ui is-section-60 is-content-bottom edge-y-4">\n <div class="is-overlay">\n <div class="is-overlay-bg" style="background-image: url('assets/thelayout/images/ai-aZkV0.jpg'); background-position: 50% 40%;">\n <div class="is-overlay-color opacity-30"></div>\n </div>\n </div>\n <div class="is-container is-content-1200 text-center">\n <div class="row">\n <div class="column">\n <h2 class="size-60 font-light text-white leading-12 pb-6">Start your next chapter.</h2>\n <div class="spacer height-20"></div>\n <div>\n <a href="#" role="button" class="transition-all inline-block whitespace-nowrap cursor-pointer no-underline border-2 border-solid mt-2 mb-1 font-normal tracking-normal rounded-full py-3 px-10 size-16 leading-16 border-white hover:bg-white hover:text-black" style="color: #ffffff;">\n Visit Us Today\n </a>\n </div>\n </div>\n </div>\n </div>\n</div>\n\n### Pattern: Three Equal Boxes\n\n<div class="is-section type-system-ui is-section-60">\n <div class="is-box is-box-4">\n <div class="is-container">\n \x3c!-- Content --\x3e\n </div>\n </div>\n <div class="is-box is-box-4">\n <div class="is-container">\n \x3c!-- Content --\x3e\n </div>\n </div>\n <div class="is-box is-box-4">\n <div class="is-container">\n \x3c!-- Content --\x3e\n </div>\n </div>\n</div>\n`;var a;this.codechat=new eS({context:'\n\n# Content.css Framework\n\n## Grid System\n\nAll content must be wrapped in rows and columns.\n\n<div class="row">\n <div class="column">\n \x3c!-- Content here --\x3e\n </div>\n</div>\n<div class="row">\n <div class="column">\n \x3c!-- Content here --\x3e\n </div>\n <div class="column">\n \x3c!-- Content here --\x3e\n </div>\n</div>\n\n> **Important:** Never place content directly under a container. Always use row → column structure.\n\n### Inline Width Style\n\nJust use: <div class="column" style="width: 52%; flex: 0 0 auto;">\n\n<div class="row">\n <div class="column" style="width: 52%; flex: 0 0 auto;">\n <div class="column">\n</div>\n\n**If columns should be equal width:**\n\nJust use: <div class="column"> for each column.\n\n<div class="row">\n <div class="column">\n <div class="column">\n</div\n\n> **Tip:** On mobile (< 760px), columns automatically stack full-width for better responsiveness.\n\n### Column Gap\n\nRules:\n\n- **DO NOT add gap by default.** Columns have default padding (1rem left/right) which handles most cases.\n\n- **Use gap ONLY when the design specifically needs extra breathing room.**\n\n- ***ALWAYS use inline style for gap, NEVER use gap utility classes (gap-4, gap-6, etc.).***\n\nWhen gap is needed, use these guidelines based on content type:\n\n**Image galleries/portfolio grids: gap:20px (maximum)**\n\n<div class="row" style="gap:20px">\n <div class="column pb-6"><img...></div>\n <div class="column pb-6"><img...></div>\n <div class="column pb-6"><img...></div>\n</div>\n\n**Image + text layouts (2 columns): gap:30px (maximum)** \n\n<div class="row" style="gap:20px">\n <div class="column" style="width: 55%; flex: 0 0 auto;">\n <img...>\n </div>\n <div class="column flex flex-col justify-center">\n <h3>Title</h3>\n <p>Details...</p>\n </div>\n</div>\n\n**Default rule: No gap unless there\'s a specific design reason. When in doubt, omit gap.**\n\n\n### CRITICAL: When using gap with custom column widths:\n\n**Gap takes up space**, so column widths + gap must not exceed 100%.\n\n**Best practice: Use only ONE custom width, let other column(s) flex:**\n\nCORRECT (one width + gap):\n<div class="row" style="gap:20px">\n <div class="column" style="width: 55%; flex: 0 0 auto;">\n <img...>\n </div>\n <div class="column">\n \x3c!-- This column flexes to fill remaining space --\x3e\n <h3>Content...</h3>\n </div>\n</div>\n\nINCORRECT (widths don\'t account for gap):\n<div class="row" style="gap:20px">\n <div class="column" style="width: 38%; flex: 0 0 auto;">...</div> ❌\n <div class="column" style="width: 62%; flex: 0 0 auto;">...</div> ❌\n \x3c!-- 38% + 62% + 20px gap = overflow! --\x3e\n</div>\n\n### Font Sizes\n\nUse \'size-*\' classes for precise font sizing.\n\n| Class | Size | Common Use |\n|-------|------|------------|\n| \'.size-12\' | 12px | Small labels, captions |\n| \'.size-14\' | 14px | Labels, meta info |\n| \'.size-16\' | 16px | Body text |\n| \'.size-18\' | 18px | Large body text |\n| \'.size-20\' | 20px | Small headings |\n| \'.size-24\' | 24px | Subheadings |\n| \'.size-32\' | 32px | Medium headings |\n| \'.size-42\' | 42px | Large headings |\n| \'.size-48\' | 48px | Hero headings |\n| \'.size-60\' | 60px | Extra large headings |\n| \'.size-72\' | 72px | Display text, stats |\n| \'.size-96\' | 96px | Extra large display |\n\n> **Available sizes:** 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 24, 28, 32, 35, 38, 42, 46, 48, 50, 54, 60, 64, 68, 72, 76, 80, 84, 88, 92, 96, 100... up to 400\n\n### Font Weights\n\nClasses: font-light, font-normal, font-medium, font-semibold, font-bold\n\n### Letter Spacing (Tracking)\n\nClasses: tracking-tight, tracking-normal, tracking-wide, tracking-wider, tracking-150 (ideal for uppercase labels)\n\n### Line Height (Leading)\n\nClasses: leading-none, leading-12, leading-13, leading-14, leading-15, leading-16, leading-17, leading-18\n\n> **Best Practice:** Use \'leading-17\' or \'leading-18\' for body text. Use \'leading-12\' or \'leading-13\' for headings.\n\n### Text Utilities\n\nClasses: uppercase, lowercase, capitalize, text-center, text-left, text-right\n\nWhen creating centered (or left/right aligned) text sections: Apply alignment classes directly to text elements, NOT to wrapper divs.\n\nCORRECT (alignment on elements):\n\n<div class="column">\n <p class="size-12 text-gray-400 pb-4 text-center">Label</p>\n <h2 class="size-48 leading-12 pb-6 text-center">Heading</h2>\n <p class="size-17 leading-18 text-gray-600 text-center">Description...</p>\n</div>\n\nINCORRECT (wrapper div for alignment):\n\n<div class="column">\n <div class="text-center"> ❌\n <p class="size-12 text-gray-400 pb-4">Label</p>\n <h2 class="size-48 leading-12 pb-6">Heading</h2>\n <p class="size-17 leading-18 text-gray-600">Description...</p>\n </div>\n</div>\n\nKeep the content structure in column flat.\n\n### Padding\n\nClasses: p-0, p-2, p-3, p-4, p-6, p-8, p-10, p-12\n\n> **Available values:** 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 14, 16, 20\n\n**Example: Card with padding**\n\n\x3c!-- Example: Card with padding --\x3e\n<div class="p-12 box-border bg-gray-50">\n <p class="size-18 pb-4">Card content</p>\n <p class="size-14 text-gray-600">Description</p>\n</div>\n\n**Key classes:** p-X, box-border (always use box-border with padding on DIV or cards)\n\n### Directional Padding\n\nClasses: px-4, py-4, pt-4, pb-4, pl-4, pr-4\n\n### Spacer (Vertical Spacing)\n\n| Class | Description |\n|-------|-------------|\n| \'.spacer.height-20\' | 20px vertical space |\n| \'.spacer.height-40\' | 40px vertical space |\n| \'.spacer.height-60\' | 60px vertical space |\n| \'.spacer.height-80\' | 80px vertical space |\n| \'.spacer.height-100\' | 100px vertical space |\n| \'.spacer.height-120\' | 120px vertical space |\n\n**Example: Adding space between sections**\n\n\x3c!-- Example: Adding space between sections --\x3e\n<div class="row">\n <div class="column">\n <h2>Section Title</h2>\n </div>\n</div>\n<div class="row">\n <div class="column">\n <div class="spacer height-60"></div>\n </div>\n</div>\n<div class="row">\n <div class="column">\n <p>Section content...</p>\n </div>\n</div>\n\n> **Available heights:** 20, 40, 60, 80, 100, 120, 140, 160, 180, 200, 220, 240, 260, 280, 300\n\n---\n\n\n## Buttons\n\nButtons are portable and must be wrapped in a div inside a column. All styling uses content.css classes with inline styles for colors.\n\n### Button Structure\n\nAll buttons must be wrapped in a \'div\' (or use \'space-x-2\' for button groups):\n\n<div class="row">\n <div class="column">\n <div>\n <a href="#" role="button" class="...">\n Button Text\n </a>\n </div>\n </div>\n</div>\n\n### Base Button Classes\n\nEvery button includes these base classes:\n\ntransition-all inline-block whitespace-nowrap cursor-pointer \nborder-2 border-solid mt-2 mb-1 font-normal tracking-normal rounded-full\n\n### Button Sizes\n\n| Size | Classes | Use Case |\n|------|---------|----------|\n| **Small** | \'py-1 px-4 size-14 leading-13\' | Compact actions, inline buttons |\n| **Medium** | \'py-2 px-6 size-15 leading-14\' | Default size, most common |\n| **Large** | \'py-2 px-7 size-16 leading-16\' | Primary CTAs, hero sections |\n\n### Button Variants\n\n#### 1. Filled Button (Solid Background)\n\n\x3c!-- Light Background --\x3e\n<a href="#" role="button" \n class="transition-all inline-block whitespace-nowrap cursor-pointer \n no-underline border-2 border-solid mt-2 mb-1 font-normal \n tracking-normal rounded-full py-2 px-6 size-15 leading-14 \n border-transparent hover:border-transparent" \n style="color: rgb(24, 24, 27); background-color: rgb(240, 240, 241);"\n data-bg="rgb(240, 240, 241)" \n data-hover-bg="rgb(236, 236, 238)"\n onmouseover="if(this.getAttribute(\'data-hover-bg\'))\n this.style.backgroundColor=this.getAttribute(\'data-hover-bg\');" \n onmouseout="if(this.getAttribute(\'data-bg\'))\n this.style.backgroundColor=this.getAttribute(\'data-bg\');\n else this.style.backgroundColor=\'\';">\n Read More\n</a>\n\n\x3c!-- Dark Background --\x3e\n<a href="#" role="button" \n class="transition-all inline-block whitespace-nowrap cursor-pointer \n no-underline border-2 border-solid mt-2 mb-1 font-normal \n tracking-normal rounded-full py-2 px-6 size-15 leading-14 \n border-transparent hover:border-transparent" \n style="color: rgb(250, 250, 250); background-color: rgb(24, 24, 27);"\n data-bg="rgb(24, 24, 27)" \n data-hover-bg="rgb(63, 63, 70)"\n onmouseover="if(this.getAttribute(\'data-hover-bg\'))\n this.style.backgroundColor=this.getAttribute(\'data-hover-bg\');" \n onmouseout="if(this.getAttribute(\'data-bg\'))\n this.style.backgroundColor=this.getAttribute(\'data-bg\');\n else this.style.backgroundColor=\'\';">\n Get Started\n</a>\n\n\x3c!-- Dark Background (Square) --\x3e\n<a href="#" role="button" \n class="transition-all inline-block whitespace-nowrap cursor-pointer \n no-underline border-2 border-solid mt-2 mb-1 font-normal \n tracking-normal py-2 px-6 size-15 leading-14 \n border-transparent hover:border-transparent" \n style="color: rgb(250, 250, 250); background-color: rgb(24, 24, 27);"\n data-bg="rgb(24, 24, 27)" \n data-hover-bg="rgb(63, 63, 70)"\n onmouseover="if(this.getAttribute(\'data-hover-bg\'))\n this.style.backgroundColor=this.getAttribute(\'data-hover-bg\');" \n onmouseout="if(this.getAttribute(\'data-bg\'))\n this.style.backgroundColor=this.getAttribute(\'data-bg\');\n else this.style.backgroundColor=\'\';">\n Get Started\n</a>\n\n**Key classes:** \'no-underline\' + \'border-transparent\' + inline background color\n\n#### 2. Outline Button (Border Only)\n\n<a href="#" role="button" \n class="transition-all inline-block whitespace-nowrap cursor-pointer \n no-underline border-2 border-solid mt-2 mb-1 font-normal \n tracking-normal rounded-full py-2 px-6 size-15 leading-14 \n border-current hover:border-current">\n Read More\n</a>\n\n**Key classes:** \'no-underline\' + \'border-current\' (inherits text color)\n\n#### 3. Text Button (Underline)\n\n**For single text button:**\n\n<div>\n <a href="#" role="button" \n class="transition-all inline-block whitespace-nowrap cursor-pointer \n border-2 border-solid mt-2 mb-1 font-normal tracking-normal \n py-2 size-15 leading-14 \n underline border-transparent" \n style="color: rgb(24, 24, 27);">\n Read More\n </a>\n</div>\n\n**Key classes:** \'underline\'+ \'underline-offset-4\' + \'border-transparent\' (no horizontal padding needed).\n\n**For button groups:**\n\nWhen grouping multiple buttons together, ALL buttons need consistent horizontal padding (e.g. \'px-6\'):\n\n<div class="space-x-2">\n <a ... class="py-2 px-6 rounded-full" style="background-color:...">Get Started</a>\n <a ... class="py-2 px-6 underline border-transparent">Learn More</a>\n</div>\n\n### Button Groups\n\nUse \'space-x-1\' or \'space-x-2\' class to group buttons with consistent spacing:\n\n<div class="space-x-2">\n <a href="#" role="button" class="...">Read More</a>\n <a href="#" role="button" class="...">Get Started</a>\n</div>\n\n### Examples by Size\n\n#### Small Buttons\n\n<a href="#" role="button" \n class="transition-all inline-block whitespace-nowrap cursor-pointer no-underline border-2 border-solid mt-2 mb-1 font-normal tracking-normal rounded-full py-1 px-4 size-14 leading-13 border-transparent hover:border-transparent" style="color: rgb(250, 250, 250); background-color: rgb(24, 24, 27);" \n style="color: rgb(250, 250, 250); background-color: rgb(24, 24, 27);"\n data-bg="rgb(24, 24, 27)" \n data-hover-bg="rgb(63, 63, 70)"\n onmouseover="if(this.getAttribute(\'data-hover-bg\'))this.style.backgroundColor=this.getAttribute(\'data-hover-bg\');" \t\t\n onmouseout="if(this.getAttribute(\'data-bg\'))this.style.backgroundColor=this.getAttribute(\'data-bg\');else this.style.backgroundColor=\'\';"\n Read More\n</a>\n\n#### Large Buttons\n\n<div>\n <a href="#" role="button" \n class="transition-all inline-block whitespace-nowrap cursor-pointer no-underline border-2 border-solid mt-2 mb-1 font-normal tracking-normal rounded-full py-2 px-7 size-16 leading-16 border-transparent hover:border-transparent" \n style="color: rgb(250, 250, 250); background-color: rgb(24, 24, 27);" \n data-bg="rgb(24, 24, 27)" \n data-hover-bg="rgb(63, 63, 70)"\n onmouseover="if(this.getAttribute(\'data-hover-bg\'))this.style.backgroundColor=this.getAttribute(\'data-hover-bg\');" \n onmouseout="if(this.getAttribute(\'data-bg\'))this.style.backgroundColor=this.getAttribute(\'data-bg\');else this.style.backgroundColor=\'\';" >Read More</a>\n</div>\n\n> **Important:** Buttons are portable components. Users edit text and colors through the ContentBuilder UI, so all styling must use utility classes plus inline styles for colors.\n\n> **Hover Effect:** The \'data-bg\' and \'data-hover-bg\' attributes with \'onmouseover/onmouseout\' handlers enable hover color changes without additional CSS.\n\n### Text Colors\n\nUse grayscale for minimalist design.\n\n| Class | Color | Description |\n|-------|-------|-------------|\n| \'.text-black\' | #000 | Primary text, headings |\n| \'.text-gray-700\' | #374151 | Secondary text |\n| \'.text-gray-600\' | #6b7280 | Body text |\n| \'.text-gray-500\' | #9ca3af | Muted text, labels |\n| \'.text-gray-400\' | #d1d5db | Subtle text, placeholders |\n| \'.text-gray-300\' | #e5e7eb | Very subtle text |\n| \'.text-gray-200\' | #f3f4f6 | Ultra light text |\n\n### Background Colors\n\n| Class | Color | Description |\n|-------|-------|-------------|\n| \'.bg-white\' | #ffffff | White background |\n| \'.bg-gray-50\' | #fafafa | Light gray - cards, sections |\n| \'.bg-gray-100\' | #f3f4f6 | Slightly darker gray |\n| \'.bg-black\' | #000000 | Black - buttons, highlights |\n\n> **Editorial Style:** Stick to black, white, and grays for a clean, minimalist aesthetic. Use color sparingly for accents.\n\n\n## Animation\n\n**Transition**\n\nClasses: transition-none, transition, transition-colors, transition-opacity, transition-shadow, transition-transform, transition-all\n\n**Duration**\n\nClasses: duration-75, duration-100, duration-150, duration-200, duration-300, duration-400, duration-500, duration-600, duration-700, duration-800, duration-900, duration-1000, duration-1500\n\n**Timing**\n\nClasses: ease-linear, ease-in, ease-out, ease-in-out\n\n**Hover Transforms**\n\nClasses: hover:scale-105, hover:-translate-y-1, hover:-translate-y-2, .hover:translate-x-1, .hover:translate-x-2\n\n**Hover Shadow**\n\nClasses: hover:shadow-sm, hover:shadow, hover:shadow-md, hover:shadow-lg, hover:shadow-xl, hover:shadow-2xl\n\n**Hover Background Colors**\n\nClasses: hover:bg-white, hover:bg-black, hover:bg-gray-50, hover:bg-gray-100, hover:bg-gray-200, hover:bg-gray-300, hover:bg-gray-400, hover:bg-gray-500, hover:bg-gray-600, hover:bg-gray-700, hover:bg-gray-800, hover:bg-gray-900, hover:bg-transparent\n\n**Hover Text Colors**\n\nClasses: hover:text-white, hover:text-black, hover:text-current, hover:text-gray-50, hover:text-gray-100, hover:text-gray-200, hover:text-gray-300, hover:text-gray-400, hover:text-gray-500, hover:text-gray-600, hover:text-gray-700, hover:text-gray-800, hover:text-gray-900, hover:text-gray-950\n\n**Hover Opacity**\n\nClasses: hover:opacity-70, hover:opacity-75, hover:opacity-80, hover:opacity-90, hover:opacity-95, hover:opacity-100\n\n**Animation keyframes**\n\nClasses: spin, ping, pulse, bounce\n\n### Animation Examples\n\n**Example: Hover lift on Cards**\n\n<div class="row" style="gap: 30px;">\n <div class="column">\n \t\x3c!-- card --\x3e\n <div class="p-10 box-border bg-white h-full transition-transform duration-300 hover:-translate-y-2" style="border: 1px solid #e0e0e0;">\n <div class="mb-6 text-gray-300"><i class="bi bi-star-fill"></i><i class="bi bi-star-fill"></i><i class="bi bi-star-fill"></i><i class="bi bi-star-fill"></i><i class="bi bi-star-fill"></i></div>\n <p class="size-18 leading-16 mb-8 text-gray-800">"It\'s rare to find a tool that balances power with simplicity so effectively. It has completely streamlined our workflow."</p>\n <p class="size-13 font-bold uppercase tracking-widest">Freja E. — Company</p>\n </div>\n </div>\n <div class="column">\n \t\x3c!-- card --\x3e\n </div>\n <div class="column">\n \t\x3c!-- card --\x3e\n </div>\n</div>\n\n**Key classes:** transition-transform, duration-300, hover:translate-y--2\n\n**Example: Hover shift on List Items**\n\n<div class="row" style="gap: 30px;">\n <div class="column">\n \x3c!-- list item --\x3e\n <div class="flex items-start pb-10 mb-10 transition-transform duration-300 ease-out hover:translate-x-2" style="border-bottom: 1px solid #e0e0e0;">\n <div class="pr-6 pt-5">\n <i class="bi bi-globe size-24 text-black"></i>\n </div>\n <div>\n <h3 class="size-24 font-normal mb-3">Global Perspective</h3>\n <p class="size-16 leading-17 text-gray-600">\n Our team spans three continents, bringing diverse cultural insights to every project. We design experiences that transcend borders while respecting local nuances, ensuring your brand resonates globally.\n </p>\n </div>\n </div>\n \x3c!-- list item --\x3e\n <div class="flex items-start pb-10 mb-10 transition-transform duration-300 ease-out hover:translate-x-2" style="border-bottom: 1px solid #e0e0e0;">\n \t\t\x3c!-- item content --\x3e\n </div>\n </div>\n</div>\n\n**Key classes:** transition-transform, duration-300, hover:translate-x-2\n\n**Example: Hover lift and shadow on Cards**\n\n<div class="row" style="gap: 30px;">\n <div class="column">\n \t\x3c!-- card --\x3e\n <div class="p-10 box-border bg-white transition-all duration-300 ease-out hover:-translate-y-2 hover:shadow-xl" style="border: 1px solid #e5e5e5;">\n \t\t\x3c!-- card content --\x3e \n </div>\n </div>\n <div class="column">\n \t\x3c!-- card --\x3e\n </div>\n <div class="column">\n \t\x3c!-- card --\x3e\n </div>\n</div>\n\n**Key classes:** transition-all duration-300 ease-out hover:-translate-y-2 hover:shadow-xl\n\n**Example: Hover zoom on Cards**\n\n<div class="row" style="gap: 30px;">\n <div class="column">\n \t\x3c!-- card --\x3e\n <div class="p-12 box-border bg-white h-full flex flex-col items-center text-center transition-transform duration-300 ease-out hover:scale-105" style="box-shadow: 0 10px 40px -10px rgba(0,0,0,0.05);">\n \t\t\x3c!-- card content --\x3e \n </div>\n </div>\n <div class="column">\n \t\x3c!-- card --\x3e\n </div>\n <div class="column">\n \t\x3c!-- card --\x3e\n </div>\n</div>\n\n**Key classes:** transition-transform, duration-300, ease-out, hover:scale-105\n\n**Example: Hover zoom on Images**\n\n<div class="row" style="gap:40px;">\n <div class="column">\n <div class="w-full overflow-hidden relative bg-gray-50 mb-6" style="aspect-ratio: 4 / 3;">\n <img src="image1.jpg" alt="Freja E. Andersen" class="w-full h-full object-cover transition-transform hover:scale-105 duration-1000">\n </div>\n <h4 class="size-20 font-normal">Freja E. Andersen</h4>\n <p class="size-14 text-gray-500 uppercase tracking-wide mt-1 mb-3">Lead Architect</p>\n <p class="size-15 text-gray-600 leading-16">Specializing in sustainable residential architecture with a focus on natural light.</p>\n </div>\n <div class="column">\n \n </div>\n <div class="column">\n \n </div>\n </div>\n\n**Key classes:** transition-transform, hover:scale-105, duration-1000 (or use duration-1500 for larger image)\n\n---\n\n## Common Patterns\n\n### Section Header\n\n<div class="row">\n <div class="column">\n <p class="uppercase tracking-150 size-12 text-gray-400">\n Section Label\n </p>\n </div>\n</div>\n<div class="row">\n <div class="column">\n <div class="spacer height-40"></div>\n </div>\n</div>\n\n### Card with Padding\n\n<div class="p-12 box-border bg-gray-50">\n <p class="size-18 leading-17 text-black pb-4">\n Card title or content\n </p>\n <p class="size-14 text-gray-600">\n Secondary text\n </p>\n</div>\n\n### Feature with Number\n\n<div class="column">\n <p class="size-14 font-semibold tracking-150 text-gray-300 pb-4">\n 01\n </p>\n <h3 class="size-32 font-normal leading-13 pb-4">\n Feature Title\n </h3>\n <p class="size-16 leading-17 text-gray-600">\n Feature description text here.\n </p>\n</div>\n\n### Centered Content\n\n<div class="row">\n <div class="column">\n <h1 class="size-60 font-light leading-12 text-center">\n Centered Heading\n </h1>\n </div>\n</div>\n\n### Image Grid\n\n<div class="row">\n <div class="column">\n <p class="uppercase tracking-150 size-12 text-gray-400">Meet The Team</p>\n </div>\n</div>\n<div class="row">\n <div class="column">\n <div class="spacer height-60"></div>\n </div>\n</div>\n<div class="row">\n <div class="column">\n \t<div class="w-full overflow-hidden relative bg-gray-50 mb-2" style="aspect-ratio: 4 / 3;">\n <img src="image1.jpg" alt="Freja E. Andersen" class="w-full h-full object-cover transition-transform hover:scale-105 duration-1000">\n </div>\n <h4 class="size-18 font-medium pb-2 text-center">Alex Thompson</h4>\n <p class="size-12 uppercase tracking-150 text-gray-500 pb-3 text-center">Founder &amp; CEO</p>\n <p class="size-15 leading-16 text-gray-600 text-center">Visionary leader with 15 years of experience.</p>\n </div>\n <div class="column">\n \x3c!-- Next image --\x3e\n </div>\n <div class="column">\n \x3c!-- Next image --\x3e\n </div>\n</div>\n\n## Best Practices\n\n### 1. Typography Hierarchy\n\n- **Large Headings:** Use \'size-48\' to \'size-96\' with \'font-light\' and \'leading-12\'\n- **Medium Headings:** Use \'size-28\' to \'size-42\' with \'font-normal\' and \'leading-13\'\n- **Body Text:** Use \'size-16\' to \'size-18\' with \'text-gray-600\' and \'leading-17\'\n- **Labels:** Use \'size-12\' to \'size-14\' with \'uppercase tracking-150\' and \'text-gray-400\'\n\n### 2. Color Usage\n\n- Primary text: \'text-black\'\n- Body text: \'text-gray-600\'\n- Muted text: \'text-gray-500\' or \'text-gray-400\'\n\n### 3. Structure Rules\n\n- Always wrap content in \'.row\' → \'.column\'\n- Never place text/content directly under container\n- Wrap all links in \'<p>\' or \'<div>\' \n- Keep layout structure *flat* (no nested rows/columns inside other columns)\n\n### 4. Minimalist Approach\n\n- Use generous white space\n- Keep color palette minimal (black, white, grays)\n- Use light font weights for headings\n- Maintain visual hierarchy through size and spacing, not color\n\n### 5. When creating multi-column layouts:\n\nColumns have default padding (1rem left/right) which handles most cases.\n\n**Do NOT use:**\n\n- pr-* pl-* px-* for column spacing ❌\n Use gap when you need **MORE** spacing than the default.\n- Padding classes on columns (except for image gallery exception)\n\nImages have no default margin, so add pb-* to columns for mobile stacking:\n\n<div class="row" style="gap:20px">\n <div class="column pb-6"><img...></div>\n <div class="column pb-6"><img...></div>\n</div>\n\n\n### 6. Vertical Centering\nWhen creating side-by-side layouts with vertical positioning:\n\n**For functional alignment (content should align based on column height):**\nUse flexbox, NOT spacers:\n- Center: flex flex-col justify-center\n- Bottom: flex flex-col justify-end\n- Top: (default, no class needed)\n\nCORRECT:\n<div class="row" style="gap:20px">\n <div class="column">\n <img src="..." style="width: 100%; object-fit: cover;">\n </div>\n <div class="column flex flex-col justify-center">\n <h3>Title</h3>\n <p>Content...</p>\n </div>\n</div>\n\nINCORRECT:\n<div class="column">\n <div class="spacer height-120"></div> ❌ (Fixed spacing breaks responsively)\n <h3>Title</h3>\n <p>Content...</p>\n</div>\n\n**For creative/editorial positioning (intentional staggered or asymmetric layouts):**\nUse spacers for deliberate visual rhythm:\n\n<div class="row">\n <div class="column">\n <div class="spacer height-160"></div>\n <img...>\n </div>\n <div class="column">\n <div class="spacer height-80"></div>\n <img...>\n </div>\n <div class="column">\n <h2>Title</h2>\n </div>\n</div>\n\n**Decision guide:**\n- Content needs to align based on other column heights? → Use flexbox\n- Content should be deliberately offset for visual interest? → Use spacers\n\nSpacers in editorial designs create intentional asymmetry and visual rhythm, which is different from trying to align content responsively.\n\n\n### 7. DO NOT create nested grids (row/column inside column).\n\nFor horizontal layouts within a column, use simple flexbox instead of nested grids.\n\nINCORRECT (nested grid):\n<div class="row">\n <div class="column">\n <div class="row"> ❌\n <div class="column"><h3>Title</h3></div>\n <div class="column"><p>Category</p></div>\n <div class="column"><p>Date</p></div>\n </div>\n </div>\n</div>\n\nCORRECT (simple flexbox):\n\n<div class="row">\n <div class="column">\n <div class="flex justify-between items-center">\n <h3>Title</h3>\n <p>Category</p>\n <p>Date</p>\n </div>\n </div>\n</div>\n\nINCORRECT (nested grid):\n\nCommon flexbox utilities for simple layouts:\n\n- flex justify-between = space items apart\n- flex justify-center = center items\n- flex items-center = vertically center\n- flex gap-4 = add spacing between items\n\nKeep the structure flat.\n\n### 8. Spacing in Design\n\nIMPORTANT: Text elements (h1-h6, p) already have default top/bottom margins in the framework.\nThe framework\'s default margins are designed to create proper text spacing. Only add padding for design purposes (borders, containers, backgrounds), not for basic text spacing.\n\nGuidelines:\n- For borders between items: pb-2 pt-2 is sufficient\n- For visual grouping: pb-3 pt-3 maximum\n- For design containers (backgrounds, cards, boxes): use generous padding (p-8, p-10, p-12, etc.)\n- For major section breaks: use spacer elements instead\n- Trust default margins - don\'t fight them with excessive padding\n\nCORRECT (minimal padding with borders):\n<div class="pb-2" style="border-bottom: 1px solid #f0f0f0;">\n <div class="flex justify-between items-center">\n <p class="size-14 uppercase tracking-150 text-gray-500">Material</p>\n <p class="size-16 text-gray-700">Solid Oak, Italian Leather</p>\n </div>\n</div>\n<div class="pb-2 pt-2" style="border-bottom: 1px solid #f0f0f0;">\n <div class="flex justify-between items-center">\n <p class="size-14 uppercase tracking-150 text-gray-500">Dimensions</p>\n <p class="size-16 text-gray-700">76 × 68 × 82 cm</p>\n </div>\n</div>\n\nINCORRECT (excessive padding):\n<div class="pb-6" style="border-bottom: 1px solid #f0f0f0;"> ❌\n <div class="flex justify-between items-center pb-4"> ❌\n <p class="size-14 uppercase tracking-150 text-gray-500">Material</p>\n <p class="size-16 text-gray-700">Solid Oak, Italian Leather</p>\n </div>\n</div>\n<div class="pb-6 pt-6" style="border-bottom: 1px solid #f0f0f0;"> ❌\n <div class="flex justify-between items-center pb-4"> ❌\n <p class="size-14 uppercase tracking-150 text-gray-500">Dimensions</p>\n <p class="size-16 text-gray-700">76 × 68 × 82 cm</p>\n </div>\n</div>\n\nCORRECT (intentional design padding):\n<div class="p-12 bg-gray-50">\n <p class="size-18 leading-17 text-black pb-8">Quote text...</p>\n <p class="size-14 font-semibold text-black pb-2">Name</p>\n <p class="size-13 text-gray-600">Title</p>\n</div>\n\nGenerous padding is appropriate for visual design elements like cards, testimonials, or highlighted sections.\n\n### 9. Icons\n\nWhen creating icon-based features, benefits, or service sections: use Bootstrap Icons, NOT emojis. The framework includes Bootstrap Icons support. Wrap icons in a div for proper display:\n\n<div class="text-center pb-6">\n <i class="bi bi-lightning size-42"></i>\n</div>\n<h4 class="size-18 font-medium text-center pb-3">Lightning Fast</h4>\n<p class="size-14 leading-16 text-gray-600 text-center">Description...</p>\n\n### 9. Image Layout with Hover Effect\n\nUse this pattern for all images (galleries, featured images, portfolio items):\n\n<div class="w-full overflow-hidden relative bg-gray-50" style="aspect-ratio:16/9">\n <img src="..." alt="..." class="w-full h-full object-cover transition-transform duration-1500 hover:scale-105">\n</div>\n\n**Key elements:**\n- \'aspect-ratio:16/9\' - maintains proportions (adjust as needed: 1/1, 4/3, 3/2, 16/9, etc.)\n- \'overflow-hidden\' - keeps scaled image contained\n- \'bg-gray-50\' - placeholder while image loads\n- \'transition-transform duration-1000\' - smooth 1-second animation\n- \'hover:scale-105\' - subtle 5% scale on hover\n- \'object-cover\' - ensures image fills container\n\n**Common aspect ratios:**\n- Square: \'aspect-ratio:1/1\'\n- Portrait: \'aspect-ratio:3/4\' or \'aspect-ratio:2/3\'\n- Landscape: \'aspect-ratio:4/3\' or \'aspect-ratio:3/2\'\n- Wide: \'aspect-ratio:16/9\' or \'aspect-ratio:21/9\'\n- Tall portrait: \'aspect-ratio:9/16\'\n\nAlways include this hover effect for a polished, interactive feel.\n\n'+l+'\n# Custom Code Block\n\nUse Code Block for creating interactive elements that need JavaScript.\n\nCode Block can only be placed:\n\n- in content (inside div.column)\n- in overlay (must be in div.is-overlay-content)\n\n**In Content**\n\n<div class="row">\n <div class="column">\n \t\t<div data-cb-type="code">\n \x3c!-- Your Code --\x3e\n </div>\n \t</div>\n</div>\n\n**In Overlay**\n\n<div class="is-section is-box is-section-100 type-system-ui">\n <div class="is-overlay">\n <div class="is-overlay-content">\n <div data-cb-type="code" style="position: absolute; top:0, left:0; width: 100%; height: 100%">\n \t\t\t\x3c!-- Your Code --\x3e\n </div>\n </div>\n </div>\n \n \x3c!-- ... --\x3e\n</div>\n\n### 1. Basic Example\n\n**Important**: Always Use \'data-cb-type="code"\' and create \'mount\' function.\n\n<div data-cb-type="code">\n <h3 class="code-block__title font-normal size-24">Code Block</h3>\n <p>This is a custom code block. Open HTML code editor to edit this block.</p>\n <script>\n (function() {\n // Get reference to this specific script element\n const currentScript = document.currentScript;\n // Navigate to the parent container\n const container = currentScript.parentElement;\n\n \tconst initialize = async () => {\n // Find the title within THIS container only\n const title = container.querySelector(\'.code-block__title\');\n if (title) {\n title.textContent = \'Code Block\';\n }\n };\n \n // Create mount function and store it on the container\n // for the Runtime to render the plugin\n container.mount = function() {\n initialize(); // Start initialization\n };\n // If no runtime, just start initialization\n if (!window.builderRuntime) {\n initialize();\n }\n })();\n <\/script>\n</div>\n\n### 2. Inline \'<style>\' and Dynamic External Script Loading\n\n<div data-cb-type="code">\n <style>\n\n </style>\n\n <div class="swiper swiper-initialized swiper-horizontal">\n \n </div>\n\n <script>\n (function() {\n const currentScript = document.currentScript;\n const container = currentScript.parentElement;\n\n // Dynamic loader for Swiper CSS\n const loadSwiperCSS = () => {\n return new Promise((resolve, reject) => {\n // Check if CSS already loaded\n const existingLink = document.querySelector(\'link[href*="swiper-bundle.min.css"]\');\n if (existingLink) {\n resolve();\n return;\n }\n\n const link = document.createElement(\'link\');\n link.rel = \'stylesheet\';\n link.href = \'https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.css\';\n link.onload = () => resolve();\n link.onerror = reject;\n document.head.appendChild(link);\n });\n };\n\n // Dynamic loader for Swiper JS\n const loadSwiper = () => {\n return new Promise((resolve, reject) => {\n if (window.Swiper) {\n resolve(window.Swiper);\n return;\n }\n const script = document.createElement(\'script\');\n script.src = \'https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.js\';\n script.onload = () => resolve(window.Swiper);\n script.onerror = reject;\n document.head.appendChild(script);\n });\n };\n\n // Initialize plugin\n const initializeSlider = async () => {\n try {\n // Load dependencies\n await loadSwiperCSS();\n const Swiper = await loadSwiper();\n\n\t\t\t\t\t\t\t\t\t\t// ...\n\n } catch (error) {\n console.error(\'Failed to initialize slider:\', error);\n }\n };\n\n // Create mount function and store it on the container\n // for the Runtime to render the plugin\n container.mount = function() {\n initializeSlider(); // Start initialization\n };\n // If no runtime, just start initialization\n if (!window.builderRuntime) {\n initializeSlider();\n }\n })();\n <\/script>\n</div>\n\nRemember: The goal is to create code blocks that are **self-contained**, **conflict-free**, and **easy to integrate** into any HTML environment. Follow these patterns for consistent, reliable code block development.\n\n### Important:\n\n**Code Block can only be placed**:\n\n- in content (inside div.column)\n- in overlay (must be in div.is-overlay-content)\n\n**In Content**\n\n<div class="row">\n <div class="column">\n \t\t<div data-cb-type="code">\n \x3c!-- Your Code --\x3e\n </div>\n \t</div>\n</div>\n\n**In Overlay**\n\n<div class="is-section is-box is-section-100 type-system-ui">\n <div class="is-overlay">\n <div class="is-overlay-content">\n <div data-cb-type="code" style="position: absolute; top:0, left:0; width: 100%; height: 100%">\n \t\t\t\x3c!-- Your Code --\x3e\n </div>\n </div>\n </div>\n \n \x3c!-- ... --\x3e\n</div>\n\n# Design Directive:\n\n## Purpose\n\nThis guide complements the Box Framework and Content Framework documentation. It explains how to create **diverse, creative designs** that go beyond default aesthetics while strictly adhering to framework utility classes.\n\n## Core Philosophy: Design Freedom Within Constraints\n\nThe frameworks provide utility classes for structure and typography. To create rich, varied designs:\n\n1. **Use framework classes** for all structural elements (sections, boxes, containers, typography, spacing)\n2. **Add inline styles** for colors, backgrounds, gradients, shadows, transforms, and animations\n3. **Create embedded styles** in \'<style>...</style>\' blocks for animations, transitions, and reusable patterns\n\n## CRITICAL: Output Format\n\n**DO NOT include:**\n- \'<!DOCTYPE>\', \'<html>\', \'<head>\', \'<body>\' tags\n- External CSS files or \'<link>\' tags\n- The frameworks are already loaded in the system\n\n**DO create:**\n- Multiple \'<div class="is-section">\' blocks with complete content\n- Embedded \'<style>...</style>\' block at the end when needed for animations, transitions, or reusable patterns\n- Only the HTML sections that will be inserted into an existing page\n\n**Example structure:**\n\n\x3c!-- Section 1 --\x3e\n<div class="is-section is-box type-system-ui is-section-100">\n \x3c!-- Content --\x3e\n</div>\n\n\x3c!-- Section 2 --\x3e\n<div class="is-section is-box type-system-ui is-section-80">\n \x3c!-- Content --\x3e\n</div>\n\n\x3c!-- Section 3 --\x3e\n<div class="is-section is-box is-section-100 type-system-ui">\n\n <div class="is-container leading-14 size-18 is-content-1100">\n\n <div class="row">\n <div class="column">\n\n \x3c!-- GUIDANCE: Use this layout to show images at any aspect ratio with a hover scale effect --\x3e\n <div class="w-full overflow-hidden relative bg-gray-50" style="aspect-ratio:16/9">\n <img src="https://placehold.co/1200x1200/f5f5f5/999?text=Featured" alt="Featured Project" class="w-full h-full object-cover transition-transform duration-1500 hover:scale-105">\n </div>\n\n </div>\n </div>\n \n <div class="row">\n <div class="column">\n\n <div class="featured-image">\n <img src="https://placehold.co/1600x700" alt="Featured Project">\n </div>\n\n </div>\n </div>\n\n <div class="row portfolio-row">\n <div class="column">\n\n <div class="row-image">\n <img src="https://placehold.co/1200x900" alt="Digital Banking">\n </div>\n\n </div>\n <div class="column">\n\n \x3c!-- Content --\x3e\n\n </div>\n </div>\n\n <div class="row">\n\n <div class="column">\n\n <div class="p-12 bg-gray-50 hover-lift">\n <p class="size-18 leading-17 text-black pb-8">The level of professionalism and expertise demonstrated throughout the project was outstanding. Highly recommend to anyone looking for quality work.</p>\n <p class="size-14 font-semibold text-black pb-1">Michael Chen</p>\n <p class="size-13 text-gray-600 tracking-wide">Founder, Innovation Labs</p>\n </div>\n\n </div>\n <div class="column">\n\n \x3c!-- Content --\x3e\n\n </div>\n </div>\n </div>\n</div>\n\n\x3c!-- Embedded Styke --\x3e\n<style>\n\n /* Featured image */\n .featured-image {\n width: 100%;\n aspect-ratio: 21/9;\n overflow: hidden;\n position: relative;\n background: #fafafa;\n }\n .featured-image img {\n width: 100%;\n height: 100%;\n object-fit: cover;\n transition: transform 2s cubic-bezier(0.4, 0, 0.2, 1);\n }\n .featured-image:hover img {\n transform: scale(1.03);\n }\n\n /* Row image */\n .row-image {\n width: 100%;\n aspect-ratio: 4/3;\n overflow: hidden;\n position: relative;\n background: #fafafa;\n }\n .row-image img {\n width: 100%;\n height: 100%;\n object-fit: cover;\n transition: transform 1.4s cubic-bezier(0.4, 0, 0.2, 1);\n }\n .portfolio-row:hover .row-image img {\n transform: scale(1.05);\n }\n\n /* Smooth hover animations */\n .hover-lift {\n transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);\n }\n .hover-lift:hover {\n transform: translateY(-4px);\n }\n</style>\n\n\n## Key Aesthetic Philosophy:\n**Swiss/Minimalist meets Portfolio Presentation** - Clean, grid-based, information-focused design where content hierarchy is created through scale, weight, and spacing rather than color or decoration. Every element serves a functional purpose. Photography is professional and high-quality. Typography creates drama through size contrast. The overall feel is sophisticated, professional, and timeless.\n\n## Design Characteristics:\n\n### Typography Treatment\n- **Extreme scale contrast**: Massive headlines (80px-140px) paired with tiny metadata text \n- **Version/number typography**: Large numbers (like "1.1", "2.4", "2027") used as design elements\n- **Mix of weights**: Bold project names with light secondary information\n\n### Layout Patterns\n- **Horizontal information bars**: Thin lines (1px-2px) separating sections or containing metadata\n- **Asymmetric content placement**: Image on left (40-45%), text/info on right (55-60%)\n- **Card-based presentation**: Content contained in white cards floating on gray backgrounds\n- **Top metadata strips**: Small text in corners (studio name, project type, year)\n- **Multi-column text blocks**: Body copy split into 2-3 narrow columns for readability\n\n### Image Treatment\n- **Photography as hero**: Large, high-quality images dominating the layout (not decorative)\n- **Clean crops**: Images in rectangular containers, no fancy shapes\n- **Generous padding**: White space around images, never cramping them\n- **Grid systems for galleries**: Even-sized thumbnails in rows (4x2, 4x4 grids)\n- **Product-on-white aesthetic**: Clean product photography on pure white backgrounds\n\n### Color & Background\n- **Pure white dominant**: Clean #ffffff backgrounds, not cream or off-white\n- **Minimal color usage**: Mostly black text on white, with occasional single accent color\n- **Light gray backgrounds**: #f5f5f5 or #e5e5e5 for page backgrounds behind white cards\n\n### Information Architecture\n- **Numbered lists**: "1. OVERVIEW", "2. SERVICES", etc. as section headers\n- **Metadata in lines**: "Client Name | Project Type | Year" separated by pipes or lines\n- **Small label categories**: Uppercase 11px labels like "SPECIALISED IN", "CONTACT", "ABOUT"\n- **Horizontal dividing lines**: Thin rules (1px) creating visual sections\n- **List-style information**: Stacked items with consistent spacing and alignment\n\n### Spatial Organization\n- **Air and breathing room**: Generous margins and padding throughout\n- **Contained sections**: Content lives in defined rectangular areas\n- **Aligned grids**: Everything aligns to invisible grid lines\n- **Consistent gaps**: Equal spacing between elements (20px, 30px, 40px)\n- **Edge-to-edge in black sections**: Dark sections can be full-bleed\n\n### Professional Polish\n- **Precise alignment**: Everything lines up perfectly (left edges, baselines, top edges)\n- **Consistent typography system**: Limited font sizes used repeatedly (12px, 14px, 16px, 32px, 80px, 120px)\n- **No decorative elements**: Everything serves a purpose, nothing ornamental\n- **Clean hover states**: Understated interactions, not flashy\n\n### What to AVOID:\n- ❌ Gradients (use solid colors only)\n- ❌ Rounded corners on everything (keep rectangular, maybe subtle 4-8px radius on cards)\n- ❌ Drop shadows (use very subtle if any, like 0 2px 8px rgba(0,0,0,0.04))\n- ❌ Overly decorative fonts (stick to clean system-ui)\n- ❌ Busy patterns or textures\n- ❌ Too many accent colors (pick one, use sparingly)\n- ❌ Cramped spacing (always err on the side of more whitespace)\n'},this),this.editor.imageModels=this.imageModels?this.imageModels:this.codechat.imageModels,this.editor.imageGenerationModels=this.imageGenerationModels?this.imageGenerationModels:this.codechat.imageModels,this.eb=this.editor,this.editor.onMultipleSelect=()=>{this.controlPanel&&setTimeout((()=>{this.controlpanel.objDialogGroup.open()}),1)},this.editor.onDelete=()=>{this.controlPanel&&this.onSelectChange&&this.onSelectChange()};const r=()=>{const t=this.win.innerWidth;this.onIframeResize&&this.onIframeResize(t),this.controlPanel&&(this.controlpanel.panelText.classList.contains("active")&&this.controlpanel.objPanelText.getStateTargeted(),this.controlpanel.panelSpacer.classList.contains("active")&&this.controlpanel.objPanelSpacer.getStateTargeted(),this.controlpanel.panelBox.classList.contains("active")&&this.controlpanel.objPanelBox.getStateTargeted(),"flex"===this.controlpanel.dialogSpacingColumn.style.display&&this.controlpanel.objDialogSpacingColumn.getState(),"flex"===this.controlpanel.dialogSpacingContainer.style.display&&this.controlpanel.objDialogSpacingContainer.getState())};this.editor.onPageResize=()=>{r()};const c=()=>{this.controlPanel&&this.controlpanel.panelBlock.classList.contains("active")&&this.controlpanel.objPanelBlock.showBlockPos()};this.editor.onPageResizeDebounce=()=>{c()},this.init(),window.contentbox=this,window.applyBoxImage=this.boxImage.bind(this),window.applyLargerImage=this.applyLargerImage.bind(this),window.returnUrl=this.returnUrl.bind(this),this.win.applyBoxImage=this.boxImage.bind(this),window._contentbox=this,window.keydown=()=>{},this.topSpace&&document.body.classList.add("topspace"),window.addEventListener("error",(t=>{"Script error."===t.message&&""===t.filename&&(t.preventDefault(),t.stopImmediatePropagation())}),!0)};this.iframeSrc?this.iframePanel=new iS({src:this.iframeSrc,blankHtml:this.blankHtml,page:".is-wrapper",onReady:t=>{l(t),this.iframePanel.showTooltip()}},this):l(),this.autoSaveDelay=t.autoSaveDelay||3e3,this.maxAutoSaveInterval=t.maxAutoSaveInterval||3e4,this.minAutoSaveInterval=t.minAutoSaveInterval||5e3,this.autoSave=t.autoSave,this.autoSaveTimeoutId=null,this.maxIntervalCheckerId=null,this.previousHash=null,this.lastSaveTime=0,this.pendingChanges=!1,this.isSaving=!1,this.autoSave&&"function"==typeof this.autoSave&&this.initAutoSave()}initAutoSave(){this.startMaxIntervalChecker()}startMaxIntervalChecker(){this.maxIntervalCheckerId=setInterval((()=>{if(this.pendingChanges&&!this.isSaving){Date.now()-this.lastSaveTime>=this.maxAutoSaveInterval&&this.performAutoSave()}}),1e3)}markContentChanged(){if(!this.autoSave)return;this.pendingChanges=!0,0===this.lastSaveTime&&(this.lastSaveTime=Date.now());const t=Date.now()-this.lastSaveTime;if(this.autoSaveTimeoutId&&clearTimeout(this.autoSaveTimeoutId),t>=this.maxAutoSaveInterval&&!this.isSaving)this.performAutoSave();else if(t>=this.minAutoSaveInterval)this.autoSaveTimeoutId=setTimeout((()=>{this.performAutoSave()}),this.autoSaveDelay);else{const e=this.minAutoSaveInterval-t;this.autoSaveTimeoutId=setTimeout((()=>{this.pendingChanges&&this.performAutoSave()}),e+this.autoSaveDelay)}}async performAutoSave(){if(this.isSaving)return;const t=this.htmlCheck(),e=this.simpleHash(t);if(this.previousHash!==e){this.isSaving=!0;try{await this.autoSave(),this.previousHash=e,this.lastSaveTime=Date.now(),this.pendingChanges=!1}catch(t){}finally{this.isSaving=!1}}else this.pendingChanges=!1}simpleHash(t){let e=0;for(let i=0;i<t.length;i++){e=(e<<5)-e+t.charCodeAt(i),e&=e}return e}async saveNow(){this.pendingChanges&&!this.isSaving&&await this.performAutoSave()}isNewV2(){return this.wrapperEl.classList.contains("box-v2")}loadFonts(){let t=this.settings.contentStylePath;this.wrapperEl.querySelectorAll(".is-section").forEach((e=>{e.classList.forEach((e=>{if(-1!==e.indexOf("type-")){const i=e,n=e+".css";let o=!1,s=this.doc.getElementsByTagName("link");for(let t=0;t<s.length;t++){-1!==s[t].href.toLowerCase().indexOf(n.toLowerCase())&&(o=!0)}o||this.wrapperEl.insertAdjacentHTML("beforeend",'<link data-name="contentstyle" data-class="'+i+'" href="'+t+n+'" rel="stylesheet">')}}))}))}editorSetup(){this.editor=new yy({iframeDragDrop:this.settings.iframeDragDrop,onType:()=>{this.markContentChanged()},quickAddButtons:this.settings.quickAddButtons,assetManagerBasePath:this.settings.assetManagerBasePath||"",assetAbsoluteBasePath:this.settings.assetAbsoluteBasePath||"",metadata:this.settings.metadata,enableDictation:this.settings.enableDictation,onStartRequest:this.settings.onStartRequest,controlPanel:this.settings.controlPanel,canvas:this.settings.canvas,docContainer:this.settings.wrapper,consoleLog:this.settings.consoleLog,defaultHeaders:this.settings.defaultHeaders,headers:this.settings.headers,isContentBox:!0,speechTranscribeUrl:this.settings.speechTranscribeUrl,autoSendDelay:this.settings.autoSendDelay,onlineDemo:this.settings.onlineDemo,temperature:this.settings.temperature,topP:this.settings.topP,speechRecognitionLang:this.settings.speechRecognitionLang,triggerWords:this.settings.triggerWords,headlineList:this.settings.headlineList,commandList:this.settings.commandList,disclaimerAI:this.settings.disclaimerAI,showDisclaimer:this.settings.showDisclaimer,enableShortCommands:this.settings.enableShortCommands,shortCommandList:this.settings.shortCommandList,commandInfo:this.settings.commandInfo,commandInfoCanvasMode:this.settings.commandInfoCanvasMode,commandPlaceholders:this.settings.commandPlaceholders,similarityThreshold:this.settings.similarityThreshold,useMediaRecorder:this.settings.useMediaRecorder,encoderPath:this.settings.encoderPath,hideImageGeneration:this.settings.hideImageGeneration,imageResizeOnBlock:this.settings.imageResizeOnBlock,listFilesUrl:this.settings.listFilesUrl,listFoldersUrl:this.settings.listFoldersUrl,deleteFilesUrl:this.settings.deleteFilesUrl,moveFilesUrl:this.settings.moveFilesUrl,createFolderUrl:this.settings.createFolderUrl,uploadFilesUrl:this.settings.uploadFilesUrl,renameFileUrl:this.settings.renameFileUrl,getMmodelsUrl:this.settings.getMmodelsUrl,textToImageUrl:this.settings.textToImageUrl,upscaleImageUrl:this.settings.upscaleImageUrl,controlNetUrl:this.settings.controlNetUrl,saveTextUrl:this.settings.saveTextUrl,viewUrl:this.settings.viewUrl,viewFileUrl:this.settings.viewFileUrl,imageModel:this.settings.imageModel,imageNegativePrompt:this.settings.imageNegativePrompt,imageSteps:this.settings.imageSteps,imageGuidance:this.settings.imageGuidance,imageScheduler:this.settings.imageScheduler,imageAutoUpscale:this.settings.imageAutoUpscale,defaultImageGenerationProvider:this.settings.defaultImageGenerationProvider,imageSize:this.settings.imageSize,imageGenerationModels:this.settings.imageGenerationModels,generateMediaUrl_Fal:this.settings.generateMediaUrl_Fal,checkRequestStatusUrl_Fal:this.settings.checkRequestStatusUrl_Fal,getResultUrl_Fal:this.settings.getResultUrl_Fal,assetPanelReverse:this.settings.assetPanelReverse,assetFilesOnly:this.settings.assetFilesOnly,assetRefreshButton:this.settings.assetRefreshButton,assetAllowedFileTypes:this.settings.assetAllowedFileTypes,container:".is-container",page:".is-wrapper",deleteConfirm:this.settings.deleteConfirm,previewURL:this.settings.previewURL,onPreviewOpen:()=>{let t=this.html();localStorage.setItem("preview-html",t);let e=this.mainCss();localStorage.setItem("preview-maincss",e);let i=this.sectionCss();localStorage.setItem("preview-sectioncss",i),localStorage.removeItem("_lastscrollpos")},onPreviewClose:()=>{this.wrapperEl.style.marginBottom=""},onPreviewContentLoad:()=>{setTimeout((()=>{const t=this.builderStuff.querySelector(".is-modal.content-preview");if(t){const e=t.querySelector("iframe");this.scrollSync(e)}}),1e3)},previewStyle:this.settings.previewStyle,livePreviewOpen:this.settings.livePreviewOpen,livePreviewAlwaysReload:this.settings.livePreviewAlwaysReload,livePreviewReloadEvery:this.settings.livePreviewReloadEvery,iframe:this.settings.iframe,screenMode:this.settings.screenMode,lang:this.settings.lang,simpleEditingBreakpoint:this.settings.simpleEditingBreakpoint,disableBootstrapIcons:this.settings.disableBootstrapIcons,imageAdjust:1,scriptPath:this.settings.scriptPath,pluginPath:this.settings.pluginPath,modulePath:this.settings.modulePath,fontAssetPath:this.settings.fontAssetPath,fontPath:this.settings.fontPath,assetPath:this.settings.assetPath,plugins:this.settings.plugins,disableConfig:this.settings.disableConfig,snippetList:this.settings.snippetListSelector||"#divSidebarSnippets",snippetPath:this.settings.snippetPath,snippetUrl:this.settings.snippetUrl,snippetJSON:window.data_basic,snippetPathReplace:this.settings.snippetPathReplace,maxColumns:this.settings.maxColumns,maxEmbedImageWidth:this.settings.maxEmbedImageWidth,imageRenameOnEdit:this.settings.imageRenameOnEdit,icons:this.settings.icons,sectionTemplate:this.settings.sectionTemplate,formTemplate:this.settings.formTemplate,onBlockSectionAdd:()=>{this.loadFonts(),this.pageSetup()},onBlockCanvasAdd:()=>{this.eb.refresh()},blockContainer:".is-box",slider:this.settings.slider,onRender:()=>{this.settings.onRender()},onChange:()=>{this.settings.onChange()},useLightbox:this.settings.useLightbox,lightboxArrow:this.settings.lightboxArrow,themes:this.settings.themes,moduleConfig:this.settings.moduleConfig,onImageBrowseClick:this.settings.onImageBrowseClick,onImageSettingClick:this.settings.onImageSettingClick,onImageSelectClick:this.settings.onImageSelectClick,onFileSelectClick:this.settings.onFileSelectClick,onVideoSelectClick:this.settings.onVideoSelectClick,onAudioSelectClick:this.settings.onAudioSelectClick,onMediaSelectClick:this.settings.onMediaSelectClick,onImageEditClick:this.settings.onImageEditClick,setCropperConfig:this.settings.setCropperConfig,onPluginsLoaded:this.settings.onPluginsLoaded,imageselect:this.settings.imageselect,fileselect:this.settings.fileselect,imageEmbed:this.settings.imageEmbed,sourceEditor:this.settings.sourceEditor,customval:this.settings.customval,colors:this.settings.colors,gradientcolors:this.settings.gradientcolors,buttons:this.settings.buttons,buttonsMore:this.settings.buttonsMore,elementButtons:this.settings.elementButtons,elementButtonsMore:this.settings.elementButtonsMore,iconButtons:this.settings.iconButtons,iconButtonsMore:this.settings.iconButtonsMore,customTags:this.settings.customTags,largerImageHandler:this.settings.largerImageHandler,onLargerImageUpload:this.settings.onLargerImageUpload,imageHandler:this.settings.imageHandler,mediaHandler:this.settings.mediaHandler,videoHandler:this.settings.videoHandler,audioHandler:this.settings.audioHandler,fileHandler:this.settings.fileHandler,uploadFile:this.settings.uploadFile,onVideoUpload:this.settings.onVideoUpload,onAudioUpload:this.settings.onAudioUpload,onImageUpload:this.settings.onImageUpload,onMediaUpload:this.settings.onMediaUpload,onFileUpload:this.settings.onFileUpload,framework:this.settings.framework,cellFormat:this.settings.cellFormat,rowFormat:this.settings.rowFormat,row:this.settings.row,cols:this.settings.cols,colequal:this.settings.colequal,colsizes:this.settings.colsizes,classReplace:this.settings.classReplace,columnTool:this.settings.columnTool,elementTool:this.settings.elementTool,animateModal:this.settings.animateModal,elementAnimate:this.settings.elementAnimate,elementEditor:this.settings.elementEditor,onAdd:this.settings.onAdd,imageQuality:this.settings.imageQuality,columnHtmlEditor:this.settings.columnHtmlEditor,rowHtmlEditor:this.settings.rowHtmlEditor,rowMoveButtons:this.settings.rowMoveButtons,htmlSyntaxHighlighting:this.settings.htmlSyntaxHighlighting,scrollableEditingToolbar:this.settings.scrollableEditingToolbar,toolbar:this.settings.toolbar,toolbarDisplay:this.settings.toolbarDisplay,toolbarAddSnippetButton:this.settings.toolbarAddSnippetButton,paste:this.settings.paste,builderMode:this.settings.builderMode,rowcolOutline:this.settings.rowcolOutline,elementSelection:this.settings.elementSelection,animatedSorting:this.settings.animatedSorting,dragWithoutHandle:this.settings.dragWithoutHandle,addButtonPlacement:this.settings.addButtonPlacement,outlineMode:this.settings.outlineMode,elementHighlight:this.settings.elementHighlight,rowTool:this.settings.rowTool,toolStyle:this.settings.toolStyle,outlineStyle:this.settings.outlineStyle,rowHandle:this.settings.rowHandle,snippetAddTool:this.settings.snippetAddTool,mobileSimpleEdit:this.settings.mobileSimpleEdit,clearPreferences:this.settings.clearPreferences,snippetCategories:this.settings.snippetCategories,defaultSnippetCategory:this.settings.defaultSnippetCategory,undoRedoStyles:this.settings.undoRedoStyles,onUndo:()=>{this.doUndoRedo()},onRedo:()=>{this.doUndoRedo()},onBeforeSaveForUndo:()=>{this.doBeforeSaveForUndo()},undoContainerOnly:this.settings.undoContainerOnly,absolutePath:this.settings.absolutePath,defaultFontSizes:this.settings.defaultFontSizes,fontSizeClassValues:this.settings.fontSizeClassValues,leadingPreset:this.settings.leadingPreset,contentSizes:this.settings.contentSizes,cssClasses:this.settings.cssClasses,useCssClasses:this.settings.useCssClasses,useButtonPlugin:this.settings.useButtonPlugin,enableDragResize:this.settings.enableDragResize,simpleTextSettings:this.settings.simpleTextSettings,shortenHTML:this.settings.shortenHTML,zoom:this.settings.zoom,onZoomStart:()=>{this.wrapperEl.style.transition="none"},onZoom:t=>{const e=300*(1-t)/.5;this.wrapperEl.style.marginTop=`${e}px`;const i=this.wrapperEl;let n=i.querySelectorAll(".is-section-tool");n.forEach((t=>{t.setAttribute("data-section-active","")})),n=i.querySelectorAll(".is-box-tool"),n.forEach((t=>{t.setAttribute("data-box-active","")})),n=i.querySelectorAll(".is-box-info"),n.forEach((t=>{t.setAttribute("data-boxinfo-active","")}))},onZoomEnd:()=>{const t=this.wrapperEl;if(!t.querySelector(".is-section"))return;this.addSpace();let e=t.querySelectorAll(".is-section-tool");e.forEach((t=>{t.removeAttribute("data-section-active")})),e=t.querySelectorAll(".is-box-tool"),e.forEach((t=>{t.removeAttribute("data-box-active")})),e=t.querySelectorAll(".is-box-info"),e.forEach((t=>{t.removeAttribute("data-boxinfo-active")})),this.rePositionTool(),this.wrapperEl.style.transition="",this.refreshAnim()},onThemeChange:()=>{this.refreshUIStyle()},filePicker:this.settings.filePicker,filePickerSize:this.settings.filePickerSize,fileSelect:this.settings.fileSelect,imageSelect:this.settings.imageSelect,videoSelect:this.settings.videoSelect,audioSelect:this.settings.audioSelect,mediaSelect:this.settings.mediaSelect,onAssetOpen:this.settings.onAssetOpen,selectIcon:this.settings.selectIcon,otherSelect:this.settings.otherSelect,otherSelectCaption:this.settings.otherSelectCaption,otherSelectIcon:this.settings.otherSelectIcon,imageSelectWidth:this.settings.imageSelectWidth,imageSelectHeight:this.settings.imageSelectHeight,fileSelectWidth:this.settings.fileSelectWidth,fileSelectHeight:this.settings.fileSelectHeight,videoSelectWidth:this.settings.videoSelectWidth,videoSelectHeight:this.settings.videoSelectHeight,audioSelectWidth:this.settings.audioSelectWidth,audioSelectHeight:this.settings.audioSelectHeight,mediaSelectWidth:this.settings.mediaSelectWidth,mediaSelectHeight:this.settings.mediaSelectHeight,otherSelectWidth:this.settings.otherSelectWidth,otherSelectHeight:this.settings.otherSelectHeight,imageSelectMaxWidth:this.settings.imageSelectMaxWidth,fileSelectMaxWidth:this.settings.fileSelectMaxWidth,videoSelectMaxWidth:this.settings.videoSelectMaxWidth,audioSelectMaxWidth:this.settings.audioSelectMaxWidth,mediaSelectMaxWidth:this.settings.mediaSelectMaxWidth,otherSelectMaxWidth:this.settings.otherSelectMaxWidth,assetPanelFullScreen:this.settings.assetPanelFullScreen,codeEditorWidth:this.settings.codeEditorWidth,codeEditorHeight:this.settings.codeEditorHeight,codeEditorMaxWidth:this.settings.codeEditorMaxWidth,blockCodeEditorWidth:this.settings.blockCodeEditorWidth,blockCodeEditorHeight:this.settings.blockCodeEditorHeight,blockCodeEditorMaxWidth:this.settings.blockCodeEditorMaxWidth,assetRefresh:this.settings.assetRefresh,leftSidebarAdj:30,leftSidebarAdj2:80,onContentClick:t=>{this.settings.onContentClick&&this.settings.onContentClick(t),this.doc.body.classList.remove("temporary-hide-tools");let e=t.target;if(!e.closest('[contenteditable="true"]')){let i=this.editor.dom.getParentElement(e,"a");if("a"===e.tagName.toLowerCase()||i){"a"===e.tagName.toLowerCase()&&(i=e);let n=i.getAttribute("href");if(n&&0===n.indexOf("#")&&"#"!==n.trim())if(0===n.indexOf("#section")){let e=n.replace("#section","");if(!isNaN(parseInt(e))){let i,n=this.doc.querySelectorAll(".is-section"),o=0;n.forEach((function(t){a_.hasClass(t,"is-section-navbar")||(o===e-1&&(i=t),o++)})),i&&this.scrollTo(i),t.preventDefault()}}else{let e=this.doc.querySelector(n);e&&(this.scrollTo(e),t.preventDefault())}}}}}),this.editor.loadSnippets(this.snippetUrl),this.controlpanel&&this.controlpanel.editorReady();const t=this.builderStuff.querySelector(".is-modal.content-preview");this.modalPagePreview=t;const e=t.querySelector("iframe");this.win.addEventListener("scroll",this.doScrollSync=()=>{this.scrollSync(e)}),this.isTouchSupport=this.editor.isTouchSupport,this.startAIAssistant&&this.openAIAssistant(),this.UIColor&&this.editor.setUIColor(this.UIColor.mode,this.UIColor.css);const i=this.builderStuff.querySelector(".is-sidebar");if(i){let t=i.querySelectorAll("[title]");Array.prototype.forEach.call(t,(t=>{t.setAttribute("data-title",t.getAttribute("title")),this.editor.tooltip.set(t,5,3)}))}if(this.tooltipScope){document.querySelectorAll(this.tooltipScope).forEach((t=>{t.querySelectorAll("[title]").forEach((t=>{t.setAttribute("data-title",t.getAttribute("title")),this.editor.tooltip.set(t,5,3)}))}))}this.settings.iframeDragDrop&&this.iframeDragDropSetup()}isIPad(){return/iPad/.test(navigator.userAgent)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1}iframeDragDropSetup(){if(!window.data_basic)return void setTimeout((()=>{this.iframeDragDropSetup()}),100);const t=new l_({iframe:this.iframe,dropZoneSelector:".is-wrapper, .box-canvas, .is-container",onValidate:({block:t,dropTarget:e})=>{let i=t.html;const n=t.noedit;let o,s=!1;e.classList.contains("box-canvas")&&(s=!0),s||"canvas"!==t.mode||(i=t.html2),o=-1===i.indexOf('"row');let l=!1;i.includes('"is-block')&&(l=!0,o=!1);const a=this.editor.row,r=this.editor.cols;if(""!==a&&12===r.length&&(i=i.replace(new RegExp("row clearfix","g"),"row"),i=i.replace(new RegExp('"row',"g"),'"'+a),i=i.replace(new RegExp("column full","g"),r[11]),i=i.replace(new RegExp("column half","g"),r[5]),i=i.replace(new RegExp("column third","g"),r[3]),i=i.replace(new RegExp("column fourth","g"),r[2]),i=i.replace(new RegExp("column fifth","g"),r[1]),i=i.replace(new RegExp("column sixth","g"),r[1]),i=i.replace(new RegExp("column two-third","g"),r[7]),i=i.replace(new RegExp("column two-fourth","g"),r[8]),i=i.replace(new RegExp("column two-fifth","g"),r[9]),i=i.replace(new RegExp("column two-sixth","g"),r[9])),i=i.replace(/{id}/g,this.makeId()),this.settings.onAdd&&(i=this.settings.onAdd(i)),this.settings.snippetPathReplace.length>0&&""!==this.settings.snippetPathReplace[0]){var c=new RegExp(this.settings.snippetPathReplace[0],"g");i=i.replace(c,this.settings.snippetPathReplace[1]);var u=this.settings.snippetPathReplace[0].replace(/\//g,"%2F"),d=this.settings.snippetPathReplace[1].replace(/\//g,"%2F"),b=new RegExp(u,"g");i=i.replace(b,d)}if(o){if(i=`<div class="${this.editor.row}"><div class="${this.editor.cols[this.editor.cols.length-1]}"${n?" data-noedit":""}>${i}</div></div>`,s){i=`\n <div class="is-block block-steady height-auto" data-new-dummy="1" style="top: 20%; left: 20%; width: ${"760px"};">\n <div class="is-container size-17 leading-13">\n ${i}\n </div>\n </div>\n `}}else if(l);else{let t=document.createElement("div");t.innerHTML=i;let e=t.querySelectorAll("[data-html]");if(Array.prototype.forEach.call(e,(t=>{i=decodeURIComponent(t.getAttribute("data-html")),i=i.replace(/{id}/g,this.makeId()),i=i.replace(/<script>/g,""+(this.settings.nonce?`<script nonce="${this.settings.nonce}">`:"<script>"));for(var e=1;e<=20;e++)i=i.replace("[%HTML"+e+"%]",void 0===t.getAttribute("data-html-"+e)?"":decodeURIComponent(t.getAttribute("data-html-"+e)));t.innerHTML=i,t.classList.add("dummy-module")})),i=t.innerHTML,s){i=`\n <div class="is-block block-steady height-auto" data-new-dummy="1" style="top: 20%; left: 20%; width: ${"760px"};">\n <div class="is-container size-17 leading-13">\n ${i}\n </div>\n </div>\n `}}return i},onDrop:({element:t})=>{const e=t.closest(".is-builder");if(e){let t=e.children,i=[];for(let e=0;e<t.length;e++){const n=t[e];n.querySelector(".is-tool")||i.push(n)}if(this.editor.applyBehaviorOn(e),this.win.builderRuntime&&this.win.builderRuntime.reinitialize(e),i.length>0){let t=i[0];this.editor.util.autoSelect(t)}this.editor.onChange(),this.editor.onRender(),this.editor.elmTool.hide(),this.editor.applySortableGrid()}else this.editor.onBlockSectionAdd&&this.editor.onBlockSectionAdd(),this.editor.onChange(),this.editor.onRender(),this.win.builderRuntime&&this.win.builderRuntime.reinitialize()}});t.registerBlocks(window.data_basic.snippets)}scrollSync(t){if(this.modalPagePreview.classList.contains("active")&&!this.cancelScrollSync)try{let e=t.contentWindow.document.querySelector(".is-wrapper").offsetHeight,i=this.wrapperEl.offsetHeight*this.editor.zoom,n=e-i;this.wrapperEl.style.marginBottom="100vh",t.contentWindow.scrollTo(0,this.win.scrollY+this.win.scrollY/i*n)}catch(t){}}init(){a_.appendHtml(this.doc.head,`<style id="_contentbox_css">\n body {\n background: ${this.settings.backgroundColor};\n }\n .block-click.is-box {\n cursor: unset;\n }\n .block-click.is-box > * {\n pointer-events: unset;\n user-select: unset;\n } \n\n .is-wrapper.is-container-edit > div.section-select, .is-wrapper.is-clean-edit > div.section-select {\n overflow-x: unset !important;\n overflow-y: unset !important;\n z-index: 2;\n }\n\n .is-wrapper .drag-over-image {\n outline: #a2f0ce 3px solid;\n }\n\n /*\n .is-wrapper.is-edit {\n min-height: 100vh;\n }\n */\n\n ${this.iframe?"":"\n .is-wrapper.is-edit {\n padding-left: 61px;\n }\n\n .is-wrapper.is-edit .is-section.is-section-navbar,\n .is-wrapper.is-edit .is-section.is-section-navbar .is-topbar {\n left: 0;\n margin-left: 60px;\n width: calc(100% - 60px);\n }\n .is-wrapper.is-edit .is-section.is-section-navbar .is-topbar.static {\n width: 100%;\n margin-left: unset;\n }\n "}\n \n /* protected section */\n .is-section.protected .is-box-tool {\n display: none !important;\n }\n .is-section.protected .is-box-info {\n display: none !important;\n }\n\n /* manual selection during animation edit */\n .hard-select .is-box-tool {\n display: none !important;\n }\n .hard-select .is-box-info {\n display: none !important;\n }\n .hard-select .is-section-tool {\n display: none !important;\n }\n .hard-select .box-select {\n outline: #00da89 1px solid;\n outline-offset: -1px;\n z-index: 1;\n }\n .hard-select .box-select.box-canvas {\n outline: #ff9fda 1px solid;\n }\n\n .hard-select .box-select .is-box-tool {\n display: flex !important;\n }\n .hard-select .box-select .is-box-info {\n display: flex !important;\n }\n .hard-select .box-select .is-overlay {\n z-index: -1;\n }\n .hard-select .section-select .is-section-tool {\n display: flex !important;\n }\n\n /* drop block as section */\n .is-wrapper > .sortable-ghost {\n height: 40px !important;\n min-height: unset !important;\n background: rgba(204, 204, 204, 0.15) !important;\n }\n .is-wrapper > .sortable-ghost * {\n opacity: 0 !important;\n }\n\n /* toggle tool */\n .is-wrapper.is-clean-edit.hard-select .box-select .is-box-tool,\n .is-wrapper.is-clean-edit .box-select .is-box-tool {\n display: none !important;\n }\n .is-wrapper.is-clean-edit.hard-select .box-select .is-box-info,\n .is-wrapper.is-clean-edit .box-select .is-box-tool {\n display: none !important;\n }\n .is-wrapper.is-clean-edit.hard-select .section-select .is-section-tool,\n .is-wrapper.is-clean-edit .section-select .is-section-tool {\n display: none !important;\n }\n .is-wrapper.is-clean-edit.hard-select .box-select,\n .is-wrapper.is-clean-edit .box-select {\n outline: none !important;\n }\n \n /* clean UI for selection only */\n /*\n .selection-only:not([data-skrollrr-off]) .is-wrapper.hard-select .box-select .is-box-tool,\n .selection-only:not([data-skrollrr-off]) .is-wrapper .box-select .is-box-tool {\n display: none !important;\n }\n .selection-only:not([data-skrollrr-off]) .is-wrapper.hard-select .box-select .is-box-info,\n .selection-only:not([data-skrollrr-off]) .is-wrapper .box-select .is-box-info {\n display: none !important;\n }\n .selection-only:not([data-skrollrr-off]) .is-wrapper.hard-select .section-select .is-section-tool,\n .selection-only:not([data-skrollrr-off]) .is-wrapper .section-select .is-section-tool {\n display: none !important;\n }\n .selection-only:not([data-skrollrr-off]) .is-wrapper .is-rowadd-tool {\n display: none !important;\n }\n .selection-only:not([data-skrollrr-off]) .is-wrapper .is-tool {\n display: none !important;\n }\n .selection-only:not([data-skrollrr-off]) .is-tool {\n z-index: -10000 !important;\n }\n */\n\n /* box info */\n .is-wrapper .is-box-info {\n position: absolute;\n z-index: 1;\n top: 15px;\n right: 15px;\n left: auto;\n width: auto;\n display: none;\n border-radius: 50px;\n overflow:hidden;\n background: rgba(243, 243, 243, 0.9);\n width: 92px;\n justify-content: center;\n }\n .is-wrapper .is-box-info button {\n width:32px;\n height:32px;\n cursor:pointer;\n }\n .is-wrapper .is-box-info * {\n color: #000;\n }\n .is-wrapper .box-select .is-box-info {\n display: flex;\n }\n .is-wrapper .is-section-navbar .is-box-info {\n display: none !important;\n }\n div.is-section-navbar + div .is-box-info {\n top: 90px;\n }\n \n /* section info */\n .is-wrapper .is-section-info {\n position: absolute;\n z-index: 2;\n top: 3px;\n left: 3px;\n display: none;\n }\n .is-wrapper .is-section-info > div {\n width: auto;\n height: auto;\n padding: 5px 20px;\n background-color: rgb(255, 239, 100);\n color: #111;\n font-family: sans-serif;\n letter-spacing: 2px;\n font-size: 17px;\n }\n .is-wrapper .section-select .is-section-info {\n display: block;\n }\n\n /* To make editing possible on wide content */\n .is-wrapper.is-edit .section-wide-250 .is-box-centered { /*old structure*/\n overflow-x: auto;\n overflow-y: hidden;\n }\n\n .is-wrapper.is-container-edit > div.section-wide-250.section-select, \n .is-wrapper.is-clean-edit > div.section-wide-250.section-select,\n .is-wrapper.is-edit .section-wide-250 {\n overflow-x: auto !important;\n overflow-y: hidden !important;\n }\n\n .is-wrapper.is-edit .section-wide-250 .is-container > div > div { /* To make col tool visible */\n max-height: 90vh; \n }\n\n /* Hide on Zoom */\n .hard-select .section-select .is-section-tool[data-section-active],\n .is-section-tool[data-section-active] {\n display: none !important;\n }\n .hard-select .box-select .is-box-tool[data-box-active],\n .is-box-tool[data-box-active] {\n display: none !important;\n }\n .hard-select .box-select .is-box-info[data-boxinfo-active],\n .is-box-info[data-boxinfo-active] {\n display: none !important;\n }\n \n /* New Section Tool */\n .is-section-tool {\n display: none;\n z-index: 1001;\n position: absolute;\n top: calc(17% - 14px);\n right: 0px;\n left: auto;\n font-size: 13px;\n width: 35px;\n height: auto;\n flex-direction: column;\n border-top-left-radius: 3px;\n border-bottom-left-radius: 3px;\n overflow: hidden;\n }\n .is-section-tool > button {\n width: 35px;\n height: 35px;\n border-radius: 0;\n line-height: 35px;\n padding: 0px;\n font-size: 13px;\n cursor: pointer;\n border: none;\n background: transparent;\n }\n .is-section-tool > button.btn-move-section-up, .is-section-tool > button.btn-move-section-down {\n background: #E3E3E3;\n }\n .is-section-tool > button.btn-section-edit {\n background: #03ACD6;\n }\n .is-section-tool > button.btn-section-remove {\n background: rgb(247, 99, 46);\n }\n .is-section-tool > button svg {\n width: 16px;\n height: 16px;\n flex: none;\n }\n .is-section-tool > button.btn-move-section-up *, .is-section-tool > button.btn-move-section-down * {\n color: #000;\n fill: #000;\n }\n .is-section-tool > button.btn-section-edit *, .is-section-tool > button.btn-section-remove * {\n color: #fff;\n fill: #fff;\n }\n\n ${this.simpleEditingBreakpoint?`\n \n @media all and (max-width: ${this.simpleEditingBreakpoint}) {\n .is-tool:not(#divSpacerTool) {\n display: none !important;\n }\n .hard-select .box-select .is-box-info.is-tool {\n display: none !important;\n }\n\n .is-section-tool, \n .hard-select .is-section.section-select .is-section-tool {\n display: none !important;\n }\n\n .is-box-tool > *:not(.is-select-image),\n .hard-select .is-box.box-select .is-box-tool > *:not(.is-select-image) {\n display: none !important;\n }\n \n .is-box .is-box-tool {\n left: -200px !important;\n }\n .is-box:has(.is-overlay-bg) .is-box-tool {\n width: 40px !important;\n left: calc(50% - 20px) !important;\n }\n\n .is-builder .row-active:not([data-protected]).row-outline {\n outline: none !important;\n }\n .hard-select .is-box.box-select {\n // outline: none !important;\n }\n }\n \n `:""}\n\n .container-select {\n outline: #00da89 1px solid\n }\n \n .selection-active {\n animation-name: selection-active-anim;\n animation-duration: 1s;\n }\n @keyframes selection-active-anim {\n 0% {transform:scale(1);}\n 50% {transform:scale(0.95);}\n 100% {transform:scale(1);}\n }\n\n .is-wrapper .transition-edit.is-section {\n transition: all 0.2s ease !important;\n }\n .is-wrapper .transition-edit .is-box {\n transition: all 0.2s ease !important;\n }\n \n\n /* box-canvas */\n :root {\n --is-outline: 1px solid rgb(96 108 255 / 65%);\n --is-handle: 1px solid rgb(121 131 255);\n \n --is-outline2: 1px solid rgba(255, 1, 107, 0.65);\n --is-handle2: 1px solid rgb(253 83 154); \n }\n \n .editableblocks .is-block {\n cursor: pointer;\n user-select: none;\n touch-action: none;\n outline: none;\n }\n .editableblocks .is-block:not(.is-group):not(.editable):after {\n position: absolute;\n content: "";\n display: block;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n opacity: 0;\n z-index: 1;\n }\n .is-block.active {\n outline: var(--is-outline);\n }\n .is-block.active.editable {\n outline: none;\n cursor: auto; \n z-index: 10;\n }\n .is-block.active.multi {\n outline: var(--is-outline);\n }\n .is-block.is-shape.active.multi {\n outline: var(--is-outline2);\n }\n .is-block.is-shape.active:not(.multi) {\n outline: none;\n }\n .is-block.is-shape {\n transform-origin: 0 0 !important;\n -webkit-transform-origin: 0 0;\n -moz-transform-origin: 0 0;\n -o-transform-origin: 0 0;\n }\n .block-active {\n background-color: #f5f6f7c7;\n }\n \n /* Ruler */\n .ruler {\n position: absolute;\n background-color: rgba(157, 155, 255, 0.4);\n z-index: 1;\n }\n .horizontal-ruler {\n width: 100%;\n height: 2px;\n top: -1000px;\n left: 0;\n }\n .vertical-ruler {\n width: 2px;\n height: 100%;\n top: 0;\n left: -1000px;\n }\n \n /* Resize Handles */\n .handle {\n width: 8px;\n height: 8px;\n position: absolute;\n cursor: pointer;\n display: none;\n \n background-color: #fff;\n outline: var(--is-handle);\n }\n .is-block.active > .handle {\n display: block;\n z-index: 2;\n }\n .is-block.active.editable > .handle {\n display: none;\n }\n .is-block.active.multi .handle {\n display: none;\n }\n .top-left,\n .top-right,\n .bottom-left,\n .bottom-right,\n .top, .bottom, .left, .right {\n z-index: 1;\n }\n .top-left {\n top: -4px;\n left: -4px;\n cursor: nwse-resize;\n }\n .top-right {\n top: -4px;\n right: -4px;\n cursor: nesw-resize;\n }\n .bottom-left {\n bottom: -4px;\n left: -4px;\n cursor: nesw-resize;\n }\n .bottom-right {\n bottom: -4px;\n right: -4px;\n cursor: nwse-resize;\n }\n .top {\n top: -4px;\n left: calc(50% - 4px);\n cursor: ns-resize;\n }\n .bottom {\n bottom: -4px;\n left: calc(50% - 4px);\n cursor: ns-resize;\n }\n .left {\n top: calc(50% - 4px);\n left: -4px;\n cursor: ew-resize;\n }\n .right {\n top: calc(50% - 4px);\n right: -4px;\n cursor: ew-resize;\n }\n \n /* Rotate handle */\n .rotate-handle {\n width: 8px;\n height: 8px;\n position: absolute;\n top: calc(50% - 4px);\n right: -33px;\n cursor: ew-resize;\n display: none;\n cursor: grab;\n z-index: 2;\n \n background-color: #fff;\n outline: var(--is-handle);\n }\n .rotate-handle div {\n width: 25px;\n height: 1px;\n border-top: var(--is-outline);\n right: 8px;\n top: calc(50% - 0px);\n position: absolute;\n pointer-events: none;\n }\n .is-block.active > .rotate-handle {\n display: block;\n }\n .is-block.active.editable .rotate-handle {\n display: none;\n }\n .is-block.is-group.active > .rotate-handle {\n display: none;\n }\n .is-block.active.multi .rotate-handle {\n display: none;\n }\n \n /* Shape handles */\n .shape-handle {\n width: 8px;\n height: 8px;\n position: absolute;\n display: none;\n transform: none;\n z-index: 1;\n /*backface-visibility: hidden; Improve rendering during transformation */\n \n background-color: #fff;\n outline: var(--is-handle2);\n }\n .shape-handle.top-left {\n transform: translate(-4px, -4px);\n }\n .shape-handle.top-right {\n transform: translate(-4px, -4px);\n }\n .shape-handle.bottom-left {\n transform: translate(-4px, -4px);\n }\n .shape-handle.bottom-right {\n transform: translate(-4px, -4px);\n }\n .shape-handle.rotate {\n transform: translate(-4px, -4px);\n cursor: grab;\n }\n .shape-line {\n width: 0px;\n height: 1px;\n position: absolute;\n transform-origin: 0 0;\n border-top: var(--is-outline2);\n display: none;\n z-index: 1;\n pointer-events: none;\n backface-visibility: hidden; /* Improve rendering during transformation */\n }\n \n .is-shape > .rotate-handle,\n .is-shape > .handle,\n .is-shape > .handle.left, .is-shape >.handle.top, .is-shape > .handle.right, .is-shape > .handle.bottom {\n display: none !important;\n }\n \n .is-block.clone {\n z-index:1000;\n background-color: transparent !important;\n background: none !important;\n }\n .is-block.clone .is-container,\n .is-block.clone .is-block-overlay {\n opacity:0;\n }\n .is-block.cloned {\n outline:none;\n }\n .is-block.cloned .handle, \n .is-block.cloned .rotate-handle {\n display:none;\n }\n \n @media (max-width: 760px) {\n .is-box.autolayout .is-block > .rotate-handle,\n .is-box.autolayout .is-block > .handle {\n display: none;\n }\n\n /* NEW */\n .is-box.autolayout .is-block.clone {\n display:none;\n }\n .is-box.autolayout .is-block.cloned {\n outline: var(--is-outline);\n }\n /*\n .is-box.box-select {\n outline: none !important;\n }\n */\n }\n \n .is-block.locked .handle,\n .is-block.locked .rotate-handle {\n display: none !important;\n } \n\n\n /* Canvas Mode */\n .box-canvas > .sortable-ghost {\n background: transparent;\n outline: rgba(140, 140, 140, 0.5) 4px dashed !important;\n outline-offset: -15px;\n height:100% !important;\n transition: none !important;\n z-index:1;\n }\n\n /* Group color */\n .block-active,\n .is-group.active {\n background-color: #81ffd538;\n }\n .block-active .is-block {\n outline: #51e1b2a3 2px solid;\n outline-offset: 2px;\n }\n\n i.bi, i.icon { display: inline-flex; }\n\n </style>`),a_.appendHtml(document.head,'<style id="_contentboxstuff_css">\n\n #_cbhtml .is-modal.editbox.is-modal-content {\n z-index: 10002;\n position: fixed;\n overflow: hidden;\n width: 380px;\n height: auto;\n top: calc(50% - 250px);\n left: calc(50% - 175px);\n box-sizing: content-box;\n flex-direction: row;\n align-items: flex-start;\n }\n #_cbhtml .is-modal.editbox.is-modal-content.active {\n display: flex;\n }\n #_cbhtml .is-modal.editbox.is-modal-content .is-modal-overlay {\n display: none;\n }\n\n #_cbhtml .is-modal.editsection.is-modal-content {\n z-index: 10002;\n position: fixed;\n overflow: hidden;\n width: 400px;\n height: auto;\n top: calc(50% - 265px);\n left: calc(50% - 157px);\n box-sizing: content-box;\n flex-direction: row;\n align-items: flex-start;\n }\n #_cbhtml .is-modal.editbox.is-modal-content.active {\n display: flex;\n }\n #_cbhtml .is-modal.editbox.is-modal-content .is-modal-overlay {\n display: none;\n }\n\n /* Switch */\n .is-ui .switch {\n position: relative;\n display: inline-block;\n width: 60px;\n height: 34px;\n }\n \n .is-ui .switch input {\n opacity: 0;\n width: 0;\n height: 0;\n }\n \n .is-ui .switch .slider {\n position: absolute;\n cursor: pointer;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background-color: #ccc;\n -webkit-transition: 0.4s;\n transition: 0.4s;\n border-radius: 34px;\n }\n \n .dark .is-ui .switch .slider {\n background-color: #7c7c7c;\n }\n \n .is-ui .switch .slider:before {\n position: absolute;\n content: "";\n height: 26px;\n width: 26px;\n left: 4px;\n bottom: 4px;\n background-color: #fff;\n -webkit-transition: 0.4s;\n transition: 0.4s;\n border-radius: 50%;\n }\n \n .dark .is-ui .switch .slider:before {\n background-color: rgba(255, 255, 255, 0.82);\n }\n \n .is-ui .switch input:checked + .slider {\n background-color: #0e75de;\n border-radius: 34px;\n }\n \n .dark .is-ui .switch input:checked + .slider {\n background-color: #0e75de;\n }\n \n .is-ui .switch input:focus + .slider {\n box-shadow: 0 0 1px #0e75de;\n }\n \n .dark .is-ui .switch input:focus + .slider {\n box-shadow: 0 0 1px #0e75de;\n }\n \n .is-ui .switch input:checked + .slider:before {\n -webkit-transform: translateX(26px);\n -ms-transform: translateX(26px);\n transform: translateX(26px);\n }\n\n /* temporary hide tools on wide section during scroll */\n .temporary-hide-tools .is-ui .is-tool {\n display: none !important;\n }\n\n\n /* pop ai more */\n .dark #_cbhtml .is-pop.ai-more button:hover {\n background-color: rgba(255,255,255,0.1) !important;\n }\n #_cbhtml .is-pop.ai-more button:hover {\n background-color: rgba(0,0,0,0.03) !important;\n }\n .is-pop.ai-more button {\n font-size: 14px !important;\n }\n </style>');const t=this.builderStuff;a_.appendHtml(t,'<div class="page-overlay"></div>');let e=t.querySelector(".page-overlay"),n=`\n <form class="is-cover-upload-central" data-tooltip-top title="${i("Change Background")}" data-title="${i("Change Background")}" style="opacity:1;position:absolute;width:35px;height:35px;" target="target-upload-cover" method="post" action="${this.coverImageHandler}" enctype="multipart/form-data" style="position:relative;width:35px;height:35px;display:inline-block;float:left;background: rgb(90, 156, 38);">\n <input type="file" tabindex="-1" class="input-file-cover-central" name="fileCover" accept="image/*" style="position:absolute;top:-30px;left:0;width:100%;height:80px;opacity: 0;cursor: pointer;"/>\n <input tabindex="-1" class="input-custom-value-central" name="hidcustomval" type="hidden" value="${this.customval}" />\n </form>\n <iframe id="target-upload-cover" name="target-upload-cover" src="about:blank" style="width:0.1px;height:0.1px;position:absolute;top:0;right:0px;opacity:0.0001"></iframe>\n `;a_.appendHtml(t,n);let o=t.querySelector(".input-file-cover-central");if(this.iframe&&(o=this.contentStuff.querySelector(".input-file-cover-central")),o&&o.addEventListener("change",(e=>{if(""===o.value)return;this.editor.saveForUndo(),t.insertAdjacentHTML("beforeend",`<div class="waiting-indicator-overlay"></div>\n <div class="waiting-indicator">\n <div>${i("Uploading..")}</div>\n </div>\n `);const n=t.querySelector(".waiting-indicator");let s,l,a=this.targetBox;this.iframe?(n.style.top="0",n.style.left="calc(50% - 68px)"):(s=a.getBoundingClientRect().top+window.pageYOffset,l=a.getBoundingClientRect().left+window.pageXOffset,n.style.top=s+"px",n.style.left=l+"px"),this.settings.onUploadCoverImage?this.settings.onUploadCoverImage(e):this.iframe?this.contentStuff.querySelector(".is-cover-upload-central").submit():t.querySelector(".is-cover-upload-central").submit(),o.value="",e.preventDefault(),e.stopImmediatePropagation()})),this.controlPanel){let e=`\n <div class="is-modal editcustomcode" tabindex="-1" role="dialog" aria-modal="true" aria-hidden="true">\n <div style="max-width:900px;height:570px;padding:0;box-sizing:border-box;position:relative;">\n <div class="is-modal-bar is-draggable" style="position: absolute;top: 0;left: 0;width: 100%;z-index:1;">${i("Custom Code (Javascript Allowed)")}</div>\n <textarea id="txtBoxCustomCode" class="inptxt" style="background: #fff;position: absolute;top: 0;left: 0;width:100%;height:100%;border:none;border-bottom:60px solid transparent;border-top:40px solid transparent;box-sizing:border-box;"></textarea>\n <input id="hidBoxCustomCode" type="hidden" />\n <button class="input-ok classic" style="height:60px;position:absolute;left:0;bottom:0;">${i("Ok")}</button>\n </div>\n </div>\n \n <div class="is-modal editmodule" tabindex="-1" role="dialog" aria-modal="true" aria-hidden="true">\n <div style="max-width:900px;height:570px;padding:0;box-sizing:border-box;position:relative;">\n <div class="is-modal-bar is-draggable" style="position: absolute;top: 0;left: 0;width: 100%;z-index:1;"><span>${i("Module Settings")}</span>\n <button class="is-modal-close" tabindex="-1" title="${i("Close")}">\n <svg class="is-icon-flex" style="width:30px;height:30px;"><use xlink:href="#ion-ios-close-empty"></use></svg>\n </button>\n </div>\n <iframe style="position: absolute;top: 0;left: 0;width:100%;height:100%;border:none;border-bottom:60px solid transparent;border-top:40px solid transparent;margin:0;box-sizing:border-box;" src="about:blank"></iframe>\n <input id="hidModuleCode" type="hidden" />\n <input id="hidModuleSettings" type="hidden" />\n <button class="input-ok classic-primary" style="width:100%;height:60px;position:absolute;left:0;bottom:0;">${i("Ok")}</button>\n </div>\n </div>\n \n <div class="is-modal delsectionconfirm" tabindex="-1" role="dialog" aria-modal="true" aria-hidden="true">\n <div style="max-width: 450px;">\n <div style="margin: 20px 0 30px;text-align:center;font-size: 14px;">${i("Are you sure you want to delete this section?")}</div>\n <button title="${i("Delete")}" class="input-ok classic">${i("Delete")}</button>\n </div>\n </div>\n `;a_.appendHtml(t,e);const n=t.querySelector(".is-modal.delsectionconfirm");n.querySelector(".input-ok").addEventListener("click",(()=>{this.section.sectionDelete(),this.hideModal(n),this.onSelectChange&&this.onSelectChange()}));const o=t.querySelector(".is-modal.editcustomcode");o.querySelector(".input-ok").addEventListener("click",(()=>{let e=this.activeBox.querySelector(".is-overlay-content[data-module]");this.editor.saveForUndo();const i=t.querySelector("#hidBoxCustomCode"),n=t.querySelector("#txtBoxCustomCode");i.value=n.value,e.setAttribute("data-html",encodeURIComponent(i.value));let s=i.value;s=s.replace(/{id}/g,a_.uniqueId());let l=document.createRange();e.innerHTML="",e.appendChild(l.createContextualFragment(s)),this.settings.onRender(),this.settings.onChange(),this.hideModal(o)}));const s=t.querySelector(".is-modal.editmodule");s.querySelector(".input-ok").addEventListener("click",(()=>{let e=this.doc.querySelector('[data-module-active="1"]');this.editor.saveForUndo();let i=s.querySelector("iframe");if(!i.contentWindow.construct)return;{const t=i.contentWindow.construct();if("object"==typeof t&&null!==t&&t.error)return void alert(t.error)}this.editor.saveForUndo();const n=t.querySelector("#hidModuleCode"),o=t.querySelector("#hidModuleSettings");e.setAttribute("data-html",encodeURIComponent(n.value)),e.setAttribute("data-settings",encodeURIComponent(o.value));let l=n.value;l=l.replace(/{id}/g,a_.uniqueId());let a=document.createRange();e.innerHTML="",e.appendChild(a.createContextualFragment(l)),this.settings.onRender(),this.makeSortable(e),this.settings.onChange(),this.hideModal(s)}))}else this.editsection=new r(this),this.editbox=new u(this);setTimeout((()=>{if(this.pageSetupDone||this.pageSetup(),(null!=localStorage.getItem("_livepreview")||this.settings.livePreviewOpen)&&this.openPreview(),null!=localStorage.getItem("_disableanimation")){this.doc.body.setAttribute("data-skrollrr-off","true");this.sidebar.pageQuickSettings.querySelector(".cmd-live-preview").checked=!1,this.refreshPage()}null!=localStorage.getItem("_timelinewindow")&&this.timeline.edit()}),300);const s=()=>{let i,n=document.querySelector(".pace-inactive");n&&n.parentNode.removeChild(n),i=null!==localStorage.getItem("_zoom")?localStorage.getItem("_zoom"):this.settings.zoom,this.wrapperEl.style.transition="none";const o=300*(1-i)/.5;this.wrapperEl.style.marginTop=`${o}px`,this.wrapperEl.style.transition="all 400ms ease",setTimeout((()=>{this.wrapperEl.style.opacity=1,setTimeout((()=>{this.wrapperEl.style.transition=""}),400)}),400);let s=t.querySelector(".is-sidebar");s&&(s.style.opacity=1),this.builderStuff.style.visibility="visible",setTimeout((()=>{e=t.querySelectorAll(".page-overlay"),e.forEach((t=>{t.parentNode.removeChild(t)})),this.wrapperEl.style.transition=""}),300)};setTimeout((()=>{this.onStart&&this.onStart(),s()}),300),this.doc.addEventListener("wheel",(()=>{if(this.editor.activeElement){if(this.editor.activeElement.closest(".section-wide-250")){this.doc.body.classList.add("temporary-hide-tools"),this.editor.moveable&&this.editor.moveable.updateRect();let t=this.doc.querySelector(".moveable-control-box");t&&(t.style.display="none")}if(this.editor.activeElement.closest(".scroll-y")){this.doc.body.classList.add("temporary-hide-tools"),this.editor.moveable&&this.editor.moveable.updateRect();let t=this.doc.querySelector(".moveable-control-box");t&&(t.style.display="none")}}})),this.doDocumentClick=t=>{this.onPageClick&&this.onPageClick();var e=(t=t||window.event).target||t.srcElement;if(e.closest("[data-top-locked], [data-bottom-locked]")){let i=e.closest("a");if(i){let e=i.getAttribute("href");if(e)if(0===e.indexOf("#")&&"#"!==e.trim())if(0===e.indexOf("#section")){let i=e.replace("#section","");if(!isNaN(parseInt(i))){let e,n=this.doc.querySelectorAll(".is-section"),o=0;n.forEach((function(t){t.classList.contains("is-section-navbar")||t.hasAttribute("data-top-locked")||(o===i-1&&(e=t),o++)})),e&&this.scrollTo(e),t.preventDefault()}}else{let i=this.doc.querySelector(e);i&&(this.scrollTo(i),t.preventDefault())}else"_blank"!==i.getAttribute("target")&&t.preventDefault()}return}if(!(e.closest("#_cbhtml")||e.closest(".is-box-tool")||e.closest(".is-box-info")||e.closest(".is-section-tool")||e.closest(".is-side")||e.closest(".keep-selection")||e.closest(".is-modal")||e.closest(".is-sidebar"))){if(e.closest(".is-wrapper")&&!e.classList.contains("is-wrapper")){let i=this.doc.activeElement&&this.doc.activeElement.closest("[contenteditable]");if(e.closest(".is-container")||i||e.closest(".is-block")){const t=e.closest(".is-box");if(t){e.closest(".is-tool")||e.closest(".is-rowadd-tool")||(t.classList.contains("box-select")&&this.wrapperEl.classList.contains("is-container-edit")?(this.wrapperEl.classList.remove("is-container-edit"),this.wrapperEl.classList.add("is-clean-edit")):(this.wrapperEl.classList.add("is-container-edit"),this.wrapperEl.classList.remove("is-clean-edit")));const i=this.doc.querySelector(".box-select");i&&i.classList.remove("box-select"),t.classList.add("box-select"),this.activeBox=t,this.editor&&(this.editor.activeBox=t),this.wrapperEl.classList.add("hard-select")}const i=e.closest(".is-section");if(i){const t=this.doc.querySelector(".section-select");t&&t.classList.remove("section-select"),this.activeSection&&i!==this.activeSection&&(this.prevSection=this.activeSection),i.classList.add("section-select"),this.activeSection=i}}else{this.editor.inspectedElement=null,this.editor.activeElement=null,this.editor.activeCol=null;const t=e.closest(".is-box");if(t)if(t.classList.contains("box-select")&&!this.wrapperEl.classList.contains("is-clean-edit"))if(this.activeBox=t,this.editor&&(this.editor.activeBox=t),this.controlPanel){if(!this.timeline.modalTimeline.classList.contains("active")&&!this.animateScroll.modalAnimateScroll.classList.contains("active")){const t=this.doc.querySelector(".box-select");t&&t.classList.remove("box-select");const e=this.doc.querySelector(".section-select");e&&e.classList.remove("section-select"),this.wrapperEl.classList.remove("hard-select")}}else{const t=this.editbox.modalEditBox,e=this.editsection.modalEditSection;if("flex"!==t.style.display&&"flex"!==e.style.display&&!this.timeline.modalTimeline.classList.contains("active")&&!this.animateScroll.modalAnimateScroll.classList.contains("active")){const t=this.doc.querySelector(".box-select");t&&t.classList.remove("box-select");const e=this.doc.querySelector(".section-select");e&&e.classList.remove("section-select"),this.wrapperEl.classList.remove("hard-select")}}else{const e=this.doc.querySelector(".box-select");e&&e.classList.remove("box-select");const i=this.doc.querySelector(".section-select");i&&i.classList.remove("section-select"),t.classList.add("box-select"),this.activeBox=t,this.editor&&(this.editor.activeBox=t);const n=t.closest(".is-section");this.activeSection&&n!==this.activeSection&&(this.prevSection=this.activeSection),n.classList.add("section-select"),this.activeSection=n,this.wrapperEl.classList.add("hard-select")}this.wrapperEl.classList.remove("is-container-edit"),this.wrapperEl.classList.remove("is-clean-edit")}if(!this.controlPanel){this.editbox.modalEditBox.style.display="";this.editsection.modalEditSection.style.display=""}e.closest(".is-tool")||e.closest(".is-rowadd-tool")||e.closest(".row-add-initial")||this.settings.onPageContentClick&&this.settings.onPageContentClick(t),this.rePositionTool()}else{if(document.activeElement&&"input"===document.activeElement.tagName.toLowerCase())return;if(this.wrapperEl.classList.remove("is-container-edit"),this.wrapperEl.classList.remove("is-clean-edit"),this.controlPanel){if(!this.timeline.modalTimeline.classList.contains("active")&&!this.animateScroll.modalAnimateScroll.classList.contains("active")){this.wrapperEl.classList.remove("hard-select");this.doc.querySelectorAll(".box-select").forEach((t=>{t.classList.remove("box-select")}));this.doc.querySelectorAll(".section-select").forEach((t=>{t.classList.remove("section-select")}))}}else{const t=this.editbox.modalEditBox;t.style.display="";const e=this.editsection.modalEditSection;if(e.style.display="","flex"!==t.style.display&&"flex"!==e.style.display&&!this.timeline.modalTimeline.classList.contains("active")&&!this.animateScroll.modalAnimateScroll.classList.contains("active")){this.wrapperEl.classList.remove("hard-select");this.doc.querySelectorAll(".box-select").forEach((t=>{t.classList.remove("box-select")}));this.doc.querySelectorAll(".section-select").forEach((t=>{t.classList.remove("section-select")}))}}this.timeline.modalTimeline.classList.contains("active")&&this.timeline.clearSettings(),!this.onSelectChange||e.closest(".keep-selection")||e.closest("#glightbox-body")||this.onSelectChange()}document.body.classList.remove("box-modal-open")}let i=e.closest(".is-sidebar-content"),n=e.closest(".is-sidebar"),o=e.closest(".is-wrapper"),s=e.closest(".is-rte-tool"),l=e.closest(".is-modal"),a=e.closest(".is-pop"),r=e.closest(".is-tool"),c=e.closest(".keep-selection");if(!(i||n||o||s||l||a||r||c)){this.wrapperEl.querySelectorAll(".is-box-tool").forEach((t=>{t.style.display="none"}));this.wrapperEl.querySelectorAll(".is-section-tool").forEach((t=>{t.style.display="none"}));this.wrapperEl.querySelectorAll(".is-box-info").forEach((t=>{t.style.display="none"}))}i||n||this.sidebar.closeSidebar()},this.doc.addEventListener("click",this.doDocumentClick),this.iframe&&(this.doIframeDocumentClick=t=>{var e=(t=t||window.event).target||t.srcElement;if(!document.body.contains(e))return;const i=document.querySelector(".pop-picker.active");if((!e.closest("#_cbhtml")||e.closest("#editPanel")&&!e.closest(".is-content-view"))&&!e.closest(".is-box-tool")&&!e.closest(".is-box-info")&&!e.closest(".is-section-tool")&&!e.closest(".is-side")&&!e.closest(".keep-selection")&&!e.closest(".is-modal")&&!e.closest(".is-sidebar")&&!i){if(document.activeElement&&"input"===document.activeElement.tagName.toLowerCase())return;if(this.wrapperEl.classList.remove("is-container-edit"),this.wrapperEl.classList.remove("is-clean-edit"),this.controlPanel){if(!this.timeline.modalTimeline.classList.contains("active")&&!this.animateScroll.modalAnimateScroll.classList.contains("active")){this.wrapperEl.classList.remove("hard-select");this.doc.querySelectorAll(".box-select").forEach((t=>{t.classList.remove("box-select")}));this.doc.querySelectorAll(".section-select").forEach((t=>{t.classList.remove("section-select")}))}}else{const t=this.editbox.modalEditBox;t.style.display="";const e=this.editsection.modalEditSection;if(e.style.display="","flex"!==t.style.display&&"flex"!==e.style.display&&!this.timeline.modalTimeline.classList.contains("active")&&!this.animateScroll.modalAnimateScroll.classList.contains("active")){this.wrapperEl.classList.remove("hard-select");this.doc.querySelectorAll(".box-select").forEach((t=>{t.classList.remove("box-select")}));this.doc.querySelectorAll(".section-select").forEach((t=>{t.classList.remove("section-select")}))}}this.timeline.modalTimeline.classList.contains("active")&&this.timeline.clearSettings(),document.body.classList.remove("box-modal-open"),this.onSelectChange&&!e.closest(".keep-selection")&&this.onSelectChange()}let n=e.closest(".is-sidebar-content"),o=e.closest(".is-sidebar"),s=e.closest(".is-wrapper"),l=e.closest(".is-rte-tool"),a=e.closest(".is-modal"),r=e.closest(".is-pop"),c=e.closest(".is-tool"),u=e.closest(".keep-selection");if(!(n||o||s||l||a||r||c||u)){this.wrapperEl.querySelectorAll(".is-box-tool").forEach((t=>{t.style.display="none"}));this.wrapperEl.querySelectorAll(".is-section-tool").forEach((t=>{t.style.display="none"}));this.wrapperEl.querySelectorAll(".is-box-info").forEach((t=>{t.style.display="none"}))}n||o||this.sidebar.closeSidebar()},document.addEventListener("click",this.doIframeDocumentClick)),document.addEventListener("keydown",this.doDocumentKeydown=t=>{if(!this.canvas)return;if(!this.activeBox)return;const e=t.ctrlKey||t.metaKey,i="a"===t.key||"A"===t.key;if(e&&i&&this.activeBox.classList.contains("box-canvas"))if(this.iframe){if("iframe"===document.activeElement.tagName.toLowerCase()&&"body"===this.doc.activeElement.tagName.toLowerCase()){const e=this.activeBox.querySelectorAll(".is-block");e.forEach((t=>{t.classList.add("active"),e.length>1&&t.classList.add("multi")})),t.preventDefault(),e.length>0&&this.eb.onMultipleSelect&&this.eb.onMultipleSelect()}}else if("body"===document.activeElement.tagName.toLowerCase()){const e=this.activeBox.querySelectorAll(".is-block");e.forEach((t=>{t.classList.add("active"),e.length>1&&t.classList.add("multi")})),t.preventDefault(),e.length>0&&this.eb.onMultipleSelect&&this.eb.onMultipleSelect()}}),this.iframe&&this.doc.addEventListener("keydown",this.doDocumentKeydown),window.wheel=()=>{}}openFilePicker(t,e){this.editor.openAssetSelect(t,e)}openColorPicker(t,e,i){this.editor.openColorPicker(t,e,i)}openIconPicker(t){this.editor.openIconPicker(t)}openPreview(){this.animateScroll.openPreview()}closePreview(){this.animateScroll.closePreview()}openSettings(t){this.sidebar.openSettings(t)}pageSetup(){if(this.wrapperEl.querySelectorAll(".is-section").forEach((t=>{if(this.sectionSetup(t),a_.hasClass(t,"is-box"))this.boxSetup(t);else{t.querySelectorAll(".is-box").forEach((t=>{this.boxSetup(t)}))}})),this.editor.applyBehavior(),this.addSpace(),setTimeout((()=>{let t=()=>{if(!this.doc.body.hasAttribute("data-skrollrr-off"))return!0},e=this.doc.querySelector(".is-element-tool"),i=document.querySelector("#divImageTool"),n=document.querySelector("#divImageResizer"),o=()=>{if(i&&"flex"===i.style.display){this.editor.moveable&&this.editor.moveable.updateRect();let t=this.doc.querySelector(".moveable-control-box");t&&(t.style.display="none")}e&&(e.style.display=""),i&&(i.style.display=""),n&&(n.style.display="",n.style.top="-10px",n.style.left="-10px",n.style.width="1px",n.style.height="1px")};t&&(this.doc.addEventListener("wheel",this.doAnimWheel=()=>{t()&&o()}),this.win.addEventListener("scroll",this.doAnimScroll=()=>{t()&&o()}))}),300),this.eb&&this.eb.refresh(),null!=localStorage.getItem("_animationmodal")){const t=this.wrapperEl.querySelector(".is-box"),e=this.wrapperEl.querySelector(".is-section");t&&(t.classList.add("box-select"),this.activeBox=t,this.editor&&(this.editor.activeBox=t)),e&&(e.classList.add("section-select"),this.activeSection=e),this.animateScroll.edit()}}addSpace(){}scrollTo(t,e=0){this.cancelScrollSync=!0,setTimeout((()=>{t.scrollIntoView({behavior:"smooth",block:"center"}),setTimeout((()=>{this.cancelScrollSync=!1;const t=this.builderStuff.querySelector(".is-modal.content-preview").querySelector("iframe");this.scrollSync(t)}),1e3)}),e)}sectionSetup(t){let e=t.querySelector(".is-section-tool");e&&e.parentNode.removeChild(e),a_.appendHtml(t,`<div class="is-section-tool">\n <button type="button" class="btn-move-section-up" tabindex="-1" data-title="${i("Move Up")}" title="${i("Move Up")}">\n <svg class="is-icon-flex" style="transform:rotate(180deg)"><use xlink:href="#icon-arrow-down2"></use></svg>\n </button>\n <button type="button" class="btn-move-section-down" tabindex="-1" data-title="${i("Move Down")}" title="${i("Move Down")}">\n <svg class="is-icon-flex"><use xlink:href="#icon-arrow-down2"></use></svg>\n </button>\n <button type="button" class="btn-section-edit" tabindex="-1" data-title="${i("Section Settings")}" title="${i("Section Settings")}">\n <svg class="is-icon-flex"><use xlink:href="#ion-wrench"></use></svg>\n </button>\n <button type="button" class="btn-section-remove" tabindex="-1" data-title="${i("Remove")}" title="${i("Remove")}">\n <svg class="is-icon-flex" style="width:18px;height:18px;margin-top:-3px;"><use xlink:href="#icon-trash2"></use></svg>\n </button>\n </div>`);let n=t.querySelector(".is-section-info");n&&n.parentNode.removeChild(n);const o=t.getAttribute("id");a_.appendHtml(t,'<div class="is-section-info">'+(o?`<div>#${o}</div>`:"")+"</div>");let s=t.querySelector(".is-section-tool").querySelectorAll("[title]");Array.prototype.forEach.call(s,(t=>{t.setAttribute("data-title",t.getAttribute("title")),this.iframe?this.editor.tooltip.set(t,5,3,!0):this.editor.tooltip.set(t,5,3)}));t.querySelector(".btn-move-section-up").addEventListener("click",(()=>{this.section.sectionMove("up")}));t.querySelector(".btn-move-section-down").addEventListener("click",(()=>{this.section.sectionMove("down")}));t.querySelector(".btn-section-edit").addEventListener("click",(()=>{this.controlPanel?(this.controlpanel.open(),this.controlpanel.select("section",!0)):(this.editbox.close(),this.editsection.edit())}));if(t.querySelector(".btn-section-remove").addEventListener("click",(()=>{const t=document.querySelector(".is-modal.delsectionconfirm");this.settings.deleteConfirm?this.editor.util.showModal(t):(this.section.sectionDelete(),this.onSelectChange&&this.onSelectChange());const e=this.builderStuff.querySelector(".editbox");e&&(e.style.display="");const i=this.builderStuff.querySelector(".editsection");i&&(i.style.display="")})),t.classList.contains("section-wide-250")){let e=t.querySelector(".is-box-centered");e&&e.addEventListener("scroll",(()=>{this.doc.body.classList.add("temporary-hide-tools"),this.editor.moveable&&this.editor.moveable.updateRect();let t=this.doc.querySelector(".moveable-control-box");t&&(t.style.display="none")}))}t.querySelectorAll(".scroll-y").forEach((t=>{t.addEventListener("scroll",(()=>{this.doc.body.classList.add("temporary-hide-tools"),this.editor.moveable&&this.editor.moveable.updateRect();let t=this.doc.querySelector(".moveable-control-box");t&&(t.style.display="none")}))}))}boxSetup(t){let e=t.querySelector(".is-box-tool");if(e&&e.parentNode.removeChild(e),a_.appendHtml(t,'<div class="is-box-tool" data-tool="1"><button type="button" class="is-cover-upload" tabindex="-1" data-tooltip-top data-title="'+i("Upload Background")+'" title="'+i("Upload Background")+'" style="background:rgb(78 170 57)"><svg class="is-icon-flex" style="position: absolute;top: 9px;left: 9px;fill:rgb(255,255,255);"><use xlink:href="#ion-image"></use></svg></button><button type="button" class="is-select-image" tabindex="-1" data-tooltip-top data-title="'+i("Select Background")+'" title="'+i("Select Background")+'" style="background:rgb(251 173 27)"><svg class="is-icon-flex" style="color:#fff;width:17px;height:17px;"><use style="color: #fff;" xlink:href="#icon-folder2"></use></svg></button><button type="button" class="is-box-edit" tabindex="-1" data-tooltip-top data-title="'+i("Box Settings")+'" title="'+i("Box Settings")+'"><svg class="is-icon-flex"><use xlink:href="#ion-wrench"></use></svg></button><button type="button" class="is-module-edit" tabindex="-1" data-tooltip-top data-title="'+i("Module Settings")+'" title="'+i("Module Settings")+'" style="background:rgb(135 116 215)"><svg class="is-icon-flex"><use xlink:href="#ion-ios-gear"></use></svg></button></div>'),e=t.querySelector(".is-box-tool"),e){let t=e.querySelectorAll("[title]");Array.prototype.forEach.call(t,(t=>{t.setAttribute("data-title",t.getAttribute("title")),this.iframe?this.editor.tooltip.set(t,5,3,!0):this.editor.tooltip.set(t,5,3)}))}const n=t.querySelector(".is-box-edit");n&&n.addEventListener("click",(()=>{this.controlPanel?(this.controlpanel.open(),this.controlpanel.select("box",!0)):(this.editsection.close(),this.editbox.edit())}));const o=t.querySelector(".is-select-image");o&&o.addEventListener("click",(()=>{let t;this.editsection&&this.editsection.close();let e=this.activeBox.querySelector(".is-overlay");if(e){const i=e.querySelector(".is-overlay-bg");i&&i.style.backgroundImage&&-1!==i.style.backgroundImage.indexOf("url(")&&(t=i.style.backgroundImage.slice(4,-1).replace(/["']/g,""))}this.editor.openImageSelect(((t,e)=>{if(this.editor.saveForUndo(),this.boxImage(t),e){let t=this.activeBox.querySelector(".is-overlay-bg");t&&t.setAttribute("data-filename",e)}this.onChange()}),t)}));const s=t.querySelector(".is-module-edit");s&&s.addEventListener("click",(()=>{this.box.editModule()}));const l=t.querySelector(".is-cover-upload");l&&l.addEventListener("click",(()=>{let t;this.targetBox=this.activeBox,t=this.iframe?this.contentStuff.querySelector(".is-cover-upload-central .input-file-cover-central"):this.builderStuff.querySelector(".is-cover-upload-central .input-file-cover-central"),t.click()}));const a=t.querySelector(".is-overlay-content");if(a){let t=a.querySelectorAll("iframe");Array.prototype.forEach.call(t,(t=>{let e=t.querySelector(".ovl");e||(a.insertAdjacentHTML("beforeend",'<div class="ovl" style="position:absolute;background:#fff;opacity:0.01;cursor:pointer;top:0;left:0px;width:100%;height:100%;z-index:1"></div>'),e=a.querySelector(".ovl"),e.addEventListener("click",(()=>{let t=document.querySelectorAll(".ovl");Array.prototype.forEach.call(t,(t=>{t.style.display="block"})),setTimeout((()=>{e.style.display="none",a.parentNode.style.zIndex=1}),200)})))}))}t.addEventListener("mouseenter",(()=>{if(t.closest("[data-top-locked], [data-bottom-locked]"))return;if(this.positionTool(t),this.wrapperEl.classList.contains("hard-select"))return;const e=t.closest(".is-section");this.activeSection&&e!==this.activeSection&&(this.prevSection=this.activeSection),this.activeBox=t,this.editor&&(this.editor.activeBox=t),this.activeSection=e;const i=document.querySelector("#divSidebarTypography");i&&i.classList.contains("active")&&this.sidebar.selectType()})),this.makeSortable(t,!0),t.addEventListener("click",(t=>{const e=t.target;if(e.closest(".is-container"))return;let n=e.closest("a");if(n){let e=n.getAttribute("href");if(e)if(0===e.indexOf("#")&&"#"!==e.trim())if(0===e.indexOf("#section")){let i=e.replace("#section","");if(!isNaN(parseInt(i))){let e,n=this.doc.querySelectorAll(".is-section"),o=0;n.forEach((function(t){a_.hasClass(t,"is-section-navbar")||(o===i-1&&(e=t),o++)})),e&&this.scrollTo(e),t.preventDefault()}}else{let i=this.doc.querySelector(e);i&&(this.scrollTo(i),t.preventDefault())}else{window.confirm(i("Do you want to open the link?"))&&window.open(e,"_blank"),t.preventDefault()}}}))}makeSortable(t,e){t.querySelectorAll(".grid-sortable").forEach((t=>{const i=new Dk(t,{animation:600,onStart:()=>{this.editor.saveForUndo(!0)},onSort:async()=>{if(e&&t.closest("[data-html]")){const e=t.closest("[data-html]"),i=encodeURIComponent(e.innerHTML);e.setAttribute("data-html",i),this.onChange()}t.closest("[data-cb-original-content]")&&(this.updateCleanContentOrder(t),this.onChange(),t.click())}});t._sortable=i}))}async updateCleanContentOrder(t){if(!t)return;const e=t.closest("[data-cb-original-content]");if(!e)return;const i=Array.from(t.children).map((t=>t.dataset.index)).filter((t=>void 0!==t)),n=e.dataset.cbOriginalContent,o=(new DOMParser).parseFromString(n,"text/html");let s=o.querySelector(".grid-sortable"),l=!1;s||(s=o.createElement("div"),s.classList.add("grid-sortable"),Array.from(o.body.children).forEach((t=>{1===t.nodeType&&s.appendChild(t)})),o.body.innerHTML="",o.body.appendChild(s),l=!0);const a=Array.from(s.children).filter((t=>1===t.nodeType)),r=new Map;a.forEach((t=>{const e=t.dataset.index;void 0!==e&&r.set(e,t)}));const c=i.map((t=>r.get(t))).filter(Boolean).map((t=>t.outerHTML)).join("");if(l)e.setAttribute("data-cb-original-content",c);else{s.innerHTML=c;const t=o.body.innerHTML;e.setAttribute("data-cb-original-content",t)}}addSection(t){this.addIdea(t)}sectionStack(){this.section.sectionStack()}doBeforeSaveForUndo(){this.markScrollTarget(this.activeSection)}async doUndoRedo(){this.doc.querySelectorAll(".idd-drop-indicator").forEach((t=>t.remove()));let t=this.doc.querySelectorAll(".is-section-tool");t.forEach((t=>{t.parentNode.removeChild(t)})),t=this.doc.querySelectorAll(".is-box-tool"),t.forEach((t=>{t.parentNode.removeChild(t)})),t=this.doc.querySelectorAll(".is-box-info"),t.forEach((t=>{t.parentNode.removeChild(t)}));this.doc.querySelectorAll(".box-select").forEach((t=>{t.classList.remove("box-select")}));this.doc.querySelectorAll(".section-select").forEach((t=>{t.classList.remove("section-select")})),this.activeBox=null,this.editor&&(this.editor.activeBox=null),this.activeSection=null,this.wrapperEl.classList.remove("is-container-edit"),this.wrapperEl.classList.remove("is-clean-edit");const e=this.builderStuff.querySelector(".editbox");e&&(e.style.display="");const i=this.builderStuff.querySelector(".editsection");i&&(i.style.display=""),this.timeline.modalTimeline.classList.contains("active")||this.animateScroll.modalAnimateScroll.classList.contains("active")||this.wrapperEl.classList.remove("hard-select"),this.pageSetup(),this.onLoadHtml&&this.onLoadHtml();if(this.hasPin())this.viewMarkedTarget();else{this.win.skrollrr&&this.win.skrollrr.refresh();let t=this.doc.querySelector(".scroll-target");t&&t.classList.remove("scroll-target")}this.controlPanel&&this.controlpanel.select("");const n=this.win.builderRuntime;n&&n.reinitialize()}refreshAnim(){this.win.skrollrr&&this.win.skrollrr.refresh()}refreshPage(t){this.win.skrollrr&&this.win.skrollrr.refresh();const e=this.wrapperEl;e.querySelectorAll(".is-section").forEach((t=>{const e=t.innerHTML;var i=document.createRange();t.innerHTML="",t.appendChild(i.createContextualFragment(e))})),this.editor.uo.cleaning(e),this.pageSetup(),this.win.skrollrr&&this.win.skrollrr.refresh(),t&&t()}loadAsset(t,e,i,{retries:n=100,retryDelay:o=200}={}){return new Promise(((s,l)=>{const a=n=>{const r=this.doc;if(!r)return n<=0?void l(new Error("builder.doc not available")):void setTimeout((()=>a(n-1)),o);const c=r.getElementById(t);c&&c.remove();const u=r.createElement(e);u.id=t,Object.assign(u,i),u.onload=()=>s(u),u.onerror=()=>{l(new Error(`Failed to load asset: ${i.src||i.href}`))},r.head.appendChild(u)};a(n)}))}runInlineScript(t,e,i={}){return this.loadInlineScript(t,`(${e})()`,i)}loadInlineScript(t,e,{retries:i=50,retryDelay:n=100}={}){return new Promise(((o,s)=>{const l=i=>{const a=this.doc;if(!a)return i<=0?void s(new Error("builder.doc not available")):void setTimeout((()=>l(i-1)),n);const r=a.getElementById(t);r&&r.remove();const c=a.createElement("script");c.id=t,c.type="text/javascript",c.textContent=e;try{a.head.appendChild(c),o(c)}catch(t){s(t)}};l(i)}))}getInsertAfterElement(){const t=this.wrapperEl,e=Array.from(t.children);let i=null;return e.forEach((t=>{this.section.isTopLocked(t)&&(i=t)})),i||null}getInsertBeforeElement(){const t=this.wrapperEl.children;let e=null;for(let i=t.length-1;i>=0;i--){const n=t[i];if(this.section.isBottomLocked(n))e=n;else if(e)break}return e}addIdea(t){const e=(new DOMParser).parseFromString(t,"text/html");Array.from(e.body.children).forEach((t=>{t.setAttribute("data-new","true")})),t=e.body.innerHTML,this.editor.saveForUndo();const n=new Date;if(-1!==(t=t.replace("[%YEAR%]",n.getFullYear())).indexOf("is-section-navbar")||-1!==t.indexOf('data-cb-type="nav-menu"')){const e=this.wrapperEl.querySelector(".is-section-navbar");if(e)return void this.editor.util.confirm(i("Do you want to replace the current navigation bar?"),(i=>{i&&(e.parentNode.removeChild(e),this.addIdea(t))}),!0,i("Replace"),!0);a_.appendHtml(this.wrapperEl,t,"afterbegin")}else if(-1!==t.indexOf("is-static")){let e=Array.from(this.wrapperEl.children).filter((t=>t.classList.contains("is-section")||t.classList.contains("pin-wrap"))),i=e[e.length-1];i?a_.appendHtml(i,t,"afterend"):a_.appendHtml(this.wrapperEl,t,"afterbegin")}else if(this.activeSection&&this.wrapperEl.contains(this.activeSection)){let e=this.activeSection;if(a_.hasClass(e,"is-static"))e.parentNode.classList.contains("pin-wrap")&&(e=e.parentNode),a_.appendHtml(e,t,"beforebegin");else if(e.parentNode.classList.contains("pin-wrap")&&(e=e.parentNode),this.section.isTopLocked(e)){const e=this.getInsertAfterElement();a_.appendHtml(e,t,"afterend")}else if(this.section.isBottomLocked(e)){const e=this.getInsertBeforeElement();a_.appendHtml(e,t,"beforebegin")}else a_.appendHtml(e,t,"afterend")}else{const e=this.getInsertAfterElement(),i=this.getInsertBeforeElement();e?a_.appendHtml(e,t,"afterend"):i?a_.appendHtml(i,t,"beforebegin"):a_.appendHtml(this.wrapperEl,t,"afterbegin")}const o=this.wrapperEl.querySelectorAll('[data-new="true"]');o.forEach((t=>{if(!t.classList.contains("is-section"))return;const e=this.settings.contentStylePath;if(t.classList.forEach((t=>{if(-1!==t.indexOf("type-")){const i=t,n=t+".css",o=this.getInlineTypographyStyle&&this.getInlineTypographyStyle(i);if(o){if(![...this.doc.querySelectorAll("style[data-class]")].some((t=>t.dataset.class===i))){const t=this.doc.createElement("style");t.dataset.class=i,t.textContent=o,this.doc.head.appendChild(t)}}else{let t=!1,o=this.doc.getElementsByTagName("link");for(let e=0;e<o.length;e++){-1!==o[e].href.toLowerCase().indexOf(n.toLowerCase())&&(t=!0)}t||this.wrapperEl.insertAdjacentHTML("beforeend",'<link data-name="contentstyle" data-class="'+i+'" href="'+e+n+'" rel="stylesheet">')}}})),t.querySelectorAll("[data-html]").forEach((t=>{let e=decodeURIComponent(t.getAttribute("data-html"));e=e.replace(/{id}/g,a_.uniqueId()),a_.html(t,e)})),t.querySelectorAll(".is-overlay").forEach((t=>{let e=t.querySelector(".is-overlay-content");e&&""===e.innerHTML&&1===t.childElementCount&&t.parentNode.removeChild(t)})),this.sectionSetup(t),a_.hasClass(t,"is-box"))this.boxSetup(t);else{t.querySelectorAll(".is-box").forEach((t=>{this.boxSetup(t)}))}})),document.querySelectorAll(".is-overlay-bg").forEach((t=>{t.style&&t.style.filter&&-1!==t.style.filter.indexOf("grayscale")&&(t.parentNode.style.filter="grayscale(1)")})),this.editor.applyBehavior(),this.settings.onRender(),this.win.builderRuntime&&this.win.builderRuntime.reinitialize();this.wrapperEl.querySelectorAll(".is-arrow-down a").forEach((t=>{t.addEventListener("click",(e=>{let i=t.parentNode.parentNode;return this.scrollTo(i.nextElementSibling),e.preventDefault(),e.stopImmediatePropagation(),!1}))})),this.sectionStack();const s=(t,e)=>{let i=t.getAttribute("class");t.setAttribute("class",i+" "+e)},l=(t,e)=>{94<=e&&e<=100&&s(t,this.editor.cols[11]),86<=e&&e<94&&s(t,this.editor.cols[10]),78<=e&&e<86&&s(t,this.editor.cols[9]),70<=e&&e<78&&s(t,this.editor.cols[8]),62<=e&&e<70&&s(t,this.editor.cols[7]),54<=e&&e<62&&s(t,this.editor.cols[6]),46<=e&&e<54&&s(t,this.editor.cols[5]),37<=e&&e<46&&s(t,this.editor.cols[4]),29<=e&&e<37&&s(t,this.editor.cols[3]),21<=e&&e<29&&s(t,this.editor.cols[2]),13<=e&&e<21&&s(t,this.editor.cols[1]),5<=e&&e<13&&s(t,this.editor.cols[0])};this.editor.useDefaultGrid||o.forEach((t=>{if(!t.classList.contains("is-section"))return;let e=t.querySelectorAll(".is-container > div");e.forEach((t=>{t.style.flexWrap="nowrap";let e=this.editor.util.getAllColumns(t);e.forEach((t=>{t.style.flexShrink="unset"})),e.forEach((e=>{if(e.style.width&&e.style.width.includes("%")){let t=parseFloat(e.style.width);e.setAttribute("data-temp-w",t)}else{let i=Number(window.getComputedStyle(e).getPropertyValue("width").match(/\d+/)[0])/Number(window.getComputedStyle(t).getPropertyValue("width").match(/\d+/)[0])*100;e.setAttribute("data-temp-w",i)}}))})),e=t.querySelectorAll(".is-container > div"),e.forEach((t=>{this.editor.util.getAllColumns(t).forEach((t=>{let e=t.getAttribute("data-temp-w");if(l(t,parseFloat(e)),t.removeAttribute("data-temp-w"),this.editor.cols[0].split(" ").includes("column")){const e=t.className.split(" "),i=[...new Set(e)];t.className=i.join(" ")}else t.classList.remove("column");t.style.flexShrink="",t.style.width="",t.style.flex=""})),t.style.flexWrap=""}))})),t.includes("box-canvas")&&this.eb.refresh();const a=this.wrapperEl.querySelectorAll("div.is-section[data-new]"),r=a.length?a[a.length-1]:null;this.clearSelection(),this.selectNewSection(r),this.wrapperEl.querySelectorAll("[data-new]").forEach((t=>{t.removeAttribute("data-new")})),this.onChange();document.querySelector(".is-sidebar")&&(a_.removeElement(document.querySelector(".is-sidebar-overlay")),a_.removeClass(document.querySelectorAll(".is-sidebar .is-sidebar-button"),"active"),a_.removeClass(document.querySelectorAll(".is-sidebar-content"),"active")),this.iframe||(document.body.style.overflowY=""),this.addSpace();this.hasPin()?(this.markScrollTarget(r),this.scrollToMarkedTarget()):(this.scrollTo(r,600),setTimeout((()=>{this.refreshAnim()}),600)),this.onAddSection&&this.onAddSection()}loadSectionList(){this.sidebar.viewIdeas()}loadTypographyList(){this.sidebar.loadTypography()}setTypographyStyleScope(t){this.typographyStyleScope=t}applyTypographyStyle(t,e){e||(e=t+".css"),this.sidebar.applyTypographyStyle(t,e)}applyInlineTypographyStyle(t,e){this.sidebar.applyInlineTypographyStyle(t,e)}clearSelection(){const t=this.doc.querySelector(".box-select");t&&t.classList.remove("box-select");const e=this.doc.querySelector(".section-select");e&&e.classList.remove("section-select"),this.editor.util.clearActiveCell(),this.editor.util.clearAfterUndoRedo()}selectNewSection(t){let e=!1;if(t.classList.contains("is-box")&&(e=!0),e)t.classList.add("box-select"),this.activeBox=t,this.editor&&(this.editor.activeBox=t),this.wrapperEl.classList.add("hard-select"),t.classList.add("section-select"),this.activeSection=t,this.positionTool(t),t.click();else{let e=t.querySelector(".is-box");e&&(e.classList.add("box-select"),this.activeBox=e,this.editor&&(this.editor.activeBox=e),e.click()),this.wrapperEl.classList.add("hard-select"),t.classList.add("section-select"),this.activeSection=t,this.positionTool(e)}}refreshUIStyle(){if(!this.editor)return;if(!this.editor.styleSnippetBackground)return void setTimeout((()=>{this.refreshUIStyle()}),300);if(!this.controlPanel){document.querySelector("#divSidebarSnippets").style.backgroundColor=this.editor.styleSnippetBackground;document.querySelectorAll(".is-sidebar-content").forEach((t=>{t.style.backgroundColor=this.editor.styleSnippetBackground}));const t=document.querySelector("#divStyles");t.style.backgroundColor=this.editor.styleSnippetBackground,t.style.color=this.editor.styleSnippetColor;const e=document.querySelector(".is-sidebar");e.style.backgroundColor=this.editor.styleModalBackground,e.style.color=this.editor.styleModalColor;e.querySelectorAll("svg").forEach((t=>{t.style.fill=this.editor.styleModalColor}));e.querySelectorAll("button").forEach((t=>{t.style.color=this.editor.styleModalColor}))}const t=document.querySelector("#ifrIdeasPanel");t&&t.contentWindow.applyParentStyles&&t.contentWindow.applyParentStyles()}rePositionTool(){this.activeBox&&this.positionTool(this.activeBox)}scaleTools(){this.removeCustomStyle("_css_scale");const t=document.querySelector(".is-content-view");if(!t)return;const e=window.getComputedStyle(t).transform.slice(7,-1).split(",");let i=parseFloat(e[0]);this.removeCustomStyle("_css_scale_apply"),this.addCustomStyle("_css_scale_apply",`\n .is-section-tool {\n transform: scale(${1/i}) !important;;\n transform-origin: top right !important;\n }\n .is-box-tool {\n transform: scale(${1/i}) !important;;\n transform-origin: center bottomt !important;\n }\n .is-section-info {\n transform: scale(${1/i}) !important;;\n }\n\n .is-col-tool {\n transform: scale(${1/i}) !important;;\n transform-origin: bottom left !important;\n\n }\n .is-row-tool {\n transform: scale(${1/i}) !important;;\n transform-origin: top left !important;\n }\n .is-rowadd-tool button {\n transform: scale(${1/i}) !important;;\n }\n\n .is-element-tool,\n .is-video-tool,\n .is-audio-tool,\n .is-iframe-tool,\n .is-module-tool,\n .is-code-tool,\n .is-spacer-tool,\n .is-svg-tool,\n .is-table-tool,\n .is-locked-indicator,\n #divLinkTool, #divButtonTool {\n transform: scale(${1/i}) !important;;\n transform-origin: top !important;\n }\n `)}positionTool(t){if(!t)return;var e;e=null!==localStorage.getItem("_zoom")?localStorage.getItem("_zoom"):this.settings.zoom;const i=t.closest(".is-section-navbar"),n=t.querySelector('[data-module="slider-box"]'),o=t.closest(".box-custom");let s,l;this.wrapperEl.querySelectorAll(".is-section-tool").forEach((t=>{t.style.display="none"})),a_.hasClass(t,"is-section")?(s=t,l=t.querySelector(".is-section-tool")):(s=a_.parentsHasClass(t,"is-section"),l=s.querySelector(".is-section-tool")),l&&(l.style.display="block",l.style.transform="scale("+1/e+")",l.style.transformOrigin="top right");const a=l.querySelector(".btn-move-section-up"),r=l.querySelector(".btn-move-section-down"),c=l.querySelector(".btn-section-remove");t.offsetHeight<160?(a.style.display="none",r.style.display="none",c.style.display="none",l.style.top="17px"):(a.style.display="",r.style.display="",c.style.display="");this.wrapperEl.querySelectorAll(".is-box-tool").forEach((t=>{t.style.display="none"}));let u=t.querySelector(".is-box-tool");u&&(u.style.display="flex",u.style.transform="scale("+1/e+")",u.style.transformOrigin="center bottom",t.querySelector(".is-select-image").style.display="none",n?(t.querySelector(".is-cover-upload").style.display="none",t.querySelector(".is-box-edit").style.display="inline-block",t.querySelector(".is-module-edit").style.display="inline-block",u.style.width="70px",u.style.left="calc(50% - 35px)"):i?(t.querySelector(".is-cover-upload").style.display="none",t.querySelector(".is-box-edit").style.display="none",t.querySelector(".is-module-edit").style.display="inline-block",u.style.width="35px",u.style.left="calc(50% - 17.5px)"):o?(t.querySelector(".is-cover-upload").style.display="none",t.querySelector(".is-box-edit").style.display="inline-block",t.querySelector(".is-module-edit").style.display="inline-block",u.style.width="70px",u.style.left="calc(50% - 35px)"):t.querySelectorAll(".is-overlay-content[data-module]").length>0?(t.querySelector(".is-cover-upload").style.display="block",t.querySelector(".is-box-edit").style.display="inline-block",t.querySelector(".is-module-edit").style.display="inline-block",u.style.width="105px",u.style.left="calc(50% - 52.5px)",(this.onImageSelectClick||this.imageselect)&&this.showSelectCover&&(u.style.width="140px",t.querySelector(".is-select-image").style.display="inline-block",u.style.left="calc(50% - 70px)"),"video-bg"===t.querySelector(".is-overlay-content[data-module]").getAttribute("data-module")&&(t.querySelector(".is-cover-upload").style.display="none",t.querySelector(".is-select-image").style.display="none",u.style.width="70px",u.style.left="calc(50% - 35px)")):(t.querySelector(".is-cover-upload").style.display="block",t.querySelector(".is-box-edit").style.display="inline-block",t.querySelector(".is-module-edit").style.display="none",u.style.width="70px",u.style.left="calc(50% - 35px)",(this.onImageSelectClick||this.imageselect)&&this.showSelectCover&&(u.style.width="105px",t.querySelector(".is-select-image").style.display="inline-block",u.style.left="calc(50% - 52.5px)")));const d=t.querySelector(".is-container"),b=t.querySelector("[data-cb-type]");!d&&b&&(u.style.zIndex=-10,u.style.visibility="hidden"),this.scaleTools()}addCustomStyle(t,e){let i=this.doc.getElementById(t);if(i)i.innerHTML=e;else{let i=this.doc.createElement("style");i.type="text/css",i.id=t,i.innerHTML=e,this.doc.head.appendChild(i)}}removeCustomStyle(t){let e=this.doc.getElementById(t);e&&this.doc.head.removeChild(e)}addButton(t){if(this.preview)return;const e=this.builderStuff,n=a_.uniqueId(),o=a_.uniqueId();let s;if(t.src){s=`<button type="button" id="${n}" class="is-sidebar-button" tabindex="-1" data-content="${o}" data-title="${i(t.title)}" title="${i(t.title)}" data-src="${t.src}" data-refresh="${t.refresh?1:0}">\n ${t.html}\n </button>`;let l=`<div id="${o}" class="is-sidebar-content is-area-2nd ${t.class}" tabindex="-1" role="dialog" aria-modal="true" aria-hidden="true" style="max-width:${t.maxwidth?t.maxwidth:"1005px"};">\n <div style="padding:0 0 0 50px;box-sizing:border-box;">\n <iframe src="about:blank" style="width:100%;height:100%;box-sizing:border-box;border:none;">\n </iframe>\n </div>\n </div>`;a_.appendHtml(e,l)}else s=t.onClick?'<button type="button" id="'+n+'" tabindex="-1" class="is-sidebar-button" data-title="'+i(t.title)+'" title="'+i(t.title)+'">'+t.html+"</button>":`<button id="${n}" class="is-sidebar-button" tabindex="-1" data-content="${t.content.substr(1)}" data-title="${i(t.title)}" title="${i(t.title)}">\n ${t.html}\n </button>`;const l=e.querySelector(".is-sidebar");if(l){let e=l.children[t.pos];e||(e=l.children[t.pos-1]),e||(e=l.children[t.pos-2]),e||(e=l.children[t.pos-3]),e||(e=l.children[t.pos-4]),e||(e=l.children[t.pos-5]),e&&e.insertAdjacentHTML("afterEnd",s)}const a=e.querySelector("#"+n);a&&a.addEventListener("click",(i=>{if(t.onClick)t.onClick(i);else if(a_.hasClass(a,"active"))this.sidebar.closeSidebar();else{this.sidebar.closeSidebar(),a_.addClass(a,"active");var n=a.getAttribute("data-content");const i=document.querySelector("#"+n);if(i.style.display="block",i.setAttribute("aria-hidden",!1),setTimeout((()=>{a_.addClass(i,"active"),i.focus()}),10),t.src){var o=e.querySelector("#"+n+" iframe");("1"===a.getAttribute("data-refresh")||"about:blank"===o.getAttribute("src"))&&o.setAttribute("src",t.src)}a_.appendHtml(e,'<div class="is-sidebar-overlay" style="position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(255,255,255,0.000001);z-index: 1000;;"></div>');const s=e.querySelector(".is-sidebar-overlay");s.addEventListener("click",(()=>{s.parentNode.removeChild(s);let t=e.querySelectorAll(".is-sidebar > div");t.forEach((t=>{a_.removeClass(t,"active")})),t=e.querySelectorAll(".is-sidebar-content"),t.forEach((t=>{a_.removeClass(t,"active")})),document.body.style.overflowY=""}))}})),setTimeout((()=>{if(!t.onClick){const t=a.getAttribute("data-content");document.querySelector("#"+t).addEventListener("keydown",(t=>{27===t.keyCode&&this.sidebar.closeSidebar()}))}}),300)}openPanel(){this.controlpanel.open_()}toggleEditPanel(){document.body.classList.contains("controlpanel")?(this.controlpanel.close(),this.disableAutoOpenEditPanel=!0):this.controlpanel.open_()}toggleDevice(){this.controlpanel.toggleDevice()}viewHtml(){this.htmlSyntaxHighlighting?this.sidebar.viewHtml():this.sidebar.viewHtml2()}undo(){this.editor.undo()}redo(){this.editor.redo()}saveImages(t,e,i){this.editor.saveImages(t,e,i)}applyLargerImage(t){this.editor.applyLargerImage(t)}returnUrl(t){this.editor.returnUrl(t)}showMessage(t){this.editor.util.showMessage(t)}showChoice(t,e,i){this.editor.util.showChoice(t,e,i)}showModal(t,e,i,n,o){this.editor.util.showModal(t,e,i,n,o)}hideModal(t){this.editor.hideModal(t)}confirm(t,e){return new Promise((i=>{this.editor.util.confirm(t,((t,e)=>{e&&e.stopPropagation(),i(t)}),!0,e,!0)}))}selectAsset(t){this.editor.selectAsset(t)}closeAsset(){this.editor.closeAsset()}refreshModule(){this.box.refreshModule()}loadStyles(t,e){if(!this.wrapperEl)return void setTimeout((()=>{this.loadStyles(t,e)}),100);let i,n=this.doc.getElementsByTagName("link");for(let t=0;t<n.length;t++)"contentstyle"===n[t].getAttribute("data-name")&&n[t].setAttribute("data-rel","_del"),-1!==n[t].getAttribute("href").indexOf("basetype-")&&n[t].setAttribute("data-rel","_del"),-1===n[t].getAttribute("href").indexOf("/box.css")&&-1===n[t].getAttribute("href").indexOf("/box-flex.css")||n[t].closest("body")&&(i=!0,this.settings.cssInBody=!0);this.settings.cssInBody&&(i=!0),this.doc.querySelectorAll('[data-rel="_del"]').forEach((t=>{t.parentNode.removeChild(t)}));let o=this.doc.head;o||(o=this.doc.body),t&&""!==t&&(i?this.wrapperEl.insertAdjacentHTML("beforebegin",t):o.insertAdjacentHTML("beforeend",t)),e&&""!==e&&(i?this.wrapperEl.insertAdjacentHTML("beforebegin",e):o.insertAdjacentHTML("beforeend",e))}loadStyles_BAK(t,e){this.wrapperEl?(t&&""!==t&&this.doc.head.insertAdjacentHTML("beforeend",t),e&&""!==e&&this.doc.head.insertAdjacentHTML("beforeend",e)):setTimeout((()=>{this.loadStyles(t,e)}),100)}getWrapper(){return this.wrapperEl}setTopContentProvider(t){this.topContentProvider=t}setBottomContentProvider(t){this.bottomContentProvider=t}refresh(){const t=this.html();this.loadHtml(t)}loadHtml(t){this.activeBox=null,this.editor&&(this.editor.activeBox=null),this.activeSection=null;const e=this.wrapperEl;if(!e)return void setTimeout((()=>{this.loadHtml(t)}),100);if(this.topContentProvider){let e=this.topContentProvider();const i=(new DOMParser).parseFromString(e,"text/html");Array.from(i.body.children).forEach((t=>{t.setAttribute("data-top-locked","true")})),e=i.body.innerHTML,t=e+t}if(this.bottomContentProvider){let e=this.bottomContentProvider();const i=(new DOMParser).parseFromString(e,"text/html");Array.from(i.body.children).forEach((t=>{t.setAttribute("data-bottom-locked","true")})),e=i.body.innerHTML,t+=e}let i=!1;if("glide"!==this.settings.slider&&"all"!==this.settings.slider||void 0!==this.win.Glide&&(new this.win.Glide).mount||(i=!0),!this.editor||i)return void setTimeout((()=>{this.loadHtml(t)}),100);let n=document.createRange();e.innerHTML="",e.appendChild(n.createContextualFragment(t));let o=this.settings.contentStylePath;e.querySelectorAll(".is-section").forEach((t=>{t.querySelector(".is-box")?t.classList.remove("is-box"):t.classList.add("is-box");t.querySelectorAll(".is-container").forEach((t=>{const e=[],i=t.closest(".is-box");t.classList.forEach((t=>{("is-content-bottom"===t||"is-content-top"===t||t.startsWith("edge-y-"))&&e.push(t)}));t.querySelectorAll("[data-cb-type]").forEach((t=>{const e=t.parentNode;e.classList.remove("items-start"),e.classList.remove("items-center"),e.classList.remove("items-end"),e.classList.remove("flex"),e.classList.remove("flex-col"),e.classList.remove("justify-start"),e.classList.remove("justify-center"),e.classList.remove("justify-end"),e.classList.remove("flex"),"100%"===e.style.width&&(e.style.width="")})),e.length>0&&e.forEach((e=>{t.classList.remove(e),i.classList.add(e)})),t.classList.contains("v2")||t.classList.contains("v3")||t.classList.add("v3")})),t.classList.forEach((t=>{if(-1!==t.indexOf("type-")){const e=t,i=t+".css",n=this.getInlineTypographyStyle&&this.getInlineTypographyStyle(e);if(n){if(![...this.doc.querySelectorAll("style[data-class]")].some((t=>t.dataset.class===e))){const t=this.doc.createElement("style");t.dataset.class=e,t.textContent=n,this.doc.head.appendChild(t)}}else{let t=!1,n=this.doc.getElementsByTagName("link");for(let e=0;e<n.length;e++){-1!==n[e].href.toLowerCase().indexOf(i.toLowerCase())&&(t=!0)}t||this.wrapperEl.insertAdjacentHTML("beforeend",'<link data-name="contentstyle" data-class="'+e+'" href="'+o+i+'" rel="stylesheet">')}}}))})),this.pageSetup(),this.pageSetupDone=!0,this.onLoadHtml&&this.onLoadHtml(),this.settings.onRender(),this.win.builderRuntime&&this.win.builderRuntime.reinitialize();e.querySelectorAll(".is-arrow-down a").forEach((t=>{t.addEventListener("click",(e=>{let i=t.parentNode.parentNode;return this.scrollTo(i.nextElementSibling),e.preventDefault(),e.stopImmediatePropagation(),!1}))})),null!=localStorage.getItem("_livepreview")&&this.openPreview(),this.win.pageReRender&&this.win.pageReRender(),this.wrapperEl.style.transition="all 400ms ease",setTimeout((()=>{this.wrapperEl.style.opacity=1,setTimeout((()=>{this.wrapperEl.style.transition=""}),400)}),400)}openModal(t,e={}){const i={w:"88vw",maxW:"1600px",h:"88vh",extraStyle:"",ariaLabel:"Modal",showCloseButton:!1,...e},n=`\n <div class="is-modal custom-modal" style="z-index:10005" tabindex="-1" role="dialog" aria-modal="true" aria-hidden="true">\n <div style="width:${i.w};max-width:${i.maxW};height:${i.h};padding:0;${i.extraStyle}">\n <iframe tabindex="0" style="width:100%;height:100%;border: none;display: block;" src="about:blank"></iframe>\n </div>\n </div> \n `,o=this.builderStuff.querySelector(".is-modal.custom-modal");o&&o.remove(),this.builderStuff.insertAdjacentHTML("beforeend",n);const s=this.builderStuff.querySelector(".is-modal.custom-modal");s.setAttribute("aria-label",i.ariaLabel);const l=s.querySelector("iframe");if(l.src=t,i.showCloseButton){const t=document.createElement("button");t.innerHTML='\n <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-x"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 6l-12 12" /><path d="M6 6l12 12" /></svg>\n ',t.className="modal-close",t.addEventListener("click",(()=>{s.remove(),"function"==typeof i.onClose&&i.onClose(s,l)})),s.querySelector("div").prepend(t)}"function"==typeof i.onOpen&&i.onOpen(s,l),this.editor.util.showModal(s,!1,(()=>{"function"==typeof i.onClose&&i.onClose(s,l)}))}boxImage(t,e){this.controlPanel?this.box.boxImage(t,e):this.editbox.boxImage(t,e),this.onSelectChange&&this.onSelectChange()}mainCss(t){let e=this.doc.getElementsByTagName("link"),i=[];for(let n=0;n<e.length;n++){if(-1!==e[n].href.toLowerCase().indexOf("basetype-"))if(t){const t=e[n].cloneNode();let o=t.href,s=window.location.href.substring(0,window.location.href.lastIndexOf("/"));o=o.replace(s,"[%PATH%]"),t.href=o,i.push(t.outerHTML)}else i.push(e[n].outerHTML)}return i=[...new Set(i)],i.join("")}mainCssList(){let t=this.doc.getElementsByTagName("link"),e=[];for(let i=0;i<t.length;i++){-1!==t[i].href.toLowerCase().indexOf("basetype-")&&e.push(t[i].outerHTML)}return e}sectionCss(t){let e=this.doc.getElementsByTagName("link"),i=[];for(let n=0;n<e.length;n++){let o=e[n].href.toLowerCase();if(-1!==o.indexOf("basetype-"));else if(-1!==o.indexOf("type-"))if(t){const t=e[n].cloneNode();let o=t.href,s=window.location.href.substring(0,window.location.href.lastIndexOf("/"));o=o.replace(s,"[%PATH%]"),t.href=o,i.push(t.outerHTML)}else i.push(e[n].outerHTML)}i=[...new Set(i)];let n="";return this.wrapperEl.querySelectorAll(".is-section").forEach((t=>{t.classList.forEach((t=>{if(-1!==t.indexOf("type-")){const e=t,i=this.getInlineTypographyStyle&&this.getInlineTypographyStyle(e);if(i){const t=this.doc.createElement("style");t.dataset.class=e,t.textContent=i,n+=t.outerHTML}}}))})),i.join("")+n}sectionCssList(){let t=this.doc.getElementsByTagName("link"),e=[];for(let i=0;i<t.length;i++){let n=t[i].href.toLowerCase();-1!==n.indexOf("basetype-")||-1!==n.indexOf("type-")&&e.push(t[i].outerHTML)}return e=[...new Set(e)],e}htmlCheck(){this.cleanupUnused();return this.editor.readHtml(this.wrapperEl,!1,!0,!0)}hasPin(){return this.section.hasPin()}markScrollTarget(t){this.doc.querySelectorAll(".scroll-target").forEach((t=>t.classList.remove("scroll-target"))),t&&t.classList.add("scroll-target")}scrollToMarkedTarget(t=!0){this.win.pageReRender&&t&&this.win.pageReRender();let e=this.doc.querySelector(".scroll-target");e&&(e.classList.remove("scroll-target"),setTimeout((()=>{this.scrollTo(e,0)}),600))}viewMarkedTarget(){this.win.pageReRender&&this.win.pageReRender();let t=this.doc.querySelector(".scroll-target");t&&(t.classList.remove("scroll-target"),t.scrollIntoView())}getActiveSectionHtml(t){t=t||1;let e=this.activeSection;for(let i=0;i<t&&e;i++){if(0===i)e.classList.add("this");else{if(!e.classList.contains("is-section"))break;e.classList.add("this")}e=e.nextElementSibling}let i=this.html();const n=(new DOMParser).parseFromString(i,"text/html");Array.from(n.body.children).forEach((function(t){t.classList.contains("is-section")&&t.classList.contains("this")||t.remove()})),n.body.querySelectorAll(".this").forEach((function(t){t.classList.remove("this")})),i=n.body.innerHTML;return this.wrapperEl.querySelectorAll(".is-section.this").forEach((function(t){t.classList.remove("this")})),i}html(t){this.cleanupUnused();const e=this.wrapperEl.cloneNode(!0);e.querySelectorAll("video").forEach((t=>{t.pause()})),e.querySelectorAll(".pin-wrap").forEach((t=>{const e=t.firstElementChild;t.after(e),t.parentNode.removeChild(t)}));e.querySelectorAll(".is-section").forEach((t=>{t.hasAttribute("data-section-clone")&&t.parentNode.removeChild(t),t.hasAttribute("data-section-original")&&(t.style.display="",t.removeAttribute("data-section-original"))}));let i=this.editor.readHtml(e,t,!0);e.remove();const n=this.contentExcludeSelectors;if(Array.isArray(n)&&n.length){const t=(new DOMParser).parseFromString(i,"text/html");n.forEach((e=>{try{t.querySelectorAll(e).forEach((t=>t.remove()))}catch(t){this.options.consoleLog&&console.warn("Invalid contentExcludeSelectors selector:",e)}})),i=t.body.innerHTML}return i.trim()}download(t={}){this.export(t,!0)}clear(){this.editor.util.confirm(i("Are you sure you want to clear the page content?"),(t=>{t&&(this.editor.saveForUndo(),this.loadHtml(""),this.settings.onChange())}),!0,i("Clear"),!0)}export(t={},e=!1){let i;i=this.pageTemplate?this.pageTemplate:this.util.getPageTemplate(this.framework,t);let n="";this.cleanupUnused(),this.editor.makeAbsolute=!0,this.editor.shortenOutput=e;let o=this.editor.readHtml(this.wrapperEl,!1,!0);this.editor.makeAbsolute=!1,this.editor.shortenOutput=!1,n=i.replace("[%CONTENT%]",o);let s=this.mainCss(!0),l=this.sectionCss(!0);if(n=n.replaceAll("[%MAINCSS%]",s),n=n.replaceAll("[%SECTIONCSS%]",l),t.replace&&t.replace.forEach((t=>{n=n.replaceAll(`${t[0]}`,t[1])})),t.path)n=n.replaceAll("[%PATH%]",t.path);else{let t;t=window.location.href.substring(0,window.location.href.lastIndexOf("/")),n=n.replaceAll("[%PATH%]",t)}n=this.editor.beautify(n);const a=document.createElement("a");a.href=window.URL.createObjectURL(new Blob([n],{type:"text/plain"})),a.download="page.html",a.click()}viewZoom(){this.editor.viewZoom()}openAnimationPanel(){this.animateScroll.edit()}openAnimationTimeline(){this.timeline.edit()}setScreenMode(t){this.iframePanel.setScreenMode(t)}openTimelinePanel(){this.timeline.edit()}openAIAssistant(){this.codechat.open()}destroy(){this.pendingChanges&&!this.isSaving&&this.performAutoSave(),this.autoSaveTimeoutId&&(clearTimeout(this.autoSaveTimeoutId),this.autoSaveTimeoutId=null),this.maxIntervalCheckerId&&(clearInterval(this.maxIntervalCheckerId),this.maxIntervalCheckerId=null),this.resizeObserver&&this.resizeObserver.disconnect();const t=document.querySelector("#_style_editpanel");t&&t.remove(t);const e=document.querySelector("#editPanel");e&&e.remove();const i=document.querySelector(".is-responsive-tool");if(i&&i.remove(),this.builderStuff.innerHTML="",document.body.classList.remove("sidebar-active"),document.body.removeAttribute("data-skrollrr-off"),document.body.style.overflowY="",this.doc){const t=this.doc.querySelector("#_contentbox_css");t&&t.remove(t)}const n=document.querySelector("#_contentboxstuff_css");n&&n.remove(n),this.editor&&this.editor.destroy();const o=document.querySelector("#_newbox");o&&o.parentNode.removeChild(o),document.body.classList.remove("controlpanel"),this.doc&&this.doc.removeEventListener("click",this.doDocumentClick,!1),this.iframe&&document.removeEventListener("click",this.doIframeDocumentClick,!1),this.doc&&this.doc.removeEventListener("click",this.doDocumentKeydown,!1),this.iframe&&document.removeEventListener("click",this.doDocumentKeydown,!1),this.doc&&this.doc.removeEventListener("scroll",this.doAnimWheel,!1),this.win&&this.win.removeEventListener("scroll",this.doAnimScroll,!1),this.win&&this.win.removeEventListener("scroll",this.doScrollSync,!1),window.removeEventListener("scroll",this.doWindowScroll,!1)}cleanupUnused(){if(!this.doc)return;this.doc.querySelectorAll(".idd-drop-indicator").forEach((t=>t.remove())),this.editor&&this.editor.rte.cleanupFontCssLink();let t=this.doc.getElementsByTagName("link");for(let e=0;e<t.length;e++)if("contentstyle"===t[e].getAttribute("data-name")){let i=t[e].getAttribute("data-class");""===i&&t[e].setAttribute("data-rel","_del"),""!==i&&(this.wrapperEl.querySelector("."+i)||t[e].setAttribute("data-rel","_del"))}let e=this.doc.querySelectorAll('[data-rel="_del"]');e.forEach((t=>{t.parentNode.removeChild(t)})),e=this.doc.head.querySelectorAll("link"),e.forEach((t=>{let e=t.getAttribute("href");this.wrapperEl.querySelectorAll("link").forEach((t=>{e===t.getAttribute("href")&&t.setAttribute("data-rel","_del")}))})),e=this.doc.querySelectorAll('[data-rel="_del"]'),e.forEach((t=>{t.parentNode.removeChild(t)})),e=this.doc.querySelectorAll(".scroll-target, .last-box"),e.forEach((t=>{t.classList.remove("scroll-target"),t.classList.remove("last-box")}))}calculateVisibleArea(t){const e=window.innerHeight||document.documentElement.clientHeight,i=window.innerWidth||document.documentElement.clientWidth,n=Math.max(t.top,0),o=Math.min(t.bottom,e),s=Math.max(t.left,0);return(Math.min(t.right,i)-s)*(o-n)}findMostVisibleElement(t){let e=0,i=null;return t.forEach((t=>{const n=t.getBoundingClientRect();if(n.top<window.innerHeight&&n.bottom>=0&&n.left<window.innerWidth&&n.right>=0){const o=this.calculateVisibleArea(n);o>e&&(e=o,i=t)}})),i}selectSection(){if(this.activeBox)return;const t=this.wrapperEl.querySelectorAll(".is-section"),e=this.findMostVisibleElement(t);if(!e)return;let i=!1;if(e.classList.contains("is-box")&&(i=!0),i)this.activeBox=e,this.editor&&(this.editor.activeBox=e),e.classList.add("section-select"),this.activeSection=e;else{const t=e.querySelector(".is-box");t&&(t.classList.add("box-select"),this.activeBox=t,this.editor&&(this.editor.activeBox=t)),e.classList.add("section-select"),this.activeSection=e}}makeId(){let t="",e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";for(let i=0;i<2;i++)t+=e.charAt(Math.floor(Math.random()*e.length));let i="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";for(let t=0;t<5;t++)i+=n.charAt(Math.floor(Math.random()*n.length));return t+i}async createImage(t,e){try{return await this.editor.createImage(t,e)}catch(t){console.error("Image generation failed",t)}}applyDragDropBlocks(t){this.editor?this.editor.applyDragDropBlocks(t):setTimeout((()=>{this.applyDragDropBlocks(t)}),100)}}}();