halleyx-ui-framework 11.14.43 → 11.14.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{ColorPicker-liy7PfK6.js → ColorPicker-DN6554wO.js} +1 -1
- package/dist/assets/index-uGsUTDFc.js +2 -0
- package/dist/cjs/index.css +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/es/index.css +1 -1
- package/dist/es/index.js +1 -1
- package/dist/index.html +1 -1
- package/dist/umd/index.css +1 -1
- package/dist/umd/index.umd.js +1 -1
- package/dist/umd/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/dist/assets/index-CBfUXbRy.js +0 -2
package/dist/cjs/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("vue"),t=require("vue-draggable-next"),a=require("vue3-apexcharts"),o=require("chart.js"),i=require("chartjs-chart-geo");function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function l(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(a){if("default"!==a){var o=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,o.get?o:{enumerable:!0,get:function(){return e[a]}})}}),t.default=e,Object.freeze(t)}var r=n(a),s=l(i),c={name:"HlxAccordion",props:{accordionData:{type:Array,default:()=>[]},direction:{type:String,default:"right"},multiple:{type:Boolean,default:!1},expand:{type:Boolean,default:!1},headerBorder:{type:Boolean,default:!1}},emits:["accordionopen","accordionclose"],data:()=>({unique:Date.now().toString(36)+Math.random().toString(36).substr(2,5)}),mounted(){this.expand&&document.querySelectorAll(".accordion-item")?.forEach(e=>{e?.children[0]?.children[1]?.children[0]?.classList?.remove("icon-angle-right-regular"),e?.children[0]?.children[1]?.children[0]?.classList?.add("icon-angle-down-regular"),e.children[1].style.display="flex",this.$emit("accordionopen")})},methods:{toggleView(e,t,a){0==a?"right icon-angle-right-regular"===document.querySelector("#arrow-"+t).className?(0==this.headerBorder&&(document.querySelectorAll(".accordion-header").forEach(e=>{e.classList.remove("noo-border")}),document.querySelector("#header-"+t)&&document.querySelector("#header-"+t).classList.add("noo-border")),document.querySelectorAll(".icon-angle-down-regular").forEach(e=>{"right icon-angle-down-regular"==e.className&&(document.querySelectorAll(".accordion-content").forEach(e=>{e.style.display="none"}),e.classList.remove("icon-angle-down-regular"),e.classList.add("icon-angle-right-regular"))}),document.querySelector("#arrow-"+t).classList.remove("icon-angle-right-regular"),document.querySelector("#arrow-"+t).classList.add("icon-angle-down-regular"),document.querySelector("#content-"+t).style.display="flex",this.$emit("accordionopen")):"right icon-angle-down-regular"===document.querySelector("#arrow-"+t).className&&(0==this.headerBorder&&(document.querySelectorAll(".accordion-header").forEach(e=>{e.classList.remove("noo-border")}),document.querySelector("#header-"+t)&&document.querySelector("#header-"+t).classList.add("noo-border")),document.querySelector("#arrow-"+t).classList.remove("icon-angle-down-regular"),document.querySelector("#arrow-"+t).classList.add("icon-angle-right-regular"),document.querySelector("#content-"+t).style.display="none",this.$emit("accordionclose")):"right icon-angle-right-regular"===document.querySelector("#arrow-"+t).className?(0==this.headerBorder&&document.querySelector("#header-"+t)&&document.querySelector("#header-"+t).classList.add("noo-border"),document.querySelector("#arrow-"+t).classList.remove("icon-angle-right-regular"),document.querySelector("#arrow-"+t).classList.add("icon-angle-down-regular"),document.querySelector("#content-"+t).style.display="flex",this.$emit("accordionopen")):"right icon-angle-down-regular"===document.querySelector("#arrow-"+t).className&&(document.querySelector("#header-"+t)&&document.querySelector("#header-"+t).classList.remove("noo-border"),document.querySelector("#arrow-"+t).classList.remove("icon-angle-down-regular"),document.querySelector("#arrow-"+t).classList.add("icon-angle-right-regular"),document.querySelector("#content-"+t).style.display="none",this.$emit("accordionclose"))}}};const d=["id","multiple"],m=["id"],u={key:0,style:{display:"flex"}},f=["id"],p={style:{width:"100%"}},h={key:1,style:{display:"flex"}},g=["id"],y=["id"];c.render=function(t,a,o,i,n,l){return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createCommentVNode(' <div class="accordion-container"> '),(e.openBlock(),e.createElementBlock("div",{id:["item-"+n.unique],key:n.unique,class:"accordion-item",multiple:o.multiple},[e.createElementVNode("div",{id:["header-"+n.unique],class:"accordion-header",onClick:a[0]||(a[0]=e=>l.toggleView(e,n.unique,o.multiple))},["left"==o.direction?(e.openBlock(),e.createElementBlock("div",u,[e.createElementVNode("i",{id:["arrow-"+n.unique],class:"right icon-angle-right-regular"},null,8,f)])):e.createCommentVNode("v-if",!0),e.createElementVNode("header",p,[e.renderSlot(t.$slots,"item-title")]),"right"==o.direction?(e.openBlock(),e.createElementBlock("div",h,[e.createElementVNode("i",{id:["arrow-"+n.unique],class:"right icon-angle-right-regular"},null,8,g)])):e.createCommentVNode("v-if",!0)],8,m),e.createElementVNode("div",{id:["content-"+n.unique],class:"accordion-content"},[e.renderSlot(t.$slots,"item-body")],8,y)],8,d)),e.createCommentVNode(" </div> ")],2112)},c.__file="src/components/AccordionComponent.vue";var v={name:"HlxAlertNotification",props:{notify:{type:Object,default:()=>({})},autoClose:{type:Boolean,default:()=>!0},delay:{type:Number,default:e=>e>3e3?e:2e3,validator:e=>e>3e3?e:2e3}},data:()=>({notifications:[],alertStatus:!1,typeData:""}),computed:{computedAlert(){return this.alertStatus}},watch:{notify:{handler(e){const t=(new Date).toISOString().replace(/[.\:-]/g,"")+crypto.randomUUID().toString(16).substring(1);Object.keys(e).length>0&&this.push({...e,id:t})},immediate:!0,deep:!0}},methods:{closeAlert(e){this.$refs["hlx-alert-"+e][0]?.classList.add("close"),setTimeout(()=>{this.notifications=this.notifications.filter(t=>t.id&&t.id!=e)},1e3)},push(e){this.notifications.push({...e}),this.autoClose&&setTimeout(()=>{this.$refs["hlx-alert-"+e.id][0]?.classList.add("close"),setTimeout(()=>{this.notifications.shift()},1e3)},this.delay+1e3*this.notifications.length)},icon(e){if(e)switch(e.toLowerCase()){case"danger":case"warning":return"icon-exclamation-circle-regular";case"primary":return"icon-info-circle-regular";default:return"icon-check-circle-regular"}return"tick-bg"}}};const b={key:0,class:"hlx-alert-wrapper"},k=["id"],_={class:"icon"},w={class:"text"},C={class:"alert-description"},S=["onClick"];v.render=function(t,a,o,i,n,l){return e.openBlock(),e.createBlock(e.Teleport,{to:"body",class:"alert-not"},[n.notifications.length>0?(e.openBlock(),e.createElementBlock("section",b,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.notifications,t=>(e.openBlock(),e.createElementBlock("div",{id:"alert"+t.id,ref_for:!0,ref:"hlx-alert-"+t.id,key:t,class:e.normalizeClass(["hlx alert",t?.type?"alert-"+t?.type.toLowerCase():"alert-success"])},[e.createElementVNode("span",_,[e.createElementVNode("i",{class:e.normalizeClass(l.icon(t.type))},null,2)]),e.createElementVNode("div",w,[e.createElementVNode("p",C,e.toDisplayString(t?.message),1)]),e.createElementVNode("button",{class:"close","aria-label":"close",onClick:e=>l.closeAlert(t.id)},[...a[0]||(a[0]=[e.createElementVNode("i",{class:"icon-times-filled"},null,-1)])],8,S)],10,k))),128))])):e.createCommentVNode("v-if",!0)])},v.__file="src/components/AlertComponent.vue";var E={name:"HlxBadge",props:{icon:{type:String,default:""},count:{type:Number,default:0}}};const N=["aria-label"],x={class:"icon-button__badge",style:{"font-size":"10px"}};E.render=function(t,a,o,i,n,l){return e.openBlock(),e.createElementBlock("button",{id:"badge",type:"button",class:"icon-button","aria-label":o.icon},[e.createElementVNode("span",{class:e.normalizeClass(o.icon)},null,2),e.createElementVNode("span",x,e.toDisplayString(o.count),1)],8,N)},E.__file="src/components/BadgeComponent.vue";var B={name:"HlxBreadcrumb",props:{labelValue:{type:String,default:"Back"},autoRoute:{type:Boolean,default:!1},type:{type:String,default:"back-breadcrumb"},items:{type:Array,required:!0},separator:{type:[String,Object],default:"/"}},emits:["path"],data:()=>({unique:Date.now().toString(36)+Math.random().toString(36).substr(2,5)}),computed:{isIconSeparator(){return"object"==typeof this.separator}},methods:{current(e){!0===this.autoRoute&&this.$router.back(),this.$emit("path",e)},tooltipover(e,t){let a=e,o=t;this.ellipsis(a,o)},tooltipleave(e,t){let a=e,o=t;this.ellipses(a,o)},ellipsis(e,t){this.$nextTick(()=>{const a=document.querySelector("#"+e);if(null!=a){if(a.clientWidth<a.scrollWidth)if("ellipsis"===(a.currentStyle||window.getComputedStyle(a)).textOverflow){const e=document.querySelector("."+t);let o=a.getBoundingClientRect().top,i=a.getBoundingClientRect().left+77;return e.style.display="block",e.style.top=o+"px",e.style.left=i+"px",!0}return!1}})},ellipses(e,t){this.$nextTick(()=>{const a=document.querySelector("#"+e);if(null!=a){if(a.clientWidth<a.scrollWidth)if("ellipsis"===(a.currentStyle||window.getComputedStyle(a)).textOverflow){return document.querySelector("."+t).style.display="none",!0}return!1}})}}};const V={class:"breadcrumb","aria-label":"Breadcrumb"},A={key:0},R=["onClick"],M=["id","onMouseover","onMouseleave"],T=["id","onMouseover","onMouseleave"],I={key:3,class:"breadcrumb-separator"},$={key:1};B.render=function(t,a,o,i,n,l){return e.openBlock(),e.createElementBlock("nav",V,["Pathway-breadcrumb"===o.type?(e.openBlock(),e.createElementBlock("ul",A,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.items,(t,a)=>(e.openBlock(),e.createElementBlock("li",{key:a,onClick:e=>l.current(t)},[null!=t.icon?(e.openBlock(),e.createElementBlock("i",{key:0,"aria-hidden":"true",class:e.normalizeClass(t.icon)},null,2)):e.createCommentVNode("v-if",!0),a===o.items.length-1?(e.openBlock(),e.createElementBlock("a",{key:1,id:"breadcrumb"+a+n.unique,style:{"white-space":"nowrap",overflow:"hidden","text-overflow":"ellipsis","min-width":"45px",width:"auto","max-width":"80px",display:"inline-block"},onMouseover:e=>l.tooltipover("breadcrumb"+a+n.unique,"tooltip-textbreadcrumb"+a+n.unique),onMouseleave:e=>l.tooltipleave("breadcrumb"+a+n.unique,"tooltip-textbreadcrumb"+a+n.unique)},[e.createTextVNode(e.toDisplayString(t.label)+" ",1),e.createElementVNode("p",{id:"tooltip-text1",class:e.normalizeClass("tooltip-textbreadcrumb"+a+n.unique)},e.toDisplayString(t.label),3)],40,M)):(e.openBlock(),e.createElementBlock("a",{key:2,id:"breadcrumb"+n.unique+a,class:"show-breadcrumb",style:{"white-space":"nowrap",overflow:"hidden","text-overflow":"ellipsis","min-width":"45px",width:"auto","max-width":"80px",display:"inline-block"},onMouseover:e=>l.tooltipover("breadcrumb"+n.unique+a,"tooltip-textbreadcrumb"+n.unique+a),onMouseleave:e=>l.tooltipleave("breadcrumb"+n.unique+a,"tooltip-textbreadcrumb"+n.unique+a)},[e.createTextVNode(e.toDisplayString(t.label)+" ",1),e.createElementVNode("p",{id:"tooltip-text1",class:e.normalizeClass("tooltip-textbreadcrumb"+n.unique+a)},e.toDisplayString(t.label),3)],40,T)),e.createCommentVNode(' <router-link :to="item.link" :class="{ disabled: index === items.length - 1 } " >{{ item.label }}</router-link> '),a<o.items.length-1?(e.openBlock(),e.createElementBlock("span",I,[l.isIconSeparator?(e.openBlock(),e.createElementBlock("i",{key:0,"aria-hidden":"true",class:e.normalizeClass(o.separator.icon)},null,2)):(e.openBlock(),e.createElementBlock("span",$,e.toDisplayString(o.separator),1))])):e.createCommentVNode("v-if",!0)],8,R))),128))])):e.createCommentVNode("v-if",!0),"back-breadcrumb"===o.type?(e.openBlock(),e.createElementBlock("div",{key:1,class:"back-breadcrumb",style:{display:"flex",cursor:"pointer","align-items":"center",gap:"8px","max-width":"100px"},onClick:a[0]||(a[0]=e=>l.current("back"))},[a[1]||(a[1]=e.createElementVNode("i",{style:{"font-weight":"800"},class:"icon-arrow-left-regular"},null,-1)),e.createElementVNode("p",null,e.toDisplayString(o.labelValue),1)])):e.createCommentVNode("v-if",!0)])},B.__file="src/components/BreadcrumbComponent.vue";var D={name:"HlxButton",props:{value:{type:String,default:"Hlx click :)"},type:{type:String,default:"button"},name:{type:String,default:"hlx-button"},target:{type:String,default:"_blank"},href:{type:String,default:void 0},disabled:{type:Boolean,default:!1},label:{type:String,default:"Button"}},computed:{primaryClass(){return this.disabled?"disabled-button":""}},watch:{disabled:{handler(e){e&&this.primaryClass},immediate:!0}},methods:{clicked(){this.href&&this.$refs["link-ele"].click()}}};const z=["value","type","name","aria-label"],O=["aria-label","href","target"];D.render=function(t,a,o,i,n,l){return e.openBlock(),e.createElementBlock("button",{id:"hlx-button-0009",ref:"hlx-button",value:o.value,type:o.type,name:o.name,class:e.normalizeClass([l.primaryClass,"hlx-button"]),"aria-label":o.label,onClick:a[0]||(a[0]=(...e)=>l.clicked&&l.clicked(...e))},[e.renderSlot(t.$slots,"default"),null!=o.href?(e.openBlock(),e.createElementBlock("a",{key:0,ref:"link-ele","aria-label":o.label,href:o.href,target:o.target},null,8,O)):e.createCommentVNode("v-if",!0)],10,z)},D.__file="src/components/ButtonComponent.vue";var P={name:"HlxCalendar",props:{disableWeekend:{type:Boolean,default:!1},dateFormatLanguage:{type:String,default:"en"},event:{type:[Array,PointerEvent],default:()=>[]},preValue:{type:[Date,String],default:""},startYear:{type:Number,default:1950},endYear:{type:Number,default:2050},holidayList:{type:Array,default:()=>[]}},emits:["selectedDate","formattedDate"],data:()=>({selectedMonth:"",selectedYear:"",selectedDay:"",formattedDate:"",staticDataDays:localStorage.getItem("dayDataShort")?JSON.parse(localStorage.getItem("dayDataShort")):{sun:"SUN",mon:"MON",tue:"TUE",wed:"WED",thu:"THU",fri:"FRI",sat:"SAT"},monthNames:localStorage.getItem("monthDataLong")?JSON.parse(localStorage.getItem("monthDataLong")):["January","February","March","April","May","June","July","August","September","October","November","December"]}),async mounted(){const e=document.querySelector(".calendar"),t=document.querySelector(".light");e.clientY=this.event.clientY,t.right=this.event.clientX+"px";const a=["January","February","March","April","May","June","July","August","September","October","November","December"],o=[];let i=this.startYear;const n=this.endYear;for(;i<=n;)o.push(i++);const l=e.querySelector(".month-list");o.forEach((e,t)=>{const a=document.createElement("div");a.innerHTML=`<div data-month="${t}" id="year${t}" class="idd${e}">${e}</div>`;let o=(new Date).getFullYear();o+=1,e===o&&(document.getElementById("year"+(t-1)).classList.add("theme-background"),document.getElementById("year"+(t-1)).style.color="white"),a.querySelector("div").onclick=()=>{l.classList.remove("show"),c.value=e,this.selectedMonth=s.value,this.selectedYear=c.value,this.generateCalendar(s.value,c.value)},l.appendChild(a)});e.querySelector("#year").onclick=()=>{l.classList.add("show"),document.querySelector(".selected-curr-year")?.classList?.remove("selected-curr-year");let e=document.querySelector(".idd"+this.selectedYear);e.classList.add("selected-curr-year"),e.scrollIntoView({behavior:"smooth",block:"start"})};let r="";if(""===this.preValue)r=new Date;else{const e=this.preValue.split("-");r=new Date(e[2],e[1]-1,e[0])}const s={value:r.getMonth()},c={value:r.getFullYear()};this.selectedMonth=s.value,this.selectedYear=c.value,this.generateCalendar(s.value,c.value);const d=document.querySelector(".calendar");340===d.offsetHeight||(d.style.marginTop="0px"),document.querySelector("#prev-year").onclick=()=>{"January"===a[s.value]?(s.value=11,--c.value):--s.value,this.selectedMonth=s.value,this.selectedYear=c.value,this.generateCalendar(s.value,c.value);const e=document.querySelector(".calendar");340===e.offsetHeight||(e.style.marginTop="0")},document.querySelector("#next-year").onclick=()=>{const e=document.querySelector(".calendar");"December"===a[s.value]?(s.value=0,++c.value):++s.value,this.selectedMonth=s.value,this.selectedYear=c.value,this.generateCalendar(s.value,c.value),340===e.offsetHeight||(e.style.marginTop="0")};document.querySelectorAll(".disable-weekend").forEach(e=>{e.addEventListener("click",e=>{e.stopPropagation(),e.preventDefault()})})},methods:{async translateStaticDataDays(e,t){const a=Object.keys(e).map(t=>e[t]),o=await this.languageTransferArray(a,t),i=Object.keys(e).reduce((e,t,a)=>(e[t]=o[a],e),{});return i},hlxUIKitCalendarOnClickHandler(e){try{""!==e.target.innerHTML&&e.target.innerHTML.length<=2&&(e.target.innerHTML.length<2?this.selectedDay=0+e.target.innerHTML:this.selectedDay=e.target.innerHTML,this.selectedDate=this.selectedDay+"-"+(this.selectedMonth+1<10?"0"+String(this.selectedMonth+1):this.selectedMonth+1)+"-"+this.selectedYear,this.$emit("selectedDate",this.selectedDate))}catch(e){this.$emit("selectedDate",null)}},isLeapYear:e=>e%4==0&&e%100!=0&&e%400!=0||e%100==0&&e%400==0,getFebDays(e){return this.isLeapYear(e)?29:28},generateCalendar(e,t){const a=document.querySelector(".calendar"),o=a.querySelector(".calendar-days"),i=a.querySelector("#year"),n=[31,this.getFebDays(t),31,30,31,30,31,31,30,31,30,31];o.innerHTML="";let l="";if(""===this.preValue)l=new Date;else{const e=this.preValue.split("-");l=new Date(e[2],e[1]-1,e[0])}t||(t=l.getFullYear());const r=`${this.monthNames[e]}`;a.querySelector("#month-picker").innerHTML=r,i.innerHTML=t;const s=new Date(t,e,1);for(let a=0;a<=n[e]+s.getDay()-1;a++){const i=document.createElement("div");if(a>=s.getDay()){i.classList.add("calendar-day-hover");const o=a-s.getDay()+1;if(o>0&&o<=n[e]){const a=`${o}-${e+1}-${t}`;i.classList.add(a),i.id="calender-day",this.holidayList.includes(a)&&(i.classList.remove("calendar-day-hover"),i.classList.add("disable-weekend")),i.innerHTML=o,o===l.getDate()&&t===l.getFullYear()&&e===l.getMonth()&&i.classList.add("curr-date")}}o.appendChild(i)}if(!0===this.disableWeekend){const e=document.querySelector(".calendar-days").children,t=[0,6,7,13,14,20,21,27,28,34,35];for(const a in t)e[t[a]]&&""!==e[t[a]].innerHTML&&(e[t[a]].classList.remove("calendar-day-hover"),e[t[a]].classList.add("disable-weekend"))}}}};const q={class:"light"},L={class:"calendar"},F={class:"calendar-body"},j={class:"calendar-week-day"};P.render=function(t,a,o,i,n,l){return e.openBlock(),e.createElementBlock("div",q,[e.createElementVNode("div",L,[a[1]||(a[1]=e.createStaticVNode('<div class="calendar-header"><div class="year-picker"><span id="prev-year" class="year-change"><p style="margin:0px;"><i class="icon-angle-left-regular"></i></p></span><span><span id="month-picker" class="month-picker">February</span><span id="year">2021</span></span><span id="next-year" class="year-change"><p style="margin:0px;"><i class="icon-angle-right-regular"></i></p></span></div></div>',1)),e.createElementVNode("div",F,[e.createElementVNode("div",j,[e.createElementVNode("div",null,[e.createCommentVNode(" SUN "),e.createTextVNode(" "+e.toDisplayString(n.staticDataDays?.sun),1)]),e.createElementVNode("div",null,[e.createCommentVNode(" MON "),e.createTextVNode(" "+e.toDisplayString(n.staticDataDays?.mon),1)]),e.createElementVNode("div",null,[e.createCommentVNode(" TUE "),e.createTextVNode(" "+e.toDisplayString(n.staticDataDays?.tue),1)]),e.createElementVNode("div",null,[e.createCommentVNode(" WED "),e.createTextVNode(" "+e.toDisplayString(n.staticDataDays?.wed),1)]),e.createElementVNode("div",null,[e.createCommentVNode(" THU "),e.createTextVNode(" "+e.toDisplayString(n.staticDataDays?.thu),1)]),e.createElementVNode("div",null,[e.createCommentVNode(" FRI "),e.createTextVNode(" "+e.toDisplayString(n.staticDataDays?.fri),1)]),e.createElementVNode("div",null,[e.createCommentVNode(" SAT "),e.createTextVNode(" "+e.toDisplayString(n.staticDataDays?.sat),1)])]),e.createElementVNode("div",{class:"calendar-days",onClick:a[0]||(a[0]=(...e)=>l.hlxUIKitCalendarOnClickHandler&&l.hlxUIKitCalendarOnClickHandler(...e))})]),e.createCommentVNode(' <div class="calendar-footer">\n\n </div> '),a[2]||(a[2]=e.createElementVNode("div",{class:"month-list"},null,-1))])])},P.__file="src/components/CalendarComponent.vue";var U={name:"HlxCard",components:{},props:{cardTitle:{type:Boolean,default:!1},cardFooter:{type:Boolean,default:!1},width:{type:Number,default:null},hover:{type:Boolean,default:!1},shadow:{type:Boolean,default:!1},padding:{type:Boolean,default:!1},active:{type:Boolean,default:!1},height:{type:Number,default:null}},computed:{headerHeight(){return this.cardTitle?60:0},footerHeight(){return this.cardFooter?60:0}},mounted(){}};const K={key:0,class:"card-title"},G={key:1,class:"card-footer"};U.render=function(t,a,o,i,n,l){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["card",{cardhover:o.hover,cardshadow:o.shadow,padding:o.padding,cardActive:o.active}]),style:e.normalizeStyle("width:"+o.width+"px; height:"+o.height+"px;")},[1==o.cardTitle?(e.openBlock(),e.createElementBlock("div",K,[e.createElementVNode("header",null,[e.renderSlot(t.$slots,"card-title",{},()=>[a[0]||(a[0]=e.createTextVNode("Card title",-1))])])])):e.createCommentVNode("v-if",!0),e.createElementVNode("div",{class:"card-body",style:e.normalizeStyle(o.cardTitle&&o.cardFooter?{height:o.height-l.headerHeight-l.footerHeight+"px"}:{height:"100%"})},[e.createCommentVNode(" {{this.card_body}} "),e.createElementVNode("main",null,[e.renderSlot(t.$slots,"card-body",{},()=>[a[1]||(a[1]=e.createTextVNode("Card body",-1))])])],4),1==o.cardFooter?(e.openBlock(),e.createElementBlock("div",G,[e.createCommentVNode(" {{this.cardFooter}} "),e.createElementVNode("footer",null,[e.renderSlot(t.$slots,"card-footer",{},()=>[a[2]||(a[2]=e.createTextVNode("Card footer",-1))])])])):e.createCommentVNode("v-if",!0)],6)},U.__file="src/components/CardsComponent.vue";var H={props:{show:{type:Boolean,default:!1},height:{type:Number,default:0},top:{type:Number,default:0},width:{type:Number,default:0},left:{type:Number,default:0},conditionvalue:{type:Number,default:0},conditionup:{type:Number,default:0},conditiondown:{type:Number,default:0},search:{type:String,default:""}},emits:["close-overlay"],data:()=>({unique:Date.now().toString(36)+Math.random().toString(36).substr(2,5),containertop:0,containerwidth:0,containerleft:0,containerheight:0}),watch:{search:{handler(e){1==this.show?this.$nextTick(()=>{this.containerheight=document.querySelector("#container-overlay"+this.unique).offsetHeight,this.containertop=this.top,this.containerleft=this.left,this.containerwidth=this.width,window.innerHeight-this.containertop<this.conditionvalue?this.containertop=this.containertop-(this.containerheight+this.conditionup):this.containertop=this.containertop+this.conditiondown}):(this.containertop=0,this.containerleft=0,this.containerwidth=0,this.containerheight=0)}},show:{handler(e){1==e?this.$nextTick(()=>{this.containerheight=document.querySelector("#container-overlay"+this.unique).offsetHeight,this.containertop=this.top,this.containerleft=this.left,this.containerwidth=this.width,window.innerHeight-this.containertop<this.conditionvalue?this.containertop=this.containertop-(this.containerheight+this.conditionup):this.containertop=this.containertop+this.conditiondown}):(this.containertop=0,this.containerleft=0,this.containerwidth=0,this.containerheight=0)}},top:{handler(e){this.containertop=e,1==this.show?this.$nextTick(()=>{this.containerheight=document.querySelector("#container-overlay"+this.unique).offsetHeight,this.containertop=this.top,this.containerleft=this.left,this.containerwidth=this.width,window.innerHeight-this.containertop<this.conditionvalue?this.containertop=this.containertop-(this.containerheight+this.conditionup):this.containertop=this.containertop+this.conditiondown}):(this.containertop=0,this.containerleft=0,this.containerwidth=0,this.containerheight=0)},immediate:!0,deep:!0},left:{handler(e){this.containerleft=e},immediate:!0,deep:!0},width:{handler(e){this.containerwidth=e},immediate:!0,deep:!0}},methods:{emitfunction(e){this.$emit("close-overlay",e)}}};const W=["id"];H.render=function(t,a,o,i,n,l){return e.openBlock(),e.createElementBlock("div",{class:"outer-overlay",onClick:a[0]||(a[0]=(...e)=>l.emitfunction&&l.emitfunction(...e))},[e.createElementVNode("div",{id:"container-overlay"+n.unique,class:"container-overlay",style:e.normalizeStyle([{position:"fixed"},["width:"+o.width+"px","top:"+n.containertop+"px","left:"+o.left+"px"]])},[e.renderSlot(t.$slots,"overlay")],12,W)])},H.__file="src/components/OverlayComponent.vue";var J={name:"HlxColorPalette",components:{hlxOverlay:H},props:{preValue:{type:String,default:"#000000"},highlightColor:{type:Boolean,default:!1}},emits:["customChange"],data:()=>({containerleft:0,containertop:0,unique:Date.now().toString(36)+Math.random().toString(36).substr(2,5),colorcontainer:!1,fill_color:!0,colorvalue:"#000000",recent:!1,recentvalue:"",recentcolor:[],colordata:[{"#ffffff":["#f2f2f2","#d9d9d9","#bfbfbf","#a6a6a6","#808080"]},{"#000000":["#808080","#595959","#404040","#262626","#0d0d0d"]},{"#e7e6e6":["#d0cece","#aeaaaa","#757171","#3a3838","#161616"]},{"#44546a":["#d6dce4","#acb9ca","#8497b0","#333f4f","#222b35"]},{"#4472c4":["#d9e1f2","#b4c6e7","#8ea9db","#305496","#203764"]},{"#ed7d31":["#fce4d6","#f8cbad","#f4b084","#c65911","#833c0c"]},{"#a5a5a5":["#ededed","#dbdbdb","#c9c9c9","#7b7b7b","#525252"]},{"#ffc000":["#fff2cc","#ffe699","#ffd966","#bf8f00","#806000"]},{"#5b9bd5":["#ddebf7","#bdd7ee","#9bc2e6","#2f75b5","#1f4e78"]},{"#70ad47":["#e2efda","#c6e0b4","#a9d08e","#548235","#375623"]}],standardcolor:["#c00000","#ff0000","#ffc000","#ffff00","#92d050","#00b050","#00b0f0","#0070c0","#002060","#7030a0"],colorpick:""}),watch:{preValue:{handler(e){""!=e&&(this.colorvalue=e,this.$emit("customChange",this.colorvalue))},immediate:!0,deep:!0}},mounted(){!0===this.highlightColor?this.fill_color=!1:this.fill_color=!0;for(let e=0;e<this.colordata.length;e++)for(let t=0;t<Object.values(this.colordata[e])[0].length;t++);document.addEventListener("click",e=>{"color-container"!=e.target.className&&"color-container-title"!=e.target.className&&"color-container-specific-color-checkbox-border"!=e.target.className&&"color-container-specific-color-checkbox-border-fill-color"!=e.target.className&&"color-container-specific-color"!=e.target.className&&"color-container-specific-color1"!=e.target.className&&"color-container-specific-color2"!=e.target.className&&"color-container-specific-color1-container"!=e.target.className&&"color-container2323"!=e.target.className&&"favcolor"!=e.target.className&&"color-palette-container"!=e.target.className&&"color-palette-icon"!=e.target.className&&"icon-color-fill"!=e.target.className&&"color-icon-border"!=e.target.className&&"color-palette-open-icon"!=e.target.className&&"icon-angle-down-regular"!=e.target.className&&(this.colorcontainer=!1)})},methods:{getcolorvalue(e){this.recent=!0,this.colorvalue=e.target.value,this.$emit("customChange",this.colorvalue),1!=this.recentcolor.includes(this.colorvalue)&&(document.querySelectorAll(".color-container-specific-color-checkbox-border").forEach(e=>{e.classList.remove("add-border")}),this.recentvalue=this.colorvalue,this.recentcolor.push(this.colorvalue))},getcolor(e){document.querySelectorAll(".color-container-specific-color-checkbox-border").forEach(e=>{e.classList.remove("add-border")}),"color-container-specific-color-checkbox-border-fill-color"===e.target.className?(this.colorvalue=e.target.style.background,this.$emit("customChange",this.colorvalue),e.target.parentElement.classList.add("add-border"),this.colorcontainer=!1):"color-container-specific-color-checkbox-border"===e.target.className&&(this.colorvalue=e.target.children[0].style.background,this.$emit("customChange",this.colorvalue),e.target.classList.add("add-border"),this.colorcontainer=!1),this.recent=!0,1!=this.recentcolor.includes(this.colorvalue)&&(document.querySelectorAll(".color-container-specific-color-checkbox-border").forEach(e=>{e.classList.remove("add-border")}),this.recentvalue=this.colorvalue,this.recentcolor.push(this.colorvalue))},colorpalette(){this.$nextTick(()=>{this.containerleft=document.getElementById("color-palette-open-icon"+this.unique).getBoundingClientRect().left+5,this.containertop=document.getElementById("color-palette-open-icon"+this.unique).getBoundingClientRect().top+50}),!1===this.colorcontainer?this.colorcontainer=!0:!0===this.colorcontainer&&(this.colorcontainer=!1)},colorpicker(){this.colorpick=!0}}};const Z={class:"color-palette-container"},Y={class:"color-palette-icon"},X={key:0,class:"icon-palette-regular"},Q={key:1,class:"highlight-container"},ee={key:0,class:"highlight-icon"},te=["id"],ae=["id"],oe={class:"color-container-specific-color"},ie={class:"color-container-specific-color1"},ne={class:"color-container-specific-color"},le={class:"color-container2323"},re=["value"],se={key:0,class:"color-container-title"},ce={class:"color-container-specific-color2"};J.render=function(t,a,o,i,n,l){const r=e.resolveComponent("hlx-overlay");return e.openBlock(),e.createElementBlock("div",Z,[e.createElementVNode("div",Y,[1==n.fill_color?(e.openBlock(),e.createElementBlock("i",X)):e.createCommentVNode("v-if",!0),!0===o.highlightColor?(e.openBlock(),e.createElementBlock("div",Q,[!0===o.highlightColor?(e.openBlock(),e.createElementBlock("p",ee,"A")):e.createCommentVNode("v-if",!0),e.createCommentVNode(' <div class="higlight-icon-border" v-if="this.highlightColor === true"></div> ')])):e.createCommentVNode("v-if",!0),e.createElementVNode("div",{class:"color-icon-border",style:e.normalizeStyle({background:n.colorvalue})},null,4)]),e.createElementVNode("button",{id:"color-palette-open-icon"+n.unique,"aria-dis":"",class:"color-palette-open-icon",onClick:a[0]||(a[0]=(...e)=>l.colorpalette&&l.colorpalette(...e))},[...a[7]||(a[7]=[e.createElementVNode("i",{class:"icon-angle-down-regular"},null,-1)])],8,te),n.colorcontainer?(e.openBlock(),e.createBlock(r,{key:0,show:n.colorcontainer,top:n.containertop,left:n.containerleft,width:100,conditionvalue:150,conditionup:55,onCloseOverlay:t.onClose},{overlay:e.withCtx(()=>[e.createElementVNode("div",{id:"color-container"+n.unique,class:"color-container"},[a[8]||(a[8]=e.createElementVNode("p",{class:"color-container-title"},"Theme Colors",-1)),e.createElementVNode("div",oe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.colordata,(t,o)=>(e.openBlock(),e.createElementBlock("div",{key:o,class:"color-container-specific-color-checkbox-border",onClick:a[1]||(a[1]=(...e)=>l.getcolor&&l.getcolor(...e))},[e.createElementVNode("button",{class:"color-container-specific-color-checkbox-border-fill-color",style:e.normalizeStyle({background:Object.keys(n.colordata[o])[0]})},null,4)]))),128))]),e.createElementVNode("button",ie,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.colordata,(t,o)=>(e.openBlock(),e.createElementBlock("div",{key:o,class:"color-container-specific-color1-container",onClick:a[2]||(a[2]=(...e)=>l.getcolor&&l.getcolor(...e))},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Object.values(n.colordata[o])[0].length,(t,a)=>(e.openBlock(),e.createElementBlock("div",{key:a,class:"color-container-specific-color-checkbox-border"},[e.createElementVNode("button",{class:"color-container-specific-color-checkbox-border-fill-color",style:e.normalizeStyle({background:Object.values(n.colordata[o])[0][a]})},null,4)]))),128))]))),128))]),a[9]||(a[9]=e.createElementVNode("p",{class:"color-container-title"},"Standard Colors",-1)),e.createElementVNode("button",ne,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.standardcolor,(t,o)=>(e.openBlock(),e.createElementBlock("div",{key:o,class:"color-container-specific-color-checkbox-border",onClick:a[3]||(a[3]=(...e)=>l.getcolor&&l.getcolor(...e))},[e.createElementVNode("button",{class:"color-container-specific-color-checkbox-border-fill-color",style:e.normalizeStyle({background:n.standardcolor[o]})},null,4)]))),128))]),e.createElementVNode("button",le,[e.createElementVNode("input",{id:"favcolor",type:"color",name:"favcolor",value:n.recentvalue,class:"favcolor",onChange:a[4]||(a[4]=(...e)=>l.getcolorvalue&&l.getcolorvalue(...e))},null,40,re),e.createElementVNode("p",{class:"color-container-title",onClick:a[5]||(a[5]=(...e)=>l.colorpicker&&l.colorpicker(...e))}," More Colors ")]),!0===n.recent?(e.openBlock(),e.createElementBlock("p",se," Recent color ")):e.createCommentVNode("v-if",!0),e.createElementVNode("div",ce,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.recentcolor,(t,o)=>(e.openBlock(),e.createElementBlock("div",{key:o,class:"color-container-specific-color-checkbox-border",onClick:a[6]||(a[6]=(...e)=>l.getcolor&&l.getcolor(...e))},[e.createElementVNode("button",{class:"color-container-specific-color-checkbox-border-fill-color",style:e.normalizeStyle({background:n.recentcolor[o]})},null,4)]))),128))])],8,ae)]),_:1},8,["show","top","left","onCloseOverlay"])):e.createCommentVNode("v-if",!0)])},J.__file="src/components/ColorpaletteComponent.vue";var de="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function me(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ue,fe={exports:{}};var pe,he,ge,ye,ve=(ue||(ue=1,pe=fe,he=["direction","boxSizing","width","height","overflowX","overflowY","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderStyle","paddingTop","paddingRight","paddingBottom","paddingLeft","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontSizeAdjust","lineHeight","fontFamily","textAlign","textTransform","textIndent","textDecoration","letterSpacing","wordSpacing","tabSize","MozTabSize"],ge="undefined"!=typeof window,ye=ge&&null!=window.mozInnerScreenX,pe.exports=function(e,t,a){if(!ge)throw new Error("textarea-caret-position#getCaretCoordinates should only be called in a browser");var o=a&&a.debug||!1;if(o){var i=document.querySelector("#input-textarea-caret-position-mirror-div");i&&i.parentNode.removeChild(i)}var n=document.createElement("div");n.id="input-textarea-caret-position-mirror-div",document.body.appendChild(n);var l=n.style,r=window.getComputedStyle?window.getComputedStyle(e):e.currentStyle,s="INPUT"===e.nodeName;l.whiteSpace="pre-wrap",s||(l.wordWrap="break-word"),l.position="absolute",o||(l.visibility="hidden"),he.forEach(function(e){s&&"lineHeight"===e?l.lineHeight=r.height:l[e]=r[e]}),ye?e.scrollHeight>parseInt(r.height)&&(l.overflowY="scroll"):l.overflow="hidden",n.textContent=e.value.substring(0,t),s&&(n.textContent=n.textContent.replace(/\s/g," "));var c=document.createElement("span");c.textContent=e.value.substring(t)||".",n.appendChild(c);var d={top:c.offsetTop+parseInt(r.borderTopWidth),left:c.offsetLeft+parseInt(r.borderLeftWidth),height:parseInt(r.lineHeight)};return o?c.style.backgroundColor="#aaa":document.body.removeChild(n),d}),fe.exports),be=me(ve);function ke(){return ke=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(e[o]=a[o])}return e},ke.apply(this,arguments)}var _e,we="undefined"!=typeof window&&navigator&&/Win/i.test(navigator.platform),Ce="undefined"!=typeof window&&navigator&&/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform),Se=e.defineComponent({props:{lineNumbers:{type:Boolean,default:!1},autoStyleLineNumbers:{type:Boolean,default:!0},readonly:{type:Boolean,default:!1},modelValue:{type:String,default:""},highlight:{type:Function,required:!0},tabSize:{type:Number,default:2},insertSpaces:{type:Boolean,default:!0},ignoreTabKey:{type:Boolean,default:!1},placeholder:{type:String,default:""}},data:function(){return{capture:!0,history:{stack:[],offset:-1},lineNumbersHeight:"20px",codeData:""}},watch:{modelValue:{immediate:!0,handler:function(e){this.codeData=e||""}},content:{immediate:!0,handler:function(){var e=this;this.lineNumbers&&this.$nextTick(function(){e.setLineNumbersHeight()})}},lineNumbers:function(){var e=this;this.$nextTick(function(){e.styleLineNumbers(),e.setLineNumbersHeight()})}},computed:{isEmpty:function(){return 0===this.codeData.length},content:function(){return this.highlight(this.codeData)+"<br />"},lineNumbersCount:function(){return this.codeData.split(/\r\n|\n/).length}},mounted:function(){this._recordCurrentState(),this.styleLineNumbers()},methods:{setLineNumbersHeight:function(){this.lineNumbersHeight=getComputedStyle(this.$refs.pre).height},styleLineNumbers:function(){if(this.lineNumbers&&this.autoStyleLineNumbers){var e=this.$refs.pre,t=this.$el.querySelector(".prism-editor__line-numbers"),a=window.getComputedStyle(e);this.$nextTick(function(){var o="border-top-left-radius",i="border-bottom-left-radius";if(t){t.style[o]=a[o],t.style[i]=a[i],e.style[o]="0",e.style[i]="0";["background-color","margin-top","padding-top","font-family","font-size","line-height"].forEach(function(e){t.style[e]=a[e]}),t.style["margin-bottom"]="-"+a["padding-top"]}})}},_recordCurrentState:function(){var e=this.$refs.textarea;if(e){var t=e.value,a=e.selectionStart,o=e.selectionEnd;this._recordChange({value:t,selectionStart:a,selectionEnd:o})}},_getLines:function(e,t){return e.substring(0,t).split("\n")},_applyEdits:function(e){var t=this.$refs.textarea,a=this.history.stack[this.history.offset];a&&t&&(this.history.stack[this.history.offset]=ke({},a,{selectionStart:t.selectionStart,selectionEnd:t.selectionEnd})),this._recordChange(e),this._updateInput(e)},_recordChange:function(e,t){void 0===t&&(t=!1);var a=this.history,o=a.stack,i=a.offset;if(o.length&&i>-1){this.history.stack=o.slice(0,i+1);var n=this.history.stack.length;if(n>100){var l=n-100;this.history.stack=o.slice(l,n),this.history.offset=Math.max(this.history.offset-l,0)}}var r=Date.now();if(t){var s=this.history.stack[this.history.offset];if(s&&r-s.timestamp<3e3){var c,d,m=/[^a-z0-9]([a-z0-9]+)$/i,u=null===(c=this._getLines(s.value,s.selectionStart).pop())||void 0===c?void 0:c.match(m),f=null===(d=this._getLines(e.value,e.selectionStart).pop())||void 0===d?void 0:d.match(m);if(u&&f&&f[1].startsWith(u[1]))return void(this.history.stack[this.history.offset]=ke({},e,{timestamp:r}))}}this.history.stack.push(ke({},e,{timestamp:r})),this.history.offset++},_updateInput:function(e){var t=this.$refs.textarea;t&&(t.value=e.value,t.selectionStart=e.selectionStart,t.selectionEnd=e.selectionEnd,this.$emit("update:modelValue",e.value))},handleChange:function(e){var t=e.target,a=t.value,o=t.selectionStart,i=t.selectionEnd;this._recordChange({value:a,selectionStart:o,selectionEnd:i},!0),this.$emit("update:modelValue",a)},_undoEdit:function(){var e=this.history,t=e.stack,a=e.offset,o=t[a-1];o&&(this._updateInput(o),this.history.offset=Math.max(a-1,0))},_redoEdit:function(){var e=this.history,t=e.stack,a=e.offset,o=t[a+1];o&&(this._updateInput(o),this.history.offset=Math.min(a+1,t.length-1))},handleKeyDown:function(e){var t=this.tabSize,a=this.insertSpaces,o=this.ignoreTabKey;if(this.$emit("keydown",e),!e.defaultPrevented){27===e.keyCode&&(e.target.blur(),this.$emit("blur",e));var i=e.target,n=i.value,l=i.selectionStart,r=i.selectionEnd,s=(a?" ":"\t").repeat(t);if(9===e.keyCode&&!o&&this.capture)if(e.preventDefault(),e.shiftKey){var c=this._getLines(n,l),d=c.length-1,m=this._getLines(n,r).length-1,u=n.split("\n").map(function(e,t){return t>=d&&t<=m&&e.startsWith(s)?e.substring(s.length):e}).join("\n");if(n!==u){var f=c[d];this._applyEdits({value:u,selectionStart:f.startsWith(s)?l-s.length:l,selectionEnd:r-(n.length-u.length)})}}else if(l!==r){var p=this._getLines(n,l),h=p.length-1,g=this._getLines(n,r).length-1,y=p[h];this._applyEdits({value:n.split("\n").map(function(e,t){return t>=h&&t<=g?s+e:e}).join("\n"),selectionStart:/\S/.test(y)?l+s.length:l,selectionEnd:r+s.length*(g-h+1)})}else{var v=l+s.length;this._applyEdits({value:n.substring(0,l)+s+n.substring(r),selectionStart:v,selectionEnd:v})}else if(8===e.keyCode){var b=l!==r;if(n.substring(0,l).endsWith(s)&&!b){e.preventDefault();var k=l-s.length;this._applyEdits({value:n.substring(0,l-s.length)+n.substring(r),selectionStart:k,selectionEnd:k})}}else if(13===e.keyCode){if(l===r){var _=this._getLines(n,l).pop(),w=null==_?void 0:_.match(/^\s+/);if(w&&w[0]){e.preventDefault();var C="\n"+w[0],S=l+C.length;this._applyEdits({value:n.substring(0,l)+C+n.substring(r),selectionStart:S,selectionEnd:S})}}}else if(57===e.keyCode||219===e.keyCode||222===e.keyCode||192===e.keyCode){var E;57===e.keyCode&&e.shiftKey?E=["(",")"]:219===e.keyCode?E=e.shiftKey?["{","}"]:["[","]"]:222===e.keyCode?E=e.shiftKey?['"','"']:["'","'"]:192!==e.keyCode||e.shiftKey||(E=["`","`"]),l!==r&&E&&(e.preventDefault(),this._applyEdits({value:n.substring(0,l)+E[0]+n.substring(l,r)+E[1]+n.substring(r),selectionStart:l,selectionEnd:r+2}))}else!(Ce?e.metaKey&&90===e.keyCode:e.ctrlKey&&90===e.keyCode)||e.shiftKey||e.altKey?(Ce?e.metaKey&&90===e.keyCode&&e.shiftKey:we?e.ctrlKey&&89===e.keyCode:e.ctrlKey&&90===e.keyCode&&e.shiftKey)&&!e.altKey?(e.preventDefault(),this._redoEdit()):77!==e.keyCode||!e.ctrlKey||Ce&&!e.shiftKey||(e.preventDefault(),this.capture=!this.capture):(e.preventDefault(),this._undoEdit())}}},render:function(){var t=this,a=e.h("div",{class:"prism-editor__line-width-calc",style:"height: 0px; visibility: hidden; pointer-events: none;"},"999"),o=e.h("div",{class:"prism-editor__line-numbers",style:{"min-height":this.lineNumbersHeight},"aria-hidden":"true"},[a,Array.from(Array(this.lineNumbersCount).keys()).map(function(t,a){return e.h("div",{class:"prism-editor__line-number token comment"},""+ ++a)})]),i=e.h("textarea",{ref:"textarea",onInput:this.handleChange,onKeydown:this.handleKeyDown,onClick:function(e){t.$emit("click",e)},onKeyup:function(e){t.$emit("keyup",e)},onFocus:function(e){t.$emit("focus",e)},onBlur:function(e){t.$emit("blur",e)},class:{"prism-editor__textarea":!0,"prism-editor__textarea--empty":this.isEmpty},spellCheck:"false",autocapitalize:"off",autocomplete:"off",autocorrect:"off","data-gramm":"false",placeholder:this.placeholder,"data-testid":"textarea",readonly:this.readonly,value:this.codeData}),n=e.h("pre",{ref:"pre",class:"prism-editor__editor","data-testid":"preview",innerHTML:this.content}),l=e.h("div",{class:"prism-editor__container"},[i,n]);return e.h("div",{class:"prism-editor-wrapper"},[this.lineNumbers&&o,l])}}),Ee={exports:{}},Ne={},xe={exports:{}},Be={},Ve={};function Ae(){if(_e)return Ve;function e(e){this.__parent=e,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 t(e,t){this.__cache=[""],this.__indent_size=e.indent_size,this.__indent_string=e.indent_char,e.indent_with_tabs||(this.__indent_string=new Array(e.indent_size+1).join(e.indent_char)),t=t||"",e.indent_level>0&&(t=new Array(e.indent_level+1).join(this.__indent_string)),this.__base_string=t,this.__base_string_length=t.length}function a(a,o){this.__indent_cache=new t(a,o),this.raw=!1,this._end_with_newline=a.end_with_newline,this.indent_size=a.indent_size,this.wrap_line_length=a.wrap_line_length,this.indent_empty_lines=a.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new e(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}return _e=1,e.prototype.clone_empty=function(){var t=new e(this.__parent);return t.set_indent(this.__indent_count,this.__alignment_count),t},e.prototype.item=function(e){return e<0?this.__items[this.__items.length+e]:this.__items[e]},e.prototype.has_match=function(e){for(var t=this.__items.length-1;t>=0;t--)if(this.__items[t].match(e))return!0;return!1},e.prototype.set_indent=function(e,t){this.is_empty()&&(this.__indent_count=e||0,this.__alignment_count=t||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},e.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},e.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},e.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var e=this.__parent.current_line;return e.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),e.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),e.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count," "===e.__items[0]&&(e.__items.splice(0,1),e.__character_count-=1),!0}return!1},e.prototype.is_empty=function(){return 0===this.__items.length},e.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},e.prototype.push=function(e){this.__items.push(e);var t=e.lastIndexOf("\n");-1!==t?this.__character_count=e.length-t:this.__character_count+=e.length},e.prototype.pop=function(){var e=null;return this.is_empty()||(e=this.__items.pop(),this.__character_count-=e.length),e},e.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},e.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},e.prototype.trim=function(){for(;" "===this.last();)this.__items.pop(),this.__character_count-=1},e.prototype.toString=function(){var e="";return this.is_empty()?this.__parent.indent_empty_lines&&(e=this.__parent.get_indent_string(this.__indent_count)):(e=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),e+=this.__items.join("")),e},t.prototype.get_indent_size=function(e,t){var a=this.__base_string_length;return t=t||0,e<0&&(a=0),a+=e*this.__indent_size,a+=t},t.prototype.get_indent_string=function(e,t){var a=this.__base_string;return t=t||0,e<0&&(e=0,a=""),t+=e*this.__indent_size,this.__ensure_cache(t),a+=this.__cache[t]},t.prototype.__ensure_cache=function(e){for(;e>=this.__cache.length;)this.__add_column()},t.prototype.__add_column=function(){var e=this.__cache.length,t=0,a="";this.__indent_size&&e>=this.__indent_size&&(e-=(t=Math.floor(e/this.__indent_size))*this.__indent_size,a=new Array(t+1).join(this.__indent_string)),e&&(a+=new Array(e+1).join(" ")),this.__cache.push(a)},a.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},a.prototype.get_line_number=function(){return this.__lines.length},a.prototype.get_indent_string=function(e,t){return this.__indent_cache.get_indent_string(e,t)},a.prototype.get_indent_size=function(e,t){return this.__indent_cache.get_indent_size(e,t)},a.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},a.prototype.add_new_line=function(e){return!(this.is_empty()||!e&&this.just_added_newline())&&(this.raw||this.__add_outputline(),!0)},a.prototype.get_code=function(e){this.trim(!0);var t=this.current_line.pop();t&&("\n"===t[t.length-1]&&(t=t.replace(/\n+$/g,"")),this.current_line.push(t)),this._end_with_newline&&this.__add_outputline();var a=this.__lines.join("\n");return"\n"!==e&&(a=a.replace(/[\n]/g,e)),a},a.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},a.prototype.set_indent=function(e,t){return e=e||0,t=t||0,this.next_line.set_indent(e,t),this.__lines.length>1?(this.current_line.set_indent(e,t),!0):(this.current_line.set_indent(),!1)},a.prototype.add_raw_token=function(e){for(var t=0;t<e.newlines;t++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(e.whitespace_before),this.current_line.push(e.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},a.prototype.add_token=function(e){this.__add_space_before_token(),this.current_line.push(e),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},a.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(" "))},a.prototype.remove_indent=function(e){for(var t=this.__lines.length;e<t;)this.__lines[e]._remove_indent(),e++;this.current_line._remove_wrap_indent()},a.prototype.trim=function(e){for(e=void 0!==e&&e,this.current_line.trim();e&&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},a.prototype.just_added_newline=function(){return this.current_line.is_empty()},a.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},a.prototype.ensure_empty_line_above=function(t,a){for(var o=this.__lines.length-2;o>=0;){var i=this.__lines[o];if(i.is_empty())break;if(0!==i.item(0).indexOf(t)&&i.item(-1)!==a){this.__lines.splice(o+1,0,new e(this)),this.previous_line=this.__lines[this.__lines.length-2];break}o--}},Ve.Output=a,Ve}var Re,Me={};function Te(){if(Re)return Me;return Re=1,Me.Token=function(e,t,a,o){this.type=e,this.text=t,this.comments_before=null,this.newlines=a||0,this.whitespace_before=o||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null},Me}var Ie,$e={};function De(){return Ie||(Ie=1,function(e){var t="\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a",a="\\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",o="\\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",i="\\\\u[0-9a-fA-F]{4}|\\\\u\\{[0-9a-fA-F]+\\}",n="(?:"+i+"|[\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a"+a+"])",l="(?:"+i+"|["+t+a+o+"])*";e.identifier=new RegExp(n+l,"g"),e.identifierStart=new RegExp(n),e.identifierMatch=new RegExp("(?:"+i+"|["+t+a+o+"])+"),e.newline=/[\n\r\u2028\u2029]/,e.lineBreak=new RegExp("\r\n|"+e.newline.source),e.allLineBreaks=new RegExp(e.lineBreak.source,"g")}($e)),$e}var ze,Oe,Pe={},qe={};function Le(){if(ze)return qe;function e(e,a){this.raw_options=t(e,a),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","angular","django","erb","handlebars","php","smarty"],["auto"])}function t(e,t){var o,i={};for(o in e=a(e))o!==t&&(i[o]=e[o]);if(t&&e[t])for(o in e[t])i[o]=e[t][o];return i}function a(e){var t,a={};for(t in e){a[t.replace(/-/g,"_")]=e[t]}return a}return ze=1,e.prototype._get_array=function(e,t){var a=this.raw_options[e],o=t||[];return"object"==typeof a?null!==a&&"function"==typeof a.concat&&(o=a.concat()):"string"==typeof a&&(o=a.split(/[^a-zA-Z0-9_\/\-]+/)),o},e.prototype._get_boolean=function(e,t){var a=this.raw_options[e];return void 0===a?!!t:!!a},e.prototype._get_characters=function(e,t){var a=this.raw_options[e],o=t||"";return"string"==typeof a&&(o=a.replace(/\\r/,"\r").replace(/\\n/,"\n").replace(/\\t/,"\t")),o},e.prototype._get_number=function(e,t){var a=this.raw_options[e];t=parseInt(t,10),isNaN(t)&&(t=0);var o=parseInt(a,10);return isNaN(o)&&(o=t),o},e.prototype._get_selection=function(e,t,a){var o=this._get_selection_list(e,t,a);if(1!==o.length)throw new Error("Invalid Option Value: The option '"+e+"' can only be one of the following values:\n"+t+"\nYou passed in: '"+this.raw_options[e]+"'");return o[0]},e.prototype._get_selection_list=function(e,t,a){if(!t||0===t.length)throw new Error("Selection list cannot be empty.");if(a=a||[t[0]],!this._is_valid_selection(a,t))throw new Error("Invalid Default Value!");var o=this._get_array(e,a);if(!this._is_valid_selection(o,t))throw new Error("Invalid Option Value: The option '"+e+"' can contain only the following values:\n"+t+"\nYou passed in: '"+this.raw_options[e]+"'");return o},e.prototype._is_valid_selection=function(e,t){return e.length&&t.length&&!e.some(function(e){return-1===t.indexOf(e)})},qe.Options=e,qe.normalizeOpts=a,qe.mergeOpts=t,qe}function Fe(){if(Oe)return Pe;Oe=1;var e=Le().Options,t=["before-newline","after-newline","preserve-newline"];function a(a){e.call(this,a,"js");var o=this.raw_options.brace_style||null;"expand-strict"===o?this.raw_options.brace_style="expand":"collapse-preserve-inline"===o?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",t),this.test_output_raw=this._get_boolean("test_output_raw"),this.jslint_happy&&(this.space_after_anon_function=!0)}return a.prototype=new e,Pe.Options=a,Pe}var je,Ue={},Ke={};function Ge(){if(je)return Ke;je=1;var e=RegExp.prototype.hasOwnProperty("sticky");function t(e){this.__input=e||"",this.__input_length=this.__input.length,this.__position=0}return t.prototype.restart=function(){this.__position=0},t.prototype.back=function(){this.__position>0&&(this.__position-=1)},t.prototype.hasNext=function(){return this.__position<this.__input_length},t.prototype.next=function(){var e=null;return this.hasNext()&&(e=this.__input.charAt(this.__position),this.__position+=1),e},t.prototype.peek=function(e){var t=null;return e=e||0,(e+=this.__position)>=0&&e<this.__input_length&&(t=this.__input.charAt(e)),t},t.prototype.__match=function(t,a){t.lastIndex=a;var o=t.exec(this.__input);return!o||e&&t.sticky||o.index!==a&&(o=null),o},t.prototype.test=function(e,t){return t=t||0,(t+=this.__position)>=0&&t<this.__input_length&&!!this.__match(e,t)},t.prototype.testChar=function(e,t){var a=this.peek(t);return e.lastIndex=0,null!==a&&e.test(a)},t.prototype.match=function(e){var t=this.__match(e,this.__position);return t?this.__position+=t[0].length:t=null,t},t.prototype.read=function(e,t,a){var o,i="";return e&&(o=this.match(e))&&(i+=o[0]),!t||!o&&e||(i+=this.readUntil(t,a)),i},t.prototype.readUntil=function(e,t){var a,o=this.__position;e.lastIndex=this.__position;var i=e.exec(this.__input);return i?(o=i.index,t&&(o+=i[0].length)):o=this.__input_length,a=this.__input.substring(this.__position,o),this.__position=o,a},t.prototype.readUntilAfter=function(e){return this.readUntil(e,!0)},t.prototype.get_regexp=function(t,a){var o=null,i="g";return a&&e&&(i="y"),"string"==typeof t&&""!==t?o=new RegExp(t,i):t&&(o=new RegExp(t.source,i)),o},t.prototype.get_literal_regexp=function(e){return RegExp(e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},t.prototype.peekUntilAfter=function(e){var t=this.__position,a=this.readUntilAfter(e);return this.__position=t,a},t.prototype.lookBack=function(e){var t=this.__position-1;return t>=e.length&&this.__input.substring(t-e.length,t).toLowerCase()===e},Ke.InputScanner=t,Ke}var He,We={},Je={};var Ze,Ye,Xe,Qe={},et={};function tt(){if(Ze)return et;function e(e,t){this._input=e,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,t&&(this._starting_pattern=this._input.get_regexp(t._starting_pattern,!0),this._match_pattern=this._input.get_regexp(t._match_pattern,!0),this._until_pattern=this._input.get_regexp(t._until_pattern),this._until_after=t._until_after)}return Ze=1,e.prototype.read=function(){var e=this._input.read(this._starting_pattern);return this._starting_pattern&&!e||(e+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),e},e.prototype.read_match=function(){return this._input.match(this._match_pattern)},e.prototype.until_after=function(e){var t=this._create();return t._until_after=!0,t._until_pattern=this._input.get_regexp(e),t._update(),t},e.prototype.until=function(e){var t=this._create();return t._until_after=!1,t._until_pattern=this._input.get_regexp(e),t._update(),t},e.prototype.starting_with=function(e){var t=this._create();return t._starting_pattern=this._input.get_regexp(e,!0),t._update(),t},e.prototype.matching=function(e){var t=this._create();return t._match_pattern=this._input.get_regexp(e,!0),t._update(),t},e.prototype._create=function(){return new e(this._input,this)},e.prototype._update=function(){},et.Pattern=e,et}function at(){if(Xe)return We;Xe=1;var e=Ge().InputScanner,t=Te().Token,a=function(){if(He)return Je;function e(e){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=e}return He=1,e.prototype.restart=function(){this.__position=0},e.prototype.isEmpty=function(){return 0===this.__tokens_length},e.prototype.hasNext=function(){return this.__position<this.__tokens_length},e.prototype.next=function(){var e=null;return this.hasNext()&&(e=this.__tokens[this.__position],this.__position+=1),e},e.prototype.peek=function(e){var t=null;return e=e||0,(e+=this.__position)>=0&&e<this.__tokens_length&&(t=this.__tokens[e]),t},e.prototype.add=function(e){this.__parent_token&&(e.parent=this.__parent_token),this.__tokens.push(e),this.__tokens_length+=1},Je.TokenStream=e,Je}().TokenStream,o=function(){if(Ye)return Qe;Ye=1;var e=tt().Pattern;function t(t,a){e.call(this,t,a),a?this._line_regexp=this._input.get_regexp(a._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}return t.prototype=new e,t.prototype.__set_whitespace_patterns=function(e,t){e+="\\t ",t+="\\n\\r",this._match_pattern=this._input.get_regexp("["+e+t+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+t+"]")},t.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var e=this._input.read(this._match_pattern);if(" "===e)this.whitespace_before_token=" ";else if(e){var t=this.__split(this._newline_regexp,e);this.newline_count=t.length-1,this.whitespace_before_token=t[this.newline_count]}return e},t.prototype.matching=function(e,t){var a=this._create();return a.__set_whitespace_patterns(e,t),a._update(),a},t.prototype._create=function(){return new t(this._input,this)},t.prototype.__split=function(e,t){e.lastIndex=0;for(var a=0,o=[],i=e.exec(t);i;)o.push(t.substring(a,i.index)),a=i.index+i[0].length,i=e.exec(t);return a<t.length?o.push(t.substring(a,t.length)):o.push(""),o},Qe.WhitespacePattern=t,Qe}().WhitespacePattern,i={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},n=function(t,a){this._input=new e(t),this._options=a||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new o(this._input)};return n.prototype.tokenize=function(){var e;this._input.restart(),this.__tokens=new a,this._reset();for(var o=new t(i.START,""),n=null,l=[],r=new a;o.type!==i.EOF;){for(e=this._get_next_token(o,n);this._is_comment(e);)r.add(e),e=this._get_next_token(o,n);r.isEmpty()||(e.comments_before=r,r=new a),e.parent=n,this._is_opening(e)?(l.push(n),n=e):n&&this._is_closing(e,n)&&(e.opened=n,n.closed=e,n=l.pop(),e.parent=n),e.previous=o,o.next=e,this.__tokens.add(e),o=e}return this.__tokens},n.prototype._is_first_token=function(){return this.__tokens.isEmpty()},n.prototype._reset=function(){},n.prototype._get_next_token=function(e,t){this._readWhitespace();var a=this._input.read(/.+/g);return a?this._create_token(i.RAW,a):this._create_token(i.EOF,"")},n.prototype._is_comment=function(e){return!1},n.prototype._is_opening=function(e){return!1},n.prototype._is_closing=function(e,t){return!1},n.prototype._create_token=function(e,a){return new t(e,a,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token)},n.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},We.Tokenizer=n,We.TOKEN=i,We}var ot,it={};function nt(){if(ot)return it;function e(e,t){e="string"==typeof e?e:e.source,t="string"==typeof t?t:t.source,this.__directives_block_pattern=new RegExp(e+/ beautify( \w+[:]\w+)+ /.source+t,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(e+/\sbeautify\signore:end\s/.source+t,"g")}return ot=1,e.prototype.get_directives=function(e){if(!e.match(this.__directives_block_pattern))return null;var t={};this.__directive_pattern.lastIndex=0;for(var a=this.__directive_pattern.exec(e);a;)t[a[1]]=a[2],a=this.__directive_pattern.exec(e);return t},e.prototype.readIgnored=function(e){return e.readUntilAfter(this.__directives_end_ignore_pattern)},it.Directives=e,it}var lt,rt,st,ct,dt={};function mt(){if(lt)return dt;lt=1;var e=tt().Pattern,t={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1,angular:!1};function a(a,o){e.call(this,a,o),this.__template_pattern=null,this._disabled=Object.assign({},t),this._excluded=Object.assign({},t),o&&(this.__template_pattern=this._input.get_regexp(o.__template_pattern),this._excluded=Object.assign(this._excluded,o._excluded),this._disabled=Object.assign(this._disabled,o._disabled));var i=new e(a);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}/)}}return a.prototype=new e,a.prototype._create=function(){return new a(this._input,this)},a.prototype._update=function(){this.__set_templated_pattern()},a.prototype.disable=function(e){var t=this._create();return t._disabled[e]=!0,t._update(),t},a.prototype.read_options=function(e){var a=this._create();for(var o in t)a._disabled[o]=-1===e.templating.indexOf(o);return a._update(),a},a.prototype.exclude=function(e){var t=this._create();return t._excluded[e]=!0,t._update(),t},a.prototype.read=function(){var e="";e=this._match_pattern?this._input.read(this._starting_pattern):this._input.read(this._starting_pattern,this.__template_pattern);for(var t=this._read_template();t;)this._match_pattern?t+=this._input.read(this._match_pattern):t+=this._input.readUntil(this.__template_pattern),e+=t,t=this._read_template();return this._until_after&&(e+=this._input.readUntilAfter(this._until_pattern)),e},a.prototype.__set_templated_pattern=function(){var e=[];this._disabled.php||e.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||e.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.angular||e.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||e.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(e.push(this.__patterns.django._starting_pattern.source),e.push(this.__patterns.django_value._starting_pattern.source),e.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||e.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&e.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+e.join("|")+")")},a.prototype._read_template=function(){var e="",t=this._input.peek();if("<"===t){var a=this._input.peek(1);this._disabled.php||this._excluded.php||"?"!==a||(e=e||this.__patterns.php.read()),this._disabled.erb||this._excluded.erb||"%"!==a||(e=e||this.__patterns.erb.read())}else"{"===t&&(this._disabled.handlebars||this._excluded.handlebars||(e=(e=(e=e||this.__patterns.handlebars_comment.read())||this.__patterns.handlebars_unescaped.read())||this.__patterns.handlebars.read()),this._disabled.django||(this._excluded.django||this._excluded.handlebars||(e=e||this.__patterns.django_value.read()),this._excluded.django||(e=(e=e||this.__patterns.django_comment.read())||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(e=(e=(e=e||this.__patterns.smarty_comment.read())||this.__patterns.smarty_literal.read())||this.__patterns.smarty.read()));return e},dt.TemplatablePattern=a,dt}function ut(){if(rt)return Ue;rt=1;var e=Ge().InputScanner,t=at().Tokenizer,a=at().TOKEN,o=nt().Directives,i=De(),n=tt().Pattern,l=mt().TemplatablePattern;function r(e,t){return-1!==t.indexOf(e)}var s={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:a.START,RAW:a.RAW,EOF:a.EOF},c=new o(/\/\*/,/\*\//),d=/0[xX][0123456789abcdefABCDEF_]*n?|0[oO][01234567_]*n?|0[bB][01_]*n?|\d[\d_]*n|(?:\.\d[\d_]*|\d[\d_]*\.?[\d_]*)(?:[eE][+-]?[\d_]+)?/,m=/[0-9]/,u=/[^\d\.]/,f=">>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "),p=">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";p=(p="\\?\\.(?!\\d) "+(p=p.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"))).replace(/ /g,"|");var h,g=new RegExp(p),y="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),v=y.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as","class","extends"]),b=new RegExp("^(?:"+v.join("|")+")$"),k=function(e,a){t.call(this,e,a),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var o=new n(this._input),r=new l(this._input).read_options(this._options);this.__patterns={template:r,identifier:r.starting_with(i.identifier).matching(i.identifierMatch),number:o.matching(d),punct:o.matching(g),comment:o.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:o.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:o.matching(/<!--/),html_comment_end:o.matching(/-->/),include:o.starting_with(/#include/).until_after(i.lineBreak),shebang:o.starting_with(/#!/).until_after(i.lineBreak),xml:o.matching(/[\s\S]*?<(\/?)([-a-zA-Z:0-9_.]+|{[^}]+?}|!\[CDATA\[[^\]]*?\]\]|)(\s*{[^}]+?}|\s+[-a-zA-Z:0-9_.]+|\s+[-a-zA-Z:0-9_.]+\s*=\s*('[^']*'|"[^"]*"|{([^{}]|{[^}]+?})+?}))*\s*(\/?)\s*>/),single_quote:r.until(/['\\\n\r\u2028\u2029]/),double_quote:r.until(/["\\\n\r\u2028\u2029]/),template_text:r.until(/[`\\$]/),template_expression:r.until(/[`}\\]/)}};return(k.prototype=new t)._is_comment=function(e){return e.type===s.COMMENT||e.type===s.BLOCK_COMMENT||e.type===s.UNKNOWN},k.prototype._is_opening=function(e){return e.type===s.START_BLOCK||e.type===s.START_EXPR},k.prototype._is_closing=function(e,t){return(e.type===s.END_BLOCK||e.type===s.END_EXPR)&&t&&("]"===e.text&&"["===t.text||")"===e.text&&"("===t.text||"}"===e.text&&"{"===t.text)},k.prototype._reset=function(){h=!1},k.prototype._get_next_token=function(e,t){var a=null;this._readWhitespace();var o=this._input.peek();return null===o?this._create_token(s.EOF,""):a=(a=(a=(a=(a=(a=(a=(a=(a=(a=a||this._read_non_javascript(o))||this._read_string(o))||this._read_pair(o,this._input.peek(1)))||this._read_word(e))||this._read_singles(o))||this._read_comment(o))||this._read_regexp(o,e))||this._read_xml(o,e))||this._read_punctuation())||this._create_token(s.UNKNOWN,this._input.next())},k.prototype._read_word=function(e){var t;return""!==(t=this.__patterns.identifier.read())?(t=t.replace(i.allLineBreaks,"\n"),e.type!==s.DOT&&(e.type!==s.RESERVED||"set"!==e.text&&"get"!==e.text)&&b.test(t)?"in"!==t&&"of"!==t||e.type!==s.WORD&&e.type!==s.STRING?this._create_token(s.RESERVED,t):this._create_token(s.OPERATOR,t):this._create_token(s.WORD,t)):""!==(t=this.__patterns.number.read())?this._create_token(s.WORD,t):void 0},k.prototype._read_singles=function(e){var t=null;return"("===e||"["===e?t=this._create_token(s.START_EXPR,e):")"===e||"]"===e?t=this._create_token(s.END_EXPR,e):"{"===e?t=this._create_token(s.START_BLOCK,e):"}"===e?t=this._create_token(s.END_BLOCK,e):";"===e?t=this._create_token(s.SEMICOLON,e):"."===e&&u.test(this._input.peek(1))?t=this._create_token(s.DOT,e):","===e&&(t=this._create_token(s.COMMA,e)),t&&this._input.next(),t},k.prototype._read_pair=function(e,t){var a=null;return"#"===e&&"{"===t&&(a=this._create_token(s.START_BLOCK,e+t)),a&&(this._input.next(),this._input.next()),a},k.prototype._read_punctuation=function(){var e=this.__patterns.punct.read();if(""!==e)return"="===e?this._create_token(s.EQUALS,e):"?."===e?this._create_token(s.DOT,e):this._create_token(s.OPERATOR,e)},k.prototype._read_non_javascript=function(e){var t="";if("#"===e){if(this._is_first_token()&&(t=this.__patterns.shebang.read()))return this._create_token(s.UNKNOWN,t.trim()+"\n");if(t=this.__patterns.include.read())return this._create_token(s.UNKNOWN,t.trim()+"\n");e=this._input.next();var a="#";if(this._input.hasNext()&&this._input.testChar(m)){do{a+=e=this._input.next()}while(this._input.hasNext()&&"#"!==e&&"="!==e);return"#"===e||("["===this._input.peek()&&"]"===this._input.peek(1)?(a+="[]",this._input.next(),this._input.next()):"{"===this._input.peek()&&"}"===this._input.peek(1)&&(a+="{}",this._input.next(),this._input.next())),this._create_token(s.WORD,a)}this._input.back()}else if("<"===e&&this._is_first_token()){if(t=this.__patterns.html_comment_start.read()){for(;this._input.hasNext()&&!this._input.testChar(i.newline);)t+=this._input.next();return h=!0,this._create_token(s.COMMENT,t)}}else if(h&&"-"===e&&(t=this.__patterns.html_comment_end.read()))return h=!1,this._create_token(s.COMMENT,t);return null},k.prototype._read_comment=function(e){var t=null;if("/"===e){var a="";if("*"===this._input.peek(1)){a=this.__patterns.block_comment.read();var o=c.get_directives(a);o&&"start"===o.ignore&&(a+=c.readIgnored(this._input)),a=a.replace(i.allLineBreaks,"\n"),(t=this._create_token(s.BLOCK_COMMENT,a)).directives=o}else"/"===this._input.peek(1)&&(a=this.__patterns.comment.read(),t=this._create_token(s.COMMENT,a))}return t},k.prototype._read_string=function(t){if("`"===t||"'"===t||'"'===t){var a=this._input.next();return this.has_char_escapes=!1,a+="`"===t?this._read_string_recursive("`",!0,"${"):this._read_string_recursive(t),this.has_char_escapes&&this._options.unescape_strings&&(a=function(t){var a="",o=0,i=new e(t),n=null;for(;i.hasNext();)if((n=i.match(/([\s]|[^\\]|\\\\)+/g))&&(a+=n[0]),"\\"===i.peek()){if(i.next(),"x"===i.peek())n=i.match(/x([0-9A-Fa-f]{2})/g);else{if("u"!==i.peek()){a+="\\",i.hasNext()&&(a+=i.next());continue}(n=i.match(/u([0-9A-Fa-f]{4})/g))||(n=i.match(/u\{([0-9A-Fa-f]+)\}/g))}if(!n)return t;if((o=parseInt(n[1],16))>126&&o<=255&&0===n[0].indexOf("x"))return t;a+=o>=0&&o<32||o>1114111?"\\"+n[0]:34===o||39===o||92===o?"\\"+String.fromCharCode(o):String.fromCharCode(o)}return a}(a)),this._input.peek()===t&&(a+=this._input.next()),a=a.replace(i.allLineBreaks,"\n"),this._create_token(s.STRING,a)}return null},k.prototype._allow_regexp_or_xml=function(e){return e.type===s.RESERVED&&r(e.text,["return","case","throw","else","do","typeof","yield"])||e.type===s.END_EXPR&&")"===e.text&&e.opened.previous.type===s.RESERVED&&r(e.opened.previous.text,["if","while","for"])||r(e.type,[s.COMMENT,s.START_EXPR,s.START_BLOCK,s.START,s.END_BLOCK,s.OPERATOR,s.EQUALS,s.EOF,s.SEMICOLON,s.COMMA])},k.prototype._read_regexp=function(e,t){if("/"===e&&this._allow_regexp_or_xml(t)){for(var a=this._input.next(),o=!1,n=!1;this._input.hasNext()&&(o||n||this._input.peek()!==e)&&!this._input.testChar(i.newline);)a+=this._input.peek(),o?o=!1:(o="\\"===this._input.peek(),"["===this._input.peek()?n=!0:"]"===this._input.peek()&&(n=!1)),this._input.next();return this._input.peek()===e&&(a+=this._input.next(),a+=this._input.read(i.identifier)),this._create_token(s.STRING,a)}return null},k.prototype._read_xml=function(e,t){if(this._options.e4x&&"<"===e&&this._allow_regexp_or_xml(t)){var a="",o=this.__patterns.xml.read_match();if(o){for(var n=o[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),l=0===n.indexOf("{"),r=0;o;){var c=!!o[1],d=o[2];if(!(!!o[o.length-1]||"![CDATA["===d.slice(0,8))&&(d===n||l&&d.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(c?--r:++r),a+=o[0],r<=0)break;o=this.__patterns.xml.read_match()}return o||(a+=this._input.match(/[\s\S]*/g)[0]),a=a.replace(i.allLineBreaks,"\n"),this._create_token(s.STRING,a)}}return null},k.prototype._read_string_recursive=function(e,t,a){var o,n;"'"===e?n=this.__patterns.single_quote:'"'===e?n=this.__patterns.double_quote:"`"===e?n=this.__patterns.template_text:"}"===e&&(n=this.__patterns.template_expression);for(var l=n.read(),r="";this._input.hasNext();){if((r=this._input.next())===e||!t&&i.newline.test(r)){this._input.back();break}"\\"===r&&this._input.hasNext()?("x"===(o=this._input.peek())||"u"===o?this.has_char_escapes=!0:"\r"===o&&"\n"===this._input.peek(1)&&this._input.next(),r+=this._input.next()):a&&("${"===a&&"$"===r&&"{"===this._input.peek()&&(r+=this._input.next()),a===r&&(r+="`"===e?this._read_string_recursive("}",t,"`"):this._read_string_recursive("`",t,"${"),this._input.hasNext()&&(r+=this._input.next()))),l+=r+=n.read()}return l},Ue.Tokenizer=k,Ue.TOKEN=s,Ue.positionable_operators=f.slice(),Ue.line_starters=y.slice(),Ue}function ft(){if(st)return Be;st=1;var e=Ae().Output,t=Te().Token,a=De(),o=Fe().Options,i=ut().Tokenizer,n=ut().line_starters,l=ut().positionable_operators,r=ut().TOKEN;function s(e,t){return-1!==t.indexOf(e)}function c(e){return e.replace(/^\s+/g,"")}function d(e,t){return e&&e.type===r.RESERVED&&e.text===t}function m(e,t){return e&&e.type===r.RESERVED&&s(e.text,t)}var u=["case","return","do","if","throw","else","await","break","continue","async"],f=function(e){for(var t={},a=0;a<e.length;a++)t[e[a].replace(/-/g,"_")]=e[a];return t}(["before-newline","after-newline","preserve-newline"]),p=[f.before_newline,f.preserve_newline],h="BlockStatement",g="Statement",y="ObjectLiteral",v="ArrayLiteral",b="ForInitializer",k="Conditional",_="Expression";function w(e,t){t.multiline_frame||t.mode===b||t.mode===k||e.remove_indent(t.start_line_index)}function C(e){return e===v}function S(e){return s(e,[_,b,k])}function E(e,t){t=t||{},this._source_text=e||"",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 o(t)}E.prototype.create_flags=function(e,a){var o=0;return e&&(o=e.indentation_level,!this._output.just_added_newline()&&e.line_indent_level>o&&(o=e.line_indent_level)),{mode:a,parent:e,last_token:e?e.last_token:new t(r.START_BLOCK,""),last_word:e?e.last_word:"",declaration_statement:!1,declaration_assignment:!1,multiline_frame:!1,inline_frame:!1,if_block:!1,else_block:!1,class_start_block:!1,do_block:!1,do_while:!1,import_block:!1,in_case_statement:!1,in_case:!1,case_body:!1,case_block:!1,indentation_level:o,alignment:0,line_indent_level:e?e.line_indent_level:o,start_line_index:this._output.get_line_number(),ternary_depth:0}},E.prototype._reset=function(t){var a=t.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new e(this._options,a),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(h);var o=new i(t,this._options);return this._tokens=o.tokenize(),t},E.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var e=this._reset(this._source_text),t=this._options.eol;"auto"===this._options.eol&&(t="\n",e&&a.lineBreak.test(e||"")&&(t=e.match(a.lineBreak)[0]));for(var o=this._tokens.next();o;)this.handle_token(o),this._last_last_text=this._flags.last_token.text,this._flags.last_token=o,o=this._tokens.next();return this._output.get_code(t)},E.prototype.handle_token=function(e,t){e.type===r.START_EXPR?this.handle_start_expr(e):e.type===r.END_EXPR?this.handle_end_expr(e):e.type===r.START_BLOCK?this.handle_start_block(e):e.type===r.END_BLOCK?this.handle_end_block(e):e.type===r.WORD||e.type===r.RESERVED?this.handle_word(e):e.type===r.SEMICOLON?this.handle_semicolon(e):e.type===r.STRING?this.handle_string(e):e.type===r.EQUALS?this.handle_equals(e):e.type===r.OPERATOR?this.handle_operator(e):e.type===r.COMMA?this.handle_comma(e):e.type===r.BLOCK_COMMENT?this.handle_block_comment(e,t):e.type===r.COMMENT?this.handle_comment(e,t):e.type===r.DOT?this.handle_dot(e):e.type===r.EOF?this.handle_eof(e):(e.type,r.UNKNOWN,this.handle_unknown(e,t))},E.prototype.handle_whitespace_and_comments=function(e,t){var a=e.newlines,o=this._options.keep_array_indentation&&C(this._flags.mode);if(e.comments_before)for(var i=e.comments_before.next();i;)this.handle_whitespace_and_comments(i,t),this.handle_token(i,t),i=e.comments_before.next();if(o)for(var n=0;n<a;n+=1)this.print_newline(n>0,t);else if(this._options.max_preserve_newlines&&a>this._options.max_preserve_newlines&&(a=this._options.max_preserve_newlines),this._options.preserve_newlines&&a>1){this.print_newline(!1,t);for(var l=1;l<a;l+=1)this.print_newline(!0,t)}};var N=["async","break","continue","return","throw","yield"];return E.prototype.allow_wrap_or_preserved_newline=function(e,t){if(t=void 0!==t&&t,!this._output.just_added_newline()){var a=this._options.preserve_newlines&&e.newlines||t;if(s(this._flags.last_token.text,l)||s(e.text,l)){var o=s(this._flags.last_token.text,l)&&s(this._options.operator_position,p)||s(e.text,l);a=a&&o}if(a)this.print_newline(!1,!0);else if(this._options.wrap_line_length){if(m(this._flags.last_token,N))return;this._output.set_wrap_point()}}},E.prototype.print_newline=function(e,t){if(!t&&";"!==this._flags.last_token.text&&","!==this._flags.last_token.text&&"="!==this._flags.last_token.text&&(this._flags.last_token.type!==r.OPERATOR||"--"===this._flags.last_token.text||"++"===this._flags.last_token.text))for(var a=this._tokens.peek();!(this._flags.mode!==g||this._flags.if_block&&d(a,"else")||this._flags.do_block);)this.restore_mode();this._output.add_new_line(e)&&(this._flags.multiline_frame=!0)},E.prototype.print_token_line_indentation=function(e){this._output.just_added_newline()&&(this._options.keep_array_indentation&&e.newlines&&("["===e.text||C(this._flags.mode))?(this._output.current_line.set_indent(-1),this._output.current_line.push(e.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))},E.prototype.print_token=function(e){if(this._output.raw)this._output.add_raw_token(e);else{if(this._options.comma_first&&e.previous&&e.previous.type===r.COMMA&&this._output.just_added_newline()&&","===this._output.previous_line.last()){var t=this._output.previous_line.pop();this._output.previous_line.is_empty()&&(this._output.previous_line.push(t),this._output.trim(!0),this._output.current_line.pop(),this._output.trim()),this.print_token_line_indentation(e),this._output.add_token(","),this._output.space_before_token=!0}this.print_token_line_indentation(e),this._output.non_breaking_space=!0,this._output.add_token(e.text),this._output.previous_token_wrapped&&(this._flags.multiline_frame=!0)}},E.prototype.indent=function(){this._flags.indentation_level+=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},E.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))},E.prototype.set_mode=function(e){this._flags?(this._flag_store.push(this._flags),this._previous_flags=this._flags):this._previous_flags=this.create_flags(null,e),this._flags=this.create_flags(this._previous_flags,e),this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},E.prototype.restore_mode=function(){this._flag_store.length>0&&(this._previous_flags=this._flags,this._flags=this._flag_store.pop(),this._previous_flags.mode===g&&w(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},E.prototype.start_of_object_property=function(){return this._flags.parent.mode===y&&this._flags.mode===g&&(":"===this._flags.last_token.text&&0===this._flags.ternary_depth||m(this._flags.last_token,["get","set"]))},E.prototype.start_of_statement=function(e){var t=!1;return!!(t=(t=(t=(t=(t=(t=(t=t||m(this._flags.last_token,["var","let","const"])&&e.type===r.WORD)||d(this._flags.last_token,"do"))||!(this._flags.parent.mode===y&&this._flags.mode===g)&&m(this._flags.last_token,N)&&!e.newlines)||d(this._flags.last_token,"else")&&!(d(e,"if")&&!e.comments_before))||this._flags.last_token.type===r.END_EXPR&&(this._previous_flags.mode===b||this._previous_flags.mode===k))||this._flags.last_token.type===r.WORD&&this._flags.mode===h&&!this._flags.in_case&&!("--"===e.text||"++"===e.text)&&"function"!==this._last_last_text&&e.type!==r.WORD&&e.type!==r.RESERVED)||this._flags.mode===y&&(":"===this._flags.last_token.text&&0===this._flags.ternary_depth||m(this._flags.last_token,["get","set"])))&&(this.set_mode(g),this.indent(),this.handle_whitespace_and_comments(e,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(e,m(e,["do","for","if","while"])),!0)},E.prototype.handle_start_expr=function(e){this.start_of_statement(e)||this.handle_whitespace_and_comments(e);var t=_;if("["===e.text){if(this._flags.last_token.type===r.WORD||")"===this._flags.last_token.text)return m(this._flags.last_token,n)&&(this._output.space_before_token=!0),this.print_token(e),this.set_mode(t),this.indent(),void(this._options.space_in_paren&&(this._output.space_before_token=!0));t=v,C(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()),s(this._flags.last_token.type,[r.START_EXPR,r.END_EXPR,r.WORD,r.OPERATOR,r.DOT])||(this._output.space_before_token=!0)}else{if(this._flags.last_token.type===r.RESERVED)"for"===this._flags.last_token.text?(this._output.space_before_token=this._options.space_before_conditional,t=b):s(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,t=k):s(this._flags.last_word,["await","async"])?this._output.space_before_token=!0:"import"===this._flags.last_token.text&&""===e.whitespace_before?this._output.space_before_token=!1:(s(this._flags.last_token.text,n)||"catch"===this._flags.last_token.text)&&(this._output.space_before_token=!0);else if(this._flags.last_token.type===r.EQUALS||this._flags.last_token.type===r.OPERATOR)this.start_of_object_property()||this.allow_wrap_or_preserved_newline(e);else if(this._flags.last_token.type===r.WORD){this._output.space_before_token=!1;var a=this._tokens.peek(-3);if(this._options.space_after_named_function&&a){var o=this._tokens.peek(-4);m(a,["async","function"])||"*"===a.text&&m(o,["async","function"])?this._output.space_before_token=!0:this._flags.mode===y?"{"!==a.text&&","!==a.text&&("*"!==a.text||"{"!==o.text&&","!==o.text)||(this._output.space_before_token=!0):this._flags.parent&&this._flags.parent.class_start_block&&(this._output.space_before_token=!0)}}else this.allow_wrap_or_preserved_newline(e);(this._flags.last_token.type===r.RESERVED&&("function"===this._flags.last_word||"typeof"===this._flags.last_word)||"*"===this._flags.last_token.text&&(s(this._last_last_text,["function","yield"])||this._flags.mode===y&&s(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===r.START_BLOCK?this.print_newline():this._flags.last_token.type!==r.END_EXPR&&this._flags.last_token.type!==r.START_EXPR&&this._flags.last_token.type!==r.END_BLOCK&&"."!==this._flags.last_token.text&&this._flags.last_token.type!==r.COMMA||this.allow_wrap_or_preserved_newline(e,e.newlines),this.print_token(e),this.set_mode(t),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()},E.prototype.handle_end_expr=function(e){for(;this._flags.mode===g;)this.restore_mode();this.handle_whitespace_and_comments(e),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(e,"]"===e.text&&C(this._flags.mode)&&!this._options.keep_array_indentation),this._options.space_in_paren&&(this._flags.last_token.type!==r.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(e),this.restore_mode(),w(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===k&&(this._previous_flags.mode=_,this._flags.do_block=!1,this._flags.do_while=!1)},E.prototype.handle_start_block=function(e){this.handle_whitespace_and_comments(e);var t=this._tokens.peek(),a=this._tokens.peek(1);"switch"===this._flags.last_word&&this._flags.last_token.type===r.END_EXPR?(this.set_mode(h),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(h):a&&(s(a.text,[":",","])&&s(t.type,[r.STRING,r.WORD,r.RESERVED])||s(t.text,["get","set","..."])&&s(a.type,[r.WORD,r.RESERVED]))?s(this._last_last_text,["class","interface"])&&!s(a.text,[":",","])?this.set_mode(h):this.set_mode(y):this._flags.last_token.type===r.OPERATOR&&"=>"===this._flags.last_token.text?this.set_mode(h):s(this._flags.last_token.type,[r.EQUALS,r.START_EXPR,r.COMMA,r.OPERATOR])||m(this._flags.last_token,["return","throw","import","default"])?this.set_mode(y):this.set_mode(h),this._flags.last_token&&m(this._flags.last_token.previous,["class","extends"])&&(this._flags.class_start_block=!0);var o=!t.comments_before&&"}"===t.text,i=o&&"function"===this._flags.last_word&&this._flags.last_token.type===r.END_EXPR;if(this._options.brace_preserve_inline){var n=0,l=null;this._flags.inline_frame=!0;do{if(n+=1,(l=this._tokens.peek(n-1)).newlines){this._flags.inline_frame=!1;break}}while(l.type!==r.EOF&&(l.type!==r.END_BLOCK||l.opened!==e))}("expand"===this._options.brace_style||"none"===this._options.brace_style&&e.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==r.OPERATOR&&(i||this._flags.last_token.type===r.EQUALS||m(this._flags.last_token,u)&&"else"!==this._flags.last_token.text)?this._output.space_before_token=!0:this.print_newline(!1,!0):(!C(this._previous_flags.mode)||this._flags.last_token.type!==r.START_EXPR&&this._flags.last_token.type!==r.COMMA||((this._flags.last_token.type===r.COMMA||this._options.space_in_paren)&&(this._output.space_before_token=!0),(this._flags.last_token.type===r.COMMA||this._flags.last_token.type===r.START_EXPR&&this._flags.inline_frame)&&(this.allow_wrap_or_preserved_newline(e),this._previous_flags.multiline_frame=this._previous_flags.multiline_frame||this._flags.multiline_frame,this._flags.multiline_frame=!1)),this._flags.last_token.type!==r.OPERATOR&&this._flags.last_token.type!==r.START_EXPR&&(s(this._flags.last_token.type,[r.START_BLOCK,r.SEMICOLON])&&!this._flags.inline_frame?this.print_newline():this._output.space_before_token=!0)),this.print_token(e),this.indent(),o||this._options.brace_preserve_inline&&this._flags.inline_frame||this.print_newline()},E.prototype.handle_end_block=function(e){for(this.handle_whitespace_and_comments(e);this._flags.mode===g;)this.restore_mode();var t=this._flags.last_token.type===r.START_BLOCK;this._flags.inline_frame&&!t?this._output.space_before_token=!0:"expand"===this._options.brace_style?t||this.print_newline():t||(C(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(e)},E.prototype.handle_word=function(e){if(e.type===r.RESERVED)if(s(e.text,["set","get"])&&this._flags.mode!==y)e.type=r.WORD;else if("import"===e.text&&s(this._tokens.peek().text,["(","."]))e.type=r.WORD;else if(s(e.text,["as","from"])&&!this._flags.import_block)e.type=r.WORD;else if(this._flags.mode===y){":"===this._tokens.peek().text&&(e.type=r.WORD)}if(this.start_of_statement(e)?m(this._flags.last_token,["var","let","const"])&&e.type===r.WORD&&(this._flags.declaration_statement=!0):!e.newlines||S(this._flags.mode)||this._flags.last_token.type===r.OPERATOR&&"--"!==this._flags.last_token.text&&"++"!==this._flags.last_token.text||this._flags.last_token.type===r.EQUALS||!this._options.preserve_newlines&&m(this._flags.last_token,["var","let","const","set","get"])?this.handle_whitespace_and_comments(e):(this.handle_whitespace_and_comments(e),this.print_newline()),this._flags.do_block&&!this._flags.do_while){if(d(e,"while"))return this._output.space_before_token=!0,this.print_token(e),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&&d(e,"else"))this._flags.else_block=!0;else{for(;this._flags.mode===g;)this.restore_mode();this._flags.if_block=!1,this._flags.else_block=!1}if(this._flags.in_case_statement&&m(e,["case","default"]))return this.print_newline(),this._flags.case_block||!this._flags.case_body&&!this._options.jslint_happy||this.deindent(),this._flags.case_body=!1,this.print_token(e),void(this._flags.in_case=!0);if(this._flags.last_token.type!==r.COMMA&&this._flags.last_token.type!==r.START_EXPR&&this._flags.last_token.type!==r.EQUALS&&this._flags.last_token.type!==r.OPERATOR||this.start_of_object_property()||s(this._flags.last_token.text,["+","-"])&&":"===this._last_last_text&&this._flags.parent.mode===y||this.allow_wrap_or_preserved_newline(e),d(e,"function"))return(s(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!s(this._flags.last_token.text,["(","[","{",":","=",","])&&this._flags.last_token.type!==r.OPERATOR)&&(this._output.just_added_blankline()||e.comments_before||(this.print_newline(),this.print_newline(!0))),this._flags.last_token.type===r.RESERVED||this._flags.last_token.type===r.WORD?m(this._flags.last_token,["get","set","new","export"])||m(this._flags.last_token,N)||d(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===r.OPERATOR||"="===this._flags.last_token.text?this._output.space_before_token=!0:(this._flags.multiline_frame||!S(this._flags.mode)&&!C(this._flags.mode))&&this.print_newline(),this.print_token(e),void(this._flags.last_word=e.text);var t="NONE";(this._flags.last_token.type===r.END_BLOCK?this._previous_flags.inline_frame?t="SPACE":m(e,["else","catch","finally","from"])?"expand"===this._options.brace_style||"end-expand"===this._options.brace_style||"none"===this._options.brace_style&&e.newlines?t="NEWLINE":(t="SPACE",this._output.space_before_token=!0):t="NEWLINE":this._flags.last_token.type===r.SEMICOLON&&this._flags.mode===h?t="NEWLINE":this._flags.last_token.type===r.SEMICOLON&&S(this._flags.mode)?t="SPACE":this._flags.last_token.type===r.STRING?t="NEWLINE":this._flags.last_token.type===r.RESERVED||this._flags.last_token.type===r.WORD||"*"===this._flags.last_token.text&&(s(this._last_last_text,["function","yield"])||this._flags.mode===y&&s(this._last_last_text,["{",","]))?t="SPACE":this._flags.last_token.type===r.START_BLOCK?t=this._flags.inline_frame?"SPACE":"NEWLINE":this._flags.last_token.type===r.END_EXPR&&(this._output.space_before_token=!0,t="NEWLINE"),m(e,n)&&")"!==this._flags.last_token.text&&(t=this._flags.inline_frame||"else"===this._flags.last_token.text||"export"===this._flags.last_token.text?"SPACE":"NEWLINE"),m(e,["else","catch","finally"]))?(this._flags.last_token.type!==r.END_BLOCK||this._previous_flags.mode!==h||"expand"===this._options.brace_style||"end-expand"===this._options.brace_style||"none"===this._options.brace_style&&e.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"===t?m(this._flags.last_token,u)||"declare"===this._flags.last_token.text&&m(e,["var","let","const"])?this._output.space_before_token=!0:this._flags.last_token.type!==r.END_EXPR?this._flags.last_token.type===r.START_EXPR&&m(e,["var","let","const"])||":"===this._flags.last_token.text||(d(e,"if")&&d(e.previous,"else")?this._output.space_before_token=!0:this.print_newline()):m(e,n)&&")"!==this._flags.last_token.text&&this.print_newline():this._flags.multiline_frame&&C(this._flags.mode)&&","===this._flags.last_token.text&&"}"===this._last_last_text?this.print_newline():"SPACE"===t&&(this._output.space_before_token=!0);!e.previous||e.previous.type!==r.WORD&&e.previous.type!==r.RESERVED||(this._output.space_before_token=!0),this.print_token(e),this._flags.last_word=e.text,e.type===r.RESERVED&&("do"===e.text?this._flags.do_block=!0:"if"===e.text?this._flags.if_block=!0:"import"===e.text?this._flags.import_block=!0:this._flags.import_block&&d(e,"from")&&(this._flags.import_block=!1))},E.prototype.handle_semicolon=function(e){this.start_of_statement(e)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(e);for(var t=this._tokens.peek();!(this._flags.mode!==g||this._flags.if_block&&d(t,"else")||this._flags.do_block);)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(e)},E.prototype.handle_string=function(e){(!e.text.startsWith("`")||0!==e.newlines||""!==e.whitespace_before||")"!==e.previous.text&&this._flags.last_token.type!==r.WORD)&&(this.start_of_statement(e)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(e),this._flags.last_token.type===r.RESERVED||this._flags.last_token.type===r.WORD||this._flags.inline_frame?this._output.space_before_token=!0:this._flags.last_token.type===r.COMMA||this._flags.last_token.type===r.START_EXPR||this._flags.last_token.type===r.EQUALS||this._flags.last_token.type===r.OPERATOR?this.start_of_object_property()||this.allow_wrap_or_preserved_newline(e):!e.text.startsWith("`")||this._flags.last_token.type!==r.END_EXPR||"]"!==e.previous.text&&")"!==e.previous.text||0!==e.newlines?this.print_newline():this._output.space_before_token=!0)),this.print_token(e)},E.prototype.handle_equals=function(e){this.start_of_statement(e)||this.handle_whitespace_and_comments(e),this._flags.declaration_statement&&(this._flags.declaration_assignment=!0),this._output.space_before_token=!0,this.print_token(e),this._output.space_before_token=!0},E.prototype.handle_comma=function(e){this.handle_whitespace_and_comments(e,!0),this.print_token(e),this._output.space_before_token=!0,this._flags.declaration_statement?(S(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(e)):this._flags.mode===y||this._flags.mode===g&&this._flags.parent.mode===y?(this._flags.mode===g&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(e)},E.prototype.handle_operator=function(e){var t="*"===e.text&&(m(this._flags.last_token,["function","yield"])||s(this._flags.last_token.type,[r.START_BLOCK,r.COMMA,r.END_BLOCK,r.SEMICOLON])),a=s(e.text,["-","+"])&&(s(this._flags.last_token.type,[r.START_BLOCK,r.START_EXPR,r.EQUALS,r.OPERATOR])||s(this._flags.last_token.text,n)||","===this._flags.last_token.text);if(this.start_of_statement(e));else{var o=!t;this.handle_whitespace_and_comments(e,o)}if("*"!==e.text||this._flags.last_token.type!==r.DOT)if("::"!==e.text)if(s(e.text,["-","+"])&&this.start_of_object_property())this.print_token(e);else{if(this._flags.last_token.type===r.OPERATOR&&s(this._options.operator_position,p)&&this.allow_wrap_or_preserved_newline(e),":"===e.text&&this._flags.in_case)return this.print_token(e),this._flags.in_case=!1,this._flags.case_body=!0,void(this._tokens.peek().type!==r.START_BLOCK?(this.indent(),this.print_newline(),this._flags.case_block=!1):(this._flags.case_block=!0,this._output.space_before_token=!0));var i=!0,c=!0,d=!1;if(":"===e.text?0===this._flags.ternary_depth?i=!1:(this._flags.ternary_depth-=1,d=!0):"?"===e.text&&(this._flags.ternary_depth+=1),!a&&!t&&this._options.preserve_newlines&&s(e.text,l)){var y=":"===e.text,v=y&&d,b=y&&!d;switch(this._options.operator_position){case f.before_newline:return this._output.space_before_token=!b,this.print_token(e),y&&!v||this.allow_wrap_or_preserved_newline(e),void(this._output.space_before_token=!0);case f.after_newline:return this._output.space_before_token=!0,!y||v?this._tokens.peek().newlines?this.print_newline(!1,!0):this.allow_wrap_or_preserved_newline(e):this._output.space_before_token=!1,this.print_token(e),void(this._output.space_before_token=!0);case f.preserve_newline:return b||this.allow_wrap_or_preserved_newline(e),i=!(this._output.just_added_newline()||b),this._output.space_before_token=i,this.print_token(e),void(this._output.space_before_token=!0)}}if(t){this.allow_wrap_or_preserved_newline(e),i=!1;var k=this._tokens.peek();c=k&&s(k.type,[r.WORD,r.RESERVED])}else if("..."===e.text)this.allow_wrap_or_preserved_newline(e),i=this._flags.last_token.type===r.START_BLOCK,c=!1;else if(s(e.text,["--","++","!","~"])||a){if(this._flags.last_token.type!==r.COMMA&&this._flags.last_token.type!==r.START_EXPR||this.allow_wrap_or_preserved_newline(e),i=!1,c=!1,e.newlines&&("--"===e.text||"++"===e.text||"~"===e.text)){var _=m(this._flags.last_token,u)&&e.newlines;_&&(this._previous_flags.if_block||this._previous_flags.else_block)&&this.restore_mode(),this.print_newline(_,!0)}";"===this._flags.last_token.text&&S(this._flags.mode)&&(i=!0),this._flags.last_token.type===r.RESERVED?i=!0:this._flags.last_token.type===r.END_EXPR?i=!("]"===this._flags.last_token.text&&("--"===e.text||"++"===e.text)):this._flags.last_token.type===r.OPERATOR&&(i=s(e.text,["--","-","++","+"])&&s(this._flags.last_token.text,["--","-","++","+"]),s(e.text,["+","-"])&&s(this._flags.last_token.text,["--","++"])&&(c=!0)),(this._flags.mode!==h||this._flags.inline_frame)&&this._flags.mode!==g||"{"!==this._flags.last_token.text&&";"!==this._flags.last_token.text||this.print_newline()}this._output.space_before_token=this._output.space_before_token||i,this.print_token(e),this._output.space_before_token=c}else this.print_token(e);else this.print_token(e)},E.prototype.handle_block_comment=function(e,t){return this._output.raw?(this._output.add_raw_token(e),void(e.directives&&"end"===e.directives.preserve&&(this._output.raw=this._options.test_output_raw))):e.directives?(this.print_newline(!1,t),this.print_token(e),"start"===e.directives.preserve&&(this._output.raw=!0),void this.print_newline(!1,!0)):a.newline.test(e.text)||e.newlines?void this.print_block_commment(e,t):(this._output.space_before_token=!0,this.print_token(e),void(this._output.space_before_token=!0))},E.prototype.print_block_commment=function(e,t){var o,i=function(e){for(var t=[],o=(e=e.replace(a.allLineBreaks,"\n")).indexOf("\n");-1!==o;)t.push(e.substring(0,o)),o=(e=e.substring(o+1)).indexOf("\n");return e.length&&t.push(e),t}(e.text),n=!1,l=!1,r=e.whitespace_before,s=r.length;if(this.print_newline(!1,t),this.print_token_line_indentation(e),this._output.add_token(i[0]),this.print_newline(!1,t),i.length>1){for(n=function(e,t){for(var a=0;a<e.length;a++)if(e[a].trim().charAt(0)!==t)return!1;return!0}(i=i.slice(1),"*"),l=function(e,t){for(var a,o=0,i=e.length;o<i;o++)if((a=e[o])&&0!==a.indexOf(t))return!1;return!0}(i,r),n&&(this._flags.alignment=1),o=0;o<i.length;o++)n?(this.print_token_line_indentation(e),this._output.add_token(c(i[o]))):l&&i[o]?(this.print_token_line_indentation(e),this._output.add_token(i[o].substring(s))):(this._output.current_line.set_indent(-1),this._output.add_token(i[o])),this.print_newline(!1,t);this._flags.alignment=0}},E.prototype.handle_comment=function(e,t){e.newlines?this.print_newline(!1,t):this._output.trim(!0),this._output.space_before_token=!0,this.print_token(e),this.print_newline(!1,t)},E.prototype.handle_dot=function(e){this.start_of_statement(e)||this.handle_whitespace_and_comments(e,!0),this._flags.last_token.text.match("^[0-9]+$")&&(this._output.space_before_token=!0),m(this._flags.last_token,u)?this._output.space_before_token=!1:this.allow_wrap_or_preserved_newline(e,")"===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(e)},E.prototype.handle_unknown=function(e,t){this.print_token(e),"\n"===e.text[e.text.length-1]&&this.print_newline(!1,t)},E.prototype.handle_eof=function(e){for(;this._flags.mode===g;)this.restore_mode();this.handle_whitespace_and_comments(e)},Be.Beautifier=E,Be}var pt,ht,gt,yt={exports:{}},vt={},bt={};function kt(){if(pt)return bt;pt=1;var e=Le().Options;function t(t){e.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 a=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||a;var o=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var i=0;i<o.length;i++)"expand"!==o[i]?this.brace_style="collapse":this.brace_style=o[i]}return t.prototype=new e,bt.Options=t,bt}function _t(){if(gt)return yt.exports;gt=1;var e=function(){if(ht)return vt;ht=1;var e=kt().Options,t=Ae().Output,a=Ge().InputScanner,o=new(0,nt().Directives)(/\/\*/,/\*\//),i=/\r\n|[\r\n]/,n=/\r\n|[\r\n]/g,l=/\s/,r=/(?:\s|\n)+/g,s=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,c=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function d(t,a){this._source_text=t||"",this._options=new e(a),this._ch=null,this._input=null,this.NESTED_AT_RULE={page:!0,"font-face":!0,keyframes:!0,media:!0,supports:!0,document:!0},this.CONDITIONAL_GROUP_RULE={media:!0,supports:!0,document:!0},this.NON_SEMICOLON_NEWLINE_PROPERTY=["grid-template-areas","grid-template"]}return d.prototype.eatString=function(e){var t="";for(this._ch=this._input.next();this._ch;){if(t+=this._ch,"\\"===this._ch)t+=this._input.next();else if(-1!==e.indexOf(this._ch)||"\n"===this._ch)break;this._ch=this._input.next()}return t},d.prototype.eatWhitespace=function(e){for(var t=l.test(this._input.peek()),a=0;l.test(this._input.peek());)this._ch=this._input.next(),e&&"\n"===this._ch&&(0===a||a<this._options.max_preserve_newlines)&&(a++,this._output.add_new_line(!0));return t},d.prototype.foundNestedPseudoClass=function(){for(var e=0,t=1,a=this._input.peek(t);a;){if("{"===a)return!0;if("("===a)e+=1;else if(")"===a){if(0===e)return!1;e-=1}else if(";"===a||"}"===a)return!1;t++,a=this._input.peek(t)}return!1},d.prototype.print_string=function(e){this._output.set_indent(this._indentLevel),this._output.non_breaking_space=!0,this._output.add_token(e)},d.prototype.preserveSingleSpace=function(e){e&&(this._output.space_before_token=!0)},d.prototype.indent=function(){this._indentLevel++},d.prototype.outdent=function(){this._indentLevel>0&&this._indentLevel--},d.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var e=this._source_text,d=this._options.eol;"auto"===d&&(d="\n",e&&i.test(e||"")&&(d=e.match(i)[0]));var m=(e=e.replace(n,"\n")).match(/^[\t ]*/)[0];this._output=new t(this._options,m),this._input=new a(e),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var u,f,p=0,h=!1,g=!1,y=!1,v=!1,b=!1,k=this._ch,_=!1;u=""!==this._input.read(r),f=k,this._ch=this._input.next(),"\\"===this._ch&&this._input.hasNext()&&(this._ch+=this._input.next()),k=this._ch,this._ch;)if("/"===this._ch&&"*"===this._input.peek()){this._output.add_new_line(),this._input.back();var w=this._input.read(s),C=o.get_directives(w);C&&"start"===C.ignore&&(w+=o.readIgnored(this._input)),this.print_string(w),this.eatWhitespace(!0),this._output.add_new_line()}else if("/"===this._ch&&"/"===this._input.peek())this._output.space_before_token=!0,this._input.back(),this.print_string(this._input.read(c)),this.eatWhitespace(!0);else if("$"===this._ch){this.preserveSingleSpace(u),this.print_string(this._ch);var S=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);S.match(/[ :]$/)&&(S=this.eatString(": ").replace(/\s+$/,""),this.print_string(S),this._output.space_before_token=!0),0===p&&-1!==S.indexOf(":")&&(g=!0,this.indent())}else if("@"===this._ch)if(this.preserveSingleSpace(u),"{"===this._input.peek())this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var E=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);E.match(/[ :]$/)&&(E=this.eatString(": ").replace(/\s+$/,""),this.print_string(E),this._output.space_before_token=!0),0===p&&-1!==E.indexOf(":")?(g=!0,this.indent()):E in this.NESTED_AT_RULE?(this._nestedLevel+=1,E in this.CONDITIONAL_GROUP_RULE&&(y=!0)):0!==p||g||(v=!0)}else if("#"===this._ch&&"{"===this._input.peek())this.preserveSingleSpace(u),this.print_string(this._ch+this.eatString("}"));else if("{"===this._ch)g&&(g=!1,this.outdent()),v=!1,y?(y=!1,h=this._indentLevel>=this._nestedLevel):h=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&h&&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)):("("===f?this._output.space_before_token=!1:","!==f&&this.indent(),this.print_string(this._ch)),this.eatWhitespace(!0),this._output.add_new_line();else if("}"===this._ch)this.outdent(),this._output.add_new_line(),"{"===f&&this._output.trim(!0),g&&(this.outdent(),g=!1),this.print_string(this._ch),h=!1,this._nestedLevel&&this._nestedLevel--,this.eatWhitespace(!0),this._output.add_new_line(),this._options.newline_between_rules&&!this._output.just_added_blankline()&&"}"!==this._input.peek()&&this._output.add_new_line(!0),")"===this._input.peek()&&(this._output.trim(!0),"expand"===this._options.brace_style&&this._output.add_new_line(!0));else if(":"===this._ch){for(var N=0;N<this.NON_SEMICOLON_NEWLINE_PROPERTY.length;N++)if(this._input.lookBack(this.NON_SEMICOLON_NEWLINE_PROPERTY[N])){_=!0;break}!h&&!y||this._input.lookBack("&")||this.foundNestedPseudoClass()||this._input.lookBack("(")||v||0!==p?(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(":"),g||(g=!0,this._output.space_before_token=!0,this.eatWhitespace(!0),this.indent()))}else if('"'===this._ch||"'"===this._ch){var x='"'===f||"'"===f;this.preserveSingleSpace(x||u),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)}else if(";"===this._ch)_=!1,0===p?(g&&(this.outdent(),g=!1),v=!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);else if("("===this._ch)if(this._input.lookBack("url"))this.print_string(this._ch),this.eatWhitespace(),p++,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(")")),p&&(p--,this.outdent()));else{var B=!1;this._input.lookBack("with")&&(B=!0),this.preserveSingleSpace(u||B),this.print_string(this._ch),g&&"$"===f&&this._options.selector_separator_newline?(this._output.add_new_line(),b=!0):(this.eatWhitespace(),p++,this.indent())}else if(")"===this._ch)p&&(p--,this.outdent()),b&&";"===this._input.peek()&&this._options.selector_separator_newline&&(b=!1,this.outdent(),this._output.add_new_line()),this.print_string(this._ch);else if(","===this._ch)this.print_string(this._ch),this.eatWhitespace(!0),!this._options.selector_separator_newline||g&&!b||0!==p||v?this._output.space_before_token=!0:this._output.add_new_line();else if(">"!==this._ch&&"+"!==this._ch&&"~"!==this._ch||g||0!==p)if("]"===this._ch)this.print_string(this._ch);else if("["===this._ch)this.preserveSingleSpace(u),this.print_string(this._ch);else if("="===this._ch)this.eatWhitespace(),this.print_string("="),l.test(this._ch)&&(this._ch="");else if("!"!==this._ch||this._input.lookBack("\\")){var V='"'===f||"'"===f;this.preserveSingleSpace(V||u),this.print_string(this._ch),!this._output.just_added_newline()&&"\n"===this._input.peek()&&_&&this._output.add_new_line()}else this._output.space_before_token=!0,this.print_string(this._ch);else this._options.space_around_combinator?(this._output.space_before_token=!0,this.print_string(this._ch),this._output.space_before_token=!0):(this.print_string(this._ch),this.eatWhitespace(),this._ch&&l.test(this._ch)&&(this._ch=""));return this._output.get_code(d)},vt.Beautifier=d,vt}().Beautifier,t=kt().Options;return yt.exports=function(t,a){return new e(t,a).beautify()},yt.exports.defaultOptions=function(){return new t},yt.exports}var wt,Ct={exports:{}},St={},Et={};function Nt(){if(wt)return Et;wt=1;var e=Le().Options;function t(t){e.call(this,t,"html"),1===this.templating.length&&"auto"===this.templating[0]&&(this.templating=["django","erb","handlebars","php"]),this.indent_inner_html=this._get_boolean("indent_inner_html"),this.indent_body_inner_html=this._get_boolean("indent_body_inner_html",!0),this.indent_head_inner_html=this._get_boolean("indent_head_inner_html",!0),this.indent_handlebars=this._get_boolean("indent_handlebars",!0),this.wrap_attributes=this._get_selection("wrap_attributes",["auto","force","force-aligned","force-expand-multiline","aligned-multiple","preserve","preserve-aligned"]),this.wrap_attributes_min_attrs=this._get_number("wrap_attributes_min_attrs",2),this.wrap_attributes_indent_size=this._get_number("wrap_attributes_indent_size",this.indent_size),this.extra_liners=this._get_array("extra_liners",["head","body","/html"]),this.inline=this._get_array("inline",["a","abbr","area","audio","b","bdi","bdo","br","button","canvas","cite","code","data","datalist","del","dfn","em","embed","i","iframe","img","input","ins","kbd","keygen","label","map","mark","math","meter","noscript","object","output","progress","q","ruby","s","samp","select","small","span","strong","sub","sup","svg","template","textarea","time","u","var","video","wbr","text","acronym","big","strike","tt"]),this.inline_custom_elements=this._get_boolean("inline_custom_elements",!0),this.void_elements=this._get_array("void_elements",["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr","!doctype","?xml","basefont","isindex"]),this.unformatted=this._get_array("unformatted",[]),this.content_unformatted=this._get_array("content_unformatted",["pre","textarea"]),this.unformatted_content_delimiter=this._get_characters("unformatted_content_delimiter"),this.indent_scripts=this._get_selection("indent_scripts",["normal","keep","separate"])}return t.prototype=new e,Et.Options=t,Et}var xt,Bt,Vt,At,Rt,Mt={};function Tt(){if(xt)return Mt;xt=1;var e=at().Tokenizer,t=at().TOKEN,a=nt().Directives,o=mt().TemplatablePattern,i=tt().Pattern,n={TAG_OPEN:"TK_TAG_OPEN",TAG_CLOSE:"TK_TAG_CLOSE",CONTROL_FLOW_OPEN:"TK_CONTROL_FLOW_OPEN",CONTROL_FLOW_CLOSE:"TK_CONTROL_FLOW_CLOSE",ATTRIBUTE:"TK_ATTRIBUTE",EQUALS:"TK_EQUALS",VALUE:"TK_VALUE",COMMENT:"TK_COMMENT",TEXT:"TK_TEXT",UNKNOWN:"TK_UNKNOWN",START:t.START,RAW:t.RAW,EOF:t.EOF},l=new a(/<\!--/,/-->/),r=function(t,a){e.call(this,t,a),this._current_tag_name="";var n=new o(this._input).read_options(this._options),l=new i(this._input);if(this.__patterns={word:n.until(/[\n\r\t <]/),word_control_flow_close_excluded:n.until(/[\n\r\t <}]/),single_quote:n.until_after(/'/),double_quote:n.until_after(/"/),attribute:n.until(/[\n\r\t =>]|\/>/),element_name:n.until(/[\n\r\t >\/]/),angular_control_flow_start:l.matching(/\@[a-zA-Z]+[^({]*[({]/),handlebars_comment:l.starting_with(/{{!--/).until_after(/--}}/),handlebars:l.starting_with(/{{/).until_after(/}}/),handlebars_open:l.until(/[\n\r\t }]/),handlebars_raw_close:l.until(/}}/),comment:l.starting_with(/<!--/).until_after(/-->/),cdata:l.starting_with(/<!\[CDATA\[/).until_after(/]]>/),conditional_comment:l.starting_with(/<!\[/).until_after(/]>/),processing:l.starting_with(/<\?/).until_after(/\?>/)},this._options.indent_handlebars&&(this.__patterns.word=this.__patterns.word.exclude("handlebars"),this.__patterns.word_control_flow_close_excluded=this.__patterns.word_control_flow_close_excluded.exclude("handlebars")),this._unformatted_content_delimiter=null,this._options.unformatted_content_delimiter){var r=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=l.matching(r).until_after(r)}};return(r.prototype=new e)._is_comment=function(e){return!1},r.prototype._is_opening=function(e){return e.type===n.TAG_OPEN||e.type===n.CONTROL_FLOW_OPEN},r.prototype._is_closing=function(e,t){return e.type===n.TAG_CLOSE&&t&&((">"===e.text||"/>"===e.text)&&"<"===t.text[0]||"}}"===e.text&&"{"===t.text[0]&&"{"===t.text[1])||e.type===n.CONTROL_FLOW_CLOSE&&"}"===e.text&&t.text.endsWith("{")},r.prototype._reset=function(){this._current_tag_name=""},r.prototype._get_next_token=function(e,t){var a=null;this._readWhitespace();var o=this._input.peek();return null===o?this._create_token(n.EOF,""):a=(a=(a=(a=(a=(a=(a=(a=(a=(a=(a=a||this._read_open_handlebars(o,t))||this._read_attribute(o,e,t))||this._read_close(o,t))||this._read_script_and_style(o,e))||this._read_control_flows(o,t))||this._read_raw_content(o,e,t))||this._read_content_word(o,t))||this._read_comment_or_cdata(o))||this._read_processing(o))||this._read_open(o,t))||this._create_token(n.UNKNOWN,this._input.next())},r.prototype._read_comment_or_cdata=function(e){var t=null,a=null,o=null;"<"===e&&("!"===this._input.peek(1)&&((a=this.__patterns.comment.read())?(o=l.get_directives(a))&&"start"===o.ignore&&(a+=l.readIgnored(this._input)):a=this.__patterns.cdata.read()),a&&((t=this._create_token(n.COMMENT,a)).directives=o));return t},r.prototype._read_processing=function(e){var t=null,a=null;if("<"===e){var o=this._input.peek(1);"!"!==o&&"?"!==o||(a=(a=this.__patterns.conditional_comment.read())||this.__patterns.processing.read()),a&&((t=this._create_token(n.COMMENT,a)).directives=null)}return t},r.prototype._read_open=function(e,t){var a=null,o=null;return t&&t.type!==n.CONTROL_FLOW_OPEN||"<"===e&&(a=this._input.next(),"/"===this._input.peek()&&(a+=this._input.next()),a+=this.__patterns.element_name.read(),o=this._create_token(n.TAG_OPEN,a)),o},r.prototype._read_open_handlebars=function(e,t){var a=null,o=null;return t&&t.type!==n.CONTROL_FLOW_OPEN||(this._options.templating.includes("angular")||this._options.indent_handlebars)&&"{"===e&&"{"===this._input.peek(1)&&(this._options.indent_handlebars&&"!"===this._input.peek(2)?(a=(a=this.__patterns.handlebars_comment.read())||this.__patterns.handlebars.read(),o=this._create_token(n.COMMENT,a)):(a=this.__patterns.handlebars_open.read(),o=this._create_token(n.TAG_OPEN,a))),o},r.prototype._read_control_flows=function(e,t){var a="",o=null;if(!this._options.templating.includes("angular"))return o;if("@"===e){if(""===(a=this.__patterns.angular_control_flow_start.read()))return o;for(var i=a.endsWith("(")?1:0,l=0;!a.endsWith("{")||i!==l;){var r=this._input.next();if(null===r)break;"("===r?i++:")"===r&&l++,a+=r}o=this._create_token(n.CONTROL_FLOW_OPEN,a)}else"}"===e&&t&&t.type===n.CONTROL_FLOW_OPEN&&(a=this._input.next(),o=this._create_token(n.CONTROL_FLOW_CLOSE,a));return o},r.prototype._read_close=function(e,t){var a=null,o=null;return t&&t.type===n.TAG_OPEN&&("<"===t.text[0]&&(">"===e||"/"===e&&">"===this._input.peek(1))?(a=this._input.next(),"/"===e&&(a+=this._input.next()),o=this._create_token(n.TAG_CLOSE,a)):"{"===t.text[0]&&"}"===e&&"}"===this._input.peek(1)&&(this._input.next(),this._input.next(),o=this._create_token(n.TAG_CLOSE,"}}"))),o},r.prototype._read_attribute=function(e,t,a){var o=null,i="";if(a&&"<"===a.text[0])if("="===e)o=this._create_token(n.EQUALS,this._input.next());else if('"'===e||"'"===e){var l=this._input.next();l+='"'===e?this.__patterns.double_quote.read():this.__patterns.single_quote.read(),o=this._create_token(n.VALUE,l)}else(i=this.__patterns.attribute.read())&&(o=t.type===n.EQUALS?this._create_token(n.VALUE,i):this._create_token(n.ATTRIBUTE,i));return o},r.prototype._is_content_unformatted=function(e){return-1===this._options.void_elements.indexOf(e)&&(-1!==this._options.content_unformatted.indexOf(e)||-1!==this._options.unformatted.indexOf(e))},r.prototype._read_raw_content=function(e,t,a){var o="";if(a&&"{"===a.text[0])o=this.__patterns.handlebars_raw_close.read();else if(t.type===n.TAG_CLOSE&&"<"===t.opened.text[0]&&"/"!==t.text[0]){var i=t.opened.text.substr(1).toLowerCase();this._is_content_unformatted(i)&&(o=this._input.readUntil(new RegExp("</"+i+"[\\n\\r\\t ]*?>","ig")))}return o?this._create_token(n.TEXT,o):null},r.prototype._read_script_and_style=function(e,t){if(t.type===n.TAG_CLOSE&&"<"===t.opened.text[0]&&"/"!==t.text[0]){var a=t.opened.text.substr(1).toLowerCase();if("script"===a||"style"===a){var o=this._read_comment_or_cdata(e);if(o)return o.type=n.TEXT,o;var i=this._input.readUntil(new RegExp("</"+a+"[\\n\\r\\t ]*?>","ig"));if(i)return this._create_token(n.TEXT,i)}}return null},r.prototype._read_content_word=function(e,t){var a="";return this._options.unformatted_content_delimiter&&e===this._options.unformatted_content_delimiter[0]&&(a=this.__patterns.unformatted_content_delimiter.read()),a||(a=t&&t.type===n.CONTROL_FLOW_OPEN?this.__patterns.word_control_flow_close_excluded.read():this.__patterns.word.read()),a?this._create_token(n.TEXT,a):null},Mt.Tokenizer=r,Mt.TOKEN=n,Mt}function It(){if(Bt)return St;Bt=1;var e=Nt().Options,t=Ae().Output,a=Tt().Tokenizer,o=Tt().TOKEN,i=/\r\n|[\r\n]/,n=/\r\n|[\r\n]/g,l=function(e,a){this.indent_level=0,this.alignment_size=0,this.max_preserve_newlines=e.max_preserve_newlines,this.preserve_newlines=e.preserve_newlines,this._output=new t(e,a)};l.prototype.current_line_has_match=function(e){return this._output.current_line.has_match(e)},l.prototype.set_space_before_token=function(e,t){this._output.space_before_token=e,this._output.non_breaking_space=t},l.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()},l.prototype.add_raw_token=function(e){this._output.add_raw_token(e)},l.prototype.print_preserved_newlines=function(e){var t=0;e.type!==o.TEXT&&e.previous.type!==o.TEXT&&(t=e.newlines?1:0),this.preserve_newlines&&(t=e.newlines<this.max_preserve_newlines+1?e.newlines:this.max_preserve_newlines+1);for(var a=0;a<t;a++)this.print_newline(a>0);return 0!==t},l.prototype.traverse_whitespace=function(e){return!(!e.whitespace_before&&!e.newlines)&&(this.print_preserved_newlines(e)||(this._output.space_before_token=!0),!0)},l.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped},l.prototype.print_newline=function(e){this._output.add_new_line(e)},l.prototype.print_token=function(e){e.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(e.text))},l.prototype.indent=function(){this.indent_level++},l.prototype.deindent=function(){this.indent_level>0&&(this.indent_level--,this._output.set_indent(this.indent_level,this.alignment_size))},l.prototype.get_full_indent=function(e){return(e=this.indent_level+(e||0))<1?"":this._output.get_indent_string(e)};var r=function(e,t){var a=null,i=null;return t.closed?("script"===e?a="text/javascript":"style"===e&&(a="text/css"),a=function(e){for(var t=null,a=e.next;a.type!==o.EOF&&e.closed!==a;){if(a.type===o.ATTRIBUTE&&"type"===a.text){a.next&&a.next.type===o.EQUALS&&a.next.next&&a.next.next.type===o.VALUE&&(t=a.next.next.text);break}a=a.next}return t}(t)||a,a.search("text/css")>-1?i="css":a.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)>-1?i="javascript":a.search(/(text|application|dojo)\/(x-)?(html)/)>-1?i="html":a.search(/test\/null/)>-1&&(i="null"),i):null};function s(e,t){return-1!==t.indexOf(e)}function c(e,t,a){this.parent=e||null,this.tag=t?t.tag_name:"",this.indent_level=a||0,this.parser_token=t||null}function d(e){this._printer=e,this._current_frame=null}function m(t,a,o,i){this._source_text=t||"",a=a||{},this._js_beautify=o,this._css_beautify=i,this._tag_stack=null;var n=new e(a,"html");this._options=n,this._is_wrap_attributes_force="force"===this._options.wrap_attributes.substr(0,5),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,8),this._is_wrap_attributes_preserve_aligned="preserve-aligned"===this._options.wrap_attributes}d.prototype.get_parser_token=function(){return this._current_frame?this._current_frame.parser_token:null},d.prototype.record_tag=function(e){var t=new c(this._current_frame,e,this._printer.indent_level);this._current_frame=t},d.prototype._try_pop_frame=function(e){var t=null;return e&&(t=e.parser_token,this._printer.indent_level=e.indent_level,this._current_frame=e.parent),t},d.prototype._get_frame=function(e,t){for(var a=this._current_frame;a&&-1===e.indexOf(a.tag);){if(t&&-1!==t.indexOf(a.tag)){a=null;break}a=a.parent}return a},d.prototype.try_pop=function(e,t){var a=this._get_frame([e],t);return this._try_pop_frame(a)},d.prototype.indent_to_tag=function(e){var t=this._get_frame(e);t&&(this._printer.indent_level=t.indent_level)},m.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var e=this._source_text,t=this._options.eol;"auto"===this._options.eol&&(t="\n",e&&i.test(e)&&(t=e.match(i)[0]));var r=(e=e.replace(n,"\n")).match(/^[\t ]*/)[0],s={text:"",type:""},c=new u(this._options),m=new l(this._options,r),f=new a(e,this._options).tokenize();this._tag_stack=new d(m);for(var p=null,h=f.next();h.type!==o.EOF;)h.type===o.TAG_OPEN||h.type===o.COMMENT?c=p=this._handle_tag_open(m,h,c,s,f):h.type===o.ATTRIBUTE||h.type===o.EQUALS||h.type===o.VALUE||h.type===o.TEXT&&!c.tag_complete?p=this._handle_inside_tag(m,h,c,s):h.type===o.TAG_CLOSE?p=this._handle_tag_close(m,h,c):h.type===o.TEXT?p=this._handle_text(m,h,c):h.type===o.CONTROL_FLOW_OPEN?p=this._handle_control_flow_open(m,h):h.type===o.CONTROL_FLOW_CLOSE?p=this._handle_control_flow_close(m,h):m.add_raw_token(h),s=p,h=f.next();return m._output.get_code(t)},m.prototype._handle_control_flow_open=function(e,t){var a={text:t.text,type:t.type};return e.set_space_before_token(t.newlines||""!==t.whitespace_before,!0),t.newlines?e.print_preserved_newlines(t):e.set_space_before_token(t.newlines||""!==t.whitespace_before,!0),e.print_token(t),e.indent(),a},m.prototype._handle_control_flow_close=function(e,t){var a={text:t.text,type:t.type};return e.deindent(),t.newlines?e.print_preserved_newlines(t):e.set_space_before_token(t.newlines||""!==t.whitespace_before,!0),e.print_token(t),a},m.prototype._handle_tag_close=function(e,t,a){var o={text:t.text,type:t.type};return e.alignment_size=0,a.tag_complete=!0,e.set_space_before_token(t.newlines||""!==t.whitespace_before,!0),a.is_unformatted?e.add_raw_token(t):("<"===a.tag_start_char&&(e.set_space_before_token("/"===t.text[0],!0),this._is_wrap_attributes_force_expand_multiline&&a.has_wrapped_attrs&&e.print_newline(!1)),e.print_token(t)),!a.indent_content||a.is_unformatted||a.is_content_unformatted||(e.indent(),a.indent_content=!1),a.is_inline_element||a.is_unformatted||a.is_content_unformatted||e.set_wrap_point(),o},m.prototype._handle_inside_tag=function(e,t,a,i){var n=a.has_wrapped_attrs,l={text:t.text,type:t.type};return e.set_space_before_token(t.newlines||""!==t.whitespace_before,!0),a.is_unformatted?e.add_raw_token(t):"{"===a.tag_start_char&&t.type===o.TEXT?e.print_preserved_newlines(t)?(t.newlines=0,e.add_raw_token(t)):e.print_token(t):(t.type===o.ATTRIBUTE?e.set_space_before_token(!0):(t.type===o.EQUALS||t.type===o.VALUE&&t.previous.type===o.EQUALS)&&e.set_space_before_token(!1),t.type===o.ATTRIBUTE&&"<"===a.tag_start_char&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(e.traverse_whitespace(t),n=n||0!==t.newlines),this._is_wrap_attributes_force&&a.attr_count>=this._options.wrap_attributes_min_attrs&&(i.type!==o.TAG_OPEN||this._is_wrap_attributes_force_expand_multiline)&&(e.print_newline(!1),n=!0)),e.print_token(t),n=n||e.previous_token_wrapped(),a.has_wrapped_attrs=n),l},m.prototype._handle_text=function(e,t,a){var o={text:t.text,type:"TK_CONTENT"};return a.custom_beautifier_name?this._print_custom_beatifier_text(e,t,a):a.is_unformatted||a.is_content_unformatted?e.add_raw_token(t):(e.traverse_whitespace(t),e.print_token(t)),o},m.prototype._print_custom_beatifier_text=function(e,t,a){var o=this;if(""!==t.text){var i,n=t.text,l=1,r="",s="";"javascript"===a.custom_beautifier_name&&"function"==typeof this._js_beautify?i=this._js_beautify:"css"===a.custom_beautifier_name&&"function"==typeof this._css_beautify?i=this._css_beautify:"html"===a.custom_beautifier_name&&(i=function(e,t){return new m(e,t,o._js_beautify,o._css_beautify).beautify()}),"keep"===this._options.indent_scripts?l=0:"separate"===this._options.indent_scripts&&(l=-e.indent_level);var c=e.get_full_indent(l);if(n=n.replace(/\n[ \t]*$/,""),"html"!==a.custom_beautifier_name&&"<"===n[0]&&n.match(/^(<!--|<!\[CDATA\[)/)){var d=/^(<!--[^\n]*|<!\[CDATA\[)(\n?)([ \t\n]*)([\s\S]*)(-->|]]>)$/.exec(n);if(!d)return void e.add_raw_token(t);r=c+d[1]+"\n",n=d[4],d[5]&&(s=c+d[5]),n=n.replace(/\n[ \t]*$/,""),(d[2]||-1!==d[3].indexOf("\n"))&&(d=d[3].match(/[ \t]+$/))&&(t.whitespace_before=d[0])}if(n)if(i){var u=function(){this.eol="\n"};u.prototype=this._options.raw_options,n=i(c+n,new u)}else{var f=t.whitespace_before;f&&(n=n.replace(new RegExp("\n("+f+")?","g"),"\n")),n=c+n.replace(/\n/g,"\n"+c)}r&&(n=n?r+n+"\n"+s:r+s),e.print_newline(!1),n&&(t.text=n,t.whitespace_before="",t.newlines=0,e.add_raw_token(t),e.print_newline(!0))}},m.prototype._handle_tag_open=function(e,t,a,i,n){var l=this._get_tag_open_token(t);if(!a.is_unformatted&&!a.is_content_unformatted||a.is_empty_element||t.type!==o.TAG_OPEN||l.is_start_tag?(e.traverse_whitespace(t),this._set_tag_position(e,t,l,a,i),l.is_inline_element||e.set_wrap_point(),e.print_token(t)):(e.add_raw_token(t),l.start_tag_token=this._tag_stack.try_pop(l.tag_name)),l.is_start_tag&&this._is_wrap_attributes_force){var r,s=0;do{(r=n.peek(s)).type===o.ATTRIBUTE&&(l.attr_count+=1),s+=1}while(r.type!==o.EOF&&r.type!==o.TAG_CLOSE)}return(this._is_wrap_attributes_force_aligned||this._is_wrap_attributes_aligned_multiple||this._is_wrap_attributes_preserve_aligned)&&(l.alignment_size=t.text.length+1),l.tag_complete||l.is_unformatted||(e.alignment_size=l.alignment_size),l};var u=function(e,t,a){if(this.parent=t||null,this.text="",this.type="TK_TAG_OPEN",this.tag_name="",this.is_inline_element=!1,this.is_unformatted=!1,this.is_content_unformatted=!1,this.is_empty_element=!1,this.is_start_tag=!1,this.is_end_tag=!1,this.indent_content=!1,this.multiline_content=!1,this.custom_beautifier_name=null,this.start_tag_token=null,this.attr_count=0,this.has_wrapped_attrs=!1,this.alignment_size=0,this.tag_complete=!1,this.tag_start_char="",this.tag_check="",a){var i;this.tag_start_char=a.text[0],this.text=a.text,"<"===this.tag_start_char?(i=a.text.match(/^<([^\s>]*)/),this.tag_check=i?i[1]:""):(i=a.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=i?i[1]:"",(a.text.startsWith("{{#>")||a.text.startsWith("{{~#>"))&&">"===this.tag_check[0]&&(">"===this.tag_check&&null!==a.next?this.tag_check=a.next.text.split(" ")[0]:this.tag_check=a.text.split(">")[1])),this.tag_check=this.tag_check.toLowerCase(),a.type===o.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||a.closed&&"/>"===a.closed.text;var n=2;"{"===this.tag_start_char&&this.text.length>=3&&"~"===this.text.charAt(2)&&(n=3),this.is_end_tag=this.is_end_tag||"{"===this.tag_start_char&&(!e.indent_handlebars||this.text.length<3||/[^#\^]/.test(this.text.charAt(n)))}else this.tag_complete=!0};m.prototype._get_tag_open_token=function(e){var t=new u(this._options,this._tag_stack.get_parser_token(),e);return t.alignment_size=this._options.wrap_attributes_indent_size,t.is_end_tag=t.is_end_tag||s(t.tag_check,this._options.void_elements),t.is_empty_element=t.tag_complete||t.is_start_tag&&t.is_end_tag,t.is_unformatted=!t.tag_complete&&s(t.tag_check,this._options.unformatted),t.is_content_unformatted=!t.is_empty_element&&s(t.tag_check,this._options.content_unformatted),t.is_inline_element=s(t.tag_name,this._options.inline)||this._options.inline_custom_elements&&t.tag_name.includes("-")||"{"===t.tag_start_char,t},m.prototype._set_tag_position=function(e,t,a,i,n){if(a.is_empty_element||(a.is_end_tag?a.start_tag_token=this._tag_stack.try_pop(a.tag_name):(this._do_optional_end_element(a)&&(a.is_inline_element||e.print_newline(!1)),this._tag_stack.record_tag(a),"script"!==a.tag_name&&"style"!==a.tag_name||a.is_unformatted||a.is_content_unformatted||(a.custom_beautifier_name=r(a.tag_check,t)))),s(a.tag_check,this._options.extra_liners)&&(e.print_newline(!1),e._output.just_added_blankline()||e.print_newline(!0)),a.is_empty_element){if("{"===a.tag_start_char&&"else"===a.tag_check)this._tag_stack.indent_to_tag(["if","unless","each"]),a.indent_content=!0,e.current_line_has_match(/{{#if/)||e.print_newline(!1);"!--"===a.tag_name&&n.type===o.TAG_CLOSE&&i.is_end_tag&&-1===a.text.indexOf("\n")||(a.is_inline_element||a.is_unformatted||e.print_newline(!1),this._calcluate_parent_multiline(e,a))}else if(a.is_end_tag){var l=!1;l=(l=a.start_tag_token&&a.start_tag_token.multiline_content)||!a.is_inline_element&&!(i.is_inline_element||i.is_unformatted)&&!(n.type===o.TAG_CLOSE&&a.start_tag_token===i)&&"TK_CONTENT"!==n.type,(a.is_content_unformatted||a.is_unformatted)&&(l=!1),l&&e.print_newline(!1)}else a.indent_content=!a.custom_beautifier_name,"<"===a.tag_start_char&&("html"===a.tag_name?a.indent_content=this._options.indent_inner_html:"head"===a.tag_name?a.indent_content=this._options.indent_head_inner_html:"body"===a.tag_name&&(a.indent_content=this._options.indent_body_inner_html)),a.is_inline_element||a.is_unformatted||"TK_CONTENT"===n.type&&!a.is_content_unformatted||e.print_newline(!1),this._calcluate_parent_multiline(e,a)},m.prototype._calcluate_parent_multiline=function(e,t){!t.parent||!e._output.just_added_newline()||(t.is_inline_element||t.is_unformatted)&&t.parent.is_inline_element||(t.parent.multiline_content=!0)};var f=["address","article","aside","blockquote","details","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hr","main","menu","nav","ol","p","pre","section","table","ul"],p=["a","audio","del","ins","map","noscript","video"];return m.prototype._do_optional_end_element=function(e){var t=null;if(!e.is_empty_element&&e.is_start_tag&&e.parent){if("body"===e.tag_name)t=t||this._tag_stack.try_pop("head");else if("li"===e.tag_name)t=t||this._tag_stack.try_pop("li",["ol","ul","menu"]);else if("dd"===e.tag_name||"dt"===e.tag_name)t=(t=t||this._tag_stack.try_pop("dt",["dl"]))||this._tag_stack.try_pop("dd",["dl"]);else if("p"===e.parent.tag_name&&-1!==f.indexOf(e.tag_name)){var a=e.parent.parent;a&&-1!==p.indexOf(a.tag_name)||(t=t||this._tag_stack.try_pop("p"))}else"rp"===e.tag_name||"rt"===e.tag_name?t=(t=t||this._tag_stack.try_pop("rt",["ruby","rtc"]))||this._tag_stack.try_pop("rp",["ruby","rtc"]):"optgroup"===e.tag_name?t=t||this._tag_stack.try_pop("optgroup",["select"]):"option"===e.tag_name?t=t||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):"colgroup"===e.tag_name?t=t||this._tag_stack.try_pop("caption",["table"]):"thead"===e.tag_name?t=(t=t||this._tag_stack.try_pop("caption",["table"]))||this._tag_stack.try_pop("colgroup",["table"]):"tbody"===e.tag_name||"tfoot"===e.tag_name?t=(t=(t=(t=t||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"===e.tag_name?t=(t=(t=t||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"!==e.tag_name&&"td"!==e.tag_name||(t=(t=t||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]))||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return e.parent=this._tag_stack.get_parser_token(),t}},St.Beautifier=m,St}function $t(){if(At)return Ne;At=1;var e=function(){if(ct)return xe.exports;ct=1;var e=ft().Beautifier,t=Fe().Options;return xe.exports=function(t,a){return new e(t,a).beautify()},xe.exports.defaultOptions=function(){return new t},xe.exports}(),t=_t(),a=function(){if(Vt)return Ct.exports;Vt=1;var e=It().Beautifier,t=Nt().Options;return Ct.exports=function(t,a,o,i){return new e(t,a,o,i).beautify()},Ct.exports.defaultOptions=function(){return new t},Ct.exports}();function o(o,i,n,l){return a(o,i,n=n||e,l=l||t)}return o.defaultOptions=a.defaultOptions,Ne.js=e,Ne.css=t,Ne.html=o,Ne}var Dt,zt=(Rt||(Rt=1,function(e){var t=$t();t.js_beautify=t.js,t.css_beautify=t.css,t.html_beautify=t.html,e.exports=function(e,t,a){var o=function(t,a){return e.js_beautify(t,a)};return o.js=e.js_beautify,o.css=t.css_beautify,o.html=a.html_beautify,o.js_beautify=e.js_beautify,o.css_beautify=t.css_beautify,o.html_beautify=a.html_beautify,o}(t,t,t)}(Ee)),Ee.exports),Ot=me(zt),Pt={exports:{}};var qt=(Dt||(Dt=1,function(e){var t=function(e){var t=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,a=0,o={},i={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof n?new n(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++a}),e.__id},clone:function e(t,a){var o,n;switch(a=a||{},i.util.type(t)){case"Object":if(n=i.util.objId(t),a[n])return a[n];for(var l in o={},a[n]=o,t)t.hasOwnProperty(l)&&(o[l]=e(t[l],a));return o;case"Array":return n=i.util.objId(t),a[n]?a[n]:(o=[],a[n]=o,t.forEach(function(t,i){o[i]=e(t,a)}),o);default:return t}},getLanguage:function(e){for(;e;){var a=t.exec(e.className);if(a)return a[1].toLowerCase();e=e.parentElement}return"none"},setLanguage:function(e,a){e.className=e.className.replace(RegExp(t,"gi"),""),e.classList.add("language-"+a)},currentScript:function(){if("undefined"==typeof document)return null;if(document.currentScript&&"SCRIPT"===document.currentScript.tagName)return document.currentScript;try{throw new Error}catch(o){var e=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(o.stack)||[])[1];if(e){var t=document.getElementsByTagName("script");for(var a in t)if(t[a].src==e)return t[a]}return null}},isActive:function(e,t,a){for(var o="no-"+t;e;){var i=e.classList;if(i.contains(t))return!0;if(i.contains(o))return!1;e=e.parentElement}return!!a}},languages:{plain:o,plaintext:o,text:o,txt:o,extend:function(e,t){var a=i.util.clone(i.languages[e]);for(var o in t)a[o]=t[o];return a},insertBefore:function(e,t,a,o){var n=(o=o||i.languages)[e],l={};for(var r in n)if(n.hasOwnProperty(r)){if(r==t)for(var s in a)a.hasOwnProperty(s)&&(l[s]=a[s]);a.hasOwnProperty(r)||(l[r]=n[r])}var c=o[e];return o[e]=l,i.languages.DFS(i.languages,function(t,a){a===c&&t!=e&&(this[t]=l)}),l},DFS:function e(t,a,o,n){n=n||{};var l=i.util.objId;for(var r in t)if(t.hasOwnProperty(r)){a.call(t,r,t[r],o||r);var s=t[r],c=i.util.type(s);"Object"!==c||n[l(s)]?"Array"!==c||n[l(s)]||(n[l(s)]=!0,e(s,a,r,n)):(n[l(s)]=!0,e(s,a,null,n))}}},plugins:{},highlightAll:function(e,t){i.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,a){var o={callback:a,container:e,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};i.hooks.run("before-highlightall",o),o.elements=Array.prototype.slice.apply(o.container.querySelectorAll(o.selector)),i.hooks.run("before-all-elements-highlight",o);for(var n,l=0;n=o.elements[l++];)i.highlightElement(n,!0===t,o.callback)},highlightElement:function(t,a,o){var n=i.util.getLanguage(t),l=i.languages[n];i.util.setLanguage(t,n);var r=t.parentElement;r&&"pre"===r.nodeName.toLowerCase()&&i.util.setLanguage(r,n);var s={element:t,language:n,grammar:l,code:t.textContent};function c(e){s.highlightedCode=e,i.hooks.run("before-insert",s),s.element.innerHTML=s.highlightedCode,i.hooks.run("after-highlight",s),i.hooks.run("complete",s),o&&o.call(s.element)}if(i.hooks.run("before-sanity-check",s),(r=s.element.parentElement)&&"pre"===r.nodeName.toLowerCase()&&!r.hasAttribute("tabindex")&&r.setAttribute("tabindex","0"),!s.code)return i.hooks.run("complete",s),void(o&&o.call(s.element));if(i.hooks.run("before-highlight",s),s.grammar)if(a&&e.Worker){var d=new Worker(i.filename);d.onmessage=function(e){c(e.data)},d.postMessage(JSON.stringify({language:s.language,code:s.code,immediateClose:!0}))}else c(i.highlight(s.code,s.grammar,s.language));else c(i.util.encode(s.code))},highlight:function(e,t,a){var o={code:e,grammar:t,language:a};if(i.hooks.run("before-tokenize",o),!o.grammar)throw new Error('The language "'+o.language+'" has no grammar.');return o.tokens=i.tokenize(o.code,o.grammar),i.hooks.run("after-tokenize",o),n.stringify(i.util.encode(o.tokens),o.language)},tokenize:function(e,t){var a=t.rest;if(a){for(var o in a)t[o]=a[o];delete t.rest}var i=new s;return c(i,i.head,e),r(e,i,t,i.head,0),function(e){for(var t=[],a=e.head.next;a!==e.tail;)t.push(a.value),a=a.next;return t}(i)},hooks:{all:{},add:function(e,t){var a=i.hooks.all;a[e]=a[e]||[],a[e].push(t)},run:function(e,t){var a=i.hooks.all[e];if(a&&a.length)for(var o,n=0;o=a[n++];)o(t)}},Token:n};function n(e,t,a,o){this.type=e,this.content=t,this.alias=a,this.length=0|(o||"").length}function l(e,t,a,o){e.lastIndex=t;var i=e.exec(a);if(i&&o&&i[1]){var n=i[1].length;i.index+=n,i[0]=i[0].slice(n)}return i}function r(e,t,a,o,s,m){for(var u in a)if(a.hasOwnProperty(u)&&a[u]){var f=a[u];f=Array.isArray(f)?f:[f];for(var p=0;p<f.length;++p){if(m&&m.cause==u+","+p)return;var h=f[p],g=h.inside,y=!!h.lookbehind,v=!!h.greedy,b=h.alias;if(v&&!h.pattern.global){var k=h.pattern.toString().match(/[imsuy]*$/)[0];h.pattern=RegExp(h.pattern.source,k+"g")}for(var _=h.pattern||h,w=o.next,C=s;w!==t.tail&&!(m&&C>=m.reach);C+=w.value.length,w=w.next){var S=w.value;if(t.length>e.length)return;if(!(S instanceof n)){var E,N=1;if(v){if(!(E=l(_,C,e,y))||E.index>=e.length)break;var x=E.index,B=E.index+E[0].length,V=C;for(V+=w.value.length;x>=V;)V+=(w=w.next).value.length;if(C=V-=w.value.length,w.value instanceof n)continue;for(var A=w;A!==t.tail&&(V<B||"string"==typeof A.value);A=A.next)N++,V+=A.value.length;N--,S=e.slice(C,V),E.index-=C}else if(!(E=l(_,0,S,y)))continue;x=E.index;var R=E[0],M=S.slice(0,x),T=S.slice(x+R.length),I=C+S.length;m&&I>m.reach&&(m.reach=I);var $=w.prev;if(M&&($=c(t,$,M),C+=M.length),d(t,$,N),w=c(t,$,new n(u,g?i.tokenize(R,g):R,b,R)),T&&c(t,w,T),N>1){var D={cause:u+","+p,reach:I};r(e,t,a,w.prev,C,D),m&&D.reach>m.reach&&(m.reach=D.reach)}}}}}}function s(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function c(e,t,a){var o=t.next,i={value:a,prev:t,next:o};return t.next=i,o.prev=i,e.length++,i}function d(e,t,a){for(var o=t.next,i=0;i<a&&o!==e.tail;i++)o=o.next;t.next=o,o.prev=t,e.length-=i}if(e.Prism=i,n.stringify=function e(t,a){if("string"==typeof t)return t;if(Array.isArray(t)){var o="";return t.forEach(function(t){o+=e(t,a)}),o}var n={type:t.type,content:e(t.content,a),tag:"span",classes:["token",t.type],attributes:{},language:a},l=t.alias;l&&(Array.isArray(l)?Array.prototype.push.apply(n.classes,l):n.classes.push(l)),i.hooks.run("wrap",n);var r="";for(var s in n.attributes)r+=" "+s+'="'+(n.attributes[s]||"").replace(/"/g,""")+'"';return"<"+n.tag+' class="'+n.classes.join(" ")+'"'+r+">"+n.content+"</"+n.tag+">"},!e.document)return e.addEventListener?(i.disableWorkerMessageHandler||e.addEventListener("message",function(t){var a=JSON.parse(t.data),o=a.language,n=a.code,l=a.immediateClose;e.postMessage(i.highlight(n,i.languages[o],o)),l&&e.close()},!1),i):i;var m=i.util.currentScript();function u(){i.manual||i.highlightAll()}if(m&&(i.filename=m.src,m.hasAttribute("data-manual")&&(i.manual=!0)),!i.manual){var f=document.readyState;"loading"===f||"interactive"===f&&m&&m.defer?document.addEventListener("DOMContentLoaded",u):window.requestAnimationFrame?window.requestAnimationFrame(u):window.setTimeout(u,16)}return i}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("vue"),t=require("vue-draggable-next"),a=require("vue3-apexcharts"),o=require("chart.js"),i=require("chartjs-chart-geo");function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function l(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(a){if("default"!==a){var o=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,o.get?o:{enumerable:!0,get:function(){return e[a]}})}}),t.default=e,Object.freeze(t)}var r=n(a),s=l(i),c={name:"HlxAccordion",props:{accordionData:{type:Array,default:()=>[]},direction:{type:String,default:"right"},multiple:{type:Boolean,default:!1},expand:{type:Boolean,default:!1},headerBorder:{type:Boolean,default:!1}},emits:["accordionopen","accordionclose"],data:()=>({unique:Date.now().toString(36)+Math.random().toString(36).substr(2,5)}),mounted(){this.expand&&document.querySelectorAll(".accordion-item")?.forEach(e=>{e?.children[0]?.children[1]?.children[0]?.classList?.remove("icon-angle-right-regular"),e?.children[0]?.children[1]?.children[0]?.classList?.add("icon-angle-down-regular"),e.children[1].style.display="flex",this.$emit("accordionopen")})},methods:{toggleView(e,t,a){0==a?"right icon-angle-right-regular"===document.querySelector("#arrow-"+t).className?(0==this.headerBorder&&(document.querySelectorAll(".accordion-header").forEach(e=>{e.classList.remove("noo-border")}),document.querySelector("#header-"+t)&&document.querySelector("#header-"+t).classList.add("noo-border")),document.querySelectorAll(".icon-angle-down-regular").forEach(e=>{"right icon-angle-down-regular"==e.className&&(document.querySelectorAll(".accordion-content").forEach(e=>{e.style.display="none"}),e.classList.remove("icon-angle-down-regular"),e.classList.add("icon-angle-right-regular"))}),document.querySelector("#arrow-"+t).classList.remove("icon-angle-right-regular"),document.querySelector("#arrow-"+t).classList.add("icon-angle-down-regular"),document.querySelector("#content-"+t).style.display="flex",this.$emit("accordionopen")):"right icon-angle-down-regular"===document.querySelector("#arrow-"+t).className&&(0==this.headerBorder&&(document.querySelectorAll(".accordion-header").forEach(e=>{e.classList.remove("noo-border")}),document.querySelector("#header-"+t)&&document.querySelector("#header-"+t).classList.add("noo-border")),document.querySelector("#arrow-"+t).classList.remove("icon-angle-down-regular"),document.querySelector("#arrow-"+t).classList.add("icon-angle-right-regular"),document.querySelector("#content-"+t).style.display="none",this.$emit("accordionclose")):"right icon-angle-right-regular"===document.querySelector("#arrow-"+t).className?(0==this.headerBorder&&document.querySelector("#header-"+t)&&document.querySelector("#header-"+t).classList.add("noo-border"),document.querySelector("#arrow-"+t).classList.remove("icon-angle-right-regular"),document.querySelector("#arrow-"+t).classList.add("icon-angle-down-regular"),document.querySelector("#content-"+t).style.display="flex",this.$emit("accordionopen")):"right icon-angle-down-regular"===document.querySelector("#arrow-"+t).className&&(document.querySelector("#header-"+t)&&document.querySelector("#header-"+t).classList.remove("noo-border"),document.querySelector("#arrow-"+t).classList.remove("icon-angle-down-regular"),document.querySelector("#arrow-"+t).classList.add("icon-angle-right-regular"),document.querySelector("#content-"+t).style.display="none",this.$emit("accordionclose"))}}};const d=["id","multiple"],m=["id"],u={key:0,style:{display:"flex"}},f=["id"],p={style:{width:"100%"}},h={key:1,style:{display:"flex"}},g=["id"],y=["id"];c.render=function(t,a,o,i,n,l){return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createCommentVNode(' <div class="accordion-container"> '),(e.openBlock(),e.createElementBlock("div",{id:["item-"+n.unique],key:n.unique,class:"accordion-item",multiple:o.multiple},[e.createElementVNode("div",{id:["header-"+n.unique],class:"accordion-header",onClick:a[0]||(a[0]=e=>l.toggleView(e,n.unique,o.multiple))},["left"==o.direction?(e.openBlock(),e.createElementBlock("div",u,[e.createElementVNode("i",{id:["arrow-"+n.unique],class:"right icon-angle-right-regular"},null,8,f)])):e.createCommentVNode("v-if",!0),e.createElementVNode("header",p,[e.renderSlot(t.$slots,"item-title")]),"right"==o.direction?(e.openBlock(),e.createElementBlock("div",h,[e.createElementVNode("i",{id:["arrow-"+n.unique],class:"right icon-angle-right-regular"},null,8,g)])):e.createCommentVNode("v-if",!0)],8,m),e.createElementVNode("div",{id:["content-"+n.unique],class:"accordion-content"},[e.renderSlot(t.$slots,"item-body")],8,y)],8,d)),e.createCommentVNode(" </div> ")],2112)},c.__file="src/components/AccordionComponent.vue";var v={name:"HlxAlertNotification",props:{notify:{type:Object,default:()=>({})},autoClose:{type:Boolean,default:()=>!0},delay:{type:Number,default:e=>e>3e3?e:2e3,validator:e=>e>3e3?e:2e3}},data:()=>({notifications:[],alertStatus:!1,typeData:""}),computed:{computedAlert(){return this.alertStatus}},watch:{notify:{handler(e){const t=(new Date).toISOString().replace(/[.\:-]/g,"")+crypto.randomUUID().toString(16).substring(1);Object.keys(e).length>0&&this.push({...e,id:t})},immediate:!0,deep:!0}},methods:{closeAlert(e){this.$refs["hlx-alert-"+e][0]?.classList.add("close"),setTimeout(()=>{this.notifications=this.notifications.filter(t=>t.id&&t.id!=e)},1e3)},push(e){this.notifications.push({...e}),this.autoClose&&setTimeout(()=>{this.$refs["hlx-alert-"+e.id][0]?.classList.add("close"),setTimeout(()=>{this.notifications.shift()},1e3)},this.delay+1e3*this.notifications.length)},icon(e){if(e)switch(e.toLowerCase()){case"danger":case"warning":return"icon-exclamation-circle-regular";case"primary":return"icon-info-circle-regular";default:return"icon-check-circle-regular"}return"tick-bg"}}};const b={key:0,class:"hlx-alert-wrapper"},k=["id"],_={class:"icon"},w={class:"text"},C={class:"alert-description"},S=["onClick"];v.render=function(t,a,o,i,n,l){return e.openBlock(),e.createBlock(e.Teleport,{to:"body",class:"alert-not"},[n.notifications.length>0?(e.openBlock(),e.createElementBlock("section",b,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.notifications,t=>(e.openBlock(),e.createElementBlock("div",{id:"alert"+t.id,ref_for:!0,ref:"hlx-alert-"+t.id,key:t,class:e.normalizeClass(["hlx alert",t?.type?"alert-"+t?.type.toLowerCase():"alert-success"])},[e.createElementVNode("span",_,[e.createElementVNode("i",{class:e.normalizeClass(l.icon(t.type))},null,2)]),e.createElementVNode("div",w,[e.createElementVNode("p",C,e.toDisplayString(t?.message),1)]),e.createElementVNode("button",{class:"close","aria-label":"close",onClick:e=>l.closeAlert(t.id)},[...a[0]||(a[0]=[e.createElementVNode("i",{class:"icon-times-filled"},null,-1)])],8,S)],10,k))),128))])):e.createCommentVNode("v-if",!0)])},v.__file="src/components/AlertComponent.vue";var E={name:"HlxBadge",props:{icon:{type:String,default:""},count:{type:Number,default:0}}};const N=["aria-label"],x={class:"icon-button__badge",style:{"font-size":"10px"}};E.render=function(t,a,o,i,n,l){return e.openBlock(),e.createElementBlock("button",{id:"badge",type:"button",class:"icon-button","aria-label":o.icon},[e.createElementVNode("span",{class:e.normalizeClass(o.icon)},null,2),e.createElementVNode("span",x,e.toDisplayString(o.count),1)],8,N)},E.__file="src/components/BadgeComponent.vue";var B={name:"HlxBreadcrumb",props:{labelValue:{type:String,default:"Back"},autoRoute:{type:Boolean,default:!1},type:{type:String,default:"back-breadcrumb"},items:{type:Array,required:!0},separator:{type:[String,Object],default:"/"}},emits:["path"],data:()=>({unique:Date.now().toString(36)+Math.random().toString(36).substr(2,5)}),computed:{isIconSeparator(){return"object"==typeof this.separator}},methods:{current(e){!0===this.autoRoute&&this.$router.back(),this.$emit("path",e)},tooltipover(e,t){let a=e,o=t;this.ellipsis(a,o)},tooltipleave(e,t){let a=e,o=t;this.ellipses(a,o)},ellipsis(e,t){this.$nextTick(()=>{const a=document.querySelector("#"+e);if(null!=a){if(a.clientWidth<a.scrollWidth)if("ellipsis"===(a.currentStyle||window.getComputedStyle(a)).textOverflow){const e=document.querySelector("."+t);let o=a.getBoundingClientRect().top,i=a.getBoundingClientRect().left+77;return e.style.display="block",e.style.top=o+"px",e.style.left=i+"px",!0}return!1}})},ellipses(e,t){this.$nextTick(()=>{const a=document.querySelector("#"+e);if(null!=a){if(a.clientWidth<a.scrollWidth)if("ellipsis"===(a.currentStyle||window.getComputedStyle(a)).textOverflow){return document.querySelector("."+t).style.display="none",!0}return!1}})}}};const V={class:"breadcrumb","aria-label":"Breadcrumb"},A={key:0},R=["onClick"],M=["id","onMouseover","onMouseleave"],T=["id","onMouseover","onMouseleave"],I={key:3,class:"breadcrumb-separator"},$={key:1};B.render=function(t,a,o,i,n,l){return e.openBlock(),e.createElementBlock("nav",V,["Pathway-breadcrumb"===o.type?(e.openBlock(),e.createElementBlock("ul",A,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.items,(t,a)=>(e.openBlock(),e.createElementBlock("li",{key:a,onClick:e=>l.current(t)},[null!=t.icon?(e.openBlock(),e.createElementBlock("i",{key:0,"aria-hidden":"true",class:e.normalizeClass(t.icon)},null,2)):e.createCommentVNode("v-if",!0),a===o.items.length-1?(e.openBlock(),e.createElementBlock("a",{key:1,id:"breadcrumb"+a+n.unique,style:{"white-space":"nowrap",overflow:"hidden","text-overflow":"ellipsis","min-width":"45px",width:"auto","max-width":"80px",display:"inline-block"},onMouseover:e=>l.tooltipover("breadcrumb"+a+n.unique,"tooltip-textbreadcrumb"+a+n.unique),onMouseleave:e=>l.tooltipleave("breadcrumb"+a+n.unique,"tooltip-textbreadcrumb"+a+n.unique)},[e.createTextVNode(e.toDisplayString(t.label)+" ",1),e.createElementVNode("p",{id:"tooltip-text1",class:e.normalizeClass("tooltip-textbreadcrumb"+a+n.unique)},e.toDisplayString(t.label),3)],40,M)):(e.openBlock(),e.createElementBlock("a",{key:2,id:"breadcrumb"+n.unique+a,class:"show-breadcrumb",style:{"white-space":"nowrap",overflow:"hidden","text-overflow":"ellipsis","min-width":"45px",width:"auto","max-width":"80px",display:"inline-block"},onMouseover:e=>l.tooltipover("breadcrumb"+n.unique+a,"tooltip-textbreadcrumb"+n.unique+a),onMouseleave:e=>l.tooltipleave("breadcrumb"+n.unique+a,"tooltip-textbreadcrumb"+n.unique+a)},[e.createTextVNode(e.toDisplayString(t.label)+" ",1),e.createElementVNode("p",{id:"tooltip-text1",class:e.normalizeClass("tooltip-textbreadcrumb"+n.unique+a)},e.toDisplayString(t.label),3)],40,T)),e.createCommentVNode(' <router-link :to="item.link" :class="{ disabled: index === items.length - 1 } " >{{ item.label }}</router-link> '),a<o.items.length-1?(e.openBlock(),e.createElementBlock("span",I,[l.isIconSeparator?(e.openBlock(),e.createElementBlock("i",{key:0,"aria-hidden":"true",class:e.normalizeClass(o.separator.icon)},null,2)):(e.openBlock(),e.createElementBlock("span",$,e.toDisplayString(o.separator),1))])):e.createCommentVNode("v-if",!0)],8,R))),128))])):e.createCommentVNode("v-if",!0),"back-breadcrumb"===o.type?(e.openBlock(),e.createElementBlock("div",{key:1,class:"back-breadcrumb",style:{display:"flex",cursor:"pointer","align-items":"center",gap:"8px","max-width":"100px"},onClick:a[0]||(a[0]=e=>l.current("back"))},[a[1]||(a[1]=e.createElementVNode("i",{style:{"font-weight":"800"},class:"icon-arrow-left-regular"},null,-1)),e.createElementVNode("p",null,e.toDisplayString(o.labelValue),1)])):e.createCommentVNode("v-if",!0)])},B.__file="src/components/BreadcrumbComponent.vue";var D={name:"HlxButton",props:{value:{type:String,default:"Hlx click :)"},type:{type:String,default:"button"},name:{type:String,default:"hlx-button"},target:{type:String,default:"_blank"},href:{type:String,default:void 0},disabled:{type:Boolean,default:!1},label:{type:String,default:"Button"}},computed:{primaryClass(){return this.disabled?"disabled-button":""}},watch:{disabled:{handler(e){e&&this.primaryClass},immediate:!0}},methods:{clicked(){this.href&&this.$refs["link-ele"].click()}}};const z=["value","type","name","aria-label"],O=["aria-label","href","target"];D.render=function(t,a,o,i,n,l){return e.openBlock(),e.createElementBlock("button",{id:"hlx-button-0009",ref:"hlx-button",value:o.value,type:o.type,name:o.name,class:e.normalizeClass([l.primaryClass,"hlx-button"]),"aria-label":o.label,onClick:a[0]||(a[0]=(...e)=>l.clicked&&l.clicked(...e))},[e.renderSlot(t.$slots,"default"),null!=o.href?(e.openBlock(),e.createElementBlock("a",{key:0,ref:"link-ele","aria-label":o.label,href:o.href,target:o.target},null,8,O)):e.createCommentVNode("v-if",!0)],10,z)},D.__file="src/components/ButtonComponent.vue";var P={name:"HlxCalendar",props:{disableWeekend:{type:Boolean,default:!1},dateFormatLanguage:{type:String,default:"en"},event:{type:[Array,PointerEvent],default:()=>[]},preValue:{type:[Date,String],default:""},startYear:{type:Number,default:1950},endYear:{type:Number,default:2050},holidayList:{type:Array,default:()=>[]}},emits:["selectedDate","formattedDate"],data:()=>({selectedMonth:"",selectedYear:"",selectedDay:"",formattedDate:"",staticDataDays:localStorage.getItem("dayDataShort")?JSON.parse(localStorage.getItem("dayDataShort")):{sun:"SUN",mon:"MON",tue:"TUE",wed:"WED",thu:"THU",fri:"FRI",sat:"SAT"},monthNames:localStorage.getItem("monthDataLong")?JSON.parse(localStorage.getItem("monthDataLong")):["January","February","March","April","May","June","July","August","September","October","November","December"]}),async mounted(){const e=document.querySelector(".calendar"),t=document.querySelector(".light");e.clientY=this.event.clientY,t.right=this.event.clientX+"px";const a=["January","February","March","April","May","June","July","August","September","October","November","December"],o=[];let i=this.startYear;const n=this.endYear;for(;i<=n;)o.push(i++);const l=e.querySelector(".month-list");o.forEach((e,t)=>{const a=document.createElement("div");a.innerHTML=`<div data-month="${t}" id="year${t}" class="idd${e}">${e}</div>`;let o=(new Date).getFullYear();o+=1,e===o&&(document.getElementById("year"+(t-1)).classList.add("theme-background"),document.getElementById("year"+(t-1)).style.color="white"),a.querySelector("div").onclick=()=>{l.classList.remove("show"),c.value=e,this.selectedMonth=s.value,this.selectedYear=c.value,this.generateCalendar(s.value,c.value)},l.appendChild(a)});e.querySelector("#year").onclick=()=>{l.classList.add("show"),document.querySelector(".selected-curr-year")?.classList?.remove("selected-curr-year");let e=document.querySelector(".idd"+this.selectedYear);e.classList.add("selected-curr-year"),e.scrollIntoView({behavior:"smooth",block:"start"})};let r="";if(""===this.preValue)r=new Date;else{const e=this.preValue.split("-");r=new Date(e[2],e[1]-1,e[0])}const s={value:r.getMonth()},c={value:r.getFullYear()};this.selectedMonth=s.value,this.selectedYear=c.value,this.generateCalendar(s.value,c.value);const d=document.querySelector(".calendar");340===d.offsetHeight||(d.style.marginTop="0px"),document.querySelector("#prev-year").onclick=()=>{"January"===a[s.value]?(s.value=11,--c.value):--s.value,this.selectedMonth=s.value,this.selectedYear=c.value,this.generateCalendar(s.value,c.value);const e=document.querySelector(".calendar");340===e.offsetHeight||(e.style.marginTop="0")},document.querySelector("#next-year").onclick=()=>{const e=document.querySelector(".calendar");"December"===a[s.value]?(s.value=0,++c.value):++s.value,this.selectedMonth=s.value,this.selectedYear=c.value,this.generateCalendar(s.value,c.value),340===e.offsetHeight||(e.style.marginTop="0")};document.querySelectorAll(".disable-weekend").forEach(e=>{e.addEventListener("click",e=>{e.stopPropagation(),e.preventDefault()})})},methods:{async translateStaticDataDays(e,t){const a=Object.keys(e).map(t=>e[t]),o=await this.languageTransferArray(a,t),i=Object.keys(e).reduce((e,t,a)=>(e[t]=o[a],e),{});return i},hlxUIKitCalendarOnClickHandler(e){try{""!==e.target.innerHTML&&e.target.innerHTML.length<=2&&(e.target.innerHTML.length<2?this.selectedDay=0+e.target.innerHTML:this.selectedDay=e.target.innerHTML,this.selectedDate=this.selectedDay+"-"+(this.selectedMonth+1<10?"0"+String(this.selectedMonth+1):this.selectedMonth+1)+"-"+this.selectedYear,this.$emit("selectedDate",this.selectedDate))}catch(e){this.$emit("selectedDate",null)}},isLeapYear:e=>e%4==0&&e%100!=0&&e%400!=0||e%100==0&&e%400==0,getFebDays(e){return this.isLeapYear(e)?29:28},generateCalendar(e,t){const a=document.querySelector(".calendar"),o=a.querySelector(".calendar-days"),i=a.querySelector("#year"),n=[31,this.getFebDays(t),31,30,31,30,31,31,30,31,30,31];o.innerHTML="";let l="";if(""===this.preValue)l=new Date;else{const e=this.preValue.split("-");l=new Date(e[2],e[1]-1,e[0])}t||(t=l.getFullYear());const r=`${this.monthNames[e]}`;a.querySelector("#month-picker").innerHTML=r,i.innerHTML=t;const s=new Date(t,e,1);for(let a=0;a<=n[e]+s.getDay()-1;a++){const i=document.createElement("div");if(a>=s.getDay()){i.classList.add("calendar-day-hover");const o=a-s.getDay()+1;if(o>0&&o<=n[e]){const a=`${o}-${e+1}-${t}`;i.classList.add(a),i.id="calender-day",this.holidayList.includes(a)&&(i.classList.remove("calendar-day-hover"),i.classList.add("disable-weekend")),i.innerHTML=o,o===l.getDate()&&t===l.getFullYear()&&e===l.getMonth()&&i.classList.add("curr-date")}}o.appendChild(i)}if(!0===this.disableWeekend){const e=document.querySelector(".calendar-days").children,t=[0,6,7,13,14,20,21,27,28,34,35];for(const a in t)e[t[a]]&&""!==e[t[a]].innerHTML&&(e[t[a]].classList.remove("calendar-day-hover"),e[t[a]].classList.add("disable-weekend"))}}}};const q={class:"light"},L={class:"calendar"},F={class:"calendar-body"},j={class:"calendar-week-day"};P.render=function(t,a,o,i,n,l){return e.openBlock(),e.createElementBlock("div",q,[e.createElementVNode("div",L,[a[1]||(a[1]=e.createStaticVNode('<div class="calendar-header"><div class="year-picker"><span id="prev-year" class="year-change"><p style="margin:0px;"><i class="icon-angle-left-regular"></i></p></span><span><span id="month-picker" class="month-picker">February</span><span id="year">2021</span></span><span id="next-year" class="year-change"><p style="margin:0px;"><i class="icon-angle-right-regular"></i></p></span></div></div>',1)),e.createElementVNode("div",F,[e.createElementVNode("div",j,[e.createElementVNode("div",null,[e.createCommentVNode(" SUN "),e.createTextVNode(" "+e.toDisplayString(n.staticDataDays?.sun),1)]),e.createElementVNode("div",null,[e.createCommentVNode(" MON "),e.createTextVNode(" "+e.toDisplayString(n.staticDataDays?.mon),1)]),e.createElementVNode("div",null,[e.createCommentVNode(" TUE "),e.createTextVNode(" "+e.toDisplayString(n.staticDataDays?.tue),1)]),e.createElementVNode("div",null,[e.createCommentVNode(" WED "),e.createTextVNode(" "+e.toDisplayString(n.staticDataDays?.wed),1)]),e.createElementVNode("div",null,[e.createCommentVNode(" THU "),e.createTextVNode(" "+e.toDisplayString(n.staticDataDays?.thu),1)]),e.createElementVNode("div",null,[e.createCommentVNode(" FRI "),e.createTextVNode(" "+e.toDisplayString(n.staticDataDays?.fri),1)]),e.createElementVNode("div",null,[e.createCommentVNode(" SAT "),e.createTextVNode(" "+e.toDisplayString(n.staticDataDays?.sat),1)])]),e.createElementVNode("div",{class:"calendar-days",onClick:a[0]||(a[0]=(...e)=>l.hlxUIKitCalendarOnClickHandler&&l.hlxUIKitCalendarOnClickHandler(...e))})]),e.createCommentVNode(' <div class="calendar-footer">\n\n </div> '),a[2]||(a[2]=e.createElementVNode("div",{class:"month-list"},null,-1))])])},P.__file="src/components/CalendarComponent.vue";var U={name:"HlxCard",components:{},props:{cardTitle:{type:Boolean,default:!1},cardFooter:{type:Boolean,default:!1},width:{type:Number,default:null},hover:{type:Boolean,default:!1},shadow:{type:Boolean,default:!1},padding:{type:Boolean,default:!1},active:{type:Boolean,default:!1},height:{type:Number,default:null}},computed:{headerHeight(){return this.cardTitle?60:0},footerHeight(){return this.cardFooter?60:0}},mounted(){}};const K={key:0,class:"card-title"},G={key:1,class:"card-footer"};U.render=function(t,a,o,i,n,l){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["card",{cardhover:o.hover,cardshadow:o.shadow,padding:o.padding,cardActive:o.active}]),style:e.normalizeStyle("width:"+o.width+"px; height:"+o.height+"px;")},[1==o.cardTitle?(e.openBlock(),e.createElementBlock("div",K,[e.createElementVNode("header",null,[e.renderSlot(t.$slots,"card-title",{},()=>[a[0]||(a[0]=e.createTextVNode("Card title",-1))])])])):e.createCommentVNode("v-if",!0),e.createElementVNode("div",{class:"card-body",style:e.normalizeStyle(o.cardTitle&&o.cardFooter?{height:o.height-l.headerHeight-l.footerHeight+"px"}:{height:"100%"})},[e.createCommentVNode(" {{this.card_body}} "),e.createElementVNode("main",null,[e.renderSlot(t.$slots,"card-body",{},()=>[a[1]||(a[1]=e.createTextVNode("Card body",-1))])])],4),1==o.cardFooter?(e.openBlock(),e.createElementBlock("div",G,[e.createCommentVNode(" {{this.cardFooter}} "),e.createElementVNode("footer",null,[e.renderSlot(t.$slots,"card-footer",{},()=>[a[2]||(a[2]=e.createTextVNode("Card footer",-1))])])])):e.createCommentVNode("v-if",!0)],6)},U.__file="src/components/CardsComponent.vue";var H={props:{show:{type:Boolean,default:!1},height:{type:Number,default:0},top:{type:Number,default:0},width:{type:Number,default:0},left:{type:Number,default:0},conditionvalue:{type:Number,default:0},conditionup:{type:Number,default:0},conditiondown:{type:Number,default:0},search:{type:String,default:""}},emits:["close-overlay"],data:()=>({unique:Date.now().toString(36)+Math.random().toString(36).substr(2,5),containertop:0,containerwidth:0,containerleft:0,containerheight:0}),watch:{search:{handler(e){1==this.show?this.$nextTick(this.updateOverlayPosition):this.resetOverlayPosition()}},show:{handler(e){1==e?this.$nextTick(this.updateOverlayPosition):this.resetOverlayPosition()}},top:{handler(e){this.containertop=e,1==this.show?this.$nextTick(this.updateOverlayPosition):this.resetOverlayPosition()},immediate:!0,deep:!0},left:{handler(e){this.containerleft=e},immediate:!0,deep:!0},width:{handler(e){this.containerwidth=e},immediate:!0,deep:!0}},methods:{resetOverlayPosition(){this.containertop=0,this.containerleft=0,this.containerwidth=0,this.containerheight=0},getClippingBoundary(){let e=this.$el?.parentElement;for(;e&&e!==document.body;){const t=window.getComputedStyle(e),a=`${t.overflow} ${t.overflowX} ${t.overflowY}`;if(/(auto|scroll|hidden|clip)/.test(a))return e.getBoundingClientRect();e=e.parentElement}return{top:0,bottom:window.innerHeight}},updateOverlayPosition(){const e=document.querySelector("#container-overlay"+this.unique);if(!e)return;this.containerheight=e.offsetHeight,this.containerleft=this.left,this.containerwidth=this.width;const t=this.getClippingBoundary(),a=t.bottom-this.top,o=this.top-t.top;this.top+this.conditiondown+this.containerheight>t.bottom&&o>a||a<this.conditionvalue?this.containertop=Math.max(t.top,this.top-(this.containerheight+this.conditionup)):this.containertop=this.top+this.conditiondown},emitfunction(e){this.$emit("close-overlay",e)}}};const W=["id"];H.render=function(t,a,o,i,n,l){return e.openBlock(),e.createElementBlock("div",{class:"outer-overlay",onClick:a[0]||(a[0]=(...e)=>l.emitfunction&&l.emitfunction(...e))},[e.createElementVNode("div",{id:"container-overlay"+n.unique,class:"container-overlay",style:e.normalizeStyle([{position:"fixed"},["width:"+n.containerwidth+"px","top:"+n.containertop+"px","left:"+n.containerleft+"px"]])},[e.renderSlot(t.$slots,"overlay")],12,W)])},H.__file="src/components/OverlayComponent.vue";var J={name:"HlxColorPalette",components:{hlxOverlay:H},props:{preValue:{type:String,default:"#000000"},highlightColor:{type:Boolean,default:!1}},emits:["customChange"],data:()=>({containerleft:0,containertop:0,unique:Date.now().toString(36)+Math.random().toString(36).substr(2,5),colorcontainer:!1,fill_color:!0,colorvalue:"#000000",recent:!1,recentvalue:"",recentcolor:[],colordata:[{"#ffffff":["#f2f2f2","#d9d9d9","#bfbfbf","#a6a6a6","#808080"]},{"#000000":["#808080","#595959","#404040","#262626","#0d0d0d"]},{"#e7e6e6":["#d0cece","#aeaaaa","#757171","#3a3838","#161616"]},{"#44546a":["#d6dce4","#acb9ca","#8497b0","#333f4f","#222b35"]},{"#4472c4":["#d9e1f2","#b4c6e7","#8ea9db","#305496","#203764"]},{"#ed7d31":["#fce4d6","#f8cbad","#f4b084","#c65911","#833c0c"]},{"#a5a5a5":["#ededed","#dbdbdb","#c9c9c9","#7b7b7b","#525252"]},{"#ffc000":["#fff2cc","#ffe699","#ffd966","#bf8f00","#806000"]},{"#5b9bd5":["#ddebf7","#bdd7ee","#9bc2e6","#2f75b5","#1f4e78"]},{"#70ad47":["#e2efda","#c6e0b4","#a9d08e","#548235","#375623"]}],standardcolor:["#c00000","#ff0000","#ffc000","#ffff00","#92d050","#00b050","#00b0f0","#0070c0","#002060","#7030a0"],colorpick:""}),watch:{preValue:{handler(e){""!=e&&(this.colorvalue=e,this.$emit("customChange",this.colorvalue))},immediate:!0,deep:!0}},mounted(){!0===this.highlightColor?this.fill_color=!1:this.fill_color=!0;for(let e=0;e<this.colordata.length;e++)for(let t=0;t<Object.values(this.colordata[e])[0].length;t++);document.addEventListener("click",e=>{"color-container"!=e.target.className&&"color-container-title"!=e.target.className&&"color-container-specific-color-checkbox-border"!=e.target.className&&"color-container-specific-color-checkbox-border-fill-color"!=e.target.className&&"color-container-specific-color"!=e.target.className&&"color-container-specific-color1"!=e.target.className&&"color-container-specific-color2"!=e.target.className&&"color-container-specific-color1-container"!=e.target.className&&"color-container2323"!=e.target.className&&"favcolor"!=e.target.className&&"color-palette-container"!=e.target.className&&"color-palette-icon"!=e.target.className&&"icon-color-fill"!=e.target.className&&"color-icon-border"!=e.target.className&&"color-palette-open-icon"!=e.target.className&&"icon-angle-down-regular"!=e.target.className&&(this.colorcontainer=!1)})},methods:{getcolorvalue(e){this.recent=!0,this.colorvalue=e.target.value,this.$emit("customChange",this.colorvalue),1!=this.recentcolor.includes(this.colorvalue)&&(document.querySelectorAll(".color-container-specific-color-checkbox-border").forEach(e=>{e.classList.remove("add-border")}),this.recentvalue=this.colorvalue,this.recentcolor.push(this.colorvalue))},getcolor(e){document.querySelectorAll(".color-container-specific-color-checkbox-border").forEach(e=>{e.classList.remove("add-border")}),"color-container-specific-color-checkbox-border-fill-color"===e.target.className?(this.colorvalue=e.target.style.background,this.$emit("customChange",this.colorvalue),e.target.parentElement.classList.add("add-border"),this.colorcontainer=!1):"color-container-specific-color-checkbox-border"===e.target.className&&(this.colorvalue=e.target.children[0].style.background,this.$emit("customChange",this.colorvalue),e.target.classList.add("add-border"),this.colorcontainer=!1),this.recent=!0,1!=this.recentcolor.includes(this.colorvalue)&&(document.querySelectorAll(".color-container-specific-color-checkbox-border").forEach(e=>{e.classList.remove("add-border")}),this.recentvalue=this.colorvalue,this.recentcolor.push(this.colorvalue))},colorpalette(){this.$nextTick(()=>{this.containerleft=document.getElementById("color-palette-open-icon"+this.unique).getBoundingClientRect().left+5,this.containertop=document.getElementById("color-palette-open-icon"+this.unique).getBoundingClientRect().top+50}),!1===this.colorcontainer?this.colorcontainer=!0:!0===this.colorcontainer&&(this.colorcontainer=!1)},colorpicker(){this.colorpick=!0}}};const Z={class:"color-palette-container"},Y={class:"color-palette-icon"},X={key:0,class:"icon-palette-regular"},Q={key:1,class:"highlight-container"},ee={key:0,class:"highlight-icon"},te=["id"],ae=["id"],oe={class:"color-container-specific-color"},ie={class:"color-container-specific-color1"},ne={class:"color-container-specific-color"},le={class:"color-container2323"},re=["value"],se={key:0,class:"color-container-title"},ce={class:"color-container-specific-color2"};J.render=function(t,a,o,i,n,l){const r=e.resolveComponent("hlx-overlay");return e.openBlock(),e.createElementBlock("div",Z,[e.createElementVNode("div",Y,[1==n.fill_color?(e.openBlock(),e.createElementBlock("i",X)):e.createCommentVNode("v-if",!0),!0===o.highlightColor?(e.openBlock(),e.createElementBlock("div",Q,[!0===o.highlightColor?(e.openBlock(),e.createElementBlock("p",ee,"A")):e.createCommentVNode("v-if",!0),e.createCommentVNode(' <div class="higlight-icon-border" v-if="this.highlightColor === true"></div> ')])):e.createCommentVNode("v-if",!0),e.createElementVNode("div",{class:"color-icon-border",style:e.normalizeStyle({background:n.colorvalue})},null,4)]),e.createElementVNode("button",{id:"color-palette-open-icon"+n.unique,"aria-dis":"",class:"color-palette-open-icon",onClick:a[0]||(a[0]=(...e)=>l.colorpalette&&l.colorpalette(...e))},[...a[7]||(a[7]=[e.createElementVNode("i",{class:"icon-angle-down-regular"},null,-1)])],8,te),n.colorcontainer?(e.openBlock(),e.createBlock(r,{key:0,show:n.colorcontainer,top:n.containertop,left:n.containerleft,width:100,conditionvalue:150,conditionup:55,onCloseOverlay:t.onClose},{overlay:e.withCtx(()=>[e.createElementVNode("div",{id:"color-container"+n.unique,class:"color-container"},[a[8]||(a[8]=e.createElementVNode("p",{class:"color-container-title"},"Theme Colors",-1)),e.createElementVNode("div",oe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.colordata,(t,o)=>(e.openBlock(),e.createElementBlock("div",{key:o,class:"color-container-specific-color-checkbox-border",onClick:a[1]||(a[1]=(...e)=>l.getcolor&&l.getcolor(...e))},[e.createElementVNode("button",{class:"color-container-specific-color-checkbox-border-fill-color",style:e.normalizeStyle({background:Object.keys(n.colordata[o])[0]})},null,4)]))),128))]),e.createElementVNode("button",ie,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.colordata,(t,o)=>(e.openBlock(),e.createElementBlock("div",{key:o,class:"color-container-specific-color1-container",onClick:a[2]||(a[2]=(...e)=>l.getcolor&&l.getcolor(...e))},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Object.values(n.colordata[o])[0].length,(t,a)=>(e.openBlock(),e.createElementBlock("div",{key:a,class:"color-container-specific-color-checkbox-border"},[e.createElementVNode("button",{class:"color-container-specific-color-checkbox-border-fill-color",style:e.normalizeStyle({background:Object.values(n.colordata[o])[0][a]})},null,4)]))),128))]))),128))]),a[9]||(a[9]=e.createElementVNode("p",{class:"color-container-title"},"Standard Colors",-1)),e.createElementVNode("button",ne,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.standardcolor,(t,o)=>(e.openBlock(),e.createElementBlock("div",{key:o,class:"color-container-specific-color-checkbox-border",onClick:a[3]||(a[3]=(...e)=>l.getcolor&&l.getcolor(...e))},[e.createElementVNode("button",{class:"color-container-specific-color-checkbox-border-fill-color",style:e.normalizeStyle({background:n.standardcolor[o]})},null,4)]))),128))]),e.createElementVNode("button",le,[e.createElementVNode("input",{id:"favcolor",type:"color",name:"favcolor",value:n.recentvalue,class:"favcolor",onChange:a[4]||(a[4]=(...e)=>l.getcolorvalue&&l.getcolorvalue(...e))},null,40,re),e.createElementVNode("p",{class:"color-container-title",onClick:a[5]||(a[5]=(...e)=>l.colorpicker&&l.colorpicker(...e))}," More Colors ")]),!0===n.recent?(e.openBlock(),e.createElementBlock("p",se," Recent color ")):e.createCommentVNode("v-if",!0),e.createElementVNode("div",ce,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.recentcolor,(t,o)=>(e.openBlock(),e.createElementBlock("div",{key:o,class:"color-container-specific-color-checkbox-border",onClick:a[6]||(a[6]=(...e)=>l.getcolor&&l.getcolor(...e))},[e.createElementVNode("button",{class:"color-container-specific-color-checkbox-border-fill-color",style:e.normalizeStyle({background:n.recentcolor[o]})},null,4)]))),128))])],8,ae)]),_:1},8,["show","top","left","onCloseOverlay"])):e.createCommentVNode("v-if",!0)])},J.__file="src/components/ColorpaletteComponent.vue";var de="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function me(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ue,fe={exports:{}};var pe,he,ge,ye,ve=(ue||(ue=1,pe=fe,he=["direction","boxSizing","width","height","overflowX","overflowY","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderStyle","paddingTop","paddingRight","paddingBottom","paddingLeft","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontSizeAdjust","lineHeight","fontFamily","textAlign","textTransform","textIndent","textDecoration","letterSpacing","wordSpacing","tabSize","MozTabSize"],ge="undefined"!=typeof window,ye=ge&&null!=window.mozInnerScreenX,pe.exports=function(e,t,a){if(!ge)throw new Error("textarea-caret-position#getCaretCoordinates should only be called in a browser");var o=a&&a.debug||!1;if(o){var i=document.querySelector("#input-textarea-caret-position-mirror-div");i&&i.parentNode.removeChild(i)}var n=document.createElement("div");n.id="input-textarea-caret-position-mirror-div",document.body.appendChild(n);var l=n.style,r=window.getComputedStyle?window.getComputedStyle(e):e.currentStyle,s="INPUT"===e.nodeName;l.whiteSpace="pre-wrap",s||(l.wordWrap="break-word"),l.position="absolute",o||(l.visibility="hidden"),he.forEach(function(e){s&&"lineHeight"===e?l.lineHeight=r.height:l[e]=r[e]}),ye?e.scrollHeight>parseInt(r.height)&&(l.overflowY="scroll"):l.overflow="hidden",n.textContent=e.value.substring(0,t),s&&(n.textContent=n.textContent.replace(/\s/g," "));var c=document.createElement("span");c.textContent=e.value.substring(t)||".",n.appendChild(c);var d={top:c.offsetTop+parseInt(r.borderTopWidth),left:c.offsetLeft+parseInt(r.borderLeftWidth),height:parseInt(r.lineHeight)};return o?c.style.backgroundColor="#aaa":document.body.removeChild(n),d}),fe.exports),be=me(ve);function ke(){return ke=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(e[o]=a[o])}return e},ke.apply(this,arguments)}var _e,we="undefined"!=typeof window&&navigator&&/Win/i.test(navigator.platform),Ce="undefined"!=typeof window&&navigator&&/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform),Se=e.defineComponent({props:{lineNumbers:{type:Boolean,default:!1},autoStyleLineNumbers:{type:Boolean,default:!0},readonly:{type:Boolean,default:!1},modelValue:{type:String,default:""},highlight:{type:Function,required:!0},tabSize:{type:Number,default:2},insertSpaces:{type:Boolean,default:!0},ignoreTabKey:{type:Boolean,default:!1},placeholder:{type:String,default:""}},data:function(){return{capture:!0,history:{stack:[],offset:-1},lineNumbersHeight:"20px",codeData:""}},watch:{modelValue:{immediate:!0,handler:function(e){this.codeData=e||""}},content:{immediate:!0,handler:function(){var e=this;this.lineNumbers&&this.$nextTick(function(){e.setLineNumbersHeight()})}},lineNumbers:function(){var e=this;this.$nextTick(function(){e.styleLineNumbers(),e.setLineNumbersHeight()})}},computed:{isEmpty:function(){return 0===this.codeData.length},content:function(){return this.highlight(this.codeData)+"<br />"},lineNumbersCount:function(){return this.codeData.split(/\r\n|\n/).length}},mounted:function(){this._recordCurrentState(),this.styleLineNumbers()},methods:{setLineNumbersHeight:function(){this.lineNumbersHeight=getComputedStyle(this.$refs.pre).height},styleLineNumbers:function(){if(this.lineNumbers&&this.autoStyleLineNumbers){var e=this.$refs.pre,t=this.$el.querySelector(".prism-editor__line-numbers"),a=window.getComputedStyle(e);this.$nextTick(function(){var o="border-top-left-radius",i="border-bottom-left-radius";if(t){t.style[o]=a[o],t.style[i]=a[i],e.style[o]="0",e.style[i]="0";["background-color","margin-top","padding-top","font-family","font-size","line-height"].forEach(function(e){t.style[e]=a[e]}),t.style["margin-bottom"]="-"+a["padding-top"]}})}},_recordCurrentState:function(){var e=this.$refs.textarea;if(e){var t=e.value,a=e.selectionStart,o=e.selectionEnd;this._recordChange({value:t,selectionStart:a,selectionEnd:o})}},_getLines:function(e,t){return e.substring(0,t).split("\n")},_applyEdits:function(e){var t=this.$refs.textarea,a=this.history.stack[this.history.offset];a&&t&&(this.history.stack[this.history.offset]=ke({},a,{selectionStart:t.selectionStart,selectionEnd:t.selectionEnd})),this._recordChange(e),this._updateInput(e)},_recordChange:function(e,t){void 0===t&&(t=!1);var a=this.history,o=a.stack,i=a.offset;if(o.length&&i>-1){this.history.stack=o.slice(0,i+1);var n=this.history.stack.length;if(n>100){var l=n-100;this.history.stack=o.slice(l,n),this.history.offset=Math.max(this.history.offset-l,0)}}var r=Date.now();if(t){var s=this.history.stack[this.history.offset];if(s&&r-s.timestamp<3e3){var c,d,m=/[^a-z0-9]([a-z0-9]+)$/i,u=null===(c=this._getLines(s.value,s.selectionStart).pop())||void 0===c?void 0:c.match(m),f=null===(d=this._getLines(e.value,e.selectionStart).pop())||void 0===d?void 0:d.match(m);if(u&&f&&f[1].startsWith(u[1]))return void(this.history.stack[this.history.offset]=ke({},e,{timestamp:r}))}}this.history.stack.push(ke({},e,{timestamp:r})),this.history.offset++},_updateInput:function(e){var t=this.$refs.textarea;t&&(t.value=e.value,t.selectionStart=e.selectionStart,t.selectionEnd=e.selectionEnd,this.$emit("update:modelValue",e.value))},handleChange:function(e){var t=e.target,a=t.value,o=t.selectionStart,i=t.selectionEnd;this._recordChange({value:a,selectionStart:o,selectionEnd:i},!0),this.$emit("update:modelValue",a)},_undoEdit:function(){var e=this.history,t=e.stack,a=e.offset,o=t[a-1];o&&(this._updateInput(o),this.history.offset=Math.max(a-1,0))},_redoEdit:function(){var e=this.history,t=e.stack,a=e.offset,o=t[a+1];o&&(this._updateInput(o),this.history.offset=Math.min(a+1,t.length-1))},handleKeyDown:function(e){var t=this.tabSize,a=this.insertSpaces,o=this.ignoreTabKey;if(this.$emit("keydown",e),!e.defaultPrevented){27===e.keyCode&&(e.target.blur(),this.$emit("blur",e));var i=e.target,n=i.value,l=i.selectionStart,r=i.selectionEnd,s=(a?" ":"\t").repeat(t);if(9===e.keyCode&&!o&&this.capture)if(e.preventDefault(),e.shiftKey){var c=this._getLines(n,l),d=c.length-1,m=this._getLines(n,r).length-1,u=n.split("\n").map(function(e,t){return t>=d&&t<=m&&e.startsWith(s)?e.substring(s.length):e}).join("\n");if(n!==u){var f=c[d];this._applyEdits({value:u,selectionStart:f.startsWith(s)?l-s.length:l,selectionEnd:r-(n.length-u.length)})}}else if(l!==r){var p=this._getLines(n,l),h=p.length-1,g=this._getLines(n,r).length-1,y=p[h];this._applyEdits({value:n.split("\n").map(function(e,t){return t>=h&&t<=g?s+e:e}).join("\n"),selectionStart:/\S/.test(y)?l+s.length:l,selectionEnd:r+s.length*(g-h+1)})}else{var v=l+s.length;this._applyEdits({value:n.substring(0,l)+s+n.substring(r),selectionStart:v,selectionEnd:v})}else if(8===e.keyCode){var b=l!==r;if(n.substring(0,l).endsWith(s)&&!b){e.preventDefault();var k=l-s.length;this._applyEdits({value:n.substring(0,l-s.length)+n.substring(r),selectionStart:k,selectionEnd:k})}}else if(13===e.keyCode){if(l===r){var _=this._getLines(n,l).pop(),w=null==_?void 0:_.match(/^\s+/);if(w&&w[0]){e.preventDefault();var C="\n"+w[0],S=l+C.length;this._applyEdits({value:n.substring(0,l)+C+n.substring(r),selectionStart:S,selectionEnd:S})}}}else if(57===e.keyCode||219===e.keyCode||222===e.keyCode||192===e.keyCode){var E;57===e.keyCode&&e.shiftKey?E=["(",")"]:219===e.keyCode?E=e.shiftKey?["{","}"]:["[","]"]:222===e.keyCode?E=e.shiftKey?['"','"']:["'","'"]:192!==e.keyCode||e.shiftKey||(E=["`","`"]),l!==r&&E&&(e.preventDefault(),this._applyEdits({value:n.substring(0,l)+E[0]+n.substring(l,r)+E[1]+n.substring(r),selectionStart:l,selectionEnd:r+2}))}else!(Ce?e.metaKey&&90===e.keyCode:e.ctrlKey&&90===e.keyCode)||e.shiftKey||e.altKey?(Ce?e.metaKey&&90===e.keyCode&&e.shiftKey:we?e.ctrlKey&&89===e.keyCode:e.ctrlKey&&90===e.keyCode&&e.shiftKey)&&!e.altKey?(e.preventDefault(),this._redoEdit()):77!==e.keyCode||!e.ctrlKey||Ce&&!e.shiftKey||(e.preventDefault(),this.capture=!this.capture):(e.preventDefault(),this._undoEdit())}}},render:function(){var t=this,a=e.h("div",{class:"prism-editor__line-width-calc",style:"height: 0px; visibility: hidden; pointer-events: none;"},"999"),o=e.h("div",{class:"prism-editor__line-numbers",style:{"min-height":this.lineNumbersHeight},"aria-hidden":"true"},[a,Array.from(Array(this.lineNumbersCount).keys()).map(function(t,a){return e.h("div",{class:"prism-editor__line-number token comment"},""+ ++a)})]),i=e.h("textarea",{ref:"textarea",onInput:this.handleChange,onKeydown:this.handleKeyDown,onClick:function(e){t.$emit("click",e)},onKeyup:function(e){t.$emit("keyup",e)},onFocus:function(e){t.$emit("focus",e)},onBlur:function(e){t.$emit("blur",e)},class:{"prism-editor__textarea":!0,"prism-editor__textarea--empty":this.isEmpty},spellCheck:"false",autocapitalize:"off",autocomplete:"off",autocorrect:"off","data-gramm":"false",placeholder:this.placeholder,"data-testid":"textarea",readonly:this.readonly,value:this.codeData}),n=e.h("pre",{ref:"pre",class:"prism-editor__editor","data-testid":"preview",innerHTML:this.content}),l=e.h("div",{class:"prism-editor__container"},[i,n]);return e.h("div",{class:"prism-editor-wrapper"},[this.lineNumbers&&o,l])}}),Ee={exports:{}},Ne={},xe={exports:{}},Be={},Ve={};function Ae(){if(_e)return Ve;function e(e){this.__parent=e,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 t(e,t){this.__cache=[""],this.__indent_size=e.indent_size,this.__indent_string=e.indent_char,e.indent_with_tabs||(this.__indent_string=new Array(e.indent_size+1).join(e.indent_char)),t=t||"",e.indent_level>0&&(t=new Array(e.indent_level+1).join(this.__indent_string)),this.__base_string=t,this.__base_string_length=t.length}function a(a,o){this.__indent_cache=new t(a,o),this.raw=!1,this._end_with_newline=a.end_with_newline,this.indent_size=a.indent_size,this.wrap_line_length=a.wrap_line_length,this.indent_empty_lines=a.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new e(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}return _e=1,e.prototype.clone_empty=function(){var t=new e(this.__parent);return t.set_indent(this.__indent_count,this.__alignment_count),t},e.prototype.item=function(e){return e<0?this.__items[this.__items.length+e]:this.__items[e]},e.prototype.has_match=function(e){for(var t=this.__items.length-1;t>=0;t--)if(this.__items[t].match(e))return!0;return!1},e.prototype.set_indent=function(e,t){this.is_empty()&&(this.__indent_count=e||0,this.__alignment_count=t||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},e.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},e.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},e.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var e=this.__parent.current_line;return e.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),e.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),e.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count," "===e.__items[0]&&(e.__items.splice(0,1),e.__character_count-=1),!0}return!1},e.prototype.is_empty=function(){return 0===this.__items.length},e.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},e.prototype.push=function(e){this.__items.push(e);var t=e.lastIndexOf("\n");-1!==t?this.__character_count=e.length-t:this.__character_count+=e.length},e.prototype.pop=function(){var e=null;return this.is_empty()||(e=this.__items.pop(),this.__character_count-=e.length),e},e.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},e.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},e.prototype.trim=function(){for(;" "===this.last();)this.__items.pop(),this.__character_count-=1},e.prototype.toString=function(){var e="";return this.is_empty()?this.__parent.indent_empty_lines&&(e=this.__parent.get_indent_string(this.__indent_count)):(e=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),e+=this.__items.join("")),e},t.prototype.get_indent_size=function(e,t){var a=this.__base_string_length;return t=t||0,e<0&&(a=0),a+=e*this.__indent_size,a+=t},t.prototype.get_indent_string=function(e,t){var a=this.__base_string;return t=t||0,e<0&&(e=0,a=""),t+=e*this.__indent_size,this.__ensure_cache(t),a+=this.__cache[t]},t.prototype.__ensure_cache=function(e){for(;e>=this.__cache.length;)this.__add_column()},t.prototype.__add_column=function(){var e=this.__cache.length,t=0,a="";this.__indent_size&&e>=this.__indent_size&&(e-=(t=Math.floor(e/this.__indent_size))*this.__indent_size,a=new Array(t+1).join(this.__indent_string)),e&&(a+=new Array(e+1).join(" ")),this.__cache.push(a)},a.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},a.prototype.get_line_number=function(){return this.__lines.length},a.prototype.get_indent_string=function(e,t){return this.__indent_cache.get_indent_string(e,t)},a.prototype.get_indent_size=function(e,t){return this.__indent_cache.get_indent_size(e,t)},a.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},a.prototype.add_new_line=function(e){return!(this.is_empty()||!e&&this.just_added_newline())&&(this.raw||this.__add_outputline(),!0)},a.prototype.get_code=function(e){this.trim(!0);var t=this.current_line.pop();t&&("\n"===t[t.length-1]&&(t=t.replace(/\n+$/g,"")),this.current_line.push(t)),this._end_with_newline&&this.__add_outputline();var a=this.__lines.join("\n");return"\n"!==e&&(a=a.replace(/[\n]/g,e)),a},a.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},a.prototype.set_indent=function(e,t){return e=e||0,t=t||0,this.next_line.set_indent(e,t),this.__lines.length>1?(this.current_line.set_indent(e,t),!0):(this.current_line.set_indent(),!1)},a.prototype.add_raw_token=function(e){for(var t=0;t<e.newlines;t++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(e.whitespace_before),this.current_line.push(e.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},a.prototype.add_token=function(e){this.__add_space_before_token(),this.current_line.push(e),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},a.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(" "))},a.prototype.remove_indent=function(e){for(var t=this.__lines.length;e<t;)this.__lines[e]._remove_indent(),e++;this.current_line._remove_wrap_indent()},a.prototype.trim=function(e){for(e=void 0!==e&&e,this.current_line.trim();e&&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},a.prototype.just_added_newline=function(){return this.current_line.is_empty()},a.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},a.prototype.ensure_empty_line_above=function(t,a){for(var o=this.__lines.length-2;o>=0;){var i=this.__lines[o];if(i.is_empty())break;if(0!==i.item(0).indexOf(t)&&i.item(-1)!==a){this.__lines.splice(o+1,0,new e(this)),this.previous_line=this.__lines[this.__lines.length-2];break}o--}},Ve.Output=a,Ve}var Re,Me={};function Te(){if(Re)return Me;return Re=1,Me.Token=function(e,t,a,o){this.type=e,this.text=t,this.comments_before=null,this.newlines=a||0,this.whitespace_before=o||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null},Me}var Ie,$e={};function De(){return Ie||(Ie=1,function(e){var t="\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a",a="\\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",o="\\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",i="\\\\u[0-9a-fA-F]{4}|\\\\u\\{[0-9a-fA-F]+\\}",n="(?:"+i+"|[\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a"+a+"])",l="(?:"+i+"|["+t+a+o+"])*";e.identifier=new RegExp(n+l,"g"),e.identifierStart=new RegExp(n),e.identifierMatch=new RegExp("(?:"+i+"|["+t+a+o+"])+"),e.newline=/[\n\r\u2028\u2029]/,e.lineBreak=new RegExp("\r\n|"+e.newline.source),e.allLineBreaks=new RegExp(e.lineBreak.source,"g")}($e)),$e}var ze,Oe,Pe={},qe={};function Le(){if(ze)return qe;function e(e,a){this.raw_options=t(e,a),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","angular","django","erb","handlebars","php","smarty"],["auto"])}function t(e,t){var o,i={};for(o in e=a(e))o!==t&&(i[o]=e[o]);if(t&&e[t])for(o in e[t])i[o]=e[t][o];return i}function a(e){var t,a={};for(t in e){a[t.replace(/-/g,"_")]=e[t]}return a}return ze=1,e.prototype._get_array=function(e,t){var a=this.raw_options[e],o=t||[];return"object"==typeof a?null!==a&&"function"==typeof a.concat&&(o=a.concat()):"string"==typeof a&&(o=a.split(/[^a-zA-Z0-9_\/\-]+/)),o},e.prototype._get_boolean=function(e,t){var a=this.raw_options[e];return void 0===a?!!t:!!a},e.prototype._get_characters=function(e,t){var a=this.raw_options[e],o=t||"";return"string"==typeof a&&(o=a.replace(/\\r/,"\r").replace(/\\n/,"\n").replace(/\\t/,"\t")),o},e.prototype._get_number=function(e,t){var a=this.raw_options[e];t=parseInt(t,10),isNaN(t)&&(t=0);var o=parseInt(a,10);return isNaN(o)&&(o=t),o},e.prototype._get_selection=function(e,t,a){var o=this._get_selection_list(e,t,a);if(1!==o.length)throw new Error("Invalid Option Value: The option '"+e+"' can only be one of the following values:\n"+t+"\nYou passed in: '"+this.raw_options[e]+"'");return o[0]},e.prototype._get_selection_list=function(e,t,a){if(!t||0===t.length)throw new Error("Selection list cannot be empty.");if(a=a||[t[0]],!this._is_valid_selection(a,t))throw new Error("Invalid Default Value!");var o=this._get_array(e,a);if(!this._is_valid_selection(o,t))throw new Error("Invalid Option Value: The option '"+e+"' can contain only the following values:\n"+t+"\nYou passed in: '"+this.raw_options[e]+"'");return o},e.prototype._is_valid_selection=function(e,t){return e.length&&t.length&&!e.some(function(e){return-1===t.indexOf(e)})},qe.Options=e,qe.normalizeOpts=a,qe.mergeOpts=t,qe}function Fe(){if(Oe)return Pe;Oe=1;var e=Le().Options,t=["before-newline","after-newline","preserve-newline"];function a(a){e.call(this,a,"js");var o=this.raw_options.brace_style||null;"expand-strict"===o?this.raw_options.brace_style="expand":"collapse-preserve-inline"===o?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",t),this.test_output_raw=this._get_boolean("test_output_raw"),this.jslint_happy&&(this.space_after_anon_function=!0)}return a.prototype=new e,Pe.Options=a,Pe}var je,Ue={},Ke={};function Ge(){if(je)return Ke;je=1;var e=RegExp.prototype.hasOwnProperty("sticky");function t(e){this.__input=e||"",this.__input_length=this.__input.length,this.__position=0}return t.prototype.restart=function(){this.__position=0},t.prototype.back=function(){this.__position>0&&(this.__position-=1)},t.prototype.hasNext=function(){return this.__position<this.__input_length},t.prototype.next=function(){var e=null;return this.hasNext()&&(e=this.__input.charAt(this.__position),this.__position+=1),e},t.prototype.peek=function(e){var t=null;return e=e||0,(e+=this.__position)>=0&&e<this.__input_length&&(t=this.__input.charAt(e)),t},t.prototype.__match=function(t,a){t.lastIndex=a;var o=t.exec(this.__input);return!o||e&&t.sticky||o.index!==a&&(o=null),o},t.prototype.test=function(e,t){return t=t||0,(t+=this.__position)>=0&&t<this.__input_length&&!!this.__match(e,t)},t.prototype.testChar=function(e,t){var a=this.peek(t);return e.lastIndex=0,null!==a&&e.test(a)},t.prototype.match=function(e){var t=this.__match(e,this.__position);return t?this.__position+=t[0].length:t=null,t},t.prototype.read=function(e,t,a){var o,i="";return e&&(o=this.match(e))&&(i+=o[0]),!t||!o&&e||(i+=this.readUntil(t,a)),i},t.prototype.readUntil=function(e,t){var a,o=this.__position;e.lastIndex=this.__position;var i=e.exec(this.__input);return i?(o=i.index,t&&(o+=i[0].length)):o=this.__input_length,a=this.__input.substring(this.__position,o),this.__position=o,a},t.prototype.readUntilAfter=function(e){return this.readUntil(e,!0)},t.prototype.get_regexp=function(t,a){var o=null,i="g";return a&&e&&(i="y"),"string"==typeof t&&""!==t?o=new RegExp(t,i):t&&(o=new RegExp(t.source,i)),o},t.prototype.get_literal_regexp=function(e){return RegExp(e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},t.prototype.peekUntilAfter=function(e){var t=this.__position,a=this.readUntilAfter(e);return this.__position=t,a},t.prototype.lookBack=function(e){var t=this.__position-1;return t>=e.length&&this.__input.substring(t-e.length,t).toLowerCase()===e},Ke.InputScanner=t,Ke}var He,We={},Je={};var Ze,Ye,Xe,Qe={},et={};function tt(){if(Ze)return et;function e(e,t){this._input=e,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,t&&(this._starting_pattern=this._input.get_regexp(t._starting_pattern,!0),this._match_pattern=this._input.get_regexp(t._match_pattern,!0),this._until_pattern=this._input.get_regexp(t._until_pattern),this._until_after=t._until_after)}return Ze=1,e.prototype.read=function(){var e=this._input.read(this._starting_pattern);return this._starting_pattern&&!e||(e+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),e},e.prototype.read_match=function(){return this._input.match(this._match_pattern)},e.prototype.until_after=function(e){var t=this._create();return t._until_after=!0,t._until_pattern=this._input.get_regexp(e),t._update(),t},e.prototype.until=function(e){var t=this._create();return t._until_after=!1,t._until_pattern=this._input.get_regexp(e),t._update(),t},e.prototype.starting_with=function(e){var t=this._create();return t._starting_pattern=this._input.get_regexp(e,!0),t._update(),t},e.prototype.matching=function(e){var t=this._create();return t._match_pattern=this._input.get_regexp(e,!0),t._update(),t},e.prototype._create=function(){return new e(this._input,this)},e.prototype._update=function(){},et.Pattern=e,et}function at(){if(Xe)return We;Xe=1;var e=Ge().InputScanner,t=Te().Token,a=function(){if(He)return Je;function e(e){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=e}return He=1,e.prototype.restart=function(){this.__position=0},e.prototype.isEmpty=function(){return 0===this.__tokens_length},e.prototype.hasNext=function(){return this.__position<this.__tokens_length},e.prototype.next=function(){var e=null;return this.hasNext()&&(e=this.__tokens[this.__position],this.__position+=1),e},e.prototype.peek=function(e){var t=null;return e=e||0,(e+=this.__position)>=0&&e<this.__tokens_length&&(t=this.__tokens[e]),t},e.prototype.add=function(e){this.__parent_token&&(e.parent=this.__parent_token),this.__tokens.push(e),this.__tokens_length+=1},Je.TokenStream=e,Je}().TokenStream,o=function(){if(Ye)return Qe;Ye=1;var e=tt().Pattern;function t(t,a){e.call(this,t,a),a?this._line_regexp=this._input.get_regexp(a._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}return t.prototype=new e,t.prototype.__set_whitespace_patterns=function(e,t){e+="\\t ",t+="\\n\\r",this._match_pattern=this._input.get_regexp("["+e+t+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+t+"]")},t.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var e=this._input.read(this._match_pattern);if(" "===e)this.whitespace_before_token=" ";else if(e){var t=this.__split(this._newline_regexp,e);this.newline_count=t.length-1,this.whitespace_before_token=t[this.newline_count]}return e},t.prototype.matching=function(e,t){var a=this._create();return a.__set_whitespace_patterns(e,t),a._update(),a},t.prototype._create=function(){return new t(this._input,this)},t.prototype.__split=function(e,t){e.lastIndex=0;for(var a=0,o=[],i=e.exec(t);i;)o.push(t.substring(a,i.index)),a=i.index+i[0].length,i=e.exec(t);return a<t.length?o.push(t.substring(a,t.length)):o.push(""),o},Qe.WhitespacePattern=t,Qe}().WhitespacePattern,i={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},n=function(t,a){this._input=new e(t),this._options=a||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new o(this._input)};return n.prototype.tokenize=function(){var e;this._input.restart(),this.__tokens=new a,this._reset();for(var o=new t(i.START,""),n=null,l=[],r=new a;o.type!==i.EOF;){for(e=this._get_next_token(o,n);this._is_comment(e);)r.add(e),e=this._get_next_token(o,n);r.isEmpty()||(e.comments_before=r,r=new a),e.parent=n,this._is_opening(e)?(l.push(n),n=e):n&&this._is_closing(e,n)&&(e.opened=n,n.closed=e,n=l.pop(),e.parent=n),e.previous=o,o.next=e,this.__tokens.add(e),o=e}return this.__tokens},n.prototype._is_first_token=function(){return this.__tokens.isEmpty()},n.prototype._reset=function(){},n.prototype._get_next_token=function(e,t){this._readWhitespace();var a=this._input.read(/.+/g);return a?this._create_token(i.RAW,a):this._create_token(i.EOF,"")},n.prototype._is_comment=function(e){return!1},n.prototype._is_opening=function(e){return!1},n.prototype._is_closing=function(e,t){return!1},n.prototype._create_token=function(e,a){return new t(e,a,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token)},n.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},We.Tokenizer=n,We.TOKEN=i,We}var ot,it={};function nt(){if(ot)return it;function e(e,t){e="string"==typeof e?e:e.source,t="string"==typeof t?t:t.source,this.__directives_block_pattern=new RegExp(e+/ beautify( \w+[:]\w+)+ /.source+t,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(e+/\sbeautify\signore:end\s/.source+t,"g")}return ot=1,e.prototype.get_directives=function(e){if(!e.match(this.__directives_block_pattern))return null;var t={};this.__directive_pattern.lastIndex=0;for(var a=this.__directive_pattern.exec(e);a;)t[a[1]]=a[2],a=this.__directive_pattern.exec(e);return t},e.prototype.readIgnored=function(e){return e.readUntilAfter(this.__directives_end_ignore_pattern)},it.Directives=e,it}var lt,rt,st,ct,dt={};function mt(){if(lt)return dt;lt=1;var e=tt().Pattern,t={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1,angular:!1};function a(a,o){e.call(this,a,o),this.__template_pattern=null,this._disabled=Object.assign({},t),this._excluded=Object.assign({},t),o&&(this.__template_pattern=this._input.get_regexp(o.__template_pattern),this._excluded=Object.assign(this._excluded,o._excluded),this._disabled=Object.assign(this._disabled,o._disabled));var i=new e(a);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}/)}}return a.prototype=new e,a.prototype._create=function(){return new a(this._input,this)},a.prototype._update=function(){this.__set_templated_pattern()},a.prototype.disable=function(e){var t=this._create();return t._disabled[e]=!0,t._update(),t},a.prototype.read_options=function(e){var a=this._create();for(var o in t)a._disabled[o]=-1===e.templating.indexOf(o);return a._update(),a},a.prototype.exclude=function(e){var t=this._create();return t._excluded[e]=!0,t._update(),t},a.prototype.read=function(){var e="";e=this._match_pattern?this._input.read(this._starting_pattern):this._input.read(this._starting_pattern,this.__template_pattern);for(var t=this._read_template();t;)this._match_pattern?t+=this._input.read(this._match_pattern):t+=this._input.readUntil(this.__template_pattern),e+=t,t=this._read_template();return this._until_after&&(e+=this._input.readUntilAfter(this._until_pattern)),e},a.prototype.__set_templated_pattern=function(){var e=[];this._disabled.php||e.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||e.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.angular||e.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||e.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(e.push(this.__patterns.django._starting_pattern.source),e.push(this.__patterns.django_value._starting_pattern.source),e.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||e.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&e.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+e.join("|")+")")},a.prototype._read_template=function(){var e="",t=this._input.peek();if("<"===t){var a=this._input.peek(1);this._disabled.php||this._excluded.php||"?"!==a||(e=e||this.__patterns.php.read()),this._disabled.erb||this._excluded.erb||"%"!==a||(e=e||this.__patterns.erb.read())}else"{"===t&&(this._disabled.handlebars||this._excluded.handlebars||(e=(e=(e=e||this.__patterns.handlebars_comment.read())||this.__patterns.handlebars_unescaped.read())||this.__patterns.handlebars.read()),this._disabled.django||(this._excluded.django||this._excluded.handlebars||(e=e||this.__patterns.django_value.read()),this._excluded.django||(e=(e=e||this.__patterns.django_comment.read())||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(e=(e=(e=e||this.__patterns.smarty_comment.read())||this.__patterns.smarty_literal.read())||this.__patterns.smarty.read()));return e},dt.TemplatablePattern=a,dt}function ut(){if(rt)return Ue;rt=1;var e=Ge().InputScanner,t=at().Tokenizer,a=at().TOKEN,o=nt().Directives,i=De(),n=tt().Pattern,l=mt().TemplatablePattern;function r(e,t){return-1!==t.indexOf(e)}var s={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:a.START,RAW:a.RAW,EOF:a.EOF},c=new o(/\/\*/,/\*\//),d=/0[xX][0123456789abcdefABCDEF_]*n?|0[oO][01234567_]*n?|0[bB][01_]*n?|\d[\d_]*n|(?:\.\d[\d_]*|\d[\d_]*\.?[\d_]*)(?:[eE][+-]?[\d_]+)?/,m=/[0-9]/,u=/[^\d\.]/,f=">>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "),p=">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";p=(p="\\?\\.(?!\\d) "+(p=p.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"))).replace(/ /g,"|");var h,g=new RegExp(p),y="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),v=y.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as","class","extends"]),b=new RegExp("^(?:"+v.join("|")+")$"),k=function(e,a){t.call(this,e,a),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var o=new n(this._input),r=new l(this._input).read_options(this._options);this.__patterns={template:r,identifier:r.starting_with(i.identifier).matching(i.identifierMatch),number:o.matching(d),punct:o.matching(g),comment:o.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:o.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:o.matching(/<!--/),html_comment_end:o.matching(/-->/),include:o.starting_with(/#include/).until_after(i.lineBreak),shebang:o.starting_with(/#!/).until_after(i.lineBreak),xml:o.matching(/[\s\S]*?<(\/?)([-a-zA-Z:0-9_.]+|{[^}]+?}|!\[CDATA\[[^\]]*?\]\]|)(\s*{[^}]+?}|\s+[-a-zA-Z:0-9_.]+|\s+[-a-zA-Z:0-9_.]+\s*=\s*('[^']*'|"[^"]*"|{([^{}]|{[^}]+?})+?}))*\s*(\/?)\s*>/),single_quote:r.until(/['\\\n\r\u2028\u2029]/),double_quote:r.until(/["\\\n\r\u2028\u2029]/),template_text:r.until(/[`\\$]/),template_expression:r.until(/[`}\\]/)}};return(k.prototype=new t)._is_comment=function(e){return e.type===s.COMMENT||e.type===s.BLOCK_COMMENT||e.type===s.UNKNOWN},k.prototype._is_opening=function(e){return e.type===s.START_BLOCK||e.type===s.START_EXPR},k.prototype._is_closing=function(e,t){return(e.type===s.END_BLOCK||e.type===s.END_EXPR)&&t&&("]"===e.text&&"["===t.text||")"===e.text&&"("===t.text||"}"===e.text&&"{"===t.text)},k.prototype._reset=function(){h=!1},k.prototype._get_next_token=function(e,t){var a=null;this._readWhitespace();var o=this._input.peek();return null===o?this._create_token(s.EOF,""):a=(a=(a=(a=(a=(a=(a=(a=(a=(a=a||this._read_non_javascript(o))||this._read_string(o))||this._read_pair(o,this._input.peek(1)))||this._read_word(e))||this._read_singles(o))||this._read_comment(o))||this._read_regexp(o,e))||this._read_xml(o,e))||this._read_punctuation())||this._create_token(s.UNKNOWN,this._input.next())},k.prototype._read_word=function(e){var t;return""!==(t=this.__patterns.identifier.read())?(t=t.replace(i.allLineBreaks,"\n"),e.type!==s.DOT&&(e.type!==s.RESERVED||"set"!==e.text&&"get"!==e.text)&&b.test(t)?"in"!==t&&"of"!==t||e.type!==s.WORD&&e.type!==s.STRING?this._create_token(s.RESERVED,t):this._create_token(s.OPERATOR,t):this._create_token(s.WORD,t)):""!==(t=this.__patterns.number.read())?this._create_token(s.WORD,t):void 0},k.prototype._read_singles=function(e){var t=null;return"("===e||"["===e?t=this._create_token(s.START_EXPR,e):")"===e||"]"===e?t=this._create_token(s.END_EXPR,e):"{"===e?t=this._create_token(s.START_BLOCK,e):"}"===e?t=this._create_token(s.END_BLOCK,e):";"===e?t=this._create_token(s.SEMICOLON,e):"."===e&&u.test(this._input.peek(1))?t=this._create_token(s.DOT,e):","===e&&(t=this._create_token(s.COMMA,e)),t&&this._input.next(),t},k.prototype._read_pair=function(e,t){var a=null;return"#"===e&&"{"===t&&(a=this._create_token(s.START_BLOCK,e+t)),a&&(this._input.next(),this._input.next()),a},k.prototype._read_punctuation=function(){var e=this.__patterns.punct.read();if(""!==e)return"="===e?this._create_token(s.EQUALS,e):"?."===e?this._create_token(s.DOT,e):this._create_token(s.OPERATOR,e)},k.prototype._read_non_javascript=function(e){var t="";if("#"===e){if(this._is_first_token()&&(t=this.__patterns.shebang.read()))return this._create_token(s.UNKNOWN,t.trim()+"\n");if(t=this.__patterns.include.read())return this._create_token(s.UNKNOWN,t.trim()+"\n");e=this._input.next();var a="#";if(this._input.hasNext()&&this._input.testChar(m)){do{a+=e=this._input.next()}while(this._input.hasNext()&&"#"!==e&&"="!==e);return"#"===e||("["===this._input.peek()&&"]"===this._input.peek(1)?(a+="[]",this._input.next(),this._input.next()):"{"===this._input.peek()&&"}"===this._input.peek(1)&&(a+="{}",this._input.next(),this._input.next())),this._create_token(s.WORD,a)}this._input.back()}else if("<"===e&&this._is_first_token()){if(t=this.__patterns.html_comment_start.read()){for(;this._input.hasNext()&&!this._input.testChar(i.newline);)t+=this._input.next();return h=!0,this._create_token(s.COMMENT,t)}}else if(h&&"-"===e&&(t=this.__patterns.html_comment_end.read()))return h=!1,this._create_token(s.COMMENT,t);return null},k.prototype._read_comment=function(e){var t=null;if("/"===e){var a="";if("*"===this._input.peek(1)){a=this.__patterns.block_comment.read();var o=c.get_directives(a);o&&"start"===o.ignore&&(a+=c.readIgnored(this._input)),a=a.replace(i.allLineBreaks,"\n"),(t=this._create_token(s.BLOCK_COMMENT,a)).directives=o}else"/"===this._input.peek(1)&&(a=this.__patterns.comment.read(),t=this._create_token(s.COMMENT,a))}return t},k.prototype._read_string=function(t){if("`"===t||"'"===t||'"'===t){var a=this._input.next();return this.has_char_escapes=!1,a+="`"===t?this._read_string_recursive("`",!0,"${"):this._read_string_recursive(t),this.has_char_escapes&&this._options.unescape_strings&&(a=function(t){var a="",o=0,i=new e(t),n=null;for(;i.hasNext();)if((n=i.match(/([\s]|[^\\]|\\\\)+/g))&&(a+=n[0]),"\\"===i.peek()){if(i.next(),"x"===i.peek())n=i.match(/x([0-9A-Fa-f]{2})/g);else{if("u"!==i.peek()){a+="\\",i.hasNext()&&(a+=i.next());continue}(n=i.match(/u([0-9A-Fa-f]{4})/g))||(n=i.match(/u\{([0-9A-Fa-f]+)\}/g))}if(!n)return t;if((o=parseInt(n[1],16))>126&&o<=255&&0===n[0].indexOf("x"))return t;a+=o>=0&&o<32||o>1114111?"\\"+n[0]:34===o||39===o||92===o?"\\"+String.fromCharCode(o):String.fromCharCode(o)}return a}(a)),this._input.peek()===t&&(a+=this._input.next()),a=a.replace(i.allLineBreaks,"\n"),this._create_token(s.STRING,a)}return null},k.prototype._allow_regexp_or_xml=function(e){return e.type===s.RESERVED&&r(e.text,["return","case","throw","else","do","typeof","yield"])||e.type===s.END_EXPR&&")"===e.text&&e.opened.previous.type===s.RESERVED&&r(e.opened.previous.text,["if","while","for"])||r(e.type,[s.COMMENT,s.START_EXPR,s.START_BLOCK,s.START,s.END_BLOCK,s.OPERATOR,s.EQUALS,s.EOF,s.SEMICOLON,s.COMMA])},k.prototype._read_regexp=function(e,t){if("/"===e&&this._allow_regexp_or_xml(t)){for(var a=this._input.next(),o=!1,n=!1;this._input.hasNext()&&(o||n||this._input.peek()!==e)&&!this._input.testChar(i.newline);)a+=this._input.peek(),o?o=!1:(o="\\"===this._input.peek(),"["===this._input.peek()?n=!0:"]"===this._input.peek()&&(n=!1)),this._input.next();return this._input.peek()===e&&(a+=this._input.next(),a+=this._input.read(i.identifier)),this._create_token(s.STRING,a)}return null},k.prototype._read_xml=function(e,t){if(this._options.e4x&&"<"===e&&this._allow_regexp_or_xml(t)){var a="",o=this.__patterns.xml.read_match();if(o){for(var n=o[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),l=0===n.indexOf("{"),r=0;o;){var c=!!o[1],d=o[2];if(!(!!o[o.length-1]||"![CDATA["===d.slice(0,8))&&(d===n||l&&d.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(c?--r:++r),a+=o[0],r<=0)break;o=this.__patterns.xml.read_match()}return o||(a+=this._input.match(/[\s\S]*/g)[0]),a=a.replace(i.allLineBreaks,"\n"),this._create_token(s.STRING,a)}}return null},k.prototype._read_string_recursive=function(e,t,a){var o,n;"'"===e?n=this.__patterns.single_quote:'"'===e?n=this.__patterns.double_quote:"`"===e?n=this.__patterns.template_text:"}"===e&&(n=this.__patterns.template_expression);for(var l=n.read(),r="";this._input.hasNext();){if((r=this._input.next())===e||!t&&i.newline.test(r)){this._input.back();break}"\\"===r&&this._input.hasNext()?("x"===(o=this._input.peek())||"u"===o?this.has_char_escapes=!0:"\r"===o&&"\n"===this._input.peek(1)&&this._input.next(),r+=this._input.next()):a&&("${"===a&&"$"===r&&"{"===this._input.peek()&&(r+=this._input.next()),a===r&&(r+="`"===e?this._read_string_recursive("}",t,"`"):this._read_string_recursive("`",t,"${"),this._input.hasNext()&&(r+=this._input.next()))),l+=r+=n.read()}return l},Ue.Tokenizer=k,Ue.TOKEN=s,Ue.positionable_operators=f.slice(),Ue.line_starters=y.slice(),Ue}function ft(){if(st)return Be;st=1;var e=Ae().Output,t=Te().Token,a=De(),o=Fe().Options,i=ut().Tokenizer,n=ut().line_starters,l=ut().positionable_operators,r=ut().TOKEN;function s(e,t){return-1!==t.indexOf(e)}function c(e){return e.replace(/^\s+/g,"")}function d(e,t){return e&&e.type===r.RESERVED&&e.text===t}function m(e,t){return e&&e.type===r.RESERVED&&s(e.text,t)}var u=["case","return","do","if","throw","else","await","break","continue","async"],f=function(e){for(var t={},a=0;a<e.length;a++)t[e[a].replace(/-/g,"_")]=e[a];return t}(["before-newline","after-newline","preserve-newline"]),p=[f.before_newline,f.preserve_newline],h="BlockStatement",g="Statement",y="ObjectLiteral",v="ArrayLiteral",b="ForInitializer",k="Conditional",_="Expression";function w(e,t){t.multiline_frame||t.mode===b||t.mode===k||e.remove_indent(t.start_line_index)}function C(e){return e===v}function S(e){return s(e,[_,b,k])}function E(e,t){t=t||{},this._source_text=e||"",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 o(t)}E.prototype.create_flags=function(e,a){var o=0;return e&&(o=e.indentation_level,!this._output.just_added_newline()&&e.line_indent_level>o&&(o=e.line_indent_level)),{mode:a,parent:e,last_token:e?e.last_token:new t(r.START_BLOCK,""),last_word:e?e.last_word:"",declaration_statement:!1,declaration_assignment:!1,multiline_frame:!1,inline_frame:!1,if_block:!1,else_block:!1,class_start_block:!1,do_block:!1,do_while:!1,import_block:!1,in_case_statement:!1,in_case:!1,case_body:!1,case_block:!1,indentation_level:o,alignment:0,line_indent_level:e?e.line_indent_level:o,start_line_index:this._output.get_line_number(),ternary_depth:0}},E.prototype._reset=function(t){var a=t.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new e(this._options,a),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(h);var o=new i(t,this._options);return this._tokens=o.tokenize(),t},E.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var e=this._reset(this._source_text),t=this._options.eol;"auto"===this._options.eol&&(t="\n",e&&a.lineBreak.test(e||"")&&(t=e.match(a.lineBreak)[0]));for(var o=this._tokens.next();o;)this.handle_token(o),this._last_last_text=this._flags.last_token.text,this._flags.last_token=o,o=this._tokens.next();return this._output.get_code(t)},E.prototype.handle_token=function(e,t){e.type===r.START_EXPR?this.handle_start_expr(e):e.type===r.END_EXPR?this.handle_end_expr(e):e.type===r.START_BLOCK?this.handle_start_block(e):e.type===r.END_BLOCK?this.handle_end_block(e):e.type===r.WORD||e.type===r.RESERVED?this.handle_word(e):e.type===r.SEMICOLON?this.handle_semicolon(e):e.type===r.STRING?this.handle_string(e):e.type===r.EQUALS?this.handle_equals(e):e.type===r.OPERATOR?this.handle_operator(e):e.type===r.COMMA?this.handle_comma(e):e.type===r.BLOCK_COMMENT?this.handle_block_comment(e,t):e.type===r.COMMENT?this.handle_comment(e,t):e.type===r.DOT?this.handle_dot(e):e.type===r.EOF?this.handle_eof(e):(e.type,r.UNKNOWN,this.handle_unknown(e,t))},E.prototype.handle_whitespace_and_comments=function(e,t){var a=e.newlines,o=this._options.keep_array_indentation&&C(this._flags.mode);if(e.comments_before)for(var i=e.comments_before.next();i;)this.handle_whitespace_and_comments(i,t),this.handle_token(i,t),i=e.comments_before.next();if(o)for(var n=0;n<a;n+=1)this.print_newline(n>0,t);else if(this._options.max_preserve_newlines&&a>this._options.max_preserve_newlines&&(a=this._options.max_preserve_newlines),this._options.preserve_newlines&&a>1){this.print_newline(!1,t);for(var l=1;l<a;l+=1)this.print_newline(!0,t)}};var N=["async","break","continue","return","throw","yield"];return E.prototype.allow_wrap_or_preserved_newline=function(e,t){if(t=void 0!==t&&t,!this._output.just_added_newline()){var a=this._options.preserve_newlines&&e.newlines||t;if(s(this._flags.last_token.text,l)||s(e.text,l)){var o=s(this._flags.last_token.text,l)&&s(this._options.operator_position,p)||s(e.text,l);a=a&&o}if(a)this.print_newline(!1,!0);else if(this._options.wrap_line_length){if(m(this._flags.last_token,N))return;this._output.set_wrap_point()}}},E.prototype.print_newline=function(e,t){if(!t&&";"!==this._flags.last_token.text&&","!==this._flags.last_token.text&&"="!==this._flags.last_token.text&&(this._flags.last_token.type!==r.OPERATOR||"--"===this._flags.last_token.text||"++"===this._flags.last_token.text))for(var a=this._tokens.peek();!(this._flags.mode!==g||this._flags.if_block&&d(a,"else")||this._flags.do_block);)this.restore_mode();this._output.add_new_line(e)&&(this._flags.multiline_frame=!0)},E.prototype.print_token_line_indentation=function(e){this._output.just_added_newline()&&(this._options.keep_array_indentation&&e.newlines&&("["===e.text||C(this._flags.mode))?(this._output.current_line.set_indent(-1),this._output.current_line.push(e.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))},E.prototype.print_token=function(e){if(this._output.raw)this._output.add_raw_token(e);else{if(this._options.comma_first&&e.previous&&e.previous.type===r.COMMA&&this._output.just_added_newline()&&","===this._output.previous_line.last()){var t=this._output.previous_line.pop();this._output.previous_line.is_empty()&&(this._output.previous_line.push(t),this._output.trim(!0),this._output.current_line.pop(),this._output.trim()),this.print_token_line_indentation(e),this._output.add_token(","),this._output.space_before_token=!0}this.print_token_line_indentation(e),this._output.non_breaking_space=!0,this._output.add_token(e.text),this._output.previous_token_wrapped&&(this._flags.multiline_frame=!0)}},E.prototype.indent=function(){this._flags.indentation_level+=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},E.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))},E.prototype.set_mode=function(e){this._flags?(this._flag_store.push(this._flags),this._previous_flags=this._flags):this._previous_flags=this.create_flags(null,e),this._flags=this.create_flags(this._previous_flags,e),this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},E.prototype.restore_mode=function(){this._flag_store.length>0&&(this._previous_flags=this._flags,this._flags=this._flag_store.pop(),this._previous_flags.mode===g&&w(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},E.prototype.start_of_object_property=function(){return this._flags.parent.mode===y&&this._flags.mode===g&&(":"===this._flags.last_token.text&&0===this._flags.ternary_depth||m(this._flags.last_token,["get","set"]))},E.prototype.start_of_statement=function(e){var t=!1;return!!(t=(t=(t=(t=(t=(t=(t=t||m(this._flags.last_token,["var","let","const"])&&e.type===r.WORD)||d(this._flags.last_token,"do"))||!(this._flags.parent.mode===y&&this._flags.mode===g)&&m(this._flags.last_token,N)&&!e.newlines)||d(this._flags.last_token,"else")&&!(d(e,"if")&&!e.comments_before))||this._flags.last_token.type===r.END_EXPR&&(this._previous_flags.mode===b||this._previous_flags.mode===k))||this._flags.last_token.type===r.WORD&&this._flags.mode===h&&!this._flags.in_case&&!("--"===e.text||"++"===e.text)&&"function"!==this._last_last_text&&e.type!==r.WORD&&e.type!==r.RESERVED)||this._flags.mode===y&&(":"===this._flags.last_token.text&&0===this._flags.ternary_depth||m(this._flags.last_token,["get","set"])))&&(this.set_mode(g),this.indent(),this.handle_whitespace_and_comments(e,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(e,m(e,["do","for","if","while"])),!0)},E.prototype.handle_start_expr=function(e){this.start_of_statement(e)||this.handle_whitespace_and_comments(e);var t=_;if("["===e.text){if(this._flags.last_token.type===r.WORD||")"===this._flags.last_token.text)return m(this._flags.last_token,n)&&(this._output.space_before_token=!0),this.print_token(e),this.set_mode(t),this.indent(),void(this._options.space_in_paren&&(this._output.space_before_token=!0));t=v,C(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()),s(this._flags.last_token.type,[r.START_EXPR,r.END_EXPR,r.WORD,r.OPERATOR,r.DOT])||(this._output.space_before_token=!0)}else{if(this._flags.last_token.type===r.RESERVED)"for"===this._flags.last_token.text?(this._output.space_before_token=this._options.space_before_conditional,t=b):s(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,t=k):s(this._flags.last_word,["await","async"])?this._output.space_before_token=!0:"import"===this._flags.last_token.text&&""===e.whitespace_before?this._output.space_before_token=!1:(s(this._flags.last_token.text,n)||"catch"===this._flags.last_token.text)&&(this._output.space_before_token=!0);else if(this._flags.last_token.type===r.EQUALS||this._flags.last_token.type===r.OPERATOR)this.start_of_object_property()||this.allow_wrap_or_preserved_newline(e);else if(this._flags.last_token.type===r.WORD){this._output.space_before_token=!1;var a=this._tokens.peek(-3);if(this._options.space_after_named_function&&a){var o=this._tokens.peek(-4);m(a,["async","function"])||"*"===a.text&&m(o,["async","function"])?this._output.space_before_token=!0:this._flags.mode===y?"{"!==a.text&&","!==a.text&&("*"!==a.text||"{"!==o.text&&","!==o.text)||(this._output.space_before_token=!0):this._flags.parent&&this._flags.parent.class_start_block&&(this._output.space_before_token=!0)}}else this.allow_wrap_or_preserved_newline(e);(this._flags.last_token.type===r.RESERVED&&("function"===this._flags.last_word||"typeof"===this._flags.last_word)||"*"===this._flags.last_token.text&&(s(this._last_last_text,["function","yield"])||this._flags.mode===y&&s(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===r.START_BLOCK?this.print_newline():this._flags.last_token.type!==r.END_EXPR&&this._flags.last_token.type!==r.START_EXPR&&this._flags.last_token.type!==r.END_BLOCK&&"."!==this._flags.last_token.text&&this._flags.last_token.type!==r.COMMA||this.allow_wrap_or_preserved_newline(e,e.newlines),this.print_token(e),this.set_mode(t),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()},E.prototype.handle_end_expr=function(e){for(;this._flags.mode===g;)this.restore_mode();this.handle_whitespace_and_comments(e),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(e,"]"===e.text&&C(this._flags.mode)&&!this._options.keep_array_indentation),this._options.space_in_paren&&(this._flags.last_token.type!==r.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(e),this.restore_mode(),w(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===k&&(this._previous_flags.mode=_,this._flags.do_block=!1,this._flags.do_while=!1)},E.prototype.handle_start_block=function(e){this.handle_whitespace_and_comments(e);var t=this._tokens.peek(),a=this._tokens.peek(1);"switch"===this._flags.last_word&&this._flags.last_token.type===r.END_EXPR?(this.set_mode(h),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(h):a&&(s(a.text,[":",","])&&s(t.type,[r.STRING,r.WORD,r.RESERVED])||s(t.text,["get","set","..."])&&s(a.type,[r.WORD,r.RESERVED]))?s(this._last_last_text,["class","interface"])&&!s(a.text,[":",","])?this.set_mode(h):this.set_mode(y):this._flags.last_token.type===r.OPERATOR&&"=>"===this._flags.last_token.text?this.set_mode(h):s(this._flags.last_token.type,[r.EQUALS,r.START_EXPR,r.COMMA,r.OPERATOR])||m(this._flags.last_token,["return","throw","import","default"])?this.set_mode(y):this.set_mode(h),this._flags.last_token&&m(this._flags.last_token.previous,["class","extends"])&&(this._flags.class_start_block=!0);var o=!t.comments_before&&"}"===t.text,i=o&&"function"===this._flags.last_word&&this._flags.last_token.type===r.END_EXPR;if(this._options.brace_preserve_inline){var n=0,l=null;this._flags.inline_frame=!0;do{if(n+=1,(l=this._tokens.peek(n-1)).newlines){this._flags.inline_frame=!1;break}}while(l.type!==r.EOF&&(l.type!==r.END_BLOCK||l.opened!==e))}("expand"===this._options.brace_style||"none"===this._options.brace_style&&e.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==r.OPERATOR&&(i||this._flags.last_token.type===r.EQUALS||m(this._flags.last_token,u)&&"else"!==this._flags.last_token.text)?this._output.space_before_token=!0:this.print_newline(!1,!0):(!C(this._previous_flags.mode)||this._flags.last_token.type!==r.START_EXPR&&this._flags.last_token.type!==r.COMMA||((this._flags.last_token.type===r.COMMA||this._options.space_in_paren)&&(this._output.space_before_token=!0),(this._flags.last_token.type===r.COMMA||this._flags.last_token.type===r.START_EXPR&&this._flags.inline_frame)&&(this.allow_wrap_or_preserved_newline(e),this._previous_flags.multiline_frame=this._previous_flags.multiline_frame||this._flags.multiline_frame,this._flags.multiline_frame=!1)),this._flags.last_token.type!==r.OPERATOR&&this._flags.last_token.type!==r.START_EXPR&&(s(this._flags.last_token.type,[r.START_BLOCK,r.SEMICOLON])&&!this._flags.inline_frame?this.print_newline():this._output.space_before_token=!0)),this.print_token(e),this.indent(),o||this._options.brace_preserve_inline&&this._flags.inline_frame||this.print_newline()},E.prototype.handle_end_block=function(e){for(this.handle_whitespace_and_comments(e);this._flags.mode===g;)this.restore_mode();var t=this._flags.last_token.type===r.START_BLOCK;this._flags.inline_frame&&!t?this._output.space_before_token=!0:"expand"===this._options.brace_style?t||this.print_newline():t||(C(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(e)},E.prototype.handle_word=function(e){if(e.type===r.RESERVED)if(s(e.text,["set","get"])&&this._flags.mode!==y)e.type=r.WORD;else if("import"===e.text&&s(this._tokens.peek().text,["(","."]))e.type=r.WORD;else if(s(e.text,["as","from"])&&!this._flags.import_block)e.type=r.WORD;else if(this._flags.mode===y){":"===this._tokens.peek().text&&(e.type=r.WORD)}if(this.start_of_statement(e)?m(this._flags.last_token,["var","let","const"])&&e.type===r.WORD&&(this._flags.declaration_statement=!0):!e.newlines||S(this._flags.mode)||this._flags.last_token.type===r.OPERATOR&&"--"!==this._flags.last_token.text&&"++"!==this._flags.last_token.text||this._flags.last_token.type===r.EQUALS||!this._options.preserve_newlines&&m(this._flags.last_token,["var","let","const","set","get"])?this.handle_whitespace_and_comments(e):(this.handle_whitespace_and_comments(e),this.print_newline()),this._flags.do_block&&!this._flags.do_while){if(d(e,"while"))return this._output.space_before_token=!0,this.print_token(e),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&&d(e,"else"))this._flags.else_block=!0;else{for(;this._flags.mode===g;)this.restore_mode();this._flags.if_block=!1,this._flags.else_block=!1}if(this._flags.in_case_statement&&m(e,["case","default"]))return this.print_newline(),this._flags.case_block||!this._flags.case_body&&!this._options.jslint_happy||this.deindent(),this._flags.case_body=!1,this.print_token(e),void(this._flags.in_case=!0);if(this._flags.last_token.type!==r.COMMA&&this._flags.last_token.type!==r.START_EXPR&&this._flags.last_token.type!==r.EQUALS&&this._flags.last_token.type!==r.OPERATOR||this.start_of_object_property()||s(this._flags.last_token.text,["+","-"])&&":"===this._last_last_text&&this._flags.parent.mode===y||this.allow_wrap_or_preserved_newline(e),d(e,"function"))return(s(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!s(this._flags.last_token.text,["(","[","{",":","=",","])&&this._flags.last_token.type!==r.OPERATOR)&&(this._output.just_added_blankline()||e.comments_before||(this.print_newline(),this.print_newline(!0))),this._flags.last_token.type===r.RESERVED||this._flags.last_token.type===r.WORD?m(this._flags.last_token,["get","set","new","export"])||m(this._flags.last_token,N)||d(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===r.OPERATOR||"="===this._flags.last_token.text?this._output.space_before_token=!0:(this._flags.multiline_frame||!S(this._flags.mode)&&!C(this._flags.mode))&&this.print_newline(),this.print_token(e),void(this._flags.last_word=e.text);var t="NONE";(this._flags.last_token.type===r.END_BLOCK?this._previous_flags.inline_frame?t="SPACE":m(e,["else","catch","finally","from"])?"expand"===this._options.brace_style||"end-expand"===this._options.brace_style||"none"===this._options.brace_style&&e.newlines?t="NEWLINE":(t="SPACE",this._output.space_before_token=!0):t="NEWLINE":this._flags.last_token.type===r.SEMICOLON&&this._flags.mode===h?t="NEWLINE":this._flags.last_token.type===r.SEMICOLON&&S(this._flags.mode)?t="SPACE":this._flags.last_token.type===r.STRING?t="NEWLINE":this._flags.last_token.type===r.RESERVED||this._flags.last_token.type===r.WORD||"*"===this._flags.last_token.text&&(s(this._last_last_text,["function","yield"])||this._flags.mode===y&&s(this._last_last_text,["{",","]))?t="SPACE":this._flags.last_token.type===r.START_BLOCK?t=this._flags.inline_frame?"SPACE":"NEWLINE":this._flags.last_token.type===r.END_EXPR&&(this._output.space_before_token=!0,t="NEWLINE"),m(e,n)&&")"!==this._flags.last_token.text&&(t=this._flags.inline_frame||"else"===this._flags.last_token.text||"export"===this._flags.last_token.text?"SPACE":"NEWLINE"),m(e,["else","catch","finally"]))?(this._flags.last_token.type!==r.END_BLOCK||this._previous_flags.mode!==h||"expand"===this._options.brace_style||"end-expand"===this._options.brace_style||"none"===this._options.brace_style&&e.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"===t?m(this._flags.last_token,u)||"declare"===this._flags.last_token.text&&m(e,["var","let","const"])?this._output.space_before_token=!0:this._flags.last_token.type!==r.END_EXPR?this._flags.last_token.type===r.START_EXPR&&m(e,["var","let","const"])||":"===this._flags.last_token.text||(d(e,"if")&&d(e.previous,"else")?this._output.space_before_token=!0:this.print_newline()):m(e,n)&&")"!==this._flags.last_token.text&&this.print_newline():this._flags.multiline_frame&&C(this._flags.mode)&&","===this._flags.last_token.text&&"}"===this._last_last_text?this.print_newline():"SPACE"===t&&(this._output.space_before_token=!0);!e.previous||e.previous.type!==r.WORD&&e.previous.type!==r.RESERVED||(this._output.space_before_token=!0),this.print_token(e),this._flags.last_word=e.text,e.type===r.RESERVED&&("do"===e.text?this._flags.do_block=!0:"if"===e.text?this._flags.if_block=!0:"import"===e.text?this._flags.import_block=!0:this._flags.import_block&&d(e,"from")&&(this._flags.import_block=!1))},E.prototype.handle_semicolon=function(e){this.start_of_statement(e)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(e);for(var t=this._tokens.peek();!(this._flags.mode!==g||this._flags.if_block&&d(t,"else")||this._flags.do_block);)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(e)},E.prototype.handle_string=function(e){(!e.text.startsWith("`")||0!==e.newlines||""!==e.whitespace_before||")"!==e.previous.text&&this._flags.last_token.type!==r.WORD)&&(this.start_of_statement(e)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(e),this._flags.last_token.type===r.RESERVED||this._flags.last_token.type===r.WORD||this._flags.inline_frame?this._output.space_before_token=!0:this._flags.last_token.type===r.COMMA||this._flags.last_token.type===r.START_EXPR||this._flags.last_token.type===r.EQUALS||this._flags.last_token.type===r.OPERATOR?this.start_of_object_property()||this.allow_wrap_or_preserved_newline(e):!e.text.startsWith("`")||this._flags.last_token.type!==r.END_EXPR||"]"!==e.previous.text&&")"!==e.previous.text||0!==e.newlines?this.print_newline():this._output.space_before_token=!0)),this.print_token(e)},E.prototype.handle_equals=function(e){this.start_of_statement(e)||this.handle_whitespace_and_comments(e),this._flags.declaration_statement&&(this._flags.declaration_assignment=!0),this._output.space_before_token=!0,this.print_token(e),this._output.space_before_token=!0},E.prototype.handle_comma=function(e){this.handle_whitespace_and_comments(e,!0),this.print_token(e),this._output.space_before_token=!0,this._flags.declaration_statement?(S(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(e)):this._flags.mode===y||this._flags.mode===g&&this._flags.parent.mode===y?(this._flags.mode===g&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(e)},E.prototype.handle_operator=function(e){var t="*"===e.text&&(m(this._flags.last_token,["function","yield"])||s(this._flags.last_token.type,[r.START_BLOCK,r.COMMA,r.END_BLOCK,r.SEMICOLON])),a=s(e.text,["-","+"])&&(s(this._flags.last_token.type,[r.START_BLOCK,r.START_EXPR,r.EQUALS,r.OPERATOR])||s(this._flags.last_token.text,n)||","===this._flags.last_token.text);if(this.start_of_statement(e));else{var o=!t;this.handle_whitespace_and_comments(e,o)}if("*"!==e.text||this._flags.last_token.type!==r.DOT)if("::"!==e.text)if(s(e.text,["-","+"])&&this.start_of_object_property())this.print_token(e);else{if(this._flags.last_token.type===r.OPERATOR&&s(this._options.operator_position,p)&&this.allow_wrap_or_preserved_newline(e),":"===e.text&&this._flags.in_case)return this.print_token(e),this._flags.in_case=!1,this._flags.case_body=!0,void(this._tokens.peek().type!==r.START_BLOCK?(this.indent(),this.print_newline(),this._flags.case_block=!1):(this._flags.case_block=!0,this._output.space_before_token=!0));var i=!0,c=!0,d=!1;if(":"===e.text?0===this._flags.ternary_depth?i=!1:(this._flags.ternary_depth-=1,d=!0):"?"===e.text&&(this._flags.ternary_depth+=1),!a&&!t&&this._options.preserve_newlines&&s(e.text,l)){var y=":"===e.text,v=y&&d,b=y&&!d;switch(this._options.operator_position){case f.before_newline:return this._output.space_before_token=!b,this.print_token(e),y&&!v||this.allow_wrap_or_preserved_newline(e),void(this._output.space_before_token=!0);case f.after_newline:return this._output.space_before_token=!0,!y||v?this._tokens.peek().newlines?this.print_newline(!1,!0):this.allow_wrap_or_preserved_newline(e):this._output.space_before_token=!1,this.print_token(e),void(this._output.space_before_token=!0);case f.preserve_newline:return b||this.allow_wrap_or_preserved_newline(e),i=!(this._output.just_added_newline()||b),this._output.space_before_token=i,this.print_token(e),void(this._output.space_before_token=!0)}}if(t){this.allow_wrap_or_preserved_newline(e),i=!1;var k=this._tokens.peek();c=k&&s(k.type,[r.WORD,r.RESERVED])}else if("..."===e.text)this.allow_wrap_or_preserved_newline(e),i=this._flags.last_token.type===r.START_BLOCK,c=!1;else if(s(e.text,["--","++","!","~"])||a){if(this._flags.last_token.type!==r.COMMA&&this._flags.last_token.type!==r.START_EXPR||this.allow_wrap_or_preserved_newline(e),i=!1,c=!1,e.newlines&&("--"===e.text||"++"===e.text||"~"===e.text)){var _=m(this._flags.last_token,u)&&e.newlines;_&&(this._previous_flags.if_block||this._previous_flags.else_block)&&this.restore_mode(),this.print_newline(_,!0)}";"===this._flags.last_token.text&&S(this._flags.mode)&&(i=!0),this._flags.last_token.type===r.RESERVED?i=!0:this._flags.last_token.type===r.END_EXPR?i=!("]"===this._flags.last_token.text&&("--"===e.text||"++"===e.text)):this._flags.last_token.type===r.OPERATOR&&(i=s(e.text,["--","-","++","+"])&&s(this._flags.last_token.text,["--","-","++","+"]),s(e.text,["+","-"])&&s(this._flags.last_token.text,["--","++"])&&(c=!0)),(this._flags.mode!==h||this._flags.inline_frame)&&this._flags.mode!==g||"{"!==this._flags.last_token.text&&";"!==this._flags.last_token.text||this.print_newline()}this._output.space_before_token=this._output.space_before_token||i,this.print_token(e),this._output.space_before_token=c}else this.print_token(e);else this.print_token(e)},E.prototype.handle_block_comment=function(e,t){return this._output.raw?(this._output.add_raw_token(e),void(e.directives&&"end"===e.directives.preserve&&(this._output.raw=this._options.test_output_raw))):e.directives?(this.print_newline(!1,t),this.print_token(e),"start"===e.directives.preserve&&(this._output.raw=!0),void this.print_newline(!1,!0)):a.newline.test(e.text)||e.newlines?void this.print_block_commment(e,t):(this._output.space_before_token=!0,this.print_token(e),void(this._output.space_before_token=!0))},E.prototype.print_block_commment=function(e,t){var o,i=function(e){for(var t=[],o=(e=e.replace(a.allLineBreaks,"\n")).indexOf("\n");-1!==o;)t.push(e.substring(0,o)),o=(e=e.substring(o+1)).indexOf("\n");return e.length&&t.push(e),t}(e.text),n=!1,l=!1,r=e.whitespace_before,s=r.length;if(this.print_newline(!1,t),this.print_token_line_indentation(e),this._output.add_token(i[0]),this.print_newline(!1,t),i.length>1){for(n=function(e,t){for(var a=0;a<e.length;a++)if(e[a].trim().charAt(0)!==t)return!1;return!0}(i=i.slice(1),"*"),l=function(e,t){for(var a,o=0,i=e.length;o<i;o++)if((a=e[o])&&0!==a.indexOf(t))return!1;return!0}(i,r),n&&(this._flags.alignment=1),o=0;o<i.length;o++)n?(this.print_token_line_indentation(e),this._output.add_token(c(i[o]))):l&&i[o]?(this.print_token_line_indentation(e),this._output.add_token(i[o].substring(s))):(this._output.current_line.set_indent(-1),this._output.add_token(i[o])),this.print_newline(!1,t);this._flags.alignment=0}},E.prototype.handle_comment=function(e,t){e.newlines?this.print_newline(!1,t):this._output.trim(!0),this._output.space_before_token=!0,this.print_token(e),this.print_newline(!1,t)},E.prototype.handle_dot=function(e){this.start_of_statement(e)||this.handle_whitespace_and_comments(e,!0),this._flags.last_token.text.match("^[0-9]+$")&&(this._output.space_before_token=!0),m(this._flags.last_token,u)?this._output.space_before_token=!1:this.allow_wrap_or_preserved_newline(e,")"===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(e)},E.prototype.handle_unknown=function(e,t){this.print_token(e),"\n"===e.text[e.text.length-1]&&this.print_newline(!1,t)},E.prototype.handle_eof=function(e){for(;this._flags.mode===g;)this.restore_mode();this.handle_whitespace_and_comments(e)},Be.Beautifier=E,Be}var pt,ht,gt,yt={exports:{}},vt={},bt={};function kt(){if(pt)return bt;pt=1;var e=Le().Options;function t(t){e.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 a=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||a;var o=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var i=0;i<o.length;i++)"expand"!==o[i]?this.brace_style="collapse":this.brace_style=o[i]}return t.prototype=new e,bt.Options=t,bt}function _t(){if(gt)return yt.exports;gt=1;var e=function(){if(ht)return vt;ht=1;var e=kt().Options,t=Ae().Output,a=Ge().InputScanner,o=new(0,nt().Directives)(/\/\*/,/\*\//),i=/\r\n|[\r\n]/,n=/\r\n|[\r\n]/g,l=/\s/,r=/(?:\s|\n)+/g,s=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,c=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function d(t,a){this._source_text=t||"",this._options=new e(a),this._ch=null,this._input=null,this.NESTED_AT_RULE={page:!0,"font-face":!0,keyframes:!0,media:!0,supports:!0,document:!0},this.CONDITIONAL_GROUP_RULE={media:!0,supports:!0,document:!0},this.NON_SEMICOLON_NEWLINE_PROPERTY=["grid-template-areas","grid-template"]}return d.prototype.eatString=function(e){var t="";for(this._ch=this._input.next();this._ch;){if(t+=this._ch,"\\"===this._ch)t+=this._input.next();else if(-1!==e.indexOf(this._ch)||"\n"===this._ch)break;this._ch=this._input.next()}return t},d.prototype.eatWhitespace=function(e){for(var t=l.test(this._input.peek()),a=0;l.test(this._input.peek());)this._ch=this._input.next(),e&&"\n"===this._ch&&(0===a||a<this._options.max_preserve_newlines)&&(a++,this._output.add_new_line(!0));return t},d.prototype.foundNestedPseudoClass=function(){for(var e=0,t=1,a=this._input.peek(t);a;){if("{"===a)return!0;if("("===a)e+=1;else if(")"===a){if(0===e)return!1;e-=1}else if(";"===a||"}"===a)return!1;t++,a=this._input.peek(t)}return!1},d.prototype.print_string=function(e){this._output.set_indent(this._indentLevel),this._output.non_breaking_space=!0,this._output.add_token(e)},d.prototype.preserveSingleSpace=function(e){e&&(this._output.space_before_token=!0)},d.prototype.indent=function(){this._indentLevel++},d.prototype.outdent=function(){this._indentLevel>0&&this._indentLevel--},d.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var e=this._source_text,d=this._options.eol;"auto"===d&&(d="\n",e&&i.test(e||"")&&(d=e.match(i)[0]));var m=(e=e.replace(n,"\n")).match(/^[\t ]*/)[0];this._output=new t(this._options,m),this._input=new a(e),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var u,f,p=0,h=!1,g=!1,y=!1,v=!1,b=!1,k=this._ch,_=!1;u=""!==this._input.read(r),f=k,this._ch=this._input.next(),"\\"===this._ch&&this._input.hasNext()&&(this._ch+=this._input.next()),k=this._ch,this._ch;)if("/"===this._ch&&"*"===this._input.peek()){this._output.add_new_line(),this._input.back();var w=this._input.read(s),C=o.get_directives(w);C&&"start"===C.ignore&&(w+=o.readIgnored(this._input)),this.print_string(w),this.eatWhitespace(!0),this._output.add_new_line()}else if("/"===this._ch&&"/"===this._input.peek())this._output.space_before_token=!0,this._input.back(),this.print_string(this._input.read(c)),this.eatWhitespace(!0);else if("$"===this._ch){this.preserveSingleSpace(u),this.print_string(this._ch);var S=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);S.match(/[ :]$/)&&(S=this.eatString(": ").replace(/\s+$/,""),this.print_string(S),this._output.space_before_token=!0),0===p&&-1!==S.indexOf(":")&&(g=!0,this.indent())}else if("@"===this._ch)if(this.preserveSingleSpace(u),"{"===this._input.peek())this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var E=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);E.match(/[ :]$/)&&(E=this.eatString(": ").replace(/\s+$/,""),this.print_string(E),this._output.space_before_token=!0),0===p&&-1!==E.indexOf(":")?(g=!0,this.indent()):E in this.NESTED_AT_RULE?(this._nestedLevel+=1,E in this.CONDITIONAL_GROUP_RULE&&(y=!0)):0!==p||g||(v=!0)}else if("#"===this._ch&&"{"===this._input.peek())this.preserveSingleSpace(u),this.print_string(this._ch+this.eatString("}"));else if("{"===this._ch)g&&(g=!1,this.outdent()),v=!1,y?(y=!1,h=this._indentLevel>=this._nestedLevel):h=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&h&&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)):("("===f?this._output.space_before_token=!1:","!==f&&this.indent(),this.print_string(this._ch)),this.eatWhitespace(!0),this._output.add_new_line();else if("}"===this._ch)this.outdent(),this._output.add_new_line(),"{"===f&&this._output.trim(!0),g&&(this.outdent(),g=!1),this.print_string(this._ch),h=!1,this._nestedLevel&&this._nestedLevel--,this.eatWhitespace(!0),this._output.add_new_line(),this._options.newline_between_rules&&!this._output.just_added_blankline()&&"}"!==this._input.peek()&&this._output.add_new_line(!0),")"===this._input.peek()&&(this._output.trim(!0),"expand"===this._options.brace_style&&this._output.add_new_line(!0));else if(":"===this._ch){for(var N=0;N<this.NON_SEMICOLON_NEWLINE_PROPERTY.length;N++)if(this._input.lookBack(this.NON_SEMICOLON_NEWLINE_PROPERTY[N])){_=!0;break}!h&&!y||this._input.lookBack("&")||this.foundNestedPseudoClass()||this._input.lookBack("(")||v||0!==p?(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(":"),g||(g=!0,this._output.space_before_token=!0,this.eatWhitespace(!0),this.indent()))}else if('"'===this._ch||"'"===this._ch){var x='"'===f||"'"===f;this.preserveSingleSpace(x||u),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)}else if(";"===this._ch)_=!1,0===p?(g&&(this.outdent(),g=!1),v=!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);else if("("===this._ch)if(this._input.lookBack("url"))this.print_string(this._ch),this.eatWhitespace(),p++,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(")")),p&&(p--,this.outdent()));else{var B=!1;this._input.lookBack("with")&&(B=!0),this.preserveSingleSpace(u||B),this.print_string(this._ch),g&&"$"===f&&this._options.selector_separator_newline?(this._output.add_new_line(),b=!0):(this.eatWhitespace(),p++,this.indent())}else if(")"===this._ch)p&&(p--,this.outdent()),b&&";"===this._input.peek()&&this._options.selector_separator_newline&&(b=!1,this.outdent(),this._output.add_new_line()),this.print_string(this._ch);else if(","===this._ch)this.print_string(this._ch),this.eatWhitespace(!0),!this._options.selector_separator_newline||g&&!b||0!==p||v?this._output.space_before_token=!0:this._output.add_new_line();else if(">"!==this._ch&&"+"!==this._ch&&"~"!==this._ch||g||0!==p)if("]"===this._ch)this.print_string(this._ch);else if("["===this._ch)this.preserveSingleSpace(u),this.print_string(this._ch);else if("="===this._ch)this.eatWhitespace(),this.print_string("="),l.test(this._ch)&&(this._ch="");else if("!"!==this._ch||this._input.lookBack("\\")){var V='"'===f||"'"===f;this.preserveSingleSpace(V||u),this.print_string(this._ch),!this._output.just_added_newline()&&"\n"===this._input.peek()&&_&&this._output.add_new_line()}else this._output.space_before_token=!0,this.print_string(this._ch);else this._options.space_around_combinator?(this._output.space_before_token=!0,this.print_string(this._ch),this._output.space_before_token=!0):(this.print_string(this._ch),this.eatWhitespace(),this._ch&&l.test(this._ch)&&(this._ch=""));return this._output.get_code(d)},vt.Beautifier=d,vt}().Beautifier,t=kt().Options;return yt.exports=function(t,a){return new e(t,a).beautify()},yt.exports.defaultOptions=function(){return new t},yt.exports}var wt,Ct={exports:{}},St={},Et={};function Nt(){if(wt)return Et;wt=1;var e=Le().Options;function t(t){e.call(this,t,"html"),1===this.templating.length&&"auto"===this.templating[0]&&(this.templating=["django","erb","handlebars","php"]),this.indent_inner_html=this._get_boolean("indent_inner_html"),this.indent_body_inner_html=this._get_boolean("indent_body_inner_html",!0),this.indent_head_inner_html=this._get_boolean("indent_head_inner_html",!0),this.indent_handlebars=this._get_boolean("indent_handlebars",!0),this.wrap_attributes=this._get_selection("wrap_attributes",["auto","force","force-aligned","force-expand-multiline","aligned-multiple","preserve","preserve-aligned"]),this.wrap_attributes_min_attrs=this._get_number("wrap_attributes_min_attrs",2),this.wrap_attributes_indent_size=this._get_number("wrap_attributes_indent_size",this.indent_size),this.extra_liners=this._get_array("extra_liners",["head","body","/html"]),this.inline=this._get_array("inline",["a","abbr","area","audio","b","bdi","bdo","br","button","canvas","cite","code","data","datalist","del","dfn","em","embed","i","iframe","img","input","ins","kbd","keygen","label","map","mark","math","meter","noscript","object","output","progress","q","ruby","s","samp","select","small","span","strong","sub","sup","svg","template","textarea","time","u","var","video","wbr","text","acronym","big","strike","tt"]),this.inline_custom_elements=this._get_boolean("inline_custom_elements",!0),this.void_elements=this._get_array("void_elements",["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr","!doctype","?xml","basefont","isindex"]),this.unformatted=this._get_array("unformatted",[]),this.content_unformatted=this._get_array("content_unformatted",["pre","textarea"]),this.unformatted_content_delimiter=this._get_characters("unformatted_content_delimiter"),this.indent_scripts=this._get_selection("indent_scripts",["normal","keep","separate"])}return t.prototype=new e,Et.Options=t,Et}var xt,Bt,Vt,At,Rt,Mt={};function Tt(){if(xt)return Mt;xt=1;var e=at().Tokenizer,t=at().TOKEN,a=nt().Directives,o=mt().TemplatablePattern,i=tt().Pattern,n={TAG_OPEN:"TK_TAG_OPEN",TAG_CLOSE:"TK_TAG_CLOSE",CONTROL_FLOW_OPEN:"TK_CONTROL_FLOW_OPEN",CONTROL_FLOW_CLOSE:"TK_CONTROL_FLOW_CLOSE",ATTRIBUTE:"TK_ATTRIBUTE",EQUALS:"TK_EQUALS",VALUE:"TK_VALUE",COMMENT:"TK_COMMENT",TEXT:"TK_TEXT",UNKNOWN:"TK_UNKNOWN",START:t.START,RAW:t.RAW,EOF:t.EOF},l=new a(/<\!--/,/-->/),r=function(t,a){e.call(this,t,a),this._current_tag_name="";var n=new o(this._input).read_options(this._options),l=new i(this._input);if(this.__patterns={word:n.until(/[\n\r\t <]/),word_control_flow_close_excluded:n.until(/[\n\r\t <}]/),single_quote:n.until_after(/'/),double_quote:n.until_after(/"/),attribute:n.until(/[\n\r\t =>]|\/>/),element_name:n.until(/[\n\r\t >\/]/),angular_control_flow_start:l.matching(/\@[a-zA-Z]+[^({]*[({]/),handlebars_comment:l.starting_with(/{{!--/).until_after(/--}}/),handlebars:l.starting_with(/{{/).until_after(/}}/),handlebars_open:l.until(/[\n\r\t }]/),handlebars_raw_close:l.until(/}}/),comment:l.starting_with(/<!--/).until_after(/-->/),cdata:l.starting_with(/<!\[CDATA\[/).until_after(/]]>/),conditional_comment:l.starting_with(/<!\[/).until_after(/]>/),processing:l.starting_with(/<\?/).until_after(/\?>/)},this._options.indent_handlebars&&(this.__patterns.word=this.__patterns.word.exclude("handlebars"),this.__patterns.word_control_flow_close_excluded=this.__patterns.word_control_flow_close_excluded.exclude("handlebars")),this._unformatted_content_delimiter=null,this._options.unformatted_content_delimiter){var r=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=l.matching(r).until_after(r)}};return(r.prototype=new e)._is_comment=function(e){return!1},r.prototype._is_opening=function(e){return e.type===n.TAG_OPEN||e.type===n.CONTROL_FLOW_OPEN},r.prototype._is_closing=function(e,t){return e.type===n.TAG_CLOSE&&t&&((">"===e.text||"/>"===e.text)&&"<"===t.text[0]||"}}"===e.text&&"{"===t.text[0]&&"{"===t.text[1])||e.type===n.CONTROL_FLOW_CLOSE&&"}"===e.text&&t.text.endsWith("{")},r.prototype._reset=function(){this._current_tag_name=""},r.prototype._get_next_token=function(e,t){var a=null;this._readWhitespace();var o=this._input.peek();return null===o?this._create_token(n.EOF,""):a=(a=(a=(a=(a=(a=(a=(a=(a=(a=(a=a||this._read_open_handlebars(o,t))||this._read_attribute(o,e,t))||this._read_close(o,t))||this._read_script_and_style(o,e))||this._read_control_flows(o,t))||this._read_raw_content(o,e,t))||this._read_content_word(o,t))||this._read_comment_or_cdata(o))||this._read_processing(o))||this._read_open(o,t))||this._create_token(n.UNKNOWN,this._input.next())},r.prototype._read_comment_or_cdata=function(e){var t=null,a=null,o=null;"<"===e&&("!"===this._input.peek(1)&&((a=this.__patterns.comment.read())?(o=l.get_directives(a))&&"start"===o.ignore&&(a+=l.readIgnored(this._input)):a=this.__patterns.cdata.read()),a&&((t=this._create_token(n.COMMENT,a)).directives=o));return t},r.prototype._read_processing=function(e){var t=null,a=null;if("<"===e){var o=this._input.peek(1);"!"!==o&&"?"!==o||(a=(a=this.__patterns.conditional_comment.read())||this.__patterns.processing.read()),a&&((t=this._create_token(n.COMMENT,a)).directives=null)}return t},r.prototype._read_open=function(e,t){var a=null,o=null;return t&&t.type!==n.CONTROL_FLOW_OPEN||"<"===e&&(a=this._input.next(),"/"===this._input.peek()&&(a+=this._input.next()),a+=this.__patterns.element_name.read(),o=this._create_token(n.TAG_OPEN,a)),o},r.prototype._read_open_handlebars=function(e,t){var a=null,o=null;return t&&t.type!==n.CONTROL_FLOW_OPEN||(this._options.templating.includes("angular")||this._options.indent_handlebars)&&"{"===e&&"{"===this._input.peek(1)&&(this._options.indent_handlebars&&"!"===this._input.peek(2)?(a=(a=this.__patterns.handlebars_comment.read())||this.__patterns.handlebars.read(),o=this._create_token(n.COMMENT,a)):(a=this.__patterns.handlebars_open.read(),o=this._create_token(n.TAG_OPEN,a))),o},r.prototype._read_control_flows=function(e,t){var a="",o=null;if(!this._options.templating.includes("angular"))return o;if("@"===e){if(""===(a=this.__patterns.angular_control_flow_start.read()))return o;for(var i=a.endsWith("(")?1:0,l=0;!a.endsWith("{")||i!==l;){var r=this._input.next();if(null===r)break;"("===r?i++:")"===r&&l++,a+=r}o=this._create_token(n.CONTROL_FLOW_OPEN,a)}else"}"===e&&t&&t.type===n.CONTROL_FLOW_OPEN&&(a=this._input.next(),o=this._create_token(n.CONTROL_FLOW_CLOSE,a));return o},r.prototype._read_close=function(e,t){var a=null,o=null;return t&&t.type===n.TAG_OPEN&&("<"===t.text[0]&&(">"===e||"/"===e&&">"===this._input.peek(1))?(a=this._input.next(),"/"===e&&(a+=this._input.next()),o=this._create_token(n.TAG_CLOSE,a)):"{"===t.text[0]&&"}"===e&&"}"===this._input.peek(1)&&(this._input.next(),this._input.next(),o=this._create_token(n.TAG_CLOSE,"}}"))),o},r.prototype._read_attribute=function(e,t,a){var o=null,i="";if(a&&"<"===a.text[0])if("="===e)o=this._create_token(n.EQUALS,this._input.next());else if('"'===e||"'"===e){var l=this._input.next();l+='"'===e?this.__patterns.double_quote.read():this.__patterns.single_quote.read(),o=this._create_token(n.VALUE,l)}else(i=this.__patterns.attribute.read())&&(o=t.type===n.EQUALS?this._create_token(n.VALUE,i):this._create_token(n.ATTRIBUTE,i));return o},r.prototype._is_content_unformatted=function(e){return-1===this._options.void_elements.indexOf(e)&&(-1!==this._options.content_unformatted.indexOf(e)||-1!==this._options.unformatted.indexOf(e))},r.prototype._read_raw_content=function(e,t,a){var o="";if(a&&"{"===a.text[0])o=this.__patterns.handlebars_raw_close.read();else if(t.type===n.TAG_CLOSE&&"<"===t.opened.text[0]&&"/"!==t.text[0]){var i=t.opened.text.substr(1).toLowerCase();this._is_content_unformatted(i)&&(o=this._input.readUntil(new RegExp("</"+i+"[\\n\\r\\t ]*?>","ig")))}return o?this._create_token(n.TEXT,o):null},r.prototype._read_script_and_style=function(e,t){if(t.type===n.TAG_CLOSE&&"<"===t.opened.text[0]&&"/"!==t.text[0]){var a=t.opened.text.substr(1).toLowerCase();if("script"===a||"style"===a){var o=this._read_comment_or_cdata(e);if(o)return o.type=n.TEXT,o;var i=this._input.readUntil(new RegExp("</"+a+"[\\n\\r\\t ]*?>","ig"));if(i)return this._create_token(n.TEXT,i)}}return null},r.prototype._read_content_word=function(e,t){var a="";return this._options.unformatted_content_delimiter&&e===this._options.unformatted_content_delimiter[0]&&(a=this.__patterns.unformatted_content_delimiter.read()),a||(a=t&&t.type===n.CONTROL_FLOW_OPEN?this.__patterns.word_control_flow_close_excluded.read():this.__patterns.word.read()),a?this._create_token(n.TEXT,a):null},Mt.Tokenizer=r,Mt.TOKEN=n,Mt}function It(){if(Bt)return St;Bt=1;var e=Nt().Options,t=Ae().Output,a=Tt().Tokenizer,o=Tt().TOKEN,i=/\r\n|[\r\n]/,n=/\r\n|[\r\n]/g,l=function(e,a){this.indent_level=0,this.alignment_size=0,this.max_preserve_newlines=e.max_preserve_newlines,this.preserve_newlines=e.preserve_newlines,this._output=new t(e,a)};l.prototype.current_line_has_match=function(e){return this._output.current_line.has_match(e)},l.prototype.set_space_before_token=function(e,t){this._output.space_before_token=e,this._output.non_breaking_space=t},l.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()},l.prototype.add_raw_token=function(e){this._output.add_raw_token(e)},l.prototype.print_preserved_newlines=function(e){var t=0;e.type!==o.TEXT&&e.previous.type!==o.TEXT&&(t=e.newlines?1:0),this.preserve_newlines&&(t=e.newlines<this.max_preserve_newlines+1?e.newlines:this.max_preserve_newlines+1);for(var a=0;a<t;a++)this.print_newline(a>0);return 0!==t},l.prototype.traverse_whitespace=function(e){return!(!e.whitespace_before&&!e.newlines)&&(this.print_preserved_newlines(e)||(this._output.space_before_token=!0),!0)},l.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped},l.prototype.print_newline=function(e){this._output.add_new_line(e)},l.prototype.print_token=function(e){e.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(e.text))},l.prototype.indent=function(){this.indent_level++},l.prototype.deindent=function(){this.indent_level>0&&(this.indent_level--,this._output.set_indent(this.indent_level,this.alignment_size))},l.prototype.get_full_indent=function(e){return(e=this.indent_level+(e||0))<1?"":this._output.get_indent_string(e)};var r=function(e,t){var a=null,i=null;return t.closed?("script"===e?a="text/javascript":"style"===e&&(a="text/css"),a=function(e){for(var t=null,a=e.next;a.type!==o.EOF&&e.closed!==a;){if(a.type===o.ATTRIBUTE&&"type"===a.text){a.next&&a.next.type===o.EQUALS&&a.next.next&&a.next.next.type===o.VALUE&&(t=a.next.next.text);break}a=a.next}return t}(t)||a,a.search("text/css")>-1?i="css":a.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)>-1?i="javascript":a.search(/(text|application|dojo)\/(x-)?(html)/)>-1?i="html":a.search(/test\/null/)>-1&&(i="null"),i):null};function s(e,t){return-1!==t.indexOf(e)}function c(e,t,a){this.parent=e||null,this.tag=t?t.tag_name:"",this.indent_level=a||0,this.parser_token=t||null}function d(e){this._printer=e,this._current_frame=null}function m(t,a,o,i){this._source_text=t||"",a=a||{},this._js_beautify=o,this._css_beautify=i,this._tag_stack=null;var n=new e(a,"html");this._options=n,this._is_wrap_attributes_force="force"===this._options.wrap_attributes.substr(0,5),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,8),this._is_wrap_attributes_preserve_aligned="preserve-aligned"===this._options.wrap_attributes}d.prototype.get_parser_token=function(){return this._current_frame?this._current_frame.parser_token:null},d.prototype.record_tag=function(e){var t=new c(this._current_frame,e,this._printer.indent_level);this._current_frame=t},d.prototype._try_pop_frame=function(e){var t=null;return e&&(t=e.parser_token,this._printer.indent_level=e.indent_level,this._current_frame=e.parent),t},d.prototype._get_frame=function(e,t){for(var a=this._current_frame;a&&-1===e.indexOf(a.tag);){if(t&&-1!==t.indexOf(a.tag)){a=null;break}a=a.parent}return a},d.prototype.try_pop=function(e,t){var a=this._get_frame([e],t);return this._try_pop_frame(a)},d.prototype.indent_to_tag=function(e){var t=this._get_frame(e);t&&(this._printer.indent_level=t.indent_level)},m.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var e=this._source_text,t=this._options.eol;"auto"===this._options.eol&&(t="\n",e&&i.test(e)&&(t=e.match(i)[0]));var r=(e=e.replace(n,"\n")).match(/^[\t ]*/)[0],s={text:"",type:""},c=new u(this._options),m=new l(this._options,r),f=new a(e,this._options).tokenize();this._tag_stack=new d(m);for(var p=null,h=f.next();h.type!==o.EOF;)h.type===o.TAG_OPEN||h.type===o.COMMENT?c=p=this._handle_tag_open(m,h,c,s,f):h.type===o.ATTRIBUTE||h.type===o.EQUALS||h.type===o.VALUE||h.type===o.TEXT&&!c.tag_complete?p=this._handle_inside_tag(m,h,c,s):h.type===o.TAG_CLOSE?p=this._handle_tag_close(m,h,c):h.type===o.TEXT?p=this._handle_text(m,h,c):h.type===o.CONTROL_FLOW_OPEN?p=this._handle_control_flow_open(m,h):h.type===o.CONTROL_FLOW_CLOSE?p=this._handle_control_flow_close(m,h):m.add_raw_token(h),s=p,h=f.next();return m._output.get_code(t)},m.prototype._handle_control_flow_open=function(e,t){var a={text:t.text,type:t.type};return e.set_space_before_token(t.newlines||""!==t.whitespace_before,!0),t.newlines?e.print_preserved_newlines(t):e.set_space_before_token(t.newlines||""!==t.whitespace_before,!0),e.print_token(t),e.indent(),a},m.prototype._handle_control_flow_close=function(e,t){var a={text:t.text,type:t.type};return e.deindent(),t.newlines?e.print_preserved_newlines(t):e.set_space_before_token(t.newlines||""!==t.whitespace_before,!0),e.print_token(t),a},m.prototype._handle_tag_close=function(e,t,a){var o={text:t.text,type:t.type};return e.alignment_size=0,a.tag_complete=!0,e.set_space_before_token(t.newlines||""!==t.whitespace_before,!0),a.is_unformatted?e.add_raw_token(t):("<"===a.tag_start_char&&(e.set_space_before_token("/"===t.text[0],!0),this._is_wrap_attributes_force_expand_multiline&&a.has_wrapped_attrs&&e.print_newline(!1)),e.print_token(t)),!a.indent_content||a.is_unformatted||a.is_content_unformatted||(e.indent(),a.indent_content=!1),a.is_inline_element||a.is_unformatted||a.is_content_unformatted||e.set_wrap_point(),o},m.prototype._handle_inside_tag=function(e,t,a,i){var n=a.has_wrapped_attrs,l={text:t.text,type:t.type};return e.set_space_before_token(t.newlines||""!==t.whitespace_before,!0),a.is_unformatted?e.add_raw_token(t):"{"===a.tag_start_char&&t.type===o.TEXT?e.print_preserved_newlines(t)?(t.newlines=0,e.add_raw_token(t)):e.print_token(t):(t.type===o.ATTRIBUTE?e.set_space_before_token(!0):(t.type===o.EQUALS||t.type===o.VALUE&&t.previous.type===o.EQUALS)&&e.set_space_before_token(!1),t.type===o.ATTRIBUTE&&"<"===a.tag_start_char&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(e.traverse_whitespace(t),n=n||0!==t.newlines),this._is_wrap_attributes_force&&a.attr_count>=this._options.wrap_attributes_min_attrs&&(i.type!==o.TAG_OPEN||this._is_wrap_attributes_force_expand_multiline)&&(e.print_newline(!1),n=!0)),e.print_token(t),n=n||e.previous_token_wrapped(),a.has_wrapped_attrs=n),l},m.prototype._handle_text=function(e,t,a){var o={text:t.text,type:"TK_CONTENT"};return a.custom_beautifier_name?this._print_custom_beatifier_text(e,t,a):a.is_unformatted||a.is_content_unformatted?e.add_raw_token(t):(e.traverse_whitespace(t),e.print_token(t)),o},m.prototype._print_custom_beatifier_text=function(e,t,a){var o=this;if(""!==t.text){var i,n=t.text,l=1,r="",s="";"javascript"===a.custom_beautifier_name&&"function"==typeof this._js_beautify?i=this._js_beautify:"css"===a.custom_beautifier_name&&"function"==typeof this._css_beautify?i=this._css_beautify:"html"===a.custom_beautifier_name&&(i=function(e,t){return new m(e,t,o._js_beautify,o._css_beautify).beautify()}),"keep"===this._options.indent_scripts?l=0:"separate"===this._options.indent_scripts&&(l=-e.indent_level);var c=e.get_full_indent(l);if(n=n.replace(/\n[ \t]*$/,""),"html"!==a.custom_beautifier_name&&"<"===n[0]&&n.match(/^(<!--|<!\[CDATA\[)/)){var d=/^(<!--[^\n]*|<!\[CDATA\[)(\n?)([ \t\n]*)([\s\S]*)(-->|]]>)$/.exec(n);if(!d)return void e.add_raw_token(t);r=c+d[1]+"\n",n=d[4],d[5]&&(s=c+d[5]),n=n.replace(/\n[ \t]*$/,""),(d[2]||-1!==d[3].indexOf("\n"))&&(d=d[3].match(/[ \t]+$/))&&(t.whitespace_before=d[0])}if(n)if(i){var u=function(){this.eol="\n"};u.prototype=this._options.raw_options,n=i(c+n,new u)}else{var f=t.whitespace_before;f&&(n=n.replace(new RegExp("\n("+f+")?","g"),"\n")),n=c+n.replace(/\n/g,"\n"+c)}r&&(n=n?r+n+"\n"+s:r+s),e.print_newline(!1),n&&(t.text=n,t.whitespace_before="",t.newlines=0,e.add_raw_token(t),e.print_newline(!0))}},m.prototype._handle_tag_open=function(e,t,a,i,n){var l=this._get_tag_open_token(t);if(!a.is_unformatted&&!a.is_content_unformatted||a.is_empty_element||t.type!==o.TAG_OPEN||l.is_start_tag?(e.traverse_whitespace(t),this._set_tag_position(e,t,l,a,i),l.is_inline_element||e.set_wrap_point(),e.print_token(t)):(e.add_raw_token(t),l.start_tag_token=this._tag_stack.try_pop(l.tag_name)),l.is_start_tag&&this._is_wrap_attributes_force){var r,s=0;do{(r=n.peek(s)).type===o.ATTRIBUTE&&(l.attr_count+=1),s+=1}while(r.type!==o.EOF&&r.type!==o.TAG_CLOSE)}return(this._is_wrap_attributes_force_aligned||this._is_wrap_attributes_aligned_multiple||this._is_wrap_attributes_preserve_aligned)&&(l.alignment_size=t.text.length+1),l.tag_complete||l.is_unformatted||(e.alignment_size=l.alignment_size),l};var u=function(e,t,a){if(this.parent=t||null,this.text="",this.type="TK_TAG_OPEN",this.tag_name="",this.is_inline_element=!1,this.is_unformatted=!1,this.is_content_unformatted=!1,this.is_empty_element=!1,this.is_start_tag=!1,this.is_end_tag=!1,this.indent_content=!1,this.multiline_content=!1,this.custom_beautifier_name=null,this.start_tag_token=null,this.attr_count=0,this.has_wrapped_attrs=!1,this.alignment_size=0,this.tag_complete=!1,this.tag_start_char="",this.tag_check="",a){var i;this.tag_start_char=a.text[0],this.text=a.text,"<"===this.tag_start_char?(i=a.text.match(/^<([^\s>]*)/),this.tag_check=i?i[1]:""):(i=a.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=i?i[1]:"",(a.text.startsWith("{{#>")||a.text.startsWith("{{~#>"))&&">"===this.tag_check[0]&&(">"===this.tag_check&&null!==a.next?this.tag_check=a.next.text.split(" ")[0]:this.tag_check=a.text.split(">")[1])),this.tag_check=this.tag_check.toLowerCase(),a.type===o.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||a.closed&&"/>"===a.closed.text;var n=2;"{"===this.tag_start_char&&this.text.length>=3&&"~"===this.text.charAt(2)&&(n=3),this.is_end_tag=this.is_end_tag||"{"===this.tag_start_char&&(!e.indent_handlebars||this.text.length<3||/[^#\^]/.test(this.text.charAt(n)))}else this.tag_complete=!0};m.prototype._get_tag_open_token=function(e){var t=new u(this._options,this._tag_stack.get_parser_token(),e);return t.alignment_size=this._options.wrap_attributes_indent_size,t.is_end_tag=t.is_end_tag||s(t.tag_check,this._options.void_elements),t.is_empty_element=t.tag_complete||t.is_start_tag&&t.is_end_tag,t.is_unformatted=!t.tag_complete&&s(t.tag_check,this._options.unformatted),t.is_content_unformatted=!t.is_empty_element&&s(t.tag_check,this._options.content_unformatted),t.is_inline_element=s(t.tag_name,this._options.inline)||this._options.inline_custom_elements&&t.tag_name.includes("-")||"{"===t.tag_start_char,t},m.prototype._set_tag_position=function(e,t,a,i,n){if(a.is_empty_element||(a.is_end_tag?a.start_tag_token=this._tag_stack.try_pop(a.tag_name):(this._do_optional_end_element(a)&&(a.is_inline_element||e.print_newline(!1)),this._tag_stack.record_tag(a),"script"!==a.tag_name&&"style"!==a.tag_name||a.is_unformatted||a.is_content_unformatted||(a.custom_beautifier_name=r(a.tag_check,t)))),s(a.tag_check,this._options.extra_liners)&&(e.print_newline(!1),e._output.just_added_blankline()||e.print_newline(!0)),a.is_empty_element){if("{"===a.tag_start_char&&"else"===a.tag_check)this._tag_stack.indent_to_tag(["if","unless","each"]),a.indent_content=!0,e.current_line_has_match(/{{#if/)||e.print_newline(!1);"!--"===a.tag_name&&n.type===o.TAG_CLOSE&&i.is_end_tag&&-1===a.text.indexOf("\n")||(a.is_inline_element||a.is_unformatted||e.print_newline(!1),this._calcluate_parent_multiline(e,a))}else if(a.is_end_tag){var l=!1;l=(l=a.start_tag_token&&a.start_tag_token.multiline_content)||!a.is_inline_element&&!(i.is_inline_element||i.is_unformatted)&&!(n.type===o.TAG_CLOSE&&a.start_tag_token===i)&&"TK_CONTENT"!==n.type,(a.is_content_unformatted||a.is_unformatted)&&(l=!1),l&&e.print_newline(!1)}else a.indent_content=!a.custom_beautifier_name,"<"===a.tag_start_char&&("html"===a.tag_name?a.indent_content=this._options.indent_inner_html:"head"===a.tag_name?a.indent_content=this._options.indent_head_inner_html:"body"===a.tag_name&&(a.indent_content=this._options.indent_body_inner_html)),a.is_inline_element||a.is_unformatted||"TK_CONTENT"===n.type&&!a.is_content_unformatted||e.print_newline(!1),this._calcluate_parent_multiline(e,a)},m.prototype._calcluate_parent_multiline=function(e,t){!t.parent||!e._output.just_added_newline()||(t.is_inline_element||t.is_unformatted)&&t.parent.is_inline_element||(t.parent.multiline_content=!0)};var f=["address","article","aside","blockquote","details","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hr","main","menu","nav","ol","p","pre","section","table","ul"],p=["a","audio","del","ins","map","noscript","video"];return m.prototype._do_optional_end_element=function(e){var t=null;if(!e.is_empty_element&&e.is_start_tag&&e.parent){if("body"===e.tag_name)t=t||this._tag_stack.try_pop("head");else if("li"===e.tag_name)t=t||this._tag_stack.try_pop("li",["ol","ul","menu"]);else if("dd"===e.tag_name||"dt"===e.tag_name)t=(t=t||this._tag_stack.try_pop("dt",["dl"]))||this._tag_stack.try_pop("dd",["dl"]);else if("p"===e.parent.tag_name&&-1!==f.indexOf(e.tag_name)){var a=e.parent.parent;a&&-1!==p.indexOf(a.tag_name)||(t=t||this._tag_stack.try_pop("p"))}else"rp"===e.tag_name||"rt"===e.tag_name?t=(t=t||this._tag_stack.try_pop("rt",["ruby","rtc"]))||this._tag_stack.try_pop("rp",["ruby","rtc"]):"optgroup"===e.tag_name?t=t||this._tag_stack.try_pop("optgroup",["select"]):"option"===e.tag_name?t=t||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):"colgroup"===e.tag_name?t=t||this._tag_stack.try_pop("caption",["table"]):"thead"===e.tag_name?t=(t=t||this._tag_stack.try_pop("caption",["table"]))||this._tag_stack.try_pop("colgroup",["table"]):"tbody"===e.tag_name||"tfoot"===e.tag_name?t=(t=(t=(t=t||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"===e.tag_name?t=(t=(t=t||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"!==e.tag_name&&"td"!==e.tag_name||(t=(t=t||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]))||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return e.parent=this._tag_stack.get_parser_token(),t}},St.Beautifier=m,St}function $t(){if(At)return Ne;At=1;var e=function(){if(ct)return xe.exports;ct=1;var e=ft().Beautifier,t=Fe().Options;return xe.exports=function(t,a){return new e(t,a).beautify()},xe.exports.defaultOptions=function(){return new t},xe.exports}(),t=_t(),a=function(){if(Vt)return Ct.exports;Vt=1;var e=It().Beautifier,t=Nt().Options;return Ct.exports=function(t,a,o,i){return new e(t,a,o,i).beautify()},Ct.exports.defaultOptions=function(){return new t},Ct.exports}();function o(o,i,n,l){return a(o,i,n=n||e,l=l||t)}return o.defaultOptions=a.defaultOptions,Ne.js=e,Ne.css=t,Ne.html=o,Ne}var Dt,zt=(Rt||(Rt=1,function(e){var t=$t();t.js_beautify=t.js,t.css_beautify=t.css,t.html_beautify=t.html,e.exports=function(e,t,a){var o=function(t,a){return e.js_beautify(t,a)};return o.js=e.js_beautify,o.css=t.css_beautify,o.html=a.html_beautify,o.js_beautify=e.js_beautify,o.css_beautify=t.css_beautify,o.html_beautify=a.html_beautify,o}(t,t,t)}(Ee)),Ee.exports),Ot=me(zt),Pt={exports:{}};var qt=(Dt||(Dt=1,function(e){var t=function(e){var t=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,a=0,o={},i={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof n?new n(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++a}),e.__id},clone:function e(t,a){var o,n;switch(a=a||{},i.util.type(t)){case"Object":if(n=i.util.objId(t),a[n])return a[n];for(var l in o={},a[n]=o,t)t.hasOwnProperty(l)&&(o[l]=e(t[l],a));return o;case"Array":return n=i.util.objId(t),a[n]?a[n]:(o=[],a[n]=o,t.forEach(function(t,i){o[i]=e(t,a)}),o);default:return t}},getLanguage:function(e){for(;e;){var a=t.exec(e.className);if(a)return a[1].toLowerCase();e=e.parentElement}return"none"},setLanguage:function(e,a){e.className=e.className.replace(RegExp(t,"gi"),""),e.classList.add("language-"+a)},currentScript:function(){if("undefined"==typeof document)return null;if(document.currentScript&&"SCRIPT"===document.currentScript.tagName)return document.currentScript;try{throw new Error}catch(o){var e=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(o.stack)||[])[1];if(e){var t=document.getElementsByTagName("script");for(var a in t)if(t[a].src==e)return t[a]}return null}},isActive:function(e,t,a){for(var o="no-"+t;e;){var i=e.classList;if(i.contains(t))return!0;if(i.contains(o))return!1;e=e.parentElement}return!!a}},languages:{plain:o,plaintext:o,text:o,txt:o,extend:function(e,t){var a=i.util.clone(i.languages[e]);for(var o in t)a[o]=t[o];return a},insertBefore:function(e,t,a,o){var n=(o=o||i.languages)[e],l={};for(var r in n)if(n.hasOwnProperty(r)){if(r==t)for(var s in a)a.hasOwnProperty(s)&&(l[s]=a[s]);a.hasOwnProperty(r)||(l[r]=n[r])}var c=o[e];return o[e]=l,i.languages.DFS(i.languages,function(t,a){a===c&&t!=e&&(this[t]=l)}),l},DFS:function e(t,a,o,n){n=n||{};var l=i.util.objId;for(var r in t)if(t.hasOwnProperty(r)){a.call(t,r,t[r],o||r);var s=t[r],c=i.util.type(s);"Object"!==c||n[l(s)]?"Array"!==c||n[l(s)]||(n[l(s)]=!0,e(s,a,r,n)):(n[l(s)]=!0,e(s,a,null,n))}}},plugins:{},highlightAll:function(e,t){i.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,a){var o={callback:a,container:e,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};i.hooks.run("before-highlightall",o),o.elements=Array.prototype.slice.apply(o.container.querySelectorAll(o.selector)),i.hooks.run("before-all-elements-highlight",o);for(var n,l=0;n=o.elements[l++];)i.highlightElement(n,!0===t,o.callback)},highlightElement:function(t,a,o){var n=i.util.getLanguage(t),l=i.languages[n];i.util.setLanguage(t,n);var r=t.parentElement;r&&"pre"===r.nodeName.toLowerCase()&&i.util.setLanguage(r,n);var s={element:t,language:n,grammar:l,code:t.textContent};function c(e){s.highlightedCode=e,i.hooks.run("before-insert",s),s.element.innerHTML=s.highlightedCode,i.hooks.run("after-highlight",s),i.hooks.run("complete",s),o&&o.call(s.element)}if(i.hooks.run("before-sanity-check",s),(r=s.element.parentElement)&&"pre"===r.nodeName.toLowerCase()&&!r.hasAttribute("tabindex")&&r.setAttribute("tabindex","0"),!s.code)return i.hooks.run("complete",s),void(o&&o.call(s.element));if(i.hooks.run("before-highlight",s),s.grammar)if(a&&e.Worker){var d=new Worker(i.filename);d.onmessage=function(e){c(e.data)},d.postMessage(JSON.stringify({language:s.language,code:s.code,immediateClose:!0}))}else c(i.highlight(s.code,s.grammar,s.language));else c(i.util.encode(s.code))},highlight:function(e,t,a){var o={code:e,grammar:t,language:a};if(i.hooks.run("before-tokenize",o),!o.grammar)throw new Error('The language "'+o.language+'" has no grammar.');return o.tokens=i.tokenize(o.code,o.grammar),i.hooks.run("after-tokenize",o),n.stringify(i.util.encode(o.tokens),o.language)},tokenize:function(e,t){var a=t.rest;if(a){for(var o in a)t[o]=a[o];delete t.rest}var i=new s;return c(i,i.head,e),r(e,i,t,i.head,0),function(e){for(var t=[],a=e.head.next;a!==e.tail;)t.push(a.value),a=a.next;return t}(i)},hooks:{all:{},add:function(e,t){var a=i.hooks.all;a[e]=a[e]||[],a[e].push(t)},run:function(e,t){var a=i.hooks.all[e];if(a&&a.length)for(var o,n=0;o=a[n++];)o(t)}},Token:n};function n(e,t,a,o){this.type=e,this.content=t,this.alias=a,this.length=0|(o||"").length}function l(e,t,a,o){e.lastIndex=t;var i=e.exec(a);if(i&&o&&i[1]){var n=i[1].length;i.index+=n,i[0]=i[0].slice(n)}return i}function r(e,t,a,o,s,m){for(var u in a)if(a.hasOwnProperty(u)&&a[u]){var f=a[u];f=Array.isArray(f)?f:[f];for(var p=0;p<f.length;++p){if(m&&m.cause==u+","+p)return;var h=f[p],g=h.inside,y=!!h.lookbehind,v=!!h.greedy,b=h.alias;if(v&&!h.pattern.global){var k=h.pattern.toString().match(/[imsuy]*$/)[0];h.pattern=RegExp(h.pattern.source,k+"g")}for(var _=h.pattern||h,w=o.next,C=s;w!==t.tail&&!(m&&C>=m.reach);C+=w.value.length,w=w.next){var S=w.value;if(t.length>e.length)return;if(!(S instanceof n)){var E,N=1;if(v){if(!(E=l(_,C,e,y))||E.index>=e.length)break;var x=E.index,B=E.index+E[0].length,V=C;for(V+=w.value.length;x>=V;)V+=(w=w.next).value.length;if(C=V-=w.value.length,w.value instanceof n)continue;for(var A=w;A!==t.tail&&(V<B||"string"==typeof A.value);A=A.next)N++,V+=A.value.length;N--,S=e.slice(C,V),E.index-=C}else if(!(E=l(_,0,S,y)))continue;x=E.index;var R=E[0],M=S.slice(0,x),T=S.slice(x+R.length),I=C+S.length;m&&I>m.reach&&(m.reach=I);var $=w.prev;if(M&&($=c(t,$,M),C+=M.length),d(t,$,N),w=c(t,$,new n(u,g?i.tokenize(R,g):R,b,R)),T&&c(t,w,T),N>1){var D={cause:u+","+p,reach:I};r(e,t,a,w.prev,C,D),m&&D.reach>m.reach&&(m.reach=D.reach)}}}}}}function s(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function c(e,t,a){var o=t.next,i={value:a,prev:t,next:o};return t.next=i,o.prev=i,e.length++,i}function d(e,t,a){for(var o=t.next,i=0;i<a&&o!==e.tail;i++)o=o.next;t.next=o,o.prev=t,e.length-=i}if(e.Prism=i,n.stringify=function e(t,a){if("string"==typeof t)return t;if(Array.isArray(t)){var o="";return t.forEach(function(t){o+=e(t,a)}),o}var n={type:t.type,content:e(t.content,a),tag:"span",classes:["token",t.type],attributes:{},language:a},l=t.alias;l&&(Array.isArray(l)?Array.prototype.push.apply(n.classes,l):n.classes.push(l)),i.hooks.run("wrap",n);var r="";for(var s in n.attributes)r+=" "+s+'="'+(n.attributes[s]||"").replace(/"/g,""")+'"';return"<"+n.tag+' class="'+n.classes.join(" ")+'"'+r+">"+n.content+"</"+n.tag+">"},!e.document)return e.addEventListener?(i.disableWorkerMessageHandler||e.addEventListener("message",function(t){var a=JSON.parse(t.data),o=a.language,n=a.code,l=a.immediateClose;e.postMessage(i.highlight(n,i.languages[o],o)),l&&e.close()},!1),i):i;var m=i.util.currentScript();function u(){i.manual||i.highlightAll()}if(m&&(i.filename=m.src,m.hasAttribute("data-manual")&&(i.manual=!0)),!i.manual){var f=document.readyState;"loading"===f||"interactive"===f&&m&&m.defer?document.addEventListener("DOMContentLoaded",u):window.requestAnimationFrame?window.requestAnimationFrame(u):window.setTimeout(u,16)}return i}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});
|
|
2
2
|
/**
|
|
3
3
|
* Prism: Lightweight, robust, elegant syntax highlighting
|
|
4
4
|
*
|