(("undefined"!==typeof self?self:this)["webpackChunkharvester_1_0_6"]=("undefined"!==typeof self?self:this)["webpackChunkharvester_1_0_6"]||[]).push([[146],{92070:function(e,t,n){"use strict";var a=n(9274),s=n.t(a,2);n(4364);function o(e,t){const n=Object.create(null),a=e.split(",");for(let s=0;s!!n[e.toLowerCase()]:e=>!!n[e]}const l={[1]:"TEXT",[2]:"CLASS",[4]:"STYLE",[8]:"PROPS",[16]:"FULL_PROPS",[32]:"HYDRATE_EVENTS",[64]:"STABLE_FRAGMENT",[128]:"KEYED_FRAGMENT",[256]:"UNKEYED_FRAGMENT",[512]:"NEED_PATCH",[1024]:"DYNAMIC_SLOTS",[2048]:"DEV_ROOT_FRAGMENT",[-1]:"HOISTED",[-2]:"BAIL"};const i=/;(?![^(]*\))/g,r=/:([^]+)/,c=/\/\*.*?\*\//gs;function u(e){const t={};return e.replace(c,"").split(i).forEach((e=>{if(e){const n=e.split(r);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}const d="html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot",p="svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view",_="area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr",h=o(d),m=o(p),f=o(_);const v={},b=()=>{},g=()=>!1,y=/^on[^a-z]/,k=e=>y.test(e),E=Object.assign,w=(Object.prototype.hasOwnProperty,Array.isArray),N=e=>"string"===typeof e,x=e=>"symbol"===typeof e,S=e=>null!==e&&"object"===typeof e,V=(Object.prototype.toString,o(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted")),C=o("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),O=e=>{const t=Object.create(null);return n=>{const a=t[n];return a||(t[n]=e(n))}},T=/-(\w)/g,A=O((e=>e.replace(T,((e,t)=>t?t.toUpperCase():"")))),I=/\B([A-Z])/g,L=O((e=>e.replace(I,"-$1").toLowerCase())),R=O((e=>e.charAt(0).toUpperCase()+e.slice(1))),D=O((e=>e?`on${R(e)}`:""));function B(e){throw e}function M(e){}function U(e,t,n,a){const s=e,o=new SyntaxError(String(s));return o.code=e,o.loc=t,o}const P=Symbol(""),j=Symbol(""),$=Symbol(""),K=Symbol(""),F=Symbol(""),q=Symbol(""),W=Symbol(""),z=Symbol(""),G=Symbol(""),Q=Symbol(""),H=Symbol(""),X=Symbol(""),J=Symbol(""),Y=Symbol(""),Z=Symbol(""),ee=Symbol(""),te=Symbol(""),ne=Symbol(""),ae=Symbol(""),se=Symbol(""),oe=Symbol(""),le=Symbol(""),ie=Symbol(""),re=Symbol(""),ce=Symbol(""),ue=Symbol(""),de=Symbol(""),pe=Symbol(""),_e=Symbol(""),he=Symbol(""),me=Symbol(""),fe=Symbol(""),ve=Symbol(""),be=Symbol(""),ge=Symbol(""),ye=Symbol(""),ke=Symbol(""),Ee=Symbol(""),we=Symbol(""),Ne={[P]:"Fragment",[j]:"Teleport",[$]:"Suspense",[K]:"KeepAlive",[F]:"BaseTransition",[q]:"openBlock",[W]:"createBlock",[z]:"createElementBlock",[G]:"createVNode",[Q]:"createElementVNode",[H]:"createCommentVNode",[X]:"createTextVNode",[J]:"createStaticVNode",[Y]:"resolveComponent",[Z]:"resolveDynamicComponent",[ee]:"resolveDirective",[te]:"resolveFilter",[ne]:"withDirectives",[ae]:"renderList",[se]:"renderSlot",[oe]:"createSlots",[le]:"toDisplayString",[ie]:"mergeProps",[re]:"normalizeClass",[ce]:"normalizeStyle",[ue]:"normalizeProps",[de]:"guardReactiveProps",[pe]:"toHandlers",[_e]:"camelize",[he]:"capitalize",[me]:"toHandlerKey",[fe]:"setBlockTracking",[ve]:"pushScopeId",[be]:"popScopeId",[ge]:"withCtx",[ye]:"unref",[ke]:"isRef",[Ee]:"withMemo",[we]:"isMemoSame"};function xe(e){Object.getOwnPropertySymbols(e).forEach((t=>{Ne[t]=e[t]}))}const Se={source:"",start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0}};function Ve(e,t=Se){return{type:0,children:e,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:0,temps:0,codegenNode:void 0,loc:t}}function Ce(e,t,n,a,s,o,l,i=!1,r=!1,c=!1,u=Se){return e&&(i?(e.helper(q),e.helper(rt(e.inSSR,c))):e.helper(lt(e.inSSR,c)),l&&e.helper(ne)),{type:13,tag:t,props:n,children:a,patchFlag:s,dynamicProps:o,directives:l,isBlock:i,disableTracking:r,isComponent:c,loc:u}}function Oe(e,t=Se){return{type:17,loc:t,elements:e}}function Te(e,t=Se){return{type:15,loc:t,properties:e}}function Ae(e,t){return{type:16,loc:Se,key:N(e)?Ie(e,!0):e,value:t}}function Ie(e,t=!1,n=Se,a=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:a}}function Le(e,t=Se){return{type:8,loc:t,children:e}}function Re(e,t=[],n=Se){return{type:14,loc:n,callee:e,arguments:t}}function De(e,t=void 0,n=!1,a=!1,s=Se){return{type:18,params:e,returns:t,newline:n,isSlot:a,loc:s}}function Be(e,t,n,a=!0){return{type:19,test:e,consequent:t,alternate:n,newline:a,loc:Se}}function Me(e,t,n=!1){return{type:20,index:e,value:t,isVNode:n,loc:Se}}function Ue(e){return{type:21,body:e,loc:Se}}const Pe=e=>4===e.type&&e.isStatic,je=(e,t)=>e===t||e===L(t);function $e(e){return je(e,"Teleport")?j:je(e,"Suspense")?$:je(e,"KeepAlive")?K:je(e,"BaseTransition")?F:void 0}const Ke=/^\d|[^\$\w]/,Fe=e=>!Ke.test(e),qe=/[A-Za-z_$\xA0-\uFFFF]/,We=/[\.\?\w$\xA0-\uFFFF]/,ze=/\s+[.[]\s*|\s*[.[]\s+/g,Ge=e=>{e=e.trim().replace(ze,(e=>e.trim()));let t=0,n=[],a=0,s=0,o=null;for(let l=0;l7===e.type&&"bind"===e.name&&(!e.arg||4!==e.arg.type||!e.arg.isStatic)))}function nt(e){return 5===e.type||2===e.type}function at(e){return 7===e.type&&"slot"===e.name}function st(e){return 1===e.type&&3===e.tagType}function ot(e){return 1===e.type&&2===e.tagType}function lt(e,t){return e||t?G:Q}function rt(e,t){return e||t?W:z}const ct=new Set([ue,de]);function ut(e,t=[]){if(e&&!N(e)&&14===e.type){const n=e.callee;if(!N(n)&&ct.has(n))return ut(e.arguments[0],t.concat(e))}return[e,t]}function dt(e,t,n){let a,s,o=13===e.type?e.props:e.arguments[2],l=[];if(o&&!N(o)&&14===o.type){const e=ut(o);o=e[0],l=e[1],s=l[l.length-1]}if(null==o||N(o))a=Te([t]);else if(14===o.type){const e=o.arguments[0];N(e)||15!==e.type?o.callee===pe?a=Re(n.helper(ie),[Te([t]),o]):o.arguments.unshift(Te([t])):pt(t,e)||e.properties.unshift(t),!a&&(a=o)}else 15===o.type?(pt(t,o)||o.properties.unshift(t),a=o):(a=Re(n.helper(ie),[Te([t]),o]),s&&s.callee===de&&(s=l[l.length-2]));13===e.type?s?s.arguments[0]=a:e.props=a:s?s.arguments[0]=a:e.arguments[2]=a}function pt(e,t){let n=!1;if(4===e.key.type){const a=e.key.content;n=t.properties.some((e=>4===e.key.type&&e.key.content===a))}return n}function _t(e,t){return`_${t}_${e.replace(/[^\w]/g,((t,n)=>"-"===t?"_":e.charCodeAt(n).toString()))}`}function ht(e){return 14===e.type&&e.callee===Ee?e.arguments[1].returns:e}function mt(e,{helper:t,removeHelper:n,inSSR:a}){e.isBlock||(e.isBlock=!0,n(lt(a,e.isComponent)),t(q),t(rt(a,e.isComponent)))}function ft(e,t){const n=t.options?t.options.compatConfig:t.compatConfig,a=n&&n[e];return"MODE"===e?a||3:a}function vt(e,t){const n=ft("MODE",t),a=ft(e,t);return 3===n?!0===a:!1!==a}function bt(e,t,n,...a){const s=vt(e,t);return s}const gt=/&(gt|lt|amp|apos|quot);/g,yt={gt:">",lt:"<",amp:"&",apos:"'",quot:'"'},kt={delimiters:["{{","}}"],getNamespace:()=>0,getTextMode:()=>0,isVoidTag:g,isPreTag:g,isCustomElement:g,decodeEntities:e=>e.replace(gt,((e,t)=>yt[t])),onError:B,onWarn:M,comments:!1};function Et(e,t={}){const n=wt(e,t),a=Pt(n);return Ve(Nt(n,0,[]),jt(n,a))}function wt(e,t){const n=E({},kt);let a;for(a in t)n[a]=void 0===t[a]?kt[a]:t[a];return{options:n,column:1,line:1,offset:0,originalSource:e,source:e,inPre:!1,inVPre:!1,onWarn:n.onWarn}}function Nt(e,t,n){const a=$t(n),s=a?a.ns:0,o=[];while(!Gt(e,t,n)){const l=e.source;let i;if(0===t||1===t)if(!e.inVPre&&Kt(l,e.options.delimiters[0]))i=Bt(e,t);else if(0===t&&"<"===l[0])if(1===l.length)zt(e,5,1);else if("!"===l[1])Kt(l,"\x3c!--")?i=Vt(e):Kt(l,""===l[2]){zt(e,14,2),Ft(e,3);continue}if(/[a-z]/i.test(l[2])){zt(e,23),At(e,1,a);continue}zt(e,12,2),i=Ct(e)}else/[a-z]/i.test(l[1])?(i=Ot(e,n),vt("COMPILER_NATIVE_TEMPLATE",e)&&i&&"template"===i.tag&&!i.props.some((e=>7===e.type&&Tt(e.name)))&&(i=i.children)):"?"===l[1]?(zt(e,21,1),i=Ct(e)):zt(e,12,1);if(i||(i=Mt(e,t)),w(i))for(let e=0;e/.exec(e.source);if(a){a.index<=3&&zt(e,0),a[1]&&zt(e,10),n=e.source.slice(4,a.index);const t=e.source.slice(0,a.index);let s=1,o=0;while(-1!==(o=t.indexOf("\x3c!--",s)))Ft(e,o-s+1),o+4");return-1===s?(a=e.source.slice(n),Ft(e,e.source.length)):(a=e.source.slice(n,s),Ft(e,s+1)),{type:3,content:a,loc:jt(e,t)}}function Ot(e,t){const n=e.inPre,a=e.inVPre,s=$t(t),o=At(e,0,s),l=e.inPre&&!n,i=e.inVPre&&!a;if(o.isSelfClosing||e.options.isVoidTag(o.tag))return l&&(e.inPre=!1),i&&(e.inVPre=!1),o;t.push(o);const r=e.options.getTextMode(o,s),c=Nt(e,r,t);t.pop();{const t=o.props.find((e=>6===e.type&&"inline-template"===e.name));if(t&&bt("COMPILER_INLINE_TEMPLATE",e,t.loc)){const n=jt(e,o.loc.end);t.value={type:2,content:n.source,loc:n}}}if(o.children=c,Qt(e.source,o.tag))At(e,1,s);else if(zt(e,24,0,o.loc.start),0===e.source.length&&"script"===o.tag.toLowerCase()){const t=c[0];t&&Kt(t.loc.source,"\x3c!--")&&zt(e,8)}return o.loc=jt(e,o.loc.start),l&&(e.inPre=!1),i&&(e.inVPre=!1),o}const Tt=o("if,else,else-if,for,slot");function At(e,t,n){const a=Pt(e),s=/^<\/?([a-z][^\t\r\n\f />]*)/i.exec(e.source),o=s[1],l=e.options.getNamespace(o,n);Ft(e,s[0].length),qt(e);const i=Pt(e),r=e.source;e.options.isPreTag(o)&&(e.inPre=!0);let c=Lt(e,t);0===t&&!e.inVPre&&c.some((e=>7===e.type&&"pre"===e.name))&&(e.inVPre=!0,E(e,i),e.source=r,c=Lt(e,t).filter((e=>"v-pre"!==e.name)));let u=!1;if(0===e.source.length?zt(e,9):(u=Kt(e.source,"/>"),1===t&&u&&zt(e,4),Ft(e,u?2:1)),1===t)return;let d=0;return e.inVPre||("slot"===o?d=2:"template"===o?c.some((e=>7===e.type&&Tt(e.name)))&&(d=3):It(o,c,e)&&(d=1)),{type:1,ns:l,tag:o,tagType:d,props:c,isSelfClosing:u,children:[],loc:jt(e,a),codegenNode:void 0}}function It(e,t,n){const a=n.options;if(a.isCustomElement(e))return!1;if("component"===e||/^[A-Z]/.test(e)||$e(e)||a.isBuiltInComponent&&a.isBuiltInComponent(e)||a.isNativeTag&&!a.isNativeTag(e))return!0;for(let s=0;s0&&!Kt(e.source,">")&&!Kt(e.source,"/>")){if(Kt(e.source,"/")){zt(e,22),Ft(e,1),qt(e);continue}1===t&&zt(e,3);const s=Rt(e,a);6===s.type&&s.value&&"class"===s.name&&(s.value.content=s.value.content.replace(/\s+/g," ").trim()),0===t&&n.push(s),/^[^\t\r\n\f />]/.test(e.source)&&zt(e,15),qt(e)}return n}function Rt(e,t){const n=Pt(e),a=/^[^\t\r\n\f />][^\t\r\n\f />=]*/.exec(e.source),s=a[0];t.has(s)&&zt(e,2),t.add(s),"="===s[0]&&zt(e,19);{const t=/["'<]/g;let n;while(n=t.exec(s))zt(e,17,n.index)}let o;Ft(e,s.length),/^[\t\r\n\f ]*=/.test(e.source)&&(qt(e),Ft(e,1),qt(e),o=Dt(e),o||zt(e,13));const l=jt(e,n);if(!e.inVPre&&/^(v-[A-Za-z0-9-]|:|\.|@|#)/.test(s)){const t=/(?:^v-([a-z0-9-]+))?(?:(?::|^\.|^@|^#)(\[[^\]]+\]|[^\.]+))?(.+)?$/i.exec(s);let a,i=Kt(s,"."),r=t[1]||(i||Kt(s,":")?"bind":Kt(s,"@")?"on":"slot");if(t[2]){const o="slot"===r,l=s.lastIndexOf(t[2]),i=jt(e,Wt(e,n,l),Wt(e,n,l+t[2].length+(o&&t[3]||"").length));let c=t[2],u=!0;c.startsWith("[")?(u=!1,c.endsWith("]")?c=c.slice(1,c.length-1):(zt(e,27),c=c.slice(1))):o&&(c+=t[3]||""),a={type:4,content:c,isStatic:u,constType:u?3:0,loc:i}}if(o&&o.isQuoted){const e=o.loc;e.start.offset++,e.start.column++,e.end=Xe(e.start,o.content),e.source=e.source.slice(1,-1)}const c=t[3]?t[3].slice(1).split("."):[];return i&&c.push("prop"),"bind"===r&&a&&c.includes("sync")&&bt("COMPILER_V_BIND_SYNC",e,l,a.loc.source)&&(r="model",c.splice(c.indexOf("sync"),1)),{type:7,name:r,exp:o&&{type:4,content:o.content,isStatic:!1,constType:0,loc:o.loc},arg:a,modifiers:c,loc:l}}return!e.inVPre&&Kt(s,"v-")&&zt(e,26),{type:6,name:s,value:o&&{type:2,content:o.content,loc:o.loc},loc:l}}function Dt(e){const t=Pt(e);let n;const a=e.source[0],s='"'===a||"'"===a;if(s){Ft(e,1);const t=e.source.indexOf(a);-1===t?n=Ut(e,e.source.length,4):(n=Ut(e,t,4),Ft(e,1))}else{const t=/^[^\t\r\n\f >]+/.exec(e.source);if(!t)return;const a=/["'<=`]/g;let s;while(s=a.exec(t[0]))zt(e,18,s.index);n=Ut(e,t[0].length,4)}return{content:n,isQuoted:s,loc:jt(e,t)}}function Bt(e,t){const[n,a]=e.options.delimiters,s=e.source.indexOf(a,n.length);if(-1===s)return void zt(e,25);const o=Pt(e);Ft(e,n.length);const l=Pt(e),i=Pt(e),r=s-n.length,c=e.source.slice(0,r),u=Ut(e,r,t),d=u.trim(),p=u.indexOf(d);p>0&&Je(l,c,p);const _=r-(u.length-d.length-p);return Je(i,c,_),Ft(e,a.length),{type:5,content:{type:4,isStatic:!1,constType:0,content:d,loc:jt(e,l,i)},loc:jt(e,o)}}function Mt(e,t){const n=3===t?["]]>"]:["<",e.options.delimiters[0]];let a=e.source.length;for(let l=0;lt&&(a=t)}const s=Pt(e),o=Ut(e,a,t);return{type:2,content:o,loc:jt(e,s)}}function Ut(e,t,n){const a=e.source.slice(0,t);return Ft(e,t),2!==n&&3!==n&&a.includes("&")?e.options.decodeEntities(a,4===n):a}function Pt(e){const{column:t,line:n,offset:a}=e;return{column:t,line:n,offset:a}}function jt(e,t,n){return n=n||Pt(e),{start:t,end:n,source:e.originalSource.slice(t.offset,n.offset)}}function $t(e){return e[e.length-1]}function Kt(e,t){return e.startsWith(t)}function Ft(e,t){const{source:n}=e;Je(e,n,t),e.source=n.slice(t)}function qt(e){const t=/^[\t\r\n\f ]+/.exec(e.source);t&&Ft(e,t[0].length)}function Wt(e,t,n){return Xe(t,e.originalSource.slice(t.offset,n),n)}function zt(e,t,n,a=Pt(e)){n&&(a.offset+=n,a.column+=n),e.options.onError(U(t,{start:a,end:a,source:""}))}function Gt(e,t,n){const a=e.source;switch(t){case 0:if(Kt(a,"=0;--e)if(Qt(a,n[e].tag))return!0;break;case 1:case 2:{const e=$t(n);if(e&&Qt(a,e.tag))return!0;break}case 3:if(Kt(a,"]]>"))return!0;break}return!a}function Qt(e,t){return Kt(e,"]/.test(e[2+t.length]||">")}function Ht(e,t){Jt(e,t,Xt(e,e.children[0]))}function Xt(e,t){const{children:n}=e;return 1===n.length&&1===t.type&&!ot(t)}function Jt(e,t,n=!1){const{children:a}=e,s=a.length;let o=0;for(let l=0;l0){if(a>=2){e.codegenNode.patchFlag="-1",e.codegenNode=t.hoist(e.codegenNode),o++;continue}}else{const n=e.codegenNode;if(13===n.type){const a=an(n);if((!a||512===a||1===a)&&tn(e,t)>=2){const a=nn(e);a&&(n.props=t.hoist(a))}n.dynamicProps&&(n.dynamicProps=t.hoist(n.dynamicProps))}}}if(1===e.type){const n=1===e.tagType;n&&t.scopes.vSlot++,Jt(e,t),n&&t.scopes.vSlot--}else if(11===e.type)Jt(e,t,1===e.children.length);else if(9===e.type)for(let n=0;n1)for(let s=0;sn&&(S.childIndex--,S.onNodeRemoved()):(S.currentNode=null,S.onNodeRemoved()),S.parent.children.splice(n,1)},onNodeRemoved:()=>{},addIdentifiers(e){},removeIdentifiers(e){},hoist(e){N(e)&&(e=Ie(e)),S.hoists.push(e);const t=Ie(`_hoisted_${S.hoists.length}`,!1,e.loc,2);return t.hoisted=e,t},cache(e,t=!1){return Me(S.cached++,e,t)}};return S.filters=new Set,S}function on(e,t){const n=sn(e,t);cn(e,n),t.hoistStatic&&Ht(e,n),t.ssr||ln(e,n),e.helpers=new Set([...n.helpers.keys()]),e.components=[...n.components],e.directives=[...n.directives],e.imports=n.imports,e.hoists=n.hoists,e.temps=n.temps,e.cached=n.cached,e.filters=[...n.filters]}function ln(e,t){const{helper:n}=t,{children:a}=e;if(1===a.length){const n=a[0];if(Xt(e,n)&&n.codegenNode){const a=n.codegenNode;13===a.type&&mt(a,t),e.codegenNode=a}else e.codegenNode=n}else if(a.length>1){let a=64;l[64];0,e.codegenNode=Ce(t,n(P),void 0,e.children,a+"",void 0,void 0,!0,void 0,!1)}}function rn(e,t){let n=0;const a=()=>{n--};for(;nt===e:t=>e.test(t);return(e,a)=>{if(1===e.type){const{props:s}=e;if(3===e.tagType&&s.some(at))return;const o=[];for(let l=0;l`${Ne[e]}: _${Ne[e]}`;function _n(e,{mode:t="function",prefixIdentifiers:n="module"===t,sourceMap:a=!1,filename:s="template.vue.html",scopeId:o=null,optimizeImports:l=!1,runtimeGlobalName:i="Vue",runtimeModuleName:r="vue",ssrRuntimeModuleName:c="vue/server-renderer",ssr:u=!1,isTS:d=!1,inSSR:p=!1}){const _={mode:t,prefixIdentifiers:n,sourceMap:a,filename:s,scopeId:o,optimizeImports:l,runtimeGlobalName:i,runtimeModuleName:r,ssrRuntimeModuleName:c,ssr:u,isTS:d,inSSR:p,source:e.loc.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper(e){return`_${Ne[e]}`},push(e,t){_.code+=e},indent(){h(++_.indentLevel)},deindent(e=!1){e?--_.indentLevel:h(--_.indentLevel)},newline(){h(_.indentLevel)}};function h(e){_.push("\n"+" ".repeat(e))}return _}function hn(e,t={}){const n=_n(e,t);t.onContextCreated&&t.onContextCreated(n);const{mode:a,push:s,prefixIdentifiers:o,indent:l,deindent:i,newline:r,scopeId:c,ssr:u}=n,d=Array.from(e.helpers),p=d.length>0,_=!o&&"module"!==a,h=!1,m=h?_n(e,t):n;mn(e,m);const f=u?"ssrRender":"render",v=u?["_ctx","_push","_parent","_attrs"]:["_ctx","_cache"],b=v.join(", ");if(s(`function ${f}(${b}) {`),l(),_&&(s("with (_ctx) {"),l(),p&&(s(`const { ${d.map(pn).join(", ")} } = _Vue`),s("\n"),r())),e.components.length&&(fn(e.components,"component",n),(e.directives.length||e.temps>0)&&r()),e.directives.length&&(fn(e.directives,"directive",n),e.temps>0&&r()),e.filters&&e.filters.length&&(r(),fn(e.filters,"filter",n),r()),e.temps>0){s("let ");for(let t=0;t0?", ":""}_temp${t}`)}return(e.components.length||e.directives.length||e.temps)&&(s("\n"),r()),u||s("return "),e.codegenNode?yn(e.codegenNode,n):s("null"),_&&(i(),s("}")),i(),s("}"),{ast:e,code:n.code,preamble:h?m.code:"",map:n.map?n.map.toJSON():void 0}}function mn(e,t){const{ssr:n,prefixIdentifiers:a,push:s,newline:o,runtimeModuleName:l,runtimeGlobalName:i,ssrRuntimeModuleName:r}=t,c=i,u=Array.from(e.helpers);if(u.length>0&&(s(`const _Vue = ${c}\n`),e.hoists.length)){const e=[G,Q,H,X,J].filter((e=>u.includes(e))).map(pn).join(", ");s(`const { ${e} } = _Vue\n`)}vn(e.hoists,t),o(),s("return ")}function fn(e,t,{helper:n,push:a,newline:s,isTS:o}){const l=n("filter"===t?te:"component"===t?Y:ee);for(let i=0;i3||!1;t.push("["),n&&t.indent(),gn(e,t,n),n&&t.deindent(),t.push("]")}function gn(e,t,n=!1,a=!0){const{push:s,newline:o}=t;for(let l=0;le||"null"))}function On(e,t){const{push:n,helper:a,pure:s}=t,o=N(e.callee)?e.callee:a(e.callee);s&&n(dn),n(o+"(",e),gn(e.arguments,t),n(")")}function Tn(e,t){const{push:n,indent:a,deindent:s,newline:o}=t,{properties:l}=e;if(!l.length)return void n("{}",e);const i=l.length>1||!1;n(i?"{":"{ "),i&&a();for(let r=0;r "),(r||i)&&(n("{"),a()),l?(r&&n("return "),w(l)?bn(l,t):yn(l,t)):i&&yn(i,t),(r||i)&&(s(),n("}")),c&&(e.isNonScopedSlot&&n(", undefined, true"),n(")"))}function Ln(e,t){const{test:n,consequent:a,alternate:s,newline:o}=e,{push:l,indent:i,deindent:r,newline:c}=t;if(4===n.type){const e=!Fe(n.content);e&&l("("),En(n,t),e&&l(")")}else l("("),yn(n,t),l(")");o&&i(),t.indentLevel++,o||l(" "),l("? "),yn(a,t),t.indentLevel--,o&&c(),o||l(" "),l(": ");const u=19===s.type;u||t.indentLevel++,yn(s,t),u||t.indentLevel--,o&&r(!0)}function Rn(e,t){const{push:n,helper:a,indent:s,deindent:o,newline:l}=t;n(`_cache[${e.index}] || (`),e.isVNode&&(s(),n(`${a(fe)}(-1),`),l()),n(`_cache[${e.index}] = `),yn(e.value,t),e.isVNode&&(n(","),l(),n(`${a(fe)}(1),`),l(),n(`_cache[${e.index}]`),o()),n(")")}new RegExp("\\b"+"arguments,await,break,case,catch,class,const,continue,debugger,default,delete,do,else,export,extends,finally,for,function,if,import,let,new,return,super,switch,throw,try,var,void,while,with,yield".split(",").join("\\b|\\b")+"\\b");const Dn=un(/^(if|else|else-if)$/,((e,t,n)=>Bn(e,t,n,((e,t,a)=>{const s=n.parent.children;let o=s.indexOf(e),l=0;while(o-- >=0){const e=s[o];e&&9===e.type&&(l+=e.branches.length)}return()=>{if(a)e.codegenNode=Un(t,l,n);else{const a=jn(e.codegenNode);a.alternate=Un(t,l+e.branches.length-1,n)}}}))));function Bn(e,t,n,a){if("else"!==t.name&&(!t.exp||!t.exp.content.trim())){const a=t.exp?t.exp.loc:e.loc;n.onError(U(28,t.loc)),t.exp=Ie("true",!1,a)}if("if"===t.name){const s=Mn(e,t),o={type:9,loc:e.loc,branches:[s]};if(n.replaceNode(o),a)return a(o,s,!0)}else{const s=n.parent.children;let o=s.indexOf(e);while(o-- >=-1){const l=s[o];if(l&&3===l.type)n.removeNode(l);else{if(!l||2!==l.type||l.content.trim().length){if(l&&9===l.type){"else-if"===t.name&&void 0===l.branches[l.branches.length-1].condition&&n.onError(U(30,e.loc)),n.removeNode();const s=Mn(e,t);0,l.branches.push(s);const o=a&&a(l,s,!1);cn(s,n),o&&o(),n.currentNode=null}else n.onError(U(30,e.loc));break}n.removeNode(l)}}}}function Mn(e,t){const n=3===e.tagType;return{type:10,loc:e.loc,condition:"else"===t.name?void 0:t.exp,children:n&&!Ye(e,"for")?e.children:[e],userKey:Ze(e,"key"),isTemplateIf:n}}function Un(e,t,n){return e.condition?Be(e.condition,Pn(e,t,n),Re(n.helper(H),['""',"true"])):Pn(e,t,n)}function Pn(e,t,n){const{helper:a}=n,s=Ae("key",Ie(`${t}`,!1,Se,2)),{children:o}=e,i=o[0],r=1!==o.length||1!==i.type;if(r){if(1===o.length&&11===i.type){const e=i.codegenNode;return dt(e,s,n),e}{let t=64;l[64];return Ce(n,a(P),Te([s]),o,t+"",void 0,void 0,!0,!1,!1,e.loc)}}{const e=i.codegenNode,t=ht(e);return 13===t.type&&mt(t,n),dt(t,s,n),e}}function jn(e){while(1)if(19===e.type){if(19!==e.alternate.type)return e;e=e.alternate}else 20===e.type&&(e=e.value)}const $n=un("for",((e,t,n)=>{const{helper:a,removeHelper:s}=n;return Kn(e,t,n,(t=>{const o=Re(a(ae),[t.source]),l=st(e),i=Ye(e,"memo"),r=Ze(e,"key"),c=r&&(6===r.type?Ie(r.value.content,!0):r.exp),u=r?Ae("key",c):null,d=4===t.source.type&&t.source.constType>0,p=d?64:r?128:256;return t.codegenNode=Ce(n,a(P),void 0,o,p+"",void 0,void 0,!0,!d,!1,e.loc),()=>{let r;const{children:p}=t;const _=1!==p.length||1!==p[0].type,h=ot(e)?e:l&&1===e.children.length&&ot(e.children[0])?e.children[0]:null;if(h?(r=h.codegenNode,l&&u&&dt(r,u,n)):_?r=Ce(n,a(P),u?Te([u]):void 0,e.children,"64",void 0,void 0,!0,void 0,!1):(r=p[0].codegenNode,l&&u&&dt(r,u,n),r.isBlock!==!d&&(r.isBlock?(s(q),s(rt(n.inSSR,r.isComponent))):s(lt(n.inSSR,r.isComponent))),r.isBlock=!d,r.isBlock?(a(q),a(rt(n.inSSR,r.isComponent))):a(lt(n.inSSR,r.isComponent))),i){const e=De(Qn(t.parseResult,[Ie("_cached")]));e.body=Ue([Le(["const _memo = (",i.exp,")"]),Le(["if (_cached",...c?[" && _cached.key === ",c]:[],` && ${n.helperString(we)}(_cached, _memo)) return _cached`]),Le(["const _item = ",r]),Ie("_item.memo = _memo"),Ie("return _item")]),o.arguments.push(e,Ie("_cache"),Ie(String(n.cached++)))}else o.arguments.push(De(Qn(t.parseResult),r,!0))}}))}));function Kn(e,t,n,a){if(!t.exp)return void n.onError(U(31,t.loc));const s=zn(t.exp,n);if(!s)return void n.onError(U(32,t.loc));const{addIdentifiers:o,removeIdentifiers:l,scopes:i}=n,{source:r,value:c,key:u,index:d}=s,p={type:11,loc:t.loc,source:r,valueAlias:c,keyAlias:u,objectIndexAlias:d,parseResult:s,children:st(e)?e.children:[e]};n.replaceNode(p),i.vFor++;const _=a&&a(p);return()=>{i.vFor--,_&&_()}}const Fn=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,qn=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Wn=/^\(|\)$/g;function zn(e,t){const n=e.loc,a=e.content,s=a.match(Fn);if(!s)return;const[,o,l]=s,i={source:Gn(n,l.trim(),a.indexOf(l,o.length)),value:void 0,key:void 0,index:void 0};let r=o.trim().replace(Wn,"").trim();const c=o.indexOf(r),u=r.match(qn);if(u){r=r.replace(qn,"").trim();const e=u[1].trim();let t;if(e&&(t=a.indexOf(e,c+r.length),i.key=Gn(n,e,t)),u[2]){const s=u[2].trim();s&&(i.index=Gn(n,s,a.indexOf(s,i.key?t+e.length:c+r.length)))}}return r&&(i.value=Gn(n,r,c)),i}function Gn(e,t,n){return Ie(t,!1,He(e,n,t.length))}function Qn({value:e,key:t,index:n},a=[]){return Hn([e,t,n,...a])}function Hn(e){let t=e.length;while(t--)if(e[t])break;return e.slice(0,t+1).map(((e,t)=>e||Ie("_".repeat(t+1),!1)))}const Xn=Ie("undefined",!1),Jn=(e,t)=>{if(1===e.type&&(1===e.tagType||3===e.tagType)){const n=Ye(e,"slot");if(n)return n.exp,t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},Yn=(e,t,n)=>De(e,t,!1,!0,t.length?t[0].loc:n);function Zn(e,t,n=Yn){t.helper(ge);const{children:a,loc:s}=e,o=[],l=[];let i=t.scopes.vSlot>0||t.scopes.vFor>0;const r=Ye(e,"slot",!0);if(r){const{arg:e,exp:t}=r;e&&!Pe(e)&&(i=!0),o.push(Ae(e||Ie("default",!0),n(t,a,s)))}let c=!1,u=!1;const d=[],p=new Set;let _=0;for(let f=0;f{const o=n(e,a,s);return t.compatConfig&&(o.isNonScopedSlot=!0),Ae("default",o)};c?d.length&&d.some((e=>na(e)))&&(u?t.onError(U(39,d[0].loc)):o.push(e(void 0,d))):o.push(e(void 0,a))}const h=i?2:ta(e.children)?3:1;let m=Te(o.concat(Ae("_",Ie(h+"",!1))),s);return l.length&&(m=Re(t.helper(oe),[m,Oe(l)])),{slots:m,hasDynamicSlots:i}}function ea(e,t,n){const a=[Ae("name",e),Ae("fn",t)];return null!=n&&a.push(Ae("key",Ie(String(n),!0))),Te(a)}function ta(e){for(let t=0;tfunction(){if(e=t.currentNode,1!==e.type||0!==e.tagType&&1!==e.tagType)return;const{tag:n,props:a}=e,s=1===e.tagType;let o=s?oa(e,t):`"${n}"`;const l=S(o)&&o.callee===Z;let i,r,c,u,d,p,_=0,h=l||o===j||o===$||!s&&("svg"===n||"foreignObject"===n);if(a.length>0){const n=la(e,t,void 0,s,l);i=n.props,_=n.patchFlag,d=n.dynamicPropNames;const a=n.directives;p=a&&a.length?Oe(a.map((e=>ca(e,t)))):void 0,n.shouldUseBlock&&(h=!0)}if(e.children.length>0){o===K&&(h=!0,_|=1024);const n=s&&o!==j&&o!==K;if(n){const{slots:n,hasDynamicSlots:a}=Zn(e,t);r=n,a&&(_|=1024)}else if(1===e.children.length&&o!==j){const n=e.children[0],a=n.type,s=5===a||8===a;s&&0===Yt(n,t)&&(_|=1),r=s||2===a?n:e.children}else r=e.children}0!==_&&(c=String(_),d&&d.length&&(u=ua(d))),e.codegenNode=Ce(t,o,i,r,c,u,p,!!h,!1,s,e.loc)};function oa(e,t,n=!1){let{tag:a}=e;const s=da(a),o=Ze(e,"is");if(o)if(s||vt("COMPILER_IS_ON_ELEMENT",t)){const e=6===o.type?o.value&&Ie(o.value.content,!0):o.exp;if(e)return Re(t.helper(Z),[e])}else 6===o.type&&o.value.content.startsWith("vue:")&&(a=o.value.content.slice(4));const l=!s&&Ye(e,"is");if(l&&l.exp)return Re(t.helper(Z),[l.exp]);const i=$e(a)||t.isBuiltInComponent(a);return i?(n||t.helper(i),i):(t.helper(Y),t.components.add(a),_t(a,"component"))}function la(e,t,n=e.props,a,s,o=!1){const{tag:l,loc:i,children:r}=e;let c=[];const u=[],d=[],p=r.length>0;let _=!1,h=0,m=!1,f=!1,v=!1,b=!1,g=!1,y=!1;const E=[],w=e=>{c.length&&(u.push(Te(ia(c),i)),c=[]),e&&u.push(e)},N=({key:e,value:n})=>{if(Pe(e)){const o=e.content,l=k(o);if(!l||a&&!s||"onclick"===o.toLowerCase()||"onUpdate:modelValue"===o||V(o)||(b=!0),l&&V(o)&&(y=!0),20===n.type||(4===n.type||8===n.type)&&Yt(n,t)>0)return;"ref"===o?m=!0:"class"===o?f=!0:"style"===o?v=!0:"key"===o||E.includes(o)||E.push(o),!a||"class"!==o&&"style"!==o||E.includes(o)||E.push(o)}else g=!0};for(let k=0;k0&&c.push(Ae(Ie("ref_for",!0),Ie("true")))),"is"===n&&(da(l)||a&&a.content.startsWith("vue:")||vt("COMPILER_IS_ON_ELEMENT",t)))continue;c.push(Ae(Ie(n,!0,He(e,0,n.length)),Ie(a?a.content:"",o,a?a.loc:e)))}else{const{name:n,arg:r,exp:h,loc:m}=s,f="bind"===n,v="on"===n;if("slot"===n){a||t.onError(U(40,m));continue}if("once"===n||"memo"===n)continue;if("is"===n||f&&et(r,"is")&&(da(l)||vt("COMPILER_IS_ON_ELEMENT",t)))continue;if(v&&o)continue;if((f&&et(r,"key")||v&&p&&et(r,"vue:before-update"))&&(_=!0),f&&et(r,"ref")&&t.scopes.vFor>0&&c.push(Ae(Ie("ref_for",!0),Ie("true"))),!r&&(f||v)){if(g=!0,h)if(f){if(w(),vt("COMPILER_V_BIND_OBJECT_ORDER",t)){u.unshift(h);continue}u.push(h)}else w({type:14,loc:m,callee:t.helper(pe),arguments:a?[h]:[h,"true"]});else t.onError(U(f?34:35,m));continue}const b=t.directiveTransforms[n];if(b){const{props:n,needRuntime:a}=b(s,e,t);!o&&n.forEach(N),v&&r&&!Pe(r)?w(Te(n,i)):c.push(...n),a&&(d.push(s),x(a)&&aa.set(s,a))}else C(n)||(d.push(s),p&&(_=!0))}}let S;if(u.length?(w(),S=u.length>1?Re(t.helper(ie),u,i):u[0]):c.length&&(S=Te(ia(c),i)),g?h|=16:(f&&!a&&(h|=2),v&&!a&&(h|=4),E.length&&(h|=8),b&&(h|=32)),_||0!==h&&32!==h||!(m||y||d.length>0)||(h|=512),!t.inSSR&&S)switch(S.type){case 15:let e=-1,n=-1,a=!1;for(let t=0;tAe(e,t))),s))}return Oe(n,e.loc)}function ua(e){let t="[";for(let n=0,a=e.length;n{const t=Object.create(null);return n=>{const a=t[n];return a||(t[n]=e(n))}},_a=/-(\w)/g,ha=pa((e=>e.replace(_a,((e,t)=>t?t.toUpperCase():"")))),ma=(e,t)=>{if(ot(e)){const{children:n,loc:a}=e,{slotName:s,slotProps:o}=fa(e,t),l=[t.prefixIdentifiers?"_ctx.$slots":"$slots",s,"{}","undefined","true"];let i=2;o&&(l[2]=o,i=3),n.length&&(l[3]=De([],n,!1,!1,a),i=4),t.scopeId&&!t.slotted&&(i=5),l.splice(i),e.codegenNode=Re(t.helper(se),l,a)}};function fa(e,t){let n,a='"default"';const s=[];for(let o=0;o0){const{props:a,directives:o}=la(e,t,s,!1,!1);n=a,o.length&&t.onError(U(36,o[0].loc))}return{slotName:a,slotProps:n}}const va=/^\s*([\w$_]+|(async\s*)?\([^)]*?\))\s*(:[^=]+)?=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/,ba=(e,t,n,a)=>{const{loc:s,modifiers:o,arg:l}=e;let i;if(e.exp||o.length||n.onError(U(35,s)),4===l.type)if(l.isStatic){let e=l.content;e.startsWith("vue:")&&(e=`vnode-${e.slice(4)}`);const n=0!==t.tagType||e.startsWith("vnode")||!/[A-Z]/.test(e)?D(A(e)):`on:${e}`;i=Ie(n,!0,l.loc)}else i=Le([`${n.helperString(me)}(`,l,")"]);else i=l,i.children.unshift(`${n.helperString(me)}(`),i.children.push(")");let r=e.exp;r&&!r.content.trim()&&(r=void 0);let c=n.cacheHandlers&&!r&&!n.inVOnce;if(r){const e=Qe(r.content),t=!(e||va.test(r.content)),n=r.content.includes(";");0,(t||c&&e)&&(r=Le([`${t?"$event":"(...args)"} => ${n?"{":"("}`,r,n?"}":")"]))}let u={props:[Ae(i,r||Ie("() => {}",!1,s))]};return a&&(u=a(u)),c&&(u.props[0].value=n.cache(u.props[0].value)),u.props.forEach((e=>e.key.isHandlerKey=!0)),u},ga=(e,t,n)=>{const{exp:a,modifiers:s,loc:o}=e,l=e.arg;return 4!==l.type?(l.children.unshift("("),l.children.push(') || ""')):l.isStatic||(l.content=`${l.content} || ""`),s.includes("camel")&&(4===l.type?l.isStatic?l.content=A(l.content):l.content=`${n.helperString(_e)}(${l.content})`:(l.children.unshift(`${n.helperString(_e)}(`),l.children.push(")"))),n.inSSR||(s.includes("prop")&&ya(l,"."),s.includes("attr")&&ya(l,"^")),!a||4===a.type&&!a.content.trim()?(n.onError(U(34,o)),{props:[Ae(l,Ie("",!0,o))]}):{props:[Ae(l,a)]}},ya=(e,t)=>{4===e.type?e.isStatic?e.content=t+e.content:e.content=`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(")"))},ka=(e,t)=>{if(0===e.type||1===e.type||11===e.type||10===e.type)return()=>{const n=e.children;let a,s=!1;for(let e=0;e7===e.type&&!t.directiveTransforms[e.name]))||"template"===e.tag)))for(let e=0;e{if(1===e.type&&Ye(e,"once",!0)){if(Ea.has(e)||t.inVOnce)return;return Ea.add(e),t.inVOnce=!0,t.helper(fe),()=>{t.inVOnce=!1;const e=t.currentNode;e.codegenNode&&(e.codegenNode=t.cache(e.codegenNode,!0))}}},Na=(e,t,n)=>{const{exp:a,arg:s}=e;if(!a)return n.onError(U(41,e.loc)),xa();const o=a.loc.source,l=4===a.type?a.content:o,i=n.bindingMetadata[o];if("props"===i||"props-aliased"===i)return n.onError(U(44,a.loc)),xa();const r=!1;if(!l.trim()||!Qe(l)&&!r)return n.onError(U(42,a.loc)),xa();const c=s||Ie("modelValue",!0),u=s?Pe(s)?`onUpdate:${A(s.content)}`:Le(['"onUpdate:" + ',s]):"onUpdate:modelValue";let d;const p=n.isTS?"($event: any)":"$event";d=Le([`${p} => ((`,a,") = $event)"]);const _=[Ae(c,e.exp),Ae(u,d)];if(e.modifiers.length&&1===t.tagType){const t=e.modifiers.map((e=>(Fe(e)?e:JSON.stringify(e))+": true")).join(", "),n=s?Pe(s)?`${s.content}Modifiers`:Le([s,' + "Modifiers"']):"modelModifiers";_.push(Ae(n,Ie(`{ ${t} }`,!1,e.loc,2)))}return xa(_)};function xa(e=[]){return{props:e}}const Sa=/[\w).+\-_$\]]/,Va=(e,t)=>{vt("COMPILER_FILTER",t)&&(5===e.type&&Ca(e.content,t),1===e.type&&e.props.forEach((e=>{7===e.type&&"for"!==e.name&&e.exp&&Ca(e.exp,t)})))};function Ca(e,t){if(4===e.type)Oa(e,t);else for(let n=0;n=0;t--)if(e=n.charAt(t)," "!==e)break;e&&Sa.test(e)||(u=!0)}}else void 0===l?(h=o+1,l=n.slice(0,o).trim()):f();function f(){m.push(n.slice(h,o).trim()),h=o+1}if(void 0===l?l=n.slice(0,o).trim():0!==h&&f(),m.length){for(o=0;o{if(1===e.type){const n=Ye(e,"memo");if(!n||Aa.has(e))return;return Aa.add(e),()=>{const a=e.codegenNode||t.currentNode.codegenNode;a&&13===a.type&&(1!==e.tagType&&mt(a,t),e.codegenNode=Re(t.helper(Ee),[n.exp,De(void 0,a),"_cache",String(t.cached++)]))}}};function La(e){return[[wa,Dn,Ia,$n,Va,ma,sa,Jn,ka],{on:ba,bind:ga,model:Na}]}function Ra(e,t={}){const n=t.onError||B,a="module"===t.mode;!0===t.prefixIdentifiers?n(U(47)):a&&n(U(48));const s=!1;t.cacheHandlers&&n(U(49)),t.scopeId&&!a&&n(U(50));const o=N(e)?Et(e,t):e,[l,i]=La();return on(o,E({},t,{prefixIdentifiers:s,nodeTransforms:[...l,...t.nodeTransforms||[]],directiveTransforms:E({},i,t.directiveTransforms||{})})),hn(o,E({},t,{prefixIdentifiers:s}))}const Da=()=>({props:[]}),Ba=Symbol(""),Ma=Symbol(""),Ua=Symbol(""),Pa=Symbol(""),ja=Symbol(""),$a=Symbol(""),Ka=Symbol(""),Fa=Symbol(""),qa=Symbol(""),Wa=Symbol("");let za;function Ga(e,t=!1){return za||(za=document.createElement("div")),t?(za.innerHTML=`
`,za.children[0].getAttribute("foo")):(za.innerHTML=e,za.textContent)}xe({[Ba]:"vModelRadio",[Ma]:"vModelCheckbox",[Ua]:"vModelText",[Pa]:"vModelSelect",[ja]:"vModelDynamic",[$a]:"withModifiers",[Ka]:"withKeys",[Fa]:"vShow",[qa]:"Transition",[Wa]:"TransitionGroup"});const Qa=o("style,iframe,script,noscript",!0),Ha={isVoidTag:f,isNativeTag:e=>h(e)||m(e),isPreTag:e=>"pre"===e,decodeEntities:Ga,isBuiltInComponent:e=>je(e,"Transition")?qa:je(e,"TransitionGroup")?Wa:void 0,getNamespace(e,t){let n=t?t.ns:0;if(t&&2===n)if("annotation-xml"===t.tag){if("svg"===e)return 1;t.props.some((e=>6===e.type&&"encoding"===e.name&&null!=e.value&&("text/html"===e.value.content||"application/xhtml+xml"===e.value.content)))&&(n=0)}else/^m(?:[ions]|text)$/.test(t.tag)&&"mglyph"!==e&&"malignmark"!==e&&(n=0);else t&&1===n&&("foreignObject"!==t.tag&&"desc"!==t.tag&&"title"!==t.tag||(n=0));if(0===n){if("svg"===e)return 1;if("math"===e)return 2}return n},getTextMode({tag:e,ns:t}){if(0===t){if("textarea"===e||"title"===e)return 1;if(Qa(e))return 2}return 0}},Xa=e=>{1===e.type&&e.props.forEach(((t,n)=>{6===t.type&&"style"===t.name&&t.value&&(e.props[n]={type:7,name:"bind",arg:Ie("style",!0,t.loc),exp:Ja(t.value.content,t.loc),modifiers:[],loc:t.loc})}))},Ja=(e,t)=>{const n=u(e);return Ie(JSON.stringify(n),!1,t,3)};function Ya(e,t){return U(e,t,void 0)}const Za=(e,t,n)=>{const{exp:a,loc:s}=e;return a||n.onError(Ya(51,s)),t.children.length&&(n.onError(Ya(52,s)),t.children.length=0),{props:[Ae(Ie("innerHTML",!0,s),a||Ie("",!0))]}},es=(e,t,n)=>{const{exp:a,loc:s}=e;return a||n.onError(Ya(53,s)),t.children.length&&(n.onError(Ya(54,s)),t.children.length=0),{props:[Ae(Ie("textContent",!0),a?Yt(a,n)>0?a:Re(n.helperString(le),[a],s):Ie("",!0))]}},ts=(e,t,n)=>{const a=Na(e,t,n);if(!a.props.length||1===t.tagType)return a;e.arg&&n.onError(Ya(56,e.arg.loc));const{tag:s}=t,o=n.isCustomElement(s);if("input"===s||"textarea"===s||"select"===s||o){let l=Ua,i=!1;if("input"===s||o){const a=Ze(t,"type");if(a){if(7===a.type)l=ja;else if(a.value)switch(a.value.content){case"radio":l=Ba;break;case"checkbox":l=Ma;break;case"file":i=!0,n.onError(Ya(57,e.loc));break;default:break}}else tt(t)&&(l=ja)}else"select"===s&&(l=Pa);i||(a.needRuntime=n.helper(l))}else n.onError(Ya(55,e.loc));return a.props=a.props.filter((e=>!(4===e.key.type&&"modelValue"===e.key.content))),a},ns=o("passive,once,capture"),as=o("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),ss=o("left,right"),os=o("onkeyup,onkeydown,onkeypress",!0),ls=(e,t,n,a)=>{const s=[],o=[],l=[];for(let i=0;i{const n=Pe(e)&&"onclick"===e.content.toLowerCase();return n?Ie(t,!0):4!==e.type?Le(["(",e,`) === "onClick" ? "${t}" : (`,e,")"]):e},rs=(e,t,n)=>ba(e,t,n,(t=>{const{modifiers:a}=e;if(!a.length)return t;let{key:s,value:o}=t.props[0];const{keyModifiers:l,nonKeyModifiers:i,eventOptionModifiers:r}=ls(s,a,n,e.loc);if(i.includes("right")&&(s=is(s,"onContextmenu")),i.includes("middle")&&(s=is(s,"onMouseup")),i.length&&(o=Re(n.helper($a),[o,JSON.stringify(i)])),!l.length||Pe(s)&&!os(s.content)||(o=Re(n.helper(Ka),[o,JSON.stringify(l)])),r.length){const e=r.map(R).join("");s=Pe(s)?Ie(`${s.content}${e}`,!0):Le(["(",s,`) + "${e}"`])}return{props:[Ae(s,o)]}})),cs=(e,t,n)=>{const{exp:a,loc:s}=e;return a||n.onError(Ya(59,s)),{props:[],needRuntime:n.helper(Fa)}};const us=(e,t)=>{1!==e.type||0!==e.tagType||"script"!==e.tag&&"style"!==e.tag||(t.onError(Ya(61,e.loc)),t.removeNode())},ds=[Xa],ps={cloak:Da,html:Za,text:es,model:ts,on:rs,show:cs};function _s(e,t={}){return Ra(e,E({},Ha,t,{nodeTransforms:[us,...ds,...t.nodeTransforms||[]],directiveTransforms:E({},ps,t.directiveTransforms||{}),transformHoist:null}))}var hs=n(4364),ms=function(e,t){return ms=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},ms(e,t)};function fs(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}ms(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var vs=function(){return vs=Object.assign||function(e){for(var t,n=1,a=arguments.length;n0&&s[s.length-1])&&(6===o[0]||2===o[0])){l=0;continue}if(3===o[0]&&(!s||o[1]>s[0]&&o[1]0&&(t=new Array(e.indent_level+1).join(this.__indent_string)),this.__base_string=t,this.__base_string_length=t.length}function n(n,a){this.__indent_cache=new t(n,a),this.raw=!1,this._end_with_newline=n.end_with_newline,this.indent_size=n.indent_size,this.wrap_line_length=n.wrap_line_length,this.indent_empty_lines=n.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 Ro=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(){while(" "===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 n=this.__base_string_length;return t=t||0,e<0&&(n=0),n+=e*this.__indent_size,n+=t,n},t.prototype.get_indent_string=function(e,t){var n=this.__base_string;return t=t||0,e<0&&(e=0,n=""),t+=e*this.__indent_size,this.__ensure_cache(t),n+=this.__cache[t],n},t.prototype.__ensure_cache=function(e){while(e>=this.__cache.length)this.__add_column()},t.prototype.__add_column=function(){var e=this.__cache.length,t=0,n="";this.__indent_size&&e>=this.__indent_size&&(t=Math.floor(e/this.__indent_size),e-=t*this.__indent_size,n=new Array(t+1).join(this.__indent_string)),e&&(n+=new Array(e+1).join(" ")),this.__cache.push(n)},n.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},n.prototype.get_line_number=function(){return this.__lines.length},n.prototype.get_indent_string=function(e,t){return this.__indent_cache.get_indent_string(e,t)},n.prototype.get_indent_size=function(e,t){return this.__indent_cache.get_indent_size(e,t)},n.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},n.prototype.add_new_line=function(e){return!(this.is_empty()||!e&&this.just_added_newline())&&(this.raw||this.__add_outputline(),!0)},n.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 n=this.__lines.join("\n");return"\n"!==e&&(n=n.replace(/[\n]/g,e)),n},n.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},n.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)},n.prototype.add_raw_token=function(e){for(var t=0;t1&&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},n.prototype.just_added_newline=function(){return this.current_line.is_empty()},n.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},n.prototype.ensure_empty_line_above=function(t,n){var a=this.__lines.length-2;while(a>=0){var s=this.__lines[a];if(s.is_empty())break;if(0!==s.item(0).indexOf(t)&&s.item(-1)!==n){this.__lines.splice(a+1,0,new e(this)),this.previous_line=this.__lines[this.__lines.length-2];break}a--}},Po.Output=n,Po}var $o,Ko={};function Fo(){if($o)return Ko;function e(e,t,n,a){this.type=e,this.text=t,this.comments_before=null,this.newlines=n||0,this.whitespace_before=a||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}return $o=1,Ko.Token=e,Ko}var qo,Wo={};function zo(){return qo||(qo=1,function(e){var t="\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a",n="\\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",s="\\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",o="(?:\\\\u[0-9a-fA-F]{4}|["+t+a+"])",l="(?:\\\\u[0-9a-fA-F]{4}|["+n+a+s+"])*";e.identifier=new RegExp(o+l,"g"),e.identifierStart=new RegExp(o),e.identifierMatch=new RegExp("(?:\\\\u[0-9a-fA-F]{4}|["+n+a+s+"])+"),e.newline=/[\n\r\u2028\u2029]/,e.lineBreak=new RegExp("\r\n|"+e.newline.source),e.allLineBreaks=new RegExp(e.lineBreak.source,"g")}(Wo)),Wo}var Go,Qo,Ho={},Xo={};function Jo(){if(Go)return Xo;function e(e,n){this.raw_options=t(e,n),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs","\t"===this.indent_char),this.indent_with_tabs&&(this.indent_char="\t",1===this.indent_size&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","django","erb","handlebars","php","smarty"],["auto"])}function t(e,t){var a,s={};for(a in e=n(e),e)a!==t&&(s[a]=e[a]);if(t&&e[t])for(a in e[t])s[a]=e[t][a];return s}function n(e){var t,n={};for(t in e){var a=t.replace(/-/g,"_");n[a]=e[t]}return n}return Go=1,e.prototype._get_array=function(e,t){var n=this.raw_options[e],a=t||[];return"object"===typeof n?null!==n&&"function"===typeof n.concat&&(a=n.concat()):"string"===typeof n&&(a=n.split(/[^a-zA-Z0-9_\/\-]+/)),a},e.prototype._get_boolean=function(e,t){var n=this.raw_options[e],a=void 0===n?!!t:!!n;return a},e.prototype._get_characters=function(e,t){var n=this.raw_options[e],a=t||"";return"string"===typeof n&&(a=n.replace(/\\r/,"\r").replace(/\\n/,"\n").replace(/\\t/,"\t")),a},e.prototype._get_number=function(e,t){var n=this.raw_options[e];t=parseInt(t,10),isNaN(t)&&(t=0);var a=parseInt(n,10);return isNaN(a)&&(a=t),a},e.prototype._get_selection=function(e,t,n){var a=this._get_selection_list(e,t,n);if(1!==a.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 a[0]},e.prototype._get_selection_list=function(e,t,n){if(!t||0===t.length)throw new Error("Selection list cannot be empty.");if(n=n||[t[0]],!this._is_valid_selection(n,t))throw new Error("Invalid Default Value!");var a=this._get_array(e,n);if(!this._is_valid_selection(a,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 a},e.prototype._is_valid_selection=function(e,t){return e.length&&t.length&&!e.some((function(e){return-1===t.indexOf(e)}))},Xo.Options=e,Xo.normalizeOpts=n,Xo.mergeOpts=t,Xo}function Yo(){if(Qo)return Ho;Qo=1;var e=Jo().Options,t=["before-newline","after-newline","preserve-newline"];function n(n){e.call(this,n,"js");var a=this.raw_options.brace_style||null;"expand-strict"===a?this.raw_options.brace_style="expand":"collapse-preserve-inline"===a?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 s=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_preserve_inline=!1,this.brace_style="collapse";for(var o=0;o0&&(this.__position-=1)},t.prototype.hasNext=function(){return this.__position=0&&e=0&&t=e.length&&this.__input.substring(t-e.length,t).toLowerCase()===e},tl.InputScanner=t,tl}var al,sl={},ol={};function ll(){if(al)return ol;function e(e){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=e}return al=1,e.prototype.restart=function(){this.__position=0},e.prototype.isEmpty=function(){return 0===this.__tokens_length},e.prototype.hasNext=function(){return this.__position=0&&e/),erb:s.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:s.starting_with(/{%/).until_after(/%}/),django_value:s.starting_with(/{{/).until_after(/}}/),django_comment:s.starting_with(/{#/).until_after(/#}/),smarty:s.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:s.starting_with(/{\*/).until_after(/\*}/),smarty_literal:s.starting_with(/{literal}/).until_after(/{\/literal}/)}}return n.prototype=new e,n.prototype._create=function(){return new n(this._input,this)},n.prototype._update=function(){this.__set_templated_pattern()},n.prototype.disable=function(e){var t=this._create();return t._disabled[e]=!0,t._update(),t},n.prototype.read_options=function(e){var n=this._create();for(var a in t)n._disabled[a]=-1===e.templating.indexOf(a);return n._update(),n},n.prototype.exclude=function(e){var t=this._create();return t._excluded[e]=!0,t._update(),t},n.prototype.read=function(){var e="";e=this._match_pattern?this._input.read(this._starting_pattern):this._input.read(this._starting_pattern,this.__template_pattern);var t=this._read_template();while(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},n.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.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("|")+")")},n.prototype._read_template=function(){var e="",t=this._input.peek();if("<"===t){var n=this._input.peek(1);this._disabled.php||this._excluded.php||"?"!==n||(e=e||this.__patterns.php.read()),this._disabled.erb||this._excluded.erb||"%"!==n||(e=e||this.__patterns.erb.read())}else"{"===t&&(this._disabled.handlebars||this._excluded.handlebars||(e=e||this.__patterns.handlebars_comment.read(),e=e||this.__patterns.handlebars_unescaped.read(),e=e||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||this.__patterns.django_comment.read(),e=e||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(e=e||this.__patterns.smarty_comment.read(),e=e||this.__patterns.smarty_literal.read(),e=e||this.__patterns.smarty.read()));return e},El.TemplatablePattern=n,El}function Nl(){if(gl)return el;gl=1;var e=nl().InputScanner,t=hl().Tokenizer,n=hl().TOKEN,a=vl().Directives,s=zo(),o=pl().Pattern,l=wl().TemplatablePattern;function i(e,t){return-1!==t.indexOf(e)}var r={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:n.START,RAW:n.RAW,EOF:n.EOF},c=new a(/\/\*/,/\*\//),u=/0[xX][0123456789abcdefABCDEF_]*n?|0[oO][01234567_]*n?|0[bB][01_]*n?|\d[\d_]*n|(?:\.\d[\d_]*|\d[\d_]*\.?[\d_]*)(?:[eE][+-]?[\d_]+)?/,d=/[0-9]/,p=/[^\d\.]/,_=">>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "),h=">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";h=h.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"),h="\\?\\.(?!\\d) "+h,h=h.replace(/ /g,"|");var m,f=new RegExp(h),v="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),b=v.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as"]),g=new RegExp("^(?:"+b.join("|")+")$"),y=function(e,n){t.call(this,e,n),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var a=new o(this._input),i=new l(this._input).read_options(this._options);this.__patterns={template:i,identifier:i.starting_with(s.identifier).matching(s.identifierMatch),number:a.matching(u),punct:a.matching(f),comment:a.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:a.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:a.matching(//),include:a.starting_with(/#include/).until_after(s.lineBreak),shebang:a.starting_with(/#!/).until_after(s.lineBreak),xml:a.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:i.until(/['\\\n\r\u2028\u2029]/),double_quote:i.until(/["\\\n\r\u2028\u2029]/),template_text:i.until(/[`\\$]/),template_expression:i.until(/[`}\\]/)}};function k(t){var n="",a=0,s=new e(t),o=null;while(s.hasNext())if(o=s.match(/([\s]|[^\\]|\\\\)+/g),o&&(n+=o[0]),"\\"===s.peek()){if(s.next(),"x"===s.peek())o=s.match(/x([0-9A-Fa-f]{2})/g);else{if("u"!==s.peek()){n+="\\",s.hasNext()&&(n+=s.next());continue}o=s.match(/u([0-9A-Fa-f]{4})/g)}if(!o)return t;if(a=parseInt(o[1],16),a>126&&a<=255&&0===o[0].indexOf("x"))return t;if(a>=0&&a<32){n+="\\"+o[0];continue}n+=34===a||39===a||92===a?"\\"+String.fromCharCode(a):String.fromCharCode(a)}return n}return y.prototype=new t,y.prototype._is_comment=function(e){return e.type===r.COMMENT||e.type===r.BLOCK_COMMENT||e.type===r.UNKNOWN},y.prototype._is_opening=function(e){return e.type===r.START_BLOCK||e.type===r.START_EXPR},y.prototype._is_closing=function(e,t){return(e.type===r.END_BLOCK||e.type===r.END_EXPR)&&t&&("]"===e.text&&"["===t.text||")"===e.text&&"("===t.text||"}"===e.text&&"{"===t.text)},y.prototype._reset=function(){m=!1},y.prototype._get_next_token=function(e,t){var n=null;this._readWhitespace();var a=this._input.peek();return null===a?this._create_token(r.EOF,""):(n=n||this._read_non_javascript(a),n=n||this._read_string(a),n=n||this._read_word(e),n=n||this._read_singles(a),n=n||this._read_comment(a),n=n||this._read_regexp(a,e),n=n||this._read_xml(a,e),n=n||this._read_punctuation(),n=n||this._create_token(r.UNKNOWN,this._input.next()),n)},y.prototype._read_word=function(e){var t;return t=this.__patterns.identifier.read(),""!==t?(t=t.replace(s.allLineBreaks,"\n"),e.type!==r.DOT&&(e.type!==r.RESERVED||"set"!==e.text&&"get"!==e.text)&&g.test(t)?"in"===t||"of"===t?this._create_token(r.OPERATOR,t):this._create_token(r.RESERVED,t):this._create_token(r.WORD,t)):(t=this.__patterns.number.read(),""!==t?this._create_token(r.WORD,t):void 0)},y.prototype._read_singles=function(e){var t=null;return"("===e||"["===e?t=this._create_token(r.START_EXPR,e):")"===e||"]"===e?t=this._create_token(r.END_EXPR,e):"{"===e?t=this._create_token(r.START_BLOCK,e):"}"===e?t=this._create_token(r.END_BLOCK,e):";"===e?t=this._create_token(r.SEMICOLON,e):"."===e&&p.test(this._input.peek(1))?t=this._create_token(r.DOT,e):","===e&&(t=this._create_token(r.COMMA,e)),t&&this._input.next(),t},y.prototype._read_punctuation=function(){var e=this.__patterns.punct.read();if(""!==e)return"="===e?this._create_token(r.EQUALS,e):"?."===e?this._create_token(r.DOT,e):this._create_token(r.OPERATOR,e)},y.prototype._read_non_javascript=function(e){var t="";if("#"===e){if(this._is_first_token()&&(t=this.__patterns.shebang.read(),t))return this._create_token(r.UNKNOWN,t.trim()+"\n");if(t=this.__patterns.include.read(),t)return this._create_token(r.UNKNOWN,t.trim()+"\n");e=this._input.next();var n="#";if(this._input.hasNext()&&this._input.testChar(d)){do{e=this._input.next(),n+=e}while(this._input.hasNext()&&"#"!==e&&"="!==e);return"#"===e||("["===this._input.peek()&&"]"===this._input.peek(1)?(n+="[]",this._input.next(),this._input.next()):"{"===this._input.peek()&&"}"===this._input.peek(1)&&(n+="{}",this._input.next(),this._input.next())),this._create_token(r.WORD,n)}this._input.back()}else if("<"===e&&this._is_first_token()){if(t=this.__patterns.html_comment_start.read(),t){while(this._input.hasNext()&&!this._input.testChar(s.newline))t+=this._input.next();return m=!0,this._create_token(r.COMMENT,t)}}else if(m&&"-"===e&&(t=this.__patterns.html_comment_end.read(),t))return m=!1,this._create_token(r.COMMENT,t);return null},y.prototype._read_comment=function(e){var t=null;if("/"===e){var n="";if("*"===this._input.peek(1)){n=this.__patterns.block_comment.read();var a=c.get_directives(n);a&&"start"===a.ignore&&(n+=c.readIgnored(this._input)),n=n.replace(s.allLineBreaks,"\n"),t=this._create_token(r.BLOCK_COMMENT,n),t.directives=a}else"/"===this._input.peek(1)&&(n=this.__patterns.comment.read(),t=this._create_token(r.COMMENT,n))}return t},y.prototype._read_string=function(e){if("`"===e||"'"===e||'"'===e){var t=this._input.next();return this.has_char_escapes=!1,t+="`"===e?this._read_string_recursive("`",!0,"${"):this._read_string_recursive(e),this.has_char_escapes&&this._options.unescape_strings&&(t=k(t)),this._input.peek()===e&&(t+=this._input.next()),t=t.replace(s.allLineBreaks,"\n"),this._create_token(r.STRING,t)}return null},y.prototype._allow_regexp_or_xml=function(e){return e.type===r.RESERVED&&i(e.text,["return","case","throw","else","do","typeof","yield"])||e.type===r.END_EXPR&&")"===e.text&&e.opened.previous.type===r.RESERVED&&i(e.opened.previous.text,["if","while","for"])||i(e.type,[r.COMMENT,r.START_EXPR,r.START_BLOCK,r.START,r.END_BLOCK,r.OPERATOR,r.EQUALS,r.EOF,r.SEMICOLON,r.COMMA])},y.prototype._read_regexp=function(e,t){if("/"===e&&this._allow_regexp_or_xml(t)){var n=this._input.next(),a=!1,o=!1;while(this._input.hasNext()&&(a||o||this._input.peek()!==e)&&!this._input.testChar(s.newline))n+=this._input.peek(),a?a=!1:(a="\\"===this._input.peek(),"["===this._input.peek()?o=!0:"]"===this._input.peek()&&(o=!1)),this._input.next();return this._input.peek()===e&&(n+=this._input.next(),n+=this._input.read(s.identifier)),this._create_token(r.STRING,n)}return null},y.prototype._read_xml=function(e,t){if(this._options.e4x&&"<"===e&&this._allow_regexp_or_xml(t)){var n="",a=this.__patterns.xml.read_match();if(a){var o=a[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),l=0===o.indexOf("{"),i=0;while(a){var c=!!a[1],u=a[2],d=!!a[a.length-1]||"![CDATA["===u.slice(0,8);if(!d&&(u===o||l&&u.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(c?--i:++i),n+=a[0],i<=0)break;a=this.__patterns.xml.read_match()}return a||(n+=this._input.match(/[\s\S]*/g)[0]),n=n.replace(s.allLineBreaks,"\n"),this._create_token(r.STRING,n)}}return null},y.prototype._read_string_recursive=function(e,t,n){var a,o;"'"===e?o=this.__patterns.single_quote:'"'===e?o=this.__patterns.double_quote:"`"===e?o=this.__patterns.template_text:"}"===e&&(o=this.__patterns.template_expression);var l=o.read(),i="";while(this._input.hasNext()){if(i=this._input.next(),i===e||!t&&s.newline.test(i)){this._input.back();break}"\\"===i&&this._input.hasNext()?(a=this._input.peek(),"x"===a||"u"===a?this.has_char_escapes=!0:"\r"===a&&"\n"===this._input.peek(1)&&this._input.next(),i+=this._input.next()):n&&("${"===n&&"$"===i&&"{"===this._input.peek()&&(i+=this._input.next()),n===i&&(i+="`"===e?this._read_string_recursive("}",t,"`"):this._read_string_recursive("`",t,"${"),this._input.hasNext()&&(i+=this._input.next()))),i+=o.read(),l+=i}return l},el.Tokenizer=y,el.TOKEN=r,el.positionable_operators=_.slice(),el.line_starters=v.slice(),el}function xl(){if(yl)return Uo;yl=1;var e=jo().Output,t=Fo().Token,n=zo(),a=Yo().Options,s=Nl().Tokenizer,o=Nl().line_starters,l=Nl().positionable_operators,i=Nl().TOKEN;function r(e,t){return-1!==t.indexOf(e)}function c(e){return e.replace(/^\s+/g,"")}function u(e){for(var t={},n=0;na&&(a=e.line_indent_level));var s={mode:n,parent:e,last_token:e?e.last_token:new t(i.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,do_block:!1,do_while:!1,import_block:!1,in_case_statement:!1,in_case:!1,case_body:!1,case_block:!1,indentation_level:a,alignment:0,line_indent_level:e?e.line_indent_level:a,start_line_index:this._output.get_line_number(),ternary_depth:0};return s},N.prototype._reset=function(t){var n=t.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new e(this._options,n),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(v.BlockStatement);var a=new s(t,this._options);return this._tokens=a.tokenize(),t},N.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var e,t=this._reset(this._source_text),a=this._options.eol;"auto"===this._options.eol&&(a="\n",t&&n.lineBreak.test(t||"")&&(a=t.match(n.lineBreak)[0]));var s=this._tokens.next();while(s)this.handle_token(s),this._last_last_text=this._flags.last_token.text,this._flags.last_token=s,s=this._tokens.next();return e=this._output.get_code(a),e},N.prototype.handle_token=function(e,t){e.type===i.START_EXPR?this.handle_start_expr(e):e.type===i.END_EXPR?this.handle_end_expr(e):e.type===i.START_BLOCK?this.handle_start_block(e):e.type===i.END_BLOCK?this.handle_end_block(e):e.type===i.WORD||e.type===i.RESERVED?this.handle_word(e):e.type===i.SEMICOLON?this.handle_semicolon(e):e.type===i.STRING?this.handle_string(e):e.type===i.EQUALS?this.handle_equals(e):e.type===i.OPERATOR?this.handle_operator(e):e.type===i.COMMA?this.handle_comma(e):e.type===i.BLOCK_COMMENT?this.handle_block_comment(e,t):e.type===i.COMMENT?this.handle_comment(e,t):e.type===i.DOT?this.handle_dot(e):e.type===i.EOF?this.handle_eof(e):(e.type,i.UNKNOWN,this.handle_unknown(e,t))},N.prototype.handle_whitespace_and_comments=function(e,t){var n=e.newlines,a=this._options.keep_array_indentation&&y(this._flags.mode);if(e.comments_before){var s=e.comments_before.next();while(s)this.handle_whitespace_and_comments(s,t),this.handle_token(s,t),s=e.comments_before.next()}if(a)for(var o=0;o0,t);else if(this._options.max_preserve_newlines&&n>this._options.max_preserve_newlines&&(n=this._options.max_preserve_newlines),this._options.preserve_newlines&&n>1){this.print_newline(!1,t);for(var l=1;l0&&(!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))},N.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)},N.prototype.restore_mode=function(){this._flag_store.length>0&&(this._previous_flags=this._flags,this._flags=this._flag_store.pop(),this._previous_flags.mode===v.Statement&&b(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},N.prototype.start_of_object_property=function(){return this._flags.parent.mode===v.ObjectLiteral&&this._flags.mode===v.Statement&&(":"===this._flags.last_token.text&&0===this._flags.ternary_depth||p(this._flags.last_token,["get","set"]))},N.prototype.start_of_statement=function(e){var t=!1;return t=t||p(this._flags.last_token,["var","let","const"])&&e.type===i.WORD,t=t||d(this._flags.last_token,"do"),t=t||!(this._flags.parent.mode===v.ObjectLiteral&&this._flags.mode===v.Statement)&&p(this._flags.last_token,x)&&!e.newlines,t=t||d(this._flags.last_token,"else")&&!(d(e,"if")&&!e.comments_before),t=t||this._flags.last_token.type===i.END_EXPR&&(this._previous_flags.mode===v.ForInitializer||this._previous_flags.mode===v.Conditional),t=t||this._flags.last_token.type===i.WORD&&this._flags.mode===v.BlockStatement&&!this._flags.in_case&&!("--"===e.text||"++"===e.text)&&"function"!==this._last_last_text&&e.type!==i.WORD&&e.type!==i.RESERVED,t=t||this._flags.mode===v.ObjectLiteral&&(":"===this._flags.last_token.text&&0===this._flags.ternary_depth||p(this._flags.last_token,["get","set"])),!!t&&(this.set_mode(v.Statement),this.indent(),this.handle_whitespace_and_comments(e,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(e,p(e,["do","for","if","while"])),!0)},N.prototype.handle_start_expr=function(e){this.start_of_statement(e)||this.handle_whitespace_and_comments(e);var t=v.Expression;if("["===e.text){if(this._flags.last_token.type===i.WORD||")"===this._flags.last_token.text)return p(this._flags.last_token,o)&&(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.ArrayLiteral,y(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()),r(this._flags.last_token.type,[i.START_EXPR,i.END_EXPR,i.WORD,i.OPERATOR,i.DOT])||(this._output.space_before_token=!0)}else{if(this._flags.last_token.type===i.RESERVED)"for"===this._flags.last_token.text?(this._output.space_before_token=this._options.space_before_conditional,t=v.ForInitializer):r(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,t=v.Conditional):r(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:(r(this._flags.last_token.text,o)||"catch"===this._flags.last_token.text)&&(this._output.space_before_token=!0);else if(this._flags.last_token.type===i.EQUALS||this._flags.last_token.type===i.OPERATOR)this.start_of_object_property()||this.allow_wrap_or_preserved_newline(e);else if(this._flags.last_token.type===i.WORD){this._output.space_before_token=!1;var n=this._tokens.peek(-3);if(this._options.space_after_named_function&&n){var a=this._tokens.peek(-4);p(n,["async","function"])||"*"===n.text&&p(a,["async","function"])?this._output.space_before_token=!0:this._flags.mode===v.ObjectLiteral&&("{"!==n.text&&","!==n.text&&("*"!==n.text||"{"!==a.text&&","!==a.text)||(this._output.space_before_token=!0))}}else this.allow_wrap_or_preserved_newline(e);(this._flags.last_token.type===i.RESERVED&&("function"===this._flags.last_word||"typeof"===this._flags.last_word)||"*"===this._flags.last_token.text&&(r(this._last_last_text,["function","yield"])||this._flags.mode===v.ObjectLiteral&&r(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===i.START_BLOCK?this.print_newline():this._flags.last_token.type!==i.END_EXPR&&this._flags.last_token.type!==i.START_EXPR&&this._flags.last_token.type!==i.END_BLOCK&&"."!==this._flags.last_token.text&&this._flags.last_token.type!==i.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()},N.prototype.handle_end_expr=function(e){while(this._flags.mode===v.Statement)this.restore_mode();this.handle_whitespace_and_comments(e),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(e,"]"===e.text&&y(this._flags.mode)&&!this._options.keep_array_indentation),this._options.space_in_paren&&(this._flags.last_token.type!==i.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(),b(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===v.Conditional&&(this._previous_flags.mode=v.Expression,this._flags.do_block=!1,this._flags.do_while=!1)},N.prototype.handle_start_block=function(e){this.handle_whitespace_and_comments(e);var t=this._tokens.peek(),n=this._tokens.peek(1);"switch"===this._flags.last_word&&this._flags.last_token.type===i.END_EXPR?(this.set_mode(v.BlockStatement),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(v.BlockStatement):n&&(r(n.text,[":",","])&&r(t.type,[i.STRING,i.WORD,i.RESERVED])||r(t.text,["get","set","..."])&&r(n.type,[i.WORD,i.RESERVED]))?r(this._last_last_text,["class","interface"])&&!r(n.text,[":",","])?this.set_mode(v.BlockStatement):this.set_mode(v.ObjectLiteral):this._flags.last_token.type===i.OPERATOR&&"=>"===this._flags.last_token.text?this.set_mode(v.BlockStatement):r(this._flags.last_token.type,[i.EQUALS,i.START_EXPR,i.COMMA,i.OPERATOR])||p(this._flags.last_token,["return","throw","import","default"])?this.set_mode(v.ObjectLiteral):this.set_mode(v.BlockStatement);var a=!t.comments_before&&"}"===t.text,s=a&&"function"===this._flags.last_word&&this._flags.last_token.type===i.END_EXPR;if(this._options.brace_preserve_inline){var o=0,l=null;this._flags.inline_frame=!0;do{if(o+=1,l=this._tokens.peek(o-1),l.newlines){this._flags.inline_frame=!1;break}}while(l.type!==i.EOF&&(l.type!==i.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!==i.OPERATOR&&(s||this._flags.last_token.type===i.EQUALS||p(this._flags.last_token,_)&&"else"!==this._flags.last_token.text)?this._output.space_before_token=!0:this.print_newline(!1,!0):(!y(this._previous_flags.mode)||this._flags.last_token.type!==i.START_EXPR&&this._flags.last_token.type!==i.COMMA||((this._flags.last_token.type===i.COMMA||this._options.space_in_paren)&&(this._output.space_before_token=!0),(this._flags.last_token.type===i.COMMA||this._flags.last_token.type===i.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!==i.OPERATOR&&this._flags.last_token.type!==i.START_EXPR&&(this._flags.last_token.type!==i.START_BLOCK||this._flags.inline_frame?this._output.space_before_token=!0:this.print_newline())),this.print_token(e),this.indent(),a||this._options.brace_preserve_inline&&this._flags.inline_frame||this.print_newline()},N.prototype.handle_end_block=function(e){this.handle_whitespace_and_comments(e);while(this._flags.mode===v.Statement)this.restore_mode();var t=this._flags.last_token.type===i.START_BLOCK;this._flags.inline_frame&&!t?this._output.space_before_token=!0:"expand"===this._options.brace_style?t||this.print_newline():t||(y(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)},N.prototype.handle_word=function(e){if(e.type===i.RESERVED)if(r(e.text,["set","get"])&&this._flags.mode!==v.ObjectLiteral)e.type=i.WORD;else if("import"===e.text&&r(this._tokens.peek().text,["(","."]))e.type=i.WORD;else if(r(e.text,["as","from"])&&!this._flags.import_block)e.type=i.WORD;else if(this._flags.mode===v.ObjectLiteral){var t=this._tokens.peek();":"===t.text&&(e.type=i.WORD)}if(this.start_of_statement(e)?p(this._flags.last_token,["var","let","const"])&&e.type===i.WORD&&(this._flags.declaration_statement=!0):!e.newlines||k(this._flags.mode)||this._flags.last_token.type===i.OPERATOR&&"--"!==this._flags.last_token.text&&"++"!==this._flags.last_token.text||this._flags.last_token.type===i.EQUALS||!this._options.preserve_newlines&&p(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{while(this._flags.mode===v.Statement)this.restore_mode();this._flags.if_block=!1,this._flags.else_block=!1}if(this._flags.in_case_statement&&p(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!==i.COMMA&&this._flags.last_token.type!==i.START_EXPR&&this._flags.last_token.type!==i.EQUALS&&this._flags.last_token.type!==i.OPERATOR||this.start_of_object_property()||this.allow_wrap_or_preserved_newline(e),d(e,"function"))return(r(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!r(this._flags.last_token.text,["(","[","{",":","=",","])&&this._flags.last_token.type!==i.OPERATOR)&&(this._output.just_added_blankline()||e.comments_before||(this.print_newline(),this.print_newline(!0))),this._flags.last_token.type===i.RESERVED||this._flags.last_token.type===i.WORD?p(this._flags.last_token,["get","set","new","export"])||p(this._flags.last_token,x)||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===i.OPERATOR||"="===this._flags.last_token.text?this._output.space_before_token=!0:(this._flags.multiline_frame||!k(this._flags.mode)&&!y(this._flags.mode))&&this.print_newline(),this.print_token(e),void(this._flags.last_word=e.text);var n="NONE";if(this._flags.last_token.type===i.END_BLOCK?this._previous_flags.inline_frame?n="SPACE":p(e,["else","catch","finally","from"])?"expand"===this._options.brace_style||"end-expand"===this._options.brace_style||"none"===this._options.brace_style&&e.newlines?n="NEWLINE":(n="SPACE",this._output.space_before_token=!0):n="NEWLINE":this._flags.last_token.type===i.SEMICOLON&&this._flags.mode===v.BlockStatement?n="NEWLINE":this._flags.last_token.type===i.SEMICOLON&&k(this._flags.mode)?n="SPACE":this._flags.last_token.type===i.STRING?n="NEWLINE":this._flags.last_token.type===i.RESERVED||this._flags.last_token.type===i.WORD||"*"===this._flags.last_token.text&&(r(this._last_last_text,["function","yield"])||this._flags.mode===v.ObjectLiteral&&r(this._last_last_text,["{",","]))?n="SPACE":this._flags.last_token.type===i.START_BLOCK?n=this._flags.inline_frame?"SPACE":"NEWLINE":this._flags.last_token.type===i.END_EXPR&&(this._output.space_before_token=!0,n="NEWLINE"),p(e,o)&&")"!==this._flags.last_token.text&&(n=this._flags.inline_frame||"else"===this._flags.last_token.text||"export"===this._flags.last_token.text?"SPACE":"NEWLINE"),p(e,["else","catch","finally"]))if((this._flags.last_token.type!==i.END_BLOCK||this._previous_flags.mode!==v.BlockStatement||"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();else{this._output.trim(!0);var a=this._output.current_line;"}"!==a.last()&&this.print_newline(),this._output.space_before_token=!0}else"NEWLINE"===n?p(this._flags.last_token,_)||"declare"===this._flags.last_token.text&&p(e,["var","let","const"])?this._output.space_before_token=!0:this._flags.last_token.type!==i.END_EXPR?this._flags.last_token.type===i.START_EXPR&&p(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()):p(e,o)&&")"!==this._flags.last_token.text&&this.print_newline():this._flags.multiline_frame&&y(this._flags.mode)&&","===this._flags.last_token.text&&"}"===this._last_last_text?this.print_newline():"SPACE"===n&&(this._output.space_before_token=!0);!e.previous||e.previous.type!==i.WORD&&e.previous.type!==i.RESERVED||(this._output.space_before_token=!0),this.print_token(e),this._flags.last_word=e.text,e.type===i.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))},N.prototype.handle_semicolon=function(e){this.start_of_statement(e)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(e);var t=this._tokens.peek();while(this._flags.mode===v.Statement&&(!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)},N.prototype.handle_string=function(e){(!e.text.startsWith("`")||0!==e.newlines||""!==e.whitespace_before||")"!==e.previous.text&&this._flags.last_token.type!==i.WORD)&&(this.start_of_statement(e)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(e),this._flags.last_token.type===i.RESERVED||this._flags.last_token.type===i.WORD||this._flags.inline_frame?this._output.space_before_token=!0:this._flags.last_token.type===i.COMMA||this._flags.last_token.type===i.START_EXPR||this._flags.last_token.type===i.EQUALS||this._flags.last_token.type===i.OPERATOR?this.start_of_object_property()||this.allow_wrap_or_preserved_newline(e):!e.text.startsWith("`")||this._flags.last_token.type!==i.END_EXPR||"]"!==e.previous.text&&")"!==e.previous.text||0!==e.newlines?this.print_newline():this._output.space_before_token=!0)),this.print_token(e)},N.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},N.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?(k(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===v.ObjectLiteral||this._flags.mode===v.Statement&&this._flags.parent.mode===v.ObjectLiteral?(this._flags.mode===v.Statement&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(e)},N.prototype.handle_operator=function(e){var t="*"===e.text&&(p(this._flags.last_token,["function","yield"])||r(this._flags.last_token.type,[i.START_BLOCK,i.COMMA,i.END_BLOCK,i.SEMICOLON])),n=r(e.text,["-","+"])&&(r(this._flags.last_token.type,[i.START_BLOCK,i.START_EXPR,i.EQUALS,i.OPERATOR])||r(this._flags.last_token.text,o)||","===this._flags.last_token.text);if(this.start_of_statement(e));else{var a=!t;this.handle_whitespace_and_comments(e,a)}if(p(this._flags.last_token,_))return this._output.space_before_token=!0,void this.print_token(e);if("*"!==e.text||this._flags.last_token.type!==i.DOT)if("::"!==e.text){if(this._flags.last_token.type===i.OPERATOR&&r(this._options.operator_position,f)&&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!==i.START_BLOCK?(this.indent(),this.print_newline(),this._flags.case_block=!1):(this._flags.case_block=!0,this._output.space_before_token=!0));var s=!0,c=!0,u=!1;if(":"===e.text?0===this._flags.ternary_depth?s=!1:(this._flags.ternary_depth-=1,u=!0):"?"===e.text&&(this._flags.ternary_depth+=1),!n&&!t&&this._options.preserve_newlines&&r(e.text,l)){var d=":"===e.text,h=d&&u,b=d&&!u;switch(this._options.operator_position){case m.before_newline:return this._output.space_before_token=!b,this.print_token(e),d&&!h||this.allow_wrap_or_preserved_newline(e),void(this._output.space_before_token=!0);case m.after_newline:return this._output.space_before_token=!0,!d||h?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 m.preserve_newline:return b||this.allow_wrap_or_preserved_newline(e),s=!(this._output.just_added_newline()||b),this._output.space_before_token=s,this.print_token(e),void(this._output.space_before_token=!0)}}if(t){this.allow_wrap_or_preserved_newline(e),s=!1;var g=this._tokens.peek();c=g&&r(g.type,[i.WORD,i.RESERVED])}else"..."===e.text?(this.allow_wrap_or_preserved_newline(e),s=this._flags.last_token.type===i.START_BLOCK,c=!1):(r(e.text,["--","++","!","~"])||n)&&(this._flags.last_token.type!==i.COMMA&&this._flags.last_token.type!==i.START_EXPR||this.allow_wrap_or_preserved_newline(e),s=!1,c=!1,!e.newlines||"--"!==e.text&&"++"!==e.text&&"~"!==e.text||this.print_newline(!1,!0),";"===this._flags.last_token.text&&k(this._flags.mode)&&(s=!0),this._flags.last_token.type===i.RESERVED?s=!0:this._flags.last_token.type===i.END_EXPR?s=!("]"===this._flags.last_token.text&&("--"===e.text||"++"===e.text)):this._flags.last_token.type===i.OPERATOR&&(s=r(e.text,["--","-","++","+"])&&r(this._flags.last_token.text,["--","-","++","+"]),r(e.text,["+","-"])&&r(this._flags.last_token.text,["--","++"])&&(c=!0)),(this._flags.mode!==v.BlockStatement||this._flags.inline_frame)&&this._flags.mode!==v.Statement||"{"!==this._flags.last_token.text&&";"!==this._flags.last_token.text||this.print_newline());this._output.space_before_token=this._output.space_before_token||s,this.print_token(e),this._output.space_before_token=c}else this.print_token(e);else this.print_token(e)},N.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)):n.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))},N.prototype.print_block_commment=function(e,t){var n,a=g(e.text),s=!1,o=!1,l=e.whitespace_before,i=l.length;if(this.print_newline(!1,t),this.print_token_line_indentation(e),this._output.add_token(a[0]),this.print_newline(!1,t),a.length>1){for(a=a.slice(1),s=E(a,"*"),o=w(a,l),s&&(this._flags.alignment=1),n=0;n0&&this._indentLevel--},d.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var e=this._source_text,a=this._options.eol;"auto"===a&&(a="\n",e&&o.test(e||"")&&(a=e.match(o)[0])),e=e.replace(l,"\n");var d=e.match(/^[\t ]*/)[0];this._output=new t(this._options,d),this._input=new n(e),this._indentLevel=0,this._nestedLevel=0,this._ch=null;var p,_,h,m=0,f=!1,v=!1,b=!1,g=!1,y=!1,k=!1,E=this._ch,w=!1;while(1){if(p=this._input.read(r),_=""!==p,h=E,this._ch=this._input.next(),"\\"===this._ch&&this._input.hasNext()&&(this._ch+=this._input.next()),E=this._ch,!this._ch)break;if("/"===this._ch&&"*"===this._input.peek()){this._output.add_new_line(),this._input.back();var N=this._input.read(c),x=s.get_directives(N);x&&"start"===x.ignore&&(N+=s.readIgnored(this._input)),this.print_string(N),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(u)),this.eatWhitespace(!0);else if("@"===this._ch||"$"===this._ch)if(this.preserveSingleSpace(_),"{"===this._input.peek())this.print_string(this._ch+this.eatString("}"));else{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),S=S.replace(/\s$/,""),"extend"===S?g=!0:"import"===S&&(y=!0),S in this.NESTED_AT_RULE?(this._nestedLevel+=1,S in this.CONDITIONAL_GROUP_RULE&&(b=!0)):f||0!==m||-1===S.indexOf(":")||(v=!0,this.indent())}else if("#"===this._ch&&"{"===this._input.peek())this.preserveSingleSpace(_),this.print_string(this._ch+this.eatString("}"));else if("{"===this._ch)v&&(v=!1,this.outdent()),b?(b=!1,f=this._indentLevel>=this._nestedLevel):f=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&f&&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)):("("===h?this._output.space_before_token=!1:","!==h&&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(),"{"===h&&this._output.trim(!0),y=!1,g=!1,v&&(this.outdent(),v=!1),this.print_string(this._ch),f=!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 V=0;V"!==this._ch&&"+"!==this._ch&&"~"!==this._ch||v||0!==m)if("]"===this._ch)this.print_string(this._ch);else if("["===this._ch)this.preserveSingleSpace(_),this.print_string(this._ch);else if("="===this._ch)this.eatWhitespace(),this.print_string("="),i.test(this._ch)&&(this._ch="");else if("!"!==this._ch||this._input.lookBack("\\")){var C='"'===h||"'"===h;this.preserveSingleSpace(C||_),this.print_string(this._ch),!this._output.just_added_newline()&&"\n"===this._input.peek()&&w&&this._output.add_new_line()}else this.print_string(" "),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&&i.test(this._ch)&&(this._ch=""))}var O=this._output.get_code(a);return O},Al.Beautifier=d,Al}function Dl(){if(Ol)return Tl.exports;Ol=1;var e=Rl().Beautifier,t=Ll().Options;function n(t,n){var a=new e(t,n);return a.beautify()}return Tl.exports=n,Tl.exports.defaultOptions=function(){return new t},Tl.exports}var Bl,Ml={exports:{}},Ul={},Pl={};function jl(){if(Bl)return Pl;Bl=1;var e=Jo().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_indent_size=this._get_number("wrap_attributes_indent_size",this.indent_size),this.extra_liners=this._get_array("extra_liners",["head","body","/html"]),this.inline=this._get_array("inline",["a","abbr","area","audio","b","bdi","bdo","br","button","canvas","cite","code","data","datalist","del","dfn","em","embed","i","iframe","img","input","ins","kbd","keygen","label","map","mark","math","meter","noscript","object","output","progress","q","ruby","s","samp","select","small","span","strong","sub","sup","svg","template","textarea","time","u","var","video","wbr","text","acronym","big","strike","tt"]),this.void_elements=this._get_array("void_elements",["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr","!doctype","?xml","basefont","isindex"]),this.unformatted=this._get_array("unformatted",[]),this.content_unformatted=this._get_array("content_unformatted",["pre","textarea"]),this.unformatted_content_delimiter=this._get_characters("unformatted_content_delimiter"),this.indent_scripts=this._get_selection("indent_scripts",["normal","keep","separate"])}return t.prototype=new e,Pl.Options=t,Pl}var $l,Kl,Fl,ql,Wl,zl={};function Gl(){if($l)return zl;$l=1;var e=hl().Tokenizer,t=hl().TOKEN,n=vl().Directives,a=wl().TemplatablePattern,s=pl().Pattern,o={TAG_OPEN:"TK_TAG_OPEN",TAG_CLOSE:"TK_TAG_CLOSE",ATTRIBUTE:"TK_ATTRIBUTE",EQUALS:"TK_EQUALS",VALUE:"TK_VALUE",COMMENT:"TK_COMMENT",TEXT:"TK_TEXT",UNKNOWN:"TK_UNKNOWN",START:t.START,RAW:t.RAW,EOF:t.EOF},l=new n(/<\!--/,/-->/),i=function(t,n){e.call(this,t,n),this._current_tag_name="";var o=new a(this._input).read_options(this._options),l=new s(this._input);if(this.__patterns={word:o.until(/[\n\r\t <]/),single_quote:o.until_after(/'/),double_quote:o.until_after(/"/),attribute:o.until(/[\n\r\t =>]|\/>/),element_name:o.until(/[\n\r\t >\/]/),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(//),cdata:l.starting_with(//),conditional_comment:l.starting_with(//),processing:l.starting_with(/<\?/).until_after(/\?>/)},this._options.indent_handlebars&&(this.__patterns.word=this.__patterns.word.exclude("handlebars")),this._unformatted_content_delimiter=null,this._options.unformatted_content_delimiter){var i=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=l.matching(i).until_after(i)}};return i.prototype=new e,i.prototype._is_comment=function(e){return!1},i.prototype._is_opening=function(e){return e.type===o.TAG_OPEN},i.prototype._is_closing=function(e,t){return e.type===o.TAG_CLOSE&&t&&((">"===e.text||"/>"===e.text)&&"<"===t.text[0]||"}}"===e.text&&"{"===t.text[0]&&"{"===t.text[1])},i.prototype._reset=function(){this._current_tag_name=""},i.prototype._get_next_token=function(e,t){var n=null;this._readWhitespace();var a=this._input.peek();return null===a?this._create_token(o.EOF,""):(n=n||this._read_open_handlebars(a,t),n=n||this._read_attribute(a,e,t),n=n||this._read_close(a,t),n=n||this._read_raw_content(a,e,t),n=n||this._read_content_word(a),n=n||this._read_comment_or_cdata(a),n=n||this._read_processing(a),n=n||this._read_open(a,t),n=n||this._create_token(o.UNKNOWN,this._input.next()),n)},i.prototype._read_comment_or_cdata=function(e){var t=null,n=null,a=null;if("<"===e){var s=this._input.peek(1);"!"===s&&(n=this.__patterns.comment.read(),n?(a=l.get_directives(n),a&&"start"===a.ignore&&(n+=l.readIgnored(this._input))):n=this.__patterns.cdata.read()),n&&(t=this._create_token(o.COMMENT,n),t.directives=a)}return t},i.prototype._read_processing=function(e){var t=null,n=null,a=null;if("<"===e){var s=this._input.peek(1);"!"!==s&&"?"!==s||(n=this.__patterns.conditional_comment.read(),n=n||this.__patterns.processing.read()),n&&(t=this._create_token(o.COMMENT,n),t.directives=a)}return t},i.prototype._read_open=function(e,t){var n=null,a=null;return t||"<"===e&&(n=this._input.next(),"/"===this._input.peek()&&(n+=this._input.next()),n+=this.__patterns.element_name.read(),a=this._create_token(o.TAG_OPEN,n)),a},i.prototype._read_open_handlebars=function(e,t){var n=null,a=null;return t||this._options.indent_handlebars&&"{"===e&&"{"===this._input.peek(1)&&("!"===this._input.peek(2)?(n=this.__patterns.handlebars_comment.read(),n=n||this.__patterns.handlebars.read(),a=this._create_token(o.COMMENT,n)):(n=this.__patterns.handlebars_open.read(),a=this._create_token(o.TAG_OPEN,n))),a},i.prototype._read_close=function(e,t){var n=null,a=null;return t&&("<"===t.text[0]&&(">"===e||"/"===e&&">"===this._input.peek(1))?(n=this._input.next(),"/"===e&&(n+=this._input.next()),a=this._create_token(o.TAG_CLOSE,n)):"{"===t.text[0]&&"}"===e&&"}"===this._input.peek(1)&&(this._input.next(),this._input.next(),a=this._create_token(o.TAG_CLOSE,"}}"))),a},i.prototype._read_attribute=function(e,t,n){var a=null,s="";if(n&&"<"===n.text[0])if("="===e)a=this._create_token(o.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(),a=this._create_token(o.VALUE,l)}else s=this.__patterns.attribute.read(),s&&(a=t.type===o.EQUALS?this._create_token(o.VALUE,s):this._create_token(o.ATTRIBUTE,s));return a},i.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))},i.prototype._read_raw_content=function(e,t,n){var a="";if(n&&"{"===n.text[0])a=this.__patterns.handlebars_raw_close.read();else if(t.type===o.TAG_CLOSE&&"<"===t.opened.text[0]&&"/"!==t.text[0]){var s=t.opened.text.substr(1).toLowerCase();if("script"===s||"style"===s){var l=this._read_comment_or_cdata(e);if(l)return l.type=o.TEXT,l;a=this._input.readUntil(new RegExp("","ig"))}else this._is_content_unformatted(s)&&(a=this._input.readUntil(new RegExp("","ig")))}return a?this._create_token(o.TEXT,a):null},i.prototype._read_content_word=function(e){var t="";if(this._options.unformatted_content_delimiter&&e===this._options.unformatted_content_delimiter[0]&&(t=this.__patterns.unformatted_content_delimiter.read()),t||(t=this.__patterns.word.read()),t)return this._create_token(o.TEXT,t)},zl.Tokenizer=i,zl.TOKEN=o,zl}function Ql(){if(Kl)return Ul;Kl=1;var e=jl().Options,t=jo().Output,n=Gl().Tokenizer,a=Gl().TOKEN,s=/\r\n|[\r\n]/,o=/\r\n|[\r\n]/g,l=function(e,n){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,n)};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!==a.TEXT&&e.previous.type!==a.TEXT&&(t=e.newlines?1:0),this.preserve_newlines&&(t=e.newlines0);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.get_full_indent=function(e){return e=this.indent_level+(e||0),e<1?"":this._output.get_indent_string(e)};var i=function(e){var t=null,n=e.next;while(n.type!==a.EOF&&e.closed!==n){if(n.type===a.ATTRIBUTE&&"type"===n.text){n.next&&n.next.type===a.EQUALS&&n.next.next&&n.next.next.type===a.VALUE&&(t=n.next.next.text);break}n=n.next}return t},r=function(e,t){var n=null,a=null;return t.closed?("script"===e?n="text/javascript":"style"===e&&(n="text/css"),n=i(t)||n,n.search("text/css")>-1?a="css":n.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)>-1?a="javascript":n.search(/(text|application|dojo)\/(x-)?(html)/)>-1?a="html":n.search(/test\/null/)>-1&&(a="null"),a):null};function c(e,t){return-1!==t.indexOf(e)}function u(e,t,n){this.parent=e||null,this.tag=t?t.tag_name:"",this.indent_level=n||0,this.parser_token=t||null}function d(e){this._printer=e,this._current_frame=null}function p(t,n,a,s){this._source_text=t||"",n=n||{},this._js_beautify=a,this._css_beautify=s,this._tag_stack=null;var o=new e(n,"html");this._options=o,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 u(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){var n=this._current_frame;while(n){if(-1!==e.indexOf(n.tag))break;if(t&&-1!==t.indexOf(n.tag)){n=null;break}n=n.parent}return n},d.prototype.try_pop=function(e,t){var n=this._get_frame([e],t);return this._try_pop_frame(n)},d.prototype.indent_to_tag=function(e){var t=this._get_frame(e);t&&(this._printer.indent_level=t.indent_level)},p.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&&s.test(e)&&(t=e.match(s)[0])),e=e.replace(o,"\n");var i=e.match(/^[\t ]*/)[0],r={text:"",type:""},c=new _,u=new l(this._options,i),p=new n(e,this._options).tokenize();this._tag_stack=new d(u);var h=null,m=p.next();while(m.type!==a.EOF)m.type===a.TAG_OPEN||m.type===a.COMMENT?(h=this._handle_tag_open(u,m,c,r),c=h):m.type===a.ATTRIBUTE||m.type===a.EQUALS||m.type===a.VALUE||m.type===a.TEXT&&!c.tag_complete?h=this._handle_inside_tag(u,m,c,p):m.type===a.TAG_CLOSE?h=this._handle_tag_close(u,m,c):m.type===a.TEXT?h=this._handle_text(u,m,c):u.add_raw_token(m),r=h,m=p.next();var f=u._output.get_code(t);return f},p.prototype._handle_tag_close=function(e,t,n){var a={text:t.text,type:t.type};return e.alignment_size=0,n.tag_complete=!0,e.set_space_before_token(t.newlines||""!==t.whitespace_before,!0),n.is_unformatted?e.add_raw_token(t):("<"===n.tag_start_char&&(e.set_space_before_token("/"===t.text[0],!0),this._is_wrap_attributes_force_expand_multiline&&n.has_wrapped_attrs&&e.print_newline(!1)),e.print_token(t)),!n.indent_content||n.is_unformatted||n.is_content_unformatted||(e.indent(),n.indent_content=!1),n.is_inline_element||n.is_unformatted||n.is_content_unformatted||e.set_wrap_point(),a},p.prototype._handle_inside_tag=function(e,t,n,s){var o=n.has_wrapped_attrs,l={text:t.text,type:t.type};if(e.set_space_before_token(t.newlines||""!==t.whitespace_before,!0),n.is_unformatted)e.add_raw_token(t);else if("{"===n.tag_start_char&&t.type===a.TEXT)e.print_preserved_newlines(t)?(t.newlines=0,e.add_raw_token(t)):e.print_token(t);else{if(t.type===a.ATTRIBUTE?(e.set_space_before_token(!0),n.attr_count+=1):(t.type===a.EQUALS||t.type===a.VALUE&&t.previous.type===a.EQUALS)&&e.set_space_before_token(!1),t.type===a.ATTRIBUTE&&"<"===n.tag_start_char&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(e.traverse_whitespace(t),o=o||0!==t.newlines),this._is_wrap_attributes_force)){var i=n.attr_count>1;if(this._is_wrap_attributes_force_expand_multiline&&1===n.attr_count){var r,c=!0,u=0;do{if(r=s.peek(u),r.type===a.ATTRIBUTE){c=!1;break}u+=1}while(u<4&&r.type!==a.EOF&&r.type!==a.TAG_CLOSE);i=!c}i&&(e.print_newline(!1),o=!0)}e.print_token(t),o=o||e.previous_token_wrapped(),n.has_wrapped_attrs=o}return l},p.prototype._handle_text=function(e,t,n){var a={text:t.text,type:"TK_CONTENT"};return n.custom_beautifier_name?this._print_custom_beatifier_text(e,t,n):n.is_unformatted||n.is_content_unformatted?e.add_raw_token(t):(e.traverse_whitespace(t),e.print_token(t)),a},p.prototype._print_custom_beatifier_text=function(e,t,n){var a=this;if(""!==t.text){var s,o=t.text,l=1,i="",r="";"javascript"===n.custom_beautifier_name&&"function"===typeof this._js_beautify?s=this._js_beautify:"css"===n.custom_beautifier_name&&"function"===typeof this._css_beautify?s=this._css_beautify:"html"===n.custom_beautifier_name&&(s=function(e,t){var n=new p(e,t,a._js_beautify,a._css_beautify);return n.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(o=o.replace(/\n[ \t]*$/,""),"html"!==n.custom_beautifier_name&&"<"===o[0]&&o.match(/^(|]]>)$/.exec(o);if(!u)return void e.add_raw_token(t);i=c+u[1]+"\n",o=u[4],u[5]&&(r=c+u[5]),o=o.replace(/\n[ \t]*$/,""),(u[2]||-1!==u[3].indexOf("\n"))&&(u=u[3].match(/[ \t]+$/),u&&(t.whitespace_before=u[0]))}if(o)if(s){var d=function(){this.eol="\n"};d.prototype=this._options.raw_options;var _=new d;o=s(c+o,_)}else{var h=t.whitespace_before;h&&(o=o.replace(new RegExp("\n("+h+")?","g"),"\n")),o=c+o.replace(/\n/g,"\n"+c)}i&&(o=o?i+o+"\n"+r:i+r),e.print_newline(!1),o&&(t.text=o,t.whitespace_before="",t.newlines=0,e.add_raw_token(t),e.print_newline(!0))}},p.prototype._handle_tag_open=function(e,t,n,s){var o=this._get_tag_open_token(t);return!n.is_unformatted&&!n.is_content_unformatted||n.is_empty_element||t.type!==a.TAG_OPEN||0!==t.text.indexOf("]*)/),this.tag_check=n?n[1]:""):(n=t.text.match(/^{{(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=n?n[1]:"","{{#>"===t.text&&">"===this.tag_check&&null!==t.next&&(this.tag_check=t.next.text.split(" ")[0])),this.tag_check=this.tag_check.toLowerCase(),t.type===a.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||t.closed&&"/>"===t.closed.text,this.is_end_tag=this.is_end_tag||"{"===this.tag_start_char&&(this.text.length<3||/[^#\^]/.test(this.text.charAt(2)))):this.tag_complete=!0};p.prototype._get_tag_open_token=function(e){var t=new _(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||c(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&&c(t.tag_check,this._options.unformatted),t.is_content_unformatted=!t.is_empty_element&&c(t.tag_check,this._options.content_unformatted),t.is_inline_element=c(t.tag_name,this._options.inline)||"{"===t.tag_start_char,t},p.prototype._set_tag_position=function(e,t,n,s,o){if(n.is_empty_element||(n.is_end_tag?n.start_tag_token=this._tag_stack.try_pop(n.tag_name):(this._do_optional_end_element(n)&&(n.is_inline_element||e.print_newline(!1)),this._tag_stack.record_tag(n),"script"!==n.tag_name&&"style"!==n.tag_name||n.is_unformatted||n.is_content_unformatted||(n.custom_beautifier_name=r(n.tag_check,t)))),c(n.tag_check,this._options.extra_liners)&&(e.print_newline(!1),e._output.just_added_blankline()||e.print_newline(!0)),n.is_empty_element){if("{"===n.tag_start_char&&"else"===n.tag_check){this._tag_stack.indent_to_tag(["if","unless","each"]),n.indent_content=!0;var l=e.current_line_has_match(/{{#if/);l||e.print_newline(!1)}"!--"===n.tag_name&&o.type===a.TAG_CLOSE&&s.is_end_tag&&-1===n.text.indexOf("\n")||(n.is_inline_element||n.is_unformatted||e.print_newline(!1),this._calcluate_parent_multiline(e,n))}else if(n.is_end_tag){var i=!1;i=n.start_tag_token&&n.start_tag_token.multiline_content,i=i||!n.is_inline_element&&!(s.is_inline_element||s.is_unformatted)&&!(o.type===a.TAG_CLOSE&&n.start_tag_token===s)&&"TK_CONTENT"!==o.type,(n.is_content_unformatted||n.is_unformatted)&&(i=!1),i&&e.print_newline(!1)}else n.indent_content=!n.custom_beautifier_name,"<"===n.tag_start_char&&("html"===n.tag_name?n.indent_content=this._options.indent_inner_html:"head"===n.tag_name?n.indent_content=this._options.indent_head_inner_html:"body"===n.tag_name&&(n.indent_content=this._options.indent_body_inner_html)),n.is_inline_element||n.is_unformatted||"TK_CONTENT"===o.type&&!n.is_content_unformatted||e.print_newline(!1),this._calcluate_parent_multiline(e,n)},p.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 h=["address","article","aside","blockquote","details","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hr","main","nav","ol","p","pre","section","table","ul"],m=["a","audio","del","ins","map","noscript","video"];return p.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"]);else if("dd"===e.tag_name||"dt"===e.tag_name)t=t||this._tag_stack.try_pop("dt",["dl"]),t=t||this._tag_stack.try_pop("dd",["dl"]);else if("p"===e.parent.tag_name&&-1!==h.indexOf(e.tag_name)){var n=e.parent.parent;n&&-1!==m.indexOf(n.tag_name)||(t=t||this._tag_stack.try_pop("p"))}else"rp"===e.tag_name||"rt"===e.tag_name?(t=t||this._tag_stack.try_pop("rt",["ruby","rtc"]),t=t||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||this._tag_stack.try_pop("caption",["table"]),t=t||this._tag_stack.try_pop("colgroup",["table"])):"tbody"===e.tag_name||"tfoot"===e.tag_name?(t=t||this._tag_stack.try_pop("caption",["table"]),t=t||this._tag_stack.try_pop("colgroup",["table"]),t=t||this._tag_stack.try_pop("thead",["table"]),t=t||this._tag_stack.try_pop("tbody",["table"])):"tr"===e.tag_name?(t=t||this._tag_stack.try_pop("caption",["table"]),t=t||this._tag_stack.try_pop("colgroup",["table"]),t=t||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"])):"th"!==e.tag_name&&"td"!==e.tag_name||(t=t||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]),t=t||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return e.parent=this._tag_stack.get_parser_token(),t}},Ul.Beautifier=p,Ul}function Hl(){if(Fl)return Ml.exports;Fl=1;var e=Ql().Beautifier,t=jl().Options;function n(t,n,a,s){var o=new e(t,n,a,s);return o.beautify()}return Ml.exports=n,Ml.exports.defaultOptions=function(){return new t},Ml.exports}function Xl(){if(ql)return Bo;ql=1;var e=Sl(),t=Dl(),n=Hl();function a(a,s,o,l){return o=o||e,l=l||t,n(a,s,o,l)}return a.defaultOptions=n.defaultOptions,Bo.js=e,Bo.css=t,Bo.html=a,Bo}(function(e){function t(e,t,n){var a=function(t,n){return e.js_beautify(t,n)};return a.js=e.js_beautify,a.css=t.css_beautify,a.html=n.html_beautify,a.js_beautify=e.js_beautify,a.css_beautify=t.css_beautify,a.html_beautify=n.html_beautify,a}(function(e){var n=Xl();n.js_beautify=n.js,n.css_beautify=n.css,n.html_beautify=n.html,e.exports=t(n,n,n)})(e)})(Do);var Jl=function(e){return"string"===typeof e&&Yl().test(e)};function Yl(){return Wl||(Wl=new RegExp('^[\\s\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"]+$'))} /*! * is-extendable * * Copyright (c) 2015, Jon Schlinkert. * Licensed under the MIT License. */var Zl=function(e){return"undefined"!==typeof e&&null!==e&&("object"===typeof e||"function"===typeof e)},ei=Zl,ti=function(e){ei(e)||(e={});for(var t=arguments.length,n=1;n * @license MIT */var si=function(e){return null!=e&&(oi(e)||li(e)||!!e._isBuffer)};function oi(e){return!!e.constructor&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function li(e){return"function"===typeof e.readFloatLE&&"function"===typeof e.slice&&oi(e.slice(0,0))}var ii=si,ri=Object.prototype.toString,ci=function(e){if("undefined"===typeof e)return"undefined";if(null===e)return"null";if(!0===e||!1===e||e instanceof Boolean)return"boolean";if("string"===typeof e||e instanceof String)return"string";if("number"===typeof e||e instanceof Number)return"number";if("function"===typeof e||e instanceof Function)return"function";if("undefined"!==typeof Array.isArray&&Array.isArray(e))return"array";if(e instanceof RegExp)return"regexp";if(e instanceof Date)return"date";var t=ri.call(e);return"[object RegExp]"===t?"regexp":"[object Date]"===t?"date":"[object Arguments]"===t?"arguments":"[object Error]"===t?"error":ii(e)?"buffer":"[object Set]"===t?"set":"[object WeakSet]"===t?"weakset":"[object Map]"===t?"map":"[object WeakMap]"===t?"weakmap":"[object Symbol]"===t?"symbol":"[object Int8Array]"===t?"int8array":"[object Uint8Array]"===t?"uint8array":"[object Uint8ClampedArray]"===t?"uint8clampedarray":"[object Int16Array]"===t?"int16array":"[object Uint16Array]"===t?"uint16array":"[object Int32Array]"===t?"int32array":"[object Uint32Array]"===t?"uint32array":"[object Float32Array]"===t?"float32array":"[object Float64Array]"===t?"float64array":"object"},ui=Jl,di=ti,pi=ci,_i=function(e,t){var n,a=di({},t),s=a.sep||"\n\n",o=a.min;return"number"===typeof o&&2!==o&&(n=new RegExp("(\\r\\n|\\n|\\u2424) {"+o+",}")),"undefined"===typeof n&&(n=a.regex||/(\r\n|\n|\u2424){2,}/g),!0!==a.keepWhitespace&&(e=e.split("\n").map((function(e){return ui(e)?e.trim():e})).join("\n")),e=hi(e,a),e.replace(n,s)};function hi(e,t){var n=t.trailingNewline;if(!1===n)return e;switch(pi(n)){case"string":e=e.replace(/\s+$/,t.trailingNewline);break;case"function":e=t.trailingNewline(e);break;case"undefined":case"boolean":default:e=e.replace(/\s+$/,"\n");break}return e} /*! * pretty * * Copyright (c) 2013-2015, 2017, Jon Schlinkert. * Released under the MIT License. */var mi=Do.exports,fi=_i,vi=ti,bi={unformatted:["code","pre","em","strong","span"],indent_inner_html:!0,indent_char:" ",indent_size:2,sep:"\n"},gi=function(e,t){var n=vi({},bi,t);return e=mi.html(e,n),!0===n.ocd?(n.newlines&&(n.sep=n.newlines),yi(e,n)):e};function yi(e,t){return fi(e,t).replace(/^\s+/g,"").replace(/\s+$/g,"\n").replace(/(\s*