@bolttech/template-editor 0.0.2 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/template-editor.cjs +89 -0
- package/dist/template-editor.d.ts +37 -32
- package/dist/template-editor.mjs +10528 -0
- package/package.json +16 -16
- package/dist/DataSourceModal-DMKDsjhT.js +0 -433
- package/dist/index-_5hb_xRw.js +0 -24065
- package/dist/template-editor.es.js +0 -4
- package/dist/template-editor.umd.js +0 -171
|
@@ -1,171 +0,0 @@
|
|
|
1
|
-
(function($t,I){typeof exports=="object"&&typeof module<"u"?I(exports,require("react"),require("react-dom"),require("react-icons/fi"),require("htmlparser2"),require("@monaco-editor/react"),require("handlebars")):typeof define=="function"&&define.amd?define(["exports","react","react-dom","react-icons/fi","htmlparser2","@monaco-editor/react","handlebars"],I):($t=typeof globalThis<"u"?globalThis:$t||self,I($t.TemplateEditor={},$t.React,$t.ReactDOM,$t.ReactIconsFi,$t.HTMLParser2,$t.MonacoEditor,$t.Handlebars))})(this,(function($t,I,Yn,ce,Ey,Fy,Sy){"use strict";var ik=Object.defineProperty;var ok=($t,I,Yn)=>I in $t?ik($t,I,{enumerable:!0,configurable:!0,writable:!0,value:Yn}):$t[I]=Yn;var Xa=($t,I,Yn)=>ok($t,typeof I!="symbol"?I+"":I,Yn);function ky(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}function Ty(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const a in n)if(a!=="default"&&!(a in e)){const i=Object.getOwnPropertyDescriptor(n,a);i&&Object.defineProperty(e,a,i.get?i:{enumerable:!0,get:()=>n[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}const Al=ky(I);var Ru=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Nl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var qc={exports:{}},Rl={};/**
|
|
2
|
-
* @license React
|
|
3
|
-
* react-jsx-runtime.production.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var Op;function _y(){if(Op)return Rl;Op=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,a,i){var u=null;if(i!==void 0&&(u=""+i),a.key!==void 0&&(u=""+a.key),"key"in a){i={};for(var h in a)h!=="key"&&(i[h]=a[h])}else i=a;return a=i.ref,{$$typeof:e,type:n,key:u,ref:a!==void 0?a:null,props:i}}return Rl.Fragment=t,Rl.jsx=r,Rl.jsxs=r,Rl}var Bp;function Ay(){return Bp||(Bp=1,qc.exports=_y()),qc.exports}var m=Ay(),Bo={},Ol={};/**
|
|
10
|
-
* @license React
|
|
11
|
-
* react-dom-server-legacy.browser.production.js
|
|
12
|
-
*
|
|
13
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
-
*
|
|
15
|
-
* This source code is licensed under the MIT license found in the
|
|
16
|
-
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var Pp;function Ny(){if(Pp)return Ol;Pp=1;var e=I,t=Yn;function r(l){var f="https://react.dev/errors/"+l;if(1<arguments.length){f+="?args[]="+encodeURIComponent(arguments[1]);for(var x=2;x<arguments.length;x++)f+="&args[]="+encodeURIComponent(arguments[x])}return"Minified React error #"+l+"; visit "+f+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),h=Symbol.for("react.profiler"),g=Symbol.for("react.provider"),p=Symbol.for("react.consumer"),b=Symbol.for("react.context"),D=Symbol.for("react.forward_ref"),F=Symbol.for("react.suspense"),S=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),N=Symbol.for("react.scope"),_=Symbol.for("react.activity"),M=Symbol.for("react.legacy_hidden"),U=Symbol.for("react.memo_cache_sentinel"),H=Symbol.for("react.view_transition"),q=Symbol.iterator,Q=Array.isArray;function Y(l,f){var x=l.length&3,E=l.length-x,T=f;for(f=0;f<E;){var P=l.charCodeAt(f)&255|(l.charCodeAt(++f)&255)<<8|(l.charCodeAt(++f)&255)<<16|(l.charCodeAt(++f)&255)<<24;++f,P=3432918353*(P&65535)+((3432918353*(P>>>16)&65535)<<16)&4294967295,P=P<<15|P>>>17,P=461845907*(P&65535)+((461845907*(P>>>16)&65535)<<16)&4294967295,T^=P,T=T<<13|T>>>19,T=5*(T&65535)+((5*(T>>>16)&65535)<<16)&4294967295,T=(T&65535)+27492+(((T>>>16)+58964&65535)<<16)}switch(P=0,x){case 3:P^=(l.charCodeAt(f+2)&255)<<16;case 2:P^=(l.charCodeAt(f+1)&255)<<8;case 1:P^=l.charCodeAt(f)&255,P=3432918353*(P&65535)+((3432918353*(P>>>16)&65535)<<16)&4294967295,P=P<<15|P>>>17,T^=461845907*(P&65535)+((461845907*(P>>>16)&65535)<<16)&4294967295}return T^=l.length,T^=T>>>16,T=2246822507*(T&65535)+((2246822507*(T>>>16)&65535)<<16)&4294967295,T^=T>>>13,T=3266489909*(T&65535)+((3266489909*(T>>>16)&65535)<<16)&4294967295,(T^T>>>16)>>>0}var ie=Object.assign,ee=Object.prototype.hasOwnProperty,ve=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),ge={},Ie={};function Ae(l){return ee.call(Ie,l)?!0:ee.call(ge,l)?!1:ve.test(l)?Ie[l]=!0:(ge[l]=!0,!1)}var Ge=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" ")),Ue=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),te=/["'&<>]/;function fe(l){if(typeof l=="boolean"||typeof l=="number"||typeof l=="bigint")return""+l;l=""+l;var f=te.exec(l);if(f){var x="",E,T=0;for(E=f.index;E<l.length;E++){switch(l.charCodeAt(E)){case 34:f=""";break;case 38:f="&";break;case 39:f="'";break;case 60:f="<";break;case 62:f=">";break;default:continue}T!==E&&(x+=l.slice(T,E)),T=E+1,x+=f}l=T!==E?x+l.slice(T,E):x}return l}var Ea=/([A-Z])/g,so=/^ms-/,le=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function ne(l){return le.test(""+l)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":l}var _n=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,qt=t.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,rt={pending:!1,data:null,method:null,action:null},on=qt.d;qt.d={f:on.f,r:on.r,D:ns,C:su,L:nl,m:al,X:Pt,S:lu,M:il};var fr=[],lo=/(<\/|<)(s)(cript)/gi;function rr(l,f,x,E){return""+f+(x==="s"?"\\u0073":"\\u0053")+E}function Vr(l,f,x,E,T){return{idPrefix:l===void 0?"":l,nextFormID:0,streamingFormat:0,bootstrapScriptContent:x,bootstrapScripts:E,bootstrapModules:T,instructions:0,hasBody:!1,hasHtml:!1,unknownResources:{},dnsResources:{},connectResources:{default:{},anonymous:{},credentials:{}},imageResources:{},styleResources:{},scriptResources:{},moduleUnknownResources:{},moduleScriptResources:{}}}function Fa(){return{htmlChunks:null,headChunks:null,bodyChunks:null,contribution:0}}function We(l,f,x){return{insertionMode:l,selectedValue:f,tagScope:x}}function Oe(l,f,x){switch(f){case"noscript":return We(2,null,l.tagScope|1);case"select":return We(2,x.value!=null?x.value:x.defaultValue,l.tagScope);case"svg":return We(4,null,l.tagScope);case"picture":return We(2,null,l.tagScope|2);case"math":return We(5,null,l.tagScope);case"foreignObject":return We(2,null,l.tagScope);case"table":return We(6,null,l.tagScope);case"thead":case"tbody":case"tfoot":return We(7,null,l.tagScope);case"colgroup":return We(9,null,l.tagScope);case"tr":return We(8,null,l.tagScope);case"head":if(2>l.insertionMode)return We(3,null,l.tagScope);break;case"html":if(l.insertionMode===0)return We(1,null,l.tagScope)}return 6<=l.insertionMode||2>l.insertionMode?We(2,null,l.tagScope):l}var qs=new Map;function Zo(l,f){if(typeof f!="object")throw Error(r(62));var x=!0,E;for(E in f)if(ee.call(f,E)){var T=f[E];if(T!=null&&typeof T!="boolean"&&T!==""){if(E.indexOf("--")===0){var P=fe(E);T=fe((""+T).trim())}else P=qs.get(E),P===void 0&&(P=fe(E.replace(Ea,"-$1").toLowerCase().replace(so,"-ms-")),qs.set(E,P)),T=typeof T=="number"?T===0||Ge.has(E)?""+T:T+"px":fe((""+T).trim());x?(x=!1,l.push(' style="',P,":",T)):l.push(";",P,":",T)}}x||l.push('"')}function Sa(l,f,x){x&&typeof x!="function"&&typeof x!="symbol"&&l.push(" ",f,'=""')}function vt(l,f,x){typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"&&l.push(" ",f,'="',fe(x),'"')}var Ar=fe("javascript:throw new Error('React form unexpectedly submitted.')");function uo(l,f){this.push('<input type="hidden"'),Ks(l),vt(this,"name",f),vt(this,"value",l),this.push("/>")}function Ks(l){if(typeof l!="string")throw Error(r(480))}function Ye(l,f){if(typeof f.$$FORM_ACTION=="function"){var x=l.nextFormID++;l=l.idPrefix+x;try{var E=f.$$FORM_ACTION(l);if(E){var T=E.data;T?.forEach(Ks)}return E}catch(P){if(typeof P=="object"&&P!==null&&typeof P.then=="function")throw P}}return null}function Xe(l,f,x,E,T,P,j,re){var J=null;if(typeof E=="function"){var K=Ye(f,E);K!==null?(re=K.name,E=K.action||"",T=K.encType,P=K.method,j=K.target,J=K.data):(l.push(" ","formAction",'="',Ar,'"'),j=P=T=E=re=null,si(f,x))}return re!=null&&De(l,"name",re),E!=null&&De(l,"formAction",E),T!=null&&De(l,"formEncType",T),P!=null&&De(l,"formMethod",P),j!=null&&De(l,"formTarget",j),J}function De(l,f,x){switch(f){case"className":vt(l,"class",x);break;case"tabIndex":vt(l,"tabindex",x);break;case"dir":case"role":case"viewBox":case"width":case"height":vt(l,f,x);break;case"style":Zo(l,x);break;case"src":case"href":if(x==="")break;case"action":case"formAction":if(x==null||typeof x=="function"||typeof x=="symbol"||typeof x=="boolean")break;x=ne(""+x),l.push(" ",f,'="',fe(x),'"');break;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"ref":break;case"autoFocus":case"multiple":case"muted":Sa(l,f.toLowerCase(),x);break;case"xlinkHref":if(typeof x=="function"||typeof x=="symbol"||typeof x=="boolean")break;x=ne(""+x),l.push(" ","xlink:href",'="',fe(x),'"');break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":typeof x!="function"&&typeof x!="symbol"&&l.push(" ",f,'="',fe(x),'"');break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":x&&typeof x!="function"&&typeof x!="symbol"&&l.push(" ",f,'=""');break;case"capture":case"download":x===!0?l.push(" ",f,'=""'):x!==!1&&typeof x!="function"&&typeof x!="symbol"&&l.push(" ",f,'="',fe(x),'"');break;case"cols":case"rows":case"size":case"span":typeof x!="function"&&typeof x!="symbol"&&!isNaN(x)&&1<=x&&l.push(" ",f,'="',fe(x),'"');break;case"rowSpan":case"start":typeof x=="function"||typeof x=="symbol"||isNaN(x)||l.push(" ",f,'="',fe(x),'"');break;case"xlinkActuate":vt(l,"xlink:actuate",x);break;case"xlinkArcrole":vt(l,"xlink:arcrole",x);break;case"xlinkRole":vt(l,"xlink:role",x);break;case"xlinkShow":vt(l,"xlink:show",x);break;case"xlinkTitle":vt(l,"xlink:title",x);break;case"xlinkType":vt(l,"xlink:type",x);break;case"xmlBase":vt(l,"xml:base",x);break;case"xmlLang":vt(l,"xml:lang",x);break;case"xmlSpace":vt(l,"xml:space",x);break;default:if((!(2<f.length)||f[0]!=="o"&&f[0]!=="O"||f[1]!=="n"&&f[1]!=="N")&&(f=Ue.get(f)||f,Ae(f))){switch(typeof x){case"function":case"symbol":return;case"boolean":var E=f.toLowerCase().slice(0,5);if(E!=="data-"&&E!=="aria-")return}l.push(" ",f,'="',fe(x),'"')}}}function nr(l,f,x){if(f!=null){if(x!=null)throw Error(r(60));if(typeof f!="object"||!("__html"in f))throw Error(r(61));f=f.__html,f!=null&&l.push(""+f)}}function ka(l){var f="";return e.Children.forEach(l,function(x){x!=null&&(f+=x)}),f}function si(l,f){(l.instructions&16)===0&&(l.instructions|=16,f.bootstrapChunks.unshift(f.startInlineScript,`addEventListener("submit",function(a){if(!a.defaultPrevented){var c=a.target,d=a.submitter,e=c.action,b=d;if(d){var f=d.getAttribute("formAction");null!=f&&(e=f,b=null)}"javascript:throw new Error('React form unexpectedly submitted.')"===e&&(a.preventDefault(),b?(a=document.createElement("input"),a.name=b.name,a.value=b.value,b.parentNode.insertBefore(a,b),b=new FormData(c),a.parentNode.removeChild(a)):b=new FormData(c),a=c.ownerDocument||c,(a.$$reactFormReplay=a.$$reactFormReplay||[]).push(c,d,b))}});`,"<\/script>"))}function _t(l,f){l.push(at("link"));for(var x in f)if(ee.call(f,x)){var E=f[x];if(E!=null)switch(x){case"children":case"dangerouslySetInnerHTML":throw Error(r(399,"link"));default:De(l,x,E)}}return l.push("/>"),null}var qo=/(<\/|<)(s)(tyle)/gi;function Ko(l,f,x,E){return""+f+(x==="s"?"\\73 ":"\\53 ")+E}function Kn(l,f,x){l.push(at(x));for(var E in f)if(ee.call(f,E)){var T=f[E];if(T!=null)switch(E){case"children":case"dangerouslySetInnerHTML":throw Error(r(399,x));default:De(l,E,T)}}return l.push("/>"),null}function ar(l,f){l.push(at("title"));var x=null,E=null,T;for(T in f)if(ee.call(f,T)){var P=f[T];if(P!=null)switch(T){case"children":x=P;break;case"dangerouslySetInnerHTML":E=P;break;default:De(l,T,P)}}return l.push(">"),f=Array.isArray(x)?2>x.length?x[0]:null:x,typeof f!="function"&&typeof f!="symbol"&&f!==null&&f!==void 0&&l.push(fe(""+f)),nr(l,E,x),l.push(Rr("title")),null}function Ta(l,f){l.push(at("script"));var x=null,E=null,T;for(T in f)if(ee.call(f,T)){var P=f[T];if(P!=null)switch(T){case"children":x=P;break;case"dangerouslySetInnerHTML":E=P;break;default:De(l,T,P)}}return l.push(">"),nr(l,E,x),typeof x=="string"&&l.push((""+x).replace(lo,rr)),l.push(Rr("script")),null}function Qo(l,f,x){l.push(at(x));var E=x=null,T;for(T in f)if(ee.call(f,T)){var P=f[T];if(P!=null)switch(T){case"children":x=P;break;case"dangerouslySetInnerHTML":E=P;break;default:De(l,T,P)}}return l.push(">"),nr(l,E,x),x}function co(l,f,x){l.push(at(x));var E=x=null,T;for(T in f)if(ee.call(f,T)){var P=f[T];if(P!=null)switch(T){case"children":x=P;break;case"dangerouslySetInnerHTML":E=P;break;default:De(l,T,P)}}return l.push(">"),nr(l,E,x),typeof x=="string"?(l.push(fe(x)),null):x}var Qs=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Nr=new Map;function at(l){var f=Nr.get(l);if(f===void 0){if(!Qs.test(l))throw Error(r(65,l));f="<"+l,Nr.set(l,f)}return f}function ir(l,f,x,E,T,P,j,re,J,K){switch(f){case"div":case"span":case"svg":case"path":break;case"a":l.push(at("a"));var de=null,se=null,we;for(we in x)if(ee.call(x,we)){var Ce=x[we];if(Ce!=null)switch(we){case"children":de=Ce;break;case"dangerouslySetInnerHTML":se=Ce;break;case"href":Ce===""?vt(l,"href",""):De(l,we,Ce);break;default:De(l,we,Ce)}}if(l.push(">"),nr(l,se,de),typeof de=="string"){l.push(fe(de));var Fe=null}else Fe=de;return Fe;case"g":case"p":case"li":break;case"select":l.push(at("select"));var Se=null,qe=null,Ke;for(Ke in x)if(ee.call(x,Ke)){var Ze=x[Ke];if(Ze!=null)switch(Ke){case"children":Se=Ze;break;case"dangerouslySetInnerHTML":qe=Ze;break;case"defaultValue":case"value":break;default:De(l,Ke,Ze)}}return l.push(">"),nr(l,qe,Se),Se;case"option":var et=re.selectedValue;l.push(at("option"));var xe=null,nt=null,Le=null,Nt=null,Lt;for(Lt in x)if(ee.call(x,Lt)){var ke=x[Lt];if(ke!=null)switch(Lt){case"children":xe=ke;break;case"selected":Le=ke;break;case"dangerouslySetInnerHTML":Nt=ke;break;case"value":nt=ke;default:De(l,Lt,ke)}}if(et!=null){var Rt=nt!==null?""+nt:ka(xe);if(Q(et)){for(var Ln=0;Ln<et.length;Ln++)if(""+et[Ln]===Rt){l.push(' selected=""');break}}else""+et===Rt&&l.push(' selected=""')}else Le&&l.push(' selected=""');return l.push(">"),nr(l,Nt,xe),xe;case"textarea":l.push(at("textarea"));var It=null,pn=null,Kt=null,Ct;for(Ct in x)if(ee.call(x,Ct)){var Ot=x[Ct];if(Ot!=null)switch(Ct){case"children":Kt=Ot;break;case"value":It=Ot;break;case"defaultValue":pn=Ot;break;case"dangerouslySetInnerHTML":throw Error(r(91));default:De(l,Ct,Ot)}}if(It===null&&pn!==null&&(It=pn),l.push(">"),Kt!=null){if(It!=null)throw Error(r(92));if(Q(Kt)){if(1<Kt.length)throw Error(r(93));It=""+Kt[0]}It=""+Kt}return typeof It=="string"&&It[0]===`
|
|
18
|
-
`&&l.push(`
|
|
19
|
-
`),It!==null&&l.push(fe(""+It)),null;case"input":l.push(at("input"));var Yt=null,Ir=null,Jt=null,In=null,gn=null,Mn=null,mn=null,Ni=null,Ne=null,vn;for(vn in x)if(ee.call(x,vn)){var Er=x[vn];if(Er!=null)switch(vn){case"children":case"dangerouslySetInnerHTML":throw Error(r(399,"input"));case"name":Yt=Er;break;case"formAction":Ir=Er;break;case"formEncType":Jt=Er;break;case"formMethod":In=Er;break;case"formTarget":gn=Er;break;case"defaultChecked":Ne=Er;break;case"defaultValue":mn=Er;break;case"checked":Ni=Er;break;case"value":Mn=Er;break;default:De(l,vn,Er)}}var Dl=Xe(l,E,T,Ir,Jt,In,gn,Yt);return Ni!==null?Sa(l,"checked",Ni):Ne!==null&&Sa(l,"checked",Ne),Mn!==null?De(l,"value",Mn):mn!==null&&De(l,"value",mn),l.push("/>"),Dl?.forEach(uo,l),null;case"button":l.push(at("button"));var Ri=null,ws=null,Ds=null,Cl=null,Ma=null,Cs=null,Oi=null,Bi;for(Bi in x)if(ee.call(x,Bi)){var Mr=x[Bi];if(Mr!=null)switch(Bi){case"children":Ri=Mr;break;case"dangerouslySetInnerHTML":ws=Mr;break;case"name":Ds=Mr;break;case"formAction":Cl=Mr;break;case"formEncType":Ma=Mr;break;case"formMethod":Cs=Mr;break;case"formTarget":Oi=Mr;break;default:De(l,Bi,Mr)}}var Es=Xe(l,E,T,Cl,Ma,Cs,Oi,Ds);if(l.push(">"),Es?.forEach(uo,l),nr(l,ws,Ri),typeof Ri=="string"){l.push(fe(Ri));var aa=null}else aa=Ri;return aa;case"form":l.push(at("form"));var ia=null,Pi=null,zn=null,Li=null,$r=null,Ii=null,oa;for(oa in x)if(ee.call(x,oa)){var bn=x[oa];if(bn!=null)switch(oa){case"children":ia=bn;break;case"dangerouslySetInnerHTML":Pi=bn;break;case"action":zn=bn;break;case"encType":Li=bn;break;case"method":$r=bn;break;case"target":Ii=bn;break;default:De(l,oa,bn)}}var Et=null,_o=null;if(typeof zn=="function"){var Fr=Ye(E,zn);Fr!==null?(zn=Fr.action||"",Li=Fr.encType,$r=Fr.method,Ii=Fr.target,Et=Fr.data,_o=Fr.name):(l.push(" ","action",'="',Ar,'"'),Ii=$r=Li=zn=null,si(E,T))}if(zn!=null&&De(l,"action",zn),Li!=null&&De(l,"encType",Li),$r!=null&&De(l,"method",$r),Ii!=null&&De(l,"target",Ii),l.push(">"),_o!==null&&(l.push('<input type="hidden"'),vt(l,"name",_o),l.push("/>"),Et?.forEach(uo,l)),nr(l,Pi,ia),typeof ia=="string"){l.push(fe(ia));var sa=null}else sa=ia;return sa;case"menuitem":l.push(at("menuitem"));for(var za in x)if(ee.call(x,za)){var Hn=x[za];if(Hn!=null)switch(za){case"children":case"dangerouslySetInnerHTML":throw Error(r(400));default:De(l,za,Hn)}}return l.push(">"),null;case"object":l.push(at("object"));var zr=null,yn=null,it;for(it in x)if(ee.call(x,it)){var en=x[it];if(en!=null)switch(it){case"children":zr=en;break;case"dangerouslySetInnerHTML":yn=en;break;case"data":var mr=ne(""+en);if(mr==="")break;l.push(" ","data",'="',fe(mr),'"');break;default:De(l,it,en)}}if(l.push(">"),nr(l,yn,zr),typeof zr=="string"){l.push(fe(zr));var Ha=null}else Ha=zr;return Ha;case"title":if(re.insertionMode===4||re.tagScope&1||x.itemProp!=null)var la=ar(l,x);else K?la=null:(ar(T.hoistableChunks,x),la=void 0);return la;case"link":var Ao=x.rel,ut=x.href,xn=x.precedence;if(re.insertionMode===4||re.tagScope&1||x.itemProp!=null||typeof Ao!="string"||typeof ut!="string"||ut===""){_t(l,x);var tn=null}else if(x.rel==="stylesheet")if(typeof xn!="string"||x.disabled!=null||x.onLoad||x.onError)tn=_t(l,x);else{var wn=T.styles.get(xn),jn=E.styleResources.hasOwnProperty(ut)?E.styleResources[ut]:void 0;if(jn!==null){E.styleResources[ut]=null,wn||(wn={precedence:fe(xn),rules:[],hrefs:[],sheets:new Map},T.styles.set(xn,wn));var Mi={state:0,props:ie({},x,{"data-precedence":x.precedence,precedence:null})};if(jn){jn.length===2&&sn(Mi.props,jn);var vr=T.preloads.stylesheets.get(ut);vr&&0<vr.length?vr.length=0:Mi.state=1}wn.sheets.set(ut,Mi),j&&j.stylesheets.add(Mi)}else if(wn){var El=wn.sheets.get(ut);El&&j&&j.stylesheets.add(El)}J&&l.push("<!-- -->"),tn=null}else x.onLoad||x.onError?tn=_t(l,x):(J&&l.push("<!-- -->"),tn=K?null:_t(T.hoistableChunks,x));return tn;case"script":var ua=x.async;if(typeof x.src!="string"||!x.src||!ua||typeof ua=="function"||typeof ua=="symbol"||x.onLoad||x.onError||re.insertionMode===4||re.tagScope&1||x.itemProp!=null)var Fs=Ta(l,x);else{var ja=x.src;if(x.type==="module")var ca=E.moduleScriptResources,zi=T.preloads.moduleScripts;else ca=E.scriptResources,zi=T.preloads.scripts;var Un=ca.hasOwnProperty(ja)?ca[ja]:void 0;if(Un!==null){ca[ja]=null;var Hi=x;if(Un){Un.length===2&&(Hi=ie({},x),sn(Hi,Un));var Te=zi.get(ja);Te&&(Te.length=0)}var ji=[];T.scripts.add(ji),Ta(ji,Hi)}J&&l.push("<!-- -->"),Fs=null}return Fs;case"style":var Dn=x.precedence,br=x.href;if(re.insertionMode===4||re.tagScope&1||x.itemProp!=null||typeof Dn!="string"||typeof br!="string"||br===""){l.push(at("style"));var sr=null,Ua=null,da;for(da in x)if(ee.call(x,da)){var Ui=x[da];if(Ui!=null)switch(da){case"children":sr=Ui;break;case"dangerouslySetInnerHTML":Ua=Ui;break;default:De(l,da,Ui)}}l.push(">");var Wa=Array.isArray(sr)?2>sr.length?sr[0]:null:sr;typeof Wa!="function"&&typeof Wa!="symbol"&&Wa!==null&&Wa!==void 0&&l.push((""+Wa).replace(qo,Ko)),nr(l,Ua,sr),l.push(Rr("style"));var Wi=null}else{var Qt=T.styles.get(Dn);if((E.styleResources.hasOwnProperty(br)?E.styleResources[br]:void 0)!==null){E.styleResources[br]=null,Qt?Qt.hrefs.push(fe(br)):(Qt={precedence:fe(Dn),rules:[],hrefs:[fe(br)],sheets:new Map},T.styles.set(Dn,Qt));var Wn=Qt.rules,fa=null,Sr=null,Ga;for(Ga in x)if(ee.call(x,Ga)){var s=x[Ga];if(s!=null)switch(Ga){case"children":fa=s;break;case"dangerouslySetInnerHTML":Sr=s}}var c=Array.isArray(fa)?2>fa.length?fa[0]:null:fa;typeof c!="function"&&typeof c!="symbol"&&c!==null&&c!==void 0&&Wn.push((""+c).replace(qo,Ko)),nr(Wn,Sr,fa)}Qt&&j&&j.styles.add(Qt),J&&l.push("<!-- -->"),Wi=void 0}return Wi;case"meta":if(re.insertionMode===4||re.tagScope&1||x.itemProp!=null)var v=Kn(l,x,"meta");else J&&l.push("<!-- -->"),v=K?null:typeof x.charSet=="string"?Kn(T.charsetChunks,x,"meta"):x.name==="viewport"?Kn(T.viewportChunks,x,"meta"):Kn(T.hoistableChunks,x,"meta");return v;case"listing":case"pre":l.push(at(f));var C=null,k=null,B;for(B in x)if(ee.call(x,B)){var z=x[B];if(z!=null)switch(B){case"children":C=z;break;case"dangerouslySetInnerHTML":k=z;break;default:De(l,B,z)}}if(l.push(">"),k!=null){if(C!=null)throw Error(r(60));if(typeof k!="object"||!("__html"in k))throw Error(r(61));var X=k.__html;X!=null&&(typeof X=="string"&&0<X.length&&X[0]===`
|
|
20
|
-
`?l.push(`
|
|
21
|
-
`,X):l.push(""+X))}return typeof C=="string"&&C[0]===`
|
|
22
|
-
`&&l.push(`
|
|
23
|
-
`),C;case"img":var W=x.src,V=x.srcSet;if(!(x.loading==="lazy"||!W&&!V||typeof W!="string"&&W!=null||typeof V!="string"&&V!=null)&&x.fetchPriority!=="low"&&!(re.tagScope&3)&&(typeof W!="string"||W[4]!==":"||W[0]!=="d"&&W[0]!=="D"||W[1]!=="a"&&W[1]!=="A"||W[2]!=="t"&&W[2]!=="T"||W[3]!=="a"&&W[3]!=="A")&&(typeof V!="string"||V[4]!==":"||V[0]!=="d"&&V[0]!=="D"||V[1]!=="a"&&V[1]!=="A"||V[2]!=="t"&&V[2]!=="T"||V[3]!=="a"&&V[3]!=="A")){var oe=typeof x.sizes=="string"?x.sizes:void 0,ae=V?V+`
|
|
24
|
-
`+(oe||""):W,pe=T.preloads.images,me=pe.get(ae);if(me)(x.fetchPriority==="high"||10>T.highImagePreloads.size)&&(pe.delete(ae),T.highImagePreloads.add(me));else if(!E.imageResources.hasOwnProperty(ae)){E.imageResources[ae]=fr;var Ee=x.crossOrigin,_e=typeof Ee=="string"?Ee==="use-credentials"?Ee:"":void 0,Je=T.headers,ct;Je&&0<Je.remainingCapacity&&typeof x.srcSet!="string"&&(x.fetchPriority==="high"||500>Je.highImagePreloads.length)&&(ct=ln(W,"image",{imageSrcSet:x.srcSet,imageSizes:x.sizes,crossOrigin:_e,integrity:x.integrity,nonce:x.nonce,type:x.type,fetchPriority:x.fetchPriority,referrerPolicy:x.refererPolicy}),0<=(Je.remainingCapacity-=ct.length+2))?(T.resets.image[ae]=fr,Je.highImagePreloads&&(Je.highImagePreloads+=", "),Je.highImagePreloads+=ct):(me=[],_t(me,{rel:"preload",as:"image",href:V?void 0:W,imageSrcSet:V,imageSizes:oe,crossOrigin:_e,integrity:x.integrity,type:x.type,fetchPriority:x.fetchPriority,referrerPolicy:x.referrerPolicy}),x.fetchPriority==="high"||10>T.highImagePreloads.size?T.highImagePreloads.add(me):(T.bulkPreloads.add(me),pe.set(ae,me)))}}return Kn(l,x,"img");case"base":case"area":case"br":case"col":case"embed":case"hr":case"keygen":case"param":case"source":case"track":case"wbr":return Kn(l,x,f);case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":break;case"head":if(2>re.insertionMode){var je=P||T.preamble;if(je.headChunks)throw Error(r(545,"`<head>`"));je.headChunks=[];var He=Qo(je.headChunks,x,"head")}else He=co(l,x,"head");return He;case"body":if(2>re.insertionMode){var dt=P||T.preamble;if(dt.bodyChunks)throw Error(r(545,"`<body>`"));dt.bodyChunks=[];var lr=Qo(dt.bodyChunks,x,"body")}else lr=co(l,x,"body");return lr;case"html":if(re.insertionMode===0){var Mt=P||T.preamble;if(Mt.htmlChunks)throw Error(r(545,"`<html>`"));Mt.htmlChunks=[""];var Cn=Qo(Mt.htmlChunks,x,"html")}else Cn=co(l,x,"html");return Cn;default:if(f.indexOf("-")!==-1){l.push(at(f));var kr=null,Ft=null,xt;for(xt in x)if(ee.call(x,xt)){var ot=x[xt];if(ot!=null){var zt=xt;switch(xt){case"children":kr=ot;break;case"dangerouslySetInnerHTML":Ft=ot;break;case"style":Zo(l,ot);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"ref":break;case"className":zt="class";default:if(Ae(xt)&&typeof ot!="function"&&typeof ot!="symbol"&&ot!==!1){if(ot===!0)ot="";else if(typeof ot=="object")continue;l.push(" ",zt,'="',fe(ot),'"')}}}}return l.push(">"),nr(l,Ft,kr),kr}}return co(l,x,f)}var $o=new Map;function Rr(l){var f=$o.get(l);return f===void 0&&(f="</"+l+">",$o.set(l,f)),f}function Yr(l,f){l=l.preamble,l.htmlChunks===null&&f.htmlChunks&&(l.htmlChunks=f.htmlChunks,f.contribution|=1),l.headChunks===null&&f.headChunks&&(l.headChunks=f.headChunks,f.contribution|=4),l.bodyChunks===null&&f.bodyChunks&&(l.bodyChunks=f.bodyChunks,f.contribution|=2)}function es(l,f){f=f.bootstrapChunks;for(var x=0;x<f.length-1;x++)l.push(f[x]);return x<f.length?(x=f[x],f.length=0,l.push(x)):!0}function fo(l,f,x){if(l.push('<!--$?--><template id="'),x===null)throw Error(r(395));return l.push(f.boundaryPrefix),f=x.toString(16),l.push(f),l.push('"></template>')}function $s(l,f){f=f.contribution,f!==0&&(l.push("<!--"),l.push(""+f),l.push("-->"))}function el(l,f,x,E){switch(x.insertionMode){case 0:case 1:case 3:case 2:return l.push('<div hidden id="'),l.push(f.segmentPrefix),f=E.toString(16),l.push(f),l.push('">');case 4:return l.push('<svg aria-hidden="true" style="display:none" id="'),l.push(f.segmentPrefix),f=E.toString(16),l.push(f),l.push('">');case 5:return l.push('<math aria-hidden="true" style="display:none" id="'),l.push(f.segmentPrefix),f=E.toString(16),l.push(f),l.push('">');case 6:return l.push('<table hidden id="'),l.push(f.segmentPrefix),f=E.toString(16),l.push(f),l.push('">');case 7:return l.push('<table hidden><tbody id="'),l.push(f.segmentPrefix),f=E.toString(16),l.push(f),l.push('">');case 8:return l.push('<table hidden><tr id="'),l.push(f.segmentPrefix),f=E.toString(16),l.push(f),l.push('">');case 9:return l.push('<table hidden><colgroup id="'),l.push(f.segmentPrefix),f=E.toString(16),l.push(f),l.push('">');default:throw Error(r(397))}}function ou(l,f){switch(f.insertionMode){case 0:case 1:case 3:case 2:return l.push("</div>");case 4:return l.push("</svg>");case 5:return l.push("</math>");case 6:return l.push("</table>");case 7:return l.push("</tbody></table>");case 8:return l.push("</tr></table>");case 9:return l.push("</colgroup></table>");default:throw Error(r(397))}}var li=/[<\u2028\u2029]/g;function bt(l){return JSON.stringify(l).replace(li,function(f){switch(f){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}var lt=/[&><\u2028\u2029]/g;function Bt(l){return JSON.stringify(l).replace(lt,function(f){switch(f){case"&":return"\\u0026";case">":return"\\u003e";case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSObjectForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}var _a=!1,ui=!0;function Ut(l){var f=l.rules,x=l.hrefs,E=0;if(x.length){for(this.push('<style media="not all" data-precedence="'),this.push(l.precedence),this.push('" data-href="');E<x.length-1;E++)this.push(x[E]),this.push(" ");for(this.push(x[E]),this.push('">'),E=0;E<f.length;E++)this.push(f[E]);ui=this.push("</style>"),_a=!0,f.length=0,x.length=0}}function tl(l){return l.state!==2?_a=!0:!1}function ci(l,f,x){return _a=!1,ui=!0,f.styles.forEach(Ut,l),f.stylesheets.forEach(tl),_a&&(x.stylesToHoist=!0),ui}function or(l){for(var f=0;f<l.length;f++)this.push(l[f]);l.length=0}var Jr=[];function ts(l){_t(Jr,l.props);for(var f=0;f<Jr.length;f++)this.push(Jr[f]);Jr.length=0,l.state=2}function rs(l){var f=0<l.sheets.size;l.sheets.forEach(ts,this),l.sheets.clear();var x=l.rules,E=l.hrefs;if(!f||E.length){if(this.push('<style data-precedence="'),this.push(l.precedence),l=0,E.length){for(this.push('" data-href="');l<E.length-1;l++)this.push(E[l]),this.push(" ");this.push(E[l])}for(this.push('">'),l=0;l<x.length;l++)this.push(x[l]);this.push("</style>"),x.length=0,E.length=0}}function Ve(l){if(l.state===0){l.state=1;var f=l.props;for(_t(Jr,{rel:"preload",as:"style",href:l.props.href,crossOrigin:f.crossOrigin,fetchPriority:f.fetchPriority,integrity:f.integrity,media:f.media,hrefLang:f.hrefLang,referrerPolicy:f.referrerPolicy}),l=0;l<Jr.length;l++)this.push(Jr[l]);Jr.length=0}}function Wt(l){l.sheets.forEach(Ve,this),l.sheets.clear()}function Aa(l,f){l.push("[");var x="[";f.stylesheets.forEach(function(E){if(E.state!==2)if(E.state===3)l.push(x),E=Bt(""+E.props.href),l.push(E),l.push("]"),x=",[";else{l.push(x);var T=E.props["data-precedence"],P=E.props,j=ne(""+E.props.href);j=Bt(j),l.push(j),T=""+T,l.push(","),T=Bt(T),l.push(T);for(var re in P)if(ee.call(P,re)&&(T=P[re],T!=null))switch(re){case"href":case"rel":case"precedence":case"data-precedence":break;case"children":case"dangerouslySetInnerHTML":throw Error(r(399,"link"));default:hr(l,re,T)}l.push("]"),x=",[",E.state=3}}),l.push("]")}function hr(l,f,x){var E=f.toLowerCase();switch(typeof x){case"function":case"symbol":return}switch(f){case"innerHTML":case"dangerouslySetInnerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"style":case"ref":return;case"className":E="class",f=""+x;break;case"hidden":if(x===!1)return;f="";break;case"src":case"href":x=ne(x),f=""+x;break;default:if(2<f.length&&(f[0]==="o"||f[0]==="O")&&(f[1]==="n"||f[1]==="N")||!Ae(f))return;f=""+x}l.push(","),E=Bt(E),l.push(E),l.push(","),E=Bt(f),l.push(E)}function rl(){return{styles:new Set,stylesheets:new Set}}function ns(l){var f=At||null;if(f){var x=f.resumableState,E=f.renderState;if(typeof l=="string"&&l){if(!x.dnsResources.hasOwnProperty(l)){x.dnsResources[l]=null,x=E.headers;var T,P;(P=x&&0<x.remainingCapacity)&&(P=(T="<"+(""+l).replace(di,Na)+">; rel=dns-prefetch",0<=(x.remainingCapacity-=T.length+2))),P?(E.resets.dns[l]=null,x.preconnects&&(x.preconnects+=", "),x.preconnects+=T):(T=[],_t(T,{href:l,rel:"dns-prefetch"}),E.preconnects.add(T))}hn(f)}}else on.D(l)}function su(l,f){var x=At||null;if(x){var E=x.resumableState,T=x.renderState;if(typeof l=="string"&&l){var P=f==="use-credentials"?"credentials":typeof f=="string"?"anonymous":"default";if(!E.connectResources[P].hasOwnProperty(l)){E.connectResources[P][l]=null,E=T.headers;var j,re;if(re=E&&0<E.remainingCapacity){if(re="<"+(""+l).replace(di,Na)+">; rel=preconnect",typeof f=="string"){var J=(""+f).replace(Ra,Oa);re+='; crossorigin="'+J+'"'}re=(j=re,0<=(E.remainingCapacity-=j.length+2))}re?(T.resets.connect[P][l]=null,E.preconnects&&(E.preconnects+=", "),E.preconnects+=j):(P=[],_t(P,{rel:"preconnect",href:l,crossOrigin:f}),T.preconnects.add(P))}hn(x)}}else on.C(l,f)}function nl(l,f,x){var E=At||null;if(E){var T=E.resumableState,P=E.renderState;if(f&&l){switch(f){case"image":if(x)var j=x.imageSrcSet,re=x.imageSizes,J=x.fetchPriority;var K=j?j+`
|
|
25
|
-
`+(re||""):l;if(T.imageResources.hasOwnProperty(K))return;T.imageResources[K]=fr,T=P.headers;var de;T&&0<T.remainingCapacity&&typeof j!="string"&&J==="high"&&(de=ln(l,f,x),0<=(T.remainingCapacity-=de.length+2))?(P.resets.image[K]=fr,T.highImagePreloads&&(T.highImagePreloads+=", "),T.highImagePreloads+=de):(T=[],_t(T,ie({rel:"preload",href:j?void 0:l,as:f},x)),J==="high"?P.highImagePreloads.add(T):(P.bulkPreloads.add(T),P.preloads.images.set(K,T)));break;case"style":if(T.styleResources.hasOwnProperty(l))return;j=[],_t(j,ie({rel:"preload",href:l,as:f},x)),T.styleResources[l]=!x||typeof x.crossOrigin!="string"&&typeof x.integrity!="string"?fr:[x.crossOrigin,x.integrity],P.preloads.stylesheets.set(l,j),P.bulkPreloads.add(j);break;case"script":if(T.scriptResources.hasOwnProperty(l))return;j=[],P.preloads.scripts.set(l,j),P.bulkPreloads.add(j),_t(j,ie({rel:"preload",href:l,as:f},x)),T.scriptResources[l]=!x||typeof x.crossOrigin!="string"&&typeof x.integrity!="string"?fr:[x.crossOrigin,x.integrity];break;default:if(T.unknownResources.hasOwnProperty(f)){if(j=T.unknownResources[f],j.hasOwnProperty(l))return}else j={},T.unknownResources[f]=j;if(j[l]=fr,(T=P.headers)&&0<T.remainingCapacity&&f==="font"&&(K=ln(l,f,x),0<=(T.remainingCapacity-=K.length+2)))P.resets.font[l]=fr,T.fontPreloads&&(T.fontPreloads+=", "),T.fontPreloads+=K;else switch(T=[],l=ie({rel:"preload",href:l,as:f},x),_t(T,l),f){case"font":P.fontPreloads.add(T);break;default:P.bulkPreloads.add(T)}}hn(E)}}else on.L(l,f,x)}function al(l,f){var x=At||null;if(x){var E=x.resumableState,T=x.renderState;if(l){var P=f&&typeof f.as=="string"?f.as:"script";switch(P){case"script":if(E.moduleScriptResources.hasOwnProperty(l))return;P=[],E.moduleScriptResources[l]=!f||typeof f.crossOrigin!="string"&&typeof f.integrity!="string"?fr:[f.crossOrigin,f.integrity],T.preloads.moduleScripts.set(l,P);break;default:if(E.moduleUnknownResources.hasOwnProperty(P)){var j=E.unknownResources[P];if(j.hasOwnProperty(l))return}else j={},E.moduleUnknownResources[P]=j;P=[],j[l]=fr}_t(P,ie({rel:"modulepreload",href:l},f)),T.bulkPreloads.add(P),hn(x)}}else on.m(l,f)}function lu(l,f,x){var E=At||null;if(E){var T=E.resumableState,P=E.renderState;if(l){f=f||"default";var j=P.styles.get(f),re=T.styleResources.hasOwnProperty(l)?T.styleResources[l]:void 0;re!==null&&(T.styleResources[l]=null,j||(j={precedence:fe(f),rules:[],hrefs:[],sheets:new Map},P.styles.set(f,j)),f={state:0,props:ie({rel:"stylesheet",href:l,"data-precedence":f},x)},re&&(re.length===2&&sn(f.props,re),(P=P.preloads.stylesheets.get(l))&&0<P.length?P.length=0:f.state=1),j.sheets.set(l,f),hn(E))}}else on.S(l,f,x)}function Pt(l,f){var x=At||null;if(x){var E=x.resumableState,T=x.renderState;if(l){var P=E.scriptResources.hasOwnProperty(l)?E.scriptResources[l]:void 0;P!==null&&(E.scriptResources[l]=null,f=ie({src:l,async:!0},f),P&&(P.length===2&&sn(f,P),l=T.preloads.scripts.get(l))&&(l.length=0),l=[],T.scripts.add(l),Ta(l,f),hn(x))}}else on.X(l,f)}function il(l,f){var x=At||null;if(x){var E=x.resumableState,T=x.renderState;if(l){var P=E.moduleScriptResources.hasOwnProperty(l)?E.moduleScriptResources[l]:void 0;P!==null&&(E.moduleScriptResources[l]=null,f=ie({src:l,type:"module",async:!0},f),P&&(P.length===2&&sn(f,P),l=T.preloads.moduleScripts.get(l))&&(l.length=0),l=[],T.scripts.add(l),Ta(l,f),hn(x))}}else on.M(l,f)}function sn(l,f){l.crossOrigin==null&&(l.crossOrigin=f[0]),l.integrity==null&&(l.integrity=f[1])}function ln(l,f,x){l=(""+l).replace(di,Na),f=(""+f).replace(Ra,Oa),f="<"+l+'>; rel=preload; as="'+f+'"';for(var E in x)ee.call(x,E)&&(l=x[E],typeof l=="string"&&(f+="; "+E.toLowerCase()+'="'+(""+l).replace(Ra,Oa)+'"'));return f}var di=/[<>\r\n]/g;function Na(l){switch(l){case"<":return"%3C";case">":return"%3E";case`
|
|
26
|
-
`:return"%0A";case"\r":return"%0D";default:throw Error("escapeLinkHrefForHeaderContextReplacer encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}}var Ra=/["';,\r\n]/g;function Oa(l){switch(l){case'"':return"%22";case"'":return"%27";case";":return"%3B";case",":return"%2C";case`
|
|
27
|
-
`:return"%0A";case"\r":return"%0D";default:throw Error("escapeStringForLinkHeaderQuotedParamValueContextReplacer encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}}function An(l){this.styles.add(l)}function ol(l){this.stylesheets.add(l)}function as(l,f){var x=l.idPrefix,E=[],T=l.bootstrapScriptContent,P=l.bootstrapScripts,j=l.bootstrapModules;T!==void 0&&E.push("<script>",(""+T).replace(lo,rr),"<\/script>"),T=x+"P:";var re=x+"S:";x+="B:";var J=Fa(),K=new Set,de=new Set,se=new Set,we=new Map,Ce=new Set,Fe=new Set,Se=new Set,qe={images:new Map,stylesheets:new Map,scripts:new Map,moduleScripts:new Map};if(P!==void 0)for(var Ke=0;Ke<P.length;Ke++){var Ze=P[Ke],et,xe=void 0,nt=void 0,Le={rel:"preload",as:"script",fetchPriority:"low",nonce:void 0};typeof Ze=="string"?Le.href=et=Ze:(Le.href=et=Ze.src,Le.integrity=nt=typeof Ze.integrity=="string"?Ze.integrity:void 0,Le.crossOrigin=xe=typeof Ze=="string"||Ze.crossOrigin==null?void 0:Ze.crossOrigin==="use-credentials"?"use-credentials":""),Ze=l;var Nt=et;Ze.scriptResources[Nt]=null,Ze.moduleScriptResources[Nt]=null,Ze=[],_t(Ze,Le),Ce.add(Ze),E.push('<script src="',fe(et)),typeof nt=="string"&&E.push('" integrity="',fe(nt)),typeof xe=="string"&&E.push('" crossorigin="',fe(xe)),E.push('" async=""><\/script>')}if(j!==void 0)for(P=0;P<j.length;P++)Le=j[P],xe=et=void 0,nt={rel:"modulepreload",fetchPriority:"low",nonce:void 0},typeof Le=="string"?nt.href=Ke=Le:(nt.href=Ke=Le.src,nt.integrity=xe=typeof Le.integrity=="string"?Le.integrity:void 0,nt.crossOrigin=et=typeof Le=="string"||Le.crossOrigin==null?void 0:Le.crossOrigin==="use-credentials"?"use-credentials":""),Le=l,Ze=Ke,Le.scriptResources[Ze]=null,Le.moduleScriptResources[Ze]=null,Le=[],_t(Le,nt),Ce.add(Le),E.push('<script type="module" src="',fe(Ke)),typeof xe=="string"&&E.push('" integrity="',fe(xe)),typeof et=="string"&&E.push('" crossorigin="',fe(et)),E.push('" async=""><\/script>');return{placeholderPrefix:T,segmentPrefix:re,boundaryPrefix:x,startInlineScript:"<script>",preamble:J,externalRuntimeScript:null,bootstrapChunks:E,importMapChunks:[],onHeaders:void 0,headers:null,resets:{font:{},dns:{},connect:{default:{},anonymous:{},credentials:{}},image:{},style:{}},charsetChunks:[],viewportChunks:[],hoistableChunks:[],preconnects:K,fontPreloads:de,highImagePreloads:se,styles:we,bootstrapScripts:Ce,scripts:Fe,bulkPreloads:Se,preloads:qe,stylesToHoist:!1,generateStaticMarkup:f}}function yt(l,f,x,E){return x.generateStaticMarkup?(l.push(fe(f)),!1):(f===""?l=E:(E&&l.push("<!-- -->"),l.push(fe(f)),l=!0),l)}function ho(l,f,x,E){f.generateStaticMarkup||x&&E&&l.push("<!-- -->")}var po=Function.prototype.bind,sl=Symbol.for("react.client.reference");function pt(l){if(l==null)return null;if(typeof l=="function")return l.$$typeof===sl?null:l.displayName||l.name||null;if(typeof l=="string")return l;switch(l){case i:return"Fragment";case h:return"Profiler";case u:return"StrictMode";case F:return"Suspense";case S:return"SuspenseList";case _:return"Activity"}if(typeof l=="object")switch(l.$$typeof){case a:return"Portal";case b:return(l.displayName||"Context")+".Provider";case p:return(l._context.displayName||"Context")+".Consumer";case D:var f=l.render;return l=l.displayName,l||(l=f.displayName||f.name||"",l=l!==""?"ForwardRef("+l+")":"ForwardRef"),l;case R:return f=l.displayName||null,f!==null?f:pt(l.type)||"Memo";case O:f=l._payload,l=l._init;try{return pt(l(f))}catch{}}return null}var Or={},Nn=null;function go(l,f){if(l!==f){l.context._currentValue2=l.parentValue,l=l.parent;var x=f.parent;if(l===null){if(x!==null)throw Error(r(401))}else{if(x===null)throw Error(r(401));go(l,x)}f.context._currentValue2=f.value}}function is(l){l.context._currentValue2=l.parentValue,l=l.parent,l!==null&&is(l)}function ll(l){var f=l.parent;f!==null&&ll(f),l.context._currentValue2=l.value}function ul(l,f){if(l.context._currentValue2=l.parentValue,l=l.parent,l===null)throw Error(r(402));l.depth===f.depth?go(l,f):ul(l,f)}function cl(l,f){var x=f.parent;if(x===null)throw Error(r(402));l.depth===x.depth?go(l,x):cl(l,x),f.context._currentValue2=f.value}function Br(l){var f=Nn;f!==l&&(f===null?ll(l):l===null?is(f):f.depth===l.depth?go(f,l):f.depth>l.depth?ul(f,l):cl(f,l),Nn=l)}var fi={enqueueSetState:function(l,f){l=l._reactInternals,l.queue!==null&&l.queue.push(f)},enqueueReplaceState:function(l,f){l=l._reactInternals,l.replace=!0,l.queue=[f]},enqueueForceUpdate:function(){}},dl={id:1,overflow:""};function hi(l,f,x){var E=l.id;l=l.overflow;var T=32-mo(E)-1;E&=~(1<<T),x+=1;var P=32-mo(f)+T;if(30<P){var j=T-T%5;return P=(E&(1<<j)-1).toString(32),E>>=j,T-=j,{id:1<<32-mo(f)+T|x<<T|E,overflow:P+l}}return{id:1<<P|x<<T|E,overflow:l}}var mo=Math.clz32?Math.clz32:hl,fl=Math.log,os=Math.LN2;function hl(l){return l>>>=0,l===0?32:31-(fl(l)/os|0)|0}var Rn=Error(r(460));function Qn(){}function uu(l,f,x){switch(x=l[x],x===void 0?l.push(f):x!==f&&(f.then(Qn,Qn),f=x),f.status){case"fulfilled":return f.value;case"rejected":throw f.reason;default:switch(typeof f.status=="string"?f.then(Qn,Qn):(l=f,l.status="pending",l.then(function(E){if(f.status==="pending"){var T=f;T.status="fulfilled",T.value=E}},function(E){if(f.status==="pending"){var T=f;T.status="rejected",T.reason=E}})),f.status){case"fulfilled":return f.value;case"rejected":throw f.reason}throw pi=f,Rn}}var pi=null;function vo(){if(pi===null)throw Error(r(459));var l=pi;return pi=null,l}function cu(l,f){return l===f&&(l!==0||1/l===1/f)||l!==l&&f!==f}var du=typeof Object.is=="function"?Object.is:cu,Xr=null,$n=null,ss=null,ls=null,bo=null,$e=null,gi=!1,un=!1,mi=0,vi=0,Ba=-1,yo=0,ea=null,cn=null,Pr=0;function dn(){if(Xr===null)throw Error(r(321));return Xr}function bi(){if(0<Pr)throw Error(r(312));return{memoizedState:null,queue:null,next:null}}function On(){return $e===null?bo===null?(gi=!1,bo=$e=bi()):(gi=!0,$e=bo):$e.next===null?(gi=!1,$e=$e.next=bi()):(gi=!0,$e=$e.next),$e}function Bn(){var l=ea;return ea=null,l}function yi(){ls=ss=$n=Xr=null,un=!1,bo=null,Pr=0,$e=cn=null}function pl(l,f){return typeof f=="function"?f(l):f}function us(l,f,x){if(Xr=dn(),$e=On(),gi){var E=$e.queue;if(f=E.dispatch,cn!==null&&(x=cn.get(E),x!==void 0)){cn.delete(E),E=$e.memoizedState;do E=l(E,x.action),x=x.next;while(x!==null);return $e.memoizedState=E,[E,f]}return[$e.memoizedState,f]}return l=l===pl?typeof f=="function"?f():f:x!==void 0?x(f):f,$e.memoizedState=l,l=$e.queue={last:null,dispatch:null},l=l.dispatch=gl.bind(null,Xr,l),[$e.memoizedState,l]}function cs(l,f){if(Xr=dn(),$e=On(),f=f===void 0?null:f,$e!==null){var x=$e.memoizedState;if(x!==null&&f!==null){var E=x[1];e:if(E===null)E=!1;else{for(var T=0;T<E.length&&T<f.length;T++)if(!du(f[T],E[T])){E=!1;break e}E=!0}if(E)return x[0]}}return l=l(),$e.memoizedState=[l,f],l}function gl(l,f,x){if(25<=Pr)throw Error(r(301));if(l===Xr)if(un=!0,l={action:x,next:null},cn===null&&(cn=new Map),x=cn.get(f),x===void 0)cn.set(f,l);else{for(f=x;f.next!==null;)f=f.next;f.next=l}}function fu(){throw Error(r(394))}function ds(){throw Error(r(479))}function ml(l,f,x){dn();var E=vi++,T=ss;if(typeof l.$$FORM_ACTION=="function"){var P=null,j=ls;T=T.formState;var re=l.$$IS_SIGNATURE_EQUAL;if(T!==null&&typeof re=="function"){var J=T[1];re.call(l,T[2],T[3])&&(P=x!==void 0?"p"+x:"k"+Y(JSON.stringify([j,null,E]),0),J===P&&(Ba=E,f=T[0]))}var K=l.bind(null,f);return l=function(se){K(se)},typeof K.$$FORM_ACTION=="function"&&(l.$$FORM_ACTION=function(se){se=K.$$FORM_ACTION(se),x!==void 0&&(x+="",se.action=x);var we=se.data;return we&&(P===null&&(P=x!==void 0?"p"+x:"k"+Y(JSON.stringify([j,null,E]),0)),we.append("$ACTION_KEY",P)),se}),[f,l,!1]}var de=l.bind(null,f);return[f,function(se){de(se)},!1]}function vl(l){var f=yo;return yo+=1,ea===null&&(ea=[]),uu(ea,l,f)}function hu(){throw Error(r(393))}function xi(){}var bl={readContext:function(l){return l._currentValue2},use:function(l){if(l!==null&&typeof l=="object"){if(typeof l.then=="function")return vl(l);if(l.$$typeof===b)return l._currentValue2}throw Error(r(438,String(l)))},useContext:function(l){return dn(),l._currentValue2},useMemo:cs,useReducer:us,useRef:function(l){Xr=dn(),$e=On();var f=$e.memoizedState;return f===null?(l={current:l},$e.memoizedState=l):f},useState:function(l){return us(pl,l)},useInsertionEffect:xi,useLayoutEffect:xi,useCallback:function(l,f){return cs(function(){return l},f)},useImperativeHandle:xi,useEffect:xi,useDebugValue:xi,useDeferredValue:function(l,f){return dn(),f!==void 0?f:l},useTransition:function(){return dn(),[!1,fu]},useId:function(){var l=$n.treeContext,f=l.overflow;l=l.id,l=(l&~(1<<32-mo(l)-1)).toString(32)+f;var x=xo;if(x===null)throw Error(r(404));return f=mi++,l="«"+x.idPrefix+"R"+l,0<f&&(l+="H"+f.toString(32)),l+"»"},useSyncExternalStore:function(l,f,x){if(x===void 0)throw Error(r(407));return x()},useOptimistic:function(l){return dn(),[l,ds]},useActionState:ml,useFormState:ml,useHostTransitionStatus:function(){return dn(),rt},useMemoCache:function(l){for(var f=Array(l),x=0;x<l;x++)f[x]=U;return f},useCacheRefresh:function(){return hu}},xo=null,pu={getCacheForType:function(){throw Error(r(248))}},wo,yl;function Pa(l){if(wo===void 0)try{throw Error()}catch(x){var f=x.stack.trim().match(/\n( *(at )?)/);wo=f&&f[1]||"",yl=-1<x.stack.indexOf(`
|
|
28
|
-
at`)?" (<anonymous>)":-1<x.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
29
|
-
`+wo+l+yl}var fs=!1;function Do(l,f){if(!l||fs)return"";fs=!0;var x=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var E={DetermineComponentFrameRoot:function(){try{if(f){var se=function(){throw Error()};if(Object.defineProperty(se.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(se,[])}catch(Ce){var we=Ce}Reflect.construct(l,[],se)}else{try{se.call()}catch(Ce){we=Ce}l.call(se.prototype)}}else{try{throw Error()}catch(Ce){we=Ce}(se=l())&&typeof se.catch=="function"&&se.catch(function(){})}}catch(Ce){if(Ce&&we&&typeof Ce.stack=="string")return[Ce.stack,we.stack]}return[null,null]}};E.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var T=Object.getOwnPropertyDescriptor(E.DetermineComponentFrameRoot,"name");T&&T.configurable&&Object.defineProperty(E.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var P=E.DetermineComponentFrameRoot(),j=P[0],re=P[1];if(j&&re){var J=j.split(`
|
|
30
|
-
`),K=re.split(`
|
|
31
|
-
`);for(T=E=0;E<J.length&&!J[E].includes("DetermineComponentFrameRoot");)E++;for(;T<K.length&&!K[T].includes("DetermineComponentFrameRoot");)T++;if(E===J.length||T===K.length)for(E=J.length-1,T=K.length-1;1<=E&&0<=T&&J[E]!==K[T];)T--;for(;1<=E&&0<=T;E--,T--)if(J[E]!==K[T]){if(E!==1||T!==1)do if(E--,T--,0>T||J[E]!==K[T]){var de=`
|
|
32
|
-
`+J[E].replace(" at new "," at ");return l.displayName&&de.includes("<anonymous>")&&(de=de.replace("<anonymous>",l.displayName)),de}while(1<=E&&0<=T);break}}}finally{fs=!1,Error.prepareStackTrace=x}return(x=l?l.displayName||l.name:"")?Pa(x):""}function hs(l){if(typeof l=="string")return Pa(l);if(typeof l=="function")return l.prototype&&l.prototype.isReactComponent?Do(l,!0):Do(l,!1);if(typeof l=="object"&&l!==null){switch(l.$$typeof){case D:return Do(l.render,!1);case R:return Do(l.type,!1);case O:var f=l,x=f._payload;f=f._init;try{l=f(x)}catch{return Pa("Lazy")}return hs(l)}if(typeof l.name=="string")return x=l.env,Pa(l.name+(x?" ["+x+"]":""))}switch(l){case S:return Pa("SuspenseList");case F:return Pa("Suspense")}return""}function wi(l){if(typeof l=="object"&&l!==null&&typeof l.environmentName=="string"){var f=l.environmentName;l=[l].slice(0),typeof l[0]=="string"?l.splice(0,1,"[%s] "+l[0]," "+f+" "):l.splice(0,0,"[%s] "," "+f+" "),l.unshift(console),f=po.apply(console.error,l),f()}else console.error(l);return null}function La(){}function gu(l,f,x,E,T,P,j,re,J,K,de){var se=new Set;this.destination=null,this.flushScheduled=!1,this.resumableState=l,this.renderState=f,this.rootFormatContext=x,this.progressiveChunkSize=E===void 0?12800:E,this.status=10,this.fatalError=null,this.pendingRootTasks=this.allPendingTasks=this.nextSegmentId=0,this.completedPreambleSegments=this.completedRootSegment=null,this.abortableTasks=se,this.pingedTasks=[],this.clientRenderedBoundaries=[],this.completedBoundaries=[],this.partialBoundaries=[],this.trackedPostpones=null,this.onError=T===void 0?wi:T,this.onPostpone=K===void 0?La:K,this.onAllReady=P===void 0?La:P,this.onShellReady=j===void 0?La:j,this.onShellError=re===void 0?La:re,this.onFatalError=J===void 0?La:J,this.formState=de===void 0?null:de}function mu(l,f,x,E,T,P,j,re,J,K,de,se){return f=new gu(f,x,E,T,P,j,re,J,K,de,se),x=fn(f,0,null,E,!1,!1),x.parentFlushed=!0,l=Ci(f,null,l,-1,null,x,null,null,f.abortableTasks,null,E,null,dl,null,!1),Gt(l),f.pingedTasks.push(l),f}var At=null;function Di(l,f){l.pingedTasks.push(f),l.pingedTasks.length===1&&(l.flushScheduled=l.destination!==null,Ia(l))}function ta(l,f,x,E){return{status:0,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,completedSegments:[],byteSize:0,fallbackAbortableTasks:f,errorDigest:null,contentState:rl(),fallbackState:rl(),contentPreamble:x,fallbackPreamble:E,trackedContentKeyPath:null,trackedFallbackNode:null}}function Ci(l,f,x,E,T,P,j,re,J,K,de,se,we,Ce,Fe){l.allPendingTasks++,T===null?l.pendingRootTasks++:T.pendingTasks++;var Se={replay:null,node:x,childIndex:E,ping:function(){return Di(l,Se)},blockedBoundary:T,blockedSegment:P,blockedPreamble:j,hoistableState:re,abortSet:J,keyPath:K,formatContext:de,context:se,treeContext:we,componentStack:Ce,thenableState:f,isFallback:Fe};return J.add(Se),Se}function xl(l,f,x,E,T,P,j,re,J,K,de,se,we,Ce){l.allPendingTasks++,P===null?l.pendingRootTasks++:P.pendingTasks++,x.pendingTasks++;var Fe={replay:x,node:E,childIndex:T,ping:function(){return Di(l,Fe)},blockedBoundary:P,blockedSegment:null,blockedPreamble:null,hoistableState:j,abortSet:re,keyPath:J,formatContext:K,context:de,treeContext:se,componentStack:we,thenableState:f,isFallback:Ce};return re.add(Fe),Fe}function fn(l,f,x,E,T,P){return{status:0,parentFlushed:!1,id:-1,index:f,chunks:[],children:[],preambleChildren:[],parentFormatContext:E,boundary:x,lastPushedText:T,textEmbedded:P}}function Gt(l){var f=l.node;if(typeof f=="object"&&f!==null)switch(f.$$typeof){case n:l.componentStack={parent:l.componentStack,type:f.type}}}function Vt(l){var f={};return l&&Object.defineProperty(f,"componentStack",{configurable:!0,enumerable:!0,get:function(){try{var x="",E=l;do x+=hs(E.type),E=E.parent;while(E);var T=x}catch(P){T=`
|
|
33
|
-
Error generating stack: `+P.message+`
|
|
34
|
-
`+P.stack}return Object.defineProperty(f,"componentStack",{value:T}),T}}),f}function pr(l,f,x){if(l=l.onError,f=l(f,x),f==null||typeof f=="string")return f}function Ei(l,f){var x=l.onShellError,E=l.onFatalError;x(f),E(f),l.destination!==null?(l.status=14,l.destination.destroy(f)):(l.status=13,l.fatalError=f)}function wl(l,f,x,E,T,P){var j=f.thenableState;for(f.thenableState=null,Xr={},$n=f,ss=l,ls=x,vi=mi=0,Ba=-1,yo=0,ea=j,l=E(T,P);un;)un=!1,vi=mi=0,Ba=-1,yo=0,Pr+=1,$e=null,l=E(T,P);return yi(),l}function ps(l,f,x,E,T,P,j){var re=!1;if(P!==0&&l.formState!==null){var J=f.blockedSegment;if(J!==null){re=!0,J=J.chunks;for(var K=0;K<P;K++)K===j?J.push("<!--F!-->"):J.push("<!--F-->")}}P=f.keyPath,f.keyPath=x,T?(x=f.treeContext,f.treeContext=hi(x,1,0),gr(l,f,E,-1),f.treeContext=x):re?gr(l,f,E,-1):wr(l,f,E,-1),f.keyPath=P}function Co(l,f,x,E,T,P){if(typeof E=="function")if(E.prototype&&E.prototype.isReactComponent){var j=T;if("ref"in T){j={};for(var re in T)re!=="ref"&&(j[re]=T[re])}var J=E.defaultProps;if(J){j===T&&(j=ie({},j,T));for(var K in J)j[K]===void 0&&(j[K]=J[K])}T=j,j=Or,J=E.contextType,typeof J=="object"&&J!==null&&(j=J._currentValue2),j=new E(T,j);var de=j.state!==void 0?j.state:null;if(j.updater=fi,j.props=T,j.state=de,J={queue:[],replace:!1},j._reactInternals=J,P=E.contextType,j.context=typeof P=="object"&&P!==null?P._currentValue2:Or,P=E.getDerivedStateFromProps,typeof P=="function"&&(P=P(T,de),de=P==null?de:ie({},de,P),j.state=de),typeof E.getDerivedStateFromProps!="function"&&typeof j.getSnapshotBeforeUpdate!="function"&&(typeof j.UNSAFE_componentWillMount=="function"||typeof j.componentWillMount=="function"))if(E=j.state,typeof j.componentWillMount=="function"&&j.componentWillMount(),typeof j.UNSAFE_componentWillMount=="function"&&j.UNSAFE_componentWillMount(),E!==j.state&&fi.enqueueReplaceState(j,j.state,null),J.queue!==null&&0<J.queue.length)if(E=J.queue,P=J.replace,J.queue=null,J.replace=!1,P&&E.length===1)j.state=E[0];else{for(J=P?E[0]:j.state,de=!0,P=P?1:0;P<E.length;P++)K=E[P],K=typeof K=="function"?K.call(j,J,T,void 0):K,K!=null&&(de?(de=!1,J=ie({},J,K)):ie(J,K));j.state=J}else J.queue=null;if(E=j.render(),l.status===12)throw null;T=f.keyPath,f.keyPath=x,wr(l,f,E,-1),f.keyPath=T}else{if(E=wl(l,f,x,E,T,void 0),l.status===12)throw null;ps(l,f,x,E,mi!==0,vi,Ba)}else if(typeof E=="string")if(j=f.blockedSegment,j===null)j=T.children,J=f.formatContext,de=f.keyPath,f.formatContext=Oe(J,E,T),f.keyPath=x,gr(l,f,j,-1),f.formatContext=J,f.keyPath=de;else{P=ir(j.chunks,E,T,l.resumableState,l.renderState,f.blockedPreamble,f.hoistableState,f.formatContext,j.lastPushedText,f.isFallback),j.lastPushedText=!1,J=f.formatContext,de=f.keyPath,f.keyPath=x,(f.formatContext=Oe(J,E,T)).insertionMode===3?(x=fn(l,0,null,f.formatContext,!1,!1),j.preambleChildren.push(x),x=Ci(l,null,P,-1,f.blockedBoundary,x,f.blockedPreamble,f.hoistableState,l.abortableTasks,f.keyPath,f.formatContext,f.context,f.treeContext,f.componentStack,f.isFallback),Gt(x),l.pingedTasks.push(x)):gr(l,f,P,-1),f.formatContext=J,f.keyPath=de;e:{switch(f=j.chunks,l=l.resumableState,E){case"title":case"style":case"script":case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break e;case"body":if(1>=J.insertionMode){l.hasBody=!0;break e}break;case"html":if(J.insertionMode===0){l.hasHtml=!0;break e}break;case"head":if(1>=J.insertionMode)break e}f.push(Rr(E))}j.lastPushedText=!1}else{switch(E){case M:case u:case h:case i:E=f.keyPath,f.keyPath=x,wr(l,f,T.children,-1),f.keyPath=E;return;case _:T.mode!=="hidden"&&(E=f.keyPath,f.keyPath=x,wr(l,f,T.children,-1),f.keyPath=E);return;case S:E=f.keyPath,f.keyPath=x,wr(l,f,T.children,-1),f.keyPath=E;return;case H:case N:throw Error(r(343));case F:e:if(f.replay!==null){E=f.keyPath,f.keyPath=x,x=T.children;try{gr(l,f,x,-1)}finally{f.keyPath=E}}else{E=f.keyPath;var se=f.blockedBoundary;P=f.blockedPreamble;var we=f.hoistableState;K=f.blockedSegment,re=T.fallback,T=T.children;var Ce=new Set,Fe=2>f.formatContext.insertionMode?ta(l,Ce,Fa(),Fa()):ta(l,Ce,null,null);l.trackedPostpones!==null&&(Fe.trackedContentKeyPath=x);var Se=fn(l,K.chunks.length,Fe,f.formatContext,!1,!1);K.children.push(Se),K.lastPushedText=!1;var qe=fn(l,0,null,f.formatContext,!1,!1);if(qe.parentFlushed=!0,l.trackedPostpones!==null){j=[x[0],"Suspense Fallback",x[2]],J=[j[1],j[2],[],null],l.trackedPostpones.workingMap.set(j,J),Fe.trackedFallbackNode=J,f.blockedSegment=Se,f.blockedPreamble=Fe.fallbackPreamble,f.keyPath=j,Se.status=6;try{gr(l,f,re,-1),ho(Se.chunks,l.renderState,Se.lastPushedText,Se.textEmbedded),Se.status=1}catch(Ke){throw Se.status=l.status===12?3:4,Ke}finally{f.blockedSegment=K,f.blockedPreamble=P,f.keyPath=E}f=Ci(l,null,T,-1,Fe,qe,Fe.contentPreamble,Fe.contentState,f.abortSet,x,f.formatContext,f.context,f.treeContext,f.componentStack,f.isFallback),Gt(f),l.pingedTasks.push(f)}else{f.blockedBoundary=Fe,f.blockedPreamble=Fe.contentPreamble,f.hoistableState=Fe.contentState,f.blockedSegment=qe,f.keyPath=x,qe.status=6;try{if(gr(l,f,T,-1),ho(qe.chunks,l.renderState,qe.lastPushedText,qe.textEmbedded),qe.status=1,Lr(Fe,qe),Fe.pendingTasks===0&&Fe.status===0){Fe.status=1,l.pendingRootTasks===0&&f.blockedPreamble&&Cr(l);break e}}catch(Ke){Fe.status=4,l.status===12?(qe.status=3,j=l.fatalError):(qe.status=4,j=Ke),J=Vt(f.componentStack),de=pr(l,j,J),Fe.errorDigest=de,Fo(l,Fe)}finally{f.blockedBoundary=se,f.blockedPreamble=P,f.hoistableState=we,f.blockedSegment=K,f.keyPath=E}f=Ci(l,null,re,-1,se,Se,Fe.fallbackPreamble,Fe.fallbackState,Ce,[x[0],"Suspense Fallback",x[2]],f.formatContext,f.context,f.treeContext,f.componentStack,!0),Gt(f),l.pingedTasks.push(f)}}return}if(typeof E=="object"&&E!==null)switch(E.$$typeof){case D:if("ref"in T)for(Fe in j={},T)Fe!=="ref"&&(j[Fe]=T[Fe]);else j=T;E=wl(l,f,x,E.render,j,P),ps(l,f,x,E,mi!==0,vi,Ba);return;case R:Co(l,f,x,E.type,T,P);return;case g:case b:if(J=T.children,j=f.keyPath,T=T.value,de=E._currentValue2,E._currentValue2=T,P=Nn,Nn=E={parent:P,depth:P===null?0:P.depth+1,context:E,parentValue:de,value:T},f.context=E,f.keyPath=x,wr(l,f,J,-1),l=Nn,l===null)throw Error(r(403));l.context._currentValue2=l.parentValue,l=Nn=l.parent,f.context=l,f.keyPath=j;return;case p:T=T.children,E=T(E._context._currentValue2),T=f.keyPath,f.keyPath=x,wr(l,f,E,-1),f.keyPath=T;return;case O:if(j=E._init,E=j(E._payload),l.status===12)throw null;Co(l,f,x,E,T,P);return}throw Error(r(130,E==null?E:typeof E,""))}}function gs(l,f,x,E,T){var P=f.replay,j=f.blockedBoundary,re=fn(l,0,null,f.formatContext,!1,!1);re.id=x,re.parentFlushed=!0;try{f.replay=null,f.blockedSegment=re,gr(l,f,E,T),re.status=1,j===null?l.completedRootSegment=re:(Lr(j,re),j.parentFlushed&&l.partialBoundaries.push(j))}finally{f.replay=P,f.blockedSegment=null}}function wr(l,f,x,E){f.replay!==null&&typeof f.replay.slots=="number"?gs(l,f,f.replay.slots,x,E):(f.node=x,f.childIndex=E,x=f.componentStack,Gt(f),Eo(l,f),f.componentStack=x)}function Eo(l,f){var x=f.node,E=f.childIndex;if(x!==null){if(typeof x=="object"){switch(x.$$typeof){case n:var T=x.type,P=x.key,j=x.props;x=j.ref;var re=x!==void 0?x:null,J=pt(T),K=P??(E===-1?0:E);if(P=[f.keyPath,J,K],f.replay!==null)e:{var de=f.replay;for(E=de.nodes,x=0;x<E.length;x++){var se=E[x];if(K===se[1]){if(se.length===4){if(J!==null&&J!==se[0])throw Error(r(490,se[0],J));var we=se[2];J=se[3],K=f.node,f.replay={nodes:we,slots:J,pendingTasks:1};try{if(Co(l,f,P,T,j,re),f.replay.pendingTasks===1&&0<f.replay.nodes.length)throw Error(r(488));f.replay.pendingTasks--}catch(xe){if(typeof xe=="object"&&xe!==null&&(xe===Rn||typeof xe.then=="function"))throw f.node===K&&(f.replay=de),xe;f.replay.pendingTasks--,j=Vt(f.componentStack),P=f.blockedBoundary,T=xe,j=pr(l,T,j),Pn(l,P,we,J,T,j)}f.replay=de}else{if(T!==F)throw Error(r(490,"Suspense",pt(T)||"Unknown"));t:{de=void 0,T=se[5],re=se[2],J=se[3],K=se[4]===null?[]:se[4][2],se=se[4]===null?null:se[4][3];var Ce=f.keyPath,Fe=f.replay,Se=f.blockedBoundary,qe=f.hoistableState,Ke=j.children,Ze=j.fallback,et=new Set;j=2>f.formatContext.insertionMode?ta(l,et,Fa(),Fa()):ta(l,et,null,null),j.parentFlushed=!0,j.rootSegmentID=T,f.blockedBoundary=j,f.hoistableState=j.contentState,f.keyPath=P,f.replay={nodes:re,slots:J,pendingTasks:1};try{if(gr(l,f,Ke,-1),f.replay.pendingTasks===1&&0<f.replay.nodes.length)throw Error(r(488));if(f.replay.pendingTasks--,j.pendingTasks===0&&j.status===0){j.status=1,l.completedBoundaries.push(j);break t}}catch(xe){j.status=4,we=Vt(f.componentStack),de=pr(l,xe,we),j.errorDigest=de,f.replay.pendingTasks--,l.clientRenderedBoundaries.push(j)}finally{f.blockedBoundary=Se,f.hoistableState=qe,f.replay=Fe,f.keyPath=Ce}f=xl(l,null,{nodes:K,slots:se,pendingTasks:0},Ze,-1,Se,j.fallbackState,et,[P[0],"Suspense Fallback",P[2]],f.formatContext,f.context,f.treeContext,f.componentStack,!0),Gt(f),l.pingedTasks.push(f)}}E.splice(x,1);break e}}}else Co(l,f,P,T,j,re);return;case a:throw Error(r(257));case O:if(we=x._init,x=we(x._payload),l.status===12)throw null;wr(l,f,x,E);return}if(Q(x)){ms(l,f,x,E);return}if(x===null||typeof x!="object"?we=null:(we=q&&x[q]||x["@@iterator"],we=typeof we=="function"?we:null),we&&(we=we.call(x))){if(x=we.next(),!x.done){j=[];do j.push(x.value),x=we.next();while(!x.done);ms(l,f,j,E)}return}if(typeof x.then=="function")return f.thenableState=null,wr(l,f,vl(x),E);if(x.$$typeof===b)return wr(l,f,x._currentValue2,E);throw E=Object.prototype.toString.call(x),Error(r(31,E==="[object Object]"?"object with keys {"+Object.keys(x).join(", ")+"}":E))}typeof x=="string"?(E=f.blockedSegment,E!==null&&(E.lastPushedText=yt(E.chunks,x,l.renderState,E.lastPushedText))):(typeof x=="number"||typeof x=="bigint")&&(E=f.blockedSegment,E!==null&&(E.lastPushedText=yt(E.chunks,""+x,l.renderState,E.lastPushedText)))}}function ms(l,f,x,E){var T=f.keyPath;if(E!==-1&&(f.keyPath=[f.keyPath,"Fragment",E],f.replay!==null)){for(var P=f.replay,j=P.nodes,re=0;re<j.length;re++){var J=j[re];if(J[1]===E){E=J[2],J=J[3],f.replay={nodes:E,slots:J,pendingTasks:1};try{if(ms(l,f,x,-1),f.replay.pendingTasks===1&&0<f.replay.nodes.length)throw Error(r(488));f.replay.pendingTasks--}catch(se){if(typeof se=="object"&&se!==null&&(se===Rn||typeof se.then=="function"))throw se;f.replay.pendingTasks--,x=Vt(f.componentStack);var K=f.blockedBoundary,de=se;x=pr(l,de,x),Pn(l,K,E,J,de,x)}f.replay=P,j.splice(re,1);break}}f.keyPath=T;return}if(P=f.treeContext,j=x.length,f.replay!==null&&(re=f.replay.slots,re!==null&&typeof re=="object")){for(E=0;E<j;E++)J=x[E],f.treeContext=hi(P,j,E),K=re[E],typeof K=="number"?(gs(l,f,K,J,E),delete re[E]):gr(l,f,J,E);f.treeContext=P,f.keyPath=T;return}for(re=0;re<j;re++)E=x[re],f.treeContext=hi(P,j,re),gr(l,f,E,re);f.treeContext=P,f.keyPath=T}function Fo(l,f){l=l.trackedPostpones,l!==null&&(f=f.trackedContentKeyPath,f!==null&&(f=l.workingMap.get(f),f!==void 0&&(f.length=4,f[2]=[],f[3]=null)))}function vs(l,f,x){return xl(l,x,f.replay,f.node,f.childIndex,f.blockedBoundary,f.hoistableState,f.abortSet,f.keyPath,f.formatContext,f.context,f.treeContext,f.componentStack,f.isFallback)}function So(l,f,x){var E=f.blockedSegment,T=fn(l,E.chunks.length,null,f.formatContext,E.lastPushedText,!0);return E.children.push(T),E.lastPushedText=!1,Ci(l,x,f.node,f.childIndex,f.blockedBoundary,T,f.blockedPreamble,f.hoistableState,f.abortSet,f.keyPath,f.formatContext,f.context,f.treeContext,f.componentStack,f.isFallback)}function gr(l,f,x,E){var T=f.formatContext,P=f.context,j=f.keyPath,re=f.treeContext,J=f.componentStack,K=f.blockedSegment;if(K===null)try{return wr(l,f,x,E)}catch(we){if(yi(),x=we===Rn?vo():we,typeof x=="object"&&x!==null){if(typeof x.then=="function"){E=Bn(),l=vs(l,f,E).ping,x.then(l,l),f.formatContext=T,f.context=P,f.keyPath=j,f.treeContext=re,f.componentStack=J,Br(P);return}if(x.message==="Maximum call stack size exceeded"){x=Bn(),x=vs(l,f,x),l.pingedTasks.push(x),f.formatContext=T,f.context=P,f.keyPath=j,f.treeContext=re,f.componentStack=J,Br(P);return}}}else{var de=K.children.length,se=K.chunks.length;try{return wr(l,f,x,E)}catch(we){if(yi(),K.children.length=de,K.chunks.length=se,x=we===Rn?vo():we,typeof x=="object"&&x!==null){if(typeof x.then=="function"){E=Bn(),l=So(l,f,E).ping,x.then(l,l),f.formatContext=T,f.context=P,f.keyPath=j,f.treeContext=re,f.componentStack=J,Br(P);return}if(x.message==="Maximum call stack size exceeded"){x=Bn(),x=So(l,f,x),l.pingedTasks.push(x),f.formatContext=T,f.context=P,f.keyPath=j,f.treeContext=re,f.componentStack=J,Br(P);return}}}}throw f.formatContext=T,f.context=P,f.keyPath=j,f.treeContext=re,Br(P),x}function Fi(l){var f=l.blockedBoundary;l=l.blockedSegment,l!==null&&(l.status=3,ki(this,f,l))}function Pn(l,f,x,E,T,P){for(var j=0;j<x.length;j++){var re=x[j];if(re.length===4)Pn(l,f,re[2],re[3],T,P);else{re=re[5];var J=l,K=P,de=ta(J,new Set,null,null);de.parentFlushed=!0,de.rootSegmentID=re,de.status=4,de.errorDigest=K,de.parentFlushed&&J.clientRenderedBoundaries.push(de)}}if(x.length=0,E!==null){if(f===null)throw Error(r(487));if(f.status!==4&&(f.status=4,f.errorDigest=P,f.parentFlushed&&l.clientRenderedBoundaries.push(f)),typeof E=="object")for(var se in E)delete E[se]}}function Si(l,f,x){var E=l.blockedBoundary,T=l.blockedSegment;if(T!==null){if(T.status===6)return;T.status=3}if(T=Vt(l.componentStack),E===null){if(f.status!==13&&f.status!==14){if(E=l.replay,E===null){pr(f,x,T),Ei(f,x);return}E.pendingTasks--,E.pendingTasks===0&&0<E.nodes.length&&(l=pr(f,x,T),Pn(f,null,E.nodes,E.slots,x,l)),f.pendingRootTasks--,f.pendingRootTasks===0&&ra(f)}}else E.pendingTasks--,E.status!==4&&(E.status=4,l=pr(f,x,T),E.status=4,E.errorDigest=l,Fo(f,E),E.parentFlushed&&f.clientRenderedBoundaries.push(E)),E.fallbackAbortableTasks.forEach(function(P){return Si(P,f,x)}),E.fallbackAbortableTasks.clear();f.allPendingTasks--,f.allPendingTasks===0&&ko(f)}function bs(l,f){try{var x=l.renderState,E=x.onHeaders;if(E){var T=x.headers;if(T){x.headers=null;var P=T.preconnects;if(T.fontPreloads&&(P&&(P+=", "),P+=T.fontPreloads),T.highImagePreloads&&(P&&(P+=", "),P+=T.highImagePreloads),!f){var j=x.styles.values(),re=j.next();e:for(;0<T.remainingCapacity&&!re.done;re=j.next())for(var J=re.value.sheets.values(),K=J.next();0<T.remainingCapacity&&!K.done;K=J.next()){var de=K.value,se=de.props,we=se.href,Ce=de.props,Fe=ln(Ce.href,"style",{crossOrigin:Ce.crossOrigin,integrity:Ce.integrity,nonce:Ce.nonce,type:Ce.type,fetchPriority:Ce.fetchPriority,referrerPolicy:Ce.referrerPolicy,media:Ce.media});if(0<=(T.remainingCapacity-=Fe.length+2))x.resets.style[we]=fr,P&&(P+=", "),P+=Fe,x.resets.style[we]=typeof se.crossOrigin=="string"||typeof se.integrity=="string"?[se.crossOrigin,se.integrity]:fr;else break e}}E(P?{Link:P}:{})}}}catch(Se){pr(l,Se,{})}}function ra(l){l.trackedPostpones===null&&bs(l,!0),l.trackedPostpones===null&&Cr(l),l.onShellError=La,l=l.onShellReady,l()}function ko(l){bs(l,l.trackedPostpones===null?!0:l.completedRootSegment===null||l.completedRootSegment.status!==5),Cr(l),l=l.onAllReady,l()}function Lr(l,f){if(f.chunks.length===0&&f.children.length===1&&f.children[0].boundary===null&&f.children[0].id===-1){var x=f.children[0];x.id=f.id,x.parentFlushed=!0,x.status===1&&Lr(l,x)}else l.completedSegments.push(f)}function ki(l,f,x){if(f===null){if(x!==null&&x.parentFlushed){if(l.completedRootSegment!==null)throw Error(r(389));l.completedRootSegment=x}l.pendingRootTasks--,l.pendingRootTasks===0&&ra(l)}else f.pendingTasks--,f.status!==4&&(f.pendingTasks===0?(f.status===0&&(f.status=1),x!==null&&x.parentFlushed&&x.status===1&&Lr(f,x),f.parentFlushed&&l.completedBoundaries.push(f),f.status===1&&(f.fallbackAbortableTasks.forEach(Fi,l),f.fallbackAbortableTasks.clear(),l.pendingRootTasks===0&&l.trackedPostpones===null&&f.contentPreamble!==null&&Cr(l))):x!==null&&x.parentFlushed&&x.status===1&&(Lr(f,x),f.completedSegments.length===1&&f.parentFlushed&&l.partialBoundaries.push(f)));l.allPendingTasks--,l.allPendingTasks===0&&ko(l)}function Ia(l){if(l.status!==14&&l.status!==13){var f=Nn,x=_n.H;_n.H=bl;var E=_n.A;_n.A=pu;var T=At;At=l;var P=xo;xo=l.resumableState;try{var j=l.pingedTasks,re;for(re=0;re<j.length;re++){var J=j[re],K=l,de=J.blockedSegment;if(de===null){var se=K;if(J.replay.pendingTasks!==0){Br(J.context);try{if(typeof J.replay.slots=="number"?gs(se,J,J.replay.slots,J.node,J.childIndex):Eo(se,J),J.replay.pendingTasks===1&&0<J.replay.nodes.length)throw Error(r(488));J.replay.pendingTasks--,J.abortSet.delete(J),ki(se,J.blockedBoundary,null)}catch(Rt){yi();var we=Rt===Rn?vo():Rt;if(typeof we=="object"&&we!==null&&typeof we.then=="function"){var Ce=J.ping;we.then(Ce,Ce),J.thenableState=Bn()}else{J.replay.pendingTasks--,J.abortSet.delete(J);var Fe=Vt(J.componentStack);K=void 0;var Se=se,qe=J.blockedBoundary,Ke=se.status===12?se.fatalError:we,Ze=J.replay.nodes,et=J.replay.slots;K=pr(Se,Ke,Fe),Pn(Se,qe,Ze,et,Ke,K),se.pendingRootTasks--,se.pendingRootTasks===0&&ra(se),se.allPendingTasks--,se.allPendingTasks===0&&ko(se)}}finally{}}}else if(se=void 0,Se=de,Se.status===0){Se.status=6,Br(J.context);var xe=Se.children.length,nt=Se.chunks.length;try{Eo(K,J),ho(Se.chunks,K.renderState,Se.lastPushedText,Se.textEmbedded),J.abortSet.delete(J),Se.status=1,ki(K,J.blockedBoundary,Se)}catch(Rt){yi(),Se.children.length=xe,Se.chunks.length=nt;var Le=Rt===Rn?vo():K.status===12?K.fatalError:Rt;if(typeof Le=="object"&&Le!==null&&typeof Le.then=="function"){Se.status=0,J.thenableState=Bn();var Nt=J.ping;Le.then(Nt,Nt)}else{var Lt=Vt(J.componentStack);J.abortSet.delete(J),Se.status=4;var ke=J.blockedBoundary;se=pr(K,Le,Lt),ke===null?Ei(K,Le):(ke.pendingTasks--,ke.status!==4&&(ke.status=4,ke.errorDigest=se,Fo(K,ke),ke.parentFlushed&&K.clientRenderedBoundaries.push(ke),K.pendingRootTasks===0&&K.trackedPostpones===null&&ke.contentPreamble!==null&&Cr(K))),K.allPendingTasks--,K.allPendingTasks===0&&ko(K)}}finally{}}}j.splice(0,re),l.destination!==null&&_i(l,l.destination)}catch(Rt){pr(l,Rt,{}),Ei(l,Rt)}finally{xo=P,_n.H=x,_n.A=E,x===bl&&Br(f),At=T}}}function To(l,f,x){f.preambleChildren.length&&x.push(f.preambleChildren);for(var E=!1,T=0;T<f.children.length;T++)E=Dr(l,f.children[T],x)||E;return E}function Dr(l,f,x){var E=f.boundary;if(E===null)return To(l,f,x);var T=E.contentPreamble,P=E.fallbackPreamble;if(T===null||P===null)return!1;switch(E.status){case 1:if(Yr(l.renderState,T),f=E.completedSegments[0],!f)throw Error(r(391));return To(l,f,x);case 5:if(l.trackedPostpones!==null)return!0;case 4:if(f.status===1)return Yr(l.renderState,P),To(l,f,x);default:return!0}}function Cr(l){if(l.completedRootSegment&&l.completedPreambleSegments===null){var f=[],x=Dr(l,l.completedRootSegment,f),E=l.renderState.preamble;(x===!1||E.headChunks&&E.bodyChunks)&&(l.completedPreambleSegments=f)}}function Zr(l,f,x,E){switch(x.parentFlushed=!0,x.status){case 0:x.id=l.nextSegmentId++;case 5:return E=x.id,x.lastPushedText=!1,x.textEmbedded=!1,l=l.renderState,f.push('<template id="'),f.push(l.placeholderPrefix),l=E.toString(16),f.push(l),f.push('"></template>');case 1:x.status=2;var T=!0,P=x.chunks,j=0;x=x.children;for(var re=0;re<x.length;re++){for(T=x[re];j<T.index;j++)f.push(P[j]);T=qr(l,f,T,E)}for(;j<P.length-1;j++)f.push(P[j]);return j<P.length&&(T=f.push(P[j])),T;default:throw Error(r(390))}}function qr(l,f,x,E){var T=x.boundary;if(T===null)return Zr(l,f,x,E);if(T.parentFlushed=!0,T.status===4){if(!l.renderState.generateStaticMarkup){var P=T.errorDigest;f.push("<!--$!-->"),f.push("<template"),P&&(f.push(' data-dgst="'),P=fe(P),f.push(P),f.push('"')),f.push("></template>")}return Zr(l,f,x,E),l.renderState.generateStaticMarkup?f=!0:((l=T.fallbackPreamble)&&$s(f,l),f=f.push("<!--/$-->")),f}if(T.status!==1)return T.status===0&&(T.rootSegmentID=l.nextSegmentId++),0<T.completedSegments.length&&l.partialBoundaries.push(T),fo(f,l.renderState,T.rootSegmentID),E&&(T=T.fallbackState,T.styles.forEach(An,E),T.stylesheets.forEach(ol,E)),Zr(l,f,x,E),f.push("<!--/$-->");if(T.byteSize>l.progressiveChunkSize)return T.rootSegmentID=l.nextSegmentId++,l.completedBoundaries.push(T),fo(f,l.renderState,T.rootSegmentID),Zr(l,f,x,E),f.push("<!--/$-->");if(E&&(x=T.contentState,x.styles.forEach(An,E),x.stylesheets.forEach(ol,E)),l.renderState.generateStaticMarkup||f.push("<!--$-->"),x=T.completedSegments,x.length!==1)throw Error(r(391));return qr(l,f,x[0],E),l.renderState.generateStaticMarkup?f=!0:((l=T.contentPreamble)&&$s(f,l),f=f.push("<!--/$-->")),f}function Ti(l,f,x,E){return el(f,l.renderState,x.parentFormatContext,x.id),qr(l,f,x,E),ou(f,x.parentFormatContext)}function na(l,f,x){for(var E=x.completedSegments,T=0;T<E.length;T++)ys(l,f,x,E[T]);E.length=0,ci(f,x.contentState,l.renderState),E=l.resumableState,l=l.renderState,T=x.rootSegmentID,x=x.contentState;var P=l.stylesToHoist;return l.stylesToHoist=!1,f.push(l.startInlineScript),P?(E.instructions&2)===0?(E.instructions|=10,f.push(`$RC=function(b,c,e){c=document.getElementById(c);c.parentNode.removeChild(c);var a=document.getElementById(b);if(a){b=a.previousSibling;if(e)b.data="$!",a.setAttribute("data-dgst",e);else{e=b.parentNode;a=b.nextSibling;var f=0;do{if(a&&8===a.nodeType){var d=a.data;if("/$"===d)if(0===f)break;else f--;else"$"!==d&&"$?"!==d&&"$!"!==d||f++}d=a.nextSibling;e.removeChild(a);a=d}while(a);for(;c.firstChild;)e.insertBefore(c.firstChild,a);b.data="$"}b._reactRetry&&b._reactRetry()}};$RM=new Map;
|
|
35
|
-
$RR=function(t,u,y){function v(n){this._p=null;n()}for(var w=$RC,p=$RM,q=new Map,r=document,g,b,h=r.querySelectorAll("link[data-precedence],style[data-precedence]"),x=[],k=0;b=h[k++];)"not all"===b.getAttribute("media")?x.push(b):("LINK"===b.tagName&&p.set(b.getAttribute("href"),b),q.set(b.dataset.precedence,g=b));b=0;h=[];var l,a;for(k=!0;;){if(k){var e=y[b++];if(!e){k=!1;b=0;continue}var c=!1,m=0;var d=e[m++];if(a=p.get(d)){var f=a._p;c=!0}else{a=r.createElement("link");a.href=
|
|
36
|
-
d;a.rel="stylesheet";for(a.dataset.precedence=l=e[m++];f=e[m++];)a.setAttribute(f,e[m++]);f=a._p=new Promise(function(n,z){a.onload=v.bind(a,n);a.onerror=v.bind(a,z)});p.set(d,a)}d=a.getAttribute("media");!f||d&&!matchMedia(d).matches||h.push(f);if(c)continue}else{a=x[b++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=q.get(l)||g;c===g&&(g=a);q.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=r.head,c.insertBefore(a,c.firstChild))}Promise.all(h).then(w.bind(null,
|
|
37
|
-
t,u,""),w.bind(null,t,u,"Resource failed to load"))};$RR("`)):(E.instructions&8)===0?(E.instructions|=8,f.push(`$RM=new Map;
|
|
38
|
-
$RR=function(t,u,y){function v(n){this._p=null;n()}for(var w=$RC,p=$RM,q=new Map,r=document,g,b,h=r.querySelectorAll("link[data-precedence],style[data-precedence]"),x=[],k=0;b=h[k++];)"not all"===b.getAttribute("media")?x.push(b):("LINK"===b.tagName&&p.set(b.getAttribute("href"),b),q.set(b.dataset.precedence,g=b));b=0;h=[];var l,a;for(k=!0;;){if(k){var e=y[b++];if(!e){k=!1;b=0;continue}var c=!1,m=0;var d=e[m++];if(a=p.get(d)){var f=a._p;c=!0}else{a=r.createElement("link");a.href=
|
|
39
|
-
d;a.rel="stylesheet";for(a.dataset.precedence=l=e[m++];f=e[m++];)a.setAttribute(f,e[m++]);f=a._p=new Promise(function(n,z){a.onload=v.bind(a,n);a.onerror=v.bind(a,z)});p.set(d,a)}d=a.getAttribute("media");!f||d&&!matchMedia(d).matches||h.push(f);if(c)continue}else{a=x[b++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=q.get(l)||g;c===g&&(g=a);q.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=r.head,c.insertBefore(a,c.firstChild))}Promise.all(h).then(w.bind(null,
|
|
40
|
-
t,u,""),w.bind(null,t,u,"Resource failed to load"))};$RR("`)):f.push('$RR("'):(E.instructions&2)===0?(E.instructions|=2,f.push('$RC=function(b,c,e){c=document.getElementById(c);c.parentNode.removeChild(c);var a=document.getElementById(b);if(a){b=a.previousSibling;if(e)b.data="$!",a.setAttribute("data-dgst",e);else{e=b.parentNode;a=b.nextSibling;var f=0;do{if(a&&8===a.nodeType){var d=a.data;if("/$"===d)if(0===f)break;else f--;else"$"!==d&&"$?"!==d&&"$!"!==d||f++}d=a.nextSibling;e.removeChild(a);a=d}while(a);for(;c.firstChild;)e.insertBefore(c.firstChild,a);b.data="$"}b._reactRetry&&b._reactRetry()}};$RC("')):f.push('$RC("'),E=T.toString(16),f.push(l.boundaryPrefix),f.push(E),f.push('","'),f.push(l.segmentPrefix),f.push(E),P?(f.push('",'),Aa(f,x)):f.push('"'),x=f.push(")<\/script>"),es(f,l)&&x}function ys(l,f,x,E){if(E.status===2)return!0;var T=x.contentState,P=E.id;if(P===-1){if((E.id=x.rootSegmentID)===-1)throw Error(r(392));return Ti(l,f,E,T)}return P===x.rootSegmentID?Ti(l,f,E,T):(Ti(l,f,E,T),x=l.resumableState,l=l.renderState,f.push(l.startInlineScript),(x.instructions&1)===0?(x.instructions|=1,f.push('$RS=function(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("')):f.push('$RS("'),f.push(l.segmentPrefix),P=P.toString(16),f.push(P),f.push('","'),f.push(l.placeholderPrefix),f.push(P),f=f.push('")<\/script>'),f)}function _i(l,f){try{if(!(0<l.pendingRootTasks)){var x,E=l.completedRootSegment;if(E!==null){if(E.status===5)return;var T=l.completedPreambleSegments;if(T===null)return;var P=l.renderState,j=P.preamble,re=j.htmlChunks,J=j.headChunks,K;if(re){for(K=0;K<re.length;K++)f.push(re[K]);if(J)for(K=0;K<J.length;K++)f.push(J[K]);else{var de=at("head");f.push(de),f.push(">")}}else if(J)for(K=0;K<J.length;K++)f.push(J[K]);var se=P.charsetChunks;for(K=0;K<se.length;K++)f.push(se[K]);se.length=0,P.preconnects.forEach(or,f),P.preconnects.clear();var we=P.viewportChunks;for(K=0;K<we.length;K++)f.push(we[K]);we.length=0,P.fontPreloads.forEach(or,f),P.fontPreloads.clear(),P.highImagePreloads.forEach(or,f),P.highImagePreloads.clear(),P.styles.forEach(rs,f);var Ce=P.importMapChunks;for(K=0;K<Ce.length;K++)f.push(Ce[K]);Ce.length=0,P.bootstrapScripts.forEach(or,f),P.scripts.forEach(or,f),P.scripts.clear(),P.bulkPreloads.forEach(or,f),P.bulkPreloads.clear();var Fe=P.hoistableChunks;for(K=0;K<Fe.length;K++)f.push(Fe[K]);for(P=Fe.length=0;P<T.length;P++){var Se=T[P];for(j=0;j<Se.length;j++)qr(l,f,Se[j],null)}var qe=l.renderState.preamble,Ke=qe.headChunks;if(qe.htmlChunks||Ke){var Ze=Rr("head");f.push(Ze)}var et=qe.bodyChunks;if(et)for(T=0;T<et.length;T++)f.push(et[T]);qr(l,f,E,null),l.completedRootSegment=null,es(f,l.renderState)}var xe=l.renderState;E=0;var nt=xe.viewportChunks;for(E=0;E<nt.length;E++)f.push(nt[E]);nt.length=0,xe.preconnects.forEach(or,f),xe.preconnects.clear(),xe.fontPreloads.forEach(or,f),xe.fontPreloads.clear(),xe.highImagePreloads.forEach(or,f),xe.highImagePreloads.clear(),xe.styles.forEach(Wt,f),xe.scripts.forEach(or,f),xe.scripts.clear(),xe.bulkPreloads.forEach(or,f),xe.bulkPreloads.clear();var Le=xe.hoistableChunks;for(E=0;E<Le.length;E++)f.push(Le[E]);Le.length=0;var Nt=l.clientRenderedBoundaries;for(x=0;x<Nt.length;x++){var Lt=Nt[x];xe=f;var ke=l.resumableState,Rt=l.renderState,Ln=Lt.rootSegmentID,It=Lt.errorDigest;xe.push(Rt.startInlineScript),(ke.instructions&4)===0?(ke.instructions|=4,xe.push('$RX=function(b,c,d,e,f){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),f&&(a.cstck=f),b._reactRetry&&b._reactRetry())};;$RX("')):xe.push('$RX("'),xe.push(Rt.boundaryPrefix);var pn=Ln.toString(16);if(xe.push(pn),xe.push('"'),It){xe.push(",");var Kt=bt(It||"");xe.push(Kt)}var Ct=xe.push(")<\/script>");if(!Ct){l.destination=null,x++,Nt.splice(0,x);return}}Nt.splice(0,x);var Ot=l.completedBoundaries;for(x=0;x<Ot.length;x++)if(!na(l,f,Ot[x])){l.destination=null,x++,Ot.splice(0,x);return}Ot.splice(0,x);var Yt=l.partialBoundaries;for(x=0;x<Yt.length;x++){var Ir=Yt[x];e:{Nt=l,Lt=f;var Jt=Ir.completedSegments;for(Ct=0;Ct<Jt.length;Ct++)if(!ys(Nt,Lt,Ir,Jt[Ct])){Ct++,Jt.splice(0,Ct);var In=!1;break e}Jt.splice(0,Ct),In=ci(Lt,Ir.contentState,Nt.renderState)}if(!In){l.destination=null,x++,Yt.splice(0,x);return}}Yt.splice(0,x);var gn=l.completedBoundaries;for(x=0;x<gn.length;x++)if(!na(l,f,gn[x])){l.destination=null,x++,gn.splice(0,x);return}gn.splice(0,x)}}finally{l.allPendingTasks===0&&l.pingedTasks.length===0&&l.clientRenderedBoundaries.length===0&&l.completedBoundaries.length===0&&(l.flushScheduled=!1,x=l.resumableState,x.hasBody&&(Yt=Rr("body"),f.push(Yt)),x.hasHtml&&(x=Rr("html"),f.push(x)),l.status=14,f.push(null),l.destination=null)}}function hn(l){if(l.flushScheduled===!1&&l.pingedTasks.length===0&&l.destination!==null){l.flushScheduled=!0;var f=l.destination;f?_i(l,f):l.flushScheduled=!1}}function Ai(l,f){if(l.status===13)l.status=14,f.destroy(l.fatalError);else if(l.status!==14&&l.destination===null){l.destination=f;try{_i(l,f)}catch(x){pr(l,x,{}),Ei(l,x)}}}function Kr(l,f){(l.status===11||l.status===10)&&(l.status=12);try{var x=l.abortableTasks;if(0<x.size){var E=f===void 0?Error(r(432)):typeof f=="object"&&f!==null&&typeof f.then=="function"?Error(r(530)):f;l.fatalError=E,x.forEach(function(T){return Si(T,l,E)}),x.clear()}l.destination!==null&&_i(l,l.destination)}catch(T){pr(l,T,{}),Ei(l,T)}}function xs(){}function Qr(l,f,x,E){var T=!1,P=null,j="",re=!1;if(f=Vr(f?f.identifierPrefix:void 0),l=mu(l,f,as(f,x),We(0,null,0),1/0,xs,void 0,function(){re=!0},void 0,void 0,void 0),l.flushScheduled=l.destination!==null,Ia(l),l.status===10&&(l.status=11),l.trackedPostpones===null&&bs(l,l.pendingRootTasks===0),Kr(l,E),Ai(l,{push:function(J){return J!==null&&(j+=J),!0},destroy:function(J){T=!0,P=J}}),T&&P!==E)throw P;if(!re)throw Error(r(426));return j}return Ol.renderToStaticMarkup=function(l,f){return Qr(l,f,!0,'The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},Ol.renderToString=function(l,f){return Qr(l,f,!1,'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},Ol.version="19.1.1",Ol}var Bl={};/**
|
|
41
|
-
* @license React
|
|
42
|
-
* react-dom-server.browser.production.js
|
|
43
|
-
*
|
|
44
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
45
|
-
*
|
|
46
|
-
* This source code is licensed under the MIT license found in the
|
|
47
|
-
* LICENSE file in the root directory of this source tree.
|
|
48
|
-
*/var Lp;function Ry(){if(Lp)return Bl;Lp=1;var e=I,t=Yn;function r(s){var c="https://react.dev/errors/"+s;if(1<arguments.length){c+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)c+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+s+"; visit "+c+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),h=Symbol.for("react.profiler"),g=Symbol.for("react.provider"),p=Symbol.for("react.consumer"),b=Symbol.for("react.context"),D=Symbol.for("react.forward_ref"),F=Symbol.for("react.suspense"),S=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),N=Symbol.for("react.scope"),_=Symbol.for("react.activity"),M=Symbol.for("react.legacy_hidden"),U=Symbol.for("react.memo_cache_sentinel"),H=Symbol.for("react.view_transition"),q=Symbol.iterator,Q=Array.isArray;function Y(s,c){var v=s.length&3,C=s.length-v,k=c;for(c=0;c<C;){var B=s.charCodeAt(c)&255|(s.charCodeAt(++c)&255)<<8|(s.charCodeAt(++c)&255)<<16|(s.charCodeAt(++c)&255)<<24;++c,B=3432918353*(B&65535)+((3432918353*(B>>>16)&65535)<<16)&4294967295,B=B<<15|B>>>17,B=461845907*(B&65535)+((461845907*(B>>>16)&65535)<<16)&4294967295,k^=B,k=k<<13|k>>>19,k=5*(k&65535)+((5*(k>>>16)&65535)<<16)&4294967295,k=(k&65535)+27492+(((k>>>16)+58964&65535)<<16)}switch(B=0,v){case 3:B^=(s.charCodeAt(c+2)&255)<<16;case 2:B^=(s.charCodeAt(c+1)&255)<<8;case 1:B^=s.charCodeAt(c)&255,B=3432918353*(B&65535)+((3432918353*(B>>>16)&65535)<<16)&4294967295,B=B<<15|B>>>17,k^=461845907*(B&65535)+((461845907*(B>>>16)&65535)<<16)&4294967295}return k^=s.length,k^=k>>>16,k=2246822507*(k&65535)+((2246822507*(k>>>16)&65535)<<16)&4294967295,k^=k>>>13,k=3266489909*(k&65535)+((3266489909*(k>>>16)&65535)<<16)&4294967295,(k^k>>>16)>>>0}var ie=new MessageChannel,ee=[];ie.port1.onmessage=function(){var s=ee.shift();s&&s()};function ve(s){ee.push(s),ie.port2.postMessage(null)}function ge(s){setTimeout(function(){throw s})}var Ie=Promise,Ae=typeof queueMicrotask=="function"?queueMicrotask:function(s){Ie.resolve(null).then(s).catch(ge)},Ge=null,Ue=0;function te(s,c){if(c.byteLength!==0)if(2048<c.byteLength)0<Ue&&(s.enqueue(new Uint8Array(Ge.buffer,0,Ue)),Ge=new Uint8Array(2048),Ue=0),s.enqueue(c);else{var v=Ge.length-Ue;v<c.byteLength&&(v===0?s.enqueue(Ge):(Ge.set(c.subarray(0,v),Ue),s.enqueue(Ge),c=c.subarray(v)),Ge=new Uint8Array(2048),Ue=0),Ge.set(c,Ue),Ue+=c.byteLength}}function fe(s,c){return te(s,c),!0}function Ea(s){Ge&&0<Ue&&(s.enqueue(new Uint8Array(Ge.buffer,0,Ue)),Ge=null,Ue=0)}var so=new TextEncoder;function le(s){return so.encode(s)}function ne(s){return so.encode(s)}function _n(s,c){typeof s.error=="function"?s.error(c):s.close()}var qt=Object.assign,rt=Object.prototype.hasOwnProperty,on=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),fr={},lo={};function rr(s){return rt.call(lo,s)?!0:rt.call(fr,s)?!1:on.test(s)?lo[s]=!0:(fr[s]=!0,!1)}var Vr=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" ")),Fa=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),We=/["'&<>]/;function Oe(s){if(typeof s=="boolean"||typeof s=="number"||typeof s=="bigint")return""+s;s=""+s;var c=We.exec(s);if(c){var v="",C,k=0;for(C=c.index;C<s.length;C++){switch(s.charCodeAt(C)){case 34:c=""";break;case 38:c="&";break;case 39:c="'";break;case 60:c="<";break;case 62:c=">";break;default:continue}k!==C&&(v+=s.slice(k,C)),k=C+1,v+=c}s=k!==C?v+s.slice(k,C):v}return s}var qs=/([A-Z])/g,Zo=/^ms-/,Sa=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function vt(s){return Sa.test(""+s)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":s}var Ar=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,uo=t.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Ks={pending:!1,data:null,method:null,action:null},Ye=uo.d;uo.d={f:Ye.f,r:Ye.r,D:bs,C:ra,L:ko,m:Lr,X:Ia,S:ki,M:To};var Xe=[];ne('"></template>');var De=ne("<script>"),nr=ne("<\/script>"),ka=ne('<script src="'),si=ne('<script type="module" src="'),_t=ne('" nonce="'),qo=ne('" integrity="'),Ko=ne('" crossorigin="'),Kn=ne('" async=""><\/script>'),ar=/(<\/|<)(s)(cript)/gi;function Ta(s,c,v,C){return""+c+(v==="s"?"\\u0073":"\\u0053")+C}var Qo=ne('<script type="importmap">'),co=ne("<\/script>");function Qs(s,c,v,C,k,B){var z=c===void 0?De:ne('<script nonce="'+Oe(c)+'">'),X=s.idPrefix;v=[];var W=s.bootstrapScriptContent,V=s.bootstrapScripts,oe=s.bootstrapModules;if(W!==void 0&&v.push(z,le((""+W).replace(ar,Ta)),nr),W=[],C!==void 0&&(W.push(Qo),W.push(le((""+JSON.stringify(C)).replace(ar,Ta))),W.push(co)),C=k?{preconnects:"",fontPreloads:"",highImagePreloads:"",remainingCapacity:2+(typeof B=="number"?B:2e3)}:null,k={placeholderPrefix:ne(X+"P:"),segmentPrefix:ne(X+"S:"),boundaryPrefix:ne(X+"B:"),startInlineScript:z,preamble:at(),externalRuntimeScript:null,bootstrapChunks:v,importMapChunks:W,onHeaders:k,headers:C,resets:{font:{},dns:{},connect:{default:{},anonymous:{},credentials:{}},image:{},style:{}},charsetChunks:[],viewportChunks:[],hoistableChunks:[],preconnects:new Set,fontPreloads:new Set,highImagePreloads:new Set,styles:new Map,bootstrapScripts:new Set,scripts:new Set,bulkPreloads:new Set,preloads:{images:new Map,stylesheets:new Map,scripts:new Map,moduleScripts:new Map},nonce:c,hoistableState:null,stylesToHoist:!1},V!==void 0)for(C=0;C<V.length;C++){var ae=V[C];X=z=void 0,W={rel:"preload",as:"script",fetchPriority:"low",nonce:c},typeof ae=="string"?W.href=B=ae:(W.href=B=ae.src,W.integrity=X=typeof ae.integrity=="string"?ae.integrity:void 0,W.crossOrigin=z=typeof ae=="string"||ae.crossOrigin==null?void 0:ae.crossOrigin==="use-credentials"?"use-credentials":""),ae=s;var pe=B;ae.scriptResources[pe]=null,ae.moduleScriptResources[pe]=null,ae=[],Pt(ae,W),k.bootstrapScripts.add(ae),v.push(ka,le(Oe(B))),c&&v.push(_t,le(Oe(c))),typeof X=="string"&&v.push(qo,le(Oe(X))),typeof z=="string"&&v.push(Ko,le(Oe(z))),v.push(Kn)}if(oe!==void 0)for(V=0;V<oe.length;V++)W=oe[V],z=B=void 0,X={rel:"modulepreload",fetchPriority:"low",nonce:c},typeof W=="string"?X.href=C=W:(X.href=C=W.src,X.integrity=z=typeof W.integrity=="string"?W.integrity:void 0,X.crossOrigin=B=typeof W=="string"||W.crossOrigin==null?void 0:W.crossOrigin==="use-credentials"?"use-credentials":""),W=s,ae=C,W.scriptResources[ae]=null,W.moduleScriptResources[ae]=null,W=[],Pt(W,X),k.bootstrapScripts.add(W),v.push(si,le(Oe(C))),c&&v.push(_t,le(Oe(c))),typeof z=="string"&&v.push(qo,le(Oe(z))),typeof B=="string"&&v.push(Ko,le(Oe(B))),v.push(Kn);return k}function Nr(s,c,v,C,k){return{idPrefix:s===void 0?"":s,nextFormID:0,streamingFormat:0,bootstrapScriptContent:v,bootstrapScripts:C,bootstrapModules:k,instructions:0,hasBody:!1,hasHtml:!1,unknownResources:{},dnsResources:{},connectResources:{default:{},anonymous:{},credentials:{}},imageResources:{},styleResources:{},scriptResources:{},moduleUnknownResources:{},moduleScriptResources:{}}}function at(){return{htmlChunks:null,headChunks:null,bodyChunks:null,contribution:0}}function ir(s,c,v){return{insertionMode:s,selectedValue:c,tagScope:v}}function $o(s){return ir(s==="http://www.w3.org/2000/svg"?4:s==="http://www.w3.org/1998/Math/MathML"?5:0,null,0)}function Rr(s,c,v){switch(c){case"noscript":return ir(2,null,s.tagScope|1);case"select":return ir(2,v.value!=null?v.value:v.defaultValue,s.tagScope);case"svg":return ir(4,null,s.tagScope);case"picture":return ir(2,null,s.tagScope|2);case"math":return ir(5,null,s.tagScope);case"foreignObject":return ir(2,null,s.tagScope);case"table":return ir(6,null,s.tagScope);case"thead":case"tbody":case"tfoot":return ir(7,null,s.tagScope);case"colgroup":return ir(9,null,s.tagScope);case"tr":return ir(8,null,s.tagScope);case"head":if(2>s.insertionMode)return ir(3,null,s.tagScope);break;case"html":if(s.insertionMode===0)return ir(1,null,s.tagScope)}return 6<=s.insertionMode||2>s.insertionMode?ir(2,null,s.tagScope):s}var Yr=ne("<!-- -->");function es(s,c,v,C){return c===""?C:(C&&s.push(Yr),s.push(le(Oe(c))),!0)}var fo=new Map,$s=ne(' style="'),el=ne(":"),ou=ne(";");function li(s,c){if(typeof c!="object")throw Error(r(62));var v=!0,C;for(C in c)if(rt.call(c,C)){var k=c[C];if(k!=null&&typeof k!="boolean"&&k!==""){if(C.indexOf("--")===0){var B=le(Oe(C));k=le(Oe((""+k).trim()))}else B=fo.get(C),B===void 0&&(B=ne(Oe(C.replace(qs,"-$1").toLowerCase().replace(Zo,"-ms-"))),fo.set(C,B)),k=typeof k=="number"?k===0||Vr.has(C)?le(""+k):le(k+"px"):le(Oe((""+k).trim()));v?(v=!1,s.push($s,B,el,k)):s.push(ou,B,el,k)}}v||s.push(Bt)}var bt=ne(" "),lt=ne('="'),Bt=ne('"'),_a=ne('=""');function ui(s,c,v){v&&typeof v!="function"&&typeof v!="symbol"&&s.push(bt,le(c),_a)}function Ut(s,c,v){typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"&&s.push(bt,le(c),lt,le(Oe(v)),Bt)}var tl=ne(Oe("javascript:throw new Error('React form unexpectedly submitted.')")),ci=ne('<input type="hidden"');function or(s,c){this.push(ci),Jr(s),Ut(this,"name",c),Ut(this,"value",s),this.push(Aa)}function Jr(s){if(typeof s!="string")throw Error(r(480))}function ts(s,c){if(typeof c.$$FORM_ACTION=="function"){var v=s.nextFormID++;s=s.idPrefix+v;try{var C=c.$$FORM_ACTION(s);if(C){var k=C.data;k?.forEach(Jr)}return C}catch(B){if(typeof B=="object"&&B!==null&&typeof B.then=="function")throw B}}return null}function rs(s,c,v,C,k,B,z,X){var W=null;if(typeof C=="function"){var V=ts(c,C);V!==null?(X=V.name,C=V.action||"",k=V.encType,B=V.method,z=V.target,W=V.data):(s.push(bt,le("formAction"),lt,tl,Bt),z=B=k=C=X=null,nl(c,v))}return X!=null&&Ve(s,"name",X),C!=null&&Ve(s,"formAction",C),k!=null&&Ve(s,"formEncType",k),B!=null&&Ve(s,"formMethod",B),z!=null&&Ve(s,"formTarget",z),W}function Ve(s,c,v){switch(c){case"className":Ut(s,"class",v);break;case"tabIndex":Ut(s,"tabindex",v);break;case"dir":case"role":case"viewBox":case"width":case"height":Ut(s,c,v);break;case"style":li(s,v);break;case"src":case"href":if(v==="")break;case"action":case"formAction":if(v==null||typeof v=="function"||typeof v=="symbol"||typeof v=="boolean")break;v=vt(""+v),s.push(bt,le(c),lt,le(Oe(v)),Bt);break;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"ref":break;case"autoFocus":case"multiple":case"muted":ui(s,c.toLowerCase(),v);break;case"xlinkHref":if(typeof v=="function"||typeof v=="symbol"||typeof v=="boolean")break;v=vt(""+v),s.push(bt,le("xlink:href"),lt,le(Oe(v)),Bt);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":typeof v!="function"&&typeof v!="symbol"&&s.push(bt,le(c),lt,le(Oe(v)),Bt);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":v&&typeof v!="function"&&typeof v!="symbol"&&s.push(bt,le(c),_a);break;case"capture":case"download":v===!0?s.push(bt,le(c),_a):v!==!1&&typeof v!="function"&&typeof v!="symbol"&&s.push(bt,le(c),lt,le(Oe(v)),Bt);break;case"cols":case"rows":case"size":case"span":typeof v!="function"&&typeof v!="symbol"&&!isNaN(v)&&1<=v&&s.push(bt,le(c),lt,le(Oe(v)),Bt);break;case"rowSpan":case"start":typeof v=="function"||typeof v=="symbol"||isNaN(v)||s.push(bt,le(c),lt,le(Oe(v)),Bt);break;case"xlinkActuate":Ut(s,"xlink:actuate",v);break;case"xlinkArcrole":Ut(s,"xlink:arcrole",v);break;case"xlinkRole":Ut(s,"xlink:role",v);break;case"xlinkShow":Ut(s,"xlink:show",v);break;case"xlinkTitle":Ut(s,"xlink:title",v);break;case"xlinkType":Ut(s,"xlink:type",v);break;case"xmlBase":Ut(s,"xml:base",v);break;case"xmlLang":Ut(s,"xml:lang",v);break;case"xmlSpace":Ut(s,"xml:space",v);break;default:if((!(2<c.length)||c[0]!=="o"&&c[0]!=="O"||c[1]!=="n"&&c[1]!=="N")&&(c=Fa.get(c)||c,rr(c))){switch(typeof v){case"function":case"symbol":return;case"boolean":var C=c.toLowerCase().slice(0,5);if(C!=="data-"&&C!=="aria-")return}s.push(bt,le(c),lt,le(Oe(v)),Bt)}}}var Wt=ne(">"),Aa=ne("/>");function hr(s,c,v){if(c!=null){if(v!=null)throw Error(r(60));if(typeof c!="object"||!("__html"in c))throw Error(r(61));c=c.__html,c!=null&&s.push(le(""+c))}}function rl(s){var c="";return e.Children.forEach(s,function(v){v!=null&&(c+=v)}),c}var ns=ne(' selected=""'),su=ne(`addEventListener("submit",function(a){if(!a.defaultPrevented){var c=a.target,d=a.submitter,e=c.action,b=d;if(d){var f=d.getAttribute("formAction");null!=f&&(e=f,b=null)}"javascript:throw new Error('React form unexpectedly submitted.')"===e&&(a.preventDefault(),b?(a=document.createElement("input"),a.name=b.name,a.value=b.value,b.parentNode.insertBefore(a,b),b=new FormData(c),a.parentNode.removeChild(a)):b=new FormData(c),a=c.ownerDocument||c,(a.$$reactFormReplay=a.$$reactFormReplay||[]).push(c,d,b))}});`);function nl(s,c){(s.instructions&16)===0&&(s.instructions|=16,c.bootstrapChunks.unshift(c.startInlineScript,su,nr))}var al=ne("<!--F!-->"),lu=ne("<!--F-->");function Pt(s,c){s.push(yt("link"));for(var v in c)if(rt.call(c,v)){var C=c[v];if(C!=null)switch(v){case"children":case"dangerouslySetInnerHTML":throw Error(r(399,"link"));default:Ve(s,v,C)}}return s.push(Aa),null}var il=/(<\/|<)(s)(tyle)/gi;function sn(s,c,v,C){return""+c+(v==="s"?"\\73 ":"\\53 ")+C}function ln(s,c,v){s.push(yt(v));for(var C in c)if(rt.call(c,C)){var k=c[C];if(k!=null)switch(C){case"children":case"dangerouslySetInnerHTML":throw Error(r(399,v));default:Ve(s,C,k)}}return s.push(Aa),null}function di(s,c){s.push(yt("title"));var v=null,C=null,k;for(k in c)if(rt.call(c,k)){var B=c[k];if(B!=null)switch(k){case"children":v=B;break;case"dangerouslySetInnerHTML":C=B;break;default:Ve(s,k,B)}}return s.push(Wt),c=Array.isArray(v)?2>v.length?v[0]:null:v,typeof c!="function"&&typeof c!="symbol"&&c!==null&&c!==void 0&&s.push(le(Oe(""+c))),hr(s,C,v),s.push(pt("title")),null}function Na(s,c){s.push(yt("script"));var v=null,C=null,k;for(k in c)if(rt.call(c,k)){var B=c[k];if(B!=null)switch(k){case"children":v=B;break;case"dangerouslySetInnerHTML":C=B;break;default:Ve(s,k,B)}}return s.push(Wt),hr(s,C,v),typeof v=="string"&&s.push(le((""+v).replace(ar,Ta))),s.push(pt("script")),null}function Ra(s,c,v){s.push(yt(v));var C=v=null,k;for(k in c)if(rt.call(c,k)){var B=c[k];if(B!=null)switch(k){case"children":v=B;break;case"dangerouslySetInnerHTML":C=B;break;default:Ve(s,k,B)}}return s.push(Wt),hr(s,C,v),v}function Oa(s,c,v){s.push(yt(v));var C=v=null,k;for(k in c)if(rt.call(c,k)){var B=c[k];if(B!=null)switch(k){case"children":v=B;break;case"dangerouslySetInnerHTML":C=B;break;default:Ve(s,k,B)}}return s.push(Wt),hr(s,C,v),typeof v=="string"?(s.push(le(Oe(v))),null):v}var An=ne(`
|
|
49
|
-
`),ol=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,as=new Map;function yt(s){var c=as.get(s);if(c===void 0){if(!ol.test(s))throw Error(r(65,s));c=ne("<"+s),as.set(s,c)}return c}var ho=ne("<!DOCTYPE html>");function po(s,c,v,C,k,B,z,X,W,V){switch(c){case"div":case"span":case"svg":case"path":break;case"a":s.push(yt("a"));var oe=null,ae=null,pe;for(pe in v)if(rt.call(v,pe)){var me=v[pe];if(me!=null)switch(pe){case"children":oe=me;break;case"dangerouslySetInnerHTML":ae=me;break;case"href":me===""?Ut(s,"href",""):Ve(s,pe,me);break;default:Ve(s,pe,me)}}if(s.push(Wt),hr(s,ae,oe),typeof oe=="string"){s.push(le(Oe(oe)));var Ee=null}else Ee=oe;return Ee;case"g":case"p":case"li":break;case"select":s.push(yt("select"));var _e=null,Je=null,ct;for(ct in v)if(rt.call(v,ct)){var je=v[ct];if(je!=null)switch(ct){case"children":_e=je;break;case"dangerouslySetInnerHTML":Je=je;break;case"defaultValue":case"value":break;default:Ve(s,ct,je)}}return s.push(Wt),hr(s,Je,_e),_e;case"option":var He=X.selectedValue;s.push(yt("option"));var dt=null,lr=null,Mt=null,Cn=null,kr;for(kr in v)if(rt.call(v,kr)){var Ft=v[kr];if(Ft!=null)switch(kr){case"children":dt=Ft;break;case"selected":Mt=Ft;break;case"dangerouslySetInnerHTML":Cn=Ft;break;case"value":lr=Ft;default:Ve(s,kr,Ft)}}if(He!=null){var xt=lr!==null?""+lr:rl(dt);if(Q(He)){for(var ot=0;ot<He.length;ot++)if(""+He[ot]===xt){s.push(ns);break}}else""+He===xt&&s.push(ns)}else Mt&&s.push(ns);return s.push(Wt),hr(s,Cn,dt),dt;case"textarea":s.push(yt("textarea"));var zt=null,Va=null,En=null,Gn;for(Gn in v)if(rt.call(v,Gn)){var Vn=v[Gn];if(Vn!=null)switch(Gn){case"children":En=Vn;break;case"value":zt=Vn;break;case"defaultValue":Va=Vn;break;case"dangerouslySetInnerHTML":throw Error(r(91));default:Ve(s,Gn,Vn)}}if(zt===null&&Va!==null&&(zt=Va),s.push(Wt),En!=null){if(zt!=null)throw Error(r(92));if(Q(En)){if(1<En.length)throw Error(r(93));zt=""+En[0]}zt=""+En}return typeof zt=="string"&&zt[0]===`
|
|
50
|
-
`&&s.push(An),zt!==null&&s.push(le(Oe(""+zt))),null;case"input":s.push(yt("input"));var St=null,Pc=null,Lc=null,Ic=null,vu=null,Fl=null,bu=null,Ss=null,yu=null,No;for(No in v)if(rt.call(v,No)){var Fn=v[No];if(Fn!=null)switch(No){case"children":case"dangerouslySetInnerHTML":throw Error(r(399,"input"));case"name":St=Fn;break;case"formAction":Pc=Fn;break;case"formEncType":Lc=Fn;break;case"formMethod":Ic=Fn;break;case"formTarget":vu=Fn;break;case"defaultChecked":yu=Fn;break;case"defaultValue":bu=Fn;break;case"checked":Ss=Fn;break;case"value":Fl=Fn;break;default:Ve(s,No,Fn)}}var Mc=rs(s,C,k,Pc,Lc,Ic,vu,St);return Ss!==null?ui(s,"checked",Ss):yu!==null&&ui(s,"checked",yu),Fl!==null?Ve(s,"value",Fl):bu!==null&&Ve(s,"value",bu),s.push(Aa),Mc?.forEach(or,s),null;case"button":s.push(yt("button"));var ha=null,zc=null,Hc=null,jc=null,ks=null,xu=null,Gi=null,Vi;for(Vi in v)if(rt.call(v,Vi)){var Sn=v[Vi];if(Sn!=null)switch(Vi){case"children":ha=Sn;break;case"dangerouslySetInnerHTML":zc=Sn;break;case"name":Hc=Sn;break;case"formAction":jc=Sn;break;case"formEncType":ks=Sn;break;case"formMethod":xu=Sn;break;case"formTarget":Gi=Sn;break;default:Ve(s,Vi,Sn)}}var Uc=rs(s,C,k,jc,ks,xu,Gi,Hc);if(s.push(Wt),Uc?.forEach(or,s),hr(s,zc,ha),typeof ha=="string"){s.push(le(Oe(ha)));var Wc=null}else Wc=ha;return Wc;case"form":s.push(yt("form"));var Ts=null,Gc=null,Yi=null,_s=null,As=null,Ns=null,Ji;for(Ji in v)if(rt.call(v,Ji)){var Ya=v[Ji];if(Ya!=null)switch(Ji){case"children":Ts=Ya;break;case"dangerouslySetInnerHTML":Gc=Ya;break;case"action":Yi=Ya;break;case"encType":_s=Ya;break;case"method":As=Ya;break;case"target":Ns=Ya;break;default:Ve(s,Ji,Ya)}}var wu=null,Du=null;if(typeof Yi=="function"){var Xi=ts(C,Yi);Xi!==null?(Yi=Xi.action||"",_s=Xi.encType,As=Xi.method,Ns=Xi.target,wu=Xi.data,Du=Xi.name):(s.push(bt,le("action"),lt,tl,Bt),Ns=As=_s=Yi=null,nl(C,k))}if(Yi!=null&&Ve(s,"action",Yi),_s!=null&&Ve(s,"encType",_s),As!=null&&Ve(s,"method",As),Ns!=null&&Ve(s,"target",Ns),s.push(Wt),Du!==null&&(s.push(ci),Ut(s,"name",Du),s.push(Aa),wu?.forEach(or,s)),hr(s,Gc,Ts),typeof Ts=="string"){s.push(le(Oe(Ts)));var Cu=null}else Cu=Ts;return Cu;case"menuitem":s.push(yt("menuitem"));for(var Sl in v)if(rt.call(v,Sl)){var Eu=v[Sl];if(Eu!=null)switch(Sl){case"children":case"dangerouslySetInnerHTML":throw Error(r(400));default:Ve(s,Sl,Eu)}}return s.push(Wt),null;case"object":s.push(yt("object"));var Ro=null,Oo=null,Zi;for(Zi in v)if(rt.call(v,Zi)){var Rs=v[Zi];if(Rs!=null)switch(Zi){case"children":Ro=Rs;break;case"dangerouslySetInnerHTML":Oo=Rs;break;case"data":var Vc=vt(""+Rs);if(Vc==="")break;s.push(bt,le("data"),lt,le(Oe(Vc)),Bt);break;default:Ve(s,Zi,Rs)}}if(s.push(Wt),hr(s,Oo,Ro),typeof Ro=="string"){s.push(le(Oe(Ro)));var Yc=null}else Yc=Ro;return Yc;case"title":if(X.insertionMode===4||X.tagScope&1||v.itemProp!=null)var Fu=di(s,v);else V?Fu=null:(di(k.hoistableChunks,v),Fu=void 0);return Fu;case"link":var Dp=v.rel,Ja=v.href,kl=v.precedence;if(X.insertionMode===4||X.tagScope&1||v.itemProp!=null||typeof Dp!="string"||typeof Ja!="string"||Ja===""){Pt(s,v);var o=null}else if(v.rel==="stylesheet")if(typeof kl!="string"||v.disabled!=null||v.onLoad||v.onError)o=Pt(s,v);else{var d=k.styles.get(kl),y=C.styleResources.hasOwnProperty(Ja)?C.styleResources[Ja]:void 0;if(y!==null){C.styleResources[Ja]=null,d||(d={precedence:le(Oe(kl)),rules:[],hrefs:[],sheets:new Map},k.styles.set(kl,d));var w={state:0,props:qt({},v,{"data-precedence":v.precedence,precedence:null})};if(y){y.length===2&&Dr(w.props,y);var A=k.preloads.stylesheets.get(Ja);A&&0<A.length?A.length=0:w.state=1}d.sheets.set(Ja,w),z&&z.stylesheets.add(w)}else if(d){var L=d.sheets.get(Ja);L&&z&&z.stylesheets.add(L)}W&&s.push(Yr),o=null}else v.onLoad||v.onError?o=Pt(s,v):(W&&s.push(Yr),o=V?null:Pt(k.hoistableChunks,v));return o;case"script":var G=v.async;if(typeof v.src!="string"||!v.src||!G||typeof G=="function"||typeof G=="symbol"||v.onLoad||v.onError||X.insertionMode===4||X.tagScope&1||v.itemProp!=null)var Z=Na(s,v);else{var ue=v.src;if(v.type==="module")var be=C.moduleScriptResources,he=k.preloads.moduleScripts;else be=C.scriptResources,he=k.preloads.scripts;var Me=be.hasOwnProperty(ue)?be[ue]:void 0;if(Me!==null){be[ue]=null;var Re=v;if(Me){Me.length===2&&(Re=qt({},v),Dr(Re,Me));var ze=he.get(ue);ze&&(ze.length=0)}var tt=[];k.scripts.add(tt),Na(tt,Re)}W&&s.push(Yr),Z=null}return Z;case"style":var wt=v.precedence,gt=v.href;if(X.insertionMode===4||X.tagScope&1||v.itemProp!=null||typeof wt!="string"||typeof gt!="string"||gt===""){s.push(yt("style"));var kt=null,ye=null,Be;for(Be in v)if(rt.call(v,Be)){var Dt=v[Be];if(Dt!=null)switch(Be){case"children":kt=Dt;break;case"dangerouslySetInnerHTML":ye=Dt;break;default:Ve(s,Be,Dt)}}s.push(Wt);var ft=Array.isArray(kt)?2>kt.length?kt[0]:null:kt;typeof ft!="function"&&typeof ft!="symbol"&&ft!==null&&ft!==void 0&&s.push(le((""+ft).replace(il,sn))),hr(s,ye,kt),s.push(pt("style"));var ur=null}else{var rn=k.styles.get(wt);if((C.styleResources.hasOwnProperty(gt)?C.styleResources[gt]:void 0)!==null){C.styleResources[gt]=null,rn?rn.hrefs.push(le(Oe(gt))):(rn={precedence:le(Oe(wt)),rules:[],hrefs:[le(Oe(gt))],sheets:new Map},k.styles.set(wt,rn));var Jc=rn.rules,qi=null,Su=null,Xc;for(Xc in v)if(rt.call(v,Xc)){var Cp=v[Xc];if(Cp!=null)switch(Xc){case"children":qi=Cp;break;case"dangerouslySetInnerHTML":Su=Cp}}var ku=Array.isArray(qi)?2>qi.length?qi[0]:null:qi;typeof ku!="function"&&typeof ku!="symbol"&&ku!==null&&ku!==void 0&&Jc.push(le((""+ku).replace(il,sn))),hr(Jc,Su,qi)}rn&&z&&z.styles.add(rn),W&&s.push(Yr),ur=void 0}return ur;case"meta":if(X.insertionMode===4||X.tagScope&1||v.itemProp!=null)var fy=ln(s,v,"meta");else W&&s.push(Yr),fy=V?null:typeof v.charSet=="string"?ln(k.charsetChunks,v,"meta"):v.name==="viewport"?ln(k.viewportChunks,v,"meta"):ln(k.hoistableChunks,v,"meta");return fy;case"listing":case"pre":s.push(yt(c));var Tu=null,_u=null,Au;for(Au in v)if(rt.call(v,Au)){var Zc=v[Au];if(Zc!=null)switch(Au){case"children":Tu=Zc;break;case"dangerouslySetInnerHTML":_u=Zc;break;default:Ve(s,Au,Zc)}}if(s.push(Wt),_u!=null){if(Tu!=null)throw Error(r(60));if(typeof _u!="object"||!("__html"in _u))throw Error(r(61));var Os=_u.__html;Os!=null&&(typeof Os=="string"&&0<Os.length&&Os[0]===`
|
|
51
|
-
`?s.push(An,le(Os)):s.push(le(""+Os)))}return typeof Tu=="string"&&Tu[0]===`
|
|
52
|
-
`&&s.push(An),Tu;case"img":var Tr=v.src,yr=v.srcSet;if(!(v.loading==="lazy"||!Tr&&!yr||typeof Tr!="string"&&Tr!=null||typeof yr!="string"&&yr!=null)&&v.fetchPriority!=="low"&&!(X.tagScope&3)&&(typeof Tr!="string"||Tr[4]!==":"||Tr[0]!=="d"&&Tr[0]!=="D"||Tr[1]!=="a"&&Tr[1]!=="A"||Tr[2]!=="t"&&Tr[2]!=="T"||Tr[3]!=="a"&&Tr[3]!=="A")&&(typeof yr!="string"||yr[4]!==":"||yr[0]!=="d"&&yr[0]!=="D"||yr[1]!=="a"&&yr[1]!=="A"||yr[2]!=="t"&&yr[2]!=="T"||yr[3]!=="a"&&yr[3]!=="A")){var hy=typeof v.sizes=="string"?v.sizes:void 0,Tl=yr?yr+`
|
|
53
|
-
`+(hy||""):Tr,Ep=k.preloads.images,Bs=Ep.get(Tl);if(Bs)(v.fetchPriority==="high"||10>k.highImagePreloads.size)&&(Ep.delete(Tl),k.highImagePreloads.add(Bs));else if(!C.imageResources.hasOwnProperty(Tl)){C.imageResources[Tl]=Xe;var Fp=v.crossOrigin,py=typeof Fp=="string"?Fp==="use-credentials"?Fp:"":void 0,Ps=k.headers,Sp;Ps&&0<Ps.remainingCapacity&&typeof v.srcSet!="string"&&(v.fetchPriority==="high"||500>Ps.highImagePreloads.length)&&(Sp=Cr(Tr,"image",{imageSrcSet:v.srcSet,imageSizes:v.sizes,crossOrigin:py,integrity:v.integrity,nonce:v.nonce,type:v.type,fetchPriority:v.fetchPriority,referrerPolicy:v.refererPolicy}),0<=(Ps.remainingCapacity-=Sp.length+2))?(k.resets.image[Tl]=Xe,Ps.highImagePreloads&&(Ps.highImagePreloads+=", "),Ps.highImagePreloads+=Sp):(Bs=[],Pt(Bs,{rel:"preload",as:"image",href:yr?void 0:Tr,imageSrcSet:yr,imageSizes:hy,crossOrigin:py,integrity:v.integrity,type:v.type,fetchPriority:v.fetchPriority,referrerPolicy:v.referrerPolicy}),v.fetchPriority==="high"||10>k.highImagePreloads.size?k.highImagePreloads.add(Bs):(k.bulkPreloads.add(Bs),Ep.set(Tl,Bs)))}}return ln(s,v,"img");case"base":case"area":case"br":case"col":case"embed":case"hr":case"keygen":case"param":case"source":case"track":case"wbr":return ln(s,v,c);case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":break;case"head":if(2>X.insertionMode){var kp=B||k.preamble;if(kp.headChunks)throw Error(r(545,"`<head>`"));kp.headChunks=[];var gy=Ra(kp.headChunks,v,"head")}else gy=Oa(s,v,"head");return gy;case"body":if(2>X.insertionMode){var Tp=B||k.preamble;if(Tp.bodyChunks)throw Error(r(545,"`<body>`"));Tp.bodyChunks=[];var my=Ra(Tp.bodyChunks,v,"body")}else my=Oa(s,v,"body");return my;case"html":if(X.insertionMode===0){var _p=B||k.preamble;if(_p.htmlChunks)throw Error(r(545,"`<html>`"));_p.htmlChunks=[ho];var vy=Ra(_p.htmlChunks,v,"html")}else vy=Oa(s,v,"html");return vy;default:if(c.indexOf("-")!==-1){s.push(yt(c));var Ap=null,by=null,_l;for(_l in v)if(rt.call(v,_l)){var pa=v[_l];if(pa!=null){var yy=_l;switch(_l){case"children":Ap=pa;break;case"dangerouslySetInnerHTML":by=pa;break;case"style":li(s,pa);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"ref":break;case"className":yy="class";default:if(rr(_l)&&typeof pa!="function"&&typeof pa!="symbol"&&pa!==!1){if(pa===!0)pa="";else if(typeof pa=="object")continue;s.push(bt,le(yy),lt,le(Oe(pa)),Bt)}}}}return s.push(Wt),hr(s,by,Ap),Ap}}return Oa(s,v,c)}var sl=new Map;function pt(s){var c=sl.get(s);return c===void 0&&(c=ne("</"+s+">"),sl.set(s,c)),c}function Or(s,c){s=s.preamble,s.htmlChunks===null&&c.htmlChunks&&(s.htmlChunks=c.htmlChunks,c.contribution|=1),s.headChunks===null&&c.headChunks&&(s.headChunks=c.headChunks,c.contribution|=4),s.bodyChunks===null&&c.bodyChunks&&(s.bodyChunks=c.bodyChunks,c.contribution|=2)}function Nn(s,c){c=c.bootstrapChunks;for(var v=0;v<c.length-1;v++)te(s,c[v]);return v<c.length?(v=c[v],c.length=0,fe(s,v)):!0}var go=ne('<template id="'),is=ne('"></template>'),ll=ne("<!--$-->"),ul=ne('<!--$?--><template id="'),cl=ne('"></template>'),Br=ne("<!--$!-->"),fi=ne("<!--/$-->"),dl=ne("<template"),hi=ne('"'),mo=ne(' data-dgst="');ne(' data-msg="'),ne(' data-stck="'),ne(' data-cstck="');var fl=ne("></template>");function os(s,c,v){if(te(s,ul),v===null)throw Error(r(395));return te(s,c.boundaryPrefix),te(s,le(v.toString(16))),fe(s,cl)}var hl=ne("<!--"),Rn=ne("-->");function Qn(s,c){c=c.contribution,c!==0&&(te(s,hl),te(s,le(""+c)),te(s,Rn))}var uu=ne('<div hidden id="'),pi=ne('">'),vo=ne("</div>"),cu=ne('<svg aria-hidden="true" style="display:none" id="'),du=ne('">'),Xr=ne("</svg>"),$n=ne('<math aria-hidden="true" style="display:none" id="'),ss=ne('">'),ls=ne("</math>"),bo=ne('<table hidden id="'),$e=ne('">'),gi=ne("</table>"),un=ne('<table hidden><tbody id="'),mi=ne('">'),vi=ne("</tbody></table>"),Ba=ne('<table hidden><tr id="'),yo=ne('">'),ea=ne("</tr></table>"),cn=ne('<table hidden><colgroup id="'),Pr=ne('">'),dn=ne("</colgroup></table>");function bi(s,c,v,C){switch(v.insertionMode){case 0:case 1:case 3:case 2:return te(s,uu),te(s,c.segmentPrefix),te(s,le(C.toString(16))),fe(s,pi);case 4:return te(s,cu),te(s,c.segmentPrefix),te(s,le(C.toString(16))),fe(s,du);case 5:return te(s,$n),te(s,c.segmentPrefix),te(s,le(C.toString(16))),fe(s,ss);case 6:return te(s,bo),te(s,c.segmentPrefix),te(s,le(C.toString(16))),fe(s,$e);case 7:return te(s,un),te(s,c.segmentPrefix),te(s,le(C.toString(16))),fe(s,mi);case 8:return te(s,Ba),te(s,c.segmentPrefix),te(s,le(C.toString(16))),fe(s,yo);case 9:return te(s,cn),te(s,c.segmentPrefix),te(s,le(C.toString(16))),fe(s,Pr);default:throw Error(r(397))}}function On(s,c){switch(c.insertionMode){case 0:case 1:case 3:case 2:return fe(s,vo);case 4:return fe(s,Xr);case 5:return fe(s,ls);case 6:return fe(s,gi);case 7:return fe(s,vi);case 8:return fe(s,ea);case 9:return fe(s,dn);default:throw Error(r(397))}}var Bn=ne('$RS=function(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("'),yi=ne('$RS("'),pl=ne('","'),us=ne('")<\/script>');ne('<template data-rsi="" data-sid="'),ne('" data-pid="');var cs=ne('$RC=function(b,c,e){c=document.getElementById(c);c.parentNode.removeChild(c);var a=document.getElementById(b);if(a){b=a.previousSibling;if(e)b.data="$!",a.setAttribute("data-dgst",e);else{e=b.parentNode;a=b.nextSibling;var f=0;do{if(a&&8===a.nodeType){var d=a.data;if("/$"===d)if(0===f)break;else f--;else"$"!==d&&"$?"!==d&&"$!"!==d||f++}d=a.nextSibling;e.removeChild(a);a=d}while(a);for(;c.firstChild;)e.insertBefore(c.firstChild,a);b.data="$"}b._reactRetry&&b._reactRetry()}};$RC("'),gl=ne('$RC("'),fu=ne(`$RC=function(b,c,e){c=document.getElementById(c);c.parentNode.removeChild(c);var a=document.getElementById(b);if(a){b=a.previousSibling;if(e)b.data="$!",a.setAttribute("data-dgst",e);else{e=b.parentNode;a=b.nextSibling;var f=0;do{if(a&&8===a.nodeType){var d=a.data;if("/$"===d)if(0===f)break;else f--;else"$"!==d&&"$?"!==d&&"$!"!==d||f++}d=a.nextSibling;e.removeChild(a);a=d}while(a);for(;c.firstChild;)e.insertBefore(c.firstChild,a);b.data="$"}b._reactRetry&&b._reactRetry()}};$RM=new Map;
|
|
54
|
-
$RR=function(t,u,y){function v(n){this._p=null;n()}for(var w=$RC,p=$RM,q=new Map,r=document,g,b,h=r.querySelectorAll("link[data-precedence],style[data-precedence]"),x=[],k=0;b=h[k++];)"not all"===b.getAttribute("media")?x.push(b):("LINK"===b.tagName&&p.set(b.getAttribute("href"),b),q.set(b.dataset.precedence,g=b));b=0;h=[];var l,a;for(k=!0;;){if(k){var e=y[b++];if(!e){k=!1;b=0;continue}var c=!1,m=0;var d=e[m++];if(a=p.get(d)){var f=a._p;c=!0}else{a=r.createElement("link");a.href=
|
|
55
|
-
d;a.rel="stylesheet";for(a.dataset.precedence=l=e[m++];f=e[m++];)a.setAttribute(f,e[m++]);f=a._p=new Promise(function(n,z){a.onload=v.bind(a,n);a.onerror=v.bind(a,z)});p.set(d,a)}d=a.getAttribute("media");!f||d&&!matchMedia(d).matches||h.push(f);if(c)continue}else{a=x[b++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=q.get(l)||g;c===g&&(g=a);q.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=r.head,c.insertBefore(a,c.firstChild))}Promise.all(h).then(w.bind(null,
|
|
56
|
-
t,u,""),w.bind(null,t,u,"Resource failed to load"))};$RR("`),ds=ne(`$RM=new Map;
|
|
57
|
-
$RR=function(t,u,y){function v(n){this._p=null;n()}for(var w=$RC,p=$RM,q=new Map,r=document,g,b,h=r.querySelectorAll("link[data-precedence],style[data-precedence]"),x=[],k=0;b=h[k++];)"not all"===b.getAttribute("media")?x.push(b):("LINK"===b.tagName&&p.set(b.getAttribute("href"),b),q.set(b.dataset.precedence,g=b));b=0;h=[];var l,a;for(k=!0;;){if(k){var e=y[b++];if(!e){k=!1;b=0;continue}var c=!1,m=0;var d=e[m++];if(a=p.get(d)){var f=a._p;c=!0}else{a=r.createElement("link");a.href=
|
|
58
|
-
d;a.rel="stylesheet";for(a.dataset.precedence=l=e[m++];f=e[m++];)a.setAttribute(f,e[m++]);f=a._p=new Promise(function(n,z){a.onload=v.bind(a,n);a.onerror=v.bind(a,z)});p.set(d,a)}d=a.getAttribute("media");!f||d&&!matchMedia(d).matches||h.push(f);if(c)continue}else{a=x[b++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=q.get(l)||g;c===g&&(g=a);q.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=r.head,c.insertBefore(a,c.firstChild))}Promise.all(h).then(w.bind(null,
|
|
59
|
-
t,u,""),w.bind(null,t,u,"Resource failed to load"))};$RR("`),ml=ne('$RR("'),vl=ne('","'),hu=ne('",'),xi=ne('"'),bl=ne(")<\/script>");ne('<template data-rci="" data-bid="'),ne('<template data-rri="" data-bid="'),ne('" data-sid="'),ne('" data-sty="');var xo=ne('$RX=function(b,c,d,e,f){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),f&&(a.cstck=f),b._reactRetry&&b._reactRetry())};;$RX("'),pu=ne('$RX("'),wo=ne('"'),yl=ne(","),Pa=ne(")<\/script>");ne('<template data-rxi="" data-bid="'),ne('" data-dgst="'),ne('" data-msg="'),ne('" data-stck="'),ne('" data-cstck="');var fs=/[<\u2028\u2029]/g;function Do(s){return JSON.stringify(s).replace(fs,function(c){switch(c){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}var hs=/[&><\u2028\u2029]/g;function wi(s){return JSON.stringify(s).replace(hs,function(c){switch(c){case"&":return"\\u0026";case">":return"\\u003e";case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSObjectForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}var La=ne('<style media="not all" data-precedence="'),gu=ne('" data-href="'),mu=ne('">'),At=ne("</style>"),Di=!1,ta=!0;function Ci(s){var c=s.rules,v=s.hrefs,C=0;if(v.length){for(te(this,La),te(this,s.precedence),te(this,gu);C<v.length-1;C++)te(this,v[C]),te(this,ps);for(te(this,v[C]),te(this,mu),C=0;C<c.length;C++)te(this,c[C]);ta=fe(this,At),Di=!0,c.length=0,v.length=0}}function xl(s){return s.state!==2?Di=!0:!1}function fn(s,c,v){return Di=!1,ta=!0,c.styles.forEach(Ci,s),c.stylesheets.forEach(xl),Di&&(v.stylesToHoist=!0),ta}function Gt(s){for(var c=0;c<s.length;c++)te(this,s[c]);s.length=0}var Vt=[];function pr(s){Pt(Vt,s.props);for(var c=0;c<Vt.length;c++)te(this,Vt[c]);Vt.length=0,s.state=2}var Ei=ne('<style data-precedence="'),wl=ne('" data-href="'),ps=ne(" "),Co=ne('">'),gs=ne("</style>");function wr(s){var c=0<s.sheets.size;s.sheets.forEach(pr,this),s.sheets.clear();var v=s.rules,C=s.hrefs;if(!c||C.length){if(te(this,Ei),te(this,s.precedence),s=0,C.length){for(te(this,wl);s<C.length-1;s++)te(this,C[s]),te(this,ps);te(this,C[s])}for(te(this,Co),s=0;s<v.length;s++)te(this,v[s]);te(this,gs),v.length=0,C.length=0}}function Eo(s){if(s.state===0){s.state=1;var c=s.props;for(Pt(Vt,{rel:"preload",as:"style",href:s.props.href,crossOrigin:c.crossOrigin,fetchPriority:c.fetchPriority,integrity:c.integrity,media:c.media,hrefLang:c.hrefLang,referrerPolicy:c.referrerPolicy}),s=0;s<Vt.length;s++)te(this,Vt[s]);Vt.length=0}}function ms(s){s.sheets.forEach(Eo,this),s.sheets.clear()}var Fo=ne("["),vs=ne(",["),So=ne(","),gr=ne("]");function Fi(s,c){te(s,Fo);var v=Fo;c.stylesheets.forEach(function(C){if(C.state!==2)if(C.state===3)te(s,v),te(s,le(wi(""+C.props.href))),te(s,gr),v=vs;else{te(s,v);var k=C.props["data-precedence"],B=C.props,z=vt(""+C.props.href);te(s,le(wi(z))),k=""+k,te(s,So),te(s,le(wi(k)));for(var X in B)if(rt.call(B,X)&&(k=B[X],k!=null))switch(X){case"href":case"rel":case"precedence":case"data-precedence":break;case"children":case"dangerouslySetInnerHTML":throw Error(r(399,"link"));default:Pn(s,X,k)}te(s,gr),v=vs,C.state=3}}),te(s,gr)}function Pn(s,c,v){var C=c.toLowerCase();switch(typeof v){case"function":case"symbol":return}switch(c){case"innerHTML":case"dangerouslySetInnerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"style":case"ref":return;case"className":C="class",c=""+v;break;case"hidden":if(v===!1)return;c="";break;case"src":case"href":v=vt(v),c=""+v;break;default:if(2<c.length&&(c[0]==="o"||c[0]==="O")&&(c[1]==="n"||c[1]==="N")||!rr(c))return;c=""+v}te(s,So),te(s,le(wi(C))),te(s,So),te(s,le(wi(c)))}function Si(){return{styles:new Set,stylesheets:new Set}}function bs(s){var c=Et||null;if(c){var v=c.resumableState,C=c.renderState;if(typeof s=="string"&&s){if(!v.dnsResources.hasOwnProperty(s)){v.dnsResources[s]=null,v=C.headers;var k,B;(B=v&&0<v.remainingCapacity)&&(B=(k="<"+(""+s).replace(Zr,qr)+">; rel=dns-prefetch",0<=(v.remainingCapacity-=k.length+2))),B?(C.resets.dns[s]=null,v.preconnects&&(v.preconnects+=", "),v.preconnects+=k):(k=[],Pt(k,{href:s,rel:"dns-prefetch"}),C.preconnects.add(k))}Wn(c)}}else Ye.D(s)}function ra(s,c){var v=Et||null;if(v){var C=v.resumableState,k=v.renderState;if(typeof s=="string"&&s){var B=c==="use-credentials"?"credentials":typeof c=="string"?"anonymous":"default";if(!C.connectResources[B].hasOwnProperty(s)){C.connectResources[B][s]=null,C=k.headers;var z,X;if(X=C&&0<C.remainingCapacity){if(X="<"+(""+s).replace(Zr,qr)+">; rel=preconnect",typeof c=="string"){var W=(""+c).replace(Ti,na);X+='; crossorigin="'+W+'"'}X=(z=X,0<=(C.remainingCapacity-=z.length+2))}X?(k.resets.connect[B][s]=null,C.preconnects&&(C.preconnects+=", "),C.preconnects+=z):(B=[],Pt(B,{rel:"preconnect",href:s,crossOrigin:c}),k.preconnects.add(B))}Wn(v)}}else Ye.C(s,c)}function ko(s,c,v){var C=Et||null;if(C){var k=C.resumableState,B=C.renderState;if(c&&s){switch(c){case"image":if(v)var z=v.imageSrcSet,X=v.imageSizes,W=v.fetchPriority;var V=z?z+`
|
|
60
|
-
`+(X||""):s;if(k.imageResources.hasOwnProperty(V))return;k.imageResources[V]=Xe,k=B.headers;var oe;k&&0<k.remainingCapacity&&typeof z!="string"&&W==="high"&&(oe=Cr(s,c,v),0<=(k.remainingCapacity-=oe.length+2))?(B.resets.image[V]=Xe,k.highImagePreloads&&(k.highImagePreloads+=", "),k.highImagePreloads+=oe):(k=[],Pt(k,qt({rel:"preload",href:z?void 0:s,as:c},v)),W==="high"?B.highImagePreloads.add(k):(B.bulkPreloads.add(k),B.preloads.images.set(V,k)));break;case"style":if(k.styleResources.hasOwnProperty(s))return;z=[],Pt(z,qt({rel:"preload",href:s,as:c},v)),k.styleResources[s]=!v||typeof v.crossOrigin!="string"&&typeof v.integrity!="string"?Xe:[v.crossOrigin,v.integrity],B.preloads.stylesheets.set(s,z),B.bulkPreloads.add(z);break;case"script":if(k.scriptResources.hasOwnProperty(s))return;z=[],B.preloads.scripts.set(s,z),B.bulkPreloads.add(z),Pt(z,qt({rel:"preload",href:s,as:c},v)),k.scriptResources[s]=!v||typeof v.crossOrigin!="string"&&typeof v.integrity!="string"?Xe:[v.crossOrigin,v.integrity];break;default:if(k.unknownResources.hasOwnProperty(c)){if(z=k.unknownResources[c],z.hasOwnProperty(s))return}else z={},k.unknownResources[c]=z;if(z[s]=Xe,(k=B.headers)&&0<k.remainingCapacity&&c==="font"&&(V=Cr(s,c,v),0<=(k.remainingCapacity-=V.length+2)))B.resets.font[s]=Xe,k.fontPreloads&&(k.fontPreloads+=", "),k.fontPreloads+=V;else switch(k=[],s=qt({rel:"preload",href:s,as:c},v),Pt(k,s),c){case"font":B.fontPreloads.add(k);break;default:B.bulkPreloads.add(k)}}Wn(C)}}else Ye.L(s,c,v)}function Lr(s,c){var v=Et||null;if(v){var C=v.resumableState,k=v.renderState;if(s){var B=c&&typeof c.as=="string"?c.as:"script";switch(B){case"script":if(C.moduleScriptResources.hasOwnProperty(s))return;B=[],C.moduleScriptResources[s]=!c||typeof c.crossOrigin!="string"&&typeof c.integrity!="string"?Xe:[c.crossOrigin,c.integrity],k.preloads.moduleScripts.set(s,B);break;default:if(C.moduleUnknownResources.hasOwnProperty(B)){var z=C.unknownResources[B];if(z.hasOwnProperty(s))return}else z={},C.moduleUnknownResources[B]=z;B=[],z[s]=Xe}Pt(B,qt({rel:"modulepreload",href:s},c)),k.bulkPreloads.add(B),Wn(v)}}else Ye.m(s,c)}function ki(s,c,v){var C=Et||null;if(C){var k=C.resumableState,B=C.renderState;if(s){c=c||"default";var z=B.styles.get(c),X=k.styleResources.hasOwnProperty(s)?k.styleResources[s]:void 0;X!==null&&(k.styleResources[s]=null,z||(z={precedence:le(Oe(c)),rules:[],hrefs:[],sheets:new Map},B.styles.set(c,z)),c={state:0,props:qt({rel:"stylesheet",href:s,"data-precedence":c},v)},X&&(X.length===2&&Dr(c.props,X),(B=B.preloads.stylesheets.get(s))&&0<B.length?B.length=0:c.state=1),z.sheets.set(s,c),Wn(C))}}else Ye.S(s,c,v)}function Ia(s,c){var v=Et||null;if(v){var C=v.resumableState,k=v.renderState;if(s){var B=C.scriptResources.hasOwnProperty(s)?C.scriptResources[s]:void 0;B!==null&&(C.scriptResources[s]=null,c=qt({src:s,async:!0},c),B&&(B.length===2&&Dr(c,B),s=k.preloads.scripts.get(s))&&(s.length=0),s=[],k.scripts.add(s),Na(s,c),Wn(v))}}else Ye.X(s,c)}function To(s,c){var v=Et||null;if(v){var C=v.resumableState,k=v.renderState;if(s){var B=C.moduleScriptResources.hasOwnProperty(s)?C.moduleScriptResources[s]:void 0;B!==null&&(C.moduleScriptResources[s]=null,c=qt({src:s,type:"module",async:!0},c),B&&(B.length===2&&Dr(c,B),s=k.preloads.moduleScripts.get(s))&&(s.length=0),s=[],k.scripts.add(s),Na(s,c),Wn(v))}}else Ye.M(s,c)}function Dr(s,c){s.crossOrigin==null&&(s.crossOrigin=c[0]),s.integrity==null&&(s.integrity=c[1])}function Cr(s,c,v){s=(""+s).replace(Zr,qr),c=(""+c).replace(Ti,na),c="<"+s+'>; rel=preload; as="'+c+'"';for(var C in v)rt.call(v,C)&&(s=v[C],typeof s=="string"&&(c+="; "+C.toLowerCase()+'="'+(""+s).replace(Ti,na)+'"'));return c}var Zr=/[<>\r\n]/g;function qr(s){switch(s){case"<":return"%3C";case">":return"%3E";case`
|
|
61
|
-
`:return"%0A";case"\r":return"%0D";default:throw Error("escapeLinkHrefForHeaderContextReplacer encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}}var Ti=/["';,\r\n]/g;function na(s){switch(s){case'"':return"%22";case"'":return"%27";case";":return"%3B";case",":return"%2C";case`
|
|
62
|
-
`:return"%0A";case"\r":return"%0D";default:throw Error("escapeStringForLinkHeaderQuotedParamValueContextReplacer encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}}function ys(s){this.styles.add(s)}function _i(s){this.stylesheets.add(s)}var hn=Function.prototype.bind,Ai=Symbol.for("react.client.reference");function Kr(s){if(s==null)return null;if(typeof s=="function")return s.$$typeof===Ai?null:s.displayName||s.name||null;if(typeof s=="string")return s;switch(s){case i:return"Fragment";case h:return"Profiler";case u:return"StrictMode";case F:return"Suspense";case S:return"SuspenseList";case _:return"Activity"}if(typeof s=="object")switch(s.$$typeof){case a:return"Portal";case b:return(s.displayName||"Context")+".Provider";case p:return(s._context.displayName||"Context")+".Consumer";case D:var c=s.render;return s=s.displayName,s||(s=c.displayName||c.name||"",s=s!==""?"ForwardRef("+s+")":"ForwardRef"),s;case R:return c=s.displayName||null,c!==null?c:Kr(s.type)||"Memo";case O:c=s._payload,s=s._init;try{return Kr(s(c))}catch{}}return null}var xs={},Qr=null;function l(s,c){if(s!==c){s.context._currentValue=s.parentValue,s=s.parent;var v=c.parent;if(s===null){if(v!==null)throw Error(r(401))}else{if(v===null)throw Error(r(401));l(s,v)}c.context._currentValue=c.value}}function f(s){s.context._currentValue=s.parentValue,s=s.parent,s!==null&&f(s)}function x(s){var c=s.parent;c!==null&&x(c),s.context._currentValue=s.value}function E(s,c){if(s.context._currentValue=s.parentValue,s=s.parent,s===null)throw Error(r(402));s.depth===c.depth?l(s,c):E(s,c)}function T(s,c){var v=c.parent;if(v===null)throw Error(r(402));s.depth===v.depth?l(s,v):T(s,v),c.context._currentValue=c.value}function P(s){var c=Qr;c!==s&&(c===null?x(s):s===null?f(c):c.depth===s.depth?l(c,s):c.depth>s.depth?E(c,s):T(c,s),Qr=s)}var j={enqueueSetState:function(s,c){s=s._reactInternals,s.queue!==null&&s.queue.push(c)},enqueueReplaceState:function(s,c){s=s._reactInternals,s.replace=!0,s.queue=[c]},enqueueForceUpdate:function(){}},re={id:1,overflow:""};function J(s,c,v){var C=s.id;s=s.overflow;var k=32-K(C)-1;C&=~(1<<k),v+=1;var B=32-K(c)+k;if(30<B){var z=k-k%5;return B=(C&(1<<z)-1).toString(32),C>>=z,k-=z,{id:1<<32-K(c)+k|v<<k|C,overflow:B+s}}return{id:1<<B|v<<k|C,overflow:s}}var K=Math.clz32?Math.clz32:we,de=Math.log,se=Math.LN2;function we(s){return s>>>=0,s===0?32:31-(de(s)/se|0)|0}var Ce=Error(r(460));function Fe(){}function Se(s,c,v){switch(v=s[v],v===void 0?s.push(c):v!==c&&(c.then(Fe,Fe),c=v),c.status){case"fulfilled":return c.value;case"rejected":throw c.reason;default:switch(typeof c.status=="string"?c.then(Fe,Fe):(s=c,s.status="pending",s.then(function(C){if(c.status==="pending"){var k=c;k.status="fulfilled",k.value=C}},function(C){if(c.status==="pending"){var k=c;k.status="rejected",k.reason=C}})),c.status){case"fulfilled":return c.value;case"rejected":throw c.reason}throw qe=c,Ce}}var qe=null;function Ke(){if(qe===null)throw Error(r(459));var s=qe;return qe=null,s}function Ze(s,c){return s===c&&(s!==0||1/s===1/c)||s!==s&&c!==c}var et=typeof Object.is=="function"?Object.is:Ze,xe=null,nt=null,Le=null,Nt=null,Lt=null,ke=null,Rt=!1,Ln=!1,It=0,pn=0,Kt=-1,Ct=0,Ot=null,Yt=null,Ir=0;function Jt(){if(xe===null)throw Error(r(321));return xe}function In(){if(0<Ir)throw Error(r(312));return{memoizedState:null,queue:null,next:null}}function gn(){return ke===null?Lt===null?(Rt=!1,Lt=ke=In()):(Rt=!0,ke=Lt):ke.next===null?(Rt=!1,ke=ke.next=In()):(Rt=!0,ke=ke.next),ke}function Mn(){var s=Ot;return Ot=null,s}function mn(){Nt=Le=nt=xe=null,Ln=!1,Lt=null,Ir=0,ke=Yt=null}function Ni(s,c){return typeof c=="function"?c(s):c}function Ne(s,c,v){if(xe=Jt(),ke=gn(),Rt){var C=ke.queue;if(c=C.dispatch,Yt!==null&&(v=Yt.get(C),v!==void 0)){Yt.delete(C),C=ke.memoizedState;do C=s(C,v.action),v=v.next;while(v!==null);return ke.memoizedState=C,[C,c]}return[ke.memoizedState,c]}return s=s===Ni?typeof c=="function"?c():c:v!==void 0?v(c):c,ke.memoizedState=s,s=ke.queue={last:null,dispatch:null},s=s.dispatch=Er.bind(null,xe,s),[ke.memoizedState,s]}function vn(s,c){if(xe=Jt(),ke=gn(),c=c===void 0?null:c,ke!==null){var v=ke.memoizedState;if(v!==null&&c!==null){var C=v[1];e:if(C===null)C=!1;else{for(var k=0;k<C.length&&k<c.length;k++)if(!et(c[k],C[k])){C=!1;break e}C=!0}if(C)return v[0]}}return s=s(),ke.memoizedState=[s,c],s}function Er(s,c,v){if(25<=Ir)throw Error(r(301));if(s===xe)if(Ln=!0,s={action:v,next:null},Yt===null&&(Yt=new Map),v=Yt.get(c),v===void 0)Yt.set(c,s);else{for(c=v;c.next!==null;)c=c.next;c.next=s}}function Dl(){throw Error(r(394))}function Ri(){throw Error(r(479))}function ws(s,c,v){Jt();var C=pn++,k=Le;if(typeof s.$$FORM_ACTION=="function"){var B=null,z=Nt;k=k.formState;var X=s.$$IS_SIGNATURE_EQUAL;if(k!==null&&typeof X=="function"){var W=k[1];X.call(s,k[2],k[3])&&(B=v!==void 0?"p"+v:"k"+Y(JSON.stringify([z,null,C]),0),W===B&&(Kt=C,c=k[0]))}var V=s.bind(null,c);return s=function(ae){V(ae)},typeof V.$$FORM_ACTION=="function"&&(s.$$FORM_ACTION=function(ae){ae=V.$$FORM_ACTION(ae),v!==void 0&&(v+="",ae.action=v);var pe=ae.data;return pe&&(B===null&&(B=v!==void 0?"p"+v:"k"+Y(JSON.stringify([z,null,C]),0)),pe.append("$ACTION_KEY",B)),ae}),[c,s,!1]}var oe=s.bind(null,c);return[c,function(ae){oe(ae)},!1]}function Ds(s){var c=Ct;return Ct+=1,Ot===null&&(Ot=[]),Se(Ot,s,c)}function Cl(){throw Error(r(393))}function Ma(){}var Cs={readContext:function(s){return s._currentValue},use:function(s){if(s!==null&&typeof s=="object"){if(typeof s.then=="function")return Ds(s);if(s.$$typeof===b)return s._currentValue}throw Error(r(438,String(s)))},useContext:function(s){return Jt(),s._currentValue},useMemo:vn,useReducer:Ne,useRef:function(s){xe=Jt(),ke=gn();var c=ke.memoizedState;return c===null?(s={current:s},ke.memoizedState=s):c},useState:function(s){return Ne(Ni,s)},useInsertionEffect:Ma,useLayoutEffect:Ma,useCallback:function(s,c){return vn(function(){return s},c)},useImperativeHandle:Ma,useEffect:Ma,useDebugValue:Ma,useDeferredValue:function(s,c){return Jt(),c!==void 0?c:s},useTransition:function(){return Jt(),[!1,Dl]},useId:function(){var s=nt.treeContext,c=s.overflow;s=s.id,s=(s&~(1<<32-K(s)-1)).toString(32)+c;var v=Oi;if(v===null)throw Error(r(404));return c=It++,s="«"+v.idPrefix+"R"+s,0<c&&(s+="H"+c.toString(32)),s+"»"},useSyncExternalStore:function(s,c,v){if(v===void 0)throw Error(r(407));return v()},useOptimistic:function(s){return Jt(),[s,Ri]},useActionState:ws,useFormState:ws,useHostTransitionStatus:function(){return Jt(),Ks},useMemoCache:function(s){for(var c=Array(s),v=0;v<s;v++)c[v]=U;return c},useCacheRefresh:function(){return Cl}},Oi=null,Bi={getCacheForType:function(){throw Error(r(248))}},Mr,Es;function aa(s){if(Mr===void 0)try{throw Error()}catch(v){var c=v.stack.trim().match(/\n( *(at )?)/);Mr=c&&c[1]||"",Es=-1<v.stack.indexOf(`
|
|
63
|
-
at`)?" (<anonymous>)":-1<v.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
64
|
-
`+Mr+s+Es}var ia=!1;function Pi(s,c){if(!s||ia)return"";ia=!0;var v=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var C={DetermineComponentFrameRoot:function(){try{if(c){var ae=function(){throw Error()};if(Object.defineProperty(ae.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ae,[])}catch(me){var pe=me}Reflect.construct(s,[],ae)}else{try{ae.call()}catch(me){pe=me}s.call(ae.prototype)}}else{try{throw Error()}catch(me){pe=me}(ae=s())&&typeof ae.catch=="function"&&ae.catch(function(){})}}catch(me){if(me&&pe&&typeof me.stack=="string")return[me.stack,pe.stack]}return[null,null]}};C.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var k=Object.getOwnPropertyDescriptor(C.DetermineComponentFrameRoot,"name");k&&k.configurable&&Object.defineProperty(C.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var B=C.DetermineComponentFrameRoot(),z=B[0],X=B[1];if(z&&X){var W=z.split(`
|
|
65
|
-
`),V=X.split(`
|
|
66
|
-
`);for(k=C=0;C<W.length&&!W[C].includes("DetermineComponentFrameRoot");)C++;for(;k<V.length&&!V[k].includes("DetermineComponentFrameRoot");)k++;if(C===W.length||k===V.length)for(C=W.length-1,k=V.length-1;1<=C&&0<=k&&W[C]!==V[k];)k--;for(;1<=C&&0<=k;C--,k--)if(W[C]!==V[k]){if(C!==1||k!==1)do if(C--,k--,0>k||W[C]!==V[k]){var oe=`
|
|
67
|
-
`+W[C].replace(" at new "," at ");return s.displayName&&oe.includes("<anonymous>")&&(oe=oe.replace("<anonymous>",s.displayName)),oe}while(1<=C&&0<=k);break}}}finally{ia=!1,Error.prepareStackTrace=v}return(v=s?s.displayName||s.name:"")?aa(v):""}function zn(s){if(typeof s=="string")return aa(s);if(typeof s=="function")return s.prototype&&s.prototype.isReactComponent?Pi(s,!0):Pi(s,!1);if(typeof s=="object"&&s!==null){switch(s.$$typeof){case D:return Pi(s.render,!1);case R:return Pi(s.type,!1);case O:var c=s,v=c._payload;c=c._init;try{s=c(v)}catch{return aa("Lazy")}return zn(s)}if(typeof s.name=="string")return v=s.env,aa(s.name+(v?" ["+v+"]":""))}switch(s){case S:return aa("SuspenseList");case F:return aa("Suspense")}return""}function Li(s){if(typeof s=="object"&&s!==null&&typeof s.environmentName=="string"){var c=s.environmentName;s=[s].slice(0),typeof s[0]=="string"?s.splice(0,1,"%c%s%c "+s[0],"background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px"," "+c+" ",""):s.splice(0,0,"%c%s%c ","background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px"," "+c+" ",""),s.unshift(console),c=hn.apply(console.error,s),c()}else console.error(s);return null}function $r(){}function Ii(s,c,v,C,k,B,z,X,W,V,oe){var ae=new Set;this.destination=null,this.flushScheduled=!1,this.resumableState=s,this.renderState=c,this.rootFormatContext=v,this.progressiveChunkSize=C===void 0?12800:C,this.status=10,this.fatalError=null,this.pendingRootTasks=this.allPendingTasks=this.nextSegmentId=0,this.completedPreambleSegments=this.completedRootSegment=null,this.abortableTasks=ae,this.pingedTasks=[],this.clientRenderedBoundaries=[],this.completedBoundaries=[],this.partialBoundaries=[],this.trackedPostpones=null,this.onError=k===void 0?Li:k,this.onPostpone=V===void 0?$r:V,this.onAllReady=B===void 0?$r:B,this.onShellReady=z===void 0?$r:z,this.onShellError=X===void 0?$r:X,this.onFatalError=W===void 0?$r:W,this.formState=oe===void 0?null:oe}function oa(s,c,v,C,k,B,z,X,W,V,oe,ae){return c=new Ii(c,v,C,k,B,z,X,W,V,oe,ae),v=Hn(c,0,null,C,!1,!1),v.parentFlushed=!0,s=sa(c,null,s,-1,null,v,null,null,c.abortableTasks,null,C,null,re,null,!1),zr(s),c.pingedTasks.push(s),c}function bn(s,c,v,C,k,B,z,X,W,V,oe){return s=oa(s,c,v,C,k,B,z,X,W,V,oe,void 0),s.trackedPostpones={workingMap:new Map,rootNodes:[],rootSlots:null},s}var Et=null;function _o(s,c){s.pingedTasks.push(c),s.pingedTasks.length===1&&(s.flushScheduled=s.destination!==null,s.trackedPostpones!==null||s.status===10?Ae(function(){return Te(s)}):ve(function(){return Te(s)}))}function Fr(s,c,v,C){return{status:0,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,completedSegments:[],byteSize:0,fallbackAbortableTasks:c,errorDigest:null,contentState:Si(),fallbackState:Si(),contentPreamble:v,fallbackPreamble:C,trackedContentKeyPath:null,trackedFallbackNode:null}}function sa(s,c,v,C,k,B,z,X,W,V,oe,ae,pe,me,Ee){s.allPendingTasks++,k===null?s.pendingRootTasks++:k.pendingTasks++;var _e={replay:null,node:v,childIndex:C,ping:function(){return _o(s,_e)},blockedBoundary:k,blockedSegment:B,blockedPreamble:z,hoistableState:X,abortSet:W,keyPath:V,formatContext:oe,context:ae,treeContext:pe,componentStack:me,thenableState:c,isFallback:Ee};return W.add(_e),_e}function za(s,c,v,C,k,B,z,X,W,V,oe,ae,pe,me){s.allPendingTasks++,B===null?s.pendingRootTasks++:B.pendingTasks++,v.pendingTasks++;var Ee={replay:v,node:C,childIndex:k,ping:function(){return _o(s,Ee)},blockedBoundary:B,blockedSegment:null,blockedPreamble:null,hoistableState:z,abortSet:X,keyPath:W,formatContext:V,context:oe,treeContext:ae,componentStack:pe,thenableState:c,isFallback:me};return X.add(Ee),Ee}function Hn(s,c,v,C,k,B){return{status:0,parentFlushed:!1,id:-1,index:c,chunks:[],children:[],preambleChildren:[],parentFormatContext:C,boundary:v,lastPushedText:k,textEmbedded:B}}function zr(s){var c=s.node;if(typeof c=="object"&&c!==null)switch(c.$$typeof){case n:s.componentStack={parent:s.componentStack,type:c.type}}}function yn(s){var c={};return s&&Object.defineProperty(c,"componentStack",{configurable:!0,enumerable:!0,get:function(){try{var v="",C=s;do v+=zn(C.type),C=C.parent;while(C);var k=v}catch(B){k=`
|
|
68
|
-
Error generating stack: `+B.message+`
|
|
69
|
-
`+B.stack}return Object.defineProperty(c,"componentStack",{value:k}),k}}),c}function it(s,c,v){if(s=s.onError,c=s(c,v),c==null||typeof c=="string")return c}function en(s,c){var v=s.onShellError,C=s.onFatalError;v(c),C(c),s.destination!==null?(s.status=14,_n(s.destination,c)):(s.status=13,s.fatalError=c)}function mr(s,c,v,C,k,B){var z=c.thenableState;for(c.thenableState=null,xe={},nt=c,Le=s,Nt=v,pn=It=0,Kt=-1,Ct=0,Ot=z,s=C(k,B);Ln;)Ln=!1,pn=It=0,Kt=-1,Ct=0,Ir+=1,ke=null,s=C(k,B);return mn(),s}function Ha(s,c,v,C,k,B,z){var X=!1;if(B!==0&&s.formState!==null){var W=c.blockedSegment;if(W!==null){X=!0,W=W.chunks;for(var V=0;V<B;V++)V===z?W.push(al):W.push(lu)}}B=c.keyPath,c.keyPath=v,k?(v=c.treeContext,c.treeContext=J(v,1,0),vr(s,c,C,-1),c.treeContext=v):X?vr(s,c,C,-1):ut(s,c,C,-1),c.keyPath=B}function la(s,c,v,C,k,B){if(typeof C=="function")if(C.prototype&&C.prototype.isReactComponent){var z=k;if("ref"in k){z={};for(var X in k)X!=="ref"&&(z[X]=k[X])}var W=C.defaultProps;if(W){z===k&&(z=qt({},z,k));for(var V in W)z[V]===void 0&&(z[V]=W[V])}k=z,z=xs,W=C.contextType,typeof W=="object"&&W!==null&&(z=W._currentValue),z=new C(k,z);var oe=z.state!==void 0?z.state:null;if(z.updater=j,z.props=k,z.state=oe,W={queue:[],replace:!1},z._reactInternals=W,B=C.contextType,z.context=typeof B=="object"&&B!==null?B._currentValue:xs,B=C.getDerivedStateFromProps,typeof B=="function"&&(B=B(k,oe),oe=B==null?oe:qt({},oe,B),z.state=oe),typeof C.getDerivedStateFromProps!="function"&&typeof z.getSnapshotBeforeUpdate!="function"&&(typeof z.UNSAFE_componentWillMount=="function"||typeof z.componentWillMount=="function"))if(C=z.state,typeof z.componentWillMount=="function"&&z.componentWillMount(),typeof z.UNSAFE_componentWillMount=="function"&&z.UNSAFE_componentWillMount(),C!==z.state&&j.enqueueReplaceState(z,z.state,null),W.queue!==null&&0<W.queue.length)if(C=W.queue,B=W.replace,W.queue=null,W.replace=!1,B&&C.length===1)z.state=C[0];else{for(W=B?C[0]:z.state,oe=!0,B=B?1:0;B<C.length;B++)V=C[B],V=typeof V=="function"?V.call(z,W,k,void 0):V,V!=null&&(oe?(oe=!1,W=qt({},W,V)):qt(W,V));z.state=W}else W.queue=null;if(C=z.render(),s.status===12)throw null;k=c.keyPath,c.keyPath=v,ut(s,c,C,-1),c.keyPath=k}else{if(C=mr(s,c,v,C,k,void 0),s.status===12)throw null;Ha(s,c,v,C,It!==0,pn,Kt)}else if(typeof C=="string")if(z=c.blockedSegment,z===null)z=k.children,W=c.formatContext,oe=c.keyPath,c.formatContext=Rr(W,C,k),c.keyPath=v,vr(s,c,z,-1),c.formatContext=W,c.keyPath=oe;else{B=po(z.chunks,C,k,s.resumableState,s.renderState,c.blockedPreamble,c.hoistableState,c.formatContext,z.lastPushedText,c.isFallback),z.lastPushedText=!1,W=c.formatContext,oe=c.keyPath,c.keyPath=v,(c.formatContext=Rr(W,C,k)).insertionMode===3?(v=Hn(s,0,null,c.formatContext,!1,!1),z.preambleChildren.push(v),v=sa(s,null,B,-1,c.blockedBoundary,v,c.blockedPreamble,c.hoistableState,s.abortableTasks,c.keyPath,c.formatContext,c.context,c.treeContext,c.componentStack,c.isFallback),zr(v),s.pingedTasks.push(v)):vr(s,c,B,-1),c.formatContext=W,c.keyPath=oe;e:{switch(c=z.chunks,s=s.resumableState,C){case"title":case"style":case"script":case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break e;case"body":if(1>=W.insertionMode){s.hasBody=!0;break e}break;case"html":if(W.insertionMode===0){s.hasHtml=!0;break e}break;case"head":if(1>=W.insertionMode)break e}c.push(pt(C))}z.lastPushedText=!1}else{switch(C){case M:case u:case h:case i:C=c.keyPath,c.keyPath=v,ut(s,c,k.children,-1),c.keyPath=C;return;case _:k.mode!=="hidden"&&(C=c.keyPath,c.keyPath=v,ut(s,c,k.children,-1),c.keyPath=C);return;case S:C=c.keyPath,c.keyPath=v,ut(s,c,k.children,-1),c.keyPath=C;return;case H:case N:throw Error(r(343));case F:e:if(c.replay!==null){C=c.keyPath,c.keyPath=v,v=k.children;try{vr(s,c,v,-1)}finally{c.keyPath=C}}else{C=c.keyPath;var ae=c.blockedBoundary;B=c.blockedPreamble;var pe=c.hoistableState;V=c.blockedSegment,X=k.fallback,k=k.children;var me=new Set,Ee=2>c.formatContext.insertionMode?Fr(s,me,at(),at()):Fr(s,me,null,null);s.trackedPostpones!==null&&(Ee.trackedContentKeyPath=v);var _e=Hn(s,V.chunks.length,Ee,c.formatContext,!1,!1);V.children.push(_e),V.lastPushedText=!1;var Je=Hn(s,0,null,c.formatContext,!1,!1);if(Je.parentFlushed=!0,s.trackedPostpones!==null){z=[v[0],"Suspense Fallback",v[2]],W=[z[1],z[2],[],null],s.trackedPostpones.workingMap.set(z,W),Ee.trackedFallbackNode=W,c.blockedSegment=_e,c.blockedPreamble=Ee.fallbackPreamble,c.keyPath=z,_e.status=6;try{vr(s,c,X,-1),_e.lastPushedText&&_e.textEmbedded&&_e.chunks.push(Yr),_e.status=1}catch(ct){throw _e.status=s.status===12?3:4,ct}finally{c.blockedSegment=V,c.blockedPreamble=B,c.keyPath=C}c=sa(s,null,k,-1,Ee,Je,Ee.contentPreamble,Ee.contentState,c.abortSet,v,c.formatContext,c.context,c.treeContext,c.componentStack,c.isFallback),zr(c),s.pingedTasks.push(c)}else{c.blockedBoundary=Ee,c.blockedPreamble=Ee.contentPreamble,c.hoistableState=Ee.contentState,c.blockedSegment=Je,c.keyPath=v,Je.status=6;try{if(vr(s,c,k,-1),Je.lastPushedText&&Je.textEmbedded&&Je.chunks.push(Yr),Je.status=1,Un(Ee,Je),Ee.pendingTasks===0&&Ee.status===0){Ee.status=1,s.pendingRootTasks===0&&c.blockedPreamble&&br(s);break e}}catch(ct){Ee.status=4,s.status===12?(Je.status=3,z=s.fatalError):(Je.status=4,z=ct),W=yn(c.componentStack),oe=it(s,z,W),Ee.errorDigest=oe,wn(s,Ee)}finally{c.blockedBoundary=ae,c.blockedPreamble=B,c.hoistableState=pe,c.blockedSegment=V,c.keyPath=C}c=sa(s,null,X,-1,ae,_e,Ee.fallbackPreamble,Ee.fallbackState,me,[v[0],"Suspense Fallback",v[2]],c.formatContext,c.context,c.treeContext,c.componentStack,!0),zr(c),s.pingedTasks.push(c)}}return}if(typeof C=="object"&&C!==null)switch(C.$$typeof){case D:if("ref"in k)for(Ee in z={},k)Ee!=="ref"&&(z[Ee]=k[Ee]);else z=k;C=mr(s,c,v,C.render,z,B),Ha(s,c,v,C,It!==0,pn,Kt);return;case R:la(s,c,v,C.type,k,B);return;case g:case b:if(W=k.children,z=c.keyPath,k=k.value,oe=C._currentValue,C._currentValue=k,B=Qr,Qr=C={parent:B,depth:B===null?0:B.depth+1,context:C,parentValue:oe,value:k},c.context=C,c.keyPath=v,ut(s,c,W,-1),s=Qr,s===null)throw Error(r(403));s.context._currentValue=s.parentValue,s=Qr=s.parent,c.context=s,c.keyPath=z;return;case p:k=k.children,C=k(C._context._currentValue),k=c.keyPath,c.keyPath=v,ut(s,c,C,-1),c.keyPath=k;return;case O:if(z=C._init,C=z(C._payload),s.status===12)throw null;la(s,c,v,C,k,B);return}throw Error(r(130,C==null?C:typeof C,""))}}function Ao(s,c,v,C,k){var B=c.replay,z=c.blockedBoundary,X=Hn(s,0,null,c.formatContext,!1,!1);X.id=v,X.parentFlushed=!0;try{c.replay=null,c.blockedSegment=X,vr(s,c,C,k),X.status=1,z===null?s.completedRootSegment=X:(Un(z,X),z.parentFlushed&&s.partialBoundaries.push(z))}finally{c.replay=B,c.blockedSegment=null}}function ut(s,c,v,C){c.replay!==null&&typeof c.replay.slots=="number"?Ao(s,c,c.replay.slots,v,C):(c.node=v,c.childIndex=C,v=c.componentStack,zr(c),xn(s,c),c.componentStack=v)}function xn(s,c){var v=c.node,C=c.childIndex;if(v!==null){if(typeof v=="object"){switch(v.$$typeof){case n:var k=v.type,B=v.key,z=v.props;v=z.ref;var X=v!==void 0?v:null,W=Kr(k),V=B??(C===-1?0:C);if(B=[c.keyPath,W,V],c.replay!==null)e:{var oe=c.replay;for(C=oe.nodes,v=0;v<C.length;v++){var ae=C[v];if(V===ae[1]){if(ae.length===4){if(W!==null&&W!==ae[0])throw Error(r(490,ae[0],W));var pe=ae[2];W=ae[3],V=c.node,c.replay={nodes:pe,slots:W,pendingTasks:1};try{if(la(s,c,B,k,z,X),c.replay.pendingTasks===1&&0<c.replay.nodes.length)throw Error(r(488));c.replay.pendingTasks--}catch(dt){if(typeof dt=="object"&&dt!==null&&(dt===Ce||typeof dt.then=="function"))throw c.node===V&&(c.replay=oe),dt;c.replay.pendingTasks--,z=yn(c.componentStack),B=c.blockedBoundary,k=dt,z=it(s,k,z),ua(s,B,pe,W,k,z)}c.replay=oe}else{if(k!==F)throw Error(r(490,"Suspense",Kr(k)||"Unknown"));t:{oe=void 0,k=ae[5],X=ae[2],W=ae[3],V=ae[4]===null?[]:ae[4][2],ae=ae[4]===null?null:ae[4][3];var me=c.keyPath,Ee=c.replay,_e=c.blockedBoundary,Je=c.hoistableState,ct=z.children,je=z.fallback,He=new Set;z=2>c.formatContext.insertionMode?Fr(s,He,at(),at()):Fr(s,He,null,null),z.parentFlushed=!0,z.rootSegmentID=k,c.blockedBoundary=z,c.hoistableState=z.contentState,c.keyPath=B,c.replay={nodes:X,slots:W,pendingTasks:1};try{if(vr(s,c,ct,-1),c.replay.pendingTasks===1&&0<c.replay.nodes.length)throw Error(r(488));if(c.replay.pendingTasks--,z.pendingTasks===0&&z.status===0){z.status=1,s.completedBoundaries.push(z);break t}}catch(dt){z.status=4,pe=yn(c.componentStack),oe=it(s,dt,pe),z.errorDigest=oe,c.replay.pendingTasks--,s.clientRenderedBoundaries.push(z)}finally{c.blockedBoundary=_e,c.hoistableState=Je,c.replay=Ee,c.keyPath=me}c=za(s,null,{nodes:V,slots:ae,pendingTasks:0},je,-1,_e,z.fallbackState,He,[B[0],"Suspense Fallback",B[2]],c.formatContext,c.context,c.treeContext,c.componentStack,!0),zr(c),s.pingedTasks.push(c)}}C.splice(v,1);break e}}}else la(s,c,B,k,z,X);return;case a:throw Error(r(257));case O:if(pe=v._init,v=pe(v._payload),s.status===12)throw null;ut(s,c,v,C);return}if(Q(v)){tn(s,c,v,C);return}if(v===null||typeof v!="object"?pe=null:(pe=q&&v[q]||v["@@iterator"],pe=typeof pe=="function"?pe:null),pe&&(pe=pe.call(v))){if(v=pe.next(),!v.done){z=[];do z.push(v.value),v=pe.next();while(!v.done);tn(s,c,z,C)}return}if(typeof v.then=="function")return c.thenableState=null,ut(s,c,Ds(v),C);if(v.$$typeof===b)return ut(s,c,v._currentValue,C);throw C=Object.prototype.toString.call(v),Error(r(31,C==="[object Object]"?"object with keys {"+Object.keys(v).join(", ")+"}":C))}typeof v=="string"?(C=c.blockedSegment,C!==null&&(C.lastPushedText=es(C.chunks,v,s.renderState,C.lastPushedText))):(typeof v=="number"||typeof v=="bigint")&&(C=c.blockedSegment,C!==null&&(C.lastPushedText=es(C.chunks,""+v,s.renderState,C.lastPushedText)))}}function tn(s,c,v,C){var k=c.keyPath;if(C!==-1&&(c.keyPath=[c.keyPath,"Fragment",C],c.replay!==null)){for(var B=c.replay,z=B.nodes,X=0;X<z.length;X++){var W=z[X];if(W[1]===C){C=W[2],W=W[3],c.replay={nodes:C,slots:W,pendingTasks:1};try{if(tn(s,c,v,-1),c.replay.pendingTasks===1&&0<c.replay.nodes.length)throw Error(r(488));c.replay.pendingTasks--}catch(ae){if(typeof ae=="object"&&ae!==null&&(ae===Ce||typeof ae.then=="function"))throw ae;c.replay.pendingTasks--,v=yn(c.componentStack);var V=c.blockedBoundary,oe=ae;v=it(s,oe,v),ua(s,V,C,W,oe,v)}c.replay=B,z.splice(X,1);break}}c.keyPath=k;return}if(B=c.treeContext,z=v.length,c.replay!==null&&(X=c.replay.slots,X!==null&&typeof X=="object")){for(C=0;C<z;C++)W=v[C],c.treeContext=J(B,z,C),V=X[C],typeof V=="number"?(Ao(s,c,V,W,C),delete X[C]):vr(s,c,W,C);c.treeContext=B,c.keyPath=k;return}for(X=0;X<z;X++)C=v[X],c.treeContext=J(B,z,X),vr(s,c,C,X);c.treeContext=B,c.keyPath=k}function wn(s,c){s=s.trackedPostpones,s!==null&&(c=c.trackedContentKeyPath,c!==null&&(c=s.workingMap.get(c),c!==void 0&&(c.length=4,c[2]=[],c[3]=null)))}function jn(s,c,v){return za(s,v,c.replay,c.node,c.childIndex,c.blockedBoundary,c.hoistableState,c.abortSet,c.keyPath,c.formatContext,c.context,c.treeContext,c.componentStack,c.isFallback)}function Mi(s,c,v){var C=c.blockedSegment,k=Hn(s,C.chunks.length,null,c.formatContext,C.lastPushedText,!0);return C.children.push(k),C.lastPushedText=!1,sa(s,v,c.node,c.childIndex,c.blockedBoundary,k,c.blockedPreamble,c.hoistableState,c.abortSet,c.keyPath,c.formatContext,c.context,c.treeContext,c.componentStack,c.isFallback)}function vr(s,c,v,C){var k=c.formatContext,B=c.context,z=c.keyPath,X=c.treeContext,W=c.componentStack,V=c.blockedSegment;if(V===null)try{return ut(s,c,v,C)}catch(pe){if(mn(),v=pe===Ce?Ke():pe,typeof v=="object"&&v!==null){if(typeof v.then=="function"){C=Mn(),s=jn(s,c,C).ping,v.then(s,s),c.formatContext=k,c.context=B,c.keyPath=z,c.treeContext=X,c.componentStack=W,P(B);return}if(v.message==="Maximum call stack size exceeded"){v=Mn(),v=jn(s,c,v),s.pingedTasks.push(v),c.formatContext=k,c.context=B,c.keyPath=z,c.treeContext=X,c.componentStack=W,P(B);return}}}else{var oe=V.children.length,ae=V.chunks.length;try{return ut(s,c,v,C)}catch(pe){if(mn(),V.children.length=oe,V.chunks.length=ae,v=pe===Ce?Ke():pe,typeof v=="object"&&v!==null){if(typeof v.then=="function"){C=Mn(),s=Mi(s,c,C).ping,v.then(s,s),c.formatContext=k,c.context=B,c.keyPath=z,c.treeContext=X,c.componentStack=W,P(B);return}if(v.message==="Maximum call stack size exceeded"){v=Mn(),v=Mi(s,c,v),s.pingedTasks.push(v),c.formatContext=k,c.context=B,c.keyPath=z,c.treeContext=X,c.componentStack=W,P(B);return}}}}throw c.formatContext=k,c.context=B,c.keyPath=z,c.treeContext=X,P(B),v}function El(s){var c=s.blockedBoundary;s=s.blockedSegment,s!==null&&(s.status=3,Hi(this,c,s))}function ua(s,c,v,C,k,B){for(var z=0;z<v.length;z++){var X=v[z];if(X.length===4)ua(s,c,X[2],X[3],k,B);else{X=X[5];var W=s,V=B,oe=Fr(W,new Set,null,null);oe.parentFlushed=!0,oe.rootSegmentID=X,oe.status=4,oe.errorDigest=V,oe.parentFlushed&&W.clientRenderedBoundaries.push(oe)}}if(v.length=0,C!==null){if(c===null)throw Error(r(487));if(c.status!==4&&(c.status=4,c.errorDigest=B,c.parentFlushed&&s.clientRenderedBoundaries.push(c)),typeof C=="object")for(var ae in C)delete C[ae]}}function Fs(s,c,v){var C=s.blockedBoundary,k=s.blockedSegment;if(k!==null){if(k.status===6)return;k.status=3}if(k=yn(s.componentStack),C===null){if(c.status!==13&&c.status!==14){if(C=s.replay,C===null){it(c,v,k),en(c,v);return}C.pendingTasks--,C.pendingTasks===0&&0<C.nodes.length&&(s=it(c,v,k),ua(c,null,C.nodes,C.slots,v,s)),c.pendingRootTasks--,c.pendingRootTasks===0&&ca(c)}}else C.pendingTasks--,C.status!==4&&(C.status=4,s=it(c,v,k),C.status=4,C.errorDigest=s,wn(c,C),C.parentFlushed&&c.clientRenderedBoundaries.push(C)),C.fallbackAbortableTasks.forEach(function(B){return Fs(B,c,v)}),C.fallbackAbortableTasks.clear();c.allPendingTasks--,c.allPendingTasks===0&&zi(c)}function ja(s,c){try{var v=s.renderState,C=v.onHeaders;if(C){var k=v.headers;if(k){v.headers=null;var B=k.preconnects;if(k.fontPreloads&&(B&&(B+=", "),B+=k.fontPreloads),k.highImagePreloads&&(B&&(B+=", "),B+=k.highImagePreloads),!c){var z=v.styles.values(),X=z.next();e:for(;0<k.remainingCapacity&&!X.done;X=z.next())for(var W=X.value.sheets.values(),V=W.next();0<k.remainingCapacity&&!V.done;V=W.next()){var oe=V.value,ae=oe.props,pe=ae.href,me=oe.props,Ee=Cr(me.href,"style",{crossOrigin:me.crossOrigin,integrity:me.integrity,nonce:me.nonce,type:me.type,fetchPriority:me.fetchPriority,referrerPolicy:me.referrerPolicy,media:me.media});if(0<=(k.remainingCapacity-=Ee.length+2))v.resets.style[pe]=Xe,B&&(B+=", "),B+=Ee,v.resets.style[pe]=typeof ae.crossOrigin=="string"||typeof ae.integrity=="string"?[ae.crossOrigin,ae.integrity]:Xe;else break e}}C(B?{Link:B}:{})}}}catch(_e){it(s,_e,{})}}function ca(s){s.trackedPostpones===null&&ja(s,!0),s.trackedPostpones===null&&br(s),s.onShellError=$r,s=s.onShellReady,s()}function zi(s){ja(s,s.trackedPostpones===null?!0:s.completedRootSegment===null||s.completedRootSegment.status!==5),br(s),s=s.onAllReady,s()}function Un(s,c){if(c.chunks.length===0&&c.children.length===1&&c.children[0].boundary===null&&c.children[0].id===-1){var v=c.children[0];v.id=c.id,v.parentFlushed=!0,v.status===1&&Un(s,v)}else s.completedSegments.push(c)}function Hi(s,c,v){if(c===null){if(v!==null&&v.parentFlushed){if(s.completedRootSegment!==null)throw Error(r(389));s.completedRootSegment=v}s.pendingRootTasks--,s.pendingRootTasks===0&&ca(s)}else c.pendingTasks--,c.status!==4&&(c.pendingTasks===0?(c.status===0&&(c.status=1),v!==null&&v.parentFlushed&&v.status===1&&Un(c,v),c.parentFlushed&&s.completedBoundaries.push(c),c.status===1&&(c.fallbackAbortableTasks.forEach(El,s),c.fallbackAbortableTasks.clear(),s.pendingRootTasks===0&&s.trackedPostpones===null&&c.contentPreamble!==null&&br(s))):v!==null&&v.parentFlushed&&v.status===1&&(Un(c,v),c.completedSegments.length===1&&c.parentFlushed&&s.partialBoundaries.push(c)));s.allPendingTasks--,s.allPendingTasks===0&&zi(s)}function Te(s){if(s.status!==14&&s.status!==13){var c=Qr,v=Ar.H;Ar.H=Cs;var C=Ar.A;Ar.A=Bi;var k=Et;Et=s;var B=Oi;Oi=s.resumableState;try{var z=s.pingedTasks,X;for(X=0;X<z.length;X++){var W=z[X],V=s,oe=W.blockedSegment;if(oe===null){var ae=V;if(W.replay.pendingTasks!==0){P(W.context);try{if(typeof W.replay.slots=="number"?Ao(ae,W,W.replay.slots,W.node,W.childIndex):xn(ae,W),W.replay.pendingTasks===1&&0<W.replay.nodes.length)throw Error(r(488));W.replay.pendingTasks--,W.abortSet.delete(W),Hi(ae,W.blockedBoundary,null)}catch(xt){mn();var pe=xt===Ce?Ke():xt;if(typeof pe=="object"&&pe!==null&&typeof pe.then=="function"){var me=W.ping;pe.then(me,me),W.thenableState=Mn()}else{W.replay.pendingTasks--,W.abortSet.delete(W);var Ee=yn(W.componentStack);V=void 0;var _e=ae,Je=W.blockedBoundary,ct=ae.status===12?ae.fatalError:pe,je=W.replay.nodes,He=W.replay.slots;V=it(_e,ct,Ee),ua(_e,Je,je,He,ct,V),ae.pendingRootTasks--,ae.pendingRootTasks===0&&ca(ae),ae.allPendingTasks--,ae.allPendingTasks===0&&zi(ae)}}finally{}}}else if(ae=void 0,_e=oe,_e.status===0){_e.status=6,P(W.context);var dt=_e.children.length,lr=_e.chunks.length;try{xn(V,W),_e.lastPushedText&&_e.textEmbedded&&_e.chunks.push(Yr),W.abortSet.delete(W),_e.status=1,Hi(V,W.blockedBoundary,_e)}catch(xt){mn(),_e.children.length=dt,_e.chunks.length=lr;var Mt=xt===Ce?Ke():V.status===12?V.fatalError:xt;if(typeof Mt=="object"&&Mt!==null&&typeof Mt.then=="function"){_e.status=0,W.thenableState=Mn();var Cn=W.ping;Mt.then(Cn,Cn)}else{var kr=yn(W.componentStack);W.abortSet.delete(W),_e.status=4;var Ft=W.blockedBoundary;ae=it(V,Mt,kr),Ft===null?en(V,Mt):(Ft.pendingTasks--,Ft.status!==4&&(Ft.status=4,Ft.errorDigest=ae,wn(V,Ft),Ft.parentFlushed&&V.clientRenderedBoundaries.push(Ft),V.pendingRootTasks===0&&V.trackedPostpones===null&&Ft.contentPreamble!==null&&br(V))),V.allPendingTasks--,V.allPendingTasks===0&&zi(V)}}finally{}}}z.splice(0,X),s.destination!==null&&Wi(s,s.destination)}catch(xt){it(s,xt,{}),en(s,xt)}finally{Oi=B,Ar.H=v,Ar.A=C,v===Cs&&P(c),Et=k}}}function ji(s,c,v){c.preambleChildren.length&&v.push(c.preambleChildren);for(var C=!1,k=0;k<c.children.length;k++)C=Dn(s,c.children[k],v)||C;return C}function Dn(s,c,v){var C=c.boundary;if(C===null)return ji(s,c,v);var k=C.contentPreamble,B=C.fallbackPreamble;if(k===null||B===null)return!1;switch(C.status){case 1:if(Or(s.renderState,k),c=C.completedSegments[0],!c)throw Error(r(391));return ji(s,c,v);case 5:if(s.trackedPostpones!==null)return!0;case 4:if(c.status===1)return Or(s.renderState,B),ji(s,c,v);default:return!0}}function br(s){if(s.completedRootSegment&&s.completedPreambleSegments===null){var c=[],v=Dn(s,s.completedRootSegment,c),C=s.renderState.preamble;(v===!1||C.headChunks&&C.bodyChunks)&&(s.completedPreambleSegments=c)}}function sr(s,c,v,C){switch(v.parentFlushed=!0,v.status){case 0:v.id=s.nextSegmentId++;case 5:return C=v.id,v.lastPushedText=!1,v.textEmbedded=!1,s=s.renderState,te(c,go),te(c,s.placeholderPrefix),s=le(C.toString(16)),te(c,s),fe(c,is);case 1:v.status=2;var k=!0,B=v.chunks,z=0;v=v.children;for(var X=0;X<v.length;X++){for(k=v[X];z<k.index;z++)te(c,B[z]);k=Ua(s,c,k,C)}for(;z<B.length-1;z++)te(c,B[z]);return z<B.length&&(k=fe(c,B[z])),k;default:throw Error(r(390))}}function Ua(s,c,v,C){var k=v.boundary;if(k===null)return sr(s,c,v,C);if(k.parentFlushed=!0,k.status===4){var B=k.errorDigest;return fe(c,Br),te(c,dl),B&&(te(c,mo),te(c,le(Oe(B))),te(c,hi)),fe(c,fl),sr(s,c,v,C),(s=k.fallbackPreamble)&&Qn(c,s),fe(c,fi)}if(k.status!==1)return k.status===0&&(k.rootSegmentID=s.nextSegmentId++),0<k.completedSegments.length&&s.partialBoundaries.push(k),os(c,s.renderState,k.rootSegmentID),C&&(k=k.fallbackState,k.styles.forEach(ys,C),k.stylesheets.forEach(_i,C)),sr(s,c,v,C),fe(c,fi);if(k.byteSize>s.progressiveChunkSize)return k.rootSegmentID=s.nextSegmentId++,s.completedBoundaries.push(k),os(c,s.renderState,k.rootSegmentID),sr(s,c,v,C),fe(c,fi);if(C&&(v=k.contentState,v.styles.forEach(ys,C),v.stylesheets.forEach(_i,C)),fe(c,ll),v=k.completedSegments,v.length!==1)throw Error(r(391));return Ua(s,c,v[0],C),(s=k.contentPreamble)&&Qn(c,s),fe(c,fi)}function da(s,c,v,C){return bi(c,s.renderState,v.parentFormatContext,v.id),Ua(s,c,v,C),On(c,v.parentFormatContext)}function Ui(s,c,v){for(var C=v.completedSegments,k=0;k<C.length;k++)Wa(s,c,v,C[k]);C.length=0,fn(c,v.contentState,s.renderState),C=s.resumableState,s=s.renderState,k=v.rootSegmentID,v=v.contentState;var B=s.stylesToHoist;return s.stylesToHoist=!1,te(c,s.startInlineScript),B?(C.instructions&2)===0?(C.instructions|=10,te(c,fu)):(C.instructions&8)===0?(C.instructions|=8,te(c,ds)):te(c,ml):(C.instructions&2)===0?(C.instructions|=2,te(c,cs)):te(c,gl),C=le(k.toString(16)),te(c,s.boundaryPrefix),te(c,C),te(c,vl),te(c,s.segmentPrefix),te(c,C),B?(te(c,hu),Fi(c,v)):te(c,xi),v=fe(c,bl),Nn(c,s)&&v}function Wa(s,c,v,C){if(C.status===2)return!0;var k=v.contentState,B=C.id;if(B===-1){if((C.id=v.rootSegmentID)===-1)throw Error(r(392));return da(s,c,C,k)}return B===v.rootSegmentID?da(s,c,C,k):(da(s,c,C,k),v=s.resumableState,s=s.renderState,te(c,s.startInlineScript),(v.instructions&1)===0?(v.instructions|=1,te(c,Bn)):te(c,yi),te(c,s.segmentPrefix),B=le(B.toString(16)),te(c,B),te(c,pl),te(c,s.placeholderPrefix),te(c,B),c=fe(c,us),c)}function Wi(s,c){Ge=new Uint8Array(2048),Ue=0;try{if(!(0<s.pendingRootTasks)){var v,C=s.completedRootSegment;if(C!==null){if(C.status===5)return;var k=s.completedPreambleSegments;if(k===null)return;var B=s.renderState,z=B.preamble,X=z.htmlChunks,W=z.headChunks,V;if(X){for(V=0;V<X.length;V++)te(c,X[V]);if(W)for(V=0;V<W.length;V++)te(c,W[V]);else te(c,yt("head")),te(c,Wt)}else if(W)for(V=0;V<W.length;V++)te(c,W[V]);var oe=B.charsetChunks;for(V=0;V<oe.length;V++)te(c,oe[V]);oe.length=0,B.preconnects.forEach(Gt,c),B.preconnects.clear();var ae=B.viewportChunks;for(V=0;V<ae.length;V++)te(c,ae[V]);ae.length=0,B.fontPreloads.forEach(Gt,c),B.fontPreloads.clear(),B.highImagePreloads.forEach(Gt,c),B.highImagePreloads.clear(),B.styles.forEach(wr,c);var pe=B.importMapChunks;for(V=0;V<pe.length;V++)te(c,pe[V]);pe.length=0,B.bootstrapScripts.forEach(Gt,c),B.scripts.forEach(Gt,c),B.scripts.clear(),B.bulkPreloads.forEach(Gt,c),B.bulkPreloads.clear();var me=B.hoistableChunks;for(V=0;V<me.length;V++)te(c,me[V]);for(B=me.length=0;B<k.length;B++){var Ee=k[B];for(z=0;z<Ee.length;z++)Ua(s,c,Ee[z],null)}var _e=s.renderState.preamble,Je=_e.headChunks;(_e.htmlChunks||Je)&&te(c,pt("head"));var ct=_e.bodyChunks;if(ct)for(k=0;k<ct.length;k++)te(c,ct[k]);Ua(s,c,C,null),s.completedRootSegment=null,Nn(c,s.renderState)}var je=s.renderState;C=0;var He=je.viewportChunks;for(C=0;C<He.length;C++)te(c,He[C]);He.length=0,je.preconnects.forEach(Gt,c),je.preconnects.clear(),je.fontPreloads.forEach(Gt,c),je.fontPreloads.clear(),je.highImagePreloads.forEach(Gt,c),je.highImagePreloads.clear(),je.styles.forEach(ms,c),je.scripts.forEach(Gt,c),je.scripts.clear(),je.bulkPreloads.forEach(Gt,c),je.bulkPreloads.clear();var dt=je.hoistableChunks;for(C=0;C<dt.length;C++)te(c,dt[C]);dt.length=0;var lr=s.clientRenderedBoundaries;for(v=0;v<lr.length;v++){var Mt=lr[v];je=c;var Cn=s.resumableState,kr=s.renderState,Ft=Mt.rootSegmentID,xt=Mt.errorDigest;te(je,kr.startInlineScript),(Cn.instructions&4)===0?(Cn.instructions|=4,te(je,xo)):te(je,pu),te(je,kr.boundaryPrefix),te(je,le(Ft.toString(16))),te(je,wo),xt&&(te(je,yl),te(je,le(Do(xt||""))));var ot=fe(je,Pa);if(!ot){s.destination=null,v++,lr.splice(0,v);return}}lr.splice(0,v);var zt=s.completedBoundaries;for(v=0;v<zt.length;v++)if(!Ui(s,c,zt[v])){s.destination=null,v++,zt.splice(0,v);return}zt.splice(0,v),Ea(c),Ge=new Uint8Array(2048),Ue=0;var Va=s.partialBoundaries;for(v=0;v<Va.length;v++){var En=Va[v];e:{lr=s,Mt=c;var Gn=En.completedSegments;for(ot=0;ot<Gn.length;ot++)if(!Wa(lr,Mt,En,Gn[ot])){ot++,Gn.splice(0,ot);var Vn=!1;break e}Gn.splice(0,ot),Vn=fn(Mt,En.contentState,lr.renderState)}if(!Vn){s.destination=null,v++,Va.splice(0,v);return}}Va.splice(0,v);var St=s.completedBoundaries;for(v=0;v<St.length;v++)if(!Ui(s,c,St[v])){s.destination=null,v++,St.splice(0,v);return}St.splice(0,v)}}finally{s.allPendingTasks===0&&s.pingedTasks.length===0&&s.clientRenderedBoundaries.length===0&&s.completedBoundaries.length===0?(s.flushScheduled=!1,v=s.resumableState,v.hasBody&&te(c,pt("body")),v.hasHtml&&te(c,pt("html")),Ea(c),s.status=14,c.close(),s.destination=null):Ea(c)}}function Qt(s){s.flushScheduled=s.destination!==null,Ae(function(){return Te(s)}),ve(function(){s.status===10&&(s.status=11),s.trackedPostpones===null&&ja(s,s.pendingRootTasks===0)})}function Wn(s){s.flushScheduled===!1&&s.pingedTasks.length===0&&s.destination!==null&&(s.flushScheduled=!0,ve(function(){var c=s.destination;c?Wi(s,c):s.flushScheduled=!1}))}function fa(s,c){if(s.status===13)s.status=14,_n(c,s.fatalError);else if(s.status!==14&&s.destination===null){s.destination=c;try{Wi(s,c)}catch(v){it(s,v,{}),en(s,v)}}}function Sr(s,c){(s.status===11||s.status===10)&&(s.status=12);try{var v=s.abortableTasks;if(0<v.size){var C=c===void 0?Error(r(432)):typeof c=="object"&&c!==null&&typeof c.then=="function"?Error(r(530)):c;s.fatalError=C,v.forEach(function(k){return Fs(k,s,C)}),v.clear()}s.destination!==null&&Wi(s,s.destination)}catch(k){it(s,k,{}),en(s,k)}}function Ga(){var s=e.version;if(s!=="19.1.1")throw Error(r(527,s,"19.1.1"))}return Ga(),Ga(),Bl.prerender=function(s,c){return new Promise(function(v,C){var k=c?c.onHeaders:void 0,B;k&&(B=function(oe){k(new Headers(oe))});var z=Nr(c?c.identifierPrefix:void 0,c?c.unstable_externalRuntimeSrc:void 0,c?c.bootstrapScriptContent:void 0,c?c.bootstrapScripts:void 0,c?c.bootstrapModules:void 0),X=bn(s,z,Qs(z,void 0,c?c.unstable_externalRuntimeSrc:void 0,c?c.importMap:void 0,B,c?c.maxHeadersLength:void 0),$o(c?c.namespaceURI:void 0),c?c.progressiveChunkSize:void 0,c?c.onError:void 0,function(){var oe={prelude:new ReadableStream({type:"bytes",pull:function(ae){fa(X,ae)},cancel:function(ae){X.destination=null,Sr(X,ae)}},{highWaterMark:0})};v(oe)},void 0,void 0,C,c?c.onPostpone:void 0);if(c&&c.signal){var W=c.signal;if(W.aborted)Sr(X,W.reason);else{var V=function(){Sr(X,W.reason),W.removeEventListener("abort",V)};W.addEventListener("abort",V)}}Qt(X)})},Bl.renderToReadableStream=function(s,c){return new Promise(function(v,C){var k,B,z=new Promise(function(me,Ee){B=me,k=Ee}),X=c?c.onHeaders:void 0,W;X&&(W=function(me){X(new Headers(me))});var V=Nr(c?c.identifierPrefix:void 0,c?c.unstable_externalRuntimeSrc:void 0,c?c.bootstrapScriptContent:void 0,c?c.bootstrapScripts:void 0,c?c.bootstrapModules:void 0),oe=oa(s,V,Qs(V,c?c.nonce:void 0,c?c.unstable_externalRuntimeSrc:void 0,c?c.importMap:void 0,W,c?c.maxHeadersLength:void 0),$o(c?c.namespaceURI:void 0),c?c.progressiveChunkSize:void 0,c?c.onError:void 0,B,function(){var me=new ReadableStream({type:"bytes",pull:function(Ee){fa(oe,Ee)},cancel:function(Ee){oe.destination=null,Sr(oe,Ee)}},{highWaterMark:0});me.allReady=z,v(me)},function(me){z.catch(function(){}),C(me)},k,c?c.onPostpone:void 0,c?c.formState:void 0);if(c&&c.signal){var ae=c.signal;if(ae.aborted)Sr(oe,ae.reason);else{var pe=function(){Sr(oe,ae.reason),ae.removeEventListener("abort",pe)};ae.addEventListener("abort",pe)}}Qt(oe)})},Bl.version="19.1.1",Bl}var Ip;function Oy(){if(Ip)return Bo;Ip=1;var e,t;return e=Ny(),t=Ry(),Bo.version=e.version,Bo.renderToString=e.renderToString,Bo.renderToStaticMarkup=e.renderToStaticMarkup,Bo.renderToReadableStream=t.renderToReadableStream,t.resume&&(Bo.resume=t.resume),Bo}var By=Oy(),Kc={exports:{}},Qc,Mp;function Py(){if(Mp)return Qc;Mp=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Qc=e,Qc}var $c,zp;function Ly(){if(zp)return $c;zp=1;var e=Py();function t(){}function r(){}return r.resetWarningCache=t,$c=function(){function n(u,h,g,p,b,D){if(D!==e){var F=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw F.name="Invariant Violation",F}}n.isRequired=n;function a(){return n}var i={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:a,element:n,elementType:n,instanceOf:a,node:n,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:r,resetWarningCache:t};return i.PropTypes=i,i},$c}var Hp;function Iy(){return Hp||(Hp=1,Kc.exports=Ly()()),Kc.exports}var My=Iy();const Jn=Nl(My);var zy=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function jp(e,t){return e(t={exports:{}},t.exports),t.exports}var Hy=jp((function(e){(function(t){var r=function(N,_,M){if(!g(_)||b(_)||D(_)||F(_)||h(_))return _;var U,H=0,q=0;if(p(_))for(U=[],q=_.length;H<q;H++)U.push(r(N,_[H],M));else for(var Q in U={},_)Object.prototype.hasOwnProperty.call(_,Q)&&(U[N(Q,M)]=r(N,_[Q],M));return U},n=function(N){return S(N)?N:(N=N.replace(/[\-_\s]+(.)?/g,(function(_,M){return M?M.toUpperCase():""}))).substr(0,1).toLowerCase()+N.substr(1)},a=function(N){var _=n(N);return _.substr(0,1).toUpperCase()+_.substr(1)},i=function(N,_){return(function(M,U){var H=(U=U||{}).separator||"_",q=U.split||/(?=[A-Z])/;return M.split(q).join(H)})(N,_).toLowerCase()},u=Object.prototype.toString,h=function(N){return typeof N=="function"},g=function(N){return N===Object(N)},p=function(N){return u.call(N)=="[object Array]"},b=function(N){return u.call(N)=="[object Date]"},D=function(N){return u.call(N)=="[object RegExp]"},F=function(N){return u.call(N)=="[object Boolean]"},S=function(N){return(N-=0)==N},R=function(N,_){var M=_&&"process"in _?_.process:_;return typeof M!="function"?N:function(U,H){return M(U,N,H)}},O={camelize:n,decamelize:i,pascalize:a,depascalize:i,camelizeKeys:function(N,_){return r(R(n,_),N)},decamelizeKeys:function(N,_){return r(R(i,_),N,_)},pascalizeKeys:function(N,_){return r(R(a,_),N)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=O:t.humps=O})(zy)})).decamelize,jy=function(e){if(Array.isArray(e))return e},Uy=function(e,t){if(typeof Symbol<"u"&&Symbol.iterator in Object(e)){var r=[],n=!0,a=!1,i=void 0;try{for(var u,h=e[Symbol.iterator]();!(n=(u=h.next()).done)&&(r.push(u.value),r.length!==t);n=!0);}catch(g){a=!0,i=g}finally{try{n||h.return==null||h.return()}finally{if(a)throw i}}return r}},Up=function(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n},Wy=function(e,t){if(e){if(typeof e=="string")return Up(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Up(e,t):void 0}},Gy=function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
70
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)},Vy=function(e,t){return jy(e)||Uy(e,t)||Wy(e,t)||Gy()},Wp=jp((function(e){function t(){return e.exports=t=Object.assign||function(r){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(r[i]=a[i])}return r},t.apply(this,arguments)}e.exports=t})),Yy=function(e,t){if(e==null)return{};var r,n,a={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(a[r]=e[r]);return a},Gp=function(e,t){if(e==null)return{};var r,n,a=Yy(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a},Jy=I.createContext(null);function Vp(e){var t=e.children,r=t===void 0?"":t,n=Gp(e,["children"]);return typeof r!="string"&&(r=By.renderToString(r)),I.createElement("template",Wp({},n,{dangerouslySetInnerHTML:{__html:r}}))}function Yp(e){var t=e.root,r=e.children;return Yn.createPortal(r===void 0?null:r,t)}function Xy(e){var t=I.forwardRef((function(r,n){var a,i,u=r.mode,h=u===void 0?"open":u,g=r.delegatesFocus,p=g!==void 0&&g,b=r.styleSheets,D=b===void 0?[]:b,F=r.ssr,S=F!==void 0&&F,R=r.children,O=Gp(r,["mode","delegatesFocus","styleSheets","ssr","children"]),N=(i=I.useRef((a=n)&&a.current),I.useEffect((function(){a&&(a.current=i.current)}),[a]),i),_=I.useState(null),M=Vy(_,2),U=M[0],H=M[1],q="node_".concat(h).concat(p);return I.useLayoutEffect((function(){if(N.current)try{if(typeof n=="function"&&n(N.current),S){var Q=N.current.shadowRoot;return void H(Q)}var Y=N.current.attachShadow({mode:h,delegatesFocus:p});D.length>0&&(Y.adoptedStyleSheets=D),H(Y)}catch(ie){(function(ee){var ve=ee.error,ge=ee.styleSheets,Ie=ee.root;switch(ve.name){case"NotSupportedError":ge.length>0&&(Ie.adoptedStyleSheets=ge);break;default:throw ve}})({error:ie,styleSheets:D,root:U})}}),[n,N,D]),I.createElement(I.Fragment,null,I.createElement(e.tag,Wp({key:q,ref:N},O),(U||S)&&I.createElement(Jy.Provider,{value:U},S?I.createElement(Vp,{shadowroot:h,shadowrootmode:h},e.render({root:U,ssr:S,children:R})):I.createElement(Yp,{root:U},e.render({root:U,ssr:S,children:R})))))}));return t.propTypes={mode:Jn.oneOf(["open","closed"]),delegatesFocus:Jn.bool,styleSheets:Jn.arrayOf(Jn.instanceOf(globalThis.CSSStyleSheet)),ssr:Jn.bool,children:Jn.node},t}Vp.propTypes={children:Jn.oneOfType([Jn.string,Jn.node])},Yp.propTypes={root:Jn.object.isRequired,children:Jn.node};var ed=new Map;function Zy(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"core",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(n){return n.children};return new Proxy(e,{get:function(n,a){var i=Hy(a,{separator:"-"}),u="".concat(t,"-").concat(i);return ed.has(u)||ed.set(u,Xy({tag:i,render:r})),ed.get(u)}})}var qy=Zy();function cr(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];throw Error("[Immer] minified error nr: "+e+(r.length?" "+r.map((function(a){return"'"+a+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Po(e){return!!e&&!!e[Qe]}function ga(e){var t;return!!e&&((function(r){if(!r||typeof r!="object")return!1;var n=Object.getPrototypeOf(r);if(n===null)return!0;var a=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return a===Object||typeof a=="function"&&Function.toString.call(a)===i2})(e)||Array.isArray(e)||!!e[Ml]||!!(!((t=e.constructor)===null||t===void 0)&&t[Ml])||Bu(e)||Pu(e))}function Lo(e,t,r){r===void 0&&(r=!1),Ki(e)===0?(r?Object.keys:dd)(e).forEach((function(n){r&&typeof n=="symbol"||t(n,e[n],e)})):e.forEach((function(n,a){return t(a,n,e)}))}function Ki(e){var t=e[Qe];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:Bu(e)?2:Pu(e)?3:0}function Pl(e,t){return Ki(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Ou(e,t){return Ki(e)===2?e.get(t):e[t]}function Jp(e,t,r){var n=Ki(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function Ky(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function Bu(e){return n2&&e instanceof Map}function Pu(e){return a2&&e instanceof Set}function er(e){return e.o||e.t}function td(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=o2(e);delete t[Qe];for(var r=dd(t),n=0;n<r.length;n++){var a=r[n],i=t[a];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[a]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[a]})}return Object.create(Object.getPrototypeOf(e),t)}function rd(e,t){return t===void 0&&(t=!1),nd(e)||Po(e)||!ga(e)||(Ki(e)>1&&(e.set=e.add=e.clear=e.delete=Qy),Object.freeze(e),t&&Lo(e,(function(r,n){return rd(n,!0)}),!0)),e}function Qy(){cr(2)}function nd(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function ma(e){var t=fd[e];return t||cr(18,e),t}function Xp(e,t){fd[e]||(fd[e]=t)}function Lu(){return Il}function ad(e,t){t&&(ma("Patches"),e.u=[],e.s=[],e.v=t)}function Iu(e){id(e),e.p.forEach($y),e.p=null}function id(e){e===Il&&(Il=e.l)}function Zp(e){return Il={p:[],l:Il,h:e,m:!0,_:0}}function $y(e){var t=e[Qe];t.i===0||t.i===1?t.j():t.g=!0}function od(e,t){t._=t.p.length;var r=t.p[0],n=e!==void 0&&e!==r;return t.h.O||ma("ES5").S(t,e,n),n?(r[Qe].P&&(Iu(t),cr(4)),ga(e)&&(e=Mu(t,e),t.l||zu(t,e)),t.u&&ma("Patches").M(r[Qe].t,e,t.u,t.s)):e=Mu(t,r,[]),Iu(t),t.u&&t.v(t.u,t.s),e!==cd?e:void 0}function Mu(e,t,r){if(nd(t))return t;var n=t[Qe];if(!n)return Lo(t,(function(h,g){return qp(e,n,t,h,g,r)}),!0),t;if(n.A!==e)return t;if(!n.P)return zu(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=td(n.k):n.o,i=a,u=!1;n.i===3&&(i=new Set(a),a.clear(),u=!0),Lo(i,(function(h,g){return qp(e,n,a,h,g,r,u)})),zu(e,a,!1),r&&e.u&&ma("Patches").N(n,r,e.u,e.s)}return n.o}function qp(e,t,r,n,a,i,u){if(Po(a)){var h=Mu(e,a,i&&t&&t.i!==3&&!Pl(t.R,n)?i.concat(n):void 0);if(Jp(r,n,h),!Po(h))return;e.m=!1}else u&&r.add(a);if(ga(a)&&!nd(a)){if(!e.h.D&&e._<1)return;Mu(e,a),t&&t.A.l||zu(e,a)}}function zu(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&rd(t,r)}function sd(e,t){var r=e[Qe];return(r?er(r):e)[t]}function Kp(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function Za(e){e.P||(e.P=!0,e.l&&Za(e.l))}function ld(e){e.o||(e.o=td(e.t))}function Ll(e,t,r){var n=Bu(t)?ma("MapSet").F(t,r):Pu(t)?ma("MapSet").T(t,r):e.O?(function(a,i){var u=Array.isArray(a),h={i:u?1:0,A:i?i.A:Lu(),P:!1,I:!1,R:{},l:i,t:a,k:null,o:null,j:null,C:!1},g=h,p=hd;u&&(g=[h],p=zl);var b=Proxy.revocable(g,p),D=b.revoke,F=b.proxy;return h.k=F,h.j=D,F})(t,r):ma("ES5").J(t,r);return(r?r.A:Lu()).p.push(n),n}function e2(e){return Po(e)||cr(22,e),(function t(r){if(!ga(r))return r;var n,a=r[Qe],i=Ki(r);if(a){if(!a.P&&(a.i<4||!ma("ES5").K(a)))return a.t;a.I=!0,n=Qp(r,i),a.I=!1}else n=Qp(r,i);return Lo(n,(function(u,h){a&&Ou(a.t,u)===h||Jp(n,u,t(h))})),i===3?new Set(n):n})(e)}function Qp(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return td(e)}function t2(){function e(n){if(!ga(n))return n;if(Array.isArray(n))return n.map(e);if(Bu(n))return new Map(Array.from(n.entries()).map((function(u){return[u[0],e(u[1])]})));if(Pu(n))return new Set(Array.from(n).map(e));var a=Object.create(Object.getPrototypeOf(n));for(var i in n)a[i]=e(n[i]);return Pl(n,Ml)&&(a[Ml]=n[Ml]),a}function t(n){return Po(n)?e(n):n}var r="add";Xp("Patches",{$:function(n,a){return a.forEach((function(i){for(var u=i.path,h=i.op,g=n,p=0;p<u.length-1;p++){var b=Ki(g),D=u[p];typeof D!="string"&&typeof D!="number"&&(D=""+D),b!==0&&b!==1||D!=="__proto__"&&D!=="constructor"||cr(24),typeof g=="function"&&D==="prototype"&&cr(24),typeof(g=Ou(g,D))!="object"&&cr(15,u.join("/"))}var F=Ki(g),S=e(i.value),R=u[u.length-1];switch(h){case"replace":switch(F){case 2:return g.set(R,S);case 3:cr(16);default:return g[R]=S}case r:switch(F){case 1:return R==="-"?g.push(S):g.splice(R,0,S);case 2:return g.set(R,S);case 3:return g.add(S);default:return g[R]=S}case"remove":switch(F){case 1:return g.splice(R,1);case 2:return g.delete(R);case 3:return g.delete(i.value);default:return delete g[R]}default:cr(17,h)}})),n},N:function(n,a,i,u){switch(n.i){case 0:case 4:case 2:return(function(h,g,p,b){var D=h.t,F=h.o;Lo(h.R,(function(S,R){var O=Ou(D,S),N=Ou(F,S),_=R?Pl(D,S)?"replace":r:"remove";if(O!==N||_!=="replace"){var M=g.concat(S);p.push(_==="remove"?{op:_,path:M}:{op:_,path:M,value:N}),b.push(_===r?{op:"remove",path:M}:_==="remove"?{op:r,path:M,value:t(O)}:{op:"replace",path:M,value:t(O)})}}))})(n,a,i,u);case 5:case 1:return(function(h,g,p,b){var D=h.t,F=h.R,S=h.o;if(S.length<D.length){var R=[S,D];D=R[0],S=R[1];var O=[b,p];p=O[0],b=O[1]}for(var N=0;N<D.length;N++)if(F[N]&&S[N]!==D[N]){var _=g.concat([N]);p.push({op:"replace",path:_,value:t(S[N])}),b.push({op:"replace",path:_,value:t(D[N])})}for(var M=D.length;M<S.length;M++){var U=g.concat([M]);p.push({op:r,path:U,value:t(S[M])})}D.length<S.length&&b.push({op:"replace",path:g.concat(["length"]),value:D.length})})(n,a,i,u);case 3:return(function(h,g,p,b){var D=h.t,F=h.o,S=0;D.forEach((function(R){if(!F.has(R)){var O=g.concat([S]);p.push({op:"remove",path:O,value:R}),b.unshift({op:r,path:O,value:R})}S++})),S=0,F.forEach((function(R){if(!D.has(R)){var O=g.concat([S]);p.push({op:r,path:O,value:R}),b.unshift({op:"remove",path:O,value:R})}S++}))})(n,a,i,u)}},M:function(n,a,i,u){i.push({op:"replace",path:[],value:a===cd?void 0:a}),u.push({op:"replace",path:[],value:n})}})}function r2(){function e(h,g){function p(){this.constructor=h}a(h,g),h.prototype=(p.prototype=g.prototype,new p)}function t(h){h.o||(h.R=new Map,h.o=new Map(h.t))}function r(h){h.o||(h.o=new Set,h.t.forEach((function(g){if(ga(g)){var p=Ll(h.A.h,g,h);h.p.set(g,p),h.o.add(p)}else h.o.add(g)})))}function n(h){h.g&&cr(3,JSON.stringify(er(h)))}var a=function(h,g){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,b){p.__proto__=b}||function(p,b){for(var D in b)b.hasOwnProperty(D)&&(p[D]=b[D])})(h,g)},i=(function(){function h(p,b){return this[Qe]={i:2,l:b,A:b?b.A:Lu(),P:!1,I:!1,o:void 0,R:void 0,t:p,k:this,C:!1,g:!1},this}e(h,Map);var g=h.prototype;return Object.defineProperty(g,"size",{get:function(){return er(this[Qe]).size}}),g.has=function(p){return er(this[Qe]).has(p)},g.set=function(p,b){var D=this[Qe];return n(D),er(D).has(p)&&er(D).get(p)===b||(t(D),Za(D),D.R.set(p,!0),D.o.set(p,b),D.R.set(p,!0)),this},g.delete=function(p){if(!this.has(p))return!1;var b=this[Qe];return n(b),t(b),Za(b),b.t.has(p)?b.R.set(p,!1):b.R.delete(p),b.o.delete(p),!0},g.clear=function(){var p=this[Qe];n(p),er(p).size&&(t(p),Za(p),p.R=new Map,Lo(p.t,(function(b){p.R.set(b,!1)})),p.o.clear())},g.forEach=function(p,b){var D=this;er(this[Qe]).forEach((function(F,S){p.call(b,D.get(S),S,D)}))},g.get=function(p){var b=this[Qe];n(b);var D=er(b).get(p);if(b.I||!ga(D)||D!==b.t.get(p))return D;var F=Ll(b.A.h,D,b);return t(b),b.o.set(p,F),F},g.keys=function(){return er(this[Qe]).keys()},g.values=function(){var p,b=this,D=this.keys();return(p={})[Hu]=function(){return b.values()},p.next=function(){var F=D.next();return F.done?F:{done:!1,value:b.get(F.value)}},p},g.entries=function(){var p,b=this,D=this.keys();return(p={})[Hu]=function(){return b.entries()},p.next=function(){var F=D.next();if(F.done)return F;var S=b.get(F.value);return{done:!1,value:[F.value,S]}},p},g[Hu]=function(){return this.entries()},h})(),u=(function(){function h(p,b){return this[Qe]={i:3,l:b,A:b?b.A:Lu(),P:!1,I:!1,o:void 0,t:p,k:this,p:new Map,g:!1,C:!1},this}e(h,Set);var g=h.prototype;return Object.defineProperty(g,"size",{get:function(){return er(this[Qe]).size}}),g.has=function(p){var b=this[Qe];return n(b),b.o?!!b.o.has(p)||!(!b.p.has(p)||!b.o.has(b.p.get(p))):b.t.has(p)},g.add=function(p){var b=this[Qe];return n(b),this.has(p)||(r(b),Za(b),b.o.add(p)),this},g.delete=function(p){if(!this.has(p))return!1;var b=this[Qe];return n(b),r(b),Za(b),b.o.delete(p)||!!b.p.has(p)&&b.o.delete(b.p.get(p))},g.clear=function(){var p=this[Qe];n(p),er(p).size&&(r(p),Za(p),p.o.clear())},g.values=function(){var p=this[Qe];return n(p),r(p),p.o.values()},g.entries=function(){var p=this[Qe];return n(p),r(p),p.o.entries()},g.keys=function(){return this.values()},g[Hu]=function(){return this.values()},g.forEach=function(p,b){for(var D=this.values(),F=D.next();!F.done;)p.call(b,F.value,F.value,this),F=D.next()},h})();Xp("MapSet",{F:function(h,g){return new i(h,g)},T:function(h,g){return new u(h,g)}})}var $p,Il,ud=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",n2=typeof Map<"u",a2=typeof Set<"u",eg=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",cd=ud?Symbol.for("immer-nothing"):(($p={})["immer-nothing"]=!0,$p),Ml=ud?Symbol.for("immer-draftable"):"__$immer_draftable",Qe=ud?Symbol.for("immer-state"):"__$immer_state",Hu=typeof Symbol<"u"&&Symbol.iterator||"@@iterator",i2=""+Object.prototype.constructor,dd=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,o2=Object.getOwnPropertyDescriptors||function(e){var t={};return dd(e).forEach((function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)})),t},fd={},hd={get:function(e,t){if(t===Qe)return e;var r=er(e);if(!Pl(r,t))return(function(a,i,u){var h,g=Kp(i,u);return g?"value"in g?g.value:(h=g.get)===null||h===void 0?void 0:h.call(a.k):void 0})(e,r,t);var n=r[t];return e.I||!ga(n)?n:n===sd(e.t,t)?(ld(e),e.o[t]=Ll(e.A.h,n,e)):n},has:function(e,t){return t in er(e)},ownKeys:function(e){return Reflect.ownKeys(er(e))},set:function(e,t,r){var n=Kp(er(e),t);if(n?.set)return n.set.call(e.k,r),!0;if(!e.P){var a=sd(er(e),t),i=a?.[Qe];if(i&&i.t===r)return e.o[t]=r,e.R[t]=!1,!0;if(Ky(r,a)&&(r!==void 0||Pl(e.t,t)))return!0;ld(e),Za(e)}return e.o[t]===r&&(r!==void 0||t in e.o)||Number.isNaN(r)&&Number.isNaN(e.o[t])||(e.o[t]=r,e.R[t]=!0),!0},deleteProperty:function(e,t){return sd(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,ld(e),Za(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=er(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty:function(){cr(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){cr(12)}},zl={};Lo(hd,(function(e,t){zl[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),zl.deleteProperty=function(e,t){return zl.set.call(this,e,t,void 0)},zl.set=function(e,t,r){return hd.set.call(this,e[0],t,r,e[0])};var s2=(function(){function e(r){var n=this;this.O=eg,this.D=!0,this.produce=function(a,i,u){if(typeof a=="function"&&typeof i!="function"){var h=i;i=a;var g=n;return function(O){var N=this;O===void 0&&(O=h);for(var _=arguments.length,M=Array(_>1?_-1:0),U=1;U<_;U++)M[U-1]=arguments[U];return g.produce(O,(function(H){var q;return(q=i).call.apply(q,[N,H].concat(M))}))}}var p;if(typeof i!="function"&&cr(6),u!==void 0&&typeof u!="function"&&cr(7),ga(a)){var b=Zp(n),D=Ll(n,a,void 0),F=!0;try{p=i(D),F=!1}finally{F?Iu(b):id(b)}return typeof Promise<"u"&&p instanceof Promise?p.then((function(O){return ad(b,u),od(O,b)}),(function(O){throw Iu(b),O})):(ad(b,u),od(p,b))}if(!a||typeof a!="object"){if((p=i(a))===void 0&&(p=a),p===cd&&(p=void 0),n.D&&rd(p,!0),u){var S=[],R=[];ma("Patches").M(a,p,S,R),u(S,R)}return p}cr(21,a)},this.produceWithPatches=function(a,i){if(typeof a=="function")return function(p){for(var b=arguments.length,D=Array(b>1?b-1:0),F=1;F<b;F++)D[F-1]=arguments[F];return n.produceWithPatches(p,(function(S){return a.apply(void 0,[S].concat(D))}))};var u,h,g=n.produce(a,i,(function(p,b){u=p,h=b}));return typeof Promise<"u"&&g instanceof Promise?g.then((function(p){return[p,u,h]})):[g,u,h]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var t=e.prototype;return t.createDraft=function(r){ga(r)||cr(8),Po(r)&&(r=e2(r));var n=Zp(this),a=Ll(this,r,void 0);return a[Qe].C=!0,id(n),a},t.finishDraft=function(r,n){var a=r&&r[Qe],i=a.A;return ad(i,n),od(void 0,i)},t.setAutoFreeze=function(r){this.D=r},t.setUseProxies=function(r){r&&!eg&&cr(20),this.O=r},t.applyPatches=function(r,n){var a;for(a=n.length-1;a>=0;a--){var i=n[a];if(i.path.length===0&&i.op==="replace"){r=i.value;break}}a>-1&&(n=n.slice(a+1));var u=ma("Patches").$;return Po(r)?u(r,n):this.produce(r,(function(h){return u(h,n)}))},e})(),nn=new s2,l2=nn.produce,tg=nn.produceWithPatches.bind(nn);nn.setAutoFreeze.bind(nn),nn.setUseProxies.bind(nn);var rg=nn.applyPatches.bind(nn);nn.createDraft.bind(nn),nn.finishDraft.bind(nn);var pd,ng;function u2(){if(ng)return pd;ng=1;function e(){this.__data__=[],this.size=0}return pd=e,pd}var gd,ag;function ig(){if(ag)return gd;ag=1;function e(t,r){return t===r||t!==t&&r!==r}return gd=e,gd}var md,og;function ju(){if(og)return md;og=1;var e=ig();function t(r,n){for(var a=r.length;a--;)if(e(r[a][0],n))return a;return-1}return md=t,md}var vd,sg;function c2(){if(sg)return vd;sg=1;var e=ju(),t=Array.prototype,r=t.splice;function n(a){var i=this.__data__,u=e(i,a);if(u<0)return!1;var h=i.length-1;return u==h?i.pop():r.call(i,u,1),--this.size,!0}return vd=n,vd}var bd,lg;function d2(){if(lg)return bd;lg=1;var e=ju();function t(r){var n=this.__data__,a=e(n,r);return a<0?void 0:n[a][1]}return bd=t,bd}var yd,ug;function f2(){if(ug)return yd;ug=1;var e=ju();function t(r){return e(this.__data__,r)>-1}return yd=t,yd}var xd,cg;function h2(){if(cg)return xd;cg=1;var e=ju();function t(r,n){var a=this.__data__,i=e(a,r);return i<0?(++this.size,a.push([r,n])):a[i][1]=n,this}return xd=t,xd}var wd,dg;function Uu(){if(dg)return wd;dg=1;var e=u2(),t=c2(),r=d2(),n=f2(),a=h2();function i(u){var h=-1,g=u==null?0:u.length;for(this.clear();++h<g;){var p=u[h];this.set(p[0],p[1])}}return i.prototype.clear=e,i.prototype.delete=t,i.prototype.get=r,i.prototype.has=n,i.prototype.set=a,wd=i,wd}var Dd,fg;function p2(){if(fg)return Dd;fg=1;var e=Uu();function t(){this.__data__=new e,this.size=0}return Dd=t,Dd}var Cd,hg;function g2(){if(hg)return Cd;hg=1;function e(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n}return Cd=e,Cd}var Ed,pg;function m2(){if(pg)return Ed;pg=1;function e(t){return this.__data__.get(t)}return Ed=e,Ed}var Fd,gg;function v2(){if(gg)return Fd;gg=1;function e(t){return this.__data__.has(t)}return Fd=e,Fd}var Sd,mg;function vg(){if(mg)return Sd;mg=1;var e=typeof Ru=="object"&&Ru&&Ru.Object===Object&&Ru;return Sd=e,Sd}var kd,bg;function qa(){if(bg)return kd;bg=1;var e=vg(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return kd=r,kd}var Td,yg;function _d(){if(yg)return Td;yg=1;var e=qa(),t=e.Symbol;return Td=t,Td}var Ad,xg;function b2(){if(xg)return Ad;xg=1;var e=_d(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,a=e?e.toStringTag:void 0;function i(u){var h=r.call(u,a),g=u[a];try{u[a]=void 0;var p=!0}catch{}var b=n.call(u);return p&&(h?u[a]=g:delete u[a]),b}return Ad=i,Ad}var Nd,wg;function y2(){if(wg)return Nd;wg=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return Nd=r,Nd}var Rd,Dg;function Wu(){if(Dg)return Rd;Dg=1;var e=_d(),t=b2(),r=y2(),n="[object Null]",a="[object Undefined]",i=e?e.toStringTag:void 0;function u(h){return h==null?h===void 0?a:n:i&&i in Object(h)?t(h):r(h)}return Rd=u,Rd}var Od,Cg;function Eg(){if(Cg)return Od;Cg=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return Od=e,Od}var Bd,Fg;function Pd(){if(Fg)return Bd;Fg=1;var e=Wu(),t=Eg(),r="[object AsyncFunction]",n="[object Function]",a="[object GeneratorFunction]",i="[object Proxy]";function u(h){if(!t(h))return!1;var g=e(h);return g==n||g==a||g==r||g==i}return Bd=u,Bd}var Ld,Sg;function x2(){if(Sg)return Ld;Sg=1;var e=qa(),t=e["__core-js_shared__"];return Ld=t,Ld}var Id,kg;function w2(){if(kg)return Id;kg=1;var e=x2(),t=(function(){var n=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""})();function r(n){return!!t&&t in n}return Id=r,Id}var Md,Tg;function _g(){if(Tg)return Md;Tg=1;var e=Function.prototype,t=e.toString;function r(n){if(n!=null){try{return t.call(n)}catch{}try{return n+""}catch{}}return""}return Md=r,Md}var zd,Ag;function D2(){if(Ag)return zd;Ag=1;var e=Pd(),t=w2(),r=Eg(),n=_g(),a=/[\\^$.*+?()[\]{}|]/g,i=/^\[object .+?Constructor\]$/,u=Function.prototype,h=Object.prototype,g=u.toString,p=h.hasOwnProperty,b=RegExp("^"+g.call(p).replace(a,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function D(F){if(!r(F)||t(F))return!1;var S=e(F)?b:i;return S.test(n(F))}return zd=D,zd}var Hd,Ng;function C2(){if(Ng)return Hd;Ng=1;function e(t,r){return t?.[r]}return Hd=e,Hd}var jd,Rg;function Ls(){if(Rg)return jd;Rg=1;var e=D2(),t=C2();function r(n,a){var i=t(n,a);return e(i)?i:void 0}return jd=r,jd}var Ud,Og;function Wd(){if(Og)return Ud;Og=1;var e=Ls(),t=qa(),r=e(t,"Map");return Ud=r,Ud}var Gd,Bg;function Gu(){if(Bg)return Gd;Bg=1;var e=Ls(),t=e(Object,"create");return Gd=t,Gd}var Vd,Pg;function E2(){if(Pg)return Vd;Pg=1;var e=Gu();function t(){this.__data__=e?e(null):{},this.size=0}return Vd=t,Vd}var Yd,Lg;function F2(){if(Lg)return Yd;Lg=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return Yd=e,Yd}var Jd,Ig;function S2(){if(Ig)return Jd;Ig=1;var e=Gu(),t="__lodash_hash_undefined__",r=Object.prototype,n=r.hasOwnProperty;function a(i){var u=this.__data__;if(e){var h=u[i];return h===t?void 0:h}return n.call(u,i)?u[i]:void 0}return Jd=a,Jd}var Xd,Mg;function k2(){if(Mg)return Xd;Mg=1;var e=Gu(),t=Object.prototype,r=t.hasOwnProperty;function n(a){var i=this.__data__;return e?i[a]!==void 0:r.call(i,a)}return Xd=n,Xd}var Zd,zg;function T2(){if(zg)return Zd;zg=1;var e=Gu(),t="__lodash_hash_undefined__";function r(n,a){var i=this.__data__;return this.size+=this.has(n)?0:1,i[n]=e&&a===void 0?t:a,this}return Zd=r,Zd}var qd,Hg;function _2(){if(Hg)return qd;Hg=1;var e=E2(),t=F2(),r=S2(),n=k2(),a=T2();function i(u){var h=-1,g=u==null?0:u.length;for(this.clear();++h<g;){var p=u[h];this.set(p[0],p[1])}}return i.prototype.clear=e,i.prototype.delete=t,i.prototype.get=r,i.prototype.has=n,i.prototype.set=a,qd=i,qd}var Kd,jg;function A2(){if(jg)return Kd;jg=1;var e=_2(),t=Uu(),r=Wd();function n(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return Kd=n,Kd}var Qd,Ug;function N2(){if(Ug)return Qd;Ug=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return Qd=e,Qd}var $d,Wg;function Vu(){if(Wg)return $d;Wg=1;var e=N2();function t(r,n){var a=r.__data__;return e(n)?a[typeof n=="string"?"string":"hash"]:a.map}return $d=t,$d}var ef,Gg;function R2(){if(Gg)return ef;Gg=1;var e=Vu();function t(r){var n=e(this,r).delete(r);return this.size-=n?1:0,n}return ef=t,ef}var tf,Vg;function O2(){if(Vg)return tf;Vg=1;var e=Vu();function t(r){return e(this,r).get(r)}return tf=t,tf}var rf,Yg;function B2(){if(Yg)return rf;Yg=1;var e=Vu();function t(r){return e(this,r).has(r)}return rf=t,rf}var nf,Jg;function P2(){if(Jg)return nf;Jg=1;var e=Vu();function t(r,n){var a=e(this,r),i=a.size;return a.set(r,n),this.size+=a.size==i?0:1,this}return nf=t,nf}var af,Xg;function Zg(){if(Xg)return af;Xg=1;var e=A2(),t=R2(),r=O2(),n=B2(),a=P2();function i(u){var h=-1,g=u==null?0:u.length;for(this.clear();++h<g;){var p=u[h];this.set(p[0],p[1])}}return i.prototype.clear=e,i.prototype.delete=t,i.prototype.get=r,i.prototype.has=n,i.prototype.set=a,af=i,af}var of,qg;function L2(){if(qg)return of;qg=1;var e=Uu(),t=Wd(),r=Zg(),n=200;function a(i,u){var h=this.__data__;if(h instanceof e){var g=h.__data__;if(!t||g.length<n-1)return g.push([i,u]),this.size=++h.size,this;h=this.__data__=new r(g)}return h.set(i,u),this.size=h.size,this}return of=a,of}var sf,Kg;function I2(){if(Kg)return sf;Kg=1;var e=Uu(),t=p2(),r=g2(),n=m2(),a=v2(),i=L2();function u(h){var g=this.__data__=new e(h);this.size=g.size}return u.prototype.clear=t,u.prototype.delete=r,u.prototype.get=n,u.prototype.has=a,u.prototype.set=i,sf=u,sf}var lf,Qg;function M2(){if(Qg)return lf;Qg=1;var e="__lodash_hash_undefined__";function t(r){return this.__data__.set(r,e),this}return lf=t,lf}var uf,$g;function z2(){if($g)return uf;$g=1;function e(t){return this.__data__.has(t)}return uf=e,uf}var cf,em;function H2(){if(em)return cf;em=1;var e=Zg(),t=M2(),r=z2();function n(a){var i=-1,u=a==null?0:a.length;for(this.__data__=new e;++i<u;)this.add(a[i])}return n.prototype.add=n.prototype.push=t,n.prototype.has=r,cf=n,cf}var df,tm;function j2(){if(tm)return df;tm=1;function e(t,r){for(var n=-1,a=t==null?0:t.length;++n<a;)if(r(t[n],n,t))return!0;return!1}return df=e,df}var ff,rm;function U2(){if(rm)return ff;rm=1;function e(t,r){return t.has(r)}return ff=e,ff}var hf,nm;function am(){if(nm)return hf;nm=1;var e=H2(),t=j2(),r=U2(),n=1,a=2;function i(u,h,g,p,b,D){var F=g&n,S=u.length,R=h.length;if(S!=R&&!(F&&R>S))return!1;var O=D.get(u),N=D.get(h);if(O&&N)return O==h&&N==u;var _=-1,M=!0,U=g&a?new e:void 0;for(D.set(u,h),D.set(h,u);++_<S;){var H=u[_],q=h[_];if(p)var Q=F?p(q,H,_,h,u,D):p(H,q,_,u,h,D);if(Q!==void 0){if(Q)continue;M=!1;break}if(U){if(!t(h,function(Y,ie){if(!r(U,ie)&&(H===Y||b(H,Y,g,p,D)))return U.push(ie)})){M=!1;break}}else if(!(H===q||b(H,q,g,p,D))){M=!1;break}}return D.delete(u),D.delete(h),M}return hf=i,hf}var pf,im;function W2(){if(im)return pf;im=1;var e=qa(),t=e.Uint8Array;return pf=t,pf}var gf,om;function G2(){if(om)return gf;om=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(a,i){n[++r]=[i,a]}),n}return gf=e,gf}var mf,sm;function V2(){if(sm)return mf;sm=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(a){n[++r]=a}),n}return mf=e,mf}var vf,lm;function Y2(){if(lm)return vf;lm=1;var e=_d(),t=W2(),r=ig(),n=am(),a=G2(),i=V2(),u=1,h=2,g="[object Boolean]",p="[object Date]",b="[object Error]",D="[object Map]",F="[object Number]",S="[object RegExp]",R="[object Set]",O="[object String]",N="[object Symbol]",_="[object ArrayBuffer]",M="[object DataView]",U=e?e.prototype:void 0,H=U?U.valueOf:void 0;function q(Q,Y,ie,ee,ve,ge,Ie){switch(ie){case M:if(Q.byteLength!=Y.byteLength||Q.byteOffset!=Y.byteOffset)return!1;Q=Q.buffer,Y=Y.buffer;case _:return!(Q.byteLength!=Y.byteLength||!ge(new t(Q),new t(Y)));case g:case p:case F:return r(+Q,+Y);case b:return Q.name==Y.name&&Q.message==Y.message;case S:case O:return Q==Y+"";case D:var Ae=a;case R:var Ge=ee&u;if(Ae||(Ae=i),Q.size!=Y.size&&!Ge)return!1;var Ue=Ie.get(Q);if(Ue)return Ue==Y;ee|=h,Ie.set(Q,Y);var te=n(Ae(Q),Ae(Y),ee,ve,ge,Ie);return Ie.delete(Q),te;case N:if(H)return H.call(Q)==H.call(Y)}return!1}return vf=q,vf}var bf,um;function J2(){if(um)return bf;um=1;function e(t,r){for(var n=-1,a=r.length,i=t.length;++n<a;)t[i+n]=r[n];return t}return bf=e,bf}var yf,cm;function xf(){if(cm)return yf;cm=1;var e=Array.isArray;return yf=e,yf}var wf,dm;function X2(){if(dm)return wf;dm=1;var e=J2(),t=xf();function r(n,a,i){var u=a(n);return t(n)?u:e(u,i(n))}return wf=r,wf}var Df,fm;function Z2(){if(fm)return Df;fm=1;function e(t,r){for(var n=-1,a=t==null?0:t.length,i=0,u=[];++n<a;){var h=t[n];r(h,n,t)&&(u[i++]=h)}return u}return Df=e,Df}var Cf,hm;function q2(){if(hm)return Cf;hm=1;function e(){return[]}return Cf=e,Cf}var Ef,pm;function K2(){if(pm)return Ef;pm=1;var e=Z2(),t=q2(),r=Object.prototype,n=r.propertyIsEnumerable,a=Object.getOwnPropertySymbols,i=a?function(u){return u==null?[]:(u=Object(u),e(a(u),function(h){return n.call(u,h)}))}:t;return Ef=i,Ef}var Ff,gm;function Q2(){if(gm)return Ff;gm=1;function e(t,r){for(var n=-1,a=Array(t);++n<t;)a[n]=r(n);return a}return Ff=e,Ff}var Sf,mm;function Yu(){if(mm)return Sf;mm=1;function e(t){return t!=null&&typeof t=="object"}return Sf=e,Sf}var kf,vm;function $2(){if(vm)return kf;vm=1;var e=Wu(),t=Yu(),r="[object Arguments]";function n(a){return t(a)&&e(a)==r}return kf=n,kf}var Tf,bm;function ex(){if(bm)return Tf;bm=1;var e=$2(),t=Yu(),r=Object.prototype,n=r.hasOwnProperty,a=r.propertyIsEnumerable,i=e((function(){return arguments})())?e:function(u){return t(u)&&n.call(u,"callee")&&!a.call(u,"callee")};return Tf=i,Tf}var Ju={exports:{}},_f,ym;function tx(){if(ym)return _f;ym=1;function e(){return!1}return _f=e,_f}var xm;function wm(){return xm||(xm=1,(function(e,t){var r=qa(),n=tx(),a=t&&!t.nodeType&&t,i=a&&!0&&e&&!e.nodeType&&e,u=i&&i.exports===a,h=u?r.Buffer:void 0,g=h?h.isBuffer:void 0,p=g||n;e.exports=p})(Ju,Ju.exports)),Ju.exports}var Af,Dm;function rx(){if(Dm)return Af;Dm=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function r(n,a){var i=typeof n;return a=a??e,!!a&&(i=="number"||i!="symbol"&&t.test(n))&&n>-1&&n%1==0&&n<a}return Af=r,Af}var Nf,Cm;function Em(){if(Cm)return Nf;Cm=1;var e=9007199254740991;function t(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=e}return Nf=t,Nf}var Rf,Fm;function nx(){if(Fm)return Rf;Fm=1;var e=Wu(),t=Em(),r=Yu(),n="[object Arguments]",a="[object Array]",i="[object Boolean]",u="[object Date]",h="[object Error]",g="[object Function]",p="[object Map]",b="[object Number]",D="[object Object]",F="[object RegExp]",S="[object Set]",R="[object String]",O="[object WeakMap]",N="[object ArrayBuffer]",_="[object DataView]",M="[object Float32Array]",U="[object Float64Array]",H="[object Int8Array]",q="[object Int16Array]",Q="[object Int32Array]",Y="[object Uint8Array]",ie="[object Uint8ClampedArray]",ee="[object Uint16Array]",ve="[object Uint32Array]",ge={};ge[M]=ge[U]=ge[H]=ge[q]=ge[Q]=ge[Y]=ge[ie]=ge[ee]=ge[ve]=!0,ge[n]=ge[a]=ge[N]=ge[i]=ge[_]=ge[u]=ge[h]=ge[g]=ge[p]=ge[b]=ge[D]=ge[F]=ge[S]=ge[R]=ge[O]=!1;function Ie(Ae){return r(Ae)&&t(Ae.length)&&!!ge[e(Ae)]}return Rf=Ie,Rf}var Of,Sm;function ax(){if(Sm)return Of;Sm=1;function e(t){return function(r){return t(r)}}return Of=e,Of}var Xu={exports:{}},km;function ix(){return km||(km=1,(function(e,t){var r=vg(),n=t&&!t.nodeType&&t,a=n&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===n,u=i&&r.process,h=(function(){try{var g=a&&a.require&&a.require("util").types;return g||u&&u.binding&&u.binding("util")}catch{}})();e.exports=h})(Xu,Xu.exports)),Xu.exports}var Bf,Tm;function _m(){if(Tm)return Bf;Tm=1;var e=nx(),t=ax(),r=ix(),n=r&&r.isTypedArray,a=n?t(n):e;return Bf=a,Bf}var Pf,Am;function ox(){if(Am)return Pf;Am=1;var e=Q2(),t=ex(),r=xf(),n=wm(),a=rx(),i=_m(),u=Object.prototype,h=u.hasOwnProperty;function g(p,b){var D=r(p),F=!D&&t(p),S=!D&&!F&&n(p),R=!D&&!F&&!S&&i(p),O=D||F||S||R,N=O?e(p.length,String):[],_=N.length;for(var M in p)(b||h.call(p,M))&&!(O&&(M=="length"||S&&(M=="offset"||M=="parent")||R&&(M=="buffer"||M=="byteLength"||M=="byteOffset")||a(M,_)))&&N.push(M);return N}return Pf=g,Pf}var Lf,Nm;function sx(){if(Nm)return Lf;Nm=1;var e=Object.prototype;function t(r){var n=r&&r.constructor,a=typeof n=="function"&&n.prototype||e;return r===a}return Lf=t,Lf}var If,Rm;function lx(){if(Rm)return If;Rm=1;function e(t,r){return function(n){return t(r(n))}}return If=e,If}var Mf,Om;function ux(){if(Om)return Mf;Om=1;var e=lx(),t=e(Object.keys,Object);return Mf=t,Mf}var zf,Bm;function cx(){if(Bm)return zf;Bm=1;var e=sx(),t=ux(),r=Object.prototype,n=r.hasOwnProperty;function a(i){if(!e(i))return t(i);var u=[];for(var h in Object(i))n.call(i,h)&&h!="constructor"&&u.push(h);return u}return zf=a,zf}var Hf,Pm;function dx(){if(Pm)return Hf;Pm=1;var e=Pd(),t=Em();function r(n){return n!=null&&t(n.length)&&!e(n)}return Hf=r,Hf}var jf,Lm;function fx(){if(Lm)return jf;Lm=1;var e=ox(),t=cx(),r=dx();function n(a){return r(a)?e(a):t(a)}return jf=n,jf}var Uf,Im;function hx(){if(Im)return Uf;Im=1;var e=X2(),t=K2(),r=fx();function n(a){return e(a,r,t)}return Uf=n,Uf}var Wf,Mm;function px(){if(Mm)return Wf;Mm=1;var e=hx(),t=1,r=Object.prototype,n=r.hasOwnProperty;function a(i,u,h,g,p,b){var D=h&t,F=e(i),S=F.length,R=e(u),O=R.length;if(S!=O&&!D)return!1;for(var N=S;N--;){var _=F[N];if(!(D?_ in u:n.call(u,_)))return!1}var M=b.get(i),U=b.get(u);if(M&&U)return M==u&&U==i;var H=!0;b.set(i,u),b.set(u,i);for(var q=D;++N<S;){_=F[N];var Q=i[_],Y=u[_];if(g)var ie=D?g(Y,Q,_,u,i,b):g(Q,Y,_,i,u,b);if(!(ie===void 0?Q===Y||p(Q,Y,h,g,b):ie)){H=!1;break}q||(q=_=="constructor")}if(H&&!q){var ee=i.constructor,ve=u.constructor;ee!=ve&&"constructor"in i&&"constructor"in u&&!(typeof ee=="function"&&ee instanceof ee&&typeof ve=="function"&&ve instanceof ve)&&(H=!1)}return b.delete(i),b.delete(u),H}return Wf=a,Wf}var Gf,zm;function gx(){if(zm)return Gf;zm=1;var e=Ls(),t=qa(),r=e(t,"DataView");return Gf=r,Gf}var Vf,Hm;function mx(){if(Hm)return Vf;Hm=1;var e=Ls(),t=qa(),r=e(t,"Promise");return Vf=r,Vf}var Yf,jm;function vx(){if(jm)return Yf;jm=1;var e=Ls(),t=qa(),r=e(t,"Set");return Yf=r,Yf}var Jf,Um;function bx(){if(Um)return Jf;Um=1;var e=Ls(),t=qa(),r=e(t,"WeakMap");return Jf=r,Jf}var Xf,Wm;function yx(){if(Wm)return Xf;Wm=1;var e=gx(),t=Wd(),r=mx(),n=vx(),a=bx(),i=Wu(),u=_g(),h="[object Map]",g="[object Object]",p="[object Promise]",b="[object Set]",D="[object WeakMap]",F="[object DataView]",S=u(e),R=u(t),O=u(r),N=u(n),_=u(a),M=i;return(e&&M(new e(new ArrayBuffer(1)))!=F||t&&M(new t)!=h||r&&M(r.resolve())!=p||n&&M(new n)!=b||a&&M(new a)!=D)&&(M=function(U){var H=i(U),q=H==g?U.constructor:void 0,Q=q?u(q):"";if(Q)switch(Q){case S:return F;case R:return h;case O:return p;case N:return b;case _:return D}return H}),Xf=M,Xf}var Zf,Gm;function xx(){if(Gm)return Zf;Gm=1;var e=I2(),t=am(),r=Y2(),n=px(),a=yx(),i=xf(),u=wm(),h=_m(),g=1,p="[object Arguments]",b="[object Array]",D="[object Object]",F=Object.prototype,S=F.hasOwnProperty;function R(O,N,_,M,U,H){var q=i(O),Q=i(N),Y=q?b:a(O),ie=Q?b:a(N);Y=Y==p?D:Y,ie=ie==p?D:ie;var ee=Y==D,ve=ie==D,ge=Y==ie;if(ge&&u(O)){if(!u(N))return!1;q=!0,ee=!1}if(ge&&!ee)return H||(H=new e),q||h(O)?t(O,N,_,M,U,H):r(O,N,Y,_,M,U,H);if(!(_&g)){var Ie=ee&&S.call(O,"__wrapped__"),Ae=ve&&S.call(N,"__wrapped__");if(Ie||Ae){var Ge=Ie?O.value():O,Ue=Ae?N.value():N;return H||(H=new e),U(Ge,Ue,_,M,H)}}return ge?(H||(H=new e),n(O,N,_,M,U,H)):!1}return Zf=R,Zf}var qf,Vm;function wx(){if(Vm)return qf;Vm=1;var e=xx(),t=Yu();function r(n,a,i,u,h){return n===a?!0:n==null||a==null||!t(n)&&!t(a)?n!==n&&a!==a:e(n,a,i,u,r,h)}return qf=r,qf}var Kf,Ym;function Dx(){if(Ym)return Kf;Ym=1;var e=wx();function t(r,n,a){a=typeof a=="function"?a:void 0;var i=a?a(r,n):void 0;return i===void 0?e(r,n,void 0,a):!!i}return Kf=t,Kf}var Cx=Dx();const Ex=Nl(Cx);var Qf,Jm;function Fx(){return Jm||(Jm=1,Qf=function(t,r,n,a){var i=n?n.call(a,t,r):void 0;if(i!==void 0)return!!i;if(t===r)return!0;if(typeof t!="object"||!t||typeof r!="object"||!r)return!1;var u=Object.keys(t),h=Object.keys(r);if(u.length!==h.length)return!1;for(var g=Object.prototype.hasOwnProperty.bind(r),p=0;p<u.length;p++){var b=u[p];if(!g(b))return!1;var D=t[b],F=r[b];if(i=n?n.call(a,D,F,b):void 0,i===!1||i===void 0&&D!==F)return!1}return!0}),Qf}var Sx=Fx();const kx=Nl(Sx);let Tx=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce((t,r)=>(r&=63,r<36?t+=r.toString(36):r<62?t+=(r-26).toString(36).toUpperCase():r>62?t+="-":t+="_",t),"");var _x="Invariant failed";function st(e,t){if(!e)throw new Error(_x)}typeof window<"u"&&(window.__CRAFTJS__||(window.__CRAFTJS__={}),window.__CRAFTJS__["@craftjs/utils"]="0.2.5");var va="ROOT",Xm="canvas-ROOT",Zm="The component type specified for this node (%node_type%) does not exist in the resolver",Ax=`An Error occurred while deserializing components: Cannot find component <%displayName% /> in resolver map. Please check your resolver in <Editor />
|
|
71
|
-
|
|
72
|
-
Available components in resolver: %availableComponents%
|
|
73
|
-
|
|
74
|
-
More info: https://craft.js.org/r/docs/api/editor#props`;function qm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable}))),r.push.apply(r,n)}return r}function kn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?qm(Object(r),!0).forEach((function(n){Xt(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qm(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}function Is(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Nx(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,tv(n.key),n)}}function Ms(e,t,r){return t&&Nx(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Xt(e,t,r){return(t=tv(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zs(e){return zs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},zs(e)}function $f(e,t){return $f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},$f(e,t)}function eh(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function th(){return th=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=(function(i,u){for(;!Object.prototype.hasOwnProperty.call(i,u)&&(i=zs(i))!==null;);return i})(e,t);if(n){var a=Object.getOwnPropertyDescriptor(n,t);return a.get?a.get.call(arguments.length<3?e:r):a.value}},th.apply(this,arguments)}function Km(e,t){return Qm(e)||(function(r,n){var a=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(a!=null){var i,u,h,g,p=[],b=!0,D=!1;try{if(h=(a=a.call(r)).next,n===0){if(Object(a)!==a)return;b=!1}else for(;!(b=(i=h.call(a)).done)&&(p.push(i.value),p.length!==n);b=!0);}catch(F){D=!0,u=F}finally{try{if(!b&&a.return!=null&&(g=a.return(),Object(g)!==g))return}finally{if(D)throw u}}return p}})(e,t)||rh(e,t)||ev()}function _r(e){return(function(t){if(Array.isArray(t))return nh(t)})(e)||$m(e)||rh(e)||(function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
75
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function Qm(e){if(Array.isArray(e))return e}function $m(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function rh(e,t){if(e){if(typeof e=="string")return nh(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?nh(e,t):void 0}}function nh(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function ev(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
76
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tv(e){var t=(function(r,n){if(typeof r!="object"||r===null)return r;var a=r[Symbol.toPrimitive];if(a!==void 0){var i=a.call(r,"string");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(r)})(e);return typeof t=="symbol"?t:String(t)}var Tt={UNDO:"HISTORY_UNDO",REDO:"HISTORY_REDO",THROTTLE:"HISTORY_THROTTLE",IGNORE:"HISTORY_IGNORE",MERGE:"HISTORY_MERGE",CLEAR:"HISTORY_CLEAR"},Rx=(function(){function e(){Is(this,e),Xt(this,"timeline",[]),Xt(this,"pointer",-1)}return Ms(e,[{key:"add",value:function(t,r){t.length===0&&r.length===0||(this.pointer=this.pointer+1,this.timeline.length=this.pointer,this.timeline[this.pointer]={patches:t,inversePatches:r,timestamp:Date.now()})}},{key:"throttleAdd",value:function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:500;if(t.length!==0||r.length!==0){if(this.timeline.length&&this.pointer>=0){var a=this.timeline[this.pointer],i=a.patches,u=a.inversePatches,h=a.timestamp;if(new Date().getTime()-h<n)return void(this.timeline[this.pointer]={timestamp:h,patches:[].concat(_r(i),_r(t)),inversePatches:[].concat(_r(r),_r(u))})}this.add(t,r)}}},{key:"merge",value:function(t,r){if(t.length!==0||r.length!==0)if(this.timeline.length&&this.pointer>=0){var n=this.timeline[this.pointer],a=n.inversePatches;this.timeline[this.pointer]={timestamp:n.timestamp,patches:[].concat(_r(n.patches),_r(t)),inversePatches:[].concat(_r(r),_r(a))}}else this.add(t,r)}},{key:"clear",value:function(){this.timeline=[],this.pointer=-1}},{key:"canUndo",value:function(){return this.pointer>=0}},{key:"canRedo",value:function(){return this.pointer<this.timeline.length-1}},{key:"undo",value:function(t){if(this.canUndo()){var r=this.timeline[this.pointer].inversePatches;return this.pointer=this.pointer-1,rg(t,r)}}},{key:"redo",value:function(t){if(this.canRedo())return this.pointer=this.pointer+1,rg(t,this.timeline[this.pointer].patches)}}]),e})();function Ox(e,t,r,n){var a,i=I.useMemo((function(){return new Rx}),[]),u=I.useRef([]),h=I.useRef((function(){}));typeof e=="function"?a=e:(a=e.methods,u.current=e.ignoreHistoryForActions,h.current=e.normalizeHistory);var g=I.useRef(n);g.current=n;var p=I.useRef(t),b=I.useMemo((function(){var N=h.current,_=u.current,M=g.current;return function(U,H){var q,Q=r&&rv(r,(function(){return U}),i),Y=Km(tg(U,(function(ge){var Ie,Ae;switch(H.type){case Tt.UNDO:return i.undo(ge);case Tt.REDO:return i.redo(ge);case Tt.CLEAR:return i.clear(),kn({},ge);case Tt.IGNORE:case Tt.MERGE:case Tt.THROTTLE:var Ge,Ue=Qm(Ae=H.payload)||$m(Ae)||rh(Ae)||ev(),te=Ue[0],fe=Ue.slice(1);(Ge=a(ge,Q))[te].apply(Ge,_r(fe));break;default:(Ie=a(ge,Q))[H.type].apply(Ie,_r(H.payload))}})),3),ie=Y[0],ee=Y[1],ve=Y[2];return q=ie,M&&M(ie,U,{type:H.type,params:H.payload,patches:ee},Q,(function(ge){var Ie=tg(ie,ge);q=Ie[0],ee=[].concat(_r(ee),_r(Ie[1])),ve=[].concat(_r(Ie[2]),_r(ve))})),[Tt.UNDO,Tt.REDO].includes(H.type)&&N&&(q=l2(q,N)),[].concat(_r(_),[Tt.UNDO,Tt.REDO,Tt.IGNORE,Tt.CLEAR]).includes(H.type)||(H.type===Tt.THROTTLE?i.throttleAdd(ee,ve,H.config&&H.config.rate):H.type===Tt.MERGE?i.merge(ee,ve):i.add(ee,ve)),q}}),[i,a,r]),D=I.useCallback((function(){return p.current}),[]),F=I.useMemo((function(){return new Bx(D)}),[D]),S=I.useCallback((function(N){var _=b(p.current,N);p.current=_,F.notify()}),[b,F]);I.useEffect((function(){F.notify()}),[F]);var R=I.useMemo((function(){return r?rv(r,(function(){return p.current}),i):[]}),[i,r]),O=I.useMemo((function(){var N=Object.keys(a(null,null)),_=u.current;return kn(kn({},N.reduce((function(M,U){return M[U]=function(){for(var H=arguments.length,q=new Array(H),Q=0;Q<H;Q++)q[Q]=arguments[Q];return S({type:U,payload:q})},M}),{})),{},{history:{undo:function(){return S({type:Tt.UNDO})},redo:function(){return S({type:Tt.REDO})},clear:function(){return S({type:Tt.CLEAR})},throttle:function(M){return kn({},N.filter((function(U){return!_.includes(U)})).reduce((function(U,H){return U[H]=function(){for(var q=arguments.length,Q=new Array(q),Y=0;Y<q;Y++)Q[Y]=arguments[Y];return S({type:Tt.THROTTLE,payload:[H].concat(Q),config:{rate:M}})},U}),{}))},ignore:function(){return kn({},N.filter((function(M){return!_.includes(M)})).reduce((function(M,U){return M[U]=function(){for(var H=arguments.length,q=new Array(H),Q=0;Q<H;Q++)q[Q]=arguments[Q];return S({type:Tt.IGNORE,payload:[U].concat(q)})},M}),{}))},merge:function(){return kn({},N.filter((function(M){return!_.includes(M)})).reduce((function(M,U){return M[U]=function(){for(var H=arguments.length,q=new Array(H),Q=0;Q<H;Q++)q[Q]=arguments[Q];return S({type:Tt.MERGE,payload:[U].concat(q)})},M}),{}))}}})}),[S,a]);return I.useMemo((function(){return{getState:D,subscribe:function(N,_,M){return F.subscribe(N,_,M)},actions:O,query:R,history:i}}),[O,R,F,D,i])}function rv(e,t,r){var n=Object.keys(e()).reduce((function(a,i){return kn(kn({},a),{},Xt({},i,(function(){var u;return(u=e(t()))[i].apply(u,arguments)})))}),{});return kn(kn({},n),{},{history:{canUndo:function(){return r.canUndo()},canRedo:function(){return r.canRedo()}}})}r2(),t2();var Bx=(function(){function e(t){Is(this,e),Xt(this,"getState",void 0),Xt(this,"subscribers",[]),this.getState=t}return Ms(e,[{key:"subscribe",value:function(t,r,n){var a=this,i=new Px((function(){return t(a.getState())}),r,n);return this.subscribers.push(i),this.unsubscribe.bind(this,i)}},{key:"unsubscribe",value:function(t){if(this.subscribers.length){var r=this.subscribers.indexOf(t);if(r>-1)return this.subscribers.splice(r,1)}}},{key:"notify",value:function(){this.subscribers.forEach((function(t){return t.collect()}))}}]),e})(),Px=(function(){function e(t,r){var n=arguments.length>2&&arguments[2]!==void 0&&arguments[2];Is(this,e),Xt(this,"collected",void 0),Xt(this,"collector",void 0),Xt(this,"onChange",void 0),Xt(this,"id",void 0),this.collector=t,this.onChange=r,n&&this.collect()}return Ms(e,[{key:"collect",value:function(){try{var t=this.collector();Ex(t,this.collected)||(this.collected=t,this.onChange&&this.onChange(this.collected))}catch(r){console.warn(r)}}}]),e})(),Hl=function(e){var t=e.getBoundingClientRect(),r=t.x,n=t.y,a=t.top,i=t.left,u=t.bottom,h=t.right,g=t.width,p=t.height,b=window.getComputedStyle(e),D={left:parseInt(b.marginLeft),right:parseInt(b.marginRight),bottom:parseInt(b.marginBottom),top:parseInt(b.marginTop)},F={left:parseInt(b.paddingLeft),right:parseInt(b.paddingRight),bottom:parseInt(b.paddingBottom),top:parseInt(b.paddingTop)};return{x:r,y:n,top:a,left:i,bottom:u,right:h,width:g,height:p,outerWidth:Math.round(g+D.left+D.right),outerHeight:Math.round(p+D.top+D.bottom),margin:D,padding:F,inFlow:e.parentElement&&!!(function(S){var R=getComputedStyle(S);if(!(b.overflow&&b.overflow!=="visible"||R.float!=="none"||R.display==="grid"||R.display==="flex"&&R["flex-direction"]!=="column")){switch(b.position){case"static":case"relative":break;default:return}switch(e.tagName){case"TR":case"TBODY":case"THEAD":case"TFOOT":return!0}switch(b.display){case"block":case"list-item":case"table":case"flex":case"grid":return!0}}})(e.parentElement)}};function Lx(e,t){const{subscribe:r,getState:n,actions:a,query:i}=e,u=I.useRef(!0),h=I.useRef(null),g=I.useRef(t);g.current=t;const p=I.useCallback((F=>({...F,actions:a,query:i})),[a,i]);u.current&&t&&(h.current=t(n(),i),u.current=!1);const[b,D]=I.useState(p(h.current));return I.useEffect((()=>{let F;return g.current&&(F=r((S=>g.current(S,i)),(S=>{D(p(S))}))),()=>{F&&F()}}),[p,i,r]),b}var Hs,nv=function(){return Tx(arguments.length>0&&arguments[0]!==void 0?arguments[0]:10)},Ix=(function(){function e(){Is(this,e),Xt(this,"isEnabled",!0),Xt(this,"elementIdMap",new WeakMap),Xt(this,"registry",new Map)}return Ms(e,[{key:"getElementId",value:function(t){var r=this.elementIdMap.get(t);if(r)return r;var n=nv();return this.elementIdMap.set(t,n),n}},{key:"getConnectorId",value:function(t,r){var n=this.getElementId(t);return"".concat(r,"--").concat(n)}},{key:"register",value:function(t,r){var n=this,a=this.getByElement(t,r.name);if(a){if(kx(r.required,a.required))return a;this.getByElement(t,r.name).disable()}var i=null,u=this.getConnectorId(t,r.name);return this.registry.set(u,{id:u,required:r.required,enable:function(){i&&i(),i=r.connector(t,r.required,r.options)},disable:function(){i&&i()},remove:function(){return n.remove(u)}}),this.isEnabled&&this.registry.get(u).enable(),this.registry.get(u)}},{key:"get",value:function(t){return this.registry.get(t)}},{key:"remove",value:function(t){var r=this.get(t);r&&(r.disable(),this.registry.delete(r.id))}},{key:"enable",value:function(){this.isEnabled=!0,this.registry.forEach((function(t){t.enable()}))}},{key:"disable",value:function(){this.isEnabled=!1,this.registry.forEach((function(t){t.disable()}))}},{key:"getByElement",value:function(t,r){return this.get(this.getConnectorId(t,r))}},{key:"removeByElement",value:function(t,r){return this.remove(this.getConnectorId(t,r))}},{key:"clear",value:function(){this.disable(),this.elementIdMap=new WeakMap,this.registry=new Map}}]),e})();(function(e){e[e.HandlerDisabled=0]="HandlerDisabled",e[e.HandlerEnabled=1]="HandlerEnabled"})(Hs||(Hs={}));var av=(function(){function e(t){Is(this,e),Xt(this,"options",void 0),Xt(this,"registry",new Ix),Xt(this,"subscribers",new Set),this.options=t}return Ms(e,[{key:"listen",value:function(t){var r=this;return this.subscribers.add(t),function(){return r.subscribers.delete(t)}}},{key:"disable",value:function(){this.onDisable&&this.onDisable(),this.registry.disable(),this.subscribers.forEach((function(t){t(Hs.HandlerDisabled)}))}},{key:"enable",value:function(){this.onEnable&&this.onEnable(),this.registry.enable(),this.subscribers.forEach((function(t){t(Hs.HandlerEnabled)}))}},{key:"cleanup",value:function(){this.disable(),this.subscribers.clear(),this.registry.clear()}},{key:"addCraftEventListener",value:function(t,r,n,a){var i=function(u){(function(h,g,p){h.craft||(h.craft={stopPropagation:function(){},blockedEvents:{}});for(var b=h.craft&&h.craft.blockedEvents[g]||[],D=0;D<b.length;D++){var F=b[D];if(p!==F&&p.contains(F))return!0}return!1})(u,r,t)||(u.craft.stopPropagation=function(){u.craft.blockedEvents[r]||(u.craft.blockedEvents[r]=[]),u.craft.blockedEvents[r].push(t)},n(u))};return t.addEventListener(r,i,a),function(){return t.removeEventListener(r,i,a)}}},{key:"createConnectorsUsage",value:function(){var t=this,r=this.handlers(),n=new Set,a=!1,i=new Map;return{connectors:Object.entries(r).reduce((function(u,h){var g=Km(h,2),p=g[0],b=g[1];return kn(kn({},u),{},Xt({},p,(function(D,F,S){var R=function(){var O=t.registry.register(D,{required:F,name:p,options:S,connector:b});return n.add(O.id),O};return i.set(t.registry.getConnectorId(D,p),R),a&&R(),D})))}),{}),register:function(){a=!0,i.forEach((function(u){u()}))},cleanup:function(){a=!1,n.forEach((function(u){return t.registry.remove(u)}))}}}},{key:"derive",value:function(t,r){return new t(this,r)}},{key:"createProxyHandlers",value:function(t,r){var n=[],a=t.handlers(),i=new Proxy(a,{get:function(u,h,g){return h in a==0?Reflect.get(u,h,g):function(p){for(var b=arguments.length,D=new Array(b>1?b-1:0),F=1;F<b;F++)D[F-1]=arguments[F];var S=a[h].apply(a,[p].concat(D));S&&n.push(S)}}});return r(i),function(){n.forEach((function(u){u()}))}}},{key:"reflect",value:function(t){return this.createProxyHandlers(this,t)}}]),e})(),Mx=(function(e){(function(i,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(u&&u.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),Object.defineProperty(i,"prototype",{writable:!1}),u&&$f(i,u)})(a,av);var t,r,n=(t=a,r=(function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch{return!1}})(),function(){var i,u=zs(t);if(r){var h=zs(this).constructor;i=Reflect.construct(u,arguments,h)}else i=u.apply(this,arguments);return(function(g,p){if(p&&(typeof p=="object"||typeof p=="function"))return p;if(p!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return eh(g)})(this,i)});function a(i,u){var h;return Is(this,a),Xt(eh(h=n.call(this,u)),"derived",void 0),Xt(eh(h),"unsubscribeParentHandlerListener",void 0),h.derived=i,h.options=u,h.unsubscribeParentHandlerListener=h.derived.listen((function(g){switch(g){case Hs.HandlerEnabled:return h.enable();case Hs.HandlerDisabled:return h.disable();default:return}})),h}return Ms(a,[{key:"inherit",value:function(i){return this.createProxyHandlers(this.derived,i)}},{key:"cleanup",value:function(){th(zs(a.prototype),"cleanup",this).call(this),this.unsubscribeParentHandlerListener()}}]),a})();function iv(e,t){t&&(typeof e=="function"?e(t):e.current=t)}function zx(e,t){const r=e.ref;return st(typeof r!="string"),I.cloneElement(e,r?{ref:n=>{iv(r,n),iv(t,n)}}:{ref:t})}function Hx(e){return(t=null,...r)=>{if(!I.isValidElement(t)){if(!t)return;const a=t;return a&&e(a,...r),a}const n=t;return(function(a){if(typeof a.type!="string")throw new Error})(n),zx(n,e)}}function ov(e){return Object.keys(e).reduce(((t,r)=>(t[r]=Hx(((...n)=>e[r](...n))),t)),{})}const jx=({style:e,className:t,parentDom:r})=>{const n=I.createElement("div",{className:t,style:{position:"fixed",display:"block",opacity:1,borderStyle:"solid",borderWidth:"1px",borderColor:"transparent",zIndex:99999,...e}});return r&&r.ownerDocument!==document?Yn.createPortal(n,r.ownerDocument.body):n};var Qi=function(e,t){var r="Deprecation warning: ".concat(e," will be deprecated in future relases."),n=t.suggest,a=t.doc;n&&(r+=" Please use ".concat(n," instead.")),a&&(r+="(".concat(a,")")),console.warn(r)},sv=function(){return typeof window<"u"},Ux=function(){return sv()&&/Linux/i.test(window.navigator.userAgent)},Wx=function(){return sv()&&/Chrome/i.test(window.navigator.userAgent)},Gx=Pd();const Vx=Nl(Gx);typeof window<"u"&&(window.__CRAFTJS__||(window.__CRAFTJS__={}),window.__CRAFTJS__["@craftjs/core"]="0.2.12");const lv=I.createContext(null),ah=({id:e,related:t=!1,children:r})=>I.createElement(lv.Provider,{value:{id:e,related:t}},r);function uv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable}))),r.push.apply(r,n)}return r}function ht(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?uv(Object(r),!0).forEach((function(n){Zt(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):uv(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}function ih(e){return ih=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ih(e)}function Zu(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Yx(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,fv(n.key),n)}}function qu(e,t,r){return t&&Yx(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Zt(e,t,r){return(t=fv(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function oh(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&sh(e,t)}function Ku(e){return Ku=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ku(e)}function sh(e,t){return sh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},sh(e,t)}function lh(e,t){if(e==null)return{};var r,n,a=(function(u,h){if(u==null)return{};var g,p,b={},D=Object.keys(u);for(p=0;p<D.length;p++)h.indexOf(g=D[p])>=0||(b[g]=u[g]);return b})(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)t.indexOf(r=i[n])>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function jl(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function uh(e){var t=(function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch{return!1}})();return function(){var r,n=Ku(e);if(t){var a=Ku(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return(function(i,u){if(u&&(typeof u=="object"||typeof u=="function"))return u;if(u!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return jl(i)})(this,r)}}function cv(e,t){return(function(r){if(Array.isArray(r))return r})(e)||(function(r,n){var a=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(a!=null){var i,u,h,g,p=[],b=!0,D=!1;try{if(h=(a=a.call(r)).next,n!==0)for(;!(b=(i=h.call(a)).done)&&(p.push(i.value),p.length!==n);b=!0);}catch(F){D=!0,u=F}finally{try{if(!b&&a.return!=null&&(g=a.return(),Object(g)!==g))return}finally{if(D)throw u}}return p}})(e,t)||dv(e,t)||(function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
77
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function Ul(e){return(function(t){if(Array.isArray(t))return ch(t)})(e)||(function(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)})(e)||dv(e)||(function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
78
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function dv(e,t){if(e){if(typeof e=="string")return ch(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ch(e,t):void 0}}function ch(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function fv(e){var t=(function(r,n){if(typeof r!="object"||r===null)return r;var a=r[Symbol.toPrimitive];if(a!==void 0){var i=a.call(r,"string");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(r)})(e);return typeof t=="symbol"?t:String(t)}const dh=I.createContext(null);var hv=I.createContext(null),pv=function(){return I.useContext(hv)};function Io(e){var t=pv(),r=I.useContext(dh);st(r);var n=Lx(r,e),a=I.useMemo((function(){return t&&t.createConnectorsUsage()}),[t]);I.useEffect((function(){return a.register(),function(){a.cleanup()}}),[a]);var i=I.useMemo((function(){return a&&ov(a.connectors)}),[a]);return ht(ht({},n),{},{connectors:i,inContext:!!r,store:r})}var Jx=["actions","query","connectors"];function Qu(e){var t=I.useContext(lv);st(t);var r=t.id,n=t.related,a=Io((function(b){return r&&b.nodes[r]&&e&&e(b.nodes[r])})),i=a.actions,u=a.connectors,h=lh(a,Jx),g=I.useMemo((function(){return ov({connect:function(b){return u.connect(b,r)},drag:function(b){return u.drag(b,r)}})}),[u,r]),p=I.useMemo((function(){return{setProp:function(b,D){D?i.history.throttle(D).setProp(r,b):i.setProp(r,b)},setCustom:function(b,D){D?i.history.throttle(D).setCustom(r,b):i.setCustom(r,b)},setHidden:function(b){return i.setHidden(r,b)}}}),[i,r]);return ht(ht({},h),{},{id:r,related:n,inNodeContext:!!t,actions:p,connectors:g})}var Xx=["id","related","actions","inNodeContext","connectors"];function mt(e){var t=Qu(e),r=t.id,n=t.related,a=t.actions,i=t.inNodeContext,u=t.connectors;return ht(ht({},lh(t,Xx)),{},{actions:a,id:r,related:n,setProp:function(h,g){return Qi("useNode().setProp()",{suggest:"useNode().actions.setProp()"}),a.setProp(h,g)},inNodeContext:i,connectors:u})}const Zx=({render:e})=>{const{connectors:{connect:t,drag:r}}=mt();return typeof e.type=="string"?t(r(I.cloneElement(e))):e},qx=()=>{const{type:e,props:t,nodes:r,hydrationTimestamp:n}=Qu((a=>({type:a.data.type,props:a.data.props,nodes:a.data.nodes,hydrationTimestamp:a._hydrationTimestamp})));return I.useMemo((()=>{let a=t.children;r&&r.length>0&&(a=I.createElement(I.Fragment,null,r.map((u=>I.createElement(fh,{id:u,key:u})))));const i=I.createElement(e,t,a);return typeof e=="string"?I.createElement(Zx,{render:i}):i}),[e,t,n,r])},Kx=({render:e})=>{const{hidden:t}=Qu((n=>({hidden:n.data.hidden}))),{onRender:r}=Io((n=>({onRender:n.options.onRender})));return t?null:I.createElement(r,{render:e||I.createElement(qx,null)})},fh=({id:e,render:t})=>I.createElement(ah,{id:e},I.createElement(Kx,{render:t})),hh={is:"div",canvas:!1,custom:{},hidden:!1},Qx={is:"type",canvas:"isCanvas"};function $u({id:e,children:t,...r}){const{is:n}={...hh,...r},{query:a,actions:i}=Io(),{id:u,inNodeContext:h}=Qu(),[g]=I.useState((()=>{st(!!e);const p=a.node(u).get();if(h){const b=p.data.linkedNodes[e]?a.node(p.data.linkedNodes[e]).get():null;if(b&&b.data.type===n)return b.id;const D=I.createElement($u,r,t),F=a.parseReactElement(D).toNodeTree();return i.history.ignore().addLinkedNodeFromTree(F,u,e),F.rootNodeId}return null}));return g?I.createElement(fh,{id:g}):null}const gv=()=>Qi("<Canvas />",{suggest:"<Element canvas={true} />"});function ph({...e}){return I.useEffect((()=>gv()),[]),I.createElement($u,{...e,canvas:!0})}const $x=()=>{const{timestamp:e}=Io((t=>({timestamp:t.nodes[va]&&t.nodes[va]._hydrationTimestamp})));return e?I.createElement(fh,{id:va,key:e}):null},ew=({children:e,json:t,data:r})=>{const{actions:n,query:a}=Io();t&&Qi("<Frame json={...} />",{suggest:"<Frame data={...} />"});const i=I.useRef(!1);if(!i.current){const u=r||t;if(u)n.history.ignore().deserialize(u);else if(e){const h=I.Children.only(e),g=a.parseReactElement(h).toNodeTree(((p,b)=>(b===h&&(p.id=va),p)));n.history.ignore().addNodeTree(g)}i.current=!0}return I.createElement($x,null)};var mv;(function(e){e[e.Any=0]="Any",e[e.Id=1]="Id",e[e.Obj=2]="Obj"})(mv||(mv={}));const gh=e=>{const{addLinkedNodeFromTree:t,setDOM:r,setNodeEvent:n,replaceNodes:a,reset:i,...u}=e;return u};function Hr(e){const{connectors:t,actions:r,query:n,store:a,...i}=Io(e),u=gh(r);return{connectors:t,actions:I.useMemo((()=>({...u,history:{...u.history,ignore:(...h)=>gh(u.history.ignore(...h)),throttle:(...h)=>gh(u.history.throttle(...h))}})),[u]),query:n,store:a,...i}}var vv=function(e){return Object.fromEntries?Object.fromEntries(e):e.reduce((function(t,r){var n=cv(r,2),a=n[0],i=n[1];return ht(ht({},t),{},Zt({},a,i))}),{})},Ka=function(e,t,r){var n=Array.isArray(t)?t:[t],a=ht({existOnly:!1,idOnly:!1},r||{}),i=n.filter((function(u){return!!u})).map((function(u){return typeof u=="string"?{node:e[u],exists:!!e[u]}:ih(u)!=="object"||a.idOnly?{node:null,exists:!1}:{node:u,exists:!!e[u.id]}}));return a.existOnly&&st(i.filter((function(u){return!u.exists})).length===0),i},tw=["history"],js=null,ec=function(e,t){if(typeof t=="string")return t;var r,n=(function(a,i){var u=(function(h){if(js&&js.resolver===h)return js.reversed;js={resolver:h,reversed:new Map};for(var g=0,p=Object.entries(h);g<p.length;g++){var b=cv(p[g],2);js.reversed.set(b[1],b[0])}return js.reversed})(a).get(i);return u!==void 0?u:null})(e,t);return st(n,Zm.replace("%node_type%",(r=t).name||r.displayName)),n};const rw=(e,t)=>typeof e=="string"?e:{resolvedName:ec(t,e)},mh=(e,t)=>{let{type:r,isCanvas:n,props:a}=e;return a=Object.keys(a).reduce(((i,u)=>{const h=a[u];return h==null||typeof h=="function"||(i[u]=u==="children"&&typeof h!="string"?I.Children.map(h,(g=>typeof g=="string"?g:mh(g,t))):typeof h.type=="function"?mh(h,t):h),i}),{}),{type:rw(r,t),isCanvas:!!n,props:a}},nw=(e,t)=>{const{type:r,props:n,isCanvas:a,name:i,...u}=e;return{...mh({type:r,isCanvas:a,props:n},t),...u}};function vh(e,t){st(typeof t=="string");var r=e.nodes[t],n=function(a){return vh(e,a)};return{isCanvas:function(){return!!r.data.isCanvas},isRoot:function(){return r.id===va},isLinkedNode:function(){return r.data.parent&&n(r.data.parent).linkedNodes().includes(r.id)},isTopLevelNode:function(){return this.isRoot()||this.isLinkedNode()},isDeletable:function(){return!this.isTopLevelNode()},isParentOfTopLevelNodes:function(){return r.data.linkedNodes&&Object.keys(r.data.linkedNodes).length>0},isParentOfTopLevelCanvas:function(){return Qi("query.node(id).isParentOfTopLevelCanvas",{suggest:"query.node(id).isParentOfTopLevelNodes"}),this.isParentOfTopLevelNodes()},isSelected:function(){return e.events.selected.has(t)},isHovered:function(){return e.events.hovered.has(t)},isDragged:function(){return e.events.dragged.has(t)},get:function(){return r},ancestors:function(){var a=arguments.length>0&&arguments[0]!==void 0&&arguments[0];return(function i(u){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,p=e.nodes[u];return p?(h.push(u),p.data.parent&&(a||!a&&g===0)&&(h=i(p.data.parent,h,g+1)),h):h})(r.data.parent)},descendants:function(){var a=arguments.length>0&&arguments[0]!==void 0&&arguments[0],i=arguments.length>1?arguments[1]:void 0;return(function u(h){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;return(a||!a&&p===0)&&e.nodes[h]&&(i!=="childNodes"&&n(h).linkedNodes().forEach((function(b){g.push(b),g=u(b,g,p+1)})),i!=="linkedNodes"&&n(h).childNodes().forEach((function(b){g.push(b),g=u(b,g,p+1)}))),g})(t)},linkedNodes:function(){return Object.values(r.data.linkedNodes||{})},childNodes:function(){return r.data.nodes||[]},isDraggable:function(a){try{var i=r;return st(!this.isTopLevelNode()),st(vh(e,i.data.parent).isCanvas()),st(i.rules.canDrag(i,n)),!0}catch(u){return a&&a(u),!1}},isDroppable:function(a,i){var u=Ka(e.nodes,a),h=r;try{st(this.isCanvas()),st(h.rules.canMoveIn(u.map((function(p){return p.node})),h,n));var g={};return u.forEach((function(p){var b=p.node,D=p.exists;if(st(b.rules.canDrop(h,b,n)),D){st(!n(b.id).isTopLevelNode());var F=n(b.id).descendants(!0);st(!F.includes(h.id)&&h.id!==b.id);var S=b.data.parent&&e.nodes[b.data.parent];st(S.data.isCanvas),st(S||!S&&!e.nodes[b.id]),S.id!==h.id&&(g[S.id]||(g[S.id]=[]),g[S.id].push(b))}})),Object.keys(g).forEach((function(p){var b=e.nodes[p];st(b.rules.canMoveOut(g[p],b,n))})),!0}catch(p){return i&&i(p),!1}},toSerializedNode:function(){return nw(r.data,e.options.resolver)},toNodeTree:function(a){var i=[t].concat(Ul(this.descendants(!0,a))).reduce((function(u,h){return u[h]=n(h).get(),u}),{});return{rootNodeId:t,nodes:i}},decendants:function(){var a=arguments.length>0&&arguments[0]!==void 0&&arguments[0];return Qi("query.node(id).decendants",{suggest:"query.node(id).descendants"}),this.descendants(a)},isTopLevelCanvas:function(){return!this.isRoot()&&!r.data.parent}}}function bv(e,t,r,n){for(var a={parent:e,index:0,where:"before"},i=0,u=0,h=0,g=0,p=0,b=0,D=0,F=t.length;D<F;D++){var S=t[D];if(b=S.top+S.outerHeight,g=S.left+S.outerWidth/2,p=S.top+S.outerHeight/2,!(u&&S.left>u||h&&p>=h||i&&S.left+S.outerWidth<i))if(a.index=D,S.inFlow){if(n<p){a.where="before";break}a.where="after"}else n<b&&(h=b),r<g?(u=g,a.where="before"):(i=g,a.where="after")}return a}var tc=function(e){return typeof e=="string"?e:e.name};function yv(e,t){var r=e.data.type,n={id:e.id||nv(),_hydrationTimestamp:Date.now(),data:ht({type:r,name:tc(r),displayName:tc(r),props:{},custom:{},parent:null,isCanvas:!1,hidden:!1,nodes:[],linkedNodes:{}},e.data),info:{},related:{},events:{selected:!1,dragged:!1,hovered:!1},rules:{canDrag:function(){return!0},canDrop:function(){return!0},canMoveIn:function(){return!0},canMoveOut:function(){return!0}},dom:null};if(n.data.type===$u||n.data.type===ph){var a=ht(ht({},hh),n.data.props);n.data.props=Object.keys(n.data.props).reduce((function(h,g){return Object.keys(hh).includes(g)?n.data[Qx[g]||g]=a[g]:h[g]=n.data.props[g],h}),{}),n.data.name=tc(r=n.data.type),n.data.displayName=tc(r),n.data.type===ph&&(n.data.isCanvas=!0,gv())}t&&t(n);var i=r.craft;if(i){if(n.data.displayName=i.displayName||i.name||n.data.displayName,n.data.props=ht(ht({},i.props||i.defaultProps||{}),n.data.props),n.data.custom=ht(ht({},i.custom||{}),n.data.custom),i.isCanvas!=null&&(n.data.isCanvas=i.isCanvas),i.rules&&Object.keys(i.rules).forEach((function(h){["canDrag","canDrop","canMoveIn","canMoveOut"].includes(h)&&(n.rules[h]=i.rules[h])})),i.related){var u={id:n.id,related:!0};Object.keys(i.related).forEach((function(h){n.related[h]=function(g){return I.createElement(ah,u,I.createElement(i.related[h],g))}}))}i.info&&(n.info=i.info)}return n}const bh=(e,t,r)=>{let{type:n,props:a}=e;const i=((h,g)=>typeof h=="object"&&h.resolvedName?h.resolvedName==="Canvas"?ph:g[h.resolvedName]:typeof h=="string"?h:null)(n,t);if(!i)return;a=Object.keys(a).reduce(((h,g)=>{const p=a[g];return h[g]=p==null?null:typeof p=="object"&&p.resolvedName?bh(p,t):g==="children"&&Array.isArray(p)?p.map((b=>typeof b=="string"?b:bh(b,t))):p,h}),{});const u={...I.createElement(i,{...a})};return{...u,name:ec(t,u.type)}},aw=(e,t)=>{const{type:r,props:n,...a}=e;st(r!==void 0&&typeof r=="string"||r!==void 0&&r.resolvedName!==void 0,Ax.replace("%displayName%",e.displayName).replace("%availableComponents%",Object.keys(t).join(", ")));const{type:i,name:u,props:h}=bh(e,t),{parent:g,custom:p,displayName:b,isCanvas:D,nodes:F,hidden:S}=a;return{type:i,name:u,displayName:b||u,props:h,custom:p||{},isCanvas:!!D,hidden:!!S,parent:g,linkedNodes:a.linkedNodes||a._childCanvas||{},nodes:F||[]}},iw=(e,t)=>{if(t.length<1)return{[e.id]:e};const r=t.map((({rootNodeId:a})=>a)),n={...e,data:{...e.data,nodes:r}};return t.reduce(((a,i)=>{const u=i.nodes[i.rootNodeId];return{...a,...i.nodes,[u.id]:{...u,data:{...u.data,parent:e.id}}}}),{[e.id]:n})},ow=(e,t)=>({rootNodeId:e.id,nodes:iw(e,t)});function xv(e){const t=e&&e.options,r=()=>xv(e);return{getDropPlaceholder:(n,a,i,u=(h=>e.nodes[h.id].dom))=>{const h=e.nodes[a],g=r().node(h.id).isCanvas()?h:e.nodes[h.data.parent];if(!g)return;const p=g.data.nodes||[],b=bv(g,p?p.reduce(((S,R)=>{const O=u(e.nodes[R]);if(O){const N={id:R,...Hl(O)};S.push(N)}return S}),[]):[],i.x,i.y),D=p.length&&e.nodes[p[b.index]],F={placement:{...b,currentNode:D},error:null};return Ka(e.nodes,n).forEach((({node:S,exists:R})=>{R&&r().node(S.id).isDraggable((O=>F.error=O))})),r().node(g.id).isDroppable(n,(S=>F.error=S)),F},getOptions:()=>t,getNodes:()=>e.nodes,node:n=>vh(e,n),getSerializedNodes(){const n=Object.keys(e.nodes).map((a=>[a,this.node(a).toSerializedNode()]));return vv(n)},getEvent:n=>(function(a,i){var u=a.events[i];return{contains:function(h){return u.has(h)},isEmpty:function(){return this.all().length===0},first:function(){return this.all()[0]},last:function(){var h=this.all();return h[h.length-1]},all:function(){return Array.from(u)},size:function(){return this.all().length},at:function(h){return this.all()[h]},raw:function(){return u}}})(e,n),serialize(){return JSON.stringify(this.getSerializedNodes())},parseReactElement:n=>({toNodeTree(a){let i=(function(h,g){let p=h;return typeof p=="string"&&(p=I.createElement(I.Fragment,{},p)),yv({data:{type:p.type,props:{...p.props}}},(b=>{g&&g(b,p)}))})(n,((h,g)=>{const p=ec(e.options.resolver,h.data.type);h.data.displayName=h.data.displayName||p,h.data.name=p,a&&a(h,g)})),u=[];return n.props&&n.props.children&&(u=I.Children.toArray(n.props.children).reduce(((h,g)=>(I.isValidElement(g)&&h.push(r().parseReactElement(g).toNodeTree(a)),h)),[])),ow(i,u)}}),parseSerializedNode:n=>({toNode(a){const i=aw(n,e.options.resolver);st(i.type);const u=typeof a=="string"&&a;return u&&Qi("query.parseSerializedNode(...).toNode(id)",{suggest:"query.parseSerializedNode(...).toNode(node => node.id = id)"}),r().parseFreshNode({...u?{id:u}:{},data:i}).toNode(!u&&a)}}),parseFreshNode:n=>({toNode:a=>yv(n,(i=>{i.data.parent===Xm&&(i.data.parent=va);const u=ec(e.options.resolver,i.data.type);st(u!==null),i.data.displayName=i.data.displayName||u,i.data.name=u,a&&a(i)}))}),createNode(n,a){Qi(`query.createNode(${n})`,{suggest:`query.parseReactElement(${n}).toNodeTree()`});const i=this.parseReactElement(n).toNodeTree(),u=i.nodes[i.rootNodeId];return a&&(a.id&&(u.id=a.id),a.data&&(u.data={...u.data,...a.data})),u},getState:()=>e}}var sw=(function(e){oh(r,av);var t=uh(r);function r(){return Zu(this,r),t.apply(this,arguments)}return qu(r,[{key:"handlers",value:function(){return{connect:function(n,a){},select:function(n,a){},hover:function(n,a){},drag:function(n,a){},drop:function(n,a){},create:function(n,a,i){}}}}]),r})();(function(e){oh(r,Mx);var t=uh(r);function r(){return Zu(this,r),t.apply(this,arguments)}return qu(r)})();var wv=function(e){e.preventDefault()},yh=(function(){function e(t,r){Zu(this,e),Zt(this,"store",void 0),Zt(this,"dragTarget",void 0),Zt(this,"currentDropTargetId",void 0),Zt(this,"currentDropTargetCanvasAncestorId",void 0),Zt(this,"currentIndicator",null),Zt(this,"currentTargetId",void 0),Zt(this,"currentTargetChildDimensions",void 0),Zt(this,"dragError",void 0),Zt(this,"draggedNodes",void 0),Zt(this,"onScrollListener",void 0),this.store=t,this.dragTarget=r,this.currentDropTargetId=null,this.currentDropTargetCanvasAncestorId=null,this.currentTargetId=null,this.currentTargetChildDimensions=null,this.currentIndicator=null,this.dragError=null,this.draggedNodes=this.getDraggedNodes(),this.validateDraggedNodes(),this.onScrollListener=this.onScroll.bind(this),window.addEventListener("scroll",this.onScrollListener,!0),window.addEventListener("dragover",wv,!1)}return qu(e,[{key:"cleanup",value:function(){window.removeEventListener("scroll",this.onScrollListener,!0),window.removeEventListener("dragover",wv,!1)}},{key:"onScroll",value:function(t){var r=t.target,n=this.store.query.node(va).get();r instanceof Element&&n&&n.dom&&r.contains(n.dom)&&(this.currentTargetChildDimensions=null)}},{key:"getDraggedNodes",value:function(){return Ka(this.store.query.getNodes(),this.dragTarget.type==="new"?this.dragTarget.tree.nodes[this.dragTarget.tree.rootNodeId]:this.dragTarget.nodes)}},{key:"validateDraggedNodes",value:function(){var t=this;this.dragTarget.type!=="new"&&this.draggedNodes.forEach((function(r){r.exists&&t.store.query.node(r.node.id).isDraggable((function(n){t.dragError=n}))}))}},{key:"isNearBorders",value:function(t,r,n){return t.top+e.BORDER_OFFSET>n||t.bottom-e.BORDER_OFFSET<n||t.left+e.BORDER_OFFSET>r||t.right-e.BORDER_OFFSET<r}},{key:"isDiff",value:function(t){return!this.currentIndicator||this.currentIndicator.placement.parent.id!==t.parent.id||this.currentIndicator.placement.index!==t.index||this.currentIndicator.placement.where!==t.where}},{key:"getChildDimensions",value:function(t){var r=this,n=this.currentTargetChildDimensions;return this.currentTargetId===t.id&&n?n:t.data.nodes.reduce((function(a,i){var u=r.store.query.node(i).get().dom;return u&&a.push(ht({id:i},Hl(u))),a}),[])}},{key:"getCanvasAncestor",value:function(t){var r=this;if(t===this.currentDropTargetId&&this.currentDropTargetCanvasAncestorId){var n=this.store.query.node(this.currentDropTargetCanvasAncestorId).get();if(n)return n}return(function a(i){var u=r.store.query.node(i).get();return u&&u.data.isCanvas?u:u.data.parent?a(u.data.parent):null})(t)}},{key:"computeIndicator",value:function(t,r,n){var a=this.getCanvasAncestor(t);if(a&&(this.currentDropTargetId=t,this.currentDropTargetCanvasAncestorId=a.id,a.data.parent&&this.isNearBorders(Hl(a.dom),r,n)&&!this.store.query.node(a.id).isLinkedNode()&&(a=this.store.query.node(a.data.parent).get()),a)){this.currentTargetChildDimensions=this.getChildDimensions(a),this.currentTargetId=a.id;var i=bv(a,this.currentTargetChildDimensions,r,n);if(this.isDiff(i)){var u=this.dragError;u||this.store.query.node(a.id).isDroppable(this.draggedNodes.map((function(p){return p.node})),(function(p){u=p}));var h=a.data.nodes[i.index],g=h&&this.store.query.node(h).get();return this.currentIndicator={placement:ht(ht({},i),{},{currentNode:g}),error:u},this.currentIndicator}}}},{key:"getIndicator",value:function(){return this.currentIndicator}}]),e})();Zt(yh,"BORDER_OFFSET",10);var Dv=function(e,t){if(t.length===1||arguments.length>2&&arguments[2]!==void 0&&arguments[2]){var r=t[0].getBoundingClientRect(),n=r.width,a=r.height,i=t[0].cloneNode(!0);return i.style.position="absolute",i.style.left="-100%",i.style.top="-100%",i.style.width="".concat(n,"px"),i.style.height="".concat(a,"px"),i.style.pointerEvents="none",i.classList.add("drag-shadow"),document.body.appendChild(i),e.dataTransfer.setDragImage(i,0,0),i}var u=document.createElement("div");return u.style.position="absolute",u.style.left="-100%",u.style.top="-100%",u.style.width="100%",u.style.height="100%",u.style.pointerEvents="none",u.classList.add("drag-shadow-container"),t.forEach((function(h){var g=h.getBoundingClientRect(),p=g.width,b=g.height,D=g.top,F=g.left,S=h.cloneNode(!0);S.style.position="absolute",S.style.left="".concat(F,"px"),S.style.top="".concat(D,"px"),S.style.width="".concat(p,"px"),S.style.height="".concat(b,"px"),S.classList.add("drag-shadow"),u.appendChild(S)})),document.body.appendChild(u),e.dataTransfer.setDragImage(u,e.clientX,e.clientY),u},Cv=(function(e){oh(r,sw);var t=uh(r);function r(){var n;Zu(this,r);for(var a=arguments.length,i=new Array(a),u=0;u<a;u++)i[u]=arguments[u];return Zt(jl(n=t.call.apply(t,[this].concat(i))),"draggedElementShadow",void 0),Zt(jl(n),"dragTarget",void 0),Zt(jl(n),"positioner",null),Zt(jl(n),"currentSelectedElementIds",[]),n}return qu(r,[{key:"onDisable",value:function(){this.options.store.actions.clearEvents()}},{key:"handlers",value:function(){var n=this,a=this.options.store;return{connect:function(i,u){return a.actions.setDOM(u,i),n.reflect((function(h){h.select(i,u),h.hover(i,u),h.drop(i,u)}))},select:function(i,u){var h=n.addCraftEventListener(i,"mousedown",(function(p){p.craft.stopPropagation();var b=[];if(u){var D=a.query,F=D.getEvent("selected").all();(n.options.isMultiSelectEnabled(p)||F.includes(u))&&(b=F.filter((function(S){var R=D.node(S).descendants(!0),O=D.node(S).ancestors(!0);return!R.includes(u)&&!O.includes(u)}))),b.includes(u)||b.push(u)}a.actions.setNodeEvent("selected",b)})),g=n.addCraftEventListener(i,"click",(function(p){p.craft.stopPropagation();var b=a.query.getEvent("selected").all(),D=n.options.isMultiSelectEnabled(p),F=n.currentSelectedElementIds.includes(u),S=Ul(b);D&&F?(S.splice(S.indexOf(u),1),a.actions.setNodeEvent("selected",S)):!D&&b.length>1&&a.actions.setNodeEvent("selected",S=[u]),n.currentSelectedElementIds=S}));return function(){h(),g()}},hover:function(i,u){var h=n.addCraftEventListener(i,"mouseover",(function(p){p.craft.stopPropagation(),a.actions.setNodeEvent("hovered",u)})),g=null;return n.options.removeHoverOnMouseleave&&(g=n.addCraftEventListener(i,"mouseleave",(function(p){p.craft.stopPropagation(),a.actions.setNodeEvent("hovered",null)}))),function(){h(),g&&g()}},drop:function(i,u){var h=n.addCraftEventListener(i,"dragover",(function(p){if(p.craft.stopPropagation(),p.preventDefault(),n.positioner){var b=n.positioner.computeIndicator(u,p.clientX,p.clientY);b&&a.actions.setIndicator(b)}})),g=n.addCraftEventListener(i,"dragenter",(function(p){p.craft.stopPropagation(),p.preventDefault()}));return function(){g(),h()}},drag:function(i,u){if(!a.query.node(u).isDraggable())return function(){};i.setAttribute("draggable","true");var h=n.addCraftEventListener(i,"dragstart",(function(p){p.craft.stopPropagation();var b=a.query,D=a.actions,F=b.getEvent("selected").all(),S=n.options.isMultiSelectEnabled(p);n.currentSelectedElementIds.includes(u)||(F=S?[].concat(Ul(F),[u]):[u],a.actions.setNodeEvent("selected",F)),D.setNodeEvent("dragged",F);var R=F.map((function(O){return b.node(O).get().dom}));n.draggedElementShadow=Dv(p,R,r.forceSingleDragShadow),n.dragTarget={type:"existing",nodes:F},n.positioner=new yh(n.options.store,n.dragTarget)})),g=n.addCraftEventListener(i,"dragend",(function(p){p.craft.stopPropagation(),n.dropElement((function(b,D){b.type!=="new"&&a.actions.move(b.nodes,D.placement.parent.id,D.placement.index+(D.placement.where==="after"?1:0))}))}));return function(){i.setAttribute("draggable","false"),h(),g()}},create:function(i,u,h){i.setAttribute("draggable","true");var g=n.addCraftEventListener(i,"dragstart",(function(b){var D;if(b.craft.stopPropagation(),typeof u=="function"){var F=u();D=I.isValidElement(F)?a.query.parseReactElement(F).toNodeTree():F}else D=a.query.parseReactElement(u).toNodeTree();n.draggedElementShadow=Dv(b,[b.currentTarget],r.forceSingleDragShadow),n.dragTarget={type:"new",tree:D},n.positioner=new yh(n.options.store,n.dragTarget)})),p=n.addCraftEventListener(i,"dragend",(function(b){b.craft.stopPropagation(),n.dropElement((function(D,F){D.type!=="existing"&&(a.actions.addNodeTree(D.tree,F.placement.parent.id,F.placement.index+(F.placement.where==="after"?1:0)),h&&Vx(h.onCreate)&&h.onCreate(D.tree))}))}));return function(){i.removeAttribute("draggable"),g(),p()}}}}},{key:"dropElement",value:function(n){var a=this.options.store;if(this.positioner){var i=this.draggedElementShadow,u=this.positioner.getIndicator();this.dragTarget&&u&&!u.error&&n(this.dragTarget,u),i&&(i.parentNode.removeChild(i),this.draggedElementShadow=null),this.dragTarget=null,a.actions.setIndicator(null),a.actions.setNodeEvent("dragged",null),this.positioner.cleanup(),this.positioner=null}}}]),r})();function lw(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:2,a=0,i=0,u=0,h=0,g=e.where;return r?r.inFlow?(u=r.outerWidth,h=n,a=g==="before"?r.top:r.bottom,i=r.left):(u=n,h=r.outerHeight,a=r.top,i=g==="before"?r.left:r.left+r.outerWidth):t&&(a=t.top+t.padding.top,i=t.left+t.padding.left,u=t.outerWidth-t.padding.right-t.padding.left-t.margin.left-t.margin.right,h=n),{top:"".concat(a,"px"),left:"".concat(i,"px"),width:"".concat(u,"px"),height:"".concat(h,"px")}}Zt(Cv,"forceSingleDragShadow",Wx()&&Ux());const uw=()=>{const{indicator:e,indicatorOptions:t,enabled:r}=Io((a=>({indicator:a.indicator,indicatorOptions:a.options.indicator,enabled:a.options.enabled}))),n=pv();return I.useEffect((()=>{n&&(r?n.enable():n.disable())}),[r,n]),e?I.createElement(jx,{className:t.className,style:{...lw(e.placement,Hl(e.placement.parent.dom),e.placement.currentNode&&Hl(e.placement.currentNode.dom),t.thickness),backgroundColor:e.error?t.error:t.success,transition:t.transition||"0.2s ease-in",...t.style??{}},parentDom:e.placement.parent.dom}):null},cw=({children:e})=>{const t=I.useContext(dh),r=I.useMemo((()=>t.query.getOptions().handlers(t)),[t]);return r?I.createElement(hv.Provider,{value:r},I.createElement(uw,null),e):null},Ev={nodes:{},events:{dragged:new Set,selected:new Set,hovered:new Set},indicator:null,options:{onNodesChange:()=>null,onRender:({render:e})=>e,onBeforeMoveEnd:()=>null,resolver:{},enabled:!0,indicator:{error:"red",success:"rgb(98, 196, 98)"},handlers:e=>new Cv({store:e,removeHoverOnMouseleave:!1,isMultiSelectEnabled:t=>!!t.metaKey}),normalizeNodes:()=>{}}},dw={methods:function(e,t){return ht(ht({},(function(r,n){var a=function(h,g,p){if((function F(S,R){var O=h.nodes[S];typeof O.data.type!="string"&&st(r.options.resolver[O.data.name],Zm.replace("%node_type%","".concat(O.data.type.name))),r.nodes[S]=ht(ht({},O),{},{data:ht(ht({},O.data),{},{parent:R})}),O.data.nodes.length>0&&(delete r.nodes[S].data.props.children,O.data.nodes.forEach((function(N){return F(N,O.id)}))),Object.values(O.data.linkedNodes).forEach((function(N){return F(N,O.id)}))})(h.rootNodeId,g),g||h.rootNodeId!==va){var b=i(g);if(p.type!=="child")b.data.linkedNodes[p.id]=h.rootNodeId;else{var D=p.index;D!=null?b.data.nodes.splice(D,0,h.rootNodeId):b.data.nodes.push(h.rootNodeId)}}},i=function(h){st(h);var g=r.nodes[h];return st(g),g},u=function h(g){var p=r.nodes[g],b=r.nodes[p.data.parent];if(p.data.nodes&&Ul(p.data.nodes).forEach((function(S){return h(S)})),p.data.linkedNodes&&Object.values(p.data.linkedNodes).map((function(S){return h(S)})),b.data.nodes.includes(g)){var D=b.data.nodes;D.splice(D.indexOf(g),1)}else{var F=Object.keys(b.data.linkedNodes).find((function(S){return b.data.linkedNodes[S]===S}));F&&delete b.data.linkedNodes[F]}(function(S,R){Object.keys(S.events).forEach((function(O){var N=S.events[O];N&&N.has&&N.has(R)&&(S.events[O]=new Set(Array.from(N).filter((function(_){return R!==_}))))}))})(r,g),delete r.nodes[g]};return{addLinkedNodeFromTree:function(h,g,p){var b=i(g).data.linkedNodes[p];b&&u(b),a(h,g,{type:"linked",id:p})},add:function(h,g,p){var b=[h];Array.isArray(h)&&(Qi("actions.add(node: Node[])",{suggest:"actions.add(node: Node)"}),b=h),b.forEach((function(D){a({nodes:Zt({},D.id,D),rootNodeId:D.id},g,{type:"child",index:p})}))},addNodeTree:function(h,g,p){a(h,g,{type:"child",index:p})},delete:function(h){Ka(r.nodes,h,{existOnly:!0,idOnly:!0}).forEach((function(g){var p=g.node;st(!n.node(p.id).isTopLevelNode()),u(p.id)}))},deserialize:function(h){var g=typeof h=="string"?JSON.parse(h):h,p=Object.keys(g).map((function(b){var D=b;return b===Xm&&(D=va),[D,n.parseSerializedNode(g[b]).toNode((function(F){return F.id=D}))]}));this.replaceNodes(vv(p))},move:function(h,g,p){var b=Ka(r.nodes,h,{existOnly:!0}),D=r.nodes[g],F=new Set;b.forEach((function(S,R){var O=S.node,N=O.id,_=O.data.parent;n.node(g).isDroppable([N],(function(H){throw new Error(H)})),r.options.onBeforeMoveEnd(O,D,r.nodes[_]);var M=r.nodes[_].data.nodes;F.add(M);var U=M.indexOf(N);M[U]="$$",D.data.nodes.splice(p+R,0,N),r.nodes[N].data.parent=g})),F.forEach((function(S){var R=S.length;Ul(S).reverse().forEach((function(O,N){O==="$$"&&S.splice(R-1-N,1)}))}))},replaceNodes:function(h){this.clearEvents(),r.nodes=h},clearEvents:function(){this.setNodeEvent("selected",null),this.setNodeEvent("hovered",null),this.setNodeEvent("dragged",null),this.setIndicator(null)},reset:function(){this.clearEvents(),this.replaceNodes({})},setOptions:function(h){h(r.options)},setNodeEvent:function(h,g){if(r.events[h].forEach((function(D){r.nodes[D]&&(r.nodes[D].events[h]=!1)})),r.events[h]=new Set,g){var p=Ka(r.nodes,g,{idOnly:!0,existOnly:!0}),b=new Set(p.map((function(D){return D.node.id})));b.forEach((function(D){r.nodes[D].events[h]=!0})),r.events[h]=b}},setCustom:function(h,g){Ka(r.nodes,h,{idOnly:!0,existOnly:!0}).forEach((function(p){return g(r.nodes[p.node.id].data.custom)}))},setDOM:function(h,g){r.nodes[h]&&(r.nodes[h].dom=g)},setIndicator:function(h){h&&(!h.placement.parent.dom||h.placement.currentNode&&!h.placement.currentNode.dom)||(r.indicator=h)},setHidden:function(h,g){r.nodes[h].data.hidden=g},setProp:function(h,g){Ka(r.nodes,h,{idOnly:!0,existOnly:!0}).forEach((function(p){return g(r.nodes[p.node.id].data.props)}))},selectNode:function(h){if(h){var g=Ka(r.nodes,h,{idOnly:!0,existOnly:!0});this.setNodeEvent("selected",g.map((function(p){return p.node.id})))}else this.setNodeEvent("selected",null);this.setNodeEvent("hovered",null)}}})(e,t)),{},{setState:function(r){var n=lh(this,tw);r(e,n)}})},ignoreHistoryForActions:["setDOM","setNodeEvent","selectNode","clearEvents","setOptions","setIndicator"],normalizeHistory:e=>{Object.keys(e.events).forEach((t=>{Array.from(e.events[t]||[]).forEach((r=>{e.nodes[r]||e.events[t].delete(r)}))})),Object.keys(e.nodes).forEach((t=>{const r=e.nodes[t];Object.keys(r.events).forEach((n=>{r.events[n]&&e.events[n]&&!e.events[n].has(r.id)&&(r.events[n]=!1)}))}))}},fw=(e,t)=>Ox(dw,{...Ev,options:{...Ev.options,...e}},xv,t),hw=({children:e,...t})=>{t.resolver!==void 0&&st(typeof t.resolver=="object"&&!Array.isArray(t.resolver)&&t.resolver!==null);const r=Al.useRef(t),n=fw(r.current,((a,i,u,h,g)=>{if(!u)return;const{patches:p,...b}=u;for(let D=0;D<p.length;D++){const{path:F}=p[D],S=F.length>2&&F[0]==="nodes"&&F[2]==="data";if([Tt.IGNORE,Tt.THROTTLE].includes(b.type)&&b.params&&(b.type=b.params[0]),["setState","deserialize"].includes(b.type)||S){g((R=>{a.options.normalizeNodes&&a.options.normalizeNodes(R,i,b,h)}));break}}}));return Al.useEffect((()=>{n&&t.enabled!==void 0&&n.query.getOptions().enabled!==t.enabled&&n.actions.setOptions((a=>{a.enabled=t.enabled}))}),[n,t.enabled]),Al.useEffect((()=>{n.subscribe((a=>({json:n.query.serialize()})),(()=>{n.query.getOptions().onNodesChange(n.query)}))}),[n]),n?Al.createElement(dh.Provider,{value:n},Al.createElement(cw,null,e)):null};var Fv={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Sv=I.createContext&&I.createContext(Fv),pw=["attr","size","title"];function gw(e,t){if(e==null)return{};var r=mw(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function mw(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function rc(){return rc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},rc.apply(this,arguments)}function kv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function nc(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?kv(Object(r),!0).forEach(function(n){vw(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function vw(e,t,r){return t=bw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bw(e){var t=yw(e,"string");return typeof t=="symbol"?t:t+""}function yw(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Tv(e){return e&&e.map((t,r)=>I.createElement(t.tag,nc({key:r},t.attr),Tv(t.child)))}function Xn(e){return t=>I.createElement(xw,rc({attr:nc({},e.attr)},t),Tv(e.child))}function xw(e){var t=r=>{var{attr:n,size:a,title:i}=e,u=gw(e,pw),h=a||r.size||"1em",g;return r.className&&(g=r.className),e.className&&(g=(g?g+" ":"")+e.className),I.createElement("svg",rc({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,n,u,{className:g,style:nc(nc({color:e.color||r.color},r.style),e.style),height:h,width:h,xmlns:"http://www.w3.org/2000/svg"}),i&&I.createElement("title",null,i),e.children)};return Sv!==void 0?I.createElement(Sv.Consumer,null,r=>t(r)):t(Fv)}function _v(e){return Xn({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M4 3H20C20.5523 3 21 3.44772 21 4V20C21 20.5523 20.5523 21 20 21H4C3.44772 21 3 20.5523 3 20V4C3 3.44772 3.44772 3 4 3ZM5 5V19H19V5H5Z"},child:[]}]})(e)}function ww(e){return Xn({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M24 12L18.3431 17.6569L16.9289 16.2426L21.1716 12L16.9289 7.75736L18.3431 6.34315L24 12ZM2.82843 12L7.07107 16.2426L5.65685 17.6569L0 12L5.65685 6.34315L7.07107 7.75736L2.82843 12ZM9.78845 21H7.66009L14.2116 3H16.3399L9.78845 21Z"},child:[]}]})(e)}function Dw(e){return Xn({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M2 11H4V13H2V11ZM6 11H18V13H6V11ZM20 11H22V13H20V11Z"},child:[]}]})(e)}function Cw(e){return Xn({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M13 6V21H11V6H5V4H19V6H13Z"},child:[]}]})(e)}function Ew(e){return Xn({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M2.9918 21C2.44405 21 2 20.5551 2 20.0066V3.9934C2 3.44476 2.45531 3 2.9918 3H21.0082C21.556 3 22 3.44495 22 3.9934V20.0066C22 20.5552 21.5447 21 21.0082 21H2.9918ZM20 15V5H4V19L14 9L20 15ZM20 17.8284L14 11.8284L6.82843 19H20V17.8284ZM8 11C6.89543 11 6 10.1046 6 9C6 7.89543 6.89543 7 8 7C9.10457 7 10 7.89543 10 9C10 10.1046 9.10457 11 8 11Z"},child:[]}]})(e)}function Fw(e){return Xn({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M12 1L21.5 6.5V17.5L12 23L2.5 17.5V6.5L12 1ZM5.49388 7.0777L12.0001 10.8444L18.5062 7.07774L12 3.311L5.49388 7.0777ZM4.5 8.81329V16.3469L11.0001 20.1101V12.5765L4.5 8.81329ZM13.0001 20.11L19.5 16.3469V8.81337L13.0001 12.5765V20.11Z"},child:[]}]})(e)}const Av=({text:e="Text",style:t,href:r,...n})=>{const{connectors:{connect:a,drag:i},selected:u}=mt(p=>({selected:p.events.selected})),{isEnabled:h}=Hr(p=>({isEnabled:p.options.enabled})),g=()=>({...{fontFamily:"inherit",fontWeight:"500",cursor:u?"pointer":"default",transition:"all 0.2s",padding:"8px 16px",fontSize:"16px",backgroundColor:"#3b82f6",color:"#ffffff",borderRadius:"8px",borderStyle:"none",whiteSpace:"nowrap",display:"inline-flex",textDecoration:"none",lineHeight:"1.5",alignItems:"center",justifyContent:"center"},...t});return m.jsx("a",{ref:p=>{p&&a(i(p))},style:g(),href:h?void 0:r,target:"_blank",...n,children:e})},Sw={props:{text:"Text",target:"_blank",style:{fontFamily:"inherit",fontWeight:"500",cursor:"pointer",transition:"all 0.2s",padding:"8px 16px",fontSize:"16px",backgroundColor:"#3b82f6",color:"#ffffff",borderRadius:"8px",borderStyle:"none",whiteSpace:"nowrap",display:"inline-flex",textDecoration:"none",lineHeight:"1.5",alignItems:"center",justifyContent:"center"}},displayName:"Anchor",custom:{displayName:"Anchor",settings:["anchor","typography","background","border","spacing"]}};function xh(){const{actions:{setProp:e},text:t,href:r}=mt(n=>({text:n.data.props.text,href:n.data.props.href}));return m.jsxs("div",{className:"space-y-4 p-4",children:[m.jsxs("div",{children:[m.jsx("label",{className:"mb-2 block text-sm font-medium text-gray-700",children:"Text"}),m.jsx("input",{type:"text",value:t,onChange:n=>e(a=>a.text=n.target.value),className:"focus:ring-primary-500 w-full rounded-md border border-gray-300 px-3 py-2 focus:outline-none focus:ring-2"})]}),m.jsxs("div",{children:[m.jsx("label",{className:"mb-2 block text-sm font-medium text-gray-700",children:"Link"}),m.jsx("input",{type:"text",value:r||"",onChange:n=>{e(a=>a.href=n.target.value)},className:"focus:ring-primary-500 w-full rounded-md border border-gray-300 px-3 py-2 focus:outline-none focus:ring-2"})]})]})}Av.craft={...Sw,related:{settings:xh}};const Nv=({children:e,style:t,...r})=>{const{connectors:{connect:n,drag:a}}=mt(u=>({selected:u.events.selected})),i={...t,overflow:"visible",boxSizing:"border-box",...t?.height==="auto"&&{height:"auto",minHeight:t?.minHeight||"50px"}};return m.jsx("div",{ref:u=>{u&&n(a(u))},style:i,...r,children:e})},kw={displayName:"Box",isCanvas:!0,custom:{resizable:!0,settings:["box","default"]},props:{style:{border:"none",borderRadius:"0px",width:"100%",height:"auto",minHeight:"50px"}}};Nv.craft={...kw};const $i=({options:e,value:t,onChange:r,placeholder:n="Select an option",disabled:a=!1,className:i=""})=>m.jsxs("div",{className:`relative ${i}`,children:[m.jsxs("select",{value:t||"",onChange:u=>r?.(u.target.value),disabled:a,className:`w-full appearance-none rounded-none border border-[#E8E7EE] bg-white px-3 py-2 pr-10 text-sm text-gray-700 transition-all duration-200 hover:border-[#170F4F]/30 hover:bg-gray-50 focus:border-[#170F4F] focus:outline-none focus:ring-1 focus:ring-[#170F4F]/20 disabled:cursor-not-allowed disabled:bg-gray-50 disabled:text-gray-400 ${t?"text-gray-700":"text-gray-500"} `,children:[n&&m.jsx("option",{value:"",disabled:!0,hidden:!0,children:n}),e.map(u=>m.jsx("option",{value:u.value,children:u.label},u.value))]}),m.jsx("div",{className:"pointer-events-none absolute inset-y-0 right-0 flex items-center pr-3",children:m.jsx(ce.FiChevronDown,{size:16,className:`transition-colors duration-200 ${a?"text-gray-400":"text-gray-500"}`})})]});function Rv(){const{actions:{setProp:e},style:t}=mt(n=>({style:n.data.props.style})),r=t.display==="block"?"block":t.flexDirection;return m.jsxs("div",{className:"space-y-4 p-4",children:[m.jsxs("div",{children:[m.jsx("label",{className:"mb-2 block text-sm font-medium text-gray-700",children:"Layout direction"}),m.jsx($i,{options:[{value:"row",label:"Row"},{value:"column",label:"Column"},{value:"block",label:"Block"}],value:r,onChange:n=>{e(n==="block"?a=>{a.style.display="block",delete a.style.flexDirection}:a=>{a.style.display="flex",a.style.flexDirection=n})},placeholder:"Choose alignament"})]}),t.display!=="block"&&m.jsxs(m.Fragment,{children:[m.jsxs("div",{children:[m.jsx("label",{className:"mb-2 block text-sm font-medium text-gray-700",children:"Alignament"}),m.jsx($i,{options:[{value:"flex-start",label:"Flex Start"},{value:"flex-end",label:"Flex End"},{value:"center",label:"Center"},{value:"space-between",label:"Space Between"},{value:"space-around",label:"Space Around"},{value:"space-evenly",label:"Space Evenly"}],value:t.justifyContent,onChange:n=>e(a=>a.style.justifyContent=n),placeholder:"Choose alignament"})]}),m.jsxs("div",{children:[m.jsx("label",{className:"mb-2 block text-sm font-medium text-gray-700",children:"Gap"}),m.jsx($i,{options:[{value:"0px",label:"0"},{value:"4px",label:"4"},{value:"8px",label:"8"},{value:"12px",label:"12"},{value:"16px",label:"16"},{value:"24px",label:"24"},{value:"32px",label:"32"},{value:"48px",label:"48"},{value:"64px",label:"64"}],value:t.gap,onChange:n=>e(a=>a.style.gap=n),placeholder:"Choose gap"})]})]})]})}const Ov=({text:e="Button",onClick:t,style:r,...n})=>{const{connectors:{connect:a,drag:i},selected:u}=mt(g=>({selected:g.events.selected})),h=()=>({...{fontFamily:"inherit",fontWeight:"500",cursor:u?"pointer":"default",transition:"all 0.2s",padding:"8px 16px",fontSize:"16px",backgroundColor:"#3b82f6",color:"#ffffff",borderRadius:"8px",borderStyle:"none",whiteSpace:"nowrap"},...r});return m.jsx("button",{ref:g=>{g&&a(i(g))},style:h(),className:`${u?"ring-primary-500 ring-2 ring-opacity-50":"hover:ring-2 hover:ring-gray-300 hover:ring-opacity-50"} transition-all duration-200`,onClick:t,...n,children:e})},Tw={props:{text:"Button",style:{fontFamily:"inherit",fontWeight:"500",cursor:"pointer",transition:"all 0.2s",padding:"8px 16px",fontSize:"16",backgroundColor:"#3b82f6",color:"#ffffff",borderRadius:"8px",borderStyle:"none",whiteSpace:"nowrap"}},displayName:"Button",custom:{displayName:"Button",settings:["button","typography","background","border","spacing"]}};function wh(){const{actions:{setProp:e},text:t,href:r}=mt(n=>({text:n.data.props.text,href:n.data.props.href}));return m.jsxs("div",{className:"space-y-4 p-4",children:[m.jsxs("div",{children:[m.jsx("label",{className:"mb-2 block text-sm font-medium text-gray-700",children:"Button text"}),m.jsx("input",{type:"text",value:t,onChange:n=>e(a=>a.text=n.target.value),className:"focus:ring-primary-500 w-full rounded-md border border-gray-300 px-3 py-2 focus:outline-none focus:ring-2"})]}),m.jsxs("div",{children:[m.jsx("label",{className:"mb-2 block text-sm font-medium text-gray-700",children:"Link"}),m.jsx("input",{type:"text",value:r||"",onChange:n=>{e(a=>a.onClick=()=>{window.open(n.target.value,"_blank")}),e(a=>a.href=n.target.value)},className:"focus:ring-primary-500 w-full rounded-md border border-gray-300 px-3 py-2 focus:outline-none focus:ring-2"})]})]})}Ov.craft={...Tw,related:{settings:wh}};function Bv(){const{actions:{setProp:e},color:t,height:r,width:n,margin:a}=mt(i=>({color:i.data.props.color,height:i.data.props.height,width:i.data.props.width,margin:i.data.props.margin}));return m.jsxs("div",{className:"space-y-4 p-4",children:[m.jsxs("div",{children:[m.jsx("label",{className:"mb-2 block text-sm font-medium text-gray-700",children:"Color"}),m.jsx("input",{type:"color",value:t,onChange:i=>e(u=>u.color=i.target.value),className:"focus:ring-primary-500 h-10 w-full rounded-md border border-gray-300 focus:outline-none focus:ring-2"})]}),m.jsxs("div",{children:[m.jsx("label",{className:"mb-2 block text-sm font-medium text-gray-700",children:"Height"}),m.jsx("input",{type:"text",value:r,onChange:i=>e(u=>u.height=i.target.value),placeholder:"1px",className:"focus:ring-primary-500 w-full rounded-md border border-gray-300 px-3 py-2 focus:outline-none focus:ring-2"})]}),m.jsxs("div",{children:[m.jsx("label",{className:"mb-2 block text-sm font-medium text-gray-700",children:"Width"}),m.jsx("input",{type:"text",value:n,onChange:i=>e(u=>u.width=i.target.value),placeholder:"100%",className:"focus:ring-primary-500 w-full rounded-md border border-gray-300 px-3 py-2 focus:outline-none focus:ring-2"})]}),m.jsxs("div",{children:[m.jsx("label",{className:"mb-2 block text-sm font-medium text-gray-700",children:"Margin"}),m.jsx("input",{type:"text",value:a,onChange:i=>e(u=>u.margin=i.target.value),placeholder:"16px 0",className:"focus:ring-primary-500 w-full rounded-md border border-gray-300 px-3 py-2 focus:outline-none focus:ring-2"})]})]})}const Pv=({color:e="#e5e7eb",height:t="1px",width:r="100%",margin:n="16px 0",...a})=>{const{connectors:{connect:i,drag:u},selected:h}=mt(p=>({selected:p.events.selected})),g={backgroundColor:e,height:t,width:r,margin:n,cursor:h?"pointer":"default"};return m.jsx("hr",{ref:p=>{p&&i(u(p))},style:g,className:`${h?"ring-primary-500 ring-2 ring-opacity-50":"hover:ring-2 hover:ring-gray-300 hover:ring-opacity-50"} transition-all duration-200`,...a})};Pv.craft={props:{color:"#e5e7eb",height:"1px",width:"100%",margin:"16px 0"},related:{settings:Bv}};const Lv=({src:e="https://picsum.photos/id/1/1200/1200",alt:t="Image",style:r,...n})=>{const{connectors:{connect:a,drag:i},selected:u}=mt(g=>({selected:g.events.selected})),h={...r,cursor:u?"pointer":"default"};return m.jsx("img",{ref:g=>{g&&a(i(g))},src:e,alt:t,style:h,className:`${u?"ring-primary-500 ring-2 ring-opacity-50":"hover:ring-2 hover:ring-gray-300 hover:ring-opacity-50"}`,...n})},_w={props:{src:"https://picsum.photos/id/1/1200/1200",alt:"Image",style:{width:"200px",height:"200px",objectFit:"cover",borderRadius:"0px"}},custom:{resizable:!0,settings:["image","border"]},related:{settings:"ImageSettings"}};function Dh(){const{actions:{setProp:e},src:t,alt:r,style:n}=mt(a=>({src:a.data.props.src,alt:a.data.props.alt,style:a.data.props.style}));return m.jsxs("div",{className:"space-y-4 p-4",children:[m.jsxs("div",{children:[m.jsx("label",{className:"mb-2 block text-sm font-medium text-gray-700",children:"Image URL"}),m.jsx("input",{type:"text",value:t,onChange:a=>e(i=>i.src=a.target.value),placeholder:"https://example.com/image.jpg",className:"focus:ring-primary-500 w-full rounded-md border border-gray-300 px-3 py-2 focus:outline-none focus:ring-2"})]}),m.jsxs("div",{children:[m.jsx("label",{className:"mb-2 block text-sm font-medium text-gray-700",children:"Alt Text"}),m.jsx("input",{type:"text",value:r,onChange:a=>e(i=>i.alt=a.target.value),placeholder:"Image description",className:"focus:ring-primary-500 w-full rounded-md border border-gray-300 px-3 py-2 focus:outline-none focus:ring-2"})]}),m.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[m.jsxs("div",{children:[m.jsx("label",{className:"mb-2 block text-sm font-medium text-gray-700",children:"Width"}),m.jsx("input",{type:"text",value:n.width,onChange:a=>e(i=>i.style.width=a.target.value),placeholder:"100%",className:"focus:ring-primary-500 w-full rounded-md border border-gray-300 px-3 py-2 focus:outline-none focus:ring-2"})]}),m.jsxs("div",{children:[m.jsx("label",{className:"mb-2 block text-sm font-medium text-gray-700",children:"Height"}),m.jsx("input",{type:"text",value:n.height,onChange:a=>e(i=>i.style.height=a.target.value),placeholder:"auto",className:"focus:ring-primary-500 w-full rounded-md border border-gray-300 px-3 py-2 focus:outline-none focus:ring-2"})]})]}),m.jsxs("div",{children:[m.jsx("label",{className:"mb-2 block text-sm font-medium text-gray-700",children:"Object Fit"}),m.jsx($i,{options:[{value:"cover",label:"Cover"},{value:"contain",label:"Contain"},{value:"fill",label:"Fill"},{value:"none",label:"None"},{value:"scale-down",label:"Scale Down"}],value:n.objectFit,onChange:a=>e(i=>i.style.objectFit=a),placeholder:"Choose object fit"})]})]})}Lv.craft={..._w,related:{settings:Dh}};const Aw=new Set(["Delete","Backspace","Escape","Enter","Tab","ArrowUp","ArrowDown","ArrowLeft","ArrowRight","Home","End","PageUp","PageDown"]);function Nw({tagName:e="div",html:t,innerRef:r,onChange:n,disabled:a=!1,editable:i=!0,onBlur:u,onKeyUp:h,onKeyDown:g,...p}){const b=I.useRef(null),D=I.useRef(t),F=I.useRef(!1),S=I.useRef(t),R=I.useCallback(()=>(r&&typeof r!="function"?r:b).current,[r]),O=I.useCallback((Y,ie)=>Object.assign({},Y,{target:{value:ie}}),[]),N=I.useCallback(Y=>{const ie=R();if(!ie||!n)return;const ee=ie.innerHTML;ee!==D.current&&(S.current=ee,F.current=!0,D.current=ee,n(O(Y,ee)))},[R,n,O]),_=I.useCallback((Y,ie)=>{if(document.activeElement!==Y){ie();return}const ee=window.getSelection();if(!ee||ee.rangeCount===0){ie();return}const ge=ee.getRangeAt(0).startOffset;ie();try{const Ie=document.createRange(),Ae=Y.firstChild||Y,Ge=Math.min(ge,Ae.textContent?.length||0);Ie.setStart(Ae,Ge),Ie.collapse(!0),ee.removeAllRanges(),ee.addRange(Ie)}catch{}},[]);I.useEffect(()=>{const Y=R();Y&&t!==D.current&&!F.current&&_(Y,()=>{Y.innerHTML=t,S.current=t,D.current=t})},[t,R,_]),I.useEffect(()=>{const Y=R();Y&&t!==Y.innerHTML&&(Y.innerHTML=t),S.current=t,D.current=t},[R,t]),I.useEffect(()=>{i||(F.current=!1)},[i]);const M=I.useCallback(Y=>{i&&Aw.has(Y.key)&&Y.stopPropagation(),g?.(Y),i&&N(Y)},[i,g,N]),U=I.useCallback(Y=>{i&&Y.stopPropagation(),h?.(Y),i&&N(Y)},[i,h,N]),H=I.useCallback(Y=>{i&&(Y.stopPropagation(),N(Y))},[i,N]),q=I.useCallback(Y=>{F.current=!1,u?.(Y),i&&N(Y)},[i,u,N]),Q=I.useCallback(Y=>{typeof r=="function"&&r(Y),b.current=Y},[r]);return I.createElement(e,{...p,ref:typeof r=="function"?Q:r||b,contentEditable:!a&&i,suppressContentEditableWarning:!0,onInput:H,onBlur:q,onKeyUp:U,onKeyDown:M,dangerouslySetInnerHTML:{__html:t}})}const Iv=I.memo(Nw,(e,t)=>!(t.editable===!1||e.editable!==t.editable||e.disabled!==t.disabled||e.tagName!==t.tagName||JSON.stringify(e.style)!==JSON.stringify(t.style)));Iv.displayName="ContentEditable";const Rw=[{name:"userName",label:"User Name",value:"John Doe"},{name:"userEmail",label:"User Email",value:"john@example.com"},{name:"companyName",label:"Company Name",value:"Acme Corp"},{name:"currentDate",label:"Current Date",value:new Date().toLocaleDateString()},{name:"currentTime",label:"Current Time",value:new Date().toLocaleTimeString()}],Ow=({ref:e,editableRef:t,position:r,onVariableInsert:n})=>{const{actions:a,style:i={}}=mt(N=>({style:N.data.props.style||{}})),[u,h]=I.useState(!1),[g,p]=I.useState(!1),b=N=>{a.setProp(_=>{_.style={..._.style,...N}})},D=()=>{const _=(i.fontWeight||"normal")==="bold"?"normal":"bold";b({fontWeight:_})},F=()=>{const _=(i.fontStyle||"normal")==="italic"?"normal":"italic";b({fontStyle:_})},S=()=>{const N=i.textDecoration||"none",_=String(N).includes("underline")?"none":"underline";b({textDecoration:_})},R=N=>{b({color:N})},O=N=>{if(t.current){t.current.focus();const _=window.getSelection();if(_&&_.rangeCount>0){const M=_.getRangeAt(0);M.deleteContents();const U=document.createElement("span");U.className="variable-tag",U.style.cssText="background: #e3f2fd; border: 1px solid #90caf9; border-radius: 4px; padding: 2px 6px; margin: 0 2px; color: #1976d2; font-size: 0.9em; cursor: pointer;",U.setAttribute("data-variable",N.name),U.textContent=`{{${N.label}}}`,M.insertNode(U),M.setStartAfter(U),M.collapse(!0),_.removeAllRanges(),_.addRange(M)}}h(!1),n(N.name)};return m.jsx("div",{ref:e,className:"flex flex-wrap gap-2 rounded-lg border border-[#E8E7EE] bg-white p-3 shadow-lg",onMouseDown:N=>N.stopPropagation(),style:{position:"absolute",left:"50%",transform:"translateX(-50%)",zIndex:9999,top:r==="top"?"-70px":void 0,bottom:r==="bottom"?"-70px":void 0},children:m.jsxs("div",{className:"flex gap-2",children:[m.jsx("button",{className:`flex items-center justify-center border p-2 transition-all duration-200 ${i.fontWeight==="bold"?"border-[#00BAC7] bg-[#CCF1F4] text-[#170F4F]":"border-[#E8E7EE] bg-white text-[#170F4F] hover:border-[#00BAC7] hover:bg-[#CCF1F4]"}`,title:"Bold",onClick:N=>{N.preventDefault(),N.stopPropagation(),D()},children:m.jsx(ce.FiBold,{size:14})}),m.jsx("button",{className:`flex items-center justify-center border p-2 transition-all duration-200 ${i.fontStyle==="italic"?"border-[#00BAC7] bg-[#CCF1F4] text-[#170F4F]":"border-[#E8E7EE] bg-white text-[#170F4F] hover:border-[#00BAC7] hover:bg-[#CCF1F4]"}`,title:"Italic",onMouseDown:N=>{N.preventDefault(),N.stopPropagation(),F()},children:m.jsx(ce.FiItalic,{size:14})}),m.jsx("button",{className:`flex items-center justify-center border p-2 transition-all duration-200 ${String(i.textDecoration).includes("underline")?"border-[#00BAC7] bg-[#CCF1F4] text-[#170F4F]":"border-[#E8E7EE] bg-white text-[#170F4F] hover:border-[#00BAC7] hover:bg-[#CCF1F4]"}`,title:"Underline",onMouseDown:N=>{N.preventDefault(),N.stopPropagation(),S()},children:m.jsx(ce.FiUnderline,{size:14})}),m.jsx("button",{className:"ml-2 flex items-center justify-center border border-[#E8E7EE] bg-white p-2 text-[#170F4F] transition-all duration-200 hover:border-[#00BAC7] hover:bg-[#CCF1F4]",title:"Text Color",onMouseDown:N=>{N.preventDefault(),N.stopPropagation(),p(!g)},children:m.jsx(ce.FiEdit3,{size:14})}),g&&m.jsx("input",{type:"color",className:"h-8 w-8 cursor-pointer border border-[#E8E7EE] bg-white hover:border-[#00BAC7]",value:i.color?.toString()||"#000000",onChange:N=>{R(N.target.value),p(!1)}}),m.jsx("button",{className:"flex items-center justify-center border border-[#E8E7EE] bg-white p-2 text-[#170F4F] transition-all duration-200 hover:border-[#00BAC7] hover:bg-[#CCF1F4]",title:"Insert Variable",onMouseDown:N=>{N.preventDefault(),N.stopPropagation(),h(!u)},children:m.jsx(ce.FiCode,{size:14})}),u&&m.jsx("div",{className:"absolute left-0 top-full z-10 mt-1 border border-[#E8E7EE] bg-white shadow-lg",children:Rw.map(N=>m.jsx("button",{className:"block w-full border-none px-3 py-2 text-left text-[#170F4F] transition-colors hover:bg-[#CCF1F4]",onMouseDown:_=>{_.preventDefault(),_.stopPropagation(),O(N)},children:N.label},N.name))})]})})},Bw=({isEditing:e=!1,children:t="Double-click to edit text...",style:r={}})=>{const{setProp:n}=mt(),[a,i]=I.useState("top"),u=I.useRef(null),h=I.useRef(null),g=I.useRef(null),p=I.useCallback(O=>{n(N=>{N.children=O})},[n]),b=I.useCallback(O=>{n(N=>(N.isEditing=O,N))},[n]),D=I.useCallback(O=>{O.preventDefault(),O.stopPropagation(),b(!0),h.current&&(h.current.getBoundingClientRect().top<window.innerHeight*.1?i("bottom"):i("top"))},[h]),F=I.useCallback(O=>{const N=O.target.value;N!==t&&p(N)},[t,p]),S=O=>{if(u.current){const N=window.getSelection();if(N&&N.rangeCount>0){const _=N.getRangeAt(0),M=document.createElement("span");M.setAttribute("data-variable",O),M.style.cssText="background: #e8f5e8; border: 1px solid #4caf50; border-radius: 4px; padding: 2px 6px; margin: 0 2px; color: #2e7d32; font-size: 0.9em;",M.textContent=`{{${O}}}`,_.deleteContents(),_.insertNode(M),_.setStartAfter(M),_.collapse(!0),N.removeAllRanges(),N.addRange(_);const U=u.current.innerHTML;p(U)}}};I.useEffect(()=>{const O=N=>{if(!e||!h.current)return;const _=N.target;h.current.contains(_)||g.current&&g.current.contains(_)||b(!1)};return e&&document.addEventListener("mousedown",O),()=>{document.removeEventListener("mousedown",O)}},[e,b]);const R={cursor:e?"text":"pointer",userSelect:e?"text":"none",...r};return m.jsxs("div",{ref:h,onDoubleClick:D,style:{position:"relative",width:"100%",height:"100%"},children:[e&&m.jsx(Ow,{ref:g,editableRef:u,position:a,onVariableInsert:S}),m.jsx(Iv,{innerRef:O=>{u.current=O},tagName:"p",html:t,editable:e,onChange:F,style:R})]})},Mv=I.memo(Bw,(e,t)=>!(e.isEditing!==t.isEditing||e.children!==t.children||JSON.stringify(e.style)!==JSON.stringify(t.style))),Pw={displayName:"Text",custom:{resizable:!0,tagHtml:"p",settings:["text","typography","default"]},props:{children:"Double click to edit text 2",isEditing:!1,style:{width:300,height:200,fontSize:16,fontWeight:"normal",color:"#000000",textAlign:"left",minHeight:"50px",padding:"8px",border:"none",outline:"none",overflow:"auto",position:"relative",wordWrap:"break-word",whiteSpace:"pre-wrap"}}};Mv.craft={...Pw};function zv(){const{actions:{setProp:e},variableId:t,fallback:r}=mt(n=>({variableId:n.data.props.variableId,fallback:n.data.props.fallback}));return m.jsxs("div",{className:"space-y-4 p-4",children:[m.jsxs("div",{children:[m.jsx("label",{className:"mb-2 block text-sm font-medium text-gray-700",children:"Variable ID"}),m.jsx("input",{type:"text",value:t,onChange:n=>e(a=>a.variableId=n.target.value),placeholder:"ex: nome_usuario",className:"focus:ring-primary-500 w-full rounded-md border border-gray-300 px-3 py-2 focus:outline-none focus:ring-2"})]}),m.jsxs("div",{children:[m.jsx("label",{className:"mb-2 block text-sm font-medium text-gray-700",children:"Default value"}),m.jsx("input",{type:"text",value:r,onChange:n=>e(a=>a.fallback=n.target.value),placeholder:"ex: Usuário",className:"focus:ring-primary-500 w-full rounded-md border border-gray-300 px-3 py-2 focus:outline-none focus:ring-2"})]})]})}const Lw=({data:e,onSelect:t,selectedPath:r})=>!e||typeof e!="object"?null:m.jsx("div",{className:"space-y-2",children:Object.entries(e).map(([n,a])=>m.jsxs("button",{onClick:()=>t(n,a),className:`block w-full rounded px-3 py-2 text-left transition-colors ${r===n?"bg-blue-100 text-blue-800":"bg-gray-50 text-gray-700 hover:bg-gray-100"}`,children:[m.jsxs("span",{className:"font-medium",children:[n,":"]})," ",m.jsx("span",{className:"text-sm",children:JSON.stringify(a)})]},n))}),Iw=({isOpen:e,onClose:t,value:r,onSelect:n})=>{const[a,i]=I.useState(r||""),[u,h]=I.useState(null);return I.useEffect(()=>{const g=localStorage.getItem("bolttech_datasource");if(g)try{const p=JSON.parse(g);p&&typeof p=="object"&&p.data&&h({root:p.data})}catch{}},[e]),e?m.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black bg-opacity-40",children:m.jsxs("div",{className:"flex w-full max-w-[40vw] flex-col rounded bg-white shadow-xl",children:[m.jsxs("div",{className:"flex items-center justify-between border-b border-gray-200 p-4",children:[m.jsx("h2",{className:"text-lg font-bold text-[#170f4f]",children:"Selecionar variável do DataSource"}),m.jsx("button",{onClick:t,className:"p-2 text-gray-400 hover:text-gray-600",children:m.jsx(ce.FiX,{size:18})})]}),m.jsxs("div",{className:"space-y-4 p-4",children:[m.jsxs("div",{children:[m.jsx("label",{className:"mb-1 block text-sm font-medium text-gray-700",children:"Path da variável"}),m.jsx("input",{type:"text",value:a,onChange:g=>i(g.target.value),className:"focus:ring-primary-500 w-full rounded border border-gray-300 px-3 py-2 focus:outline-none focus:ring-2",placeholder:"Ex: root.user.name"})]}),u&&m.jsx("div",{children:m.jsx(Lw,{data:u,onSelect:g=>i(g),selectedPath:a})}),m.jsxs("div",{className:"flex justify-end gap-2 pt-2",children:[m.jsx("button",{onClick:t,className:"rounded bg-gray-100 px-4 py-2 text-gray-700 transition-colors duration-200 hover:bg-gray-200",children:"Cancelar"}),m.jsx("button",{onClick:()=>{n(a),t()},className:"rounded bg-[#170f4f] px-4 py-2 text-white transition-colors duration-200 hover:bg-[#30aab3]",children:"Salvar"})]})]})]})}):null},Hv=({variableId:e="variable",fallback:t="Default value",...r})=>{const{connectors:{connect:n,drag:a},selected:i,actions:{setProp:u}}=mt(F=>({selected:F.events.selected})),[h,g]=I.useState(!1),p=`{{${e}}}`;let b;try{const F=localStorage.getItem("bolttech_datasource");if(F){const S=JSON.parse(F),R=S&&S.data;R&&e&&(b=e.split(".").reduce((N,_)=>N&&N[_]!==void 0?N[_]:void 0,{root:R}))}}catch{}const D={display:"inline-block",padding:"4px 8px",backgroundColor:"#fef3c7",border:"1px solid #f59e0b",borderRadius:"4px",color:"#92400e",fontFamily:"monospace",fontSize:"14px",cursor:i?"pointer":"default",transition:"all 0.2s"};return m.jsxs(m.Fragment,{children:[m.jsx("span",{ref:F=>{F&&n(a(F))},style:D,className:`${i?"ring-2 ring-yellow-400":"hover:ring-2 hover:ring-yellow-300 hover:ring-opacity-50"} transition-all duration-200`,title:`Variable: ${e}`,onClick:()=>g(!0),...r,children:b!=null?String(b):t||p}),m.jsx(Iw,{isOpen:h,onClose:()=>g(!1),value:e,onSelect:F=>u(S=>S.variableId=F)})]})};Hv.craft={props:{variableId:"variavel",fallback:"Valor padrão"},related:{settings:zv}};const Wl=[{id:"box",label:"Box",icon:m.jsx(Fw,{size:16}),category:"layout",component:Nv,htmlTags:["div"],settings:Rv},{id:"text",label:"Text",icon:m.jsx(Cw,{size:16}),category:"content",component:Mv,htmlTags:["p","span","h1","h2","h3","h4","h5","h6"]},{id:"button",label:"Button",icon:m.jsx(_v,{size:16}),category:"interactive",component:Ov,settings:wh,htmlTags:["button"]},{id:"a",label:"Anchor",icon:m.jsx(_v,{size:16}),category:"interactive",component:Av,settings:xh,htmlTags:["a"]},{id:"image",label:"Image",icon:m.jsx(Ew,{size:16}),category:"media",component:Lv,settings:Dh,htmlTags:["img"]},{id:"divider",label:"Divider",icon:m.jsx(Dw,{size:16}),category:"layout",component:Pv,settings:Bv,htmlTags:["hr"]},{id:"variable",label:"Variable",icon:m.jsx(ww,{size:16}),category:"dynamic",component:Hv,settings:zv,htmlTags:["span"]}];function jv(){const[e,t]=I.useState(!1),[r,n]=I.useState(!1),[a,i]=I.useState(!0);return{showPreview:e,togglePreview:()=>{t(O=>!O)},openPreview:()=>{t(!0)},closePreview:()=>{t(!1)},showCodePanel:r,toggleCodePanel:()=>{n(O=>!O)},openCodePanel:()=>{n(!0)},closeCodePanel:()=>{n(!1)},showSidebar:a,toggleSidebar:()=>{i(O=>!O)},isEditorEnabled:!(e||r),setIsEditorEnabled:O=>{t(!O),n(!O)}}}const Uv={mobile:{width:375,height:667},tablet:{width:768,height:1024},desktop:{width:1200,height:800}},Mw=new Set(["div","span","p","h1","h2","h3","h4","h5","h6","a","img","button","input","textarea","select","option","ul","ol","li","table","tr","td","th","thead","tbody","section","article","header","footer","nav","main","aside"]),zw=new Set(["img","input","br","hr","meta","link","area","base","col","embed","source","track","wbr"]),Hw=new Set(["id","className","title","alt","src","href","target","rel"]),jw=new Set(["width","height","min-width","min-height","max-width","max-height","margin","margin-top","margin-right","margin-bottom","margin-left","padding","padding-top","padding-right","padding-bottom","padding-left","border-width","border-top-width","border-right-width","border-bottom-width","border-left-width","top","right","bottom","left","font-size","line-height","border-radius","border-top-left-radius","border-top-right-radius","border-bottom-left-radius","border-bottom-right-radius","letter-spacing","word-spacing","text-indent","text-decoration-thickness"]);class Uw{constructor(t={}){Xa(this,"options");this.options={inlineStyles:!0,prettify:!1,includeComments:!1,customComponentMap:{},styleTransformers:[],...t}}convert(t){try{const r=t.ROOT;if(!r||!r.nodes)return"";const n=this.buildHTMLFromNodes(r.nodes,t);return this.options.prettify?this.prettifyHTML(n):n}catch(r){return console.error("craftJSToHTML - Error during conversion:",r),""}}buildHTMLFromNodes(t,r){return t.map(n=>this.buildHTMLFromNode(n,r)).filter(n=>n.trim()!=="").join("")}buildHTMLFromNode(t,r){const n=r[t];if(!n||n.hidden)return"";const{type:a,props:i={},nodes:u=[]}=n,h=typeof a=="object"&&a&&"resolvedName"in a?a.resolvedName:a,g=this.getTagName(h,n),p=this.buildAttributes(i);let b=this.buildHTMLFromNodes(u,r);return i.children&&typeof i.children=="string"&&(b+=i.children),["button","a"].includes(g)&&i.text&&(b+=i.text),this.isSelfClosingTag(g)?`<${g}${p} />`:`${this.options.includeComments?`<!-- ${h} -->`:""}<${g}${p}>${b}</${g}>`}getTagName(t,r){if(r.custom?.tagName&&typeof r.custom.tagName=="string")return r.custom.tagName.toLowerCase();if(r.custom?.tagHtml&&typeof r.custom.tagHtml=="string")return r.custom.tagHtml.toLowerCase();if(this.options.customComponentMap?.[t])return this.options.customComponentMap[t];const n={image:"img",button:"button",text:"p",divider:"hr",variable:"span",box:"div"};if(n[t])return n[t];const a=t.toLowerCase();return Mw.has(a)?a:"div"}buildAttributes(t){const r=[];for(const n of Hw)if(t[n]){const a=n==="className"?"class":n;r.push(`${a}="${this.escapeHTML(t[n])}"`)}if(t.style&&this.options.inlineStyles){const n=this.convertStyleObjectToCSS(t.style);n&&r.push(`style="${n}"`)}for(const[n,a]of Object.entries(t))n.startsWith("data-")&&typeof a=="string"&&r.push(`${n}="${this.escapeHTML(a)}"`);return r.length>0?` ${r.join(" ")}`:""}convertStyleObjectToCSS(t){if(!t||typeof t!="object")return"";const r=[];for(const[n,a]of Object.entries(t)){if(a==null)continue;const i=this.camelToKebabCase(n);let u=this.applStyleTransformers(n,a);u=this.addUnitIfNeeded(i,u),r.push(`${i}: ${u}`)}return r.join("; ")}camelToKebabCase(t){return t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}applStyleTransformers(t,r){const n=this.options.styleTransformers?.find(a=>a.property===t);return n?n.transform(r):String(r)}addUnitIfNeeded(t,r){const n=parseFloat(r);return!isNaN(n)&&jw.has(t)&&!r.includes("px")&&!r.includes("%")&&!r.includes("em")&&!r.includes("rem")&&!r.includes("vh")&&!r.includes("vw")?`${n}px`:r}isSelfClosingTag(t){return zw.has(t.toLowerCase())}escapeHTML(t){const r=document.createElement("div");return r.textContent=t,r.innerHTML}prettifyHTML(t){let r="",n=0;const a=" ";return t.split(/>\s*</).forEach((i,u)=>{u!==0&&(i=`<${i}`),u!==t.split(/>\s*</).length-1&&(i=`${i}>`),i.match(/^<\/\w/)&&n--,r+=`${a.repeat(Math.max(0,n))+i}
|
|
79
|
-
`,i.match(/^<\w[^>]*[^/]$/)&&n++}),r.trim()}}function Wv(e,t){return new Uw(t).convert(e)}const Ch={id:"canvas",className:"relative flex-1 border border-gray-300 bg-white shadow-lg",style:{zIndex:1,minHeight:"100%",overflow:"visible",position:"relative",maxWidth:1200}},Eh=new Set(["p","span","h1","h2","h3","h4","h5","h6","strong","em","small","mark","del","ins","sub","sup"]);class Ww{constructor(t,r={}){Xa(this,"options");Xa(this,"tagLookupMap");Xa(this,"idCounter");this.options={rootCanvasProps:Ch,...r},this.tagLookupMap=this.createTagLookupMap(t),this.idCounter=1}convert(t){if(!t?.trim())return this.createEmptyRoot();try{const r=Ey.parseDocument(t),n={},a=r.children.filter(h=>h.type==="tag"||h.type==="text"),i="ROOT",u=[];for(const h of a){const g=this.traverseNode(h,i,n);g&&u.push(g)}return n[i]=this.createRootNode(u),this.convertToCraftJSFormat(n)}catch(r){return console.error("Error converting HTML to CraftJS:",r),this.createEmptyRoot()}}createTagLookupMap(t){const r=new Map;for(const n of t)for(const a of n.htmlTags)r.set(a.toLowerCase(),n);return r}getNextId(){return`node-${this.idCounter++}`}traverseNode(t,r,n){return t.type==="text"?this.processTextNode(t,r,n):t.type==="tag"?this.processTagNode(t,r,n):null}processTextNode(t,r,n){const a=t.data?.trim();if(!a)return null;if(r&&n[r]&&Eh.has(n[r].tagName?.toLowerCase()))return n[r].props.children=(n[r].props.children||"")+a,null;const i=Array.from(this.tagLookupMap.values()).find(h=>h.htmlTags.some(g=>Eh.has(g)));if(!i)return null;const u=this.getNextId();return n[u]={id:u,type:i.id,props:{children:a},parent:r,isCanvas:!1,displayName:i.id,custom:{},hidden:!1,nodes:[],linkedNodes:{},tagName:"text"},u}processTagNode(t,r,n){const a=t.name?.toLowerCase();if(!a)return null;const i=this.tagLookupMap.get(a)||null;if(!i)return null;const u=this.getNextId(),h=[];let g="";const p=Eh.has(a);if(t.children?.length>0)for(const D of t.children)if(D.type==="text"&&p||["button","a"].includes(a)){const F=D.data?.trim();F&&(g+=F)}else{const F=this.traverseNode(D,u,n);F&&h.push(F)}const b=this.processAttributes(t.attribs||{});return p&&g&&(b.children=g),["button","a"].includes(a)&&g&&(b.text=g),n[u]={id:u,type:i.id,props:b,nodes:h,parent:r,displayName:i.id,isCanvas:i.isCanvas!==!1,custom:{},hidden:!1,linkedNodes:{},tagName:a},u}processAttributes(t){const r={...t};if(r.style&&typeof r.style=="string"){const n=this.parseStyleString(r.style);r.style=n}return r}parseStyleString(t){const r={};return t.split(";").filter(Boolean).forEach(n=>{const[a,i]=n.split(":").map(h=>h?.trim());if(!a||!i)return;const u=a.replace(/-([a-z])/g,h=>h[1].toUpperCase());r[u]=i}),r}createEmptyRoot(){return{ROOT:{type:"div",isCanvas:!0,props:this.options.rootCanvasProps,displayName:"div",custom:{},hidden:!1,nodes:[],linkedNodes:{}}}}createRootNode(t){return{id:"ROOT",type:"div",props:this.options.rootCanvasProps,nodes:t,isCanvas:!0,displayName:"div",custom:{},hidden:!1,linkedNodes:{}}}convertToCraftJSFormat(t){const r={};return Object.entries(t).forEach(([n,a])=>{n==="ROOT"?r[n]={type:a.type,isCanvas:a.isCanvas,props:a.props||{},displayName:a.displayName||a.type,custom:a.custom||{},hidden:a.hidden||!1,nodes:a.nodes||[],linkedNodes:a.linkedNodes||{}}:r[n]={type:{resolvedName:a.type},isCanvas:a.isCanvas,props:a.props||{},displayName:a.displayName||a.type,custom:a.custom||{},hidden:a.hidden||!1,nodes:a.nodes||[],linkedNodes:a.linkedNodes||{},parent:a.parent||"ROOT"}}),r}}function Gw(e,t,r){return new Ww(t,r).convert(e)}function Fh(){const{query:e,actions:t}=Hr();return{import:(a,i={})=>{const{replace:u=!0,...h}=i,g=Gw(a,Wl,h);if(u)t.deserialize(g);else{const p=e.serialize();if(typeof p=="string"){t.deserialize(g);return}const b=p,D=b.ROOT;if(!D){t.deserialize(g);return}const{ROOT:F,...S}=g,R=Object.keys(S);Object.assign(b,S),D.nodes=[...D.nodes||[],...R],R.forEach(O=>{b[O]&&(b[O].parent="ROOT")}),t.deserialize(b)}},export:(a={})=>{const i=e.serialize();if(typeof i=="string")try{const h=JSON.parse(i);return Wv(h,a)}catch(h){return console.error("Error parsing JSON:",h),""}return Wv(i,a)}}}function ac(){const{setIsEditorEnabled:e}=jv(),{query:t,actions:r}=Hr(),{export:n,import:a}=Fh(),{nodes:i}=Hr(D=>({nodes:D.nodes})),u=I.useMemo(()=>Object.keys(i).length>1,[i]),[h,g]=I.useState("desktop");return I.useEffect(()=>{const D=t.node("ROOT").get();D&&r.setProp(D.id,F=>{F.style={...F.style||{},maxWidth:Uv[h].width||"100%"}})},[h]),{device:h,isEmpty:u,setDevice:g,getHtml:()=>{e(!1);try{return n({inlineStyles:!0,prettify:!1,includeComments:!1})||""}catch(D){return console.warn("Error exporting HTML:",D),""}finally{e(!0)}},loadTemplate:D=>{try{a(D,{replace:!0})}catch(F){console.error("Error loading template into canvas:",F)}}}}var Sh={exports:{}},Gv;function Vw(){return Gv||(Gv=1,(function(e,t){(function(r){function n(){var a=r();return a.default||a}e.exports=n()})(function(){var r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,i=Object.prototype.hasOwnProperty,u=o=>{throw TypeError(o)},h=(o,d,y)=>d in o?r(o,d,{enumerable:!0,configurable:!0,writable:!0,value:y}):o[d]=y,g=(o,d)=>{for(var y in d)r(o,y,{get:d[y],enumerable:!0})},p=(o,d,y,w)=>{if(d&&typeof d=="object"||typeof d=="function")for(let A of a(d))!i.call(o,A)&&A!==y&&r(o,A,{get:()=>d[A],enumerable:!(w=n(d,A))||w.enumerable});return o},b=o=>p(r({},"__esModule",{value:!0}),o),D=(o,d,y)=>h(o,typeof d!="symbol"?d+"":d,y),F=(o,d,y)=>d.has(o)||u("Cannot "+y),S=(o,d,y)=>(F(o,d,"read from private field"),y?y.call(o):d.get(o)),R=(o,d,y)=>d.has(o)?u("Cannot add the same private member more than once"):d instanceof WeakSet?d.add(o):d.set(o,y),O=(o,d,y,w)=>(F(o,d,"write to private field"),d.set(o,y),y),N={};g(N,{languages:()=>Ii,options:()=>_o,parsers:()=>Fr,printers:()=>kl});var _=(o,d,y,w)=>{if(!(o&&d==null))return d.replaceAll?d.replaceAll(y,w):y.global?d.replace(y,w):d.split(y).join(w)},M=_,U="string",H="array",q="cursor",Q="indent",Y="align",ie="trim",ee="group",ve="fill",ge="if-break",Ie="indent-if-break",Ae="line-suffix",Ge="line-suffix-boundary",Ue="line",te="label",fe="break-parent",Ea=new Set([q,Q,Y,ie,ee,ve,ge,Ie,Ae,Ge,Ue,te,fe]),so=(o,d,y)=>{if(!(o&&d==null))return Array.isArray(d)||typeof d=="string"?d[y<0?d.length+y:y]:d.at(y)},le=so;function ne(o){if(typeof o=="string")return U;if(Array.isArray(o))return H;if(!o)return;let{type:d}=o;if(Ea.has(d))return d}var _n=ne,qt=o=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(o);function rt(o){let d=o===null?"null":typeof o;if(d!=="string"&&d!=="object")return`Unexpected doc '${d}',
|
|
80
|
-
Expected it to be 'string' or 'object'.`;if(_n(o))throw new Error("doc is valid.");let y=Object.prototype.toString.call(o);if(y!=="[object Object]")return`Unexpected doc '${y}'.`;let w=qt([...Ea].map(A=>`'${A}'`));return`Unexpected doc.type '${o.type}'.
|
|
81
|
-
Expected it to be ${w}.`}var on=class extends Error{constructor(d){super(rt(d));Xa(this,"name","InvalidDocError");this.doc=d}},fr=on;function lo(o,d){if(typeof o=="string")return d(o);let y=new Map;return w(o);function w(L){if(y.has(L))return y.get(L);let G=A(L);return y.set(L,G),G}function A(L){switch(_n(L)){case H:return d(L.map(w));case ve:return d({...L,parts:L.parts.map(w)});case ge:return d({...L,breakContents:w(L.breakContents),flatContents:w(L.flatContents)});case ee:{let{expandedStates:G,contents:Z}=L;return G?(G=G.map(w),Z=G[0]):Z=w(Z),d({...L,contents:Z,expandedStates:G})}case Y:case Q:case Ie:case te:case Ae:return d({...L,contents:w(L.contents)});case U:case q:case ie:case Ge:case Ue:case fe:return d(L);default:throw new fr(L)}}}function rr(o,d=nr){return lo(o,y=>typeof y=="string"?ka(d,y.split(`
|
|
82
|
-
`)):y)}function Vr(o){return{type:Q,contents:o}}function Fa(o,d){return{type:Y,contents:d,n:o}}function We(o,d={}){return{type:ee,id:d.id,contents:o,break:!!d.shouldBreak,expandedStates:d.expandedStates}}function Oe(o){return Fa(Number.NEGATIVE_INFINITY,o)}function qs(o){return Fa({type:"root"},o)}function Zo(o){return{type:ve,parts:o}}function Sa(o,d="",y={}){return{type:ge,breakContents:o,flatContents:d,groupId:y.groupId}}function vt(o,d){return{type:Ie,contents:o,groupId:d.groupId,negate:d.negate}}var Ar={type:fe},uo={type:Ue,hard:!0},Ks={type:Ue,hard:!0,literal:!0},Ye={type:Ue},Xe={type:Ue,soft:!0},De=[uo,Ar],nr=[Ks,Ar];function ka(o,d){let y=[];for(let w=0;w<d.length;w++)w!==0&&y.push(o),y.push(d[w]);return y}var si="'",_t='"';function qo(o,d){let y=d===!0||d===si?si:_t,w=y===si?_t:si,A=0,L=0;for(let G of o)G===y?A++:G===w&&L++;return A>L?w:y}var Ko=qo;function Kn(o){if(typeof o!="string")throw new TypeError("Expected a string");return o.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var ar,Ta=class{constructor(o){R(this,ar),O(this,ar,new Set(o))}getLeadingWhitespaceCount(o){let d=S(this,ar),y=0;for(let w=0;w<o.length&&d.has(o.charAt(w));w++)y++;return y}getTrailingWhitespaceCount(o){let d=S(this,ar),y=0;for(let w=o.length-1;w>=0&&d.has(o.charAt(w));w--)y++;return y}getLeadingWhitespace(o){let d=this.getLeadingWhitespaceCount(o);return o.slice(0,d)}getTrailingWhitespace(o){let d=this.getTrailingWhitespaceCount(o);return o.slice(o.length-d)}hasLeadingWhitespace(o){return S(this,ar).has(o.charAt(0))}hasTrailingWhitespace(o){return S(this,ar).has(le(!1,o,-1))}trimStart(o){let d=this.getLeadingWhitespaceCount(o);return o.slice(d)}trimEnd(o){let d=this.getTrailingWhitespaceCount(o);return o.slice(0,o.length-d)}trim(o){return this.trimEnd(this.trimStart(o))}split(o,d=!1){let y=`[${Kn([...S(this,ar)].join(""))}]+`,w=new RegExp(d?`(${y})`:y,"u");return o.split(w)}hasWhitespaceCharacter(o){let d=S(this,ar);return Array.prototype.some.call(o,y=>d.has(y))}hasNonWhitespaceCharacter(o){let d=S(this,ar);return Array.prototype.some.call(o,y=>!d.has(y))}isWhitespaceOnly(o){let d=S(this,ar);return Array.prototype.every.call(o,y=>d.has(y))}};ar=new WeakMap;var Qo=Ta,co=[" ",`
|
|
83
|
-
`,"\f","\r"," "],Qs=new Qo(co),Nr=Qs,at=class extends Error{constructor(d,y,w="type"){super(`Unexpected ${y} node ${w}: ${JSON.stringify(d[w])}.`);Xa(this,"name","UnexpectedNodeError");this.node=d}},ir=at;function $o(o){return o?.type==="front-matter"}var Rr=$o,Yr=new Set(["sourceSpan","startSourceSpan","endSourceSpan","nameSpan","valueSpan","keySpan","tagDefinition","tokens","valueTokens","switchValueSourceSpan","expSourceSpan","valueSourceSpan"]),es=new Set(["if","else if","for","switch","case"]);function fo(o,d){var y;if(o.type==="text"||o.type==="comment"||Rr(o)||o.type==="yaml"||o.type==="toml")return null;if(o.type==="attribute"&&delete d.value,o.type==="docType"&&delete d.value,o.type==="angularControlFlowBlock"&&(y=o.parameters)!=null&&y.children)for(let w of d.parameters.children)es.has(o.name)?delete w.expression:w.expression=w.expression.trim();o.type==="angularIcuExpression"&&(d.switchValue=o.switchValue.trim()),o.type==="angularLetDeclarationInitializer"&&delete d.value}fo.ignoredProperties=Yr;var $s=fo;async function el(o,d){if(o.language==="yaml"){let y=o.value.trim(),w=y?await d(y,{parser:"yaml"}):"";return qs([o.startDelimiter,o.explicitLanguage,De,w,w?De:"",o.endDelimiter])}}var ou=el;function li(o,d=!0){return[Vr([Xe,o]),d?Xe:""]}function bt(o,d){let y=o.type==="NGRoot"?o.node.type==="NGMicrosyntax"&&o.node.body.length===1&&o.node.body[0].type==="NGMicrosyntaxExpression"?o.node.body[0].expression:o.node:o.type==="JsExpressionRoot"?o.node:o;return y&&(y.type==="ObjectExpression"||y.type==="ArrayExpression"||(d.parser==="__vue_expression"||d.parser==="__vue_ts_expression")&&(y.type==="TemplateLiteral"||y.type==="StringLiteral"))}async function lt(o,d,y,w){y={__isInHtmlAttribute:!0,__embeddedInHtml:!0,...y};let A=!0;w&&(y.__onHtmlBindingRoot=(G,Z)=>{A=w(G,Z)});let L=await d(o,y,d);return A?We(L):li(L)}function Bt(o,d,y,w){let{node:A}=y,L=w.originalText.slice(A.sourceSpan.start.offset,A.sourceSpan.end.offset);return/^\s*$/u.test(L)?"":lt(L,o,{parser:"__ng_directive",__isInHtmlAttribute:!1},bt)}var _a=Bt,ui=(o,d)=>{if(!(o&&d==null))return d.toReversed||!Array.isArray(d)?d.toReversed():[...d].reverse()},Ut=ui;function tl(o){return Array.isArray(o)&&o.length>0}var ci=tl,or,Jr,ts,rs,Ve,Wt=((or=globalThis.Deno)==null?void 0:or.build.os)==="windows"||((ts=(Jr=globalThis.navigator)==null?void 0:Jr.platform)==null?void 0:ts.startsWith("Win"))||((Ve=(rs=globalThis.process)==null?void 0:rs.platform)==null?void 0:Ve.startsWith("win"))||!1;function Aa(o){if(o=o instanceof URL?o:new URL(o),o.protocol!=="file:")throw new TypeError(`URL must be a file URL: received "${o.protocol}"`);return o}function hr(o){return o=Aa(o),decodeURIComponent(o.pathname.replace(/%(?![0-9A-Fa-f]{2})/g,"%25"))}function rl(o){o=Aa(o);let d=decodeURIComponent(o.pathname.replace(/\//g,"\\").replace(/%(?![0-9A-Fa-f]{2})/g,"%25")).replace(/^\\*([A-Za-z]:)(\\|$)/,"$1\\");return o.hostname!==""&&(d=`\\\\${o.hostname}${d}`),d}function ns(o){return Wt?rl(o):hr(o)}var su=ns,nl=o=>String(o).split(/[/\\]/u).pop();function al(o,d){if(!d)return;let y=nl(d).toLowerCase();return o.find(({filenames:w})=>w?.some(A=>A.toLowerCase()===y))??o.find(({extensions:w})=>w?.some(A=>y.endsWith(A)))}function lu(o,d){if(d)return o.find(({name:y})=>y.toLowerCase()===d)??o.find(({aliases:y})=>y?.includes(d))??o.find(({extensions:y})=>y?.includes(`.${d}`))}function Pt(o,d){if(d){if(String(d).startsWith("file:"))try{d=su(d)}catch{return}if(typeof d=="string")return o.find(({isSupported:y})=>y?.({filepath:d}))}}function il(o,d){let y=Ut(!1,o.plugins).flatMap(A=>A.languages??[]),w=lu(y,d.language)??al(y,d.physicalFile)??al(y,d.file)??Pt(y,d.physicalFile)??Pt(y,d.file)??void 0;return w?.parsers[0]}var sn=il,ln="inline",di={area:"none",base:"none",basefont:"none",datalist:"none",head:"none",link:"none",meta:"none",noembed:"none",noframes:"none",param:"block",rp:"none",script:"block",style:"none",template:"inline",title:"none",html:"block",body:"block",address:"block",blockquote:"block",center:"block",dialog:"block",div:"block",figure:"block",figcaption:"block",footer:"block",form:"block",header:"block",hr:"block",legend:"block",listing:"block",main:"block",p:"block",plaintext:"block",pre:"block",search:"block",xmp:"block",slot:"contents",ruby:"ruby",rt:"ruby-text",article:"block",aside:"block",h1:"block",h2:"block",h3:"block",h4:"block",h5:"block",h6:"block",hgroup:"block",nav:"block",section:"block",dir:"block",dd:"block",dl:"block",dt:"block",menu:"block",ol:"block",ul:"block",li:"list-item",table:"table",caption:"table-caption",colgroup:"table-column-group",col:"table-column",thead:"table-header-group",tbody:"table-row-group",tfoot:"table-footer-group",tr:"table-row",td:"table-cell",th:"table-cell",input:"inline-block",button:"inline-block",fieldset:"block",details:"block",summary:"block",marquee:"inline-block",source:"block",track:"block",meter:"inline-block",progress:"inline-block",object:"inline-block",video:"inline-block",audio:"inline-block",select:"inline-block",option:"block",optgroup:"block"},Na="normal",Ra={listing:"pre",plaintext:"pre",pre:"pre",xmp:"pre",nobr:"nowrap",table:"initial",textarea:"pre-wrap"};function Oa(o){return o.type==="element"&&!o.hasExplicitNamespace&&!["html","svg"].includes(o.namespace)}var An=Oa,ol=o=>M(!1,o,/^[\t\f\r ]*\n/gu,""),as=o=>ol(Nr.trimEnd(o)),yt=o=>{let d=o,y=Nr.getLeadingWhitespace(d);y&&(d=d.slice(y.length));let w=Nr.getTrailingWhitespace(d);return w&&(d=d.slice(0,-w.length)),{leadingWhitespace:y,trailingWhitespace:w,text:d}};function ho(o,d){return!!(o.type==="ieConditionalComment"&&o.lastChild&&!o.lastChild.isSelfClosing&&!o.lastChild.endSourceSpan||o.type==="ieConditionalComment"&&!o.complete||un(o)&&o.children.some(y=>y.type!=="text"&&y.type!=="interpolation")||Bn(o,d)&&!Or(o,d)&&o.type!=="interpolation")}function po(o){return o.type==="attribute"||!o.parent||!o.prev?!1:sl(o.prev)}function sl(o){return o.type==="comment"&&o.value.trim()==="prettier-ignore"}function pt(o){return o.type==="text"||o.type==="comment"}function Or(o,d){return o.type==="element"&&(o.fullName==="script"||o.fullName==="style"||o.fullName==="svg:style"||o.fullName==="svg:script"||o.fullName==="mj-style"&&d.parser==="mjml"||An(o)&&(o.name==="script"||o.name==="style"))}function Nn(o,d){return o.children&&!Or(o,d)}function go(o,d){return Or(o,d)||o.type==="interpolation"||is(o)}function is(o){return Ba(o).startsWith("pre")}function ll(o,d){var y,w;let A=L();if(A&&!o.prev&&(w=(y=o.parent)==null?void 0:y.tagDefinition)!=null&&w.ignoreFirstLf)return o.type==="interpolation";return A;function L(){return Rr(o)||o.type==="angularControlFlowBlock"?!1:(o.type==="text"||o.type==="interpolation")&&o.prev&&(o.prev.type==="text"||o.prev.type==="interpolation")?!0:!o.parent||o.parent.cssDisplay==="none"?!1:un(o.parent)?!0:!(!o.prev&&(o.parent.type==="root"||un(o)&&o.parent||Or(o.parent,d)||bi(o.parent,d)||!ss(o.parent.cssDisplay))||o.prev&&!$e(o.prev.cssDisplay))}}function ul(o,d){return Rr(o)||o.type==="angularControlFlowBlock"?!1:(o.type==="text"||o.type==="interpolation")&&o.next&&(o.next.type==="text"||o.next.type==="interpolation")?!0:!o.parent||o.parent.cssDisplay==="none"?!1:un(o.parent)?!0:!(!o.next&&(o.parent.type==="root"||un(o)&&o.parent||Or(o.parent,d)||bi(o.parent,d)||!ls(o.parent.cssDisplay))||o.next&&!bo(o.next.cssDisplay))}function cl(o,d){return gi(o.cssDisplay)&&!Or(o,d)}function Br(o){return Rr(o)||o.next&&o.sourceSpan.end&&o.sourceSpan.end.line+1<o.next.sourceSpan.start.line}function fi(o){return dl(o)||o.type==="element"&&o.children.length>0&&(["body","script","style"].includes(o.name)||o.children.some(d=>uu(d)))||o.firstChild&&o.firstChild===o.lastChild&&o.firstChild.type!=="text"&&os(o.firstChild)&&(!o.lastChild.isTrailingSpaceSensitive||hl(o.lastChild))}function dl(o){return o.type==="element"&&o.children.length>0&&(["html","head","ul","ol","select"].includes(o.name)||o.cssDisplay.startsWith("table")&&o.cssDisplay!=="table-cell")}function hi(o){return Rn(o)||o.prev&&mo(o.prev)||fl(o)}function mo(o){return Rn(o)||o.type==="element"&&o.fullName==="br"||fl(o)}function fl(o){return os(o)&&hl(o)}function os(o){return o.hasLeadingSpaces&&(o.prev?o.prev.sourceSpan.end.line<o.sourceSpan.start.line:o.parent.type==="root"||o.parent.startSourceSpan.end.line<o.sourceSpan.start.line)}function hl(o){return o.hasTrailingSpaces&&(o.next?o.next.sourceSpan.start.line>o.sourceSpan.end.line:o.parent.type==="root"||o.parent.endSourceSpan&&o.parent.endSourceSpan.start.line>o.sourceSpan.end.line)}function Rn(o){switch(o.type){case"ieConditionalComment":case"comment":case"directive":return!0;case"element":return["script","select"].includes(o.name)}return!1}function Qn(o){return o.lastChild?Qn(o.lastChild):o}function uu(o){var d;return(d=o.children)==null?void 0:d.some(y=>y.type!=="text")}function pi(o){if(o)switch(o){case"module":case"text/javascript":case"text/babel":case"text/jsx":case"application/javascript":return"babel";case"application/x-typescript":return"typescript";case"text/markdown":return"markdown";case"text/html":return"html";case"text/x-handlebars-template":return"glimmer";default:if(o.endsWith("json")||o.endsWith("importmap")||o==="speculationrules")return"json"}}function vo(o,d){let{name:y,attrMap:w}=o;if(y!=="script"||Object.prototype.hasOwnProperty.call(w,"src"))return;let{type:A,lang:L}=o.attrMap;return!L&&!A?"babel":sn(d,{language:L})??pi(A)}function cu(o,d){if(!Bn(o,d))return;let{attrMap:y}=o;if(Object.prototype.hasOwnProperty.call(y,"src"))return;let{type:w,lang:A}=y;return sn(d,{language:A})??pi(w)}function du(o,d){if(o.name==="style"){let{lang:y}=o.attrMap;return y?sn(d,{language:y}):"css"}if(o.name==="mj-style"&&d.parser==="mjml")return"css"}function Xr(o,d){return vo(o,d)??du(o,d)??cu(o,d)}function $n(o){return o==="block"||o==="list-item"||o.startsWith("table")}function ss(o){return!$n(o)&&o!=="inline-block"}function ls(o){return!$n(o)&&o!=="inline-block"}function bo(o){return!$n(o)}function $e(o){return!$n(o)}function gi(o){return!$n(o)&&o!=="inline-block"}function un(o){return Ba(o).startsWith("pre")}function mi(o,d){let y=o;for(;y;){if(d(y))return!0;y=y.parent}return!1}function vi(o,d){var y;if(On(o,d))return"block";if(((y=o.prev)==null?void 0:y.type)==="comment"){let A=o.prev.value.match(/^\s*display:\s*([a-z]+)\s*$/u);if(A)return A[1]}let w=!1;if(o.type==="element"&&o.namespace==="svg")if(mi(o,A=>A.fullName==="svg:foreignObject"))w=!0;else return o.name==="svg"?"inline-block":"block";switch(d.htmlWhitespaceSensitivity){case"strict":return"inline";case"ignore":return"block";default:if(o.type==="element"&&(!o.namespace||w||An(o))&&Object.prototype.hasOwnProperty.call(di,o.name))return di[o.name]}return ln}function Ba(o){return o.type==="element"&&(!o.namespace||An(o))&&Object.prototype.hasOwnProperty.call(Ra,o.name)?Ra[o.name]:Na}function yo(o){let d=Number.POSITIVE_INFINITY;for(let y of o.split(`
|
|
84
|
-
`)){if(y.length===0)continue;let w=Nr.getLeadingWhitespaceCount(y);if(w===0)return 0;y.length!==w&&w<d&&(d=w)}return d===Number.POSITIVE_INFINITY?0:d}function ea(o,d=yo(o)){return d===0?o:o.split(`
|
|
85
|
-
`).map(y=>y.slice(d)).join(`
|
|
86
|
-
`)}function cn(o){return M(!1,M(!1,o,"'","'"),""",'"')}function Pr(o){return cn(o.value)}var dn=new Set(["template","style","script"]);function bi(o,d){return On(o,d)&&!dn.has(o.fullName)}function On(o,d){return d.parser==="vue"&&o.type==="element"&&o.parent.type==="root"&&o.fullName.toLowerCase()!=="html"}function Bn(o,d){return On(o,d)&&(bi(o,d)||o.attrMap.lang&&o.attrMap.lang!=="html")}function yi(o){let d=o.fullName;return d.charAt(0)==="#"||d==="slot-scope"||d==="v-slot"||d.startsWith("v-slot:")}function pl(o,d){let y=o.parent;if(!On(y,d))return!1;let w=y.fullName,A=o.fullName;return w==="script"&&A==="setup"||w==="style"&&A==="vars"}function us(o,d=o.value){return o.parent.isWhitespaceSensitive?o.parent.isIndentationSensitive?rr(d):rr(ea(as(d)),De):ka(Ye,Nr.split(d))}function cs(o,d){return On(o,d)&&o.name==="script"}var gl=/\{\{(.+?)\}\}/su;async function fu(o,d){let y=[];for(let[w,A]of o.split(gl).entries())if(w%2===0)y.push(rr(A));else try{y.push(We(["{{",Vr([Ye,await lt(A,d,{parser:"__ng_interpolation",__isInHtmlInterpolation:!0})]),Ye,"}}"]))}catch{y.push("{{",rr(A),"}}")}return y}function ds({parser:o}){return(d,y,w)=>lt(Pr(w.node),d,{parser:o},bt)}var ml=ds({parser:"__ng_action"}),vl=ds({parser:"__ng_binding"}),hu=ds({parser:"__ng_directive"});function xi(o,d){if(d.parser!=="angular")return;let{node:y}=o,w=y.fullName;if(w.startsWith("(")&&w.endsWith(")")||w.startsWith("on-"))return ml;if(w.startsWith("[")&&w.endsWith("]")||/^bind(?:on)?-/u.test(w)||/^ng-(?:if|show|hide|class|style)$/u.test(w))return vl;if(w.startsWith("*"))return hu;let A=Pr(y);if(/^i18n(?:-.+)?$/u.test(w))return()=>li(Zo(us(y,A.trim())),!A.includes("@@"));if(gl.test(A))return L=>fu(A,L)}var bl=xi;function xo(o,d){let{node:y}=o,w=Pr(y);if(y.fullName==="class"&&!d.parentParser&&!w.includes("{{"))return()=>w.trim().split(/\s+/u).join(" ")}var pu=xo;function wo(o){return o===" "||o===`
|
|
87
|
-
`||o==="\f"||o==="\r"||o===" "}var yl=/^[ \t\n\r\u000c]+/,Pa=/^[, \t\n\r\u000c]+/,fs=/^[^ \t\n\r\u000c]+/,Do=/[,]+$/,hs=/^\d+$/,wi=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/;function La(o){let d=o.length,y,w,A,L,G,Z=0,ue;function be(ze){let tt,wt=ze.exec(o.substring(Z));if(wt)return[tt]=wt,Z+=tt.length,tt}let he=[];for(;;){if(be(Pa),Z>=d){if(he.length===0)throw new Error("Must contain one or more image candidate strings.");return he}ue=Z,y=be(fs),w=[],y.slice(-1)===","?(y=y.replace(Do,""),Re()):Me()}function Me(){for(be(yl),A="",L="in descriptor";;){if(G=o.charAt(Z),L==="in descriptor")if(wo(G))A&&(w.push(A),A="",L="after descriptor");else if(G===","){Z+=1,A&&w.push(A),Re();return}else if(G==="(")A+=G,L="in parens";else if(G===""){A&&w.push(A),Re();return}else A+=G;else if(L==="in parens")if(G===")")A+=G,L="in descriptor";else if(G===""){w.push(A),Re();return}else A+=G;else if(L==="after descriptor"&&!wo(G))if(G===""){Re();return}else L="in descriptor",Z-=1;Z+=1}}function Re(){let ze=!1,tt,wt,gt,kt,ye={},Be,Dt,ft,ur,rn;for(kt=0;kt<w.length;kt++)Be=w[kt],Dt=Be[Be.length-1],ft=Be.substring(0,Be.length-1),ur=parseInt(ft,10),rn=parseFloat(ft),hs.test(ft)&&Dt==="w"?((tt||wt)&&(ze=!0),ur===0?ze=!0:tt=ur):wi.test(ft)&&Dt==="x"?((tt||wt||gt)&&(ze=!0),rn<0?ze=!0:wt=rn):hs.test(ft)&&Dt==="h"?((gt||wt)&&(ze=!0),ur===0?ze=!0:gt=ur):ze=!0;if(!ze)ye.source={value:y,startOffset:ue},tt&&(ye.width={value:tt}),wt&&(ye.density={value:wt}),gt&&(ye.height={value:gt}),he.push(ye);else throw new Error(`Invalid srcset descriptor found in "${o}" at "${Be}".`)}}var gu=La;function mu(o){if(o.node.fullName==="srcset"&&(o.parent.fullName==="img"||o.parent.fullName==="source"))return()=>ta(Pr(o.node))}var At={width:"w",height:"h",density:"x"},Di=Object.keys(At);function ta(o){let d=gu(o),y=Di.filter(he=>d.some(Me=>Object.prototype.hasOwnProperty.call(Me,he)));if(y.length>1)throw new Error("Mixed descriptor in srcset is not supported");let[w]=y,A=At[w],L=d.map(he=>he.source.value),G=Math.max(...L.map(he=>he.length)),Z=d.map(he=>he[w]?String(he[w].value):""),ue=Z.map(he=>{let Me=he.indexOf(".");return Me===-1?he.length:Me}),be=Math.max(...ue);return li(ka([",",Ye],L.map((he,Me)=>{let Re=[he],ze=Z[Me];if(ze){let tt=G-he.length+1,wt=be-ue[Me],gt=" ".repeat(tt+wt);Re.push(Sa(gt," "),ze+A)}return Re})))}var Ci=mu;function xl(o,d){let{node:y}=o,w=Pr(o.node).trim();if(y.fullName==="style"&&!d.parentParser&&!w.includes("{{"))return async A=>li(await A(w,{parser:"css",__isHTMLStyleAttribute:!0}))}var fn=new WeakMap;function Gt(o,d){let{root:y}=o;return fn.has(y)||fn.set(y,y.children.some(w=>cs(w,d)&&["ts","typescript"].includes(w.attrMap.lang))),fn.get(y)}var Vt=Gt;function pr(o,d,y){let{node:w}=y,A=Pr(w);return lt(`type T<${A}> = any`,o,{parser:"babel-ts",__isEmbeddedTypescriptGenericParameters:!0},bt)}function Ei(o,d,{parseWithTs:y}){return lt(`function _(${o}) {}`,d,{parser:y?"babel-ts":"babel",__isVueBindings:!0})}async function wl(o,d,y,w){let A=Pr(y.node),{left:L,operator:G,right:Z}=ps(A),ue=Vt(y,w);return[We(await lt(`function _(${L}) {}`,o,{parser:ue?"babel-ts":"babel",__isVueForBindingLeft:!0}))," ",G," ",await lt(Z,o,{parser:ue?"__ts_expression":"__js_expression"})]}function ps(o){let d=/(.*?)\s+(in|of)\s+(.*)/su,y=/,([^,\]}]*)(?:,([^,\]}]*))?$/u,w=/^\(|\)$/gu,A=o.match(d);if(!A)return;let L={};if(L.for=A[3].trim(),!L.for)return;let G=M(!1,A[1].trim(),w,""),Z=G.match(y);Z?(L.alias=G.replace(y,""),L.iterator1=Z[1].trim(),Z[2]&&(L.iterator2=Z[2].trim())):L.alias=G;let ue=[L.alias,L.iterator1,L.iterator2];if(!ue.some((be,he)=>!be&&(he===0||ue.slice(he+1).some(Boolean))))return{left:ue.filter(Boolean).join(","),operator:A[2],right:L.for}}function Co(o,d){if(d.parser!=="vue")return;let{node:y}=o,w=y.fullName;if(w==="v-for")return wl;if(w==="generic"&&cs(y.parent,d))return pr;let A=Pr(y),L=Vt(o,d);if(yi(y)||pl(y,d))return G=>Ei(A,G,{parseWithTs:L});if(w.startsWith("@")||w.startsWith("v-on:"))return G=>gs(A,G,{parseWithTs:L});if(w.startsWith(":")||w.startsWith(".")||w.startsWith("v-bind:"))return G=>wr(A,G,{parseWithTs:L});if(w.startsWith("v-"))return G=>Eo(A,G,{parseWithTs:L})}async function gs(o,d,{parseWithTs:y}){var w;try{return await Eo(o,d,{parseWithTs:y})}catch(A){if(((w=A.cause)==null?void 0:w.code)!=="BABEL_PARSER_SYNTAX_ERROR")throw A}return lt(o,d,{parser:y?"__vue_ts_event_binding":"__vue_event_binding"},bt)}function wr(o,d,{parseWithTs:y}){return lt(o,d,{parser:y?"__vue_ts_expression":"__vue_expression"},bt)}function Eo(o,d,{parseWithTs:y}){return lt(o,d,{parser:y?"__ts_expression":"__js_expression"},bt)}var ms=Co;function Fo(o,d){let{node:y}=o;if(y.value){if(/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/u.test(d.originalText.slice(y.valueSpan.start.offset,y.valueSpan.end.offset))||d.parser==="lwc"&&y.value.startsWith("{")&&y.value.endsWith("}"))return[y.rawName,"=",y.value];for(let w of[Ci,xl,pu,ms,bl]){let A=w(o,d);if(A)return vs(A)}}}function vs(o){return async(d,y,w,A)=>{let L=await o(d,y,w,A);if(L)return L=lo(L,G=>typeof G=="string"?M(!1,G,'"',"""):G),[w.node.rawName,'="',We(L),'"']}}var So=Fo,gr=new Proxy(()=>{},{get:()=>gr});function Fi(o){return o.sourceSpan.start.offset}function Pn(o){return o.sourceSpan.end.offset}function Si(o,d){return[o.isSelfClosing?"":bs(o,d),ra(o,d)]}function bs(o,d){return o.lastChild&&Zr(o.lastChild)?"":[ko(o,d),ki(o,d)]}function ra(o,d){return(o.next?Dr(o.next):Cr(o.parent))?"":[Ia(o,d),Lr(o,d)]}function ko(o,d){return Cr(o)?Ia(o.lastChild,d):""}function Lr(o,d){return Zr(o)?ki(o.parent,d):qr(o)?Qr(o.next,d):""}function ki(o,d){if(To(o,d))return"";switch(o.type){case"ieConditionalComment":return"<!";case"element":if(o.hasHtmComponentClosingTag)return"<//";default:return`</${o.rawName}`}}function Ia(o,d){if(To(o,d))return"";switch(o.type){case"ieConditionalComment":case"ieConditionalEndComment":return"[endif]-->";case"ieConditionalStartComment":return"]><!-->";case"interpolation":return"}}";case"angularIcuExpression":return"}";case"element":if(o.isSelfClosing)return"/>";default:return">"}}function To(o,d){return!o.isSelfClosing&&!o.endSourceSpan&&(po(o)||ho(o.parent,d))}function Dr(o){return o.prev&&o.prev.type!=="docType"&&o.type!=="angularControlFlowBlock"&&!pt(o.prev)&&o.isLeadingSpaceSensitive&&!o.hasLeadingSpaces}function Cr(o){var d;return((d=o.lastChild)==null?void 0:d.isTrailingSpaceSensitive)&&!o.lastChild.hasTrailingSpaces&&!pt(Qn(o.lastChild))&&!un(o)}function Zr(o){return!o.next&&!o.hasTrailingSpaces&&o.isTrailingSpaceSensitive&&pt(Qn(o))}function qr(o){return o.next&&!pt(o.next)&&pt(o)&&o.isTrailingSpaceSensitive&&!o.hasTrailingSpaces}function Ti(o){let d=o.trim().match(/^prettier-ignore-attribute(?:\s+(.+))?$/su);return d?d[1]?d[1].split(/\s+/u):!0:!1}function na(o){return!o.prev&&o.isLeadingSpaceSensitive&&!o.hasLeadingSpaces}function ys(o,d,y){var w;let{node:A}=o;if(!ci(A.attrs))return A.isSelfClosing?" ":"";let L=((w=A.prev)==null?void 0:w.type)==="comment"&&Ti(A.prev.value),G=typeof L=="boolean"?()=>L:Array.isArray(L)?Me=>L.includes(Me.rawName):()=>!1,Z=o.map(({node:Me})=>G(Me)?rr(d.originalText.slice(Fi(Me),Pn(Me))):y(),"attrs"),ue=A.type==="element"&&A.fullName==="script"&&A.attrs.length===1&&A.attrs[0].fullName==="src"&&A.children.length===0,be=d.singleAttributePerLine&&A.attrs.length>1&&!On(A,d)?De:Ye,he=[Vr([ue?" ":Ye,ka(be,Z)])];return A.firstChild&&na(A.firstChild)||A.isSelfClosing&&Cr(A.parent)||ue?he.push(A.isSelfClosing?" ":""):he.push(d.bracketSameLine?A.isSelfClosing?" ":"":A.isSelfClosing?Ye:Xe),he}function _i(o){return o.firstChild&&na(o.firstChild)?"":l(o)}function hn(o,d,y){let{node:w}=o;return[Ai(w,d),ys(o,d,y),w.isSelfClosing?"":_i(w)]}function Ai(o,d){return o.prev&&qr(o.prev)?"":[Kr(o,d),Qr(o,d)]}function Kr(o,d){return na(o)?l(o.parent):Dr(o)?Ia(o.prev,d):""}var xs="<!doctype";function Qr(o,d){switch(o.type){case"ieConditionalComment":case"ieConditionalStartComment":return`<!--[if ${o.condition}`;case"ieConditionalEndComment":return"<!--<!";case"interpolation":return"{{";case"docType":{if(o.value==="html"){let{filepath:w}=d;if(w&&/\.html?$/u.test(w))return xs}let y=Fi(o);return d.originalText.slice(y,y+xs.length)}case"angularIcuExpression":return"{";case"element":if(o.condition)return`<!--[if ${o.condition}]><!--><${o.rawName}`;default:return`<${o.rawName}`}}function l(o){switch(o.type){case"ieConditionalComment":return"]>";case"element":if(o.condition)return"><!--<![endif]-->";default:return">"}}function f(o,d){if(!o.endSourceSpan)return"";let y=o.startSourceSpan.end.offset;o.firstChild&&na(o.firstChild)&&(y-=l(o).length);let w=o.endSourceSpan.start.offset;return o.lastChild&&Zr(o.lastChild)?w+=ki(o,d).length:Cr(o)&&(w-=Ia(o.lastChild,d).length),d.originalText.slice(y,w)}var x=f,E=new Set(["if","else if","for","switch","case"]);function T(o,d){let{node:y}=o;switch(y.type){case"element":if(Or(y,d)||y.type==="interpolation")return;if(!y.isSelfClosing&&Bn(y,d)){let w=Xr(y,d);return w?async(A,L)=>{let G=x(y,d),Z=/^\s*$/u.test(G),ue="";return Z||(ue=await A(as(G),{parser:w,__embeddedInHtml:!0}),Z=ue===""),[Kr(y,d),We(hn(o,d,L)),Z?"":De,ue,Z?"":De,Si(y,d),Lr(y,d)]}:void 0}break;case"text":if(Or(y.parent,d)){let w=Xr(y.parent,d);if(w)return async A=>{let L=w==="markdown"?ea(y.value.replace(/^[^\S\n]*\n/u,"")):y.value,G={parser:w,__embeddedInHtml:!0};if(d.parser==="html"&&w==="babel"){let Z="script",{attrMap:ue}=y.parent;ue&&(ue.type==="module"||(ue.type==="text/babel"||ue.type==="text/jsx")&&ue["data-type"]==="module")&&(Z="module"),G.__babelSourceType=Z}return[Ar,Kr(y,d),await A(L,G),Lr(y,d)]}}else if(y.parent.type==="interpolation")return async w=>{let A={__isInHtmlInterpolation:!0,__embeddedInHtml:!0};return d.parser==="angular"?A.parser="__ng_interpolation":d.parser==="vue"?A.parser=Vt(o,d)?"__vue_ts_expression":"__vue_expression":A.parser="__js_expression",[Vr([Ye,await w(y.value,A)]),y.parent.next&&Dr(y.parent.next)?" ":Ye]};break;case"attribute":return So(o,d);case"front-matter":return w=>ou(y,w);case"angularControlFlowBlockParameters":return E.has(o.parent.name)?_a:void 0;case"angularLetDeclarationInitializer":return w=>lt(y.value,w,{parser:"__ng_binding",__isInHtmlAttribute:!1})}}var P=T;function j(o,d="type"){function y(w){let A=w[d],L=o[A];if(!Array.isArray(L))throw Object.assign(new Error(`Missing visitor keys for '${A}'.`),{node:w});return L}return y}var re=j,J={"front-matter":[],root:["children"],element:["attrs","children"],ieConditionalComment:["children"],ieConditionalStartComment:[],ieConditionalEndComment:[],interpolation:["children"],text:["children"],docType:[],comment:[],attribute:[],cdata:[],angularControlFlowBlock:["children","parameters"],angularControlFlowBlockParameters:["children"],angularControlFlowBlockParameter:[],angularLetDeclaration:["init"],angularLetDeclarationInitializer:[],angularIcuExpression:["cases"],angularIcuCase:["expression"]},K=J,de=re(K),se=de,we="format",Ce=/^\s*<!--\s*@(?:noformat|noprettier)\s*-->/u,Fe=/^\s*<!--\s*@(?:format|prettier)\s*-->/u;function Se(o){return Fe.test(o)}function qe(o){return Ce.test(o)}function Ke(o){return`<!-- @${we} -->
|
|
88
|
-
|
|
89
|
-
${o}`}var Ze=new Map([["if",new Set(["else if","else"])],["else if",new Set(["else if","else"])],["for",new Set(["empty"])],["defer",new Set(["placeholder","error","loading"])],["placeholder",new Set(["placeholder","error","loading"])],["error",new Set(["placeholder","error","loading"])],["loading",new Set(["placeholder","error","loading"])]]);function et(o){let d=Pn(o);return o.type==="element"&&!o.endSourceSpan&&ci(o.children)?Math.max(d,et(le(!1,o.children,-1))):d}function xe(o,d,y){let w=o.node;if(po(w)){let A=et(w);return[Kr(w,d),rr(Nr.trimEnd(d.originalText.slice(Fi(w)+(w.prev&&qr(w.prev)?Qr(w).length:0),A-(w.next&&Dr(w.next)?Ia(w,d).length:0)))),Lr(w,d)]}return y()}function nt(o,d){return pt(o)&&pt(d)?o.isTrailingSpaceSensitive?o.hasTrailingSpaces?hi(d)?De:Ye:"":hi(d)?De:Xe:qr(o)&&(po(d)||d.firstChild||d.isSelfClosing||d.type==="element"&&d.attrs.length>0)||o.type==="element"&&o.isSelfClosing&&Dr(d)?"":!d.isLeadingSpaceSensitive||hi(d)||Dr(d)&&o.lastChild&&Zr(o.lastChild)&&o.lastChild.lastChild&&Zr(o.lastChild.lastChild)?De:d.hasLeadingSpaces?Ye:Xe}function Le(o,d,y){let{node:w}=o;if(dl(w))return[Ar,...o.map(L=>{let G=L.node,Z=G.prev?nt(G.prev,G):"";return[Z?[Z,Br(G.prev)?De:""]:"",xe(L,d,y)]},"children")];let A=w.children.map(()=>Symbol(""));return o.map((L,G)=>{let Z=L.node;if(pt(Z)){if(Z.prev&&pt(Z.prev)){let tt=nt(Z.prev,Z);if(tt)return Br(Z.prev)?[De,De,xe(L,d,y)]:[tt,xe(L,d,y)]}return xe(L,d,y)}let ue=[],be=[],he=[],Me=[],Re=Z.prev?nt(Z.prev,Z):"",ze=Z.next?nt(Z,Z.next):"";return Re&&(Br(Z.prev)?ue.push(De,De):Re===De?ue.push(De):pt(Z.prev)?be.push(Re):be.push(Sa("",Xe,{groupId:A[G-1]}))),ze&&(Br(Z)?pt(Z.next)&&Me.push(De,De):ze===De?pt(Z.next)&&Me.push(De):he.push(ze)),[...ue,We([...be,We([xe(L,d,y),...he],{id:A[G]})]),...Me]},"children")}function Nt(o,d,y){let{node:w}=o,A=[];ke(o)&&A.push("} "),A.push("@",w.name),w.parameters&&A.push(" (",We(y("parameters")),")"),A.push(" {");let L=Lt(w);return w.children.length>0?(w.firstChild.hasLeadingSpaces=!0,w.lastChild.hasTrailingSpaces=!0,A.push(Vr([De,Le(o,d,y)])),L&&A.push(De,"}")):L&&A.push("}"),We(A,{shouldBreak:!0})}function Lt(o){var d,y;return!(((d=o.next)==null?void 0:d.type)==="angularControlFlowBlock"&&(y=Ze.get(o.name))!=null&&y.has(o.next.name))}function ke(o){let{previous:d}=o;return d?.type==="angularControlFlowBlock"&&!po(d)&&!Lt(d)}function Rt(o,d,y){return[Vr([Xe,ka([";",Ye],o.map(y,"children"))]),Xe]}function Ln(o,d,y){let{node:w}=o;return[Ai(w,d),We([w.switchValue.trim(),", ",w.clause,w.cases.length>0?[",",Vr([Ye,ka(Ye,o.map(y,"cases"))])]:"",Xe]),ra(w,d)]}function It(o,d,y){let{node:w}=o;return[w.value," {",We([Vr([Xe,o.map(({node:A,isLast:L})=>{let G=[y()];return A.type==="text"&&(A.hasLeadingSpaces&&G.unshift(Ye),A.hasTrailingSpaces&&!L&&G.push(Ye)),G},"expression")]),Xe]),"}"]}function pn(o,d,y){let{node:w}=o;if(ho(w,d))return[Kr(w,d),We(hn(o,d,y)),rr(x(w,d)),...Si(w,d),Lr(w,d)];let A=w.children.length===1&&(w.firstChild.type==="interpolation"||w.firstChild.type==="angularIcuExpression")&&w.firstChild.isLeadingSpaceSensitive&&!w.firstChild.hasLeadingSpaces&&w.lastChild.isTrailingSpaceSensitive&&!w.lastChild.hasTrailingSpaces,L=Symbol("element-attr-group-id"),G=he=>We([We(hn(o,d,y),{id:L}),he,Si(w,d)]),Z=he=>A?vt(he,{groupId:L}):(Or(w,d)||bi(w,d))&&w.parent.type==="root"&&d.parser==="vue"&&!d.vueIndentScriptAndStyle?he:Vr(he),ue=()=>A?Sa(Xe,"",{groupId:L}):w.firstChild.hasLeadingSpaces&&w.firstChild.isLeadingSpaceSensitive?Ye:w.firstChild.type==="text"&&w.isWhitespaceSensitive&&w.isIndentationSensitive?Oe(Xe):Xe,be=()=>(w.next?Dr(w.next):Cr(w.parent))?w.lastChild.hasTrailingSpaces&&w.lastChild.isTrailingSpaceSensitive?" ":"":A?Sa(Xe,"",{groupId:L}):w.lastChild.hasTrailingSpaces&&w.lastChild.isTrailingSpaceSensitive?Ye:(w.lastChild.type==="comment"||w.lastChild.type==="text"&&w.isWhitespaceSensitive&&w.isIndentationSensitive)&&new RegExp(`\\n[\\t ]{${d.tabWidth*(o.ancestors.length-1)}}$`,"u").test(w.lastChild.value)?"":Xe;return w.children.length===0?G(w.hasDanglingSpaces&&w.isDanglingSpaceSensitive?Ye:""):G([fi(w)?Ar:"",Z([ue(),Le(o,d,y)]),be()])}function Kt(o){return o>=9&&o<=32||o==160}function Ct(o){return 48<=o&&o<=57}function Ot(o){return o>=97&&o<=122||o>=65&&o<=90}function Yt(o){return o>=97&&o<=102||o>=65&&o<=70||Ct(o)}function Ir(o){return o===10||o===13}function Jt(o){return 48<=o&&o<=55}function In(o){return o===39||o===34||o===96}var gn=/-+([a-z0-9])/g;function Mn(o){return o.replace(gn,(...d)=>d[1].toUpperCase())}var mn=class xy{constructor(d,y,w,A){this.file=d,this.offset=y,this.line=w,this.col=A}toString(){return this.offset!=null?`${this.file.url}@${this.line}:${this.col}`:this.file.url}moveBy(d){let y=this.file.content,w=y.length,A=this.offset,L=this.line,G=this.col;for(;A>0&&d<0;)if(A--,d++,y.charCodeAt(A)==10){L--;let Z=y.substring(0,A-1).lastIndexOf(`
|
|
90
|
-
`);G=Z>0?A-Z:A}else G--;for(;A<w&&d>0;){let Z=y.charCodeAt(A);A++,d--,Z==10?(L++,G=0):G++}return new xy(this.file,A,L,G)}getContext(d,y){let w=this.file.content,A=this.offset;if(A!=null){A>w.length-1&&(A=w.length-1);let L=A,G=0,Z=0;for(;G<d&&A>0&&(A--,G++,!(w[A]==`
|
|
91
|
-
`&&++Z==y)););for(G=0,Z=0;G<d&&L<w.length-1&&(L++,G++,!(w[L]==`
|
|
92
|
-
`&&++Z==y)););return{before:w.substring(A,this.offset),after:w.substring(this.offset,L+1)}}return null}},Ni=class{constructor(o,d){this.content=o,this.url=d}},Ne=class{constructor(o,d,y=o,w=null){this.start=o,this.end=d,this.fullStart=y,this.details=w}toString(){return this.start.file.content.substring(this.start.offset,this.end.offset)}},vn;(function(o){o[o.WARNING=0]="WARNING",o[o.ERROR=1]="ERROR"})(vn||(vn={}));var Er=class{constructor(o,d,y=vn.ERROR,w){this.span=o,this.msg=d,this.level=y,this.relatedError=w}contextualMessage(){let o=this.span.start.getContext(100,3);return o?`${this.msg} ("${o.before}[${vn[this.level]} ->]${o.after}")`:this.msg}toString(){let o=this.span.details?`, ${this.span.details}`:"";return`${this.contextualMessage()}: ${this.span.start}${o}`}},Dl=[ws,Ds,Ma,Oi,Bi,aa,Mr,Es,ia,Cs];function Ri(o,d){for(let y of Dl)y(o,d);return o}function ws(o){o.walk(d=>{if(d.type==="element"&&d.tagDefinition.ignoreFirstLf&&d.children.length>0&&d.children[0].type==="text"&&d.children[0].value[0]===`
|
|
93
|
-
`){let y=d.children[0];y.value.length===1?d.removeChild(y):y.value=y.value.slice(1)}})}function Ds(o){let d=y=>{var w,A;return y.type==="element"&&((w=y.prev)==null?void 0:w.type)==="ieConditionalStartComment"&&y.prev.sourceSpan.end.offset===y.startSourceSpan.start.offset&&((A=y.firstChild)==null?void 0:A.type)==="ieConditionalEndComment"&&y.firstChild.sourceSpan.start.offset===y.startSourceSpan.end.offset};o.walk(y=>{if(y.children)for(let w=0;w<y.children.length;w++){let A=y.children[w];if(!d(A))continue;let L=A.prev,G=A.firstChild;y.removeChild(L),w--;let Z=new Ne(L.sourceSpan.start,G.sourceSpan.end),ue=new Ne(Z.start,A.sourceSpan.end);A.condition=L.condition,A.sourceSpan=ue,A.startSourceSpan=Z,A.removeChild(G)}})}function Cl(o,d,y){o.walk(w=>{if(w.children)for(let A=0;A<w.children.length;A++){let L=w.children[A];if(L.type!=="text"&&!d(L))continue;L.type!=="text"&&(L.type="text",L.value=y(L));let G=L.prev;!G||G.type!=="text"||(G.value+=L.value,G.sourceSpan=new Ne(G.sourceSpan.start,L.sourceSpan.end),w.removeChild(L),A--)}})}function Ma(o){return Cl(o,d=>d.type==="cdata",d=>`<![CDATA[${d.value}]]>`)}function Cs(o){let d=y=>{var w,A;return y.type==="element"&&y.attrs.length===0&&y.children.length===1&&y.firstChild.type==="text"&&!Nr.hasWhitespaceCharacter(y.children[0].value)&&!y.firstChild.hasLeadingSpaces&&!y.firstChild.hasTrailingSpaces&&y.isLeadingSpaceSensitive&&!y.hasLeadingSpaces&&y.isTrailingSpaceSensitive&&!y.hasTrailingSpaces&&((w=y.prev)==null?void 0:w.type)==="text"&&((A=y.next)==null?void 0:A.type)==="text"};o.walk(y=>{if(y.children)for(let w=0;w<y.children.length;w++){let A=y.children[w];if(!d(A))continue;let L=A.prev,G=A.next;L.value+=`<${A.rawName}>`+A.firstChild.value+`</${A.rawName}>`+G.value,L.sourceSpan=new Ne(L.sourceSpan.start,G.sourceSpan.end),L.isTrailingSpaceSensitive=G.isTrailingSpaceSensitive,L.hasTrailingSpaces=G.hasTrailingSpaces,y.removeChild(A),w--,y.removeChild(G)}})}function Oi(o,d){if(d.parser==="html")return;let y=/\{\{(.+?)\}\}/su;o.walk(w=>{if(Nn(w,d))for(let A of w.children){if(A.type!=="text")continue;let L=A.sourceSpan.start,G=null,Z=A.value.split(y);for(let ue=0;ue<Z.length;ue++,L=G){let be=Z[ue];if(ue%2===0){G=L.moveBy(be.length),be.length>0&&w.insertChildBefore(A,{type:"text",value:be,sourceSpan:new Ne(L,G)});continue}G=L.moveBy(be.length+4),w.insertChildBefore(A,{type:"interpolation",sourceSpan:new Ne(L,G),children:be.length===0?[]:[{type:"text",value:be,sourceSpan:new Ne(L.moveBy(2),G.moveBy(-2))}]})}w.removeChild(A)}})}function Bi(o,d){o.walk(y=>{let w=y.$children;if(!w)return;if(w.length===0||w.length===1&&w[0].type==="text"&&Nr.trim(w[0].value).length===0){y.hasDanglingSpaces=w.length>0,y.$children=[];return}let A=go(y,d),L=is(y);if(!A)for(let G=0;G<w.length;G++){let Z=w[G];if(Z.type!=="text")continue;let{leadingWhitespace:ue,text:be,trailingWhitespace:he}=yt(Z.value),Me=Z.prev,Re=Z.next;be?(Z.value=be,Z.sourceSpan=new Ne(Z.sourceSpan.start.moveBy(ue.length),Z.sourceSpan.end.moveBy(-he.length)),ue&&(Me&&(Me.hasTrailingSpaces=!0),Z.hasLeadingSpaces=!0),he&&(Z.hasTrailingSpaces=!0,Re&&(Re.hasLeadingSpaces=!0))):(y.removeChild(Z),G--,(ue||he)&&(Me&&(Me.hasTrailingSpaces=!0),Re&&(Re.hasLeadingSpaces=!0)))}y.isWhitespaceSensitive=A,y.isIndentationSensitive=L})}function Mr(o){o.walk(d=>{d.isSelfClosing=!d.children||d.type==="element"&&(d.tagDefinition.isVoid||d.endSourceSpan&&d.startSourceSpan.start===d.endSourceSpan.start&&d.startSourceSpan.end===d.endSourceSpan.end)})}function Es(o,d){o.walk(y=>{y.type==="element"&&(y.hasHtmComponentClosingTag=y.endSourceSpan&&/^<\s*\/\s*\/\s*>$/u.test(d.originalText.slice(y.endSourceSpan.start.offset,y.endSourceSpan.end.offset)))})}function aa(o,d){o.walk(y=>{y.cssDisplay=vi(y,d)})}function ia(o,d){o.walk(y=>{let{children:w}=y;if(w){if(w.length===0){y.isDanglingSpaceSensitive=cl(y,d);return}for(let A of w)A.isLeadingSpaceSensitive=ll(A,d),A.isTrailingSpaceSensitive=ul(A,d);for(let A=0;A<w.length;A++){let L=w[A];L.isLeadingSpaceSensitive=(A===0||L.prev.isTrailingSpaceSensitive)&&L.isLeadingSpaceSensitive,L.isTrailingSpaceSensitive=(A===w.length-1||L.next.isLeadingSpaceSensitive)&&L.isTrailingSpaceSensitive}}})}var Pi=Ri;function zn(o,d,y){let{node:w}=o;switch(w.type){case"front-matter":return rr(w.raw);case"root":return d.__onHtmlRoot&&d.__onHtmlRoot(w),[We(Le(o,d,y)),De];case"element":case"ieConditionalComment":return pn(o,d,y);case"angularControlFlowBlock":return Nt(o,d,y);case"angularControlFlowBlockParameters":return Rt(o,d,y);case"angularControlFlowBlockParameter":return Nr.trim(w.expression);case"angularLetDeclaration":return We(["@let ",We([w.id," =",We(Vr([Ye,y("init")]))]),";"]);case"angularLetDeclarationInitializer":return w.value;case"angularIcuExpression":return Ln(o,d,y);case"angularIcuCase":return It(o,d,y);case"ieConditionalStartComment":case"ieConditionalEndComment":return[Ai(w),ra(w)];case"interpolation":return[Ai(w,d),...o.map(y,"children"),ra(w,d)];case"text":{if(w.parent.type==="interpolation"){let Z=/\n[^\S\n]*$/u,ue=Z.test(w.value),be=ue?w.value.replace(Z,""):w.value;return[rr(be),ue?De:""]}let A=Kr(w,d),L=us(w),G=Lr(w,d);return L[0]=[A,L[0]],L.push([L.pop(),G]),Zo(L)}case"docType":return[We([Ai(w,d)," ",M(!1,w.value.replace(/^html\b/iu,"html"),/\s+/gu," ")]),ra(w,d)];case"comment":return[Kr(w,d),rr(d.originalText.slice(Fi(w),Pn(w))),Lr(w,d)];case"attribute":{if(w.value===null)return w.rawName;let A=cn(w.value),L=Ko(A,'"');return[w.rawName,"=",L,rr(L==='"'?M(!1,A,'"',"""):M(!1,A,"'","'")),L]}case"cdata":default:throw new ir(w,"HTML")}}var Li={preprocess:Pi,print:zn,insertPragma:Ke,massageAstNode:$s,embed:P,getVisitorKeys:se},$r=Li,Ii=[{name:"Angular",type:"markup",extensions:[".component.html"],tmScope:"text.html.basic",aceMode:"html",aliases:["xhtml"],codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",parsers:["angular"],vscodeLanguageIds:["html"],filenames:[],linguistLanguageId:146},{name:"HTML",type:"markup",extensions:[".html",".hta",".htm",".html.hl",".inc",".xht",".xhtml"],tmScope:"text.html.basic",aceMode:"html",aliases:["xhtml"],codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",parsers:["html"],vscodeLanguageIds:["html"],linguistLanguageId:146},{name:"Lightning Web Components",type:"markup",extensions:[],tmScope:"text.html.basic",aceMode:"html",aliases:["xhtml"],codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",parsers:["lwc"],vscodeLanguageIds:["html"],filenames:[],linguistLanguageId:146},{name:"MJML",type:"markup",extensions:[".mjml"],tmScope:"text.mjml.basic",aceMode:"html",aliases:["MJML","mjml"],codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",parsers:["mjml"],filenames:[],vscodeLanguageIds:["mjml"],linguistLanguageId:146},{name:"Vue",type:"markup",extensions:[".vue"],tmScope:"source.vue",aceMode:"html",parsers:["vue"],vscodeLanguageIds:["vue"],linguistLanguageId:391}],oa={bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}},bn="HTML",Et={bracketSameLine:oa.bracketSameLine,htmlWhitespaceSensitivity:{category:bn,type:"choice",default:"css",description:"How to handle whitespaces in HTML.",choices:[{value:"css",description:"Respect the default value of CSS display property."},{value:"strict",description:"Whitespaces are considered sensitive."},{value:"ignore",description:"Whitespaces are considered insensitive."}]},singleAttributePerLine:oa.singleAttributePerLine,vueIndentScriptAndStyle:{category:bn,type:"boolean",default:!1,description:"Indent script and style tags in Vue files."}},_o=Et,Fr={};g(Fr,{angular:()=>Fu,html:()=>Rs,lwc:()=>Ja,mjml:()=>Yc,vue:()=>Dp});var sa;(function(o){o[o.Emulated=0]="Emulated",o[o.None=2]="None",o[o.ShadowDom=3]="ShadowDom"})(sa||(sa={}));var za;(function(o){o[o.OnPush=0]="OnPush",o[o.Default=1]="Default"})(za||(za={}));var Hn;(function(o){o[o.None=0]="None",o[o.SignalBased=1]="SignalBased",o[o.HasDecoratorInputTransform=2]="HasDecoratorInputTransform"})(Hn||(Hn={}));var zr={name:"custom-elements"},yn={name:"no-errors-schema"},it;(function(o){o[o.NONE=0]="NONE",o[o.HTML=1]="HTML",o[o.STYLE=2]="STYLE",o[o.SCRIPT=3]="SCRIPT",o[o.URL=4]="URL",o[o.RESOURCE_URL=5]="RESOURCE_URL"})(it||(it={}));var en;(function(o){o[o.Error=0]="Error",o[o.Warning=1]="Warning",o[o.Ignore=2]="Ignore"})(en||(en={}));var mr;(function(o){o[o.RAW_TEXT=0]="RAW_TEXT",o[o.ESCAPABLE_RAW_TEXT=1]="ESCAPABLE_RAW_TEXT",o[o.PARSABLE_DATA=2]="PARSABLE_DATA"})(mr||(mr={}));function Ha(o,d=!0){if(o[0]!=":")return[null,o];let y=o.indexOf(":",1);if(y===-1){if(d)throw new Error(`Unsupported format "${o}" expecting ":namespace:name"`);return[null,o]}return[o.slice(1,y),o.slice(y+1)]}function la(o){return Ha(o)[1]==="ng-container"}function Ao(o){return Ha(o)[1]==="ng-content"}function ut(o){return o===null?null:Ha(o)[0]}function xn(o,d){return o?`:${o}:${d}`:d}var tn;function wn(){return tn||(tn={},jn(it.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),jn(it.STYLE,["*|style"]),jn(it.URL,["*|formAction","area|href","area|ping","audio|src","a|href","a|ping","blockquote|cite","body|background","del|cite","form|action","img|src","input|src","ins|cite","q|cite","source|src","track|src","video|poster","video|src"]),jn(it.RESOURCE_URL,["applet|code","applet|codebase","base|href","embed|src","frame|src","head|profile","html|manifest","iframe|src","link|href","media|src","object|codebase","object|data","script|src"])),tn}function jn(o,d){for(let y of d)tn[y.toLowerCase()]=o}var Mi=class{},vr="boolean",El="number",ua="string",Fs="object",ja=["[Element]|textContent,%ariaAtomic,%ariaAutoComplete,%ariaBusy,%ariaChecked,%ariaColCount,%ariaColIndex,%ariaColSpan,%ariaCurrent,%ariaDescription,%ariaDisabled,%ariaExpanded,%ariaHasPopup,%ariaHidden,%ariaKeyShortcuts,%ariaLabel,%ariaLevel,%ariaLive,%ariaModal,%ariaMultiLine,%ariaMultiSelectable,%ariaOrientation,%ariaPlaceholder,%ariaPosInSet,%ariaPressed,%ariaReadOnly,%ariaRelevant,%ariaRequired,%ariaRoleDescription,%ariaRowCount,%ariaRowIndex,%ariaRowSpan,%ariaSelected,%ariaSetSize,%ariaSort,%ariaValueMax,%ariaValueMin,%ariaValueNow,%ariaValueText,%classList,className,elementTiming,id,innerHTML,*beforecopy,*beforecut,*beforepaste,*fullscreenchange,*fullscreenerror,*search,*webkitfullscreenchange,*webkitfullscreenerror,outerHTML,%part,#scrollLeft,#scrollTop,slot,*message,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored","[HTMLElement]^[Element]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,!inert,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy","abbr,address,article,aside,b,bdi,bdo,cite,content,code,dd,dfn,dt,em,figcaption,figure,footer,header,hgroup,i,kbd,main,mark,nav,noscript,rb,rp,rt,rtc,ruby,s,samp,section,small,strong,sub,sup,u,var,wbr^[HTMLElement]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy","media^[HTMLElement]|!autoplay,!controls,%controlsList,%crossOrigin,#currentTime,!defaultMuted,#defaultPlaybackRate,!disableRemotePlayback,!loop,!muted,*encrypted,*waitingforkey,#playbackRate,preload,!preservesPitch,src,%srcObject,#volume",":svg:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex",":svg:graphics^:svg:|",":svg:animation^:svg:|*begin,*end,*repeat",":svg:geometry^:svg:|",":svg:componentTransferFunction^:svg:|",":svg:gradient^:svg:|",":svg:textContent^:svg:graphics|",":svg:textPositioning^:svg:textContent|","a^[HTMLElement]|charset,coords,download,hash,host,hostname,href,hreflang,name,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,rev,search,shape,target,text,type,username","area^[HTMLElement]|alt,coords,download,hash,host,hostname,href,!noHref,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,search,shape,target,username","audio^media|","br^[HTMLElement]|clear","base^[HTMLElement]|href,target","body^[HTMLElement]|aLink,background,bgColor,link,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,text,vLink","button^[HTMLElement]|!disabled,formAction,formEnctype,formMethod,!formNoValidate,formTarget,name,type,value","canvas^[HTMLElement]|#height,#width","content^[HTMLElement]|select","dl^[HTMLElement]|!compact","data^[HTMLElement]|value","datalist^[HTMLElement]|","details^[HTMLElement]|!open","dialog^[HTMLElement]|!open,returnValue","dir^[HTMLElement]|!compact","div^[HTMLElement]|align","embed^[HTMLElement]|align,height,name,src,type,width","fieldset^[HTMLElement]|!disabled,name","font^[HTMLElement]|color,face,size","form^[HTMLElement]|acceptCharset,action,autocomplete,encoding,enctype,method,name,!noValidate,target","frame^[HTMLElement]|frameBorder,longDesc,marginHeight,marginWidth,name,!noResize,scrolling,src","frameset^[HTMLElement]|cols,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,rows","hr^[HTMLElement]|align,color,!noShade,size,width","head^[HTMLElement]|","h1,h2,h3,h4,h5,h6^[HTMLElement]|align","html^[HTMLElement]|version","iframe^[HTMLElement]|align,allow,!allowFullscreen,!allowPaymentRequest,csp,frameBorder,height,loading,longDesc,marginHeight,marginWidth,name,referrerPolicy,%sandbox,scrolling,src,srcdoc,width","img^[HTMLElement]|align,alt,border,%crossOrigin,decoding,#height,#hspace,!isMap,loading,longDesc,lowsrc,name,referrerPolicy,sizes,src,srcset,useMap,#vspace,#width","input^[HTMLElement]|accept,align,alt,autocomplete,!checked,!defaultChecked,defaultValue,dirName,!disabled,%files,formAction,formEnctype,formMethod,!formNoValidate,formTarget,#height,!incremental,!indeterminate,max,#maxLength,min,#minLength,!multiple,name,pattern,placeholder,!readOnly,!required,selectionDirection,#selectionEnd,#selectionStart,#size,src,step,type,useMap,value,%valueAsDate,#valueAsNumber,#width","li^[HTMLElement]|type,#value","label^[HTMLElement]|htmlFor","legend^[HTMLElement]|align","link^[HTMLElement]|as,charset,%crossOrigin,!disabled,href,hreflang,imageSizes,imageSrcset,integrity,media,referrerPolicy,rel,%relList,rev,%sizes,target,type","map^[HTMLElement]|name","marquee^[HTMLElement]|behavior,bgColor,direction,height,#hspace,#loop,#scrollAmount,#scrollDelay,!trueSpeed,#vspace,width","menu^[HTMLElement]|!compact","meta^[HTMLElement]|content,httpEquiv,media,name,scheme","meter^[HTMLElement]|#high,#low,#max,#min,#optimum,#value","ins,del^[HTMLElement]|cite,dateTime","ol^[HTMLElement]|!compact,!reversed,#start,type","object^[HTMLElement]|align,archive,border,code,codeBase,codeType,data,!declare,height,#hspace,name,standby,type,useMap,#vspace,width","optgroup^[HTMLElement]|!disabled,label","option^[HTMLElement]|!defaultSelected,!disabled,label,!selected,text,value","output^[HTMLElement]|defaultValue,%htmlFor,name,value","p^[HTMLElement]|align","param^[HTMLElement]|name,type,value,valueType","picture^[HTMLElement]|","pre^[HTMLElement]|#width","progress^[HTMLElement]|#max,#value","q,blockquote,cite^[HTMLElement]|","script^[HTMLElement]|!async,charset,%crossOrigin,!defer,event,htmlFor,integrity,!noModule,%referrerPolicy,src,text,type","select^[HTMLElement]|autocomplete,!disabled,#length,!multiple,name,!required,#selectedIndex,#size,value","slot^[HTMLElement]|name","source^[HTMLElement]|#height,media,sizes,src,srcset,type,#width","span^[HTMLElement]|","style^[HTMLElement]|!disabled,media,type","caption^[HTMLElement]|align","th,td^[HTMLElement]|abbr,align,axis,bgColor,ch,chOff,#colSpan,headers,height,!noWrap,#rowSpan,scope,vAlign,width","col,colgroup^[HTMLElement]|align,ch,chOff,#span,vAlign,width","table^[HTMLElement]|align,bgColor,border,%caption,cellPadding,cellSpacing,frame,rules,summary,%tFoot,%tHead,width","tr^[HTMLElement]|align,bgColor,ch,chOff,vAlign","tfoot,thead,tbody^[HTMLElement]|align,ch,chOff,vAlign","template^[HTMLElement]|","textarea^[HTMLElement]|autocomplete,#cols,defaultValue,dirName,!disabled,#maxLength,#minLength,name,placeholder,!readOnly,!required,#rows,selectionDirection,#selectionEnd,#selectionStart,value,wrap","time^[HTMLElement]|dateTime","title^[HTMLElement]|text","track^[HTMLElement]|!default,kind,label,src,srclang","ul^[HTMLElement]|!compact,type","unknown^[HTMLElement]|","video^media|!disablePictureInPicture,#height,*enterpictureinpicture,*leavepictureinpicture,!playsInline,poster,#width",":svg:a^:svg:graphics|",":svg:animate^:svg:animation|",":svg:animateMotion^:svg:animation|",":svg:animateTransform^:svg:animation|",":svg:circle^:svg:geometry|",":svg:clipPath^:svg:graphics|",":svg:defs^:svg:graphics|",":svg:desc^:svg:|",":svg:discard^:svg:|",":svg:ellipse^:svg:geometry|",":svg:feBlend^:svg:|",":svg:feColorMatrix^:svg:|",":svg:feComponentTransfer^:svg:|",":svg:feComposite^:svg:|",":svg:feConvolveMatrix^:svg:|",":svg:feDiffuseLighting^:svg:|",":svg:feDisplacementMap^:svg:|",":svg:feDistantLight^:svg:|",":svg:feDropShadow^:svg:|",":svg:feFlood^:svg:|",":svg:feFuncA^:svg:componentTransferFunction|",":svg:feFuncB^:svg:componentTransferFunction|",":svg:feFuncG^:svg:componentTransferFunction|",":svg:feFuncR^:svg:componentTransferFunction|",":svg:feGaussianBlur^:svg:|",":svg:feImage^:svg:|",":svg:feMerge^:svg:|",":svg:feMergeNode^:svg:|",":svg:feMorphology^:svg:|",":svg:feOffset^:svg:|",":svg:fePointLight^:svg:|",":svg:feSpecularLighting^:svg:|",":svg:feSpotLight^:svg:|",":svg:feTile^:svg:|",":svg:feTurbulence^:svg:|",":svg:filter^:svg:|",":svg:foreignObject^:svg:graphics|",":svg:g^:svg:graphics|",":svg:image^:svg:graphics|decoding",":svg:line^:svg:geometry|",":svg:linearGradient^:svg:gradient|",":svg:mpath^:svg:|",":svg:marker^:svg:|",":svg:mask^:svg:|",":svg:metadata^:svg:|",":svg:path^:svg:geometry|",":svg:pattern^:svg:|",":svg:polygon^:svg:geometry|",":svg:polyline^:svg:geometry|",":svg:radialGradient^:svg:gradient|",":svg:rect^:svg:geometry|",":svg:svg^:svg:graphics|#currentScale,#zoomAndPan",":svg:script^:svg:|type",":svg:set^:svg:animation|",":svg:stop^:svg:|",":svg:style^:svg:|!disabled,media,title,type",":svg:switch^:svg:graphics|",":svg:symbol^:svg:|",":svg:tspan^:svg:textPositioning|",":svg:text^:svg:textPositioning|",":svg:textPath^:svg:textContent|",":svg:title^:svg:|",":svg:use^:svg:graphics|",":svg:view^:svg:|#zoomAndPan","data^[HTMLElement]|value","keygen^[HTMLElement]|!autofocus,challenge,!disabled,form,keytype,name","menuitem^[HTMLElement]|type,label,icon,!disabled,!checked,radiogroup,!default","summary^[HTMLElement]|","time^[HTMLElement]|dateTime",":svg:cursor^:svg:|",":math:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforeinput,*beforematch,*beforetoggle,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contentvisibilityautostatechange,*contextlost,*contextmenu,*contextrestored,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*scrollend,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex",":math:math^:math:|",":math:maction^:math:|",":math:menclose^:math:|",":math:merror^:math:|",":math:mfenced^:math:|",":math:mfrac^:math:|",":math:mi^:math:|",":math:mmultiscripts^:math:|",":math:mn^:math:|",":math:mo^:math:|",":math:mover^:math:|",":math:mpadded^:math:|",":math:mphantom^:math:|",":math:mroot^:math:|",":math:mrow^:math:|",":math:ms^:math:|",":math:mspace^:math:|",":math:msqrt^:math:|",":math:mstyle^:math:|",":math:msub^:math:|",":math:msubsup^:math:|",":math:msup^:math:|",":math:mtable^:math:|",":math:mtd^:math:|",":math:mtext^:math:|",":math:mtr^:math:|",":math:munder^:math:|",":math:munderover^:math:|",":math:semantics^:math:|"],ca=new Map(Object.entries({class:"className",for:"htmlFor",formaction:"formAction",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"})),zi=Array.from(ca).reduce((o,[d,y])=>(o.set(d,y),o),new Map),Un=class extends Mi{constructor(){super(),this._schema=new Map,this._eventSchema=new Map,ja.forEach(o=>{let d=new Map,y=new Set,[w,A]=o.split("|"),L=A.split(","),[G,Z]=w.split("^");G.split(",").forEach(be=>{this._schema.set(be.toLowerCase(),d),this._eventSchema.set(be.toLowerCase(),y)});let ue=Z&&this._schema.get(Z.toLowerCase());if(ue){for(let[be,he]of ue)d.set(be,he);for(let be of this._eventSchema.get(Z.toLowerCase()))y.add(be)}L.forEach(be=>{if(be.length>0)switch(be[0]){case"*":y.add(be.substring(1));break;case"!":d.set(be.substring(1),vr);break;case"#":d.set(be.substring(1),El);break;case"%":d.set(be.substring(1),Fs);break;default:d.set(be,ua)}})})}hasProperty(o,d,y){if(y.some(w=>w.name===yn.name))return!0;if(o.indexOf("-")>-1){if(la(o)||Ao(o))return!1;if(y.some(w=>w.name===zr.name))return!0}return(this._schema.get(o.toLowerCase())||this._schema.get("unknown")).has(d)}hasElement(o,d){return d.some(y=>y.name===yn.name)||o.indexOf("-")>-1&&(la(o)||Ao(o)||d.some(y=>y.name===zr.name))?!0:this._schema.has(o.toLowerCase())}securityContext(o,d,y){y&&(d=this.getMappedPropName(d)),o=o.toLowerCase(),d=d.toLowerCase();let w=wn()[o+"|"+d];return w||(w=wn()["*|"+d],w||it.NONE)}getMappedPropName(o){return ca.get(o)??o}getDefaultComponentElementName(){return"ng-component"}validateProperty(o){return o.toLowerCase().startsWith("on")?{error:!0,msg:`Binding to event property '${o}' is disallowed for security reasons, please use (${o.slice(2)})=...
|
|
94
|
-
If '${o}' is a directive input, make sure the directive is imported by the current module.`}:{error:!1}}validateAttribute(o){return o.toLowerCase().startsWith("on")?{error:!0,msg:`Binding to event attribute '${o}' is disallowed for security reasons, please use (${o.slice(2)})=...`}:{error:!1}}allKnownElementNames(){return Array.from(this._schema.keys())}allKnownAttributesOfElement(o){let d=this._schema.get(o.toLowerCase())||this._schema.get("unknown");return Array.from(d.keys()).map(y=>zi.get(y)??y)}allKnownEventsOfElement(o){return Array.from(this._eventSchema.get(o.toLowerCase())??[])}normalizeAnimationStyleProperty(o){return Mn(o)}normalizeAnimationStyleValue(o,d,y){let w="",A=y.toString().trim(),L=null;if(Hi(o)&&y!==0&&y!=="0")if(typeof y=="number")w="px";else{let G=y.match(/^[+-]?[\d\.]+([a-z]*)$/);G&&G[1].length==0&&(L=`Please provide a CSS unit value for ${d}:${y}`)}return{error:L,value:A+w}}};function Hi(o){switch(o){case"width":case"height":case"minWidth":case"minHeight":case"maxWidth":case"maxHeight":case"left":case"top":case"bottom":case"right":case"fontSize":case"outlineWidth":case"outlineOffset":case"paddingTop":case"paddingLeft":case"paddingBottom":case"paddingRight":case"marginTop":case"marginLeft":case"marginBottom":case"marginRight":case"borderRadius":case"borderWidth":case"borderTopWidth":case"borderLeftWidth":case"borderRightWidth":case"borderBottomWidth":case"textIndent":return!0;default:return!1}}var Te=class{constructor({closedByChildren:o,implicitNamespacePrefix:d,contentType:y=mr.PARSABLE_DATA,closedByParent:w=!1,isVoid:A=!1,ignoreFirstLf:L=!1,preventNamespaceInheritance:G=!1,canSelfClose:Z=!1}={}){this.closedByChildren={},this.closedByParent=!1,o&&o.length>0&&o.forEach(ue=>this.closedByChildren[ue]=!0),this.isVoid=A,this.closedByParent=w||A,this.implicitNamespacePrefix=d||null,this.contentType=y,this.ignoreFirstLf=L,this.preventNamespaceInheritance=G,this.canSelfClose=Z??A}isClosedByChild(o){return this.isVoid||o.toLowerCase()in this.closedByChildren}getContentType(o){return typeof this.contentType=="object"?(o===void 0?void 0:this.contentType[o])??this.contentType.default:this.contentType}},ji,Dn;function br(o){return Dn||(ji=new Te({canSelfClose:!0}),Dn=Object.assign(Object.create(null),{base:new Te({isVoid:!0}),meta:new Te({isVoid:!0}),area:new Te({isVoid:!0}),embed:new Te({isVoid:!0}),link:new Te({isVoid:!0}),img:new Te({isVoid:!0}),input:new Te({isVoid:!0}),param:new Te({isVoid:!0}),hr:new Te({isVoid:!0}),br:new Te({isVoid:!0}),source:new Te({isVoid:!0}),track:new Te({isVoid:!0}),wbr:new Te({isVoid:!0}),p:new Te({closedByChildren:["address","article","aside","blockquote","div","dl","fieldset","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","main","nav","ol","p","pre","section","table","ul"],closedByParent:!0}),thead:new Te({closedByChildren:["tbody","tfoot"]}),tbody:new Te({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new Te({closedByChildren:["tbody"],closedByParent:!0}),tr:new Te({closedByChildren:["tr"],closedByParent:!0}),td:new Te({closedByChildren:["td","th"],closedByParent:!0}),th:new Te({closedByChildren:["td","th"],closedByParent:!0}),col:new Te({isVoid:!0}),svg:new Te({implicitNamespacePrefix:"svg"}),foreignObject:new Te({implicitNamespacePrefix:"svg",preventNamespaceInheritance:!0}),math:new Te({implicitNamespacePrefix:"math"}),li:new Te({closedByChildren:["li"],closedByParent:!0}),dt:new Te({closedByChildren:["dt","dd"]}),dd:new Te({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new Te({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new Te({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new Te({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new Te({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new Te({closedByChildren:["optgroup"],closedByParent:!0}),option:new Te({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new Te({ignoreFirstLf:!0}),listing:new Te({ignoreFirstLf:!0}),style:new Te({contentType:mr.RAW_TEXT}),script:new Te({contentType:mr.RAW_TEXT}),title:new Te({contentType:{default:mr.ESCAPABLE_RAW_TEXT,svg:mr.PARSABLE_DATA}}),textarea:new Te({contentType:mr.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})}),new Un().allKnownElementNames().forEach(d=>{!Dn[d]&&ut(d)===null&&(Dn[d]=new Te({canSelfClose:!1}))})),Dn[o]??ji}var sr=class{constructor(o,d){this.sourceSpan=o,this.i18n=d}},Ua=class extends sr{constructor(o,d,y,w){super(d,w),this.value=o,this.tokens=y,this.type="text"}visit(o,d){return o.visitText(this,d)}},da=class extends sr{constructor(o,d,y,w){super(d,w),this.value=o,this.tokens=y,this.type="cdata"}visit(o,d){return o.visitCdata(this,d)}},Ui=class extends sr{constructor(o,d,y,w,A,L){super(w,L),this.switchValue=o,this.type=d,this.cases=y,this.switchValueSourceSpan=A}visit(o,d){return o.visitExpansion(this,d)}},Wa=class{constructor(o,d,y,w,A){this.value=o,this.expression=d,this.sourceSpan=y,this.valueSourceSpan=w,this.expSourceSpan=A,this.type="expansionCase"}visit(o,d){return o.visitExpansionCase(this,d)}},Wi=class extends sr{constructor(o,d,y,w,A,L,G){super(y,G),this.name=o,this.value=d,this.keySpan=w,this.valueSpan=A,this.valueTokens=L,this.type="attribute"}visit(o,d){return o.visitAttribute(this,d)}get nameSpan(){return this.keySpan}},Qt=class extends sr{constructor(o,d,y,w,A,L=null,G=null,Z){super(w,Z),this.name=o,this.attrs=d,this.children=y,this.startSourceSpan=A,this.endSourceSpan=L,this.nameSpan=G,this.type="element"}visit(o,d){return o.visitElement(this,d)}},Wn=class{constructor(o,d){this.value=o,this.sourceSpan=d,this.type="comment"}visit(o,d){return o.visitComment(this,d)}},fa=class{constructor(o,d){this.value=o,this.sourceSpan=d,this.type="docType"}visit(o,d){return o.visitDocType(this,d)}},Sr=class extends sr{constructor(o,d,y,w,A,L,G=null,Z){super(w,Z),this.name=o,this.parameters=d,this.children=y,this.nameSpan=A,this.startSourceSpan=L,this.endSourceSpan=G,this.type="block"}visit(o,d){return o.visitBlock(this,d)}},Ga=class{constructor(o,d){this.expression=o,this.sourceSpan=d,this.type="blockParameter",this.startSourceSpan=null,this.endSourceSpan=null}visit(o,d){return o.visitBlockParameter(this,d)}},s=class{constructor(o,d,y,w,A){this.name=o,this.value=d,this.sourceSpan=y,this.nameSpan=w,this.valueSpan=A,this.type="letDeclaration",this.startSourceSpan=null,this.endSourceSpan=null}visit(o,d){return o.visitLetDeclaration(this,d)}};function c(o,d,y=null){let w=[],A=o.visit?L=>o.visit(L,y)||L.visit(o,y):L=>L.visit(o,y);return d.forEach(L=>{let G=A(L);G&&w.push(G)}),w}var v=class{constructor(){}visitElement(o,d){this.visitChildren(d,y=>{y(o.attrs),y(o.children)})}visitAttribute(o,d){}visitText(o,d){}visitCdata(o,d){}visitComment(o,d){}visitDocType(o,d){}visitExpansion(o,d){return this.visitChildren(d,y=>{y(o.cases)})}visitExpansionCase(o,d){}visitBlock(o,d){this.visitChildren(d,y=>{y(o.parameters),y(o.children)})}visitBlockParameter(o,d){}visitLetDeclaration(o,d){}visitChildren(o,d){let y=[],w=this;function A(L){L&&y.push(c(w,L,o))}return d(A),Array.prototype.concat.apply([],y)}},C={AElig:"Æ",AMP:"&",amp:"&",Aacute:"Á",Abreve:"Ă",Acirc:"Â",Acy:"А",Afr:"𝔄",Agrave:"À",Alpha:"Α",Amacr:"Ā",And:"⩓",Aogon:"Ą",Aopf:"𝔸",ApplyFunction:"",af:"",Aring:"Å",angst:"Å",Ascr:"𝒜",Assign:"≔",colone:"≔",coloneq:"≔",Atilde:"Ã",Auml:"Ä",Backslash:"∖",setminus:"∖",setmn:"∖",smallsetminus:"∖",ssetmn:"∖",Barv:"⫧",Barwed:"⌆",doublebarwedge:"⌆",Bcy:"Б",Because:"∵",becaus:"∵",because:"∵",Bernoullis:"ℬ",Bscr:"ℬ",bernou:"ℬ",Beta:"Β",Bfr:"𝔅",Bopf:"𝔹",Breve:"˘",breve:"˘",Bumpeq:"≎",HumpDownHump:"≎",bump:"≎",CHcy:"Ч",COPY:"©",copy:"©",Cacute:"Ć",Cap:"⋒",CapitalDifferentialD:"ⅅ",DD:"ⅅ",Cayleys:"ℭ",Cfr:"ℭ",Ccaron:"Č",Ccedil:"Ç",Ccirc:"Ĉ",Cconint:"∰",Cdot:"Ċ",Cedilla:"¸",cedil:"¸",CenterDot:"·",centerdot:"·",middot:"·",Chi:"Χ",CircleDot:"⊙",odot:"⊙",CircleMinus:"⊖",ominus:"⊖",CirclePlus:"⊕",oplus:"⊕",CircleTimes:"⊗",otimes:"⊗",ClockwiseContourIntegral:"∲",cwconint:"∲",CloseCurlyDoubleQuote:"”",rdquo:"”",rdquor:"”",CloseCurlyQuote:"’",rsquo:"’",rsquor:"’",Colon:"∷",Proportion:"∷",Colone:"⩴",Congruent:"≡",equiv:"≡",Conint:"∯",DoubleContourIntegral:"∯",ContourIntegral:"∮",conint:"∮",oint:"∮",Copf:"ℂ",complexes:"ℂ",Coproduct:"∐",coprod:"∐",CounterClockwiseContourIntegral:"∳",awconint:"∳",Cross:"⨯",Cscr:"𝒞",Cup:"⋓",CupCap:"≍",asympeq:"≍",DDotrahd:"⤑",DJcy:"Ђ",DScy:"Ѕ",DZcy:"Џ",Dagger:"‡",ddagger:"‡",Darr:"↡",Dashv:"⫤",DoubleLeftTee:"⫤",Dcaron:"Ď",Dcy:"Д",Del:"∇",nabla:"∇",Delta:"Δ",Dfr:"𝔇",DiacriticalAcute:"´",acute:"´",DiacriticalDot:"˙",dot:"˙",DiacriticalDoubleAcute:"˝",dblac:"˝",DiacriticalGrave:"`",grave:"`",DiacriticalTilde:"˜",tilde:"˜",Diamond:"⋄",diam:"⋄",diamond:"⋄",DifferentialD:"ⅆ",dd:"ⅆ",Dopf:"𝔻",Dot:"¨",DoubleDot:"¨",die:"¨",uml:"¨",DotDot:"⃜",DotEqual:"≐",doteq:"≐",esdot:"≐",DoubleDownArrow:"⇓",Downarrow:"⇓",dArr:"⇓",DoubleLeftArrow:"⇐",Leftarrow:"⇐",lArr:"⇐",DoubleLeftRightArrow:"⇔",Leftrightarrow:"⇔",hArr:"⇔",iff:"⇔",DoubleLongLeftArrow:"⟸",Longleftarrow:"⟸",xlArr:"⟸",DoubleLongLeftRightArrow:"⟺",Longleftrightarrow:"⟺",xhArr:"⟺",DoubleLongRightArrow:"⟹",Longrightarrow:"⟹",xrArr:"⟹",DoubleRightArrow:"⇒",Implies:"⇒",Rightarrow:"⇒",rArr:"⇒",DoubleRightTee:"⊨",vDash:"⊨",DoubleUpArrow:"⇑",Uparrow:"⇑",uArr:"⇑",DoubleUpDownArrow:"⇕",Updownarrow:"⇕",vArr:"⇕",DoubleVerticalBar:"∥",par:"∥",parallel:"∥",shortparallel:"∥",spar:"∥",DownArrow:"↓",ShortDownArrow:"↓",darr:"↓",downarrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",duarr:"⇵",DownBreve:"̑",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",leftharpoondown:"↽",lhard:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",rhard:"⇁",rightharpoondown:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",top:"⊤",DownTeeArrow:"↧",mapstodown:"↧",Dscr:"𝒟",Dstrok:"Đ",ENG:"Ŋ",ETH:"Ð",Eacute:"É",Ecaron:"Ě",Ecirc:"Ê",Ecy:"Э",Edot:"Ė",Efr:"𝔈",Egrave:"È",Element:"∈",in:"∈",isin:"∈",isinv:"∈",Emacr:"Ē",EmptySmallSquare:"◻",EmptyVerySmallSquare:"▫",Eogon:"Ę",Eopf:"𝔼",Epsilon:"Ε",Equal:"⩵",EqualTilde:"≂",eqsim:"≂",esim:"≂",Equilibrium:"⇌",rightleftharpoons:"⇌",rlhar:"⇌",Escr:"ℰ",expectation:"ℰ",Esim:"⩳",Eta:"Η",Euml:"Ë",Exists:"∃",exist:"∃",ExponentialE:"ⅇ",ee:"ⅇ",exponentiale:"ⅇ",Fcy:"Ф",Ffr:"𝔉",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",blacksquare:"▪",squarf:"▪",squf:"▪",Fopf:"𝔽",ForAll:"∀",forall:"∀",Fouriertrf:"ℱ",Fscr:"ℱ",GJcy:"Ѓ",GT:">",gt:">",Gamma:"Γ",Gammad:"Ϝ",Gbreve:"Ğ",Gcedil:"Ģ",Gcirc:"Ĝ",Gcy:"Г",Gdot:"Ġ",Gfr:"𝔊",Gg:"⋙",ggg:"⋙",Gopf:"𝔾",GreaterEqual:"≥",ge:"≥",geq:"≥",GreaterEqualLess:"⋛",gel:"⋛",gtreqless:"⋛",GreaterFullEqual:"≧",gE:"≧",geqq:"≧",GreaterGreater:"⪢",GreaterLess:"≷",gl:"≷",gtrless:"≷",GreaterSlantEqual:"⩾",geqslant:"⩾",ges:"⩾",GreaterTilde:"≳",gsim:"≳",gtrsim:"≳",Gscr:"𝒢",Gt:"≫",NestedGreaterGreater:"≫",gg:"≫",HARDcy:"Ъ",Hacek:"ˇ",caron:"ˇ",Hat:"^",Hcirc:"Ĥ",Hfr:"ℌ",Poincareplane:"ℌ",HilbertSpace:"ℋ",Hscr:"ℋ",hamilt:"ℋ",Hopf:"ℍ",quaternions:"ℍ",HorizontalLine:"─",boxh:"─",Hstrok:"Ħ",HumpEqual:"≏",bumpe:"≏",bumpeq:"≏",IEcy:"Е",IJlig:"IJ",IOcy:"Ё",Iacute:"Í",Icirc:"Î",Icy:"И",Idot:"İ",Ifr:"ℑ",Im:"ℑ",image:"ℑ",imagpart:"ℑ",Igrave:"Ì",Imacr:"Ī",ImaginaryI:"ⅈ",ii:"ⅈ",Int:"∬",Integral:"∫",int:"∫",Intersection:"⋂",bigcap:"⋂",xcap:"⋂",InvisibleComma:"",ic:"",InvisibleTimes:"",it:"",Iogon:"Į",Iopf:"𝕀",Iota:"Ι",Iscr:"ℐ",imagline:"ℐ",Itilde:"Ĩ",Iukcy:"І",Iuml:"Ï",Jcirc:"Ĵ",Jcy:"Й",Jfr:"𝔍",Jopf:"𝕁",Jscr:"𝒥",Jsercy:"Ј",Jukcy:"Є",KHcy:"Х",KJcy:"Ќ",Kappa:"Κ",Kcedil:"Ķ",Kcy:"К",Kfr:"𝔎",Kopf:"𝕂",Kscr:"𝒦",LJcy:"Љ",LT:"<",lt:"<",Lacute:"Ĺ",Lambda:"Λ",Lang:"⟪",Laplacetrf:"ℒ",Lscr:"ℒ",lagran:"ℒ",Larr:"↞",twoheadleftarrow:"↞",Lcaron:"Ľ",Lcedil:"Ļ",Lcy:"Л",LeftAngleBracket:"⟨",lang:"⟨",langle:"⟨",LeftArrow:"←",ShortLeftArrow:"←",larr:"←",leftarrow:"←",slarr:"←",LeftArrowBar:"⇤",larrb:"⇤",LeftArrowRightArrow:"⇆",leftrightarrows:"⇆",lrarr:"⇆",LeftCeiling:"⌈",lceil:"⌈",LeftDoubleBracket:"⟦",lobrk:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",dharl:"⇃",downharpoonleft:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",lfloor:"⌊",LeftRightArrow:"↔",harr:"↔",leftrightarrow:"↔",LeftRightVector:"⥎",LeftTee:"⊣",dashv:"⊣",LeftTeeArrow:"↤",mapstoleft:"↤",LeftTeeVector:"⥚",LeftTriangle:"⊲",vartriangleleft:"⊲",vltri:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",ltrie:"⊴",trianglelefteq:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",uharl:"↿",upharpoonleft:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",leftharpoonup:"↼",lharu:"↼",LeftVectorBar:"⥒",LessEqualGreater:"⋚",leg:"⋚",lesseqgtr:"⋚",LessFullEqual:"≦",lE:"≦",leqq:"≦",LessGreater:"≶",lessgtr:"≶",lg:"≶",LessLess:"⪡",LessSlantEqual:"⩽",leqslant:"⩽",les:"⩽",LessTilde:"≲",lesssim:"≲",lsim:"≲",Lfr:"𝔏",Ll:"⋘",Lleftarrow:"⇚",lAarr:"⇚",Lmidot:"Ŀ",LongLeftArrow:"⟵",longleftarrow:"⟵",xlarr:"⟵",LongLeftRightArrow:"⟷",longleftrightarrow:"⟷",xharr:"⟷",LongRightArrow:"⟶",longrightarrow:"⟶",xrarr:"⟶",Lopf:"𝕃",LowerLeftArrow:"↙",swarr:"↙",swarrow:"↙",LowerRightArrow:"↘",searr:"↘",searrow:"↘",Lsh:"↰",lsh:"↰",Lstrok:"Ł",Lt:"≪",NestedLessLess:"≪",ll:"≪",Map:"⤅",Mcy:"М",MediumSpace:" ",Mellintrf:"ℳ",Mscr:"ℳ",phmmat:"ℳ",Mfr:"𝔐",MinusPlus:"∓",mnplus:"∓",mp:"∓",Mopf:"𝕄",Mu:"Μ",NJcy:"Њ",Nacute:"Ń",Ncaron:"Ň",Ncedil:"Ņ",Ncy:"Н",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",ZeroWidthSpace:"",NewLine:`
|
|
95
|
-
`,Nfr:"𝔑",NoBreak:"",NonBreakingSpace:" ",nbsp:" ",Nopf:"ℕ",naturals:"ℕ",Not:"⫬",NotCongruent:"≢",nequiv:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",npar:"∦",nparallel:"∦",nshortparallel:"∦",nspar:"∦",NotElement:"∉",notin:"∉",notinva:"∉",NotEqual:"≠",ne:"≠",NotEqualTilde:"≂̸",nesim:"≂̸",NotExists:"∄",nexist:"∄",nexists:"∄",NotGreater:"≯",ngt:"≯",ngtr:"≯",NotGreaterEqual:"≱",nge:"≱",ngeq:"≱",NotGreaterFullEqual:"≧̸",ngE:"≧̸",ngeqq:"≧̸",NotGreaterGreater:"≫̸",nGtv:"≫̸",NotGreaterLess:"≹",ntgl:"≹",NotGreaterSlantEqual:"⩾̸",ngeqslant:"⩾̸",nges:"⩾̸",NotGreaterTilde:"≵",ngsim:"≵",NotHumpDownHump:"≎̸",nbump:"≎̸",NotHumpEqual:"≏̸",nbumpe:"≏̸",NotLeftTriangle:"⋪",nltri:"⋪",ntriangleleft:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",nltrie:"⋬",ntrianglelefteq:"⋬",NotLess:"≮",nless:"≮",nlt:"≮",NotLessEqual:"≰",nle:"≰",nleq:"≰",NotLessGreater:"≸",ntlg:"≸",NotLessLess:"≪̸",nLtv:"≪̸",NotLessSlantEqual:"⩽̸",nleqslant:"⩽̸",nles:"⩽̸",NotLessTilde:"≴",nlsim:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",NotPrecedes:"⊀",npr:"⊀",nprec:"⊀",NotPrecedesEqual:"⪯̸",npre:"⪯̸",npreceq:"⪯̸",NotPrecedesSlantEqual:"⋠",nprcue:"⋠",NotReverseElement:"∌",notni:"∌",notniva:"∌",NotRightTriangle:"⋫",nrtri:"⋫",ntriangleright:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",nrtrie:"⋭",ntrianglerighteq:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",nsqsube:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",nsqsupe:"⋣",NotSubset:"⊂⃒",nsubset:"⊂⃒",vnsub:"⊂⃒",NotSubsetEqual:"⊈",nsube:"⊈",nsubseteq:"⊈",NotSucceeds:"⊁",nsc:"⊁",nsucc:"⊁",NotSucceedsEqual:"⪰̸",nsce:"⪰̸",nsucceq:"⪰̸",NotSucceedsSlantEqual:"⋡",nsccue:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",nsupset:"⊃⃒",vnsup:"⊃⃒",NotSupersetEqual:"⊉",nsupe:"⊉",nsupseteq:"⊉",NotTilde:"≁",nsim:"≁",NotTildeEqual:"≄",nsime:"≄",nsimeq:"≄",NotTildeFullEqual:"≇",ncong:"≇",NotTildeTilde:"≉",nap:"≉",napprox:"≉",NotVerticalBar:"∤",nmid:"∤",nshortmid:"∤",nsmid:"∤",Nscr:"𝒩",Ntilde:"Ñ",Nu:"Ν",OElig:"Œ",Oacute:"Ó",Ocirc:"Ô",Ocy:"О",Odblac:"Ő",Ofr:"𝔒",Ograve:"Ò",Omacr:"Ō",Omega:"Ω",ohm:"Ω",Omicron:"Ο",Oopf:"𝕆",OpenCurlyDoubleQuote:"“",ldquo:"“",OpenCurlyQuote:"‘",lsquo:"‘",Or:"⩔",Oscr:"𝒪",Oslash:"Ø",Otilde:"Õ",Otimes:"⨷",Ouml:"Ö",OverBar:"‾",oline:"‾",OverBrace:"⏞",OverBracket:"⎴",tbrk:"⎴",OverParenthesis:"⏜",PartialD:"∂",part:"∂",Pcy:"П",Pfr:"𝔓",Phi:"Φ",Pi:"Π",PlusMinus:"±",plusmn:"±",pm:"±",Popf:"ℙ",primes:"ℙ",Pr:"⪻",Precedes:"≺",pr:"≺",prec:"≺",PrecedesEqual:"⪯",pre:"⪯",preceq:"⪯",PrecedesSlantEqual:"≼",prcue:"≼",preccurlyeq:"≼",PrecedesTilde:"≾",precsim:"≾",prsim:"≾",Prime:"″",Product:"∏",prod:"∏",Proportional:"∝",prop:"∝",propto:"∝",varpropto:"∝",vprop:"∝",Pscr:"𝒫",Psi:"Ψ",QUOT:'"',quot:'"',Qfr:"𝔔",Qopf:"ℚ",rationals:"ℚ",Qscr:"𝒬",RBarr:"⤐",drbkarow:"⤐",REG:"®",circledR:"®",reg:"®",Racute:"Ŕ",Rang:"⟫",Rarr:"↠",twoheadrightarrow:"↠",Rarrtl:"⤖",Rcaron:"Ř",Rcedil:"Ŗ",Rcy:"Р",Re:"ℜ",Rfr:"ℜ",real:"ℜ",realpart:"ℜ",ReverseElement:"∋",SuchThat:"∋",ni:"∋",niv:"∋",ReverseEquilibrium:"⇋",leftrightharpoons:"⇋",lrhar:"⇋",ReverseUpEquilibrium:"⥯",duhar:"⥯",Rho:"Ρ",RightAngleBracket:"⟩",rang:"⟩",rangle:"⟩",RightArrow:"→",ShortRightArrow:"→",rarr:"→",rightarrow:"→",srarr:"→",RightArrowBar:"⇥",rarrb:"⇥",RightArrowLeftArrow:"⇄",rightleftarrows:"⇄",rlarr:"⇄",RightCeiling:"⌉",rceil:"⌉",RightDoubleBracket:"⟧",robrk:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",dharr:"⇂",downharpoonright:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rfloor:"⌋",RightTee:"⊢",vdash:"⊢",RightTeeArrow:"↦",map:"↦",mapsto:"↦",RightTeeVector:"⥛",RightTriangle:"⊳",vartriangleright:"⊳",vrtri:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",rtrie:"⊵",trianglerighteq:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",uharr:"↾",upharpoonright:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",rharu:"⇀",rightharpoonup:"⇀",RightVectorBar:"⥓",Ropf:"ℝ",reals:"ℝ",RoundImplies:"⥰",Rrightarrow:"⇛",rAarr:"⇛",Rscr:"ℛ",realine:"ℛ",Rsh:"↱",rsh:"↱",RuleDelayed:"⧴",SHCHcy:"Щ",SHcy:"Ш",SOFTcy:"Ь",Sacute:"Ś",Sc:"⪼",Scaron:"Š",Scedil:"Ş",Scirc:"Ŝ",Scy:"С",Sfr:"𝔖",ShortUpArrow:"↑",UpArrow:"↑",uarr:"↑",uparrow:"↑",Sigma:"Σ",SmallCircle:"∘",compfn:"∘",Sopf:"𝕊",Sqrt:"√",radic:"√",Square:"□",squ:"□",square:"□",SquareIntersection:"⊓",sqcap:"⊓",SquareSubset:"⊏",sqsub:"⊏",sqsubset:"⊏",SquareSubsetEqual:"⊑",sqsube:"⊑",sqsubseteq:"⊑",SquareSuperset:"⊐",sqsup:"⊐",sqsupset:"⊐",SquareSupersetEqual:"⊒",sqsupe:"⊒",sqsupseteq:"⊒",SquareUnion:"⊔",sqcup:"⊔",Sscr:"𝒮",Star:"⋆",sstarf:"⋆",Sub:"⋐",Subset:"⋐",SubsetEqual:"⊆",sube:"⊆",subseteq:"⊆",Succeeds:"≻",sc:"≻",succ:"≻",SucceedsEqual:"⪰",sce:"⪰",succeq:"⪰",SucceedsSlantEqual:"≽",sccue:"≽",succcurlyeq:"≽",SucceedsTilde:"≿",scsim:"≿",succsim:"≿",Sum:"∑",sum:"∑",Sup:"⋑",Supset:"⋑",Superset:"⊃",sup:"⊃",supset:"⊃",SupersetEqual:"⊇",supe:"⊇",supseteq:"⊇",THORN:"Þ",TRADE:"™",trade:"™",TSHcy:"Ћ",TScy:"Ц",Tab:" ",Tau:"Τ",Tcaron:"Ť",Tcedil:"Ţ",Tcy:"Т",Tfr:"𝔗",Therefore:"∴",there4:"∴",therefore:"∴",Theta:"Θ",ThickSpace:" ",ThinSpace:" ",thinsp:" ",Tilde:"∼",sim:"∼",thicksim:"∼",thksim:"∼",TildeEqual:"≃",sime:"≃",simeq:"≃",TildeFullEqual:"≅",cong:"≅",TildeTilde:"≈",ap:"≈",approx:"≈",asymp:"≈",thickapprox:"≈",thkap:"≈",Topf:"𝕋",TripleDot:"⃛",tdot:"⃛",Tscr:"𝒯",Tstrok:"Ŧ",Uacute:"Ú",Uarr:"↟",Uarrocir:"⥉",Ubrcy:"Ў",Ubreve:"Ŭ",Ucirc:"Û",Ucy:"У",Udblac:"Ű",Ufr:"𝔘",Ugrave:"Ù",Umacr:"Ū",UnderBar:"_",lowbar:"_",UnderBrace:"⏟",UnderBracket:"⎵",bbrk:"⎵",UnderParenthesis:"⏝",Union:"⋃",bigcup:"⋃",xcup:"⋃",UnionPlus:"⊎",uplus:"⊎",Uogon:"Ų",Uopf:"𝕌",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",udarr:"⇅",UpDownArrow:"↕",updownarrow:"↕",varr:"↕",UpEquilibrium:"⥮",udhar:"⥮",UpTee:"⊥",bot:"⊥",bottom:"⊥",perp:"⊥",UpTeeArrow:"↥",mapstoup:"↥",UpperLeftArrow:"↖",nwarr:"↖",nwarrow:"↖",UpperRightArrow:"↗",nearr:"↗",nearrow:"↗",Upsi:"ϒ",upsih:"ϒ",Upsilon:"Υ",Uring:"Ů",Uscr:"𝒰",Utilde:"Ũ",Uuml:"Ü",VDash:"⊫",Vbar:"⫫",Vcy:"В",Vdash:"⊩",Vdashl:"⫦",Vee:"⋁",bigvee:"⋁",xvee:"⋁",Verbar:"‖",Vert:"‖",VerticalBar:"∣",mid:"∣",shortmid:"∣",smid:"∣",VerticalLine:"|",verbar:"|",vert:"|",VerticalSeparator:"❘",VerticalTilde:"≀",wr:"≀",wreath:"≀",VeryThinSpace:" ",hairsp:" ",Vfr:"𝔙",Vopf:"𝕍",Vscr:"𝒱",Vvdash:"⊪",Wcirc:"Ŵ",Wedge:"⋀",bigwedge:"⋀",xwedge:"⋀",Wfr:"𝔚",Wopf:"𝕎",Wscr:"𝒲",Xfr:"𝔛",Xi:"Ξ",Xopf:"𝕏",Xscr:"𝒳",YAcy:"Я",YIcy:"Ї",YUcy:"Ю",Yacute:"Ý",Ycirc:"Ŷ",Ycy:"Ы",Yfr:"𝔜",Yopf:"𝕐",Yscr:"𝒴",Yuml:"Ÿ",ZHcy:"Ж",Zacute:"Ź",Zcaron:"Ž",Zcy:"З",Zdot:"Ż",Zeta:"Ζ",Zfr:"ℨ",zeetrf:"ℨ",Zopf:"ℤ",integers:"ℤ",Zscr:"𝒵",aacute:"á",abreve:"ă",ac:"∾",mstpos:"∾",acE:"∾̳",acd:"∿",acirc:"â",acy:"а",aelig:"æ",afr:"𝔞",agrave:"à",alefsym:"ℵ",aleph:"ℵ",alpha:"α",amacr:"ā",amalg:"⨿",and:"∧",wedge:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",angle:"∠",ange:"⦤",angmsd:"∡",measuredangle:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angzarr:"⍼",aogon:"ą",aopf:"𝕒",apE:"⩰",apacir:"⩯",ape:"≊",approxeq:"≊",apid:"≋",apos:"'",aring:"å",ascr:"𝒶",ast:"*",midast:"*",atilde:"ã",auml:"ä",awint:"⨑",bNot:"⫭",backcong:"≌",bcong:"≌",backepsilon:"϶",bepsi:"϶",backprime:"‵",bprime:"‵",backsim:"∽",bsim:"∽",backsimeq:"⋍",bsime:"⋍",barvee:"⊽",barwed:"⌅",barwedge:"⌅",bbrktbrk:"⎶",bcy:"б",bdquo:"„",ldquor:"„",bemptyv:"⦰",beta:"β",beth:"ℶ",between:"≬",twixt:"≬",bfr:"𝔟",bigcirc:"◯",xcirc:"◯",bigodot:"⨀",xodot:"⨀",bigoplus:"⨁",xoplus:"⨁",bigotimes:"⨂",xotime:"⨂",bigsqcup:"⨆",xsqcup:"⨆",bigstar:"★",starf:"★",bigtriangledown:"▽",xdtri:"▽",bigtriangleup:"△",xutri:"△",biguplus:"⨄",xuplus:"⨄",bkarow:"⤍",rbarr:"⤍",blacklozenge:"⧫",lozf:"⧫",blacktriangle:"▴",utrif:"▴",blacktriangledown:"▾",dtrif:"▾",blacktriangleleft:"◂",ltrif:"◂",blacktriangleright:"▸",rtrif:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bnot:"⌐",bopf:"𝕓",bowtie:"⋈",boxDL:"╗",boxDR:"╔",boxDl:"╖",boxDr:"╓",boxH:"═",boxHD:"╦",boxHU:"╩",boxHd:"╤",boxHu:"╧",boxUL:"╝",boxUR:"╚",boxUl:"╜",boxUr:"╙",boxV:"║",boxVH:"╬",boxVL:"╣",boxVR:"╠",boxVh:"╫",boxVl:"╢",boxVr:"╟",boxbox:"⧉",boxdL:"╕",boxdR:"╒",boxdl:"┐",boxdr:"┌",boxhD:"╥",boxhU:"╨",boxhd:"┬",boxhu:"┴",boxminus:"⊟",minusb:"⊟",boxplus:"⊞",plusb:"⊞",boxtimes:"⊠",timesb:"⊠",boxuL:"╛",boxuR:"╘",boxul:"┘",boxur:"└",boxv:"│",boxvH:"╪",boxvL:"╡",boxvR:"╞",boxvh:"┼",boxvl:"┤",boxvr:"├",brvbar:"¦",bscr:"𝒷",bsemi:"⁏",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bumpE:"⪮",cacute:"ć",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",caps:"∩︀",caret:"⁁",ccaps:"⩍",ccaron:"č",ccedil:"ç",ccirc:"ĉ",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",cemptyv:"⦲",cent:"¢",cfr:"𝔠",chcy:"ч",check:"✓",checkmark:"✓",chi:"χ",cir:"○",cirE:"⧃",circ:"ˆ",circeq:"≗",cire:"≗",circlearrowleft:"↺",olarr:"↺",circlearrowright:"↻",orarr:"↻",circledS:"Ⓢ",oS:"Ⓢ",circledast:"⊛",oast:"⊛",circledcirc:"⊚",ocir:"⊚",circleddash:"⊝",odash:"⊝",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",clubs:"♣",clubsuit:"♣",colon:":",comma:",",commat:"@",comp:"∁",complement:"∁",congdot:"⩭",copf:"𝕔",copysr:"℗",crarr:"↵",cross:"✗",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",curlyeqprec:"⋞",cuesc:"⋟",curlyeqsucc:"⋟",cularr:"↶",curvearrowleft:"↶",cularrp:"⤽",cup:"∪",cupbrcap:"⩈",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curvearrowright:"↷",curarrm:"⤼",curlyvee:"⋎",cuvee:"⋎",curlywedge:"⋏",cuwed:"⋏",curren:"¤",cwint:"∱",cylcty:"⌭",dHar:"⥥",dagger:"†",daleth:"ℸ",dash:"‐",hyphen:"‐",dbkarow:"⤏",rBarr:"⤏",dcaron:"ď",dcy:"д",ddarr:"⇊",downdownarrows:"⇊",ddotseq:"⩷",eDDot:"⩷",deg:"°",delta:"δ",demptyv:"⦱",dfisht:"⥿",dfr:"𝔡",diamondsuit:"♦",diams:"♦",digamma:"ϝ",gammad:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",dlcorn:"⌞",llcorner:"⌞",dlcrop:"⌍",dollar:"$",dopf:"𝕕",doteqdot:"≑",eDot:"≑",dotminus:"∸",minusd:"∸",dotplus:"∔",plusdo:"∔",dotsquare:"⊡",sdotb:"⊡",drcorn:"⌟",lrcorner:"⌟",drcrop:"⌌",dscr:"𝒹",dscy:"ѕ",dsol:"⧶",dstrok:"đ",dtdot:"⋱",dtri:"▿",triangledown:"▿",dwangle:"⦦",dzcy:"џ",dzigrarr:"⟿",eacute:"é",easter:"⩮",ecaron:"ě",ecir:"≖",eqcirc:"≖",ecirc:"ê",ecolon:"≕",eqcolon:"≕",ecy:"э",edot:"ė",efDot:"≒",fallingdotseq:"≒",efr:"𝔢",eg:"⪚",egrave:"è",egs:"⪖",eqslantgtr:"⪖",egsdot:"⪘",el:"⪙",elinters:"⏧",ell:"ℓ",els:"⪕",eqslantless:"⪕",elsdot:"⪗",emacr:"ē",empty:"∅",emptyset:"∅",emptyv:"∅",varnothing:"∅",emsp13:" ",emsp14:" ",emsp:" ",eng:"ŋ",ensp:" ",eogon:"ę",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",epsiv:"ϵ",straightepsilon:"ϵ",varepsilon:"ϵ",equals:"=",equest:"≟",questeq:"≟",equivDD:"⩸",eqvparsl:"⧥",erDot:"≓",risingdotseq:"≓",erarr:"⥱",escr:"ℯ",eta:"η",eth:"ð",euml:"ë",euro:"€",excl:"!",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",ffr:"𝔣",filig:"fi",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",fopf:"𝕗",fork:"⋔",pitchfork:"⋔",forkv:"⫙",fpartint:"⨍",frac12:"½",half:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",sfrown:"⌢",fscr:"𝒻",gEl:"⪌",gtreqqless:"⪌",gacute:"ǵ",gamma:"γ",gap:"⪆",gtrapprox:"⪆",gbreve:"ğ",gcirc:"ĝ",gcy:"г",gdot:"ġ",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"𝔤",gimel:"ℷ",gjcy:"ѓ",glE:"⪒",gla:"⪥",glj:"⪤",gnE:"≩",gneqq:"≩",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gneq:"⪈",gnsim:"⋧",gopf:"𝕘",gscr:"ℊ",gsime:"⪎",gsiml:"⪐",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtrdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrarr:"⥸",gvertneqq:"≩︀",gvnE:"≩︀",hardcy:"ъ",harrcir:"⥈",harrw:"↭",leftrightsquigarrow:"↭",hbar:"ℏ",hslash:"ℏ",planck:"ℏ",plankv:"ℏ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",mldr:"…",hercon:"⊹",hfr:"𝔥",hksearow:"⤥",searhk:"⤥",hkswarow:"⤦",swarhk:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",larrhk:"↩",hookrightarrow:"↪",rarrhk:"↪",hopf:"𝕙",horbar:"―",hscr:"𝒽",hstrok:"ħ",hybull:"⁃",iacute:"í",icirc:"î",icy:"и",iecy:"е",iexcl:"¡",ifr:"𝔦",igrave:"ì",iiiint:"⨌",qint:"⨌",iiint:"∭",tint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ij",imacr:"ī",imath:"ı",inodot:"ı",imof:"⊷",imped:"Ƶ",incare:"℅",infin:"∞",infintie:"⧝",intcal:"⊺",intercal:"⊺",intlarhk:"⨗",intprod:"⨼",iprod:"⨼",iocy:"ё",iogon:"į",iopf:"𝕚",iota:"ι",iquest:"¿",iscr:"𝒾",isinE:"⋹",isindot:"⋵",isins:"⋴",isinsv:"⋳",itilde:"ĩ",iukcy:"і",iuml:"ï",jcirc:"ĵ",jcy:"й",jfr:"𝔧",jmath:"ȷ",jopf:"𝕛",jscr:"𝒿",jsercy:"ј",jukcy:"є",kappa:"κ",kappav:"ϰ",varkappa:"ϰ",kcedil:"ķ",kcy:"к",kfr:"𝔨",kgreen:"ĸ",khcy:"х",kjcy:"ќ",kopf:"𝕜",kscr:"𝓀",lAtail:"⤛",lBarr:"⤎",lEg:"⪋",lesseqqgtr:"⪋",lHar:"⥢",lacute:"ĺ",laemptyv:"⦴",lambda:"λ",langd:"⦑",lap:"⪅",lessapprox:"⪅",laquo:"«",larrbfs:"⤟",larrfs:"⤝",larrlp:"↫",looparrowleft:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",leftarrowtail:"↢",lat:"⪫",latail:"⤙",late:"⪭",lates:"⪭︀",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lcub:"{",lbrack:"[",lsqb:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",lcedil:"ļ",lcy:"л",ldca:"⤶",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",leq:"≤",leftleftarrows:"⇇",llarr:"⇇",leftthreetimes:"⋋",lthree:"⋋",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessdot:"⋖",ltdot:"⋖",lfisht:"⥼",lfr:"𝔩",lgE:"⪑",lharul:"⥪",lhblk:"▄",ljcy:"љ",llhard:"⥫",lltri:"◺",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnE:"≨",lneqq:"≨",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lneq:"⪇",lnsim:"⋦",loang:"⟬",loarr:"⇽",longmapsto:"⟼",xmap:"⟼",looparrowright:"↬",rarrlp:"↬",lopar:"⦅",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",loz:"◊",lozenge:"◊",lpar:"(",lparlt:"⦓",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",lsime:"⪍",lsimg:"⪏",lsquor:"‚",sbquo:"‚",lstrok:"ł",ltcc:"⪦",ltcir:"⩹",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltrPar:"⦖",ltri:"◃",triangleleft:"◃",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",mDDot:"∺",macr:"¯",strns:"¯",male:"♂",malt:"✠",maltese:"✠",marker:"▮",mcomma:"⨩",mcy:"м",mdash:"—",mfr:"𝔪",mho:"℧",micro:"µ",midcir:"⫰",minus:"−",minusdu:"⨪",mlcp:"⫛",models:"⊧",mopf:"𝕞",mscr:"𝓂",mu:"μ",multimap:"⊸",mumap:"⊸",nGg:"⋙̸",nGt:"≫⃒",nLeftarrow:"⇍",nlArr:"⇍",nLeftrightarrow:"⇎",nhArr:"⇎",nLl:"⋘̸",nLt:"≪⃒",nRightarrow:"⇏",nrArr:"⇏",nVDash:"⊯",nVdash:"⊮",nacute:"ń",nang:"∠⃒",napE:"⩰̸",napid:"≋̸",napos:"ʼn",natur:"♮",natural:"♮",ncap:"⩃",ncaron:"ň",ncedil:"ņ",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",ndash:"–",neArr:"⇗",nearhk:"⤤",nedot:"≐̸",nesear:"⤨",toea:"⤨",nfr:"𝔫",nharr:"↮",nleftrightarrow:"↮",nhpar:"⫲",nis:"⋼",nisd:"⋺",njcy:"њ",nlE:"≦̸",nleqq:"≦̸",nlarr:"↚",nleftarrow:"↚",nldr:"‥",nopf:"𝕟",not:"¬",notinE:"⋹̸",notindot:"⋵̸",notinvb:"⋷",notinvc:"⋶",notnivb:"⋾",notnivc:"⋽",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",nrarr:"↛",nrightarrow:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nscr:"𝓃",nsub:"⊄",nsubE:"⫅̸",nsubseteqq:"⫅̸",nsup:"⊅",nsupE:"⫆̸",nsupseteqq:"⫆̸",ntilde:"ñ",nu:"ν",num:"#",numero:"№",numsp:" ",nvDash:"⊭",nvHarr:"⤄",nvap:"≍⃒",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwArr:"⇖",nwarhk:"⤣",nwnear:"⤧",oacute:"ó",ocirc:"ô",ocy:"о",odblac:"ő",odiv:"⨸",odsold:"⦼",oelig:"œ",ofcir:"⦿",ofr:"𝔬",ogon:"˛",ograve:"ò",ogt:"⧁",ohbar:"⦵",olcir:"⦾",olcross:"⦻",olt:"⧀",omacr:"ō",omega:"ω",omicron:"ο",omid:"⦶",oopf:"𝕠",opar:"⦷",operp:"⦹",or:"∨",vee:"∨",ord:"⩝",order:"ℴ",orderof:"ℴ",oscr:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oslash:"ø",osol:"⊘",otilde:"õ",otimesas:"⨶",ouml:"ö",ovbar:"⌽",para:"¶",parsim:"⫳",parsl:"⫽",pcy:"п",percnt:"%",period:".",permil:"‰",pertenk:"‱",pfr:"𝔭",phi:"φ",phiv:"ϕ",straightphi:"ϕ",varphi:"ϕ",phone:"☎",pi:"π",piv:"ϖ",varpi:"ϖ",planckh:"ℎ",plus:"+",plusacir:"⨣",pluscir:"⨢",plusdu:"⨥",pluse:"⩲",plussim:"⨦",plustwo:"⨧",pointint:"⨕",popf:"𝕡",pound:"£",prE:"⪳",prap:"⪷",precapprox:"⪷",precnapprox:"⪹",prnap:"⪹",precneqq:"⪵",prnE:"⪵",precnsim:"⋨",prnsim:"⋨",prime:"′",profalar:"⌮",profline:"⌒",profsurf:"⌓",prurel:"⊰",pscr:"𝓅",psi:"ψ",puncsp:" ",qfr:"𝔮",qopf:"𝕢",qprime:"⁗",qscr:"𝓆",quatint:"⨖",quest:"?",rAtail:"⤜",rHar:"⥤",race:"∽̱",racute:"ŕ",raemptyv:"⦳",rangd:"⦒",range:"⦥",raquo:"»",rarrap:"⥵",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",rightarrowtail:"↣",rarrw:"↝",rightsquigarrow:"↝",ratail:"⤚",ratio:"∶",rbbrk:"❳",rbrace:"}",rcub:"}",rbrack:"]",rsqb:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",rcedil:"ŗ",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdsh:"↳",rect:"▭",rfisht:"⥽",rfr:"𝔯",rharul:"⥬",rho:"ρ",rhov:"ϱ",varrho:"ϱ",rightrightarrows:"⇉",rrarr:"⇉",rightthreetimes:"⋌",rthree:"⋌",ring:"˚",rlm:"",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",ropar:"⦆",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",rpar:")",rpargt:"⦔",rppolint:"⨒",rsaquo:"›",rscr:"𝓇",rtimes:"⋊",rtri:"▹",triangleright:"▹",rtriltri:"⧎",ruluhar:"⥨",rx:"℞",sacute:"ś",scE:"⪴",scap:"⪸",succapprox:"⪸",scaron:"š",scedil:"ş",scirc:"ŝ",scnE:"⪶",succneqq:"⪶",scnap:"⪺",succnapprox:"⪺",scnsim:"⋩",succnsim:"⋩",scpolint:"⨓",scy:"с",sdot:"⋅",sdote:"⩦",seArr:"⇘",sect:"§",semi:";",seswar:"⤩",tosa:"⤩",sext:"✶",sfr:"𝔰",sharp:"♯",shchcy:"щ",shcy:"ш",shy:"",sigma:"σ",sigmaf:"ς",sigmav:"ς",varsigma:"ς",simdot:"⩪",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",smashp:"⨳",smeparsl:"⧤",smile:"⌣",ssmile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"𝕤",spades:"♠",spadesuit:"♠",sqcaps:"⊓︀",sqcups:"⊔︀",sscr:"𝓈",star:"☆",sub:"⊂",subset:"⊂",subE:"⫅",subseteqq:"⫅",subdot:"⪽",subedot:"⫃",submult:"⫁",subnE:"⫋",subsetneqq:"⫋",subne:"⊊",subsetneq:"⊊",subplus:"⪿",subrarr:"⥹",subsim:"⫇",subsub:"⫕",subsup:"⫓",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",supE:"⫆",supseteqq:"⫆",supdot:"⪾",supdsub:"⫘",supedot:"⫄",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supsetneqq:"⫌",supne:"⊋",supsetneq:"⊋",supplus:"⫀",supsim:"⫈",supsub:"⫔",supsup:"⫖",swArr:"⇙",swnwar:"⤪",szlig:"ß",target:"⌖",tau:"τ",tcaron:"ť",tcedil:"ţ",tcy:"т",telrec:"⌕",tfr:"𝔱",theta:"θ",thetasym:"ϑ",thetav:"ϑ",vartheta:"ϑ",thorn:"þ",times:"×",timesbar:"⨱",timesd:"⨰",topbot:"⌶",topcir:"⫱",topf:"𝕥",topfork:"⫚",tprime:"‴",triangle:"▵",utri:"▵",triangleq:"≜",trie:"≜",tridot:"◬",triminus:"⨺",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"𝓉",tscy:"ц",tshcy:"ћ",tstrok:"ŧ",uHar:"⥣",uacute:"ú",ubrcy:"ў",ubreve:"ŭ",ucirc:"û",ucy:"у",udblac:"ű",ufisht:"⥾",ufr:"𝔲",ugrave:"ù",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",uogon:"ų",uopf:"𝕦",upsi:"υ",upsilon:"υ",upuparrows:"⇈",uuarr:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",urtri:"◹",uscr:"𝓊",utdot:"⋰",utilde:"ũ",uuml:"ü",uwangle:"⦧",vBar:"⫨",vBarv:"⫩",vangrt:"⦜",varsubsetneq:"⊊︀",vsubne:"⊊︀",varsubsetneqq:"⫋︀",vsubnE:"⫋︀",varsupsetneq:"⊋︀",vsupne:"⊋︀",varsupsetneqq:"⫌︀",vsupnE:"⫌︀",vcy:"в",veebar:"⊻",veeeq:"≚",vellip:"⋮",vfr:"𝔳",vopf:"𝕧",vscr:"𝓋",vzigzag:"⦚",wcirc:"ŵ",wedbar:"⩟",wedgeq:"≙",weierp:"℘",wp:"℘",wfr:"𝔴",wopf:"𝕨",wscr:"𝓌",xfr:"𝔵",xi:"ξ",xnis:"⋻",xopf:"𝕩",xscr:"𝓍",yacute:"ý",yacy:"я",ycirc:"ŷ",ycy:"ы",yen:"¥",yfr:"𝔶",yicy:"ї",yopf:"𝕪",yscr:"𝓎",yucy:"ю",yuml:"ÿ",zacute:"ź",zcaron:"ž",zcy:"з",zdot:"ż",zeta:"ζ",zfr:"𝔷",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",zscr:"𝓏",zwj:"",zwnj:""},k="";C.ngsp=k;var B=[/@/,/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//];function z(o,d){if(d!=null&&!(Array.isArray(d)&&d.length==2))throw new Error(`Expected '${o}' to be an array, [start, end].`);if(d!=null){let y=d[0],w=d[1];B.forEach(A=>{if(A.test(y)||A.test(w))throw new Error(`['${y}', '${w}'] contains unusable interpolation symbol.`)})}}var X=class wy{static fromArray(d){return d?(z("interpolation",d),new wy(d[0],d[1])):W}constructor(d,y){this.start=d,this.end=y}},W=new X("{{","}}"),V=class extends Er{constructor(o,d,y){super(y,o),this.tokenType=d}},oe=class{constructor(o,d,y){this.tokens=o,this.errors=d,this.nonNormalizedIcuExpressions=y}};function ae(o,d,y,w={}){let A=new je(new Ni(o,d),y,w);return A.tokenize(),new oe(Va(A.tokens),A.errors,A.nonNormalizedIcuExpressions)}var pe=/\r\n?/g;function me(o){return`Unexpected character "${o===0?"EOF":String.fromCharCode(o)}"`}function Ee(o){return`Unknown entity "${o}" - use the "&#<decimal>;" or "&#x<hex>;" syntax`}function _e(o,d){return`Unable to parse entity "${d}" - ${o} character reference entities must end with ";"`}var Je;(function(o){o.HEX="hexadecimal",o.DEC="decimal"})(Je||(Je={}));var ct=class{constructor(o){this.error=o}},je=class{constructor(o,d,y){this._getTagContentType=d,this._currentTokenStart=null,this._currentTokenType=null,this._expansionCaseStack=[],this._inInterpolation=!1,this._fullNameStack=[],this.tokens=[],this.errors=[],this.nonNormalizedIcuExpressions=[],this._tokenizeIcu=y.tokenizeExpansionForms||!1,this._interpolationConfig=y.interpolationConfig||W,this._leadingTriviaCodePoints=y.leadingTriviaChars&&y.leadingTriviaChars.map(A=>A.codePointAt(0)||0),this._canSelfClose=y.canSelfClose||!1,this._allowHtmComponentClosingTags=y.allowHtmComponentClosingTags||!1;let w=y.range||{endPos:o.content.length,startPos:0,startLine:0,startCol:0};this._cursor=y.escapedString?new Gn(o,w):new En(o,w),this._preserveLineEndings=y.preserveLineEndings||!1,this._i18nNormalizeLineEndingsInICUs=y.i18nNormalizeLineEndingsInICUs||!1,this._tokenizeBlocks=y.tokenizeBlocks??!0,this._tokenizeLet=y.tokenizeLet??!0;try{this._cursor.init()}catch(A){this.handleError(A)}}_processCarriageReturns(o){return this._preserveLineEndings?o:o.replace(pe,`
|
|
96
|
-
`)}tokenize(){for(;this._cursor.peek()!==0;){let o=this._cursor.clone();try{if(this._attemptCharCode(60))if(this._attemptCharCode(33))this._attemptStr("[CDATA[")?this._consumeCdata(o):this._attemptStr("--")?this._consumeComment(o):this._attemptStrCaseInsensitive("doctype")?this._consumeDocType(o):this._consumeBogusComment(o);else if(this._attemptCharCode(47))this._consumeTagClose(o);else{let d=this._cursor.clone();this._attemptCharCode(63)?(this._cursor=d,this._consumeBogusComment(o)):this._consumeTagOpen(o)}else this._tokenizeLet&&this._cursor.peek()===64&&!this._inInterpolation&&this._attemptStr("@let")?this._consumeLetDeclaration(o):this._tokenizeBlocks&&this._attemptCharCode(64)?this._consumeBlockStart(o):this._tokenizeBlocks&&!this._inInterpolation&&!this._isInExpansionCase()&&!this._isInExpansionForm()&&this._attemptCharCode(125)?this._consumeBlockEnd(o):this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeWithInterpolation(5,8,()=>this._isTextEnd(),()=>this._isTagStart())}catch(d){this.handleError(d)}}this._beginToken(34),this._endToken([])}_getBlockName(){let o=!1,d=this._cursor.clone();return this._attemptCharCodeUntilFn(y=>Kt(y)?!o:ot(y)?(o=!0,!1):!0),this._cursor.getChars(d).trim()}_consumeBlockStart(o){this._beginToken(25,o);let d=this._endToken([this._getBlockName()]);if(this._cursor.peek()===40)if(this._cursor.advance(),this._consumeBlockParameters(),this._attemptCharCodeUntilFn(He),this._attemptCharCode(41))this._attemptCharCodeUntilFn(He);else{d.type=29;return}this._attemptCharCode(123)?(this._beginToken(26),this._endToken([])):d.type=29}_consumeBlockEnd(o){this._beginToken(27,o),this._endToken([])}_consumeBlockParameters(){for(this._attemptCharCodeUntilFn(zt);this._cursor.peek()!==41&&this._cursor.peek()!==0;){this._beginToken(28);let o=this._cursor.clone(),d=null,y=0;for(;this._cursor.peek()!==59&&this._cursor.peek()!==0||d!==null;){let w=this._cursor.peek();if(w===92)this._cursor.advance();else if(w===d)d=null;else if(d===null&&In(w))d=w;else if(w===40&&d===null)y++;else if(w===41&&d===null){if(y===0)break;y>0&&y--}this._cursor.advance()}this._endToken([this._cursor.getChars(o)]),this._attemptCharCodeUntilFn(zt)}}_consumeLetDeclaration(o){if(this._beginToken(30,o),Kt(this._cursor.peek()))this._attemptCharCodeUntilFn(He);else{let y=this._endToken([this._cursor.getChars(o)]);y.type=33;return}let d=this._endToken([this._getLetDeclarationName()]);if(this._attemptCharCodeUntilFn(He),!this._attemptCharCode(61)){d.type=33;return}this._attemptCharCodeUntilFn(y=>He(y)&&!Ir(y)),this._consumeLetDeclarationValue(),this._cursor.peek()===59?(this._beginToken(32),this._endToken([]),this._cursor.advance()):(d.type=33,d.sourceSpan=this._cursor.getSpan(o))}_getLetDeclarationName(){let o=this._cursor.clone(),d=!1;return this._attemptCharCodeUntilFn(y=>Ot(y)||y===36||y===95||d&&Ct(y)?(d=!0,!1):!0),this._cursor.getChars(o).trim()}_consumeLetDeclarationValue(){let o=this._cursor.clone();for(this._beginToken(31,o);this._cursor.peek()!==0;){let d=this._cursor.peek();if(d===59)break;In(d)&&(this._cursor.advance(),this._attemptCharCodeUntilFn(y=>y===92?(this._cursor.advance(),!1):y===d)),this._cursor.advance()}this._endToken([this._cursor.getChars(o)])}_tokenizeExpansionForm(){if(this.isExpansionFormStart())return this._consumeExpansionFormStart(),!0;if(kr(this._cursor.peek())&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;if(this._cursor.peek()===125){if(this._isInExpansionCase())return this._consumeExpansionCaseEnd(),!0;if(this._isInExpansionForm())return this._consumeExpansionFormEnd(),!0}return!1}_beginToken(o,d=this._cursor.clone()){this._currentTokenStart=d,this._currentTokenType=o}_endToken(o,d){if(this._currentTokenStart===null)throw new V("Programming error - attempted to end a token when there was no start to the token",this._currentTokenType,this._cursor.getSpan(d));if(this._currentTokenType===null)throw new V("Programming error - attempted to end a token which has no token type",null,this._cursor.getSpan(this._currentTokenStart));let y={type:this._currentTokenType,parts:o,sourceSpan:(d??this._cursor).getSpan(this._currentTokenStart,this._leadingTriviaCodePoints)};return this.tokens.push(y),this._currentTokenStart=null,this._currentTokenType=null,y}_createError(o,d){this._isInExpansionForm()&&(o+=` (Do you have an unescaped "{" in your template? Use "{{ '{' }}") to escape it.)`);let y=new V(o,this._currentTokenType,d);return this._currentTokenStart=null,this._currentTokenType=null,new ct(y)}handleError(o){if(o instanceof Vn&&(o=this._createError(o.msg,this._cursor.getSpan(o.cursor))),o instanceof ct)this.errors.push(o.error);else throw o}_attemptCharCode(o){return this._cursor.peek()===o?(this._cursor.advance(),!0):!1}_attemptCharCodeCaseInsensitive(o){return Ft(this._cursor.peek(),o)?(this._cursor.advance(),!0):!1}_requireCharCode(o){let d=this._cursor.clone();if(!this._attemptCharCode(o))throw this._createError(me(this._cursor.peek()),this._cursor.getSpan(d))}_attemptStr(o){let d=o.length;if(this._cursor.charsLeft()<d)return!1;let y=this._cursor.clone();for(let w=0;w<d;w++)if(!this._attemptCharCode(o.charCodeAt(w)))return this._cursor=y,!1;return!0}_attemptStrCaseInsensitive(o){for(let d=0;d<o.length;d++)if(!this._attemptCharCodeCaseInsensitive(o.charCodeAt(d)))return!1;return!0}_requireStr(o){let d=this._cursor.clone();if(!this._attemptStr(o))throw this._createError(me(this._cursor.peek()),this._cursor.getSpan(d))}_requireStrCaseInsensitive(o){let d=this._cursor.clone();if(!this._attemptStrCaseInsensitive(o))throw this._createError(me(this._cursor.peek()),this._cursor.getSpan(d))}_attemptCharCodeUntilFn(o){for(;!o(this._cursor.peek());)this._cursor.advance()}_requireCharCodeUntilFn(o,d){let y=this._cursor.clone();if(this._attemptCharCodeUntilFn(o),this._cursor.diff(y)<d)throw this._createError(me(this._cursor.peek()),this._cursor.getSpan(y))}_attemptUntilChar(o){for(;this._cursor.peek()!==o;)this._cursor.advance()}_readChar(){let o=String.fromCodePoint(this._cursor.peek());return this._cursor.advance(),o}_consumeEntity(o){this._beginToken(9);let d=this._cursor.clone();if(this._cursor.advance(),this._attemptCharCode(35)){let y=this._attemptCharCode(120)||this._attemptCharCode(88),w=this._cursor.clone();if(this._attemptCharCodeUntilFn(Mt),this._cursor.peek()!=59){this._cursor.advance();let L=y?Je.HEX:Je.DEC;throw this._createError(_e(L,this._cursor.getChars(d)),this._cursor.getSpan())}let A=this._cursor.getChars(w);this._cursor.advance();try{let L=parseInt(A,y?16:10);this._endToken([String.fromCharCode(L),this._cursor.getChars(d)])}catch{throw this._createError(Ee(this._cursor.getChars(d)),this._cursor.getSpan())}}else{let y=this._cursor.clone();if(this._attemptCharCodeUntilFn(Cn),this._cursor.peek()!=59)this._beginToken(o,d),this._cursor=y,this._endToken(["&"]);else{let w=this._cursor.getChars(y);this._cursor.advance();let A=C[w];if(!A)throw this._createError(Ee(w),this._cursor.getSpan(d));this._endToken([A,`&${w};`])}}}_consumeRawText(o,d){this._beginToken(o?6:7);let y=[];for(;;){let w=this._cursor.clone(),A=d();if(this._cursor=w,A)break;o&&this._cursor.peek()===38?(this._endToken([this._processCarriageReturns(y.join(""))]),y.length=0,this._consumeEntity(6),this._beginToken(6)):y.push(this._readChar())}this._endToken([this._processCarriageReturns(y.join(""))])}_consumeComment(o){this._beginToken(10,o),this._endToken([]),this._consumeRawText(!1,()=>this._attemptStr("-->")),this._beginToken(11),this._requireStr("-->"),this._endToken([])}_consumeBogusComment(o){this._beginToken(10,o),this._endToken([]),this._consumeRawText(!1,()=>this._cursor.peek()===62),this._beginToken(11),this._cursor.advance(),this._endToken([])}_consumeCdata(o){this._beginToken(12,o),this._endToken([]),this._consumeRawText(!1,()=>this._attemptStr("]]>")),this._beginToken(13),this._requireStr("]]>"),this._endToken([])}_consumeDocType(o){this._beginToken(18,o),this._endToken([]),this._consumeRawText(!1,()=>this._cursor.peek()===62),this._beginToken(19),this._cursor.advance(),this._endToken([])}_consumePrefixAndName(){let o=this._cursor.clone(),d="";for(;this._cursor.peek()!==58&&!lr(this._cursor.peek());)this._cursor.advance();let y;this._cursor.peek()===58?(d=this._cursor.getChars(o),this._cursor.advance(),y=this._cursor.clone()):y=o,this._requireCharCodeUntilFn(dt,d===""?0:1);let w=this._cursor.getChars(y);return[d,w]}_consumeTagOpen(o){let d,y,w,A=[];try{if(!Ot(this._cursor.peek()))throw this._createError(me(this._cursor.peek()),this._cursor.getSpan(o));for(w=this._consumeTagOpenStart(o),y=w.parts[0],d=w.parts[1],this._attemptCharCodeUntilFn(He);this._cursor.peek()!==47&&this._cursor.peek()!==62&&this._cursor.peek()!==60&&this._cursor.peek()!==0;){let[G,Z]=this._consumeAttributeName();if(this._attemptCharCodeUntilFn(He),this._attemptCharCode(61)){this._attemptCharCodeUntilFn(He);let ue=this._consumeAttributeValue();A.push({prefix:G,name:Z,value:ue})}else A.push({prefix:G,name:Z});this._attemptCharCodeUntilFn(He)}this._consumeTagOpenEnd()}catch(G){if(G instanceof ct){w?w.type=4:(this._beginToken(5,o),this._endToken(["<"]));return}throw G}if(this._canSelfClose&&this.tokens[this.tokens.length-1].type===2)return;let L=this._getTagContentType(d,y,this._fullNameStack.length>0,A);this._handleFullNameStackForTagOpen(y,d),L===mr.RAW_TEXT?this._consumeRawTextWithTagClose(y,d,!1):L===mr.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(y,d,!0)}_consumeRawTextWithTagClose(o,d,y){this._consumeRawText(y,()=>!this._attemptCharCode(60)||!this._attemptCharCode(47)||(this._attemptCharCodeUntilFn(He),!this._attemptStrCaseInsensitive(o?`${o}:${d}`:d))?!1:(this._attemptCharCodeUntilFn(He),this._attemptCharCode(62))),this._beginToken(3),this._requireCharCodeUntilFn(w=>w===62,3),this._cursor.advance(),this._endToken([o,d]),this._handleFullNameStackForTagClose(o,d)}_consumeTagOpenStart(o){this._beginToken(0,o);let d=this._consumePrefixAndName();return this._endToken(d)}_consumeAttributeName(){let o=this._cursor.peek();if(o===39||o===34)throw this._createError(me(o),this._cursor.getSpan());this._beginToken(14);let d=this._consumePrefixAndName();return this._endToken(d),d}_consumeAttributeValue(){let o;if(this._cursor.peek()===39||this._cursor.peek()===34){let d=this._cursor.peek();this._consumeQuote(d);let y=()=>this._cursor.peek()===d;o=this._consumeWithInterpolation(16,17,y,y),this._consumeQuote(d)}else{let d=()=>dt(this._cursor.peek());o=this._consumeWithInterpolation(16,17,d,d)}return o}_consumeQuote(o){this._beginToken(15),this._requireCharCode(o),this._endToken([String.fromCodePoint(o)])}_consumeTagOpenEnd(){let o=this._attemptCharCode(47)?2:1;this._beginToken(o),this._requireCharCode(62),this._endToken([])}_consumeTagClose(o){if(this._beginToken(3,o),this._attemptCharCodeUntilFn(He),this._allowHtmComponentClosingTags&&this._attemptCharCode(47))this._attemptCharCodeUntilFn(He),this._requireCharCode(62),this._endToken([]);else{let[d,y]=this._consumePrefixAndName();this._attemptCharCodeUntilFn(He),this._requireCharCode(62),this._endToken([d,y]),this._handleFullNameStackForTagClose(d,y)}}_consumeExpansionFormStart(){this._beginToken(20),this._requireCharCode(123),this._endToken([]),this._expansionCaseStack.push(20),this._beginToken(7);let o=this._readUntil(44),d=this._processCarriageReturns(o);if(this._i18nNormalizeLineEndingsInICUs)this._endToken([d]);else{let w=this._endToken([o]);d!==o&&this.nonNormalizedIcuExpressions.push(w)}this._requireCharCode(44),this._attemptCharCodeUntilFn(He),this._beginToken(7);let y=this._readUntil(44);this._endToken([y]),this._requireCharCode(44),this._attemptCharCodeUntilFn(He)}_consumeExpansionCaseStart(){this._beginToken(21);let o=this._readUntil(123).trim();this._endToken([o]),this._attemptCharCodeUntilFn(He),this._beginToken(22),this._requireCharCode(123),this._endToken([]),this._attemptCharCodeUntilFn(He),this._expansionCaseStack.push(22)}_consumeExpansionCaseEnd(){this._beginToken(23),this._requireCharCode(125),this._endToken([]),this._attemptCharCodeUntilFn(He),this._expansionCaseStack.pop()}_consumeExpansionFormEnd(){this._beginToken(24),this._requireCharCode(125),this._endToken([]),this._expansionCaseStack.pop()}_consumeWithInterpolation(o,d,y,w){this._beginToken(o);let A=[];for(;!y();){let G=this._cursor.clone();this._interpolationConfig&&this._attemptStr(this._interpolationConfig.start)?(this._endToken([this._processCarriageReturns(A.join(""))],G),A.length=0,this._consumeInterpolation(d,G,w),this._beginToken(o)):this._cursor.peek()===38?(this._endToken([this._processCarriageReturns(A.join(""))]),A.length=0,this._consumeEntity(o),this._beginToken(o)):A.push(this._readChar())}this._inInterpolation=!1;let L=this._processCarriageReturns(A.join(""));return this._endToken([L]),L}_consumeInterpolation(o,d,y){let w=[];this._beginToken(o,d),w.push(this._interpolationConfig.start);let A=this._cursor.clone(),L=null,G=!1;for(;this._cursor.peek()!==0&&(y===null||!y());){let Z=this._cursor.clone();if(this._isTagStart()){this._cursor=Z,w.push(this._getProcessedChars(A,Z)),this._endToken(w);return}if(L===null)if(this._attemptStr(this._interpolationConfig.end)){w.push(this._getProcessedChars(A,Z)),w.push(this._interpolationConfig.end),this._endToken(w);return}else this._attemptStr("//")&&(G=!0);let ue=this._cursor.peek();this._cursor.advance(),ue===92?this._cursor.advance():ue===L?L=null:!G&&L===null&&In(ue)&&(L=ue)}w.push(this._getProcessedChars(A,this._cursor)),this._endToken(w)}_getProcessedChars(o,d){return this._processCarriageReturns(d.getChars(o))}_isTextEnd(){return!!(this._isTagStart()||this._cursor.peek()===0||this._tokenizeIcu&&!this._inInterpolation&&(this.isExpansionFormStart()||this._cursor.peek()===125&&this._isInExpansionCase())||this._tokenizeBlocks&&!this._inInterpolation&&!this._isInExpansion()&&(this._isBlockStart()||this._cursor.peek()===64||this._cursor.peek()===125))}_isTagStart(){if(this._cursor.peek()===60){let o=this._cursor.clone();o.advance();let d=o.peek();if(97<=d&&d<=122||65<=d&&d<=90||d===47||d===33)return!0}return!1}_isBlockStart(){if(this._tokenizeBlocks&&this._cursor.peek()===64){let o=this._cursor.clone();if(o.advance(),ot(o.peek()))return!0}return!1}_readUntil(o){let d=this._cursor.clone();return this._attemptUntilChar(o),this._cursor.getChars(d)}_isInExpansion(){return this._isInExpansionCase()||this._isInExpansionForm()}_isInExpansionCase(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===22}_isInExpansionForm(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===20}isExpansionFormStart(){if(this._cursor.peek()!==123)return!1;if(this._interpolationConfig){let o=this._cursor.clone(),d=this._attemptStr(this._interpolationConfig.start);return this._cursor=o,!d}return!0}_handleFullNameStackForTagOpen(o,d){let y=xn(o,d);(this._fullNameStack.length===0||this._fullNameStack[this._fullNameStack.length-1]===y)&&this._fullNameStack.push(y)}_handleFullNameStackForTagClose(o,d){let y=xn(o,d);this._fullNameStack.length!==0&&this._fullNameStack[this._fullNameStack.length-1]===y&&this._fullNameStack.pop()}};function He(o){return!Kt(o)||o===0}function dt(o){return Kt(o)||o===62||o===60||o===47||o===39||o===34||o===61||o===0}function lr(o){return(o<97||122<o)&&(o<65||90<o)&&(o<48||o>57)}function Mt(o){return o===59||o===0||!Yt(o)}function Cn(o){return o===59||o===0||!Ot(o)}function kr(o){return o!==125}function Ft(o,d){return xt(o)===xt(d)}function xt(o){return o>=97&&o<=122?o-97+65:o}function ot(o){return Ot(o)||Ct(o)||o===95}function zt(o){return o!==59&&He(o)}function Va(o){let d=[],y;for(let w=0;w<o.length;w++){let A=o[w];y&&y.type===5&&A.type===5||y&&y.type===16&&A.type===16?(y.parts[0]+=A.parts[0],y.sourceSpan.end=A.sourceSpan.end):(y=A,d.push(y))}return d}var En=class Np{constructor(d,y){if(d instanceof Np){this.file=d.file,this.input=d.input,this.end=d.end;let w=d.state;this.state={peek:w.peek,offset:w.offset,line:w.line,column:w.column}}else{if(!y)throw new Error("Programming error: the range argument must be provided with a file argument.");this.file=d,this.input=d.content,this.end=y.endPos,this.state={peek:-1,offset:y.startPos,line:y.startLine,column:y.startCol}}}clone(){return new Np(this)}peek(){return this.state.peek}charsLeft(){return this.end-this.state.offset}diff(d){return this.state.offset-d.state.offset}advance(){this.advanceState(this.state)}init(){this.updatePeek(this.state)}getSpan(d,y){d=d||this;let w=d;if(y)for(;this.diff(d)>0&&y.indexOf(d.peek())!==-1;)w===d&&(d=d.clone()),d.advance();let A=this.locationFromCursor(d),L=this.locationFromCursor(this),G=w!==d?this.locationFromCursor(w):A;return new Ne(A,L,G)}getChars(d){return this.input.substring(d.state.offset,this.state.offset)}charAt(d){return this.input.charCodeAt(d)}advanceState(d){if(d.offset>=this.end)throw this.state=d,new Vn('Unexpected character "EOF"',this);let y=this.charAt(d.offset);y===10?(d.line++,d.column=0):Ir(y)||d.column++,d.offset++,this.updatePeek(d)}updatePeek(d){d.peek=d.offset>=this.end?0:this.charAt(d.offset)}locationFromCursor(d){return new mn(d.file,d.state.offset,d.state.line,d.state.column)}},Gn=class Rp extends En{constructor(d,y){d instanceof Rp?(super(d),this.internalState={...d.internalState}):(super(d,y),this.internalState=this.state)}advance(){this.state=this.internalState,super.advance(),this.processEscapeSequence()}init(){super.init(),this.processEscapeSequence()}clone(){return new Rp(this)}getChars(d){let y=d.clone(),w="";for(;y.internalState.offset<this.internalState.offset;)w+=String.fromCodePoint(y.peek()),y.advance();return w}processEscapeSequence(){let d=()=>this.internalState.peek;if(d()===92)if(this.internalState={...this.state},this.advanceState(this.internalState),d()===110)this.state.peek=10;else if(d()===114)this.state.peek=13;else if(d()===118)this.state.peek=11;else if(d()===116)this.state.peek=9;else if(d()===98)this.state.peek=8;else if(d()===102)this.state.peek=12;else if(d()===117)if(this.advanceState(this.internalState),d()===123){this.advanceState(this.internalState);let y=this.clone(),w=0;for(;d()!==125;)this.advanceState(this.internalState),w++;this.state.peek=this.decodeHexDigits(y,w)}else{let y=this.clone();this.advanceState(this.internalState),this.advanceState(this.internalState),this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(y,4)}else if(d()===120){this.advanceState(this.internalState);let y=this.clone();this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(y,2)}else if(Jt(d())){let y="",w=0,A=this.clone();for(;Jt(d())&&w<3;)A=this.clone(),y+=String.fromCodePoint(d()),this.advanceState(this.internalState),w++;this.state.peek=parseInt(y,8),this.internalState=A.internalState}else Ir(this.internalState.peek)?(this.advanceState(this.internalState),this.state=this.internalState):this.state.peek=this.internalState.peek}decodeHexDigits(d,y){let w=this.input.slice(d.internalState.offset,d.internalState.offset+y),A=parseInt(w,16);if(isNaN(A))throw d.state=d.internalState,new Vn("Invalid hexadecimal escape sequence",d);return A}},Vn=class{constructor(o,d){this.msg=o,this.cursor=d}},St=class Dy extends Er{static create(d,y,w){return new Dy(d,y,w)}constructor(d,y,w){super(y,w),this.elementName=d}},Pc=class{constructor(o,d){this.rootNodes=o,this.errors=d}},Lc=class{constructor(o){this.getTagDefinition=o}parse(o,d,y,w=!1,A){let L=ze=>(tt,...wt)=>ze(tt.toLowerCase(),...wt),G=w?this.getTagDefinition:L(this.getTagDefinition),Z=ze=>G(ze).getContentType(),ue=w?A:L(A),be=ae(o,d,A?(ze,tt,wt,gt)=>{let kt=ue(ze,tt,wt,gt);return kt!==void 0?kt:Z(ze)}:Z,y),he=y&&y.canSelfClose||!1,Me=y&&y.allowHtmComponentClosingTags||!1,Re=new Ic(be.tokens,G,he,Me,w);return Re.build(),new Pc(Re.rootNodes,be.errors.concat(Re.errors))}},Ic=class Cy{constructor(d,y,w,A,L){this.tokens=d,this.getTagDefinition=y,this.canSelfClose=w,this.allowHtmComponentClosingTags=A,this.isTagNameCaseSensitive=L,this._index=-1,this._containerStack=[],this.rootNodes=[],this.errors=[],this._advance()}build(){for(;this._peek.type!==34;)this._peek.type===0||this._peek.type===4?this._consumeStartTag(this._advance()):this._peek.type===3?(this._closeVoidElement(),this._consumeEndTag(this._advance())):this._peek.type===12?(this._closeVoidElement(),this._consumeCdata(this._advance())):this._peek.type===10?(this._closeVoidElement(),this._consumeComment(this._advance())):this._peek.type===5||this._peek.type===7||this._peek.type===6?(this._closeVoidElement(),this._consumeText(this._advance())):this._peek.type===20?this._consumeExpansion(this._advance()):this._peek.type===25?(this._closeVoidElement(),this._consumeBlockOpen(this._advance())):this._peek.type===27?(this._closeVoidElement(),this._consumeBlockClose(this._advance())):this._peek.type===29?(this._closeVoidElement(),this._consumeIncompleteBlock(this._advance())):this._peek.type===30?(this._closeVoidElement(),this._consumeLet(this._advance())):this._peek.type===18?this._consumeDocType(this._advance()):this._peek.type===33?(this._closeVoidElement(),this._consumeIncompleteLet(this._advance())):this._advance();for(let d of this._containerStack)d instanceof Sr&&this.errors.push(St.create(d.name,d.sourceSpan,`Unclosed block "${d.name}"`))}_advance(){let d=this._peek;return this._index<this.tokens.length-1&&this._index++,this._peek=this.tokens[this._index],d}_advanceIf(d){return this._peek.type===d?this._advance():null}_consumeCdata(d){let y=this._advance(),w=this._getText(y),A=this._advanceIf(13);this._addToParent(new da(w,new Ne(d.sourceSpan.start,(A||y).sourceSpan.end),[y]))}_consumeComment(d){let y=this._advanceIf(7),w=this._advanceIf(11),A=y!=null?y.parts[0].trim():null,L=w==null?d.sourceSpan:new Ne(d.sourceSpan.start,w.sourceSpan.end,d.sourceSpan.fullStart);this._addToParent(new Wn(A,L))}_consumeDocType(d){let y=this._advanceIf(7),w=this._advanceIf(19),A=y!=null?y.parts[0].trim():null,L=new Ne(d.sourceSpan.start,(w||y||d).sourceSpan.end);this._addToParent(new fa(A,L))}_consumeExpansion(d){let y=this._advance(),w=this._advance(),A=[];for(;this._peek.type===21;){let G=this._parseExpansionCase();if(!G)return;A.push(G)}if(this._peek.type!==24){this.errors.push(St.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '}'."));return}let L=new Ne(d.sourceSpan.start,this._peek.sourceSpan.end,d.sourceSpan.fullStart);this._addToParent(new Ui(y.parts[0],w.parts[0],A,L,y.sourceSpan)),this._advance()}_parseExpansionCase(){let d=this._advance();if(this._peek.type!==22)return this.errors.push(St.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '{'.")),null;let y=this._advance(),w=this._collectExpansionExpTokens(y);if(!w)return null;let A=this._advance();w.push({type:34,parts:[],sourceSpan:A.sourceSpan});let L=new Cy(w,this.getTagDefinition,this.canSelfClose,this.allowHtmComponentClosingTags,this.isTagNameCaseSensitive);if(L.build(),L.errors.length>0)return this.errors=this.errors.concat(L.errors),null;let G=new Ne(d.sourceSpan.start,A.sourceSpan.end,d.sourceSpan.fullStart),Z=new Ne(y.sourceSpan.start,A.sourceSpan.end,y.sourceSpan.fullStart);return new Wa(d.parts[0],L.rootNodes,G,d.sourceSpan,Z)}_collectExpansionExpTokens(d){let y=[],w=[22];for(;;){if((this._peek.type===20||this._peek.type===22)&&w.push(this._peek.type),this._peek.type===23)if(vu(w,22)){if(w.pop(),w.length===0)return y}else return this.errors.push(St.create(null,d.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(this._peek.type===24)if(vu(w,20))w.pop();else return this.errors.push(St.create(null,d.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(this._peek.type===34)return this.errors.push(St.create(null,d.sourceSpan,"Invalid ICU message. Missing '}'.")),null;y.push(this._advance())}}_getText(d){let y=d.parts[0];if(y.length>0&&y[0]==`
|
|
97
|
-
`){let w=this._getClosestParentElement();w!=null&&w.children.length==0&&this.getTagDefinition(w.name).ignoreFirstLf&&(y=y.substring(1))}return y}_consumeText(d){let y=[d],w=d.sourceSpan,A=d.parts[0];if(A.length>0&&A[0]===`
|
|
98
|
-
`){let L=this._getContainer();L!=null&&L.children.length===0&&this.getTagDefinition(L.name).ignoreFirstLf&&(A=A.substring(1),y[0]={type:d.type,sourceSpan:d.sourceSpan,parts:[A]})}for(;this._peek.type===8||this._peek.type===5||this._peek.type===9;)d=this._advance(),y.push(d),d.type===8?A+=d.parts.join("").replace(/&([^;]+);/g,Fl):d.type===9?A+=d.parts[0]:A+=d.parts.join("");if(A.length>0){let L=d.sourceSpan;this._addToParent(new Ua(A,new Ne(w.start,L.end,w.fullStart,w.details),y))}}_closeVoidElement(){let d=this._getContainer();d instanceof Qt&&this.getTagDefinition(d.name).isVoid&&this._containerStack.pop()}_consumeStartTag(d){let[y,w]=d.parts,A=[];for(;this._peek.type===14;)A.push(this._consumeAttr(this._advance()));let L=this._getElementFullName(y,w,this._getClosestParentElement()),G=!1;if(this._peek.type===2){this._advance(),G=!0;let ze=this.getTagDefinition(L);this.canSelfClose||ze.canSelfClose||ut(L)!==null||ze.isVoid||this.errors.push(St.create(L,d.sourceSpan,`Only void, custom and foreign elements can be self closed "${d.parts[1]}"`))}else this._peek.type===1&&(this._advance(),G=!1);let Z=this._peek.sourceSpan.fullStart,ue=new Ne(d.sourceSpan.start,Z,d.sourceSpan.fullStart),be=new Ne(d.sourceSpan.start,Z,d.sourceSpan.fullStart),he=new Ne(d.sourceSpan.start.moveBy(1),d.sourceSpan.end),Me=new Qt(L,A,[],ue,be,void 0,he),Re=this._getContainer();this._pushContainer(Me,Re instanceof Qt&&this.getTagDefinition(Re.name).isClosedByChild(Me.name)),G?this._popContainer(L,Qt,ue):d.type===4&&(this._popContainer(L,Qt,null),this.errors.push(St.create(L,ue,`Opening tag "${L}" not terminated.`)))}_pushContainer(d,y){y&&this._containerStack.pop(),this._addToParent(d),this._containerStack.push(d)}_consumeEndTag(d){let y=this.allowHtmComponentClosingTags&&d.parts.length===0?null:this._getElementFullName(d.parts[0],d.parts[1],this._getClosestParentElement());if(y&&this.getTagDefinition(y).isVoid)this.errors.push(St.create(y,d.sourceSpan,`Void elements do not have end tags "${d.parts[1]}"`));else if(!this._popContainer(y,Qt,d.sourceSpan)){let w=`Unexpected closing tag "${y}". It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags`;this.errors.push(St.create(y,d.sourceSpan,w))}}_popContainer(d,y,w){let A=!1;for(let L=this._containerStack.length-1;L>=0;L--){let G=this._containerStack[L];if(ut(G.name)?G.name===d:(d==null||G.name.toLowerCase()===d.toLowerCase())&&G instanceof y)return G.endSourceSpan=w,G.sourceSpan.end=w!==null?w.end:G.sourceSpan.end,this._containerStack.splice(L,this._containerStack.length-L),!A;(G instanceof Sr||G instanceof Qt&&!this.getTagDefinition(G.name).closedByParent)&&(A=!0)}return!1}_consumeAttr(d){let y=xn(d.parts[0],d.parts[1]),w=d.sourceSpan.end,A;this._peek.type===15&&(A=this._advance());let L="",G=[],Z,ue;if(this._peek.type===16)for(Z=this._peek.sourceSpan,ue=this._peek.sourceSpan.end;this._peek.type===16||this._peek.type===17||this._peek.type===9;){let he=this._advance();G.push(he),he.type===17?L+=he.parts.join("").replace(/&([^;]+);/g,Fl):he.type===9?L+=he.parts[0]:L+=he.parts.join(""),ue=w=he.sourceSpan.end}this._peek.type===15&&(ue=w=this._advance().sourceSpan.end);let be=Z&&ue&&new Ne(A?.sourceSpan.start??Z.start,ue,A?.sourceSpan.fullStart??Z.fullStart);return new Wi(y,L,new Ne(d.sourceSpan.start,w,d.sourceSpan.fullStart),d.sourceSpan,be,G.length>0?G:void 0,void 0)}_consumeBlockOpen(d){let y=[];for(;this._peek.type===28;){let Z=this._advance();y.push(new Ga(Z.parts[0],Z.sourceSpan))}this._peek.type===26&&this._advance();let w=this._peek.sourceSpan.fullStart,A=new Ne(d.sourceSpan.start,w,d.sourceSpan.fullStart),L=new Ne(d.sourceSpan.start,w,d.sourceSpan.fullStart),G=new Sr(d.parts[0],y,[],A,d.sourceSpan,L);this._pushContainer(G,!1)}_consumeBlockClose(d){this._popContainer(null,Sr,d.sourceSpan)||this.errors.push(St.create(null,d.sourceSpan,'Unexpected closing block. The block may have been closed earlier. If you meant to write the } character, you should use the "}" HTML entity instead.'))}_consumeIncompleteBlock(d){let y=[];for(;this._peek.type===28;){let Z=this._advance();y.push(new Ga(Z.parts[0],Z.sourceSpan))}let w=this._peek.sourceSpan.fullStart,A=new Ne(d.sourceSpan.start,w,d.sourceSpan.fullStart),L=new Ne(d.sourceSpan.start,w,d.sourceSpan.fullStart),G=new Sr(d.parts[0],y,[],A,d.sourceSpan,L);this._pushContainer(G,!1),this._popContainer(null,Sr,null),this.errors.push(St.create(d.parts[0],A,`Incomplete block "${d.parts[0]}". If you meant to write the @ character, you should use the "@" HTML entity instead.`))}_consumeLet(d){let y=d.parts[0],w,A;if(this._peek.type!==31){this.errors.push(St.create(d.parts[0],d.sourceSpan,`Invalid @let declaration "${y}". Declaration must have a value.`));return}else w=this._advance();if(this._peek.type!==32){this.errors.push(St.create(d.parts[0],d.sourceSpan,`Unterminated @let declaration "${y}". Declaration must be terminated with a semicolon.`));return}else A=this._advance();let L=A.sourceSpan.fullStart,G=new Ne(d.sourceSpan.start,L,d.sourceSpan.fullStart),Z=d.sourceSpan.toString().lastIndexOf(y),ue=d.sourceSpan.start.moveBy(Z),be=new Ne(ue,d.sourceSpan.end),he=new s(y,w.parts[0],G,be,w.sourceSpan);this._addToParent(he)}_consumeIncompleteLet(d){let y=d.parts[0]??"",w=y?` "${y}"`:"";if(y.length>0){let A=d.sourceSpan.toString().lastIndexOf(y),L=d.sourceSpan.start.moveBy(A),G=new Ne(L,d.sourceSpan.end),Z=new Ne(d.sourceSpan.start,d.sourceSpan.start.moveBy(0)),ue=new s(y,"",d.sourceSpan,G,Z);this._addToParent(ue)}this.errors.push(St.create(d.parts[0],d.sourceSpan,`Incomplete @let declaration${w}. @let declarations must be written as \`@let <name> = <value>;\``))}_getContainer(){return this._containerStack.length>0?this._containerStack[this._containerStack.length-1]:null}_getClosestParentElement(){for(let d=this._containerStack.length-1;d>-1;d--)if(this._containerStack[d]instanceof Qt)return this._containerStack[d];return null}_addToParent(d){let y=this._getContainer();y===null?this.rootNodes.push(d):y.children.push(d)}_getElementFullName(d,y,w){if(d===""&&(d=this.getTagDefinition(y).implicitNamespacePrefix||"",d===""&&w!=null)){let A=Ha(w.name)[1];this.getTagDefinition(A).preventNamespaceInheritance||(d=ut(w.name))}return xn(d,y)}};function vu(o,d){return o.length>0&&o[o.length-1]===d}function Fl(o,d){return C[d]!==void 0?C[d]||o:/^#x[a-f0-9]+$/i.test(d)?String.fromCodePoint(parseInt(d.slice(2),16)):/^#\d+$/.test(d)?String.fromCodePoint(parseInt(d.slice(1),10)):o}var bu=class extends Lc{constructor(){super(br)}parse(o,d,y,w=!1,A){return super.parse(o,d,y,w,A)}},Ss=null,yu=()=>(Ss||(Ss=new bu),Ss);function No(o,d={}){let{canSelfClose:y=!1,allowHtmComponentClosingTags:w=!1,isTagNameCaseSensitive:A=!1,getTagContentType:L,tokenizeAngularBlocks:G=!1,tokenizeAngularLetDeclaration:Z=!1}=d;return yu().parse(o,"angular-html-parser",{tokenizeExpansionForms:G,interpolationConfig:void 0,canSelfClose:y,allowHtmComponentClosingTags:w,tokenizeBlocks:G,tokenizeLet:Z},A,L)}function Fn(o,d){let y=new SyntaxError(o+" ("+d.loc.start.line+":"+d.loc.start.column+")");return Object.assign(y,d)}var Mc=Fn,ha=3;function zc(o){let d=o.slice(0,ha);if(d!=="---"&&d!=="+++")return;let y=o.indexOf(`
|
|
99
|
-
`,ha);if(y===-1)return;let w=o.slice(ha,y).trim(),A=o.indexOf(`
|
|
100
|
-
${d}`,y),L=w;if(L||(L=d==="+++"?"toml":"yaml"),A===-1&&d==="---"&&L==="yaml"&&(A=o.indexOf(`
|
|
101
|
-
...`,y)),A===-1)return;let G=A+1+ha,Z=o.charAt(G+1);if(!/\s?/u.test(Z))return;let ue=o.slice(0,G);return{type:"front-matter",language:L,explicitLanguage:w,value:o.slice(y+1,A),startDelimiter:d,endDelimiter:ue.slice(-ha),raw:ue}}function Hc(o){let d=zc(o);if(!d)return{content:o};let{raw:y}=d;return{frontMatter:d,content:M(!1,y,/[^\n]/gu," ")+o.slice(y.length)}}var jc=Hc,ks={attrs:!0,children:!0,cases:!0,expression:!0},xu=new Set(["parent"]),Gi,Vi,Sn,Uc=class Nu{constructor(d={}){R(this,Gi),D(this,"type"),D(this,"parent");for(let y of new Set([...xu,...Object.keys(d)]))this.setProperty(y,d[y])}setProperty(d,y){if(this[d]!==y){if(d in ks&&(y=y.map(w=>this.createChild(w))),!xu.has(d)){this[d]=y;return}Object.defineProperty(this,d,{value:y,enumerable:!1,configurable:!0})}}map(d){let y;for(let w in ks){let A=this[w];if(A){let L=Ts(A,G=>G.map(d));y!==A&&(y||(y=new Nu({parent:this.parent})),y.setProperty(w,L))}}if(y)for(let w in this)w in ks||(y[w]=this[w]);return d(y||this)}walk(d){for(let y in ks){let w=this[y];if(w)for(let A=0;A<w.length;A++)w[A].walk(d)}d(this)}createChild(d){let y=d instanceof Nu?d.clone():new Nu(d);return y.setProperty("parent",this),y}insertChildBefore(d,y){let w=this.$children;w.splice(w.indexOf(d),0,this.createChild(y))}removeChild(d){let y=this.$children;y.splice(y.indexOf(d),1)}replaceChild(d,y){let w=this.$children;w[w.indexOf(d)]=this.createChild(y)}clone(){return new Nu(this)}get $children(){return this[S(this,Gi,Vi)]}set $children(d){this[S(this,Gi,Vi)]=d}get firstChild(){var d;return(d=this.$children)==null?void 0:d[0]}get lastChild(){return le(!0,this.$children,-1)}get prev(){let d=S(this,Gi,Sn);return d[d.indexOf(this)-1]}get next(){let d=S(this,Gi,Sn);return d[d.indexOf(this)+1]}get rawName(){return this.hasExplicitNamespace?this.fullName:this.name}get fullName(){return this.namespace?this.namespace+":"+this.name:this.name}get attrMap(){return Object.fromEntries(this.attrs.map(d=>[d.fullName,d.value]))}};Gi=new WeakSet,Vi=function(){return this.type==="angularIcuCase"?"expression":this.type==="angularIcuExpression"?"cases":"children"},Sn=function(){var o;return((o=this.parent)==null?void 0:o.$children)??[]};var Wc=Uc;function Ts(o,d){let y=o.map(d);return y.some((w,A)=>w!==o[A])?y:o}var Gc=[{regex:/^(\[if([^\]]*)\]>)(.*?)<!\s*\[endif\]$/su,parse:_s},{regex:/^\[if([^\]]*)\]><!$/u,parse:As},{regex:/^<!\s*\[endif\]$/u,parse:Ns}];function Yi(o,d){if(o.value)for(let{regex:y,parse:w}of Gc){let A=o.value.match(y);if(A)return w(o,d,A)}return null}function _s(o,d,y){let[,w,A,L]=y,G=4+w.length,Z=o.sourceSpan.start.moveBy(G),ue=Z.moveBy(L.length),[be,he]=(()=>{try{return[!0,d(L,Z).children]}catch{return[!1,[{type:"text",value:L,sourceSpan:new Ne(Z,ue)}]]}})();return{type:"ieConditionalComment",complete:be,children:he,condition:M(!1,A.trim(),/\s+/gu," "),sourceSpan:o.sourceSpan,startSourceSpan:new Ne(o.sourceSpan.start,Z),endSourceSpan:new Ne(ue,o.sourceSpan.end)}}function As(o,d,y){let[,w]=y;return{type:"ieConditionalStartComment",condition:M(!1,w.trim(),/\s+/gu," "),sourceSpan:o.sourceSpan}}function Ns(o){return{type:"ieConditionalEndComment",sourceSpan:o.sourceSpan}}var Ji=new Map([["*",new Set(["accesskey","autocapitalize","autofocus","class","contenteditable","dir","draggable","enterkeyhint","hidden","id","inert","inputmode","is","itemid","itemprop","itemref","itemscope","itemtype","lang","nonce","popover","slot","spellcheck","style","tabindex","title","translate","writingsuggestions"])],["a",new Set(["charset","coords","download","href","hreflang","name","ping","referrerpolicy","rel","rev","shape","target","type"])],["applet",new Set(["align","alt","archive","code","codebase","height","hspace","name","object","vspace","width"])],["area",new Set(["alt","coords","download","href","hreflang","nohref","ping","referrerpolicy","rel","shape","target","type"])],["audio",new Set(["autoplay","controls","crossorigin","loop","muted","preload","src"])],["base",new Set(["href","target"])],["basefont",new Set(["color","face","size"])],["blockquote",new Set(["cite"])],["body",new Set(["alink","background","bgcolor","link","text","vlink"])],["br",new Set(["clear"])],["button",new Set(["disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","name","popovertarget","popovertargetaction","type","value"])],["canvas",new Set(["height","width"])],["caption",new Set(["align"])],["col",new Set(["align","char","charoff","span","valign","width"])],["colgroup",new Set(["align","char","charoff","span","valign","width"])],["data",new Set(["value"])],["del",new Set(["cite","datetime"])],["details",new Set(["name","open"])],["dialog",new Set(["open"])],["dir",new Set(["compact"])],["div",new Set(["align"])],["dl",new Set(["compact"])],["embed",new Set(["height","src","type","width"])],["fieldset",new Set(["disabled","form","name"])],["font",new Set(["color","face","size"])],["form",new Set(["accept","accept-charset","action","autocomplete","enctype","method","name","novalidate","target"])],["frame",new Set(["frameborder","longdesc","marginheight","marginwidth","name","noresize","scrolling","src"])],["frameset",new Set(["cols","rows"])],["h1",new Set(["align"])],["h2",new Set(["align"])],["h3",new Set(["align"])],["h4",new Set(["align"])],["h5",new Set(["align"])],["h6",new Set(["align"])],["head",new Set(["profile"])],["hr",new Set(["align","noshade","size","width"])],["html",new Set(["manifest","version"])],["iframe",new Set(["align","allow","allowfullscreen","allowpaymentrequest","allowusermedia","frameborder","height","loading","longdesc","marginheight","marginwidth","name","referrerpolicy","sandbox","scrolling","src","srcdoc","width"])],["img",new Set(["align","alt","border","crossorigin","decoding","fetchpriority","height","hspace","ismap","loading","longdesc","name","referrerpolicy","sizes","src","srcset","usemap","vspace","width"])],["input",new Set(["accept","align","alt","autocomplete","checked","dirname","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","height","ismap","list","max","maxlength","min","minlength","multiple","name","pattern","placeholder","popovertarget","popovertargetaction","readonly","required","size","src","step","type","usemap","value","width"])],["ins",new Set(["cite","datetime"])],["isindex",new Set(["prompt"])],["label",new Set(["for","form"])],["legend",new Set(["align"])],["li",new Set(["type","value"])],["link",new Set(["as","blocking","charset","color","crossorigin","disabled","fetchpriority","href","hreflang","imagesizes","imagesrcset","integrity","media","referrerpolicy","rel","rev","sizes","target","type"])],["map",new Set(["name"])],["menu",new Set(["compact"])],["meta",new Set(["charset","content","http-equiv","media","name","scheme"])],["meter",new Set(["high","low","max","min","optimum","value"])],["object",new Set(["align","archive","border","classid","codebase","codetype","data","declare","form","height","hspace","name","standby","type","typemustmatch","usemap","vspace","width"])],["ol",new Set(["compact","reversed","start","type"])],["optgroup",new Set(["disabled","label"])],["option",new Set(["disabled","label","selected","value"])],["output",new Set(["for","form","name"])],["p",new Set(["align"])],["param",new Set(["name","type","value","valuetype"])],["pre",new Set(["width"])],["progress",new Set(["max","value"])],["q",new Set(["cite"])],["script",new Set(["async","blocking","charset","crossorigin","defer","fetchpriority","integrity","language","nomodule","referrerpolicy","src","type"])],["select",new Set(["autocomplete","disabled","form","multiple","name","required","size"])],["slot",new Set(["name"])],["source",new Set(["height","media","sizes","src","srcset","type","width"])],["style",new Set(["blocking","media","type"])],["table",new Set(["align","bgcolor","border","cellpadding","cellspacing","frame","rules","summary","width"])],["tbody",new Set(["align","char","charoff","valign"])],["td",new Set(["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"])],["template",new Set(["shadowrootclonable","shadowrootdelegatesfocus","shadowrootmode"])],["textarea",new Set(["autocomplete","cols","dirname","disabled","form","maxlength","minlength","name","placeholder","readonly","required","rows","wrap"])],["tfoot",new Set(["align","char","charoff","valign"])],["th",new Set(["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"])],["thead",new Set(["align","char","charoff","valign"])],["time",new Set(["datetime"])],["tr",new Set(["align","bgcolor","char","charoff","valign"])],["track",new Set(["default","kind","label","src","srclang"])],["ul",new Set(["compact","type"])],["video",new Set(["autoplay","controls","crossorigin","height","loop","muted","playsinline","poster","preload","src","width"])]]),Ya=new Set(["a","abbr","acronym","address","applet","area","article","aside","audio","b","base","basefont","bdi","bdo","bgsound","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","command","content","data","datalist","dd","del","details","dfn","dialog","dir","div","dl","dt","em","embed","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","image","img","input","ins","isindex","kbd","keygen","label","legend","li","link","listing","main","map","mark","marquee","math","menu","menuitem","meta","meter","multicol","nav","nextid","nobr","noembed","noframes","noscript","object","ol","optgroup","option","output","p","param","picture","plaintext","pre","progress","q","rb","rbc","rp","rt","rtc","ruby","s","samp","script","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","tt","u","ul","var","video","wbr","xmp"]);function wu(o){if(o.type==="block"){if(o.name=M(!1,o.name.toLowerCase(),/\s+/gu," ").trim(),o.type="angularControlFlowBlock",!ci(o.parameters)){delete o.parameters;return}for(let d of o.parameters)d.type="angularControlFlowBlockParameter";o.parameters={type:"angularControlFlowBlockParameters",children:o.parameters,sourceSpan:new Ne(o.parameters[0].sourceSpan.start,le(!1,o.parameters,-1).sourceSpan.end)}}}function Du(o){o.type==="letDeclaration"&&(o.type="angularLetDeclaration",o.id=o.name,o.init={type:"angularLetDeclarationInitializer",sourceSpan:new Ne(o.valueSpan.start,o.valueSpan.end),value:o.value},delete o.name,delete o.value)}function Xi(o){(o.type==="plural"||o.type==="select")&&(o.clause=o.type,o.type="angularIcuExpression"),o.type==="expansionCase"&&(o.type="angularIcuCase")}function Cu(o,d,y){let{name:w,canSelfClose:A=!0,normalizeTagName:L=!1,normalizeAttributeName:G=!1,allowHtmComponentClosingTags:Z=!1,isTagNameCaseSensitive:ue=!1,shouldParseAsRawText:be}=d,{rootNodes:he,errors:Me}=No(o,{canSelfClose:A,allowHtmComponentClosingTags:Z,isTagNameCaseSensitive:ue,getTagContentType:be?(...ye)=>be(...ye)?mr.RAW_TEXT:void 0:void 0,tokenizeAngularBlocks:w==="angular"?!0:void 0,tokenizeAngularLetDeclaration:w==="angular"?!0:void 0});if(w==="vue"){if(he.some(ft=>ft.type==="docType"&&ft.value==="html"||ft.type==="element"&&ft.name.toLowerCase()==="html"))return Cu(o,Zi,y);let ye,Be=()=>ye??(ye=No(o,{canSelfClose:A,allowHtmComponentClosingTags:Z,isTagNameCaseSensitive:ue})),Dt=ft=>Be().rootNodes.find(({startSourceSpan:ur})=>ur&&ur.start.offset===ft.startSourceSpan.start.offset)??ft;for(let[ft,ur]of he.entries()){let{endSourceSpan:rn,startSourceSpan:Jc}=ur;if(rn===null)Me=Be().errors,he[ft]=Dt(ur);else if(Sl(ur,y)){let qi=Be().errors.find(Su=>Su.span.start.offset>Jc.start.offset&&Su.span.start.offset<rn.end.offset);qi&&Eu(qi),he[ft]=Dt(ur)}}}Me.length>0&&Eu(Me[0]);let Re=ye=>{let Be=ye.name.startsWith(":")?ye.name.slice(1).split(":")[0]:null,Dt=ye.nameSpan.toString(),ft=Be!==null&&Dt.startsWith(`${Be}:`),ur=ft?Dt.slice(Be.length+1):Dt;ye.name=ur,ye.namespace=Be,ye.hasExplicitNamespace=ft},ze=ye=>{switch(ye.type){case"element":Re(ye);for(let Be of ye.attrs)Re(Be),Be.valueSpan?(Be.value=Be.valueSpan.toString(),/["']/u.test(Be.value[0])&&(Be.value=Be.value.slice(1,-1))):Be.value=null;break;case"comment":ye.value=ye.sourceSpan.toString().slice(4,-3);break;case"text":ye.value=ye.sourceSpan.toString();break}},tt=(ye,Be)=>{let Dt=ye.toLowerCase();return Be(Dt)?Dt:ye},wt=ye=>{if(ye.type==="element"&&(L&&(!ye.namespace||ye.namespace===ye.tagDefinition.implicitNamespacePrefix||An(ye))&&(ye.name=tt(ye.name,Be=>Ya.has(Be))),G))for(let Be of ye.attrs)Be.namespace||(Be.name=tt(Be.name,Dt=>Ji.has(ye.name)&&(Ji.get("*").has(Dt)||Ji.get(ye.name).has(Dt))))},gt=ye=>{ye.sourceSpan&&ye.endSourceSpan&&(ye.sourceSpan=new Ne(ye.sourceSpan.start,ye.endSourceSpan.end))},kt=ye=>{if(ye.type==="element"){let Be=br(ue?ye.name:ye.name.toLowerCase());!ye.namespace||ye.namespace===Be.implicitNamespacePrefix||An(ye)?ye.tagDefinition=Be:ye.tagDefinition=br("")}};return c(new class extends v{visitExpansionCase(ye,Be){w==="angular"&&this.visitChildren(Be,Dt=>{Dt(ye.expression)})}visit(ye){ze(ye),kt(ye),wt(ye),gt(ye)}},he),he}function Sl(o,d){var y;if(o.type!=="element"||o.name!=="template")return!1;let w=(y=o.attrs.find(A=>A.name==="lang"))==null?void 0:y.value;return!w||sn(d,{language:w})==="html"}function Eu(o){let{msg:d,span:{start:y,end:w}}=o;throw Mc(d,{loc:{start:{line:y.line+1,column:y.col+1},end:{line:w.line+1,column:w.col+1}},cause:o})}function Ro(o,d,y={},w=!0){let{frontMatter:A,content:L}=w?jc(o):{frontMatter:null,content:o},G=new Ni(o,y.filepath),Z=new mn(G,0,0,0),ue=Z.moveBy(o.length),be={type:"root",sourceSpan:new Ne(Z,ue),children:Cu(L,d,y)};if(A){let Re=new mn(G,0,0,0),ze=Re.moveBy(A.raw.length);A.sourceSpan=new Ne(Re,ze),be.children.unshift(A)}let he=new Wc(be),Me=(Re,ze)=>{let{offset:tt}=ze,wt=M(!1,o.slice(0,tt),/[^\n\r]/gu," "),gt=Ro(wt+Re,d,y,!1);gt.sourceSpan=new Ne(ze,le(!1,gt.children,-1).sourceSpan.end);let kt=gt.children[0];return kt.length===tt?gt.children.shift():(kt.sourceSpan=new Ne(kt.sourceSpan.start.moveBy(tt),kt.sourceSpan.end),kt.value=kt.value.slice(tt)),gt};return he.walk(Re=>{if(Re.type==="comment"){let ze=Yi(Re,Me);ze&&Re.parent.replaceChild(Re,ze)}wu(Re),Du(Re),Xi(Re)}),he}function Oo(o){return{parse:(d,y)=>Ro(d,o,y),hasPragma:Se,hasIgnorePragma:qe,astFormat:"html",locStart:Fi,locEnd:Pn}}var Zi={name:"html",normalizeTagName:!0,normalizeAttributeName:!0,allowHtmComponentClosingTags:!0},Rs=Oo(Zi),Vc=new Set(["mj-style","mj-raw"]),Yc=Oo({...Zi,name:"mjml",shouldParseAsRawText:o=>Vc.has(o)}),Fu=Oo({name:"angular"}),Dp=Oo({name:"vue",isTagNameCaseSensitive:!0,shouldParseAsRawText(o,d,y,w){return o.toLowerCase()!=="html"&&!y&&(o!=="template"||w.some(({name:A,value:L})=>A==="lang"&&L!=="html"&&L!==""&&L!==void 0))}}),Ja=Oo({name:"lwc",canSelfClose:!1}),kl={html:$r};return b(N)})})(Sh)),Sh.exports}var Vv=Vw();const Yw=Ty({__proto__:null,default:Nl(Vv)},[Vv]);var Jw=Object.create,kh=Object.defineProperty,Xw=Object.getOwnPropertyDescriptor,Zw=Object.getOwnPropertyNames,qw=Object.getPrototypeOf,Kw=Object.prototype.hasOwnProperty,Yv=e=>{throw TypeError(e)},Qw=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Th=(e,t)=>{for(var r in t)kh(e,r,{get:t[r],enumerable:!0})},$w=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Zw(t))!Kw.call(e,a)&&a!==r&&kh(e,a,{get:()=>t[a],enumerable:!(n=Xw(t,a))||n.enumerable});return e},eD=(e,t,r)=>(r=e!=null?Jw(qw(e)):{},$w(kh(r,"default",{value:e,enumerable:!0}),e)),tD=(e,t,r)=>t.has(e)||Yv("Cannot "+r),rD=(e,t,r)=>t.has(e)?Yv("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),Gl=(e,t,r)=>(tD(e,t,"access private method"),r),nD=Qw(e=>{Object.defineProperty(e,"__esModule",{value:!0});function t(){return new Proxy({},{get:()=>i=>i})}var r=/\r\n|[\n\r\u2028\u2029]/;function n(i,u,h){let g=Object.assign({column:0,line:-1},i.start),p=Object.assign({},g,i.end),{linesAbove:b=2,linesBelow:D=3}=h||{},F=g.line,S=g.column,R=p.line,O=p.column,N=Math.max(F-(b+1),0),_=Math.min(u.length,R+D);F===-1&&(N=0),R===-1&&(_=u.length);let M=R-F,U={};if(M)for(let H=0;H<=M;H++){let q=H+F;if(!S)U[q]=!0;else if(H===0){let Q=u[q-1].length;U[q]=[S,Q-S+1]}else if(H===M)U[q]=[0,O];else{let Q=u[q-H].length;U[q]=[0,Q]}}else S===O?S?U[F]=[S,0]:U[F]=!0:U[F]=[S,O-S];return{start:N,end:_,markerLines:U}}function a(i,u,h={}){let g=t(),p=i.split(r),{start:b,end:D,markerLines:F}=n(u,p,h),S=u.start&&typeof u.start.column=="number",R=String(D).length,O=i.split(r,D).slice(b,D).map((N,_)=>{let M=b+1+_,U=` ${` ${M}`.slice(-R)} |`,H=F[M],q=!F[M+1];if(H){let Q="";if(Array.isArray(H)){let Y=N.slice(0,Math.max(H[0]-1,0)).replace(/[^\t]/g," "),ie=H[1]||1;Q=[`
|
|
102
|
-
`,g.gutter(U.replace(/\d/g," "))," ",Y,g.marker("^").repeat(ie)].join(""),q&&h.message&&(Q+=" "+g.message(h.message))}return[g.marker(">"),g.gutter(U),N.length>0?` ${N}`:"",Q].join("")}else return` ${g.gutter(U)}${N.length>0?` ${N}`:""}`}).join(`
|
|
103
|
-
`);return h.message&&!S&&(O=`${" ".repeat(R+1)}${h.message}
|
|
104
|
-
${O}`),O}e.codeFrameColumns=a}),aD={};Th(aD,{__debug:()=>gE,check:()=>hE,doc:()=>a0,format:()=>np,formatWithCursor:()=>s0,getSupportInfo:()=>pE,util:()=>i0,version:()=>jC});var iD=(e,t,r,n)=>{if(!(e&&t==null))return t.replaceAll?t.replaceAll(r,n):r.global?t.replace(r,n):t.split(r).join(n)},ic=iD,oD=class{diff(e,t,r={}){let n;typeof r=="function"?(n=r,r={}):"callback"in r&&(n=r.callback);let a=this.castInput(e,r),i=this.castInput(t,r),u=this.removeEmpty(this.tokenize(a,r)),h=this.removeEmpty(this.tokenize(i,r));return this.diffWithOptionsObj(u,h,r,n)}diffWithOptionsObj(e,t,r,n){var a;let i=_=>{if(_=this.postProcess(_,r),n){setTimeout(function(){n(_)},0);return}else return _},u=t.length,h=e.length,g=1,p=u+h;r.maxEditLength!=null&&(p=Math.min(p,r.maxEditLength));let b=(a=r.timeout)!==null&&a!==void 0?a:1/0,D=Date.now()+b,F=[{oldPos:-1,lastComponent:void 0}],S=this.extractCommon(F[0],t,e,0,r);if(F[0].oldPos+1>=h&&S+1>=u)return i(this.buildValues(F[0].lastComponent,t,e));let R=-1/0,O=1/0,N=()=>{for(let _=Math.max(R,-g);_<=Math.min(O,g);_+=2){let M,U=F[_-1],H=F[_+1];U&&(F[_-1]=void 0);let q=!1;if(H){let Y=H.oldPos-_;q=H&&0<=Y&&Y<u}let Q=U&&U.oldPos+1<h;if(!q&&!Q){F[_]=void 0;continue}if(!Q||q&&U.oldPos<H.oldPos?M=this.addToPath(H,!0,!1,0,r):M=this.addToPath(U,!1,!0,1,r),S=this.extractCommon(M,t,e,_,r),M.oldPos+1>=h&&S+1>=u)return i(this.buildValues(M.lastComponent,t,e))||!0;F[_]=M,M.oldPos+1>=h&&(O=Math.min(O,_-1)),S+1>=u&&(R=Math.max(R,_+1))}g++};if(n)(function _(){setTimeout(function(){if(g>p||Date.now()>D)return n(void 0);N()||_()},0)})();else for(;g<=p&&Date.now()<=D;){let _=N();if(_)return _}}addToPath(e,t,r,n,a){let i=e.lastComponent;return i&&!a.oneChangePerToken&&i.added===t&&i.removed===r?{oldPos:e.oldPos+n,lastComponent:{count:i.count+1,added:t,removed:r,previousComponent:i.previousComponent}}:{oldPos:e.oldPos+n,lastComponent:{count:1,added:t,removed:r,previousComponent:i}}}extractCommon(e,t,r,n,a){let i=t.length,u=r.length,h=e.oldPos,g=h-n,p=0;for(;g+1<i&&h+1<u&&this.equals(r[h+1],t[g+1],a);)g++,h++,p++,a.oneChangePerToken&&(e.lastComponent={count:1,previousComponent:e.lastComponent,added:!1,removed:!1});return p&&!a.oneChangePerToken&&(e.lastComponent={count:p,previousComponent:e.lastComponent,added:!1,removed:!1}),e.oldPos=h,g}equals(e,t,r){return r.comparator?r.comparator(e,t):e===t||!!r.ignoreCase&&e.toLowerCase()===t.toLowerCase()}removeEmpty(e){let t=[];for(let r=0;r<e.length;r++)e[r]&&t.push(e[r]);return t}castInput(e,t){return e}tokenize(e,t){return Array.from(e)}join(e){return e.join("")}postProcess(e,t){return e}get useLongestToken(){return!1}buildValues(e,t,r){let n=[],a;for(;e;)n.push(e),a=e.previousComponent,delete e.previousComponent,e=a;n.reverse();let i=n.length,u=0,h=0,g=0;for(;u<i;u++){let p=n[u];if(p.removed)p.value=this.join(r.slice(g,g+p.count)),g+=p.count;else{if(!p.added&&this.useLongestToken){let b=t.slice(h,h+p.count);b=b.map(function(D,F){let S=r[g+F];return S.length>D.length?S:D}),p.value=this.join(b)}else p.value=this.join(t.slice(h,h+p.count));h+=p.count,p.added||(g+=p.count)}}return n}},sD=class extends oD{tokenize(e){return e.slice()}join(e){return e}removeEmpty(e){return e}},lD=new sD;function uD(e,t,r){return lD.diff(e,t,r)}function cD(e){let t=e.indexOf("\r");return t!==-1?e.charAt(t+1)===`
|
|
105
|
-
`?"crlf":"cr":"lf"}function _h(e){switch(e){case"cr":return"\r";case"crlf":return`\r
|
|
106
|
-
`;default:return`
|
|
107
|
-
`}}function Jv(e,t){let r;switch(t){case`
|
|
108
|
-
`:r=/\n/gu;break;case"\r":r=/\r/gu;break;case`\r
|
|
109
|
-
`:r=/\r\n/gu;break;default:throw new Error(`Unexpected "eol" ${JSON.stringify(t)}.`)}let n=e.match(r);return n?n.length:0}function dD(e){return ic(!1,e,/\r\n?/gu,`
|
|
110
|
-
`)}var Mo="string",Qa="array",eo="cursor",$a="indent",ei="align",ti="trim",jr="group",ba="fill",an="if-break",ri="indent-if-break",ni="line-suffix",ai="line-suffix-boundary",dr="line",ya="label",Tn="break-parent",Xv=new Set([eo,$a,ei,ti,jr,ba,an,ri,ni,ai,dr,ya,Tn]),fD=(e,t,r)=>{if(!(e&&t==null))return Array.isArray(t)||typeof t=="string"?t[r<0?t.length+r:r]:t.at(r)},tr=fD;function hD(e){let t=e.length;for(;t>0&&(e[t-1]==="\r"||e[t-1]===`
|
|
111
|
-
`);)t--;return t<e.length?e.slice(0,t):e}function pD(e){if(typeof e=="string")return Mo;if(Array.isArray(e))return Qa;if(!e)return;let{type:t}=e;if(Xv.has(t))return t}var zo=pD,gD=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function mD(e){let t=e===null?"null":typeof e;if(t!=="string"&&t!=="object")return`Unexpected doc '${t}',
|
|
112
|
-
Expected it to be 'string' or 'object'.`;if(zo(e))throw new Error("doc is valid.");let r=Object.prototype.toString.call(e);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let n=gD([...Xv].map(a=>`'${a}'`));return`Unexpected doc.type '${e.type}'.
|
|
113
|
-
Expected it to be ${n}.`}var vD=class extends Error{constructor(t){super(mD(t));Xa(this,"name","InvalidDocError");this.doc=t}},Us=vD,Zv={};function bD(e,t,r,n){let a=[e];for(;a.length>0;){let i=a.pop();if(i===Zv){r(a.pop());continue}r&&a.push(i,Zv);let u=zo(i);if(!u)throw new Us(i);if(t?.(i)!==!1)switch(u){case Qa:case ba:{let h=u===Qa?i:i.parts;for(let g=h.length,p=g-1;p>=0;--p)a.push(h[p]);break}case an:a.push(i.flatContents,i.breakContents);break;case jr:if(n&&i.expandedStates)for(let h=i.expandedStates.length,g=h-1;g>=0;--g)a.push(i.expandedStates[g]);else a.push(i.contents);break;case ei:case $a:case ri:case ya:case ni:a.push(i.contents);break;case Mo:case eo:case ti:case ai:case dr:case Tn:break;default:throw new Us(i)}}}var Ah=bD;function oc(e,t){if(typeof e=="string")return t(e);let r=new Map;return n(e);function n(i){if(r.has(i))return r.get(i);let u=a(i);return r.set(i,u),u}function a(i){switch(zo(i)){case Qa:return t(i.map(n));case ba:return t({...i,parts:i.parts.map(n)});case an:return t({...i,breakContents:n(i.breakContents),flatContents:n(i.flatContents)});case jr:{let{expandedStates:u,contents:h}=i;return u?(u=u.map(n),h=u[0]):h=n(h),t({...i,contents:h,expandedStates:u})}case ei:case $a:case ri:case ya:case ni:return t({...i,contents:n(i.contents)});case Mo:case eo:case ti:case ai:case dr:case Tn:return t(i);default:throw new Us(i)}}}function Nh(e,t,r){let n=r,a=!1;function i(u){if(a)return!1;let h=t(u);h!==void 0&&(a=!0,n=h)}return Ah(e,i),n}function yD(e){if(e.type===jr&&e.break||e.type===dr&&e.hard||e.type===Tn)return!0}function xD(e){return Nh(e,yD,!1)}function qv(e){if(e.length>0){let t=tr(!1,e,-1);!t.expandedStates&&!t.break&&(t.break="propagated")}return null}function wD(e){let t=new Set,r=[];function n(i){if(i.type===Tn&&qv(r),i.type===jr){if(r.push(i),t.has(i))return!1;t.add(i)}}function a(i){i.type===jr&&r.pop().break&&qv(r)}Ah(e,n,a,!0)}function DD(e){return e.type===dr&&!e.hard?e.soft?"":" ":e.type===an?e.flatContents:e}function CD(e){return oc(e,DD)}function Kv(e){for(e=[...e];e.length>=2&&tr(!1,e,-2).type===dr&&tr(!1,e,-1).type===Tn;)e.length-=2;if(e.length>0){let t=Vl(tr(!1,e,-1));e[e.length-1]=t}return e}function Vl(e){switch(zo(e)){case $a:case ri:case jr:case ni:case ya:{let t=Vl(e.contents);return{...e,contents:t}}case an:return{...e,breakContents:Vl(e.breakContents),flatContents:Vl(e.flatContents)};case ba:return{...e,parts:Kv(e.parts)};case Qa:return Kv(e);case Mo:return hD(e);case ei:case eo:case ti:case ai:case dr:case Tn:break;default:throw new Us(e)}return e}function Qv(e){return Vl(FD(e))}function ED(e){switch(zo(e)){case ba:if(e.parts.every(t=>t===""))return"";break;case jr:if(!e.contents&&!e.id&&!e.break&&!e.expandedStates)return"";if(e.contents.type===jr&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case ei:case $a:case ri:case ni:if(!e.contents)return"";break;case an:if(!e.flatContents&&!e.breakContents)return"";break;case Qa:{let t=[];for(let r of e){if(!r)continue;let[n,...a]=Array.isArray(r)?r:[r];typeof n=="string"&&typeof tr(!1,t,-1)=="string"?t[t.length-1]+=n:t.push(n),t.push(...a)}return t.length===0?"":t.length===1?t[0]:t}case Mo:case eo:case ti:case ai:case dr:case ya:case Tn:break;default:throw new Us(e)}return e}function FD(e){return oc(e,t=>ED(t))}function SD(e,t=rb){return oc(e,r=>typeof r=="string"?nb(t,r.split(`
|
|
114
|
-
`)):r)}function kD(e){if(e.type===dr)return!0}function TD(e){return Nh(e,kD,!1)}function sc(e,t){return e.type===ya?{...e,contents:t(e.contents)}:t(e)}function lc(e){return{type:$a,contents:e}}function Ws(e,t){return{type:ei,contents:t,n:e}}function $v(e,t={}){return{type:jr,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function _D(e){return Ws(Number.NEGATIVE_INFINITY,e)}function AD(e){return Ws({type:"root"},e)}function ND(e){return Ws(-1,e)}function RD(e,t){return $v(e[0],{...t,expandedStates:e})}function OD(e){return{type:ba,parts:e}}function BD(e,t="",r={}){return{type:an,breakContents:e,flatContents:t,groupId:r.groupId}}function PD(e,t){return{type:ri,contents:e,groupId:t.groupId,negate:t.negate}}function Rh(e){return{type:ni,contents:e}}var LD={type:ai},uc={type:Tn},ID={type:ti},Oh={type:dr,hard:!0},eb={type:dr,hard:!0,literal:!0},tb={type:dr},MD={type:dr,soft:!0},Ho=[Oh,uc],rb=[eb,uc],jo={type:eo};function nb(e,t){let r=[];for(let n=0;n<t.length;n++)n!==0&&r.push(e),r.push(t[n]);return r}function ab(e,t,r){let n=e;if(t>0){for(let a=0;a<Math.floor(t/r);++a)n=lc(n);n=Ws(t%r,n),n=Ws(Number.NEGATIVE_INFINITY,n)}return n}function zD(e,t){return e?{type:ya,label:e,contents:t}:t}function ii(e){var t;if(!e)return"";if(Array.isArray(e)){let r=[];for(let n of e)if(Array.isArray(n))r.push(...ii(n));else{let a=ii(n);a!==""&&r.push(a)}return r}return e.type===an?{...e,breakContents:ii(e.breakContents),flatContents:ii(e.flatContents)}:e.type===jr?{...e,contents:ii(e.contents),expandedStates:(t=e.expandedStates)==null?void 0:t.map(ii)}:e.type===ba?{type:"fill",parts:e.parts.map(ii)}:e.contents?{...e,contents:ii(e.contents)}:e}function HD(e){let t=Object.create(null),r=new Set;return n(ii(e));function n(i,u,h){var g,p;if(typeof i=="string")return JSON.stringify(i);if(Array.isArray(i)){let b=i.map(n).filter(Boolean);return b.length===1?b[0]:`[${b.join(", ")}]`}if(i.type===dr){let b=((g=h?.[u+1])==null?void 0:g.type)===Tn;return i.literal?b?"literalline":"literallineWithoutBreakParent":i.hard?b?"hardline":"hardlineWithoutBreakParent":i.soft?"softline":"line"}if(i.type===Tn)return((p=h?.[u-1])==null?void 0:p.type)===dr&&h[u-1].hard?void 0:"breakParent";if(i.type===ti)return"trim";if(i.type===$a)return"indent("+n(i.contents)+")";if(i.type===ei)return i.n===Number.NEGATIVE_INFINITY?"dedentToRoot("+n(i.contents)+")":i.n<0?"dedent("+n(i.contents)+")":i.n.type==="root"?"markAsRoot("+n(i.contents)+")":"align("+JSON.stringify(i.n)+", "+n(i.contents)+")";if(i.type===an)return"ifBreak("+n(i.breakContents)+(i.flatContents?", "+n(i.flatContents):"")+(i.groupId?(i.flatContents?"":', ""')+`, { groupId: ${a(i.groupId)} }`:"")+")";if(i.type===ri){let b=[];i.negate&&b.push("negate: true"),i.groupId&&b.push(`groupId: ${a(i.groupId)}`);let D=b.length>0?`, { ${b.join(", ")} }`:"";return`indentIfBreak(${n(i.contents)}${D})`}if(i.type===jr){let b=[];i.break&&i.break!=="propagated"&&b.push("shouldBreak: true"),i.id&&b.push(`id: ${a(i.id)}`);let D=b.length>0?`, { ${b.join(", ")} }`:"";return i.expandedStates?`conditionalGroup([${i.expandedStates.map(F=>n(F)).join(",")}]${D})`:`group(${n(i.contents)}${D})`}if(i.type===ba)return`fill([${i.parts.map(b=>n(b)).join(", ")}])`;if(i.type===ni)return"lineSuffix("+n(i.contents)+")";if(i.type===ai)return"lineSuffixBoundary";if(i.type===ya)return`label(${JSON.stringify(i.label)}, ${n(i.contents)})`;if(i.type===eo)return"cursor";throw new Error("Unknown doc type "+i.type)}function a(i){if(typeof i!="symbol")return JSON.stringify(String(i));if(i in t)return t[i];let u=i.description||"symbol";for(let h=0;;h++){let g=u+(h>0?` #${h}`:"");if(!r.has(g))return r.add(g),t[i]=`Symbol.for(${JSON.stringify(g)})`}}}var jD=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE89\uDE8F-\uDEC2\uDEC6\uDECE-\uDEDC\uDEDF-\uDEE9]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;function UD(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}function WD(e){return e>=4352&&e<=4447||e===8986||e===8987||e===9001||e===9002||e>=9193&&e<=9196||e===9200||e===9203||e===9725||e===9726||e===9748||e===9749||e>=9776&&e<=9783||e>=9800&&e<=9811||e===9855||e>=9866&&e<=9871||e===9875||e===9889||e===9898||e===9899||e===9917||e===9918||e===9924||e===9925||e===9934||e===9940||e===9962||e===9970||e===9971||e===9973||e===9978||e===9981||e===9989||e===9994||e===9995||e===10024||e===10060||e===10062||e>=10067&&e<=10069||e===10071||e>=10133&&e<=10135||e===10160||e===10175||e===11035||e===11036||e===11088||e===11093||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12773||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||e===94192||e===94193||e>=94208&&e<=100343||e>=100352&&e<=101589||e>=101631&&e<=101640||e>=110576&&e<=110579||e>=110581&&e<=110587||e===110589||e===110590||e>=110592&&e<=110882||e===110898||e>=110928&&e<=110930||e===110933||e>=110948&&e<=110951||e>=110960&&e<=111355||e>=119552&&e<=119638||e>=119648&&e<=119670||e===126980||e===127183||e===127374||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e===127568||e===127569||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||e===127988||e>=127992&&e<=128062||e===128064||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||e===128378||e===128405||e===128406||e===128420||e>=128507&&e<=128591||e>=128640&&e<=128709||e===128716||e>=128720&&e<=128722||e>=128725&&e<=128727||e>=128732&&e<=128735||e===128747||e===128748||e>=128756&&e<=128764||e>=128992&&e<=129003||e===129008||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129673||e>=129679&&e<=129734||e>=129742&&e<=129756||e>=129759&&e<=129769||e>=129776&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}var GD=e=>!(UD(e)||WD(e)),VD=/[^\x20-\x7F]/u;function YD(e){if(!e)return 0;if(!VD.test(e))return e.length;e=e.replace(jD()," ");let t=0;for(let r of e){let n=r.codePointAt(0);n<=31||n>=127&&n<=159||n>=768&&n<=879||(t+=GD(n)?1:2)}return t}var Bh=YD,Ur=Symbol("MODE_BREAK"),xa=Symbol("MODE_FLAT"),Gs=Symbol("cursor"),Ph=Symbol("DOC_FILL_PRINTED_LENGTH");function ib(){return{value:"",length:0,queue:[]}}function JD(e,t){return Lh(e,{type:"indent"},t)}function XD(e,t,r){return t===Number.NEGATIVE_INFINITY?e.root||ib():t<0?Lh(e,{type:"dedent"},r):t?t.type==="root"?{...e,root:e}:Lh(e,{type:typeof t=="string"?"stringAlign":"numberAlign",n:t},r):e}function Lh(e,t,r){let n=t.type==="dedent"?e.queue.slice(0,-1):[...e.queue,t],a="",i=0,u=0,h=0;for(let R of n)switch(R.type){case"indent":b(),r.useTabs?g(1):p(r.tabWidth);break;case"stringAlign":b(),a+=R.n,i+=R.n.length;break;case"numberAlign":u+=1,h+=R.n;break;default:throw new Error(`Unexpected type '${R.type}'`)}return F(),{...e,value:a,length:i,queue:n};function g(R){a+=" ".repeat(R),i+=r.tabWidth*R}function p(R){a+=" ".repeat(R),i+=R}function b(){r.useTabs?D():F()}function D(){u>0&&g(u),S()}function F(){h>0&&p(h),S()}function S(){u=0,h=0}}function Ih(e){let t=0,r=0,n=e.length;e:for(;n--;){let a=e[n];if(a===Gs){r++;continue}for(let i=a.length-1;i>=0;i--){let u=a[i];if(u===" "||u===" ")t++;else{e[n]=a.slice(0,i+1);break e}}}if(t>0||r>0)for(e.length=n+1;r-- >0;)e.push(Gs);return t}function cc(e,t,r,n,a,i){if(r===Number.POSITIVE_INFINITY)return!0;let u=t.length,h=[e],g=[];for(;r>=0;){if(h.length===0){if(u===0)return!0;h.push(t[--u]);continue}let{mode:p,doc:b}=h.pop(),D=zo(b);switch(D){case Mo:g.push(b),r-=Bh(b);break;case Qa:case ba:{let F=D===Qa?b:b.parts,S=b[Ph]??0;for(let R=F.length-1;R>=S;R--)h.push({mode:p,doc:F[R]});break}case $a:case ei:case ri:case ya:h.push({mode:p,doc:b.contents});break;case ti:r+=Ih(g);break;case jr:{if(i&&b.break)return!1;let F=b.break?Ur:p,S=b.expandedStates&&F===Ur?tr(!1,b.expandedStates,-1):b.contents;h.push({mode:F,doc:S});break}case an:{let F=(b.groupId?a[b.groupId]||xa:p)===Ur?b.breakContents:b.flatContents;F&&h.push({mode:p,doc:F});break}case dr:if(p===Ur||b.hard)return!0;b.soft||(g.push(" "),r--);break;case ni:n=!0;break;case ai:if(n)return!1;break}}return!1}function dc(e,t){let r={},n=t.printWidth,a=_h(t.endOfLine),i=0,u=[{ind:ib(),mode:Ur,doc:e}],h=[],g=!1,p=[],b=0;for(wD(e);u.length>0;){let{ind:F,mode:S,doc:R}=u.pop();switch(zo(R)){case Mo:{let O=a!==`
|
|
115
|
-
`?ic(!1,R,`
|
|
116
|
-
`,a):R;h.push(O),u.length>0&&(i+=Bh(O));break}case Qa:for(let O=R.length-1;O>=0;O--)u.push({ind:F,mode:S,doc:R[O]});break;case eo:if(b>=2)throw new Error("There are too many 'cursor' in doc.");h.push(Gs),b++;break;case $a:u.push({ind:JD(F,t),mode:S,doc:R.contents});break;case ei:u.push({ind:XD(F,R.n,t),mode:S,doc:R.contents});break;case ti:i-=Ih(h);break;case jr:switch(S){case xa:if(!g){u.push({ind:F,mode:R.break?Ur:xa,doc:R.contents});break}case Ur:{g=!1;let O={ind:F,mode:xa,doc:R.contents},N=n-i,_=p.length>0;if(!R.break&&cc(O,u,N,_,r))u.push(O);else if(R.expandedStates){let M=tr(!1,R.expandedStates,-1);if(R.break){u.push({ind:F,mode:Ur,doc:M});break}else for(let U=1;U<R.expandedStates.length+1;U++)if(U>=R.expandedStates.length){u.push({ind:F,mode:Ur,doc:M});break}else{let H=R.expandedStates[U],q={ind:F,mode:xa,doc:H};if(cc(q,u,N,_,r)){u.push(q);break}}}else u.push({ind:F,mode:Ur,doc:R.contents});break}}R.id&&(r[R.id]=tr(!1,u,-1).mode);break;case ba:{let O=n-i,N=R[Ph]??0,{parts:_}=R,M=_.length-N;if(M===0)break;let U=_[N+0],H=_[N+1],q={ind:F,mode:xa,doc:U},Q={ind:F,mode:Ur,doc:U},Y=cc(q,[],O,p.length>0,r,!0);if(M===1){Y?u.push(q):u.push(Q);break}let ie={ind:F,mode:xa,doc:H},ee={ind:F,mode:Ur,doc:H};if(M===2){Y?u.push(ie,q):u.push(ee,Q);break}let ve=_[N+2],ge={ind:F,mode:S,doc:{...R,[Ph]:N+2}};cc({ind:F,mode:xa,doc:[U,H,ve]},[],O,p.length>0,r,!0)?u.push(ge,ie,q):Y?u.push(ge,ee,q):u.push(ge,ee,Q);break}case an:case ri:{let O=R.groupId?r[R.groupId]:S;if(O===Ur){let N=R.type===an?R.breakContents:R.negate?R.contents:lc(R.contents);N&&u.push({ind:F,mode:S,doc:N})}if(O===xa){let N=R.type===an?R.flatContents:R.negate?lc(R.contents):R.contents;N&&u.push({ind:F,mode:S,doc:N})}break}case ni:p.push({ind:F,mode:S,doc:R.contents});break;case ai:p.length>0&&u.push({ind:F,mode:S,doc:Oh});break;case dr:switch(S){case xa:if(R.hard)g=!0;else{R.soft||(h.push(" "),i+=1);break}case Ur:if(p.length>0){u.push({ind:F,mode:S,doc:R},...p.reverse()),p.length=0;break}R.literal?F.root?(h.push(a,F.root.value),i=F.root.length):(h.push(a),i=0):(i-=Ih(h),h.push(a+F.value),i=F.length);break}break;case ya:u.push({ind:F,mode:S,doc:R.contents});break;case Tn:break;default:throw new Us(R)}u.length===0&&p.length>0&&(u.push(...p.reverse()),p.length=0)}let D=h.indexOf(Gs);if(D!==-1){let F=h.indexOf(Gs,D+1);if(F===-1)return{formatted:h.filter(N=>N!==Gs).join("")};let S=h.slice(0,D).join(""),R=h.slice(D+1,F).join(""),O=h.slice(F+1).join("");return{formatted:S+R+O,cursorNodeStart:S.length,cursorNodeText:R}}return{formatted:h.join("")}}function ZD(e,t,r=0){let n=0;for(let a=r;a<e.length;++a)e[a]===" "?n=n+t-n%t:n++;return n}var Mh=ZD,Uo,zh,fc,qD=class{constructor(e){rD(this,Uo),this.stack=[e]}get key(){let{stack:e,siblings:t}=this;return tr(!1,e,t===null?-2:-4)??null}get index(){return this.siblings===null?null:tr(!1,this.stack,-2)}get node(){return tr(!1,this.stack,-1)}get parent(){return this.getNode(1)}get grandparent(){return this.getNode(2)}get isInArray(){return this.siblings!==null}get siblings(){let{stack:e}=this,t=tr(!1,e,-3);return Array.isArray(t)?t:null}get next(){let{siblings:e}=this;return e===null?null:e[this.index+1]}get previous(){let{siblings:e}=this;return e===null?null:e[this.index-1]}get isFirst(){return this.index===0}get isLast(){let{siblings:e,index:t}=this;return e!==null&&t===e.length-1}get isRoot(){return this.stack.length===1}get root(){return this.stack[0]}get ancestors(){return[...Gl(this,Uo,fc).call(this)]}getName(){let{stack:e}=this,{length:t}=e;return t>1?tr(!1,e,-2):null}getValue(){return tr(!1,this.stack,-1)}getNode(e=0){let t=Gl(this,Uo,zh).call(this,e);return t===-1?null:this.stack[t]}getParentNode(e=0){return this.getNode(e+1)}call(e,...t){let{stack:r}=this,{length:n}=r,a=tr(!1,r,-1);for(let i of t)a=a[i],r.push(i,a);try{return e(this)}finally{r.length=n}}callParent(e,t=0){let r=Gl(this,Uo,zh).call(this,t+1),n=this.stack.splice(r+1);try{return e(this)}finally{this.stack.push(...n)}}each(e,...t){let{stack:r}=this,{length:n}=r,a=tr(!1,r,-1);for(let i of t)a=a[i],r.push(i,a);try{for(let i=0;i<a.length;++i)r.push(i,a[i]),e(this,i,a),r.length-=2}finally{r.length=n}}map(e,...t){let r=[];return this.each((n,a,i)=>{r[a]=e(n,a,i)},...t),r}match(...e){let t=this.stack.length-1,r=null,n=this.stack[t--];for(let a of e){if(n===void 0)return!1;let i=null;if(typeof r=="number"&&(i=r,r=this.stack[t--],n=this.stack[t--]),a&&!a(n,r,i))return!1;r=this.stack[t--],n=this.stack[t--]}return!0}findAncestor(e){for(let t of Gl(this,Uo,fc).call(this))if(e(t))return t}hasAncestor(e){for(let t of Gl(this,Uo,fc).call(this))if(e(t))return!0;return!1}};Uo=new WeakSet,zh=function(e){let{stack:t}=this;for(let r=t.length-1;r>=0;r-=2)if(!Array.isArray(t[r])&&--e<0)return r;return-1},fc=function*(){let{stack:e}=this;for(let t=e.length-3;t>=0;t-=2){let r=e[t];Array.isArray(r)||(yield r)}};var KD=qD,ob=new Proxy(()=>{},{get:()=>ob}),Hh=ob;function QD(e){return e!==null&&typeof e=="object"}var $D=QD;function*hc(e,t){let{getVisitorKeys:r,filter:n=()=>!0}=t,a=i=>$D(i)&&n(i);for(let i of r(e)){let u=e[i];if(Array.isArray(u))for(let h of u)a(h)&&(yield h);else a(u)&&(yield u)}}function*e1(e,t){let r=[e];for(let n=0;n<r.length;n++){let a=r[n];for(let i of hc(a,t))yield i,r.push(i)}}function t1(e,t){return hc(e,t).next().done}function Yl(e){return(t,r,n)=>{let a=!!(n!=null&&n.backwards);if(r===!1)return!1;let{length:i}=t,u=r;for(;u>=0&&u<i;){let h=t.charAt(u);if(e instanceof RegExp){if(!e.test(h))return u}else if(!e.includes(h))return u;a?u--:u++}return u===-1||u===i?u:!1}}var r1=Yl(/\s/u),to=Yl(" "),sb=Yl(",; "),lb=Yl(/[^\n\r]/u);function n1(e,t,r){let n=!!(r!=null&&r.backwards);if(t===!1)return!1;let a=e.charAt(t);if(n){if(e.charAt(t-1)==="\r"&&a===`
|
|
117
|
-
`)return t-2;if(a===`
|
|
118
|
-
`||a==="\r"||a==="\u2028"||a==="\u2029")return t-1}else{if(a==="\r"&&e.charAt(t+1)===`
|
|
119
|
-
`)return t+2;if(a===`
|
|
120
|
-
`||a==="\r"||a==="\u2028"||a==="\u2029")return t+1}return t}var Wo=n1;function a1(e,t,r={}){let n=to(e,r.backwards?t-1:t,r),a=Wo(e,n,r);return n!==a}var ro=a1;function i1(e){return Array.isArray(e)&&e.length>0}var o1=i1,ub=new Set(["tokens","comments","parent","enclosingNode","precedingNode","followingNode"]),s1=e=>Object.keys(e).filter(t=>!ub.has(t));function l1(e){return e?t=>e(t,ub):s1}var pc=l1;function u1(e){let t=e.type||e.kind||"(unknown type)",r=String(e.name||e.id&&(typeof e.id=="object"?e.id.name:e.id)||e.key&&(typeof e.key=="object"?e.key.name:e.key)||e.value&&(typeof e.value=="object"?"":String(e.value))||e.operator||"");return r.length>20&&(r=r.slice(0,19)+"…"),t+(r?" "+r:"")}function jh(e,t){(e.comments??(e.comments=[])).push(t),t.printed=!1,t.nodeDescription=u1(e)}function Jl(e,t){t.leading=!0,t.trailing=!1,jh(e,t)}function Go(e,t,r){t.leading=!1,t.trailing=!1,r&&(t.marker=r),jh(e,t)}function Xl(e,t){t.leading=!1,t.trailing=!0,jh(e,t)}var Uh=new WeakMap;function Wh(e,t){if(Uh.has(e))return Uh.get(e);let{printer:{getCommentChildNodes:r,canAttachComment:n,getVisitorKeys:a},locStart:i,locEnd:u}=t;if(!n)return[];let h=(r?.(e,t)??[...hc(e,{getVisitorKeys:pc(a)})]).flatMap(g=>n(g)?[g]:Wh(g,t));return h.sort((g,p)=>i(g)-i(p)||u(g)-u(p)),Uh.set(e,h),h}function cb(e,t,r,n){let{locStart:a,locEnd:i}=r,u=a(t),h=i(t),g=Wh(e,r),p,b,D=0,F=g.length;for(;D<F;){let S=D+F>>1,R=g[S],O=a(R),N=i(R);if(O<=u&&h<=N)return cb(R,t,r,R);if(N<=u){p=R,D=S+1;continue}if(h<=O){b=R,F=S;continue}throw new Error("Comment location overlaps with node location")}if(n?.type==="TemplateLiteral"){let{quasis:S}=n,R=Vh(S,t,r);p&&Vh(S,p,r)!==R&&(p=null),b&&Vh(S,b,r)!==R&&(b=null)}return{enclosingNode:n,precedingNode:p,followingNode:b}}var Gh=()=>!1;function c1(e,t){let{comments:r}=e;if(delete e.comments,!o1(r)||!t.printer.canAttachComment)return;let n=[],{printer:{experimentalFeatures:{avoidAstMutation:a=!1}={},handleComments:i={}},originalText:u}=t,{ownLine:h=Gh,endOfLine:g=Gh,remaining:p=Gh}=i,b=r.map((D,F)=>({...cb(e,D,t),comment:D,text:u,options:t,ast:e,isLastComment:r.length-1===F}));for(let[D,F]of b.entries()){let{comment:S,precedingNode:R,enclosingNode:O,followingNode:N,text:_,options:M,ast:U,isLastComment:H}=F,q;if(a?q=[F]:(S.enclosingNode=O,S.precedingNode=R,S.followingNode=N,q=[S,_,M,U,H]),d1(_,M,b,D))S.placement="ownLine",h(...q)||(N?Jl(N,S):R?Xl(R,S):Go(O||U,S));else if(f1(_,M,b,D))S.placement="endOfLine",g(...q)||(R?Xl(R,S):N?Jl(N,S):Go(O||U,S));else if(S.placement="remaining",!p(...q))if(R&&N){let Q=n.length;Q>0&&n[Q-1].followingNode!==N&&fb(n,M),n.push(F)}else R?Xl(R,S):N?Jl(N,S):Go(O||U,S)}if(fb(n,t),!a)for(let D of r)delete D.precedingNode,delete D.enclosingNode,delete D.followingNode}var db=e=>!/[\S\n\u2028\u2029]/u.test(e);function d1(e,t,r,n){let{comment:a,precedingNode:i}=r[n],{locStart:u,locEnd:h}=t,g=u(a);if(i)for(let p=n-1;p>=0;p--){let{comment:b,precedingNode:D}=r[p];if(D!==i||!db(e.slice(h(b),g)))break;g=u(b)}return ro(e,g,{backwards:!0})}function f1(e,t,r,n){let{comment:a,followingNode:i}=r[n],{locStart:u,locEnd:h}=t,g=h(a);if(i)for(let p=n+1;p<r.length;p++){let{comment:b,followingNode:D}=r[p];if(D!==i||!db(e.slice(g,u(b))))break;g=h(b)}return ro(e,g)}function fb(e,t){var r,n;let a=e.length;if(a===0)return;let{precedingNode:i,followingNode:u}=e[0],h=t.locStart(u),g;for(g=a;g>0;--g){let{comment:p,precedingNode:b,followingNode:D}=e[g-1];Hh.strictEqual(b,i),Hh.strictEqual(D,u);let F=t.originalText.slice(t.locEnd(p),h);if(((n=(r=t.printer).isGap)==null?void 0:n.call(r,F,t))??/^[\s(]*$/u.test(F))h=t.locStart(p);else break}for(let[p,{comment:b}]of e.entries())p<g?Xl(i,b):Jl(u,b);for(let p of[i,u])p.comments&&p.comments.length>1&&p.comments.sort((b,D)=>t.locStart(b)-t.locStart(D));e.length=0}function Vh(e,t,r){let n=r.locStart(t)-1;for(let a=1;a<e.length;++a)if(n<r.locStart(e[a]))return a-1;return 0}function h1(e,t){let r=t-1;r=to(e,r,{backwards:!0}),r=Wo(e,r,{backwards:!0}),r=to(e,r,{backwards:!0});let n=Wo(e,r,{backwards:!0});return r!==n}var Yh=h1;function hb(e,t){let r=e.node;return r.printed=!0,t.printer.printComment(e,t)}function p1(e,t){var r;let n=e.node,a=[hb(e,t)],{printer:i,originalText:u,locStart:h,locEnd:g}=t;if((r=i.isBlockComment)!=null&&r.call(i,n)){let b=ro(u,g(n))?ro(u,h(n),{backwards:!0})?Ho:tb:" ";a.push(b)}else a.push(Ho);let p=Wo(u,to(u,g(n)));return p!==!1&&ro(u,p)&&a.push(Ho),a}function g1(e,t,r){var n;let a=e.node,i=hb(e,t),{printer:u,originalText:h,locStart:g}=t,p=(n=u.isBlockComment)==null?void 0:n.call(u,a);if(r!=null&&r.hasLineSuffix&&!(r!=null&&r.isBlock)||ro(h,g(a),{backwards:!0})){let b=Yh(h,g(a));return{doc:Rh([Ho,b?Ho:"",i]),isBlock:p,hasLineSuffix:!0}}return!p||r!=null&&r.hasLineSuffix?{doc:[Rh([" ",i]),uc],isBlock:p,hasLineSuffix:!0}:{doc:[" ",i],isBlock:p,hasLineSuffix:!1}}function m1(e,t){let r=e.node;if(!r)return{};let n=t[Symbol.for("printedComments")];if((r.comments||[]).filter(h=>!n.has(h)).length===0)return{leading:"",trailing:""};let a=[],i=[],u;return e.each(()=>{let h=e.node;if(n!=null&&n.has(h))return;let{leading:g,trailing:p}=h;g?a.push(p1(e,t)):p&&(u=g1(e,t,u),i.push(u.doc))},"comments"),{leading:a,trailing:i}}function v1(e,t,r){let{leading:n,trailing:a}=m1(e,r);return!n&&!a?t:sc(t,i=>[n,i,a])}function b1(e){let{[Symbol.for("comments")]:t,[Symbol.for("printedComments")]:r}=e;for(let n of t){if(!n.printed&&!r.has(n))throw new Error('Comment "'+n.value.trim()+'" was not printed. Please report this error!');delete n.printed}}var pb=class extends Error{constructor(){super(...arguments);Xa(this,"name","ConfigError")}},gb=class extends Error{constructor(){super(...arguments);Xa(this,"name","UndefinedParserError")}},y1={checkIgnorePragma:{category:"Special",type:"boolean",default:!1,description:"Check whether the file's first docblock comment contains '@noprettier' or '@noformat' to determine if it should be formatted.",cliCategory:"Other"},cursorOffset:{category:"Special",type:"int",default:-1,range:{start:-1,end:1/0,step:1},description:"Print (to stderr) where a cursor at the given position would move to after formatting.",cliCategory:"Editor"},endOfLine:{category:"Global",type:"choice",default:"lf",description:"Which end of line characters to apply.",choices:[{value:"lf",description:"Line Feed only (\\n), common on Linux and macOS as well as inside git repos"},{value:"crlf",description:"Carriage Return + Line Feed characters (\\r\\n), common on Windows"},{value:"cr",description:"Carriage Return character only (\\r), used very rarely"},{value:"auto",description:`Maintain existing
|
|
121
|
-
(mixed values within one file are normalised by looking at what's used after the first line)`}]},filepath:{category:"Special",type:"path",description:"Specify the input filepath. This will be used to do parser inference.",cliName:"stdin-filepath",cliCategory:"Other",cliDescription:"Path to the file to pretend that stdin comes from."},insertPragma:{category:"Special",type:"boolean",default:!1,description:"Insert @format pragma into file's first docblock comment.",cliCategory:"Other"},parser:{category:"Global",type:"choice",default:void 0,description:"Which parser to use.",exception:e=>typeof e=="string"||typeof e=="function",choices:[{value:"flow",description:"Flow"},{value:"babel",description:"JavaScript"},{value:"babel-flow",description:"Flow"},{value:"babel-ts",description:"TypeScript"},{value:"typescript",description:"TypeScript"},{value:"acorn",description:"JavaScript"},{value:"espree",description:"JavaScript"},{value:"meriyah",description:"JavaScript"},{value:"css",description:"CSS"},{value:"less",description:"Less"},{value:"scss",description:"SCSS"},{value:"json",description:"JSON"},{value:"json5",description:"JSON5"},{value:"jsonc",description:"JSON with Comments"},{value:"json-stringify",description:"JSON.stringify"},{value:"graphql",description:"GraphQL"},{value:"markdown",description:"Markdown"},{value:"mdx",description:"MDX"},{value:"vue",description:"Vue"},{value:"yaml",description:"YAML"},{value:"glimmer",description:"Ember / Handlebars"},{value:"html",description:"HTML"},{value:"angular",description:"Angular"},{value:"lwc",description:"Lightning Web Components"},{value:"mjml",description:"MJML"}]},plugins:{type:"path",array:!0,default:[{value:[]}],category:"Global",description:"Add a plugin. Multiple plugins can be passed as separate `--plugin`s.",exception:e=>typeof e=="string"||typeof e=="object",cliName:"plugin",cliCategory:"Config"},printWidth:{category:"Global",type:"int",default:80,description:"The line length where Prettier will try wrap.",range:{start:0,end:1/0,step:1}},rangeEnd:{category:"Special",type:"int",default:1/0,range:{start:0,end:1/0,step:1},description:`Format code ending at a given character offset (exclusive).
|
|
122
|
-
The range will extend forwards to the end of the selected statement.`,cliCategory:"Editor"},rangeStart:{category:"Special",type:"int",default:0,range:{start:0,end:1/0,step:1},description:`Format code starting at a given character offset.
|
|
123
|
-
The range will extend backwards to the start of the first line containing the selected statement.`,cliCategory:"Editor"},requirePragma:{category:"Special",type:"boolean",default:!1,description:"Require either '@prettier' or '@format' to be present in the file's first docblock comment in order for it to be formatted.",cliCategory:"Other"},tabWidth:{type:"int",category:"Global",default:2,description:"Number of spaces per indentation level.",range:{start:0,end:1/0,step:1}},useTabs:{category:"Global",type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},embeddedLanguageFormatting:{category:"Global",type:"choice",default:"auto",description:"Control how Prettier formats quoted code embedded in the file.",choices:[{value:"auto",description:"Format embedded code if Prettier can automatically identify it."},{value:"off",description:"Never automatically format embedded code."}]}};function mb({plugins:e=[],showDeprecated:t=!1}={}){let r=e.flatMap(a=>a.languages??[]),n=[];for(let a of w1(Object.assign({},...e.map(({options:i})=>i),y1)))!t&&a.deprecated||(Array.isArray(a.choices)&&(t||(a.choices=a.choices.filter(i=>!i.deprecated)),a.name==="parser"&&(a.choices=[...a.choices,...x1(a.choices,r,e)])),a.pluginDefaults=Object.fromEntries(e.filter(i=>{var u;return((u=i.defaultOptions)==null?void 0:u[a.name])!==void 0}).map(i=>[i.name,i.defaultOptions[a.name]])),n.push(a));return{languages:r,options:n}}function*x1(e,t,r){let n=new Set(e.map(a=>a.value));for(let a of t)if(a.parsers){for(let i of a.parsers)if(!n.has(i)){n.add(i);let u=r.find(g=>g.parsers&&Object.prototype.hasOwnProperty.call(g.parsers,i)),h=a.name;u!=null&&u.name&&(h+=` (plugin: ${u.name})`),yield{value:i,description:h}}}}function w1(e){let t=[];for(let[r,n]of Object.entries(e)){let a={name:r,...n};Array.isArray(a.default)&&(a.default=tr(!1,a.default,-1).value),t.push(a)}return t}var D1=(e,t)=>{if(!(e&&t==null))return t.toReversed||!Array.isArray(t)?t.toReversed():[...t].reverse()},C1=D1,vb,bb,yb,xb,wb,E1=((vb=globalThis.Deno)==null?void 0:vb.build.os)==="windows"||((yb=(bb=globalThis.navigator)==null?void 0:bb.platform)==null?void 0:yb.startsWith("Win"))||((wb=(xb=globalThis.process)==null?void 0:xb.platform)==null?void 0:wb.startsWith("win"))||!1;function Db(e){if(e=e instanceof URL?e:new URL(e),e.protocol!=="file:")throw new TypeError(`URL must be a file URL: received "${e.protocol}"`);return e}function F1(e){return e=Db(e),decodeURIComponent(e.pathname.replace(/%(?![0-9A-Fa-f]{2})/g,"%25"))}function S1(e){e=Db(e);let t=decodeURIComponent(e.pathname.replace(/\//g,"\\").replace(/%(?![0-9A-Fa-f]{2})/g,"%25")).replace(/^\\*([A-Za-z]:)(\\|$)/,"$1\\");return e.hostname!==""&&(t=`\\\\${e.hostname}${t}`),t}function k1(e){return E1?S1(e):F1(e)}var T1=k1,_1=e=>String(e).split(/[/\\]/u).pop();function Cb(e,t){if(!t)return;let r=_1(t).toLowerCase();return e.find(({filenames:n})=>n?.some(a=>a.toLowerCase()===r))??e.find(({extensions:n})=>n?.some(a=>r.endsWith(a)))}function A1(e,t){if(t)return e.find(({name:r})=>r.toLowerCase()===t)??e.find(({aliases:r})=>r?.includes(t))??e.find(({extensions:r})=>r?.includes(`.${t}`))}function Eb(e,t){if(t){if(String(t).startsWith("file:"))try{t=T1(t)}catch{return}if(typeof t=="string")return e.find(({isSupported:r})=>r?.({filepath:t}))}}function N1(e,t){let r=C1(!1,e.plugins).flatMap(a=>a.languages??[]),n=A1(r,t.language)??Cb(r,t.physicalFile)??Cb(r,t.file)??Eb(r,t.physicalFile)??Eb(r,t.file)??void 0;return n?.parsers[0]}var R1=N1,Vs={key:e=>/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(e)?e:JSON.stringify(e),value(e){if(e===null||typeof e!="object")return JSON.stringify(e);if(Array.isArray(e))return`[${e.map(r=>Vs.value(r)).join(", ")}]`;let t=Object.keys(e);return t.length===0?"{}":`{ ${t.map(r=>`${Vs.key(r)}: ${Vs.value(e[r])}`).join(", ")} }`},pair:({key:e,value:t})=>Vs.value({[e]:t})},Fb=new Proxy(String,{get:()=>Fb}),wa=Fb,O1=(e,t,{descriptor:r})=>{let n=[`${wa.yellow(typeof e=="string"?r.key(e):r.pair(e))} is deprecated`];return t&&n.push(`we now treat it as ${wa.blue(typeof t=="string"?r.key(t):r.pair(t))}`),n.join("; ")+"."},Sb=Symbol.for("vnopts.VALUE_NOT_EXIST"),gc=Symbol.for("vnopts.VALUE_UNCHANGED"),kb=" ".repeat(2),B1=(e,t,r)=>{let{text:n,list:a}=r.normalizeExpectedResult(r.schemas[e].expected(r)),i=[];return n&&i.push(Tb(e,t,n,r.descriptor)),a&&i.push([Tb(e,t,a.title,r.descriptor)].concat(a.values.map(u=>_b(u,r.loggerPrintWidth))).join(`
|
|
124
|
-
`)),Ab(i,r.loggerPrintWidth)};function Tb(e,t,r,n){return[`Invalid ${wa.red(n.key(e))} value.`,`Expected ${wa.blue(r)},`,`but received ${t===Sb?wa.gray("nothing"):wa.red(n.value(t))}.`].join(" ")}function _b({text:e,list:t},r){let n=[];return e&&n.push(`- ${wa.blue(e)}`),t&&n.push([`- ${wa.blue(t.title)}:`].concat(t.values.map(a=>_b(a,r-kb.length).replace(/^|\n/g,`$&${kb}`))).join(`
|
|
125
|
-
`)),Ab(n,r)}function Ab(e,t){if(e.length===1)return e[0];let[r,n]=e,[a,i]=e.map(u=>u.split(`
|
|
126
|
-
`,1)[0].length);return a>t&&a>i?n:r}var Jh=[],Nb=[];function P1(e,t){if(e===t)return 0;let r=e;e.length>t.length&&(e=t,t=r);let n=e.length,a=t.length;for(;n>0&&e.charCodeAt(~-n)===t.charCodeAt(~-a);)n--,a--;let i=0;for(;i<n&&e.charCodeAt(i)===t.charCodeAt(i);)i++;if(n-=i,a-=i,n===0)return a;let u,h,g,p,b=0,D=0;for(;b<n;)Nb[b]=e.charCodeAt(i+b),Jh[b]=++b;for(;D<a;)for(u=t.charCodeAt(i+D),g=D++,h=D,b=0;b<n;b++)p=u===Nb[b]?g:g+1,g=Jh[b],h=Jh[b]=g>h?p>h?h+1:p:p>g?g+1:p;return h}var Rb=(e,t,{descriptor:r,logger:n,schemas:a})=>{let i=[`Ignored unknown option ${wa.yellow(r.pair({key:e,value:t}))}.`],u=Object.keys(a).sort().find(h=>P1(e,h)<3);u&&i.push(`Did you mean ${wa.blue(r.key(u))}?`),n.warn(i.join(" "))},L1=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"];function I1(e,t){let r=new e(t),n=Object.create(r);for(let a of L1)a in t&&(n[a]=M1(t[a],r,no.prototype[a].length));return n}var no=class{static create(e){return I1(this,e)}constructor(e){this.name=e.name}default(e){}expected(e){return"nothing"}validate(e,t){return!1}deprecated(e,t){return!1}forward(e,t){}redirect(e,t){}overlap(e,t,r){return e}preprocess(e,t){return e}postprocess(e,t){return gc}};function M1(e,t,r){return typeof e=="function"?(...n)=>e(...n.slice(0,r-1),t,...n.slice(r-1)):()=>e}var z1=class extends no{constructor(e){super(e),this._sourceName=e.sourceName}expected(e){return e.schemas[this._sourceName].expected(e)}validate(e,t){return t.schemas[this._sourceName].validate(e,t)}redirect(e,t){return this._sourceName}},H1=class extends no{expected(){return"anything"}validate(){return!0}},j1=class extends no{constructor({valueSchema:e,name:t=e.name,...r}){super({...r,name:t}),this._valueSchema=e}expected(e){let{text:t,list:r}=e.normalizeExpectedResult(this._valueSchema.expected(e));return{text:t&&`an array of ${t}`,list:r&&{title:"an array of the following values",values:[{list:r}]}}}validate(e,t){if(!Array.isArray(e))return!1;let r=[];for(let n of e){let a=t.normalizeValidateResult(this._valueSchema.validate(n,t),n);a!==!0&&r.push(a.value)}return r.length===0?!0:{value:r}}deprecated(e,t){let r=[];for(let n of e){let a=t.normalizeDeprecatedResult(this._valueSchema.deprecated(n,t),n);a!==!1&&r.push(...a.map(({value:i})=>({value:[i]})))}return r}forward(e,t){let r=[];for(let n of e){let a=t.normalizeForwardResult(this._valueSchema.forward(n,t),n);r.push(...a.map(Ob))}return r}redirect(e,t){let r=[],n=[];for(let a of e){let i=t.normalizeRedirectResult(this._valueSchema.redirect(a,t),a);"remain"in i&&r.push(i.remain),n.push(...i.redirect.map(Ob))}return r.length===0?{redirect:n}:{redirect:n,remain:r}}overlap(e,t){return e.concat(t)}};function Ob({from:e,to:t}){return{from:[e],to:t}}var U1=class extends no{expected(){return"true or false"}validate(e){return typeof e=="boolean"}};function W1(e,t){let r=Object.create(null);for(let n of e){let a=n[t];if(r[a])throw new Error(`Duplicate ${t} ${JSON.stringify(a)}`);r[a]=n}return r}function G1(e,t){let r=new Map;for(let n of e){let a=n[t];if(r.has(a))throw new Error(`Duplicate ${t} ${JSON.stringify(a)}`);r.set(a,n)}return r}function V1(){let e=Object.create(null);return t=>{let r=JSON.stringify(t);return e[r]?!0:(e[r]=!0,!1)}}function Y1(e,t){let r=[],n=[];for(let a of e)t(a)?r.push(a):n.push(a);return[r,n]}function J1(e){return e===Math.floor(e)}function X1(e,t){if(e===t)return 0;let r=typeof e,n=typeof t,a=["undefined","object","boolean","number","string"];return r!==n?a.indexOf(r)-a.indexOf(n):r!=="string"?Number(e)-Number(t):e.localeCompare(t)}function Z1(e){return(...t)=>{let r=e(...t);return typeof r=="string"?new Error(r):r}}function Bb(e){return e===void 0?{}:e}function Pb(e){if(typeof e=="string")return{text:e};let{text:t,list:r}=e;return q1((t||r)!==void 0,"Unexpected `expected` result, there should be at least one field."),r?{text:t,list:{title:r.title,values:r.values.map(Pb)}}:{text:t}}function Lb(e,t){return e===!0?!0:e===!1?{value:t}:e}function Ib(e,t,r=!1){return e===!1?!1:e===!0?r?!0:[{value:t}]:"value"in e?[e]:e.length===0?!1:e}function Mb(e,t){return typeof e=="string"||"key"in e?{from:t,to:e}:"from"in e?{from:e.from,to:e.to}:{from:t,to:e.to}}function Xh(e,t){return e===void 0?[]:Array.isArray(e)?e.map(r=>Mb(r,t)):[Mb(e,t)]}function zb(e,t){let r=Xh(typeof e=="object"&&"redirect"in e?e.redirect:e,t);return r.length===0?{remain:t,redirect:r}:typeof e=="object"&&"remain"in e?{remain:e.remain,redirect:r}:{redirect:r}}function q1(e,t){if(!e)throw new Error(t)}var K1=class extends no{constructor(e){super(e),this._choices=G1(e.choices.map(t=>t&&typeof t=="object"?t:{value:t}),"value")}expected({descriptor:e}){let t=Array.from(this._choices.keys()).map(a=>this._choices.get(a)).filter(({hidden:a})=>!a).map(a=>a.value).sort(X1).map(e.value),r=t.slice(0,-2),n=t.slice(-2);return{text:r.concat(n.join(" or ")).join(", "),list:{title:"one of the following values",values:t}}}validate(e){return this._choices.has(e)}deprecated(e){let t=this._choices.get(e);return t&&t.deprecated?{value:e}:!1}forward(e){let t=this._choices.get(e);return t?t.forward:void 0}redirect(e){let t=this._choices.get(e);return t?t.redirect:void 0}},Q1=class extends no{expected(){return"a number"}validate(e,t){return typeof e=="number"}},$1=class extends Q1{expected(){return"an integer"}validate(e,t){return t.normalizeValidateResult(super.validate(e,t),e)===!0&&J1(e)}},Hb=class extends no{expected(){return"a string"}validate(e){return typeof e=="string"}},eC=Vs,tC=Rb,rC=B1,nC=O1,aC=class{constructor(e,t){let{logger:r=console,loggerPrintWidth:n=80,descriptor:a=eC,unknown:i=tC,invalid:u=rC,deprecated:h=nC,missing:g=()=>!1,required:p=()=>!1,preprocess:b=F=>F,postprocess:D=()=>gc}=t||{};this._utils={descriptor:a,logger:r||{warn:()=>{}},loggerPrintWidth:n,schemas:W1(e,"name"),normalizeDefaultResult:Bb,normalizeExpectedResult:Pb,normalizeDeprecatedResult:Ib,normalizeForwardResult:Xh,normalizeRedirectResult:zb,normalizeValidateResult:Lb},this._unknownHandler=i,this._invalidHandler=Z1(u),this._deprecatedHandler=h,this._identifyMissing=(F,S)=>!(F in S)||g(F,S),this._identifyRequired=p,this._preprocess=b,this._postprocess=D,this.cleanHistory()}cleanHistory(){this._hasDeprecationWarned=V1()}normalize(e){let t={},r=[this._preprocess(e,this._utils)],n=()=>{for(;r.length!==0;){let a=r.shift(),i=this._applyNormalization(a,t);r.push(...i)}};n();for(let a of Object.keys(this._utils.schemas)){let i=this._utils.schemas[a];if(!(a in t)){let u=Bb(i.default(this._utils));"value"in u&&r.push({[a]:u.value})}}n();for(let a of Object.keys(this._utils.schemas)){if(!(a in t))continue;let i=this._utils.schemas[a],u=t[a],h=i.postprocess(u,this._utils);h!==gc&&(this._applyValidation(h,a,i),t[a]=h)}return this._applyPostprocess(t),this._applyRequiredCheck(t),t}_applyNormalization(e,t){let r=[],{knownKeys:n,unknownKeys:a}=this._partitionOptionKeys(e);for(let i of n){let u=this._utils.schemas[i],h=u.preprocess(e[i],this._utils);this._applyValidation(h,i,u);let g=({from:D,to:F})=>{r.push(typeof F=="string"?{[F]:D}:{[F.key]:F.value})},p=({value:D,redirectTo:F})=>{let S=Ib(u.deprecated(D,this._utils),h,!0);if(S!==!1)if(S===!0)this._hasDeprecationWarned(i)||this._utils.logger.warn(this._deprecatedHandler(i,F,this._utils));else for(let{value:R}of S){let O={key:i,value:R};if(!this._hasDeprecationWarned(O)){let N=typeof F=="string"?{key:F,value:R}:F;this._utils.logger.warn(this._deprecatedHandler(O,N,this._utils))}}};Xh(u.forward(h,this._utils),h).forEach(g);let b=zb(u.redirect(h,this._utils),h);if(b.redirect.forEach(g),"remain"in b){let D=b.remain;t[i]=i in t?u.overlap(t[i],D,this._utils):D,p({value:D})}for(let{from:D,to:F}of b.redirect)p({value:D,redirectTo:F})}for(let i of a){let u=e[i];this._applyUnknownHandler(i,u,t,(h,g)=>{r.push({[h]:g})})}return r}_applyRequiredCheck(e){for(let t of Object.keys(this._utils.schemas))if(this._identifyMissing(t,e)&&this._identifyRequired(t))throw this._invalidHandler(t,Sb,this._utils)}_partitionOptionKeys(e){let[t,r]=Y1(Object.keys(e).filter(n=>!this._identifyMissing(n,e)),n=>n in this._utils.schemas);return{knownKeys:t,unknownKeys:r}}_applyValidation(e,t,r){let n=Lb(r.validate(e,this._utils),e);if(n!==!0)throw this._invalidHandler(t,n.value,this._utils)}_applyUnknownHandler(e,t,r,n){let a=this._unknownHandler(e,t,this._utils);if(a)for(let i of Object.keys(a)){if(this._identifyMissing(i,a))continue;let u=a[i];i in this._utils.schemas?n(i,u):r[i]=u}}_applyPostprocess(e){let t=this._postprocess(e,this._utils);if(t!==gc){if(t.delete)for(let r of t.delete)delete e[r];if(t.override){let{knownKeys:r,unknownKeys:n}=this._partitionOptionKeys(t.override);for(let a of r){let i=t.override[a];this._applyValidation(i,a,this._utils.schemas[a]),e[a]=i}for(let a of n){let i=t.override[a];this._applyUnknownHandler(a,i,e,(u,h)=>{let g=this._utils.schemas[u];this._applyValidation(h,u,g),e[u]=h})}}}}},Zh;function iC(e,t,{logger:r=!1,isCLI:n=!1,passThrough:a=!1,FlagSchema:i,descriptor:u}={}){if(n){if(!i)throw new Error("'FlagSchema' option is required.");if(!u)throw new Error("'descriptor' option is required.")}else u=Vs;let h=a?Array.isArray(a)?(F,S)=>a.includes(F)?{[F]:S}:void 0:(F,S)=>({[F]:S}):(F,S,R)=>{let{_:O,...N}=R.schemas;return Rb(F,S,{...R,schemas:N})},g=oC(t,{isCLI:n,FlagSchema:i}),p=new aC(g,{logger:r,unknown:h,descriptor:u}),b=r!==!1;b&&Zh&&(p._hasDeprecationWarned=Zh);let D=p.normalize(e);return b&&(Zh=p._hasDeprecationWarned),D}function oC(e,{isCLI:t,FlagSchema:r}){let n=[];t&&n.push(H1.create({name:"_"}));for(let a of e)n.push(sC(a,{isCLI:t,optionInfos:e,FlagSchema:r})),a.alias&&t&&n.push(z1.create({name:a.alias,sourceName:a.name}));return n}function sC(e,{isCLI:t,optionInfos:r,FlagSchema:n}){let{name:a}=e,i={name:a},u,h={};switch(e.type){case"int":u=$1,t&&(i.preprocess=Number);break;case"string":u=Hb;break;case"choice":u=K1,i.choices=e.choices.map(g=>g!=null&&g.redirect?{...g,redirect:{to:{key:e.name,value:g.redirect}}}:g);break;case"boolean":u=U1;break;case"flag":u=n,i.flags=r.flatMap(g=>[g.alias,g.description&&g.name,g.oppositeDescription&&`no-${g.name}`].filter(Boolean));break;case"path":u=Hb;break;default:throw new Error(`Unexpected type ${e.type}`)}if(e.exception?i.validate=(g,p,b)=>e.exception(g)||p.validate(g,b):i.validate=(g,p,b)=>g===void 0||p.validate(g,b),e.redirect&&(h.redirect=g=>g?{to:typeof e.redirect=="string"?e.redirect:{key:e.redirect.option,value:e.redirect.value}}:void 0),e.deprecated&&(h.deprecated=!0),t&&!e.array){let g=i.preprocess||(p=>p);i.preprocess=(p,b,D)=>b.preprocess(g(Array.isArray(p)?tr(!1,p,-1):p),D)}return e.array?j1.create({...t?{preprocess:g=>Array.isArray(g)?g:[g]}:{},...h,valueSchema:u.create(i)}):u.create({...i,...h})}var lC=iC,uC=(e,t,r)=>{if(!(e&&t==null)){if(t.findLast)return t.findLast(r);for(let n=t.length-1;n>=0;n--){let a=t[n];if(r(a,n,t))return a}}},jb=uC;function Ub(e,t){if(!t)throw new Error("parserName is required.");let r=jb(!1,e,a=>a.parsers&&Object.prototype.hasOwnProperty.call(a.parsers,t));if(r)return r;let n=`Couldn't resolve parser "${t}".`;throw n+=" Plugins must be explicitly added to the standalone bundle.",new pb(n)}function cC(e,t){if(!t)throw new Error("astFormat is required.");let r=jb(!1,e,a=>a.printers&&Object.prototype.hasOwnProperty.call(a.printers,t));if(r)return r;let n=`Couldn't find plugin for AST format "${t}".`;throw n+=" Plugins must be explicitly added to the standalone bundle.",new pb(n)}function qh({plugins:e,parser:t}){let r=Ub(e,t);return Wb(r,t)}function Wb(e,t){let r=e.parsers[t];return typeof r=="function"?r():r}function dC(e,t){let r=e.printers[t];return typeof r=="function"?r():r}var Gb={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null};async function fC(e,t={}){var r;let n={...e};if(!n.parser)if(n.filepath){if(n.parser=R1(n,{physicalFile:n.filepath}),!n.parser)throw new gb(`No parser could be inferred for file "${n.filepath}".`)}else throw new gb("No parser and no file path given, couldn't infer a parser.");let a=mb({plugins:e.plugins,showDeprecated:!0}).options,i={...Gb,...Object.fromEntries(a.filter(F=>F.default!==void 0).map(F=>[F.name,F.default]))},u=Ub(n.plugins,n.parser),h=await Wb(u,n.parser);n.astFormat=h.astFormat,n.locEnd=h.locEnd,n.locStart=h.locStart;let g=(r=u.printers)!=null&&r[h.astFormat]?u:cC(n.plugins,h.astFormat),p=await dC(g,h.astFormat);n.printer=p;let b=g.defaultOptions?Object.fromEntries(Object.entries(g.defaultOptions).filter(([,F])=>F!==void 0)):{},D={...i,...b};for(let[F,S]of Object.entries(D))(n[F]===null||n[F]===void 0)&&(n[F]=S);return n.parser==="json"&&(n.trailingComma="none"),lC(n,a,{passThrough:Object.keys(Gb),...t})}var Ys=fC,hC=eD(nD());async function pC(e,t){let r=await qh(t),n=r.preprocess?r.preprocess(e,t):e;t.originalText=n;let a;try{a=await r.parse(n,t,t)}catch(i){gC(i,e)}return{text:n,ast:a}}function gC(e,t){let{loc:r}=e;if(r){let n=(0,hC.codeFrameColumns)(t,r,{highlightCode:!0});throw e.message+=`
|
|
127
|
-
`+n,e.codeFrame=n,e}throw e}var Zl=pC;async function mC(e,t,r,n,a){let{embeddedLanguageFormatting:i,printer:{embed:u,hasPrettierIgnore:h=()=>!1,getVisitorKeys:g}}=r;if(!u||i!=="auto")return;if(u.length>2)throw new Error("printer.embed has too many parameters. The API changed in Prettier v3. Please update your plugin. See https://prettier.io/docs/plugins#optional-embed");let p=pc(u.getVisitorKeys??g),b=[];S();let D=e.stack;for(let{print:R,node:O,pathStack:N}of b)try{e.stack=N;let _=await R(F,t,e,r);_&&a.set(O,_)}catch(_){if(globalThis.PRETTIER_DEBUG)throw _}e.stack=D;function F(R,O){return vC(R,O,r,n)}function S(){let{node:R}=e;if(R===null||typeof R!="object"||h(e))return;for(let N of p(R))Array.isArray(R[N])?e.each(S,N):e.call(S,N);let O=u(e,r);if(O){if(typeof O=="function"){b.push({print:O,node:R,pathStack:[...e.stack]});return}a.set(R,O)}}}async function vC(e,t,r,n){let a=await Ys({...r,...t,parentParser:r.parser,originalText:e,cursorOffset:void 0,rangeStart:void 0,rangeEnd:void 0},{passThrough:!0}),{ast:i}=await Zl(e,a),u=await n(i,a);return Qv(u)}function bC(e,t){let{originalText:r,[Symbol.for("comments")]:n,locStart:a,locEnd:i,[Symbol.for("printedComments")]:u}=t,{node:h}=e,g=a(h),p=i(h);for(let b of n)a(b)>=g&&i(b)<=p&&u.add(b);return r.slice(g,p)}var yC=bC;async function mc(e,t){({ast:e}=await Yb(e,t));let r=new Map,n=new KD(e),a=new Map;await mC(n,u,t,mc,a);let i=await Vb(n,t,u,void 0,a);if(b1(t),t.cursorOffset>=0){if(t.nodeAfterCursor&&!t.nodeBeforeCursor)return[jo,i];if(t.nodeBeforeCursor&&!t.nodeAfterCursor)return[i,jo]}return i;function u(g,p){return g===void 0||g===n?h(p):Array.isArray(g)?n.call(()=>h(p),...g):n.call(()=>h(p),g)}function h(g){let p=n.node;if(p==null)return"";let b=p&&typeof p=="object"&&g===void 0;if(b&&r.has(p))return r.get(p);let D=Vb(n,t,u,g,a);return b&&r.set(p,D),D}}function Vb(e,t,r,n,a){var i;let{node:u}=e,{printer:h}=t,g;switch((i=h.hasPrettierIgnore)!=null&&i.call(h,e)?g=yC(e,t):a.has(u)?g=a.get(u):g=h.print(e,t,r,n),u){case t.cursorNode:g=sc(g,p=>[jo,p,jo]);break;case t.nodeBeforeCursor:g=sc(g,p=>[p,jo]);break;case t.nodeAfterCursor:g=sc(g,p=>[jo,p]);break}return h.printComment&&(!h.willPrintOwnComments||!h.willPrintOwnComments(e,t))&&(g=v1(e,g,t)),g}async function Yb(e,t){let r=e.comments??[];t[Symbol.for("comments")]=r,t[Symbol.for("printedComments")]=new Set,c1(e,t);let{printer:{preprocess:n}}=t;return e=n?await n(e,t):e,{ast:e,comments:r}}function xC(e,t){let{cursorOffset:r,locStart:n,locEnd:a}=t,i=pc(t.printer.getVisitorKeys),u=S=>n(S)<=r&&a(S)>=r,h=e,g=[e];for(let S of e1(e,{getVisitorKeys:i,filter:u}))g.push(S),h=S;if(t1(h,{getVisitorKeys:i}))return{cursorNode:h};let p,b,D=-1,F=Number.POSITIVE_INFINITY;for(;g.length>0&&(p===void 0||b===void 0);){h=g.pop();let S=p!==void 0,R=b!==void 0;for(let O of hc(h,{getVisitorKeys:i})){if(!S){let N=a(O);N<=r&&N>D&&(p=O,D=N)}if(!R){let N=n(O);N>=r&&N<F&&(b=O,F=N)}}}return{nodeBeforeCursor:p,nodeAfterCursor:b}}var Jb=xC;function wC(e,t){let{printer:{massageAstNode:r,getVisitorKeys:n}}=t;if(!r)return e;let a=pc(n),i=r.ignoredProperties??new Set;return u(e);function u(h,g){if(!(h!==null&&typeof h=="object"))return h;if(Array.isArray(h))return h.map(F=>u(F,g)).filter(Boolean);let p={},b=new Set(a(h));for(let F in h)!Object.prototype.hasOwnProperty.call(h,F)||i.has(F)||(b.has(F)?p[F]=u(h[F],h):p[F]=h[F]);let D=r(h,p,g);if(D!==null)return D??p}}var DC=wC,CC=(e,t,r)=>{if(!(e&&t==null)){if(t.findLastIndex)return t.findLastIndex(r);for(let n=t.length-1;n>=0;n--){let a=t[n];if(r(a,n,t))return n}return-1}},EC=CC,FC=({parser:e})=>e==="json"||e==="json5"||e==="jsonc"||e==="json-stringify";function SC(e,t){let r=[e.node,...e.parentNodes],n=new Set([t.node,...t.parentNodes]);return r.find(a=>Zb.has(a.type)&&n.has(a))}function Xb(e){let t=EC(!1,e,r=>r.type!=="Program"&&r.type!=="File");return t===-1?e:e.slice(0,t+1)}function kC(e,t,{locStart:r,locEnd:n}){let a=e.node,i=t.node;if(a===i)return{startNode:a,endNode:i};let u=r(e.node);for(let g of Xb(t.parentNodes))if(r(g)>=u)i=g;else break;let h=n(t.node);for(let g of Xb(e.parentNodes)){if(n(g)<=h)a=g;else break;if(a===i)break}return{startNode:a,endNode:i}}function Kh(e,t,r,n,a=[],i){let{locStart:u,locEnd:h}=r,g=u(e),p=h(e);if(!(t>p||t<g||i==="rangeEnd"&&t===g||i==="rangeStart"&&t===p)){for(let b of Wh(e,r)){let D=Kh(b,t,r,n,[e,...a],i);if(D)return D}if(!n||n(e,a[0]))return{node:e,parentNodes:a}}}function TC(e,t){return t!=="DeclareExportDeclaration"&&e!=="TypeParameterDeclaration"&&(e==="Directive"||e==="TypeAlias"||e==="TSExportAssignment"||e.startsWith("Declare")||e.startsWith("TSDeclare")||e.endsWith("Statement")||e.endsWith("Declaration"))}var Zb=new Set(["JsonRoot","ObjectExpression","ArrayExpression","StringLiteral","NumericLiteral","BooleanLiteral","NullLiteral","UnaryExpression","TemplateLiteral"]),_C=new Set(["OperationDefinition","FragmentDefinition","VariableDefinition","TypeExtensionDefinition","ObjectTypeDefinition","FieldDefinition","DirectiveDefinition","EnumTypeDefinition","EnumValueDefinition","InputValueDefinition","InputObjectTypeDefinition","SchemaDefinition","OperationTypeDefinition","InterfaceTypeDefinition","UnionTypeDefinition","ScalarTypeDefinition"]);function qb(e,t,r){if(!t)return!1;switch(e.parser){case"flow":case"hermes":case"babel":case"babel-flow":case"babel-ts":case"typescript":case"acorn":case"espree":case"meriyah":case"oxc":case"oxc-ts":case"__babel_estree":return TC(t.type,r?.type);case"json":case"json5":case"jsonc":case"json-stringify":return Zb.has(t.type);case"graphql":return _C.has(t.kind);case"vue":return t.tag!=="root"}return!1}function AC(e,t,r){let{rangeStart:n,rangeEnd:a,locStart:i,locEnd:u}=t;Hh.ok(a>n);let h=e.slice(n,a).search(/\S/u),g=h===-1;if(!g)for(n+=h;a>n&&!/\S/u.test(e[a-1]);--a);let p=Kh(r,n,t,(S,R)=>qb(t,S,R),[],"rangeStart"),b=g?p:Kh(r,a,t,S=>qb(t,S),[],"rangeEnd");if(!p||!b)return{rangeStart:0,rangeEnd:0};let D,F;if(FC(t)){let S=SC(p,b);D=S,F=S}else({startNode:D,endNode:F}=kC(p,b,t));return{rangeStart:Math.min(i(D),i(F)),rangeEnd:Math.max(u(D),u(F))}}var Kb="\uFEFF",Qb=Symbol("cursor");async function $b(e,t,r=0){if(!e||e.trim().length===0)return{formatted:"",cursorOffset:-1,comments:[]};let{ast:n,text:a}=await Zl(e,t);t.cursorOffset>=0&&(t={...t,...Jb(n,t)});let i=await mc(n,t);r>0&&(i=ab([Ho,i],r,t.tabWidth));let u=dc(i,t);if(r>0){let g=u.formatted.trim();u.cursorNodeStart!==void 0&&(u.cursorNodeStart-=u.formatted.indexOf(g),u.cursorNodeStart<0&&(u.cursorNodeStart=0,u.cursorNodeText=u.cursorNodeText.trimStart()),u.cursorNodeStart+u.cursorNodeText.length>g.length&&(u.cursorNodeText=u.cursorNodeText.trimEnd())),u.formatted=g+_h(t.endOfLine)}let h=t[Symbol.for("comments")];if(t.cursorOffset>=0){let g,p,b,D;if((t.cursorNode||t.nodeBeforeCursor||t.nodeAfterCursor)&&u.cursorNodeText)if(b=u.cursorNodeStart,D=u.cursorNodeText,t.cursorNode)g=t.locStart(t.cursorNode),p=a.slice(g,t.locEnd(t.cursorNode));else{if(!t.nodeBeforeCursor&&!t.nodeAfterCursor)throw new Error("Cursor location must contain at least one of cursorNode, nodeBeforeCursor, nodeAfterCursor");g=t.nodeBeforeCursor?t.locEnd(t.nodeBeforeCursor):0;let _=t.nodeAfterCursor?t.locStart(t.nodeAfterCursor):a.length;p=a.slice(g,_)}else g=0,p=a,b=0,D=u.formatted;let F=t.cursorOffset-g;if(p===D)return{formatted:u.formatted,cursorOffset:b+F,comments:h};let S=p.split("");S.splice(F,0,Qb);let R=D.split(""),O=uD(S,R),N=b;for(let _ of O)if(_.removed){if(_.value.includes(Qb))break}else N+=_.count;return{formatted:u.formatted,cursorOffset:N,comments:h}}return{formatted:u.formatted,cursorOffset:-1,comments:h}}async function NC(e,t){let{ast:r,text:n}=await Zl(e,t),{rangeStart:a,rangeEnd:i}=AC(n,t,r),u=n.slice(a,i),h=Math.min(a,n.lastIndexOf(`
|
|
128
|
-
`,a)+1),g=n.slice(h,a).match(/^\s*/u)[0],p=Mh(g,t.tabWidth),b=await $b(u,{...t,rangeStart:0,rangeEnd:Number.POSITIVE_INFINITY,cursorOffset:t.cursorOffset>a&&t.cursorOffset<=i?t.cursorOffset-a:-1,endOfLine:"lf"},p),D=b.formatted.trimEnd(),{cursorOffset:F}=t;F>i?F+=D.length-u.length:b.cursorOffset>=0&&(F=b.cursorOffset+a);let S=n.slice(0,a)+D+n.slice(i);if(t.endOfLine!=="lf"){let R=_h(t.endOfLine);F>=0&&R===`\r
|
|
129
|
-
`&&(F+=Jv(S.slice(0,F),`
|
|
130
|
-
`)),S=ic(!1,S,`
|
|
131
|
-
`,R)}return{formatted:S,cursorOffset:F,comments:b.comments}}function Qh(e,t,r){return typeof t!="number"||Number.isNaN(t)||t<0||t>e.length?r:t}function e0(e,t){let{cursorOffset:r,rangeStart:n,rangeEnd:a}=t;return r=Qh(e,r,-1),n=Qh(e,n,0),a=Qh(e,a,e.length),{...t,cursorOffset:r,rangeStart:n,rangeEnd:a}}function t0(e,t){let{cursorOffset:r,rangeStart:n,rangeEnd:a,endOfLine:i}=e0(e,t),u=e.charAt(0)===Kb;if(u&&(e=e.slice(1),r--,n--,a--),i==="auto"&&(i=cD(e)),e.includes("\r")){let h=g=>Jv(e.slice(0,Math.max(g,0)),`\r
|
|
132
|
-
`);r-=h(r),n-=h(n),a-=h(a),e=dD(e)}return{hasBOM:u,text:e,options:e0(e,{...t,cursorOffset:r,rangeStart:n,rangeEnd:a,endOfLine:i})}}async function r0(e,t){let r=await qh(t);return!r.hasPragma||r.hasPragma(e)}async function RC(e,t){var r;let n=await qh(t);return(r=n.hasIgnorePragma)==null?void 0:r.call(n,e)}async function n0(e,t){let{hasBOM:r,text:n,options:a}=t0(e,await Ys(t));if(a.rangeStart>=a.rangeEnd&&n!==""||a.requirePragma&&!await r0(n,a)||a.checkIgnorePragma&&await RC(n,a))return{formatted:e,cursorOffset:t.cursorOffset,comments:[]};let i;return a.rangeStart>0||a.rangeEnd<n.length?i=await NC(n,a):(!a.requirePragma&&a.insertPragma&&a.printer.insertPragma&&!await r0(n,a)&&(n=a.printer.insertPragma(n)),i=await $b(n,a)),r&&(i.formatted=Kb+i.formatted,i.cursorOffset>=0&&i.cursorOffset++),i}async function OC(e,t,r){let{text:n,options:a}=t0(e,await Ys(t)),i=await Zl(n,a);return r&&(r.preprocessForPrint&&(i.ast=await Yb(i.ast,a)),r.massage&&(i.ast=DC(i.ast,a))),i}async function BC(e,t){t=await Ys(t);let r=await mc(e,t);return dc(r,t)}async function PC(e,t){let r=HD(e),{formatted:n}=await n0(r,{...t,parser:"__js_expression"});return n}async function LC(e,t){t=await Ys(t);let{ast:r}=await Zl(e,t);return t.cursorOffset>=0&&(t={...t,...Jb(r,t)}),mc(r,t)}async function IC(e,t){return dc(e,await Ys(t))}var a0={};Th(a0,{builders:()=>MC,printer:()=>zC,utils:()=>HC});var MC={join:nb,line:tb,softline:MD,hardline:Ho,literalline:rb,group:$v,conditionalGroup:RD,fill:OD,lineSuffix:Rh,lineSuffixBoundary:LD,cursor:jo,breakParent:uc,ifBreak:BD,trim:ID,indent:lc,indentIfBreak:PD,align:Ws,addAlignmentToDoc:ab,markAsRoot:AD,dedentToRoot:_D,dedent:ND,hardlineWithoutBreakParent:Oh,literallineWithoutBreakParent:eb,label:zD,concat:e=>e},zC={printDocToString:dc},HC={willBreak:xD,traverseDoc:Ah,findInDoc:Nh,mapDoc:oc,removeLines:CD,stripTrailingHardline:Qv,replaceEndOfLine:SD,canBreak:TD},jC="3.6.2",i0={};Th(i0,{addDanglingComment:()=>Go,addLeadingComment:()=>Jl,addTrailingComment:()=>Xl,getAlignmentSize:()=>Mh,getIndentSize:()=>JC,getMaxContinuousCount:()=>qC,getNextNonSpaceNonCommentCharacter:()=>QC,getNextNonSpaceNonCommentCharacterIndex:()=>lE,getPreferredQuote:()=>eE,getStringWidth:()=>Bh,hasNewline:()=>ro,hasNewlineInRange:()=>rE,hasSpaces:()=>aE,isNextLineEmpty:()=>fE,isNextLineEmptyAfterIndex:()=>rp,isPreviousLineEmpty:()=>cE,makeString:()=>oE,skip:()=>Yl,skipEverythingButNewLine:()=>lb,skipInlineComment:()=>$h,skipNewline:()=>Wo,skipSpaces:()=>to,skipToLineEnd:()=>sb,skipTrailingComment:()=>ep,skipWhitespace:()=>r1});function UC(e,t){if(t===!1)return!1;if(e.charAt(t)==="/"&&e.charAt(t+1)==="*"){for(let r=t+2;r<e.length;++r)if(e.charAt(r)==="*"&&e.charAt(r+1)==="/")return r+2}return t}var $h=UC;function WC(e,t){return t===!1?!1:e.charAt(t)==="/"&&e.charAt(t+1)==="/"?lb(e,t):t}var ep=WC;function GC(e,t){let r=null,n=t;for(;n!==r;)r=n,n=to(e,n),n=$h(e,n),n=ep(e,n),n=Wo(e,n);return n}var tp=GC;function VC(e,t){let r=null,n=t;for(;n!==r;)r=n,n=sb(e,n),n=$h(e,n),n=to(e,n);return n=ep(e,n),n=Wo(e,n),n!==!1&&ro(e,n)}var rp=VC;function YC(e,t){let r=e.lastIndexOf(`
|
|
133
|
-
`);return r===-1?0:Mh(e.slice(r+1).match(/^[\t ]*/u)[0],t)}var JC=YC;function XC(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function ZC(e,t){let r=e.match(new RegExp(`(${XC(t)})+`,"gu"));return r===null?0:r.reduce((n,a)=>Math.max(n,a.length/t.length),0)}var qC=ZC;function KC(e,t){let r=tp(e,t);return r===!1?"":e.charAt(r)}var QC=KC,vc="'",o0='"';function $C(e,t){let r=t===!0||t===vc?vc:o0,n=r===vc?o0:vc,a=0,i=0;for(let u of e)u===r?a++:u===n&&i++;return a>i?n:r}var eE=$C;function tE(e,t,r){for(let n=t;n<r;++n)if(e.charAt(n)===`
|
|
134
|
-
`)return!0;return!1}var rE=tE;function nE(e,t,r={}){return to(e,r.backwards?t-1:t,r)!==t}var aE=nE;function iE(e,t,r){let n=t==='"'?"'":'"',a=ic(!1,e,/\\(.)|(["'])/gsu,(i,u,h)=>u===n?u:h===t?"\\"+h:h||(r&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/u.test(u)?u:"\\"+u));return t+a+t}var oE=iE;function sE(e,t,r){return tp(e,r(t))}function lE(e,t){return arguments.length===2||typeof t=="number"?tp(e,t):sE(...arguments)}function uE(e,t,r){return Yh(e,r(t))}function cE(e,t){return arguments.length===2||typeof t=="number"?Yh(e,t):uE(...arguments)}function dE(e,t,r){return rp(e,r(t))}function fE(e,t){return arguments.length===2||typeof t=="number"?rp(e,t):dE(...arguments)}function Vo(e,t=1){return async(...r)=>{let n=r[t]??{},a=n.plugins??[];return r[t]={...n,plugins:Array.isArray(a)?a:Object.values(a)},e(...r)}}var s0=Vo(n0);async function np(e,t){let{formatted:r}=await s0(e,{...t,cursorOffset:-1});return r}async function hE(e,t){return await np(e,t)===e}var pE=Vo(mb,0),gE={parse:Vo(OC),formatAST:Vo(BC),formatDoc:Vo(PC),printToDoc:Vo(LC),printDocToString:Vo(IC)};function mE(e=""){const{actions:t,query:r}=Hr(),{getHtml:n}=ac(),{import:a}=Fh(),[i,u]=I.useState(e),[h,g]=I.useState(e),[p,b]=I.useState("idle"),[D,F]=I.useState(""),[S,R]=I.useState(!1),O=I.useCallback(async()=>{if(i.trim()){R(!0);try{const ie=await np(i,{parser:"html",plugins:[Yw],printWidth:80,tabWidth:2,useTabs:!1,semi:!0,singleQuote:!1,trailingComma:"none",bracketSpacing:!0,htmlWhitespaceSensitivity:"css"});u(ie)}catch(ie){console.error("Error formatting HTML:",ie);const ee=i.replace(/>\s*</g,"><").replace(/\n\s*\n/g,`
|
|
135
|
-
`).split(`
|
|
136
|
-
`).map(ve=>ve.trim()).filter(ve=>ve).join(`
|
|
137
|
-
`);u(ee)}finally{R(!1)}}},[i]),N=I.useRef(null),_=I.useRef(!1),M=i!==h;I.useEffect(()=>{if(!_.current&&t&&r)try{const ie=n();ie&&ie.trim()&&(u(ie),g(ie)),_.current=!0}catch(ie){console.warn("Could not initialize code from canvas:",ie)}},[t,r,n]);const U=I.useCallback(async()=>{if(i.trim()){b("processing"),F("");try{a(i,{replace:!0}),b("success")}catch(ie){console.error("Error applying code to canvas:",ie),b("error"),F(ie instanceof Error?ie.message:"Unknown error occurred")}}},[a,i]),H=I.useCallback(ie=>{u(ie),N.current&&clearTimeout(N.current),N.current=setTimeout(()=>{ie.trim()?U():b("idle")},1e3)},[U]),q=I.useCallback(()=>{g(i),b("success");try{localStorage.setItem("editor_saved_code",i)}catch(ie){console.warn("Could not save to localStorage:",ie)}},[i]),Q=I.useCallback(()=>{u(h),b("idle"),F(""),N.current&&clearTimeout(N.current)},[h]),Y=I.useCallback(()=>{N.current&&clearTimeout(N.current),b("idle"),F("")},[]);return I.useEffect(()=>()=>{N.current&&clearTimeout(N.current)},[]),{codeValue:i,savedCodeValue:h,conversionStatus:p,hasUnsavedChanges:M,errorMessage:D,isFormattingCode:S,handleCodeChange:H,handleSave:q,handleRevert:Q,handleClose:Y,applyCodeToCanvas:U,formatCode:O}}const vE=({onClose:e,onFormat:t,onSave:r,isFormattingCode:n,codeValue:a,hasUnsavedChanges:i,conversionStatus:u})=>m.jsxs("div",{className:"flex items-center justify-between border-b border-gray-700 bg-[#23272f] px-4 py-2",children:[m.jsxs("div",{className:"flex items-center space-x-3",children:[m.jsx("div",{className:"group relative",children:m.jsx("button",{className:"rounded p-1 text-gray-400 transition-colors duration-200 hover:text-white",onClick:e,"aria-label":"Close Code Panel",children:m.jsx(ce.FiX,{size:18})})}),m.jsx("span",{className:"text-base font-semibold text-white",children:"Code Editor"}),m.jsxs("div",{className:"flex items-center space-x-2",children:[m.jsx("div",{className:`h-2 w-2 rounded-full ${i?"bg-yellow-500":"bg-green-500"}`}),m.jsx("span",{className:`text-xs font-medium ${i?"text-yellow-400":"text-green-400"}`,children:i?"Unsaved":"Saved"})]})]}),m.jsxs("div",{className:"flex items-center space-x-2",children:[m.jsxs("div",{className:"group relative",children:[m.jsx("button",{onClick:t,disabled:n||!a.trim(),className:"rounded p-1 text-gray-400 transition-colors duration-200 hover:text-white disabled:cursor-not-allowed disabled:text-gray-600","aria-label":"Format HTML",children:n?m.jsx(ce.FiLoader,{size:18,className:"animate-spin"}):m.jsx(ce.FiFileText,{size:18})}),m.jsx("span",{className:"absolute bottom-full left-1/2 z-10 mb-2 -translate-x-1/2 transform whitespace-nowrap rounded bg-gray-900 px-2 py-1 text-xs text-white opacity-0 transition-opacity duration-200 group-hover:opacity-100",children:n?"Formatting HTML...":"Format HTML"})]}),m.jsxs("div",{className:"group relative",children:[m.jsx("button",{onClick:r,disabled:u==="processing"||!i,className:"rounded p-1 text-gray-400 transition-colors duration-200 hover:text-white disabled:cursor-not-allowed disabled:text-gray-600","aria-label":"Save HTML",children:m.jsx(ce.FiSave,{size:18})}),m.jsx("span",{className:"absolute bottom-full left-1/2 z-10 mb-2 -translate-x-1/2 transform whitespace-nowrap rounded bg-gray-900 px-2 py-1 text-xs text-white opacity-0 transition-opacity duration-200 group-hover:opacity-100",children:"Save"})]})]})]});function bE({height:e="100%",defaultLanguage:t="html",theme:r="vs-dark",value:n,onChange:a,options:i}){const u=I.useRef(null),[h,g]=I.useState(null);return I.useEffect(()=>{const p=document.createElement("div");return p.style.position="fixed",p.style.top="0",p.style.left="0",p.style.width="100%",p.style.height="100%",p.style.pointerEvents="none",p.style.zIndex="9999",document.body.appendChild(p),g(p),()=>{p.parentNode&&p.parentNode.removeChild(p)}},[]),I.useEffect(()=>{if(!u.current||!h)return;const p=()=>{if(!u.current||!h)return;const F=u.current.getBoundingClientRect(),S=h.firstChild;S&&(S.style.position="absolute",S.style.top=`${F.top}px`,S.style.left=`${F.left}px`,S.style.width=`${F.width}px`,S.style.height=`${F.height}px`,S.style.pointerEvents="auto")};p();const b=()=>{requestAnimationFrame(p)};window.addEventListener("resize",b),window.addEventListener("scroll",b,!0);let D;return window.ResizeObserver&&(D=new ResizeObserver(b),D.observe(u.current)),()=>{window.removeEventListener("resize",b),window.removeEventListener("scroll",b,!0),D&&D.disconnect()}},[h]),m.jsxs(m.Fragment,{children:[m.jsx("div",{ref:u,style:{width:"100%",height:e}}),h&&Yn.createPortal(m.jsx("div",{style:{backgroundColor:"#1e1e1e"},children:m.jsx(Fy,{height:e,defaultLanguage:t,theme:r,value:n,onChange:a,options:i})}),h)]})}function yE({onClose:e}){const{codeValue:t,conversionStatus:r,hasUnsavedChanges:n,handleCodeChange:a,handleSave:i,handleClose:u,formatCode:h,isFormattingCode:g}=mE();return m.jsxs("div",{className:"flex h-full w-1/2 flex-col border-r border-gray-200 bg-[#181c24]",children:[m.jsx(vE,{onClose:()=>{u(),e()},onFormat:h,onSave:i,isFormattingCode:g,codeValue:t,hasUnsavedChanges:n,conversionStatus:r}),m.jsx("div",{className:"flex-1 p-0",style:{width:"100%",height:"100%"},children:m.jsx(bE,{height:"100%",defaultLanguage:"html",theme:"vs-dark",value:t,onChange:p=>a(p||""),options:{fontSize:16,padding:{top:10},minimap:{enabled:!1},wordWrap:"on",scrollBeyondLastLine:!1,formatOnPaste:!0,formatOnType:!0,autoIndent:"full",tabSize:2,insertSpaces:!0,automaticLayout:!0,folding:!0,lineNumbers:"on",renderWhitespace:"selection",bracketPairColorization:{enabled:!0},guides:{bracketPairs:!0,indentation:!0},suggest:{showKeywords:!0,showSnippets:!0}}})})]})}const xE={loading:!1,template:{}},l0=I.createContext(xE);function u0(){const e=I.useContext(l0);if(!e)throw new Error("useTemplate must be used within a TemplateProvider");return e}const wE={},DE=(e,t)=>({onDeleteNode:()=>{const r=t.getEvent("selected").last();r&&e.delete(r)},onCopy:()=>{const r=t.getEvent("selected").last();if(!r){console.warn("[Copy] No node selected");return}try{const n=t.node(r).toNodeTree();console.log("[Copy] Node tree:",n);const a={type:"craftjs-copy",nodeTree:n,selectedId:r,timestamp:Date.now()};console.log("[Copy] Copy data:",a);const i=JSON.stringify(a,(u,h)=>{if(!["dom","rules","_hydrationTimestamp","events"].includes(u))return u==="type"&&typeof h=="function"?{resolvedName:h.name||h.displayName||"Unknown"}:h});navigator.clipboard.writeText(i),console.log("[Copy] Successfully copied to clipboard")}catch(n){console.error("[Copy] Failed to copy node:",n)}},onPaste:async()=>{console.log("[Paste] Starting paste operation...");try{const r=await navigator.clipboard.readText();if(console.log("[Paste] Clipboard text:",r),!r){console.warn("[Paste] Clipboard is empty");return}let n;try{n=JSON.parse(r),console.log("[Paste] Parsed clipboard data:",n)}catch(D){console.warn("[Paste] Invalid clipboard data:",D);return}if(!n||n.type!=="craftjs-copy"||!n.nodeTree){console.warn("[Paste] Clipboard does not contain valid node data");return}const a=n.nodeTree;console.log("[Paste] Node tree to paste:",a);const u=(D=>{const F={...D},S={},R=()=>Math.random().toString(36).substring(2,15);if(F.nodes&&(Object.keys(F.nodes).forEach(O=>{S[O]=R()}),F.rootNodeId&&S[F.rootNodeId]&&(F.rootNodeId=S[F.rootNodeId])),F.nodes){const O={};Object.keys(F.nodes).forEach(N=>{const _={...F.nodes[N]},M=S[N];if(_.id=M,_.events=_.events||{selected:!1,dragged:!1,hovered:!1},_.dom=null,_.rules=_.rules||{canDrag:()=>!0,canDrop:()=>!0,canMoveIn:()=>!0,canMoveOut:()=>!0},_.data){if(_.data.props=_.data.props||{},_.data.custom=_.data.custom||{},_.data.hidden=_.data.hidden||!1,_.data.isCanvas=_.data.isCanvas||!1,_.data.nodes=_.data.nodes||[],_.data.linkedNodes=_.data.linkedNodes||{},_.data.displayName=_.data.displayName||_.data.type?.displayName||"Component",_.data.parent&&S[_.data.parent]&&(_.data.parent=S[_.data.parent]),_.data.nodes&&Array.isArray(_.data.nodes)&&(_.data.nodes=_.data.nodes.map(U=>S[U]||U)),_.data.linkedNodes){const U={};Object.keys(_.data.linkedNodes).forEach(H=>{const q=_.data.linkedNodes[H];U[H]=S[q]||q}),_.data.linkedNodes=U}if(_.data.type&&typeof _.data.type=="object"&&_.data.type.resolvedName){const U=Wl.find(H=>{const q=typeof H.component=="function"?H.component.name||H.component.displayName:"";return H.id===_.data.type.resolvedName||q===_.data.type.resolvedName});U?(_.data.type=U.component,console.log("[Paste] Resolved component:",_.data.type.resolvedName,"to",U.component)):console.warn("[Paste] Could not resolve component:",_.data.type.resolvedName)}}O[M]=_}),F.nodes=O}return F})(a);console.log("[Paste] Reconstructed node tree:",u);const h=t.getEvent("selected").last();let g="ROOT",p;if(h){const D=t.node(h).get();if(console.log("[Paste] Selected node data:",D),D.data.isCanvas)g=h,p=(D.data.nodes||[]).length,console.log("[Paste] Inserting as child of canvas node:",h,"at index:",p);else{const F=D.data.parent;F?(g=F,p=t.node(g).get().data.nodes.indexOf(h)+1,console.log("[Paste] Inserting after selected node in parent:",g,"at index:",p)):(g="ROOT",p=t.node("ROOT").get().data.nodes.indexOf(h)+1,console.log("[Paste] Inserting after selected node in ROOT at index:",p))}}else p=t.node("ROOT").get().data.nodes.length,console.log("[Paste] No selection, adding to end of ROOT at index:",p);console.log("[Paste] Will insert at parent:",g,"index:",p),console.log("[Paste] Using addNodeTree with reconstructed nodeTree:",u),e.addNodeTree(u,g,p);const b=u.rootNodeId;b&&(console.log("[Paste] Selecting newly pasted node:",b),e.selectNode(b)),console.log("[Paste] Node pasted successfully")}catch(r){console.error("[Paste] Failed to paste:",r),r instanceof Error&&console.error("[Paste] Error stack:",r.stack)}},onUndo:()=>e.history.undo(),onRedo:()=>e.history.redo(),onSave:()=>{const r=t.serialize();console.log("Saving JSON:",r)}});function CE(){const{actions:e,query:t}=Hr(),r=a=>a.toLowerCase().charAt(0).toUpperCase()+a.toLowerCase().slice(1),n=a=>a.includes("_")?`on${a.split("_").map(r).join("")}`:`on${r(a)}`;I.useEffect(()=>{const a=DE(e,t),i=u=>{const h=navigator.platform.includes("Mac"),g=[];(h&&u.metaKey||!h&&u.ctrlKey)&&g.push(h?"Meta":"Ctrl"),u.shiftKey&&g.push("Shift"),g.push(u.key);const p=g.join("+");Object.entries(wE).forEach(([b,D])=>{if(D.keys.includes(p)){u.preventDefault();const F=a[n(b)];console.log("Executing shortcut:",b,n(b)),F?.()}})};return window.addEventListener("keydown",i),()=>window.removeEventListener("keydown",i)},[e,t])}const EE=({name:e})=>m.jsx("div",{className:"border-b border-[#e8e7ee] bg-gray-50 p-4",children:m.jsxs("div",{className:"flex items-center gap-3",children:[m.jsx("div",{className:"flex h-10 w-10 items-center justify-center rounded bg-[#170f4f]",children:m.jsx("span",{className:"text-xs font-medium text-white",children:e.charAt(0).toUpperCase()})}),m.jsx("div",{className:"flex-1",children:m.jsx("h3",{className:"text-sm font-medium text-[#170f4f]",children:e})})]})});function FE(){const{selected:e,actions:t,query:r}=Hr(p=>({selected:p.events.selected})),n=()=>{if(e&&e.size>0){const p=Array.from(e)[0];t.delete(p)}},a=()=>{if(e&&e.size>0){const p=Array.from(e)[0];console.log("Clone component:",p)}},i=()=>{if(e&&e.size>0){const p=Array.from(e)[0];console.log("Move up component:",p)}},u=()=>{if(e&&e.size>0){const p=Array.from(e)[0];console.log("Move down component:",p)}};I.useEffect(()=>{const p=b=>{if(e&&e.size>0){const D=b.target;!(D.tagName==="INPUT"||D.tagName==="TEXTAREA"||D.contentEditable==="true")&&(b.key==="Backspace"||b.key==="Delete")&&(b.preventDefault(),n())}};return document.addEventListener("keydown",p),()=>{document.removeEventListener("keydown",p)}},[e]);const g=(()=>{if(!e||e.size===0)return null;const p=Array.from(e)[0],b=r.node(p).get();return b?{id:p,type:b.data.type,displayName:b.data.displayName||String(b.data.type),props:b.data.props,isCanvas:b.data.isCanvas,isDeletable:!0,isDuplicateable:!0,parent:b.data.parent}:null})();return g?m.jsxs("div",{className:"space-y-3 p-4",children:[m.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[m.jsxs("button",{onClick:a,disabled:!g.isDuplicateable,className:"flex items-center justify-center gap-2 border border-[#e8e7ee] bg-white px-3 py-2 text-xs font-medium transition-colors duration-200 hover:bg-gray-50 disabled:cursor-not-allowed disabled:opacity-50",children:[m.jsx(ce.FiCopy,{size:14}),"Duplicate"]}),m.jsxs("button",{onClick:n,disabled:!g.isDeletable,className:"flex items-center justify-center gap-2 border border-[#e8e7ee] bg-white px-3 py-2 text-xs font-medium transition-colors duration-200 hover:border-red-300 hover:bg-red-50 hover:text-red-600 disabled:cursor-not-allowed disabled:opacity-50",children:[m.jsx(ce.FiTrash2,{size:14}),"Delete"]})]}),m.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[m.jsxs("button",{onClick:i,className:"flex items-center justify-center gap-2 border border-[#e8e7ee] bg-white px-3 py-2 text-xs font-medium transition-colors duration-200 hover:bg-gray-50",children:[m.jsx(ce.FiArrowUp,{size:14}),"Move Up"]}),m.jsxs("button",{onClick:u,className:"flex items-center justify-center gap-2 border border-[#e8e7ee] bg-white px-3 py-2 text-xs font-medium transition-colors duration-200 hover:bg-gray-50",children:[m.jsx(ce.FiArrowDown,{size:14}),"Move Down"]})]}),m.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[m.jsxs("button",{className:"flex items-center justify-center gap-2 border border-[#e8e7ee] bg-white px-3 py-2 text-xs font-medium transition-colors duration-200 hover:bg-gray-50",children:[m.jsx(ce.FiLock,{size:14}),"Lock"]}),m.jsxs("button",{className:"flex items-center justify-center gap-2 border border-[#e8e7ee] bg-white px-3 py-2 text-xs font-medium transition-colors duration-200 hover:bg-gray-50",children:[m.jsx(ce.FiEyeOff,{size:14}),"Hide"]})]})]}):null}function SE(){const{selected:e,query:t}=Hr(p=>({selected:p.events.selected})),[r,n]=I.useState(""),a=I.useRef(null),i=()=>{if(a.current){const p=a.current.textContent||"";navigator.clipboard.writeText(p).then(()=>{console.log("HTML copied to clipboard")})}},u=p=>{try{const b=t.node(p).get();return b&&b.dom?b.dom.outerHTML.replace(/data-cy="[^"]*"/g,"").replace(/data-craft-id="[^"]*"/g,"").replace(/data-node-id="[^"]*"/g,"").replace(/class="[^"]*craft[^"]*"/g,'class=""').replace(/class="[^"]*ring-[^"]*"/g,'class=""').replace(/class="[^"]*hover:[^"]*"/g,'class=""').replace(/class="[^"]*transition-[^"]*"/g,'class=""').replace(/class="[^"]*duration-[^"]*"/g,'class=""').replace(/class="[^"]*opacity-[^"]*"/g,'class=""').replace(/class="[^"]*cursor-[^"]*"/g,'class=""').replace(/class="[^"]*min-h-screen[^"]*"/g,'class=""').replace(/class="[^"]*bg-white[^"]*"/g,'class=""').replace(/class=""/g,"").replace(/\s+/g," ").trim()||"<!-- No HTML available -->":"<!-- Component not found in DOM -->"}catch(b){return console.error("Error getting component HTML:",b),"<!-- Error getting component HTML -->"}};I.useEffect(()=>{if(e&&e.size>0){const p=Array.from(e)[0];if(t.node(p).get()){const D=u(p);n(D)}}else n("")},[e,t]);const g=(()=>{if(!e||e.size===0)return null;const p=Array.from(e)[0],b=t.node(p).get();return b?{id:p,type:b.data.type,displayName:b.data.displayName||String(b.data.type),props:b.data.props,isCanvas:b.data.isCanvas,isDeletable:!0,isDuplicateable:!0,parent:b.data.parent}:null})();return g?m.jsxs("div",{className:"space-y-4 p-4",children:[m.jsxs("div",{children:[m.jsx("label",{className:"mb-1 block text-xs font-medium text-gray-700",children:"Component ID"}),m.jsx("input",{type:"text",value:g.id,readOnly:!0,className:"w-full rounded-none border border-[#e8e7ee] bg-gray-50 px-3 py-2 text-xs focus:outline-none"})]}),m.jsxs("div",{children:[m.jsx("label",{className:"mb-1 block text-xs font-medium text-gray-700",children:"Component Parent"}),m.jsx("input",{type:"text",value:String(g.parent),readOnly:!0,className:"w-full rounded-none border border-[#e8e7ee] bg-gray-50 px-3 py-2 text-xs focus:outline-none"})]}),m.jsxs("div",{children:[m.jsx("label",{className:"mb-1 block text-xs font-medium text-gray-700",children:"Properties"}),m.jsx("div",{className:"rounded-none border border-[#e8e7ee] bg-gray-50 p-3",children:m.jsx("pre",{className:"whitespace-pre-wrap text-xs text-gray-600",children:JSON.stringify(g?.props,null,2)})})]}),m.jsxs("div",{children:[m.jsxs("div",{className:"mb-1 flex items-center justify-between",children:[m.jsx("label",{className:"block text-xs font-medium text-gray-700",children:"Component HTML"}),m.jsx("button",{onClick:i,className:"rounded-none p-1 text-gray-400 transition-colors duration-200 hover:bg-gray-100 hover:text-gray-600",title:"Copy HTML to clipboard",children:m.jsx(ce.FiClipboard,{size:14})})]}),m.jsx("div",{className:"rounded-none border border-[#e8e7ee] bg-gray-50 p-3",children:m.jsx("pre",{ref:a,className:"whitespace-pre-wrap font-mono text-xs text-gray-600",children:r||"<!-- No HTML available -->"})})]}),m.jsxs("div",{className:"flex gap-2",children:[m.jsx("span",{className:"inline-flex items-center rounded bg-blue-100 px-2 py-1 text-xs font-medium text-blue-800",children:g.isCanvas?"Canvas":"Component"}),g.isDeletable&&m.jsx("span",{className:"inline-flex items-center rounded bg-green-100 px-2 py-1 text-xs font-medium text-green-800",children:"Deletable"}),g.isDuplicateable&&m.jsx("span",{className:"inline-flex items-center rounded bg-purple-100 px-2 py-1 text-xs font-medium text-purple-800",children:"Duplicatable"})]})]}):null}function kE(){const{actions:{setProp:e},text:t}=mt(r=>({text:r.data.props.children}));return m.jsx("div",{className:"space-y-4 p-4",children:m.jsxs("div",{children:[m.jsx("label",{className:"mb-2 block text-sm font-medium text-gray-700",children:"Text"}),m.jsx("textarea",{rows:5,value:t,onChange:r=>e(n=>n.children=r.target.value),className:"focus:ring-primary-500 min-h-fit w-full rounded-md border border-gray-300 px-3 py-2 focus:outline-none focus:ring-2"})]})})}const ql=({title:e,icon:t,children:r,defaultOpen:n=!1,className:a=""})=>{const i=I.useRef(null),[u,h]=I.useState(n),[g,p]=I.useState(n?void 0:0),b=I.useRef(null);I.useEffect(()=>{i.current&&i.current.parentElement&&i.current.parentElement.firstElementChild===i.current&&!n&&(h(!0),p(void 0))},[n]),I.useEffect(()=>{if(b.current)if(u){const F=b.current.scrollHeight;p(F)}else p(0)},[u]);const D=()=>{h(!u)};return m.jsxs("div",{ref:i,className:`overflow-hidden border border-[#E8E7EE] ${a}`,children:[m.jsxs("button",{onClick:D,className:"flex w-full items-center justify-between border-b border-[#E8E7EE] bg-white px-4 py-3 transition-colors hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-inset focus:ring-[#170F4F]",children:[m.jsxs("div",{className:"flex items-center gap-2",children:[t,m.jsx("h3",{className:"text-sm font-medium text-[#170F4F]",children:e})]}),m.jsx(ce.FiChevronDown,{size:16,className:`text-[#A29FB9] transition-transform duration-200 ${u?"rotate-0":"-rotate-90"}`})]}),m.jsx("div",{ref:b,style:{height:g,overflow:"hidden",transition:"height 0.3s cubic-bezier(0.4, 0, 0.2, 1)"},"data-testid":`collapse-content-${e.replace(/\s+/g,"-").toLowerCase()}`,children:u&&m.jsx("div",{className:"bg-white p-4",children:r})})]})};function c0(){const{actions:{setProp:e},style:{backgroundColor:t}={}}=mt(r=>({style:r.data.props.style||{}}));return m.jsx(ql,{title:"Background",icon:m.jsx(ce.FiEdit3,{size:14,className:"text-[#170F4F]"}),defaultOpen:!1,children:m.jsxs("div",{className:"flex items-center gap-3",children:[m.jsx("input",{type:"color",value:t,onChange:r=>e(n=>n.style.backgroundColor=r.target.value),className:"h-10 w-10 cursor-pointer border border-[#E8E7EE] transition-colors hover:border-[#170F4F]","aria-label":"Background color"}),m.jsx("input",{type:"text",value:t,onChange:r=>e(n=>n.style.backgroundColor=r.target.value),className:"flex-1 border border-[#E8E7EE] px-3 py-2 text-sm transition-all focus:border-[#170F4F] focus:outline-none focus:ring-1 focus:ring-[#170F4F]",placeholder:"#ffffff"})]})})}function d0(){const{actions:{setProp:e},style:{borderStyle:t,borderRadius:r,borderColor:n,borderWidth:a}={}}=mt(i=>({style:i.data.props.style||{}}));return m.jsx(ql,{title:"Border",icon:m.jsx(ce.FiSquare,{size:14,className:"text-[#170F4F]"}),defaultOpen:!1,children:m.jsxs("div",{className:"space-y-4",children:[m.jsxs("div",{children:[m.jsx("span",{className:"mb-2 block text-xs text-[#A29FB9]",children:"Border Radius"}),m.jsx("div",{className:"grid grid-cols-4 gap-1",children:[{value:"",label:"0"},{value:"4px",label:"4px"},{value:"8px",label:"8px"},{value:"9999px",label:"1/2"}].map(i=>m.jsx("button",{onClick:()=>e(u=>u.style.borderRadius=i.value),className:`border border-[#E8E7EE] px-2 py-2 text-xs transition-all ${r===i.value?"border-[#170F4F] bg-[#170F4F] text-white":"text-[#A29FB9] hover:border-[#00BAC7] hover:bg-[#CCF1F4]"}`,children:i.label},i.value))})]}),m.jsxs("div",{children:[m.jsx("span",{className:"mb-2 block text-xs text-[#A29FB9]",children:"Border Width"}),m.jsx("div",{className:"grid grid-cols-4 gap-1",children:[{value:"0px",label:"0"},{value:"1px",label:"1px"},{value:"2px",label:"2px"},{value:"4px",label:"4px"}].map(i=>m.jsx("button",{onClick:()=>e(u=>u.style.borderWidth=i.value),className:`border border-[#E8E7EE] px-2 py-2 text-xs transition-all ${a===i.value?"border-[#170F4F] bg-[#170F4F] text-white":"text-[#A29FB9] hover:border-[#00BAC7] hover:bg-[#CCF1F4]"}`,children:i.label},i.value))})]}),m.jsxs("div",{children:[m.jsx("span",{className:"mb-2 block text-xs text-[#A29FB9]",children:"Border type"}),m.jsxs("div",{className:"mb-2 grid grid-cols-2 gap-2",children:[m.jsx("button",{onClick:()=>e(i=>i.style.borderStyle="none"),className:`border border-[#E8E7EE] px-3 py-2 text-xs transition-all ${t==="none"?"border-[#170F4F] bg-[#170F4F] text-white":"text-[#A29FB9] hover:border-[#00BAC7] hover:bg-[#CCF1F4]"}`,children:"None"}),m.jsx("button",{onClick:()=>e(i=>i.style.borderStyle="solid"),className:`border border-[#E8E7EE] px-3 py-2 text-xs transition-all ${t==="solid"?"border-[#170F4F] bg-[#170F4F] text-white":"text-[#A29FB9] hover:border-[#00BAC7] hover:bg-[#CCF1F4]"}`,children:"Light"}),m.jsx("button",{onClick:()=>e(i=>i.style.borderStyle="dotted"),className:`border border-[#E8E7EE] px-3 py-2 text-xs transition-all ${t==="dotted"?"border-[#170F4F] bg-[#170F4F] text-white":"text-[#A29FB9] hover:border-[#00BAC7] hover:bg-[#CCF1F4]"}`,children:"Dotted"}),m.jsx("button",{onClick:()=>e(i=>i.style.borderStyle="dashed"),className:`border border-[#E8E7EE] px-3 py-2 text-xs transition-all ${t==="dashed"?"border-[#170F4F] bg-[#170F4F] text-white":"text-[#A29FB9] hover:border-[#00BAC7] hover:bg-[#CCF1F4]"}`,children:"Dashed"})]}),m.jsx("span",{className:"mb-2 block text-xs text-[#A29FB9]",children:"Border Color"}),m.jsxs("div",{className:"flex items-center gap-3",children:[m.jsx("input",{type:"color",value:n,onChange:i=>e(u=>u.style.borderColor=i.target.value),className:"h-10 w-10 cursor-pointer border border-[#E8E7EE] transition-colors hover:border-[#170F4F]","aria-label":"Background color"}),m.jsx("input",{type:"text",value:n,onChange:i=>e(u=>u.style.borderColor=i.target.value),className:"flex-1 border border-[#E8E7EE] px-3 py-2 text-sm transition-all focus:border-[#170F4F] focus:outline-none focus:ring-1 focus:ring-[#170F4F]",placeholder:"#ffffff"})]})]})]})})}const Zn=I.forwardRef(({value:e,onChange:t,min:r,max:n,defaultUnit:a="px",allowedUnits:i=[],className:u="",...h},g)=>{const[p,b]=I.useState(""),[D,F]=I.useState(!1),S=I.useCallback(H=>{if(typeof H=="number")return{value:H,unit:a,text:`${H}${a}`};if(typeof H=="string"&&H.trim()){const q=H.trim(),Q=q.match(/^(-?\d*\.?\d+)(.*)$/);if(!Q)return{value:0,unit:a,text:""};const[,Y,ie]=Q,ee=parseFloat(Y),ve=ie.trim()||a,ge=i.length>0&&!i.includes(ve)?a:ve;return{value:ee,unit:ge,text:q}}return{value:0,unit:a,text:""}},[a,i]),R=I.useMemo(()=>{if(!e||typeof e=="string"&&e.trim()==="")return"";const H=S(e);return`${H.value}${H.unit}`},[e,S]),O=I.useCallback(H=>{b(H.target.value)},[]),N=I.useCallback(H=>{if(H.key==="Enter"){H.currentTarget.blur();return}if(H.key==="ArrowUp"||H.key==="ArrowDown"){H.preventDefault();const q=D?p:R;if(!q.trim())return;const Q=S(q);if(isNaN(Q.value))return;const Y=H.shiftKey?10:H.ctrlKey||H.metaKey?.1:1,ie=H.key==="ArrowUp"?Q.value+Y:Q.value-Y,ee=Math.min(n??ie,Math.max(r??ie,ie)),ve=`${ee}${Q.unit}`;b(ve),t?.({value:ee,unit:Q.unit,text:ve})}},[D,p,R,S,r,n,t]),_=I.useCallback(()=>{F(!0),!p&&e&&b(typeof e=="string"?e:R)},[p,e,R]),M=I.useCallback(()=>{if(F(!1),!p.trim()){b(""),t?.({value:0,unit:a,text:""});return}const H=S(p),q=Math.min(n??H.value,Math.max(r??H.value,H.value)),Q=`${q}${H.unit}`;b(Q),t?.({value:q,unit:H.unit,text:Q})},[p,t,a,S,r,n]),U=`border border-[#E8E7EE] bg-white text-center text-xs transition-all focus:border-[#170F4F] focus:outline-none focus:ring-1 focus:ring-[#170F4F] disabled:cursor-not-allowed disabled:bg-gray-50 disabled:text-gray-400 ${u.includes("px-")||u.includes("py-")?"":"px-1 py-0.5"}`;return m.jsx("input",{ref:g,type:"text",value:D?p:R,onChange:O,onFocus:_,onBlur:M,onKeyDown:N,className:`${U} ${u}`.trim(),...h})});Zn.displayName="DimensionInput";const f0={min:0,defaultUnit:"px",allowedUnits:["px","rem","%","vh","vw"],placeholder:"auto",className:"w-20 px-2 py-1 text-xs"};function h0(){const{actions:{setProp:e},style:{columns:t,columnSpacing:r,alignment:n,minHeight:a,width:i,height:u}={}}=mt(p=>({style:p.data.props.style||{}})),h=()=>{t<6&&e(p=>p.style.columns=t+1)},g=()=>{t>1&&e(p=>p.style.columns=t-1)};return m.jsx(ql,{title:"Layout",icon:m.jsx(ce.FiLayout,{size:14,className:"text-[#170F4F]"}),defaultOpen:!1,children:m.jsxs("div",{className:"space-y-4",children:[m.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[m.jsxs("div",{children:[m.jsx("span",{className:"mb-2 block text-xs text-[#A29FB9]",children:"Width"}),m.jsx(Zn,{value:i,onChange:p=>e(b=>b.style.width=p.text),...f0})]}),m.jsxs("div",{children:[m.jsx("span",{className:"mb-2 block text-xs text-[#A29FB9]",children:"Height"}),m.jsx(Zn,{value:u,onChange:p=>e(b=>b.style.height=p.text),...f0})]})]}),m.jsxs("div",{children:[m.jsxs("div",{className:"mb-2 flex items-center justify-between",children:[m.jsx("span",{className:"text-xs text-[#A29FB9]",children:"Min Height"}),m.jsxs("span",{className:"bg-[#E8E7EE] px-2 py-1 font-mono text-xs text-[#170F4F]",children:[a,"px"]})]}),m.jsx("input",{type:"range",min:"50",max:"400",step:"25",value:a,onChange:p=>e(b=>b.style.minHeight=parseInt(p.target.value)),className:"slider-modern h-2 w-full cursor-pointer appearance-none bg-[#E8E7EE]",style:{background:`linear-gradient(to right, #170F4F 0%, #170F4F ${(a-50)/350*100}%, #E8E7EE ${(a-50)/350*100}%, #E8E7EE 100%)`}})]}),m.jsxs("div",{children:[m.jsxs("div",{className:"mb-2 flex items-center justify-between",children:[m.jsx("span",{className:"text-xs text-[#A29FB9]",children:"Columns"}),m.jsx("span",{className:"bg-[#E8E7EE] px-2 py-1 font-mono text-xs text-[#170F4F]",children:t})]}),m.jsxs("div",{className:"flex items-center gap-3",children:[m.jsx("button",{onClick:g,disabled:t<=1,className:"flex h-8 w-8 items-center justify-center border border-[#E8E7EE] bg-[#E8E7EE] text-[#A29FB9] transition-all hover:border-[#00BAC7] hover:bg-[#CCF1F4] disabled:cursor-not-allowed disabled:opacity-30",children:m.jsx(ce.FiMinus,{size:14})}),m.jsx("div",{className:"flex flex-1 justify-center py-1",children:m.jsx("div",{className:"flex gap-1",children:Array.from({length:t},(p,b)=>m.jsx("div",{className:"h-8 w-4 border border-[#170F4F] bg-[#170F4F]"},b))})}),m.jsx("button",{onClick:h,disabled:t>=6,className:"flex h-8 w-8 items-center justify-center border border-[#E8E7EE] bg-[#E8E7EE] text-[#A29FB9] transition-all hover:border-[#00BAC7] hover:bg-[#CCF1F4] disabled:cursor-not-allowed disabled:opacity-30",children:m.jsx(ce.FiPlus,{size:14})})]})]}),t>1&&m.jsxs("div",{children:[m.jsxs("div",{className:"mb-2 flex items-center justify-between",children:[m.jsx("span",{className:"text-xs text-[#A29FB9]",children:"Column Gap"}),m.jsxs("span",{className:"bg-[#E8E7EE] px-2 py-1 font-mono text-xs text-[#170F4F]",children:[r,"px"]})]}),m.jsx("input",{type:"range",min:"0",max:"40",step:"2",value:r,onChange:p=>e(b=>b.style.columnSpacing=parseInt(p.target.value)),className:"slider-modern h-2 w-full cursor-pointer appearance-none bg-[#E8E7EE]",style:{background:`linear-gradient(to right, #170F4F 0%, #170F4F ${r/40*100}%, #E8E7EE ${r/40*100}%, #E8E7EE 100%)`}})]}),m.jsxs("div",{children:[m.jsx("span",{className:"mb-2 block text-xs text-[#A29FB9]",children:"Alignment"}),m.jsx($i,{options:[{value:"left",label:"Left"},{value:"center",label:"Center"},{value:"right",label:"Right"}],value:n,onChange:p=>e(b=>b.style.alignment=p),placeholder:"Choose alignment"})]})]})})}function Kl(e){if(e!=null){if(typeof e=="number")return e===0?"0":void 0;if(typeof e=="string"){const t=e.trim();return t==="0"?"0":/^-?\d+(\.\d+)?(px|em|rem|%|vh|vw|vmin|vmax|ch|ex|cm|mm|in|pt|pc)$/i.test(t)?t:void 0}}}function p0(e={},t){const r=Kl(e[t]),n=Kl(e[`${t}Top`]),a=Kl(e[`${t}Right`]),i=Kl(e[`${t}Bottom`]),u=Kl(e[`${t}Left`]);if(r){const h=r.trim().split(/\s+/);switch(h.length){case 1:return{top:h[0],right:h[0],bottom:h[0],left:h[0]};case 2:return{top:h[0],right:h[1],bottom:h[0],left:h[1]};case 3:return{top:h[0],right:h[1],bottom:h[2],left:h[1]};case 4:return{top:h[0],right:h[1],bottom:h[2],left:h[3]}}}return{top:n,right:a,bottom:i,left:u}}const ao={min:0,defaultUnit:"px",allowedUnits:["px","rem","%"],placeholder:"none",className:"w-10 px-0.5 py-0.5 text-xs"};function g0(){const{actions:{setProp:e},style:t={}}=mt(a=>({style:a.data.props.style||{}})),r=I.useMemo(()=>p0(t,"margin"),[t]),n=I.useMemo(()=>p0(t,"padding"),[t]);return m.jsx(ql,{title:"Spacing",icon:m.jsx(ce.FiMove,{size:14,className:"text-[#170F4F]"}),defaultOpen:!1,children:m.jsx("div",{className:"space-y-3",children:m.jsx("div",{children:m.jsxs("div",{className:"relative border border-[#dce7fe] bg-[#F9FAFB] p-2",children:[m.jsx("div",{className:"absolute left-1 top-[-2px] -translate-y-1/2",children:m.jsx("span",{className:"bg-[#F9FAFB] px-1 text-xs text-[#A29FB9]",style:{background:"linear-gradient(to bottom,transparent 0%,transparent 50%, #F9FAFB 50%, #F9FAFB 100%)"},children:"Margin"})}),m.jsx("div",{className:"mb-1 flex justify-center",children:m.jsx(Zn,{value:r.top,onChange:a=>e(i=>i.style.marginTop=a.text),...ao})}),m.jsxs("div",{className:"mb-2 flex items-center justify-between",children:[m.jsx(Zn,{value:r.left,onChange:a=>e(i=>i.style.marginLeft=a.text),...ao}),m.jsxs("div",{className:"relative mx-2 my-1 flex-1 border-2 border-dashed border-[#3B82F6] bg-[#EFF6FF] p-2",children:[m.jsx("div",{className:"absolute left-1 top-[-3px] -translate-y-1/2",children:m.jsx("span",{className:"bg-[#EFF6FF] px-1 text-xs text-[#3B82F6]",style:{background:"linear-gradient(to bottom, transparent 0%, transparent 50%, #EFF6FF 50%, #EFF6FF 100%)"},children:"Padding"})}),m.jsx("div",{className:"mb-1 flex justify-center",children:m.jsx(Zn,{value:n.top,onChange:a=>e(i=>i.style.paddingTop=a.text),...ao})}),m.jsxs("div",{className:"mb-1 flex items-center justify-between",children:[m.jsx(Zn,{value:n.left,onChange:a=>e(i=>i.style.paddingLeft=a.text),...ao}),m.jsx("div",{className:"mx-2 my-1 flex h-6 flex-1 items-center justify-center border border-[#D1D5DB] bg-white px-2 py-1",children:m.jsx("span",{className:"text-[10px] font-medium text-[#6B7280] opacity-60",children:"Content"})}),m.jsx(Zn,{value:n.right,onChange:a=>e(i=>i.style.paddingRight=a.text),...ao})]}),m.jsx("div",{className:"flex justify-center",children:m.jsx(Zn,{value:n.bottom,onChange:a=>e(i=>i.style.paddingBottom=a.text),...ao})})]}),m.jsx(Zn,{value:r.right,onChange:a=>e(i=>i.style.marginRight=a.text),...ao})]}),m.jsx("div",{className:"flex justify-center",children:m.jsx(Zn,{value:r.bottom,onChange:a=>e(i=>i.style.marginBottom=a.text),...ao})})]})})})})}function TE(){return m.jsxs(m.Fragment,{children:[m.jsx(h0,{}),m.jsx(g0,{}),m.jsx(c0,{}),m.jsx(d0,{})]})}function _E(e){return Xn({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8"},child:[]}]})(e)}function AE(e){return Xn({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"19",x2:"10",y1:"4",y2:"4"},child:[]},{tag:"line",attr:{x1:"14",x2:"5",y1:"20",y2:"20"},child:[]},{tag:"line",attr:{x1:"15",x2:"9",y1:"4",y2:"20"},child:[]}]})(e)}function NE(e){return Xn({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M4 7V4h16v3"},child:[]},{tag:"path",attr:{d:"M5 20h6"},child:[]},{tag:"path",attr:{d:"M13 4 8 20"},child:[]},{tag:"path",attr:{d:"m15 15 5 5"},child:[]},{tag:"path",attr:{d:"m20 15-5 5"},child:[]}]})(e)}function RE(e){return Xn({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"4 7 4 4 20 4 20 7"},child:[]},{tag:"line",attr:{x1:"9",x2:"15",y1:"20",y2:"20"},child:[]},{tag:"line",attr:{x1:"12",x2:"12",y1:"4",y2:"20"},child:[]}]})(e)}function OE(e){return Xn({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M6 4v6a6 6 0 0 0 12 0V4"},child:[]},{tag:"line",attr:{x1:"4",x2:"20",y1:"20",y2:"20"},child:[]}]})(e)}const BE=["Inter","Roboto","Arial","Georgia","Times New Roman","Montserrat","Lato","Oswald","Poppins"],PE=[{label:"Lighter",value:"lighter"},{label:"Normal",value:"normal"},{label:"Bold",value:"bold"},{label:"Bolder",value:"bolder"},{label:"100",value:"100"},{label:"200",value:"200"},{label:"300",value:"300"},{label:"400",value:"400"},{label:"500",value:"500"},{label:"600",value:"600"},{label:"700",value:"700"},{label:"800",value:"800"},{label:"900",value:"900"}],LE=[{label:"Normal",value:"normal"},{label:"No wrapped",value:"nowrap"}];function IE(){const{actions:{setProp:e},style:t={}}=mt(n=>({style:n.data.props.style})),r=I.useCallback(n=>{e(a=>{a.style={...a.style,...n}})},[e]);return m.jsx(ql,{title:"Typography",icon:m.jsx(RE,{size:14,className:"text-[#170F4F]"}),defaultOpen:!0,children:m.jsxs("div",{className:"space-y-4",children:[m.jsxs("div",{className:"space-y-3",children:[m.jsxs("div",{children:[m.jsx("label",{className:"mb-1 block text-xs text-[#A29FB9]",children:"Font"}),m.jsx($i,{options:BE.map(n=>({value:n,label:n})),value:t.fontFamily||"Inter",onChange:n=>r({fontFamily:n}),placeholder:"Choose font family"})]}),m.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[m.jsxs("div",{children:[m.jsx("label",{className:"mb-1 block text-xs text-[#A29FB9]",children:"Size"}),m.jsx("input",{type:"number",min:8,max:96,value:t.fontSize||20,onChange:n=>r({fontSize:Number(n.target.value)}),className:"w-full border border-[#E8E7EE] px-3 py-2 text-sm transition-all focus:border-[#170F4F] focus:outline-none focus:ring-1 focus:ring-[#170F4F]"})]}),m.jsxs("div",{children:[m.jsx("label",{className:"mb-1 block text-xs text-[#A29FB9]",children:"Weight"}),m.jsx($i,{options:PE,value:t.fontWeight||"normal",onChange:n=>r({fontWeight:n}),placeholder:"Choose font weight"})]})]})]}),m.jsxs("div",{className:"space-y-3",children:[m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx(ce.FiMove,{size:14,className:"text-[#170F4F]"}),m.jsx("h3",{className:"text-sm font-medium text-[#170F4F]",children:"Alignment"})]}),m.jsx("div",{className:"flex gap-2",children:["left","center","right","justify"].map(n=>m.jsx("button",{className:`rounded border px-3 py-2 text-xs font-medium transition-all focus:outline-none focus:ring-2 focus:ring-[#170F4F] ${t.textAlign===n?"border-[#00BAC7] bg-[#CCF1F4]":"border-[#E8E7EE] bg-white"}`,onClick:()=>r({textAlign:n}),children:n.charAt(0).toUpperCase()+n.slice(1)},n))}),m.jsxs("div",{children:[m.jsx("label",{className:"mb-1 block text-xs text-[#A29FB9]",children:"Line Break"}),m.jsx($i,{options:LE,value:t.whiteSpace||"normal",onChange:n=>r({whiteSpace:n}),placeholder:"Choose whiteSpace"})]})]}),m.jsxs("div",{className:"space-y-3",children:[m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx(NE,{size:14,className:"text-[#170F4F]"}),m.jsx("h3",{className:"text-sm font-medium text-[#170F4F]",children:"Formatting"})]}),m.jsxs("div",{className:"flex gap-2",children:[m.jsx("button",{className:`rounded border px-3 py-2 text-xs font-bold ${t?.fontWeight==="bold"?"border-[#00BAC7] bg-[#CCF1F4]":"border-[#E8E7EE] bg-white"}`,onClick:()=>r({fontWeight:t?.fontWeight==="bold"?"normal":"bold"}),children:m.jsx(_E,{size:14,className:"text-[#170F4F]"})}),m.jsx("button",{className:`rounded border px-3 py-2 text-xs italic ${t?.fontStyle==="italic"?"border-[#00BAC7] bg-[#CCF1F4]":"border-[#E8E7EE] bg-white"}`,onClick:()=>r({fontStyle:t?.fontStyle==="italic"?"normal":"italic"}),children:m.jsx(AE,{size:14,className:"text-[#170F4F]"})}),m.jsx("button",{className:`rounded border px-3 py-2 text-xs underline ${t?.textDecoration==="underline"?"border-[#00BAC7] bg-[#CCF1F4]":"border-[#E8E7EE] bg-white"}`,onClick:()=>r({textDecoration:t?.textDecoration==="underline"?"none":"underline"}),children:m.jsx(OE,{size:14,className:"text-[#170F4F]"})})]})]}),m.jsxs("div",{className:"space-y-3",children:[m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx(ce.FiEdit3,{size:14,className:"text-[#170F4F]"}),m.jsx("h3",{className:"text-sm font-medium text-[#170F4F]",children:"Text Color"})]}),m.jsxs("div",{className:"flex items-center gap-3",children:[m.jsx("input",{type:"color",value:t.color||"#000000",onChange:n=>r({color:n.target.value}),className:"h-10 w-10 cursor-pointer border border-[#E8E7EE] transition-colors hover:border-[#170F4F]","aria-label":"Text color"}),m.jsx("input",{type:"text",value:t.color||"#000000",onChange:n=>r({color:n.target.value}),className:"flex-1 border border-[#E8E7EE] px-3 py-2 text-sm transition-all focus:border-[#170F4F] focus:outline-none focus:ring-1 focus:ring-[#170F4F]",placeholder:"#000000"})]})]})]})})}const ME=Object.entries({default:TE,typography:IE,layout:h0,spacing:g0,background:c0,border:d0,box:Rv,text:kE,button:wh,image:Dh,anchor:xh}).map(([e,t])=>({id:e,component:t}));function zE(){const{selected:e,query:t}=Hr(a=>({selected:a.events.selected}));if(!e||e.size===0)return m.jsx("div",{className:"flex h-full items-center justify-center text-gray-500",children:m.jsxs("div",{className:"text-center",children:[m.jsx(ce.FiSettings,{size:48,className:"mx-auto mb-4 text-gray-300"}),m.jsx("p",{className:"text-sm",children:"Select a component to see its settings"})]})});const r=Array.from(e)[0],n=t.node(r).get();if(!n)return null;if(n&&n.data.custom&&n.data.custom.settings){const a=n.data.custom.settings,u=(Array.isArray(a)?a:[a]).map(h=>ME.find(g=>g.id===h)).filter(Boolean);if(u.length>0)return m.jsx(m.Fragment,{children:u.map(h=>{const g=h.component;return I.createElement(ah,{id:r,related:!0,key:h.id},m.jsx(g,{}))})})}return m.jsx("div",{className:"p-4",children:m.jsx("p",{className:"text-sm text-gray-500",children:"No custom settings available for this component."})})}const HE=[{id:"settings",label:"Settings",icon:ce.FiSettings},{id:"info",label:"Info",icon:ce.FiInfo},{id:"actions",label:"Actions",icon:ce.FiEye}];function jE(){const{selected:e,query:t}=Hr(u=>({selected:u.events.selected})),[r,n]=I.useState("settings"),a=I.useMemo(()=>({settings:m.jsx(zE,{}),info:m.jsx(SE,{}),actions:m.jsx(FE,{})}),[]),i=I.useMemo(()=>{if(!e||e.size===0)return null;const u=Array.from(e)[0],h=t.node(u).get();return h?{id:u,type:h.data.type,displayName:h.data.displayName||String(h.data.type),props:h.data.props,isCanvas:h.data.isCanvas,isDeletable:!0,isDuplicateable:!0,parent:h.data.parent}:null},[e,t]);return m.jsxs("div",{className:"flex h-full w-80 flex-col border-l border-[#e8e7ee] bg-white",children:[i&&m.jsx(EE,{name:String(i.displayName)}),i&&m.jsx("div",{className:"flex border-b border-[#e8e7ee]",children:HE.map(u=>{const h=u.icon;return m.jsxs("button",{onClick:()=>n(u.id),className:`flex flex-1 items-center justify-center gap-2 px-3 py-2 text-xs font-medium transition-colors duration-200 ${r===u.id?"border-b-2 border-[#170f4f] bg-white text-[#170f4f]":"text-gray-500 hover:bg-gray-50 hover:text-[#170f4f]"}`,children:[m.jsx(h,{size:14}),u.label]},u.id)})}),m.jsx("div",{className:"flex-1 overflow-y-auto",children:a[r]})]})}function UE({blocks:e,searchTerm:t}){const{connectors:r,query:n}=Hr(),[a,i]=I.useState(new Set),u=I.useRef({}),[h,g]=I.useState({}),p=I.useMemo(()=>t.trim()?e.filter(_=>_.label.toLowerCase().includes(t.toLowerCase())||_.category?.toLowerCase().includes(t.toLowerCase())):e,[e,t]),b=p.reduce((_,M)=>{const U=M.category||"other";return _[U]||(_[U]=[]),_[U].push(M),_},{}),D=_=>{i(M=>{const U=new Set(M);return U.has(_)?U.delete(_):U.add(_),U})};I.useEffect(()=>{const _=Object.keys(b);if(_[0]&&a.size===0){const U=new Set(_.slice(1));i(U)}},[b]),I.useEffect(()=>{Object.keys(u.current).forEach(_=>{const M=u.current[_];if(M){const U=a.has(_);g(U?H=>({...H,[_]:0}):H=>({...H,[_]:M.scrollHeight}))}})},[a,p]);const F=_=>m.jsxs("div",{ref:M=>{M&&r.create(M,I.createElement(_.component,{}),{})},className:"group flex cursor-move flex-col items-center gap-1.5 rounded-md bg-white p-2.5 text-center transition-all duration-200 hover:bg-gray-50",draggable:!0,onDragStart:M=>{M.currentTarget.style.opacity="0.5"},onDragEnd:M=>{M.currentTarget.style.opacity="1"},title:`Drag to add ${_.label} component`,children:[m.jsx("div",{className:"flex h-7 w-7 items-center justify-center rounded bg-[#170F4F] text-sm text-white",children:_.icon}),m.jsx("span",{className:"text-xs font-medium leading-tight text-gray-700",children:_.label})]},_.id),S={layout:"Layout",content:"Content",interactive:"Interactive",media:"Media",dynamic:"Dynamic",other:"Other"},R={layout:m.jsx(ce.FiGrid,{size:14}),content:m.jsx(ce.FiType,{size:14}),interactive:m.jsx(ce.FiMousePointer,{size:14}),media:m.jsx(ce.FiImage,{size:14}),dynamic:m.jsx(ce.FiCode,{size:14}),other:m.jsx(ce.FiPackage,{size:14})},O=n.node("ROOT").get(),N=O&&O.data.nodes&&O.data.nodes.length>0;return m.jsxs("div",{className:"flex h-full flex-col",children:[!N&&m.jsx("div",{className:"border-b border-[#E8E7EE] bg-gray-50/50 px-3 py-2",children:m.jsx("p",{className:"text-xs text-gray-500",children:"Drag components to the canvas to add them"})}),m.jsxs("div",{className:"flex-1 overflow-y-auto p-3",children:[Object.entries(b).map(([_,M])=>{const U=a.has(_);return m.jsxs("div",{className:"last:mb-0",children:[m.jsxs("button",{onClick:()=>D(_),className:"mb-3 flex w-full items-center gap-2 rounded p-2 text-gray-700 transition-all duration-200 hover:bg-gray-50",children:[m.jsx("div",{className:"flex h-5 w-5 items-center justify-center rounded transition-colors hover:bg-gray-100",children:U?m.jsx(ce.FiChevronRight,{size:12,className:"text-gray-400"}):m.jsx(ce.FiChevronDown,{size:12,className:"text-gray-400"})}),m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx("div",{className:"text-gray-600",children:R[_]||R.other}),m.jsx("h3",{className:"text-sm font-medium text-gray-900",children:S[_]||_})]}),m.jsx("div",{className:"h-px flex-1 bg-gray-200"}),m.jsx("span",{className:"text-xs font-medium text-gray-500",children:M.length})]}),m.jsx("div",{ref:H=>{u.current[_]=H},style:{height:h[_],overflow:"hidden",transition:"height 0.3s cubic-bezier(0.4, 0, 0.2, 1)"},children:!U&&m.jsx("div",{className:"pb-1",children:m.jsx("div",{className:"grid grid-cols-2 gap-1.5",children:M.map(F)})})})]},_)}),Object.entries(b).length===0&&m.jsxs("div",{className:"flex flex-col items-center justify-center py-8 text-center",children:[m.jsx("div",{className:"mb-3 flex h-10 w-10 items-center justify-center rounded-lg bg-gray-100",children:m.jsx("span",{className:"text-lg",children:"📦"})}),m.jsx("h3",{className:"mb-1 text-sm font-medium text-gray-900",children:t?"No components found":"No blocks available"}),m.jsx("p",{className:"text-xs text-gray-500",children:t?"Try different search terms":"Add components to get started"})]})]})]})}const WE=e=>Wl.find(r=>{const n=r.label.toLowerCase(),a=r.id.toLowerCase(),i=e.toLowerCase();return n===i||a===i})?.icon||m.jsx(ce.FiMousePointer,{size:16});function GE({searchTerm:e}){const[t,r]=I.useState(new Set),{nodes:n,actions:a,selected:i}=Hr(S=>({nodes:S.nodes,selected:S.events.selected})),u=S=>{const R=new Set(t);R.has(S)?R.delete(S):R.add(S),r(R)},h=(S,R)=>{if(!R.trim())return S;const O=new RegExp(`(${R.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")})`,"gi");return S.split(O).map((_,M)=>O.test(_)?m.jsx("span",{className:"rounded bg-yellow-200 px-0.5 text-yellow-900",children:_},M):_)},g=(S,R=0,O=!1,N=[])=>{const _=n[S];if(!_)return null;const M=_.data.isCanvas,U=_.data.nodes||[],H=_.data.displayName||(typeof _.data.type=="string"?_.data.type:_.data.type?.displayName)||S,q=i&&i.has(S),Q=typeof _.data.name=="string"?_.data.name:_.data?.displayName||"",Y=U.length>0,ie=t.has(S),ee=e.trim()===""||H.toLowerCase().includes(e.toLowerCase())||Q.toLowerCase().includes(e.toLowerCase()),ve=e.trim()!==""&&U.some(Ie=>{const Ae=n[Ie];if(!Ae)return!1;const Ge=Ae.data.displayName||(typeof Ae.data.type=="string"?Ae.data.type:Ae.data.type?.displayName)||Ie,Ue=typeof Ae.data.name=="string"?Ae.data.name:Ae.data?.displayName||"";return Ge.toLowerCase().includes(e.toLowerCase())||Ue.toLowerCase().includes(e.toLowerCase())});return ee||ve?m.jsxs("div",{className:"flex flex-col",children:[m.jsxs("div",{className:"flex w-full items-center",children:[R>0&&m.jsx("div",{style:{width:R*20}}),m.jsxs("div",{className:`group flex w-full items-center rounded-md px-2 py-1.5 transition-colors ${q?"bg-[#170F4F]/10 hover:bg-[#170F4F]/15":"hover:bg-gray-50"} ${ee&&e.trim()?"ring-1 ring-yellow-300":""}`,children:[Y?m.jsx("button",{onClick:()=>u(S),className:"mr-1.5 flex h-4 w-4 items-center justify-center rounded opacity-0 transition-opacity hover:bg-gray-200 group-hover:opacity-100",children:ie?m.jsx(ce.FiChevronRight,{size:12,className:"text-gray-500"}):m.jsx(ce.FiChevronDown,{size:12,className:"text-gray-500"})}):m.jsx("div",{className:"w-6"}),m.jsx("div",{className:`mr-2.5 flex h-5 w-5 items-center justify-center ${q?"text-[#170F4F]":"text-gray-600"}`,children:WE(Q)}),m.jsx("button",{className:`flex-1 text-left text-sm font-medium transition-colors ${q?"text-[#170F4F]":"text-gray-700 group-hover:text-[#170F4F]"}`,onClick:()=>a.selectNode(S),children:h(H,e)})]})]}),M&&Y&&(!ie||e.trim()!=="")&&m.jsx("div",{className:"ml-0",children:U.map((Ie,Ae)=>g(Ie,R+1,Ae===U.length-1,[...N,O]))})]},S):null},b=n.ROOT?.data?.nodes||[],D=b.length>0,F=t.has("canvas");return m.jsx("div",{className:"flex h-full flex-col",children:m.jsxs("div",{className:"flex-1 space-y-0.5 overflow-y-auto p-2",children:[m.jsxs("div",{className:"flex flex-col",children:[m.jsx("div",{className:"flex w-full items-center",children:m.jsxs("div",{className:`group flex w-full items-center rounded-md px-2 py-1.5 transition-colors ${i&&i.has("ROOT")?"bg-[#170F4F]/10 hover:bg-[#170F4F]/15":"hover:bg-gray-50"}`,children:[D?m.jsx("button",{onClick:()=>u("canvas"),className:"mr-1.5 flex h-4 w-4 items-center justify-center rounded opacity-0 transition-opacity hover:bg-gray-200 group-hover:opacity-100",children:F?m.jsx(ce.FiChevronRight,{size:12,className:"text-gray-500"}):m.jsx(ce.FiChevronDown,{size:12,className:"text-gray-500"})}):m.jsx("div",{className:"w-6"}),m.jsx("div",{className:"mr-2.5 flex h-5 w-5 items-center justify-center text-[#170F4F]",children:m.jsx(ce.FiFile,{size:14})}),m.jsx("button",{className:`flex-1 text-left text-sm font-medium transition-colors ${i&&i.has("ROOT")?"text-[#170F4F]":"text-gray-800 group-hover:text-[#170F4F]"}`,onClick:()=>a.selectNode("ROOT"),children:"Template"})]})}),D&&(!F||e.trim()!=="")&&m.jsx("div",{children:b.map((S,R)=>g(S,1,R===b.length-1,[!0]))})]}),!D&&m.jsxs("div",{className:"flex flex-col items-center justify-center py-8 text-center",children:[m.jsx("div",{className:"mb-2 flex h-10 w-10 items-center justify-center rounded-lg bg-gray-100",children:m.jsx(ce.FiLayers,{size:16,className:"text-gray-400"})}),m.jsx("p",{className:"mb-1 text-xs text-gray-500",children:"No layers yet"}),m.jsx("p",{className:"text-xs text-gray-400",children:"Add components to see them here"})]})]})})}const VE=({blocks:e=Wl})=>{const[t,r]=I.useState("blocks"),[n,a]=I.useState("");return m.jsxs("div",{className:"flex h-full w-64 flex-col overflow-hidden border-r border-[#E8E7EE] bg-white",children:[m.jsx("div",{className:"border-b border-[#E8E7EE] bg-gray-50 p-3",children:m.jsxs("div",{className:"relative",children:[m.jsx("input",{type:"text",placeholder:"Search components...",value:n,onChange:i=>a(i.target.value),className:"w-full border border-[#E8E7EE] bg-white px-3 py-2 pl-9 pr-9 text-sm text-gray-900 placeholder-gray-500 transition-all duration-200 focus:border-[#170F4F] focus:outline-none focus:ring-1 focus:ring-[#170F4F]/20"}),m.jsx(ce.FiSearch,{size:16,className:"absolute left-3 top-1/2 -translate-y-1/2 text-gray-400"}),n&&m.jsx("button",{onClick:()=>a(""),className:"absolute right-3 top-1/2 -translate-y-1/2 rounded p-0.5 text-gray-400 transition-colors duration-200 hover:bg-gray-100 hover:text-gray-600",children:m.jsx(ce.FiX,{size:14})})]})}),m.jsxs("div",{className:"flex border-b border-[#E8E7EE]",children:[m.jsx("button",{className:`flex-1 border-b py-3 text-sm font-medium transition-colors duration-200 ${t==="blocks"?"border-[#170F4F] text-[#170F4F]":"border-transparent text-[#A29FB9] hover:text-[#00BAC7]"}`,onClick:()=>r("blocks"),children:"Blocks"}),m.jsx("button",{className:`flex-1 border-b py-3 text-sm font-medium transition-colors duration-200 ${t==="layers"?"border-[#170F4F] text-[#170F4F]":"border-transparent text-[#A29FB9] hover:text-[#00BAC7]"}`,onClick:()=>r("layers"),children:"Layers"})]}),m.jsx("div",{className:"flex-1 overflow-hidden",children:t==="blocks"?m.jsx(UE,{blocks:e,searchTerm:n}):m.jsx(GE,{searchTerm:n})})]})};function YE(e,t=300){let r;return(...n)=>{clearTimeout(r),r=setTimeout(()=>e(...n),t)}}const JE=({hasChildren:e})=>{const{device:t}=ac();return e?null:m.jsx("div",{className:`pointer-events-none absolute inset-0 left-auto right-auto z-10 flex items-center justify-center ${t==="mobile"?"w-[10%]":"w-[20%]"}`,children:m.jsxs("div",{className:"mx-auto p-6 text-center",children:[m.jsx("div",{className:"mx-auto mb-4 flex h-16 w-16 items-center justify-center border border-[#170F4F] bg-[#E8E7EE]",children:m.jsx("span",{className:"text-2xl text-[#170F4F]",children:"📄"})}),m.jsx("h3",{className:"mb-2 text-lg font-medium text-[#170F4F]",children:"Start building your page"}),m.jsx("p",{className:"text-sm text-[#A29FB9]",children:"Drag components from the sidebar to create your page layout."})]})})},XE=({hasCanvasContent:e,showCodePanel:t})=>m.jsxs("div",{className:`${t?"w-1/2":"w-full"} mx-auto flex h-full flex-1 items-start justify-center overflow-scroll bg-gradient-to-br from-gray-100 to-gray-200 p-6 transition-all duration-300`,style:{maxHeight:"calc(100vh - 72px)"},children:[m.jsx(JE,{hasChildren:e}),m.jsx(ew,{children:m.jsx($u,{canvas:!0,is:"div",...Ch,style:{...Ch.style,maxWidth:Uv.desktop.width}})})]}),ZE=()=>{const[e,t]=I.useState(!1),r=()=>{console.log("Export HTML clicked"),t(!1)},n=()=>{console.log("Data Source clicked"),t(!1)};return I.useEffect(()=>{const a=i=>{e&&t(!1)};return document.addEventListener("mousedown",a),()=>{document.removeEventListener("mousedown",a)}},[e]),m.jsxs("div",{className:"relative",children:[m.jsx("button",{onClick:()=>t(!e),className:"rounded p-1.5 text-[#6B7280] transition-all duration-200 hover:bg-[#F5F5F7] hover:text-[#170F4F]",title:"Menu options",children:m.jsx(ce.FiMenu,{size:16})}),e&&m.jsxs("div",{className:"absolute left-0 top-full z-50 mt-1 w-48 rounded-md border border-[#E8E7EE] bg-white py-1 shadow-lg",children:[m.jsxs("button",{onClick:r,className:"flex w-full items-center gap-3 px-4 py-2 text-sm text-gray-700 hover:bg-gray-50",children:[m.jsx(ce.FiDownload,{size:14}),"Export HTML"]}),m.jsxs("button",{onClick:n,className:"flex w-full items-center gap-3 px-4 py-2 text-sm text-gray-700 hover:bg-gray-50",children:[m.jsx(ce.FiDatabase,{size:14}),"Data Source"]})]})]})},qE=({canvasSize:e,showCodePanel:t,onPreviewModeToggle:r,onCanvasSizeChange:n,onCodePanelToggle:a,onSave:i,templateIsModified:u=!1,templateName:h,onTemplateNameChange:g,templateReference:p})=>{const[b,D]=I.useState(!1),F=I.useRef(null);I.useEffect(()=>{b&&F.current&&(F.current.focus(),F.current.select())},[b]);const S=()=>{D(!1)},R=_=>{_.key==="Enter"&&D(!1),_.key==="Escape"&&D(!1)},O=_=>{g?.(_.target.value)},N=async _=>{try{await navigator.clipboard.writeText(_)}catch(M){console.error("Failed to copy slug:",M)}};return m.jsx("div",{className:"border-b border-[#E8E7EE] bg-white",children:m.jsx("div",{className:"px-3 py-3 sm:px-8",children:m.jsxs("div",{className:"relative flex items-center justify-between",children:[m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx(ZE,{}),m.jsx("div",{className:"group",children:b?m.jsx("input",{ref:F,className:"w-full truncate rounded border-none bg-transparent px-1.5 text-base font-bold text-[#170F4F] focus:outline-none focus:ring-1 focus:ring-[#170F4F]",value:h,onChange:O,onBlur:S,onKeyDown:R,placeholder:"Untitled Template","aria-label":"Template name"}):m.jsxs("div",{className:"flex items-center",children:[m.jsxs("h1",{className:"cursor-pointer rounded px-1.5 py-1 text-base font-bold text-[#170F4F] hover:bg-gray-50",title:"Double-click to edit",onDoubleClick:()=>D(!0),children:[m.jsx("span",{className:"truncate",children:h||"Untitled Template"}),p&&m.jsxs(m.Fragment,{children:[m.jsx("span",{className:"mx-1.5 text-gray-300",children:"•"}),m.jsx("span",{className:"rounded-sm bg-gray-100 px-1 py-0.5 font-mono text-[10px] font-medium text-gray-600",children:p})]})]}),p&&m.jsx("button",{onClick:()=>N(p),className:"rounded p-0.5 opacity-0 transition-opacity hover:bg-gray-50 hover:text-[#170F4F] group-hover:opacity-100",title:"Copy slug to clipboard",children:m.jsx(ce.FiCopy,{size:9,className:"text-gray-400"})})]})})]}),m.jsx("div",{className:"absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2",children:m.jsx("div",{className:"flex items-center gap-1 border border-[#E8E7EE] bg-white p-1",children:["desktop","tablet","mobile"].map(_=>{const M={desktop:m.jsx(ce.FiMonitor,{size:16}),tablet:m.jsx(ce.FiTablet,{size:16}),mobile:m.jsx(ce.FiSmartphone,{size:16})};return m.jsxs("button",{className:`flex items-center gap-1.5 px-2 py-1 text-xs font-medium transition-all duration-200 ${e===_?"bg-[#170F4F] text-white":"text-[#170F4F] hover:bg-[#F5F5F7]"}`,onClick:()=>n(_),title:`Switch to ${_} view`,children:[m.jsx("span",{className:"inline sm:hidden",children:M[_]}),m.jsx("span",{className:"hidden sm:inline",children:_.charAt(0).toUpperCase()+_.slice(1)})]},_)})})}),m.jsxs("div",{className:"flex items-center gap-2",children:[u?m.jsxs("div",{className:"flex items-center gap-1 text-orange-600",children:[m.jsx("div",{className:"h-1.5 w-1.5 animate-pulse rounded-full bg-orange-500"}),m.jsx("span",{className:"text-xs font-medium",children:"Unsaved"})]}):m.jsxs("div",{className:"flex items-center gap-1 text-green-600",children:[m.jsx("div",{className:"h-1.5 w-1.5 rounded-full bg-green-500"}),m.jsx("span",{className:"text-xs font-medium",children:"Saved"})]}),m.jsx("button",{className:`p-1.5 transition-all duration-200 ${t?"bg-[#170F4F] text-white":"text-[#6B7280] hover:bg-[#F5F5F7] hover:text-[#170F4F]"}`,onClick:a,title:"Toggle Code Editor",children:m.jsx(ce.FiCode,{size:16})}),m.jsx("button",{onClick:r,className:"p-1.5 text-[#6B7280] transition-all duration-200 hover:bg-[#F5F5F7] hover:text-[#170F4F]",title:"Preview template",children:m.jsx(ce.FiEye,{size:16})}),i&&m.jsxs("button",{className:"relative flex items-center gap-1.5 bg-[#170F4F] px-3 py-1.5 text-xs font-medium text-white transition-all duration-200 hover:bg-[#009CA8]",onClick:i,title:"Save changes",children:[m.jsx(ce.FiSave,{size:14}),"Save",u&&m.jsx("span",{className:"absolute -right-0.5 -top-0.5 h-2 w-2 animate-pulse bg-orange-500"})]})]})]})})})},KE=I.lazy(()=>Promise.resolve().then(()=>ak).then(e=>({default:e.DataSourceModal}))),QE=({showCodePanel:e=!1,onPreviewToggle:t,onCodePanelToggle:r,codePanelChildren:n})=>{CE();const a=ac(),{query:i,store:u}=Hr(),{template:h,updateTemplate:g,saveTemplate:p}=u0(),{export:b}=Fh(),[D,F]=I.useState(!1),[S,R]=I.useState(!1),O=I.useCallback(()=>{if(!h)return"";const M=i.serialize();return!M||typeof M=="object"&&Object.keys(M).length<=1?"":b({inlineStyles:!0,prettify:!0,includeComments:!1})},[h,i,b]),N=async()=>{if(!h){alert("No template loaded to save");return}try{g({content:O()}),await p(),alert("Template saved successfully!")}catch(M){console.error("Error saving template:",M),alert("Error saving template. Please try again.")}},_=()=>{};return I.useEffect(()=>{if(!S&&h&&h?.content)try{a.loadTemplate(h.content)}catch(M){console.error("Error loading template into canvas:",M)}finally{R(!0)}},[h?.id]),I.useEffect(()=>{u.subscribe(YE(()=>{g({content:O()})},500),()=>{})},[]),m.jsxs("div",{className:"flex h-screen flex-col",children:[m.jsx(qE,{canvasSize:a.device,showCodePanel:e,onPreviewModeToggle:t||(()=>{}),onCanvasSizeChange:a.setDevice,onCodePanelToggle:r||(()=>{}),onSave:N,templateIsModified:h?.isModified,templateName:h?.title,onTemplateNameChange:M=>{g({title:M})},templateReference:h?.slug}),m.jsxs("div",{className:"flex flex-1 overflow-hidden",children:[!e&&m.jsx(VE,{}),m.jsxs("div",{className:`flex flex-1 ${e?"flex-row":"flex-col"}`,children:[e?n:null,m.jsx(XE,{canvasSize:a.device,hasCanvasContent:a.isEmpty,showCodePanel:e})]}),!e&&m.jsx(jE,{})]}),D&&m.jsx(I.Suspense,{fallback:m.jsx("div",{children:"Loading..."}),children:m.jsx(KE,{isOpen:D,onClose:()=>F(!1),onDataImport:_})})]})},m0=({children:e,isHover:t,isSelected:r,name:n,showIndicator:a=!0,width:i,height:u})=>{const h=t&&!r&&a,g=r&&a,p=h||g,b={outline:g?"1px solid #170f4fff":h?"1px dashed #00BAC7":"1px solid transparent",background:g?"rgba(23,15,79,0.03)":h?"rgba(0,186,199,0.02)":"transparent",cursor:"pointer",overflow:"visible",position:"relative",width:i,height:u};return m.jsxs("div",{style:b,className:r?"avoid-transition":"",children:[p&&m.jsxs("div",{className:`absolute left-0 top-0 flex items-center gap-1.5 px-2 py-1 text-xs font-medium backdrop-blur-sm ${g?"border border-[#170F4F] bg-[#170F4F] text-white shadow-lg":"border border-[#00BAC7] bg-[#00BAC7] text-white shadow-md"} `,style:{borderRadius:"4px",transform:"translateY(-100%)",transformOrigin:"left bottom",marginTop:"-2px",zIndex:99999,position:"absolute",transition:"all 0.15s ease-out"},onClick:D=>{D.stopPropagation(),D.preventDefault()},onMouseDown:D=>{D.stopPropagation(),D.preventDefault()},children:[m.jsx("div",{className:"flex h-3 w-3 items-center justify-center",children:g?m.jsx("div",{className:"h-2 w-2 rounded-full bg-white"}):m.jsx("div",{className:"h-2 w-2 rounded-full bg-white opacity-70"})}),m.jsx("span",{className:"select-none whitespace-nowrap leading-none",children:n})]}),e]})};var Ht=function(){return Ht=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},Ht.apply(this,arguments)},v0={width:"100%",height:"10px",top:"0px",left:"0px",cursor:"row-resize"},b0={width:"10px",height:"100%",top:"0px",left:"0px",cursor:"col-resize"},bc={width:"20px",height:"20px",position:"absolute",zIndex:1},$E={top:Ht(Ht({},v0),{top:"-5px"}),right:Ht(Ht({},b0),{left:void 0,right:"-5px"}),bottom:Ht(Ht({},v0),{top:void 0,bottom:"-5px"}),left:Ht(Ht({},b0),{left:"-5px"}),topRight:Ht(Ht({},bc),{right:"-10px",top:"-10px",cursor:"ne-resize"}),bottomRight:Ht(Ht({},bc),{right:"-10px",bottom:"-10px",cursor:"se-resize"}),bottomLeft:Ht(Ht({},bc),{left:"-10px",bottom:"-10px",cursor:"sw-resize"}),topLeft:Ht(Ht({},bc),{left:"-10px",top:"-10px",cursor:"nw-resize"})},eF=I.memo(function(e){var t=e.onResizeStart,r=e.direction,n=e.children,a=e.replaceStyles,i=e.className,u=I.useCallback(function(p){t(p,r)},[t,r]),h=I.useCallback(function(p){t(p,r)},[t,r]),g=I.useMemo(function(){return Ht(Ht({position:"absolute",userSelect:"none"},$E[r]),a??{})},[a,r]);return m.jsx("div",{className:i||void 0,style:g,onMouseDown:u,onTouchStart:h,children:n})}),tF=(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),Da=function(){return Da=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},Da.apply(this,arguments)},rF={width:"auto",height:"auto"},yc=function(e,t,r){return Math.max(Math.min(e,r),t)},y0=function(e,t,r){var n=Math.round(e/t);return n*t+r*(n-1)},Js=function(e,t){return new RegExp(e,"i").test(t)},xc=function(e){return!!(e.touches&&e.touches.length)},nF=function(e){return!!((e.clientX||e.clientX===0)&&(e.clientY||e.clientY===0))},x0=function(e,t,r){r===void 0&&(r=0);var n=t.reduce(function(i,u,h){return Math.abs(u-e)<Math.abs(t[i]-e)?h:i},0),a=Math.abs(t[n]-e);return r===0||a<r?t[n]:e},ap=function(e){return e=e.toString(),e==="auto"||e.endsWith("px")||e.endsWith("%")||e.endsWith("vh")||e.endsWith("vw")||e.endsWith("vmax")||e.endsWith("vmin")?e:"".concat(e,"px")},wc=function(e,t,r,n){if(e&&typeof e=="string"){if(e.endsWith("px"))return Number(e.replace("px",""));if(e.endsWith("%")){var a=Number(e.replace("%",""))/100;return t*a}if(e.endsWith("vw")){var a=Number(e.replace("vw",""))/100;return r*a}if(e.endsWith("vh")){var a=Number(e.replace("vh",""))/100;return n*a}}return e},aF=function(e,t,r,n,a,i,u){return n=wc(n,e.width,t,r),a=wc(a,e.height,t,r),i=wc(i,e.width,t,r),u=wc(u,e.height,t,r),{maxWidth:typeof n>"u"?void 0:Number(n),maxHeight:typeof a>"u"?void 0:Number(a),minWidth:typeof i>"u"?void 0:Number(i),minHeight:typeof u>"u"?void 0:Number(u)}},iF=function(e){return Array.isArray(e)?e:[e,e]},oF=["as","ref","style","className","grid","gridGap","snap","bounds","boundsByDirection","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],w0="__resizable_base__",sF=(function(e){tF(t,e);function t(r){var n,a,i,u,h=e.call(this,r)||this;return h.ratio=1,h.resizable=null,h.parentLeft=0,h.parentTop=0,h.resizableLeft=0,h.resizableRight=0,h.resizableTop=0,h.resizableBottom=0,h.targetLeft=0,h.targetTop=0,h.delta={width:0,height:0},h.appendBase=function(){if(!h.resizable||!h.window)return null;var g=h.parentNode;if(!g)return null;var p=h.window.document.createElement("div");return p.style.width="100%",p.style.height="100%",p.style.position="absolute",p.style.transform="scale(0, 0)",p.style.left="0",p.style.flex="0 0 100%",p.classList?p.classList.add(w0):p.className+=w0,g.appendChild(p),p},h.removeBase=function(g){var p=h.parentNode;p&&p.removeChild(g)},h.state={isResizing:!1,width:(a=(n=h.propsSize)===null||n===void 0?void 0:n.width)!==null&&a!==void 0?a:"auto",height:(u=(i=h.propsSize)===null||i===void 0?void 0:i.height)!==null&&u!==void 0?u:"auto",direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},h.onResizeStart=h.onResizeStart.bind(h),h.onMouseMove=h.onMouseMove.bind(h),h.onMouseUp=h.onMouseUp.bind(h),h}return Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"window",{get:function(){return!this.resizable||!this.resizable.ownerDocument?null:this.resizable.ownerDocument.defaultView},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||rF},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){var r=0,n=0;if(this.resizable&&this.window){var a=this.resizable.offsetWidth,i=this.resizable.offsetHeight,u=this.resizable.style.position;u!=="relative"&&(this.resizable.style.position="relative"),r=this.resizable.style.width!=="auto"?this.resizable.offsetWidth:a,n=this.resizable.style.height!=="auto"?this.resizable.offsetHeight:i,this.resizable.style.position=u}return{width:r,height:n}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sizeStyle",{get:function(){var r=this,n=this.props.size,a=function(h){var g;if(typeof r.state[h]>"u"||r.state[h]==="auto")return"auto";if(r.propsSize&&r.propsSize[h]&&(!((g=r.propsSize[h])===null||g===void 0)&&g.toString().endsWith("%"))){if(r.state[h].toString().endsWith("%"))return r.state[h].toString();var p=r.getParentSize(),b=Number(r.state[h].toString().replace("px","")),D=b/p[h]*100;return"".concat(D,"%")}return ap(r.state[h])},i=n&&typeof n.width<"u"&&!this.state.isResizing?ap(n.width):a("width"),u=n&&typeof n.height<"u"&&!this.state.isResizing?ap(n.height):a("height");return{width:i,height:u}},enumerable:!1,configurable:!0}),t.prototype.getParentSize=function(){if(!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var r=this.appendBase();if(!r)return{width:0,height:0};var n=!1,a=this.parentNode.style.flexWrap;a!=="wrap"&&(n=!0,this.parentNode.style.flexWrap="wrap"),r.style.position="relative",r.style.minWidth="100%",r.style.minHeight="100%";var i={width:r.offsetWidth,height:r.offsetHeight};return n&&(this.parentNode.style.flexWrap=a),this.removeBase(r),i},t.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove,{capture:!0,passive:!1}),this.window.addEventListener("touchend",this.onMouseUp))},t.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove,!0),this.window.removeEventListener("touchend",this.onMouseUp))},t.prototype.componentDidMount=function(){if(!(!this.resizable||!this.window)){var r=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:r.flexBasis!=="auto"?r.flexBasis:void 0})}},t.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},t.prototype.createSizeForCssProperty=function(r,n){var a=this.propsSize&&this.propsSize[n];return this.state[n]==="auto"&&this.state.original[n]===r&&(typeof a>"u"||a==="auto")?"auto":r},t.prototype.calculateNewMaxFromBoundary=function(r,n){var a=this.props.boundsByDirection,i=this.state.direction,u=a&&Js("left",i),h=a&&Js("top",i),g,p;if(this.props.bounds==="parent"){var b=this.parentNode;b&&(g=u?this.resizableRight-this.parentLeft:b.offsetWidth+(this.parentLeft-this.resizableLeft),p=h?this.resizableBottom-this.parentTop:b.offsetHeight+(this.parentTop-this.resizableTop))}else this.props.bounds==="window"?this.window&&(g=u?this.resizableRight:this.window.innerWidth-this.resizableLeft,p=h?this.resizableBottom:this.window.innerHeight-this.resizableTop):this.props.bounds&&(g=u?this.resizableRight-this.targetLeft:this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),p=h?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return g&&Number.isFinite(g)&&(r=r&&r<g?r:g),p&&Number.isFinite(p)&&(n=n&&n<p?n:p),{maxWidth:r,maxHeight:n}},t.prototype.calculateNewSizeFromDirection=function(r,n){var a=this.props.scale||1,i=iF(this.props.resizeRatio||1),u=i[0],h=i[1],g=this.state,p=g.direction,b=g.original,D=this.props,F=D.lockAspectRatio,S=D.lockAspectRatioExtraHeight,R=D.lockAspectRatioExtraWidth,O=b.width,N=b.height,_=S||0,M=R||0;return Js("right",p)&&(O=b.width+(r-b.x)*u/a,F&&(N=(O-M)/this.ratio+_)),Js("left",p)&&(O=b.width-(r-b.x)*u/a,F&&(N=(O-M)/this.ratio+_)),Js("bottom",p)&&(N=b.height+(n-b.y)*h/a,F&&(O=(N-_)*this.ratio+M)),Js("top",p)&&(N=b.height-(n-b.y)*h/a,F&&(O=(N-_)*this.ratio+M)),{newWidth:O,newHeight:N}},t.prototype.calculateNewSizeFromAspectRatio=function(r,n,a,i){var u=this.props,h=u.lockAspectRatio,g=u.lockAspectRatioExtraHeight,p=u.lockAspectRatioExtraWidth,b=typeof i.width>"u"?10:i.width,D=typeof a.width>"u"||a.width<0?r:a.width,F=typeof i.height>"u"?10:i.height,S=typeof a.height>"u"||a.height<0?n:a.height,R=g||0,O=p||0;if(h){var N=(F-R)*this.ratio+O,_=(S-R)*this.ratio+O,M=(b-O)/this.ratio+R,U=(D-O)/this.ratio+R,H=Math.max(b,N),q=Math.min(D,_),Q=Math.max(F,M),Y=Math.min(S,U);r=yc(r,H,q),n=yc(n,Q,Y)}else r=yc(r,b,D),n=yc(n,F,S);return{newWidth:r,newHeight:n}},t.prototype.setBoundingClientRect=function(){var r=1/(this.props.scale||1);if(this.props.bounds==="parent"){var n=this.parentNode;if(n){var a=n.getBoundingClientRect();this.parentLeft=a.left*r,this.parentTop=a.top*r}}if(this.props.bounds&&typeof this.props.bounds!="string"){var i=this.props.bounds.getBoundingClientRect();this.targetLeft=i.left*r,this.targetTop=i.top*r}if(this.resizable){var u=this.resizable.getBoundingClientRect(),h=u.left,g=u.top,p=u.right,b=u.bottom;this.resizableLeft=h*r,this.resizableRight=p*r,this.resizableTop=g*r,this.resizableBottom=b*r}},t.prototype.onResizeStart=function(r,n){if(!(!this.resizable||!this.window)){var a=0,i=0;if(r.nativeEvent&&nF(r.nativeEvent)?(a=r.nativeEvent.clientX,i=r.nativeEvent.clientY):r.nativeEvent&&xc(r.nativeEvent)&&(a=r.nativeEvent.touches[0].clientX,i=r.nativeEvent.touches[0].clientY),this.props.onResizeStart&&this.resizable){var u=this.props.onResizeStart(r,n,this.resizable);if(u===!1)return}this.props.size&&(typeof this.props.size.height<"u"&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),typeof this.props.size.width<"u"&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio=typeof this.props.lockAspectRatio=="number"?this.props.lockAspectRatio:this.size.width/this.size.height;var h,g=this.window.getComputedStyle(this.resizable);if(g.flexBasis!=="auto"){var p=this.parentNode;if(p){var b=this.window.getComputedStyle(p).flexDirection;this.flexDir=b.startsWith("row")?"row":"column",h=g.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var D={original:{x:a,y:i,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:Da(Da({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(r.target).cursor||"auto"}),direction:n,flexBasis:h};this.setState(D)}},t.prototype.onMouseMove=function(r){var n=this;if(!(!this.state.isResizing||!this.resizable||!this.window)){if(this.window.TouchEvent&&xc(r))try{r.preventDefault(),r.stopPropagation()}catch{}var a=this.props,i=a.maxWidth,u=a.maxHeight,h=a.minWidth,g=a.minHeight,p=xc(r)?r.touches[0].clientX:r.clientX,b=xc(r)?r.touches[0].clientY:r.clientY,D=this.state,F=D.direction,S=D.original,R=D.width,O=D.height,N=this.getParentSize(),_=aF(N,this.window.innerWidth,this.window.innerHeight,i,u,h,g);i=_.maxWidth,u=_.maxHeight,h=_.minWidth,g=_.minHeight;var M=this.calculateNewSizeFromDirection(p,b),U=M.newHeight,H=M.newWidth,q=this.calculateNewMaxFromBoundary(i,u);this.props.snap&&this.props.snap.x&&(H=x0(H,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(U=x0(U,this.props.snap.y,this.props.snapGap));var Q=this.calculateNewSizeFromAspectRatio(H,U,{width:q.maxWidth,height:q.maxHeight},{width:h,height:g});if(H=Q.newWidth,U=Q.newHeight,this.props.grid){var Y=y0(H,this.props.grid[0],this.props.gridGap?this.props.gridGap[0]:0),ie=y0(U,this.props.grid[1],this.props.gridGap?this.props.gridGap[1]:0),ee=this.props.snapGap||0,ve=ee===0||Math.abs(Y-H)<=ee?Y:H,ge=ee===0||Math.abs(ie-U)<=ee?ie:U;H=ve,U=ge}var Ie={width:H-S.width,height:U-S.height};if(this.delta=Ie,R&&typeof R=="string"){if(R.endsWith("%")){var Ae=H/N.width*100;H="".concat(Ae,"%")}else if(R.endsWith("vw")){var Ge=H/this.window.innerWidth*100;H="".concat(Ge,"vw")}else if(R.endsWith("vh")){var Ue=H/this.window.innerHeight*100;H="".concat(Ue,"vh")}}if(O&&typeof O=="string"){if(O.endsWith("%")){var Ae=U/N.height*100;U="".concat(Ae,"%")}else if(O.endsWith("vw")){var Ge=U/this.window.innerWidth*100;U="".concat(Ge,"vw")}else if(O.endsWith("vh")){var Ue=U/this.window.innerHeight*100;U="".concat(Ue,"vh")}}var te={width:this.createSizeForCssProperty(H,"width"),height:this.createSizeForCssProperty(U,"height")};this.flexDir==="row"?te.flexBasis=te.width:this.flexDir==="column"&&(te.flexBasis=te.height);var fe=this.state.width!==te.width,Ea=this.state.height!==te.height,so=this.state.flexBasis!==te.flexBasis,le=fe||Ea||so;le&&Yn.flushSync(function(){n.setState(te)}),this.props.onResize&&le&&this.props.onResize(r,F,this.resizable,Ie)}},t.prototype.onMouseUp=function(r){var n,a,i=this.state,u=i.isResizing,h=i.direction;!u||!this.resizable||(this.props.onResizeStop&&this.props.onResizeStop(r,h,this.resizable,this.delta),this.props.size&&this.setState({width:(n=this.props.size.width)!==null&&n!==void 0?n:"auto",height:(a=this.props.size.height)!==null&&a!==void 0?a:"auto"}),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:Da(Da({},this.state.backgroundStyle),{cursor:"auto"})}))},t.prototype.updateSize=function(r){var n,a;this.setState({width:(n=r.width)!==null&&n!==void 0?n:"auto",height:(a=r.height)!==null&&a!==void 0?a:"auto"})},t.prototype.renderResizer=function(){var r=this,n=this.props,a=n.enable,i=n.handleStyles,u=n.handleClasses,h=n.handleWrapperStyle,g=n.handleWrapperClass,p=n.handleComponent;if(!a)return null;var b=Object.keys(a).map(function(D){return a[D]!==!1?m.jsx(eF,{direction:D,onResizeStart:r.onResizeStart,replaceStyles:i&&i[D],className:u&&u[D],children:p&&p[D]?p[D]:null},D):null});return m.jsx("div",{className:g,style:h,children:b})},t.prototype.render=function(){var r=this,n=Object.keys(this.props).reduce(function(u,h){return oF.indexOf(h)!==-1||(u[h]=r.props[h]),u},{}),a=Da(Da(Da({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});this.state.flexBasis&&(a.flexBasis=this.state.flexBasis);var i=this.props.as||"div";return m.jsxs(i,Da({style:a,className:this.props.className},n,{ref:function(u){u&&(r.resizable=u)},children:[this.state.isResizing&&m.jsx("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer()]}))},t.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],gridGap:[0,0],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},t})(I.PureComponent);const D0=6,io=-3,lF={position:"absolute",width:`${D0}px`,height:`${D0}px`,background:"#170F4F",display:"block",pointerEvents:"none",boxShadow:"0 2px 8px rgba(23,15,79,0.3)",border:"0.5px solid #CCF1F4"},uF={topLeft:{left:`${io}px`,top:`${io}px`},topRight:{right:`${io}px`,top:`${io}px`},bottomLeft:{left:`${io}px`,bottom:`${io}px`},bottomRight:{right:`${io}px`,bottom:`${io}px`}},cF=({children:e,propKey:t={width:"width",height:"height"}})=>{const{actions:r,connectors:{connect:n}}=mt(),{isSelected:a,isHover:i,nodeWidth:u,nodeHeight:h,name:g}=mt(_=>({isSelected:_.events.selected,isHover:_.events.hovered,nodeWidth:_.data.props.style?.[t.width]||_.data.props[t.width]||200,nodeHeight:_.data.props.style?.[t.height]||_.data.props[t.height]||100,name:_.data.custom?.displayName||_.data.displayName})),{maxWidth:p}=Hr(_=>{const U=_.nodes.ROOT?.data?.props?.style||{},H=U.maxWidth||U.width||1200;return{maxWidth:typeof H=="string"?parseInt(H):H}}),b=I.useRef(null),D=I.useRef(null),F=I.useMemo(()=>{const _=()=>{if(typeof u=="number")return Math.round(u);if(typeof u=="string"){if(u.includes("%")&&p){const U=parseFloat(u)/100;return Math.round(p*U)}return u||200}return 200},M=()=>h==="auto"?"auto":typeof h=="number"?Math.round(h):typeof h=="string"?h.includes("%")?h:h||100:100;return{width:_(),height:M()}},[u,h,p]),[S,R]=I.useState(F),O=I.useCallback(()=>{R(F)},[F]);I.useEffect(()=>{if(!p)return;const _=typeof u=="number"?u:parseFloat(u)||0;if(_>p){const M=p/_,U=Math.floor(_*M);r.setProp(H=>{H.style||(H.style={}),H.style[t.width]=U})}},[p,u,r,t.width]);const N=I.useCallback((_,M)=>{if(!D.current)return F;const{width:U,height:H}=D.current;let q=Math.round(U+_),Q=Math.round(H+M);return p&&(q=Math.min(q,p)),q=Math.max(q,50),Q=Math.max(Q,20),{width:q,height:Q}},[F,p]);return I.useEffect(()=>{O(),r.setCustom(_=>{_.resizable=!0})},[u,h,O,r]),m.jsx(m0,{isHover:i,isSelected:a,name:g||"Component",showIndicator:!0,width:S.width,height:S.height,children:m.jsxs(sF,{ref:_=>{_&&_.resizable&&(b.current=_,n(_.resizable))},enable:{top:a,right:a,bottom:a,left:a,topLeft:a,topRight:a,bottomLeft:a,bottomRight:a},size:S,onResizeStart:_=>{_.preventDefault(),_.stopPropagation();const M=b.current?.resizable;if(!M)return;const U=M.getBoundingClientRect();D.current={width:Math.round(U.width),height:Math.round(U.height)}},onResize:(_,M,U,H)=>{const q=N(H.width,H.height);r.setProp(Q=>{Q.style||(Q.style={}),Q.style[t.width]=q.width,Q.style[t.height]=q.height}),O()},onResizeStop:(_,M,U,H)=>{const q=N(H.width,H.height);r.setProp(Q=>{Q.style||(Q.style={}),Q.style[t.width]=q.width,Q.style[t.height]=q.height}),O()},handleStyles:{topLeft:{display:"block"},topRight:{display:"block"},bottomLeft:{display:"block"},bottomRight:{display:"block"}},children:[e,m.jsx("div",{style:{position:"absolute",top:0,left:0,width:"100%",height:"100%",pointerEvents:"none",zIndex:99999},children:a&&Object.entries(uF).map(([_,M])=>m.jsx("span",{style:{...lF,...M}},_))})]})})},dF=({render:e})=>{const{id:t,isHover:r,isActive:n,name:a,isResizable:i,nodeWidth:u,nodeHeight:h}=mt(p=>({isHover:p.events.hovered,isActive:p.events.selected,name:p.data.custom?.displayName||p.data.displayName,isResizable:p.data.custom.resizable===!0,nodeWidth:p.data.props.style?.width||p.data.props.width||"min-content",nodeHeight:p.data.props.style?.height||p.data.props.height||"min-content"}));return t===va?m.jsx(m.Fragment,{children:e}):i?m.jsx(cF,{children:e}):m.jsx(m0,{isHover:r,isSelected:n,name:a,width:u,height:h,children:e})};function C0(e,t){return function(){return e.apply(t,arguments)}}const{toString:fF}=Object.prototype,{getPrototypeOf:ip}=Object,{iterator:Dc,toStringTag:E0}=Symbol,Cc=(e=>t=>{const r=fF.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),qn=e=>(e=e.toLowerCase(),t=>Cc(t)===e),Ec=e=>t=>typeof t===e,{isArray:Xs}=Array,Ql=Ec("undefined");function $l(e){return e!==null&&!Ql(e)&&e.constructor!==null&&!Ql(e.constructor)&&Wr(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const F0=qn("ArrayBuffer");function hF(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&F0(e.buffer),t}const pF=Ec("string"),Wr=Ec("function"),S0=Ec("number"),eu=e=>e!==null&&typeof e=="object",gF=e=>e===!0||e===!1,Fc=e=>{if(Cc(e)!=="object")return!1;const t=ip(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(E0 in e)&&!(Dc in e)},mF=e=>{if(!eu(e)||$l(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},vF=qn("Date"),bF=qn("File"),yF=qn("Blob"),xF=qn("FileList"),wF=e=>eu(e)&&Wr(e.pipe),DF=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Wr(e.append)&&((t=Cc(e))==="formdata"||t==="object"&&Wr(e.toString)&&e.toString()==="[object FormData]"))},CF=qn("URLSearchParams"),[EF,FF,SF,kF]=["ReadableStream","Request","Response","Headers"].map(qn),TF=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function tu(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,a;if(typeof e!="object"&&(e=[e]),Xs(e))for(n=0,a=e.length;n<a;n++)t.call(null,e[n],n,e);else{if($l(e))return;const i=r?Object.getOwnPropertyNames(e):Object.keys(e),u=i.length;let h;for(n=0;n<u;n++)h=i[n],t.call(null,e[h],h,e)}}function k0(e,t){if($l(e))return null;t=t.toLowerCase();const r=Object.keys(e);let n=r.length,a;for(;n-- >0;)if(a=r[n],t===a.toLowerCase())return a;return null}const Yo=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,T0=e=>!Ql(e)&&e!==Yo;function op(){const{caseless:e}=T0(this)&&this||{},t={},r=(n,a)=>{const i=e&&k0(t,a)||a;Fc(t[i])&&Fc(n)?t[i]=op(t[i],n):Fc(n)?t[i]=op({},n):Xs(n)?t[i]=n.slice():t[i]=n};for(let n=0,a=arguments.length;n<a;n++)arguments[n]&&tu(arguments[n],r);return t}const _F=(e,t,r,{allOwnKeys:n}={})=>(tu(t,(a,i)=>{r&&Wr(a)?e[i]=C0(a,r):e[i]=a},{allOwnKeys:n}),e),AF=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),NF=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},RF=(e,t,r,n)=>{let a,i,u;const h={};if(t=t||{},e==null)return t;do{for(a=Object.getOwnPropertyNames(e),i=a.length;i-- >0;)u=a[i],(!n||n(u,e,t))&&!h[u]&&(t[u]=e[u],h[u]=!0);e=r!==!1&&ip(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},OF=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},BF=e=>{if(!e)return null;if(Xs(e))return e;let t=e.length;if(!S0(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},PF=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&ip(Uint8Array)),LF=(e,t)=>{const n=(e&&e[Dc]).call(e);let a;for(;(a=n.next())&&!a.done;){const i=a.value;t.call(e,i[0],i[1])}},IF=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},MF=qn("HTMLFormElement"),zF=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,a){return n.toUpperCase()+a}),_0=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),HF=qn("RegExp"),A0=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};tu(r,(a,i)=>{let u;(u=t(a,i,e))!==!1&&(n[i]=u||a)}),Object.defineProperties(e,n)},jF=e=>{A0(e,(t,r)=>{if(Wr(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(Wr(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},UF=(e,t)=>{const r={},n=a=>{a.forEach(i=>{r[i]=!0})};return Xs(e)?n(e):n(String(e).split(t)),r},WF=()=>{},GF=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function VF(e){return!!(e&&Wr(e.append)&&e[E0]==="FormData"&&e[Dc])}const YF=e=>{const t=new Array(10),r=(n,a)=>{if(eu(n)){if(t.indexOf(n)>=0)return;if($l(n))return n;if(!("toJSON"in n)){t[a]=n;const i=Xs(n)?[]:{};return tu(n,(u,h)=>{const g=r(u,a+1);!Ql(g)&&(i[h]=g)}),t[a]=void 0,i}}return n};return r(e,0)},JF=qn("AsyncFunction"),XF=e=>e&&(eu(e)||Wr(e))&&Wr(e.then)&&Wr(e.catch),N0=((e,t)=>e?setImmediate:t?((r,n)=>(Yo.addEventListener("message",({source:a,data:i})=>{a===Yo&&i===r&&n.length&&n.shift()()},!1),a=>{n.push(a),Yo.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",Wr(Yo.postMessage)),ZF=typeof queueMicrotask<"u"?queueMicrotask.bind(Yo):typeof process<"u"&&process.nextTick||N0,$={isArray:Xs,isArrayBuffer:F0,isBuffer:$l,isFormData:DF,isArrayBufferView:hF,isString:pF,isNumber:S0,isBoolean:gF,isObject:eu,isPlainObject:Fc,isEmptyObject:mF,isReadableStream:EF,isRequest:FF,isResponse:SF,isHeaders:kF,isUndefined:Ql,isDate:vF,isFile:bF,isBlob:yF,isRegExp:HF,isFunction:Wr,isStream:wF,isURLSearchParams:CF,isTypedArray:PF,isFileList:xF,forEach:tu,merge:op,extend:_F,trim:TF,stripBOM:AF,inherits:NF,toFlatObject:RF,kindOf:Cc,kindOfTest:qn,endsWith:OF,toArray:BF,forEachEntry:LF,matchAll:IF,isHTMLForm:MF,hasOwnProperty:_0,hasOwnProp:_0,reduceDescriptors:A0,freezeMethods:jF,toObjectSet:UF,toCamelCase:zF,noop:WF,toFiniteNumber:GF,findKey:k0,global:Yo,isContextDefined:T0,isSpecCompliantForm:VF,toJSONObject:YF,isAsyncFn:JF,isThenable:XF,setImmediate:N0,asap:ZF,isIterable:e=>e!=null&&Wr(e[Dc])};function Pe(e,t,r,n,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),a&&(this.response=a,this.status=a.status?a.status:null)}$.inherits(Pe,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:$.toJSONObject(this.config),code:this.code,status:this.status}}});const R0=Pe.prototype,O0={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{O0[e]={value:e}}),Object.defineProperties(Pe,O0),Object.defineProperty(R0,"isAxiosError",{value:!0}),Pe.from=(e,t,r,n,a,i)=>{const u=Object.create(R0);return $.toFlatObject(e,u,function(g){return g!==Error.prototype},h=>h!=="isAxiosError"),Pe.call(u,e.message,t,r,n,a),u.cause=e,u.name=e.name,i&&Object.assign(u,i),u};const qF=null;function sp(e){return $.isPlainObject(e)||$.isArray(e)}function B0(e){return $.endsWith(e,"[]")?e.slice(0,-2):e}function P0(e,t,r){return e?e.concat(t).map(function(a,i){return a=B0(a),!r&&i?"["+a+"]":a}).join(r?".":""):t}function KF(e){return $.isArray(e)&&!e.some(sp)}const QF=$.toFlatObject($,{},null,function(t){return/^is[A-Z]/.test(t)});function Sc(e,t,r){if(!$.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=$.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(O,N){return!$.isUndefined(N[O])});const n=r.metaTokens,a=r.visitor||b,i=r.dots,u=r.indexes,g=(r.Blob||typeof Blob<"u"&&Blob)&&$.isSpecCompliantForm(t);if(!$.isFunction(a))throw new TypeError("visitor must be a function");function p(R){if(R===null)return"";if($.isDate(R))return R.toISOString();if($.isBoolean(R))return R.toString();if(!g&&$.isBlob(R))throw new Pe("Blob is not supported. Use a Buffer instead.");return $.isArrayBuffer(R)||$.isTypedArray(R)?g&&typeof Blob=="function"?new Blob([R]):Buffer.from(R):R}function b(R,O,N){let _=R;if(R&&!N&&typeof R=="object"){if($.endsWith(O,"{}"))O=n?O:O.slice(0,-2),R=JSON.stringify(R);else if($.isArray(R)&&KF(R)||($.isFileList(R)||$.endsWith(O,"[]"))&&(_=$.toArray(R)))return O=B0(O),_.forEach(function(U,H){!($.isUndefined(U)||U===null)&&t.append(u===!0?P0([O],H,i):u===null?O:O+"[]",p(U))}),!1}return sp(R)?!0:(t.append(P0(N,O,i),p(R)),!1)}const D=[],F=Object.assign(QF,{defaultVisitor:b,convertValue:p,isVisitable:sp});function S(R,O){if(!$.isUndefined(R)){if(D.indexOf(R)!==-1)throw Error("Circular reference detected in "+O.join("."));D.push(R),$.forEach(R,function(_,M){(!($.isUndefined(_)||_===null)&&a.call(t,_,$.isString(M)?M.trim():M,O,F))===!0&&S(_,O?O.concat(M):[M])}),D.pop()}}if(!$.isObject(e))throw new TypeError("data must be an object");return S(e),t}function L0(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function lp(e,t){this._pairs=[],e&&Sc(e,this,t)}const I0=lp.prototype;I0.append=function(t,r){this._pairs.push([t,r])},I0.toString=function(t){const r=t?function(n){return t.call(this,n,L0)}:L0;return this._pairs.map(function(a){return r(a[0])+"="+r(a[1])},"").join("&")};function $F(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function M0(e,t,r){if(!t)return e;const n=r&&r.encode||$F;$.isFunction(r)&&(r={serialize:r});const a=r&&r.serialize;let i;if(a?i=a(t,r):i=$.isURLSearchParams(t)?t.toString():new lp(t,r).toString(n),i){const u=e.indexOf("#");u!==-1&&(e=e.slice(0,u)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class z0{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){$.forEach(this.handlers,function(n){n!==null&&t(n)})}}const H0={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},eS={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:lp,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},up=typeof window<"u"&&typeof document<"u",cp=typeof navigator=="object"&&navigator||void 0,tS=up&&(!cp||["ReactNative","NativeScript","NS"].indexOf(cp.product)<0),rS=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",nS=up&&window.location.href||"http://localhost",xr={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:up,hasStandardBrowserEnv:tS,hasStandardBrowserWebWorkerEnv:rS,navigator:cp,origin:nS},Symbol.toStringTag,{value:"Module"})),...eS};function aS(e,t){return Sc(e,new xr.classes.URLSearchParams,{visitor:function(r,n,a,i){return xr.isNode&&$.isBuffer(r)?(this.append(n,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}function iS(e){return $.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function oS(e){const t={},r=Object.keys(e);let n;const a=r.length;let i;for(n=0;n<a;n++)i=r[n],t[i]=e[i];return t}function j0(e){function t(r,n,a,i){let u=r[i++];if(u==="__proto__")return!0;const h=Number.isFinite(+u),g=i>=r.length;return u=!u&&$.isArray(a)?a.length:u,g?($.hasOwnProp(a,u)?a[u]=[a[u],n]:a[u]=n,!h):((!a[u]||!$.isObject(a[u]))&&(a[u]=[]),t(r,n,a[u],i)&&$.isArray(a[u])&&(a[u]=oS(a[u])),!h)}if($.isFormData(e)&&$.isFunction(e.entries)){const r={};return $.forEachEntry(e,(n,a)=>{t(iS(n),a,r,0)}),r}return null}function sS(e,t,r){if($.isString(e))try{return(0,JSON.parse)(e),$.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const ru={transitional:H0,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",a=n.indexOf("application/json")>-1,i=$.isObject(t);if(i&&$.isHTMLForm(t)&&(t=new FormData(t)),$.isFormData(t))return a?JSON.stringify(j0(t)):t;if($.isArrayBuffer(t)||$.isBuffer(t)||$.isStream(t)||$.isFile(t)||$.isBlob(t)||$.isReadableStream(t))return t;if($.isArrayBufferView(t))return t.buffer;if($.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let h;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return aS(t,this.formSerializer).toString();if((h=$.isFileList(t))||n.indexOf("multipart/form-data")>-1){const g=this.env&&this.env.FormData;return Sc(h?{"files[]":t}:t,g&&new g,this.formSerializer)}}return i||a?(r.setContentType("application/json",!1),sS(t)):t}],transformResponse:[function(t){const r=this.transitional||ru.transitional,n=r&&r.forcedJSONParsing,a=this.responseType==="json";if($.isResponse(t)||$.isReadableStream(t))return t;if(t&&$.isString(t)&&(n&&!this.responseType||a)){const u=!(r&&r.silentJSONParsing)&&a;try{return JSON.parse(t)}catch(h){if(u)throw h.name==="SyntaxError"?Pe.from(h,Pe.ERR_BAD_RESPONSE,this,null,this.response):h}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:xr.classes.FormData,Blob:xr.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};$.forEach(["delete","get","head","post","put","patch"],e=>{ru.headers[e]={}});const lS=$.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),uS=e=>{const t={};let r,n,a;return e&&e.split(`
|
|
138
|
-
`).forEach(function(u){a=u.indexOf(":"),r=u.substring(0,a).trim().toLowerCase(),n=u.substring(a+1).trim(),!(!r||t[r]&&lS[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},U0=Symbol("internals");function nu(e){return e&&String(e).trim().toLowerCase()}function kc(e){return e===!1||e==null?e:$.isArray(e)?e.map(kc):String(e)}function cS(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const dS=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function dp(e,t,r,n,a){if($.isFunction(n))return n.call(this,t,r);if(a&&(t=r),!!$.isString(t)){if($.isString(n))return t.indexOf(n)!==-1;if($.isRegExp(n))return n.test(t)}}function fS(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function hS(e,t){const r=$.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(a,i,u){return this[n].call(this,t,a,i,u)},configurable:!0})})}class Gr{constructor(t){t&&this.set(t)}set(t,r,n){const a=this;function i(h,g,p){const b=nu(g);if(!b)throw new Error("header name must be a non-empty string");const D=$.findKey(a,b);(!D||a[D]===void 0||p===!0||p===void 0&&a[D]!==!1)&&(a[D||g]=kc(h))}const u=(h,g)=>$.forEach(h,(p,b)=>i(p,b,g));if($.isPlainObject(t)||t instanceof this.constructor)u(t,r);else if($.isString(t)&&(t=t.trim())&&!dS(t))u(uS(t),r);else if($.isObject(t)&&$.isIterable(t)){let h={},g,p;for(const b of t){if(!$.isArray(b))throw TypeError("Object iterator must return a key-value pair");h[p=b[0]]=(g=h[p])?$.isArray(g)?[...g,b[1]]:[g,b[1]]:b[1]}u(h,r)}else t!=null&&i(r,t,n);return this}get(t,r){if(t=nu(t),t){const n=$.findKey(this,t);if(n){const a=this[n];if(!r)return a;if(r===!0)return cS(a);if($.isFunction(r))return r.call(this,a,n);if($.isRegExp(r))return r.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=nu(t),t){const n=$.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||dp(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let a=!1;function i(u){if(u=nu(u),u){const h=$.findKey(n,u);h&&(!r||dp(n,n[h],h,r))&&(delete n[h],a=!0)}}return $.isArray(t)?t.forEach(i):i(t),a}clear(t){const r=Object.keys(this);let n=r.length,a=!1;for(;n--;){const i=r[n];(!t||dp(this,this[i],i,t,!0))&&(delete this[i],a=!0)}return a}normalize(t){const r=this,n={};return $.forEach(this,(a,i)=>{const u=$.findKey(n,i);if(u){r[u]=kc(a),delete r[i];return}const h=t?fS(i):String(i).trim();h!==i&&delete r[i],r[h]=kc(a),n[h]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return $.forEach(this,(n,a)=>{n!=null&&n!==!1&&(r[a]=t&&$.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
|
|
139
|
-
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(a=>n.set(a)),n}static accessor(t){const n=(this[U0]=this[U0]={accessors:{}}).accessors,a=this.prototype;function i(u){const h=nu(u);n[h]||(hS(a,u),n[h]=!0)}return $.isArray(t)?t.forEach(i):i(t),this}}Gr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),$.reduceDescriptors(Gr.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}}),$.freezeMethods(Gr);function fp(e,t){const r=this||ru,n=t||r,a=Gr.from(n.headers);let i=n.data;return $.forEach(e,function(h){i=h.call(r,i,a.normalize(),t?t.status:void 0)}),a.normalize(),i}function W0(e){return!!(e&&e.__CANCEL__)}function Zs(e,t,r){Pe.call(this,e??"canceled",Pe.ERR_CANCELED,t,r),this.name="CanceledError"}$.inherits(Zs,Pe,{__CANCEL__:!0});function G0(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new Pe("Request failed with status code "+r.status,[Pe.ERR_BAD_REQUEST,Pe.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function pS(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function gS(e,t){e=e||10;const r=new Array(e),n=new Array(e);let a=0,i=0,u;return t=t!==void 0?t:1e3,function(g){const p=Date.now(),b=n[i];u||(u=p),r[a]=g,n[a]=p;let D=i,F=0;for(;D!==a;)F+=r[D++],D=D%e;if(a=(a+1)%e,a===i&&(i=(i+1)%e),p-u<t)return;const S=b&&p-b;return S?Math.round(F*1e3/S):void 0}}function mS(e,t){let r=0,n=1e3/t,a,i;const u=(p,b=Date.now())=>{r=b,a=null,i&&(clearTimeout(i),i=null),e(...p)};return[(...p)=>{const b=Date.now(),D=b-r;D>=n?u(p,b):(a=p,i||(i=setTimeout(()=>{i=null,u(a)},n-D)))},()=>a&&u(a)]}const Tc=(e,t,r=3)=>{let n=0;const a=gS(50,250);return mS(i=>{const u=i.loaded,h=i.lengthComputable?i.total:void 0,g=u-n,p=a(g),b=u<=h;n=u;const D={loaded:u,total:h,progress:h?u/h:void 0,bytes:g,rate:p||void 0,estimated:p&&h&&b?(h-u)/p:void 0,event:i,lengthComputable:h!=null,[t?"download":"upload"]:!0};e(D)},r)},V0=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},Y0=e=>(...t)=>$.asap(()=>e(...t)),vS=xr.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,xr.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(xr.origin),xr.navigator&&/(msie|trident)/i.test(xr.navigator.userAgent)):()=>!0,bS=xr.hasStandardBrowserEnv?{write(e,t,r,n,a,i){const u=[e+"="+encodeURIComponent(t)];$.isNumber(r)&&u.push("expires="+new Date(r).toGMTString()),$.isString(n)&&u.push("path="+n),$.isString(a)&&u.push("domain="+a),i===!0&&u.push("secure"),document.cookie=u.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function yS(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function xS(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function J0(e,t,r){let n=!yS(t);return e&&(n||r==!1)?xS(e,t):t}const X0=e=>e instanceof Gr?{...e}:e;function Jo(e,t){t=t||{};const r={};function n(p,b,D,F){return $.isPlainObject(p)&&$.isPlainObject(b)?$.merge.call({caseless:F},p,b):$.isPlainObject(b)?$.merge({},b):$.isArray(b)?b.slice():b}function a(p,b,D,F){if($.isUndefined(b)){if(!$.isUndefined(p))return n(void 0,p,D,F)}else return n(p,b,D,F)}function i(p,b){if(!$.isUndefined(b))return n(void 0,b)}function u(p,b){if($.isUndefined(b)){if(!$.isUndefined(p))return n(void 0,p)}else return n(void 0,b)}function h(p,b,D){if(D in t)return n(p,b);if(D in e)return n(void 0,p)}const g={url:i,method:i,data:i,baseURL:u,transformRequest:u,transformResponse:u,paramsSerializer:u,timeout:u,timeoutMessage:u,withCredentials:u,withXSRFToken:u,adapter:u,responseType:u,xsrfCookieName:u,xsrfHeaderName:u,onUploadProgress:u,onDownloadProgress:u,decompress:u,maxContentLength:u,maxBodyLength:u,beforeRedirect:u,transport:u,httpAgent:u,httpsAgent:u,cancelToken:u,socketPath:u,responseEncoding:u,validateStatus:h,headers:(p,b,D)=>a(X0(p),X0(b),D,!0)};return $.forEach(Object.keys({...e,...t}),function(b){const D=g[b]||a,F=D(e[b],t[b],b);$.isUndefined(F)&&D!==h||(r[b]=F)}),r}const Z0=e=>{const t=Jo({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:a,xsrfCookieName:i,headers:u,auth:h}=t;t.headers=u=Gr.from(u),t.url=M0(J0(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),h&&u.set("Authorization","Basic "+btoa((h.username||"")+":"+(h.password?unescape(encodeURIComponent(h.password)):"")));let g;if($.isFormData(r)){if(xr.hasStandardBrowserEnv||xr.hasStandardBrowserWebWorkerEnv)u.setContentType(void 0);else if((g=u.getContentType())!==!1){const[p,...b]=g?g.split(";").map(D=>D.trim()).filter(Boolean):[];u.setContentType([p||"multipart/form-data",...b].join("; "))}}if(xr.hasStandardBrowserEnv&&(n&&$.isFunction(n)&&(n=n(t)),n||n!==!1&&vS(t.url))){const p=a&&i&&bS.read(i);p&&u.set(a,p)}return t},wS=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(r,n){const a=Z0(e);let i=a.data;const u=Gr.from(a.headers).normalize();let{responseType:h,onUploadProgress:g,onDownloadProgress:p}=a,b,D,F,S,R;function O(){S&&S(),R&&R(),a.cancelToken&&a.cancelToken.unsubscribe(b),a.signal&&a.signal.removeEventListener("abort",b)}let N=new XMLHttpRequest;N.open(a.method.toUpperCase(),a.url,!0),N.timeout=a.timeout;function _(){if(!N)return;const U=Gr.from("getAllResponseHeaders"in N&&N.getAllResponseHeaders()),q={data:!h||h==="text"||h==="json"?N.responseText:N.response,status:N.status,statusText:N.statusText,headers:U,config:e,request:N};G0(function(Y){r(Y),O()},function(Y){n(Y),O()},q),N=null}"onloadend"in N?N.onloadend=_:N.onreadystatechange=function(){!N||N.readyState!==4||N.status===0&&!(N.responseURL&&N.responseURL.indexOf("file:")===0)||setTimeout(_)},N.onabort=function(){N&&(n(new Pe("Request aborted",Pe.ECONNABORTED,e,N)),N=null)},N.onerror=function(){n(new Pe("Network Error",Pe.ERR_NETWORK,e,N)),N=null},N.ontimeout=function(){let H=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const q=a.transitional||H0;a.timeoutErrorMessage&&(H=a.timeoutErrorMessage),n(new Pe(H,q.clarifyTimeoutError?Pe.ETIMEDOUT:Pe.ECONNABORTED,e,N)),N=null},i===void 0&&u.setContentType(null),"setRequestHeader"in N&&$.forEach(u.toJSON(),function(H,q){N.setRequestHeader(q,H)}),$.isUndefined(a.withCredentials)||(N.withCredentials=!!a.withCredentials),h&&h!=="json"&&(N.responseType=a.responseType),p&&([F,R]=Tc(p,!0),N.addEventListener("progress",F)),g&&N.upload&&([D,S]=Tc(g),N.upload.addEventListener("progress",D),N.upload.addEventListener("loadend",S)),(a.cancelToken||a.signal)&&(b=U=>{N&&(n(!U||U.type?new Zs(null,e,N):U),N.abort(),N=null)},a.cancelToken&&a.cancelToken.subscribe(b),a.signal&&(a.signal.aborted?b():a.signal.addEventListener("abort",b)));const M=pS(a.url);if(M&&xr.protocols.indexOf(M)===-1){n(new Pe("Unsupported protocol "+M+":",Pe.ERR_BAD_REQUEST,e));return}N.send(i||null)})},DS=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,a;const i=function(p){if(!a){a=!0,h();const b=p instanceof Error?p:this.reason;n.abort(b instanceof Pe?b:new Zs(b instanceof Error?b.message:b))}};let u=t&&setTimeout(()=>{u=null,i(new Pe(`timeout ${t} of ms exceeded`,Pe.ETIMEDOUT))},t);const h=()=>{e&&(u&&clearTimeout(u),u=null,e.forEach(p=>{p.unsubscribe?p.unsubscribe(i):p.removeEventListener("abort",i)}),e=null)};e.forEach(p=>p.addEventListener("abort",i));const{signal:g}=n;return g.unsubscribe=()=>$.asap(h),g}},CS=function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let n=0,a;for(;n<r;)a=n+t,yield e.slice(n,a),n=a},ES=async function*(e,t){for await(const r of FS(e))yield*CS(r,t)},FS=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:r,value:n}=await t.read();if(r)break;yield n}}finally{await t.cancel()}},q0=(e,t,r,n)=>{const a=ES(e,t);let i=0,u,h=g=>{u||(u=!0,n&&n(g))};return new ReadableStream({async pull(g){try{const{done:p,value:b}=await a.next();if(p){h(),g.close();return}let D=b.byteLength;if(r){let F=i+=D;r(F)}g.enqueue(new Uint8Array(b))}catch(p){throw h(p),p}},cancel(g){return h(g),a.return()}},{highWaterMark:2})},_c=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",K0=_c&&typeof ReadableStream=="function",SS=_c&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Q0=(e,...t)=>{try{return!!e(...t)}catch{return!1}},kS=K0&&Q0(()=>{let e=!1;const t=new Request(xr.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),$0=64*1024,hp=K0&&Q0(()=>$.isReadableStream(new Response("").body)),Ac={stream:hp&&(e=>e.body)};_c&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Ac[t]&&(Ac[t]=$.isFunction(e[t])?r=>r[t]():(r,n)=>{throw new Pe(`Response type '${t}' is not supported`,Pe.ERR_NOT_SUPPORT,n)})})})(new Response);const TS=async e=>{if(e==null)return 0;if($.isBlob(e))return e.size;if($.isSpecCompliantForm(e))return(await new Request(xr.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if($.isArrayBufferView(e)||$.isArrayBuffer(e))return e.byteLength;if($.isURLSearchParams(e)&&(e=e+""),$.isString(e))return(await SS(e)).byteLength},_S=async(e,t)=>{const r=$.toFiniteNumber(e.getContentLength());return r??TS(t)},pp={http:qF,xhr:wS,fetch:_c&&(async e=>{let{url:t,method:r,data:n,signal:a,cancelToken:i,timeout:u,onDownloadProgress:h,onUploadProgress:g,responseType:p,headers:b,withCredentials:D="same-origin",fetchOptions:F}=Z0(e);p=p?(p+"").toLowerCase():"text";let S=DS([a,i&&i.toAbortSignal()],u),R;const O=S&&S.unsubscribe&&(()=>{S.unsubscribe()});let N;try{if(g&&kS&&r!=="get"&&r!=="head"&&(N=await _S(b,n))!==0){let q=new Request(t,{method:"POST",body:n,duplex:"half"}),Q;if($.isFormData(n)&&(Q=q.headers.get("content-type"))&&b.setContentType(Q),q.body){const[Y,ie]=V0(N,Tc(Y0(g)));n=q0(q.body,$0,Y,ie)}}$.isString(D)||(D=D?"include":"omit");const _="credentials"in Request.prototype;R=new Request(t,{...F,signal:S,method:r.toUpperCase(),headers:b.normalize().toJSON(),body:n,duplex:"half",credentials:_?D:void 0});let M=await fetch(R,F);const U=hp&&(p==="stream"||p==="response");if(hp&&(h||U&&O)){const q={};["status","statusText","headers"].forEach(ee=>{q[ee]=M[ee]});const Q=$.toFiniteNumber(M.headers.get("content-length")),[Y,ie]=h&&V0(Q,Tc(Y0(h),!0))||[];M=new Response(q0(M.body,$0,Y,()=>{ie&&ie(),O&&O()}),q)}p=p||"text";let H=await Ac[$.findKey(Ac,p)||"text"](M,e);return!U&&O&&O(),await new Promise((q,Q)=>{G0(q,Q,{data:H,headers:Gr.from(M.headers),status:M.status,statusText:M.statusText,config:e,request:R})})}catch(_){throw O&&O(),_&&_.name==="TypeError"&&/Load failed|fetch/i.test(_.message)?Object.assign(new Pe("Network Error",Pe.ERR_NETWORK,e,R),{cause:_.cause||_}):Pe.from(_,_&&_.code,e,R)}})};$.forEach(pp,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const ey=e=>`- ${e}`,AS=e=>$.isFunction(e)||e===null||e===!1,ty={getAdapter:e=>{e=$.isArray(e)?e:[e];const{length:t}=e;let r,n;const a={};for(let i=0;i<t;i++){r=e[i];let u;if(n=r,!AS(r)&&(n=pp[(u=String(r)).toLowerCase()],n===void 0))throw new Pe(`Unknown adapter '${u}'`);if(n)break;a[u||"#"+i]=n}if(!n){const i=Object.entries(a).map(([h,g])=>`adapter ${h} `+(g===!1?"is not supported by the environment":"is not available in the build"));let u=t?i.length>1?`since :
|
|
140
|
-
`+i.map(ey).join(`
|
|
141
|
-
`):" "+ey(i[0]):"as no adapter specified";throw new Pe("There is no suitable adapter to dispatch the request "+u,"ERR_NOT_SUPPORT")}return n},adapters:pp};function gp(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Zs(null,e)}function ry(e){return gp(e),e.headers=Gr.from(e.headers),e.data=fp.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),ty.getAdapter(e.adapter||ru.adapter)(e).then(function(n){return gp(e),n.data=fp.call(e,e.transformResponse,n),n.headers=Gr.from(n.headers),n},function(n){return W0(n)||(gp(e),n&&n.response&&(n.response.data=fp.call(e,e.transformResponse,n.response),n.response.headers=Gr.from(n.response.headers))),Promise.reject(n)})}const ny="1.11.0",Nc={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Nc[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const ay={};Nc.transitional=function(t,r,n){function a(i,u){return"[Axios v"+ny+"] Transitional option '"+i+"'"+u+(n?". "+n:"")}return(i,u,h)=>{if(t===!1)throw new Pe(a(u," has been removed"+(r?" in "+r:"")),Pe.ERR_DEPRECATED);return r&&!ay[u]&&(ay[u]=!0,console.warn(a(u," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(i,u,h):!0}},Nc.spelling=function(t){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};function NS(e,t,r){if(typeof e!="object")throw new Pe("options must be an object",Pe.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let a=n.length;for(;a-- >0;){const i=n[a],u=t[i];if(u){const h=e[i],g=h===void 0||u(h,i,e);if(g!==!0)throw new Pe("option "+i+" must be "+g,Pe.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new Pe("Unknown option "+i,Pe.ERR_BAD_OPTION)}}const Rc={assertOptions:NS,validators:Nc},Ca=Rc.validators;class Xo{constructor(t){this.defaults=t||{},this.interceptors={request:new z0,response:new z0}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let a={};Error.captureStackTrace?Error.captureStackTrace(a):a=new Error;const i=a.stack?a.stack.replace(/^.+\n/,""):"";try{n.stack?i&&!String(n.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(n.stack+=`
|
|
142
|
-
`+i):n.stack=i}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Jo(this.defaults,r);const{transitional:n,paramsSerializer:a,headers:i}=r;n!==void 0&&Rc.assertOptions(n,{silentJSONParsing:Ca.transitional(Ca.boolean),forcedJSONParsing:Ca.transitional(Ca.boolean),clarifyTimeoutError:Ca.transitional(Ca.boolean)},!1),a!=null&&($.isFunction(a)?r.paramsSerializer={serialize:a}:Rc.assertOptions(a,{encode:Ca.function,serialize:Ca.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),Rc.assertOptions(r,{baseUrl:Ca.spelling("baseURL"),withXsrfToken:Ca.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let u=i&&$.merge(i.common,i[r.method]);i&&$.forEach(["delete","get","head","post","put","patch","common"],R=>{delete i[R]}),r.headers=Gr.concat(u,i);const h=[];let g=!0;this.interceptors.request.forEach(function(O){typeof O.runWhen=="function"&&O.runWhen(r)===!1||(g=g&&O.synchronous,h.unshift(O.fulfilled,O.rejected))});const p=[];this.interceptors.response.forEach(function(O){p.push(O.fulfilled,O.rejected)});let b,D=0,F;if(!g){const R=[ry.bind(this),void 0];for(R.unshift(...h),R.push(...p),F=R.length,b=Promise.resolve(r);D<F;)b=b.then(R[D++],R[D++]);return b}F=h.length;let S=r;for(D=0;D<F;){const R=h[D++],O=h[D++];try{S=R(S)}catch(N){O.call(this,N);break}}try{b=ry.call(this,S)}catch(R){return Promise.reject(R)}for(D=0,F=p.length;D<F;)b=b.then(p[D++],p[D++]);return b}getUri(t){t=Jo(this.defaults,t);const r=J0(t.baseURL,t.url,t.allowAbsoluteUrls);return M0(r,t.params,t.paramsSerializer)}}$.forEach(["delete","get","head","options"],function(t){Xo.prototype[t]=function(r,n){return this.request(Jo(n||{},{method:t,url:r,data:(n||{}).data}))}}),$.forEach(["post","put","patch"],function(t){function r(n){return function(i,u,h){return this.request(Jo(h||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:u}))}}Xo.prototype[t]=r(),Xo.prototype[t+"Form"]=r(!0)});class mp{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(i){r=i});const n=this;this.promise.then(a=>{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](a);n._listeners=null}),this.promise.then=a=>{let i;const u=new Promise(h=>{n.subscribe(h),i=h}).then(a);return u.cancel=function(){n.unsubscribe(i)},u},t(function(i,u,h){n.reason||(n.reason=new Zs(i,u,h),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new mp(function(a){t=a}),cancel:t}}}function RS(e){return function(r){return e.apply(null,r)}}function OS(e){return $.isObject(e)&&e.isAxiosError===!0}const vp={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(vp).forEach(([e,t])=>{vp[t]=e});function iy(e){const t=new Xo(e),r=C0(Xo.prototype.request,t);return $.extend(r,Xo.prototype,t,{allOwnKeys:!0}),$.extend(r,t,null,{allOwnKeys:!0}),r.create=function(a){return iy(Jo(e,a))},r}const jt=iy(ru);jt.Axios=Xo,jt.CanceledError=Zs,jt.CancelToken=mp,jt.isCancel=W0,jt.VERSION=ny,jt.toFormData=Sc,jt.AxiosError=Pe,jt.Cancel=jt.CanceledError,jt.all=function(t){return Promise.all(t)},jt.spread=RS,jt.isAxiosError=OS,jt.mergeConfig=Jo,jt.AxiosHeaders=Gr,jt.formToJSON=e=>j0($.isHTMLForm(e)?new FormData(e):e),jt.getAdapter=ty.getAdapter,jt.HttpStatusCode=vp,jt.default=jt;function au(e,t,r,n){if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)}function BS(e,t,r,n,a){if(typeof t=="function"?e!==t||!0:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return t.set(e,r),r}typeof SuppressedError=="function"&&SuppressedError;var oo;class iu{constructor(t,r,n,a=!1,i){oo.set(this,void 0),this._template=Object.freeze({...t}),this._engine=r,this._isModified=a,this._originalTemplate=i||{...t},BS(this,oo,n)}get id(){return this._template._id}get slug(){return this._template.slug}get title(){return this._template.title}get format(){return this._template.format}get content(){return this._template.content}get tenant(){return this._template.tenant}get createdAt(){return new Date(this._template.createdAt)}get updatedAt(){return new Date(this._template.updatedAt)}get isModified(){return this._isModified}render(t={},r={}){return this._engine.render(this._template.content,t,r)}update(t){const r={...this._template,...t};if(!this._hasChangesFromOriginal(r))return new iu(r,this._engine,au(this,oo,"f"),!1,this._originalTemplate);const n={...r,updatedAt:new Date().toISOString()};return new iu(n,this._engine,au(this,oo,"f"),!0,this._originalTemplate)}async save(){if(!au(this,oo,"f"))throw new Error("Cannot save template: SDK instance not available. Template must be created through TemplatingSdk.");if(!this.isModified)return this;this._validate();try{const t=await au(this,oo,"f").update(this.id,{title:this.title,format:this.format,content:this.content,slug:this.slug});return Object.assign(this,new iu(t._template,t._engine,au(this,oo,"f"),!1,t._template)),this}catch(t){throw new Error(`Failed to save template: ${t instanceof Error?t.message:"Unknown error"}`)}}_validate(){if(this.title!==void 0&&(!this.title||this.title.trim().length===0))throw new Error("Template title cannot be empty");if(this.format!==void 0&&(!this.format||this.format.trim().length===0))throw new Error("Template format cannot be empty");if(this.slug!==void 0&&this.slug!==null&&!/^[a-z0-9-]+$/.test(this.slug))throw new Error("Template slug must contain only lowercase letters, numbers, and hyphens")}_hasChangesFromOriginal(t){return["title","content","format","slug"].some(n=>this._originalTemplate[n]!==t[n])}}oo=new WeakMap;class oy{}class oi extends Error{constructor(t,r,n){super(t),this.statusCode=r,this.metadata=n,this.name=this.constructor.name,Error.captureStackTrace?.(this,this.constructor)}toJSON(){return{name:this.name,message:this.message,code:this.code,statusCode:this.statusCode,metadata:this.metadata,stack:this.stack}}}class PS extends oi{constructor(t,r,n,a){super(`Template render failed: ${r.message}`,void 0,{format:t,templateContent:n,placeholders:a,originalError:r.message}),this.code="TEMPLATE_RENDER_ERROR"}}class LS extends oi{constructor(t,r){super(`Unsupported template format: ${t}. Supported formats: ${r.join(", ")}`,void 0,{format:t,supportedFormats:r}),this.code="UNSUPPORTED_FORMAT_ERROR"}}class Oc extends oi{constructor(t,r,n){super(t,r,{response:n}),this.response=n,this.code="TEMPLATING_ERROR"}}class IS extends oi{constructor(t){super(`Template not found: ${t}`,404,{identifier:t}),this.code="TEMPLATE_NOT_FOUND"}}class sy extends oi{constructor(t,r){super(t,400,{validationErrors:r}),this.code="TEMPLATE_VALIDATION_ERROR"}}class MS extends oi{constructor(t="Authentication failed"){super(t,401),this.code="AUTHENTICATION_ERROR"}}class zS extends oi{constructor(t="Access denied"){super(t,403),this.code="AUTHORIZATION_ERROR"}}class bp extends oi{constructor(t,r){super(t,void 0,{originalError:r?.message}),this.code="NETWORK_ERROR"}}class ly extends oi{constructor(t){super(`Request timeout after ${t}ms`),this.code="TIMEOUT_ERROR"}}class HS{static handleAxiosError(t){if(t.code==="ECONNABORTED")throw new ly(parseInt(t.config?.timeout?.toString()||"0"));if(!t.response)throw new bp(t.message,t);const{status:r,data:n}=t.response,a=n?.metadata?.message||t.message;switch(r){case 400:throw n?.metadata?.error?new sy(a,n.metadata.error):new Oc(a,r,n);case 401:throw new MS(a);case 403:throw new zS(a);case 404:throw new IS(jS(t,a));case 422:throw new sy(a,n?.metadata?.error);case 500:case 502:case 503:case 504:throw new bp(a,t);default:throw new Oc(a,r,n)}}static isTemplatingError(t){return t instanceof Oc}static isRetryableError(t){return t instanceof bp||t instanceof ly}static getErrorDetails(t){return t instanceof Oc?{name:t.name,code:t.code,message:t.message,statusCode:t.statusCode,metadata:t.metadata}:t instanceof Error?{name:t.name,message:t.message,stack:t.stack}:{error:String(t)}}}function jS(e,t){const r=e.config?.url?.match(/\/templates\/([^\/]+)/);if(r)return r[1];const n=t.match(/Template not found: (.+)/);return n?n[1]:"unknown"}class US extends oy{constructor(){super(),this.instance=Sy.create(),this.setupDefaultHelpers()}render(t,r={},n={}){try{return this.instance.compile(t)(r)}catch(a){throw new PS("handlebars",a,t,r)}}setupDefaultHelpers(){this.instance.registerHelper("formatDate",function(t,r){const n=new Date(t);if(isNaN(n.getTime()))return"";switch(r){case"short":return n.toLocaleDateString();case"long":return n.toLocaleDateString("pt-BR",{year:"numeric",month:"long",day:"numeric"});case"time":return n.toLocaleTimeString();case"iso":return n.toISOString();default:return n.toLocaleDateString()}}),this.instance.registerHelper("currency",function(t,r="BRL"){return typeof t!="number"?"":new Intl.NumberFormat("pt-BR",{style:"currency",currency:r}).format(t)}),this.instance.registerHelper("capitalize",function(t){return typeof t!="string"?"":t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()}),this.instance.registerHelper("eq",function(t,r){return t===r}),this.instance.registerHelper("ne",function(t,r){return t!==r}),this.instance.registerHelper("gt",function(t,r){return t>r}),this.instance.registerHelper("lt",function(t,r){return t<r}),this.instance.registerHelper("default",function(t,r){return t||r})}}class WS extends oy{render(t,r={},n={}){return t}}class yp{static getEngine(t){const r=this.formatToEngineMap[t.format.toLowerCase()]||"raw",n=this.engines.get(r);if(!n)throw new LS(t.format,Object.keys(this.formatToEngineMap));return n}static getAvailableEngines(){return Array.from(this.engines.keys())}}yp.engines=new Map([["handlebars",new US],["raw",new WS]]),yp.formatToEngineMap={html:"handlebars",text:"raw"};class Bc{static create(t,r){const n=yp.getEngine(t);return new iu(t,n,r)}}class GS{constructor(t,r,n={}){this.config={baseUrl:t.replace(/\/$/,""),tenantId:r,timeout:n.timeout||3e4,headers:n.headers||{}},this.client=jt.create({baseURL:this.config.baseUrl,timeout:this.config.timeout,headers:{"Content-Type":"application/json","x-tenant":this.config.tenantId,...this.config.headers}}),this.client.interceptors.response.use(a=>a,a=>{HS.handleAxiosError(a)})}async get(t){const r=await this.client.get(`/v1/templates/${t}`);return Bc.create(r.data.payload,this)}async getAll(){return(await this.client.get("/v1/templates")).data.payload.map(r=>Bc.create(r,this))}async create(t){const r=await this.client.post("/v1/templates",t);return Bc.create(r.data.payload,this)}async update(t,r){const n=await this.client.put(`/v1/templates/${t}`,r);return Bc.create(n.data.payload,this)}async delete(t){return await this.client.delete(`/v1/templates/${t}`),!0}async healthCheck(){try{return(await this.client.get("/healthcheck")).status===200}catch{return!1}}updateConfig(t){this.config={...this.config,...t},this.client.defaults.baseURL=this.config.baseUrl,this.client.defaults.timeout=this.config.timeout,this.client.defaults.headers["x-tenant"]=this.config.tenantId,this.config.headers&&Object.assign(this.client.defaults.headers,this.config.headers)}getConfig(){return{...this.config}}}const VS=({templateId:e,baseUrl:t="http://localhost:3000",tenant:r="demo",children:n})=>{const[a,i]=I.useState(!1),[u,h]=I.useState({}),g=I.useMemo(()=>(t||console.warn("[TemplateProvider] baseUrl was not provided"),r||console.warn("[TemplateProvider] tenant was not provided"),new GS(t,r)),[t,r]),p=I.useCallback(async S=>{if(S)try{i(!0);const R=await g.get(S);h(R)}finally{i(!1)}},[g]),b=I.useCallback(S=>h(R=>R?.update?.(S)),[h]),D=I.useCallback(async()=>{if(!u?.id){console.warn("No template loaded to save");return}try{i(!0);const S=await u.save();h(S)}catch(S){console.error("Error saving template:",S)}finally{i(!1)}},[u]);I.useEffect(()=>{e&&p(e)},[e,p]);const F=I.useMemo(()=>({loading:a,template:u,loadTemplate:p,updateTemplate:b,saveTemplate:D}),[a,u,p,b]);return m.jsx(l0.Provider,{value:F,children:n})},uy={desktop:{width:1200,height:800,name:"Desktop"},tablet:{width:768,height:1024,name:"Tablet"},mobile:{width:375,height:667,name:"Mobile"}},YS=({canvasSize:e,hasCanvasContent:t,onZoomChange:r,placeholderData:n={}})=>{const{template:a}=u0(),[i,u]=I.useState(100),[h,g]=I.useState(""),p=I.useMemo(()=>uy[e]||uy.desktop,[e]);return I.useEffect(()=>{const b=()=>{const D=window.innerWidth-100,F=window.innerHeight-200,S=D/p.width,R=F/p.height,O=Math.min(S,R,1)*100,N=Math.max(25,Math.min(100,O));u(N),r&&r(N)};return b(),window.addEventListener("resize",b),()=>window.removeEventListener("resize",b)},[e,p.width,p.height,r]),I.useEffect(()=>{if(!t){g("");return}try{if(a&&a.render){const b=a.render(n);g(b)}else g("")}catch(b){console.error("Error rendering template:",b),g("")}},[t,n,a]),m.jsx("div",{className:"relative flex flex-1 items-center justify-center overflow-auto bg-[#F5F5F7] p-8",children:m.jsx("div",{className:"flex h-full w-full items-center justify-center",children:m.jsxs("div",{className:"relative overflow-hidden rounded-lg border border-[#E8E7EE] bg-white shadow-lg",style:{width:p.width*(i/100),height:p.height*(i/100),maxWidth:"100%",maxHeight:"100%"},children:[e==="mobile"&&m.jsxs(m.Fragment,{children:[m.jsx("div",{className:"absolute inset-x-0 top-0 z-10 flex h-6 items-center justify-center rounded-t-lg bg-black",children:m.jsx("div",{className:"h-1 w-12 rounded-full bg-gray-600"})}),m.jsx("div",{className:"absolute inset-x-0 bottom-1 z-10 flex justify-center",children:m.jsx("div",{className:"h-1 w-16 rounded-full bg-black opacity-30"})})]}),m.jsxs("div",{className:"h-full w-full overflow-hidden",style:{transform:`scale(${i/100})`,transformOrigin:"top left",width:`${100/(i/100)}%`,height:`${100/(i/100)}%`},children:[!t&&m.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-gray-50",children:m.jsxs("div",{className:"p-8 text-center",children:[m.jsx("div",{className:"mx-auto mb-4 flex h-16 w-16 items-center justify-center rounded-lg border-2 border-dashed border-[#E8E7EE] bg-[#F5F5F7]",children:m.jsx("span",{className:"text-2xl text-[#A29FB9]",children:"📄"})}),m.jsx("h3",{className:"mb-2 text-lg font-medium text-[#170F4F]",children:"No content to preview"}),m.jsx("p",{className:"text-sm text-[#A29FB9]",children:"Add components to see the preview"})]})}),m.jsx("div",{className:"h-full min-h-screen bg-white",style:{overflow:"visible",position:"relative",minHeight:"100%"},dangerouslySetInnerHTML:{__html:h}})]})]})})})},cy={desktop:{width:1200,height:800,name:"Desktop",icon:ce.FiMonitor},tablet:{width:768,height:1024,name:"Tablet",icon:ce.FiTablet},mobile:{width:375,height:667,name:"Mobile",icon:ce.FiSmartphone}},JS=({canvasSize:e,onCanvasSizeChange:t,onExitPreview:r,onDownloadHTML:n,onOpenInNewTab:a,showPlayground:i=!1,onTogglePlayground:u})=>{const[h,g]=I.useState(!1),[p,b]=I.useState(100);return m.jsx("div",{className:"border-b border-[#E8E7EE] bg-white px-6 py-3",children:m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsxs("div",{className:"flex items-center gap-3",children:[m.jsxs("button",{onClick:r,className:"flex items-center gap-2 px-3 py-1.5 text-sm font-medium text-[#170F4F] transition-colors hover:bg-[#F5F5F7]",children:[m.jsx(ce.FiX,{className:"h-4 w-4"}),"Exit Preview"]}),m.jsx("div",{className:"h-6 w-px bg-[#E8E7EE]"}),m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx(ce.FiEye,{className:"h-4 w-4 text-[#00BAC7]"}),m.jsx("span",{className:"text-sm font-medium text-[#170F4F]",children:"Preview Mode"})]})]}),m.jsx("div",{className:"flex items-center gap-2",children:Object.keys(cy).map(D=>{const F=cy[D],S=F.icon,R=e===D;return m.jsxs("button",{onClick:()=>t(D),className:`flex items-center gap-2 px-3 py-1.5 text-sm font-medium transition-all duration-200 ${R?"bg-[#170F4F] text-white":"border border-[#E8E7EE] text-[#170F4F] hover:bg-[#F5F5F7]"} `,title:F.name,children:[m.jsx(S,{className:"h-4 w-4"}),m.jsx("span",{className:"hidden sm:inline",children:F.name})]},D)})}),m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsxs("div",{className:"flex items-center overflow-hidden border border-[#E8E7EE]",children:[m.jsx("button",{onClick:()=>b(Math.max(25,p-25)),className:"px-3 py-1.5 text-[#170F4F] transition-colors hover:bg-[#F5F5F7] disabled:cursor-not-allowed disabled:opacity-50",disabled:p<=25,children:"−"}),m.jsxs("div",{className:"min-w-[60px] border-x border-[#E8E7EE] bg-[#F5F5F7] px-3 py-1.5 text-center text-sm font-medium text-[#170F4F]",children:[p,"%"]}),m.jsx("button",{onClick:()=>b(Math.min(200,p+25)),className:"px-3 py-1.5 text-[#170F4F] transition-colors hover:bg-[#F5F5F7] disabled:cursor-not-allowed disabled:opacity-50",disabled:p>=200,children:"+"})]}),m.jsx("button",{onClick:()=>g(!h),className:`p-1.5 transition-all duration-200 ${h?"bg-[#170F4F] text-white":"border border-[#E8E7EE] text-[#170F4F] hover:bg-[#F5F5F7]"} `,title:"Toggle Rulers",children:m.jsx(ce.FiEyeOff,{className:"h-4 w-4"})}),m.jsx("div",{className:"h-6 w-px bg-[#E8E7EE]"}),u&&m.jsxs("button",{onClick:u,className:`flex items-center gap-2 px-3 py-1.5 text-sm font-medium transition-all duration-200 ${i?"bg-[#170F4F] text-white":"border border-[#E8E7EE] text-[#170F4F] hover:bg-[#F5F5F7]"} `,title:"Toggle Data Playground",children:[m.jsx(ce.FiDatabase,{className:"h-4 w-4"}),m.jsx("span",{className:"hidden sm:inline",children:"Data"})]}),m.jsx("div",{className:"h-6 w-px bg-[#E8E7EE]"}),m.jsxs("button",{onClick:n,className:"flex items-center gap-2 border border-[#E8E7EE] px-3 py-1.5 text-sm font-medium text-[#170F4F] transition-colors hover:bg-[#F5F5F7]",title:"Download HTML",children:[m.jsx(ce.FiDownload,{className:"h-4 w-4"}),m.jsx("span",{className:"hidden sm:inline",children:"Download"})]}),m.jsxs("button",{onClick:a,className:"flex items-center gap-2 bg-[#170F4F] px-3 py-1.5 text-sm font-medium text-white transition-colors hover:bg-[#00BAC7]",title:"Open in New Tab",children:[m.jsx(ce.FiExternalLink,{className:"h-4 w-4"}),m.jsx("span",{className:"hidden sm:inline",children:"Open"})]})]})]})})},XS=350,ZS=700,qS=450,KS=({placeholders:e,placeholderSchema:t,onPlaceholdersChange:r,onSchemaChange:n,width:a=qS,onWidthChange:i})=>{const[u,h]=I.useState({type:"text"}),[g,p]=I.useState(!1),[b,D]=I.useState(!1),F=I.useRef(null),S=I.useRef(0),R=I.useRef(0),O=I.useCallback(Y=>{D(!0),S.current=Y.clientX,R.current=a,Y.preventDefault()},[a]),N=I.useCallback(Y=>{if(!b)return;const ie=S.current-Y.clientX,ee=Math.min(ZS,Math.max(XS,R.current+ie));i&&i(ee)},[b,i]),_=I.useCallback(()=>{D(!1)},[]);I.useEffect(()=>{if(b)return document.addEventListener("mousemove",N),document.addEventListener("mouseup",_),document.body.style.cursor="col-resize",document.body.style.userSelect="none",()=>{document.removeEventListener("mousemove",N),document.removeEventListener("mouseup",_),document.body.style.cursor="",document.body.style.userSelect=""}},[b,N,_]);const M=(Y,ie)=>{r({...e,[Y]:ie})},U=()=>{if(!u.key||!u.label||!u.type)return;const Y={key:u.key,label:u.label,type:u.type,value:u.value||H(u.type),options:u.options};n([...t,Y]),r({...e,[Y.key]:Y.value||""}),h({type:"text"}),p(!1)},H=Y=>{switch(Y){case"text":return"Sample text";case"number":return 0;case"boolean":return!1;case"date":return new Date().toISOString().split("T")[0];case"enum":return"";default:return""}},q=Y=>{n(t.filter(ee=>ee.key!==Y));const ie={...e};delete ie[Y],r(ie)},Q=Y=>{const ie=e[Y.key]||Y.value||"";switch(Y.type){case"text":return m.jsx("input",{type:"text",value:String(ie),onChange:ee=>M(Y.key,ee.target.value),className:"w-full rounded-none border border-[#E8E7EE] bg-white px-3 py-2 text-sm transition-all focus:border-[#170F4F] focus:bg-[#F9F8FE] focus:outline-none focus:ring-2 focus:ring-[#170F4F]",placeholder:"Enter text here..."});case"number":return m.jsx("input",{type:"number",value:Number(ie),onChange:ee=>M(Y.key,parseFloat(ee.target.value)||0),className:"w-full rounded-none border border-[#E8E7EE] bg-white px-3 py-2 text-sm transition-all focus:border-[#170F4F] focus:bg-[#F9F8FE] focus:outline-none focus:ring-2 focus:ring-[#170F4F]",placeholder:"Enter a number..."});case"boolean":return m.jsxs("div",{className:"flex items-center gap-4 rounded-none border border-[#E8E7EE] bg-white p-3",children:[m.jsxs("label",{className:"flex cursor-pointer items-center",children:[m.jsx("input",{type:"radio",name:`${Y.key}-bool`,checked:!!ie,onChange:()=>M(Y.key,!0),className:"h-4 w-4 border-[#E8E7EE] text-[#170F4F] focus:ring-2 focus:ring-[#170F4F]"}),m.jsx("span",{className:"ml-2 text-sm font-medium text-[#170F4F]",children:"Yes"})]}),m.jsxs("label",{className:"flex cursor-pointer items-center",children:[m.jsx("input",{type:"radio",name:`${Y.key}-bool`,checked:!ie,onChange:()=>M(Y.key,!1),className:"h-4 w-4 border-[#E8E7EE] text-[#170F4F] focus:ring-2 focus:ring-[#170F4F]"}),m.jsx("span",{className:"ml-2 text-sm font-medium text-[#170F4F]",children:"No"})]})]});case"enum":return m.jsxs("select",{value:String(ie),onChange:ee=>M(Y.key,ee.target.value),className:"w-full rounded-none border border-[#E8E7EE] bg-white px-3 py-2 text-sm transition-all focus:border-[#170F4F] focus:bg-[#F9F8FE] focus:outline-none focus:ring-2 focus:ring-[#170F4F]",children:[m.jsx("option",{value:"",children:"Choose an option..."}),Y.options?.map((ee,ve)=>typeof ee=="string"?m.jsx("option",{value:ee,children:ee},ve):m.jsx("option",{value:String(ee.value),children:ee.label},ve))]});case"date":return m.jsx("input",{type:"date",value:String(ie),onChange:ee=>M(Y.key,ee.target.value),className:"w-full rounded-none border border-[#E8E7EE] bg-white px-3 py-2 text-sm transition-all focus:border-[#170F4F] focus:bg-[#F9F8FE] focus:outline-none focus:ring-2 focus:ring-[#170F4F]"});default:return null}};return m.jsxs("div",{className:"relative flex animate-slide-in-right flex-col border-l border-[#E8E7EE] bg-white transition-all duration-300 ease-in-out",style:{width:`${a}px`},children:[m.jsx("div",{ref:F,className:`absolute bottom-0 left-0 top-0 w-1 cursor-col-resize transition-colors duration-200 hover:bg-[#00BAC7] ${b?"bg-[#00BAC7]":"bg-transparent"} group`,onMouseDown:O,children:m.jsx("div",{className:"absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 transform opacity-0 transition-opacity group-hover:opacity-100",children:m.jsx(ce.FiMoreVertical,{className:"h-3 w-3 text-[#A29FB9]"})})}),m.jsxs("div",{className:"border-b border-[#E8E7EE] bg-gradient-to-r from-[#F9F8FE] to-white p-6",children:[m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsxs("div",{children:[m.jsx("h3",{className:"mb-1 text-lg font-semibold text-[#170F4F]",children:"Placeholders"}),m.jsx("p",{className:"text-sm text-[#A29FB9]",children:"Customize the content that appears in your template"})]}),m.jsxs("button",{onClick:()=>p(!0),className:"flex items-center gap-2 rounded-none bg-[#170F4F] px-4 py-2 text-sm font-medium text-white shadow-sm transition-all duration-200 hover:bg-[#00BAC7] hover:shadow-md disabled:cursor-not-allowed disabled:opacity-50 disabled:hover:bg-[#170F4F] disabled:hover:shadow-sm",disabled:g,children:[m.jsx(ce.FiPlus,{className:"h-4 w-4"}),"Add"]})]}),g&&m.jsxs("div",{className:"mt-4 animate-fade-in rounded-none border border-[#E8E7EE] bg-white p-4 shadow-sm",children:[m.jsx("h4",{className:"mb-4 text-sm font-semibold text-[#170F4F]",children:"Add New Placeholder"}),m.jsxs("div",{className:"space-y-4",children:[m.jsxs("div",{children:[m.jsx("label",{className:"mb-2 block text-xs font-medium text-[#170F4F]",children:"Field Name"}),m.jsx("input",{type:"text",placeholder:"e.g., Customer Name",value:u.label||"",onChange:Y=>{const ie=Y.target.value,ee=ie.replace(/[^a-zA-Z0-9\s]/g,"").replace(/\s+/g,"_").replace(/^_+|_+$/g,"");h({...u,label:ie,key:ee})},className:"w-full rounded-none border border-[#E8E7EE] bg-white px-3 py-2 text-sm transition-all focus:border-[#170F4F] focus:bg-[#F9F8FE] focus:outline-none focus:ring-2 focus:ring-[#170F4F]"})]}),m.jsxs("div",{children:[m.jsx("label",{className:"mb-2 block text-xs font-medium text-[#170F4F]",children:"Data Type"}),m.jsxs("select",{value:u.type||"text",onChange:Y=>h({...u,type:Y.target.value}),className:"w-full rounded-none border border-[#E8E7EE] bg-white px-3 py-2 text-sm transition-all focus:border-[#170F4F] focus:bg-[#F9F8FE] focus:outline-none focus:ring-2 focus:ring-[#170F4F]",children:[m.jsx("option",{value:"text",children:"Text"}),m.jsx("option",{value:"number",children:"Number"}),m.jsx("option",{value:"boolean",children:"True/False"}),m.jsx("option",{value:"enum",children:"Multiple Choice"}),m.jsx("option",{value:"date",children:"Date"})]})]})]}),m.jsxs("div",{className:"mt-6 flex gap-2 border-t border-[#E8E7EE] pt-4",children:[m.jsx("button",{onClick:U,disabled:!u.key||!u.label,className:"rounded-none bg-[#170F4F] px-4 py-2 text-sm font-medium text-white shadow-sm transition-colors duration-200 hover:bg-[#00BAC7] disabled:cursor-not-allowed disabled:opacity-50 disabled:hover:bg-[#170F4F]",children:"Confirm"}),m.jsx("button",{onClick:()=>p(!1),className:"rounded-none border border-[#E8E7EE] px-4 py-2 text-sm font-medium text-[#A29FB9] transition-colors duration-200 hover:bg-[#F9F8FE] hover:text-[#170F4F]",children:"Cancel"})]})]})]}),m.jsx("div",{className:"flex-1 overflow-y-auto p-6",children:t.length===0?m.jsxs("div",{className:"py-12 text-center text-[#A29FB9]",children:[m.jsx("div",{className:"mx-auto mb-4 flex h-16 w-16 items-center justify-center rounded-none border border-[#E8E7EE] bg-[#F9F8FE]",children:m.jsx(ce.FiPlus,{className:"h-8 w-8 text-[#170F4F]"})}),m.jsx("h4",{className:"mb-2 text-lg font-medium text-[#170F4F]",children:"No data fields yet"}),m.jsx("p",{className:"mb-4 text-sm",children:"Add data fields to make your template dynamic"}),m.jsx("button",{onClick:()=>p(!0),className:"text-sm font-medium text-[#170F4F] transition-colors duration-200 hover:text-[#00BAC7]",children:"Add your first field"})]}):m.jsx("div",{className:"space-y-4",children:t.map(Y=>m.jsxs("div",{className:"rounded-none border border-[#E8E7EE] bg-white p-4 transition-all duration-200 hover:border-[#170F4F] hover:shadow-sm",children:[m.jsxs("div",{className:"mb-3 flex items-start justify-between",children:[m.jsxs("div",{className:"flex-1",children:[m.jsx("h4",{className:"mb-1 text-sm font-semibold text-[#170F4F]",children:Y.label}),m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx("span",{className:"inline-flex items-center rounded-none border border-[#E8E7EE] bg-[#F9F8FE] px-2 py-1 text-xs font-medium text-[#170F4F]",children:Y.type==="boolean"?"True/False":Y.type==="enum"?"Multiple Choice":Y.type.charAt(0).toUpperCase()+Y.type.slice(1)}),m.jsx("span",{className:"font-mono text-xs text-[#A29FB9]",children:Y.key})]})]}),m.jsx("button",{onClick:()=>q(Y.key),className:"rounded-none p-1 text-[#A29FB9] transition-colors duration-200 hover:bg-red-50 hover:text-red-500",title:"Remove field",children:m.jsx(ce.FiTrash2,{className:"h-4 w-4"})})]}),m.jsxs("div",{className:"space-y-2",children:[m.jsx("label",{className:"block text-xs font-medium text-[#170F4F]",children:"Current Value:"}),m.jsx("div",{className:"w-full",children:Q(Y)})]})]},Y.key))})})]})};function QS(e){let t=`<!DOCTYPE html>
|
|
143
|
-
<html lang="en">
|
|
144
|
-
<head>
|
|
145
|
-
<meta charset="UTF-8">
|
|
146
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
147
|
-
<title>Bolttech Page</title>
|
|
148
|
-
<style>
|
|
149
|
-
* {
|
|
150
|
-
margin: 0;
|
|
151
|
-
padding: 0;
|
|
152
|
-
box-sizing: border-box;
|
|
153
|
-
}
|
|
154
|
-
body {
|
|
155
|
-
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
156
|
-
line-height: 1.5;
|
|
157
|
-
color: #333;
|
|
158
|
-
}
|
|
159
|
-
.page-container {
|
|
160
|
-
max-width: 1200px;
|
|
161
|
-
margin: 0 auto;
|
|
162
|
-
padding: 20px;
|
|
163
|
-
}
|
|
164
|
-
</style>
|
|
165
|
-
</head>
|
|
166
|
-
<body>
|
|
167
|
-
<div class="page-container">
|
|
168
|
-
${e}
|
|
169
|
-
</div>
|
|
170
|
-
</body>
|
|
171
|
-
</html>`;t=t.replace(/\s+/g," ").replace(/>\s+</g,"><").trim();const r=new Blob([t],{type:"text/html"}),n=URL.createObjectURL(r),a=document.createElement("a");a.href=n,a.download="bolttech-page.html",document.body.appendChild(a),a.click(),document.body.removeChild(a),URL.revokeObjectURL(n)}const xp={desktop:{width:1200,height:800,name:"Desktop"},tablet:{width:768,height:1024,name:"Tablet"},mobile:{width:375,height:667,name:"Mobile"}},$S=({isPreviewMode:e,onExitPreview:t,initialPlaceholders:r={},initialPlaceholderSchema:n=[]})=>{const{getHtml:a,device:i,setDevice:u,isEmpty:h}=ac(),[g,p]=I.useState(!1),[b,D]=I.useState(100),[F,S]=I.useState(!0),[R,O]=I.useState(450),[N,_]=I.useState(r),[M,U]=I.useState(n),H=()=>{p(!0),setTimeout(()=>{t(),p(!1)},300)},q=()=>{const Y=a();QS(Y)},Q=()=>{S(!F)};return e?m.jsxs("div",{className:`fixed inset-0 z-50 bg-[#F5F5F7] ${g?"animate-fade-out":"animate-fade-in"}`,children:[m.jsx("div",{className:g?"animate-slide-up-out":"animate-slide-down",children:m.jsx(JS,{canvasSize:i,onCanvasSizeChange:u,onExitPreview:H,onDownloadHTML:q,onOpenInNewTab:()=>{const Y=a();window.open()?.document.write(Y)},showPlayground:F,onTogglePlayground:Q})}),m.jsxs("div",{className:"flex h-full",children:[m.jsx("div",{className:g?"animate-slide-down-out":"animate-slide-up",style:{flex:1},children:m.jsx(YS,{canvasSize:i,hasCanvasContent:h,onZoomChange:D,placeholderData:N})}),F&&m.jsx(KS,{placeholders:N,placeholderSchema:M,onPlaceholdersChange:_,onSchemaChange:U,width:R,onWidthChange:O})]}),m.jsxs("div",{className:"fixed bottom-4 left-4 z-[60] rounded bg-[#170F4F] px-3 py-2 text-sm text-white shadow-md",children:[xp[i].name," • ",xp[i].width,"×",xp[i].height,"px • ",b.toFixed(3),"%"]})]}):null},ek=Wl.reduce((e,t)=>(e[t.id]=t.component,e),{}),tk=({placeholders:e={},placeholderSchema:t=[]})=>{const r=jv();return m.jsxs(hw,{resolver:ek,onRender:dF,enabled:r.isEditorEnabled,children:[m.jsx(QE,{onPreviewToggle:r.togglePreview,showCodePanel:r.showCodePanel,onCodePanelToggle:r.toggleCodePanel,codePanelChildren:m.jsx(yE,{onClose:r.closeCodePanel})}),m.jsx($S,{isPreviewMode:r.showPreview,onExitPreview:()=>r.togglePreview(),initialPlaceholders:e,initialPlaceholderSchema:t})]})},rk='@import"https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap";*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:Arial,Helvetica,sans-serif;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.container{width:100%}@media (min-width: 480px){.container{max-width:480px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1440px){.container{max-width:1440px}}@media (min-width: 1536px){.container{max-width:1536px}}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.collapse{visibility:collapse}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{inset:0}.inset-x-0{left:0;right:0}.inset-y-0{top:0;bottom:0}.-right-0\\.5{right:-.125rem}.-top-0\\.5{top:-.125rem}.bottom-0{bottom:0}.bottom-1{bottom:.25rem}.bottom-4{bottom:1rem}.bottom-full{bottom:100%}.left-0{left:0}.left-1{left:.25rem}.left-1\\/2{left:50%}.left-3{left:.75rem}.left-4{left:1rem}.left-auto{left:auto}.right-0{right:0}.right-3{right:.75rem}.right-auto{right:auto}.top-0{top:0}.top-1\\/2{top:50%}.top-\\[-2px\\]{top:-2px}.top-\\[-3px\\]{top:-3px}.top-full{top:100%}.z-10{z-index:10}.z-50{z-index:50}.z-\\[60\\]{z-index:60}.mx-1\\.5{margin-left:.375rem;margin-right:.375rem}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:.25rem;margin-bottom:.25rem}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.ml-0{margin-left:0}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.mr-1\\.5{margin-right:.375rem}.mr-2\\.5{margin-right:.625rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.h-1{height:.25rem}.h-1\\.5{height:.375rem}.h-10{height:2.5rem}.h-16{height:4rem}.h-2{height:.5rem}.h-3{height:.75rem}.h-32{height:8rem}.h-4{height:1rem}.h-40{height:10rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-7{height:1.75rem}.h-8{height:2rem}.h-\\[400px\\]{height:400px}.h-\\[90vh\\]{height:90vh}.h-full{height:100%}.h-px{height:1px}.h-screen{height:100vh}.max-h-\\[42vh\\]{max-height:42vh}.min-h-fit{min-height:-moz-fit-content;min-height:fit-content}.min-h-screen{min-height:100vh}.w-1{width:.25rem}.w-1\\.5{width:.375rem}.w-1\\/2{width:50%}.w-10{width:2.5rem}.w-12{width:3rem}.w-16{width:4rem}.w-2{width:.5rem}.w-20{width:5rem}.w-3{width:.75rem}.w-4{width:1rem}.w-48{width:12rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-64{width:16rem}.w-7{width:1.75rem}.w-8{width:2rem}.w-80{width:20rem}.w-\\[10\\%\\]{width:10%}.w-\\[20\\%\\]{width:20%}.w-full{width:100%}.w-px{width:1px}.min-w-\\[120px\\]{min-width:120px}.min-w-\\[140px\\]{min-width:140px}.min-w-\\[180px\\]{min-width:180px}.min-w-\\[60px\\]{min-width:60px}.max-w-6xl{max-width:72rem}.max-w-\\[40vw\\]{max-width:40vw}.max-w-lg{max-width:32rem}.flex-1{flex:1 1 0%}.-translate-x-1\\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-rotate-90{--tw-rotate: -90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-0{--tw-rotate: 0deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.animate-fade-in{animation:fadeIn .4s ease-out}.animate-fade-out{animation:fadeOut .3s ease-in}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}.animate-slide-down{animation:slideDown .5s ease-out .1s both}.animate-slide-down-out{animation:slideDownOut .3s ease-in both}.animate-slide-in-right{animation:slideInRight .3s ease-out}.animate-slide-up{animation:slideUp .5s ease-out .2s both}.animate-slide-up-out{animation:slideUpOut .3s ease-in both}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-col-resize{cursor:col-resize}.cursor-move{cursor:move}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize-none{resize:none}.resize{resize:both}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-1\\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-0\\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.125rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.125rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-scroll{overflow:scroll}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:8px}.rounded-md{border-radius:4px}.rounded-none{border-radius:0}.rounded-sm{border-radius:2px}.rounded-t-lg{border-top-left-radius:8px;border-top-right-radius:8px}.border{border-width:1px}.border-2{border-width:2px}.border-x{border-left-width:1px;border-right-width:1px}.border-b{border-bottom-width:1px}.border-b-2{border-bottom-width:2px}.border-l{border-left-width:1px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-dashed{border-style:dashed}.border-none{border-style:none}.border-\\[\\#00BAC7\\]{--tw-border-opacity: 1;border-color:rgb(0 186 199 / var(--tw-border-opacity, 1))}.border-\\[\\#170F4F\\],.border-\\[\\#170f4f\\]{--tw-border-opacity: 1;border-color:rgb(23 15 79 / var(--tw-border-opacity, 1))}.border-\\[\\#30aab3\\]{--tw-border-opacity: 1;border-color:rgb(48 170 179 / var(--tw-border-opacity, 1))}.border-\\[\\#3B82F6\\]{--tw-border-opacity: 1;border-color:rgb(59 130 246 / var(--tw-border-opacity, 1))}.border-\\[\\#D1D5DB\\]{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1))}.border-\\[\\#E8E7EE\\]{--tw-border-opacity: 1;border-color:rgb(232 231 238 / var(--tw-border-opacity, 1))}.border-\\[\\#dce7fe\\]{--tw-border-opacity: 1;border-color:rgb(220 231 254 / var(--tw-border-opacity, 1))}.border-\\[\\#e8e7ee\\]{--tw-border-opacity: 1;border-color:rgb(232 231 238 / var(--tw-border-opacity, 1))}.border-blue-500{--tw-border-opacity: 1;border-color:rgb(59 130 246 / var(--tw-border-opacity, 1))}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1))}.border-gray-700{--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity, 1))}.border-red-200{--tw-border-opacity: 1;border-color:rgb(254 202 202 / var(--tw-border-opacity, 1))}.border-transparent{border-color:transparent}.bg-\\[\\#00BAC7\\]{--tw-bg-opacity: 1;background-color:rgb(0 186 199 / var(--tw-bg-opacity, 1))}.bg-\\[\\#170F4F\\]{--tw-bg-opacity: 1;background-color:rgb(23 15 79 / var(--tw-bg-opacity, 1))}.bg-\\[\\#170F4F\\]\\/10{background-color:#170f4f1a}.bg-\\[\\#170f4f\\]{--tw-bg-opacity: 1;background-color:rgb(23 15 79 / var(--tw-bg-opacity, 1))}.bg-\\[\\#181c24\\]{--tw-bg-opacity: 1;background-color:rgb(24 28 36 / var(--tw-bg-opacity, 1))}.bg-\\[\\#23272f\\]{--tw-bg-opacity: 1;background-color:rgb(35 39 47 / var(--tw-bg-opacity, 1))}.bg-\\[\\#CCF1F4\\]{--tw-bg-opacity: 1;background-color:rgb(204 241 244 / var(--tw-bg-opacity, 1))}.bg-\\[\\#E8E7EE\\]{--tw-bg-opacity: 1;background-color:rgb(232 231 238 / var(--tw-bg-opacity, 1))}.bg-\\[\\#EFF6FF\\]{--tw-bg-opacity: 1;background-color:rgb(239 246 255 / var(--tw-bg-opacity, 1))}.bg-\\[\\#F5F5F7\\]{--tw-bg-opacity: 1;background-color:rgb(245 245 247 / var(--tw-bg-opacity, 1))}.bg-\\[\\#F9F8FE\\]{--tw-bg-opacity: 1;background-color:rgb(249 248 254 / var(--tw-bg-opacity, 1))}.bg-\\[\\#F9FAFB\\]{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}.bg-black{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity, 1))}.bg-blue-100{--tw-bg-opacity: 1;background-color:rgb(219 234 254 / var(--tw-bg-opacity, 1))}.bg-blue-600{--tw-bg-opacity: 1;background-color:rgb(37 99 235 / var(--tw-bg-opacity, 1))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.bg-gray-200{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity, 1))}.bg-gray-400{--tw-bg-opacity: 1;background-color:rgb(156 163 175 / var(--tw-bg-opacity, 1))}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}.bg-gray-50\\/50{background-color:#f9fafb80}.bg-gray-600{--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity, 1))}.bg-gray-800{--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity, 1))}.bg-gray-900{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity, 1))}.bg-green-100{--tw-bg-opacity: 1;background-color:rgb(220 252 231 / var(--tw-bg-opacity, 1))}.bg-green-500{--tw-bg-opacity: 1;background-color:rgb(34 197 94 / var(--tw-bg-opacity, 1))}.bg-orange-500{--tw-bg-opacity: 1;background-color:rgb(249 115 22 / var(--tw-bg-opacity, 1))}.bg-purple-100{--tw-bg-opacity: 1;background-color:rgb(243 232 255 / var(--tw-bg-opacity, 1))}.bg-red-50{--tw-bg-opacity: 1;background-color:rgb(254 242 242 / var(--tw-bg-opacity, 1))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-yellow-200{--tw-bg-opacity: 1;background-color:rgb(254 240 138 / var(--tw-bg-opacity, 1))}.bg-yellow-500{--tw-bg-opacity: 1;background-color:rgb(234 179 8 / var(--tw-bg-opacity, 1))}.bg-opacity-40{--tw-bg-opacity: .4}.bg-opacity-50{--tw-bg-opacity: .5}.bg-gradient-to-br{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.from-\\[\\#F9F8FE\\]{--tw-gradient-from: #F9F8FE var(--tw-gradient-from-position);--tw-gradient-to: rgb(249 248 254 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-gray-100{--tw-gradient-from: #f3f4f6 var(--tw-gradient-from-position);--tw-gradient-to: rgb(243 244 246 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.to-gray-200{--tw-gradient-to: #e5e7eb var(--tw-gradient-to-position)}.to-white{--tw-gradient-to: #fff var(--tw-gradient-to-position)}.p-0{padding:0}.p-0\\.5{padding:.125rem}.p-1{padding:.25rem}.p-1\\.5{padding:.375rem}.p-2{padding:.5rem}.p-2\\.5{padding:.625rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.px-0\\.5{padding-left:.125rem;padding-right:.125rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-1\\.5{padding-left:.375rem;padding-right:.375rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-0\\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pb-1{padding-bottom:.25rem}.pb-8{padding-bottom:2rem}.pl-9{padding-left:2.25rem}.pr-10{padding-right:2.5rem}.pr-3{padding-right:.75rem}.pr-9{padding-right:2.25rem}.pt-2{padding-top:.5rem}.pt-4{padding-top:1rem}.pt-8{padding-top:2rem}.text-left{text-align:left}.text-center{text-align:center}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-2xl{font-size:1.5rem;line-height:2rem}.text-\\[10px\\]{font-size:10px}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.capitalize{text-transform:capitalize}.italic{font-style:italic}.leading-none{line-height:1}.leading-tight{line-height:1.25}.tracking-wide{letter-spacing:2px}.text-\\[\\#00BAC7\\]{--tw-text-opacity: 1;color:rgb(0 186 199 / var(--tw-text-opacity, 1))}.text-\\[\\#170F4F\\],.text-\\[\\#170f4f\\]{--tw-text-opacity: 1;color:rgb(23 15 79 / var(--tw-text-opacity, 1))}.text-\\[\\#3B82F6\\]{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity, 1))}.text-\\[\\#6B7280\\]{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.text-\\[\\#A29FB9\\]{--tw-text-opacity: 1;color:rgb(162 159 185 / var(--tw-text-opacity, 1))}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity, 1))}.text-blue-600{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity, 1))}.text-blue-800{--tw-text-opacity: 1;color:rgb(30 64 175 / var(--tw-text-opacity, 1))}.text-gray-300{--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity, 1))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}.text-gray-800{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity, 1))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}.text-green-400{--tw-text-opacity: 1;color:rgb(74 222 128 / var(--tw-text-opacity, 1))}.text-green-600{--tw-text-opacity: 1;color:rgb(22 163 74 / var(--tw-text-opacity, 1))}.text-green-800{--tw-text-opacity: 1;color:rgb(22 101 52 / var(--tw-text-opacity, 1))}.text-orange-600{--tw-text-opacity: 1;color:rgb(234 88 12 / var(--tw-text-opacity, 1))}.text-purple-600{--tw-text-opacity: 1;color:rgb(147 51 234 / var(--tw-text-opacity, 1))}.text-purple-800{--tw-text-opacity: 1;color:rgb(107 33 168 / var(--tw-text-opacity, 1))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.text-yellow-400{--tw-text-opacity: 1;color:rgb(250 204 21 / var(--tw-text-opacity, 1))}.text-yellow-900{--tw-text-opacity: 1;color:rgb(113 63 18 / var(--tw-text-opacity, 1))}.underline{text-decoration-line:underline}.placeholder-gray-500::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(107 114 128 / var(--tw-placeholder-opacity, 1))}.placeholder-gray-500::placeholder{--tw-placeholder-opacity: 1;color:rgb(107 114 128 / var(--tw-placeholder-opacity, 1))}.opacity-0{opacity:0}.opacity-30{opacity:.3}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.shadow-lg{--tw-shadow: 0 10px 15px rgba(0, 0, 0, .15);--tw-shadow-colored: 0 10px 15px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px rgba(0, 0, 0, .1);--tw-shadow-colored: 0 4px 6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px rgba(0, 0, 0, .05);--tw-shadow-colored: 0 1px 2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.ring{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-1{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-2{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-yellow-300{--tw-ring-opacity: 1;--tw-ring-color: rgb(253 224 71 / var(--tw-ring-opacity, 1))}.ring-yellow-400{--tw-ring-opacity: 1;--tw-ring-color: rgb(250 204 21 / var(--tw-ring-opacity, 1))}.ring-opacity-50{--tw-ring-opacity: .5}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.avoid-transition,.avoid-transition *{transition:none!important}#canvas,#canvas *{transition:width .3s ease-in-out,height .3s ease-in-out,max-width .3s ease-in-out}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeOut{0%{opacity:1}to{opacity:0}}@keyframes slideDown{0%{opacity:0;transform:translateY(-20px)}to{opacity:1;transform:translateY(0)}}@keyframes slideUp{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}@keyframes slideUpOut{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-20px)}}@keyframes slideDownOut{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(20px)}}@keyframes slideInRight{0%{opacity:0;transform:translate(100%)}to{opacity:1;transform:translate(0)}}@keyframes slideOutRight{0%{opacity:1;transform:translate(0)}to{opacity:0;transform:translate(100%)}}.last\\:mb-0:last-child{margin-bottom:0}.hover\\:border-\\[\\#00BAC7\\]:hover{--tw-border-opacity: 1;border-color:rgb(0 186 199 / var(--tw-border-opacity, 1))}.hover\\:border-\\[\\#170F4F\\]:hover{--tw-border-opacity: 1;border-color:rgb(23 15 79 / var(--tw-border-opacity, 1))}.hover\\:border-\\[\\#170F4F\\]\\/30:hover{border-color:#170f4f4d}.hover\\:border-\\[\\#30aab3\\]:hover{--tw-border-opacity: 1;border-color:rgb(48 170 179 / var(--tw-border-opacity, 1))}.hover\\:border-red-300:hover{--tw-border-opacity: 1;border-color:rgb(252 165 165 / var(--tw-border-opacity, 1))}.hover\\:bg-\\[\\#009CA8\\]:hover{--tw-bg-opacity: 1;background-color:rgb(0 156 168 / var(--tw-bg-opacity, 1))}.hover\\:bg-\\[\\#00BAC7\\]:hover{--tw-bg-opacity: 1;background-color:rgb(0 186 199 / var(--tw-bg-opacity, 1))}.hover\\:bg-\\[\\#170F4F\\]\\/15:hover{background-color:#170f4f26}.hover\\:bg-\\[\\#30aab3\\]:hover{--tw-bg-opacity: 1;background-color:rgb(48 170 179 / var(--tw-bg-opacity, 1))}.hover\\:bg-\\[\\#CCF1F4\\]:hover{--tw-bg-opacity: 1;background-color:rgb(204 241 244 / var(--tw-bg-opacity, 1))}.hover\\:bg-\\[\\#F5F5F7\\]:hover{--tw-bg-opacity: 1;background-color:rgb(245 245 247 / var(--tw-bg-opacity, 1))}.hover\\:bg-\\[\\#F9F8FE\\]:hover{--tw-bg-opacity: 1;background-color:rgb(249 248 254 / var(--tw-bg-opacity, 1))}.hover\\:bg-blue-700:hover{--tw-bg-opacity: 1;background-color:rgb(29 78 216 / var(--tw-bg-opacity, 1))}.hover\\:bg-gray-100:hover{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.hover\\:bg-gray-200:hover{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity, 1))}.hover\\:bg-gray-50:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}.hover\\:bg-red-50:hover{--tw-bg-opacity: 1;background-color:rgb(254 242 242 / var(--tw-bg-opacity, 1))}.hover\\:text-\\[\\#00BAC7\\]:hover{--tw-text-opacity: 1;color:rgb(0 186 199 / var(--tw-text-opacity, 1))}.hover\\:text-\\[\\#170F4F\\]:hover,.hover\\:text-\\[\\#170f4f\\]:hover{--tw-text-opacity: 1;color:rgb(23 15 79 / var(--tw-text-opacity, 1))}.hover\\:text-blue-500:hover{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity, 1))}.hover\\:text-gray-300:hover{--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity, 1))}.hover\\:text-gray-600:hover{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.hover\\:text-red-500:hover{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}.hover\\:text-red-600:hover{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}.hover\\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.hover\\:shadow-md:hover{--tw-shadow: 0 4px 6px rgba(0, 0, 0, .1);--tw-shadow-colored: 0 4px 6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.hover\\:shadow-sm:hover{--tw-shadow: 0 1px 2px rgba(0, 0, 0, .05);--tw-shadow-colored: 0 1px 2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.hover\\:ring-2:hover{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.hover\\:ring-gray-300:hover{--tw-ring-opacity: 1;--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity, 1))}.hover\\:ring-yellow-300:hover{--tw-ring-opacity: 1;--tw-ring-color: rgb(253 224 71 / var(--tw-ring-opacity, 1))}.hover\\:ring-opacity-50:hover{--tw-ring-opacity: .5}.focus\\:border-\\[\\#170F4F\\]:focus{--tw-border-opacity: 1;border-color:rgb(23 15 79 / var(--tw-border-opacity, 1))}.focus\\:bg-\\[\\#F9F8FE\\]:focus{--tw-bg-opacity: 1;background-color:rgb(249 248 254 / var(--tw-bg-opacity, 1))}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-1:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\\:ring-inset:focus{--tw-ring-inset: inset}.focus\\:ring-\\[\\#170F4F\\]:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(23 15 79 / var(--tw-ring-opacity, 1))}.focus\\:ring-\\[\\#170F4F\\]\\/20:focus{--tw-ring-color: rgb(23 15 79 / .2)}.focus\\:ring-\\[\\#30aab3\\]:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(48 170 179 / var(--tw-ring-opacity, 1))}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:bg-gray-50:disabled{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}.disabled\\:text-gray-400:disabled{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.disabled\\:text-gray-600:disabled{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.disabled\\:opacity-30:disabled{opacity:.3}.disabled\\:opacity-50:disabled{opacity:.5}.disabled\\:hover\\:bg-\\[\\#170F4F\\]:hover:disabled{--tw-bg-opacity: 1;background-color:rgb(23 15 79 / var(--tw-bg-opacity, 1))}.disabled\\:hover\\:shadow-sm:hover:disabled{--tw-shadow: 0 1px 2px rgba(0, 0, 0, .05);--tw-shadow-colored: 0 1px 2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.group:hover .group-hover\\:text-\\[\\#170F4F\\]{--tw-text-opacity: 1;color:rgb(23 15 79 / var(--tw-text-opacity, 1))}.group:hover .group-hover\\:opacity-100{opacity:1}@media (min-width: 768px){.sm\\:inline{display:inline}.sm\\:hidden{display:none}.sm\\:px-8{padding-left:2rem;padding-right:2rem}}';function nk({templateId:e,placeholders:t={},placeholderSchema:r=[],sdk:n={baseUrl:"",tenant:""}}){return m.jsxs(qy.div,{className:"bolttech-template-editor",children:[m.jsx("style",{type:"text/css",children:rk}),m.jsx(VS,{templateId:e,baseUrl:n.baseUrl,tenant:n.tenant,children:m.jsx(tk,{placeholders:t,placeholderSchema:r})})]})}const wp=({name:e,value:t,path:r,onSelect:n,isSelected:a})=>{const i=typeof t=="object"&&t!==null&&!Array.isArray(t),u=Array.isArray(t),h=()=>t===null?"null":t===void 0?"undefined":typeof t=="string"?`"${t}"`:typeof t=="number"||typeof t=="boolean"?String(t):u?`Array(${t.length})`:i?`Object(${Object.keys(t).length})`:String(t),g=()=>t===null?"null":t===void 0?"undefined":typeof t=="string"?"string":typeof t=="number"?"number":typeof t=="boolean"?"boolean":u?"array":i?"object":typeof t;return m.jsxs("button",{onClick:()=>n(r,t),className:`flex min-w-[120px] flex-col items-center gap-1 rounded-none border border-[#e8e7ee] p-3 transition-all duration-200 ${a?"border-[#30aab3] bg-[#170f4f] text-white":"bg-white text-[#170f4f] hover:border-[#30aab3] hover:bg-gray-50"}`,children:[m.jsx("div",{className:"text-xs font-medium",children:e}),m.jsx("div",{className:`text-xs ${g()==="string"?"text-green-600":g()==="number"?"text-blue-600":g()==="boolean"?"text-purple-600":g()==="null"?"text-gray-500":"text-orange-600"} ${a?"text-white":""}`,children:h()}),m.jsxs("div",{className:`text-xs ${a?"text-gray-300":"text-gray-400"}`,children:["(",g(),")"]})]})},dy=({data:e,onPathSelect:t})=>{const[r,n]=I.useState([]),[a,i]=I.useState(null),[u,h]=I.useState(!1),g=(R,O)=>O.reduce((N,_)=>{if(N!=null){if(_.startsWith("[")&&_.endsWith("]")){const M=parseInt(_.slice(1,-1),10);return N[M]}return N[_]}},R),b=(()=>{const R=[];let O=[],N=e;R.push({path:[],value:e,isRoot:!0});for(const _ of r)O=[...O,_],N=g(e,O),N!=null&&typeof N=="object"&&R.push({path:[...O],value:N,isRoot:!1});return R})(),D=(R,O,N)=>{if(typeof N=="object"&&N!==null&&(n(_=>[..._.slice(0,R),O]),t)){const _=[...b[R].path,O];t(_.join("."))}},F=(R,O,N)=>{if(typeof N!="object"||N===null){if(i({path:[...b[R].path,O],value:N}),t){const _=[...b[R].path,O];t(_.join("."))}}else i(null)},S=(R,O)=>{const N=R.value;return R.isRoot?m.jsx("div",{className:"flex min-w-[140px] flex-col gap-2",children:Object.entries(e).map(([_,M])=>m.jsx(wp,{name:_,value:M,path:_,onSelect:(U,H)=>typeof H=="object"&&H!==null?D(0,_,H):F(0,_,H),isSelected:r.length===0},_))},O):Array.isArray(N)?m.jsx("div",{className:"flex min-w-[140px] flex-col gap-2",children:N.map((_,M)=>m.jsx(wp,{name:`[${M}]`,value:_,path:`[${M}]`,onSelect:(U,H)=>typeof H=="object"&&H!==null?D(O,`[${M}]`,H):F(O,`[${M}]`,H),isSelected:!1},M))},O):typeof N=="object"&&N!==null?m.jsx("div",{className:"flex min-w-[140px] flex-col gap-2",children:Object.entries(N).map(([_,M])=>m.jsx(wp,{name:_,value:M,path:_,onSelect:(U,H)=>typeof H=="object"&&H!==null?D(O,_,H):F(O,_,H),isSelected:!1},_))},O):null};return m.jsxs("div",{className:"overflow-x-auto rounded-none border border-[#e8e7ee] bg-white",children:[m.jsx("div",{className:"border-b border-[#e8e7ee] bg-gray-50 px-4 py-2",children:m.jsx("h3",{className:"text-sm font-medium text-[#170f4f]",children:"Data Structure"})}),m.jsxs("div",{className:"flex gap-6 overflow-x-auto p-4",children:[b.map((R,O)=>S(R,O)),a&&m.jsx("div",{className:"flex min-w-[180px] flex-col gap-2",children:m.jsxs("div",{className:"mt-2 rounded-none border border-[#e8e7ee] bg-gray-50 p-3",children:[m.jsx("h4",{className:"mb-1 text-xs font-medium text-gray-600",children:"Selected Value"}),m.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[m.jsx("span",{className:"font-medium",children:"Path:"})," ",a.path.join("."),m.jsx("button",{className:"ml-1 text-gray-400 hover:text-gray-600",onClick:()=>{navigator.clipboard.writeText(a.path.join(".")),h(!0),setTimeout(()=>h(!1),2e3)},title:"Copy path",children:u?m.jsx(ce.FiCheck,{size:14}):m.jsx(ce.FiCopy,{size:14})})]}),m.jsxs("div",{className:"text-sm",children:[m.jsx("span",{className:"font-medium",children:"Value:"})," ",String(a.value)]}),m.jsxs("div",{className:"text-sm",children:[m.jsx("span",{className:"font-medium",children:"Type:"})," ",typeof a.value]})]})})]})]})},ak=Object.freeze(Object.defineProperty({__proto__:null,DataSourceModal:({isOpen:e,onClose:t,onDataImport:r})=>{const[n,a]=I.useState("url"),[i,u]=I.useState(""),[h,g]=I.useState(""),[p,b]=I.useState(""),[D,F]=I.useState(!1),[S,R]=I.useState(""),[O,N]=I.useState(!1),[_,M]=I.useState(null);I.useEffect(()=>{if(e){const ee=localStorage.getItem("bolttech_datasource");if(ee)try{const ve=JSON.parse(ee);ve&&typeof ve=="object"&&ve.data&&(M(ve.data),ve.url&&g(ve.url))}catch{}}},[e]);const U=ee=>{const ve=ee.target.files?.[0];if(!ve)return;if(!ve.name.endsWith(".json")){R("Please select a JSON file");return}const ge=new FileReader;ge.onload=Ie=>{try{const Ae=Ie.target?.result,Ge=JSON.parse(Ae);u(Ae),M(Ge),R("")}catch{R("Invalid JSON file"),u(""),M(null)}},ge.readAsText(ve)},H=async()=>{if(!h.trim()){R("Please enter a URL");return}F(!0),R("");try{const ee=await fetch(h);if(!ee.ok)throw new Error("Failed to fetch data");const ve=await ee.json();b(JSON.stringify(ve,null,2)),M(ve),R("")}catch{R("Failed to fetch data from URL")}finally{F(!1)}},q=ee=>{b(ee),R("");try{if(ee.trim()){const ve=JSON.parse(ee);M(ve)}else M(null)}catch{R("Invalid JSON format"),M(null)}},Q=()=>{let ee;try{switch(n){case"file":if(!i){R("Please select a file");return}ee=JSON.parse(i);break;case"url":if(!p){R("Please fetch data from URL first");return}ee=JSON.parse(p);break;case"code":if(!p.trim()){R("Please enter JSON data");return}ee=JSON.parse(p);break}n==="url"?localStorage.setItem("bolttech_datasource",JSON.stringify({from:n,data:ee,url:h})):localStorage.setItem("bolttech_datasource",JSON.stringify({from:n,data:ee})),r(ee),t()}catch{R("Invalid JSON data")}},Y=()=>{navigator.clipboard.writeText(p),N(!0),setTimeout(()=>N(!1),2e3)},ie=()=>{try{return p.trim()?(JSON.parse(p),!0):!1}catch{return!1}};return e?m.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black bg-opacity-50",onClick:ee=>{ee.target===ee.currentTarget&&t()},children:m.jsxs("div",{className:"flex h-[90vh] w-full max-w-6xl flex-col rounded-none bg-white shadow-xl",children:[m.jsxs("div",{className:"flex items-center justify-between border-b border-[#e8e7ee] bg-white p-6",children:[m.jsx("h2",{className:"text-lg font-bold tracking-wide text-[#170f4f]",children:"DataSource"}),m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx("button",{onClick:()=>{localStorage.removeItem("bolttech_datasource"),M(null),u(""),g(""),b("")},className:"rounded-none p-2 text-gray-400 transition-colors duration-200 hover:bg-red-50 hover:text-red-600",title:"Clean Data",children:"🧹"}),m.jsx("button",{onClick:t,className:"rounded-none p-2 text-gray-400 transition-colors duration-200 hover:bg-gray-50 hover:text-gray-600",children:m.jsx(ce.FiX,{size:18})})]})]}),m.jsx("div",{className:"max-h-[42vh] overflow-y-auto border-b border-[#e8e7ee] px-6 py-4",children:m.jsx(dy,{data:{root:_||{}}})}),m.jsxs("div",{className:"flex border-b border-[#e8e7ee]",children:[m.jsxs("button",{onClick:()=>a("url"),className:`flex items-center gap-2 px-6 py-3 text-sm font-medium transition-colors duration-200 ${n==="url"?"border-b-2 border-[#30aab3] text-[#170f4f]":"text-gray-500 hover:text-[#170f4f]"}`,children:[m.jsx(ce.FiLink,{size:16}),"URL"]}),m.jsxs("button",{onClick:()=>a("file"),className:`flex items-center gap-2 px-6 py-3 text-sm font-medium transition-colors duration-200 ${n==="file"?"border-b-2 border-[#30aab3] text-[#170f4f]":"text-gray-500 hover:text-[#170f4f]"}`,children:[m.jsx(ce.FiUpload,{size:16}),"Import File"]}),m.jsxs("button",{onClick:()=>a("code"),className:`flex items-center gap-2 px-6 py-3 text-sm font-medium transition-colors duration-200 ${n==="code"?"border-b-2 border-[#30aab3] text-[#170f4f]":"text-gray-500 hover:text-[#170f4f]"}`,children:[m.jsx(ce.FiCode,{size:16}),"Custom Code"]})]}),m.jsxs("div",{className:"flex-1 overflow-hidden p-6",children:[n==="code"&&m.jsxs("div",{className:"flex h-full flex-col",children:[m.jsx("div",{className:"mb-4",children:m.jsx("p",{className:"mb-1 text-sm text-gray-500",children:"Enter your JSON data below"})}),m.jsxs("div",{className:"flex-1 overflow-hidden rounded-none bg-gray-900",children:[m.jsxs("div",{className:"flex items-center justify-between border-b border-gray-700 bg-gray-800 px-4 py-2",children:[m.jsx("span",{className:"text-sm font-medium text-gray-300",children:"JSON Editor"}),p&&m.jsxs("button",{onClick:Y,className:"flex items-center gap-1 text-xs text-gray-400 hover:text-gray-300",children:[O?m.jsx(ce.FiCheck,{size:12}):m.jsx(ce.FiCopy,{size:12}),O?"Copied!":"Copy"]})]}),m.jsx("div",{className:"h-full overflow-auto pb-8",children:m.jsx("textarea",{value:p,onChange:ee=>q(ee.target.value),placeholder:'{"name": "John", "age": 30, "city": "New York"}',className:"h-full w-full resize-none border-none bg-transparent p-4 font-mono text-sm text-gray-300 outline-none"})})]})]}),n==="url"&&m.jsx("div",{className:"bte:flex bte:h-full bte:flex-col",children:m.jsxs("div",{className:"bte:mb-4",children:[m.jsx("label",{className:"mb-2 block text-sm font-medium text-gray-700",children:"JSON URL"}),m.jsxs("div",{className:"flex gap-2",children:[m.jsx("input",{type:"url",value:h,onChange:ee=>g(ee.target.value),placeholder:"https://api.example.com/data.json",className:"flex-1 rounded-none border border-[#e8e7ee] px-3 py-2 focus:outline-none focus:ring-2 focus:ring-[#30aab3]"}),m.jsx("button",{onClick:H,disabled:D||!h.trim(),className:"rounded-none bg-[#170f4f] px-4 py-2 text-white transition-colors duration-200 hover:bg-[#30aab3] disabled:cursor-not-allowed disabled:opacity-50",children:D?"Loading...":"Fetch"})]})]})}),n==="file"&&m.jsxs("div",{className:"bte:flex bte:h-full bte:flex-col",children:[m.jsxs("div",{className:"bte:mb-4",children:[m.jsx("label",{className:"mb-2 block text-sm font-medium text-gray-700",children:"Select JSON File"}),m.jsxs("div",{className:"rounded-none border-2 border-dashed border-[#e8e7ee] p-8 text-center transition-colors duration-200 hover:border-[#30aab3]",children:[m.jsx("input",{type:"file",accept:".json",onChange:U,className:"hidden",id:"file-upload"}),m.jsxs("label",{htmlFor:"file-upload",className:"flex cursor-pointer flex-col items-center",children:[m.jsx(ce.FiUpload,{size:48,className:"mb-4 text-gray-400"}),m.jsx(ce.FiUpload,{size:48,className:"mb-4 text-gray-400"}),m.jsx("span",{className:"text-lg font-medium text-gray-700",children:"Click to upload JSON file"}),m.jsx("span",{className:"mt-1 text-sm text-gray-500",children:"or drag and drop"})]})]})]}),i&&m.jsxs("div",{className:"flex-1 overflow-hidden rounded-none bg-gray-900",children:[m.jsx("div",{className:"flex items-center justify-between border-b border-gray-700 bg-gray-800 px-4 py-2",children:m.jsx("span",{className:"text-sm font-medium text-gray-300",children:"File Preview"})}),m.jsx("div",{className:"h-32 overflow-auto",children:m.jsx("pre",{className:"whitespace-pre-wrap p-4 font-mono text-sm text-gray-300",children:m.jsx("code",{children:i})})})]})]}),S&&m.jsx("div",{className:"mt-4 rounded-none border border-red-200 bg-red-50 p-3",children:m.jsx("p",{className:"text-sm text-red-600",children:S})})]}),m.jsxs("div",{className:"flex items-center justify-end gap-3 border-t border-[#e8e7ee] p-6",children:[m.jsx("button",{onClick:t,className:"rounded-none bg-gray-100 px-4 py-2 text-gray-700 transition-colors duration-200 hover:bg-gray-200",children:"Cancel"}),m.jsx("button",{onClick:Q,disabled:n==="file"&&!i||n==="url"&&!p||n==="code"&&!p||!ie(),className:"rounded-none bg-[#170f4f] px-4 py-2 text-white transition-colors duration-200 hover:bg-[#30aab3] disabled:cursor-not-allowed disabled:opacity-50",children:"Import Data"})]})]})}):null},HorizontalDataView:dy},Symbol.toStringTag,{value:"Module"}));$t.TemplateEditor=nk,Object.defineProperty($t,Symbol.toStringTag,{value:"Module"})}));
|