@tech_carthagos/page-builder 1.0.0

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.
Files changed (86) hide show
  1. package/README.md +143 -0
  2. package/dist/CraftEditor-C46pwgRX.cjs +72 -0
  3. package/dist/CraftEditor-D3fFhzFW.js +1797 -0
  4. package/dist/index-Pbjx1e0F.js +15751 -0
  5. package/dist/index-kL2awzbZ.cjs +189 -0
  6. package/dist/index.cjs +1 -0
  7. package/dist/index.js +17 -0
  8. package/dist-types/CraftEditor.d.ts +7 -0
  9. package/dist-types/CraftEditor.d.ts.map +1 -0
  10. package/dist-types/PageBuilder.d.ts +19 -0
  11. package/dist-types/PageBuilder.d.ts.map +1 -0
  12. package/dist-types/PreviewModal.d.ts +7 -0
  13. package/dist-types/PreviewModal.d.ts.map +1 -0
  14. package/dist-types/contexts/ApiConfigContext.d.ts +8 -0
  15. package/dist-types/contexts/ApiConfigContext.d.ts.map +1 -0
  16. package/dist-types/contexts/DeviceSizeContext.d.ts +8 -0
  17. package/dist-types/contexts/DeviceSizeContext.d.ts.map +1 -0
  18. package/dist-types/contexts/EventDataContext.d.ts +6 -0
  19. package/dist-types/contexts/EventDataContext.d.ts.map +1 -0
  20. package/dist-types/editor/LayersPanel.d.ts +2 -0
  21. package/dist-types/editor/LayersPanel.d.ts.map +1 -0
  22. package/dist-types/editor/RichTextInput.d.ts +6 -0
  23. package/dist-types/editor/RichTextInput.d.ts.map +1 -0
  24. package/dist-types/editor/SettingsPanel.d.ts +2 -0
  25. package/dist-types/editor/SettingsPanel.d.ts.map +1 -0
  26. package/dist-types/editor/SettingsUI.d.ts +68 -0
  27. package/dist-types/editor/SettingsUI.d.ts.map +1 -0
  28. package/dist-types/editor/TemplateVariablesHelper.d.ts +4 -0
  29. package/dist-types/editor/TemplateVariablesHelper.d.ts.map +1 -0
  30. package/dist-types/editor/Toolbox.d.ts +2 -0
  31. package/dist-types/editor/Toolbox.d.ts.map +1 -0
  32. package/dist-types/editor/Topbar.d.ts +35 -0
  33. package/dist-types/editor/Topbar.d.ts.map +1 -0
  34. package/dist-types/index.d.ts +8 -0
  35. package/dist-types/index.d.ts.map +1 -0
  36. package/dist-types/lib/api.d.ts +20 -0
  37. package/dist-types/lib/api.d.ts.map +1 -0
  38. package/dist-types/lib/utils.d.ts +4 -0
  39. package/dist-types/lib/utils.d.ts.map +1 -0
  40. package/dist-types/types.d.ts +30 -0
  41. package/dist-types/types.d.ts.map +1 -0
  42. package/dist-types/ui/button.d.ts +12 -0
  43. package/dist-types/ui/button.d.ts.map +1 -0
  44. package/dist-types/ui/card.d.ts +9 -0
  45. package/dist-types/ui/card.d.ts.map +1 -0
  46. package/dist-types/ui/checkbox.d.ts +5 -0
  47. package/dist-types/ui/checkbox.d.ts.map +1 -0
  48. package/dist-types/ui/scroll-area.d.ts +6 -0
  49. package/dist-types/ui/scroll-area.d.ts.map +1 -0
  50. package/dist-types/ui/skeleton.d.ts +3 -0
  51. package/dist-types/ui/skeleton.d.ts.map +1 -0
  52. package/dist-types/ui/toggle-group.d.ts +13 -0
  53. package/dist-types/ui/toggle-group.d.ts.map +1 -0
  54. package/dist-types/ui/toggle.d.ts +13 -0
  55. package/dist-types/ui/toggle.d.ts.map +1 -0
  56. package/dist-types/ui/tooltip.d.ts +8 -0
  57. package/dist-types/ui/tooltip.d.ts.map +1 -0
  58. package/dist-types/user/Button.d.ts +57 -0
  59. package/dist-types/user/Button.d.ts.map +1 -0
  60. package/dist-types/user/Columns.d.ts +50 -0
  61. package/dist-types/user/Columns.d.ts.map +1 -0
  62. package/dist-types/user/Container.d.ts +72 -0
  63. package/dist-types/user/Container.d.ts.map +1 -0
  64. package/dist-types/user/Divider.d.ts +37 -0
  65. package/dist-types/user/Divider.d.ts.map +1 -0
  66. package/dist-types/user/Heading.d.ts +63 -0
  67. package/dist-types/user/Heading.d.ts.map +1 -0
  68. package/dist-types/user/Image.d.ts +45 -0
  69. package/dist-types/user/Image.d.ts.map +1 -0
  70. package/dist-types/user/Link.d.ts +47 -0
  71. package/dist-types/user/Link.d.ts.map +1 -0
  72. package/dist-types/user/Spacer.d.ts +21 -0
  73. package/dist-types/user/Spacer.d.ts.map +1 -0
  74. package/dist-types/user/TermsDownload.d.ts +5 -0
  75. package/dist-types/user/TermsDownload.d.ts.map +1 -0
  76. package/dist-types/user/Text.d.ts +66 -0
  77. package/dist-types/user/Text.d.ts.map +1 -0
  78. package/dist-types/user/Video.d.ts +41 -0
  79. package/dist-types/user/Video.d.ts.map +1 -0
  80. package/dist-types/user/index.d.ts +12 -0
  81. package/dist-types/user/index.d.ts.map +1 -0
  82. package/dist-types/utils/cn.d.ts +4 -0
  83. package/dist-types/utils/cn.d.ts.map +1 -0
  84. package/dist-types/utils/templateEngine.d.ts +27 -0
  85. package/dist-types/utils/templateEngine.d.ts.map +1 -0
  86. package/package.json +53 -0
@@ -0,0 +1,189 @@
1
+ "use strict";const h=require("react/jsx-runtime"),j=require("react"),Gs=require("react-dom"),u0=require("@tanstack/react-query");function Xs(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const r in t)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:()=>t[r]})}}return e.default=t,Object.freeze(e)}const x=Xs(j),Ys=Xs(Gs);function Js(t){var e,r,n="";if(typeof t=="string"||typeof t=="number")n+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(e=0;e<i;e++)t[e]&&(r=Js(t[e]))&&(n&&(n+=" "),n+=r)}else for(r in t)t[r]&&(n&&(n+=" "),n+=r);return n}function ku(){for(var t,e,r=0,n="",i=arguments.length;r<i;r++)(t=arguments[r])&&(e=Js(t))&&(n&&(n+=" "),n+=e);return n}const Ru="-",o0=t=>{const e=s0(t),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=t;return{getClassGroupId:o=>{const a=o.split(Ru);return a[0]===""&&a.length!==1&&a.shift(),Ks(a,e)||a0(o)},getConflictingClassGroupIds:(o,a)=>{const s=r[o]||[];return a&&n[o]?[...s,...n[o]]:s}}},Ks=(t,e)=>{var o;if(t.length===0)return e.classGroupId;const r=t[0],n=e.nextPart.get(r),i=n?Ks(t.slice(1),n):void 0;if(i)return i;if(e.validators.length===0)return;const u=t.join(Ru);return(o=e.validators.find(({validator:a})=>a(u)))==null?void 0:o.classGroupId},na=/^\[(.+)\]$/,a0=t=>{if(na.test(t)){const e=na.exec(t)[1],r=e==null?void 0:e.substring(0,e.indexOf(":"));if(r)return"arbitrary.."+r}},s0=t=>{const{theme:e,prefix:r}=t,n={nextPart:new Map,validators:[]};return c0(Object.entries(t.classGroups),r).forEach(([u,o])=>{Hi(o,n,u,e)}),n},Hi=(t,e,r,n)=>{t.forEach(i=>{if(typeof i=="string"){const u=i===""?e:ia(e,i);u.classGroupId=r;return}if(typeof i=="function"){if(l0(i)){Hi(i(n),e,r,n);return}e.validators.push({validator:i,classGroupId:r});return}Object.entries(i).forEach(([u,o])=>{Hi(o,ia(e,u),r,n)})})},ia=(t,e)=>{let r=t;return e.split(Ru).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},l0=t=>t.isThemeGetter,c0=(t,e)=>e?t.map(([r,n])=>{const i=n.map(u=>typeof u=="string"?e+u:typeof u=="object"?Object.fromEntries(Object.entries(u).map(([o,a])=>[e+o,a])):u);return[r,i]}):t,d0=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,r=new Map,n=new Map;const i=(u,o)=>{r.set(u,o),e++,e>t&&(e=0,n=r,r=new Map)};return{get(u){let o=r.get(u);if(o!==void 0)return o;if((o=n.get(u))!==void 0)return i(u,o),o},set(u,o){r.has(u)?r.set(u,o):i(u,o)}}},Zs="!",f0=t=>{const{separator:e,experimentalParseClassName:r}=t,n=e.length===1,i=e[0],u=e.length,o=a=>{const s=[];let l=0,c=0,p;for(let b=0;b<a.length;b++){let y=a[b];if(l===0){if(y===i&&(n||a.slice(b,b+u)===e)){s.push(a.slice(c,b)),c=b+u;continue}if(y==="/"){p=b;continue}}y==="["?l++:y==="]"&&l--}const d=s.length===0?a:a.substring(c),f=d.startsWith(Zs),g=f?d.substring(1):d,m=p&&p>c?p-c:void 0;return{modifiers:s,hasImportantModifier:f,baseClassName:g,maybePostfixModifierPosition:m}};return r?a=>r({className:a,parseClassName:o}):o},p0=t=>{if(t.length<=1)return t;const e=[];let r=[];return t.forEach(n=>{n[0]==="["?(e.push(...r.sort(),n),r=[]):r.push(n)}),e.push(...r.sort()),e},h0=t=>({cache:d0(t.cacheSize),parseClassName:f0(t),...o0(t)}),b0=/\s+/,g0=(t,e)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:i}=e,u=[],o=t.trim().split(b0);let a="";for(let s=o.length-1;s>=0;s-=1){const l=o[s],{modifiers:c,hasImportantModifier:p,baseClassName:d,maybePostfixModifierPosition:f}=r(l);let g=!!f,m=n(g?d.substring(0,f):d);if(!m){if(!g){a=l+(a.length>0?" "+a:a);continue}if(m=n(d),!m){a=l+(a.length>0?" "+a:a);continue}g=!1}const b=p0(c).join(":"),y=p?b+Zs:b,v=y+m;if(u.includes(v))continue;u.push(v);const C=i(m,g);for(let S=0;S<C.length;++S){const O=C[S];u.push(y+O)}a=l+(a.length>0?" "+a:a)}return a};function m0(){let t=0,e,r,n="";for(;t<arguments.length;)(e=arguments[t++])&&(r=Qs(e))&&(n&&(n+=" "),n+=r);return n}const Qs=t=>{if(typeof t=="string")return t;let e,r="";for(let n=0;n<t.length;n++)t[n]&&(e=Qs(t[n]))&&(r&&(r+=" "),r+=e);return r};function y0(t,...e){let r,n,i,u=o;function o(s){const l=e.reduce((c,p)=>p(c),t());return r=h0(l),n=r.cache.get,i=r.cache.set,u=a,a(s)}function a(s){const l=n(s);if(l)return l;const c=g0(s,r);return i(s,c),c}return function(){return u(m0.apply(null,arguments))}}const Q=t=>{const e=r=>r[t]||[];return e.isThemeGetter=!0,e},el=/^\[(?:([a-z-]+):)?(.+)\]$/i,v0=/^\d+\/\d+$/,x0=new Set(["px","full","screen"]),w0=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,E0=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,S0=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,C0=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,T0=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ze=t=>It(t)||x0.has(t)||v0.test(t),it=t=>Jt(t,"length",R0),It=t=>!!t&&!Number.isNaN(Number(t)),Ei=t=>Jt(t,"number",It),lr=t=>!!t&&Number.isInteger(Number(t)),A0=t=>t.endsWith("%")&&It(t.slice(0,-1)),q=t=>el.test(t),ut=t=>w0.test(t),O0=new Set(["length","size","percentage"]),N0=t=>Jt(t,O0,tl),j0=t=>Jt(t,"position",tl),_0=new Set(["image","url"]),P0=t=>Jt(t,_0,D0),k0=t=>Jt(t,"",I0),cr=()=>!0,Jt=(t,e,r)=>{const n=el.exec(t);return n?n[1]?typeof e=="string"?n[1]===e:e.has(n[1]):r(n[2]):!1},R0=t=>E0.test(t)&&!S0.test(t),tl=()=>!1,I0=t=>C0.test(t),D0=t=>T0.test(t),L0=()=>{const t=Q("colors"),e=Q("spacing"),r=Q("blur"),n=Q("brightness"),i=Q("borderColor"),u=Q("borderRadius"),o=Q("borderSpacing"),a=Q("borderWidth"),s=Q("contrast"),l=Q("grayscale"),c=Q("hueRotate"),p=Q("invert"),d=Q("gap"),f=Q("gradientColorStops"),g=Q("gradientColorStopPositions"),m=Q("inset"),b=Q("margin"),y=Q("opacity"),v=Q("padding"),C=Q("saturate"),S=Q("scale"),O=Q("sepia"),k=Q("skew"),R=Q("space"),D=Q("translate"),$=()=>["auto","contain","none"],L=()=>["auto","hidden","clip","visible","scroll"],E=()=>["auto",q,e],T=()=>[q,e],_=()=>["",ze,it],I=()=>["auto",It,q],w=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],N=()=>["solid","dashed","dotted","double","none"],A=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],P=()=>["start","end","center","between","around","evenly","stretch"],B=()=>["","0",q],U=()=>["auto","avoid","all","avoid-page","page","left","right","column"],le=()=>[It,q];return{cacheSize:500,separator:":",theme:{colors:[cr],spacing:[ze,it],blur:["none","",ut,q],brightness:le(),borderColor:[t],borderRadius:["none","","full",ut,q],borderSpacing:T(),borderWidth:_(),contrast:le(),grayscale:B(),hueRotate:le(),invert:B(),gap:T(),gradientColorStops:[t],gradientColorStopPositions:[A0,it],inset:E(),margin:E(),opacity:le(),padding:T(),saturate:le(),scale:le(),sepia:B(),skew:le(),space:T(),translate:T()},classGroups:{aspect:[{aspect:["auto","square","video",q]}],container:["container"],columns:[{columns:[ut]}],"break-after":[{"break-after":U()}],"break-before":[{"break-before":U()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...w(),q]}],overflow:[{overflow:L()}],"overflow-x":[{"overflow-x":L()}],"overflow-y":[{"overflow-y":L()}],overscroll:[{overscroll:$()}],"overscroll-x":[{"overscroll-x":$()}],"overscroll-y":[{"overscroll-y":$()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",lr,q]}],basis:[{basis:E()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",q]}],grow:[{grow:B()}],shrink:[{shrink:B()}],order:[{order:["first","last","none",lr,q]}],"grid-cols":[{"grid-cols":[cr]}],"col-start-end":[{col:["auto",{span:["full",lr,q]},q]}],"col-start":[{"col-start":I()}],"col-end":[{"col-end":I()}],"grid-rows":[{"grid-rows":[cr]}],"row-start-end":[{row:["auto",{span:[lr,q]},q]}],"row-start":[{"row-start":I()}],"row-end":[{"row-end":I()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",q]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",q]}],gap:[{gap:[d]}],"gap-x":[{"gap-x":[d]}],"gap-y":[{"gap-y":[d]}],"justify-content":[{justify:["normal",...P()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...P(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...P(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[v]}],px:[{px:[v]}],py:[{py:[v]}],ps:[{ps:[v]}],pe:[{pe:[v]}],pt:[{pt:[v]}],pr:[{pr:[v]}],pb:[{pb:[v]}],pl:[{pl:[v]}],m:[{m:[b]}],mx:[{mx:[b]}],my:[{my:[b]}],ms:[{ms:[b]}],me:[{me:[b]}],mt:[{mt:[b]}],mr:[{mr:[b]}],mb:[{mb:[b]}],ml:[{ml:[b]}],"space-x":[{"space-x":[R]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[R]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",q,e]}],"min-w":[{"min-w":[q,e,"min","max","fit"]}],"max-w":[{"max-w":[q,e,"none","full","min","max","fit","prose",{screen:[ut]},ut]}],h:[{h:[q,e,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[q,e,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[q,e,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[q,e,"auto","min","max","fit"]}],"font-size":[{text:["base",ut,it]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Ei]}],"font-family":[{font:[cr]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",q]}],"line-clamp":[{"line-clamp":["none",It,Ei]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ze,q]}],"list-image":[{"list-image":["none",q]}],"list-style-type":[{list:["none","disc","decimal",q]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[t]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[t]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...N(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ze,it]}],"underline-offset":[{"underline-offset":["auto",ze,q]}],"text-decoration-color":[{decoration:[t]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:T()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",q]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",q]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...w(),j0]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",N0]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},P0]}],"bg-color":[{bg:[t]}],"gradient-from-pos":[{from:[g]}],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"gradient-from":[{from:[f]}],"gradient-via":[{via:[f]}],"gradient-to":[{to:[f]}],rounded:[{rounded:[u]}],"rounded-s":[{"rounded-s":[u]}],"rounded-e":[{"rounded-e":[u]}],"rounded-t":[{"rounded-t":[u]}],"rounded-r":[{"rounded-r":[u]}],"rounded-b":[{"rounded-b":[u]}],"rounded-l":[{"rounded-l":[u]}],"rounded-ss":[{"rounded-ss":[u]}],"rounded-se":[{"rounded-se":[u]}],"rounded-ee":[{"rounded-ee":[u]}],"rounded-es":[{"rounded-es":[u]}],"rounded-tl":[{"rounded-tl":[u]}],"rounded-tr":[{"rounded-tr":[u]}],"rounded-br":[{"rounded-br":[u]}],"rounded-bl":[{"rounded-bl":[u]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[...N(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}],"divide-style":[{divide:N()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-s":[{"border-s":[i]}],"border-color-e":[{"border-e":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...N()]}],"outline-offset":[{"outline-offset":[ze,q]}],"outline-w":[{outline:[ze,it]}],"outline-color":[{outline:[t]}],"ring-w":[{ring:_()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[t]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[ze,it]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",ut,k0]}],"shadow-color":[{shadow:[cr]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...A(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":A()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[s]}],"drop-shadow":[{"drop-shadow":["","none",ut,q]}],grayscale:[{grayscale:[l]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[p]}],saturate:[{saturate:[C]}],sepia:[{sepia:[O]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[s]}],"backdrop-grayscale":[{"backdrop-grayscale":[l]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[C]}],"backdrop-sepia":[{"backdrop-sepia":[O]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",q]}],duration:[{duration:le()}],ease:[{ease:["linear","in","out","in-out",q]}],delay:[{delay:le()}],animate:[{animate:["none","spin","ping","pulse","bounce",q]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[lr,q]}],"translate-x":[{"translate-x":[D]}],"translate-y":[{"translate-y":[D]}],"skew-x":[{"skew-x":[k]}],"skew-y":[{"skew-y":[k]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",q]}],accent:[{accent:["auto",t]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",q]}],"caret-color":[{caret:[t]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":T()}],"scroll-mx":[{"scroll-mx":T()}],"scroll-my":[{"scroll-my":T()}],"scroll-ms":[{"scroll-ms":T()}],"scroll-me":[{"scroll-me":T()}],"scroll-mt":[{"scroll-mt":T()}],"scroll-mr":[{"scroll-mr":T()}],"scroll-mb":[{"scroll-mb":T()}],"scroll-ml":[{"scroll-ml":T()}],"scroll-p":[{"scroll-p":T()}],"scroll-px":[{"scroll-px":T()}],"scroll-py":[{"scroll-py":T()}],"scroll-ps":[{"scroll-ps":T()}],"scroll-pe":[{"scroll-pe":T()}],"scroll-pt":[{"scroll-pt":T()}],"scroll-pr":[{"scroll-pr":T()}],"scroll-pb":[{"scroll-pb":T()}],"scroll-pl":[{"scroll-pl":T()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",q]}],fill:[{fill:[t,"none"]}],"stroke-w":[{stroke:[ze,it,Ei]}],stroke:[{stroke:[t,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},rl=y0(L0);function ge(...t){return rl(ku(t))}const Iu=x.forwardRef(({className:t,...e},r)=>h.jsx("div",{ref:r,className:ge("rounded-lg border bg-card text-card-foreground shadow-sm",t),...e}));Iu.displayName="Card";const M0=x.forwardRef(({className:t,...e},r)=>h.jsx("div",{ref:r,className:ge("flex flex-col space-y-1.5 p-6",t),...e}));M0.displayName="CardHeader";const $0=x.forwardRef(({className:t,...e},r)=>h.jsx("h3",{ref:r,className:ge("text-2xl font-semibold leading-none tracking-tight",t),...e}));$0.displayName="CardTitle";const B0=x.forwardRef(({className:t,...e},r)=>h.jsx("p",{ref:r,className:ge("text-sm text-muted-foreground",t),...e}));B0.displayName="CardDescription";const Du=x.forwardRef(({className:t,...e},r)=>h.jsx("div",{ref:r,className:ge("p-6 pt-0",t),...e}));Du.displayName="CardContent";const q0=x.forwardRef(({className:t,...e},r)=>h.jsx("div",{ref:r,className:ge("flex items-center p-6 pt-0",t),...e}));q0.displayName="CardFooter";function Gr({className:t,...e}){return h.jsx("div",{className:ge("animate-pulse rounded-md bg-muted",t),...e})}const nl=j.createContext(null),Lu=({children:t,value:e})=>h.jsx(nl.Provider,{value:e,children:t}),Fn=()=>j.useContext(nl),H0=j.lazy(()=>Promise.resolve().then(()=>require("./CraftEditor-C46pwgRX.cjs"))),F0=({initialData:t,onSave:e,onStateChange:r,eventData:n})=>h.jsx(Lu,{value:n,children:h.jsx(j.Suspense,{fallback:h.jsx(Iu,{children:h.jsx(Du,{className:"p-4",children:h.jsxs("div",{className:"space-y-4",children:[h.jsx(Gr,{className:"h-8 w-48"}),h.jsxs("div",{className:"flex gap-4",children:[h.jsx(Gr,{className:"h-[500px] w-48"}),h.jsx(Gr,{className:"h-[500px] flex-1"}),h.jsx(Gr,{className:"h-[500px] w-64"})]})]})})}),children:h.jsx(H0,{initialData:t,onSave:e,onStateChange:r})})});/**
2
+ * @license lucide-react v0.462.0 - ISC
3
+ *
4
+ * This source code is licensed under the ISC license.
5
+ * See the LICENSE file in the root directory of this source tree.
6
+ */const z0=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),il=(...t)=>t.filter((e,r,n)=>!!e&&e.trim()!==""&&n.indexOf(e)===r).join(" ").trim();/**
7
+ * @license lucide-react v0.462.0 - ISC
8
+ *
9
+ * This source code is licensed under the ISC license.
10
+ * See the LICENSE file in the root directory of this source tree.
11
+ */var U0={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
12
+ * @license lucide-react v0.462.0 - ISC
13
+ *
14
+ * This source code is licensed under the ISC license.
15
+ * See the LICENSE file in the root directory of this source tree.
16
+ */const V0=j.forwardRef(({color:t="currentColor",size:e=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:i="",children:u,iconNode:o,...a},s)=>j.createElement("svg",{ref:s,...U0,width:e,height:e,stroke:t,strokeWidth:n?Number(r)*24/Number(e):r,className:il("lucide",i),...a},[...o.map(([l,c])=>j.createElement(l,c)),...Array.isArray(u)?u:[u]]));/**
17
+ * @license lucide-react v0.462.0 - ISC
18
+ *
19
+ * This source code is licensed under the ISC license.
20
+ * See the LICENSE file in the root directory of this source tree.
21
+ */const ie=(t,e)=>{const r=j.forwardRef(({className:n,...i},u)=>j.createElement(V0,{ref:u,iconNode:e,className:il(`lucide-${z0(t)}`,n),...i}));return r.displayName=`${t}`,r};/**
22
+ * @license lucide-react v0.462.0 - ISC
23
+ *
24
+ * This source code is licensed under the ISC license.
25
+ * See the LICENSE file in the root directory of this source tree.
26
+ */const Mu=ie("AlignCenter",[["path",{d:"M17 12H7",key:"16if0g"}],["path",{d:"M19 18H5",key:"18s9l3"}],["path",{d:"M21 6H3",key:"1jwq7v"}]]);/**
27
+ * @license lucide-react v0.462.0 - ISC
28
+ *
29
+ * This source code is licensed under the ISC license.
30
+ * See the LICENSE file in the root directory of this source tree.
31
+ */const $u=ie("AlignLeft",[["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M17 18H3",key:"1amg6g"}],["path",{d:"M21 6H3",key:"1jwq7v"}]]);/**
32
+ * @license lucide-react v0.462.0 - ISC
33
+ *
34
+ * This source code is licensed under the ISC license.
35
+ * See the LICENSE file in the root directory of this source tree.
36
+ */const Bu=ie("AlignRight",[["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M21 18H7",key:"1ygte8"}],["path",{d:"M21 6H3",key:"1jwq7v"}]]);/**
37
+ * @license lucide-react v0.462.0 - ISC
38
+ *
39
+ * This source code is licensed under the ISC license.
40
+ * See the LICENSE file in the root directory of this source tree.
41
+ */const W0=ie("Bold",[["path",{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",key:"mg9rjx"}]]);/**
42
+ * @license lucide-react v0.462.0 - ISC
43
+ *
44
+ * This source code is licensed under the ISC license.
45
+ * See the LICENSE file in the root directory of this source tree.
46
+ */const qu=ie("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
47
+ * @license lucide-react v0.462.0 - ISC
48
+ *
49
+ * This source code is licensed under the ISC license.
50
+ * See the LICENSE file in the root directory of this source tree.
51
+ */const Hu=ie("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
52
+ * @license lucide-react v0.462.0 - ISC
53
+ *
54
+ * This source code is licensed under the ISC license.
55
+ * See the LICENSE file in the root directory of this source tree.
56
+ */const Fu=ie("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
57
+ * @license lucide-react v0.462.0 - ISC
58
+ *
59
+ * This source code is licensed under the ISC license.
60
+ * See the LICENSE file in the root directory of this source tree.
61
+ */const G0=ie("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
62
+ * @license lucide-react v0.462.0 - ISC
63
+ *
64
+ * This source code is licensed under the ISC license.
65
+ * See the LICENSE file in the root directory of this source tree.
66
+ */const X0=ie("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/**
67
+ * @license lucide-react v0.462.0 - ISC
68
+ *
69
+ * This source code is licensed under the ISC license.
70
+ * See the LICENSE file in the root directory of this source tree.
71
+ */const Y0=ie("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/**
72
+ * @license lucide-react v0.462.0 - ISC
73
+ *
74
+ * This source code is licensed under the ISC license.
75
+ * See the LICENSE file in the root directory of this source tree.
76
+ */const ul=ie("Film",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M7 3v18",key:"bbkbws"}],["path",{d:"M3 7.5h4",key:"zfgn84"}],["path",{d:"M3 12h18",key:"1i2n21"}],["path",{d:"M3 16.5h4",key:"1230mu"}],["path",{d:"M17 3v18",key:"in4fa5"}],["path",{d:"M17 7.5h4",key:"myr1c1"}],["path",{d:"M17 16.5h4",key:"go4c1d"}]]);/**
77
+ * @license lucide-react v0.462.0 - ISC
78
+ *
79
+ * This source code is licensed under the ISC license.
80
+ * See the LICENSE file in the root directory of this source tree.
81
+ */const J0=ie("Italic",[["line",{x1:"19",x2:"10",y1:"4",y2:"4",key:"15jd3p"}],["line",{x1:"14",x2:"5",y1:"20",y2:"20",key:"bu0au3"}],["line",{x1:"15",x2:"9",y1:"4",y2:"20",key:"uljnxc"}]]);/**
82
+ * @license lucide-react v0.462.0 - ISC
83
+ *
84
+ * This source code is licensed under the ISC license.
85
+ * See the LICENSE file in the root directory of this source tree.
86
+ */const ol=ie("Link",[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]]);/**
87
+ * @license lucide-react v0.462.0 - ISC
88
+ *
89
+ * This source code is licensed under the ISC license.
90
+ * See the LICENSE file in the root directory of this source tree.
91
+ */const K0=ie("ListOrdered",[["path",{d:"M10 12h11",key:"6m4ad9"}],["path",{d:"M10 18h11",key:"11hvi2"}],["path",{d:"M10 6h11",key:"c7qv1k"}],["path",{d:"M4 10h2",key:"16xx2s"}],["path",{d:"M4 6h1v4",key:"cnovpq"}],["path",{d:"M6 18H4c0-1 2-2 2-3s-1-1.5-2-1",key:"m9a95d"}]]);/**
92
+ * @license lucide-react v0.462.0 - ISC
93
+ *
94
+ * This source code is licensed under the ISC license.
95
+ * See the LICENSE file in the root directory of this source tree.
96
+ */const Z0=ie("List",[["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 18h.01",key:"1tta3j"}],["path",{d:"M3 6h.01",key:"1rqtza"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 18h13",key:"1lx6n3"}],["path",{d:"M8 6h13",key:"ik3vkj"}]]);/**
97
+ * @license lucide-react v0.462.0 - ISC
98
+ *
99
+ * This source code is licensed under the ISC license.
100
+ * See the LICENSE file in the root directory of this source tree.
101
+ */const zu=ie("Monitor",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]);/**
102
+ * @license lucide-react v0.462.0 - ISC
103
+ *
104
+ * This source code is licensed under the ISC license.
105
+ * See the LICENSE file in the root directory of this source tree.
106
+ */const Uu=ie("Smartphone",[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]]);/**
107
+ * @license lucide-react v0.462.0 - ISC
108
+ *
109
+ * This source code is licensed under the ISC license.
110
+ * See the LICENSE file in the root directory of this source tree.
111
+ */const Q0=ie("Strikethrough",[["path",{d:"M16 4H9a3 3 0 0 0-2.83 4",key:"43sutm"}],["path",{d:"M14 12a4 4 0 0 1 0 8H6",key:"nlfj13"}],["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}]]);/**
112
+ * @license lucide-react v0.462.0 - ISC
113
+ *
114
+ * This source code is licensed under the ISC license.
115
+ * See the LICENSE file in the root directory of this source tree.
116
+ */const Vu=ie("Tablet",[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",ry:"2",key:"76otgf"}],["line",{x1:"12",x2:"12.01",y1:"18",y2:"18",key:"1dp563"}]]);/**
117
+ * @license lucide-react v0.462.0 - ISC
118
+ *
119
+ * This source code is licensed under the ISC license.
120
+ * See the LICENSE file in the root directory of this source tree.
121
+ */const Wu=ie("Tv",[["rect",{width:"20",height:"15",x:"2",y:"7",rx:"2",ry:"2",key:"10ag99"}],["polyline",{points:"17 2 12 7 7 2",key:"11pgbg"}]]);/**
122
+ * @license lucide-react v0.462.0 - ISC
123
+ *
124
+ * This source code is licensed under the ISC license.
125
+ * See the LICENSE file in the root directory of this source tree.
126
+ */const ef=ie("Underline",[["path",{d:"M6 4v6a6 6 0 0 0 12 0V4",key:"9kb039"}],["line",{x1:"4",x2:"20",y1:"20",y2:"20",key:"nun2al"}]]);/**
127
+ * @license lucide-react v0.462.0 - ISC
128
+ *
129
+ * This source code is licensed under the ISC license.
130
+ * See the LICENSE file in the root directory of this source tree.
131
+ */const tf=ie("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function ua(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function zn(...t){return e=>{let r=!1;const n=t.map(i=>{const u=ua(i,e);return!r&&typeof u=="function"&&(r=!0),u});if(r)return()=>{for(let i=0;i<n.length;i++){const u=n[i];typeof u=="function"?u():ua(t[i],null)}}}}function Be(...t){return x.useCallback(zn(...t),t)}var rf=Symbol.for("react.lazy"),gn=x[" use ".trim().toString()];function nf(t){return typeof t=="object"&&t!==null&&"then"in t}function al(t){return t!=null&&typeof t=="object"&&"$$typeof"in t&&t.$$typeof===rf&&"_payload"in t&&nf(t._payload)}function uf(t){const e=af(t),r=x.forwardRef((n,i)=>{let{children:u,...o}=n;al(u)&&typeof gn=="function"&&(u=gn(u._payload));const a=x.Children.toArray(u),s=a.find(lf);if(s){const l=s.props.children,c=a.map(p=>p===s?x.Children.count(l)>1?x.Children.only(null):x.isValidElement(l)?l.props.children:null:p);return h.jsx(e,{...o,ref:i,children:x.isValidElement(l)?x.cloneElement(l,void 0,c):null})}return h.jsx(e,{...o,ref:i,children:u})});return r.displayName=`${t}.Slot`,r}var of=uf("Slot");function af(t){const e=x.forwardRef((r,n)=>{let{children:i,...u}=r;if(al(i)&&typeof gn=="function"&&(i=gn(i._payload)),x.isValidElement(i)){const o=df(i),a=cf(u,i.props);return i.type!==x.Fragment&&(a.ref=n?zn(n,o):o),x.cloneElement(i,a)}return x.Children.count(i)>1?x.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var sf=Symbol("radix.slottable");function lf(t){return x.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===sf}function cf(t,e){const r={...e};for(const n in e){const i=t[n],u=e[n];/^on[A-Z]/.test(n)?i&&u?r[n]=(...a)=>{const s=u(...a);return i(...a),s}:i&&(r[n]=i):n==="style"?r[n]={...i,...u}:n==="className"&&(r[n]=[i,u].filter(Boolean).join(" "))}return{...t,...r}}function df(t){var n,i;let e=(n=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:n.get,r=e&&"isReactWarning"in e&&e.isReactWarning;return r?t.ref:(e=(i=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:i.get,r=e&&"isReactWarning"in e&&e.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}const oa=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,aa=ku,sl=(t,e)=>r=>{var n;if((e==null?void 0:e.variants)==null)return aa(t,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:i,defaultVariants:u}=e,o=Object.keys(i).map(l=>{const c=r==null?void 0:r[l],p=u==null?void 0:u[l];if(c===null)return null;const d=oa(c)||oa(p);return i[l][d]}),a=r&&Object.entries(r).reduce((l,c)=>{let[p,d]=c;return d===void 0||(l[p]=d),l},{}),s=e==null||(n=e.compoundVariants)===null||n===void 0?void 0:n.reduce((l,c)=>{let{class:p,className:d,...f}=c;return Object.entries(f).every(g=>{let[m,b]=g;return Array.isArray(b)?b.includes({...u,...a}[m]):{...u,...a}[m]===b})?[...l,p,d]:l},[]);return aa(t,o,s,r==null?void 0:r.class,r==null?void 0:r.className)},ff=sl("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-all duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90 shadow-lg shadow-primary/25",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-transparent hover:bg-secondary hover:text-secondary-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-secondary hover:text-secondary-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",xl:"h-12 rounded-lg px-10 text-base",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),xr=x.forwardRef(({className:t,variant:e,size:r,asChild:n=!1,...i},u)=>{const o=n?of:"button";return h.jsx(o,{className:ge(ff({variant:e,size:r,className:t})),ref:u,...i})});xr.displayName="Button";function pf(...t){return rl(ku(t))}function re(t){for(var e=arguments.length,r=Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];if(process.env.NODE_ENV!=="production"){var i=Ef[t],u=i?typeof i=="function"?i.apply(null,r):i:"unknown error nr: "+t;throw Error("[Immer] "+u)}throw Error("[Immer] minified error nr: "+t+(r.length?" "+r.map(function(o){return"'"+o+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function vt(t){return!!t&&!!t[Y]}function Me(t){var e;return!!t&&(function(r){if(!r||typeof r!="object")return!1;var n=Object.getPrototypeOf(r);if(n===null)return!0;var i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===Sf}(t)||Array.isArray(t)||!!t[mr]||!!(!((e=t.constructor)===null||e===void 0)&&e[mr])||Un(t)||Vn(t))}function xt(t,e,r){r===void 0&&(r=!1),st(t)===0?(r?Object.keys:Zu)(t).forEach(function(n){r&&typeof n=="symbol"||e(n,t[n],t)}):t.forEach(function(n,i){return e(i,n,t)})}function st(t){var e=t[Y];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Un(t)?2:Vn(t)?3:0}function wr(t,e){return st(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function cn(t,e){return st(t)===2?t.get(e):t[e]}function ll(t,e,r){var n=st(t);n===2?t.set(e,r):n===3?t.add(r):t[e]=r}function hf(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function Un(t){return xf&&t instanceof Map}function Vn(t){return wf&&t instanceof Set}function ce(t){return t.o||t.t}function Gu(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Cf(t);delete e[Y];for(var r=Zu(e),n=0;n<r.length;n++){var i=r[n],u=e[i];u.writable===!1&&(u.writable=!0,u.configurable=!0),(u.get||u.set)&&(e[i]={configurable:!0,writable:!0,enumerable:u.enumerable,value:t[i]})}return Object.create(Object.getPrototypeOf(t),e)}function Xu(t,e){return e===void 0&&(e=!1),Yu(t)||vt(t)||!Me(t)||(st(t)>1&&(t.set=t.add=t.clear=t.delete=bf),Object.freeze(t),e&&xt(t,function(r,n){return Xu(n,!0)},!0)),t}function bf(){re(2)}function Yu(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function Re(t){var e=zi[t];return e||re(18,t),e}function cl(t,e){zi[t]||(zi[t]=e)}function mn(){return process.env.NODE_ENV==="production"||$t||re(0),$t}function Si(t,e){e&&(Re("Patches"),t.u=[],t.s=[],t.v=e)}function yn(t){Fi(t),t.p.forEach(gf),t.p=null}function Fi(t){t===$t&&($t=t.l)}function sa(t){return $t={p:[],l:$t,h:t,m:!0,_:0}}function gf(t){var e=t[Y];e.i===0||e.i===1?e.j():e.g=!0}function Ci(t,e){e._=e.p.length;var r=e.p[0],n=t!==void 0&&t!==r;return e.h.O||Re("ES5").S(e,t,n),n?(r[Y].P&&(yn(e),re(4)),Me(t)&&(t=vn(e,t),e.l||xn(e,t)),e.u&&Re("Patches").M(r[Y].t,t,e.u,e.s)):t=vn(e,r,[]),yn(e),e.u&&e.v(e.u,e.s),t!==Ku?t:void 0}function vn(t,e,r){if(Yu(e))return e;var n=e[Y];if(!n)return xt(e,function(a,s){return la(t,n,e,a,s,r)},!0),e;if(n.A!==t)return e;if(!n.P)return xn(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=Gu(n.k):n.o,u=i,o=!1;n.i===3&&(u=new Set(i),i.clear(),o=!0),xt(u,function(a,s){return la(t,n,i,a,s,r,o)}),xn(t,i,!1),r&&t.u&&Re("Patches").N(n,r,t.u,t.s)}return n.o}function la(t,e,r,n,i,u,o){if(process.env.NODE_ENV!=="production"&&i===r&&re(5),vt(i)){var a=vn(t,i,u&&e&&e.i!==3&&!wr(e.R,n)?u.concat(n):void 0);if(ll(r,n,a),!vt(a))return;t.m=!1}else o&&r.add(i);if(Me(i)&&!Yu(i)){if(!t.h.D&&t._<1)return;vn(t,i),e&&e.A.l||xn(t,i)}}function xn(t,e,r){r===void 0&&(r=!1),!t.l&&t.h.D&&t.m&&Xu(e,r)}function Ti(t,e){var r=t[Y];return(r?ce(r):t)[e]}function ca(t,e){if(e in t)for(var r=Object.getPrototypeOf(t);r;){var n=Object.getOwnPropertyDescriptor(r,e);if(n)return n;r=Object.getPrototypeOf(r)}}function Ge(t){t.P||(t.P=!0,t.l&&Ge(t.l))}function Ai(t){t.o||(t.o=Gu(t.t))}function Er(t,e,r){var n=Un(e)?Re("MapSet").F(e,r):Vn(e)?Re("MapSet").T(e,r):t.O?function(i,u){var o=Array.isArray(i),a={i:o?1:0,A:u?u.A:mn(),P:!1,I:!1,R:{},l:u,t:i,k:null,o:null,j:null,C:!1},s=a,l=Ui;o&&(s=[a],l=br);var c=Proxy.revocable(s,l),p=c.revoke,d=c.proxy;return a.k=d,a.j=p,d}(e,r):Re("ES5").J(e,r);return(r?r.A:mn()).p.push(n),n}function mf(t){return vt(t)||re(22,t),function e(r){if(!Me(r))return r;var n,i=r[Y],u=st(r);if(i){if(!i.P&&(i.i<4||!Re("ES5").K(i)))return i.t;i.I=!0,n=da(r,u),i.I=!1}else n=da(r,u);return xt(n,function(o,a){i&&cn(i.t,o)===a||ll(n,o,e(a))}),u===3?new Set(n):n}(t)}function da(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return Gu(t)}function yf(){function t(n){if(!Me(n))return n;if(Array.isArray(n))return n.map(t);if(Un(n))return new Map(Array.from(n.entries()).map(function(o){return[o[0],t(o[1])]}));if(Vn(n))return new Set(Array.from(n).map(t));var i=Object.create(Object.getPrototypeOf(n));for(var u in n)i[u]=t(n[u]);return wr(n,mr)&&(i[mr]=n[mr]),i}function e(n){return vt(n)?t(n):n}var r="add";cl("Patches",{$:function(n,i){return i.forEach(function(u){for(var o=u.path,a=u.op,s=n,l=0;l<o.length-1;l++){var c=st(s),p=o[l];typeof p!="string"&&typeof p!="number"&&(p=""+p),c!==0&&c!==1||p!=="__proto__"&&p!=="constructor"||re(24),typeof s=="function"&&p==="prototype"&&re(24),typeof(s=cn(s,p))!="object"&&re(15,o.join("/"))}var d=st(s),f=t(u.value),g=o[o.length-1];switch(a){case"replace":switch(d){case 2:return s.set(g,f);case 3:re(16);default:return s[g]=f}case r:switch(d){case 1:return g==="-"?s.push(f):s.splice(g,0,f);case 2:return s.set(g,f);case 3:return s.add(f);default:return s[g]=f}case"remove":switch(d){case 1:return s.splice(g,1);case 2:return s.delete(g);case 3:return s.delete(u.value);default:return delete s[g]}default:re(17,a)}}),n},N:function(n,i,u,o){switch(n.i){case 0:case 4:case 2:return function(a,s,l,c){var p=a.t,d=a.o;xt(a.R,function(f,g){var m=cn(p,f),b=cn(d,f),y=g?wr(p,f)?"replace":r:"remove";if(m!==b||y!=="replace"){var v=s.concat(f);l.push(y==="remove"?{op:y,path:v}:{op:y,path:v,value:b}),c.push(y===r?{op:"remove",path:v}:y==="remove"?{op:r,path:v,value:e(m)}:{op:"replace",path:v,value:e(m)})}})}(n,i,u,o);case 5:case 1:return function(a,s,l,c){var p=a.t,d=a.R,f=a.o;if(f.length<p.length){var g=[f,p];p=g[0],f=g[1];var m=[c,l];l=m[0],c=m[1]}for(var b=0;b<p.length;b++)if(d[b]&&f[b]!==p[b]){var y=s.concat([b]);l.push({op:"replace",path:y,value:e(f[b])}),c.push({op:"replace",path:y,value:e(p[b])})}for(var v=p.length;v<f.length;v++){var C=s.concat([v]);l.push({op:r,path:C,value:e(f[v])})}p.length<f.length&&c.push({op:"replace",path:s.concat(["length"]),value:p.length})}(n,i,u,o);case 3:return function(a,s,l,c){var p=a.t,d=a.o,f=0;p.forEach(function(g){if(!d.has(g)){var m=s.concat([f]);l.push({op:"remove",path:m,value:g}),c.unshift({op:r,path:m,value:g})}f++}),f=0,d.forEach(function(g){if(!p.has(g)){var m=s.concat([f]);l.push({op:r,path:m,value:g}),c.unshift({op:"remove",path:m,value:g})}f++})}(n,i,u,o)}},M:function(n,i,u,o){u.push({op:"replace",path:[],value:i===Ku?void 0:i}),o.push({op:"replace",path:[],value:n})}})}function vf(){function t(a,s){function l(){this.constructor=a}i(a,s),a.prototype=(l.prototype=s.prototype,new l)}function e(a){a.o||(a.R=new Map,a.o=new Map(a.t))}function r(a){a.o||(a.o=new Set,a.t.forEach(function(s){if(Me(s)){var l=Er(a.A.h,s,a);a.p.set(s,l),a.o.add(l)}else a.o.add(s)}))}function n(a){a.g&&re(3,JSON.stringify(ce(a)))}var i=function(a,s){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,c){l.__proto__=c}||function(l,c){for(var p in c)c.hasOwnProperty(p)&&(l[p]=c[p])})(a,s)},u=function(){function a(l,c){return this[Y]={i:2,l:c,A:c?c.A:mn(),P:!1,I:!1,o:void 0,R:void 0,t:l,k:this,C:!1,g:!1},this}t(a,Map);var s=a.prototype;return Object.defineProperty(s,"size",{get:function(){return ce(this[Y]).size}}),s.has=function(l){return ce(this[Y]).has(l)},s.set=function(l,c){var p=this[Y];return n(p),ce(p).has(l)&&ce(p).get(l)===c||(e(p),Ge(p),p.R.set(l,!0),p.o.set(l,c),p.R.set(l,!0)),this},s.delete=function(l){if(!this.has(l))return!1;var c=this[Y];return n(c),e(c),Ge(c),c.t.has(l)?c.R.set(l,!1):c.R.delete(l),c.o.delete(l),!0},s.clear=function(){var l=this[Y];n(l),ce(l).size&&(e(l),Ge(l),l.R=new Map,xt(l.t,function(c){l.R.set(c,!1)}),l.o.clear())},s.forEach=function(l,c){var p=this;ce(this[Y]).forEach(function(d,f){l.call(c,p.get(f),f,p)})},s.get=function(l){var c=this[Y];n(c);var p=ce(c).get(l);if(c.I||!Me(p)||p!==c.t.get(l))return p;var d=Er(c.A.h,p,c);return e(c),c.o.set(l,d),d},s.keys=function(){return ce(this[Y]).keys()},s.values=function(){var l,c=this,p=this.keys();return(l={})[Xr]=function(){return c.values()},l.next=function(){var d=p.next();return d.done?d:{done:!1,value:c.get(d.value)}},l},s.entries=function(){var l,c=this,p=this.keys();return(l={})[Xr]=function(){return c.entries()},l.next=function(){var d=p.next();if(d.done)return d;var f=c.get(d.value);return{done:!1,value:[d.value,f]}},l},s[Xr]=function(){return this.entries()},a}(),o=function(){function a(l,c){return this[Y]={i:3,l:c,A:c?c.A:mn(),P:!1,I:!1,o:void 0,t:l,k:this,p:new Map,g:!1,C:!1},this}t(a,Set);var s=a.prototype;return Object.defineProperty(s,"size",{get:function(){return ce(this[Y]).size}}),s.has=function(l){var c=this[Y];return n(c),c.o?!!c.o.has(l)||!(!c.p.has(l)||!c.o.has(c.p.get(l))):c.t.has(l)},s.add=function(l){var c=this[Y];return n(c),this.has(l)||(r(c),Ge(c),c.o.add(l)),this},s.delete=function(l){if(!this.has(l))return!1;var c=this[Y];return n(c),r(c),Ge(c),c.o.delete(l)||!!c.p.has(l)&&c.o.delete(c.p.get(l))},s.clear=function(){var l=this[Y];n(l),ce(l).size&&(r(l),Ge(l),l.o.clear())},s.values=function(){var l=this[Y];return n(l),r(l),l.o.values()},s.entries=function(){var l=this[Y];return n(l),r(l),l.o.entries()},s.keys=function(){return this.values()},s[Xr]=function(){return this.values()},s.forEach=function(l,c){for(var p=this.values(),d=p.next();!d.done;)l.call(c,d.value,d.value,this),d=p.next()},a}();cl("MapSet",{F:function(a,s){return new u(a,s)},T:function(a,s){return new o(a,s)}})}var fa,$t,Ju=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",xf=typeof Map<"u",wf=typeof Set<"u",pa=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Ku=Ju?Symbol.for("immer-nothing"):((fa={})["immer-nothing"]=!0,fa),mr=Ju?Symbol.for("immer-draftable"):"__$immer_draftable",Y=Ju?Symbol.for("immer-state"):"__$immer_state",Xr=typeof Symbol<"u"&&Symbol.iterator||"@@iterator",Ef={0:"Illegal state",1:"Immer drafts cannot have computed properties",2:"This object has been frozen and should not be mutated",3:function(t){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+t},4:"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.",5:"Immer forbids circular references",6:"The first or second argument to `produce` must be a function",7:"The third argument to `produce` must be a function or undefined",8:"First argument to `createDraft` must be a plain object, an array, or an immerable object",9:"First argument to `finishDraft` must be a draft returned by `createDraft`",10:"The given draft is already finalized",11:"Object.defineProperty() cannot be used on an Immer draft",12:"Object.setPrototypeOf() cannot be used on an Immer draft",13:"Immer only supports deleting array indices",14:"Immer only supports setting array indices and the 'length' property",15:function(t){return"Cannot apply patch, path doesn't resolve: "+t},16:'Sets cannot have "replace" patches.',17:function(t){return"Unsupported patch operation: "+t},18:function(t){return"The plugin for '"+t+"' has not been loaded into Immer. To enable the plugin, import and call `enable"+t+"()` when initializing your application."},20:"Cannot use proxies if Proxy, Proxy.revocable or Reflect are not available",21:function(t){return"produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '"+t+"'"},22:function(t){return"'current' expects a draft, got: "+t},23:function(t){return"'original' expects a draft, got: "+t},24:"Patching reserved attributes like __proto__, prototype and constructor is not allowed"},Sf=""+Object.prototype.constructor,Zu=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Cf=Object.getOwnPropertyDescriptors||function(t){var e={};return Zu(t).forEach(function(r){e[r]=Object.getOwnPropertyDescriptor(t,r)}),e},zi={},Ui={get:function(t,e){if(e===Y)return t;var r=ce(t);if(!wr(r,e))return function(i,u,o){var a,s=ca(u,o);return s?"value"in s?s.value:(a=s.get)===null||a===void 0?void 0:a.call(i.k):void 0}(t,r,e);var n=r[e];return t.I||!Me(n)?n:n===Ti(t.t,e)?(Ai(t),t.o[e]=Er(t.A.h,n,t)):n},has:function(t,e){return e in ce(t)},ownKeys:function(t){return Reflect.ownKeys(ce(t))},set:function(t,e,r){var n=ca(ce(t),e);if(n!=null&&n.set)return n.set.call(t.k,r),!0;if(!t.P){var i=Ti(ce(t),e),u=i==null?void 0:i[Y];if(u&&u.t===r)return t.o[e]=r,t.R[e]=!1,!0;if(hf(r,i)&&(r!==void 0||wr(t.t,e)))return!0;Ai(t),Ge(t)}return t.o[e]===r&&(r!==void 0||e in t.o)||Number.isNaN(r)&&Number.isNaN(t.o[e])||(t.o[e]=r,t.R[e]=!0),!0},deleteProperty:function(t,e){return Ti(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,Ai(t),Ge(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var r=ce(t),n=Reflect.getOwnPropertyDescriptor(r,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:r[e]}},defineProperty:function(){re(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){re(12)}},br={};xt(Ui,function(t,e){br[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),br.deleteProperty=function(t,e){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(e))&&re(13),br.set.call(this,t,e,void 0)},br.set=function(t,e,r){return process.env.NODE_ENV!=="production"&&e!=="length"&&isNaN(parseInt(e))&&re(14),Ui.set.call(this,t[0],e,r,t[0])};var Tf=function(){function t(r){var n=this;this.O=pa,this.D=!0,this.produce=function(i,u,o){if(typeof i=="function"&&typeof u!="function"){var a=u;u=i;var s=n;return function(m){var b=this;m===void 0&&(m=a);for(var y=arguments.length,v=Array(y>1?y-1:0),C=1;C<y;C++)v[C-1]=arguments[C];return s.produce(m,function(S){var O;return(O=u).call.apply(O,[b,S].concat(v))})}}var l;if(typeof u!="function"&&re(6),o!==void 0&&typeof o!="function"&&re(7),Me(i)){var c=sa(n),p=Er(n,i,void 0),d=!0;try{l=u(p),d=!1}finally{d?yn(c):Fi(c)}return typeof Promise<"u"&&l instanceof Promise?l.then(function(m){return Si(c,o),Ci(m,c)},function(m){throw yn(c),m}):(Si(c,o),Ci(l,c))}if(!i||typeof i!="object"){if((l=u(i))===void 0&&(l=i),l===Ku&&(l=void 0),n.D&&Xu(l,!0),o){var f=[],g=[];Re("Patches").M(i,l,f,g),o(f,g)}return l}re(21,i)},this.produceWithPatches=function(i,u){if(typeof i=="function")return function(l){for(var c=arguments.length,p=Array(c>1?c-1:0),d=1;d<c;d++)p[d-1]=arguments[d];return n.produceWithPatches(l,function(f){return i.apply(void 0,[f].concat(p))})};var o,a,s=n.produce(i,u,function(l,c){o=l,a=c});return typeof Promise<"u"&&s instanceof Promise?s.then(function(l){return[l,o,a]}):[s,o,a]},typeof(r==null?void 0:r.useProxies)=="boolean"&&this.setUseProxies(r.useProxies),typeof(r==null?void 0:r.autoFreeze)=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var e=t.prototype;return e.createDraft=function(r){Me(r)||re(8),vt(r)&&(r=mf(r));var n=sa(this),i=Er(this,r,void 0);return i[Y].C=!0,Fi(n),i},e.finishDraft=function(r,n){var i=r&&r[Y];process.env.NODE_ENV!=="production"&&(i&&i.C||re(9),i.I&&re(10));var u=i.A;return Si(u,n),Ci(void 0,u)},e.setAutoFreeze=function(r){this.D=r},e.setUseProxies=function(r){r&&!pa&&re(20),this.O=r},e.applyPatches=function(r,n){var i;for(i=n.length-1;i>=0;i--){var u=n[i];if(u.path.length===0&&u.op==="replace"){r=u.value;break}}i>-1&&(n=n.slice(i+1));var o=Re("Patches").$;return vt(r)?o(r,n):this.produce(r,function(a){return o(a,n)})},t}(),ve=new Tf,Af=ve.produce,ha=ve.produceWithPatches.bind(ve);ve.setAutoFreeze.bind(ve);ve.setUseProxies.bind(ve);var ba=ve.applyPatches.bind(ve);ve.createDraft.bind(ve);ve.finishDraft.bind(ve);var M=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Wn(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Of(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var r=function n(){return this instanceof n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(n){var i=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return t[n]}})}),r}function Nf(){this.__data__=[],this.size=0}var jf=Nf;function _f(t,e){return t===e||t!==t&&e!==e}var dl=_f,Pf=dl;function kf(t,e){for(var r=t.length;r--;)if(Pf(t[r][0],e))return r;return-1}var Gn=kf,Rf=Gn,If=Array.prototype,Df=If.splice;function Lf(t){var e=this.__data__,r=Rf(e,t);if(r<0)return!1;var n=e.length-1;return r==n?e.pop():Df.call(e,r,1),--this.size,!0}var Mf=Lf,$f=Gn;function Bf(t){var e=this.__data__,r=$f(e,t);return r<0?void 0:e[r][1]}var qf=Bf,Hf=Gn;function Ff(t){return Hf(this.__data__,t)>-1}var zf=Ff,Uf=Gn;function Vf(t,e){var r=this.__data__,n=Uf(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this}var Wf=Vf,Gf=jf,Xf=Mf,Yf=qf,Jf=zf,Kf=Wf;function Kt(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}Kt.prototype.clear=Gf;Kt.prototype.delete=Xf;Kt.prototype.get=Yf;Kt.prototype.has=Jf;Kt.prototype.set=Kf;var Xn=Kt,Zf=Xn;function Qf(){this.__data__=new Zf,this.size=0}var ep=Qf;function tp(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}var rp=tp;function np(t){return this.__data__.get(t)}var ip=np;function up(t){return this.__data__.has(t)}var op=up,ap=typeof M=="object"&&M&&M.Object===Object&&M,fl=ap,sp=fl,lp=typeof self=="object"&&self&&self.Object===Object&&self,cp=sp||lp||Function("return this")(),qe=cp,dp=qe,fp=dp.Symbol,Yn=fp,ga=Yn,pl=Object.prototype,pp=pl.hasOwnProperty,hp=pl.toString,dr=ga?ga.toStringTag:void 0;function bp(t){var e=pp.call(t,dr),r=t[dr];try{t[dr]=void 0;var n=!0}catch{}var i=hp.call(t);return n&&(e?t[dr]=r:delete t[dr]),i}var gp=bp,mp=Object.prototype,yp=mp.toString;function vp(t){return yp.call(t)}var xp=vp,ma=Yn,wp=gp,Ep=xp,Sp="[object Null]",Cp="[object Undefined]",ya=ma?ma.toStringTag:void 0;function Tp(t){return t==null?t===void 0?Cp:Sp:ya&&ya in Object(t)?wp(t):Ep(t)}var Jn=Tp;function Ap(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var hl=Ap,Op=Jn,Np=hl,jp="[object AsyncFunction]",_p="[object Function]",Pp="[object GeneratorFunction]",kp="[object Proxy]";function Rp(t){if(!Np(t))return!1;var e=Op(t);return e==_p||e==Pp||e==jp||e==kp}var Qu=Rp;const Ip=Wn(Qu);var Dp=qe,Lp=Dp["__core-js_shared__"],Mp=Lp,Oi=Mp,va=function(){var t=/[^.]+$/.exec(Oi&&Oi.keys&&Oi.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function $p(t){return!!va&&va in t}var Bp=$p,qp=Function.prototype,Hp=qp.toString;function Fp(t){if(t!=null){try{return Hp.call(t)}catch{}try{return t+""}catch{}}return""}var bl=Fp,zp=Qu,Up=Bp,Vp=hl,Wp=bl,Gp=/[\\^$.*+?()[\]{}|]/g,Xp=/^\[object .+?Constructor\]$/,Yp=Function.prototype,Jp=Object.prototype,Kp=Yp.toString,Zp=Jp.hasOwnProperty,Qp=RegExp("^"+Kp.call(Zp).replace(Gp,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function eh(t){if(!Vp(t)||Up(t))return!1;var e=zp(t)?Qp:Xp;return e.test(Wp(t))}var th=eh;function rh(t,e){return t==null?void 0:t[e]}var nh=rh,ih=th,uh=nh;function oh(t,e){var r=uh(t,e);return ih(r)?r:void 0}var Tt=oh,ah=Tt,sh=qe,lh=ah(sh,"Map"),eo=lh,ch=Tt,dh=ch(Object,"create"),Kn=dh,xa=Kn;function fh(){this.__data__=xa?xa(null):{},this.size=0}var ph=fh;function hh(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var bh=hh,gh=Kn,mh="__lodash_hash_undefined__",yh=Object.prototype,vh=yh.hasOwnProperty;function xh(t){var e=this.__data__;if(gh){var r=e[t];return r===mh?void 0:r}return vh.call(e,t)?e[t]:void 0}var wh=xh,Eh=Kn,Sh=Object.prototype,Ch=Sh.hasOwnProperty;function Th(t){var e=this.__data__;return Eh?e[t]!==void 0:Ch.call(e,t)}var Ah=Th,Oh=Kn,Nh="__lodash_hash_undefined__";function jh(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=Oh&&e===void 0?Nh:e,this}var _h=jh,Ph=ph,kh=bh,Rh=wh,Ih=Ah,Dh=_h;function Zt(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}Zt.prototype.clear=Ph;Zt.prototype.delete=kh;Zt.prototype.get=Rh;Zt.prototype.has=Ih;Zt.prototype.set=Dh;var Lh=Zt,wa=Lh,Mh=Xn,$h=eo;function Bh(){this.size=0,this.__data__={hash:new wa,map:new($h||Mh),string:new wa}}var qh=Bh;function Hh(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}var Fh=Hh,zh=Fh;function Uh(t,e){var r=t.__data__;return zh(e)?r[typeof e=="string"?"string":"hash"]:r.map}var Zn=Uh,Vh=Zn;function Wh(t){var e=Vh(this,t).delete(t);return this.size-=e?1:0,e}var Gh=Wh,Xh=Zn;function Yh(t){return Xh(this,t).get(t)}var Jh=Yh,Kh=Zn;function Zh(t){return Kh(this,t).has(t)}var Qh=Zh,eb=Zn;function tb(t,e){var r=eb(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this}var rb=tb,nb=qh,ib=Gh,ub=Jh,ob=Qh,ab=rb;function Qt(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}Qt.prototype.clear=nb;Qt.prototype.delete=ib;Qt.prototype.get=ub;Qt.prototype.has=ob;Qt.prototype.set=ab;var gl=Qt,sb=Xn,lb=eo,cb=gl,db=200;function fb(t,e){var r=this.__data__;if(r instanceof sb){var n=r.__data__;if(!lb||n.length<db-1)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new cb(n)}return r.set(t,e),this.size=r.size,this}var pb=fb,hb=Xn,bb=ep,gb=rp,mb=ip,yb=op,vb=pb;function er(t){var e=this.__data__=new hb(t);this.size=e.size}er.prototype.clear=bb;er.prototype.delete=gb;er.prototype.get=mb;er.prototype.has=yb;er.prototype.set=vb;var xb=er,wb="__lodash_hash_undefined__";function Eb(t){return this.__data__.set(t,wb),this}var Sb=Eb;function Cb(t){return this.__data__.has(t)}var Tb=Cb,Ab=gl,Ob=Sb,Nb=Tb;function wn(t){var e=-1,r=t==null?0:t.length;for(this.__data__=new Ab;++e<r;)this.add(t[e])}wn.prototype.add=wn.prototype.push=Ob;wn.prototype.has=Nb;var jb=wn;function _b(t,e){for(var r=-1,n=t==null?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}var Pb=_b;function kb(t,e){return t.has(e)}var Rb=kb,Ib=jb,Db=Pb,Lb=Rb,Mb=1,$b=2;function Bb(t,e,r,n,i,u){var o=r&Mb,a=t.length,s=e.length;if(a!=s&&!(o&&s>a))return!1;var l=u.get(t),c=u.get(e);if(l&&c)return l==e&&c==t;var p=-1,d=!0,f=r&$b?new Ib:void 0;for(u.set(t,e),u.set(e,t);++p<a;){var g=t[p],m=e[p];if(n)var b=o?n(m,g,p,e,t,u):n(g,m,p,t,e,u);if(b!==void 0){if(b)continue;d=!1;break}if(f){if(!Db(e,function(y,v){if(!Lb(f,v)&&(g===y||i(g,y,r,n,u)))return f.push(v)})){d=!1;break}}else if(!(g===m||i(g,m,r,n,u))){d=!1;break}}return u.delete(t),u.delete(e),d}var ml=Bb,qb=qe,Hb=qb.Uint8Array,Fb=Hb;function zb(t){var e=-1,r=Array(t.size);return t.forEach(function(n,i){r[++e]=[i,n]}),r}var Ub=zb;function Vb(t){var e=-1,r=Array(t.size);return t.forEach(function(n){r[++e]=n}),r}var Wb=Vb,Ea=Yn,Sa=Fb,Gb=dl,Xb=ml,Yb=Ub,Jb=Wb,Kb=1,Zb=2,Qb="[object Boolean]",eg="[object Date]",tg="[object Error]",rg="[object Map]",ng="[object Number]",ig="[object RegExp]",ug="[object Set]",og="[object String]",ag="[object Symbol]",sg="[object ArrayBuffer]",lg="[object DataView]",Ca=Ea?Ea.prototype:void 0,Ni=Ca?Ca.valueOf:void 0;function cg(t,e,r,n,i,u,o){switch(r){case lg:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case sg:return!(t.byteLength!=e.byteLength||!u(new Sa(t),new Sa(e)));case Qb:case eg:case ng:return Gb(+t,+e);case tg:return t.name==e.name&&t.message==e.message;case ig:case og:return t==e+"";case rg:var a=Yb;case ug:var s=n&Kb;if(a||(a=Jb),t.size!=e.size&&!s)return!1;var l=o.get(t);if(l)return l==e;n|=Zb,o.set(t,e);var c=Xb(a(t),a(e),n,i,u,o);return o.delete(t),c;case ag:if(Ni)return Ni.call(t)==Ni.call(e)}return!1}var dg=cg;function fg(t,e){for(var r=-1,n=e.length,i=t.length;++r<n;)t[i+r]=e[r];return t}var pg=fg,hg=Array.isArray,to=hg,bg=pg,gg=to;function mg(t,e,r){var n=e(t);return gg(t)?n:bg(n,r(t))}var yg=mg;function vg(t,e){for(var r=-1,n=t==null?0:t.length,i=0,u=[];++r<n;){var o=t[r];e(o,r,t)&&(u[i++]=o)}return u}var xg=vg;function wg(){return[]}var Eg=wg,Sg=xg,Cg=Eg,Tg=Object.prototype,Ag=Tg.propertyIsEnumerable,Ta=Object.getOwnPropertySymbols,Og=Ta?function(t){return t==null?[]:(t=Object(t),Sg(Ta(t),function(e){return Ag.call(t,e)}))}:Cg,Ng=Og;function jg(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}var _g=jg;function Pg(t){return t!=null&&typeof t=="object"}var Qn=Pg,kg=Jn,Rg=Qn,Ig="[object Arguments]";function Dg(t){return Rg(t)&&kg(t)==Ig}var Lg=Dg,Aa=Lg,Mg=Qn,yl=Object.prototype,$g=yl.hasOwnProperty,Bg=yl.propertyIsEnumerable,qg=Aa(function(){return arguments}())?Aa:function(t){return Mg(t)&&$g.call(t,"callee")&&!Bg.call(t,"callee")},Hg=qg,En={exports:{}};function Fg(){return!1}var zg=Fg;En.exports;(function(t,e){var r=qe,n=zg,i=e&&!e.nodeType&&e,u=i&&!0&&t&&!t.nodeType&&t,o=u&&u.exports===i,a=o?r.Buffer:void 0,s=a?a.isBuffer:void 0,l=s||n;t.exports=l})(En,En.exports);var vl=En.exports,Ug=9007199254740991,Vg=/^(?:0|[1-9]\d*)$/;function Wg(t,e){var r=typeof t;return e=e??Ug,!!e&&(r=="number"||r!="symbol"&&Vg.test(t))&&t>-1&&t%1==0&&t<e}var Gg=Wg,Xg=9007199254740991;function Yg(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=Xg}var xl=Yg,Jg=Jn,Kg=xl,Zg=Qn,Qg="[object Arguments]",em="[object Array]",tm="[object Boolean]",rm="[object Date]",nm="[object Error]",im="[object Function]",um="[object Map]",om="[object Number]",am="[object Object]",sm="[object RegExp]",lm="[object Set]",cm="[object String]",dm="[object WeakMap]",fm="[object ArrayBuffer]",pm="[object DataView]",hm="[object Float32Array]",bm="[object Float64Array]",gm="[object Int8Array]",mm="[object Int16Array]",ym="[object Int32Array]",vm="[object Uint8Array]",xm="[object Uint8ClampedArray]",wm="[object Uint16Array]",Em="[object Uint32Array]",ee={};ee[hm]=ee[bm]=ee[gm]=ee[mm]=ee[ym]=ee[vm]=ee[xm]=ee[wm]=ee[Em]=!0;ee[Qg]=ee[em]=ee[fm]=ee[tm]=ee[pm]=ee[rm]=ee[nm]=ee[im]=ee[um]=ee[om]=ee[am]=ee[sm]=ee[lm]=ee[cm]=ee[dm]=!1;function Sm(t){return Zg(t)&&Kg(t.length)&&!!ee[Jg(t)]}var Cm=Sm;function Tm(t){return function(e){return t(e)}}var Am=Tm,Sn={exports:{}};Sn.exports;(function(t,e){var r=fl,n=e&&!e.nodeType&&e,i=n&&!0&&t&&!t.nodeType&&t,u=i&&i.exports===n,o=u&&r.process,a=function(){try{var s=i&&i.require&&i.require("util").types;return s||o&&o.binding&&o.binding("util")}catch{}}();t.exports=a})(Sn,Sn.exports);var ro=Sn.exports,Om=Cm,Nm=Am,Oa=ro,Na=Oa&&Oa.isTypedArray,jm=Na?Nm(Na):Om,wl=jm,_m=_g,Pm=Hg,km=to,Rm=vl,Im=Gg,Dm=wl,Lm=Object.prototype,Mm=Lm.hasOwnProperty;function $m(t,e){var r=km(t),n=!r&&Pm(t),i=!r&&!n&&Rm(t),u=!r&&!n&&!i&&Dm(t),o=r||n||i||u,a=o?_m(t.length,String):[],s=a.length;for(var l in t)(e||Mm.call(t,l))&&!(o&&(l=="length"||i&&(l=="offset"||l=="parent")||u&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||Im(l,s)))&&a.push(l);return a}var Bm=$m,qm=Object.prototype;function Hm(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||qm;return t===r}var Fm=Hm;function zm(t,e){return function(r){return t(e(r))}}var Um=zm,Vm=Um,Wm=Vm(Object.keys,Object),Gm=Wm,Xm=Fm,Ym=Gm,Jm=Object.prototype,Km=Jm.hasOwnProperty;function Zm(t){if(!Xm(t))return Ym(t);var e=[];for(var r in Object(t))Km.call(t,r)&&r!="constructor"&&e.push(r);return e}var Qm=Zm,e1=Qu,t1=xl;function r1(t){return t!=null&&t1(t.length)&&!e1(t)}var n1=r1,i1=Bm,u1=Qm,o1=n1;function a1(t){return o1(t)?i1(t):u1(t)}var s1=a1,l1=yg,c1=Ng,d1=s1;function f1(t){return l1(t,d1,c1)}var p1=f1,ja=p1,h1=1,b1=Object.prototype,g1=b1.hasOwnProperty;function m1(t,e,r,n,i,u){var o=r&h1,a=ja(t),s=a.length,l=ja(e),c=l.length;if(s!=c&&!o)return!1;for(var p=s;p--;){var d=a[p];if(!(o?d in e:g1.call(e,d)))return!1}var f=u.get(t),g=u.get(e);if(f&&g)return f==e&&g==t;var m=!0;u.set(t,e),u.set(e,t);for(var b=o;++p<s;){d=a[p];var y=t[d],v=e[d];if(n)var C=o?n(v,y,d,e,t,u):n(y,v,d,t,e,u);if(!(C===void 0?y===v||i(y,v,r,n,u):C)){m=!1;break}b||(b=d=="constructor")}if(m&&!b){var S=t.constructor,O=e.constructor;S!=O&&"constructor"in t&&"constructor"in e&&!(typeof S=="function"&&S instanceof S&&typeof O=="function"&&O instanceof O)&&(m=!1)}return u.delete(t),u.delete(e),m}var y1=m1,v1=Tt,x1=qe,w1=v1(x1,"DataView"),E1=w1,S1=Tt,C1=qe,T1=S1(C1,"Promise"),A1=T1,O1=Tt,N1=qe,j1=O1(N1,"Set"),_1=j1,P1=Tt,k1=qe,R1=P1(k1,"WeakMap"),I1=R1,Vi=E1,Wi=eo,Gi=A1,Xi=_1,Yi=I1,El=Jn,tr=bl,_a="[object Map]",D1="[object Object]",Pa="[object Promise]",ka="[object Set]",Ra="[object WeakMap]",Ia="[object DataView]",L1=tr(Vi),M1=tr(Wi),$1=tr(Gi),B1=tr(Xi),q1=tr(Yi),mt=El;(Vi&&mt(new Vi(new ArrayBuffer(1)))!=Ia||Wi&&mt(new Wi)!=_a||Gi&&mt(Gi.resolve())!=Pa||Xi&&mt(new Xi)!=ka||Yi&&mt(new Yi)!=Ra)&&(mt=function(t){var e=El(t),r=e==D1?t.constructor:void 0,n=r?tr(r):"";if(n)switch(n){case L1:return Ia;case M1:return _a;case $1:return Pa;case B1:return ka;case q1:return Ra}return e});var H1=mt,ji=xb,F1=ml,z1=dg,U1=y1,Da=H1,La=to,Ma=vl,V1=wl,W1=1,$a="[object Arguments]",Ba="[object Array]",Yr="[object Object]",G1=Object.prototype,qa=G1.hasOwnProperty;function X1(t,e,r,n,i,u){var o=La(t),a=La(e),s=o?Ba:Da(t),l=a?Ba:Da(e);s=s==$a?Yr:s,l=l==$a?Yr:l;var c=s==Yr,p=l==Yr,d=s==l;if(d&&Ma(t)){if(!Ma(e))return!1;o=!0,c=!1}if(d&&!c)return u||(u=new ji),o||V1(t)?F1(t,e,r,n,i,u):z1(t,e,s,r,n,i,u);if(!(r&W1)){var f=c&&qa.call(t,"__wrapped__"),g=p&&qa.call(e,"__wrapped__");if(f||g){var m=f?t.value():t,b=g?e.value():e;return u||(u=new ji),i(m,b,r,n,u)}}return d?(u||(u=new ji),U1(t,e,r,n,i,u)):!1}var Y1=X1,J1=Y1,Ha=Qn;function Sl(t,e,r,n,i){return t===e?!0:t==null||e==null||!Ha(t)&&!Ha(e)?t!==t&&e!==e:J1(t,e,r,n,Sl,i)}var K1=Sl,Z1=K1;function Q1(t,e,r){r=typeof r=="function"?r:void 0;var n=r?r(t,e):void 0;return n===void 0?Z1(t,e,void 0,r):!!n}var ey=Q1;const ty=Wn(ey);var ry=function(e,r,n,i){var u=n?n.call(i,e,r):void 0;if(u!==void 0)return!!u;if(e===r)return!0;if(typeof e!="object"||!e||typeof r!="object"||!r)return!1;var o=Object.keys(e),a=Object.keys(r);if(o.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(r),l=0;l<o.length;l++){var c=o[l];if(!s(c))return!1;var p=e[c],d=r[c];if(u=n?n.call(i,p,d,c):void 0,u===!1||u===void 0&&p!==d)return!1}return!0};const ny=Wn(ry);let iy=(t=21)=>crypto.getRandomValues(new Uint8Array(t)).reduce((e,r)=>(r&=63,r<36?e+=r.toString(36):r<62?e+=(r-26).toString(36).toUpperCase():r>62?e+="-":e+="_",e),"");var uy=process.env.NODE_ENV==="production",_i="Invariant failed";function Z(t,e){if(!t){if(uy)throw new Error(_i);var r=typeof e=="function"?e():e,n=r?"".concat(_i,": ").concat(r):_i;throw new Error(n)}}typeof window<"u"&&(window.__CRAFTJS__||(window.__CRAFTJS__={}),window.__CRAFTJS__["@craftjs/utils"]="0.2.5");var Je="ROOT",Cl="canvas-ROOT",oy="Parent id cannot be ommited",ay="Attempting to add a node with duplicated id",Tl="Node does not exist, it may have been removed",sy='A <Element /> that is used inside a User Component must specify an `id` prop, eg: <Element id="text_element">...</Element> ',ly="Node cannot be dropped into target parent",cy="Target parent rejects incoming node",dy="Current parent rejects outgoing node",Fa="Cannot move node that is not a direct child of a Canvas node",fy="Cannot move node into a non-Canvas parent",za="A top-level Node cannot be moved",py="Cannot move node into a descendant",Cn="The component type specified for this node (%node_type%) does not exist in the resolver",hy="The node has specified a canDrag() rule that prevents it from being dragged",by="Invalid parameter Node Id specified",gy="Attempting to delete a top-level Node",my=`Resolver in <Editor /> has to be an object. For (de)serialization Craft.js needs a list of all the User Components.
132
+
133
+ More info: https://craft.js.org/r/docs/api/editor#props`,yy=`An Error occurred while deserializing components: Cannot find component <%displayName% /> in resolver map. Please check your resolver in <Editor />
134
+
135
+ Available components in resolver: %availableComponents%
136
+
137
+ More info: https://craft.js.org/r/docs/api/editor#props`,vy=`You can only use useEditor in the context of <Editor />.
138
+
139
+ Please only use useEditor in components that are children of the <Editor /> component.`,xy=`You can only use useNode in the context of <Editor />.
140
+
141
+ Please only use useNode in components that are children of the <Editor /> component.`;function Ua(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function we(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Ua(Object(r),!0).forEach(function(n){se(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ua(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function rr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function wy(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,_l(n.key),n)}}function nr(t,e,r){return e&&wy(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function se(t,e,r){return(e=_l(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Dt(t){return Dt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Dt(t)}function Ji(t,e){return Ji=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},Ji(t,e)}function Pi(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Ki(){return Ki=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(t,e,r){var n=function(u,o){for(;!Object.prototype.hasOwnProperty.call(u,o)&&(u=Dt(u))!==null;);return u}(t,e);if(n){var i=Object.getOwnPropertyDescriptor(n,e);return i.get?i.get.call(arguments.length<3?t:r):i.value}},Ki.apply(this,arguments)}function Al(t,e){return Ol(t)||function(r,n){var i=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(i!=null){var u,o,a,s,l=[],c=!0,p=!1;try{if(a=(i=i.call(r)).next,n===0){if(Object(i)!==i)return;c=!1}else for(;!(c=(u=a.call(i)).done)&&(l.push(u.value),l.length!==n);c=!0);}catch(d){p=!0,o=d}finally{try{if(!c&&i.return!=null&&(s=i.return(),Object(s)!==s))return}finally{if(p)throw o}}return l}}(t,e)||no(t,e)||jl()}function fe(t){return function(e){if(Array.isArray(e))return Zi(e)}(t)||Nl(t)||no(t)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
142
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Ol(t){if(Array.isArray(t))return t}function Nl(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function no(t,e){if(t){if(typeof t=="string")return Zi(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set"?Array.from(t):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Zi(t,e):void 0}}function Zi(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function jl(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
143
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _l(t){var e=function(r,n){if(typeof r!="object"||r===null)return r;var i=r[Symbol.toPrimitive];if(i!==void 0){var u=i.call(r,"string");if(typeof u!="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(r)}(t);return typeof e=="symbol"?e:String(e)}var ue={UNDO:"HISTORY_UNDO",REDO:"HISTORY_REDO",THROTTLE:"HISTORY_THROTTLE",IGNORE:"HISTORY_IGNORE",MERGE:"HISTORY_MERGE",CLEAR:"HISTORY_CLEAR"},Ey=function(){function t(){rr(this,t),se(this,"timeline",[]),se(this,"pointer",-1)}return nr(t,[{key:"add",value:function(e,r){e.length===0&&r.length===0||(this.pointer=this.pointer+1,this.timeline.length=this.pointer,this.timeline[this.pointer]={patches:e,inversePatches:r,timestamp:Date.now()})}},{key:"throttleAdd",value:function(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:500;if(e.length!==0||r.length!==0){if(this.timeline.length&&this.pointer>=0){var i=this.timeline[this.pointer],u=i.patches,o=i.inversePatches,a=i.timestamp;if(new Date().getTime()-a<n)return void(this.timeline[this.pointer]={timestamp:a,patches:[].concat(fe(u),fe(e)),inversePatches:[].concat(fe(r),fe(o))})}this.add(e,r)}}},{key:"merge",value:function(e,r){if(e.length!==0||r.length!==0)if(this.timeline.length&&this.pointer>=0){var n=this.timeline[this.pointer],i=n.inversePatches;this.timeline[this.pointer]={timestamp:n.timestamp,patches:[].concat(fe(n.patches),fe(e)),inversePatches:[].concat(fe(r),fe(i))}}else this.add(e,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(e){if(this.canUndo()){var r=this.timeline[this.pointer].inversePatches;return this.pointer=this.pointer-1,ba(e,r)}}},{key:"redo",value:function(e){if(this.canRedo())return this.pointer=this.pointer+1,ba(e,this.timeline[this.pointer].patches)}}]),t}();function Sy(t,e,r,n){var i,u=j.useMemo(function(){return new Ey},[]),o=j.useRef([]),a=j.useRef(function(){});typeof t=="function"?i=t:(i=t.methods,o.current=t.ignoreHistoryForActions,a.current=t.normalizeHistory);var s=j.useRef(n);s.current=n;var l=j.useRef(e),c=j.useMemo(function(){var b=a.current,y=o.current,v=s.current;return function(C,S){var O,k=r&&Va(r,function(){return C},u),R=Al(ha(C,function(E){var T,_;switch(S.type){case ue.UNDO:return u.undo(E);case ue.REDO:return u.redo(E);case ue.CLEAR:return u.clear(),we({},E);case ue.IGNORE:case ue.MERGE:case ue.THROTTLE:var I,w=Ol(_=S.payload)||Nl(_)||no(_)||jl(),N=w[0],A=w.slice(1);(I=i(E,k))[N].apply(I,fe(A));break;default:(T=i(E,k))[S.type].apply(T,fe(S.payload))}}),3),D=R[0],$=R[1],L=R[2];return O=D,v&&v(D,C,{type:S.type,params:S.payload,patches:$},k,function(E){var T=ha(D,E);O=T[0],$=[].concat(fe($),fe(T[1])),L=[].concat(fe(T[2]),fe(L))}),[ue.UNDO,ue.REDO].includes(S.type)&&b&&(O=Af(O,b)),[].concat(fe(y),[ue.UNDO,ue.REDO,ue.IGNORE,ue.CLEAR]).includes(S.type)||(S.type===ue.THROTTLE?u.throttleAdd($,L,S.config&&S.config.rate):S.type===ue.MERGE?u.merge($,L):u.add($,L)),O}},[u,i,r]),p=j.useCallback(function(){return l.current},[]),d=j.useMemo(function(){return new Cy(p)},[p]),f=j.useCallback(function(b){var y=c(l.current,b);l.current=y,d.notify()},[c,d]);j.useEffect(function(){d.notify()},[d]);var g=j.useMemo(function(){return r?Va(r,function(){return l.current},u):[]},[u,r]),m=j.useMemo(function(){var b=Object.keys(i(null,null)),y=o.current;return we(we({},b.reduce(function(v,C){return v[C]=function(){for(var S=arguments.length,O=new Array(S),k=0;k<S;k++)O[k]=arguments[k];return f({type:C,payload:O})},v},{})),{},{history:{undo:function(){return f({type:ue.UNDO})},redo:function(){return f({type:ue.REDO})},clear:function(){return f({type:ue.CLEAR})},throttle:function(v){return we({},b.filter(function(C){return!y.includes(C)}).reduce(function(C,S){return C[S]=function(){for(var O=arguments.length,k=new Array(O),R=0;R<O;R++)k[R]=arguments[R];return f({type:ue.THROTTLE,payload:[S].concat(k),config:{rate:v}})},C},{}))},ignore:function(){return we({},b.filter(function(v){return!y.includes(v)}).reduce(function(v,C){return v[C]=function(){for(var S=arguments.length,O=new Array(S),k=0;k<S;k++)O[k]=arguments[k];return f({type:ue.IGNORE,payload:[C].concat(O)})},v},{}))},merge:function(){return we({},b.filter(function(v){return!y.includes(v)}).reduce(function(v,C){return v[C]=function(){for(var S=arguments.length,O=new Array(S),k=0;k<S;k++)O[k]=arguments[k];return f({type:ue.MERGE,payload:[C].concat(O)})},v},{}))}}})},[f,i]);return j.useMemo(function(){return{getState:p,subscribe:function(b,y,v){return d.subscribe(b,y,v)},actions:m,query:g,history:u}},[m,g,d,p,u])}function Va(t,e,r){var n=Object.keys(t()).reduce(function(i,u){return we(we({},i),{},se({},u,function(){var o;return(o=t(e()))[u].apply(o,arguments)}))},{});return we(we({},n),{},{history:{canUndo:function(){return r.canUndo()},canRedo:function(){return r.canRedo()}}})}vf(),yf();var Cy=function(){function t(e){rr(this,t),se(this,"getState",void 0),se(this,"subscribers",[]),this.getState=e}return nr(t,[{key:"subscribe",value:function(e,r,n){var i=this,u=new Ty(function(){return e(i.getState())},r,n);return this.subscribers.push(u),this.unsubscribe.bind(this,u)}},{key:"unsubscribe",value:function(e){if(this.subscribers.length){var r=this.subscribers.indexOf(e);if(r>-1)return this.subscribers.splice(r,1)}}},{key:"notify",value:function(){this.subscribers.forEach(function(e){return e.collect()})}}]),t}(),Ty=function(){function t(e,r){var n=arguments.length>2&&arguments[2]!==void 0&&arguments[2];rr(this,t),se(this,"collected",void 0),se(this,"collector",void 0),se(this,"onChange",void 0),se(this,"id",void 0),this.collector=e,this.onChange=r,n&&this.collect()}return nr(t,[{key:"collect",value:function(){try{var e=this.collector();ty(e,this.collected)||(this.collected=e,this.onChange&&this.onChange(this.collected))}catch(r){console.warn(r)}}}]),t}(),Sr=function(t){var e=t.getBoundingClientRect(),r=e.x,n=e.y,i=e.top,u=e.left,o=e.bottom,a=e.right,s=e.width,l=e.height,c=window.getComputedStyle(t),p={left:parseInt(c.marginLeft),right:parseInt(c.marginRight),bottom:parseInt(c.marginBottom),top:parseInt(c.marginTop)},d={left:parseInt(c.paddingLeft),right:parseInt(c.paddingRight),bottom:parseInt(c.paddingBottom),top:parseInt(c.paddingTop)};return{x:r,y:n,top:i,left:u,bottom:o,right:a,width:s,height:l,outerWidth:Math.round(s+p.left+p.right),outerHeight:Math.round(l+p.top+p.bottom),margin:p,padding:d,inFlow:t.parentElement&&!!function(f){var g=getComputedStyle(f);if(!(c.overflow&&c.overflow!=="visible"||g.float!=="none"||g.display==="grid"||g.display==="flex"&&g["flex-direction"]!=="column")){switch(c.position){case"static":case"relative":break;default:return}switch(t.tagName){case"TR":case"TBODY":case"THEAD":case"TFOOT":return!0}switch(c.display){case"block":case"list-item":case"table":case"flex":case"grid":return!0}}}(t.parentElement)}};function Ay(t,e){const{subscribe:r,getState:n,actions:i,query:u}=t,o=j.useRef(!0),a=j.useRef(null),s=j.useRef(e);s.current=e;const l=j.useCallback(d=>({...d,actions:i,query:u}),[i,u]);o.current&&e&&(a.current=e(n(),u),o.current=!1);const[c,p]=j.useState(l(a.current));return j.useEffect(()=>{let d;return s.current&&(d=r(f=>s.current(f,u),f=>{p(l(f))})),()=>{d&&d()}},[l,u,r]),c}var Bt,Pl=function(){return iy(arguments.length>0&&arguments[0]!==void 0?arguments[0]:10)},Oy=function(){function t(){rr(this,t),se(this,"isEnabled",!0),se(this,"elementIdMap",new WeakMap),se(this,"registry",new Map)}return nr(t,[{key:"getElementId",value:function(e){var r=this.elementIdMap.get(e);if(r)return r;var n=Pl();return this.elementIdMap.set(e,n),n}},{key:"getConnectorId",value:function(e,r){var n=this.getElementId(e);return"".concat(r,"--").concat(n)}},{key:"register",value:function(e,r){var n=this,i=this.getByElement(e,r.name);if(i){if(ny(r.required,i.required))return i;this.getByElement(e,r.name).disable()}var u=null,o=this.getConnectorId(e,r.name);return this.registry.set(o,{id:o,required:r.required,enable:function(){u&&u(),u=r.connector(e,r.required,r.options)},disable:function(){u&&u()},remove:function(){return n.remove(o)}}),this.isEnabled&&this.registry.get(o).enable(),this.registry.get(o)}},{key:"get",value:function(e){return this.registry.get(e)}},{key:"remove",value:function(e){var r=this.get(e);r&&(r.disable(),this.registry.delete(r.id))}},{key:"enable",value:function(){this.isEnabled=!0,this.registry.forEach(function(e){e.enable()})}},{key:"disable",value:function(){this.isEnabled=!1,this.registry.forEach(function(e){e.disable()})}},{key:"getByElement",value:function(e,r){return this.get(this.getConnectorId(e,r))}},{key:"removeByElement",value:function(e,r){return this.remove(this.getConnectorId(e,r))}},{key:"clear",value:function(){this.disable(),this.elementIdMap=new WeakMap,this.registry=new Map}}]),t}();(function(t){t[t.HandlerDisabled=0]="HandlerDisabled",t[t.HandlerEnabled=1]="HandlerEnabled"})(Bt||(Bt={}));var kl=function(){function t(e){rr(this,t),se(this,"options",void 0),se(this,"registry",new Oy),se(this,"subscribers",new Set),this.options=e}return nr(t,[{key:"listen",value:function(e){var r=this;return this.subscribers.add(e),function(){return r.subscribers.delete(e)}}},{key:"disable",value:function(){this.onDisable&&this.onDisable(),this.registry.disable(),this.subscribers.forEach(function(e){e(Bt.HandlerDisabled)})}},{key:"enable",value:function(){this.onEnable&&this.onEnable(),this.registry.enable(),this.subscribers.forEach(function(e){e(Bt.HandlerEnabled)})}},{key:"cleanup",value:function(){this.disable(),this.subscribers.clear(),this.registry.clear()}},{key:"addCraftEventListener",value:function(e,r,n,i){var u=function(o){(function(a,s,l){a.craft||(a.craft={stopPropagation:function(){},blockedEvents:{}});for(var c=a.craft&&a.craft.blockedEvents[s]||[],p=0;p<c.length;p++){var d=c[p];if(l!==d&&l.contains(d))return!0}return!1})(o,r,e)||(o.craft.stopPropagation=function(){o.craft.blockedEvents[r]||(o.craft.blockedEvents[r]=[]),o.craft.blockedEvents[r].push(e)},n(o))};return e.addEventListener(r,u,i),function(){return e.removeEventListener(r,u,i)}}},{key:"createConnectorsUsage",value:function(){var e=this,r=this.handlers(),n=new Set,i=!1,u=new Map;return{connectors:Object.entries(r).reduce(function(o,a){var s=Al(a,2),l=s[0],c=s[1];return we(we({},o),{},se({},l,function(p,d,f){var g=function(){var m=e.registry.register(p,{required:d,name:l,options:f,connector:c});return n.add(m.id),m};return u.set(e.registry.getConnectorId(p,l),g),i&&g(),p}))},{}),register:function(){i=!0,u.forEach(function(o){o()})},cleanup:function(){i=!1,n.forEach(function(o){return e.registry.remove(o)})}}}},{key:"derive",value:function(e,r){return new e(this,r)}},{key:"createProxyHandlers",value:function(e,r){var n=[],i=e.handlers(),u=new Proxy(i,{get:function(o,a,s){return a in i==0?Reflect.get(o,a,s):function(l){for(var c=arguments.length,p=new Array(c>1?c-1:0),d=1;d<c;d++)p[d-1]=arguments[d];var f=i[a].apply(i,[l].concat(p));f&&n.push(f)}}});return r(u),function(){n.forEach(function(o){o()})}}},{key:"reflect",value:function(e){return this.createProxyHandlers(this,e)}}]),t}(),Ny=function(t){(function(u,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");u.prototype=Object.create(o&&o.prototype,{constructor:{value:u,writable:!0,configurable:!0}}),Object.defineProperty(u,"prototype",{writable:!1}),o&&Ji(u,o)})(i,kl);var e,r,n=(e=i,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 u,o=Dt(e);if(r){var a=Dt(this).constructor;u=Reflect.construct(o,arguments,a)}else u=o.apply(this,arguments);return function(s,l){if(l&&(typeof l=="object"||typeof l=="function"))return l;if(l!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Pi(s)}(this,u)});function i(u,o){var a;return rr(this,i),se(Pi(a=n.call(this,o)),"derived",void 0),se(Pi(a),"unsubscribeParentHandlerListener",void 0),a.derived=u,a.options=o,a.unsubscribeParentHandlerListener=a.derived.listen(function(s){switch(s){case Bt.HandlerEnabled:return a.enable();case Bt.HandlerDisabled:return a.disable();default:return}}),a}return nr(i,[{key:"inherit",value:function(u){return this.createProxyHandlers(this.derived,u)}},{key:"cleanup",value:function(){Ki(Dt(i.prototype),"cleanup",this).call(this),this.unsubscribeParentHandlerListener()}}]),i}();function Wa(t,e){e&&(typeof t=="function"?t(e):t.current=e)}function jy(t,e){const r=t.ref;return Z(typeof r!="string","Cannot connect to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://facebook.github.io/react/docs/more-about-refs.html#the-ref-callback-attribute"),j.cloneElement(t,r?{ref:n=>{Wa(r,n),Wa(e,n)}}:{ref:e})}function _y(t){return(e=null,...r)=>{if(!j.isValidElement(e)){if(!e)return;const i=e;return i&&t(i,...r),i}const n=e;return function(i){if(typeof i.type!="string")throw new Error}(n),jy(n,t)}}function Rl(t){return Object.keys(t).reduce((e,r)=>(e[r]=_y((...n)=>t[r](...n)),e),{})}const Py=({style:t,className:e,parentDom:r})=>{const n=j.createElement("div",{className:e,style:{position:"fixed",display:"block",opacity:1,borderStyle:"solid",borderWidth:"1px",borderColor:"transparent",zIndex:99999,...t}});return r&&r.ownerDocument!==document?Gs.createPortal(n,r.ownerDocument.body):n};var lt=function(t,e){var r="Deprecation warning: ".concat(t," will be deprecated in future relases."),n=e.suggest,i=e.doc;n&&(r+=" Please use ".concat(n," instead.")),i&&(r+="(".concat(i,")")),console.warn(r)},Il=function(){return typeof window<"u"},ky=function(){return Il()&&/Linux/i.test(window.navigator.userAgent)},Ry=function(){return Il()&&/Chrome/i.test(window.navigator.userAgent)},Iy=Tt;(function(){try{var t=Iy(Object,"defineProperty");return t({},"",{}),t}catch{}})();var Tn={exports:{}};Tn.exports;(function(t,e){var r=qe,n=e&&!e.nodeType&&e,i=n&&!0&&t&&!t.nodeType&&t,u=i&&i.exports===n,o=u?r.Buffer:void 0,a=o?o.allocUnsafe:void 0;function s(l,c){if(c)return l.slice();var p=l.length,d=a?a(p):new l.constructor(p);return l.copy(d),d}t.exports=s})(Tn,Tn.exports);Tn.exports;var Ga=Yn,Xa=Ga?Ga.prototype:void 0;Xa&&Xa.valueOf;var Ya=ro;Ya&&Ya.isMap;var Ja=ro;Ja&&Ja.isSet;typeof window<"u"&&(window.__CRAFTJS__||(window.__CRAFTJS__={}),window.__CRAFTJS__["@craftjs/core"]="0.2.12");const Dl=j.createContext(null),Ll=({id:t,related:e=!1,children:r})=>j.createElement(Dl.Provider,{value:{id:t,related:e}},r);function Ka(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function te(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Ka(Object(r),!0).forEach(function(n){ae(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ka(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Qi(t){return Qi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Qi(t)}function ei(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Dy(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Bl(n.key),n)}}function ti(t,e,r){return e&&Dy(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function ae(t,e,r){return(e=Bl(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function io(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&eu(t,e)}function An(t){return An=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},An(t)}function eu(t,e){return eu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},eu(t,e)}function uo(t,e){if(t==null)return{};var r,n,i=function(o,a){if(o==null)return{};var s,l,c={},p=Object.keys(o);for(l=0;l<p.length;l++)a.indexOf(s=p[l])>=0||(c[s]=o[s]);return c}(t,e);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(t);for(n=0;n<u.length;n++)e.indexOf(r=u[n])>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function gr(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function oo(t){var e=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=An(t);if(e){var i=An(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(u,o){if(o&&(typeof o=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return gr(u)}(this,r)}}function Ml(t,e){return function(r){if(Array.isArray(r))return r}(t)||function(r,n){var i=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(i!=null){var u,o,a,s,l=[],c=!0,p=!1;try{if(a=(i=i.call(r)).next,n!==0)for(;!(c=(u=a.call(i)).done)&&(l.push(u.value),l.length!==n);c=!0);}catch(d){p=!0,o=d}finally{try{if(!c&&i.return!=null&&(s=i.return(),Object(s)!==s))return}finally{if(p)throw o}}return l}}(t,e)||$l(t,e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
144
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Cr(t){return function(e){if(Array.isArray(e))return tu(e)}(t)||function(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}(t)||$l(t)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
145
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function $l(t,e){if(t){if(typeof t=="string")return tu(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set"?Array.from(t):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?tu(t,e):void 0}}function tu(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Bl(t){var e=function(r,n){if(typeof r!="object"||r===null)return r;var i=r[Symbol.toPrimitive];if(i!==void 0){var u=i.call(r,"string");if(typeof u!="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(r)}(t);return typeof e=="symbol"?e:String(e)}const ao=j.createContext(null);var ql=j.createContext(null),Hl=function(){return j.useContext(ql)};function At(t){var e=Hl(),r=j.useContext(ao);Z(r,vy);var n=Ay(r,t),i=j.useMemo(function(){return e&&e.createConnectorsUsage()},[e]);j.useEffect(function(){return i.register(),function(){i.cleanup()}},[i]);var u=j.useMemo(function(){return i&&Rl(i.connectors)},[i]);return te(te({},n),{},{connectors:u,inContext:!!r,store:r})}var Ly=["actions","query","connectors"];function ri(t){var e=j.useContext(Dl);Z(e,xy);var r=e.id,n=e.related,i=At(function(c){return r&&c.nodes[r]&&t&&t(c.nodes[r])}),u=i.actions,o=i.connectors,a=uo(i,Ly),s=j.useMemo(function(){return Rl({connect:function(c){return o.connect(c,r)},drag:function(c){return o.drag(c,r)}})},[o,r]),l=j.useMemo(function(){return{setProp:function(c,p){p?u.history.throttle(p).setProp(r,c):u.setProp(r,c)},setCustom:function(c,p){p?u.history.throttle(p).setCustom(r,c):u.setCustom(r,c)},setHidden:function(c){return u.setHidden(r,c)}}},[u,r]);return te(te({},a),{},{id:r,related:n,inNodeContext:!!e,actions:l,connectors:s})}var My=["id","related","actions","inNodeContext","connectors"];function oe(t){var e=ri(t),r=e.id,n=e.related,i=e.actions,u=e.inNodeContext,o=e.connectors;return te(te({},uo(e,My)),{},{actions:i,id:r,related:n,setProp:function(a,s){return lt("useNode().setProp()",{suggest:"useNode().actions.setProp()"}),i.setProp(a,s)},inNodeContext:u,connectors:o})}const $y=({render:t})=>{const{connectors:{connect:e,drag:r}}=oe();return typeof t.type=="string"?e(r(j.cloneElement(t))):t},By=()=>{const{type:t,props:e,nodes:r,hydrationTimestamp:n}=ri(i=>({type:i.data.type,props:i.data.props,nodes:i.data.nodes,hydrationTimestamp:i._hydrationTimestamp}));return j.useMemo(()=>{let i=e.children;r&&r.length>0&&(i=j.createElement(j.Fragment,null,r.map(o=>j.createElement(so,{id:o,key:o}))));const u=j.createElement(t,e,i);return typeof t=="string"?j.createElement($y,{render:u}):u},[t,e,n,r])},qy=({render:t})=>{const{hidden:e}=ri(n=>({hidden:n.data.hidden})),{onRender:r}=At(n=>({onRender:n.options.onRender}));return e?null:j.createElement(r,{render:t||j.createElement(By,null)})},so=({id:t,render:e})=>j.createElement(Ll,{id:t},j.createElement(qy,{render:e})),ru={is:"div",canvas:!1,custom:{},hidden:!1},Hy={is:"type",canvas:"isCanvas"};function ni({id:t,children:e,...r}){const{is:n}={...ru,...r},{query:i,actions:u}=At(),{id:o,inNodeContext:a}=ri(),[s]=j.useState(()=>{Z(!!t,sy);const l=i.node(o).get();if(a){const c=l.data.linkedNodes[t]?i.node(l.data.linkedNodes[t]).get():null;if(c&&c.data.type===n)return c.id;const p=j.createElement(ni,r,e),d=i.parseReactElement(p).toNodeTree();return u.history.ignore().addLinkedNodeFromTree(d,o,t),d.rootNodeId}return null});return s?j.createElement(so,{id:s}):null}const Fl=()=>lt("<Canvas />",{suggest:"<Element canvas={true} />"});function nu({...t}){return j.useEffect(()=>Fl(),[]),j.createElement(ni,{...t,canvas:!0})}const Fy=()=>{const{timestamp:t}=At(e=>({timestamp:e.nodes[Je]&&e.nodes[Je]._hydrationTimestamp}));return t?j.createElement(so,{id:Je,key:t}):null},zl=({children:t,json:e,data:r})=>{const{actions:n,query:i}=At();e&&lt("<Frame json={...} />",{suggest:"<Frame data={...} />"});const u=j.useRef(!1);if(!u.current){const o=r||e;if(o)n.history.ignore().deserialize(o);else if(t){const a=j.Children.only(t),s=i.parseReactElement(a).toNodeTree((l,c)=>(c===a&&(l.id=Je),l));n.history.ignore().addNodeTree(s)}u.current=!0}return j.createElement(Fy,null)};var Za;(function(t){t[t.Any=0]="Any",t[t.Id=1]="Id",t[t.Obj=2]="Obj"})(Za||(Za={}));const ki=t=>{const{addLinkedNodeFromTree:e,setDOM:r,setNodeEvent:n,replaceNodes:i,reset:u,...o}=t;return o};function lo(t){const{connectors:e,actions:r,query:n,store:i,...u}=At(t),o=ki(r);return{connectors:e,actions:j.useMemo(()=>({...o,history:{...o.history,ignore:(...a)=>ki(o.history.ignore(...a)),throttle:(...a)=>ki(o.history.throttle(...a))}}),[o]),query:n,store:i,...u}}var Ul=function(t){return Object.fromEntries?Object.fromEntries(t):t.reduce(function(e,r){var n=Ml(r,2),i=n[0],u=n[1];return te(te({},e),{},ae({},i,u))},{})},Xe=function(t,e,r){var n=Array.isArray(e)?e:[e],i=te({existOnly:!1,idOnly:!1},r||{}),u=n.filter(function(o){return!!o}).map(function(o){return typeof o=="string"?{node:t[o],exists:!!t[o]}:Qi(o)!=="object"||i.idOnly?{node:null,exists:!1}:{node:o,exists:!!t[o.id]}});return i.existOnly&&Z(u.filter(function(o){return!o.exists}).length===0,Tl),u},zy=["history"],_t=null,On=function(t,e){if(typeof e=="string")return e;var r,n=function(i,u){var o=function(a){if(_t&&_t.resolver===a)return _t.reversed;_t={resolver:a,reversed:new Map};for(var s=0,l=Object.entries(a);s<l.length;s++){var c=Ml(l[s],2);_t.reversed.set(c[1],c[0])}return _t.reversed}(i).get(u);return o!==void 0?o:null}(t,e);return Z(n,Cn.replace("%node_type%",(r=e).name||r.displayName)),n};const Uy=(t,e)=>typeof t=="string"?t:{resolvedName:On(e,t)},iu=(t,e)=>{let{type:r,isCanvas:n,props:i}=t;return i=Object.keys(i).reduce((u,o)=>{const a=i[o];return a==null||typeof a=="function"||(u[o]=o==="children"&&typeof a!="string"?j.Children.map(a,s=>typeof s=="string"?s:iu(s,e)):typeof a.type=="function"?iu(a,e):a),u},{}),{type:Uy(r,e),isCanvas:!!n,props:i}},Vy=(t,e)=>{const{type:r,props:n,isCanvas:i,name:u,...o}=t;return{...iu({type:r,isCanvas:i,props:n},e),...o}};function uu(t,e){Z(typeof e=="string",by);var r=t.nodes[e],n=function(i){return uu(t,i)};return{isCanvas:function(){return!!r.data.isCanvas},isRoot:function(){return r.id===Je},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 lt("query.node(id).isParentOfTopLevelCanvas",{suggest:"query.node(id).isParentOfTopLevelNodes"}),this.isParentOfTopLevelNodes()},isSelected:function(){return t.events.selected.has(e)},isHovered:function(){return t.events.hovered.has(e)},isDragged:function(){return t.events.dragged.has(e)},get:function(){return r},ancestors:function(){var i=arguments.length>0&&arguments[0]!==void 0&&arguments[0];return function u(o){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,l=t.nodes[o];return l?(a.push(o),l.data.parent&&(i||!i&&s===0)&&(a=u(l.data.parent,a,s+1)),a):a}(r.data.parent)},descendants:function(){var i=arguments.length>0&&arguments[0]!==void 0&&arguments[0],u=arguments.length>1?arguments[1]:void 0;return function o(a){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;return(i||!i&&l===0)&&t.nodes[a]&&(u!=="childNodes"&&n(a).linkedNodes().forEach(function(c){s.push(c),s=o(c,s,l+1)}),u!=="linkedNodes"&&n(a).childNodes().forEach(function(c){s.push(c),s=o(c,s,l+1)})),s}(e)},linkedNodes:function(){return Object.values(r.data.linkedNodes||{})},childNodes:function(){return r.data.nodes||[]},isDraggable:function(i){try{var u=r;return Z(!this.isTopLevelNode(),za),Z(uu(t,u.data.parent).isCanvas(),Fa),Z(u.rules.canDrag(u,n),hy),!0}catch(o){return i&&i(o),!1}},isDroppable:function(i,u){var o=Xe(t.nodes,i),a=r;try{Z(this.isCanvas(),fy),Z(a.rules.canMoveIn(o.map(function(l){return l.node}),a,n),cy);var s={};return o.forEach(function(l){var c=l.node,p=l.exists;if(Z(c.rules.canDrop(a,c,n),ly),p){Z(!n(c.id).isTopLevelNode(),za);var d=n(c.id).descendants(!0);Z(!d.includes(a.id)&&a.id!==c.id,py);var f=c.data.parent&&t.nodes[c.data.parent];Z(f.data.isCanvas,Fa),Z(f||!f&&!t.nodes[c.id],ay),f.id!==a.id&&(s[f.id]||(s[f.id]=[]),s[f.id].push(c))}}),Object.keys(s).forEach(function(l){var c=t.nodes[l];Z(c.rules.canMoveOut(s[l],c,n),dy)}),!0}catch(l){return u&&u(l),!1}},toSerializedNode:function(){return Vy(r.data,t.options.resolver)},toNodeTree:function(i){var u=[e].concat(Cr(this.descendants(!0,i))).reduce(function(o,a){return o[a]=n(a).get(),o},{});return{rootNodeId:e,nodes:u}},decendants:function(){var i=arguments.length>0&&arguments[0]!==void 0&&arguments[0];return lt("query.node(id).decendants",{suggest:"query.node(id).descendants"}),this.descendants(i)},isTopLevelCanvas:function(){return!this.isRoot()&&!r.data.parent}}}function Vl(t,e,r,n){for(var i={parent:t,index:0,where:"before"},u=0,o=0,a=0,s=0,l=0,c=0,p=0,d=e.length;p<d;p++){var f=e[p];if(c=f.top+f.outerHeight,s=f.left+f.outerWidth/2,l=f.top+f.outerHeight/2,!(o&&f.left>o||a&&l>=a||u&&f.left+f.outerWidth<u))if(i.index=p,f.inFlow){if(n<l){i.where="before";break}i.where="after"}else n<c&&(a=c),r<s?(o=s,i.where="before"):(u=s,i.where="after")}return i}var Jr=function(t){return typeof t=="string"?t:t.name};function Qa(t,e){var r=t.data.type,n={id:t.id||Pl(),_hydrationTimestamp:Date.now(),data:te({type:r,name:Jr(r),displayName:Jr(r),props:{},custom:{},parent:null,isCanvas:!1,hidden:!1,nodes:[],linkedNodes:{}},t.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===ni||n.data.type===nu){var i=te(te({},ru),n.data.props);n.data.props=Object.keys(n.data.props).reduce(function(a,s){return Object.keys(ru).includes(s)?n.data[Hy[s]||s]=i[s]:a[s]=n.data.props[s],a},{}),n.data.name=Jr(r=n.data.type),n.data.displayName=Jr(r),n.data.type===nu&&(n.data.isCanvas=!0,Fl())}e&&e(n);var u=r.craft;if(u){if(n.data.displayName=u.displayName||u.name||n.data.displayName,n.data.props=te(te({},u.props||u.defaultProps||{}),n.data.props),n.data.custom=te(te({},u.custom||{}),n.data.custom),u.isCanvas!=null&&(n.data.isCanvas=u.isCanvas),u.rules&&Object.keys(u.rules).forEach(function(a){["canDrag","canDrop","canMoveIn","canMoveOut"].includes(a)&&(n.rules[a]=u.rules[a])}),u.related){var o={id:n.id,related:!0};Object.keys(u.related).forEach(function(a){n.related[a]=function(s){return j.createElement(Ll,o,j.createElement(u.related[a],s))}})}u.info&&(n.info=u.info)}return n}const ou=(t,e,r)=>{let{type:n,props:i}=t;const u=((a,s)=>typeof a=="object"&&a.resolvedName?a.resolvedName==="Canvas"?nu:s[a.resolvedName]:typeof a=="string"?a:null)(n,e);if(!u)return;i=Object.keys(i).reduce((a,s)=>{const l=i[s];return a[s]=l==null?null:typeof l=="object"&&l.resolvedName?ou(l,e):s==="children"&&Array.isArray(l)?l.map(c=>typeof c=="string"?c:ou(c,e)):l,a},{});const o={...j.createElement(u,{...i})};return{...o,name:On(e,o.type)}},Wy=(t,e)=>{const{type:r,props:n,...i}=t;Z(r!==void 0&&typeof r=="string"||r!==void 0&&r.resolvedName!==void 0,yy.replace("%displayName%",t.displayName).replace("%availableComponents%",Object.keys(e).join(", ")));const{type:u,name:o,props:a}=ou(t,e),{parent:s,custom:l,displayName:c,isCanvas:p,nodes:d,hidden:f}=i;return{type:u,name:o,displayName:c||o,props:a,custom:l||{},isCanvas:!!p,hidden:!!f,parent:s,linkedNodes:i.linkedNodes||i._childCanvas||{},nodes:d||[]}},Gy=(t,e)=>{if(e.length<1)return{[t.id]:t};const r=e.map(({rootNodeId:i})=>i),n={...t,data:{...t.data,nodes:r}};return e.reduce((i,u)=>{const o=u.nodes[u.rootNodeId];return{...i,...u.nodes,[o.id]:{...o,data:{...o.data,parent:t.id}}}},{[t.id]:n})},Xy=(t,e)=>({rootNodeId:t.id,nodes:Gy(t,e)});function Wl(t){const e=t&&t.options,r=()=>Wl(t);return{getDropPlaceholder:(n,i,u,o=a=>t.nodes[a.id].dom)=>{const a=t.nodes[i],s=r().node(a.id).isCanvas()?a:t.nodes[a.data.parent];if(!s)return;const l=s.data.nodes||[],c=Vl(s,l?l.reduce((f,g)=>{const m=o(t.nodes[g]);if(m){const b={id:g,...Sr(m)};f.push(b)}return f},[]):[],u.x,u.y),p=l.length&&t.nodes[l[c.index]],d={placement:{...c,currentNode:p},error:null};return Xe(t.nodes,n).forEach(({node:f,exists:g})=>{g&&r().node(f.id).isDraggable(m=>d.error=m)}),r().node(s.id).isDroppable(n,f=>d.error=f),d},getOptions:()=>e,getNodes:()=>t.nodes,node:n=>uu(t,n),getSerializedNodes(){const n=Object.keys(t.nodes).map(i=>[i,this.node(i).toSerializedNode()]);return Ul(n)},getEvent:n=>function(i,u){var o=i.events[u];return{contains:function(a){return o.has(a)},isEmpty:function(){return this.all().length===0},first:function(){return this.all()[0]},last:function(){var a=this.all();return a[a.length-1]},all:function(){return Array.from(o)},size:function(){return this.all().length},at:function(a){return this.all()[a]},raw:function(){return o}}}(t,n),serialize(){return JSON.stringify(this.getSerializedNodes())},parseReactElement:n=>({toNodeTree(i){let u=function(a,s){let l=a;return typeof l=="string"&&(l=j.createElement(j.Fragment,{},l)),Qa({data:{type:l.type,props:{...l.props}}},c=>{s&&s(c,l)})}(n,(a,s)=>{const l=On(t.options.resolver,a.data.type);a.data.displayName=a.data.displayName||l,a.data.name=l,i&&i(a,s)}),o=[];return n.props&&n.props.children&&(o=j.Children.toArray(n.props.children).reduce((a,s)=>(j.isValidElement(s)&&a.push(r().parseReactElement(s).toNodeTree(i)),a),[])),Xy(u,o)}}),parseSerializedNode:n=>({toNode(i){const u=Wy(n,t.options.resolver);Z(u.type,Cn);const o=typeof i=="string"&&i;return o&&lt("query.parseSerializedNode(...).toNode(id)",{suggest:"query.parseSerializedNode(...).toNode(node => node.id = id)"}),r().parseFreshNode({...o?{id:o}:{},data:u}).toNode(!o&&i)}}),parseFreshNode:n=>({toNode:i=>Qa(n,u=>{u.data.parent===Cl&&(u.data.parent=Je);const o=On(t.options.resolver,u.data.type);Z(o!==null,Cn),u.data.displayName=u.data.displayName||o,u.data.name=o,i&&i(u)})}),createNode(n,i){lt(`query.createNode(${n})`,{suggest:`query.parseReactElement(${n}).toNodeTree()`});const u=this.parseReactElement(n).toNodeTree(),o=u.nodes[u.rootNodeId];return i&&(i.id&&(o.id=i.id),i.data&&(o.data={...o.data,...i.data})),o},getState:()=>t}}var Yy=function(t){io(r,kl);var e=oo(r);function r(){return ei(this,r),e.apply(this,arguments)}return ti(r,[{key:"handlers",value:function(){return{connect:function(n,i){},select:function(n,i){},hover:function(n,i){},drag:function(n,i){},drop:function(n,i){},create:function(n,i,u){}}}}]),r}();(function(t){io(r,Ny);var e=oo(r);function r(){return ei(this,r),e.apply(this,arguments)}return ti(r)})();var es=function(t){t.preventDefault()},au=function(){function t(e,r){ei(this,t),ae(this,"store",void 0),ae(this,"dragTarget",void 0),ae(this,"currentDropTargetId",void 0),ae(this,"currentDropTargetCanvasAncestorId",void 0),ae(this,"currentIndicator",null),ae(this,"currentTargetId",void 0),ae(this,"currentTargetChildDimensions",void 0),ae(this,"dragError",void 0),ae(this,"draggedNodes",void 0),ae(this,"onScrollListener",void 0),this.store=e,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",es,!1)}return ti(t,[{key:"cleanup",value:function(){window.removeEventListener("scroll",this.onScrollListener,!0),window.removeEventListener("dragover",es,!1)}},{key:"onScroll",value:function(e){var r=e.target,n=this.store.query.node(Je).get();r instanceof Element&&n&&n.dom&&r.contains(n.dom)&&(this.currentTargetChildDimensions=null)}},{key:"getDraggedNodes",value:function(){return Xe(this.store.query.getNodes(),this.dragTarget.type==="new"?this.dragTarget.tree.nodes[this.dragTarget.tree.rootNodeId]:this.dragTarget.nodes)}},{key:"validateDraggedNodes",value:function(){var e=this;this.dragTarget.type!=="new"&&this.draggedNodes.forEach(function(r){r.exists&&e.store.query.node(r.node.id).isDraggable(function(n){e.dragError=n})})}},{key:"isNearBorders",value:function(e,r,n){return e.top+t.BORDER_OFFSET>n||e.bottom-t.BORDER_OFFSET<n||e.left+t.BORDER_OFFSET>r||e.right-t.BORDER_OFFSET<r}},{key:"isDiff",value:function(e){return!this.currentIndicator||this.currentIndicator.placement.parent.id!==e.parent.id||this.currentIndicator.placement.index!==e.index||this.currentIndicator.placement.where!==e.where}},{key:"getChildDimensions",value:function(e){var r=this,n=this.currentTargetChildDimensions;return this.currentTargetId===e.id&&n?n:e.data.nodes.reduce(function(i,u){var o=r.store.query.node(u).get().dom;return o&&i.push(te({id:u},Sr(o))),i},[])}},{key:"getCanvasAncestor",value:function(e){var r=this;if(e===this.currentDropTargetId&&this.currentDropTargetCanvasAncestorId){var n=this.store.query.node(this.currentDropTargetCanvasAncestorId).get();if(n)return n}return function i(u){var o=r.store.query.node(u).get();return o&&o.data.isCanvas?o:o.data.parent?i(o.data.parent):null}(e)}},{key:"computeIndicator",value:function(e,r,n){var i=this.getCanvasAncestor(e);if(i&&(this.currentDropTargetId=e,this.currentDropTargetCanvasAncestorId=i.id,i.data.parent&&this.isNearBorders(Sr(i.dom),r,n)&&!this.store.query.node(i.id).isLinkedNode()&&(i=this.store.query.node(i.data.parent).get()),i)){this.currentTargetChildDimensions=this.getChildDimensions(i),this.currentTargetId=i.id;var u=Vl(i,this.currentTargetChildDimensions,r,n);if(this.isDiff(u)){var o=this.dragError;o||this.store.query.node(i.id).isDroppable(this.draggedNodes.map(function(l){return l.node}),function(l){o=l});var a=i.data.nodes[u.index],s=a&&this.store.query.node(a).get();return this.currentIndicator={placement:te(te({},u),{},{currentNode:s}),error:o},this.currentIndicator}}}},{key:"getIndicator",value:function(){return this.currentIndicator}}]),t}();ae(au,"BORDER_OFFSET",10);var ts=function(t,e){if(e.length===1||arguments.length>2&&arguments[2]!==void 0&&arguments[2]){var r=e[0].getBoundingClientRect(),n=r.width,i=r.height,u=e[0].cloneNode(!0);return u.style.position="absolute",u.style.left="-100%",u.style.top="-100%",u.style.width="".concat(n,"px"),u.style.height="".concat(i,"px"),u.style.pointerEvents="none",u.classList.add("drag-shadow"),document.body.appendChild(u),t.dataTransfer.setDragImage(u,0,0),u}var o=document.createElement("div");return o.style.position="absolute",o.style.left="-100%",o.style.top="-100%",o.style.width="100%",o.style.height="100%",o.style.pointerEvents="none",o.classList.add("drag-shadow-container"),e.forEach(function(a){var s=a.getBoundingClientRect(),l=s.width,c=s.height,p=s.top,d=s.left,f=a.cloneNode(!0);f.style.position="absolute",f.style.left="".concat(d,"px"),f.style.top="".concat(p,"px"),f.style.width="".concat(l,"px"),f.style.height="".concat(c,"px"),f.classList.add("drag-shadow"),o.appendChild(f)}),document.body.appendChild(o),t.dataTransfer.setDragImage(o,t.clientX,t.clientY),o},Gl=function(t){io(r,Yy);var e=oo(r);function r(){var n;ei(this,r);for(var i=arguments.length,u=new Array(i),o=0;o<i;o++)u[o]=arguments[o];return ae(gr(n=e.call.apply(e,[this].concat(u))),"draggedElementShadow",void 0),ae(gr(n),"dragTarget",void 0),ae(gr(n),"positioner",null),ae(gr(n),"currentSelectedElementIds",[]),n}return ti(r,[{key:"onDisable",value:function(){this.options.store.actions.clearEvents()}},{key:"handlers",value:function(){var n=this,i=this.options.store;return{connect:function(u,o){return i.actions.setDOM(o,u),n.reflect(function(a){a.select(u,o),a.hover(u,o),a.drop(u,o)})},select:function(u,o){var a=n.addCraftEventListener(u,"mousedown",function(l){l.craft.stopPropagation();var c=[];if(o){var p=i.query,d=p.getEvent("selected").all();(n.options.isMultiSelectEnabled(l)||d.includes(o))&&(c=d.filter(function(f){var g=p.node(f).descendants(!0),m=p.node(f).ancestors(!0);return!g.includes(o)&&!m.includes(o)})),c.includes(o)||c.push(o)}i.actions.setNodeEvent("selected",c)}),s=n.addCraftEventListener(u,"click",function(l){l.craft.stopPropagation();var c=i.query.getEvent("selected").all(),p=n.options.isMultiSelectEnabled(l),d=n.currentSelectedElementIds.includes(o),f=Cr(c);p&&d?(f.splice(f.indexOf(o),1),i.actions.setNodeEvent("selected",f)):!p&&c.length>1&&i.actions.setNodeEvent("selected",f=[o]),n.currentSelectedElementIds=f});return function(){a(),s()}},hover:function(u,o){var a=n.addCraftEventListener(u,"mouseover",function(l){l.craft.stopPropagation(),i.actions.setNodeEvent("hovered",o)}),s=null;return n.options.removeHoverOnMouseleave&&(s=n.addCraftEventListener(u,"mouseleave",function(l){l.craft.stopPropagation(),i.actions.setNodeEvent("hovered",null)})),function(){a(),s&&s()}},drop:function(u,o){var a=n.addCraftEventListener(u,"dragover",function(l){if(l.craft.stopPropagation(),l.preventDefault(),n.positioner){var c=n.positioner.computeIndicator(o,l.clientX,l.clientY);c&&i.actions.setIndicator(c)}}),s=n.addCraftEventListener(u,"dragenter",function(l){l.craft.stopPropagation(),l.preventDefault()});return function(){s(),a()}},drag:function(u,o){if(!i.query.node(o).isDraggable())return function(){};u.setAttribute("draggable","true");var a=n.addCraftEventListener(u,"dragstart",function(l){l.craft.stopPropagation();var c=i.query,p=i.actions,d=c.getEvent("selected").all(),f=n.options.isMultiSelectEnabled(l);n.currentSelectedElementIds.includes(o)||(d=f?[].concat(Cr(d),[o]):[o],i.actions.setNodeEvent("selected",d)),p.setNodeEvent("dragged",d);var g=d.map(function(m){return c.node(m).get().dom});n.draggedElementShadow=ts(l,g,r.forceSingleDragShadow),n.dragTarget={type:"existing",nodes:d},n.positioner=new au(n.options.store,n.dragTarget)}),s=n.addCraftEventListener(u,"dragend",function(l){l.craft.stopPropagation(),n.dropElement(function(c,p){c.type!=="new"&&i.actions.move(c.nodes,p.placement.parent.id,p.placement.index+(p.placement.where==="after"?1:0))})});return function(){u.setAttribute("draggable","false"),a(),s()}},create:function(u,o,a){u.setAttribute("draggable","true");var s=n.addCraftEventListener(u,"dragstart",function(c){var p;if(c.craft.stopPropagation(),typeof o=="function"){var d=o();p=j.isValidElement(d)?i.query.parseReactElement(d).toNodeTree():d}else p=i.query.parseReactElement(o).toNodeTree();n.draggedElementShadow=ts(c,[c.currentTarget],r.forceSingleDragShadow),n.dragTarget={type:"new",tree:p},n.positioner=new au(n.options.store,n.dragTarget)}),l=n.addCraftEventListener(u,"dragend",function(c){c.craft.stopPropagation(),n.dropElement(function(p,d){p.type!=="existing"&&(i.actions.addNodeTree(p.tree,d.placement.parent.id,d.placement.index+(d.placement.where==="after"?1:0)),a&&Ip(a.onCreate)&&a.onCreate(p.tree))})});return function(){u.removeAttribute("draggable"),s(),l()}}}}},{key:"dropElement",value:function(n){var i=this.options.store;if(this.positioner){var u=this.draggedElementShadow,o=this.positioner.getIndicator();this.dragTarget&&o&&!o.error&&n(this.dragTarget,o),u&&(u.parentNode.removeChild(u),this.draggedElementShadow=null),this.dragTarget=null,i.actions.setIndicator(null),i.actions.setNodeEvent("dragged",null),this.positioner.cleanup(),this.positioner=null}}}]),r}();function Jy(t,e,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:2,i=0,u=0,o=0,a=0,s=t.where;return r?r.inFlow?(o=r.outerWidth,a=n,i=s==="before"?r.top:r.bottom,u=r.left):(o=n,a=r.outerHeight,i=r.top,u=s==="before"?r.left:r.left+r.outerWidth):e&&(i=e.top+e.padding.top,u=e.left+e.padding.left,o=e.outerWidth-e.padding.right-e.padding.left-e.margin.left-e.margin.right,a=n),{top:"".concat(i,"px"),left:"".concat(u,"px"),width:"".concat(o,"px"),height:"".concat(a,"px")}}ae(Gl,"forceSingleDragShadow",Ry()&&ky());const Ky=()=>{const{indicator:t,indicatorOptions:e,enabled:r}=At(i=>({indicator:i.indicator,indicatorOptions:i.options.indicator,enabled:i.options.enabled})),n=Hl();return j.useEffect(()=>{n&&(r?n.enable():n.disable())},[r,n]),t?j.createElement(Py,{className:e.className,style:{...Jy(t.placement,Sr(t.placement.parent.dom),t.placement.currentNode&&Sr(t.placement.currentNode.dom),e.thickness),backgroundColor:t.error?e.error:e.success,transition:e.transition||"0.2s ease-in",...e.style??{}},parentDom:t.placement.parent.dom}):null},Zy=({children:t})=>{const e=j.useContext(ao),r=j.useMemo(()=>e.query.getOptions().handlers(e),[e]);return r?j.createElement(ql.Provider,{value:r},j.createElement(Ky,null),t):null},rs={nodes:{},events:{dragged:new Set,selected:new Set,hovered:new Set},indicator:null,options:{onNodesChange:()=>null,onRender:({render:t})=>t,onBeforeMoveEnd:()=>null,resolver:{},enabled:!0,indicator:{error:"red",success:"rgb(98, 196, 98)"},handlers:t=>new Gl({store:t,removeHoverOnMouseleave:!1,isMultiSelectEnabled:e=>!!e.metaKey}),normalizeNodes:()=>{}}},Qy={methods:function(t,e){return te(te({},function(r,n){var i=function(a,s,l){if(function d(f,g){var m=a.nodes[f];typeof m.data.type!="string"&&Z(r.options.resolver[m.data.name],Cn.replace("%node_type%","".concat(m.data.type.name))),r.nodes[f]=te(te({},m),{},{data:te(te({},m.data),{},{parent:g})}),m.data.nodes.length>0&&(delete r.nodes[f].data.props.children,m.data.nodes.forEach(function(b){return d(b,m.id)})),Object.values(m.data.linkedNodes).forEach(function(b){return d(b,m.id)})}(a.rootNodeId,s),s||a.rootNodeId!==Je){var c=u(s);if(l.type!=="child")c.data.linkedNodes[l.id]=a.rootNodeId;else{var p=l.index;p!=null?c.data.nodes.splice(p,0,a.rootNodeId):c.data.nodes.push(a.rootNodeId)}}},u=function(a){Z(a,oy);var s=r.nodes[a];return Z(s,Tl),s},o=function a(s){var l=r.nodes[s],c=r.nodes[l.data.parent];if(l.data.nodes&&Cr(l.data.nodes).forEach(function(f){return a(f)}),l.data.linkedNodes&&Object.values(l.data.linkedNodes).map(function(f){return a(f)}),c.data.nodes.includes(s)){var p=c.data.nodes;p.splice(p.indexOf(s),1)}else{var d=Object.keys(c.data.linkedNodes).find(function(f){return c.data.linkedNodes[f]===f});d&&delete c.data.linkedNodes[d]}(function(f,g){Object.keys(f.events).forEach(function(m){var b=f.events[m];b&&b.has&&b.has(g)&&(f.events[m]=new Set(Array.from(b).filter(function(y){return g!==y})))})})(r,s),delete r.nodes[s]};return{addLinkedNodeFromTree:function(a,s,l){var c=u(s).data.linkedNodes[l];c&&o(c),i(a,s,{type:"linked",id:l})},add:function(a,s,l){var c=[a];Array.isArray(a)&&(lt("actions.add(node: Node[])",{suggest:"actions.add(node: Node)"}),c=a),c.forEach(function(p){i({nodes:ae({},p.id,p),rootNodeId:p.id},s,{type:"child",index:l})})},addNodeTree:function(a,s,l){i(a,s,{type:"child",index:l})},delete:function(a){Xe(r.nodes,a,{existOnly:!0,idOnly:!0}).forEach(function(s){var l=s.node;Z(!n.node(l.id).isTopLevelNode(),gy),o(l.id)})},deserialize:function(a){var s=typeof a=="string"?JSON.parse(a):a,l=Object.keys(s).map(function(c){var p=c;return c===Cl&&(p=Je),[p,n.parseSerializedNode(s[c]).toNode(function(d){return d.id=p})]});this.replaceNodes(Ul(l))},move:function(a,s,l){var c=Xe(r.nodes,a,{existOnly:!0}),p=r.nodes[s],d=new Set;c.forEach(function(f,g){var m=f.node,b=m.id,y=m.data.parent;n.node(s).isDroppable([b],function(S){throw new Error(S)}),r.options.onBeforeMoveEnd(m,p,r.nodes[y]);var v=r.nodes[y].data.nodes;d.add(v);var C=v.indexOf(b);v[C]="$$",p.data.nodes.splice(l+g,0,b),r.nodes[b].data.parent=s}),d.forEach(function(f){var g=f.length;Cr(f).reverse().forEach(function(m,b){m==="$$"&&f.splice(g-1-b,1)})})},replaceNodes:function(a){this.clearEvents(),r.nodes=a},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(a){a(r.options)},setNodeEvent:function(a,s){if(r.events[a].forEach(function(p){r.nodes[p]&&(r.nodes[p].events[a]=!1)}),r.events[a]=new Set,s){var l=Xe(r.nodes,s,{idOnly:!0,existOnly:!0}),c=new Set(l.map(function(p){return p.node.id}));c.forEach(function(p){r.nodes[p].events[a]=!0}),r.events[a]=c}},setCustom:function(a,s){Xe(r.nodes,a,{idOnly:!0,existOnly:!0}).forEach(function(l){return s(r.nodes[l.node.id].data.custom)})},setDOM:function(a,s){r.nodes[a]&&(r.nodes[a].dom=s)},setIndicator:function(a){a&&(!a.placement.parent.dom||a.placement.currentNode&&!a.placement.currentNode.dom)||(r.indicator=a)},setHidden:function(a,s){r.nodes[a].data.hidden=s},setProp:function(a,s){Xe(r.nodes,a,{idOnly:!0,existOnly:!0}).forEach(function(l){return s(r.nodes[l.node.id].data.props)})},selectNode:function(a){if(a){var s=Xe(r.nodes,a,{idOnly:!0,existOnly:!0});this.setNodeEvent("selected",s.map(function(l){return l.node.id}))}else this.setNodeEvent("selected",null);this.setNodeEvent("hovered",null)}}}(t,e)),{},{setState:function(r){var n=uo(this,zy);r(t,n)}})},ignoreHistoryForActions:["setDOM","setNodeEvent","selectNode","clearEvents","setOptions","setIndicator"],normalizeHistory:t=>{Object.keys(t.events).forEach(e=>{Array.from(t.events[e]||[]).forEach(r=>{t.nodes[r]||t.events[e].delete(r)})}),Object.keys(t.nodes).forEach(e=>{const r=t.nodes[e];Object.keys(r.events).forEach(n=>{r.events[n]&&t.events[n]&&!t.events[n].has(r.id)&&(r.events[n]=!1)})})}},ev=(t,e)=>Sy(Qy,{...rs,options:{...rs.options,...t}},Wl,e),Xl=({children:t,...e})=>{e.resolver!==void 0&&Z(typeof e.resolver=="object"&&!Array.isArray(e.resolver)&&e.resolver!==null,my);const r=x.useRef(e),n=ev(r.current,(i,u,o,a,s)=>{if(!o)return;const{patches:l,...c}=o;for(let p=0;p<l.length;p++){const{path:d}=l[p],f=d.length>2&&d[0]==="nodes"&&d[2]==="data";if([ue.IGNORE,ue.THROTTLE].includes(c.type)&&c.params&&(c.type=c.params[0]),["setState","deserialize"].includes(c.type)||f){s(g=>{i.options.normalizeNodes&&i.options.normalizeNodes(g,u,c,a)});break}}});return x.useEffect(()=>{n&&e.enabled!==void 0&&n.query.getOptions().enabled!==e.enabled&&n.actions.setOptions(i=>{i.enabled=e.enabled})},[n,e.enabled]),x.useEffect(()=>{n.subscribe(i=>({json:n.query.serialize()}),()=>{n.query.getOptions().onNodesChange(n.query)})},[n]),n?x.createElement(ao.Provider,{value:n},x.createElement(Zy,null,t)):null},Yl=j.createContext("desktop"),Jl=({value:t,children:e})=>h.jsx(Yl.Provider,{value:t,children:e}),Ot=()=>j.useContext(Yl),Se=["mobile","tablet","small","desktop"],Ye=(t,e,r)=>{if(typeof t!="object"||t===null)return t??r;if("top"in t||"right"in t)return t;const n=Se.indexOf(e);for(let i=n;i<Se.length;i++){const u=Se[i];if(t[u]!==void 0&&t[u]!==null)return t[u]}for(let i=n-1;i>=0;i--){const u=Se[i];if(t[u]!==void 0&&t[u]!==null)return t[u]}return r};function Ee(t,e,{checkForDefaultPrevented:r=!0}={}){return function(i){if(t==null||t(i),r===!1||!i.defaultPrevented)return e==null?void 0:e(i)}}function ii(t,e=[]){let r=[];function n(u,o){const a=x.createContext(o),s=r.length;r=[...r,o];const l=p=>{var y;const{scope:d,children:f,...g}=p,m=((y=d==null?void 0:d[t])==null?void 0:y[s])||a,b=x.useMemo(()=>g,Object.values(g));return h.jsx(m.Provider,{value:b,children:f})};l.displayName=u+"Provider";function c(p,d){var m;const f=((m=d==null?void 0:d[t])==null?void 0:m[s])||a,g=x.useContext(f);if(g)return g;if(o!==void 0)return o;throw new Error(`\`${p}\` must be used within \`${u}\``)}return[l,c]}const i=()=>{const u=r.map(o=>x.createContext(o));return function(a){const s=(a==null?void 0:a[t])||u;return x.useMemo(()=>({[`__scope${t}`]:{...a,[t]:s}}),[a,s])}};return i.scopeName=t,[n,tv(i,...e)]}function tv(...t){const e=t[0];if(t.length===1)return e;const r=()=>{const n=t.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(u){const o=n.reduce((a,{useScope:s,scopeName:l})=>{const p=s(u)[`__scope${l}`];return{...a,...p}},{});return x.useMemo(()=>({[`__scope${e.scopeName}`]:o}),[o])}};return r.scopeName=e.scopeName,r}function rv(t){const e=nv(t),r=x.forwardRef((n,i)=>{const{children:u,...o}=n,a=x.Children.toArray(u),s=a.find(uv);if(s){const l=s.props.children,c=a.map(p=>p===s?x.Children.count(l)>1?x.Children.only(null):x.isValidElement(l)?l.props.children:null:p);return h.jsx(e,{...o,ref:i,children:x.isValidElement(l)?x.cloneElement(l,void 0,c):null})}return h.jsx(e,{...o,ref:i,children:u})});return r.displayName=`${t}.Slot`,r}function nv(t){const e=x.forwardRef((r,n)=>{const{children:i,...u}=r;if(x.isValidElement(i)){const o=av(i),a=ov(u,i.props);return i.type!==x.Fragment&&(a.ref=n?zn(n,o):o),x.cloneElement(i,a)}return x.Children.count(i)>1?x.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var iv=Symbol("radix.slottable");function uv(t){return x.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===iv}function ov(t,e){const r={...e};for(const n in e){const i=t[n],u=e[n];/^on[A-Z]/.test(n)?i&&u?r[n]=(...a)=>{const s=u(...a);return i(...a),s}:i&&(r[n]=i):n==="style"?r[n]={...i,...u}:n==="className"&&(r[n]=[i,u].filter(Boolean).join(" "))}return{...t,...r}}function av(t){var n,i;let e=(n=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:n.get,r=e&&"isReactWarning"in e&&e.isReactWarning;return r?t.ref:(e=(i=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:i.get,r=e&&"isReactWarning"in e&&e.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}var sv=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ne=sv.reduce((t,e)=>{const r=rv(`Primitive.${e}`),n=x.forwardRef((i,u)=>{const{asChild:o,...a}=i,s=o?r:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),h.jsx(s,{...a,ref:u})});return n.displayName=`Primitive.${e}`,{...t,[e]:n}},{});function lv(t,e){t&&Ys.flushSync(()=>t.dispatchEvent(e))}function Mr(t){const e=x.useRef(t);return x.useEffect(()=>{e.current=t}),x.useMemo(()=>(...r)=>{var n;return(n=e.current)==null?void 0:n.call(e,...r)},[])}function cv(t,e=globalThis==null?void 0:globalThis.document){const r=Mr(t);x.useEffect(()=>{const n=i=>{i.key==="Escape"&&r(i)};return e.addEventListener("keydown",n,{capture:!0}),()=>e.removeEventListener("keydown",n,{capture:!0})},[r,e])}var dv="DismissableLayer",su="dismissableLayer.update",fv="dismissableLayer.pointerDownOutside",pv="dismissableLayer.focusOutside",ns,Kl=x.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Zl=x.forwardRef((t,e)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:i,onFocusOutside:u,onInteractOutside:o,onDismiss:a,...s}=t,l=x.useContext(Kl),[c,p]=x.useState(null),d=(c==null?void 0:c.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,f]=x.useState({}),g=Be(e,R=>p(R)),m=Array.from(l.layers),[b]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),y=m.indexOf(b),v=c?m.indexOf(c):-1,C=l.layersWithOutsidePointerEventsDisabled.size>0,S=v>=y,O=gv(R=>{const D=R.target,$=[...l.branches].some(L=>L.contains(D));!S||$||(i==null||i(R),o==null||o(R),R.defaultPrevented||a==null||a())},d),k=mv(R=>{const D=R.target;[...l.branches].some(L=>L.contains(D))||(u==null||u(R),o==null||o(R),R.defaultPrevented||a==null||a())},d);return cv(R=>{v===l.layers.size-1&&(n==null||n(R),!R.defaultPrevented&&a&&(R.preventDefault(),a()))},d),x.useEffect(()=>{if(c)return r&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(ns=d.body.style.pointerEvents,d.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(c)),l.layers.add(c),is(),()=>{r&&l.layersWithOutsidePointerEventsDisabled.size===1&&(d.body.style.pointerEvents=ns)}},[c,d,r,l]),x.useEffect(()=>()=>{c&&(l.layers.delete(c),l.layersWithOutsidePointerEventsDisabled.delete(c),is())},[c,l]),x.useEffect(()=>{const R=()=>f({});return document.addEventListener(su,R),()=>document.removeEventListener(su,R)},[]),h.jsx(Ne.div,{...s,ref:g,style:{pointerEvents:C?S?"auto":"none":void 0,...t.style},onFocusCapture:Ee(t.onFocusCapture,k.onFocusCapture),onBlurCapture:Ee(t.onBlurCapture,k.onBlurCapture),onPointerDownCapture:Ee(t.onPointerDownCapture,O.onPointerDownCapture)})});Zl.displayName=dv;var hv="DismissableLayerBranch",bv=x.forwardRef((t,e)=>{const r=x.useContext(Kl),n=x.useRef(null),i=Be(e,n);return x.useEffect(()=>{const u=n.current;if(u)return r.branches.add(u),()=>{r.branches.delete(u)}},[r.branches]),h.jsx(Ne.div,{...t,ref:i})});bv.displayName=hv;function gv(t,e=globalThis==null?void 0:globalThis.document){const r=Mr(t),n=x.useRef(!1),i=x.useRef(()=>{});return x.useEffect(()=>{const u=a=>{if(a.target&&!n.current){let s=function(){Ql(fv,r,l,{discrete:!0})};const l={originalEvent:a};a.pointerType==="touch"?(e.removeEventListener("click",i.current),i.current=s,e.addEventListener("click",i.current,{once:!0})):s()}else e.removeEventListener("click",i.current);n.current=!1},o=window.setTimeout(()=>{e.addEventListener("pointerdown",u)},0);return()=>{window.clearTimeout(o),e.removeEventListener("pointerdown",u),e.removeEventListener("click",i.current)}},[e,r]),{onPointerDownCapture:()=>n.current=!0}}function mv(t,e=globalThis==null?void 0:globalThis.document){const r=Mr(t),n=x.useRef(!1);return x.useEffect(()=>{const i=u=>{u.target&&!n.current&&Ql(pv,r,{originalEvent:u},{discrete:!1})};return e.addEventListener("focusin",i),()=>e.removeEventListener("focusin",i)},[e,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function is(){const t=new CustomEvent(su);document.dispatchEvent(t)}function Ql(t,e,r,{discrete:n}){const i=r.originalEvent.target,u=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:r});e&&i.addEventListener(t,e,{once:!0}),n?lv(i,u):i.dispatchEvent(u)}var ct=globalThis!=null&&globalThis.document?x.useLayoutEffect:()=>{},yv=x[" useId ".trim().toString()]||(()=>{}),vv=0;function ec(t){const[e,r]=x.useState(yv());return ct(()=>{r(n=>n??String(vv++))},[t]),e?`radix-${e}`:""}const xv=["top","right","bottom","left"],dt=Math.min,me=Math.max,Nn=Math.round,Kr=Math.floor,Ie=t=>({x:t,y:t}),wv={left:"right",right:"left",bottom:"top",top:"bottom"},Ev={start:"end",end:"start"};function lu(t,e,r){return me(t,dt(e,r))}function Ze(t,e){return typeof t=="function"?t(e):t}function Qe(t){return t.split("-")[0]}function ir(t){return t.split("-")[1]}function co(t){return t==="x"?"y":"x"}function fo(t){return t==="y"?"height":"width"}const Sv=new Set(["top","bottom"]);function ke(t){return Sv.has(Qe(t))?"y":"x"}function po(t){return co(ke(t))}function Cv(t,e,r){r===void 0&&(r=!1);const n=ir(t),i=po(t),u=fo(i);let o=i==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[u]>e.floating[u]&&(o=jn(o)),[o,jn(o)]}function Tv(t){const e=jn(t);return[cu(t),e,cu(e)]}function cu(t){return t.replace(/start|end/g,e=>Ev[e])}const us=["left","right"],os=["right","left"],Av=["top","bottom"],Ov=["bottom","top"];function Nv(t,e,r){switch(t){case"top":case"bottom":return r?e?os:us:e?us:os;case"left":case"right":return e?Av:Ov;default:return[]}}function jv(t,e,r,n){const i=ir(t);let u=Nv(Qe(t),r==="start",n);return i&&(u=u.map(o=>o+"-"+i),e&&(u=u.concat(u.map(cu)))),u}function jn(t){return t.replace(/left|right|bottom|top/g,e=>wv[e])}function _v(t){return{top:0,right:0,bottom:0,left:0,...t}}function tc(t){return typeof t!="number"?_v(t):{top:t,right:t,bottom:t,left:t}}function _n(t){const{x:e,y:r,width:n,height:i}=t;return{width:n,height:i,top:r,left:e,right:e+n,bottom:r+i,x:e,y:r}}function as(t,e,r){let{reference:n,floating:i}=t;const u=ke(e),o=po(e),a=fo(o),s=Qe(e),l=u==="y",c=n.x+n.width/2-i.width/2,p=n.y+n.height/2-i.height/2,d=n[a]/2-i[a]/2;let f;switch(s){case"top":f={x:c,y:n.y-i.height};break;case"bottom":f={x:c,y:n.y+n.height};break;case"right":f={x:n.x+n.width,y:p};break;case"left":f={x:n.x-i.width,y:p};break;default:f={x:n.x,y:n.y}}switch(ir(e)){case"start":f[o]-=d*(r&&l?-1:1);break;case"end":f[o]+=d*(r&&l?-1:1);break}return f}const Pv=async(t,e,r)=>{const{placement:n="bottom",strategy:i="absolute",middleware:u=[],platform:o}=r,a=u.filter(Boolean),s=await(o.isRTL==null?void 0:o.isRTL(e));let l=await o.getElementRects({reference:t,floating:e,strategy:i}),{x:c,y:p}=as(l,n,s),d=n,f={},g=0;for(let m=0;m<a.length;m++){const{name:b,fn:y}=a[m],{x:v,y:C,data:S,reset:O}=await y({x:c,y:p,initialPlacement:n,placement:d,strategy:i,middlewareData:f,rects:l,platform:o,elements:{reference:t,floating:e}});c=v??c,p=C??p,f={...f,[b]:{...f[b],...S}},O&&g<=50&&(g++,typeof O=="object"&&(O.placement&&(d=O.placement),O.rects&&(l=O.rects===!0?await o.getElementRects({reference:t,floating:e,strategy:i}):O.rects),{x:c,y:p}=as(l,d,s)),m=-1)}return{x:c,y:p,placement:d,strategy:i,middlewareData:f}};async function Tr(t,e){var r;e===void 0&&(e={});const{x:n,y:i,platform:u,rects:o,elements:a,strategy:s}=t,{boundary:l="clippingAncestors",rootBoundary:c="viewport",elementContext:p="floating",altBoundary:d=!1,padding:f=0}=Ze(e,t),g=tc(f),b=a[d?p==="floating"?"reference":"floating":p],y=_n(await u.getClippingRect({element:(r=await(u.isElement==null?void 0:u.isElement(b)))==null||r?b:b.contextElement||await(u.getDocumentElement==null?void 0:u.getDocumentElement(a.floating)),boundary:l,rootBoundary:c,strategy:s})),v=p==="floating"?{x:n,y:i,width:o.floating.width,height:o.floating.height}:o.reference,C=await(u.getOffsetParent==null?void 0:u.getOffsetParent(a.floating)),S=await(u.isElement==null?void 0:u.isElement(C))?await(u.getScale==null?void 0:u.getScale(C))||{x:1,y:1}:{x:1,y:1},O=_n(u.convertOffsetParentRelativeRectToViewportRelativeRect?await u.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:v,offsetParent:C,strategy:s}):v);return{top:(y.top-O.top+g.top)/S.y,bottom:(O.bottom-y.bottom+g.bottom)/S.y,left:(y.left-O.left+g.left)/S.x,right:(O.right-y.right+g.right)/S.x}}const kv=t=>({name:"arrow",options:t,async fn(e){const{x:r,y:n,placement:i,rects:u,platform:o,elements:a,middlewareData:s}=e,{element:l,padding:c=0}=Ze(t,e)||{};if(l==null)return{};const p=tc(c),d={x:r,y:n},f=po(i),g=fo(f),m=await o.getDimensions(l),b=f==="y",y=b?"top":"left",v=b?"bottom":"right",C=b?"clientHeight":"clientWidth",S=u.reference[g]+u.reference[f]-d[f]-u.floating[g],O=d[f]-u.reference[f],k=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l));let R=k?k[C]:0;(!R||!await(o.isElement==null?void 0:o.isElement(k)))&&(R=a.floating[C]||u.floating[g]);const D=S/2-O/2,$=R/2-m[g]/2-1,L=dt(p[y],$),E=dt(p[v],$),T=L,_=R-m[g]-E,I=R/2-m[g]/2+D,w=lu(T,I,_),N=!s.arrow&&ir(i)!=null&&I!==w&&u.reference[g]/2-(I<T?L:E)-m[g]/2<0,A=N?I<T?I-T:I-_:0;return{[f]:d[f]+A,data:{[f]:w,centerOffset:I-w-A,...N&&{alignmentOffset:A}},reset:N}}}),Rv=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var r,n;const{placement:i,middlewareData:u,rects:o,initialPlacement:a,platform:s,elements:l}=e,{mainAxis:c=!0,crossAxis:p=!0,fallbackPlacements:d,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:m=!0,...b}=Ze(t,e);if((r=u.arrow)!=null&&r.alignmentOffset)return{};const y=Qe(i),v=ke(a),C=Qe(a)===a,S=await(s.isRTL==null?void 0:s.isRTL(l.floating)),O=d||(C||!m?[jn(a)]:Tv(a)),k=g!=="none";!d&&k&&O.push(...jv(a,m,g,S));const R=[a,...O],D=await Tr(e,b),$=[];let L=((n=u.flip)==null?void 0:n.overflows)||[];if(c&&$.push(D[y]),p){const I=Cv(i,o,S);$.push(D[I[0]],D[I[1]])}if(L=[...L,{placement:i,overflows:$}],!$.every(I=>I<=0)){var E,T;const I=(((E=u.flip)==null?void 0:E.index)||0)+1,w=R[I];if(w&&(!(p==="alignment"?v!==ke(w):!1)||L.every(P=>ke(P.placement)===v?P.overflows[0]>0:!0)))return{data:{index:I,overflows:L},reset:{placement:w}};let N=(T=L.filter(A=>A.overflows[0]<=0).sort((A,P)=>A.overflows[1]-P.overflows[1])[0])==null?void 0:T.placement;if(!N)switch(f){case"bestFit":{var _;const A=(_=L.filter(P=>{if(k){const B=ke(P.placement);return B===v||B==="y"}return!0}).map(P=>[P.placement,P.overflows.filter(B=>B>0).reduce((B,U)=>B+U,0)]).sort((P,B)=>P[1]-B[1])[0])==null?void 0:_[0];A&&(N=A);break}case"initialPlacement":N=a;break}if(i!==N)return{reset:{placement:N}}}return{}}}};function ss(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function ls(t){return xv.some(e=>t[e]>=0)}const Iv=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:r}=e,{strategy:n="referenceHidden",...i}=Ze(t,e);switch(n){case"referenceHidden":{const u=await Tr(e,{...i,elementContext:"reference"}),o=ss(u,r.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:ls(o)}}}case"escaped":{const u=await Tr(e,{...i,altBoundary:!0}),o=ss(u,r.floating);return{data:{escapedOffsets:o,escaped:ls(o)}}}default:return{}}}}},rc=new Set(["left","top"]);async function Dv(t,e){const{placement:r,platform:n,elements:i}=t,u=await(n.isRTL==null?void 0:n.isRTL(i.floating)),o=Qe(r),a=ir(r),s=ke(r)==="y",l=rc.has(o)?-1:1,c=u&&s?-1:1,p=Ze(e,t);let{mainAxis:d,crossAxis:f,alignmentAxis:g}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return a&&typeof g=="number"&&(f=a==="end"?g*-1:g),s?{x:f*c,y:d*l}:{x:d*l,y:f*c}}const Lv=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var r,n;const{x:i,y:u,placement:o,middlewareData:a}=e,s=await Dv(e,t);return o===((r=a.offset)==null?void 0:r.placement)&&(n=a.arrow)!=null&&n.alignmentOffset?{}:{x:i+s.x,y:u+s.y,data:{...s,placement:o}}}}},Mv=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:r,y:n,placement:i}=e,{mainAxis:u=!0,crossAxis:o=!1,limiter:a={fn:b=>{let{x:y,y:v}=b;return{x:y,y:v}}},...s}=Ze(t,e),l={x:r,y:n},c=await Tr(e,s),p=ke(Qe(i)),d=co(p);let f=l[d],g=l[p];if(u){const b=d==="y"?"top":"left",y=d==="y"?"bottom":"right",v=f+c[b],C=f-c[y];f=lu(v,f,C)}if(o){const b=p==="y"?"top":"left",y=p==="y"?"bottom":"right",v=g+c[b],C=g-c[y];g=lu(v,g,C)}const m=a.fn({...e,[d]:f,[p]:g});return{...m,data:{x:m.x-r,y:m.y-n,enabled:{[d]:u,[p]:o}}}}}},$v=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:r,y:n,placement:i,rects:u,middlewareData:o}=e,{offset:a=0,mainAxis:s=!0,crossAxis:l=!0}=Ze(t,e),c={x:r,y:n},p=ke(i),d=co(p);let f=c[d],g=c[p];const m=Ze(a,e),b=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(s){const C=d==="y"?"height":"width",S=u.reference[d]-u.floating[C]+b.mainAxis,O=u.reference[d]+u.reference[C]-b.mainAxis;f<S?f=S:f>O&&(f=O)}if(l){var y,v;const C=d==="y"?"width":"height",S=rc.has(Qe(i)),O=u.reference[p]-u.floating[C]+(S&&((y=o.offset)==null?void 0:y[p])||0)+(S?0:b.crossAxis),k=u.reference[p]+u.reference[C]+(S?0:((v=o.offset)==null?void 0:v[p])||0)-(S?b.crossAxis:0);g<O?g=O:g>k&&(g=k)}return{[d]:f,[p]:g}}}},Bv=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var r,n;const{placement:i,rects:u,platform:o,elements:a}=e,{apply:s=()=>{},...l}=Ze(t,e),c=await Tr(e,l),p=Qe(i),d=ir(i),f=ke(i)==="y",{width:g,height:m}=u.floating;let b,y;p==="top"||p==="bottom"?(b=p,y=d===(await(o.isRTL==null?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(y=p,b=d==="end"?"top":"bottom");const v=m-c.top-c.bottom,C=g-c.left-c.right,S=dt(m-c[b],v),O=dt(g-c[y],C),k=!e.middlewareData.shift;let R=S,D=O;if((r=e.middlewareData.shift)!=null&&r.enabled.x&&(D=C),(n=e.middlewareData.shift)!=null&&n.enabled.y&&(R=v),k&&!d){const L=me(c.left,0),E=me(c.right,0),T=me(c.top,0),_=me(c.bottom,0);f?D=g-2*(L!==0||E!==0?L+E:me(c.left,c.right)):R=m-2*(T!==0||_!==0?T+_:me(c.top,c.bottom))}await s({...e,availableWidth:D,availableHeight:R});const $=await o.getDimensions(a.floating);return g!==$.width||m!==$.height?{reset:{rects:!0}}:{}}}};function ui(){return typeof window<"u"}function ur(t){return nc(t)?(t.nodeName||"").toLowerCase():"#document"}function ye(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function He(t){var e;return(e=(nc(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function nc(t){return ui()?t instanceof Node||t instanceof ye(t).Node:!1}function Te(t){return ui()?t instanceof Element||t instanceof ye(t).Element:!1}function $e(t){return ui()?t instanceof HTMLElement||t instanceof ye(t).HTMLElement:!1}function cs(t){return!ui()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof ye(t).ShadowRoot}const qv=new Set(["inline","contents"]);function $r(t){const{overflow:e,overflowX:r,overflowY:n,display:i}=Ae(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+r)&&!qv.has(i)}const Hv=new Set(["table","td","th"]);function Fv(t){return Hv.has(ur(t))}const zv=[":popover-open",":modal"];function oi(t){return zv.some(e=>{try{return t.matches(e)}catch{return!1}})}const Uv=["transform","translate","scale","rotate","perspective"],Vv=["transform","translate","scale","rotate","perspective","filter"],Wv=["paint","layout","strict","content"];function ho(t){const e=bo(),r=Te(t)?Ae(t):t;return Uv.some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!e&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!e&&(r.filter?r.filter!=="none":!1)||Vv.some(n=>(r.willChange||"").includes(n))||Wv.some(n=>(r.contain||"").includes(n))}function Gv(t){let e=ft(t);for(;$e(e)&&!qt(e);){if(ho(e))return e;if(oi(e))return null;e=ft(e)}return null}function bo(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Xv=new Set(["html","body","#document"]);function qt(t){return Xv.has(ur(t))}function Ae(t){return ye(t).getComputedStyle(t)}function ai(t){return Te(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function ft(t){if(ur(t)==="html")return t;const e=t.assignedSlot||t.parentNode||cs(t)&&t.host||He(t);return cs(e)?e.host:e}function ic(t){const e=ft(t);return qt(e)?t.ownerDocument?t.ownerDocument.body:t.body:$e(e)&&$r(e)?e:ic(e)}function Ar(t,e,r){var n;e===void 0&&(e=[]),r===void 0&&(r=!0);const i=ic(t),u=i===((n=t.ownerDocument)==null?void 0:n.body),o=ye(i);if(u){const a=du(o);return e.concat(o,o.visualViewport||[],$r(i)?i:[],a&&r?Ar(a):[])}return e.concat(i,Ar(i,[],r))}function du(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function uc(t){const e=Ae(t);let r=parseFloat(e.width)||0,n=parseFloat(e.height)||0;const i=$e(t),u=i?t.offsetWidth:r,o=i?t.offsetHeight:n,a=Nn(r)!==u||Nn(n)!==o;return a&&(r=u,n=o),{width:r,height:n,$:a}}function go(t){return Te(t)?t:t.contextElement}function Lt(t){const e=go(t);if(!$e(e))return Ie(1);const r=e.getBoundingClientRect(),{width:n,height:i,$:u}=uc(e);let o=(u?Nn(r.width):r.width)/n,a=(u?Nn(r.height):r.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const Yv=Ie(0);function oc(t){const e=ye(t);return!bo()||!e.visualViewport?Yv:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Jv(t,e,r){return e===void 0&&(e=!1),!r||e&&r!==ye(t)?!1:e}function wt(t,e,r,n){e===void 0&&(e=!1),r===void 0&&(r=!1);const i=t.getBoundingClientRect(),u=go(t);let o=Ie(1);e&&(n?Te(n)&&(o=Lt(n)):o=Lt(t));const a=Jv(u,r,n)?oc(u):Ie(0);let s=(i.left+a.x)/o.x,l=(i.top+a.y)/o.y,c=i.width/o.x,p=i.height/o.y;if(u){const d=ye(u),f=n&&Te(n)?ye(n):n;let g=d,m=du(g);for(;m&&n&&f!==g;){const b=Lt(m),y=m.getBoundingClientRect(),v=Ae(m),C=y.left+(m.clientLeft+parseFloat(v.paddingLeft))*b.x,S=y.top+(m.clientTop+parseFloat(v.paddingTop))*b.y;s*=b.x,l*=b.y,c*=b.x,p*=b.y,s+=C,l+=S,g=ye(m),m=du(g)}}return _n({width:c,height:p,x:s,y:l})}function si(t,e){const r=ai(t).scrollLeft;return e?e.left+r:wt(He(t)).left+r}function ac(t,e){const r=t.getBoundingClientRect(),n=r.left+e.scrollLeft-si(t,r),i=r.top+e.scrollTop;return{x:n,y:i}}function Kv(t){let{elements:e,rect:r,offsetParent:n,strategy:i}=t;const u=i==="fixed",o=He(n),a=e?oi(e.floating):!1;if(n===o||a&&u)return r;let s={scrollLeft:0,scrollTop:0},l=Ie(1);const c=Ie(0),p=$e(n);if((p||!p&&!u)&&((ur(n)!=="body"||$r(o))&&(s=ai(n)),$e(n))){const f=wt(n);l=Lt(n),c.x=f.x+n.clientLeft,c.y=f.y+n.clientTop}const d=o&&!p&&!u?ac(o,s):Ie(0);return{width:r.width*l.x,height:r.height*l.y,x:r.x*l.x-s.scrollLeft*l.x+c.x+d.x,y:r.y*l.y-s.scrollTop*l.y+c.y+d.y}}function Zv(t){return Array.from(t.getClientRects())}function Qv(t){const e=He(t),r=ai(t),n=t.ownerDocument.body,i=me(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),u=me(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let o=-r.scrollLeft+si(t);const a=-r.scrollTop;return Ae(n).direction==="rtl"&&(o+=me(e.clientWidth,n.clientWidth)-i),{width:i,height:u,x:o,y:a}}const ds=25;function e2(t,e){const r=ye(t),n=He(t),i=r.visualViewport;let u=n.clientWidth,o=n.clientHeight,a=0,s=0;if(i){u=i.width,o=i.height;const c=bo();(!c||c&&e==="fixed")&&(a=i.offsetLeft,s=i.offsetTop)}const l=si(n);if(l<=0){const c=n.ownerDocument,p=c.body,d=getComputedStyle(p),f=c.compatMode==="CSS1Compat"&&parseFloat(d.marginLeft)+parseFloat(d.marginRight)||0,g=Math.abs(n.clientWidth-p.clientWidth-f);g<=ds&&(u-=g)}else l<=ds&&(u+=l);return{width:u,height:o,x:a,y:s}}const t2=new Set(["absolute","fixed"]);function r2(t,e){const r=wt(t,!0,e==="fixed"),n=r.top+t.clientTop,i=r.left+t.clientLeft,u=$e(t)?Lt(t):Ie(1),o=t.clientWidth*u.x,a=t.clientHeight*u.y,s=i*u.x,l=n*u.y;return{width:o,height:a,x:s,y:l}}function fs(t,e,r){let n;if(e==="viewport")n=e2(t,r);else if(e==="document")n=Qv(He(t));else if(Te(e))n=r2(e,r);else{const i=oc(t);n={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return _n(n)}function sc(t,e){const r=ft(t);return r===e||!Te(r)||qt(r)?!1:Ae(r).position==="fixed"||sc(r,e)}function n2(t,e){const r=e.get(t);if(r)return r;let n=Ar(t,[],!1).filter(a=>Te(a)&&ur(a)!=="body"),i=null;const u=Ae(t).position==="fixed";let o=u?ft(t):t;for(;Te(o)&&!qt(o);){const a=Ae(o),s=ho(o);!s&&a.position==="fixed"&&(i=null),(u?!s&&!i:!s&&a.position==="static"&&!!i&&t2.has(i.position)||$r(o)&&!s&&sc(t,o))?n=n.filter(c=>c!==o):i=a,o=ft(o)}return e.set(t,n),n}function i2(t){let{element:e,boundary:r,rootBoundary:n,strategy:i}=t;const o=[...r==="clippingAncestors"?oi(e)?[]:n2(e,this._c):[].concat(r),n],a=o[0],s=o.reduce((l,c)=>{const p=fs(e,c,i);return l.top=me(p.top,l.top),l.right=dt(p.right,l.right),l.bottom=dt(p.bottom,l.bottom),l.left=me(p.left,l.left),l},fs(e,a,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function u2(t){const{width:e,height:r}=uc(t);return{width:e,height:r}}function o2(t,e,r){const n=$e(e),i=He(e),u=r==="fixed",o=wt(t,!0,u,e);let a={scrollLeft:0,scrollTop:0};const s=Ie(0);function l(){s.x=si(i)}if(n||!n&&!u)if((ur(e)!=="body"||$r(i))&&(a=ai(e)),n){const f=wt(e,!0,u,e);s.x=f.x+e.clientLeft,s.y=f.y+e.clientTop}else i&&l();u&&!n&&i&&l();const c=i&&!n&&!u?ac(i,a):Ie(0),p=o.left+a.scrollLeft-s.x-c.x,d=o.top+a.scrollTop-s.y-c.y;return{x:p,y:d,width:o.width,height:o.height}}function Ri(t){return Ae(t).position==="static"}function ps(t,e){if(!$e(t)||Ae(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return He(t)===r&&(r=r.ownerDocument.body),r}function lc(t,e){const r=ye(t);if(oi(t))return r;if(!$e(t)){let i=ft(t);for(;i&&!qt(i);){if(Te(i)&&!Ri(i))return i;i=ft(i)}return r}let n=ps(t,e);for(;n&&Fv(n)&&Ri(n);)n=ps(n,e);return n&&qt(n)&&Ri(n)&&!ho(n)?r:n||Gv(t)||r}const a2=async function(t){const e=this.getOffsetParent||lc,r=this.getDimensions,n=await r(t.floating);return{reference:o2(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function s2(t){return Ae(t).direction==="rtl"}const l2={convertOffsetParentRelativeRectToViewportRelativeRect:Kv,getDocumentElement:He,getClippingRect:i2,getOffsetParent:lc,getElementRects:a2,getClientRects:Zv,getDimensions:u2,getScale:Lt,isElement:Te,isRTL:s2};function cc(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function c2(t,e){let r=null,n;const i=He(t);function u(){var a;clearTimeout(n),(a=r)==null||a.disconnect(),r=null}function o(a,s){a===void 0&&(a=!1),s===void 0&&(s=1),u();const l=t.getBoundingClientRect(),{left:c,top:p,width:d,height:f}=l;if(a||e(),!d||!f)return;const g=Kr(p),m=Kr(i.clientWidth-(c+d)),b=Kr(i.clientHeight-(p+f)),y=Kr(c),C={rootMargin:-g+"px "+-m+"px "+-b+"px "+-y+"px",threshold:me(0,dt(1,s))||1};let S=!0;function O(k){const R=k[0].intersectionRatio;if(R!==s){if(!S)return o();R?o(!1,R):n=setTimeout(()=>{o(!1,1e-7)},1e3)}R===1&&!cc(l,t.getBoundingClientRect())&&o(),S=!1}try{r=new IntersectionObserver(O,{...C,root:i.ownerDocument})}catch{r=new IntersectionObserver(O,C)}r.observe(t)}return o(!0),u}function d2(t,e,r,n){n===void 0&&(n={});const{ancestorScroll:i=!0,ancestorResize:u=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:s=!1}=n,l=go(t),c=i||u?[...l?Ar(l):[],...Ar(e)]:[];c.forEach(y=>{i&&y.addEventListener("scroll",r,{passive:!0}),u&&y.addEventListener("resize",r)});const p=l&&a?c2(l,r):null;let d=-1,f=null;o&&(f=new ResizeObserver(y=>{let[v]=y;v&&v.target===l&&f&&(f.unobserve(e),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var C;(C=f)==null||C.observe(e)})),r()}),l&&!s&&f.observe(l),f.observe(e));let g,m=s?wt(t):null;s&&b();function b(){const y=wt(t);m&&!cc(m,y)&&r(),m=y,g=requestAnimationFrame(b)}return r(),()=>{var y;c.forEach(v=>{i&&v.removeEventListener("scroll",r),u&&v.removeEventListener("resize",r)}),p==null||p(),(y=f)==null||y.disconnect(),f=null,s&&cancelAnimationFrame(g)}}const f2=Lv,p2=Mv,h2=Rv,b2=Bv,g2=Iv,hs=kv,m2=$v,y2=(t,e,r)=>{const n=new Map,i={platform:l2,...r},u={...i.platform,_c:n};return Pv(t,e,{...i,platform:u})};var v2=typeof document<"u",x2=function(){},dn=v2?j.useLayoutEffect:x2;function Pn(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString()===e.toString())return!0;let r,n,i;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(r=t.length,r!==e.length)return!1;for(n=r;n--!==0;)if(!Pn(t[n],e[n]))return!1;return!0}if(i=Object.keys(t),r=i.length,r!==Object.keys(e).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(e,i[n]))return!1;for(n=r;n--!==0;){const u=i[n];if(!(u==="_owner"&&t.$$typeof)&&!Pn(t[u],e[u]))return!1}return!0}return t!==t&&e!==e}function dc(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function bs(t,e){const r=dc(t);return Math.round(e*r)/r}function Ii(t){const e=x.useRef(t);return dn(()=>{e.current=t}),e}function w2(t){t===void 0&&(t={});const{placement:e="bottom",strategy:r="absolute",middleware:n=[],platform:i,elements:{reference:u,floating:o}={},transform:a=!0,whileElementsMounted:s,open:l}=t,[c,p]=x.useState({x:0,y:0,strategy:r,placement:e,middlewareData:{},isPositioned:!1}),[d,f]=x.useState(n);Pn(d,n)||f(n);const[g,m]=x.useState(null),[b,y]=x.useState(null),v=x.useCallback(P=>{P!==k.current&&(k.current=P,m(P))},[]),C=x.useCallback(P=>{P!==R.current&&(R.current=P,y(P))},[]),S=u||g,O=o||b,k=x.useRef(null),R=x.useRef(null),D=x.useRef(c),$=s!=null,L=Ii(s),E=Ii(i),T=Ii(l),_=x.useCallback(()=>{if(!k.current||!R.current)return;const P={placement:e,strategy:r,middleware:d};E.current&&(P.platform=E.current),y2(k.current,R.current,P).then(B=>{const U={...B,isPositioned:T.current!==!1};I.current&&!Pn(D.current,U)&&(D.current=U,Ys.flushSync(()=>{p(U)}))})},[d,e,r,E,T]);dn(()=>{l===!1&&D.current.isPositioned&&(D.current.isPositioned=!1,p(P=>({...P,isPositioned:!1})))},[l]);const I=x.useRef(!1);dn(()=>(I.current=!0,()=>{I.current=!1}),[]),dn(()=>{if(S&&(k.current=S),O&&(R.current=O),S&&O){if(L.current)return L.current(S,O,_);_()}},[S,O,_,L,$]);const w=x.useMemo(()=>({reference:k,floating:R,setReference:v,setFloating:C}),[v,C]),N=x.useMemo(()=>({reference:S,floating:O}),[S,O]),A=x.useMemo(()=>{const P={position:r,left:0,top:0};if(!N.floating)return P;const B=bs(N.floating,c.x),U=bs(N.floating,c.y);return a?{...P,transform:"translate("+B+"px, "+U+"px)",...dc(N.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:B,top:U}},[r,a,N.floating,c.x,c.y]);return x.useMemo(()=>({...c,update:_,refs:w,elements:N,floatingStyles:A}),[c,_,w,N,A])}const E2=t=>{function e(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:t,fn(r){const{element:n,padding:i}=typeof t=="function"?t(r):t;return n&&e(n)?n.current!=null?hs({element:n.current,padding:i}).fn(r):{}:n?hs({element:n,padding:i}).fn(r):{}}}},S2=(t,e)=>({...f2(t),options:[t,e]}),C2=(t,e)=>({...p2(t),options:[t,e]}),T2=(t,e)=>({...m2(t),options:[t,e]}),A2=(t,e)=>({...h2(t),options:[t,e]}),O2=(t,e)=>({...b2(t),options:[t,e]}),N2=(t,e)=>({...g2(t),options:[t,e]}),j2=(t,e)=>({...E2(t),options:[t,e]});var _2="Arrow",fc=x.forwardRef((t,e)=>{const{children:r,width:n=10,height:i=5,...u}=t;return h.jsx(Ne.svg,{...u,ref:e,width:n,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?r:h.jsx("polygon",{points:"0,0 30,0 15,10"})})});fc.displayName=_2;var P2=fc;function pc(t){const[e,r]=x.useState(void 0);return ct(()=>{if(t){r({width:t.offsetWidth,height:t.offsetHeight});const n=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const u=i[0];let o,a;if("borderBoxSize"in u){const s=u.borderBoxSize,l=Array.isArray(s)?s[0]:s;o=l.inlineSize,a=l.blockSize}else o=t.offsetWidth,a=t.offsetHeight;r({width:o,height:a})});return n.observe(t,{box:"border-box"}),()=>n.unobserve(t)}else r(void 0)},[t]),e}var mo="Popper",[hc,bc]=ii(mo),[k2,gc]=hc(mo),mc=t=>{const{__scopePopper:e,children:r}=t,[n,i]=x.useState(null);return h.jsx(k2,{scope:e,anchor:n,onAnchorChange:i,children:r})};mc.displayName=mo;var yc="PopperAnchor",vc=x.forwardRef((t,e)=>{const{__scopePopper:r,virtualRef:n,...i}=t,u=gc(yc,r),o=x.useRef(null),a=Be(e,o),s=x.useRef(null);return x.useEffect(()=>{const l=s.current;s.current=(n==null?void 0:n.current)||o.current,l!==s.current&&u.onAnchorChange(s.current)}),n?null:h.jsx(Ne.div,{...i,ref:a})});vc.displayName=yc;var yo="PopperContent",[R2,I2]=hc(yo),xc=x.forwardRef((t,e)=>{var W,_e,xe,pe,Vr,sr;const{__scopePopper:r,side:n="bottom",sideOffset:i=0,align:u="center",alignOffset:o=0,arrowPadding:a=0,avoidCollisions:s=!0,collisionBoundary:l=[],collisionPadding:c=0,sticky:p="partial",hideWhenDetached:d=!1,updatePositionStrategy:f="optimized",onPlaced:g,...m}=t,b=gc(yo,r),[y,v]=x.useState(null),C=Be(e,gt=>v(gt)),[S,O]=x.useState(null),k=pc(S),R=(k==null?void 0:k.width)??0,D=(k==null?void 0:k.height)??0,$=n+(u!=="center"?"-"+u:""),L=typeof c=="number"?c:{top:0,right:0,bottom:0,left:0,...c},E=Array.isArray(l)?l:[l],T=E.length>0,_={padding:L,boundary:E.filter(L2),altBoundary:T},{refs:I,floatingStyles:w,placement:N,isPositioned:A,middlewareData:P}=w2({strategy:"fixed",placement:$,whileElementsMounted:(...gt)=>d2(...gt,{animationFrame:f==="always"}),elements:{reference:b.anchor},middleware:[S2({mainAxis:i+D,alignmentAxis:o}),s&&C2({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?T2():void 0,..._}),s&&A2({..._}),O2({..._,apply:({elements:gt,rects:ra,availableWidth:t0,availableHeight:r0})=>{const{width:n0,height:i0}=ra.reference,Wr=gt.floating.style;Wr.setProperty("--radix-popper-available-width",`${t0}px`),Wr.setProperty("--radix-popper-available-height",`${r0}px`),Wr.setProperty("--radix-popper-anchor-width",`${n0}px`),Wr.setProperty("--radix-popper-anchor-height",`${i0}px`)}}),S&&j2({element:S,padding:a}),M2({arrowWidth:R,arrowHeight:D}),d&&N2({strategy:"referenceHidden",..._})]}),[B,U]=Sc(N),le=Mr(g);ct(()=>{A&&(le==null||le())},[A,le]);const ta=(W=P.arrow)==null?void 0:W.x,X=(_e=P.arrow)==null?void 0:_e.y,V=((xe=P.arrow)==null?void 0:xe.centerOffset)!==0,[ar,G]=x.useState();return ct(()=>{y&&G(window.getComputedStyle(y).zIndex)},[y]),h.jsx("div",{ref:I.setFloating,"data-radix-popper-content-wrapper":"",style:{...w,transform:A?w.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ar,"--radix-popper-transform-origin":[(pe=P.transformOrigin)==null?void 0:pe.x,(Vr=P.transformOrigin)==null?void 0:Vr.y].join(" "),...((sr=P.hide)==null?void 0:sr.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:h.jsx(R2,{scope:r,placedSide:B,onArrowChange:O,arrowX:ta,arrowY:X,shouldHideArrow:V,children:h.jsx(Ne.div,{"data-side":B,"data-align":U,...m,ref:C,style:{...m.style,animation:A?void 0:"none"}})})})});xc.displayName=yo;var wc="PopperArrow",D2={top:"bottom",right:"left",bottom:"top",left:"right"},Ec=x.forwardRef(function(e,r){const{__scopePopper:n,...i}=e,u=I2(wc,n),o=D2[u.placedSide];return h.jsx("span",{ref:u.onArrowChange,style:{position:"absolute",left:u.arrowX,top:u.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[u.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[u.placedSide],visibility:u.shouldHideArrow?"hidden":void 0},children:h.jsx(P2,{...i,ref:r,style:{...i.style,display:"block"}})})});Ec.displayName=wc;function L2(t){return t!==null}var M2=t=>({name:"transformOrigin",options:t,fn(e){var b,y,v;const{placement:r,rects:n,middlewareData:i}=e,o=((b=i.arrow)==null?void 0:b.centerOffset)!==0,a=o?0:t.arrowWidth,s=o?0:t.arrowHeight,[l,c]=Sc(r),p={start:"0%",center:"50%",end:"100%"}[c],d=(((y=i.arrow)==null?void 0:y.x)??0)+a/2,f=(((v=i.arrow)==null?void 0:v.y)??0)+s/2;let g="",m="";return l==="bottom"?(g=o?p:`${d}px`,m=`${-s}px`):l==="top"?(g=o?p:`${d}px`,m=`${n.floating.height+s}px`):l==="right"?(g=`${-s}px`,m=o?p:`${f}px`):l==="left"&&(g=`${n.floating.width+s}px`,m=o?p:`${f}px`),{data:{x:g,y:m}}}});function Sc(t){const[e,r="center"]=t.split("-");return[e,r]}var $2=mc,B2=vc,q2=xc,H2=Ec;function F2(t,e){return x.useReducer((r,n)=>e[r][n]??r,t)}var li=t=>{const{present:e,children:r}=t,n=z2(e),i=typeof r=="function"?r({present:n.isPresent}):x.Children.only(r),u=Be(n.ref,U2(i));return typeof r=="function"||n.isPresent?x.cloneElement(i,{ref:u}):null};li.displayName="Presence";function z2(t){const[e,r]=x.useState(),n=x.useRef(null),i=x.useRef(t),u=x.useRef("none"),o=t?"mounted":"unmounted",[a,s]=F2(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return x.useEffect(()=>{const l=Zr(n.current);u.current=a==="mounted"?l:"none"},[a]),ct(()=>{const l=n.current,c=i.current;if(c!==t){const d=u.current,f=Zr(l);t?s("MOUNT"):f==="none"||(l==null?void 0:l.display)==="none"?s("UNMOUNT"):s(c&&d!==f?"ANIMATION_OUT":"UNMOUNT"),i.current=t}},[t,s]),ct(()=>{if(e){let l;const c=e.ownerDocument.defaultView??window,p=f=>{const m=Zr(n.current).includes(CSS.escape(f.animationName));if(f.target===e&&m&&(s("ANIMATION_END"),!i.current)){const b=e.style.animationFillMode;e.style.animationFillMode="forwards",l=c.setTimeout(()=>{e.style.animationFillMode==="forwards"&&(e.style.animationFillMode=b)})}},d=f=>{f.target===e&&(u.current=Zr(n.current))};return e.addEventListener("animationstart",d),e.addEventListener("animationcancel",p),e.addEventListener("animationend",p),()=>{c.clearTimeout(l),e.removeEventListener("animationstart",d),e.removeEventListener("animationcancel",p),e.removeEventListener("animationend",p)}}else s("ANIMATION_END")},[e,s]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:x.useCallback(l=>{n.current=l?getComputedStyle(l):null,r(l)},[])}}function Zr(t){return(t==null?void 0:t.animationName)||"none"}function U2(t){var n,i;let e=(n=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:n.get,r=e&&"isReactWarning"in e&&e.isReactWarning;return r?t.ref:(e=(i=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:i.get,r=e&&"isReactWarning"in e&&e.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}var V2=Symbol("radix.slottable");function W2(t){const e=({children:r})=>h.jsx(h.Fragment,{children:r});return e.displayName=`${t}.Slottable`,e.__radixId=V2,e}var G2=x[" useInsertionEffect ".trim().toString()]||ct;function vo({prop:t,defaultProp:e,onChange:r=()=>{},caller:n}){const[i,u,o]=X2({defaultProp:e,onChange:r}),a=t!==void 0,s=a?t:i;{const c=x.useRef(t!==void 0);x.useEffect(()=>{const p=c.current;p!==a&&console.warn(`${n} is changing from ${p?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),c.current=a},[a,n])}const l=x.useCallback(c=>{var p;if(a){const d=Y2(c)?c(t):c;d!==t&&((p=o.current)==null||p.call(o,d))}else u(c)},[a,t,u,o]);return[s,l]}function X2({defaultProp:t,onChange:e}){const[r,n]=x.useState(t),i=x.useRef(r),u=x.useRef(e);return G2(()=>{u.current=e},[e]),x.useEffect(()=>{var o;i.current!==r&&((o=u.current)==null||o.call(u,r),i.current=r)},[r,i]),[r,n,u]}function Y2(t){return typeof t=="function"}var J2=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),K2="VisuallyHidden",Cc=x.forwardRef((t,e)=>h.jsx(Ne.span,{...t,ref:e,style:{...J2,...t.style}}));Cc.displayName=K2;var Z2=Cc,[ci]=ii("Tooltip",[bc]),di=bc(),Tc="TooltipProvider",Q2=700,fu="tooltip.open",[ex,xo]=ci(Tc),Ac=t=>{const{__scopeTooltip:e,delayDuration:r=Q2,skipDelayDuration:n=300,disableHoverableContent:i=!1,children:u}=t,o=x.useRef(!0),a=x.useRef(!1),s=x.useRef(0);return x.useEffect(()=>{const l=s.current;return()=>window.clearTimeout(l)},[]),h.jsx(ex,{scope:e,isOpenDelayedRef:o,delayDuration:r,onOpen:x.useCallback(()=>{window.clearTimeout(s.current),o.current=!1},[]),onClose:x.useCallback(()=>{window.clearTimeout(s.current),s.current=window.setTimeout(()=>o.current=!0,n)},[n]),isPointerInTransitRef:a,onPointerInTransitChange:x.useCallback(l=>{a.current=l},[]),disableHoverableContent:i,children:u})};Ac.displayName=Tc;var Or="Tooltip",[tx,fi]=ci(Or),Oc=t=>{const{__scopeTooltip:e,children:r,open:n,defaultOpen:i,onOpenChange:u,disableHoverableContent:o,delayDuration:a}=t,s=xo(Or,t.__scopeTooltip),l=di(e),[c,p]=x.useState(null),d=ec(),f=x.useRef(0),g=o??s.disableHoverableContent,m=a??s.delayDuration,b=x.useRef(!1),[y,v]=vo({prop:n,defaultProp:i??!1,onChange:R=>{R?(s.onOpen(),document.dispatchEvent(new CustomEvent(fu))):s.onClose(),u==null||u(R)},caller:Or}),C=x.useMemo(()=>y?b.current?"delayed-open":"instant-open":"closed",[y]),S=x.useCallback(()=>{window.clearTimeout(f.current),f.current=0,b.current=!1,v(!0)},[v]),O=x.useCallback(()=>{window.clearTimeout(f.current),f.current=0,v(!1)},[v]),k=x.useCallback(()=>{window.clearTimeout(f.current),f.current=window.setTimeout(()=>{b.current=!0,v(!0),f.current=0},m)},[m,v]);return x.useEffect(()=>()=>{f.current&&(window.clearTimeout(f.current),f.current=0)},[]),h.jsx($2,{...l,children:h.jsx(tx,{scope:e,contentId:d,open:y,stateAttribute:C,trigger:c,onTriggerChange:p,onTriggerEnter:x.useCallback(()=>{s.isOpenDelayedRef.current?k():S()},[s.isOpenDelayedRef,k,S]),onTriggerLeave:x.useCallback(()=>{g?O():(window.clearTimeout(f.current),f.current=0)},[O,g]),onOpen:S,onClose:O,disableHoverableContent:g,children:r})})};Oc.displayName=Or;var pu="TooltipTrigger",Nc=x.forwardRef((t,e)=>{const{__scopeTooltip:r,...n}=t,i=fi(pu,r),u=xo(pu,r),o=di(r),a=x.useRef(null),s=Be(e,a,i.onTriggerChange),l=x.useRef(!1),c=x.useRef(!1),p=x.useCallback(()=>l.current=!1,[]);return x.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),h.jsx(B2,{asChild:!0,...o,children:h.jsx(Ne.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...n,ref:s,onPointerMove:Ee(t.onPointerMove,d=>{d.pointerType!=="touch"&&!c.current&&!u.isPointerInTransitRef.current&&(i.onTriggerEnter(),c.current=!0)}),onPointerLeave:Ee(t.onPointerLeave,()=>{i.onTriggerLeave(),c.current=!1}),onPointerDown:Ee(t.onPointerDown,()=>{i.open&&i.onClose(),l.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:Ee(t.onFocus,()=>{l.current||i.onOpen()}),onBlur:Ee(t.onBlur,i.onClose),onClick:Ee(t.onClick,i.onClose)})})});Nc.displayName=pu;var rx="TooltipPortal",[A4,nx]=ci(rx,{forceMount:void 0}),Ht="TooltipContent",jc=x.forwardRef((t,e)=>{const r=nx(Ht,t.__scopeTooltip),{forceMount:n=r.forceMount,side:i="top",...u}=t,o=fi(Ht,t.__scopeTooltip);return h.jsx(li,{present:n||o.open,children:o.disableHoverableContent?h.jsx(_c,{side:i,...u,ref:e}):h.jsx(ix,{side:i,...u,ref:e})})}),ix=x.forwardRef((t,e)=>{const r=fi(Ht,t.__scopeTooltip),n=xo(Ht,t.__scopeTooltip),i=x.useRef(null),u=Be(e,i),[o,a]=x.useState(null),{trigger:s,onClose:l}=r,c=i.current,{onPointerInTransitChange:p}=n,d=x.useCallback(()=>{a(null),p(!1)},[p]),f=x.useCallback((g,m)=>{const b=g.currentTarget,y={x:g.clientX,y:g.clientY},v=lx(y,b.getBoundingClientRect()),C=cx(y,v),S=dx(m.getBoundingClientRect()),O=px([...C,...S]);a(O),p(!0)},[p]);return x.useEffect(()=>()=>d(),[d]),x.useEffect(()=>{if(s&&c){const g=b=>f(b,c),m=b=>f(b,s);return s.addEventListener("pointerleave",g),c.addEventListener("pointerleave",m),()=>{s.removeEventListener("pointerleave",g),c.removeEventListener("pointerleave",m)}}},[s,c,f,d]),x.useEffect(()=>{if(o){const g=m=>{const b=m.target,y={x:m.clientX,y:m.clientY},v=(s==null?void 0:s.contains(b))||(c==null?void 0:c.contains(b)),C=!fx(y,o);v?d():C&&(d(),l())};return document.addEventListener("pointermove",g),()=>document.removeEventListener("pointermove",g)}},[s,c,o,l,d]),h.jsx(_c,{...t,ref:u})}),[ux,ox]=ci(Or,{isInside:!1}),ax=W2("TooltipContent"),_c=x.forwardRef((t,e)=>{const{__scopeTooltip:r,children:n,"aria-label":i,onEscapeKeyDown:u,onPointerDownOutside:o,...a}=t,s=fi(Ht,r),l=di(r),{onClose:c}=s;return x.useEffect(()=>(document.addEventListener(fu,c),()=>document.removeEventListener(fu,c)),[c]),x.useEffect(()=>{if(s.trigger){const p=d=>{const f=d.target;f!=null&&f.contains(s.trigger)&&c()};return window.addEventListener("scroll",p,{capture:!0}),()=>window.removeEventListener("scroll",p,{capture:!0})}},[s.trigger,c]),h.jsx(Zl,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:u,onPointerDownOutside:o,onFocusOutside:p=>p.preventDefault(),onDismiss:c,children:h.jsxs(q2,{"data-state":s.stateAttribute,...l,...a,ref:e,style:{...a.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[h.jsx(ax,{children:n}),h.jsx(ux,{scope:r,isInside:!0,children:h.jsx(Z2,{id:s.contentId,role:"tooltip",children:i||n})})]})})});jc.displayName=Ht;var Pc="TooltipArrow",sx=x.forwardRef((t,e)=>{const{__scopeTooltip:r,...n}=t,i=di(r);return ox(Pc,r).isInside?null:h.jsx(H2,{...i,...n,ref:e})});sx.displayName=Pc;function lx(t,e){const r=Math.abs(e.top-t.y),n=Math.abs(e.bottom-t.y),i=Math.abs(e.right-t.x),u=Math.abs(e.left-t.x);switch(Math.min(r,n,i,u)){case u:return"left";case i:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function cx(t,e,r=5){const n=[];switch(e){case"top":n.push({x:t.x-r,y:t.y+r},{x:t.x+r,y:t.y+r});break;case"bottom":n.push({x:t.x-r,y:t.y-r},{x:t.x+r,y:t.y-r});break;case"left":n.push({x:t.x+r,y:t.y-r},{x:t.x+r,y:t.y+r});break;case"right":n.push({x:t.x-r,y:t.y-r},{x:t.x-r,y:t.y+r});break}return n}function dx(t){const{top:e,right:r,bottom:n,left:i}=t;return[{x:i,y:e},{x:r,y:e},{x:r,y:n},{x:i,y:n}]}function fx(t,e){const{x:r,y:n}=t;let i=!1;for(let u=0,o=e.length-1;u<e.length;o=u++){const a=e[u],s=e[o],l=a.x,c=a.y,p=s.x,d=s.y;c>n!=d>n&&r<(p-l)*(n-c)/(d-c)+l&&(i=!i)}return i}function px(t){const e=t.slice();return e.sort((r,n)=>r.x<n.x?-1:r.x>n.x?1:r.y<n.y?-1:r.y>n.y?1:0),hx(e)}function hx(t){if(t.length<=1)return t.slice();const e=[];for(let n=0;n<t.length;n++){const i=t[n];for(;e.length>=2;){const u=e[e.length-1],o=e[e.length-2];if((u.x-o.x)*(i.y-o.y)>=(u.y-o.y)*(i.x-o.x))e.pop();else break}e.push(i)}e.pop();const r=[];for(let n=t.length-1;n>=0;n--){const i=t[n];for(;r.length>=2;){const u=r[r.length-1],o=r[r.length-2];if((u.x-o.x)*(i.y-o.y)>=(u.y-o.y)*(i.x-o.x))r.pop();else break}r.push(i)}return r.pop(),e.length===1&&r.length===1&&e[0].x===r[0].x&&e[0].y===r[0].y?e:e.concat(r)}var bx=Ac,gx=Oc,mx=Nc,kc=jc;const Nr=bx,Ft=gx,zt=mx,Et=x.forwardRef(({className:t,sideOffset:e=4,...r},n)=>h.jsx(kc,{ref:n,sideOffset:e,className:ge("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...r}));Et.displayName=kc.displayName;const Mt={mobile:{icon:Uu,label:"Mobile"},tablet:{icon:Vu,label:"Tablet"},small:{icon:zu,label:"Small Desktop"},desktop:{icon:Wu,label:"Desktop"}},F=({title:t,children:e,defaultOpen:r=!0})=>{const[n,i]=j.useState(r);return h.jsxs("div",{className:"border-b border-border pb-3",children:[h.jsxs("button",{onClick:()=>i(!n),className:"flex items-center justify-between w-full py-1.5 text-xs font-medium text-muted-foreground hover:text-foreground",children:[t,n?h.jsx(Hu,{className:"h-3 w-3"}):h.jsx(Fu,{className:"h-3 w-3"})]}),n&&h.jsx("div",{className:"mt-2 space-y-3",children:e})]})},de=({label:t,value:e,onChange:r,min:n=0,max:i=100,unit:u="px"})=>h.jsxs("div",{className:"flex items-center justify-between",children:[h.jsx("label",{className:"text-xs text-muted-foreground",children:t}),h.jsxs("div",{className:"flex items-center gap-1",children:[h.jsx("input",{type:"number",value:e,onChange:o=>r(parseInt(o.target.value)||0),min:n,max:i,className:"w-14 px-2 py-1 text-xs rounded border border-input bg-background text-right"}),h.jsx("span",{className:"text-xs text-muted-foreground w-6",children:u})]})]}),kn=({label:t,values:e,onChange:r,min:n=0,max:i=100,unit:u="px",defaultValue:o=16})=>{const a=Ot(),[s,l]=j.useState(!1),c=typeof e=="object"&&e!==null&&!("top"in e)?e:{desktop:e??o},p=()=>c[a]??c.desktop??o,d=(m,b)=>{const y={...c,[m]:b};r(y)},f=m=>{d(a,m)},g=Se.some(m=>m!=="desktop"&&c[m]!==void 0);return h.jsxs("div",{className:"space-y-1.5",children:[h.jsxs("div",{className:"flex items-center justify-between",children:[h.jsx("label",{className:"text-xs text-muted-foreground",children:t}),h.jsx(Nr,{children:h.jsxs(Ft,{children:[h.jsx(zt,{asChild:!0,children:h.jsx("button",{onClick:()=>l(!s),className:`p-1 rounded transition-colors ${s||g?"bg-primary/10 text-primary":"text-muted-foreground hover:text-foreground"}`,children:j.createElement(Mt[a].icon,{className:"h-3 w-3"})})}),h.jsx(Et,{side:"left",children:h.jsx("p",{children:s?"Hide breakpoints":"Edit per breakpoint"})})]})})]}),s?h.jsx("div",{className:"space-y-1.5 pl-2 border-l-2 border-primary/20",children:Se.map(m=>{const b=Mt[m].icon,y=c[m],v=y===void 0?Se.find(C=>Se.indexOf(C)>Se.indexOf(m)&&c[C]!==void 0)||"desktop":null;return h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx(Nr,{children:h.jsxs(Ft,{children:[h.jsx(zt,{asChild:!0,children:h.jsx("div",{className:`p-1 rounded ${m===a?"bg-primary/10":""}`,children:h.jsx(b,{className:"h-3 w-3 text-muted-foreground"})})}),h.jsx(Et,{side:"left",children:h.jsx("p",{children:Mt[m].label})})]})}),h.jsx("input",{type:"number",value:y??"",placeholder:v?`${c[v]??o}`:"",onChange:C=>{const S=C.target.value===""?void 0:parseInt(C.target.value)||0;d(m,S)},min:n,max:i,className:`flex-1 px-2 py-1 text-xs rounded border border-input bg-background text-right ${y===void 0?"text-muted-foreground":""}`}),h.jsx("span",{className:"text-xs text-muted-foreground w-6",children:u})]},m)})}):h.jsxs("div",{className:"flex items-center gap-1",children:[h.jsx("input",{type:"number",value:p(),onChange:m=>f(parseInt(m.target.value)||0),min:n,max:i,className:"w-full px-2 py-1 text-xs rounded border border-input bg-background text-right"}),h.jsx("span",{className:"text-xs text-muted-foreground w-6",children:u})]})]})},Oe=({label:t,values:e,onChange:r})=>{const[n,i]=j.useState(!0),u=(o,a)=>{r(n?{top:a,right:a,bottom:a,left:a}:{...e,[o]:a})};return h.jsxs("div",{className:"space-y-2",children:[h.jsxs("div",{className:"flex items-center justify-between",children:[h.jsx("label",{className:"text-xs text-muted-foreground",children:t}),h.jsx("button",{onClick:()=>i(!n),className:`text-xs px-2 py-0.5 rounded ${n?"bg-primary/10 text-primary":"text-muted-foreground"}`,children:n?"Linked":"Individual"})]}),n?h.jsx("input",{type:"number",value:e.top,onChange:o=>u("top",parseInt(o.target.value)||0),min:0,className:"w-full px-2 py-1 text-xs rounded border border-input bg-background text-center"}):h.jsx("div",{className:"grid grid-cols-4 gap-1",children:["top","right","bottom","left"].map(o=>h.jsxs("div",{className:"text-center",children:[h.jsx("input",{type:"number",value:e[o],onChange:a=>u(o,parseInt(a.target.value)||0),min:0,className:"w-full px-1 py-1 text-xs rounded border border-input bg-background text-center"}),h.jsx("span",{className:"text-[10px] text-muted-foreground",children:o[0].toUpperCase()})]},o))})]})},ne=({label:t,value:e,options:r,onChange:n})=>h.jsxs("div",{className:"flex items-center justify-between",children:[h.jsx("label",{className:"text-xs text-muted-foreground",children:t}),h.jsx("select",{value:e,onChange:i=>n(i.target.value),className:"px-2 py-1 text-xs rounded border border-input bg-background",children:r.map(i=>h.jsx("option",{value:i.value,children:i.label},i.value))})]}),De=({label:t,value:e,onChange:r})=>h.jsxs("div",{className:"flex items-center justify-between",children:[h.jsx("label",{className:"text-xs text-muted-foreground",children:t}),h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx("input",{type:"color",value:e!=null&&e.startsWith("#")?e:"#000000",onChange:n=>r(n.target.value),className:"w-6 h-6 rounded border border-input cursor-pointer"}),h.jsx("input",{type:"text",value:e||"",onChange:n=>r(n.target.value),className:"w-20 px-2 py-1 text-xs rounded border border-input bg-background",placeholder:"#000000"})]})]}),Ke=({label:t,value:e,options:r,onChange:n})=>h.jsxs("div",{className:"space-y-1.5",children:[h.jsx("label",{className:"text-xs text-muted-foreground",children:t}),h.jsx("div",{className:"flex gap-1",children:r.map(i=>h.jsx("button",{onClick:()=>n(i.value),className:`flex-1 px-2 py-1.5 text-xs rounded border transition-colors ${e===i.value?"bg-primary text-primary-foreground border-primary":"border-input hover:bg-secondary"}`,title:i.label,children:i.icon||i.label},i.value))})]}),Ut=({label:t,value:e,onChange:r,multiline:n=!1})=>h.jsxs("div",{className:"space-y-1.5",children:[h.jsx("label",{className:"text-xs text-muted-foreground",children:t}),n?h.jsx("textarea",{value:e||"",onChange:i=>r(i.target.value),className:"w-full p-2 text-xs rounded border border-input bg-background resize-none",rows:3}):h.jsx("input",{type:"text",value:e||"",onChange:i=>r(i.target.value),className:"w-full px-2 py-1.5 text-xs rounded border border-input bg-background"})]}),wo=({label:t,value:e,onChange:r,min:n=0,max:i=100,unit:u=""})=>h.jsxs("div",{className:"space-y-1.5",children:[h.jsxs("div",{className:"flex items-center justify-between",children:[h.jsx("label",{className:"text-xs text-muted-foreground",children:t}),h.jsxs("span",{className:"text-xs text-muted-foreground",children:[e,u]})]}),h.jsx("input",{type:"range",value:e,onChange:o=>r(parseInt(o.target.value)),min:n,max:i,className:"w-full h-1.5 accent-primary"})]}),Rn=({label:t,values:e,onChange:r,min:n=0,max:i=100,unit:u="",defaultValue:o=50})=>{const a=Ot(),[s,l]=j.useState(!1),c=typeof e=="object"&&e!==null&&!("top"in e)?e:{desktop:e??o},p=()=>c[a]??c.desktop??o,d=(g,m)=>{const b={...c,[g]:m};r(b)},f=Se.some(g=>g!=="desktop"&&c[g]!==void 0);return h.jsxs("div",{className:"space-y-1.5",children:[h.jsxs("div",{className:"flex items-center justify-between",children:[h.jsx("label",{className:"text-xs text-muted-foreground",children:t}),h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsxs("span",{className:"text-xs text-muted-foreground",children:[p(),u]}),h.jsx(Nr,{children:h.jsxs(Ft,{children:[h.jsx(zt,{asChild:!0,children:h.jsx("button",{onClick:()=>l(!s),className:`p-1 rounded transition-colors ${s||f?"bg-primary/10 text-primary":"text-muted-foreground hover:text-foreground"}`,children:j.createElement(Mt[a].icon,{className:"h-3 w-3"})})}),h.jsx(Et,{side:"left",children:h.jsx("p",{children:s?"Hide breakpoints":"Edit per breakpoint"})})]})})]})]}),s?h.jsx("div",{className:"space-y-2 pl-2 border-l-2 border-primary/20",children:Se.map(g=>{const m=Mt[g].icon,b=c[g];return h.jsxs("div",{className:"space-y-1",children:[h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx("div",{className:`p-1 rounded ${g===a?"bg-primary/10":""}`,children:h.jsx(m,{className:"h-3 w-3 text-muted-foreground"})}),h.jsx("span",{className:"text-xs text-muted-foreground flex-1",children:Mt[g].label}),h.jsxs("span",{className:"text-xs",children:[b??"-",b!==void 0?u:""]})]}),h.jsx("input",{type:"range",value:b??c.desktop??o,onChange:y=>d(g,parseInt(y.target.value)),min:n,max:i,className:"w-full h-1.5 accent-primary"})]},g)})}):h.jsx("input",{type:"range",value:p(),onChange:g=>d(a,parseInt(g.target.value)),min:n,max:i,className:"w-full h-1.5 accent-primary"})]})},Eo=({background:t="transparent",padding:e={top:16,right:16,bottom:16,left:16},margin:r={top:0,right:0,bottom:0,left:0},width:n="auto",minHeight:i=100,maxWidth:u="none",display:o="block",flexDirection:a="column",justifyContent:s="flex-start",alignItems:l="stretch",gap:c=0,borderRadius:p=8,borderWidth:d=1,borderColor:f="transparent",borderStyle:g="dashed",boxShadow:m="none",children:b})=>{const{connectors:{connect:y,drag:v},isActive:C}=oe(k=>({isActive:k.events.selected})),S=typeof e=="object"?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:`${e}px`,O=typeof r=="object"?`${r.top}px ${r.right}px ${r.bottom}px ${r.left}px`:`${r}px`;return h.jsx("div",{ref:k=>k&&y(v(k)),className:ge("w-full cursor-move",C&&"ring-2 ring-primary ring-offset-2"),style:{backgroundColor:t,padding:S,margin:O,width:n==="auto"?"100%":n,minHeight:`${i}px`,maxWidth:u==="none"?"none":`${u}px`,display:o,flexDirection:o==="flex"?a:void 0,justifyContent:o==="flex"?s:void 0,alignItems:o==="flex"?l:void 0,gap:o==="flex"?`${c}px`:void 0,borderRadius:`${p}px`,borderWidth:`${d}px`,borderColor:f,borderStyle:g,boxShadow:m==="none"?"none":m},children:b})},yx=()=>{const{actions:{setProp:t},props:e}=oe(i=>({props:i.data.props})),r=typeof e.padding=="object"?e.padding:{top:e.padding||16,right:e.padding||16,bottom:e.padding||16,left:e.padding||16},n=typeof e.margin=="object"?e.margin:{top:e.margin||0,right:e.margin||0,bottom:e.margin||0,left:e.margin||0};return h.jsxs("div",{className:"space-y-3",children:[h.jsxs(F,{title:"Layout",defaultOpen:!0,children:[h.jsx(ne,{label:"Display",value:e.display||"block",options:[{value:"block",label:"Block"},{value:"flex",label:"Flex"}],onChange:i=>t(u=>u.display=i)}),e.display==="flex"&&h.jsxs(h.Fragment,{children:[h.jsx(Ke,{label:"Direction",value:e.flexDirection||"column",options:[{value:"row",label:"Row"},{value:"column",label:"Col"}],onChange:i=>t(u=>u.flexDirection=i)}),h.jsx(ne,{label:"Justify",value:e.justifyContent||"flex-start",options:[{value:"flex-start",label:"Start"},{value:"center",label:"Center"},{value:"flex-end",label:"End"},{value:"space-between",label:"Between"}],onChange:i=>t(u=>u.justifyContent=i)}),h.jsx(de,{label:"Gap",value:e.gap||0,onChange:i=>t(u=>u.gap=i),max:64})]})]}),h.jsxs(F,{title:"Spacing",defaultOpen:!0,children:[h.jsx(Oe,{label:"Padding",values:r,onChange:i=>t(u=>u.padding=i)}),h.jsx(Oe,{label:"Margin",values:n,onChange:i=>t(u=>u.margin=i)})]}),h.jsx(F,{title:"Background",defaultOpen:!1,children:h.jsx(De,{label:"Color",value:e.background||"transparent",onChange:i=>t(u=>u.background=i)})}),h.jsxs(F,{title:"Border",defaultOpen:!1,children:[h.jsx(de,{label:"Radius",value:e.borderRadius||8,onChange:i=>t(u=>u.borderRadius=i),max:50}),h.jsx(de,{label:"Width",value:e.borderWidth||1,onChange:i=>t(u=>u.borderWidth=i),max:10}),h.jsx(De,{label:"Color",value:e.borderColor||"transparent",onChange:i=>t(u=>u.borderColor=i)})]})]})};Eo.craft={displayName:"Container",props:{background:"transparent",padding:{top:16,right:16,bottom:16,left:16},margin:{top:0,right:0,bottom:0,left:0},width:"auto",minHeight:100,maxWidth:"none",display:"block",flexDirection:"column",justifyContent:"flex-start",alignItems:"stretch",gap:0,borderRadius:8,borderWidth:1,borderColor:"transparent",borderStyle:"dashed",boxShadow:"none"},related:{settings:yx}};const vx=/\{\{\s*([\w.]+)\s*\}\}/g,xx=(t,e)=>{if(!t||!e)return;const r=e.split(".");let n=t;for(const i of r){if(n==null)return;n=n[i]}return n},So=(t,e)=>{if(!t||typeof t!="string"||!e)return t;const r=/\{\{\s*([\w.]+)\s*\}\}/g;return t.replace(r,(n,i)=>{const u=xx(e,i);return u==null?n:String(u)})},wx=t=>!t||typeof t!="string"?!1:/\{\{\s*([\w.]+)\s*\}\}/.test(t),Ex=t=>{if(!t||typeof t!="string")return[];const e=[];let r;const n=new RegExp(vx.source,"g");for(;(r=n.exec(t))!==null;)e.push(r[1]);return e},Sx={athlete:{name:"Full name (from API)",bibId:"Bib number",firstName:"First name",lastName:"Last name",fullName:"Full name (firstName + lastName)",raceTime:"Race finish time",email:"Email address",phone:"Phone number"},event:{name:"Event name",slug:"Event URL slug",date:"Event date"},organization:{name:"Organization name",website:"Organization website"}},Cx={athlete:{label:"Athlete",variables:[{key:"athlete.name",description:"Full name"},{key:"athlete.bibId",description:"Bib number"},{key:"athlete.firstName",description:"First name"},{key:"athlete.lastName",description:"Last name"},{key:"athlete.fullName",description:"First + Last name"},{key:"athlete.raceTime",description:"Race finish time"},{key:"athlete.email",description:"Email address"},{key:"athlete.phone",description:"Phone number"}]},event:{label:"Event",variables:[{key:"event.name",description:"Event name"},{key:"event.slug",description:"URL slug"},{key:"event.date",description:"Event date"}]},organization:{label:"Organization",variables:[{key:"organization.name",description:"Organization name"},{key:"organization.website",description:"Website URL"}]}},Tx=({variable:t,onCopy:e})=>{const[r,n]=j.useState(!1),i=()=>{navigator.clipboard.writeText(`{{ ${t.key} }}`),n(!0),e==null||e(`{{ ${t.key} }}`),setTimeout(()=>n(!1),1500)};return h.jsxs("button",{onClick:i,className:"w-full flex items-center justify-between gap-2 px-2 py-1.5 text-left hover:bg-muted rounded-md transition-colors group",children:[h.jsxs("div",{className:"min-w-0 flex-1",children:[h.jsx("code",{className:"text-xs font-mono text-primary bg-primary/10 px-1 py-0.5 rounded",children:`{{ ${t.key} }}`}),h.jsx("p",{className:"text-xs text-muted-foreground mt-0.5 truncate",children:t.description})]}),h.jsx("div",{className:"shrink-0 opacity-0 group-hover:opacity-100 transition-opacity",children:r?h.jsx(qu,{className:"h-3.5 w-3.5 text-green-500"}):h.jsx(X0,{className:"h-3.5 w-3.5 text-muted-foreground"})})]})},Ax=({category:t,data:e,defaultOpen:r=!1})=>{const[n,i]=j.useState(r);return h.jsxs("div",{className:"border-b border-border last:border-0",children:[h.jsxs("button",{onClick:()=>i(!n),className:"w-full flex items-center gap-2 py-2 text-left hover:bg-muted/50 transition-colors",children:[n?h.jsx(Hu,{className:"h-3.5 w-3.5 text-muted-foreground"}):h.jsx(Fu,{className:"h-3.5 w-3.5 text-muted-foreground"}),h.jsx("span",{className:"text-xs font-medium",children:e.label}),h.jsxs("span",{className:"text-xs text-muted-foreground",children:["(",e.variables.length,")"]})]}),n&&h.jsx("div",{className:"pb-2 space-y-0.5",children:e.variables.map(u=>h.jsx(Tx,{variable:u},u.key))})]})},Rc=({className:t})=>h.jsxs("div",{className:ge("rounded-lg border border-border bg-muted/30",t),children:[h.jsxs("div",{className:"px-3 py-2 border-b border-border",children:[h.jsx("h4",{className:"text-xs font-semibold",children:"Dynamic Variables"}),h.jsx("p",{className:"text-xs text-muted-foreground mt-0.5",children:"Click to copy, then paste in your text"})]}),h.jsx("div",{className:"px-2",children:Object.entries(Cx).map(([e,r],n)=>h.jsx(Ax,{category:e,data:r,defaultOpen:n===0},e))})]});var Ic={},jr={},Co={},_r={},To={};Object.defineProperty(To,"__esModule",{value:!0});To.default=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(function(t){return t.charCodeAt(0)}));var Ao={};Object.defineProperty(Ao,"__esModule",{value:!0});Ao.default=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(function(t){return t.charCodeAt(0)}));var hu={};(function(t){var e;Object.defineProperty(t,"__esModule",{value:!0}),t.replaceCodePoint=t.fromCodePoint=void 0;var r=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);t.fromCodePoint=(e=String.fromCodePoint)!==null&&e!==void 0?e:function(u){var o="";return u>65535&&(u-=65536,o+=String.fromCharCode(u>>>10&1023|55296),u=56320|u&1023),o+=String.fromCharCode(u),o};function n(u){var o;return u>=55296&&u<=57343||u>1114111?65533:(o=r.get(u))!==null&&o!==void 0?o:u}t.replaceCodePoint=n;function i(u){return(0,t.fromCodePoint)(n(u))}t.default=i})(hu);(function(t){var e=M&&M.__createBinding||(Object.create?function(E,T,_,I){I===void 0&&(I=_);var w=Object.getOwnPropertyDescriptor(T,_);(!w||("get"in w?!T.__esModule:w.writable||w.configurable))&&(w={enumerable:!0,get:function(){return T[_]}}),Object.defineProperty(E,I,w)}:function(E,T,_,I){I===void 0&&(I=_),E[I]=T[_]}),r=M&&M.__setModuleDefault||(Object.create?function(E,T){Object.defineProperty(E,"default",{enumerable:!0,value:T})}:function(E,T){E.default=T}),n=M&&M.__importStar||function(E){if(E&&E.__esModule)return E;var T={};if(E!=null)for(var _ in E)_!=="default"&&Object.prototype.hasOwnProperty.call(E,_)&&e(T,E,_);return r(T,E),T},i=M&&M.__importDefault||function(E){return E&&E.__esModule?E:{default:E}};Object.defineProperty(t,"__esModule",{value:!0}),t.decodeXML=t.decodeHTMLStrict=t.decodeHTMLAttribute=t.decodeHTML=t.determineBranch=t.EntityDecoder=t.DecodingMode=t.BinTrieFlags=t.fromCodePoint=t.replaceCodePoint=t.decodeCodePoint=t.xmlDecodeTree=t.htmlDecodeTree=void 0;var u=i(To);t.htmlDecodeTree=u.default;var o=i(Ao);t.xmlDecodeTree=o.default;var a=n(hu);t.decodeCodePoint=a.default;var s=hu;Object.defineProperty(t,"replaceCodePoint",{enumerable:!0,get:function(){return s.replaceCodePoint}}),Object.defineProperty(t,"fromCodePoint",{enumerable:!0,get:function(){return s.fromCodePoint}});var l;(function(E){E[E.NUM=35]="NUM",E[E.SEMI=59]="SEMI",E[E.EQUALS=61]="EQUALS",E[E.ZERO=48]="ZERO",E[E.NINE=57]="NINE",E[E.LOWER_A=97]="LOWER_A",E[E.LOWER_F=102]="LOWER_F",E[E.LOWER_X=120]="LOWER_X",E[E.LOWER_Z=122]="LOWER_Z",E[E.UPPER_A=65]="UPPER_A",E[E.UPPER_F=70]="UPPER_F",E[E.UPPER_Z=90]="UPPER_Z"})(l||(l={}));var c=32,p;(function(E){E[E.VALUE_LENGTH=49152]="VALUE_LENGTH",E[E.BRANCH_LENGTH=16256]="BRANCH_LENGTH",E[E.JUMP_TABLE=127]="JUMP_TABLE"})(p=t.BinTrieFlags||(t.BinTrieFlags={}));function d(E){return E>=l.ZERO&&E<=l.NINE}function f(E){return E>=l.UPPER_A&&E<=l.UPPER_F||E>=l.LOWER_A&&E<=l.LOWER_F}function g(E){return E>=l.UPPER_A&&E<=l.UPPER_Z||E>=l.LOWER_A&&E<=l.LOWER_Z||d(E)}function m(E){return E===l.EQUALS||g(E)}var b;(function(E){E[E.EntityStart=0]="EntityStart",E[E.NumericStart=1]="NumericStart",E[E.NumericDecimal=2]="NumericDecimal",E[E.NumericHex=3]="NumericHex",E[E.NamedEntity=4]="NamedEntity"})(b||(b={}));var y;(function(E){E[E.Legacy=0]="Legacy",E[E.Strict=1]="Strict",E[E.Attribute=2]="Attribute"})(y=t.DecodingMode||(t.DecodingMode={}));var v=function(){function E(T,_,I){this.decodeTree=T,this.emitCodePoint=_,this.errors=I,this.state=b.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=y.Strict}return E.prototype.startEntity=function(T){this.decodeMode=T,this.state=b.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1},E.prototype.write=function(T,_){switch(this.state){case b.EntityStart:return T.charCodeAt(_)===l.NUM?(this.state=b.NumericStart,this.consumed+=1,this.stateNumericStart(T,_+1)):(this.state=b.NamedEntity,this.stateNamedEntity(T,_));case b.NumericStart:return this.stateNumericStart(T,_);case b.NumericDecimal:return this.stateNumericDecimal(T,_);case b.NumericHex:return this.stateNumericHex(T,_);case b.NamedEntity:return this.stateNamedEntity(T,_)}},E.prototype.stateNumericStart=function(T,_){return _>=T.length?-1:(T.charCodeAt(_)|c)===l.LOWER_X?(this.state=b.NumericHex,this.consumed+=1,this.stateNumericHex(T,_+1)):(this.state=b.NumericDecimal,this.stateNumericDecimal(T,_))},E.prototype.addToNumericResult=function(T,_,I,w){if(_!==I){var N=I-_;this.result=this.result*Math.pow(w,N)+parseInt(T.substr(_,N),w),this.consumed+=N}},E.prototype.stateNumericHex=function(T,_){for(var I=_;_<T.length;){var w=T.charCodeAt(_);if(d(w)||f(w))_+=1;else return this.addToNumericResult(T,I,_,16),this.emitNumericEntity(w,3)}return this.addToNumericResult(T,I,_,16),-1},E.prototype.stateNumericDecimal=function(T,_){for(var I=_;_<T.length;){var w=T.charCodeAt(_);if(d(w))_+=1;else return this.addToNumericResult(T,I,_,10),this.emitNumericEntity(w,2)}return this.addToNumericResult(T,I,_,10),-1},E.prototype.emitNumericEntity=function(T,_){var I;if(this.consumed<=_)return(I=this.errors)===null||I===void 0||I.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(T===l.SEMI)this.consumed+=1;else if(this.decodeMode===y.Strict)return 0;return this.emitCodePoint((0,a.replaceCodePoint)(this.result),this.consumed),this.errors&&(T!==l.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed},E.prototype.stateNamedEntity=function(T,_){for(var I=this.decodeTree,w=I[this.treeIndex],N=(w&p.VALUE_LENGTH)>>14;_<T.length;_++,this.excess++){var A=T.charCodeAt(_);if(this.treeIndex=S(I,w,this.treeIndex+Math.max(1,N),A),this.treeIndex<0)return this.result===0||this.decodeMode===y.Attribute&&(N===0||m(A))?0:this.emitNotTerminatedNamedEntity();if(w=I[this.treeIndex],N=(w&p.VALUE_LENGTH)>>14,N!==0){if(A===l.SEMI)return this.emitNamedEntityData(this.treeIndex,N,this.consumed+this.excess);this.decodeMode!==y.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1},E.prototype.emitNotTerminatedNamedEntity=function(){var T,_=this,I=_.result,w=_.decodeTree,N=(w[I]&p.VALUE_LENGTH)>>14;return this.emitNamedEntityData(I,N,this.consumed),(T=this.errors)===null||T===void 0||T.missingSemicolonAfterCharacterReference(),this.consumed},E.prototype.emitNamedEntityData=function(T,_,I){var w=this.decodeTree;return this.emitCodePoint(_===1?w[T]&~p.VALUE_LENGTH:w[T+1],I),_===3&&this.emitCodePoint(w[T+2],I),I},E.prototype.end=function(){var T;switch(this.state){case b.NamedEntity:return this.result!==0&&(this.decodeMode!==y.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case b.NumericDecimal:return this.emitNumericEntity(0,2);case b.NumericHex:return this.emitNumericEntity(0,3);case b.NumericStart:return(T=this.errors)===null||T===void 0||T.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case b.EntityStart:return 0}},E}();t.EntityDecoder=v;function C(E){var T="",_=new v(E,function(I){return T+=(0,a.fromCodePoint)(I)});return function(w,N){for(var A=0,P=0;(P=w.indexOf("&",P))>=0;){T+=w.slice(A,P),_.startEntity(N);var B=_.write(w,P+1);if(B<0){A=P+_.end();break}A=P+B,P=B===0?A+1:A}var U=T+w.slice(A);return T="",U}}function S(E,T,_,I){var w=(T&p.BRANCH_LENGTH)>>7,N=T&p.JUMP_TABLE;if(w===0)return N!==0&&I===N?_:-1;if(N){var A=I-N;return A<0||A>=w?-1:E[_+A]-1}for(var P=_,B=P+w-1;P<=B;){var U=P+B>>>1,le=E[U];if(le<I)P=U+1;else if(le>I)B=U-1;else return E[U+w]}return-1}t.determineBranch=S;var O=C(u.default),k=C(o.default);function R(E,T){return T===void 0&&(T=y.Legacy),O(E,T)}t.decodeHTML=R;function D(E){return O(E,y.Attribute)}t.decodeHTMLAttribute=D;function $(E){return O(E,y.Strict)}t.decodeHTMLStrict=$;function L(E){return k(E,y.Strict)}t.decodeXML=L})(_r);(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.QuoteType=void 0;var e=_r,r;(function(d){d[d.Tab=9]="Tab",d[d.NewLine=10]="NewLine",d[d.FormFeed=12]="FormFeed",d[d.CarriageReturn=13]="CarriageReturn",d[d.Space=32]="Space",d[d.ExclamationMark=33]="ExclamationMark",d[d.Number=35]="Number",d[d.Amp=38]="Amp",d[d.SingleQuote=39]="SingleQuote",d[d.DoubleQuote=34]="DoubleQuote",d[d.Dash=45]="Dash",d[d.Slash=47]="Slash",d[d.Zero=48]="Zero",d[d.Nine=57]="Nine",d[d.Semi=59]="Semi",d[d.Lt=60]="Lt",d[d.Eq=61]="Eq",d[d.Gt=62]="Gt",d[d.Questionmark=63]="Questionmark",d[d.UpperA=65]="UpperA",d[d.LowerA=97]="LowerA",d[d.UpperF=70]="UpperF",d[d.LowerF=102]="LowerF",d[d.UpperZ=90]="UpperZ",d[d.LowerZ=122]="LowerZ",d[d.LowerX=120]="LowerX",d[d.OpeningSquareBracket=91]="OpeningSquareBracket"})(r||(r={}));var n;(function(d){d[d.Text=1]="Text",d[d.BeforeTagName=2]="BeforeTagName",d[d.InTagName=3]="InTagName",d[d.InSelfClosingTag=4]="InSelfClosingTag",d[d.BeforeClosingTagName=5]="BeforeClosingTagName",d[d.InClosingTagName=6]="InClosingTagName",d[d.AfterClosingTagName=7]="AfterClosingTagName",d[d.BeforeAttributeName=8]="BeforeAttributeName",d[d.InAttributeName=9]="InAttributeName",d[d.AfterAttributeName=10]="AfterAttributeName",d[d.BeforeAttributeValue=11]="BeforeAttributeValue",d[d.InAttributeValueDq=12]="InAttributeValueDq",d[d.InAttributeValueSq=13]="InAttributeValueSq",d[d.InAttributeValueNq=14]="InAttributeValueNq",d[d.BeforeDeclaration=15]="BeforeDeclaration",d[d.InDeclaration=16]="InDeclaration",d[d.InProcessingInstruction=17]="InProcessingInstruction",d[d.BeforeComment=18]="BeforeComment",d[d.CDATASequence=19]="CDATASequence",d[d.InSpecialComment=20]="InSpecialComment",d[d.InCommentLike=21]="InCommentLike",d[d.BeforeSpecialS=22]="BeforeSpecialS",d[d.SpecialStartSequence=23]="SpecialStartSequence",d[d.InSpecialTag=24]="InSpecialTag",d[d.BeforeEntity=25]="BeforeEntity",d[d.BeforeNumericEntity=26]="BeforeNumericEntity",d[d.InNamedEntity=27]="InNamedEntity",d[d.InNumericEntity=28]="InNumericEntity",d[d.InHexEntity=29]="InHexEntity"})(n||(n={}));function i(d){return d===r.Space||d===r.NewLine||d===r.Tab||d===r.FormFeed||d===r.CarriageReturn}function u(d){return d===r.Slash||d===r.Gt||i(d)}function o(d){return d>=r.Zero&&d<=r.Nine}function a(d){return d>=r.LowerA&&d<=r.LowerZ||d>=r.UpperA&&d<=r.UpperZ}function s(d){return d>=r.UpperA&&d<=r.UpperF||d>=r.LowerA&&d<=r.LowerF}var l;(function(d){d[d.NoValue=0]="NoValue",d[d.Unquoted=1]="Unquoted",d[d.Single=2]="Single",d[d.Double=3]="Double"})(l=t.QuoteType||(t.QuoteType={}));var c={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101])},p=function(){function d(f,g){var m=f.xmlMode,b=m===void 0?!1:m,y=f.decodeEntities,v=y===void 0?!0:y;this.cbs=g,this.state=n.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=n.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.currentSequence=void 0,this.sequenceIndex=0,this.trieIndex=0,this.trieCurrent=0,this.entityResult=0,this.entityExcess=0,this.xmlMode=b,this.decodeEntities=v,this.entityTrie=b?e.xmlDecodeTree:e.htmlDecodeTree}return d.prototype.reset=function(){this.state=n.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=n.Text,this.currentSequence=void 0,this.running=!0,this.offset=0},d.prototype.write=function(f){this.offset+=this.buffer.length,this.buffer=f,this.parse()},d.prototype.end=function(){this.running&&this.finish()},d.prototype.pause=function(){this.running=!1},d.prototype.resume=function(){this.running=!0,this.index<this.buffer.length+this.offset&&this.parse()},d.prototype.getIndex=function(){return this.index},d.prototype.getSectionStart=function(){return this.sectionStart},d.prototype.stateText=function(f){f===r.Lt||!this.decodeEntities&&this.fastForwardTo(r.Lt)?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=n.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&f===r.Amp&&(this.state=n.BeforeEntity)},d.prototype.stateSpecialStartSequence=function(f){var g=this.sequenceIndex===this.currentSequence.length,m=g?u(f):(f|32)===this.currentSequence[this.sequenceIndex];if(!m)this.isSpecial=!1;else if(!g){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=n.InTagName,this.stateInTagName(f)},d.prototype.stateInSpecialTag=function(f){if(this.sequenceIndex===this.currentSequence.length){if(f===r.Gt||i(f)){var g=this.index-this.currentSequence.length;if(this.sectionStart<g){var m=this.index;this.index=g,this.cbs.ontext(this.sectionStart,g),this.index=m}this.isSpecial=!1,this.sectionStart=g+2,this.stateInClosingTagName(f);return}this.sequenceIndex=0}(f|32)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:this.sequenceIndex===0?this.currentSequence===c.TitleEnd?this.decodeEntities&&f===r.Amp&&(this.state=n.BeforeEntity):this.fastForwardTo(r.Lt)&&(this.sequenceIndex=1):this.sequenceIndex=+(f===r.Lt)},d.prototype.stateCDATASequence=function(f){f===c.Cdata[this.sequenceIndex]?++this.sequenceIndex===c.Cdata.length&&(this.state=n.InCommentLike,this.currentSequence=c.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=n.InDeclaration,this.stateInDeclaration(f))},d.prototype.fastForwardTo=function(f){for(;++this.index<this.buffer.length+this.offset;)if(this.buffer.charCodeAt(this.index-this.offset)===f)return!0;return this.index=this.buffer.length+this.offset-1,!1},d.prototype.stateInCommentLike=function(f){f===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===c.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index,2):this.cbs.oncomment(this.sectionStart,this.index,2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=n.Text):this.sequenceIndex===0?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):f!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)},d.prototype.isTagStartChar=function(f){return this.xmlMode?!u(f):a(f)},d.prototype.startSpecial=function(f,g){this.isSpecial=!0,this.currentSequence=f,this.sequenceIndex=g,this.state=n.SpecialStartSequence},d.prototype.stateBeforeTagName=function(f){if(f===r.ExclamationMark)this.state=n.BeforeDeclaration,this.sectionStart=this.index+1;else if(f===r.Questionmark)this.state=n.InProcessingInstruction,this.sectionStart=this.index+1;else if(this.isTagStartChar(f)){var g=f|32;this.sectionStart=this.index,!this.xmlMode&&g===c.TitleEnd[2]?this.startSpecial(c.TitleEnd,3):this.state=!this.xmlMode&&g===c.ScriptEnd[2]?n.BeforeSpecialS:n.InTagName}else f===r.Slash?this.state=n.BeforeClosingTagName:(this.state=n.Text,this.stateText(f))},d.prototype.stateInTagName=function(f){u(f)&&(this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=n.BeforeAttributeName,this.stateBeforeAttributeName(f))},d.prototype.stateBeforeClosingTagName=function(f){i(f)||(f===r.Gt?this.state=n.Text:(this.state=this.isTagStartChar(f)?n.InClosingTagName:n.InSpecialComment,this.sectionStart=this.index))},d.prototype.stateInClosingTagName=function(f){(f===r.Gt||i(f))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=n.AfterClosingTagName,this.stateAfterClosingTagName(f))},d.prototype.stateAfterClosingTagName=function(f){(f===r.Gt||this.fastForwardTo(r.Gt))&&(this.state=n.Text,this.baseState=n.Text,this.sectionStart=this.index+1)},d.prototype.stateBeforeAttributeName=function(f){f===r.Gt?(this.cbs.onopentagend(this.index),this.isSpecial?(this.state=n.InSpecialTag,this.sequenceIndex=0):this.state=n.Text,this.baseState=this.state,this.sectionStart=this.index+1):f===r.Slash?this.state=n.InSelfClosingTag:i(f)||(this.state=n.InAttributeName,this.sectionStart=this.index)},d.prototype.stateInSelfClosingTag=function(f){f===r.Gt?(this.cbs.onselfclosingtag(this.index),this.state=n.Text,this.baseState=n.Text,this.sectionStart=this.index+1,this.isSpecial=!1):i(f)||(this.state=n.BeforeAttributeName,this.stateBeforeAttributeName(f))},d.prototype.stateInAttributeName=function(f){(f===r.Eq||u(f))&&(this.cbs.onattribname(this.sectionStart,this.index),this.sectionStart=-1,this.state=n.AfterAttributeName,this.stateAfterAttributeName(f))},d.prototype.stateAfterAttributeName=function(f){f===r.Eq?this.state=n.BeforeAttributeValue:f===r.Slash||f===r.Gt?(this.cbs.onattribend(l.NoValue,this.index),this.state=n.BeforeAttributeName,this.stateBeforeAttributeName(f)):i(f)||(this.cbs.onattribend(l.NoValue,this.index),this.state=n.InAttributeName,this.sectionStart=this.index)},d.prototype.stateBeforeAttributeValue=function(f){f===r.DoubleQuote?(this.state=n.InAttributeValueDq,this.sectionStart=this.index+1):f===r.SingleQuote?(this.state=n.InAttributeValueSq,this.sectionStart=this.index+1):i(f)||(this.sectionStart=this.index,this.state=n.InAttributeValueNq,this.stateInAttributeValueNoQuotes(f))},d.prototype.handleInAttributeValue=function(f,g){f===g||!this.decodeEntities&&this.fastForwardTo(g)?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(g===r.DoubleQuote?l.Double:l.Single,this.index),this.state=n.BeforeAttributeName):this.decodeEntities&&f===r.Amp&&(this.baseState=this.state,this.state=n.BeforeEntity)},d.prototype.stateInAttributeValueDoubleQuotes=function(f){this.handleInAttributeValue(f,r.DoubleQuote)},d.prototype.stateInAttributeValueSingleQuotes=function(f){this.handleInAttributeValue(f,r.SingleQuote)},d.prototype.stateInAttributeValueNoQuotes=function(f){i(f)||f===r.Gt?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(l.Unquoted,this.index),this.state=n.BeforeAttributeName,this.stateBeforeAttributeName(f)):this.decodeEntities&&f===r.Amp&&(this.baseState=this.state,this.state=n.BeforeEntity)},d.prototype.stateBeforeDeclaration=function(f){f===r.OpeningSquareBracket?(this.state=n.CDATASequence,this.sequenceIndex=0):this.state=f===r.Dash?n.BeforeComment:n.InDeclaration},d.prototype.stateInDeclaration=function(f){(f===r.Gt||this.fastForwardTo(r.Gt))&&(this.cbs.ondeclaration(this.sectionStart,this.index),this.state=n.Text,this.sectionStart=this.index+1)},d.prototype.stateInProcessingInstruction=function(f){(f===r.Gt||this.fastForwardTo(r.Gt))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=n.Text,this.sectionStart=this.index+1)},d.prototype.stateBeforeComment=function(f){f===r.Dash?(this.state=n.InCommentLike,this.currentSequence=c.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=n.InDeclaration},d.prototype.stateInSpecialComment=function(f){(f===r.Gt||this.fastForwardTo(r.Gt))&&(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=n.Text,this.sectionStart=this.index+1)},d.prototype.stateBeforeSpecialS=function(f){var g=f|32;g===c.ScriptEnd[3]?this.startSpecial(c.ScriptEnd,4):g===c.StyleEnd[3]?this.startSpecial(c.StyleEnd,4):(this.state=n.InTagName,this.stateInTagName(f))},d.prototype.stateBeforeEntity=function(f){this.entityExcess=1,this.entityResult=0,f===r.Number?this.state=n.BeforeNumericEntity:f===r.Amp||(this.trieIndex=0,this.trieCurrent=this.entityTrie[0],this.state=n.InNamedEntity,this.stateInNamedEntity(f))},d.prototype.stateInNamedEntity=function(f){if(this.entityExcess+=1,this.trieIndex=(0,e.determineBranch)(this.entityTrie,this.trieCurrent,this.trieIndex+1,f),this.trieIndex<0){this.emitNamedEntity(),this.index--;return}this.trieCurrent=this.entityTrie[this.trieIndex];var g=this.trieCurrent&e.BinTrieFlags.VALUE_LENGTH;if(g){var m=(g>>14)-1;if(!this.allowLegacyEntity()&&f!==r.Semi)this.trieIndex+=m;else{var b=this.index-this.entityExcess+1;b>this.sectionStart&&this.emitPartial(this.sectionStart,b),this.entityResult=this.trieIndex,this.trieIndex+=m,this.entityExcess=0,this.sectionStart=this.index+1,m===0&&this.emitNamedEntity()}}},d.prototype.emitNamedEntity=function(){if(this.state=this.baseState,this.entityResult!==0){var f=(this.entityTrie[this.entityResult]&e.BinTrieFlags.VALUE_LENGTH)>>14;switch(f){case 1:{this.emitCodePoint(this.entityTrie[this.entityResult]&~e.BinTrieFlags.VALUE_LENGTH);break}case 2:{this.emitCodePoint(this.entityTrie[this.entityResult+1]);break}case 3:this.emitCodePoint(this.entityTrie[this.entityResult+1]),this.emitCodePoint(this.entityTrie[this.entityResult+2])}}},d.prototype.stateBeforeNumericEntity=function(f){(f|32)===r.LowerX?(this.entityExcess++,this.state=n.InHexEntity):(this.state=n.InNumericEntity,this.stateInNumericEntity(f))},d.prototype.emitNumericEntity=function(f){var g=this.index-this.entityExcess-1,m=g+2+ +(this.state===n.InHexEntity);m!==this.index&&(g>this.sectionStart&&this.emitPartial(this.sectionStart,g),this.sectionStart=this.index+Number(f),this.emitCodePoint((0,e.replaceCodePoint)(this.entityResult))),this.state=this.baseState},d.prototype.stateInNumericEntity=function(f){f===r.Semi?this.emitNumericEntity(!0):o(f)?(this.entityResult=this.entityResult*10+(f-r.Zero),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},d.prototype.stateInHexEntity=function(f){f===r.Semi?this.emitNumericEntity(!0):o(f)?(this.entityResult=this.entityResult*16+(f-r.Zero),this.entityExcess++):s(f)?(this.entityResult=this.entityResult*16+((f|32)-r.LowerA+10),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},d.prototype.allowLegacyEntity=function(){return!this.xmlMode&&(this.baseState===n.Text||this.baseState===n.InSpecialTag)},d.prototype.cleanup=function(){this.running&&this.sectionStart!==this.index&&(this.state===n.Text||this.state===n.InSpecialTag&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===n.InAttributeValueDq||this.state===n.InAttributeValueSq||this.state===n.InAttributeValueNq)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))},d.prototype.shouldContinue=function(){return this.index<this.buffer.length+this.offset&&this.running},d.prototype.parse=function(){for(;this.shouldContinue();){var f=this.buffer.charCodeAt(this.index-this.offset);switch(this.state){case n.Text:{this.stateText(f);break}case n.SpecialStartSequence:{this.stateSpecialStartSequence(f);break}case n.InSpecialTag:{this.stateInSpecialTag(f);break}case n.CDATASequence:{this.stateCDATASequence(f);break}case n.InAttributeValueDq:{this.stateInAttributeValueDoubleQuotes(f);break}case n.InAttributeName:{this.stateInAttributeName(f);break}case n.InCommentLike:{this.stateInCommentLike(f);break}case n.InSpecialComment:{this.stateInSpecialComment(f);break}case n.BeforeAttributeName:{this.stateBeforeAttributeName(f);break}case n.InTagName:{this.stateInTagName(f);break}case n.InClosingTagName:{this.stateInClosingTagName(f);break}case n.BeforeTagName:{this.stateBeforeTagName(f);break}case n.AfterAttributeName:{this.stateAfterAttributeName(f);break}case n.InAttributeValueSq:{this.stateInAttributeValueSingleQuotes(f);break}case n.BeforeAttributeValue:{this.stateBeforeAttributeValue(f);break}case n.BeforeClosingTagName:{this.stateBeforeClosingTagName(f);break}case n.AfterClosingTagName:{this.stateAfterClosingTagName(f);break}case n.BeforeSpecialS:{this.stateBeforeSpecialS(f);break}case n.InAttributeValueNq:{this.stateInAttributeValueNoQuotes(f);break}case n.InSelfClosingTag:{this.stateInSelfClosingTag(f);break}case n.InDeclaration:{this.stateInDeclaration(f);break}case n.BeforeDeclaration:{this.stateBeforeDeclaration(f);break}case n.BeforeComment:{this.stateBeforeComment(f);break}case n.InProcessingInstruction:{this.stateInProcessingInstruction(f);break}case n.InNamedEntity:{this.stateInNamedEntity(f);break}case n.BeforeEntity:{this.stateBeforeEntity(f);break}case n.InHexEntity:{this.stateInHexEntity(f);break}case n.InNumericEntity:{this.stateInNumericEntity(f);break}default:this.stateBeforeNumericEntity(f)}this.index++}this.cleanup()},d.prototype.finish=function(){this.state===n.InNamedEntity&&this.emitNamedEntity(),this.sectionStart<this.index&&this.handleTrailingData(),this.cbs.onend()},d.prototype.handleTrailingData=function(){var f=this.buffer.length+this.offset;this.state===n.InCommentLike?this.currentSequence===c.CdataEnd?this.cbs.oncdata(this.sectionStart,f,0):this.cbs.oncomment(this.sectionStart,f,0):this.state===n.InNumericEntity&&this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state===n.InHexEntity&&this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state===n.InTagName||this.state===n.BeforeAttributeName||this.state===n.BeforeAttributeValue||this.state===n.AfterAttributeName||this.state===n.InAttributeName||this.state===n.InAttributeValueSq||this.state===n.InAttributeValueDq||this.state===n.InAttributeValueNq||this.state===n.InClosingTagName||this.cbs.ontext(this.sectionStart,f)},d.prototype.emitPartial=function(f,g){this.baseState!==n.Text&&this.baseState!==n.InSpecialTag?this.cbs.onattribdata(f,g):this.cbs.ontext(f,g)},d.prototype.emitCodePoint=function(f){this.baseState!==n.Text&&this.baseState!==n.InSpecialTag?this.cbs.onattribentity(f):this.cbs.ontextentity(f)},d}();t.default=p})(Co);var Ox=M&&M.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),Nx=M&&M.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),jx=M&&M.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Ox(e,t,r);return Nx(e,t),e};Object.defineProperty(jr,"__esModule",{value:!0});jr.Parser=void 0;var Qr=jx(Co),gs=_r,Pt=new Set(["input","option","optgroup","select","button","datalist","textarea"]),K=new Set(["p"]),ms=new Set(["thead","tbody"]),ys=new Set(["dd","dt"]),vs=new Set(["rt","rp"]),_x=new Map([["tr",new Set(["tr","th","td"])],["th",new Set(["th"])],["td",new Set(["thead","th","td"])],["body",new Set(["head","link","script"])],["li",new Set(["li"])],["p",K],["h1",K],["h2",K],["h3",K],["h4",K],["h5",K],["h6",K],["select",Pt],["input",Pt],["output",Pt],["button",Pt],["datalist",Pt],["textarea",Pt],["option",new Set(["option"])],["optgroup",new Set(["optgroup","option"])],["dd",ys],["dt",ys],["address",K],["article",K],["aside",K],["blockquote",K],["details",K],["div",K],["dl",K],["fieldset",K],["figcaption",K],["figure",K],["footer",K],["form",K],["header",K],["hr",K],["main",K],["nav",K],["ol",K],["pre",K],["section",K],["table",K],["ul",K],["rt",vs],["rp",vs],["tbody",ms],["tfoot",ms]]),Px=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),xs=new Set(["math","svg"]),ws=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignobject","desc","title"]),kx=/\s|\//,Rx=function(){function t(e,r){r===void 0&&(r={});var n,i,u,o,a;this.options=r,this.startIndex=0,this.endIndex=0,this.openTagStart=0,this.tagname="",this.attribname="",this.attribvalue="",this.attribs=null,this.stack=[],this.foreignContext=[],this.buffers=[],this.bufferOffset=0,this.writeIndex=0,this.ended=!1,this.cbs=e??{},this.lowerCaseTagNames=(n=r.lowerCaseTags)!==null&&n!==void 0?n:!r.xmlMode,this.lowerCaseAttributeNames=(i=r.lowerCaseAttributeNames)!==null&&i!==void 0?i:!r.xmlMode,this.tokenizer=new((u=r.Tokenizer)!==null&&u!==void 0?u:Qr.default)(this.options,this),(a=(o=this.cbs).onparserinit)===null||a===void 0||a.call(o,this)}return t.prototype.ontext=function(e,r){var n,i,u=this.getSlice(e,r);this.endIndex=r-1,(i=(n=this.cbs).ontext)===null||i===void 0||i.call(n,u),this.startIndex=r},t.prototype.ontextentity=function(e){var r,n,i=this.tokenizer.getSectionStart();this.endIndex=i-1,(n=(r=this.cbs).ontext)===null||n===void 0||n.call(r,(0,gs.fromCodePoint)(e)),this.startIndex=i},t.prototype.isVoidElement=function(e){return!this.options.xmlMode&&Px.has(e)},t.prototype.onopentagname=function(e,r){this.endIndex=r;var n=this.getSlice(e,r);this.lowerCaseTagNames&&(n=n.toLowerCase()),this.emitOpenTag(n)},t.prototype.emitOpenTag=function(e){var r,n,i,u;this.openTagStart=this.startIndex,this.tagname=e;var o=!this.options.xmlMode&&_x.get(e);if(o)for(;this.stack.length>0&&o.has(this.stack[this.stack.length-1]);){var a=this.stack.pop();(n=(r=this.cbs).onclosetag)===null||n===void 0||n.call(r,a,!0)}this.isVoidElement(e)||(this.stack.push(e),xs.has(e)?this.foreignContext.push(!0):ws.has(e)&&this.foreignContext.push(!1)),(u=(i=this.cbs).onopentagname)===null||u===void 0||u.call(i,e),this.cbs.onopentag&&(this.attribs={})},t.prototype.endOpenTag=function(e){var r,n;this.startIndex=this.openTagStart,this.attribs&&((n=(r=this.cbs).onopentag)===null||n===void 0||n.call(r,this.tagname,this.attribs,e),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""},t.prototype.onopentagend=function(e){this.endIndex=e,this.endOpenTag(!1),this.startIndex=e+1},t.prototype.onclosetag=function(e,r){var n,i,u,o,a,s;this.endIndex=r;var l=this.getSlice(e,r);if(this.lowerCaseTagNames&&(l=l.toLowerCase()),(xs.has(l)||ws.has(l))&&this.foreignContext.pop(),this.isVoidElement(l))!this.options.xmlMode&&l==="br"&&((i=(n=this.cbs).onopentagname)===null||i===void 0||i.call(n,"br"),(o=(u=this.cbs).onopentag)===null||o===void 0||o.call(u,"br",{},!0),(s=(a=this.cbs).onclosetag)===null||s===void 0||s.call(a,"br",!1));else{var c=this.stack.lastIndexOf(l);if(c!==-1)if(this.cbs.onclosetag)for(var p=this.stack.length-c;p--;)this.cbs.onclosetag(this.stack.pop(),p!==0);else this.stack.length=c;else!this.options.xmlMode&&l==="p"&&(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=r+1},t.prototype.onselfclosingtag=function(e){this.endIndex=e,this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?(this.closeCurrentTag(!1),this.startIndex=e+1):this.onopentagend(e)},t.prototype.closeCurrentTag=function(e){var r,n,i=this.tagname;this.endOpenTag(e),this.stack[this.stack.length-1]===i&&((n=(r=this.cbs).onclosetag)===null||n===void 0||n.call(r,i,!e),this.stack.pop())},t.prototype.onattribname=function(e,r){this.startIndex=e;var n=this.getSlice(e,r);this.attribname=this.lowerCaseAttributeNames?n.toLowerCase():n},t.prototype.onattribdata=function(e,r){this.attribvalue+=this.getSlice(e,r)},t.prototype.onattribentity=function(e){this.attribvalue+=(0,gs.fromCodePoint)(e)},t.prototype.onattribend=function(e,r){var n,i;this.endIndex=r,(i=(n=this.cbs).onattribute)===null||i===void 0||i.call(n,this.attribname,this.attribvalue,e===Qr.QuoteType.Double?'"':e===Qr.QuoteType.Single?"'":e===Qr.QuoteType.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""},t.prototype.getInstructionName=function(e){var r=e.search(kx),n=r<0?e:e.substr(0,r);return this.lowerCaseTagNames&&(n=n.toLowerCase()),n},t.prototype.ondeclaration=function(e,r){this.endIndex=r;var n=this.getSlice(e,r);if(this.cbs.onprocessinginstruction){var i=this.getInstructionName(n);this.cbs.onprocessinginstruction("!".concat(i),"!".concat(n))}this.startIndex=r+1},t.prototype.onprocessinginstruction=function(e,r){this.endIndex=r;var n=this.getSlice(e,r);if(this.cbs.onprocessinginstruction){var i=this.getInstructionName(n);this.cbs.onprocessinginstruction("?".concat(i),"?".concat(n))}this.startIndex=r+1},t.prototype.oncomment=function(e,r,n){var i,u,o,a;this.endIndex=r,(u=(i=this.cbs).oncomment)===null||u===void 0||u.call(i,this.getSlice(e,r-n)),(a=(o=this.cbs).oncommentend)===null||a===void 0||a.call(o),this.startIndex=r+1},t.prototype.oncdata=function(e,r,n){var i,u,o,a,s,l,c,p,d,f;this.endIndex=r;var g=this.getSlice(e,r-n);this.options.xmlMode||this.options.recognizeCDATA?((u=(i=this.cbs).oncdatastart)===null||u===void 0||u.call(i),(a=(o=this.cbs).ontext)===null||a===void 0||a.call(o,g),(l=(s=this.cbs).oncdataend)===null||l===void 0||l.call(s)):((p=(c=this.cbs).oncomment)===null||p===void 0||p.call(c,"[CDATA[".concat(g,"]]")),(f=(d=this.cbs).oncommentend)===null||f===void 0||f.call(d)),this.startIndex=r+1},t.prototype.onend=function(){var e,r;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(var n=this.stack.length;n>0;this.cbs.onclosetag(this.stack[--n],!0));}(r=(e=this.cbs).onend)===null||r===void 0||r.call(e)},t.prototype.reset=function(){var e,r,n,i;(r=(e=this.cbs).onreset)===null||r===void 0||r.call(e),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,(i=(n=this.cbs).onparserinit)===null||i===void 0||i.call(n,this),this.buffers.length=0,this.bufferOffset=0,this.writeIndex=0,this.ended=!1},t.prototype.parseComplete=function(e){this.reset(),this.end(e)},t.prototype.getSlice=function(e,r){for(;e-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();for(var n=this.buffers[0].slice(e-this.bufferOffset,r-this.bufferOffset);r-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),n+=this.buffers[0].slice(0,r-this.bufferOffset);return n},t.prototype.shiftBuffer=function(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()},t.prototype.write=function(e){var r,n;if(this.ended){(n=(r=this.cbs).onerror)===null||n===void 0||n.call(r,new Error(".write() after done!"));return}this.buffers.push(e),this.tokenizer.running&&(this.tokenizer.write(e),this.writeIndex++)},t.prototype.end=function(e){var r,n;if(this.ended){(n=(r=this.cbs).onerror)===null||n===void 0||n.call(r,new Error(".end() after done!"));return}e&&this.write(e),this.ended=!0,this.tokenizer.end()},t.prototype.pause=function(){this.tokenizer.pause()},t.prototype.resume=function(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex<this.buffers.length;)this.tokenizer.write(this.buffers[this.writeIndex++]);this.ended&&this.tokenizer.end()},t.prototype.parseChunk=function(e){this.write(e)},t.prototype.done=function(e){this.end(e)},t}();jr.Parser=Rx;var et={},or={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0;var e;(function(n){n.Root="root",n.Text="text",n.Directive="directive",n.Comment="comment",n.Script="script",n.Style="style",n.Tag="tag",n.CDATA="cdata",n.Doctype="doctype"})(e=t.ElementType||(t.ElementType={}));function r(n){return n.type===e.Tag||n.type===e.Script||n.type===e.Style}t.isTag=r,t.Root=e.Root,t.Text=e.Text,t.Directive=e.Directive,t.Comment=e.Comment,t.Script=e.Script,t.Style=e.Style,t.Tag=e.Tag,t.CDATA=e.CDATA,t.Doctype=e.Doctype})(or);var z={},pt=M&&M.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(n[u]=i[u])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),yr=M&&M.__assign||function(){return yr=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++){e=arguments[r];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},yr.apply(this,arguments)};Object.defineProperty(z,"__esModule",{value:!0});z.cloneNode=z.hasChildren=z.isDocument=z.isDirective=z.isComment=z.isText=z.isCDATA=z.isTag=z.Element=z.Document=z.CDATA=z.NodeWithChildren=z.ProcessingInstruction=z.Comment=z.Text=z.DataNode=z.Node=void 0;var be=or,Oo=function(){function t(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.parent},set:function(e){this.parent=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"previousSibling",{get:function(){return this.prev},set:function(e){this.prev=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"nextSibling",{get:function(){return this.next},set:function(e){this.next=e},enumerable:!1,configurable:!0}),t.prototype.cloneNode=function(e){return e===void 0&&(e=!1),No(this,e)},t}();z.Node=Oo;var pi=function(t){pt(e,t);function e(r){var n=t.call(this)||this;return n.data=r,n}return Object.defineProperty(e.prototype,"nodeValue",{get:function(){return this.data},set:function(r){this.data=r},enumerable:!1,configurable:!0}),e}(Oo);z.DataNode=pi;var Dc=function(t){pt(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=be.ElementType.Text,r}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),e}(pi);z.Text=Dc;var Lc=function(t){pt(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=be.ElementType.Comment,r}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),e}(pi);z.Comment=Lc;var Mc=function(t){pt(e,t);function e(r,n){var i=t.call(this,n)||this;return i.name=r,i.type=be.ElementType.Directive,i}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),e}(pi);z.ProcessingInstruction=Mc;var hi=function(t){pt(e,t);function e(r){var n=t.call(this)||this;return n.children=r,n}return Object.defineProperty(e.prototype,"firstChild",{get:function(){var r;return(r=this.children[0])!==null&&r!==void 0?r:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"childNodes",{get:function(){return this.children},set:function(r){this.children=r},enumerable:!1,configurable:!0}),e}(Oo);z.NodeWithChildren=hi;var $c=function(t){pt(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=be.ElementType.CDATA,r}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),e}(hi);z.CDATA=$c;var Bc=function(t){pt(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=be.ElementType.Root,r}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),e}(hi);z.Document=Bc;var qc=function(t){pt(e,t);function e(r,n,i,u){i===void 0&&(i=[]),u===void 0&&(u=r==="script"?be.ElementType.Script:r==="style"?be.ElementType.Style:be.ElementType.Tag);var o=t.call(this,i)||this;return o.name=r,o.attribs=n,o.type=u,o}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tagName",{get:function(){return this.name},set:function(r){this.name=r},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"attributes",{get:function(){var r=this;return Object.keys(this.attribs).map(function(n){var i,u;return{name:n,value:r.attribs[n],namespace:(i=r["x-attribsNamespace"])===null||i===void 0?void 0:i[n],prefix:(u=r["x-attribsPrefix"])===null||u===void 0?void 0:u[n]}})},enumerable:!1,configurable:!0}),e}(hi);z.Element=qc;function Hc(t){return(0,be.isTag)(t)}z.isTag=Hc;function Fc(t){return t.type===be.ElementType.CDATA}z.isCDATA=Fc;function zc(t){return t.type===be.ElementType.Text}z.isText=zc;function Uc(t){return t.type===be.ElementType.Comment}z.isComment=Uc;function Vc(t){return t.type===be.ElementType.Directive}z.isDirective=Vc;function Wc(t){return t.type===be.ElementType.Root}z.isDocument=Wc;function Ix(t){return Object.prototype.hasOwnProperty.call(t,"children")}z.hasChildren=Ix;function No(t,e){e===void 0&&(e=!1);var r;if(zc(t))r=new Dc(t.data);else if(Uc(t))r=new Lc(t.data);else if(Hc(t)){var n=e?Di(t.children):[],i=new qc(t.name,yr({},t.attribs),n);n.forEach(function(s){return s.parent=i}),t.namespace!=null&&(i.namespace=t.namespace),t["x-attribsNamespace"]&&(i["x-attribsNamespace"]=yr({},t["x-attribsNamespace"])),t["x-attribsPrefix"]&&(i["x-attribsPrefix"]=yr({},t["x-attribsPrefix"])),r=i}else if(Fc(t)){var n=e?Di(t.children):[],u=new $c(n);n.forEach(function(l){return l.parent=u}),r=u}else if(Wc(t)){var n=e?Di(t.children):[],o=new Bc(n);n.forEach(function(l){return l.parent=o}),t["x-mode"]&&(o["x-mode"]=t["x-mode"]),r=o}else if(Vc(t)){var a=new Mc(t.name,t.data);t["x-name"]!=null&&(a["x-name"]=t["x-name"],a["x-publicId"]=t["x-publicId"],a["x-systemId"]=t["x-systemId"]),r=a}else throw new Error("Not implemented yet: ".concat(t.type));return r.startIndex=t.startIndex,r.endIndex=t.endIndex,t.sourceCodeLocation!=null&&(r.sourceCodeLocation=t.sourceCodeLocation),r}z.cloneNode=No;function Di(t){for(var e=t.map(function(n){return No(n,!0)}),r=1;r<e.length;r++)e[r].prev=e[r-1],e[r-1].next=e[r];return e}(function(t){var e=M&&M.__createBinding||(Object.create?function(a,s,l,c){c===void 0&&(c=l);var p=Object.getOwnPropertyDescriptor(s,l);(!p||("get"in p?!s.__esModule:p.writable||p.configurable))&&(p={enumerable:!0,get:function(){return s[l]}}),Object.defineProperty(a,c,p)}:function(a,s,l,c){c===void 0&&(c=l),a[c]=s[l]}),r=M&&M.__exportStar||function(a,s){for(var l in a)l!=="default"&&!Object.prototype.hasOwnProperty.call(s,l)&&e(s,a,l)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var n=or,i=z;r(z,t);var u={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},o=function(){function a(s,l,c){this.dom=[],this.root=new i.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof l=="function"&&(c=l,l=u),typeof s=="object"&&(l=s,s=void 0),this.callback=s??null,this.options=l??u,this.elementCB=c??null}return a.prototype.onparserinit=function(s){this.parser=s},a.prototype.onreset=function(){this.dom=[],this.root=new i.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},a.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},a.prototype.onerror=function(s){this.handleCallback(s)},a.prototype.onclosetag=function(){this.lastNode=null;var s=this.tagStack.pop();this.options.withEndIndices&&(s.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(s)},a.prototype.onopentag=function(s,l){var c=this.options.xmlMode?n.ElementType.Tag:void 0,p=new i.Element(s,l,void 0,c);this.addNode(p),this.tagStack.push(p)},a.prototype.ontext=function(s){var l=this.lastNode;if(l&&l.type===n.ElementType.Text)l.data+=s,this.options.withEndIndices&&(l.endIndex=this.parser.endIndex);else{var c=new i.Text(s);this.addNode(c),this.lastNode=c}},a.prototype.oncomment=function(s){if(this.lastNode&&this.lastNode.type===n.ElementType.Comment){this.lastNode.data+=s;return}var l=new i.Comment(s);this.addNode(l),this.lastNode=l},a.prototype.oncommentend=function(){this.lastNode=null},a.prototype.oncdatastart=function(){var s=new i.Text(""),l=new i.CDATA([s]);this.addNode(l),s.parent=l,this.lastNode=s},a.prototype.oncdataend=function(){this.lastNode=null},a.prototype.onprocessinginstruction=function(s,l){var c=new i.ProcessingInstruction(s,l);this.addNode(c)},a.prototype.handleCallback=function(s){if(typeof this.callback=="function")this.callback(s,this.dom);else if(s)throw s},a.prototype.addNode=function(s){var l=this.tagStack[this.tagStack.length-1],c=l.children[l.children.length-1];this.options.withStartIndices&&(s.startIndex=this.parser.startIndex),this.options.withEndIndices&&(s.endIndex=this.parser.endIndex),l.children.push(s),c&&(s.prev=c,c.next=s),s.parent=l,this.lastNode=null},a}();t.DomHandler=o,t.default=o})(et);var fn={},ht={},Br={},Gc={},St={},jo={};Object.defineProperty(jo,"__esModule",{value:!0});function en(t){for(var e=1;e<t.length;e++)t[e][0]+=t[e-1][0]+1;return t}jo.default=new Map(en([[9,"&Tab;"],[0,"&NewLine;"],[22,"&excl;"],[0,"&quot;"],[0,"&num;"],[0,"&dollar;"],[0,"&percnt;"],[0,"&amp;"],[0,"&apos;"],[0,"&lpar;"],[0,"&rpar;"],[0,"&ast;"],[0,"&plus;"],[0,"&comma;"],[1,"&period;"],[0,"&sol;"],[10,"&colon;"],[0,"&semi;"],[0,{v:"&lt;",n:8402,o:"&nvlt;"}],[0,{v:"&equals;",n:8421,o:"&bne;"}],[0,{v:"&gt;",n:8402,o:"&nvgt;"}],[0,"&quest;"],[0,"&commat;"],[26,"&lbrack;"],[0,"&bsol;"],[0,"&rbrack;"],[0,"&Hat;"],[0,"&lowbar;"],[0,"&DiacriticalGrave;"],[5,{n:106,o:"&fjlig;"}],[20,"&lbrace;"],[0,"&verbar;"],[0,"&rbrace;"],[34,"&nbsp;"],[0,"&iexcl;"],[0,"&cent;"],[0,"&pound;"],[0,"&curren;"],[0,"&yen;"],[0,"&brvbar;"],[0,"&sect;"],[0,"&die;"],[0,"&copy;"],[0,"&ordf;"],[0,"&laquo;"],[0,"&not;"],[0,"&shy;"],[0,"&circledR;"],[0,"&macr;"],[0,"&deg;"],[0,"&PlusMinus;"],[0,"&sup2;"],[0,"&sup3;"],[0,"&acute;"],[0,"&micro;"],[0,"&para;"],[0,"&centerdot;"],[0,"&cedil;"],[0,"&sup1;"],[0,"&ordm;"],[0,"&raquo;"],[0,"&frac14;"],[0,"&frac12;"],[0,"&frac34;"],[0,"&iquest;"],[0,"&Agrave;"],[0,"&Aacute;"],[0,"&Acirc;"],[0,"&Atilde;"],[0,"&Auml;"],[0,"&angst;"],[0,"&AElig;"],[0,"&Ccedil;"],[0,"&Egrave;"],[0,"&Eacute;"],[0,"&Ecirc;"],[0,"&Euml;"],[0,"&Igrave;"],[0,"&Iacute;"],[0,"&Icirc;"],[0,"&Iuml;"],[0,"&ETH;"],[0,"&Ntilde;"],[0,"&Ograve;"],[0,"&Oacute;"],[0,"&Ocirc;"],[0,"&Otilde;"],[0,"&Ouml;"],[0,"&times;"],[0,"&Oslash;"],[0,"&Ugrave;"],[0,"&Uacute;"],[0,"&Ucirc;"],[0,"&Uuml;"],[0,"&Yacute;"],[0,"&THORN;"],[0,"&szlig;"],[0,"&agrave;"],[0,"&aacute;"],[0,"&acirc;"],[0,"&atilde;"],[0,"&auml;"],[0,"&aring;"],[0,"&aelig;"],[0,"&ccedil;"],[0,"&egrave;"],[0,"&eacute;"],[0,"&ecirc;"],[0,"&euml;"],[0,"&igrave;"],[0,"&iacute;"],[0,"&icirc;"],[0,"&iuml;"],[0,"&eth;"],[0,"&ntilde;"],[0,"&ograve;"],[0,"&oacute;"],[0,"&ocirc;"],[0,"&otilde;"],[0,"&ouml;"],[0,"&div;"],[0,"&oslash;"],[0,"&ugrave;"],[0,"&uacute;"],[0,"&ucirc;"],[0,"&uuml;"],[0,"&yacute;"],[0,"&thorn;"],[0,"&yuml;"],[0,"&Amacr;"],[0,"&amacr;"],[0,"&Abreve;"],[0,"&abreve;"],[0,"&Aogon;"],[0,"&aogon;"],[0,"&Cacute;"],[0,"&cacute;"],[0,"&Ccirc;"],[0,"&ccirc;"],[0,"&Cdot;"],[0,"&cdot;"],[0,"&Ccaron;"],[0,"&ccaron;"],[0,"&Dcaron;"],[0,"&dcaron;"],[0,"&Dstrok;"],[0,"&dstrok;"],[0,"&Emacr;"],[0,"&emacr;"],[2,"&Edot;"],[0,"&edot;"],[0,"&Eogon;"],[0,"&eogon;"],[0,"&Ecaron;"],[0,"&ecaron;"],[0,"&Gcirc;"],[0,"&gcirc;"],[0,"&Gbreve;"],[0,"&gbreve;"],[0,"&Gdot;"],[0,"&gdot;"],[0,"&Gcedil;"],[1,"&Hcirc;"],[0,"&hcirc;"],[0,"&Hstrok;"],[0,"&hstrok;"],[0,"&Itilde;"],[0,"&itilde;"],[0,"&Imacr;"],[0,"&imacr;"],[2,"&Iogon;"],[0,"&iogon;"],[0,"&Idot;"],[0,"&imath;"],[0,"&IJlig;"],[0,"&ijlig;"],[0,"&Jcirc;"],[0,"&jcirc;"],[0,"&Kcedil;"],[0,"&kcedil;"],[0,"&kgreen;"],[0,"&Lacute;"],[0,"&lacute;"],[0,"&Lcedil;"],[0,"&lcedil;"],[0,"&Lcaron;"],[0,"&lcaron;"],[0,"&Lmidot;"],[0,"&lmidot;"],[0,"&Lstrok;"],[0,"&lstrok;"],[0,"&Nacute;"],[0,"&nacute;"],[0,"&Ncedil;"],[0,"&ncedil;"],[0,"&Ncaron;"],[0,"&ncaron;"],[0,"&napos;"],[0,"&ENG;"],[0,"&eng;"],[0,"&Omacr;"],[0,"&omacr;"],[2,"&Odblac;"],[0,"&odblac;"],[0,"&OElig;"],[0,"&oelig;"],[0,"&Racute;"],[0,"&racute;"],[0,"&Rcedil;"],[0,"&rcedil;"],[0,"&Rcaron;"],[0,"&rcaron;"],[0,"&Sacute;"],[0,"&sacute;"],[0,"&Scirc;"],[0,"&scirc;"],[0,"&Scedil;"],[0,"&scedil;"],[0,"&Scaron;"],[0,"&scaron;"],[0,"&Tcedil;"],[0,"&tcedil;"],[0,"&Tcaron;"],[0,"&tcaron;"],[0,"&Tstrok;"],[0,"&tstrok;"],[0,"&Utilde;"],[0,"&utilde;"],[0,"&Umacr;"],[0,"&umacr;"],[0,"&Ubreve;"],[0,"&ubreve;"],[0,"&Uring;"],[0,"&uring;"],[0,"&Udblac;"],[0,"&udblac;"],[0,"&Uogon;"],[0,"&uogon;"],[0,"&Wcirc;"],[0,"&wcirc;"],[0,"&Ycirc;"],[0,"&ycirc;"],[0,"&Yuml;"],[0,"&Zacute;"],[0,"&zacute;"],[0,"&Zdot;"],[0,"&zdot;"],[0,"&Zcaron;"],[0,"&zcaron;"],[19,"&fnof;"],[34,"&imped;"],[63,"&gacute;"],[65,"&jmath;"],[142,"&circ;"],[0,"&caron;"],[16,"&breve;"],[0,"&DiacriticalDot;"],[0,"&ring;"],[0,"&ogon;"],[0,"&DiacriticalTilde;"],[0,"&dblac;"],[51,"&DownBreve;"],[127,"&Alpha;"],[0,"&Beta;"],[0,"&Gamma;"],[0,"&Delta;"],[0,"&Epsilon;"],[0,"&Zeta;"],[0,"&Eta;"],[0,"&Theta;"],[0,"&Iota;"],[0,"&Kappa;"],[0,"&Lambda;"],[0,"&Mu;"],[0,"&Nu;"],[0,"&Xi;"],[0,"&Omicron;"],[0,"&Pi;"],[0,"&Rho;"],[1,"&Sigma;"],[0,"&Tau;"],[0,"&Upsilon;"],[0,"&Phi;"],[0,"&Chi;"],[0,"&Psi;"],[0,"&ohm;"],[7,"&alpha;"],[0,"&beta;"],[0,"&gamma;"],[0,"&delta;"],[0,"&epsi;"],[0,"&zeta;"],[0,"&eta;"],[0,"&theta;"],[0,"&iota;"],[0,"&kappa;"],[0,"&lambda;"],[0,"&mu;"],[0,"&nu;"],[0,"&xi;"],[0,"&omicron;"],[0,"&pi;"],[0,"&rho;"],[0,"&sigmaf;"],[0,"&sigma;"],[0,"&tau;"],[0,"&upsi;"],[0,"&phi;"],[0,"&chi;"],[0,"&psi;"],[0,"&omega;"],[7,"&thetasym;"],[0,"&Upsi;"],[2,"&phiv;"],[0,"&piv;"],[5,"&Gammad;"],[0,"&digamma;"],[18,"&kappav;"],[0,"&rhov;"],[3,"&epsiv;"],[0,"&backepsilon;"],[10,"&IOcy;"],[0,"&DJcy;"],[0,"&GJcy;"],[0,"&Jukcy;"],[0,"&DScy;"],[0,"&Iukcy;"],[0,"&YIcy;"],[0,"&Jsercy;"],[0,"&LJcy;"],[0,"&NJcy;"],[0,"&TSHcy;"],[0,"&KJcy;"],[1,"&Ubrcy;"],[0,"&DZcy;"],[0,"&Acy;"],[0,"&Bcy;"],[0,"&Vcy;"],[0,"&Gcy;"],[0,"&Dcy;"],[0,"&IEcy;"],[0,"&ZHcy;"],[0,"&Zcy;"],[0,"&Icy;"],[0,"&Jcy;"],[0,"&Kcy;"],[0,"&Lcy;"],[0,"&Mcy;"],[0,"&Ncy;"],[0,"&Ocy;"],[0,"&Pcy;"],[0,"&Rcy;"],[0,"&Scy;"],[0,"&Tcy;"],[0,"&Ucy;"],[0,"&Fcy;"],[0,"&KHcy;"],[0,"&TScy;"],[0,"&CHcy;"],[0,"&SHcy;"],[0,"&SHCHcy;"],[0,"&HARDcy;"],[0,"&Ycy;"],[0,"&SOFTcy;"],[0,"&Ecy;"],[0,"&YUcy;"],[0,"&YAcy;"],[0,"&acy;"],[0,"&bcy;"],[0,"&vcy;"],[0,"&gcy;"],[0,"&dcy;"],[0,"&iecy;"],[0,"&zhcy;"],[0,"&zcy;"],[0,"&icy;"],[0,"&jcy;"],[0,"&kcy;"],[0,"&lcy;"],[0,"&mcy;"],[0,"&ncy;"],[0,"&ocy;"],[0,"&pcy;"],[0,"&rcy;"],[0,"&scy;"],[0,"&tcy;"],[0,"&ucy;"],[0,"&fcy;"],[0,"&khcy;"],[0,"&tscy;"],[0,"&chcy;"],[0,"&shcy;"],[0,"&shchcy;"],[0,"&hardcy;"],[0,"&ycy;"],[0,"&softcy;"],[0,"&ecy;"],[0,"&yucy;"],[0,"&yacy;"],[1,"&iocy;"],[0,"&djcy;"],[0,"&gjcy;"],[0,"&jukcy;"],[0,"&dscy;"],[0,"&iukcy;"],[0,"&yicy;"],[0,"&jsercy;"],[0,"&ljcy;"],[0,"&njcy;"],[0,"&tshcy;"],[0,"&kjcy;"],[1,"&ubrcy;"],[0,"&dzcy;"],[7074,"&ensp;"],[0,"&emsp;"],[0,"&emsp13;"],[0,"&emsp14;"],[1,"&numsp;"],[0,"&puncsp;"],[0,"&ThinSpace;"],[0,"&hairsp;"],[0,"&NegativeMediumSpace;"],[0,"&zwnj;"],[0,"&zwj;"],[0,"&lrm;"],[0,"&rlm;"],[0,"&dash;"],[2,"&ndash;"],[0,"&mdash;"],[0,"&horbar;"],[0,"&Verbar;"],[1,"&lsquo;"],[0,"&CloseCurlyQuote;"],[0,"&lsquor;"],[1,"&ldquo;"],[0,"&CloseCurlyDoubleQuote;"],[0,"&bdquo;"],[1,"&dagger;"],[0,"&Dagger;"],[0,"&bull;"],[2,"&nldr;"],[0,"&hellip;"],[9,"&permil;"],[0,"&pertenk;"],[0,"&prime;"],[0,"&Prime;"],[0,"&tprime;"],[0,"&backprime;"],[3,"&lsaquo;"],[0,"&rsaquo;"],[3,"&oline;"],[2,"&caret;"],[1,"&hybull;"],[0,"&frasl;"],[10,"&bsemi;"],[7,"&qprime;"],[7,{v:"&MediumSpace;",n:8202,o:"&ThickSpace;"}],[0,"&NoBreak;"],[0,"&af;"],[0,"&InvisibleTimes;"],[0,"&ic;"],[72,"&euro;"],[46,"&tdot;"],[0,"&DotDot;"],[37,"&complexes;"],[2,"&incare;"],[4,"&gscr;"],[0,"&hamilt;"],[0,"&Hfr;"],[0,"&Hopf;"],[0,"&planckh;"],[0,"&hbar;"],[0,"&imagline;"],[0,"&Ifr;"],[0,"&lagran;"],[0,"&ell;"],[1,"&naturals;"],[0,"&numero;"],[0,"&copysr;"],[0,"&weierp;"],[0,"&Popf;"],[0,"&Qopf;"],[0,"&realine;"],[0,"&real;"],[0,"&reals;"],[0,"&rx;"],[3,"&trade;"],[1,"&integers;"],[2,"&mho;"],[0,"&zeetrf;"],[0,"&iiota;"],[2,"&bernou;"],[0,"&Cayleys;"],[1,"&escr;"],[0,"&Escr;"],[0,"&Fouriertrf;"],[1,"&Mellintrf;"],[0,"&order;"],[0,"&alefsym;"],[0,"&beth;"],[0,"&gimel;"],[0,"&daleth;"],[12,"&CapitalDifferentialD;"],[0,"&dd;"],[0,"&ee;"],[0,"&ii;"],[10,"&frac13;"],[0,"&frac23;"],[0,"&frac15;"],[0,"&frac25;"],[0,"&frac35;"],[0,"&frac45;"],[0,"&frac16;"],[0,"&frac56;"],[0,"&frac18;"],[0,"&frac38;"],[0,"&frac58;"],[0,"&frac78;"],[49,"&larr;"],[0,"&ShortUpArrow;"],[0,"&rarr;"],[0,"&darr;"],[0,"&harr;"],[0,"&updownarrow;"],[0,"&nwarr;"],[0,"&nearr;"],[0,"&LowerRightArrow;"],[0,"&LowerLeftArrow;"],[0,"&nlarr;"],[0,"&nrarr;"],[1,{v:"&rarrw;",n:824,o:"&nrarrw;"}],[0,"&Larr;"],[0,"&Uarr;"],[0,"&Rarr;"],[0,"&Darr;"],[0,"&larrtl;"],[0,"&rarrtl;"],[0,"&LeftTeeArrow;"],[0,"&mapstoup;"],[0,"&map;"],[0,"&DownTeeArrow;"],[1,"&hookleftarrow;"],[0,"&hookrightarrow;"],[0,"&larrlp;"],[0,"&looparrowright;"],[0,"&harrw;"],[0,"&nharr;"],[1,"&lsh;"],[0,"&rsh;"],[0,"&ldsh;"],[0,"&rdsh;"],[1,"&crarr;"],[0,"&cularr;"],[0,"&curarr;"],[2,"&circlearrowleft;"],[0,"&circlearrowright;"],[0,"&leftharpoonup;"],[0,"&DownLeftVector;"],[0,"&RightUpVector;"],[0,"&LeftUpVector;"],[0,"&rharu;"],[0,"&DownRightVector;"],[0,"&dharr;"],[0,"&dharl;"],[0,"&RightArrowLeftArrow;"],[0,"&udarr;"],[0,"&LeftArrowRightArrow;"],[0,"&leftleftarrows;"],[0,"&upuparrows;"],[0,"&rightrightarrows;"],[0,"&ddarr;"],[0,"&leftrightharpoons;"],[0,"&Equilibrium;"],[0,"&nlArr;"],[0,"&nhArr;"],[0,"&nrArr;"],[0,"&DoubleLeftArrow;"],[0,"&DoubleUpArrow;"],[0,"&DoubleRightArrow;"],[0,"&dArr;"],[0,"&DoubleLeftRightArrow;"],[0,"&DoubleUpDownArrow;"],[0,"&nwArr;"],[0,"&neArr;"],[0,"&seArr;"],[0,"&swArr;"],[0,"&lAarr;"],[0,"&rAarr;"],[1,"&zigrarr;"],[6,"&larrb;"],[0,"&rarrb;"],[15,"&DownArrowUpArrow;"],[7,"&loarr;"],[0,"&roarr;"],[0,"&hoarr;"],[0,"&forall;"],[0,"&comp;"],[0,{v:"&part;",n:824,o:"&npart;"}],[0,"&exist;"],[0,"&nexist;"],[0,"&empty;"],[1,"&Del;"],[0,"&Element;"],[0,"&NotElement;"],[1,"&ni;"],[0,"&notni;"],[2,"&prod;"],[0,"&coprod;"],[0,"&sum;"],[0,"&minus;"],[0,"&MinusPlus;"],[0,"&dotplus;"],[1,"&Backslash;"],[0,"&lowast;"],[0,"&compfn;"],[1,"&radic;"],[2,"&prop;"],[0,"&infin;"],[0,"&angrt;"],[0,{v:"&ang;",n:8402,o:"&nang;"}],[0,"&angmsd;"],[0,"&angsph;"],[0,"&mid;"],[0,"&nmid;"],[0,"&DoubleVerticalBar;"],[0,"&NotDoubleVerticalBar;"],[0,"&and;"],[0,"&or;"],[0,{v:"&cap;",n:65024,o:"&caps;"}],[0,{v:"&cup;",n:65024,o:"&cups;"}],[0,"&int;"],[0,"&Int;"],[0,"&iiint;"],[0,"&conint;"],[0,"&Conint;"],[0,"&Cconint;"],[0,"&cwint;"],[0,"&ClockwiseContourIntegral;"],[0,"&awconint;"],[0,"&there4;"],[0,"&becaus;"],[0,"&ratio;"],[0,"&Colon;"],[0,"&dotminus;"],[1,"&mDDot;"],[0,"&homtht;"],[0,{v:"&sim;",n:8402,o:"&nvsim;"}],[0,{v:"&backsim;",n:817,o:"&race;"}],[0,{v:"&ac;",n:819,o:"&acE;"}],[0,"&acd;"],[0,"&VerticalTilde;"],[0,"&NotTilde;"],[0,{v:"&eqsim;",n:824,o:"&nesim;"}],[0,"&sime;"],[0,"&NotTildeEqual;"],[0,"&cong;"],[0,"&simne;"],[0,"&ncong;"],[0,"&ap;"],[0,"&nap;"],[0,"&ape;"],[0,{v:"&apid;",n:824,o:"&napid;"}],[0,"&backcong;"],[0,{v:"&asympeq;",n:8402,o:"&nvap;"}],[0,{v:"&bump;",n:824,o:"&nbump;"}],[0,{v:"&bumpe;",n:824,o:"&nbumpe;"}],[0,{v:"&doteq;",n:824,o:"&nedot;"}],[0,"&doteqdot;"],[0,"&efDot;"],[0,"&erDot;"],[0,"&Assign;"],[0,"&ecolon;"],[0,"&ecir;"],[0,"&circeq;"],[1,"&wedgeq;"],[0,"&veeeq;"],[1,"&triangleq;"],[2,"&equest;"],[0,"&ne;"],[0,{v:"&Congruent;",n:8421,o:"&bnequiv;"}],[0,"&nequiv;"],[1,{v:"&le;",n:8402,o:"&nvle;"}],[0,{v:"&ge;",n:8402,o:"&nvge;"}],[0,{v:"&lE;",n:824,o:"&nlE;"}],[0,{v:"&gE;",n:824,o:"&ngE;"}],[0,{v:"&lnE;",n:65024,o:"&lvertneqq;"}],[0,{v:"&gnE;",n:65024,o:"&gvertneqq;"}],[0,{v:"&ll;",n:new Map(en([[824,"&nLtv;"],[7577,"&nLt;"]]))}],[0,{v:"&gg;",n:new Map(en([[824,"&nGtv;"],[7577,"&nGt;"]]))}],[0,"&between;"],[0,"&NotCupCap;"],[0,"&nless;"],[0,"&ngt;"],[0,"&nle;"],[0,"&nge;"],[0,"&lesssim;"],[0,"&GreaterTilde;"],[0,"&nlsim;"],[0,"&ngsim;"],[0,"&LessGreater;"],[0,"&gl;"],[0,"&NotLessGreater;"],[0,"&NotGreaterLess;"],[0,"&pr;"],[0,"&sc;"],[0,"&prcue;"],[0,"&sccue;"],[0,"&PrecedesTilde;"],[0,{v:"&scsim;",n:824,o:"&NotSucceedsTilde;"}],[0,"&NotPrecedes;"],[0,"&NotSucceeds;"],[0,{v:"&sub;",n:8402,o:"&NotSubset;"}],[0,{v:"&sup;",n:8402,o:"&NotSuperset;"}],[0,"&nsub;"],[0,"&nsup;"],[0,"&sube;"],[0,"&supe;"],[0,"&NotSubsetEqual;"],[0,"&NotSupersetEqual;"],[0,{v:"&subne;",n:65024,o:"&varsubsetneq;"}],[0,{v:"&supne;",n:65024,o:"&varsupsetneq;"}],[1,"&cupdot;"],[0,"&UnionPlus;"],[0,{v:"&sqsub;",n:824,o:"&NotSquareSubset;"}],[0,{v:"&sqsup;",n:824,o:"&NotSquareSuperset;"}],[0,"&sqsube;"],[0,"&sqsupe;"],[0,{v:"&sqcap;",n:65024,o:"&sqcaps;"}],[0,{v:"&sqcup;",n:65024,o:"&sqcups;"}],[0,"&CirclePlus;"],[0,"&CircleMinus;"],[0,"&CircleTimes;"],[0,"&osol;"],[0,"&CircleDot;"],[0,"&circledcirc;"],[0,"&circledast;"],[1,"&circleddash;"],[0,"&boxplus;"],[0,"&boxminus;"],[0,"&boxtimes;"],[0,"&dotsquare;"],[0,"&RightTee;"],[0,"&dashv;"],[0,"&DownTee;"],[0,"&bot;"],[1,"&models;"],[0,"&DoubleRightTee;"],[0,"&Vdash;"],[0,"&Vvdash;"],[0,"&VDash;"],[0,"&nvdash;"],[0,"&nvDash;"],[0,"&nVdash;"],[0,"&nVDash;"],[0,"&prurel;"],[1,"&LeftTriangle;"],[0,"&RightTriangle;"],[0,{v:"&LeftTriangleEqual;",n:8402,o:"&nvltrie;"}],[0,{v:"&RightTriangleEqual;",n:8402,o:"&nvrtrie;"}],[0,"&origof;"],[0,"&imof;"],[0,"&multimap;"],[0,"&hercon;"],[0,"&intcal;"],[0,"&veebar;"],[1,"&barvee;"],[0,"&angrtvb;"],[0,"&lrtri;"],[0,"&bigwedge;"],[0,"&bigvee;"],[0,"&bigcap;"],[0,"&bigcup;"],[0,"&diam;"],[0,"&sdot;"],[0,"&sstarf;"],[0,"&divideontimes;"],[0,"&bowtie;"],[0,"&ltimes;"],[0,"&rtimes;"],[0,"&leftthreetimes;"],[0,"&rightthreetimes;"],[0,"&backsimeq;"],[0,"&curlyvee;"],[0,"&curlywedge;"],[0,"&Sub;"],[0,"&Sup;"],[0,"&Cap;"],[0,"&Cup;"],[0,"&fork;"],[0,"&epar;"],[0,"&lessdot;"],[0,"&gtdot;"],[0,{v:"&Ll;",n:824,o:"&nLl;"}],[0,{v:"&Gg;",n:824,o:"&nGg;"}],[0,{v:"&leg;",n:65024,o:"&lesg;"}],[0,{v:"&gel;",n:65024,o:"&gesl;"}],[2,"&cuepr;"],[0,"&cuesc;"],[0,"&NotPrecedesSlantEqual;"],[0,"&NotSucceedsSlantEqual;"],[0,"&NotSquareSubsetEqual;"],[0,"&NotSquareSupersetEqual;"],[2,"&lnsim;"],[0,"&gnsim;"],[0,"&precnsim;"],[0,"&scnsim;"],[0,"&nltri;"],[0,"&NotRightTriangle;"],[0,"&nltrie;"],[0,"&NotRightTriangleEqual;"],[0,"&vellip;"],[0,"&ctdot;"],[0,"&utdot;"],[0,"&dtdot;"],[0,"&disin;"],[0,"&isinsv;"],[0,"&isins;"],[0,{v:"&isindot;",n:824,o:"&notindot;"}],[0,"&notinvc;"],[0,"&notinvb;"],[1,{v:"&isinE;",n:824,o:"&notinE;"}],[0,"&nisd;"],[0,"&xnis;"],[0,"&nis;"],[0,"&notnivc;"],[0,"&notnivb;"],[6,"&barwed;"],[0,"&Barwed;"],[1,"&lceil;"],[0,"&rceil;"],[0,"&LeftFloor;"],[0,"&rfloor;"],[0,"&drcrop;"],[0,"&dlcrop;"],[0,"&urcrop;"],[0,"&ulcrop;"],[0,"&bnot;"],[1,"&profline;"],[0,"&profsurf;"],[1,"&telrec;"],[0,"&target;"],[5,"&ulcorn;"],[0,"&urcorn;"],[0,"&dlcorn;"],[0,"&drcorn;"],[2,"&frown;"],[0,"&smile;"],[9,"&cylcty;"],[0,"&profalar;"],[7,"&topbot;"],[6,"&ovbar;"],[1,"&solbar;"],[60,"&angzarr;"],[51,"&lmoustache;"],[0,"&rmoustache;"],[2,"&OverBracket;"],[0,"&bbrk;"],[0,"&bbrktbrk;"],[37,"&OverParenthesis;"],[0,"&UnderParenthesis;"],[0,"&OverBrace;"],[0,"&UnderBrace;"],[2,"&trpezium;"],[4,"&elinters;"],[59,"&blank;"],[164,"&circledS;"],[55,"&boxh;"],[1,"&boxv;"],[9,"&boxdr;"],[3,"&boxdl;"],[3,"&boxur;"],[3,"&boxul;"],[3,"&boxvr;"],[7,"&boxvl;"],[7,"&boxhd;"],[7,"&boxhu;"],[7,"&boxvh;"],[19,"&boxH;"],[0,"&boxV;"],[0,"&boxdR;"],[0,"&boxDr;"],[0,"&boxDR;"],[0,"&boxdL;"],[0,"&boxDl;"],[0,"&boxDL;"],[0,"&boxuR;"],[0,"&boxUr;"],[0,"&boxUR;"],[0,"&boxuL;"],[0,"&boxUl;"],[0,"&boxUL;"],[0,"&boxvR;"],[0,"&boxVr;"],[0,"&boxVR;"],[0,"&boxvL;"],[0,"&boxVl;"],[0,"&boxVL;"],[0,"&boxHd;"],[0,"&boxhD;"],[0,"&boxHD;"],[0,"&boxHu;"],[0,"&boxhU;"],[0,"&boxHU;"],[0,"&boxvH;"],[0,"&boxVh;"],[0,"&boxVH;"],[19,"&uhblk;"],[3,"&lhblk;"],[3,"&block;"],[8,"&blk14;"],[0,"&blk12;"],[0,"&blk34;"],[13,"&square;"],[8,"&blacksquare;"],[0,"&EmptyVerySmallSquare;"],[1,"&rect;"],[0,"&marker;"],[2,"&fltns;"],[1,"&bigtriangleup;"],[0,"&blacktriangle;"],[0,"&triangle;"],[2,"&blacktriangleright;"],[0,"&rtri;"],[3,"&bigtriangledown;"],[0,"&blacktriangledown;"],[0,"&dtri;"],[2,"&blacktriangleleft;"],[0,"&ltri;"],[6,"&loz;"],[0,"&cir;"],[32,"&tridot;"],[2,"&bigcirc;"],[8,"&ultri;"],[0,"&urtri;"],[0,"&lltri;"],[0,"&EmptySmallSquare;"],[0,"&FilledSmallSquare;"],[8,"&bigstar;"],[0,"&star;"],[7,"&phone;"],[49,"&female;"],[1,"&male;"],[29,"&spades;"],[2,"&clubs;"],[1,"&hearts;"],[0,"&diamondsuit;"],[3,"&sung;"],[2,"&flat;"],[0,"&natural;"],[0,"&sharp;"],[163,"&check;"],[3,"&cross;"],[8,"&malt;"],[21,"&sext;"],[33,"&VerticalSeparator;"],[25,"&lbbrk;"],[0,"&rbbrk;"],[84,"&bsolhsub;"],[0,"&suphsol;"],[28,"&LeftDoubleBracket;"],[0,"&RightDoubleBracket;"],[0,"&lang;"],[0,"&rang;"],[0,"&Lang;"],[0,"&Rang;"],[0,"&loang;"],[0,"&roang;"],[7,"&longleftarrow;"],[0,"&longrightarrow;"],[0,"&longleftrightarrow;"],[0,"&DoubleLongLeftArrow;"],[0,"&DoubleLongRightArrow;"],[0,"&DoubleLongLeftRightArrow;"],[1,"&longmapsto;"],[2,"&dzigrarr;"],[258,"&nvlArr;"],[0,"&nvrArr;"],[0,"&nvHarr;"],[0,"&Map;"],[6,"&lbarr;"],[0,"&bkarow;"],[0,"&lBarr;"],[0,"&dbkarow;"],[0,"&drbkarow;"],[0,"&DDotrahd;"],[0,"&UpArrowBar;"],[0,"&DownArrowBar;"],[2,"&Rarrtl;"],[2,"&latail;"],[0,"&ratail;"],[0,"&lAtail;"],[0,"&rAtail;"],[0,"&larrfs;"],[0,"&rarrfs;"],[0,"&larrbfs;"],[0,"&rarrbfs;"],[2,"&nwarhk;"],[0,"&nearhk;"],[0,"&hksearow;"],[0,"&hkswarow;"],[0,"&nwnear;"],[0,"&nesear;"],[0,"&seswar;"],[0,"&swnwar;"],[8,{v:"&rarrc;",n:824,o:"&nrarrc;"}],[1,"&cudarrr;"],[0,"&ldca;"],[0,"&rdca;"],[0,"&cudarrl;"],[0,"&larrpl;"],[2,"&curarrm;"],[0,"&cularrp;"],[7,"&rarrpl;"],[2,"&harrcir;"],[0,"&Uarrocir;"],[0,"&lurdshar;"],[0,"&ldrushar;"],[2,"&LeftRightVector;"],[0,"&RightUpDownVector;"],[0,"&DownLeftRightVector;"],[0,"&LeftUpDownVector;"],[0,"&LeftVectorBar;"],[0,"&RightVectorBar;"],[0,"&RightUpVectorBar;"],[0,"&RightDownVectorBar;"],[0,"&DownLeftVectorBar;"],[0,"&DownRightVectorBar;"],[0,"&LeftUpVectorBar;"],[0,"&LeftDownVectorBar;"],[0,"&LeftTeeVector;"],[0,"&RightTeeVector;"],[0,"&RightUpTeeVector;"],[0,"&RightDownTeeVector;"],[0,"&DownLeftTeeVector;"],[0,"&DownRightTeeVector;"],[0,"&LeftUpTeeVector;"],[0,"&LeftDownTeeVector;"],[0,"&lHar;"],[0,"&uHar;"],[0,"&rHar;"],[0,"&dHar;"],[0,"&luruhar;"],[0,"&ldrdhar;"],[0,"&ruluhar;"],[0,"&rdldhar;"],[0,"&lharul;"],[0,"&llhard;"],[0,"&rharul;"],[0,"&lrhard;"],[0,"&udhar;"],[0,"&duhar;"],[0,"&RoundImplies;"],[0,"&erarr;"],[0,"&simrarr;"],[0,"&larrsim;"],[0,"&rarrsim;"],[0,"&rarrap;"],[0,"&ltlarr;"],[1,"&gtrarr;"],[0,"&subrarr;"],[1,"&suplarr;"],[0,"&lfisht;"],[0,"&rfisht;"],[0,"&ufisht;"],[0,"&dfisht;"],[5,"&lopar;"],[0,"&ropar;"],[4,"&lbrke;"],[0,"&rbrke;"],[0,"&lbrkslu;"],[0,"&rbrksld;"],[0,"&lbrksld;"],[0,"&rbrkslu;"],[0,"&langd;"],[0,"&rangd;"],[0,"&lparlt;"],[0,"&rpargt;"],[0,"&gtlPar;"],[0,"&ltrPar;"],[3,"&vzigzag;"],[1,"&vangrt;"],[0,"&angrtvbd;"],[6,"&ange;"],[0,"&range;"],[0,"&dwangle;"],[0,"&uwangle;"],[0,"&angmsdaa;"],[0,"&angmsdab;"],[0,"&angmsdac;"],[0,"&angmsdad;"],[0,"&angmsdae;"],[0,"&angmsdaf;"],[0,"&angmsdag;"],[0,"&angmsdah;"],[0,"&bemptyv;"],[0,"&demptyv;"],[0,"&cemptyv;"],[0,"&raemptyv;"],[0,"&laemptyv;"],[0,"&ohbar;"],[0,"&omid;"],[0,"&opar;"],[1,"&operp;"],[1,"&olcross;"],[0,"&odsold;"],[1,"&olcir;"],[0,"&ofcir;"],[0,"&olt;"],[0,"&ogt;"],[0,"&cirscir;"],[0,"&cirE;"],[0,"&solb;"],[0,"&bsolb;"],[3,"&boxbox;"],[3,"&trisb;"],[0,"&rtriltri;"],[0,{v:"&LeftTriangleBar;",n:824,o:"&NotLeftTriangleBar;"}],[0,{v:"&RightTriangleBar;",n:824,o:"&NotRightTriangleBar;"}],[11,"&iinfin;"],[0,"&infintie;"],[0,"&nvinfin;"],[4,"&eparsl;"],[0,"&smeparsl;"],[0,"&eqvparsl;"],[5,"&blacklozenge;"],[8,"&RuleDelayed;"],[1,"&dsol;"],[9,"&bigodot;"],[0,"&bigoplus;"],[0,"&bigotimes;"],[1,"&biguplus;"],[1,"&bigsqcup;"],[5,"&iiiint;"],[0,"&fpartint;"],[2,"&cirfnint;"],[0,"&awint;"],[0,"&rppolint;"],[0,"&scpolint;"],[0,"&npolint;"],[0,"&pointint;"],[0,"&quatint;"],[0,"&intlarhk;"],[10,"&pluscir;"],[0,"&plusacir;"],[0,"&simplus;"],[0,"&plusdu;"],[0,"&plussim;"],[0,"&plustwo;"],[1,"&mcomma;"],[0,"&minusdu;"],[2,"&loplus;"],[0,"&roplus;"],[0,"&Cross;"],[0,"&timesd;"],[0,"&timesbar;"],[1,"&smashp;"],[0,"&lotimes;"],[0,"&rotimes;"],[0,"&otimesas;"],[0,"&Otimes;"],[0,"&odiv;"],[0,"&triplus;"],[0,"&triminus;"],[0,"&tritime;"],[0,"&intprod;"],[2,"&amalg;"],[0,"&capdot;"],[1,"&ncup;"],[0,"&ncap;"],[0,"&capand;"],[0,"&cupor;"],[0,"&cupcap;"],[0,"&capcup;"],[0,"&cupbrcap;"],[0,"&capbrcup;"],[0,"&cupcup;"],[0,"&capcap;"],[0,"&ccups;"],[0,"&ccaps;"],[2,"&ccupssm;"],[2,"&And;"],[0,"&Or;"],[0,"&andand;"],[0,"&oror;"],[0,"&orslope;"],[0,"&andslope;"],[1,"&andv;"],[0,"&orv;"],[0,"&andd;"],[0,"&ord;"],[1,"&wedbar;"],[6,"&sdote;"],[3,"&simdot;"],[2,{v:"&congdot;",n:824,o:"&ncongdot;"}],[0,"&easter;"],[0,"&apacir;"],[0,{v:"&apE;",n:824,o:"&napE;"}],[0,"&eplus;"],[0,"&pluse;"],[0,"&Esim;"],[0,"&Colone;"],[0,"&Equal;"],[1,"&ddotseq;"],[0,"&equivDD;"],[0,"&ltcir;"],[0,"&gtcir;"],[0,"&ltquest;"],[0,"&gtquest;"],[0,{v:"&leqslant;",n:824,o:"&nleqslant;"}],[0,{v:"&geqslant;",n:824,o:"&ngeqslant;"}],[0,"&lesdot;"],[0,"&gesdot;"],[0,"&lesdoto;"],[0,"&gesdoto;"],[0,"&lesdotor;"],[0,"&gesdotol;"],[0,"&lap;"],[0,"&gap;"],[0,"&lne;"],[0,"&gne;"],[0,"&lnap;"],[0,"&gnap;"],[0,"&lEg;"],[0,"&gEl;"],[0,"&lsime;"],[0,"&gsime;"],[0,"&lsimg;"],[0,"&gsiml;"],[0,"&lgE;"],[0,"&glE;"],[0,"&lesges;"],[0,"&gesles;"],[0,"&els;"],[0,"&egs;"],[0,"&elsdot;"],[0,"&egsdot;"],[0,"&el;"],[0,"&eg;"],[2,"&siml;"],[0,"&simg;"],[0,"&simlE;"],[0,"&simgE;"],[0,{v:"&LessLess;",n:824,o:"&NotNestedLessLess;"}],[0,{v:"&GreaterGreater;",n:824,o:"&NotNestedGreaterGreater;"}],[1,"&glj;"],[0,"&gla;"],[0,"&ltcc;"],[0,"&gtcc;"],[0,"&lescc;"],[0,"&gescc;"],[0,"&smt;"],[0,"&lat;"],[0,{v:"&smte;",n:65024,o:"&smtes;"}],[0,{v:"&late;",n:65024,o:"&lates;"}],[0,"&bumpE;"],[0,{v:"&PrecedesEqual;",n:824,o:"&NotPrecedesEqual;"}],[0,{v:"&sce;",n:824,o:"&NotSucceedsEqual;"}],[2,"&prE;"],[0,"&scE;"],[0,"&precneqq;"],[0,"&scnE;"],[0,"&prap;"],[0,"&scap;"],[0,"&precnapprox;"],[0,"&scnap;"],[0,"&Pr;"],[0,"&Sc;"],[0,"&subdot;"],[0,"&supdot;"],[0,"&subplus;"],[0,"&supplus;"],[0,"&submult;"],[0,"&supmult;"],[0,"&subedot;"],[0,"&supedot;"],[0,{v:"&subE;",n:824,o:"&nsubE;"}],[0,{v:"&supE;",n:824,o:"&nsupE;"}],[0,"&subsim;"],[0,"&supsim;"],[2,{v:"&subnE;",n:65024,o:"&varsubsetneqq;"}],[0,{v:"&supnE;",n:65024,o:"&varsupsetneqq;"}],[2,"&csub;"],[0,"&csup;"],[0,"&csube;"],[0,"&csupe;"],[0,"&subsup;"],[0,"&supsub;"],[0,"&subsub;"],[0,"&supsup;"],[0,"&suphsub;"],[0,"&supdsub;"],[0,"&forkv;"],[0,"&topfork;"],[0,"&mlcp;"],[8,"&Dashv;"],[1,"&Vdashl;"],[0,"&Barv;"],[0,"&vBar;"],[0,"&vBarv;"],[1,"&Vbar;"],[0,"&Not;"],[0,"&bNot;"],[0,"&rnmid;"],[0,"&cirmid;"],[0,"&midcir;"],[0,"&topcir;"],[0,"&nhpar;"],[0,"&parsim;"],[9,{v:"&parsl;",n:8421,o:"&nparsl;"}],[44343,{n:new Map(en([[56476,"&Ascr;"],[1,"&Cscr;"],[0,"&Dscr;"],[2,"&Gscr;"],[2,"&Jscr;"],[0,"&Kscr;"],[2,"&Nscr;"],[0,"&Oscr;"],[0,"&Pscr;"],[0,"&Qscr;"],[1,"&Sscr;"],[0,"&Tscr;"],[0,"&Uscr;"],[0,"&Vscr;"],[0,"&Wscr;"],[0,"&Xscr;"],[0,"&Yscr;"],[0,"&Zscr;"],[0,"&ascr;"],[0,"&bscr;"],[0,"&cscr;"],[0,"&dscr;"],[1,"&fscr;"],[1,"&hscr;"],[0,"&iscr;"],[0,"&jscr;"],[0,"&kscr;"],[0,"&lscr;"],[0,"&mscr;"],[0,"&nscr;"],[1,"&pscr;"],[0,"&qscr;"],[0,"&rscr;"],[0,"&sscr;"],[0,"&tscr;"],[0,"&uscr;"],[0,"&vscr;"],[0,"&wscr;"],[0,"&xscr;"],[0,"&yscr;"],[0,"&zscr;"],[52,"&Afr;"],[0,"&Bfr;"],[1,"&Dfr;"],[0,"&Efr;"],[0,"&Ffr;"],[0,"&Gfr;"],[2,"&Jfr;"],[0,"&Kfr;"],[0,"&Lfr;"],[0,"&Mfr;"],[0,"&Nfr;"],[0,"&Ofr;"],[0,"&Pfr;"],[0,"&Qfr;"],[1,"&Sfr;"],[0,"&Tfr;"],[0,"&Ufr;"],[0,"&Vfr;"],[0,"&Wfr;"],[0,"&Xfr;"],[0,"&Yfr;"],[1,"&afr;"],[0,"&bfr;"],[0,"&cfr;"],[0,"&dfr;"],[0,"&efr;"],[0,"&ffr;"],[0,"&gfr;"],[0,"&hfr;"],[0,"&ifr;"],[0,"&jfr;"],[0,"&kfr;"],[0,"&lfr;"],[0,"&mfr;"],[0,"&nfr;"],[0,"&ofr;"],[0,"&pfr;"],[0,"&qfr;"],[0,"&rfr;"],[0,"&sfr;"],[0,"&tfr;"],[0,"&ufr;"],[0,"&vfr;"],[0,"&wfr;"],[0,"&xfr;"],[0,"&yfr;"],[0,"&zfr;"],[0,"&Aopf;"],[0,"&Bopf;"],[1,"&Dopf;"],[0,"&Eopf;"],[0,"&Fopf;"],[0,"&Gopf;"],[1,"&Iopf;"],[0,"&Jopf;"],[0,"&Kopf;"],[0,"&Lopf;"],[0,"&Mopf;"],[1,"&Oopf;"],[3,"&Sopf;"],[0,"&Topf;"],[0,"&Uopf;"],[0,"&Vopf;"],[0,"&Wopf;"],[0,"&Xopf;"],[0,"&Yopf;"],[1,"&aopf;"],[0,"&bopf;"],[0,"&copf;"],[0,"&dopf;"],[0,"&eopf;"],[0,"&fopf;"],[0,"&gopf;"],[0,"&hopf;"],[0,"&iopf;"],[0,"&jopf;"],[0,"&kopf;"],[0,"&lopf;"],[0,"&mopf;"],[0,"&nopf;"],[0,"&oopf;"],[0,"&popf;"],[0,"&qopf;"],[0,"&ropf;"],[0,"&sopf;"],[0,"&topf;"],[0,"&uopf;"],[0,"&vopf;"],[0,"&wopf;"],[0,"&xopf;"],[0,"&yopf;"],[0,"&zopf;"]]))}],[8906,"&fflig;"],[0,"&filig;"],[0,"&fllig;"],[0,"&ffilig;"],[0,"&ffllig;"]]));var In={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.escapeText=t.escapeAttribute=t.escapeUTF8=t.escape=t.encodeXML=t.getCodePoint=t.xmlReplacer=void 0,t.xmlReplacer=/["&'<>$\x80-\uFFFF]/g;var e=new Map([[34,"&quot;"],[38,"&amp;"],[39,"&apos;"],[60,"&lt;"],[62,"&gt;"]]);t.getCodePoint=String.prototype.codePointAt!=null?function(i,u){return i.codePointAt(u)}:function(i,u){return(i.charCodeAt(u)&64512)===55296?(i.charCodeAt(u)-55296)*1024+i.charCodeAt(u+1)-56320+65536:i.charCodeAt(u)};function r(i){for(var u="",o=0,a;(a=t.xmlReplacer.exec(i))!==null;){var s=a.index,l=i.charCodeAt(s),c=e.get(l);c!==void 0?(u+=i.substring(o,s)+c,o=s+1):(u+="".concat(i.substring(o,s),"&#x").concat((0,t.getCodePoint)(i,s).toString(16),";"),o=t.xmlReplacer.lastIndex+=+((l&64512)===55296))}return u+i.substr(o)}t.encodeXML=r,t.escape=r;function n(i,u){return function(a){for(var s,l=0,c="";s=i.exec(a);)l!==s.index&&(c+=a.substring(l,s.index)),c+=u.get(s[0].charCodeAt(0)),l=s.index+1;return c+a.substring(l)}}t.escapeUTF8=n(/[&<>'"]/g,e),t.escapeAttribute=n(/["&\u00A0]/g,new Map([[34,"&quot;"],[38,"&amp;"],[160,"&nbsp;"]])),t.escapeText=n(/[&<>\u00A0]/g,new Map([[38,"&amp;"],[60,"&lt;"],[62,"&gt;"],[160,"&nbsp;"]]))})(In);var Dx=M&&M.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(St,"__esModule",{value:!0});St.encodeNonAsciiHTML=St.encodeHTML=void 0;var Lx=Dx(jo),Xc=In,Mx=/[\t\n!-,./:-@[-`\f{-}$\x80-\uFFFF]/g;function $x(t){return Yc(Mx,t)}St.encodeHTML=$x;function Bx(t){return Yc(Xc.xmlReplacer,t)}St.encodeNonAsciiHTML=Bx;function Yc(t,e){for(var r="",n=0,i;(i=t.exec(e))!==null;){var u=i.index;r+=e.substring(n,u);var o=e.charCodeAt(u),a=Lx.default.get(o);if(typeof a=="object"){if(u+1<e.length){var s=e.charCodeAt(u+1),l=typeof a.n=="number"?a.n===s?a.o:void 0:a.n.get(s);if(l!==void 0){r+=l,n=t.lastIndex+=1;continue}}a=a.v}if(a!==void 0)r+=a,n=u+1;else{var c=(0,Xc.getCodePoint)(e,u);r+="&#x".concat(c.toString(16),";"),n=t.lastIndex+=+(c!==o)}}return r+e.substr(n)}(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.decodeXMLStrict=t.decodeHTML5Strict=t.decodeHTML4Strict=t.decodeHTML5=t.decodeHTML4=t.decodeHTMLAttribute=t.decodeHTMLStrict=t.decodeHTML=t.decodeXML=t.DecodingMode=t.EntityDecoder=t.encodeHTML5=t.encodeHTML4=t.encodeNonAsciiHTML=t.encodeHTML=t.escapeText=t.escapeAttribute=t.escapeUTF8=t.escape=t.encodeXML=t.encode=t.decodeStrict=t.decode=t.EncodingMode=t.EntityLevel=void 0;var e=_r,r=St,n=In,i;(function(d){d[d.XML=0]="XML",d[d.HTML=1]="HTML"})(i=t.EntityLevel||(t.EntityLevel={}));var u;(function(d){d[d.UTF8=0]="UTF8",d[d.ASCII=1]="ASCII",d[d.Extensive=2]="Extensive",d[d.Attribute=3]="Attribute",d[d.Text=4]="Text"})(u=t.EncodingMode||(t.EncodingMode={}));function o(d,f){f===void 0&&(f=i.XML);var g=typeof f=="number"?f:f.level;if(g===i.HTML){var m=typeof f=="object"?f.mode:void 0;return(0,e.decodeHTML)(d,m)}return(0,e.decodeXML)(d)}t.decode=o;function a(d,f){var g;f===void 0&&(f=i.XML);var m=typeof f=="number"?{level:f}:f;return(g=m.mode)!==null&&g!==void 0||(m.mode=e.DecodingMode.Strict),o(d,m)}t.decodeStrict=a;function s(d,f){f===void 0&&(f=i.XML);var g=typeof f=="number"?{level:f}:f;return g.mode===u.UTF8?(0,n.escapeUTF8)(d):g.mode===u.Attribute?(0,n.escapeAttribute)(d):g.mode===u.Text?(0,n.escapeText)(d):g.level===i.HTML?g.mode===u.ASCII?(0,r.encodeNonAsciiHTML)(d):(0,r.encodeHTML)(d):(0,n.encodeXML)(d)}t.encode=s;var l=In;Object.defineProperty(t,"encodeXML",{enumerable:!0,get:function(){return l.encodeXML}}),Object.defineProperty(t,"escape",{enumerable:!0,get:function(){return l.escape}}),Object.defineProperty(t,"escapeUTF8",{enumerable:!0,get:function(){return l.escapeUTF8}}),Object.defineProperty(t,"escapeAttribute",{enumerable:!0,get:function(){return l.escapeAttribute}}),Object.defineProperty(t,"escapeText",{enumerable:!0,get:function(){return l.escapeText}});var c=St;Object.defineProperty(t,"encodeHTML",{enumerable:!0,get:function(){return c.encodeHTML}}),Object.defineProperty(t,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return c.encodeNonAsciiHTML}}),Object.defineProperty(t,"encodeHTML4",{enumerable:!0,get:function(){return c.encodeHTML}}),Object.defineProperty(t,"encodeHTML5",{enumerable:!0,get:function(){return c.encodeHTML}});var p=_r;Object.defineProperty(t,"EntityDecoder",{enumerable:!0,get:function(){return p.EntityDecoder}}),Object.defineProperty(t,"DecodingMode",{enumerable:!0,get:function(){return p.DecodingMode}}),Object.defineProperty(t,"decodeXML",{enumerable:!0,get:function(){return p.decodeXML}}),Object.defineProperty(t,"decodeHTML",{enumerable:!0,get:function(){return p.decodeHTML}}),Object.defineProperty(t,"decodeHTMLStrict",{enumerable:!0,get:function(){return p.decodeHTMLStrict}}),Object.defineProperty(t,"decodeHTMLAttribute",{enumerable:!0,get:function(){return p.decodeHTMLAttribute}}),Object.defineProperty(t,"decodeHTML4",{enumerable:!0,get:function(){return p.decodeHTML}}),Object.defineProperty(t,"decodeHTML5",{enumerable:!0,get:function(){return p.decodeHTML}}),Object.defineProperty(t,"decodeHTML4Strict",{enumerable:!0,get:function(){return p.decodeHTMLStrict}}),Object.defineProperty(t,"decodeHTML5Strict",{enumerable:!0,get:function(){return p.decodeHTMLStrict}}),Object.defineProperty(t,"decodeXMLStrict",{enumerable:!0,get:function(){return p.decodeXML}})})(Gc);var Vt={};Object.defineProperty(Vt,"__esModule",{value:!0});Vt.attributeNames=Vt.elementNames=void 0;Vt.elementNames=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(function(t){return[t.toLowerCase(),t]}));Vt.attributeNames=new Map(["definitionURL","attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(function(t){return[t.toLowerCase(),t]}));var Rt=M&&M.__assign||function(){return Rt=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++){e=arguments[r];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},Rt.apply(this,arguments)},qx=M&&M.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),Hx=M&&M.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Fx=M&&M.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&qx(e,t,r);return Hx(e,t),e};Object.defineProperty(Br,"__esModule",{value:!0});Br.render=void 0;var Ue=Fx(or),Dn=Gc,Jc=Vt,zx=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);function Ux(t){return t.replace(/"/g,"&quot;")}function Vx(t,e){var r;if(t){var n=((r=e.encodeEntities)!==null&&r!==void 0?r:e.decodeEntities)===!1?Ux:e.xmlMode||e.encodeEntities!=="utf8"?Dn.encodeXML:Dn.escapeAttribute;return Object.keys(t).map(function(i){var u,o,a=(u=t[i])!==null&&u!==void 0?u:"";return e.xmlMode==="foreign"&&(i=(o=Jc.attributeNames.get(i))!==null&&o!==void 0?o:i),!e.emptyAttrs&&!e.xmlMode&&a===""?i:"".concat(i,'="').concat(n(a),'"')}).join(" ")}}var Es=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);function bi(t,e){e===void 0&&(e={});for(var r=("length"in t)?t:[t],n="",i=0;i<r.length;i++)n+=Wx(r[i],e);return n}Br.render=bi;Br.default=bi;function Wx(t,e){switch(t.type){case Ue.Root:return bi(t.children,e);case Ue.Doctype:case Ue.Directive:return Jx(t);case Ue.Comment:return Qx(t);case Ue.CDATA:return Zx(t);case Ue.Script:case Ue.Style:case Ue.Tag:return Yx(t,e);case Ue.Text:return Kx(t,e)}}var Gx=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),Xx=new Set(["svg","math"]);function Yx(t,e){var r;e.xmlMode==="foreign"&&(t.name=(r=Jc.elementNames.get(t.name))!==null&&r!==void 0?r:t.name,t.parent&&Gx.has(t.parent.name)&&(e=Rt(Rt({},e),{xmlMode:!1}))),!e.xmlMode&&Xx.has(t.name)&&(e=Rt(Rt({},e),{xmlMode:"foreign"}));var n="<".concat(t.name),i=Vx(t.attribs,e);return i&&(n+=" ".concat(i)),t.children.length===0&&(e.xmlMode?e.selfClosingTags!==!1:e.selfClosingTags&&Es.has(t.name))?(e.xmlMode||(n+=" "),n+="/>"):(n+=">",t.children.length>0&&(n+=bi(t.children,e)),(e.xmlMode||!Es.has(t.name))&&(n+="</".concat(t.name,">"))),n}function Jx(t){return"<".concat(t.data,">")}function Kx(t,e){var r,n=t.data||"";return((r=e.encodeEntities)!==null&&r!==void 0?r:e.decodeEntities)!==!1&&!(!e.xmlMode&&t.parent&&zx.has(t.parent.name))&&(n=e.xmlMode||e.encodeEntities!=="utf8"?(0,Dn.encodeXML)(n):(0,Dn.escapeText)(n)),n}function Zx(t){return"<![CDATA[".concat(t.children[0].data,"]]>")}function Qx(t){return"<!--".concat(t.data,"-->")}var e3=M&&M.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ht,"__esModule",{value:!0});ht.getOuterHTML=Kc;ht.getInnerHTML=n3;ht.getText=pn;ht.textContent=bu;ht.innerText=gu;var Le=et,t3=e3(Br),r3=or;function Kc(t,e){return(0,t3.default)(t,e)}function n3(t,e){return(0,Le.hasChildren)(t)?t.children.map(function(r){return Kc(r,e)}).join(""):""}function pn(t){return Array.isArray(t)?t.map(pn).join(""):(0,Le.isTag)(t)?t.name==="br"?`
146
+ `:pn(t.children):(0,Le.isCDATA)(t)?pn(t.children):(0,Le.isText)(t)?t.data:""}function bu(t){return Array.isArray(t)?t.map(bu).join(""):(0,Le.hasChildren)(t)&&!(0,Le.isComment)(t)?bu(t.children):(0,Le.isText)(t)?t.data:""}function gu(t){return Array.isArray(t)?t.map(gu).join(""):(0,Le.hasChildren)(t)&&(t.type===r3.ElementType.Tag||(0,Le.isCDATA)(t))?gu(t.children):(0,Le.isText)(t)?t.data:""}var Fe={};Object.defineProperty(Fe,"__esModule",{value:!0});Fe.getChildren=Zc;Fe.getParent=Qc;Fe.getSiblings=i3;Fe.getAttributeValue=u3;Fe.hasAttrib=o3;Fe.getName=a3;Fe.nextElementSibling=s3;Fe.prevElementSibling=l3;var _o=et;function Zc(t){return(0,_o.hasChildren)(t)?t.children:[]}function Qc(t){return t.parent||null}function i3(t){var e,r,n=Qc(t);if(n!=null)return Zc(n);for(var i=[t],u=t.prev,o=t.next;u!=null;)i.unshift(u),e=u,u=e.prev;for(;o!=null;)i.push(o),r=o,o=r.next;return i}function u3(t,e){var r;return(r=t.attribs)===null||r===void 0?void 0:r[e]}function o3(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}function a3(t){return t.name}function s3(t){for(var e,r=t.next;r!==null&&!(0,_o.isTag)(r);)e=r,r=e.next;return r}function l3(t){for(var e,r=t.prev;r!==null&&!(0,_o.isTag)(r);)e=r,r=e.prev;return r}var bt={};Object.defineProperty(bt,"__esModule",{value:!0});bt.removeElement=qr;bt.replaceElement=c3;bt.appendChild=d3;bt.append=f3;bt.prependChild=p3;bt.prepend=h3;function qr(t){if(t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),t.parent){var e=t.parent.children,r=e.lastIndexOf(t);r>=0&&e.splice(r,1)}t.next=null,t.prev=null,t.parent=null}function c3(t,e){var r=e.prev=t.prev;r&&(r.next=e);var n=e.next=t.next;n&&(n.prev=e);var i=e.parent=t.parent;if(i){var u=i.children;u[u.lastIndexOf(t)]=e,t.parent=null}}function d3(t,e){if(qr(e),e.next=null,e.parent=t,t.children.push(e)>1){var r=t.children[t.children.length-2];r.next=e,e.prev=r}else e.prev=null}function f3(t,e){qr(e);var r=t.parent,n=t.next;if(e.next=n,e.prev=t,t.next=e,e.parent=r,n){if(n.prev=e,r){var i=r.children;i.splice(i.lastIndexOf(n),0,e)}}else r&&r.children.push(e)}function p3(t,e){if(qr(e),e.parent=t,e.prev=null,t.children.unshift(e)!==1){var r=t.children[1];r.prev=e,e.next=r}else e.next=null}function h3(t,e){qr(e);var r=t.parent;if(r){var n=r.children;n.splice(n.indexOf(t),0,e)}t.prev&&(t.prev.next=e),e.parent=r,e.prev=t.prev,e.next=t,t.prev=e}var rt={};Object.defineProperty(rt,"__esModule",{value:!0});rt.filter=b3;rt.find=ed;rt.findOneChild=g3;rt.findOne=td;rt.existsOne=rd;rt.findAll=m3;var Ct=et;function b3(t,e,r,n){return r===void 0&&(r=!0),n===void 0&&(n=1/0),ed(t,Array.isArray(e)?e:[e],r,n)}function ed(t,e,r,n){for(var i=[],u=[Array.isArray(e)?e:[e]],o=[0];;){if(o[0]>=u[0].length){if(o.length===1)return i;u.shift(),o.shift();continue}var a=u[0][o[0]++];if(t(a)&&(i.push(a),--n<=0))return i;r&&(0,Ct.hasChildren)(a)&&a.children.length>0&&(o.unshift(0),u.unshift(a.children))}}function g3(t,e){return e.find(t)}function td(t,e,r){r===void 0&&(r=!0);for(var n=Array.isArray(e)?e:[e],i=0;i<n.length;i++){var u=n[i];if((0,Ct.isTag)(u)&&t(u))return u;if(r&&(0,Ct.hasChildren)(u)&&u.children.length>0){var o=td(t,u.children,!0);if(o)return o}}return null}function rd(t,e){return(Array.isArray(e)?e:[e]).some(function(r){return(0,Ct.isTag)(r)&&t(r)||(0,Ct.hasChildren)(r)&&rd(t,r.children)})}function m3(t,e){for(var r=[],n=[Array.isArray(e)?e:[e]],i=[0];;){if(i[0]>=n[0].length){if(n.length===1)return r;n.shift(),i.shift();continue}var u=n[0][i[0]++];(0,Ct.isTag)(u)&&t(u)&&r.push(u),(0,Ct.hasChildren)(u)&&u.children.length>0&&(i.unshift(0),n.unshift(u.children))}}var nt={};Object.defineProperty(nt,"__esModule",{value:!0});nt.testElement=v3;nt.getElements=x3;nt.getElementById=w3;nt.getElementsByTagName=E3;nt.getElementsByClassName=S3;nt.getElementsByTagType=C3;var yt=et,Hr=rt,Ln={tag_name:function(t){return typeof t=="function"?function(e){return(0,yt.isTag)(e)&&t(e.name)}:t==="*"?yt.isTag:function(e){return(0,yt.isTag)(e)&&e.name===t}},tag_type:function(t){return typeof t=="function"?function(e){return t(e.type)}:function(e){return e.type===t}},tag_contains:function(t){return typeof t=="function"?function(e){return(0,yt.isText)(e)&&t(e.data)}:function(e){return(0,yt.isText)(e)&&e.data===t}}};function Po(t,e){return typeof e=="function"?function(r){return(0,yt.isTag)(r)&&e(r.attribs[t])}:function(r){return(0,yt.isTag)(r)&&r.attribs[t]===e}}function y3(t,e){return function(r){return t(r)||e(r)}}function nd(t){var e=Object.keys(t).map(function(r){var n=t[r];return Object.prototype.hasOwnProperty.call(Ln,r)?Ln[r](n):Po(r,n)});return e.length===0?null:e.reduce(y3)}function v3(t,e){var r=nd(t);return r?r(e):!0}function x3(t,e,r,n){n===void 0&&(n=1/0);var i=nd(t);return i?(0,Hr.filter)(i,e,r,n):[]}function w3(t,e,r){return r===void 0&&(r=!0),Array.isArray(e)||(e=[e]),(0,Hr.findOne)(Po("id",t),e,r)}function E3(t,e,r,n){return r===void 0&&(r=!0),n===void 0&&(n=1/0),(0,Hr.filter)(Ln.tag_name(t),e,r,n)}function S3(t,e,r,n){return r===void 0&&(r=!0),n===void 0&&(n=1/0),(0,Hr.filter)(Po("class",t),e,r,n)}function C3(t,e,r,n){return r===void 0&&(r=!0),n===void 0&&(n=1/0),(0,Hr.filter)(Ln.tag_type(t),e,r,n)}var Nt={};Object.defineProperty(Nt,"__esModule",{value:!0});Nt.DocumentPosition=void 0;Nt.removeSubsets=T3;Nt.compareDocumentPosition=id;Nt.uniqueSort=A3;var Ss=et;function T3(t){for(var e=t.length;--e>=0;){var r=t[e];if(e>0&&t.lastIndexOf(r,e-1)>=0){t.splice(e,1);continue}for(var n=r.parent;n;n=n.parent)if(t.includes(n)){t.splice(e,1);break}}return t}var Ce;(function(t){t[t.DISCONNECTED=1]="DISCONNECTED",t[t.PRECEDING=2]="PRECEDING",t[t.FOLLOWING=4]="FOLLOWING",t[t.CONTAINS=8]="CONTAINS",t[t.CONTAINED_BY=16]="CONTAINED_BY"})(Ce||(Nt.DocumentPosition=Ce={}));function id(t,e){var r=[],n=[];if(t===e)return 0;for(var i=(0,Ss.hasChildren)(t)?t:t.parent;i;)r.unshift(i),i=i.parent;for(i=(0,Ss.hasChildren)(e)?e:e.parent;i;)n.unshift(i),i=i.parent;for(var u=Math.min(r.length,n.length),o=0;o<u&&r[o]===n[o];)o++;if(o===0)return Ce.DISCONNECTED;var a=r[o-1],s=a.children,l=r[o],c=n[o];return s.indexOf(l)>s.indexOf(c)?a===e?Ce.FOLLOWING|Ce.CONTAINED_BY:Ce.FOLLOWING:a===t?Ce.PRECEDING|Ce.CONTAINS:Ce.PRECEDING}function A3(t){return t=t.filter(function(e,r,n){return!n.includes(e,r+1)}),t.sort(function(e,r){var n=id(e,r);return n&Ce.PRECEDING?-1:n&Ce.FOLLOWING?1:0}),t}var ko={};Object.defineProperty(ko,"__esModule",{value:!0});ko.getFeed=N3;var O3=ht,Fr=nt;function N3(t){var e=Mn(R3,t);return e?e.name==="feed"?j3(e):_3(e):null}function j3(t){var e,r=t.children,n={type:"atom",items:(0,Fr.getElementsByTagName)("entry",r).map(function(o){var a,s=o.children,l={media:ud(s)};he(l,"id","id",s),he(l,"title","title",s);var c=(a=Mn("link",s))===null||a===void 0?void 0:a.attribs.href;c&&(l.link=c);var p=ot("summary",s)||ot("content",s);p&&(l.description=p);var d=ot("updated",s);return d&&(l.pubDate=new Date(d)),l})};he(n,"id","id",r),he(n,"title","title",r);var i=(e=Mn("link",r))===null||e===void 0?void 0:e.attribs.href;i&&(n.link=i),he(n,"description","subtitle",r);var u=ot("updated",r);return u&&(n.updated=new Date(u)),he(n,"author","email",r,!0),n}function _3(t){var e,r,n=(r=(e=Mn("channel",t.children))===null||e===void 0?void 0:e.children)!==null&&r!==void 0?r:[],i={type:t.name.substr(0,3),id:"",items:(0,Fr.getElementsByTagName)("item",t.children).map(function(o){var a=o.children,s={media:ud(a)};he(s,"id","guid",a),he(s,"title","title",a),he(s,"link","link",a),he(s,"description","description",a);var l=ot("pubDate",a)||ot("dc:date",a);return l&&(s.pubDate=new Date(l)),s})};he(i,"title","title",n),he(i,"link","link",n),he(i,"description","description",n);var u=ot("lastBuildDate",n);return u&&(i.updated=new Date(u)),he(i,"author","managingEditor",n,!0),i}var P3=["url","type","lang"],k3=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function ud(t){return(0,Fr.getElementsByTagName)("media:content",t).map(function(e){for(var r=e.attribs,n={medium:r.medium,isDefault:!!r.isDefault},i=0,u=P3;i<u.length;i++){var o=u[i];r[o]&&(n[o]=r[o])}for(var a=0,s=k3;a<s.length;a++){var o=s[a];r[o]&&(n[o]=parseInt(r[o],10))}return r.expression&&(n.expression=r.expression),n})}function Mn(t,e){return(0,Fr.getElementsByTagName)(t,e,!0,1)[0]}function ot(t,e,r){return r===void 0&&(r=!1),(0,O3.textContent)((0,Fr.getElementsByTagName)(t,e,r,1)).trim()}function he(t,e,r,n,i){i===void 0&&(i=!1);var u=ot(r,n,i);u&&(t[e]=u)}function R3(t){return t==="rss"||t==="feed"||t==="rdf:RDF"}(function(t){var e=M&&M.__createBinding||(Object.create?function(i,u,o,a){a===void 0&&(a=o);var s=Object.getOwnPropertyDescriptor(u,o);(!s||("get"in s?!u.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return u[o]}}),Object.defineProperty(i,a,s)}:function(i,u,o,a){a===void 0&&(a=o),i[a]=u[o]}),r=M&&M.__exportStar||function(i,u){for(var o in i)o!=="default"&&!Object.prototype.hasOwnProperty.call(u,o)&&e(u,i,o)};Object.defineProperty(t,"__esModule",{value:!0}),t.hasChildren=t.isDocument=t.isComment=t.isText=t.isCDATA=t.isTag=void 0,r(ht,t),r(Fe,t),r(bt,t),r(rt,t),r(nt,t),r(Nt,t),r(ko,t);var n=et;Object.defineProperty(t,"isTag",{enumerable:!0,get:function(){return n.isTag}}),Object.defineProperty(t,"isCDATA",{enumerable:!0,get:function(){return n.isCDATA}}),Object.defineProperty(t,"isText",{enumerable:!0,get:function(){return n.isText}}),Object.defineProperty(t,"isComment",{enumerable:!0,get:function(){return n.isComment}}),Object.defineProperty(t,"isDocument",{enumerable:!0,get:function(){return n.isDocument}}),Object.defineProperty(t,"hasChildren",{enumerable:!0,get:function(){return n.hasChildren}})})(fn);(function(t){var e=M&&M.__createBinding||(Object.create?function(y,v,C,S){S===void 0&&(S=C);var O=Object.getOwnPropertyDescriptor(v,C);(!O||("get"in O?!v.__esModule:O.writable||O.configurable))&&(O={enumerable:!0,get:function(){return v[C]}}),Object.defineProperty(y,S,O)}:function(y,v,C,S){S===void 0&&(S=C),y[S]=v[C]}),r=M&&M.__setModuleDefault||(Object.create?function(y,v){Object.defineProperty(y,"default",{enumerable:!0,value:v})}:function(y,v){y.default=v}),n=M&&M.__importStar||function(y){if(y&&y.__esModule)return y;var v={};if(y!=null)for(var C in y)C!=="default"&&Object.prototype.hasOwnProperty.call(y,C)&&e(v,y,C);return r(v,y),v},i=M&&M.__importDefault||function(y){return y&&y.__esModule?y:{default:y}};Object.defineProperty(t,"__esModule",{value:!0}),t.DomUtils=t.parseFeed=t.getFeed=t.ElementType=t.Tokenizer=t.createDomStream=t.parseDOM=t.parseDocument=t.DefaultHandler=t.DomHandler=t.Parser=void 0;var u=jr,o=jr;Object.defineProperty(t,"Parser",{enumerable:!0,get:function(){return o.Parser}});var a=et,s=et;Object.defineProperty(t,"DomHandler",{enumerable:!0,get:function(){return s.DomHandler}}),Object.defineProperty(t,"DefaultHandler",{enumerable:!0,get:function(){return s.DomHandler}});function l(y,v){var C=new a.DomHandler(void 0,v);return new u.Parser(C,v).end(y),C.root}t.parseDocument=l;function c(y,v){return l(y,v).children}t.parseDOM=c;function p(y,v,C){var S=new a.DomHandler(y,v,C);return new u.Parser(S,v)}t.createDomStream=p;var d=Co;Object.defineProperty(t,"Tokenizer",{enumerable:!0,get:function(){return i(d).default}}),t.ElementType=n(or);var f=fn,g=fn;Object.defineProperty(t,"getFeed",{enumerable:!0,get:function(){return g.getFeed}});var m={xmlMode:!0};function b(y,v){return v===void 0&&(v=m),(0,f.getFeed)(c(y,v))}t.parseFeed=b,t.DomUtils=n(fn)})(Ic);var I3=t=>{if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")},Ro={};Object.defineProperty(Ro,"__esModule",{value:!0});/*!
147
+ * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
148
+ *
149
+ * Copyright (c) 2014-2017, Jon Schlinkert.
150
+ * Released under the MIT License.
151
+ */function Cs(t){return Object.prototype.toString.call(t)==="[object Object]"}function D3(t){var e,r;return Cs(t)===!1?!1:(e=t.constructor,e===void 0?!0:(r=e.prototype,!(Cs(r)===!1||r.hasOwnProperty("isPrototypeOf")===!1)))}Ro.isPlainObject=D3;var L3=function(e){return M3(e)&&!$3(e)};function M3(t){return!!t&&typeof t=="object"}function $3(t){var e=Object.prototype.toString.call(t);return e==="[object RegExp]"||e==="[object Date]"||H3(t)}var B3=typeof Symbol=="function"&&Symbol.for,q3=B3?Symbol.for("react.element"):60103;function H3(t){return t.$$typeof===q3}function F3(t){return Array.isArray(t)?[]:{}}function Pr(t,e){return e.clone!==!1&&e.isMergeableObject(t)?Wt(F3(t),t,e):t}function z3(t,e,r){return t.concat(e).map(function(n){return Pr(n,r)})}function U3(t,e){if(!e.customMerge)return Wt;var r=e.customMerge(t);return typeof r=="function"?r:Wt}function V3(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return Object.propertyIsEnumerable.call(t,e)}):[]}function Ts(t){return Object.keys(t).concat(V3(t))}function od(t,e){try{return e in t}catch{return!1}}function W3(t,e){return od(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))}function G3(t,e,r){var n={};return r.isMergeableObject(t)&&Ts(t).forEach(function(i){n[i]=Pr(t[i],r)}),Ts(e).forEach(function(i){W3(t,i)||(od(t,i)&&r.isMergeableObject(e[i])?n[i]=U3(i,r)(t[i],e[i],r):n[i]=Pr(e[i],r))}),n}function Wt(t,e,r){r=r||{},r.arrayMerge=r.arrayMerge||z3,r.isMergeableObject=r.isMergeableObject||L3,r.cloneUnlessOtherwiseSpecified=Pr;var n=Array.isArray(e),i=Array.isArray(t),u=n===i;return u?n?r.arrayMerge(t,e,r):G3(t,e,r):Pr(e,r)}Wt.all=function(e,r){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(n,i){return Wt(n,i,r)},{})};var X3=Wt,Y3=X3,ad={exports:{}};(function(t){(function(e,r){t.exports?t.exports=r():e.parseSrcset=r()})(M,function(){return function(e){function r(S){return S===" "||S===" "||S===`
152
+ `||S==="\f"||S==="\r"}function n(S){var O,k=S.exec(e.substring(b));if(k)return O=k[0],b+=O.length,O}for(var i=e.length,u=/^[ \t\n\r\u000c]+/,o=/^[, \t\n\r\u000c]+/,a=/^[^ \t\n\r\u000c]+/,s=/[,]+$/,l=/^\d+$/,c=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,p,d,f,g,m,b=0,y=[];;){if(n(o),b>=i)return y;p=n(a),d=[],p.slice(-1)===","?(p=p.replace(s,""),C()):v()}function v(){for(n(u),f="",g="in descriptor";;){if(m=e.charAt(b),g==="in descriptor")if(r(m))f&&(d.push(f),f="",g="after descriptor");else if(m===","){b+=1,f&&d.push(f),C();return}else if(m==="(")f=f+m,g="in parens";else if(m===""){f&&d.push(f),C();return}else f=f+m;else if(g==="in parens")if(m===")")f=f+m,g="in descriptor";else if(m===""){d.push(f),C();return}else f=f+m;else if(g==="after descriptor"&&!r(m))if(m===""){C();return}else g="in descriptor",b-=1;b+=1}}function C(){var S=!1,O,k,R,D,$={},L,E,T,_,I;for(D=0;D<d.length;D++)L=d[D],E=L[L.length-1],T=L.substring(0,L.length-1),_=parseInt(T,10),I=parseFloat(T),l.test(T)&&E==="w"?((O||k)&&(S=!0),_===0?S=!0:O=_):c.test(T)&&E==="x"?((O||k||R)&&(S=!0),I<0?S=!0:k=I):l.test(T)&&E==="h"?((R||k)&&(S=!0),_===0?S=!0:R=_):S=!0;S?console&&console.log&&console.log("Invalid srcset descriptor found in '"+e+"' at '"+L+"'."):($.url=p,O&&($.w=O),k&&($.d=k),R&&($.h=R),y.push($))}}})})(ad);var J3=ad.exports,Io={exports:{}},H=String,sd=function(){return{isColorSupported:!1,reset:H,bold:H,dim:H,italic:H,underline:H,inverse:H,hidden:H,strikethrough:H,black:H,red:H,green:H,yellow:H,blue:H,magenta:H,cyan:H,white:H,gray:H,bgBlack:H,bgRed:H,bgGreen:H,bgYellow:H,bgBlue:H,bgMagenta:H,bgCyan:H,bgWhite:H,blackBright:H,redBright:H,greenBright:H,yellowBright:H,blueBright:H,magentaBright:H,cyanBright:H,whiteBright:H,bgBlackBright:H,bgRedBright:H,bgGreenBright:H,bgYellowBright:H,bgBlueBright:H,bgMagentaBright:H,bgCyanBright:H,bgWhiteBright:H}};Io.exports=sd();Io.exports.createColors=sd;var K3=Io.exports;const Z3={},Q3=Object.freeze(Object.defineProperty({__proto__:null,default:Z3},Symbol.toStringTag,{value:"Module"})),je=Of(Q3);let As=K3,Os=je,mu=class ld extends Error{constructor(e,r,n,i,u,o){super(e),this.name="CssSyntaxError",this.reason=e,u&&(this.file=u),i&&(this.source=i),o&&(this.plugin=o),typeof r<"u"&&typeof n<"u"&&(typeof r=="number"?(this.line=r,this.column=n):(this.line=r.line,this.column=r.column,this.endLine=n.line,this.endColumn=n.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,ld)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let r=this.source;e==null&&(e=As.isColorSupported);let n=c=>c,i=c=>c,u=c=>c;if(e){let{bold:c,gray:p,red:d}=As.createColors(!0);i=f=>c(d(f)),n=f=>p(f),Os&&(u=f=>Os(f))}let o=r.split(/\r?\n/),a=Math.max(this.line-3,0),s=Math.min(this.line+2,o.length),l=String(s).length;return o.slice(a,s).map((c,p)=>{let d=a+1+p,f=" "+(" "+d).slice(-l)+" | ";if(d===this.line){if(c.length>160){let m=20,b=Math.max(0,this.column-m),y=Math.max(this.column+m,this.endColumn+m),v=c.slice(b,y),C=n(f.replace(/\d/g," "))+c.slice(0,Math.min(this.column-1,m-1)).replace(/[^\t]/g," ");return i(">")+n(f)+u(v)+`
153
+ `+C+i("^")}let g=n(f.replace(/\d/g," "))+c.slice(0,this.column-1).replace(/[^\t]/g," ");return i(">")+n(f)+u(c)+`
154
+ `+g+i("^")}return" "+n(f)+u(c)}).join(`
155
+ `)}toString(){let e=this.showSourceCode();return e&&(e=`
156
+
157
+ `+e+`
158
+ `),this.name+": "+this.message+e}};var Do=mu;mu.default=mu;const Ns={after:`
159
+ `,beforeClose:`
160
+ `,beforeComment:`
161
+ `,beforeDecl:`
162
+ `,beforeOpen:" ",beforeRule:`
163
+ `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function ew(t){return t[0].toUpperCase()+t.slice(1)}let yu=class{constructor(e){this.builder=e}atrule(e,r){let n="@"+e.name,i=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName<"u"?n+=e.raws.afterName:i&&(n+=" "),e.nodes)this.block(e,n+i);else{let u=(e.raws.between||"")+(r?";":"");this.builder(n+i+u,e)}}beforeAfter(e,r){let n;e.type==="decl"?n=this.raw(e,null,"beforeDecl"):e.type==="comment"?n=this.raw(e,null,"beforeComment"):r==="before"?n=this.raw(e,null,"beforeRule"):n=this.raw(e,null,"beforeClose");let i=e.parent,u=0;for(;i&&i.type!=="root";)u+=1,i=i.parent;if(n.includes(`
164
+ `)){let o=this.raw(e,null,"indent");if(o.length)for(let a=0;a<u;a++)n+=o}return n}block(e,r){let n=this.raw(e,"between","beforeOpen");this.builder(r+n+"{",e,"start");let i;e.nodes&&e.nodes.length?(this.body(e),i=this.raw(e,"after")):i=this.raw(e,"after","emptyBody"),i&&this.builder(i),this.builder("}",e,"end")}body(e){let r=e.nodes.length-1;for(;r>0&&e.nodes[r].type==="comment";)r-=1;let n=this.raw(e,"semicolon");for(let i=0;i<e.nodes.length;i++){let u=e.nodes[i],o=this.raw(u,"before");o&&this.builder(o),this.stringify(u,r!==i||n)}}comment(e){let r=this.raw(e,"left","commentLeft"),n=this.raw(e,"right","commentRight");this.builder("/*"+r+e.text+n+"*/",e)}decl(e,r){let n=this.raw(e,"between","colon"),i=e.prop+n+this.rawValue(e,"value");e.important&&(i+=e.raws.important||" !important"),r&&(i+=";"),this.builder(i,e)}document(e){this.body(e)}raw(e,r,n){let i;if(n||(n=r),r&&(i=e.raws[r],typeof i<"u"))return i;let u=e.parent;if(n==="before"&&(!u||u.type==="root"&&u.first===e||u&&u.type==="document"))return"";if(!u)return Ns[n];let o=e.root();if(o.rawCache||(o.rawCache={}),typeof o.rawCache[n]<"u")return o.rawCache[n];if(n==="before"||n==="after")return this.beforeAfter(e,n);{let a="raw"+ew(n);this[a]?i=this[a](o,e):o.walk(s=>{if(i=s.raws[r],typeof i<"u")return!1})}return typeof i>"u"&&(i=Ns[n]),o.rawCache[n]=i,i}rawBeforeClose(e){let r;return e.walk(n=>{if(n.nodes&&n.nodes.length>0&&typeof n.raws.after<"u")return r=n.raws.after,r.includes(`
165
+ `)&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r}rawBeforeComment(e,r){let n;return e.walkComments(i=>{if(typeof i.raws.before<"u")return n=i.raws.before,n.includes(`
166
+ `)&&(n=n.replace(/[^\n]+$/,"")),!1}),typeof n>"u"?n=this.raw(r,null,"beforeDecl"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeDecl(e,r){let n;return e.walkDecls(i=>{if(typeof i.raws.before<"u")return n=i.raws.before,n.includes(`
167
+ `)&&(n=n.replace(/[^\n]+$/,"")),!1}),typeof n>"u"?n=this.raw(r,null,"beforeRule"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeOpen(e){let r;return e.walk(n=>{if(n.type!=="decl"&&(r=n.raws.between,typeof r<"u"))return!1}),r}rawBeforeRule(e){let r;return e.walk(n=>{if(n.nodes&&(n.parent!==e||e.first!==n)&&typeof n.raws.before<"u")return r=n.raws.before,r.includes(`
168
+ `)&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r}rawColon(e){let r;return e.walkDecls(n=>{if(typeof n.raws.between<"u")return r=n.raws.between.replace(/[^\s:]/g,""),!1}),r}rawEmptyBody(e){let r;return e.walk(n=>{if(n.nodes&&n.nodes.length===0&&(r=n.raws.after,typeof r<"u"))return!1}),r}rawIndent(e){if(e.raws.indent)return e.raws.indent;let r;return e.walk(n=>{let i=n.parent;if(i&&i!==e&&i.parent&&i.parent===e&&typeof n.raws.before<"u"){let u=n.raws.before.split(`
169
+ `);return r=u[u.length-1],r=r.replace(/\S/g,""),!1}}),r}rawSemicolon(e){let r;return e.walk(n=>{if(n.nodes&&n.nodes.length&&n.last.type==="decl"&&(r=n.raws.semicolon,typeof r<"u"))return!1}),r}rawValue(e,r){let n=e[r],i=e.raws[r];return i&&i.value===n?i.raw:n}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,r){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,r)}};var cd=yu;yu.default=yu;let tw=cd;function vu(t,e){new tw(e).stringify(t)}var gi=vu;vu.default=vu;var zr={};zr.isClean=Symbol("isClean");zr.my=Symbol("my");let rw=Do,nw=cd,iw=gi,{isClean:fr,my:uw}=zr;function xu(t,e){let r=new t.constructor;for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n)||n==="proxyCache")continue;let i=t[n],u=typeof i;n==="parent"&&u==="object"?e&&(r[n]=e):n==="source"?r[n]=i:Array.isArray(i)?r[n]=i.map(o=>xu(o,r)):(u==="object"&&i!==null&&(i=xu(i)),r[n]=i)}return r}function Ve(t,e){if(e&&typeof e.offset<"u")return e.offset;let r=1,n=1,i=0;for(let u=0;u<t.length;u++){if(n===e.line&&r===e.column){i=u;break}t[u]===`
170
+ `?(r=1,n+=1):r+=1}return i}let wu=class{get proxyOf(){return this}constructor(e={}){this.raws={},this[fr]=!1,this[uw]=!0;for(let r in e)if(r==="nodes"){this.nodes=[];for(let n of e[r])typeof n.clone=="function"?this.append(n.clone()):this.append(n)}else this[r]=e[r]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let r=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${r.input.from}:${r.start.line}:${r.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let r in e)this[r]=e[r];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let r=xu(this);for(let n in e)r[n]=e[n];return r}cloneAfter(e={}){let r=this.clone(e);return this.parent.insertAfter(this,r),r}cloneBefore(e={}){let r=this.clone(e);return this.parent.insertBefore(this,r),r}error(e,r={}){if(this.source){let{end:n,start:i}=this.rangeBy(r);return this.source.input.error(e,{column:i.column,line:i.line},{column:n.column,line:n.line},r)}return new rw(e)}getProxyProcessor(){return{get(e,r){return r==="proxyOf"?e:r==="root"?()=>e.root().toProxy():e[r]},set(e,r,n){return e[r]===n||(e[r]=n,(r==="prop"||r==="value"||r==="name"||r==="params"||r==="important"||r==="text")&&e.markDirty()),!0}}}markClean(){this[fr]=!0}markDirty(){if(this[fr]){this[fr]=!1;let e=this;for(;e=e.parent;)e[fr]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e={}){let r=this.source.start;if(e.index)r=this.positionInside(e.index);else if(e.word){let n="document"in this.source.input?this.source.input.document:this.source.input.css,u=n.slice(Ve(n,this.source.start),Ve(n,this.source.end)).indexOf(e.word);u!==-1&&(r=this.positionInside(u))}return r}positionInside(e){let r=this.source.start.column,n=this.source.start.line,i="document"in this.source.input?this.source.input.document:this.source.input.css,u=Ve(i,this.source.start),o=u+e;for(let a=u;a<o;a++)i[a]===`
171
+ `?(r=1,n+=1):r+=1;return{column:r,line:n,offset:o}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e={}){let r="document"in this.source.input?this.source.input.document:this.source.input.css,n={column:this.source.start.column,line:this.source.start.line,offset:Ve(r,this.source.start)},i=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:typeof this.source.end.offset=="number"?this.source.end.offset:Ve(r,this.source.end)+1}:{column:n.column+1,line:n.line,offset:n.offset+1};if(e.word){let o=r.slice(Ve(r,this.source.start),Ve(r,this.source.end)).indexOf(e.word);o!==-1&&(n=this.positionInside(o),i=this.positionInside(o+e.word.length))}else e.start?n={column:e.start.column,line:e.start.line,offset:Ve(r,e.start)}:e.index&&(n=this.positionInside(e.index)),e.end?i={column:e.end.column,line:e.end.line,offset:Ve(r,e.end)}:typeof e.endIndex=="number"?i=this.positionInside(e.endIndex):e.index&&(i=this.positionInside(e.index+1));return(i.line<n.line||i.line===n.line&&i.column<=n.column)&&(i={column:n.column+1,line:n.line,offset:n.offset+1}),{end:i,start:n}}raw(e,r){return new nw().raw(this,e,r)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let r=this,n=!1;for(let i of e)i===this?n=!0:n?(this.parent.insertAfter(r,i),r=i):this.parent.insertBefore(r,i);n||this.remove()}return this}root(){let e=this;for(;e.parent&&e.parent.type!=="document";)e=e.parent;return e}toJSON(e,r){let n={},i=r==null;r=r||new Map;let u=0;for(let o in this){if(!Object.prototype.hasOwnProperty.call(this,o)||o==="parent"||o==="proxyCache")continue;let a=this[o];if(Array.isArray(a))n[o]=a.map(s=>typeof s=="object"&&s.toJSON?s.toJSON(null,r):s);else if(typeof a=="object"&&a.toJSON)n[o]=a.toJSON(null,r);else if(o==="source"){if(a==null)continue;let s=r.get(a.input);s==null&&(s=u,r.set(a.input,u),u++),n[o]={end:a.end,inputId:s,start:a.start}}else n[o]=a}return i&&(n.inputs=[...r.keys()].map(o=>o.toJSON())),n}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=iw){e.stringify&&(e=e.stringify);let r="";return e(this,n=>{r+=n}),r}warn(e,r,n={}){let i={node:this};for(let u in n)i[u]=n[u];return e.warn(r,i)}};var mi=wu;wu.default=wu;let ow=mi,Eu=class extends ow{constructor(e){super(e),this.type="comment"}};var yi=Eu;Eu.default=Eu;let aw=mi,Su=class extends aw{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(e){e&&typeof e.value<"u"&&typeof e.value!="string"&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}};var vi=Su;Su.default=Su;let dd=yi,fd=vi,sw=mi,{isClean:pd,my:hd}=zr,Lo,bd,gd,Mo;function md(t){return t.map(e=>(e.nodes&&(e.nodes=md(e.nodes)),delete e.source,e))}function yd(t){if(t[pd]=!1,t.proxyOf.nodes)for(let e of t.proxyOf.nodes)yd(e)}let tt=class vd extends sw{get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}append(...e){for(let r of e){let n=this.normalize(r,this.last);for(let i of n)this.proxyOf.nodes.push(i)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let r of this.nodes)r.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let r=this.getIterator(),n,i;for(;this.indexes[r]<this.proxyOf.nodes.length&&(n=this.indexes[r],i=e(this.proxyOf.nodes[n],n),i!==!1);)this.indexes[r]+=1;return delete this.indexes[r],i}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get(e,r){return r==="proxyOf"?e:e[r]?r==="each"||typeof r=="string"&&r.startsWith("walk")?(...n)=>e[r](...n.map(i=>typeof i=="function"?(u,o)=>i(u.toProxy(),o):i)):r==="every"||r==="some"?n=>e[r]((i,...u)=>n(i.toProxy(),...u)):r==="root"?()=>e.root().toProxy():r==="nodes"?e.nodes.map(n=>n.toProxy()):r==="first"||r==="last"?e[r].toProxy():e[r]:e[r]},set(e,r,n){return e[r]===n||(e[r]=n,(r==="name"||r==="params"||r==="selector")&&e.markDirty()),!0}}}index(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,r){let n=this.index(e),i=this.normalize(r,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(let o of i)this.proxyOf.nodes.splice(n+1,0,o);let u;for(let o in this.indexes)u=this.indexes[o],n<u&&(this.indexes[o]=u+i.length);return this.markDirty(),this}insertBefore(e,r){let n=this.index(e),i=n===0?"prepend":!1,u=this.normalize(r,this.proxyOf.nodes[n],i).reverse();n=this.index(e);for(let a of u)this.proxyOf.nodes.splice(n,0,a);let o;for(let a in this.indexes)o=this.indexes[a],n<=o&&(this.indexes[a]=o+u.length);return this.markDirty(),this}normalize(e,r){if(typeof e=="string")e=md(bd(e).nodes);else if(typeof e>"u")e=[];else if(Array.isArray(e)){e=e.slice(0);for(let i of e)i.parent&&i.parent.removeChild(i,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let i of e)i.parent&&i.parent.removeChild(i,"ignore")}else if(e.type)e=[e];else if(e.prop){if(typeof e.value>"u")throw new Error("Value field is missed in node creation");typeof e.value!="string"&&(e.value=String(e.value)),e=[new fd(e)]}else if(e.selector||e.selectors)e=[new Mo(e)];else if(e.name)e=[new Lo(e)];else if(e.text)e=[new dd(e)];else throw new Error("Unknown node type in node creation");return e.map(i=>(i[hd]||vd.rebuild(i),i=i.proxyOf,i.parent&&i.parent.removeChild(i),i[pd]&&yd(i),i.raws||(i.raws={}),typeof i.raws.before>"u"&&r&&typeof r.raws.before<"u"&&(i.raws.before=r.raws.before.replace(/\S/g,"")),i.parent=this.proxyOf,i))}prepend(...e){e=e.reverse();for(let r of e){let n=this.normalize(r,this.first,"prepend").reverse();for(let i of n)this.proxyOf.nodes.unshift(i);for(let i in this.indexes)this.indexes[i]=this.indexes[i]+n.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);let r;for(let n in this.indexes)r=this.indexes[n],r>=e&&(this.indexes[n]=r-1);return this.markDirty(),this}replaceValues(e,r,n){return n||(n=r,r={}),this.walkDecls(i=>{r.props&&!r.props.includes(i.prop)||r.fast&&!i.value.includes(r.fast)||(i.value=i.value.replace(e,n))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((r,n)=>{let i;try{i=e(r,n)}catch(u){throw r.addToError(u)}return i!==!1&&r.walk&&(i=r.walk(e)),i})}walkAtRules(e,r){return r?e instanceof RegExp?this.walk((n,i)=>{if(n.type==="atrule"&&e.test(n.name))return r(n,i)}):this.walk((n,i)=>{if(n.type==="atrule"&&n.name===e)return r(n,i)}):(r=e,this.walk((n,i)=>{if(n.type==="atrule")return r(n,i)}))}walkComments(e){return this.walk((r,n)=>{if(r.type==="comment")return e(r,n)})}walkDecls(e,r){return r?e instanceof RegExp?this.walk((n,i)=>{if(n.type==="decl"&&e.test(n.prop))return r(n,i)}):this.walk((n,i)=>{if(n.type==="decl"&&n.prop===e)return r(n,i)}):(r=e,this.walk((n,i)=>{if(n.type==="decl")return r(n,i)}))}walkRules(e,r){return r?e instanceof RegExp?this.walk((n,i)=>{if(n.type==="rule"&&e.test(n.selector))return r(n,i)}):this.walk((n,i)=>{if(n.type==="rule"&&n.selector===e)return r(n,i)}):(r=e,this.walk((n,i)=>{if(n.type==="rule")return r(n,i)}))}};tt.registerParse=t=>{bd=t};tt.registerRule=t=>{Mo=t};tt.registerAtRule=t=>{Lo=t};tt.registerRoot=t=>{gd=t};var jt=tt;tt.default=tt;tt.rebuild=t=>{t.type==="atrule"?Object.setPrototypeOf(t,Lo.prototype):t.type==="rule"?Object.setPrototypeOf(t,Mo.prototype):t.type==="decl"?Object.setPrototypeOf(t,fd.prototype):t.type==="comment"?Object.setPrototypeOf(t,dd.prototype):t.type==="root"&&Object.setPrototypeOf(t,gd.prototype),t[hd]=!0,t.nodes&&t.nodes.forEach(e=>{tt.rebuild(e)})};let xd=jt,$n=class extends xd{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}};var $o=$n;$n.default=$n;xd.registerAtRule($n);let lw=jt,wd,Ed,kr=class extends lw{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new wd(new Ed,this,e).stringify()}};kr.registerLazyResult=t=>{wd=t};kr.registerProcessor=t=>{Ed=t};var Bo=kr;kr.default=kr;let cw="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",dw=(t=21)=>{let e="",r=t|0;for(;r--;)e+=cw[Math.random()*64|0];return e};var fw={nanoid:dw};let{existsSync:pw,readFileSync:hw}=je,{dirname:Li,join:bw}=je,{SourceMapConsumer:js,SourceMapGenerator:_s}=je;function gw(t){return Buffer?Buffer.from(t,"base64").toString():window.atob(t)}let Cu=class{constructor(e,r){if(r.map===!1)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let n=r.map?r.map.prev:void 0,i=this.loadMap(r.from,n);!this.mapFile&&r.from&&(this.mapFile=r.from),this.mapFile&&(this.root=Li(this.mapFile)),i&&(this.text=i)}consumer(){return this.consumerCache||(this.consumerCache=new js(this.text)),this.consumerCache}decodeInline(e){let r=/^data:application\/json;charset=utf-?8;base64,/,n=/^data:application\/json;base64,/,i=/^data:application\/json;charset=utf-?8,/,u=/^data:application\/json,/,o=e.match(i)||e.match(u);if(o)return decodeURIComponent(e.substr(o[0].length));let a=e.match(r)||e.match(n);if(a)return gw(e.substr(a[0].length));let s=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+s)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return typeof e!="object"?!1:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)}loadAnnotation(e){let r=e.match(/\/\*\s*# sourceMappingURL=/g);if(!r)return;let n=e.lastIndexOf(r.pop()),i=e.indexOf("*/",n);n>-1&&i>-1&&(this.annotation=this.getAnnotationURL(e.substring(n,i)))}loadFile(e){if(this.root=Li(e),pw(e))return this.mapFile=e,hw(e,"utf-8").toString().trim()}loadMap(e,r){if(r===!1)return!1;if(r){if(typeof r=="string")return r;if(typeof r=="function"){let n=r(e);if(n){let i=this.loadFile(n);if(!i)throw new Error("Unable to load previous source map: "+n.toString());return i}}else{if(r instanceof js)return _s.fromSourceMap(r).toString();if(r instanceof _s)return r.toString();if(this.isMap(r))return JSON.stringify(r);throw new Error("Unsupported previous source map format: "+r.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let n=this.annotation;return e&&(n=bw(Li(e),n)),this.loadFile(n)}}}startWith(e,r){return e?e.substr(0,r.length)===r:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};var Sd=Cu;Cu.default=Cu;let{nanoid:mw}=fw,{isAbsolute:Tu,resolve:Au}=je,{SourceMapConsumer:yw,SourceMapGenerator:vw}=je,{fileURLToPath:Ps,pathToFileURL:tn}=je,ks=Do,xw=Sd,Mi=je,$i=Symbol("lineToIndexCache"),ww=!!(yw&&vw),Rs=!!(Au&&Tu);function Is(t){if(t[$i])return t[$i];let e=t.css.split(`
172
+ `),r=new Array(e.length),n=0;for(let i=0,u=e.length;i<u;i++)r[i]=n,n+=e[i].length+1;return t[$i]=r,r}let Bn=class{get from(){return this.file||this.id}constructor(e,r={}){if(e===null||typeof e>"u"||typeof e=="object"&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),this.css[0]==="\uFEFF"||this.css[0]==="￾"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,r.document&&(this.document=r.document.toString()),r.from&&(!Rs||/^\w+:\/\//.test(r.from)||Tu(r.from)?this.file=r.from:this.file=Au(r.from)),Rs&&ww){let n=new xw(this.css,r);if(n.text){this.map=n;let i=n.consumer().file;!this.file&&i&&(this.file=this.mapResolve(i))}}this.file||(this.id="<input css "+mw(6)+">"),this.map&&(this.map.file=this.from)}error(e,r,n,i={}){let u,o,a,s,l;if(r&&typeof r=="object"){let p=r,d=n;if(typeof p.offset=="number"){s=p.offset;let f=this.fromOffset(s);r=f.line,n=f.col}else r=p.line,n=p.column,s=this.fromLineAndColumn(r,n);if(typeof d.offset=="number"){a=d.offset;let f=this.fromOffset(a);o=f.line,u=f.col}else o=d.line,u=d.column,a=this.fromLineAndColumn(d.line,d.column)}else if(n)s=this.fromLineAndColumn(r,n);else{s=r;let p=this.fromOffset(s);r=p.line,n=p.col}let c=this.origin(r,n,o,u);return c?l=new ks(e,c.endLine===void 0?c.line:{column:c.column,line:c.line},c.endLine===void 0?c.column:{column:c.endColumn,line:c.endLine},c.source,c.file,i.plugin):l=new ks(e,o===void 0?r:{column:n,line:r},o===void 0?n:{column:u,line:o},this.css,this.file,i.plugin),l.input={column:n,endColumn:u,endLine:o,endOffset:a,line:r,offset:s,source:this.css},this.file&&(tn&&(l.input.url=tn(this.file).toString()),l.input.file=this.file),l}fromLineAndColumn(e,r){return Is(this)[e-1]+r-1}fromOffset(e){let r=Is(this),n=r[r.length-1],i=0;if(e>=n)i=r.length-1;else{let u=r.length-2,o;for(;i<u;)if(o=i+(u-i>>1),e<r[o])u=o-1;else if(e>=r[o+1])i=o+1;else{i=o;break}}return{col:e-r[i]+1,line:i+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:Au(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,r,n,i){if(!this.map)return!1;let u=this.map.consumer(),o=u.originalPositionFor({column:r,line:e});if(!o.source)return!1;let a;typeof n=="number"&&(a=u.originalPositionFor({column:i,line:n}));let s;Tu(o.source)?s=tn(o.source):s=new URL(o.source,this.map.consumer().sourceRoot||tn(this.map.mapFile));let l={column:o.column,endColumn:a&&a.column,endLine:a&&a.line,line:o.line,url:s.toString()};if(s.protocol==="file:")if(Ps)l.file=Ps(s);else throw new Error("file: protocol is not available in this PostCSS build");let c=u.sourceContentFor(o.source);return c&&(l.source=c),l}toJSON(){let e={};for(let r of["hasBOM","css","file","id"])this[r]!=null&&(e[r]=this[r]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}};var xi=Bn;Bn.default=Bn;Mi&&Mi.registerInput&&Mi.registerInput(Bn);let Cd=jt,Td,Ad,Gt=class extends Cd{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,r,n){let i=super.normalize(e);if(r){if(n==="prepend")this.nodes.length>1?r.raws.before=this.nodes[1].raws.before:delete r.raws.before;else if(this.first!==r)for(let u of i)u.raws.before=r.raws.before}return i}removeChild(e,r){let n=this.index(e);return!r&&n===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),super.removeChild(e)}toResult(e={}){return new Td(new Ad,this,e).stringify()}};Gt.registerLazyResult=t=>{Td=t};Gt.registerProcessor=t=>{Ad=t};var Ur=Gt;Gt.default=Gt;Cd.registerRoot(Gt);let Rr={comma(t){return Rr.split(t,[","],!0)},space(t){let e=[" ",`
173
+ `," "];return Rr.split(t,e)},split(t,e,r){let n=[],i="",u=!1,o=0,a=!1,s="",l=!1;for(let c of t)l?l=!1:c==="\\"?l=!0:a?c===s&&(a=!1):c==='"'||c==="'"?(a=!0,s=c):c==="("?o+=1:c===")"?o>0&&(o-=1):o===0&&e.includes(c)&&(u=!0),u?(i!==""&&n.push(i.trim()),i="",u=!1):i+=c;return(r||i!=="")&&n.push(i.trim()),n}};var Od=Rr;Rr.default=Rr;let Nd=jt,Ew=Od,qn=class extends Nd{get selectors(){return Ew.comma(this.selector)}set selectors(e){let r=this.selector?this.selector.match(/,\s*/):null,n=r?r[0]:","+this.raw("between","beforeOpen");this.selector=e.join(n)}constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}};var qo=qn;qn.default=qn;Nd.registerRule(qn);let Sw=$o,Cw=yi,Tw=vi,Aw=xi,Ow=Sd,Nw=Ur,jw=qo;function Ir(t,e){if(Array.isArray(t))return t.map(i=>Ir(i));let{inputs:r,...n}=t;if(r){e=[];for(let i of r){let u={...i,__proto__:Aw.prototype};u.map&&(u.map={...u.map,__proto__:Ow.prototype}),e.push(u)}}if(n.nodes&&(n.nodes=t.nodes.map(i=>Ir(i,e))),n.source){let{inputId:i,...u}=n.source;n.source=u,i!=null&&(n.source.input=e[i])}if(n.type==="root")return new Nw(n);if(n.type==="decl")return new Tw(n);if(n.type==="rule")return new jw(n);if(n.type==="comment")return new Cw(n);if(n.type==="atrule")return new Sw(n);throw new Error("Unknown node type: "+t.type)}var _w=Ir;Ir.default=Ir;let{dirname:hn,relative:jd,resolve:_d,sep:Pd}=je,{SourceMapConsumer:kd,SourceMapGenerator:bn}=je,{pathToFileURL:Ds}=je,Pw=xi,kw=!!(kd&&bn),Rw=!!(hn&&_d&&jd&&Pd),Iw=class{constructor(e,r,n,i){this.stringify=e,this.mapOpts=n.map||{},this.root=r,this.opts=n,this.css=i,this.originalCSS=i,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;this.isInline()?e="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?e=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?e=this.mapOpts.annotation(this.opts.to,this.root):e=this.outputFile()+".map";let r=`
174
+ `;this.css.includes(`\r
175
+ `)&&(r=`\r
176
+ `),this.css+=r+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let r=this.toUrl(this.path(e.file)),n=e.root||hn(e.file),i;this.mapOpts.sourcesContent===!1?(i=new kd(e.text),i.sourcesContent&&(i.sourcesContent=null)):i=e.consumer(),this.map.applySourceMap(i,r,this.toUrl(this.path(n)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let e;for(let r=this.root.nodes.length-1;r>=0;r--)e=this.root.nodes[r],e.type==="comment"&&e.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(r)}else this.css&&(this.css=this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),Rw&&kw&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,r=>{e+=r}),[e]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=bn.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new bn({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new bn({file:this.outputFile(),ignoreInvalidMapping:!0});let e=1,r=1,n="<no source>",i={generated:{column:0,line:0},original:{column:0,line:0},source:""},u,o;this.stringify(this.root,(a,s,l)=>{if(this.css+=a,s&&l!=="end"&&(i.generated.line=e,i.generated.column=r-1,s.source&&s.source.start?(i.source=this.sourcePath(s),i.original.line=s.source.start.line,i.original.column=s.source.start.column-1,this.map.addMapping(i)):(i.source=n,i.original.line=1,i.original.column=0,this.map.addMapping(i))),o=a.match(/\n/g),o?(e+=o.length,u=a.lastIndexOf(`
177
+ `),r=a.length-u):r+=a.length,s&&l!=="start"){let c=s.parent||{raws:{}};(!(s.type==="decl"||s.type==="atrule"&&!s.nodes)||s!==c.last||c.raws.semicolon)&&(s.source&&s.source.end?(i.source=this.sourcePath(s),i.original.line=s.source.end.line,i.original.column=s.source.end.column-1,i.generated.line=e,i.generated.column=r-2,this.map.addMapping(i)):(i.source=n,i.original.line=1,i.original.column=0,i.generated.line=e,i.generated.column=r-1,this.map.addMapping(i)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(e=>e.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let e=this.mapOpts.annotation;return typeof e<"u"&&e!==!0?!1:this.previous().length?this.previous().some(r=>r.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(e=>e.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;let r=this.memoizedPaths.get(e);if(r)return r;let n=this.opts.to?hn(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(n=hn(_d(n,this.mapOpts.annotation)));let i=jd(n,e);return this.memoizedPaths.set(e,i),i}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let r=e.source.input.map;this.previousMaps.includes(r)||this.previousMaps.push(r)}});else{let e=new Pw(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(r=>{if(r.source){let n=r.source.input.from;if(n&&!e[n]){e[n]=!0;let i=this.usesFileUrls?this.toFileUrl(n):this.toUrl(this.path(n));this.map.setSourceContent(i,r.source.input.css)}}});else if(this.css){let r=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(r,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let r=this.memoizedFileURLs.get(e);if(r)return r;if(Ds){let n=Ds(e).toString();return this.memoizedFileURLs.set(e,n),n}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let r=this.memoizedURLs.get(e);if(r)return r;Pd==="\\"&&(e=e.replace(/\\/g,"/"));let n=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,n),n}};var Rd=Iw;const Bi=39,Ls=34,rn=92,Ms=47,nn=10,pr=32,un=12,on=9,an=13,Dw=91,Lw=93,Mw=40,$w=41,Bw=123,qw=125,Hw=59,Fw=42,zw=58,Uw=64,sn=/[\t\n\f\r "#'()/;[\\\]{}]/g,ln=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Vw=/.[\r\n"'(/\\]/,$s=/[\da-f]/i;var Ww=function(e,r={}){let n=e.css.valueOf(),i=r.ignoreErrors,u,o,a,s,l,c,p,d,f,g,m=n.length,b=0,y=[],v=[];function C(){return b}function S(D){throw e.error("Unclosed "+D,b)}function O(){return v.length===0&&b>=m}function k(D){if(v.length)return v.pop();if(b>=m)return;let $=D?D.ignoreUnclosed:!1;switch(u=n.charCodeAt(b),u){case nn:case pr:case on:case an:case un:{s=b;do s+=1,u=n.charCodeAt(s);while(u===pr||u===nn||u===on||u===an||u===un);c=["space",n.slice(b,s)],b=s-1;break}case Dw:case Lw:case Bw:case qw:case zw:case Hw:case $w:{let L=String.fromCharCode(u);c=[L,L,b];break}case Mw:{if(g=y.length?y.pop()[1]:"",f=n.charCodeAt(b+1),g==="url"&&f!==Bi&&f!==Ls&&f!==pr&&f!==nn&&f!==on&&f!==un&&f!==an){s=b;do{if(p=!1,s=n.indexOf(")",s+1),s===-1)if(i||$){s=b;break}else S("bracket");for(d=s;n.charCodeAt(d-1)===rn;)d-=1,p=!p}while(p);c=["brackets",n.slice(b,s+1),b,s],b=s}else s=n.indexOf(")",b+1),o=n.slice(b,s+1),s===-1||Vw.test(o)?c=["(","(",b]:(c=["brackets",o,b,s],b=s);break}case Bi:case Ls:{l=u===Bi?"'":'"',s=b;do{if(p=!1,s=n.indexOf(l,s+1),s===-1)if(i||$){s=b+1;break}else S("string");for(d=s;n.charCodeAt(d-1)===rn;)d-=1,p=!p}while(p);c=["string",n.slice(b,s+1),b,s],b=s;break}case Uw:{sn.lastIndex=b+1,sn.test(n),sn.lastIndex===0?s=n.length-1:s=sn.lastIndex-2,c=["at-word",n.slice(b,s+1),b,s],b=s;break}case rn:{for(s=b,a=!0;n.charCodeAt(s+1)===rn;)s+=1,a=!a;if(u=n.charCodeAt(s+1),a&&u!==Ms&&u!==pr&&u!==nn&&u!==on&&u!==an&&u!==un&&(s+=1,$s.test(n.charAt(s)))){for(;$s.test(n.charAt(s+1));)s+=1;n.charCodeAt(s+1)===pr&&(s+=1)}c=["word",n.slice(b,s+1),b,s],b=s;break}default:{u===Ms&&n.charCodeAt(b+1)===Fw?(s=n.indexOf("*/",b+2)+1,s===0&&(i||$?s=n.length:S("comment")),c=["comment",n.slice(b,s+1),b,s],b=s):(ln.lastIndex=b+1,ln.test(n),ln.lastIndex===0?s=n.length-1:s=ln.lastIndex-2,c=["word",n.slice(b,s+1),b,s],y.push(c),b=s);break}}return b++,c}function R(D){v.push(D)}return{back:R,endOfFile:O,nextToken:k,position:C}};let Gw=$o,Xw=yi,Yw=vi,Jw=Ur,Bs=qo,Kw=Ww;const qs={empty:!0,space:!0};function Zw(t){for(let e=t.length-1;e>=0;e--){let r=t[e],n=r[3]||r[2];if(n)return n}}let Qw=class{constructor(e){this.input=e,this.root=new Jw,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let r=new Gw;r.name=e[1].slice(1),r.name===""&&this.unnamedAtrule(r,e),this.init(r,e[2]);let n,i,u,o=!1,a=!1,s=[],l=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),n=e[0],n==="("||n==="["?l.push(n==="("?")":"]"):n==="{"&&l.length>0?l.push("}"):n===l[l.length-1]&&l.pop(),l.length===0)if(n===";"){r.source.end=this.getPosition(e[2]),r.source.end.offset++,this.semicolon=!0;break}else if(n==="{"){a=!0;break}else if(n==="}"){if(s.length>0){for(u=s.length-1,i=s[u];i&&i[0]==="space";)i=s[--u];i&&(r.source.end=this.getPosition(i[3]||i[2]),r.source.end.offset++)}this.end(e);break}else s.push(e);else s.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}r.raws.between=this.spacesAndCommentsFromEnd(s),s.length?(r.raws.afterName=this.spacesAndCommentsFromStart(s),this.raw(r,"params",s),o&&(e=s[s.length-1],r.source.end=this.getPosition(e[3]||e[2]),r.source.end.offset++,this.spaces=r.raws.between,r.raws.between="")):(r.raws.afterName="",r.params=""),a&&(r.nodes=[],this.current=r)}checkMissedSemicolon(e){let r=this.colon(e);if(r===!1)return;let n=0,i;for(let u=r-1;u>=0&&(i=e[u],!(i[0]!=="space"&&(n+=1,n===2)));u--);throw this.input.error("Missed semicolon",i[0]==="word"?i[3]+1:i[2])}colon(e){let r=0,n,i,u;for(let[o,a]of e.entries()){if(i=a,u=i[0],u==="("&&(r+=1),u===")"&&(r-=1),r===0&&u===":")if(!n)this.doubleColon(i);else{if(n[0]==="word"&&n[1]==="progid")continue;return o}n=i}return!1}comment(e){let r=new Xw;this.init(r,e[2]),r.source.end=this.getPosition(e[3]||e[2]),r.source.end.offset++;let n=e[1].slice(2,-2);if(/^\s*$/.test(n))r.text="",r.raws.left=n,r.raws.right="";else{let i=n.match(/^(\s*)([^]*\S)(\s*)$/);r.text=i[2],r.raws.left=i[1],r.raws.right=i[3]}}createTokenizer(){this.tokenizer=Kw(this.input)}decl(e,r){let n=new Yw;this.init(n,e[0][2]);let i=e[e.length-1];for(i[0]===";"&&(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(i[3]||i[2]||Zw(e)),n.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),n.raws.before+=e.shift()[1];for(n.source.start=this.getPosition(e[0][2]),n.prop="";e.length;){let l=e[0][0];if(l===":"||l==="space"||l==="comment")break;n.prop+=e.shift()[1]}n.raws.between="";let u;for(;e.length;)if(u=e.shift(),u[0]===":"){n.raws.between+=u[1];break}else u[0]==="word"&&/\w/.test(u[1])&&this.unknownWord([u]),n.raws.between+=u[1];(n.prop[0]==="_"||n.prop[0]==="*")&&(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));let o=[],a;for(;e.length&&(a=e[0][0],!(a!=="space"&&a!=="comment"));)o.push(e.shift());this.precheckMissedSemicolon(e);for(let l=e.length-1;l>=0;l--){if(u=e[l],u[1].toLowerCase()==="!important"){n.important=!0;let c=this.stringFrom(e,l);c=this.spacesFromEnd(e)+c,c!==" !important"&&(n.raws.important=c);break}else if(u[1].toLowerCase()==="important"){let c=e.slice(0),p="";for(let d=l;d>0;d--){let f=c[d][0];if(p.trim().startsWith("!")&&f!=="space")break;p=c.pop()[1]+p}p.trim().startsWith("!")&&(n.important=!0,n.raws.important=p,e=c)}if(u[0]!=="space"&&u[0]!=="comment")break}e.some(l=>l[0]!=="space"&&l[0]!=="comment")&&(n.raws.between+=o.map(l=>l[1]).join(""),o=[]),this.raw(n,"value",o.concat(e),r),n.value.includes(":")&&!r&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let r=new Bs;this.init(r,e[2]),r.selector="",r.raws.between="",this.current=r}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let r=this.current.nodes[this.current.nodes.length-1];r&&r.type==="rule"&&!r.raws.ownSemicolon&&(r.raws.ownSemicolon=this.spaces,this.spaces="",r.source.end=this.getPosition(e[2]),r.source.end.offset+=r.raws.ownSemicolon.length)}}getPosition(e){let r=this.input.fromOffset(e);return{column:r.col,line:r.line,offset:e}}init(e,r){this.current.push(e),e.source={input:this.input,start:this.getPosition(r)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)}other(e){let r=!1,n=null,i=!1,u=null,o=[],a=e[1].startsWith("--"),s=[],l=e;for(;l;){if(n=l[0],s.push(l),n==="("||n==="[")u||(u=l),o.push(n==="("?")":"]");else if(a&&i&&n==="{")u||(u=l),o.push("}");else if(o.length===0)if(n===";")if(i){this.decl(s,a);return}else break;else if(n==="{"){this.rule(s);return}else if(n==="}"){this.tokenizer.back(s.pop()),r=!0;break}else n===":"&&(i=!0);else n===o[o.length-1]&&(o.pop(),o.length===0&&(u=null));l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(r=!0),o.length>0&&this.unclosedBracket(u),r&&i){if(!a)for(;s.length&&(l=s[s.length-1][0],!(l!=="space"&&l!=="comment"));)this.tokenizer.back(s.pop());this.decl(s,a)}else this.unknownWord(s)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()}precheckMissedSemicolon(){}raw(e,r,n,i){let u,o,a=n.length,s="",l=!0,c,p;for(let d=0;d<a;d+=1)u=n[d],o=u[0],o==="space"&&d===a-1&&!i?l=!1:o==="comment"?(p=n[d-1]?n[d-1][0]:"empty",c=n[d+1]?n[d+1][0]:"empty",!qs[p]&&!qs[c]?s.slice(-1)===","?l=!1:s+=u[1]:l=!1):s+=u[1];if(!l){let d=n.reduce((f,g)=>f+g[1],"");e.raws[r]={raw:d,value:s}}e[r]=s}rule(e){e.pop();let r=new Bs;this.init(r,e[0][2]),r.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(r,"selector",e),this.current=r}spacesAndCommentsFromEnd(e){let r,n="";for(;e.length&&(r=e[e.length-1][0],!(r!=="space"&&r!=="comment"));)n=e.pop()[1]+n;return n}spacesAndCommentsFromStart(e){let r,n="";for(;e.length&&(r=e[0][0],!(r!=="space"&&r!=="comment"));)n+=e.shift()[1];return n}spacesFromEnd(e){let r,n="";for(;e.length&&(r=e[e.length-1][0],r==="space");)n=e.pop()[1]+n;return n}stringFrom(e,r){let n="";for(let i=r;i<e.length;i++)n+=e[i][1];return e.splice(r,e.length-r),n}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word "+e[0][1],{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,r){throw this.input.error("At-rule without name",{offset:r[2]},{offset:r[2]+r[1].length})}};var e6=Qw;let t6=jt,r6=xi,n6=e6;function Hn(t,e){let r=new r6(t,e),n=new n6(r);try{n.parse()}catch(i){throw process.env.NODE_ENV!=="production"&&i.name==="CssSyntaxError"&&e&&e.from&&(/\.scss$/i.test(e.from)?i.message+=`
178
+ You tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser`:/\.sass/i.test(e.from)?i.message+=`
179
+ You tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser`:/\.less$/i.test(e.from)&&(i.message+=`
180
+ You tried to parse Less with the standard CSS parser; try again with the postcss-less parser`)),i}return n.root}var Ho=Hn;Hn.default=Hn;t6.registerParse(Hn);let Ou=class{constructor(e,r={}){if(this.type="warning",this.text=e,r.node&&r.node.source){let n=r.node.rangeBy(r);this.line=n.start.line,this.column=n.start.column,this.endLine=n.end.line,this.endColumn=n.end.column}for(let n in r)this[n]=r[n]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};var Id=Ou;Ou.default=Ou;let i6=Id,Nu=class{get content(){return this.css}constructor(e,r,n){this.processor=e,this.messages=[],this.root=r,this.opts=n,this.css="",this.map=void 0}toString(){return this.css}warn(e,r={}){r.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(r.plugin=this.lastPlugin.postcssPlugin);let n=new i6(e,r);return this.messages.push(n),n}warnings(){return this.messages.filter(e=>e.type==="warning")}};var Fo=Nu;Nu.default=Nu;let Hs={};var Dd=function(e){Hs[e]||(Hs[e]=!0,typeof console<"u"&&console.warn&&console.warn(e))};let u6=jt,o6=Bo,a6=Rd,s6=Ho,Fs=Fo,l6=Ur,c6=gi,{isClean:Pe,my:d6}=zr,f6=Dd;const p6={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},h6={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},b6={Once:!0,postcssPlugin:!0,prepare:!0},Xt=0;function hr(t){return typeof t=="object"&&typeof t.then=="function"}function Ld(t){let e=!1,r=p6[t.type];return t.type==="decl"?e=t.prop.toLowerCase():t.type==="atrule"&&(e=t.name.toLowerCase()),e&&t.append?[r,r+"-"+e,Xt,r+"Exit",r+"Exit-"+e]:e?[r,r+"-"+e,r+"Exit",r+"Exit-"+e]:t.append?[r,Xt,r+"Exit"]:[r,r+"Exit"]}function zs(t){let e;return t.type==="document"?e=["Document",Xt,"DocumentExit"]:t.type==="root"?e=["Root",Xt,"RootExit"]:e=Ld(t),{eventIndex:0,events:e,iterator:0,node:t,visitorIndex:0,visitors:[]}}function ju(t){return t[Pe]=!1,t.nodes&&t.nodes.forEach(e=>ju(e)),t}let _u={},Yt=class Md{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}constructor(e,r,n){this.stringified=!1,this.processed=!1;let i;if(typeof r=="object"&&r!==null&&(r.type==="root"||r.type==="document"))i=ju(r);else if(r instanceof Md||r instanceof Fs)i=ju(r.root),r.map&&(typeof n.map>"u"&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{let u=s6;n.syntax&&(u=n.syntax.parse),n.parser&&(u=n.parser),u.parse&&(u=u.parse);try{i=u(r,n)}catch(o){this.processed=!0,this.error=o}i&&!i[d6]&&u6.rebuild(i)}this.result=new Fs(e,i,n),this.helpers={..._u,postcss:_u,result:this.result},this.plugins=this.processor.plugins.map(u=>typeof u=="object"&&u.prepare?{...u,...u.prepare(this.result)}:u)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,r){let n=this.result.lastPlugin;try{if(r&&r.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin)e.plugin=n.postcssPlugin,e.setMessage();else if(n.postcssVersion&&process.env.NODE_ENV!=="production"){let i=n.postcssPlugin,u=n.postcssVersion,o=this.result.processor.version,a=u.split("."),s=o.split(".");(a[0]!==s[0]||parseInt(a[1])>parseInt(s[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+o+", but "+i+" uses "+u+". Perhaps this is the source of the error below.")}}catch(i){console&&console.error&&console.error(i)}return e}prepareVisitors(){this.listeners={};let e=(r,n,i)=>{this.listeners[n]||(this.listeners[n]=[]),this.listeners[n].push([r,i])};for(let r of this.plugins)if(typeof r=="object")for(let n in r){if(!h6[n]&&/^[A-Z]/.test(n))throw new Error(`Unknown event ${n} in ${r.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!b6[n])if(typeof r[n]=="object")for(let i in r[n])i==="*"?e(r,n,r[n][i]):e(r,n+"-"+i.toLowerCase(),r[n][i]);else typeof r[n]=="function"&&e(r,n,r[n])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let r=this.plugins[e],n=this.runOnRoot(r);if(hr(n))try{await n}catch(i){throw this.handleError(i)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[Pe];){e[Pe]=!0;let r=[zs(e)];for(;r.length>0;){let n=this.visitTick(r);if(hr(n))try{await n}catch(i){let u=r[r.length-1].node;throw this.handleError(i,u)}}}if(this.listeners.OnceExit)for(let[r,n]of this.listeners.OnceExit){this.result.lastPlugin=r;try{if(e.type==="document"){let i=e.nodes.map(u=>n(u,this.helpers));await Promise.all(i)}else await n(e,this.helpers)}catch(i){throw this.handleError(i)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e=="object"&&e.Once){if(this.result.root.type==="document"){let r=this.result.root.nodes.map(n=>e.Once(n,this.helpers));return hr(r[0])?Promise.all(r):r}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(r){throw this.handleError(r)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,r=c6;e.syntax&&(r=e.syntax.stringify),e.stringifier&&(r=e.stringifier),r.stringify&&(r=r.stringify);let i=new a6(r,this.result.root,this.result.opts).generate();return this.result.css=i[0],this.result.map=i[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){let r=this.runOnRoot(e);if(hr(r))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[Pe];)e[Pe]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(e.type==="document")for(let r of e.nodes)this.visitSync(this.listeners.OnceExit,r);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,r){return process.env.NODE_ENV!=="production"&&("from"in this.opts||f6("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,r)}toString(){return this.css}visitSync(e,r){for(let[n,i]of e){this.result.lastPlugin=n;let u;try{u=i(r,this.helpers)}catch(o){throw this.handleError(o,r.proxyOf)}if(r.type!=="root"&&r.type!=="document"&&!r.parent)return!0;if(hr(u))throw this.getAsyncError()}}visitTick(e){let r=e[e.length-1],{node:n,visitors:i}=r;if(n.type!=="root"&&n.type!=="document"&&!n.parent){e.pop();return}if(i.length>0&&r.visitorIndex<i.length){let[o,a]=i[r.visitorIndex];r.visitorIndex+=1,r.visitorIndex===i.length&&(r.visitors=[],r.visitorIndex=0),this.result.lastPlugin=o;try{return a(n.toProxy(),this.helpers)}catch(s){throw this.handleError(s,n)}}if(r.iterator!==0){let o=r.iterator,a;for(;a=n.nodes[n.indexes[o]];)if(n.indexes[o]+=1,!a[Pe]){a[Pe]=!0,e.push(zs(a));return}r.iterator=0,delete n.indexes[o]}let u=r.events;for(;r.eventIndex<u.length;){let o=u[r.eventIndex];if(r.eventIndex+=1,o===Xt){n.nodes&&n.nodes.length&&(n[Pe]=!0,r.iterator=n.getIterator());return}else if(this.listeners[o]){r.visitors=this.listeners[o];return}}e.pop()}walkSync(e){e[Pe]=!0;let r=Ld(e);for(let n of r)if(n===Xt)e.nodes&&e.each(i=>{i[Pe]||this.walkSync(i)});else{let i=this.listeners[n];if(i&&this.visitSync(i,e.toProxy()))return}}warnings(){return this.sync().warnings()}};Yt.registerPostcss=t=>{_u=t};var $d=Yt;Yt.default=Yt;l6.registerLazyResult(Yt);o6.registerLazyResult(Yt);let g6=Rd,m6=Ho;const y6=Fo;let v6=gi,x6=Dd,Pu=class{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,r=m6;try{e=r(this._css,this._opts)}catch(n){this.error=n}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(e,r,n){r=r.toString(),this.stringified=!1,this._processor=e,this._css=r,this._opts=n,this._map=void 0;let i,u=v6;this.result=new y6(this._processor,i,this._opts),this.result.css=r;let o=this;Object.defineProperty(this.result,"root",{get(){return o.root}});let a=new g6(u,i,this._opts,r);if(a.isMap()){let[s,l]=a.generate();s&&(this.result.css=s),l&&(this.result.map=l)}else a.clearAnnotation(),this.result.css=a.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,r){return process.env.NODE_ENV!=="production"&&("from"in this._opts||x6("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,r)}toString(){return this._css}warnings(){return[]}};var w6=Pu;Pu.default=Pu;let E6=Bo,S6=$d,C6=w6,T6=Ur,Dr=class{constructor(e=[]){this.version="8.5.6",this.plugins=this.normalize(e)}normalize(e){let r=[];for(let n of e)if(n.postcss===!0?n=n():n.postcss&&(n=n.postcss),typeof n=="object"&&Array.isArray(n.plugins))r=r.concat(n.plugins);else if(typeof n=="object"&&n.postcssPlugin)r.push(n);else if(typeof n=="function")r.push(n);else if(typeof n=="object"&&(n.parse||n.stringify)){if(process.env.NODE_ENV!=="production")throw new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.")}else throw new Error(n+" is not a PostCSS plugin");return r}process(e,r={}){return!this.plugins.length&&!r.parser&&!r.stringifier&&!r.syntax?new C6(this,e,r):new S6(this,e,r)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};var A6=Dr;Dr.default=Dr;T6.registerProcessor(Dr);E6.registerProcessor(Dr);let Bd=$o,qd=yi,O6=jt,N6=Do,Hd=vi,Fd=Bo,j6=_w,_6=xi,P6=$d,k6=Od,R6=mi,I6=Ho,zo=A6,D6=Fo,zd=Ur,Ud=qo,L6=gi,M6=Id;function J(...t){return t.length===1&&Array.isArray(t[0])&&(t=t[0]),new zo(t)}J.plugin=function(e,r){let n=!1;function i(...o){console&&console.warn&&!n&&(n=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
181
+ https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+`: 里面 postcss.plugin 被弃用. 迁移指南:
182
+ https://www.w3ctech.com/topic/2226`));let a=r(...o);return a.postcssPlugin=e,a.postcssVersion=new zo().version,a}let u;return Object.defineProperty(i,"postcss",{get(){return u||(u=i()),u}}),i.process=function(o,a,s){return J([i(s)]).process(o,a)},i};J.stringify=L6;J.parse=I6;J.fromJSON=j6;J.list=k6;J.comment=t=>new qd(t);J.atRule=t=>new Bd(t);J.decl=t=>new Hd(t);J.rule=t=>new Ud(t);J.root=t=>new zd(t);J.document=t=>new Fd(t);J.CssSyntaxError=N6;J.Declaration=Hd;J.Container=O6;J.Processor=zo;J.Document=Fd;J.Comment=qd;J.Warning=M6;J.AtRule=Bd;J.Result=D6;J.Input=_6;J.Rule=Ud;J.Root=zd;J.Node=R6;P6.registerPostcss(J);var $6=J;J.default=J;const B6=Ic,Us=I3,{isPlainObject:q6}=Ro,Vs=Y3,H6=J3,{parse:F6}=$6,z6=["img","audio","video","picture","svg","object","map","iframe","embed"],U6=["script","style"];function kt(t,e){t&&Object.keys(t).forEach(function(r){e(t[r],r)})}function We(t,e){return{}.hasOwnProperty.call(t,e)}function Ws(t,e){const r=[];return kt(t,function(n){e(n)&&r.push(n)}),r}function V6(t){for(const e in t)if(We(t,e))return!1;return!0}function W6(t){return t.map(function(e){if(!e.url)throw new Error("URL missing");return e.url+(e.w?` ${e.w}w`:"")+(e.h?` ${e.h}h`:"")+(e.d?` ${e.d}x`:"")}).join(", ")}var G6=Lr;const X6=/^[^\0\t\n\f\r /<=>]+$/;function Lr(t,e,r){if(t==null)return"";typeof t=="number"&&(t=t.toString());let n="",i="";function u(w,N){const A=this;this.tag=w,this.attribs=N||{},this.tagPosition=n.length,this.text="",this.openingTagLength=0,this.mediaChildren=[],this.updateParentNodeText=function(){if(b.length){const P=b[b.length-1];P.text+=A.text}},this.updateParentNodeMediaChildren=function(){b.length&&z6.includes(this.tag)&&b[b.length-1].mediaChildren.push(this.tag)}}e=Object.assign({},Lr.defaults,e),e.parser=Object.assign({},Y6,e.parser);const o=function(w){return e.allowedTags===!1||(e.allowedTags||[]).indexOf(w)>-1};U6.forEach(function(w){o(w)&&!e.allowVulnerableTags&&console.warn(`
183
+
184
+ ⚠️ Your \`allowedTags\` option includes, \`${w}\`, which is inherently
185
+ vulnerable to XSS attacks. Please remove it from \`allowedTags\`.
186
+ Or, to disable this warning, add the \`allowVulnerableTags\` option
187
+ and ensure you are accounting for this risk.
188
+
189
+ `)});const a=e.nonTextTags||["script","style","textarea","option"];let s,l;e.allowedAttributes&&(s={},l={},kt(e.allowedAttributes,function(w,N){s[N]=[];const A=[];w.forEach(function(P){typeof P=="string"&&P.indexOf("*")>=0?A.push(Us(P).replace(/\\\*/g,".*")):s[N].push(P)}),A.length&&(l[N]=new RegExp("^("+A.join("|")+")$"))}));const c={},p={},d={};kt(e.allowedClasses,function(w,N){if(s&&(We(s,N)||(s[N]=[]),s[N].push("class")),c[N]=w,Array.isArray(w)){const A=[];c[N]=[],d[N]=[],w.forEach(function(P){typeof P=="string"&&P.indexOf("*")>=0?A.push(Us(P).replace(/\\\*/g,".*")):P instanceof RegExp?d[N].push(P):c[N].push(P)}),A.length&&(p[N]=new RegExp("^("+A.join("|")+")$"))}});const f={};let g;kt(e.transformTags,function(w,N){let A;typeof w=="function"?A=w:typeof w=="string"&&(A=Lr.simpleTransform(w)),N==="*"?g=A:f[N]=A});let m,b,y,v,C,S,O=!1;R();const k=new B6.Parser({onopentag:function(w,N){if(e.onOpenTag&&e.onOpenTag(w,N),e.enforceHtmlBoundary&&w==="html"&&R(),C){S++;return}const A=new u(w,N);b.push(A);let P=!1;const B=!!A.text;let U;if(We(f,w)&&(U=f[w](w,N),A.attribs=N=U.attribs,U.text!==void 0&&(A.innerText=U.text),w!==U.tagName&&(A.name=w=U.tagName,v[m]=U.tagName)),g&&(U=g(w,N),A.attribs=N=U.attribs,w!==U.tagName&&(A.name=w=U.tagName,v[m]=U.tagName)),(!o(w)||e.disallowedTagsMode==="recursiveEscape"&&!V6(y)||e.nestingLimit!=null&&m>=e.nestingLimit)&&(P=!0,y[m]=!0,(e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard")&&a.indexOf(w)!==-1&&(C=!0,S=1)),m++,P){if(e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard"){if(A.innerText&&!B){const X=D(A.innerText);e.textFilter?n+=e.textFilter(X,w):n+=X,O=!0}return}i=n,n=""}n+="<"+w,w==="script"&&(e.allowedScriptHostnames||e.allowedScriptDomains)&&(A.innerText=""),P&&(e.disallowedTagsMode==="escape"||e.disallowedTagsMode==="recursiveEscape")&&e.preserveEscapedAttributes?kt(N,function(X,V){n+=" "+V+'="'+D(X||"",!0)+'"'}):(!s||We(s,w)||s["*"])&&kt(N,function(X,V){if(!X6.test(V)){delete A.attribs[V];return}if(X===""&&!e.allowedEmptyAttributes.includes(V)&&(e.nonBooleanAttributes.includes(V)||e.nonBooleanAttributes.includes("*"))){delete A.attribs[V];return}let ar=!1;if(!s||We(s,w)&&s[w].indexOf(V)!==-1||s["*"]&&s["*"].indexOf(V)!==-1||We(l,w)&&l[w].test(V)||l["*"]&&l["*"].test(V))ar=!0;else if(s&&s[w]){for(const G of s[w])if(q6(G)&&G.name&&G.name===V){ar=!0;let W="";if(G.multiple===!0){const _e=X.split(" ");for(const xe of _e)G.values.indexOf(xe)!==-1&&(W===""?W=xe:W+=" "+xe)}else G.values.indexOf(X)>=0&&(W=X);X=W}}if(ar){if(e.allowedSchemesAppliedToAttributes.indexOf(V)!==-1&&$(w,X)){delete A.attribs[V];return}if(w==="script"&&V==="src"){let G=!0;try{const W=L(X);if(e.allowedScriptHostnames||e.allowedScriptDomains){const _e=(e.allowedScriptHostnames||[]).find(function(pe){return pe===W.url.hostname}),xe=(e.allowedScriptDomains||[]).find(function(pe){return W.url.hostname===pe||W.url.hostname.endsWith(`.${pe}`)});G=_e||xe}}catch{G=!1}if(!G){delete A.attribs[V];return}}if(w==="iframe"&&V==="src"){let G=!0;try{const W=L(X);if(W.isRelativeUrl)G=We(e,"allowIframeRelativeUrls")?e.allowIframeRelativeUrls:!e.allowedIframeHostnames&&!e.allowedIframeDomains;else if(e.allowedIframeHostnames||e.allowedIframeDomains){const _e=(e.allowedIframeHostnames||[]).find(function(pe){return pe===W.url.hostname}),xe=(e.allowedIframeDomains||[]).find(function(pe){return W.url.hostname===pe||W.url.hostname.endsWith(`.${pe}`)});G=_e||xe}}catch{G=!1}if(!G){delete A.attribs[V];return}}if(V==="srcset")try{let G=H6(X);if(G.forEach(function(W){$("srcset",W.url)&&(W.evil=!0)}),G=Ws(G,function(W){return!W.evil}),G.length)X=W6(Ws(G,function(W){return!W.evil})),A.attribs[V]=X;else{delete A.attribs[V];return}}catch{delete A.attribs[V];return}if(V==="class"){const G=c[w],W=c["*"],_e=p[w],xe=d[w],pe=d["*"],Vr=p["*"],sr=[_e,Vr].concat(xe,pe).filter(function(gt){return gt});if(G&&W?X=I(X,Vs(G,W),sr):X=I(X,G||W,sr),!X.length){delete A.attribs[V];return}}if(V==="style"){if(e.parseStyleAttributes)try{const G=F6(w+" {"+X+"}",{map:!1}),W=E(G,e.allowedStyles);if(X=T(W),X.length===0){delete A.attribs[V];return}}catch{typeof window<"u"&&console.warn('Failed to parse "'+w+" {"+X+`}", If you're running this in a browser, we recommend to disable style parsing: options.parseStyleAttributes: false, since this only works in a node environment due to a postcss dependency, More info: https://github.com/apostrophecms/sanitize-html/issues/547`),delete A.attribs[V];return}else if(e.allowedStyles)throw new Error("allowedStyles option cannot be used together with parseStyleAttributes: false.")}n+=" "+V,X&&X.length?n+='="'+D(X,!0)+'"':e.allowedEmptyAttributes.includes(V)&&(n+='=""')}else delete A.attribs[V]}),e.selfClosing.indexOf(w)!==-1?n+=" />":(n+=">",A.innerText&&!B&&!e.textFilter&&(n+=D(A.innerText),O=!0)),P&&(n=i+D(n),i=""),A.openingTagLength=n.length-A.tagPosition},ontext:function(w){if(C)return;const N=b[b.length-1];let A;if(N&&(A=N.tag,w=N.innerText!==void 0?N.innerText:w),e.disallowedTagsMode==="completelyDiscard"&&!o(A))w="";else if((e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard")&&(A==="script"||A==="style"))n+=w;else if(!O){const P=D(w,!1);e.textFilter?n+=e.textFilter(P,A):n+=P}if(b.length){const P=b[b.length-1];P.text+=w}},onclosetag:function(w,N){if(e.onCloseTag&&e.onCloseTag(w,N),C)if(S--,!S)C=!1;else return;const A=b.pop();if(!A)return;if(A.tag!==w){b.push(A);return}C=e.enforceHtmlBoundary?w==="html":!1,m--;const P=y[m];if(P){if(delete y[m],e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard"){A.updateParentNodeText();return}i=n,n=""}if(v[m]&&(w=v[m],delete v[m]),e.exclusiveFilter){const B=e.exclusiveFilter(A);if(B==="excludeTag"){P&&(n=i,i=""),n=n.substring(0,A.tagPosition)+n.substring(A.tagPosition+A.openingTagLength);return}else if(B){n=n.substring(0,A.tagPosition);return}}if(A.updateParentNodeMediaChildren(),A.updateParentNodeText(),e.selfClosing.indexOf(w)!==-1||N&&!o(w)&&["escape","recursiveEscape"].indexOf(e.disallowedTagsMode)>=0){P&&(n=i,i="");return}n+="</"+w+">",P&&(n=i+D(n),i=""),O=!1}},e.parser);return k.write(t),k.end(),n;function R(){n="",m=0,b=[],y={},v={},C=!1,S=0}function D(w,N){return typeof w!="string"&&(w=w+""),e.parser.decodeEntities&&(w=w.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),N&&(w=w.replace(/"/g,"&quot;"))),w=w.replace(/&(?![a-zA-Z0-9#]{1,20};)/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),N&&(w=w.replace(/"/g,"&quot;")),w}function $(w,N){for(N=N.replace(/[\x00-\x20]+/g,"");;){const B=N.indexOf("<!--");if(B===-1)break;const U=N.indexOf("-->",B+4);if(U===-1)break;N=N.substring(0,B)+N.substring(U+3)}const A=N.match(/^([a-zA-Z][a-zA-Z0-9.\-+]*):/);if(!A)return N.match(/^[/\\]{2}/)?!e.allowProtocolRelative:!1;const P=A[1].toLowerCase();return We(e.allowedSchemesByTag,w)?e.allowedSchemesByTag[w].indexOf(P)===-1:!e.allowedSchemes||e.allowedSchemes.indexOf(P)===-1}function L(w){if(w=w.replace(/^(\w+:)?\s*[\\/]\s*[\\/]/,"$1//"),w.startsWith("relative:"))throw new Error("relative: exploit attempt");let N="relative://relative-site";for(let B=0;B<100;B++)N+=`/${B}`;const A=new URL(w,N);return{isRelativeUrl:A&&A.hostname==="relative-site"&&A.protocol==="relative:",url:A}}function E(w,N){if(!N)return w;const A=w.nodes[0];let P;return N[A.selector]&&N["*"]?P=Vs(N[A.selector],N["*"]):P=N[A.selector]||N["*"],P&&(w.nodes[0].nodes=A.nodes.reduce(_(P),[])),w}function T(w){return w.nodes[0].nodes.reduce(function(N,A){return N.push(`${A.prop}:${A.value}${A.important?" !important":""}`),N},[]).join(";")}function _(w){return function(N,A){return We(w,A.prop)&&w[A.prop].some(function(B){return B.test(A.value)})&&N.push(A),N}}function I(w,N,A){return N?(w=w.split(/\s+/),w.filter(function(P){return N.indexOf(P)!==-1||A.some(function(B){return B.test(P)})}).join(" ")):w}}const Y6={decodeEntities:!0};Lr.defaults={allowedTags:["address","article","aside","footer","header","h1","h2","h3","h4","h5","h6","hgroup","main","nav","section","blockquote","dd","div","dl","dt","figcaption","figure","hr","li","menu","ol","p","pre","ul","a","abbr","b","bdi","bdo","br","cite","code","data","dfn","em","i","kbd","mark","q","rb","rp","rt","rtc","ruby","s","samp","small","span","strong","sub","sup","time","u","var","wbr","caption","col","colgroup","table","tbody","td","tfoot","th","thead","tr"],nonBooleanAttributes:["abbr","accept","accept-charset","accesskey","action","allow","alt","as","autocapitalize","autocomplete","blocking","charset","cite","class","color","cols","colspan","content","contenteditable","coords","crossorigin","data","datetime","decoding","dir","dirname","download","draggable","enctype","enterkeyhint","fetchpriority","for","form","formaction","formenctype","formmethod","formtarget","headers","height","hidden","high","href","hreflang","http-equiv","id","imagesizes","imagesrcset","inputmode","integrity","is","itemid","itemprop","itemref","itemtype","kind","label","lang","list","loading","low","max","maxlength","media","method","min","minlength","name","nonce","optimum","pattern","ping","placeholder","popover","popovertarget","popovertargetaction","poster","preload","referrerpolicy","rel","rows","rowspan","sandbox","scope","shape","size","sizes","slot","span","spellcheck","src","srcdoc","srclang","srcset","start","step","style","tabindex","target","title","translate","type","usemap","value","width","wrap","onauxclick","onafterprint","onbeforematch","onbeforeprint","onbeforeunload","onbeforetoggle","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","onhashchange","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onlanguagechange","onload","onloadeddata","onloadedmetadata","onloadstart","onmessage","onmessageerror","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onoffline","ononline","onpagehide","onpageshow","onpaste","onpause","onplay","onplaying","onpopstate","onprogress","onratechange","onreset","onresize","onrejectionhandled","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onstorage","onsubmit","onsuspend","ontimeupdate","ontoggle","onunhandledrejection","onunload","onvolumechange","onwaiting","onwheel"],disallowedTagsMode:"discard",allowedAttributes:{a:["href","name","target"],img:["src","srcset","alt","title","width","height","loading"]},allowedEmptyAttributes:["alt"],selfClosing:["img","br","hr","area","base","basefont","input","link","meta"],allowedSchemes:["http","https","ftp","mailto","tel"],allowedSchemesByTag:{},allowedSchemesAppliedToAttributes:["href","src","cite"],allowProtocolRelative:!0,enforceHtmlBoundary:!1,parseStyleAttributes:!0,preserveEscapedAttributes:!1};Lr.simpleTransform=function(t,e,r){return r=r===void 0?!0:r,e=e||{},function(n,i){let u;if(r)for(u in e)i[u]=e[u];else i=e;return{tagName:t,attribs:i}}};const Vd=Wn(G6),J6=[{command:"bold",icon:W0,label:"Bold"},{command:"italic",icon:J0,label:"Italic"},{command:"underline",icon:ef,label:"Underline"},{command:"strikeThrough",icon:Q0,label:"Strikethrough"},{command:"insertUnorderedList",icon:Z0,label:"Bullet List"},{command:"insertOrderedList",icon:K0,label:"Numbered List"}],K6={allowedTags:["b","i","u","s","strong","em","ul","ol","li","br","p","a","span"],allowedAttributes:{a:["href","target"],span:["style"]},allowedStyles:{span:{"text-decoration":[/^line-through$/]}}},Z6=({label:t,value:e,onChange:r})=>{const n=j.useRef(null),[i,u]=j.useState(!1),[o,a]=j.useState(""),s=j.useRef(null);j.useEffect(()=>{n.current&&n.current.innerHTML!==e&&(n.current.innerHTML=e||"")},[]);const l=b=>{var y;document.execCommand(b,!1,null),(y=n.current)==null||y.focus(),c()},c=()=>{if(n.current){const b=n.current.innerHTML,y=Vd(b,K6);r(y)}},p=()=>{const b=window.getSelection();b&&b.rangeCount>0&&(s.current=b.getRangeAt(0))},d=()=>{if(s.current){const b=window.getSelection();b==null||b.removeAllRanges(),b==null||b.addRange(s.current)}},f=()=>{p(),u(!0)},g=()=>{var b;if(o){d();let y=o.trim();y&&!y.match(/^https?:\/\//i)&&(y="https://"+y);try{new URL(y),document.execCommand("createLink",!1,y),c()}catch{}}u(!1),a(""),(b=n.current)==null||b.focus()},m=b=>{try{return document.queryCommandState(b)}catch{return!1}};return h.jsxs("div",{className:"space-y-1.5",children:[h.jsx("label",{className:"text-xs text-muted-foreground",children:t}),h.jsx("div",{className:"flex items-center gap-0.5 p-1 bg-muted rounded-t border border-input border-b-0",children:h.jsxs(Nr,{children:[J6.map(({command:b,icon:y,label:v})=>h.jsxs(Ft,{children:[h.jsx(zt,{asChild:!0,children:h.jsx("button",{type:"button",onMouseDown:C=>{C.preventDefault(),l(b)},className:`p-1.5 rounded hover:bg-background transition-colors ${m(b)?"bg-background text-primary":"text-muted-foreground"}`,children:h.jsx(y,{className:"h-3.5 w-3.5"})})}),h.jsx(Et,{side:"top",children:h.jsx("p",{children:v})})]},b)),h.jsx("div",{className:"w-px h-4 bg-border mx-1"}),h.jsxs(Ft,{children:[h.jsx(zt,{asChild:!0,children:h.jsx("button",{type:"button",onMouseDown:b=>{b.preventDefault(),f()},className:"p-1.5 rounded hover:bg-background transition-colors text-muted-foreground",children:h.jsx(ol,{className:"h-3.5 w-3.5"})})}),h.jsx(Et,{side:"top",children:h.jsx("p",{children:"Insert Link"})})]})]})}),h.jsx("div",{ref:n,contentEditable:!0,onInput:c,onBlur:c,className:"min-h-[80px] max-h-[200px] overflow-y-auto p-2 text-xs rounded-b border border-input bg-background focus:outline-none focus:ring-1 focus:ring-ring prose prose-sm max-w-none [&_ul]:list-disc [&_ul]:pl-4 [&_ol]:list-decimal [&_ol]:pl-4 [&_a]:text-primary [&_a]:underline",style:{wordBreak:"break-word"}}),i&&h.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/50",children:h.jsxs("div",{className:"bg-background p-4 rounded-lg shadow-lg w-80 space-y-3",children:[h.jsx("h4",{className:"text-sm font-medium",children:"Insert Link"}),h.jsx("input",{type:"url",value:o,onChange:b=>a(b.target.value),placeholder:"https://example.com",className:"w-full px-3 py-2 text-sm rounded border border-input bg-background",autoFocus:!0,onKeyDown:b=>{b.key==="Enter"&&(b.preventDefault(),g()),b.key==="Escape"&&(u(!1),a(""))}}),h.jsxs("div",{className:"flex justify-end gap-2",children:[h.jsx("button",{onClick:()=>{u(!1),a("")},className:"px-3 py-1.5 text-xs rounded border border-input hover:bg-muted",children:"Cancel"}),h.jsx("button",{onClick:g,className:"px-3 py-1.5 text-xs rounded bg-primary text-primary-foreground hover:bg-primary/90",children:"Insert"})]})]})})]})},Q6={allowedTags:["b","i","u","s","strong","em","ul","ol","li","br","p","a","span"],allowedAttributes:{a:["href","target"],span:["style"]},allowedStyles:{span:{"text-decoration":[/^line-through$/]}}},Uo=({text:t="Edit me",fontSize:e={desktop:16},fontWeight:r="400",fontFamily:n="inherit",lineHeight:i={desktop:150},letterSpacing:u={desktop:0},textAlign:o="left",color:a="#000000",margin:s={top:0,right:0,bottom:0,left:0},textDecoration:l="none",textTransform:c="none",opacity:p=100})=>{const d=Ot(),f=Fn(),{connectors:{connect:g,drag:m},isActive:b}=oe(R=>({isActive:R.events.selected})),y=So(t,f),v=typeof s=="object"&&!("desktop"in s)?`${s.top}px ${s.right}px ${s.bottom}px ${s.left}px`:`${s}px`,C=Ye(e,d,16),S=Ye(i,d,150)/100,O=Ye(u,d,0),k=/<[^>]+>/.test(y);return h.jsx("div",{ref:R=>R&&g(m(R)),className:`cursor-move ${b?"ring-2 ring-primary ring-offset-2":""}`,style:{fontSize:`${C}px`,fontWeight:r,fontFamily:n,lineHeight:S,letterSpacing:`${O}px`,textAlign:o,color:a,margin:v,textDecoration:l,textTransform:c,opacity:p/100},children:k?h.jsx("div",{dangerouslySetInnerHTML:{__html:Vd(y,Q6)},className:"[&_ul]:list-disc [&_ul]:pl-4 [&_ol]:list-decimal [&_ol]:pl-4 [&_a]:text-primary [&_a]:underline"}):h.jsx("p",{children:y})})},e4=()=>{const{actions:{setProp:t},props:e}=oe(n=>({props:n.data.props})),r=typeof e.margin=="object"&&!("desktop"in e.margin)?e.margin:{top:0,right:0,bottom:0,left:0};return h.jsxs("div",{className:"space-y-3",children:[h.jsx(F,{title:"Content",defaultOpen:!0,children:h.jsx(Z6,{label:"Text",value:e.text,onChange:n=>t(i=>i.text=n)})}),h.jsxs(F,{title:"Typography",defaultOpen:!0,children:[h.jsx(ne,{label:"Font",value:e.fontFamily||"inherit",options:[{value:"inherit",label:"Default"},{value:"Inter, sans-serif",label:"Inter"},{value:"Georgia, serif",label:"Georgia"},{value:"Menlo, monospace",label:"Mono"},{value:"system-ui",label:"System"}],onChange:n=>t(i=>i.fontFamily=n)}),h.jsx(kn,{label:"Size",values:e.fontSize,onChange:n=>t(i=>i.fontSize=n),min:8,max:120,defaultValue:16}),h.jsx(ne,{label:"Weight",value:e.fontWeight||"400",options:[{value:"300",label:"Light"},{value:"400",label:"Regular"},{value:"500",label:"Medium"},{value:"600",label:"Semibold"},{value:"700",label:"Bold"},{value:"800",label:"Extra Bold"}],onChange:n=>t(i=>i.fontWeight=n)}),h.jsx(Rn,{label:"Line Height",values:e.lineHeight,onChange:n=>t(i=>i.lineHeight=n),min:80,max:250,unit:"%",defaultValue:150}),h.jsx(kn,{label:"Letter Spacing",values:e.letterSpacing,onChange:n=>t(i=>i.letterSpacing=n),min:-5,max:20,defaultValue:0}),h.jsx(Ke,{label:"Alignment",value:e.textAlign||"left",options:[{value:"left",label:h.jsx($u,{className:"h-3 w-3"})},{value:"center",label:h.jsx(Mu,{className:"h-3 w-3"})},{value:"right",label:h.jsx(Bu,{className:"h-3 w-3"})}],onChange:n=>t(i=>i.textAlign=n)}),h.jsx(ne,{label:"Transform",value:e.textTransform||"none",options:[{value:"none",label:"None"},{value:"uppercase",label:"UPPERCASE"},{value:"lowercase",label:"lowercase"},{value:"capitalize",label:"Capitalize"}],onChange:n=>t(i=>i.textTransform=n)}),h.jsx(ne,{label:"Decoration",value:e.textDecoration||"none",options:[{value:"none",label:"None"},{value:"underline",label:"Underline"},{value:"line-through",label:"Strikethrough"}],onChange:n=>t(i=>i.textDecoration=n)})]}),h.jsxs(F,{title:"Color",defaultOpen:!1,children:[h.jsx(De,{label:"Text Color",value:e.color||"#000000",onChange:n=>t(i=>i.color=n)}),h.jsx(Rn,{label:"Opacity",values:e.opacity,onChange:n=>t(i=>i.opacity=n),min:0,max:100,unit:"%",defaultValue:100})]}),h.jsx(F,{title:"Spacing",defaultOpen:!1,children:h.jsx(Oe,{label:"Margin",values:r,onChange:n=>t(i=>i.margin=n)})}),h.jsx(F,{title:"Dynamic Data",defaultOpen:!1,children:h.jsx(Rc,{})})]})};Uo.craft={displayName:"Text",props:{text:"Edit me",fontSize:{desktop:16},fontWeight:"400",fontFamily:"inherit",lineHeight:{desktop:150},letterSpacing:{desktop:0},textAlign:"left",color:"#000000",margin:{top:0,right:0,bottom:0,left:0},textDecoration:"none",textTransform:"none",opacity:{desktop:100}},related:{settings:e4}};const Vo=({text:t="Click me",variant:e="solid",size:r="md",backgroundColor:n="#FF6B35",textColor:i="#ffffff",borderColor:u="#FF6B35",borderWidth:o=0,borderRadius:a=8,fontWeight:s="500",fontSize:l="auto",width:c="auto",paddingX:p=16,paddingY:d=10,margin:f={top:0,right:0,bottom:0,left:0},boxShadow:g="none",opacity:m=100})=>{const{connectors:{connect:b,drag:y},isActive:v}=oe(_=>({isActive:_.events.selected})),C={sm:{px:12,py:6,fs:14},md:{px:16,py:10,fs:16},lg:{px:24,py:14,fs:18}},S=C[r]||C.md,O=p==="auto"?S.px:p,k=d==="auto"?S.py:d,R=l==="auto"?S.fs:l,D=typeof f=="object"?`${f.top}px ${f.right}px ${f.bottom}px ${f.left}px`:`${f}px`,$=e==="outline"?"transparent":n,L=e==="outline"?n:i,E=e==="outline"?2:o,T=e==="outline"?n:u;return h.jsx("button",{ref:_=>_&&b(y(_)),className:`cursor-move transition-all hover:opacity-90 ${v?"ring-2 ring-primary ring-offset-2":""}`,style:{backgroundColor:$,color:L,borderWidth:`${E}px`,borderColor:T,borderStyle:"solid",borderRadius:`${a}px`,fontWeight:s,fontSize:`${R}px`,padding:`${k}px ${O}px`,margin:D,width:c==="full"?"100%":"auto",boxShadow:g==="none"?"none":g,opacity:m/100},children:t})},t4=()=>{const{actions:{setProp:t},props:e}=oe(n=>({props:n.data.props})),r=typeof e.margin=="object"?e.margin:{top:0,right:0,bottom:0,left:0};return h.jsxs("div",{className:"space-y-3",children:[h.jsx(F,{title:"Content",defaultOpen:!0,children:h.jsx(Ut,{label:"Text",value:e.text,onChange:n=>t(i=>i.text=n)})}),h.jsxs(F,{title:"Style",defaultOpen:!0,children:[h.jsx(Ke,{label:"Variant",value:e.variant||"solid",options:[{value:"solid",label:"Solid"},{value:"outline",label:"Outline"}],onChange:n=>t(i=>i.variant=n)}),h.jsx(Ke,{label:"Size Preset",value:e.size||"md",options:[{value:"sm",label:"S"},{value:"md",label:"M"},{value:"lg",label:"L"}],onChange:n=>t(i=>i.size=n)}),h.jsx(Ke,{label:"Width",value:e.width||"auto",options:[{value:"auto",label:"Auto"},{value:"full",label:"Full"}],onChange:n=>t(i=>i.width=n)})]}),h.jsxs(F,{title:"Colors",defaultOpen:!0,children:[h.jsx(De,{label:"Background",value:e.backgroundColor||"#FF6B35",onChange:n=>t(i=>i.backgroundColor=n)}),h.jsx(De,{label:"Text",value:e.textColor||"#ffffff",onChange:n=>t(i=>i.textColor=n)}),h.jsx(wo,{label:"Opacity",value:e.opacity||100,onChange:n=>t(i=>i.opacity=n),min:0,max:100,unit:"%"})]}),h.jsxs(F,{title:"Typography",defaultOpen:!1,children:[h.jsx(de,{label:"Font Size",value:e.fontSize==="auto"?16:e.fontSize,onChange:n=>t(i=>i.fontSize=n),min:10,max:32}),h.jsx(ne,{label:"Weight",value:e.fontWeight||"500",options:[{value:"400",label:"Regular"},{value:"500",label:"Medium"},{value:"600",label:"Semibold"},{value:"700",label:"Bold"}],onChange:n=>t(i=>i.fontWeight=n)})]}),h.jsxs(F,{title:"Padding",defaultOpen:!1,children:[h.jsx(de,{label:"Horizontal",value:e.paddingX||16,onChange:n=>t(i=>i.paddingX=n),max:64}),h.jsx(de,{label:"Vertical",value:e.paddingY||10,onChange:n=>t(i=>i.paddingY=n),max:48})]}),h.jsxs(F,{title:"Border",defaultOpen:!1,children:[h.jsx(de,{label:"Radius",value:e.borderRadius||8,onChange:n=>t(i=>i.borderRadius=n),max:50}),h.jsx(de,{label:"Width",value:e.borderWidth||0,onChange:n=>t(i=>i.borderWidth=n),max:10}),h.jsx(De,{label:"Color",value:e.borderColor||"#FF6B35",onChange:n=>t(i=>i.borderColor=n)})]}),h.jsx(F,{title:"Effects",defaultOpen:!1,children:h.jsx(ne,{label:"Shadow",value:e.boxShadow||"none",options:[{value:"none",label:"None"},{value:"0 2px 4px rgba(0,0,0,0.1)",label:"Small"},{value:"0 4px 12px rgba(0,0,0,0.15)",label:"Medium"},{value:"0 8px 24px rgba(0,0,0,0.2)",label:"Large"}],onChange:n=>t(i=>i.boxShadow=n)})}),h.jsx(F,{title:"Spacing",defaultOpen:!1,children:h.jsx(Oe,{label:"Margin",values:r,onChange:n=>t(i=>i.margin=n)})})]})};Vo.craft={displayName:"Button",props:{text:"Click me",variant:"solid",size:"md",backgroundColor:"#FF6B35",textColor:"#ffffff",borderColor:"#FF6B35",borderWidth:0,borderRadius:8,fontWeight:"500",fontSize:"auto",width:"auto",paddingX:16,paddingY:10,margin:{top:0,right:0,bottom:0,left:0},boxShadow:"none",opacity:100},related:{settings:t4}};const vr={1:{desktop:48,small:42,tablet:36,mobile:28},2:{desktop:36,small:32,tablet:28,mobile:24},3:{desktop:28,small:26,tablet:24,mobile:20},4:{desktop:22,small:20,tablet:18,mobile:16}},Wo=({text:t="Heading",level:e=2,textAlign:r="left",color:n="#000000",fontWeight:i="700",fontFamily:u="inherit",fontSize:o="auto",lineHeight:a={desktop:120},letterSpacing:s={desktop:-.5},margin:l={top:0,right:0,bottom:16,left:0},textTransform:c="none",opacity:p={desktop:100}})=>{var D,$,L;const d=Ot(),f=Fn(),{connectors:{connect:g,drag:m},isActive:b}=oe(E=>({isActive:E.events.selected})),y=So(t,f),v=`h${e}`;let C;o==="auto"?C=((D=vr[e])==null?void 0:D[d])||(($=vr[e])==null?void 0:$.desktop)||36:C=Ye(o,d,((L=vr[e])==null?void 0:L.desktop)||36);const S=Ye(a,d,120)/100,O=Ye(s,d,-.5),k=Ye(p,d,100),R=typeof l=="object"&&!("desktop"in l)?`${l.top}px ${l.right}px ${l.bottom}px ${l.left}px`:`${l}px`;return h.jsx(v,{ref:E=>E&&g(m(E)),className:`cursor-move ${b?"ring-2 ring-primary ring-offset-2":""}`,style:{textAlign:r,color:n,fontWeight:i,fontFamily:u,fontSize:`${C}px`,lineHeight:S,letterSpacing:`${O}px`,margin:R,textTransform:c,opacity:k/100},children:y})},r4=()=>{var u;const t=Ot(),{actions:{setProp:e},props:r}=oe(o=>({props:o.data.props})),n=typeof r.margin=="object"&&!("desktop"in r.margin)?r.margin:{top:0,right:0,bottom:16,left:0},i=()=>{var o;return r.fontSize==="auto"?((o=vr[r.level||2])==null?void 0:o[t])||36:Ye(r.fontSize,t,36)};return h.jsxs("div",{className:"space-y-3",children:[h.jsxs(F,{title:"Content",defaultOpen:!0,children:[h.jsx(Ut,{label:"Text",value:r.text,onChange:o=>e(a=>a.text=o)}),h.jsx(Ke,{label:"Level",value:r.level||2,options:[{value:1,label:"H1"},{value:2,label:"H2"},{value:3,label:"H3"},{value:4,label:"H4"}],onChange:o=>e(a=>{a.level=o,a.fontSize})})]}),h.jsxs(F,{title:"Typography",defaultOpen:!0,children:[h.jsx(ne,{label:"Font",value:r.fontFamily||"inherit",options:[{value:"inherit",label:"Default"},{value:"Inter, sans-serif",label:"Inter"},{value:"Georgia, serif",label:"Georgia"},{value:"system-ui",label:"System"}],onChange:o=>e(a=>a.fontFamily=o)}),h.jsxs("div",{className:"space-y-1.5",children:[h.jsxs("div",{className:"flex items-center justify-between",children:[h.jsx("label",{className:"text-xs text-muted-foreground",children:"Size Mode"}),h.jsx("button",{onClick:()=>e(o=>o.fontSize=o.fontSize==="auto"?{desktop:i()}:"auto"),className:`text-xs px-2 py-0.5 rounded ${r.fontSize==="auto"?"bg-primary/10 text-primary":"text-muted-foreground"}`,children:r.fontSize==="auto"?"Auto (Responsive)":"Custom"})]}),r.fontSize!=="auto"&&h.jsx(kn,{label:"Size",values:r.fontSize,onChange:o=>e(a=>a.fontSize=o),min:12,max:120,defaultValue:((u=vr[r.level||2])==null?void 0:u.desktop)||36})]}),h.jsx(ne,{label:"Weight",value:r.fontWeight||"700",options:[{value:"400",label:"Regular"},{value:"500",label:"Medium"},{value:"600",label:"Semibold"},{value:"700",label:"Bold"},{value:"800",label:"Extra Bold"},{value:"900",label:"Black"}],onChange:o=>e(a=>a.fontWeight=o)}),h.jsx(Rn,{label:"Line Height",values:r.lineHeight,onChange:o=>e(a=>a.lineHeight=o),min:80,max:200,unit:"%",defaultValue:120}),h.jsx(kn,{label:"Letter Spacing",values:r.letterSpacing,onChange:o=>e(a=>a.letterSpacing=o),min:-5,max:20,defaultValue:-.5}),h.jsx(Ke,{label:"Alignment",value:r.textAlign||"left",options:[{value:"left",label:h.jsx($u,{className:"h-3 w-3"})},{value:"center",label:h.jsx(Mu,{className:"h-3 w-3"})},{value:"right",label:h.jsx(Bu,{className:"h-3 w-3"})}],onChange:o=>e(a=>a.textAlign=o)}),h.jsx(ne,{label:"Transform",value:r.textTransform||"none",options:[{value:"none",label:"None"},{value:"uppercase",label:"UPPERCASE"},{value:"lowercase",label:"lowercase"},{value:"capitalize",label:"Capitalize"}],onChange:o=>e(a=>a.textTransform=o)})]}),h.jsxs(F,{title:"Color",defaultOpen:!1,children:[h.jsx(De,{label:"Text Color",value:r.color||"#000000",onChange:o=>e(a=>a.color=o)}),h.jsx(Rn,{label:"Opacity",values:r.opacity,onChange:o=>e(a=>a.opacity=o),min:0,max:100,unit:"%",defaultValue:100})]}),h.jsx(F,{title:"Spacing",defaultOpen:!1,children:h.jsx(Oe,{label:"Margin",values:n,onChange:o=>e(a=>a.margin=o)})}),h.jsx(F,{title:"Dynamic Data",defaultOpen:!1,children:h.jsx(Rc,{})})]})};Wo.craft={displayName:"Heading",props:{text:"Heading",level:2,textAlign:"left",color:"#000000",fontWeight:"700",fontFamily:"inherit",fontSize:"auto",lineHeight:{desktop:120},letterSpacing:{desktop:-.5},margin:{top:0,right:0,bottom:16,left:0},textTransform:"none",opacity:{desktop:100}},related:{settings:r4}};const Go=({src:t="https://images.unsplash.com/photo-1540575467063-178a50c2df87?w=800&h=400&fit=crop",alt:e="Image",width:r="full",height:n="auto",maxWidth:i="none",objectFit:u="cover",borderRadius:o=8,margin:a={top:0,right:0,bottom:0,left:0},opacity:s=100,boxShadow:l="none"})=>{const{connectors:{connect:c,drag:p},isActive:d}=oe(g=>({isActive:g.events.selected})),f=typeof a=="object"?`${a.top}px ${a.right}px ${a.bottom}px ${a.left}px`:`${a}px`;return h.jsx("img",{ref:g=>g&&c(p(g)),src:t,alt:e,className:`cursor-move ${d?"ring-2 ring-primary ring-offset-2":""}`,style:{width:r==="full"?"100%":r==="auto"?"auto":`${r}px`,height:n==="auto"?"auto":`${n}px`,maxWidth:i==="none"?"none":`${i}px`,objectFit:u,borderRadius:`${o}px`,margin:f,opacity:s/100,boxShadow:l==="none"?"none":l,display:"block"}})},n4=()=>{const{actions:{setProp:t},props:e}=oe(n=>({props:n.data.props})),r=typeof e.margin=="object"?e.margin:{top:0,right:0,bottom:0,left:0};return h.jsxs("div",{className:"space-y-3",children:[h.jsxs(F,{title:"Source",defaultOpen:!0,children:[h.jsx(Ut,{label:"Image URL",value:e.src,onChange:n=>t(i=>i.src=n)}),h.jsx(Ut,{label:"Alt Text",value:e.alt,onChange:n=>t(i=>i.alt=n)})]}),h.jsxs(F,{title:"Size",defaultOpen:!0,children:[h.jsx(ne,{label:"Width",value:typeof e.width=="number"?"custom":e.width,options:[{value:"full",label:"Full Width"},{value:"auto",label:"Auto"},{value:"custom",label:"Custom"}],onChange:n=>t(i=>i.width=n==="custom"?300:n)}),typeof e.width=="number"&&h.jsx(de,{label:"Width (px)",value:e.width,onChange:n=>t(i=>i.width=n),max:1200}),h.jsx(ne,{label:"Height",value:typeof e.height=="number"?"custom":e.height,options:[{value:"auto",label:"Auto"},{value:"custom",label:"Custom"}],onChange:n=>t(i=>i.height=n==="custom"?200:n)}),typeof e.height=="number"&&h.jsx(de,{label:"Height (px)",value:e.height,onChange:n=>t(i=>i.height=n),max:800}),h.jsx(ne,{label:"Object Fit",value:e.objectFit||"cover",options:[{value:"cover",label:"Cover"},{value:"contain",label:"Contain"},{value:"fill",label:"Fill"},{value:"none",label:"None"}],onChange:n=>t(i=>i.objectFit=n)})]}),h.jsxs(F,{title:"Style",defaultOpen:!1,children:[h.jsx(de,{label:"Border Radius",value:e.borderRadius||8,onChange:n=>t(i=>i.borderRadius=n),max:100}),h.jsx(wo,{label:"Opacity",value:e.opacity||100,onChange:n=>t(i=>i.opacity=n),min:0,max:100,unit:"%"}),h.jsx(ne,{label:"Shadow",value:e.boxShadow||"none",options:[{value:"none",label:"None"},{value:"0 4px 12px rgba(0,0,0,0.1)",label:"Small"},{value:"0 8px 24px rgba(0,0,0,0.15)",label:"Medium"},{value:"0 16px 48px rgba(0,0,0,0.2)",label:"Large"}],onChange:n=>t(i=>i.boxShadow=n)})]}),h.jsx(F,{title:"Spacing",defaultOpen:!1,children:h.jsx(Oe,{label:"Margin",values:r,onChange:n=>t(i=>i.margin=n)})})]})};Go.craft={displayName:"Image",props:{src:"https://images.unsplash.com/photo-1540575467063-178a50c2df87?w=800&h=400&fit=crop",alt:"Image",width:"full",height:"auto",maxWidth:"none",objectFit:"cover",borderRadius:8,margin:{top:0,right:0,bottom:0,left:0},opacity:100,boxShadow:"none"},related:{settings:n4}};const Xo=({color:t="#e5e5e5",height:e=1,width:r="full",style:n="solid",margin:i={top:16,right:0,bottom:16,left:0},opacity:u=100})=>{const{connectors:{connect:o,drag:a},isActive:s}=oe(c=>({isActive:c.events.selected})),l=typeof i=="object"?`${i.top}px ${i.right}px ${i.bottom}px ${i.left}px`:`${i}px`;return h.jsx("hr",{ref:c=>c&&o(a(c)),className:`cursor-move border-0 ${s?"ring-2 ring-primary ring-offset-2":""}`,style:{width:r==="full"?"100%":`${r}%`,height:`${e}px`,backgroundColor:t,margin:l,opacity:u/100,borderStyle:n,borderWidth:n==="solid"?0:`${e}px`,borderColor:t}})},i4=()=>{const{actions:{setProp:t},props:e}=oe(n=>({props:n.data.props})),r=typeof e.margin=="object"?e.margin:{top:16,right:0,bottom:16,left:0};return h.jsxs("div",{className:"space-y-3",children:[h.jsxs(F,{title:"Style",defaultOpen:!0,children:[h.jsx(ne,{label:"Style",value:e.style||"solid",options:[{value:"solid",label:"Solid"},{value:"dashed",label:"Dashed"},{value:"dotted",label:"Dotted"}],onChange:n=>t(i=>i.style=n)}),h.jsx(De,{label:"Color",value:e.color||"#e5e5e5",onChange:n=>t(i=>i.color=n)}),h.jsx(de,{label:"Thickness",value:e.height||1,onChange:n=>t(i=>i.height=n),min:1,max:20}),h.jsx(ne,{label:"Width",value:e.width==="full"?"full":"custom",options:[{value:"full",label:"Full Width"},{value:"custom",label:"Custom %"}],onChange:n=>t(i=>i.width=n==="full"?"full":50)}),e.width!=="full"&&h.jsx(de,{label:"Width %",value:e.width,onChange:n=>t(i=>i.width=n),min:10,max:100,unit:"%"})]}),h.jsx(F,{title:"Spacing",defaultOpen:!0,children:h.jsx(Oe,{label:"Margin",values:r,onChange:n=>t(i=>i.margin=n)})})]})};Xo.craft={displayName:"Divider",props:{color:"#e5e5e5",height:1,width:"full",style:"solid",margin:{top:16,right:0,bottom:16,left:0},opacity:100},related:{settings:i4}};const Yo=({height:t=40,responsive:e=!1,mobileHeight:r=20})=>{const{connectors:{connect:n,drag:i},isActive:u}=oe(o=>({isActive:o.events.selected}));return h.jsxs("div",{ref:o=>o&&n(i(o)),className:`cursor-move w-full relative group ${u?"ring-2 ring-primary ring-offset-2":""}`,style:{height:`${t}px`},children:[h.jsx("div",{className:"absolute inset-0 flex items-center justify-center opacity-0 group-hover:opacity-100 transition-opacity",children:h.jsxs("div",{className:"flex items-center gap-2 text-xs text-muted-foreground bg-secondary/80 px-2 py-1 rounded",children:[h.jsx("span",{children:"↕"}),h.jsxs("span",{children:[t,"px"]})]})}),h.jsx("div",{className:"absolute inset-x-0 top-0 border-t border-dashed border-border/50 opacity-0 group-hover:opacity-100 transition-opacity"}),h.jsx("div",{className:"absolute inset-x-0 bottom-0 border-t border-dashed border-border/50 opacity-0 group-hover:opacity-100 transition-opacity"})]})},u4=()=>{const{actions:{setProp:t},props:e}=oe(r=>({props:r.data.props}));return h.jsx("div",{className:"space-y-3",children:h.jsxs(F,{title:"Size",defaultOpen:!0,children:[h.jsx(ne,{label:"Preset",value:"custom",options:[{value:"xs",label:"XS (8px)"},{value:"sm",label:"Small (16px)"},{value:"md",label:"Medium (32px)"},{value:"lg",label:"Large (64px)"},{value:"xl",label:"XL (96px)"},{value:"custom",label:"Custom"}],onChange:r=>{const n={xs:8,sm:16,md:32,lg:64,xl:96};n[r]&&t(i=>i.height=n[r])}}),h.jsx(de,{label:"Height",value:e.height||40,onChange:r=>t(n=>n.height=r),min:4,max:300})]})})};Yo.craft={displayName:"Spacer",props:{height:40,responsive:!1,mobileHeight:20},related:{settings:u4}};const o4="https://api.myracereel.com/api";function a4(){const t=localStorage.getItem("tokens");if(t){const{accessToken:e}=JSON.parse(t);return{"Content-Type":"application/json",Authorization:`Bearer ${e}`}}return{"Content-Type":"application/json"}}async function s4(t,e={}){const r=await fetch(`${o4}${t}`,{...e,headers:{...a4(),...e.headers}}),n=await r.json();if(!r.ok)throw new Error(n.message||"Request failed");return n}async function l4(t,e){return(await s4(`/videos/${t}/${e||""}`)).data}function c4(t){const e=x.useRef({value:t,previous:t});return x.useMemo(()=>(e.current.value!==t&&(e.current.previous=e.current.value,e.current.value=t),e.current.previous),[t])}var wi="Checkbox",[d4]=ii(wi),[f4,Jo]=d4(wi);function p4(t){const{__scopeCheckbox:e,checked:r,children:n,defaultChecked:i,disabled:u,form:o,name:a,onCheckedChange:s,required:l,value:c="on",internal_do_not_use_render:p}=t,[d,f]=vo({prop:r,defaultProp:i??!1,onChange:s,caller:wi}),[g,m]=x.useState(null),[b,y]=x.useState(null),v=x.useRef(!1),C=g?!!o||!!g.closest("form"):!0,S={checked:d,disabled:u,setChecked:f,control:g,setControl:m,name:a,form:o,value:c,hasConsumerStoppedPropagationRef:v,required:l,defaultChecked:at(i)?!1:i,isFormControl:C,bubbleInput:b,setBubbleInput:y};return h.jsx(f4,{scope:e,...S,children:h4(p)?p(S):n})}var Wd="CheckboxTrigger",Gd=x.forwardRef(({__scopeCheckbox:t,onKeyDown:e,onClick:r,...n},i)=>{const{control:u,value:o,disabled:a,checked:s,required:l,setControl:c,setChecked:p,hasConsumerStoppedPropagationRef:d,isFormControl:f,bubbleInput:g}=Jo(Wd,t),m=Be(i,c),b=x.useRef(s);return x.useEffect(()=>{const y=u==null?void 0:u.form;if(y){const v=()=>p(b.current);return y.addEventListener("reset",v),()=>y.removeEventListener("reset",v)}},[u,p]),h.jsx(Ne.button,{type:"button",role:"checkbox","aria-checked":at(s)?"mixed":s,"aria-required":l,"data-state":Zd(s),"data-disabled":a?"":void 0,disabled:a,value:o,...n,ref:m,onKeyDown:Ee(e,y=>{y.key==="Enter"&&y.preventDefault()}),onClick:Ee(r,y=>{p(v=>at(v)?!0:!v),g&&f&&(d.current=y.isPropagationStopped(),d.current||y.stopPropagation())})})});Gd.displayName=Wd;var Ko=x.forwardRef((t,e)=>{const{__scopeCheckbox:r,name:n,checked:i,defaultChecked:u,required:o,disabled:a,value:s,onCheckedChange:l,form:c,...p}=t;return h.jsx(p4,{__scopeCheckbox:r,checked:i,defaultChecked:u,disabled:a,required:o,onCheckedChange:l,name:n,form:c,value:s,internal_do_not_use_render:({isFormControl:d})=>h.jsxs(h.Fragment,{children:[h.jsx(Gd,{...p,ref:e,__scopeCheckbox:r}),d&&h.jsx(Kd,{__scopeCheckbox:r})]})})});Ko.displayName=wi;var Xd="CheckboxIndicator",Yd=x.forwardRef((t,e)=>{const{__scopeCheckbox:r,forceMount:n,...i}=t,u=Jo(Xd,r);return h.jsx(li,{present:n||at(u.checked)||u.checked===!0,children:h.jsx(Ne.span,{"data-state":Zd(u.checked),"data-disabled":u.disabled?"":void 0,...i,ref:e,style:{pointerEvents:"none",...t.style}})})});Yd.displayName=Xd;var Jd="CheckboxBubbleInput",Kd=x.forwardRef(({__scopeCheckbox:t,...e},r)=>{const{control:n,hasConsumerStoppedPropagationRef:i,checked:u,defaultChecked:o,required:a,disabled:s,name:l,value:c,form:p,bubbleInput:d,setBubbleInput:f}=Jo(Jd,t),g=Be(r,f),m=c4(u),b=pc(n);x.useEffect(()=>{const v=d;if(!v)return;const C=window.HTMLInputElement.prototype,O=Object.getOwnPropertyDescriptor(C,"checked").set,k=!i.current;if(m!==u&&O){const R=new Event("click",{bubbles:k});v.indeterminate=at(u),O.call(v,at(u)?!1:u),v.dispatchEvent(R)}},[d,m,u,i]);const y=x.useRef(at(u)?!1:u);return h.jsx(Ne.input,{type:"checkbox","aria-hidden":!0,defaultChecked:o??y.current,required:a,disabled:s,name:l,value:c,form:p,...e,tabIndex:-1,ref:g,style:{...e.style,...b,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});Kd.displayName=Jd;function h4(t){return typeof t=="function"}function at(t){return t==="indeterminate"}function Zd(t){return at(t)?"indeterminate":t?"checked":"unchecked"}const Qd=x.forwardRef(({className:t,...e},r)=>h.jsx(Ko,{ref:r,className:ge("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",t),...e,children:h.jsx(Yd,{className:ge("flex items-center justify-center text-current"),children:h.jsx(qu,{className:"h-4 w-4"})})}));Qd.displayName=Ko.displayName;const b4=({onDownload:t,disabled:e=!1})=>{const[r,n]=j.useState(!0),[i,u]=j.useState(!1),o=()=>{r&&t&&!i&&(t(),u(!0))};return h.jsxs("div",{className:"py-4 max-w-[600px] w-full flex flex-col justify-center items-center",children:[h.jsx("div",{className:"flex w-full md:w-1/2 justify-center items-center",children:h.jsx(xr,{disabled:!r||i||e,onClick:o,className:"w-full",children:i?h.jsxs(h.Fragment,{children:[h.jsx(qu,{className:"h-4 w-4 mr-2"}),"Thank you!"]}):h.jsxs(h.Fragment,{children:[h.jsx(Y0,{className:"h-4 w-4 mr-2"}),"Download"]})})}),h.jsxs("label",{className:"flex items-start space-x-2 cursor-pointer mt-4",children:[h.jsx(Qd,{checked:r,onCheckedChange:a=>n(a===!0),className:"mt-0.5"}),h.jsxs("span",{className:"text-sm text-muted-foreground",children:["I accept the"," ",h.jsx("a",{href:"https://myracereel.com/terms-of-service",className:"underline hover:text-foreground transition-colors",target:"_blank",rel:"noopener noreferrer",children:"Terms of Service"}),"."]})]})]})},g4=(t,e)=>{if(typeof t!="object"||t===null)return t;const r=["mobile","tablet","small","desktop"],n=r.indexOf(e);for(let i=n;i>=0;i--)if(t[r[i]]!==void 0)return t[r[i]];return t.desktop??t.mobile??0},m4=({locationId:t,bibId:e,editorEnabled:r,videoTitle:n})=>{const i=j.useRef(null),{data:u,isLoading:o,error:a}=u0.useQuery({queryKey:["video",t,e],queryFn:()=>l4(t,e),enabled:!!t});if(o)return h.jsx("div",{className:"flex items-center justify-center h-48 bg-muted rounded-lg",children:h.jsx("div",{className:"h-8 w-8 animate-spin rounded-full border-4 border-muted-foreground border-t-transparent"})});if(a||!u)return r?h.jsxs("div",{className:"flex flex-col items-center gap-1 justify-center py-6 px-4 bg-muted/50 rounded-lg border border-dashed border-muted-foreground/30",children:[h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx(G0,{className:"h-5 w-5 text-muted-foreground"}),h.jsx("p",{className:"text-muted-foreground text-sm font-medium",children:"Video not found (404)"})]}),h.jsx("p",{className:"text-muted-foreground/70 text-xs",children:"This will be hidden on the live page"})]}):null;const{videoFromIrewind:s}=u,l=async()=>{if(!r)try{const c=document.createElement("a");c.href=s.mp4_hr_url,c.download=`${s.name||e}-video`,c.style.display="none",document.body.appendChild(c),c.click(),document.body.removeChild(c)}catch(c){console.error("Download failed:",c)}};return h.jsx("div",{className:"w-full",children:h.jsxs("div",{className:"flex flex-col items-center",children:[h.jsx("p",{className:"text-sm text-muted-foreground mb-1",children:n}),h.jsxs("h3",{className:"text-lg font-semibold text-foreground mb-3",children:[s.name," (",s.start_no,")"]}),h.jsxs("video",{ref:i,controls:!0,controlsList:"nodownload",className:"w-full max-w-2xl rounded-lg shadow-md",children:[h.jsx("source",{src:s.mp4_hr_url,type:"video/mp4"}),"Your browser does not support HTML5 video."]}),h.jsx(b4,{onDownload:l,disabled:r})]})})},Zo=({padding:t={mobile:16,desktop:24},margin:e={top:0,right:0,bottom:0,left:0},background:r="transparent",borderRadius:n=8,boxShadow:i="none"})=>{const u=Ot(),o=Fn(),{connectors:{connect:a,drag:s},selected:l}=oe(b=>({selected:b.events.selected})),{enabled:c}=lo(b=>({enabled:b.options.enabled})),p=g4(t,u),d={none:"none",sm:"0 1px 2px 0 rgb(0 0 0 / 0.05)",md:"0 4px 6px -1px rgb(0 0 0 / 0.1)",lg:"0 10px 15px -3px rgb(0 0 0 / 0.1)",xl:"0 20px 25px -5px rgb(0 0 0 / 0.1)"},f={padding:`${p}px`,marginTop:`${e.top}px`,marginRight:`${e.right}px`,marginBottom:`${e.bottom}px`,marginLeft:`${e.left}px`,background:r,borderRadius:`${n}px`,boxShadow:d[i]||"none"},g=(o==null?void 0:o.videos)||[],m=g.length>0;return h.jsx("div",{ref:b=>b&&a(s(b)),style:f,className:`transition-all ${l?"ring-2 ring-primary ring-offset-2":""}`,children:m?h.jsx("div",{className:"space-y-6",children:g.map(b=>h.jsx(m4,{locationId:b.locationId,bibId:o==null?void 0:o.bibId,editorEnabled:c,videoTitle:b.name||b.locationId},b.locationId))}):h.jsxs("div",{className:"flex flex-col items-center justify-center h-48 bg-muted rounded-lg border-2 border-dashed border-muted-foreground/30",children:[h.jsx(ul,{className:"h-10 w-10 text-muted-foreground mb-2"}),h.jsxs("p",{className:"text-muted-foreground text-sm text-center",children:["No video locations available.",h.jsx("br",{}),h.jsx("span",{className:"text-xs",children:"Add videos to your event first."})]})]})})},y4=()=>{const{actions:{setProp:t},padding:e,margin:r,background:n,borderRadius:i,boxShadow:u}=oe(a=>({padding:a.data.props.padding,margin:a.data.props.margin,background:a.data.props.background,borderRadius:a.data.props.borderRadius,boxShadow:a.data.props.boxShadow})),o=[{value:"none",label:"None"},{value:"sm",label:"Small"},{value:"md",label:"Medium"},{value:"lg",label:"Large"},{value:"xl",label:"Extra Large"}];return h.jsxs("div",{className:"space-y-1",children:[h.jsx(F,{title:"Info",children:h.jsx("p",{className:"text-xs text-muted-foreground",children:"All available videos will be displayed automatically."})}),h.jsxs(F,{title:"Style",children:[h.jsx(de,{label:"Padding",value:(e==null?void 0:e.desktop)??24,onChange:a=>t(s=>s.padding={...s.padding,desktop:a,mobile:a}),min:0,max:100}),h.jsx(de,{label:"Border Radius",value:i,onChange:a=>t(s=>s.borderRadius=a),min:0,max:50}),h.jsx(De,{label:"Background",value:n,onChange:a=>t(s=>s.background=a)}),h.jsx(ne,{label:"Shadow",value:u,options:o,onChange:a=>t(s=>s.boxShadow=a)})]}),h.jsx(F,{title:"Spacing",children:h.jsx(Oe,{label:"Margin",values:r,onChange:a=>t(s=>s.margin=a)})})]})};Zo.craft={displayName:"Video",props:{padding:{mobile:16,desktop:24},margin:{top:0,right:0,bottom:0,left:0},background:"transparent",borderRadius:8,boxShadow:"none"},related:{settings:y4}};const Qo=({columns:t=2,gap:e=16,padding:r={top:0,right:0,bottom:0,left:0},margin:n={top:0,right:0,bottom:0,left:0},alignItems:i="stretch",children:u})=>{const{connectors:{connect:o,drag:a},isActive:s}=oe(p=>({isActive:p.events.selected})),l=typeof r=="object"?`${r.top}px ${r.right}px ${r.bottom}px ${r.left}px`:`${r}px`,c=typeof n=="object"?`${n.top}px ${n.right}px ${n.bottom}px ${n.left}px`:`${n}px`;return h.jsx("div",{ref:p=>p&&o(a(p)),className:`cursor-move w-full ${s?"ring-2 ring-primary ring-offset-2":""}`,style:{display:"grid",gridTemplateColumns:`repeat(${t}, 1fr)`,gap:`${e}px`,padding:l,margin:c,alignItems:i},children:u})},v4=()=>{const{actions:{setProp:t},props:e}=oe(i=>({props:i.data.props})),r=typeof e.padding=="object"?e.padding:{top:0,right:0,bottom:0,left:0},n=typeof e.margin=="object"?e.margin:{top:0,right:0,bottom:0,left:0};return h.jsxs("div",{className:"space-y-3",children:[h.jsxs(F,{title:"Layout",defaultOpen:!0,children:[h.jsx(Ke,{label:"Columns",value:e.columns||2,options:[{value:2,label:"2"},{value:3,label:"3"},{value:4,label:"4"}],onChange:i=>t(u=>u.columns=i)}),h.jsx(de,{label:"Gap",value:e.gap||16,onChange:i=>t(u=>u.gap=i),max:64}),h.jsx(ne,{label:"Align Items",value:e.alignItems||"stretch",options:[{value:"stretch",label:"Stretch"},{value:"start",label:"Top"},{value:"center",label:"Center"},{value:"end",label:"Bottom"}],onChange:i=>t(u=>u.alignItems=i)})]}),h.jsxs(F,{title:"Spacing",defaultOpen:!1,children:[h.jsx(Oe,{label:"Padding",values:r,onChange:i=>t(u=>u.padding=i)}),h.jsx(Oe,{label:"Margin",values:n,onChange:i=>t(u=>u.margin=i)})]})]})};Qo.craft={displayName:"Columns",props:{columns:2,gap:16,padding:{top:0,right:0,bottom:0,left:0},margin:{top:0,right:0,bottom:0,left:0},alignItems:"stretch"},related:{settings:v4}};const ea=({text:t="Click here",url:e="#",target:r="_self",fontSize:n=16,fontWeight:i="400",color:u="#0066cc",hoverColor:o="#0052a3",textDecoration:a="underline",textAlign:s="left",margin:l={top:0,right:0,bottom:0,left:0},opacity:c=100})=>{const{connectors:{connect:p,drag:d},isActive:f}=oe(m=>({isActive:m.events.selected})),g=typeof l=="object"?`${l.top}px ${l.right}px ${l.bottom}px ${l.left}px`:`${l}px`;return h.jsx("a",{ref:m=>m&&p(d(m)),href:e,target:r,rel:r==="_blank"?"noopener noreferrer":void 0,onClick:m=>m.preventDefault(),className:`cursor-move inline-block transition-colors hover:opacity-80 ${f?"ring-2 ring-primary ring-offset-2":""}`,style:{fontSize:`${n}px`,fontWeight:i,color:u,textDecoration:a,textAlign:s,margin:g,opacity:c/100,display:"block"},children:t})},x4=()=>{const{actions:{setProp:t},props:e}=oe(n=>({props:n.data.props})),r=typeof e.margin=="object"?e.margin:{top:0,right:0,bottom:0,left:0};return h.jsxs("div",{className:"space-y-3",children:[h.jsxs(F,{title:"Content",defaultOpen:!0,children:[h.jsx(Ut,{label:"Text",value:e.text,onChange:n=>t(i=>i.text=n)}),h.jsx(Ut,{label:"URL",value:e.url,onChange:n=>t(i=>i.url=n)}),h.jsx(ne,{label:"Open in",value:e.target||"_self",options:[{value:"_self",label:"Same Tab"},{value:"_blank",label:"New Tab"}],onChange:n=>t(i=>i.target=n)})]}),h.jsxs(F,{title:"Typography",defaultOpen:!0,children:[h.jsx(de,{label:"Font Size",value:e.fontSize||16,onChange:n=>t(i=>i.fontSize=n),min:10,max:48}),h.jsx(ne,{label:"Weight",value:e.fontWeight||"400",options:[{value:"400",label:"Regular"},{value:"500",label:"Medium"},{value:"600",label:"Semibold"},{value:"700",label:"Bold"}],onChange:n=>t(i=>i.fontWeight=n)}),h.jsx(ne,{label:"Decoration",value:e.textDecoration||"underline",options:[{value:"none",label:"None"},{value:"underline",label:"Underline"}],onChange:n=>t(i=>i.textDecoration=n)}),h.jsx(Ke,{label:"Alignment",value:e.textAlign||"left",options:[{value:"left",label:h.jsx($u,{className:"h-3 w-3"})},{value:"center",label:h.jsx(Mu,{className:"h-3 w-3"})},{value:"right",label:h.jsx(Bu,{className:"h-3 w-3"})}],onChange:n=>t(i=>i.textAlign=n)})]}),h.jsxs(F,{title:"Color",defaultOpen:!1,children:[h.jsx(De,{label:"Link Color",value:e.color||"#0066cc",onChange:n=>t(i=>i.color=n)}),h.jsx(wo,{label:"Opacity",value:e.opacity||100,onChange:n=>t(i=>i.opacity=n),min:0,max:100,unit:"%"})]}),h.jsx(F,{title:"Spacing",defaultOpen:!1,children:h.jsx(Oe,{label:"Margin",values:r,onChange:n=>t(i=>i.margin=n)})})]})};ea.craft={displayName:"Link",props:{text:"Click here",url:"#",target:"_self",fontSize:16,fontWeight:"400",color:"#0066cc",hoverColor:"#0052a3",textDecoration:"underline",textAlign:"left",margin:{top:0,right:0,bottom:0,left:0},opacity:100},related:{settings:x4}};const qi={mobile:{width:375,label:"Mobile",icon:Uu},tablet:{width:768,label:"Tablet",icon:Vu},small:{width:1024,label:"Small",icon:zu},desktop:{width:1440,label:"Desktop",icon:Wu}},w4=({editorState:t,deviceSize:e})=>h.jsx(Xl,{resolver:{Container:Eo,Text:Uo,ButtonComponent:Vo,Heading:Wo,Image:Go,Divider:Xo,Spacer:Yo,Video:Zo,Columns:Qo,Link:ea},enabled:!1,children:h.jsx(Jl,{value:e,children:h.jsx(E4,{editorState:t})})}),E4=({editorState:t})=>{const{actions:e}=lo();return j.useEffect(()=>{if(t&&(e!=null&&e.deserialize))try{e.deserialize(t)}catch(r){console.error("Failed to deserialize editor state:",r)}},[t,e]),h.jsx(zl,{})},S4=({isOpen:t,onClose:e,eventData:r,editorState:n})=>{var a,s;const[i,u]=j.useState("desktop");if(j.useEffect(()=>{const l=c=>{c.key==="Escape"&&e()};if(t)return document.addEventListener("keydown",l),()=>document.removeEventListener("keydown",l)},[t,e]),!t)return null;const o=((a=qi[i])==null?void 0:a.width)||1440;return h.jsxs("div",{className:"fixed inset-0 z-50 bg-background flex flex-col",children:[h.jsxs("div",{className:"flex items-center justify-between px-6 py-4 border-b border-border bg-card",children:[h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx("h2",{className:"text-lg font-semibold",children:"Preview"}),h.jsxs("span",{className:"text-sm text-muted-foreground",children:["(",(s=qi[i])==null?void 0:s.width,"px)"]})]}),h.jsx("div",{className:"flex items-center gap-1 bg-muted rounded-lg p-1",children:Object.entries(qi).map(([l,{label:c,icon:p}])=>h.jsxs(xr,{variant:"ghost",size:"sm",onClick:()=>u(l),className:pf("h-8 px-3 gap-2",i===l&&"bg-background shadow-sm"),children:[h.jsx(p,{className:"h-4 w-4"}),h.jsx("span",{className:"hidden sm:inline",children:c})]},l))}),h.jsx(xr,{variant:"ghost",size:"icon",onClick:e,children:h.jsx(tf,{className:"h-5 w-5"})})]}),h.jsx("div",{className:"flex-1 overflow-auto bg-muted/50 p-6",children:h.jsx("div",{className:"flex justify-center min-h-full",children:h.jsx("div",{className:"bg-white rounded-lg shadow-xl transition-all duration-300 overflow-hidden p-4",style:{width:`${o}px`,maxWidth:"100%"},children:h.jsx(Lu,{value:r,children:n?h.jsx(w4,{editorState:n,deviceSize:i}):h.jsx("div",{className:"flex items-center justify-center h-48 text-muted-foreground",children:"No content to preview. Start building your page first."})})})})})]})},e0=j.createContext({fetchVideoByLocation:null}),C4=({children:t,fetchVideoByLocation:e})=>h.jsx(e0.Provider,{value:{fetchVideoByLocation:e},children:t}),T4=()=>j.useContext(e0);exports.ApiConfigProvider=C4;exports.Button=xr;exports.ButtonComponent=Vo;exports.Card=Iu;exports.CardContent=Du;exports.ChevronDown=Hu;exports.ChevronRight=Fu;exports.Columns=Qo;exports.Container=Eo;exports.DEVICE_ORDER=Se;exports.De=zl;exports.DeviceSizeProvider=Jl;exports.Divider=Xo;exports.EventDataProvider=Lu;exports.Film=ul;exports.Heading=Wo;exports.Image=Go;exports.Link=ol;exports.Link$1=ea;exports.Monitor=zu;exports.PageBuilder=F0;exports.Pe=lo;exports.Presence=li;exports.PreviewModal=S4;exports.Primitive=Ne;exports.Smartphone=Uu;exports.Spacer=Yo;exports.TEMPLATE_VARIABLES=Sx;exports.Tablet=Vu;exports.Text=Uo;exports.Tooltip=Ft;exports.TooltipContent=Et;exports.TooltipProvider=Nr;exports.TooltipTrigger=zt;exports.Tv=Wu;exports.Video=Zo;exports.cn=ge;exports.composeEventHandlers=Ee;exports.composeRefs=zn;exports.createContextScope=ii;exports.createLucideIcon=ie;exports.cva=sl;exports.getPlaceholderPaths=Ex;exports.getResponsiveValue=Ye;exports.hasTemplatePlaceholders=wx;exports.ke=ni;exports.processTemplate=So;exports.useApiConfig=T4;exports.useCallbackRef=Mr;exports.useComposedRefs=Be;exports.useControllableState=vo;exports.useDeviceSize=Ot;exports.useEventData=Fn;exports.useId=ec;exports.useLayoutEffect2=ct;exports.ut=Xl;