@ws-ui/localization-editor 1.13.0-rc1 → 1.13.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.
- package/dist/Standalone/style.css +1 -4138
- package/dist/common.cjs.js.map +1 -1
- package/dist/common.es.js.map +1 -1
- package/dist/components/Export-Import/Import/export-i18n.schema.json.d.ts +82 -82
- package/dist/components/SupportedEditor/AddLanguage.d.ts +3 -0
- package/dist/index.cjs.js +102 -121
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +17418 -24126
- package/dist/index.es.js.map +1 -1
- package/dist/localization-editor.css +1 -1
- package/dist/providers/LocalizationEditorProvider.d.ts +2 -0
- package/package.json +8 -9
package/dist/index.cjs.js
CHANGED
|
@@ -1,177 +1,158 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("react/jsx-runtime"),V=require("react"),Cr=require("react-dom"),Ue=require("classnames"),Je=require("@ws-ui/icons"),fe=require("@ws-ui/shared"),yt=require("@ws-ui/store"),oe=require("lodash"),ss=require("short-uuid"),os=require("./common.cjs.js"),fd=require("simplebar-react"),pd=require("react-dropzone"),ls=require("papaparse"),dd=require("jsonschema"),Wr=require("@headlessui/react");function zu(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,i.get?i:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const U=zu(V),Ku=zu(Cr);function Dn(e,t,n){let i=n.initialDeps??[],r,s=!0;function o(){var l,u,f;let p;n.key&&((l=n.debug)!=null&&l.call(n))&&(p=Date.now());const h=e();if(!(h.length!==i.length||h.some((b,v)=>i[v]!==b)))return r;i=h;let m;if(n.key&&((u=n.debug)!=null&&u.call(n))&&(m=Date.now()),r=t(...h),n.key&&((f=n.debug)!=null&&f.call(n))){const b=Math.round((Date.now()-p)*100)/100,v=Math.round((Date.now()-m)*100)/100,S=v/16,E=(k,I)=>{for(k=String(k);k.length<I;)k=" "+k;return k};console.info(`%c⏱ ${E(v,5)} /${E(b,5)} ms`,`
|
|
2
2
|
font-size: .6rem;
|
|
3
3
|
font-weight: bold;
|
|
4
|
-
color: hsl(${Math.max(0,Math.min(120-120*w,120))}deg 100% 31%);`,n==null?void 0:n.key)}return n!=null&&n.onChange&&!(a&&n.skipInitialOnChange)&&n.onChange(r),a=!1,r}return s.updateDeps=l=>{i=l},s}function cu(e,t){if(e===void 0)throw new Error("Unexpected undefined");return e}const $m=(e,t)=>Math.abs(e-t)<1.01,Jm=(e,t,n)=>{let i;return function(...r){e.clearTimeout(i),i=e.setTimeout(()=>t.apply(this,r),n)}};var xi={};const hu=e=>{const{offsetWidth:t,offsetHeight:n}=e;return{width:t,height:n}},Ym=e=>e,Zm=e=>{const t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1),i=[];for(let r=t;r<=n;r++)i.push(r);return i},Xm=(e,t)=>{const n=e.scrollElement;if(!n)return;const i=e.targetWindow;if(!i)return;const r=s=>{const{width:l,height:u}=s;t({width:Math.round(l),height:Math.round(u)})};if(r(hu(n)),!i.ResizeObserver)return()=>{};const a=new i.ResizeObserver(s=>{const l=()=>{const u=s[0];if(u!=null&&u.borderBoxSize){const c=u.borderBoxSize[0];if(c){r({width:c.inlineSize,height:c.blockSize});return}}r(hu(n))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(l):l()});return a.observe(n,{box:"border-box"}),()=>{a.unobserve(n)}},du={passive:!0},pu=typeof window>"u"?!0:"onscrollend"in window,Qm=(e,t)=>{const n=e.scrollElement;if(!n)return;const i=e.targetWindow;if(!i)return;let r=0;const a=e.options.useScrollendEvent&&pu?()=>{}:Jm(i,()=>{t(r,!1)},e.options.isScrollingResetDelay),s=d=>()=>{const{horizontal:p,isRtl:g}=e.options;r=p?n.scrollLeft*(g&&-1||1):n.scrollTop,a(),t(r,d)},l=s(!0),u=s(!1);n.addEventListener("scroll",l,du);const c=e.options.useScrollendEvent&&pu;return c&&n.addEventListener("scrollend",u,du),()=>{n.removeEventListener("scroll",l),c&&n.removeEventListener("scrollend",u)}},ev=(e,t,n)=>{if(t!=null&&t.borderBoxSize){const i=t.borderBoxSize[0];if(i)return Math.round(i[n.options.horizontal?"inlineSize":"blockSize"])}return e[n.options.horizontal?"offsetWidth":"offsetHeight"]},tv=(e,{adjustments:t=0,behavior:n},i)=>{var r,a;const s=e+t;(a=(r=i.scrollElement)==null?void 0:r.scrollTo)==null||a.call(r,{[i.options.horizontal?"left":"top"]:s,behavior:n})};class nv{constructor(t){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollState=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.laneAssignments=new Map,this.pendingMeasuredCacheIndexes=[],this.prevLanes=void 0,this.lanesChangedFlag=!1,this.lanesSettling=!1,this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.now=()=>{var n,i,r;return((r=(i=(n=this.targetWindow)==null?void 0:n.performance)==null?void 0:i.now)==null?void 0:r.call(i))??Date.now()},this.observer=(()=>{let n=null;const i=()=>n||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:n=new this.targetWindow.ResizeObserver(r=>{r.forEach(a=>{const s=()=>{const l=a.target,u=this.indexFromElement(l);if(!l.isConnected){this.observer.unobserve(l);return}this.shouldMeasureDuringScroll(u)&&this.resizeItem(u,this.options.measureElement(l,a,this))};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(s):s()})}));return{disconnect:()=>{var r;(r=i())==null||r.disconnect(),n=null},observe:r=>{var a;return(a=i())==null?void 0:a.observe(r,{box:"border-box"})},unobserve:r=>{var a;return(a=i())==null?void 0:a.unobserve(r)}}})(),this.range=null,this.setOptions=n=>{Object.entries(n).forEach(([i,r])=>{typeof r>"u"&&delete n[i]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:Ym,rangeExtractor:Zm,onChange:()=>{},measureElement:ev,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...n}},this.notify=n=>{var i,r;(r=(i=this.options).onChange)==null||r.call(i,this,n)},this.maybeNotify=vi(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),n=>{this.notify(n)},{key:xi.NODE_ENV!=="production"&&"maybeNotify",debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(n=>n()),this.unsubs=[],this.observer.disconnect(),this.rafId!=null&&this.targetWindow&&(this.targetWindow.cancelAnimationFrame(this.rafId),this.rafId=null),this.scrollState=null,this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var n;const i=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==i){if(this.cleanup(),!i){this.maybeNotify();return}this.scrollElement=i,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((n=this.scrollElement)==null?void 0:n.window)??null,this.elementsCache.forEach(r=>{this.observer.observe(r)}),this.unsubs.push(this.options.observeElementRect(this,r=>{this.scrollRect=r,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(r,a)=>{this.scrollAdjustments=0,this.scrollDirection=a?this.getScrollOffset()<r?"forward":"backward":null,this.scrollOffset=r,this.isScrolling=a,this.scrollState&&this.scheduleScrollReconcile(),this.maybeNotify()})),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})}},this.rafId=null,this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(n,i)=>{const r=new Map,a=new Map;for(let s=i-1;s>=0;s--){const l=n[s];if(r.has(l.lane))continue;const u=a.get(l.lane);if(u==null||l.end>u.end?a.set(l.lane,l):l.end<u.end&&r.set(l.lane,!0),r.size===this.options.lanes)break}return a.size===this.options.lanes?Array.from(a.values()).sort((s,l)=>s.end===l.end?s.index-l.index:s.end-l.end)[0]:void 0},this.getMeasurementOptions=vi(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled,this.options.lanes],(n,i,r,a,s,l)=>(this.prevLanes!==void 0&&this.prevLanes!==l&&(this.lanesChangedFlag=!0),this.prevLanes=l,this.pendingMeasuredCacheIndexes=[],{count:n,paddingStart:i,scrollMargin:r,getItemKey:a,enabled:s,lanes:l}),{key:!1}),this.getMeasurements=vi(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:n,paddingStart:i,scrollMargin:r,getItemKey:a,enabled:s,lanes:l},u)=>{if(!s)return this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),[];if(this.laneAssignments.size>n)for(const g of this.laneAssignments.keys())g>=n&&this.laneAssignments.delete(g);this.lanesChangedFlag&&(this.lanesChangedFlag=!1,this.lanesSettling=!0,this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),this.pendingMeasuredCacheIndexes=[]),this.measurementsCache.length===0&&!this.lanesSettling&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(g=>{this.itemSizeCache.set(g.key,g.size)}));const c=this.lanesSettling?0:this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[],this.lanesSettling&&this.measurementsCache.length===n&&(this.lanesSettling=!1);const d=this.measurementsCache.slice(0,c),p=new Array(l).fill(void 0);for(let g=0;g<c;g++){const m=d[g];m&&(p[m.lane]=g)}for(let g=c;g<n;g++){const m=a(g),C=this.laneAssignments.get(g);let x,w;if(C!==void 0&&this.options.lanes>1){x=C;const A=p[x],y=A!==void 0?d[A]:void 0;w=y?y.end+this.options.gap:i+r}else{const A=this.options.lanes===1?d[g-1]:this.getFurthestMeasurement(d,g);w=A?A.end+this.options.gap:i+r,x=A?A.lane:g%this.options.lanes,this.options.lanes>1&&this.laneAssignments.set(g,x)}const S=u.get(m),k=typeof S=="number"?S:this.options.estimateSize(g),E=w+k;d[g]={index:g,start:w,size:k,end:E,key:m,lane:x},p[x]=g}return this.measurementsCache=d,d},{key:xi.NODE_ENV!=="production"&&"getMeasurements",debug:()=>this.options.debug}),this.calculateRange=vi(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(n,i,r,a)=>this.range=n.length>0&&i>0?iv({measurements:n,outerSize:i,scrollOffset:r,lanes:a}):null,{key:xi.NODE_ENV!=="production"&&"calculateRange",debug:()=>this.options.debug}),this.getVirtualIndexes=vi(()=>{let n=null,i=null;const r=this.calculateRange();return r&&(n=r.startIndex,i=r.endIndex),this.maybeNotify.updateDeps([this.isScrolling,n,i]),[this.options.rangeExtractor,this.options.overscan,this.options.count,n,i]},(n,i,r,a,s)=>a===null||s===null?[]:n({startIndex:a,endIndex:s,overscan:i,count:r}),{key:xi.NODE_ENV!=="production"&&"getVirtualIndexes",debug:()=>this.options.debug}),this.indexFromElement=n=>{const i=this.options.indexAttribute,r=n.getAttribute(i);return r?parseInt(r,10):(console.warn(`Missing attribute name '${i}={index}' on measured element.`),-1)},this.shouldMeasureDuringScroll=n=>{var i;if(!this.scrollState||this.scrollState.behavior!=="smooth")return!0;const r=this.scrollState.index??((i=this.getVirtualItemForOffset(this.scrollState.lastTargetOffset))==null?void 0:i.index);if(r!==void 0&&this.range){const a=Math.max(this.options.overscan,Math.ceil((this.range.endIndex-this.range.startIndex)/2)),s=Math.max(0,r-a),l=Math.min(this.options.count-1,r+a);return n>=s&&n<=l}return!0},this.measureElement=n=>{if(!n){this.elementsCache.forEach((s,l)=>{s.isConnected||(this.observer.unobserve(s),this.elementsCache.delete(l))});return}const i=this.indexFromElement(n),r=this.options.getItemKey(i),a=this.elementsCache.get(r);a!==n&&(a&&this.observer.unobserve(a),this.observer.observe(n),this.elementsCache.set(r,n)),(!this.isScrolling||this.scrollState)&&this.shouldMeasureDuringScroll(i)&&this.resizeItem(i,this.options.measureElement(n,void 0,this))},this.resizeItem=(n,i)=>{var r;const a=this.measurementsCache[n];if(!a)return;const s=this.itemSizeCache.get(a.key)??a.size,l=i-s;l!==0&&(((r=this.scrollState)==null?void 0:r.behavior)!=="smooth"&&(this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(a,l,this):a.start<this.getScrollOffset()+this.scrollAdjustments)&&(xi.NODE_ENV!=="production"&&this.options.debug&&console.info("correction",l),this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=l,behavior:void 0})),this.pendingMeasuredCacheIndexes.push(a.index),this.itemSizeCache=new Map(this.itemSizeCache.set(a.key,i)),this.notify(!1))},this.getVirtualItems=vi(()=>[this.getVirtualIndexes(),this.getMeasurements()],(n,i)=>{const r=[];for(let a=0,s=n.length;a<s;a++){const l=n[a],u=i[l];r.push(u)}return r},{key:xi.NODE_ENV!=="production"&&"getVirtualItems",debug:()=>this.options.debug}),this.getVirtualItemForOffset=n=>{const i=this.getMeasurements();if(i.length!==0)return cu(i[Dh(0,i.length-1,r=>cu(i[r]).start,n)])},this.getMaxScrollOffset=()=>{if(!this.scrollElement)return 0;if("scrollHeight"in this.scrollElement)return this.options.horizontal?this.scrollElement.scrollWidth-this.scrollElement.clientWidth:this.scrollElement.scrollHeight-this.scrollElement.clientHeight;{const n=this.scrollElement.document.documentElement;return this.options.horizontal?n.scrollWidth-this.scrollElement.innerWidth:n.scrollHeight-this.scrollElement.innerHeight}},this.getOffsetForAlignment=(n,i,r=0)=>{if(!this.scrollElement)return 0;const a=this.getSize(),s=this.getScrollOffset();i==="auto"&&(i=n>=s+a?"end":"start"),i==="center"?n+=(r-a)/2:i==="end"&&(n-=a);const l=this.getMaxScrollOffset();return Math.max(Math.min(l,n),0)},this.getOffsetForIndex=(n,i="auto")=>{n=Math.max(0,Math.min(n,this.options.count-1));const r=this.getSize(),a=this.getScrollOffset(),s=this.measurementsCache[n];if(!s)return;if(i==="auto")if(s.end>=a+r-this.options.scrollPaddingEnd)i="end";else if(s.start<=a+this.options.scrollPaddingStart)i="start";else return[a,i];if(i==="end"&&n===this.options.count-1)return[this.getMaxScrollOffset(),i];const l=i==="end"?s.end+this.options.scrollPaddingEnd:s.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(l,i,s.size),i]},this.scrollToOffset=(n,{align:i="start",behavior:r="auto"}={})=>{const a=this.getOffsetForAlignment(n,i),s=this.now();this.scrollState={index:null,align:i,behavior:r,startedAt:s,lastTargetOffset:a,stableFrames:0},this._scrollToOffset(a,{adjustments:void 0,behavior:r}),this.scheduleScrollReconcile()},this.scrollToIndex=(n,{align:i="auto",behavior:r="auto"}={})=>{n=Math.max(0,Math.min(n,this.options.count-1));const a=this.getOffsetForIndex(n,i);if(!a)return;const[s,l]=a,u=this.now();this.scrollState={index:n,align:l,behavior:r,startedAt:u,lastTargetOffset:s,stableFrames:0},this._scrollToOffset(s,{adjustments:void 0,behavior:r}),this.scheduleScrollReconcile()},this.scrollBy=(n,{behavior:i="auto"}={})=>{const r=this.getScrollOffset()+n,a=this.now();this.scrollState={index:null,align:"start",behavior:i,startedAt:a,lastTargetOffset:r,stableFrames:0},this._scrollToOffset(r,{adjustments:void 0,behavior:i}),this.scheduleScrollReconcile()},this.getTotalSize=()=>{var n;const i=this.getMeasurements();let r;if(i.length===0)r=this.options.paddingStart;else if(this.options.lanes===1)r=((n=i[i.length-1])==null?void 0:n.end)??0;else{const a=Array(this.options.lanes).fill(null);let s=i.length-1;for(;s>=0&&a.some(l=>l===null);){const l=i[s];a[l.lane]===null&&(a[l.lane]=l.end),s--}r=Math.max(...a.filter(l=>l!==null))}return Math.max(r-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(n,{adjustments:i,behavior:r})=>{this.options.scrollToFn(n,{behavior:r,adjustments:i},this)},this.measure=()=>{this.itemSizeCache=new Map,this.laneAssignments=new Map,this.notify(!1)},this.setOptions(t)}scheduleScrollReconcile(){if(!this.targetWindow){this.scrollState=null;return}this.rafId==null&&(this.rafId=this.targetWindow.requestAnimationFrame(()=>{this.rafId=null,this.reconcileScroll()}))}reconcileScroll(){if(!this.scrollState||!this.scrollElement)return;if(this.now()-this.scrollState.startedAt>5e3){this.scrollState=null;return}const i=this.scrollState.index!=null?this.getOffsetForIndex(this.scrollState.index,this.scrollState.align):void 0,r=i?i[0]:this.scrollState.lastTargetOffset,a=1,s=r!==this.scrollState.lastTargetOffset;if(!s&&$m(r,this.getScrollOffset())){if(this.scrollState.stableFrames++,this.scrollState.stableFrames>=a){this.scrollState=null;return}}else this.scrollState.stableFrames=0,s&&(this.scrollState.lastTargetOffset=r,this.scrollState.behavior="auto",this._scrollToOffset(r,{adjustments:void 0,behavior:"auto"}));this.scheduleScrollReconcile()}}const Dh=(e,t,n,i)=>{for(;e<=t;){const r=(e+t)/2|0,a=n(r);if(a<i)e=r+1;else if(a>i)t=r-1;else return r}return e>0?e-1:0};function iv({measurements:e,outerSize:t,scrollOffset:n,lanes:i}){const r=e.length-1,a=u=>e[u].start;if(e.length<=i)return{startIndex:0,endIndex:r};let s=Dh(0,r,a,n),l=s;if(i===1)for(;l<r&&e[l].end<n+t;)l++;else if(i>1){const u=Array(i).fill(0);for(;l<r&&u.some(d=>d<n+t);){const d=e[l];u[d.lane]=d.end,l++}const c=Array(i).fill(n+t);for(;s>=0&&c.some(d=>d>=n);){const d=e[s];c[d.lane]=d.start,s--}s=Math.max(0,s-s%i),l=Math.min(r,l+(i-1-l%i))}return{startIndex:s,endIndex:l}}const fu=typeof document<"u"?W.useLayoutEffect:W.useEffect;function rv({useFlushSync:e=!0,...t}){const n=W.useReducer(()=>({}),{})[1],i={...t,onChange:(a,s)=>{var l;e&&s?ui.flushSync(n):n(),(l=t.onChange)==null||l.call(t,a,s)}},[r]=W.useState(()=>new nv(i));return r.setOptions(i),fu(()=>r._didMount(),[]),fu(()=>r._willUpdate()),r}function av(e){return rv({observeElementRect:Xm,observeElementOffset:Qm,scrollToFn:tv,...e})}var ue={};(function(){try{const e=document.createElement("style");e.setAttribute("data-vite-dev-id","ui-components.css"),e.textContent=`/*! tailwindcss v4.1.18 | MIT License | https://tailwindcss.com */@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-leading:initial;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-duration:initial;--tw-ease:initial}}:root:not(#\\#),:host:not(#\\#){--color-green-500:oklch(72.3% .219 149.579);--color-blue-500:oklch(62.3% .214 259.815);--color-pink-500:oklch(65.6% .241 354.308);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-800:oklch(27.8% .033 256.848);--color-white:#fff;--spacing:.25rem;--container-md:28rem;--text-xs:.65rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--text-3xl:1.875rem;--text-3xl--line-height: 1.2 ;--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5/2.25);--text-5xl:3rem;--text-5xl--line-height:1;--text-6xl:3.75rem;--text-6xl--line-height:1;--text-7xl:4.5rem;--text-7xl--line-height:1;--text-8xl:6rem;--text-8xl--line-height:1;--text-9xl:8rem;--text-9xl--line-height:1;--font-weight-thin:100;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--radius-xs:.125rem;--radius-md:.375rem;--radius-lg:.5rem;--ease-out:cubic-bezier(0,0,.2,1);--ease-in-out:cubic-bezier(.4,0,.2,1);--animate-bounce:bounce 1s infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--color-grey-50:var(--ws-grey-50);--color-grey-100:var(--ws-grey-100);--color-grey-200:var(--ws-grey-200);--color-grey-300:var(--ws-grey-300);--color-grey-400:var(--ws-grey-400);--color-grey-500:var(--ws-grey-500);--color-grey-600:var(--ws-grey-600);--color-grey-700:var(--ws-grey-700);--color-grey-800:var(--ws-grey-800);--color-primary-500:var(--ws-primary-500);--color-primary-600:var(--ws-primary-600);--color-primary-700:var(--ws-primary-700);--color-positive-200:var(--ws-positive-200);--color-positive-400:var(--ws-positive-400);--color-positive-500:var(--ws-positive-500);--color-positive-600:var(--ws-positive-600);--color-warning-500:var(--ws-warning-500);--color-negative-400:var(--ws-negative-400);--color-negative-500:var(--ws-negative-500);--text-xxs:.55rem;--text-s:.75rem;--min-height-6:1.5rem;--color-canvas-default:var(--ws-bg-default);--color-canvas-subtle:var(--ws-grey-100);--color-panel:var(--ws-grey-300);--color-panel-subtle:var(--ws-grey-200);--color-card:var(--ws-card-bg);--color-card-border:var(--ws-card-border);--color-body:var(--ws-bg-foreground);--color-body-bg:var(--ws-bg-default);--color-body-light:var(--ws-grey-100);--color-muted:var(--ws-text-muted);--color-neutral:var(--ws-grey-200);--color-button-text:var(--ws-button-fg);--color-primary:var(--ws-primary-default);--color-primary-hover:var(--ws-primary-hover);--color-primary-light:var(--ws-primary-light);--color-primary-dark:var(--ws-primary-dark);--color-positive:var(--ws-positive-500);--color-positive-hover:var(--ws-positive-hover);--color-positive-text:var(--ws-positive-text);--color-positive-bg:var(--ws-positive-bg);--color-positive-light:var(--ws-positive-light);--color-positive-dark:var(--ws-positive-dark);--color-negative:var(--ws-negative-500);--color-negative-hover:var(--ws-negative-hover);--color-negative-text:var(--ws-negative-text);--color-negative-bg:var(--ws-negative-bg);--color-negative-light:var(--ws-negative-light);--color-negative-dark:var(--ws-negative-dark);--color-warning:var(--ws-warning-500);--color-warning-hover:var(--ws-warning-hover);--color-warning-text:var(--ws-warning-text);--color-warning-bg:var(--ws-warning-bg);--color-warning-light:var(--ws-warning-light);--color-warning-dark:var(--ws-warning-dark);--color-input-bg:var(--ws-input-bg);--color-input-border:var(--ws-input-border);--color-input-text:var(--ws-input-text);--color-input-placeholder:var(--ws-input-placeholder);--color-input-focus-border:var(--ws-input-focus-border);--color-select-border:var(--ws-select-border);--color-select-text:var(--ws-select-text);--color-select-list-bg:var(--ws-select-list-bg);--color-input-option-hover-bg:var(--ws-input-option-hover-bg);--color-input-option-active-bg:var(--ws-input-option-active-bg);--color-input-option-active-text:var(--ws-input-option-active-text);--color-input-error-border:var(--ws-input-error-border);--color-input-error-bg:var(--ws-input-error-bg);--color-input-warning-border:var(--ws-input-warning-border);--color-input-warning-bg:var(--ws-input-warning-bg);--color-input-message-bg:var(--ws-input-message-bg);--color-input-message-text:var(--ws-input-message-text);--color-input-disable:var(--ws-disable-input);--color-inactive-text:var(--ws-inactive-text);--color-panel-0:var(--ws-panel-0);--color-panel-1:var(--ws-panel-1);--color-panel-2:var(--ws-panel-2);--color-panel-3:var(--ws-panel-3);--color-panel-4:var(--ws-panel-4);--color-panel-5:var(--ws-panel-5);--color-panel-border-subtle:var(--ws-panel-border-subtle);--color-tab-bg-default:var(--ws-tab-bg-default);--color-tab-border:var(--ws-tab-border);--color-tab-active-bg:var(--ws-tab-active-bg);--color-tab-active-fg:var(--ws-tab-active-fg);--color-tab-inactive-bg:var(--ws-tab-inactive-bg);--color-tab-inactive-fg:var(--ws-tab-inactive-fg);--color-panel-border:var(--ws-panel-border)}.pointer-events-auto:not(#\\#){pointer-events:auto}.pointer-events-none:not(#\\#){pointer-events:none}.collapse:not(#\\#){visibility:collapse}.visible:not(#\\#){visibility:visible}.sr-only:not(#\\#){clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute:not(#\\#){position:absolute}.fixed:not(#\\#){position:fixed}.relative:not(#\\#){position:relative}.static:not(#\\#){position:static}.inset-0:not(#\\#){inset:calc(var(--spacing)*0)}.-top-1\\/5:not(#\\#){top:-20%}.top-0:not(#\\#){top:calc(var(--spacing)*0)}.top-1:not(#\\#){top:calc(var(--spacing)*1)}.top-full:not(#\\#){top:100%}.-right-12:not(#\\#){right:calc(var(--spacing)*-12)}.-right-px:not(#\\#){right:-1px}.right-0:not(#\\#){right:calc(var(--spacing)*0)}.right-1:not(#\\#){right:calc(var(--spacing)*1)}.bottom-0:not(#\\#){bottom:calc(var(--spacing)*0)}.bottom-full:not(#\\#){bottom:100%}.-left-px:not(#\\#){left:-1px}.left-0:not(#\\#){left:calc(var(--spacing)*0)}.left-0\\.5:not(#\\#){left:calc(var(--spacing)*.5)}.left-1\\/2:not(#\\#){left:50%}.left-3\\.5:not(#\\#){left:calc(var(--spacing)*3.5)}.left-4:not(#\\#){left:calc(var(--spacing)*4)}.left-4\\.5:not(#\\#){left:calc(var(--spacing)*4.5)}.left-5\\.5:not(#\\#){left:calc(var(--spacing)*5.5)}.left-full:not(#\\#){left:100%}.z-1:not(#\\#){z-index:1}.z-2:not(#\\#){z-index:2}.z-10:not(#\\#){z-index:10}.z-40:not(#\\#){z-index:40}.z-50:not(#\\#){z-index:50}.z-60:not(#\\#){z-index:60}.z-9999:not(#\\#){z-index:9999}.container:not(#\\#){width:100%}@media(min-width:40rem){.container:not(#\\#){max-width:40rem}}@media(min-width:48rem){.container:not(#\\#){max-width:48rem}}@media(min-width:64rem){.container:not(#\\#){max-width:64rem}}@media(min-width:80rem){.container:not(#\\#){max-width:80rem}}@media(min-width:96rem){.container:not(#\\#){max-width:96rem}}.m-0:not(#\\#){margin:calc(var(--spacing)*0)}.m-0\\.5:not(#\\#){margin:calc(var(--spacing)*.5)}.m-px:not(#\\#){margin:1px}.mx-1:not(#\\#){margin-inline:calc(var(--spacing)*1)}.-my-1:not(#\\#){margin-block:calc(var(--spacing)*-1)}.mt-1:not(#\\#){margin-top:calc(var(--spacing)*1)}.mt-2:not(#\\#){margin-top:calc(var(--spacing)*2)}.mt-4:not(#\\#){margin-top:calc(var(--spacing)*4)}.mt-8:not(#\\#){margin-top:calc(var(--spacing)*8)}.mr-1:not(#\\#){margin-right:calc(var(--spacing)*1)}.mr-2:not(#\\#){margin-right:calc(var(--spacing)*2)}.mb-1:not(#\\#){margin-bottom:calc(var(--spacing)*1)}.mb-2:not(#\\#){margin-bottom:calc(var(--spacing)*2)}.mb-4:not(#\\#){margin-bottom:calc(var(--spacing)*4)}.ml-1:not(#\\#){margin-left:calc(var(--spacing)*1)}.ml-1\\.5:not(#\\#){margin-left:calc(var(--spacing)*1.5)}.ml-2:not(#\\#){margin-left:calc(var(--spacing)*2)}.box-border:not(#\\#){box-sizing:border-box}.block:not(#\\#){display:block}.flex:not(#\\#){display:flex}.grid:not(#\\#){display:grid}.hidden:not(#\\#){display:none}.inline:not(#\\#){display:inline}.inline-block:not(#\\#){display:inline-block}.inline-flex:not(#\\#){display:inline-flex}.table:not(#\\#){display:table}.size-1\\.5:not(#\\#){width:calc(var(--spacing)*1.5);height:calc(var(--spacing)*1.5)}.size-1\\.75:not(#\\#){width:calc(var(--spacing)*1.75);height:calc(var(--spacing)*1.75)}.size-2:not(#\\#){width:calc(var(--spacing)*2);height:calc(var(--spacing)*2)}.size-2\\.5:not(#\\#){width:calc(var(--spacing)*2.5);height:calc(var(--spacing)*2.5)}.size-3:not(#\\#){width:calc(var(--spacing)*3);height:calc(var(--spacing)*3)}.size-3\\.5:not(#\\#){width:calc(var(--spacing)*3.5);height:calc(var(--spacing)*3.5)}.size-3\\.25:not(#\\#){width:calc(var(--spacing)*3.25);height:calc(var(--spacing)*3.25)}.size-4:not(#\\#){width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.size-5:not(#\\#){width:calc(var(--spacing)*5);height:calc(var(--spacing)*5)}.size-6:not(#\\#){width:calc(var(--spacing)*6);height:calc(var(--spacing)*6)}.size-fit:not(#\\#){width:fit-content;height:fit-content}.h-2:not(#\\#){height:calc(var(--spacing)*2)}.h-3:not(#\\#){height:calc(var(--spacing)*3)}.h-3\\.5:not(#\\#){height:calc(var(--spacing)*3.5)}.h-4:not(#\\#){height:calc(var(--spacing)*4)}.h-4\\.5:not(#\\#){height:calc(var(--spacing)*4.5)}.h-5:not(#\\#){height:calc(var(--spacing)*5)}.h-5\\.5:not(#\\#){height:calc(var(--spacing)*5.5)}.h-6:not(#\\#){height:calc(var(--spacing)*6)}.h-7:not(#\\#){height:calc(var(--spacing)*7)}.h-7\\.5:not(#\\#){height:calc(var(--spacing)*7.5)}.h-8:not(#\\#){height:calc(var(--spacing)*8)}.h-10:not(#\\#){height:calc(var(--spacing)*10)}.h-14:not(#\\#){height:calc(var(--spacing)*14)}.h-20:not(#\\#){height:calc(var(--spacing)*20)}.h-100:not(#\\#){height:calc(var(--spacing)*100)}.h-\\[120px\\]:not(#\\#){height:120px}.h-fit:not(#\\#){height:fit-content}.h-full:not(#\\#){height:100%}.max-h-\\[400px\\]:not(#\\#){max-height:400px}.max-h-full:not(#\\#){max-height:100%}.min-h-5:not(#\\#){min-height:calc(var(--spacing)*5)}.min-h-6:not(#\\#){min-height:var(--min-height-6)}.min-h-7:not(#\\#){min-height:calc(var(--spacing)*7)}.min-h-\\[100px\\]:not(#\\#){min-height:100px}.min-h-fit:not(#\\#){min-height:fit-content}.min-h-screen:not(#\\#){min-height:100vh}.w-0\\.5:not(#\\#){width:calc(var(--spacing)*.5)}.w-1\\/2:not(#\\#){width:50%}.w-3:not(#\\#){width:calc(var(--spacing)*3)}.w-3\\.5:not(#\\#){width:calc(var(--spacing)*3.5)}.w-4:not(#\\#){width:calc(var(--spacing)*4)}.w-5:not(#\\#){width:calc(var(--spacing)*5)}.w-6:not(#\\#){width:calc(var(--spacing)*6)}.w-7:not(#\\#){width:calc(var(--spacing)*7)}.w-8:not(#\\#){width:calc(var(--spacing)*8)}.w-9:not(#\\#){width:calc(var(--spacing)*9)}.w-11:not(#\\#){width:calc(var(--spacing)*11)}.w-16:not(#\\#){width:calc(var(--spacing)*16)}.w-20:not(#\\#){width:calc(var(--spacing)*20)}.w-32:not(#\\#){width:calc(var(--spacing)*32)}.w-48:not(#\\#){width:calc(var(--spacing)*48)}.w-52:not(#\\#){width:calc(var(--spacing)*52)}.w-60:not(#\\#){width:calc(var(--spacing)*60)}.w-64:not(#\\#){width:calc(var(--spacing)*64)}.w-80:not(#\\#){width:calc(var(--spacing)*80)}.w-96:not(#\\#){width:calc(var(--spacing)*96)}.w-fit:not(#\\#){width:fit-content}.w-full:not(#\\#){width:100%}.w-px:not(#\\#){width:1px}.max-w-100:not(#\\#){max-width:calc(var(--spacing)*100)}.max-w-\\[300px\\]:not(#\\#){max-width:300px}.max-w-md:not(#\\#){max-width:var(--container-md)}.min-w-0:not(#\\#){min-width:calc(var(--spacing)*0)}.min-w-3\\.5:not(#\\#){min-width:calc(var(--spacing)*3.5)}.min-w-4\\.5:not(#\\#){min-width:calc(var(--spacing)*4.5)}.min-w-5:not(#\\#){min-width:calc(var(--spacing)*5)}.min-w-7\\.5:not(#\\#){min-width:calc(var(--spacing)*7.5)}.min-w-50:not(#\\#){min-width:calc(var(--spacing)*50)}.min-w-\\[150px\\]:not(#\\#){min-width:150px}.min-w-fit:not(#\\#){min-width:fit-content}.min-w-full:not(#\\#){min-width:100%}.flex-1:not(#\\#){flex:1}.flex-3:not(#\\#){flex:3}.flex-none:not(#\\#){flex:none}.shrink-0:not(#\\#){flex-shrink:0}.origin-top-right:not(#\\#){transform-origin:100% 0}.-translate-x-1\\/2:not(#\\#){--tw-translate-x: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-x-full:not(#\\#){--tw-translate-x:-100%;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-x-0:not(#\\#){--tw-translate-x:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-x-full:not(#\\#){--tw-translate-x:100%;translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-y-full:not(#\\#){--tw-translate-y:-100%;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-0:not(#\\#){--tw-translate-y:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-1\\/2:not(#\\#){--tw-translate-y: 50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-full:not(#\\#){--tw-translate-y:100%;translate:var(--tw-translate-x)var(--tw-translate-y)}.scale-0:not(#\\#){--tw-scale-x:0%;--tw-scale-y:0%;--tw-scale-z:0%;scale:var(--tw-scale-x)var(--tw-scale-y)}.scale-95:not(#\\#){--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x)var(--tw-scale-y)}.scale-100:not(#\\#){--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x)var(--tw-scale-y)}.scale-110:not(#\\#){--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x)var(--tw-scale-y)}.-rotate-45:not(#\\#){rotate:-45deg}.rotate-45:not(#\\#){rotate:45deg}.rotate-90:not(#\\#){rotate:90deg}.rotate-180:not(#\\#){rotate:180deg}.transform:not(#\\#){transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.animate-bounce:not(#\\#){animation:var(--animate-bounce)}.cursor-auto:not(#\\#){cursor:auto}.cursor-not-allowed:not(#\\#){cursor:not-allowed}.cursor-pointer:not(#\\#){cursor:pointer}.cursor-se-resize:not(#\\#){cursor:se-resize}.resize:not(#\\#){resize:both}.resize-none:not(#\\#){resize:none}.list-disc:not(#\\#){list-style-type:disc}.appearance-none:not(#\\#){-webkit-appearance:none;-moz-appearance:none;appearance:none}.grid-cols-2:not(#\\#){grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3:not(#\\#){grid-template-columns:repeat(3,minmax(0,1fr))}.flex-col:not(#\\#){flex-direction:column}.flex-row:not(#\\#){flex-direction:row}.flex-wrap:not(#\\#){flex-wrap:wrap}.place-content-center:not(#\\#){place-content:center}.place-items-center:not(#\\#){place-items:center}.items-center:not(#\\#){align-items:center}.items-end:not(#\\#){align-items:flex-end}.items-start:not(#\\#){align-items:flex-start}.justify-around:not(#\\#){justify-content:space-around}.justify-between:not(#\\#){justify-content:space-between}.justify-center:not(#\\#){justify-content:center}.gap-0\\.5:not(#\\#){gap:calc(var(--spacing)*.5)}.gap-1:not(#\\#){gap:calc(var(--spacing)*1)}.gap-1\\.5:not(#\\#){gap:calc(var(--spacing)*1.5)}.gap-2:not(#\\#){gap:calc(var(--spacing)*2)}.gap-2\\.5:not(#\\#){gap:calc(var(--spacing)*2.5)}.gap-3:not(#\\#){gap:calc(var(--spacing)*3)}.gap-4:not(#\\#){gap:calc(var(--spacing)*4)}.gap-6:not(#\\#){gap:calc(var(--spacing)*6)}.gap-8:not(#\\#){gap:calc(var(--spacing)*8)}.gap-10:not(#\\#){gap:calc(var(--spacing)*10)}.gap-14:not(#\\#){gap:calc(var(--spacing)*14)}:where(.space-y-1>:not(:last-child)):not(#\\#){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*1)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*1)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)):not(#\\#){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*2)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)):not(#\\#){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*3)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*3)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)):not(#\\#){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*4)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-5>:not(:last-child)):not(#\\#){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*5)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*5)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-6>:not(:last-child)):not(#\\#){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*6)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*6)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-8>:not(:last-child)):not(#\\#){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*8)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*8)*calc(1 - var(--tw-space-y-reverse)))}.gap-x-1:not(#\\#){column-gap:calc(var(--spacing)*1)}.gap-x-2:not(#\\#){column-gap:calc(var(--spacing)*2)}.gap-x-3:not(#\\#){column-gap:calc(var(--spacing)*3)}.gap-x-4:not(#\\#){column-gap:calc(var(--spacing)*4)}.gap-x-20:not(#\\#){column-gap:calc(var(--spacing)*20)}:where(.space-x-4>:not(:last-child)):not(#\\#){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*4)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-x-reverse)))}.truncate:not(#\\#){text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden:not(#\\#){overflow:hidden}.overflow-y-auto:not(#\\#){overflow-y:auto}.rounded:not(#\\#){border-radius:.25rem}.rounded-full:not(#\\#){border-radius:3.40282e38px}.rounded-lg:not(#\\#){border-radius:var(--radius-lg)}.rounded-md:not(#\\#){border-radius:var(--radius-md)}.rounded-xs:not(#\\#){border-radius:var(--radius-xs)}.rounded-t:not(#\\#){border-top-left-radius:.25rem;border-top-right-radius:.25rem}.rounded-b:not(#\\#){border-bottom-right-radius:.25rem;border-bottom-left-radius:.25rem}.rounded-b-none:not(#\\#){border-bottom-right-radius:0;border-bottom-left-radius:0}.border:not(#\\#){border-style:var(--tw-border-style);border-width:1px}.border-0:not(#\\#){border-style:var(--tw-border-style);border-width:0}.border-2:not(#\\#){border-style:var(--tw-border-style);border-width:2px}.border-px:not(#\\#){border-width:1px}.divide:not(#\\#){border-width:.5px}.border-t:not(#\\#){border-top-style:var(--tw-border-style);border-top-width:1px}.border-t-0:not(#\\#){border-top-style:var(--tw-border-style);border-top-width:0}.border-r:not(#\\#){border-right-style:var(--tw-border-style);border-right-width:1px}.border-b:not(#\\#){border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-b-0:not(#\\#){border-bottom-style:var(--tw-border-style);border-bottom-width:0}.border-dashed:not(#\\#){--tw-border-style:dashed;border-style:dashed}.border-body:not(#\\#){border-color:var(--color-body)}.border-body-light:not(#\\#){border-color:var(--color-body-light)}.border-canvas-default:not(#\\#){border-color:var(--color-canvas-default)}.border-card-border:not(#\\#){border-color:var(--color-card-border)}.border-grey-100:not(#\\#){border-color:var(--color-grey-100)}.border-grey-200:not(#\\#){border-color:var(--color-grey-200)}.border-input-border:not(#\\#){border-color:var(--color-input-border)}.border-input-disable:not(#\\#){border-color:var(--color-input-disable)}.border-input-error-border:not(#\\#){border-color:var(--color-input-error-border)}.border-input-focus-border:not(#\\#){border-color:var(--color-input-focus-border)}.border-input-warning-border:not(#\\#){border-color:var(--color-input-warning-border)}.border-negative:not(#\\#){border-color:var(--color-negative)}.border-negative-500:not(#\\#){border-color:var(--color-negative-500)}.border-neutral:not(#\\#){border-color:var(--color-neutral)}.border-panel:not(#\\#){border-color:var(--color-panel)}.border-panel-border:not(#\\#){border-color:var(--color-panel-border)}.border-panel-border-subtle:not(#\\#){border-color:var(--color-panel-border-subtle)}.border-panel-subtle:not(#\\#){border-color:var(--color-panel-subtle)}.border-positive:not(#\\#){border-color:var(--color-positive)}.border-positive-text:not(#\\#){border-color:var(--color-positive-text)}.border-primary:not(#\\#){border-color:var(--color-primary)}.border-primary-700:not(#\\#){border-color:var(--color-primary-700)}.border-primary-hover:not(#\\#){border-color:var(--color-primary-hover)}.border-select-border:not(#\\#){border-color:var(--color-select-border)}.border-tab-border:not(#\\#){border-color:var(--color-tab-border)}.border-transparent:not(#\\#){border-color:#0000}.border-warning:not(#\\#){border-color:var(--color-warning)}.border-warning-bg:not(#\\#){border-color:var(--color-warning-bg)}.border-white:not(#\\#){border-color:var(--color-white)}.bg-blue-500:not(#\\#){background-color:var(--color-blue-500)}.bg-body:not(#\\#){background-color:var(--color-body)}.bg-body-bg:not(#\\#){background-color:var(--color-body-bg)}.bg-canvas-default:not(#\\#){background-color:var(--color-canvas-default)}.bg-canvas-subtle:not(#\\#){background-color:var(--color-canvas-subtle)}.bg-card:not(#\\#){background-color:var(--color-card)}.bg-gray-100:not(#\\#){background-color:var(--color-gray-100)}.bg-grey-50:not(#\\#){background-color:var(--color-grey-50)}.bg-grey-200:not(#\\#){background-color:var(--color-grey-200)}.bg-grey-300:not(#\\#){background-color:var(--color-grey-300)}.bg-grey-400:not(#\\#){background-color:var(--color-grey-400)}.bg-grey-500:not(#\\#){background-color:var(--color-grey-500)}.bg-grey-600:not(#\\#){background-color:var(--color-grey-600)}.bg-grey-700:not(#\\#){background-color:var(--color-grey-700)}.bg-grey-800:not(#\\#){background-color:var(--color-grey-800)}.bg-input-bg:not(#\\#){background-color:var(--color-input-bg)}.bg-input-border:not(#\\#){background-color:var(--color-input-border)}.bg-input-disable:not(#\\#){background-color:var(--color-input-disable)}.bg-input-error-bg:not(#\\#){background-color:var(--color-input-error-bg)}.bg-input-message-bg:not(#\\#){background-color:var(--color-input-message-bg)}.bg-input-option-active-bg:not(#\\#){background-color:var(--color-input-option-active-bg)}.bg-input-option-hover-bg:not(#\\#){background-color:var(--color-input-option-hover-bg)}.bg-input-text:not(#\\#){background-color:var(--color-input-text)}.bg-input-warning-bg:not(#\\#){background-color:var(--color-input-warning-bg)}.bg-negative:not(#\\#){background-color:var(--color-negative)}.bg-negative-400:not(#\\#){background-color:var(--color-negative-400)}.bg-negative-500:not(#\\#){background-color:var(--color-negative-500)}.bg-negative-bg:not(#\\#){background-color:var(--color-negative-bg)}.bg-negative-hover:not(#\\#){background-color:var(--color-negative-hover)}.bg-negative-light:not(#\\#){background-color:var(--color-negative-light)}.bg-panel:not(#\\#){background-color:var(--color-panel)}.bg-panel-0:not(#\\#){background-color:var(--color-panel-0)}.bg-panel-1:not(#\\#){background-color:var(--color-panel-1)}.bg-panel-2:not(#\\#){background-color:var(--color-panel-2)}.bg-panel-3:not(#\\#){background-color:var(--color-panel-3)}.bg-panel-4:not(#\\#){background-color:var(--color-panel-4)}.bg-panel-5:not(#\\#){background-color:var(--color-panel-5)}.bg-panel-subtle:not(#\\#){background-color:var(--color-panel-subtle)}.bg-positive:not(#\\#){background-color:var(--color-positive)}.bg-positive-200:not(#\\#){background-color:var(--color-positive-200)}.bg-positive-500:not(#\\#){background-color:var(--color-positive-500)}.bg-positive-bg:not(#\\#){background-color:var(--color-positive-bg)}.bg-positive-hover:not(#\\#){background-color:var(--color-positive-hover)}.bg-positive-light:not(#\\#){background-color:var(--color-positive-light)}.bg-primary:not(#\\#){background-color:var(--color-primary)}.bg-primary-500:not(#\\#){background-color:var(--color-primary-500)}.bg-primary-600:not(#\\#){background-color:var(--color-primary-600)}.bg-primary-hover:not(#\\#){background-color:var(--color-primary-hover)}.bg-primary-light:not(#\\#){background-color:var(--color-primary-light)}.bg-primary\\/30:not(#\\#){background-color:var(--color-primary)}@supports (color:color-mix(in lab,red,red)){.bg-primary\\/30:not(#\\#){background-color:color-mix(in oklab,var(--color-primary)30%,transparent)}}.bg-select-list-bg:not(#\\#){background-color:var(--color-select-list-bg)}.bg-tab-active-bg:not(#\\#){background-color:var(--color-tab-active-bg)}.bg-tab-bg-default:not(#\\#){background-color:var(--color-tab-bg-default)}.bg-tab-inactive-bg:not(#\\#){background-color:var(--color-tab-inactive-bg)}.bg-transparent:not(#\\#){background-color:#0000}.bg-warning:not(#\\#){background-color:var(--color-warning)}.bg-warning-500:not(#\\#){background-color:var(--color-warning-500)}.bg-warning-bg:not(#\\#){background-color:var(--color-warning-bg)}.bg-warning-hover:not(#\\#){background-color:var(--color-warning-hover)}.bg-warning-light:not(#\\#){background-color:var(--color-warning-light)}.bg-white:not(#\\#){background-color:var(--color-white)}.bg-linear-to-r:not(#\\#){--tw-gradient-position:to right}@supports (background-image:linear-gradient(in lab,red,red)){.bg-linear-to-r:not(#\\#){--tw-gradient-position:to right in oklab}}.bg-linear-to-r:not(#\\#){background-image:linear-gradient(var(--tw-gradient-stops))}.from-green-500:not(#\\#){--tw-gradient-from:var(--color-green-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-primary:not(#\\#){--tw-gradient-from:var(--color-primary);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-blue-500:not(#\\#){--tw-gradient-to:var(--color-blue-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-pink-500:not(#\\#){--tw-gradient-to:var(--color-pink-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.stroke-current:not(#\\#){stroke:currentColor}.p-0:not(#\\#){padding:calc(var(--spacing)*0)}.p-0\\.5:not(#\\#){padding:calc(var(--spacing)*.5)}.p-1:not(#\\#){padding:calc(var(--spacing)*1)}.p-1\\!{padding:calc(var(--spacing)*1)!important}.p-1\\.5:not(#\\#){padding:calc(var(--spacing)*1.5)}.p-2:not(#\\#){padding:calc(var(--spacing)*2)}.p-2\\.5:not(#\\#){padding:calc(var(--spacing)*2.5)}.p-3:not(#\\#){padding:calc(var(--spacing)*3)}.p-4:not(#\\#){padding:calc(var(--spacing)*4)}.p-6:not(#\\#){padding:calc(var(--spacing)*6)}.p-8:not(#\\#){padding:calc(var(--spacing)*8)}.p-10:not(#\\#){padding:calc(var(--spacing)*10)}.p-50:not(#\\#){padding:calc(var(--spacing)*50)}.p-px:not(#\\#){padding:1px}.px-0\\.5:not(#\\#){padding-inline:calc(var(--spacing)*.5)}.px-1:not(#\\#){padding-inline:calc(var(--spacing)*1)}.px-1\\.5:not(#\\#){padding-inline:calc(var(--spacing)*1.5)}.px-2:not(#\\#){padding-inline:calc(var(--spacing)*2)}.px-3:not(#\\#){padding-inline:calc(var(--spacing)*3)}.px-4:not(#\\#){padding-inline:calc(var(--spacing)*4)}.px-6:not(#\\#){padding-inline:calc(var(--spacing)*6)}.px-7:not(#\\#){padding-inline:calc(var(--spacing)*7)}.px-8:not(#\\#){padding-inline:calc(var(--spacing)*8)}.py-0\\.5:not(#\\#){padding-block:calc(var(--spacing)*.5)}.py-1:not(#\\#){padding-block:calc(var(--spacing)*1)}.py-1\\.5:not(#\\#){padding-block:calc(var(--spacing)*1.5)}.py-2:not(#\\#){padding-block:calc(var(--spacing)*2)}.py-3:not(#\\#){padding-block:calc(var(--spacing)*3)}.pt-0\\.5:not(#\\#){padding-top:calc(var(--spacing)*.5)}.pt-1:not(#\\#){padding-top:calc(var(--spacing)*1)}.pt-1\\.5:not(#\\#){padding-top:calc(var(--spacing)*1.5)}.pt-2:not(#\\#){padding-top:calc(var(--spacing)*2)}.pl-1:not(#\\#){padding-left:calc(var(--spacing)*1)}.pl-4:not(#\\#){padding-left:calc(var(--spacing)*4)}.text-center:not(#\\#){text-align:center}.text-left:not(#\\#){text-align:left}.text-2xl:not(#\\#){font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-3xl:not(#\\#){font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.text-4xl:not(#\\#){font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}.text-5xl:not(#\\#){font-size:var(--text-5xl);line-height:var(--tw-leading,var(--text-5xl--line-height))}.text-6xl:not(#\\#){font-size:var(--text-6xl);line-height:var(--tw-leading,var(--text-6xl--line-height))}.text-7xl:not(#\\#){font-size:var(--text-7xl);line-height:var(--tw-leading,var(--text-7xl--line-height))}.text-8xl:not(#\\#){font-size:var(--text-8xl);line-height:var(--tw-leading,var(--text-8xl--line-height))}.text-9xl:not(#\\#){font-size:var(--text-9xl);line-height:var(--tw-leading,var(--text-9xl--line-height))}.text-base:not(#\\#){font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg:not(#\\#){font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm:not(#\\#){font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl:not(#\\#){font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs:not(#\\#){font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-s:not(#\\#){font-size:var(--text-s)}.text-xxs:not(#\\#){font-size:var(--text-xxs)}.leading-3:not(#\\#){--tw-leading:calc(var(--spacing)*3);line-height:calc(var(--spacing)*3)}.leading-4:not(#\\#){--tw-leading:calc(var(--spacing)*4);line-height:calc(var(--spacing)*4)}.leading-5:not(#\\#){--tw-leading:calc(var(--spacing)*5);line-height:calc(var(--spacing)*5)}.leading-none:not(#\\#){--tw-leading:1;line-height:1}.font-bold:not(#\\#){--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium:not(#\\#){--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold:not(#\\#){--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.font-thin:not(#\\#){--tw-font-weight:var(--font-weight-thin);font-weight:var(--font-weight-thin)}.whitespace-nowrap:not(#\\#){white-space:nowrap}.text-body:not(#\\#){color:var(--color-body)}.text-button-text:not(#\\#){color:var(--color-button-text)}.text-gray-50:not(#\\#){color:var(--color-gray-50)}.text-gray-400:not(#\\#){color:var(--color-gray-400)}.text-gray-500:not(#\\#){color:var(--color-gray-500)}.text-gray-800:not(#\\#){color:var(--color-gray-800)}.text-grey-100:not(#\\#){color:var(--color-grey-100)}.text-grey-200:not(#\\#){color:var(--color-grey-200)}.text-grey-300:not(#\\#){color:var(--color-grey-300)}.text-grey-700:not(#\\#){color:var(--color-grey-700)}.text-inactive-text:not(#\\#){color:var(--color-inactive-text)}.text-inherit:not(#\\#){color:inherit}.text-input-disable:not(#\\#){color:var(--color-input-disable)}.text-input-message-text:not(#\\#){color:var(--color-input-message-text)}.text-input-option-active-text:not(#\\#){color:var(--color-input-option-active-text)}.text-input-placeholder:not(#\\#){color:var(--color-input-placeholder)}.text-input-text:not(#\\#){color:var(--color-input-text)}.text-muted:not(#\\#){color:var(--color-muted)}.text-negative:not(#\\#){color:var(--color-negative)}.text-negative-500:not(#\\#){color:var(--color-negative-500)}.text-negative-dark:not(#\\#){color:var(--color-negative-dark)}.text-negative-text:not(#\\#){color:var(--color-negative-text)}.text-panel-subtle:not(#\\#){color:var(--color-panel-subtle)}.text-positive:not(#\\#){color:var(--color-positive)}.text-positive-500:not(#\\#){color:var(--color-positive-500)}.text-positive-600:not(#\\#){color:var(--color-positive-600)}.text-positive-dark:not(#\\#){color:var(--color-positive-dark)}.text-positive-text:not(#\\#),.text-positive-text\\/70:not(#\\#){color:var(--color-positive-text)}@supports (color:color-mix(in lab,red,red)){.text-positive-text\\/70:not(#\\#){color:color-mix(in oklab,var(--color-positive-text)70%,transparent)}}.text-primary:not(#\\#){color:var(--color-primary)}.text-primary-dark:not(#\\#){color:var(--color-primary-dark)}.text-primary-hover:not(#\\#){color:var(--color-primary-hover)}.text-select-text:not(#\\#){color:var(--color-select-text)}.text-tab-active-fg:not(#\\#){color:var(--color-tab-active-fg)}.text-tab-inactive-fg:not(#\\#){color:var(--color-tab-inactive-fg)}.text-warning:not(#\\#){color:var(--color-warning)}.text-warning-dark:not(#\\#){color:var(--color-warning-dark)}.text-warning-text:not(#\\#){color:var(--color-warning-text)}.capitalize:not(#\\#){text-transform:capitalize}.lowercase:not(#\\#){text-transform:lowercase}.uppercase:not(#\\#){text-transform:uppercase}.italic:not(#\\#){font-style:italic}.underline:not(#\\#){text-decoration-line:underline}.decoration-transparent:not(#\\#){text-decoration-color:#0000}.opacity-0:not(#\\#){opacity:0}.opacity-50:not(#\\#){opacity:.5}.opacity-60:not(#\\#){opacity:.6}.opacity-80:not(#\\#){opacity:.8}.opacity-100:not(#\\#){opacity:1}.shadow:not(#\\#){--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-inner:not(#\\#){--tw-shadow:inset 0 2px 4px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg:not(#\\#){--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-md:not(#\\#){--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xs:not(#\\#){--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-0:not(#\\#){--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(0px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-1:not(#\\#){--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-input-error-border:not(#\\#){--tw-ring-color:var(--color-input-error-border)}.ring-input-focus-border:not(#\\#){--tw-ring-color:var(--color-input-focus-border)}.ring-input-warning-border:not(#\\#){--tw-ring-color:var(--color-input-warning-border)}.ring-positive:not(#\\#){--tw-ring-color:var(--color-positive)}.outline-hidden:not(#\\#){--tw-outline-style:none;outline-style:none}@media(forced-colors:active){.outline-hidden:not(#\\#){outline-offset:2px;outline:2px solid #0000}}.outline:not(#\\#),.outline-1:not(#\\#){outline-style:var(--tw-outline-style);outline-width:1px}.outline-s:not(#\\#){outline-width:.5px}.outline-xs:not(#\\#){outline-width:.3px}.outline-xxs:not(#\\#){outline-width:.1px}.outline-canvas-default:not(#\\#){outline-color:var(--color-canvas-default)}.outline-primary:not(#\\#){outline-color:var(--color-primary)}.blur:not(#\\#){--tw-blur:blur(8px);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.filter:not(#\\#){filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.transition:not(#\\#){transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all:not(#\\#){transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors:not(#\\#){transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity:not(#\\#){transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform:not(#\\#){transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-150:not(#\\#){--tw-duration:.15s;transition-duration:.15s}.duration-200:not(#\\#){--tw-duration:.2s;transition-duration:.2s}.duration-300:not(#\\#){--tw-duration:.3s;transition-duration:.3s}.ease-in-out:not(#\\#){--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.ease-out:not(#\\#){--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.outline-solid:not(#\\#){--tw-outline-style:solid;outline-style:solid}.select-none:not(#\\#){-webkit-user-select:none;user-select:none}@media(hover:hover){.group-hover\\:flex:is(:where(.group):hover *):not(#\\#){display:flex}.group-hover\\:grid:is(:where(.group):hover *):not(#\\#){display:grid}.group-hover\\:border-body:is(:where(.group):hover *):not(#\\#){border-color:var(--color-body)}.group-hover\\:border-negative-text:is(:where(.group):hover *):not(#\\#){border-color:var(--color-negative-text)}.group-hover\\:border-positive-text:is(:where(.group):hover *):not(#\\#){border-color:var(--color-positive-text)}.group-hover\\:border-warning-text:is(:where(.group):hover *):not(#\\#){border-color:var(--color-warning-text)}.group-hover\\:bg-grey-400:is(:where(.group):hover *):not(#\\#){background-color:var(--color-grey-400)}.group-hover\\:bg-negative-hover:is(:where(.group):hover *):not(#\\#){background-color:var(--color-negative-hover)}.group-hover\\:bg-negative-light:is(:where(.group):hover *):not(#\\#){background-color:var(--color-negative-light)}.group-hover\\:bg-positive-hover:is(:where(.group):hover *):not(#\\#){background-color:var(--color-positive-hover)}.group-hover\\:bg-positive-light:is(:where(.group):hover *):not(#\\#){background-color:var(--color-positive-light)}.group-hover\\:bg-primary-hover:is(:where(.group):hover *):not(#\\#){background-color:var(--color-primary-hover)}.group-hover\\:bg-primary-light:is(:where(.group):hover *):not(#\\#){background-color:var(--color-primary-light)}.group-hover\\:bg-warning-hover:is(:where(.group):hover *):not(#\\#){background-color:var(--color-warning-hover)}.group-hover\\:bg-warning-light:is(:where(.group):hover *):not(#\\#){background-color:var(--color-warning-light)}.group-hover\\:opacity-100:is(:where(.group):hover *):not(#\\#){opacity:1}}.placeholder\\:text-sm:not(#\\#)::placeholder{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.placeholder\\:text-xs:not(#\\#)::placeholder{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.placeholder\\:text-s:not(#\\#)::placeholder{font-size:var(--text-s)}.placeholder\\:text-input-placeholder:not(#\\#)::placeholder{color:var(--color-input-placeholder)}.placeholder\\:opacity-60:not(#\\#)::placeholder{opacity:.6}.first\\:bottom-full:first-child:not(#\\#){bottom:100%}.first\\:-ml-1\\.5:first-child:not(#\\#){margin-left:calc(var(--spacing)*-1.5)}.first\\:rounded-t:first-child:not(#\\#){border-top-left-radius:.25rem;border-top-right-radius:.25rem}.first\\:rounded-l:first-child:not(#\\#){border-top-left-radius:.25rem;border-bottom-left-radius:.25rem}.last\\:top-full:last-child:not(#\\#){top:100%}.last\\:-mr-1\\.5:last-child:not(#\\#){margin-right:calc(var(--spacing)*-1.5)}.last\\:rounded-r:last-child:not(#\\#){border-top-right-radius:.25rem;border-bottom-right-radius:.25rem}.last\\:rounded-b:last-child:not(#\\#){border-bottom-right-radius:.25rem;border-bottom-left-radius:.25rem}.only\\:top-full:only-child:not(#\\#){top:100%}.only\\:-mx-0\\.5:only-child:not(#\\#){margin-inline:calc(var(--spacing)*-.5)}.only\\:rounded:only-child:not(#\\#){border-radius:.25rem}.only\\:ring-1:only-child:not(#\\#){--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-within\\:border-input-error-border:focus-within:not(#\\#){border-color:var(--color-input-error-border)}.focus-within\\:border-input-focus-border:focus-within:not(#\\#){border-color:var(--color-input-focus-border)}.focus-within\\:border-input-warning-border:focus-within:not(#\\#){border-color:var(--color-input-warning-border)}.focus-within\\:border-positive:focus-within:not(#\\#){border-color:var(--color-positive)}@media(hover:hover){.hover\\:border-canvas-default:hover:not(#\\#){border-color:var(--color-canvas-default)}.hover\\:border-canvas-subtle:hover:not(#\\#){border-color:var(--color-canvas-subtle)}.hover\\:border-negative-hover:hover:not(#\\#){border-color:var(--color-negative-hover)}.hover\\:border-positive-hover:hover:not(#\\#){border-color:var(--color-positive-hover)}.hover\\:border-primary-hover:hover:not(#\\#){border-color:var(--color-primary-hover)}.hover\\:border-warning-hover:hover:not(#\\#){border-color:var(--color-warning-hover)}.hover\\:bg-canvas-default:hover:not(#\\#){background-color:var(--color-canvas-default)}.hover\\:bg-canvas-subtle:hover:not(#\\#){background-color:var(--color-canvas-subtle)}.hover\\:bg-grey-500:hover:not(#\\#){background-color:var(--color-grey-500)}.hover\\:bg-grey-700:hover:not(#\\#){background-color:var(--color-grey-700)}.hover\\:bg-input-option-hover-bg:hover:not(#\\#){background-color:var(--color-input-option-hover-bg)}.hover\\:bg-negative:hover:not(#\\#){background-color:var(--color-negative)}.hover\\:bg-negative-hover:hover:not(#\\#){background-color:var(--color-negative-hover)}.hover\\:bg-positive:hover:not(#\\#){background-color:var(--color-positive)}.hover\\:bg-positive-hover:hover:not(#\\#){background-color:var(--color-positive-hover)}.hover\\:bg-primary:hover:not(#\\#){background-color:var(--color-primary)}.hover\\:bg-primary-600:hover:not(#\\#){background-color:var(--color-primary-600)}.hover\\:bg-primary-hover:hover:not(#\\#){background-color:var(--color-primary-hover)}.hover\\:bg-primary\\/20:hover:not(#\\#){background-color:var(--color-primary)}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-primary\\/20:hover:not(#\\#){background-color:color-mix(in oklab,var(--color-primary)20%,transparent)}}.hover\\:bg-transparent:hover:not(#\\#){background-color:#0000}.hover\\:bg-warning:hover:not(#\\#){background-color:var(--color-warning)}.hover\\:bg-warning-hover:hover:not(#\\#){background-color:var(--color-warning-hover)}.hover\\:text-body:hover:not(#\\#){color:var(--color-body)}.hover\\:text-button-text:hover:not(#\\#){color:var(--color-button-text)}.hover\\:text-grey-200:hover:not(#\\#){color:var(--color-grey-200)}.hover\\:text-negative-400:hover:not(#\\#){color:var(--color-negative-400)}.hover\\:text-positive-400:hover:not(#\\#){color:var(--color-positive-400)}.hover\\:text-positive-text:hover:not(#\\#){color:var(--color-positive-text)}.hover\\:text-primary:hover:not(#\\#){color:var(--color-primary)}.hover\\:text-primary-hover:hover:not(#\\#){color:var(--color-primary-hover)}.hover\\:text-tab-active-fg:hover:not(#\\#){color:var(--color-tab-active-fg)}.hover\\:decoration-current:hover:not(#\\#){text-decoration-color:currentColor}}.focus\\:bg-transparent:focus:not(#\\#){background-color:#0000}.focus\\:ring-2:focus:not(#\\#){--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\\:ring-negative:focus:not(#\\#){--tw-ring-color:var(--color-negative)}.focus\\:ring-positive:focus:not(#\\#){--tw-ring-color:var(--color-positive)}.focus\\:ring-primary:focus:not(#\\#){--tw-ring-color:var(--color-primary)}.focus\\:ring-warning:focus:not(#\\#){--tw-ring-color:var(--color-warning)}.focus\\:ring-offset-0:focus:not(#\\#){--tw-ring-offset-width:0px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus\\:ring-offset-2:focus:not(#\\#){--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus\\:outline-hidden:focus:not(#\\#){--tw-outline-style:none;outline-style:none}@media(forced-colors:active){.focus\\:outline-hidden:focus:not(#\\#){outline-offset:2px;outline:2px solid #0000}}.focus-visible\\:ring-2:focus-visible:not(#\\#){--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\\:ring-primary:focus-visible:not(#\\#){--tw-ring-color:var(--color-primary)}.focus-visible\\:ring-offset-2:focus-visible:not(#\\#){--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}:root:not(#\\#){--ws-primary-50:#f2ddff;--ws-primary-100:#edd0ff;--ws-primary-300:#d0acef;--ws-primary-400:#c190ea;--ws-primary-600:#935ebf;--ws-primary-800:#563374;--ws-primary-900:#381e4f;--ws-primary-950:#29133c;--ws-positive-50:#ecf9f2;--ws-positive-100:#d9f2e6;--ws-positive-300:#8ed9b3;--ws-positive-400:#68cd99;--ws-positive-700:#28734d;--ws-positive-800:#28734d;--ws-positive-900:#0d261a;--ws-positive-950:#07130d;--ws-warning-50:#fff7e6;--ws-warning-100:#ffefcc;--ws-warning-300:#fed066;--ws-warning-400:#fdc133;--ws-warning-700:#986a00;--ws-warning-800:#654700;--ws-warning-900:#332300;--ws-warning-950:#191200;--ws-negative-50:#feeeee;--ws-negative-100:#fcdcdc;--ws-negative-300:#f69797;--ws-negative-400:#f37575;--ws-negative-700:#9a3232;--ws-negative-800:#6e2222;--ws-negative-900:#431212;--ws-negative-950:#2e0a0a;--ws-grey-300:#535353;--ws-grey-400:#484848;--ws-grey-600:#3f3f3f;--ws-palette-primary-200:#e0c7f5;--ws-palette-primary-500:#b174e5;--ws-palette-primary-700:#75499a;--ws-button-bg:var(--vscode-button-background,var(--theia-button-background,var(--ws-palette-primary-500)));--ws-button-fg:var(--vscode-button-foreground,var(--theia-button-foreground,var(--ws-palette-white)));--ws-primary-default:var(--ws-button-bg);--ws-button-text:var(--ws-button-fg);--ws-primary-hover:var(--vscode-button-hoverBackground,var(--theia-button-hoverBackground,var(--ws-palette-primary-700)));--ws-primary-light:var(--vscode-editorInfo-foreground,var(--theia-button-secondaryForeground,var(--ws-palette-primary-200)));--ws-primary-dark:var(--vscode-editor-lineHighlightBackground,var(--theia-button-secondaryBackground,var(--ws-palette-primary-700)));--ws-primary-200:var(--ws-primary-light);--ws-primary-500:var(--ws-primary-default);--ws-primary-700:var(--ws-primary-hover);--ws-palette-positive-200:#b3e6cc;--ws-palette-positive-500:#42c080;--ws-palette-positive-600:#359a66;--ws-positive-dark:var(--vscode-gitDecoration-addedResourceForeground,var(--ws-palette-positive-600));--ws-positive-hover:var(--ws-positive-dark);--ws-positive-bg:var(--ws-palette-positive-100);--ws-positive-light:var(--ws-palette-positive-200);--ws-positive-border:var(--ws-positive-500);--ws-positive-text:var(--ws-positive-500);--ws-positive-500:var(--vscode-testing-iconPassed,var(--ws-palette-positive-500));--ws-positive-200:var(--ws-positive-light);--ws-positive-600:var(--ws-positive-dark);--ws-palette-warning-200:#fee099;--ws-palette-warning-500:#fdb100;--ws-palette-warning-600:#ca8e00;--ws-warning-hover:var(--ws-warning-600);--ws-warning-text:var(--ws-warning-500);--ws-warning-border:var(--ws-warning-500);--ws-warning-500:var(--vscode-list-warningForeground,var(--ws-palette-warning-500));--ws-warning-bg:var(--vscode-inputValidation-warningBackground,var(--ws-palette-warning-500));--ws-warning-light:var(--vscode-inputValidation-warningBackground,var(--ws-palette-warning-200));--ws-warning-dark:var(--vscode-inputValidation-warningBackground,var(--ws-palette-warning-600));--ws-warning-200:var(--ws-warning-light);--ws-warning-600:var(--ws-warning-dark);--ws-palette-negative-200:#f9baba;--ws-palette-negative-500:#f05252;--ws-palette-negative-600:#c54242;--ws-negative-hover:var(--ws-negative-600);--ws-negative-text:var(--ws-negative-500);--ws-negative-500:var(--vscode-errorForeground,var(--ws-palette-negative-500));--ws-negative-light:var(--ws-palette-negative-200);--ws-negative-dark:var(--ws-palette-negative-600);--ws-negative-200:var(--ws-negative-light);--ws-negative-600:var(--ws-negative-dark);--ws-palette-white:#fff;--ws-palette-grey-50:#f1f5f9;--ws-palette-grey-100:#ccc;--ws-palette-grey-200:#888;--ws-palette-grey-300:#535353;--ws-palette-grey-400:#484848;--ws-palette-grey-500:#444;--ws-palette-grey-600:#3f3f3f;--ws-palette-grey-700:#393939;--ws-palette-grey-800:#383838;--ws-palette-grey-900:#262626;--ws-palette-grey-950:#151515;--ws-bg-default:var(--vscode-editor-background,var(--theia-editor-background,var(--ws-palette-white)));--ws-bg-foreground:var(--vscode-editor-foreground,var(--theia-editor-foreground,var(--ws-palette-grey-50)));--ws-grey-50:var(--ws-bg-foreground);--ws-grey-100:var(--vscode-panel-background,var(--theia-panel-background,var(--ws-palette-grey-100)));--ws-grey-200:var(--vscode-editor-background,var(--theia-editor-background,var(--ws-palette-grey-200)));--ws-grey-950:var(--vscode-panel-border,var(--theia-border-color,var(--ws-palette-grey-950)));--ws-grey-500:var(--vscode-descriptionForeground,var(--ws-palette-grey-500));--ws-grey-800:var(--vscode-descriptionForeground,var(--ws-palette-grey-800));--ws-card-bg:var(--vscode-editorGroupHeader-tabsBackground,var(--theia-editorGroupHeader-tabsBackground,var(--ws-palette-grey-900)));--ws-card-border:var(--vscode-editorGroupHeader-tabsBorder,var(--theia-editorGroupHeader-tabsBorder,var(--ws-palette-grey-50)));--ws-palette-input-bg:var(--ws-palette-grey-300);--ws-palette-input-border:var(--ws-palette-grey-300);--ws-palette-input-text:var(--ws-palette-grey-50);--ws-palette-input-placeholder:var(--ws-palette-grey-200);--ws-palette-input-focus-border:var(--ws-palette-grey-50);--ws-input-bg:var(--vscode-input-background,var(--vscode-editorWidget-background,var(--theia-input-background,var(--ws-palette-input-bg))));--ws-input-border:var(--vscode-input-border,var(--vscode-panel-border,var(--theia-input-border,var(--ws-palette-input-border))));--ws-input-text:var(--vscode-input-foreground,var(--vscode-editor-foreground,var(--theia-input-foreground,var(--ws-palette-input-text))));--ws-input-placeholder:var(--vscode-input-placeholderForeground,var(--vscode-editor-foreground,var(--theia-input-placeholderForeground,var(--ws-palette-input-placeholder))));--ws-input-focus-border:var(--vscode-focusBorder,var(--vscode-button-background,var(--theia-focusBorder,var(--ws-palette-primary-500))));--ws-select-bg:var(--vscode-dropdown-background,var(--vscode-editorWidget-background,var(--theia-dropdown-background,var(--ws-input-bg))));--ws-select-border:var(--vscode-dropdown-border,var(--vscode-panel-border,var(--theia-dropdown-border,var(--ws-input-border))));--ws-select-text:var(--vscode-dropdown-foreground,var(--vscode-editor-foreground,var(--theia-dropdown-foreground,var(--ws-input-text))));--ws-select-list-bg:var(--vscode-dropdown-listBackground,var(--vscode-editorWidget-background,var(--theia-editorWidget-background,var(--ws-palette-grey-900))));--ws-input-option-hover-bg:var(--vscode-list-hoverBackground,var(--vscode-button-hoverBackground,var(--theia-list-hoverBackground,var(--ws-palette-primary-700))));--ws-input-option-active-bg:var(--vscode-list-activeSelectionBackground,var(--theia-list-activeSelectionBackground,var(--ws-palette-primary-500)));--ws-input-option-active-text:var(--vscode-list-activeSelectionForeground,var(--theia-list-activeSelectionForeground,var(--ws-palette-white)));--ws-input-error-border:var(--vscode-inputValidation-errorBorder,var(--theia-inputValidation-errorBorder,var(--ws-palette-negative-500)));--ws-input-error-bg:var(--vscode-inputValidation-errorBackground,var(--theia-inputValidation-errorBackground,var(--ws-palette-negative-200)));--ws-input-warning-border:var(--vscode-inputValidation-warningBorder,var(--theia-inputValidation-warningBorder,var(--ws-palette-warning-500)));--ws-input-warning-bg:var(--vscode-inputValidation-warningBackground,var(--theia-inputValidation-warningBackground,var(--ws-palette-warning-200)));--ws-input-info-bg:var(--vscode-panel-background,var(--theia-inputValidation-infoBackground,var(--ws-palette-primary-200)));--ws-input-message-bg:var(--vscode-editor-lineHighlightBackground,var(--vscode-editorWidget-background,var(--theia-inputValidation-infoBackground,var(--ws-palette-primary-200))));--ws-input-message-text:var(--vscode-editorInfo-foreground,var(--vscode-editor-foreground,var(--theia-inputValidation-infoForeground,var(--ws-palette-primary-500))));--ws-inactive-text:var(--vscode-disabledForeground,var(--theia-disabled-foreground,var(--ws-palette-grey-200)));--ws-text-muted:var(--vscode-descriptionForeground,var(--vscode-editor-foreground,var(--theia-descriptionForeground,var(--ws-palette-grey-100))));--ws-disable-bg:var(--vscode-button-disabledBackground,var(--theia-button-disabledBackground,var(--ws-palette-grey-300)));--ws-disable-input:var(--vscode-button-disabledBackground,var(--theia-button-disabledBackground,var(--ws-palette-grey-200)));--ws-panel-0:var(--vscode-editor-background,var(--theia-editor-background,var(--ws-palette-grey-900)));--ws-panel-1:var(--vscode-sideBar-background,var(--vscode-panel-background,var(--theia-sideBar-background,var(--ws-palette-grey-700))));--ws-panel-2:var(--vscode-panel-background,var(--vscode-editor-background,var(--theia-panel-background,var(--ws-palette-grey-900))));--ws-panel-3:var(--vscode-editorGroupHeader-tabsBackground,var(--vscode-editorWidget-background,var(--theia-editorGroupHeader-tabsBackground,var(--ws-palette-grey-900))));--ws-panel-4:var(--vscode-editorWidget-background,var(--theia-editorWidget-background,var(--ws-palette-grey-300)));--ws-panel-5:var(--vscode-editorWidget-background,var(--theia-editorWidget-background,var(--ws-palette-grey-950)));--ws-panel-border-subtle:var(--vscode-panel-border,var(--vscode-tab-border,var(--theia-border-color,var(--ws-palette-grey-100))));--ws-panel-border-strong:var(--vscode-contrastBorder,var(--vscode-focusBorder,var(--theia-contrastBorder,var(--ws-palette-grey-300))));--ws-tab-bg-default:var(--vscode-editorGroupHeader-tabsBackground,var(--vscode-editorWidget-background,var(--ws-palette-grey-900)));--ws-tab-border:var(--vscode-tab-border,var(--vscode-editorGroupHeader-tabsBorder,var(--ws-palette-grey-950)));--ws-tab-active-bg:var(--vscode-tab-activeBackground,var(--ws-palette-grey-800));--ws-tab-active-fg:var(--vscode-tab-activeForeground,var(--vscode-editor-foreground,var(--ws-bg-foreground)));--ws-tab-inactive-bg:var(--vscode-tab-inactiveBackground,var(--ws-palette-grey-900));--ws-tab-inactive-fg:var(--vscode-tab-inactiveForeground,var(--vscode-descriptionForeground,var(--ws-palette-grey-200)));--ws-tab-hover-bg:var(--vscode-tab-hoverBackground,var(--vscode-toolbar-hoverBackground,var(--ws-palette-grey-700)));--ws-panel-header-bg:var(--vscode-sideBarSectionHeader-background,var(--vscode-editorGroupHeader-tabsBackground,var(--ws-palette-grey-800)));--ws-panel-header-fg:var(--vscode-sideBarSectionHeader-foreground,var(--vscode-editor-foreground,var(--ws-bg-foreground)));--ws-panel-bg:var(--vscode-panel-background,var(--vscode-editor-background,var(--ws-bg-default)));--ws-panel-border:var(--vscode-panel-border,var(--vscode-tab-border,var(--ws-palette-grey-950)));--ws-panel-title-active-border:var(--vscode-panelTitle-activeBorder,var(--vscode-focusBorder,var(--ws-palette-primary-500)));--ws-panel-title-active-fg:var(--vscode-panelTitle-activeForeground,var(--vscode-editor-foreground,var(--ws-bg-foreground)));--ws-panel-title-inactive-fg:var(--vscode-panelTitle-inactiveForeground,var(--vscode-descriptionForeground,var(--ws-palette-grey-100)))}.center-absolute:not(#\\#){--tw-translate-x: -50% ;--tw-translate-y: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y);transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,);position:absolute;top:50%;left:50%}.ws-group:hover .ws-checkbox-hover-target{opacity:1!important}.simplebar-scrollbar:not(#\\#):before{background-color:#ccc}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"<length-percentage>";inherits:false;initial-value:0%}@property --tw-gradient-via-position{syntax:"<length-percentage>";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"<length-percentage>";inherits:false;initial-value:100%}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@keyframes bounce{0%,to{animation-timing-function:cubic-bezier(.8,0,1,1);transform:translateY(-25%)}50%{animation-timing-function:cubic-bezier(0,0,.2,1);transform:none}}[data-simplebar]{position:relative;flex-direction:column;flex-wrap:wrap;justify-content:flex-start;align-content:flex-start;align-items:flex-start}.simplebar-wrapper{overflow:hidden;width:inherit;height:inherit;max-width:inherit;max-height:inherit}.simplebar-mask{direction:inherit;position:absolute;overflow:hidden;padding:0;margin:0;left:0;top:0;bottom:0;right:0;width:auto!important;height:auto!important;z-index:0}.simplebar-offset{direction:inherit!important;box-sizing:inherit!important;resize:none!important;position:absolute;top:0;left:0;bottom:0;right:0;padding:0;margin:0;-webkit-overflow-scrolling:touch}.simplebar-content-wrapper{direction:inherit;box-sizing:border-box!important;position:relative;display:block;height:100%;width:auto;max-width:100%;max-height:100%;overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.simplebar-content-wrapper::-webkit-scrollbar,.simplebar-hide-scrollbar::-webkit-scrollbar{display:none;width:0;height:0}.simplebar-content:after,.simplebar-content:before{content:" ";display:table}.simplebar-placeholder{max-height:100%;max-width:100%;width:100%;pointer-events:none}.simplebar-height-auto-observer-wrapper{box-sizing:inherit!important;height:100%;width:100%;max-width:1px;position:relative;float:left;max-height:1px;overflow:hidden;z-index:-1;padding:0;margin:0;pointer-events:none;flex-grow:inherit;flex-shrink:0;flex-basis:0}.simplebar-height-auto-observer{box-sizing:inherit;display:block;opacity:0;position:absolute;top:0;left:0;height:1000%;width:1000%;min-height:1px;min-width:1px;overflow:hidden;pointer-events:none;z-index:-1}.simplebar-track{z-index:1;position:absolute;right:0;bottom:0;pointer-events:none;overflow:hidden}[data-simplebar].simplebar-dragging,[data-simplebar].simplebar-dragging .simplebar-content{pointer-events:none;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}[data-simplebar].simplebar-dragging .simplebar-track{pointer-events:all}.simplebar-scrollbar{position:absolute;left:0;right:0;min-height:10px}.simplebar-scrollbar:before{position:absolute;content:"";background:#000;border-radius:7px;left:2px;right:2px;opacity:0;transition:opacity .2s .5s linear}.simplebar-scrollbar.simplebar-visible:before{opacity:.5;transition-delay:0s;transition-duration:0s}.simplebar-track.simplebar-vertical{top:0;width:11px}.simplebar-scrollbar:before{top:2px;bottom:2px;left:2px;right:2px}.simplebar-track.simplebar-horizontal{left:0;height:11px}.simplebar-track.simplebar-horizontal .simplebar-scrollbar{right:auto;left:0;top:0;bottom:0;min-height:0;min-width:10px;width:auto}[data-simplebar-direction=rtl] .simplebar-track.simplebar-vertical{right:auto;left:0}.simplebar-dummy-scrollbar-size{direction:rtl;position:fixed;opacity:0;visibility:hidden;height:500px;width:500px;overflow-y:hidden;overflow-x:scroll;-ms-overflow-style:scrollbar!important}.simplebar-dummy-scrollbar-size>div{width:200%;height:200%;margin:10px 0}.simplebar-hide-scrollbar{position:fixed;left:0;visibility:hidden;overflow-y:scroll;scrollbar-width:none;-ms-overflow-style:none}
|
|
5
|
-
`,document.head.prepend(e)}catch(e){console.error("vite-plugin-inject-css: failed to inject css",e)}})();const To=e=>b.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:b.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10Zm5.645-14.836a.5.5 0 0 0-.707-.034l-7.703 6.997-1.67-1.684a.5.5 0 0 0-.707-.003l-.71.704a.5.5 0 0 0-.003.707l2.386 2.408.266.292a.5.5 0 0 0 .42.162.498.498 0 0 0 .325-.144l.225-.223 8.516-7.736a.5.5 0 0 0 .034-.706l-.672-.74Z",fill:"currentColor"})}),sv=e=>b.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:b.jsx("path",{d:"M21.66 6.28a.5.5 0 0 0 0-.697l-.967-.993a.5.5 0 0 0-.716 0L8.499 16.373 4.023 11.78a.5.5 0 0 0-.716 0l-.967.993a.5.5 0 0 0 0 .697l5.889 6.046.014-.014a.377.377 0 0 0 .54 0L21.66 6.28Z",fill:"currentColor"})}),ov=e=>b.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:b.jsx("path",{d:"M10.84 2.714c0-.394.346-.714.773-.714h.774c.427 0 .773.32.773.714V9.5h5.025c.427 0 .773.32.773.714v3.572H5.042v-3.572c0-.394.346-.714.773-.714h5.025V2.714ZM5.042 14.5h13.916l1.034 6.685c.067.43-.295.815-.765.815h-2.1l-.681-5.929L15.764 22h-3.236l-.721-2.143L11.086 22h-2.85l-.682-3.929L6.872 22H4.773c-.47 0-.832-.385-.765-.815L5.042 14.5Z",fill:"currentColor"})}),Ra=e=>b.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:b.jsx("path",{d:"M4.497 5.361a.5.5 0 0 0 0 .707L10.429 12l-5.932 5.932a.5.5 0 0 0 0 .707l.864.864a.5.5 0 0 0 .707 0L12 13.571l5.932 5.932a.5.5 0 0 0 .707 0l.864-.864a.5.5 0 0 0 0-.707L13.571 12l5.932-5.932a.5.5 0 0 0 0-.707l-.864-.864a.5.5 0 0 0-.707 0L12 10.429 6.068 4.497a.5.5 0 0 0-.707 0l-.864.864Z",fill:"currentColor"})}),Ma=e=>b.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:b.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.071 19.071c3.905-3.905 3.905-10.237 0-14.142-3.905-3.905-10.237-3.905-14.142 0-3.905 3.905-3.905 10.237 0 14.142 3.905 3.905 10.237 3.905 14.142 0Zm-3.182-4.596a.5.5 0 0 1 0 .707l-.707.707a.5.5 0 0 1-.707 0L12 13.414 9.525 15.89a.5.5 0 0 1-.707 0l-.707-.707a.5.5 0 0 1 0-.707L10.586 12 8.11 9.525a.5.5 0 0 1 0-.707l.707-.707a.5.5 0 0 1 .707 0L12 10.586l2.475-2.475a.5.5 0 0 1 .707 0l.707.707a.5.5 0 0 1 0 .707L13.414 12l2.475 2.475Z",fill:"currentColor"})}),Fh=e=>b.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:b.jsx("path",{d:"M11.701 18.797c.206.195.52.195.726 0l2.487-2.349-.008-.007 6.973-6.585a.58.58 0 0 0 0-.835l-2.045-1.932a.524.524 0 0 0-.726 0l-7.052 6.66-7.051-6.66a.524.524 0 0 0-.726 0L2.234 9.021a.58.58 0 0 0 0 .835l9.467 8.941Z",fill:"currentColor"})}),La=e=>b.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:[b.jsx("path",{d:"M11.559 15.76a.527.527 0 0 0 .883 0l4.477-6.975A.512.512 0 0 0 16.477 8H14V2.5a.5.5 0 0 0-.5-.5h-3a.5.5 0 0 0-.5.5V8H7.523c-.411 0-.66.444-.442.785l4.478 6.976Z",fill:"currentColor"}),b.jsx("path",{d:"M2.5 14a.5.5 0 0 0-.5.5V20a1 1 0 0 0 1 1h18a1 1 0 0 0 1-1v-5.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5V19H4v-4.5a.5.5 0 0 0-.5-.5h-1Z",fill:"currentColor"})]}),Oo=e=>b.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:b.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 21c5.523 0 10-4.477 10-10S16.523 1 11 1 1 5.477 1 11s4.477 10 10 10Zm0-14a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm1 1.5a.5.5 0 0 0-.5-.5h-2a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h.5v4h-.5a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h3a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5H12V8.5Z",fill:"currentColor"})}),jh=e=>b.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:b.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.02 4.5a.5.5 0 0 1 .499-.5h.999a.5.5 0 0 1 .499.5V5h5.493a.5.5 0 0 1 .5.5V6a.5.5 0 0 1-.5.5h-1.738c-.023 1.62-.52 3.81-1.938 5.766a9.83 9.83 0 0 1-.701.86c.905.807 2.069 1.546 3.557 2.157a.53.53 0 0 1 .082.042L16.152 9h1.725L22 20h-1.577l-.92-2.46H14.51L13.59 20h-1.577l1.236-3.286a.486.486 0 0 1-.084-.026c-1.715-.698-3.07-1.566-4.128-2.532-1.54 1.243-3.64 2.19-6.443 2.536a.49.49 0 0 1-.544-.443l-.048-.498a.513.513 0 0 1 .45-.553c2.452-.309 4.245-1.112 5.546-2.132a9.933 9.933 0 0 1-1.91-3.624.477.477 0 0 1 .47-.603h.596c.217 0 .405.142.459.353.054.213.115.453.148.538a8.427 8.427 0 0 0 1.333 2.31c.192-.215.367-.434.528-.656A8.793 8.793 0 0 0 11.275 6.5h-8.75a.5.5 0 0 1-.5-.5v-.5a.5.5 0 0 1 .5-.5H7.02v-.5Zm9.986 6.278 2.07 5.587h-4.14l2.07-5.587Z",fill:"currentColor"})}),zh=e=>b.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:[b.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.7 6.7v13.6h13.6v-8.925c0-.235.19-.425.425-.425h.85c.235 0 .425.19.425.425v9.775c0 .47-.38.85-.85.85H2.85a.85.85 0 0 1-.85-.85V5.85c0-.47.38-.85.85-.85h9.775c.235 0 .425.19.425.425v.85c0 .235-.19.425-.425.425H3.7Z",fill:"currentColor"}),b.jsx("path",{d:"M21.435 2.01a.468.468 0 0 1 .554.555L20.42 9.757a.454.454 0 0 1-.77.215l-1.555-1.555-3.453 3.453a.444.444 0 0 1-.628 0L12.13 9.986a.444.444 0 0 1 0-.628l3.453-3.453-1.555-1.555a.454.454 0 0 1 .215-.77l7.192-1.57Z",fill:"currentColor"})]}),Vh=e=>b.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:b.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m19 10 1.965-1.964a3.536 3.536 0 0 0-5-5L14 5l5 5Zm-1 1-5-5L2.146 16.854a.5.5 0 0 0-.146.353V21.5a.5.5 0 0 0 .5.5h4.293a.5.5 0 0 0 .353-.146L18 11Z",fill:"currentColor"})}),Po=e=>b.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:b.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10Zm1-5.5a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5V13H7.5a.5.5 0 0 1-.5-.5v-1a.5.5 0 0 1 .5-.5H11V7.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5V11h3.5a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5H13v3.5Z",fill:"currentColor"})}),lv=e=>b.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:b.jsx("path",{d:"M20.673 5.133c.136.24.053.55-.185.69l-16.25 9.623a.487.487 0 0 1-.676-.18l-.497-.884a.513.513 0 0 1 .185-.69L19.5 4.069c.238-.141.54-.06.676.18l.497.884ZM20.938 9.657c.136.24.053.55-.185.69L7.925 17.944a.487.487 0 0 1-.676-.181l-.497-.884a.513.513 0 0 1 .185-.69l12.829-7.597c.237-.14.54-.06.675.181l.497.884ZM20.16 15.376c.237-.14.32-.45.184-.69l-.497-.884a.487.487 0 0 0-.676-.18l-7.695 4.556a.513.513 0 0 0-.185.69l.498.884c.135.24.437.322.675.181l7.695-4.557Z",fill:"currentColor"})}),Bh=e=>b.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:b.jsx("path",{d:"M9 3a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v1h6.5a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-19a.5.5 0 0 1-.5-.5v-1a.5.5 0 0 1 .5-.5H9V3ZM4 7h16l-.934 14.071a1 1 0 0 1-.997.929H5.93a1 1 0 0 1-.997-.929L4 7Z",fill:"currentColor"})}),uv=e=>b.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:[b.jsx("path",{d:"M2.5 14a.5.5 0 0 0-.5.5V20a1 1 0 0 0 1 1h18a1 1 0 0 0 1-1v-5.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5V19H4v-4.5a.5.5 0 0 0-.5-.5h-1Z",fill:"currentColor"}),b.jsx("path",{d:"M12.441 3.24a.527.527 0 0 0-.883 0l-4.477 6.975c-.219.341.031.785.442.785H10v5.5a.5.5 0 0 0 .5.5h3a.5.5 0 0 0 .5-.5V11h2.477c.411 0 .66-.444.442-.785L12.44 3.24Z",fill:"currentColor"})]}),cv=(e,t)=>{const n=new Array(e.length+t.length);for(let i=0;i<e.length;i++)n[i]=e[i];for(let i=0;i<t.length;i++)n[e.length+i]=t[i];return n},hv=(e,t)=>({classGroupId:e,validator:t}),Hh=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),da="-",gu=[],dv="arbitrary..",pv=e=>{const t=gv(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:i}=e;return{getClassGroupId:r=>{if(r.startsWith("[")&&r.endsWith("]"))return fv(r);const a=r.split(da),s=a[0]===""&&a.length>1?1:0;return Kh(a,s,t)},getConflictingClassGroupIds:(r,a)=>{if(a){const s=i[r],l=n[r];return s?l?cv(l,s):s:l||gu}return n[r]||gu}}},Kh=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const i=e[t],r=n.nextPart.get(i);if(r){const u=Kh(e,t+1,r);if(u)return u}const a=n.validators;if(a===null)return;const s=t===0?e.join(da):e.slice(t).join(da),l=a.length;for(let u=0;u<l;u++){const c=a[u];if(c.validator(s))return c.classGroupId}},fv=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),i=t.slice(0,n);return i?dv+i:void 0})(),gv=e=>{const{theme:t,classGroups:n}=e;return mv(n,t)},mv=(e,t)=>{const n=Hh();for(const i in e){const r=e[i];Ro(r,n,i,t)}return n},Ro=(e,t,n,i)=>{const r=e.length;for(let a=0;a<r;a++){const s=e[a];vv(s,t,n,i)}},vv=(e,t,n,i)=>{if(typeof e=="string"){xv(e,t,n);return}if(typeof e=="function"){bv(e,t,n,i);return}yv(e,t,n,i)},xv=(e,t,n)=>{const i=e===""?t:Wh(t,e);i.classGroupId=n},bv=(e,t,n,i)=>{if(wv(e)){Ro(e(i),t,n,i);return}t.validators===null&&(t.validators=[]),t.validators.push(hv(n,e))},yv=(e,t,n,i)=>{const r=Object.entries(e),a=r.length;for(let s=0;s<a;s++){const[l,u]=r[s];Ro(u,Wh(t,l),n,i)}},Wh=(e,t)=>{let n=e;const i=t.split(da),r=i.length;for(let a=0;a<r;a++){const s=i[a];let l=n.nextPart.get(s);l||(l=Hh(),n.nextPart.set(s,l)),n=l}return n},wv=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,kv=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),i=Object.create(null);const r=(a,s)=>{n[a]=s,t++,t>e&&(t=0,i=n,n=Object.create(null))};return{get(a){let s=n[a];if(s!==void 0)return s;if((s=i[a])!==void 0)return r(a,s),s},set(a,s){a in n?n[a]=s:r(a,s)}}},Qs="!",mu=":",Sv=[],vu=(e,t,n,i,r)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:i,isExternal:r}),Ev=e=>{const{prefix:t,experimentalParseClassName:n}=e;let i=r=>{const a=[];let s=0,l=0,u=0,c;const d=r.length;for(let x=0;x<d;x++){const w=r[x];if(s===0&&l===0){if(w===mu){a.push(r.slice(u,x)),u=x+1;continue}if(w==="/"){c=x;continue}}w==="["?s++:w==="]"?s--:w==="("?l++:w===")"&&l--}const p=a.length===0?r:r.slice(u);let g=p,m=!1;p.endsWith(Qs)?(g=p.slice(0,-1),m=!0):p.startsWith(Qs)&&(g=p.slice(1),m=!0);const C=c&&c>u?c-u:void 0;return vu(a,m,g,C)};if(t){const r=t+mu,a=i;i=s=>s.startsWith(r)?a(s.slice(r.length)):vu(Sv,!1,s,void 0,!0)}if(n){const r=i;i=a=>n({className:a,parseClassName:r})}return i},Cv=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,i)=>{t.set(n,1e6+i)}),n=>{const i=[];let r=[];for(let a=0;a<n.length;a++){const s=n[a],l=s[0]==="[",u=t.has(s);l||u?(r.length>0&&(r.sort(),i.push(...r),r=[]),i.push(s)):r.push(s)}return r.length>0&&(r.sort(),i.push(...r)),i}},Iv=e=>({cache:kv(e.cacheSize),parseClassName:Ev(e),sortModifiers:Cv(e),...pv(e)}),_v=/\s+/,Av=(e,t)=>{const{parseClassName:n,getClassGroupId:i,getConflictingClassGroupIds:r,sortModifiers:a}=t,s=[],l=e.trim().split(_v);let u="";for(let c=l.length-1;c>=0;c-=1){const d=l[c],{isExternal:p,modifiers:g,hasImportantModifier:m,baseClassName:C,maybePostfixModifierPosition:x}=n(d);if(p){u=d+(u.length>0?" "+u:u);continue}let w=!!x,S=i(w?C.substring(0,x):C);if(!S){if(!w){u=d+(u.length>0?" "+u:u);continue}if(S=i(C),!S){u=d+(u.length>0?" "+u:u);continue}w=!1}const k=g.length===0?"":g.length===1?g[0]:a(g).join(":"),E=m?k+Qs:k,A=E+S;if(s.indexOf(A)>-1)continue;s.push(A);const y=r(S,w);for(let f=0;f<y.length;++f){const T=y[f];s.push(E+T)}u=d+(u.length>0?" "+u:u)}return u},Nv=(...e)=>{let t=0,n,i,r="";for(;t<e.length;)(n=e[t++])&&(i=Uh(n))&&(r&&(r+=" "),r+=i);return r},Uh=e=>{if(typeof e=="string")return e;let t,n="";for(let i=0;i<e.length;i++)e[i]&&(t=Uh(e[i]))&&(n&&(n+=" "),n+=t);return n},xu=(e,...t)=>{let n,i,r,a;const s=u=>{const c=t.reduce((d,p)=>p(d),e());return n=Iv(c),i=n.cache.get,r=n.cache.set,a=l,l(u)},l=u=>{const c=i(u);if(c)return c;const d=Av(u,n);return r(u,d),d};return a=s,(...u)=>a(Nv(...u))},Tv=[],gt=e=>{const t=n=>n[e]||Tv;return t.isThemeGetter=!0,t},qh=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Gh=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Ov=/^\d+\/\d+$/,Pv=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Rv=/\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$/,Mv=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Lv=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Dv=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,bi=e=>Ov.test(e),He=e=>!!e&&!Number.isNaN(Number(e)),Fn=e=>!!e&&Number.isInteger(Number(e)),as=e=>e.endsWith("%")&&He(e.slice(0,-1)),Tn=e=>Pv.test(e),Fv=()=>!0,jv=e=>Rv.test(e)&&!Mv.test(e),$h=()=>!1,zv=e=>Lv.test(e),Vv=e=>Dv.test(e),Bv=e=>!_e(e)&&!Ae(e),Hv=e=>Fi(e,Zh,$h),_e=e=>qh.test(e),ei=e=>Fi(e,Xh,jv),ss=e=>Fi(e,Gv,He),bu=e=>Fi(e,Jh,$h),Kv=e=>Fi(e,Yh,Vv),Nr=e=>Fi(e,Qh,zv),Ae=e=>Gh.test(e),qi=e=>ji(e,Xh),Wv=e=>ji(e,$v),yu=e=>ji(e,Jh),Uv=e=>ji(e,Zh),qv=e=>ji(e,Yh),Tr=e=>ji(e,Qh,!0),Fi=(e,t,n)=>{const i=qh.exec(e);return i?i[1]?t(i[1]):n(i[2]):!1},ji=(e,t,n=!1)=>{const i=Gh.exec(e);return i?i[1]?t(i[1]):n:!1},Jh=e=>e==="position"||e==="percentage",Yh=e=>e==="image"||e==="url",Zh=e=>e==="length"||e==="size"||e==="bg-size",Xh=e=>e==="length",Gv=e=>e==="number",$v=e=>e==="family-name",Qh=e=>e==="shadow",wu=()=>{const e=gt("color"),t=gt("font"),n=gt("text"),i=gt("font-weight"),r=gt("tracking"),a=gt("leading"),s=gt("breakpoint"),l=gt("container"),u=gt("spacing"),c=gt("radius"),d=gt("shadow"),p=gt("inset-shadow"),g=gt("text-shadow"),m=gt("drop-shadow"),C=gt("blur"),x=gt("perspective"),w=gt("aspect"),S=gt("ease"),k=gt("animate"),E=()=>["auto","avoid","all","avoid-page","page","left","right","column"],A=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],y=()=>[...A(),Ae,_e],f=()=>["auto","hidden","clip","visible","scroll"],T=()=>["auto","contain","none"],R=()=>[Ae,_e,u],F=()=>[bi,"full","auto",...R()],D=()=>[Fn,"none","subgrid",Ae,_e],q=()=>["auto",{span:["full",Fn,Ae,_e]},Fn,Ae,_e],J=()=>[Fn,"auto",Ae,_e],K=()=>["auto","min","max","fr",Ae,_e],j=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ae=()=>["start","end","center","stretch","center-safe","end-safe"],Z=()=>["auto",...R()],se=()=>[bi,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...R()],ee=()=>[e,Ae,_e],pe=()=>[...A(),yu,bu,{position:[Ae,_e]}],I=()=>["no-repeat",{repeat:["","x","y","space","round"]}],V=()=>["auto","cover","contain",Uv,Hv,{size:[Ae,_e]}],te=()=>[as,qi,ei],O=()=>["","none","full",c,Ae,_e],$=()=>["",He,qi,ei],z=()=>["solid","dashed","dotted","double"],B=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],U=()=>[He,as,yu,bu],ie=()=>["","none",C,Ae,_e],oe=()=>["none",He,Ae,_e],G=()=>["none",He,Ae,_e],ne=()=>[He,Ae,_e],H=()=>[bi,"full",...R()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Tn],breakpoint:[Tn],color:[Fv],container:[Tn],"drop-shadow":[Tn],ease:["in","out","in-out"],font:[Bv],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Tn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Tn],shadow:[Tn],spacing:["px",He],text:[Tn],"text-shadow":[Tn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",bi,_e,Ae,w]}],container:["container"],columns:[{columns:[He,_e,Ae,l]}],"break-after":[{"break-after":E()}],"break-before":[{"break-before":E()}],"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"],sr:["sr-only","not-sr-only"],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:y()}],overflow:[{overflow:f()}],"overflow-x":[{"overflow-x":f()}],"overflow-y":[{"overflow-y":f()}],overscroll:[{overscroll:T()}],"overscroll-x":[{"overscroll-x":T()}],"overscroll-y":[{"overscroll-y":T()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:F()}],"inset-x":[{"inset-x":F()}],"inset-y":[{"inset-y":F()}],start:[{start:F()}],end:[{end:F()}],top:[{top:F()}],right:[{right:F()}],bottom:[{bottom:F()}],left:[{left:F()}],visibility:["visible","invisible","collapse"],z:[{z:[Fn,"auto",Ae,_e]}],basis:[{basis:[bi,"full","auto",l,...R()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[He,bi,"auto","initial","none",_e]}],grow:[{grow:["",He,Ae,_e]}],shrink:[{shrink:["",He,Ae,_e]}],order:[{order:[Fn,"first","last","none",Ae,_e]}],"grid-cols":[{"grid-cols":D()}],"col-start-end":[{col:q()}],"col-start":[{"col-start":J()}],"col-end":[{"col-end":J()}],"grid-rows":[{"grid-rows":D()}],"row-start-end":[{row:q()}],"row-start":[{"row-start":J()}],"row-end":[{"row-end":J()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":K()}],"auto-rows":[{"auto-rows":K()}],gap:[{gap:R()}],"gap-x":[{"gap-x":R()}],"gap-y":[{"gap-y":R()}],"justify-content":[{justify:[...j(),"normal"]}],"justify-items":[{"justify-items":[...ae(),"normal"]}],"justify-self":[{"justify-self":["auto",...ae()]}],"align-content":[{content:["normal",...j()]}],"align-items":[{items:[...ae(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ae(),{baseline:["","last"]}]}],"place-content":[{"place-content":j()}],"place-items":[{"place-items":[...ae(),"baseline"]}],"place-self":[{"place-self":["auto",...ae()]}],p:[{p:R()}],px:[{px:R()}],py:[{py:R()}],ps:[{ps:R()}],pe:[{pe:R()}],pt:[{pt:R()}],pr:[{pr:R()}],pb:[{pb:R()}],pl:[{pl:R()}],m:[{m:Z()}],mx:[{mx:Z()}],my:[{my:Z()}],ms:[{ms:Z()}],me:[{me:Z()}],mt:[{mt:Z()}],mr:[{mr:Z()}],mb:[{mb:Z()}],ml:[{ml:Z()}],"space-x":[{"space-x":R()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":R()}],"space-y-reverse":["space-y-reverse"],size:[{size:se()}],w:[{w:[l,"screen",...se()]}],"min-w":[{"min-w":[l,"screen","none",...se()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[s]},...se()]}],h:[{h:["screen","lh",...se()]}],"min-h":[{"min-h":["screen","lh","none",...se()]}],"max-h":[{"max-h":["screen","lh",...se()]}],"font-size":[{text:["base",n,qi,ei]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,Ae,ss]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",as,_e]}],"font-family":[{font:[Wv,_e,t]}],"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:[r,Ae,_e]}],"line-clamp":[{"line-clamp":[He,"none",Ae,ss]}],leading:[{leading:[a,...R()]}],"list-image":[{"list-image":["none",Ae,_e]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Ae,_e]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:ee()}],"text-color":[{text:ee()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...z(),"wavy"]}],"text-decoration-thickness":[{decoration:[He,"from-font","auto",Ae,ei]}],"text-decoration-color":[{decoration:ee()}],"underline-offset":[{"underline-offset":[He,"auto",Ae,_e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:R()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Ae,_e]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Ae,_e]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:pe()}],"bg-repeat":[{bg:I()}],"bg-size":[{bg:V()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Fn,Ae,_e],radial:["",Ae,_e],conic:[Fn,Ae,_e]},qv,Kv]}],"bg-color":[{bg:ee()}],"gradient-from-pos":[{from:te()}],"gradient-via-pos":[{via:te()}],"gradient-to-pos":[{to:te()}],"gradient-from":[{from:ee()}],"gradient-via":[{via:ee()}],"gradient-to":[{to:ee()}],rounded:[{rounded:O()}],"rounded-s":[{"rounded-s":O()}],"rounded-e":[{"rounded-e":O()}],"rounded-t":[{"rounded-t":O()}],"rounded-r":[{"rounded-r":O()}],"rounded-b":[{"rounded-b":O()}],"rounded-l":[{"rounded-l":O()}],"rounded-ss":[{"rounded-ss":O()}],"rounded-se":[{"rounded-se":O()}],"rounded-ee":[{"rounded-ee":O()}],"rounded-es":[{"rounded-es":O()}],"rounded-tl":[{"rounded-tl":O()}],"rounded-tr":[{"rounded-tr":O()}],"rounded-br":[{"rounded-br":O()}],"rounded-bl":[{"rounded-bl":O()}],"border-w":[{border:$()}],"border-w-x":[{"border-x":$()}],"border-w-y":[{"border-y":$()}],"border-w-s":[{"border-s":$()}],"border-w-e":[{"border-e":$()}],"border-w-t":[{"border-t":$()}],"border-w-r":[{"border-r":$()}],"border-w-b":[{"border-b":$()}],"border-w-l":[{"border-l":$()}],"divide-x":[{"divide-x":$()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":$()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...z(),"hidden","none"]}],"divide-style":[{divide:[...z(),"hidden","none"]}],"border-color":[{border:ee()}],"border-color-x":[{"border-x":ee()}],"border-color-y":[{"border-y":ee()}],"border-color-s":[{"border-s":ee()}],"border-color-e":[{"border-e":ee()}],"border-color-t":[{"border-t":ee()}],"border-color-r":[{"border-r":ee()}],"border-color-b":[{"border-b":ee()}],"border-color-l":[{"border-l":ee()}],"divide-color":[{divide:ee()}],"outline-style":[{outline:[...z(),"none","hidden"]}],"outline-offset":[{"outline-offset":[He,Ae,_e]}],"outline-w":[{outline:["",He,qi,ei]}],"outline-color":[{outline:ee()}],shadow:[{shadow:["","none",d,Tr,Nr]}],"shadow-color":[{shadow:ee()}],"inset-shadow":[{"inset-shadow":["none",p,Tr,Nr]}],"inset-shadow-color":[{"inset-shadow":ee()}],"ring-w":[{ring:$()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:ee()}],"ring-offset-w":[{"ring-offset":[He,ei]}],"ring-offset-color":[{"ring-offset":ee()}],"inset-ring-w":[{"inset-ring":$()}],"inset-ring-color":[{"inset-ring":ee()}],"text-shadow":[{"text-shadow":["none",g,Tr,Nr]}],"text-shadow-color":[{"text-shadow":ee()}],opacity:[{opacity:[He,Ae,_e]}],"mix-blend":[{"mix-blend":[...B(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":B()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[He]}],"mask-image-linear-from-pos":[{"mask-linear-from":U()}],"mask-image-linear-to-pos":[{"mask-linear-to":U()}],"mask-image-linear-from-color":[{"mask-linear-from":ee()}],"mask-image-linear-to-color":[{"mask-linear-to":ee()}],"mask-image-t-from-pos":[{"mask-t-from":U()}],"mask-image-t-to-pos":[{"mask-t-to":U()}],"mask-image-t-from-color":[{"mask-t-from":ee()}],"mask-image-t-to-color":[{"mask-t-to":ee()}],"mask-image-r-from-pos":[{"mask-r-from":U()}],"mask-image-r-to-pos":[{"mask-r-to":U()}],"mask-image-r-from-color":[{"mask-r-from":ee()}],"mask-image-r-to-color":[{"mask-r-to":ee()}],"mask-image-b-from-pos":[{"mask-b-from":U()}],"mask-image-b-to-pos":[{"mask-b-to":U()}],"mask-image-b-from-color":[{"mask-b-from":ee()}],"mask-image-b-to-color":[{"mask-b-to":ee()}],"mask-image-l-from-pos":[{"mask-l-from":U()}],"mask-image-l-to-pos":[{"mask-l-to":U()}],"mask-image-l-from-color":[{"mask-l-from":ee()}],"mask-image-l-to-color":[{"mask-l-to":ee()}],"mask-image-x-from-pos":[{"mask-x-from":U()}],"mask-image-x-to-pos":[{"mask-x-to":U()}],"mask-image-x-from-color":[{"mask-x-from":ee()}],"mask-image-x-to-color":[{"mask-x-to":ee()}],"mask-image-y-from-pos":[{"mask-y-from":U()}],"mask-image-y-to-pos":[{"mask-y-to":U()}],"mask-image-y-from-color":[{"mask-y-from":ee()}],"mask-image-y-to-color":[{"mask-y-to":ee()}],"mask-image-radial":[{"mask-radial":[Ae,_e]}],"mask-image-radial-from-pos":[{"mask-radial-from":U()}],"mask-image-radial-to-pos":[{"mask-radial-to":U()}],"mask-image-radial-from-color":[{"mask-radial-from":ee()}],"mask-image-radial-to-color":[{"mask-radial-to":ee()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":A()}],"mask-image-conic-pos":[{"mask-conic":[He]}],"mask-image-conic-from-pos":[{"mask-conic-from":U()}],"mask-image-conic-to-pos":[{"mask-conic-to":U()}],"mask-image-conic-from-color":[{"mask-conic-from":ee()}],"mask-image-conic-to-color":[{"mask-conic-to":ee()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:pe()}],"mask-repeat":[{mask:I()}],"mask-size":[{mask:V()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Ae,_e]}],filter:[{filter:["","none",Ae,_e]}],blur:[{blur:ie()}],brightness:[{brightness:[He,Ae,_e]}],contrast:[{contrast:[He,Ae,_e]}],"drop-shadow":[{"drop-shadow":["","none",m,Tr,Nr]}],"drop-shadow-color":[{"drop-shadow":ee()}],grayscale:[{grayscale:["",He,Ae,_e]}],"hue-rotate":[{"hue-rotate":[He,Ae,_e]}],invert:[{invert:["",He,Ae,_e]}],saturate:[{saturate:[He,Ae,_e]}],sepia:[{sepia:["",He,Ae,_e]}],"backdrop-filter":[{"backdrop-filter":["","none",Ae,_e]}],"backdrop-blur":[{"backdrop-blur":ie()}],"backdrop-brightness":[{"backdrop-brightness":[He,Ae,_e]}],"backdrop-contrast":[{"backdrop-contrast":[He,Ae,_e]}],"backdrop-grayscale":[{"backdrop-grayscale":["",He,Ae,_e]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[He,Ae,_e]}],"backdrop-invert":[{"backdrop-invert":["",He,Ae,_e]}],"backdrop-opacity":[{"backdrop-opacity":[He,Ae,_e]}],"backdrop-saturate":[{"backdrop-saturate":[He,Ae,_e]}],"backdrop-sepia":[{"backdrop-sepia":["",He,Ae,_e]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":R()}],"border-spacing-x":[{"border-spacing-x":R()}],"border-spacing-y":[{"border-spacing-y":R()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Ae,_e]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[He,"initial",Ae,_e]}],ease:[{ease:["linear","initial",S,Ae,_e]}],delay:[{delay:[He,Ae,_e]}],animate:[{animate:["none",k,Ae,_e]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[x,Ae,_e]}],"perspective-origin":[{"perspective-origin":y()}],rotate:[{rotate:oe()}],"rotate-x":[{"rotate-x":oe()}],"rotate-y":[{"rotate-y":oe()}],"rotate-z":[{"rotate-z":oe()}],scale:[{scale:G()}],"scale-x":[{"scale-x":G()}],"scale-y":[{"scale-y":G()}],"scale-z":[{"scale-z":G()}],"scale-3d":["scale-3d"],skew:[{skew:ne()}],"skew-x":[{"skew-x":ne()}],"skew-y":[{"skew-y":ne()}],transform:[{transform:[Ae,_e,"","none","gpu","cpu"]}],"transform-origin":[{origin:y()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:H()}],"translate-x":[{"translate-x":H()}],"translate-y":[{"translate-y":H()}],"translate-z":[{"translate-z":H()}],"translate-none":["translate-none"],accent:[{accent:ee()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:ee()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],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",Ae,_e]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":R()}],"scroll-mx":[{"scroll-mx":R()}],"scroll-my":[{"scroll-my":R()}],"scroll-ms":[{"scroll-ms":R()}],"scroll-me":[{"scroll-me":R()}],"scroll-mt":[{"scroll-mt":R()}],"scroll-mr":[{"scroll-mr":R()}],"scroll-mb":[{"scroll-mb":R()}],"scroll-ml":[{"scroll-ml":R()}],"scroll-p":[{"scroll-p":R()}],"scroll-px":[{"scroll-px":R()}],"scroll-py":[{"scroll-py":R()}],"scroll-ps":[{"scroll-ps":R()}],"scroll-pe":[{"scroll-pe":R()}],"scroll-pt":[{"scroll-pt":R()}],"scroll-pr":[{"scroll-pr":R()}],"scroll-pb":[{"scroll-pb":R()}],"scroll-pl":[{"scroll-pl":R()}],"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",Ae,_e]}],fill:[{fill:["none",...ee()]}],"stroke-w":[{stroke:[He,qi,ei,ss]}],stroke:[{stroke:["none",...ee()]}],"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-x","border-w-y","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-x","border-color-y","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"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"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"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Jv=(e,{cacheSize:t,prefix:n,experimentalParseClassName:i,extend:r={},override:a={}})=>(Zi(e,"cacheSize",t),Zi(e,"prefix",n),Zi(e,"experimentalParseClassName",i),Or(e.theme,a.theme),Or(e.classGroups,a.classGroups),Or(e.conflictingClassGroups,a.conflictingClassGroups),Or(e.conflictingClassGroupModifiers,a.conflictingClassGroupModifiers),Zi(e,"orderSensitiveModifiers",a.orderSensitiveModifiers),Pr(e.theme,r.theme),Pr(e.classGroups,r.classGroups),Pr(e.conflictingClassGroups,r.conflictingClassGroups),Pr(e.conflictingClassGroupModifiers,r.conflictingClassGroupModifiers),ed(e,r,"orderSensitiveModifiers"),e),Zi=(e,t,n)=>{n!==void 0&&(e[t]=n)},Or=(e,t)=>{if(t)for(const n in t)Zi(e,n,t[n])},Pr=(e,t)=>{if(t)for(const n in t)ed(e,t,n)},ed=(e,t,n)=>{const i=t[n];i!==void 0&&(e[n]=e[n]?e[n].concat(i):i)},Yv=(e,...t)=>typeof e=="function"?xu(wu,e,...t):xu(()=>Jv(wu(),e),...t);function td(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ku={exports:{}};/*!
|
|
6
|
-
Copyright (c) 2018 Jed Watson.
|
|
7
|
-
Licensed under the MIT License (MIT), see
|
|
8
|
-
http://jedwatson.github.io/classnames
|
|
9
|
-
*/var Su;function Zv(){return Su||(Su=1,(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var a="",s=0;s<arguments.length;s++){var l=arguments[s];l&&(a=r(a,i(l)))}return a}function i(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return n.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var s="";for(var l in a)t.call(a,l)&&a[l]&&(s=r(s,l));return s}function r(a,s){return s?a?a+" "+s:a+s:a}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(ku)),ku.exports}var Xv=Zv();const Qv=td(Xv),ex=Yv({extend:{classGroups:{"font-size":["text-xxs","text-xs","text-s","text-sm","text-base","text-lg","text-xl","text-2xl","text-3xl","text-4xl","text-5xl","text-6xl","text-7xl","text-8xl","text-9xl"],"text-color":["text-body","text-muted","text-inactive-text","text-button-text","text-positive-text","text-negative-text","text-negative","text-warning-text","text-input-text","text-select-text","text-input-message-text","text-placeholder"]}}});function ce(...e){return ex(Qv(e))}const pr={sm:{checkbox:"size-4",hoverSquare:"size-2.5",text:"text-xs",spacing:"gap-1",icon:"size-3.25"},md:{checkbox:"size-5",hoverSquare:"size-3.5",text:"text-sm",spacing:"gap-1.5",icon:"size-4"},lg:{checkbox:"size-6",hoverSquare:"size-4",text:"text-base",spacing:"gap-2",icon:"size-5"}},$t={primary:{checked:"bg-primary border-primary",unchecked:"border border-body bg-transparent",checkedHover:"hover:bg-primary-hover hover:border-primary-hover",hoverSquare:"bg-primary-hover",focus:"focus:ring-primary",label:"text-body"},positive:{checked:"bg-positive border-positive",unchecked:"border border-positive bg-transparent",checkedHover:"hover:bg-positive-hover hover:border-positive-hover",hoverSquare:"bg-positive-hover",focus:"focus:ring-positive",label:"text-positive"},warning:{checked:"bg-warning border-warning",unchecked:"border border-warning bg-transparent",checkedHover:"hover:bg-warning-hover hover:border-warning-hover",hoverSquare:"bg-warning-hover",focus:"focus:ring-warning",label:"text-warning"},negative:{checked:"bg-negative border-negative",unchecked:"border border-negative bg-transparent",checkedHover:"hover:bg-negative-hover hover:border-negative-hover",hoverSquare:"bg-negative-hover",focus:"focus:ring-negative",label:"text-negative"}},tx=`
|
|
10
|
-
appearance-none border rounded transition-all duration-200
|
|
11
|
-
focus:ring-2 focus:ring-offset-2 focus:outline-hidden
|
|
12
|
-
relative
|
|
13
|
-
`,nx=(e,t,n)=>{const{isChecked:i,isIndeterminate:r,isDisabled:a,isInvalid:s}=n,l=i||r;return ce(tx,pr[e].checkbox,{"cursor-pointer":!a},s?{[$t.negative.checked]:l,[$t.negative.unchecked]:!l,[$t.negative.checkedHover]:!a&&l,[$t.negative.focus]:!a,"border-input-disable":a}:{[$t[t].checked]:l&&!a,[$t[t].unchecked]:!l&&!a,[$t[t].checkedHover]:!a&&l,[$t[t].focus]:!a,"border-input-disable":a,"bg-input-disable":a&&l})},ix=(e,t,n)=>{const{isDisabled:i,isInvalid:r}=n;return ce(pr[e].text,r?{[$t.negative.label]:r}:{"text-input-disable":i,[$t[t].label]:!i,"cursor-pointer":!i})},rx=e=>ce("inline-flex items-center ws-group",pr[e].spacing),ax=(e,t,n)=>ce("center-absolute rounded-xs transition-all duration-200 opacity-0 ws-checkbox-hover-target",pr[e].hoverSquare,{[$t.negative.hoverSquare]:n,[$t[t].hoverSquare]:!n}),sx=e=>`${pr[e].icon}`,ox=e=>b.jsx("svg",{className:`absolute inset-0 ${e.className}`,fill:"none",viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false",xmlns:"http://www.w3.org/2000/svg",...e,children:b.jsx("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"2",fill:"none"})}),Da=M.forwardRef(({label:e,isDisabled:t=!1,isInvalid:n=!1,isRequired:i=!1,size:r="md",color:a="primary",onChange:s,onFocus:l,onBlur:u,value:c,defaultValue:d,name:p,id:g,...m},C)=>{const[x,w]=M.useState(d),S=c===!0||x===!0,k=c===null,E=S||k,A={isChecked:S,isIndeterminate:k,isDisabled:t,isInvalid:n},y=nx(r,a,A),f=ix(r,a,A),T=rx(r),R=ax(r,a,n),F=sx(r);return b.jsxs("label",{"data-qui":"Checkbox",className:T,children:[b.jsxs("div",{className:y,children:[b.jsx("input",{ref:C,type:"checkbox",className:"sr-only",checked:S,disabled:t,required:i,onChange:D=>{c===void 0&&w(D.target.checked),s==null||s(D)},onFocus:l,onBlur:u,name:p,id:g,...m}),E&&b.jsx("div",{className:"center-absolute",children:k?b.jsx(ox,{className:F}):b.jsx(sv,{className:F})}),!E&&!t&&b.jsx("div",{className:R})]}),e&&b.jsxs("span",{className:f,children:[e,i&&b.jsx("span",{className:"text-negative ml-1",children:"*"})]})]})});Da.displayName="Checkbox";const fr={sm:{container:"gap-2",radio:"size-3",label:"text-xs",dot:"size-2",hoverDot:"size-1.5"},md:{container:"gap-2.5",radio:"size-4",label:"text-sm",dot:"size-2.5",hoverDot:"size-2"},lg:{container:"gap-3",radio:"size-6",label:"text-base",dot:"size-4",hoverDot:"size-3"}},rr={primary:{radio:"border-body-light group-hover:border-body",radioInvalid:"border-negative",dot:"bg-primary group-hover:bg-primary-hover",hoverDot:"bg-primary-hover",label:"text-body"},positive:{radio:"border-positive group-hover:border-positive-text",radioInvalid:"border-negative",dot:"bg-positive group-hover:bg-positive-hover",hoverDot:"bg-positive-bg",label:"text-positive-text"},warning:{radio:"border-warning group-hover:border-warning-text",radioInvalid:"border-negative",dot:"bg-warning group-hover:bg-warning-hover",hoverDot:"bg-warning-bg",label:"text-warning-text"},negative:{radio:"border-negative group-hover:border-negative-text",radioInvalid:"border-negative",dot:"bg-negative group-hover:bg-negative-hover",hoverDot:"bg-negative-bg",label:"text-negative"}},lx=`
|
|
14
|
-
relative rounded-full border transition-all duration-200 ease-in-out bg-transparent
|
|
15
|
-
focus:outline-hidden focus:ring-2 focus:ring-offset-0
|
|
16
|
-
cursor-pointer peer
|
|
17
|
-
`,ux=(e,t,n)=>{const{isDisabled:i,isInvalid:r}=n;return ce(lx,fr[e].radio,r?rr[t].radioInvalid:{[rr[t].radio]:!i,"cursor-not-allowed opacity-60":i})},cx=(e,t,n)=>{const{checked:i,isDisabled:r,isInvalid:a}=n;return ce("center-absolute rounded-full transition-all duration-200 ease-in-out",fr[e].dot,a?"bg-negative":{[rr[t].dot]:!r,"border-neutral":r,"opacity-0 scale-0":!i,"opacity-100 scale-100":i&&!r})},hx=(e,t,n)=>ce("center-absolute rounded-full transition-all duration-200 opacity-0 group-hover:opacity-100",fr[e].hoverDot,{[rr[t].hoverDot]:!n,"bg-negative-bg":n}),dx=e=>ce("cursor-pointer select-none transition-colors duration-200",fr[e].label),px=(e,t,n,i)=>{const{isDisabled:r,isInvalid:a}=n;return ce("inline-flex items-center group",fr[e].container,a?{"text-negative":a}:{[rr[t].label]:!r,"text-muted":r},i)},fx=()=>ce("flex flex-col"),nd=M.createContext(null),gx=()=>{const e=M.useContext(nd);if(!e)throw new Error("Radio.Item must be used within Radio.Group");return e},id=({value:e,defaultValue:t,onChange:n,name:i,size:r="md",color:a="primary",isDisabled:s=!1,isInvalid:l=!1,isRequired:u=!1,hideIndicator:c=!1,className:d,children:p,...g})=>{const[m,C]=M.useState(t),x=e!==void 0,w={value:x?e:m,onChange:S=>{x||C(S),n==null||n(S)},name:i,size:r,color:a,isDisabled:s,isInvalid:l,isRequired:u,hideIndicator:c};return b.jsx(nd.Provider,{value:w,children:b.jsx("div",{"data-qui":"RadioGroup",role:"radiogroup",className:ce(fx(),d),...g,children:p})})},rd=M.forwardRef(({value:e,label:t,size:n,color:i,isDisabled:r,isInvalid:a,isRequired:s,className:l,...u},c)=>{const d=gx(),p=n??d.size,g=i??d.color,m=r??d.isDisabled,C=a??d.isInvalid,x=s??d.isRequired,w=d.value===e,S={checked:w,isDisabled:m,isInvalid:C},k=ux(p,g,S),E=cx(p,g,S),A=hx(p,g,C),y=dx(p),f=px(p,g,S,l),T=()=>{m||d.onChange(e)};return b.jsxs("label",{"data-qui":"RadioItem",className:f,children:[b.jsxs("div",{className:ce("relative",{hidden:d.hideIndicator}),children:[b.jsx("input",{ref:c,type:"radio",value:e,checked:w,disabled:m,required:x,"aria-invalid":C,"aria-label":t?void 0:u["aria-label"],name:d.name,onChange:T,className:"sr-only",...u}),b.jsxs("div",{className:k,children:[b.jsx("div",{className:E}),!w&&!m&&b.jsx("div",{className:A})]})]}),t&&b.jsxs("span",{className:y,children:[t,x&&b.jsx("span",{className:"text-negative ml-1",children:"*"})]})]})});id.displayName="RadioGroup";rd.displayName="RadioItem";const Eu={Group:id,Item:rd},ad={sm:{container:"h-4.5 p-1 rounded",text:"text-xxs"},md:{container:"h-6 p-1 rounded",text:"text-s"},lg:{container:"h-7 p-1 rounded",text:"text-sm"},xl:{container:"h-7.5 p-1 rounded",text:"text-lg"}},mx={primary:{bg:{solid:"bg-primary",outline:"bg-transparent",ghost:"bg-transparent"},text:{solid:"text-button-text",outline:"text-primary",ghost:"text-primary"},border:{solid:"border-primary",outline:"border-primary",ghost:"border-transparent"},hover:{solid:"hover:bg-primary-hover hover:border-primary-hover",outline:"hover:border-primary-hover hover:bg-primary hover:text-body",ghost:"hover:bg-primary-hover hover:text-body"}},white:{bg:{solid:"bg-white",outline:"bg-transparent",ghost:"bg-transparent"},text:{solid:"text-primary",outline:"text-body",ghost:"text-body"},border:{solid:"border-white",outline:"border-white",ghost:"border-transparent"},hover:{solid:"hover:bg-canvas-subtle hover:border-canvas-subtle",outline:"hover:border-canvas-default hover:bg-canvas-default hover:text-primary",ghost:"hover:bg-primary-hover hover:text-body"}},positive:{bg:{solid:"bg-positive",outline:"bg-transparent",ghost:"bg-transparent"},text:{solid:"text-button-text",outline:"text-positive-text",ghost:"text-positive-text"},border:{solid:"border-positive",outline:"border-positive",ghost:"border-transparent"},hover:{solid:"hover:bg-positive-hover hover:border-positive-hover",outline:"hover:border-positive-hover hover:bg-positive-hover hover:text-body",ghost:"hover:bg-positive-hover hover:text-body"}},warning:{bg:{solid:"bg-warning",outline:"bg-transparent",ghost:"bg-transparent"},text:{solid:"text-button-text",outline:"text-warning-text",ghost:"text-warning-text"},border:{solid:"border-warning",outline:"border-warning",ghost:"border-transparent"},hover:{solid:"hover:bg-warning-hover hover:border-warning-hover",outline:"hover:border-warning-hover hover:bg-warning-hover hover:text-body",ghost:"hover:bg-warning-hover hover:text-body"}},negative:{bg:{solid:"bg-negative",outline:"bg-transparent",ghost:"bg-transparent"},text:{solid:"text-button-text",outline:"text-negative",ghost:"text-negative"},border:{solid:"border-negative",outline:"border-negative",ghost:"border-transparent"},hover:{solid:"hover:bg-negative-hover hover:border-negative-hover",outline:"hover:border-negative-hover hover:bg-negative-hover hover:text-body",ghost:"hover:bg-negative-hover hover:text-body"}}},vx=(e,t,n,i)=>{const r=ad[e],a=mx[n],s=ce("inline-flex items-center justify-center font-medium transition-colors duration-200 focus:outline-hidden border",{"cursor-pointer":!i},r.container);return i?ce(s,"text-inactive-text",{"border-panel":t!=="ghost"&&t==="solid","border-panel-subtle":t==="outline","bg-panel":t==="solid","bg-transparent ":t==="outline"||t==="ghost","border-transparent":t==="ghost"}):ce(s,a.bg[t],a.text[t],a.hover[t],a.border[t])},xx=e=>ce("flex items-center justify-center gap-1",ad[e].text),st=M.forwardRef(({size:e="md",variant:t="solid",color:n="primary",className:i,children:r,disabled:a,...s},l)=>b.jsx("button",{"data-qui":"Button",ref:l,type:"button",className:ce(vx(e,t,n,a),xx(e),i),disabled:a,...s,children:r}));st.displayName="Button";const sd=M.createContext(null),gr=()=>{const e=M.useContext(sd);if(!e)throw new Error("Input components must be used within Input.Root");return e},zi={sm:{group:"h-5 min-h-fit",input:"text-xxs",message:"text-xxs p-1.5",icon:"text-sm"},md:{group:"h-6 min-h-fit",input:"text-xs",message:"text-xs p-2",icon:"text-base"},lg:{group:"h-7 min-h-fit",input:"text-s",message:"text-s p-2.5",icon:"text-lg"}},ai={primary:{border:"border border-input-border focus-within:border-input-focus-border",borderInvalid:"ring-input-error-border",borderMessage:"ring-input-focus-border",text:"text-input-text",placeholder:"placeholder:text-input-placeholder",messageText:"text-input-message-text",messageBackground:"bg-input-message-bg",icon:"text-input-text",action:"text-input-text",actionHover:"hover:text-body hover:bg-primary-hover"},positive:{border:"border border-input-border focus-within:border-positive",borderInvalid:"ring-input-error-border",borderMessage:"ring-positive",text:"text-input-text",placeholder:"placeholder:text-input-placeholder",messageText:"text-positive-dark",messageBackground:"bg-positive-light",icon:"text-positive-text",action:"text-input-text",actionHover:"hover:text-body hover:bg-primary-hover"},warning:{border:"border border-input-border focus-within:border-input-warning-border",borderInvalid:"ring-input-error-border",borderMessage:"ring-input-warning-border",text:"text-input-text",placeholder:"placeholder:text-input-placeholder",messageText:"text-warning-dark",messageBackground:"bg-input-warning-bg",icon:"text-warning-text",action:"text-input-text",actionHover:"hover:text-body hover:bg-primary-hover"},negative:{border:"border border-input-border focus-within:border-input-error-border",borderInvalid:"ring-input-error-border",borderMessage:"ring-input-error-border",text:"text-negative",placeholder:"placeholder:text-input-placeholder",messageText:"text-negative-dark",messageBackground:"bg-input-error-bg",icon:"text-negative",action:"text-input-text",actionHover:"hover:text-body hover:bg-primary-hover"}},bx=()=>ce("flex flex-col relative"),yx=({size:e,color:t,isDisabled:n,isReadOnly:i,hasMessage:r,hasArea:a,isInvalid:s})=>{const l=ai[s?"negative":t];return ce("bg-input-bg flex gap-1 relative px-1 transition-all duration-200 ease-in-out only:rounded first:rounded-t last:rounded-b",l.text,r?l.borderMessage:!i&&l.border,zi[e].group,{"ring-1":r,"opacity-60":n,"items-center":!a})},wx=({size:e,color:t})=>ce("bg-transparent ring-0 w-full","focus:outline-hidden",[zi[e].input],ai[t].placeholder),Cu=({size:e,color:t})=>ce("bg-transparent ring-0 w-full h-fit resize-none py-0.5","focus:outline-hidden",zi[e].input,ai[t].placeholder),kx=({size:e,color:t,isDisabled:n,isAction:i})=>{const r=ai[t];return ce("transition-colors duration-200 rounded max-h-full h-fit",zi[e].icon,e==="sm"?"m-px":"m-0.5",n?"text-muted opacity-60 pointer-events-none":i?r.action:r.icon,{"cursor-pointer p-0.5":i&&!n,[r.actionHover]:i&&!n,"pointer-events-none":!i})},Sx=({size:e,color:t,isDisabled:n})=>ce("absolute left-0 right-0 z-10","flex items-start gap-x-2 ring-1","first:bottom-full first:rounded-t first:ring-b-0","last:top-full last:rounded-b last:ring-t-0","only:top-full only:rounded only:ring-1",n?"text-muted":ai[t].messageText,ai[t].borderMessage,ai[t].messageBackground,zi[e].message,{"opacity-60":n}),Ex=({size:e})=>ce(zi[e].icon);function pa(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Cx=typeof global=="object"&&global&&global.Object===Object&&global,Ix=typeof self=="object"&&self&&self.Object===Object&&self,od=Cx||Ix||Function("return this")(),os=function(){return od.Date.now()},_x=/\s/;function Ax(e){for(var t=e.length;t--&&_x.test(e.charAt(t)););return t}var Nx=/^\s+/;function Tx(e){return e&&e.slice(0,Ax(e)+1).replace(Nx,"")}var fa=od.Symbol,ld=Object.prototype,Ox=ld.hasOwnProperty,Px=ld.toString,Gi=fa?fa.toStringTag:void 0;function Rx(e){var t=Ox.call(e,Gi),n=e[Gi];try{e[Gi]=void 0;var i=!0}catch{}var r=Px.call(e);return i&&(t?e[Gi]=n:delete e[Gi]),r}var Mx=Object.prototype,Lx=Mx.toString;function Dx(e){return Lx.call(e)}var Fx="[object Null]",jx="[object Undefined]",Iu=fa?fa.toStringTag:void 0;function zx(e){return e==null?e===void 0?jx:Fx:Iu&&Iu in Object(e)?Rx(e):Dx(e)}function Vx(e){return e!=null&&typeof e=="object"}var Bx="[object Symbol]";function Hx(e){return typeof e=="symbol"||Vx(e)&&zx(e)==Bx}var _u=NaN,Kx=/^[-+]0x[0-9a-f]+$/i,Wx=/^0b[01]+$/i,Ux=/^0o[0-7]+$/i,qx=parseInt;function Au(e){if(typeof e=="number")return e;if(Hx(e))return _u;if(pa(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=pa(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Tx(e);var n=Wx.test(e);return n||Ux.test(e)?qx(e.slice(2),n?2:8):Kx.test(e)?_u:+e}var Gx="Expected a function",$x=Math.max,Jx=Math.min;function Qr(e,t,n){var i,r,a,s,l,u,c=0,d=!1,p=!1,g=!0;if(typeof e!="function")throw new TypeError(Gx);t=Au(t)||0,pa(n)&&(d=!!n.leading,p="maxWait"in n,a=p?$x(Au(n.maxWait)||0,t):a,g="trailing"in n?!!n.trailing:g);function m(f){var T=i,R=r;return i=r=void 0,c=f,s=e.apply(R,T),s}function C(f){return c=f,l=setTimeout(S,t),d?m(f):s}function x(f){var T=f-u,R=f-c,F=t-T;return p?Jx(F,a-R):F}function w(f){var T=f-u,R=f-c;return u===void 0||T>=t||T<0||p&&R>=a}function S(){var f=os();if(w(f))return k(f);l=setTimeout(S,x(f))}function k(f){return l=void 0,g&&i?m(f):(i=r=void 0,s)}function E(){l!==void 0&&clearTimeout(l),c=0,i=u=r=l=void 0}function A(){return l===void 0?s:k(os())}function y(){var f=os(),T=w(f);if(i=arguments,r=this,u=f,T){if(l===void 0)return C(u);if(p)return clearTimeout(l),l=setTimeout(S,t),m(u)}return l===void 0&&(l=setTimeout(S,t)),s}return y.cancel=E,y.flush=A,y}var Yx="Expected a function";function Zx(e,t,n){var i=!0,r=!0;if(typeof e!="function")throw new TypeError(Yx);return pa(n)&&(i="leading"in n?!!n.leading:i,r="trailing"in n?!!n.trailing:r),Qr(e,t,{leading:i,maxWait:t,trailing:r})}var Ni=function(){return Ni=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++){t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Ni.apply(this,arguments)};function ud(e){return!e||!e.ownerDocument||!e.ownerDocument.defaultView?window:e.ownerDocument.defaultView}function cd(e){return!e||!e.ownerDocument?document:e.ownerDocument}var hd=function(e){var t={},n=Array.prototype.reduce.call(e,function(i,r){var a=r.name.match(/data-simplebar-(.+)/);if(a){var s=a[1].replace(/\W+(.)/g,function(l,u){return u.toUpperCase()});switch(r.value){case"true":i[s]=!0;break;case"false":i[s]=!1;break;case void 0:i[s]=!0;break;default:i[s]=r.value}}return i},t);return n};function dd(e,t){var n;e&&(n=e.classList).add.apply(n,t.split(" "))}function pd(e,t){e&&t.split(" ").forEach(function(n){e.classList.remove(n)})}function fd(e){return".".concat(e.split(" ").join("."))}var Mo=!!(typeof window<"u"&&window.document&&window.document.createElement),Xx=Object.freeze({__proto__:null,addClasses:dd,canUseDOM:Mo,classNamesToQuery:fd,getElementDocument:cd,getElementWindow:ud,getOptions:hd,removeClasses:pd}),_i=null,Nu=null;Mo&&window.addEventListener("resize",function(){Nu!==window.devicePixelRatio&&(Nu=window.devicePixelRatio,_i=null)});function Tu(){if(_i===null){if(typeof document>"u")return _i=0,_i;var e=document.body,t=document.createElement("div");t.classList.add("simplebar-hide-scrollbar"),e.appendChild(t);var n=t.getBoundingClientRect().right;e.removeChild(t),_i=n}return _i}var jn=ud,ls=cd,Qx=hd,zn=dd,Vn=pd,Rt=fd,$i=(function(){function e(t,n){n===void 0&&(n={});var i=this;if(this.removePreventClickId=null,this.minScrollbarWidth=20,this.stopScrollDelay=175,this.isScrolling=!1,this.isMouseEntering=!1,this.isDragging=!1,this.scrollXTicking=!1,this.scrollYTicking=!1,this.wrapperEl=null,this.contentWrapperEl=null,this.contentEl=null,this.offsetEl=null,this.maskEl=null,this.placeholderEl=null,this.heightAutoObserverWrapperEl=null,this.heightAutoObserverEl=null,this.rtlHelpers=null,this.scrollbarWidth=0,this.resizeObserver=null,this.mutationObserver=null,this.elStyles=null,this.isRtl=null,this.mouseX=0,this.mouseY=0,this.onMouseMove=function(){},this.onWindowResize=function(){},this.onStopScrolling=function(){},this.onMouseEntered=function(){},this.onScroll=function(){var r=jn(i.el);i.scrollXTicking||(r.requestAnimationFrame(i.scrollX),i.scrollXTicking=!0),i.scrollYTicking||(r.requestAnimationFrame(i.scrollY),i.scrollYTicking=!0),i.isScrolling||(i.isScrolling=!0,zn(i.el,i.classNames.scrolling)),i.showScrollbar("x"),i.showScrollbar("y"),i.onStopScrolling()},this.scrollX=function(){i.axis.x.isOverflowing&&i.positionScrollbar("x"),i.scrollXTicking=!1},this.scrollY=function(){i.axis.y.isOverflowing&&i.positionScrollbar("y"),i.scrollYTicking=!1},this._onStopScrolling=function(){Vn(i.el,i.classNames.scrolling),i.options.autoHide&&(i.hideScrollbar("x"),i.hideScrollbar("y")),i.isScrolling=!1},this.onMouseEnter=function(){i.isMouseEntering||(zn(i.el,i.classNames.mouseEntered),i.showScrollbar("x"),i.showScrollbar("y"),i.isMouseEntering=!0),i.onMouseEntered()},this._onMouseEntered=function(){Vn(i.el,i.classNames.mouseEntered),i.options.autoHide&&(i.hideScrollbar("x"),i.hideScrollbar("y")),i.isMouseEntering=!1},this._onMouseMove=function(r){i.mouseX=r.clientX,i.mouseY=r.clientY,(i.axis.x.isOverflowing||i.axis.x.forceVisible)&&i.onMouseMoveForAxis("x"),(i.axis.y.isOverflowing||i.axis.y.forceVisible)&&i.onMouseMoveForAxis("y")},this.onMouseLeave=function(){i.onMouseMove.cancel(),(i.axis.x.isOverflowing||i.axis.x.forceVisible)&&i.onMouseLeaveForAxis("x"),(i.axis.y.isOverflowing||i.axis.y.forceVisible)&&i.onMouseLeaveForAxis("y"),i.mouseX=-1,i.mouseY=-1},this._onWindowResize=function(){i.scrollbarWidth=i.getScrollbarWidth(),i.hideNativeScrollbar()},this.onPointerEvent=function(r){if(!(!i.axis.x.track.el||!i.axis.y.track.el||!i.axis.x.scrollbar.el||!i.axis.y.scrollbar.el)){var a,s;i.axis.x.track.rect=i.axis.x.track.el.getBoundingClientRect(),i.axis.y.track.rect=i.axis.y.track.el.getBoundingClientRect(),(i.axis.x.isOverflowing||i.axis.x.forceVisible)&&(a=i.isWithinBounds(i.axis.x.track.rect)),(i.axis.y.isOverflowing||i.axis.y.forceVisible)&&(s=i.isWithinBounds(i.axis.y.track.rect)),(a||s)&&(r.stopPropagation(),r.type==="pointerdown"&&r.pointerType!=="touch"&&(a&&(i.axis.x.scrollbar.rect=i.axis.x.scrollbar.el.getBoundingClientRect(),i.isWithinBounds(i.axis.x.scrollbar.rect)?i.onDragStart(r,"x"):i.onTrackClick(r,"x")),s&&(i.axis.y.scrollbar.rect=i.axis.y.scrollbar.el.getBoundingClientRect(),i.isWithinBounds(i.axis.y.scrollbar.rect)?i.onDragStart(r,"y"):i.onTrackClick(r,"y"))))}},this.drag=function(r){var a,s,l,u,c,d,p,g,m,C,x;if(!(!i.draggedAxis||!i.contentWrapperEl)){var w,S=i.axis[i.draggedAxis].track,k=(s=(a=S.rect)===null||a===void 0?void 0:a[i.axis[i.draggedAxis].sizeAttr])!==null&&s!==void 0?s:0,E=i.axis[i.draggedAxis].scrollbar,A=(u=(l=i.contentWrapperEl)===null||l===void 0?void 0:l[i.axis[i.draggedAxis].scrollSizeAttr])!==null&&u!==void 0?u:0,y=parseInt((d=(c=i.elStyles)===null||c===void 0?void 0:c[i.axis[i.draggedAxis].sizeAttr])!==null&&d!==void 0?d:"0px",10);r.preventDefault(),r.stopPropagation(),i.draggedAxis==="y"?w=r.pageY:w=r.pageX;var f=w-((g=(p=S.rect)===null||p===void 0?void 0:p[i.axis[i.draggedAxis].offsetAttr])!==null&&g!==void 0?g:0)-i.axis[i.draggedAxis].dragOffset;f=i.draggedAxis==="x"&&i.isRtl?((C=(m=S.rect)===null||m===void 0?void 0:m[i.axis[i.draggedAxis].sizeAttr])!==null&&C!==void 0?C:0)-E.size-f:f;var T=f/(k-E.size),R=T*(A-y);i.draggedAxis==="x"&&i.isRtl&&(R=!((x=e.getRtlHelpers())===null||x===void 0)&&x.isScrollingToNegative?-R:R),i.contentWrapperEl[i.axis[i.draggedAxis].scrollOffsetAttr]=R}},this.onEndDrag=function(r){i.isDragging=!1;var a=ls(i.el),s=jn(i.el);r.preventDefault(),r.stopPropagation(),Vn(i.el,i.classNames.dragging),i.onStopScrolling(),a.removeEventListener("mousemove",i.drag,!0),a.removeEventListener("mouseup",i.onEndDrag,!0),i.removePreventClickId=s.setTimeout(function(){a.removeEventListener("click",i.preventClick,!0),a.removeEventListener("dblclick",i.preventClick,!0),i.removePreventClickId=null})},this.preventClick=function(r){r.preventDefault(),r.stopPropagation()},this.el=t,this.options=Ni(Ni({},e.defaultOptions),n),this.classNames=Ni(Ni({},e.defaultOptions.classNames),n.classNames),this.axis={x:{scrollOffsetAttr:"scrollLeft",sizeAttr:"width",scrollSizeAttr:"scrollWidth",offsetSizeAttr:"offsetWidth",offsetAttr:"left",overflowAttr:"overflowX",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}},y:{scrollOffsetAttr:"scrollTop",sizeAttr:"height",scrollSizeAttr:"scrollHeight",offsetSizeAttr:"offsetHeight",offsetAttr:"top",overflowAttr:"overflowY",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}}},typeof this.el!="object"||!this.el.nodeName)throw new Error("Argument passed to SimpleBar must be an HTML element instead of ".concat(this.el));this.onMouseMove=Zx(this._onMouseMove,64),this.onWindowResize=Qr(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=Qr(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=Qr(this._onMouseEntered,this.stopScrollDelay),this.init()}return e.getRtlHelpers=function(){if(e.rtlHelpers)return e.rtlHelpers;var t=document.createElement("div");t.innerHTML='<div class="simplebar-dummy-scrollbar-size"><div></div></div>';var n=t.firstElementChild,i=n==null?void 0:n.firstElementChild;if(!i)return null;document.body.appendChild(n),n.scrollLeft=0;var r=e.getOffset(n),a=e.getOffset(i);n.scrollLeft=-999;var s=e.getOffset(i);return document.body.removeChild(n),e.rtlHelpers={isScrollOriginAtZero:r.left!==a.left,isScrollingToNegative:a.left!==s.left},e.rtlHelpers},e.prototype.getScrollbarWidth=function(){try{return this.contentWrapperEl&&getComputedStyle(this.contentWrapperEl,"::-webkit-scrollbar").display==="none"||"scrollbarWidth"in document.documentElement.style||"-ms-overflow-style"in document.documentElement.style?0:Tu()}catch{return Tu()}},e.getOffset=function(t){var n=t.getBoundingClientRect(),i=ls(t),r=jn(t);return{top:n.top+(r.pageYOffset||i.documentElement.scrollTop),left:n.left+(r.pageXOffset||i.documentElement.scrollLeft)}},e.prototype.init=function(){Mo&&(this.initDOM(),this.rtlHelpers=e.getRtlHelpers(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},e.prototype.initDOM=function(){var t,n;this.wrapperEl=this.el.querySelector(Rt(this.classNames.wrapper)),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector(Rt(this.classNames.contentWrapper)),this.contentEl=this.options.contentNode||this.el.querySelector(Rt(this.classNames.contentEl)),this.offsetEl=this.el.querySelector(Rt(this.classNames.offset)),this.maskEl=this.el.querySelector(Rt(this.classNames.mask)),this.placeholderEl=this.findChild(this.wrapperEl,Rt(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(Rt(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(Rt(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.findChild(this.el,"".concat(Rt(this.classNames.track)).concat(Rt(this.classNames.horizontal))),this.axis.y.track.el=this.findChild(this.el,"".concat(Rt(this.classNames.track)).concat(Rt(this.classNames.vertical))),this.axis.x.scrollbar.el=((t=this.axis.x.track.el)===null||t===void 0?void 0:t.querySelector(Rt(this.classNames.scrollbar)))||null,this.axis.y.scrollbar.el=((n=this.axis.y.track.el)===null||n===void 0?void 0:n.querySelector(Rt(this.classNames.scrollbar)))||null,this.options.autoHide||(zn(this.axis.x.scrollbar.el,this.classNames.visible),zn(this.axis.y.scrollbar.el,this.classNames.visible))},e.prototype.initListeners=function(){var t=this,n,i=jn(this.el);if(this.el.addEventListener("mouseenter",this.onMouseEnter),this.el.addEventListener("pointerdown",this.onPointerEvent,!0),this.el.addEventListener("mousemove",this.onMouseMove),this.el.addEventListener("mouseleave",this.onMouseLeave),(n=this.contentWrapperEl)===null||n===void 0||n.addEventListener("scroll",this.onScroll),i.addEventListener("resize",this.onWindowResize),!!this.contentEl){if(window.ResizeObserver){var r=!1,a=i.ResizeObserver||ResizeObserver;this.resizeObserver=new a(function(){r&&i.requestAnimationFrame(function(){t.recalculate()})}),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),i.requestAnimationFrame(function(){r=!0})}this.mutationObserver=new i.MutationObserver(function(){i.requestAnimationFrame(function(){t.recalculate()})}),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})}},e.prototype.recalculate=function(){if(!(!this.heightAutoObserverEl||!this.contentEl||!this.contentWrapperEl||!this.wrapperEl||!this.placeholderEl)){var t=jn(this.el);this.elStyles=t.getComputedStyle(this.el),this.isRtl=this.elStyles.direction==="rtl";var n=this.contentEl.offsetWidth,i=this.heightAutoObserverEl.offsetHeight<=1,r=this.heightAutoObserverEl.offsetWidth<=1||n>0,a=this.contentWrapperEl.offsetWidth,s=this.elStyles.overflowX,l=this.elStyles.overflowY;this.contentEl.style.padding="".concat(this.elStyles.paddingTop," ").concat(this.elStyles.paddingRight," ").concat(this.elStyles.paddingBottom," ").concat(this.elStyles.paddingLeft),this.wrapperEl.style.margin="-".concat(this.elStyles.paddingTop," -").concat(this.elStyles.paddingRight," -").concat(this.elStyles.paddingBottom," -").concat(this.elStyles.paddingLeft);var u=this.contentEl.scrollHeight,c=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=i?"auto":"100%",this.placeholderEl.style.width=r?"".concat(n||c,"px"):"auto",this.placeholderEl.style.height="".concat(u,"px");var d=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=n!==0&&c>n,this.axis.y.isOverflowing=u>d,this.axis.x.isOverflowing=s==="hidden"?!1:this.axis.x.isOverflowing,this.axis.y.isOverflowing=l==="hidden"?!1:this.axis.y.isOverflowing,this.axis.x.forceVisible=this.options.forceVisible==="x"||this.options.forceVisible===!0,this.axis.y.forceVisible=this.options.forceVisible==="y"||this.options.forceVisible===!0,this.hideNativeScrollbar();var p=this.axis.x.isOverflowing?this.scrollbarWidth:0,g=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&c>a-g,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&u>d-p,this.axis.x.scrollbar.size=this.getScrollbarSize("x"),this.axis.y.scrollbar.size=this.getScrollbarSize("y"),this.axis.x.scrollbar.el&&(this.axis.x.scrollbar.el.style.width="".concat(this.axis.x.scrollbar.size,"px")),this.axis.y.scrollbar.el&&(this.axis.y.scrollbar.el.style.height="".concat(this.axis.y.scrollbar.size,"px")),this.positionScrollbar("x"),this.positionScrollbar("y"),this.toggleTrackVisibility("x"),this.toggleTrackVisibility("y")}},e.prototype.getScrollbarSize=function(t){var n,i;if(t===void 0&&(t="y"),!this.axis[t].isOverflowing||!this.contentEl)return 0;var r=this.contentEl[this.axis[t].scrollSizeAttr],a=(i=(n=this.axis[t].track.el)===null||n===void 0?void 0:n[this.axis[t].offsetSizeAttr])!==null&&i!==void 0?i:0,s=a/r,l;return l=Math.max(~~(s*a),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(l=Math.min(l,this.options.scrollbarMaxSize)),l},e.prototype.positionScrollbar=function(t){var n,i,r;t===void 0&&(t="y");var a=this.axis[t].scrollbar;if(!(!this.axis[t].isOverflowing||!this.contentWrapperEl||!a.el||!this.elStyles)){var s=this.contentWrapperEl[this.axis[t].scrollSizeAttr],l=((n=this.axis[t].track.el)===null||n===void 0?void 0:n[this.axis[t].offsetSizeAttr])||0,u=parseInt(this.elStyles[this.axis[t].sizeAttr],10),c=this.contentWrapperEl[this.axis[t].scrollOffsetAttr];c=t==="x"&&this.isRtl&&!((i=e.getRtlHelpers())===null||i===void 0)&&i.isScrollOriginAtZero?-c:c,t==="x"&&this.isRtl&&(c=!((r=e.getRtlHelpers())===null||r===void 0)&&r.isScrollingToNegative?c:-c);var d=c/(s-u),p=~~((l-a.size)*d);p=t==="x"&&this.isRtl?-p+(l-a.size):p,a.el.style.transform=t==="x"?"translate3d(".concat(p,"px, 0, 0)"):"translate3d(0, ".concat(p,"px, 0)")}},e.prototype.toggleTrackVisibility=function(t){t===void 0&&(t="y");var n=this.axis[t].track.el,i=this.axis[t].scrollbar.el;!n||!i||!this.contentWrapperEl||(this.axis[t].isOverflowing||this.axis[t].forceVisible?(n.style.visibility="visible",this.contentWrapperEl.style[this.axis[t].overflowAttr]="scroll",this.el.classList.add("".concat(this.classNames.scrollable,"-").concat(t))):(n.style.visibility="hidden",this.contentWrapperEl.style[this.axis[t].overflowAttr]="hidden",this.el.classList.remove("".concat(this.classNames.scrollable,"-").concat(t))),this.axis[t].isOverflowing?i.style.display="block":i.style.display="none")},e.prototype.showScrollbar=function(t){t===void 0&&(t="y"),this.axis[t].isOverflowing&&!this.axis[t].scrollbar.isVisible&&(zn(this.axis[t].scrollbar.el,this.classNames.visible),this.axis[t].scrollbar.isVisible=!0)},e.prototype.hideScrollbar=function(t){t===void 0&&(t="y"),!this.isDragging&&this.axis[t].isOverflowing&&this.axis[t].scrollbar.isVisible&&(Vn(this.axis[t].scrollbar.el,this.classNames.visible),this.axis[t].scrollbar.isVisible=!1)},e.prototype.hideNativeScrollbar=function(){this.offsetEl&&(this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px",this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px")},e.prototype.onMouseMoveForAxis=function(t){t===void 0&&(t="y");var n=this.axis[t];!n.track.el||!n.scrollbar.el||(n.track.rect=n.track.el.getBoundingClientRect(),n.scrollbar.rect=n.scrollbar.el.getBoundingClientRect(),this.isWithinBounds(n.track.rect)?(this.showScrollbar(t),zn(n.track.el,this.classNames.hover),this.isWithinBounds(n.scrollbar.rect)?zn(n.scrollbar.el,this.classNames.hover):Vn(n.scrollbar.el,this.classNames.hover)):(Vn(n.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)))},e.prototype.onMouseLeaveForAxis=function(t){t===void 0&&(t="y"),Vn(this.axis[t].track.el,this.classNames.hover),Vn(this.axis[t].scrollbar.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)},e.prototype.onDragStart=function(t,n){var i;n===void 0&&(n="y"),this.isDragging=!0;var r=ls(this.el),a=jn(this.el),s=this.axis[n].scrollbar,l=n==="y"?t.pageY:t.pageX;this.axis[n].dragOffset=l-(((i=s.rect)===null||i===void 0?void 0:i[this.axis[n].offsetAttr])||0),this.draggedAxis=n,zn(this.el,this.classNames.dragging),r.addEventListener("mousemove",this.drag,!0),r.addEventListener("mouseup",this.onEndDrag,!0),this.removePreventClickId===null?(r.addEventListener("click",this.preventClick,!0),r.addEventListener("dblclick",this.preventClick,!0)):(a.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},e.prototype.onTrackClick=function(t,n){var i=this,r,a,s,l;n===void 0&&(n="y");var u=this.axis[n];if(!(!this.options.clickOnTrack||!u.scrollbar.el||!this.contentWrapperEl)){t.preventDefault();var c=jn(this.el);this.axis[n].scrollbar.rect=u.scrollbar.el.getBoundingClientRect();var d=this.axis[n].scrollbar,p=(a=(r=d.rect)===null||r===void 0?void 0:r[this.axis[n].offsetAttr])!==null&&a!==void 0?a:0,g=parseInt((l=(s=this.elStyles)===null||s===void 0?void 0:s[this.axis[n].sizeAttr])!==null&&l!==void 0?l:"0px",10),m=this.contentWrapperEl[this.axis[n].scrollOffsetAttr],C=n==="y"?this.mouseY-p:this.mouseX-p,x=C<0?-1:1,w=x===-1?m-g:m+g,S=40,k=function(){i.contentWrapperEl&&(x===-1?m>w&&(m-=S,i.contentWrapperEl[i.axis[n].scrollOffsetAttr]=m,c.requestAnimationFrame(k)):m<w&&(m+=S,i.contentWrapperEl[i.axis[n].scrollOffsetAttr]=m,c.requestAnimationFrame(k)))};k()}},e.prototype.getContentElement=function(){return this.contentEl},e.prototype.getScrollElement=function(){return this.contentWrapperEl},e.prototype.removeListeners=function(){var t=jn(this.el);this.el.removeEventListener("mouseenter",this.onMouseEnter),this.el.removeEventListener("pointerdown",this.onPointerEvent,!0),this.el.removeEventListener("mousemove",this.onMouseMove),this.el.removeEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl&&this.contentWrapperEl.removeEventListener("scroll",this.onScroll),t.removeEventListener("resize",this.onWindowResize),this.mutationObserver&&this.mutationObserver.disconnect(),this.resizeObserver&&this.resizeObserver.disconnect(),this.onMouseMove.cancel(),this.onWindowResize.cancel(),this.onStopScrolling.cancel(),this.onMouseEntered.cancel()},e.prototype.unMount=function(){this.removeListeners()},e.prototype.isWithinBounds=function(t){return this.mouseX>=t.left&&this.mouseX<=t.left+t.width&&this.mouseY>=t.top&&this.mouseY<=t.top+t.height},e.prototype.findChild=function(t,n){var i=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector;return Array.prototype.filter.call(t.children,function(r){return i.call(r,n)})[0]},e.rtlHelpers=null,e.defaultOptions={forceVisible:!1,clickOnTrack:!0,scrollbarMinSize:25,scrollbarMaxSize:0,ariaLabel:"scrollable content",tabIndex:0,classNames:{contentEl:"simplebar-content",contentWrapper:"simplebar-content-wrapper",offset:"simplebar-offset",mask:"simplebar-mask",wrapper:"simplebar-wrapper",placeholder:"simplebar-placeholder",scrollbar:"simplebar-scrollbar",track:"simplebar-track",heightAutoObserverWrapperEl:"simplebar-height-auto-observer-wrapper",heightAutoObserverEl:"simplebar-height-auto-observer",visible:"simplebar-visible",horizontal:"simplebar-horizontal",vertical:"simplebar-vertical",hover:"simplebar-hover",dragging:"simplebar-dragging",scrolling:"simplebar-scrolling",scrollable:"simplebar-scrollable",mouseEntered:"simplebar-mouse-entered"},scrollableNode:null,contentNode:null,autoHide:!0},e.getOptions=Qx,e.helpers=Xx,e})(),Ht=function(){return Ht=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++){t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Ht.apply(this,arguments)};function e0(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]]);return n}var Lo=W.forwardRef(function(e,t){var n=e.children,i=e.scrollableNodeProps,r=i===void 0?{}:i,a=e0(e,["children","scrollableNodeProps"]),s=W.useRef(),l=W.useRef(),u=W.useRef(),c={},d={};Object.keys(a).forEach(function(m){Object.prototype.hasOwnProperty.call($i.defaultOptions,m)?c[m]=a[m]:d[m]=a[m]});var p=Ht(Ht({},$i.defaultOptions.classNames),c.classNames),g=Ht(Ht({},r),{className:"".concat(p.contentWrapper).concat(r.className?" ".concat(r.className):""),tabIndex:c.tabIndex||$i.defaultOptions.tabIndex,role:"region","aria-label":c.ariaLabel||$i.defaultOptions.ariaLabel});return W.useEffect(function(){var m;return l.current=g.ref?g.ref.current:l.current,s.current&&(m=new $i(s.current,Ht(Ht(Ht({},c),l.current&&{scrollableNode:l.current}),u.current&&{contentNode:u.current})),typeof t=="function"?t(m):t&&(t.current=m)),function(){m==null||m.unMount(),m=null,typeof t=="function"&&t(null)}},[]),W.createElement("div",Ht({"data-simplebar":"init",ref:s},d),W.createElement("div",{className:p.wrapper},W.createElement("div",{className:p.heightAutoObserverWrapperEl},W.createElement("div",{className:p.heightAutoObserverEl})),W.createElement("div",{className:p.mask},W.createElement("div",{className:p.offset},typeof n=="function"?n({scrollableNodeRef:l,scrollableNodeProps:Ht(Ht({},g),{ref:l}),contentNodeRef:u,contentNodeProps:{className:p.contentEl,ref:u}}):W.createElement("div",Ht({},g),W.createElement("div",{className:p.contentEl},n)))),W.createElement("div",{className:p.placeholder})),W.createElement("div",{className:"".concat(p.track," ").concat(p.horizontal)},W.createElement("div",{className:p.scrollbar})),W.createElement("div",{className:"".concat(p.track," ").concat(p.vertical)},W.createElement("div",{className:p.scrollbar})))});Lo.displayName="SimpleBar";const gd=M.forwardRef(({size:e="md",color:t="primary",isInvalid:n=!1,isDisabled:i=!1,isReadOnly:r=!1,className:a,children:s,...l},u)=>{const[c,d]=M.useState(!1),[p,g]=M.useState(!1),m={size:e,color:n?"negative":t,isInvalid:n,isDisabled:i,isReadOnly:r,hasMessage:c,setHasMessage:d,hasArea:p,setHasArea:g};return b.jsx(sd.Provider,{value:m,children:b.jsx("div",{ref:u,"data-qui":"Input",className:ce(bx(),a),...l,children:s})})}),md=M.forwardRef(({className:e,children:t,...n},i)=>{const{size:r,color:a,isDisabled:s,isReadOnly:l,hasMessage:u,hasArea:c,isInvalid:d}=gr();return b.jsx("div",{ref:i,"data-qui":"InputGroup",className:ce(yx({size:r,color:a,isDisabled:s,isReadOnly:l,hasMessage:u,hasArea:c,isInvalid:d}),e),...n,children:t})}),vd=M.forwardRef(({className:e,...t},n)=>{const{size:i,color:r,isInvalid:a,isDisabled:s,isReadOnly:l}=gr(),{isDisabled:u,isReadOnly:c,...d}=t;return b.jsx("input",{ref:n,disabled:s||u,readOnly:c||l||!1,"aria-invalid":a,className:ce(wx({size:i,color:r}),e),...d})}),xd=M.forwardRef(({className:e,wrapperClassName:t,autoHeight:n,...i},r)=>{const{size:a,color:s,isInvalid:l,isDisabled:u,setHasArea:c}=gr(),d=M.useRef(null),p=r||d,g=M.useRef(null);M.useEffect(()=>(c(!0),()=>{c(!1)}),[c]);const m=M.useCallback(()=>{if(d.current){const E=d.current;E.style.height="auto",E.style.height=`${E.scrollHeight}px`}},[]),C=E=>{var A;m(),(A=i.onInput)==null||A.call(i,E)};M.useEffect(()=>{m()},[m,i.value]),M.useEffect(()=>{n&&g.current&&g.current.style.removeProperty("height")},[n]);const x=E=>{E.preventDefault();const A=g.current;if(!A)return;const y=E.clientY,f=A.offsetHeight,T=F=>{const D=f+(F.clientY-y);D>30&&(A.style.height=D+"px")},R=()=>{document.removeEventListener("mousemove",T),document.removeEventListener("mouseup",R)};document.addEventListener("mousemove",T),document.addEventListener("mouseup",R)},{isDisabled:w,isReadOnly:S,...k}=i;return b.jsxs("div",{ref:g,className:ce("w-full relative",!n&&!i.rows&&"h-[120px]",t),children:[n?b.jsx("textarea",{ref:p,rows:1,className:ce(Cu({size:a,color:s}),e),disabled:u||w,onInput:C,readOnly:S||!1,"aria-invalid":l,style:{overflow:"hidden"},...k}):b.jsx(Lo,{style:{height:"100%"},children:b.jsx("textarea",{ref:p,rows:1,className:ce(Cu({size:a,color:s}),e),disabled:u||w,onInput:C,readOnly:S||!1,"aria-invalid":l,style:{height:"auto",overflow:"hidden",width:"100%"},...k})}),!n&&b.jsx("div",{className:"absolute right-0 bottom-0 -translate-x-full -translate-y-full size-1.75 text-sm cursor-se-resize z-10",onMouseDown:x,children:b.jsx(lv,{})})]})}),t0=M.forwardRef(({isAction:e=!1,className:t,isDisabled:n=!1,style:i,children:r,...a},s)=>{const{size:l,color:u,isDisabled:c}=gr(),d=n||c,p=kx({size:l,color:u,isDisabled:d,isAction:e});return b.jsx("div",{ref:s,"data-qui":"InputIcon",className:ce(p,t),style:i,role:e||a.onClick?"button":void 0,tabIndex:(e||a.onClick)&&!d?0:void 0,"aria-disabled":d,...a,children:r})}),bd=M.forwardRef(({icon:e,className:t,children:n,...i},r)=>{const{size:a,color:s,setHasMessage:l,isDisabled:u}=gr();return M.useEffect(()=>(l(!0),()=>{l(!1)}),[l]),b.jsxs("div",{ref:r,"data-qui":"InputMessage",role:"alert",className:ce(Sx({size:a,color:s,isDisabled:u}),t),...i,children:[e!==void 0&&b.jsx("div",{className:ce(Ex({size:a}),t),children:e}),b.jsx("p",{children:n})]})});gd.displayName="InputRoot";md.displayName="InputGroup";vd.displayName="InputField";xd.displayName="InputArea";t0.displayName="InputIcon";bd.displayName="InputMessage";const nn={Root:gd,Group:md,Field:vd,Area:xd,Message:bd},ar={primary:{container:"bg-primary-light",text:"text-primary-dark",icon:"text-primary-dark",button:"hover:bg-primary-hover hover:text-body"},positive:{container:"bg-positive-light",text:"text-positive-dark",icon:"text-positive-dark",button:"hover:bg-positive hover:text-body"},negative:{container:"bg-negative-light",text:"text-negative-dark",icon:"text-negative-dark",button:"hover:bg-negative hover:text-body"},warning:{container:"bg-warning-light",text:"text-warning-dark",icon:"text-warning-dark",button:"hover:bg-warning hover:text-body"}},n0=({color:e})=>ce("min-h-6 absolute py-0.5 px-1 rounded whitespace-nowrap flex items-center gap-1",ar[e].container,ar[e].icon),i0=({color:e})=>ce("text-xs font-medium leading-3",ar[e].text),r0=({color:e})=>ce("p-0.5 rounded cursor-pointer",ar[e].button,ar[e].icon),bt=({label:e,color:t="primary",position:n="up",showCloseButton:i=!1,icon:r,children:a,delay:s=0,trigger:l="hover",className:u,container:c,isHidden:d=!1})=>{const[p,g]=M.useState(!1),[m,C]=M.useState(!1),[x,w]=M.useState({position:n,transform:""}),S=M.useRef(null),k=M.useRef(null),E=M.useRef(null),A=p&&!d;M.useEffect(()=>{A||C(!1)},[A]);const y=M.useCallback(()=>{if(!S.current||!k.current)return;const K=S.current.getBoundingClientRect(),j=k.current.getBoundingClientRect(),ae=window.innerWidth,Z=window.innerHeight,se=window.scrollX,ee=window.scrollY,pe=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth,ae),I=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight,Z),V=4;let te=n,O={position:te,transform:""};const $=ie=>{const{top:oe,left:G,width:ne,height:H}=K,de=oe+ee,X=G+se;switch(ie){case"up":return{top:`${de-j.height-V}px`,left:`${X+ne/2}px`,transform:"translateX(-50%)"};case"up-start":return{top:`${de-j.height-V}px`,left:`${X}px`,transform:"translateX(0)"};case"up-end":return{top:`${de-j.height-V}px`,left:`${X+ne-j.width}px`,transform:"translateX(0)"};case"down":return{top:`${de+H+V}px`,left:`${X+ne/2}px`,transform:"translateX(-50%)"};case"down-start":return{top:`${de+H+V}px`,left:`${X}px`,transform:"translateX(0)"};case"down-end":return{top:`${de+H+V}px`,left:`${X+ne-j.width}px`,transform:"translateX(0)"};case"left":return{top:`${de+H/2}px`,left:`${X-j.width-V}px`,transform:"translateY(-50%)"};case"left-start":return{top:`${de}px`,left:`${X-j.width-V}px`,transform:"translateY(0)"};case"left-end":return{top:`${de+H-j.height}px`,left:`${X-j.width-V}px`,transform:"translateY(0)"};case"right":return{top:`${de+H/2}px`,left:`${X+ne+V}px`,transform:"translateY(-50%)"};case"right-start":return{top:`${de}px`,left:`${X+ne+V}px`,transform:"translateY(0)"};case"right-end":return{top:`${de+H-j.height}px`,left:`${X+ne+V}px`,transform:"translateY(0)"};default:return{}}},z={up:{fits:K.top-j.height-V>=0},"up-start":{fits:K.top-j.height-V>=0&&K.left+j.width<=ae},"up-end":{fits:K.top-j.height-V>=0&&K.right-j.width>=0},down:{fits:K.bottom+j.height+V<=Z&&K.bottom+j.height+V<=I},"down-start":{fits:K.bottom+j.height+V<=Z&&K.bottom+j.height+V<=I&&K.left+j.width<=ae},"down-end":{fits:K.bottom+j.height+V<=Z&&K.bottom+j.height+V<=I&&K.right-j.width>=0},left:{fits:K.left-j.width-V>=0},"left-start":{fits:K.left-j.width-V>=0&&K.top+j.height<=Z},"left-end":{fits:K.left-j.width-V>=0&&K.bottom-j.height>=0},right:{fits:K.right+j.width+V<=ae&&K.right+j.width+V<=pe},"right-start":{fits:K.right+j.width+V<=ae&&K.right+j.width+V<=pe&&K.top+j.height<=Z},"right-end":{fits:K.right+j.width+V<=ae&&K.right+j.width+V<=pe&&K.bottom-j.height>=0}},B=K.left+K.width/2-j.width/2,U=K.left+K.width/2+j.width/2;if((n==="up"||n==="down")&&(B<0||U>ae)&&(z[n].fits=!1),z[n].fits){const ie=$(n);O={position:n,...ie,transform:ie.transform||""}}else{const ie=["up","up-start","up-end","down","down-start","down-end","right","right-start","right-end","left","left-start","left-end"].find(oe=>z[oe].fits);if(ie){te=ie;const oe=$(ie);O={position:te,...oe,transform:oe.transform||""}}else{const oe={up:K.top,"up-start":K.top,"up-end":K.top,down:Math.min(Z-K.bottom,I-K.bottom),"down-start":Math.min(Z-K.bottom,I-K.bottom),"down-end":Math.min(Z-K.bottom,I-K.bottom),left:K.left,"left-start":K.left,"left-end":K.left,right:Math.min(ae-K.right,pe-K.right),"right-start":Math.min(ae-K.right,pe-K.right),"right-end":Math.min(ae-K.right,pe-K.right)},G=Object.entries(oe).reduce((H,[de,X])=>X>H.space?{position:de,space:X}:H,{position:"up",space:0}).position;te=G;const ne=$(G);O={position:te,...ne,transform:ne.transform||""}}}w(O)},[n]),f=()=>{l==="click"&&(g(!0),E.current&&clearTimeout(E.current),E.current=setTimeout(()=>{m||g(!1)},s))},T=K=>{K.stopPropagation(),g(!1),E.current&&clearTimeout(E.current)},R=()=>{C(!0),E.current&&clearTimeout(E.current)},F=()=>{C(!1),p&&(E.current=setTimeout(()=>{g(!1)},s))},D=()=>{l==="hover"&&(g(!0),E.current&&clearTimeout(E.current))},q=()=>{l==="hover"&&(E.current=setTimeout(()=>{g(!1)},s))};M.useEffect(()=>{if(p){const K=requestAnimationFrame(()=>{y()});return()=>cancelAnimationFrame(K)}},[p,e,y]),M.useEffect(()=>{if(p){const K=setTimeout(()=>y(),0);return()=>clearTimeout(K)}},[p,y]),M.useEffect(()=>{const K=()=>{p&&y()},j=()=>{p&&y()};return window.addEventListener("resize",K),window.addEventListener("scroll",j,!0),()=>{window.removeEventListener("resize",K),window.removeEventListener("scroll",j,!0),E.current&&clearTimeout(E.current)}},[p,y]);const J=c||(typeof document<"u"?document.body:null);return J?b.jsxs(b.Fragment,{children:[b.jsx("div",{"data-qui":"Tooltip",ref:S,onClick:f,onMouseEnter:D,onMouseLeave:q,className:ce("relative inline-flex items-center",u),children:a}),p&&!d&&!!e&&ui.createPortal(b.jsxs("div",{ref:k,role:"tooltip",className:n0({color:t}),style:{position:"absolute",left:x.left??0,top:x.top??0,transform:x.transform,zIndex:1e3,visibility:x.left?"visible":"hidden",pointerEvents:i?"auto":"none"},onMouseEnter:i?R:void 0,onMouseLeave:i?F:void 0,children:[r&&b.jsx("span",{"data-testid":"tooltip-icon",children:r}),b.jsx("div",{className:i0({color:t}),children:e}),i&&b.jsx("div",{onClick:T,className:r0({color:t}),role:"button",children:b.jsx(Ra,{})})]}),J)]}):null};var Ou;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(Ou||(Ou={}));const a0=Object.freeze({x:0,y:0});var Ti;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(Ti||(Ti={}));var Pu;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(Pu||(Pu={}));var Jt;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"})(Jt||(Jt={}));Jt.Space,Jt.Enter,Jt.Esc,Jt.Space,Jt.Enter,Jt.Tab;var Ru;(function(e){e[e.RightClick=2]="RightClick"})(Ru||(Ru={}));var Mu;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(Mu||(Mu={}));var Lu;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(Lu||(Lu={}));Ti.Backward+"",Ti.Forward+"",Ti.Backward+"",Ti.Forward+"";var eo;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(eo||(eo={}));var to;(function(e){e.Optimized="optimized"})(to||(to={}));eo.WhileDragging,to.Optimized;({...a0});var Du;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(Du||(Du={}));Jt.Down,Jt.Right,Jt.Up,Jt.Left;const yd={sm:{padding:"px-4 py-0.5",text:"text-xxs",icon:"w-3 h-3",gap:"gap-0.5",badge:"min-w-3.5 h-3.5 text-2"},md:{padding:"px-6 py-1",text:"text-s",icon:"w-4 h-4",gap:"gap-1",badge:"min-w-4.5 h-4.5 text-xxs"},lg:{padding:"px-8 py-1.5",text:"text-base",icon:"w-5 h-5",gap:"gap-1.5",badge:"min-w-5 h-5 text-xs"}},s0={primary:{active:{bg:"bg-primary",text:"text-button-text",border:"border-primary"},inactive:{bg:"bg-input-bg",text:"text-inactive-text",border:"border-transparent"},hover:{bg:"hover:bg-primary-hover",text:"hover:text-button-text"}},positive:{active:{bg:"bg-positive",text:"text-button-text",border:"border-positive"},inactive:{bg:"bg-input-bg",text:"text-inactive-text",border:"border-transparent"},hover:{bg:"hover:bg-positive-hover",text:"hover:text-body"}},warning:{active:{bg:"bg-warning",text:"text-warning-text",border:"border-warning"},inactive:{bg:"bg-input-bg",text:"text-inactive-text",border:"border-transparent"},hover:{bg:"hover:bg-warning-hover",text:"hover:text-body"}},negative:{active:{bg:"bg-negative",text:"text-button-text",border:"border-negative"},inactive:{bg:"bg-input-bg",text:"text-inactive-text",border:"border-transparent"},hover:{bg:"hover:bg-negative-hover",text:"hover:text-body"}}},o0=(e,t,n,i)=>{const r=s0[e],a=yd[t],s="relative inline-flex items-center font-medium cursor-pointer transition-all duration-200";return i?ce(s,a.padding,a.text,a.gap,"pointer-events-none cursor-not-allowed opacity-50","bg-card","text-inactive-text"):n?ce(s,a.padding,a.text,a.gap,r.active.bg,r.active.text,"shadow-xs"):ce(s,a.padding,a.text,a.gap,r.inactive.bg,r.inactive.text,r.hover.bg,r.hover.text)},l0=(e,t)=>ce("flex items-center justify-center",yd[e].icon,{"opacity-50":t}),u0=()=>ce("whitespace-nowrap"),wd=(e,t)=>{const n=ce("group flex items-center justify-between space-x-4","rounded-t px-2 text-xs","focus:outline-hidden");return e&&!t?ce(n,"z-2 border border-b-0 border-tab-border","bg-tab-active-bg font-semibold text-tab-active-fg"):t&&!e?ce(n,"border border-transparent bg-tab-inactive-bg text-inactive-text"):ce(n,"border border-transparent bg-tab-inactive-bg text-tab-inactive-fg","hover:text-tab-active-fg")},c0=M.createContext(void 0),h0=M.forwardRef(({value:e,label:t,icon:n,disabled:i,children:r,className:a,onClick:s,active:l,content:u,...c},d)=>{const p=M.useContext(c0);if(!p)return null;const{activeTab:g,onTabChange:m,variant:C,color:x,size:w,showIcons:S,disabled:k}=p,E=l!==void 0?l:g===e,A=i||k,y=f=>{A||(m(e),s==null||s(f))};return C==="file"?b.jsx("div",{"data-qui":"FileTabItem",className:ce(wd(E,!1),"cursor-pointer",a),onClick:f=>!A&&y(f),children:r||b.jsx(b.Fragment,{children:b.jsxs("span",{className:"flex items-center gap-2",children:[n,b.jsx("span",{children:t})]})})}):b.jsxs("button",{ref:d,"data-qui":"TabItem",type:"button",role:"tab","aria-selected":E,"aria-disabled":A,className:ce(o0(x,w,E,A||!1),a),onClick:y,disabled:A,...c,children:[S&&n&&b.jsx("span",{className:l0(w,A||!1),children:n}),b.jsx("span",{className:u0(),children:r||t})]})});h0.displayName="TabItem";const d0=M.forwardRef(({isActive:e=!1,isDesactive:t=!1,children:n,...i},r)=>b.jsx("div",{"data-qui":"TabNavContainer",className:wd(e,t),ref:r,...i,children:n}));d0.displayName="TabNavContainer";var ht=function(){return ht=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++){t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},ht.apply(this,arguments)},Fu={width:"100%",height:"10px",top:"0px",left:"0px",cursor:"row-resize"},ju={width:"10px",height:"100%",top:"0px",left:"0px",cursor:"col-resize"},Rr={width:"20px",height:"20px",position:"absolute",zIndex:1},p0={top:ht(ht({},Fu),{top:"-5px"}),right:ht(ht({},ju),{left:void 0,right:"-5px"}),bottom:ht(ht({},Fu),{top:void 0,bottom:"-5px"}),left:ht(ht({},ju),{left:"-5px"}),topRight:ht(ht({},Rr),{right:"-10px",top:"-10px",cursor:"ne-resize"}),bottomRight:ht(ht({},Rr),{right:"-10px",bottom:"-10px",cursor:"se-resize"}),bottomLeft:ht(ht({},Rr),{left:"-10px",bottom:"-10px",cursor:"sw-resize"}),topLeft:ht(ht({},Rr),{left:"-10px",top:"-10px",cursor:"nw-resize"})},f0=M.memo(function(e){var t=e.onResizeStart,n=e.direction,i=e.children,r=e.replaceStyles,a=e.className,s=M.useCallback(function(c){t(c,n)},[t,n]),l=M.useCallback(function(c){t(c,n)},[t,n]),u=M.useMemo(function(){return ht(ht({position:"absolute",userSelect:"none"},p0[n]),r??{})},[r,n]);return b.jsx("div",{className:a||void 0,style:u,onMouseDown:s,onTouchStart:l,children:i})}),g0=(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function i(){this.constructor=t}t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}})(),vn=function(){return vn=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++){t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},vn.apply(this,arguments)},m0={width:"auto",height:"auto"},Mr=function(e,t,n){return Math.max(Math.min(e,n),t)},zu=function(e,t,n){var i=Math.round(e/t);return i*t+n*(i-1)},yi=function(e,t){return new RegExp(e,"i").test(t)},Lr=function(e){return!!(e.touches&&e.touches.length)},v0=function(e){return!!((e.clientX||e.clientX===0)&&(e.clientY||e.clientY===0))},Vu=function(e,t,n){n===void 0&&(n=0);var i=t.reduce(function(a,s,l){return Math.abs(s-e)<Math.abs(t[a]-e)?l:a},0),r=Math.abs(t[i]-e);return n===0||r<n?t[i]:e},us=function(e){return e=e.toString(),e==="auto"||e.endsWith("px")||e.endsWith("%")||e.endsWith("vh")||e.endsWith("vw")||e.endsWith("vmax")||e.endsWith("vmin")?e:"".concat(e,"px")},Dr=function(e,t,n,i){if(e&&typeof e=="string"){if(e.endsWith("px"))return Number(e.replace("px",""));if(e.endsWith("%")){var r=Number(e.replace("%",""))/100;return t*r}if(e.endsWith("vw")){var r=Number(e.replace("vw",""))/100;return n*r}if(e.endsWith("vh")){var r=Number(e.replace("vh",""))/100;return i*r}}return e},x0=function(e,t,n,i,r,a,s){return i=Dr(i,e.width,t,n),r=Dr(r,e.height,t,n),a=Dr(a,e.width,t,n),s=Dr(s,e.height,t,n),{maxWidth:typeof i>"u"?void 0:Number(i),maxHeight:typeof r>"u"?void 0:Number(r),minWidth:typeof a>"u"?void 0:Number(a),minHeight:typeof s>"u"?void 0:Number(s)}},b0=function(e){return Array.isArray(e)?e:[e,e]},y0=["as","ref","style","className","grid","gridGap","snap","bounds","boundsByDirection","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],Bu="__resizable_base__",w0=(function(e){g0(t,e);function t(n){var i,r,a,s,l=e.call(this,n)||this;return l.ratio=1,l.resizable=null,l.parentLeft=0,l.parentTop=0,l.resizableLeft=0,l.resizableRight=0,l.resizableTop=0,l.resizableBottom=0,l.targetLeft=0,l.targetTop=0,l.delta={width:0,height:0},l.appendBase=function(){if(!l.resizable||!l.window)return null;var u=l.parentNode;if(!u)return null;var c=l.window.document.createElement("div");return c.style.width="100%",c.style.height="100%",c.style.position="absolute",c.style.transform="scale(0, 0)",c.style.left="0",c.style.flex="0 0 100%",c.classList?c.classList.add(Bu):c.className+=Bu,u.appendChild(c),c},l.removeBase=function(u){var c=l.parentNode;c&&c.removeChild(u)},l.state={isResizing:!1,width:(r=(i=l.propsSize)===null||i===void 0?void 0:i.width)!==null&&r!==void 0?r:"auto",height:(s=(a=l.propsSize)===null||a===void 0?void 0:a.height)!==null&&s!==void 0?s:"auto",direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},l.onResizeStart=l.onResizeStart.bind(l),l.onMouseMove=l.onMouseMove.bind(l),l.onMouseUp=l.onMouseUp.bind(l),l}return Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"window",{get:function(){return!this.resizable||!this.resizable.ownerDocument?null:this.resizable.ownerDocument.defaultView},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||m0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){var n=0,i=0;if(this.resizable&&this.window){var r=this.resizable.offsetWidth,a=this.resizable.offsetHeight,s=this.resizable.style.position;s!=="relative"&&(this.resizable.style.position="relative"),n=this.resizable.style.width!=="auto"?this.resizable.offsetWidth:r,i=this.resizable.style.height!=="auto"?this.resizable.offsetHeight:a,this.resizable.style.position=s}return{width:n,height:i}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sizeStyle",{get:function(){var n=this,i=this.props.size,r=function(l){var u;if(typeof n.state[l]>"u"||n.state[l]==="auto")return"auto";if(n.propsSize&&n.propsSize[l]&&!((u=n.propsSize[l])===null||u===void 0)&&u.toString().endsWith("%")){if(n.state[l].toString().endsWith("%"))return n.state[l].toString();var c=n.getParentSize(),d=Number(n.state[l].toString().replace("px","")),p=d/c[l]*100;return"".concat(p,"%")}return us(n.state[l])},a=i&&typeof i.width<"u"&&!this.state.isResizing?us(i.width):r("width"),s=i&&typeof i.height<"u"&&!this.state.isResizing?us(i.height):r("height");return{width:a,height:s}},enumerable:!1,configurable:!0}),t.prototype.getParentSize=function(){if(!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var n=this.appendBase();if(!n)return{width:0,height:0};var i=!1,r=this.parentNode.style.flexWrap;r!=="wrap"&&(i=!0,this.parentNode.style.flexWrap="wrap"),n.style.position="relative",n.style.minWidth="100%",n.style.minHeight="100%";var a={width:n.offsetWidth,height:n.offsetHeight};return i&&(this.parentNode.style.flexWrap=r),this.removeBase(n),a},t.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove,{capture:!0,passive:!1}),this.window.addEventListener("touchend",this.onMouseUp))},t.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove,!0),this.window.removeEventListener("touchend",this.onMouseUp))},t.prototype.componentDidMount=function(){if(!(!this.resizable||!this.window)){var n=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:n.flexBasis!=="auto"?n.flexBasis:void 0})}},t.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},t.prototype.createSizeForCssProperty=function(n,i){var r=this.propsSize&&this.propsSize[i];return this.state[i]==="auto"&&this.state.original[i]===n&&(typeof r>"u"||r==="auto")?"auto":n},t.prototype.calculateNewMaxFromBoundary=function(n,i){var r=this.props.boundsByDirection,a=this.state.direction,s=r&&yi("left",a),l=r&&yi("top",a),u,c;if(this.props.bounds==="parent"){var d=this.parentNode;d&&(u=s?this.resizableRight-this.parentLeft:d.offsetWidth+(this.parentLeft-this.resizableLeft),c=l?this.resizableBottom-this.parentTop:d.offsetHeight+(this.parentTop-this.resizableTop))}else this.props.bounds==="window"?this.window&&(u=s?this.resizableRight:this.window.innerWidth-this.resizableLeft,c=l?this.resizableBottom:this.window.innerHeight-this.resizableTop):this.props.bounds&&(u=s?this.resizableRight-this.targetLeft:this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),c=l?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return u&&Number.isFinite(u)&&(n=n&&n<u?n:u),c&&Number.isFinite(c)&&(i=i&&i<c?i:c),{maxWidth:n,maxHeight:i}},t.prototype.calculateNewSizeFromDirection=function(n,i){var r=this.props.scale||1,a=b0(this.props.resizeRatio||1),s=a[0],l=a[1],u=this.state,c=u.direction,d=u.original,p=this.props,g=p.lockAspectRatio,m=p.lockAspectRatioExtraHeight,C=p.lockAspectRatioExtraWidth,x=d.width,w=d.height,S=m||0,k=C||0;return yi("right",c)&&(x=d.width+(n-d.x)*s/r,g&&(w=(x-k)/this.ratio+S)),yi("left",c)&&(x=d.width-(n-d.x)*s/r,g&&(w=(x-k)/this.ratio+S)),yi("bottom",c)&&(w=d.height+(i-d.y)*l/r,g&&(x=(w-S)*this.ratio+k)),yi("top",c)&&(w=d.height-(i-d.y)*l/r,g&&(x=(w-S)*this.ratio+k)),{newWidth:x,newHeight:w}},t.prototype.calculateNewSizeFromAspectRatio=function(n,i,r,a){var s=this.props,l=s.lockAspectRatio,u=s.lockAspectRatioExtraHeight,c=s.lockAspectRatioExtraWidth,d=typeof a.width>"u"?10:a.width,p=typeof r.width>"u"||r.width<0?n:r.width,g=typeof a.height>"u"?10:a.height,m=typeof r.height>"u"||r.height<0?i:r.height,C=u||0,x=c||0;if(l){var w=(g-C)*this.ratio+x,S=(m-C)*this.ratio+x,k=(d-x)/this.ratio+C,E=(p-x)/this.ratio+C,A=Math.max(d,w),y=Math.min(p,S),f=Math.max(g,k),T=Math.min(m,E);n=Mr(n,A,y),i=Mr(i,f,T)}else n=Mr(n,d,p),i=Mr(i,g,m);return{newWidth:n,newHeight:i}},t.prototype.setBoundingClientRect=function(){var n=1/(this.props.scale||1);if(this.props.bounds==="parent"){var i=this.parentNode;if(i){var r=i.getBoundingClientRect();this.parentLeft=r.left*n,this.parentTop=r.top*n}}if(this.props.bounds&&typeof this.props.bounds!="string"){var a=this.props.bounds.getBoundingClientRect();this.targetLeft=a.left*n,this.targetTop=a.top*n}if(this.resizable){var s=this.resizable.getBoundingClientRect(),l=s.left,u=s.top,c=s.right,d=s.bottom;this.resizableLeft=l*n,this.resizableRight=c*n,this.resizableTop=u*n,this.resizableBottom=d*n}},t.prototype.onResizeStart=function(n,i){if(!(!this.resizable||!this.window)){var r=0,a=0;if(n.nativeEvent&&v0(n.nativeEvent)?(r=n.nativeEvent.clientX,a=n.nativeEvent.clientY):n.nativeEvent&&Lr(n.nativeEvent)&&(r=n.nativeEvent.touches[0].clientX,a=n.nativeEvent.touches[0].clientY),this.props.onResizeStart&&this.resizable){var s=this.props.onResizeStart(n,i,this.resizable);if(s===!1)return}this.props.size&&(typeof this.props.size.height<"u"&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),typeof this.props.size.width<"u"&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio=typeof this.props.lockAspectRatio=="number"?this.props.lockAspectRatio:this.size.width/this.size.height;var l,u=this.window.getComputedStyle(this.resizable);if(u.flexBasis!=="auto"){var c=this.parentNode;if(c){var d=this.window.getComputedStyle(c).flexDirection;this.flexDir=d.startsWith("row")?"row":"column",l=u.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var p={original:{x:r,y:a,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:vn(vn({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(n.target).cursor||"auto"}),direction:i,flexBasis:l};this.setState(p)}},t.prototype.onMouseMove=function(n){var i=this;if(!(!this.state.isResizing||!this.resizable||!this.window)){if(this.window.TouchEvent&&Lr(n))try{n.preventDefault(),n.stopPropagation()}catch{}var r=this.props,a=r.maxWidth,s=r.maxHeight,l=r.minWidth,u=r.minHeight,c=Lr(n)?n.touches[0].clientX:n.clientX,d=Lr(n)?n.touches[0].clientY:n.clientY,p=this.state,g=p.direction,m=p.original,C=p.width,x=p.height,w=this.getParentSize(),S=x0(w,this.window.innerWidth,this.window.innerHeight,a,s,l,u);a=S.maxWidth,s=S.maxHeight,l=S.minWidth,u=S.minHeight;var k=this.calculateNewSizeFromDirection(c,d),E=k.newHeight,A=k.newWidth,y=this.calculateNewMaxFromBoundary(a,s);this.props.snap&&this.props.snap.x&&(A=Vu(A,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(E=Vu(E,this.props.snap.y,this.props.snapGap));var f=this.calculateNewSizeFromAspectRatio(A,E,{width:y.maxWidth,height:y.maxHeight},{width:l,height:u});if(A=f.newWidth,E=f.newHeight,this.props.grid){var T=zu(A,this.props.grid[0],this.props.gridGap?this.props.gridGap[0]:0),R=zu(E,this.props.grid[1],this.props.gridGap?this.props.gridGap[1]:0),F=this.props.snapGap||0,D=F===0||Math.abs(T-A)<=F?T:A,q=F===0||Math.abs(R-E)<=F?R:E;A=D,E=q}var J={width:A-m.width,height:E-m.height};if(this.delta=J,C&&typeof C=="string"){if(C.endsWith("%")){var K=A/w.width*100;A="".concat(K,"%")}else if(C.endsWith("vw")){var j=A/this.window.innerWidth*100;A="".concat(j,"vw")}else if(C.endsWith("vh")){var ae=A/this.window.innerHeight*100;A="".concat(ae,"vh")}}if(x&&typeof x=="string"){if(x.endsWith("%")){var K=E/w.height*100;E="".concat(K,"%")}else if(x.endsWith("vw")){var j=E/this.window.innerWidth*100;E="".concat(j,"vw")}else if(x.endsWith("vh")){var ae=E/this.window.innerHeight*100;E="".concat(ae,"vh")}}var Z={width:this.createSizeForCssProperty(A,"width"),height:this.createSizeForCssProperty(E,"height")};this.flexDir==="row"?Z.flexBasis=Z.width:this.flexDir==="column"&&(Z.flexBasis=Z.height);var se=this.state.width!==Z.width,ee=this.state.height!==Z.height,pe=this.state.flexBasis!==Z.flexBasis,I=se||ee||pe;I&&ui.flushSync(function(){i.setState(Z)}),this.props.onResize&&I&&this.props.onResize(n,g,this.resizable,J)}},t.prototype.onMouseUp=function(n){var i,r,a=this.state,s=a.isResizing,l=a.direction;a.original,!(!s||!this.resizable)&&(this.props.onResizeStop&&this.props.onResizeStop(n,l,this.resizable,this.delta),this.props.size&&this.setState({width:(i=this.props.size.width)!==null&&i!==void 0?i:"auto",height:(r=this.props.size.height)!==null&&r!==void 0?r:"auto"}),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:vn(vn({},this.state.backgroundStyle),{cursor:"auto"})}))},t.prototype.updateSize=function(n){var i,r;this.setState({width:(i=n.width)!==null&&i!==void 0?i:"auto",height:(r=n.height)!==null&&r!==void 0?r:"auto"})},t.prototype.renderResizer=function(){var n=this,i=this.props,r=i.enable,a=i.handleStyles,s=i.handleClasses,l=i.handleWrapperStyle,u=i.handleWrapperClass,c=i.handleComponent;if(!r)return null;var d=Object.keys(r).map(function(p){return r[p]!==!1?b.jsx(f0,{direction:p,onResizeStart:n.onResizeStart,replaceStyles:a&&a[p],className:s&&s[p],children:c&&c[p]?c[p]:null},p):null});return b.jsx("div",{className:u,style:l,children:d})},t.prototype.render=function(){var n=this,i=Object.keys(this.props).reduce(function(s,l){return y0.indexOf(l)!==-1||(s[l]=n.props[l]),s},{}),r=vn(vn(vn({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});this.state.flexBasis&&(r.flexBasis=this.state.flexBasis);var a=this.props.as||"div";return b.jsxs(a,vn({style:r,className:this.props.className},i,{ref:function(s){s&&(n.resizable=s)},children:[this.state.isResizing&&b.jsx("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer()]}))},t.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],gridGap:[0,0],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},t})(M.PureComponent);const k0={0:"bg-panel-0",1:"bg-panel-1",2:"bg-panel-2",3:"bg-panel-3",4:"bg-panel-4",5:"bg-panel-5"},S0={tabs:"border-tab-border",primary:"border-primary",negative:"border-input-error-border",positive:"border-positive",light:"border-panel-border-subtle",default:"border-panel-border"},kd=({depth:e=0,className:t,borderType:n,disabled:i})=>ce("transition-colors duration-200",{"text-body":!i,"text-inactive-text":i},n?S0[n]:"border-panel-border",k0[e],t),E0=e=>{if(!e)return{};const t={},n=e.match(/min-w-\[(\d+)px\]/);n&&(t.minWidth=parseInt(n[1],10));const i=e.match(/max-w-\[(\d+)px\]/);i&&(t.maxWidth=parseInt(i[1],10));const r=e.match(/min-h-\[(\d+)px\]/);r&&(t.minHeight=parseInt(r[1],10));const a=e.match(/max-h-\[(\d+)px\]/);return a&&(t.maxHeight=parseInt(a[1],10)),t},C0=M.forwardRef(({children:e,width:t,height:n,minWidth:i=10,minHeight:r=10,maxWidth:a,maxHeight:s,defaultWidth:l,defaultHeight:u,defaultSize:c,size:d,grid:p,snap:g,lockAspectRatio:m=!1,enable:C,handleStyles:x={},handleClasses:w={},handleComponent:S={},style:k={},className:E,onResizeStart:A,onResize:y,onResizeStop:f,scale:T=1,bounds:R,snapGap:F,as:D="div",depth:q,disabled:J},K)=>{const j=kd({depth:q,className:E,disabled:J}),ae=E0(E),Z=d?{size:d}:t!==void 0||n!==void 0?{size:{width:t??"auto",height:n??"auto"}}:{},se=c?{defaultSize:c}:l!==void 0||u!==void 0?{defaultSize:{width:l??"auto",height:u??"auto"}}:{},ee=M.useRef(null);return M.useImperativeHandle(K,()=>{var pe;return(pe=ee.current)==null?void 0:pe.resizable}),b.jsx(w0,{"data-qui":"Resizable",ref:ee,...Z,...se,minWidth:i??ae.minWidth,minHeight:r??ae.minHeight,maxWidth:a??ae.maxWidth,maxHeight:s??ae.maxHeight,grid:p,snap:g,lockAspectRatio:m,enable:C,handleStyles:x,handleClasses:w,handleComponent:S,style:k,className:ce("relative box-border",j),onResizeStart:A,onResize:y,onResizeStop:f,scale:T,bounds:R,snapGap:F,as:D,children:e})});C0.displayName="Resizable";const wi={sm:{track:"h-4 w-7",thumb:"size-3",thumbUnchecked:"left-0.5",thumbChecked:"left-3.5",label:"text-xs",gap:"gap-2"},md:{track:"h-5 w-9",thumb:"size-4",thumbUnchecked:"left-0.5",thumbChecked:"left-4.5",label:"text-sm",gap:"gap-2.5"},lg:{track:"h-6 w-11",thumb:"size-5",thumbUnchecked:"left-0.5",thumbChecked:"left-5.5",label:"text-base",gap:"gap-3"}},Fr={primary:{bg:"bg-primary",thumb:"group-hover:bg-primary-light",icon:"text-primary"},positive:{bg:"bg-positive",thumb:"group-hover:bg-positive-light",icon:"text-positive"},warning:{bg:"bg-warning",thumb:"group-hover:bg-warning-light",icon:"text-warning"},negative:{bg:"bg-negative",thumb:"group-hover:bg-negative-light",icon:"text-negative"}},I0=(e,t,n,i,r,a)=>({container:ce("inline-flex items-center",wi[e].gap,a),track:ce("relative inline-flex items-center shrink-0 group","transition-colors duration-200 ease-in-out","focus:outline-hidden focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2","border border-input-border rounded-full justify-between px-0.5",wi[e].track,{[Fr[t].bg]:n&&!i&&!r,"bg-input-bg":!n&&!i||r,"bg-panel cursor-not-allowed":i,"cursor-pointer":!i}),thumb:ce("bg-input-text pointer-events-none inline-flex items-center justify-center shadow-xs","transition-all duration-200 ease-in-out","rounded-full absolute",wi[e].thumb,n?wi[e].thumbChecked:wi[e].thumbUnchecked,{[Fr[t].thumb]:!i,"bg-canvas-subtle":i}),iconLeft:ce("flex items-center justify-center z-10 w-1/2 p-0.5",{[Fr[t].icon]:!n&&!i,"text-panel-subtle":i||n}),iconRight:ce("flex items-center justify-center z-10 w-1/2 p-0.5",{[Fr[t].icon]:n&&!i,"text-panel-subtle":i||!n}),label:ce("font-medium text-body",wi[e].label,{"cursor-pointer":!i,"cursor-not-allowed text-muted":i})}),Sd=M.forwardRef(({label:e,checked:t,defaultChecked:n=!1,disabled:i=!1,size:r="md",color:a="primary",icons:s,onChange:l,className:u,id:c,name:d,...p},g)=>{const[m,C]=M.useState(n),x=t!==void 0,w=x?t:m,S=()=>{const E=!w;x||C(E),l==null||l(E)},k=I0(r,a,w,i,!!s,u);return b.jsxs("div",{"data-qui":"Toggle",className:k.container,children:[e&&b.jsx("label",{htmlFor:c,className:k.label,children:e}),b.jsxs("button",{ref:g,...p,type:"button",role:"switch","aria-checked":w,"aria-label":e,disabled:i,onClick:S,name:d,id:c,className:k.track,children:[s&&b.jsx("span",{className:k.iconLeft,children:s.unchecked}),b.jsx("span",{className:k.thumb,"aria-hidden":"true"}),s&&b.jsx("span",{className:k.iconRight,children:s.checked})]})]})});Sd.displayName="Toggle";M.createContext(null);const Gn=M.forwardRef(({depth:e=0,className:t,children:n,borderType:i,disabled:r,...a},s)=>{const l=kd({depth:e,className:t,borderType:i,disabled:r});return b.jsx("div",{"data-qui":"Panel",ref:s,className:l,"aria-disabled":r,...a,children:n})});Gn.displayName="Panel";const sr={sm:{container:"h-5 px-0.5 gap-1 rounded",text:"text-xxs leading-3",icon:"text-s",iconButton:"text-s p-0.5 cursor-pointer"},md:{container:"h-5.5 px-1 gap-1 rounded",text:"text-xs leading-4",icon:"text-sm",iconButton:" text-sm p-0.5 cursor-pointer"},lg:{container:"h-6 px-1.5 gap-1.5 rounded",text:"text-s leading-none",icon:"text-base",iconButton:"text-base p-0.5 cursor-pointer"}},ea={primary:{bg:"bg-primary",text:"text-button-text",border:"border-primary",buttonHover:"hover:bg-primary-hover"},white:{bg:"bg-canvas-default",text:"text-primary",border:"border-canvas-default",buttonHover:"hover:bg-primary-hover hover:text-button-text"},positive:{bg:"bg-positive",text:"text-button-text",border:"border-positive",buttonHover:"hover:bg-positive-hover"},warning:{bg:"bg-warning",text:"text-button-text",border:"border-warning",buttonHover:"hover:bg-warning-hover"},negative:{bg:"bg-negative",text:"text-button-text",border:"border-negative",buttonHover:"hover:bg-negative-hover"},dark:{bg:"bg-input-bg",text:"text-input-text",border:"border-input-border",buttonHover:"hover:bg-primary-hover hover:text-button-text"}},_0=(e,t,n,i)=>ce("inline-flex items-center justify-center font-medium border",sr[e].container,ea[t].bg,ea[t].text,ea[t].border,sr[e].text,{"opacity-60 pointer-events-none":n,"cursor-pointer hover:bg-opacity-90 transition-opacity":i&&!n}),A0=(e,t,n)=>ce({[sr[e].icon]:!n,"bg-canvas-default outline-canvas-default text-primary":n&&t!=="white"||n,"bg-primary outline-primary text-button-text":n&&t==="white"&&!n,"outline-solid outline-1 h-full py-0.5 grid place-items-center -my-1 only:-mx-0.5 first:-ml-1.5 last:-mr-1.5 only:rounded first:rounded-l last:rounded-r":n||n}),N0=e=>ce(sr[e].text),Ed=(e,t,n)=>ce("inline-flex items-center justify-center rounded transition-colors duration-200 focus:outline-hidden ",sr[e].iconButton,ea[t].buttonHover,{"pointer-events-none":n}),Cd=M.createContext(null),Fa=()=>{const e=M.useContext(Cd);if(!e)throw new Error("Pill components must be used within a Pill.Root");return e},Do=M.forwardRef(({size:e="md",color:t="primary",className:n,children:i,disabled:r=!1,onClick:a,...s},l)=>{const u={size:e,color:t,disabled:r},c=!!a;return b.jsx(Cd.Provider,{value:u,children:b.jsx("div",{"data-qui":"Pill",ref:l,onClick:a,className:ce(_0(e,t,r,c),n),...s,children:i})})});Do.displayName="Pill.Root";const Fo=M.forwardRef(({className:e,children:t,...n},i)=>{const{size:r}=Fa();return b.jsx("span",{ref:i,className:ce(N0(r),e),...n,children:t})});Fo.displayName="Pill.Text";const jo=M.forwardRef(({className:e,children:t,label:n,position:i,...r},a)=>{const{size:s,color:l,disabled:u}=Fa(),c=!!n,d=b.jsx("span",{ref:a,className:ce(A0(s,l,c),e,{"opacity-60":u}),...r,children:t});return c&&!u?b.jsx(bt,{label:n||"",position:i||"up",children:d}):d});jo.displayName="Pill.Icon";const Id=M.forwardRef(({className:e,children:t,...n},i)=>{const{size:r,color:a,disabled:s}=Fa();return b.jsx("button",{ref:i,type:"button",disabled:s,className:ce(Ed(r,a,s),e),...n,children:t})});Id.displayName="Pill.Button";const zo=M.forwardRef(({className:e,onClose:t,"aria-label":n="Remove pill",children:i,...r},a)=>{const{size:s,color:l,disabled:u}=Fa();return b.jsx("button",{ref:a,type:"button",disabled:u,className:ce(Ed(s,l,u),e),onClick:t,"aria-label":n,...r,children:i||b.jsx(Ra,{})})});zo.displayName="Pill.Close";const _d=M.forwardRef(({size:e="md",color:t="primary",label:n,icon:i,onClose:r,closable:a=!1,className:s,children:l,disabled:u=!1,...c},d)=>b.jsxs(Do,{ref:d,size:e,color:t,className:s,disabled:u,...c,children:[i&&b.jsx(jo,{children:i}),l||n&&b.jsx(Fo,{children:n}),a&&b.jsx(zo,{onClose:r})]}));_d.displayName="Pill";const T0=Object.assign(_d,{Root:Do,Text:Fo,Icon:jo,Button:Id,Close:zo});function ki(e,t,n){let i=n.initialDeps??[],r,a=!0;function s(){var l,u,c;let d;n.key&&(l=n.debug)!=null&&l.call(n)&&(d=Date.now());const p=e();if(!(p.length!==i.length||p.some((m,C)=>i[C]!==m)))return r;i=p;let g;if(n.key&&(u=n.debug)!=null&&u.call(n)&&(g=Date.now()),r=t(...p),n.key&&(c=n.debug)!=null&&c.call(n)){const m=Math.round((Date.now()-d)*100)/100,C=Math.round((Date.now()-g)*100)/100,x=C/16,w=(S,k)=>{for(S=String(S);S.length<k;)S=" "+S;return S};console.info(`%c⏱ ${w(C,5)} /${w(m,5)} ms`,`
|
|
18
|
-
font-size: .6rem;
|
|
19
|
-
font-weight: bold;
|
|
20
|
-
color: hsl(${Math.max(0,Math.min(120-120*x,120))}deg 100% 31%);`,n==null?void 0:n.key)}return n!=null&&n.onChange&&!(a&&n.skipInitialOnChange)&&n.onChange(r),a=!1,r}return s.updateDeps=l=>{i=l},s}function Hu(e,t){if(e===void 0)throw new Error("Unexpected undefined");return e}const O0=(e,t)=>Math.abs(e-t)<1.01,P0=(e,t,n)=>{let i;return function(...r){e.clearTimeout(i),i=e.setTimeout(()=>t.apply(this,r),n)}},Ku=e=>{const{offsetWidth:t,offsetHeight:n}=e;return{width:t,height:n}},R0=e=>e,M0=e=>{const t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1),i=[];for(let r=t;r<=n;r++)i.push(r);return i},L0=(e,t)=>{const n=e.scrollElement;if(!n)return;const i=e.targetWindow;if(!i)return;const r=s=>{const{width:l,height:u}=s;t({width:Math.round(l),height:Math.round(u)})};if(r(Ku(n)),!i.ResizeObserver)return()=>{};const a=new i.ResizeObserver(s=>{const l=()=>{const u=s[0];if(u!=null&&u.borderBoxSize){const c=u.borderBoxSize[0];if(c){r({width:c.inlineSize,height:c.blockSize});return}}r(Ku(n))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(l):l()});return a.observe(n,{box:"border-box"}),()=>{a.unobserve(n)}},Wu={passive:!0},Uu=typeof window>"u"?!0:"onscrollend"in window,D0=(e,t)=>{const n=e.scrollElement;if(!n)return;const i=e.targetWindow;if(!i)return;let r=0;const a=e.options.useScrollendEvent&&Uu?()=>{}:P0(i,()=>{t(r,!1)},e.options.isScrollingResetDelay),s=d=>()=>{const{horizontal:p,isRtl:g}=e.options;r=p?n.scrollLeft*(g&&-1||1):n.scrollTop,a(),t(r,d)},l=s(!0),u=s(!1);n.addEventListener("scroll",l,Wu);const c=e.options.useScrollendEvent&&Uu;return c&&n.addEventListener("scrollend",u,Wu),()=>{n.removeEventListener("scroll",l),c&&n.removeEventListener("scrollend",u)}},F0=(e,t,n)=>{if(t!=null&&t.borderBoxSize){const i=t.borderBoxSize[0];if(i)return Math.round(i[n.options.horizontal?"inlineSize":"blockSize"])}return e[n.options.horizontal?"offsetWidth":"offsetHeight"]},j0=(e,{adjustments:t=0,behavior:n},i)=>{var r,a;const s=e+t;(a=(r=i.scrollElement)==null?void 0:r.scrollTo)==null||a.call(r,{[i.options.horizontal?"left":"top"]:s,behavior:n})};class z0{constructor(t){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollState=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.laneAssignments=new Map,this.pendingMeasuredCacheIndexes=[],this.prevLanes=void 0,this.lanesChangedFlag=!1,this.lanesSettling=!1,this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.now=()=>{var n,i,r;return((r=(i=(n=this.targetWindow)==null?void 0:n.performance)==null?void 0:i.now)==null?void 0:r.call(i))??Date.now()},this.observer=(()=>{let n=null;const i=()=>n||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:n=new this.targetWindow.ResizeObserver(r=>{r.forEach(a=>{const s=()=>{const l=a.target,u=this.indexFromElement(l);if(!l.isConnected){this.observer.unobserve(l);return}this.shouldMeasureDuringScroll(u)&&this.resizeItem(u,this.options.measureElement(l,a,this))};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(s):s()})}));return{disconnect:()=>{var r;(r=i())==null||r.disconnect(),n=null},observe:r=>{var a;return(a=i())==null?void 0:a.observe(r,{box:"border-box"})},unobserve:r=>{var a;return(a=i())==null?void 0:a.unobserve(r)}}})(),this.range=null,this.setOptions=n=>{Object.entries(n).forEach(([i,r])=>{typeof r>"u"&&delete n[i]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:R0,rangeExtractor:M0,onChange:()=>{},measureElement:F0,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...n}},this.notify=n=>{var i,r;(r=(i=this.options).onChange)==null||r.call(i,this,n)},this.maybeNotify=ki(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),n=>{this.notify(n)},{key:ue.NODE_ENV!=="production"&&"maybeNotify",debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(n=>n()),this.unsubs=[],this.observer.disconnect(),this.rafId!=null&&this.targetWindow&&(this.targetWindow.cancelAnimationFrame(this.rafId),this.rafId=null),this.scrollState=null,this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var n;const i=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==i){if(this.cleanup(),!i){this.maybeNotify();return}this.scrollElement=i,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((n=this.scrollElement)==null?void 0:n.window)??null,this.elementsCache.forEach(r=>{this.observer.observe(r)}),this.unsubs.push(this.options.observeElementRect(this,r=>{this.scrollRect=r,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(r,a)=>{this.scrollAdjustments=0,this.scrollDirection=a?this.getScrollOffset()<r?"forward":"backward":null,this.scrollOffset=r,this.isScrolling=a,this.scrollState&&this.scheduleScrollReconcile(),this.maybeNotify()})),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})}},this.rafId=null,this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(n,i)=>{const r=new Map,a=new Map;for(let s=i-1;s>=0;s--){const l=n[s];if(r.has(l.lane))continue;const u=a.get(l.lane);if(u==null||l.end>u.end?a.set(l.lane,l):l.end<u.end&&r.set(l.lane,!0),r.size===this.options.lanes)break}return a.size===this.options.lanes?Array.from(a.values()).sort((s,l)=>s.end===l.end?s.index-l.index:s.end-l.end)[0]:void 0},this.getMeasurementOptions=ki(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled,this.options.lanes],(n,i,r,a,s,l)=>(this.prevLanes!==void 0&&this.prevLanes!==l&&(this.lanesChangedFlag=!0),this.prevLanes=l,this.pendingMeasuredCacheIndexes=[],{count:n,paddingStart:i,scrollMargin:r,getItemKey:a,enabled:s,lanes:l}),{key:!1}),this.getMeasurements=ki(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:n,paddingStart:i,scrollMargin:r,getItemKey:a,enabled:s,lanes:l},u)=>{if(!s)return this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),[];if(this.laneAssignments.size>n)for(const g of this.laneAssignments.keys())g>=n&&this.laneAssignments.delete(g);this.lanesChangedFlag&&(this.lanesChangedFlag=!1,this.lanesSettling=!0,this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),this.pendingMeasuredCacheIndexes=[]),this.measurementsCache.length===0&&!this.lanesSettling&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(g=>{this.itemSizeCache.set(g.key,g.size)}));const c=this.lanesSettling?0:this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[],this.lanesSettling&&this.measurementsCache.length===n&&(this.lanesSettling=!1);const d=this.measurementsCache.slice(0,c),p=new Array(l).fill(void 0);for(let g=0;g<c;g++){const m=d[g];m&&(p[m.lane]=g)}for(let g=c;g<n;g++){const m=a(g),C=this.laneAssignments.get(g);let x,w;if(C!==void 0&&this.options.lanes>1){x=C;const A=p[x],y=A!==void 0?d[A]:void 0;w=y?y.end+this.options.gap:i+r}else{const A=this.options.lanes===1?d[g-1]:this.getFurthestMeasurement(d,g);w=A?A.end+this.options.gap:i+r,x=A?A.lane:g%this.options.lanes,this.options.lanes>1&&this.laneAssignments.set(g,x)}const S=u.get(m),k=typeof S=="number"?S:this.options.estimateSize(g),E=w+k;d[g]={index:g,start:w,size:k,end:E,key:m,lane:x},p[x]=g}return this.measurementsCache=d,d},{key:ue.NODE_ENV!=="production"&&"getMeasurements",debug:()=>this.options.debug}),this.calculateRange=ki(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(n,i,r,a)=>this.range=n.length>0&&i>0?V0({measurements:n,outerSize:i,scrollOffset:r,lanes:a}):null,{key:ue.NODE_ENV!=="production"&&"calculateRange",debug:()=>this.options.debug}),this.getVirtualIndexes=ki(()=>{let n=null,i=null;const r=this.calculateRange();return r&&(n=r.startIndex,i=r.endIndex),this.maybeNotify.updateDeps([this.isScrolling,n,i]),[this.options.rangeExtractor,this.options.overscan,this.options.count,n,i]},(n,i,r,a,s)=>a===null||s===null?[]:n({startIndex:a,endIndex:s,overscan:i,count:r}),{key:ue.NODE_ENV!=="production"&&"getVirtualIndexes",debug:()=>this.options.debug}),this.indexFromElement=n=>{const i=this.options.indexAttribute,r=n.getAttribute(i);return r?parseInt(r,10):(console.warn(`Missing attribute name '${i}={index}' on measured element.`),-1)},this.shouldMeasureDuringScroll=n=>{var i;if(!this.scrollState||this.scrollState.behavior!=="smooth")return!0;const r=this.scrollState.index??((i=this.getVirtualItemForOffset(this.scrollState.lastTargetOffset))==null?void 0:i.index);if(r!==void 0&&this.range){const a=Math.max(this.options.overscan,Math.ceil((this.range.endIndex-this.range.startIndex)/2)),s=Math.max(0,r-a),l=Math.min(this.options.count-1,r+a);return n>=s&&n<=l}return!0},this.measureElement=n=>{if(!n){this.elementsCache.forEach((s,l)=>{s.isConnected||(this.observer.unobserve(s),this.elementsCache.delete(l))});return}const i=this.indexFromElement(n),r=this.options.getItemKey(i),a=this.elementsCache.get(r);a!==n&&(a&&this.observer.unobserve(a),this.observer.observe(n),this.elementsCache.set(r,n)),(!this.isScrolling||this.scrollState)&&this.shouldMeasureDuringScroll(i)&&this.resizeItem(i,this.options.measureElement(n,void 0,this))},this.resizeItem=(n,i)=>{var r;const a=this.measurementsCache[n];if(!a)return;const s=this.itemSizeCache.get(a.key)??a.size,l=i-s;l!==0&&(((r=this.scrollState)==null?void 0:r.behavior)!=="smooth"&&(this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(a,l,this):a.start<this.getScrollOffset()+this.scrollAdjustments)&&(ue.NODE_ENV!=="production"&&this.options.debug&&console.info("correction",l),this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=l,behavior:void 0})),this.pendingMeasuredCacheIndexes.push(a.index),this.itemSizeCache=new Map(this.itemSizeCache.set(a.key,i)),this.notify(!1))},this.getVirtualItems=ki(()=>[this.getVirtualIndexes(),this.getMeasurements()],(n,i)=>{const r=[];for(let a=0,s=n.length;a<s;a++){const l=n[a],u=i[l];r.push(u)}return r},{key:ue.NODE_ENV!=="production"&&"getVirtualItems",debug:()=>this.options.debug}),this.getVirtualItemForOffset=n=>{const i=this.getMeasurements();if(i.length!==0)return Hu(i[Ad(0,i.length-1,r=>Hu(i[r]).start,n)])},this.getMaxScrollOffset=()=>{if(!this.scrollElement)return 0;if("scrollHeight"in this.scrollElement)return this.options.horizontal?this.scrollElement.scrollWidth-this.scrollElement.clientWidth:this.scrollElement.scrollHeight-this.scrollElement.clientHeight;{const n=this.scrollElement.document.documentElement;return this.options.horizontal?n.scrollWidth-this.scrollElement.innerWidth:n.scrollHeight-this.scrollElement.innerHeight}},this.getOffsetForAlignment=(n,i,r=0)=>{if(!this.scrollElement)return 0;const a=this.getSize(),s=this.getScrollOffset();i==="auto"&&(i=n>=s+a?"end":"start"),i==="center"?n+=(r-a)/2:i==="end"&&(n-=a);const l=this.getMaxScrollOffset();return Math.max(Math.min(l,n),0)},this.getOffsetForIndex=(n,i="auto")=>{n=Math.max(0,Math.min(n,this.options.count-1));const r=this.getSize(),a=this.getScrollOffset(),s=this.measurementsCache[n];if(!s)return;if(i==="auto")if(s.end>=a+r-this.options.scrollPaddingEnd)i="end";else if(s.start<=a+this.options.scrollPaddingStart)i="start";else return[a,i];if(i==="end"&&n===this.options.count-1)return[this.getMaxScrollOffset(),i];const l=i==="end"?s.end+this.options.scrollPaddingEnd:s.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(l,i,s.size),i]},this.scrollToOffset=(n,{align:i="start",behavior:r="auto"}={})=>{const a=this.getOffsetForAlignment(n,i),s=this.now();this.scrollState={index:null,align:i,behavior:r,startedAt:s,lastTargetOffset:a,stableFrames:0},this._scrollToOffset(a,{adjustments:void 0,behavior:r}),this.scheduleScrollReconcile()},this.scrollToIndex=(n,{align:i="auto",behavior:r="auto"}={})=>{n=Math.max(0,Math.min(n,this.options.count-1));const a=this.getOffsetForIndex(n,i);if(!a)return;const[s,l]=a,u=this.now();this.scrollState={index:n,align:l,behavior:r,startedAt:u,lastTargetOffset:s,stableFrames:0},this._scrollToOffset(s,{adjustments:void 0,behavior:r}),this.scheduleScrollReconcile()},this.scrollBy=(n,{behavior:i="auto"}={})=>{const r=this.getScrollOffset()+n,a=this.now();this.scrollState={index:null,align:"start",behavior:i,startedAt:a,lastTargetOffset:r,stableFrames:0},this._scrollToOffset(r,{adjustments:void 0,behavior:i}),this.scheduleScrollReconcile()},this.getTotalSize=()=>{var n;const i=this.getMeasurements();let r;if(i.length===0)r=this.options.paddingStart;else if(this.options.lanes===1)r=((n=i[i.length-1])==null?void 0:n.end)??0;else{const a=Array(this.options.lanes).fill(null);let s=i.length-1;for(;s>=0&&a.some(l=>l===null);){const l=i[s];a[l.lane]===null&&(a[l.lane]=l.end),s--}r=Math.max(...a.filter(l=>l!==null))}return Math.max(r-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(n,{adjustments:i,behavior:r})=>{this.options.scrollToFn(n,{behavior:r,adjustments:i},this)},this.measure=()=>{this.itemSizeCache=new Map,this.laneAssignments=new Map,this.notify(!1)},this.setOptions(t)}scheduleScrollReconcile(){if(!this.targetWindow){this.scrollState=null;return}this.rafId==null&&(this.rafId=this.targetWindow.requestAnimationFrame(()=>{this.rafId=null,this.reconcileScroll()}))}reconcileScroll(){if(!this.scrollState||!this.scrollElement)return;if(this.now()-this.scrollState.startedAt>5e3){this.scrollState=null;return}const t=this.scrollState.index!=null?this.getOffsetForIndex(this.scrollState.index,this.scrollState.align):void 0,n=t?t[0]:this.scrollState.lastTargetOffset,i=1,r=n!==this.scrollState.lastTargetOffset;if(!r&&O0(n,this.getScrollOffset())){if(this.scrollState.stableFrames++,this.scrollState.stableFrames>=i){this.scrollState=null;return}}else this.scrollState.stableFrames=0,r&&(this.scrollState.lastTargetOffset=n,this.scrollState.behavior="auto",this._scrollToOffset(n,{adjustments:void 0,behavior:"auto"}));this.scheduleScrollReconcile()}}const Ad=(e,t,n,i)=>{for(;e<=t;){const r=(e+t)/2|0,a=n(r);if(a<i)e=r+1;else if(a>i)t=r-1;else return r}return e>0?e-1:0};function V0({measurements:e,outerSize:t,scrollOffset:n,lanes:i}){const r=e.length-1,a=u=>e[u].start;if(e.length<=i)return{startIndex:0,endIndex:r};let s=Ad(0,r,a,n),l=s;if(i===1)for(;l<r&&e[l].end<n+t;)l++;else if(i>1){const u=Array(i).fill(0);for(;l<r&&u.some(d=>d<n+t);){const d=e[l];u[d.lane]=d.end,l++}const c=Array(i).fill(n+t);for(;s>=0&&c.some(d=>d>=n);){const d=e[s];c[d.lane]=d.start,s--}s=Math.max(0,s-s%i),l=Math.min(r,l+(i-1-l%i))}return{startIndex:s,endIndex:l}}const qu=typeof document<"u"?W.useLayoutEffect:W.useEffect;function B0({useFlushSync:e=!0,...t}){const n=W.useReducer(()=>({}),{})[1],i={...t,onChange:(a,s)=>{var l;e&&s?ui.flushSync(n):n(),(l=t.onChange)==null||l.call(t,a,s)}},[r]=W.useState(()=>new z0(i));return r.setOptions(i),qu(()=>r._didMount(),[]),qu(()=>r._willUpdate()),r}function H0(e){return B0({observeElementRect:L0,observeElementOffset:D0,scrollToFn:j0,...e})}const Nd=M.createContext(null),yt=()=>{const e=M.useContext(Nd);if(!e)throw new Error("Select compound components must be used within Select.Root");return e},mt={sm:{trigger:"h-5 min-h-fit",control:"min-h-5 p-0.5 gap-1",input:"text-xs h-3.5",placeholder:"placeholder:text-xs text-xs",singleValue:"text-xs",multiValue:"h-3.5 px-0.5 gap-1 text-xxs",multiValueLabel:"text-xxs",multiValueRemove:"w-3 h-3",indicatorsContainer:"gap-1",clearIndicator:"p-0.5 size-3",dropdownIndicator:"p-0.5 size-3",indicatorSeparator:"h-3",loadingIndicator:"w-3 h-3",menu:"m-0",menuList:"py-1",option:"px-1 py-0.5 text-xs",group:"pt-1",groupHeading:"px-2 py-0.5 text-xxs",noOptionsMessage:"px-2 py-1 text-xxs",loadingMessage:"px-2 py-1 text-xxs",message:"text-xxs p-1.5",icon:"text-sm"},md:{trigger:"h-6 min-h-fit",control:"min-h-6 p-1 gap-1.5",input:"text-s h-4",placeholder:"placeholder:text-s text-s",singleValue:"text-s",multiValue:"h-4 p-1 gap-1 text-xs",multiValueLabel:"text-xs",multiValueRemove:"w-3.5 h-3.5",indicatorsContainer:"gap-1",clearIndicator:"p-0.5 size-4",dropdownIndicator:"p-0.5 size-4",indicatorSeparator:"h-4",loadingIndicator:"w-4 h-4",menu:"m-0",menuList:"py-1",option:"px-2 py-1 text-s",group:"pt-1.5",groupHeading:"px-3 py-1 text-xs",noOptionsMessage:"px-2 py-1.5 text-xs",loadingMessage:"px-3 py-1.5 text-xs",message:"text-xs p-2",icon:"text-base"},lg:{trigger:"h-7 min-h-fit",control:"min-h-7 p-1.5 gap-2",input:"text-sm h-5",placeholder:"placeholder:text-sm text-sm",singleValue:"text-sm",multiValue:"h-5 px-1.5 gap-1.5 text-s",multiValueLabel:"text-xs",multiValueRemove:"w-4 h-4",indicatorsContainer:"gap-1.5",clearIndicator:"p-0.5 size-5",dropdownIndicator:"p-1 size-5",indicatorSeparator:"h-5",loadingIndicator:"w-5 h-5",menu:"m-0",menuList:"py-1.5",option:"px-3 py-2 text-sm",group:"pt-2",groupHeading:"px-4 py-1.5 text-s",noOptionsMessage:"px-4 py-2 text-s",loadingMessage:"px-4 py-2 text-s",message:"text-s p-2.5",icon:"text-lg"}},lt={primary:{control:"cursor-pointer bg-input-bg text-select-text",controlFocused:"border-input-focus-border",controlDisabled:"opacity-60",controlInvalid:"bg-input-bg border-input-error-border text-select-text",placeholder:"placeholder:text-input-placeholder text-input-text placeholder:opacity-60",singleValue:"text-select-text",singleValueDisabled:"text-input-placeholder",multiValue:"bg-input-option-active-bg text-input-option-active-text",multiValueLabel:"text-input-option-active-text",multiValueRemove:"text-input-option-active-text hover:bg-input-option-hover-bg hover:text-body rounded-xs p-px",multiValueRemoveHover:"hover:bg-input-option-hover-bg",multiValueDisabled:"bg-canvas-subtle text-muted",clearIndicator:"text-input-text hover:text-body cursor-pointer",clearIndicatorHover:"hover:text-body hover:bg-input-option-hover-bg",dropdownIndicator:"text-input-text",dropdownIndicatorHover:"hover:text-body hover:bg-input-option-hover-bg",indicatorSeparator:"bg-input-border",loadingIndicator:"text-primary",menu:"bg-select-list-bg border-input-focus-border shadow-lg",menuList:"scrollbar-thin scrollbar-thumb-input-border scrollbar-track-transparent",option:"text-select-text cursor-pointer",optionFocused:"bg-input-option-hover-bg text-body",optionSelected:"bg-input-option-active-bg text-input-option-active-text",optionDisabled:"text-input-placeholder cursor-not-allowed",group:"",groupHeading:"text-input-placeholder font-semibold",noOptionsMessage:"text-input-placeholder",loadingMessage:"text-input-placeholder",message:"text-primary-dark",messageBackground:"bg-input-message-bg",messageBorder:"ring-input-info-border",icon:"text-input-text",iconAction:"text-input-text hover:text-body",iconActionHover:"hover:text-body hover:bg-input-option-hover-bg"},positive:{control:"cursor-pointer bg-input-bg text-select-text",controlFocused:"border-positive",controlDisabled:"opacity-60",controlInvalid:"bg-input-bg border-input-error-border text-select-text",placeholder:"placeholder:text-input-placeholder text-input-text placeholder:opacity-60",singleValue:"text-select-text",singleValueDisabled:"text-input-placeholder",multiValue:"bg-input-option-active-bg text-input-option-active-text",multiValueLabel:"text-input-option-active-text",multiValueRemove:"text-input-option-active-text hover:bg-input-option-hover-bg hover:text-body rounded-xs p-px",multiValueRemoveHover:"hover:bg-input-option-hover-bg",multiValueDisabled:"bg-canvas-subtle text-muted",clearIndicator:"text-input-text hover:text-body cursor-pointer",clearIndicatorHover:"hover:text-body hover:bg-input-option-hover-bg",dropdownIndicator:"text-input-text",dropdownIndicatorHover:"hover:text-body hover:bg-input-option-hover-bg",indicatorSeparator:"bg-input-border",loadingIndicator:"text-positive",menu:"bg-select-list-bg border-positive shadow-lg",menuList:"scrollbar-thin scrollbar-thumb-input-border scrollbar-track-transparent",option:"text-select-text cursor-pointer",optionFocused:"bg-input-option-hover-bg text-body",optionSelected:"bg-input-option-active-bg text-input-option-active-text",optionDisabled:"text-input-placeholder cursor-not-allowed",group:"",groupHeading:"text-input-placeholder font-semibold",noOptionsMessage:"text-input-placeholder",loadingMessage:"text-input-placeholder",message:"text-positive-dark",messageBackground:"bg-positive-light",messageBorder:"ring-positive",icon:"text-input-text",iconAction:"text-input-text hover:text-body",iconActionHover:"hover:text-body hover:bg-input-option-hover-bg"},warning:{control:"cursor-pointer bg-input-bg text-select-text",controlFocused:"border-input-warning-border",controlDisabled:"opacity-60",controlInvalid:"bg-input-bg border-input-error-border text-select-text",placeholder:"placeholder:text-input-placeholder text-input-text placeholder:opacity-60",singleValue:"text-select-text",singleValueDisabled:"text-input-placeholder",multiValue:"bg-input-option-active-bg text-input-option-active-text",multiValueLabel:"text-input-option-active-text",multiValueRemove:"text-input-option-active-text hover:bg-input-option-hover-bg hover:text-body rounded-xs p-px",multiValueRemoveHover:"hover:bg-input-option-hover-bg",multiValueDisabled:"bg-canvas-subtle text-muted",clearIndicator:"text-input-text hover:text-body cursor-pointer",clearIndicatorHover:"hover:text-body hover:bg-input-option-hover-bg",dropdownIndicator:"text-input-text",dropdownIndicatorHover:"hover:text-body hover:bg-input-option-hover-bg",indicatorSeparator:"bg-input-border",loadingIndicator:"text-warning",menu:"bg-select-list-bg border-input-warning-border shadow-lg",menuList:"scrollbar-thin scrollbar-thumb-input-border scrollbar-track-transparent",option:"text-select-text cursor-pointer",optionFocused:"bg-input-option-hover-bg text-body",optionSelected:"bg-input-option-active-bg text-input-option-active-text",optionDisabled:"text-input-placeholder cursor-not-allowed",group:"",groupHeading:"text-input-placeholder font-semibold",noOptionsMessage:"text-input-placeholder",loadingMessage:"text-input-placeholder",message:"text-warning-dark",messageBackground:"bg-input-warning-bg",messageBorder:"ring-input-warning-border",icon:"text-input-text",iconAction:"text-input-text hover:text-body",iconActionHover:"hover:text-body hover:bg-input-option-hover-bg"},negative:{control:"cursor-pointer bg-input-bg text-negative",controlFocused:"border-input-error-border",controlDisabled:"opacity-60",controlInvalid:"bg-input-bg border-input-error-border text-negative",placeholder:"placeholder:text-input-placeholder text-input-text placeholder:opacity-60",singleValue:"text-negative",singleValueDisabled:"text-input-placeholder",multiValue:"bg-input-option-active-bg text-input-option-active-text",multiValueLabel:"text-input-option-active-text",multiValueRemove:"text-input-option-active-text hover:bg-input-option-hover-bg hover:text-body rounded-xs p-px",multiValueRemoveHover:"hover:bg-input-option-hover-bg",multiValueDisabled:"bg-canvas-subtle text-muted",clearIndicator:"text-input-text hover:text-body cursor-pointer",clearIndicatorHover:"hover:text-body hover:bg-input-option-hover-bg",dropdownIndicator:"text-input-text",dropdownIndicatorHover:"hover:text-body hover:bg-input-option-hover-bg",indicatorSeparator:"bg-input-border",loadingIndicator:"text-negative",menu:"bg-select-list-bg border-input-error-border shadow-lg",menuList:"scrollbar-thin scrollbar-thumb-input-border scrollbar-track-transparent",option:"text-select-text cursor-pointer",optionFocused:"bg-input-option-hover-bg text-body",optionSelected:"bg-input-option-active-bg text-input-option-active-text",optionDisabled:"text-input-placeholder cursor-not-allowed",group:"",groupHeading:"text-input-placeholder font-semibold",noOptionsMessage:"text-input-placeholder",loadingMessage:"text-input-placeholder",message:"text-negative-dark",messageBackground:"bg-input-error-bg",messageBorder:"ring-input-error-border",icon:"text-input-text",iconAction:"text-input-text hover:text-body",iconActionHover:"hover:text-body hover:bg-input-option-hover-bg"}},K0=()=>ce("flex flex-col relative"),W0=({size:e,color:t,isDisabled:n,hasMessage:i,isInvalid:r,isFocused:a,menuPlacement:s})=>{const l=lt[r?"negative":t];return ce("bg-input-bg flex relative transition-all duration-200 ease-in-out items-center",a&&s?s==="top"?"rounded-b":"rounded-t":"only:rounded first:rounded-t last:rounded-b",l.control,i?["ring-1",l.messageBorder]:["border",n?"border-input-border":a?l.controlFocused:`border-select-border focus-within:${l.controlFocused}`],mt[e].trigger,{"ring-1":i,[l.controlDisabled]:n})},U0=({size:e,color:t,isDisabled:n,isAction:i})=>{const r=lt[t];return ce("transition-colors duration-200 rounded max-h-full h-fit px-0.5",mt[e].icon,e==="sm"?"m-px":"m-0.5",n?"text-muted opacity-60 pointer-events-none":i?r.iconAction:r.icon,{"cursor-pointer p-0.5":i&&!n,[r.iconActionHover]:i&&!n,"pointer-events-none":!i})},q0=({size:e,color:t,isDisabled:n,isFocused:i,isInvalid:r,hasMessage:a,hasGroup:s,menuPlacement:l})=>{const u=lt[r?"negative":t];return s?ce("flex items-center justify-between flex-1 min-w-0",mt[e].control,"bg-transparent border-0",{[u.controlDisabled]:n}):ce("flex items-center justify-between",i&&l?l==="top"?"rounded-b":"rounded-t":"rounded",mt[e].control,u.control,a?["ring-1",u.messageBorder]:["border",n?"border-input-border":i?u.controlFocused:`border-select-border
|
|
21
|
-
focus-within:${u.controlFocused}`],{[u.controlDisabled]:n})},G0=({isMulti:e})=>ce("flex items-center gap-1 flex-1 min-w-0 overflow-hidden",{"flex-wrap":e,"px-0.5":!e}),$0=({size:e,color:t})=>ce("bg-transparent border-0 outline-hidden flex-1 min-w-7.5 text-input-text",mt[e].input,lt[t].placeholder),J0=({size:e,color:t})=>ce("select-none truncate",mt[e].placeholder,lt[t].placeholder),Y0=({size:e,color:t,isDisabled:n})=>ce("truncate",mt[e].singleValue,n?lt[t].singleValueDisabled:lt[t].singleValue),Z0=({size:e,color:t,isDisabled:n,isFocused:i})=>ce("inline-flex items-center rounded-xs",mt[e].multiValue,n?lt[t].multiValueDisabled:lt[t].multiValue,{"border border-white":i&&!n}),X0=({size:e})=>ce("truncate",mt[e].multiValueLabel),Q0=({size:e,color:t,isDisabled:n})=>ce("flex items-center justify-center cursor-pointer transition-colors",mt[e].multiValueRemove,lt[t].multiValueRemove),Td=({size:e,color:t,isDisabled:n})=>ce("flex items-center justify-center transition-colors rounded",mt[e].clearIndicator,n?"hidden":[lt[t].clearIndicator,lt[t].clearIndicatorHover]),eb=({size:e,color:t,isDisabled:n})=>ce("flex items-center justify-center transition-colors rounded",mt[e].dropdownIndicator,n?"text-grey-200":[lt[t].dropdownIndicator,lt[t].dropdownIndicatorHover]),tb=({size:e,placement:t,hasMessage:n,color:i,hasGroup:r})=>{const a=t==="top";return ce("absolute z-50 overflow-hidden border",r?"-left-px -right-px":"w-full",lt[i].menu,{[lt[i].messageBorder]:n},a?"bottom-full rounded-t rounded-b-none border-b-0":"top-full rounded-b border-t-0",mt[e].menu)},nb=({size:e})=>ce("overflow-y-auto",mt[e].menuList,lt.primary.menuList),ib=({size:e,color:t,isDisabled:n,isFocused:i,isSelected:r})=>ce("transition-colors duration-150 cursor-pointer mx-1 rounded flex items-center gap-2",mt[e].option,{[lt[t].optionDisabled]:n,[lt[t].optionSelected]:r&&!n,[lt[t].optionFocused]:i&&!r&&!n,[lt[t].option]:!r&&!i&&!n}),rb=({size:e})=>ce(mt[e].group),ab=({size:e,color:t})=>ce(mt[e].groupHeading,lt[t].groupHeading),sb=({size:e})=>ce("text-grey-100",mt[e].loadingMessage),ob=({size:e})=>ce(mt[e].noOptionsMessage,lt.primary.noOptionsMessage),no=e=>{const t=e[0];return e.length>0&&typeof t=="object"&&t!==null&&"options"in t&&Array.isArray(t.options)},lb=e=>no(e)?e.reduce((t,n)=>[...t,...n.options],[]):e;function Tt(e,t){if(e==null)return{};var n={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)!==-1)continue;n[i]=e[i]}return n}function Pe(){return Pe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Pe.apply(null,arguments)}function io(e,t){return io=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},io(e,t)}function ub(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,io(e,t)}var jr={exports:{}},cs={exports:{}},Qe={};/** @license React v16.13.1
|
|
22
|
-
* react-is.production.min.js
|
|
23
|
-
*
|
|
24
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
25
|
-
*
|
|
26
|
-
* This source code is licensed under the MIT license found in the
|
|
27
|
-
* LICENSE file in the root directory of this source tree.
|
|
28
|
-
*/var Gu;function cb(){if(Gu)return Qe;Gu=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,r=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,g=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,C=e?Symbol.for("react.lazy"):60116,x=e?Symbol.for("react.block"):60121,w=e?Symbol.for("react.fundamental"):60117,S=e?Symbol.for("react.responder"):60118,k=e?Symbol.for("react.scope"):60119;function E(y){if(typeof y=="object"&&y!==null){var f=y.$$typeof;switch(f){case t:switch(y=y.type,y){case u:case c:case i:case a:case r:case p:return y;default:switch(y=y&&y.$$typeof,y){case l:case d:case C:case m:case s:return y;default:return f}}case n:return f}}}function A(y){return E(y)===c}return Qe.AsyncMode=u,Qe.ConcurrentMode=c,Qe.ContextConsumer=l,Qe.ContextProvider=s,Qe.Element=t,Qe.ForwardRef=d,Qe.Fragment=i,Qe.Lazy=C,Qe.Memo=m,Qe.Portal=n,Qe.Profiler=a,Qe.StrictMode=r,Qe.Suspense=p,Qe.isAsyncMode=function(y){return A(y)||E(y)===u},Qe.isConcurrentMode=A,Qe.isContextConsumer=function(y){return E(y)===l},Qe.isContextProvider=function(y){return E(y)===s},Qe.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===t},Qe.isForwardRef=function(y){return E(y)===d},Qe.isFragment=function(y){return E(y)===i},Qe.isLazy=function(y){return E(y)===C},Qe.isMemo=function(y){return E(y)===m},Qe.isPortal=function(y){return E(y)===n},Qe.isProfiler=function(y){return E(y)===a},Qe.isStrictMode=function(y){return E(y)===r},Qe.isSuspense=function(y){return E(y)===p},Qe.isValidElementType=function(y){return typeof y=="string"||typeof y=="function"||y===i||y===c||y===a||y===r||y===p||y===g||typeof y=="object"&&y!==null&&(y.$$typeof===C||y.$$typeof===m||y.$$typeof===s||y.$$typeof===l||y.$$typeof===d||y.$$typeof===w||y.$$typeof===S||y.$$typeof===k||y.$$typeof===x)},Qe.typeOf=E,Qe}var tt={};/** @license React v16.13.1
|
|
29
|
-
* react-is.development.js
|
|
30
|
-
*
|
|
31
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
32
|
-
*
|
|
33
|
-
* This source code is licensed under the MIT license found in the
|
|
34
|
-
* LICENSE file in the root directory of this source tree.
|
|
35
|
-
*/var $u;function hb(){return $u||($u=1,ue.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,r=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,g=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,C=e?Symbol.for("react.lazy"):60116,x=e?Symbol.for("react.block"):60121,w=e?Symbol.for("react.fundamental"):60117,S=e?Symbol.for("react.responder"):60118,k=e?Symbol.for("react.scope"):60119;function E(H){return typeof H=="string"||typeof H=="function"||H===i||H===c||H===a||H===r||H===p||H===g||typeof H=="object"&&H!==null&&(H.$$typeof===C||H.$$typeof===m||H.$$typeof===s||H.$$typeof===l||H.$$typeof===d||H.$$typeof===w||H.$$typeof===S||H.$$typeof===k||H.$$typeof===x)}function A(H){if(typeof H=="object"&&H!==null){var de=H.$$typeof;switch(de){case t:var X=H.type;switch(X){case u:case c:case i:case a:case r:case p:return X;default:var me=X&&X.$$typeof;switch(me){case l:case d:case C:case m:case s:return me;default:return de}}case n:return de}}}var y=u,f=c,T=l,R=s,F=t,D=d,q=i,J=C,K=m,j=n,ae=a,Z=r,se=p,ee=!1;function pe(H){return ee||(ee=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),I(H)||A(H)===u}function I(H){return A(H)===c}function V(H){return A(H)===l}function te(H){return A(H)===s}function O(H){return typeof H=="object"&&H!==null&&H.$$typeof===t}function $(H){return A(H)===d}function z(H){return A(H)===i}function B(H){return A(H)===C}function U(H){return A(H)===m}function ie(H){return A(H)===n}function oe(H){return A(H)===a}function G(H){return A(H)===r}function ne(H){return A(H)===p}tt.AsyncMode=y,tt.ConcurrentMode=f,tt.ContextConsumer=T,tt.ContextProvider=R,tt.Element=F,tt.ForwardRef=D,tt.Fragment=q,tt.Lazy=J,tt.Memo=K,tt.Portal=j,tt.Profiler=ae,tt.StrictMode=Z,tt.Suspense=se,tt.isAsyncMode=pe,tt.isConcurrentMode=I,tt.isContextConsumer=V,tt.isContextProvider=te,tt.isElement=O,tt.isForwardRef=$,tt.isFragment=z,tt.isLazy=B,tt.isMemo=U,tt.isPortal=ie,tt.isProfiler=oe,tt.isStrictMode=G,tt.isSuspense=ne,tt.isValidElementType=E,tt.typeOf=A})()),tt}var Ju;function Od(){return Ju||(Ju=1,ue.NODE_ENV==="production"?cs.exports=cb():cs.exports=hb()),cs.exports}/*
|
|
36
|
-
object-assign
|
|
37
|
-
(c) Sindre Sorhus
|
|
38
|
-
@license MIT
|
|
39
|
-
*/var hs,Yu;function db(){if(Yu)return hs;Yu=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function i(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function r(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var s={},l=0;l<10;l++)s["_"+String.fromCharCode(l)]=l;var u=Object.getOwnPropertyNames(s).map(function(d){return s[d]});if(u.join("")!=="0123456789")return!1;var c={};return"abcdefghijklmnopqrst".split("").forEach(function(d){c[d]=d}),Object.keys(Object.assign({},c)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return hs=r()?Object.assign:function(a,s){for(var l,u=i(a),c,d=1;d<arguments.length;d++){l=Object(arguments[d]);for(var p in l)t.call(l,p)&&(u[p]=l[p]);if(e){c=e(l);for(var g=0;g<c.length;g++)n.call(l,c[g])&&(u[c[g]]=l[c[g]])}}return u},hs}var ds,Zu;function Vo(){if(Zu)return ds;Zu=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return ds=e,ds}var Xu,Qu;function Pd(){return Qu||(Qu=1,Xu=Function.call.bind(Object.prototype.hasOwnProperty)),Xu}var ps,ec;function pb(){if(ec)return ps;ec=1;var e=function(){};if(ue.NODE_ENV!=="production"){var t=Vo(),n={},i=Pd();e=function(a){var s="Warning: "+a;typeof console<"u"&&console.error(s);try{throw new Error(s)}catch{}}}function r(a,s,l,u,c){if(ue.NODE_ENV!=="production"){for(var d in a)if(i(a,d)){var p;try{if(typeof a[d]!="function"){var g=Error((u||"React class")+": "+l+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw g.name="Invariant Violation",g}p=a[d](s,d,u,l,null,t)}catch(C){p=C}if(p&&!(p instanceof Error)&&e((u||"React class")+": type specification of "+l+" `"+d+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof p+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),p instanceof Error&&!(p.message in n)){n[p.message]=!0;var m=c?c():"";e("Failed "+l+" type: "+p.message+(m??""))}}}}return r.resetWarningCache=function(){ue.NODE_ENV!=="production"&&(n={})},ps=r,ps}var fs,tc;function fb(){if(tc)return fs;tc=1;var e=Od(),t=db(),n=Vo(),i=Pd(),r=pb(),a=function(){};ue.NODE_ENV!=="production"&&(a=function(l){var u="Warning: "+l;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}});function s(){return null}return fs=function(l,u){var c=typeof Symbol=="function"&&Symbol.iterator,d="@@iterator";function p(I){var V=I&&(c&&I[c]||I[d]);if(typeof V=="function")return V}var g="<<anonymous>>",m={array:S("array"),bigint:S("bigint"),bool:S("boolean"),func:S("function"),number:S("number"),object:S("object"),string:S("string"),symbol:S("symbol"),any:k(),arrayOf:E,element:A(),elementType:y(),instanceOf:f,node:D(),objectOf:R,oneOf:T,oneOfType:F,shape:J,exact:K};function C(I,V){return I===V?I!==0||1/I===1/V:I!==I&&V!==V}function x(I,V){this.message=I,this.data=V&&typeof V=="object"?V:{},this.stack=""}x.prototype=Error.prototype;function w(I){if(ue.NODE_ENV!=="production")var V={},te=0;function O(z,B,U,ie,oe,G,ne){if(ie=ie||g,G=G||U,ne!==n){if(u){var H=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw H.name="Invariant Violation",H}else if(ue.NODE_ENV!=="production"&&typeof console<"u"){var de=ie+":"+U;!V[de]&&te<3&&(a("You are manually calling a React.PropTypes validation function for the `"+G+"` prop on `"+ie+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),V[de]=!0,te++)}}return B[U]==null?z?B[U]===null?new x("The "+oe+" `"+G+"` is marked as required "+("in `"+ie+"`, but its value is `null`.")):new x("The "+oe+" `"+G+"` is marked as required in "+("`"+ie+"`, but its value is `undefined`.")):null:I(B,U,ie,oe,G)}var $=O.bind(null,!1);return $.isRequired=O.bind(null,!0),$}function S(I){function V(te,O,$,z,B,U){var ie=te[O],oe=Z(ie);if(oe!==I){var G=se(ie);return new x("Invalid "+z+" `"+B+"` of type "+("`"+G+"` supplied to `"+$+"`, expected ")+("`"+I+"`."),{expectedType:I})}return null}return w(V)}function k(){return w(s)}function E(I){function V(te,O,$,z,B){if(typeof I!="function")return new x("Property `"+B+"` of component `"+$+"` has invalid PropType notation inside arrayOf.");var U=te[O];if(!Array.isArray(U)){var ie=Z(U);return new x("Invalid "+z+" `"+B+"` of type "+("`"+ie+"` supplied to `"+$+"`, expected an array."))}for(var oe=0;oe<U.length;oe++){var G=I(U,oe,$,z,B+"["+oe+"]",n);if(G instanceof Error)return G}return null}return w(V)}function A(){function I(V,te,O,$,z){var B=V[te];if(!l(B)){var U=Z(B);return new x("Invalid "+$+" `"+z+"` of type "+("`"+U+"` supplied to `"+O+"`, expected a single ReactElement."))}return null}return w(I)}function y(){function I(V,te,O,$,z){var B=V[te];if(!e.isValidElementType(B)){var U=Z(B);return new x("Invalid "+$+" `"+z+"` of type "+("`"+U+"` supplied to `"+O+"`, expected a single ReactElement type."))}return null}return w(I)}function f(I){function V(te,O,$,z,B){if(!(te[O]instanceof I)){var U=I.name||g,ie=pe(te[O]);return new x("Invalid "+z+" `"+B+"` of type "+("`"+ie+"` supplied to `"+$+"`, expected ")+("instance of `"+U+"`."))}return null}return w(V)}function T(I){if(!Array.isArray(I))return ue.NODE_ENV!=="production"&&(arguments.length>1?a("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):a("Invalid argument supplied to oneOf, expected an array.")),s;function V(te,O,$,z,B){for(var U=te[O],ie=0;ie<I.length;ie++)if(C(U,I[ie]))return null;var oe=JSON.stringify(I,function(G,ne){var H=se(ne);return H==="symbol"?String(ne):ne});return new x("Invalid "+z+" `"+B+"` of value `"+String(U)+"` "+("supplied to `"+$+"`, expected one of "+oe+"."))}return w(V)}function R(I){function V(te,O,$,z,B){if(typeof I!="function")return new x("Property `"+B+"` of component `"+$+"` has invalid PropType notation inside objectOf.");var U=te[O],ie=Z(U);if(ie!=="object")return new x("Invalid "+z+" `"+B+"` of type "+("`"+ie+"` supplied to `"+$+"`, expected an object."));for(var oe in U)if(i(U,oe)){var G=I(U,oe,$,z,B+"."+oe,n);if(G instanceof Error)return G}return null}return w(V)}function F(I){if(!Array.isArray(I))return ue.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),s;for(var V=0;V<I.length;V++){var te=I[V];if(typeof te!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+ee(te)+" at index "+V+"."),s}function O($,z,B,U,ie){for(var oe=[],G=0;G<I.length;G++){var ne=I[G],H=ne($,z,B,U,ie,n);if(H==null)return null;H.data&&i(H.data,"expectedType")&&oe.push(H.data.expectedType)}var de=oe.length>0?", expected one of type ["+oe.join(", ")+"]":"";return new x("Invalid "+U+" `"+ie+"` supplied to "+("`"+B+"`"+de+"."))}return w(O)}function D(){function I(V,te,O,$,z){return j(V[te])?null:new x("Invalid "+$+" `"+z+"` supplied to "+("`"+O+"`, expected a ReactNode."))}return w(I)}function q(I,V,te,O,$){return new x((I||"React class")+": "+V+" type `"+te+"."+O+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+$+"`.")}function J(I){function V(te,O,$,z,B){var U=te[O],ie=Z(U);if(ie!=="object")return new x("Invalid "+z+" `"+B+"` of type `"+ie+"` "+("supplied to `"+$+"`, expected `object`."));for(var oe in I){var G=I[oe];if(typeof G!="function")return q($,z,B,oe,se(G));var ne=G(U,oe,$,z,B+"."+oe,n);if(ne)return ne}return null}return w(V)}function K(I){function V(te,O,$,z,B){var U=te[O],ie=Z(U);if(ie!=="object")return new x("Invalid "+z+" `"+B+"` of type `"+ie+"` "+("supplied to `"+$+"`, expected `object`."));var oe=t({},te[O],I);for(var G in oe){var ne=I[G];if(i(I,G)&&typeof ne!="function")return q($,z,B,G,se(ne));if(!ne)return new x("Invalid "+z+" `"+B+"` key `"+G+"` supplied to `"+$+"`.\nBad object: "+JSON.stringify(te[O],null," ")+`
|
|
40
|
-
Valid keys: `+JSON.stringify(Object.keys(I),null," "));var H=ne(U,G,$,z,B+"."+G,n);if(H)return H}return null}return w(V)}function j(I){switch(typeof I){case"number":case"string":case"undefined":return!0;case"boolean":return!I;case"object":if(Array.isArray(I))return I.every(j);if(I===null||l(I))return!0;var V=p(I);if(V){var te=V.call(I),O;if(V!==I.entries){for(;!(O=te.next()).done;)if(!j(O.value))return!1}else for(;!(O=te.next()).done;){var $=O.value;if($&&!j($[1]))return!1}}else return!1;return!0;default:return!1}}function ae(I,V){return I==="symbol"?!0:V?V["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&V instanceof Symbol:!1}function Z(I){var V=typeof I;return Array.isArray(I)?"array":I instanceof RegExp?"object":ae(V,I)?"symbol":V}function se(I){if(typeof I>"u"||I===null)return""+I;var V=Z(I);if(V==="object"){if(I instanceof Date)return"date";if(I instanceof RegExp)return"regexp"}return V}function ee(I){var V=se(I);switch(V){case"array":case"object":return"an "+V;case"boolean":case"date":case"regexp":return"a "+V;default:return V}}function pe(I){return!I.constructor||!I.constructor.name?g:I.constructor.name}return m.checkPropTypes=r,m.resetWarningCache=r.resetWarningCache,m.PropTypes=m,m},fs}var gs,nc;function gb(){if(nc)return gs;nc=1;var e=Vo();function t(){}function n(){}return n.resetWarningCache=t,gs=function(){function i(s,l,u,c,d,p){if(p!==e){var g=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw g.name="Invariant Violation",g}}i.isRequired=i;function r(){return i}var a={array:i,bigint:i,bool:i,func:i,number:i,object:i,string:i,symbol:i,any:i,arrayOf:r,element:i,elementType:i,instanceOf:r,node:i,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:n,resetWarningCache:t};return a.PropTypes=a,a},gs}var ic;function mb(){if(ic)return jr.exports;if(ic=1,ue.NODE_ENV!=="production"){var e=Od(),t=!0;jr.exports=fb()(e.isElement,t)}else jr.exports=gb()();return jr.exports}var vb=mb();const ge=td(vb);var ms={exports:{}},et={};/**
|
|
41
|
-
* @license React
|
|
42
|
-
* react-is.production.min.js
|
|
43
|
-
*
|
|
44
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
45
|
-
*
|
|
46
|
-
* This source code is licensed under the MIT license found in the
|
|
47
|
-
* LICENSE file in the root directory of this source tree.
|
|
48
|
-
*/var rc;function xb(){if(rc)return et;rc=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),C;C=Symbol.for("react.module.reference");function x(w){if(typeof w=="object"&&w!==null){var S=w.$$typeof;switch(S){case e:switch(w=w.type,w){case n:case r:case i:case c:case d:return w;default:switch(w=w&&w.$$typeof,w){case l:case s:case u:case g:case p:case a:return w;default:return S}}case t:return S}}}return et.ContextConsumer=s,et.ContextProvider=a,et.Element=e,et.ForwardRef=u,et.Fragment=n,et.Lazy=g,et.Memo=p,et.Portal=t,et.Profiler=r,et.StrictMode=i,et.Suspense=c,et.SuspenseList=d,et.isAsyncMode=function(){return!1},et.isConcurrentMode=function(){return!1},et.isContextConsumer=function(w){return x(w)===s},et.isContextProvider=function(w){return x(w)===a},et.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===e},et.isForwardRef=function(w){return x(w)===u},et.isFragment=function(w){return x(w)===n},et.isLazy=function(w){return x(w)===g},et.isMemo=function(w){return x(w)===p},et.isPortal=function(w){return x(w)===t},et.isProfiler=function(w){return x(w)===r},et.isStrictMode=function(w){return x(w)===i},et.isSuspense=function(w){return x(w)===c},et.isSuspenseList=function(w){return x(w)===d},et.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===n||w===r||w===i||w===c||w===d||w===m||typeof w=="object"&&w!==null&&(w.$$typeof===g||w.$$typeof===p||w.$$typeof===a||w.$$typeof===s||w.$$typeof===u||w.$$typeof===C||w.getModuleId!==void 0)},et.typeOf=x,et}var nt={};/**
|
|
49
|
-
* @license React
|
|
50
|
-
* react-is.development.js
|
|
51
|
-
*
|
|
52
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
53
|
-
*
|
|
54
|
-
* This source code is licensed under the MIT license found in the
|
|
55
|
-
* LICENSE file in the root directory of this source tree.
|
|
56
|
-
*/var ac;function bb(){return ac||(ac=1,ue.NODE_ENV!=="production"&&(function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),C=!1,x=!1,w=!1,S=!1,k=!1,E;E=Symbol.for("react.module.reference");function A(X){return!!(typeof X=="string"||typeof X=="function"||X===n||X===r||k||X===i||X===c||X===d||S||X===m||C||x||w||typeof X=="object"&&X!==null&&(X.$$typeof===g||X.$$typeof===p||X.$$typeof===a||X.$$typeof===s||X.$$typeof===u||X.$$typeof===E||X.getModuleId!==void 0))}function y(X){if(typeof X=="object"&&X!==null){var me=X.$$typeof;switch(me){case e:var xe=X.type;switch(xe){case n:case r:case i:case c:case d:return xe;default:var be=xe&&xe.$$typeof;switch(be){case l:case s:case u:case g:case p:case a:return be;default:return me}}case t:return me}}}var f=s,T=a,R=e,F=u,D=n,q=g,J=p,K=t,j=r,ae=i,Z=c,se=d,ee=!1,pe=!1;function I(X){return ee||(ee=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function V(X){return pe||(pe=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function te(X){return y(X)===s}function O(X){return y(X)===a}function $(X){return typeof X=="object"&&X!==null&&X.$$typeof===e}function z(X){return y(X)===u}function B(X){return y(X)===n}function U(X){return y(X)===g}function ie(X){return y(X)===p}function oe(X){return y(X)===t}function G(X){return y(X)===r}function ne(X){return y(X)===i}function H(X){return y(X)===c}function de(X){return y(X)===d}nt.ContextConsumer=f,nt.ContextProvider=T,nt.Element=R,nt.ForwardRef=F,nt.Fragment=D,nt.Lazy=q,nt.Memo=J,nt.Portal=K,nt.Profiler=j,nt.StrictMode=ae,nt.Suspense=Z,nt.SuspenseList=se,nt.isAsyncMode=I,nt.isConcurrentMode=V,nt.isContextConsumer=te,nt.isContextProvider=O,nt.isElement=$,nt.isForwardRef=z,nt.isFragment=B,nt.isLazy=U,nt.isMemo=ie,nt.isPortal=oe,nt.isProfiler=G,nt.isStrictMode=ne,nt.isSuspense=H,nt.isSuspenseList=de,nt.isValidElementType=A,nt.typeOf=y})()),nt}var sc;function yb(){return sc||(sc=1,ue.NODE_ENV==="production"?ms.exports=xb():ms.exports=bb()),ms.exports}var oc=yb();const lc=e=>typeof e=="object"&&e!=null&&e.nodeType===1,uc=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",zr=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return uc(n.overflowY,t)||uc(n.overflowX,t)||(i=>{const r=(a=>{if(!a.ownerDocument||!a.ownerDocument.defaultView)return null;try{return a.ownerDocument.defaultView.frameElement}catch{return null}})(i);return!!r&&(r.clientHeight<i.scrollHeight||r.clientWidth<i.scrollWidth)})(e)}return!1},Vr=(e,t,n,i,r,a,s,l)=>a<e&&s>t||a>e&&s<t?0:a<=e&&l<=n||s>=t&&l>=n?a-e-i:s>t&&l<n||a<e&&l>n?s-t+r:0,wb=e=>e.parentElement??(e.getRootNode().host||null),kb=(e,t)=>{var n,i,r,a;if(typeof document>"u")return[];const{inline:s,boundary:l,skipOverflowHiddenElements:u}=t,c=typeof l=="function"?l:K=>K!==l;if(!lc(e))throw new TypeError("Invalid target");const d=document.scrollingElement||document.documentElement,p=[];let g=e;for(;lc(g)&&c(g);){if(g=wb(g),g===d){p.push(g);break}g!=null&&g===document.body&&zr(g)&&!zr(document.documentElement)||g!=null&&zr(g,u)&&p.push(g)}const m=(i=(n=window.visualViewport)==null?void 0:n.width)!=null?i:innerWidth,C=(a=(r=window.visualViewport)==null?void 0:r.height)!=null?a:innerHeight,{scrollX:x,scrollY:w}=window,{height:S,width:k,top:E,right:A,bottom:y,left:f}=e.getBoundingClientRect(),{top:T,right:R,left:F}=(K=>{const j=window.getComputedStyle(K);return{top:parseFloat(j.scrollMarginTop)||0,right:parseFloat(j.scrollMarginRight)||0,bottom:parseFloat(j.scrollMarginBottom)||0,left:parseFloat(j.scrollMarginLeft)||0}})(e);let D=E-T,q=s==="center"?f+k/2-F+R:s==="end"?A+R:f-F;const J=[];for(let K=0;K<p.length;K++){const j=p[K],{height:ae,width:Z,top:se,right:ee,bottom:pe,left:I}=j.getBoundingClientRect();if(E>=0&&f>=0&&y<=C&&A<=m&&(j===d&&!zr(j)||E>=se&&y<=pe&&f>=I&&A<=ee))return J;const V=getComputedStyle(j),te=parseInt(V.borderLeftWidth,10),O=parseInt(V.borderTopWidth,10),$=parseInt(V.borderRightWidth,10),z=parseInt(V.borderBottomWidth,10);let B=0,U=0;const ie="offsetWidth"in j?j.offsetWidth-j.clientWidth-te-$:0,oe="offsetHeight"in j?j.offsetHeight-j.clientHeight-O-z:0,G="offsetWidth"in j?j.offsetWidth===0?0:Z/j.offsetWidth:0,ne="offsetHeight"in j?j.offsetHeight===0?0:ae/j.offsetHeight:0;if(d===j)B=Vr(w,w+C,C,O,z,w+D,w+D+S,S),U=s==="start"?q:s==="center"?q-m/2:s==="end"?q-m:Vr(x,x+m,m,te,$,x+q,x+q+k,k),B=Math.max(0,B+w),U=Math.max(0,U+x);else{B=Vr(se,pe,ae,O,z+oe,D,D+S,S),U=s==="start"?q-I-te:s==="center"?q-(I+Z/2)+ie/2:s==="end"?q-ee+$+ie:Vr(I,ee,Z,te,$+ie,q,q+k,k);const{scrollLeft:H,scrollTop:de}=j;B=ne===0?0:Math.max(0,Math.min(de+B/ne,j.scrollHeight-ae/ne+oe)),U=G===0?0:Math.max(0,Math.min(H+U/G,j.scrollWidth-Z/G+ie)),D+=de-B,q+=H-U}J.push({el:j,top:B,left:U})}return J};var Mi=function(){return Mi=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++){t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Mi.apply(this,arguments)},Sb=0;function cc(e){return typeof e=="function"?e:Nt}function Nt(){}function Rd(e,t){if(e){var n=kb(e,{boundary:t});n.forEach(function(i){var r=i.el,a=i.top,s=i.left;r.scrollTop=a,r.scrollLeft=s})}}function hc(e,t,n){var i=e===t||t instanceof n.Node&&e.contains&&e.contains(t);return i}function ja(e,t){var n;function i(){n&&clearTimeout(n)}function r(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];i(),n=setTimeout(function(){n=null,e.apply(void 0,s)},t)}return r.cancel=i,r}function Ze(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(i){for(var r=arguments.length,a=new Array(r>1?r-1:0),s=1;s<r;s++)a[s-1]=arguments[s];return t.some(function(l){return l&&l.apply(void 0,[i].concat(a)),i.preventDownshiftDefault||i.hasOwnProperty("nativeEvent")&&i.nativeEvent.preventDownshiftDefault})}}function rn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(i){t.forEach(function(r){typeof r=="function"?r(i):r&&(r.current=i)})}}function Md(){return String(Sb++)}function Eb(e){var t=e.isOpen,n=e.resultCount,i=e.previousResultCount;return t?n?n!==i?n+" result"+(n===1?" is":"s are")+" available, use up and down arrow keys to navigate. Press Enter key to select.":"":"No results are available.":""}function dc(e,t){return e=Array.isArray(e)?e[0]:e,!e&&t?t:e}function Ld(e){return typeof e.type=="string"}function Dd(e){return e.props}function Cb(e,t){console.error('The property "'+t+'" is required in "'+e+'"')}var Ib=["highlightedIndex","inputValue","isOpen","selectedItem","type"];function Br(e){e===void 0&&(e={});var t={};return Ib.forEach(function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t}function or(e,t){return!e||!t?e:Object.keys(e).reduce(function(n,i){return n[i]=ga(t,i)?t[i]:e[i],n},{})}function ga(e,t){return e[t]!==void 0}function Li(e){var t=e.key,n=e.keyCode;return n>=37&&n<=40&&t.indexOf("Arrow")!==0?"Arrow"+t:t}function _b(e){return Object.prototype.toString.call(e)==="[object Object]"}function an(e,t,n,i,r){r===void 0&&(r=!1);var a=n.length;if(a===0)return-1;var s=a-1;(typeof e!="number"||e<0||e>s)&&(e=t>0?-1:s+1);var l=e+t;l<0?l=r?s:0:l>s&&(l=r?0:s);var u=Wn(l,t<0,n,i,r);return u===-1?e>=a?-1:e:u}function Wn(e,t,n,i,r){r===void 0&&(r=!1);var a=n.length;if(t){for(var s=e;s>=0;s--)if(!i(n[s],s))return s}else for(var l=e;l<a;l++)if(!i(n[l],l))return l;return r?Wn(t?a-1:0,t,n,i):-1}function ma(e,t,n,i){return i===void 0&&(i=!0),n&&t.some(function(r){return r&&(hc(r,e,n)||i&&hc(r,n.document.activeElement,n))})}var Bo=Nt;ue.NODE_ENV!=="production"&&(Bo=function(e,t,n){var i="This prop should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled Downshift element for the lifetime of the component. More info: https://github.com/downshift-js/downshift#control-props";Object.keys(e).forEach(function(r){t[r]!==void 0&&n[r]===void 0?console.error('downshift: A component has changed the controlled prop "'+r+'" to be uncontrolled. '+i):t[r]===void 0&&n[r]!==void 0&&console.error('downshift: A component has changed the uncontrolled prop "'+r+'" to be controlled. '+i)})});var Ab=ja(function(e){Fd(e).textContent=""},500);function Fd(e){var t=e.getElementById("a11y-status-message");return t||(t=e.createElement("div"),t.setAttribute("id","a11y-status-message"),t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-relevant","additions text"),Object.assign(t.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),e.body.appendChild(t),t)}function jd(e,t){if(!(!e||!t)){var n=Fd(t);n.textContent=e,Ab(t)}}function Nb(e){var t=e==null?void 0:e.getElementById("a11y-status-message");t&&t.remove()}var zd=ue.NODE_ENV!=="production"?"__autocomplete_unknown__":0,Vd=ue.NODE_ENV!=="production"?"__autocomplete_mouseup__":1,Bd=ue.NODE_ENV!=="production"?"__autocomplete_item_mouseenter__":2,ta=ue.NODE_ENV!=="production"?"__autocomplete_keydown_arrow_up__":3,na=ue.NODE_ENV!=="production"?"__autocomplete_keydown_arrow_down__":4,Hd=ue.NODE_ENV!=="production"?"__autocomplete_keydown_escape__":5,Kd=ue.NODE_ENV!=="production"?"__autocomplete_keydown_enter__":6,Wd=ue.NODE_ENV!=="production"?"__autocomplete_keydown_home__":7,Ud=ue.NODE_ENV!=="production"?"__autocomplete_keydown_end__":8,qd=ue.NODE_ENV!=="production"?"__autocomplete_click_item__":9,Gd=ue.NODE_ENV!=="production"?"__autocomplete_blur_input__":10,$d=ue.NODE_ENV!=="production"?"__autocomplete_change_input__":11,Jd=ue.NODE_ENV!=="production"?"__autocomplete_keydown_space_button__":12,ro=ue.NODE_ENV!=="production"?"__autocomplete_click_button__":13,Yd=ue.NODE_ENV!=="production"?"__autocomplete_blur_button__":14,Zd=ue.NODE_ENV!=="production"?"__autocomplete_controlled_prop_updated_selected_item__":15,Xd=ue.NODE_ENV!=="production"?"__autocomplete_touchend__":16,Tb=Object.freeze({__proto__:null,blurButton:Yd,blurInput:Gd,changeInput:$d,clickButton:ro,clickItem:qd,controlledPropUpdatedSelectedItem:Zd,itemMouseEnter:Bd,keyDownArrowDown:na,keyDownArrowUp:ta,keyDownEnd:Ud,keyDownEnter:Kd,keyDownEscape:Hd,keyDownHome:Wd,keyDownSpaceButton:Jd,mouseUp:Vd,touchEnd:Xd,unknown:zd}),Ob=["refKey","ref"],Pb=["onClick","onPress","onKeyDown","onKeyUp","onBlur"],Rb=["onKeyDown","onBlur","onChange","onInput","onChangeText"],Mb=["refKey","ref"],Lb=["onMouseMove","onMouseDown","onClick","onPress","index","item"],Db=(function(){var e=(function(t){function n(r){var a;a=t.call(this,r)||this,a.id=a.props.id||"downshift-"+Md(),a.menuId=a.props.menuId||a.id+"-menu",a.labelId=a.props.labelId||a.id+"-label",a.inputId=a.props.inputId||a.id+"-input",a.getItemId=a.props.getItemId||function(k){return a.id+"-item-"+k},a.items=[],a.itemCount=null,a.previousResultCount=0,a.timeoutIds=[],a.internalSetTimeout=function(k,E){var A=setTimeout(function(){a.timeoutIds=a.timeoutIds.filter(function(y){return y!==A}),k()},E);a.timeoutIds.push(A)},a.setItemCount=function(k){a.itemCount=k},a.unsetItemCount=function(){a.itemCount=null},a.isItemDisabled=function(k,E){var A=a.getItemNodeFromIndex(E);return A&&A.hasAttribute("disabled")},a.setHighlightedIndex=function(k,E){k===void 0&&(k=a.props.defaultHighlightedIndex),E===void 0&&(E={}),E=Br(E),a.internalSetState(Pe({highlightedIndex:k},E))},a.clearSelection=function(k){a.internalSetState({selectedItem:null,inputValue:"",highlightedIndex:a.props.defaultHighlightedIndex,isOpen:a.props.defaultIsOpen},k)},a.selectItem=function(k,E,A){E=Br(E),a.internalSetState(Pe({isOpen:a.props.defaultIsOpen,highlightedIndex:a.props.defaultHighlightedIndex,selectedItem:k,inputValue:a.props.itemToString(k)},E),A)},a.selectItemAtIndex=function(k,E,A){var y=a.items[k];y!=null&&a.selectItem(y,E,A)},a.selectHighlightedItem=function(k,E){return a.selectItemAtIndex(a.getState().highlightedIndex,k,E)},a.internalSetState=function(k,E){var A,y,f={},T=typeof k=="function";return!T&&k.hasOwnProperty("inputValue")&&a.props.onInputValueChange(k.inputValue,Pe({},a.getStateAndHelpers(),k)),a.setState(function(R){var F;R=a.getState(R);var D=T?k(R):k;D=a.props.stateReducer(R,D),A=D.hasOwnProperty("selectedItem");var q={};return A&&D.selectedItem!==R.selectedItem&&(y=D.selectedItem),(F=D).type||(F.type=zd),Object.keys(D).forEach(function(J){R[J]!==D[J]&&(f[J]=D[J]),J!=="type"&&(D[J],ga(a.props,J)||(q[J]=D[J]))}),T&&D.hasOwnProperty("inputValue")&&a.props.onInputValueChange(D.inputValue,Pe({},a.getStateAndHelpers(),D)),q},function(){cc(E)();var R=Object.keys(f).length>1;R&&a.props.onStateChange(f,a.getStateAndHelpers()),A&&a.props.onSelect(k.selectedItem,a.getStateAndHelpers()),y!==void 0&&a.props.onChange(y,a.getStateAndHelpers()),a.props.onUserAction(f,a.getStateAndHelpers())})},a.rootRef=function(k){return a._rootNode=k},a.getRootProps=function(k,E){var A,y=k===void 0?{}:k,f=y.refKey,T=f===void 0?"ref":f,R=y.ref,F=Tt(y,Ob),D=E===void 0?{}:E,q=D.suppressRefError,J=q===void 0?!1:q;a.getRootProps.called=!0,a.getRootProps.refKey=T,a.getRootProps.suppressRefError=J;var K=a.getState(),j=K.isOpen;return Pe((A={},A[T]=rn(R,a.rootRef),A.role="combobox",A["aria-expanded"]=j,A["aria-haspopup"]="listbox",A["aria-owns"]=j?a.menuId:void 0,A["aria-labelledby"]=a.labelId,A),F)},a.keyDownHandlers={ArrowDown:function(k){var E=this;if(k.preventDefault(),this.getState().isOpen){var A=k.shiftKey?5:1;this.moveHighlightedIndex(A,{type:na})}else this.internalSetState({isOpen:!0,type:na},function(){var y=E.getItemCount();if(y>0){var f=E.getState(),T=f.highlightedIndex,R=an(T,1,{length:y},E.isItemDisabled,!0);E.setHighlightedIndex(R,{type:na})}})},ArrowUp:function(k){var E=this;if(k.preventDefault(),this.getState().isOpen){var A=k.shiftKey?-5:-1;this.moveHighlightedIndex(A,{type:ta})}else this.internalSetState({isOpen:!0,type:ta},function(){var y=E.getItemCount();if(y>0){var f=E.getState(),T=f.highlightedIndex,R=an(T,-1,{length:y},E.isItemDisabled,!0);E.setHighlightedIndex(R,{type:ta})}})},Enter:function(k){if(k.which!==229){var E=this.getState(),A=E.isOpen,y=E.highlightedIndex;if(A&&y!=null){k.preventDefault();var f=this.items[y],T=this.getItemNodeFromIndex(y);if(f==null||T&&T.hasAttribute("disabled"))return;this.selectHighlightedItem({type:Kd})}}},Escape:function(k){k.preventDefault(),this.reset(Pe({type:Hd},!this.state.isOpen&&{selectedItem:null,inputValue:""}))}},a.buttonKeyDownHandlers=Pe({},a.keyDownHandlers,{" ":function(k){k.preventDefault(),this.toggleMenu({type:Jd})}}),a.inputKeyDownHandlers=Pe({},a.keyDownHandlers,{Home:function(k){var E=this.getState(),A=E.isOpen;if(A){k.preventDefault();var y=this.getItemCount();if(!(y<=0||!A)){var f=Wn(0,!1,{length:y},this.isItemDisabled);this.setHighlightedIndex(f,{type:Wd})}}},End:function(k){var E=this.getState(),A=E.isOpen;if(A){k.preventDefault();var y=this.getItemCount();if(!(y<=0||!A)){var f=Wn(y-1,!0,{length:y},this.isItemDisabled);this.setHighlightedIndex(f,{type:Ud})}}}}),a.getToggleButtonProps=function(k){var E=k===void 0?{}:k,A=E.onClick;E.onPress;var y=E.onKeyDown,f=E.onKeyUp,T=E.onBlur,R=Tt(E,Pb),F=a.getState(),D=F.isOpen,q={onClick:Ze(A,a.buttonHandleClick),onKeyDown:Ze(y,a.buttonHandleKeyDown),onKeyUp:Ze(f,a.buttonHandleKeyUp),onBlur:Ze(T,a.buttonHandleBlur)},J=R.disabled?{}:q;return Pe({type:"button",role:"button","aria-label":D?"close menu":"open menu","aria-haspopup":!0,"data-toggle":!0},J,R)},a.buttonHandleKeyUp=function(k){k.preventDefault()},a.buttonHandleKeyDown=function(k){var E=Li(k);a.buttonKeyDownHandlers[E]&&a.buttonKeyDownHandlers[E].call(a,k)},a.buttonHandleClick=function(k){if(k.preventDefault(),a.props.environment){var E=a.props.environment.document,A=E.body,y=E.activeElement;A&&A===y&&k.target.focus()}ue.NODE_ENV==="test"?a.toggleMenu({type:ro}):a.internalSetTimeout(function(){return a.toggleMenu({type:ro})})},a.buttonHandleBlur=function(k){var E=k.target;a.internalSetTimeout(function(){if(!(a.isMouseDown||!a.props.environment)){var A=a.props.environment.document.activeElement;(A==null||A.id!==a.inputId)&&A!==E&&a.reset({type:Yd})}})},a.getLabelProps=function(k){return Pe({htmlFor:a.inputId,id:a.labelId},k)},a.getInputProps=function(k){var E=k===void 0?{}:k,A=E.onKeyDown,y=E.onBlur,f=E.onChange,T=E.onInput;E.onChangeText;var R=Tt(E,Rb),F,D={};F="onChange";var q=a.getState(),J=q.inputValue,K=q.isOpen,j=q.highlightedIndex;if(!R.disabled){var ae;D=(ae={},ae[F]=Ze(f,T,a.inputHandleChange),ae.onKeyDown=Ze(A,a.inputHandleKeyDown),ae.onBlur=Ze(y,a.inputHandleBlur),ae)}return Pe({"aria-autocomplete":"list","aria-activedescendant":K&&typeof j=="number"&&j>=0?a.getItemId(j):void 0,"aria-controls":K?a.menuId:void 0,"aria-labelledby":R&&R["aria-label"]?void 0:a.labelId,autoComplete:"off",value:J,id:a.inputId},D,R)},a.inputHandleKeyDown=function(k){var E=Li(k);E&&a.inputKeyDownHandlers[E]&&a.inputKeyDownHandlers[E].call(a,k)},a.inputHandleChange=function(k){a.internalSetState({type:$d,isOpen:!0,inputValue:k.target.value,highlightedIndex:a.props.defaultHighlightedIndex})},a.inputHandleBlur=function(){a.internalSetTimeout(function(){var k;if(!(a.isMouseDown||!a.props.environment)){var E=a.props.environment.document.activeElement,A=(E==null||(k=E.dataset)==null?void 0:k.toggle)&&a._rootNode&&a._rootNode.contains(E);A||a.reset({type:Gd})}})},a.menuRef=function(k){a._menuNode=k},a.getMenuProps=function(k,E){var A,y=k===void 0?{}:k,f=y.refKey,T=f===void 0?"ref":f,R=y.ref,F=Tt(y,Mb),D=E===void 0?{}:E,q=D.suppressRefError,J=q===void 0?!1:q;return a.getMenuProps.called=!0,a.getMenuProps.refKey=T,a.getMenuProps.suppressRefError=J,Pe((A={},A[T]=rn(R,a.menuRef),A.role="listbox",A["aria-labelledby"]=F&&F["aria-label"]?void 0:a.labelId,A.id=a.menuId,A),F)},a.getItemProps=function(k){var E,A=k===void 0?{}:k,y=A.onMouseMove,f=A.onMouseDown,T=A.onClick;A.onPress;var R=A.index,F=A.item,D=F===void 0?ue.NODE_ENV==="production"?void 0:Cb("getItemProps","item"):F,q=Tt(A,Lb);R===void 0?(a.items.push(D),R=a.items.indexOf(D)):a.items[R]=D;var J="onClick",K=T,j=(E={onMouseMove:Ze(y,function(){R!==a.getState().highlightedIndex&&(a.setHighlightedIndex(R,{type:Bd}),a.avoidScrolling=!0,a.internalSetTimeout(function(){return a.avoidScrolling=!1},250))}),onMouseDown:Ze(f,function(Z){Z.preventDefault()})},E[J]=Ze(K,function(){a.selectItemAtIndex(R,{type:qd})}),E),ae=q.disabled?{onMouseDown:j.onMouseDown}:j;return Pe({id:a.getItemId(R),role:"option","aria-selected":a.getState().highlightedIndex===R},ae,q)},a.clearItems=function(){a.items=[]},a.reset=function(k,E){k===void 0&&(k={}),k=Br(k),a.internalSetState(function(A){var y=A.selectedItem;return Pe({isOpen:a.props.defaultIsOpen,highlightedIndex:a.props.defaultHighlightedIndex,inputValue:a.props.itemToString(y)},k)},E)},a.toggleMenu=function(k,E){k===void 0&&(k={}),k=Br(k),a.internalSetState(function(A){var y=A.isOpen;return Pe({isOpen:!y},y&&{highlightedIndex:a.props.defaultHighlightedIndex},k)},function(){var A=a.getState(),y=A.isOpen,f=A.highlightedIndex;y&&a.getItemCount()>0&&typeof f=="number"&&a.setHighlightedIndex(f,k),cc(E)()})},a.openMenu=function(k){a.internalSetState({isOpen:!0},k)},a.closeMenu=function(k){a.internalSetState({isOpen:!1},k)},a.updateStatus=ja(function(){var k;if((k=a.props)!=null&&(k=k.environment)!=null&&k.document){var E=a.getState(),A=a.items[E.highlightedIndex],y=a.getItemCount(),f=a.props.getA11yStatusMessage(Pe({itemToString:a.props.itemToString,previousResultCount:a.previousResultCount,resultCount:y,highlightedItem:A},E));a.previousResultCount=y,jd(f,a.props.environment.document)}},200);var s=a.props,l=s.defaultHighlightedIndex,u=s.initialHighlightedIndex,c=u===void 0?l:u,d=s.defaultIsOpen,p=s.initialIsOpen,g=p===void 0?d:p,m=s.initialInputValue,C=m===void 0?"":m,x=s.initialSelectedItem,w=x===void 0?null:x,S=a.getState({highlightedIndex:c,isOpen:g,inputValue:C,selectedItem:w});return S.selectedItem!=null&&a.props.initialInputValue===void 0&&(S.inputValue=a.props.itemToString(S.selectedItem)),a.state=S,a}ub(n,t);var i=n.prototype;return i.internalClearTimeouts=function(){this.timeoutIds.forEach(function(r){clearTimeout(r)}),this.timeoutIds=[]},i.getState=function(r){return r===void 0&&(r=this.state),or(r,this.props)},i.getItemCount=function(){var r=this.items.length;return this.itemCount!=null?r=this.itemCount:this.props.itemCount!==void 0&&(r=this.props.itemCount),r},i.getItemNodeFromIndex=function(r){return this.props.environment?this.props.environment.document.getElementById(this.getItemId(r)):null},i.scrollHighlightedItemIntoView=function(){{var r=this.getItemNodeFromIndex(this.getState().highlightedIndex);this.props.scrollIntoView(r,this._menuNode)}},i.moveHighlightedIndex=function(r,a){var s=this.getItemCount(),l=this.getState(),u=l.highlightedIndex;if(s>0){var c=an(u,r,{length:s},this.isItemDisabled,!0);this.setHighlightedIndex(c,a)}},i.getStateAndHelpers=function(){var r=this.getState(),a=r.highlightedIndex,s=r.inputValue,l=r.selectedItem,u=r.isOpen,c=this.props.itemToString,d=this.id,p=this.getRootProps,g=this.getToggleButtonProps,m=this.getLabelProps,C=this.getMenuProps,x=this.getInputProps,w=this.getItemProps,S=this.openMenu,k=this.closeMenu,E=this.toggleMenu,A=this.selectItem,y=this.selectItemAtIndex,f=this.selectHighlightedItem,T=this.setHighlightedIndex,R=this.clearSelection,F=this.clearItems,D=this.reset,q=this.setItemCount,J=this.unsetItemCount,K=this.internalSetState;return{getRootProps:p,getToggleButtonProps:g,getLabelProps:m,getMenuProps:C,getInputProps:x,getItemProps:w,reset:D,openMenu:S,closeMenu:k,toggleMenu:E,selectItem:A,selectItemAtIndex:y,selectHighlightedItem:f,setHighlightedIndex:T,clearSelection:R,clearItems:F,setItemCount:q,unsetItemCount:J,setState:K,itemToString:c,id:d,highlightedIndex:a,inputValue:s,isOpen:u,selectedItem:l}},i.componentDidMount=function(){var r=this;if(ue.NODE_ENV!=="production"&&this.getMenuProps.called&&!this.getMenuProps.suppressRefError&&pc(this._menuNode,this.getMenuProps),!this.props.environment)this.cleanup=function(){r.internalClearTimeouts()};else{var a=function(){r.isMouseDown=!0},s=function(p){r.isMouseDown=!1;var g=ma(p.target,[r._rootNode,r._menuNode],r.props.environment);!g&&r.getState().isOpen&&r.reset({type:Vd},function(){return r.props.onOuterClick(r.getStateAndHelpers())})},l=function(){r.isTouchMove=!1},u=function(){r.isTouchMove=!0},c=function(p){var g=ma(p.target,[r._rootNode,r._menuNode],r.props.environment,!1);!r.isTouchMove&&!g&&r.getState().isOpen&&r.reset({type:Xd},function(){return r.props.onOuterClick(r.getStateAndHelpers())})},d=this.props.environment;d.addEventListener("mousedown",a),d.addEventListener("mouseup",s),d.addEventListener("touchstart",l),d.addEventListener("touchmove",u),d.addEventListener("touchend",c),this.cleanup=function(){r.internalClearTimeouts(),r.updateStatus.cancel(),d.removeEventListener("mousedown",a),d.removeEventListener("mouseup",s),d.removeEventListener("touchstart",l),d.removeEventListener("touchmove",u),d.removeEventListener("touchend",c)}}},i.shouldScroll=function(r,a){var s=this.props.highlightedIndex===void 0?this.getState():this.props,l=s.highlightedIndex,u=a.highlightedIndex===void 0?r:a,c=u.highlightedIndex,d=l&&this.getState().isOpen&&!r.isOpen,p=l!==c;return d||p},i.componentDidUpdate=function(r,a){ue.NODE_ENV!=="production"&&(Bo(this.state,r,this.props),this.getMenuProps.called&&!this.getMenuProps.suppressRefError&&pc(this._menuNode,this.getMenuProps)),ga(this.props,"selectedItem")&&this.props.selectedItemChanged(r.selectedItem,this.props.selectedItem)&&this.internalSetState({type:Zd,inputValue:this.props.itemToString(this.props.selectedItem)}),!this.avoidScrolling&&this.shouldScroll(a,r)&&this.scrollHighlightedItemIntoView(),this.updateStatus()},i.componentWillUnmount=function(){this.cleanup()},i.render=function(){var r=dc(this.props.children,Nt);this.clearItems(),this.getRootProps.called=!1,this.getRootProps.refKey=void 0,this.getRootProps.suppressRefError=void 0,this.getMenuProps.called=!1,this.getMenuProps.refKey=void 0,this.getMenuProps.suppressRefError=void 0,this.getLabelProps.called=!1,this.getInputProps.called=!1;var a=dc(r(this.getStateAndHelpers()));if(!a)return null;if(this.getRootProps.called||this.props.suppressRefError)return ue.NODE_ENV!=="production"&&!this.getRootProps.suppressRefError&&!this.props.suppressRefError&&Fb(a,this.getRootProps),a;if(Ld(a))return M.cloneElement(a,this.getRootProps(Dd(a)));if(ue.NODE_ENV!=="production")throw new Error("downshift: If you return a non-DOM element, you must apply the getRootProps function")},n})(M.Component);return e.defaultProps={defaultHighlightedIndex:null,defaultIsOpen:!1,getA11yStatusMessage:Eb,itemToString:function(t){return t==null?"":(ue.NODE_ENV!=="production"&&_b(t)&&!t.hasOwnProperty("toString")&&console.warn("downshift: An object was passed to the default implementation of `itemToString`. You should probably provide your own `itemToString` implementation. Please refer to the `itemToString` API documentation.","The object that was passed:",t),String(t))},onStateChange:Nt,onInputValueChange:Nt,onUserAction:Nt,onChange:Nt,onSelect:Nt,onOuterClick:Nt,selectedItemChanged:function(t,n){return t!==n},environment:typeof window>"u"?void 0:window,stateReducer:function(t,n){return n},suppressRefError:!1,scrollIntoView:Rd},e.stateChangeTypes=Tb,e})();ue.NODE_ENV!=="production"&&(Db.propTypes={children:ge.func,defaultHighlightedIndex:ge.number,defaultIsOpen:ge.bool,initialHighlightedIndex:ge.number,initialSelectedItem:ge.any,initialInputValue:ge.string,initialIsOpen:ge.bool,getA11yStatusMessage:ge.func,itemToString:ge.func,onChange:ge.func,onSelect:ge.func,onStateChange:ge.func,onInputValueChange:ge.func,onUserAction:ge.func,onOuterClick:ge.func,selectedItemChanged:ge.func,stateReducer:ge.func,itemCount:ge.number,id:ge.string,environment:ge.shape({addEventListener:ge.func.isRequired,removeEventListener:ge.func.isRequired,document:ge.shape({createElement:ge.func.isRequired,getElementById:ge.func.isRequired,activeElement:ge.any.isRequired,body:ge.any.isRequired}).isRequired,Node:ge.func.isRequired}),suppressRefError:ge.bool,scrollIntoView:ge.func,selectedItem:ge.any,isOpen:ge.bool,inputValue:ge.string,highlightedIndex:ge.number,labelId:ge.string,inputId:ge.string,menuId:ge.string,getItemId:ge.func});function pc(e,t){var n=t.refKey;e||console.error('downshift: The ref prop "'+n+'" from getMenuProps was not applied correctly on your menu element.')}function Fb(e,t){var n=t.refKey,i=n!=="ref",r=!Ld(e);r&&!i&&!oc.isForwardRef(e)?console.error("downshift: You returned a non-DOM element. You must specify a refKey in getRootProps"):!r&&i&&console.error('downshift: You returned a DOM element. You should not specify a refKey in getRootProps. You specified "'+n+'"'),!oc.isForwardRef(e)&&!Dd(e)[n]&&console.error('downshift: You must apply the ref prop "'+n+'" from getRootProps onto your root element.')}var Qd={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""};function jb(e,t,n){var i=e.props,r=e.type,a={};Object.keys(t).forEach(function(s){zb(s,e,t,n),n[s]!==t[s]&&(a[s]=n[s])}),i.onStateChange&&Object.keys(a).length&&i.onStateChange(Pe({type:r},a))}function zb(e,t,n,i){var r=t.props,a=t.type,s="on"+Ko(e)+"Change";r[s]&&i[e]!==void 0&&i[e]!==n[e]&&r[s](Pe({type:a},i))}function Vb(e,t){return t.changes}var fc=ja(function(e,t){jd(e,t)},200),Bb=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?M.useLayoutEffect:M.useEffect,ep="useId"in M?function(e){var t=e.id,n=e.labelId,i=e.menuId,r=e.getItemId,a=e.toggleButtonId,s=e.inputId,l="downshift-"+M.useId();t||(t=l);var u=M.useMemo(function(){return{labelId:n||t+"-label",menuId:i||t+"-menu",getItemId:r||function(c){return t+"-item-"+c},toggleButtonId:a||t+"-toggle-button",inputId:s||t+"-input"}},[r,t,s,n,i,a]);return u}:function(e){var t=e.id,n=t===void 0?"downshift-"+Md():t,i=e.labelId,r=e.menuId,a=e.getItemId,s=e.toggleButtonId,l=e.inputId,u=M.useMemo(function(){return{labelId:i||n+"-label",menuId:r||n+"-menu",getItemId:a||function(c){return n+"-item-"+c},toggleButtonId:s||n+"-toggle-button",inputId:l||n+"-input"}},[a,n,l,i,r,s]);return u};function Ho(e,t,n,i){var r,a;if(e===void 0){if(t===void 0)throw new Error(i);r=n[t],a=t}else a=t===void 0?n.indexOf(e):t,r=e;return[r,a]}function Hb(e){return/^\S{1}$/.test(e)}function Ko(e){return""+e.slice(0,1).toUpperCase()+e.slice(1)}function za(e){var t=M.useRef(e);return t.current=e,t}function tp(e,t,n,i){var r=M.useRef(),a=M.useRef(),s=M.useCallback(function(m,C){a.current=C,m=or(m,C.props);var x=e(m,C),w=C.props.stateReducer(m,Pe({},C,{changes:x}));return w},[e]),l=M.useReducer(s,t,n),u=l[0],c=l[1],d=za(t),p=M.useCallback(function(m){return c(Pe({props:d.current},m))},[d]),g=a.current;return M.useEffect(function(){var m=or(r.current,g==null?void 0:g.props),C=g&&r.current&&!i(m,u);C&&jb(g,m,u),r.current=u},[u,g,i]),[u,p]}function np(e,t,n,i){var r=tp(e,t,n,i),a=r[0],s=r[1];return[or(a,t),s]}var er={itemToString:function(e){return e?String(e):""},itemToKey:function(e){return e},stateReducer:Vb,scrollIntoView:Rd,environment:typeof window>"u"?void 0:window};function yn(e,t,n){n===void 0&&(n=Qd);var i=e["default"+Ko(t)];return i!==void 0?i:n[t]}function si(e,t,n){n===void 0&&(n=Qd);var i=e[t];if(i!==void 0)return i;var r=e["initial"+Ko(t)];return r!==void 0?r:yn(e,t,n)}function ip(e){var t=si(e,"selectedItem"),n=si(e,"isOpen"),i=Kb(e),r=si(e,"inputValue");return{highlightedIndex:i<0&&t&&n?e.items.findIndex(function(a){return e.itemToKey(a)===e.itemToKey(t)}):i,isOpen:n,selectedItem:t,inputValue:r}}function oi(e,t,n){var i=e.items,r=e.initialHighlightedIndex,a=e.defaultHighlightedIndex,s=e.isItemDisabled,l=e.itemToKey,u=t.selectedItem,c=t.highlightedIndex;return i.length===0?-1:r!==void 0&&c===r&&!s(i[r],r)?r:a!==void 0&&!s(i[a],a)?a:u?i.findIndex(function(d){return l(u)===l(d)}):n<0&&!s(i[i.length-1],i.length-1)?i.length-1:n>0&&!s(i[0],0)?0:-1}function rp(e,t,n){var i=M.useRef({isMouseDown:!1,isTouchMove:!1,isTouchEnd:!1}),r=M.useCallback(function(){return n.map(function(a){return a.current})},[n]);return M.useEffect(function(){if(!e)return Nt;function a(){i.current.isTouchEnd=!1,i.current.isMouseDown=!0}function s(d){i.current.isMouseDown=!1,ma(d.target,r(),e)||t()}function l(){i.current.isTouchEnd=!1,i.current.isTouchMove=!1}function u(){i.current.isTouchMove=!0}function c(d){i.current.isTouchEnd=!0,!i.current.isTouchMove&&!ma(d.target,r(),e,!1)&&t()}return e.addEventListener("mousedown",a),e.addEventListener("mouseup",s),e.addEventListener("touchstart",l),e.addEventListener("touchmove",u),e.addEventListener("touchend",c),function(){e.removeEventListener("mousedown",a),e.removeEventListener("mouseup",s),e.removeEventListener("touchstart",l),e.removeEventListener("touchmove",u),e.removeEventListener("touchend",c)}},[e,r,t]),i.current}var Va=function(){return Nt};ue.NODE_ENV!=="production"&&(Va=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=M.useRef(t.reduce(function(a,s){return a[s]={},a},{}));M.useEffect(function(){Object.keys(i.current).forEach(function(a){var s=i.current[a];if(!Object.keys(s).length){console.error("downshift: You forgot to call the "+a+" getter function on your component / element.");return}var l=s.suppressRefError,u=s.refKey,c=s.elementRef;l||c!=null&&c.current||console.error('downshift: The ref prop "'+u+'" from '+a+" was not applied correctly on your element.")})},[]);var r=M.useCallback(function(a,s,l,u){i.current[a]={suppressRefError:s,refKey:l,elementRef:u}},[]);return r});function Wo(e,t,n,i){i===void 0&&(i={});var r=i.document,a=mr();M.useEffect(function(){if(!(!e||a||!r)){var s=e(t);fc(s,r)}},n),M.useEffect(function(){return function(){fc.cancel(),Nb(r)}},[r])}function ap(e){var t=e.highlightedIndex,n=e.isOpen,i=e.itemRefs,r=e.getItemNodeFromIndex,a=e.menuElement,s=e.scrollIntoView,l=M.useRef(!0);return Bb(function(){t<0||!n||!Object.keys(i.current).length||(l.current===!1?l.current=!0:s(r(t),a))},[t]),l}var Ba=Nt;ue.NODE_ENV!=="production"&&(Ba=function(e){var t=e.props,n=e.state,i=M.useRef(t),r=mr();M.useEffect(function(){r||(Bo(n,i.current,t),i.current=t)},[n,t,r])});function va(e,t,n){var i;n===void 0&&(n=!0);var r=((i=e.items)==null?void 0:i.length)&&t>=0;return Pe({isOpen:!1,highlightedIndex:-1},r&&Pe({selectedItem:e.items[t],isOpen:yn(e,"isOpen"),highlightedIndex:yn(e,"highlightedIndex")},n&&{inputValue:e.itemToString(e.items[t])}))}function sp(e,t){return e.isOpen===t.isOpen&&e.inputValue===t.inputValue&&e.highlightedIndex===t.highlightedIndex&&e.selectedItem===t.selectedItem}function mr(){var e=M.useRef(!0);return M.useEffect(function(){return e.current=!1,function(){e.current=!0}},[]),e.current}function xa(e){var t=yn(e,"highlightedIndex");return t>-1&&e.isItemDisabled(e.items[t],t)?-1:t}function Kb(e){var t=si(e,"highlightedIndex");return t>-1&&e.isItemDisabled(e.items[t],t)?-1:t}var ia={environment:ge.shape({addEventListener:ge.func.isRequired,removeEventListener:ge.func.isRequired,document:ge.shape({createElement:ge.func.isRequired,getElementById:ge.func.isRequired,activeElement:ge.any.isRequired,body:ge.any.isRequired}).isRequired,Node:ge.func.isRequired}),itemToString:ge.func,itemToKey:ge.func,stateReducer:ge.func},op=Pe({},ia,{getA11yStatusMessage:ge.func,highlightedIndex:ge.number,defaultHighlightedIndex:ge.number,initialHighlightedIndex:ge.number,isOpen:ge.bool,defaultIsOpen:ge.bool,initialIsOpen:ge.bool,selectedItem:ge.any,initialSelectedItem:ge.any,defaultSelectedItem:ge.any,id:ge.string,labelId:ge.string,menuId:ge.string,getItemId:ge.func,toggleButtonId:ge.string,onSelectedItemChange:ge.func,onHighlightedIndexChange:ge.func,onStateChange:ge.func,onIsOpenChange:ge.func,scrollIntoView:ge.func});function lp(e,t,n){var i=t.type,r=t.props,a;switch(i){case n.ItemMouseMove:a={highlightedIndex:t.disabled?-1:t.index};break;case n.MenuMouseLeave:a={highlightedIndex:-1};break;case n.ToggleButtonClick:case n.FunctionToggleMenu:a={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:oi(r,e,0)};break;case n.FunctionOpenMenu:a={isOpen:!0,highlightedIndex:oi(r,e,0)};break;case n.FunctionCloseMenu:a={isOpen:!1};break;case n.FunctionSetHighlightedIndex:a={highlightedIndex:r.isItemDisabled(r.items[t.highlightedIndex],t.highlightedIndex)?-1:t.highlightedIndex};break;case n.FunctionSetInputValue:a={inputValue:t.inputValue};break;case n.FunctionReset:a={highlightedIndex:xa(r),isOpen:yn(r,"isOpen"),selectedItem:yn(r,"selectedItem"),inputValue:yn(r,"inputValue")};break;default:throw new Error("Reducer called without proper action type.")}return Pe({},e,a)}function Wb(e){for(var t=e.keysSoFar,n=e.highlightedIndex,i=e.items,r=e.itemToString,a=e.isItemDisabled,s=t.toLowerCase(),l=0;l<i.length;l++){var u=(l+n+(t.length<2?1:0))%i.length,c=i[u];if(c!==void 0&&r(c).toLowerCase().startsWith(s)&&!a(c,u))return u}return n}var Ub=Mi(Mi({},op),{items:ge.array.isRequired,isItemDisabled:ge.func}),qb=Mi(Mi({},er),{isItemDisabled:function(){return!1}}),up=Nt;ue.NODE_ENV!=="production"&&(up=function(e,t){ge.checkPropTypes(Ub,e,"prop",t.name)});var ra=ue.NODE_ENV!=="production"?"__togglebutton_click__":0,Uo=ue.NODE_ENV!=="production"?"__togglebutton_keydown_arrow_down__":1,qo=ue.NODE_ENV!=="production"?"__togglebutton_keydown_arrow_up__":2,ba=ue.NODE_ENV!=="production"?"__togglebutton_keydown_character__":3,Go=ue.NODE_ENV!=="production"?"__togglebutton_keydown_escape__":4,$o=ue.NODE_ENV!=="production"?"__togglebutton_keydown_home__":5,Jo=ue.NODE_ENV!=="production"?"__togglebutton_keydown_end__":6,Yo=ue.NODE_ENV!=="production"?"__togglebutton_keydown_enter__":7,Zo=ue.NODE_ENV!=="production"?"__togglebutton_keydown_space_button__":8,Xo=ue.NODE_ENV!=="production"?"__togglebutton_keydown_page_up__":9,Qo=ue.NODE_ENV!=="production"?"__togglebutton_keydown_page_down__":10,ya=ue.NODE_ENV!=="production"?"__togglebutton_blur__":11,cp=ue.NODE_ENV!=="production"?"__menu_mouse_leave__":12,hp=ue.NODE_ENV!=="production"?"__item_mouse_move__":13,el=ue.NODE_ENV!=="production"?"__item_click__":14,dp=ue.NODE_ENV!=="production"?"__function_toggle_menu__":15,pp=ue.NODE_ENV!=="production"?"__function_open_menu__":16,fp=ue.NODE_ENV!=="production"?"__function_close_menu__":17,gp=ue.NODE_ENV!=="production"?"__function_set_highlighted_index__":18,tl=ue.NODE_ENV!=="production"?"__function_select_item__":19,ao=ue.NODE_ENV!=="production"?"__function_set_input_value__":20,mp=ue.NODE_ENV!=="production"?"__function_reset__":21,vp=Object.freeze({__proto__:null,FunctionCloseMenu:fp,FunctionOpenMenu:pp,FunctionReset:mp,FunctionSelectItem:tl,FunctionSetHighlightedIndex:gp,FunctionSetInputValue:ao,FunctionToggleMenu:dp,ItemClick:el,ItemMouseMove:hp,MenuMouseLeave:cp,ToggleButtonBlur:ya,ToggleButtonClick:ra,ToggleButtonKeyDownArrowDown:Uo,ToggleButtonKeyDownArrowUp:qo,ToggleButtonKeyDownCharacter:ba,ToggleButtonKeyDownEnd:Jo,ToggleButtonKeyDownEnter:Yo,ToggleButtonKeyDownEscape:Go,ToggleButtonKeyDownHome:$o,ToggleButtonKeyDownPageDown:Qo,ToggleButtonKeyDownPageUp:Xo,ToggleButtonKeyDownSpaceButton:Zo});function Gb(e,t){var n,i=t.type,r=t.props,a=t.altKey,s;switch(i){case el:s={isOpen:yn(r,"isOpen"),highlightedIndex:xa(r),selectedItem:r.items[t.index]};break;case ba:{var l=t.key,u=""+e.inputValue+l,c=!e.isOpen&&e.selectedItem?r.items.findIndex(function(m){return r.itemToKey(m)===r.itemToKey(e.selectedItem)}):e.highlightedIndex,d=Wb({keysSoFar:u,highlightedIndex:c,items:r.items,itemToString:r.itemToString,isItemDisabled:r.isItemDisabled});s={inputValue:u,highlightedIndex:d,isOpen:!0}}break;case Uo:{var p=e.isOpen?an(e.highlightedIndex,1,r.items,r.isItemDisabled):a&&e.selectedItem==null?-1:oi(r,e,1);s={highlightedIndex:p,isOpen:!0}}break;case qo:if(e.isOpen&&a)s=va(r,e.highlightedIndex,!1);else{var g=e.isOpen?an(e.highlightedIndex,-1,r.items,r.isItemDisabled):oi(r,e,-1);s={highlightedIndex:g,isOpen:!0}}break;case Yo:case Zo:s=va(r,e.highlightedIndex,!1);break;case $o:s={highlightedIndex:Wn(0,!1,r.items,r.isItemDisabled),isOpen:!0};break;case Jo:s={highlightedIndex:Wn(r.items.length-1,!0,r.items,r.isItemDisabled),isOpen:!0};break;case Xo:s={highlightedIndex:an(e.highlightedIndex,-10,r.items,r.isItemDisabled)};break;case Qo:s={highlightedIndex:an(e.highlightedIndex,10,r.items,r.isItemDisabled)};break;case Go:s={isOpen:!1,highlightedIndex:-1};break;case ya:s=Pe({isOpen:!1,highlightedIndex:-1},e.highlightedIndex>=0&&((n=r.items)==null?void 0:n.length)&&{selectedItem:r.items[e.highlightedIndex]});break;case tl:s={selectedItem:t.selectedItem};break;default:return lp(e,t,vp)}return Pe({},e,s)}var $b=["onClick"],Jb=["onMouseLeave","refKey","ref"],Yb=["onBlur","onClick","onPress","onKeyDown","refKey","ref"],Zb=["item","index","onMouseMove","onClick","onMouseDown","onPress","refKey","disabled","ref"];ii.stateChangeTypes=vp;function ii(e){e===void 0&&(e={}),up(e,ii);var t=Pe({},qb,e),n=t.scrollIntoView,i=t.environment,r=t.getA11yStatusMessage,a=np(Gb,t,ip,sp),s=a[0],l=a[1],u=s.isOpen,c=s.highlightedIndex,d=s.selectedItem,p=s.inputValue,g=M.useRef(null),m=M.useRef(null),C=M.useRef({}),x=M.useRef(null),w=ep(t),S=za({state:s,props:t}),k=M.useCallback(function(I){return C.current[w.getItemId(I)]},[w]);Wo(r,s,[u,c,d,p],i);var E=ap({menuElement:m.current,highlightedIndex:c,isOpen:u,itemRefs:C,scrollIntoView:n,getItemNodeFromIndex:k});M.useEffect(function(){return x.current=ja(function(I){I({type:ao,inputValue:""})},500),function(){x.current.cancel()}},[]),M.useEffect(function(){p&&x.current(l)},[l,p]),Ba({props:t,state:s}),M.useEffect(function(){var I=si(t,"isOpen");I&&g.current&&g.current.focus()},[]);var A=M.useCallback(function(){S.current.state.isOpen&&l({type:ya})},[l,S]),y=M.useMemo(function(){return[m,g]},[]),f=rp(i,A,y),T=Va("getMenuProps","getToggleButtonProps");M.useEffect(function(){u||(C.current={})},[u]);var R=M.useMemo(function(){return{ArrowDown:function(I){I.preventDefault(),l({type:Uo,altKey:I.altKey})},ArrowUp:function(I){I.preventDefault(),l({type:qo,altKey:I.altKey})},Home:function(I){I.preventDefault(),l({type:$o})},End:function(I){I.preventDefault(),l({type:Jo})},Escape:function(){S.current.state.isOpen&&l({type:Go})},Enter:function(I){I.preventDefault(),l({type:S.current.state.isOpen?Yo:ra})},PageUp:function(I){S.current.state.isOpen&&(I.preventDefault(),l({type:Xo}))},PageDown:function(I){S.current.state.isOpen&&(I.preventDefault(),l({type:Qo}))}," ":function(I){I.preventDefault();var V=S.current.state;if(!V.isOpen){l({type:ra});return}V.inputValue?l({type:ba,key:" "}):l({type:Zo})}}},[l,S]),F=M.useCallback(function(){l({type:dp})},[l]),D=M.useCallback(function(){l({type:fp})},[l]),q=M.useCallback(function(){l({type:pp})},[l]),J=M.useCallback(function(I){l({type:gp,highlightedIndex:I})},[l]),K=M.useCallback(function(I){l({type:tl,selectedItem:I})},[l]),j=M.useCallback(function(){l({type:mp})},[l]),ae=M.useCallback(function(I){l({type:ao,inputValue:I})},[l]),Z=M.useCallback(function(I){var V=I===void 0?{}:I,te=V.onClick,O=Tt(V,$b),$=function(){var z;(z=g.current)==null||z.focus()};return Pe({id:w.labelId,htmlFor:w.toggleButtonId,onClick:Ze(te,$)},O)},[w]),se=M.useCallback(function(I,V){var te,O=I===void 0?{}:I,$=O.onMouseLeave,z=O.refKey,B=z===void 0?"ref":z,U=O.ref,ie=Tt(O,Jb),oe=V===void 0?{}:V,G=oe.suppressRefError,ne=G===void 0?!1:G,H=function(){l({type:cp})};return T("getMenuProps",ne,B,m),Pe((te={},te[B]=rn(U,function(de){m.current=de}),te.id=w.menuId,te.role="listbox",te["aria-labelledby"]=ie&&ie["aria-label"]?void 0:""+w.labelId,te.onMouseLeave=Ze($,H),te),ie)},[l,T,w]),ee=M.useCallback(function(I,V){var te,O=I===void 0?{}:I,$=O.onBlur,z=O.onClick;O.onPress;var B=O.onKeyDown,U=O.refKey,ie=U===void 0?"ref":U,oe=O.ref,G=Tt(O,Yb),ne=V===void 0?{}:V,H=ne.suppressRefError,de=H===void 0?!1:H,X=S.current.state,me=function(){l({type:ra})},xe=function(){X.isOpen&&!f.isMouseDown&&l({type:ya})},be=function(Ee){var Se=Li(Ee);Se&&R[Se]?R[Se](Ee):Hb(Se)&&l({type:ba,key:Se})},ke=Pe((te={},te[ie]=rn(oe,function(Ee){g.current=Ee}),te["aria-activedescendant"]=X.isOpen&&X.highlightedIndex>-1?w.getItemId(X.highlightedIndex):"",te["aria-controls"]=w.menuId,te["aria-expanded"]=S.current.state.isOpen,te["aria-haspopup"]="listbox",te["aria-labelledby"]=G&&G["aria-label"]?void 0:""+w.labelId,te.id=w.toggleButtonId,te.role="combobox",te.tabIndex=0,te.onBlur=Ze($,xe),te),G);return G.disabled||(ke.onClick=Ze(z,me),ke.onKeyDown=Ze(B,be)),T("getToggleButtonProps",de,ie,g),ke},[l,w,S,f,T,R]),pe=M.useCallback(function(I){var V,te=I===void 0?{}:I,O=te.item,$=te.index,z=te.onMouseMove,B=te.onClick,U=te.onMouseDown;te.onPress;var ie=te.refKey,oe=ie===void 0?"ref":ie,G=te.disabled,ne=te.ref,H=Tt(te,Zb);G!==void 0&&console.warn('Passing "disabled" as an argument to getItemProps is not supported anymore. Please use the isItemDisabled prop from useSelect.');var de=S.current,X=de.state,me=de.props,xe=Ho(O,$,me.items,"Pass either item or index to getItemProps!"),be=xe[0],ke=xe[1],Ee=me.isItemDisabled(be,ke),Se=function(){f.isTouchEnd||ke===X.highlightedIndex||(E.current=!1,l({type:hp,index:ke,disabled:Ee}))},Ve=function(){l({type:el,index:ke})},$e=function(Fe){return Fe.preventDefault()},Me=Pe((V={},V[oe]=rn(ne,function(Fe){Fe&&(C.current[w.getItemId(ke)]=Fe)}),V["aria-disabled"]=Ee,V["aria-selected"]=be===X.selectedItem,V.id=w.getItemId(ke),V.role="option",V),H);return Ee||(Me.onClick=Ze(B,Ve)),Me.onMouseMove=Ze(z,Se),Me.onMouseDown=Ze(U,$e),Me},[S,w,f,E,l]);return{getToggleButtonProps:ee,getLabelProps:Z,getMenuProps:se,getItemProps:pe,toggleMenu:F,openMenu:q,closeMenu:D,setHighlightedIndex:J,selectItem:K,reset:j,setInputValue:ae,highlightedIndex:c,isOpen:u,selectedItem:d,inputValue:p}}var nl=ue.NODE_ENV!=="production"?"__input_keydown_arrow_down__":0,il=ue.NODE_ENV!=="production"?"__input_keydown_arrow_up__":1,rl=ue.NODE_ENV!=="production"?"__input_keydown_escape__":2,al=ue.NODE_ENV!=="production"?"__input_keydown_home__":3,sl=ue.NODE_ENV!=="production"?"__input_keydown_end__":4,ol=ue.NODE_ENV!=="production"?"__input_keydown_page_up__":5,ll=ue.NODE_ENV!=="production"?"__input_keydown_page_down__":6,ul=ue.NODE_ENV!=="production"?"__input_keydown_enter__":7,cl=ue.NODE_ENV!=="production"?"__input_change__":8,wa=ue.NODE_ENV!=="production"?"__input_blur__":9,hl=ue.NODE_ENV!=="production"?"__input_click__":10,xp=ue.NODE_ENV!=="production"?"__menu_mouse_leave__":11,bp=ue.NODE_ENV!=="production"?"__item_mouse_move__":12,dl=ue.NODE_ENV!=="production"?"__item_click__":13,yp=ue.NODE_ENV!=="production"?"__togglebutton_click__":14,wp=ue.NODE_ENV!=="production"?"__function_toggle_menu__":15,kp=ue.NODE_ENV!=="production"?"__function_open_menu__":16,Sp=ue.NODE_ENV!=="production"?"__function_close_menu__":17,Ep=ue.NODE_ENV!=="production"?"__function_set_highlighted_index__":18,pl=ue.NODE_ENV!=="production"?"__function_select_item__":19,Cp=ue.NODE_ENV!=="production"?"__function_set_input_value__":20,Ip=ue.NODE_ENV!=="production"?"__function_reset__":21,fl=ue.NODE_ENV!=="production"?"__controlled_prop_updated_selected_item__":22,_p=Object.freeze({__proto__:null,ControlledPropUpdatedSelectedItem:fl,FunctionCloseMenu:Sp,FunctionOpenMenu:kp,FunctionReset:Ip,FunctionSelectItem:pl,FunctionSetHighlightedIndex:Ep,FunctionSetInputValue:Cp,FunctionToggleMenu:wp,InputBlur:wa,InputChange:cl,InputClick:hl,InputKeyDownArrowDown:nl,InputKeyDownArrowUp:il,InputKeyDownEnd:sl,InputKeyDownEnter:ul,InputKeyDownEscape:rl,InputKeyDownHome:al,InputKeyDownPageDown:ll,InputKeyDownPageUp:ol,ItemClick:dl,ItemMouseMove:bp,MenuMouseLeave:xp,ToggleButtonClick:yp});function Xb(e){var t=ip(e),n=t.selectedItem,i=t.inputValue;return i===""&&n&&e.defaultInputValue===void 0&&e.initialInputValue===void 0&&e.inputValue===void 0&&(i=e.itemToString(n)),Pe({},t,{inputValue:i})}var Qb=Pe({},op,{items:ge.array.isRequired,isItemDisabled:ge.func,inputValue:ge.string,defaultInputValue:ge.string,initialInputValue:ge.string,inputId:ge.string,onInputValueChange:ge.func});function ey(e,t,n,i){var r=M.useRef(),a=tp(e,t,n,i),s=a[0],l=a[1],u=mr();return M.useEffect(function(){if(ga(t,"selectedItem")){if(!u){var c=t.itemToKey(t.selectedItem)!==t.itemToKey(r.current);c&&l({type:fl,inputValue:t.itemToString(t.selectedItem)})}r.current=s.selectedItem===r.current?t.selectedItem:s.selectedItem}},[s.selectedItem,t.selectedItem]),[or(s,t),l]}var Ap=Nt;ue.NODE_ENV!=="production"&&(Ap=function(e,t){ge.checkPropTypes(Qb,e,"prop",t.name)});var ty=Pe({},er,{isItemDisabled:function(){return!1}});function ny(e,t){var n,i=t.type,r=t.props,a=t.altKey,s;switch(i){case dl:s={isOpen:yn(r,"isOpen"),highlightedIndex:xa(r),selectedItem:r.items[t.index],inputValue:r.itemToString(r.items[t.index])};break;case nl:e.isOpen?s={highlightedIndex:an(e.highlightedIndex,1,r.items,r.isItemDisabled,!0)}:s={highlightedIndex:a&&e.selectedItem==null?-1:oi(r,e,1),isOpen:r.items.length>=0};break;case il:e.isOpen?a?s=va(r,e.highlightedIndex):s={highlightedIndex:an(e.highlightedIndex,-1,r.items,r.isItemDisabled,!0)}:s={highlightedIndex:oi(r,e,-1),isOpen:r.items.length>=0};break;case ul:s=va(r,e.highlightedIndex);break;case rl:s=Pe({isOpen:!1,highlightedIndex:-1},!e.isOpen&&{selectedItem:null,inputValue:""});break;case ol:s={highlightedIndex:an(e.highlightedIndex,-10,r.items,r.isItemDisabled,!0)};break;case ll:s={highlightedIndex:an(e.highlightedIndex,10,r.items,r.isItemDisabled,!0)};break;case al:s={highlightedIndex:Wn(0,!1,r.items,r.isItemDisabled)};break;case sl:s={highlightedIndex:Wn(r.items.length-1,!0,r.items,r.isItemDisabled)};break;case wa:s=Pe({isOpen:!1,highlightedIndex:-1},e.highlightedIndex>=0&&((n=r.items)==null?void 0:n.length)&&t.selectItem&&{selectedItem:r.items[e.highlightedIndex],inputValue:r.itemToString(r.items[e.highlightedIndex])});break;case cl:s={isOpen:!0,highlightedIndex:xa(r),inputValue:t.inputValue};break;case hl:s={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:oi(r,e,0)};break;case pl:s={selectedItem:t.selectedItem,inputValue:r.itemToString(t.selectedItem)};break;case fl:s={inputValue:t.inputValue};break;default:return lp(e,t,_p)}return Pe({},e,s)}var iy=["onMouseLeave","refKey","ref"],ry=["item","index","refKey","ref","onMouseMove","onMouseDown","onClick","onPress","disabled"],ay=["onClick","onPress","refKey","ref"],sy=["onKeyDown","onChange","onInput","onBlur","onChangeText","onClick","refKey","ref"];Dt.stateChangeTypes=_p;function Dt(e){e===void 0&&(e={}),Ap(e,Dt);var t=Pe({},ty,e),n=t.items,i=t.scrollIntoView,r=t.environment,a=t.getA11yStatusMessage,s=ey(ny,t,Xb,sp),l=s[0],u=s[1],c=l.isOpen,d=l.highlightedIndex,p=l.selectedItem,g=l.inputValue,m=M.useRef(null),C=M.useRef({}),x=M.useRef(null),w=M.useRef(null),S=mr(),k=ep(t),E=M.useRef(),A=za({state:l,props:t}),y=M.useCallback(function($){return C.current[k.getItemId($)]},[k]);Wo(a,l,[c,d,p,g],r);var f=ap({menuElement:m.current,highlightedIndex:d,isOpen:c,itemRefs:C,scrollIntoView:i,getItemNodeFromIndex:y});Ba({props:t,state:l}),M.useEffect(function(){var $=si(t,"isOpen");$&&x.current&&x.current.focus()},[]),M.useEffect(function(){S||(E.current=n.length)});var T=M.useCallback(function(){A.current.state.isOpen&&u({type:wa})},[u,A]),R=M.useMemo(function(){return[m,w,x]},[]),F=rp(r,T,R),D=Va("getInputProps","getMenuProps");M.useEffect(function(){c||(C.current={})},[c]),M.useEffect(function(){var $;!c||!(r!=null&&r.document)||!(x!=null&&($=x.current)!=null&&$.focus)||r.document.activeElement!==x.current&&x.current.focus()},[c,r]);var q=M.useMemo(function(){return{ArrowDown:function($){$.preventDefault(),u({type:nl,altKey:$.altKey})},ArrowUp:function($){$.preventDefault(),u({type:il,altKey:$.altKey})},Home:function($){A.current.state.isOpen&&($.preventDefault(),u({type:al}))},End:function($){A.current.state.isOpen&&($.preventDefault(),u({type:sl}))},Escape:function($){var z=A.current.state;(z.isOpen||z.inputValue||z.selectedItem||z.highlightedIndex>-1)&&($.preventDefault(),u({type:rl}))},Enter:function($){var z=A.current.state;!z.isOpen||$.which===229||($.preventDefault(),u({type:ul}))},PageUp:function($){A.current.state.isOpen&&($.preventDefault(),u({type:ol}))},PageDown:function($){A.current.state.isOpen&&($.preventDefault(),u({type:ll}))}}},[u,A]),J=M.useCallback(function($){return Pe({id:k.labelId,htmlFor:k.inputId},$)},[k]),K=M.useCallback(function($,z){var B,U=$===void 0?{}:$,ie=U.onMouseLeave,oe=U.refKey,G=oe===void 0?"ref":oe,ne=U.ref,H=Tt(U,iy),de=z===void 0?{}:z,X=de.suppressRefError,me=X===void 0?!1:X;return D("getMenuProps",me,G,m),Pe((B={},B[G]=rn(ne,function(xe){m.current=xe}),B.id=k.menuId,B.role="listbox",B["aria-labelledby"]=H&&H["aria-label"]?void 0:""+k.labelId,B.onMouseLeave=Ze(ie,function(){u({type:xp})}),B),H)},[u,D,k]),j=M.useCallback(function($){var z,B,U=$===void 0?{}:$,ie=U.item,oe=U.index,G=U.refKey,ne=G===void 0?"ref":G,H=U.ref,de=U.onMouseMove,X=U.onMouseDown,me=U.onClick;U.onPress;var xe=U.disabled,be=Tt(U,ry);xe!==void 0&&console.warn('Passing "disabled" as an argument to getItemProps is not supported anymore. Please use the isItemDisabled prop from useCombobox.');var ke=A.current,Ee=ke.props,Se=ke.state,Ve=Ho(ie,oe,Ee.items,"Pass either item or index to getItemProps!"),$e=Ve[0],Me=Ve[1],Fe=Ee.isItemDisabled($e,Me),xt="onClick",le=me,re=function(){F.isTouchEnd||Me===Se.highlightedIndex||(f.current=!1,u({type:bp,index:Me,disabled:Fe}))},P=function(){u({type:dl,index:Me})},Ce=function(Le){return Le.preventDefault()};return Pe((z={},z[ne]=rn(H,function(Le){Le&&(C.current[k.getItemId(Me)]=Le)}),z["aria-disabled"]=Fe,z["aria-selected"]=Me===Se.highlightedIndex,z.id=k.getItemId(Me),z.role="option",z),!Fe&&(B={},B[xt]=Ze(le,P),B),{onMouseMove:Ze(de,re),onMouseDown:Ze(X,Ce)},be)},[u,k,A,F,f]),ae=M.useCallback(function($){var z,B=$===void 0?{}:$,U=B.onClick;B.onPress;var ie=B.refKey,oe=ie===void 0?"ref":ie,G=B.ref,ne=Tt(B,ay),H=A.current.state,de=function(){u({type:yp})};return Pe((z={},z[oe]=rn(G,function(X){w.current=X}),z["aria-controls"]=k.menuId,z["aria-expanded"]=H.isOpen,z.id=k.toggleButtonId,z.tabIndex=-1,z),!ne.disabled&&Pe({},{onClick:Ze(U,de)}),ne)},[u,A,k]),Z=M.useCallback(function($,z){var B,U=$===void 0?{}:$,ie=U.onKeyDown,oe=U.onChange,G=U.onInput,ne=U.onBlur;U.onChangeText;var H=U.onClick,de=U.refKey,X=de===void 0?"ref":de,me=U.ref,xe=Tt(U,sy),be=z===void 0?{}:z,ke=be.suppressRefError,Ee=ke===void 0?!1:ke;D("getInputProps",Ee,X,x);var Se=A.current.state,Ve=function(P){var Ce=Li(P);Ce&&q[Ce]&&q[Ce](P)},$e=function(P){u({type:cl,inputValue:P.target.value})},Me=function(P){if(r!=null&&r.document&&Se.isOpen&&!F.isMouseDown){var Ce=P.relatedTarget===null&&r.document.activeElement!==r.document.body;u({type:wa,selectItem:!Ce})}},Fe=function(){u({type:hl})},xt="onChange",le={};if(!xe.disabled){var re;le=(re={},re[xt]=Ze(oe,G,$e),re.onKeyDown=Ze(ie,Ve),re.onBlur=Ze(ne,Me),re.onClick=Ze(H,Fe),re)}return Pe((B={},B[X]=rn(me,function(P){x.current=P}),B["aria-activedescendant"]=Se.isOpen&&Se.highlightedIndex>-1?k.getItemId(Se.highlightedIndex):"",B["aria-autocomplete"]="list",B["aria-controls"]=k.menuId,B["aria-expanded"]=Se.isOpen,B["aria-labelledby"]=xe&&xe["aria-label"]?void 0:k.labelId,B.autoComplete="off",B.id=k.inputId,B.role="combobox",B.value=Se.inputValue,B),le,xe)},[u,k,r,q,A,F,D]),se=M.useCallback(function(){u({type:wp})},[u]),ee=M.useCallback(function(){u({type:Sp})},[u]),pe=M.useCallback(function(){u({type:kp})},[u]),I=M.useCallback(function($){u({type:Ep,highlightedIndex:$})},[u]),V=M.useCallback(function($){u({type:pl,selectedItem:$})},[u]),te=M.useCallback(function($){u({type:Cp,inputValue:$})},[u]),O=M.useCallback(function(){u({type:Ip})},[u]);return{getItemProps:j,getLabelProps:J,getMenuProps:K,getInputProps:Z,getToggleButtonProps:ae,toggleMenu:se,openMenu:pe,closeMenu:ee,setHighlightedIndex:I,setInputValue:te,selectItem:V,reset:O,highlightedIndex:d,isOpen:c,selectedItem:p,inputValue:g}}var Np={activeIndex:-1,selectedItems:[]};function gc(e,t){return si(e,t,Np)}function mc(e,t){return yn(e,t,Np)}function oy(e){var t=gc(e,"activeIndex"),n=gc(e,"selectedItems");return{activeIndex:t,selectedItems:n}}function vc(e){if(e.shiftKey||e.metaKey||e.ctrlKey||e.altKey)return!1;var t=e.target;return!(t instanceof HTMLInputElement&&t.value!==""&&(t.selectionStart!==0||t.selectionEnd!==0))}function ly(e,t){return e.selectedItems===t.selectedItems&&e.activeIndex===t.activeIndex}var uy={stateReducer:ia.stateReducer,itemToKey:ia.itemToKey,environment:ia.environment,selectedItems:ge.array,initialSelectedItems:ge.array,defaultSelectedItems:ge.array,getA11yStatusMessage:ge.func,activeIndex:ge.number,initialActiveIndex:ge.number,defaultActiveIndex:ge.number,onActiveIndexChange:ge.func,onSelectedItemsChange:ge.func,keyNavigationNext:ge.string,keyNavigationPrevious:ge.string},cy={itemToKey:er.itemToKey,stateReducer:er.stateReducer,environment:er.environment,keyNavigationNext:"ArrowRight",keyNavigationPrevious:"ArrowLeft"},Tp=Nt;ue.NODE_ENV!=="production"&&(Tp=function(e,t){ge.checkPropTypes(uy,e,"prop",t.name)});var gl=ue.NODE_ENV!=="production"?"__selected_item_click__":0,ml=ue.NODE_ENV!=="production"?"__selected_item_keydown_delete__":1,vl=ue.NODE_ENV!=="production"?"__selected_item_keydown_backspace__":2,xl=ue.NODE_ENV!=="production"?"__selected_item_keydown_navigation_next__":3,bl=ue.NODE_ENV!=="production"?"__selected_item_keydown_navigation_previous__":4,yl=ue.NODE_ENV!=="production"?"__dropdown_keydown_navigation_previous__":5,wl=ue.NODE_ENV!=="production"?"__dropdown_keydown_backspace__":6,kl=ue.NODE_ENV!=="production"?"__dropdown_click__":7,Sl=ue.NODE_ENV!=="production"?"__function_add_selected_item__":8,El=ue.NODE_ENV!=="production"?"__function_remove_selected_item__":9,Cl=ue.NODE_ENV!=="production"?"__function_set_selected_items__":10,Il=ue.NODE_ENV!=="production"?"__function_set_active_index__":11,_l=ue.NODE_ENV!=="production"?"__function_reset__":12,hy=Object.freeze({__proto__:null,DropdownClick:kl,DropdownKeyDownBackspace:wl,DropdownKeyDownNavigationPrevious:yl,FunctionAddSelectedItem:Sl,FunctionRemoveSelectedItem:El,FunctionReset:_l,FunctionSetActiveIndex:Il,FunctionSetSelectedItems:Cl,SelectedItemClick:gl,SelectedItemKeyDownBackspace:vl,SelectedItemKeyDownDelete:ml,SelectedItemKeyDownNavigationNext:xl,SelectedItemKeyDownNavigationPrevious:bl});function dy(e,t){var n=t.type,i=t.index,r=t.props,a=t.selectedItem,s=e.activeIndex,l=e.selectedItems,u;switch(n){case gl:u={activeIndex:i};break;case bl:u={activeIndex:s-1<0?0:s-1};break;case xl:u={activeIndex:s+1>=l.length?-1:s+1};break;case vl:case ml:{if(s<0)break;var c=s;l.length===1?c=-1:s===l.length-1&&(c=l.length-2),u=Pe({selectedItems:[].concat(l.slice(0,s),l.slice(s+1))},{activeIndex:c});break}case yl:u={activeIndex:l.length-1};break;case wl:u={selectedItems:l.slice(0,l.length-1)};break;case Sl:u={selectedItems:[].concat(l,[a])};break;case kl:u={activeIndex:-1};break;case El:{var d=s,p=l.findIndex(function(C){return r.itemToKey(C)===r.itemToKey(a)});if(p<0)break;l.length===1?d=-1:p===l.length-1&&(d=l.length-2),u={selectedItems:[].concat(l.slice(0,p),l.slice(p+1)),activeIndex:d};break}case Cl:{var g=t.selectedItems;u={selectedItems:g};break}case Il:{var m=t.activeIndex;u={activeIndex:m};break}case _l:u={activeIndex:mc(r,"activeIndex"),selectedItems:mc(r,"selectedItems")};break;default:throw new Error("Reducer called without proper action type.")}return Pe({},e,u)}var py=["refKey","ref","onClick","onKeyDown","selectedItem","index"],fy=["refKey","ref","onKeyDown","onClick","preventKeyAction"];Al.stateChangeTypes=hy;function Al(e){e===void 0&&(e={}),Tp(e,Al);var t=Pe({},cy,e),n=t.getA11yStatusMessage,i=t.environment,r=t.keyNavigationNext,a=t.keyNavigationPrevious,s=np(dy,t,oy,ly),l=s[0],u=s[1],c=l.activeIndex,d=l.selectedItems,p=mr(),g=M.useRef(null),m=M.useRef();m.current=[];var C=za({state:l,props:t});Wo(n,l,[c,d],i),M.useEffect(function(){p||(c===-1&&g.current?g.current.focus():m.current[c]&&m.current[c].focus())},[c]),Ba({props:t,state:l});var x=Va("getDropdownProps"),w=M.useMemo(function(){var F;return F={},F[a]=function(){u({type:bl})},F[r]=function(){u({type:xl})},F.Delete=function(){u({type:ml})},F.Backspace=function(){u({type:vl})},F},[u,r,a]),S=M.useMemo(function(){var F;return F={},F[a]=function(D){vc(D)&&u({type:yl})},F.Backspace=function(D){vc(D)&&u({type:wl})},F},[u,a]),k=M.useCallback(function(F){var D,q=F===void 0?{}:F,J=q.refKey,K=J===void 0?"ref":J,j=q.ref,ae=q.onClick,Z=q.onKeyDown,se=q.selectedItem,ee=q.index,pe=Tt(q,py),I=C.current.state,V=Ho(se,ee,I.selectedItems,"Pass either item or index to getSelectedItemProps!"),te=V[1],O=te>-1&&te===I.activeIndex,$=function(){u({type:gl,index:te})},z=function(B){var U=Li(B);U&&w[U]&&w[U](B)};return Pe((D={},D[K]=rn(j,function(B){B&&m.current.push(B)}),D.tabIndex=O?0:-1,D.onClick=Ze(ae,$),D.onKeyDown=Ze(Z,z),D),pe)},[u,C,w]),E=M.useCallback(function(F,D){var q,J=F===void 0?{}:F,K=J.refKey,j=K===void 0?"ref":K,ae=J.ref,Z=J.onKeyDown,se=J.onClick,ee=J.preventKeyAction,pe=ee===void 0?!1:ee,I=Tt(J,fy),V=D===void 0?{}:D,te=V.suppressRefError,O=te===void 0?!1:te;x("getDropdownProps",O,j,g);var $=function(B){var U=Li(B);U&&S[U]&&S[U](B)},z=function(){u({type:kl})};return Pe((q={},q[j]=rn(ae,function(B){B&&(g.current=B)}),q),!pe&&{onKeyDown:Ze(Z,$),onClick:Ze(se,z)},I)},[u,S,x]),A=M.useCallback(function(F){u({type:Sl,selectedItem:F})},[u]),y=M.useCallback(function(F){u({type:El,selectedItem:F})},[u]),f=M.useCallback(function(F){u({type:Cl,selectedItems:F})},[u]),T=M.useCallback(function(F){u({type:Il,activeIndex:F})},[u]),R=M.useCallback(function(){u({type:_l})},[u]);return{getSelectedItemProps:k,getDropdownProps:E,addSelectedItem:A,removeSelectedItem:y,setSelectedItems:f,setActiveIndex:T,reset:R,selectedItems:d,activeIndex:c}}const gy=e=>{const{items:t=[],isMulti:n=!1,isSearchable:i=!1,value:r,defaultValue:a,inputValue:s,onChange:l,onInputChange:u,getOptionLabel:c=G=>(G==null?void 0:G.label)||"",getOptionValue:d=G=>(G==null?void 0:G.value)||"",isOpen:p,onOpenChange:g,customOptionGenerator:m,disableInternalFiltering:C=!1,stateReducer:x,isDisabled:w=!1,clearSearchOnSelect:S=!1,closeMenuOnSelect:k=!0}=e,E=M.useCallback(G=>{const ne=c(G);if(typeof ne=="string")return ne;if(typeof ne=="number")return String(ne);const H=G;if(typeof H=="object"&&H!==null){if(typeof H.label=="string")return H.label;if(typeof H.name=="string")return H.name}return String(d(G))},[c,d]),A=G=>G?Array.isArray(G)?G:[G]:[],y=a!==void 0?a:r!==void 0?r:null,[f,T]=M.useState(()=>A(y)),[R,F]=M.useState(s||""),[D,q]=M.useState(()=>p!==void 0?p:!1),J=r!==void 0?A(r):f,K=s!==void 0?s:R,j=p!==void 0?p:D,ae=M.useCallback(G=>{p===void 0&&q(G),g==null||g(G)},[p,g]),Z=M.useCallback(G=>{r===void 0&&T(G);const ne=n?G:G[0]||null;l==null||l(ne)},[r,n,l]),se=M.useCallback(G=>{s===void 0&&F(G),u==null||u(G)},[s,u]),[ee,pe]=M.useState(K);M.useEffect(()=>{const G=setTimeout(()=>pe(K),120);return()=>clearTimeout(G)},[K]);const I=M.useMemo(()=>m?m(K,t):C||!i||!ee?t:t.filter(G=>E(G).toLowerCase().includes(ee.toLowerCase())),[t,K,ee,m,C,i,E]),V=Al({selectedItems:J,onSelectedItemsChange:G=>{const ne=G.selectedItems||[];Z(ne)}}),te={items:I,itemToString:G=>G?E(G):"",isOpen:j,onIsOpenChange:({isOpen:G})=>{G!==void 0&&ae(G)},selectedItem:n?null:J[0]||null,onSelectedItemChange:G=>{!n&&G.selectedItem&&Z([G.selectedItem])}},O=G=>{const ne=new Map;for(const[H,de]of Object.entries(G.stateChangeTypes))ne.set(de,H);return(H,de)=>{const X=(()=>{const{changes:me,type:xe}=de;if((xe===Dt.stateChangeTypes.InputBlur||xe===ii.stateChangeTypes.ToggleButtonBlur)&&typeof document<"u"){const Ee=document.activeElement;if(Ee!=null&&Ee.closest('[data-qui="SelectMenu"]'))return{...me,isOpen:!0}}const be=G===Dt?[Dt.stateChangeTypes.InputKeyDownEnter,Dt.stateChangeTypes.ItemClick]:[ii.stateChangeTypes.ToggleButtonKeyDownEnter,ii.stateChangeTypes.ItemClick],ke=k??!n;if(n&&me.selectedItem&&be.includes(xe)&&(!J.some(Ee=>d(Ee)===d(me.selectedItem))&&me.selectedItem&&V.addSelectedItem(me.selectedItem),!ke))return{...me,isOpen:!0,highlightedIndex:H.highlightedIndex,...i&&{inputValue:""}};if(!n&&me.selectedItem&&be.includes(xe)){const Ee={...me};return S&&(Ee.inputValue=""),k===!1&&(Ee.isOpen=!0,Ee.highlightedIndex=H.highlightedIndex),Ee}return xe===Dt.stateChangeTypes.InputBlur&&!n&&J.length>0?{...me,inputValue:E(J[0])}:i&&!be.includes(xe)&&xe!==Dt.stateChangeTypes.InputChange&&(xe===Dt.stateChangeTypes.ControlledPropUpdatedSelectedItem||xe===Dt.stateChangeTypes.FunctionSetInputValue||xe===Dt.stateChangeTypes.InputBlur&&!me.isOpen)?{...me,inputValue:K}:me})();if(x){const me=ne.get(de.type)||de.type;return x(H,{...de,type:me,changes:X})}return X}},$=i?Dt({...te,inputValue:K,onInputValueChange:({inputValue:G,type:ne})=>{!G&&ne===Dt.stateChangeTypes.InputChange&&Z([]),se(G||"")},stateReducer:O(Dt),initialIsOpen:p!==void 0?p:!1,defaultIsOpen:!1}):ii({...te,stateReducer:O(ii),initialIsOpen:p!==void 0?p:!1,defaultIsOpen:!1}),z=()=>{w||(ae(!j),"toggleMenu"in $&&$.toggleMenu())},B=M.useCallback(()=>{w||(ae(!0),"openMenu"in $&&$.openMenu())},[ae,$,w]),U=M.useCallback(()=>{ae(!1),"closeMenu"in $&&$.closeMenu()},[ae,$]),ie=M.useCallback(()=>{Z([]),se(""),n&&V.reset()},[Z,se,n,V]),oe=M.useCallback(G=>{n&&V.removeSelectedItem(G)},[n,V]);return{isOpen:$.isOpen,selectedItem:$.selectedItem,highlightedIndex:$.highlightedIndex,inputValue:K,getToggleButtonProps:$.getToggleButtonProps,getMenuProps:$.getMenuProps,getItemProps:$.getItemProps,getInputProps:i?(G,ne)=>({..."getInputProps"in $?$.getInputProps(G,ne):{},value:K}):void 0,selectedItems:J,filteredItems:I,setInputValue:se,setIsOpen:ae,toggleMenu:z,openMenu:B,closeMenu:U,clearSelection:ie,removeItem:oe,multipleSelection:V,isMulti:n,isSearchable:i}},Op=({size:e="md",color:t="primary",isInvalid:n=!1,isDisabled:i=!1,className:r,children:a,options:s=[],value:l,defaultValue:u,onChange:c,isMulti:d,inputValue:p,onInputChange:g,isSearchable:m,isOpen:C,onOpenChange:x,customOptionGenerator:w,disableInternalFiltering:S,getOptionLabel:k=F=>typeof F=="string"||typeof F=="number"?String(F):(F==null?void 0:F.label)||(F==null?void 0:F.name)||String(F),getOptionValue:E=F=>typeof F=="string"||typeof F=="number"?String(F):(F==null?void 0:F.value)||(F==null?void 0:F.id)||(F==null?void 0:F.name)||String(F),isOptionDisabled:A=F=>(F==null?void 0:F.isDisabled)||!1,stateReducer:y,clearSearchOnSelect:f,closeMenuOnSelect:T,...R})=>{const[F,D]=M.useState(!1),[q,J]=M.useState(!1),[K,j]=M.useState(!1),[ae,Z]=M.useState("bottom"),se=M.useMemo(()=>lb(s),[s]),ee=gy({items:se,value:l,defaultValue:u,onChange:c,isMulti:d,inputValue:p,onInputChange:g,isSearchable:m,isOpen:C,onOpenChange:x,getOptionLabel:k,getOptionValue:E,customOptionGenerator:w,disableInternalFiltering:S,stateReducer:y,isDisabled:i,clearSearchOnSelect:f,closeMenuOnSelect:T}),pe={size:e,color:n?"negative":t,isInvalid:n,isDisabled:i,hasMessage:F,setHasMessage:D,hasGroup:q,setHasGroup:J,menuVisible:K,setMenuVisible:j,menuPlacement:ae,setMenuPlacement:Z,downshift:ee,options:s,getOptionLabel:k,getOptionValue:E,isOptionDisabled:A};return b.jsx(Nd.Provider,{value:pe,children:b.jsx("div",{"data-qui":"Select",className:ce(K0(),r),...R,children:a})})},my=M.forwardRef(({className:e,children:t,isFocused:n,isDisabled:i,...r},a)=>{const{size:s,color:l,isDisabled:u,hasMessage:c,hasGroup:d,downshift:p,isInvalid:g,menuPlacement:m}=yt(),C=i??u,x=n??p.isOpen;return b.jsx("div",{ref:a,className:ce(q0({size:s,color:l,isDisabled:C,isFocused:!!x,isInvalid:g&&!p.isOpen,hasMessage:c,hasGroup:d,menuPlacement:p.isOpen?m:void 0}),e),"aria-disabled":C,"aria-invalid":g,role:"combobox",tabIndex:C?-1:0,...r,children:t})}),vy=({className:e,children:t,isMulti:n})=>b.jsx("div",{className:ce(G0({isMulti:n}),e),children:t}),aa=M.forwardRef(({isHidden:e,inputClassName:t,className:n,...i},r)=>{const{size:a,color:s}=yt();return e?b.jsx("input",{ref:r,type:"text",className:n,style:{position:"absolute",top:0,left:0,opacity:0,width:"100%",height:"100%",pointerEvents:"none"},tabIndex:-1,...i}):b.jsx("input",{ref:r,type:"text",className:ce($0({size:a,color:s}),t,n),...i})}),xy=({className:e,children:t})=>{const{size:n,color:i}=yt();return b.jsx("div",{className:ce(J0({size:n,color:i}),e),children:t})},by=({className:e,children:t,data:n,isDisabled:i})=>{const{size:r,color:a,getOptionLabel:s}=yt();return b.jsx("div",{className:ce(Y0({size:r,color:a,isDisabled:i}),e),children:t||s(n)})},Pp=({className:e,children:t,data:n,isDisabled:i,isFocused:r,onRemove:a})=>{const{size:s,color:l,downshift:u,getOptionLabel:c}=yt(),d=()=>{a?a(n):u.removeItem(n)};return b.jsxs("div",{className:ce(Z0({size:s,color:l,isDisabled:i,isFocused:r}),e),children:[b.jsx("div",{className:X0({size:s}),children:t||c(n)}),!i&&b.jsx("div",{className:Q0({size:s,color:l,isDisabled:!1}),onClick:d,children:b.jsx(Ra,{className:"w-3 h-3"})})]})},Rp=({color:e,className:t,children:n,onClick:i,isDisabled:r,...a})=>{const{size:s,color:l,isDisabled:u,downshift:c}=yt(),d=r??u,p=c.selectedItems.length>0;if(d||!p)return null;const g=m=>{m.stopPropagation(),i?i(m):c.clearSelection()};return b.jsx("div",{className:ce(Td({size:s,color:e||l,isDisabled:d}),t),onClick:g,role:"button",tabIndex:0,"aria-label":"Clear selection",...a,children:n||b.jsx(ov,{})})},yy=({className:e,children:t,onClick:n,isDisabled:i,...r})=>{const{size:a,color:s,isDisabled:l,downshift:u}=yt(),c=i??l,d=u.inputValue.length>0&&u.isSearchable;if(c||!d)return null;const p=g=>{g.stopPropagation(),n?n(g):u.setInputValue("")};return b.jsx("div",{className:ce(Td({size:a,color:s,isDisabled:c}),e),onClick:p,role:"button",tabIndex:0,"aria-label":"Clear selection",...r,children:t||b.jsx(Ra,{})})},Mp=M.forwardRef(({color:e,className:t,children:n,onClick:i,isDisabled:r,...a},s)=>{const{size:l,color:u,isDisabled:c,downshift:d}=yt(),p=r??c,g=d.isOpen,m=C=>{C.stopPropagation(),p||(i?i(C):d.toggleMenu())};return b.jsx("div",{ref:s,className:ce(eb({size:l,color:e||u,isDisabled:p}),"cursor-pointer",t),onClick:m,role:"button",tabIndex:p?-1:0,"aria-label":g?"Close menu":"Open menu","aria-expanded":g,"aria-disabled":p,onMouseDown:C=>{C.preventDefault()},...a,children:n||b.jsx(Fh,{className:ce("transition-transform duration-200",{"rotate-180":g})})})}),wy=M.forwardRef(({className:e,children:t,placement:n,...i},r)=>{const{size:a,hasMessage:s,color:l,hasGroup:u}=yt();return b.jsx("div",{"data-qui":"SelectMenu",ref:r,className:ce(tb({size:a,placement:n,hasMessage:s,color:l,hasGroup:u}),e),...i,children:t})}),ky=M.forwardRef(({className:e,children:t,maxHeight:n=300,totalHeight:i,...r},a)=>{const{size:s}=yt();return b.jsx(Lo,{scrollableNodeProps:{ref:a},className:ce(nb({size:s}),e),style:{maxHeight:n},...r,children:i!==void 0?b.jsx("div",{style:{height:i,position:"relative",width:"100%"},children:t}):t})}),sa=({className:e,children:t,data:n,isDisabled:i,isFocused:r,isSelected:a,innerProps:s,optionClassName:l,...u})=>{const{size:c,color:d,getOptionLabel:p}=yt();return b.jsx("div",{"data-qui":"SelectOption",className:ce(ib({size:c,color:d,isDisabled:i,isFocused:r,isSelected:a}),l,e),...s,...u,children:t??p(n)})},Lp=({className:e,children:t,data:n,label:i,renderGroupHeading:r})=>{const{size:a}=yt();return b.jsxs("div",{"data-qui":"SelectOptionGroup",className:ce(rb({size:a}),e),children:[b.jsx(Sy,{children:r?r(n):i||n.label}),t]})},Sy=({className:e,children:t})=>{const{size:n,color:i}=yt();return b.jsx("div",{className:ce(ab({size:n,color:i}),e),children:t})},vs=({className:e,children:t,inputValue:n})=>{const{size:i}=yt();return b.jsx("div",{className:ce(ob({size:i}),e),children:t||`No options found${n?` for "${n}"`:""}`})},Dp=M.forwardRef(({className:e,children:t,...n},i)=>{const{size:r,color:a,isDisabled:s,hasMessage:l,isInvalid:u,setHasGroup:c,menuVisible:d,menuPlacement:p}=yt();return M.useEffect(()=>(c(!0),()=>{c(!1)}),[c]),b.jsx("div",{ref:i,"data-qui":"SelectGroup",className:ce(W0({size:r,color:a,isDisabled:s,hasMessage:l,isInvalid:u,isFocused:d,menuPlacement:d?p:void 0}),e),...n,children:t})}),Ey=M.forwardRef(({isAction:e=!1,className:t,isDisabled:n=!1,style:i,children:r,...a},s)=>{const{size:l,color:u,isDisabled:c}=yt(),d=n||c,p=U0({size:l,color:u,isDisabled:d,isAction:e});return b.jsx("div",{ref:s,"data-qui":"SelectIcon",className:ce(p,t),style:i,role:e||a.onClick?"button":void 0,tabIndex:(e||a.onClick)&&!d?0:void 0,"aria-disabled":d,...a,children:r})}),Cy=({isOpen:e,usePortal:t,controlRef:n,children:i})=>{const[r,a]=M.useState(null);return M.useLayoutEffect(()=>{if(t&&e&&n.current){const s=()=>{var l;const u=(l=n.current)==null?void 0:l.getBoundingClientRect();u&&a({top:u.top+window.scrollY,left:u.left+window.scrollX,width:u.width,height:u.height})};return s(),window.addEventListener("resize",s),window.addEventListener("scroll",s,!0),()=>{window.removeEventListener("resize",s),window.removeEventListener("scroll",s,!0)}}},[e,t,n]),e?t&&r?ui.createPortal(b.jsx("div",{className:"absolute z-50",style:{top:r.top,left:r.left,width:r.width,height:r.height,pointerEvents:"none"},children:b.jsx("div",{className:"relative w-full h-full",children:b.jsx("div",{style:{pointerEvents:"auto"},children:i})})}),document.body):b.jsx(b.Fragment,{children:i}):null},xs=e=>t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&"current"in n&&(n.current=t)})},Fp=M.forwardRef(({placeholder:e,noOptionsMessage:t="",hideNoOptions:n=!1,loadingMessage:i="Loading...",isClearable:r=!1,isSearchClearable:a=!1,clearSearchOnSelect:s=!1,isLoading:l=!1,isRequired:u=!1,hideIndicators:c=!1,hideDropdownIndicator:d=!1,searchPlacement:p="trigger",hideSelectedOptions:g=!1,onFocus:m,onBlur:C,renderMenuHeader:x,formatOptionLabel:w,renderOption:S,optionClassName:k,renderValue:E,renderGroupHeading:A,inputRef:y,controlShouldRenderValue:f=!0,name:T,id:R,onSelectionComplete:F,"aria-label":D,"aria-labelledby":q,"aria-describedby":J,children:K,usePortal:j=!1,virtualizeThreshold:ae=100,...Z},se)=>{const{size:ee,isInvalid:pe,isDisabled:I,hasGroup:V,downshift:te,options:O=[],getOptionLabel:$,getOptionValue:z,isOptionDisabled:B,menuPlacement:U,setMenuPlacement:ie,menuVisible:oe,setMenuVisible:G}=yt(),ne=M.useMemo(()=>{if(S)return S;if(w)return({data:Je})=>w(Je)},[S,w]),H=M.useRef(null),de=y||H,X=M.useRef(null),me=M.useRef(null),xe=M.useRef(null),{isOpen:be,openMenu:ke,selectedItem:Ee,inputValue:Se,highlightedIndex:Ve,getToggleButtonProps:$e,getMenuProps:Me,getInputProps:Fe,getItemProps:xt,isMulti:le,isSearchable:re,multipleSelection:P}=te,{getDropdownProps:Ce}=P;M.useLayoutEffect(()=>{if(!be||!X.current)return;const Je=X.current.getBoundingClientRect(),ct=window.innerHeight-Je.bottom;ie(ct<300?"top":"bottom")},[be,ie]),M.useLayoutEffect(()=>{const Je=be&&!(n&&te.filteredItems.length===0);return G(Je),()=>G(!1)},[be,n,te.filteredItems.length,G]);const Le=le?te.selectedItems??[]:Ee?[Ee]:[],ot=Le.length>0,ye=a&&!I&&!c,wt=r&&ot&&!I&&!c,ln=!d&&!c,In=!ot&&(!re||!Se)||!f,ut={},Vt={};Object.entries(Z).forEach(([Je,ct])=>{Je.startsWith("data-")||Je.startsWith("aria-")||Je==="role"?ut[Je]=ct:Vt[Je]=ct});const Ct=M.useMemo(()=>xs([X,se]),[se]),kr=Me({},{suppressRefError:!0}),un=Ce({preventKeyAction:be}),It={ref:de,disabled:I,required:u,name:T,id:R,"aria-label":D,"aria-labelledby":q,"aria-describedby":J,"aria-invalid":pe,onFocus:m,onBlur:C,...Vt},Pt=(Fe==null?void 0:Fe({...It,...un}))??It,{ref:it,...cn}=Pt,Re=M.useMemo(()=>xs([it,un.ref]),[it,un.ref]),Sr=Je=>Le.some(ct=>z(ct)===z(Je)),di=Je=>g?Je.filter(ct=>!Sr(ct)):Je,is=Je=>g?Je.map(ct=>({...ct,options:di(ct.options)})).filter(ct=>ct.options.length>0):Je,Qt=no(O)?[]:di(te.filteredItems),hn={sm:22,md:28,lg:36}[ee]??28,Qn=Qt.length>=ae,dn=H0({count:Qn?Qt.length:0,getScrollElement:()=>xe.current,estimateSize:()=>hn,overscan:5});M.useEffect(()=>{Qn&&be&&Ve>=0&&Ve<Qt.length&&dn.scrollToIndex(Ve,{align:"auto"})},[Ve,Qn,be]);const _n=Je=>{F==null||F(z(Je),Je)},Er=re?{}:$e({disabled:I,...un,ref:xs([Ct,un.ref])});return b.jsxs("div",{className:ce({relative:!V,"flex-1 min-w-0":V}),children:[b.jsxs(my,{...re?{ref:Ct}:Er,...ut,isFocused:oe,isDisabled:I,onClick:Je=>{Je.stopPropagation(),re?ke():re||te.toggleMenu()},children:[K||b.jsxs(vy,{isMulti:le,children:[le&&f&&Le.map((Je,ct)=>b.jsx(Pp,{data:Je,index:ct,isDisabled:I,children:E?E(Je):void 0},z(Je))),!le&&ot&&f&&!re&&b.jsx("div",{className:"flex items-center gap-2",children:b.jsx(by,{data:Le[0],isDisabled:I,children:E?E(Le[0]):$(Le[0])})}),re&&p==="trigger"?b.jsx(aa,{ref:Re,...cn,placeholder:e}):b.jsxs(b.Fragment,{children:[b.jsx(aa,{ref:Re,...cn,isHidden:!0,readOnly:!0,value:Le.map(Je=>z(Je)).join(",")}),In&&b.jsx(xy,{children:e})]})]}),b.jsxs("div",{className:ce("flex items-center size-fit gap-1",{hidden:!wt&&!ln}),children:[ye&&b.jsx(yy,{}),wt&&b.jsx(Rp,{}),ln&&b.jsx(Mp,{...re?$e({disabled:I,"aria-label":be?"Close menu":"Open menu"}):{}})]})]}),b.jsx("div",{ref:kr.ref,style:{display:"none"},"aria-hidden":"true"}),b.jsx(Cy,{isOpen:be,usePortal:j,controlRef:X,children:(()=>{const{ref:Je,...ct}=kr;return n&&te.filteredItems.length===0?b.jsx("div",{...ct,style:{display:"none"},"aria-hidden":"true"}):b.jsxs(wy,{ref:me,...ct,placement:U,children:[x&&x(te),re&&p==="menu"&&b.jsx("div",{className:"p-2",children:b.jsx(aa,{ref:Re,...cn,autoFocus:!0,placeholder:e,onClick:pt=>pt.stopPropagation()})}),b.jsx(ky,{ref:xe,totalHeight:Qn?dn.getTotalSize():void 0,children:l?b.jsx("div",{className:sb({size:ee}),children:i}):te.filteredItems.length===0?b.jsx(vs,{inputValue:Se,children:typeof t=="function"?t(Se):t}):no(O)?(()=>{const pt=is(O);return pt.length===0?b.jsx(vs,{inputValue:Se,children:typeof t=="function"?t(Se):t}):pt.map(ft=>b.jsx(Lp,{data:ft,label:ft.label,options:ft.options,renderGroupHeading:A,children:ft.options.map(_t=>{const Wt=z(_t),pn=Le.some(pi=>z(pi)===Wt),fn=te.filteredItems.findIndex(pi=>z(pi)===Wt),An=Ve===fn,gn=B(_t),Dn=xt({item:_t,index:fn,onClick:()=>_n(_t)});return b.jsx(sa,{...Dn,data:_t,isDisabled:gn,isFocused:An,isSelected:pn,optionClassName:k,children:ne?ne({data:_t,isFocused:An,isSelected:pn,isDisabled:gn}):void 0},Wt)})},ft.label))})():Qt.length===0?b.jsx(vs,{inputValue:Se,children:typeof t=="function"?t(Se):t}):Qn?dn.getVirtualItems().map(pt=>{const ft=Qt[pt.index],_t=z(ft),Wt=Le.some(Dn=>z(Dn)===_t),pn=te.filteredItems.findIndex(Dn=>z(Dn)===_t),fn=Ve===pn,An=B(ft),gn=xt({item:ft,index:pn,onClick:()=>_n(ft)});return b.jsx("div",{"data-index":pt.index,ref:dn.measureElement,style:{position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${pt.start}px)`},children:b.jsx(sa,{...gn,data:ft,isDisabled:An,isFocused:fn,isSelected:Wt,optionClassName:k,children:ne?ne({data:ft,isFocused:fn,isSelected:Wt,isDisabled:An}):void 0})},pt.key)}):Qt.map(pt=>{const ft=z(pt),_t=Le.some(gn=>z(gn)===ft),Wt=te.filteredItems.findIndex(gn=>z(gn)===ft),pn=Ve===Wt,fn=B(pt),An=xt({item:pt,index:Wt,onClick:()=>_n(pt)});return b.jsx(sa,{...An,data:pt,isDisabled:fn,isFocused:pn,isSelected:_t,optionClassName:k,children:ne?ne({data:pt,isFocused:pn,isSelected:_t,isDisabled:fn}):void 0},ft)})})]})})()})]})});Op.displayName="Select.Root";Dp.displayName="Select.Group";Ey.displayName="Select.Icon";aa.displayName="Select.Input";Pp.displayName="Select.MultiValue";Rp.displayName="Select.ClearIndicator";Mp.displayName="Select.DropdownIndicator";sa.displayName="Select.Option";Lp.displayName="Select.OptionGroup";const Iy=Fp;Iy.displayName="Select.Field";const Pi={Root:Op,Group:Dp,Field:Fp};M.createContext(void 0);const _y=({active:e,disabled:t,error:n,isOpen:i,className:r})=>ce("flex w-full items-center justify-between text-left leading-5 transition-colors duration-200",{"cursor-pointer":!t,"text-inactive-text":t,"bg-primary hover:bg-primary-hover":e&&!t,"text-negative":n&&!e&&!t,"bg-primary-hover text-body":i&&!e&&!t,"text-body":!e&&!t&&!n,"hover:bg-primary-hover hover:text-tab-active-fg":!t&&!e},r),Ay=M.forwardRef(({active:e,disabled:t,error:n,isOpen:i,className:r,children:a,as:s="div",...l},u)=>{const c=_y({active:e,disabled:t,error:n,isOpen:i,className:r});return b.jsx(s,{"data-qui":"ListItem",ref:u,className:c,"aria-disabled":t,"aria-selected":e,"aria-invalid":n,"aria-expanded":i,role:l.onClick?"button":"listitem",...l,children:a})});Ay.displayName="ListItem";const Ny=e=>e&&e.length===0,Ty=e=>e.length>=1,Oy=e=>e.length>=1,Py=()=>b.jsx("div",{className:"flex flex-col w-full h-full p-2",children:b.jsxs("div",{className:"w-full h-full flex flex-col items-center space-y-3 mt-48 text-inactive-text",children:[b.jsx(Oo,{className:"h-8 w-8"}),b.jsx("span",{className:"text-sm text-center",children:"Your locales are set , you can start translating right away. Shared labels are optional, can be created from components at any time, and managed here."})]})}),jp=M.createContext(null),zp=({children:e,adapter:t})=>b.jsx(jp.Provider,{value:t,children:e}),$n=({permissive:e=!1}={})=>{const t=M.useContext(jp);if(!t&&!e)throw new Error("useEditorStateAdapter must be used within an EditorStateAdapterProvider");return t},ri={keys:{},userLang:{primary:"",supported:[]}};async function Vp(){try{const e=await fetch(`/$shared/i18n.json?ts=${Date.now()}`);if(!e.ok)throw new Error(`HTTP ${e.status}`);const t=await e.json();return{keys:he.get(t,"keys",ri.keys),userLang:he.get(t,"userLang",ri.userLang)}}catch{return ri}}function Ry(e,t){const n=Bt.useAppDispatch(),i=Bt.useAppSelector(Bt.selectTabs),r=Bt.useAppSelector(Bt.selectActiveTab),a=Bt.useAppSelector(Bt.selectAllTabsByType("webform")),s=Bt.useAppSelector(Bt.selectI18nCurrent);return{getTabs:M.useCallback(()=>i??[],[i]),getI18nCurrent:M.useCallback(()=>s??"",[s]),getWebformTabs:M.useCallback(()=>a??[],[a]),getActiveTabPath:M.useCallback(()=>r??"",[r]),getFlagsByPath:M.useCallback(l=>{var u;return(u=i.find(c=>c.path===l))==null?void 0:u.flags},[i]),getSupportedLanguages:M.useCallback(async l=>we.getSupportedLanguages(l),[]),fetchI18nFile:M.useCallback(Vp,[]),getUserComponents:M.useCallback(()=>e??{},[e]),getBuildResolver:M.useCallback(()=>t??{},[t]),actions:{openModal:M.useCallback(async l=>await n(Bt.openModal(l)).unwrap(),[n]),setTabs:M.useCallback(l=>{n(Bt.setTabs(l))},[n]),setI18nCurrent:M.useCallback(l=>{n(Bt.setI18nCurrent({current:l}))},[n]),setTabContent:M.useCallback(async l=>n(Bt.setTabContent(l)),[n])}}}var so=function(e,t){return so=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])},so(e,t)};function vr(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");so(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var bn=function(){return bn=Object.assign||function(t){for(var n,i=1,r=arguments.length;i<r;i++){n=arguments[i];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},bn.apply(this,arguments)};function Bp(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]]);return n}function oo(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function lo(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var i=n.call(e),r,a=[],s;try{for(;(t===void 0||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(l){s={error:l}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(s)throw s.error}}return a}function ka(e,t,n){if(n||arguments.length===2)for(var i=0,r=t.length,a;i<r;i++)(a||!(i in t))&&(a||(a=Array.prototype.slice.call(t,0,i)),a[i]=t[i]);return e.concat(a||Array.prototype.slice.call(t))}function wn(e){return typeof e=="function"}function Hp(e){var t=function(i){Error.call(i),i.stack=new Error().stack},n=e(t);return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var bs=Hp(function(e){return function(n){e(this),this.message=n?n.length+` errors occurred during unsubscription:
|
|
4
|
+
color: hsl(${Math.max(0,Math.min(120-120*S,120))}deg 100% 31%);`,n==null?void 0:n.key)}return n!=null&&n.onChange&&!(s&&n.skipInitialOnChange)&&n.onChange(r),s=!1,r}return o.updateDeps=l=>{i=l},o}function jo(e,t){if(e===void 0)throw new Error("Unexpected undefined");return e}const gd=(e,t)=>Math.abs(e-t)<1.01,md=(e,t,n)=>{let i;return function(...r){e.clearTimeout(i),i=e.setTimeout(()=>t.apply(this,r),n)}};var jn={};const Vo=e=>{const{offsetWidth:t,offsetHeight:n}=e;return{width:t,height:n}},xd=e=>e,vd=e=>{const t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1),i=[];for(let r=t;r<=n;r++)i.push(r);return i},bd=(e,t)=>{const n=e.scrollElement;if(!n)return;const i=e.targetWindow;if(!i)return;const r=o=>{const{width:l,height:u}=o;t({width:Math.round(l),height:Math.round(u)})};if(r(Vo(n)),!i.ResizeObserver)return()=>{};const s=new i.ResizeObserver(o=>{const l=()=>{const u=o[0];if(u!=null&&u.borderBoxSize){const f=u.borderBoxSize[0];if(f){r({width:f.inlineSize,height:f.blockSize});return}}r(Vo(n))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(l):l()});return s.observe(n,{box:"border-box"}),()=>{s.unobserve(n)}},Bo={passive:!0},zo=typeof window>"u"?!0:"onscrollend"in window,yd=(e,t)=>{const n=e.scrollElement;if(!n)return;const i=e.targetWindow;if(!i)return;let r=0;const s=e.options.useScrollendEvent&&zo?()=>{}:md(i,()=>{t(r,!1)},e.options.isScrollingResetDelay),o=p=>()=>{const{horizontal:h,isRtl:d}=e.options;r=h?n.scrollLeft*(d&&-1||1):n.scrollTop,s(),t(r,p)},l=o(!0),u=o(!1);n.addEventListener("scroll",l,Bo);const f=e.options.useScrollendEvent&&zo;return f&&n.addEventListener("scrollend",u,Bo),()=>{n.removeEventListener("scroll",l),f&&n.removeEventListener("scrollend",u)}},wd=(e,t,n)=>{if(t!=null&&t.borderBoxSize){const i=t.borderBoxSize[0];if(i)return Math.round(i[n.options.horizontal?"inlineSize":"blockSize"])}return e[n.options.horizontal?"offsetWidth":"offsetHeight"]},Ed=(e,{adjustments:t=0,behavior:n},i)=>{var r,s;const o=e+t;(s=(r=i.scrollElement)==null?void 0:r.scrollTo)==null||s.call(r,{[i.options.horizontal?"left":"top"]:o,behavior:n})};class Sd{constructor(t){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollState=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.laneAssignments=new Map,this.pendingMeasuredCacheIndexes=[],this.prevLanes=void 0,this.lanesChangedFlag=!1,this.lanesSettling=!1,this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.now=()=>{var n,i,r;return((r=(i=(n=this.targetWindow)==null?void 0:n.performance)==null?void 0:i.now)==null?void 0:r.call(i))??Date.now()},this.observer=(()=>{let n=null;const i=()=>n||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:n=new this.targetWindow.ResizeObserver(r=>{r.forEach(s=>{const o=()=>{const l=s.target,u=this.indexFromElement(l);if(!l.isConnected){this.observer.unobserve(l);return}this.shouldMeasureDuringScroll(u)&&this.resizeItem(u,this.options.measureElement(l,s,this))};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(o):o()})}));return{disconnect:()=>{var r;(r=i())==null||r.disconnect(),n=null},observe:r=>{var s;return(s=i())==null?void 0:s.observe(r,{box:"border-box"})},unobserve:r=>{var s;return(s=i())==null?void 0:s.unobserve(r)}}})(),this.range=null,this.setOptions=n=>{Object.entries(n).forEach(([i,r])=>{typeof r>"u"&&delete n[i]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:xd,rangeExtractor:vd,onChange:()=>{},measureElement:wd,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...n}},this.notify=n=>{var i,r;(r=(i=this.options).onChange)==null||r.call(i,this,n)},this.maybeNotify=Dn(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),n=>{this.notify(n)},{key:jn.NODE_ENV!=="production"&&"maybeNotify",debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(n=>n()),this.unsubs=[],this.observer.disconnect(),this.rafId!=null&&this.targetWindow&&(this.targetWindow.cancelAnimationFrame(this.rafId),this.rafId=null),this.scrollState=null,this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var n;const i=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==i){if(this.cleanup(),!i){this.maybeNotify();return}this.scrollElement=i,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((n=this.scrollElement)==null?void 0:n.window)??null,this.elementsCache.forEach(r=>{this.observer.observe(r)}),this.unsubs.push(this.options.observeElementRect(this,r=>{this.scrollRect=r,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(r,s)=>{this.scrollAdjustments=0,this.scrollDirection=s?this.getScrollOffset()<r?"forward":"backward":null,this.scrollOffset=r,this.isScrolling=s,this.scrollState&&this.scheduleScrollReconcile(),this.maybeNotify()})),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})}},this.rafId=null,this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(n,i)=>{const r=new Map,s=new Map;for(let o=i-1;o>=0;o--){const l=n[o];if(r.has(l.lane))continue;const u=s.get(l.lane);if(u==null||l.end>u.end?s.set(l.lane,l):l.end<u.end&&r.set(l.lane,!0),r.size===this.options.lanes)break}return s.size===this.options.lanes?Array.from(s.values()).sort((o,l)=>o.end===l.end?o.index-l.index:o.end-l.end)[0]:void 0},this.getMeasurementOptions=Dn(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled,this.options.lanes],(n,i,r,s,o,l)=>(this.prevLanes!==void 0&&this.prevLanes!==l&&(this.lanesChangedFlag=!0),this.prevLanes=l,this.pendingMeasuredCacheIndexes=[],{count:n,paddingStart:i,scrollMargin:r,getItemKey:s,enabled:o,lanes:l}),{key:!1}),this.getMeasurements=Dn(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:n,paddingStart:i,scrollMargin:r,getItemKey:s,enabled:o,lanes:l},u)=>{if(!o)return this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),[];if(this.laneAssignments.size>n)for(const d of this.laneAssignments.keys())d>=n&&this.laneAssignments.delete(d);this.lanesChangedFlag&&(this.lanesChangedFlag=!1,this.lanesSettling=!0,this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),this.pendingMeasuredCacheIndexes=[]),this.measurementsCache.length===0&&!this.lanesSettling&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(d=>{this.itemSizeCache.set(d.key,d.size)}));const f=this.lanesSettling?0:this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[],this.lanesSettling&&this.measurementsCache.length===n&&(this.lanesSettling=!1);const p=this.measurementsCache.slice(0,f),h=new Array(l).fill(void 0);for(let d=0;d<f;d++){const m=p[d];m&&(h[m.lane]=d)}for(let d=f;d<n;d++){const m=s(d),b=this.laneAssignments.get(d);let v,S;if(b!==void 0&&this.options.lanes>1){v=b;const N=h[v],y=N!==void 0?p[N]:void 0;S=y?y.end+this.options.gap:i+r}else{const N=this.options.lanes===1?p[d-1]:this.getFurthestMeasurement(p,d);S=N?N.end+this.options.gap:i+r,v=N?N.lane:d%this.options.lanes,this.options.lanes>1&&this.laneAssignments.set(d,v)}const E=u.get(m),k=typeof E=="number"?E:this.options.estimateSize(d),I=S+k;p[d]={index:d,start:S,size:k,end:I,key:m,lane:v},h[v]=d}return this.measurementsCache=p,p},{key:jn.NODE_ENV!=="production"&&"getMeasurements",debug:()=>this.options.debug}),this.calculateRange=Dn(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(n,i,r,s)=>this.range=n.length>0&&i>0?kd({measurements:n,outerSize:i,scrollOffset:r,lanes:s}):null,{key:jn.NODE_ENV!=="production"&&"calculateRange",debug:()=>this.options.debug}),this.getVirtualIndexes=Dn(()=>{let n=null,i=null;const r=this.calculateRange();return r&&(n=r.startIndex,i=r.endIndex),this.maybeNotify.updateDeps([this.isScrolling,n,i]),[this.options.rangeExtractor,this.options.overscan,this.options.count,n,i]},(n,i,r,s,o)=>s===null||o===null?[]:n({startIndex:s,endIndex:o,overscan:i,count:r}),{key:jn.NODE_ENV!=="production"&&"getVirtualIndexes",debug:()=>this.options.debug}),this.indexFromElement=n=>{const i=this.options.indexAttribute,r=n.getAttribute(i);return r?parseInt(r,10):(console.warn(`Missing attribute name '${i}={index}' on measured element.`),-1)},this.shouldMeasureDuringScroll=n=>{var i;if(!this.scrollState||this.scrollState.behavior!=="smooth")return!0;const r=this.scrollState.index??((i=this.getVirtualItemForOffset(this.scrollState.lastTargetOffset))==null?void 0:i.index);if(r!==void 0&&this.range){const s=Math.max(this.options.overscan,Math.ceil((this.range.endIndex-this.range.startIndex)/2)),o=Math.max(0,r-s),l=Math.min(this.options.count-1,r+s);return n>=o&&n<=l}return!0},this.measureElement=n=>{if(!n){this.elementsCache.forEach((o,l)=>{o.isConnected||(this.observer.unobserve(o),this.elementsCache.delete(l))});return}const i=this.indexFromElement(n),r=this.options.getItemKey(i),s=this.elementsCache.get(r);s!==n&&(s&&this.observer.unobserve(s),this.observer.observe(n),this.elementsCache.set(r,n)),(!this.isScrolling||this.scrollState)&&this.shouldMeasureDuringScroll(i)&&this.resizeItem(i,this.options.measureElement(n,void 0,this))},this.resizeItem=(n,i)=>{var r;const s=this.measurementsCache[n];if(!s)return;const o=this.itemSizeCache.get(s.key)??s.size,l=i-o;l!==0&&(((r=this.scrollState)==null?void 0:r.behavior)!=="smooth"&&(this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(s,l,this):s.start<this.getScrollOffset()+this.scrollAdjustments)&&(jn.NODE_ENV!=="production"&&this.options.debug&&console.info("correction",l),this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=l,behavior:void 0})),this.pendingMeasuredCacheIndexes.push(s.index),this.itemSizeCache=new Map(this.itemSizeCache.set(s.key,i)),this.notify(!1))},this.getVirtualItems=Dn(()=>[this.getVirtualIndexes(),this.getMeasurements()],(n,i)=>{const r=[];for(let s=0,o=n.length;s<o;s++){const l=n[s],u=i[l];r.push(u)}return r},{key:jn.NODE_ENV!=="production"&&"getVirtualItems",debug:()=>this.options.debug}),this.getVirtualItemForOffset=n=>{const i=this.getMeasurements();if(i.length!==0)return jo(i[Uu(0,i.length-1,r=>jo(i[r]).start,n)])},this.getMaxScrollOffset=()=>{if(!this.scrollElement)return 0;if("scrollHeight"in this.scrollElement)return this.options.horizontal?this.scrollElement.scrollWidth-this.scrollElement.clientWidth:this.scrollElement.scrollHeight-this.scrollElement.clientHeight;{const n=this.scrollElement.document.documentElement;return this.options.horizontal?n.scrollWidth-this.scrollElement.innerWidth:n.scrollHeight-this.scrollElement.innerHeight}},this.getOffsetForAlignment=(n,i,r=0)=>{if(!this.scrollElement)return 0;const s=this.getSize(),o=this.getScrollOffset();i==="auto"&&(i=n>=o+s?"end":"start"),i==="center"?n+=(r-s)/2:i==="end"&&(n-=s);const l=this.getMaxScrollOffset();return Math.max(Math.min(l,n),0)},this.getOffsetForIndex=(n,i="auto")=>{n=Math.max(0,Math.min(n,this.options.count-1));const r=this.getSize(),s=this.getScrollOffset(),o=this.measurementsCache[n];if(!o)return;if(i==="auto")if(o.end>=s+r-this.options.scrollPaddingEnd)i="end";else if(o.start<=s+this.options.scrollPaddingStart)i="start";else return[s,i];if(i==="end"&&n===this.options.count-1)return[this.getMaxScrollOffset(),i];const l=i==="end"?o.end+this.options.scrollPaddingEnd:o.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(l,i,o.size),i]},this.scrollToOffset=(n,{align:i="start",behavior:r="auto"}={})=>{const s=this.getOffsetForAlignment(n,i),o=this.now();this.scrollState={index:null,align:i,behavior:r,startedAt:o,lastTargetOffset:s,stableFrames:0},this._scrollToOffset(s,{adjustments:void 0,behavior:r}),this.scheduleScrollReconcile()},this.scrollToIndex=(n,{align:i="auto",behavior:r="auto"}={})=>{n=Math.max(0,Math.min(n,this.options.count-1));const s=this.getOffsetForIndex(n,i);if(!s)return;const[o,l]=s,u=this.now();this.scrollState={index:n,align:l,behavior:r,startedAt:u,lastTargetOffset:o,stableFrames:0},this._scrollToOffset(o,{adjustments:void 0,behavior:r}),this.scheduleScrollReconcile()},this.scrollBy=(n,{behavior:i="auto"}={})=>{const r=this.getScrollOffset()+n,s=this.now();this.scrollState={index:null,align:"start",behavior:i,startedAt:s,lastTargetOffset:r,stableFrames:0},this._scrollToOffset(r,{adjustments:void 0,behavior:i}),this.scheduleScrollReconcile()},this.getTotalSize=()=>{var n;const i=this.getMeasurements();let r;if(i.length===0)r=this.options.paddingStart;else if(this.options.lanes===1)r=((n=i[i.length-1])==null?void 0:n.end)??0;else{const s=Array(this.options.lanes).fill(null);let o=i.length-1;for(;o>=0&&s.some(l=>l===null);){const l=i[o];s[l.lane]===null&&(s[l.lane]=l.end),o--}r=Math.max(...s.filter(l=>l!==null))}return Math.max(r-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(n,{adjustments:i,behavior:r})=>{this.options.scrollToFn(n,{behavior:r,adjustments:i},this)},this.measure=()=>{this.itemSizeCache=new Map,this.laneAssignments=new Map,this.notify(!1)},this.setOptions(t)}scheduleScrollReconcile(){if(!this.targetWindow){this.scrollState=null;return}this.rafId==null&&(this.rafId=this.targetWindow.requestAnimationFrame(()=>{this.rafId=null,this.reconcileScroll()}))}reconcileScroll(){if(!this.scrollState||!this.scrollElement)return;if(this.now()-this.scrollState.startedAt>5e3){this.scrollState=null;return}const i=this.scrollState.index!=null?this.getOffsetForIndex(this.scrollState.index,this.scrollState.align):void 0,r=i?i[0]:this.scrollState.lastTargetOffset,s=1,o=r!==this.scrollState.lastTargetOffset;if(!o&&gd(r,this.getScrollOffset())){if(this.scrollState.stableFrames++,this.scrollState.stableFrames>=s){this.scrollState=null;return}}else this.scrollState.stableFrames=0,o&&(this.scrollState.lastTargetOffset=r,this.scrollState.behavior="auto",this._scrollToOffset(r,{adjustments:void 0,behavior:"auto"}));this.scheduleScrollReconcile()}}const Uu=(e,t,n,i)=>{for(;e<=t;){const r=(e+t)/2|0,s=n(r);if(s<i)e=r+1;else if(s>i)t=r-1;else return r}return e>0?e-1:0};function kd({measurements:e,outerSize:t,scrollOffset:n,lanes:i}){const r=e.length-1,s=u=>e[u].start;if(e.length<=i)return{startIndex:0,endIndex:r};let o=Uu(0,r,s,n),l=o;if(i===1)for(;l<r&&e[l].end<n+t;)l++;else if(i>1){const u=Array(i).fill(0);for(;l<r&&u.some(p=>p<n+t);){const p=e[l];u[p.lane]=p.end,l++}const f=Array(i).fill(n+t);for(;o>=0&&f.some(p=>p>=n);){const p=e[o];f[p.lane]=p.start,o--}o=Math.max(0,o-o%i),l=Math.min(r,l+(i-1-l%i))}return{startIndex:o,endIndex:l}}const Ko=typeof document<"u"?U.useLayoutEffect:U.useEffect;function Cd({useFlushSync:e=!0,...t}){const n=U.useReducer(()=>({}),{})[1],i={...t,onChange:(s,o)=>{var l;e&&o?Cr.flushSync(n):n(),(l=t.onChange)==null||l.call(t,s,o)}},[r]=U.useState(()=>new Sd(i));return r.setOptions(i),Ko(()=>r._didMount(),[]),Ko(()=>r._willUpdate()),r}function _d(e){return Cd({observeElementRect:bd,observeElementOffset:yd,scrollToFn:Ed,...e})}const Id=e=>e&&e.length===0,Ad=e=>e.length>=1,Td=e=>e.length>=1,Nd=()=>C.jsx("div",{className:"flex flex-col w-full h-full p-2",children:C.jsxs("div",{className:"w-full h-full flex flex-col items-center space-y-3 mt-48 bg-grey-800 ",children:[C.jsx(Je.FdInfoBold,{className:"h-8 w-8 text-grey-200"}),C.jsx("span",{className:"text-grey-200 text-sm text-center",children:"Your locales are set , you can start translating right away. Shared labels are optional, can be created from components at any time, and managed here."})]})}),Hu=V.createContext(null),$u=({children:e,adapter:t})=>C.jsx(Hu.Provider,{value:t,children:e}),vn=({permissive:e=!1}={})=>{const t=V.useContext(Hu);if(!t&&!e)throw new Error("useEditorStateAdapter must be used within an EditorStateAdapterProvider");return t},Cn={keys:{},userLang:{primary:"",supported:[]}};async function qu(){try{const e=await fetch(`/$shared/i18n.json?ts=${Date.now()}`);if(!e.ok)throw new Error(`HTTP ${e.status}`);const t=await e.json();return{keys:oe.get(t,"keys",Cn.keys),userLang:oe.get(t,"userLang",Cn.userLang)}}catch{return Cn}}function Pd(e,t){const n=yt.useAppDispatch(),i=yt.useAppSelector(yt.selectTabs),r=yt.useAppSelector(yt.selectActiveTab),s=yt.useAppSelector(yt.selectAllTabsByType("webform")),o=yt.useAppSelector(yt.selectI18nCurrent);return{getTabs:V.useCallback(()=>i??[],[i]),getI18nCurrent:V.useCallback(()=>o??"",[o]),getWebformTabs:V.useCallback(()=>s??[],[s]),getActiveTabPath:V.useCallback(()=>r??"",[r]),getFlagsByPath:V.useCallback(l=>{var u;return(u=i.find(f=>f.path===l))==null?void 0:u.flags},[i]),getSupportedLanguages:V.useCallback(async l=>fe.getSupportedLanguages(l),[]),fetchI18nFile:V.useCallback(qu,[]),getUserComponents:V.useCallback(()=>e??{},[e]),getBuildResolver:V.useCallback(()=>t??{},[t]),actions:{openModal:V.useCallback(async l=>await n(yt.openModal(l)).unwrap(),[n]),setTabs:V.useCallback(l=>{n(yt.setTabs(l))},[n]),setI18nCurrent:V.useCallback(l=>{n(yt.setI18nCurrent({current:l}))},[n]),setTabContent:V.useCallback(async l=>n(yt.setTabContent(l)),[n])}}}var Fa=function(e,t){return Fa=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])},Fa(e,t)};function Si(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Fa(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Ot=function(){return Ot=Object.assign||function(t){for(var n,i=1,r=arguments.length;i<r;i++){n=arguments[i];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},Ot.apply(this,arguments)};function Wu(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]]);return n}function Da(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function ja(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var i=n.call(e),r,s=[],o;try{for(;(t===void 0||t-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(l){o={error:l}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s}function lr(e,t,n){if(n||arguments.length===2)for(var i=0,r=t.length,s;i<r;i++)(s||!(i in t))&&(s||(s=Array.prototype.slice.call(t,0,i)),s[i]=t[i]);return e.concat(s||Array.prototype.slice.call(t))}function qt(e){return typeof e=="function"}function Gu(e){var t=function(i){Error.call(i),i.stack=new Error().stack},n=e(t);return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var Gr=Gu(function(e){return function(n){e(this),this.message=n?n.length+` errors occurred during unsubscription:
|
|
57
5
|
`+n.map(function(i,r){return r+1+") "+i.toString()}).join(`
|
|
58
|
-
`):"",this.name="UnsubscriptionError",this.errors=n}});function uo(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var Ha=(function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,n,i,r,a;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var l=oo(s),u=l.next();!u.done;u=l.next()){var c=u.value;c.remove(this)}}catch(x){t={error:x}}finally{try{u&&!u.done&&(n=l.return)&&n.call(l)}finally{if(t)throw t.error}}else s.remove(this);var d=this.initialTeardown;if(wn(d))try{d()}catch(x){a=x instanceof bs?x.errors:[x]}var p=this._finalizers;if(p){this._finalizers=null;try{for(var g=oo(p),m=g.next();!m.done;m=g.next()){var C=m.value;try{xc(C)}catch(x){a=a??[],x instanceof bs?a=ka(ka([],lo(a)),lo(x.errors)):a.push(x)}}}catch(x){i={error:x}}finally{try{m&&!m.done&&(r=g.return)&&r.call(g)}finally{if(i)throw i.error}}}if(a)throw new bs(a)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)xc(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}},e.prototype._hasParent=function(t){var n=this._parentage;return n===t||Array.isArray(n)&&n.includes(t)},e.prototype._addParent=function(t){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t},e.prototype._removeParent=function(t){var n=this._parentage;n===t?this._parentage=null:Array.isArray(n)&&uo(n,t)},e.prototype.remove=function(t){var n=this._finalizers;n&&uo(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=(function(){var t=new e;return t.closed=!0,t})(),e})(),Kp=Ha.EMPTY;function Wp(e){return e instanceof Ha||e&&"closed"in e&&wn(e.remove)&&wn(e.add)&&wn(e.unsubscribe)}function xc(e){wn(e)?e():e.unsubscribe()}var My={Promise:void 0},Ly={setTimeout:function(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return setTimeout.apply(void 0,ka([e,t],lo(n)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function Dy(e){Ly.setTimeout(function(){throw e})}function bc(){}function oa(e){e()}var Nl=(function(e){vr(t,e);function t(n){var i=e.call(this)||this;return i.isStopped=!1,n?(i.destination=n,Wp(n)&&n.add(i)):i.destination=zy,i}return t.create=function(n,i,r){return new co(n,i,r)},t.prototype.next=function(n){this.isStopped||this._next(n)},t.prototype.error=function(n){this.isStopped||(this.isStopped=!0,this._error(n))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(n){this.destination.next(n)},t.prototype._error=function(n){try{this.destination.error(n)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t})(Ha),Fy=(function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var n=this.partialObserver;if(n.next)try{n.next(t)}catch(i){Hr(i)}},e.prototype.error=function(t){var n=this.partialObserver;if(n.error)try{n.error(t)}catch(i){Hr(i)}else Hr(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(n){Hr(n)}},e})(),co=(function(e){vr(t,e);function t(n,i,r){var a=e.call(this)||this,s;return wn(n)||!n?s={next:n??void 0,error:i??void 0,complete:r??void 0}:s=n,a.destination=new Fy(s),a}return t})(Nl);function Hr(e){Dy(e)}function jy(e){throw e}var zy={closed:!0,next:bc,error:jy,complete:bc},Vy=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})();function By(e){return e}function Hy(e){return e.length===0?By:e.length===1?e[0]:function(n){return e.reduce(function(i,r){return r(i)},n)}}var yc=(function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(t,n,i){var r=this,a=Wy(t)?t:new co(t,n,i);return oa(function(){var s=r,l=s.operator,u=s.source;a.add(l?l.call(a,u):u?r._subscribe(a):r._trySubscribe(a))}),a},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(n){t.error(n)}},e.prototype.forEach=function(t,n){var i=this;return n=wc(n),new n(function(r,a){var s=new co({next:function(l){try{t(l)}catch(u){a(u),s.unsubscribe()}},error:a,complete:r});i.subscribe(s)})},e.prototype._subscribe=function(t){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(t)},e.prototype[Vy]=function(){return this},e.prototype.pipe=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Hy(t)(this)},e.prototype.toPromise=function(t){var n=this;return t=wc(t),new t(function(i,r){var a;n.subscribe(function(s){return a=s},function(s){return r(s)},function(){return i(a)})})},e.create=function(t){return new e(t)},e})();function wc(e){var t;return(t=e??My.Promise)!==null&&t!==void 0?t:Promise}function Ky(e){return e&&wn(e.next)&&wn(e.error)&&wn(e.complete)}function Wy(e){return e&&e instanceof Nl||Ky(e)&&Wp(e)}function Uy(e){return wn(e==null?void 0:e.lift)}function Up(e){return function(t){if(Uy(t))return t.lift(function(n){try{return e(n,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}function qp(e,t,n,i,r){return new qy(e,t,n,i,r)}var qy=(function(e){vr(t,e);function t(n,i,r,a,s,l){var u=e.call(this,n)||this;return u.onFinalize=s,u.shouldUnsubscribe=l,u._next=i?function(c){try{i(c)}catch(d){n.error(d)}}:e.prototype._next,u._error=a?function(c){try{a(c)}catch(d){n.error(d)}finally{this.unsubscribe()}}:e.prototype._error,u._complete=r?function(){try{r()}catch(c){n.error(c)}finally{this.unsubscribe()}}:e.prototype._complete,u}return t.prototype.unsubscribe=function(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var i=this.closed;e.prototype.unsubscribe.call(this),!i&&((n=this.onFinalize)===null||n===void 0||n.call(this))}},t})(Nl),Gy=Hp(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Gp=(function(e){vr(t,e);function t(){var n=e.call(this)||this;return n.closed=!1,n.currentObservers=null,n.observers=[],n.isStopped=!1,n.hasError=!1,n.thrownError=null,n}return t.prototype.lift=function(n){var i=new kc(this,this);return i.operator=n,i},t.prototype._throwIfClosed=function(){if(this.closed)throw new Gy},t.prototype.next=function(n){var i=this;oa(function(){var r,a;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var s=oo(i.currentObservers),l=s.next();!l.done;l=s.next()){var u=l.value;u.next(n)}}catch(c){r={error:c}}finally{try{l&&!l.done&&(a=s.return)&&a.call(s)}finally{if(r)throw r.error}}}})},t.prototype.error=function(n){var i=this;oa(function(){if(i._throwIfClosed(),!i.isStopped){i.hasError=i.isStopped=!0,i.thrownError=n;for(var r=i.observers;r.length;)r.shift().error(n)}})},t.prototype.complete=function(){var n=this;oa(function(){if(n._throwIfClosed(),!n.isStopped){n.isStopped=!0;for(var i=n.observers;i.length;)i.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(n){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,n)},t.prototype._subscribe=function(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)},t.prototype._innerSubscribe=function(n){var i=this,r=this,a=r.hasError,s=r.isStopped,l=r.observers;return a||s?Kp:(this.currentObservers=null,l.push(n),new Ha(function(){i.currentObservers=null,uo(l,n)}))},t.prototype._checkFinalizedStatuses=function(n){var i=this,r=i.hasError,a=i.thrownError,s=i.isStopped;r?n.error(a):s&&n.complete()},t.prototype.asObservable=function(){var n=new yc;return n.source=this,n},t.create=function(n,i){return new kc(n,i)},t})(yc),kc=(function(e){vr(t,e);function t(n,i){var r=e.call(this)||this;return r.destination=n,r.source=i,r}return t.prototype.next=function(n){var i,r;(r=(i=this.destination)===null||i===void 0?void 0:i.next)===null||r===void 0||r.call(i,n)},t.prototype.error=function(n){var i,r;(r=(i=this.destination)===null||i===void 0?void 0:i.error)===null||r===void 0||r.call(i,n)},t.prototype.complete=function(){var n,i;(i=(n=this.destination)===null||n===void 0?void 0:n.complete)===null||i===void 0||i.call(n)},t.prototype._subscribe=function(n){var i,r;return(r=(i=this.source)===null||i===void 0?void 0:i.subscribe(n))!==null&&r!==void 0?r:Kp},t})(Gp);function $y(e,t){return Up(function(n,i){var r=0;n.subscribe(qp(i,function(a){i.next(e.call(t,a,r++))}))})}function Jy(e,t){return Up(function(n,i){var r=0;n.subscribe(qp(i,function(a){return e.call(t,a,r++)&&i.next(a)}))})}const $p=new Gp,Yy=(e,t)=>({name:e.split("/").pop()||e,type:we.FileFolderType.WEBFORM,path:e,date:new Date().toISOString(),content:t,view:{panel:{isOpen:!1,type:"",current:""}},flags:{}});function Jp(e,t){switch(t.type){case"SET_TABS":return{...e,tabs:t.payload};case"SET_I18N_CURRENT":return{...e,i18nCurrent:t.payload};case"SET_TAB_CONTENT":{const{path:n,content:i}=t.payload;return e.tabs.find(a=>a.path===n)?{...e,tabs:e.tabs.map(a=>a.path===n?{...a,content:i}:a)}:{...e,tabs:[...e.tabs,Yy(n,i)]}}case"CREATE_MODAL":return{...e,modals:{...e.modals,list:[...e.modals.list,t.payload]}};case"REMOVE_MODAL":return{...e,modals:{...e.modals,list:e.modals.list.filter(n=>n.id!==t.payload)}};case"CLOSE_MODAL":{const{id:n,reason:i}=t.payload;let r;if(i)if(e.modals.list.find(s=>s.id===n))r={...e,modals:{...e.modals,list:e.modals.list.map(s=>s.id===n?{...s,closeReason:i,isOpen:!1}:s)}};else return e;else r={...e,modals:{...e.modals,list:e.modals.list.filter(a=>a.id!==n)}};return $p.next(r.modals),r}case"EDIT_MODAL":{const{id:n,...i}=t.payload;return e.modals.list.find(a=>a.id===n)?{...e,modals:{...e.modals,list:e.modals.list.map(a=>a.id===n?{...a,...i}:a)}}:e}default:return e}}const Ka=M.createContext(null),Yp=(e,t)=>({tabs:e,i18nCurrent:t,modals:{list:[]}}),Zp=({children:e,tabs:t=[],i18nCurrent:n="",initialI18nFile:i})=>{const[r,a]=M.useReducer(Jp,Yp(t,n));M.useEffect(()=>{he.isEqual(r.tabs,t)||a({type:"SET_TABS",payload:t})},[t,r.tabs]),M.useEffect(()=>{r.i18nCurrent!==n&&a({type:"SET_I18N_CURRENT",payload:n})},[n,r.i18nCurrent]);const s=M.useMemo(()=>({state:r,dispatch:a,initialI18nFile:i}),[r,i]);return b.jsx(Ka.Provider,{value:s,children:e})};function Xp(e,t,n){const i=M.useContext(Ka);if(!i)throw new Error("useReducerAdapter must be used within a ReducerAdapterProvider");const{state:r,dispatch:a,initialI18nFile:s}=i;return{getTabs:M.useCallback(()=>r.tabs,[r.tabs]),getI18nCurrent:M.useCallback(()=>r.i18nCurrent,[r.i18nCurrent]),fetchI18nFile:M.useCallback(()=>{if(!s)return Promise.resolve(ri);if(typeof s!="string")return Promise.resolve(s);try{const l=JSON.parse(s);return Promise.resolve({keys:(l==null?void 0:l.keys)??ri.keys,userLang:(l==null?void 0:l.userLang)??ri.userLang})}catch{return Promise.resolve(ri)}},[s]),getWebformTabs:M.useCallback(()=>r.tabs.filter(l=>l.type===we.FileFolderType.WEBFORM),[r.tabs]),getActiveTabPath:M.useCallback(()=>{var l;return((l=r.tabs[0])==null?void 0:l.path)??""},[r.tabs]),getFlagsByPath:M.useCallback(l=>{var u;return(u=r.tabs.find(c=>c.path===l))==null?void 0:u.flags},[r.tabs]),getSupportedLanguages:M.useCallback(async l=>n&&n.length?n:we.getSupportedLanguages(l),[n]),getUserComponents:M.useCallback(()=>e??{},[e]),getBuildResolver:M.useCallback(()=>t??{},[t]),actions:{openModal:M.useCallback(async l=>{const{type:u=we.ModalType.ALERT}=l,c=_o.generate();return a({type:"CREATE_MODAL",payload:{id:c,type:u,isOpen:!0,...l}}),u===we.ModalType.CONFIRM?new Promise(d=>{const p=$p.pipe(Jy(g=>{const m=g.list.find(C=>C.id===c);return m!==void 0&&!m.isOpen})).subscribe(g=>{var C;const m=g.list.find(x=>x.id===c);if(m){const x=m.closeReason===we.ModalCloseReason.CONFIRMED,w=he.entries(((C=m.views)==null?void 0:C.toggles)||{}).reduce((S,k)=>({...S,[k[0]]:k[1].value}),{});a({type:"REMOVE_MODAL",payload:c}),p.unsubscribe(),d({confirmed:x,options:w})}})}):{confirmed:!1}},[a]),setTabs:M.useCallback(l=>{a({type:"SET_TABS",payload:l})},[a]),setI18nCurrent:M.useCallback(l=>{a({type:"SET_I18N_CURRENT",payload:l})},[a]),setTabContent:M.useCallback(async l=>(a({type:"SET_TAB_CONTENT",payload:l}),l),[a])}}}function Qp(){const e=M.useContext(Ka);if(!e)throw new Error("useModals must be used within a ReducerAdapterProvider");const{state:t,dispatch:n}=e;return{modals:t.modals.list,closeModal:M.useCallback(i=>{n({type:"CLOSE_MODAL",payload:i})},[n]),editModal:M.useCallback(i=>{n({type:"EDIT_MODAL",payload:i})},[n]),removeModal:M.useCallback(i=>{n({type:"REMOVE_MODAL",payload:i})},[n])}}const ef=M.createContext(void 0),ys={i18n:{keys:{},userLang:{primary:"",supported:[]}},i18nFileFetched:!1},tf={tr_key:"__t"},{tr_key:Kr}=tf,Zy={buildPathFullObject:e=>`${Kr}.${e}`,getKeyValueFromCustom:(e,t)=>he.get(e,`${Kr}.${t}.key`),getDefaultValueFromCustom:(e,t)=>he.get(e,`${Kr}.${t}.default`),getFullObject:(e,t)=>he.get(e,`${Kr}.${t}`)},nf=M.memo(({children:e,isI18nEnabled:t,onI18nChange:n})=>{const i=$n({permissive:!0}),[r,a]=M.useState(ys),s=M.useRef(!1),{i18n:l}=r,u=(S,k,E)=>{let A=1,y=S;for(;l.keys[y];)y=`${S}-${A}`,A++;const f={default:E};k.forEach(({lang:R,value:F})=>{R&&he.set(f,R,F)});const T={keys:{...l.keys,[S]:f},userLang:l.userLang};a(R=>({...R,i18n:T}))},c=()=>{const S=new window.Event("i18n:ready");window.dispatchEvent(S)},d=M.useCallback(he.debounce((S,k,E,A=!1)=>{a(y=>{const{keys:f,userLang:T}=y.i18n;if(f[S]&&k){const R={...f,[S]:{...f[S],[k]:E}};return s.current=A,{...y,i18n:{keys:R,userLang:T}}}return y})},300),[]),p=M.useCallback(he.debounce((S,k)=>{a(E=>{const{keys:A,userLang:y}=he.cloneDeep(E.i18n);return A[S]&&k&&he.set(A,`${S}.default`,k),{...E,i18n:{keys:A,userLang:y}}})},300),[l]),g=S=>{S&&a(k=>({...k,i18n:{...k.i18n,userLang:S}}))},m=M.useCallback((S,k)=>{const{keys:E,userLang:A}=l,f={keys:Object.entries(E).reduce((T,[R,F])=>{const D={...F};return S.isocode in D&&(D[k.isocode]=D[S.isocode],delete D[S.isocode]),T[R]=D,T},{}),userLang:A};a(T=>({...T,i18n:f}))},[l]),C=M.useCallback(S=>{const{keys:k,userLang:E}=l,y={keys:Object.entries(k).reduce((f,[T,R])=>{const F={...R};return S.isocode in F&&delete F[S.isocode],f[T]=F,f},{}),userLang:E};a(f=>({...f,i18n:y}))},[l]),x=S=>{const k=[];return Object.keys(l.keys).forEach(A=>{const y=he.get(l,`keys.${A}.${S}`,he.get(l,`keys.${A}.default`,""));k.push({key:A,value:y})}),k},w=M.useCallback(he.debounce(S=>{a(k=>{const{keys:E,userLang:A}=k.i18n,y={...E};return delete y[S],{...k,i18n:{userLang:A,keys:y}}})},300),[]);return M.useEffect(()=>{(async()=>{if(!t){a(k=>({...k,i18nFileFetched:!0})),c();return}try{const k=await((i==null?void 0:i.fetchI18nFile)||Vp)();a(E=>({...E,i18n:{keys:he.get(k,"keys",ys.i18n.keys),userLang:he.get(k,"userLang",ys.i18n.userLang)}}))}catch{}finally{a(k=>({...k,i18nFileFetched:!0})),c()}})()},[t,i==null?void 0:i.fetchI18nFile]),M.useEffect(()=>{const S=we.i18nSubject.pipe($y(({action:k,payload:E})=>{if(k==="set_content"){const A={...l,keys:{...l.keys,...E}};a(y=>({...y,i18n:A}))}if(k==="set_locale_state"){const A={...l,...E};a(y=>({...y,i18n:A}))}})).subscribe();return()=>S.unsubscribe()},[l]),M.useEffect(()=>{r.i18nFileFetched&&(n==null||n(r.i18n))},[r]),b.jsx(ef.Provider,{value:{i18n:r.i18n,createKey:u,updateKey:d,removeKey:w,editLanguageKeys:m,updateKeyDefault:p,deleteLanguageKeys:C,getI18nAsKeyValues:x,setUserLangSettings:g,shouldRecompute:s},children:e})});function Jn(){const e=M.useContext(ef);if(e===void 0)throw new Error("useI18n must be used within a I18nProviderContext");return e}const rf=M.createContext(void 0),af=M.createContext(void 0),Xy=e=>we.getSupportedLanguages(e),sf=({children:e,getSupportedLanguages:t=Xy,i18nCurrent:n="",activeTabPath:i="",flagsForActiveTab:r})=>{const{isInsideStudio:a}=we.useStudioContext();return a?b.jsx(ew,{getSupportedLanguages:t,i18nCurrent:n,activeTabPath:i,flagsForActiveTab:r,children:e}):b.jsx(Qy,{getSupportedLanguages:t,children:e})},Qy=({children:e,getSupportedLanguages:t})=>{const{state:{currentLang:n},actions:i}=we.useStateObject({currentLang:""}),{actions:r}=we.useDsRendererAdapter(`${we.QODLY_NAMESPACE}:${we.USER_LANGUAGE_DATASOURCE_ID}`),{i18n:{userLang:{primary:a,supported:s}}}=Jn(),{isInsideStudio:l}=we.useStudioContext(),[u,c]=M.useState([]),{loaded:d}=we.useDsChangeRenderer({datasourceId:`${we.QODLY_NAMESPACE}:${we.USER_LANGUAGE_DATASOURCE_ID}`,isDsBuild:!0,onChange:x=>{if(!x)return;const{selected:w}=x;w&&w.isocode&&(i.setCurrentLang(w.isocode),g(w))}}),p=(x,w)=>{r.setProperty(x,w)},g=x=>{localStorage.setItem("i18n.selected",JSON.stringify(x))},m=()=>{const x=localStorage.getItem("i18n.selected");return x?JSON.parse(x):null},C=()=>navigator.language;return M.useEffect(()=>{t(l).then(x=>{c(x)})},[l]),M.useEffect(()=>{if(d&&s){const x=s.map(({isocode:w})=>u.find(S=>S.isocode===w)).filter(Boolean);p("supported",x)}},[s,d]),M.useEffect(()=>{if(d){const x=m();if(x){p("selected",x);return}const w=C();if(w){const S=s.find(k=>k.isocode===w);if(S){p("selected",S);return}}if(a){const S=s.find(k=>k.isocode===a);S&&p("selected",S)}}},[d,s,a]),b.jsx(af.Provider,{value:{selected:n,supported:u},children:e})},ew=M.memo(({children:e,getSupportedLanguages:t,i18nCurrent:n,flagsForActiveTab:i})=>{const{state:{supported:r},actions:a}=we.useStateObject({supported:[]}),{i18n:{userLang:{primary:s,supported:l}}}=Jn(),{isInsideStudio:u}=we.useStudioContext(),c=n&&l.find(g=>g.isocode===n)?n:"",[d,p]=M.useState(c);return M.useEffect(()=>{i!=null&&i.enabled&&p("")},[i==null?void 0:i.enabled]),M.useEffect(()=>{p(c)},[c]),we.useDsChangeRenderer({datasourceId:`${we.QODLY_NAMESPACE}:${we.USER_LANGUAGE_DATASOURCE_ID}`,isDsBuild:i==null?void 0:i.enabled,onChange:g=>{if(!g)return;const{selected:m}=g;m&&m.isocode&&(p(m.isocode),localStorage.setItem("i18n.selected",m.isocode))}}),M.useEffect(()=>{t(u).then(g=>{a.setSupported(g)})},[u]),b.jsx(rf.Provider,{value:{primary:s,selected:d||c,supported:r,userLangagues:l},children:e})});function of(){const{isInsideStudio:e}=we.useStudioContext(),t=M.useContext(rf),n=M.useContext(af),i=e?t:n;if(i===void 0)throw new Error("useLocalization must be used within a LocalizationContext");return i}const lf=M.createContext(void 0),uf=({children:e})=>{const{state:{allSupportedLanguages:t,selectedLanguage:n,languageKeys:i,addFirstLanguage:r},actions:a}=we.useStateObject({allSupportedLanguages:[],selectedLanguage:void 0,languageKeys:[],addFirstLanguage:!1}),{supported:s}=of(),{i18n:l,setUserLangSettings:u,updateKey:c,removeKey:d,createKey:p}=Jn(),g=(C,x)=>Object.keys(x).reduce((k,E)=>{if(x[E]){const A=x[E];if(Object.hasOwn(A,C)){const y=x[E][C];k.push({key:E,value:y,isDefault:!1})}else{const y=x[E].default;k.push({key:E,value:y,isDefault:!0})}}return k},[]),m=(C,x)=>{if(n){const{isocode:w}=n;c(C,w,x,!0);const S=structuredClone(l.keys),k=he.set({...S},`${C}.${w}`,x),E=g(w,k);a.setLanguageKeys(E)}};return M.useEffect(()=>{a.setAllSupportedLanguages(s||[])},[s]),M.useEffect(()=>{if(n){const{isocode:C}=n,x=g(C,l.keys);a.setLanguageKeys(x)}},[l,n]),b.jsx(lf.Provider,{value:{userLanguages:l.userLang,languageKeys:i,selectedLanguage:n,allSupportedLanguages:t,addFirstLanguage:r,isPrimary:l.userLang.primary===(n==null?void 0:n.isocode),removeKey:d,addNewKey:p,setAddFirstLanguage:a.setAddFirstLanguage,setUserLangSettings:u,setSelectedLanguage:C=>a.setSelectedLanguage(C),setLanguageKeyValue:m},children:e})},Yn=()=>{const e=M.useContext(lf);if(e===void 0)throw new Error("useLocalizationEditor must be used within a LocalizationEditorProvider");return e},dt=()=>document.querySelector(`.${Ao.LOCALIZATION_EDITOR_SCOPE_CLASS}`)||document.body,tw=({container:e,...t})=>b.jsx(we.Portal,{...t,container:e||dt()}),nw=M.memo(({keyName:e,value:t,isDefault:n,index:i})=>{const{state:{newValue:r,onEditValue:a},actions:s}=we.useStateObject({newValue:t,onEditValue:!1}),{setLanguageKeyValue:l,removeKey:u}=Yn(),c=$n(),[d,p]=M.useState(null),g=async()=>{const{confirmed:x}=await c.actions.openModal({title:"Delete Key",type:we.ModalType.CONFIRM,color:we.ModalColor.DANGER,message:"Deleting this key will remove all translations associated with it across all locales. Are you sure you want to delete it ?",icon:"FdWarningDanger"});x&&u(e)},m=()=>{a&&(l(e,r),s.setOnEditValue(!1),p(null))},C=()=>{a&&(s.setNewValue(t),s.setOnEditValue(!1),p(null))};return M.useEffect(()=>{s.setNewValue(t)},[t]),b.jsxs("tr",{"data-cy":`shared-labels-row-${e}`,className:"odd:bg-white/5",children:[b.jsx("td",{className:"px-2 text-xs font-normal h-10",children:e}),b.jsx("td",{className:"p-2 whitespace-nowrap text-xs font-normal h-10",children:a?b.jsxs(nn.Root,{isInvalid:!!d,children:[b.jsx(nn.Group,{children:b.jsx(nn.Area,{"data-cy":`shared-labels-row-${e}-input`,autoHeight:!0,value:r,onChange:x=>{s.setNewValue(x.target.value),p(null)},onKeyDown:x=>{x.key==="Enter"&&!x.shiftKey&&(x.preventDefault(),m())}})}),d&&b.jsx(nn.Message,{children:d==null?void 0:d.message})]}):b.jsx("span",{className:Ft("text-wrap",{"italic text-inactive-text":n}),onDoubleClick:()=>{s.setOnEditValue(!0)},children:t})}),b.jsx("td",{className:"flex items-center px-2 text-xs font-normal float-right h-10",children:a?b.jsxs(b.Fragment,{children:[b.jsx(bt,{label:"Confirm",container:dt(),children:b.jsx(st,{"data-cy":`shared-labels-row-${e}-confirm-button`,color:"white",variant:"ghost",onClick:m,children:b.jsx(To,{})})}),b.jsx(bt,{label:"Cancel",container:dt(),children:b.jsx(st,{"data-cy":`shared-labels-row-${e}-cancel-button`,color:"white",variant:"ghost",onClick:C,children:b.jsx(Ma,{})})})]}):b.jsxs(b.Fragment,{children:[b.jsx(bt,{label:"Edit",container:dt(),children:b.jsx(st,{"data-cy":`shared-labels-row-${e}-edit-button`,color:"white",variant:"ghost",onClick:()=>{s.setOnEditValue(!0)},children:b.jsx(Vh,{})})}),b.jsx(bt,{label:"Delete",container:dt(),children:b.jsx(st,{"data-cy":`shared-labels-row-${e}-delete-button`,color:"white",variant:"ghost",onClick:g,children:b.jsx(Bh,{})})})]})})]})}),iw=({onCancel:e,onConfirm:t,error:n,setError:i})=>{const{state:r,actions:a}=we.useStateObject({key:"",value:""}),s=()=>{t(r.key,r.value)},l=()=>{i(null),e()};return b.jsxs("tr",{"data-cy":"shared-labels-new-row",className:"odd:bg-white/5",children:[b.jsx("td",{className:"px-2 text-xs font-normal h-10 min-h-4",children:b.jsxs(nn.Root,{color:n?"negative":"primary",children:[b.jsx(nn.Group,{children:b.jsx(nn.Field,{"data-cy":"shared-labels-new-row-key-input",type:"text",value:r.key,onChange:u=>{i(null),a.setKey(u.target.value)},autoFocus:!0,onKeyUp:u=>{u.key==="Escape"&&(i(null),l())}})}),n&&b.jsx(nn.Message,{children:n==null?void 0:n.message})]})}),b.jsx("td",{className:"px-2 whitespace-nowrap text-xs font-normal h-10",children:b.jsx(nn.Root,{color:n?"negative":"primary",children:b.jsx(nn.Group,{children:b.jsx(nn.Field,{"data-cy":"shared-labels-new-row-value-input",type:"text",value:r.value,onChange:u=>a.setValue(u.target.value),onKeyUp:u=>{u.key==="Enter"?s():u.key==="Escape"&&l()}})})})}),b.jsxs("td",{className:"flex items-center px-2 text-xs font-normal float-right h-10",children:[b.jsx(bt,{label:"Confirm",container:dt(),children:b.jsx(st,{"data-cy":"shared-labels-new-row-confirm-button",color:"white",variant:"ghost",onClick:s,children:b.jsx(To,{})})}),b.jsx(bt,{label:"Cancel",container:dt(),children:b.jsx(st,{"data-cy":"shared-labels-new-row-cancel-button",color:"white",variant:"ghost",onClick:l,children:b.jsx(Ma,{})})})]})]})},rw=()=>{const{languageKeys:e,isPrimary:t,selectedLanguage:n,userLanguages:{supported:i},addNewKey:r,setUserLangSettings:a}=Yn(),{state:s,actions:l}=we.useStateObject({search:"",switch:t,keys:[],addNewKey:!1}),[u,c]=M.useState(null),d=M.useRef(null),p=Ny(e),g=!!n&&!p,m=!!n,C=M.useMemo(()=>{if(!s.search)return e;const R=new RegExp(he.escapeRegExp(s.search),"gi");return e.filter(F=>F.key.match(R))},[e,s.search]),x=C.length===0,w=av({count:C.length,getScrollElement:()=>d.current,estimateSize:()=>40,overscan:5}),S=w.getVirtualItems(),k=S.length>0?S[0].start:0,E=S.length>0?w.getTotalSize()-S[S.length-1].end:0,A=()=>{if(n){const{isocode:R}=n;a({primary:R,supported:i})}},y=()=>{l.setAddNewKey(!0)},f=(R,F)=>{const D=C.find(q=>q.key===R);if(n){const{isocode:q}=n;if(R){if(!/^[\w\u3040-\u30FF\u3400-\u4DBF\u4E00-\u9FAF-]+$/i.test(R)||!/^[a-zA-Z\u3040-\u30FF\u3400-\u4DBF\u4E00-\u9FAF]/.test(R)){c({message:"Invalid key name"});return}else if(D){c({message:"Key name already exists"});return}r(R,[{lang:q,value:F}],F)}l.setAddNewKey(!1)}},T=()=>{l.setAddNewKey(!1)};return M.useEffect(()=>{l.setSwitch(t)},[t]),b.jsx(Gn,{depth:1,"data-cy":"localization-keys-editor",className:Ft("flex w-full border-l",{"justify-center items-center":!1}),children:b.jsxs("div",{className:"flex flex-col w-full py-3 px-3 min-h-0",children:[b.jsxs("div",{className:"flex flex-col space-y-3 justify-between w-full",children:[b.jsxs("div",{className:Ft("flex items-center w-full justify-between",{hidden:!m}),children:[b.jsxs("div",{className:"flex space-x-2 items-center justify-center",children:[b.jsx("span",{className:"text-[12px]",children:"Shared Labels"}),b.jsx(we.Tip,{tipKey:"editors:i18n:label",alwaysOn:!0})]}),b.jsxs("div",{className:"flex space-x-2 justify-center items-center",children:[b.jsx(Sd,{onChange:R=>{t||(l.setSwitch(R),A())},checked:s.switch}),b.jsx("span",{className:"text-xs",children:"Primary Locale"})]})]}),b.jsx("div",{className:Ft("w-60",{invisible:!g}),children:b.jsx(we.SearchInput,{containerClassName:"",value:s.search,onChange:R=>l.setSearch(R),delay:300})})]}),p?b.jsx(Py,{}):b.jsxs("div",{ref:d,className:"w-full flex-1 min-h-0 overflow-y-auto",children:[b.jsxs("table",{"data-cy":"shared-labels-table",className:"w-full text-sm text-left rtl:text-right table-fixed",children:[b.jsx("thead",{className:"text-xs",children:b.jsxs("tr",{children:[b.jsx("th",{scope:"col",className:"px-2 py-3 text-xs font-normal",children:"Key"}),b.jsx("th",{scope:"col",className:"px-2 py-3 text-xs font-normal",children:"Value"}),b.jsx("th",{scope:"col",className:"px-2 py-3 text-xs font-normal float-right",children:b.jsx(bt,{label:"Add a key",container:dt(),children:b.jsx(st,{color:"white",variant:"ghost",onClick:y,children:b.jsx(Po,{})})})})]})}),b.jsxs("tbody",{className:"border-t-[1px] border-border-subtle",children:[k>0&&b.jsx("tr",{children:b.jsx("td",{colSpan:3,style:{height:k}})}),S.map(R=>{const F=C[R.index];return b.jsx(nw,{index:R.index,keyName:F.key,value:F.value,isDefault:F.isDefault},`${n==null?void 0:n.isocode}/${R.index}`)}),E>0&&b.jsx("tr",{children:b.jsx("td",{colSpan:3,style:{height:E}})}),s.addNewKey&&b.jsx(iw,{onConfirm:f,onCancel:T,setError:c,error:u}),x&&b.jsx("span",{})]})]}),x&&b.jsxs("div",{className:"flex flex-col justify-center items-center mt-16 ml-2 text-xs space-y-3 text-inactive-text",children:[b.jsx(Oo,{className:"h-9 w-9"}),b.jsx("div",{className:"text-xs",children:"This key doesn't exist."})]})]})]})})},lr=(e,t)=>t.find(n=>n.isocode===e);function aw(){return{enter:{mdxFlowExpression:ow,mdxTextExpression:lw},exit:{mdxFlowExpression:Sc,mdxFlowExpressionChunk:Ec,mdxTextExpression:Sc,mdxTextExpressionChunk:Ec}}}function sw(){return{handlers:{mdxFlowExpression:Cc,mdxTextExpression:Cc},unsafe:[{character:"{",inConstruct:["phrasing"]},{atBreak:!0,character:"{"}]}}function ow(e){this.enter({type:"mdxFlowExpression",value:""},e),this.buffer()}function lw(e){this.enter({type:"mdxTextExpression",value:""},e),this.buffer()}function Sc(e){const t=this.resume(),n=e.estree,i=this.stack[this.stack.length-1];i.type==="mdxFlowExpression"||i.type,this.exit(e),i.value=t,n&&(i.data={estree:n})}function Ec(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}function Cc(e,t,n){const i=e.value||"";return"{"+n.indentLines(i,function(a,s,l){return(s===0||l?"":" ")+a})+"}"}function Sa(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let i=0,r=n.indexOf(t);for(;r!==-1;)i++,r=n.indexOf(t,r+t.length);return i}const uw=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],Ic={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"};function cf(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=48&&t<=57}function cw(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function hw(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}function _c(e){return hw(e)||cf(e)}const Ac=document.createElement("i");function ur(e){const t="&"+e+";";Ac.innerHTML=t;const n=Ac.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}const dw=["","Named character references must be terminated by a semicolon","Numeric character references must be terminated by a semicolon","Named character references cannot be empty","Numeric character references cannot be empty","Named character references must be known","Numeric character references cannot be disallowed","Numeric character references cannot be outside the permissible Unicode range"];function pw(e,t){const n=t||{},i=typeof n.additional=="string"?n.additional.charCodeAt(0):n.additional,r=[];let a=0,s=-1,l="",u,c;n.position&&("start"in n.position||"indent"in n.position?(c=n.position.indent,u=n.position.start):u=n.position);let d=(u?u.line:0)||1,p=(u?u.column:0)||1,g=C(),m;for(a--;++a<=e.length;)if(m===10&&(p=(c?c[s]:0)||1),m=e.charCodeAt(a),m===38){const S=e.charCodeAt(a+1);if(S===9||S===10||S===12||S===32||S===38||S===60||Number.isNaN(S)||i&&S===i){l+=String.fromCharCode(m),p++;continue}const k=a+1;let E=k,A=k,y;if(S===35){A=++E;const K=e.charCodeAt(A);K===88||K===120?(y="hexadecimal",A=++E):y="decimal"}else y="named";let f="",T="",R="";const F=y==="named"?_c:y==="decimal"?cf:cw;for(A--;++A<=e.length;){const K=e.charCodeAt(A);if(!F(K))break;R+=String.fromCharCode(K),y==="named"&&uw.includes(R)&&(f=R,T=ur(R))}let D=e.charCodeAt(A)===59;if(D){A++;const K=y==="named"?ur(R):!1;K&&(f=R,T=K)}let q=1+A-k,J="";if(!(!D&&n.nonTerminated===!1))if(!R)y!=="named"&&x(4,q);else if(y==="named"){if(D&&!T)x(5,1);else if(f!==R&&(A=E+f.length,q=1+A-E,D=!1),!D){const K=f?1:3;if(n.attribute){const j=e.charCodeAt(A);j===61?(x(K,q),T=""):_c(j)?T="":x(K,q)}else x(K,q)}J=T}else{D||x(2,q);let K=Number.parseInt(R,y==="hexadecimal"?16:10);if(fw(K))x(7,q),J="�";else if(K in Ic)x(6,q),J=Ic[K];else{let j="";gw(K)&&x(6,q),K>65535&&(K-=65536,j+=String.fromCharCode(K>>>10|55296),K=56320|K&1023),J=j+String.fromCharCode(K)}}if(J){w(),g=C(),a=A-1,p+=A-k+1,r.push(J);const K=C();K.offset++,n.reference&&n.reference.call(n.referenceContext||void 0,J,{start:g,end:K},e.slice(k-1,A)),g=K}else R=e.slice(k-1,A),l+=R,p+=R.length,a=A-1}else m===10&&(d++,s++,p=0),Number.isNaN(m)?w():(l+=String.fromCharCode(m),p++);return r.join("");function C(){return{line:d,column:p,offset:a+((u?u.offset:0)||0)}}function x(S,k){let E;n.warning&&(E=C(),E.column+=k,E.offset+=k,n.warning.call(n.warningContext||void 0,dw[S],E,S))}function w(){l&&(r.push(l),n.text&&n.text.call(n.textContext||void 0,l,{start:g,end:C()}),l="")}}function fw(e){return e>=55296&&e<=57343||e>1114111}function gw(e){return e>=1&&e<=8||e===11||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534}const mw=/["&'<>`]/g,vw=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,xw=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,bw=/[|\\{}()[\]^$+*?.]/g,Nc=new WeakMap;function yw(e,t){if(e=e.replace(t.subset?ww(t.subset):mw,i),t.subset||t.escapeOnly)return e;return e.replace(vw,n).replace(xw,i);function n(r,a,s){return t.format((r.charCodeAt(0)-55296)*1024+r.charCodeAt(1)-56320+65536,s.charCodeAt(a+2),t)}function i(r,a,s){return t.format(r.charCodeAt(0),s.charCodeAt(a+1),t)}}function ww(e){let t=Nc.get(e);return t||(t=kw(e),Nc.set(e,t)),t}function kw(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(bw,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}function Sw(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Ew(e,t){return yw(e,Object.assign({format:Sw},t))}function On(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Tc(e.position):"start"in e||"end"in e?Tc(e):"line"in e||"column"in e?ho(e):""}function ho(e){return Oc(e&&e.line)+":"+Oc(e&&e.column)}function Tc(e){return ho(e&&e.start)+"-"+ho(e&&e.end)}function Oc(e){return e&&typeof e=="number"?e:1}class Xe extends Error{constructor(t,n,i){super(),typeof n=="string"&&(i=n,n=void 0);let r="",a={},s=!1;if(n&&("line"in n&&"column"in n?a={place:n}:"start"in n&&"end"in n?a={place:n}:"type"in n?a={ancestors:[n],place:n.position}:a={...n}),typeof t=="string"?r=t:!a.cause&&t&&(s=!0,r=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof i=="string"){const u=i.indexOf(":");u===-1?a.ruleId=i:(a.source=i.slice(0,u),a.ruleId=i.slice(u+1))}if(!a.place&&a.ancestors&&a.ancestors){const u=a.ancestors[a.ancestors.length-1];u&&(a.place=u.position)}const l=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=l?l.column:void 0,this.fatal=void 0,this.file="",this.message=r,this.line=l?l.line:void 0,this.name=On(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=s&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Xe.prototype.file="";Xe.prototype.name="";Xe.prototype.reason="";Xe.prototype.message="";Xe.prototype.stack="";Xe.prototype.column=void 0;Xe.prototype.line=void 0;Xe.prototype.ancestors=void 0;Xe.prototype.cause=void 0;Xe.prototype.fatal=void 0;Xe.prototype.place=void 0;Xe.prototype.ruleId=void 0;Xe.prototype.source=void 0;const hf=" ";function Cw(){return{canContainEols:["mdxJsxTextElement"],enter:{mdxJsxFlowTag:i,mdxJsxFlowTagClosingMarker:r,mdxJsxFlowTagAttribute:p,mdxJsxFlowTagExpressionAttribute:g,mdxJsxFlowTagAttributeValueLiteral:e,mdxJsxFlowTagAttributeValueExpression:e,mdxJsxFlowTagSelfClosingMarker:s,mdxJsxTextTag:i,mdxJsxTextTagClosingMarker:r,mdxJsxTextTagAttribute:p,mdxJsxTextTagExpressionAttribute:g,mdxJsxTextTagAttributeValueLiteral:e,mdxJsxTextTagAttributeValueExpression:e,mdxJsxTextTagSelfClosingMarker:s},exit:{mdxJsxFlowTagClosingMarker:l,mdxJsxFlowTagNamePrimary:u,mdxJsxFlowTagNameMember:c,mdxJsxFlowTagNameLocal:d,mdxJsxFlowTagExpressionAttribute:m,mdxJsxFlowTagExpressionAttributeValue:n,mdxJsxFlowTagAttributeNamePrimary:C,mdxJsxFlowTagAttributeNameLocal:x,mdxJsxFlowTagAttributeValueLiteral:w,mdxJsxFlowTagAttributeValueLiteralValue:n,mdxJsxFlowTagAttributeValueExpression:S,mdxJsxFlowTagAttributeValueExpressionValue:n,mdxJsxFlowTagSelfClosingMarker:k,mdxJsxFlowTag:E,mdxJsxTextTagClosingMarker:l,mdxJsxTextTagNamePrimary:u,mdxJsxTextTagNameMember:c,mdxJsxTextTagNameLocal:d,mdxJsxTextTagExpressionAttribute:m,mdxJsxTextTagExpressionAttributeValue:n,mdxJsxTextTagAttributeNamePrimary:C,mdxJsxTextTagAttributeNameLocal:x,mdxJsxTextTagAttributeValueLiteral:w,mdxJsxTextTagAttributeValueLiteralValue:n,mdxJsxTextTagAttributeValueExpression:S,mdxJsxTextTagAttributeValueExpressionValue:n,mdxJsxTextTagSelfClosingMarker:k,mdxJsxTextTag:E}};function e(){this.buffer()}function t(T){return{line:T.line,column:T.column,offset:T.offset}}function n(T){this.config.enter.data.call(this,T),this.config.exit.data.call(this,T)}function i(T){const R={name:void 0,attributes:[],close:!1,selfClosing:!1,start:T.start,end:T.end};this.data.mdxJsxTagStack||(this.data.mdxJsxTagStack=[]),this.data.mdxJsxTag=R,this.buffer()}function r(T){if(this.data.mdxJsxTagStack.length===0)throw new Xe("Unexpected closing slash `/` in tag, expected an open tag first",{start:T.start,end:T.end},"mdast-util-mdx-jsx:unexpected-closing-slash")}function a(T){if(this.data.mdxJsxTag.close)throw new Xe("Unexpected attribute in closing tag, expected the end of the tag",{start:T.start,end:T.end},"mdast-util-mdx-jsx:unexpected-attribute")}function s(T){if(this.data.mdxJsxTag.close)throw new Xe("Unexpected self-closing slash `/` in closing tag, expected the end of the tag",{start:T.start,end:T.end},"mdast-util-mdx-jsx:unexpected-self-closing-slash")}function l(){const T=this.data.mdxJsxTag;T.close=!0}function u(T){const R=this.data.mdxJsxTag;R.name=this.sliceSerialize(T)}function c(T){const R=this.data.mdxJsxTag;R.name+="."+this.sliceSerialize(T)}function d(T){const R=this.data.mdxJsxTag;R.name+=":"+this.sliceSerialize(T)}function p(T){const R=this.data.mdxJsxTag;a.call(this,T),R.attributes.push({type:"mdxJsxAttribute",name:"",value:null,position:{start:t(T.start),end:void 0}})}function g(T){const R=this.data.mdxJsxTag;a.call(this,T),R.attributes.push({type:"mdxJsxExpressionAttribute",value:"",position:{start:t(T.start),end:void 0}}),this.buffer()}function m(T){const R=this.data.mdxJsxTag,F=R.attributes[R.attributes.length-1];F.type;const D=T.estree;F.value=this.resume(),F.position,F.position.end=t(T.end),D&&(F.data={estree:D})}function C(T){const R=this.data.mdxJsxTag,F=R.attributes[R.attributes.length-1];F.type,F.name=this.sliceSerialize(T),F.position,F.position.end=t(T.end)}function x(T){const R=this.data.mdxJsxTag,F=R.attributes[R.attributes.length-1];F.type,F.name+=":"+this.sliceSerialize(T),F.position,F.position.end=t(T.end)}function w(T){const R=this.data.mdxJsxTag,F=R.attributes[R.attributes.length-1];F.value=pw(this.resume(),{nonTerminated:!1}),F.position,F.position.end=t(T.end)}function S(T){const R=this.data.mdxJsxTag,F=R.attributes[R.attributes.length-1];F.type;const D={type:"mdxJsxAttributeValueExpression",value:this.resume()},q=T.estree;q&&(D.data={estree:q}),F.value=D,F.position,F.position.end=t(T.end)}function k(){const T=this.data.mdxJsxTag;T.selfClosing=!0}function E(T){const R=this.data.mdxJsxTag,F=this.data.mdxJsxTagStack,D=F[F.length-1];if(R.close&&D.name!==R.name)throw new Xe("Unexpected closing tag `"+f(R)+"`, expected corresponding closing tag for `"+f(D)+"` ("+On(D)+")",{start:T.start,end:T.end},"mdast-util-mdx-jsx:end-tag-mismatch");this.resume(),R.close?F.pop():this.enter({type:T.type==="mdxJsxTextTag"?"mdxJsxTextElement":"mdxJsxFlowElement",name:R.name||null,attributes:R.attributes,children:[]},T,A),R.selfClosing||R.close?this.exit(T,y):F.push(R)}function A(T,R){const F=this.data.mdxJsxTagStack,D=F[F.length-1],q=T?" before the end of `"+T.type+"`":"",J=T?{start:T.start,end:T.end}:void 0;throw new Xe("Expected a closing tag for `"+f(D)+"` ("+On({start:R.start,end:R.end})+")"+q,J,"mdast-util-mdx-jsx:end-tag-mismatch")}function y(T,R){const F=this.data.mdxJsxTag;throw new Xe("Expected the closing tag `"+f(F)+"` either after the end of `"+R.type+"` ("+On(R.end)+") or another opening tag after the start of `"+R.type+"` ("+On(R.start)+")",{start:T.start,end:T.end},"mdast-util-mdx-jsx:end-tag-mismatch")}function f(T){return"<"+(T.close?"/":"")+(T.name||"")+">"}}function Iw(e){const t=e||{},n=t.quote||'"',i=t.quoteSmart||!1,r=t.tightSelfClosing||!1,a=t.printWidth||Number.POSITIVE_INFINITY,s=n==='"'?"'":'"';if(n!=='"'&&n!=="'")throw new Error("Cannot serialize attribute values with `"+n+"` for `options.quote`, expected `\"`, or `'`");return l.peek=Aw,{handlers:{mdxJsxFlowElement:l,mdxJsxTextElement:l},unsafe:[{character:"<",inConstruct:["phrasing"]},{atBreak:!0,character:"<"}],fences:!0,resourceLink:!0};function l(u,c,d,p){const g=u.type==="mdxJsxFlowElement",m=u.name?!u.children||u.children.length===0:!1,C=df(d),x=pf(C),w=d.createTracker(p),S=d.createTracker(p),k=[],E=(g?x:"")+"<"+(u.name||""),A=d.enter(u.type);if(w.move(E),S.move(E),u.attributes&&u.attributes.length>0){if(!u.name)throw new Error("Cannot serialize fragment w/ attributes");let F=-1;for(;++F<u.attributes.length;){const D=u.attributes[F];let q;if(D.type==="mdxJsxExpressionAttribute")q="{"+(D.value||"")+"}";else{if(!D.name)throw new Error("Cannot serialize attribute w/o name");const J=D.value,K=D.name;let j="";if(J!=null)if(typeof J=="object")j="{"+(J.value||"")+"}";else{const ae=i&&Sa(J,n)>Sa(J,s)?s:n;j=ae+Ew(J,{subset:[ae]})+ae}q=K+(j?"=":"")+j}k.push(q)}}let y=!1;const f=k.join(" ");g&&(/\r?\n|\r/.test(f)||w.current().now.column+f.length+(m?r?2:3:1)>a)&&(y=!0);let T=w,R=E;if(y){T=S;let F=-1;for(;++F<k.length;)k[F]=x+hf+k[F];R+=T.move(`
|
|
6
|
+
`):"",this.name="UnsubscriptionError",this.errors=n}});function Va(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var _r=(function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,n,i,r,s;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var l=Da(o),u=l.next();!u.done;u=l.next()){var f=u.value;f.remove(this)}}catch(v){t={error:v}}finally{try{u&&!u.done&&(n=l.return)&&n.call(l)}finally{if(t)throw t.error}}else o.remove(this);var p=this.initialTeardown;if(qt(p))try{p()}catch(v){s=v instanceof Gr?v.errors:[v]}var h=this._finalizers;if(h){this._finalizers=null;try{for(var d=Da(h),m=d.next();!m.done;m=d.next()){var b=m.value;try{Uo(b)}catch(v){s=s??[],v instanceof Gr?s=lr(lr([],ja(s)),ja(v.errors)):s.push(v)}}}catch(v){i={error:v}}finally{try{m&&!m.done&&(r=d.return)&&r.call(d)}finally{if(i)throw i.error}}}if(s)throw new Gr(s)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)Uo(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}},e.prototype._hasParent=function(t){var n=this._parentage;return n===t||Array.isArray(n)&&n.includes(t)},e.prototype._addParent=function(t){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t},e.prototype._removeParent=function(t){var n=this._parentage;n===t?this._parentage=null:Array.isArray(n)&&Va(n,t)},e.prototype.remove=function(t){var n=this._finalizers;n&&Va(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=(function(){var t=new e;return t.closed=!0,t})(),e})(),Ju=_r.EMPTY;function Yu(e){return e instanceof _r||e&&"closed"in e&&qt(e.remove)&&qt(e.add)&&qt(e.unsubscribe)}function Uo(e){qt(e)?e():e.unsubscribe()}var Od={Promise:void 0},Rd={setTimeout:function(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return setTimeout.apply(void 0,lr([e,t],ja(n)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function Ld(e){Rd.setTimeout(function(){throw e})}function Ho(){}function er(e){e()}var us=(function(e){Si(t,e);function t(n){var i=e.call(this)||this;return i.isStopped=!1,n?(i.destination=n,Yu(n)&&n.add(i)):i.destination=Dd,i}return t.create=function(n,i,r){return new Ba(n,i,r)},t.prototype.next=function(n){this.isStopped||this._next(n)},t.prototype.error=function(n){this.isStopped||(this.isStopped=!0,this._error(n))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(n){this.destination.next(n)},t.prototype._error=function(n){try{this.destination.error(n)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t})(_r),Md=(function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var n=this.partialObserver;if(n.next)try{n.next(t)}catch(i){Fi(i)}},e.prototype.error=function(t){var n=this.partialObserver;if(n.error)try{n.error(t)}catch(i){Fi(i)}else Fi(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(n){Fi(n)}},e})(),Ba=(function(e){Si(t,e);function t(n,i,r){var s=e.call(this)||this,o;return qt(n)||!n?o={next:n??void 0,error:i??void 0,complete:r??void 0}:o=n,s.destination=new Md(o),s}return t})(us);function Fi(e){Ld(e)}function Fd(e){throw e}var Dd={closed:!0,next:Ho,error:Fd,complete:Ho},jd=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})();function Vd(e){return e}function Bd(e){return e.length===0?Vd:e.length===1?e[0]:function(n){return e.reduce(function(i,r){return r(i)},n)}}var $o=(function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(t,n,i){var r=this,s=Kd(t)?t:new Ba(t,n,i);return er(function(){var o=r,l=o.operator,u=o.source;s.add(l?l.call(s,u):u?r._subscribe(s):r._trySubscribe(s))}),s},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(n){t.error(n)}},e.prototype.forEach=function(t,n){var i=this;return n=qo(n),new n(function(r,s){var o=new Ba({next:function(l){try{t(l)}catch(u){s(u),o.unsubscribe()}},error:s,complete:r});i.subscribe(o)})},e.prototype._subscribe=function(t){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(t)},e.prototype[jd]=function(){return this},e.prototype.pipe=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Bd(t)(this)},e.prototype.toPromise=function(t){var n=this;return t=qo(t),new t(function(i,r){var s;n.subscribe(function(o){return s=o},function(o){return r(o)},function(){return i(s)})})},e.create=function(t){return new e(t)},e})();function qo(e){var t;return(t=e??Od.Promise)!==null&&t!==void 0?t:Promise}function zd(e){return e&&qt(e.next)&&qt(e.error)&&qt(e.complete)}function Kd(e){return e&&e instanceof us||zd(e)&&Yu(e)}function Ud(e){return qt(e==null?void 0:e.lift)}function Qu(e){return function(t){if(Ud(t))return t.lift(function(n){try{return e(n,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}function Zu(e,t,n,i,r){return new Hd(e,t,n,i,r)}var Hd=(function(e){Si(t,e);function t(n,i,r,s,o,l){var u=e.call(this,n)||this;return u.onFinalize=o,u.shouldUnsubscribe=l,u._next=i?function(f){try{i(f)}catch(p){n.error(p)}}:e.prototype._next,u._error=s?function(f){try{s(f)}catch(p){n.error(p)}finally{this.unsubscribe()}}:e.prototype._error,u._complete=r?function(){try{r()}catch(f){n.error(f)}finally{this.unsubscribe()}}:e.prototype._complete,u}return t.prototype.unsubscribe=function(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var i=this.closed;e.prototype.unsubscribe.call(this),!i&&((n=this.onFinalize)===null||n===void 0||n.call(this))}},t})(us),$d=Gu(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Xu=(function(e){Si(t,e);function t(){var n=e.call(this)||this;return n.closed=!1,n.currentObservers=null,n.observers=[],n.isStopped=!1,n.hasError=!1,n.thrownError=null,n}return t.prototype.lift=function(n){var i=new Wo(this,this);return i.operator=n,i},t.prototype._throwIfClosed=function(){if(this.closed)throw new $d},t.prototype.next=function(n){var i=this;er(function(){var r,s;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var o=Da(i.currentObservers),l=o.next();!l.done;l=o.next()){var u=l.value;u.next(n)}}catch(f){r={error:f}}finally{try{l&&!l.done&&(s=o.return)&&s.call(o)}finally{if(r)throw r.error}}}})},t.prototype.error=function(n){var i=this;er(function(){if(i._throwIfClosed(),!i.isStopped){i.hasError=i.isStopped=!0,i.thrownError=n;for(var r=i.observers;r.length;)r.shift().error(n)}})},t.prototype.complete=function(){var n=this;er(function(){if(n._throwIfClosed(),!n.isStopped){n.isStopped=!0;for(var i=n.observers;i.length;)i.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(n){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,n)},t.prototype._subscribe=function(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)},t.prototype._innerSubscribe=function(n){var i=this,r=this,s=r.hasError,o=r.isStopped,l=r.observers;return s||o?Ju:(this.currentObservers=null,l.push(n),new _r(function(){i.currentObservers=null,Va(l,n)}))},t.prototype._checkFinalizedStatuses=function(n){var i=this,r=i.hasError,s=i.thrownError,o=i.isStopped;r?n.error(s):o&&n.complete()},t.prototype.asObservable=function(){var n=new $o;return n.source=this,n},t.create=function(n,i){return new Wo(n,i)},t})($o),Wo=(function(e){Si(t,e);function t(n,i){var r=e.call(this)||this;return r.destination=n,r.source=i,r}return t.prototype.next=function(n){var i,r;(r=(i=this.destination)===null||i===void 0?void 0:i.next)===null||r===void 0||r.call(i,n)},t.prototype.error=function(n){var i,r;(r=(i=this.destination)===null||i===void 0?void 0:i.error)===null||r===void 0||r.call(i,n)},t.prototype.complete=function(){var n,i;(i=(n=this.destination)===null||n===void 0?void 0:n.complete)===null||i===void 0||i.call(n)},t.prototype._subscribe=function(n){var i,r;return(r=(i=this.source)===null||i===void 0?void 0:i.subscribe(n))!==null&&r!==void 0?r:Ju},t})(Xu);function qd(e,t){return Qu(function(n,i){var r=0;n.subscribe(Zu(i,function(s){i.next(e.call(t,s,r++))}))})}function Wd(e,t){return Qu(function(n,i){var r=0;n.subscribe(Zu(i,function(s){return e.call(t,s,r++)&&i.next(s)}))})}const ec=new Xu,Gd=(e,t)=>({name:e.split("/").pop()||e,type:fe.FileFolderType.WEBFORM,path:e,date:new Date().toISOString(),content:t,view:{panel:{isOpen:!1,type:"",current:""}},flags:{}});function tc(e,t){switch(t.type){case"SET_TABS":return{...e,tabs:t.payload};case"SET_I18N_CURRENT":return{...e,i18nCurrent:t.payload};case"SET_TAB_CONTENT":{const{path:n,content:i}=t.payload;return e.tabs.find(s=>s.path===n)?{...e,tabs:e.tabs.map(s=>s.path===n?{...s,content:i}:s)}:{...e,tabs:[...e.tabs,Gd(n,i)]}}case"CREATE_MODAL":return{...e,modals:{...e.modals,list:[...e.modals.list,t.payload]}};case"REMOVE_MODAL":return{...e,modals:{...e.modals,list:e.modals.list.filter(n=>n.id!==t.payload)}};case"CLOSE_MODAL":{const{id:n,reason:i}=t.payload;let r;if(i)if(e.modals.list.find(o=>o.id===n))r={...e,modals:{...e.modals,list:e.modals.list.map(o=>o.id===n?{...o,closeReason:i,isOpen:!1}:o)}};else return e;else r={...e,modals:{...e.modals,list:e.modals.list.filter(s=>s.id!==n)}};return ec.next(r.modals),r}case"EDIT_MODAL":{const{id:n,...i}=t.payload;return e.modals.list.find(s=>s.id===n)?{...e,modals:{...e.modals,list:e.modals.list.map(s=>s.id===n?{...s,...i}:s)}}:e}default:return e}}const Ir=V.createContext(null),nc=(e,t)=>({tabs:e,i18nCurrent:t,modals:{list:[]}}),ic=({children:e,tabs:t=[],i18nCurrent:n="",initialI18nFile:i})=>{const[r,s]=V.useReducer(tc,nc(t,n));V.useEffect(()=>{oe.isEqual(r.tabs,t)||s({type:"SET_TABS",payload:t})},[t,r.tabs]),V.useEffect(()=>{r.i18nCurrent!==n&&s({type:"SET_I18N_CURRENT",payload:n})},[n,r.i18nCurrent]);const o=V.useMemo(()=>({state:r,dispatch:s,initialI18nFile:i}),[r,i]);return C.jsx(Ir.Provider,{value:o,children:e})};function rc(e,t,n){const i=V.useContext(Ir);if(!i)throw new Error("useReducerAdapter must be used within a ReducerAdapterProvider");const{state:r,dispatch:s,initialI18nFile:o}=i;return{getTabs:V.useCallback(()=>r.tabs,[r.tabs]),getI18nCurrent:V.useCallback(()=>r.i18nCurrent,[r.i18nCurrent]),fetchI18nFile:V.useCallback(()=>{if(!o)return Promise.resolve(Cn);if(typeof o!="string")return Promise.resolve(o);try{const l=JSON.parse(o);return Promise.resolve({keys:(l==null?void 0:l.keys)??Cn.keys,userLang:(l==null?void 0:l.userLang)??Cn.userLang})}catch{return Promise.resolve(Cn)}},[o]),getWebformTabs:V.useCallback(()=>r.tabs.filter(l=>l.type===fe.FileFolderType.WEBFORM),[r.tabs]),getActiveTabPath:V.useCallback(()=>{var l;return((l=r.tabs[0])==null?void 0:l.path)??""},[r.tabs]),getFlagsByPath:V.useCallback(l=>{var u;return(u=r.tabs.find(f=>f.path===l))==null?void 0:u.flags},[r.tabs]),getSupportedLanguages:V.useCallback(async l=>n&&n.length?n:fe.getSupportedLanguages(l),[n]),getUserComponents:V.useCallback(()=>e??{},[e]),getBuildResolver:V.useCallback(()=>t??{},[t]),actions:{openModal:V.useCallback(async l=>{const{type:u=fe.ModalType.ALERT}=l,f=ss.generate();return s({type:"CREATE_MODAL",payload:{id:f,type:u,isOpen:!0,...l}}),u===fe.ModalType.CONFIRM?new Promise(p=>{const h=ec.pipe(Wd(d=>{const m=d.list.find(b=>b.id===f);return m!==void 0&&!m.isOpen})).subscribe(d=>{var b;const m=d.list.find(v=>v.id===f);if(m){const v=m.closeReason===fe.ModalCloseReason.CONFIRMED,S=oe.entries(((b=m.views)==null?void 0:b.toggles)||{}).reduce((E,k)=>({...E,[k[0]]:k[1].value}),{});s({type:"REMOVE_MODAL",payload:f}),h.unsubscribe(),p({confirmed:v,options:S})}})}):{confirmed:!1}},[s]),setTabs:V.useCallback(l=>{s({type:"SET_TABS",payload:l})},[s]),setI18nCurrent:V.useCallback(l=>{s({type:"SET_I18N_CURRENT",payload:l})},[s]),setTabContent:V.useCallback(async l=>(s({type:"SET_TAB_CONTENT",payload:l}),l),[s])}}}function ac(){const e=V.useContext(Ir);if(!e)throw new Error("useModals must be used within a ReducerAdapterProvider");const{state:t,dispatch:n}=e;return{modals:t.modals.list,closeModal:V.useCallback(i=>{n({type:"CLOSE_MODAL",payload:i})},[n]),editModal:V.useCallback(i=>{n({type:"EDIT_MODAL",payload:i})},[n]),removeModal:V.useCallback(i=>{n({type:"REMOVE_MODAL",payload:i})},[n])}}const sc=V.createContext(void 0),Jr={i18n:{keys:{},userLang:{primary:"",supported:[]}},i18nFileFetched:!1},oc={tr_key:"__t"},{tr_key:Di}=oc,Jd={buildPathFullObject:e=>`${Di}.${e}`,getKeyValueFromCustom:(e,t)=>oe.get(e,`${Di}.${t}.key`),getDefaultValueFromCustom:(e,t)=>oe.get(e,`${Di}.${t}.default`),getFullObject:(e,t)=>oe.get(e,`${Di}.${t}`)},lc=V.memo(({children:e,isI18nEnabled:t,onI18nChange:n})=>{const i=vn({permissive:!0}),[r,s]=V.useState(Jr),o=V.useRef(!1),l=V.useRef(!0),{i18n:u}=r,f=(k,I,N)=>{let y=1,g=k;for(;u.keys[g];)g=`${k}-${y}`,y++;const A={default:N};I.forEach(({lang:F,value:R})=>{F&&oe.set(A,F,R)});const M={keys:{...u.keys,[k]:A},userLang:u.userLang};s(F=>({...F,i18n:M}))},p=()=>{const k=new window.Event("i18n:ready");window.dispatchEvent(k)},h=V.useCallback(oe.debounce((k,I,N,y=!1)=>{s(g=>{const{keys:A,userLang:M}=g.i18n;if(A[k]&&I){const F={...A,[k]:{...A[k],[I]:N}};return o.current=y,{...g,i18n:{keys:F,userLang:M}}}return g})},300),[]),d=V.useCallback(oe.debounce((k,I)=>{const{keys:N,userLang:y}=oe.cloneDeep(u);N[k]&&I&&oe.set(N,`${k}.default`,I),s(g=>({...g,i18n:{keys:N,userLang:y}}))},300),[u]),m=k=>{k&&s(I=>({...I,i18n:{...I.i18n,userLang:k}}))},b=V.useCallback((k,I)=>{const{keys:N,userLang:y}=u,A={keys:Object.entries(N).reduce((M,[F,R])=>{const j={...R};return k.isocode in j&&(j[I.isocode]=j[k.isocode],delete j[k.isocode]),M[F]=j,M},{}),userLang:y};s(M=>({...M,i18n:A}))},[u]),v=V.useCallback(k=>{const{keys:I,userLang:N}=u,g={keys:Object.entries(I).reduce((A,[M,F])=>{const R={...F};return k.isocode in R&&delete R[k.isocode],A[M]=R,A},{}),userLang:N};s(A=>({...A,i18n:g}))},[u]),S=k=>{const I=[];return Object.keys(u.keys).forEach(y=>{const g=oe.get(u,`keys.${y}.${k}`,oe.get(u,`keys.${y}.default`,""));I.push({key:y,value:g})}),I},E=V.useCallback(oe.debounce(k=>{s(I=>{const{keys:N,userLang:y}=I.i18n,g={...N};return delete g[k],{...I,i18n:{userLang:y,keys:g}}})},300),[]);return V.useEffect(()=>{(async()=>{if(!t){s(I=>({...I,i18nFileFetched:!0})),p();return}try{const I=await((i==null?void 0:i.fetchI18nFile)||qu)();s(N=>({...N,i18n:{keys:oe.get(I,"keys",Jr.i18n.keys),userLang:oe.get(I,"userLang",Jr.i18n.userLang)}}))}catch{}finally{s(I=>({...I,i18nFileFetched:!0})),p()}})()},[t,i==null?void 0:i.fetchI18nFile]),V.useEffect(()=>{const k=fe.i18nSubject.pipe(qd(({action:I,payload:N})=>{if(I==="set_content"){const y={...u,keys:{...u.keys,...N}};s(g=>({...g,i18n:y}))}if(I==="set_locale_state"){const y={...u,...N};l.current=!1,s(g=>({...g,i18n:y}))}})).subscribe();return()=>k.unsubscribe()},[u]),V.useEffect(()=>{if(!l.current){l.current=!0;return}r.i18nFileFetched&&(n==null||n(r.i18n))},[r]),C.jsx(sc.Provider,{value:{i18n:r.i18n,createKey:f,updateKey:h,removeKey:E,editLanguageKeys:b,updateKeyDefault:d,deleteLanguageKeys:v,getI18nAsKeyValues:S,setUserLangSettings:m,shouldRecompute:o},children:e})});function sn(){const e=V.useContext(sc);if(e===void 0)throw new Error("useI18n must be used within a I18nProviderContext");return e}const uc=V.createContext(void 0),cc=V.createContext(void 0),Yd=e=>fe.getSupportedLanguages(e),hc=({children:e,getSupportedLanguages:t=Yd,i18nCurrent:n="",activeTabPath:i="",flagsForActiveTab:r})=>{const{isInsideStudio:s}=fe.useStudioContext();return s?C.jsx(Zd,{getSupportedLanguages:t,i18nCurrent:n,activeTabPath:i,flagsForActiveTab:r,children:e}):C.jsx(Qd,{getSupportedLanguages:t,children:e})},Qd=({children:e,getSupportedLanguages:t})=>{const{state:{currentLang:n},actions:i}=fe.useStateObject({currentLang:""}),{actions:r}=fe.useDsRendererAdapter(`${fe.QODLY_NAMESPACE}:${fe.USER_LANGUAGE_DATASOURCE_ID}`),{i18n:{userLang:{primary:s,supported:o}}}=sn(),{isInsideStudio:l}=fe.useStudioContext(),[u,f]=V.useState([]),{loaded:p}=fe.useDsChangeRenderer({datasourceId:`${fe.QODLY_NAMESPACE}:${fe.USER_LANGUAGE_DATASOURCE_ID}`,isDsBuild:!0,onChange:v=>{if(!v)return;const{selected:S}=v;S&&S.isocode&&(i.setCurrentLang(S.isocode),d(S))}}),h=(v,S)=>{r.setProperty(v,S)},d=v=>{localStorage.setItem("i18n.selected",JSON.stringify(v))},m=()=>{const v=localStorage.getItem("i18n.selected");return v?JSON.parse(v):null},b=()=>navigator.language;return V.useEffect(()=>{t(l).then(v=>{f(v)})},[l]),V.useEffect(()=>{if(p&&o){const v=o.map(({isocode:S})=>u.find(E=>E.isocode===S)).filter(Boolean);h("supported",v)}},[o,p]),V.useEffect(()=>{if(p){const v=m();if(v){h("selected",v);return}const S=b();if(S){const E=o.find(k=>k.isocode===S);if(E){h("selected",E);return}}if(s){const E=o.find(k=>k.isocode===s);E&&h("selected",E)}}},[p,o,s]),C.jsx(cc.Provider,{value:{selected:n,supported:u},children:e})},Zd=V.memo(({children:e,getSupportedLanguages:t,i18nCurrent:n,flagsForActiveTab:i})=>{const{state:{supported:r},actions:s}=fe.useStateObject({supported:[]}),{i18n:{userLang:{primary:o,supported:l}}}=sn(),{isInsideStudio:u}=fe.useStudioContext(),f=n&&l.find(d=>d.isocode===n)?n:"",[p,h]=V.useState(f);return V.useEffect(()=>{i!=null&&i.enabled&&h("")},[i==null?void 0:i.enabled]),V.useEffect(()=>{h(f)},[f]),fe.useDsChangeRenderer({datasourceId:`${fe.QODLY_NAMESPACE}:${fe.USER_LANGUAGE_DATASOURCE_ID}`,isDsBuild:i==null?void 0:i.enabled,onChange:d=>{if(!d)return;const{selected:m}=d;m&&m.isocode&&(h(m.isocode),localStorage.setItem("i18n.selected",m.isocode))}}),V.useEffect(()=>{t(u).then(d=>{s.setSupported(d)})},[u]),C.jsx(uc.Provider,{value:{primary:o,selected:p||f,supported:r,userLangagues:l},children:e})});function fc(){const{isInsideStudio:e}=fe.useStudioContext(),t=V.useContext(uc),n=V.useContext(cc),i=e?t:n;if(i===void 0)throw new Error("useLocalization must be used within a LocalizationContext");return i}const pc=V.createContext(void 0),dc=({children:e})=>{const{state:{allSupportedLanguages:t,selectedLanguage:n,languageKeys:i,addFirstLanguage:r,editing:s},actions:o}=fe.useStateObject({allSupportedLanguages:[],selectedLanguage:void 0,languageKeys:[],addFirstLanguage:!1,editing:!1}),{supported:l}=fc(),{i18n:u,setUserLangSettings:f,updateKey:p,removeKey:h,createKey:d}=sn(),m=(v,S)=>Object.keys(S).reduce((I,N)=>{if(S[N]){const y=S[N];if(Object.hasOwn(y,v)){const g=S[N][v];I.push({key:N,value:g,isDefault:!1})}else{const g=S[N].default;I.push({key:N,value:g,isDefault:!0})}}return I},[]),b=(v,S)=>{if(n){const{isocode:E}=n;p(v,E,S,!0);const k=structuredClone(u.keys),I=oe.set({...k},`${v}.${E}`,S),N=m(E,I);o.setLanguageKeys(N)}};return V.useEffect(()=>{o.setAllSupportedLanguages(l||[])},[l]),V.useEffect(()=>{if(n){const{isocode:v}=n,S=m(v,u.keys);o.setLanguageKeys(S)}},[u,n]),C.jsx(pc.Provider,{value:{userLanguages:u.userLang,languageKeys:i,selectedLanguage:n,allSupportedLanguages:t,addFirstLanguage:r,editing:s,isPrimary:u.userLang.primary===(n==null?void 0:n.isocode),removeKey:h,addNewKey:d,setAddFirstLanguage:o.setAddFirstLanguage,setUserLangSettings:f,setSelectedLanguage:v=>o.setSelectedLanguage(v),setLanguageKeyValue:b,setEditing:o.setEditing},children:e})},on=()=>{const e=V.useContext(pc);if(e===void 0)throw new Error("useLocalizationEditor must be used within a LocalizationEditorProvider");return e},it=()=>document.querySelector(`.${os.LOCALIZATION_EDITOR_SCOPE_CLASS}`)||document.body,Xd=({container:e,...t})=>C.jsx(fe.Portal,{...t,container:e||it()}),eg=V.memo(({keyName:e,value:t,isDefault:n,index:i})=>{const{state:{newValue:r,onEditValue:s},actions:o}=fe.useStateObject({newValue:t,onEditValue:!1}),{setLanguageKeyValue:l,removeKey:u}=on(),f=vn(),[p,h]=V.useState(null),d=()=>{s&&(l(e,r),o.setOnEditValue(!1),h(null))},m=()=>{s&&(o.setNewValue(t),o.setOnEditValue(!1),h(null))},b=async()=>{const{confirmed:v}=await f.actions.openModal({title:"Delete Key",type:fe.ModalType.CONFIRM,color:fe.ModalColor.DANGER,message:"Deleting this key will remove all translations associated with it across all locales. Are you sure you want to delete it ?",icon:"FdWarningDanger"});v&&u(e)};return V.useEffect(()=>{o.setNewValue(t)},[t]),C.jsxs("tr",{"data-cy":`shared-labels-row-${e}`,className:Ue("text-gray-50",i%2===0?"bg-grey-700":"bg-grey-600"),children:[C.jsx("td",{className:"px-2 text-xs font-normal h-10",children:e}),C.jsxs("td",{className:"p-2 whitespace-nowrap text-xs font-normal h-10",children:[s?C.jsx("textarea",{"data-cy":`shared-labels-row-${e}-input`,className:Ue("min-w-[80%] bg-grey-300 h-6 p-1 p rounded focus-within:outline-none",{"ring-1 ring-red-400":p,"focus-within:ring-1 focus-within:ring-primary-dark":!p}),value:r,onChange:v=>{o.setNewValue(v.target.value),h(null)},onKeyDown:v=>{v.key==="Enter"&&!v.shiftKey&&(v.preventDefault(),d())}}):C.jsx("span",{className:Ue("text-wrap",{"italic text-gray-400":n}),onDoubleClick:()=>{o.setOnEditValue(!0)},children:t}),p&&C.jsx("div",{className:"text-red-400 left-2",children:p==null?void 0:p.message})]}),C.jsx("td",{className:"flex items-center px-2 text-xs font-normal float-right h-10",children:s?C.jsxs(C.Fragment,{children:[C.jsx(fe.Tooltip,{label:"Confirm",container:it(),children:C.jsx("button",{"data-cy":`shared-labels-row-${e}-confirm-button`,className:"cursor-pointer rounded p-1 hover:bg-primary-hover focus:outline-none",onClick:d,children:C.jsx(Je.FdCheckCircle,{className:"w-4 h-4"})})}),C.jsx(fe.Tooltip,{label:"Cancel",container:it(),children:C.jsx("button",{"data-cy":`shared-labels-row-${e}-cancel-button`,className:"cursor-pointer rounded p-1 hover:bg-primary-hover focus:outline-none",onClick:m,children:C.jsx(Je.FdClose,{className:"w-4 h-4"})})})]}):C.jsxs(C.Fragment,{children:[C.jsx(fe.Tooltip,{label:"Edit",container:it(),children:C.jsx("button",{"data-cy":`shared-labels-row-${e}-edit-button`,className:"cursor-pointer rounded p-1 hover:bg-primary-hover focus:outline-none",onClick:()=>{o.setOnEditValue(!0)},children:C.jsx(Je.FdPen,{className:"w-4 h-4"})})}),C.jsx(fe.Tooltip,{label:"Delete",container:it(),children:C.jsx("button",{"data-cy":`shared-labels-row-${e}-delete-button`,className:"cursor-pointerrounded p-1 hover:bg-primary-hover focus:outline-none",onClick:b,children:C.jsx(Je.FdTrash,{className:"w-4 h-4"})})})]})})]})}),tg=({onCancel:e,onConfirm:t,error:n,setError:i})=>{const{state:r,actions:s}=fe.useStateObject({key:"",value:""}),o=()=>{t(r.key,r.value)},l=()=>{i(null),e()};return C.jsxs("tr",{"data-cy":"shared-labels-new-row",className:" text-gray-50 odd:bg-grey-700 even:bg-grey-600",children:[C.jsx("td",{className:"px-2 text-xs font-normal h-10 min-h-4",children:C.jsxs("div",{className:Ue("flex flex-col items-start h-full relative",{"pt-2":n,"justify-center":!n}),children:[C.jsx("input",{"data-cy":"shared-labels-new-row-key-input",className:Ue("min-w-[80%] bg-grey-300 h-6 p-1 p rounded focus-within:outline-none",{"ring-1 ring-red-400":n,"focus-within:ring-1 focus-within:ring-primary-dark":!n}),type:"text",value:r.key,onChange:u=>{i(null),s.setKey(u.target.value)},autoFocus:!0,onKeyUp:u=>{u.key==="Escape"&&(i(null),l())}}),n&&C.jsx("div",{className:"text-red-400 left-2",children:n==null?void 0:n.message})]})}),C.jsx("td",{className:"px-2 whitespace-nowrap text-xs font-normal h-10",children:C.jsx("div",{className:Ue("flex flex-col items-start h-full relative",{"pt-2":n,"justify-center":!n}),children:C.jsx("input",{"data-cy":"shared-labels-new-row-value-input",className:"min-w-[80%] bg-grey-300 h-6 p-1 p rounded focus-within:outline-none focus-within:ring-1 focus-within:ring-primary-dark",type:"text",value:r.value,onChange:u=>s.setValue(u.target.value),onKeyUp:u=>{u.key==="Enter"?o():u.key==="Escape"&&l()}})})}),C.jsxs("td",{className:"flex items-center px-2 text-xs font-normal float-right h-10",children:[C.jsx(fe.Tooltip,{label:"Confirm",container:it(),children:C.jsx("button",{"data-cy":"shared-labels-new-row-confirm-button",className:"cursor-pointer rounded p-1 hover:bg-primary-hover focus:outline-none",onClick:o,children:C.jsx(Je.FdCheckCircle,{className:"w-4 h-4"})})}),C.jsx(fe.Tooltip,{label:"Cancel",container:it(),children:C.jsx("button",{"data-cy":"shared-labels-new-row-cancel-button",className:"cursor-pointer rounded p-1 hover:bg-primary-hover focus:outline-none",onClick:l,children:C.jsx(Je.FdClose,{className:"w-4 h-4"})})})]})]})},ng=()=>{const{languageKeys:e,isPrimary:t,selectedLanguage:n,userLanguages:{supported:i},addNewKey:r,setUserLangSettings:s}=on(),{state:o,actions:l}=fe.useStateObject({search:"",switch:t,keys:[],addNewKey:!1}),[u,f]=V.useState(null),p=V.useRef(null),h=Id(e),d=!!n&&!h,m=!!n,b=V.useMemo(()=>{if(!o.search)return e;const M=new RegExp(oe.escapeRegExp(o.search),"gi");return e.filter(F=>F.key.match(M))},[e,o.search]),v=b.length===0,S=_d({count:b.length,getScrollElement:()=>p.current,estimateSize:()=>40,overscan:5}),E=S.getVirtualItems(),k=E.length>0?E[0].start:0,I=E.length>0?S.getTotalSize()-E[E.length-1].end:0,N=()=>{if(n){const{isocode:M}=n;s({primary:M,supported:i})}},y=()=>{l.setAddNewKey(!0)},g=(M,F)=>{const R=b.find(j=>j.key===M);if(n){const{isocode:j}=n;if(M){if(!/^[\w\u3040-\u30FF\u3400-\u4DBF\u4E00-\u9FAF-]+$/i.test(M)||!/^[a-zA-Z\u3040-\u30FF\u3400-\u4DBF\u4E00-\u9FAF]/.test(M)){f({message:"Invalid key name"});return}else if(R){f({message:"Key name already exists"});return}r(M,[{lang:j,value:F}],F)}l.setAddNewKey(!1)}},A=()=>{l.setAddNewKey(!1)};return V.useEffect(()=>{l.setSwitch(t)},[t]),C.jsx("div",{"data-cy":"localization-keys-editor",className:Ue("flex w-full bg-grey-800 border-l border-black",{"justify-center items-center":!1}),children:C.jsxs("div",{className:"flex flex-col w-full py-3 px-3 min-h-0",children:[C.jsxs("div",{className:"flex flex-col space-y-3 justify-between w-full",children:[C.jsxs("div",{className:Ue("flex items-center w-full justify-between",{hidden:!m}),children:[C.jsxs("div",{className:"flex space-x-2 items-center justify-center",children:[C.jsx("span",{className:"text-[12px] text-gray-50",children:"Shared Labels"}),C.jsx(fe.Tip,{tipKey:"editors:i18n:label",alwaysOn:!0})]}),C.jsxs("div",{className:"flex space-x-2 justify-center items-center",children:[C.jsx(fe.ControlledSwitch,{onChange:M=>{t||(l.setSwitch(M),N())},value:o.switch,className:"focus:outline-none"}),C.jsx("span",{className:"text-xs text-gray-50",children:"Primary Locale"})]})]}),C.jsx("div",{className:Ue("w-60",{invisible:!d}),children:C.jsx(fe.SearchInput,{containerClassName:"text-grey-50",value:o.search,onChange:M=>l.setSearch(M),delay:300})})]}),h?C.jsx(Nd,{}):C.jsxs("div",{ref:p,className:"w-full flex-1 min-h-0 overflow-y-auto",children:[C.jsxs("table",{"data-cy":"shared-labels-table",className:"w-full text-sm text-left rtl:text-right text-grey-50 table-fixed",children:[C.jsx("thead",{className:"text-xs text-grey-50",children:C.jsxs("tr",{children:[C.jsx("th",{scope:"col",className:"px-2 py-3 text-xs font-normal",children:"Key"}),C.jsx("th",{scope:"col",className:"px-2 py-3 text-xs font-normal",children:"Value"}),C.jsx("th",{scope:"col",className:"px-2 py-3 text-xs font-normal float-right",children:C.jsx(fe.Tooltip,{label:"Add a key",container:it(),children:C.jsx("button",{"data-cy":"localization-editor-add-key-button",className:"cursor-pointer rounded p-1 hover:bg-primary-hover focus:outline-none",onClick:y,children:C.jsx(Je.FdPlus,{className:"w-4 h-4"})})})})]})}),C.jsxs("tbody",{className:"border-t-[1px] border-grey-50",children:[k>0&&C.jsx("tr",{children:C.jsx("td",{colSpan:3,style:{height:k}})}),E.map(M=>{const F=b[M.index];return C.jsx(eg,{index:M.index,keyName:F.key,value:F.value,isDefault:F.isDefault},`${n==null?void 0:n.isocode}/${M.index}`)}),I>0&&C.jsx("tr",{children:C.jsx("td",{colSpan:3,style:{height:I}})}),o.addNewKey&&C.jsx(tg,{onConfirm:g,onCancel:A,setError:f,error:u}),v&&C.jsx("span",{})]})]}),v&&C.jsxs("div",{className:"flex flex-col justify-center items-center mt-16 ml-2 text-xs space-y-3 text-green-50",children:[C.jsx(Je.FdInfoBold,{className:"h-9 w-9 text-grey-200"}),C.jsx("div",{className:"text-xs text-grey-200",children:"This key doesn't exist."})]})]})]})})},dn=(e,t)=>t.find(n=>n.isocode===e);function ig(){return{enter:{mdxFlowExpression:ag,mdxTextExpression:sg},exit:{mdxFlowExpression:Go,mdxFlowExpressionChunk:Jo,mdxTextExpression:Go,mdxTextExpressionChunk:Jo}}}function rg(){return{handlers:{mdxFlowExpression:Yo,mdxTextExpression:Yo},unsafe:[{character:"{",inConstruct:["phrasing"]},{atBreak:!0,character:"{"}]}}function ag(e){this.enter({type:"mdxFlowExpression",value:""},e),this.buffer()}function sg(e){this.enter({type:"mdxTextExpression",value:""},e),this.buffer()}function Go(e){const t=this.resume(),n=e.estree,i=this.stack[this.stack.length-1];i.type==="mdxFlowExpression"||i.type,this.exit(e),i.value=t,n&&(i.data={estree:n})}function Jo(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}function Yo(e,t,n){const i=e.value||"";return"{"+n.indentLines(i,function(s,o,l){return(o===0||l?"":" ")+s})+"}"}function ur(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let i=0,r=n.indexOf(t);for(;r!==-1;)i++,r=n.indexOf(t,r+t.length);return i}const og=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],Qo={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"};function gc(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=48&&t<=57}function lg(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function ug(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}function Zo(e){return ug(e)||gc(e)}const Xo=document.createElement("i");function mi(e){const t="&"+e+";";Xo.innerHTML=t;const n=Xo.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}const cg=["","Named character references must be terminated by a semicolon","Numeric character references must be terminated by a semicolon","Named character references cannot be empty","Numeric character references cannot be empty","Named character references must be known","Numeric character references cannot be disallowed","Numeric character references cannot be outside the permissible Unicode range"];function hg(e,t){const n=t||{},i=typeof n.additional=="string"?n.additional.charCodeAt(0):n.additional,r=[];let s=0,o=-1,l="",u,f;n.position&&("start"in n.position||"indent"in n.position?(f=n.position.indent,u=n.position.start):u=n.position);let p=(u?u.line:0)||1,h=(u?u.column:0)||1,d=b(),m;for(s--;++s<=e.length;)if(m===10&&(h=(f?f[o]:0)||1),m=e.charCodeAt(s),m===38){const E=e.charCodeAt(s+1);if(E===9||E===10||E===12||E===32||E===38||E===60||Number.isNaN(E)||i&&E===i){l+=String.fromCharCode(m),h++;continue}const k=s+1;let I=k,N=k,y;if(E===35){N=++I;const D=e.charCodeAt(N);D===88||D===120?(y="hexadecimal",N=++I):y="decimal"}else y="named";let g="",A="",M="";const F=y==="named"?Zo:y==="decimal"?gc:lg;for(N--;++N<=e.length;){const D=e.charCodeAt(N);if(!F(D))break;M+=String.fromCharCode(D),y==="named"&&og.includes(M)&&(g=M,A=mi(M))}let R=e.charCodeAt(N)===59;if(R){N++;const D=y==="named"?mi(M):!1;D&&(g=M,A=D)}let j=1+N-k,B="";if(!(!R&&n.nonTerminated===!1))if(!M)y!=="named"&&v(4,j);else if(y==="named"){if(R&&!A)v(5,1);else if(g!==M&&(N=I+g.length,j=1+N-I,R=!1),!R){const D=g?1:3;if(n.attribute){const se=e.charCodeAt(N);se===61?(v(D,j),A=""):Zo(se)?A="":v(D,j)}else v(D,j)}B=A}else{R||v(2,j);let D=Number.parseInt(M,y==="hexadecimal"?16:10);if(fg(D))v(7,j),B="�";else if(D in Qo)v(6,j),B=Qo[D];else{let se="";pg(D)&&v(6,j),D>65535&&(D-=65536,se+=String.fromCharCode(D>>>10|55296),D=56320|D&1023),B=se+String.fromCharCode(D)}}if(B){S(),d=b(),s=N-1,h+=N-k+1,r.push(B);const D=b();D.offset++,n.reference&&n.reference.call(n.referenceContext||void 0,B,{start:d,end:D},e.slice(k-1,N)),d=D}else M=e.slice(k-1,N),l+=M,h+=M.length,s=N-1}else m===10&&(p++,o++,h=0),Number.isNaN(m)?S():(l+=String.fromCharCode(m),h++);return r.join("");function b(){return{line:p,column:h,offset:s+((u?u.offset:0)||0)}}function v(E,k){let I;n.warning&&(I=b(),I.column+=k,I.offset+=k,n.warning.call(n.warningContext||void 0,cg[E],I,E))}function S(){l&&(r.push(l),n.text&&n.text.call(n.textContext||void 0,l,{start:d,end:b()}),l="")}}function fg(e){return e>=55296&&e<=57343||e>1114111}function pg(e){return e>=1&&e<=8||e===11||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534}const dg=/["&'<>`]/g,gg=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,mg=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,xg=/[|\\{}()[\]^$+*?.]/g,el=new WeakMap;function vg(e,t){if(e=e.replace(t.subset?bg(t.subset):dg,i),t.subset||t.escapeOnly)return e;return e.replace(gg,n).replace(mg,i);function n(r,s,o){return t.format((r.charCodeAt(0)-55296)*1024+r.charCodeAt(1)-56320+65536,o.charCodeAt(s+2),t)}function i(r,s,o){return t.format(r.charCodeAt(0),o.charCodeAt(s+1),t)}}function bg(e){let t=el.get(e);return t||(t=yg(e),el.set(e,t)),t}function yg(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(xg,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}function wg(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Eg(e,t){return vg(e,Object.assign({format:wg},t))}function en(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?tl(e.position):"start"in e||"end"in e?tl(e):"line"in e||"column"in e?za(e):""}function za(e){return nl(e&&e.line)+":"+nl(e&&e.column)}function tl(e){return za(e&&e.start)+"-"+za(e&&e.end)}function nl(e){return e&&typeof e=="number"?e:1}class qe extends Error{constructor(t,n,i){super(),typeof n=="string"&&(i=n,n=void 0);let r="",s={},o=!1;if(n&&("line"in n&&"column"in n?s={place:n}:"start"in n&&"end"in n?s={place:n}:"type"in n?s={ancestors:[n],place:n.position}:s={...n}),typeof t=="string"?r=t:!s.cause&&t&&(o=!0,r=t.message,s.cause=t),!s.ruleId&&!s.source&&typeof i=="string"){const u=i.indexOf(":");u===-1?s.ruleId=i:(s.source=i.slice(0,u),s.ruleId=i.slice(u+1))}if(!s.place&&s.ancestors&&s.ancestors){const u=s.ancestors[s.ancestors.length-1];u&&(s.place=u.position)}const l=s.place&&"start"in s.place?s.place.start:s.place;this.ancestors=s.ancestors||void 0,this.cause=s.cause||void 0,this.column=l?l.column:void 0,this.fatal=void 0,this.file="",this.message=r,this.line=l?l.line:void 0,this.name=en(s.place)||"1:1",this.place=s.place||void 0,this.reason=this.message,this.ruleId=s.ruleId||void 0,this.source=s.source||void 0,this.stack=o&&s.cause&&typeof s.cause.stack=="string"?s.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}qe.prototype.file="";qe.prototype.name="";qe.prototype.reason="";qe.prototype.message="";qe.prototype.stack="";qe.prototype.column=void 0;qe.prototype.line=void 0;qe.prototype.ancestors=void 0;qe.prototype.cause=void 0;qe.prototype.fatal=void 0;qe.prototype.place=void 0;qe.prototype.ruleId=void 0;qe.prototype.source=void 0;const mc=" ";function Sg(){return{canContainEols:["mdxJsxTextElement"],enter:{mdxJsxFlowTag:i,mdxJsxFlowTagClosingMarker:r,mdxJsxFlowTagAttribute:h,mdxJsxFlowTagExpressionAttribute:d,mdxJsxFlowTagAttributeValueLiteral:e,mdxJsxFlowTagAttributeValueExpression:e,mdxJsxFlowTagSelfClosingMarker:o,mdxJsxTextTag:i,mdxJsxTextTagClosingMarker:r,mdxJsxTextTagAttribute:h,mdxJsxTextTagExpressionAttribute:d,mdxJsxTextTagAttributeValueLiteral:e,mdxJsxTextTagAttributeValueExpression:e,mdxJsxTextTagSelfClosingMarker:o},exit:{mdxJsxFlowTagClosingMarker:l,mdxJsxFlowTagNamePrimary:u,mdxJsxFlowTagNameMember:f,mdxJsxFlowTagNameLocal:p,mdxJsxFlowTagExpressionAttribute:m,mdxJsxFlowTagExpressionAttributeValue:n,mdxJsxFlowTagAttributeNamePrimary:b,mdxJsxFlowTagAttributeNameLocal:v,mdxJsxFlowTagAttributeValueLiteral:S,mdxJsxFlowTagAttributeValueLiteralValue:n,mdxJsxFlowTagAttributeValueExpression:E,mdxJsxFlowTagAttributeValueExpressionValue:n,mdxJsxFlowTagSelfClosingMarker:k,mdxJsxFlowTag:I,mdxJsxTextTagClosingMarker:l,mdxJsxTextTagNamePrimary:u,mdxJsxTextTagNameMember:f,mdxJsxTextTagNameLocal:p,mdxJsxTextTagExpressionAttribute:m,mdxJsxTextTagExpressionAttributeValue:n,mdxJsxTextTagAttributeNamePrimary:b,mdxJsxTextTagAttributeNameLocal:v,mdxJsxTextTagAttributeValueLiteral:S,mdxJsxTextTagAttributeValueLiteralValue:n,mdxJsxTextTagAttributeValueExpression:E,mdxJsxTextTagAttributeValueExpressionValue:n,mdxJsxTextTagSelfClosingMarker:k,mdxJsxTextTag:I}};function e(){this.buffer()}function t(A){return{line:A.line,column:A.column,offset:A.offset}}function n(A){this.config.enter.data.call(this,A),this.config.exit.data.call(this,A)}function i(A){const M={name:void 0,attributes:[],close:!1,selfClosing:!1,start:A.start,end:A.end};this.data.mdxJsxTagStack||(this.data.mdxJsxTagStack=[]),this.data.mdxJsxTag=M,this.buffer()}function r(A){if(this.data.mdxJsxTagStack.length===0)throw new qe("Unexpected closing slash `/` in tag, expected an open tag first",{start:A.start,end:A.end},"mdast-util-mdx-jsx:unexpected-closing-slash")}function s(A){if(this.data.mdxJsxTag.close)throw new qe("Unexpected attribute in closing tag, expected the end of the tag",{start:A.start,end:A.end},"mdast-util-mdx-jsx:unexpected-attribute")}function o(A){if(this.data.mdxJsxTag.close)throw new qe("Unexpected self-closing slash `/` in closing tag, expected the end of the tag",{start:A.start,end:A.end},"mdast-util-mdx-jsx:unexpected-self-closing-slash")}function l(){const A=this.data.mdxJsxTag;A.close=!0}function u(A){const M=this.data.mdxJsxTag;M.name=this.sliceSerialize(A)}function f(A){const M=this.data.mdxJsxTag;M.name+="."+this.sliceSerialize(A)}function p(A){const M=this.data.mdxJsxTag;M.name+=":"+this.sliceSerialize(A)}function h(A){const M=this.data.mdxJsxTag;s.call(this,A),M.attributes.push({type:"mdxJsxAttribute",name:"",value:null,position:{start:t(A.start),end:void 0}})}function d(A){const M=this.data.mdxJsxTag;s.call(this,A),M.attributes.push({type:"mdxJsxExpressionAttribute",value:"",position:{start:t(A.start),end:void 0}}),this.buffer()}function m(A){const M=this.data.mdxJsxTag,F=M.attributes[M.attributes.length-1];F.type;const R=A.estree;F.value=this.resume(),F.position,F.position.end=t(A.end),R&&(F.data={estree:R})}function b(A){const M=this.data.mdxJsxTag,F=M.attributes[M.attributes.length-1];F.type,F.name=this.sliceSerialize(A),F.position,F.position.end=t(A.end)}function v(A){const M=this.data.mdxJsxTag,F=M.attributes[M.attributes.length-1];F.type,F.name+=":"+this.sliceSerialize(A),F.position,F.position.end=t(A.end)}function S(A){const M=this.data.mdxJsxTag,F=M.attributes[M.attributes.length-1];F.value=hg(this.resume(),{nonTerminated:!1}),F.position,F.position.end=t(A.end)}function E(A){const M=this.data.mdxJsxTag,F=M.attributes[M.attributes.length-1];F.type;const R={type:"mdxJsxAttributeValueExpression",value:this.resume()},j=A.estree;j&&(R.data={estree:j}),F.value=R,F.position,F.position.end=t(A.end)}function k(){const A=this.data.mdxJsxTag;A.selfClosing=!0}function I(A){const M=this.data.mdxJsxTag,F=this.data.mdxJsxTagStack,R=F[F.length-1];if(M.close&&R.name!==M.name)throw new qe("Unexpected closing tag `"+g(M)+"`, expected corresponding closing tag for `"+g(R)+"` ("+en(R)+")",{start:A.start,end:A.end},"mdast-util-mdx-jsx:end-tag-mismatch");this.resume(),M.close?F.pop():this.enter({type:A.type==="mdxJsxTextTag"?"mdxJsxTextElement":"mdxJsxFlowElement",name:M.name||null,attributes:M.attributes,children:[]},A,N),M.selfClosing||M.close?this.exit(A,y):F.push(M)}function N(A,M){const F=this.data.mdxJsxTagStack,R=F[F.length-1],j=A?" before the end of `"+A.type+"`":"",B=A?{start:A.start,end:A.end}:void 0;throw new qe("Expected a closing tag for `"+g(R)+"` ("+en({start:M.start,end:M.end})+")"+j,B,"mdast-util-mdx-jsx:end-tag-mismatch")}function y(A,M){const F=this.data.mdxJsxTag;throw new qe("Expected the closing tag `"+g(F)+"` either after the end of `"+M.type+"` ("+en(M.end)+") or another opening tag after the start of `"+M.type+"` ("+en(M.start)+")",{start:A.start,end:A.end},"mdast-util-mdx-jsx:end-tag-mismatch")}function g(A){return"<"+(A.close?"/":"")+(A.name||"")+">"}}function kg(e){const t=e||{},n=t.quote||'"',i=t.quoteSmart||!1,r=t.tightSelfClosing||!1,s=t.printWidth||Number.POSITIVE_INFINITY,o=n==='"'?"'":'"';if(n!=='"'&&n!=="'")throw new Error("Cannot serialize attribute values with `"+n+"` for `options.quote`, expected `\"`, or `'`");return l.peek=_g,{handlers:{mdxJsxFlowElement:l,mdxJsxTextElement:l},unsafe:[{character:"<",inConstruct:["phrasing"]},{atBreak:!0,character:"<"}],fences:!0,resourceLink:!0};function l(u,f,p,h){const d=u.type==="mdxJsxFlowElement",m=u.name?!u.children||u.children.length===0:!1,b=xc(p),v=vc(b),S=p.createTracker(h),E=p.createTracker(h),k=[],I=(d?v:"")+"<"+(u.name||""),N=p.enter(u.type);if(S.move(I),E.move(I),u.attributes&&u.attributes.length>0){if(!u.name)throw new Error("Cannot serialize fragment w/ attributes");let F=-1;for(;++F<u.attributes.length;){const R=u.attributes[F];let j;if(R.type==="mdxJsxExpressionAttribute")j="{"+(R.value||"")+"}";else{if(!R.name)throw new Error("Cannot serialize attribute w/o name");const B=R.value,D=R.name;let se="";if(B!=null)if(typeof B=="object")se="{"+(B.value||"")+"}";else{const ue=i&&ur(B,n)>ur(B,o)?o:n;se=ue+Eg(B,{subset:[ue]})+ue}j=D+(se?"=":"")+se}k.push(j)}}let y=!1;const g=k.join(" ");d&&(/\r?\n|\r/.test(g)||S.current().now.column+g.length+(m?r?2:3:1)>s)&&(y=!0);let A=S,M=I;if(y){A=E;let F=-1;for(;++F<k.length;)k[F]=v+mc+k[F];M+=A.move(`
|
|
59
7
|
`+k.join(`
|
|
60
8
|
`)+`
|
|
61
|
-
`+
|
|
62
|
-
`),
|
|
63
|
-
`))),m||(
|
|
9
|
+
`+v)}else g&&(M+=A.move(" "+g));return m&&(M+=A.move((r||y?"":" ")+"/")),M+=A.move(">"),u.children&&u.children.length>0&&(u.type==="mdxJsxTextElement"?M+=A.move(p.containerPhrasing(u,{...A.current(),before:">",after:"<"})):(A.shift(2),M+=A.move(`
|
|
10
|
+
`),M+=A.move(Cg(u,p,A.current())),M+=A.move(`
|
|
11
|
+
`))),m||(M+=A.move((d?v:"")+"</"+(u.name||"")+">")),N(),M}}function Cg(e,t,n){const i=t.indexStack,r=e.children,s=t.createTracker(n),o=vc(xc(t)),l=[];let u=-1;for(i.push(-1);++u<r.length;){const f=r[u];i[i.length-1]=u;const p={before:`
|
|
64
12
|
`,after:`
|
|
65
|
-
`,...
|
|
13
|
+
`,...s.current()},h=t.handle(f,e,t,p),d=f.type==="mdxJsxFlowElement"?h:t.indentLines(h,function(m,b,v){return(v?"":o)+m});l.push(s.move(d)),f.type!=="list"&&(t.bulletLastUsed=void 0),u<r.length-1&&l.push(s.move(`
|
|
66
14
|
|
|
67
|
-
`))}return i.pop(),l.join("")}function df(e){let t=0,n=e.stack.length;for(;--n>-1;){const i=e.stack[n];if(i==="blockquote"||i==="listItem")break;i==="mdxJsxFlowElement"&&t++}return t}function pf(e){return hf.repeat(e)}function Aw(){return"<"}function Nw(){return{enter:{mdxjsEsm:Ow},exit:{mdxjsEsm:Pw,mdxjsEsmData:Rw}}}function Tw(){return{handlers:{mdxjsEsm:Mw}}}function Ow(e){this.enter({type:"mdxjsEsm",value:""},e),this.buffer()}function Pw(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,this.exit(e);const i=e.estree;n.value=t,i&&(n.data={estree:i})}function Rw(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}function Mw(e){return e.value||""}function Lw(){return[aw(),Cw(),Nw()]}function Dw(e){return{extensions:[sw(),Iw(e),Tw()]}}var Fw=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,80,3,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,343,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,726,6,110,6,6,9,4759,9,787719,239],ff=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,2,60,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,42,9,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,496,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],jw="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・",gf="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ꟑꟑꟓꟕ-ꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",ws={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},ks="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",zw={5:ks,"5module":ks+" export import",6:ks+" const class extends export import super"},Vw=/^in(stanceof)?$/,Bw=new RegExp("["+gf+"]"),Hw=new RegExp("["+gf+jw+"]");function po(e,t){for(var n=65536,i=0;i<t.length;i+=2){if(n+=t[i],n>e)return!1;if(n+=t[i+1],n>=e)return!0}return!1}function kn(e,t){return e<65?e===36:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&Bw.test(String.fromCharCode(e)):t===!1?!1:po(e,ff)}function Un(e,t){return e<48?e===36:e<58?!0:e<65?!1:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&Hw.test(String.fromCharCode(e)):t===!1?!1:po(e,ff)||po(e,Fw)}var Ye=function(t,n){n===void 0&&(n={}),this.label=t,this.keyword=n.keyword,this.beforeExpr=!!n.beforeExpr,this.startsExpr=!!n.startsExpr,this.isLoop=!!n.isLoop,this.isAssign=!!n.isAssign,this.prefix=!!n.prefix,this.postfix=!!n.postfix,this.binop=n.binop||null,this.updateContext=null};function qt(e,t){return new Ye(e,{beforeExpr:!0,binop:t})}var Gt={beforeExpr:!0},Mt={startsExpr:!0},Tl={};function qe(e,t){return t===void 0&&(t={}),t.keyword=e,Tl[e]=new Ye(e,t)}var N={num:new Ye("num",Mt),regexp:new Ye("regexp",Mt),string:new Ye("string",Mt),name:new Ye("name",Mt),privateId:new Ye("privateId",Mt),eof:new Ye("eof"),bracketL:new Ye("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new Ye("]"),braceL:new Ye("{",{beforeExpr:!0,startsExpr:!0}),braceR:new Ye("}"),parenL:new Ye("(",{beforeExpr:!0,startsExpr:!0}),parenR:new Ye(")"),comma:new Ye(",",Gt),semi:new Ye(";",Gt),colon:new Ye(":",Gt),dot:new Ye("."),question:new Ye("?",Gt),questionDot:new Ye("?."),arrow:new Ye("=>",Gt),template:new Ye("template"),invalidTemplate:new Ye("invalidTemplate"),ellipsis:new Ye("...",Gt),backQuote:new Ye("`",Mt),dollarBraceL:new Ye("${",{beforeExpr:!0,startsExpr:!0}),eq:new Ye("=",{beforeExpr:!0,isAssign:!0}),assign:new Ye("_=",{beforeExpr:!0,isAssign:!0}),incDec:new Ye("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new Ye("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:qt("||",1),logicalAND:qt("&&",2),bitwiseOR:qt("|",3),bitwiseXOR:qt("^",4),bitwiseAND:qt("&",5),equality:qt("==/!=/===/!==",6),relational:qt("</>/<=/>=",7),bitShift:qt("<</>>/>>>",8),plusMin:new Ye("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:qt("%",10),star:qt("*",10),slash:qt("/",10),starstar:new Ye("**",{beforeExpr:!0}),coalesce:qt("??",1),_break:qe("break"),_case:qe("case",Gt),_catch:qe("catch"),_continue:qe("continue"),_debugger:qe("debugger"),_default:qe("default",Gt),_do:qe("do",{isLoop:!0,beforeExpr:!0}),_else:qe("else",Gt),_finally:qe("finally"),_for:qe("for",{isLoop:!0}),_function:qe("function",Mt),_if:qe("if"),_return:qe("return",Gt),_switch:qe("switch"),_throw:qe("throw",Gt),_try:qe("try"),_var:qe("var"),_const:qe("const"),_while:qe("while",{isLoop:!0}),_with:qe("with"),_new:qe("new",{beforeExpr:!0,startsExpr:!0}),_this:qe("this",Mt),_super:qe("super",Mt),_class:qe("class",Mt),_extends:qe("extends",Gt),_export:qe("export"),_import:qe("import",Mt),_null:qe("null",Mt),_true:qe("true",Mt),_false:qe("false",Mt),_in:qe("in",{beforeExpr:!0,binop:7}),_instanceof:qe("instanceof",{beforeExpr:!0,binop:7}),_typeof:qe("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:qe("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:qe("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},zt=/\r\n?|\n|\u2028|\u2029/,Kw=new RegExp(zt.source,"g");function Vi(e){return e===10||e===13||e===8232||e===8233}function mf(e,t,n){n===void 0&&(n=e.length);for(var i=t;i<n;i++){var r=e.charCodeAt(i);if(Vi(r))return i<n-1&&r===13&&e.charCodeAt(i+1)===10?i+2:i+1}return-1}var vf=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,St=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,xf=Object.prototype,Ww=xf.hasOwnProperty,Uw=xf.toString,Bi=Object.hasOwn||(function(e,t){return Ww.call(e,t)}),Pc=Array.isArray||(function(e){return Uw.call(e)==="[object Array]"}),Rc=Object.create(null);function Kn(e){return Rc[e]||(Rc[e]=new RegExp("^(?:"+e.replace(/ /g,"|")+")$"))}function Pn(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10)+55296,(e&1023)+56320))}var qw=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,cr=function(t,n){this.line=t,this.column=n};cr.prototype.offset=function(t){return new cr(this.line,this.column+t)};var Wa=function(t,n,i){this.start=n,this.end=i,t.sourceFile!==null&&(this.source=t.sourceFile)};function bf(e,t){for(var n=1,i=0;;){var r=mf(e,i,t);if(r<0)return new cr(n,t-i);++n,i=r}}var fo={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},Mc=!1;function Gw(e){var t={};for(var n in fo)t[n]=e&&Bi(e,n)?e[n]:fo[n];if(t.ecmaVersion==="latest"?t.ecmaVersion=1e8:t.ecmaVersion==null?(!Mc&&typeof console=="object"&&console.warn&&(Mc=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
|
|
68
|
-
Defaulting to 2020, but this will stop working in the future.`)),t.ecmaVersion=11):t.ecmaVersion>=2015&&(t.ecmaVersion-=2009),t.allowReserved==null&&(t.allowReserved=t.ecmaVersion<5),(!e||e.allowHashBang==null)&&(t.allowHashBang=t.ecmaVersion>=14),
|
|
69
|
-
`,i-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(zt).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=N.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=t.sourceType==="module",this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),this.pos===0&&t.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(hr),this.regexpState=null,this.privateNameStack=[]},Sn={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},inClassStaticBlock:{configurable:!0}};vt.prototype.parse=function(){var t=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(t)};Sn.inFunction.get=function(){return(this.currentVarScope().flags&Hi)>0};Sn.inGenerator.get=function(){return(this.currentVarScope().flags&yf)>0};Sn.inAsync.get=function(){return(this.currentVarScope().flags&Ol)>0};Sn.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e],n=t.flags;if(n&(ci|xr))return!1;if(n&Hi)return(n&Ol)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction};Sn.allowSuper.get=function(){var e=this.currentThisScope(),t=e.flags;return(t&Ua)>0||this.options.allowSuperOutsideMethod};Sn.allowDirectSuper.get=function(){return(this.currentThisScope().flags&kf)>0};Sn.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())};Sn.allowNewDotTarget.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e],n=t.flags;if(n&(ci|xr)||n&Hi&&!(n&Pl))return!0}return!1};Sn.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&ci)>0};vt.extend=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];for(var i=this,r=0;r<t.length;r++)i=t[r](i);return i};vt.parse=function(t,n){return new this(n,t).parse()};vt.parseExpressionAt=function(t,n,i){var r=new this(i,t,n);return r.nextToken(),r.parseExpression()};vt.tokenizer=function(t,n){return new this(n,t)};Object.defineProperties(vt.prototype,Sn);var Ot=vt.prototype,Jw=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;Ot.strictDirective=function(e){if(this.options.ecmaVersion<5)return!1;for(;;){St.lastIndex=e,e+=St.exec(this.input)[0].length;var t=Jw.exec(this.input.slice(e));if(!t)return!1;if((t[1]||t[2])==="use strict"){St.lastIndex=e+t[0].length;var n=St.exec(this.input),i=n.index+n[0].length,r=this.input.charAt(i);return r===";"||r==="}"||zt.test(n[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(r)||r==="!"&&this.input.charAt(i+1)==="=")}e+=t[0].length,St.lastIndex=e,e+=St.exec(this.input)[0].length,this.input[e]===";"&&e++}};Ot.eat=function(e){return this.type===e?(this.next(),!0):!1};Ot.isContextual=function(e){return this.type===N.name&&this.value===e&&!this.containsEsc};Ot.eatContextual=function(e){return this.isContextual(e)?(this.next(),!0):!1};Ot.expectContextual=function(e){this.eatContextual(e)||this.unexpected()};Ot.canInsertSemicolon=function(){return this.type===N.eof||this.type===N.braceR||zt.test(this.input.slice(this.lastTokEnd,this.start))};Ot.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0};Ot.semicolon=function(){!this.eat(N.semi)&&!this.insertSemicolon()&&this.unexpected()};Ot.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0};Ot.expect=function(e){this.eat(e)||this.unexpected()};Ot.unexpected=function(e){this.raise(e??this.start,"Unexpected token")};var Ga=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};Ot.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var n=t?e.parenthesizedAssign:e.parenthesizedBind;n>-1&&this.raiseRecoverable(n,t?"Assigning to rvalue":"Parenthesized pattern")}};Ot.checkExpressionErrors=function(e,t){if(!e)return!1;var n=e.shorthandAssign,i=e.doubleProto;if(!t)return n>=0||i>=0;n>=0&&this.raise(n,"Shorthand property assignments are valid only in destructuring patterns"),i>=0&&this.raiseRecoverable(i,"Redefinition of __proto__ property")};Ot.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")};Ot.isSimpleAssignTarget=function(e){return e.type==="ParenthesizedExpression"?this.isSimpleAssignTarget(e.expression):e.type==="Identifier"||e.type==="MemberExpression"};var Te=vt.prototype;Te.parseTopLevel=function(e){var t=Object.create(null);for(e.body||(e.body=[]);this.type!==N.eof;){var n=this.parseStatement(null,!0,t);e.body.push(n)}if(this.inModule)for(var i=0,r=Object.keys(this.undefinedExports);i<r.length;i+=1){var a=r[i];this.raiseRecoverable(this.undefinedExports[a].start,"Export '"+a+"' is not defined")}return this.adaptDirectivePrologue(e.body),this.next(),e.sourceType=this.options.sourceType,this.finishNode(e,"Program")};var Ll={kind:"loop"},Yw={kind:"switch"};Te.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;St.lastIndex=this.pos;var t=St.exec(this.input),n=this.pos+t[0].length,i=this.input.charCodeAt(n);if(i===91||i===92)return!0;if(e)return!1;if(i===123||i>55295&&i<56320)return!0;if(kn(i,!0)){for(var r=n+1;Un(i=this.input.charCodeAt(r),!0);)++r;if(i===92||i>55295&&i<56320)return!0;var a=this.input.slice(n,r);if(!Vw.test(a))return!0}return!1};Te.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;St.lastIndex=this.pos;var e=St.exec(this.input),t=this.pos+e[0].length,n;return!zt.test(this.input.slice(this.pos,t))&&this.input.slice(t,t+8)==="function"&&(t+8===this.input.length||!(Un(n=this.input.charCodeAt(t+8))||n>55295&&n<56320))};Te.isUsingKeyword=function(e,t){if(this.options.ecmaVersion<17||!this.isContextual(e?"await":"using"))return!1;St.lastIndex=this.pos;var n=St.exec(this.input),i=this.pos+n[0].length;if(zt.test(this.input.slice(this.pos,i)))return!1;if(e){var r=i+5,a;if(this.input.slice(i,r)!=="using"||r===this.input.length||Un(a=this.input.charCodeAt(r))||a>55295&&a<56320)return!1;St.lastIndex=r;var s=St.exec(this.input);if(s&&zt.test(this.input.slice(r,r+s[0].length)))return!1}if(t){var l=i+2,u;if(this.input.slice(i,l)==="of"&&(l===this.input.length||!Un(u=this.input.charCodeAt(l))&&!(u>55295&&u<56320)))return!1}var c=this.input.charCodeAt(i);return kn(c,!0)||c===92};Te.isAwaitUsing=function(e){return this.isUsingKeyword(!0,e)};Te.isUsing=function(e){return this.isUsingKeyword(!1,e)};Te.parseStatement=function(e,t,n){var i=this.type,r=this.startNode(),a;switch(this.isLet(e)&&(i=N._var,a="let"),i){case N._break:case N._continue:return this.parseBreakContinueStatement(r,i.keyword);case N._debugger:return this.parseDebuggerStatement(r);case N._do:return this.parseDoStatement(r);case N._for:return this.parseForStatement(r);case N._function:return e&&(this.strict||e!=="if"&&e!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(r,!1,!e);case N._class:return e&&this.unexpected(),this.parseClass(r,!0);case N._if:return this.parseIfStatement(r);case N._return:return this.parseReturnStatement(r);case N._switch:return this.parseSwitchStatement(r);case N._throw:return this.parseThrowStatement(r);case N._try:return this.parseTryStatement(r);case N._const:case N._var:return a=a||this.value,e&&a!=="var"&&this.unexpected(),this.parseVarStatement(r,a);case N._while:return this.parseWhileStatement(r);case N._with:return this.parseWithStatement(r);case N.braceL:return this.parseBlock(!0,r);case N.semi:return this.parseEmptyStatement(r);case N._export:case N._import:if(this.options.ecmaVersion>10&&i===N._import){St.lastIndex=this.pos;var s=St.exec(this.input),l=this.pos+s[0].length,u=this.input.charCodeAt(l);if(u===40||u===46)return this.parseExpressionStatement(r,this.parseExpression())}return this.options.allowImportExportEverywhere||(t||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),i===N._import?this.parseImport(r):this.parseExport(r,n);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(r,!0,!e);var c=this.isAwaitUsing(!1)?"await using":this.isUsing(!1)?"using":null;if(c)return t&&this.options.sourceType==="script"&&this.raise(this.start,"Using declaration cannot appear in the top level when source type is `script`"),c==="await using"&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.next(),this.parseVar(r,!1,c),this.semicolon(),this.finishNode(r,"VariableDeclaration");var d=this.value,p=this.parseExpression();return i===N.name&&p.type==="Identifier"&&this.eat(N.colon)?this.parseLabeledStatement(r,d,p,e):this.parseExpressionStatement(r,p)}};Te.parseBreakContinueStatement=function(e,t){var n=t==="break";this.next(),this.eat(N.semi)||this.insertSemicolon()?e.label=null:this.type!==N.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var i=0;i<this.labels.length;++i){var r=this.labels[i];if((e.label==null||r.name===e.label.name)&&(r.kind!=null&&(n||r.kind==="loop")||e.label&&n))break}return i===this.labels.length&&this.raise(e.start,"Unsyntactic "+t),this.finishNode(e,n?"BreakStatement":"ContinueStatement")};Te.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")};Te.parseDoStatement=function(e){return this.next(),this.labels.push(Ll),e.body=this.parseStatement("do"),this.labels.pop(),this.expect(N._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(N.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")};Te.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(Ll),this.enterScope(0),this.expect(N.parenL),this.type===N.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var n=this.isLet();if(this.type===N._var||this.type===N._const||n){var i=this.startNode(),r=n?"let":this.value;return this.next(),this.parseVar(i,!0,r),this.finishNode(i,"VariableDeclaration"),this.parseForAfterInit(e,i,t)}var a=this.isContextual("let"),s=!1,l=this.isUsing(!0)?"using":this.isAwaitUsing(!0)?"await using":null;if(l){var u=this.startNode();return this.next(),l==="await using"&&this.next(),this.parseVar(u,!0,l),this.finishNode(u,"VariableDeclaration"),this.parseForAfterInit(e,u,t)}var c=this.containsEsc,d=new Ga,p=this.start,g=t>-1?this.parseExprSubscripts(d,"await"):this.parseExpression(!0,d);return this.type===N._in||(s=this.options.ecmaVersion>=6&&this.isContextual("of"))?(t>-1?(this.type===N._in&&this.unexpected(t),e.await=!0):s&&this.options.ecmaVersion>=8&&(g.start===p&&!c&&g.type==="Identifier"&&g.name==="async"?this.unexpected():this.options.ecmaVersion>=9&&(e.await=!1)),a&&s&&this.raise(g.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(g,!1,d),this.checkLValPattern(g),this.parseForIn(e,g)):(this.checkExpressionErrors(d,!0),t>-1&&this.unexpected(t),this.parseFor(e,g))};Te.parseForAfterInit=function(e,t,n){return(this.type===N._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&t.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===N._in?n>-1&&this.unexpected(n):e.await=n>-1),this.parseForIn(e,t)):(n>-1&&this.unexpected(n),this.parseFor(e,t))};Te.parseFunctionStatement=function(e,t,n){return this.next(),this.parseFunction(e,tr|(n?0:go),!1,t)};Te.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(N._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")};Te.parseReturnStatement=function(e){return!this.inFunction&&!this.options.allowReturnOutsideFunction&&this.raise(this.start,"'return' outside of function"),this.next(),this.eat(N.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")};Te.parseSwitchStatement=function(e){this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(N.braceL),this.labels.push(Yw),this.enterScope(0);for(var t,n=!1;this.type!==N.braceR;)if(this.type===N._case||this.type===N._default){var i=this.type===N._case;t&&this.finishNode(t,"SwitchCase"),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),i?t.test=this.parseExpression():(n&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),n=!0,t.test=null),this.expect(N.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(null));return this.exitScope(),t&&this.finishNode(t,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(e,"SwitchStatement")};Te.parseThrowStatement=function(e){return this.next(),zt.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")};var Zw=[];Te.parseCatchClauseParam=function(){var e=this.parseBindingAtom(),t=e.type==="Identifier";return this.enterScope(t?wf:0),this.checkLValPattern(e,t?Ef:Mn),this.expect(N.parenR),e};Te.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===N._catch){var t=this.startNode();this.next(),this.eat(N.parenL)?t.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),t.param=null,this.enterScope(0)),t.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(N._finally)?this.parseBlock():null,!e.handler&&!e.finalizer&&this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")};Te.parseVarStatement=function(e,t,n){return this.next(),this.parseVar(e,!1,t,n),this.semicolon(),this.finishNode(e,"VariableDeclaration")};Te.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(Ll),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")};Te.parseWithStatement=function(e){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement("with"),this.finishNode(e,"WithStatement")};Te.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")};Te.parseLabeledStatement=function(e,t,n,i){for(var r=0,a=this.labels;r<a.length;r+=1){var s=a[r];s.name===t&&this.raise(n.start,"Label '"+t+"' is already declared")}for(var l=this.type.isLoop?"loop":this.type===N._switch?"switch":null,u=this.labels.length-1;u>=0;u--){var c=this.labels[u];if(c.statementStart===e.start)c.statementStart=this.start,c.kind=l;else break}return this.labels.push({name:t,kind:l,statementStart:this.start}),e.body=this.parseStatement(i?i.indexOf("label")===-1?i+"label":i:"label"),this.labels.pop(),e.label=n,this.finishNode(e,"LabeledStatement")};Te.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")};Te.parseBlock=function(e,t,n){for(e===void 0&&(e=!0),t===void 0&&(t=this.startNode()),t.body=[],this.expect(N.braceL),e&&this.enterScope(0);this.type!==N.braceR;){var i=this.parseStatement(null);t.body.push(i)}return n&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,"BlockStatement")};Te.parseFor=function(e,t){return e.init=t,this.expect(N.semi),e.test=this.type===N.semi?null:this.parseExpression(),this.expect(N.semi),e.update=this.type===N.parenR?null:this.parseExpression(),this.expect(N.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")};Te.parseForIn=function(e,t){var n=this.type===N._in;return this.next(),t.type==="VariableDeclaration"&&t.declarations[0].init!=null&&(!n||this.options.ecmaVersion<8||this.strict||t.kind!=="var"||t.declarations[0].id.type!=="Identifier")&&this.raise(t.start,(n?"for-in":"for-of")+" loop variable declaration may not have an initializer"),e.left=t,e.right=n?this.parseExpression():this.parseMaybeAssign(),this.expect(N.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,n?"ForInStatement":"ForOfStatement")};Te.parseVar=function(e,t,n,i){for(e.declarations=[],e.kind=n;;){var r=this.startNode();if(this.parseVarId(r,n),this.eat(N.eq)?r.init=this.parseMaybeAssign(t):!i&&n==="const"&&!(this.type===N._in||this.options.ecmaVersion>=6&&this.isContextual("of"))?this.unexpected():!i&&(n==="using"||n==="await using")&&this.options.ecmaVersion>=17&&this.type!==N._in&&!this.isContextual("of")?this.raise(this.lastTokEnd,"Missing initializer in "+n+" declaration"):!i&&r.id.type!=="Identifier"&&!(t&&(this.type===N._in||this.isContextual("of")))?this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):r.init=null,e.declarations.push(this.finishNode(r,"VariableDeclarator")),!this.eat(N.comma))break}return e};Te.parseVarId=function(e,t){e.id=t==="using"||t==="await using"?this.parseIdent():this.parseBindingAtom(),this.checkLValPattern(e.id,t==="var"?Ml:Mn,!1)};var tr=1,go=2,If=4;Te.parseFunction=function(e,t,n,i,r){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!i)&&(this.type===N.star&&t&go&&this.unexpected(),e.generator=this.eat(N.star)),this.options.ecmaVersion>=8&&(e.async=!!i),t&tr&&(e.id=t&If&&this.type!==N.name?null:this.parseIdent(),e.id&&!(t&go)&&this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?Ml:Mn:Sf));var a=this.yieldPos,s=this.awaitPos,l=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Rl(e.async,e.generator)),t&tr||(e.id=this.type===N.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,n,!1,r),this.yieldPos=a,this.awaitPos=s,this.awaitIdentPos=l,this.finishNode(e,t&tr?"FunctionDeclaration":"FunctionExpression")};Te.parseFunctionParams=function(e){this.expect(N.parenL),e.params=this.parseBindingList(N.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()};Te.parseClass=function(e,t){this.next();var n=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var i=this.enterClassBody(),r=this.startNode(),a=!1;for(r.body=[],this.expect(N.braceL);this.type!==N.braceR;){var s=this.parseClassElement(e.superClass!==null);s&&(r.body.push(s),s.type==="MethodDefinition"&&s.kind==="constructor"?(a&&this.raiseRecoverable(s.start,"Duplicate constructor in the same class"),a=!0):s.key&&s.key.type==="PrivateIdentifier"&&Xw(i,s)&&this.raiseRecoverable(s.key.start,"Identifier '#"+s.key.name+"' has already been declared"))}return this.strict=n,this.next(),e.body=this.finishNode(r,"ClassBody"),this.exitClassBody(),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")};Te.parseClassElement=function(e){if(this.eat(N.semi))return null;var t=this.options.ecmaVersion,n=this.startNode(),i="",r=!1,a=!1,s="method",l=!1;if(this.eatContextual("static")){if(t>=13&&this.eat(N.braceL))return this.parseClassStaticBlock(n),n;this.isClassElementNameStart()||this.type===N.star?l=!0:i="static"}if(n.static=l,!i&&t>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.type===N.star)&&!this.canInsertSemicolon()?a=!0:i="async"),!i&&(t>=9||!a)&&this.eat(N.star)&&(r=!0),!i&&!a&&!r){var u=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?s=u:i=u)}if(i?(n.computed=!1,n.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),n.key.name=i,this.finishNode(n.key,"Identifier")):this.parseClassElementName(n),t<13||this.type===N.parenL||s!=="method"||r||a){var c=!n.static&&Ca(n,"constructor"),d=c&&e;c&&s!=="method"&&this.raise(n.key.start,"Constructor can't have get/set modifier"),n.kind=c?"constructor":s,this.parseClassMethod(n,r,a,d)}else this.parseClassField(n);return n};Te.isClassElementNameStart=function(){return this.type===N.name||this.type===N.privateId||this.type===N.num||this.type===N.string||this.type===N.bracketL||this.type.keyword};Te.parseClassElementName=function(e){this.type===N.privateId?(this.value==="constructor"&&this.raise(this.start,"Classes can't have an element named '#constructor'"),e.computed=!1,e.key=this.parsePrivateIdent()):this.parsePropertyName(e)};Te.parseClassMethod=function(e,t,n,i){var r=e.key;e.kind==="constructor"?(t&&this.raise(r.start,"Constructor can't be a generator"),n&&this.raise(r.start,"Constructor can't be an async method")):e.static&&Ca(e,"prototype")&&this.raise(r.start,"Classes may not have a static property named prototype");var a=e.value=this.parseMethod(t,n,i);return e.kind==="get"&&a.params.length!==0&&this.raiseRecoverable(a.start,"getter should have no params"),e.kind==="set"&&a.params.length!==1&&this.raiseRecoverable(a.start,"setter should have exactly one param"),e.kind==="set"&&a.params[0].type==="RestElement"&&this.raiseRecoverable(a.params[0].start,"Setter cannot use rest params"),this.finishNode(e,"MethodDefinition")};Te.parseClassField=function(e){return Ca(e,"constructor")?this.raise(e.key.start,"Classes can't have a field named 'constructor'"):e.static&&Ca(e,"prototype")&&this.raise(e.key.start,"Classes can't have a static field named 'prototype'"),this.eat(N.eq)?(this.enterScope(xr|Ua),e.value=this.parseMaybeAssign(),this.exitScope()):e.value=null,this.semicolon(),this.finishNode(e,"PropertyDefinition")};Te.parseClassStaticBlock=function(e){e.body=[];var t=this.labels;for(this.labels=[],this.enterScope(ci|Ua);this.type!==N.braceR;){var n=this.parseStatement(null);e.body.push(n)}return this.next(),this.exitScope(),this.labels=t,this.finishNode(e,"StaticBlock")};Te.parseClassId=function(e,t){this.type===N.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,Mn,!1)):(t===!0&&this.unexpected(),e.id=null)};Te.parseClassSuper=function(e){e.superClass=this.eat(N._extends)?this.parseExprSubscripts(null,!1):null};Te.enterClassBody=function(){var e={declared:Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared};Te.exitClassBody=function(){var e=this.privateNameStack.pop(),t=e.declared,n=e.used;if(this.options.checkPrivateFields)for(var i=this.privateNameStack.length,r=i===0?null:this.privateNameStack[i-1],a=0;a<n.length;++a){var s=n[a];Bi(t,s.name)||(r?r.used.push(s):this.raiseRecoverable(s.start,"Private field '#"+s.name+"' must be declared in an enclosing class"))}};function Xw(e,t){var n=t.key.name,i=e[n],r="true";return t.type==="MethodDefinition"&&(t.kind==="get"||t.kind==="set")&&(r=(t.static?"s":"i")+t.kind),i==="iget"&&r==="iset"||i==="iset"&&r==="iget"||i==="sget"&&r==="sset"||i==="sset"&&r==="sget"?(e[n]="true",!1):i?!0:(e[n]=r,!1)}function Ca(e,t){var n=e.computed,i=e.key;return!n&&(i.type==="Identifier"&&i.name===t||i.type==="Literal"&&i.value===t)}Te.parseExportAllDeclaration=function(e,t){return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(e.exported=this.parseModuleExportName(),this.checkExport(t,e.exported,this.lastTokStart)):e.exported=null),this.expectContextual("from"),this.type!==N.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,"ExportAllDeclaration")};Te.parseExport=function(e,t){if(this.next(),this.eat(N.star))return this.parseExportAllDeclaration(e,t);if(this.eat(N._default))return this.checkExport(t,"default",this.lastTokStart),e.declaration=this.parseExportDefaultDeclaration(),this.finishNode(e,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())e.declaration=this.parseExportDeclaration(e),e.declaration.type==="VariableDeclaration"?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id,e.declaration.id.start),e.specifiers=[],e.source=null,this.options.ecmaVersion>=16&&(e.attributes=[]);else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual("from"))this.type!==N.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause());else{for(var n=0,i=e.specifiers;n<i.length;n+=1){var r=i[n];this.checkUnreserved(r.local),this.checkLocalExport(r.local),r.local.type==="Literal"&&this.raise(r.local.start,"A string literal cannot be used as an exported binding without `from`.")}e.source=null,this.options.ecmaVersion>=16&&(e.attributes=[])}this.semicolon()}return this.finishNode(e,"ExportNamedDeclaration")};Te.parseExportDeclaration=function(e){return this.parseStatement(null)};Te.parseExportDefaultDeclaration=function(){var e;if(this.type===N._function||(e=this.isAsyncFunction())){var t=this.startNode();return this.next(),e&&this.next(),this.parseFunction(t,tr|If,!1,e)}else if(this.type===N._class){var n=this.startNode();return this.parseClass(n,"nullableID")}else{var i=this.parseMaybeAssign();return this.semicolon(),i}};Te.checkExport=function(e,t,n){e&&(typeof t!="string"&&(t=t.type==="Identifier"?t.name:t.value),Bi(e,t)&&this.raiseRecoverable(n,"Duplicate export '"+t+"'"),e[t]=!0)};Te.checkPatternExport=function(e,t){var n=t.type;if(n==="Identifier")this.checkExport(e,t,t.start);else if(n==="ObjectPattern")for(var i=0,r=t.properties;i<r.length;i+=1){var a=r[i];this.checkPatternExport(e,a)}else if(n==="ArrayPattern")for(var s=0,l=t.elements;s<l.length;s+=1){var u=l[s];u&&this.checkPatternExport(e,u)}else n==="Property"?this.checkPatternExport(e,t.value):n==="AssignmentPattern"?this.checkPatternExport(e,t.left):n==="RestElement"&&this.checkPatternExport(e,t.argument)};Te.checkVariableExport=function(e,t){if(e)for(var n=0,i=t;n<i.length;n+=1){var r=i[n];this.checkPatternExport(e,r.id)}};Te.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()};Te.parseExportSpecifier=function(e){var t=this.startNode();return t.local=this.parseModuleExportName(),t.exported=this.eatContextual("as")?this.parseModuleExportName():t.local,this.checkExport(e,t.exported,t.exported.start),this.finishNode(t,"ExportSpecifier")};Te.parseExportSpecifiers=function(e){var t=[],n=!0;for(this.expect(N.braceL);!this.eat(N.braceR);){if(n)n=!1;else if(this.expect(N.comma),this.afterTrailingComma(N.braceR))break;t.push(this.parseExportSpecifier(e))}return t};Te.parseImport=function(e){return this.next(),this.type===N.string?(e.specifiers=Zw,e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),e.source=this.type===N.string?this.parseExprAtom():this.unexpected()),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,"ImportDeclaration")};Te.parseImportSpecifier=function(){var e=this.startNode();return e.imported=this.parseModuleExportName(),this.eatContextual("as")?e.local=this.parseIdent():(this.checkUnreserved(e.imported),e.local=e.imported),this.checkLValSimple(e.local,Mn),this.finishNode(e,"ImportSpecifier")};Te.parseImportDefaultSpecifier=function(){var e=this.startNode();return e.local=this.parseIdent(),this.checkLValSimple(e.local,Mn),this.finishNode(e,"ImportDefaultSpecifier")};Te.parseImportNamespaceSpecifier=function(){var e=this.startNode();return this.next(),this.expectContextual("as"),e.local=this.parseIdent(),this.checkLValSimple(e.local,Mn),this.finishNode(e,"ImportNamespaceSpecifier")};Te.parseImportSpecifiers=function(){var e=[],t=!0;if(this.type===N.name&&(e.push(this.parseImportDefaultSpecifier()),!this.eat(N.comma)))return e;if(this.type===N.star)return e.push(this.parseImportNamespaceSpecifier()),e;for(this.expect(N.braceL);!this.eat(N.braceR);){if(t)t=!1;else if(this.expect(N.comma),this.afterTrailingComma(N.braceR))break;e.push(this.parseImportSpecifier())}return e};Te.parseWithClause=function(){var e=[];if(!this.eat(N._with))return e;this.expect(N.braceL);for(var t={},n=!0;!this.eat(N.braceR);){if(n)n=!1;else if(this.expect(N.comma),this.afterTrailingComma(N.braceR))break;var i=this.parseImportAttribute(),r=i.key.type==="Identifier"?i.key.name:i.key.value;Bi(t,r)&&this.raiseRecoverable(i.key.start,"Duplicate attribute key '"+r+"'"),t[r]=!0,e.push(i)}return e};Te.parseImportAttribute=function(){var e=this.startNode();return e.key=this.type===N.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never"),this.expect(N.colon),this.type!==N.string&&this.unexpected(),e.value=this.parseExprAtom(),this.finishNode(e,"ImportAttribute")};Te.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===N.string){var e=this.parseLiteral(this.value);return qw.test(e.value)&&this.raise(e.start,"An export name cannot include a lone surrogate."),e}return this.parseIdent(!0)};Te.adaptDirectivePrologue=function(e){for(var t=0;t<e.length&&this.isDirectiveCandidate(e[t]);++t)e[t].directive=e[t].expression.raw.slice(1,-1)};Te.isDirectiveCandidate=function(e){return this.options.ecmaVersion>=5&&e.type==="ExpressionStatement"&&e.expression.type==="Literal"&&typeof e.expression.value=="string"&&(this.input[e.start]==='"'||this.input[e.start]==="'")};var Xt=vt.prototype;Xt.toAssignable=function(e,t,n){if(this.options.ecmaVersion>=6&&e)switch(e.type){case"Identifier":this.inAsync&&e.name==="await"&&this.raise(e.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern",n&&this.checkPatternErrors(n,!0);for(var i=0,r=e.properties;i<r.length;i+=1){var a=r[i];this.toAssignable(a,t),a.type==="RestElement"&&(a.argument.type==="ArrayPattern"||a.argument.type==="ObjectPattern")&&this.raise(a.argument.start,"Unexpected token")}break;case"Property":e.kind!=="init"&&this.raise(e.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(e.value,t);break;case"ArrayExpression":e.type="ArrayPattern",n&&this.checkPatternErrors(n,!0),this.toAssignableList(e.elements,t);break;case"SpreadElement":e.type="RestElement",this.toAssignable(e.argument,t),e.argument.type==="AssignmentPattern"&&this.raise(e.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":e.operator!=="="&&this.raise(e.left.end,"Only '=' operator can be used for specifying default value."),e.type="AssignmentPattern",delete e.operator,this.toAssignable(e.left,t);break;case"ParenthesizedExpression":this.toAssignable(e.expression,t,n);break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!t)break;default:this.raise(e.start,"Assigning to rvalue")}else n&&this.checkPatternErrors(n,!0);return e};Xt.toAssignableList=function(e,t){for(var n=e.length,i=0;i<n;i++){var r=e[i];r&&this.toAssignable(r,t)}if(n){var a=e[n-1];this.options.ecmaVersion===6&&t&&a&&a.type==="RestElement"&&a.argument.type!=="Identifier"&&this.unexpected(a.argument.start)}return e};Xt.parseSpread=function(e){var t=this.startNode();return this.next(),t.argument=this.parseMaybeAssign(!1,e),this.finishNode(t,"SpreadElement")};Xt.parseRestBinding=function(){var e=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==N.name&&this.unexpected(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")};Xt.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case N.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(N.bracketR,!0,!0),this.finishNode(e,"ArrayPattern");case N.braceL:return this.parseObj(!0)}return this.parseIdent()};Xt.parseBindingList=function(e,t,n,i){for(var r=[],a=!0;!this.eat(e);)if(a?a=!1:this.expect(N.comma),t&&this.type===N.comma)r.push(null);else{if(n&&this.afterTrailingComma(e))break;if(this.type===N.ellipsis){var s=this.parseRestBinding();this.parseBindingListItem(s),r.push(s),this.type===N.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(e);break}else r.push(this.parseAssignableListItem(i))}return r};Xt.parseAssignableListItem=function(e){var t=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(t),t};Xt.parseBindingListItem=function(e){return e};Xt.parseMaybeDefault=function(e,t,n){if(n=n||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(N.eq))return n;var i=this.startNodeAt(e,t);return i.left=n,i.right=this.parseMaybeAssign(),this.finishNode(i,"AssignmentPattern")};Xt.checkLValSimple=function(e,t,n){t===void 0&&(t=Ea);var i=t!==Ea;switch(e.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(e.name)&&this.raiseRecoverable(e.start,(i?"Binding ":"Assigning to ")+e.name+" in strict mode"),i&&(t===Mn&&e.name==="let"&&this.raiseRecoverable(e.start,"let is disallowed as a lexically bound name"),n&&(Bi(n,e.name)&&this.raiseRecoverable(e.start,"Argument name clash"),n[e.name]=!0),t!==Cf&&this.declareName(e.name,t,e.start));break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":i&&this.raiseRecoverable(e.start,"Binding member expression");break;case"ParenthesizedExpression":return i&&this.raiseRecoverable(e.start,"Binding parenthesized expression"),this.checkLValSimple(e.expression,t,n);default:this.raise(e.start,(i?"Binding":"Assigning to")+" rvalue")}};Xt.checkLValPattern=function(e,t,n){switch(t===void 0&&(t=Ea),e.type){case"ObjectPattern":for(var i=0,r=e.properties;i<r.length;i+=1){var a=r[i];this.checkLValInnerPattern(a,t,n)}break;case"ArrayPattern":for(var s=0,l=e.elements;s<l.length;s+=1){var u=l[s];u&&this.checkLValInnerPattern(u,t,n)}break;default:this.checkLValSimple(e,t,n)}};Xt.checkLValInnerPattern=function(e,t,n){switch(t===void 0&&(t=Ea),e.type){case"Property":this.checkLValInnerPattern(e.value,t,n);break;case"AssignmentPattern":this.checkLValPattern(e.left,t,n);break;case"RestElement":this.checkLValPattern(e.argument,t,n);break;default:this.checkLValPattern(e,t,n)}};var tn=function(t,n,i,r,a){this.token=t,this.isExpr=!!n,this.preserveSpace=!!i,this.override=r,this.generator=!!a},at={b_stat:new tn("{",!1),b_expr:new tn("{",!0),b_tmpl:new tn("${",!1),p_stat:new tn("(",!1),p_expr:new tn("(",!0),q_tmpl:new tn("`",!0,!0,function(e){return e.tryReadTemplateToken()}),f_stat:new tn("function",!1),f_expr:new tn("function",!0),f_expr_gen:new tn("function",!0,!1,null,!0),f_gen:new tn("function",!1,!1,null,!0)},Ki=vt.prototype;Ki.initialContext=function(){return[at.b_stat]};Ki.curContext=function(){return this.context[this.context.length-1]};Ki.braceIsBlock=function(e){var t=this.curContext();return t===at.f_expr||t===at.f_stat?!0:e===N.colon&&(t===at.b_stat||t===at.b_expr)?!t.isExpr:e===N._return||e===N.name&&this.exprAllowed?zt.test(this.input.slice(this.lastTokEnd,this.start)):e===N._else||e===N.semi||e===N.eof||e===N.parenR||e===N.arrow?!0:e===N.braceL?t===at.b_stat:e===N._var||e===N._const||e===N.name?!1:!this.exprAllowed};Ki.inGeneratorContext=function(){for(var e=this.context.length-1;e>=1;e--){var t=this.context[e];if(t.token==="function")return t.generator}return!1};Ki.updateContext=function(e){var t,n=this.type;n.keyword&&e===N.dot?this.exprAllowed=!1:(t=n.updateContext)?t.call(this,e):this.exprAllowed=n.beforeExpr};Ki.overrideContext=function(e){this.curContext()!==e&&(this.context[this.context.length-1]=e)};N.parenR.updateContext=N.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var e=this.context.pop();e===at.b_stat&&this.curContext().token==="function"&&(e=this.context.pop()),this.exprAllowed=!e.isExpr};N.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?at.b_stat:at.b_expr),this.exprAllowed=!0};N.dollarBraceL.updateContext=function(){this.context.push(at.b_tmpl),this.exprAllowed=!0};N.parenL.updateContext=function(e){var t=e===N._if||e===N._for||e===N._with||e===N._while;this.context.push(t?at.p_stat:at.p_expr),this.exprAllowed=!0};N.incDec.updateContext=function(){};N._function.updateContext=N._class.updateContext=function(e){e.beforeExpr&&e!==N._else&&!(e===N.semi&&this.curContext()!==at.p_stat)&&!(e===N._return&&zt.test(this.input.slice(this.lastTokEnd,this.start)))&&!((e===N.colon||e===N.braceL)&&this.curContext()===at.b_stat)?this.context.push(at.f_expr):this.context.push(at.f_stat),this.exprAllowed=!1};N.colon.updateContext=function(){this.curContext().token==="function"&&this.context.pop(),this.exprAllowed=!0};N.backQuote.updateContext=function(){this.curContext()===at.q_tmpl?this.context.pop():this.context.push(at.q_tmpl),this.exprAllowed=!1};N.star.updateContext=function(e){if(e===N._function){var t=this.context.length-1;this.context[t]===at.f_expr?this.context[t]=at.f_expr_gen:this.context[t]=at.f_gen}this.exprAllowed=!0};N.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==N.dot&&(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var je=vt.prototype;je.checkPropClash=function(e,t,n){if(!(this.options.ecmaVersion>=9&&e.type==="SpreadElement")&&!(this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand))){var i=e.key,r;switch(i.type){case"Identifier":r=i.name;break;case"Literal":r=String(i.value);break;default:return}var a=e.kind;if(this.options.ecmaVersion>=6){r==="__proto__"&&a==="init"&&(t.proto&&(n?n.doubleProto<0&&(n.doubleProto=i.start):this.raiseRecoverable(i.start,"Redefinition of __proto__ property")),t.proto=!0);return}r="$"+r;var s=t[r];if(s){var l;a==="init"?l=this.strict&&s.init||s.get||s.set:l=s.init||s[a],l&&this.raiseRecoverable(i.start,"Redefinition of property")}else s=t[r]={init:!1,get:!1,set:!1};s[a]=!0}};je.parseExpression=function(e,t){var n=this.start,i=this.startLoc,r=this.parseMaybeAssign(e,t);if(this.type===N.comma){var a=this.startNodeAt(n,i);for(a.expressions=[r];this.eat(N.comma);)a.expressions.push(this.parseMaybeAssign(e,t));return this.finishNode(a,"SequenceExpression")}return r};je.parseMaybeAssign=function(e,t,n){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(e);this.exprAllowed=!1}var i=!1,r=-1,a=-1,s=-1;t?(r=t.parenthesizedAssign,a=t.trailingComma,s=t.doubleProto,t.parenthesizedAssign=t.trailingComma=-1):(t=new Ga,i=!0);var l=this.start,u=this.startLoc;(this.type===N.parenL||this.type===N.name)&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait=e==="await");var c=this.parseMaybeConditional(e,t);if(n&&(c=n.call(this,c,l,u)),this.type.isAssign){var d=this.startNodeAt(l,u);return d.operator=this.value,this.type===N.eq&&(c=this.toAssignable(c,!1,t)),i||(t.parenthesizedAssign=t.trailingComma=t.doubleProto=-1),t.shorthandAssign>=c.start&&(t.shorthandAssign=-1),this.type===N.eq?this.checkLValPattern(c):this.checkLValSimple(c),d.left=c,this.next(),d.right=this.parseMaybeAssign(e),s>-1&&(t.doubleProto=s),this.finishNode(d,"AssignmentExpression")}else i&&this.checkExpressionErrors(t,!0);return r>-1&&(t.parenthesizedAssign=r),a>-1&&(t.trailingComma=a),c};je.parseMaybeConditional=function(e,t){var n=this.start,i=this.startLoc,r=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return r;if(this.eat(N.question)){var a=this.startNodeAt(n,i);return a.test=r,a.consequent=this.parseMaybeAssign(),this.expect(N.colon),a.alternate=this.parseMaybeAssign(e),this.finishNode(a,"ConditionalExpression")}return r};je.parseExprOps=function(e,t){var n=this.start,i=this.startLoc,r=this.parseMaybeUnary(t,!1,!1,e);return this.checkExpressionErrors(t)||r.start===n&&r.type==="ArrowFunctionExpression"?r:this.parseExprOp(r,n,i,-1,e)};je.parseExprOp=function(e,t,n,i,r){var a=this.type.binop;if(a!=null&&(!r||this.type!==N._in)&&a>i){var s=this.type===N.logicalOR||this.type===N.logicalAND,l=this.type===N.coalesce;l&&(a=N.logicalAND.binop);var u=this.value;this.next();var c=this.start,d=this.startLoc,p=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,r),c,d,a,r),g=this.buildBinary(t,n,e,p,u,s||l);return(s&&this.type===N.coalesce||l&&(this.type===N.logicalOR||this.type===N.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(g,t,n,i,r)}return e};je.buildBinary=function(e,t,n,i,r,a){i.type==="PrivateIdentifier"&&this.raise(i.start,"Private identifier can only be left side of binary expression");var s=this.startNodeAt(e,t);return s.left=n,s.operator=r,s.right=i,this.finishNode(s,a?"LogicalExpression":"BinaryExpression")};je.parseMaybeUnary=function(e,t,n,i){var r=this.start,a=this.startLoc,s;if(this.isContextual("await")&&this.canAwait)s=this.parseAwait(i),t=!0;else if(this.type.prefix){var l=this.startNode(),u=this.type===N.incDec;l.operator=this.value,l.prefix=!0,this.next(),l.argument=this.parseMaybeUnary(null,!0,u,i),this.checkExpressionErrors(e,!0),u?this.checkLValSimple(l.argument):this.strict&&l.operator==="delete"&&_f(l.argument)?this.raiseRecoverable(l.start,"Deleting local variable in strict mode"):l.operator==="delete"&&mo(l.argument)?this.raiseRecoverable(l.start,"Private fields can not be deleted"):t=!0,s=this.finishNode(l,u?"UpdateExpression":"UnaryExpression")}else if(!t&&this.type===N.privateId)(i||this.privateNameStack.length===0)&&this.options.checkPrivateFields&&this.unexpected(),s=this.parsePrivateIdent(),this.type!==N._in&&this.unexpected();else{if(s=this.parseExprSubscripts(e,i),this.checkExpressionErrors(e))return s;for(;this.type.postfix&&!this.canInsertSemicolon();){var c=this.startNodeAt(r,a);c.operator=this.value,c.prefix=!1,c.argument=s,this.checkLValSimple(s),this.next(),s=this.finishNode(c,"UpdateExpression")}}if(!n&&this.eat(N.starstar))if(t)this.unexpected(this.lastTokStart);else return this.buildBinary(r,a,s,this.parseMaybeUnary(null,!1,!1,i),"**",!1);else return s};function _f(e){return e.type==="Identifier"||e.type==="ParenthesizedExpression"&&_f(e.expression)}function mo(e){return e.type==="MemberExpression"&&e.property.type==="PrivateIdentifier"||e.type==="ChainExpression"&&mo(e.expression)||e.type==="ParenthesizedExpression"&&mo(e.expression)}je.parseExprSubscripts=function(e,t){var n=this.start,i=this.startLoc,r=this.parseExprAtom(e,t);if(r.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return r;var a=this.parseSubscripts(r,n,i,!1,t);return e&&a.type==="MemberExpression"&&(e.parenthesizedAssign>=a.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=a.start&&(e.parenthesizedBind=-1),e.trailingComma>=a.start&&(e.trailingComma=-1)),a};je.parseSubscripts=function(e,t,n,i,r){for(var a=this.options.ecmaVersion>=8&&e.type==="Identifier"&&e.name==="async"&&this.lastTokEnd===e.end&&!this.canInsertSemicolon()&&e.end-e.start===5&&this.potentialArrowAt===e.start,s=!1;;){var l=this.parseSubscript(e,t,n,i,a,s,r);if(l.optional&&(s=!0),l===e||l.type==="ArrowFunctionExpression"){if(s){var u=this.startNodeAt(t,n);u.expression=l,l=this.finishNode(u,"ChainExpression")}return l}e=l}};je.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(N.arrow)};je.parseSubscriptAsyncArrow=function(e,t,n,i){return this.parseArrowExpression(this.startNodeAt(e,t),n,!0,i)};je.parseSubscript=function(e,t,n,i,r,a,s){var l=this.options.ecmaVersion>=11,u=l&&this.eat(N.questionDot);i&&u&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var c=this.eat(N.bracketL);if(c||u&&this.type!==N.parenL&&this.type!==N.backQuote||this.eat(N.dot)){var d=this.startNodeAt(t,n);d.object=e,c?(d.property=this.parseExpression(),this.expect(N.bracketR)):this.type===N.privateId&&e.type!=="Super"?d.property=this.parsePrivateIdent():d.property=this.parseIdent(this.options.allowReserved!=="never"),d.computed=!!c,l&&(d.optional=u),e=this.finishNode(d,"MemberExpression")}else if(!i&&this.eat(N.parenL)){var p=new Ga,g=this.yieldPos,m=this.awaitPos,C=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var x=this.parseExprList(N.parenR,this.options.ecmaVersion>=8,!1,p);if(r&&!u&&this.shouldParseAsyncArrow())return this.checkPatternErrors(p,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=g,this.awaitPos=m,this.awaitIdentPos=C,this.parseSubscriptAsyncArrow(t,n,x,s);this.checkExpressionErrors(p,!0),this.yieldPos=g||this.yieldPos,this.awaitPos=m||this.awaitPos,this.awaitIdentPos=C||this.awaitIdentPos;var w=this.startNodeAt(t,n);w.callee=e,w.arguments=x,l&&(w.optional=u),e=this.finishNode(w,"CallExpression")}else if(this.type===N.backQuote){(u||a)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var S=this.startNodeAt(t,n);S.tag=e,S.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(S,"TaggedTemplateExpression")}return e};je.parseExprAtom=function(e,t,n){this.type===N.slash&&this.readRegexp();var i,r=this.potentialArrowAt===this.start;switch(this.type){case N._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),i=this.startNode(),this.next(),this.type===N.parenL&&!this.allowDirectSuper&&this.raise(i.start,"super() call outside constructor of a subclass"),this.type!==N.dot&&this.type!==N.bracketL&&this.type!==N.parenL&&this.unexpected(),this.finishNode(i,"Super");case N._this:return i=this.startNode(),this.next(),this.finishNode(i,"ThisExpression");case N.name:var a=this.start,s=this.startLoc,l=this.containsEsc,u=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!l&&u.name==="async"&&!this.canInsertSemicolon()&&this.eat(N._function))return this.overrideContext(at.f_expr),this.parseFunction(this.startNodeAt(a,s),0,!1,!0,t);if(r&&!this.canInsertSemicolon()){if(this.eat(N.arrow))return this.parseArrowExpression(this.startNodeAt(a,s),[u],!1,t);if(this.options.ecmaVersion>=8&&u.name==="async"&&this.type===N.name&&!l&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc))return u=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(N.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(a,s),[u],!0,t)}return u;case N.regexp:var c=this.value;return i=this.parseLiteral(c.value),i.regex={pattern:c.pattern,flags:c.flags},i;case N.num:case N.string:return this.parseLiteral(this.value);case N._null:case N._true:case N._false:return i=this.startNode(),i.value=this.type===N._null?null:this.type===N._true,i.raw=this.type.keyword,this.next(),this.finishNode(i,"Literal");case N.parenL:var d=this.start,p=this.parseParenAndDistinguishExpression(r,t);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(p)&&(e.parenthesizedAssign=d),e.parenthesizedBind<0&&(e.parenthesizedBind=d)),p;case N.bracketL:return i=this.startNode(),this.next(),i.elements=this.parseExprList(N.bracketR,!0,!0,e),this.finishNode(i,"ArrayExpression");case N.braceL:return this.overrideContext(at.b_expr),this.parseObj(!1,e);case N._function:return i=this.startNode(),this.next(),this.parseFunction(i,0);case N._class:return this.parseClass(this.startNode(),!1);case N._new:return this.parseNew();case N.backQuote:return this.parseTemplate();case N._import:return this.options.ecmaVersion>=11?this.parseExprImport(n):this.unexpected();default:return this.parseExprAtomDefault()}};je.parseExprAtomDefault=function(){this.unexpected()};je.parseExprImport=function(e){var t=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===N.parenL&&!e)return this.parseDynamicImport(t);if(this.type===N.dot){var n=this.startNodeAt(t.start,t.loc&&t.loc.start);return n.name="import",t.meta=this.finishNode(n,"Identifier"),this.parseImportMeta(t)}else this.unexpected()};je.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)this.eat(N.parenR)?e.options=null:(this.expect(N.comma),this.afterTrailingComma(N.parenR)?e.options=null:(e.options=this.parseMaybeAssign(),this.eat(N.parenR)||(this.expect(N.comma),this.afterTrailingComma(N.parenR)||this.unexpected())));else if(!this.eat(N.parenR)){var t=this.start;this.eat(N.comma)&&this.eat(N.parenR)?this.raiseRecoverable(t,"Trailing comma is not allowed in import()"):this.unexpected(t)}return this.finishNode(e,"ImportExpression")};je.parseImportMeta=function(e){this.next();var t=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!=="meta"&&this.raiseRecoverable(e.property.start,"The only valid meta property for import is 'import.meta'"),t&&this.raiseRecoverable(e.start,"'import.meta' must not contain escaped characters"),this.options.sourceType!=="module"&&!this.options.allowImportExportEverywhere&&this.raiseRecoverable(e.start,"Cannot use 'import.meta' outside a module"),this.finishNode(e,"MetaProperty")};je.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),t.raw.charCodeAt(t.raw.length-1)===110&&(t.bigint=t.value!=null?t.value.toString():t.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(t,"Literal")};je.parseParenExpression=function(){this.expect(N.parenL);var e=this.parseExpression();return this.expect(N.parenR),e};je.shouldParseArrow=function(e){return!this.canInsertSemicolon()};je.parseParenAndDistinguishExpression=function(e,t){var n=this.start,i=this.startLoc,r,a=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var s=this.start,l=this.startLoc,u=[],c=!0,d=!1,p=new Ga,g=this.yieldPos,m=this.awaitPos,C;for(this.yieldPos=0,this.awaitPos=0;this.type!==N.parenR;)if(c?c=!1:this.expect(N.comma),a&&this.afterTrailingComma(N.parenR,!0)){d=!0;break}else if(this.type===N.ellipsis){C=this.start,u.push(this.parseParenItem(this.parseRestBinding())),this.type===N.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}else u.push(this.parseMaybeAssign(!1,p,this.parseParenItem));var x=this.lastTokEnd,w=this.lastTokEndLoc;if(this.expect(N.parenR),e&&this.shouldParseArrow(u)&&this.eat(N.arrow))return this.checkPatternErrors(p,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=g,this.awaitPos=m,this.parseParenArrowList(n,i,u,t);(!u.length||d)&&this.unexpected(this.lastTokStart),C&&this.unexpected(C),this.checkExpressionErrors(p,!0),this.yieldPos=g||this.yieldPos,this.awaitPos=m||this.awaitPos,u.length>1?(r=this.startNodeAt(s,l),r.expressions=u,this.finishNodeAt(r,"SequenceExpression",x,w)):r=u[0]}else r=this.parseParenExpression();if(this.options.preserveParens){var S=this.startNodeAt(n,i);return S.expression=r,this.finishNode(S,"ParenthesizedExpression")}else return r};je.parseParenItem=function(e){return e};je.parseParenArrowList=function(e,t,n,i){return this.parseArrowExpression(this.startNodeAt(e,t),n,!1,i)};var Qw=[];je.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var e=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===N.dot){var t=this.startNodeAt(e.start,e.loc&&e.loc.start);t.name="new",e.meta=this.finishNode(t,"Identifier"),this.next();var n=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!=="target"&&this.raiseRecoverable(e.property.start,"The only valid meta property for new is 'new.target'"),n&&this.raiseRecoverable(e.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(e.start,"'new.target' can only be used in functions and class static block"),this.finishNode(e,"MetaProperty")}var i=this.start,r=this.startLoc;return e.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),i,r,!0,!1),this.eat(N.parenL)?e.arguments=this.parseExprList(N.parenR,this.options.ecmaVersion>=8,!1):e.arguments=Qw,this.finishNode(e,"NewExpression")};je.parseTemplateElement=function(e){var t=e.isTagged,n=this.startNode();return this.type===N.invalidTemplate?(t||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),n.value={raw:this.value.replace(/\r\n?/g,`
|
|
15
|
+
`))}return i.pop(),l.join("")}function xc(e){let t=0,n=e.stack.length;for(;--n>-1;){const i=e.stack[n];if(i==="blockquote"||i==="listItem")break;i==="mdxJsxFlowElement"&&t++}return t}function vc(e){return mc.repeat(e)}function _g(){return"<"}function Ig(){return{enter:{mdxjsEsm:Tg},exit:{mdxjsEsm:Ng,mdxjsEsmData:Pg}}}function Ag(){return{handlers:{mdxjsEsm:Og}}}function Tg(e){this.enter({type:"mdxjsEsm",value:""},e),this.buffer()}function Ng(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,this.exit(e);const i=e.estree;n.value=t,i&&(n.data={estree:i})}function Pg(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}function Og(e){return e.value||""}function Rg(){return[ig(),Sg(),Ig()]}function Lg(e){return{extensions:[rg(),kg(e),Ag()]}}var Mg=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,78,5,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,199,7,137,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,55,9,266,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239],bc=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,7,25,39,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,5,57,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,24,43,261,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,208,30,2,2,2,1,2,6,3,4,10,1,225,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],Fg="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ--ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・",yc="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ--ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",Yr={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},Qr="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",Dg={5:Qr,"5module":Qr+" export import",6:Qr+" const class extends export import super"},wc=/^in(stanceof)?$/,jg=new RegExp("["+yc+"]"),Vg=new RegExp("["+yc+Fg+"]");function Ka(e,t){for(var n=65536,i=0;i<t.length;i+=2){if(n+=t[i],n>e)return!1;if(n+=t[i+1],n>=e)return!0}return!1}function Gt(e,t){return e<65?e===36:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&jg.test(String.fromCharCode(e)):t===!1?!1:Ka(e,bc)}function mn(e,t){return e<48?e===36:e<58?!0:e<65?!1:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&Vg.test(String.fromCharCode(e)):t===!1?!1:Ka(e,bc)||Ka(e,Mg)}var He=function(t,n){n===void 0&&(n={}),this.label=t,this.keyword=n.keyword,this.beforeExpr=!!n.beforeExpr,this.startsExpr=!!n.startsExpr,this.isLoop=!!n.isLoop,this.isAssign=!!n.isAssign,this.prefix=!!n.prefix,this.postfix=!!n.postfix,this.binop=n.binop||null,this.updateContext=null};function Tt(e,t){return new He(e,{beforeExpr:!0,binop:t})}var Nt={beforeExpr:!0},ft={startsExpr:!0},cs={};function ze(e,t){return t===void 0&&(t={}),t.keyword=e,cs[e]=new He(e,t)}var _={num:new He("num",ft),regexp:new He("regexp",ft),string:new He("string",ft),name:new He("name",ft),privateId:new He("privateId",ft),eof:new He("eof"),bracketL:new He("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new He("]"),braceL:new He("{",{beforeExpr:!0,startsExpr:!0}),braceR:new He("}"),parenL:new He("(",{beforeExpr:!0,startsExpr:!0}),parenR:new He(")"),comma:new He(",",Nt),semi:new He(";",Nt),colon:new He(":",Nt),dot:new He("."),question:new He("?",Nt),questionDot:new He("?."),arrow:new He("=>",Nt),template:new He("template"),invalidTemplate:new He("invalidTemplate"),ellipsis:new He("...",Nt),backQuote:new He("`",ft),dollarBraceL:new He("${",{beforeExpr:!0,startsExpr:!0}),eq:new He("=",{beforeExpr:!0,isAssign:!0}),assign:new He("_=",{beforeExpr:!0,isAssign:!0}),incDec:new He("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new He("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:Tt("||",1),logicalAND:Tt("&&",2),bitwiseOR:Tt("|",3),bitwiseXOR:Tt("^",4),bitwiseAND:Tt("&",5),equality:Tt("==/!=/===/!==",6),relational:Tt("</>/<=/>=",7),bitShift:Tt("<</>>/>>>",8),plusMin:new He("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:Tt("%",10),star:Tt("*",10),slash:Tt("/",10),starstar:new He("**",{beforeExpr:!0}),coalesce:Tt("??",1),_break:ze("break"),_case:ze("case",Nt),_catch:ze("catch"),_continue:ze("continue"),_debugger:ze("debugger"),_default:ze("default",Nt),_do:ze("do",{isLoop:!0,beforeExpr:!0}),_else:ze("else",Nt),_finally:ze("finally"),_for:ze("for",{isLoop:!0}),_function:ze("function",ft),_if:ze("if"),_return:ze("return",Nt),_switch:ze("switch"),_throw:ze("throw",Nt),_try:ze("try"),_var:ze("var"),_const:ze("const"),_while:ze("while",{isLoop:!0}),_with:ze("with"),_new:ze("new",{beforeExpr:!0,startsExpr:!0}),_this:ze("this",ft),_super:ze("super",ft),_class:ze("class",ft),_extends:ze("extends",Nt),_export:ze("export"),_import:ze("import",ft),_null:ze("null",ft),_true:ze("true",ft),_false:ze("false",ft),_in:ze("in",{beforeExpr:!0,binop:7}),_instanceof:ze("instanceof",{beforeExpr:!0,binop:7}),_typeof:ze("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:ze("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:ze("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},vt=/\r\n?|\n|\u2028|\u2029/,Bg=new RegExp(vt.source,"g");function Zn(e){return e===10||e===13||e===8232||e===8233}function Ec(e,t,n){n===void 0&&(n=e.length);for(var i=t;i<n;i++){var r=e.charCodeAt(i);if(Zn(r))return i<n-1&&r===13&&e.charCodeAt(i+1)===10?i+2:i+1}return-1}var Sc=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,ot=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,kc=Object.prototype,zg=kc.hasOwnProperty,Kg=kc.toString,Xn=Object.hasOwn||(function(e,t){return zg.call(e,t)}),il=Array.isArray||(function(e){return Kg.call(e)==="[object Array]"}),rl=Object.create(null);function pn(e){return rl[e]||(rl[e]=new RegExp("^(?:"+e.replace(/ /g,"|")+")$"))}function tn(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10)+55296,(e&1023)+56320))}var Ug=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,xi=function(t,n){this.line=t,this.column=n};xi.prototype.offset=function(t){return new xi(this.line,this.column+t)};var Ar=function(t,n,i){this.start=n,this.end=i,t.sourceFile!==null&&(this.source=t.sourceFile)};function Cc(e,t){for(var n=1,i=0;;){var r=Ec(e,i,t);if(r<0)return new xi(n,t-i);++n,i=r}}var Ua={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},al=!1;function Hg(e){var t={};for(var n in Ua)t[n]=e&&Xn(e,n)?e[n]:Ua[n];if(t.ecmaVersion==="latest"?t.ecmaVersion=1e8:t.ecmaVersion==null?(!al&&typeof console=="object"&&console.warn&&(al=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
|
|
16
|
+
Defaulting to 2020, but this will stop working in the future.`)),t.ecmaVersion=11):t.ecmaVersion>=2015&&(t.ecmaVersion-=2009),t.allowReserved==null&&(t.allowReserved=t.ecmaVersion<5),(!e||e.allowHashBang==null)&&(t.allowHashBang=t.ecmaVersion>=14),il(t.onToken)){var i=t.onToken;t.onToken=function(r){return i.push(r)}}if(il(t.onComment)&&(t.onComment=$g(t,t.onComment)),t.sourceType==="commonjs"&&t.allowAwaitOutsideFunction)throw new Error("Cannot use allowAwaitOutsideFunction with sourceType: commonjs");return t}function $g(e,t){return function(n,i,r,s,o,l){var u={type:n?"Block":"Line",value:i,start:r,end:s};e.locations&&(u.loc=new Ar(this,o,l)),e.ranges&&(u.range=[r,s]),t.push(u)}}var In=1,Nn=2,hs=4,_c=8,fs=16,Ic=32,Tr=64,Ac=128,Pn=256,ki=512,Tc=1024,Nr=In|Nn|Pn;function ps(e,t){return Nn|(e?hs:0)|(t?_c:0)}var cr=0,ds=1,ln=2,Nc=3,Pc=4,Oc=5,rt=function(t,n,i){this.options=t=Hg(t),this.sourceFile=t.sourceFile,this.keywords=pn(Dg[t.ecmaVersion>=6?6:t.sourceType==="module"?"5module":5]);var r="";t.allowReserved!==!0&&(r=Yr[t.ecmaVersion>=6?6:t.ecmaVersion===5?5:3],t.sourceType==="module"&&(r+=" await")),this.reservedWords=pn(r);var s=(r?r+" ":"")+Yr.strict;this.reservedWordsStrict=pn(s),this.reservedWordsStrictBind=pn(s+" "+Yr.strictBind),this.input=String(n),this.containsEsc=!1,i?(this.pos=i,this.lineStart=this.input.lastIndexOf(`
|
|
17
|
+
`,i-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(vt).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=_.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=t.sourceType==="module",this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),this.pos===0&&t.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(this.options.sourceType==="commonjs"?Nn:In),this.regexpState=null,this.privateNameStack=[]},Dt={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowReturn:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},allowUsing:{configurable:!0},inClassStaticBlock:{configurable:!0}};rt.prototype.parse=function(){var t=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(t)};Dt.inFunction.get=function(){return(this.currentVarScope().flags&Nn)>0};Dt.inGenerator.get=function(){return(this.currentVarScope().flags&_c)>0};Dt.inAsync.get=function(){return(this.currentVarScope().flags&hs)>0};Dt.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e],n=t.flags;if(n&(Pn|ki))return!1;if(n&Nn)return(n&hs)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction};Dt.allowReturn.get=function(){return!!(this.inFunction||this.options.allowReturnOutsideFunction&&this.currentVarScope().flags&In)};Dt.allowSuper.get=function(){var e=this.currentThisScope(),t=e.flags;return(t&Tr)>0||this.options.allowSuperOutsideMethod};Dt.allowDirectSuper.get=function(){return(this.currentThisScope().flags&Ac)>0};Dt.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())};Dt.allowNewDotTarget.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e],n=t.flags;if(n&(Pn|ki)||n&Nn&&!(n&fs))return!0}return!1};Dt.allowUsing.get=function(){var e=this.currentScope(),t=e.flags;return!(t&Tc||!this.inModule&&t&In)};Dt.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&Pn)>0};rt.extend=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];for(var i=this,r=0;r<t.length;r++)i=t[r](i);return i};rt.parse=function(t,n){return new this(n,t).parse()};rt.parseExpressionAt=function(t,n,i){var r=new this(i,t,n);return r.nextToken(),r.parseExpression()};rt.tokenizer=function(t,n){return new this(n,t)};Object.defineProperties(rt.prototype,Dt);var ht=rt.prototype,qg=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;ht.strictDirective=function(e){if(this.options.ecmaVersion<5)return!1;for(;;){ot.lastIndex=e,e+=ot.exec(this.input)[0].length;var t=qg.exec(this.input.slice(e));if(!t)return!1;if((t[1]||t[2])==="use strict"){ot.lastIndex=e+t[0].length;var n=ot.exec(this.input),i=n.index+n[0].length,r=this.input.charAt(i);return r===";"||r==="}"||vt.test(n[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(r)||r==="!"&&this.input.charAt(i+1)==="=")}e+=t[0].length,ot.lastIndex=e,e+=ot.exec(this.input)[0].length,this.input[e]===";"&&e++}};ht.eat=function(e){return this.type===e?(this.next(),!0):!1};ht.isContextual=function(e){return this.type===_.name&&this.value===e&&!this.containsEsc};ht.eatContextual=function(e){return this.isContextual(e)?(this.next(),!0):!1};ht.expectContextual=function(e){this.eatContextual(e)||this.unexpected()};ht.canInsertSemicolon=function(){return this.type===_.eof||this.type===_.braceR||vt.test(this.input.slice(this.lastTokEnd,this.start))};ht.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0};ht.semicolon=function(){!this.eat(_.semi)&&!this.insertSemicolon()&&this.unexpected()};ht.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0};ht.expect=function(e){this.eat(e)||this.unexpected()};ht.unexpected=function(e){this.raise(e??this.start,"Unexpected token")};var Pr=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};ht.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var n=t?e.parenthesizedAssign:e.parenthesizedBind;n>-1&&this.raiseRecoverable(n,t?"Assigning to rvalue":"Parenthesized pattern")}};ht.checkExpressionErrors=function(e,t){if(!e)return!1;var n=e.shorthandAssign,i=e.doubleProto;if(!t)return n>=0||i>=0;n>=0&&this.raise(n,"Shorthand property assignments are valid only in destructuring patterns"),i>=0&&this.raiseRecoverable(i,"Redefinition of __proto__ property")};ht.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")};ht.isSimpleAssignTarget=function(e){return e.type==="ParenthesizedExpression"?this.isSimpleAssignTarget(e.expression):e.type==="Identifier"||e.type==="MemberExpression"};var Ce=rt.prototype;Ce.parseTopLevel=function(e){var t=Object.create(null);for(e.body||(e.body=[]);this.type!==_.eof;){var n=this.parseStatement(null,!0,t);e.body.push(n)}if(this.inModule)for(var i=0,r=Object.keys(this.undefinedExports);i<r.length;i+=1){var s=r[i];this.raiseRecoverable(this.undefinedExports[s].start,"Export '"+s+"' is not defined")}return this.adaptDirectivePrologue(e.body),this.next(),e.sourceType=this.options.sourceType==="commonjs"?"script":this.options.sourceType,this.finishNode(e,"Program")};var gs={kind:"loop"},Wg={kind:"switch"};Ce.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;ot.lastIndex=this.pos;var t=ot.exec(this.input),n=this.pos+t[0].length,i=this.fullCharCodeAt(n);if(i===91||i===92)return!0;if(e)return!1;if(i===123)return!0;if(Gt(i)){var r=n;do n+=i<=65535?1:2;while(mn(i=this.fullCharCodeAt(n)));if(i===92)return!0;var s=this.input.slice(r,n);if(!wc.test(s))return!0}return!1};Ce.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;ot.lastIndex=this.pos;var e=ot.exec(this.input),t=this.pos+e[0].length,n;return!vt.test(this.input.slice(this.pos,t))&&this.input.slice(t,t+8)==="function"&&(t+8===this.input.length||!(mn(n=this.fullCharCodeAt(t+8))||n===92))};Ce.isUsingKeyword=function(e,t){if(this.options.ecmaVersion<17||!this.isContextual(e?"await":"using"))return!1;ot.lastIndex=this.pos;var n=ot.exec(this.input),i=this.pos+n[0].length;if(vt.test(this.input.slice(this.pos,i)))return!1;if(e){var r=i+5,s;if(this.input.slice(i,r)!=="using"||r===this.input.length||mn(s=this.fullCharCodeAt(r))||s===92)return!1;ot.lastIndex=r;var o=ot.exec(this.input);if(i=r+o[0].length,o&&vt.test(this.input.slice(r,i)))return!1}var l=this.fullCharCodeAt(i);if(!Gt(l)&&l!==92)return!1;var u=i;do i+=l<=65535?1:2;while(mn(l=this.fullCharCodeAt(i)));if(l===92)return!0;var f=this.input.slice(u,i);return!(wc.test(f)||t&&f==="of")};Ce.isAwaitUsing=function(e){return this.isUsingKeyword(!0,e)};Ce.isUsing=function(e){return this.isUsingKeyword(!1,e)};Ce.parseStatement=function(e,t,n){var i=this.type,r=this.startNode(),s;switch(this.isLet(e)&&(i=_._var,s="let"),i){case _._break:case _._continue:return this.parseBreakContinueStatement(r,i.keyword);case _._debugger:return this.parseDebuggerStatement(r);case _._do:return this.parseDoStatement(r);case _._for:return this.parseForStatement(r);case _._function:return e&&(this.strict||e!=="if"&&e!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(r,!1,!e);case _._class:return e&&this.unexpected(),this.parseClass(r,!0);case _._if:return this.parseIfStatement(r);case _._return:return this.parseReturnStatement(r);case _._switch:return this.parseSwitchStatement(r);case _._throw:return this.parseThrowStatement(r);case _._try:return this.parseTryStatement(r);case _._const:case _._var:return s=s||this.value,e&&s!=="var"&&this.unexpected(),this.parseVarStatement(r,s);case _._while:return this.parseWhileStatement(r);case _._with:return this.parseWithStatement(r);case _.braceL:return this.parseBlock(!0,r);case _.semi:return this.parseEmptyStatement(r);case _._export:case _._import:if(this.options.ecmaVersion>10&&i===_._import){ot.lastIndex=this.pos;var o=ot.exec(this.input),l=this.pos+o[0].length,u=this.input.charCodeAt(l);if(u===40||u===46)return this.parseExpressionStatement(r,this.parseExpression())}return this.options.allowImportExportEverywhere||(t||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),i===_._import?this.parseImport(r):this.parseExport(r,n);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(r,!0,!e);var f=this.isAwaitUsing(!1)?"await using":this.isUsing(!1)?"using":null;if(f)return this.allowUsing||this.raise(this.start,"Using declaration cannot appear in the top level when source type is `script` or in the bare case statement"),f==="await using"&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.next(),this.parseVar(r,!1,f),this.semicolon(),this.finishNode(r,"VariableDeclaration");var p=this.value,h=this.parseExpression();return i===_.name&&h.type==="Identifier"&&this.eat(_.colon)?this.parseLabeledStatement(r,p,h,e):this.parseExpressionStatement(r,h)}};Ce.parseBreakContinueStatement=function(e,t){var n=t==="break";this.next(),this.eat(_.semi)||this.insertSemicolon()?e.label=null:this.type!==_.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var i=0;i<this.labels.length;++i){var r=this.labels[i];if((e.label==null||r.name===e.label.name)&&(r.kind!=null&&(n||r.kind==="loop")||e.label&&n))break}return i===this.labels.length&&this.raise(e.start,"Unsyntactic "+t),this.finishNode(e,n?"BreakStatement":"ContinueStatement")};Ce.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")};Ce.parseDoStatement=function(e){return this.next(),this.labels.push(gs),e.body=this.parseStatement("do"),this.labels.pop(),this.expect(_._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(_.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")};Ce.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(gs),this.enterScope(0),this.expect(_.parenL),this.type===_.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var n=this.isLet();if(this.type===_._var||this.type===_._const||n){var i=this.startNode(),r=n?"let":this.value;return this.next(),this.parseVar(i,!0,r),this.finishNode(i,"VariableDeclaration"),this.parseForAfterInit(e,i,t)}var s=this.isContextual("let"),o=!1,l=this.isUsing(!0)?"using":this.isAwaitUsing(!0)?"await using":null;if(l){var u=this.startNode();return this.next(),l==="await using"&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.parseVar(u,!0,l),this.finishNode(u,"VariableDeclaration"),this.parseForAfterInit(e,u,t)}var f=this.containsEsc,p=new Pr,h=this.start,d=t>-1?this.parseExprSubscripts(p,"await"):this.parseExpression(!0,p);return this.type===_._in||(o=this.options.ecmaVersion>=6&&this.isContextual("of"))?(t>-1?(this.type===_._in&&this.unexpected(t),e.await=!0):o&&this.options.ecmaVersion>=8&&(d.start===h&&!f&&d.type==="Identifier"&&d.name==="async"?this.unexpected():this.options.ecmaVersion>=9&&(e.await=!1)),s&&o&&this.raise(d.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(d,!1,p),this.checkLValPattern(d),this.parseForIn(e,d)):(this.checkExpressionErrors(p,!0),t>-1&&this.unexpected(t),this.parseFor(e,d))};Ce.parseForAfterInit=function(e,t,n){return(this.type===_._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&t.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===_._in?n>-1&&this.unexpected(n):e.await=n>-1),this.parseForIn(e,t)):(n>-1&&this.unexpected(n),this.parseFor(e,t))};Ce.parseFunctionStatement=function(e,t,n){return this.next(),this.parseFunction(e,ci|(n?0:Ha),!1,t)};Ce.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(_._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")};Ce.parseReturnStatement=function(e){return this.allowReturn||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(_.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")};Ce.parseSwitchStatement=function(e){this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(_.braceL),this.labels.push(Wg),this.enterScope(Tc);for(var t,n=!1;this.type!==_.braceR;)if(this.type===_._case||this.type===_._default){var i=this.type===_._case;t&&this.finishNode(t,"SwitchCase"),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),i?t.test=this.parseExpression():(n&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),n=!0,t.test=null),this.expect(_.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(null));return this.exitScope(),t&&this.finishNode(t,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(e,"SwitchStatement")};Ce.parseThrowStatement=function(e){return this.next(),vt.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")};var Gg=[];Ce.parseCatchClauseParam=function(){var e=this.parseBindingAtom(),t=e.type==="Identifier";return this.enterScope(t?Ic:0),this.checkLValPattern(e,t?Pc:ln),this.expect(_.parenR),e};Ce.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===_._catch){var t=this.startNode();this.next(),this.eat(_.parenL)?t.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),t.param=null,this.enterScope(0)),t.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(_._finally)?this.parseBlock():null,!e.handler&&!e.finalizer&&this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")};Ce.parseVarStatement=function(e,t,n){return this.next(),this.parseVar(e,!1,t,n),this.semicolon(),this.finishNode(e,"VariableDeclaration")};Ce.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(gs),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")};Ce.parseWithStatement=function(e){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement("with"),this.finishNode(e,"WithStatement")};Ce.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")};Ce.parseLabeledStatement=function(e,t,n,i){for(var r=0,s=this.labels;r<s.length;r+=1){var o=s[r];o.name===t&&this.raise(n.start,"Label '"+t+"' is already declared")}for(var l=this.type.isLoop?"loop":this.type===_._switch?"switch":null,u=this.labels.length-1;u>=0;u--){var f=this.labels[u];if(f.statementStart===e.start)f.statementStart=this.start,f.kind=l;else break}return this.labels.push({name:t,kind:l,statementStart:this.start}),e.body=this.parseStatement(i?i.indexOf("label")===-1?i+"label":i:"label"),this.labels.pop(),e.label=n,this.finishNode(e,"LabeledStatement")};Ce.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")};Ce.parseBlock=function(e,t,n){for(e===void 0&&(e=!0),t===void 0&&(t=this.startNode()),t.body=[],this.expect(_.braceL),e&&this.enterScope(0);this.type!==_.braceR;){var i=this.parseStatement(null);t.body.push(i)}return n&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,"BlockStatement")};Ce.parseFor=function(e,t){return e.init=t,this.expect(_.semi),e.test=this.type===_.semi?null:this.parseExpression(),this.expect(_.semi),e.update=this.type===_.parenR?null:this.parseExpression(),this.expect(_.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")};Ce.parseForIn=function(e,t){var n=this.type===_._in;return this.next(),t.type==="VariableDeclaration"&&t.declarations[0].init!=null&&(!n||this.options.ecmaVersion<8||this.strict||t.kind!=="var"||t.declarations[0].id.type!=="Identifier")&&this.raise(t.start,(n?"for-in":"for-of")+" loop variable declaration may not have an initializer"),e.left=t,e.right=n?this.parseExpression():this.parseMaybeAssign(),this.expect(_.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,n?"ForInStatement":"ForOfStatement")};Ce.parseVar=function(e,t,n,i){for(e.declarations=[],e.kind=n;;){var r=this.startNode();if(this.parseVarId(r,n),this.eat(_.eq)?r.init=this.parseMaybeAssign(t):!i&&n==="const"&&!(this.type===_._in||this.options.ecmaVersion>=6&&this.isContextual("of"))?this.unexpected():!i&&(n==="using"||n==="await using")&&this.options.ecmaVersion>=17&&this.type!==_._in&&!this.isContextual("of")?this.raise(this.lastTokEnd,"Missing initializer in "+n+" declaration"):!i&&r.id.type!=="Identifier"&&!(t&&(this.type===_._in||this.isContextual("of")))?this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):r.init=null,e.declarations.push(this.finishNode(r,"VariableDeclarator")),!this.eat(_.comma))break}return e};Ce.parseVarId=function(e,t){e.id=t==="using"||t==="await using"?this.parseIdent():this.parseBindingAtom(),this.checkLValPattern(e.id,t==="var"?ds:ln,!1)};var ci=1,Ha=2,Rc=4;Ce.parseFunction=function(e,t,n,i,r){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!i)&&(this.type===_.star&&t&Ha&&this.unexpected(),e.generator=this.eat(_.star)),this.options.ecmaVersion>=8&&(e.async=!!i),t&ci&&(e.id=t&Rc&&this.type!==_.name?null:this.parseIdent(),e.id&&!(t&Ha)&&this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?ds:ln:Nc));var s=this.yieldPos,o=this.awaitPos,l=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(ps(e.async,e.generator)),t&ci||(e.id=this.type===_.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,n,!1,r),this.yieldPos=s,this.awaitPos=o,this.awaitIdentPos=l,this.finishNode(e,t&ci?"FunctionDeclaration":"FunctionExpression")};Ce.parseFunctionParams=function(e){this.expect(_.parenL),e.params=this.parseBindingList(_.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()};Ce.parseClass=function(e,t){this.next();var n=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var i=this.enterClassBody(),r=this.startNode(),s=!1;for(r.body=[],this.expect(_.braceL);this.type!==_.braceR;){var o=this.parseClassElement(e.superClass!==null);o&&(r.body.push(o),o.type==="MethodDefinition"&&o.kind==="constructor"?(s&&this.raiseRecoverable(o.start,"Duplicate constructor in the same class"),s=!0):o.key&&o.key.type==="PrivateIdentifier"&&Jg(i,o)&&this.raiseRecoverable(o.key.start,"Identifier '#"+o.key.name+"' has already been declared"))}return this.strict=n,this.next(),e.body=this.finishNode(r,"ClassBody"),this.exitClassBody(),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")};Ce.parseClassElement=function(e){if(this.eat(_.semi))return null;var t=this.options.ecmaVersion,n=this.startNode(),i="",r=!1,s=!1,o="method",l=!1;if(this.eatContextual("static")){if(t>=13&&this.eat(_.braceL))return this.parseClassStaticBlock(n),n;this.isClassElementNameStart()||this.type===_.star?l=!0:i="static"}if(n.static=l,!i&&t>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.type===_.star)&&!this.canInsertSemicolon()?s=!0:i="async"),!i&&(t>=9||!s)&&this.eat(_.star)&&(r=!0),!i&&!s&&!r){var u=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?o=u:i=u)}if(i?(n.computed=!1,n.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),n.key.name=i,this.finishNode(n.key,"Identifier")):this.parseClassElementName(n),t<13||this.type===_.parenL||o!=="method"||r||s){var f=!n.static&&hr(n,"constructor"),p=f&&e;f&&o!=="method"&&this.raise(n.key.start,"Constructor can't have get/set modifier"),n.kind=f?"constructor":o,this.parseClassMethod(n,r,s,p)}else this.parseClassField(n);return n};Ce.isClassElementNameStart=function(){return this.type===_.name||this.type===_.privateId||this.type===_.num||this.type===_.string||this.type===_.bracketL||this.type.keyword};Ce.parseClassElementName=function(e){this.type===_.privateId?(this.value==="constructor"&&this.raise(this.start,"Classes can't have an element named '#constructor'"),e.computed=!1,e.key=this.parsePrivateIdent()):this.parsePropertyName(e)};Ce.parseClassMethod=function(e,t,n,i){var r=e.key;e.kind==="constructor"?(t&&this.raise(r.start,"Constructor can't be a generator"),n&&this.raise(r.start,"Constructor can't be an async method")):e.static&&hr(e,"prototype")&&this.raise(r.start,"Classes may not have a static property named prototype");var s=e.value=this.parseMethod(t,n,i);return e.kind==="get"&&s.params.length!==0&&this.raiseRecoverable(s.start,"getter should have no params"),e.kind==="set"&&s.params.length!==1&&this.raiseRecoverable(s.start,"setter should have exactly one param"),e.kind==="set"&&s.params[0].type==="RestElement"&&this.raiseRecoverable(s.params[0].start,"Setter cannot use rest params"),this.finishNode(e,"MethodDefinition")};Ce.parseClassField=function(e){return hr(e,"constructor")?this.raise(e.key.start,"Classes can't have a field named 'constructor'"):e.static&&hr(e,"prototype")&&this.raise(e.key.start,"Classes can't have a static field named 'prototype'"),this.eat(_.eq)?(this.enterScope(ki|Tr),e.value=this.parseMaybeAssign(),this.exitScope()):e.value=null,this.semicolon(),this.finishNode(e,"PropertyDefinition")};Ce.parseClassStaticBlock=function(e){e.body=[];var t=this.labels;for(this.labels=[],this.enterScope(Pn|Tr);this.type!==_.braceR;){var n=this.parseStatement(null);e.body.push(n)}return this.next(),this.exitScope(),this.labels=t,this.finishNode(e,"StaticBlock")};Ce.parseClassId=function(e,t){this.type===_.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,ln,!1)):(t===!0&&this.unexpected(),e.id=null)};Ce.parseClassSuper=function(e){e.superClass=this.eat(_._extends)?this.parseExprSubscripts(null,!1):null};Ce.enterClassBody=function(){var e={declared:Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared};Ce.exitClassBody=function(){var e=this.privateNameStack.pop(),t=e.declared,n=e.used;if(this.options.checkPrivateFields)for(var i=this.privateNameStack.length,r=i===0?null:this.privateNameStack[i-1],s=0;s<n.length;++s){var o=n[s];Xn(t,o.name)||(r?r.used.push(o):this.raiseRecoverable(o.start,"Private field '#"+o.name+"' must be declared in an enclosing class"))}};function Jg(e,t){var n=t.key.name,i=e[n],r="true";return t.type==="MethodDefinition"&&(t.kind==="get"||t.kind==="set")&&(r=(t.static?"s":"i")+t.kind),i==="iget"&&r==="iset"||i==="iset"&&r==="iget"||i==="sget"&&r==="sset"||i==="sset"&&r==="sget"?(e[n]="true",!1):i?!0:(e[n]=r,!1)}function hr(e,t){var n=e.computed,i=e.key;return!n&&(i.type==="Identifier"&&i.name===t||i.type==="Literal"&&i.value===t)}Ce.parseExportAllDeclaration=function(e,t){return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(e.exported=this.parseModuleExportName(),this.checkExport(t,e.exported,this.lastTokStart)):e.exported=null),this.expectContextual("from"),this.type!==_.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,"ExportAllDeclaration")};Ce.parseExport=function(e,t){if(this.next(),this.eat(_.star))return this.parseExportAllDeclaration(e,t);if(this.eat(_._default))return this.checkExport(t,"default",this.lastTokStart),e.declaration=this.parseExportDefaultDeclaration(),this.finishNode(e,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())e.declaration=this.parseExportDeclaration(e),e.declaration.type==="VariableDeclaration"?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id,e.declaration.id.start),e.specifiers=[],e.source=null,this.options.ecmaVersion>=16&&(e.attributes=[]);else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual("from"))this.type!==_.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause());else{for(var n=0,i=e.specifiers;n<i.length;n+=1){var r=i[n];this.checkUnreserved(r.local),this.checkLocalExport(r.local),r.local.type==="Literal"&&this.raise(r.local.start,"A string literal cannot be used as an exported binding without `from`.")}e.source=null,this.options.ecmaVersion>=16&&(e.attributes=[])}this.semicolon()}return this.finishNode(e,"ExportNamedDeclaration")};Ce.parseExportDeclaration=function(e){return this.parseStatement(null)};Ce.parseExportDefaultDeclaration=function(){var e;if(this.type===_._function||(e=this.isAsyncFunction())){var t=this.startNode();return this.next(),e&&this.next(),this.parseFunction(t,ci|Rc,!1,e)}else if(this.type===_._class){var n=this.startNode();return this.parseClass(n,"nullableID")}else{var i=this.parseMaybeAssign();return this.semicolon(),i}};Ce.checkExport=function(e,t,n){e&&(typeof t!="string"&&(t=t.type==="Identifier"?t.name:t.value),Xn(e,t)&&this.raiseRecoverable(n,"Duplicate export '"+t+"'"),e[t]=!0)};Ce.checkPatternExport=function(e,t){var n=t.type;if(n==="Identifier")this.checkExport(e,t,t.start);else if(n==="ObjectPattern")for(var i=0,r=t.properties;i<r.length;i+=1){var s=r[i];this.checkPatternExport(e,s)}else if(n==="ArrayPattern")for(var o=0,l=t.elements;o<l.length;o+=1){var u=l[o];u&&this.checkPatternExport(e,u)}else n==="Property"?this.checkPatternExport(e,t.value):n==="AssignmentPattern"?this.checkPatternExport(e,t.left):n==="RestElement"&&this.checkPatternExport(e,t.argument)};Ce.checkVariableExport=function(e,t){if(e)for(var n=0,i=t;n<i.length;n+=1){var r=i[n];this.checkPatternExport(e,r.id)}};Ce.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()};Ce.parseExportSpecifier=function(e){var t=this.startNode();return t.local=this.parseModuleExportName(),t.exported=this.eatContextual("as")?this.parseModuleExportName():t.local,this.checkExport(e,t.exported,t.exported.start),this.finishNode(t,"ExportSpecifier")};Ce.parseExportSpecifiers=function(e){var t=[],n=!0;for(this.expect(_.braceL);!this.eat(_.braceR);){if(n)n=!1;else if(this.expect(_.comma),this.afterTrailingComma(_.braceR))break;t.push(this.parseExportSpecifier(e))}return t};Ce.parseImport=function(e){return this.next(),this.type===_.string?(e.specifiers=Gg,e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),e.source=this.type===_.string?this.parseExprAtom():this.unexpected()),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,"ImportDeclaration")};Ce.parseImportSpecifier=function(){var e=this.startNode();return e.imported=this.parseModuleExportName(),this.eatContextual("as")?e.local=this.parseIdent():(this.checkUnreserved(e.imported),e.local=e.imported),this.checkLValSimple(e.local,ln),this.finishNode(e,"ImportSpecifier")};Ce.parseImportDefaultSpecifier=function(){var e=this.startNode();return e.local=this.parseIdent(),this.checkLValSimple(e.local,ln),this.finishNode(e,"ImportDefaultSpecifier")};Ce.parseImportNamespaceSpecifier=function(){var e=this.startNode();return this.next(),this.expectContextual("as"),e.local=this.parseIdent(),this.checkLValSimple(e.local,ln),this.finishNode(e,"ImportNamespaceSpecifier")};Ce.parseImportSpecifiers=function(){var e=[],t=!0;if(this.type===_.name&&(e.push(this.parseImportDefaultSpecifier()),!this.eat(_.comma)))return e;if(this.type===_.star)return e.push(this.parseImportNamespaceSpecifier()),e;for(this.expect(_.braceL);!this.eat(_.braceR);){if(t)t=!1;else if(this.expect(_.comma),this.afterTrailingComma(_.braceR))break;e.push(this.parseImportSpecifier())}return e};Ce.parseWithClause=function(){var e=[];if(!this.eat(_._with))return e;this.expect(_.braceL);for(var t={},n=!0;!this.eat(_.braceR);){if(n)n=!1;else if(this.expect(_.comma),this.afterTrailingComma(_.braceR))break;var i=this.parseImportAttribute(),r=i.key.type==="Identifier"?i.key.name:i.key.value;Xn(t,r)&&this.raiseRecoverable(i.key.start,"Duplicate attribute key '"+r+"'"),t[r]=!0,e.push(i)}return e};Ce.parseImportAttribute=function(){var e=this.startNode();return e.key=this.type===_.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never"),this.expect(_.colon),this.type!==_.string&&this.unexpected(),e.value=this.parseExprAtom(),this.finishNode(e,"ImportAttribute")};Ce.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===_.string){var e=this.parseLiteral(this.value);return Ug.test(e.value)&&this.raise(e.start,"An export name cannot include a lone surrogate."),e}return this.parseIdent(!0)};Ce.adaptDirectivePrologue=function(e){for(var t=0;t<e.length&&this.isDirectiveCandidate(e[t]);++t)e[t].directive=e[t].expression.raw.slice(1,-1)};Ce.isDirectiveCandidate=function(e){return this.options.ecmaVersion>=5&&e.type==="ExpressionStatement"&&e.expression.type==="Literal"&&typeof e.expression.value=="string"&&(this.input[e.start]==='"'||this.input[e.start]==="'")};var jt=rt.prototype;jt.toAssignable=function(e,t,n){if(this.options.ecmaVersion>=6&&e)switch(e.type){case"Identifier":this.inAsync&&e.name==="await"&&this.raise(e.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern",n&&this.checkPatternErrors(n,!0);for(var i=0,r=e.properties;i<r.length;i+=1){var s=r[i];this.toAssignable(s,t),s.type==="RestElement"&&(s.argument.type==="ArrayPattern"||s.argument.type==="ObjectPattern")&&this.raise(s.argument.start,"Unexpected token")}break;case"Property":e.kind!=="init"&&this.raise(e.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(e.value,t);break;case"ArrayExpression":e.type="ArrayPattern",n&&this.checkPatternErrors(n,!0),this.toAssignableList(e.elements,t);break;case"SpreadElement":e.type="RestElement",this.toAssignable(e.argument,t),e.argument.type==="AssignmentPattern"&&this.raise(e.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":e.operator!=="="&&this.raise(e.left.end,"Only '=' operator can be used for specifying default value."),e.type="AssignmentPattern",delete e.operator,this.toAssignable(e.left,t);break;case"ParenthesizedExpression":this.toAssignable(e.expression,t,n);break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!t)break;default:this.raise(e.start,"Assigning to rvalue")}else n&&this.checkPatternErrors(n,!0);return e};jt.toAssignableList=function(e,t){for(var n=e.length,i=0;i<n;i++){var r=e[i];r&&this.toAssignable(r,t)}if(n){var s=e[n-1];this.options.ecmaVersion===6&&t&&s&&s.type==="RestElement"&&s.argument.type!=="Identifier"&&this.unexpected(s.argument.start)}return e};jt.parseSpread=function(e){var t=this.startNode();return this.next(),t.argument=this.parseMaybeAssign(!1,e),this.finishNode(t,"SpreadElement")};jt.parseRestBinding=function(){var e=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==_.name&&this.unexpected(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")};jt.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case _.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(_.bracketR,!0,!0),this.finishNode(e,"ArrayPattern");case _.braceL:return this.parseObj(!0)}return this.parseIdent()};jt.parseBindingList=function(e,t,n,i){for(var r=[],s=!0;!this.eat(e);)if(s?s=!1:this.expect(_.comma),t&&this.type===_.comma)r.push(null);else{if(n&&this.afterTrailingComma(e))break;if(this.type===_.ellipsis){var o=this.parseRestBinding();this.parseBindingListItem(o),r.push(o),this.type===_.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(e);break}else r.push(this.parseAssignableListItem(i))}return r};jt.parseAssignableListItem=function(e){var t=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(t),t};jt.parseBindingListItem=function(e){return e};jt.parseMaybeDefault=function(e,t,n){if(n=n||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(_.eq))return n;var i=this.startNodeAt(e,t);return i.left=n,i.right=this.parseMaybeAssign(),this.finishNode(i,"AssignmentPattern")};jt.checkLValSimple=function(e,t,n){t===void 0&&(t=cr);var i=t!==cr;switch(e.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(e.name)&&this.raiseRecoverable(e.start,(i?"Binding ":"Assigning to ")+e.name+" in strict mode"),i&&(t===ln&&e.name==="let"&&this.raiseRecoverable(e.start,"let is disallowed as a lexically bound name"),n&&(Xn(n,e.name)&&this.raiseRecoverable(e.start,"Argument name clash"),n[e.name]=!0),t!==Oc&&this.declareName(e.name,t,e.start));break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":i&&this.raiseRecoverable(e.start,"Binding member expression");break;case"ParenthesizedExpression":return i&&this.raiseRecoverable(e.start,"Binding parenthesized expression"),this.checkLValSimple(e.expression,t,n);default:this.raise(e.start,(i?"Binding":"Assigning to")+" rvalue")}};jt.checkLValPattern=function(e,t,n){switch(t===void 0&&(t=cr),e.type){case"ObjectPattern":for(var i=0,r=e.properties;i<r.length;i+=1){var s=r[i];this.checkLValInnerPattern(s,t,n)}break;case"ArrayPattern":for(var o=0,l=e.elements;o<l.length;o+=1){var u=l[o];u&&this.checkLValInnerPattern(u,t,n)}break;default:this.checkLValSimple(e,t,n)}};jt.checkLValInnerPattern=function(e,t,n){switch(t===void 0&&(t=cr),e.type){case"Property":this.checkLValInnerPattern(e.value,t,n);break;case"AssignmentPattern":this.checkLValPattern(e.left,t,n);break;case"RestElement":this.checkLValPattern(e.argument,t,n);break;default:this.checkLValPattern(e,t,n)}};var Bt=function(t,n,i,r,s){this.token=t,this.isExpr=!!n,this.preserveSpace=!!i,this.override=r,this.generator=!!s},tt={b_stat:new Bt("{",!1),b_expr:new Bt("{",!0),b_tmpl:new Bt("${",!1),p_stat:new Bt("(",!1),p_expr:new Bt("(",!0),q_tmpl:new Bt("`",!0,!0,function(e){return e.tryReadTemplateToken()}),f_stat:new Bt("function",!1),f_expr:new Bt("function",!0),f_expr_gen:new Bt("function",!0,!1,null,!0),f_gen:new Bt("function",!1,!1,null,!0)},ei=rt.prototype;ei.initialContext=function(){return[tt.b_stat]};ei.curContext=function(){return this.context[this.context.length-1]};ei.braceIsBlock=function(e){var t=this.curContext();return t===tt.f_expr||t===tt.f_stat?!0:e===_.colon&&(t===tt.b_stat||t===tt.b_expr)?!t.isExpr:e===_._return||e===_.name&&this.exprAllowed?vt.test(this.input.slice(this.lastTokEnd,this.start)):e===_._else||e===_.semi||e===_.eof||e===_.parenR||e===_.arrow?!0:e===_.braceL?t===tt.b_stat:e===_._var||e===_._const||e===_.name?!1:!this.exprAllowed};ei.inGeneratorContext=function(){for(var e=this.context.length-1;e>=1;e--){var t=this.context[e];if(t.token==="function")return t.generator}return!1};ei.updateContext=function(e){var t,n=this.type;n.keyword&&e===_.dot?this.exprAllowed=!1:(t=n.updateContext)?t.call(this,e):this.exprAllowed=n.beforeExpr};ei.overrideContext=function(e){this.curContext()!==e&&(this.context[this.context.length-1]=e)};_.parenR.updateContext=_.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var e=this.context.pop();e===tt.b_stat&&this.curContext().token==="function"&&(e=this.context.pop()),this.exprAllowed=!e.isExpr};_.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?tt.b_stat:tt.b_expr),this.exprAllowed=!0};_.dollarBraceL.updateContext=function(){this.context.push(tt.b_tmpl),this.exprAllowed=!0};_.parenL.updateContext=function(e){var t=e===_._if||e===_._for||e===_._with||e===_._while;this.context.push(t?tt.p_stat:tt.p_expr),this.exprAllowed=!0};_.incDec.updateContext=function(){};_._function.updateContext=_._class.updateContext=function(e){e.beforeExpr&&e!==_._else&&!(e===_.semi&&this.curContext()!==tt.p_stat)&&!(e===_._return&&vt.test(this.input.slice(this.lastTokEnd,this.start)))&&!((e===_.colon||e===_.braceL)&&this.curContext()===tt.b_stat)?this.context.push(tt.f_expr):this.context.push(tt.f_stat),this.exprAllowed=!1};_.colon.updateContext=function(){this.curContext().token==="function"&&this.context.pop(),this.exprAllowed=!0};_.backQuote.updateContext=function(){this.curContext()===tt.q_tmpl?this.context.pop():this.context.push(tt.q_tmpl),this.exprAllowed=!1};_.star.updateContext=function(e){if(e===_._function){var t=this.context.length-1;this.context[t]===tt.f_expr?this.context[t]=tt.f_expr_gen:this.context[t]=tt.f_gen}this.exprAllowed=!0};_.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==_.dot&&(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var Re=rt.prototype;Re.checkPropClash=function(e,t,n){if(!(this.options.ecmaVersion>=9&&e.type==="SpreadElement")&&!(this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand))){var i=e.key,r;switch(i.type){case"Identifier":r=i.name;break;case"Literal":r=String(i.value);break;default:return}var s=e.kind;if(this.options.ecmaVersion>=6){r==="__proto__"&&s==="init"&&(t.proto&&(n?n.doubleProto<0&&(n.doubleProto=i.start):this.raiseRecoverable(i.start,"Redefinition of __proto__ property")),t.proto=!0);return}r="$"+r;var o=t[r];if(o){var l;s==="init"?l=this.strict&&o.init||o.get||o.set:l=o.init||o[s],l&&this.raiseRecoverable(i.start,"Redefinition of property")}else o=t[r]={init:!1,get:!1,set:!1};o[s]=!0}};Re.parseExpression=function(e,t){var n=this.start,i=this.startLoc,r=this.parseMaybeAssign(e,t);if(this.type===_.comma){var s=this.startNodeAt(n,i);for(s.expressions=[r];this.eat(_.comma);)s.expressions.push(this.parseMaybeAssign(e,t));return this.finishNode(s,"SequenceExpression")}return r};Re.parseMaybeAssign=function(e,t,n){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(e);this.exprAllowed=!1}var i=!1,r=-1,s=-1,o=-1;t?(r=t.parenthesizedAssign,s=t.trailingComma,o=t.doubleProto,t.parenthesizedAssign=t.trailingComma=-1):(t=new Pr,i=!0);var l=this.start,u=this.startLoc;(this.type===_.parenL||this.type===_.name)&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait=e==="await");var f=this.parseMaybeConditional(e,t);if(n&&(f=n.call(this,f,l,u)),this.type.isAssign){var p=this.startNodeAt(l,u);return p.operator=this.value,this.type===_.eq&&(f=this.toAssignable(f,!1,t)),i||(t.parenthesizedAssign=t.trailingComma=t.doubleProto=-1),t.shorthandAssign>=f.start&&(t.shorthandAssign=-1),this.type===_.eq?this.checkLValPattern(f):this.checkLValSimple(f),p.left=f,this.next(),p.right=this.parseMaybeAssign(e),o>-1&&(t.doubleProto=o),this.finishNode(p,"AssignmentExpression")}else i&&this.checkExpressionErrors(t,!0);return r>-1&&(t.parenthesizedAssign=r),s>-1&&(t.trailingComma=s),f};Re.parseMaybeConditional=function(e,t){var n=this.start,i=this.startLoc,r=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return r;if(this.eat(_.question)){var s=this.startNodeAt(n,i);return s.test=r,s.consequent=this.parseMaybeAssign(),this.expect(_.colon),s.alternate=this.parseMaybeAssign(e),this.finishNode(s,"ConditionalExpression")}return r};Re.parseExprOps=function(e,t){var n=this.start,i=this.startLoc,r=this.parseMaybeUnary(t,!1,!1,e);return this.checkExpressionErrors(t)||r.start===n&&r.type==="ArrowFunctionExpression"?r:this.parseExprOp(r,n,i,-1,e)};Re.parseExprOp=function(e,t,n,i,r){var s=this.type.binop;if(s!=null&&(!r||this.type!==_._in)&&s>i){var o=this.type===_.logicalOR||this.type===_.logicalAND,l=this.type===_.coalesce;l&&(s=_.logicalAND.binop);var u=this.value;this.next();var f=this.start,p=this.startLoc,h=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,r),f,p,s,r),d=this.buildBinary(t,n,e,h,u,o||l);return(o&&this.type===_.coalesce||l&&(this.type===_.logicalOR||this.type===_.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(d,t,n,i,r)}return e};Re.buildBinary=function(e,t,n,i,r,s){i.type==="PrivateIdentifier"&&this.raise(i.start,"Private identifier can only be left side of binary expression");var o=this.startNodeAt(e,t);return o.left=n,o.operator=r,o.right=i,this.finishNode(o,s?"LogicalExpression":"BinaryExpression")};Re.parseMaybeUnary=function(e,t,n,i){var r=this.start,s=this.startLoc,o;if(this.isContextual("await")&&this.canAwait)o=this.parseAwait(i),t=!0;else if(this.type.prefix){var l=this.startNode(),u=this.type===_.incDec;l.operator=this.value,l.prefix=!0,this.next(),l.argument=this.parseMaybeUnary(null,!0,u,i),this.checkExpressionErrors(e,!0),u?this.checkLValSimple(l.argument):this.strict&&l.operator==="delete"&&Lc(l.argument)?this.raiseRecoverable(l.start,"Deleting local variable in strict mode"):l.operator==="delete"&&$a(l.argument)?this.raiseRecoverable(l.start,"Private fields can not be deleted"):t=!0,o=this.finishNode(l,u?"UpdateExpression":"UnaryExpression")}else if(!t&&this.type===_.privateId)(i||this.privateNameStack.length===0)&&this.options.checkPrivateFields&&this.unexpected(),o=this.parsePrivateIdent(),this.type!==_._in&&this.unexpected();else{if(o=this.parseExprSubscripts(e,i),this.checkExpressionErrors(e))return o;for(;this.type.postfix&&!this.canInsertSemicolon();){var f=this.startNodeAt(r,s);f.operator=this.value,f.prefix=!1,f.argument=o,this.checkLValSimple(o),this.next(),o=this.finishNode(f,"UpdateExpression")}}if(!n&&this.eat(_.starstar))if(t)this.unexpected(this.lastTokStart);else return this.buildBinary(r,s,o,this.parseMaybeUnary(null,!1,!1,i),"**",!1);else return o};function Lc(e){return e.type==="Identifier"||e.type==="ParenthesizedExpression"&&Lc(e.expression)}function $a(e){return e.type==="MemberExpression"&&e.property.type==="PrivateIdentifier"||e.type==="ChainExpression"&&$a(e.expression)||e.type==="ParenthesizedExpression"&&$a(e.expression)}Re.parseExprSubscripts=function(e,t){var n=this.start,i=this.startLoc,r=this.parseExprAtom(e,t);if(r.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return r;var s=this.parseSubscripts(r,n,i,!1,t);return e&&s.type==="MemberExpression"&&(e.parenthesizedAssign>=s.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=s.start&&(e.parenthesizedBind=-1),e.trailingComma>=s.start&&(e.trailingComma=-1)),s};Re.parseSubscripts=function(e,t,n,i,r){for(var s=this.options.ecmaVersion>=8&&e.type==="Identifier"&&e.name==="async"&&this.lastTokEnd===e.end&&!this.canInsertSemicolon()&&e.end-e.start===5&&this.potentialArrowAt===e.start,o=!1;;){var l=this.parseSubscript(e,t,n,i,s,o,r);if(l.optional&&(o=!0),l===e||l.type==="ArrowFunctionExpression"){if(o){var u=this.startNodeAt(t,n);u.expression=l,l=this.finishNode(u,"ChainExpression")}return l}e=l}};Re.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(_.arrow)};Re.parseSubscriptAsyncArrow=function(e,t,n,i){return this.parseArrowExpression(this.startNodeAt(e,t),n,!0,i)};Re.parseSubscript=function(e,t,n,i,r,s,o){var l=this.options.ecmaVersion>=11,u=l&&this.eat(_.questionDot);i&&u&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var f=this.eat(_.bracketL);if(f||u&&this.type!==_.parenL&&this.type!==_.backQuote||this.eat(_.dot)){var p=this.startNodeAt(t,n);p.object=e,f?(p.property=this.parseExpression(),this.expect(_.bracketR)):this.type===_.privateId&&e.type!=="Super"?p.property=this.parsePrivateIdent():p.property=this.parseIdent(this.options.allowReserved!=="never"),p.computed=!!f,l&&(p.optional=u),e=this.finishNode(p,"MemberExpression")}else if(!i&&this.eat(_.parenL)){var h=new Pr,d=this.yieldPos,m=this.awaitPos,b=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var v=this.parseExprList(_.parenR,this.options.ecmaVersion>=8,!1,h);if(r&&!u&&this.shouldParseAsyncArrow())return this.checkPatternErrors(h,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=d,this.awaitPos=m,this.awaitIdentPos=b,this.parseSubscriptAsyncArrow(t,n,v,o);this.checkExpressionErrors(h,!0),this.yieldPos=d||this.yieldPos,this.awaitPos=m||this.awaitPos,this.awaitIdentPos=b||this.awaitIdentPos;var S=this.startNodeAt(t,n);S.callee=e,S.arguments=v,l&&(S.optional=u),e=this.finishNode(S,"CallExpression")}else if(this.type===_.backQuote){(u||s)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var E=this.startNodeAt(t,n);E.tag=e,E.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(E,"TaggedTemplateExpression")}return e};Re.parseExprAtom=function(e,t,n){this.type===_.slash&&this.readRegexp();var i,r=this.potentialArrowAt===this.start;switch(this.type){case _._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),i=this.startNode(),this.next(),this.type===_.parenL&&!this.allowDirectSuper&&this.raise(i.start,"super() call outside constructor of a subclass"),this.type!==_.dot&&this.type!==_.bracketL&&this.type!==_.parenL&&this.unexpected(),this.finishNode(i,"Super");case _._this:return i=this.startNode(),this.next(),this.finishNode(i,"ThisExpression");case _.name:var s=this.start,o=this.startLoc,l=this.containsEsc,u=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!l&&u.name==="async"&&!this.canInsertSemicolon()&&this.eat(_._function))return this.overrideContext(tt.f_expr),this.parseFunction(this.startNodeAt(s,o),0,!1,!0,t);if(r&&!this.canInsertSemicolon()){if(this.eat(_.arrow))return this.parseArrowExpression(this.startNodeAt(s,o),[u],!1,t);if(this.options.ecmaVersion>=8&&u.name==="async"&&this.type===_.name&&!l&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc))return u=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(_.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(s,o),[u],!0,t)}return u;case _.regexp:var f=this.value;return i=this.parseLiteral(f.value),i.regex={pattern:f.pattern,flags:f.flags},i;case _.num:case _.string:return this.parseLiteral(this.value);case _._null:case _._true:case _._false:return i=this.startNode(),i.value=this.type===_._null?null:this.type===_._true,i.raw=this.type.keyword,this.next(),this.finishNode(i,"Literal");case _.parenL:var p=this.start,h=this.parseParenAndDistinguishExpression(r,t);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(h)&&(e.parenthesizedAssign=p),e.parenthesizedBind<0&&(e.parenthesizedBind=p)),h;case _.bracketL:return i=this.startNode(),this.next(),i.elements=this.parseExprList(_.bracketR,!0,!0,e),this.finishNode(i,"ArrayExpression");case _.braceL:return this.overrideContext(tt.b_expr),this.parseObj(!1,e);case _._function:return i=this.startNode(),this.next(),this.parseFunction(i,0);case _._class:return this.parseClass(this.startNode(),!1);case _._new:return this.parseNew();case _.backQuote:return this.parseTemplate();case _._import:return this.options.ecmaVersion>=11?this.parseExprImport(n):this.unexpected();default:return this.parseExprAtomDefault()}};Re.parseExprAtomDefault=function(){this.unexpected()};Re.parseExprImport=function(e){var t=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===_.parenL&&!e)return this.parseDynamicImport(t);if(this.type===_.dot){var n=this.startNodeAt(t.start,t.loc&&t.loc.start);return n.name="import",t.meta=this.finishNode(n,"Identifier"),this.parseImportMeta(t)}else this.unexpected()};Re.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)this.eat(_.parenR)?e.options=null:(this.expect(_.comma),this.afterTrailingComma(_.parenR)?e.options=null:(e.options=this.parseMaybeAssign(),this.eat(_.parenR)||(this.expect(_.comma),this.afterTrailingComma(_.parenR)||this.unexpected())));else if(!this.eat(_.parenR)){var t=this.start;this.eat(_.comma)&&this.eat(_.parenR)?this.raiseRecoverable(t,"Trailing comma is not allowed in import()"):this.unexpected(t)}return this.finishNode(e,"ImportExpression")};Re.parseImportMeta=function(e){this.next();var t=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!=="meta"&&this.raiseRecoverable(e.property.start,"The only valid meta property for import is 'import.meta'"),t&&this.raiseRecoverable(e.start,"'import.meta' must not contain escaped characters"),this.options.sourceType!=="module"&&!this.options.allowImportExportEverywhere&&this.raiseRecoverable(e.start,"Cannot use 'import.meta' outside a module"),this.finishNode(e,"MetaProperty")};Re.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),t.raw.charCodeAt(t.raw.length-1)===110&&(t.bigint=t.value!=null?t.value.toString():t.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(t,"Literal")};Re.parseParenExpression=function(){this.expect(_.parenL);var e=this.parseExpression();return this.expect(_.parenR),e};Re.shouldParseArrow=function(e){return!this.canInsertSemicolon()};Re.parseParenAndDistinguishExpression=function(e,t){var n=this.start,i=this.startLoc,r,s=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var o=this.start,l=this.startLoc,u=[],f=!0,p=!1,h=new Pr,d=this.yieldPos,m=this.awaitPos,b;for(this.yieldPos=0,this.awaitPos=0;this.type!==_.parenR;)if(f?f=!1:this.expect(_.comma),s&&this.afterTrailingComma(_.parenR,!0)){p=!0;break}else if(this.type===_.ellipsis){b=this.start,u.push(this.parseParenItem(this.parseRestBinding())),this.type===_.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}else u.push(this.parseMaybeAssign(!1,h,this.parseParenItem));var v=this.lastTokEnd,S=this.lastTokEndLoc;if(this.expect(_.parenR),e&&this.shouldParseArrow(u)&&this.eat(_.arrow))return this.checkPatternErrors(h,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=d,this.awaitPos=m,this.parseParenArrowList(n,i,u,t);(!u.length||p)&&this.unexpected(this.lastTokStart),b&&this.unexpected(b),this.checkExpressionErrors(h,!0),this.yieldPos=d||this.yieldPos,this.awaitPos=m||this.awaitPos,u.length>1?(r=this.startNodeAt(o,l),r.expressions=u,this.finishNodeAt(r,"SequenceExpression",v,S)):r=u[0]}else r=this.parseParenExpression();if(this.options.preserveParens){var E=this.startNodeAt(n,i);return E.expression=r,this.finishNode(E,"ParenthesizedExpression")}else return r};Re.parseParenItem=function(e){return e};Re.parseParenArrowList=function(e,t,n,i){return this.parseArrowExpression(this.startNodeAt(e,t),n,!1,i)};var Yg=[];Re.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var e=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===_.dot){var t=this.startNodeAt(e.start,e.loc&&e.loc.start);t.name="new",e.meta=this.finishNode(t,"Identifier"),this.next();var n=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!=="target"&&this.raiseRecoverable(e.property.start,"The only valid meta property for new is 'new.target'"),n&&this.raiseRecoverable(e.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(e.start,"'new.target' can only be used in functions and class static block"),this.finishNode(e,"MetaProperty")}var i=this.start,r=this.startLoc;return e.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),i,r,!0,!1),this.eat(_.parenL)?e.arguments=this.parseExprList(_.parenR,this.options.ecmaVersion>=8,!1):e.arguments=Yg,this.finishNode(e,"NewExpression")};Re.parseTemplateElement=function(e){var t=e.isTagged,n=this.startNode();return this.type===_.invalidTemplate?(t||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),n.value={raw:this.value.replace(/\r\n?/g,`
|
|
70
18
|
`),cooked:null}):n.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
|
|
71
|
-
`),cooked:this.value},this.next(),n.tail=this.type===N.backQuote,this.finishNode(n,"TemplateElement")};je.parseTemplate=function(e){e===void 0&&(e={});var t=e.isTagged;t===void 0&&(t=!1);var n=this.startNode();this.next(),n.expressions=[];var i=this.parseTemplateElement({isTagged:t});for(n.quasis=[i];!i.tail;)this.type===N.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(N.dollarBraceL),n.expressions.push(this.parseExpression()),this.expect(N.braceR),n.quasis.push(i=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(n,"TemplateLiteral")};je.isAsyncProp=function(e){return!e.computed&&e.key.type==="Identifier"&&e.key.name==="async"&&(this.type===N.name||this.type===N.num||this.type===N.string||this.type===N.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===N.star)&&!zt.test(this.input.slice(this.lastTokEnd,this.start))};je.parseObj=function(e,t){var n=this.startNode(),i=!0,r={};for(n.properties=[],this.next();!this.eat(N.braceR);){if(i)i=!1;else if(this.expect(N.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(N.braceR))break;var a=this.parseProperty(e,t);e||this.checkPropClash(a,r,t),n.properties.push(a)}return this.finishNode(n,e?"ObjectPattern":"ObjectExpression")};je.parseProperty=function(e,t){var n=this.startNode(),i,r,a,s;if(this.options.ecmaVersion>=9&&this.eat(N.ellipsis))return e?(n.argument=this.parseIdent(!1),this.type===N.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(n,"RestElement")):(n.argument=this.parseMaybeAssign(!1,t),this.type===N.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(n,"SpreadElement"));this.options.ecmaVersion>=6&&(n.method=!1,n.shorthand=!1,(e||t)&&(a=this.start,s=this.startLoc),e||(i=this.eat(N.star)));var l=this.containsEsc;return this.parsePropertyName(n),!e&&!l&&this.options.ecmaVersion>=8&&!i&&this.isAsyncProp(n)?(r=!0,i=this.options.ecmaVersion>=9&&this.eat(N.star),this.parsePropertyName(n)):r=!1,this.parsePropertyValue(n,e,i,r,a,s,t,l),this.finishNode(n,"Property")};je.parseGetterSetter=function(e){var t=e.key.name;this.parsePropertyName(e),e.value=this.parseMethod(!1),e.kind=t;var n=e.kind==="get"?0:1;if(e.value.params.length!==n){var i=e.value.start;e.kind==="get"?this.raiseRecoverable(i,"getter should have no params"):this.raiseRecoverable(i,"setter should have exactly one param")}else e.kind==="set"&&e.value.params[0].type==="RestElement"&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")};je.parsePropertyValue=function(e,t,n,i,r,a,s,l){(n||i)&&this.type===N.colon&&this.unexpected(),this.eat(N.colon)?(e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,s),e.kind="init"):this.options.ecmaVersion>=6&&this.type===N.parenL?(t&&this.unexpected(),e.method=!0,e.value=this.parseMethod(n,i),e.kind="init"):!t&&!l&&this.options.ecmaVersion>=5&&!e.computed&&e.key.type==="Identifier"&&(e.key.name==="get"||e.key.name==="set")&&this.type!==N.comma&&this.type!==N.braceR&&this.type!==N.eq?((n||i)&&this.unexpected(),this.parseGetterSetter(e)):this.options.ecmaVersion>=6&&!e.computed&&e.key.type==="Identifier"?((n||i)&&this.unexpected(),this.checkUnreserved(e.key),e.key.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=r),t?e.value=this.parseMaybeDefault(r,a,this.copyNode(e.key)):this.type===N.eq&&s?(s.shorthandAssign<0&&(s.shorthandAssign=this.start),e.value=this.parseMaybeDefault(r,a,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.kind="init",e.shorthand=!0):this.unexpected()};je.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(N.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(N.bracketR),e.key;e.computed=!1}return e.key=this.type===N.num||this.type===N.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")};je.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)};je.parseMethod=function(e,t,n){var i=this.startNode(),r=this.yieldPos,a=this.awaitPos,s=this.awaitIdentPos;return this.initFunction(i),this.options.ecmaVersion>=6&&(i.generator=e),this.options.ecmaVersion>=8&&(i.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Rl(t,i.generator)|Ua|(n?kf:0)),this.expect(N.parenL),i.params=this.parseBindingList(N.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(i,!1,!0,!1),this.yieldPos=r,this.awaitPos=a,this.awaitIdentPos=s,this.finishNode(i,"FunctionExpression")};je.parseArrowExpression=function(e,t,n,i){var r=this.yieldPos,a=this.awaitPos,s=this.awaitIdentPos;return this.enterScope(Rl(n,!1)|Pl),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!n),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1,i),this.yieldPos=r,this.awaitPos=a,this.awaitIdentPos=s,this.finishNode(e,"ArrowFunctionExpression")};je.parseFunctionBody=function(e,t,n,i){var r=t&&this.type!==N.braceL,a=this.strict,s=!1;if(r)e.body=this.parseMaybeAssign(i),e.expression=!0,this.checkParams(e,!1);else{var l=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);(!a||l)&&(s=this.strictDirective(this.end),s&&l&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list"));var u=this.labels;this.labels=[],s&&(this.strict=!0),this.checkParams(e,!a&&!s&&!t&&!n&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLValSimple(e.id,Cf),e.body=this.parseBlock(!1,void 0,s&&!a),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=u}this.exitScope()};je.isSimpleParamList=function(e){for(var t=0,n=e;t<n.length;t+=1){var i=n[t];if(i.type!=="Identifier")return!1}return!0};je.checkParams=function(e,t){for(var n=Object.create(null),i=0,r=e.params;i<r.length;i+=1){var a=r[i];this.checkLValInnerPattern(a,Ml,t?null:n)}};je.parseExprList=function(e,t,n,i){for(var r=[],a=!0;!this.eat(e);){if(a)a=!1;else if(this.expect(N.comma),t&&this.afterTrailingComma(e))break;var s=void 0;n&&this.type===N.comma?s=null:this.type===N.ellipsis?(s=this.parseSpread(i),i&&this.type===N.comma&&i.trailingComma<0&&(i.trailingComma=this.start)):s=this.parseMaybeAssign(!1,i),r.push(s)}return r};je.checkUnreserved=function(e){var t=e.start,n=e.end,i=e.name;if(this.inGenerator&&i==="yield"&&this.raiseRecoverable(t,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&i==="await"&&this.raiseRecoverable(t,"Cannot use 'await' as identifier inside an async function"),!(this.currentThisScope().flags&qa)&&i==="arguments"&&this.raiseRecoverable(t,"Cannot use 'arguments' in class field initializer"),this.inClassStaticBlock&&(i==="arguments"||i==="await")&&this.raise(t,"Cannot use "+i+" in class static initialization block"),this.keywords.test(i)&&this.raise(t,"Unexpected keyword '"+i+"'"),!(this.options.ecmaVersion<6&&this.input.slice(t,n).indexOf("\\")!==-1)){var r=this.strict?this.reservedWordsStrict:this.reservedWords;r.test(i)&&(!this.inAsync&&i==="await"&&this.raiseRecoverable(t,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(t,"The keyword '"+i+"' is reserved"))}};je.parseIdent=function(e){var t=this.parseIdentNode();return this.next(!!e),this.finishNode(t,"Identifier"),e||(this.checkUnreserved(t),t.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=t.start)),t};je.parseIdentNode=function(){var e=this.startNode();return this.type===N.name?e.name=this.value:this.type.keyword?(e.name=this.type.keyword,(e.name==="class"||e.name==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46)&&this.context.pop(),this.type=N.name):this.unexpected(),e};je.parsePrivateIdent=function(){var e=this.startNode();return this.type===N.privateId?e.name=this.value:this.unexpected(),this.next(),this.finishNode(e,"PrivateIdentifier"),this.options.checkPrivateFields&&(this.privateNameStack.length===0?this.raise(e.start,"Private field '#"+e.name+"' must be declared in an enclosing class"):this.privateNameStack[this.privateNameStack.length-1].used.push(e)),e};je.parseYield=function(e){this.yieldPos||(this.yieldPos=this.start);var t=this.startNode();return this.next(),this.type===N.semi||this.canInsertSemicolon()||this.type!==N.star&&!this.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(N.star),t.argument=this.parseMaybeAssign(e)),this.finishNode(t,"YieldExpression")};je.parseAwait=function(e){this.awaitPos||(this.awaitPos=this.start);var t=this.startNode();return this.next(),t.argument=this.parseMaybeUnary(null,!0,!1,e),this.finishNode(t,"AwaitExpression")};var Ia=vt.prototype;Ia.raise=function(e,t){var n=bf(this.input,e);t+=" ("+n.line+":"+n.column+")",this.sourceFile&&(t+=" in "+this.sourceFile);var i=new SyntaxError(t);throw i.pos=e,i.loc=n,i.raisedAt=this.pos,i};Ia.raiseRecoverable=Ia.raise;Ia.curPosition=function(){if(this.options.locations)return new cr(this.curLine,this.pos-this.lineStart)};var Zn=vt.prototype,e1=function(t){this.flags=t,this.var=[],this.lexical=[],this.functions=[]};Zn.enterScope=function(e){this.scopeStack.push(new e1(e))};Zn.exitScope=function(){this.scopeStack.pop()};Zn.treatFunctionsAsVarInScope=function(e){return e.flags&Hi||!this.inModule&&e.flags&hr};Zn.declareName=function(e,t,n){var i=!1;if(t===Mn){var r=this.currentScope();i=r.lexical.indexOf(e)>-1||r.functions.indexOf(e)>-1||r.var.indexOf(e)>-1,r.lexical.push(e),this.inModule&&r.flags&hr&&delete this.undefinedExports[e]}else if(t===Ef){var a=this.currentScope();a.lexical.push(e)}else if(t===Sf){var s=this.currentScope();this.treatFunctionsAsVar?i=s.lexical.indexOf(e)>-1:i=s.lexical.indexOf(e)>-1||s.var.indexOf(e)>-1,s.functions.push(e)}else for(var l=this.scopeStack.length-1;l>=0;--l){var u=this.scopeStack[l];if(u.lexical.indexOf(e)>-1&&!(u.flags&wf&&u.lexical[0]===e)||!this.treatFunctionsAsVarInScope(u)&&u.functions.indexOf(e)>-1){i=!0;break}if(u.var.push(e),this.inModule&&u.flags&hr&&delete this.undefinedExports[e],u.flags&qa)break}i&&this.raiseRecoverable(n,"Identifier '"+e+"' has already been declared")};Zn.checkLocalExport=function(e){this.scopeStack[0].lexical.indexOf(e.name)===-1&&this.scopeStack[0].var.indexOf(e.name)===-1&&(this.undefinedExports[e.name]=e)};Zn.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]};Zn.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&(qa|xr|ci))return t}};Zn.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&(qa|xr|ci)&&!(t.flags&Pl))return t}};var $a=function(t,n,i){this.type="",this.start=n,this.end=0,t.options.locations&&(this.loc=new Wa(t,i)),t.options.directSourceFile&&(this.sourceFile=t.options.directSourceFile),t.options.ranges&&(this.range=[n,0])},br=vt.prototype;br.startNode=function(){return new $a(this,this.start,this.startLoc)};br.startNodeAt=function(e,t){return new $a(this,e,t)};function Af(e,t,n,i){return e.type=t,e.end=n,this.options.locations&&(e.loc.end=i),this.options.ranges&&(e.range[1]=n),e}br.finishNode=function(e,t){return Af.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)};br.finishNodeAt=function(e,t,n,i){return Af.call(this,e,t,n,i)};br.copyNode=function(e){var t=new $a(this,e.start,this.startLoc);for(var n in e)t[n]=e[n];return t};var t1="Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sunu Sunuwar Todhri Todr Tulu_Tigalari Tutg Unknown Zzzz",Nf="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",Tf=Nf+" Extended_Pictographic",Of=Tf,Pf=Of+" EBase EComp EMod EPres ExtPict",Rf=Pf,n1=Rf,i1={9:Nf,10:Tf,11:Of,12:Pf,13:Rf,14:n1},r1="Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji",a1={9:"",10:"",11:"",12:"",13:"",14:r1},Lc="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",Mf="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",Lf=Mf+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",Df=Lf+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",Ff=Df+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",jf=Ff+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",s1=jf+" "+t1,o1={9:Mf,10:Lf,11:Df,12:Ff,13:jf,14:s1},zf={};function l1(e){var t=zf[e]={binary:Kn(i1[e]+" "+Lc),binaryOfStrings:Kn(a1[e]),nonBinary:{General_Category:Kn(Lc),Script:Kn(o1[e])}};t.nonBinary.Script_Extensions=t.nonBinary.Script,t.nonBinary.gc=t.nonBinary.General_Category,t.nonBinary.sc=t.nonBinary.Script,t.nonBinary.scx=t.nonBinary.Script_Extensions}for(var Ss=0,Dc=[9,10,11,12,13,14];Ss<Dc.length;Ss+=1){var u1=Dc[Ss];l1(u1)}var Ne=vt.prototype,_a=function(t,n){this.parent=t,this.base=n||this};_a.prototype.separatedFrom=function(t){for(var n=this;n;n=n.parent)for(var i=t;i;i=i.parent)if(n.base===i.base&&n!==i)return!0;return!1};_a.prototype.sibling=function(){return new _a(this.parent,this.base)};var En=function(t){this.parser=t,this.validFlags="gim"+(t.options.ecmaVersion>=6?"uy":"")+(t.options.ecmaVersion>=9?"s":"")+(t.options.ecmaVersion>=13?"d":"")+(t.options.ecmaVersion>=15?"v":""),this.unicodeProperties=zf[t.options.ecmaVersion>=14?14:t.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=Object.create(null),this.backReferenceNames=[],this.branchID=null};En.prototype.reset=function(t,n,i){var r=i.indexOf("v")!==-1,a=i.indexOf("u")!==-1;this.start=t|0,this.source=n+"",this.flags=i,r&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=a&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=a&&this.parser.options.ecmaVersion>=9)};En.prototype.raise=function(t){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+t)};En.prototype.at=function(t,n){n===void 0&&(n=!1);var i=this.source,r=i.length;if(t>=r)return-1;var a=i.charCodeAt(t);if(!(n||this.switchU)||a<=55295||a>=57344||t+1>=r)return a;var s=i.charCodeAt(t+1);return s>=56320&&s<=57343?(a<<10)+s-56613888:a};En.prototype.nextIndex=function(t,n){n===void 0&&(n=!1);var i=this.source,r=i.length;if(t>=r)return r;var a=i.charCodeAt(t),s;return!(n||this.switchU)||a<=55295||a>=57344||t+1>=r||(s=i.charCodeAt(t+1))<56320||s>57343?t+1:t+2};En.prototype.current=function(t){return t===void 0&&(t=!1),this.at(this.pos,t)};En.prototype.lookahead=function(t){return t===void 0&&(t=!1),this.at(this.nextIndex(this.pos,t),t)};En.prototype.advance=function(t){t===void 0&&(t=!1),this.pos=this.nextIndex(this.pos,t)};En.prototype.eat=function(t,n){return n===void 0&&(n=!1),this.current(n)===t?(this.advance(n),!0):!1};En.prototype.eatChars=function(t,n){n===void 0&&(n=!1);for(var i=this.pos,r=0,a=t;r<a.length;r+=1){var s=a[r],l=this.at(i,n);if(l===-1||l!==s)return!1;i=this.nextIndex(i,n)}return this.pos=i,!0};Ne.validateRegExpFlags=function(e){for(var t=e.validFlags,n=e.flags,i=!1,r=!1,a=0;a<n.length;a++){var s=n.charAt(a);t.indexOf(s)===-1&&this.raise(e.start,"Invalid regular expression flag"),n.indexOf(s,a+1)>-1&&this.raise(e.start,"Duplicate regular expression flag"),s==="u"&&(i=!0),s==="v"&&(r=!0)}this.options.ecmaVersion>=15&&i&&r&&this.raise(e.start,"Invalid regular expression flag")};function c1(e){for(var t in e)return!0;return!1}Ne.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&c1(e.groupNames)&&(e.switchN=!0,this.regexp_pattern(e))};Ne.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue="",e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames=Object.create(null),e.backReferenceNames.length=0,e.branchID=null,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise("Unmatched ')'"),(e.eat(93)||e.eat(125))&&e.raise("Lone quantifier brackets")),e.maxBackReference>e.numCapturingParens&&e.raise("Invalid escape");for(var t=0,n=e.backReferenceNames;t<n.length;t+=1){var i=n[t];e.groupNames[i]||e.raise("Invalid named capture referenced")}};Ne.regexp_disjunction=function(e){var t=this.options.ecmaVersion>=16;for(t&&(e.branchID=new _a(e.branchID,null)),this.regexp_alternative(e);e.eat(124);)t&&(e.branchID=e.branchID.sibling()),this.regexp_alternative(e);t&&(e.branchID=e.branchID.parent),this.regexp_eatQuantifier(e,!0)&&e.raise("Nothing to repeat"),e.eat(123)&&e.raise("Lone quantifier brackets")};Ne.regexp_alternative=function(e){for(;e.pos<e.source.length&&this.regexp_eatTerm(e););};Ne.regexp_eatTerm=function(e){return this.regexp_eatAssertion(e)?(e.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(e)&&e.switchU&&e.raise("Invalid quantifier"),!0):(e.switchU?this.regexp_eatAtom(e):this.regexp_eatExtendedAtom(e))?(this.regexp_eatQuantifier(e),!0):!1};Ne.regexp_eatAssertion=function(e){var t=e.pos;if(e.lastAssertionIsQuantifiable=!1,e.eat(94)||e.eat(36))return!0;if(e.eat(92)){if(e.eat(66)||e.eat(98))return!0;e.pos=t}if(e.eat(40)&&e.eat(63)){var n=!1;if(this.options.ecmaVersion>=9&&(n=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise("Unterminated group"),e.lastAssertionIsQuantifiable=!n,!0}return e.pos=t,!1};Ne.regexp_eatQuantifier=function(e,t){return t===void 0&&(t=!1),this.regexp_eatQuantifierPrefix(e,t)?(e.eat(63),!0):!1};Ne.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)};Ne.regexp_eatBracedQuantifier=function(e,t){var n=e.pos;if(e.eat(123)){var i=0,r=-1;if(this.regexp_eatDecimalDigits(e)&&(i=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(r=e.lastIntValue),e.eat(125)))return r!==-1&&r<i&&!t&&e.raise("numbers out of order in {} quantifier"),!0;e.switchU&&!t&&e.raise("Incomplete quantifier"),e.pos=n}return!1};Ne.regexp_eatAtom=function(e){return this.regexp_eatPatternCharacters(e)||e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)};Ne.regexp_eatReverseSolidusAtomEscape=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatAtomEscape(e))return!0;e.pos=t}return!1};Ne.regexp_eatUncapturingGroup=function(e){var t=e.pos;if(e.eat(40)){if(e.eat(63)){if(this.options.ecmaVersion>=16){var n=this.regexp_eatModifiers(e),i=e.eat(45);if(n||i){for(var r=0;r<n.length;r++){var a=n.charAt(r);n.indexOf(a,r+1)>-1&&e.raise("Duplicate regular expression modifiers")}if(i){var s=this.regexp_eatModifiers(e);!n&&!s&&e.current()===58&&e.raise("Invalid regular expression modifiers");for(var l=0;l<s.length;l++){var u=s.charAt(l);(s.indexOf(u,l+1)>-1||n.indexOf(u)>-1)&&e.raise("Duplicate regular expression modifiers")}}}}if(e.eat(58)){if(this.regexp_disjunction(e),e.eat(41))return!0;e.raise("Unterminated group")}}e.pos=t}return!1};Ne.regexp_eatCapturingGroup=function(e){if(e.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(e):e.current()===63&&e.raise("Invalid group"),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise("Unterminated group")}return!1};Ne.regexp_eatModifiers=function(e){for(var t="",n=0;(n=e.current())!==-1&&h1(n);)t+=Pn(n),e.advance();return t};function h1(e){return e===105||e===109||e===115}Ne.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)};Ne.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1};Ne.regexp_eatSyntaxCharacter=function(e){var t=e.current();return Vf(t)?(e.lastIntValue=t,e.advance(),!0):!1};function Vf(e){return e===36||e>=40&&e<=43||e===46||e===63||e>=91&&e<=94||e>=123&&e<=125}Ne.regexp_eatPatternCharacters=function(e){for(var t=e.pos,n=0;(n=e.current())!==-1&&!Vf(n);)e.advance();return e.pos!==t};Ne.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();return t!==-1&&t!==36&&!(t>=40&&t<=43)&&t!==46&&t!==63&&t!==91&&t!==94&&t!==124?(e.advance(),!0):!1};Ne.regexp_groupSpecifier=function(e){if(e.eat(63)){this.regexp_eatGroupName(e)||e.raise("Invalid group");var t=this.options.ecmaVersion>=16,n=e.groupNames[e.lastStringValue];if(n)if(t)for(var i=0,r=n;i<r.length;i+=1){var a=r[i];a.separatedFrom(e.branchID)||e.raise("Duplicate capture group name")}else e.raise("Duplicate capture group name");t?(n||(e.groupNames[e.lastStringValue]=[])).push(e.branchID):e.groupNames[e.lastStringValue]=!0}};Ne.regexp_eatGroupName=function(e){if(e.lastStringValue="",e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62))return!0;e.raise("Invalid capture group name")}return!1};Ne.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=Pn(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=Pn(e.lastIntValue);return!0}return!1};Ne.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos,n=this.options.ecmaVersion>=11,i=e.current(n);return e.advance(n),i===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,n)&&(i=e.lastIntValue),d1(i)?(e.lastIntValue=i,!0):(e.pos=t,!1)};function d1(e){return kn(e,!0)||e===36||e===95}Ne.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,n=this.options.ecmaVersion>=11,i=e.current(n);return e.advance(n),i===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,n)&&(i=e.lastIntValue),p1(i)?(e.lastIntValue=i,!0):(e.pos=t,!1)};function p1(e){return Un(e,!0)||e===36||e===95||e===8204||e===8205}Ne.regexp_eatAtomEscape=function(e){return this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e)?!0:(e.switchU&&(e.current()===99&&e.raise("Invalid unicode escape"),e.raise("Invalid escape")),!1)};Ne.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var n=e.lastIntValue;if(e.switchU)return n>e.maxBackReference&&(e.maxBackReference=n),!0;if(n<=e.numCapturingParens)return!0;e.pos=t}return!1};Ne.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise("Invalid named reference")}return!1};Ne.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e,!1)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)};Ne.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1};Ne.regexp_eatZero=function(e){return e.current()===48&&!Ja(e.lookahead())?(e.lastIntValue=0,e.advance(),!0):!1};Ne.regexp_eatControlEscape=function(e){var t=e.current();return t===116?(e.lastIntValue=9,e.advance(),!0):t===110?(e.lastIntValue=10,e.advance(),!0):t===118?(e.lastIntValue=11,e.advance(),!0):t===102?(e.lastIntValue=12,e.advance(),!0):t===114?(e.lastIntValue=13,e.advance(),!0):!1};Ne.regexp_eatControlLetter=function(e){var t=e.current();return Bf(t)?(e.lastIntValue=t%32,e.advance(),!0):!1};function Bf(e){return e>=65&&e<=90||e>=97&&e<=122}Ne.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){t===void 0&&(t=!1);var n=e.pos,i=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var r=e.lastIntValue;if(i&&r>=55296&&r<=56319){var a=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var s=e.lastIntValue;if(s>=56320&&s<=57343)return e.lastIntValue=(r-55296)*1024+(s-56320)+65536,!0}e.pos=a,e.lastIntValue=r}return!0}if(i&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&f1(e.lastIntValue))return!0;i&&e.raise("Invalid unicode escape"),e.pos=n}return!1};function f1(e){return e>=0&&e<=1114111}Ne.regexp_eatIdentityEscape=function(e){if(e.switchU)return this.regexp_eatSyntaxCharacter(e)?!0:e.eat(47)?(e.lastIntValue=47,!0):!1;var t=e.current();return t!==99&&(!e.switchN||t!==107)?(e.lastIntValue=t,e.advance(),!0):!1};Ne.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do e.lastIntValue=10*e.lastIntValue+(t-48),e.advance();while((t=e.current())>=48&&t<=57);return!0}return!1};var Hf=0,Rn=1,Zt=2;Ne.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(g1(t))return e.lastIntValue=-1,e.advance(),Rn;var n=!1;if(e.switchU&&this.options.ecmaVersion>=9&&((n=t===80)||t===112)){e.lastIntValue=-1,e.advance();var i;if(e.eat(123)&&(i=this.regexp_eatUnicodePropertyValueExpression(e))&&e.eat(125))return n&&i===Zt&&e.raise("Invalid property name"),i;e.raise("Invalid property name")}return Hf};function g1(e){return e===100||e===68||e===115||e===83||e===119||e===87}Ne.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var n=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var i=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,n,i),Rn}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var r=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,r)}return Hf};Ne.regexp_validateUnicodePropertyNameAndValue=function(e,t,n){Bi(e.unicodeProperties.nonBinary,t)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[t].test(n)||e.raise("Invalid property value")};Ne.regexp_validateUnicodePropertyNameOrValue=function(e,t){if(e.unicodeProperties.binary.test(t))return Rn;if(e.switchV&&e.unicodeProperties.binaryOfStrings.test(t))return Zt;e.raise("Invalid property name")};Ne.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue="";Kf(t=e.current());)e.lastStringValue+=Pn(t),e.advance();return e.lastStringValue!==""};function Kf(e){return Bf(e)||e===95}Ne.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue="";m1(t=e.current());)e.lastStringValue+=Pn(t),e.advance();return e.lastStringValue!==""};function m1(e){return Kf(e)||Ja(e)}Ne.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)};Ne.regexp_eatCharacterClass=function(e){if(e.eat(91)){var t=e.eat(94),n=this.regexp_classContents(e);return e.eat(93)||e.raise("Unterminated character class"),t&&n===Zt&&e.raise("Negated character class may contain strings"),!0}return!1};Ne.regexp_classContents=function(e){return e.current()===93?Rn:e.switchV?this.regexp_classSetExpression(e):(this.regexp_nonEmptyClassRanges(e),Rn)};Ne.regexp_nonEmptyClassRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var n=e.lastIntValue;e.switchU&&(t===-1||n===-1)&&e.raise("Invalid character class"),t!==-1&&n!==-1&&t>n&&e.raise("Range out of order in character class")}}};Ne.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var n=e.current();(n===99||qf(n))&&e.raise("Invalid class escape"),e.raise("Invalid escape")}e.pos=t}var i=e.current();return i!==93?(e.lastIntValue=i,e.advance(),!0):!1};Ne.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)};Ne.regexp_classSetExpression=function(e){var t=Rn,n;if(!this.regexp_eatClassSetRange(e))if(n=this.regexp_eatClassSetOperand(e)){n===Zt&&(t=Zt);for(var i=e.pos;e.eatChars([38,38]);){if(e.current()!==38&&(n=this.regexp_eatClassSetOperand(e))){n!==Zt&&(t=Rn);continue}e.raise("Invalid character in character class")}if(i!==e.pos)return t;for(;e.eatChars([45,45]);)this.regexp_eatClassSetOperand(e)||e.raise("Invalid character in character class");if(i!==e.pos)return t}else e.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(e)){if(n=this.regexp_eatClassSetOperand(e),!n)return t;n===Zt&&(t=Zt)}};Ne.regexp_eatClassSetRange=function(e){var t=e.pos;if(this.regexp_eatClassSetCharacter(e)){var n=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassSetCharacter(e)){var i=e.lastIntValue;return n!==-1&&i!==-1&&n>i&&e.raise("Range out of order in character class"),!0}e.pos=t}return!1};Ne.regexp_eatClassSetOperand=function(e){return this.regexp_eatClassSetCharacter(e)?Rn:this.regexp_eatClassStringDisjunction(e)||this.regexp_eatNestedClass(e)};Ne.regexp_eatNestedClass=function(e){var t=e.pos;if(e.eat(91)){var n=e.eat(94),i=this.regexp_classContents(e);if(e.eat(93))return n&&i===Zt&&e.raise("Negated character class may contain strings"),i;e.pos=t}if(e.eat(92)){var r=this.regexp_eatCharacterClassEscape(e);if(r)return r;e.pos=t}return null};Ne.regexp_eatClassStringDisjunction=function(e){var t=e.pos;if(e.eatChars([92,113])){if(e.eat(123)){var n=this.regexp_classStringDisjunctionContents(e);if(e.eat(125))return n}else e.raise("Invalid escape");e.pos=t}return null};Ne.regexp_classStringDisjunctionContents=function(e){for(var t=this.regexp_classString(e);e.eat(124);)this.regexp_classString(e)===Zt&&(t=Zt);return t};Ne.regexp_classString=function(e){for(var t=0;this.regexp_eatClassSetCharacter(e);)t++;return t===1?Rn:Zt};Ne.regexp_eatClassSetCharacter=function(e){var t=e.pos;if(e.eat(92))return this.regexp_eatCharacterEscape(e)||this.regexp_eatClassSetReservedPunctuator(e)?!0:e.eat(98)?(e.lastIntValue=8,!0):(e.pos=t,!1);var n=e.current();return n<0||n===e.lookahead()&&v1(n)||x1(n)?!1:(e.advance(),e.lastIntValue=n,!0)};function v1(e){return e===33||e>=35&&e<=38||e>=42&&e<=44||e===46||e>=58&&e<=64||e===94||e===96||e===126}function x1(e){return e===40||e===41||e===45||e===47||e>=91&&e<=93||e>=123&&e<=125}Ne.regexp_eatClassSetReservedPunctuator=function(e){var t=e.current();return b1(t)?(e.lastIntValue=t,e.advance(),!0):!1};function b1(e){return e===33||e===35||e===37||e===38||e===44||e===45||e>=58&&e<=62||e===64||e===96||e===126}Ne.regexp_eatClassControlLetter=function(e){var t=e.current();return Ja(t)||t===95?(e.lastIntValue=t%32,e.advance(),!0):!1};Ne.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise("Invalid escape"),e.pos=t}return!1};Ne.regexp_eatDecimalDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;Ja(n=e.current());)e.lastIntValue=10*e.lastIntValue+(n-48),e.advance();return e.pos!==t};function Ja(e){return e>=48&&e<=57}Ne.regexp_eatHexDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;Wf(n=e.current());)e.lastIntValue=16*e.lastIntValue+Uf(n),e.advance();return e.pos!==t};function Wf(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function Uf(e){return e>=65&&e<=70?10+(e-65):e>=97&&e<=102?10+(e-97):e-48}Ne.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var n=e.lastIntValue;t<=3&&this.regexp_eatOctalDigit(e)?e.lastIntValue=t*64+n*8+e.lastIntValue:e.lastIntValue=t*8+n}else e.lastIntValue=t;return!0}return!1};Ne.regexp_eatOctalDigit=function(e){var t=e.current();return qf(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)};function qf(e){return e>=48&&e<=55}Ne.regexp_eatFixedHexDigits=function(e,t){var n=e.pos;e.lastIntValue=0;for(var i=0;i<t;++i){var r=e.current();if(!Wf(r))return e.pos=n,!1;e.lastIntValue=16*e.lastIntValue+Uf(r),e.advance()}return!0};var Dl=function(t){this.type=t.type,this.value=t.value,this.start=t.start,this.end=t.end,t.options.locations&&(this.loc=new Wa(t,t.startLoc,t.endLoc)),t.options.ranges&&(this.range=[t.start,t.end])},Ue=vt.prototype;Ue.next=function(e){!e&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new Dl(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()};Ue.getToken=function(){return this.next(),new Dl(this)};typeof Symbol<"u"&&(Ue[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===N.eof,value:t}}}});Ue.nextToken=function(){var e=this.curContext();if((!e||!e.preserveSpace)&&this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length)return this.finishToken(N.eof);if(e.override)return e.override(this);this.readToken(this.fullCharCodeAtPos())};Ue.readToken=function(e){return kn(e,this.options.ecmaVersion>=6)||e===92?this.readWord():this.getTokenFromCode(e)};Ue.fullCharCodeAtPos=function(){var e=this.input.charCodeAt(this.pos);if(e<=55295||e>=56320)return e;var t=this.input.charCodeAt(this.pos+1);return t<=56319||t>=57344?e:(e<<10)+t-56613888};Ue.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition(),t=this.pos,n=this.input.indexOf("*/",this.pos+=2);if(n===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=n+2,this.options.locations)for(var i=void 0,r=t;(i=mf(this.input,r,this.pos))>-1;)++this.curLine,r=this.lineStart=i;this.options.onComment&&this.options.onComment(!0,this.input.slice(t+2,n),t,this.pos,e,this.curPosition())};Ue.skipLineComment=function(e){for(var t=this.pos,n=this.options.onComment&&this.curPosition(),i=this.input.charCodeAt(this.pos+=e);this.pos<this.input.length&&!Vi(i);)i=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(t+e,this.pos),t,this.pos,n,this.curPosition())};Ue.skipSpace=function(){e:for(;this.pos<this.input.length;){var e=this.input.charCodeAt(this.pos);switch(e){case 32:case 160:++this.pos;break;case 13:this.input.charCodeAt(this.pos+1)===10&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break e}break;default:if(e>8&&e<14||e>=5760&&vf.test(String.fromCharCode(e)))++this.pos;else break e}}};Ue.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var n=this.type;this.type=e,this.value=t,this.updateContext(n)};Ue.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&e===46&&t===46?(this.pos+=3,this.finishToken(N.ellipsis)):(++this.pos,this.finishToken(N.dot))};Ue.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):e===61?this.finishOp(N.assign,2):this.finishOp(N.slash,1)};Ue.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),n=1,i=e===42?N.star:N.modulo;return this.options.ecmaVersion>=7&&e===42&&t===42&&(++n,i=N.starstar,t=this.input.charCodeAt(this.pos+2)),t===61?this.finishOp(N.assign,n+1):this.finishOp(i,n)};Ue.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);if(t===e){if(this.options.ecmaVersion>=12){var n=this.input.charCodeAt(this.pos+2);if(n===61)return this.finishOp(N.assign,3)}return this.finishOp(e===124?N.logicalOR:N.logicalAND,2)}return t===61?this.finishOp(N.assign,2):this.finishOp(e===124?N.bitwiseOR:N.bitwiseAND,1)};Ue.readToken_caret=function(){var e=this.input.charCodeAt(this.pos+1);return e===61?this.finishOp(N.assign,2):this.finishOp(N.bitwiseXOR,1)};Ue.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?t===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||zt.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(N.incDec,2):t===61?this.finishOp(N.assign,2):this.finishOp(N.plusMin,1)};Ue.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),n=1;return t===e?(n=e===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+n)===61?this.finishOp(N.assign,n+1):this.finishOp(N.bitShift,n)):t===33&&e===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(t===61&&(n=2),this.finishOp(N.relational,n))};Ue.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return t===61?this.finishOp(N.equality,this.input.charCodeAt(this.pos+2)===61?3:2):e===61&&t===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(N.arrow)):this.finishOp(e===61?N.eq:N.prefix,1)};Ue.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(t===46){var n=this.input.charCodeAt(this.pos+2);if(n<48||n>57)return this.finishOp(N.questionDot,2)}if(t===63){if(e>=12){var i=this.input.charCodeAt(this.pos+2);if(i===61)return this.finishOp(N.assign,3)}return this.finishOp(N.coalesce,2)}}return this.finishOp(N.question,1)};Ue.readToken_numberSign=function(){var e=this.options.ecmaVersion,t=35;if(e>=13&&(++this.pos,t=this.fullCharCodeAtPos(),kn(t,!0)||t===92))return this.finishToken(N.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+Pn(t)+"'")};Ue.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(N.parenL);case 41:return++this.pos,this.finishToken(N.parenR);case 59:return++this.pos,this.finishToken(N.semi);case 44:return++this.pos,this.finishToken(N.comma);case 91:return++this.pos,this.finishToken(N.bracketL);case 93:return++this.pos,this.finishToken(N.bracketR);case 123:return++this.pos,this.finishToken(N.braceL);case 125:return++this.pos,this.finishToken(N.braceR);case 58:return++this.pos,this.finishToken(N.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(N.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(t===120||t===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(t===111||t===79)return this.readRadixNumber(8);if(t===98||t===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 63:return this.readToken_question();case 126:return this.finishOp(N.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+Pn(e)+"'")};Ue.finishOp=function(e,t){var n=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,n)};Ue.readRegexp=function(){for(var e,t,n=this.pos;;){this.pos>=this.input.length&&this.raise(n,"Unterminated regular expression");var i=this.input.charAt(this.pos);if(zt.test(i)&&this.raise(n,"Unterminated regular expression"),e)e=!1;else{if(i==="[")t=!0;else if(i==="]"&&t)t=!1;else if(i==="/"&&!t)break;e=i==="\\"}++this.pos}var r=this.input.slice(n,this.pos);++this.pos;var a=this.pos,s=this.readWord1();this.containsEsc&&this.unexpected(a);var l=this.regexpState||(this.regexpState=new En(this));l.reset(n,r,s),this.validateRegExpFlags(l),this.validateRegExpPattern(l);var u=null;try{u=new RegExp(r,s)}catch{}return this.finishToken(N.regexp,{pattern:r,flags:s,value:u})};Ue.readInt=function(e,t,n){for(var i=this.options.ecmaVersion>=12&&t===void 0,r=n&&this.input.charCodeAt(this.pos)===48,a=this.pos,s=0,l=0,u=0,c=t??1/0;u<c;++u,++this.pos){var d=this.input.charCodeAt(this.pos),p=void 0;if(i&&d===95){r&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),l===95&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),u===0&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),l=d;continue}if(d>=97?p=d-97+10:d>=65?p=d-65+10:d>=48&&d<=57?p=d-48:p=1/0,p>=e)break;l=d,s=s*e+p}return i&&l===95&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===a||t!=null&&this.pos-a!==t?null:s};function y1(e,t){return t?parseInt(e,8):parseFloat(e.replace(/_/g,""))}function Gf(e){return typeof BigInt!="function"?null:BigInt(e.replace(/_/g,""))}Ue.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var n=this.readInt(e);return n==null&&this.raise(this.start+2,"Expected number in radix "+e),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(n=Gf(this.input.slice(t,this.pos)),++this.pos):kn(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(N.num,n)};Ue.readNumber=function(e){var t=this.pos;!e&&this.readInt(10,void 0,!0)===null&&this.raise(t,"Invalid number");var n=this.pos-t>=2&&this.input.charCodeAt(t)===48;n&&this.strict&&this.raise(t,"Invalid number");var i=this.input.charCodeAt(this.pos);if(!n&&!e&&this.options.ecmaVersion>=11&&i===110){var r=Gf(this.input.slice(t,this.pos));return++this.pos,kn(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(N.num,r)}n&&/[89]/.test(this.input.slice(t,this.pos))&&(n=!1),i===46&&!n&&(++this.pos,this.readInt(10),i=this.input.charCodeAt(this.pos)),(i===69||i===101)&&!n&&(i=this.input.charCodeAt(++this.pos),(i===43||i===45)&&++this.pos,this.readInt(10)===null&&this.raise(t,"Invalid number")),kn(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var a=y1(this.input.slice(t,this.pos),n);return this.finishToken(N.num,a)};Ue.readCodePoint=function(){var e=this.input.charCodeAt(this.pos),t;if(e===123){this.options.ecmaVersion<6&&this.unexpected();var n=++this.pos;t=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,t>1114111&&this.invalidStringToken(n,"Code point out of bounds")}else t=this.readHexChar(4);return t};Ue.readString=function(e){for(var t="",n=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var i=this.input.charCodeAt(this.pos);if(i===e)break;i===92?(t+=this.input.slice(n,this.pos),t+=this.readEscapedChar(!1),n=this.pos):i===8232||i===8233?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(Vi(i)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(n,this.pos++),this.finishToken(N.string,t)};var $f={};Ue.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e===$f)this.readInvalidTemplateToken();else throw e}this.inTemplateElement=!1};Ue.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw $f;this.raise(e,t)};Ue.readTmplToken=function(){for(var e="",t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var n=this.input.charCodeAt(this.pos);if(n===96||n===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===N.template||this.type===N.invalidTemplate)?n===36?(this.pos+=2,this.finishToken(N.dollarBraceL)):(++this.pos,this.finishToken(N.backQuote)):(e+=this.input.slice(t,this.pos),this.finishToken(N.template,e));if(n===92)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(Vi(n)){switch(e+=this.input.slice(t,this.pos),++this.pos,n){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:e+=`
|
|
72
|
-
`;break;default:e+=String.fromCharCode(n);break}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}};
|
|
19
|
+
`),cooked:this.value},this.next(),n.tail=this.type===_.backQuote,this.finishNode(n,"TemplateElement")};Re.parseTemplate=function(e){e===void 0&&(e={});var t=e.isTagged;t===void 0&&(t=!1);var n=this.startNode();this.next(),n.expressions=[];var i=this.parseTemplateElement({isTagged:t});for(n.quasis=[i];!i.tail;)this.type===_.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(_.dollarBraceL),n.expressions.push(this.parseExpression()),this.expect(_.braceR),n.quasis.push(i=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(n,"TemplateLiteral")};Re.isAsyncProp=function(e){return!e.computed&&e.key.type==="Identifier"&&e.key.name==="async"&&(this.type===_.name||this.type===_.num||this.type===_.string||this.type===_.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===_.star)&&!vt.test(this.input.slice(this.lastTokEnd,this.start))};Re.parseObj=function(e,t){var n=this.startNode(),i=!0,r={};for(n.properties=[],this.next();!this.eat(_.braceR);){if(i)i=!1;else if(this.expect(_.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(_.braceR))break;var s=this.parseProperty(e,t);e||this.checkPropClash(s,r,t),n.properties.push(s)}return this.finishNode(n,e?"ObjectPattern":"ObjectExpression")};Re.parseProperty=function(e,t){var n=this.startNode(),i,r,s,o;if(this.options.ecmaVersion>=9&&this.eat(_.ellipsis))return e?(n.argument=this.parseIdent(!1),this.type===_.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(n,"RestElement")):(n.argument=this.parseMaybeAssign(!1,t),this.type===_.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(n,"SpreadElement"));this.options.ecmaVersion>=6&&(n.method=!1,n.shorthand=!1,(e||t)&&(s=this.start,o=this.startLoc),e||(i=this.eat(_.star)));var l=this.containsEsc;return this.parsePropertyName(n),!e&&!l&&this.options.ecmaVersion>=8&&!i&&this.isAsyncProp(n)?(r=!0,i=this.options.ecmaVersion>=9&&this.eat(_.star),this.parsePropertyName(n)):r=!1,this.parsePropertyValue(n,e,i,r,s,o,t,l),this.finishNode(n,"Property")};Re.parseGetterSetter=function(e){var t=e.key.name;this.parsePropertyName(e),e.value=this.parseMethod(!1),e.kind=t;var n=e.kind==="get"?0:1;if(e.value.params.length!==n){var i=e.value.start;e.kind==="get"?this.raiseRecoverable(i,"getter should have no params"):this.raiseRecoverable(i,"setter should have exactly one param")}else e.kind==="set"&&e.value.params[0].type==="RestElement"&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")};Re.parsePropertyValue=function(e,t,n,i,r,s,o,l){(n||i)&&this.type===_.colon&&this.unexpected(),this.eat(_.colon)?(e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,o),e.kind="init"):this.options.ecmaVersion>=6&&this.type===_.parenL?(t&&this.unexpected(),e.method=!0,e.value=this.parseMethod(n,i),e.kind="init"):!t&&!l&&this.options.ecmaVersion>=5&&!e.computed&&e.key.type==="Identifier"&&(e.key.name==="get"||e.key.name==="set")&&this.type!==_.comma&&this.type!==_.braceR&&this.type!==_.eq?((n||i)&&this.unexpected(),this.parseGetterSetter(e)):this.options.ecmaVersion>=6&&!e.computed&&e.key.type==="Identifier"?((n||i)&&this.unexpected(),this.checkUnreserved(e.key),e.key.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=r),t?e.value=this.parseMaybeDefault(r,s,this.copyNode(e.key)):this.type===_.eq&&o?(o.shorthandAssign<0&&(o.shorthandAssign=this.start),e.value=this.parseMaybeDefault(r,s,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.kind="init",e.shorthand=!0):this.unexpected()};Re.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(_.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(_.bracketR),e.key;e.computed=!1}return e.key=this.type===_.num||this.type===_.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")};Re.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)};Re.parseMethod=function(e,t,n){var i=this.startNode(),r=this.yieldPos,s=this.awaitPos,o=this.awaitIdentPos;return this.initFunction(i),this.options.ecmaVersion>=6&&(i.generator=e),this.options.ecmaVersion>=8&&(i.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(ps(t,i.generator)|Tr|(n?Ac:0)),this.expect(_.parenL),i.params=this.parseBindingList(_.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(i,!1,!0,!1),this.yieldPos=r,this.awaitPos=s,this.awaitIdentPos=o,this.finishNode(i,"FunctionExpression")};Re.parseArrowExpression=function(e,t,n,i){var r=this.yieldPos,s=this.awaitPos,o=this.awaitIdentPos;return this.enterScope(ps(n,!1)|fs),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!n),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1,i),this.yieldPos=r,this.awaitPos=s,this.awaitIdentPos=o,this.finishNode(e,"ArrowFunctionExpression")};Re.parseFunctionBody=function(e,t,n,i){var r=t&&this.type!==_.braceL,s=this.strict,o=!1;if(r)e.body=this.parseMaybeAssign(i),e.expression=!0,this.checkParams(e,!1);else{var l=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);(!s||l)&&(o=this.strictDirective(this.end),o&&l&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list"));var u=this.labels;this.labels=[],o&&(this.strict=!0),this.checkParams(e,!s&&!o&&!t&&!n&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLValSimple(e.id,Oc),e.body=this.parseBlock(!1,void 0,o&&!s),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=u}this.exitScope()};Re.isSimpleParamList=function(e){for(var t=0,n=e;t<n.length;t+=1){var i=n[t];if(i.type!=="Identifier")return!1}return!0};Re.checkParams=function(e,t){for(var n=Object.create(null),i=0,r=e.params;i<r.length;i+=1){var s=r[i];this.checkLValInnerPattern(s,ds,t?null:n)}};Re.parseExprList=function(e,t,n,i){for(var r=[],s=!0;!this.eat(e);){if(s)s=!1;else if(this.expect(_.comma),t&&this.afterTrailingComma(e))break;var o=void 0;n&&this.type===_.comma?o=null:this.type===_.ellipsis?(o=this.parseSpread(i),i&&this.type===_.comma&&i.trailingComma<0&&(i.trailingComma=this.start)):o=this.parseMaybeAssign(!1,i),r.push(o)}return r};Re.checkUnreserved=function(e){var t=e.start,n=e.end,i=e.name;if(this.inGenerator&&i==="yield"&&this.raiseRecoverable(t,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&i==="await"&&this.raiseRecoverable(t,"Cannot use 'await' as identifier inside an async function"),!(this.currentThisScope().flags&Nr)&&i==="arguments"&&this.raiseRecoverable(t,"Cannot use 'arguments' in class field initializer"),this.inClassStaticBlock&&(i==="arguments"||i==="await")&&this.raise(t,"Cannot use "+i+" in class static initialization block"),this.keywords.test(i)&&this.raise(t,"Unexpected keyword '"+i+"'"),!(this.options.ecmaVersion<6&&this.input.slice(t,n).indexOf("\\")!==-1)){var r=this.strict?this.reservedWordsStrict:this.reservedWords;r.test(i)&&(!this.inAsync&&i==="await"&&this.raiseRecoverable(t,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(t,"The keyword '"+i+"' is reserved"))}};Re.parseIdent=function(e){var t=this.parseIdentNode();return this.next(!!e),this.finishNode(t,"Identifier"),e||(this.checkUnreserved(t),t.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=t.start)),t};Re.parseIdentNode=function(){var e=this.startNode();return this.type===_.name?e.name=this.value:this.type.keyword?(e.name=this.type.keyword,(e.name==="class"||e.name==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46)&&this.context.pop(),this.type=_.name):this.unexpected(),e};Re.parsePrivateIdent=function(){var e=this.startNode();return this.type===_.privateId?e.name=this.value:this.unexpected(),this.next(),this.finishNode(e,"PrivateIdentifier"),this.options.checkPrivateFields&&(this.privateNameStack.length===0?this.raise(e.start,"Private field '#"+e.name+"' must be declared in an enclosing class"):this.privateNameStack[this.privateNameStack.length-1].used.push(e)),e};Re.parseYield=function(e){this.yieldPos||(this.yieldPos=this.start);var t=this.startNode();return this.next(),this.type===_.semi||this.canInsertSemicolon()||this.type!==_.star&&!this.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(_.star),t.argument=this.parseMaybeAssign(e)),this.finishNode(t,"YieldExpression")};Re.parseAwait=function(e){this.awaitPos||(this.awaitPos=this.start);var t=this.startNode();return this.next(),t.argument=this.parseMaybeUnary(null,!0,!1,e),this.finishNode(t,"AwaitExpression")};var fr=rt.prototype;fr.raise=function(e,t){var n=Cc(this.input,e);t+=" ("+n.line+":"+n.column+")",this.sourceFile&&(t+=" in "+this.sourceFile);var i=new SyntaxError(t);throw i.pos=e,i.loc=n,i.raisedAt=this.pos,i};fr.raiseRecoverable=fr.raise;fr.curPosition=function(){if(this.options.locations)return new xi(this.curLine,this.pos-this.lineStart)};var bn=rt.prototype,Qg=function(t){this.flags=t,this.var=[],this.lexical=[],this.functions=[]};bn.enterScope=function(e){this.scopeStack.push(new Qg(e))};bn.exitScope=function(){this.scopeStack.pop()};bn.treatFunctionsAsVarInScope=function(e){return e.flags&Nn||!this.inModule&&e.flags&In};bn.declareName=function(e,t,n){var i=!1;if(t===ln){var r=this.currentScope();i=r.lexical.indexOf(e)>-1||r.functions.indexOf(e)>-1||r.var.indexOf(e)>-1,r.lexical.push(e),this.inModule&&r.flags&In&&delete this.undefinedExports[e]}else if(t===Pc){var s=this.currentScope();s.lexical.push(e)}else if(t===Nc){var o=this.currentScope();this.treatFunctionsAsVar?i=o.lexical.indexOf(e)>-1:i=o.lexical.indexOf(e)>-1||o.var.indexOf(e)>-1,o.functions.push(e)}else for(var l=this.scopeStack.length-1;l>=0;--l){var u=this.scopeStack[l];if(u.lexical.indexOf(e)>-1&&!(u.flags&Ic&&u.lexical[0]===e)||!this.treatFunctionsAsVarInScope(u)&&u.functions.indexOf(e)>-1){i=!0;break}if(u.var.push(e),this.inModule&&u.flags&In&&delete this.undefinedExports[e],u.flags&Nr)break}i&&this.raiseRecoverable(n,"Identifier '"+e+"' has already been declared")};bn.checkLocalExport=function(e){this.scopeStack[0].lexical.indexOf(e.name)===-1&&this.scopeStack[0].var.indexOf(e.name)===-1&&(this.undefinedExports[e.name]=e)};bn.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]};bn.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&(Nr|ki|Pn))return t}};bn.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&(Nr|ki|Pn)&&!(t.flags&fs))return t}};var Or=function(t,n,i){this.type="",this.start=n,this.end=0,t.options.locations&&(this.loc=new Ar(t,i)),t.options.directSourceFile&&(this.sourceFile=t.options.directSourceFile),t.options.ranges&&(this.range=[n,0])},Ci=rt.prototype;Ci.startNode=function(){return new Or(this,this.start,this.startLoc)};Ci.startNodeAt=function(e,t){return new Or(this,e,t)};function Mc(e,t,n,i){return e.type=t,e.end=n,this.options.locations&&(e.loc.end=i),this.options.ranges&&(e.range[1]=n),e}Ci.finishNode=function(e,t){return Mc.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)};Ci.finishNodeAt=function(e,t,n,i){return Mc.call(this,e,t,n,i)};Ci.copyNode=function(e){var t=new Or(this,e.start,this.startLoc);for(var n in e)t[n]=e[n];return t};var Zg="Berf Beria_Erfe Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sidetic Sidt Sunu Sunuwar Tai_Yo Tayo Todhri Todr Tolong_Siki Tols Tulu_Tigalari Tutg Unknown Zzzz",Fc="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",Dc=Fc+" Extended_Pictographic",jc=Dc,Vc=jc+" EBase EComp EMod EPres ExtPict",Bc=Vc,Xg=Bc,em={9:Fc,10:Dc,11:jc,12:Vc,13:Bc,14:Xg},tm="Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji",nm={9:"",10:"",11:"",12:"",13:"",14:tm},sl="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",zc="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",Kc=zc+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",Uc=Kc+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",Hc=Uc+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",$c=Hc+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",im=$c+" "+Zg,rm={9:zc,10:Kc,11:Uc,12:Hc,13:$c,14:im},qc={};function am(e){var t=qc[e]={binary:pn(em[e]+" "+sl),binaryOfStrings:pn(nm[e]),nonBinary:{General_Category:pn(sl),Script:pn(rm[e])}};t.nonBinary.Script_Extensions=t.nonBinary.Script,t.nonBinary.gc=t.nonBinary.General_Category,t.nonBinary.sc=t.nonBinary.Script,t.nonBinary.scx=t.nonBinary.Script_Extensions}for(var Zr=0,ol=[9,10,11,12,13,14];Zr<ol.length;Zr+=1){var sm=ol[Zr];am(sm)}var Ee=rt.prototype,pr=function(t,n){this.parent=t,this.base=n||this};pr.prototype.separatedFrom=function(t){for(var n=this;n;n=n.parent)for(var i=t;i;i=i.parent)if(n.base===i.base&&n!==i)return!0;return!1};pr.prototype.sibling=function(){return new pr(this.parent,this.base)};var Yt=function(t){this.parser=t,this.validFlags="gim"+(t.options.ecmaVersion>=6?"uy":"")+(t.options.ecmaVersion>=9?"s":"")+(t.options.ecmaVersion>=13?"d":"")+(t.options.ecmaVersion>=15?"v":""),this.unicodeProperties=qc[t.options.ecmaVersion>=14?14:t.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=Object.create(null),this.backReferenceNames=[],this.branchID=null};Yt.prototype.reset=function(t,n,i){var r=i.indexOf("v")!==-1,s=i.indexOf("u")!==-1;this.start=t|0,this.source=n+"",this.flags=i,r&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=s&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=s&&this.parser.options.ecmaVersion>=9)};Yt.prototype.raise=function(t){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+t)};Yt.prototype.at=function(t,n){n===void 0&&(n=!1);var i=this.source,r=i.length;if(t>=r)return-1;var s=i.charCodeAt(t);if(!(n||this.switchU)||s<=55295||s>=57344||t+1>=r)return s;var o=i.charCodeAt(t+1);return o>=56320&&o<=57343?(s<<10)+o-56613888:s};Yt.prototype.nextIndex=function(t,n){n===void 0&&(n=!1);var i=this.source,r=i.length;if(t>=r)return r;var s=i.charCodeAt(t),o;return!(n||this.switchU)||s<=55295||s>=57344||t+1>=r||(o=i.charCodeAt(t+1))<56320||o>57343?t+1:t+2};Yt.prototype.current=function(t){return t===void 0&&(t=!1),this.at(this.pos,t)};Yt.prototype.lookahead=function(t){return t===void 0&&(t=!1),this.at(this.nextIndex(this.pos,t),t)};Yt.prototype.advance=function(t){t===void 0&&(t=!1),this.pos=this.nextIndex(this.pos,t)};Yt.prototype.eat=function(t,n){return n===void 0&&(n=!1),this.current(n)===t?(this.advance(n),!0):!1};Yt.prototype.eatChars=function(t,n){n===void 0&&(n=!1);for(var i=this.pos,r=0,s=t;r<s.length;r+=1){var o=s[r],l=this.at(i,n);if(l===-1||l!==o)return!1;i=this.nextIndex(i,n)}return this.pos=i,!0};Ee.validateRegExpFlags=function(e){for(var t=e.validFlags,n=e.flags,i=!1,r=!1,s=0;s<n.length;s++){var o=n.charAt(s);t.indexOf(o)===-1&&this.raise(e.start,"Invalid regular expression flag"),n.indexOf(o,s+1)>-1&&this.raise(e.start,"Duplicate regular expression flag"),o==="u"&&(i=!0),o==="v"&&(r=!0)}this.options.ecmaVersion>=15&&i&&r&&this.raise(e.start,"Invalid regular expression flag")};function om(e){for(var t in e)return!0;return!1}Ee.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&om(e.groupNames)&&(e.switchN=!0,this.regexp_pattern(e))};Ee.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue="",e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames=Object.create(null),e.backReferenceNames.length=0,e.branchID=null,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise("Unmatched ')'"),(e.eat(93)||e.eat(125))&&e.raise("Lone quantifier brackets")),e.maxBackReference>e.numCapturingParens&&e.raise("Invalid escape");for(var t=0,n=e.backReferenceNames;t<n.length;t+=1){var i=n[t];e.groupNames[i]||e.raise("Invalid named capture referenced")}};Ee.regexp_disjunction=function(e){var t=this.options.ecmaVersion>=16;for(t&&(e.branchID=new pr(e.branchID,null)),this.regexp_alternative(e);e.eat(124);)t&&(e.branchID=e.branchID.sibling()),this.regexp_alternative(e);t&&(e.branchID=e.branchID.parent),this.regexp_eatQuantifier(e,!0)&&e.raise("Nothing to repeat"),e.eat(123)&&e.raise("Lone quantifier brackets")};Ee.regexp_alternative=function(e){for(;e.pos<e.source.length&&this.regexp_eatTerm(e););};Ee.regexp_eatTerm=function(e){return this.regexp_eatAssertion(e)?(e.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(e)&&e.switchU&&e.raise("Invalid quantifier"),!0):(e.switchU?this.regexp_eatAtom(e):this.regexp_eatExtendedAtom(e))?(this.regexp_eatQuantifier(e),!0):!1};Ee.regexp_eatAssertion=function(e){var t=e.pos;if(e.lastAssertionIsQuantifiable=!1,e.eat(94)||e.eat(36))return!0;if(e.eat(92)){if(e.eat(66)||e.eat(98))return!0;e.pos=t}if(e.eat(40)&&e.eat(63)){var n=!1;if(this.options.ecmaVersion>=9&&(n=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise("Unterminated group"),e.lastAssertionIsQuantifiable=!n,!0}return e.pos=t,!1};Ee.regexp_eatQuantifier=function(e,t){return t===void 0&&(t=!1),this.regexp_eatQuantifierPrefix(e,t)?(e.eat(63),!0):!1};Ee.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)};Ee.regexp_eatBracedQuantifier=function(e,t){var n=e.pos;if(e.eat(123)){var i=0,r=-1;if(this.regexp_eatDecimalDigits(e)&&(i=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(r=e.lastIntValue),e.eat(125)))return r!==-1&&r<i&&!t&&e.raise("numbers out of order in {} quantifier"),!0;e.switchU&&!t&&e.raise("Incomplete quantifier"),e.pos=n}return!1};Ee.regexp_eatAtom=function(e){return this.regexp_eatPatternCharacters(e)||e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)};Ee.regexp_eatReverseSolidusAtomEscape=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatAtomEscape(e))return!0;e.pos=t}return!1};Ee.regexp_eatUncapturingGroup=function(e){var t=e.pos;if(e.eat(40)){if(e.eat(63)){if(this.options.ecmaVersion>=16){var n=this.regexp_eatModifiers(e),i=e.eat(45);if(n||i){for(var r=0;r<n.length;r++){var s=n.charAt(r);n.indexOf(s,r+1)>-1&&e.raise("Duplicate regular expression modifiers")}if(i){var o=this.regexp_eatModifiers(e);!n&&!o&&e.current()===58&&e.raise("Invalid regular expression modifiers");for(var l=0;l<o.length;l++){var u=o.charAt(l);(o.indexOf(u,l+1)>-1||n.indexOf(u)>-1)&&e.raise("Duplicate regular expression modifiers")}}}}if(e.eat(58)){if(this.regexp_disjunction(e),e.eat(41))return!0;e.raise("Unterminated group")}}e.pos=t}return!1};Ee.regexp_eatCapturingGroup=function(e){if(e.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(e):e.current()===63&&e.raise("Invalid group"),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise("Unterminated group")}return!1};Ee.regexp_eatModifiers=function(e){for(var t="",n=0;(n=e.current())!==-1&&lm(n);)t+=tn(n),e.advance();return t};function lm(e){return e===105||e===109||e===115}Ee.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)};Ee.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1};Ee.regexp_eatSyntaxCharacter=function(e){var t=e.current();return Wc(t)?(e.lastIntValue=t,e.advance(),!0):!1};function Wc(e){return e===36||e>=40&&e<=43||e===46||e===63||e>=91&&e<=94||e>=123&&e<=125}Ee.regexp_eatPatternCharacters=function(e){for(var t=e.pos,n=0;(n=e.current())!==-1&&!Wc(n);)e.advance();return e.pos!==t};Ee.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();return t!==-1&&t!==36&&!(t>=40&&t<=43)&&t!==46&&t!==63&&t!==91&&t!==94&&t!==124?(e.advance(),!0):!1};Ee.regexp_groupSpecifier=function(e){if(e.eat(63)){this.regexp_eatGroupName(e)||e.raise("Invalid group");var t=this.options.ecmaVersion>=16,n=e.groupNames[e.lastStringValue];if(n)if(t)for(var i=0,r=n;i<r.length;i+=1){var s=r[i];s.separatedFrom(e.branchID)||e.raise("Duplicate capture group name")}else e.raise("Duplicate capture group name");t?(n||(e.groupNames[e.lastStringValue]=[])).push(e.branchID):e.groupNames[e.lastStringValue]=!0}};Ee.regexp_eatGroupName=function(e){if(e.lastStringValue="",e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62))return!0;e.raise("Invalid capture group name")}return!1};Ee.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=tn(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=tn(e.lastIntValue);return!0}return!1};Ee.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos,n=this.options.ecmaVersion>=11,i=e.current(n);return e.advance(n),i===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,n)&&(i=e.lastIntValue),um(i)?(e.lastIntValue=i,!0):(e.pos=t,!1)};function um(e){return Gt(e,!0)||e===36||e===95}Ee.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,n=this.options.ecmaVersion>=11,i=e.current(n);return e.advance(n),i===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,n)&&(i=e.lastIntValue),cm(i)?(e.lastIntValue=i,!0):(e.pos=t,!1)};function cm(e){return mn(e,!0)||e===36||e===95||e===8204||e===8205}Ee.regexp_eatAtomEscape=function(e){return this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e)?!0:(e.switchU&&(e.current()===99&&e.raise("Invalid unicode escape"),e.raise("Invalid escape")),!1)};Ee.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var n=e.lastIntValue;if(e.switchU)return n>e.maxBackReference&&(e.maxBackReference=n),!0;if(n<=e.numCapturingParens)return!0;e.pos=t}return!1};Ee.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise("Invalid named reference")}return!1};Ee.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e,!1)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)};Ee.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1};Ee.regexp_eatZero=function(e){return e.current()===48&&!Rr(e.lookahead())?(e.lastIntValue=0,e.advance(),!0):!1};Ee.regexp_eatControlEscape=function(e){var t=e.current();return t===116?(e.lastIntValue=9,e.advance(),!0):t===110?(e.lastIntValue=10,e.advance(),!0):t===118?(e.lastIntValue=11,e.advance(),!0):t===102?(e.lastIntValue=12,e.advance(),!0):t===114?(e.lastIntValue=13,e.advance(),!0):!1};Ee.regexp_eatControlLetter=function(e){var t=e.current();return Gc(t)?(e.lastIntValue=t%32,e.advance(),!0):!1};function Gc(e){return e>=65&&e<=90||e>=97&&e<=122}Ee.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){t===void 0&&(t=!1);var n=e.pos,i=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var r=e.lastIntValue;if(i&&r>=55296&&r<=56319){var s=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var o=e.lastIntValue;if(o>=56320&&o<=57343)return e.lastIntValue=(r-55296)*1024+(o-56320)+65536,!0}e.pos=s,e.lastIntValue=r}return!0}if(i&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&hm(e.lastIntValue))return!0;i&&e.raise("Invalid unicode escape"),e.pos=n}return!1};function hm(e){return e>=0&&e<=1114111}Ee.regexp_eatIdentityEscape=function(e){if(e.switchU)return this.regexp_eatSyntaxCharacter(e)?!0:e.eat(47)?(e.lastIntValue=47,!0):!1;var t=e.current();return t!==99&&(!e.switchN||t!==107)?(e.lastIntValue=t,e.advance(),!0):!1};Ee.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do e.lastIntValue=10*e.lastIntValue+(t-48),e.advance();while((t=e.current())>=48&&t<=57);return!0}return!1};var Jc=0,nn=1,Rt=2;Ee.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(fm(t))return e.lastIntValue=-1,e.advance(),nn;var n=!1;if(e.switchU&&this.options.ecmaVersion>=9&&((n=t===80)||t===112)){e.lastIntValue=-1,e.advance();var i;if(e.eat(123)&&(i=this.regexp_eatUnicodePropertyValueExpression(e))&&e.eat(125))return n&&i===Rt&&e.raise("Invalid property name"),i;e.raise("Invalid property name")}return Jc};function fm(e){return e===100||e===68||e===115||e===83||e===119||e===87}Ee.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var n=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var i=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,n,i),nn}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var r=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,r)}return Jc};Ee.regexp_validateUnicodePropertyNameAndValue=function(e,t,n){Xn(e.unicodeProperties.nonBinary,t)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[t].test(n)||e.raise("Invalid property value")};Ee.regexp_validateUnicodePropertyNameOrValue=function(e,t){if(e.unicodeProperties.binary.test(t))return nn;if(e.switchV&&e.unicodeProperties.binaryOfStrings.test(t))return Rt;e.raise("Invalid property name")};Ee.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue="";Yc(t=e.current());)e.lastStringValue+=tn(t),e.advance();return e.lastStringValue!==""};function Yc(e){return Gc(e)||e===95}Ee.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue="";pm(t=e.current());)e.lastStringValue+=tn(t),e.advance();return e.lastStringValue!==""};function pm(e){return Yc(e)||Rr(e)}Ee.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)};Ee.regexp_eatCharacterClass=function(e){if(e.eat(91)){var t=e.eat(94),n=this.regexp_classContents(e);return e.eat(93)||e.raise("Unterminated character class"),t&&n===Rt&&e.raise("Negated character class may contain strings"),!0}return!1};Ee.regexp_classContents=function(e){return e.current()===93?nn:e.switchV?this.regexp_classSetExpression(e):(this.regexp_nonEmptyClassRanges(e),nn)};Ee.regexp_nonEmptyClassRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var n=e.lastIntValue;e.switchU&&(t===-1||n===-1)&&e.raise("Invalid character class"),t!==-1&&n!==-1&&t>n&&e.raise("Range out of order in character class")}}};Ee.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var n=e.current();(n===99||Xc(n))&&e.raise("Invalid class escape"),e.raise("Invalid escape")}e.pos=t}var i=e.current();return i!==93?(e.lastIntValue=i,e.advance(),!0):!1};Ee.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)};Ee.regexp_classSetExpression=function(e){var t=nn,n;if(!this.regexp_eatClassSetRange(e))if(n=this.regexp_eatClassSetOperand(e)){n===Rt&&(t=Rt);for(var i=e.pos;e.eatChars([38,38]);){if(e.current()!==38&&(n=this.regexp_eatClassSetOperand(e))){n!==Rt&&(t=nn);continue}e.raise("Invalid character in character class")}if(i!==e.pos)return t;for(;e.eatChars([45,45]);)this.regexp_eatClassSetOperand(e)||e.raise("Invalid character in character class");if(i!==e.pos)return t}else e.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(e)){if(n=this.regexp_eatClassSetOperand(e),!n)return t;n===Rt&&(t=Rt)}};Ee.regexp_eatClassSetRange=function(e){var t=e.pos;if(this.regexp_eatClassSetCharacter(e)){var n=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassSetCharacter(e)){var i=e.lastIntValue;return n!==-1&&i!==-1&&n>i&&e.raise("Range out of order in character class"),!0}e.pos=t}return!1};Ee.regexp_eatClassSetOperand=function(e){return this.regexp_eatClassSetCharacter(e)?nn:this.regexp_eatClassStringDisjunction(e)||this.regexp_eatNestedClass(e)};Ee.regexp_eatNestedClass=function(e){var t=e.pos;if(e.eat(91)){var n=e.eat(94),i=this.regexp_classContents(e);if(e.eat(93))return n&&i===Rt&&e.raise("Negated character class may contain strings"),i;e.pos=t}if(e.eat(92)){var r=this.regexp_eatCharacterClassEscape(e);if(r)return r;e.pos=t}return null};Ee.regexp_eatClassStringDisjunction=function(e){var t=e.pos;if(e.eatChars([92,113])){if(e.eat(123)){var n=this.regexp_classStringDisjunctionContents(e);if(e.eat(125))return n}else e.raise("Invalid escape");e.pos=t}return null};Ee.regexp_classStringDisjunctionContents=function(e){for(var t=this.regexp_classString(e);e.eat(124);)this.regexp_classString(e)===Rt&&(t=Rt);return t};Ee.regexp_classString=function(e){for(var t=0;this.regexp_eatClassSetCharacter(e);)t++;return t===1?nn:Rt};Ee.regexp_eatClassSetCharacter=function(e){var t=e.pos;if(e.eat(92))return this.regexp_eatCharacterEscape(e)||this.regexp_eatClassSetReservedPunctuator(e)?!0:e.eat(98)?(e.lastIntValue=8,!0):(e.pos=t,!1);var n=e.current();return n<0||n===e.lookahead()&&dm(n)||gm(n)?!1:(e.advance(),e.lastIntValue=n,!0)};function dm(e){return e===33||e>=35&&e<=38||e>=42&&e<=44||e===46||e>=58&&e<=64||e===94||e===96||e===126}function gm(e){return e===40||e===41||e===45||e===47||e>=91&&e<=93||e>=123&&e<=125}Ee.regexp_eatClassSetReservedPunctuator=function(e){var t=e.current();return mm(t)?(e.lastIntValue=t,e.advance(),!0):!1};function mm(e){return e===33||e===35||e===37||e===38||e===44||e===45||e>=58&&e<=62||e===64||e===96||e===126}Ee.regexp_eatClassControlLetter=function(e){var t=e.current();return Rr(t)||t===95?(e.lastIntValue=t%32,e.advance(),!0):!1};Ee.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise("Invalid escape"),e.pos=t}return!1};Ee.regexp_eatDecimalDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;Rr(n=e.current());)e.lastIntValue=10*e.lastIntValue+(n-48),e.advance();return e.pos!==t};function Rr(e){return e>=48&&e<=57}Ee.regexp_eatHexDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;Qc(n=e.current());)e.lastIntValue=16*e.lastIntValue+Zc(n),e.advance();return e.pos!==t};function Qc(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function Zc(e){return e>=65&&e<=70?10+(e-65):e>=97&&e<=102?10+(e-97):e-48}Ee.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var n=e.lastIntValue;t<=3&&this.regexp_eatOctalDigit(e)?e.lastIntValue=t*64+n*8+e.lastIntValue:e.lastIntValue=t*8+n}else e.lastIntValue=t;return!0}return!1};Ee.regexp_eatOctalDigit=function(e){var t=e.current();return Xc(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)};function Xc(e){return e>=48&&e<=55}Ee.regexp_eatFixedHexDigits=function(e,t){var n=e.pos;e.lastIntValue=0;for(var i=0;i<t;++i){var r=e.current();if(!Qc(r))return e.pos=n,!1;e.lastIntValue=16*e.lastIntValue+Zc(r),e.advance()}return!0};var ms=function(t){this.type=t.type,this.value=t.value,this.start=t.start,this.end=t.end,t.options.locations&&(this.loc=new Ar(t,t.startLoc,t.endLoc)),t.options.ranges&&(this.range=[t.start,t.end])},Ve=rt.prototype;Ve.next=function(e){!e&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new ms(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()};Ve.getToken=function(){return this.next(),new ms(this)};typeof Symbol<"u"&&(Ve[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===_.eof,value:t}}}});Ve.nextToken=function(){var e=this.curContext();if((!e||!e.preserveSpace)&&this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length)return this.finishToken(_.eof);if(e.override)return e.override(this);this.readToken(this.fullCharCodeAtPos())};Ve.readToken=function(e){return Gt(e,this.options.ecmaVersion>=6)||e===92?this.readWord():this.getTokenFromCode(e)};Ve.fullCharCodeAt=function(e){var t=this.input.charCodeAt(e);if(t<=55295||t>=56320)return t;var n=this.input.charCodeAt(e+1);return n<=56319||n>=57344?t:(t<<10)+n-56613888};Ve.fullCharCodeAtPos=function(){return this.fullCharCodeAt(this.pos)};Ve.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition(),t=this.pos,n=this.input.indexOf("*/",this.pos+=2);if(n===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=n+2,this.options.locations)for(var i=void 0,r=t;(i=Ec(this.input,r,this.pos))>-1;)++this.curLine,r=this.lineStart=i;this.options.onComment&&this.options.onComment(!0,this.input.slice(t+2,n),t,this.pos,e,this.curPosition())};Ve.skipLineComment=function(e){for(var t=this.pos,n=this.options.onComment&&this.curPosition(),i=this.input.charCodeAt(this.pos+=e);this.pos<this.input.length&&!Zn(i);)i=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(t+e,this.pos),t,this.pos,n,this.curPosition())};Ve.skipSpace=function(){e:for(;this.pos<this.input.length;){var e=this.input.charCodeAt(this.pos);switch(e){case 32:case 160:++this.pos;break;case 13:this.input.charCodeAt(this.pos+1)===10&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break e}break;default:if(e>8&&e<14||e>=5760&&Sc.test(String.fromCharCode(e)))++this.pos;else break e}}};Ve.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var n=this.type;this.type=e,this.value=t,this.updateContext(n)};Ve.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&e===46&&t===46?(this.pos+=3,this.finishToken(_.ellipsis)):(++this.pos,this.finishToken(_.dot))};Ve.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):e===61?this.finishOp(_.assign,2):this.finishOp(_.slash,1)};Ve.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),n=1,i=e===42?_.star:_.modulo;return this.options.ecmaVersion>=7&&e===42&&t===42&&(++n,i=_.starstar,t=this.input.charCodeAt(this.pos+2)),t===61?this.finishOp(_.assign,n+1):this.finishOp(i,n)};Ve.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);if(t===e){if(this.options.ecmaVersion>=12){var n=this.input.charCodeAt(this.pos+2);if(n===61)return this.finishOp(_.assign,3)}return this.finishOp(e===124?_.logicalOR:_.logicalAND,2)}return t===61?this.finishOp(_.assign,2):this.finishOp(e===124?_.bitwiseOR:_.bitwiseAND,1)};Ve.readToken_caret=function(){var e=this.input.charCodeAt(this.pos+1);return e===61?this.finishOp(_.assign,2):this.finishOp(_.bitwiseXOR,1)};Ve.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?t===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||vt.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(_.incDec,2):t===61?this.finishOp(_.assign,2):this.finishOp(_.plusMin,1)};Ve.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),n=1;return t===e?(n=e===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+n)===61?this.finishOp(_.assign,n+1):this.finishOp(_.bitShift,n)):t===33&&e===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(t===61&&(n=2),this.finishOp(_.relational,n))};Ve.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return t===61?this.finishOp(_.equality,this.input.charCodeAt(this.pos+2)===61?3:2):e===61&&t===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(_.arrow)):this.finishOp(e===61?_.eq:_.prefix,1)};Ve.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(t===46){var n=this.input.charCodeAt(this.pos+2);if(n<48||n>57)return this.finishOp(_.questionDot,2)}if(t===63){if(e>=12){var i=this.input.charCodeAt(this.pos+2);if(i===61)return this.finishOp(_.assign,3)}return this.finishOp(_.coalesce,2)}}return this.finishOp(_.question,1)};Ve.readToken_numberSign=function(){var e=this.options.ecmaVersion,t=35;if(e>=13&&(++this.pos,t=this.fullCharCodeAtPos(),Gt(t,!0)||t===92))return this.finishToken(_.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+tn(t)+"'")};Ve.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(_.parenL);case 41:return++this.pos,this.finishToken(_.parenR);case 59:return++this.pos,this.finishToken(_.semi);case 44:return++this.pos,this.finishToken(_.comma);case 91:return++this.pos,this.finishToken(_.bracketL);case 93:return++this.pos,this.finishToken(_.bracketR);case 123:return++this.pos,this.finishToken(_.braceL);case 125:return++this.pos,this.finishToken(_.braceR);case 58:return++this.pos,this.finishToken(_.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(_.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(t===120||t===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(t===111||t===79)return this.readRadixNumber(8);if(t===98||t===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 63:return this.readToken_question();case 126:return this.finishOp(_.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+tn(e)+"'")};Ve.finishOp=function(e,t){var n=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,n)};Ve.readRegexp=function(){for(var e,t,n=this.pos;;){this.pos>=this.input.length&&this.raise(n,"Unterminated regular expression");var i=this.input.charAt(this.pos);if(vt.test(i)&&this.raise(n,"Unterminated regular expression"),e)e=!1;else{if(i==="[")t=!0;else if(i==="]"&&t)t=!1;else if(i==="/"&&!t)break;e=i==="\\"}++this.pos}var r=this.input.slice(n,this.pos);++this.pos;var s=this.pos,o=this.readWord1();this.containsEsc&&this.unexpected(s);var l=this.regexpState||(this.regexpState=new Yt(this));l.reset(n,r,o),this.validateRegExpFlags(l),this.validateRegExpPattern(l);var u=null;try{u=new RegExp(r,o)}catch{}return this.finishToken(_.regexp,{pattern:r,flags:o,value:u})};Ve.readInt=function(e,t,n){for(var i=this.options.ecmaVersion>=12&&t===void 0,r=n&&this.input.charCodeAt(this.pos)===48,s=this.pos,o=0,l=0,u=0,f=t??1/0;u<f;++u,++this.pos){var p=this.input.charCodeAt(this.pos),h=void 0;if(i&&p===95){r&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),l===95&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),u===0&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),l=p;continue}if(p>=97?h=p-97+10:p>=65?h=p-65+10:p>=48&&p<=57?h=p-48:h=1/0,h>=e)break;l=p,o=o*e+h}return i&&l===95&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===s||t!=null&&this.pos-s!==t?null:o};function xm(e,t){return t?parseInt(e,8):parseFloat(e.replace(/_/g,""))}function eh(e){return typeof BigInt!="function"?null:BigInt(e.replace(/_/g,""))}Ve.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var n=this.readInt(e);return n==null&&this.raise(this.start+2,"Expected number in radix "+e),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(n=eh(this.input.slice(t,this.pos)),++this.pos):Gt(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(_.num,n)};Ve.readNumber=function(e){var t=this.pos;!e&&this.readInt(10,void 0,!0)===null&&this.raise(t,"Invalid number");var n=this.pos-t>=2&&this.input.charCodeAt(t)===48;n&&this.strict&&this.raise(t,"Invalid number");var i=this.input.charCodeAt(this.pos);if(!n&&!e&&this.options.ecmaVersion>=11&&i===110){var r=eh(this.input.slice(t,this.pos));return++this.pos,Gt(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(_.num,r)}n&&/[89]/.test(this.input.slice(t,this.pos))&&(n=!1),i===46&&!n&&(++this.pos,this.readInt(10),i=this.input.charCodeAt(this.pos)),(i===69||i===101)&&!n&&(i=this.input.charCodeAt(++this.pos),(i===43||i===45)&&++this.pos,this.readInt(10)===null&&this.raise(t,"Invalid number")),Gt(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var s=xm(this.input.slice(t,this.pos),n);return this.finishToken(_.num,s)};Ve.readCodePoint=function(){var e=this.input.charCodeAt(this.pos),t;if(e===123){this.options.ecmaVersion<6&&this.unexpected();var n=++this.pos;t=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,t>1114111&&this.invalidStringToken(n,"Code point out of bounds")}else t=this.readHexChar(4);return t};Ve.readString=function(e){for(var t="",n=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var i=this.input.charCodeAt(this.pos);if(i===e)break;i===92?(t+=this.input.slice(n,this.pos),t+=this.readEscapedChar(!1),n=this.pos):i===8232||i===8233?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(Zn(i)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(n,this.pos++),this.finishToken(_.string,t)};var th={};Ve.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e===th)this.readInvalidTemplateToken();else throw e}this.inTemplateElement=!1};Ve.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw th;this.raise(e,t)};Ve.readTmplToken=function(){for(var e="",t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var n=this.input.charCodeAt(this.pos);if(n===96||n===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===_.template||this.type===_.invalidTemplate)?n===36?(this.pos+=2,this.finishToken(_.dollarBraceL)):(++this.pos,this.finishToken(_.backQuote)):(e+=this.input.slice(t,this.pos),this.finishToken(_.template,e));if(n===92)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(Zn(n)){switch(e+=this.input.slice(t,this.pos),++this.pos,n){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:e+=`
|
|
20
|
+
`;break;default:e+=String.fromCharCode(n);break}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}};Ve.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if(this.input[this.pos+1]!=="{")break;case"`":return this.finishToken(_.invalidTemplate,this.input.slice(this.start,this.pos));case"\r":this.input[this.pos+1]===`
|
|
73
21
|
`&&++this.pos;case`
|
|
74
|
-
`:case"\u2028":case"\u2029":++this.curLine,this.lineStart=this.pos+1;break}this.raise(this.start,"Unterminated template")};
|
|
75
|
-
`;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return Pn(this.readCodePoint());case 116:return" ";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),e){var n=this.pos-1;this.invalidStringToken(n,"Invalid escape sequence in template string")}default:if(t>=48&&t<=55){var i=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],r=parseInt(i,8);return r>255&&(i=i.slice(0,-1),r=parseInt(i,8)),this.pos+=i.length-1,t=this.input.charCodeAt(this.pos),(i!=="0"||t===56||t===57)&&(this.strict||e)&&this.invalidStringToken(this.pos-1-i.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(r)}return Vi(t)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),""):String.fromCharCode(t)}};Ue.readHexChar=function(e){var t=this.pos,n=this.readInt(16,e);return n===null&&this.invalidStringToken(t,"Bad character escape sequence"),n};Ue.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,n=this.pos,i=this.options.ecmaVersion>=6;this.pos<this.input.length;){var r=this.fullCharCodeAtPos();if(Un(r,i))this.pos+=r<=65535?1:2;else if(r===92){this.containsEsc=!0,e+=this.input.slice(n,this.pos);var a=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var s=this.readCodePoint();(t?kn:Un)(s,i)||this.invalidStringToken(a,"Invalid Unicode escape"),e+=Pn(s),n=this.pos}else break;t=!1}return e+this.input.slice(n,this.pos)};Ue.readWord=function(){var e=this.readWord1(),t=N.name;return this.keywords.test(e)&&(t=Tl[e]),this.finishToken(t,e)};var w1="8.15.0";vt.acorn={Parser:vt,version:w1,defaultOptions:fo,Position:cr,SourceLocation:Wa,getLineInfo:bf,Node:$a,TokenType:Ye,tokTypes:N,keywordTypes:Tl,TokContext:tn,tokContexts:at,isIdentifierChar:Un,isIdentifierStart:kn,Token:Dl,isNewLine:Vi,lineBreak:zt,lineBreakG:Kw,nonASCIIwhitespace:vf};function Jf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Es={exports:{}},Cs,Fc;function k1(){return Fc||(Fc=1,Cs={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"}),Cs}var Xi={exports:{}},S1=Xi.exports,jc;function zc(){return jc||(jc=1,(function(e,t){(function(n,i){i(t)})(S1,(function(n){var i=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,80,3,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,343,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,726,6,110,6,6,9,4759,9,787719,239],r=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,2,60,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,42,9,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,496,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],a="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・",s="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ꟑꟑꟓꟕ-ꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",l={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},u="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",c={5:u,"5module":u+" export import",6:u+" const class extends export import super"},d=/^in(stanceof)?$/,p=new RegExp("["+s+"]"),g=new RegExp("["+s+a+"]");function m(o,h){for(var v=65536,_=0;_<h.length;_+=2){if(v+=h[_],v>o)return!1;if(v+=h[_+1],v>=o)return!0}return!1}function C(o,h){return o<65?o===36:o<91?!0:o<97?o===95:o<123?!0:o<=65535?o>=170&&p.test(String.fromCharCode(o)):h===!1?!1:m(o,r)}function x(o,h){return o<48?o===36:o<58?!0:o<65?!1:o<91?!0:o<97?o===95:o<123?!0:o<=65535?o>=170&&g.test(String.fromCharCode(o)):h===!1?!1:m(o,r)||m(o,i)}var w=function(h,v){v===void 0&&(v={}),this.label=h,this.keyword=v.keyword,this.beforeExpr=!!v.beforeExpr,this.startsExpr=!!v.startsExpr,this.isLoop=!!v.isLoop,this.isAssign=!!v.isAssign,this.prefix=!!v.prefix,this.postfix=!!v.postfix,this.binop=v.binop||null,this.updateContext=null};function S(o,h){return new w(o,{beforeExpr:!0,binop:h})}var k={beforeExpr:!0},E={startsExpr:!0},A={};function y(o,h){return h===void 0&&(h={}),h.keyword=o,A[o]=new w(o,h)}var f={num:new w("num",E),regexp:new w("regexp",E),string:new w("string",E),name:new w("name",E),privateId:new w("privateId",E),eof:new w("eof"),bracketL:new w("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new w("]"),braceL:new w("{",{beforeExpr:!0,startsExpr:!0}),braceR:new w("}"),parenL:new w("(",{beforeExpr:!0,startsExpr:!0}),parenR:new w(")"),comma:new w(",",k),semi:new w(";",k),colon:new w(":",k),dot:new w("."),question:new w("?",k),questionDot:new w("?."),arrow:new w("=>",k),template:new w("template"),invalidTemplate:new w("invalidTemplate"),ellipsis:new w("...",k),backQuote:new w("`",E),dollarBraceL:new w("${",{beforeExpr:!0,startsExpr:!0}),eq:new w("=",{beforeExpr:!0,isAssign:!0}),assign:new w("_=",{beforeExpr:!0,isAssign:!0}),incDec:new w("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new w("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:S("||",1),logicalAND:S("&&",2),bitwiseOR:S("|",3),bitwiseXOR:S("^",4),bitwiseAND:S("&",5),equality:S("==/!=/===/!==",6),relational:S("</>/<=/>=",7),bitShift:S("<</>>/>>>",8),plusMin:new w("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:S("%",10),star:S("*",10),slash:S("/",10),starstar:new w("**",{beforeExpr:!0}),coalesce:S("??",1),_break:y("break"),_case:y("case",k),_catch:y("catch"),_continue:y("continue"),_debugger:y("debugger"),_default:y("default",k),_do:y("do",{isLoop:!0,beforeExpr:!0}),_else:y("else",k),_finally:y("finally"),_for:y("for",{isLoop:!0}),_function:y("function",E),_if:y("if"),_return:y("return",k),_switch:y("switch"),_throw:y("throw",k),_try:y("try"),_var:y("var"),_const:y("const"),_while:y("while",{isLoop:!0}),_with:y("with"),_new:y("new",{beforeExpr:!0,startsExpr:!0}),_this:y("this",E),_super:y("super",E),_class:y("class",E),_extends:y("extends",k),_export:y("export"),_import:y("import",E),_null:y("null",E),_true:y("true",E),_false:y("false",E),_in:y("in",{beforeExpr:!0,binop:7}),_instanceof:y("instanceof",{beforeExpr:!0,binop:7}),_typeof:y("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:y("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:y("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},T=/\r\n?|\n|\u2028|\u2029/,R=new RegExp(T.source,"g");function F(o){return o===10||o===13||o===8232||o===8233}function D(o,h,v){v===void 0&&(v=o.length);for(var _=h;_<v;_++){var L=o.charCodeAt(_);if(F(L))return _<v-1&&L===13&&o.charCodeAt(_+1)===10?_+2:_+1}return-1}var q=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,J=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,K=Object.prototype,j=K.hasOwnProperty,ae=K.toString,Z=Object.hasOwn||(function(o,h){return j.call(o,h)}),se=Array.isArray||(function(o){return ae.call(o)==="[object Array]"}),ee=Object.create(null);function pe(o){return ee[o]||(ee[o]=new RegExp("^(?:"+o.replace(/ /g,"|")+")$"))}function I(o){return o<=65535?String.fromCharCode(o):(o-=65536,String.fromCharCode((o>>10)+55296,(o&1023)+56320))}var V=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,te=function(h,v){this.line=h,this.column=v};te.prototype.offset=function(h){return new te(this.line,this.column+h)};var O=function(h,v,_){this.start=v,this.end=_,h.sourceFile!==null&&(this.source=h.sourceFile)};function $(o,h){for(var v=1,_=0;;){var L=D(o,_,h);if(L<0)return new te(v,h-_);++v,_=L}}var z={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},B=!1;function U(o){var h={};for(var v in z)h[v]=o&&Z(o,v)?o[v]:z[v];if(h.ecmaVersion==="latest"?h.ecmaVersion=1e8:h.ecmaVersion==null?(!B&&typeof console=="object"&&console.warn&&(B=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
|
|
76
|
-
Defaulting to 2020, but this will stop working in the future.`)),
|
|
77
|
-
`,_-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(T).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=f.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=h.sourceType==="module",this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),this.pos===0&&h.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(oe),this.regexpState=null,this.privateNameStack=[]},P={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},inClassStaticBlock:{configurable:!0}};re.prototype.parse=function(){var h=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(h)},P.inFunction.get=function(){return(this.currentVarScope().flags&G)>0},P.inGenerator.get=function(){return(this.currentVarScope().flags&H)>0},P.inAsync.get=function(){return(this.currentVarScope().flags&ne)>0},P.canAwait.get=function(){for(var o=this.scopeStack.length-1;o>=0;o--){var h=this.scopeStack[o],v=h.flags;if(v&(be|ke))return!1;if(v&G)return(v&ne)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},P.allowSuper.get=function(){var o=this.currentThisScope(),h=o.flags;return(h&me)>0||this.options.allowSuperOutsideMethod},P.allowDirectSuper.get=function(){return(this.currentThisScope().flags&xe)>0},P.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},P.allowNewDotTarget.get=function(){for(var o=this.scopeStack.length-1;o>=0;o--){var h=this.scopeStack[o],v=h.flags;if(v&(be|ke)||v&G&&!(v&de))return!0}return!1},P.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&be)>0},re.extend=function(){for(var h=[],v=arguments.length;v--;)h[v]=arguments[v];for(var _=this,L=0;L<h.length;L++)_=h[L](_);return _},re.parse=function(h,v){return new this(v,h).parse()},re.parseExpressionAt=function(h,v,_){var L=new this(_,h,v);return L.nextToken(),L.parseExpression()},re.tokenizer=function(h,v){return new this(v,h)},Object.defineProperties(re.prototype,P);var Ce=re.prototype,Le=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;Ce.strictDirective=function(o){if(this.options.ecmaVersion<5)return!1;for(;;){J.lastIndex=o,o+=J.exec(this.input)[0].length;var h=Le.exec(this.input.slice(o));if(!h)return!1;if((h[1]||h[2])==="use strict"){J.lastIndex=o+h[0].length;var v=J.exec(this.input),_=v.index+v[0].length,L=this.input.charAt(_);return L===";"||L==="}"||T.test(v[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(L)||L==="!"&&this.input.charAt(_+1)==="=")}o+=h[0].length,J.lastIndex=o,o+=J.exec(this.input)[0].length,this.input[o]===";"&&o++}},Ce.eat=function(o){return this.type===o?(this.next(),!0):!1},Ce.isContextual=function(o){return this.type===f.name&&this.value===o&&!this.containsEsc},Ce.eatContextual=function(o){return this.isContextual(o)?(this.next(),!0):!1},Ce.expectContextual=function(o){this.eatContextual(o)||this.unexpected()},Ce.canInsertSemicolon=function(){return this.type===f.eof||this.type===f.braceR||T.test(this.input.slice(this.lastTokEnd,this.start))},Ce.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},Ce.semicolon=function(){!this.eat(f.semi)&&!this.insertSemicolon()&&this.unexpected()},Ce.afterTrailingComma=function(o,h){if(this.type===o)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),h||this.next(),!0},Ce.expect=function(o){this.eat(o)||this.unexpected()},Ce.unexpected=function(o){this.raise(o??this.start,"Unexpected token")};var ot=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};Ce.checkPatternErrors=function(o,h){if(o){o.trailingComma>-1&&this.raiseRecoverable(o.trailingComma,"Comma is not permitted after the rest element");var v=h?o.parenthesizedAssign:o.parenthesizedBind;v>-1&&this.raiseRecoverable(v,h?"Assigning to rvalue":"Parenthesized pattern")}},Ce.checkExpressionErrors=function(o,h){if(!o)return!1;var v=o.shorthandAssign,_=o.doubleProto;if(!h)return v>=0||_>=0;v>=0&&this.raise(v,"Shorthand property assignments are valid only in destructuring patterns"),_>=0&&this.raiseRecoverable(_,"Redefinition of __proto__ property")},Ce.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")},Ce.isSimpleAssignTarget=function(o){return o.type==="ParenthesizedExpression"?this.isSimpleAssignTarget(o.expression):o.type==="Identifier"||o.type==="MemberExpression"};var ye=re.prototype;ye.parseTopLevel=function(o){var h=Object.create(null);for(o.body||(o.body=[]);this.type!==f.eof;){var v=this.parseStatement(null,!0,h);o.body.push(v)}if(this.inModule)for(var _=0,L=Object.keys(this.undefinedExports);_<L.length;_+=1){var Y=L[_];this.raiseRecoverable(this.undefinedExports[Y].start,"Export '"+Y+"' is not defined")}return this.adaptDirectivePrologue(o.body),this.next(),o.sourceType=this.options.sourceType,this.finishNode(o,"Program")};var wt={kind:"loop"},ln={kind:"switch"};ye.isLet=function(o){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;J.lastIndex=this.pos;var h=J.exec(this.input),v=this.pos+h[0].length,_=this.input.charCodeAt(v);if(_===91||_===92)return!0;if(o)return!1;if(_===123||_>55295&&_<56320)return!0;if(C(_,!0)){for(var L=v+1;x(_=this.input.charCodeAt(L),!0);)++L;if(_===92||_>55295&&_<56320)return!0;var Y=this.input.slice(v,L);if(!d.test(Y))return!0}return!1},ye.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;J.lastIndex=this.pos;var o=J.exec(this.input),h=this.pos+o[0].length,v;return!T.test(this.input.slice(this.pos,h))&&this.input.slice(h,h+8)==="function"&&(h+8===this.input.length||!(x(v=this.input.charCodeAt(h+8))||v>55295&&v<56320))},ye.isUsingKeyword=function(o,h){if(this.options.ecmaVersion<17||!this.isContextual(o?"await":"using"))return!1;J.lastIndex=this.pos;var v=J.exec(this.input),_=this.pos+v[0].length;if(T.test(this.input.slice(this.pos,_)))return!1;if(o){var L=_+5,Y;if(this.input.slice(_,L)!=="using"||L===this.input.length||x(Y=this.input.charCodeAt(L))||Y>55295&&Y<56320)return!1;J.lastIndex=L;var Q=J.exec(this.input);if(Q&&T.test(this.input.slice(L,L+Q[0].length)))return!1}if(h){var fe=_+2,ve;if(this.input.slice(_,fe)==="of"&&(fe===this.input.length||!x(ve=this.input.charCodeAt(fe))&&!(ve>55295&&ve<56320)))return!1}var De=this.input.charCodeAt(_);return C(De,!0)||De===92},ye.isAwaitUsing=function(o){return this.isUsingKeyword(!0,o)},ye.isUsing=function(o){return this.isUsingKeyword(!1,o)},ye.parseStatement=function(o,h,v){var _=this.type,L=this.startNode(),Y;switch(this.isLet(o)&&(_=f._var,Y="let"),_){case f._break:case f._continue:return this.parseBreakContinueStatement(L,_.keyword);case f._debugger:return this.parseDebuggerStatement(L);case f._do:return this.parseDoStatement(L);case f._for:return this.parseForStatement(L);case f._function:return o&&(this.strict||o!=="if"&&o!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(L,!1,!o);case f._class:return o&&this.unexpected(),this.parseClass(L,!0);case f._if:return this.parseIfStatement(L);case f._return:return this.parseReturnStatement(L);case f._switch:return this.parseSwitchStatement(L);case f._throw:return this.parseThrowStatement(L);case f._try:return this.parseTryStatement(L);case f._const:case f._var:return Y=Y||this.value,o&&Y!=="var"&&this.unexpected(),this.parseVarStatement(L,Y);case f._while:return this.parseWhileStatement(L);case f._with:return this.parseWithStatement(L);case f.braceL:return this.parseBlock(!0,L);case f.semi:return this.parseEmptyStatement(L);case f._export:case f._import:if(this.options.ecmaVersion>10&&_===f._import){J.lastIndex=this.pos;var Q=J.exec(this.input),fe=this.pos+Q[0].length,ve=this.input.charCodeAt(fe);if(ve===40||ve===46)return this.parseExpressionStatement(L,this.parseExpression())}return this.options.allowImportExportEverywhere||(h||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),_===f._import?this.parseImport(L):this.parseExport(L,v);default:if(this.isAsyncFunction())return o&&this.unexpected(),this.next(),this.parseFunctionStatement(L,!0,!o);var De=this.isAwaitUsing(!1)?"await using":this.isUsing(!1)?"using":null;if(De)return h&&this.options.sourceType==="script"&&this.raise(this.start,"Using declaration cannot appear in the top level when source type is `script`"),De==="await using"&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.next(),this.parseVar(L,!1,De),this.semicolon(),this.finishNode(L,"VariableDeclaration");var Be=this.value,rt=this.parseExpression();return _===f.name&&rt.type==="Identifier"&&this.eat(f.colon)?this.parseLabeledStatement(L,Be,rt,o):this.parseExpressionStatement(L,rt)}},ye.parseBreakContinueStatement=function(o,h){var v=h==="break";this.next(),this.eat(f.semi)||this.insertSemicolon()?o.label=null:this.type!==f.name?this.unexpected():(o.label=this.parseIdent(),this.semicolon());for(var _=0;_<this.labels.length;++_){var L=this.labels[_];if((o.label==null||L.name===o.label.name)&&(L.kind!=null&&(v||L.kind==="loop")||o.label&&v))break}return _===this.labels.length&&this.raise(o.start,"Unsyntactic "+h),this.finishNode(o,v?"BreakStatement":"ContinueStatement")},ye.parseDebuggerStatement=function(o){return this.next(),this.semicolon(),this.finishNode(o,"DebuggerStatement")},ye.parseDoStatement=function(o){return this.next(),this.labels.push(wt),o.body=this.parseStatement("do"),this.labels.pop(),this.expect(f._while),o.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(f.semi):this.semicolon(),this.finishNode(o,"DoWhileStatement")},ye.parseForStatement=function(o){this.next();var h=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(wt),this.enterScope(0),this.expect(f.parenL),this.type===f.semi)return h>-1&&this.unexpected(h),this.parseFor(o,null);var v=this.isLet();if(this.type===f._var||this.type===f._const||v){var _=this.startNode(),L=v?"let":this.value;return this.next(),this.parseVar(_,!0,L),this.finishNode(_,"VariableDeclaration"),this.parseForAfterInit(o,_,h)}var Y=this.isContextual("let"),Q=!1,fe=this.isUsing(!0)?"using":this.isAwaitUsing(!0)?"await using":null;if(fe){var ve=this.startNode();return this.next(),fe==="await using"&&this.next(),this.parseVar(ve,!0,fe),this.finishNode(ve,"VariableDeclaration"),this.parseForAfterInit(o,ve,h)}var De=this.containsEsc,Be=new ot,rt=this.start,kt=h>-1?this.parseExprSubscripts(Be,"await"):this.parseExpression(!0,Be);return this.type===f._in||(Q=this.options.ecmaVersion>=6&&this.isContextual("of"))?(h>-1?(this.type===f._in&&this.unexpected(h),o.await=!0):Q&&this.options.ecmaVersion>=8&&(kt.start===rt&&!De&&kt.type==="Identifier"&&kt.name==="async"?this.unexpected():this.options.ecmaVersion>=9&&(o.await=!1)),Y&&Q&&this.raise(kt.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(kt,!1,Be),this.checkLValPattern(kt),this.parseForIn(o,kt)):(this.checkExpressionErrors(Be,!0),h>-1&&this.unexpected(h),this.parseFor(o,kt))},ye.parseForAfterInit=function(o,h,v){return(this.type===f._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&h.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===f._in?v>-1&&this.unexpected(v):o.await=v>-1),this.parseForIn(o,h)):(v>-1&&this.unexpected(v),this.parseFor(o,h))},ye.parseFunctionStatement=function(o,h,v){return this.next(),this.parseFunction(o,ut|(v?0:Vt),!1,h)},ye.parseIfStatement=function(o){return this.next(),o.test=this.parseParenExpression(),o.consequent=this.parseStatement("if"),o.alternate=this.eat(f._else)?this.parseStatement("if"):null,this.finishNode(o,"IfStatement")},ye.parseReturnStatement=function(o){return!this.inFunction&&!this.options.allowReturnOutsideFunction&&this.raise(this.start,"'return' outside of function"),this.next(),this.eat(f.semi)||this.insertSemicolon()?o.argument=null:(o.argument=this.parseExpression(),this.semicolon()),this.finishNode(o,"ReturnStatement")},ye.parseSwitchStatement=function(o){this.next(),o.discriminant=this.parseParenExpression(),o.cases=[],this.expect(f.braceL),this.labels.push(ln),this.enterScope(0);for(var h,v=!1;this.type!==f.braceR;)if(this.type===f._case||this.type===f._default){var _=this.type===f._case;h&&this.finishNode(h,"SwitchCase"),o.cases.push(h=this.startNode()),h.consequent=[],this.next(),_?h.test=this.parseExpression():(v&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),v=!0,h.test=null),this.expect(f.colon)}else h||this.unexpected(),h.consequent.push(this.parseStatement(null));return this.exitScope(),h&&this.finishNode(h,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(o,"SwitchStatement")},ye.parseThrowStatement=function(o){return this.next(),T.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),o.argument=this.parseExpression(),this.semicolon(),this.finishNode(o,"ThrowStatement")};var In=[];ye.parseCatchClauseParam=function(){var o=this.parseBindingAtom(),h=o.type==="Identifier";return this.enterScope(h?X:0),this.checkLValPattern(o,h?xt:Me),this.expect(f.parenR),o},ye.parseTryStatement=function(o){if(this.next(),o.block=this.parseBlock(),o.handler=null,this.type===f._catch){var h=this.startNode();this.next(),this.eat(f.parenL)?h.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),h.param=null,this.enterScope(0)),h.body=this.parseBlock(!1),this.exitScope(),o.handler=this.finishNode(h,"CatchClause")}return o.finalizer=this.eat(f._finally)?this.parseBlock():null,!o.handler&&!o.finalizer&&this.raise(o.start,"Missing catch or finally clause"),this.finishNode(o,"TryStatement")},ye.parseVarStatement=function(o,h,v){return this.next(),this.parseVar(o,!1,h,v),this.semicolon(),this.finishNode(o,"VariableDeclaration")},ye.parseWhileStatement=function(o){return this.next(),o.test=this.parseParenExpression(),this.labels.push(wt),o.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(o,"WhileStatement")},ye.parseWithStatement=function(o){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),o.object=this.parseParenExpression(),o.body=this.parseStatement("with"),this.finishNode(o,"WithStatement")},ye.parseEmptyStatement=function(o){return this.next(),this.finishNode(o,"EmptyStatement")},ye.parseLabeledStatement=function(o,h,v,_){for(var L=0,Y=this.labels;L<Y.length;L+=1){var Q=Y[L];Q.name===h&&this.raise(v.start,"Label '"+h+"' is already declared")}for(var fe=this.type.isLoop?"loop":this.type===f._switch?"switch":null,ve=this.labels.length-1;ve>=0;ve--){var De=this.labels[ve];if(De.statementStart===o.start)De.statementStart=this.start,De.kind=fe;else break}return this.labels.push({name:h,kind:fe,statementStart:this.start}),o.body=this.parseStatement(_?_.indexOf("label")===-1?_+"label":_:"label"),this.labels.pop(),o.label=v,this.finishNode(o,"LabeledStatement")},ye.parseExpressionStatement=function(o,h){return o.expression=h,this.semicolon(),this.finishNode(o,"ExpressionStatement")},ye.parseBlock=function(o,h,v){for(o===void 0&&(o=!0),h===void 0&&(h=this.startNode()),h.body=[],this.expect(f.braceL),o&&this.enterScope(0);this.type!==f.braceR;){var _=this.parseStatement(null);h.body.push(_)}return v&&(this.strict=!1),this.next(),o&&this.exitScope(),this.finishNode(h,"BlockStatement")},ye.parseFor=function(o,h){return o.init=h,this.expect(f.semi),o.test=this.type===f.semi?null:this.parseExpression(),this.expect(f.semi),o.update=this.type===f.parenR?null:this.parseExpression(),this.expect(f.parenR),o.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(o,"ForStatement")},ye.parseForIn=function(o,h){var v=this.type===f._in;return this.next(),h.type==="VariableDeclaration"&&h.declarations[0].init!=null&&(!v||this.options.ecmaVersion<8||this.strict||h.kind!=="var"||h.declarations[0].id.type!=="Identifier")&&this.raise(h.start,(v?"for-in":"for-of")+" loop variable declaration may not have an initializer"),o.left=h,o.right=v?this.parseExpression():this.parseMaybeAssign(),this.expect(f.parenR),o.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(o,v?"ForInStatement":"ForOfStatement")},ye.parseVar=function(o,h,v,_){for(o.declarations=[],o.kind=v;;){var L=this.startNode();if(this.parseVarId(L,v),this.eat(f.eq)?L.init=this.parseMaybeAssign(h):!_&&v==="const"&&!(this.type===f._in||this.options.ecmaVersion>=6&&this.isContextual("of"))?this.unexpected():!_&&(v==="using"||v==="await using")&&this.options.ecmaVersion>=17&&this.type!==f._in&&!this.isContextual("of")?this.raise(this.lastTokEnd,"Missing initializer in "+v+" declaration"):!_&&L.id.type!=="Identifier"&&!(h&&(this.type===f._in||this.isContextual("of")))?this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):L.init=null,o.declarations.push(this.finishNode(L,"VariableDeclarator")),!this.eat(f.comma))break}return o},ye.parseVarId=function(o,h){o.id=h==="using"||h==="await using"?this.parseIdent():this.parseBindingAtom(),this.checkLValPattern(o.id,h==="var"?$e:Me,!1)};var ut=1,Vt=2,Ct=4;ye.parseFunction=function(o,h,v,_,L){this.initFunction(o),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!_)&&(this.type===f.star&&h&Vt&&this.unexpected(),o.generator=this.eat(f.star)),this.options.ecmaVersion>=8&&(o.async=!!_),h&ut&&(o.id=h&Ct&&this.type!==f.name?null:this.parseIdent(),o.id&&!(h&Vt)&&this.checkLValSimple(o.id,this.strict||o.generator||o.async?this.treatFunctionsAsVar?$e:Me:Fe));var Y=this.yieldPos,Q=this.awaitPos,fe=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Se(o.async,o.generator)),h&ut||(o.id=this.type===f.name?this.parseIdent():null),this.parseFunctionParams(o),this.parseFunctionBody(o,v,!1,L),this.yieldPos=Y,this.awaitPos=Q,this.awaitIdentPos=fe,this.finishNode(o,h&ut?"FunctionDeclaration":"FunctionExpression")},ye.parseFunctionParams=function(o){this.expect(f.parenL),o.params=this.parseBindingList(f.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},ye.parseClass=function(o,h){this.next();var v=this.strict;this.strict=!0,this.parseClassId(o,h),this.parseClassSuper(o);var _=this.enterClassBody(),L=this.startNode(),Y=!1;for(L.body=[],this.expect(f.braceL);this.type!==f.braceR;){var Q=this.parseClassElement(o.superClass!==null);Q&&(L.body.push(Q),Q.type==="MethodDefinition"&&Q.kind==="constructor"?(Y&&this.raiseRecoverable(Q.start,"Duplicate constructor in the same class"),Y=!0):Q.key&&Q.key.type==="PrivateIdentifier"&&kr(_,Q)&&this.raiseRecoverable(Q.key.start,"Identifier '#"+Q.key.name+"' has already been declared"))}return this.strict=v,this.next(),o.body=this.finishNode(L,"ClassBody"),this.exitClassBody(),this.finishNode(o,h?"ClassDeclaration":"ClassExpression")},ye.parseClassElement=function(o){if(this.eat(f.semi))return null;var h=this.options.ecmaVersion,v=this.startNode(),_="",L=!1,Y=!1,Q="method",fe=!1;if(this.eatContextual("static")){if(h>=13&&this.eat(f.braceL))return this.parseClassStaticBlock(v),v;this.isClassElementNameStart()||this.type===f.star?fe=!0:_="static"}if(v.static=fe,!_&&h>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.type===f.star)&&!this.canInsertSemicolon()?Y=!0:_="async"),!_&&(h>=9||!Y)&&this.eat(f.star)&&(L=!0),!_&&!Y&&!L){var ve=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?Q=ve:_=ve)}if(_?(v.computed=!1,v.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),v.key.name=_,this.finishNode(v.key,"Identifier")):this.parseClassElementName(v),h<13||this.type===f.parenL||Q!=="method"||L||Y){var De=!v.static&&un(v,"constructor"),Be=De&&o;De&&Q!=="method"&&this.raise(v.key.start,"Constructor can't have get/set modifier"),v.kind=De?"constructor":Q,this.parseClassMethod(v,L,Y,Be)}else this.parseClassField(v);return v},ye.isClassElementNameStart=function(){return this.type===f.name||this.type===f.privateId||this.type===f.num||this.type===f.string||this.type===f.bracketL||this.type.keyword},ye.parseClassElementName=function(o){this.type===f.privateId?(this.value==="constructor"&&this.raise(this.start,"Classes can't have an element named '#constructor'"),o.computed=!1,o.key=this.parsePrivateIdent()):this.parsePropertyName(o)},ye.parseClassMethod=function(o,h,v,_){var L=o.key;o.kind==="constructor"?(h&&this.raise(L.start,"Constructor can't be a generator"),v&&this.raise(L.start,"Constructor can't be an async method")):o.static&&un(o,"prototype")&&this.raise(L.start,"Classes may not have a static property named prototype");var Y=o.value=this.parseMethod(h,v,_);return o.kind==="get"&&Y.params.length!==0&&this.raiseRecoverable(Y.start,"getter should have no params"),o.kind==="set"&&Y.params.length!==1&&this.raiseRecoverable(Y.start,"setter should have exactly one param"),o.kind==="set"&&Y.params[0].type==="RestElement"&&this.raiseRecoverable(Y.params[0].start,"Setter cannot use rest params"),this.finishNode(o,"MethodDefinition")},ye.parseClassField=function(o){return un(o,"constructor")?this.raise(o.key.start,"Classes can't have a field named 'constructor'"):o.static&&un(o,"prototype")&&this.raise(o.key.start,"Classes can't have a static field named 'prototype'"),this.eat(f.eq)?(this.enterScope(ke|me),o.value=this.parseMaybeAssign(),this.exitScope()):o.value=null,this.semicolon(),this.finishNode(o,"PropertyDefinition")},ye.parseClassStaticBlock=function(o){o.body=[];var h=this.labels;for(this.labels=[],this.enterScope(be|me);this.type!==f.braceR;){var v=this.parseStatement(null);o.body.push(v)}return this.next(),this.exitScope(),this.labels=h,this.finishNode(o,"StaticBlock")},ye.parseClassId=function(o,h){this.type===f.name?(o.id=this.parseIdent(),h&&this.checkLValSimple(o.id,Me,!1)):(h===!0&&this.unexpected(),o.id=null)},ye.parseClassSuper=function(o){o.superClass=this.eat(f._extends)?this.parseExprSubscripts(null,!1):null},ye.enterClassBody=function(){var o={declared:Object.create(null),used:[]};return this.privateNameStack.push(o),o.declared},ye.exitClassBody=function(){var o=this.privateNameStack.pop(),h=o.declared,v=o.used;if(this.options.checkPrivateFields)for(var _=this.privateNameStack.length,L=_===0?null:this.privateNameStack[_-1],Y=0;Y<v.length;++Y){var Q=v[Y];Z(h,Q.name)||(L?L.used.push(Q):this.raiseRecoverable(Q.start,"Private field '#"+Q.name+"' must be declared in an enclosing class"))}};function kr(o,h){var v=h.key.name,_=o[v],L="true";return h.type==="MethodDefinition"&&(h.kind==="get"||h.kind==="set")&&(L=(h.static?"s":"i")+h.kind),_==="iget"&&L==="iset"||_==="iset"&&L==="iget"||_==="sget"&&L==="sset"||_==="sset"&&L==="sget"?(o[v]="true",!1):_?!0:(o[v]=L,!1)}function un(o,h){var v=o.computed,_=o.key;return!v&&(_.type==="Identifier"&&_.name===h||_.type==="Literal"&&_.value===h)}ye.parseExportAllDeclaration=function(o,h){return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(o.exported=this.parseModuleExportName(),this.checkExport(h,o.exported,this.lastTokStart)):o.exported=null),this.expectContextual("from"),this.type!==f.string&&this.unexpected(),o.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(o.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(o,"ExportAllDeclaration")},ye.parseExport=function(o,h){if(this.next(),this.eat(f.star))return this.parseExportAllDeclaration(o,h);if(this.eat(f._default))return this.checkExport(h,"default",this.lastTokStart),o.declaration=this.parseExportDefaultDeclaration(),this.finishNode(o,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())o.declaration=this.parseExportDeclaration(o),o.declaration.type==="VariableDeclaration"?this.checkVariableExport(h,o.declaration.declarations):this.checkExport(h,o.declaration.id,o.declaration.id.start),o.specifiers=[],o.source=null,this.options.ecmaVersion>=16&&(o.attributes=[]);else{if(o.declaration=null,o.specifiers=this.parseExportSpecifiers(h),this.eatContextual("from"))this.type!==f.string&&this.unexpected(),o.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(o.attributes=this.parseWithClause());else{for(var v=0,_=o.specifiers;v<_.length;v+=1){var L=_[v];this.checkUnreserved(L.local),this.checkLocalExport(L.local),L.local.type==="Literal"&&this.raise(L.local.start,"A string literal cannot be used as an exported binding without `from`.")}o.source=null,this.options.ecmaVersion>=16&&(o.attributes=[])}this.semicolon()}return this.finishNode(o,"ExportNamedDeclaration")},ye.parseExportDeclaration=function(o){return this.parseStatement(null)},ye.parseExportDefaultDeclaration=function(){var o;if(this.type===f._function||(o=this.isAsyncFunction())){var h=this.startNode();return this.next(),o&&this.next(),this.parseFunction(h,ut|Ct,!1,o)}else if(this.type===f._class){var v=this.startNode();return this.parseClass(v,"nullableID")}else{var _=this.parseMaybeAssign();return this.semicolon(),_}},ye.checkExport=function(o,h,v){o&&(typeof h!="string"&&(h=h.type==="Identifier"?h.name:h.value),Z(o,h)&&this.raiseRecoverable(v,"Duplicate export '"+h+"'"),o[h]=!0)},ye.checkPatternExport=function(o,h){var v=h.type;if(v==="Identifier")this.checkExport(o,h,h.start);else if(v==="ObjectPattern")for(var _=0,L=h.properties;_<L.length;_+=1){var Y=L[_];this.checkPatternExport(o,Y)}else if(v==="ArrayPattern")for(var Q=0,fe=h.elements;Q<fe.length;Q+=1){var ve=fe[Q];ve&&this.checkPatternExport(o,ve)}else v==="Property"?this.checkPatternExport(o,h.value):v==="AssignmentPattern"?this.checkPatternExport(o,h.left):v==="RestElement"&&this.checkPatternExport(o,h.argument)},ye.checkVariableExport=function(o,h){if(o)for(var v=0,_=h;v<_.length;v+=1){var L=_[v];this.checkPatternExport(o,L.id)}},ye.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()},ye.parseExportSpecifier=function(o){var h=this.startNode();return h.local=this.parseModuleExportName(),h.exported=this.eatContextual("as")?this.parseModuleExportName():h.local,this.checkExport(o,h.exported,h.exported.start),this.finishNode(h,"ExportSpecifier")},ye.parseExportSpecifiers=function(o){var h=[],v=!0;for(this.expect(f.braceL);!this.eat(f.braceR);){if(v)v=!1;else if(this.expect(f.comma),this.afterTrailingComma(f.braceR))break;h.push(this.parseExportSpecifier(o))}return h},ye.parseImport=function(o){return this.next(),this.type===f.string?(o.specifiers=In,o.source=this.parseExprAtom()):(o.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),o.source=this.type===f.string?this.parseExprAtom():this.unexpected()),this.options.ecmaVersion>=16&&(o.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(o,"ImportDeclaration")},ye.parseImportSpecifier=function(){var o=this.startNode();return o.imported=this.parseModuleExportName(),this.eatContextual("as")?o.local=this.parseIdent():(this.checkUnreserved(o.imported),o.local=o.imported),this.checkLValSimple(o.local,Me),this.finishNode(o,"ImportSpecifier")},ye.parseImportDefaultSpecifier=function(){var o=this.startNode();return o.local=this.parseIdent(),this.checkLValSimple(o.local,Me),this.finishNode(o,"ImportDefaultSpecifier")},ye.parseImportNamespaceSpecifier=function(){var o=this.startNode();return this.next(),this.expectContextual("as"),o.local=this.parseIdent(),this.checkLValSimple(o.local,Me),this.finishNode(o,"ImportNamespaceSpecifier")},ye.parseImportSpecifiers=function(){var o=[],h=!0;if(this.type===f.name&&(o.push(this.parseImportDefaultSpecifier()),!this.eat(f.comma)))return o;if(this.type===f.star)return o.push(this.parseImportNamespaceSpecifier()),o;for(this.expect(f.braceL);!this.eat(f.braceR);){if(h)h=!1;else if(this.expect(f.comma),this.afterTrailingComma(f.braceR))break;o.push(this.parseImportSpecifier())}return o},ye.parseWithClause=function(){var o=[];if(!this.eat(f._with))return o;this.expect(f.braceL);for(var h={},v=!0;!this.eat(f.braceR);){if(v)v=!1;else if(this.expect(f.comma),this.afterTrailingComma(f.braceR))break;var _=this.parseImportAttribute(),L=_.key.type==="Identifier"?_.key.name:_.key.value;Z(h,L)&&this.raiseRecoverable(_.key.start,"Duplicate attribute key '"+L+"'"),h[L]=!0,o.push(_)}return o},ye.parseImportAttribute=function(){var o=this.startNode();return o.key=this.type===f.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never"),this.expect(f.colon),this.type!==f.string&&this.unexpected(),o.value=this.parseExprAtom(),this.finishNode(o,"ImportAttribute")},ye.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===f.string){var o=this.parseLiteral(this.value);return V.test(o.value)&&this.raise(o.start,"An export name cannot include a lone surrogate."),o}return this.parseIdent(!0)},ye.adaptDirectivePrologue=function(o){for(var h=0;h<o.length&&this.isDirectiveCandidate(o[h]);++h)o[h].directive=o[h].expression.raw.slice(1,-1)},ye.isDirectiveCandidate=function(o){return this.options.ecmaVersion>=5&&o.type==="ExpressionStatement"&&o.expression.type==="Literal"&&typeof o.expression.value=="string"&&(this.input[o.start]==='"'||this.input[o.start]==="'")};var It=re.prototype;It.toAssignable=function(o,h,v){if(this.options.ecmaVersion>=6&&o)switch(o.type){case"Identifier":this.inAsync&&o.name==="await"&&this.raise(o.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":o.type="ObjectPattern",v&&this.checkPatternErrors(v,!0);for(var _=0,L=o.properties;_<L.length;_+=1){var Y=L[_];this.toAssignable(Y,h),Y.type==="RestElement"&&(Y.argument.type==="ArrayPattern"||Y.argument.type==="ObjectPattern")&&this.raise(Y.argument.start,"Unexpected token")}break;case"Property":o.kind!=="init"&&this.raise(o.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(o.value,h);break;case"ArrayExpression":o.type="ArrayPattern",v&&this.checkPatternErrors(v,!0),this.toAssignableList(o.elements,h);break;case"SpreadElement":o.type="RestElement",this.toAssignable(o.argument,h),o.argument.type==="AssignmentPattern"&&this.raise(o.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":o.operator!=="="&&this.raise(o.left.end,"Only '=' operator can be used for specifying default value."),o.type="AssignmentPattern",delete o.operator,this.toAssignable(o.left,h);break;case"ParenthesizedExpression":this.toAssignable(o.expression,h,v);break;case"ChainExpression":this.raiseRecoverable(o.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!h)break;default:this.raise(o.start,"Assigning to rvalue")}else v&&this.checkPatternErrors(v,!0);return o},It.toAssignableList=function(o,h){for(var v=o.length,_=0;_<v;_++){var L=o[_];L&&this.toAssignable(L,h)}if(v){var Y=o[v-1];this.options.ecmaVersion===6&&h&&Y&&Y.type==="RestElement"&&Y.argument.type!=="Identifier"&&this.unexpected(Y.argument.start)}return o},It.parseSpread=function(o){var h=this.startNode();return this.next(),h.argument=this.parseMaybeAssign(!1,o),this.finishNode(h,"SpreadElement")},It.parseRestBinding=function(){var o=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==f.name&&this.unexpected(),o.argument=this.parseBindingAtom(),this.finishNode(o,"RestElement")},It.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case f.bracketL:var o=this.startNode();return this.next(),o.elements=this.parseBindingList(f.bracketR,!0,!0),this.finishNode(o,"ArrayPattern");case f.braceL:return this.parseObj(!0)}return this.parseIdent()},It.parseBindingList=function(o,h,v,_){for(var L=[],Y=!0;!this.eat(o);)if(Y?Y=!1:this.expect(f.comma),h&&this.type===f.comma)L.push(null);else{if(v&&this.afterTrailingComma(o))break;if(this.type===f.ellipsis){var Q=this.parseRestBinding();this.parseBindingListItem(Q),L.push(Q),this.type===f.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(o);break}else L.push(this.parseAssignableListItem(_))}return L},It.parseAssignableListItem=function(o){var h=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(h),h},It.parseBindingListItem=function(o){return o},It.parseMaybeDefault=function(o,h,v){if(v=v||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(f.eq))return v;var _=this.startNodeAt(o,h);return _.left=v,_.right=this.parseMaybeAssign(),this.finishNode(_,"AssignmentPattern")},It.checkLValSimple=function(o,h,v){h===void 0&&(h=Ve);var _=h!==Ve;switch(o.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(o.name)&&this.raiseRecoverable(o.start,(_?"Binding ":"Assigning to ")+o.name+" in strict mode"),_&&(h===Me&&o.name==="let"&&this.raiseRecoverable(o.start,"let is disallowed as a lexically bound name"),v&&(Z(v,o.name)&&this.raiseRecoverable(o.start,"Argument name clash"),v[o.name]=!0),h!==le&&this.declareName(o.name,h,o.start));break;case"ChainExpression":this.raiseRecoverable(o.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":_&&this.raiseRecoverable(o.start,"Binding member expression");break;case"ParenthesizedExpression":return _&&this.raiseRecoverable(o.start,"Binding parenthesized expression"),this.checkLValSimple(o.expression,h,v);default:this.raise(o.start,(_?"Binding":"Assigning to")+" rvalue")}},It.checkLValPattern=function(o,h,v){switch(h===void 0&&(h=Ve),o.type){case"ObjectPattern":for(var _=0,L=o.properties;_<L.length;_+=1){var Y=L[_];this.checkLValInnerPattern(Y,h,v)}break;case"ArrayPattern":for(var Q=0,fe=o.elements;Q<fe.length;Q+=1){var ve=fe[Q];ve&&this.checkLValInnerPattern(ve,h,v)}break;default:this.checkLValSimple(o,h,v)}},It.checkLValInnerPattern=function(o,h,v){switch(h===void 0&&(h=Ve),o.type){case"Property":this.checkLValInnerPattern(o.value,h,v);break;case"AssignmentPattern":this.checkLValPattern(o.left,h,v);break;case"RestElement":this.checkLValPattern(o.argument,h,v);break;default:this.checkLValPattern(o,h,v)}};var Pt=function(h,v,_,L,Y){this.token=h,this.isExpr=!!v,this.preserveSpace=!!_,this.override=L,this.generator=!!Y},it={b_stat:new Pt("{",!1),b_expr:new Pt("{",!0),b_tmpl:new Pt("${",!1),p_stat:new Pt("(",!1),p_expr:new Pt("(",!0),q_tmpl:new Pt("`",!0,!0,function(o){return o.tryReadTemplateToken()}),f_stat:new Pt("function",!1),f_expr:new Pt("function",!0),f_expr_gen:new Pt("function",!0,!1,null,!0),f_gen:new Pt("function",!1,!1,null,!0)},cn=re.prototype;cn.initialContext=function(){return[it.b_stat]},cn.curContext=function(){return this.context[this.context.length-1]},cn.braceIsBlock=function(o){var h=this.curContext();return h===it.f_expr||h===it.f_stat?!0:o===f.colon&&(h===it.b_stat||h===it.b_expr)?!h.isExpr:o===f._return||o===f.name&&this.exprAllowed?T.test(this.input.slice(this.lastTokEnd,this.start)):o===f._else||o===f.semi||o===f.eof||o===f.parenR||o===f.arrow?!0:o===f.braceL?h===it.b_stat:o===f._var||o===f._const||o===f.name?!1:!this.exprAllowed},cn.inGeneratorContext=function(){for(var o=this.context.length-1;o>=1;o--){var h=this.context[o];if(h.token==="function")return h.generator}return!1},cn.updateContext=function(o){var h,v=this.type;v.keyword&&o===f.dot?this.exprAllowed=!1:(h=v.updateContext)?h.call(this,o):this.exprAllowed=v.beforeExpr},cn.overrideContext=function(o){this.curContext()!==o&&(this.context[this.context.length-1]=o)},f.parenR.updateContext=f.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var o=this.context.pop();o===it.b_stat&&this.curContext().token==="function"&&(o=this.context.pop()),this.exprAllowed=!o.isExpr},f.braceL.updateContext=function(o){this.context.push(this.braceIsBlock(o)?it.b_stat:it.b_expr),this.exprAllowed=!0},f.dollarBraceL.updateContext=function(){this.context.push(it.b_tmpl),this.exprAllowed=!0},f.parenL.updateContext=function(o){var h=o===f._if||o===f._for||o===f._with||o===f._while;this.context.push(h?it.p_stat:it.p_expr),this.exprAllowed=!0},f.incDec.updateContext=function(){},f._function.updateContext=f._class.updateContext=function(o){o.beforeExpr&&o!==f._else&&!(o===f.semi&&this.curContext()!==it.p_stat)&&!(o===f._return&&T.test(this.input.slice(this.lastTokEnd,this.start)))&&!((o===f.colon||o===f.braceL)&&this.curContext()===it.b_stat)?this.context.push(it.f_expr):this.context.push(it.f_stat),this.exprAllowed=!1},f.colon.updateContext=function(){this.curContext().token==="function"&&this.context.pop(),this.exprAllowed=!0},f.backQuote.updateContext=function(){this.curContext()===it.q_tmpl?this.context.pop():this.context.push(it.q_tmpl),this.exprAllowed=!1},f.star.updateContext=function(o){if(o===f._function){var h=this.context.length-1;this.context[h]===it.f_expr?this.context[h]=it.f_expr_gen:this.context[h]=it.f_gen}this.exprAllowed=!0},f.name.updateContext=function(o){var h=!1;this.options.ecmaVersion>=6&&o!==f.dot&&(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())&&(h=!0),this.exprAllowed=h};var Re=re.prototype;Re.checkPropClash=function(o,h,v){if(!(this.options.ecmaVersion>=9&&o.type==="SpreadElement")&&!(this.options.ecmaVersion>=6&&(o.computed||o.method||o.shorthand))){var _=o.key,L;switch(_.type){case"Identifier":L=_.name;break;case"Literal":L=String(_.value);break;default:return}var Y=o.kind;if(this.options.ecmaVersion>=6){L==="__proto__"&&Y==="init"&&(h.proto&&(v?v.doubleProto<0&&(v.doubleProto=_.start):this.raiseRecoverable(_.start,"Redefinition of __proto__ property")),h.proto=!0);return}L="$"+L;var Q=h[L];if(Q){var fe;Y==="init"?fe=this.strict&&Q.init||Q.get||Q.set:fe=Q.init||Q[Y],fe&&this.raiseRecoverable(_.start,"Redefinition of property")}else Q=h[L]={init:!1,get:!1,set:!1};Q[Y]=!0}},Re.parseExpression=function(o,h){var v=this.start,_=this.startLoc,L=this.parseMaybeAssign(o,h);if(this.type===f.comma){var Y=this.startNodeAt(v,_);for(Y.expressions=[L];this.eat(f.comma);)Y.expressions.push(this.parseMaybeAssign(o,h));return this.finishNode(Y,"SequenceExpression")}return L},Re.parseMaybeAssign=function(o,h,v){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(o);this.exprAllowed=!1}var _=!1,L=-1,Y=-1,Q=-1;h?(L=h.parenthesizedAssign,Y=h.trailingComma,Q=h.doubleProto,h.parenthesizedAssign=h.trailingComma=-1):(h=new ot,_=!0);var fe=this.start,ve=this.startLoc;(this.type===f.parenL||this.type===f.name)&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait=o==="await");var De=this.parseMaybeConditional(o,h);if(v&&(De=v.call(this,De,fe,ve)),this.type.isAssign){var Be=this.startNodeAt(fe,ve);return Be.operator=this.value,this.type===f.eq&&(De=this.toAssignable(De,!1,h)),_||(h.parenthesizedAssign=h.trailingComma=h.doubleProto=-1),h.shorthandAssign>=De.start&&(h.shorthandAssign=-1),this.type===f.eq?this.checkLValPattern(De):this.checkLValSimple(De),Be.left=De,this.next(),Be.right=this.parseMaybeAssign(o),Q>-1&&(h.doubleProto=Q),this.finishNode(Be,"AssignmentExpression")}else _&&this.checkExpressionErrors(h,!0);return L>-1&&(h.parenthesizedAssign=L),Y>-1&&(h.trailingComma=Y),De},Re.parseMaybeConditional=function(o,h){var v=this.start,_=this.startLoc,L=this.parseExprOps(o,h);if(this.checkExpressionErrors(h))return L;if(this.eat(f.question)){var Y=this.startNodeAt(v,_);return Y.test=L,Y.consequent=this.parseMaybeAssign(),this.expect(f.colon),Y.alternate=this.parseMaybeAssign(o),this.finishNode(Y,"ConditionalExpression")}return L},Re.parseExprOps=function(o,h){var v=this.start,_=this.startLoc,L=this.parseMaybeUnary(h,!1,!1,o);return this.checkExpressionErrors(h)||L.start===v&&L.type==="ArrowFunctionExpression"?L:this.parseExprOp(L,v,_,-1,o)},Re.parseExprOp=function(o,h,v,_,L){var Y=this.type.binop;if(Y!=null&&(!L||this.type!==f._in)&&Y>_){var Q=this.type===f.logicalOR||this.type===f.logicalAND,fe=this.type===f.coalesce;fe&&(Y=f.logicalAND.binop);var ve=this.value;this.next();var De=this.start,Be=this.startLoc,rt=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,L),De,Be,Y,L),kt=this.buildBinary(h,v,o,rt,ve,Q||fe);return(Q&&this.type===f.coalesce||fe&&(this.type===f.logicalOR||this.type===f.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(kt,h,v,_,L)}return o},Re.buildBinary=function(o,h,v,_,L,Y){_.type==="PrivateIdentifier"&&this.raise(_.start,"Private identifier can only be left side of binary expression");var Q=this.startNodeAt(o,h);return Q.left=v,Q.operator=L,Q.right=_,this.finishNode(Q,Y?"LogicalExpression":"BinaryExpression")},Re.parseMaybeUnary=function(o,h,v,_){var L=this.start,Y=this.startLoc,Q;if(this.isContextual("await")&&this.canAwait)Q=this.parseAwait(_),h=!0;else if(this.type.prefix){var fe=this.startNode(),ve=this.type===f.incDec;fe.operator=this.value,fe.prefix=!0,this.next(),fe.argument=this.parseMaybeUnary(null,!0,ve,_),this.checkExpressionErrors(o,!0),ve?this.checkLValSimple(fe.argument):this.strict&&fe.operator==="delete"&&Sr(fe.argument)?this.raiseRecoverable(fe.start,"Deleting local variable in strict mode"):fe.operator==="delete"&&di(fe.argument)?this.raiseRecoverable(fe.start,"Private fields can not be deleted"):h=!0,Q=this.finishNode(fe,ve?"UpdateExpression":"UnaryExpression")}else if(!h&&this.type===f.privateId)(_||this.privateNameStack.length===0)&&this.options.checkPrivateFields&&this.unexpected(),Q=this.parsePrivateIdent(),this.type!==f._in&&this.unexpected();else{if(Q=this.parseExprSubscripts(o,_),this.checkExpressionErrors(o))return Q;for(;this.type.postfix&&!this.canInsertSemicolon();){var De=this.startNodeAt(L,Y);De.operator=this.value,De.prefix=!1,De.argument=Q,this.checkLValSimple(Q),this.next(),Q=this.finishNode(De,"UpdateExpression")}}if(!v&&this.eat(f.starstar))if(h)this.unexpected(this.lastTokStart);else return this.buildBinary(L,Y,Q,this.parseMaybeUnary(null,!1,!1,_),"**",!1);else return Q};function Sr(o){return o.type==="Identifier"||o.type==="ParenthesizedExpression"&&Sr(o.expression)}function di(o){return o.type==="MemberExpression"&&o.property.type==="PrivateIdentifier"||o.type==="ChainExpression"&&di(o.expression)||o.type==="ParenthesizedExpression"&&di(o.expression)}Re.parseExprSubscripts=function(o,h){var v=this.start,_=this.startLoc,L=this.parseExprAtom(o,h);if(L.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return L;var Y=this.parseSubscripts(L,v,_,!1,h);return o&&Y.type==="MemberExpression"&&(o.parenthesizedAssign>=Y.start&&(o.parenthesizedAssign=-1),o.parenthesizedBind>=Y.start&&(o.parenthesizedBind=-1),o.trailingComma>=Y.start&&(o.trailingComma=-1)),Y},Re.parseSubscripts=function(o,h,v,_,L){for(var Y=this.options.ecmaVersion>=8&&o.type==="Identifier"&&o.name==="async"&&this.lastTokEnd===o.end&&!this.canInsertSemicolon()&&o.end-o.start===5&&this.potentialArrowAt===o.start,Q=!1;;){var fe=this.parseSubscript(o,h,v,_,Y,Q,L);if(fe.optional&&(Q=!0),fe===o||fe.type==="ArrowFunctionExpression"){if(Q){var ve=this.startNodeAt(h,v);ve.expression=fe,fe=this.finishNode(ve,"ChainExpression")}return fe}o=fe}},Re.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(f.arrow)},Re.parseSubscriptAsyncArrow=function(o,h,v,_){return this.parseArrowExpression(this.startNodeAt(o,h),v,!0,_)},Re.parseSubscript=function(o,h,v,_,L,Y,Q){var fe=this.options.ecmaVersion>=11,ve=fe&&this.eat(f.questionDot);_&&ve&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var De=this.eat(f.bracketL);if(De||ve&&this.type!==f.parenL&&this.type!==f.backQuote||this.eat(f.dot)){var Be=this.startNodeAt(h,v);Be.object=o,De?(Be.property=this.parseExpression(),this.expect(f.bracketR)):this.type===f.privateId&&o.type!=="Super"?Be.property=this.parsePrivateIdent():Be.property=this.parseIdent(this.options.allowReserved!=="never"),Be.computed=!!De,fe&&(Be.optional=ve),o=this.finishNode(Be,"MemberExpression")}else if(!_&&this.eat(f.parenL)){var rt=new ot,kt=this.yieldPos,Ui=this.awaitPos,fi=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var Ar=this.parseExprList(f.parenR,this.options.ecmaVersion>=8,!1,rt);if(L&&!ve&&this.shouldParseAsyncArrow())return this.checkPatternErrors(rt,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=kt,this.awaitPos=Ui,this.awaitIdentPos=fi,this.parseSubscriptAsyncArrow(h,v,Ar,Q);this.checkExpressionErrors(rt,!0),this.yieldPos=kt||this.yieldPos,this.awaitPos=Ui||this.awaitPos,this.awaitIdentPos=fi||this.awaitIdentPos;var gi=this.startNodeAt(h,v);gi.callee=o,gi.arguments=Ar,fe&&(gi.optional=ve),o=this.finishNode(gi,"CallExpression")}else if(this.type===f.backQuote){(ve||Y)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var mi=this.startNodeAt(h,v);mi.tag=o,mi.quasi=this.parseTemplate({isTagged:!0}),o=this.finishNode(mi,"TaggedTemplateExpression")}return o},Re.parseExprAtom=function(o,h,v){this.type===f.slash&&this.readRegexp();var _,L=this.potentialArrowAt===this.start;switch(this.type){case f._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),_=this.startNode(),this.next(),this.type===f.parenL&&!this.allowDirectSuper&&this.raise(_.start,"super() call outside constructor of a subclass"),this.type!==f.dot&&this.type!==f.bracketL&&this.type!==f.parenL&&this.unexpected(),this.finishNode(_,"Super");case f._this:return _=this.startNode(),this.next(),this.finishNode(_,"ThisExpression");case f.name:var Y=this.start,Q=this.startLoc,fe=this.containsEsc,ve=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!fe&&ve.name==="async"&&!this.canInsertSemicolon()&&this.eat(f._function))return this.overrideContext(it.f_expr),this.parseFunction(this.startNodeAt(Y,Q),0,!1,!0,h);if(L&&!this.canInsertSemicolon()){if(this.eat(f.arrow))return this.parseArrowExpression(this.startNodeAt(Y,Q),[ve],!1,h);if(this.options.ecmaVersion>=8&&ve.name==="async"&&this.type===f.name&&!fe&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc))return ve=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(f.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(Y,Q),[ve],!0,h)}return ve;case f.regexp:var De=this.value;return _=this.parseLiteral(De.value),_.regex={pattern:De.pattern,flags:De.flags},_;case f.num:case f.string:return this.parseLiteral(this.value);case f._null:case f._true:case f._false:return _=this.startNode(),_.value=this.type===f._null?null:this.type===f._true,_.raw=this.type.keyword,this.next(),this.finishNode(_,"Literal");case f.parenL:var Be=this.start,rt=this.parseParenAndDistinguishExpression(L,h);return o&&(o.parenthesizedAssign<0&&!this.isSimpleAssignTarget(rt)&&(o.parenthesizedAssign=Be),o.parenthesizedBind<0&&(o.parenthesizedBind=Be)),rt;case f.bracketL:return _=this.startNode(),this.next(),_.elements=this.parseExprList(f.bracketR,!0,!0,o),this.finishNode(_,"ArrayExpression");case f.braceL:return this.overrideContext(it.b_expr),this.parseObj(!1,o);case f._function:return _=this.startNode(),this.next(),this.parseFunction(_,0);case f._class:return this.parseClass(this.startNode(),!1);case f._new:return this.parseNew();case f.backQuote:return this.parseTemplate();case f._import:return this.options.ecmaVersion>=11?this.parseExprImport(v):this.unexpected();default:return this.parseExprAtomDefault()}},Re.parseExprAtomDefault=function(){this.unexpected()},Re.parseExprImport=function(o){var h=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===f.parenL&&!o)return this.parseDynamicImport(h);if(this.type===f.dot){var v=this.startNodeAt(h.start,h.loc&&h.loc.start);return v.name="import",h.meta=this.finishNode(v,"Identifier"),this.parseImportMeta(h)}else this.unexpected()},Re.parseDynamicImport=function(o){if(this.next(),o.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)this.eat(f.parenR)?o.options=null:(this.expect(f.comma),this.afterTrailingComma(f.parenR)?o.options=null:(o.options=this.parseMaybeAssign(),this.eat(f.parenR)||(this.expect(f.comma),this.afterTrailingComma(f.parenR)||this.unexpected())));else if(!this.eat(f.parenR)){var h=this.start;this.eat(f.comma)&&this.eat(f.parenR)?this.raiseRecoverable(h,"Trailing comma is not allowed in import()"):this.unexpected(h)}return this.finishNode(o,"ImportExpression")},Re.parseImportMeta=function(o){this.next();var h=this.containsEsc;return o.property=this.parseIdent(!0),o.property.name!=="meta"&&this.raiseRecoverable(o.property.start,"The only valid meta property for import is 'import.meta'"),h&&this.raiseRecoverable(o.start,"'import.meta' must not contain escaped characters"),this.options.sourceType!=="module"&&!this.options.allowImportExportEverywhere&&this.raiseRecoverable(o.start,"Cannot use 'import.meta' outside a module"),this.finishNode(o,"MetaProperty")},Re.parseLiteral=function(o){var h=this.startNode();return h.value=o,h.raw=this.input.slice(this.start,this.end),h.raw.charCodeAt(h.raw.length-1)===110&&(h.bigint=h.value!=null?h.value.toString():h.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(h,"Literal")},Re.parseParenExpression=function(){this.expect(f.parenL);var o=this.parseExpression();return this.expect(f.parenR),o},Re.shouldParseArrow=function(o){return!this.canInsertSemicolon()},Re.parseParenAndDistinguishExpression=function(o,h){var v=this.start,_=this.startLoc,L,Y=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var Q=this.start,fe=this.startLoc,ve=[],De=!0,Be=!1,rt=new ot,kt=this.yieldPos,Ui=this.awaitPos,fi;for(this.yieldPos=0,this.awaitPos=0;this.type!==f.parenR;)if(De?De=!1:this.expect(f.comma),Y&&this.afterTrailingComma(f.parenR,!0)){Be=!0;break}else if(this.type===f.ellipsis){fi=this.start,ve.push(this.parseParenItem(this.parseRestBinding())),this.type===f.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}else ve.push(this.parseMaybeAssign(!1,rt,this.parseParenItem));var Ar=this.lastTokEnd,gi=this.lastTokEndLoc;if(this.expect(f.parenR),o&&this.shouldParseArrow(ve)&&this.eat(f.arrow))return this.checkPatternErrors(rt,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=kt,this.awaitPos=Ui,this.parseParenArrowList(v,_,ve,h);(!ve.length||Be)&&this.unexpected(this.lastTokStart),fi&&this.unexpected(fi),this.checkExpressionErrors(rt,!0),this.yieldPos=kt||this.yieldPos,this.awaitPos=Ui||this.awaitPos,ve.length>1?(L=this.startNodeAt(Q,fe),L.expressions=ve,this.finishNodeAt(L,"SequenceExpression",Ar,gi)):L=ve[0]}else L=this.parseParenExpression();if(this.options.preserveParens){var mi=this.startNodeAt(v,_);return mi.expression=L,this.finishNode(mi,"ParenthesizedExpression")}else return L},Re.parseParenItem=function(o){return o},Re.parseParenArrowList=function(o,h,v,_){return this.parseArrowExpression(this.startNodeAt(o,h),v,!1,_)};var is=[];Re.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var o=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===f.dot){var h=this.startNodeAt(o.start,o.loc&&o.loc.start);h.name="new",o.meta=this.finishNode(h,"Identifier"),this.next();var v=this.containsEsc;return o.property=this.parseIdent(!0),o.property.name!=="target"&&this.raiseRecoverable(o.property.start,"The only valid meta property for new is 'new.target'"),v&&this.raiseRecoverable(o.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(o.start,"'new.target' can only be used in functions and class static block"),this.finishNode(o,"MetaProperty")}var _=this.start,L=this.startLoc;return o.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),_,L,!0,!1),this.eat(f.parenL)?o.arguments=this.parseExprList(f.parenR,this.options.ecmaVersion>=8,!1):o.arguments=is,this.finishNode(o,"NewExpression")},Re.parseTemplateElement=function(o){var h=o.isTagged,v=this.startNode();return this.type===f.invalidTemplate?(h||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),v.value={raw:this.value.replace(/\r\n?/g,`
|
|
78
|
-
`),cooked:null}):
|
|
79
|
-
`),cooked:this.value},this.next(),v.tail=this.type===f.backQuote,this.finishNode(v,"TemplateElement")},Re.parseTemplate=function(o){o===void 0&&(o={});var h=o.isTagged;h===void 0&&(h=!1);var v=this.startNode();this.next(),v.expressions=[];var _=this.parseTemplateElement({isTagged:h});for(v.quasis=[_];!_.tail;)this.type===f.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(f.dollarBraceL),v.expressions.push(this.parseExpression()),this.expect(f.braceR),v.quasis.push(_=this.parseTemplateElement({isTagged:h}));return this.next(),this.finishNode(v,"TemplateLiteral")},Re.isAsyncProp=function(o){return!o.computed&&o.key.type==="Identifier"&&o.key.name==="async"&&(this.type===f.name||this.type===f.num||this.type===f.string||this.type===f.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===f.star)&&!T.test(this.input.slice(this.lastTokEnd,this.start))},Re.parseObj=function(o,h){var v=this.startNode(),_=!0,L={};for(v.properties=[],this.next();!this.eat(f.braceR);){if(_)_=!1;else if(this.expect(f.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(f.braceR))break;var Y=this.parseProperty(o,h);o||this.checkPropClash(Y,L,h),v.properties.push(Y)}return this.finishNode(v,o?"ObjectPattern":"ObjectExpression")},Re.parseProperty=function(o,h){var v=this.startNode(),_,L,Y,Q;if(this.options.ecmaVersion>=9&&this.eat(f.ellipsis))return o?(v.argument=this.parseIdent(!1),this.type===f.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(v,"RestElement")):(v.argument=this.parseMaybeAssign(!1,h),this.type===f.comma&&h&&h.trailingComma<0&&(h.trailingComma=this.start),this.finishNode(v,"SpreadElement"));this.options.ecmaVersion>=6&&(v.method=!1,v.shorthand=!1,(o||h)&&(Y=this.start,Q=this.startLoc),o||(_=this.eat(f.star)));var fe=this.containsEsc;return this.parsePropertyName(v),!o&&!fe&&this.options.ecmaVersion>=8&&!_&&this.isAsyncProp(v)?(L=!0,_=this.options.ecmaVersion>=9&&this.eat(f.star),this.parsePropertyName(v)):L=!1,this.parsePropertyValue(v,o,_,L,Y,Q,h,fe),this.finishNode(v,"Property")},Re.parseGetterSetter=function(o){var h=o.key.name;this.parsePropertyName(o),o.value=this.parseMethod(!1),o.kind=h;var v=o.kind==="get"?0:1;if(o.value.params.length!==v){var _=o.value.start;o.kind==="get"?this.raiseRecoverable(_,"getter should have no params"):this.raiseRecoverable(_,"setter should have exactly one param")}else o.kind==="set"&&o.value.params[0].type==="RestElement"&&this.raiseRecoverable(o.value.params[0].start,"Setter cannot use rest params")},Re.parsePropertyValue=function(o,h,v,_,L,Y,Q,fe){(v||_)&&this.type===f.colon&&this.unexpected(),this.eat(f.colon)?(o.value=h?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,Q),o.kind="init"):this.options.ecmaVersion>=6&&this.type===f.parenL?(h&&this.unexpected(),o.method=!0,o.value=this.parseMethod(v,_),o.kind="init"):!h&&!fe&&this.options.ecmaVersion>=5&&!o.computed&&o.key.type==="Identifier"&&(o.key.name==="get"||o.key.name==="set")&&this.type!==f.comma&&this.type!==f.braceR&&this.type!==f.eq?((v||_)&&this.unexpected(),this.parseGetterSetter(o)):this.options.ecmaVersion>=6&&!o.computed&&o.key.type==="Identifier"?((v||_)&&this.unexpected(),this.checkUnreserved(o.key),o.key.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=L),h?o.value=this.parseMaybeDefault(L,Y,this.copyNode(o.key)):this.type===f.eq&&Q?(Q.shorthandAssign<0&&(Q.shorthandAssign=this.start),o.value=this.parseMaybeDefault(L,Y,this.copyNode(o.key))):o.value=this.copyNode(o.key),o.kind="init",o.shorthand=!0):this.unexpected()},Re.parsePropertyName=function(o){if(this.options.ecmaVersion>=6){if(this.eat(f.bracketL))return o.computed=!0,o.key=this.parseMaybeAssign(),this.expect(f.bracketR),o.key;o.computed=!1}return o.key=this.type===f.num||this.type===f.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")},Re.initFunction=function(o){o.id=null,this.options.ecmaVersion>=6&&(o.generator=o.expression=!1),this.options.ecmaVersion>=8&&(o.async=!1)},Re.parseMethod=function(o,h,v){var _=this.startNode(),L=this.yieldPos,Y=this.awaitPos,Q=this.awaitIdentPos;return this.initFunction(_),this.options.ecmaVersion>=6&&(_.generator=o),this.options.ecmaVersion>=8&&(_.async=!!h),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Se(h,_.generator)|me|(v?xe:0)),this.expect(f.parenL),_.params=this.parseBindingList(f.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(_,!1,!0,!1),this.yieldPos=L,this.awaitPos=Y,this.awaitIdentPos=Q,this.finishNode(_,"FunctionExpression")},Re.parseArrowExpression=function(o,h,v,_){var L=this.yieldPos,Y=this.awaitPos,Q=this.awaitIdentPos;return this.enterScope(Se(v,!1)|de),this.initFunction(o),this.options.ecmaVersion>=8&&(o.async=!!v),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,o.params=this.toAssignableList(h,!0),this.parseFunctionBody(o,!0,!1,_),this.yieldPos=L,this.awaitPos=Y,this.awaitIdentPos=Q,this.finishNode(o,"ArrowFunctionExpression")},Re.parseFunctionBody=function(o,h,v,_){var L=h&&this.type!==f.braceL,Y=this.strict,Q=!1;if(L)o.body=this.parseMaybeAssign(_),o.expression=!0,this.checkParams(o,!1);else{var fe=this.options.ecmaVersion>=7&&!this.isSimpleParamList(o.params);(!Y||fe)&&(Q=this.strictDirective(this.end),Q&&fe&&this.raiseRecoverable(o.start,"Illegal 'use strict' directive in function with non-simple parameter list"));var ve=this.labels;this.labels=[],Q&&(this.strict=!0),this.checkParams(o,!Y&&!Q&&!h&&!v&&this.isSimpleParamList(o.params)),this.strict&&o.id&&this.checkLValSimple(o.id,le),o.body=this.parseBlock(!1,void 0,Q&&!Y),o.expression=!1,this.adaptDirectivePrologue(o.body.body),this.labels=ve}this.exitScope()},Re.isSimpleParamList=function(o){for(var h=0,v=o;h<v.length;h+=1){var _=v[h];if(_.type!=="Identifier")return!1}return!0},Re.checkParams=function(o,h){for(var v=Object.create(null),_=0,L=o.params;_<L.length;_+=1){var Y=L[_];this.checkLValInnerPattern(Y,$e,h?null:v)}},Re.parseExprList=function(o,h,v,_){for(var L=[],Y=!0;!this.eat(o);){if(Y)Y=!1;else if(this.expect(f.comma),h&&this.afterTrailingComma(o))break;var Q=void 0;v&&this.type===f.comma?Q=null:this.type===f.ellipsis?(Q=this.parseSpread(_),_&&this.type===f.comma&&_.trailingComma<0&&(_.trailingComma=this.start)):Q=this.parseMaybeAssign(!1,_),L.push(Q)}return L},Re.checkUnreserved=function(o){var h=o.start,v=o.end,_=o.name;if(this.inGenerator&&_==="yield"&&this.raiseRecoverable(h,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&_==="await"&&this.raiseRecoverable(h,"Cannot use 'await' as identifier inside an async function"),!(this.currentThisScope().flags&Ee)&&_==="arguments"&&this.raiseRecoverable(h,"Cannot use 'arguments' in class field initializer"),this.inClassStaticBlock&&(_==="arguments"||_==="await")&&this.raise(h,"Cannot use "+_+" in class static initialization block"),this.keywords.test(_)&&this.raise(h,"Unexpected keyword '"+_+"'"),!(this.options.ecmaVersion<6&&this.input.slice(h,v).indexOf("\\")!==-1)){var L=this.strict?this.reservedWordsStrict:this.reservedWords;L.test(_)&&(!this.inAsync&&_==="await"&&this.raiseRecoverable(h,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(h,"The keyword '"+_+"' is reserved"))}},Re.parseIdent=function(o){var h=this.parseIdentNode();return this.next(!!o),this.finishNode(h,"Identifier"),o||(this.checkUnreserved(h),h.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=h.start)),h},Re.parseIdentNode=function(){var o=this.startNode();return this.type===f.name?o.name=this.value:this.type.keyword?(o.name=this.type.keyword,(o.name==="class"||o.name==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46)&&this.context.pop(),this.type=f.name):this.unexpected(),o},Re.parsePrivateIdent=function(){var o=this.startNode();return this.type===f.privateId?o.name=this.value:this.unexpected(),this.next(),this.finishNode(o,"PrivateIdentifier"),this.options.checkPrivateFields&&(this.privateNameStack.length===0?this.raise(o.start,"Private field '#"+o.name+"' must be declared in an enclosing class"):this.privateNameStack[this.privateNameStack.length-1].used.push(o)),o},Re.parseYield=function(o){this.yieldPos||(this.yieldPos=this.start);var h=this.startNode();return this.next(),this.type===f.semi||this.canInsertSemicolon()||this.type!==f.star&&!this.type.startsExpr?(h.delegate=!1,h.argument=null):(h.delegate=this.eat(f.star),h.argument=this.parseMaybeAssign(o)),this.finishNode(h,"YieldExpression")},Re.parseAwait=function(o){this.awaitPos||(this.awaitPos=this.start);var h=this.startNode();return this.next(),h.argument=this.parseMaybeUnary(null,!0,!1,o),this.finishNode(h,"AwaitExpression")};var Qt=re.prototype;Qt.raise=function(o,h){var v=$(this.input,o);h+=" ("+v.line+":"+v.column+")",this.sourceFile&&(h+=" in "+this.sourceFile);var _=new SyntaxError(h);throw _.pos=o,_.loc=v,_.raisedAt=this.pos,_},Qt.raiseRecoverable=Qt.raise,Qt.curPosition=function(){if(this.options.locations)return new te(this.curLine,this.pos-this.lineStart)};var hn=re.prototype,Qn=function(h){this.flags=h,this.var=[],this.lexical=[],this.functions=[]};hn.enterScope=function(o){this.scopeStack.push(new Qn(o))},hn.exitScope=function(){this.scopeStack.pop()},hn.treatFunctionsAsVarInScope=function(o){return o.flags&G||!this.inModule&&o.flags&oe},hn.declareName=function(o,h,v){var _=!1;if(h===Me){var L=this.currentScope();_=L.lexical.indexOf(o)>-1||L.functions.indexOf(o)>-1||L.var.indexOf(o)>-1,L.lexical.push(o),this.inModule&&L.flags&oe&&delete this.undefinedExports[o]}else if(h===xt){var Y=this.currentScope();Y.lexical.push(o)}else if(h===Fe){var Q=this.currentScope();this.treatFunctionsAsVar?_=Q.lexical.indexOf(o)>-1:_=Q.lexical.indexOf(o)>-1||Q.var.indexOf(o)>-1,Q.functions.push(o)}else for(var fe=this.scopeStack.length-1;fe>=0;--fe){var ve=this.scopeStack[fe];if(ve.lexical.indexOf(o)>-1&&!(ve.flags&X&&ve.lexical[0]===o)||!this.treatFunctionsAsVarInScope(ve)&&ve.functions.indexOf(o)>-1){_=!0;break}if(ve.var.push(o),this.inModule&&ve.flags&oe&&delete this.undefinedExports[o],ve.flags&Ee)break}_&&this.raiseRecoverable(v,"Identifier '"+o+"' has already been declared")},hn.checkLocalExport=function(o){this.scopeStack[0].lexical.indexOf(o.name)===-1&&this.scopeStack[0].var.indexOf(o.name)===-1&&(this.undefinedExports[o.name]=o)},hn.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},hn.currentVarScope=function(){for(var o=this.scopeStack.length-1;;o--){var h=this.scopeStack[o];if(h.flags&(Ee|ke|be))return h}},hn.currentThisScope=function(){for(var o=this.scopeStack.length-1;;o--){var h=this.scopeStack[o];if(h.flags&(Ee|ke|be)&&!(h.flags&de))return h}};var dn=function(h,v,_){this.type="",this.start=v,this.end=0,h.options.locations&&(this.loc=new O(h,_)),h.options.directSourceFile&&(this.sourceFile=h.options.directSourceFile),h.options.ranges&&(this.range=[v,0])},_n=re.prototype;_n.startNode=function(){return new dn(this,this.start,this.startLoc)},_n.startNodeAt=function(o,h){return new dn(this,o,h)};function Er(o,h,v,_){return o.type=h,o.end=v,this.options.locations&&(o.loc.end=_),this.options.ranges&&(o.range[1]=v),o}_n.finishNode=function(o,h){return Er.call(this,o,h,this.lastTokEnd,this.lastTokEndLoc)},_n.finishNodeAt=function(o,h,v,_){return Er.call(this,o,h,v,_)},_n.copyNode=function(o){var h=new dn(this,o.start,this.startLoc);for(var v in o)h[v]=o[v];return h};var Je="Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sunu Sunuwar Todhri Todr Tulu_Tigalari Tutg Unknown Zzzz",ct="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",pt=ct+" Extended_Pictographic",ft=pt,_t=ft+" EBase EComp EMod EPres ExtPict",Wt=_t,pn=Wt,fn={9:ct,10:pt,11:ft,12:_t,13:Wt,14:pn},An="Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji",gn={9:"",10:"",11:"",12:"",13:"",14:An},Dn="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",pi="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",$l=pi+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",Jl=$l+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",Yl=Jl+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",Zl=Yl+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",Im=Zl+" "+Je,_m={9:pi,10:$l,11:Jl,12:Yl,13:Zl,14:Im},Xl={};function Am(o){var h=Xl[o]={binary:pe(fn[o]+" "+Dn),binaryOfStrings:pe(gn[o]),nonBinary:{General_Category:pe(Dn),Script:pe(_m[o])}};h.nonBinary.Script_Extensions=h.nonBinary.Script,h.nonBinary.gc=h.nonBinary.General_Category,h.nonBinary.sc=h.nonBinary.Script,h.nonBinary.scx=h.nonBinary.Script_Extensions}for(var rs=0,Ql=[9,10,11,12,13,14];rs<Ql.length;rs+=1){var Nm=Ql[rs];Am(Nm)}var Ie=re.prototype,Cr=function(h,v){this.parent=h,this.base=v||this};Cr.prototype.separatedFrom=function(h){for(var v=this;v;v=v.parent)for(var _=h;_;_=_.parent)if(v.base===_.base&&v!==_)return!0;return!1},Cr.prototype.sibling=function(){return new Cr(this.parent,this.base)};var mn=function(h){this.parser=h,this.validFlags="gim"+(h.options.ecmaVersion>=6?"uy":"")+(h.options.ecmaVersion>=9?"s":"")+(h.options.ecmaVersion>=13?"d":"")+(h.options.ecmaVersion>=15?"v":""),this.unicodeProperties=Xl[h.options.ecmaVersion>=14?14:h.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=Object.create(null),this.backReferenceNames=[],this.branchID=null};mn.prototype.reset=function(h,v,_){var L=_.indexOf("v")!==-1,Y=_.indexOf("u")!==-1;this.start=h|0,this.source=v+"",this.flags=_,L&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=Y&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=Y&&this.parser.options.ecmaVersion>=9)},mn.prototype.raise=function(h){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+h)},mn.prototype.at=function(h,v){v===void 0&&(v=!1);var _=this.source,L=_.length;if(h>=L)return-1;var Y=_.charCodeAt(h);if(!(v||this.switchU)||Y<=55295||Y>=57344||h+1>=L)return Y;var Q=_.charCodeAt(h+1);return Q>=56320&&Q<=57343?(Y<<10)+Q-56613888:Y},mn.prototype.nextIndex=function(h,v){v===void 0&&(v=!1);var _=this.source,L=_.length;if(h>=L)return L;var Y=_.charCodeAt(h),Q;return!(v||this.switchU)||Y<=55295||Y>=57344||h+1>=L||(Q=_.charCodeAt(h+1))<56320||Q>57343?h+1:h+2},mn.prototype.current=function(h){return h===void 0&&(h=!1),this.at(this.pos,h)},mn.prototype.lookahead=function(h){return h===void 0&&(h=!1),this.at(this.nextIndex(this.pos,h),h)},mn.prototype.advance=function(h){h===void 0&&(h=!1),this.pos=this.nextIndex(this.pos,h)},mn.prototype.eat=function(h,v){return v===void 0&&(v=!1),this.current(v)===h?(this.advance(v),!0):!1},mn.prototype.eatChars=function(h,v){v===void 0&&(v=!1);for(var _=this.pos,L=0,Y=h;L<Y.length;L+=1){var Q=Y[L],fe=this.at(_,v);if(fe===-1||fe!==Q)return!1;_=this.nextIndex(_,v)}return this.pos=_,!0},Ie.validateRegExpFlags=function(o){for(var h=o.validFlags,v=o.flags,_=!1,L=!1,Y=0;Y<v.length;Y++){var Q=v.charAt(Y);h.indexOf(Q)===-1&&this.raise(o.start,"Invalid regular expression flag"),v.indexOf(Q,Y+1)>-1&&this.raise(o.start,"Duplicate regular expression flag"),Q==="u"&&(_=!0),Q==="v"&&(L=!0)}this.options.ecmaVersion>=15&&_&&L&&this.raise(o.start,"Invalid regular expression flag")};function Tm(o){for(var h in o)return!0;return!1}Ie.validateRegExpPattern=function(o){this.regexp_pattern(o),!o.switchN&&this.options.ecmaVersion>=9&&Tm(o.groupNames)&&(o.switchN=!0,this.regexp_pattern(o))},Ie.regexp_pattern=function(o){o.pos=0,o.lastIntValue=0,o.lastStringValue="",o.lastAssertionIsQuantifiable=!1,o.numCapturingParens=0,o.maxBackReference=0,o.groupNames=Object.create(null),o.backReferenceNames.length=0,o.branchID=null,this.regexp_disjunction(o),o.pos!==o.source.length&&(o.eat(41)&&o.raise("Unmatched ')'"),(o.eat(93)||o.eat(125))&&o.raise("Lone quantifier brackets")),o.maxBackReference>o.numCapturingParens&&o.raise("Invalid escape");for(var h=0,v=o.backReferenceNames;h<v.length;h+=1){var _=v[h];o.groupNames[_]||o.raise("Invalid named capture referenced")}},Ie.regexp_disjunction=function(o){var h=this.options.ecmaVersion>=16;for(h&&(o.branchID=new Cr(o.branchID,null)),this.regexp_alternative(o);o.eat(124);)h&&(o.branchID=o.branchID.sibling()),this.regexp_alternative(o);h&&(o.branchID=o.branchID.parent),this.regexp_eatQuantifier(o,!0)&&o.raise("Nothing to repeat"),o.eat(123)&&o.raise("Lone quantifier brackets")},Ie.regexp_alternative=function(o){for(;o.pos<o.source.length&&this.regexp_eatTerm(o););},Ie.regexp_eatTerm=function(o){return this.regexp_eatAssertion(o)?(o.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(o)&&o.switchU&&o.raise("Invalid quantifier"),!0):(o.switchU?this.regexp_eatAtom(o):this.regexp_eatExtendedAtom(o))?(this.regexp_eatQuantifier(o),!0):!1},Ie.regexp_eatAssertion=function(o){var h=o.pos;if(o.lastAssertionIsQuantifiable=!1,o.eat(94)||o.eat(36))return!0;if(o.eat(92)){if(o.eat(66)||o.eat(98))return!0;o.pos=h}if(o.eat(40)&&o.eat(63)){var v=!1;if(this.options.ecmaVersion>=9&&(v=o.eat(60)),o.eat(61)||o.eat(33))return this.regexp_disjunction(o),o.eat(41)||o.raise("Unterminated group"),o.lastAssertionIsQuantifiable=!v,!0}return o.pos=h,!1},Ie.regexp_eatQuantifier=function(o,h){return h===void 0&&(h=!1),this.regexp_eatQuantifierPrefix(o,h)?(o.eat(63),!0):!1},Ie.regexp_eatQuantifierPrefix=function(o,h){return o.eat(42)||o.eat(43)||o.eat(63)||this.regexp_eatBracedQuantifier(o,h)},Ie.regexp_eatBracedQuantifier=function(o,h){var v=o.pos;if(o.eat(123)){var _=0,L=-1;if(this.regexp_eatDecimalDigits(o)&&(_=o.lastIntValue,o.eat(44)&&this.regexp_eatDecimalDigits(o)&&(L=o.lastIntValue),o.eat(125)))return L!==-1&&L<_&&!h&&o.raise("numbers out of order in {} quantifier"),!0;o.switchU&&!h&&o.raise("Incomplete quantifier"),o.pos=v}return!1},Ie.regexp_eatAtom=function(o){return this.regexp_eatPatternCharacters(o)||o.eat(46)||this.regexp_eatReverseSolidusAtomEscape(o)||this.regexp_eatCharacterClass(o)||this.regexp_eatUncapturingGroup(o)||this.regexp_eatCapturingGroup(o)},Ie.regexp_eatReverseSolidusAtomEscape=function(o){var h=o.pos;if(o.eat(92)){if(this.regexp_eatAtomEscape(o))return!0;o.pos=h}return!1},Ie.regexp_eatUncapturingGroup=function(o){var h=o.pos;if(o.eat(40)){if(o.eat(63)){if(this.options.ecmaVersion>=16){var v=this.regexp_eatModifiers(o),_=o.eat(45);if(v||_){for(var L=0;L<v.length;L++){var Y=v.charAt(L);v.indexOf(Y,L+1)>-1&&o.raise("Duplicate regular expression modifiers")}if(_){var Q=this.regexp_eatModifiers(o);!v&&!Q&&o.current()===58&&o.raise("Invalid regular expression modifiers");for(var fe=0;fe<Q.length;fe++){var ve=Q.charAt(fe);(Q.indexOf(ve,fe+1)>-1||v.indexOf(ve)>-1)&&o.raise("Duplicate regular expression modifiers")}}}}if(o.eat(58)){if(this.regexp_disjunction(o),o.eat(41))return!0;o.raise("Unterminated group")}}o.pos=h}return!1},Ie.regexp_eatCapturingGroup=function(o){if(o.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(o):o.current()===63&&o.raise("Invalid group"),this.regexp_disjunction(o),o.eat(41))return o.numCapturingParens+=1,!0;o.raise("Unterminated group")}return!1},Ie.regexp_eatModifiers=function(o){for(var h="",v=0;(v=o.current())!==-1&&Om(v);)h+=I(v),o.advance();return h};function Om(o){return o===105||o===109||o===115}Ie.regexp_eatExtendedAtom=function(o){return o.eat(46)||this.regexp_eatReverseSolidusAtomEscape(o)||this.regexp_eatCharacterClass(o)||this.regexp_eatUncapturingGroup(o)||this.regexp_eatCapturingGroup(o)||this.regexp_eatInvalidBracedQuantifier(o)||this.regexp_eatExtendedPatternCharacter(o)},Ie.regexp_eatInvalidBracedQuantifier=function(o){return this.regexp_eatBracedQuantifier(o,!0)&&o.raise("Nothing to repeat"),!1},Ie.regexp_eatSyntaxCharacter=function(o){var h=o.current();return eu(h)?(o.lastIntValue=h,o.advance(),!0):!1};function eu(o){return o===36||o>=40&&o<=43||o===46||o===63||o>=91&&o<=94||o>=123&&o<=125}Ie.regexp_eatPatternCharacters=function(o){for(var h=o.pos,v=0;(v=o.current())!==-1&&!eu(v);)o.advance();return o.pos!==h},Ie.regexp_eatExtendedPatternCharacter=function(o){var h=o.current();return h!==-1&&h!==36&&!(h>=40&&h<=43)&&h!==46&&h!==63&&h!==91&&h!==94&&h!==124?(o.advance(),!0):!1},Ie.regexp_groupSpecifier=function(o){if(o.eat(63)){this.regexp_eatGroupName(o)||o.raise("Invalid group");var h=this.options.ecmaVersion>=16,v=o.groupNames[o.lastStringValue];if(v)if(h)for(var _=0,L=v;_<L.length;_+=1){var Y=L[_];Y.separatedFrom(o.branchID)||o.raise("Duplicate capture group name")}else o.raise("Duplicate capture group name");h?(v||(o.groupNames[o.lastStringValue]=[])).push(o.branchID):o.groupNames[o.lastStringValue]=!0}},Ie.regexp_eatGroupName=function(o){if(o.lastStringValue="",o.eat(60)){if(this.regexp_eatRegExpIdentifierName(o)&&o.eat(62))return!0;o.raise("Invalid capture group name")}return!1},Ie.regexp_eatRegExpIdentifierName=function(o){if(o.lastStringValue="",this.regexp_eatRegExpIdentifierStart(o)){for(o.lastStringValue+=I(o.lastIntValue);this.regexp_eatRegExpIdentifierPart(o);)o.lastStringValue+=I(o.lastIntValue);return!0}return!1},Ie.regexp_eatRegExpIdentifierStart=function(o){var h=o.pos,v=this.options.ecmaVersion>=11,_=o.current(v);return o.advance(v),_===92&&this.regexp_eatRegExpUnicodeEscapeSequence(o,v)&&(_=o.lastIntValue),Pm(_)?(o.lastIntValue=_,!0):(o.pos=h,!1)};function Pm(o){return C(o,!0)||o===36||o===95}Ie.regexp_eatRegExpIdentifierPart=function(o){var h=o.pos,v=this.options.ecmaVersion>=11,_=o.current(v);return o.advance(v),_===92&&this.regexp_eatRegExpUnicodeEscapeSequence(o,v)&&(_=o.lastIntValue),Rm(_)?(o.lastIntValue=_,!0):(o.pos=h,!1)};function Rm(o){return x(o,!0)||o===36||o===95||o===8204||o===8205}Ie.regexp_eatAtomEscape=function(o){return this.regexp_eatBackReference(o)||this.regexp_eatCharacterClassEscape(o)||this.regexp_eatCharacterEscape(o)||o.switchN&&this.regexp_eatKGroupName(o)?!0:(o.switchU&&(o.current()===99&&o.raise("Invalid unicode escape"),o.raise("Invalid escape")),!1)},Ie.regexp_eatBackReference=function(o){var h=o.pos;if(this.regexp_eatDecimalEscape(o)){var v=o.lastIntValue;if(o.switchU)return v>o.maxBackReference&&(o.maxBackReference=v),!0;if(v<=o.numCapturingParens)return!0;o.pos=h}return!1},Ie.regexp_eatKGroupName=function(o){if(o.eat(107)){if(this.regexp_eatGroupName(o))return o.backReferenceNames.push(o.lastStringValue),!0;o.raise("Invalid named reference")}return!1},Ie.regexp_eatCharacterEscape=function(o){return this.regexp_eatControlEscape(o)||this.regexp_eatCControlLetter(o)||this.regexp_eatZero(o)||this.regexp_eatHexEscapeSequence(o)||this.regexp_eatRegExpUnicodeEscapeSequence(o,!1)||!o.switchU&&this.regexp_eatLegacyOctalEscapeSequence(o)||this.regexp_eatIdentityEscape(o)},Ie.regexp_eatCControlLetter=function(o){var h=o.pos;if(o.eat(99)){if(this.regexp_eatControlLetter(o))return!0;o.pos=h}return!1},Ie.regexp_eatZero=function(o){return o.current()===48&&!Ir(o.lookahead())?(o.lastIntValue=0,o.advance(),!0):!1},Ie.regexp_eatControlEscape=function(o){var h=o.current();return h===116?(o.lastIntValue=9,o.advance(),!0):h===110?(o.lastIntValue=10,o.advance(),!0):h===118?(o.lastIntValue=11,o.advance(),!0):h===102?(o.lastIntValue=12,o.advance(),!0):h===114?(o.lastIntValue=13,o.advance(),!0):!1},Ie.regexp_eatControlLetter=function(o){var h=o.current();return tu(h)?(o.lastIntValue=h%32,o.advance(),!0):!1};function tu(o){return o>=65&&o<=90||o>=97&&o<=122}Ie.regexp_eatRegExpUnicodeEscapeSequence=function(o,h){h===void 0&&(h=!1);var v=o.pos,_=h||o.switchU;if(o.eat(117)){if(this.regexp_eatFixedHexDigits(o,4)){var L=o.lastIntValue;if(_&&L>=55296&&L<=56319){var Y=o.pos;if(o.eat(92)&&o.eat(117)&&this.regexp_eatFixedHexDigits(o,4)){var Q=o.lastIntValue;if(Q>=56320&&Q<=57343)return o.lastIntValue=(L-55296)*1024+(Q-56320)+65536,!0}o.pos=Y,o.lastIntValue=L}return!0}if(_&&o.eat(123)&&this.regexp_eatHexDigits(o)&&o.eat(125)&&Mm(o.lastIntValue))return!0;_&&o.raise("Invalid unicode escape"),o.pos=v}return!1};function Mm(o){return o>=0&&o<=1114111}Ie.regexp_eatIdentityEscape=function(o){if(o.switchU)return this.regexp_eatSyntaxCharacter(o)?!0:o.eat(47)?(o.lastIntValue=47,!0):!1;var h=o.current();return h!==99&&(!o.switchN||h!==107)?(o.lastIntValue=h,o.advance(),!0):!1},Ie.regexp_eatDecimalEscape=function(o){o.lastIntValue=0;var h=o.current();if(h>=49&&h<=57){do o.lastIntValue=10*o.lastIntValue+(h-48),o.advance();while((h=o.current())>=48&&h<=57);return!0}return!1};var nu=0,Nn=1,Ut=2;Ie.regexp_eatCharacterClassEscape=function(o){var h=o.current();if(Lm(h))return o.lastIntValue=-1,o.advance(),Nn;var v=!1;if(o.switchU&&this.options.ecmaVersion>=9&&((v=h===80)||h===112)){o.lastIntValue=-1,o.advance();var _;if(o.eat(123)&&(_=this.regexp_eatUnicodePropertyValueExpression(o))&&o.eat(125))return v&&_===Ut&&o.raise("Invalid property name"),_;o.raise("Invalid property name")}return nu};function Lm(o){return o===100||o===68||o===115||o===83||o===119||o===87}Ie.regexp_eatUnicodePropertyValueExpression=function(o){var h=o.pos;if(this.regexp_eatUnicodePropertyName(o)&&o.eat(61)){var v=o.lastStringValue;if(this.regexp_eatUnicodePropertyValue(o)){var _=o.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(o,v,_),Nn}}if(o.pos=h,this.regexp_eatLoneUnicodePropertyNameOrValue(o)){var L=o.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(o,L)}return nu},Ie.regexp_validateUnicodePropertyNameAndValue=function(o,h,v){Z(o.unicodeProperties.nonBinary,h)||o.raise("Invalid property name"),o.unicodeProperties.nonBinary[h].test(v)||o.raise("Invalid property value")},Ie.regexp_validateUnicodePropertyNameOrValue=function(o,h){if(o.unicodeProperties.binary.test(h))return Nn;if(o.switchV&&o.unicodeProperties.binaryOfStrings.test(h))return Ut;o.raise("Invalid property name")},Ie.regexp_eatUnicodePropertyName=function(o){var h=0;for(o.lastStringValue="";iu(h=o.current());)o.lastStringValue+=I(h),o.advance();return o.lastStringValue!==""};function iu(o){return tu(o)||o===95}Ie.regexp_eatUnicodePropertyValue=function(o){var h=0;for(o.lastStringValue="";Dm(h=o.current());)o.lastStringValue+=I(h),o.advance();return o.lastStringValue!==""};function Dm(o){return iu(o)||Ir(o)}Ie.regexp_eatLoneUnicodePropertyNameOrValue=function(o){return this.regexp_eatUnicodePropertyValue(o)},Ie.regexp_eatCharacterClass=function(o){if(o.eat(91)){var h=o.eat(94),v=this.regexp_classContents(o);return o.eat(93)||o.raise("Unterminated character class"),h&&v===Ut&&o.raise("Negated character class may contain strings"),!0}return!1},Ie.regexp_classContents=function(o){return o.current()===93?Nn:o.switchV?this.regexp_classSetExpression(o):(this.regexp_nonEmptyClassRanges(o),Nn)},Ie.regexp_nonEmptyClassRanges=function(o){for(;this.regexp_eatClassAtom(o);){var h=o.lastIntValue;if(o.eat(45)&&this.regexp_eatClassAtom(o)){var v=o.lastIntValue;o.switchU&&(h===-1||v===-1)&&o.raise("Invalid character class"),h!==-1&&v!==-1&&h>v&&o.raise("Range out of order in character class")}}},Ie.regexp_eatClassAtom=function(o){var h=o.pos;if(o.eat(92)){if(this.regexp_eatClassEscape(o))return!0;if(o.switchU){var v=o.current();(v===99||su(v))&&o.raise("Invalid class escape"),o.raise("Invalid escape")}o.pos=h}var _=o.current();return _!==93?(o.lastIntValue=_,o.advance(),!0):!1},Ie.regexp_eatClassEscape=function(o){var h=o.pos;if(o.eat(98))return o.lastIntValue=8,!0;if(o.switchU&&o.eat(45))return o.lastIntValue=45,!0;if(!o.switchU&&o.eat(99)){if(this.regexp_eatClassControlLetter(o))return!0;o.pos=h}return this.regexp_eatCharacterClassEscape(o)||this.regexp_eatCharacterEscape(o)},Ie.regexp_classSetExpression=function(o){var h=Nn,v;if(!this.regexp_eatClassSetRange(o))if(v=this.regexp_eatClassSetOperand(o)){v===Ut&&(h=Ut);for(var _=o.pos;o.eatChars([38,38]);){if(o.current()!==38&&(v=this.regexp_eatClassSetOperand(o))){v!==Ut&&(h=Nn);continue}o.raise("Invalid character in character class")}if(_!==o.pos)return h;for(;o.eatChars([45,45]);)this.regexp_eatClassSetOperand(o)||o.raise("Invalid character in character class");if(_!==o.pos)return h}else o.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(o)){if(v=this.regexp_eatClassSetOperand(o),!v)return h;v===Ut&&(h=Ut)}},Ie.regexp_eatClassSetRange=function(o){var h=o.pos;if(this.regexp_eatClassSetCharacter(o)){var v=o.lastIntValue;if(o.eat(45)&&this.regexp_eatClassSetCharacter(o)){var _=o.lastIntValue;return v!==-1&&_!==-1&&v>_&&o.raise("Range out of order in character class"),!0}o.pos=h}return!1},Ie.regexp_eatClassSetOperand=function(o){return this.regexp_eatClassSetCharacter(o)?Nn:this.regexp_eatClassStringDisjunction(o)||this.regexp_eatNestedClass(o)},Ie.regexp_eatNestedClass=function(o){var h=o.pos;if(o.eat(91)){var v=o.eat(94),_=this.regexp_classContents(o);if(o.eat(93))return v&&_===Ut&&o.raise("Negated character class may contain strings"),_;o.pos=h}if(o.eat(92)){var L=this.regexp_eatCharacterClassEscape(o);if(L)return L;o.pos=h}return null},Ie.regexp_eatClassStringDisjunction=function(o){var h=o.pos;if(o.eatChars([92,113])){if(o.eat(123)){var v=this.regexp_classStringDisjunctionContents(o);if(o.eat(125))return v}else o.raise("Invalid escape");o.pos=h}return null},Ie.regexp_classStringDisjunctionContents=function(o){for(var h=this.regexp_classString(o);o.eat(124);)this.regexp_classString(o)===Ut&&(h=Ut);return h},Ie.regexp_classString=function(o){for(var h=0;this.regexp_eatClassSetCharacter(o);)h++;return h===1?Nn:Ut},Ie.regexp_eatClassSetCharacter=function(o){var h=o.pos;if(o.eat(92))return this.regexp_eatCharacterEscape(o)||this.regexp_eatClassSetReservedPunctuator(o)?!0:o.eat(98)?(o.lastIntValue=8,!0):(o.pos=h,!1);var v=o.current();return v<0||v===o.lookahead()&&Fm(v)||jm(v)?!1:(o.advance(),o.lastIntValue=v,!0)};function Fm(o){return o===33||o>=35&&o<=38||o>=42&&o<=44||o===46||o>=58&&o<=64||o===94||o===96||o===126}function jm(o){return o===40||o===41||o===45||o===47||o>=91&&o<=93||o>=123&&o<=125}Ie.regexp_eatClassSetReservedPunctuator=function(o){var h=o.current();return zm(h)?(o.lastIntValue=h,o.advance(),!0):!1};function zm(o){return o===33||o===35||o===37||o===38||o===44||o===45||o>=58&&o<=62||o===64||o===96||o===126}Ie.regexp_eatClassControlLetter=function(o){var h=o.current();return Ir(h)||h===95?(o.lastIntValue=h%32,o.advance(),!0):!1},Ie.regexp_eatHexEscapeSequence=function(o){var h=o.pos;if(o.eat(120)){if(this.regexp_eatFixedHexDigits(o,2))return!0;o.switchU&&o.raise("Invalid escape"),o.pos=h}return!1},Ie.regexp_eatDecimalDigits=function(o){var h=o.pos,v=0;for(o.lastIntValue=0;Ir(v=o.current());)o.lastIntValue=10*o.lastIntValue+(v-48),o.advance();return o.pos!==h};function Ir(o){return o>=48&&o<=57}Ie.regexp_eatHexDigits=function(o){var h=o.pos,v=0;for(o.lastIntValue=0;ru(v=o.current());)o.lastIntValue=16*o.lastIntValue+au(v),o.advance();return o.pos!==h};function ru(o){return o>=48&&o<=57||o>=65&&o<=70||o>=97&&o<=102}function au(o){return o>=65&&o<=70?10+(o-65):o>=97&&o<=102?10+(o-97):o-48}Ie.regexp_eatLegacyOctalEscapeSequence=function(o){if(this.regexp_eatOctalDigit(o)){var h=o.lastIntValue;if(this.regexp_eatOctalDigit(o)){var v=o.lastIntValue;h<=3&&this.regexp_eatOctalDigit(o)?o.lastIntValue=h*64+v*8+o.lastIntValue:o.lastIntValue=h*8+v}else o.lastIntValue=h;return!0}return!1},Ie.regexp_eatOctalDigit=function(o){var h=o.current();return su(h)?(o.lastIntValue=h-48,o.advance(),!0):(o.lastIntValue=0,!1)};function su(o){return o>=48&&o<=55}Ie.regexp_eatFixedHexDigits=function(o,h){var v=o.pos;o.lastIntValue=0;for(var _=0;_<h;++_){var L=o.current();if(!ru(L))return o.pos=v,!1;o.lastIntValue=16*o.lastIntValue+au(L),o.advance()}return!0};var _r=function(h){this.type=h.type,this.value=h.value,this.start=h.start,this.end=h.end,h.options.locations&&(this.loc=new O(h,h.startLoc,h.endLoc)),h.options.ranges&&(this.range=[h.start,h.end])},We=re.prototype;We.next=function(o){!o&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new _r(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},We.getToken=function(){return this.next(),new _r(this)},typeof Symbol<"u"&&(We[Symbol.iterator]=function(){var o=this;return{next:function(){var h=o.getToken();return{done:h.type===f.eof,value:h}}}}),We.nextToken=function(){var o=this.curContext();if((!o||!o.preserveSpace)&&this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length)return this.finishToken(f.eof);if(o.override)return o.override(this);this.readToken(this.fullCharCodeAtPos())},We.readToken=function(o){return C(o,this.options.ecmaVersion>=6)||o===92?this.readWord():this.getTokenFromCode(o)},We.fullCharCodeAtPos=function(){var o=this.input.charCodeAt(this.pos);if(o<=55295||o>=56320)return o;var h=this.input.charCodeAt(this.pos+1);return h<=56319||h>=57344?o:(o<<10)+h-56613888},We.skipBlockComment=function(){var o=this.options.onComment&&this.curPosition(),h=this.pos,v=this.input.indexOf("*/",this.pos+=2);if(v===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=v+2,this.options.locations)for(var _=void 0,L=h;(_=D(this.input,L,this.pos))>-1;)++this.curLine,L=this.lineStart=_;this.options.onComment&&this.options.onComment(!0,this.input.slice(h+2,v),h,this.pos,o,this.curPosition())},We.skipLineComment=function(o){for(var h=this.pos,v=this.options.onComment&&this.curPosition(),_=this.input.charCodeAt(this.pos+=o);this.pos<this.input.length&&!F(_);)_=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(h+o,this.pos),h,this.pos,v,this.curPosition())},We.skipSpace=function(){e:for(;this.pos<this.input.length;){var o=this.input.charCodeAt(this.pos);switch(o){case 32:case 160:++this.pos;break;case 13:this.input.charCodeAt(this.pos+1)===10&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break e}break;default:if(o>8&&o<14||o>=5760&&q.test(String.fromCharCode(o)))++this.pos;else break e}}},We.finishToken=function(o,h){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var v=this.type;this.type=o,this.value=h,this.updateContext(v)},We.readToken_dot=function(){var o=this.input.charCodeAt(this.pos+1);if(o>=48&&o<=57)return this.readNumber(!0);var h=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&o===46&&h===46?(this.pos+=3,this.finishToken(f.ellipsis)):(++this.pos,this.finishToken(f.dot))},We.readToken_slash=function(){var o=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):o===61?this.finishOp(f.assign,2):this.finishOp(f.slash,1)},We.readToken_mult_modulo_exp=function(o){var h=this.input.charCodeAt(this.pos+1),v=1,_=o===42?f.star:f.modulo;return this.options.ecmaVersion>=7&&o===42&&h===42&&(++v,_=f.starstar,h=this.input.charCodeAt(this.pos+2)),h===61?this.finishOp(f.assign,v+1):this.finishOp(_,v)},We.readToken_pipe_amp=function(o){var h=this.input.charCodeAt(this.pos+1);if(h===o){if(this.options.ecmaVersion>=12){var v=this.input.charCodeAt(this.pos+2);if(v===61)return this.finishOp(f.assign,3)}return this.finishOp(o===124?f.logicalOR:f.logicalAND,2)}return h===61?this.finishOp(f.assign,2):this.finishOp(o===124?f.bitwiseOR:f.bitwiseAND,1)},We.readToken_caret=function(){var o=this.input.charCodeAt(this.pos+1);return o===61?this.finishOp(f.assign,2):this.finishOp(f.bitwiseXOR,1)},We.readToken_plus_min=function(o){var h=this.input.charCodeAt(this.pos+1);return h===o?h===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||T.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(f.incDec,2):h===61?this.finishOp(f.assign,2):this.finishOp(f.plusMin,1)},We.readToken_lt_gt=function(o){var h=this.input.charCodeAt(this.pos+1),v=1;return h===o?(v=o===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+v)===61?this.finishOp(f.assign,v+1):this.finishOp(f.bitShift,v)):h===33&&o===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(h===61&&(v=2),this.finishOp(f.relational,v))},We.readToken_eq_excl=function(o){var h=this.input.charCodeAt(this.pos+1);return h===61?this.finishOp(f.equality,this.input.charCodeAt(this.pos+2)===61?3:2):o===61&&h===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(f.arrow)):this.finishOp(o===61?f.eq:f.prefix,1)},We.readToken_question=function(){var o=this.options.ecmaVersion;if(o>=11){var h=this.input.charCodeAt(this.pos+1);if(h===46){var v=this.input.charCodeAt(this.pos+2);if(v<48||v>57)return this.finishOp(f.questionDot,2)}if(h===63){if(o>=12){var _=this.input.charCodeAt(this.pos+2);if(_===61)return this.finishOp(f.assign,3)}return this.finishOp(f.coalesce,2)}}return this.finishOp(f.question,1)},We.readToken_numberSign=function(){var o=this.options.ecmaVersion,h=35;if(o>=13&&(++this.pos,h=this.fullCharCodeAtPos(),C(h,!0)||h===92))return this.finishToken(f.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+I(h)+"'")},We.getTokenFromCode=function(o){switch(o){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(f.parenL);case 41:return++this.pos,this.finishToken(f.parenR);case 59:return++this.pos,this.finishToken(f.semi);case 44:return++this.pos,this.finishToken(f.comma);case 91:return++this.pos,this.finishToken(f.bracketL);case 93:return++this.pos,this.finishToken(f.bracketR);case 123:return++this.pos,this.finishToken(f.braceL);case 125:return++this.pos,this.finishToken(f.braceR);case 58:return++this.pos,this.finishToken(f.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(f.backQuote);case 48:var h=this.input.charCodeAt(this.pos+1);if(h===120||h===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(h===111||h===79)return this.readRadixNumber(8);if(h===98||h===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(o);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(o);case 124:case 38:return this.readToken_pipe_amp(o);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(o);case 60:case 62:return this.readToken_lt_gt(o);case 61:case 33:return this.readToken_eq_excl(o);case 63:return this.readToken_question();case 126:return this.finishOp(f.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+I(o)+"'")},We.finishOp=function(o,h){var v=this.input.slice(this.pos,this.pos+h);return this.pos+=h,this.finishToken(o,v)},We.readRegexp=function(){for(var o,h,v=this.pos;;){this.pos>=this.input.length&&this.raise(v,"Unterminated regular expression");var _=this.input.charAt(this.pos);if(T.test(_)&&this.raise(v,"Unterminated regular expression"),o)o=!1;else{if(_==="[")h=!0;else if(_==="]"&&h)h=!1;else if(_==="/"&&!h)break;o=_==="\\"}++this.pos}var L=this.input.slice(v,this.pos);++this.pos;var Y=this.pos,Q=this.readWord1();this.containsEsc&&this.unexpected(Y);var fe=this.regexpState||(this.regexpState=new mn(this));fe.reset(v,L,Q),this.validateRegExpFlags(fe),this.validateRegExpPattern(fe);var ve=null;try{ve=new RegExp(L,Q)}catch{}return this.finishToken(f.regexp,{pattern:L,flags:Q,value:ve})},We.readInt=function(o,h,v){for(var _=this.options.ecmaVersion>=12&&h===void 0,L=v&&this.input.charCodeAt(this.pos)===48,Y=this.pos,Q=0,fe=0,ve=0,De=h??1/0;ve<De;++ve,++this.pos){var Be=this.input.charCodeAt(this.pos),rt=void 0;if(_&&Be===95){L&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),fe===95&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),ve===0&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),fe=Be;continue}if(Be>=97?rt=Be-97+10:Be>=65?rt=Be-65+10:Be>=48&&Be<=57?rt=Be-48:rt=1/0,rt>=o)break;fe=Be,Q=Q*o+rt}return _&&fe===95&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===Y||h!=null&&this.pos-Y!==h?null:Q};function Vm(o,h){return h?parseInt(o,8):parseFloat(o.replace(/_/g,""))}function ou(o){return typeof BigInt!="function"?null:BigInt(o.replace(/_/g,""))}We.readRadixNumber=function(o){var h=this.pos;this.pos+=2;var v=this.readInt(o);return v==null&&this.raise(this.start+2,"Expected number in radix "+o),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(v=ou(this.input.slice(h,this.pos)),++this.pos):C(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(f.num,v)},We.readNumber=function(o){var h=this.pos;!o&&this.readInt(10,void 0,!0)===null&&this.raise(h,"Invalid number");var v=this.pos-h>=2&&this.input.charCodeAt(h)===48;v&&this.strict&&this.raise(h,"Invalid number");var _=this.input.charCodeAt(this.pos);if(!v&&!o&&this.options.ecmaVersion>=11&&_===110){var L=ou(this.input.slice(h,this.pos));return++this.pos,C(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(f.num,L)}v&&/[89]/.test(this.input.slice(h,this.pos))&&(v=!1),_===46&&!v&&(++this.pos,this.readInt(10),_=this.input.charCodeAt(this.pos)),(_===69||_===101)&&!v&&(_=this.input.charCodeAt(++this.pos),(_===43||_===45)&&++this.pos,this.readInt(10)===null&&this.raise(h,"Invalid number")),C(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var Y=Vm(this.input.slice(h,this.pos),v);return this.finishToken(f.num,Y)},We.readCodePoint=function(){var o=this.input.charCodeAt(this.pos),h;if(o===123){this.options.ecmaVersion<6&&this.unexpected();var v=++this.pos;h=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,h>1114111&&this.invalidStringToken(v,"Code point out of bounds")}else h=this.readHexChar(4);return h},We.readString=function(o){for(var h="",v=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var _=this.input.charCodeAt(this.pos);if(_===o)break;_===92?(h+=this.input.slice(v,this.pos),h+=this.readEscapedChar(!1),v=this.pos):_===8232||_===8233?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(F(_)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return h+=this.input.slice(v,this.pos++),this.finishToken(f.string,h)};var lu={};We.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(o){if(o===lu)this.readInvalidTemplateToken();else throw o}this.inTemplateElement=!1},We.invalidStringToken=function(o,h){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw lu;this.raise(o,h)},We.readTmplToken=function(){for(var o="",h=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var v=this.input.charCodeAt(this.pos);if(v===96||v===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===f.template||this.type===f.invalidTemplate)?v===36?(this.pos+=2,this.finishToken(f.dollarBraceL)):(++this.pos,this.finishToken(f.backQuote)):(o+=this.input.slice(h,this.pos),this.finishToken(f.template,o));if(v===92)o+=this.input.slice(h,this.pos),o+=this.readEscapedChar(!0),h=this.pos;else if(F(v)){switch(o+=this.input.slice(h,this.pos),++this.pos,v){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:o+=`
|
|
80
|
-
`;break;default:
|
|
22
|
+
`:case"\u2028":case"\u2029":++this.curLine,this.lineStart=this.pos+1;break}this.raise(this.start,"Unterminated template")};Ve.readEscapedChar=function(e){var t=this.input.charCodeAt(++this.pos);switch(++this.pos,t){case 110:return`
|
|
23
|
+
`;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return tn(this.readCodePoint());case 116:return" ";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),e){var n=this.pos-1;this.invalidStringToken(n,"Invalid escape sequence in template string")}default:if(t>=48&&t<=55){var i=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],r=parseInt(i,8);return r>255&&(i=i.slice(0,-1),r=parseInt(i,8)),this.pos+=i.length-1,t=this.input.charCodeAt(this.pos),(i!=="0"||t===56||t===57)&&(this.strict||e)&&this.invalidStringToken(this.pos-1-i.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(r)}return Zn(t)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),""):String.fromCharCode(t)}};Ve.readHexChar=function(e){var t=this.pos,n=this.readInt(16,e);return n===null&&this.invalidStringToken(t,"Bad character escape sequence"),n};Ve.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,n=this.pos,i=this.options.ecmaVersion>=6;this.pos<this.input.length;){var r=this.fullCharCodeAtPos();if(mn(r,i))this.pos+=r<=65535?1:2;else if(r===92){this.containsEsc=!0,e+=this.input.slice(n,this.pos);var s=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var o=this.readCodePoint();(t?Gt:mn)(o,i)||this.invalidStringToken(s,"Invalid Unicode escape"),e+=tn(o),n=this.pos}else break;t=!1}return e+this.input.slice(n,this.pos)};Ve.readWord=function(){var e=this.readWord1(),t=_.name;return this.keywords.test(e)&&(t=cs[e]),this.finishToken(t,e)};var vm="8.16.0";rt.acorn={Parser:rt,version:vm,defaultOptions:Ua,Position:xi,SourceLocation:Ar,getLineInfo:Cc,Node:Or,TokenType:He,tokTypes:_,keywordTypes:cs,TokContext:Bt,tokContexts:tt,isIdentifierChar:mn,isIdentifierStart:Gt,Token:ms,isNewLine:Zn,lineBreak:vt,lineBreakG:Bg,nonASCIIwhitespace:Sc};function Lr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Xr={exports:{}},ea,ll;function bm(){return ll||(ll=1,ea={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"}),ea}var li={exports:{}},ym=li.exports,ul;function cl(){return ul||(ul=1,(function(e,t){(function(n,i){i(t)})(ym,(function(n){var i=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,78,5,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,199,7,137,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,55,9,266,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239],r=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,7,25,39,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,5,57,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,24,43,261,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,208,30,2,2,2,1,2,6,3,4,10,1,225,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],s="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ--ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・",o="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ--ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",l={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},u="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",f={5:u,"5module":u+" export import",6:u+" const class extends export import super"},p=/^in(stanceof)?$/,h=new RegExp("["+o+"]"),d=new RegExp("["+o+s+"]");function m(a,c){for(var x=65536,w=0;w<c.length;w+=2){if(x+=c[w],x>a)return!1;if(x+=c[w+1],x>=a)return!0}return!1}function b(a,c){return a<65?a===36:a<91?!0:a<97?a===95:a<123?!0:a<=65535?a>=170&&h.test(String.fromCharCode(a)):c===!1?!1:m(a,r)}function v(a,c){return a<48?a===36:a<58?!0:a<65?!1:a<91?!0:a<97?a===95:a<123?!0:a<=65535?a>=170&&d.test(String.fromCharCode(a)):c===!1?!1:m(a,r)||m(a,i)}var S=function(c,x){x===void 0&&(x={}),this.label=c,this.keyword=x.keyword,this.beforeExpr=!!x.beforeExpr,this.startsExpr=!!x.startsExpr,this.isLoop=!!x.isLoop,this.isAssign=!!x.isAssign,this.prefix=!!x.prefix,this.postfix=!!x.postfix,this.binop=x.binop||null,this.updateContext=null};function E(a,c){return new S(a,{beforeExpr:!0,binop:c})}var k={beforeExpr:!0},I={startsExpr:!0},N={};function y(a,c){return c===void 0&&(c={}),c.keyword=a,N[a]=new S(a,c)}var g={num:new S("num",I),regexp:new S("regexp",I),string:new S("string",I),name:new S("name",I),privateId:new S("privateId",I),eof:new S("eof"),bracketL:new S("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new S("]"),braceL:new S("{",{beforeExpr:!0,startsExpr:!0}),braceR:new S("}"),parenL:new S("(",{beforeExpr:!0,startsExpr:!0}),parenR:new S(")"),comma:new S(",",k),semi:new S(";",k),colon:new S(":",k),dot:new S("."),question:new S("?",k),questionDot:new S("?."),arrow:new S("=>",k),template:new S("template"),invalidTemplate:new S("invalidTemplate"),ellipsis:new S("...",k),backQuote:new S("`",I),dollarBraceL:new S("${",{beforeExpr:!0,startsExpr:!0}),eq:new S("=",{beforeExpr:!0,isAssign:!0}),assign:new S("_=",{beforeExpr:!0,isAssign:!0}),incDec:new S("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new S("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:E("||",1),logicalAND:E("&&",2),bitwiseOR:E("|",3),bitwiseXOR:E("^",4),bitwiseAND:E("&",5),equality:E("==/!=/===/!==",6),relational:E("</>/<=/>=",7),bitShift:E("<</>>/>>>",8),plusMin:new S("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:E("%",10),star:E("*",10),slash:E("/",10),starstar:new S("**",{beforeExpr:!0}),coalesce:E("??",1),_break:y("break"),_case:y("case",k),_catch:y("catch"),_continue:y("continue"),_debugger:y("debugger"),_default:y("default",k),_do:y("do",{isLoop:!0,beforeExpr:!0}),_else:y("else",k),_finally:y("finally"),_for:y("for",{isLoop:!0}),_function:y("function",I),_if:y("if"),_return:y("return",k),_switch:y("switch"),_throw:y("throw",k),_try:y("try"),_var:y("var"),_const:y("const"),_while:y("while",{isLoop:!0}),_with:y("with"),_new:y("new",{beforeExpr:!0,startsExpr:!0}),_this:y("this",I),_super:y("super",I),_class:y("class",I),_extends:y("extends",k),_export:y("export"),_import:y("import",I),_null:y("null",I),_true:y("true",I),_false:y("false",I),_in:y("in",{beforeExpr:!0,binop:7}),_instanceof:y("instanceof",{beforeExpr:!0,binop:7}),_typeof:y("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:y("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:y("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},A=/\r\n?|\n|\u2028|\u2029/,M=new RegExp(A.source,"g");function F(a){return a===10||a===13||a===8232||a===8233}function R(a,c,x){x===void 0&&(x=a.length);for(var w=c;w<x;w++){var P=a.charCodeAt(w);if(F(P))return w<x-1&&P===13&&a.charCodeAt(w+1)===10?w+2:w+1}return-1}var j=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,B=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,D=Object.prototype,se=D.hasOwnProperty,ue=D.toString,te=Object.hasOwn||(function(a,c){return se.call(a,c)}),ae=Array.isArray||(function(a){return ue.call(a)==="[object Array]"}),ge=Object.create(null);function ve(a){return ge[a]||(ge[a]=new RegExp("^(?:"+a.replace(/ /g,"|")+")$"))}function L(a){return a<=65535?String.fromCharCode(a):(a-=65536,String.fromCharCode((a>>10)+55296,(a&1023)+56320))}var G=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,ne=function(c,x){this.line=c,this.column=x};ne.prototype.offset=function(c){return new ne(this.line,this.column+c)};var O=function(c,x,w){this.start=x,this.end=w,c.sourceFile!==null&&(this.source=c.sourceFile)};function he(a,c){for(var x=1,w=0;;){var P=R(a,w,c);if(P<0)return new ne(x,c-w);++x,w=P}}var W={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},Z=!1;function H(a){var c={};for(var x in W)c[x]=a&&te(a,x)?a[x]:W[x];if(c.ecmaVersion==="latest"?c.ecmaVersion=1e8:c.ecmaVersion==null?(!Z&&typeof console=="object"&&console.warn&&(Z=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
|
|
24
|
+
Defaulting to 2020, but this will stop working in the future.`)),c.ecmaVersion=11):c.ecmaVersion>=2015&&(c.ecmaVersion-=2009),c.allowReserved==null&&(c.allowReserved=c.ecmaVersion<5),(!a||a.allowHashBang==null)&&(c.allowHashBang=c.ecmaVersion>=14),ae(c.onToken)){var w=c.onToken;c.onToken=function(P){return w.push(P)}}if(ae(c.onComment)&&(c.onComment=K(c,c.onComment)),c.sourceType==="commonjs"&&c.allowAwaitOutsideFunction)throw new Error("Cannot use allowAwaitOutsideFunction with sourceType: commonjs");return c}function K(a,c){return function(x,w,P,z,q,ce){var pe={type:x?"Block":"Line",value:w,start:P,end:z};a.locations&&(pe.loc=new O(this,q,ce)),a.ranges&&(pe.range=[P,z]),c.push(pe)}}var J=1,ie=2,X=4,$=8,Y=16,le=32,de=64,Se=128,ye=256,ke=512,Ie=1024,be=J|ie|ye;function Pe(a,c){return ie|(a?X:0)|(c?$:0)}var Be=0,$e=1,Te=2,nt=3,Q=4,re=5,T=function(c,x,w){this.options=c=H(c),this.sourceFile=c.sourceFile,this.keywords=ve(f[c.ecmaVersion>=6?6:c.sourceType==="module"?"5module":5]);var P="";c.allowReserved!==!0&&(P=l[c.ecmaVersion>=6?6:c.ecmaVersion===5?5:3],c.sourceType==="module"&&(P+=" await")),this.reservedWords=ve(P);var z=(P?P+" ":"")+l.strict;this.reservedWordsStrict=ve(z),this.reservedWordsStrictBind=ve(z+" "+l.strictBind),this.input=String(x),this.containsEsc=!1,w?(this.pos=w,this.lineStart=this.input.lastIndexOf(`
|
|
25
|
+
`,w-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(A).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=g.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=c.sourceType==="module",this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),this.pos===0&&c.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(this.options.sourceType==="commonjs"?ie:J),this.regexpState=null,this.privateNameStack=[]},Ae={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowReturn:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},allowUsing:{configurable:!0},inClassStaticBlock:{configurable:!0}};T.prototype.parse=function(){var c=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(c)},Ae.inFunction.get=function(){return(this.currentVarScope().flags&ie)>0},Ae.inGenerator.get=function(){return(this.currentVarScope().flags&$)>0},Ae.inAsync.get=function(){return(this.currentVarScope().flags&X)>0},Ae.canAwait.get=function(){for(var a=this.scopeStack.length-1;a>=0;a--){var c=this.scopeStack[a],x=c.flags;if(x&(ye|ke))return!1;if(x&ie)return(x&X)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},Ae.allowReturn.get=function(){return!!(this.inFunction||this.options.allowReturnOutsideFunction&&this.currentVarScope().flags&J)},Ae.allowSuper.get=function(){var a=this.currentThisScope(),c=a.flags;return(c&de)>0||this.options.allowSuperOutsideMethod},Ae.allowDirectSuper.get=function(){return(this.currentThisScope().flags&Se)>0},Ae.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},Ae.allowNewDotTarget.get=function(){for(var a=this.scopeStack.length-1;a>=0;a--){var c=this.scopeStack[a],x=c.flags;if(x&(ye|ke)||x&ie&&!(x&Y))return!0}return!1},Ae.allowUsing.get=function(){var a=this.currentScope(),c=a.flags;return!(c&Ie||!this.inModule&&c&J)},Ae.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&ye)>0},T.extend=function(){for(var c=[],x=arguments.length;x--;)c[x]=arguments[x];for(var w=this,P=0;P<c.length;P++)w=c[P](w);return w},T.parse=function(c,x){return new this(x,c).parse()},T.parseExpressionAt=function(c,x,w){var P=new this(w,c,x);return P.nextToken(),P.parseExpression()},T.tokenizer=function(c,x){return new this(x,c)},Object.defineProperties(T.prototype,Ae);var Le=T.prototype,at=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;Le.strictDirective=function(a){if(this.options.ecmaVersion<5)return!1;for(;;){B.lastIndex=a,a+=B.exec(this.input)[0].length;var c=at.exec(this.input.slice(a));if(!c)return!1;if((c[1]||c[2])==="use strict"){B.lastIndex=a+c[0].length;var x=B.exec(this.input),w=x.index+x[0].length,P=this.input.charAt(w);return P===";"||P==="}"||A.test(x[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(P)||P==="!"&&this.input.charAt(w+1)==="=")}a+=c[0].length,B.lastIndex=a,a+=B.exec(this.input)[0].length,this.input[a]===";"&&a++}},Le.eat=function(a){return this.type===a?(this.next(),!0):!1},Le.isContextual=function(a){return this.type===g.name&&this.value===a&&!this.containsEsc},Le.eatContextual=function(a){return this.isContextual(a)?(this.next(),!0):!1},Le.expectContextual=function(a){this.eatContextual(a)||this.unexpected()},Le.canInsertSemicolon=function(){return this.type===g.eof||this.type===g.braceR||A.test(this.input.slice(this.lastTokEnd,this.start))},Le.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},Le.semicolon=function(){!this.eat(g.semi)&&!this.insertSemicolon()&&this.unexpected()},Le.afterTrailingComma=function(a,c){if(this.type===a)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),c||this.next(),!0},Le.expect=function(a){this.eat(a)||this.unexpected()},Le.unexpected=function(a){this.raise(a??this.start,"Unexpected token")};var kt=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};Le.checkPatternErrors=function(a,c){if(a){a.trailingComma>-1&&this.raiseRecoverable(a.trailingComma,"Comma is not permitted after the rest element");var x=c?a.parenthesizedAssign:a.parenthesizedBind;x>-1&&this.raiseRecoverable(x,c?"Assigning to rvalue":"Parenthesized pattern")}},Le.checkExpressionErrors=function(a,c){if(!a)return!1;var x=a.shorthandAssign,w=a.doubleProto;if(!c)return x>=0||w>=0;x>=0&&this.raise(x,"Shorthand property assignments are valid only in destructuring patterns"),w>=0&&this.raiseRecoverable(w,"Redefinition of __proto__ property")},Le.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")},Le.isSimpleAssignTarget=function(a){return a.type==="ParenthesizedExpression"?this.isSimpleAssignTarget(a.expression):a.type==="Identifier"||a.type==="MemberExpression"};var me=T.prototype;me.parseTopLevel=function(a){var c=Object.create(null);for(a.body||(a.body=[]);this.type!==g.eof;){var x=this.parseStatement(null,!0,c);a.body.push(x)}if(this.inModule)for(var w=0,P=Object.keys(this.undefinedExports);w<P.length;w+=1){var z=P[w];this.raiseRecoverable(this.undefinedExports[z].start,"Export '"+z+"' is not defined")}return this.adaptDirectivePrologue(a.body),this.next(),a.sourceType=this.options.sourceType==="commonjs"?"script":this.options.sourceType,this.finishNode(a,"Program")};var Zt={kind:"loop"},En={kind:"switch"};me.isLet=function(a){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;B.lastIndex=this.pos;var c=B.exec(this.input),x=this.pos+c[0].length,w=this.fullCharCodeAt(x);if(w===91||w===92)return!0;if(a)return!1;if(w===123)return!0;if(b(w)){var P=x;do x+=w<=65535?1:2;while(v(w=this.fullCharCodeAt(x)));if(w===92)return!0;var z=this.input.slice(P,x);if(!p.test(z))return!0}return!1},me.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;B.lastIndex=this.pos;var a=B.exec(this.input),c=this.pos+a[0].length,x;return!A.test(this.input.slice(this.pos,c))&&this.input.slice(c,c+8)==="function"&&(c+8===this.input.length||!(v(x=this.fullCharCodeAt(c+8))||x===92))},me.isUsingKeyword=function(a,c){if(this.options.ecmaVersion<17||!this.isContextual(a?"await":"using"))return!1;B.lastIndex=this.pos;var x=B.exec(this.input),w=this.pos+x[0].length;if(A.test(this.input.slice(this.pos,w)))return!1;if(a){var P=w+5,z;if(this.input.slice(w,P)!=="using"||P===this.input.length||v(z=this.fullCharCodeAt(P))||z===92)return!1;B.lastIndex=P;var q=B.exec(this.input);if(w=P+q[0].length,q&&A.test(this.input.slice(P,w)))return!1}var ce=this.fullCharCodeAt(w);if(!b(ce)&&ce!==92)return!1;var pe=w;do w+=ce<=65535?1:2;while(v(ce=this.fullCharCodeAt(w)));if(ce===92)return!0;var Ne=this.input.slice(pe,w);return!(p.test(Ne)||c&&Ne==="of")},me.isAwaitUsing=function(a){return this.isUsingKeyword(!0,a)},me.isUsing=function(a){return this.isUsingKeyword(!1,a)},me.parseStatement=function(a,c,x){var w=this.type,P=this.startNode(),z;switch(this.isLet(a)&&(w=g._var,z="let"),w){case g._break:case g._continue:return this.parseBreakContinueStatement(P,w.keyword);case g._debugger:return this.parseDebuggerStatement(P);case g._do:return this.parseDoStatement(P);case g._for:return this.parseForStatement(P);case g._function:return a&&(this.strict||a!=="if"&&a!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(P,!1,!a);case g._class:return a&&this.unexpected(),this.parseClass(P,!0);case g._if:return this.parseIfStatement(P);case g._return:return this.parseReturnStatement(P);case g._switch:return this.parseSwitchStatement(P);case g._throw:return this.parseThrowStatement(P);case g._try:return this.parseTryStatement(P);case g._const:case g._var:return z=z||this.value,a&&z!=="var"&&this.unexpected(),this.parseVarStatement(P,z);case g._while:return this.parseWhileStatement(P);case g._with:return this.parseWithStatement(P);case g.braceL:return this.parseBlock(!0,P);case g.semi:return this.parseEmptyStatement(P);case g._export:case g._import:if(this.options.ecmaVersion>10&&w===g._import){B.lastIndex=this.pos;var q=B.exec(this.input),ce=this.pos+q[0].length,pe=this.input.charCodeAt(ce);if(pe===40||pe===46)return this.parseExpressionStatement(P,this.parseExpression())}return this.options.allowImportExportEverywhere||(c||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),w===g._import?this.parseImport(P):this.parseExport(P,x);default:if(this.isAsyncFunction())return a&&this.unexpected(),this.next(),this.parseFunctionStatement(P,!0,!a);var Ne=this.isAwaitUsing(!1)?"await using":this.isUsing(!1)?"using":null;if(Ne)return this.allowUsing||this.raise(this.start,"Using declaration cannot appear in the top level when source type is `script` or in the bare case statement"),Ne==="await using"&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.next(),this.parseVar(P,!1,Ne),this.semicolon(),this.finishNode(P,"VariableDeclaration");var Fe=this.value,Xe=this.parseExpression();return w===g.name&&Xe.type==="Identifier"&&this.eat(g.colon)?this.parseLabeledStatement(P,Fe,Xe,a):this.parseExpressionStatement(P,Xe)}},me.parseBreakContinueStatement=function(a,c){var x=c==="break";this.next(),this.eat(g.semi)||this.insertSemicolon()?a.label=null:this.type!==g.name?this.unexpected():(a.label=this.parseIdent(),this.semicolon());for(var w=0;w<this.labels.length;++w){var P=this.labels[w];if((a.label==null||P.name===a.label.name)&&(P.kind!=null&&(x||P.kind==="loop")||a.label&&x))break}return w===this.labels.length&&this.raise(a.start,"Unsyntactic "+c),this.finishNode(a,x?"BreakStatement":"ContinueStatement")},me.parseDebuggerStatement=function(a){return this.next(),this.semicolon(),this.finishNode(a,"DebuggerStatement")},me.parseDoStatement=function(a){return this.next(),this.labels.push(Zt),a.body=this.parseStatement("do"),this.labels.pop(),this.expect(g._while),a.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(g.semi):this.semicolon(),this.finishNode(a,"DoWhileStatement")},me.parseForStatement=function(a){this.next();var c=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(Zt),this.enterScope(0),this.expect(g.parenL),this.type===g.semi)return c>-1&&this.unexpected(c),this.parseFor(a,null);var x=this.isLet();if(this.type===g._var||this.type===g._const||x){var w=this.startNode(),P=x?"let":this.value;return this.next(),this.parseVar(w,!0,P),this.finishNode(w,"VariableDeclaration"),this.parseForAfterInit(a,w,c)}var z=this.isContextual("let"),q=!1,ce=this.isUsing(!0)?"using":this.isAwaitUsing(!0)?"await using":null;if(ce){var pe=this.startNode();return this.next(),ce==="await using"&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.parseVar(pe,!0,ce),this.finishNode(pe,"VariableDeclaration"),this.parseForAfterInit(a,pe,c)}var Ne=this.containsEsc,Fe=new kt,Xe=this.start,st=c>-1?this.parseExprSubscripts(Fe,"await"):this.parseExpression(!0,Fe);return this.type===g._in||(q=this.options.ecmaVersion>=6&&this.isContextual("of"))?(c>-1?(this.type===g._in&&this.unexpected(c),a.await=!0):q&&this.options.ecmaVersion>=8&&(st.start===Xe&&!Ne&&st.type==="Identifier"&&st.name==="async"?this.unexpected():this.options.ecmaVersion>=9&&(a.await=!1)),z&&q&&this.raise(st.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(st,!1,Fe),this.checkLValPattern(st),this.parseForIn(a,st)):(this.checkExpressionErrors(Fe,!0),c>-1&&this.unexpected(c),this.parseFor(a,st))},me.parseForAfterInit=function(a,c,x){return(this.type===g._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&c.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===g._in?x>-1&&this.unexpected(x):a.await=x>-1),this.parseForIn(a,c)):(x>-1&&this.unexpected(x),this.parseFor(a,c))},me.parseFunctionStatement=function(a,c,x){return this.next(),this.parseFunction(a,Ct|(x?0:bt),!1,c)},me.parseIfStatement=function(a){return this.next(),a.test=this.parseParenExpression(),a.consequent=this.parseStatement("if"),a.alternate=this.eat(g._else)?this.parseStatement("if"):null,this.finishNode(a,"IfStatement")},me.parseReturnStatement=function(a){return this.allowReturn||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(g.semi)||this.insertSemicolon()?a.argument=null:(a.argument=this.parseExpression(),this.semicolon()),this.finishNode(a,"ReturnStatement")},me.parseSwitchStatement=function(a){this.next(),a.discriminant=this.parseParenExpression(),a.cases=[],this.expect(g.braceL),this.labels.push(En),this.enterScope(Ie);for(var c,x=!1;this.type!==g.braceR;)if(this.type===g._case||this.type===g._default){var w=this.type===g._case;c&&this.finishNode(c,"SwitchCase"),a.cases.push(c=this.startNode()),c.consequent=[],this.next(),w?c.test=this.parseExpression():(x&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),x=!0,c.test=null),this.expect(g.colon)}else c||this.unexpected(),c.consequent.push(this.parseStatement(null));return this.exitScope(),c&&this.finishNode(c,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(a,"SwitchStatement")},me.parseThrowStatement=function(a){return this.next(),A.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),a.argument=this.parseExpression(),this.semicolon(),this.finishNode(a,"ThrowStatement")};var ut=[];me.parseCatchClauseParam=function(){var a=this.parseBindingAtom(),c=a.type==="Identifier";return this.enterScope(c?le:0),this.checkLValPattern(a,c?Q:Te),this.expect(g.parenR),a},me.parseTryStatement=function(a){if(this.next(),a.block=this.parseBlock(),a.handler=null,this.type===g._catch){var c=this.startNode();this.next(),this.eat(g.parenL)?c.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),c.param=null,this.enterScope(0)),c.body=this.parseBlock(!1),this.exitScope(),a.handler=this.finishNode(c,"CatchClause")}return a.finalizer=this.eat(g._finally)?this.parseBlock():null,!a.handler&&!a.finalizer&&this.raise(a.start,"Missing catch or finally clause"),this.finishNode(a,"TryStatement")},me.parseVarStatement=function(a,c,x){return this.next(),this.parseVar(a,!1,c,x),this.semicolon(),this.finishNode(a,"VariableDeclaration")},me.parseWhileStatement=function(a){return this.next(),a.test=this.parseParenExpression(),this.labels.push(Zt),a.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(a,"WhileStatement")},me.parseWithStatement=function(a){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),a.object=this.parseParenExpression(),a.body=this.parseStatement("with"),this.finishNode(a,"WithStatement")},me.parseEmptyStatement=function(a){return this.next(),this.finishNode(a,"EmptyStatement")},me.parseLabeledStatement=function(a,c,x,w){for(var P=0,z=this.labels;P<z.length;P+=1){var q=z[P];q.name===c&&this.raise(x.start,"Label '"+c+"' is already declared")}for(var ce=this.type.isLoop?"loop":this.type===g._switch?"switch":null,pe=this.labels.length-1;pe>=0;pe--){var Ne=this.labels[pe];if(Ne.statementStart===a.start)Ne.statementStart=this.start,Ne.kind=ce;else break}return this.labels.push({name:c,kind:ce,statementStart:this.start}),a.body=this.parseStatement(w?w.indexOf("label")===-1?w+"label":w:"label"),this.labels.pop(),a.label=x,this.finishNode(a,"LabeledStatement")},me.parseExpressionStatement=function(a,c){return a.expression=c,this.semicolon(),this.finishNode(a,"ExpressionStatement")},me.parseBlock=function(a,c,x){for(a===void 0&&(a=!0),c===void 0&&(c=this.startNode()),c.body=[],this.expect(g.braceL),a&&this.enterScope(0);this.type!==g.braceR;){var w=this.parseStatement(null);c.body.push(w)}return x&&(this.strict=!1),this.next(),a&&this.exitScope(),this.finishNode(c,"BlockStatement")},me.parseFor=function(a,c){return a.init=c,this.expect(g.semi),a.test=this.type===g.semi?null:this.parseExpression(),this.expect(g.semi),a.update=this.type===g.parenR?null:this.parseExpression(),this.expect(g.parenR),a.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(a,"ForStatement")},me.parseForIn=function(a,c){var x=this.type===g._in;return this.next(),c.type==="VariableDeclaration"&&c.declarations[0].init!=null&&(!x||this.options.ecmaVersion<8||this.strict||c.kind!=="var"||c.declarations[0].id.type!=="Identifier")&&this.raise(c.start,(x?"for-in":"for-of")+" loop variable declaration may not have an initializer"),a.left=c,a.right=x?this.parseExpression():this.parseMaybeAssign(),this.expect(g.parenR),a.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(a,x?"ForInStatement":"ForOfStatement")},me.parseVar=function(a,c,x,w){for(a.declarations=[],a.kind=x;;){var P=this.startNode();if(this.parseVarId(P,x),this.eat(g.eq)?P.init=this.parseMaybeAssign(c):!w&&x==="const"&&!(this.type===g._in||this.options.ecmaVersion>=6&&this.isContextual("of"))?this.unexpected():!w&&(x==="using"||x==="await using")&&this.options.ecmaVersion>=17&&this.type!==g._in&&!this.isContextual("of")?this.raise(this.lastTokEnd,"Missing initializer in "+x+" declaration"):!w&&P.id.type!=="Identifier"&&!(c&&(this.type===g._in||this.isContextual("of")))?this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):P.init=null,a.declarations.push(this.finishNode(P,"VariableDeclarator")),!this.eat(g.comma))break}return a},me.parseVarId=function(a,c){a.id=c==="using"||c==="await using"?this.parseIdent():this.parseBindingAtom(),this.checkLValPattern(a.id,c==="var"?$e:Te,!1)};var Ct=1,bt=2,ho=4;me.parseFunction=function(a,c,x,w,P){this.initFunction(a),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!w)&&(this.type===g.star&&c&bt&&this.unexpected(),a.generator=this.eat(g.star)),this.options.ecmaVersion>=8&&(a.async=!!w),c&Ct&&(a.id=c&ho&&this.type!==g.name?null:this.parseIdent(),a.id&&!(c&bt)&&this.checkLValSimple(a.id,this.strict||a.generator||a.async?this.treatFunctionsAsVar?$e:Te:nt));var z=this.yieldPos,q=this.awaitPos,ce=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Pe(a.async,a.generator)),c&Ct||(a.id=this.type===g.name?this.parseIdent():null),this.parseFunctionParams(a),this.parseFunctionBody(a,x,!1,P),this.yieldPos=z,this.awaitPos=q,this.awaitIdentPos=ce,this.finishNode(a,c&Ct?"FunctionDeclaration":"FunctionExpression")},me.parseFunctionParams=function(a){this.expect(g.parenL),a.params=this.parseBindingList(g.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},me.parseClass=function(a,c){this.next();var x=this.strict;this.strict=!0,this.parseClassId(a,c),this.parseClassSuper(a);var w=this.enterClassBody(),P=this.startNode(),z=!1;for(P.body=[],this.expect(g.braceL);this.type!==g.braceR;){var q=this.parseClassElement(a.superClass!==null);q&&(P.body.push(q),q.type==="MethodDefinition"&&q.kind==="constructor"?(z&&this.raiseRecoverable(q.start,"Duplicate constructor in the same class"),z=!0):q.key&&q.key.type==="PrivateIdentifier"&&Bp(w,q)&&this.raiseRecoverable(q.key.start,"Identifier '#"+q.key.name+"' has already been declared"))}return this.strict=x,this.next(),a.body=this.finishNode(P,"ClassBody"),this.exitClassBody(),this.finishNode(a,c?"ClassDeclaration":"ClassExpression")},me.parseClassElement=function(a){if(this.eat(g.semi))return null;var c=this.options.ecmaVersion,x=this.startNode(),w="",P=!1,z=!1,q="method",ce=!1;if(this.eatContextual("static")){if(c>=13&&this.eat(g.braceL))return this.parseClassStaticBlock(x),x;this.isClassElementNameStart()||this.type===g.star?ce=!0:w="static"}if(x.static=ce,!w&&c>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.type===g.star)&&!this.canInsertSemicolon()?z=!0:w="async"),!w&&(c>=9||!z)&&this.eat(g.star)&&(P=!0),!w&&!z&&!P){var pe=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?q=pe:w=pe)}if(w?(x.computed=!1,x.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),x.key.name=w,this.finishNode(x.key,"Identifier")):this.parseClassElementName(x),c<13||this.type===g.parenL||q!=="method"||P||z){var Ne=!x.static&&Ni(x,"constructor"),Fe=Ne&&a;Ne&&q!=="method"&&this.raise(x.key.start,"Constructor can't have get/set modifier"),x.kind=Ne?"constructor":q,this.parseClassMethod(x,P,z,Fe)}else this.parseClassField(x);return x},me.isClassElementNameStart=function(){return this.type===g.name||this.type===g.privateId||this.type===g.num||this.type===g.string||this.type===g.bracketL||this.type.keyword},me.parseClassElementName=function(a){this.type===g.privateId?(this.value==="constructor"&&this.raise(this.start,"Classes can't have an element named '#constructor'"),a.computed=!1,a.key=this.parsePrivateIdent()):this.parsePropertyName(a)},me.parseClassMethod=function(a,c,x,w){var P=a.key;a.kind==="constructor"?(c&&this.raise(P.start,"Constructor can't be a generator"),x&&this.raise(P.start,"Constructor can't be an async method")):a.static&&Ni(a,"prototype")&&this.raise(P.start,"Classes may not have a static property named prototype");var z=a.value=this.parseMethod(c,x,w);return a.kind==="get"&&z.params.length!==0&&this.raiseRecoverable(z.start,"getter should have no params"),a.kind==="set"&&z.params.length!==1&&this.raiseRecoverable(z.start,"setter should have exactly one param"),a.kind==="set"&&z.params[0].type==="RestElement"&&this.raiseRecoverable(z.params[0].start,"Setter cannot use rest params"),this.finishNode(a,"MethodDefinition")},me.parseClassField=function(a){return Ni(a,"constructor")?this.raise(a.key.start,"Classes can't have a field named 'constructor'"):a.static&&Ni(a,"prototype")&&this.raise(a.key.start,"Classes can't have a static field named 'prototype'"),this.eat(g.eq)?(this.enterScope(ke|de),a.value=this.parseMaybeAssign(),this.exitScope()):a.value=null,this.semicolon(),this.finishNode(a,"PropertyDefinition")},me.parseClassStaticBlock=function(a){a.body=[];var c=this.labels;for(this.labels=[],this.enterScope(ye|de);this.type!==g.braceR;){var x=this.parseStatement(null);a.body.push(x)}return this.next(),this.exitScope(),this.labels=c,this.finishNode(a,"StaticBlock")},me.parseClassId=function(a,c){this.type===g.name?(a.id=this.parseIdent(),c&&this.checkLValSimple(a.id,Te,!1)):(c===!0&&this.unexpected(),a.id=null)},me.parseClassSuper=function(a){a.superClass=this.eat(g._extends)?this.parseExprSubscripts(null,!1):null},me.enterClassBody=function(){var a={declared:Object.create(null),used:[]};return this.privateNameStack.push(a),a.declared},me.exitClassBody=function(){var a=this.privateNameStack.pop(),c=a.declared,x=a.used;if(this.options.checkPrivateFields)for(var w=this.privateNameStack.length,P=w===0?null:this.privateNameStack[w-1],z=0;z<x.length;++z){var q=x[z];te(c,q.name)||(P?P.used.push(q):this.raiseRecoverable(q.start,"Private field '#"+q.name+"' must be declared in an enclosing class"))}};function Bp(a,c){var x=c.key.name,w=a[x],P="true";return c.type==="MethodDefinition"&&(c.kind==="get"||c.kind==="set")&&(P=(c.static?"s":"i")+c.kind),w==="iget"&&P==="iset"||w==="iset"&&P==="iget"||w==="sget"&&P==="sset"||w==="sset"&&P==="sget"?(a[x]="true",!1):w?!0:(a[x]=P,!1)}function Ni(a,c){var x=a.computed,w=a.key;return!x&&(w.type==="Identifier"&&w.name===c||w.type==="Literal"&&w.value===c)}me.parseExportAllDeclaration=function(a,c){return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(a.exported=this.parseModuleExportName(),this.checkExport(c,a.exported,this.lastTokStart)):a.exported=null),this.expectContextual("from"),this.type!==g.string&&this.unexpected(),a.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(a.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(a,"ExportAllDeclaration")},me.parseExport=function(a,c){if(this.next(),this.eat(g.star))return this.parseExportAllDeclaration(a,c);if(this.eat(g._default))return this.checkExport(c,"default",this.lastTokStart),a.declaration=this.parseExportDefaultDeclaration(),this.finishNode(a,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())a.declaration=this.parseExportDeclaration(a),a.declaration.type==="VariableDeclaration"?this.checkVariableExport(c,a.declaration.declarations):this.checkExport(c,a.declaration.id,a.declaration.id.start),a.specifiers=[],a.source=null,this.options.ecmaVersion>=16&&(a.attributes=[]);else{if(a.declaration=null,a.specifiers=this.parseExportSpecifiers(c),this.eatContextual("from"))this.type!==g.string&&this.unexpected(),a.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(a.attributes=this.parseWithClause());else{for(var x=0,w=a.specifiers;x<w.length;x+=1){var P=w[x];this.checkUnreserved(P.local),this.checkLocalExport(P.local),P.local.type==="Literal"&&this.raise(P.local.start,"A string literal cannot be used as an exported binding without `from`.")}a.source=null,this.options.ecmaVersion>=16&&(a.attributes=[])}this.semicolon()}return this.finishNode(a,"ExportNamedDeclaration")},me.parseExportDeclaration=function(a){return this.parseStatement(null)},me.parseExportDefaultDeclaration=function(){var a;if(this.type===g._function||(a=this.isAsyncFunction())){var c=this.startNode();return this.next(),a&&this.next(),this.parseFunction(c,Ct|ho,!1,a)}else if(this.type===g._class){var x=this.startNode();return this.parseClass(x,"nullableID")}else{var w=this.parseMaybeAssign();return this.semicolon(),w}},me.checkExport=function(a,c,x){a&&(typeof c!="string"&&(c=c.type==="Identifier"?c.name:c.value),te(a,c)&&this.raiseRecoverable(x,"Duplicate export '"+c+"'"),a[c]=!0)},me.checkPatternExport=function(a,c){var x=c.type;if(x==="Identifier")this.checkExport(a,c,c.start);else if(x==="ObjectPattern")for(var w=0,P=c.properties;w<P.length;w+=1){var z=P[w];this.checkPatternExport(a,z)}else if(x==="ArrayPattern")for(var q=0,ce=c.elements;q<ce.length;q+=1){var pe=ce[q];pe&&this.checkPatternExport(a,pe)}else x==="Property"?this.checkPatternExport(a,c.value):x==="AssignmentPattern"?this.checkPatternExport(a,c.left):x==="RestElement"&&this.checkPatternExport(a,c.argument)},me.checkVariableExport=function(a,c){if(a)for(var x=0,w=c;x<w.length;x+=1){var P=w[x];this.checkPatternExport(a,P.id)}},me.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()},me.parseExportSpecifier=function(a){var c=this.startNode();return c.local=this.parseModuleExportName(),c.exported=this.eatContextual("as")?this.parseModuleExportName():c.local,this.checkExport(a,c.exported,c.exported.start),this.finishNode(c,"ExportSpecifier")},me.parseExportSpecifiers=function(a){var c=[],x=!0;for(this.expect(g.braceL);!this.eat(g.braceR);){if(x)x=!1;else if(this.expect(g.comma),this.afterTrailingComma(g.braceR))break;c.push(this.parseExportSpecifier(a))}return c},me.parseImport=function(a){return this.next(),this.type===g.string?(a.specifiers=ut,a.source=this.parseExprAtom()):(a.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),a.source=this.type===g.string?this.parseExprAtom():this.unexpected()),this.options.ecmaVersion>=16&&(a.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(a,"ImportDeclaration")},me.parseImportSpecifier=function(){var a=this.startNode();return a.imported=this.parseModuleExportName(),this.eatContextual("as")?a.local=this.parseIdent():(this.checkUnreserved(a.imported),a.local=a.imported),this.checkLValSimple(a.local,Te),this.finishNode(a,"ImportSpecifier")},me.parseImportDefaultSpecifier=function(){var a=this.startNode();return a.local=this.parseIdent(),this.checkLValSimple(a.local,Te),this.finishNode(a,"ImportDefaultSpecifier")},me.parseImportNamespaceSpecifier=function(){var a=this.startNode();return this.next(),this.expectContextual("as"),a.local=this.parseIdent(),this.checkLValSimple(a.local,Te),this.finishNode(a,"ImportNamespaceSpecifier")},me.parseImportSpecifiers=function(){var a=[],c=!0;if(this.type===g.name&&(a.push(this.parseImportDefaultSpecifier()),!this.eat(g.comma)))return a;if(this.type===g.star)return a.push(this.parseImportNamespaceSpecifier()),a;for(this.expect(g.braceL);!this.eat(g.braceR);){if(c)c=!1;else if(this.expect(g.comma),this.afterTrailingComma(g.braceR))break;a.push(this.parseImportSpecifier())}return a},me.parseWithClause=function(){var a=[];if(!this.eat(g._with))return a;this.expect(g.braceL);for(var c={},x=!0;!this.eat(g.braceR);){if(x)x=!1;else if(this.expect(g.comma),this.afterTrailingComma(g.braceR))break;var w=this.parseImportAttribute(),P=w.key.type==="Identifier"?w.key.name:w.key.value;te(c,P)&&this.raiseRecoverable(w.key.start,"Duplicate attribute key '"+P+"'"),c[P]=!0,a.push(w)}return a},me.parseImportAttribute=function(){var a=this.startNode();return a.key=this.type===g.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never"),this.expect(g.colon),this.type!==g.string&&this.unexpected(),a.value=this.parseExprAtom(),this.finishNode(a,"ImportAttribute")},me.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===g.string){var a=this.parseLiteral(this.value);return G.test(a.value)&&this.raise(a.start,"An export name cannot include a lone surrogate."),a}return this.parseIdent(!0)},me.adaptDirectivePrologue=function(a){for(var c=0;c<a.length&&this.isDirectiveCandidate(a[c]);++c)a[c].directive=a[c].expression.raw.slice(1,-1)},me.isDirectiveCandidate=function(a){return this.options.ecmaVersion>=5&&a.type==="ExpressionStatement"&&a.expression.type==="Literal"&&typeof a.expression.value=="string"&&(this.input[a.start]==='"'||this.input[a.start]==="'")};var _t=T.prototype;_t.toAssignable=function(a,c,x){if(this.options.ecmaVersion>=6&&a)switch(a.type){case"Identifier":this.inAsync&&a.name==="await"&&this.raise(a.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":a.type="ObjectPattern",x&&this.checkPatternErrors(x,!0);for(var w=0,P=a.properties;w<P.length;w+=1){var z=P[w];this.toAssignable(z,c),z.type==="RestElement"&&(z.argument.type==="ArrayPattern"||z.argument.type==="ObjectPattern")&&this.raise(z.argument.start,"Unexpected token")}break;case"Property":a.kind!=="init"&&this.raise(a.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(a.value,c);break;case"ArrayExpression":a.type="ArrayPattern",x&&this.checkPatternErrors(x,!0),this.toAssignableList(a.elements,c);break;case"SpreadElement":a.type="RestElement",this.toAssignable(a.argument,c),a.argument.type==="AssignmentPattern"&&this.raise(a.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":a.operator!=="="&&this.raise(a.left.end,"Only '=' operator can be used for specifying default value."),a.type="AssignmentPattern",delete a.operator,this.toAssignable(a.left,c);break;case"ParenthesizedExpression":this.toAssignable(a.expression,c,x);break;case"ChainExpression":this.raiseRecoverable(a.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!c)break;default:this.raise(a.start,"Assigning to rvalue")}else x&&this.checkPatternErrors(x,!0);return a},_t.toAssignableList=function(a,c){for(var x=a.length,w=0;w<x;w++){var P=a[w];P&&this.toAssignable(P,c)}if(x){var z=a[x-1];this.options.ecmaVersion===6&&c&&z&&z.type==="RestElement"&&z.argument.type!=="Identifier"&&this.unexpected(z.argument.start)}return a},_t.parseSpread=function(a){var c=this.startNode();return this.next(),c.argument=this.parseMaybeAssign(!1,a),this.finishNode(c,"SpreadElement")},_t.parseRestBinding=function(){var a=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==g.name&&this.unexpected(),a.argument=this.parseBindingAtom(),this.finishNode(a,"RestElement")},_t.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case g.bracketL:var a=this.startNode();return this.next(),a.elements=this.parseBindingList(g.bracketR,!0,!0),this.finishNode(a,"ArrayPattern");case g.braceL:return this.parseObj(!0)}return this.parseIdent()},_t.parseBindingList=function(a,c,x,w){for(var P=[],z=!0;!this.eat(a);)if(z?z=!1:this.expect(g.comma),c&&this.type===g.comma)P.push(null);else{if(x&&this.afterTrailingComma(a))break;if(this.type===g.ellipsis){var q=this.parseRestBinding();this.parseBindingListItem(q),P.push(q),this.type===g.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(a);break}else P.push(this.parseAssignableListItem(w))}return P},_t.parseAssignableListItem=function(a){var c=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(c),c},_t.parseBindingListItem=function(a){return a},_t.parseMaybeDefault=function(a,c,x){if(x=x||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(g.eq))return x;var w=this.startNodeAt(a,c);return w.left=x,w.right=this.parseMaybeAssign(),this.finishNode(w,"AssignmentPattern")},_t.checkLValSimple=function(a,c,x){c===void 0&&(c=Be);var w=c!==Be;switch(a.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(a.name)&&this.raiseRecoverable(a.start,(w?"Binding ":"Assigning to ")+a.name+" in strict mode"),w&&(c===Te&&a.name==="let"&&this.raiseRecoverable(a.start,"let is disallowed as a lexically bound name"),x&&(te(x,a.name)&&this.raiseRecoverable(a.start,"Argument name clash"),x[a.name]=!0),c!==re&&this.declareName(a.name,c,a.start));break;case"ChainExpression":this.raiseRecoverable(a.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":w&&this.raiseRecoverable(a.start,"Binding member expression");break;case"ParenthesizedExpression":return w&&this.raiseRecoverable(a.start,"Binding parenthesized expression"),this.checkLValSimple(a.expression,c,x);default:this.raise(a.start,(w?"Binding":"Assigning to")+" rvalue")}},_t.checkLValPattern=function(a,c,x){switch(c===void 0&&(c=Be),a.type){case"ObjectPattern":for(var w=0,P=a.properties;w<P.length;w+=1){var z=P[w];this.checkLValInnerPattern(z,c,x)}break;case"ArrayPattern":for(var q=0,ce=a.elements;q<ce.length;q+=1){var pe=ce[q];pe&&this.checkLValInnerPattern(pe,c,x)}break;default:this.checkLValSimple(a,c,x)}},_t.checkLValInnerPattern=function(a,c,x){switch(c===void 0&&(c=Be),a.type){case"Property":this.checkLValInnerPattern(a.value,c,x);break;case"AssignmentPattern":this.checkLValPattern(a.left,c,x);break;case"RestElement":this.checkLValPattern(a.argument,c,x);break;default:this.checkLValPattern(a,c,x)}};var It=function(c,x,w,P,z){this.token=c,this.isExpr=!!x,this.preserveSpace=!!w,this.override=P,this.generator=!!z},Ze={b_stat:new It("{",!1),b_expr:new It("{",!0),b_tmpl:new It("${",!1),p_stat:new It("(",!1),p_expr:new It("(",!0),q_tmpl:new It("`",!0,!0,function(a){return a.tryReadTemplateToken()}),f_stat:new It("function",!1),f_expr:new It("function",!0),f_expr_gen:new It("function",!0,!1,null,!0),f_gen:new It("function",!1,!1,null,!0)},Rn=T.prototype;Rn.initialContext=function(){return[Ze.b_stat]},Rn.curContext=function(){return this.context[this.context.length-1]},Rn.braceIsBlock=function(a){var c=this.curContext();return c===Ze.f_expr||c===Ze.f_stat?!0:a===g.colon&&(c===Ze.b_stat||c===Ze.b_expr)?!c.isExpr:a===g._return||a===g.name&&this.exprAllowed?A.test(this.input.slice(this.lastTokEnd,this.start)):a===g._else||a===g.semi||a===g.eof||a===g.parenR||a===g.arrow?!0:a===g.braceL?c===Ze.b_stat:a===g._var||a===g._const||a===g.name?!1:!this.exprAllowed},Rn.inGeneratorContext=function(){for(var a=this.context.length-1;a>=1;a--){var c=this.context[a];if(c.token==="function")return c.generator}return!1},Rn.updateContext=function(a){var c,x=this.type;x.keyword&&a===g.dot?this.exprAllowed=!1:(c=x.updateContext)?c.call(this,a):this.exprAllowed=x.beforeExpr},Rn.overrideContext=function(a){this.curContext()!==a&&(this.context[this.context.length-1]=a)},g.parenR.updateContext=g.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var a=this.context.pop();a===Ze.b_stat&&this.curContext().token==="function"&&(a=this.context.pop()),this.exprAllowed=!a.isExpr},g.braceL.updateContext=function(a){this.context.push(this.braceIsBlock(a)?Ze.b_stat:Ze.b_expr),this.exprAllowed=!0},g.dollarBraceL.updateContext=function(){this.context.push(Ze.b_tmpl),this.exprAllowed=!0},g.parenL.updateContext=function(a){var c=a===g._if||a===g._for||a===g._with||a===g._while;this.context.push(c?Ze.p_stat:Ze.p_expr),this.exprAllowed=!0},g.incDec.updateContext=function(){},g._function.updateContext=g._class.updateContext=function(a){a.beforeExpr&&a!==g._else&&!(a===g.semi&&this.curContext()!==Ze.p_stat)&&!(a===g._return&&A.test(this.input.slice(this.lastTokEnd,this.start)))&&!((a===g.colon||a===g.braceL)&&this.curContext()===Ze.b_stat)?this.context.push(Ze.f_expr):this.context.push(Ze.f_stat),this.exprAllowed=!1},g.colon.updateContext=function(){this.curContext().token==="function"&&this.context.pop(),this.exprAllowed=!0},g.backQuote.updateContext=function(){this.curContext()===Ze.q_tmpl?this.context.pop():this.context.push(Ze.q_tmpl),this.exprAllowed=!1},g.star.updateContext=function(a){if(a===g._function){var c=this.context.length-1;this.context[c]===Ze.f_expr?this.context[c]=Ze.f_expr_gen:this.context[c]=Ze.f_gen}this.exprAllowed=!0},g.name.updateContext=function(a){var c=!1;this.options.ecmaVersion>=6&&a!==g.dot&&(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())&&(c=!0),this.exprAllowed=c};var Oe=T.prototype;Oe.checkPropClash=function(a,c,x){if(!(this.options.ecmaVersion>=9&&a.type==="SpreadElement")&&!(this.options.ecmaVersion>=6&&(a.computed||a.method||a.shorthand))){var w=a.key,P;switch(w.type){case"Identifier":P=w.name;break;case"Literal":P=String(w.value);break;default:return}var z=a.kind;if(this.options.ecmaVersion>=6){P==="__proto__"&&z==="init"&&(c.proto&&(x?x.doubleProto<0&&(x.doubleProto=w.start):this.raiseRecoverable(w.start,"Redefinition of __proto__ property")),c.proto=!0);return}P="$"+P;var q=c[P];if(q){var ce;z==="init"?ce=this.strict&&q.init||q.get||q.set:ce=q.init||q[z],ce&&this.raiseRecoverable(w.start,"Redefinition of property")}else q=c[P]={init:!1,get:!1,set:!1};q[z]=!0}},Oe.parseExpression=function(a,c){var x=this.start,w=this.startLoc,P=this.parseMaybeAssign(a,c);if(this.type===g.comma){var z=this.startNodeAt(x,w);for(z.expressions=[P];this.eat(g.comma);)z.expressions.push(this.parseMaybeAssign(a,c));return this.finishNode(z,"SequenceExpression")}return P},Oe.parseMaybeAssign=function(a,c,x){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(a);this.exprAllowed=!1}var w=!1,P=-1,z=-1,q=-1;c?(P=c.parenthesizedAssign,z=c.trailingComma,q=c.doubleProto,c.parenthesizedAssign=c.trailingComma=-1):(c=new kt,w=!0);var ce=this.start,pe=this.startLoc;(this.type===g.parenL||this.type===g.name)&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait=a==="await");var Ne=this.parseMaybeConditional(a,c);if(x&&(Ne=x.call(this,Ne,ce,pe)),this.type.isAssign){var Fe=this.startNodeAt(ce,pe);return Fe.operator=this.value,this.type===g.eq&&(Ne=this.toAssignable(Ne,!1,c)),w||(c.parenthesizedAssign=c.trailingComma=c.doubleProto=-1),c.shorthandAssign>=Ne.start&&(c.shorthandAssign=-1),this.type===g.eq?this.checkLValPattern(Ne):this.checkLValSimple(Ne),Fe.left=Ne,this.next(),Fe.right=this.parseMaybeAssign(a),q>-1&&(c.doubleProto=q),this.finishNode(Fe,"AssignmentExpression")}else w&&this.checkExpressionErrors(c,!0);return P>-1&&(c.parenthesizedAssign=P),z>-1&&(c.trailingComma=z),Ne},Oe.parseMaybeConditional=function(a,c){var x=this.start,w=this.startLoc,P=this.parseExprOps(a,c);if(this.checkExpressionErrors(c))return P;if(this.eat(g.question)){var z=this.startNodeAt(x,w);return z.test=P,z.consequent=this.parseMaybeAssign(),this.expect(g.colon),z.alternate=this.parseMaybeAssign(a),this.finishNode(z,"ConditionalExpression")}return P},Oe.parseExprOps=function(a,c){var x=this.start,w=this.startLoc,P=this.parseMaybeUnary(c,!1,!1,a);return this.checkExpressionErrors(c)||P.start===x&&P.type==="ArrowFunctionExpression"?P:this.parseExprOp(P,x,w,-1,a)},Oe.parseExprOp=function(a,c,x,w,P){var z=this.type.binop;if(z!=null&&(!P||this.type!==g._in)&&z>w){var q=this.type===g.logicalOR||this.type===g.logicalAND,ce=this.type===g.coalesce;ce&&(z=g.logicalAND.binop);var pe=this.value;this.next();var Ne=this.start,Fe=this.startLoc,Xe=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,P),Ne,Fe,z,P),st=this.buildBinary(c,x,a,Xe,pe,q||ce);return(q&&this.type===g.coalesce||ce&&(this.type===g.logicalOR||this.type===g.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(st,c,x,w,P)}return a},Oe.buildBinary=function(a,c,x,w,P,z){w.type==="PrivateIdentifier"&&this.raise(w.start,"Private identifier can only be left side of binary expression");var q=this.startNodeAt(a,c);return q.left=x,q.operator=P,q.right=w,this.finishNode(q,z?"LogicalExpression":"BinaryExpression")},Oe.parseMaybeUnary=function(a,c,x,w){var P=this.start,z=this.startLoc,q;if(this.isContextual("await")&&this.canAwait)q=this.parseAwait(w),c=!0;else if(this.type.prefix){var ce=this.startNode(),pe=this.type===g.incDec;ce.operator=this.value,ce.prefix=!0,this.next(),ce.argument=this.parseMaybeUnary(null,!0,pe,w),this.checkExpressionErrors(a,!0),pe?this.checkLValSimple(ce.argument):this.strict&&ce.operator==="delete"&&fo(ce.argument)?this.raiseRecoverable(ce.start,"Deleting local variable in strict mode"):ce.operator==="delete"&&$r(ce.argument)?this.raiseRecoverable(ce.start,"Private fields can not be deleted"):c=!0,q=this.finishNode(ce,pe?"UpdateExpression":"UnaryExpression")}else if(!c&&this.type===g.privateId)(w||this.privateNameStack.length===0)&&this.options.checkPrivateFields&&this.unexpected(),q=this.parsePrivateIdent(),this.type!==g._in&&this.unexpected();else{if(q=this.parseExprSubscripts(a,w),this.checkExpressionErrors(a))return q;for(;this.type.postfix&&!this.canInsertSemicolon();){var Ne=this.startNodeAt(P,z);Ne.operator=this.value,Ne.prefix=!1,Ne.argument=q,this.checkLValSimple(q),this.next(),q=this.finishNode(Ne,"UpdateExpression")}}if(!x&&this.eat(g.starstar))if(c)this.unexpected(this.lastTokStart);else return this.buildBinary(P,z,q,this.parseMaybeUnary(null,!1,!1,w),"**",!1);else return q};function fo(a){return a.type==="Identifier"||a.type==="ParenthesizedExpression"&&fo(a.expression)}function $r(a){return a.type==="MemberExpression"&&a.property.type==="PrivateIdentifier"||a.type==="ChainExpression"&&$r(a.expression)||a.type==="ParenthesizedExpression"&&$r(a.expression)}Oe.parseExprSubscripts=function(a,c){var x=this.start,w=this.startLoc,P=this.parseExprAtom(a,c);if(P.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return P;var z=this.parseSubscripts(P,x,w,!1,c);return a&&z.type==="MemberExpression"&&(a.parenthesizedAssign>=z.start&&(a.parenthesizedAssign=-1),a.parenthesizedBind>=z.start&&(a.parenthesizedBind=-1),a.trailingComma>=z.start&&(a.trailingComma=-1)),z},Oe.parseSubscripts=function(a,c,x,w,P){for(var z=this.options.ecmaVersion>=8&&a.type==="Identifier"&&a.name==="async"&&this.lastTokEnd===a.end&&!this.canInsertSemicolon()&&a.end-a.start===5&&this.potentialArrowAt===a.start,q=!1;;){var ce=this.parseSubscript(a,c,x,w,z,q,P);if(ce.optional&&(q=!0),ce===a||ce.type==="ArrowFunctionExpression"){if(q){var pe=this.startNodeAt(c,x);pe.expression=ce,ce=this.finishNode(pe,"ChainExpression")}return ce}a=ce}},Oe.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(g.arrow)},Oe.parseSubscriptAsyncArrow=function(a,c,x,w){return this.parseArrowExpression(this.startNodeAt(a,c),x,!0,w)},Oe.parseSubscript=function(a,c,x,w,P,z,q){var ce=this.options.ecmaVersion>=11,pe=ce&&this.eat(g.questionDot);w&&pe&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var Ne=this.eat(g.bracketL);if(Ne||pe&&this.type!==g.parenL&&this.type!==g.backQuote||this.eat(g.dot)){var Fe=this.startNodeAt(c,x);Fe.object=a,Ne?(Fe.property=this.parseExpression(),this.expect(g.bracketR)):this.type===g.privateId&&a.type!=="Super"?Fe.property=this.parsePrivateIdent():Fe.property=this.parseIdent(this.options.allowReserved!=="never"),Fe.computed=!!Ne,ce&&(Fe.optional=pe),a=this.finishNode(Fe,"MemberExpression")}else if(!w&&this.eat(g.parenL)){var Xe=new kt,st=this.yieldPos,ri=this.awaitPos,Ln=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var Mi=this.parseExprList(g.parenR,this.options.ecmaVersion>=8,!1,Xe);if(P&&!pe&&this.shouldParseAsyncArrow())return this.checkPatternErrors(Xe,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=st,this.awaitPos=ri,this.awaitIdentPos=Ln,this.parseSubscriptAsyncArrow(c,x,Mi,q);this.checkExpressionErrors(Xe,!0),this.yieldPos=st||this.yieldPos,this.awaitPos=ri||this.awaitPos,this.awaitIdentPos=Ln||this.awaitIdentPos;var Mn=this.startNodeAt(c,x);Mn.callee=a,Mn.arguments=Mi,ce&&(Mn.optional=pe),a=this.finishNode(Mn,"CallExpression")}else if(this.type===g.backQuote){(pe||z)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var Fn=this.startNodeAt(c,x);Fn.tag=a,Fn.quasi=this.parseTemplate({isTagged:!0}),a=this.finishNode(Fn,"TaggedTemplateExpression")}return a},Oe.parseExprAtom=function(a,c,x){this.type===g.slash&&this.readRegexp();var w,P=this.potentialArrowAt===this.start;switch(this.type){case g._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),w=this.startNode(),this.next(),this.type===g.parenL&&!this.allowDirectSuper&&this.raise(w.start,"super() call outside constructor of a subclass"),this.type!==g.dot&&this.type!==g.bracketL&&this.type!==g.parenL&&this.unexpected(),this.finishNode(w,"Super");case g._this:return w=this.startNode(),this.next(),this.finishNode(w,"ThisExpression");case g.name:var z=this.start,q=this.startLoc,ce=this.containsEsc,pe=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!ce&&pe.name==="async"&&!this.canInsertSemicolon()&&this.eat(g._function))return this.overrideContext(Ze.f_expr),this.parseFunction(this.startNodeAt(z,q),0,!1,!0,c);if(P&&!this.canInsertSemicolon()){if(this.eat(g.arrow))return this.parseArrowExpression(this.startNodeAt(z,q),[pe],!1,c);if(this.options.ecmaVersion>=8&&pe.name==="async"&&this.type===g.name&&!ce&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc))return pe=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(g.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(z,q),[pe],!0,c)}return pe;case g.regexp:var Ne=this.value;return w=this.parseLiteral(Ne.value),w.regex={pattern:Ne.pattern,flags:Ne.flags},w;case g.num:case g.string:return this.parseLiteral(this.value);case g._null:case g._true:case g._false:return w=this.startNode(),w.value=this.type===g._null?null:this.type===g._true,w.raw=this.type.keyword,this.next(),this.finishNode(w,"Literal");case g.parenL:var Fe=this.start,Xe=this.parseParenAndDistinguishExpression(P,c);return a&&(a.parenthesizedAssign<0&&!this.isSimpleAssignTarget(Xe)&&(a.parenthesizedAssign=Fe),a.parenthesizedBind<0&&(a.parenthesizedBind=Fe)),Xe;case g.bracketL:return w=this.startNode(),this.next(),w.elements=this.parseExprList(g.bracketR,!0,!0,a),this.finishNode(w,"ArrayExpression");case g.braceL:return this.overrideContext(Ze.b_expr),this.parseObj(!1,a);case g._function:return w=this.startNode(),this.next(),this.parseFunction(w,0);case g._class:return this.parseClass(this.startNode(),!1);case g._new:return this.parseNew();case g.backQuote:return this.parseTemplate();case g._import:return this.options.ecmaVersion>=11?this.parseExprImport(x):this.unexpected();default:return this.parseExprAtomDefault()}},Oe.parseExprAtomDefault=function(){this.unexpected()},Oe.parseExprImport=function(a){var c=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===g.parenL&&!a)return this.parseDynamicImport(c);if(this.type===g.dot){var x=this.startNodeAt(c.start,c.loc&&c.loc.start);return x.name="import",c.meta=this.finishNode(x,"Identifier"),this.parseImportMeta(c)}else this.unexpected()},Oe.parseDynamicImport=function(a){if(this.next(),a.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)this.eat(g.parenR)?a.options=null:(this.expect(g.comma),this.afterTrailingComma(g.parenR)?a.options=null:(a.options=this.parseMaybeAssign(),this.eat(g.parenR)||(this.expect(g.comma),this.afterTrailingComma(g.parenR)||this.unexpected())));else if(!this.eat(g.parenR)){var c=this.start;this.eat(g.comma)&&this.eat(g.parenR)?this.raiseRecoverable(c,"Trailing comma is not allowed in import()"):this.unexpected(c)}return this.finishNode(a,"ImportExpression")},Oe.parseImportMeta=function(a){this.next();var c=this.containsEsc;return a.property=this.parseIdent(!0),a.property.name!=="meta"&&this.raiseRecoverable(a.property.start,"The only valid meta property for import is 'import.meta'"),c&&this.raiseRecoverable(a.start,"'import.meta' must not contain escaped characters"),this.options.sourceType!=="module"&&!this.options.allowImportExportEverywhere&&this.raiseRecoverable(a.start,"Cannot use 'import.meta' outside a module"),this.finishNode(a,"MetaProperty")},Oe.parseLiteral=function(a){var c=this.startNode();return c.value=a,c.raw=this.input.slice(this.start,this.end),c.raw.charCodeAt(c.raw.length-1)===110&&(c.bigint=c.value!=null?c.value.toString():c.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(c,"Literal")},Oe.parseParenExpression=function(){this.expect(g.parenL);var a=this.parseExpression();return this.expect(g.parenR),a},Oe.shouldParseArrow=function(a){return!this.canInsertSemicolon()},Oe.parseParenAndDistinguishExpression=function(a,c){var x=this.start,w=this.startLoc,P,z=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var q=this.start,ce=this.startLoc,pe=[],Ne=!0,Fe=!1,Xe=new kt,st=this.yieldPos,ri=this.awaitPos,Ln;for(this.yieldPos=0,this.awaitPos=0;this.type!==g.parenR;)if(Ne?Ne=!1:this.expect(g.comma),z&&this.afterTrailingComma(g.parenR,!0)){Fe=!0;break}else if(this.type===g.ellipsis){Ln=this.start,pe.push(this.parseParenItem(this.parseRestBinding())),this.type===g.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}else pe.push(this.parseMaybeAssign(!1,Xe,this.parseParenItem));var Mi=this.lastTokEnd,Mn=this.lastTokEndLoc;if(this.expect(g.parenR),a&&this.shouldParseArrow(pe)&&this.eat(g.arrow))return this.checkPatternErrors(Xe,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=st,this.awaitPos=ri,this.parseParenArrowList(x,w,pe,c);(!pe.length||Fe)&&this.unexpected(this.lastTokStart),Ln&&this.unexpected(Ln),this.checkExpressionErrors(Xe,!0),this.yieldPos=st||this.yieldPos,this.awaitPos=ri||this.awaitPos,pe.length>1?(P=this.startNodeAt(q,ce),P.expressions=pe,this.finishNodeAt(P,"SequenceExpression",Mi,Mn)):P=pe[0]}else P=this.parseParenExpression();if(this.options.preserveParens){var Fn=this.startNodeAt(x,w);return Fn.expression=P,this.finishNode(Fn,"ParenthesizedExpression")}else return P},Oe.parseParenItem=function(a){return a},Oe.parseParenArrowList=function(a,c,x,w){return this.parseArrowExpression(this.startNodeAt(a,c),x,!1,w)};var zp=[];Oe.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var a=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===g.dot){var c=this.startNodeAt(a.start,a.loc&&a.loc.start);c.name="new",a.meta=this.finishNode(c,"Identifier"),this.next();var x=this.containsEsc;return a.property=this.parseIdent(!0),a.property.name!=="target"&&this.raiseRecoverable(a.property.start,"The only valid meta property for new is 'new.target'"),x&&this.raiseRecoverable(a.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(a.start,"'new.target' can only be used in functions and class static block"),this.finishNode(a,"MetaProperty")}var w=this.start,P=this.startLoc;return a.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),w,P,!0,!1),this.eat(g.parenL)?a.arguments=this.parseExprList(g.parenR,this.options.ecmaVersion>=8,!1):a.arguments=zp,this.finishNode(a,"NewExpression")},Oe.parseTemplateElement=function(a){var c=a.isTagged,x=this.startNode();return this.type===g.invalidTemplate?(c||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),x.value={raw:this.value.replace(/\r\n?/g,`
|
|
26
|
+
`),cooked:null}):x.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
|
|
27
|
+
`),cooked:this.value},this.next(),x.tail=this.type===g.backQuote,this.finishNode(x,"TemplateElement")},Oe.parseTemplate=function(a){a===void 0&&(a={});var c=a.isTagged;c===void 0&&(c=!1);var x=this.startNode();this.next(),x.expressions=[];var w=this.parseTemplateElement({isTagged:c});for(x.quasis=[w];!w.tail;)this.type===g.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(g.dollarBraceL),x.expressions.push(this.parseExpression()),this.expect(g.braceR),x.quasis.push(w=this.parseTemplateElement({isTagged:c}));return this.next(),this.finishNode(x,"TemplateLiteral")},Oe.isAsyncProp=function(a){return!a.computed&&a.key.type==="Identifier"&&a.key.name==="async"&&(this.type===g.name||this.type===g.num||this.type===g.string||this.type===g.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===g.star)&&!A.test(this.input.slice(this.lastTokEnd,this.start))},Oe.parseObj=function(a,c){var x=this.startNode(),w=!0,P={};for(x.properties=[],this.next();!this.eat(g.braceR);){if(w)w=!1;else if(this.expect(g.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(g.braceR))break;var z=this.parseProperty(a,c);a||this.checkPropClash(z,P,c),x.properties.push(z)}return this.finishNode(x,a?"ObjectPattern":"ObjectExpression")},Oe.parseProperty=function(a,c){var x=this.startNode(),w,P,z,q;if(this.options.ecmaVersion>=9&&this.eat(g.ellipsis))return a?(x.argument=this.parseIdent(!1),this.type===g.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(x,"RestElement")):(x.argument=this.parseMaybeAssign(!1,c),this.type===g.comma&&c&&c.trailingComma<0&&(c.trailingComma=this.start),this.finishNode(x,"SpreadElement"));this.options.ecmaVersion>=6&&(x.method=!1,x.shorthand=!1,(a||c)&&(z=this.start,q=this.startLoc),a||(w=this.eat(g.star)));var ce=this.containsEsc;return this.parsePropertyName(x),!a&&!ce&&this.options.ecmaVersion>=8&&!w&&this.isAsyncProp(x)?(P=!0,w=this.options.ecmaVersion>=9&&this.eat(g.star),this.parsePropertyName(x)):P=!1,this.parsePropertyValue(x,a,w,P,z,q,c,ce),this.finishNode(x,"Property")},Oe.parseGetterSetter=function(a){var c=a.key.name;this.parsePropertyName(a),a.value=this.parseMethod(!1),a.kind=c;var x=a.kind==="get"?0:1;if(a.value.params.length!==x){var w=a.value.start;a.kind==="get"?this.raiseRecoverable(w,"getter should have no params"):this.raiseRecoverable(w,"setter should have exactly one param")}else a.kind==="set"&&a.value.params[0].type==="RestElement"&&this.raiseRecoverable(a.value.params[0].start,"Setter cannot use rest params")},Oe.parsePropertyValue=function(a,c,x,w,P,z,q,ce){(x||w)&&this.type===g.colon&&this.unexpected(),this.eat(g.colon)?(a.value=c?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,q),a.kind="init"):this.options.ecmaVersion>=6&&this.type===g.parenL?(c&&this.unexpected(),a.method=!0,a.value=this.parseMethod(x,w),a.kind="init"):!c&&!ce&&this.options.ecmaVersion>=5&&!a.computed&&a.key.type==="Identifier"&&(a.key.name==="get"||a.key.name==="set")&&this.type!==g.comma&&this.type!==g.braceR&&this.type!==g.eq?((x||w)&&this.unexpected(),this.parseGetterSetter(a)):this.options.ecmaVersion>=6&&!a.computed&&a.key.type==="Identifier"?((x||w)&&this.unexpected(),this.checkUnreserved(a.key),a.key.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=P),c?a.value=this.parseMaybeDefault(P,z,this.copyNode(a.key)):this.type===g.eq&&q?(q.shorthandAssign<0&&(q.shorthandAssign=this.start),a.value=this.parseMaybeDefault(P,z,this.copyNode(a.key))):a.value=this.copyNode(a.key),a.kind="init",a.shorthand=!0):this.unexpected()},Oe.parsePropertyName=function(a){if(this.options.ecmaVersion>=6){if(this.eat(g.bracketL))return a.computed=!0,a.key=this.parseMaybeAssign(),this.expect(g.bracketR),a.key;a.computed=!1}return a.key=this.type===g.num||this.type===g.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")},Oe.initFunction=function(a){a.id=null,this.options.ecmaVersion>=6&&(a.generator=a.expression=!1),this.options.ecmaVersion>=8&&(a.async=!1)},Oe.parseMethod=function(a,c,x){var w=this.startNode(),P=this.yieldPos,z=this.awaitPos,q=this.awaitIdentPos;return this.initFunction(w),this.options.ecmaVersion>=6&&(w.generator=a),this.options.ecmaVersion>=8&&(w.async=!!c),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Pe(c,w.generator)|de|(x?Se:0)),this.expect(g.parenL),w.params=this.parseBindingList(g.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(w,!1,!0,!1),this.yieldPos=P,this.awaitPos=z,this.awaitIdentPos=q,this.finishNode(w,"FunctionExpression")},Oe.parseArrowExpression=function(a,c,x,w){var P=this.yieldPos,z=this.awaitPos,q=this.awaitIdentPos;return this.enterScope(Pe(x,!1)|Y),this.initFunction(a),this.options.ecmaVersion>=8&&(a.async=!!x),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,a.params=this.toAssignableList(c,!0),this.parseFunctionBody(a,!0,!1,w),this.yieldPos=P,this.awaitPos=z,this.awaitIdentPos=q,this.finishNode(a,"ArrowFunctionExpression")},Oe.parseFunctionBody=function(a,c,x,w){var P=c&&this.type!==g.braceL,z=this.strict,q=!1;if(P)a.body=this.parseMaybeAssign(w),a.expression=!0,this.checkParams(a,!1);else{var ce=this.options.ecmaVersion>=7&&!this.isSimpleParamList(a.params);(!z||ce)&&(q=this.strictDirective(this.end),q&&ce&&this.raiseRecoverable(a.start,"Illegal 'use strict' directive in function with non-simple parameter list"));var pe=this.labels;this.labels=[],q&&(this.strict=!0),this.checkParams(a,!z&&!q&&!c&&!x&&this.isSimpleParamList(a.params)),this.strict&&a.id&&this.checkLValSimple(a.id,re),a.body=this.parseBlock(!1,void 0,q&&!z),a.expression=!1,this.adaptDirectivePrologue(a.body.body),this.labels=pe}this.exitScope()},Oe.isSimpleParamList=function(a){for(var c=0,x=a;c<x.length;c+=1){var w=x[c];if(w.type!=="Identifier")return!1}return!0},Oe.checkParams=function(a,c){for(var x=Object.create(null),w=0,P=a.params;w<P.length;w+=1){var z=P[w];this.checkLValInnerPattern(z,$e,c?null:x)}},Oe.parseExprList=function(a,c,x,w){for(var P=[],z=!0;!this.eat(a);){if(z)z=!1;else if(this.expect(g.comma),c&&this.afterTrailingComma(a))break;var q=void 0;x&&this.type===g.comma?q=null:this.type===g.ellipsis?(q=this.parseSpread(w),w&&this.type===g.comma&&w.trailingComma<0&&(w.trailingComma=this.start)):q=this.parseMaybeAssign(!1,w),P.push(q)}return P},Oe.checkUnreserved=function(a){var c=a.start,x=a.end,w=a.name;if(this.inGenerator&&w==="yield"&&this.raiseRecoverable(c,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&w==="await"&&this.raiseRecoverable(c,"Cannot use 'await' as identifier inside an async function"),!(this.currentThisScope().flags&be)&&w==="arguments"&&this.raiseRecoverable(c,"Cannot use 'arguments' in class field initializer"),this.inClassStaticBlock&&(w==="arguments"||w==="await")&&this.raise(c,"Cannot use "+w+" in class static initialization block"),this.keywords.test(w)&&this.raise(c,"Unexpected keyword '"+w+"'"),!(this.options.ecmaVersion<6&&this.input.slice(c,x).indexOf("\\")!==-1)){var P=this.strict?this.reservedWordsStrict:this.reservedWords;P.test(w)&&(!this.inAsync&&w==="await"&&this.raiseRecoverable(c,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(c,"The keyword '"+w+"' is reserved"))}},Oe.parseIdent=function(a){var c=this.parseIdentNode();return this.next(!!a),this.finishNode(c,"Identifier"),a||(this.checkUnreserved(c),c.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=c.start)),c},Oe.parseIdentNode=function(){var a=this.startNode();return this.type===g.name?a.name=this.value:this.type.keyword?(a.name=this.type.keyword,(a.name==="class"||a.name==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46)&&this.context.pop(),this.type=g.name):this.unexpected(),a},Oe.parsePrivateIdent=function(){var a=this.startNode();return this.type===g.privateId?a.name=this.value:this.unexpected(),this.next(),this.finishNode(a,"PrivateIdentifier"),this.options.checkPrivateFields&&(this.privateNameStack.length===0?this.raise(a.start,"Private field '#"+a.name+"' must be declared in an enclosing class"):this.privateNameStack[this.privateNameStack.length-1].used.push(a)),a},Oe.parseYield=function(a){this.yieldPos||(this.yieldPos=this.start);var c=this.startNode();return this.next(),this.type===g.semi||this.canInsertSemicolon()||this.type!==g.star&&!this.type.startsExpr?(c.delegate=!1,c.argument=null):(c.delegate=this.eat(g.star),c.argument=this.parseMaybeAssign(a)),this.finishNode(c,"YieldExpression")},Oe.parseAwait=function(a){this.awaitPos||(this.awaitPos=this.start);var c=this.startNode();return this.next(),c.argument=this.parseMaybeUnary(null,!0,!1,a),this.finishNode(c,"AwaitExpression")};var Pi=T.prototype;Pi.raise=function(a,c){var x=he(this.input,a);c+=" ("+x.line+":"+x.column+")",this.sourceFile&&(c+=" in "+this.sourceFile);var w=new SyntaxError(c);throw w.pos=a,w.loc=x,w.raisedAt=this.pos,w},Pi.raiseRecoverable=Pi.raise,Pi.curPosition=function(){if(this.options.locations)return new ne(this.curLine,this.pos-this.lineStart)};var cn=T.prototype,Kp=function(c){this.flags=c,this.var=[],this.lexical=[],this.functions=[]};cn.enterScope=function(a){this.scopeStack.push(new Kp(a))},cn.exitScope=function(){this.scopeStack.pop()},cn.treatFunctionsAsVarInScope=function(a){return a.flags&ie||!this.inModule&&a.flags&J},cn.declareName=function(a,c,x){var w=!1;if(c===Te){var P=this.currentScope();w=P.lexical.indexOf(a)>-1||P.functions.indexOf(a)>-1||P.var.indexOf(a)>-1,P.lexical.push(a),this.inModule&&P.flags&J&&delete this.undefinedExports[a]}else if(c===Q){var z=this.currentScope();z.lexical.push(a)}else if(c===nt){var q=this.currentScope();this.treatFunctionsAsVar?w=q.lexical.indexOf(a)>-1:w=q.lexical.indexOf(a)>-1||q.var.indexOf(a)>-1,q.functions.push(a)}else for(var ce=this.scopeStack.length-1;ce>=0;--ce){var pe=this.scopeStack[ce];if(pe.lexical.indexOf(a)>-1&&!(pe.flags&le&&pe.lexical[0]===a)||!this.treatFunctionsAsVarInScope(pe)&&pe.functions.indexOf(a)>-1){w=!0;break}if(pe.var.push(a),this.inModule&&pe.flags&J&&delete this.undefinedExports[a],pe.flags&be)break}w&&this.raiseRecoverable(x,"Identifier '"+a+"' has already been declared")},cn.checkLocalExport=function(a){this.scopeStack[0].lexical.indexOf(a.name)===-1&&this.scopeStack[0].var.indexOf(a.name)===-1&&(this.undefinedExports[a.name]=a)},cn.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},cn.currentVarScope=function(){for(var a=this.scopeStack.length-1;;a--){var c=this.scopeStack[a];if(c.flags&(be|ke|ye))return c}},cn.currentThisScope=function(){for(var a=this.scopeStack.length-1;;a--){var c=this.scopeStack[a];if(c.flags&(be|ke|ye)&&!(c.flags&Y))return c}};var ni=function(c,x,w){this.type="",this.start=x,this.end=0,c.options.locations&&(this.loc=new O(c,w)),c.options.directSourceFile&&(this.sourceFile=c.options.directSourceFile),c.options.ranges&&(this.range=[x,0])},ii=T.prototype;ii.startNode=function(){return new ni(this,this.start,this.startLoc)},ii.startNodeAt=function(a,c){return new ni(this,a,c)};function po(a,c,x,w){return a.type=c,a.end=x,this.options.locations&&(a.loc.end=w),this.options.ranges&&(a.range[1]=x),a}ii.finishNode=function(a,c){return po.call(this,a,c,this.lastTokEnd,this.lastTokEndLoc)},ii.finishNodeAt=function(a,c,x,w){return po.call(this,a,c,x,w)},ii.copyNode=function(a){var c=new ni(this,a.start,this.startLoc);for(var x in a)c[x]=a[x];return c};var Up="Berf Beria_Erfe Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sidetic Sidt Sunu Sunuwar Tai_Yo Tayo Todhri Todr Tolong_Siki Tols Tulu_Tigalari Tutg Unknown Zzzz",go="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",mo=go+" Extended_Pictographic",xo=mo,vo=xo+" EBase EComp EMod EPres ExtPict",bo=vo,Hp=bo,$p={9:go,10:mo,11:xo,12:vo,13:bo,14:Hp},qp="Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji",Wp={9:"",10:"",11:"",12:"",13:"",14:qp},yo="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",wo="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",Eo=wo+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",So=Eo+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",ko=So+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",Co=ko+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",Gp=Co+" "+Up,Jp={9:wo,10:Eo,11:So,12:ko,13:Co,14:Gp},_o={};function Yp(a){var c=_o[a]={binary:ve($p[a]+" "+yo),binaryOfStrings:ve(Wp[a]),nonBinary:{General_Category:ve(yo),Script:ve(Jp[a])}};c.nonBinary.Script_Extensions=c.nonBinary.Script,c.nonBinary.gc=c.nonBinary.General_Category,c.nonBinary.sc=c.nonBinary.Script,c.nonBinary.scx=c.nonBinary.Script_Extensions}for(var qr=0,Io=[9,10,11,12,13,14];qr<Io.length;qr+=1){var Qp=Io[qr];Yp(Qp)}var we=T.prototype,Oi=function(c,x){this.parent=c,this.base=x||this};Oi.prototype.separatedFrom=function(c){for(var x=this;x;x=x.parent)for(var w=c;w;w=w.parent)if(x.base===w.base&&x!==w)return!0;return!1},Oi.prototype.sibling=function(){return new Oi(this.parent,this.base)};var Ut=function(c){this.parser=c,this.validFlags="gim"+(c.options.ecmaVersion>=6?"uy":"")+(c.options.ecmaVersion>=9?"s":"")+(c.options.ecmaVersion>=13?"d":"")+(c.options.ecmaVersion>=15?"v":""),this.unicodeProperties=_o[c.options.ecmaVersion>=14?14:c.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=Object.create(null),this.backReferenceNames=[],this.branchID=null};Ut.prototype.reset=function(c,x,w){var P=w.indexOf("v")!==-1,z=w.indexOf("u")!==-1;this.start=c|0,this.source=x+"",this.flags=w,P&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=z&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=z&&this.parser.options.ecmaVersion>=9)},Ut.prototype.raise=function(c){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+c)},Ut.prototype.at=function(c,x){x===void 0&&(x=!1);var w=this.source,P=w.length;if(c>=P)return-1;var z=w.charCodeAt(c);if(!(x||this.switchU)||z<=55295||z>=57344||c+1>=P)return z;var q=w.charCodeAt(c+1);return q>=56320&&q<=57343?(z<<10)+q-56613888:z},Ut.prototype.nextIndex=function(c,x){x===void 0&&(x=!1);var w=this.source,P=w.length;if(c>=P)return P;var z=w.charCodeAt(c),q;return!(x||this.switchU)||z<=55295||z>=57344||c+1>=P||(q=w.charCodeAt(c+1))<56320||q>57343?c+1:c+2},Ut.prototype.current=function(c){return c===void 0&&(c=!1),this.at(this.pos,c)},Ut.prototype.lookahead=function(c){return c===void 0&&(c=!1),this.at(this.nextIndex(this.pos,c),c)},Ut.prototype.advance=function(c){c===void 0&&(c=!1),this.pos=this.nextIndex(this.pos,c)},Ut.prototype.eat=function(c,x){return x===void 0&&(x=!1),this.current(x)===c?(this.advance(x),!0):!1},Ut.prototype.eatChars=function(c,x){x===void 0&&(x=!1);for(var w=this.pos,P=0,z=c;P<z.length;P+=1){var q=z[P],ce=this.at(w,x);if(ce===-1||ce!==q)return!1;w=this.nextIndex(w,x)}return this.pos=w,!0},we.validateRegExpFlags=function(a){for(var c=a.validFlags,x=a.flags,w=!1,P=!1,z=0;z<x.length;z++){var q=x.charAt(z);c.indexOf(q)===-1&&this.raise(a.start,"Invalid regular expression flag"),x.indexOf(q,z+1)>-1&&this.raise(a.start,"Duplicate regular expression flag"),q==="u"&&(w=!0),q==="v"&&(P=!0)}this.options.ecmaVersion>=15&&w&&P&&this.raise(a.start,"Invalid regular expression flag")};function Zp(a){for(var c in a)return!0;return!1}we.validateRegExpPattern=function(a){this.regexp_pattern(a),!a.switchN&&this.options.ecmaVersion>=9&&Zp(a.groupNames)&&(a.switchN=!0,this.regexp_pattern(a))},we.regexp_pattern=function(a){a.pos=0,a.lastIntValue=0,a.lastStringValue="",a.lastAssertionIsQuantifiable=!1,a.numCapturingParens=0,a.maxBackReference=0,a.groupNames=Object.create(null),a.backReferenceNames.length=0,a.branchID=null,this.regexp_disjunction(a),a.pos!==a.source.length&&(a.eat(41)&&a.raise("Unmatched ')'"),(a.eat(93)||a.eat(125))&&a.raise("Lone quantifier brackets")),a.maxBackReference>a.numCapturingParens&&a.raise("Invalid escape");for(var c=0,x=a.backReferenceNames;c<x.length;c+=1){var w=x[c];a.groupNames[w]||a.raise("Invalid named capture referenced")}},we.regexp_disjunction=function(a){var c=this.options.ecmaVersion>=16;for(c&&(a.branchID=new Oi(a.branchID,null)),this.regexp_alternative(a);a.eat(124);)c&&(a.branchID=a.branchID.sibling()),this.regexp_alternative(a);c&&(a.branchID=a.branchID.parent),this.regexp_eatQuantifier(a,!0)&&a.raise("Nothing to repeat"),a.eat(123)&&a.raise("Lone quantifier brackets")},we.regexp_alternative=function(a){for(;a.pos<a.source.length&&this.regexp_eatTerm(a););},we.regexp_eatTerm=function(a){return this.regexp_eatAssertion(a)?(a.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(a)&&a.switchU&&a.raise("Invalid quantifier"),!0):(a.switchU?this.regexp_eatAtom(a):this.regexp_eatExtendedAtom(a))?(this.regexp_eatQuantifier(a),!0):!1},we.regexp_eatAssertion=function(a){var c=a.pos;if(a.lastAssertionIsQuantifiable=!1,a.eat(94)||a.eat(36))return!0;if(a.eat(92)){if(a.eat(66)||a.eat(98))return!0;a.pos=c}if(a.eat(40)&&a.eat(63)){var x=!1;if(this.options.ecmaVersion>=9&&(x=a.eat(60)),a.eat(61)||a.eat(33))return this.regexp_disjunction(a),a.eat(41)||a.raise("Unterminated group"),a.lastAssertionIsQuantifiable=!x,!0}return a.pos=c,!1},we.regexp_eatQuantifier=function(a,c){return c===void 0&&(c=!1),this.regexp_eatQuantifierPrefix(a,c)?(a.eat(63),!0):!1},we.regexp_eatQuantifierPrefix=function(a,c){return a.eat(42)||a.eat(43)||a.eat(63)||this.regexp_eatBracedQuantifier(a,c)},we.regexp_eatBracedQuantifier=function(a,c){var x=a.pos;if(a.eat(123)){var w=0,P=-1;if(this.regexp_eatDecimalDigits(a)&&(w=a.lastIntValue,a.eat(44)&&this.regexp_eatDecimalDigits(a)&&(P=a.lastIntValue),a.eat(125)))return P!==-1&&P<w&&!c&&a.raise("numbers out of order in {} quantifier"),!0;a.switchU&&!c&&a.raise("Incomplete quantifier"),a.pos=x}return!1},we.regexp_eatAtom=function(a){return this.regexp_eatPatternCharacters(a)||a.eat(46)||this.regexp_eatReverseSolidusAtomEscape(a)||this.regexp_eatCharacterClass(a)||this.regexp_eatUncapturingGroup(a)||this.regexp_eatCapturingGroup(a)},we.regexp_eatReverseSolidusAtomEscape=function(a){var c=a.pos;if(a.eat(92)){if(this.regexp_eatAtomEscape(a))return!0;a.pos=c}return!1},we.regexp_eatUncapturingGroup=function(a){var c=a.pos;if(a.eat(40)){if(a.eat(63)){if(this.options.ecmaVersion>=16){var x=this.regexp_eatModifiers(a),w=a.eat(45);if(x||w){for(var P=0;P<x.length;P++){var z=x.charAt(P);x.indexOf(z,P+1)>-1&&a.raise("Duplicate regular expression modifiers")}if(w){var q=this.regexp_eatModifiers(a);!x&&!q&&a.current()===58&&a.raise("Invalid regular expression modifiers");for(var ce=0;ce<q.length;ce++){var pe=q.charAt(ce);(q.indexOf(pe,ce+1)>-1||x.indexOf(pe)>-1)&&a.raise("Duplicate regular expression modifiers")}}}}if(a.eat(58)){if(this.regexp_disjunction(a),a.eat(41))return!0;a.raise("Unterminated group")}}a.pos=c}return!1},we.regexp_eatCapturingGroup=function(a){if(a.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(a):a.current()===63&&a.raise("Invalid group"),this.regexp_disjunction(a),a.eat(41))return a.numCapturingParens+=1,!0;a.raise("Unterminated group")}return!1},we.regexp_eatModifiers=function(a){for(var c="",x=0;(x=a.current())!==-1&&Xp(x);)c+=L(x),a.advance();return c};function Xp(a){return a===105||a===109||a===115}we.regexp_eatExtendedAtom=function(a){return a.eat(46)||this.regexp_eatReverseSolidusAtomEscape(a)||this.regexp_eatCharacterClass(a)||this.regexp_eatUncapturingGroup(a)||this.regexp_eatCapturingGroup(a)||this.regexp_eatInvalidBracedQuantifier(a)||this.regexp_eatExtendedPatternCharacter(a)},we.regexp_eatInvalidBracedQuantifier=function(a){return this.regexp_eatBracedQuantifier(a,!0)&&a.raise("Nothing to repeat"),!1},we.regexp_eatSyntaxCharacter=function(a){var c=a.current();return Ao(c)?(a.lastIntValue=c,a.advance(),!0):!1};function Ao(a){return a===36||a>=40&&a<=43||a===46||a===63||a>=91&&a<=94||a>=123&&a<=125}we.regexp_eatPatternCharacters=function(a){for(var c=a.pos,x=0;(x=a.current())!==-1&&!Ao(x);)a.advance();return a.pos!==c},we.regexp_eatExtendedPatternCharacter=function(a){var c=a.current();return c!==-1&&c!==36&&!(c>=40&&c<=43)&&c!==46&&c!==63&&c!==91&&c!==94&&c!==124?(a.advance(),!0):!1},we.regexp_groupSpecifier=function(a){if(a.eat(63)){this.regexp_eatGroupName(a)||a.raise("Invalid group");var c=this.options.ecmaVersion>=16,x=a.groupNames[a.lastStringValue];if(x)if(c)for(var w=0,P=x;w<P.length;w+=1){var z=P[w];z.separatedFrom(a.branchID)||a.raise("Duplicate capture group name")}else a.raise("Duplicate capture group name");c?(x||(a.groupNames[a.lastStringValue]=[])).push(a.branchID):a.groupNames[a.lastStringValue]=!0}},we.regexp_eatGroupName=function(a){if(a.lastStringValue="",a.eat(60)){if(this.regexp_eatRegExpIdentifierName(a)&&a.eat(62))return!0;a.raise("Invalid capture group name")}return!1},we.regexp_eatRegExpIdentifierName=function(a){if(a.lastStringValue="",this.regexp_eatRegExpIdentifierStart(a)){for(a.lastStringValue+=L(a.lastIntValue);this.regexp_eatRegExpIdentifierPart(a);)a.lastStringValue+=L(a.lastIntValue);return!0}return!1},we.regexp_eatRegExpIdentifierStart=function(a){var c=a.pos,x=this.options.ecmaVersion>=11,w=a.current(x);return a.advance(x),w===92&&this.regexp_eatRegExpUnicodeEscapeSequence(a,x)&&(w=a.lastIntValue),ed(w)?(a.lastIntValue=w,!0):(a.pos=c,!1)};function ed(a){return b(a,!0)||a===36||a===95}we.regexp_eatRegExpIdentifierPart=function(a){var c=a.pos,x=this.options.ecmaVersion>=11,w=a.current(x);return a.advance(x),w===92&&this.regexp_eatRegExpUnicodeEscapeSequence(a,x)&&(w=a.lastIntValue),td(w)?(a.lastIntValue=w,!0):(a.pos=c,!1)};function td(a){return v(a,!0)||a===36||a===95||a===8204||a===8205}we.regexp_eatAtomEscape=function(a){return this.regexp_eatBackReference(a)||this.regexp_eatCharacterClassEscape(a)||this.regexp_eatCharacterEscape(a)||a.switchN&&this.regexp_eatKGroupName(a)?!0:(a.switchU&&(a.current()===99&&a.raise("Invalid unicode escape"),a.raise("Invalid escape")),!1)},we.regexp_eatBackReference=function(a){var c=a.pos;if(this.regexp_eatDecimalEscape(a)){var x=a.lastIntValue;if(a.switchU)return x>a.maxBackReference&&(a.maxBackReference=x),!0;if(x<=a.numCapturingParens)return!0;a.pos=c}return!1},we.regexp_eatKGroupName=function(a){if(a.eat(107)){if(this.regexp_eatGroupName(a))return a.backReferenceNames.push(a.lastStringValue),!0;a.raise("Invalid named reference")}return!1},we.regexp_eatCharacterEscape=function(a){return this.regexp_eatControlEscape(a)||this.regexp_eatCControlLetter(a)||this.regexp_eatZero(a)||this.regexp_eatHexEscapeSequence(a)||this.regexp_eatRegExpUnicodeEscapeSequence(a,!1)||!a.switchU&&this.regexp_eatLegacyOctalEscapeSequence(a)||this.regexp_eatIdentityEscape(a)},we.regexp_eatCControlLetter=function(a){var c=a.pos;if(a.eat(99)){if(this.regexp_eatControlLetter(a))return!0;a.pos=c}return!1},we.regexp_eatZero=function(a){return a.current()===48&&!Ri(a.lookahead())?(a.lastIntValue=0,a.advance(),!0):!1},we.regexp_eatControlEscape=function(a){var c=a.current();return c===116?(a.lastIntValue=9,a.advance(),!0):c===110?(a.lastIntValue=10,a.advance(),!0):c===118?(a.lastIntValue=11,a.advance(),!0):c===102?(a.lastIntValue=12,a.advance(),!0):c===114?(a.lastIntValue=13,a.advance(),!0):!1},we.regexp_eatControlLetter=function(a){var c=a.current();return To(c)?(a.lastIntValue=c%32,a.advance(),!0):!1};function To(a){return a>=65&&a<=90||a>=97&&a<=122}we.regexp_eatRegExpUnicodeEscapeSequence=function(a,c){c===void 0&&(c=!1);var x=a.pos,w=c||a.switchU;if(a.eat(117)){if(this.regexp_eatFixedHexDigits(a,4)){var P=a.lastIntValue;if(w&&P>=55296&&P<=56319){var z=a.pos;if(a.eat(92)&&a.eat(117)&&this.regexp_eatFixedHexDigits(a,4)){var q=a.lastIntValue;if(q>=56320&&q<=57343)return a.lastIntValue=(P-55296)*1024+(q-56320)+65536,!0}a.pos=z,a.lastIntValue=P}return!0}if(w&&a.eat(123)&&this.regexp_eatHexDigits(a)&&a.eat(125)&&nd(a.lastIntValue))return!0;w&&a.raise("Invalid unicode escape"),a.pos=x}return!1};function nd(a){return a>=0&&a<=1114111}we.regexp_eatIdentityEscape=function(a){if(a.switchU)return this.regexp_eatSyntaxCharacter(a)?!0:a.eat(47)?(a.lastIntValue=47,!0):!1;var c=a.current();return c!==99&&(!a.switchN||c!==107)?(a.lastIntValue=c,a.advance(),!0):!1},we.regexp_eatDecimalEscape=function(a){a.lastIntValue=0;var c=a.current();if(c>=49&&c<=57){do a.lastIntValue=10*a.lastIntValue+(c-48),a.advance();while((c=a.current())>=48&&c<=57);return!0}return!1};var No=0,Xt=1,At=2;we.regexp_eatCharacterClassEscape=function(a){var c=a.current();if(id(c))return a.lastIntValue=-1,a.advance(),Xt;var x=!1;if(a.switchU&&this.options.ecmaVersion>=9&&((x=c===80)||c===112)){a.lastIntValue=-1,a.advance();var w;if(a.eat(123)&&(w=this.regexp_eatUnicodePropertyValueExpression(a))&&a.eat(125))return x&&w===At&&a.raise("Invalid property name"),w;a.raise("Invalid property name")}return No};function id(a){return a===100||a===68||a===115||a===83||a===119||a===87}we.regexp_eatUnicodePropertyValueExpression=function(a){var c=a.pos;if(this.regexp_eatUnicodePropertyName(a)&&a.eat(61)){var x=a.lastStringValue;if(this.regexp_eatUnicodePropertyValue(a)){var w=a.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(a,x,w),Xt}}if(a.pos=c,this.regexp_eatLoneUnicodePropertyNameOrValue(a)){var P=a.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(a,P)}return No},we.regexp_validateUnicodePropertyNameAndValue=function(a,c,x){te(a.unicodeProperties.nonBinary,c)||a.raise("Invalid property name"),a.unicodeProperties.nonBinary[c].test(x)||a.raise("Invalid property value")},we.regexp_validateUnicodePropertyNameOrValue=function(a,c){if(a.unicodeProperties.binary.test(c))return Xt;if(a.switchV&&a.unicodeProperties.binaryOfStrings.test(c))return At;a.raise("Invalid property name")},we.regexp_eatUnicodePropertyName=function(a){var c=0;for(a.lastStringValue="";Po(c=a.current());)a.lastStringValue+=L(c),a.advance();return a.lastStringValue!==""};function Po(a){return To(a)||a===95}we.regexp_eatUnicodePropertyValue=function(a){var c=0;for(a.lastStringValue="";rd(c=a.current());)a.lastStringValue+=L(c),a.advance();return a.lastStringValue!==""};function rd(a){return Po(a)||Ri(a)}we.regexp_eatLoneUnicodePropertyNameOrValue=function(a){return this.regexp_eatUnicodePropertyValue(a)},we.regexp_eatCharacterClass=function(a){if(a.eat(91)){var c=a.eat(94),x=this.regexp_classContents(a);return a.eat(93)||a.raise("Unterminated character class"),c&&x===At&&a.raise("Negated character class may contain strings"),!0}return!1},we.regexp_classContents=function(a){return a.current()===93?Xt:a.switchV?this.regexp_classSetExpression(a):(this.regexp_nonEmptyClassRanges(a),Xt)},we.regexp_nonEmptyClassRanges=function(a){for(;this.regexp_eatClassAtom(a);){var c=a.lastIntValue;if(a.eat(45)&&this.regexp_eatClassAtom(a)){var x=a.lastIntValue;a.switchU&&(c===-1||x===-1)&&a.raise("Invalid character class"),c!==-1&&x!==-1&&c>x&&a.raise("Range out of order in character class")}}},we.regexp_eatClassAtom=function(a){var c=a.pos;if(a.eat(92)){if(this.regexp_eatClassEscape(a))return!0;if(a.switchU){var x=a.current();(x===99||Lo(x))&&a.raise("Invalid class escape"),a.raise("Invalid escape")}a.pos=c}var w=a.current();return w!==93?(a.lastIntValue=w,a.advance(),!0):!1},we.regexp_eatClassEscape=function(a){var c=a.pos;if(a.eat(98))return a.lastIntValue=8,!0;if(a.switchU&&a.eat(45))return a.lastIntValue=45,!0;if(!a.switchU&&a.eat(99)){if(this.regexp_eatClassControlLetter(a))return!0;a.pos=c}return this.regexp_eatCharacterClassEscape(a)||this.regexp_eatCharacterEscape(a)},we.regexp_classSetExpression=function(a){var c=Xt,x;if(!this.regexp_eatClassSetRange(a))if(x=this.regexp_eatClassSetOperand(a)){x===At&&(c=At);for(var w=a.pos;a.eatChars([38,38]);){if(a.current()!==38&&(x=this.regexp_eatClassSetOperand(a))){x!==At&&(c=Xt);continue}a.raise("Invalid character in character class")}if(w!==a.pos)return c;for(;a.eatChars([45,45]);)this.regexp_eatClassSetOperand(a)||a.raise("Invalid character in character class");if(w!==a.pos)return c}else a.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(a)){if(x=this.regexp_eatClassSetOperand(a),!x)return c;x===At&&(c=At)}},we.regexp_eatClassSetRange=function(a){var c=a.pos;if(this.regexp_eatClassSetCharacter(a)){var x=a.lastIntValue;if(a.eat(45)&&this.regexp_eatClassSetCharacter(a)){var w=a.lastIntValue;return x!==-1&&w!==-1&&x>w&&a.raise("Range out of order in character class"),!0}a.pos=c}return!1},we.regexp_eatClassSetOperand=function(a){return this.regexp_eatClassSetCharacter(a)?Xt:this.regexp_eatClassStringDisjunction(a)||this.regexp_eatNestedClass(a)},we.regexp_eatNestedClass=function(a){var c=a.pos;if(a.eat(91)){var x=a.eat(94),w=this.regexp_classContents(a);if(a.eat(93))return x&&w===At&&a.raise("Negated character class may contain strings"),w;a.pos=c}if(a.eat(92)){var P=this.regexp_eatCharacterClassEscape(a);if(P)return P;a.pos=c}return null},we.regexp_eatClassStringDisjunction=function(a){var c=a.pos;if(a.eatChars([92,113])){if(a.eat(123)){var x=this.regexp_classStringDisjunctionContents(a);if(a.eat(125))return x}else a.raise("Invalid escape");a.pos=c}return null},we.regexp_classStringDisjunctionContents=function(a){for(var c=this.regexp_classString(a);a.eat(124);)this.regexp_classString(a)===At&&(c=At);return c},we.regexp_classString=function(a){for(var c=0;this.regexp_eatClassSetCharacter(a);)c++;return c===1?Xt:At},we.regexp_eatClassSetCharacter=function(a){var c=a.pos;if(a.eat(92))return this.regexp_eatCharacterEscape(a)||this.regexp_eatClassSetReservedPunctuator(a)?!0:a.eat(98)?(a.lastIntValue=8,!0):(a.pos=c,!1);var x=a.current();return x<0||x===a.lookahead()&&ad(x)||sd(x)?!1:(a.advance(),a.lastIntValue=x,!0)};function ad(a){return a===33||a>=35&&a<=38||a>=42&&a<=44||a===46||a>=58&&a<=64||a===94||a===96||a===126}function sd(a){return a===40||a===41||a===45||a===47||a>=91&&a<=93||a>=123&&a<=125}we.regexp_eatClassSetReservedPunctuator=function(a){var c=a.current();return od(c)?(a.lastIntValue=c,a.advance(),!0):!1};function od(a){return a===33||a===35||a===37||a===38||a===44||a===45||a>=58&&a<=62||a===64||a===96||a===126}we.regexp_eatClassControlLetter=function(a){var c=a.current();return Ri(c)||c===95?(a.lastIntValue=c%32,a.advance(),!0):!1},we.regexp_eatHexEscapeSequence=function(a){var c=a.pos;if(a.eat(120)){if(this.regexp_eatFixedHexDigits(a,2))return!0;a.switchU&&a.raise("Invalid escape"),a.pos=c}return!1},we.regexp_eatDecimalDigits=function(a){var c=a.pos,x=0;for(a.lastIntValue=0;Ri(x=a.current());)a.lastIntValue=10*a.lastIntValue+(x-48),a.advance();return a.pos!==c};function Ri(a){return a>=48&&a<=57}we.regexp_eatHexDigits=function(a){var c=a.pos,x=0;for(a.lastIntValue=0;Oo(x=a.current());)a.lastIntValue=16*a.lastIntValue+Ro(x),a.advance();return a.pos!==c};function Oo(a){return a>=48&&a<=57||a>=65&&a<=70||a>=97&&a<=102}function Ro(a){return a>=65&&a<=70?10+(a-65):a>=97&&a<=102?10+(a-97):a-48}we.regexp_eatLegacyOctalEscapeSequence=function(a){if(this.regexp_eatOctalDigit(a)){var c=a.lastIntValue;if(this.regexp_eatOctalDigit(a)){var x=a.lastIntValue;c<=3&&this.regexp_eatOctalDigit(a)?a.lastIntValue=c*64+x*8+a.lastIntValue:a.lastIntValue=c*8+x}else a.lastIntValue=c;return!0}return!1},we.regexp_eatOctalDigit=function(a){var c=a.current();return Lo(c)?(a.lastIntValue=c-48,a.advance(),!0):(a.lastIntValue=0,!1)};function Lo(a){return a>=48&&a<=55}we.regexp_eatFixedHexDigits=function(a,c){var x=a.pos;a.lastIntValue=0;for(var w=0;w<c;++w){var P=a.current();if(!Oo(P))return a.pos=x,!1;a.lastIntValue=16*a.lastIntValue+Ro(P),a.advance()}return!0};var Li=function(c){this.type=c.type,this.value=c.value,this.start=c.start,this.end=c.end,c.options.locations&&(this.loc=new O(c,c.startLoc,c.endLoc)),c.options.ranges&&(this.range=[c.start,c.end])},De=T.prototype;De.next=function(a){!a&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new Li(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},De.getToken=function(){return this.next(),new Li(this)},typeof Symbol<"u"&&(De[Symbol.iterator]=function(){var a=this;return{next:function(){var c=a.getToken();return{done:c.type===g.eof,value:c}}}}),De.nextToken=function(){var a=this.curContext();if((!a||!a.preserveSpace)&&this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length)return this.finishToken(g.eof);if(a.override)return a.override(this);this.readToken(this.fullCharCodeAtPos())},De.readToken=function(a){return b(a,this.options.ecmaVersion>=6)||a===92?this.readWord():this.getTokenFromCode(a)},De.fullCharCodeAt=function(a){var c=this.input.charCodeAt(a);if(c<=55295||c>=56320)return c;var x=this.input.charCodeAt(a+1);return x<=56319||x>=57344?c:(c<<10)+x-56613888},De.fullCharCodeAtPos=function(){return this.fullCharCodeAt(this.pos)},De.skipBlockComment=function(){var a=this.options.onComment&&this.curPosition(),c=this.pos,x=this.input.indexOf("*/",this.pos+=2);if(x===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=x+2,this.options.locations)for(var w=void 0,P=c;(w=R(this.input,P,this.pos))>-1;)++this.curLine,P=this.lineStart=w;this.options.onComment&&this.options.onComment(!0,this.input.slice(c+2,x),c,this.pos,a,this.curPosition())},De.skipLineComment=function(a){for(var c=this.pos,x=this.options.onComment&&this.curPosition(),w=this.input.charCodeAt(this.pos+=a);this.pos<this.input.length&&!F(w);)w=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(c+a,this.pos),c,this.pos,x,this.curPosition())},De.skipSpace=function(){e:for(;this.pos<this.input.length;){var a=this.input.charCodeAt(this.pos);switch(a){case 32:case 160:++this.pos;break;case 13:this.input.charCodeAt(this.pos+1)===10&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break e}break;default:if(a>8&&a<14||a>=5760&&j.test(String.fromCharCode(a)))++this.pos;else break e}}},De.finishToken=function(a,c){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var x=this.type;this.type=a,this.value=c,this.updateContext(x)},De.readToken_dot=function(){var a=this.input.charCodeAt(this.pos+1);if(a>=48&&a<=57)return this.readNumber(!0);var c=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&a===46&&c===46?(this.pos+=3,this.finishToken(g.ellipsis)):(++this.pos,this.finishToken(g.dot))},De.readToken_slash=function(){var a=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):a===61?this.finishOp(g.assign,2):this.finishOp(g.slash,1)},De.readToken_mult_modulo_exp=function(a){var c=this.input.charCodeAt(this.pos+1),x=1,w=a===42?g.star:g.modulo;return this.options.ecmaVersion>=7&&a===42&&c===42&&(++x,w=g.starstar,c=this.input.charCodeAt(this.pos+2)),c===61?this.finishOp(g.assign,x+1):this.finishOp(w,x)},De.readToken_pipe_amp=function(a){var c=this.input.charCodeAt(this.pos+1);if(c===a){if(this.options.ecmaVersion>=12){var x=this.input.charCodeAt(this.pos+2);if(x===61)return this.finishOp(g.assign,3)}return this.finishOp(a===124?g.logicalOR:g.logicalAND,2)}return c===61?this.finishOp(g.assign,2):this.finishOp(a===124?g.bitwiseOR:g.bitwiseAND,1)},De.readToken_caret=function(){var a=this.input.charCodeAt(this.pos+1);return a===61?this.finishOp(g.assign,2):this.finishOp(g.bitwiseXOR,1)},De.readToken_plus_min=function(a){var c=this.input.charCodeAt(this.pos+1);return c===a?c===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||A.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(g.incDec,2):c===61?this.finishOp(g.assign,2):this.finishOp(g.plusMin,1)},De.readToken_lt_gt=function(a){var c=this.input.charCodeAt(this.pos+1),x=1;return c===a?(x=a===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+x)===61?this.finishOp(g.assign,x+1):this.finishOp(g.bitShift,x)):c===33&&a===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(c===61&&(x=2),this.finishOp(g.relational,x))},De.readToken_eq_excl=function(a){var c=this.input.charCodeAt(this.pos+1);return c===61?this.finishOp(g.equality,this.input.charCodeAt(this.pos+2)===61?3:2):a===61&&c===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(g.arrow)):this.finishOp(a===61?g.eq:g.prefix,1)},De.readToken_question=function(){var a=this.options.ecmaVersion;if(a>=11){var c=this.input.charCodeAt(this.pos+1);if(c===46){var x=this.input.charCodeAt(this.pos+2);if(x<48||x>57)return this.finishOp(g.questionDot,2)}if(c===63){if(a>=12){var w=this.input.charCodeAt(this.pos+2);if(w===61)return this.finishOp(g.assign,3)}return this.finishOp(g.coalesce,2)}}return this.finishOp(g.question,1)},De.readToken_numberSign=function(){var a=this.options.ecmaVersion,c=35;if(a>=13&&(++this.pos,c=this.fullCharCodeAtPos(),b(c,!0)||c===92))return this.finishToken(g.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+L(c)+"'")},De.getTokenFromCode=function(a){switch(a){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(g.parenL);case 41:return++this.pos,this.finishToken(g.parenR);case 59:return++this.pos,this.finishToken(g.semi);case 44:return++this.pos,this.finishToken(g.comma);case 91:return++this.pos,this.finishToken(g.bracketL);case 93:return++this.pos,this.finishToken(g.bracketR);case 123:return++this.pos,this.finishToken(g.braceL);case 125:return++this.pos,this.finishToken(g.braceR);case 58:return++this.pos,this.finishToken(g.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(g.backQuote);case 48:var c=this.input.charCodeAt(this.pos+1);if(c===120||c===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(c===111||c===79)return this.readRadixNumber(8);if(c===98||c===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(a);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(a);case 124:case 38:return this.readToken_pipe_amp(a);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(a);case 60:case 62:return this.readToken_lt_gt(a);case 61:case 33:return this.readToken_eq_excl(a);case 63:return this.readToken_question();case 126:return this.finishOp(g.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+L(a)+"'")},De.finishOp=function(a,c){var x=this.input.slice(this.pos,this.pos+c);return this.pos+=c,this.finishToken(a,x)},De.readRegexp=function(){for(var a,c,x=this.pos;;){this.pos>=this.input.length&&this.raise(x,"Unterminated regular expression");var w=this.input.charAt(this.pos);if(A.test(w)&&this.raise(x,"Unterminated regular expression"),a)a=!1;else{if(w==="[")c=!0;else if(w==="]"&&c)c=!1;else if(w==="/"&&!c)break;a=w==="\\"}++this.pos}var P=this.input.slice(x,this.pos);++this.pos;var z=this.pos,q=this.readWord1();this.containsEsc&&this.unexpected(z);var ce=this.regexpState||(this.regexpState=new Ut(this));ce.reset(x,P,q),this.validateRegExpFlags(ce),this.validateRegExpPattern(ce);var pe=null;try{pe=new RegExp(P,q)}catch{}return this.finishToken(g.regexp,{pattern:P,flags:q,value:pe})},De.readInt=function(a,c,x){for(var w=this.options.ecmaVersion>=12&&c===void 0,P=x&&this.input.charCodeAt(this.pos)===48,z=this.pos,q=0,ce=0,pe=0,Ne=c??1/0;pe<Ne;++pe,++this.pos){var Fe=this.input.charCodeAt(this.pos),Xe=void 0;if(w&&Fe===95){P&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),ce===95&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),pe===0&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),ce=Fe;continue}if(Fe>=97?Xe=Fe-97+10:Fe>=65?Xe=Fe-65+10:Fe>=48&&Fe<=57?Xe=Fe-48:Xe=1/0,Xe>=a)break;ce=Fe,q=q*a+Xe}return w&&ce===95&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===z||c!=null&&this.pos-z!==c?null:q};function ld(a,c){return c?parseInt(a,8):parseFloat(a.replace(/_/g,""))}function Mo(a){return typeof BigInt!="function"?null:BigInt(a.replace(/_/g,""))}De.readRadixNumber=function(a){var c=this.pos;this.pos+=2;var x=this.readInt(a);return x==null&&this.raise(this.start+2,"Expected number in radix "+a),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(x=Mo(this.input.slice(c,this.pos)),++this.pos):b(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(g.num,x)},De.readNumber=function(a){var c=this.pos;!a&&this.readInt(10,void 0,!0)===null&&this.raise(c,"Invalid number");var x=this.pos-c>=2&&this.input.charCodeAt(c)===48;x&&this.strict&&this.raise(c,"Invalid number");var w=this.input.charCodeAt(this.pos);if(!x&&!a&&this.options.ecmaVersion>=11&&w===110){var P=Mo(this.input.slice(c,this.pos));return++this.pos,b(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(g.num,P)}x&&/[89]/.test(this.input.slice(c,this.pos))&&(x=!1),w===46&&!x&&(++this.pos,this.readInt(10),w=this.input.charCodeAt(this.pos)),(w===69||w===101)&&!x&&(w=this.input.charCodeAt(++this.pos),(w===43||w===45)&&++this.pos,this.readInt(10)===null&&this.raise(c,"Invalid number")),b(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var z=ld(this.input.slice(c,this.pos),x);return this.finishToken(g.num,z)},De.readCodePoint=function(){var a=this.input.charCodeAt(this.pos),c;if(a===123){this.options.ecmaVersion<6&&this.unexpected();var x=++this.pos;c=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,c>1114111&&this.invalidStringToken(x,"Code point out of bounds")}else c=this.readHexChar(4);return c},De.readString=function(a){for(var c="",x=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var w=this.input.charCodeAt(this.pos);if(w===a)break;w===92?(c+=this.input.slice(x,this.pos),c+=this.readEscapedChar(!1),x=this.pos):w===8232||w===8233?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(F(w)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return c+=this.input.slice(x,this.pos++),this.finishToken(g.string,c)};var Fo={};De.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(a){if(a===Fo)this.readInvalidTemplateToken();else throw a}this.inTemplateElement=!1},De.invalidStringToken=function(a,c){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw Fo;this.raise(a,c)},De.readTmplToken=function(){for(var a="",c=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var x=this.input.charCodeAt(this.pos);if(x===96||x===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===g.template||this.type===g.invalidTemplate)?x===36?(this.pos+=2,this.finishToken(g.dollarBraceL)):(++this.pos,this.finishToken(g.backQuote)):(a+=this.input.slice(c,this.pos),this.finishToken(g.template,a));if(x===92)a+=this.input.slice(c,this.pos),a+=this.readEscapedChar(!0),c=this.pos;else if(F(x)){switch(a+=this.input.slice(c,this.pos),++this.pos,x){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:a+=`
|
|
28
|
+
`;break;default:a+=String.fromCharCode(x);break}this.options.locations&&(++this.curLine,this.lineStart=this.pos),c=this.pos}else++this.pos}},De.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if(this.input[this.pos+1]!=="{")break;case"`":return this.finishToken(g.invalidTemplate,this.input.slice(this.start,this.pos));case"\r":this.input[this.pos+1]===`
|
|
81
29
|
`&&++this.pos;case`
|
|
82
|
-
`:case"\u2028":case"\u2029":++this.curLine,this.lineStart=this.pos+1;break}this.raise(this.start,"Unterminated template")},
|
|
83
|
-
`;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return
|
|
30
|
+
`:case"\u2028":case"\u2029":++this.curLine,this.lineStart=this.pos+1;break}this.raise(this.start,"Unterminated template")},De.readEscapedChar=function(a){var c=this.input.charCodeAt(++this.pos);switch(++this.pos,c){case 110:return`
|
|
31
|
+
`;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return L(this.readCodePoint());case 116:return" ";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),a){var x=this.pos-1;this.invalidStringToken(x,"Invalid escape sequence in template string")}default:if(c>=48&&c<=55){var w=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],P=parseInt(w,8);return P>255&&(w=w.slice(0,-1),P=parseInt(w,8)),this.pos+=w.length-1,c=this.input.charCodeAt(this.pos),(w!=="0"||c===56||c===57)&&(this.strict||a)&&this.invalidStringToken(this.pos-1-w.length,a?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(P)}return F(c)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),""):String.fromCharCode(c)}},De.readHexChar=function(a){var c=this.pos,x=this.readInt(16,a);return x===null&&this.invalidStringToken(c,"Bad character escape sequence"),x},De.readWord1=function(){this.containsEsc=!1;for(var a="",c=!0,x=this.pos,w=this.options.ecmaVersion>=6;this.pos<this.input.length;){var P=this.fullCharCodeAtPos();if(v(P,w))this.pos+=P<=65535?1:2;else if(P===92){this.containsEsc=!0,a+=this.input.slice(x,this.pos);var z=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var q=this.readCodePoint();(c?b:v)(q,w)||this.invalidStringToken(z,"Invalid Unicode escape"),a+=L(q),x=this.pos}else break;c=!1}return a+this.input.slice(x,this.pos)},De.readWord=function(){var a=this.readWord1(),c=g.name;return this.keywords.test(a)&&(c=N[a]),this.finishToken(c,a)};var Do="8.16.0";T.acorn={Parser:T,version:Do,defaultOptions:W,Position:ne,SourceLocation:O,getLineInfo:he,Node:ni,TokenType:S,tokTypes:g,keywordTypes:N,TokContext:It,tokContexts:Ze,isIdentifierChar:v,isIdentifierStart:b,Token:Li,isNewLine:F,lineBreak:A,lineBreakG:M,nonASCIIwhitespace:j};function ud(a,c){return T.parse(a,c)}function cd(a,c,x){return T.parseExpressionAt(a,c,x)}function hd(a,c){return T.tokenizer(a,c)}n.Node=ni,n.Parser=T,n.Position=ne,n.SourceLocation=O,n.TokContext=It,n.Token=Li,n.TokenType=S,n.defaultOptions=W,n.getLineInfo=he,n.isIdentifierChar=v,n.isIdentifierStart=b,n.isNewLine=F,n.keywordTypes=N,n.lineBreak=A,n.lineBreakG=M,n.nonASCIIwhitespace=j,n.parse=ud,n.parseExpressionAt=cd,n.tokContexts=Ze,n.tokTypes=g,n.tokenizer=hd,n.version=Do}))})(li,li.exports)),li.exports}var hl;function wm(){return hl||(hl=1,(function(e){const t=bm(),n=/^[\da-fA-F]+$/,i=/^\d+$/,r=new WeakMap;function s(u){u=u.Parser.acorn||u;let f=r.get(u);if(!f){const p=u.tokTypes,h=u.TokContext,d=u.TokenType,m=new h("<tag",!1),b=new h("</tag",!1),v=new h("<tag>...</tag>",!0,!0),S={tc_oTag:m,tc_cTag:b,tc_expr:v},E={jsxName:new d("jsxName"),jsxText:new d("jsxText",{beforeExpr:!0}),jsxTagStart:new d("jsxTagStart",{startsExpr:!0}),jsxTagEnd:new d("jsxTagEnd")};E.jsxTagStart.updateContext=function(){this.context.push(v),this.context.push(m),this.exprAllowed=!1},E.jsxTagEnd.updateContext=function(k){let I=this.context.pop();I===m&&k===p.slash||I===b?(this.context.pop(),this.exprAllowed=this.curContext()===v):this.exprAllowed=!0},f={tokContexts:S,tokTypes:E},r.set(u,f)}return f}function o(u){if(!u)return u;if(u.type==="JSXIdentifier")return u.name;if(u.type==="JSXNamespacedName")return u.namespace.name+":"+u.name.name;if(u.type==="JSXMemberExpression")return o(u.object)+"."+o(u.property)}e.exports=function(u){return u=u||{},function(f){return l({allowNamespaces:u.allowNamespaces!==!1,allowNamespacedObjects:!!u.allowNamespacedObjects},f)}},Object.defineProperty(e.exports,"tokTypes",{get:function(){return s(cl()).tokTypes},configurable:!0,enumerable:!0});function l(u,f){const p=f.acorn||cl(),h=s(p),d=p.tokTypes,m=h.tokTypes,b=p.tokContexts,v=h.tokContexts.tc_oTag,S=h.tokContexts.tc_cTag,E=h.tokContexts.tc_expr,k=p.isNewLine,I=p.isIdentifierStart,N=p.isIdentifierChar;return class extends f{static get acornJsx(){return h}jsx_readToken(){let y="",g=this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated JSX contents");let A=this.input.charCodeAt(this.pos);switch(A){case 60:case 123:return this.pos===this.start?A===60&&this.exprAllowed?(++this.pos,this.finishToken(m.jsxTagStart)):this.getTokenFromCode(A):(y+=this.input.slice(g,this.pos),this.finishToken(m.jsxText,y));case 38:y+=this.input.slice(g,this.pos),y+=this.jsx_readEntity(),g=this.pos;break;case 62:case 125:this.raise(this.pos,"Unexpected token `"+this.input[this.pos]+"`. Did you mean `"+(A===62?">":"}")+'` or `{"'+this.input[this.pos]+'"}`?');default:k(A)?(y+=this.input.slice(g,this.pos),y+=this.jsx_readNewLine(!0),g=this.pos):++this.pos}}}jsx_readNewLine(y){let g=this.input.charCodeAt(this.pos),A;return++this.pos,g===13&&this.input.charCodeAt(this.pos)===10?(++this.pos,A=y?`
|
|
84
32
|
`:`\r
|
|
85
|
-
`):
|
|
86
|
-
`;break}case-3:{a=`\r
|
|
87
|
-
`;break}case-2:{a=" ";break}case-1:{if(i)continue;a=" ";break}default:a=String.fromCharCode(r)}i=r===-2,n.push(a)}return n.join("")}function la(e){const t=e||{},n=t.loc||{},i=t.range||[void 0,void 0],r=Kc(n.start,i[0]||t.start),a=Kc(n.end,i[1]||t.end);if(r&&a)return{start:r,end:a}}function Kc(e,t){if(e&&typeof e=="object"){const n="line"in e?As(e.line):void 0,i="column"in e?As(e.column):void 0;if(n&&i!==void 0)return{line:n,column:i+1,offset:As(t)}}}function As(e){return typeof e=="number"&&e>-1?e:void 0}const F1=2,Oi="https://github.com/micromark/micromark-extension-mdx-expression/tree/main/packages/micromark-extension-mdx-expression",j1="#unexpected-end-of-file-in-expression-expected-a-corresponding-closing-brace-for-",z1="#unexpected-lazy-line-in-expression-in-container-expected-line-to-be-prefixed",Wc="#unexpected-type-in-code-expected-an-object-spread-spread",V1="#unexpected-extra-content-in-spread-only-a-single-spread-is-supported",B1="#could-not-parse-expression-with-acorn";function Na(e,t,n,i,r,a,s,l,u,c,d){const p=this,g=this.events.length+3;let m=0,C,x;return w;function w(A){return e.enter(n),e.enter(i),e.consume(A),e.exit(i),C=p.now(),S}function S(A){if(A===null){if(x)throw x;const y=new Xe("Unexpected end of file in expression, expected a corresponding closing brace for `{`",{place:p.now(),ruleId:"unexpected-eof",source:"micromark-extension-mdx-expression"});throw y.url=Oi+j1,y}if(Oe(A))return e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),E;if(A===125&&m===0){const y=a?H1.call(p,a,s,r,g,C,c||!1,u||!1):{type:"ok",estree:void 0};if(y.type==="ok"){e.enter(i),e.consume(A),e.exit(i);const f=e.exit(n);return l&&y.estree&&Object.assign(f,{estree:y.estree}),t}return x=y.message,e.enter(r),e.consume(A),k}return e.enter(r),k(A)}function k(A){return A===125&&m===0||A===null||Oe(A)?(e.exit(r),S(A)):(A===123&&!a?m+=1:A===125&&(m-=1),e.consume(A),k)}function E(A){const y=p.now();if(y.line!==C.line&&!d&&p.parser.lazy[y.line]){const f=new Xe("Unexpected lazy line in expression in container, expected line to be prefixed with `>` when in a block quote, whitespace when in a list, etc",{place:p.now(),ruleId:"unexpected-lazy",source:"micromark-extension-mdx-expression"});throw f.url=Oi+z1,f}return ze(A)?Ke(e,S,"linePrefix",F1+1)(A):S(A)}}function H1(e,t,n,i,r,a,s){const l=Yf(this.events.slice(i),{acorn:e,tokenTypes:[n],acornOptions:t,start:r,expression:!0,allowEmpty:a,prefix:s?"({":"",suffix:s?"})":""}),u=l.estree;if(s&&u){const c=u.body[0];if(c.type!=="ExpressionStatement"||c.expression.type!=="ObjectExpression"){const d=la(c),p=new Xe("Unexpected `"+c.type+"` in code: expected an object spread (`{...spread}`)",{place:d.start,ruleId:"non-spread",source:"micromark-extension-mdx-expression"});throw p.url=Oi+Wc,p}if(c.expression.properties[1]){const d=la(c.expression.properties[1]),p=new Xe("Unexpected extra content in spread: only a single spread is supported",{place:d.start,ruleId:"spread-extra",source:"micromark-extension-mdx-expression"});throw p.url=Oi+V1,p}if(c.expression.properties[0]&&c.expression.properties[0].type!=="SpreadElement"){const d=la(c.expression.properties[0]),p=new Xe("Unexpected `"+c.expression.properties[0].type+"` in code: only spread elements are supported",{place:d.start,ruleId:"non-spread",source:"micromark-extension-mdx-expression"});throw p.url=Oi+Wc,p}}if(l.error){const c=new Xe("Could not parse expression with acorn",{cause:l.error,place:{line:l.error.loc.line,column:l.error.loc.column+1,offset:l.error.pos},ruleId:"acorn",source:"micromark-extension-mdx-expression"});return c.url=Oi+B1,{type:"nok",message:c}}return{type:"ok",estree:u}}function K1(e){const t=e||{},n=t.addResult,i=t.acorn,r=t.spread;let a=t.allowEmpty,s;if(a==null&&(a=!0),i){if(!i.parseExpressionAt)throw new Error("Expected a proper `acorn` instance passed in as `options.acorn`");s=Object.assign({ecmaVersion:2024,sourceType:"module"},t.acornOptions)}else if(t.acornOptions||t.addResult)throw new Error("Expected an `acorn` instance passed in as `options.acorn`");return{flow:{123:{name:"mdxFlowExpression",tokenize:l,concrete:!0}},text:{123:{name:"mdxTextExpression",tokenize:u}}};function l(c,d,p){const g=this;return m;function m(S){return C(S)}function C(S){return Na.call(g,c,x,"mdxFlowExpression","mdxFlowExpressionMarker","mdxFlowExpressionChunk",i,s,n,r,a)(S)}function x(S){return ze(S)?Ke(c,w,"whitespace")(S):w(S)}function w(S){const k=g.parser.constructs.flow[60],A=(Array.isArray(k)?k:k?[k]:[]).find(function(y){return y.name==="mdxJsxFlowTag"});return S===60&&A?c.attempt(A,w,p)(S):S===null||Oe(S)?d(S):p(S)}}function u(c,d){const p=this;return g;function g(m){return Na.call(p,c,d,"mdxTextExpression","mdxTextExpressionMarker","mdxTextExpressionChunk",i,s,n,r,a,!0)(m)}}}const W1=/[$_\p{ID_Start}]/u,U1=/[$_\u{200C}\u{200D}\p{ID_Continue}]/u,q1=/[-$_\u{200C}\u{200D}\p{ID_Continue}]/u,G1={};function en(e){return e?W1.test(String.fromCodePoint(e)):!1}function Ji(e,t){const i=(t||G1).jsx?q1:U1;return e?i.test(String.fromCodePoint(e)):!1}const Uc="https://github.com/micromark/micromark-extension-mdx-jsx";function Zf(e,t,n,i,r,a,s,l,u,c,d,p,g,m,C,x,w,S,k,E,A,y,f,T,R,F,D,q,J,K,j,ae){const Z=this;let se,ee;return pe;function pe(P){return e.enter(l),e.enter(u),e.consume(P),e.exit(u),I}function I(P){return Ge(P)?n(P):(se=V,Fe(P))}function V(P){if(P===47)return e.enter(c),e.consume(P),e.exit(c),se=te,Fe;if(P===62)return Me(P);if(P!==null&&P>=0&&en(P))return e.enter(p),e.enter(g),e.consume(P),O;re(P,"before name","a character that can start a name, such as a letter, `$`, or `_`"+(P===33?" (note: to create a comment in MDX, use `{/* text */}`)":""))}function te(P){if(P===62)return Me(P);if(P!==null&&P>=0&&en(P))return e.enter(p),e.enter(g),e.consume(P),O;re(P,"before name","a character that can start a name, such as a letter, `$`, or `_`"+(P===42||P===47?" (note: JS comments in JSX tags are not supported in MDX)":""))}function O(P){if(P!==null&&P>=0&&Ji(P,{jsx:!0}))return e.consume(P),O;if(P===46||P===47||P===58||P===62||P===123||Ge(P)||At(P))return e.exit(g),se=$,Fe(P);re(P,"in name","a name character such as letters, digits, `$`, or `_`; whitespace before attributes; or the end of the tag"+(P===64?" (note: to create a link in MDX, use `[text](url)`)":""))}function $(P){if(P===46)return e.enter(m),e.consume(P),e.exit(m),se=z,Fe;if(P===58)return e.enter(x),e.consume(P),e.exit(x),se=ie,Fe;if(P===47||P===62||P===123||P!==null&&P>=0&&en(P))return e.exit(p),ne(P);re(P,"after name","a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function z(P){if(P!==null&&P>=0&&en(P))return e.enter(C),e.consume(P),B;re(P,"before member name","a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function B(P){if(P!==null&&P>=0&&Ji(P,{jsx:!0}))return e.consume(P),B;if(P===46||P===47||P===62||P===123||Ge(P)||At(P))return e.exit(C),se=U,Fe(P);re(P,"in member name","a name character such as letters, digits, `$`, or `_`; whitespace before attributes; or the end of the tag"+(P===64?" (note: to create a link in MDX, use `[text](url)`)":""))}function U(P){if(P===46)return e.enter(m),e.consume(P),e.exit(m),se=z,Fe;if(P===47||P===62||P===123||P!==null&&P>=0&&en(P))return e.exit(p),ne(P);re(P,"after member name","a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function ie(P){if(P!==null&&P>=0&&en(P))return e.enter(w),e.consume(P),oe;re(P,"before local name","a character that can start a name, such as a letter, `$`, or `_`"+(P===43||P!==null&&P>46&&P<58?" (note: to create a link in MDX, use `[text](url)`)":""))}function oe(P){if(P!==null&&P>=0&&Ji(P,{jsx:!0}))return e.consume(P),oe;if(P===47||P===62||P===123||Ge(P)||At(P))return e.exit(w),se=G,Fe(P);re(P,"in local name","a name character such as letters, digits, `$`, or `_`; whitespace before attributes; or the end of the tag")}function G(P){if(P===47||P===62||P===123||P!==null&&P>=0&&en(P))return e.exit(p),ne(P);re(P,"after local name","a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function ne(P){if(P===47)return e.enter(d),e.consume(P),e.exit(d),se=$e,Fe;if(P===62)return Me(P);if(P===123)return Na.call(Z,e,H,S,k,E,i,r,a,!0,!1,s)(P);if(P!==null&&P>=0&&en(P))return e.enter(A),e.enter(y),e.enter(f),e.consume(P),de;re(P,"before attribute name","a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function H(P){return se=ne,Fe(P)}function de(P){if(P!==null&&P>=0&&Ji(P,{jsx:!0}))return e.consume(P),de;if(P===47||P===58||P===61||P===62||P===123||Ge(P)||At(P))return e.exit(f),se=X,Fe(P);re(P,"in attribute name","an attribute name character such as letters, digits, `$`, or `_`; `=` to initialize a value; whitespace before attributes; or the end of the tag")}function X(P){if(P===58)return e.enter(T),e.consume(P),e.exit(T),se=me,Fe;if(P===61)return e.exit(y),e.enter(F),e.consume(P),e.exit(F),se=ke,Fe;if(P===47||P===62||P===123||Ge(P)||At(P)||P!==null&&P>=0&&en(P))return e.exit(y),e.exit(A),se=ne,Fe(P);re(P,"after attribute name","a character that can start an attribute name, such as a letter, `$`, or `_`; `=` to initialize a value; or the end of the tag")}function me(P){if(P!==null&&P>=0&&en(P))return e.enter(R),e.consume(P),xe;re(P,"before local attribute name","a character that can start an attribute name, such as a letter, `$`, or `_`; `=` to initialize a value; or the end of the tag")}function xe(P){if(P!==null&&P>=0&&Ji(P,{jsx:!0}))return e.consume(P),xe;if(P===47||P===61||P===62||P===123||Ge(P)||At(P))return e.exit(R),e.exit(y),se=be,Fe(P);re(P,"in local attribute name","an attribute name character such as letters, digits, `$`, or `_`; `=` to initialize a value; whitespace before attributes; or the end of the tag")}function be(P){if(P===61)return e.enter(F),e.consume(P),e.exit(F),se=ke,Fe;if(P===47||P===62||P===123||P!==null&&P>=0&&en(P))return e.exit(A),ne(P);re(P,"after local attribute name","a character that can start an attribute name, such as a letter, `$`, or `_`; `=` to initialize a value; or the end of the tag")}function ke(P){if(P===34||P===39)return e.enter(D),e.enter(q),e.consume(P),e.exit(q),ee=P,Se;if(P===123)return Na.call(Z,e,Ee,K,j,ae,i,r,a,!1,!1,s)(P);re(P,"before attribute value","a character that can start an attribute value, such as `\"`, `'`, or `{`"+(P===60?" (note: to use an element or fragment as a prop value in MDX, use `{<element />}`)":""))}function Ee(P){return e.exit(A),se=ne,Fe(P)}function Se(P){return P===null&&re(P,"in attribute value","a corresponding closing quote `"+String.fromCodePoint(ee)+"`"),P===ee?(e.enter(q),e.consume(P),e.exit(q),e.exit(D),e.exit(A),ee=void 0,se=ne,Fe):Oe(P)?(se=Se,Fe(P)):(e.enter(J),Ve(P))}function Ve(P){return P===null||P===ee||Oe(P)?(e.exit(J),Se(P)):(e.consume(P),Ve)}function $e(P){if(P===62)return Me(P);re(P,"after self-closing slash","`>` to end the tag"+(P===42||P===47?" (note: JS comments in JSX tags are not supported in MDX)":""))}function Me(P){return e.enter(u),e.consume(P),e.exit(u),e.exit(l),t}function Fe(P){return Oe(P)?(e.enter("lineEnding"),e.consume(P),e.exit("lineEnding"),le):ze(P)||At(P)?(e.enter("esWhitespace"),xt(P)):se(P)}function xt(P){return Oe(P)?(e.exit("esWhitespace"),Fe(P)):ze(P)||At(P)?(e.consume(P),xt):(e.exit("esWhitespace"),se(P))}function le(P){if(!s&&Z.parser.lazy[Z.now().line]){const Ce=new Xe("Unexpected lazy line in container, expected line to be prefixed with `>` when in a block quote, whitespace when in a list, etc",Z.now(),"micromark-extension-mdx-jsx:unexpected-lazy");throw Ce.url=Uc+"#unexpected-lazy-line-in-container-expected-line-to-be",Ce}return Fe(P)}function re(P,Ce,Le){const ot=new Xe("Unexpected "+(P===null?"end of file":"character `"+(P===96?"` ` `":String.fromCodePoint(P))+"` ("+$1(P)+")")+" "+Ce+", expected "+Le,Z.now(),"micromark-extension-mdx-jsx:unexpected-"+(P===null?"eof":"character"));throw ot.url=Uc+(P===null?"#unexpected-end-of-file-at-expected-expect":"#unexpected-character-at-expected-expect"),ot}}function $1(e){return"U+"+e.toString(16).toUpperCase().padStart(4,"0")}function J1(e,t){return{name:"mdxJsxTextTag",tokenize:n};function n(i,r,a){return Zf.call(this,i,r,a,e,t.acornOptions,t.addResult,!0,"mdxJsxTextTag","mdxJsxTextTagMarker","mdxJsxTextTagClosingMarker","mdxJsxTextTagSelfClosingMarker","mdxJsxTextTagName","mdxJsxTextTagNamePrimary","mdxJsxTextTagNameMemberMarker","mdxJsxTextTagNameMember","mdxJsxTextTagNamePrefixMarker","mdxJsxTextTagNameLocal","mdxJsxTextTagExpressionAttribute","mdxJsxTextTagExpressionAttributeMarker","mdxJsxTextTagExpressionAttributeValue","mdxJsxTextTagAttribute","mdxJsxTextTagAttributeName","mdxJsxTextTagAttributeNamePrimary","mdxJsxTextTagAttributeNamePrefixMarker","mdxJsxTextTagAttributeNameLocal","mdxJsxTextTagAttributeInitializerMarker","mdxJsxTextTagAttributeValueLiteral","mdxJsxTextTagAttributeValueLiteralMarker","mdxJsxTextTagAttributeValueLiteralValue","mdxJsxTextTagAttributeValueExpression","mdxJsxTextTagAttributeValueExpressionMarker","mdxJsxTextTagAttributeValueExpressionValue")}}function Y1(e,t){return{concrete:!0,name:"mdxJsxFlowTag",tokenize:n};function n(i,r,a){const s=this;return l;function l(p){return u(p)}function u(p){return Zf.call(s,i,c,a,e,t.acornOptions,t.addResult,!1,"mdxJsxFlowTag","mdxJsxFlowTagMarker","mdxJsxFlowTagClosingMarker","mdxJsxFlowTagSelfClosingMarker","mdxJsxFlowTagName","mdxJsxFlowTagNamePrimary","mdxJsxFlowTagNameMemberMarker","mdxJsxFlowTagNameMember","mdxJsxFlowTagNamePrefixMarker","mdxJsxFlowTagNameLocal","mdxJsxFlowTagExpressionAttribute","mdxJsxFlowTagExpressionAttributeMarker","mdxJsxFlowTagExpressionAttributeValue","mdxJsxFlowTagAttribute","mdxJsxFlowTagAttributeName","mdxJsxFlowTagAttributeNamePrimary","mdxJsxFlowTagAttributeNamePrefixMarker","mdxJsxFlowTagAttributeNameLocal","mdxJsxFlowTagAttributeInitializerMarker","mdxJsxFlowTagAttributeValueLiteral","mdxJsxFlowTagAttributeValueLiteralMarker","mdxJsxFlowTagAttributeValueLiteralValue","mdxJsxFlowTagAttributeValueExpression","mdxJsxFlowTagAttributeValueExpressionMarker","mdxJsxFlowTagAttributeValueExpressionValue")(p)}function c(p){return ze(p)?Ke(i,d,"whitespace")(p):d(p)}function d(p){const g=s.parser.constructs.flow[123],m=Array.isArray(g)?g:g?[g]:[];let C;for(const x of m)if(x.name==="mdxFlowExpression"){C=x;break}return p===60?l(p):p===123&&C?i.attempt(C,d,a)(p):p===null||Oe(p)?r(p):a(p)}}}function Z1(e){const t=e||{},n=t.acorn;let i;if(n){if(!n.parse||!n.parseExpressionAt)throw new Error("Expected a proper `acorn` instance passed in as `options.acorn`");i=Object.assign({ecmaVersion:2024,sourceType:"module"},t.acornOptions,{locations:!0})}else if(t.acornOptions||t.addResult)throw new Error("Expected an `acorn` instance passed in as `options.acorn`");return{flow:{60:Y1(n||void 0,{acornOptions:i,addResult:t.addResult||void 0})},text:{60:J1(n||void 0,{acornOptions:i,addResult:t.addResult||void 0})}}}function X1(){return{disable:{null:["autolink","codeIndented","htmlFlow","htmlText"]}}}function Kt(e,t,n,i){const r=e.length;let a=0,s;if(t<0?t=-t>r?0:r+t:t=t>r?r:t,n=n>0?n:0,i.length<1e4)s=Array.from(i),s.unshift(t,n),e.splice(...s);else for(n&&e.splice(t,n);a<i.length;)s=i.slice(a,a+1e4),s.unshift(t,0),e.splice(...s),a+=1e4,t+=1e4}function Yt(e,t){return e.length>0?(Kt(e,e.length,0,t),e):t}function Di(e){if(e===null||Ge(e)||At(e))return 1;if(Ya(e))return 2}function Za(e,t,n){const i=[];let r=-1;for(;++r<e.length;){const a=e[r].resolveAll;a&&!i.includes(a)&&(t=a(t,n),i.push(a))}return t}const xo={name:"attention",resolveAll:Q1,tokenize:ek};function Q1(e,t){let n=-1,i,r,a,s,l,u,c,d;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(i=n;i--;)if(e[i][0]==="exit"&&e[i][1].type==="attentionSequence"&&e[i][1]._open&&t.sliceSerialize(e[i][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[i][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[i][1].end.offset-e[i][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;u=e[i][1].end.offset-e[i][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const p={...e[i][1].end},g={...e[n][1].start};qc(p,-u),qc(g,u),s={type:u>1?"strongSequence":"emphasisSequence",start:p,end:{...e[i][1].end}},l={type:u>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:g},a={type:u>1?"strongText":"emphasisText",start:{...e[i][1].end},end:{...e[n][1].start}},r={type:u>1?"strong":"emphasis",start:{...s.start},end:{...l.end}},e[i][1].end={...s.start},e[n][1].start={...l.end},c=[],e[i][1].end.offset-e[i][1].start.offset&&(c=Yt(c,[["enter",e[i][1],t],["exit",e[i][1],t]])),c=Yt(c,[["enter",r,t],["enter",s,t],["exit",s,t],["enter",a,t]]),c=Yt(c,Za(t.parser.constructs.insideSpan.null,e.slice(i+1,n),t)),c=Yt(c,[["exit",a,t],["enter",l,t],["exit",l,t],["exit",r,t]]),e[n][1].end.offset-e[n][1].start.offset?(d=2,c=Yt(c,[["enter",e[n][1],t],["exit",e[n][1],t]])):d=0,Kt(e,i-1,n-i+3,c),n=i+c.length-d-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function ek(e,t){const n=this.parser.constructs.attentionMarkers.null,i=this.previous,r=Di(i);let a;return s;function s(u){return a=u,e.enter("attentionSequence"),l(u)}function l(u){if(u===a)return e.consume(u),l;const c=e.exit("attentionSequence"),d=Di(u),p=!d||d===2&&r||n.includes(u),g=!r||r===2&&d||n.includes(i);return c._open=!!(a===42?p:p&&(r||!g)),c._close=!!(a===42?g:g&&(d||!p)),t(u)}}function qc(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const tk={name:"autolink",tokenize:nk};function nk(e,t,n){let i=0;return r;function r(m){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(m),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a}function a(m){return Et(m)?(e.consume(m),s):m===64?n(m):c(m)}function s(m){return m===43||m===45||m===46||jt(m)?(i=1,l(m)):c(m)}function l(m){return m===58?(e.consume(m),i=0,u):(m===43||m===45||m===46||jt(m))&&i++<32?(e.consume(m),l):(i=0,c(m))}function u(m){return m===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(m),e.exit("autolinkMarker"),e.exit("autolink"),t):m===null||m===32||m===60||Aa(m)?n(m):(e.consume(m),u)}function c(m){return m===64?(e.consume(m),d):_1(m)?(e.consume(m),c):n(m)}function d(m){return jt(m)?p(m):n(m)}function p(m){return m===46?(e.consume(m),i=0,d):m===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(m),e.exit("autolinkMarker"),e.exit("autolink"),t):g(m)}function g(m){if((m===45||jt(m))&&i++<63){const C=m===45?g:p;return e.consume(m),C}return n(m)}}const Wi={partial:!0,tokenize:ik};function ik(e,t,n){return i;function i(a){return ze(a)?Ke(e,r,"linePrefix")(a):r(a)}function r(a){return a===null||Oe(a)?t(a):n(a)}}const Xf={continuation:{tokenize:ak},exit:sk,name:"blockQuote",tokenize:rk};function rk(e,t,n){const i=this;return r;function r(s){if(s===62){const l=i.containerState;return l.open||(e.enter("blockQuote",{_container:!0}),l.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(s),e.exit("blockQuoteMarker"),a}return n(s)}function a(s){return ze(s)?(e.enter("blockQuotePrefixWhitespace"),e.consume(s),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(s))}}function ak(e,t,n){const i=this;return r;function r(s){return ze(s)?Ke(e,a,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):a(s)}function a(s){return e.attempt(Xf,t,n)(s)}}function sk(e){e.exit("blockQuote")}const Qf={name:"characterEscape",tokenize:ok};function ok(e,t,n){return i;function i(a){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(a),e.exit("escapeMarker"),r}function r(a){return N1(a)?(e.enter("characterEscapeValue"),e.consume(a),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(a)}}const eg={name:"characterReference",tokenize:lk};function lk(e,t,n){const i=this;let r=0,a,s;return l;function l(p){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(p),e.exit("characterReferenceMarker"),u}function u(p){return p===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(p),e.exit("characterReferenceMarkerNumeric"),c):(e.enter("characterReferenceValue"),a=31,s=jt,d(p))}function c(p){return p===88||p===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(p),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,s=A1,d):(e.enter("characterReferenceValue"),a=7,s=vo,d(p))}function d(p){if(p===59&&r){const g=e.exit("characterReferenceValue");return s===jt&&!ur(i.sliceSerialize(g))?n(p):(e.enter("characterReferenceMarker"),e.consume(p),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return s(p)&&r++<a?(e.consume(p),d):n(p)}}const Gc={partial:!0,tokenize:ck},$c={concrete:!0,name:"codeFenced",tokenize:uk};function uk(e,t,n){const i=this,r={partial:!0,tokenize:y};let a=0,s=0,l;return u;function u(f){return c(f)}function c(f){const T=i.events[i.events.length-1];return a=T&&T[1].type==="linePrefix"?T[2].sliceSerialize(T[1],!0).length:0,l=f,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),d(f)}function d(f){return f===l?(s++,e.consume(f),d):s<3?n(f):(e.exit("codeFencedFenceSequence"),ze(f)?Ke(e,p,"whitespace")(f):p(f))}function p(f){return f===null||Oe(f)?(e.exit("codeFencedFence"),i.interrupt?t(f):e.check(Gc,x,A)(f)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),g(f))}function g(f){return f===null||Oe(f)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),p(f)):ze(f)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Ke(e,m,"whitespace")(f)):f===96&&f===l?n(f):(e.consume(f),g)}function m(f){return f===null||Oe(f)?p(f):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),C(f))}function C(f){return f===null||Oe(f)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),p(f)):f===96&&f===l?n(f):(e.consume(f),C)}function x(f){return e.attempt(r,A,w)(f)}function w(f){return e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),S}function S(f){return a>0&&ze(f)?Ke(e,k,"linePrefix",a+1)(f):k(f)}function k(f){return f===null||Oe(f)?e.check(Gc,x,A)(f):(e.enter("codeFlowValue"),E(f))}function E(f){return f===null||Oe(f)?(e.exit("codeFlowValue"),k(f)):(e.consume(f),E)}function A(f){return e.exit("codeFenced"),t(f)}function y(f,T,R){let F=0;return D;function D(ae){return f.enter("lineEnding"),f.consume(ae),f.exit("lineEnding"),q}function q(ae){return f.enter("codeFencedFence"),ze(ae)?Ke(f,J,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(ae):J(ae)}function J(ae){return ae===l?(f.enter("codeFencedFenceSequence"),K(ae)):R(ae)}function K(ae){return ae===l?(F++,f.consume(ae),K):F>=s?(f.exit("codeFencedFenceSequence"),ze(ae)?Ke(f,j,"whitespace")(ae):j(ae)):R(ae)}function j(ae){return ae===null||Oe(ae)?(f.exit("codeFencedFence"),T(ae)):R(ae)}}}function ck(e,t,n){const i=this;return r;function r(s){return s===null?n(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a)}function a(s){return i.parser.lazy[i.now().line]?n(s):t(s)}}const Ns={name:"codeIndented",tokenize:dk},hk={partial:!0,tokenize:pk};function dk(e,t,n){const i=this;return r;function r(c){return e.enter("codeIndented"),Ke(e,a,"linePrefix",5)(c)}function a(c){const d=i.events[i.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?s(c):n(c)}function s(c){return c===null?u(c):Oe(c)?e.attempt(hk,s,u)(c):(e.enter("codeFlowValue"),l(c))}function l(c){return c===null||Oe(c)?(e.exit("codeFlowValue"),s(c)):(e.consume(c),l)}function u(c){return e.exit("codeIndented"),t(c)}}function pk(e,t,n){const i=this;return r;function r(s){return i.parser.lazy[i.now().line]?n(s):Oe(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),r):Ke(e,a,"linePrefix",5)(s)}function a(s){const l=i.events[i.events.length-1];return l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?t(s):Oe(s)?r(s):n(s)}}const fk={name:"codeText",previous:mk,resolve:gk,tokenize:vk};function gk(e){let t=e.length-4,n=3,i,r;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(i=n;++i<t;)if(e[i][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(i=n-1,t++;++i<=t;)r===void 0?i!==t&&e[i][1].type!=="lineEnding"&&(r=i):(i===t||e[i][1].type==="lineEnding")&&(e[r][1].type="codeTextData",i!==r+2&&(e[r][1].end=e[i-1][1].end,e.splice(r+2,i-r-2),t-=i-r-2,i=r+2),r=void 0);return e}function mk(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function vk(e,t,n){let i=0,r,a;return s;function s(p){return e.enter("codeText"),e.enter("codeTextSequence"),l(p)}function l(p){return p===96?(e.consume(p),i++,l):(e.exit("codeTextSequence"),u(p))}function u(p){return p===null?n(p):p===32?(e.enter("space"),e.consume(p),e.exit("space"),u):p===96?(a=e.enter("codeTextSequence"),r=0,d(p)):Oe(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),u):(e.enter("codeTextData"),c(p))}function c(p){return p===null||p===32||p===96||Oe(p)?(e.exit("codeTextData"),u(p)):(e.consume(p),c)}function d(p){return p===96?(e.consume(p),r++,d):r===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(p)):(a.type="codeTextData",c(p))}}class xk{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const i=n??Number.POSITIVE_INFINITY;return i<this.left.length?this.left.slice(t,i):t>this.left.length?this.right.slice(this.right.length-i+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-i+this.left.length).reverse())}splice(t,n,i){const r=n||0;this.setCursor(Math.trunc(t));const a=this.right.splice(this.right.length-r,Number.POSITIVE_INFINITY);return i&&Yi(this.left,i),a.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Yi(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Yi(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);Yi(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Yi(this.left,n.reverse())}}}function Yi(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function tg(e){const t={};let n=-1,i,r,a,s,l,u,c;const d=new xk(e);for(;++n<d.length;){for(;n in t;)n=t[n];if(i=d.get(n),n&&i[1].type==="chunkFlow"&&d.get(n-1)[1].type==="listItemPrefix"&&(u=i[1]._tokenizer.events,a=0,a<u.length&&u[a][1].type==="lineEndingBlank"&&(a+=2),a<u.length&&u[a][1].type==="content"))for(;++a<u.length&&u[a][1].type!=="content";)u[a][1].type==="chunkText"&&(u[a][1]._isInFirstContentOfListItem=!0,a++);if(i[0]==="enter")i[1].contentType&&(Object.assign(t,bk(d,n)),n=t[n],c=!0);else if(i[1]._container){for(a=n,r=void 0;a--;)if(s=d.get(a),s[1].type==="lineEnding"||s[1].type==="lineEndingBlank")s[0]==="enter"&&(r&&(d.get(r)[1].type="lineEndingBlank"),s[1].type="lineEnding",r=a);else if(!(s[1].type==="linePrefix"||s[1].type==="listItemIndent"))break;r&&(i[1].end={...d.get(r)[1].start},l=d.slice(r,n),l.unshift(i),d.splice(r,n-r+1,l))}}return Kt(e,0,Number.POSITIVE_INFINITY,d.slice(0)),!c}function bk(e,t){const n=e.get(t)[1],i=e.get(t)[2];let r=t-1;const a=[];let s=n._tokenizer;s||(s=i.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(s._contentTypeTextTrailing=!0));const l=s.events,u=[],c={};let d,p,g=-1,m=n,C=0,x=0;const w=[x];for(;m;){for(;e.get(++r)[1]!==m;);a.push(r),m._tokenizer||(d=i.sliceStream(m),m.next||d.push(null),p&&s.defineSkip(m.start),m._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(d),m._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),p=m,m=m.next}for(m=n;++g<l.length;)l[g][0]==="exit"&&l[g-1][0]==="enter"&&l[g][1].type===l[g-1][1].type&&l[g][1].start.line!==l[g][1].end.line&&(x=g+1,w.push(x),m._tokenizer=void 0,m.previous=void 0,m=m.next);for(s.events=[],m?(m._tokenizer=void 0,m.previous=void 0):w.pop(),g=w.length;g--;){const S=l.slice(w[g],w[g+1]),k=a.pop();u.push([k,k+S.length-1]),e.splice(k,2,S)}for(u.reverse(),g=-1;++g<u.length;)c[C+u[g][0]]=C+u[g][1],C+=u[g][1]-u[g][0]-1;return c}const yk={resolve:kk,tokenize:Sk},wk={partial:!0,tokenize:Ek};function kk(e){return tg(e),e}function Sk(e,t){let n;return i;function i(l){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(l)}function r(l){return l===null?a(l):Oe(l)?e.check(wk,s,a)(l):(e.consume(l),r)}function a(l){return e.exit("chunkContent"),e.exit("content"),t(l)}function s(l){return e.consume(l),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}function Ek(e,t,n){const i=this;return r;function r(s){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),Ke(e,a,"linePrefix")}function a(s){if(s===null||Oe(s))return n(s);const l=i.events[i.events.length-1];return!i.parser.constructs.disable.null.includes("codeIndented")&&l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?t(s):e.interrupt(i.parser.constructs.flow,n,t)(s)}}function ng(e,t,n,i,r,a,s,l,u){const c=u||Number.POSITIVE_INFINITY;let d=0;return p;function p(S){return S===60?(e.enter(i),e.enter(r),e.enter(a),e.consume(S),e.exit(a),g):S===null||S===32||S===41||Aa(S)?n(S):(e.enter(i),e.enter(s),e.enter(l),e.enter("chunkString",{contentType:"string"}),x(S))}function g(S){return S===62?(e.enter(a),e.consume(S),e.exit(a),e.exit(r),e.exit(i),t):(e.enter(l),e.enter("chunkString",{contentType:"string"}),m(S))}function m(S){return S===62?(e.exit("chunkString"),e.exit(l),g(S)):S===null||S===60||Oe(S)?n(S):(e.consume(S),S===92?C:m)}function C(S){return S===60||S===62||S===92?(e.consume(S),m):m(S)}function x(S){return!d&&(S===null||S===41||Ge(S))?(e.exit("chunkString"),e.exit(l),e.exit(s),e.exit(i),t(S)):d<c&&S===40?(e.consume(S),d++,x):S===41?(e.consume(S),d--,x):S===null||S===32||S===40||Aa(S)?n(S):(e.consume(S),S===92?w:x)}function w(S){return S===40||S===41||S===92?(e.consume(S),x):x(S)}}function ig(e,t,n,i,r,a){const s=this;let l=0,u;return c;function c(m){return e.enter(i),e.enter(r),e.consume(m),e.exit(r),e.enter(a),d}function d(m){return l>999||m===null||m===91||m===93&&!u||m===94&&!l&&"_hiddenFootnoteSupport"in s.parser.constructs?n(m):m===93?(e.exit(a),e.enter(r),e.consume(m),e.exit(r),e.exit(i),t):Oe(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),d):(e.enter("chunkString",{contentType:"string"}),p(m))}function p(m){return m===null||m===91||m===93||Oe(m)||l++>999?(e.exit("chunkString"),d(m)):(e.consume(m),u||(u=!ze(m)),m===92?g:p)}function g(m){return m===91||m===92||m===93?(e.consume(m),l++,p):p(m)}}function rg(e,t,n,i,r,a){let s;return l;function l(g){return g===34||g===39||g===40?(e.enter(i),e.enter(r),e.consume(g),e.exit(r),s=g===40?41:g,u):n(g)}function u(g){return g===s?(e.enter(r),e.consume(g),e.exit(r),e.exit(i),t):(e.enter(a),c(g))}function c(g){return g===s?(e.exit(a),u(s)):g===null?n(g):Oe(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),Ke(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),d(g))}function d(g){return g===s||g===null||Oe(g)?(e.exit("chunkString"),c(g)):(e.consume(g),g===92?p:d)}function p(g){return g===s||g===92?(e.consume(g),d):d(g)}}function nr(e,t){let n;return i;function i(r){return Oe(r)?(e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),n=!0,i):ze(r)?Ke(e,i,n?"linePrefix":"lineSuffix")(r):t(r)}}function sn(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Ck={name:"definition",tokenize:_k},Ik={partial:!0,tokenize:Ak};function _k(e,t,n){const i=this;let r;return a;function a(m){return e.enter("definition"),s(m)}function s(m){return ig.call(i,e,l,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(m)}function l(m){return r=sn(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),m===58?(e.enter("definitionMarker"),e.consume(m),e.exit("definitionMarker"),u):n(m)}function u(m){return Ge(m)?nr(e,c)(m):c(m)}function c(m){return ng(e,d,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(m)}function d(m){return e.attempt(Ik,p,p)(m)}function p(m){return ze(m)?Ke(e,g,"whitespace")(m):g(m)}function g(m){return m===null||Oe(m)?(e.exit("definition"),i.parser.defined.push(r),t(m)):n(m)}}function Ak(e,t,n){return i;function i(l){return Ge(l)?nr(e,r)(l):n(l)}function r(l){return rg(e,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(l)}function a(l){return ze(l)?Ke(e,s,"whitespace")(l):s(l)}function s(l){return l===null||Oe(l)?t(l):n(l)}}const Nk={name:"hardBreakEscape",tokenize:Tk};function Tk(e,t,n){return i;function i(a){return e.enter("hardBreakEscape"),e.consume(a),r}function r(a){return Oe(a)?(e.exit("hardBreakEscape"),t(a)):n(a)}}const Ok={name:"headingAtx",resolve:Pk,tokenize:Rk};function Pk(e,t){let n=e.length-2,i=3,r,a;return e[i][1].type==="whitespace"&&(i+=2),n-2>i&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(i===n-1||n-4>i&&e[n-2][1].type==="whitespace")&&(n-=i+1===n?2:4),n>i&&(r={type:"atxHeadingText",start:e[i][1].start,end:e[n][1].end},a={type:"chunkText",start:e[i][1].start,end:e[n][1].end,contentType:"text"},Kt(e,i,n-i+1,[["enter",r,t],["enter",a,t],["exit",a,t],["exit",r,t]])),e}function Rk(e,t,n){let i=0;return r;function r(d){return e.enter("atxHeading"),a(d)}function a(d){return e.enter("atxHeadingSequence"),s(d)}function s(d){return d===35&&i++<6?(e.consume(d),s):d===null||Ge(d)?(e.exit("atxHeadingSequence"),l(d)):n(d)}function l(d){return d===35?(e.enter("atxHeadingSequence"),u(d)):d===null||Oe(d)?(e.exit("atxHeading"),t(d)):ze(d)?Ke(e,l,"whitespace")(d):(e.enter("atxHeadingText"),c(d))}function u(d){return d===35?(e.consume(d),u):(e.exit("atxHeadingSequence"),l(d))}function c(d){return d===null||d===35||Ge(d)?(e.exit("atxHeadingText"),l(d)):(e.consume(d),c)}}const Mk=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Jc=["pre","script","style","textarea"],Lk={concrete:!0,name:"htmlFlow",resolveTo:jk,tokenize:zk},Dk={partial:!0,tokenize:Bk},Fk={partial:!0,tokenize:Vk};function jk(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function zk(e,t,n){const i=this;let r,a,s,l,u;return c;function c(O){return d(O)}function d(O){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(O),p}function p(O){return O===33?(e.consume(O),g):O===47?(e.consume(O),a=!0,x):O===63?(e.consume(O),r=3,i.interrupt?t:I):Et(O)?(e.consume(O),s=String.fromCharCode(O),w):n(O)}function g(O){return O===45?(e.consume(O),r=2,m):O===91?(e.consume(O),r=5,l=0,C):Et(O)?(e.consume(O),r=4,i.interrupt?t:I):n(O)}function m(O){return O===45?(e.consume(O),i.interrupt?t:I):n(O)}function C(O){const $="CDATA[";return O===$.charCodeAt(l++)?(e.consume(O),l===$.length?i.interrupt?t:J:C):n(O)}function x(O){return Et(O)?(e.consume(O),s=String.fromCharCode(O),w):n(O)}function w(O){if(O===null||O===47||O===62||Ge(O)){const $=O===47,z=s.toLowerCase();return!$&&!a&&Jc.includes(z)?(r=1,i.interrupt?t(O):J(O)):Mk.includes(s.toLowerCase())?(r=6,$?(e.consume(O),S):i.interrupt?t(O):J(O)):(r=7,i.interrupt&&!i.parser.lazy[i.now().line]?n(O):a?k(O):E(O))}return O===45||jt(O)?(e.consume(O),s+=String.fromCharCode(O),w):n(O)}function S(O){return O===62?(e.consume(O),i.interrupt?t:J):n(O)}function k(O){return ze(O)?(e.consume(O),k):D(O)}function E(O){return O===47?(e.consume(O),D):O===58||O===95||Et(O)?(e.consume(O),A):ze(O)?(e.consume(O),E):D(O)}function A(O){return O===45||O===46||O===58||O===95||jt(O)?(e.consume(O),A):y(O)}function y(O){return O===61?(e.consume(O),f):ze(O)?(e.consume(O),y):E(O)}function f(O){return O===null||O===60||O===61||O===62||O===96?n(O):O===34||O===39?(e.consume(O),u=O,T):ze(O)?(e.consume(O),f):R(O)}function T(O){return O===u?(e.consume(O),u=null,F):O===null||Oe(O)?n(O):(e.consume(O),T)}function R(O){return O===null||O===34||O===39||O===47||O===60||O===61||O===62||O===96||Ge(O)?y(O):(e.consume(O),R)}function F(O){return O===47||O===62||ze(O)?E(O):n(O)}function D(O){return O===62?(e.consume(O),q):n(O)}function q(O){return O===null||Oe(O)?J(O):ze(O)?(e.consume(O),q):n(O)}function J(O){return O===45&&r===2?(e.consume(O),Z):O===60&&r===1?(e.consume(O),se):O===62&&r===4?(e.consume(O),V):O===63&&r===3?(e.consume(O),I):O===93&&r===5?(e.consume(O),pe):Oe(O)&&(r===6||r===7)?(e.exit("htmlFlowData"),e.check(Dk,te,K)(O)):O===null||Oe(O)?(e.exit("htmlFlowData"),K(O)):(e.consume(O),J)}function K(O){return e.check(Fk,j,te)(O)}function j(O){return e.enter("lineEnding"),e.consume(O),e.exit("lineEnding"),ae}function ae(O){return O===null||Oe(O)?K(O):(e.enter("htmlFlowData"),J(O))}function Z(O){return O===45?(e.consume(O),I):J(O)}function se(O){return O===47?(e.consume(O),s="",ee):J(O)}function ee(O){if(O===62){const $=s.toLowerCase();return Jc.includes($)?(e.consume(O),V):J(O)}return Et(O)&&s.length<8?(e.consume(O),s+=String.fromCharCode(O),ee):J(O)}function pe(O){return O===93?(e.consume(O),I):J(O)}function I(O){return O===62?(e.consume(O),V):O===45&&r===2?(e.consume(O),I):J(O)}function V(O){return O===null||Oe(O)?(e.exit("htmlFlowData"),te(O)):(e.consume(O),V)}function te(O){return e.exit("htmlFlow"),t(O)}}function Vk(e,t,n){const i=this;return r;function r(s){return Oe(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a):n(s)}function a(s){return i.parser.lazy[i.now().line]?n(s):t(s)}}function Bk(e,t,n){return i;function i(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(Wi,t,n)}}const Hk={name:"htmlText",tokenize:Kk};function Kk(e,t,n){const i=this;let r,a,s;return l;function l(I){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(I),u}function u(I){return I===33?(e.consume(I),c):I===47?(e.consume(I),y):I===63?(e.consume(I),E):Et(I)?(e.consume(I),R):n(I)}function c(I){return I===45?(e.consume(I),d):I===91?(e.consume(I),a=0,C):Et(I)?(e.consume(I),k):n(I)}function d(I){return I===45?(e.consume(I),m):n(I)}function p(I){return I===null?n(I):I===45?(e.consume(I),g):Oe(I)?(s=p,se(I)):(e.consume(I),p)}function g(I){return I===45?(e.consume(I),m):p(I)}function m(I){return I===62?Z(I):I===45?g(I):p(I)}function C(I){const V="CDATA[";return I===V.charCodeAt(a++)?(e.consume(I),a===V.length?x:C):n(I)}function x(I){return I===null?n(I):I===93?(e.consume(I),w):Oe(I)?(s=x,se(I)):(e.consume(I),x)}function w(I){return I===93?(e.consume(I),S):x(I)}function S(I){return I===62?Z(I):I===93?(e.consume(I),S):x(I)}function k(I){return I===null||I===62?Z(I):Oe(I)?(s=k,se(I)):(e.consume(I),k)}function E(I){return I===null?n(I):I===63?(e.consume(I),A):Oe(I)?(s=E,se(I)):(e.consume(I),E)}function A(I){return I===62?Z(I):E(I)}function y(I){return Et(I)?(e.consume(I),f):n(I)}function f(I){return I===45||jt(I)?(e.consume(I),f):T(I)}function T(I){return Oe(I)?(s=T,se(I)):ze(I)?(e.consume(I),T):Z(I)}function R(I){return I===45||jt(I)?(e.consume(I),R):I===47||I===62||Ge(I)?F(I):n(I)}function F(I){return I===47?(e.consume(I),Z):I===58||I===95||Et(I)?(e.consume(I),D):Oe(I)?(s=F,se(I)):ze(I)?(e.consume(I),F):Z(I)}function D(I){return I===45||I===46||I===58||I===95||jt(I)?(e.consume(I),D):q(I)}function q(I){return I===61?(e.consume(I),J):Oe(I)?(s=q,se(I)):ze(I)?(e.consume(I),q):F(I)}function J(I){return I===null||I===60||I===61||I===62||I===96?n(I):I===34||I===39?(e.consume(I),r=I,K):Oe(I)?(s=J,se(I)):ze(I)?(e.consume(I),J):(e.consume(I),j)}function K(I){return I===r?(e.consume(I),r=void 0,ae):I===null?n(I):Oe(I)?(s=K,se(I)):(e.consume(I),K)}function j(I){return I===null||I===34||I===39||I===60||I===61||I===96?n(I):I===47||I===62||Ge(I)?F(I):(e.consume(I),j)}function ae(I){return I===47||I===62||Ge(I)?F(I):n(I)}function Z(I){return I===62?(e.consume(I),e.exit("htmlTextData"),e.exit("htmlText"),t):n(I)}function se(I){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(I),e.exit("lineEnding"),ee}function ee(I){return ze(I)?Ke(e,pe,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(I):pe(I)}function pe(I){return e.enter("htmlTextData"),s(I)}}const Fl={name:"labelEnd",resolveAll:Gk,resolveTo:$k,tokenize:Jk},Wk={tokenize:Yk},Uk={tokenize:Zk},qk={tokenize:Xk};function Gk(e){let t=-1;const n=[];for(;++t<e.length;){const i=e[t][1];if(n.push(e[t]),i.type==="labelImage"||i.type==="labelLink"||i.type==="labelEnd"){const r=i.type==="labelImage"?4:2;i.type="data",t+=r}}return e.length!==n.length&&Kt(e,0,e.length,n),e}function $k(e,t){let n=e.length,i=0,r,a,s,l;for(;n--;)if(r=e[n][1],a){if(r.type==="link"||r.type==="labelLink"&&r._inactive)break;e[n][0]==="enter"&&r.type==="labelLink"&&(r._inactive=!0)}else if(s){if(e[n][0]==="enter"&&(r.type==="labelImage"||r.type==="labelLink")&&!r._balanced&&(a=n,r.type!=="labelLink")){i=2;break}}else r.type==="labelEnd"&&(s=n);const u={type:e[a][1].type==="labelLink"?"link":"image",start:{...e[a][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[a][1].start},end:{...e[s][1].end}},d={type:"labelText",start:{...e[a+i+2][1].end},end:{...e[s-2][1].start}};return l=[["enter",u,t],["enter",c,t]],l=Yt(l,e.slice(a+1,a+i+3)),l=Yt(l,[["enter",d,t]]),l=Yt(l,Za(t.parser.constructs.insideSpan.null,e.slice(a+i+4,s-3),t)),l=Yt(l,[["exit",d,t],e[s-2],e[s-1],["exit",c,t]]),l=Yt(l,e.slice(s+1)),l=Yt(l,[["exit",u,t]]),Kt(e,a,e.length,l),e}function Jk(e,t,n){const i=this;let r=i.events.length,a,s;for(;r--;)if((i.events[r][1].type==="labelImage"||i.events[r][1].type==="labelLink")&&!i.events[r][1]._balanced){a=i.events[r][1];break}return l;function l(g){return a?a._inactive?p(g):(s=i.parser.defined.includes(sn(i.sliceSerialize({start:a.end,end:i.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(g),e.exit("labelMarker"),e.exit("labelEnd"),u):n(g)}function u(g){return g===40?e.attempt(Wk,d,s?d:p)(g):g===91?e.attempt(Uk,d,s?c:p)(g):s?d(g):p(g)}function c(g){return e.attempt(qk,d,p)(g)}function d(g){return t(g)}function p(g){return a._balanced=!0,n(g)}}function Yk(e,t,n){return i;function i(p){return e.enter("resource"),e.enter("resourceMarker"),e.consume(p),e.exit("resourceMarker"),r}function r(p){return Ge(p)?nr(e,a)(p):a(p)}function a(p){return p===41?d(p):ng(e,s,l,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(p)}function s(p){return Ge(p)?nr(e,u)(p):d(p)}function l(p){return n(p)}function u(p){return p===34||p===39||p===40?rg(e,c,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(p):d(p)}function c(p){return Ge(p)?nr(e,d)(p):d(p)}function d(p){return p===41?(e.enter("resourceMarker"),e.consume(p),e.exit("resourceMarker"),e.exit("resource"),t):n(p)}}function Zk(e,t,n){const i=this;return r;function r(l){return ig.call(i,e,a,s,"reference","referenceMarker","referenceString")(l)}function a(l){return i.parser.defined.includes(sn(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?t(l):n(l)}function s(l){return n(l)}}function Xk(e,t,n){return i;function i(a){return e.enter("reference"),e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),r}function r(a){return a===93?(e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),e.exit("reference"),t):n(a)}}const Qk={name:"labelStartImage",resolveAll:Fl.resolveAll,tokenize:eS};function eS(e,t,n){const i=this;return r;function r(l){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(l),e.exit("labelImageMarker"),a}function a(l){return l===91?(e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelImage"),s):n(l)}function s(l){return l===94&&"_hiddenFootnoteSupport"in i.parser.constructs?n(l):t(l)}}const tS={name:"labelStartLink",resolveAll:Fl.resolveAll,tokenize:nS};function nS(e,t,n){const i=this;return r;function r(s){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelLink"),a}function a(s){return s===94&&"_hiddenFootnoteSupport"in i.parser.constructs?n(s):t(s)}}const Ts={name:"lineEnding",tokenize:iS};function iS(e,t){return n;function n(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),Ke(e,t,"linePrefix")}}const ua={name:"thematicBreak",tokenize:rS};function rS(e,t,n){let i=0,r;return a;function a(c){return e.enter("thematicBreak"),s(c)}function s(c){return r=c,l(c)}function l(c){return c===r?(e.enter("thematicBreakSequence"),u(c)):i>=3&&(c===null||Oe(c))?(e.exit("thematicBreak"),t(c)):n(c)}function u(c){return c===r?(e.consume(c),i++,u):(e.exit("thematicBreakSequence"),ze(c)?Ke(e,l,"whitespace")(c):l(c))}}const Lt={continuation:{tokenize:lS},exit:cS,name:"list",tokenize:oS},aS={partial:!0,tokenize:hS},sS={partial:!0,tokenize:uS};function oS(e,t,n){const i=this,r=i.events[i.events.length-1];let a=r&&r[1].type==="linePrefix"?r[2].sliceSerialize(r[1],!0).length:0,s=0;return l;function l(m){const C=i.containerState.type||(m===42||m===43||m===45?"listUnordered":"listOrdered");if(C==="listUnordered"?!i.containerState.marker||m===i.containerState.marker:vo(m)){if(i.containerState.type||(i.containerState.type=C,e.enter(C,{_container:!0})),C==="listUnordered")return e.enter("listItemPrefix"),m===42||m===45?e.check(ua,n,c)(m):c(m);if(!i.interrupt||m===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),u(m)}return n(m)}function u(m){return vo(m)&&++s<10?(e.consume(m),u):(!i.interrupt||s<2)&&(i.containerState.marker?m===i.containerState.marker:m===41||m===46)?(e.exit("listItemValue"),c(m)):n(m)}function c(m){return e.enter("listItemMarker"),e.consume(m),e.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||m,e.check(Wi,i.interrupt?n:d,e.attempt(aS,g,p))}function d(m){return i.containerState.initialBlankLine=!0,a++,g(m)}function p(m){return ze(m)?(e.enter("listItemPrefixWhitespace"),e.consume(m),e.exit("listItemPrefixWhitespace"),g):n(m)}function g(m){return i.containerState.size=a+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(m)}}function lS(e,t,n){const i=this;return i.containerState._closeFlow=void 0,e.check(Wi,r,a);function r(l){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,Ke(e,t,"listItemIndent",i.containerState.size+1)(l)}function a(l){return i.containerState.furtherBlankLines||!ze(l)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,s(l)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,e.attempt(sS,t,s)(l))}function s(l){return i.containerState._closeFlow=!0,i.interrupt=void 0,Ke(e,e.attempt(Lt,t,n),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l)}}function uS(e,t,n){const i=this;return Ke(e,r,"listItemIndent",i.containerState.size+1);function r(a){const s=i.events[i.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===i.containerState.size?t(a):n(a)}}function cS(e){e.exit(this.containerState.type)}function hS(e,t,n){const i=this;return Ke(e,r,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function r(a){const s=i.events[i.events.length-1];return!ze(a)&&s&&s[1].type==="listItemPrefixWhitespace"?t(a):n(a)}}const Yc={name:"setextUnderline",resolveTo:dS,tokenize:pS};function dS(e,t){let n=e.length,i,r,a;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){i=n;break}e[n][1].type==="paragraph"&&(r=n)}else e[n][1].type==="content"&&e.splice(n,1),!a&&e[n][1].type==="definition"&&(a=n);const s={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[r][1].type="setextHeadingText",a?(e.splice(r,0,["enter",s,t]),e.splice(a+1,0,["exit",e[i][1],t]),e[i][1].end={...e[a][1].end}):e[i][1]=s,e.push(["exit",s,t]),e}function pS(e,t,n){const i=this;let r;return a;function a(c){let d=i.events.length,p;for(;d--;)if(i.events[d][1].type!=="lineEnding"&&i.events[d][1].type!=="linePrefix"&&i.events[d][1].type!=="content"){p=i.events[d][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||p)?(e.enter("setextHeadingLine"),r=c,s(c)):n(c)}function s(c){return e.enter("setextHeadingLineSequence"),l(c)}function l(c){return c===r?(e.consume(c),l):(e.exit("setextHeadingLineSequence"),ze(c)?Ke(e,u,"lineSuffix")(c):u(c))}function u(c){return c===null||Oe(c)?(e.exit("setextHeadingLine"),t(c)):n(c)}}const fS={tokenize:vS,partial:!0},Zc="https://github.com/micromark/micromark-extension-mdxjs-esm",gS=new Set(["ExportAllDeclaration","ExportDefaultDeclaration","ExportNamedDeclaration","ImportDeclaration"]);function mS(e){const t={tokenize:r,concrete:!0};if(!e||!e.acorn||!e.acorn.parse)throw new Error("Expected an `acorn` instance passed in as `options.acorn`");const n=e.acorn,i=Object.assign({ecmaVersion:2024,sourceType:"module"},e.acornOptions,{locations:!0});return{flow:{101:t,105:t}};function r(a,s,l){const u=this,c=u.parser.definedModuleSpecifiers||(u.parser.definedModuleSpecifiers=[]),d=this.events.length+1;let p="";return u.interrupt?l:g;function g(k){return u.now().column>1?l(k):(a.enter("mdxjsEsm"),a.enter("mdxjsEsmData"),a.consume(k),p+=String.fromCharCode(k),m)}function m(k){return Et(k)?(a.consume(k),p+=String.fromCharCode(k),m):(p==="import"||p==="export")&&k===32?(a.consume(k),C):l(k)}function C(k){return k===null||Oe(k)?(a.exit("mdxjsEsmData"),x(k)):(a.consume(k),C)}function x(k){return k===null?S(k):Oe(k)?a.check(fS,S,w)(k):(a.enter("mdxjsEsmData"),C(k))}function w(k){return a.enter("lineEnding"),a.consume(k),a.exit("lineEnding"),x}function S(k){const E=Yf(u.events.slice(d),{acorn:n,acornOptions:i,tokenTypes:["mdxjsEsmData"],prefix:c.length>0?"var "+c.join(",")+`
|
|
88
|
-
`:""});if(E.error){if(k!==null&&E.swallow)return w(k);const y=new Xe("Could not parse import/exports with acorn",{cause:E.error,place:{line:E.error.loc.line,column:E.error.loc.column+1,offset:E.error.pos},ruleId:"acorn",source:"micromark-extension-mdxjs-esm"});throw y.url=Zc+"#could-not-parse-importexports-with-acorn",y}c.length>0&&E.estree.body.shift();let A=-1;for(;++A<E.estree.body.length;){const y=E.estree.body[A];if(!gS.has(y.type)){const f=new Xe("Unexpected `"+y.type+"` in code: only import/exports are supported",{place:la(y),ruleId:"non-esm",source:"micromark-extension-mdxjs-esm"});throw f.url=Zc+"#unexpected-type-in-code-only-importexports-are-supported",f}if(y.type==="ImportDeclaration"&&!u.interrupt){let f=-1;for(;++f<y.specifiers.length;){const T=y.specifiers[f];c.push(T.local.name)}}}return Object.assign(a.exit("mdxjsEsm"),e.addResult?{estree:E.estree}:void 0),s(k)}}}function vS(e,t,n){return i;function i(r){return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),e.attempt(Wi,t,n)}}const Xc={}.hasOwnProperty;function jl(e){const t={};let n=-1;for(;++n<e.length;)xS(t,e[n]);return t}function xS(e,t){let n;for(n in t){const r=(Xc.call(e,n)?e[n]:void 0)||(e[n]={}),a=t[n];let s;if(a)for(s in a){Xc.call(r,s)||(r[s]=[]);const l=a[s];bS(r[s],Array.isArray(l)?l:l?[l]:[])}}}function bS(e,t){let n=-1;const i=[];for(;++n<t.length;)(t[n].add==="after"?e:i).push(t[n]);Kt(e,0,0,i)}function yS(e){const t=Object.assign({acorn:vt.extend(I1()),acornOptions:{ecmaVersion:2024,sourceType:"module"},addResult:!0},e);return jl([mS(t),K1(t),Z1(t),X1()])}const wS={};function kS(e){const t=this,n=e||wS,i=t.data(),r=i.micromarkExtensions||(i.micromarkExtensions=[]),a=i.fromMarkdownExtensions||(i.fromMarkdownExtensions=[]),s=i.toMarkdownExtensions||(i.toMarkdownExtensions=[]);r.push(yS(n)),a.push(Lw()),s.push(Dw(n))}const SS={};function ES(e,t){const n=SS,i=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,r=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return ag(e,i,r)}function ag(e,t,n){if(CS(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Qc(e.children,t,n)}return Array.isArray(e)?Qc(e,t,n):""}function Qc(e,t,n){const i=[];let r=-1;for(;++r<e.length;)i[r]=ag(e[r],t,n);return i.join("")}function CS(e){return!!(e&&typeof e=="object")}function sg(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}const IS={tokenize:_S};function _S(e){const t=e.attempt(this.parser.constructs.contentInitial,i,r);let n;return t;function i(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),Ke(e,t,"linePrefix")}function r(l){return e.enter("paragraph"),a(l)}function a(l){const u=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=u),n=u,s(l)}function s(l){if(l===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(l);return}return Oe(l)?(e.consume(l),e.exit("chunkText"),a):(e.consume(l),s)}}const AS={tokenize:NS},eh={tokenize:TS};function NS(e){const t=this,n=[];let i=0,r,a,s;return l;function l(E){if(i<n.length){const A=n[i];return t.containerState=A[1],e.attempt(A[0].continuation,u,c)(E)}return c(E)}function u(E){if(i++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&k();const A=t.events.length;let y=A,f;for(;y--;)if(t.events[y][0]==="exit"&&t.events[y][1].type==="chunkFlow"){f=t.events[y][1].end;break}S(i);let T=A;for(;T<t.events.length;)t.events[T][1].end={...f},T++;return Kt(t.events,y+1,0,t.events.slice(A)),t.events.length=T,c(E)}return l(E)}function c(E){if(i===n.length){if(!r)return g(E);if(r.currentConstruct&&r.currentConstruct.concrete)return C(E);t.interrupt=!!(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(eh,d,p)(E)}function d(E){return r&&k(),S(i),g(E)}function p(E){return t.parser.lazy[t.now().line]=i!==n.length,s=t.now().offset,C(E)}function g(E){return t.containerState={},e.attempt(eh,m,C)(E)}function m(E){return i++,n.push([t.currentConstruct,t.containerState]),g(E)}function C(E){if(E===null){r&&k(),S(0),e.consume(E);return}return r=r||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:r,contentType:"flow",previous:a}),x(E)}function x(E){if(E===null){w(e.exit("chunkFlow"),!0),S(0),e.consume(E);return}return Oe(E)?(e.consume(E),w(e.exit("chunkFlow")),i=0,t.interrupt=void 0,l):(e.consume(E),x)}function w(E,A){const y=t.sliceStream(E);if(A&&y.push(null),E.previous=a,a&&(a.next=E),a=E,r.defineSkip(E.start),r.write(y),t.parser.lazy[E.start.line]){let f=r.events.length;for(;f--;)if(r.events[f][1].start.offset<s&&(!r.events[f][1].end||r.events[f][1].end.offset>s))return;const T=t.events.length;let R=T,F,D;for(;R--;)if(t.events[R][0]==="exit"&&t.events[R][1].type==="chunkFlow"){if(F){D=t.events[R][1].end;break}F=!0}for(S(i),f=T;f<t.events.length;)t.events[f][1].end={...D},f++;Kt(t.events,R+1,0,t.events.slice(T)),t.events.length=f}}function S(E){let A=n.length;for(;A-- >E;){const y=n[A];t.containerState=y[1],y[0].exit.call(t,e)}n.length=E}function k(){r.write([null]),a=void 0,r=void 0,t.containerState._closeFlow=void 0}}function TS(e,t,n){return Ke(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}const OS={tokenize:PS};function PS(e){const t=this,n=e.attempt(Wi,i,e.attempt(this.parser.constructs.flowInitial,r,Ke(e,e.attempt(this.parser.constructs.flow,r,e.attempt(yk,r)),"linePrefix")));return n;function i(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function r(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const RS={resolveAll:lg()},MS=og("string"),LS=og("text");function og(e){return{resolveAll:lg(e==="text"?DS:void 0),tokenize:t};function t(n){const i=this,r=this.parser.constructs[e],a=n.attempt(r,s,l);return s;function s(d){return c(d)?a(d):l(d)}function l(d){if(d===null){n.consume(d);return}return n.enter("data"),n.consume(d),u}function u(d){return c(d)?(n.exit("data"),a(d)):(n.consume(d),u)}function c(d){if(d===null)return!0;const p=r[d];let g=-1;if(p)for(;++g<p.length;){const m=p[g];if(!m.previous||m.previous.call(i,i.previous))return!0}return!1}}}function lg(e){return t;function t(n,i){let r=-1,a;for(;++r<=n.length;)a===void 0?n[r]&&n[r][1].type==="data"&&(a=r,r++):(!n[r]||n[r][1].type!=="data")&&(r!==a+2&&(n[a][1].end=n[r-1][1].end,n.splice(a+2,r-a-2),r=a+2),a=void 0);return e?e(n,i):n}}function DS(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const i=e[n-1][1],r=t.sliceStream(i);let a=r.length,s=-1,l=0,u;for(;a--;){const c=r[a];if(typeof c=="string"){for(s=c.length;c.charCodeAt(s-1)===32;)l++,s--;if(s)break;s=-1}else if(c===-2)u=!0,l++;else if(c!==-1){a++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(l=0),l){const c={type:n===e.length||u||l<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?s:i.start._bufferIndex+s,_index:i.start._index+a,line:i.end.line,column:i.end.column-l,offset:i.end.offset-l},end:{...i.end}};i.end={...c.start},i.start.offset===i.end.offset?Object.assign(i,c):(e.splice(n,0,["enter",c,t],["exit",c,t]),n+=2)}n++}return e}const FS={42:Lt,43:Lt,45:Lt,48:Lt,49:Lt,50:Lt,51:Lt,52:Lt,53:Lt,54:Lt,55:Lt,56:Lt,57:Lt,62:Xf},jS={91:Ck},zS={[-2]:Ns,[-1]:Ns,32:Ns},VS={35:Ok,42:ua,45:[Yc,ua],60:Lk,61:Yc,95:ua,96:$c,126:$c},BS={38:eg,92:Qf},HS={[-5]:Ts,[-4]:Ts,[-3]:Ts,33:Qk,38:eg,42:xo,60:[tk,Hk],91:tS,92:[Nk,Qf],93:Fl,95:xo,96:fk},KS={null:[xo,RS]},WS={null:[42,95]},US={null:[]},qS=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:WS,contentInitial:jS,disable:US,document:FS,flow:VS,flowInitial:zS,insideSpan:KS,string:BS,text:HS},Symbol.toStringTag,{value:"Module"}));function GS(e,t,n){let i={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const r={},a=[];let s=[],l=[];const u={attempt:T(y),check:T(f),consume:k,enter:E,exit:A,interrupt:T(f,{interrupt:!0})},c={code:null,containerState:{},defineSkip:x,events:[],now:C,parser:e,previous:null,sliceSerialize:g,sliceStream:m,write:p};let d=t.tokenize.call(c,u);return t.resolveAll&&a.push(t),c;function p(q){return s=Yt(s,q),w(),s[s.length-1]!==null?[]:(R(t,0),c.events=Za(a,c.events,c),c.events)}function g(q,J){return JS(m(q),J)}function m(q){return $S(s,q)}function C(){const{_bufferIndex:q,_index:J,line:K,column:j,offset:ae}=i;return{_bufferIndex:q,_index:J,line:K,column:j,offset:ae}}function x(q){r[q.line]=q.column,D()}function w(){let q;for(;i._index<s.length;){const J=s[i._index];if(typeof J=="string")for(q=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===q&&i._bufferIndex<J.length;)S(J.charCodeAt(i._bufferIndex));else S(J)}}function S(q){d=d(q)}function k(q){Oe(q)?(i.line++,i.column=1,i.offset+=q===-3?2:1,D()):q!==-1&&(i.column++,i.offset++),i._bufferIndex<0?i._index++:(i._bufferIndex++,i._bufferIndex===s[i._index].length&&(i._bufferIndex=-1,i._index++)),c.previous=q}function E(q,J){const K=J||{};return K.type=q,K.start=C(),c.events.push(["enter",K,c]),l.push(K),K}function A(q){const J=l.pop();return J.end=C(),c.events.push(["exit",J,c]),J}function y(q,J){R(q,J.from)}function f(q,J){J.restore()}function T(q,J){return K;function K(j,ae,Z){let se,ee,pe,I;return Array.isArray(j)?te(j):"tokenize"in j?te([j]):V(j);function V(B){return U;function U(ie){const oe=ie!==null&&B[ie],G=ie!==null&&B.null,ne=[...Array.isArray(oe)?oe:oe?[oe]:[],...Array.isArray(G)?G:G?[G]:[]];return te(ne)(ie)}}function te(B){return se=B,ee=0,B.length===0?Z:O(B[ee])}function O(B){return U;function U(ie){return I=F(),pe=B,B.partial||(c.currentConstruct=B),B.name&&c.parser.constructs.disable.null.includes(B.name)?z():B.tokenize.call(J?Object.assign(Object.create(c),J):c,u,$,z)(ie)}}function $(B){return q(pe,I),ae}function z(B){return I.restore(),++ee<se.length?O(se[ee]):Z}}}function R(q,J){q.resolveAll&&!a.includes(q)&&a.push(q),q.resolve&&Kt(c.events,J,c.events.length-J,q.resolve(c.events.slice(J),c)),q.resolveTo&&(c.events=q.resolveTo(c.events,c))}function F(){const q=C(),J=c.previous,K=c.currentConstruct,j=c.events.length,ae=Array.from(l);return{from:j,restore:Z};function Z(){i=q,c.previous=J,c.currentConstruct=K,c.events.length=j,l=ae,D()}}function D(){i.line in r&&i.column<2&&(i.column=r[i.line],i.offset+=r[i.line]-1)}}function $S(e,t){const n=t.start._index,i=t.start._bufferIndex,r=t.end._index,a=t.end._bufferIndex;let s;if(n===r)s=[e[n].slice(i,a)];else{if(s=e.slice(n,r),i>-1){const l=s[0];typeof l=="string"?s[0]=l.slice(i):s.shift()}a>0&&s.push(e[r].slice(0,a))}return s}function JS(e,t){let n=-1;const i=[];let r;for(;++n<e.length;){const a=e[n];let s;if(typeof a=="string")s=a;else switch(a){case-5:{s="\r";break}case-4:{s=`
|
|
33
|
+
`):A=String.fromCharCode(g),this.options.locations&&(++this.curLine,this.lineStart=this.pos),A}jsx_readString(y){let g="",A=++this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");let M=this.input.charCodeAt(this.pos);if(M===y)break;M===38?(g+=this.input.slice(A,this.pos),g+=this.jsx_readEntity(),A=this.pos):k(M)?(g+=this.input.slice(A,this.pos),g+=this.jsx_readNewLine(!1),A=this.pos):++this.pos}return g+=this.input.slice(A,this.pos++),this.finishToken(d.string,g)}jsx_readEntity(){let y="",g=0,A,M=this.input[this.pos];M!=="&"&&this.raise(this.pos,"Entity must start with an ampersand");let F=++this.pos;for(;this.pos<this.input.length&&g++<10;){if(M=this.input[this.pos++],M===";"){y[0]==="#"?y[1]==="x"?(y=y.substr(2),n.test(y)&&(A=String.fromCharCode(parseInt(y,16)))):(y=y.substr(1),i.test(y)&&(A=String.fromCharCode(parseInt(y,10)))):A=t[y];break}y+=M}return A||(this.pos=F,"&")}jsx_readWord(){let y,g=this.pos;do y=this.input.charCodeAt(++this.pos);while(N(y)||y===45);return this.finishToken(m.jsxName,this.input.slice(g,this.pos))}jsx_parseIdentifier(){let y=this.startNode();return this.type===m.jsxName?y.name=this.value:this.type.keyword?y.name=this.type.keyword:this.unexpected(),this.next(),this.finishNode(y,"JSXIdentifier")}jsx_parseNamespacedName(){let y=this.start,g=this.startLoc,A=this.jsx_parseIdentifier();if(!u.allowNamespaces||!this.eat(d.colon))return A;var M=this.startNodeAt(y,g);return M.namespace=A,M.name=this.jsx_parseIdentifier(),this.finishNode(M,"JSXNamespacedName")}jsx_parseElementName(){if(this.type===m.jsxTagEnd)return"";let y=this.start,g=this.startLoc,A=this.jsx_parseNamespacedName();for(this.type===d.dot&&A.type==="JSXNamespacedName"&&!u.allowNamespacedObjects&&this.unexpected();this.eat(d.dot);){let M=this.startNodeAt(y,g);M.object=A,M.property=this.jsx_parseIdentifier(),A=this.finishNode(M,"JSXMemberExpression")}return A}jsx_parseAttributeValue(){switch(this.type){case d.braceL:let y=this.jsx_parseExpressionContainer();return y.expression.type==="JSXEmptyExpression"&&this.raise(y.start,"JSX attributes must only be assigned a non-empty expression"),y;case m.jsxTagStart:case d.string:return this.parseExprAtom();default:this.raise(this.start,"JSX value should be either an expression or a quoted JSX text")}}jsx_parseEmptyExpression(){let y=this.startNodeAt(this.lastTokEnd,this.lastTokEndLoc);return this.finishNodeAt(y,"JSXEmptyExpression",this.start,this.startLoc)}jsx_parseExpressionContainer(){let y=this.startNode();return this.next(),y.expression=this.type===d.braceR?this.jsx_parseEmptyExpression():this.parseExpression(),this.expect(d.braceR),this.finishNode(y,"JSXExpressionContainer")}jsx_parseAttribute(){let y=this.startNode();return this.eat(d.braceL)?(this.expect(d.ellipsis),y.argument=this.parseMaybeAssign(),this.expect(d.braceR),this.finishNode(y,"JSXSpreadAttribute")):(y.name=this.jsx_parseNamespacedName(),y.value=this.eat(d.eq)?this.jsx_parseAttributeValue():null,this.finishNode(y,"JSXAttribute"))}jsx_parseOpeningElementAt(y,g){let A=this.startNodeAt(y,g);A.attributes=[];let M=this.jsx_parseElementName();for(M&&(A.name=M);this.type!==d.slash&&this.type!==m.jsxTagEnd;)A.attributes.push(this.jsx_parseAttribute());return A.selfClosing=this.eat(d.slash),this.expect(m.jsxTagEnd),this.finishNode(A,M?"JSXOpeningElement":"JSXOpeningFragment")}jsx_parseClosingElementAt(y,g){let A=this.startNodeAt(y,g),M=this.jsx_parseElementName();return M&&(A.name=M),this.expect(m.jsxTagEnd),this.finishNode(A,M?"JSXClosingElement":"JSXClosingFragment")}jsx_parseElementAt(y,g){let A=this.startNodeAt(y,g),M=[],F=this.jsx_parseOpeningElementAt(y,g),R=null;if(!F.selfClosing){e:for(;;)switch(this.type){case m.jsxTagStart:if(y=this.start,g=this.startLoc,this.next(),this.eat(d.slash)){R=this.jsx_parseClosingElementAt(y,g);break e}M.push(this.jsx_parseElementAt(y,g));break;case m.jsxText:M.push(this.parseExprAtom());break;case d.braceL:M.push(this.jsx_parseExpressionContainer());break;default:this.unexpected()}o(R.name)!==o(F.name)&&this.raise(R.start,"Expected corresponding JSX closing tag for <"+o(F.name)+">")}let j=F.name?"Element":"Fragment";return A["opening"+j]=F,A["closing"+j]=R,A.children=M,this.type===d.relational&&this.value==="<"&&this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag"),this.finishNode(A,"JSX"+j)}jsx_parseText(){let y=this.parseLiteral(this.value);return y.type="JSXText",y}jsx_parseElement(){let y=this.start,g=this.startLoc;return this.next(),this.jsx_parseElementAt(y,g)}parseExprAtom(y){return this.type===m.jsxText?this.jsx_parseText():this.type===m.jsxTagStart?this.jsx_parseElement():super.parseExprAtom(y)}readToken(y){let g=this.curContext();if(g===E)return this.jsx_readToken();if(g===v||g===S){if(I(y))return this.jsx_readWord();if(y==62)return++this.pos,this.finishToken(m.jsxTagEnd);if((y===34||y===39)&&g==v)return this.jsx_readString(y)}return y===60&&this.exprAllowed&&this.input.charCodeAt(this.pos+1)!==33?(++this.pos,this.finishToken(m.jsxTagStart)):super.readToken(y)}updateContext(y){if(this.type==d.braceL){var g=this.curContext();g==v?this.context.push(b.b_expr):g==E?this.context.push(b.b_tmpl):super.updateContext(y),this.exprAllowed=!0}else if(this.type===d.slash&&y===m.jsxTagStart)this.context.length-=2,this.context.push(S),this.exprAllowed=!1;else return super.updateContext(y)}}}})(Xr)),Xr.exports}var Em=wm();const Sm=Lr(Em),lt=yn(/[A-Za-z]/),gt=yn(/[\dA-Za-z]/),km=yn(/[#-'*+\--9=?A-Z^-~]/);function dr(e){return e!==null&&(e<32||e===127)}const qa=yn(/\d/),Cm=yn(/[\dA-Fa-f]/),_m=yn(/[!-/:-@[-`{-~]/);function _e(e){return e!==null&&e<-2}function Ke(e){return e!==null&&(e<0||e===32)}function Me(e){return e===-2||e===-1||e===32}const Mr=yn(new RegExp("\\p{P}|\\p{S}","u")),ct=yn(/\s/);function yn(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function je(e,t,n,i){const r=i?i-1:Number.POSITIVE_INFINITY;let s=0;return o;function o(u){return Me(u)?(e.enter(n),l(u)):t(u)}function l(u){return Me(u)&&s++<r?(e.consume(u),l):(e.exit(n),t(u))}}const Im={}.hasOwnProperty,Am=Symbol("continue"),ta=Symbol("exit"),Tm=Symbol("skip");function Nm(e,t){let n,i;typeof t=="function"?n=t:t&&typeof t=="object"&&(t.enter&&(n=t.enter),t.leave&&(i=t.leave)),r(e,void 0,void 0,[])();function r(s,o,l,u){return na(s)&&(f.displayName="node ("+s.type+")"),f;function f(){const p=n?fl(n(s,o,l,u)):[];if(p[0]===ta)return p;if(p[0]!==Tm){let h;for(h in s)if(Im.call(s,h)&&s[h]&&typeof s[h]=="object"&&h!=="data"&&h!=="position"){const d=u.concat(s),m=s[h];if(Array.isArray(m)){const b=m;let v=0;for(;v>-1&&v<b.length;){const S=b[v];if(na(S)){const E=r(S,h,v,d)();if(E[0]===ta)return E;v=typeof E[1]=="number"?E[1]:v+1}else v++}}else if(na(m)){const b=r(m,h,void 0,d)();if(b[0]===ta)return b}}}return i?fl(i(s,o,l,u)):p}}}function fl(e){return Array.isArray(e)?e:typeof e=="number"?[Am,e]:[e]}function na(e){return!!(e&&typeof e=="object"&&"type"in e&&typeof e.type=="string"&&e.type.length>0)}function nh(e,t){const n=t.prefix||"",i=t.suffix||"",r=Object.assign({},t.acornOptions),s=[],o=[],l=r.onComment,u=r.onToken;let f=!1,p,h;const d=Object.assign({},r,{onComment:s,preserveParens:!0});u&&(d.onToken=o);const m=Pm(e,t.tokenTypes),b=m.value,v=n+b+i,S=t.expression&&pl(b);if(S&&!t.allowEmpty)throw new qe("Unexpected empty expression",{place:k(0),ruleId:"unexpected-empty-expression",source:"micromark-extension-mdx-expression"});try{p=t.expression&&!S?t.acorn.parseExpressionAt(v,0,d):t.acorn.parse(v,d)}catch(I){const N=I,y=k(N.pos);N.message=String(N.message).replace(/ \(\d+:\d+\)$/,""),N.pos=y.offset,N.loc={line:y.line,column:y.column-1},h=N,f=N.raisedAt>=n.length+b.length||N.message==="Unterminated comment"}if(p&&t.expression&&!S)if(pl(v.slice(p.end,v.length-i.length)))p={type:"Program",start:0,end:n.length+b.length,body:[{type:"ExpressionStatement",expression:p,start:0,end:n.length+b.length}],sourceType:"module",comments:[]};else{const I=k(p.end),N=new Error("Unexpected content after expression");N.pos=I.offset,N.loc={line:I.line,column:I.column-1},h=N,p=void 0}if(p){if(p.comments=s,Nm(p,function(I,N,y,g){let A=g[g.length-1],M=N;I.type==="ParenthesizedExpression"&&A&&M&&(typeof y=="number"&&(A=A[M],M=y),A[M]=I.expression),E(I)}),Array.isArray(l))l.push(...s);else if(typeof l=="function")for(const I of s)l(I.type==="Block",I.value,I.start,I.end,I.loc.start,I.loc.end);for(const I of o)I.end<=n.length||I.start-n.length>=b.length||(E(I),Array.isArray(u)?u.push(I):u(I))}return{estree:p,error:h,swallow:f};function E(I){const N=k(I.start),y=k(I.end);I.start=N.offset,I.end=y.offset,I.loc={start:{line:N.line,column:N.column-1,offset:N.offset},end:{line:y.line,column:y.column-1,offset:y.offset}},I.range=[I.start,I.end]}function k(I){let N=I-n.length;N<0?N=0:N>b.length&&(N=b.length);let y=Om(m.stops,N);return y||(y={line:t.start.line,column:t.start.column,offset:t.start.offset}),y}}function pl(e){return/^\s*$/.test(e.replace(/\/\*[\s\S]*?\*\//g,"").replace(/\/\/[^\r\n]*(\r\n|\n|\r)/g,""))}function Pm(e,t){const n={value:"",stops:[]};let i=-1;for(;++i<e.length;){const r=e[i];if(r[0]==="enter"){const s=r[1].type;if(s==="lineEnding"||t.includes(s)){const o=r[2].sliceStream(r[1]);for(;o.length>0&&o[0]===-1;)o.shift();const l=Rm(o);n.stops.push([n.value.length,r[1].start]),n.value+=l,n.stops.push([n.value.length,r[1].end])}}}return n}function Om(e,t){let n=0;for(;n<e.length&&e[n][0]<=t;)n+=1;if(n===0)return;const[i,r]=e[n-1],s=t-i;return{line:r.line,column:r.column+s,offset:r.offset+s}}function Rm(e){let t=-1;const n=[];let i;for(;++t<e.length;){const r=e[t];let s;if(typeof r=="string")s=r;else switch(r){case-5:{s="\r";break}case-4:{s=`
|
|
89
34
|
`;break}case-3:{s=`\r
|
|
90
|
-
`;break}case-2:{s=t?" ":" ";break}case-1:{if(!t&&r)continue;s=" ";break}default:s=String.fromCharCode(a)}r=a===-2,i.push(s)}return i.join("")}function YS(e){const i={constructs:jl([qS,...(e||{}).extensions||[]]),content:r(IS),defined:[],document:r(AS),flow:r(OS),lazy:{},string:r(MS),text:r(LS)};return i;function r(a){return s;function s(l){return GS(i,a,l)}}}function ZS(e){for(;!tg(e););return e}const th=/[\0\t\n\r]/g;function XS(){let e=1,t="",n=!0,i;return r;function r(a,s,l){const u=[];let c,d,p,g,m;for(a=t+(typeof a=="string"?a.toString():new TextDecoder(s||void 0).decode(a)),p=0,t="",n&&(a.charCodeAt(0)===65279&&p++,n=void 0);p<a.length;){if(th.lastIndex=p,c=th.exec(a),g=c&&c.index!==void 0?c.index:a.length,m=a.charCodeAt(g),!c){t=a.slice(p);break}if(m===10&&p===g&&i)u.push(-3),i=void 0;else switch(i&&(u.push(-5),i=void 0),p<g&&(u.push(a.slice(p,g)),e+=g-p),m){case 0:{u.push(65533),e++;break}case 9:{for(d=Math.ceil(e/4)*4,u.push(-2);e++<d;)u.push(-1);break}case 10:{u.push(-4),e=1;break}default:i=!0,e=1}p=g+1}return l&&(i&&u.push(-5),t&&u.push(t),u.push(null)),u}}const QS=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function ug(e){return e.replace(QS,eE)}function eE(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const r=n.charCodeAt(1),a=r===120||r===88;return sg(n.slice(a?2:1),a?16:10)}return ur(n)||e}const cg={}.hasOwnProperty;function tE(e,t,n){return typeof t!="string"&&(n=t,t=void 0),nE(n)(ZS(YS(n).document().write(XS()(e,t,!0))))}function nE(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(Ee),autolinkProtocol:F,autolinkEmail:F,atxHeading:a(me),blockQuote:a(G),characterEscape:F,characterReference:F,codeFenced:a(ne),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:a(ne,s),codeText:a(H,s),codeTextData:F,data:F,codeFlowValue:F,definition:a(de),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:a(X),hardBreakEscape:a(xe),hardBreakTrailing:a(xe),htmlFlow:a(be,s),htmlFlowData:F,htmlText:a(be,s),htmlTextData:F,image:a(ke),label:s,link:a(Ee),listItem:a(Ve),listItemValue:g,listOrdered:a(Se,p),listUnordered:a(Se),paragraph:a($e),reference:O,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:a(me),strong:a(Me),thematicBreak:a(xt)},exit:{atxHeading:u(),atxHeadingSequence:y,autolink:u(),autolinkEmail:oe,autolinkProtocol:ie,blockQuote:u(),characterEscapeValue:D,characterReferenceMarkerHexadecimal:z,characterReferenceMarkerNumeric:z,characterReferenceValue:B,characterReference:U,codeFenced:u(w),codeFencedFence:x,codeFencedFenceInfo:m,codeFencedFenceMeta:C,codeFlowValue:D,codeIndented:u(S),codeText:u(ae),codeTextData:D,data:D,definition:u(),definitionDestinationString:A,definitionLabelString:k,definitionTitleString:E,emphasis:u(),hardBreakEscape:u(J),hardBreakTrailing:u(J),htmlFlow:u(K),htmlFlowData:D,htmlText:u(j),htmlTextData:D,image:u(se),label:pe,labelText:ee,lineEnding:q,link:u(Z),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:$,resourceDestinationString:I,resourceTitleString:V,resource:te,setextHeading:u(R),setextHeadingLineSequence:T,setextHeadingText:f,strong:u(),thematicBreak:u()}};hg(t,(e||{}).mdastExtensions||[]);const n={};return i;function i(le){let re={type:"root",children:[]};const P={stack:[re],tokenStack:[],config:t,enter:l,exit:c,buffer:s,resume:d,data:n},Ce=[];let Le=-1;for(;++Le<le.length;)if(le[Le][1].type==="listOrdered"||le[Le][1].type==="listUnordered")if(le[Le][0]==="enter")Ce.push(Le);else{const ot=Ce.pop();Le=r(le,ot,Le)}for(Le=-1;++Le<le.length;){const ot=t[le[Le][0]];cg.call(ot,le[Le][1].type)&&ot[le[Le][1].type].call(Object.assign({sliceSerialize:le[Le][2].sliceSerialize},P),le[Le][1])}if(P.tokenStack.length>0){const ot=P.tokenStack[P.tokenStack.length-1];(ot[1]||nh).call(P,void 0,ot[0])}for(re.position={start:Bn(le.length>0?le[0][1].start:{line:1,column:1,offset:0}),end:Bn(le.length>0?le[le.length-2][1].end:{line:1,column:1,offset:0})},Le=-1;++Le<t.transforms.length;)re=t.transforms[Le](re)||re;return re}function r(le,re,P){let Ce=re-1,Le=-1,ot=!1,ye,wt,ln,In;for(;++Ce<=P;){const ut=le[Ce];switch(ut[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{ut[0]==="enter"?Le++:Le--,In=void 0;break}case"lineEndingBlank":{ut[0]==="enter"&&(ye&&!In&&!Le&&!ln&&(ln=Ce),In=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:In=void 0}if(!Le&&ut[0]==="enter"&&ut[1].type==="listItemPrefix"||Le===-1&&ut[0]==="exit"&&(ut[1].type==="listUnordered"||ut[1].type==="listOrdered")){if(ye){let Vt=Ce;for(wt=void 0;Vt--;){const Ct=le[Vt];if(Ct[1].type==="lineEnding"||Ct[1].type==="lineEndingBlank"){if(Ct[0]==="exit")continue;wt&&(le[wt][1].type="lineEndingBlank",ot=!0),Ct[1].type="lineEnding",wt=Vt}else if(!(Ct[1].type==="linePrefix"||Ct[1].type==="blockQuotePrefix"||Ct[1].type==="blockQuotePrefixWhitespace"||Ct[1].type==="blockQuoteMarker"||Ct[1].type==="listItemIndent"))break}ln&&(!wt||ln<wt)&&(ye._spread=!0),ye.end=Object.assign({},wt?le[wt][1].start:ut[1].end),le.splice(wt||Ce,0,["exit",ye,ut[2]]),Ce++,P++}if(ut[1].type==="listItemPrefix"){const Vt={type:"listItem",_spread:!1,start:Object.assign({},ut[1].start),end:void 0};ye=Vt,le.splice(Ce,0,["enter",Vt,ut[2]]),Ce++,P++,ln=void 0,In=!0}}}return le[re][1]._spread=ot,P}function a(le,re){return P;function P(Ce){l.call(this,le(Ce),Ce),re&&re.call(this,Ce)}}function s(){this.stack.push({type:"fragment",children:[]})}function l(le,re,P){this.stack[this.stack.length-1].children.push(le),this.stack.push(le),this.tokenStack.push([re,P||void 0]),le.position={start:Bn(re.start),end:void 0}}function u(le){return re;function re(P){le&&le.call(this,P),c.call(this,P)}}function c(le,re){const P=this.stack.pop(),Ce=this.tokenStack.pop();if(Ce)Ce[0].type!==le.type&&(re?re.call(this,le,Ce[0]):(Ce[1]||nh).call(this,le,Ce[0]));else throw new Error("Cannot close `"+le.type+"` ("+On({start:le.start,end:le.end})+"): it’s not open");P.position.end=Bn(le.end)}function d(){return ES(this.stack.pop())}function p(){this.data.expectingFirstListItemValue=!0}function g(le){if(this.data.expectingFirstListItemValue){const re=this.stack[this.stack.length-2];re.start=Number.parseInt(this.sliceSerialize(le),10),this.data.expectingFirstListItemValue=void 0}}function m(){const le=this.resume(),re=this.stack[this.stack.length-1];re.lang=le}function C(){const le=this.resume(),re=this.stack[this.stack.length-1];re.meta=le}function x(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function w(){const le=this.resume(),re=this.stack[this.stack.length-1];re.value=le.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function S(){const le=this.resume(),re=this.stack[this.stack.length-1];re.value=le.replace(/(\r?\n|\r)$/g,"")}function k(le){const re=this.resume(),P=this.stack[this.stack.length-1];P.label=re,P.identifier=sn(this.sliceSerialize(le)).toLowerCase()}function E(){const le=this.resume(),re=this.stack[this.stack.length-1];re.title=le}function A(){const le=this.resume(),re=this.stack[this.stack.length-1];re.url=le}function y(le){const re=this.stack[this.stack.length-1];if(!re.depth){const P=this.sliceSerialize(le).length;re.depth=P}}function f(){this.data.setextHeadingSlurpLineEnding=!0}function T(le){const re=this.stack[this.stack.length-1];re.depth=this.sliceSerialize(le).codePointAt(0)===61?1:2}function R(){this.data.setextHeadingSlurpLineEnding=void 0}function F(le){const P=this.stack[this.stack.length-1].children;let Ce=P[P.length-1];(!Ce||Ce.type!=="text")&&(Ce=Fe(),Ce.position={start:Bn(le.start),end:void 0},P.push(Ce)),this.stack.push(Ce)}function D(le){const re=this.stack.pop();re.value+=this.sliceSerialize(le),re.position.end=Bn(le.end)}function q(le){const re=this.stack[this.stack.length-1];if(this.data.atHardBreak){const P=re.children[re.children.length-1];P.position.end=Bn(le.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(re.type)&&(F.call(this,le),D.call(this,le))}function J(){this.data.atHardBreak=!0}function K(){const le=this.resume(),re=this.stack[this.stack.length-1];re.value=le}function j(){const le=this.resume(),re=this.stack[this.stack.length-1];re.value=le}function ae(){const le=this.resume(),re=this.stack[this.stack.length-1];re.value=le}function Z(){const le=this.stack[this.stack.length-1];if(this.data.inReference){const re=this.data.referenceType||"shortcut";le.type+="Reference",le.referenceType=re,delete le.url,delete le.title}else delete le.identifier,delete le.label;this.data.referenceType=void 0}function se(){const le=this.stack[this.stack.length-1];if(this.data.inReference){const re=this.data.referenceType||"shortcut";le.type+="Reference",le.referenceType=re,delete le.url,delete le.title}else delete le.identifier,delete le.label;this.data.referenceType=void 0}function ee(le){const re=this.sliceSerialize(le),P=this.stack[this.stack.length-2];P.label=ug(re),P.identifier=sn(re).toLowerCase()}function pe(){const le=this.stack[this.stack.length-1],re=this.resume(),P=this.stack[this.stack.length-1];if(this.data.inReference=!0,P.type==="link"){const Ce=le.children;P.children=Ce}else P.alt=re}function I(){const le=this.resume(),re=this.stack[this.stack.length-1];re.url=le}function V(){const le=this.resume(),re=this.stack[this.stack.length-1];re.title=le}function te(){this.data.inReference=void 0}function O(){this.data.referenceType="collapsed"}function $(le){const re=this.resume(),P=this.stack[this.stack.length-1];P.label=re,P.identifier=sn(this.sliceSerialize(le)).toLowerCase(),this.data.referenceType="full"}function z(le){this.data.characterReferenceType=le.type}function B(le){const re=this.sliceSerialize(le),P=this.data.characterReferenceType;let Ce;P?(Ce=sg(re,P==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Ce=ur(re);const Le=this.stack[this.stack.length-1];Le.value+=Ce}function U(le){const re=this.stack.pop();re.position.end=Bn(le.end)}function ie(le){D.call(this,le);const re=this.stack[this.stack.length-1];re.url=this.sliceSerialize(le)}function oe(le){D.call(this,le);const re=this.stack[this.stack.length-1];re.url="mailto:"+this.sliceSerialize(le)}function G(){return{type:"blockquote",children:[]}}function ne(){return{type:"code",lang:null,meta:null,value:""}}function H(){return{type:"inlineCode",value:""}}function de(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function X(){return{type:"emphasis",children:[]}}function me(){return{type:"heading",depth:0,children:[]}}function xe(){return{type:"break"}}function be(){return{type:"html",value:""}}function ke(){return{type:"image",title:null,url:"",alt:null}}function Ee(){return{type:"link",title:null,url:"",children:[]}}function Se(le){return{type:"list",ordered:le.type==="listOrdered",start:null,spread:le._spread,children:[]}}function Ve(le){return{type:"listItem",spread:le._spread,checked:null,children:[]}}function $e(){return{type:"paragraph",children:[]}}function Me(){return{type:"strong",children:[]}}function Fe(){return{type:"text",value:""}}function xt(){return{type:"thematicBreak"}}}function Bn(e){return{line:e.line,column:e.column,offset:e.offset}}function hg(e,t){let n=-1;for(;++n<t.length;){const i=t[n];Array.isArray(i)?hg(e,i):iE(e,i)}}function iE(e,t){let n;for(n in t)if(cg.call(t,n))switch(n){case"canContainEols":{const i=t[n];i&&e[n].push(...i);break}case"transforms":{const i=t[n];i&&e[n].push(...i);break}case"enter":case"exit":{const i=t[n];i&&Object.assign(e[n],i);break}}}function nh(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+On({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+On({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+On({start:t.start,end:t.end})+") is still open")}function rE(e){const t=this;t.parser=n;function n(i){return tE(i,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}const ih={}.hasOwnProperty;function aE(e,t){const n=t||{};function i(r,...a){let s=i.invalid;const l=i.handlers;if(r&&ih.call(r,e)){const u=String(r[e]);s=ih.call(l,u)?l[u]:i.unknown}if(s)return s.call(this,r,...a)}return i.handlers=n.handlers||{},i.invalid=n.invalid,i.unknown=n.unknown,i}const sE={}.hasOwnProperty;function dg(e,t){let n=-1,i;if(t.extensions)for(;++n<t.extensions.length;)dg(e,t.extensions[n]);for(i in t)if(sE.call(t,i))switch(i){case"extensions":break;case"unsafe":{rh(e[i],t[i]);break}case"join":{rh(e[i],t[i]);break}case"handlers":{oE(e[i],t[i]);break}default:e.options[i]=t[i]}return e}function rh(e,t){t&&e.push(...t)}function oE(e,t){t&&Object.assign(e,t)}function lE(e,t,n,i){const r=n.enter("blockquote"),a=n.createTracker(i);a.move("> "),a.shift(2);const s=n.indentLines(n.containerFlow(e,a.current()),uE);return r(),s}function uE(e,t,n){return">"+(n?"":" ")+e}function pg(e,t){return ah(e,t.inConstruct,!0)&&!ah(e,t.notInConstruct,!1)}function ah(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let i=-1;for(;++i<t.length;)if(e.includes(t[i]))return!0;return!1}function sh(e,t,n,i){let r=-1;for(;++r<n.unsafe.length;)if(n.unsafe[r].character===`
|
|
91
|
-
`&&pg(n.stack,n.unsafe[r]))return/[ \t]/.test(i.before)?"":" ";return`\\
|
|
92
|
-
|
|
93
|
-
`,encode:["`"],...l.current()})),p()}return d+=l.move(`
|
|
94
|
-
|
|
95
|
-
`))
|
|
96
|
-
|
|
35
|
+
`;break}case-2:{s=" ";break}case-1:{if(i)continue;s=" ";break}default:s=String.fromCharCode(r)}i=r===-2,n.push(s)}return n.join("")}function tr(e){const t=e||{},n=t.loc||{},i=t.range||[void 0,void 0],r=dl(n.start,i[0]||t.start),s=dl(n.end,i[1]||t.end);if(r&&s)return{start:r,end:s}}function dl(e,t){if(e&&typeof e=="object"){const n="line"in e?ia(e.line):void 0,i="column"in e?ia(e.column):void 0;if(n&&i!==void 0)return{line:n,column:i+1,offset:ia(t)}}}function ia(e){return typeof e=="number"&&e>-1?e:void 0}const Lm=2,Hn="https://github.com/micromark/micromark-extension-mdx-expression/tree/main/packages/micromark-extension-mdx-expression",Mm="#unexpected-end-of-file-in-expression-expected-a-corresponding-closing-brace-for-",Fm="#unexpected-lazy-line-in-expression-in-container-expected-line-to-be-prefixed",gl="#unexpected-type-in-code-expected-an-object-spread-spread",Dm="#unexpected-extra-content-in-spread-only-a-single-spread-is-supported",jm="#could-not-parse-expression-with-acorn";function gr(e,t,n,i,r,s,o,l,u,f,p){const h=this,d=this.events.length+3;let m=0,b,v;return S;function S(N){return e.enter(n),e.enter(i),e.consume(N),e.exit(i),b=h.now(),E}function E(N){if(N===null){if(v)throw v;const y=new qe("Unexpected end of file in expression, expected a corresponding closing brace for `{`",{place:h.now(),ruleId:"unexpected-eof",source:"micromark-extension-mdx-expression"});throw y.url=Hn+Mm,y}if(_e(N))return e.enter("lineEnding"),e.consume(N),e.exit("lineEnding"),I;if(N===125&&m===0){const y=s?Vm.call(h,s,o,r,d,b,f||!1,u||!1):{type:"ok",estree:void 0};if(y.type==="ok"){e.enter(i),e.consume(N),e.exit(i);const g=e.exit(n);return l&&y.estree&&Object.assign(g,{estree:y.estree}),t}return v=y.message,e.enter(r),e.consume(N),k}return e.enter(r),k(N)}function k(N){return N===125&&m===0||N===null||_e(N)?(e.exit(r),E(N)):(N===123&&!s?m+=1:N===125&&(m-=1),e.consume(N),k)}function I(N){const y=h.now();if(y.line!==b.line&&!p&&h.parser.lazy[y.line]){const g=new qe("Unexpected lazy line in expression in container, expected line to be prefixed with `>` when in a block quote, whitespace when in a list, etc",{place:h.now(),ruleId:"unexpected-lazy",source:"micromark-extension-mdx-expression"});throw g.url=Hn+Fm,g}return Me(N)?je(e,E,"linePrefix",Lm+1)(N):E(N)}}function Vm(e,t,n,i,r,s,o){const l=nh(this.events.slice(i),{acorn:e,tokenTypes:[n],acornOptions:t,start:r,expression:!0,allowEmpty:s,prefix:o?"({":"",suffix:o?"})":""}),u=l.estree;if(o&&u){const f=u.body[0];if(f.type!=="ExpressionStatement"||f.expression.type!=="ObjectExpression"){const p=tr(f),h=new qe("Unexpected `"+f.type+"` in code: expected an object spread (`{...spread}`)",{place:p.start,ruleId:"non-spread",source:"micromark-extension-mdx-expression"});throw h.url=Hn+gl,h}if(f.expression.properties[1]){const p=tr(f.expression.properties[1]),h=new qe("Unexpected extra content in spread: only a single spread is supported",{place:p.start,ruleId:"spread-extra",source:"micromark-extension-mdx-expression"});throw h.url=Hn+Dm,h}if(f.expression.properties[0]&&f.expression.properties[0].type!=="SpreadElement"){const p=tr(f.expression.properties[0]),h=new qe("Unexpected `"+f.expression.properties[0].type+"` in code: only spread elements are supported",{place:p.start,ruleId:"non-spread",source:"micromark-extension-mdx-expression"});throw h.url=Hn+gl,h}}if(l.error){const f=new qe("Could not parse expression with acorn",{cause:l.error,place:{line:l.error.loc.line,column:l.error.loc.column+1,offset:l.error.pos},ruleId:"acorn",source:"micromark-extension-mdx-expression"});return f.url=Hn+jm,{type:"nok",message:f}}return{type:"ok",estree:u}}function Bm(e){const t=e||{},n=t.addResult,i=t.acorn,r=t.spread;let s=t.allowEmpty,o;if(s==null&&(s=!0),i){if(!i.parseExpressionAt)throw new Error("Expected a proper `acorn` instance passed in as `options.acorn`");o=Object.assign({ecmaVersion:2024,sourceType:"module"},t.acornOptions)}else if(t.acornOptions||t.addResult)throw new Error("Expected an `acorn` instance passed in as `options.acorn`");return{flow:{123:{name:"mdxFlowExpression",tokenize:l,concrete:!0}},text:{123:{name:"mdxTextExpression",tokenize:u}}};function l(f,p,h){const d=this;return m;function m(E){return b(E)}function b(E){return gr.call(d,f,v,"mdxFlowExpression","mdxFlowExpressionMarker","mdxFlowExpressionChunk",i,o,n,r,s)(E)}function v(E){return Me(E)?je(f,S,"whitespace")(E):S(E)}function S(E){const k=d.parser.constructs.flow[60],N=(Array.isArray(k)?k:k?[k]:[]).find(function(y){return y.name==="mdxJsxFlowTag"});return E===60&&N?f.attempt(N,S,h)(E):E===null||_e(E)?p(E):h(E)}}function u(f,p){const h=this;return d;function d(m){return gr.call(h,f,p,"mdxTextExpression","mdxTextExpressionMarker","mdxTextExpressionChunk",i,o,n,r,s,!0)(m)}}}const zm=/[$_\p{ID_Start}]/u,Km=/[$_\u{200C}\u{200D}\p{ID_Continue}]/u,Um=/[-$_\u{200C}\u{200D}\p{ID_Continue}]/u,Hm={};function Vt(e){return e?zm.test(String.fromCodePoint(e)):!1}function ai(e,t){const i=(t||Hm).jsx?Um:Km;return e?i.test(String.fromCodePoint(e)):!1}const ml="https://github.com/micromark/micromark-extension-mdx-jsx";function ih(e,t,n,i,r,s,o,l,u,f,p,h,d,m,b,v,S,E,k,I,N,y,g,A,M,F,R,j,B,D,se,ue){const te=this;let ae,ge;return ve;function ve(T){return e.enter(l),e.enter(u),e.consume(T),e.exit(u),L}function L(T){return Ke(T)?n(T):(ae=G,Te(T))}function G(T){if(T===47)return e.enter(f),e.consume(T),e.exit(f),ae=ne,Te;if(T===62)return $e(T);if(T!==null&&T>=0&&Vt(T))return e.enter(h),e.enter(d),e.consume(T),O;re(T,"before name","a character that can start a name, such as a letter, `$`, or `_`"+(T===33?" (note: to create a comment in MDX, use `{/* text */}`)":""))}function ne(T){if(T===62)return $e(T);if(T!==null&&T>=0&&Vt(T))return e.enter(h),e.enter(d),e.consume(T),O;re(T,"before name","a character that can start a name, such as a letter, `$`, or `_`"+(T===42||T===47?" (note: JS comments in JSX tags are not supported in MDX)":""))}function O(T){if(T!==null&&T>=0&&ai(T,{jsx:!0}))return e.consume(T),O;if(T===46||T===47||T===58||T===62||T===123||Ke(T)||ct(T))return e.exit(d),ae=he,Te(T);re(T,"in name","a name character such as letters, digits, `$`, or `_`; whitespace before attributes; or the end of the tag"+(T===64?" (note: to create a link in MDX, use `[text](url)`)":""))}function he(T){if(T===46)return e.enter(m),e.consume(T),e.exit(m),ae=W,Te;if(T===58)return e.enter(v),e.consume(T),e.exit(v),ae=K,Te;if(T===47||T===62||T===123||T!==null&&T>=0&&Vt(T))return e.exit(h),X(T);re(T,"after name","a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function W(T){if(T!==null&&T>=0&&Vt(T))return e.enter(b),e.consume(T),Z;re(T,"before member name","a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function Z(T){if(T!==null&&T>=0&&ai(T,{jsx:!0}))return e.consume(T),Z;if(T===46||T===47||T===62||T===123||Ke(T)||ct(T))return e.exit(b),ae=H,Te(T);re(T,"in member name","a name character such as letters, digits, `$`, or `_`; whitespace before attributes; or the end of the tag"+(T===64?" (note: to create a link in MDX, use `[text](url)`)":""))}function H(T){if(T===46)return e.enter(m),e.consume(T),e.exit(m),ae=W,Te;if(T===47||T===62||T===123||T!==null&&T>=0&&Vt(T))return e.exit(h),X(T);re(T,"after member name","a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function K(T){if(T!==null&&T>=0&&Vt(T))return e.enter(S),e.consume(T),J;re(T,"before local name","a character that can start a name, such as a letter, `$`, or `_`"+(T===43||T!==null&&T>46&&T<58?" (note: to create a link in MDX, use `[text](url)`)":""))}function J(T){if(T!==null&&T>=0&&ai(T,{jsx:!0}))return e.consume(T),J;if(T===47||T===62||T===123||Ke(T)||ct(T))return e.exit(S),ae=ie,Te(T);re(T,"in local name","a name character such as letters, digits, `$`, or `_`; whitespace before attributes; or the end of the tag")}function ie(T){if(T===47||T===62||T===123||T!==null&&T>=0&&Vt(T))return e.exit(h),X(T);re(T,"after local name","a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function X(T){if(T===47)return e.enter(p),e.consume(T),e.exit(p),ae=Be,Te;if(T===62)return $e(T);if(T===123)return gr.call(te,e,$,E,k,I,i,r,s,!0,!1,o)(T);if(T!==null&&T>=0&&Vt(T))return e.enter(N),e.enter(y),e.enter(g),e.consume(T),Y;re(T,"before attribute name","a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function $(T){return ae=X,Te(T)}function Y(T){if(T!==null&&T>=0&&ai(T,{jsx:!0}))return e.consume(T),Y;if(T===47||T===58||T===61||T===62||T===123||Ke(T)||ct(T))return e.exit(g),ae=le,Te(T);re(T,"in attribute name","an attribute name character such as letters, digits, `$`, or `_`; `=` to initialize a value; whitespace before attributes; or the end of the tag")}function le(T){if(T===58)return e.enter(A),e.consume(T),e.exit(A),ae=de,Te;if(T===61)return e.exit(y),e.enter(F),e.consume(T),e.exit(F),ae=ke,Te;if(T===47||T===62||T===123||Ke(T)||ct(T)||T!==null&&T>=0&&Vt(T))return e.exit(y),e.exit(N),ae=X,Te(T);re(T,"after attribute name","a character that can start an attribute name, such as a letter, `$`, or `_`; `=` to initialize a value; or the end of the tag")}function de(T){if(T!==null&&T>=0&&Vt(T))return e.enter(M),e.consume(T),Se;re(T,"before local attribute name","a character that can start an attribute name, such as a letter, `$`, or `_`; `=` to initialize a value; or the end of the tag")}function Se(T){if(T!==null&&T>=0&&ai(T,{jsx:!0}))return e.consume(T),Se;if(T===47||T===61||T===62||T===123||Ke(T)||ct(T))return e.exit(M),e.exit(y),ae=ye,Te(T);re(T,"in local attribute name","an attribute name character such as letters, digits, `$`, or `_`; `=` to initialize a value; whitespace before attributes; or the end of the tag")}function ye(T){if(T===61)return e.enter(F),e.consume(T),e.exit(F),ae=ke,Te;if(T===47||T===62||T===123||T!==null&&T>=0&&Vt(T))return e.exit(N),X(T);re(T,"after local attribute name","a character that can start an attribute name, such as a letter, `$`, or `_`; `=` to initialize a value; or the end of the tag")}function ke(T){if(T===34||T===39)return e.enter(R),e.enter(j),e.consume(T),e.exit(j),ge=T,be;if(T===123)return gr.call(te,e,Ie,D,se,ue,i,r,s,!1,!1,o)(T);re(T,"before attribute value","a character that can start an attribute value, such as `\"`, `'`, or `{`"+(T===60?" (note: to use an element or fragment as a prop value in MDX, use `{<element />}`)":""))}function Ie(T){return e.exit(N),ae=X,Te(T)}function be(T){return T===null&&re(T,"in attribute value","a corresponding closing quote `"+String.fromCodePoint(ge)+"`"),T===ge?(e.enter(j),e.consume(T),e.exit(j),e.exit(R),e.exit(N),ge=void 0,ae=X,Te):_e(T)?(ae=be,Te(T)):(e.enter(B),Pe(T))}function Pe(T){return T===null||T===ge||_e(T)?(e.exit(B),be(T)):(e.consume(T),Pe)}function Be(T){if(T===62)return $e(T);re(T,"after self-closing slash","`>` to end the tag"+(T===42||T===47?" (note: JS comments in JSX tags are not supported in MDX)":""))}function $e(T){return e.enter(u),e.consume(T),e.exit(u),e.exit(l),t}function Te(T){return _e(T)?(e.enter("lineEnding"),e.consume(T),e.exit("lineEnding"),Q):Me(T)||ct(T)?(e.enter("esWhitespace"),nt(T)):ae(T)}function nt(T){return _e(T)?(e.exit("esWhitespace"),Te(T)):Me(T)||ct(T)?(e.consume(T),nt):(e.exit("esWhitespace"),ae(T))}function Q(T){if(!o&&te.parser.lazy[te.now().line]){const Ae=new qe("Unexpected lazy line in container, expected line to be prefixed with `>` when in a block quote, whitespace when in a list, etc",te.now(),"micromark-extension-mdx-jsx:unexpected-lazy");throw Ae.url=ml+"#unexpected-lazy-line-in-container-expected-line-to-be",Ae}return Te(T)}function re(T,Ae,Le){const at=new qe("Unexpected "+(T===null?"end of file":"character `"+(T===96?"` ` `":String.fromCodePoint(T))+"` ("+$m(T)+")")+" "+Ae+", expected "+Le,te.now(),"micromark-extension-mdx-jsx:unexpected-"+(T===null?"eof":"character"));throw at.url=ml+(T===null?"#unexpected-end-of-file-at-expected-expect":"#unexpected-character-at-expected-expect"),at}}function $m(e){return"U+"+e.toString(16).toUpperCase().padStart(4,"0")}function qm(e,t){return{name:"mdxJsxTextTag",tokenize:n};function n(i,r,s){return ih.call(this,i,r,s,e,t.acornOptions,t.addResult,!0,"mdxJsxTextTag","mdxJsxTextTagMarker","mdxJsxTextTagClosingMarker","mdxJsxTextTagSelfClosingMarker","mdxJsxTextTagName","mdxJsxTextTagNamePrimary","mdxJsxTextTagNameMemberMarker","mdxJsxTextTagNameMember","mdxJsxTextTagNamePrefixMarker","mdxJsxTextTagNameLocal","mdxJsxTextTagExpressionAttribute","mdxJsxTextTagExpressionAttributeMarker","mdxJsxTextTagExpressionAttributeValue","mdxJsxTextTagAttribute","mdxJsxTextTagAttributeName","mdxJsxTextTagAttributeNamePrimary","mdxJsxTextTagAttributeNamePrefixMarker","mdxJsxTextTagAttributeNameLocal","mdxJsxTextTagAttributeInitializerMarker","mdxJsxTextTagAttributeValueLiteral","mdxJsxTextTagAttributeValueLiteralMarker","mdxJsxTextTagAttributeValueLiteralValue","mdxJsxTextTagAttributeValueExpression","mdxJsxTextTagAttributeValueExpressionMarker","mdxJsxTextTagAttributeValueExpressionValue")}}function Wm(e,t){return{concrete:!0,name:"mdxJsxFlowTag",tokenize:n};function n(i,r,s){const o=this;return l;function l(h){return u(h)}function u(h){return ih.call(o,i,f,s,e,t.acornOptions,t.addResult,!1,"mdxJsxFlowTag","mdxJsxFlowTagMarker","mdxJsxFlowTagClosingMarker","mdxJsxFlowTagSelfClosingMarker","mdxJsxFlowTagName","mdxJsxFlowTagNamePrimary","mdxJsxFlowTagNameMemberMarker","mdxJsxFlowTagNameMember","mdxJsxFlowTagNamePrefixMarker","mdxJsxFlowTagNameLocal","mdxJsxFlowTagExpressionAttribute","mdxJsxFlowTagExpressionAttributeMarker","mdxJsxFlowTagExpressionAttributeValue","mdxJsxFlowTagAttribute","mdxJsxFlowTagAttributeName","mdxJsxFlowTagAttributeNamePrimary","mdxJsxFlowTagAttributeNamePrefixMarker","mdxJsxFlowTagAttributeNameLocal","mdxJsxFlowTagAttributeInitializerMarker","mdxJsxFlowTagAttributeValueLiteral","mdxJsxFlowTagAttributeValueLiteralMarker","mdxJsxFlowTagAttributeValueLiteralValue","mdxJsxFlowTagAttributeValueExpression","mdxJsxFlowTagAttributeValueExpressionMarker","mdxJsxFlowTagAttributeValueExpressionValue")(h)}function f(h){return Me(h)?je(i,p,"whitespace")(h):p(h)}function p(h){const d=o.parser.constructs.flow[123],m=Array.isArray(d)?d:d?[d]:[];let b;for(const v of m)if(v.name==="mdxFlowExpression"){b=v;break}return h===60?l(h):h===123&&b?i.attempt(b,p,s)(h):h===null||_e(h)?r(h):s(h)}}}function Gm(e){const t=e||{},n=t.acorn;let i;if(n){if(!n.parse||!n.parseExpressionAt)throw new Error("Expected a proper `acorn` instance passed in as `options.acorn`");i=Object.assign({ecmaVersion:2024,sourceType:"module"},t.acornOptions,{locations:!0})}else if(t.acornOptions||t.addResult)throw new Error("Expected an `acorn` instance passed in as `options.acorn`");return{flow:{60:Wm(n||void 0,{acornOptions:i,addResult:t.addResult||void 0})},text:{60:qm(n||void 0,{acornOptions:i,addResult:t.addResult||void 0})}}}function Jm(){return{disable:{null:["autolink","codeIndented","htmlFlow","htmlText"]}}}function Et(e,t,n,i){const r=e.length;let s=0,o;if(t<0?t=-t>r?0:r+t:t=t>r?r:t,n=n>0?n:0,i.length<1e4)o=Array.from(i),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);s<i.length;)o=i.slice(s,s+1e4),o.unshift(t,0),e.splice(...o),s+=1e4,t+=1e4}function Pt(e,t){return e.length>0?(Et(e,e.length,0,t),e):t}function qn(e){if(e===null||Ke(e)||ct(e))return 1;if(Mr(e))return 2}function Fr(e,t,n){const i=[];let r=-1;for(;++r<e.length;){const s=e[r].resolveAll;s&&!i.includes(s)&&(t=s(t,n),i.push(s))}return t}const Wa={name:"attention",resolveAll:Ym,tokenize:Qm};function Ym(e,t){let n=-1,i,r,s,o,l,u,f,p;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(i=n;i--;)if(e[i][0]==="exit"&&e[i][1].type==="attentionSequence"&&e[i][1]._open&&t.sliceSerialize(e[i][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[i][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[i][1].end.offset-e[i][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;u=e[i][1].end.offset-e[i][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const h={...e[i][1].end},d={...e[n][1].start};xl(h,-u),xl(d,u),o={type:u>1?"strongSequence":"emphasisSequence",start:h,end:{...e[i][1].end}},l={type:u>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:d},s={type:u>1?"strongText":"emphasisText",start:{...e[i][1].end},end:{...e[n][1].start}},r={type:u>1?"strong":"emphasis",start:{...o.start},end:{...l.end}},e[i][1].end={...o.start},e[n][1].start={...l.end},f=[],e[i][1].end.offset-e[i][1].start.offset&&(f=Pt(f,[["enter",e[i][1],t],["exit",e[i][1],t]])),f=Pt(f,[["enter",r,t],["enter",o,t],["exit",o,t],["enter",s,t]]),f=Pt(f,Fr(t.parser.constructs.insideSpan.null,e.slice(i+1,n),t)),f=Pt(f,[["exit",s,t],["enter",l,t],["exit",l,t],["exit",r,t]]),e[n][1].end.offset-e[n][1].start.offset?(p=2,f=Pt(f,[["enter",e[n][1],t],["exit",e[n][1],t]])):p=0,Et(e,i-1,n-i+3,f),n=i+f.length-p-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function Qm(e,t){const n=this.parser.constructs.attentionMarkers.null,i=this.previous,r=qn(i);let s;return o;function o(u){return s=u,e.enter("attentionSequence"),l(u)}function l(u){if(u===s)return e.consume(u),l;const f=e.exit("attentionSequence"),p=qn(u),h=!p||p===2&&r||n.includes(u),d=!r||r===2&&p||n.includes(i);return f._open=!!(s===42?h:h&&(r||!d)),f._close=!!(s===42?d:d&&(p||!h)),t(u)}}function xl(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Zm={name:"autolink",tokenize:Xm};function Xm(e,t,n){let i=0;return r;function r(m){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(m),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),s}function s(m){return lt(m)?(e.consume(m),o):m===64?n(m):f(m)}function o(m){return m===43||m===45||m===46||gt(m)?(i=1,l(m)):f(m)}function l(m){return m===58?(e.consume(m),i=0,u):(m===43||m===45||m===46||gt(m))&&i++<32?(e.consume(m),l):(i=0,f(m))}function u(m){return m===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(m),e.exit("autolinkMarker"),e.exit("autolink"),t):m===null||m===32||m===60||dr(m)?n(m):(e.consume(m),u)}function f(m){return m===64?(e.consume(m),p):km(m)?(e.consume(m),f):n(m)}function p(m){return gt(m)?h(m):n(m)}function h(m){return m===46?(e.consume(m),i=0,p):m===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(m),e.exit("autolinkMarker"),e.exit("autolink"),t):d(m)}function d(m){if((m===45||gt(m))&&i++<63){const b=m===45?d:h;return e.consume(m),b}return n(m)}}const ti={partial:!0,tokenize:ex};function ex(e,t,n){return i;function i(s){return Me(s)?je(e,r,"linePrefix")(s):r(s)}function r(s){return s===null||_e(s)?t(s):n(s)}}const rh={continuation:{tokenize:nx},exit:ix,name:"blockQuote",tokenize:tx};function tx(e,t,n){const i=this;return r;function r(o){if(o===62){const l=i.containerState;return l.open||(e.enter("blockQuote",{_container:!0}),l.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(o),e.exit("blockQuoteMarker"),s}return n(o)}function s(o){return Me(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(o))}}function nx(e,t,n){const i=this;return r;function r(o){return Me(o)?je(e,s,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):s(o)}function s(o){return e.attempt(rh,t,n)(o)}}function ix(e){e.exit("blockQuote")}const ah={name:"characterEscape",tokenize:rx};function rx(e,t,n){return i;function i(s){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(s),e.exit("escapeMarker"),r}function r(s){return _m(s)?(e.enter("characterEscapeValue"),e.consume(s),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(s)}}const sh={name:"characterReference",tokenize:ax};function ax(e,t,n){const i=this;let r=0,s,o;return l;function l(h){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(h),e.exit("characterReferenceMarker"),u}function u(h){return h===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(h),e.exit("characterReferenceMarkerNumeric"),f):(e.enter("characterReferenceValue"),s=31,o=gt,p(h))}function f(h){return h===88||h===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(h),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),s=6,o=Cm,p):(e.enter("characterReferenceValue"),s=7,o=qa,p(h))}function p(h){if(h===59&&r){const d=e.exit("characterReferenceValue");return o===gt&&!mi(i.sliceSerialize(d))?n(h):(e.enter("characterReferenceMarker"),e.consume(h),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return o(h)&&r++<s?(e.consume(h),p):n(h)}}const vl={partial:!0,tokenize:ox},bl={concrete:!0,name:"codeFenced",tokenize:sx};function sx(e,t,n){const i=this,r={partial:!0,tokenize:y};let s=0,o=0,l;return u;function u(g){return f(g)}function f(g){const A=i.events[i.events.length-1];return s=A&&A[1].type==="linePrefix"?A[2].sliceSerialize(A[1],!0).length:0,l=g,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),p(g)}function p(g){return g===l?(o++,e.consume(g),p):o<3?n(g):(e.exit("codeFencedFenceSequence"),Me(g)?je(e,h,"whitespace")(g):h(g))}function h(g){return g===null||_e(g)?(e.exit("codeFencedFence"),i.interrupt?t(g):e.check(vl,v,N)(g)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),d(g))}function d(g){return g===null||_e(g)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),h(g)):Me(g)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),je(e,m,"whitespace")(g)):g===96&&g===l?n(g):(e.consume(g),d)}function m(g){return g===null||_e(g)?h(g):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),b(g))}function b(g){return g===null||_e(g)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),h(g)):g===96&&g===l?n(g):(e.consume(g),b)}function v(g){return e.attempt(r,N,S)(g)}function S(g){return e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),E}function E(g){return s>0&&Me(g)?je(e,k,"linePrefix",s+1)(g):k(g)}function k(g){return g===null||_e(g)?e.check(vl,v,N)(g):(e.enter("codeFlowValue"),I(g))}function I(g){return g===null||_e(g)?(e.exit("codeFlowValue"),k(g)):(e.consume(g),I)}function N(g){return e.exit("codeFenced"),t(g)}function y(g,A,M){let F=0;return R;function R(ue){return g.enter("lineEnding"),g.consume(ue),g.exit("lineEnding"),j}function j(ue){return g.enter("codeFencedFence"),Me(ue)?je(g,B,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(ue):B(ue)}function B(ue){return ue===l?(g.enter("codeFencedFenceSequence"),D(ue)):M(ue)}function D(ue){return ue===l?(F++,g.consume(ue),D):F>=o?(g.exit("codeFencedFenceSequence"),Me(ue)?je(g,se,"whitespace")(ue):se(ue)):M(ue)}function se(ue){return ue===null||_e(ue)?(g.exit("codeFencedFence"),A(ue)):M(ue)}}}function ox(e,t,n){const i=this;return r;function r(o){return o===null?n(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),s)}function s(o){return i.parser.lazy[i.now().line]?n(o):t(o)}}const ra={name:"codeIndented",tokenize:ux},lx={partial:!0,tokenize:cx};function ux(e,t,n){const i=this;return r;function r(f){return e.enter("codeIndented"),je(e,s,"linePrefix",5)(f)}function s(f){const p=i.events[i.events.length-1];return p&&p[1].type==="linePrefix"&&p[2].sliceSerialize(p[1],!0).length>=4?o(f):n(f)}function o(f){return f===null?u(f):_e(f)?e.attempt(lx,o,u)(f):(e.enter("codeFlowValue"),l(f))}function l(f){return f===null||_e(f)?(e.exit("codeFlowValue"),o(f)):(e.consume(f),l)}function u(f){return e.exit("codeIndented"),t(f)}}function cx(e,t,n){const i=this;return r;function r(o){return i.parser.lazy[i.now().line]?n(o):_e(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),r):je(e,s,"linePrefix",5)(o)}function s(o){const l=i.events[i.events.length-1];return l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?t(o):_e(o)?r(o):n(o)}}const hx={name:"codeText",previous:px,resolve:fx,tokenize:dx};function fx(e){let t=e.length-4,n=3,i,r;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(i=n;++i<t;)if(e[i][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(i=n-1,t++;++i<=t;)r===void 0?i!==t&&e[i][1].type!=="lineEnding"&&(r=i):(i===t||e[i][1].type==="lineEnding")&&(e[r][1].type="codeTextData",i!==r+2&&(e[r][1].end=e[i-1][1].end,e.splice(r+2,i-r-2),t-=i-r-2,i=r+2),r=void 0);return e}function px(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function dx(e,t,n){let i=0,r,s;return o;function o(h){return e.enter("codeText"),e.enter("codeTextSequence"),l(h)}function l(h){return h===96?(e.consume(h),i++,l):(e.exit("codeTextSequence"),u(h))}function u(h){return h===null?n(h):h===32?(e.enter("space"),e.consume(h),e.exit("space"),u):h===96?(s=e.enter("codeTextSequence"),r=0,p(h)):_e(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),u):(e.enter("codeTextData"),f(h))}function f(h){return h===null||h===32||h===96||_e(h)?(e.exit("codeTextData"),u(h)):(e.consume(h),f)}function p(h){return h===96?(e.consume(h),r++,p):r===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(h)):(s.type="codeTextData",f(h))}}class gx{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const i=n??Number.POSITIVE_INFINITY;return i<this.left.length?this.left.slice(t,i):t>this.left.length?this.right.slice(this.right.length-i+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-i+this.left.length).reverse())}splice(t,n,i){const r=n||0;this.setCursor(Math.trunc(t));const s=this.right.splice(this.right.length-r,Number.POSITIVE_INFINITY);return i&&si(this.left,i),s.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),si(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),si(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);si(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);si(this.left,n.reverse())}}}function si(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function oh(e){const t={};let n=-1,i,r,s,o,l,u,f;const p=new gx(e);for(;++n<p.length;){for(;n in t;)n=t[n];if(i=p.get(n),n&&i[1].type==="chunkFlow"&&p.get(n-1)[1].type==="listItemPrefix"&&(u=i[1]._tokenizer.events,s=0,s<u.length&&u[s][1].type==="lineEndingBlank"&&(s+=2),s<u.length&&u[s][1].type==="content"))for(;++s<u.length&&u[s][1].type!=="content";)u[s][1].type==="chunkText"&&(u[s][1]._isInFirstContentOfListItem=!0,s++);if(i[0]==="enter")i[1].contentType&&(Object.assign(t,mx(p,n)),n=t[n],f=!0);else if(i[1]._container){for(s=n,r=void 0;s--;)if(o=p.get(s),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank")o[0]==="enter"&&(r&&(p.get(r)[1].type="lineEndingBlank"),o[1].type="lineEnding",r=s);else if(!(o[1].type==="linePrefix"||o[1].type==="listItemIndent"))break;r&&(i[1].end={...p.get(r)[1].start},l=p.slice(r,n),l.unshift(i),p.splice(r,n-r+1,l))}}return Et(e,0,Number.POSITIVE_INFINITY,p.slice(0)),!f}function mx(e,t){const n=e.get(t)[1],i=e.get(t)[2];let r=t-1;const s=[];let o=n._tokenizer;o||(o=i.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));const l=o.events,u=[],f={};let p,h,d=-1,m=n,b=0,v=0;const S=[v];for(;m;){for(;e.get(++r)[1]!==m;);s.push(r),m._tokenizer||(p=i.sliceStream(m),m.next||p.push(null),h&&o.defineSkip(m.start),m._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(p),m._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),h=m,m=m.next}for(m=n;++d<l.length;)l[d][0]==="exit"&&l[d-1][0]==="enter"&&l[d][1].type===l[d-1][1].type&&l[d][1].start.line!==l[d][1].end.line&&(v=d+1,S.push(v),m._tokenizer=void 0,m.previous=void 0,m=m.next);for(o.events=[],m?(m._tokenizer=void 0,m.previous=void 0):S.pop(),d=S.length;d--;){const E=l.slice(S[d],S[d+1]),k=s.pop();u.push([k,k+E.length-1]),e.splice(k,2,E)}for(u.reverse(),d=-1;++d<u.length;)f[b+u[d][0]]=b+u[d][1],b+=u[d][1]-u[d][0]-1;return f}const xx={resolve:bx,tokenize:yx},vx={partial:!0,tokenize:wx};function bx(e){return oh(e),e}function yx(e,t){let n;return i;function i(l){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(l)}function r(l){return l===null?s(l):_e(l)?e.check(vx,o,s)(l):(e.consume(l),r)}function s(l){return e.exit("chunkContent"),e.exit("content"),t(l)}function o(l){return e.consume(l),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}function wx(e,t,n){const i=this;return r;function r(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),je(e,s,"linePrefix")}function s(o){if(o===null||_e(o))return n(o);const l=i.events[i.events.length-1];return!i.parser.constructs.disable.null.includes("codeIndented")&&l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?t(o):e.interrupt(i.parser.constructs.flow,n,t)(o)}}function lh(e,t,n,i,r,s,o,l,u){const f=u||Number.POSITIVE_INFINITY;let p=0;return h;function h(E){return E===60?(e.enter(i),e.enter(r),e.enter(s),e.consume(E),e.exit(s),d):E===null||E===32||E===41||dr(E)?n(E):(e.enter(i),e.enter(o),e.enter(l),e.enter("chunkString",{contentType:"string"}),v(E))}function d(E){return E===62?(e.enter(s),e.consume(E),e.exit(s),e.exit(r),e.exit(i),t):(e.enter(l),e.enter("chunkString",{contentType:"string"}),m(E))}function m(E){return E===62?(e.exit("chunkString"),e.exit(l),d(E)):E===null||E===60||_e(E)?n(E):(e.consume(E),E===92?b:m)}function b(E){return E===60||E===62||E===92?(e.consume(E),m):m(E)}function v(E){return!p&&(E===null||E===41||Ke(E))?(e.exit("chunkString"),e.exit(l),e.exit(o),e.exit(i),t(E)):p<f&&E===40?(e.consume(E),p++,v):E===41?(e.consume(E),p--,v):E===null||E===32||E===40||dr(E)?n(E):(e.consume(E),E===92?S:v)}function S(E){return E===40||E===41||E===92?(e.consume(E),v):v(E)}}function uh(e,t,n,i,r,s){const o=this;let l=0,u;return f;function f(m){return e.enter(i),e.enter(r),e.consume(m),e.exit(r),e.enter(s),p}function p(m){return l>999||m===null||m===91||m===93&&!u||m===94&&!l&&"_hiddenFootnoteSupport"in o.parser.constructs?n(m):m===93?(e.exit(s),e.enter(r),e.consume(m),e.exit(r),e.exit(i),t):_e(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),p):(e.enter("chunkString",{contentType:"string"}),h(m))}function h(m){return m===null||m===91||m===93||_e(m)||l++>999?(e.exit("chunkString"),p(m)):(e.consume(m),u||(u=!Me(m)),m===92?d:h)}function d(m){return m===91||m===92||m===93?(e.consume(m),l++,h):h(m)}}function ch(e,t,n,i,r,s){let o;return l;function l(d){return d===34||d===39||d===40?(e.enter(i),e.enter(r),e.consume(d),e.exit(r),o=d===40?41:d,u):n(d)}function u(d){return d===o?(e.enter(r),e.consume(d),e.exit(r),e.exit(i),t):(e.enter(s),f(d))}function f(d){return d===o?(e.exit(s),u(o)):d===null?n(d):_e(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),je(e,f,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),p(d))}function p(d){return d===o||d===null||_e(d)?(e.exit("chunkString"),f(d)):(e.consume(d),d===92?h:p)}function h(d){return d===o||d===92?(e.consume(d),p):p(d)}}function hi(e,t){let n;return i;function i(r){return _e(r)?(e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),n=!0,i):Me(r)?je(e,i,n?"linePrefix":"lineSuffix")(r):t(r)}}function zt(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Ex={name:"definition",tokenize:kx},Sx={partial:!0,tokenize:Cx};function kx(e,t,n){const i=this;let r;return s;function s(m){return e.enter("definition"),o(m)}function o(m){return uh.call(i,e,l,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(m)}function l(m){return r=zt(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),m===58?(e.enter("definitionMarker"),e.consume(m),e.exit("definitionMarker"),u):n(m)}function u(m){return Ke(m)?hi(e,f)(m):f(m)}function f(m){return lh(e,p,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(m)}function p(m){return e.attempt(Sx,h,h)(m)}function h(m){return Me(m)?je(e,d,"whitespace")(m):d(m)}function d(m){return m===null||_e(m)?(e.exit("definition"),i.parser.defined.push(r),t(m)):n(m)}}function Cx(e,t,n){return i;function i(l){return Ke(l)?hi(e,r)(l):n(l)}function r(l){return ch(e,s,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(l)}function s(l){return Me(l)?je(e,o,"whitespace")(l):o(l)}function o(l){return l===null||_e(l)?t(l):n(l)}}const _x={name:"hardBreakEscape",tokenize:Ix};function Ix(e,t,n){return i;function i(s){return e.enter("hardBreakEscape"),e.consume(s),r}function r(s){return _e(s)?(e.exit("hardBreakEscape"),t(s)):n(s)}}const Ax={name:"headingAtx",resolve:Tx,tokenize:Nx};function Tx(e,t){let n=e.length-2,i=3,r,s;return e[i][1].type==="whitespace"&&(i+=2),n-2>i&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(i===n-1||n-4>i&&e[n-2][1].type==="whitespace")&&(n-=i+1===n?2:4),n>i&&(r={type:"atxHeadingText",start:e[i][1].start,end:e[n][1].end},s={type:"chunkText",start:e[i][1].start,end:e[n][1].end,contentType:"text"},Et(e,i,n-i+1,[["enter",r,t],["enter",s,t],["exit",s,t],["exit",r,t]])),e}function Nx(e,t,n){let i=0;return r;function r(p){return e.enter("atxHeading"),s(p)}function s(p){return e.enter("atxHeadingSequence"),o(p)}function o(p){return p===35&&i++<6?(e.consume(p),o):p===null||Ke(p)?(e.exit("atxHeadingSequence"),l(p)):n(p)}function l(p){return p===35?(e.enter("atxHeadingSequence"),u(p)):p===null||_e(p)?(e.exit("atxHeading"),t(p)):Me(p)?je(e,l,"whitespace")(p):(e.enter("atxHeadingText"),f(p))}function u(p){return p===35?(e.consume(p),u):(e.exit("atxHeadingSequence"),l(p))}function f(p){return p===null||p===35||Ke(p)?(e.exit("atxHeadingText"),l(p)):(e.consume(p),f)}}const Px=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],yl=["pre","script","style","textarea"],Ox={concrete:!0,name:"htmlFlow",resolveTo:Mx,tokenize:Fx},Rx={partial:!0,tokenize:jx},Lx={partial:!0,tokenize:Dx};function Mx(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function Fx(e,t,n){const i=this;let r,s,o,l,u;return f;function f(O){return p(O)}function p(O){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(O),h}function h(O){return O===33?(e.consume(O),d):O===47?(e.consume(O),s=!0,v):O===63?(e.consume(O),r=3,i.interrupt?t:L):lt(O)?(e.consume(O),o=String.fromCharCode(O),S):n(O)}function d(O){return O===45?(e.consume(O),r=2,m):O===91?(e.consume(O),r=5,l=0,b):lt(O)?(e.consume(O),r=4,i.interrupt?t:L):n(O)}function m(O){return O===45?(e.consume(O),i.interrupt?t:L):n(O)}function b(O){const he="CDATA[";return O===he.charCodeAt(l++)?(e.consume(O),l===he.length?i.interrupt?t:B:b):n(O)}function v(O){return lt(O)?(e.consume(O),o=String.fromCharCode(O),S):n(O)}function S(O){if(O===null||O===47||O===62||Ke(O)){const he=O===47,W=o.toLowerCase();return!he&&!s&&yl.includes(W)?(r=1,i.interrupt?t(O):B(O)):Px.includes(o.toLowerCase())?(r=6,he?(e.consume(O),E):i.interrupt?t(O):B(O)):(r=7,i.interrupt&&!i.parser.lazy[i.now().line]?n(O):s?k(O):I(O))}return O===45||gt(O)?(e.consume(O),o+=String.fromCharCode(O),S):n(O)}function E(O){return O===62?(e.consume(O),i.interrupt?t:B):n(O)}function k(O){return Me(O)?(e.consume(O),k):R(O)}function I(O){return O===47?(e.consume(O),R):O===58||O===95||lt(O)?(e.consume(O),N):Me(O)?(e.consume(O),I):R(O)}function N(O){return O===45||O===46||O===58||O===95||gt(O)?(e.consume(O),N):y(O)}function y(O){return O===61?(e.consume(O),g):Me(O)?(e.consume(O),y):I(O)}function g(O){return O===null||O===60||O===61||O===62||O===96?n(O):O===34||O===39?(e.consume(O),u=O,A):Me(O)?(e.consume(O),g):M(O)}function A(O){return O===u?(e.consume(O),u=null,F):O===null||_e(O)?n(O):(e.consume(O),A)}function M(O){return O===null||O===34||O===39||O===47||O===60||O===61||O===62||O===96||Ke(O)?y(O):(e.consume(O),M)}function F(O){return O===47||O===62||Me(O)?I(O):n(O)}function R(O){return O===62?(e.consume(O),j):n(O)}function j(O){return O===null||_e(O)?B(O):Me(O)?(e.consume(O),j):n(O)}function B(O){return O===45&&r===2?(e.consume(O),te):O===60&&r===1?(e.consume(O),ae):O===62&&r===4?(e.consume(O),G):O===63&&r===3?(e.consume(O),L):O===93&&r===5?(e.consume(O),ve):_e(O)&&(r===6||r===7)?(e.exit("htmlFlowData"),e.check(Rx,ne,D)(O)):O===null||_e(O)?(e.exit("htmlFlowData"),D(O)):(e.consume(O),B)}function D(O){return e.check(Lx,se,ne)(O)}function se(O){return e.enter("lineEnding"),e.consume(O),e.exit("lineEnding"),ue}function ue(O){return O===null||_e(O)?D(O):(e.enter("htmlFlowData"),B(O))}function te(O){return O===45?(e.consume(O),L):B(O)}function ae(O){return O===47?(e.consume(O),o="",ge):B(O)}function ge(O){if(O===62){const he=o.toLowerCase();return yl.includes(he)?(e.consume(O),G):B(O)}return lt(O)&&o.length<8?(e.consume(O),o+=String.fromCharCode(O),ge):B(O)}function ve(O){return O===93?(e.consume(O),L):B(O)}function L(O){return O===62?(e.consume(O),G):O===45&&r===2?(e.consume(O),L):B(O)}function G(O){return O===null||_e(O)?(e.exit("htmlFlowData"),ne(O)):(e.consume(O),G)}function ne(O){return e.exit("htmlFlow"),t(O)}}function Dx(e,t,n){const i=this;return r;function r(o){return _e(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),s):n(o)}function s(o){return i.parser.lazy[i.now().line]?n(o):t(o)}}function jx(e,t,n){return i;function i(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(ti,t,n)}}const Vx={name:"htmlText",tokenize:Bx};function Bx(e,t,n){const i=this;let r,s,o;return l;function l(L){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(L),u}function u(L){return L===33?(e.consume(L),f):L===47?(e.consume(L),y):L===63?(e.consume(L),I):lt(L)?(e.consume(L),M):n(L)}function f(L){return L===45?(e.consume(L),p):L===91?(e.consume(L),s=0,b):lt(L)?(e.consume(L),k):n(L)}function p(L){return L===45?(e.consume(L),m):n(L)}function h(L){return L===null?n(L):L===45?(e.consume(L),d):_e(L)?(o=h,ae(L)):(e.consume(L),h)}function d(L){return L===45?(e.consume(L),m):h(L)}function m(L){return L===62?te(L):L===45?d(L):h(L)}function b(L){const G="CDATA[";return L===G.charCodeAt(s++)?(e.consume(L),s===G.length?v:b):n(L)}function v(L){return L===null?n(L):L===93?(e.consume(L),S):_e(L)?(o=v,ae(L)):(e.consume(L),v)}function S(L){return L===93?(e.consume(L),E):v(L)}function E(L){return L===62?te(L):L===93?(e.consume(L),E):v(L)}function k(L){return L===null||L===62?te(L):_e(L)?(o=k,ae(L)):(e.consume(L),k)}function I(L){return L===null?n(L):L===63?(e.consume(L),N):_e(L)?(o=I,ae(L)):(e.consume(L),I)}function N(L){return L===62?te(L):I(L)}function y(L){return lt(L)?(e.consume(L),g):n(L)}function g(L){return L===45||gt(L)?(e.consume(L),g):A(L)}function A(L){return _e(L)?(o=A,ae(L)):Me(L)?(e.consume(L),A):te(L)}function M(L){return L===45||gt(L)?(e.consume(L),M):L===47||L===62||Ke(L)?F(L):n(L)}function F(L){return L===47?(e.consume(L),te):L===58||L===95||lt(L)?(e.consume(L),R):_e(L)?(o=F,ae(L)):Me(L)?(e.consume(L),F):te(L)}function R(L){return L===45||L===46||L===58||L===95||gt(L)?(e.consume(L),R):j(L)}function j(L){return L===61?(e.consume(L),B):_e(L)?(o=j,ae(L)):Me(L)?(e.consume(L),j):F(L)}function B(L){return L===null||L===60||L===61||L===62||L===96?n(L):L===34||L===39?(e.consume(L),r=L,D):_e(L)?(o=B,ae(L)):Me(L)?(e.consume(L),B):(e.consume(L),se)}function D(L){return L===r?(e.consume(L),r=void 0,ue):L===null?n(L):_e(L)?(o=D,ae(L)):(e.consume(L),D)}function se(L){return L===null||L===34||L===39||L===60||L===61||L===96?n(L):L===47||L===62||Ke(L)?F(L):(e.consume(L),se)}function ue(L){return L===47||L===62||Ke(L)?F(L):n(L)}function te(L){return L===62?(e.consume(L),e.exit("htmlTextData"),e.exit("htmlText"),t):n(L)}function ae(L){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(L),e.exit("lineEnding"),ge}function ge(L){return Me(L)?je(e,ve,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(L):ve(L)}function ve(L){return e.enter("htmlTextData"),o(L)}}const xs={name:"labelEnd",resolveAll:Hx,resolveTo:$x,tokenize:qx},zx={tokenize:Wx},Kx={tokenize:Gx},Ux={tokenize:Jx};function Hx(e){let t=-1;const n=[];for(;++t<e.length;){const i=e[t][1];if(n.push(e[t]),i.type==="labelImage"||i.type==="labelLink"||i.type==="labelEnd"){const r=i.type==="labelImage"?4:2;i.type="data",t+=r}}return e.length!==n.length&&Et(e,0,e.length,n),e}function $x(e,t){let n=e.length,i=0,r,s,o,l;for(;n--;)if(r=e[n][1],s){if(r.type==="link"||r.type==="labelLink"&&r._inactive)break;e[n][0]==="enter"&&r.type==="labelLink"&&(r._inactive=!0)}else if(o){if(e[n][0]==="enter"&&(r.type==="labelImage"||r.type==="labelLink")&&!r._balanced&&(s=n,r.type!=="labelLink")){i=2;break}}else r.type==="labelEnd"&&(o=n);const u={type:e[s][1].type==="labelLink"?"link":"image",start:{...e[s][1].start},end:{...e[e.length-1][1].end}},f={type:"label",start:{...e[s][1].start},end:{...e[o][1].end}},p={type:"labelText",start:{...e[s+i+2][1].end},end:{...e[o-2][1].start}};return l=[["enter",u,t],["enter",f,t]],l=Pt(l,e.slice(s+1,s+i+3)),l=Pt(l,[["enter",p,t]]),l=Pt(l,Fr(t.parser.constructs.insideSpan.null,e.slice(s+i+4,o-3),t)),l=Pt(l,[["exit",p,t],e[o-2],e[o-1],["exit",f,t]]),l=Pt(l,e.slice(o+1)),l=Pt(l,[["exit",u,t]]),Et(e,s,e.length,l),e}function qx(e,t,n){const i=this;let r=i.events.length,s,o;for(;r--;)if((i.events[r][1].type==="labelImage"||i.events[r][1].type==="labelLink")&&!i.events[r][1]._balanced){s=i.events[r][1];break}return l;function l(d){return s?s._inactive?h(d):(o=i.parser.defined.includes(zt(i.sliceSerialize({start:s.end,end:i.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(d),e.exit("labelMarker"),e.exit("labelEnd"),u):n(d)}function u(d){return d===40?e.attempt(zx,p,o?p:h)(d):d===91?e.attempt(Kx,p,o?f:h)(d):o?p(d):h(d)}function f(d){return e.attempt(Ux,p,h)(d)}function p(d){return t(d)}function h(d){return s._balanced=!0,n(d)}}function Wx(e,t,n){return i;function i(h){return e.enter("resource"),e.enter("resourceMarker"),e.consume(h),e.exit("resourceMarker"),r}function r(h){return Ke(h)?hi(e,s)(h):s(h)}function s(h){return h===41?p(h):lh(e,o,l,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(h)}function o(h){return Ke(h)?hi(e,u)(h):p(h)}function l(h){return n(h)}function u(h){return h===34||h===39||h===40?ch(e,f,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(h):p(h)}function f(h){return Ke(h)?hi(e,p)(h):p(h)}function p(h){return h===41?(e.enter("resourceMarker"),e.consume(h),e.exit("resourceMarker"),e.exit("resource"),t):n(h)}}function Gx(e,t,n){const i=this;return r;function r(l){return uh.call(i,e,s,o,"reference","referenceMarker","referenceString")(l)}function s(l){return i.parser.defined.includes(zt(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?t(l):n(l)}function o(l){return n(l)}}function Jx(e,t,n){return i;function i(s){return e.enter("reference"),e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),r}function r(s){return s===93?(e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),e.exit("reference"),t):n(s)}}const Yx={name:"labelStartImage",resolveAll:xs.resolveAll,tokenize:Qx};function Qx(e,t,n){const i=this;return r;function r(l){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(l),e.exit("labelImageMarker"),s}function s(l){return l===91?(e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelImage"),o):n(l)}function o(l){return l===94&&"_hiddenFootnoteSupport"in i.parser.constructs?n(l):t(l)}}const Zx={name:"labelStartLink",resolveAll:xs.resolveAll,tokenize:Xx};function Xx(e,t,n){const i=this;return r;function r(o){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelLink"),s}function s(o){return o===94&&"_hiddenFootnoteSupport"in i.parser.constructs?n(o):t(o)}}const aa={name:"lineEnding",tokenize:e0};function e0(e,t){return n;function n(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),je(e,t,"linePrefix")}}const nr={name:"thematicBreak",tokenize:t0};function t0(e,t,n){let i=0,r;return s;function s(f){return e.enter("thematicBreak"),o(f)}function o(f){return r=f,l(f)}function l(f){return f===r?(e.enter("thematicBreakSequence"),u(f)):i>=3&&(f===null||_e(f))?(e.exit("thematicBreak"),t(f)):n(f)}function u(f){return f===r?(e.consume(f),i++,u):(e.exit("thematicBreakSequence"),Me(f)?je(e,l,"whitespace")(f):l(f))}}const pt={continuation:{tokenize:a0},exit:o0,name:"list",tokenize:r0},n0={partial:!0,tokenize:l0},i0={partial:!0,tokenize:s0};function r0(e,t,n){const i=this,r=i.events[i.events.length-1];let s=r&&r[1].type==="linePrefix"?r[2].sliceSerialize(r[1],!0).length:0,o=0;return l;function l(m){const b=i.containerState.type||(m===42||m===43||m===45?"listUnordered":"listOrdered");if(b==="listUnordered"?!i.containerState.marker||m===i.containerState.marker:qa(m)){if(i.containerState.type||(i.containerState.type=b,e.enter(b,{_container:!0})),b==="listUnordered")return e.enter("listItemPrefix"),m===42||m===45?e.check(nr,n,f)(m):f(m);if(!i.interrupt||m===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),u(m)}return n(m)}function u(m){return qa(m)&&++o<10?(e.consume(m),u):(!i.interrupt||o<2)&&(i.containerState.marker?m===i.containerState.marker:m===41||m===46)?(e.exit("listItemValue"),f(m)):n(m)}function f(m){return e.enter("listItemMarker"),e.consume(m),e.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||m,e.check(ti,i.interrupt?n:p,e.attempt(n0,d,h))}function p(m){return i.containerState.initialBlankLine=!0,s++,d(m)}function h(m){return Me(m)?(e.enter("listItemPrefixWhitespace"),e.consume(m),e.exit("listItemPrefixWhitespace"),d):n(m)}function d(m){return i.containerState.size=s+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(m)}}function a0(e,t,n){const i=this;return i.containerState._closeFlow=void 0,e.check(ti,r,s);function r(l){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,je(e,t,"listItemIndent",i.containerState.size+1)(l)}function s(l){return i.containerState.furtherBlankLines||!Me(l)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,o(l)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,e.attempt(i0,t,o)(l))}function o(l){return i.containerState._closeFlow=!0,i.interrupt=void 0,je(e,e.attempt(pt,t,n),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l)}}function s0(e,t,n){const i=this;return je(e,r,"listItemIndent",i.containerState.size+1);function r(s){const o=i.events[i.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===i.containerState.size?t(s):n(s)}}function o0(e){e.exit(this.containerState.type)}function l0(e,t,n){const i=this;return je(e,r,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function r(s){const o=i.events[i.events.length-1];return!Me(s)&&o&&o[1].type==="listItemPrefixWhitespace"?t(s):n(s)}}const wl={name:"setextUnderline",resolveTo:u0,tokenize:c0};function u0(e,t){let n=e.length,i,r,s;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){i=n;break}e[n][1].type==="paragraph"&&(r=n)}else e[n][1].type==="content"&&e.splice(n,1),!s&&e[n][1].type==="definition"&&(s=n);const o={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[r][1].type="setextHeadingText",s?(e.splice(r,0,["enter",o,t]),e.splice(s+1,0,["exit",e[i][1],t]),e[i][1].end={...e[s][1].end}):e[i][1]=o,e.push(["exit",o,t]),e}function c0(e,t,n){const i=this;let r;return s;function s(f){let p=i.events.length,h;for(;p--;)if(i.events[p][1].type!=="lineEnding"&&i.events[p][1].type!=="linePrefix"&&i.events[p][1].type!=="content"){h=i.events[p][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||h)?(e.enter("setextHeadingLine"),r=f,o(f)):n(f)}function o(f){return e.enter("setextHeadingLineSequence"),l(f)}function l(f){return f===r?(e.consume(f),l):(e.exit("setextHeadingLineSequence"),Me(f)?je(e,u,"lineSuffix")(f):u(f))}function u(f){return f===null||_e(f)?(e.exit("setextHeadingLine"),t(f)):n(f)}}const h0={tokenize:d0,partial:!0},El="https://github.com/micromark/micromark-extension-mdxjs-esm",f0=new Set(["ExportAllDeclaration","ExportDefaultDeclaration","ExportNamedDeclaration","ImportDeclaration"]);function p0(e){const t={tokenize:r,concrete:!0};if(!e||!e.acorn||!e.acorn.parse)throw new Error("Expected an `acorn` instance passed in as `options.acorn`");const n=e.acorn,i=Object.assign({ecmaVersion:2024,sourceType:"module"},e.acornOptions,{locations:!0});return{flow:{101:t,105:t}};function r(s,o,l){const u=this,f=u.parser.definedModuleSpecifiers||(u.parser.definedModuleSpecifiers=[]),p=this.events.length+1;let h="";return u.interrupt?l:d;function d(k){return u.now().column>1?l(k):(s.enter("mdxjsEsm"),s.enter("mdxjsEsmData"),s.consume(k),h+=String.fromCharCode(k),m)}function m(k){return lt(k)?(s.consume(k),h+=String.fromCharCode(k),m):(h==="import"||h==="export")&&k===32?(s.consume(k),b):l(k)}function b(k){return k===null||_e(k)?(s.exit("mdxjsEsmData"),v(k)):(s.consume(k),b)}function v(k){return k===null?E(k):_e(k)?s.check(h0,E,S)(k):(s.enter("mdxjsEsmData"),b(k))}function S(k){return s.enter("lineEnding"),s.consume(k),s.exit("lineEnding"),v}function E(k){const I=nh(u.events.slice(p),{acorn:n,acornOptions:i,tokenTypes:["mdxjsEsmData"],prefix:f.length>0?"var "+f.join(",")+`
|
|
36
|
+
`:""});if(I.error){if(k!==null&&I.swallow)return S(k);const y=new qe("Could not parse import/exports with acorn",{cause:I.error,place:{line:I.error.loc.line,column:I.error.loc.column+1,offset:I.error.pos},ruleId:"acorn",source:"micromark-extension-mdxjs-esm"});throw y.url=El+"#could-not-parse-importexports-with-acorn",y}f.length>0&&I.estree.body.shift();let N=-1;for(;++N<I.estree.body.length;){const y=I.estree.body[N];if(!f0.has(y.type)){const g=new qe("Unexpected `"+y.type+"` in code: only import/exports are supported",{place:tr(y),ruleId:"non-esm",source:"micromark-extension-mdxjs-esm"});throw g.url=El+"#unexpected-type-in-code-only-importexports-are-supported",g}if(y.type==="ImportDeclaration"&&!u.interrupt){let g=-1;for(;++g<y.specifiers.length;){const A=y.specifiers[g];f.push(A.local.name)}}}return Object.assign(s.exit("mdxjsEsm"),e.addResult?{estree:I.estree}:void 0),o(k)}}}function d0(e,t,n){return i;function i(r){return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),e.attempt(ti,t,n)}}const Sl={}.hasOwnProperty;function vs(e){const t={};let n=-1;for(;++n<e.length;)g0(t,e[n]);return t}function g0(e,t){let n;for(n in t){const r=(Sl.call(e,n)?e[n]:void 0)||(e[n]={}),s=t[n];let o;if(s)for(o in s){Sl.call(r,o)||(r[o]=[]);const l=s[o];m0(r[o],Array.isArray(l)?l:l?[l]:[])}}}function m0(e,t){let n=-1;const i=[];for(;++n<t.length;)(t[n].add==="after"?e:i).push(t[n]);Et(e,0,0,i)}function x0(e){const t=Object.assign({acorn:rt.extend(Sm()),acornOptions:{ecmaVersion:2024,sourceType:"module"},addResult:!0},e);return vs([p0(t),Bm(t),Gm(t),Jm()])}const v0={};function b0(e){const t=this,n=e||v0,i=t.data(),r=i.micromarkExtensions||(i.micromarkExtensions=[]),s=i.fromMarkdownExtensions||(i.fromMarkdownExtensions=[]),o=i.toMarkdownExtensions||(i.toMarkdownExtensions=[]);r.push(x0(n)),s.push(Rg()),o.push(Lg(n))}const y0={};function w0(e,t){const n=y0,i=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,r=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return hh(e,i,r)}function hh(e,t,n){if(E0(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return kl(e.children,t,n)}return Array.isArray(e)?kl(e,t,n):""}function kl(e,t,n){const i=[];let r=-1;for(;++r<e.length;)i[r]=hh(e[r],t,n);return i.join("")}function E0(e){return!!(e&&typeof e=="object")}function fh(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}const S0={tokenize:k0};function k0(e){const t=e.attempt(this.parser.constructs.contentInitial,i,r);let n;return t;function i(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),je(e,t,"linePrefix")}function r(l){return e.enter("paragraph"),s(l)}function s(l){const u=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=u),n=u,o(l)}function o(l){if(l===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(l);return}return _e(l)?(e.consume(l),e.exit("chunkText"),s):(e.consume(l),o)}}const C0={tokenize:_0},Cl={tokenize:I0};function _0(e){const t=this,n=[];let i=0,r,s,o;return l;function l(I){if(i<n.length){const N=n[i];return t.containerState=N[1],e.attempt(N[0].continuation,u,f)(I)}return f(I)}function u(I){if(i++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&k();const N=t.events.length;let y=N,g;for(;y--;)if(t.events[y][0]==="exit"&&t.events[y][1].type==="chunkFlow"){g=t.events[y][1].end;break}E(i);let A=N;for(;A<t.events.length;)t.events[A][1].end={...g},A++;return Et(t.events,y+1,0,t.events.slice(N)),t.events.length=A,f(I)}return l(I)}function f(I){if(i===n.length){if(!r)return d(I);if(r.currentConstruct&&r.currentConstruct.concrete)return b(I);t.interrupt=!!(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Cl,p,h)(I)}function p(I){return r&&k(),E(i),d(I)}function h(I){return t.parser.lazy[t.now().line]=i!==n.length,o=t.now().offset,b(I)}function d(I){return t.containerState={},e.attempt(Cl,m,b)(I)}function m(I){return i++,n.push([t.currentConstruct,t.containerState]),d(I)}function b(I){if(I===null){r&&k(),E(0),e.consume(I);return}return r=r||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:r,contentType:"flow",previous:s}),v(I)}function v(I){if(I===null){S(e.exit("chunkFlow"),!0),E(0),e.consume(I);return}return _e(I)?(e.consume(I),S(e.exit("chunkFlow")),i=0,t.interrupt=void 0,l):(e.consume(I),v)}function S(I,N){const y=t.sliceStream(I);if(N&&y.push(null),I.previous=s,s&&(s.next=I),s=I,r.defineSkip(I.start),r.write(y),t.parser.lazy[I.start.line]){let g=r.events.length;for(;g--;)if(r.events[g][1].start.offset<o&&(!r.events[g][1].end||r.events[g][1].end.offset>o))return;const A=t.events.length;let M=A,F,R;for(;M--;)if(t.events[M][0]==="exit"&&t.events[M][1].type==="chunkFlow"){if(F){R=t.events[M][1].end;break}F=!0}for(E(i),g=A;g<t.events.length;)t.events[g][1].end={...R},g++;Et(t.events,M+1,0,t.events.slice(A)),t.events.length=g}}function E(I){let N=n.length;for(;N-- >I;){const y=n[N];t.containerState=y[1],y[0].exit.call(t,e)}n.length=I}function k(){r.write([null]),s=void 0,r=void 0,t.containerState._closeFlow=void 0}}function I0(e,t,n){return je(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}const A0={tokenize:T0};function T0(e){const t=this,n=e.attempt(ti,i,e.attempt(this.parser.constructs.flowInitial,r,je(e,e.attempt(this.parser.constructs.flow,r,e.attempt(xx,r)),"linePrefix")));return n;function i(s){if(s===null){e.consume(s);return}return e.enter("lineEndingBlank"),e.consume(s),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function r(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const N0={resolveAll:dh()},P0=ph("string"),O0=ph("text");function ph(e){return{resolveAll:dh(e==="text"?R0:void 0),tokenize:t};function t(n){const i=this,r=this.parser.constructs[e],s=n.attempt(r,o,l);return o;function o(p){return f(p)?s(p):l(p)}function l(p){if(p===null){n.consume(p);return}return n.enter("data"),n.consume(p),u}function u(p){return f(p)?(n.exit("data"),s(p)):(n.consume(p),u)}function f(p){if(p===null)return!0;const h=r[p];let d=-1;if(h)for(;++d<h.length;){const m=h[d];if(!m.previous||m.previous.call(i,i.previous))return!0}return!1}}}function dh(e){return t;function t(n,i){let r=-1,s;for(;++r<=n.length;)s===void 0?n[r]&&n[r][1].type==="data"&&(s=r,r++):(!n[r]||n[r][1].type!=="data")&&(r!==s+2&&(n[s][1].end=n[r-1][1].end,n.splice(s+2,r-s-2),r=s+2),s=void 0);return e?e(n,i):n}}function R0(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const i=e[n-1][1],r=t.sliceStream(i);let s=r.length,o=-1,l=0,u;for(;s--;){const f=r[s];if(typeof f=="string"){for(o=f.length;f.charCodeAt(o-1)===32;)l++,o--;if(o)break;o=-1}else if(f===-2)u=!0,l++;else if(f!==-1){s++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(l=0),l){const f={type:n===e.length||u||l<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:s?o:i.start._bufferIndex+o,_index:i.start._index+s,line:i.end.line,column:i.end.column-l,offset:i.end.offset-l},end:{...i.end}};i.end={...f.start},i.start.offset===i.end.offset?Object.assign(i,f):(e.splice(n,0,["enter",f,t],["exit",f,t]),n+=2)}n++}return e}const L0={42:pt,43:pt,45:pt,48:pt,49:pt,50:pt,51:pt,52:pt,53:pt,54:pt,55:pt,56:pt,57:pt,62:rh},M0={91:Ex},F0={[-2]:ra,[-1]:ra,32:ra},D0={35:Ax,42:nr,45:[wl,nr],60:Ox,61:wl,95:nr,96:bl,126:bl},j0={38:sh,92:ah},V0={[-5]:aa,[-4]:aa,[-3]:aa,33:Yx,38:sh,42:Wa,60:[Zm,Vx],91:Zx,92:[_x,ah],93:xs,95:Wa,96:hx},B0={null:[Wa,N0]},z0={null:[42,95]},K0={null:[]},U0=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:z0,contentInitial:M0,disable:K0,document:L0,flow:D0,flowInitial:F0,insideSpan:B0,string:j0,text:V0},Symbol.toStringTag,{value:"Module"}));function H0(e,t,n){let i={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const r={},s=[];let o=[],l=[];const u={attempt:A(y),check:A(g),consume:k,enter:I,exit:N,interrupt:A(g,{interrupt:!0})},f={code:null,containerState:{},defineSkip:v,events:[],now:b,parser:e,previous:null,sliceSerialize:d,sliceStream:m,write:h};let p=t.tokenize.call(f,u);return t.resolveAll&&s.push(t),f;function h(j){return o=Pt(o,j),S(),o[o.length-1]!==null?[]:(M(t,0),f.events=Fr(s,f.events,f),f.events)}function d(j,B){return q0(m(j),B)}function m(j){return $0(o,j)}function b(){const{_bufferIndex:j,_index:B,line:D,column:se,offset:ue}=i;return{_bufferIndex:j,_index:B,line:D,column:se,offset:ue}}function v(j){r[j.line]=j.column,R()}function S(){let j;for(;i._index<o.length;){const B=o[i._index];if(typeof B=="string")for(j=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===j&&i._bufferIndex<B.length;)E(B.charCodeAt(i._bufferIndex));else E(B)}}function E(j){p=p(j)}function k(j){_e(j)?(i.line++,i.column=1,i.offset+=j===-3?2:1,R()):j!==-1&&(i.column++,i.offset++),i._bufferIndex<0?i._index++:(i._bufferIndex++,i._bufferIndex===o[i._index].length&&(i._bufferIndex=-1,i._index++)),f.previous=j}function I(j,B){const D=B||{};return D.type=j,D.start=b(),f.events.push(["enter",D,f]),l.push(D),D}function N(j){const B=l.pop();return B.end=b(),f.events.push(["exit",B,f]),B}function y(j,B){M(j,B.from)}function g(j,B){B.restore()}function A(j,B){return D;function D(se,ue,te){let ae,ge,ve,L;return Array.isArray(se)?ne(se):"tokenize"in se?ne([se]):G(se);function G(Z){return H;function H(K){const J=K!==null&&Z[K],ie=K!==null&&Z.null,X=[...Array.isArray(J)?J:J?[J]:[],...Array.isArray(ie)?ie:ie?[ie]:[]];return ne(X)(K)}}function ne(Z){return ae=Z,ge=0,Z.length===0?te:O(Z[ge])}function O(Z){return H;function H(K){return L=F(),ve=Z,Z.partial||(f.currentConstruct=Z),Z.name&&f.parser.constructs.disable.null.includes(Z.name)?W():Z.tokenize.call(B?Object.assign(Object.create(f),B):f,u,he,W)(K)}}function he(Z){return j(ve,L),ue}function W(Z){return L.restore(),++ge<ae.length?O(ae[ge]):te}}}function M(j,B){j.resolveAll&&!s.includes(j)&&s.push(j),j.resolve&&Et(f.events,B,f.events.length-B,j.resolve(f.events.slice(B),f)),j.resolveTo&&(f.events=j.resolveTo(f.events,f))}function F(){const j=b(),B=f.previous,D=f.currentConstruct,se=f.events.length,ue=Array.from(l);return{from:se,restore:te};function te(){i=j,f.previous=B,f.currentConstruct=D,f.events.length=se,l=ue,R()}}function R(){i.line in r&&i.column<2&&(i.column=r[i.line],i.offset+=r[i.line]-1)}}function $0(e,t){const n=t.start._index,i=t.start._bufferIndex,r=t.end._index,s=t.end._bufferIndex;let o;if(n===r)o=[e[n].slice(i,s)];else{if(o=e.slice(n,r),i>-1){const l=o[0];typeof l=="string"?o[0]=l.slice(i):o.shift()}s>0&&o.push(e[r].slice(0,s))}return o}function q0(e,t){let n=-1;const i=[];let r;for(;++n<e.length;){const s=e[n];let o;if(typeof s=="string")o=s;else switch(s){case-5:{o="\r";break}case-4:{o=`
|
|
37
|
+
`;break}case-3:{o=`\r
|
|
38
|
+
`;break}case-2:{o=t?" ":" ";break}case-1:{if(!t&&r)continue;o=" ";break}default:o=String.fromCharCode(s)}r=s===-2,i.push(o)}return i.join("")}function W0(e){const i={constructs:vs([U0,...(e||{}).extensions||[]]),content:r(S0),defined:[],document:r(C0),flow:r(A0),lazy:{},string:r(P0),text:r(O0)};return i;function r(s){return o;function o(l){return H0(i,s,l)}}}function G0(e){for(;!oh(e););return e}const _l=/[\0\t\n\r]/g;function J0(){let e=1,t="",n=!0,i;return r;function r(s,o,l){const u=[];let f,p,h,d,m;for(s=t+(typeof s=="string"?s.toString():new TextDecoder(o||void 0).decode(s)),h=0,t="",n&&(s.charCodeAt(0)===65279&&h++,n=void 0);h<s.length;){if(_l.lastIndex=h,f=_l.exec(s),d=f&&f.index!==void 0?f.index:s.length,m=s.charCodeAt(d),!f){t=s.slice(h);break}if(m===10&&h===d&&i)u.push(-3),i=void 0;else switch(i&&(u.push(-5),i=void 0),h<d&&(u.push(s.slice(h,d)),e+=d-h),m){case 0:{u.push(65533),e++;break}case 9:{for(p=Math.ceil(e/4)*4,u.push(-2);e++<p;)u.push(-1);break}case 10:{u.push(-4),e=1;break}default:i=!0,e=1}h=d+1}return l&&(i&&u.push(-5),t&&u.push(t),u.push(null)),u}}const Y0=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function gh(e){return e.replace(Y0,Q0)}function Q0(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const r=n.charCodeAt(1),s=r===120||r===88;return fh(n.slice(s?2:1),s?16:10)}return mi(n)||e}const mh={}.hasOwnProperty;function Z0(e,t,n){return t&&typeof t=="object"&&(n=t,t=void 0),X0(n)(G0(W0(n).document().write(J0()(e,t,!0))))}function X0(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(Ie),autolinkProtocol:F,autolinkEmail:F,atxHeading:s(de),blockQuote:s(ie),characterEscape:F,characterReference:F,codeFenced:s(X),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:s(X,o),codeText:s($,o),codeTextData:F,data:F,codeFlowValue:F,definition:s(Y),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:s(le),hardBreakEscape:s(Se),hardBreakTrailing:s(Se),htmlFlow:s(ye,o),htmlFlowData:F,htmlText:s(ye,o),htmlTextData:F,image:s(ke),label:o,link:s(Ie),listItem:s(Pe),listItemValue:d,listOrdered:s(be,h),listUnordered:s(be),paragraph:s(Be),reference:O,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:s(de),strong:s($e),thematicBreak:s(nt)},exit:{atxHeading:u(),atxHeadingSequence:y,autolink:u(),autolinkEmail:J,autolinkProtocol:K,blockQuote:u(),characterEscapeValue:R,characterReferenceMarkerHexadecimal:W,characterReferenceMarkerNumeric:W,characterReferenceValue:Z,characterReference:H,codeFenced:u(S),codeFencedFence:v,codeFencedFenceInfo:m,codeFencedFenceMeta:b,codeFlowValue:R,codeIndented:u(E),codeText:u(ue),codeTextData:R,data:R,definition:u(),definitionDestinationString:N,definitionLabelString:k,definitionTitleString:I,emphasis:u(),hardBreakEscape:u(B),hardBreakTrailing:u(B),htmlFlow:u(D),htmlFlowData:R,htmlText:u(se),htmlTextData:R,image:u(ae),label:ve,labelText:ge,lineEnding:j,link:u(te),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:he,resourceDestinationString:L,resourceTitleString:G,resource:ne,setextHeading:u(M),setextHeadingLineSequence:A,setextHeadingText:g,strong:u(),thematicBreak:u()}};xh(t,(e||{}).mdastExtensions||[]);const n={};return i;function i(Q){let re={type:"root",children:[]};const T={stack:[re],tokenStack:[],config:t,enter:l,exit:f,buffer:o,resume:p,data:n},Ae=[];let Le=-1;for(;++Le<Q.length;)if(Q[Le][1].type==="listOrdered"||Q[Le][1].type==="listUnordered")if(Q[Le][0]==="enter")Ae.push(Le);else{const at=Ae.pop();Le=r(Q,at,Le)}for(Le=-1;++Le<Q.length;){const at=t[Q[Le][0]];mh.call(at,Q[Le][1].type)&&at[Q[Le][1].type].call(Object.assign({sliceSerialize:Q[Le][2].sliceSerialize},T),Q[Le][1])}if(T.tokenStack.length>0){const at=T.tokenStack[T.tokenStack.length-1];(at[1]||Il).call(T,void 0,at[0])}for(re.position={start:hn(Q.length>0?Q[0][1].start:{line:1,column:1,offset:0}),end:hn(Q.length>0?Q[Q.length-2][1].end:{line:1,column:1,offset:0})},Le=-1;++Le<t.transforms.length;)re=t.transforms[Le](re)||re;return re}function r(Q,re,T){let Ae=re-1,Le=-1,at=!1,kt,me,Zt,En;for(;++Ae<=T;){const ut=Q[Ae];switch(ut[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{ut[0]==="enter"?Le++:Le--,En=void 0;break}case"lineEndingBlank":{ut[0]==="enter"&&(kt&&!En&&!Le&&!Zt&&(Zt=Ae),En=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:En=void 0}if(!Le&&ut[0]==="enter"&&ut[1].type==="listItemPrefix"||Le===-1&&ut[0]==="exit"&&(ut[1].type==="listUnordered"||ut[1].type==="listOrdered")){if(kt){let Ct=Ae;for(me=void 0;Ct--;){const bt=Q[Ct];if(bt[1].type==="lineEnding"||bt[1].type==="lineEndingBlank"){if(bt[0]==="exit")continue;me&&(Q[me][1].type="lineEndingBlank",at=!0),bt[1].type="lineEnding",me=Ct}else if(!(bt[1].type==="linePrefix"||bt[1].type==="blockQuotePrefix"||bt[1].type==="blockQuotePrefixWhitespace"||bt[1].type==="blockQuoteMarker"||bt[1].type==="listItemIndent"))break}Zt&&(!me||Zt<me)&&(kt._spread=!0),kt.end=Object.assign({},me?Q[me][1].start:ut[1].end),Q.splice(me||Ae,0,["exit",kt,ut[2]]),Ae++,T++}if(ut[1].type==="listItemPrefix"){const Ct={type:"listItem",_spread:!1,start:Object.assign({},ut[1].start),end:void 0};kt=Ct,Q.splice(Ae,0,["enter",Ct,ut[2]]),Ae++,T++,Zt=void 0,En=!0}}}return Q[re][1]._spread=at,T}function s(Q,re){return T;function T(Ae){l.call(this,Q(Ae),Ae),re&&re.call(this,Ae)}}function o(){this.stack.push({type:"fragment",children:[]})}function l(Q,re,T){this.stack[this.stack.length-1].children.push(Q),this.stack.push(Q),this.tokenStack.push([re,T||void 0]),Q.position={start:hn(re.start),end:void 0}}function u(Q){return re;function re(T){Q&&Q.call(this,T),f.call(this,T)}}function f(Q,re){const T=this.stack.pop(),Ae=this.tokenStack.pop();if(Ae)Ae[0].type!==Q.type&&(re?re.call(this,Q,Ae[0]):(Ae[1]||Il).call(this,Q,Ae[0]));else throw new Error("Cannot close `"+Q.type+"` ("+en({start:Q.start,end:Q.end})+"): it’s not open");T.position.end=hn(Q.end)}function p(){return w0(this.stack.pop())}function h(){this.data.expectingFirstListItemValue=!0}function d(Q){if(this.data.expectingFirstListItemValue){const re=this.stack[this.stack.length-2];re.start=Number.parseInt(this.sliceSerialize(Q),10),this.data.expectingFirstListItemValue=void 0}}function m(){const Q=this.resume(),re=this.stack[this.stack.length-1];re.lang=Q}function b(){const Q=this.resume(),re=this.stack[this.stack.length-1];re.meta=Q}function v(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function S(){const Q=this.resume(),re=this.stack[this.stack.length-1];re.value=Q.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function E(){const Q=this.resume(),re=this.stack[this.stack.length-1];re.value=Q.replace(/(\r?\n|\r)$/g,"")}function k(Q){const re=this.resume(),T=this.stack[this.stack.length-1];T.label=re,T.identifier=zt(this.sliceSerialize(Q)).toLowerCase()}function I(){const Q=this.resume(),re=this.stack[this.stack.length-1];re.title=Q}function N(){const Q=this.resume(),re=this.stack[this.stack.length-1];re.url=Q}function y(Q){const re=this.stack[this.stack.length-1];if(!re.depth){const T=this.sliceSerialize(Q).length;re.depth=T}}function g(){this.data.setextHeadingSlurpLineEnding=!0}function A(Q){const re=this.stack[this.stack.length-1];re.depth=this.sliceSerialize(Q).codePointAt(0)===61?1:2}function M(){this.data.setextHeadingSlurpLineEnding=void 0}function F(Q){const T=this.stack[this.stack.length-1].children;let Ae=T[T.length-1];(!Ae||Ae.type!=="text")&&(Ae=Te(),Ae.position={start:hn(Q.start),end:void 0},T.push(Ae)),this.stack.push(Ae)}function R(Q){const re=this.stack.pop();re.value+=this.sliceSerialize(Q),re.position.end=hn(Q.end)}function j(Q){const re=this.stack[this.stack.length-1];if(this.data.atHardBreak){const T=re.children[re.children.length-1];T.position.end=hn(Q.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(re.type)&&(F.call(this,Q),R.call(this,Q))}function B(){this.data.atHardBreak=!0}function D(){const Q=this.resume(),re=this.stack[this.stack.length-1];re.value=Q}function se(){const Q=this.resume(),re=this.stack[this.stack.length-1];re.value=Q}function ue(){const Q=this.resume(),re=this.stack[this.stack.length-1];re.value=Q}function te(){const Q=this.stack[this.stack.length-1];if(this.data.inReference){const re=this.data.referenceType||"shortcut";Q.type+="Reference",Q.referenceType=re,delete Q.url,delete Q.title}else delete Q.identifier,delete Q.label;this.data.referenceType=void 0}function ae(){const Q=this.stack[this.stack.length-1];if(this.data.inReference){const re=this.data.referenceType||"shortcut";Q.type+="Reference",Q.referenceType=re,delete Q.url,delete Q.title}else delete Q.identifier,delete Q.label;this.data.referenceType=void 0}function ge(Q){const re=this.sliceSerialize(Q),T=this.stack[this.stack.length-2];T.label=gh(re),T.identifier=zt(re).toLowerCase()}function ve(){const Q=this.stack[this.stack.length-1],re=this.resume(),T=this.stack[this.stack.length-1];if(this.data.inReference=!0,T.type==="link"){const Ae=Q.children;T.children=Ae}else T.alt=re}function L(){const Q=this.resume(),re=this.stack[this.stack.length-1];re.url=Q}function G(){const Q=this.resume(),re=this.stack[this.stack.length-1];re.title=Q}function ne(){this.data.inReference=void 0}function O(){this.data.referenceType="collapsed"}function he(Q){const re=this.resume(),T=this.stack[this.stack.length-1];T.label=re,T.identifier=zt(this.sliceSerialize(Q)).toLowerCase(),this.data.referenceType="full"}function W(Q){this.data.characterReferenceType=Q.type}function Z(Q){const re=this.sliceSerialize(Q),T=this.data.characterReferenceType;let Ae;T?(Ae=fh(re,T==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Ae=mi(re);const Le=this.stack[this.stack.length-1];Le.value+=Ae}function H(Q){const re=this.stack.pop();re.position.end=hn(Q.end)}function K(Q){R.call(this,Q);const re=this.stack[this.stack.length-1];re.url=this.sliceSerialize(Q)}function J(Q){R.call(this,Q);const re=this.stack[this.stack.length-1];re.url="mailto:"+this.sliceSerialize(Q)}function ie(){return{type:"blockquote",children:[]}}function X(){return{type:"code",lang:null,meta:null,value:""}}function $(){return{type:"inlineCode",value:""}}function Y(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function le(){return{type:"emphasis",children:[]}}function de(){return{type:"heading",depth:0,children:[]}}function Se(){return{type:"break"}}function ye(){return{type:"html",value:""}}function ke(){return{type:"image",title:null,url:"",alt:null}}function Ie(){return{type:"link",title:null,url:"",children:[]}}function be(Q){return{type:"list",ordered:Q.type==="listOrdered",start:null,spread:Q._spread,children:[]}}function Pe(Q){return{type:"listItem",spread:Q._spread,checked:null,children:[]}}function Be(){return{type:"paragraph",children:[]}}function $e(){return{type:"strong",children:[]}}function Te(){return{type:"text",value:""}}function nt(){return{type:"thematicBreak"}}}function hn(e){return{line:e.line,column:e.column,offset:e.offset}}function xh(e,t){let n=-1;for(;++n<t.length;){const i=t[n];Array.isArray(i)?xh(e,i):ev(e,i)}}function ev(e,t){let n;for(n in t)if(mh.call(t,n))switch(n){case"canContainEols":{const i=t[n];i&&e[n].push(...i);break}case"transforms":{const i=t[n];i&&e[n].push(...i);break}case"enter":case"exit":{const i=t[n];i&&Object.assign(e[n],i);break}}}function Il(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+en({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+en({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+en({start:t.start,end:t.end})+") is still open")}function tv(e){const t=this;t.parser=n;function n(i){return Z0(i,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}const Al={}.hasOwnProperty;function nv(e,t){const n=t||{};function i(r,...s){let o=i.invalid;const l=i.handlers;if(r&&Al.call(r,e)){const u=String(r[e]);o=Al.call(l,u)?l[u]:i.unknown}if(o)return o.call(this,r,...s)}return i.handlers=n.handlers||{},i.invalid=n.invalid,i.unknown=n.unknown,i}const iv={}.hasOwnProperty;function vh(e,t){let n=-1,i;if(t.extensions)for(;++n<t.extensions.length;)vh(e,t.extensions[n]);for(i in t)if(iv.call(t,i))switch(i){case"extensions":break;case"unsafe":{Tl(e[i],t[i]);break}case"join":{Tl(e[i],t[i]);break}case"handlers":{rv(e[i],t[i]);break}default:e.options[i]=t[i]}return e}function Tl(e,t){t&&e.push(...t)}function rv(e,t){t&&Object.assign(e,t)}function av(e,t,n,i){const r=n.enter("blockquote"),s=n.createTracker(i);s.move("> "),s.shift(2);const o=n.indentLines(n.containerFlow(e,s.current()),sv);return r(),o}function sv(e,t,n){return">"+(n?"":" ")+e}function bh(e,t){return Nl(e,t.inConstruct,!0)&&!Nl(e,t.notInConstruct,!1)}function Nl(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let i=-1;for(;++i<t.length;)if(e.includes(t[i]))return!0;return!1}function Pl(e,t,n,i){let r=-1;for(;++r<n.unsafe.length;)if(n.unsafe[r].character===`
|
|
39
|
+
`&&bh(n.stack,n.unsafe[r]))return/[ \t]/.test(i.before)?"":" ";return`\\
|
|
40
|
+
`}function ov(e,t){const n=String(e);let i=n.indexOf(t),r=i,s=0,o=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;i!==-1;)i===r?++s>o&&(o=s):s=1,r=i+t.length,i=n.indexOf(t,r);return o}function Ga(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function lv(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function uv(e,t,n,i){const r=lv(n),s=e.value||"",o=r==="`"?"GraveAccent":"Tilde";if(Ga(e,n)){const h=n.enter("codeIndented"),d=n.indentLines(s,cv);return h(),d}const l=n.createTracker(i),u=r.repeat(Math.max(ov(s,r)+1,3)),f=n.enter("codeFenced");let p=l.move(u);if(e.lang){const h=n.enter(`codeFencedLang${o}`);p+=l.move(n.safe(e.lang,{before:p,after:" ",encode:["`"],...l.current()})),h()}if(e.lang&&e.meta){const h=n.enter(`codeFencedMeta${o}`);p+=l.move(" "),p+=l.move(n.safe(e.meta,{before:p,after:`
|
|
41
|
+
`,encode:["`"],...l.current()})),h()}return p+=l.move(`
|
|
42
|
+
`),s&&(p+=l.move(s+`
|
|
43
|
+
`)),p+=l.move(u),f(),p}function cv(e,t,n){return(n?"":" ")+e}function bs(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function hv(e,t,n,i){const r=bs(n),s=r==='"'?"Quote":"Apostrophe",o=n.enter("definition");let l=n.enter("label");const u=n.createTracker(i);let f=u.move("[");return f+=u.move(n.safe(n.associationId(e),{before:f,after:"]",...u.current()})),f+=u.move("]: "),l(),!e.url||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),f+=u.move("<"),f+=u.move(n.safe(e.url,{before:f,after:">",...u.current()})),f+=u.move(">")):(l=n.enter("destinationRaw"),f+=u.move(n.safe(e.url,{before:f,after:e.title?" ":`
|
|
44
|
+
`,...u.current()}))),l(),e.title&&(l=n.enter(`title${s}`),f+=u.move(" "+r),f+=u.move(n.safe(e.title,{before:f,after:r,...u.current()})),f+=u.move(r),l()),o(),f}function fv(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function xn(e){return"&#x"+e.toString(16).toUpperCase()+";"}function mr(e,t,n){const i=qn(e),r=qn(t);return i===void 0?r===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:r===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:i===1?r===void 0?{inside:!1,outside:!1}:r===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:r===void 0?{inside:!1,outside:!1}:r===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}yh.peek=pv;function yh(e,t,n,i){const r=fv(n),s=n.enter("emphasis"),o=n.createTracker(i),l=o.move(r);let u=o.move(n.containerPhrasing(e,{after:r,before:l,...o.current()}));const f=u.charCodeAt(0),p=mr(i.before.charCodeAt(i.before.length-1),f,r);p.inside&&(u=xn(f)+u.slice(1));const h=u.charCodeAt(u.length-1),d=mr(i.after.charCodeAt(0),h,r);d.inside&&(u=u.slice(0,-1)+xn(h));const m=o.move(r);return s(),n.attentionEncodeSurroundingInfo={after:d.outside,before:p.outside},l+u+m}function pv(e,t,n){return n.options.emphasis||"*"}const Dr=(function(e){if(e==null)return xv;if(typeof e=="function")return jr(e);if(typeof e=="object")return Array.isArray(e)?dv(e):gv(e);if(typeof e=="string")return mv(e);throw new Error("Expected function, string, or object as test")});function dv(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Dr(e[n]);return jr(i);function i(...r){let s=-1;for(;++s<t.length;)if(t[s].apply(this,r))return!0;return!1}}function gv(e){const t=e;return jr(n);function n(i){const r=i;let s;for(s in e)if(r[s]!==t[s])return!1;return!0}}function mv(e){return jr(t);function t(n){return n&&n.type===e}}function jr(e){return t;function t(n,i,r){return!!(vv(n)&&e.call(this,n,typeof i=="number"?i:void 0,r||void 0))}}function xv(){return!0}function vv(e){return e!==null&&typeof e=="object"&&"type"in e}const wh=[],bv=!0,Ja=!1,yv="skip";function Eh(e,t,n,i){let r;typeof t=="function"&&typeof n!="function"?(i=n,n=t):r=t;const s=Dr(r),o=i?-1:1;l(e,void 0,[])();function l(u,f,p){const h=u&&typeof u=="object"?u:{};if(typeof h.type=="string"){const m=typeof h.tagName=="string"?h.tagName:typeof h.name=="string"?h.name:void 0;Object.defineProperty(d,"name",{value:"node ("+(u.type+(m?"<"+m+">":""))+")"})}return d;function d(){let m=wh,b,v,S;if((!t||s(u,f,p[p.length-1]||void 0))&&(m=wv(n(u,p)),m[0]===Ja))return m;if("children"in u&&u.children){const E=u;if(E.children&&m[0]!==yv)for(v=(i?E.children.length:-1)+o,S=p.concat(E);v>-1&&v<E.children.length;){const k=E.children[v];if(b=l(k,v,S)(),b[0]===Ja)return b;v=typeof b[1]=="number"?b[1]:v+o}}return m}}}function wv(e){return Array.isArray(e)?e:typeof e=="number"?[bv,e]:e==null?wh:[e]}function Ev(e,t,n,i){let r,s,o;typeof t=="function"&&typeof n!="function"?(s=void 0,o=t,r=n):(s=t,o=n,r=i),Eh(e,s,l,r);function l(u,f){const p=f[f.length-1],h=p?p.children.indexOf(u):void 0;return o(u,h,p)}}const Sv={};function Sh(e,t){const n=Sv,i=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,r=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return kh(e,i,r)}function kh(e,t,n){if(kv(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Ol(e.children,t,n)}return Array.isArray(e)?Ol(e,t,n):""}function Ol(e,t,n){const i=[];let r=-1;for(;++r<e.length;)i[r]=kh(e[r],t,n);return i.join("")}function kv(e){return!!(e&&typeof e=="object")}function Ch(e,t){let n=!1;return Ev(e,function(i){if("value"in i&&/\r?\n|\r/.test(i.value)||i.type==="break")return n=!0,Ja}),!!((!e.depth||e.depth<3)&&Sh(e)&&(t.options.setext||n))}function Cv(e,t,n,i){const r=Math.max(Math.min(6,e.depth||1),1),s=n.createTracker(i);if(Ch(e,n)){const p=n.enter("headingSetext"),h=n.enter("phrasing"),d=n.containerPhrasing(e,{...s.current(),before:`
|
|
97
45
|
`,after:`
|
|
98
|
-
`});return
|
|
99
|
-
`+(r===1?"=":"-").repeat(
|
|
100
|
-
`))+1))}const
|
|
101
|
-
`,...
|
|
102
|
-
`,inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:" ",after:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",before:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"!",after:"\\[",inConstruct:"phrasing",notInConstruct:
|
|
103
|
-
]|$)`},{character:"&",after:"[#A-Za-z]",inConstruct:"phrasing"},{character:"'",inConstruct:"titleApostrophe"},{character:"(",inConstruct:"destinationRaw"},{before:"\\]",character:"(",inConstruct:"phrasing",notInConstruct:
|
|
104
|
-
*])`},{character:"*",inConstruct:"phrasing",notInConstruct:
|
|
46
|
+
`});return h(),p(),d+`
|
|
47
|
+
`+(r===1?"=":"-").repeat(d.length-(Math.max(d.lastIndexOf("\r"),d.lastIndexOf(`
|
|
48
|
+
`))+1))}const o="#".repeat(r),l=n.enter("headingAtx"),u=n.enter("phrasing");s.move(o+" ");let f=n.containerPhrasing(e,{before:"# ",after:`
|
|
49
|
+
`,...s.current()});return/^[\t ]/.test(f)&&(f=xn(f.charCodeAt(0))+f.slice(1)),f=f?o+" "+f:o,n.options.closeAtx&&(f+=" "+o),u(),l(),f}_h.peek=_v;function _h(e){return e.value||""}function _v(){return"<"}Ih.peek=Iv;function Ih(e,t,n,i){const r=bs(n),s=r==='"'?"Quote":"Apostrophe",o=n.enter("image");let l=n.enter("label");const u=n.createTracker(i);let f=u.move("![");return f+=u.move(n.safe(e.alt,{before:f,after:"]",...u.current()})),f+=u.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),f+=u.move("<"),f+=u.move(n.safe(e.url,{before:f,after:">",...u.current()})),f+=u.move(">")):(l=n.enter("destinationRaw"),f+=u.move(n.safe(e.url,{before:f,after:e.title?" ":")",...u.current()}))),l(),e.title&&(l=n.enter(`title${s}`),f+=u.move(" "+r),f+=u.move(n.safe(e.title,{before:f,after:r,...u.current()})),f+=u.move(r),l()),f+=u.move(")"),o(),f}function Iv(){return"!"}Ah.peek=Av;function Ah(e,t,n,i){const r=e.referenceType,s=n.enter("imageReference");let o=n.enter("label");const l=n.createTracker(i);let u=l.move("![");const f=n.safe(e.alt,{before:u,after:"]",...l.current()});u+=l.move(f+"]["),o();const p=n.stack;n.stack=[],o=n.enter("reference");const h=n.safe(n.associationId(e),{before:u,after:"]",...l.current()});return o(),n.stack=p,s(),r==="full"||!f||f!==h?u+=l.move(h+"]"):r==="shortcut"?u=u.slice(0,-1):u+=l.move("]"),u}function Av(){return"!"}Th.peek=Tv;function Th(e,t,n){let i=e.value||"",r="`",s=-1;for(;new RegExp("(^|[^`])"+r+"([^`]|$)").test(i);)r+="`";for(/[^ \r\n]/.test(i)&&(/^[ \r\n]/.test(i)&&/[ \r\n]$/.test(i)||/^`|`$/.test(i))&&(i=" "+i+" ");++s<n.unsafe.length;){const o=n.unsafe[s],l=n.compilePattern(o);let u;if(o.atBreak)for(;u=l.exec(i);){let f=u.index;i.charCodeAt(f)===10&&i.charCodeAt(f-1)===13&&f--,i=i.slice(0,f)+" "+i.slice(u.index+1)}}return r+i+r}function Tv(){return"`"}function Nh(e,t){const n=Sh(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}Ph.peek=Nv;function Ph(e,t,n,i){const r=bs(n),s=r==='"'?"Quote":"Apostrophe",o=n.createTracker(i);let l,u;if(Nh(e,n)){const p=n.stack;n.stack=[],l=n.enter("autolink");let h=o.move("<");return h+=o.move(n.containerPhrasing(e,{before:h,after:">",...o.current()})),h+=o.move(">"),l(),n.stack=p,h}l=n.enter("link"),u=n.enter("label");let f=o.move("[");return f+=o.move(n.containerPhrasing(e,{before:f,after:"](",...o.current()})),f+=o.move("]("),u(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(u=n.enter("destinationLiteral"),f+=o.move("<"),f+=o.move(n.safe(e.url,{before:f,after:">",...o.current()})),f+=o.move(">")):(u=n.enter("destinationRaw"),f+=o.move(n.safe(e.url,{before:f,after:e.title?" ":")",...o.current()}))),u(),e.title&&(u=n.enter(`title${s}`),f+=o.move(" "+r),f+=o.move(n.safe(e.title,{before:f,after:r,...o.current()})),f+=o.move(r),u()),f+=o.move(")"),l(),f}function Nv(e,t,n){return Nh(e,n)?"<":"["}Oh.peek=Pv;function Oh(e,t,n,i){const r=e.referenceType,s=n.enter("linkReference");let o=n.enter("label");const l=n.createTracker(i);let u=l.move("[");const f=n.containerPhrasing(e,{before:u,after:"]",...l.current()});u+=l.move(f+"]["),o();const p=n.stack;n.stack=[],o=n.enter("reference");const h=n.safe(n.associationId(e),{before:u,after:"]",...l.current()});return o(),n.stack=p,s(),r==="full"||!f||f!==h?u+=l.move(h+"]"):r==="shortcut"?u=u.slice(0,-1):u+=l.move("]"),u}function Pv(){return"["}function ys(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function Ov(e){const t=ys(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function Rv(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function Rh(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function Lv(e,t,n,i){const r=n.enter("list"),s=n.bulletCurrent;let o=e.ordered?Rv(n):ys(n);const l=e.ordered?o==="."?")":".":Ov(n);let u=t&&n.bulletLastUsed?o===n.bulletLastUsed:!1;if(!e.ordered){const p=e.children?e.children[0]:void 0;if((o==="*"||o==="-")&&p&&(!p.children||!p.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(u=!0),Rh(n)===o&&p){let h=-1;for(;++h<e.children.length;){const d=e.children[h];if(d&&d.type==="listItem"&&d.children&&d.children[0]&&d.children[0].type==="thematicBreak"){u=!0;break}}}}u&&(o=l),n.bulletCurrent=o;const f=n.containerFlow(e,i);return n.bulletLastUsed=o,n.bulletCurrent=s,r(),f}function Mv(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function Fv(e,t,n,i){const r=Mv(n);let s=n.bulletCurrent||ys(n);t&&t.type==="list"&&t.ordered&&(s=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+s);let o=s.length+1;(r==="tab"||r==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(o=Math.ceil(o/4)*4);const l=n.createTracker(i);l.move(s+" ".repeat(o-s.length)),l.shift(o);const u=n.enter("listItem"),f=n.indentLines(n.containerFlow(e,l.current()),p);return u(),f;function p(h,d,m){return d?(m?"":" ".repeat(o))+h:(m?s:s+" ".repeat(o-s.length))+h}}function Dv(e,t,n,i){const r=n.enter("paragraph"),s=n.enter("phrasing"),o=n.containerPhrasing(e,i);return s(),r(),o}const jv=Dr(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Vv(e,t,n,i){return(e.children.some(function(o){return jv(o)})?n.containerPhrasing:n.containerFlow).call(n,e,i)}function Bv(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}Lh.peek=zv;function Lh(e,t,n,i){const r=Bv(n),s=n.enter("strong"),o=n.createTracker(i),l=o.move(r+r);let u=o.move(n.containerPhrasing(e,{after:r,before:l,...o.current()}));const f=u.charCodeAt(0),p=mr(i.before.charCodeAt(i.before.length-1),f,r);p.inside&&(u=xn(f)+u.slice(1));const h=u.charCodeAt(u.length-1),d=mr(i.after.charCodeAt(0),h,r);d.inside&&(u=u.slice(0,-1)+xn(h));const m=o.move(r+r);return s(),n.attentionEncodeSurroundingInfo={after:d.outside,before:p.outside},l+u+m}function zv(e,t,n){return n.options.strong||"*"}function Kv(e,t,n,i){return n.safe(e.value,i)}function Uv(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function Hv(e,t,n){const i=(Rh(n)+(n.options.ruleSpaces?" ":"")).repeat(Uv(n));return n.options.ruleSpaces?i.slice(0,-1):i}const ws={blockquote:av,break:Pl,code:uv,definition:hv,emphasis:yh,hardBreak:Pl,heading:Cv,html:_h,image:Ih,imageReference:Ah,inlineCode:Th,link:Ph,linkReference:Oh,list:Lv,listItem:Fv,paragraph:Dv,root:Vv,strong:Lh,text:Kv,thematicBreak:Hv},$v=[qv];function qv(e,t,n,i){if(t.type==="code"&&Ga(t,i)&&(e.type==="list"||e.type===t.type&&Ga(e,i)))return!1;if("spread"in n&&typeof n.spread=="boolean")return e.type==="paragraph"&&(e.type===t.type||t.type==="definition"||t.type==="heading"&&Ch(t,i))?void 0:n.spread?1:0}const Sn=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"],Wv=[{character:" ",after:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",before:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"\r",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:`
|
|
50
|
+
`,inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:" ",after:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",before:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"!",after:"\\[",inConstruct:"phrasing",notInConstruct:Sn},{character:'"',inConstruct:"titleQuote"},{atBreak:!0,character:"#"},{character:"#",inConstruct:"headingAtx",after:`(?:[\r
|
|
51
|
+
]|$)`},{character:"&",after:"[#A-Za-z]",inConstruct:"phrasing"},{character:"'",inConstruct:"titleApostrophe"},{character:"(",inConstruct:"destinationRaw"},{before:"\\]",character:"(",inConstruct:"phrasing",notInConstruct:Sn},{atBreak:!0,before:"\\d+",character:")"},{character:")",inConstruct:"destinationRaw"},{atBreak:!0,character:"*",after:`(?:[ \r
|
|
52
|
+
*])`},{character:"*",inConstruct:"phrasing",notInConstruct:Sn},{atBreak:!0,character:"+",after:`(?:[ \r
|
|
105
53
|
])`},{atBreak:!0,character:"-",after:`(?:[ \r
|
|
106
54
|
-])`},{atBreak:!0,before:"\\d+",character:".",after:`(?:[ \r
|
|
107
|
-
]|$)`},{atBreak:!0,character:"<",after:"[!/?A-Za-z]"},{character:"<",after:"[!/?A-Za-z]",inConstruct:"phrasing",notInConstruct:
|
|
108
|
-
`)&&
|
|
55
|
+
]|$)`},{atBreak:!0,character:"<",after:"[!/?A-Za-z]"},{character:"<",after:"[!/?A-Za-z]",inConstruct:"phrasing",notInConstruct:Sn},{character:"<",inConstruct:"destinationLiteral"},{atBreak:!0,character:"="},{atBreak:!0,character:">"},{character:">",inConstruct:"destinationLiteral"},{atBreak:!0,character:"["},{character:"[",inConstruct:"phrasing",notInConstruct:Sn},{character:"[",inConstruct:["label","reference"]},{character:"\\",after:"[\\r\\n]",inConstruct:"phrasing"},{character:"]",inConstruct:["label","reference"]},{atBreak:!0,character:"_"},{character:"_",inConstruct:"phrasing",notInConstruct:Sn},{atBreak:!0,character:"`"},{character:"`",inConstruct:["codeFencedLangGraveAccent","codeFencedMetaGraveAccent"]},{character:"`",inConstruct:"phrasing",notInConstruct:Sn},{atBreak:!0,character:"~"}];function Gv(e){return e.label||!e.identifier?e.label||"":gh(e.identifier)}function Jv(e){if(!e._compiled){const t=(e.atBreak?"[\\r\\n][\\t ]*":"")+(e.before?"(?:"+e.before+")":"");e._compiled=new RegExp((t?"("+t+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(e.after?"(?:"+e.after+")":""),"g")}return e._compiled}function Yv(e,t,n){const i=t.indexStack,r=e.children||[],s=[];let o=-1,l=n.before,u;i.push(-1);let f=t.createTracker(n);for(;++o<r.length;){const p=r[o];let h;if(i[i.length-1]=o,o+1<r.length){let b=t.handle.handlers[r[o+1].type];b&&b.peek&&(b=b.peek),h=b?b(r[o+1],e,t,{before:"",after:"",...f.current()}).charAt(0):""}else h=n.after;s.length>0&&(l==="\r"||l===`
|
|
56
|
+
`)&&p.type==="html"&&(s[s.length-1]=s[s.length-1].replace(/(\r?\n|\r)$/," "),l=" ",f=t.createTracker(n),f.move(s.join("")));let d=t.handle(p,e,t,{...f.current(),after:h,before:l});u&&u===d.slice(0,1)&&(d=xn(u.charCodeAt(0))+d.slice(1));const m=t.attentionEncodeSurroundingInfo;t.attentionEncodeSurroundingInfo=void 0,u=void 0,m&&(s.length>0&&m.before&&l===s[s.length-1].slice(-1)&&(s[s.length-1]=s[s.length-1].slice(0,-1)+xn(l.charCodeAt(0))),m.after&&(u=h)),f.move(d),s.push(d),l=d.slice(-1)}return i.pop(),s.join("")}function Qv(e,t,n){const i=t.indexStack,r=e.children||[],s=t.createTracker(n),o=[];let l=-1;for(i.push(-1);++l<r.length;){const u=r[l];i[i.length-1]=l,o.push(s.move(t.handle(u,e,t,{before:`
|
|
109
57
|
`,after:`
|
|
110
|
-
`,...
|
|
111
|
-
`.repeat(1+
|
|
58
|
+
`,...s.current()}))),u.type!=="list"&&(t.bulletLastUsed=void 0),l<r.length-1&&o.push(s.move(Zv(u,r[l+1],e,t)))}return i.pop(),o.join("")}function Zv(e,t,n,i){let r=i.join.length;for(;r--;){const s=i.join[r](e,t,n,i);if(s===!0||s===1)break;if(typeof s=="number")return`
|
|
59
|
+
`.repeat(1+s);if(s===!1)return`
|
|
112
60
|
|
|
113
61
|
<!---->
|
|
114
62
|
|
|
115
63
|
`}return`
|
|
116
64
|
|
|
117
|
-
`}const
|
|
65
|
+
`}const Xv=/\r?\n|\r/g;function eb(e,t){const n=[];let i=0,r=0,s;for(;s=Xv.exec(e);)o(e.slice(i,s.index)),n.push(s[0]),i=s.index+s[0].length,r++;return o(e.slice(i)),n.join("");function o(l){n.push(t(l,r,!l))}}function tb(e,t,n){const i=(n.before||"")+(t||"")+(n.after||""),r=[],s=[],o={};let l=-1;for(;++l<e.unsafe.length;){const p=e.unsafe[l];if(!bh(e.stack,p))continue;const h=e.compilePattern(p);let d;for(;d=h.exec(i);){const m="before"in p||!!p.atBreak,b="after"in p,v=d.index+(m?d[1].length:0);r.includes(v)?(o[v].before&&!m&&(o[v].before=!1),o[v].after&&!b&&(o[v].after=!1)):(r.push(v),o[v]={before:m,after:b})}}r.sort(nb);let u=n.before?n.before.length:0;const f=i.length-(n.after?n.after.length:0);for(l=-1;++l<r.length;){const p=r[l];p<u||p>=f||p+1<f&&r[l+1]===p+1&&o[p].after&&!o[p+1].before&&!o[p+1].after||r[l-1]===p-1&&o[p].before&&!o[p-1].before&&!o[p-1].after||(u!==p&&s.push(Rl(i.slice(u,p),"\\")),u=p,/[!-/:-@[-`{-~]/.test(i.charAt(p))&&(!n.encode||!n.encode.includes(i.charAt(p)))?s.push("\\"):(s.push(xn(i.charCodeAt(p))),u++))}return s.push(Rl(i.slice(u,f),n.after)),s.join("")}function nb(e,t){return e-t}function Rl(e,t){const n=/\\(?=[!-/:-@[-`{-~])/g,i=[],r=[],s=e+t;let o=-1,l=0,u;for(;u=n.exec(s);)i.push(u.index);for(;++o<i.length;)l!==i[o]&&r.push(e.slice(l,i[o])),r.push("\\"),l=i[o];return r.push(e.slice(l)),r.join("")}function ib(e){const t=e||{},n=t.now||{};let i=t.lineShift||0,r=n.line||1,s=n.column||1;return{move:u,current:o,shift:l};function o(){return{now:{line:r,column:s},lineShift:i}}function l(f){i+=f}function u(f){const p=f||"",h=p.split(/\r?\n|\r/g),d=h[h.length-1];return r+=h.length-1,s=h.length===1?s+d.length:1+d.length+i,p}}function rb(e,t){const n=t||{},i={associationId:Gv,containerPhrasing:lb,containerFlow:ub,createTracker:ib,compilePattern:Jv,enter:s,handlers:{...ws},handle:void 0,indentLines:eb,indexStack:[],join:[...$v],options:{},safe:cb,stack:[],unsafe:[...Wv]};vh(i,n),i.options.tightDefinitions&&i.join.push(ob),i.handle=nv("type",{invalid:ab,unknown:sb,handlers:i.handlers});let r=i.handle(e,void 0,i,{before:`
|
|
118
66
|
`,after:`
|
|
119
67
|
`,now:{line:1,column:1},lineShift:0});return r&&r.charCodeAt(r.length-1)!==10&&r.charCodeAt(r.length-1)!==13&&(r+=`
|
|
120
|
-
`),r;function a(s){return i.stack.push(s),l;function l(){i.stack.pop()}}}function lC(e){throw new Error("Cannot handle value `"+e+"`, expected node")}function uC(e){const t=e;throw new Error("Cannot handle unknown node `"+t.type+"`")}function cC(e,t){if(e.type==="definition"&&e.type===t.type)return 0}function hC(e,t){return QE(e,this,t)}function dC(e,t){return eC(e,this,t)}function pC(e,t){return rC(this,e,t)}function fC(e){const t=this;t.compiler=n;function n(i){return oC(i,{...t.data("settings"),...e,extensions:t.data("toMarkdownExtensions")||[]})}}function uh(e){if(e)throw e}var Os,ch;function gC(){if(ch)return Os;ch=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,i=Object.getOwnPropertyDescriptor,r=function(c){return typeof Array.isArray=="function"?Array.isArray(c):t.call(c)==="[object Array]"},a=function(c){if(!c||t.call(c)!=="[object Object]")return!1;var d=e.call(c,"constructor"),p=c.constructor&&c.constructor.prototype&&e.call(c.constructor.prototype,"isPrototypeOf");if(c.constructor&&!d&&!p)return!1;var g;for(g in c);return typeof g>"u"||e.call(c,g)},s=function(c,d){n&&d.name==="__proto__"?n(c,d.name,{enumerable:!0,configurable:!0,value:d.newValue,writable:!0}):c[d.name]=d.newValue},l=function(c,d){if(d==="__proto__")if(e.call(c,d)){if(i)return i(c,d).value}else return;return c[d]};return Os=function u(){var c,d,p,g,m,C,x=arguments[0],w=1,S=arguments.length,k=!1;for(typeof x=="boolean"&&(k=x,x=arguments[1]||{},w=2),(x==null||typeof x!="object"&&typeof x!="function")&&(x={});w<S;++w)if(c=arguments[w],c!=null)for(d in c)p=l(x,d),g=l(c,d),x!==g&&(k&&g&&(a(g)||(m=r(g)))?(m?(m=!1,C=p&&r(p)?p:[]):C=p&&a(p)?p:{},s(x,{name:d,newValue:u(k,C,g)})):typeof g<"u"&&s(x,{name:d,newValue:g}));return x},Os}var mC=gC();const Ps=Jf(mC);function wo(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function vC(){const e=[],t={run:n,use:i};return t;function n(...r){let a=-1;const s=r.pop();if(typeof s!="function")throw new TypeError("Expected function as last argument, not "+s);l(null,...r);function l(u,...c){const d=e[++a];let p=-1;if(u){s(u);return}for(;++p<r.length;)(c[p]===null||c[p]===void 0)&&(c[p]=r[p]);r=c,d?xC(d,l)(...c):s(null,...c)}}function i(r){if(typeof r!="function")throw new TypeError("Expected `middelware` to be a function, not "+r);return e.push(r),t}}function xC(e,t){let n;return i;function i(...s){const l=e.length>s.length;let u;l&&s.push(r);try{u=e.apply(this,s)}catch(c){const d=c;if(l&&n)throw d;return r(d)}l||(u&&u.then&&typeof u.then=="function"?u.then(a,r):u instanceof Error?r(u):a(u))}function r(s,...l){n||(n=!0,t(s,...l))}function a(s){r(null,s)}}const xn={basename:bC,dirname:yC,extname:wC,join:kC,sep:"/"};function bC(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');yr(e);let n=0,i=-1,r=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;r--;)if(e.codePointAt(r)===47){if(a){n=r+1;break}}else i<0&&(a=!0,i=r+1);return i<0?"":e.slice(n,i)}if(t===e)return"";let s=-1,l=t.length-1;for(;r--;)if(e.codePointAt(r)===47){if(a){n=r+1;break}}else s<0&&(a=!0,s=r+1),l>-1&&(e.codePointAt(r)===t.codePointAt(l--)?l<0&&(i=r):(l=-1,i=s));return n===i?i=s:i<0&&(i=e.length),e.slice(n,i)}function yC(e){if(yr(e),e.length===0)return".";let t=-1,n=e.length,i;for(;--n;)if(e.codePointAt(n)===47){if(i){t=n;break}}else i||(i=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function wC(e){yr(e);let t=e.length,n=-1,i=0,r=-1,a=0,s;for(;t--;){const l=e.codePointAt(t);if(l===47){if(s){i=t+1;break}continue}n<0&&(s=!0,n=t+1),l===46?r<0?r=t:a!==1&&(a=1):r>-1&&(a=-1)}return r<0||n<0||a===0||a===1&&r===n-1&&r===i+1?"":e.slice(r,n)}function kC(...e){let t=-1,n;for(;++t<e.length;)yr(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":SC(n)}function SC(e){yr(e);const t=e.codePointAt(0)===47;let n=EC(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function EC(e,t){let n="",i=0,r=-1,a=0,s=-1,l,u;for(;++s<=e.length;){if(s<e.length)l=e.codePointAt(s);else{if(l===47)break;l=47}if(l===47){if(!(r===s-1||a===1))if(r!==s-1&&a===2){if(n.length<2||i!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(u=n.lastIndexOf("/"),u!==n.length-1){u<0?(n="",i=0):(n=n.slice(0,u),i=n.length-1-n.lastIndexOf("/")),r=s,a=0;continue}}else if(n.length>0){n="",i=0,r=s,a=0;continue}}t&&(n=n.length>0?n+"/..":"..",i=2)}else n.length>0?n+="/"+e.slice(r+1,s):n=e.slice(r+1,s),i=s-r-1;r=s,a=0}else l===46&&a>-1?a++:a=-1}return n}function yr(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const CC={cwd:IC};function IC(){return"/"}function ko(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function _C(e){if(typeof e=="string")e=new URL(e);else if(!ko(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return AC(e)}function AC(e){if(e.hostname!==""){const i=new TypeError('File URL host must be "localhost" or empty on darwin');throw i.code="ERR_INVALID_FILE_URL_HOST",i}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const i=t.codePointAt(n+2);if(i===70||i===102){const r=new TypeError("File URL path must not include encoded / characters");throw r.code="ERR_INVALID_FILE_URL_PATH",r}}return decodeURIComponent(t)}const Rs=["history","path","basename","stem","extname","dirname"];class NC{constructor(t){let n;t?ko(t)?n={path:t}:typeof t=="string"||TC(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":CC.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let i=-1;for(;++i<Rs.length;){const a=Rs[i];a in n&&n[a]!==void 0&&n[a]!==null&&(this[a]=a==="history"?[...n[a]]:n[a])}let r;for(r in n)Rs.includes(r)||(this[r]=n[r])}get basename(){return typeof this.path=="string"?xn.basename(this.path):void 0}set basename(t){Ls(t,"basename"),Ms(t,"basename"),this.path=xn.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?xn.dirname(this.path):void 0}set dirname(t){hh(this.basename,"dirname"),this.path=xn.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?xn.extname(this.path):void 0}set extname(t){if(Ms(t,"extname"),hh(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=xn.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){ko(t)&&(t=_C(t)),Ls(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?xn.basename(this.path,this.extname):void 0}set stem(t){Ls(t,"stem"),Ms(t,"stem"),this.path=xn.join(this.dirname||"",t+(this.extname||""))}fail(t,n,i){const r=this.message(t,n,i);throw r.fatal=!0,r}info(t,n,i){const r=this.message(t,n,i);return r.fatal=void 0,r}message(t,n,i){const r=new Xe(t,n,i);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function Ms(e,t){if(e&&e.includes(xn.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+xn.sep+"`")}function Ls(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function hh(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function TC(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const OC=(function(e){const i=this.constructor.prototype,r=i[e],a=function(){return r.apply(a,arguments)};return Object.setPrototypeOf(a,i),a}),PC={}.hasOwnProperty;class Hl extends OC{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=vC()}copy(){const t=new Hl;let n=-1;for(;++n<this.attachers.length;){const i=this.attachers[n];t.use(...i)}return t.data(Ps(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(js("data",this.frozen),this.namespace[t]=n,this):PC.call(this.namespace,t)&&this.namespace[t]||void 0:t?(js("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...i]=this.attachers[this.freezeIndex];if(i[0]===!1)continue;i[0]===!0&&(i[0]=void 0);const r=n.call(t,...i);typeof r=="function"&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=Wr(t),i=this.parser||this.Parser;return Ds("parse",i),i(String(n),n)}process(t,n){const i=this;return this.freeze(),Ds("process",this.parser||this.Parser),Fs("process",this.compiler||this.Compiler),n?r(void 0,n):new Promise(r);function r(a,s){const l=Wr(t),u=i.parse(l);i.run(u,l,function(d,p,g){if(d||!p||!g)return c(d);const m=p,C=i.stringify(m,g);LC(C)?g.value=C:g.result=C,c(d,g)});function c(d,p){d||!p?s(d):a?a(p):n(void 0,p)}}}processSync(t){let n=!1,i;return this.freeze(),Ds("processSync",this.parser||this.Parser),Fs("processSync",this.compiler||this.Compiler),this.process(t,r),ph("processSync","process",n),i;function r(a,s){n=!0,uh(a),i=s}}run(t,n,i){dh(t),this.freeze();const r=this.transformers;return!i&&typeof n=="function"&&(i=n,n=void 0),i?a(void 0,i):new Promise(a);function a(s,l){const u=Wr(n);r.run(t,u,c);function c(d,p,g){const m=p||t;d?l(d):s?s(m):i(void 0,m,g)}}}runSync(t,n){let i=!1,r;return this.run(t,n,a),ph("runSync","run",i),r;function a(s,l){uh(s),r=l,i=!0}}stringify(t,n){this.freeze();const i=Wr(n),r=this.compiler||this.Compiler;return Fs("stringify",r),dh(t),r(t,i)}use(t,...n){const i=this.attachers,r=this.namespace;if(js("use",this.frozen),t!=null)if(typeof t=="function")u(t,n);else if(typeof t=="object")Array.isArray(t)?l(t):s(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function a(c){if(typeof c=="function")u(c,[]);else if(typeof c=="object")if(Array.isArray(c)){const[d,...p]=c;u(d,p)}else s(c);else throw new TypeError("Expected usable value, not `"+c+"`")}function s(c){if(!("plugins"in c)&&!("settings"in c))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");l(c.plugins),c.settings&&(r.settings=Ps(!0,r.settings,c.settings))}function l(c){let d=-1;if(c!=null)if(Array.isArray(c))for(;++d<c.length;){const p=c[d];a(p)}else throw new TypeError("Expected a list of plugins, not `"+c+"`")}function u(c,d){let p=-1,g=-1;for(;++p<i.length;)if(i[p][0]===c){g=p;break}if(g===-1)i.push([c,...d]);else if(d.length>0){let[m,...C]=d;const x=i[g][1];wo(x)&&wo(m)&&(m=Ps(!0,x,m)),i[g]=[c,m,...C]}}}}const RC=new Hl().freeze();function Ds(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Fs(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function js(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function dh(e){if(!wo(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function ph(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Wr(e){return MC(e)?e:new NC(e)}function MC(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function LC(e){return typeof e=="string"||DC(e)}function DC(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const FC=RC().use(rE).use(fC).freeze();function jC(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function zC(e,t,n){const r=Xa((n||{}).ignore||[]),a=VC(t);let s=-1;for(;++s<a.length;)mg(e,"text",l);function l(c,d){let p=-1,g;for(;++p<d.length;){const m=d[p],C=g?g.children:void 0;if(r(m,C?C.indexOf(m):void 0,g))return;g=m}if(g)return u(c,d)}function u(c,d){const p=d[d.length-1],g=a[s][0],m=a[s][1];let C=0;const w=p.children.indexOf(c);let S=!1,k=[];g.lastIndex=0;let E=g.exec(c.value);for(;E;){const A=E.index,y={index:E.index,input:E.input,stack:[...d,c]};let f=m(...E,y);if(typeof f=="string"&&(f=f.length>0?{type:"text",value:f}:void 0),f===!1?g.lastIndex=A+1:(C!==A&&k.push({type:"text",value:c.value.slice(C,A)}),Array.isArray(f)?k.push(...f):f&&k.push(f),C=A+E[0].length,S=!0),!g.global)break;E=g.exec(c.value)}return S?(C<c.value.length&&k.push({type:"text",value:c.value.slice(C)}),p.children.splice(w,1,...k)):k=[c],w+k.length}}function VC(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let i=-1;for(;++i<n.length;){const r=n[i];t.push([BC(r[0]),HC(r[1])])}return t}function BC(e){return typeof e=="string"?new RegExp(jC(e),"g"):e}function HC(e){return typeof e=="function"?e:function(){return e}}const zs="phrasing",Vs=["autolink","link","image","label"];function KC(){return{transforms:[YC],enter:{literalAutolink:UC,literalAutolinkEmail:Bs,literalAutolinkHttp:Bs,literalAutolinkWww:Bs},exit:{literalAutolink:JC,literalAutolinkEmail:$C,literalAutolinkHttp:qC,literalAutolinkWww:GC}}}function WC(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:zs,notInConstruct:Vs},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:zs,notInConstruct:Vs},{character:":",before:"[ps]",after:"\\/",inConstruct:zs,notInConstruct:Vs}]}}function UC(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Bs(e){this.config.enter.autolinkProtocol.call(this,e)}function qC(e){this.config.exit.autolinkProtocol.call(this,e)}function GC(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function $C(e){this.config.exit.autolinkEmail.call(this,e)}function JC(e){this.exit(e)}function YC(e){zC(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,ZC],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),XC]],{ignore:["link","linkReference"]})}function ZC(e,t,n,i,r){let a="";if(!Ng(r)||(/^w/i.test(t)&&(n=t+n,t="",a="http://"),!QC(n)))return!1;const s=eI(n+i);if(!s[0])return!1;const l={type:"link",title:null,url:a+t+s[0],children:[{type:"text",value:t+s[0]}]};return s[1]?[l,{type:"text",value:s[1]}]:l}function XC(e,t,n,i){return!Ng(i,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function QC(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function eI(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],i=n.indexOf(")");const r=Sa(e,"(");let a=Sa(e,")");for(;i!==-1&&r>a;)e+=n.slice(0,i+1),n=n.slice(i+1),i=n.indexOf(")"),a++;return[e,n]}function Ng(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||At(n)||Ya(n))&&(!t||n!==47)}Tg.peek=uI;function tI(){this.buffer()}function nI(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function iI(){this.buffer()}function rI(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function aI(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=sn(this.sliceSerialize(e)).toLowerCase(),n.label=t}function sI(e){this.exit(e)}function oI(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=sn(this.sliceSerialize(e)).toLowerCase(),n.label=t}function lI(e){this.exit(e)}function uI(){return"["}function Tg(e,t,n,i){const r=n.createTracker(i);let a=r.move("[^");const s=n.enter("footnoteReference"),l=n.enter("reference");return a+=r.move(n.safe(n.associationId(e),{after:"]",before:a})),l(),s(),a+=r.move("]"),a}function cI(){return{enter:{gfmFootnoteCallString:tI,gfmFootnoteCall:nI,gfmFootnoteDefinitionLabelString:iI,gfmFootnoteDefinition:rI},exit:{gfmFootnoteCallString:aI,gfmFootnoteCall:sI,gfmFootnoteDefinitionLabelString:oI,gfmFootnoteDefinition:lI}}}function hI(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:Tg},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(i,r,a,s){const l=a.createTracker(s);let u=l.move("[^");const c=a.enter("footnoteDefinition"),d=a.enter("label");return u+=l.move(a.safe(a.associationId(i),{before:u,after:"]"})),d(),u+=l.move("]:"),i.children&&i.children.length>0&&(l.shift(4),u+=l.move((t?`
|
|
121
|
-
`:" ")+
|
|
122
|
-
`)}function
|
|
123
|
-
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:
|
|
124
|
-
`))}function u(m,C,x,w){const S=x.enter("tableCell"),k=x.enter("phrasing"),E=x.containerPhrasing(m,{...w,before:a,after:a});return k(),S(),E}function c(m,C){return yI(m,{align:C,alignDelimiters:i,padding:n,stringLength:r})}function d(m,C,x){const w=m.children;let S=-1;const k=[],E=C.enter("table");for(;++S<w.length;)k[S]=p(w[S],C,x);return E(),k}function p(m,C,x){const w=m.children;let S=-1;const k=[],E=C.enter("tableRow");for(;++S<w.length;)k[S]=u(w[S],m,C,x);return E(),k}function g(m,C,x){let w=Bl.inlineCode(m,C,x);return x.stack.includes("tableCell")&&(w=w.replace(/\|/g,"\\$&")),w}}function NI(){return{exit:{taskListCheckValueChecked:mh,taskListCheckValueUnchecked:mh,paragraph:OI}}}function TI(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:PI}}}function mh(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function OI(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const i=n.children[0];if(i&&i.type==="text"){const r=t.children;let a=-1,s;for(;++a<r.length;){const l=r[a];if(l.type==="paragraph"){s=l;break}}s===n&&(i.value=i.value.slice(1),i.value.length===0?n.children.shift():n.position&&i.position&&typeof i.position.start.offset=="number"&&(i.position.start.column++,i.position.start.offset++,n.position.start=Object.assign({},i.position.start)))}}this.exit(e)}function PI(e,t,n,i){const r=e.children[0],a=typeof e.checked=="boolean"&&r&&r.type==="paragraph",s="["+(e.checked?"x":" ")+"] ",l=n.createTracker(i);a&&l.move(s);let u=Bl.listItem(e,t,n,{...i,...l.current()});return a&&(u=u.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,c)),u;function c(d){return d+s}}function RI(){return[KC(),cI(),fI(),kI(),NI()]}function MI(e){return{extensions:[WC(),hI(e),gI(),AI(e),TI()]}}const LI={tokenize:BI,partial:!0},Rg={tokenize:HI,partial:!0},Mg={tokenize:KI,partial:!0},Lg={tokenize:WI,partial:!0},DI={tokenize:UI,partial:!0},Dg={name:"wwwAutolink",tokenize:zI,previous:jg},Fg={name:"protocolAutolink",tokenize:VI,previous:zg},Ln={name:"emailAutolink",tokenize:jI,previous:Vg},Cn={};function FI(){return{text:Cn}}let ni=48;for(;ni<123;)Cn[ni]=Ln,ni++,ni===58?ni=65:ni===91&&(ni=97);Cn[43]=Ln;Cn[45]=Ln;Cn[46]=Ln;Cn[95]=Ln;Cn[72]=[Ln,Fg];Cn[104]=[Ln,Fg];Cn[87]=[Ln,Dg];Cn[119]=[Ln,Dg];function jI(e,t,n){const i=this;let r,a;return s;function s(p){return!So(p)||!Vg.call(i,i.previous)||Kl(i.events)?n(p):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),l(p))}function l(p){return So(p)?(e.consume(p),l):p===64?(e.consume(p),u):n(p)}function u(p){return p===46?e.check(DI,d,c)(p):p===45||p===95||jt(p)?(a=!0,e.consume(p),u):d(p)}function c(p){return e.consume(p),r=!0,u}function d(p){return a&&r&&Et(i.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(p)):n(p)}}function zI(e,t,n){const i=this;return r;function r(s){return s!==87&&s!==119||!jg.call(i,i.previous)||Kl(i.events)?n(s):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(LI,e.attempt(Rg,e.attempt(Mg,a),n),n)(s))}function a(s){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(s)}}function VI(e,t,n){const i=this;let r="",a=!1;return s;function s(p){return(p===72||p===104)&&zg.call(i,i.previous)&&!Kl(i.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),r+=String.fromCodePoint(p),e.consume(p),l):n(p)}function l(p){if(Et(p)&&r.length<5)return r+=String.fromCodePoint(p),e.consume(p),l;if(p===58){const g=r.toLowerCase();if(g==="http"||g==="https")return e.consume(p),u}return n(p)}function u(p){return p===47?(e.consume(p),a?c:(a=!0,u)):n(p)}function c(p){return p===null||Aa(p)||Ge(p)||At(p)||Ya(p)?n(p):e.attempt(Rg,e.attempt(Mg,d),n)(p)}function d(p){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(p)}}function BI(e,t,n){let i=0;return r;function r(s){return(s===87||s===119)&&i<3?(i++,e.consume(s),r):s===46&&i===3?(e.consume(s),a):n(s)}function a(s){return s===null?n(s):t(s)}}function HI(e,t,n){let i,r,a;return s;function s(c){return c===46||c===95?e.check(Lg,u,l)(c):c===null||Ge(c)||At(c)||c!==45&&Ya(c)?u(c):(a=!0,e.consume(c),s)}function l(c){return c===95?i=!0:(r=i,i=void 0),e.consume(c),s}function u(c){return r||i||!a?n(c):t(c)}}function KI(e,t){let n=0,i=0;return r;function r(s){return s===40?(n++,e.consume(s),r):s===41&&i<n?a(s):s===33||s===34||s===38||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===60||s===63||s===93||s===95||s===126?e.check(Lg,t,a)(s):s===null||Ge(s)||At(s)?t(s):(e.consume(s),r)}function a(s){return s===41&&i++,e.consume(s),r}}function WI(e,t,n){return i;function i(l){return l===33||l===34||l===39||l===41||l===42||l===44||l===46||l===58||l===59||l===63||l===95||l===126?(e.consume(l),i):l===38?(e.consume(l),a):l===93?(e.consume(l),r):l===60||l===null||Ge(l)||At(l)?t(l):n(l)}function r(l){return l===null||l===40||l===91||Ge(l)||At(l)?t(l):i(l)}function a(l){return Et(l)?s(l):n(l)}function s(l){return l===59?(e.consume(l),i):Et(l)?(e.consume(l),s):n(l)}}function UI(e,t,n){return i;function i(a){return e.consume(a),r}function r(a){return jt(a)?n(a):t(a)}}function jg(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Ge(e)}function zg(e){return!Et(e)}function Vg(e){return!(e===47||So(e))}function So(e){return e===43||e===45||e===46||e===95||jt(e)}function Kl(e){let t=e.length,n=!1;for(;t--;){const i=e[t][1];if((i.type==="labelLink"||i.type==="labelImage")&&!i._balanced){n=!0;break}if(i._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const qI={tokenize:e2,partial:!0};function GI(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:ZI,continuation:{tokenize:XI},exit:QI}},text:{91:{name:"gfmFootnoteCall",tokenize:YI},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:$I,resolveTo:JI}}}}function $I(e,t,n){const i=this;let r=i.events.length;const a=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let s;for(;r--;){const u=i.events[r][1];if(u.type==="labelImage"){s=u;break}if(u.type==="gfmFootnoteCall"||u.type==="labelLink"||u.type==="label"||u.type==="image"||u.type==="link")break}return l;function l(u){if(!s||!s._balanced)return n(u);const c=sn(i.sliceSerialize({start:s.end,end:i.now()}));return c.codePointAt(0)!==94||!a.includes(c.slice(1))?n(u):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(u),e.exit("gfmFootnoteCallLabelMarker"),t(u))}}function JI(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const i={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},r={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};r.end.column++,r.end.offset++,r.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},r.end),end:Object.assign({},e[e.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},l=[e[n+1],e[n+2],["enter",i,t],e[n+3],e[n+4],["enter",r,t],["exit",r,t],["enter",a,t],["enter",s,t],["exit",s,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",i,t]];return e.splice(n,e.length-n+1,...l),e}function YI(e,t,n){const i=this,r=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let a=0,s;return l;function l(p){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(p),e.exit("gfmFootnoteCallLabelMarker"),u}function u(p){return p!==94?n(p):(e.enter("gfmFootnoteCallMarker"),e.consume(p),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",c)}function c(p){if(a>999||p===93&&!s||p===null||p===91||Ge(p))return n(p);if(p===93){e.exit("chunkString");const g=e.exit("gfmFootnoteCallString");return r.includes(sn(i.sliceSerialize(g)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(p),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(p)}return Ge(p)||(s=!0),a++,e.consume(p),p===92?d:c}function d(p){return p===91||p===92||p===93?(e.consume(p),a++,c):c(p)}}function ZI(e,t,n){const i=this,r=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let a,s=0,l;return u;function u(C){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(C),e.exit("gfmFootnoteDefinitionLabelMarker"),c}function c(C){return C===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(C),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",d):n(C)}function d(C){if(s>999||C===93&&!l||C===null||C===91||Ge(C))return n(C);if(C===93){e.exit("chunkString");const x=e.exit("gfmFootnoteDefinitionLabelString");return a=sn(i.sliceSerialize(x)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(C),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),g}return Ge(C)||(l=!0),s++,e.consume(C),C===92?p:d}function p(C){return C===91||C===92||C===93?(e.consume(C),s++,d):d(C)}function g(C){return C===58?(e.enter("definitionMarker"),e.consume(C),e.exit("definitionMarker"),r.includes(a)||r.push(a),Ke(e,m,"gfmFootnoteDefinitionWhitespace")):n(C)}function m(C){return t(C)}}function XI(e,t,n){return e.check(Wi,t,e.attempt(qI,t,n))}function QI(e){e.exit("gfmFootnoteDefinition")}function e2(e,t,n){const i=this;return Ke(e,r,"gfmFootnoteDefinitionIndent",5);function r(a){const s=i.events[i.events.length-1];return s&&s[1].type==="gfmFootnoteDefinitionIndent"&&s[2].sliceSerialize(s[1],!0).length===4?t(a):n(a)}}function t2(e){let n=(e||{}).singleTilde;const i={name:"strikethrough",tokenize:a,resolveAll:r};return n==null&&(n=!0),{text:{126:i},insideSpan:{null:[i]},attentionMarkers:{null:[126]}};function r(s,l){let u=-1;for(;++u<s.length;)if(s[u][0]==="enter"&&s[u][1].type==="strikethroughSequenceTemporary"&&s[u][1]._close){let c=u;for(;c--;)if(s[c][0]==="exit"&&s[c][1].type==="strikethroughSequenceTemporary"&&s[c][1]._open&&s[u][1].end.offset-s[u][1].start.offset===s[c][1].end.offset-s[c][1].start.offset){s[u][1].type="strikethroughSequence",s[c][1].type="strikethroughSequence";const d={type:"strikethrough",start:Object.assign({},s[c][1].start),end:Object.assign({},s[u][1].end)},p={type:"strikethroughText",start:Object.assign({},s[c][1].end),end:Object.assign({},s[u][1].start)},g=[["enter",d,l],["enter",s[c][1],l],["exit",s[c][1],l],["enter",p,l]],m=l.parser.constructs.insideSpan.null;m&&Kt(g,g.length,0,Za(m,s.slice(c+1,u),l)),Kt(g,g.length,0,[["exit",p,l],["enter",s[u][1],l],["exit",s[u][1],l],["exit",d,l]]),Kt(s,c-1,u-c+3,g),u=c+g.length-2;break}}for(u=-1;++u<s.length;)s[u][1].type==="strikethroughSequenceTemporary"&&(s[u][1].type="data");return s}function a(s,l,u){const c=this.previous,d=this.events;let p=0;return g;function g(C){return c===126&&d[d.length-1][1].type!=="characterEscape"?u(C):(s.enter("strikethroughSequenceTemporary"),m(C))}function m(C){const x=Di(c);if(C===126)return p>1?u(C):(s.consume(C),p++,m);if(p<2&&!n)return u(C);const w=s.exit("strikethroughSequenceTemporary"),S=Di(C);return w._open=!S||S===2&&!!x,w._close=!x||x===2&&!!S,l(C)}}}class n2{constructor(){this.map=[]}add(t,n,i){i2(this,t,n,i)}consume(t){if(this.map.sort(function(a,s){return a[0]-s[0]}),this.map.length===0)return;let n=this.map.length;const i=[];for(;n>0;)n-=1,i.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];i.push(t.slice()),t.length=0;let r=i.pop();for(;r;){for(const a of r)t.push(a);r=i.pop()}this.map.length=0}}function i2(e,t,n,i){let r=0;if(!(n===0&&i.length===0)){for(;r<e.map.length;){if(e.map[r][0]===t){e.map[r][1]+=n,e.map[r][2].push(...i);return}r+=1}e.map.push([t,n,i])}}function r2(e,t){let n=!1;const i=[];for(;t<e.length;){const r=e[t];if(n){if(r[0]==="enter")r[1].type==="tableContent"&&i.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(r[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const a=i.length-1;i[a]=i[a]==="left"?"center":"right"}}else if(r[1].type==="tableDelimiterRow")break}else r[0]==="enter"&&r[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return i}function a2(){return{flow:{null:{name:"table",tokenize:s2,resolveAll:o2}}}}function s2(e,t,n){const i=this;let r=0,a=0,s;return l;function l(D){let q=i.events.length-1;for(;q>-1;){const j=i.events[q][1].type;if(j==="lineEnding"||j==="linePrefix")q--;else break}const J=q>-1?i.events[q][1].type:null,K=J==="tableHead"||J==="tableRow"?f:u;return K===f&&i.parser.lazy[i.now().line]?n(D):K(D)}function u(D){return e.enter("tableHead"),e.enter("tableRow"),c(D)}function c(D){return D===124||(s=!0,a+=1),d(D)}function d(D){return D===null?n(D):Oe(D)?a>1?(a=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(D),e.exit("lineEnding"),m):n(D):ze(D)?Ke(e,d,"whitespace")(D):(a+=1,s&&(s=!1,r+=1),D===124?(e.enter("tableCellDivider"),e.consume(D),e.exit("tableCellDivider"),s=!0,d):(e.enter("data"),p(D)))}function p(D){return D===null||D===124||Ge(D)?(e.exit("data"),d(D)):(e.consume(D),D===92?g:p)}function g(D){return D===92||D===124?(e.consume(D),p):p(D)}function m(D){return i.interrupt=!1,i.parser.lazy[i.now().line]?n(D):(e.enter("tableDelimiterRow"),s=!1,ze(D)?Ke(e,C,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(D):C(D))}function C(D){return D===45||D===58?w(D):D===124?(s=!0,e.enter("tableCellDivider"),e.consume(D),e.exit("tableCellDivider"),x):y(D)}function x(D){return ze(D)?Ke(e,w,"whitespace")(D):w(D)}function w(D){return D===58?(a+=1,s=!0,e.enter("tableDelimiterMarker"),e.consume(D),e.exit("tableDelimiterMarker"),S):D===45?(a+=1,S(D)):D===null||Oe(D)?A(D):y(D)}function S(D){return D===45?(e.enter("tableDelimiterFiller"),k(D)):y(D)}function k(D){return D===45?(e.consume(D),k):D===58?(s=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(D),e.exit("tableDelimiterMarker"),E):(e.exit("tableDelimiterFiller"),E(D))}function E(D){return ze(D)?Ke(e,A,"whitespace")(D):A(D)}function A(D){return D===124?C(D):D===null||Oe(D)?!s||r!==a?y(D):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(D)):y(D)}function y(D){return n(D)}function f(D){return e.enter("tableRow"),T(D)}function T(D){return D===124?(e.enter("tableCellDivider"),e.consume(D),e.exit("tableCellDivider"),T):D===null||Oe(D)?(e.exit("tableRow"),t(D)):ze(D)?Ke(e,T,"whitespace")(D):(e.enter("data"),R(D))}function R(D){return D===null||D===124||Ge(D)?(e.exit("data"),T(D)):(e.consume(D),D===92?F:R)}function F(D){return D===92||D===124?(e.consume(D),R):R(D)}}function o2(e,t){let n=-1,i=!0,r=0,a=[0,0,0,0],s=[0,0,0,0],l=!1,u=0,c,d,p;const g=new n2;for(;++n<e.length;){const m=e[n],C=m[1];m[0]==="enter"?C.type==="tableHead"?(l=!1,u!==0&&(vh(g,t,u,c,d),d=void 0,u=0),c={type:"table",start:Object.assign({},C.start),end:Object.assign({},C.end)},g.add(n,0,[["enter",c,t]])):C.type==="tableRow"||C.type==="tableDelimiterRow"?(i=!0,p=void 0,a=[0,0,0,0],s=[0,n+1,0,0],l&&(l=!1,d={type:"tableBody",start:Object.assign({},C.start),end:Object.assign({},C.end)},g.add(n,0,[["enter",d,t]])),r=C.type==="tableDelimiterRow"?2:d?3:1):r&&(C.type==="data"||C.type==="tableDelimiterMarker"||C.type==="tableDelimiterFiller")?(i=!1,s[2]===0&&(a[1]!==0&&(s[0]=s[1],p=Ur(g,t,a,r,void 0,p),a=[0,0,0,0]),s[2]=n)):C.type==="tableCellDivider"&&(i?i=!1:(a[1]!==0&&(s[0]=s[1],p=Ur(g,t,a,r,void 0,p)),a=s,s=[a[1],n,0,0])):C.type==="tableHead"?(l=!0,u=n):C.type==="tableRow"||C.type==="tableDelimiterRow"?(u=n,a[1]!==0?(s[0]=s[1],p=Ur(g,t,a,r,n,p)):s[1]!==0&&(p=Ur(g,t,s,r,n,p)),r=0):r&&(C.type==="data"||C.type==="tableDelimiterMarker"||C.type==="tableDelimiterFiller")&&(s[3]=n)}for(u!==0&&vh(g,t,u,c,d),g.consume(t.events),n=-1;++n<t.events.length;){const m=t.events[n];m[0]==="enter"&&m[1].type==="table"&&(m[1]._align=r2(t.events,n))}return e}function Ur(e,t,n,i,r,a){const s=i===1?"tableHeader":i===2?"tableDelimiter":"tableData",l="tableContent";n[0]!==0&&(a.end=Object.assign({},Ai(t.events,n[0])),e.add(n[0],0,[["exit",a,t]]));const u=Ai(t.events,n[1]);if(a={type:s,start:Object.assign({},u),end:Object.assign({},u)},e.add(n[1],0,[["enter",a,t]]),n[2]!==0){const c=Ai(t.events,n[2]),d=Ai(t.events,n[3]),p={type:l,start:Object.assign({},c),end:Object.assign({},d)};if(e.add(n[2],0,[["enter",p,t]]),i!==2){const g=t.events[n[2]],m=t.events[n[3]];if(g[1].end=Object.assign({},m[1].end),g[1].type="chunkText",g[1].contentType="text",n[3]>n[2]+1){const C=n[2]+1,x=n[3]-n[2]-1;e.add(C,x,[])}}e.add(n[3]+1,0,[["exit",p,t]])}return r!==void 0&&(a.end=Object.assign({},Ai(t.events,r)),e.add(r,0,[["exit",a,t]]),a=void 0),a}function vh(e,t,n,i,r){const a=[],s=Ai(t.events,n);r&&(r.end=Object.assign({},s),a.push(["exit",r,t])),i.end=Object.assign({},s),a.push(["exit",i,t]),e.add(n+1,0,a)}function Ai(e,t){const n=e[t],i=n[0]==="enter"?"start":"end";return n[1][i]}const l2={name:"tasklistCheck",tokenize:c2};function u2(){return{text:{91:l2}}}function c2(e,t,n){const i=this;return r;function r(u){return i.previous!==null||!i._gfmTasklistFirstContentOfListItem?n(u):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),a)}function a(u){return Ge(u)?(e.enter("taskListCheckValueUnchecked"),e.consume(u),e.exit("taskListCheckValueUnchecked"),s):u===88||u===120?(e.enter("taskListCheckValueChecked"),e.consume(u),e.exit("taskListCheckValueChecked"),s):n(u)}function s(u){return u===93?(e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),l):n(u)}function l(u){return Oe(u)?t(u):ze(u)?e.check({tokenize:h2},t,n)(u):n(u)}}function h2(e,t,n){return Ke(e,i,"whitespace");function i(r){return r===null?n(r):t(r)}}function d2(e){return jl([FI(),GI(),t2(e),a2(),u2()])}const p2={};function f2(e){const t=this,n=e||p2,i=t.data(),r=i.micromarkExtensions||(i.micromarkExtensions=[]),a=i.fromMarkdownExtensions||(i.fromMarkdownExtensions=[]),s=i.toMarkdownExtensions||(i.toMarkdownExtensions=[]);r.push(d2(n)),a.push(RI()),s.push(MI(n))}const Bg=async()=>(await we.getNodeInfo({verb:we.DesignerRequestVerb.GET_INFO,path:"WebForms"})).filter(t=>t.ext==="WebForm"),Eo=(e,t,n)=>{let i=[];return Array.isArray(e)?e.forEach((r,a)=>{i=i.concat(Eo(r,`${t}.[${a}]`,n))}):he.isObject(e)?he.has(e,n)?i.push(`${t}.${n}`):Object.entries(e).forEach(([a,s])=>{i=i.concat(Eo(s,`${t}.${a}`,n))}):t===n&&i.push(n),i},g2=()=>new Date().toLocaleTimeString("en-GB",{hour:"2-digit",minute:"2-digit"}),xh=e=>{const t=/[",\n\r]/.test(e);let n=e.replace(/"/g,'""');return t&&(n=`"${n}"`),n},m2=(e,t,n)=>{let i="";const r=[...t],a=()=>r.map(d=>""),s=(d,p,g)=>{const m=r.findIndex(C=>C===p);m<0?(d.push(g),r.push(p)):d[m]=g},l=d=>d.join(n)+`
|
|
125
|
-
`,{webforms:u,i18n:
|
|
68
|
+
`),r;function s(o){return i.stack.push(o),l;function l(){i.stack.pop()}}}function ab(e){throw new Error("Cannot handle value `"+e+"`, expected node")}function sb(e){const t=e;throw new Error("Cannot handle unknown node `"+t.type+"`")}function ob(e,t){if(e.type==="definition"&&e.type===t.type)return 0}function lb(e,t){return Yv(e,this,t)}function ub(e,t){return Qv(e,this,t)}function cb(e,t){return tb(this,e,t)}function hb(e){const t=this;t.compiler=n;function n(i){return rb(i,{...t.data("settings"),...e,extensions:t.data("toMarkdownExtensions")||[]})}}function Ll(e){if(e)throw e}var sa,Ml;function fb(){if(Ml)return sa;Ml=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,i=Object.getOwnPropertyDescriptor,r=function(f){return typeof Array.isArray=="function"?Array.isArray(f):t.call(f)==="[object Array]"},s=function(f){if(!f||t.call(f)!=="[object Object]")return!1;var p=e.call(f,"constructor"),h=f.constructor&&f.constructor.prototype&&e.call(f.constructor.prototype,"isPrototypeOf");if(f.constructor&&!p&&!h)return!1;var d;for(d in f);return typeof d>"u"||e.call(f,d)},o=function(f,p){n&&p.name==="__proto__"?n(f,p.name,{enumerable:!0,configurable:!0,value:p.newValue,writable:!0}):f[p.name]=p.newValue},l=function(f,p){if(p==="__proto__")if(e.call(f,p)){if(i)return i(f,p).value}else return;return f[p]};return sa=function u(){var f,p,h,d,m,b,v=arguments[0],S=1,E=arguments.length,k=!1;for(typeof v=="boolean"&&(k=v,v=arguments[1]||{},S=2),(v==null||typeof v!="object"&&typeof v!="function")&&(v={});S<E;++S)if(f=arguments[S],f!=null)for(p in f)h=l(v,p),d=l(f,p),v!==d&&(k&&d&&(s(d)||(m=r(d)))?(m?(m=!1,b=h&&r(h)?h:[]):b=h&&s(h)?h:{},o(v,{name:p,newValue:u(k,b,d)})):typeof d<"u"&&o(v,{name:p,newValue:d}));return v},sa}var pb=fb();const oa=Lr(pb);function Ya(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function db(){const e=[],t={run:n,use:i};return t;function n(...r){let s=-1;const o=r.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);l(null,...r);function l(u,...f){const p=e[++s];let h=-1;if(u){o(u);return}for(;++h<r.length;)(f[h]===null||f[h]===void 0)&&(f[h]=r[h]);r=f,p?gb(p,l)(...f):o(null,...f)}}function i(r){if(typeof r!="function")throw new TypeError("Expected `middelware` to be a function, not "+r);return e.push(r),t}}function gb(e,t){let n;return i;function i(...o){const l=e.length>o.length;let u;l&&o.push(r);try{u=e.apply(this,o)}catch(f){const p=f;if(l&&n)throw p;return r(p)}l||(u&&u.then&&typeof u.then=="function"?u.then(s,r):u instanceof Error?r(u):s(u))}function r(o,...l){n||(n=!0,t(o,...l))}function s(o){r(null,o)}}const Ht={basename:mb,dirname:xb,extname:vb,join:bb,sep:"/"};function mb(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');_i(e);let n=0,i=-1,r=e.length,s;if(t===void 0||t.length===0||t.length>e.length){for(;r--;)if(e.codePointAt(r)===47){if(s){n=r+1;break}}else i<0&&(s=!0,i=r+1);return i<0?"":e.slice(n,i)}if(t===e)return"";let o=-1,l=t.length-1;for(;r--;)if(e.codePointAt(r)===47){if(s){n=r+1;break}}else o<0&&(s=!0,o=r+1),l>-1&&(e.codePointAt(r)===t.codePointAt(l--)?l<0&&(i=r):(l=-1,i=o));return n===i?i=o:i<0&&(i=e.length),e.slice(n,i)}function xb(e){if(_i(e),e.length===0)return".";let t=-1,n=e.length,i;for(;--n;)if(e.codePointAt(n)===47){if(i){t=n;break}}else i||(i=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function vb(e){_i(e);let t=e.length,n=-1,i=0,r=-1,s=0,o;for(;t--;){const l=e.codePointAt(t);if(l===47){if(o){i=t+1;break}continue}n<0&&(o=!0,n=t+1),l===46?r<0?r=t:s!==1&&(s=1):r>-1&&(s=-1)}return r<0||n<0||s===0||s===1&&r===n-1&&r===i+1?"":e.slice(r,n)}function bb(...e){let t=-1,n;for(;++t<e.length;)_i(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":yb(n)}function yb(e){_i(e);const t=e.codePointAt(0)===47;let n=wb(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function wb(e,t){let n="",i=0,r=-1,s=0,o=-1,l,u;for(;++o<=e.length;){if(o<e.length)l=e.codePointAt(o);else{if(l===47)break;l=47}if(l===47){if(!(r===o-1||s===1))if(r!==o-1&&s===2){if(n.length<2||i!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(u=n.lastIndexOf("/"),u!==n.length-1){u<0?(n="",i=0):(n=n.slice(0,u),i=n.length-1-n.lastIndexOf("/")),r=o,s=0;continue}}else if(n.length>0){n="",i=0,r=o,s=0;continue}}t&&(n=n.length>0?n+"/..":"..",i=2)}else n.length>0?n+="/"+e.slice(r+1,o):n=e.slice(r+1,o),i=o-r-1;r=o,s=0}else l===46&&s>-1?s++:s=-1}return n}function _i(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Eb={cwd:Sb};function Sb(){return"/"}function Qa(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function kb(e){if(typeof e=="string")e=new URL(e);else if(!Qa(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return Cb(e)}function Cb(e){if(e.hostname!==""){const i=new TypeError('File URL host must be "localhost" or empty on darwin');throw i.code="ERR_INVALID_FILE_URL_HOST",i}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const i=t.codePointAt(n+2);if(i===70||i===102){const r=new TypeError("File URL path must not include encoded / characters");throw r.code="ERR_INVALID_FILE_URL_PATH",r}}return decodeURIComponent(t)}const la=["history","path","basename","stem","extname","dirname"];class _b{constructor(t){let n;t?Qa(t)?n={path:t}:typeof t=="string"||Ib(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":Eb.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let i=-1;for(;++i<la.length;){const s=la[i];s in n&&n[s]!==void 0&&n[s]!==null&&(this[s]=s==="history"?[...n[s]]:n[s])}let r;for(r in n)la.includes(r)||(this[r]=n[r])}get basename(){return typeof this.path=="string"?Ht.basename(this.path):void 0}set basename(t){ca(t,"basename"),ua(t,"basename"),this.path=Ht.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Ht.dirname(this.path):void 0}set dirname(t){Fl(this.basename,"dirname"),this.path=Ht.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Ht.extname(this.path):void 0}set extname(t){if(ua(t,"extname"),Fl(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Ht.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Qa(t)&&(t=kb(t)),ca(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Ht.basename(this.path,this.extname):void 0}set stem(t){ca(t,"stem"),ua(t,"stem"),this.path=Ht.join(this.dirname||"",t+(this.extname||""))}fail(t,n,i){const r=this.message(t,n,i);throw r.fatal=!0,r}info(t,n,i){const r=this.message(t,n,i);return r.fatal=void 0,r}message(t,n,i){const r=new qe(t,n,i);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function ua(e,t){if(e&&e.includes(Ht.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Ht.sep+"`")}function ca(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Fl(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function Ib(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Ab=(function(e){const i=this.constructor.prototype,r=i[e],s=function(){return r.apply(s,arguments)};return Object.setPrototypeOf(s,i),s}),Tb={}.hasOwnProperty;class Es extends Ab{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=db()}copy(){const t=new Es;let n=-1;for(;++n<this.attachers.length;){const i=this.attachers[n];t.use(...i)}return t.data(oa(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(pa("data",this.frozen),this.namespace[t]=n,this):Tb.call(this.namespace,t)&&this.namespace[t]||void 0:t?(pa("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...i]=this.attachers[this.freezeIndex];if(i[0]===!1)continue;i[0]===!0&&(i[0]=void 0);const r=n.call(t,...i);typeof r=="function"&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=ji(t),i=this.parser||this.Parser;return ha("parse",i),i(String(n),n)}process(t,n){const i=this;return this.freeze(),ha("process",this.parser||this.Parser),fa("process",this.compiler||this.Compiler),n?r(void 0,n):new Promise(r);function r(s,o){const l=ji(t),u=i.parse(l);i.run(u,l,function(p,h,d){if(p||!h||!d)return f(p);const m=h,b=i.stringify(m,d);Ob(b)?d.value=b:d.result=b,f(p,d)});function f(p,h){p||!h?o(p):s?s(h):n(void 0,h)}}}processSync(t){let n=!1,i;return this.freeze(),ha("processSync",this.parser||this.Parser),fa("processSync",this.compiler||this.Compiler),this.process(t,r),jl("processSync","process",n),i;function r(s,o){n=!0,Ll(s),i=o}}run(t,n,i){Dl(t),this.freeze();const r=this.transformers;return!i&&typeof n=="function"&&(i=n,n=void 0),i?s(void 0,i):new Promise(s);function s(o,l){const u=ji(n);r.run(t,u,f);function f(p,h,d){const m=h||t;p?l(p):o?o(m):i(void 0,m,d)}}}runSync(t,n){let i=!1,r;return this.run(t,n,s),jl("runSync","run",i),r;function s(o,l){Ll(o),r=l,i=!0}}stringify(t,n){this.freeze();const i=ji(n),r=this.compiler||this.Compiler;return fa("stringify",r),Dl(t),r(t,i)}use(t,...n){const i=this.attachers,r=this.namespace;if(pa("use",this.frozen),t!=null)if(typeof t=="function")u(t,n);else if(typeof t=="object")Array.isArray(t)?l(t):o(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function s(f){if(typeof f=="function")u(f,[]);else if(typeof f=="object")if(Array.isArray(f)){const[p,...h]=f;u(p,h)}else o(f);else throw new TypeError("Expected usable value, not `"+f+"`")}function o(f){if(!("plugins"in f)&&!("settings"in f))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");l(f.plugins),f.settings&&(r.settings=oa(!0,r.settings,f.settings))}function l(f){let p=-1;if(f!=null)if(Array.isArray(f))for(;++p<f.length;){const h=f[p];s(h)}else throw new TypeError("Expected a list of plugins, not `"+f+"`")}function u(f,p){let h=-1,d=-1;for(;++h<i.length;)if(i[h][0]===f){d=h;break}if(d===-1)i.push([f,...p]);else if(p.length>0){let[m,...b]=p;const v=i[d][1];Ya(v)&&Ya(m)&&(m=oa(!0,v,m)),i[d]=[f,m,...b]}}}}const Nb=new Es().freeze();function ha(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function fa(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function pa(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Dl(e){if(!Ya(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function jl(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function ji(e){return Pb(e)?e:new _b(e)}function Pb(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Ob(e){return typeof e=="string"||Rb(e)}function Rb(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Lb=Nb().use(tv).use(hb).freeze();function Mb(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function Fb(e,t,n){const r=Dr((n||{}).ignore||[]),s=Db(t);let o=-1;for(;++o<s.length;)Eh(e,"text",l);function l(f,p){let h=-1,d;for(;++h<p.length;){const m=p[h],b=d?d.children:void 0;if(r(m,b?b.indexOf(m):void 0,d))return;d=m}if(d)return u(f,p)}function u(f,p){const h=p[p.length-1],d=s[o][0],m=s[o][1];let b=0;const S=h.children.indexOf(f);let E=!1,k=[];d.lastIndex=0;let I=d.exec(f.value);for(;I;){const N=I.index,y={index:I.index,input:I.input,stack:[...p,f]};let g=m(...I,y);if(typeof g=="string"&&(g=g.length>0?{type:"text",value:g}:void 0),g===!1?d.lastIndex=N+1:(b!==N&&k.push({type:"text",value:f.value.slice(b,N)}),Array.isArray(g)?k.push(...g):g&&k.push(g),b=N+I[0].length,E=!0),!d.global)break;I=d.exec(f.value)}return E?(b<f.value.length&&k.push({type:"text",value:f.value.slice(b)}),h.children.splice(S,1,...k)):k=[f],S+k.length}}function Db(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let i=-1;for(;++i<n.length;){const r=n[i];t.push([jb(r[0]),Vb(r[1])])}return t}function jb(e){return typeof e=="string"?new RegExp(Mb(e),"g"):e}function Vb(e){return typeof e=="function"?e:function(){return e}}const da="phrasing",ga=["autolink","link","image","label"];function Bb(){return{transforms:[Wb],enter:{literalAutolink:Kb,literalAutolinkEmail:ma,literalAutolinkHttp:ma,literalAutolinkWww:ma},exit:{literalAutolink:qb,literalAutolinkEmail:$b,literalAutolinkHttp:Ub,literalAutolinkWww:Hb}}}function zb(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:da,notInConstruct:ga},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:da,notInConstruct:ga},{character:":",before:"[ps]",after:"\\/",inConstruct:da,notInConstruct:ga}]}}function Kb(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function ma(e){this.config.enter.autolinkProtocol.call(this,e)}function Ub(e){this.config.exit.autolinkProtocol.call(this,e)}function Hb(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function $b(e){this.config.exit.autolinkEmail.call(this,e)}function qb(e){this.exit(e)}function Wb(e){Fb(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Gb],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),Jb]],{ignore:["link","linkReference"]})}function Gb(e,t,n,i,r){let s="";if(!Mh(r)||(/^w/i.test(t)&&(n=t+n,t="",s="http://"),!Yb(n)))return!1;const o=Qb(n+i);if(!o[0])return!1;const l={type:"link",title:null,url:s+t+o[0],children:[{type:"text",value:t+o[0]}]};return o[1]?[l,{type:"text",value:o[1]}]:l}function Jb(e,t,n,i){return!Mh(i,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function Yb(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function Qb(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],i=n.indexOf(")");const r=ur(e,"(");let s=ur(e,")");for(;i!==-1&&r>s;)e+=n.slice(0,i+1),n=n.slice(i+1),i=n.indexOf(")"),s++;return[e,n]}function Mh(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||ct(n)||Mr(n))&&(!t||n!==47)}Fh.peek=sy;function Zb(){this.buffer()}function Xb(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function ey(){this.buffer()}function ty(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function ny(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=zt(this.sliceSerialize(e)).toLowerCase(),n.label=t}function iy(e){this.exit(e)}function ry(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=zt(this.sliceSerialize(e)).toLowerCase(),n.label=t}function ay(e){this.exit(e)}function sy(){return"["}function Fh(e,t,n,i){const r=n.createTracker(i);let s=r.move("[^");const o=n.enter("footnoteReference"),l=n.enter("reference");return s+=r.move(n.safe(n.associationId(e),{after:"]",before:s})),l(),o(),s+=r.move("]"),s}function oy(){return{enter:{gfmFootnoteCallString:Zb,gfmFootnoteCall:Xb,gfmFootnoteDefinitionLabelString:ey,gfmFootnoteDefinition:ty},exit:{gfmFootnoteCallString:ny,gfmFootnoteCall:iy,gfmFootnoteDefinitionLabelString:ry,gfmFootnoteDefinition:ay}}}function ly(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:Fh},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(i,r,s,o){const l=s.createTracker(o);let u=l.move("[^");const f=s.enter("footnoteDefinition"),p=s.enter("label");return u+=l.move(s.safe(s.associationId(i),{before:u,after:"]"})),p(),u+=l.move("]:"),i.children&&i.children.length>0&&(l.shift(4),u+=l.move((t?`
|
|
69
|
+
`:" ")+s.indentLines(s.containerFlow(i,l.current()),t?Dh:uy))),f(),u}}function uy(e,t,n){return t===0?e:Dh(e,t,n)}function Dh(e,t,n){return(n?"":" ")+e}const cy=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];jh.peek=gy;function hy(){return{canContainEols:["delete"],enter:{strikethrough:py},exit:{strikethrough:dy}}}function fy(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:cy}],handlers:{delete:jh}}}function py(e){this.enter({type:"delete",children:[]},e)}function dy(e){this.exit(e)}function jh(e,t,n,i){const r=n.createTracker(i),s=n.enter("strikethrough");let o=r.move("~~");return o+=n.containerPhrasing(e,{...r.current(),before:o,after:"~"}),o+=r.move("~~"),s(),o}function gy(){return"~"}function my(e){return e.length}function xy(e,t){const n=t||{},i=(n.align||[]).concat(),r=n.stringLength||my,s=[],o=[],l=[],u=[];let f=0,p=-1;for(;++p<e.length;){const v=[],S=[];let E=-1;for(e[p].length>f&&(f=e[p].length);++E<e[p].length;){const k=vy(e[p][E]);if(n.alignDelimiters!==!1){const I=r(k);S[E]=I,(u[E]===void 0||I>u[E])&&(u[E]=I)}v.push(k)}o[p]=v,l[p]=S}let h=-1;if(typeof i=="object"&&"length"in i)for(;++h<f;)s[h]=Vl(i[h]);else{const v=Vl(i);for(;++h<f;)s[h]=v}h=-1;const d=[],m=[];for(;++h<f;){const v=s[h];let S="",E="";v===99?(S=":",E=":"):v===108?S=":":v===114&&(E=":");let k=n.alignDelimiters===!1?1:Math.max(1,u[h]-S.length-E.length);const I=S+"-".repeat(k)+E;n.alignDelimiters!==!1&&(k=S.length+k+E.length,k>u[h]&&(u[h]=k),m[h]=k),d[h]=I}o.splice(1,0,d),l.splice(1,0,m),p=-1;const b=[];for(;++p<o.length;){const v=o[p],S=l[p];h=-1;const E=[];for(;++h<f;){const k=v[h]||"";let I="",N="";if(n.alignDelimiters!==!1){const y=u[h]-(S[h]||0),g=s[h];g===114?I=" ".repeat(y):g===99?y%2?(I=" ".repeat(y/2+.5),N=" ".repeat(y/2-.5)):(I=" ".repeat(y/2),N=I):N=" ".repeat(y)}n.delimiterStart!==!1&&!h&&E.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&k==="")&&(n.delimiterStart!==!1||h)&&E.push(" "),n.alignDelimiters!==!1&&E.push(I),E.push(k),n.alignDelimiters!==!1&&E.push(N),n.padding!==!1&&E.push(" "),(n.delimiterEnd!==!1||h!==f-1)&&E.push("|")}b.push(n.delimiterEnd===!1?E.join("").replace(/ +$/,""):E.join(""))}return b.join(`
|
|
70
|
+
`)}function vy(e){return e==null?"":String(e)}function Vl(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function by(){return{enter:{table:yy,tableData:Bl,tableHeader:Bl,tableRow:Ey},exit:{codeText:Sy,table:wy,tableData:xa,tableHeader:xa,tableRow:xa}}}function yy(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function wy(e){this.exit(e),this.data.inTable=void 0}function Ey(e){this.enter({type:"tableRow",children:[]},e)}function xa(e){this.exit(e)}function Bl(e){this.enter({type:"tableCell",children:[]},e)}function Sy(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,ky));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function ky(e,t){return t==="|"?t:e}function Cy(e){const t=e||{},n=t.tableCellPadding,i=t.tablePipeAlign,r=t.stringLength,s=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
71
|
+
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:d,table:o,tableCell:u,tableRow:l}};function o(m,b,v,S){return f(p(m,v,S),m.align)}function l(m,b,v,S){const E=h(m,v,S),k=f([E]);return k.slice(0,k.indexOf(`
|
|
72
|
+
`))}function u(m,b,v,S){const E=v.enter("tableCell"),k=v.enter("phrasing"),I=v.containerPhrasing(m,{...S,before:s,after:s});return k(),E(),I}function f(m,b){return xy(m,{align:b,alignDelimiters:i,padding:n,stringLength:r})}function p(m,b,v){const S=m.children;let E=-1;const k=[],I=b.enter("table");for(;++E<S.length;)k[E]=h(S[E],b,v);return I(),k}function h(m,b,v){const S=m.children;let E=-1;const k=[],I=b.enter("tableRow");for(;++E<S.length;)k[E]=u(S[E],m,b,v);return I(),k}function d(m,b,v){let S=ws.inlineCode(m,b,v);return v.stack.includes("tableCell")&&(S=S.replace(/\|/g,"\\$&")),S}}function _y(){return{exit:{taskListCheckValueChecked:zl,taskListCheckValueUnchecked:zl,paragraph:Ay}}}function Iy(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Ty}}}function zl(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function Ay(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const i=n.children[0];if(i&&i.type==="text"){const r=t.children;let s=-1,o;for(;++s<r.length;){const l=r[s];if(l.type==="paragraph"){o=l;break}}o===n&&(i.value=i.value.slice(1),i.value.length===0?n.children.shift():n.position&&i.position&&typeof i.position.start.offset=="number"&&(i.position.start.column++,i.position.start.offset++,n.position.start=Object.assign({},i.position.start)))}}this.exit(e)}function Ty(e,t,n,i){const r=e.children[0],s=typeof e.checked=="boolean"&&r&&r.type==="paragraph",o="["+(e.checked?"x":" ")+"] ",l=n.createTracker(i);s&&l.move(o);let u=ws.listItem(e,t,n,{...i,...l.current()});return s&&(u=u.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,f)),u;function f(p){return p+o}}function Ny(){return[Bb(),oy(),hy(),by(),_y()]}function Py(e){return{extensions:[zb(),ly(e),fy(),Cy(e),Iy()]}}const Oy={tokenize:jy,partial:!0},Vh={tokenize:Vy,partial:!0},Bh={tokenize:By,partial:!0},zh={tokenize:zy,partial:!0},Ry={tokenize:Ky,partial:!0},Kh={name:"wwwAutolink",tokenize:Fy,previous:Hh},Uh={name:"protocolAutolink",tokenize:Dy,previous:$h},un={name:"emailAutolink",tokenize:My,previous:qh},Qt={};function Ly(){return{text:Qt}}let kn=48;for(;kn<123;)Qt[kn]=un,kn++,kn===58?kn=65:kn===91&&(kn=97);Qt[43]=un;Qt[45]=un;Qt[46]=un;Qt[95]=un;Qt[72]=[un,Uh];Qt[104]=[un,Uh];Qt[87]=[un,Kh];Qt[119]=[un,Kh];function My(e,t,n){const i=this;let r,s;return o;function o(h){return!Za(h)||!qh.call(i,i.previous)||Ss(i.events)?n(h):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),l(h))}function l(h){return Za(h)?(e.consume(h),l):h===64?(e.consume(h),u):n(h)}function u(h){return h===46?e.check(Ry,p,f)(h):h===45||h===95||gt(h)?(s=!0,e.consume(h),u):p(h)}function f(h){return e.consume(h),r=!0,u}function p(h){return s&&r&<(i.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(h)):n(h)}}function Fy(e,t,n){const i=this;return r;function r(o){return o!==87&&o!==119||!Hh.call(i,i.previous)||Ss(i.events)?n(o):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Oy,e.attempt(Vh,e.attempt(Bh,s),n),n)(o))}function s(o){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(o)}}function Dy(e,t,n){const i=this;let r="",s=!1;return o;function o(h){return(h===72||h===104)&&$h.call(i,i.previous)&&!Ss(i.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),r+=String.fromCodePoint(h),e.consume(h),l):n(h)}function l(h){if(lt(h)&&r.length<5)return r+=String.fromCodePoint(h),e.consume(h),l;if(h===58){const d=r.toLowerCase();if(d==="http"||d==="https")return e.consume(h),u}return n(h)}function u(h){return h===47?(e.consume(h),s?f:(s=!0,u)):n(h)}function f(h){return h===null||dr(h)||Ke(h)||ct(h)||Mr(h)?n(h):e.attempt(Vh,e.attempt(Bh,p),n)(h)}function p(h){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(h)}}function jy(e,t,n){let i=0;return r;function r(o){return(o===87||o===119)&&i<3?(i++,e.consume(o),r):o===46&&i===3?(e.consume(o),s):n(o)}function s(o){return o===null?n(o):t(o)}}function Vy(e,t,n){let i,r,s;return o;function o(f){return f===46||f===95?e.check(zh,u,l)(f):f===null||Ke(f)||ct(f)||f!==45&&Mr(f)?u(f):(s=!0,e.consume(f),o)}function l(f){return f===95?i=!0:(r=i,i=void 0),e.consume(f),o}function u(f){return r||i||!s?n(f):t(f)}}function By(e,t){let n=0,i=0;return r;function r(o){return o===40?(n++,e.consume(o),r):o===41&&i<n?s(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?e.check(zh,t,s)(o):o===null||Ke(o)||ct(o)?t(o):(e.consume(o),r)}function s(o){return o===41&&i++,e.consume(o),r}}function zy(e,t,n){return i;function i(l){return l===33||l===34||l===39||l===41||l===42||l===44||l===46||l===58||l===59||l===63||l===95||l===126?(e.consume(l),i):l===38?(e.consume(l),s):l===93?(e.consume(l),r):l===60||l===null||Ke(l)||ct(l)?t(l):n(l)}function r(l){return l===null||l===40||l===91||Ke(l)||ct(l)?t(l):i(l)}function s(l){return lt(l)?o(l):n(l)}function o(l){return l===59?(e.consume(l),i):lt(l)?(e.consume(l),o):n(l)}}function Ky(e,t,n){return i;function i(s){return e.consume(s),r}function r(s){return gt(s)?n(s):t(s)}}function Hh(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Ke(e)}function $h(e){return!lt(e)}function qh(e){return!(e===47||Za(e))}function Za(e){return e===43||e===45||e===46||e===95||gt(e)}function Ss(e){let t=e.length,n=!1;for(;t--;){const i=e[t][1];if((i.type==="labelLink"||i.type==="labelImage")&&!i._balanced){n=!0;break}if(i._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const Uy={tokenize:Qy,partial:!0};function Hy(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:Gy,continuation:{tokenize:Jy},exit:Yy}},text:{91:{name:"gfmFootnoteCall",tokenize:Wy},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:$y,resolveTo:qy}}}}function $y(e,t,n){const i=this;let r=i.events.length;const s=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let o;for(;r--;){const u=i.events[r][1];if(u.type==="labelImage"){o=u;break}if(u.type==="gfmFootnoteCall"||u.type==="labelLink"||u.type==="label"||u.type==="image"||u.type==="link")break}return l;function l(u){if(!o||!o._balanced)return n(u);const f=zt(i.sliceSerialize({start:o.end,end:i.now()}));return f.codePointAt(0)!==94||!s.includes(f.slice(1))?n(u):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(u),e.exit("gfmFootnoteCallLabelMarker"),t(u))}}function qy(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const i={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},r={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};r.end.column++,r.end.offset++,r.end._bufferIndex++;const s={type:"gfmFootnoteCallString",start:Object.assign({},r.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},s.start),end:Object.assign({},s.end)},l=[e[n+1],e[n+2],["enter",i,t],e[n+3],e[n+4],["enter",r,t],["exit",r,t],["enter",s,t],["enter",o,t],["exit",o,t],["exit",s,t],e[e.length-2],e[e.length-1],["exit",i,t]];return e.splice(n,e.length-n+1,...l),e}function Wy(e,t,n){const i=this,r=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let s=0,o;return l;function l(h){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),u}function u(h){return h!==94?n(h):(e.enter("gfmFootnoteCallMarker"),e.consume(h),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",f)}function f(h){if(s>999||h===93&&!o||h===null||h===91||Ke(h))return n(h);if(h===93){e.exit("chunkString");const d=e.exit("gfmFootnoteCallString");return r.includes(zt(i.sliceSerialize(d)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(h)}return Ke(h)||(o=!0),s++,e.consume(h),h===92?p:f}function p(h){return h===91||h===92||h===93?(e.consume(h),s++,f):f(h)}}function Gy(e,t,n){const i=this,r=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let s,o=0,l;return u;function u(b){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),f}function f(b){return b===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",p):n(b)}function p(b){if(o>999||b===93&&!l||b===null||b===91||Ke(b))return n(b);if(b===93){e.exit("chunkString");const v=e.exit("gfmFootnoteDefinitionLabelString");return s=zt(i.sliceSerialize(v)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),d}return Ke(b)||(l=!0),o++,e.consume(b),b===92?h:p}function h(b){return b===91||b===92||b===93?(e.consume(b),o++,p):p(b)}function d(b){return b===58?(e.enter("definitionMarker"),e.consume(b),e.exit("definitionMarker"),r.includes(s)||r.push(s),je(e,m,"gfmFootnoteDefinitionWhitespace")):n(b)}function m(b){return t(b)}}function Jy(e,t,n){return e.check(ti,t,e.attempt(Uy,t,n))}function Yy(e){e.exit("gfmFootnoteDefinition")}function Qy(e,t,n){const i=this;return je(e,r,"gfmFootnoteDefinitionIndent",5);function r(s){const o=i.events[i.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],!0).length===4?t(s):n(s)}}function Zy(e){let n=(e||{}).singleTilde;const i={name:"strikethrough",tokenize:s,resolveAll:r};return n==null&&(n=!0),{text:{126:i},insideSpan:{null:[i]},attentionMarkers:{null:[126]}};function r(o,l){let u=-1;for(;++u<o.length;)if(o[u][0]==="enter"&&o[u][1].type==="strikethroughSequenceTemporary"&&o[u][1]._close){let f=u;for(;f--;)if(o[f][0]==="exit"&&o[f][1].type==="strikethroughSequenceTemporary"&&o[f][1]._open&&o[u][1].end.offset-o[u][1].start.offset===o[f][1].end.offset-o[f][1].start.offset){o[u][1].type="strikethroughSequence",o[f][1].type="strikethroughSequence";const p={type:"strikethrough",start:Object.assign({},o[f][1].start),end:Object.assign({},o[u][1].end)},h={type:"strikethroughText",start:Object.assign({},o[f][1].end),end:Object.assign({},o[u][1].start)},d=[["enter",p,l],["enter",o[f][1],l],["exit",o[f][1],l],["enter",h,l]],m=l.parser.constructs.insideSpan.null;m&&Et(d,d.length,0,Fr(m,o.slice(f+1,u),l)),Et(d,d.length,0,[["exit",h,l],["enter",o[u][1],l],["exit",o[u][1],l],["exit",p,l]]),Et(o,f-1,u-f+3,d),u=f+d.length-2;break}}for(u=-1;++u<o.length;)o[u][1].type==="strikethroughSequenceTemporary"&&(o[u][1].type="data");return o}function s(o,l,u){const f=this.previous,p=this.events;let h=0;return d;function d(b){return f===126&&p[p.length-1][1].type!=="characterEscape"?u(b):(o.enter("strikethroughSequenceTemporary"),m(b))}function m(b){const v=qn(f);if(b===126)return h>1?u(b):(o.consume(b),h++,m);if(h<2&&!n)return u(b);const S=o.exit("strikethroughSequenceTemporary"),E=qn(b);return S._open=!E||E===2&&!!v,S._close=!v||v===2&&!!E,l(b)}}}class Xy{constructor(){this.map=[]}add(t,n,i){e1(this,t,n,i)}consume(t){if(this.map.sort(function(s,o){return s[0]-o[0]}),this.map.length===0)return;let n=this.map.length;const i=[];for(;n>0;)n-=1,i.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];i.push(t.slice()),t.length=0;let r=i.pop();for(;r;){for(const s of r)t.push(s);r=i.pop()}this.map.length=0}}function e1(e,t,n,i){let r=0;if(!(n===0&&i.length===0)){for(;r<e.map.length;){if(e.map[r][0]===t){e.map[r][1]+=n,e.map[r][2].push(...i);return}r+=1}e.map.push([t,n,i])}}function t1(e,t){let n=!1;const i=[];for(;t<e.length;){const r=e[t];if(n){if(r[0]==="enter")r[1].type==="tableContent"&&i.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(r[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const s=i.length-1;i[s]=i[s]==="left"?"center":"right"}}else if(r[1].type==="tableDelimiterRow")break}else r[0]==="enter"&&r[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return i}function n1(){return{flow:{null:{name:"table",tokenize:i1,resolveAll:r1}}}}function i1(e,t,n){const i=this;let r=0,s=0,o;return l;function l(R){let j=i.events.length-1;for(;j>-1;){const se=i.events[j][1].type;if(se==="lineEnding"||se==="linePrefix")j--;else break}const B=j>-1?i.events[j][1].type:null,D=B==="tableHead"||B==="tableRow"?g:u;return D===g&&i.parser.lazy[i.now().line]?n(R):D(R)}function u(R){return e.enter("tableHead"),e.enter("tableRow"),f(R)}function f(R){return R===124||(o=!0,s+=1),p(R)}function p(R){return R===null?n(R):_e(R)?s>1?(s=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(R),e.exit("lineEnding"),m):n(R):Me(R)?je(e,p,"whitespace")(R):(s+=1,o&&(o=!1,r+=1),R===124?(e.enter("tableCellDivider"),e.consume(R),e.exit("tableCellDivider"),o=!0,p):(e.enter("data"),h(R)))}function h(R){return R===null||R===124||Ke(R)?(e.exit("data"),p(R)):(e.consume(R),R===92?d:h)}function d(R){return R===92||R===124?(e.consume(R),h):h(R)}function m(R){return i.interrupt=!1,i.parser.lazy[i.now().line]?n(R):(e.enter("tableDelimiterRow"),o=!1,Me(R)?je(e,b,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(R):b(R))}function b(R){return R===45||R===58?S(R):R===124?(o=!0,e.enter("tableCellDivider"),e.consume(R),e.exit("tableCellDivider"),v):y(R)}function v(R){return Me(R)?je(e,S,"whitespace")(R):S(R)}function S(R){return R===58?(s+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(R),e.exit("tableDelimiterMarker"),E):R===45?(s+=1,E(R)):R===null||_e(R)?N(R):y(R)}function E(R){return R===45?(e.enter("tableDelimiterFiller"),k(R)):y(R)}function k(R){return R===45?(e.consume(R),k):R===58?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(R),e.exit("tableDelimiterMarker"),I):(e.exit("tableDelimiterFiller"),I(R))}function I(R){return Me(R)?je(e,N,"whitespace")(R):N(R)}function N(R){return R===124?b(R):R===null||_e(R)?!o||r!==s?y(R):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(R)):y(R)}function y(R){return n(R)}function g(R){return e.enter("tableRow"),A(R)}function A(R){return R===124?(e.enter("tableCellDivider"),e.consume(R),e.exit("tableCellDivider"),A):R===null||_e(R)?(e.exit("tableRow"),t(R)):Me(R)?je(e,A,"whitespace")(R):(e.enter("data"),M(R))}function M(R){return R===null||R===124||Ke(R)?(e.exit("data"),A(R)):(e.consume(R),R===92?F:M)}function F(R){return R===92||R===124?(e.consume(R),M):M(R)}}function r1(e,t){let n=-1,i=!0,r=0,s=[0,0,0,0],o=[0,0,0,0],l=!1,u=0,f,p,h;const d=new Xy;for(;++n<e.length;){const m=e[n],b=m[1];m[0]==="enter"?b.type==="tableHead"?(l=!1,u!==0&&(Kl(d,t,u,f,p),p=void 0,u=0),f={type:"table",start:Object.assign({},b.start),end:Object.assign({},b.end)},d.add(n,0,[["enter",f,t]])):b.type==="tableRow"||b.type==="tableDelimiterRow"?(i=!0,h=void 0,s=[0,0,0,0],o=[0,n+1,0,0],l&&(l=!1,p={type:"tableBody",start:Object.assign({},b.start),end:Object.assign({},b.end)},d.add(n,0,[["enter",p,t]])),r=b.type==="tableDelimiterRow"?2:p?3:1):r&&(b.type==="data"||b.type==="tableDelimiterMarker"||b.type==="tableDelimiterFiller")?(i=!1,o[2]===0&&(s[1]!==0&&(o[0]=o[1],h=Vi(d,t,s,r,void 0,h),s=[0,0,0,0]),o[2]=n)):b.type==="tableCellDivider"&&(i?i=!1:(s[1]!==0&&(o[0]=o[1],h=Vi(d,t,s,r,void 0,h)),s=o,o=[s[1],n,0,0])):b.type==="tableHead"?(l=!0,u=n):b.type==="tableRow"||b.type==="tableDelimiterRow"?(u=n,s[1]!==0?(o[0]=o[1],h=Vi(d,t,s,r,n,h)):o[1]!==0&&(h=Vi(d,t,o,r,n,h)),r=0):r&&(b.type==="data"||b.type==="tableDelimiterMarker"||b.type==="tableDelimiterFiller")&&(o[3]=n)}for(u!==0&&Kl(d,t,u,f,p),d.consume(t.events),n=-1;++n<t.events.length;){const m=t.events[n];m[0]==="enter"&&m[1].type==="table"&&(m[1]._align=t1(t.events,n))}return e}function Vi(e,t,n,i,r,s){const o=i===1?"tableHeader":i===2?"tableDelimiter":"tableData",l="tableContent";n[0]!==0&&(s.end=Object.assign({},Un(t.events,n[0])),e.add(n[0],0,[["exit",s,t]]));const u=Un(t.events,n[1]);if(s={type:o,start:Object.assign({},u),end:Object.assign({},u)},e.add(n[1],0,[["enter",s,t]]),n[2]!==0){const f=Un(t.events,n[2]),p=Un(t.events,n[3]),h={type:l,start:Object.assign({},f),end:Object.assign({},p)};if(e.add(n[2],0,[["enter",h,t]]),i!==2){const d=t.events[n[2]],m=t.events[n[3]];if(d[1].end=Object.assign({},m[1].end),d[1].type="chunkText",d[1].contentType="text",n[3]>n[2]+1){const b=n[2]+1,v=n[3]-n[2]-1;e.add(b,v,[])}}e.add(n[3]+1,0,[["exit",h,t]])}return r!==void 0&&(s.end=Object.assign({},Un(t.events,r)),e.add(r,0,[["exit",s,t]]),s=void 0),s}function Kl(e,t,n,i,r){const s=[],o=Un(t.events,n);r&&(r.end=Object.assign({},o),s.push(["exit",r,t])),i.end=Object.assign({},o),s.push(["exit",i,t]),e.add(n+1,0,s)}function Un(e,t){const n=e[t],i=n[0]==="enter"?"start":"end";return n[1][i]}const a1={name:"tasklistCheck",tokenize:o1};function s1(){return{text:{91:a1}}}function o1(e,t,n){const i=this;return r;function r(u){return i.previous!==null||!i._gfmTasklistFirstContentOfListItem?n(u):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),s)}function s(u){return Ke(u)?(e.enter("taskListCheckValueUnchecked"),e.consume(u),e.exit("taskListCheckValueUnchecked"),o):u===88||u===120?(e.enter("taskListCheckValueChecked"),e.consume(u),e.exit("taskListCheckValueChecked"),o):n(u)}function o(u){return u===93?(e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),l):n(u)}function l(u){return _e(u)?t(u):Me(u)?e.check({tokenize:l1},t,n)(u):n(u)}}function l1(e,t,n){return je(e,i,"whitespace");function i(r){return r===null?n(r):t(r)}}function u1(e){return vs([Ly(),Hy(),Zy(e),n1(),s1()])}const c1={};function h1(e){const t=this,n=e||c1,i=t.data(),r=i.micromarkExtensions||(i.micromarkExtensions=[]),s=i.fromMarkdownExtensions||(i.fromMarkdownExtensions=[]),o=i.toMarkdownExtensions||(i.toMarkdownExtensions=[]);r.push(u1(n)),s.push(Ny()),o.push(Py(n))}const Wh=async()=>(await fe.getNodeInfo({verb:fe.DesignerRequestVerb.GET_INFO,path:"WebForms"})).filter(t=>t.ext==="WebForm"),Xa=(e,t,n)=>{let i=[];return Array.isArray(e)?e.forEach((r,s)=>{i=i.concat(Xa(r,`${t}.[${s}]`,n))}):oe.isObject(e)?oe.has(e,n)?i.push(`${t}.${n}`):Object.entries(e).forEach(([s,o])=>{i=i.concat(Xa(o,`${t}.${s}`,n))}):t===n&&i.push(n),i},f1=()=>new Date().toLocaleTimeString("en-GB",{hour:"2-digit",minute:"2-digit"}),Ul=e=>{const t=/[",\n\r]/.test(e);let n=e.replace(/"/g,'""');return t&&(n=`"${n}"`),n},p1=(e,t,n)=>{let i="";const r=[...t],s=()=>r.map(p=>""),o=(p,h,d)=>{const m=r.findIndex(b=>b===h);m<0?(p.push(d),r.push(h)):p[m]=d},l=p=>p.join(n)+`
|
|
73
|
+
`,{webforms:u,i18n:f}=e;return u&&Object.keys(u).forEach(h=>{const d=oe.get(u,`${h}`);Object.keys(d).forEach(b=>{const{props:v,resolverName:S}=oe.get(d,b);Array.isArray(v)&&v.forEach(({__dataPath:E,__default:k,...I})=>{const N=s();o(N,"keys",`webforms.${h}.${b}.${E}`),o(N,"__t",Ul(k)),o(N,"resolverName",S),Object.keys(I).forEach(y=>{let g=y;y.startsWith("states:")&&(g=y.replace("states:",""),g=g.replace("i18n:","")),o(N,g,Ul(I[y]))}),i+=l(N)})})}),f&&Object.keys(f).forEach(h=>{const d=oe.get(f,h);d&&Object.keys(d).forEach(b=>{const v=oe.get(d,b),S=s();o(S,"keys",`i18n.${h}.${b}`),o(S,b==="default"?"i18nkey_default":b,v),i+=l(S)})}),l(r)+i},Bi=(e,t)=>{let n=e;return t.bold&&(n=`**${n}**`),t.italic&&(n=`*${n}*`),t.underlined&&(n=`<u>${n}</u>`),t.strikethrough&&(n=`~~${n}~~`),n},zi={datasource:e=>{const{datasource:t,dsType:n,format:i,children:r}=e;let s,o="";return r&&r[0]&&(s=r[0],o=`<ds datasource='${t}' dsType='${n}' format='${i}'>${Bi(s.text,s)}</ds>`),o},link:e=>{const{url:t,target:n,datasource:i,isDatasource:r,children:s}=e;let o="";if(s&&s[0]){const{text:l,...u}=s[0];o=`<link datasource='${i}' isDatasource='${r}' url='${t}' target='${n}'>${Bi(l,u)}</link>`}return o},i18n:e=>{const{children:t,__i18n:n}=e;let i="";if(t&&t[0]){const{text:r,...s}=t[0];i=`<i18n __i18n='${n}'>${Bi(r,s)}</i18n>`}return i},defaultElement:e=>{const{text:t}=e;return Bi(t,e)}},d1=e=>{const{type:t,text:n}=e;if(!t&&!n)return"<e/>";switch(t){case"datasource":return zi.datasource(e);case"link":return zi.link(e);case"i18n":return zi.i18n(e);default:return zi.defaultElement(e)}},g1=e=>e.map(t=>{const{children:n}=t;return n?n.map(i=>d1(i)).join(""):""}).filter(Boolean).join(`
|
|
126
74
|
|
|
127
|
-
`),
|
|
128
|
-
`||e[a]==="\r"?(n=!1,t+='"'):t+='""'}else n=!0,t+='"';else t+=r}return t},Ks=e=>{const t=b2(e),n=FC().use(f2,{singleTilde:!0}).use(kS).parse(t),i=(a,s,l)=>{var p;const{type:u,value:c}=a;let d={};if(u==="root"){const{children:g}=a;return g.map(m=>i(m,s)).flat()}if(s){if(u==="list"){const{children:g}=a;return g.map(m=>i(m,d,l)).flat()}else if(u==="listItem"){const{children:g}=a;return g.map(m=>{const C=l!=null&&l.prefix?l.prefix:m.type==="list"?" - ":"* ",x=i(m,d,{prefix:C});return x.type==="paragraph"&&x.children&&(x.children.length>1?x.children=[{text:C},...x.children]:x.children=x.children.map(w=>(w.text&&(w.text=`${C}${w.text}`),w))),x}).flat()}else if(u==="paragraph"){d={type:"paragraph",children:[]};const{children:g}=a,m=g.map(C=>i(C,d));d.children=m}else if(u==="mdxJsxTextElement"){const{name:g}=a;if(g==="ds"){d={type:"datasource",children:[]};const{children:m,attributes:C}=a;if(m){const x=i(m[0],d);d.children=[x]}if(C){const x=C.reduce((w,S)=>({...w,[S.name]:S.value}),{});d={...d,...x}}}else if(g==="i18n"){d={type:"i18n",children:""};const{children:m,attributes:C}=a;if(m){const x=i(m[0],d);d.children=[x]}if(C){const x=C.reduce((w,S)=>({...w,[S.name]:S.value}),{});d={...d,...x}}}else if(g==="u"){d={underlined:!0};const{children:m}=a;if(m){const C=i(m[0],d);d={...d,...C}}}else if(g==="link"){d={type:"link",children:[]};const{children:m,attributes:C}=a;if(m){const x=i(m[0],d);d.children=[x]}if(C){const x=C.reduce((w,S)=>({...w,[S.name]:S.value}),{});d={...d,...x}}}else g==="e"&&(d={text:""})}else if(u==="text")d={text:c};else if(u==="strong"){d={bold:!0};const{children:g}=a;if(g){const m=i(g[0],d);d={...d,...m}}}else if(u==="emphasis"){d={italic:!0};const{children:g}=a;if(g){const m=i(g[0],d);d={...d,...m}}}else if(u==="delete"){d={strikethrough:!0};const{children:g}=a;if(g){const m=i(g[0],d);d={...d,...m}}}else if(u==="link"){const{children:g}=a;d={text:((p=g[0])==null?void 0:p.value)||""}}}else return;return d};return i(n,[])},y2=e=>{const[,t,n,i,...r]=e.split(".");return{webformName:t,componentId:n,propName:i,restOfPropPath:r.join(".")}};function ir(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e==null||e(r),n===!1||!r.defaultPrevented)return t==null?void 0:t(r)}}function bh(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Kg(...e){return t=>{let n=!1;const i=e.map(r=>{const a=bh(r,t);return!n&&typeof a=="function"&&(n=!0),a});if(n)return()=>{for(let r=0;r<i.length;r++){const a=i[r];typeof a=="function"?a():bh(e[r],null)}}}}function wr(...e){return W.useCallback(Kg(...e),e)}function w2(e,t){const n=W.createContext(t),i=a=>{const{children:s,...l}=a,u=W.useMemo(()=>l,Object.values(l));return b.jsx(n.Provider,{value:u,children:s})};i.displayName=e+"Provider";function r(a){const s=W.useContext(n);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[i,r]}function k2(e,t=[]){let n=[];function i(a,s){const l=W.createContext(s),u=n.length;n=[...n,s];const c=p=>{var S;const{scope:g,children:m,...C}=p,x=((S=g==null?void 0:g[e])==null?void 0:S[u])||l,w=W.useMemo(()=>C,Object.values(C));return b.jsx(x.Provider,{value:w,children:m})};c.displayName=a+"Provider";function d(p,g){var x;const m=((x=g==null?void 0:g[e])==null?void 0:x[u])||l,C=W.useContext(m);if(C)return C;if(s!==void 0)return s;throw new Error(`\`${p}\` must be used within \`${a}\``)}return[c,d]}const r=()=>{const a=n.map(s=>W.createContext(s));return function(l){const u=(l==null?void 0:l[e])||a;return W.useMemo(()=>({[`__scope${e}`]:{...l,[e]:u}}),[l,u])}};return r.scopeName=e,[i,S2(r,...t)]}function S2(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const i=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(a){const s=i.reduce((l,{useScope:u,scopeName:c})=>{const p=u(a)[`__scope${c}`];return{...l,...p}},{});return W.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}var dr=globalThis!=null&&globalThis.document?W.useLayoutEffect:()=>{},E2=W[" useId ".trim().toString()]||(()=>{}),C2=0;function Ws(e){const[t,n]=W.useState(E2());return dr(()=>{n(i=>i??String(C2++))},[e]),e||(t?`radix-${t}`:"")}var I2=W[" useInsertionEffect ".trim().toString()]||dr;function _2({prop:e,defaultProp:t,onChange:n=()=>{},caller:i}){const[r,a,s]=A2({defaultProp:t,onChange:n}),l=e!==void 0,u=l?e:r;{const d=W.useRef(e!==void 0);W.useEffect(()=>{const p=d.current;p!==l&&console.warn(`${i} is changing from ${p?"controlled":"uncontrolled"} to ${l?"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.`),d.current=l},[l,i])}const c=W.useCallback(d=>{var p;if(l){const g=N2(d)?d(e):d;g!==e&&((p=s.current)==null||p.call(s,g))}else a(d)},[l,e,a,s]);return[u,c]}function A2({defaultProp:e,onChange:t}){const[n,i]=W.useState(e),r=W.useRef(n),a=W.useRef(t);return I2(()=>{a.current=t},[t]),W.useEffect(()=>{var s;r.current!==n&&((s=a.current)==null||s.call(a,n),r.current=n)},[n,r]),[n,i,a]}function N2(e){return typeof e=="function"}function Us(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e==null||e(r),n===!1||!r.defaultPrevented)return t==null?void 0:t(r)}}function yh(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Wg(...e){return t=>{let n=!1;const i=e.map(r=>{const a=yh(r,t);return!n&&typeof a=="function"&&(n=!0),a});if(n)return()=>{for(let r=0;r<i.length;r++){const a=i[r];typeof a=="function"?a():yh(e[r],null)}}}}function Ug(...e){return W.useCallback(Wg(...e),e)}function T2(e){const t=O2(e),n=W.forwardRef((i,r)=>{const{children:a,...s}=i,l=W.Children.toArray(a),u=l.find(R2);if(u){const c=u.props.children,d=l.map(p=>p===u?W.Children.count(c)>1?W.Children.only(null):W.isValidElement(c)?c.props.children:null:p);return b.jsx(t,{...s,ref:r,children:W.isValidElement(c)?W.cloneElement(c,void 0,d):null})}return b.jsx(t,{...s,ref:r,children:a})});return n.displayName=`${e}.Slot`,n}function O2(e){const t=W.forwardRef((n,i)=>{const{children:r,...a}=n;if(W.isValidElement(r)){const s=L2(r),l=M2(a,r.props);return r.type!==W.Fragment&&(l.ref=i?Wg(i,s):s),W.cloneElement(r,l)}return W.Children.count(r)>1?W.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var P2=Symbol("radix.slottable");function R2(e){return W.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===P2}function M2(e,t){const n={...t};for(const i in t){const r=e[i],a=t[i];/^on[A-Z]/.test(i)?r&&a?n[i]=(...l)=>{const u=a(...l);return r(...l),u}:r&&(n[i]=r):i==="style"?n[i]={...r,...a}:i==="className"&&(n[i]=[r,a].filter(Boolean).join(" "))}return{...e,...n}}function L2(e){var i,r;let t=(i=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var D2=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],qg=D2.reduce((e,t)=>{const n=T2(`Primitive.${t}`),i=W.forwardRef((r,a)=>{const{asChild:s,...l}=r,u=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),b.jsx(u,{...l,ref:a})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{});function F2(e,t){e&&Gm.flushSync(()=>e.dispatchEvent(t))}function Wl(e){const t=W.useRef(e);return W.useEffect(()=>{t.current=e}),W.useMemo(()=>(...n)=>{var i;return(i=t.current)==null?void 0:i.call(t,...n)},[])}function j2(e,t=globalThis==null?void 0:globalThis.document){const n=Wl(e);W.useEffect(()=>{const i=r=>{r.key==="Escape"&&n(r)};return t.addEventListener("keydown",i,{capture:!0}),()=>t.removeEventListener("keydown",i,{capture:!0})},[n,t])}var z2="DismissableLayer",Co="dismissableLayer.update",V2="dismissableLayer.pointerDownOutside",B2="dismissableLayer.focusOutside",wh,Gg=W.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),$g=W.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:i,onPointerDownOutside:r,onFocusOutside:a,onInteractOutside:s,onDismiss:l,...u}=e,c=W.useContext(Gg),[d,p]=W.useState(null),g=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,m]=W.useState({}),C=Ug(t,T=>p(T)),x=Array.from(c.layers),[w]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),S=x.indexOf(w),k=d?x.indexOf(d):-1,E=c.layersWithOutsidePointerEventsDisabled.size>0,A=k>=S,y=W2(T=>{const R=T.target,F=[...c.branches].some(D=>D.contains(R));!A||F||(r==null||r(T),s==null||s(T),T.defaultPrevented||l==null||l())},g),f=U2(T=>{const R=T.target;[...c.branches].some(D=>D.contains(R))||(a==null||a(T),s==null||s(T),T.defaultPrevented||l==null||l())},g);return j2(T=>{k===c.layers.size-1&&(i==null||i(T),!T.defaultPrevented&&l&&(T.preventDefault(),l()))},g),W.useEffect(()=>{if(d)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(wh=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(d)),c.layers.add(d),kh(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=wh)}},[d,g,n,c]),W.useEffect(()=>()=>{d&&(c.layers.delete(d),c.layersWithOutsidePointerEventsDisabled.delete(d),kh())},[d,c]),W.useEffect(()=>{const T=()=>m({});return document.addEventListener(Co,T),()=>document.removeEventListener(Co,T)},[]),b.jsx(qg.div,{...u,ref:C,style:{pointerEvents:E?A?"auto":"none":void 0,...e.style},onFocusCapture:Us(e.onFocusCapture,f.onFocusCapture),onBlurCapture:Us(e.onBlurCapture,f.onBlurCapture),onPointerDownCapture:Us(e.onPointerDownCapture,y.onPointerDownCapture)})});$g.displayName=z2;var H2="DismissableLayerBranch",K2=W.forwardRef((e,t)=>{const n=W.useContext(Gg),i=W.useRef(null),r=Ug(t,i);return W.useEffect(()=>{const a=i.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),b.jsx(qg.div,{...e,ref:r})});K2.displayName=H2;function W2(e,t=globalThis==null?void 0:globalThis.document){const n=Wl(e),i=W.useRef(!1),r=W.useRef(()=>{});return W.useEffect(()=>{const a=l=>{if(l.target&&!i.current){let u=function(){Jg(V2,n,c,{discrete:!0})};const c={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",r.current),r.current=u,t.addEventListener("click",r.current,{once:!0})):u()}else t.removeEventListener("click",r.current);i.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",a),t.removeEventListener("click",r.current)}},[t,n]),{onPointerDownCapture:()=>i.current=!0}}function U2(e,t=globalThis==null?void 0:globalThis.document){const n=Wl(e),i=W.useRef(!1);return W.useEffect(()=>{const r=a=>{a.target&&!i.current&&Jg(B2,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,n]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}function kh(){const e=new CustomEvent(Co);document.dispatchEvent(e)}function Jg(e,t,n,{discrete:i}){const r=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),i?F2(r,a):r.dispatchEvent(a)}function Yg(e){const t=q2(e),n=W.forwardRef((i,r)=>{const{children:a,...s}=i,l=W.Children.toArray(a),u=l.find($2);if(u){const c=u.props.children,d=l.map(p=>p===u?W.Children.count(c)>1?W.Children.only(null):W.isValidElement(c)?c.props.children:null:p);return b.jsx(t,{...s,ref:r,children:W.isValidElement(c)?W.cloneElement(c,void 0,d):null})}return b.jsx(t,{...s,ref:r,children:a})});return n.displayName=`${e}.Slot`,n}function q2(e){const t=W.forwardRef((n,i)=>{const{children:r,...a}=n;if(W.isValidElement(r)){const s=Y2(r),l=J2(a,r.props);return r.type!==W.Fragment&&(l.ref=i?Kg(i,s):s),W.cloneElement(r,l)}return W.Children.count(r)>1?W.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var G2=Symbol("radix.slottable");function $2(e){return W.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===G2}function J2(e,t){const n={...t};for(const i in t){const r=e[i],a=t[i];/^on[A-Z]/.test(i)?r&&a?n[i]=(...l)=>{const u=a(...l);return r(...l),u}:r&&(n[i]=r):i==="style"?n[i]={...r,...a}:i==="className"&&(n[i]=[r,a].filter(Boolean).join(" "))}return{...e,...n}}function Y2(e){var i,r;let t=(i=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Z2=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],hi=Z2.reduce((e,t)=>{const n=Yg(`Primitive.${t}`),i=W.forwardRef((r,a)=>{const{asChild:s,...l}=r,u=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),b.jsx(u,{...l,ref:a})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{});function Sh(e){const t=W.useRef(e);return W.useEffect(()=>{t.current=e}),W.useMemo(()=>(...n)=>{var i;return(i=t.current)==null?void 0:i.call(t,...n)},[])}var qs="focusScope.autoFocusOnMount",Gs="focusScope.autoFocusOnUnmount",Eh={bubbles:!1,cancelable:!0},X2="FocusScope",Zg=W.forwardRef((e,t)=>{const{loop:n=!1,trapped:i=!1,onMountAutoFocus:r,onUnmountAutoFocus:a,...s}=e,[l,u]=W.useState(null),c=Sh(r),d=Sh(a),p=W.useRef(null),g=wr(t,x=>u(x)),m=W.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;W.useEffect(()=>{if(i){let x=function(E){if(m.paused||!l)return;const A=E.target;l.contains(A)?p.current=A:Hn(p.current,{select:!0})},w=function(E){if(m.paused||!l)return;const A=E.relatedTarget;A!==null&&(l.contains(A)||Hn(p.current,{select:!0}))},S=function(E){if(document.activeElement===document.body)for(const y of E)y.removedNodes.length>0&&Hn(l)};document.addEventListener("focusin",x),document.addEventListener("focusout",w);const k=new MutationObserver(S);return l&&k.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",x),document.removeEventListener("focusout",w),k.disconnect()}}},[i,l,m.paused]),W.useEffect(()=>{if(l){Ih.add(m);const x=document.activeElement;if(!l.contains(x)){const S=new CustomEvent(qs,Eh);l.addEventListener(qs,c),l.dispatchEvent(S),S.defaultPrevented||(Q2(r_(Xg(l)),{select:!0}),document.activeElement===x&&Hn(l))}return()=>{l.removeEventListener(qs,c),setTimeout(()=>{const S=new CustomEvent(Gs,Eh);l.addEventListener(Gs,d),l.dispatchEvent(S),S.defaultPrevented||Hn(x??document.body,{select:!0}),l.removeEventListener(Gs,d),Ih.remove(m)},0)}}},[l,c,d,m]);const C=W.useCallback(x=>{if(!n&&!i||m.paused)return;const w=x.key==="Tab"&&!x.altKey&&!x.ctrlKey&&!x.metaKey,S=document.activeElement;if(w&&S){const k=x.currentTarget,[E,A]=e_(k);E&&A?!x.shiftKey&&S===A?(x.preventDefault(),n&&Hn(E,{select:!0})):x.shiftKey&&S===E&&(x.preventDefault(),n&&Hn(A,{select:!0})):S===k&&x.preventDefault()}},[n,i,m.paused]);return b.jsx(hi.div,{tabIndex:-1,...s,ref:g,onKeyDown:C})});Zg.displayName=X2;function Q2(e,{select:t=!1}={}){const n=document.activeElement;for(const i of e)if(Hn(i,{select:t}),document.activeElement!==n)return}function e_(e){const t=Xg(e),n=Ch(t,e),i=Ch(t.reverse(),e);return[n,i]}function Xg(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const r=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||r?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Ch(e,t){for(const n of e)if(!t_(n,{upTo:t}))return n}function t_(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function n_(e){return e instanceof HTMLInputElement&&"select"in e}function Hn(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&n_(e)&&t&&e.select()}}var Ih=i_();function i_(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=_h(e,t),e.unshift(t)},remove(t){var n;e=_h(e,t),(n=e[0])==null||n.resume()}}}function _h(e,t){const n=[...e],i=n.indexOf(t);return i!==-1&&n.splice(i,1),n}function r_(e){return e.filter(t=>t.tagName!=="A")}var a_="Portal",Qg=W.forwardRef((e,t)=>{var l;const{container:n,...i}=e,[r,a]=W.useState(!1);dr(()=>a(!0),[]);const s=n||r&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return s?ui.createPortal(b.jsx(hi.div,{...i,ref:t}),s):null});Qg.displayName=a_;function s_(e,t){return W.useReducer((n,i)=>t[n][i]??n,e)}var es=e=>{const{present:t,children:n}=e,i=o_(t),r=typeof n=="function"?n({present:i.isPresent}):W.Children.only(n),a=wr(i.ref,l_(r));return typeof n=="function"||i.isPresent?W.cloneElement(r,{ref:a}):null};es.displayName="Presence";function o_(e){const[t,n]=W.useState(),i=W.useRef(null),r=W.useRef(e),a=W.useRef("none"),s=e?"mounted":"unmounted",[l,u]=s_(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return W.useEffect(()=>{const c=$r(i.current);a.current=l==="mounted"?c:"none"},[l]),dr(()=>{const c=i.current,d=r.current;if(d!==e){const g=a.current,m=$r(c);e?u("MOUNT"):m==="none"||(c==null?void 0:c.display)==="none"?u("UNMOUNT"):u(d&&g!==m?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,u]),dr(()=>{if(t){let c;const d=t.ownerDocument.defaultView??window,p=m=>{const x=$r(i.current).includes(CSS.escape(m.animationName));if(m.target===t&&x&&(u("ANIMATION_END"),!r.current)){const w=t.style.animationFillMode;t.style.animationFillMode="forwards",c=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=w)})}},g=m=>{m.target===t&&(a.current=$r(i.current))};return t.addEventListener("animationstart",g),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{d.clearTimeout(c),t.removeEventListener("animationstart",g),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:W.useCallback(c=>{i.current=c?getComputedStyle(c):null,n(c)},[])}}function $r(e){return(e==null?void 0:e.animationName)||"none"}function l_(e){var i,r;let t=(i=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var $s=0;function u_(){W.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Ah()),document.body.insertAdjacentElement("beforeend",e[1]??Ah()),$s++,()=>{$s===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),$s--}},[])}function Ah(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var ca="right-scroll-bar-position",ha="width-before-scroll-bar",c_="with-scroll-bars-hidden",h_="--removed-body-scroll-bar-size";function Js(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function d_(e,t){var n=M.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(i){var r=n.value;r!==i&&(n.value=i,n.callback(i,r))}}}})[0];return n.callback=t,n.facade}var p_=typeof window<"u"?W.useLayoutEffect:W.useEffect,Nh=new WeakMap;function f_(e,t){var n=d_(null,function(i){return e.forEach(function(r){return Js(r,i)})});return p_(function(){var i=Nh.get(n);if(i){var r=new Set(i),a=new Set(e),s=n.current;r.forEach(function(l){a.has(l)||Js(l,null)}),a.forEach(function(l){r.has(l)||Js(l,s)})}Nh.set(n,e)},[e]),n}function g_(e){return e}function m_(e,t){t===void 0&&(t=g_);var n=[],i=!1,r={read:function(){if(i)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(a){var s=t(a,i);return n.push(s),function(){n=n.filter(function(l){return l!==s})}},assignSyncMedium:function(a){for(i=!0;n.length;){var s=n;n=[],s.forEach(a)}n={push:function(l){return a(l)},filter:function(){return n}}},assignMedium:function(a){i=!0;var s=[];if(n.length){var l=n;n=[],l.forEach(a),s=n}var u=function(){var d=s;s=[],d.forEach(a)},c=function(){return Promise.resolve().then(u)};c(),n={push:function(d){s.push(d),c()},filter:function(d){return s=s.filter(d),n}}}};return r}function v_(e){e===void 0&&(e={});var t=m_(null);return t.options=bn({async:!0,ssr:!1},e),t}var em=function(e){var t=e.sideCar,n=Bp(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=t.read();if(!i)throw new Error("Sidecar medium not found");return W.createElement(i,bn({},n))};em.isSideCarExport=!0;function x_(e,t){return e.useMedium(t),em}var tm=v_(),Ys=function(){},ts=W.forwardRef(function(e,t){var n=W.useRef(null),i=W.useState({onScrollCapture:Ys,onWheelCapture:Ys,onTouchMoveCapture:Ys}),r=i[0],a=i[1],s=e.forwardProps,l=e.children,u=e.className,c=e.removeScrollBar,d=e.enabled,p=e.shards,g=e.sideCar,m=e.noRelative,C=e.noIsolation,x=e.inert,w=e.allowPinchZoom,S=e.as,k=S===void 0?"div":S,E=e.gapMode,A=Bp(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),y=g,f=f_([n,t]),T=bn(bn({},A),r);return W.createElement(W.Fragment,null,d&&W.createElement(y,{sideCar:tm,removeScrollBar:c,shards:p,noRelative:m,noIsolation:C,inert:x,setCallbacks:a,allowPinchZoom:!!w,lockRef:n,gapMode:E}),s?W.cloneElement(W.Children.only(l),bn(bn({},T),{ref:f})):W.createElement(k,bn({},T,{className:u,ref:f}),l))});ts.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};ts.classNames={fullWidth:ha,zeroRight:ca};var b_=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function y_(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=b_();return t&&e.setAttribute("nonce",t),e}function w_(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function k_(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var S_=function(){var e=0,t=null;return{add:function(n){e==0&&(t=y_())&&(w_(t,n),k_(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},E_=function(){var e=S_();return function(t,n){W.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},nm=function(){var e=E_(),t=function(n){var i=n.styles,r=n.dynamic;return e(i,r),null};return t},C_={left:0,top:0,right:0,gap:0},Zs=function(e){return parseInt(e||"",10)||0},I_=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],i=t[e==="padding"?"paddingTop":"marginTop"],r=t[e==="padding"?"paddingRight":"marginRight"];return[Zs(n),Zs(i),Zs(r)]},__=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return C_;var t=I_(e),n=document.documentElement.clientWidth,i=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,i-n+t[2]-t[0])}},A_=nm(),Ri="data-scroll-locked",N_=function(e,t,n,i){var r=e.left,a=e.top,s=e.right,l=e.gap;return n===void 0&&(n="margin"),`
|
|
129
|
-
.`.concat(
|
|
75
|
+
`),m1=e=>{const t=/<\/?[a-zA-Z][^>]*>/g;let n="",i=0;for(const s of e.matchAll(t)){const o=s.index,l=o+s[0].length,u=e.slice(i,o).replace(/</g,"<").replace(/>/g,">");n+=u+s[0],i=l}const r=e.slice(i).replace(/</g,"<").replace(/>/g,">");return n+=r,n=n.replace(/\[object Object\]/g,""),n},Gh=e=>{let t="",n=!1;for(let i=0;i<e.length;i++){const r=e[i];if(r==='"')if(n)if(i+1<e.length&&e[i+1]==='"')t+='""',i++;else{let s=i+1;for(;s<e.length&&(e[s]===" "||e[s]===" ");)s++;s>=e.length||e[s]===","||e[s]===`
|
|
76
|
+
`||e[s]==="\r"?(n=!1,t+='"'):t+='""'}else n=!0,t+='"';else t+=r}return t},va=e=>{const t=m1(e),n=Lb().use(h1,{singleTilde:!0}).use(b0).parse(t),i=(s,o,l)=>{var h;const{type:u,value:f}=s;let p={};if(u==="root"){const{children:d}=s;return d.map(m=>i(m,o)).flat()}if(o){if(u==="list"){const{children:d}=s;return d.map(m=>i(m,p,l)).flat()}else if(u==="listItem"){const{children:d}=s;return d.map(m=>{const b=l!=null&&l.prefix?l.prefix:m.type==="list"?" - ":"* ",v=i(m,p,{prefix:b});return v.type==="paragraph"&&v.children&&(v.children.length>1?v.children=[{text:b},...v.children]:v.children=v.children.map(S=>(S.text&&(S.text=`${b}${S.text}`),S))),v}).flat()}else if(u==="paragraph"){p={type:"paragraph",children:[]};const{children:d}=s,m=d.map(b=>i(b,p));p.children=m}else if(u==="mdxJsxTextElement"){const{name:d}=s;if(d==="ds"){p={type:"datasource",children:[]};const{children:m,attributes:b}=s;if(m){const v=i(m[0],p);p.children=[v]}if(b){const v=b.reduce((S,E)=>({...S,[E.name]:E.value}),{});p={...p,...v}}}else if(d==="i18n"){p={type:"i18n",children:""};const{children:m,attributes:b}=s;if(m){const v=i(m[0],p);p.children=[v]}if(b){const v=b.reduce((S,E)=>({...S,[E.name]:E.value}),{});p={...p,...v}}}else if(d==="u"){p={underlined:!0};const{children:m}=s;if(m){const b=i(m[0],p);p={...p,...b}}}else if(d==="link"){p={type:"link",children:[]};const{children:m,attributes:b}=s;if(m){const v=i(m[0],p);p.children=[v]}if(b){const v=b.reduce((S,E)=>({...S,[E.name]:E.value}),{});p={...p,...v}}}else d==="e"&&(p={text:""})}else if(u==="text")p={text:f};else if(u==="strong"){p={bold:!0};const{children:d}=s;if(d){const m=i(d[0],p);p={...p,...m}}}else if(u==="emphasis"){p={italic:!0};const{children:d}=s;if(d){const m=i(d[0],p);p={...p,...m}}}else if(u==="delete"){p={strikethrough:!0};const{children:d}=s;if(d){const m=i(d[0],p);p={...p,...m}}}else if(u==="link"){const{children:d}=s;p={text:((h=d[0])==null?void 0:h.value)||""}}}else return;return p};return i(n,[])},x1=e=>{const[,t,n,i,...r]=e.split(".");return{webformName:t,componentId:n,propName:i,restOfPropPath:r.join(".")}};function fi(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e==null||e(r),n===!1||!r.defaultPrevented)return t==null?void 0:t(r)}}function Hl(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Jh(...e){return t=>{let n=!1;const i=e.map(r=>{const s=Hl(r,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let r=0;r<i.length;r++){const s=i[r];typeof s=="function"?s():Hl(e[r],null)}}}}function Ii(...e){return U.useCallback(Jh(...e),e)}function v1(e,t){const n=U.createContext(t),i=s=>{const{children:o,...l}=s,u=U.useMemo(()=>l,Object.values(l));return C.jsx(n.Provider,{value:u,children:o})};i.displayName=e+"Provider";function r(s){const o=U.useContext(n);if(o)return o;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[i,r]}function b1(e,t=[]){let n=[];function i(s,o){const l=U.createContext(o),u=n.length;n=[...n,o];const f=h=>{var E;const{scope:d,children:m,...b}=h,v=((E=d==null?void 0:d[e])==null?void 0:E[u])||l,S=U.useMemo(()=>b,Object.values(b));return C.jsx(v.Provider,{value:S,children:m})};f.displayName=s+"Provider";function p(h,d){var v;const m=((v=d==null?void 0:d[e])==null?void 0:v[u])||l,b=U.useContext(m);if(b)return b;if(o!==void 0)return o;throw new Error(`\`${h}\` must be used within \`${s}\``)}return[f,p]}const r=()=>{const s=n.map(o=>U.createContext(o));return function(l){const u=(l==null?void 0:l[e])||s;return U.useMemo(()=>({[`__scope${e}`]:{...l,[e]:u}}),[l,u])}};return r.scopeName=e,[i,y1(r,...t)]}function y1(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const i=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(s){const o=i.reduce((l,{useScope:u,scopeName:f})=>{const h=u(s)[`__scope${f}`];return{...l,...h}},{});return U.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}var vi=globalThis!=null&&globalThis.document?U.useLayoutEffect:()=>{},w1=U[" useId ".trim().toString()]||(()=>{}),E1=0;function ba(e){const[t,n]=U.useState(w1());return vi(()=>{n(i=>i??String(E1++))},[e]),e||(t?`radix-${t}`:"")}var S1=U[" useInsertionEffect ".trim().toString()]||vi;function k1({prop:e,defaultProp:t,onChange:n=()=>{},caller:i}){const[r,s,o]=C1({defaultProp:t,onChange:n}),l=e!==void 0,u=l?e:r;{const p=U.useRef(e!==void 0);U.useEffect(()=>{const h=p.current;h!==l&&console.warn(`${i} is changing from ${h?"controlled":"uncontrolled"} to ${l?"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.`),p.current=l},[l,i])}const f=U.useCallback(p=>{var h;if(l){const d=_1(p)?p(e):p;d!==e&&((h=o.current)==null||h.call(o,d))}else s(p)},[l,e,s,o]);return[u,f]}function C1({defaultProp:e,onChange:t}){const[n,i]=U.useState(e),r=U.useRef(n),s=U.useRef(t);return S1(()=>{s.current=t},[t]),U.useEffect(()=>{var o;r.current!==n&&((o=s.current)==null||o.call(s,n),r.current=n)},[n,r]),[n,i,s]}function _1(e){return typeof e=="function"}function ya(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e==null||e(r),n===!1||!r.defaultPrevented)return t==null?void 0:t(r)}}function $l(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Yh(...e){return t=>{let n=!1;const i=e.map(r=>{const s=$l(r,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let r=0;r<i.length;r++){const s=i[r];typeof s=="function"?s():$l(e[r],null)}}}}function Qh(...e){return U.useCallback(Yh(...e),e)}function I1(e){const t=A1(e),n=U.forwardRef((i,r)=>{const{children:s,...o}=i,l=U.Children.toArray(s),u=l.find(N1);if(u){const f=u.props.children,p=l.map(h=>h===u?U.Children.count(f)>1?U.Children.only(null):U.isValidElement(f)?f.props.children:null:h);return C.jsx(t,{...o,ref:r,children:U.isValidElement(f)?U.cloneElement(f,void 0,p):null})}return C.jsx(t,{...o,ref:r,children:s})});return n.displayName=`${e}.Slot`,n}function A1(e){const t=U.forwardRef((n,i)=>{const{children:r,...s}=n;if(U.isValidElement(r)){const o=O1(r),l=P1(s,r.props);return r.type!==U.Fragment&&(l.ref=i?Yh(i,o):o),U.cloneElement(r,l)}return U.Children.count(r)>1?U.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var T1=Symbol("radix.slottable");function N1(e){return U.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===T1}function P1(e,t){const n={...t};for(const i in t){const r=e[i],s=t[i];/^on[A-Z]/.test(i)?r&&s?n[i]=(...l)=>{const u=s(...l);return r(...l),u}:r&&(n[i]=r):i==="style"?n[i]={...r,...s}:i==="className"&&(n[i]=[r,s].filter(Boolean).join(" "))}return{...e,...n}}function O1(e){var i,r;let t=(i=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var R1=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Zh=R1.reduce((e,t)=>{const n=I1(`Primitive.${t}`),i=U.forwardRef((r,s)=>{const{asChild:o,...l}=r,u=o?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),C.jsx(u,{...l,ref:s})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{});function L1(e,t){e&&Ku.flushSync(()=>e.dispatchEvent(t))}function ks(e){const t=U.useRef(e);return U.useEffect(()=>{t.current=e}),U.useMemo(()=>(...n)=>{var i;return(i=t.current)==null?void 0:i.call(t,...n)},[])}function M1(e,t=globalThis==null?void 0:globalThis.document){const n=ks(e);U.useEffect(()=>{const i=r=>{r.key==="Escape"&&n(r)};return t.addEventListener("keydown",i,{capture:!0}),()=>t.removeEventListener("keydown",i,{capture:!0})},[n,t])}var F1="DismissableLayer",es="dismissableLayer.update",D1="dismissableLayer.pointerDownOutside",j1="dismissableLayer.focusOutside",ql,Xh=U.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ef=U.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:i,onPointerDownOutside:r,onFocusOutside:s,onInteractOutside:o,onDismiss:l,...u}=e,f=U.useContext(Xh),[p,h]=U.useState(null),d=(p==null?void 0:p.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,m]=U.useState({}),b=Qh(t,A=>h(A)),v=Array.from(f.layers),[S]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),E=v.indexOf(S),k=p?v.indexOf(p):-1,I=f.layersWithOutsidePointerEventsDisabled.size>0,N=k>=E,y=z1(A=>{const M=A.target,F=[...f.branches].some(R=>R.contains(M));!N||F||(r==null||r(A),o==null||o(A),A.defaultPrevented||l==null||l())},d),g=K1(A=>{const M=A.target;[...f.branches].some(R=>R.contains(M))||(s==null||s(A),o==null||o(A),A.defaultPrevented||l==null||l())},d);return M1(A=>{k===f.layers.size-1&&(i==null||i(A),!A.defaultPrevented&&l&&(A.preventDefault(),l()))},d),U.useEffect(()=>{if(p)return n&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(ql=d.body.style.pointerEvents,d.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(p)),f.layers.add(p),Wl(),()=>{n&&f.layersWithOutsidePointerEventsDisabled.size===1&&(d.body.style.pointerEvents=ql)}},[p,d,n,f]),U.useEffect(()=>()=>{p&&(f.layers.delete(p),f.layersWithOutsidePointerEventsDisabled.delete(p),Wl())},[p,f]),U.useEffect(()=>{const A=()=>m({});return document.addEventListener(es,A),()=>document.removeEventListener(es,A)},[]),C.jsx(Zh.div,{...u,ref:b,style:{pointerEvents:I?N?"auto":"none":void 0,...e.style},onFocusCapture:ya(e.onFocusCapture,g.onFocusCapture),onBlurCapture:ya(e.onBlurCapture,g.onBlurCapture),onPointerDownCapture:ya(e.onPointerDownCapture,y.onPointerDownCapture)})});ef.displayName=F1;var V1="DismissableLayerBranch",B1=U.forwardRef((e,t)=>{const n=U.useContext(Xh),i=U.useRef(null),r=Qh(t,i);return U.useEffect(()=>{const s=i.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),C.jsx(Zh.div,{...e,ref:r})});B1.displayName=V1;function z1(e,t=globalThis==null?void 0:globalThis.document){const n=ks(e),i=U.useRef(!1),r=U.useRef(()=>{});return U.useEffect(()=>{const s=l=>{if(l.target&&!i.current){let u=function(){tf(D1,n,f,{discrete:!0})};const f={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",r.current),r.current=u,t.addEventListener("click",r.current,{once:!0})):u()}else t.removeEventListener("click",r.current);i.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",s),t.removeEventListener("click",r.current)}},[t,n]),{onPointerDownCapture:()=>i.current=!0}}function K1(e,t=globalThis==null?void 0:globalThis.document){const n=ks(e),i=U.useRef(!1);return U.useEffect(()=>{const r=s=>{s.target&&!i.current&&tf(j1,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,n]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}function Wl(){const e=new CustomEvent(es);document.dispatchEvent(e)}function tf(e,t,n,{discrete:i}){const r=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),i?L1(r,s):r.dispatchEvent(s)}function nf(e){const t=U1(e),n=U.forwardRef((i,r)=>{const{children:s,...o}=i,l=U.Children.toArray(s),u=l.find($1);if(u){const f=u.props.children,p=l.map(h=>h===u?U.Children.count(f)>1?U.Children.only(null):U.isValidElement(f)?f.props.children:null:h);return C.jsx(t,{...o,ref:r,children:U.isValidElement(f)?U.cloneElement(f,void 0,p):null})}return C.jsx(t,{...o,ref:r,children:s})});return n.displayName=`${e}.Slot`,n}function U1(e){const t=U.forwardRef((n,i)=>{const{children:r,...s}=n;if(U.isValidElement(r)){const o=W1(r),l=q1(s,r.props);return r.type!==U.Fragment&&(l.ref=i?Jh(i,o):o),U.cloneElement(r,l)}return U.Children.count(r)>1?U.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var H1=Symbol("radix.slottable");function $1(e){return U.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===H1}function q1(e,t){const n={...t};for(const i in t){const r=e[i],s=t[i];/^on[A-Z]/.test(i)?r&&s?n[i]=(...l)=>{const u=s(...l);return r(...l),u}:r&&(n[i]=r):i==="style"?n[i]={...r,...s}:i==="className"&&(n[i]=[r,s].filter(Boolean).join(" "))}return{...e,...n}}function W1(e){var i,r;let t=(i=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var G1=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],On=G1.reduce((e,t)=>{const n=nf(`Primitive.${t}`),i=U.forwardRef((r,s)=>{const{asChild:o,...l}=r,u=o?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),C.jsx(u,{...l,ref:s})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{});function Gl(e){const t=U.useRef(e);return U.useEffect(()=>{t.current=e}),U.useMemo(()=>(...n)=>{var i;return(i=t.current)==null?void 0:i.call(t,...n)},[])}var wa="focusScope.autoFocusOnMount",Ea="focusScope.autoFocusOnUnmount",Jl={bubbles:!1,cancelable:!0},J1="FocusScope",rf=U.forwardRef((e,t)=>{const{loop:n=!1,trapped:i=!1,onMountAutoFocus:r,onUnmountAutoFocus:s,...o}=e,[l,u]=U.useState(null),f=Gl(r),p=Gl(s),h=U.useRef(null),d=Ii(t,v=>u(v)),m=U.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;U.useEffect(()=>{if(i){let v=function(I){if(m.paused||!l)return;const N=I.target;l.contains(N)?h.current=N:fn(h.current,{select:!0})},S=function(I){if(m.paused||!l)return;const N=I.relatedTarget;N!==null&&(l.contains(N)||fn(h.current,{select:!0}))},E=function(I){if(document.activeElement===document.body)for(const y of I)y.removedNodes.length>0&&fn(l)};document.addEventListener("focusin",v),document.addEventListener("focusout",S);const k=new MutationObserver(E);return l&&k.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",S),k.disconnect()}}},[i,l,m.paused]),U.useEffect(()=>{if(l){Ql.add(m);const v=document.activeElement;if(!l.contains(v)){const E=new CustomEvent(wa,Jl);l.addEventListener(wa,f),l.dispatchEvent(E),E.defaultPrevented||(Y1(tw(af(l)),{select:!0}),document.activeElement===v&&fn(l))}return()=>{l.removeEventListener(wa,f),setTimeout(()=>{const E=new CustomEvent(Ea,Jl);l.addEventListener(Ea,p),l.dispatchEvent(E),E.defaultPrevented||fn(v??document.body,{select:!0}),l.removeEventListener(Ea,p),Ql.remove(m)},0)}}},[l,f,p,m]);const b=U.useCallback(v=>{if(!n&&!i||m.paused)return;const S=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,E=document.activeElement;if(S&&E){const k=v.currentTarget,[I,N]=Q1(k);I&&N?!v.shiftKey&&E===N?(v.preventDefault(),n&&fn(I,{select:!0})):v.shiftKey&&E===I&&(v.preventDefault(),n&&fn(N,{select:!0})):E===k&&v.preventDefault()}},[n,i,m.paused]);return C.jsx(On.div,{tabIndex:-1,...o,ref:d,onKeyDown:b})});rf.displayName=J1;function Y1(e,{select:t=!1}={}){const n=document.activeElement;for(const i of e)if(fn(i,{select:t}),document.activeElement!==n)return}function Q1(e){const t=af(e),n=Yl(t,e),i=Yl(t.reverse(),e);return[n,i]}function af(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const r=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||r?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Yl(e,t){for(const n of e)if(!Z1(n,{upTo:t}))return n}function Z1(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function X1(e){return e instanceof HTMLInputElement&&"select"in e}function fn(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&X1(e)&&t&&e.select()}}var Ql=ew();function ew(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Zl(e,t),e.unshift(t)},remove(t){var n;e=Zl(e,t),(n=e[0])==null||n.resume()}}}function Zl(e,t){const n=[...e],i=n.indexOf(t);return i!==-1&&n.splice(i,1),n}function tw(e){return e.filter(t=>t.tagName!=="A")}var nw="Portal",sf=U.forwardRef((e,t)=>{var l;const{container:n,...i}=e,[r,s]=U.useState(!1);vi(()=>s(!0),[]);const o=n||r&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return o?Cr.createPortal(C.jsx(On.div,{...i,ref:t}),o):null});sf.displayName=nw;function iw(e,t){return U.useReducer((n,i)=>t[n][i]??n,e)}var Vr=e=>{const{present:t,children:n}=e,i=rw(t),r=typeof n=="function"?n({present:i.isPresent}):U.Children.only(n),s=Ii(i.ref,aw(r));return typeof n=="function"||i.isPresent?U.cloneElement(r,{ref:s}):null};Vr.displayName="Presence";function rw(e){const[t,n]=U.useState(),i=U.useRef(null),r=U.useRef(e),s=U.useRef("none"),o=e?"mounted":"unmounted",[l,u]=iw(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return U.useEffect(()=>{const f=Ki(i.current);s.current=l==="mounted"?f:"none"},[l]),vi(()=>{const f=i.current,p=r.current;if(p!==e){const d=s.current,m=Ki(f);e?u("MOUNT"):m==="none"||(f==null?void 0:f.display)==="none"?u("UNMOUNT"):u(p&&d!==m?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,u]),vi(()=>{if(t){let f;const p=t.ownerDocument.defaultView??window,h=m=>{const v=Ki(i.current).includes(CSS.escape(m.animationName));if(m.target===t&&v&&(u("ANIMATION_END"),!r.current)){const S=t.style.animationFillMode;t.style.animationFillMode="forwards",f=p.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=S)})}},d=m=>{m.target===t&&(s.current=Ki(i.current))};return t.addEventListener("animationstart",d),t.addEventListener("animationcancel",h),t.addEventListener("animationend",h),()=>{p.clearTimeout(f),t.removeEventListener("animationstart",d),t.removeEventListener("animationcancel",h),t.removeEventListener("animationend",h)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:U.useCallback(f=>{i.current=f?getComputedStyle(f):null,n(f)},[])}}function Ki(e){return(e==null?void 0:e.animationName)||"none"}function aw(e){var i,r;let t=(i=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Sa=0;function sw(){U.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Xl()),document.body.insertAdjacentElement("beforeend",e[1]??Xl()),Sa++,()=>{Sa===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Sa--}},[])}function Xl(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var ir="right-scroll-bar-position",rr="width-before-scroll-bar",ow="with-scroll-bars-hidden",lw="--removed-body-scroll-bar-size";function ka(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function uw(e,t){var n=V.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(i){var r=n.value;r!==i&&(n.value=i,n.callback(i,r))}}}})[0];return n.callback=t,n.facade}var cw=typeof window<"u"?U.useLayoutEffect:U.useEffect,eu=new WeakMap;function hw(e,t){var n=uw(null,function(i){return e.forEach(function(r){return ka(r,i)})});return cw(function(){var i=eu.get(n);if(i){var r=new Set(i),s=new Set(e),o=n.current;r.forEach(function(l){s.has(l)||ka(l,null)}),s.forEach(function(l){r.has(l)||ka(l,o)})}eu.set(n,e)},[e]),n}function fw(e){return e}function pw(e,t){t===void 0&&(t=fw);var n=[],i=!1,r={read:function(){if(i)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(s){var o=t(s,i);return n.push(o),function(){n=n.filter(function(l){return l!==o})}},assignSyncMedium:function(s){for(i=!0;n.length;){var o=n;n=[],o.forEach(s)}n={push:function(l){return s(l)},filter:function(){return n}}},assignMedium:function(s){i=!0;var o=[];if(n.length){var l=n;n=[],l.forEach(s),o=n}var u=function(){var p=o;o=[],p.forEach(s)},f=function(){return Promise.resolve().then(u)};f(),n={push:function(p){o.push(p),f()},filter:function(p){return o=o.filter(p),n}}}};return r}function dw(e){e===void 0&&(e={});var t=pw(null);return t.options=Ot({async:!0,ssr:!1},e),t}var of=function(e){var t=e.sideCar,n=Wu(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=t.read();if(!i)throw new Error("Sidecar medium not found");return U.createElement(i,Ot({},n))};of.isSideCarExport=!0;function gw(e,t){return e.useMedium(t),of}var lf=dw(),Ca=function(){},Br=U.forwardRef(function(e,t){var n=U.useRef(null),i=U.useState({onScrollCapture:Ca,onWheelCapture:Ca,onTouchMoveCapture:Ca}),r=i[0],s=i[1],o=e.forwardProps,l=e.children,u=e.className,f=e.removeScrollBar,p=e.enabled,h=e.shards,d=e.sideCar,m=e.noRelative,b=e.noIsolation,v=e.inert,S=e.allowPinchZoom,E=e.as,k=E===void 0?"div":E,I=e.gapMode,N=Wu(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),y=d,g=hw([n,t]),A=Ot(Ot({},N),r);return U.createElement(U.Fragment,null,p&&U.createElement(y,{sideCar:lf,removeScrollBar:f,shards:h,noRelative:m,noIsolation:b,inert:v,setCallbacks:s,allowPinchZoom:!!S,lockRef:n,gapMode:I}),o?U.cloneElement(U.Children.only(l),Ot(Ot({},A),{ref:g})):U.createElement(k,Ot({},A,{className:u,ref:g}),l))});Br.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Br.classNames={fullWidth:rr,zeroRight:ir};var mw=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function xw(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=mw();return t&&e.setAttribute("nonce",t),e}function vw(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function bw(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var yw=function(){var e=0,t=null;return{add:function(n){e==0&&(t=xw())&&(vw(t,n),bw(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},ww=function(){var e=yw();return function(t,n){U.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},uf=function(){var e=ww(),t=function(n){var i=n.styles,r=n.dynamic;return e(i,r),null};return t},Ew={left:0,top:0,right:0,gap:0},_a=function(e){return parseInt(e||"",10)||0},Sw=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],i=t[e==="padding"?"paddingTop":"marginTop"],r=t[e==="padding"?"paddingRight":"marginRight"];return[_a(n),_a(i),_a(r)]},kw=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Ew;var t=Sw(e),n=document.documentElement.clientWidth,i=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,i-n+t[2]-t[0])}},Cw=uf(),$n="data-scroll-locked",_w=function(e,t,n,i){var r=e.left,s=e.top,o=e.right,l=e.gap;return n===void 0&&(n="margin"),`
|
|
77
|
+
.`.concat(ow,` {
|
|
130
78
|
overflow: hidden `).concat(i,`;
|
|
131
79
|
padding-right: `).concat(l,"px ").concat(i,`;
|
|
132
80
|
}
|
|
133
|
-
body[`).concat(
|
|
81
|
+
body[`).concat($n,`] {
|
|
134
82
|
overflow: hidden `).concat(i,`;
|
|
135
83
|
overscroll-behavior: contain;
|
|
136
84
|
`).concat([t&&"position: relative ".concat(i,";"),n==="margin"&&`
|
|
137
85
|
padding-left: `.concat(r,`px;
|
|
138
|
-
padding-top: `).concat(
|
|
139
|
-
padding-right: `).concat(
|
|
86
|
+
padding-top: `).concat(s,`px;
|
|
87
|
+
padding-right: `).concat(o,`px;
|
|
140
88
|
margin-left:0;
|
|
141
89
|
margin-top:0;
|
|
142
90
|
margin-right: `).concat(l,"px ").concat(i,`;
|
|
143
91
|
`),n==="padding"&&"padding-right: ".concat(l,"px ").concat(i,";")].filter(Boolean).join(""),`
|
|
144
92
|
}
|
|
145
93
|
|
|
146
|
-
.`).concat(
|
|
94
|
+
.`).concat(ir,` {
|
|
147
95
|
right: `).concat(l,"px ").concat(i,`;
|
|
148
96
|
}
|
|
149
97
|
|
|
150
|
-
.`).concat(
|
|
98
|
+
.`).concat(rr,` {
|
|
151
99
|
margin-right: `).concat(l,"px ").concat(i,`;
|
|
152
100
|
}
|
|
153
101
|
|
|
154
|
-
.`).concat(
|
|
102
|
+
.`).concat(ir," .").concat(ir,` {
|
|
155
103
|
right: 0 `).concat(i,`;
|
|
156
104
|
}
|
|
157
105
|
|
|
158
|
-
.`).concat(
|
|
106
|
+
.`).concat(rr," .").concat(rr,` {
|
|
159
107
|
margin-right: 0 `).concat(i,`;
|
|
160
108
|
}
|
|
161
109
|
|
|
162
|
-
body[`).concat(
|
|
163
|
-
`).concat(
|
|
110
|
+
body[`).concat($n,`] {
|
|
111
|
+
`).concat(lw,": ").concat(l,`px;
|
|
164
112
|
}
|
|
165
|
-
`)},
|
|
113
|
+
`)},tu=function(){var e=parseInt(document.body.getAttribute($n)||"0",10);return isFinite(e)?e:0},Iw=function(){U.useEffect(function(){return document.body.setAttribute($n,(tu()+1).toString()),function(){var e=tu()-1;e<=0?document.body.removeAttribute($n):document.body.setAttribute($n,e.toString())}},[])},Aw=function(e){var t=e.noRelative,n=e.noImportant,i=e.gapMode,r=i===void 0?"margin":i;Iw();var s=U.useMemo(function(){return kw(r)},[r]);return U.createElement(Cw,{styles:_w(s,!t,r,n?"":"!important")})},ts=!1;if(typeof window<"u")try{var Ui=Object.defineProperty({},"passive",{get:function(){return ts=!0,!0}});window.addEventListener("test",Ui,Ui),window.removeEventListener("test",Ui,Ui)}catch{ts=!1}var Vn=ts?{passive:!1}:!1,Tw=function(e){return e.tagName==="TEXTAREA"},cf=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Tw(e)&&n[t]==="visible")},Nw=function(e){return cf(e,"overflowY")},Pw=function(e){return cf(e,"overflowX")},nu=function(e,t){var n=t.ownerDocument,i=t;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var r=hf(e,i);if(r){var s=ff(e,i),o=s[1],l=s[2];if(o>l)return!0}i=i.parentNode}while(i&&i!==n.body);return!1},Ow=function(e){var t=e.scrollTop,n=e.scrollHeight,i=e.clientHeight;return[t,n,i]},Rw=function(e){var t=e.scrollLeft,n=e.scrollWidth,i=e.clientWidth;return[t,n,i]},hf=function(e,t){return e==="v"?Nw(t):Pw(t)},ff=function(e,t){return e==="v"?Ow(t):Rw(t)},Lw=function(e,t){return e==="h"&&t==="rtl"?-1:1},Mw=function(e,t,n,i,r){var s=Lw(e,window.getComputedStyle(t).direction),o=s*i,l=n.target,u=t.contains(l),f=!1,p=o>0,h=0,d=0;do{if(!l)break;var m=ff(e,l),b=m[0],v=m[1],S=m[2],E=v-S-s*b;(b||E)&&hf(e,l)&&(h+=E,d+=b);var k=l.parentNode;l=k&&k.nodeType===Node.DOCUMENT_FRAGMENT_NODE?k.host:k}while(!u&&l!==document.body||u&&(t.contains(l)||t===l));return(p&&Math.abs(h)<1||!p&&Math.abs(d)<1)&&(f=!0),f},Hi=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},iu=function(e){return[e.deltaX,e.deltaY]},ru=function(e){return e&&"current"in e?e.current:e},Fw=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Dw=function(e){return`
|
|
166
114
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
167
115
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
168
|
-
`)},
|
|
116
|
+
`)},jw=0,Bn=[];function Vw(e){var t=U.useRef([]),n=U.useRef([0,0]),i=U.useRef(),r=U.useState(jw++)[0],s=U.useState(uf)[0],o=U.useRef(e);U.useEffect(function(){o.current=e},[e]),U.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(r));var v=lr([e.lockRef.current],(e.shards||[]).map(ru),!0).filter(Boolean);return v.forEach(function(S){return S.classList.add("allow-interactivity-".concat(r))}),function(){document.body.classList.remove("block-interactivity-".concat(r)),v.forEach(function(S){return S.classList.remove("allow-interactivity-".concat(r))})}}},[e.inert,e.lockRef.current,e.shards]);var l=U.useCallback(function(v,S){if("touches"in v&&v.touches.length===2||v.type==="wheel"&&v.ctrlKey)return!o.current.allowPinchZoom;var E=Hi(v),k=n.current,I="deltaX"in v?v.deltaX:k[0]-E[0],N="deltaY"in v?v.deltaY:k[1]-E[1],y,g=v.target,A=Math.abs(I)>Math.abs(N)?"h":"v";if("touches"in v&&A==="h"&&g.type==="range")return!1;var M=window.getSelection(),F=M&&M.anchorNode,R=F?F===g||F.contains(g):!1;if(R)return!1;var j=nu(A,g);if(!j)return!0;if(j?y=A:(y=A==="v"?"h":"v",j=nu(A,g)),!j)return!1;if(!i.current&&"changedTouches"in v&&(I||N)&&(i.current=y),!y)return!0;var B=i.current||y;return Mw(B,S,v,B==="h"?I:N)},[]),u=U.useCallback(function(v){var S=v;if(!(!Bn.length||Bn[Bn.length-1]!==s)){var E="deltaY"in S?iu(S):Hi(S),k=t.current.filter(function(y){return y.name===S.type&&(y.target===S.target||S.target===y.shadowParent)&&Fw(y.delta,E)})[0];if(k&&k.should){S.cancelable&&S.preventDefault();return}if(!k){var I=(o.current.shards||[]).map(ru).filter(Boolean).filter(function(y){return y.contains(S.target)}),N=I.length>0?l(S,I[0]):!o.current.noIsolation;N&&S.cancelable&&S.preventDefault()}}},[]),f=U.useCallback(function(v,S,E,k){var I={name:v,delta:S,target:E,should:k,shadowParent:Bw(E)};t.current.push(I),setTimeout(function(){t.current=t.current.filter(function(N){return N!==I})},1)},[]),p=U.useCallback(function(v){n.current=Hi(v),i.current=void 0},[]),h=U.useCallback(function(v){f(v.type,iu(v),v.target,l(v,e.lockRef.current))},[]),d=U.useCallback(function(v){f(v.type,Hi(v),v.target,l(v,e.lockRef.current))},[]);U.useEffect(function(){return Bn.push(s),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:d}),document.addEventListener("wheel",u,Vn),document.addEventListener("touchmove",u,Vn),document.addEventListener("touchstart",p,Vn),function(){Bn=Bn.filter(function(v){return v!==s}),document.removeEventListener("wheel",u,Vn),document.removeEventListener("touchmove",u,Vn),document.removeEventListener("touchstart",p,Vn)}},[]);var m=e.removeScrollBar,b=e.inert;return U.createElement(U.Fragment,null,b?U.createElement(s,{styles:Dw(r)}):null,m?U.createElement(Aw,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Bw(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const zw=gw(lf,Vw);var pf=U.forwardRef(function(e,t){return U.createElement(Br,Ot({},e,{ref:t,sideCar:zw}))});pf.classNames=Br.classNames;var Kw=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},zn=new WeakMap,$i=new WeakMap,qi={},Ia=0,df=function(e){return e&&(e.host||df(e.parentNode))},Uw=function(e,t){return t.map(function(n){if(e.contains(n))return n;var i=df(n);return i&&e.contains(i)?i:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},Hw=function(e,t,n,i){var r=Uw(t,Array.isArray(e)?e:[e]);qi[n]||(qi[n]=new WeakMap);var s=qi[n],o=[],l=new Set,u=new Set(r),f=function(h){!h||l.has(h)||(l.add(h),f(h.parentNode))};r.forEach(f);var p=function(h){!h||u.has(h)||Array.prototype.forEach.call(h.children,function(d){if(l.has(d))p(d);else try{var m=d.getAttribute(i),b=m!==null&&m!=="false",v=(zn.get(d)||0)+1,S=(s.get(d)||0)+1;zn.set(d,v),s.set(d,S),o.push(d),v===1&&b&&$i.set(d,!0),S===1&&d.setAttribute(n,"true"),b||d.setAttribute(i,"true")}catch(E){console.error("aria-hidden: cannot operate on ",d,E)}})};return p(t),l.clear(),Ia++,function(){o.forEach(function(h){var d=zn.get(h)-1,m=s.get(h)-1;zn.set(h,d),s.set(h,m),d||($i.has(h)||h.removeAttribute(i),$i.delete(h)),m||h.removeAttribute(n)}),Ia--,Ia||(zn=new WeakMap,zn=new WeakMap,$i=new WeakMap,qi={})}},$w=function(e,t,n){n===void 0&&(n="data-aria-hidden");var i=Array.from(Array.isArray(e)?e:[e]),r=Kw(e);return r?(i.push.apply(i,Array.from(r.querySelectorAll("[aria-live], script"))),Hw(i,r,n,"aria-hidden")):function(){return null}},zr="Dialog",[gf]=b1(zr),[qw,Kt]=gf(zr),mf=e=>{const{__scopeDialog:t,children:n,open:i,defaultOpen:r,onOpenChange:s,modal:o=!0}=e,l=U.useRef(null),u=U.useRef(null),[f,p]=k1({prop:i,defaultProp:r??!1,onChange:s,caller:zr});return C.jsx(qw,{scope:t,triggerRef:l,contentRef:u,contentId:ba(),titleId:ba(),descriptionId:ba(),open:f,onOpenChange:p,onOpenToggle:U.useCallback(()=>p(h=>!h),[p]),modal:o,children:n})};mf.displayName=zr;var xf="DialogTrigger",Ww=U.forwardRef((e,t)=>{const{__scopeDialog:n,...i}=e,r=Kt(xf,n),s=Ii(t,r.triggerRef);return C.jsx(On.button,{type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.contentId,"data-state":Is(r.open),...i,ref:s,onClick:fi(e.onClick,r.onOpenToggle)})});Ww.displayName=xf;var Cs="DialogPortal",[Gw,vf]=gf(Cs,{forceMount:void 0}),bf=e=>{const{__scopeDialog:t,forceMount:n,children:i,container:r}=e,s=Kt(Cs,t);return C.jsx(Gw,{scope:t,forceMount:n,children:U.Children.map(i,o=>C.jsx(Vr,{present:n||s.open,children:C.jsx(sf,{asChild:!0,container:r,children:o})}))})};bf.displayName=Cs;var xr="DialogOverlay",yf=U.forwardRef((e,t)=>{const n=vf(xr,e.__scopeDialog),{forceMount:i=n.forceMount,...r}=e,s=Kt(xr,e.__scopeDialog);return s.modal?C.jsx(Vr,{present:i||s.open,children:C.jsx(Yw,{...r,ref:t})}):null});yf.displayName=xr;var Jw=nf("DialogOverlay.RemoveScroll"),Yw=U.forwardRef((e,t)=>{const{__scopeDialog:n,...i}=e,r=Kt(xr,n);return C.jsx(pf,{as:Jw,allowPinchZoom:!0,shards:[r.contentRef],children:C.jsx(On.div,{"data-state":Is(r.open),...i,ref:t,style:{pointerEvents:"auto",...i.style}})})}),An="DialogContent",wf=U.forwardRef((e,t)=>{const n=vf(An,e.__scopeDialog),{forceMount:i=n.forceMount,...r}=e,s=Kt(An,e.__scopeDialog);return C.jsx(Vr,{present:i||s.open,children:s.modal?C.jsx(Qw,{...r,ref:t}):C.jsx(Zw,{...r,ref:t})})});wf.displayName=An;var Qw=U.forwardRef((e,t)=>{const n=Kt(An,e.__scopeDialog),i=U.useRef(null),r=Ii(t,n.contentRef,i);return U.useEffect(()=>{const s=i.current;if(s)return $w(s)},[]),C.jsx(Ef,{...e,ref:r,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:fi(e.onCloseAutoFocus,s=>{var o;s.preventDefault(),(o=n.triggerRef.current)==null||o.focus()}),onPointerDownOutside:fi(e.onPointerDownOutside,s=>{const o=s.detail.originalEvent,l=o.button===0&&o.ctrlKey===!0;(o.button===2||l)&&s.preventDefault()}),onFocusOutside:fi(e.onFocusOutside,s=>s.preventDefault())})}),Zw=U.forwardRef((e,t)=>{const n=Kt(An,e.__scopeDialog),i=U.useRef(!1),r=U.useRef(!1);return C.jsx(Ef,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var o,l;(o=e.onCloseAutoFocus)==null||o.call(e,s),s.defaultPrevented||(i.current||(l=n.triggerRef.current)==null||l.focus(),s.preventDefault()),i.current=!1,r.current=!1},onInteractOutside:s=>{var u,f;(u=e.onInteractOutside)==null||u.call(e,s),s.defaultPrevented||(i.current=!0,s.detail.originalEvent.type==="pointerdown"&&(r.current=!0));const o=s.target;((f=n.triggerRef.current)==null?void 0:f.contains(o))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&r.current&&s.preventDefault()}})}),Ef=U.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:i,onOpenAutoFocus:r,onCloseAutoFocus:s,...o}=e,l=Kt(An,n),u=U.useRef(null),f=Ii(t,u);return sw(),C.jsxs(C.Fragment,{children:[C.jsx(rf,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:r,onUnmountAutoFocus:s,children:C.jsx(ef,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":Is(l.open),...o,ref:f,onDismiss:()=>l.onOpenChange(!1)})}),C.jsxs(C.Fragment,{children:[C.jsx(tE,{titleId:l.titleId}),C.jsx(iE,{contentRef:u,descriptionId:l.descriptionId})]})]})}),_s="DialogTitle",Sf=U.forwardRef((e,t)=>{const{__scopeDialog:n,...i}=e,r=Kt(_s,n);return C.jsx(On.h2,{id:r.titleId,...i,ref:t})});Sf.displayName=_s;var kf="DialogDescription",Xw=U.forwardRef((e,t)=>{const{__scopeDialog:n,...i}=e,r=Kt(kf,n);return C.jsx(On.p,{id:r.descriptionId,...i,ref:t})});Xw.displayName=kf;var Cf="DialogClose",eE=U.forwardRef((e,t)=>{const{__scopeDialog:n,...i}=e,r=Kt(Cf,n);return C.jsx(On.button,{type:"button",...i,ref:t,onClick:fi(e.onClick,()=>r.onOpenChange(!1))})});eE.displayName=Cf;function Is(e){return e?"open":"closed"}var _f="DialogTitleWarning",[qk,If]=v1(_f,{contentName:An,titleName:_s,docsSlug:"dialog"}),tE=({titleId:e})=>{const t=If(_f),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
169
117
|
|
|
170
118
|
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
171
119
|
|
|
172
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return
|
|
173
|
-
data-[state=open]:animate-in data-[state=open]:fade-in-0
|
|
174
|
-
data-[state=closed]:animate-out data-[state=closed]:fade-out-0`}),
|
|
175
|
-
data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:scale-95 data-[state=open]:duration-300
|
|
176
|
-
data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:scale-95 data-[state=closed]:duration-200`,children:[b.jsxs("div",{className:"flex flex-col items-center justify-center space-y-2",children:[b.jsx(La,{className:"h-6 w-6"}),b.jsx(hA,{className:"mt-4 text-sm font-bold",children:i})]}),b.jsx("div",{className:"space-y-2",children:e})]})})})]})}),dA=[{label:"json",value:"json"},{label:"csv",value:"csv"}],pA=({onSelect:e})=>{const[t,n]=M.useState(null);return b.jsx("div",{className:"w-full",children:b.jsx(Pi.Root,{"data-cy":"localization-export-file-type-select",value:t,options:dA,isMulti:!1,onChange:i=>{i&&(n(i),e(i.value))},getOptionLabel:i=>i.label,children:b.jsx(Pi.Group,{children:b.jsx(Pi.Field,{placeholder:"Select a file format"})})})})},fA=({enable:e,onSelect:t})=>{const{state:n,actions:i}=we.useStateObject({delimiters:[{label:"Comma",value:","},{label:"Semicolon",value:";"}],selected:","});return M.useEffect(()=>{t(n.selected)},[n.selected]),e?b.jsxs("div",{className:"flex flex-row items-center justify-between",children:[b.jsx("span",{className:"text-sm text-grey-50",children:" Select a Delimiter "}),b.jsx(Eu.Group,{className:"flex flex-row items-center space-x-2",value:n.selected,onChange:r=>i.setSelected(r),children:n.delimiters.map(({label:r,value:a})=>b.jsx(Eu.Item,{value:a,label:`${r} (${a})`}))})]}):b.jsx(b.Fragment,{})},gA={SELECT_FILE_TYPE:"Please Select a File Format !"},mA=({toExport:e})=>{var j,ae;const[t,n]=M.useState(),i=$n(),r=i.getWebformTabs(),a=M.useRef(null),s=M.useRef([]),l=M.useRef([]),{i18n:u}=Jn(),c=((j=i.getUserComponents)==null?void 0:j.call(i))??{},d=((ae=i.getBuildResolver)==null?void 0:ae.call(i))??{},[p]=M.useState(!0),{state:{isOpen:g,fileType:m,error:C,csvDelimier:x},actions:w}=we.useStateObject({error:"",isOpen:!1,fileType:"",supprtedExtension:[".json",".csv"],csvDelimier:","}),S=e.length===0;M.useEffect(()=>{we.tasksManagerSubject.subscribe({next:Z=>{if(Z.type==="i18n"&&Z.action==="cancel"){const{id:se}=Z;l.current.push(se)}}}),n({...d,...c})},[]);const k=()=>{w.setFileType(""),w.setError(""),w.setIsOpen(!1)},E=()=>{k()},A=()=>E(),y=()=>{const Z={};t&&(Object.entries(t).forEach(([se,ee])=>{const{info:{settings:pe}}=ee;if(pe)if(se==="Text")Z.Text=[{keyPropName:"doc",keyDefaultName:"text"}];else{const I=f(pe,"");Z[se]=I}}),a.current=Z)},f=(Z,se)=>{let ee=[];if(Array.isArray(Z))Z.forEach(pe=>ee=ee.concat(f(pe,se)));else if(he.isObject(Z)){const{key:pe,type:I}=Z;if(I===we.ESetting.GROUP){const{components:V}=Z;V==null||V.forEach(te=>ee=ee.concat(f(te,se)))}else I===we.ESetting.I18NFIELD?ee.push({keyPropName:se||pe,keyDefaultName:pe}):Object.entries(Z).forEach(([,V])=>{he.isObject(V)&&(ee=ee.concat(f(V,se||pe)))})}return ee},T=(Z,se)=>{const{content:ee}=Z,{components:pe}=ee,I={};if(!pe)return Z;const V=(O,$,z,B)=>{const U=[];if(he.has(O,z)){const G=he.get(O,z);U.push(...Eo(G,z,B))}const oe=[];return U.forEach(G=>{const ne=he.get(O,G),H={__dataPath:G,__default:ne};e.forEach(de=>{const X=`i18n:${de}`,me=Object.keys($),xe=me.find(ke=>ke.startsWith(X)),be=me.reduce((ke,Ee)=>(Ee!==X&&Ee.endsWith(X)&&ke.push(Ee),ke),[]);if(xe){const ke=he.get($,`${xe}.${G}`);he.set(H,de,ke)}if(be.length&&be.forEach(ke=>{const Ee=he.get($,`${ke}.${G}`);let Se=ke;Se=ke.replace("states:",""),Se=Se.replace("i18n:",""),Ee&&he.set(H,Se,Ee)}),!xe){const ke=he.get(O,`${G}`);he.set(H,de,ke)}}),oe.push(H)}),oe},te=(O,$,z)=>{const B=[],U=he.get(O,z);return U?(B.push({key:"__default",props:U}),e.forEach(oe=>{const G=`i18n:${oe}`,ne=Object.keys($),H=ne.find(X=>X.startsWith(G)),de=ne.reduce((X,me)=>(me!==G&&me.endsWith(G)&&X.push(me),X),[]);if(H){const X=he.get($,`${H}.${z}`);X&&B.push({key:oe,props:X})}de.length&&de.forEach(X=>{const me=he.get($,`${X}.${z}`);B.push({key:X,props:me||""})}),!H&&!de.length&&B.push({key:oe,props:U})}),B.reduce((oe,G)=>{const{key:ne,props:H}=G,de=x2(H);return{...oe,[ne]:de}},{__dataPath:z})):O};return Object.entries(pe).forEach(([O,$])=>{const{props:z,custom:B={},type:U}=$,ie=U.resolvedName,oe=se[ie];if(!oe||oe.length===0)return;const G=oe.map(({keyPropName:ne,keyDefaultName:H})=>ie==="Text"?te(z,B,ne):V(z,B,ne,H));he.set(I,O,{resolverName:ie,props:[...G.flat()]})}),I},R=async(Z,se)=>{const ee={},pe=I=>{const V=I+1===Z.length?Z.length:I,te=Math.ceil(V/Z.length*100);we.tasksManagerSubject.next({id:se,action:"update",type:"i18n",payload:{progress:te,status:te>=100?"finished":"ongoing"}})};for(let I=0;I<Z.length;I++){const V=Z[I],te=r.find(z=>z.name===V.name&&z.type==="webform");if(!a.current){pe(I);continue}const O=te||await we.getNodeInfo({verb:we.DesignerRequestVerb.GET_INFO,content:!0,path:`WebForms/${V.name}.${V.ext}`,as:"json"}),$=T(O,a.current);if(he.isEmpty($)||he.set(ee,V.name,$),l.current.find(z=>z===se))return{};pe(I)}return ee},F=(Z,se,ee)=>{const pe="data:text/json;charset=utf-8,"+encodeURIComponent(Z),I=document.createElement("a");I.setAttribute("href",pe),I.setAttribute("download",se+`.${ee}`),document.body.appendChild(I),I.click(),I.remove()},D=Z=>{switch(m){case"csv":{const se=["keys","resolverName","__t"].concat(e.concat(["i18nkey_default"]));return m2(Z,se,x)}case"json":return JSON.stringify(Z,null," ");default:return JSON.stringify(Z,null," ")}},q=(Z,se)=>{Object.entries(se.keys).forEach(([pe,I])=>{Object.keys(I).forEach(V=>{s.current.push(`i18n.${pe}.${V}`)})});const ee={};return Object.entries(se.keys).forEach(([pe,I])=>{ee[pe]={default:I.default},e.forEach(V=>{ee[pe][V]=Object.hasOwn(I,V)?I[V]:p?I.default:void 0})}),{webforms:{...Z},i18n:ee}},J=Z=>w.setCsvDelimier(Z),K=async()=>{const Z=_o.generate().toString();try{we.tasksManagerSubject.next({id:Z,action:"add",type:"i18n",payload:{progress:0,name:"Export i18n",status:"ongoing",date:new Date().toISOString(),time:g2()}}),y();const se=await Bg(),ee=await R(se,Z),pe=q(ee,u),I=D(pe);he.isEmpty(I)||F(I,"export-i18n",m),k()}catch(se){we.tasksManagerSubject.next({id:Z,type:"i18n",action:"update",payload:{status:"canceled"}}),we.tasksManagerSubject.next({id:Z,type:"i18n",action:"error",payload:{errorMessage:se.message||"Export file error"}})}k()};return b.jsxs(b.Fragment,{children:[b.jsx(bt,{label:"Export",container:dt(),children:b.jsx(st,{disabled:S,color:"white",variant:"ghost",onClick:()=>{w.setIsOpen(!0)},children:b.jsx(uv,{className:"h-4 w-4"})})}),b.jsxs(wm,{isOpen:g,onClose:E,title:"Export","data-cy":"localization-export-dialog",children:[b.jsx("div",{className:"mt-4",children:b.jsx(pA,{onSelect:Z=>w.setFileType(Z)})}),b.jsx(fA,{enable:m==="csv",onSelect:J}),b.jsxs("div",{className:"mt-3 flex items-center justify-between gap-4",children:[b.jsxs("div",{className:"flex flex-row space-x-1 justify-center items-center text-primary hover:underline cursor-pointer",onClick:()=>{window.open("https://developer.4d.com/qodly/4DQodlyPro/localization#exporting-and-importing-translations","_blank")},children:[b.jsx("p",{className:"text-xs",children:"How to Export an i18n File"}),b.jsx(zh,{className:"ml-1 h-4 w-4"})]}),b.jsxs("div",{className:"flex items-center space-x-2",children:[b.jsx(st,{color:"white",variant:"ghost",onClick:A,children:"Cancel"}),b.jsx(st,{onClick:()=>{m?(w.setIsOpen(!1),K()):w.setError(gA.SELECT_FILE_TYPE)},children:"Export"})]})]}),C&&b.jsx("div",{className:"flex items-center justify-center p-2",children:b.jsx("span",{className:"text-sm text-negative-text",children:C})})]})]})},vA={DROP_EVENT_ERROR:"Not Suported File type! Only .json and .csv are Supported."},xA=["default"],bA={MISSING_WEBFORMS_OR_I18N:"The file must contain 'webforms' or 'i18n' (or both). The file is empty or missing these keys."},km=["__dataPath","__default","default","__t","i18nkey_default"],yA=["i18n:","state:"],Pa=e=>km.includes(e)||yA.some(t=>e.startsWith(t)),wA=e=>{const t=new Set;return e.webforms&&Object.values(e.webforms).forEach(n=>{Object.values(n).forEach(i=>{(i.props||[]).forEach(r=>{Object.keys(r).forEach(a=>{Pa(a)||t.add(a)})})})}),e.i18n&&Object.values(e.i18n).forEach(n=>{Object.keys(n||{}).forEach(i=>{Pa(i)||t.add(i)})}),Array.from(t).sort()},Mh=e=>{if(km.includes(e))return null;if(e.startsWith("state:")){const t=e.lastIndexOf("i18n:");return t!==-1&&e.slice(t+5)||null}return e},kA=(e,t)=>{const n=new Set(t),i={};return e.webforms&&(i.webforms={},Object.entries(e.webforms).forEach(([r,a])=>{if(!a||typeof a!="object")return;const s={};Object.entries(a).forEach(([l,u])=>{if(!u||typeof u!="object")return;const c={resolverName:u.resolverName};u.resolverName==="Text"?(u.props&&(c.props=u.props),u.custom&&(c.custom={},Object.entries(u.custom).forEach(([p,g])=>{const m=p.startsWith("state:")||p.startsWith("states:")?Mh(p):p.startsWith("i18n:")?p.slice(5):p;m&&n.has(m)&&(c.custom[p]=g)}))):Object.entries(u).forEach(([p,g])=>{if(p!=="resolverName")if(g&&he.isObject(g)&&!Array.isArray(g)){const m={};Object.entries(g).forEach(([C,x])=>{const w=Mh(C);(w===null||n.has(w))&&(m[C]=x)}),Object.keys(m).length>0&&(c[p]=m)}else c[p]=g}),s[l]=c}),i.webforms[r]=s})),e.i18n&&(i.i18n={},Object.entries(e.i18n).forEach(([r,a])=>{if(!a||typeof a!="object")return;const s={};Object.entries(a).forEach(([l,u])=>{(l==="default"||!Pa(l)&&n.has(l))&&(s[l]=u)}),Object.keys(s).length>0&&(i.i18n[r]=s)})),i},SA=e=>{const{data:t}=No.parse(e),n=t[0];if(!n||!Array.isArray(n))return[];const i=n.slice(2).filter(r=>r&&!Pa(r.trim()));return[...new Set(i)].sort()},Ii={EMPTY_OR_INVALID:"The CSV file is empty or could not be parsed.",HEADER_REQUIRED:"The first row must be a header with at least columns: 'keys', 'resolverName', and one locale (e.g. __t, fr, en).",KEY_FORMAT:"Each data row's first column (keys) must be non-empty and start with 'webforms.' or 'i18n.'.",ROW_COLUMNS:"Every row must have the same number of columns as the header."},EA=e=>{const t=Hg(e),{data:n}=No.parse(t),i=n;if(!(i!=null&&i.length))return{valid:!1,message:Ii.EMPTY_OR_INVALID};const r=i[0];if(!r||r.length<3)return{valid:!1,message:Ii.HEADER_REQUIRED};const a=(r[0]??"").trim().toLowerCase(),s=(r[1]??"").trim().toLowerCase();if(a!=="keys"||s!=="resolvername")return{valid:!1,message:Ii.HEADER_REQUIRED};const l=r.length;for(let u=1;u<i.length;u++){if(i[u].length<=1)continue;const c=i[u];if(!c||c.length!==l)return{valid:!1,message:Ii.ROW_COLUMNS};const d=(c[0]??"").trim();if(!d)return{valid:!1,message:Ii.KEY_FORMAT};if(!d.startsWith("webforms.")&&!d.startsWith("i18n."))return{valid:!1,message:Ii.KEY_FORMAT}}return{valid:!0}},CA=(e,t)=>{const i=new qm.Validator().validate(e,t);if(i.valid)return{valid:!0};const r=i.errors[0],a=r?`${r.property||"root"} ${r.message}`.trim():"Invalid file format";return{valid:!1,message:he.isObject(e)&&!he.has(e,"webforms")&&!he.has(e,"i18n")&&(a.includes("subschema")||a.includes("any of"))?bA.MISSING_WEBFORMS_OR_I18N:a}},IA="Export i18n",_A="Schema for i18n export format. Must have webforms, i18n, or both.",AA="object",NA=!1,TA={webforms:{type:"object",description:"Webform names to their component localizations",additionalProperties:{$ref:"#/definitions/webformComponents"}},i18n:{type:"object",description:"Shared i18n keys and their localized values",additionalProperties:{$ref:"#/definitions/i18nKeys"}}},OA=[{required:["webforms"]},{required:["i18n"]}],PA={webformComponents:{type:"object",description:"Component ID to component localization entry",additionalProperties:{$ref:"#/definitions/componentEntry"}},componentEntry:{type:"object",required:["resolverName","props"],additionalProperties:!1,properties:{resolverName:{type:"string",description:"Name of the component resolver (e.g. Button)"},props:{type:"array",description:"Localized prop entries",items:{$ref:"#/definitions/propLocalization"}}}},propLocalization:{type:"object",required:["__dataPath","__default"],properties:{__dataPath:{type:"string",description:"Path to the prop (e.g. text)"},__default:{type:"string",description:"Default value for the prop"}},additionalProperties:{type:"string",description:"Locale code to localized string (e.g. fr, en)"}},i18nKeys:{type:"object",required:["default"],properties:{default:{type:"string",description:"Default value"}},additionalProperties:{type:"string",description:"Locale code to localized string (e.g. fr, en)"}}},RA={title:IA,description:_A,type:AA,additionalProperties:NA,properties:TA,anyOf:OA,definitions:PA},MA=({label:e,isocode:t,isChecked:n,onToggle:i})=>b.jsx(Da,{size:"sm",value:n,label:e,onChange:i,title:t}),LA=({detectedLanguageDetails:e,selectedIsocodes:t,onToggleIsocode:n})=>b.jsxs(Gn,{depth:1,borderType:"light",className:"mt-2 w-full rounded border px-2 py-1.5",children:[b.jsx("p",{className:"mb-1.5 text-xs font-medium text-muted",children:"Detected locales"}),b.jsx("div",{className:"flex flex-col gap-1 overflow-y-auto",style:{maxHeight:"5rem"},children:e.map(i=>b.jsx(MA,{label:`${i.native} - ${i.isocode??""}`,isocode:i.isocode,isChecked:t.includes(i.isocode),onToggle:()=>n(i.isocode)},i.isocode))})]}),DA="Drop or Add a File !",FA=({getRootProps:e,getInputProps:t,isDragActive:n,file:i,error:r,onResetFile:a,detectedLanguageDetails:s,selectedIsocodes:l,onToggleIsocode:u,onClose:c,onImport:d,setError:p,hasNoSelection:g})=>b.jsxs(b.Fragment,{children:[b.jsxs("div",{className:"mt-4 space-y-2",children:[b.jsxs("div",{...e(),children:[b.jsx("input",{...t()}),b.jsx("div",{className:Ft("min-h-[100px] rounded border border-dashed text-center text-sm",{"border-primary":n,"flex items-center justify-center":i}),children:i?b.jsxs("div",{className:"flex items-center justify-center gap-1 px-2",children:[b.jsx("p",{className:"min-w-0 flex-1 truncate",children:i.name}),b.jsx(bt,{label:"Remove file",container:dt(),children:b.jsx(st,{color:"white",variant:"ghost",onClick:m=>{m.stopPropagation(),a()},"aria-label":"Remove file",children:b.jsx(Ma,{className:"h-4 w-4"})})})]}):b.jsxs("div",{className:"flex min-h-[100px] w-full flex-col items-center justify-center text-muted",children:[b.jsx("p",{className:"max-w-md px-2 text-center text-xs ",children:'Drag and drop the file with ".json" or ".csv" extension here or click to select it from your computer.'}),b.jsx(La,{className:"mt-2 h-6 w-6 text-inactive-text"})]})}),r&&b.jsx("div",{className:"flex items-center justify-center p-2",children:b.jsx("p",{className:"text-xs text-negative-text",children:r})})]}),i&&s.length>0&&b.jsx(LA,{detectedLanguageDetails:s,selectedIsocodes:l,onToggleIsocode:u})]}),b.jsxs("div",{className:"mt-4 flex items-center justify-between gap-4",children:[b.jsxs("div",{className:"flex flex-row space-x-1 justify-center items-center text-primary hover:underline cursor-pointer",onClick:()=>{window.open("https://developer.4d.com/qodly/4DQodlyPro/localization#exporting-and-importing-translations","_blank")},children:[b.jsx("p",{className:"text-xs",children:"How to Import an i18n File"}),b.jsx(zh,{className:"ml-1 h-4 w-4"})]}),b.jsxs("div",{className:"flex items-center space-x-2",children:[b.jsx(st,{color:"white",variant:"ghost",onClick:c,children:"Cancel"}),b.jsx(st,{disabled:g,onClick:()=>{!r&&i?d():i||p(DA)},children:"Import"})]})]})]}),jA=({summary:e,onClose:t})=>b.jsxs(b.Fragment,{children:[b.jsxs("div",{className:"mt-4 space-y-4",children:[b.jsx("p",{className:"text-sm text-muted",children:"Summary"}),b.jsxs(Gn,{depth:1,borderType:"light",className:"rounded border px-3 py-3 space-y-2",children:[b.jsxs("div",{className:"flex items-center justify-between text-xs",children:[b.jsx("span",{className:"text-inactive-text",children:"Keys Imported"}),b.jsx("span",{className:"font-medium",children:e.importedKeys})]}),b.jsxs("div",{className:"flex items-center justify-between text-xs",children:[b.jsx("span",{className:"text-inactive-text",children:"Keys Merged"}),b.jsx("span",{className:"font-medium",children:e.mergedKeys})]}),b.jsxs("div",{className:"flex items-center justify-between text-xs",children:[b.jsx("span",{className:"text-inactive-text",children:"Keys Unchanged"}),b.jsx("span",{className:"font-medium",children:e.unchangedKeys})]})]})]}),b.jsx("div",{className:"mt-4 flex justify-end",children:b.jsx(st,{color:"white",variant:"outline",onClick:t,children:"Close"})})]}),Sm=({disable:e,enable:t,RenderTrigger:n})=>{const i=$n(),{state:{file:r,isOpen:a,supprtedExtension:s,error:l,content:u,detectedLanguages:c,selectedIsocodes:d,showSummaryView:p,summary:g},actions:m}=we.useStateObject({file:null,error:"",isOpen:!1,fileType:"",supprtedExtension:[".json",".csv"],content:{},detectedLanguages:[],selectedIsocodes:[],showSummaryView:!1,summary:{importedKeys:0,mergedKeys:0,unchangedKeys:0}}),C=i.getWebformTabs(),{i18n:{keys:x}}=Jn(),{allSupportedLanguages:w,userLanguages:{supported:S,primary:k},setUserLangSettings:E}=Yn(),A=M.useMemo(()=>w.filter(z=>c.includes(z.isocode)),[w,c]),y=z=>{const B=new Set(S.map(oe=>oe.isocode)),U=z.filter(oe=>!B.has(oe));if(U.length===0)return;const ie=U.map(oe=>lr(oe,w)).filter(oe=>oe!=null).map(oe=>({isocode:oe.isocode}));ie.length!==0&&E({primary:S.length===0?ie[0].isocode:k,supported:S.concat(ie)})},{getRootProps:f,getInputProps:T,isDragActive:R}=Um.useDropzone({async onDropAccepted([z]){if(s.find(B=>z.name.endsWith(B))){m.setError(""),m.setFile(z);const B=await q(z),U=z.name.split(".").pop()||"";try{if(U==="csv"){const ie=EA(B);if(!ie.valid){m.setError(ie.message);return}const oe=I(B,U);m.setContent(oe||{});const G=SA(B);m.setDetectedLanguages(G),m.setSelectedIsocodes(G)}else{const ie=JSON.parse(B),oe=CA(ie,RA);if(!oe.valid){m.setError(oe.message);return}const G=I(B,U);m.setContent(G||{});const ne=wA(ie);m.setDetectedLanguages(ne),m.setSelectedIsocodes(ne)}}catch(ie){m.setError(ie.message||"Invalid file");return}}else m.setError(vA.DROP_EVENT_ERROR)},accept:{"application/*":s},multiple:!1}),F=()=>{m.setFileType(""),m.setError(""),m.setFile(null),m.setContent({}),m.setDetectedLanguages([]),m.setSelectedIsocodes([])},D=()=>{m.setIsOpen(!1),m.setShowSummaryView(!1),m.setSummary({importedKeys:0,mergedKeys:0,unchangedKeys:0}),F()},q=z=>new Promise(B=>{const U=new FileReader;U.onload=()=>B(U.result),U.readAsText(z)}),J=async(z,B,U)=>{if(U){const ie=`WebForms/${B}.WebForm`;await i.actions.setTabContent({path:ie,content:z.content}),we.webformSubject.next({path:ie,action:we.WebformActions.RECOMPUTE,payload:z.content.components})}else{const ie={...z};await we.saveContent({verb:we.DesignerRequestVerb.SAVE_CONTENT,content:ie.content,path:`WebForms/${B}.WebForm`})}},K=(z,B)=>{const{content:{components:U}}=he.cloneDeep(z);if(!U)return z;const ie=(ne,H,de,X)=>{if(Array.isArray(ne))ne.forEach((me,xe)=>{let be="";de==="Text"?be=Array.isArray(me)?`${H}.[${xe}].children`:`${H}.[${xe}]`:be=`${H}.[${xe}]`,ie(me,be,de,X)});else if(he.isObject(ne))if(Object.keys(ne).length>1){const xe=Object.keys(ne),be={};xe.forEach(Ee=>{const Se=he.get(ne,Ee);if(Ee==="__t")he.set(X,`props.${H}`,Se);else if(Se&&Ee.startsWith("states:")){const Ve=Ee.split(":"),$e=Ve.map((Me,Fe)=>Fe+1===Ve.length?`i18n:${Me}`:Me).join(":");if(!X.custom)return;he.set(be,`${$e}.${H}`,Se)}else if(Se){const Ve=`i18n:${Ee}`;if(!X.custom)return;he.set(be,`${Ve}.${H}`,Se)}});const[ke]=H.split(".");Object.entries(be).forEach(([Ee,Se])=>{const Ve=he.get(X,`props.${ke}`,{}),$e=he.get(X,`custom.${Ee}.${ke}`);let Me="";typeof $e=="string"||typeof Ve=="string"?Me=he.get(Se,ke):Me=he.merge($e||he.cloneDeep(Ve),he.get(Se,ke)),he.set(X,`custom.${Ee}.${ke}`,Me)})}else{const xe=Object.entries(ne)[0],be=xe[0],ke=xe[1];H=`${H}.${be}`,ie(ke,H,de,X)}},oe=Object.entries(B);for(let ne=0;ne<oe.length;ne++){const[H,de]=oe[ne],{resolverName:X,...me}=de,xe=he.get(U,H);if(xe)if(X==="Text"){const{custom:be,props:ke}=me;he.set(U,H,{...xe,props:{...xe.props,...ke},custom:{...xe.custom,...be}})}else Object.entries(me).forEach(([be,ke])=>{const Ee=he.get(U,H);if(!Ee)return;const Se=he.cloneDeep(Ee);ie(ke,be,X,Se),he.set(U,H,Se)})}const G=he.cloneDeep(z);return he.set(G,"content.components",U),G},j=z=>z==null||typeof z=="string"&&z.trim()==="",ae=(z,B)=>{const U=z&&he.isObject(z)?z:{},ie=B&&he.isObject(B)?B:{};if(j(ie))return he.cloneDeep(U);const oe=he.cloneDeep(U);for(const G of Object.keys(ie)){const ne=ie[G];if(!ne||!he.isObject(ne))continue;const H=oe[G],de=new Set([...Object.keys(ne),...H&&he.isObject(H)?Object.keys(H):[]]),X={};for(const me of de){const xe=he.get(ne,me),be=H&&he.isObject(H)?he.get(H,me):void 0;j(xe)?j(be)||(X[me]=be):X[me]=xe}for(const me of xA){const xe=he.get(X,me),be=H&&he.isObject(H)?he.get(H,me):void 0;!j(be)&&j(xe)&&he.set(X,me,be)}oe[G]=X}return oe},Z=(z,B)=>{const U={importedKeys:0,mergedKeys:0,unchangedKeys:0},ie=new Set(Object.keys(B||{}));for(const oe of ie){const G=B[oe],ne=z[oe];if(!ne||!he.isObject(ne)){U.importedKeys+=1;continue}const H=Object.keys(G);let de=!1;for(const X of H){const me=G[X],xe=he.get(ne,X),be=j(me)&&!j(xe),ke=String(me??"")===String(xe??"");if(!be&&!ke){de=!0;break}}H.length>0&&!de?U.unchangedKeys+=1:de&&(U.mergedKeys+=1)}for(const oe of Object.keys(z))ie.has(oe)||(U.unchangedKeys+=1);return U},se=async(z,B,U)=>{const{webforms:ie,i18n:oe}=z,G=ae(x,oe),ne=Z(x,oe);we.i18nSubject.next({action:"set_content",payload:G});const H=de=>{const X=de+1===B.length?B.length:de,me=Math.ceil(X/B.length*100);we.tasksManagerSubject.next({id:U,action:"update",type:"i18n",payload:{progress:me,status:me>=100?"finished":"ongoing"}})};if(j(ie))return ne;for(let de=0;de<B.length;de++){const X=B[de],me=C.find(Se=>Se.name===X.name&&Se.type==="webform"),xe=!!me,be=xe?me:await we.getNodeInfo({verb:we.DesignerRequestVerb.GET_INFO,content:!0,path:`WebForms/${X.name}.${X.ext}`,as:"json"}),{name:ke}=be;if(!ie[ke]){H(de);continue}const Ee=K(be,ie[ke]);await J(Ee,ke,xe),H(de)}return ne},ee=z=>{const B=Hg(z),{data:U}=No.parse(B),ie={};let oe=[];return U.forEach((G,ne)=>{if(ne===0){oe=G;return}let H="",de="";G.forEach((X,me)=>{if(me===0)H=X;else if(me===1)de=X;else if(H.startsWith("i18n")){if(he.has(ie,H)&&he.get(ie,H))return;he.set(ie,H,X)}else if(X){const{webformName:xe,componentId:be,propName:ke}=y2(H);if(he.set(ie,`webforms.${xe}.${be}.resolverName`,de),de==="Text"){const Ee=Ks(X),Se=oe[me];Se==="__t"?he.set(ie,`webforms.${xe}.${be}.props.${ke}`,Ee):he.set(ie,`webforms.${xe}.${be}.custom.i18n:${Se}.${ke}`,Ee)}else{const Ee=oe[me];let Se=Ee==="i18nkey_default"?"default":Ee;if(Se.includes(":")){const Ve=Se.split(":");Se=Ve.map(($e,Me)=>Me===0?`states:${$e}`:Me===Ve.length-1?`i18n:${$e}`:$e).join(":")}he.set(ie,`${H}.${Se}`,X)}}})}),ie},pe=z=>{const B=JSON.parse(z),U={},{webforms:ie,i18n:oe}=B;return ie&&Object.keys(ie).forEach(ne=>{const H=he.get(ie,ne);Object.keys(H).forEach(X=>{const me=he.get(H,X),{props:xe,resolverName:be}=me;he.set(U,`webforms.${ne}.${X}.resolverName`,be),Array.isArray(xe)&&xe.forEach(({__dataPath:ke,__default:Ee,...Se})=>{if(be==="Text"){const Ve=Ks(Ee);he.set(U,`webforms.${ne}.${X}.props.doc`,Ve),Object.keys(Se).forEach($e=>{const Me=Ks(Se[$e]);he.set(U,`webforms.${ne}.${X}.custom.i18n:${$e}.doc`,Me)})}else he.set(U,`webforms.${ne}.${X}.${ke}.__t`,Ee),Object.keys(Se).forEach(Ve=>{let $e=Ve;if($e.includes(":")){const Me=$e.split(":");$e=Me.map((Fe,xt)=>xt===0?`states:${Fe}`:xt===Me.length-1?`i18n:${Fe}`:Fe).join(":")}he.set(U,`webforms.${ne}.${X}.${ke}.${$e}`,Se[Ve])})})})}),oe&&Object.keys(oe).forEach(ne=>{const H=he.get(oe,ne);H&&Object.keys(H).forEach(X=>{const me=he.get(H,X);he.set(U,`i18n.${ne}.${X}`,me)})}),U},I=(z,B)=>{switch(B){case"csv":return ee(z);case"json":return pe(z)}},V=async()=>{if(r){const z=_o.generate().toString();try{we.tasksManagerSubject.next({id:z,action:"add",type:"i18n",payload:{date:new Date().toISOString(),progress:0,name:"Import i18n",status:"ongoing"}});const B=await Bg(),U=kA(u,d),ie=await se(U,B,z);m.setSummary(ie),m.setShowSummaryView(!0),y(d)}catch(B){we.tasksManagerSubject.next({id:z,type:"i18n",action:"update",payload:{status:"canceled"}}),we.tasksManagerSubject.next({id:z,type:"i18n",action:"error",payload:{errorMessage:B.message||"Import file error"}})}}};if(!t)return b.jsx(b.Fragment,{});const te=()=>{m.setIsOpen(!0),F()},O=z=>{m.setSelectedIsocodes(d.includes(z)?d.filter(B=>B!==z):[...d,z])},$=n?b.jsx(n,{onClick:te,disabled:!!e}):b.jsx(bt,{label:"Import",container:dt(),children:b.jsx(st,{disabled:e,color:"white",variant:"ghost",onClick:te,children:b.jsx(La,{className:"h-4 w-4"})})});return b.jsxs(b.Fragment,{children:[$,b.jsx(wm,{isOpen:a,onClose:D,title:p?"Import summary":"Import",children:p?b.jsx(jA,{summary:g,onClose:D}):b.jsx(FA,{getRootProps:f,getInputProps:T,isDragActive:R,file:r,error:l,onResetFile:F,detectedLanguages:c,detectedLanguageDetails:A,selectedIsocodes:d,onToggleIsocode:O,onClose:D,onImport:V,setError:m.setError,hasNoSelection:d.length===0})})]})},zA=({onClick:e})=>b.jsx(bt,{label:"Edit",container:dt(),children:b.jsx(st,{color:"white",variant:"ghost","data-cy":"locales-list-item-edit-button",onClick:t=>{t.stopPropagation(),e()},children:b.jsx(Vh,{})})}),VA=({onClick:e,disable:t})=>t?b.jsx(b.Fragment,{}):b.jsx(bt,{label:"Remove",container:dt(),children:b.jsx(st,{color:"white",variant:"ghost","data-cy":"locales-list-item-remove-button",disabled:t,onClick:n=>{n.stopPropagation(),e()},children:b.jsx(Bh,{})})}),BA=({collapse:e,onClick:t})=>b.jsx(bt,{label:"Collapse",container:dt(),children:b.jsx(st,{color:"white",variant:"ghost",onClick:n=>{n.stopPropagation(),t()},children:b.jsx(Fh,{className:Ft({"-rotate-90":e})})})}),HA=({lang:e,onCancel:t,onConfirm:n})=>{var g,m,C;const{allSupportedLanguages:i}=Yn(),{i18n:r}=Jn(),a=M.useMemo(()=>{var w,S;const x=new Set;return(w=r==null?void 0:r.userLang)!=null&&w.primary&&x.add(r.userLang.primary),(S=r==null?void 0:r.userLang)!=null&&S.supported&&r.userLang.supported.forEach(k=>{x.add(k.isocode)}),i},[i,(g=r==null?void 0:r.userLang)==null?void 0:g.primary,(m=r==null?void 0:r.userLang)==null?void 0:m.supported]),{state:{isOpen:s,selectedLanguage:l},actions:u}=we.useStateObject({isOpen:!1,editing:!1,selectedLanguage:null,highlightedLanguageIndex:-1}),c=we.useOutsideClick(()=>{l&&n(l)}),d=()=>{t()},p=()=>{l?n(l):t()};return b.jsxs(Gn,{depth:4,borderType:"light",className:"flex flex-row justify-between items-center border-1 mb-2 rounded border px-2 py-2 hover:cursor-pointer",ref:c,children:[b.jsx(Pi.Root,{className:"w-48",value:l,options:a,isOpen:s,onOpenChange:u.setIsOpen,isSearchable:!0,getOptionLabel:x=>{const w=lr(x.isocode,i);return`${w==null?void 0:w.native} - ${w==null?void 0:w.isocode}`},getOptionValue:x=>x.isocode,onChange:x=>{x&&u.setSelectedLanguage({isocode:x.isocode})},children:b.jsx(Pi.Group,{className:Ft({"border-panel-border-subtle":!s}),children:b.jsx(Pi.Field,{"data-cy":"locales-new-language-input",autoFocus:!0,hideSelectedOptions:!0,placeholder:((C=lr(e==null?void 0:e.isocode,i))==null?void 0:C.locale)||"Select a language",onKeyUp:x=>{x.key==="Enter"&&p()},onClick:()=>u.setIsOpen(!0)})})}),b.jsxs("div",{className:"flex space-x-1",children:[b.jsx(bt,{label:"Cancel",container:dt(),children:b.jsx(st,{"data-cy":"locales-new-language-cancel-button",onClick:d,color:"white",variant:"ghost",children:b.jsx(Ma,{})})}),b.jsx(bt,{label:"Confirm",container:dt(),children:b.jsx(st,{"data-cy":"locales-new-language-confirm-button",onClick:p,color:"white",variant:"ghost",disabled:!l,children:b.jsx(To,{})})})]})]})},Em=({activate:e,...t})=>e?b.jsx(HA,{...t}):b.jsx(b.Fragment,{}),KA=({primary:e,selected:t,selectMode:n,lang:i,onSelect:r,onRemove:a,onEdit:s,"data-cy":l})=>{const{state:{hover:u,selected:c,collapse:d,editing:p},actions:{setHover:g,setSelected:m,setCollapse:C,setEditing:x}}=we.useStateObject({hover:!1,selected:!1,collapse:!0,editing:!1}),{selectedLanguage:w,setSelectedLanguage:S}=Yn(),{isocode:k,locale:E,native:A}=i||{isocode:"",locale:"",native:""},y=e===k,f=()=>{g(!0)},T=()=>{g(!1)},R=()=>{m(!c),r(k,!c)},F=()=>{x(!0)},D=()=>{a(k)},q=()=>{S(i)},J=j=>{x(!1),s(i,j)},K=()=>{x(!1)};return M.useEffect(()=>{m(t)},[t]),M.useEffect(()=>{y&&S(i)},[]),p?b.jsx(Em,{lang:i,activate:p,onCancel:K,onConfirm:J}):b.jsxs(Gn,{depth:4,borderType:(w==null?void 0:w.isocode)===(i==null?void 0:i.isocode)?"primary":"light","data-cy":l,className:Ft("border-[1px] mb-2 flex flex-col space-y-2 rounded px-2 py-2 hover:cursor-pointer"),onMouseEnter:f,onMouseLeave:T,onClick:q,children:[b.jsxs("div",{className:"flex flex-row justify-between items-center",children:[b.jsxs("div",{className:"flex flex-row space-x-1",children:[u||n?b.jsx(Da,{value:c,onChange:R,size:"sm"}):b.jsx(b.Fragment,{}),b.jsx(jh,{className:Ft("w-4 h-4",{hidden:n||u})}),b.jsx("span",{className:Ft("text-xs",{"italic font-bold":y}),children:A})]}),b.jsxs("div",{className:"flex flex-row items-center space-x-1",children:[y&&b.jsx(T0,{label:"Primary"}),b.jsx(zA,{onClick:F}),b.jsx(VA,{disable:y,onClick:D}),b.jsx(BA,{collapse:d,onClick:()=>C(!d)})]})]}),b.jsxs("div",{className:Ft("ml-6 flex justify-between p-1 text-xs",{hidden:d}),children:[b.jsx("span",{children:"English name"}),b.jsx("span",{className:"text-muted",children:E})]}),b.jsxs("div",{className:Ft("ml-6 flex justify-between p-1 text-xs",{hidden:d}),children:[b.jsx("span",{children:"Iso Code"}),b.jsx("span",{className:"text-muted",children:k})]})]})},WA=()=>{const{state:{selectedLanguages:e,shouldAddNewLocal:t,selectAll:n},actions:i}=we.useStateObject({selectAll:!1,selectedLanguages:[],shouldAddNewLocal:!1,allSupportedLanguages:[]}),{userLanguages:{supported:r=[],primary:a},addFirstLanguage:s,setAddFirstLanguage:l,setUserLangSettings:u,setSelectedLanguage:c,allSupportedLanguages:d}=Yn(),{editLanguageKeys:p,deleteLanguageKeys:g}=Jn(),m=Ty(d),C=Oy(e),x=$n(),w=x.getI18nCurrent(),S=x.getTabs(),k=(j,ae)=>{const Z=ae?e.concat(j):e.filter(se=>se!==j);i.setSelectedLanguages(Z),n&&i.setSelectAll(!1)},E=j=>{i.setShouldAddNewLocal(j)},A=()=>{i.setSelectAll(!n),n?i.setSelectedLanguages([]):i.setSelectedLanguages(r.map(j=>j.isocode))},y=j=>{const ae={primary:r.length===0?j.isocode:a,supported:r.concat(j)};u(ae),i.setShouldAddNewLocal(!1)};M.useEffect(()=>{s&&i.setShouldAddNewLocal(!0)},[s]);const f=(j,ae)=>{const Z=`i18n:${ae}`,se=`:i18n:${ae}`,ee=pe=>{pe.custom&&Object.keys(pe.custom).forEach(I=>{(I.includes(Z)||I.endsWith(se))&&delete pe.custom[I]})};return Object.values(j).forEach(pe=>ee(pe)),j},T=(j,ae)=>j.map(Z=>{var ee;const se=he.cloneDeep(Z);return(ee=se.content)!=null&&ee.components&&(se.content={...se.content,components:f({...se.content.components},ae)}),se}),R=(j,ae,Z)=>{const se=`i18n:${ae}`,ee=`:i18n:${ae}`,pe=I=>{I.custom&&Object.keys(I.custom).forEach(V=>{if(V===se){const te=I.custom[V];delete I.custom[V],I.custom[`i18n:${Z}`]=te}else if(V.endsWith(ee)){const te=I.custom[V];delete I.custom[V];const O=V.replace(`:i18n:${ae}`,`:i18n:${Z}`);I.custom[O]=te}})};return Object.values(j).forEach(I=>pe(I)),j},F=(j,ae,Z)=>j.map(se=>{var pe;const ee=he.cloneDeep(se);return(pe=ee.content)!=null&&pe.components&&(ee.content={...ee.content,components:R({...ee.content.components},ae,Z)}),ee}),D=async j=>{const{confirmed:ae}=await x.actions.openModal({title:"Delete Language",message:"Your translations will be lost , want to proceed ?",type:we.ModalType.CONFIRM,color:we.ModalColor.WARNING,icon:"FdWarningDanger"});if(!ae)return;g({isocode:j});const Z=T(S,j);x.actions.setTabs(Z);const se={primary:a,supported:r.filter(ee=>ee.isocode!==j)};u(se),e.includes(j)&&i.setSelectedLanguages(e.filter(ee=>ee!==j)),se.supported.length===0&&l(!1),j===w&&x.actions.setI18nCurrent("")},q=(j,ae)=>{const Z={primary:a===j.isocode?ae.isocode:a,supported:r.map(ee=>ee.isocode===j.isocode?ae:ee)},se=F(S,j.isocode,ae.isocode);x.actions.setTabs(se),w===j.isocode&&x.actions.setI18nCurrent(ae.isocode),p(j,ae),u(Z),c(ae)},J=()=>{E(!1),r.length===0&&l(!1)},K=()=>{t?we.toastSubject.next({kind:"warning",message:"To add a new locale, please confirm your selection by clicking 'Confirm'"}):E(!0)};return b.jsxs("div",{className:"flex w-72 flex-col space-y-2 px-2 py-3 shrink-0",children:[b.jsxs("div",{className:"text-grey-50 flex flex-row justify-between",children:[b.jsxs("div",{className:"flex flex-row items-center justify-center space-x-2 text-sm",children:[b.jsx(jh,{className:"h-4 w-4"}),b.jsx("span",{className:"text-sm",children:"Locales "})]}),b.jsxs("div",{className:"space-x-2",children:[b.jsx(we.Tip,{tipKey:"editors:i18n:locals",alwaysOn:!0}),b.jsx(bt,{label:"Add new language",container:dt(),children:b.jsx(st,{"data-cy":"locales-header-add-button",color:"white",variant:"ghost",onClick:K,children:b.jsx(Po,{})})})]})]}),b.jsxs("div",{className:"flex px-[5px] justify-between",children:[b.jsx("div",{"data-cy":"locales-select-all-checkbox",className:Ft("flex items-center justify-center space-x-1",{visible:m,invisible:!m}),children:b.jsx(Da,{value:n,onChange:A,size:"sm",label:"Select all"})}),b.jsxs("div",{className:"flex flex-row items-center justify-center space-x-1",children:[b.jsx(mA,{"data-cy":"localization-export-button",enable:!0,disable:!1,toExport:e}),b.jsx(Sm,{"data-cy":"localization-import-button",enable:!0,disable:!1})]})]}),b.jsx(Em,{activate:t,onConfirm:y,onCancel:J}),b.jsx("div",{style:{height:t?"calc(100vh - 14.75rem)":"calc(100vh - 11.75rem)"},children:b.jsx(Wm,{"data-cy":"locales-list",style:{height:"100%",width:"100%"},children:[...r].sort(j=>j.isocode===a?-1:1).map((j,ae)=>{const Z=lr(j.isocode,d);return b.jsx(KA,{"data-cy":`locales-list-item-${Z==null?void 0:Z.isocode}`,primary:a,selected:n||e.includes(Z==null?void 0:Z.isocode),lang:Z,onSelect:k,selectMode:C,onRemove:D,onEdit:q},ae)})})})]})},UA=({onAddLocal:e})=>b.jsxs(Gn,{depth:1,"data-cy":"localization-empty-view",className:"flex flex-col justify-center items-center space-y-3 pb-[30%] w-full h-full text-inactive-text",children:[b.jsx(Oo,{className:"h-8 w-8"}),b.jsx("span",{className:"text-sm text-center",children:"No locale is available yet. Add a new one or import a locale."}),b.jsxs("div",{className:"flex flex-row items-center justify-center space-x-2",children:[b.jsxs(st,{"data-cy":"localization-empty-add-button",size:"lg",onClick:e,children:[b.jsx(Po,{className:"h-4 w-4"}),b.jsx("span",{className:"text-sm",children:"Add new Locale"})]}),b.jsx(Sm,{enable:!0,RenderTrigger:({onClick:t})=>b.jsxs(st,{onClick:t,size:"lg",children:[b.jsx(La,{className:"h-4 w-4"}),b.jsx("span",{className:"text-sm",children:"Import Locale"})]})})]})]}),qA=()=>{var s;const{userLanguages:e,addFirstLanguage:t,setAddFirstLanguage:n}=Yn(),r=(((s=e.supported)==null?void 0:s.length)??0)===0&&!t,a=()=>{n(!0)};return r?b.jsx(UA,{onAddLocal:a}):b.jsxs(Gn,{depth:1,className:Ft("flex flex-row w-full h-full",{"justify-center items-center":r}),children:[b.jsx(WA,{}),b.jsx(rw,{})]})},Cm=()=>b.jsx(uf,{children:b.jsx(qA,{})}),GA=()=>{const{modals:e,closeModal:t,editModal:n}=Qp();return b.jsx(b.Fragment,{children:e.map((i,r)=>b.jsx(we.Modal,{hasOverlay:r===0,...i,onClose:t,onEdit:n,container:dt()},i.id))})},Qi={keys:{},userLang:{primary:"",supported:[]}},$A=e=>{if(!e)return Qi;try{const t=JSON.parse(e);return{keys:(t==null?void 0:t.keys)??Qi.keys,userLang:(t==null?void 0:t.userLang)??Qi.userLang}}catch{return Qi}},JA=({onTabsChange:e,onI18nCurrentChange:t})=>{const n=$n(),i=(n==null?void 0:n.getTabs())||[],r=n==null?void 0:n.getI18nCurrent();return we.useDidMountEffect(()=>{e&&e(i)},[e,i]),we.useDidMountEffect(()=>{t&&r&&t(r)},[t,r]),b.jsxs(b.Fragment,{children:[b.jsx("div",{className:`relative h-screen z-10 overflow-hidden ${Ao.LOCALIZATION_EDITOR_SCOPE_CLASS}`,children:b.jsx(Cm,{})}),b.jsx(GA,{})]})},YA=({children:e})=>{const t=$n();return b.jsx(sf,{getSupportedLanguages:n=>(t==null?void 0:t.getSupportedLanguages(n))||Promise.resolve([]),i18nCurrent:t==null?void 0:t.getI18nCurrent(),activeTabPath:t==null?void 0:t.getActiveTabPath(),flagsForActiveTab:t==null?void 0:t.getFlagsByPath(t==null?void 0:t.getActiveTabPath()),children:e})},ZA=({userComponents:e,buildResolver:t,supportedLanguages:n,initialValue:i,onChange:r,...a})=>{const s=Xp(e,t,n),[l,u]=M.useState({}),c=M.useRef(Qi),d=M.useMemo(()=>$A(i),[i]);return M.useEffect(()=>{c.current=d},[d]),we.useDidMountEffect(()=>{if(!(!r||he.isEqual(l,c.current)))try{r==null||r(JSON.stringify(l)),c.current=l}catch{}},[l,r]),b.jsx(zp,{adapter:s,children:b.jsx(nf,{isI18nEnabled:!0,onI18nChange:u,children:b.jsx(YA,{children:b.jsx(we.TipsProvider,{children:b.jsx(JA,{...a})})})})})},XA=({tabs:e=[],i18nCurrent:t="",initialValue:n,...i})=>b.jsx(Zp,{tabs:e,i18nCurrent:t,initialI18nFile:n,children:b.jsx(ZA,{initialValue:n,...i})}),QA={supported:[{isocode:"af",locale:"Afrikaans",native:"Afrikaans",flag:"🇿🇦"},{isocode:"af-NA",locale:"Afrikaans (Namibie)",native:"Afrikaans (Namibië)",flag:"🇳🇦"},{isocode:"af-ZA",locale:"Afrikaans (South Africa)",native:"Afrikaans (Suid-Afrika)",flag:"🇿🇦"},{isocode:"agq",locale:"Aghem",native:"Aghem",flag:"🇨🇲"},{isocode:"agq-CM",locale:"Aghem (Cameroun)",native:"Aghem (Kàmàlûŋ)",flag:"🇨🇲"},{isocode:"ak",locale:"Akan",native:"Akan",flag:"🇬🇭"},{isocode:"ak-GH",locale:"Akan (Ghana)",native:"Akan (Gaana)",flag:"🇬🇭"},{isocode:"am",locale:"Amharique",native:"አማርኛ",flag:"🇪🇹"},{isocode:"am-ET",locale:"Amharique (Éthiopie)",native:"አማርኛ (ኢትዮጵያ)",flag:"🇪🇹"},{isocode:"ar",locale:"Arabic",native:"العربية",flag:"🇸🇦"},{isocode:"ar-001",locale:"Arabic (World)",native:"العربية (العالم)",flag:"🌍"},{isocode:"ar-AE",locale:"Arabic (Émirats arabes unis)",native:"العربية (الإمارات العربية المتحدة)",flag:"🇦🇪"},{isocode:"ar-BH",locale:"Arabic (Bahreïn)",native:"العربية (البحرين)",flag:"🇧🇭"},{isocode:"ar-DJ",locale:"Arabic (Djibouti)",native:"العربية (جيبوتي)",flag:"🇩🇯"},{isocode:"ar-DZ",locale:"Arabic (Algérie)",native:"العربية (الجزائر)",flag:"🇩🇿"},{isocode:"ar-EG",locale:"Arabic (Égypte)",native:"العربية (مصر)",flag:"🇪🇬"},{isocode:"ar-EH",locale:"Arabic (Sahara occidental)",native:"العربية (الصحراء الغربية)",flag:"🇪🇭"},{isocode:"ar-ER",locale:"Arabic (Érythrée)",native:"العربية (إريتريا)",flag:"🇪🇷"},{isocode:"ar-IL",locale:"Arabic (Israël)",native:"العربية (إسرائيل)",flag:"🇮🇱"},{isocode:"ar-IQ",locale:"Arabic (Irak)",native:"العربية (العراق)",flag:"🇮🇶"},{isocode:"ar-JO",locale:"Arabic (Jordanie)",native:"العربية (الأردن)",flag:"🇯🇴"},{isocode:"ar-KM",locale:"Arabic (Comores)",native:"العربية (جزر القمر)",flag:"🇰🇲"},{isocode:"ar-KW",locale:"Arabic (Koweït)",native:"العربية (الكويت)",flag:"🇰🇼"},{isocode:"ar-LB",locale:"Arabic (Liban)",native:"العربية (لبنان)",flag:"🇱🇧"},{isocode:"ar-LY",locale:"Arabic (Libye)",native:"العربية (ليبيا)",flag:"🇱🇾"},{isocode:"ar-MA",locale:"Arabic (Maroc)",native:"العربية (المغرب)",flag:"🇲🇦"},{isocode:"ar-MR",locale:"Arabic (Mauritanie)",native:"العربية (موريتانيا)",flag:"🇲🇷"},{isocode:"ar-OM",locale:"Arabic (Oman)",native:"العربية (عُمان)",flag:"🇴🇲"},{isocode:"ar-PS",locale:"Arabic (Territoires palestiniens)",native:"العربية (الأراضي الفلسطينية)",flag:"🇵🇸"},{isocode:"ar-QA",locale:"Arabic (Qatar)",native:"العربية (قطر)",flag:"🇶🇦"},{isocode:"ar-SA",locale:"Arabic (Arabie saoudite)",native:"العربية (المملكة العربية السعودية)",flag:"🇸🇦"},{isocode:"ar-SD",locale:"Arabic (Soudan)",native:"العربية (السودان)",flag:"🇸🇩"},{isocode:"ar-SO",locale:"Arabic (Somalie)",native:"العربية (الصومال)",flag:"🇸🇴"},{isocode:"ar-SS",locale:"Arabic (Soudan du Sud)",native:"العربية (جنوب السودان)",flag:"🇸🇸"},{isocode:"ar-SY",locale:"Arabic (Syrie)",native:"العربية (سوريا)",flag:"🇸🇾"},{isocode:"ar-TD",locale:"Arabic (Tchad)",native:"العربية (تشاد)",flag:"🇹🇩"},{isocode:"ar-TN",locale:"Arabic (Tunisie)",native:"العربية (تونس)",flag:"🇹🇳"},{isocode:"ar-YE",locale:"Arabic (Yémen)",native:"العربية (اليمن)",flag:"🇾🇪"},{isocode:"as",locale:"Assamais",native:"অসমীয়া",flag:"🇮🇳"},{isocode:"as-IN",locale:"Assamais (India)",native:"অসমীয়া (ভারত)",flag:"🇮🇳"},{isocode:"asa",locale:"Assou",native:"Kipare",flag:"🇹🇿"},{isocode:"asa-TZ",locale:"Assou (Tanzanie)",native:"Kipare (Tadhania)",flag:"🇹🇿"},{isocode:"ast",locale:"Asturien",native:"Asturianu",flag:"🇪🇸"},{isocode:"ast-ES",locale:"Asturien (Spain)",native:"Asturianu (España)",flag:"🇪🇸"},{isocode:"az",locale:"Azéri",native:"Azərbaycan",flag:"🇦🇿"},{isocode:"az-Cyrl",locale:"Azéri (cyrillique)",native:"азәрбајҹан (Кирил)",flag:"🇦🇿"},{isocode:"az-Cyrl-AZ",locale:"Azéri (cyrillique, Azerbaïdjan)",native:"азәрбајҹан (Кирил, Азәрбајҹан)",flag:"🇦🇿"},{isocode:"az-Latn",locale:"Azéri (latin)",native:"Azərbaycan (latın)",flag:"🇦🇿"},{isocode:"az-Latn-AZ",locale:"Azéri (latin, Azerbaïdjan)",native:"Azərbaycan (latın, Azərbaycan)",flag:"🇦🇿"},{isocode:"bas",locale:"Bassa",native:"Ɓàsàa",flag:"🇨🇲"},{isocode:"bas-CM",locale:"Bassa (Cameroun)",native:"Ɓàsàa (Kàmɛ̀rûn)",flag:"🇨🇲"},{isocode:"be",locale:"Biélorusse",native:"беларуская",flag:"🇧🇾"},{isocode:"be-BY",locale:"Biélorusse (Biélorussie)",native:"беларуская (Беларусь)",flag:"🇧🇾"},{isocode:"bem",locale:"Bemba",native:"Ichibemba",flag:"🇿🇲"},{isocode:"bem-ZM",locale:"Bemba (Zambie)",native:"Ichibemba (Zambia)",flag:"🇿🇲"},{isocode:"bez",locale:"Béna",native:"Hibena",flag:"🇹🇿"},{isocode:"bez-TZ",locale:"Béna (Tanzanie)",native:"Hibena (Hutanzania)",flag:"🇹🇿"},{isocode:"bg",locale:"Bulgare",native:"български",flag:"🇧🇬"},{isocode:"bg-BG",locale:"Bulgare (Bulgarie)",native:"български (България)",flag:"🇧🇬"},{isocode:"bm",locale:"Bambara",native:"Bamanakan",flag:"🇲🇱"},{isocode:"bm-ML",locale:"Bambara (Mali)",native:"Bamanakan (Mali)",flag:"🇲🇱"},{isocode:"bn",locale:"Bengali",native:"বাংলা",flag:"🇧🇩"},{isocode:"bn-BD",locale:"Bengali (Bangladesh)",native:"বাংলা (বাংলাদেশ)",flag:"🇧🇩"},{isocode:"bn-IN",locale:"Bengali (India)",native:"বাংলা (ভারত)",flag:"🇮🇳"},{isocode:"bo",locale:"Tibétain",native:"བོད་སྐད་",flag:"🇨🇳"},{isocode:"bo-CN",locale:"Tibétain (Chine)",native:"བོད་སྐད་ (རྒྱ་ནག)",flag:"🇨🇳"},{isocode:"bo-IN",locale:"Tibétain (India)",native:"བོད་སྐད་ (རྒྱ་གར་)",flag:"🇮🇳"},{isocode:"br",locale:"Breton",native:"Brezhoneg",flag:"🇫🇷"},{isocode:"br-FR",locale:"Breton (France)",native:"Brezhoneg (Frañs)",flag:"🇫🇷"},{isocode:"brx",locale:"Bodo",native:"बड़ो",flag:"🇮🇳"},{isocode:"brx-IN",locale:"Bodo (India)",native:"बड़ो (भारत)",flag:"🇮🇳"},{isocode:"bs",locale:"Bosniaque",native:"Bosanski",flag:"🇧🇦"},{isocode:"bs-Cyrl",locale:"Bosniaque (cyrillique)",native:"босански (ћирилица)",flag:"🇧🇦"},{isocode:"bs-Cyrl-BA",locale:"Bosniaque (cyrillique, Bosnie-Herzégovine)",native:"босански (ћирилица, Босна и Херцеговина)",flag:"🇧🇦"},{isocode:"bs-Latn",locale:"Bosniaque (latin)",native:"Bosanski (latinica)",flag:"🇧🇦"},{isocode:"bs-Latn-BA",locale:"Bosniaque (latin, Bosnie-Herzégovine)",native:"Bosanski (latinica, Bosna i Hercegovina)",flag:"🇧🇦"},{isocode:"ca",locale:"Catalan",native:"Català",flag:"🇪🇸"},{isocode:"ca-AD",locale:"Catalan (Andorre)",native:"Català (Andorra)",flag:"🇦🇩"},{isocode:"ca-ES",locale:"Catalan (Spain)",native:"Català (Espanya)",flag:"🇪🇸"},{isocode:"ca-FR",locale:"Catalan (France)",native:"Català (França)",flag:"🇫🇷"},{isocode:"ca-IT",locale:"Catalan (Italie)",native:"Català (Itàlia)",flag:"🇮🇹"},{isocode:"ccp",locale:"Ccp",native:"𑄌𑄋𑄴𑄟𑄳𑄦",flag:"🇧🇩"},{isocode:"ccp-BD",locale:"Ccp (Bangladesh)",native:"𑄌𑄋𑄴𑄟𑄳𑄦 (𑄝𑄁𑄣𑄘𑄬𑄌𑄴)",flag:"🇧🇩"},{isocode:"ccp-IN",locale:"Ccp (India)",native:"𑄌𑄋𑄴𑄟𑄳𑄦 (𑄞𑄢𑄧𑄖𑄴)",flag:"🇮🇳"},{isocode:"ce",locale:"Tchétchène",native:"нохчийн",flag:"🇷🇺"},{isocode:"ce-RU",locale:"Tchétchène (Russie)",native:"нохчийн (Росси)",flag:"🇷🇺"},{isocode:"cgg",locale:"Kiga",native:"Rukiga",flag:"🇺🇬"},{isocode:"cgg-UG",locale:"Kiga (Ouganda)",native:"Rukiga (Uganda)",flag:"🇺🇬"},{isocode:"chr",locale:"Cherokee",native:"ᏣᎳᎩ",flag:"🇺🇸"},{isocode:"chr-US",locale:"Cherokee (United States)",native:"ᏣᎳᎩ (ᏌᏊ ᎢᏳᎾᎵᏍᏔᏅ ᏍᎦᏚᎩ)",flag:"🇺🇸"},{isocode:"ckb",locale:"Sorani",native:"کوردیی ناوەندی",flag:"🇮🇶"},{isocode:"ckb-IQ",locale:"Sorani (Irak)",native:"کوردیی ناوەندی (عێراق)",flag:"🇮🇶"},{isocode:"ckb-IR",locale:"Sorani (Iran)",native:"کوردیی ناوەندی (ئێران)",flag:"🇮🇷"},{isocode:"cs",locale:"Tchèque",native:"čeština",flag:"🇨🇿"},{isocode:"cs-CZ",locale:"Tchèque (Tchéquie)",native:"čeština (Česko)",flag:"🇨🇿"},{isocode:"cy",locale:"Gallois",native:"Cymraeg",flag:"🏴"},{isocode:"cy-GB",locale:"Gallois (United Kingdom)",native:"Cymraeg (Y Deyrnas Unedig)",flag:"🇬🇧"},{isocode:"da",locale:"Danois",native:"Dansk",flag:"🇩🇰"},{isocode:"da-DK",locale:"Danois (Danemark)",native:"Dansk (Danmark)",flag:"🇩🇰"},{isocode:"da-GL",locale:"Danois (Groenland)",native:"Dansk (Grønland)",flag:"🇬🇱"},{isocode:"dav",locale:"Taita",native:"Kitaita",flag:"🇰🇪"},{isocode:"dav-KE",locale:"Taita (Kenya)",native:"Kitaita (Kenya)",flag:"🇰🇪"},{isocode:"de",locale:"German",native:"Deutsch",flag:"🇩🇪"},{isocode:"de-AT",locale:"German (Autriche)",native:"Deutsch (Österreich)",flag:"🇦🇹"},{isocode:"de-BE",locale:"German (Belgium)",native:"Deutsch (Belgien)",flag:"🇧🇪"},{isocode:"de-CH",locale:"German (Switzerland)",native:"Deutsch (Schweiz)",flag:"🇨🇭"},{isocode:"de-DE",locale:"German (Germany)",native:"Deutsch (Deutschland)",flag:"🇩🇪"},{isocode:"de-IT",locale:"German (Italie)",native:"Deutsch (Italien)",flag:"🇮🇹"},{isocode:"de-LI",locale:"German (Liechtenstein)",native:"Deutsch (Liechtenstein)",flag:"🇱🇮"},{isocode:"de-LU",locale:"German (Luxembourg)",native:"Deutsch (Luxemburg)",flag:"🇱🇺"},{isocode:"dje",locale:"Zarma",native:"Zarmaciine",flag:"🇳🇪"},{isocode:"dje-NE",locale:"Zarma (Niger)",native:"Zarmaciine (Nižer)",flag:"🇳🇪"},{isocode:"dsb",locale:"Bas-sorabe",native:"Dolnoserbšćina",flag:"🇩🇪"},{isocode:"dsb-DE",locale:"Bas-sorabe (Germany)",native:"Dolnoserbšćina (Nimska)",flag:"🇩🇪"},{isocode:"dua",locale:"Douala",native:"Duálá",flag:"🇨🇲"},{isocode:"dua-CM",locale:"Douala (Cameroun)",native:"Duálá (Cameroun)",flag:"🇨🇲"},{isocode:"dyo",locale:"Diola-fogny",native:"Joola",flag:"🇸🇳"},{isocode:"dyo-SN",locale:"Diola-fogny (Sénégal)",native:"Joola (Senegal)",flag:"🇸🇳"},{isocode:"dz",locale:"Dzongkha",native:"རྫོང་ཁ",flag:"🇧🇹"},{isocode:"dz-BT",locale:"Dzongkha (Bhoutan)",native:"རྫོང་ཁ། (འབྲུག།)",flag:"🇧🇹"},{isocode:"ebu",locale:"Embou",native:"Kĩembu",flag:"🇰🇪"},{isocode:"ebu-KE",locale:"Embou (Kenya)",native:"Kĩembu (Kenya)",flag:"🇰🇪"},{isocode:"ee",locale:"Éwé",native:"Eʋegbe",flag:"🇬🇭"},{isocode:"ee-GH",locale:"Éwé (Ghana)",native:"Eʋegbe (Ghana nutome)",flag:"🇬🇭"},{isocode:"ee-TG",locale:"Éwé (Togo)",native:"Eʋegbe (Togo nutome)",flag:"🇹🇬"},{isocode:"el",locale:"Grec",native:"Ελληνικά",flag:"🇬🇷"},{isocode:"el-CY",locale:"Grec (Chypre)",native:"Ελληνικά (Κύπρος)",flag:"🇨🇾"},{isocode:"el-GR",locale:"Grec (Grèce)",native:"Ελληνικά (Ελλάδα)",flag:"🇬🇷"},{isocode:"en",locale:"English",native:"English",flag:"🇬🇧"},{isocode:"en-001",locale:"English (World)",native:"English (World)",flag:"🌍"},{isocode:"en-150",locale:"English (Europe)",native:"English (Europe)",flag:"🇪🇺"},{isocode:"en-AG",locale:"English (Antigua-et-Barbuda)",native:"English (Antigua & Barbuda)",flag:"🇦🇬"},{isocode:"en-AI",locale:"English (Anguilla)",native:"English (Anguilla)",flag:"🇦🇮"},{isocode:"en-AS",locale:"English (Samoa américaines)",native:"English (American Samoa)",flag:"🇦🇸"},{isocode:"en-AT",locale:"English (Autriche)",native:"English (Austria)",flag:"🇦🇹"},{isocode:"en-AU",locale:"English (Australia)",native:"English (Australia)",flag:"🇦🇺"},{isocode:"en-BB",locale:"English (Barbade)",native:"English (Barbados)",flag:"🇧🇧"},{isocode:"en-BE",locale:"English (Belgium)",native:"English (Belgium)",flag:"🇧🇪"},{isocode:"en-BI",locale:"English (Burundi)",native:"English (Burundi)",flag:"🇧🇮"},{isocode:"en-BM",locale:"English (Bermudes)",native:"English (Bermuda)",flag:"🇧🇲"},{isocode:"en-BS",locale:"English (Bahamas)",native:"English (Bahamas)",flag:"🇧🇸"},{isocode:"en-BW",locale:"English (Botswana)",native:"English (Botswana)",flag:"🇧🇼"},{isocode:"en-BZ",locale:"English (Belize)",native:"English (Belize)",flag:"🇧🇿"},{isocode:"en-CA",locale:"English (Canada)",native:"English (Canada)",flag:"🇨🇦"},{isocode:"en-CC",locale:"English (Îles Cocos)",native:"English (Cocos [Keeling] Islands)",flag:"🇨🇨"},{isocode:"en-CH",locale:"English (Switzerland)",native:"English (Switzerland)",flag:"🇨🇭"},{isocode:"en-CK",locale:"English (Îles Cook)",native:"English (Cook Islands)",flag:"🇨🇰"},{isocode:"en-CM",locale:"English (Cameroun)",native:"English (Cameroon)",flag:"🇨🇲"},{isocode:"en-CX",locale:"English (Île Christmas)",native:"English (Christmas Island)",flag:"🇨🇽"},{isocode:"en-CY",locale:"English (Chypre)",native:"English (Cyprus)",flag:"🇨🇾"},{isocode:"en-DE",locale:"English (Germany)",native:"English (Germany)",flag:"🇩🇪"},{isocode:"en-DG",locale:"English (Diego Garcia)",native:"English (Diego Garcia)",flag:"🇩🇬"},{isocode:"en-DK",locale:"English (Danemark)",native:"English (Denmark)",flag:"🇩🇰"},{isocode:"en-DM",locale:"English (Dominique)",native:"English (Dominica)",flag:"🇩🇲"},{isocode:"en-ER",locale:"English (Érythrée)",native:"English (Eritrea)",flag:"🇪🇷"},{isocode:"en-FI",locale:"English (Finlande)",native:"English (Finland)",flag:"🇫🇮"},{isocode:"en-FJ",locale:"English (Fidji)",native:"English (Fiji)",flag:"🇫🇯"},{isocode:"en-FK",locale:"English (Îles Malouines)",native:"English (Falkland Islands)",flag:"🇫🇰"},{isocode:"en-FM",locale:"English (États fédérés de Micronésie)",native:"English (Micronesia)",flag:"🇫🇲"},{isocode:"en-GB",locale:"English (United Kingdom)",native:"English (United Kingdom)",flag:"🇬🇧"},{isocode:"en-GD",locale:"English (Grenade)",native:"English (Grenada)",flag:"🇬🇩"},{isocode:"en-GG",locale:"English (Guernesey)",native:"English (Guernsey)",flag:"🇬🇬"},{isocode:"en-GH",locale:"English (Ghana)",native:"English (Ghana)",flag:"🇬🇭"},{isocode:"en-GI",locale:"English (Gibraltar)",native:"English (Gibraltar)",flag:"🇬🇮"},{isocode:"en-GM",locale:"English (Gambie)",native:"English (Gambia)",flag:"🇬🇲"},{isocode:"en-GU",locale:"English (Guam)",native:"English (Guam)",flag:"🇬🇺"},{isocode:"en-GY",locale:"English (Guyana)",native:"English (Guyana)",flag:"🇬🇾"},{isocode:"en-HK",locale:"English (R.A.S. chinoise de Hong Kong)",native:"English (Hong Kong SAR China)",flag:"🇭🇰"},{isocode:"en-IE",locale:"English (Irlande)",native:"English (Ireland)",flag:"🇮🇪"},{isocode:"en-IL",locale:"English (Israël)",native:"English (Israel)",flag:"🇮🇱"},{isocode:"en-IM",locale:"English (Île de Man)",native:"English (Isle of Man)",flag:"🇮🇲"},{isocode:"en-IN",locale:"English (India)",native:"English (India)",flag:"🇮🇳"},{isocode:"en-IO",locale:"English (Territoire britannique de l'océan Indien)",native:"English (British Indian Ocean Territory)",flag:"🇮🇴"},{isocode:"en-JE",locale:"English (Jersey)",native:"English (Jersey)",flag:"🇯🇪"},{isocode:"en-JM",locale:"English (Jamaïque)",native:"English (Jamaica)",flag:"🇯🇲"},{isocode:"en-KE",locale:"English (Kenya)",native:"English (Kenya)",flag:"🇰🇪"},{isocode:"en-KI",locale:"English (Kiribati)",native:"English (Kiribati)",flag:"🇰🇮"},{isocode:"en-KN",locale:"English (Saint-Christophe-et-Niévès)",native:"English (St. Kitts & Nevis)",flag:"🇰🇳"},{isocode:"en-KY",locale:"English (Îles Caïmans)",native:"English (Cayman Islands)",flag:"🇰🇾"},{isocode:"en-LC",locale:"English (Sainte-Lucie)",native:"English (St. Lucia)",flag:"🇱🇨"},{isocode:"en-LR",locale:"English (Libéria)",native:"English (Liberia)",flag:"🇱🇷"},{isocode:"en-LS",locale:"English (Lesotho)",native:"English (Lesotho)",flag:"🇱🇸"},{isocode:"en-MG",locale:"English (Madagascar)",native:"English (Madagascar)",flag:"🇲🇬"},{isocode:"en-MH",locale:"English (Îles Marshall)",native:"English (Marshall Islands)",flag:"🇲🇭"},{isocode:"en-MO",locale:"English (R.A.S. chinoise de Macao)",native:"English (Macau SAR China)",flag:"🇲🇴"},{isocode:"en-MP",locale:"English (Îles Mariannes du Nord)",native:"English (Northern Mariana Islands)",flag:"🇲🇵"},{isocode:"en-MS",locale:"English (Montserrat)",native:"English (Montserrat)",flag:"🇲🇸"},{isocode:"en-MT",locale:"English (Malte)",native:"English (Malta)",flag:"🇲🇹"},{isocode:"en-MU",locale:"English (Maurice)",native:"English (Mauritius)",flag:"🇲🇺"},{isocode:"en-MW",locale:"English (Malawi)",native:"English (Malawi)",flag:"🇲🇼"},{isocode:"en-MY",locale:"English (Malaisie)",native:"English (Malaysia)",flag:"🇲🇾"},{isocode:"en-NA",locale:"English (Namibie)",native:"English (Namibia)",flag:"🇳🇦"},{isocode:"en-NF",locale:"English (Île Norfolk)",native:"English (Norfolk Island)",flag:"🇳🇫"},{isocode:"en-NG",locale:"English (Nigéria)",native:"English (Nigeria)",flag:"🇳🇬"},{isocode:"en-NL",locale:"English (Pays-Bas)",native:"English (Netherlands)",flag:"🇳🇱"},{isocode:"en-NR",locale:"English (Nauru)",native:"English (Nauru)",flag:"🇳🇷"},{isocode:"en-NU",locale:"English (Niue)",native:"English (Niue)",flag:"🇳🇺"},{isocode:"en-NZ",locale:"English (New Zealand)",native:"English (New Zealand)",flag:"🇳🇿"},{isocode:"en-PG",locale:"English (Papouasie-Nouvelle-Guinée)",native:"English (Papua New Guinea)",flag:"🇵🇬"},{isocode:"en-PH",locale:"English (Philippines)",native:"English (Philippines)",flag:"🇵🇭"},{isocode:"en-PK",locale:"English (Pakistan)",native:"English (Pakistan)",flag:"🇵🇰"},{isocode:"en-PN",locale:"English (Îles Pitcairn)",native:"English (Pitcairn Islands)",flag:"🇵🇳"},{isocode:"en-PR",locale:"English (Porto Rico)",native:"English (Puerto Rico)",flag:"🇵🇷"},{isocode:"en-PW",locale:"English (Palaos)",native:"English (Palau)",flag:"🇵🇼"},{isocode:"en-RW",locale:"English (Rwanda)",native:"English (Rwanda)",flag:"🇷🇼"},{isocode:"en-SB",locale:"English (Îles Salomon)",native:"English (Solomon Islands)",flag:"🇸🇧"},{isocode:"en-SC",locale:"English (Seychelles)",native:"English (Seychelles)",flag:"🇸🇨"},{isocode:"en-SD",locale:"English (Soudan)",native:"English (Sudan)",flag:"🇸🇩"},{isocode:"en-SE",locale:"English (Suède)",native:"English (Sweden)",flag:"🇸🇪"},{isocode:"en-SG",locale:"English (Singapour)",native:"English (Singapore)",flag:"🇸🇬"},{isocode:"en-SH",locale:"English (Sainte-Hélène)",native:"English (St. Helena)",flag:"🇸🇭"},{isocode:"en-SI",locale:"English (Slovénie)",native:"English (Slovenia)",flag:"🇸🇮"},{isocode:"en-SL",locale:"English (Sierra Leone)",native:"English (Sierra Leone)",flag:"🇸🇱"},{isocode:"en-SS",locale:"English (Soudan du Sud)",native:"English (South Sudan)",flag:"🇸🇸"},{isocode:"en-SX",locale:"English (Saint-Martin [partie néerlandaise])",native:"English (Sint Maarten)",flag:"🇸🇽"},{isocode:"en-SZ",locale:"English (Swaziland)",native:"English (Swaziland)",flag:"🇸🇿"},{isocode:"en-TC",locale:"English (Îles Turques-et-Caïques)",native:"English (Turks & Caicos Islands)",flag:"🇹🇨"},{isocode:"en-TK",locale:"English (Tokélaou)",native:"English (Tokelau)",flag:"🇹🇰"},{isocode:"en-TO",locale:"English (Tonga)",native:"English (Tonga)",flag:"🇹🇴"},{isocode:"en-TT",locale:"English (Trinité-et-Tobago)",native:"English (Trinidad & Tobago)",flag:"🇹🇹"},{isocode:"en-TV",locale:"English (Tuvalu)",native:"English (Tuvalu)",flag:"🇹🇻"},{isocode:"en-TZ",locale:"English (Tanzanie)",native:"English (Tanzania)",flag:"🇹🇿"},{isocode:"en-UG",locale:"English (Ouganda)",native:"English (Uganda)",flag:"🇺🇬"},{isocode:"en-UM",locale:"English (Îles mineures éloignées des United States)",native:"English (U.S. Outlying Islands)",flag:"🇺🇲"},{isocode:"en-US",locale:"English (United States)",native:"English (United States)",flag:"🇺🇸"},{isocode:"en-US-POSIX",locale:"English (United States, Computer)",native:"English (United States, Computer)",flag:"💻"},{isocode:"en-VC",locale:"English (Saint-Vincent-et-les-Grenadines)",native:"English (St. Vincent & Grenadines)",flag:"🇻🇨"},{isocode:"en-VG",locale:"English (Îles Vierges britanniques)",native:"English (British Virgin Islands)",flag:"🇻🇬"},{isocode:"en-VI",locale:"English (Îles Vierges des United States)",native:"English (U.S. Virgin Islands)",flag:"🇻🇮"},{isocode:"en-VU",locale:"English (Vanuatu)",native:"English (Vanuatu)",flag:"🇻🇺"},{isocode:"en-WS",locale:"English (Samoa)",native:"English (Samoa)",flag:"🇼🇸"},{isocode:"en-ZA",locale:"English (South Africa)",native:"English (South Africa)",flag:"🇿🇦"},{isocode:"en-ZM",locale:"English (Zambie)",native:"English (Zambia)",flag:"🇿🇲"},{isocode:"en-ZW",locale:"English (Zimbabwe)",native:"English (Zimbabwe)",flag:"🇿🇼"},{isocode:"eo",locale:"Espéranto",native:"Esperanto",flag:"🌍"},{isocode:"es",locale:"Espagnol",native:"Español",flag:"🇪🇸"},{isocode:"es-419",locale:"Espagnol (Latin America)",native:"Español (Latinoamérica)",flag:"🌎"},{isocode:"es-AR",locale:"Espagnol (Argentine)",native:"Español (Argentina)",flag:"🇦🇷"},{isocode:"es-BO",locale:"Espagnol (Bolivie)",native:"Español (Bolivia)",flag:"🇧🇴"},{isocode:"es-BR",locale:"Espagnol (Brazil)",native:"Español (Brasil)",flag:"🇧🇷"},{isocode:"es-BZ",locale:"Espagnol (Belize)",native:"Español (Belice)",flag:"🇧🇿"},{isocode:"es-CL",locale:"Espagnol (Chili)",native:"Español (Chile)",flag:"🇨🇱"},{isocode:"es-CO",locale:"Espagnol (Colombie)",native:"Español (Colombia)",flag:"🇨🇴"},{isocode:"es-CR",locale:"Espagnol (Costa Rica)",native:"Español (Costa Rica)",flag:"🇨🇷"},{isocode:"es-CU",locale:"Espagnol (Cuba)",native:"Español (Cuba)",flag:"🇨🇺"},{isocode:"es-DO",locale:"Espagnol (République dominicaine)",native:"Español (República Dominicana)",flag:"🇩🇴"},{isocode:"es-EA",locale:"Espagnol (Ceuta et Melilla)",native:"Español (Ceuta y Melilla)",flag:"🇪🇦"},{isocode:"es-EC",locale:"Espagnol (Équateur)",native:"Español (Ecuador)",flag:"🇪🇨"},{isocode:"es-ES",locale:"Espagnol (Spain)",native:"Español (España)",flag:"🇪🇸"},{isocode:"es-GQ",locale:"Espagnol (Guinée équatoriale)",native:"Español (Guinea Ecuatorial)",flag:"🇬🇶"},{isocode:"es-GT",locale:"Espagnol (Guatemala)",native:"Español (Guatemala)",flag:"🇬🇹"},{isocode:"es-HN",locale:"Espagnol (Honduras)",native:"Español (Honduras)",flag:"🇭🇳"},{isocode:"es-IC",locale:"Espagnol (Îles Canaries)",native:"Español (Canarias)",flag:"🇮🇨"},{isocode:"es-MX",locale:"Espagnol (Mexico)",native:"Español (México)",flag:"🇲🇽"},{isocode:"es-NI",locale:"Espagnol (Nicaragua)",native:"Español (Nicaragua)",flag:"🇳🇮"},{isocode:"es-PA",locale:"Espagnol (Panama)",native:"Español (Panamá)",flag:"🇵🇦"},{isocode:"es-PE",locale:"Espagnol (Pérou)",native:"Español (Perú)",flag:"🇵🇪"},{isocode:"es-PH",locale:"Espagnol (Philippines)",native:"Español (Filipinas)",flag:"🇵🇭"},{isocode:"es-PR",locale:"Espagnol (Porto Rico)",native:"Español (Puerto Rico)",flag:"🇵🇷"},{isocode:"es-PY",locale:"Espagnol (Paraguay)",native:"Español (Paraguay)",flag:"🇵🇾"},{isocode:"es-SV",locale:"Espagnol (Salvador)",native:"Español (El Salvador)",flag:"🇸🇻"},{isocode:"es-US",locale:"Espagnol (United States)",native:"Español (Estados Unidos)",flag:"🇺🇸"},{isocode:"es-UY",locale:"Espagnol (Uruguay)",native:"Español (Uruguay)",flag:"🇺🇾"},{isocode:"es-VE",locale:"Espagnol (Venezuela)",native:"Español (Venezuela)",flag:"🇻🇪"},{isocode:"et",locale:"Estonien",native:"Eesti",flag:"🇪🇪"},{isocode:"et-EE",locale:"Estonien (Estonie)",native:"Eesti (Eesti)",flag:"🇪🇪"},{isocode:"eu",locale:"Basque",native:"Euskara",flag:"🇪🇸"},{isocode:"eu-ES",locale:"Basque (Spain)",native:"Euskara (Espainia)",flag:"🇪🇸"},{isocode:"ewo",locale:"Éwondo",native:"Ewondo",flag:"🇨🇲"},{isocode:"ewo-CM",locale:"Éwondo (Cameroun)",native:"Ewondo (Kamərún)",flag:"🇨🇲"},{isocode:"fa",locale:"Persan",native:"فارسی",flag:"🇮🇷"},{isocode:"fa-AF",locale:"Persan (Afghanistan)",native:"فارسی (افغانستان)",flag:"🇦🇫"},{isocode:"fa-IR",locale:"Persan (Iran)",native:"فارسی (ایران)",flag:"🇮🇷"},{isocode:"ff",locale:"Peul",native:"Pulaar",flag:"🇸🇳"},{isocode:"ff-CM",locale:"Peul (Cameroun)",native:"Pulaar (Kameruun)",flag:"🇨🇲"},{isocode:"ff-GN",locale:"Peul (Guinée)",native:"Pulaar (Gine)",flag:"🇬🇳"},{isocode:"ff-MR",locale:"Peul (Mauritanie)",native:"Pulaar (Muritani)",flag:"🇲🇷"},{isocode:"ff-SN",locale:"Peul (Sénégal)",native:"Pulaar (Senegaal)",flag:"🇸🇳"},{isocode:"fi",locale:"Finnois",native:"Suomi",flag:"🇫🇮"},{isocode:"fi-FI",locale:"Finnois (Finlande)",native:"Suomi (Suomi)",flag:"🇫🇮"},{isocode:"fil",locale:"Filipino",native:"Filipino",flag:"🇵🇭"},{isocode:"fil-PH",locale:"Filipino (Philippines)",native:"Filipino (Pilipinas)",flag:"🇵🇭"},{isocode:"fo",locale:"Féroïen",native:"Føroyskt",flag:"🇫🇴"},{isocode:"fo-DK",locale:"Féroïen (Danemark)",native:"Føroyskt (Danmark)",flag:"🇩🇰"},{isocode:"fo-FO",locale:"Féroïen (Îles Féroé)",native:"Føroyskt (Føroyar)",flag:"🇫🇴"},{isocode:"fr",locale:"French",native:"Français",flag:"🇫🇷"},{isocode:"fr-BE",locale:"French (Belgium)",native:"Français (Belgique)",flag:"🇧🇪"},{isocode:"fr-BF",locale:"French (Burkina Faso)",native:"Français (Burkina Faso)",flag:"🇧🇫"},{isocode:"fr-BI",locale:"French (Burundi)",native:"Français (Burundi)",flag:"🇧🇮"},{isocode:"fr-BJ",locale:"French (Bénin)",native:"Français (Bénin)",flag:"🇧🇯"},{isocode:"fr-BL",locale:"French (Saint-Barthélemy)",native:"Français (Saint-Barthélemy)",flag:"🇧🇱"},{isocode:"fr-CA",locale:"French (Canada)",native:"Français (Canada)",flag:"🇨🇦"},{isocode:"fr-CD",locale:"French (Congo-Kinshasa)",native:"Français (Congo-Kinshasa)",flag:"🇨🇩"},{isocode:"fr-CF",locale:"French (République centrafricaine)",native:"Français (République centrafricaine)",flag:"🇨🇫"},{isocode:"fr-CG",locale:"French (Congo-Brazzaville)",native:"Français (Congo-Brazzaville)",flag:"🇨🇬"},{isocode:"fr-CH",locale:"French (Switzerland)",native:"Français (Suisse)",flag:"🇨🇭"},{isocode:"fr-CI",locale:"French (Côte d'Ivoire)",native:"Français (Côte d'Ivoire)",flag:"🇨🇮"},{isocode:"fr-CM",locale:"French (Cameroun)",native:"Français (Cameroun)",flag:"🇨🇲"},{isocode:"fr-DJ",locale:"French (Djibouti)",native:"Français (Djibouti)",flag:"🇩🇯"},{isocode:"fr-DZ",locale:"French (Algérie)",native:"Français (Algérie)",flag:"🇩🇿"},{isocode:"fr-FR",locale:"French (France)",native:"Français (France)",flag:"🇫🇷"},{isocode:"fr-GA",locale:"French (Gabon)",native:"Français (Gabon)",flag:"🇬🇦"},{isocode:"fr-GF",locale:"French (Guyane française)",native:"Français (Guyane française)",flag:"🇬🇫"},{isocode:"fr-GN",locale:"French (Guinée)",native:"Français (Guinée)",flag:"🇬🇳"},{isocode:"fr-GP",locale:"French (Guadeloupe)",native:"Français (Guadeloupe)",flag:"🇬🇵"},{isocode:"fr-GQ",locale:"French (Guinée équatoriale)",native:"Français (Guinée équatoriale)",flag:"🇬🇶"},{isocode:"fr-HT",locale:"French (Haïti)",native:"Français (Haïti)",flag:"🇭🇹"},{isocode:"fr-KM",locale:"French (Comores)",native:"Français (Comores)",flag:"🇰🇲"},{isocode:"fr-LU",locale:"French (Luxembourg)",native:"Français (Luxembourg)",flag:"🇱🇺"},{isocode:"fr-MA",locale:"French (Maroc)",native:"Français (Maroc)",flag:"🇲🇦"},{isocode:"fr-MC",locale:"French (Monaco)",native:"Français (Monaco)",flag:"🇲🇨"},{isocode:"fr-MF",locale:"French (Saint-Martin)",native:"Français (Saint-Martin)",flag:"🇲🇫"},{isocode:"fr-MG",locale:"French (Madagascar)",native:"Français (Madagascar)",flag:"🇲🇬"},{isocode:"fr-ML",locale:"French (Mali)",native:"Français (Mali)",flag:"🇲🇱"},{isocode:"fr-MQ",locale:"French (Martinique)",native:"Français (Martinique)",flag:"🇲🇶"},{isocode:"fr-MR",locale:"French (Mauritanie)",native:"Français (Mauritanie)",flag:"🇲🇷"},{isocode:"fr-MU",locale:"French (Maurice)",native:"Français (Maurice)",flag:"🇲🇺"},{isocode:"fr-NC",locale:"French (Nouvelle-Calédonie)",native:"Français (Nouvelle-Calédonie)",flag:"🇳🇨"},{isocode:"fr-NE",locale:"French (Niger)",native:"Français (Niger)",flag:"🇳🇪"},{isocode:"fr-PF",locale:"French (Polynésie française)",native:"Français (Polynésie française)",flag:"🇵🇫"},{isocode:"fr-PM",locale:"French (Saint-Pierre-et-Miquelon)",native:"Français (Saint-Pierre-et-Miquelon)",flag:"🇵🇲"},{isocode:"fr-RE",locale:"French (La Réunion)",native:"Français (La Réunion)",flag:"🇷🇪"},{isocode:"fr-RW",locale:"French (Rwanda)",native:"Français (Rwanda)",flag:"🇷🇼"},{isocode:"fr-SC",locale:"French (Seychelles)",native:"Français (Seychelles)",flag:"🇸🇨"},{isocode:"fr-SN",locale:"French (Sénégal)",native:"Français (Sénégal)",flag:"🇸🇳"},{isocode:"fr-SY",locale:"French (Syrie)",native:"Français (Syrie)",flag:"🇸🇾"},{isocode:"fr-TD",locale:"French (Tchad)",native:"Français (Tchad)",flag:"🇹🇩"},{isocode:"fr-TG",locale:"French (Togo)",native:"Français (Togo)",flag:"🇹🇬"},{isocode:"fr-TN",locale:"French (Tunisie)",native:"Français (Tunisie)",flag:"🇹🇳"},{isocode:"fr-VU",locale:"French (Vanuatu)",native:"Français (Vanuatu)",flag:"🇻🇺"},{isocode:"fr-WF",locale:"French (Wallis-et-Futuna)",native:"Français (Wallis-et-Futuna)",flag:"🇼🇫"},{isocode:"fr-YT",locale:"French (Mayotte)",native:"Français (Mayotte)",flag:"🇾🇹"},{isocode:"fur",locale:"Frioulan",native:"Furlan",flag:"🇮🇹"},{isocode:"fur-IT",locale:"Frioulan (Italie)",native:"Furlan (Italie)",flag:"🇮🇹"},{isocode:"fy",locale:"Frison occidental",native:"Frysk",flag:"🇳🇱"},{isocode:"fy-NL",locale:"Frison occidental (Pays-Bas)",native:"Frysk (Nederlân)",flag:"🇳🇱"},{isocode:"ga",locale:"Irlandais",native:"Gaeilge",flag:"🇮🇪"},{isocode:"ga-IE",locale:"Irlandais (Irlande)",native:"Gaeilge (Éire)",flag:"🇮🇪"},{isocode:"gd",locale:"Gaélique écossais",native:"Gàidhlig",flag:"🏴"},{isocode:"gd-GB",locale:"Gaélique écossais (United Kingdom)",native:"Gàidhlig (An Rìoghachd Aonaichte)",flag:"🇬🇧"},{isocode:"gl",locale:"Galicien",native:"Galego",flag:"🇪🇸"},{isocode:"gl-ES",locale:"Galicien (Spain)",native:"Galego (España)",flag:"🇪🇸"},{isocode:"gsw",locale:"Switzerland German",native:"Schwiizertüütsch",flag:"🇨🇭"},{isocode:"gsw-CH",locale:"Switzerland German (Switzerland)",native:"Schwiizertüütsch (Schwiiz)",flag:"🇨🇭"},{isocode:"gsw-FR",locale:"Switzerland German (France)",native:"Schwiizertüütsch (Frankriich)",flag:"🇫🇷"},{isocode:"gsw-LI",locale:"Switzerland German (Liechtenstein)",native:"Schwiizertüütsch (Liächteschtäi)",flag:"🇱🇮"},{isocode:"gu",locale:"Goudjerati",native:"ગુજરાતી",flag:"🇮🇳"},{isocode:"gu-IN",locale:"Goudjerati (India)",native:"ગુજરાતી (ભારત)",flag:"🇮🇳"},{isocode:"guz",locale:"Gusii",native:"Ekegusii",flag:"🇰🇪"},{isocode:"guz-KE",locale:"Gusii (Kenya)",native:"Ekegusii (Kenya)",flag:"🇰🇪"},{isocode:"gv",locale:"Mannois",native:"Gaelg",flag:"🇮🇲"},{isocode:"gv-IM",locale:"Mannois (Île de Man)",native:"Gaelg (Ellan Vannin)",flag:"🇮🇲"},{isocode:"ha",locale:"Haoussa",native:"Hausa",flag:"🇳🇬"},{isocode:"ha-GH",locale:"Haoussa (Ghana)",native:"Hausa (Gana)",flag:"🇬🇭"},{isocode:"ha-NE",locale:"Haoussa (Niger)",native:"Hausa (Nijar)",flag:"🇳🇪"},{isocode:"ha-NG",locale:"Haoussa (Nigéria)",native:"Hausa (Najeriya)",flag:"🇳🇬"},{isocode:"haw",locale:"Hawaïen",native:"ʻŌlelo Hawaiʻi",flag:"🇺🇸"},{isocode:"haw-US",locale:"Hawaïen (United States)",native:"ʻŌlelo Hawaiʻi (ʻAmelika Hui Pū ʻIa)",flag:"🇺🇸"},{isocode:"he",locale:"Hébreu",native:"עברית",flag:"🇮🇱"},{isocode:"he-IL",locale:"Hébreu (Israël)",native:"עברית (ישראל)",flag:"🇮🇱"},{isocode:"hi",locale:"Hindi",native:"हिन्दी",flag:"🇮🇳"},{isocode:"hi-IN",locale:"Hindi (India)",native:"हिन्दी (भारत)",flag:"🇮🇳"},{isocode:"hr",locale:"Croate",native:"Hrvatski",flag:"🇭🇷"},{isocode:"hr-BA",locale:"Croate (Bosnie-Herzégovine)",native:"Hrvatski (Bosna i Hercegovina)",flag:"🇧🇦"},{isocode:"hr-HR",locale:"Croate (Croatie)",native:"Hrvatski (Hrvatska)",flag:"🇭🇷"},{isocode:"hsb",locale:"Haut-sorabe",native:"Hornjoserbšćina",flag:"🇩🇪"},{isocode:"hsb-DE",locale:"Haut-sorabe (Germany)",native:"Hornjoserbšćina (Němska)",flag:"🇩🇪"},{isocode:"hu",locale:"Hongrois",native:"Magyar",flag:"🇭🇺"},{isocode:"hu-HU",locale:"Hongrois (Hongrie)",native:"Magyar (Magyarország)",flag:"🇭🇺"},{isocode:"hy",locale:"Arménien",native:"հայերեն",flag:"🇦🇲"},{isocode:"hy-AM",locale:"Arménien (Arménie)",native:"հայերեն (Հայաստան)",flag:"🇦🇲"},{isocode:"id",locale:"Indonésien",native:"Indonesia",flag:"🇮🇩"},{isocode:"id-ID",locale:"Indonésien (Indonésie)",native:"Indonesia (Indonesia)",flag:"🇮🇩"},{isocode:"ig",locale:"Igbo",native:"Igbo",flag:"🇳🇬"},{isocode:"ig-NG",locale:"Igbo (Nigéria)",native:"Igbo (Naịjịrịa)",flag:"🇳🇬"},{isocode:"ii",locale:"Yi du Sichuan",native:"ꆈꌠꉙ",flag:"🇨🇳"},{isocode:"ii-CN",locale:"Yi du Sichuan (Chine)",native:"ꆈꌠꉙ (ꍏꇩ)",flag:"🇨🇳"},{isocode:"is",locale:"Islandais",native:"íslenska",flag:"🇮🇸"},{isocode:"is-IS",locale:"Islandais (Islande)",native:"íslenska (Ísland)",flag:"🇮🇸"},{isocode:"it",locale:"Italian",native:"Italiano",flag:"🇮🇹"},{isocode:"it-CH",locale:"Italian (Switzerland)",native:"Italiano (Svizzera)",flag:"🇨🇭"},{isocode:"it-IT",locale:"Italian (Italie)",native:"Italiano (Italia)",flag:"🇮🇹"},{isocode:"it-SM",locale:"Italian (Saint-Marin)",native:"Italiano (San Marino)",flag:"🇸🇲"},{isocode:"it-VA",locale:"Italian (État de la Cité du Vatican)",native:"Italiano (Città del Vaticano)",flag:"🇻🇦"},{isocode:"ja",locale:"Japonais",native:"日本語",flag:"🇯🇵"},{isocode:"ja-JP",locale:"Japonais (Japan)",native:"日本語 (日本)",flag:"🇯🇵"},{isocode:"jgo",locale:"Ngomba",native:"Ndaꞌa",flag:"🇨🇲"},{isocode:"jgo-CM",locale:"Ngomba (Cameroun)",native:"Ndaꞌa (Kamɛlûn)",flag:"🇨🇲"},{isocode:"jmc",locale:"Matchamé",native:"Kimachame",flag:"🇹🇿"},{isocode:"jmc-TZ",locale:"Matchamé (Tanzanie)",native:"Kimachame (Tanzania)",flag:"🇹🇿"},{isocode:"ka",locale:"Géorgien",native:"ქართული",flag:"🇬🇪"},{isocode:"ka-GE",locale:"Géorgien (Géorgie)",native:"ქართული (საქართველო)",flag:"🇬🇪"},{isocode:"kab",locale:"Kabyle",native:"Taqbaylit",flag:"🇩🇿"},{isocode:"kab-DZ",locale:"Kabyle (Algérie)",native:"Taqbaylit (Lezzayer)",flag:"🇩🇿"},{isocode:"kam",locale:"Kamba",native:"Kikamba",flag:"🇰🇪"},{isocode:"kam-KE",locale:"Kamba (Kenya)",native:"Kikamba (Kenya)",flag:"🇰🇪"},{isocode:"kde",locale:"Makondé",native:"Chimakonde",flag:"🇹🇿"},{isocode:"kde-TZ",locale:"Makondé (Tanzanie)",native:"Chimakonde (Tanzania)",flag:"🇹🇿"},{isocode:"kea",locale:"Capverdien",native:"Kabuverdianu",flag:"🇨🇻"},{isocode:"kea-CV",locale:"Capverdien (Cap-Vert)",native:"Kabuverdianu (Kabu Verdi)",flag:"🇨🇻"},{isocode:"khq",locale:"Koyra chiini",native:"Koyra ciini",flag:"🇲🇱"},{isocode:"khq-ML",locale:"Koyra chiini (Mali)",native:"Koyra ciini (Maali)",flag:"🇲🇱"},{isocode:"ki",locale:"Kikuyu",native:"Gikuyu",flag:"🇰🇪"},{isocode:"ki-KE",locale:"Kikuyu (Kenya)",native:"Gikuyu (Kenya)",flag:"🇰🇪"},{isocode:"kk",locale:"Kazakh",native:"қазақ тілі",flag:"🇰🇿"},{isocode:"kk-KZ",locale:"Kazakh (Kazakhstan)",native:"қазақ тілі (Қазақстан)",flag:"🇰🇿"},{isocode:"kkj",locale:"Kako",native:"Kakɔ",flag:"🇨🇲"},{isocode:"kkj-CM",locale:"Kako (Cameroun)",native:"Kakɔ (Kamɛrun)",flag:"🇨🇲"},{isocode:"kl",locale:"Groenlandais",native:"Kalaallisut",flag:"🇬🇱"},{isocode:"kl-GL",locale:"Groenlandais (Groenland)",native:"Kalaallisut (Kalaallit Nunaat)",flag:"🇬🇱"},{isocode:"kln",locale:"Kalendjin",native:"Kalenjin",flag:"🇰🇪"},{isocode:"kln-KE",locale:"Kalendjin (Kenya)",native:"Kalenjin (Emetab Kenya)",flag:"🇰🇪"},{isocode:"km",locale:"Khmer",native:"ខ្មែរ",flag:"🇰🇭"},{isocode:"km-KH",locale:"Khmer (Cambodge)",native:"ខ្មែរ (កម្ពុជា)",flag:"🇰🇭"},{isocode:"kn",locale:"Kannada",native:"ಕನ್ನಡ",flag:"🇮🇳"},{isocode:"kn-IN",locale:"Kannada (India)",native:"ಕನ್ನಡ (ಭಾರತ)",flag:"🇮🇳"},{isocode:"ko",locale:"Coréen",native:"한국어",flag:"🇰🇷"},{isocode:"ko-KP",locale:"Coréen (Corée du Nord)",native:"한국어(조선민주주의인민공화국)",flag:"🇰🇵"},{isocode:"ko-KR",locale:"Coréen (Corée du Sud)",native:"한국어(대한민국)",flag:"🇰🇷"},{isocode:"kok",locale:"Konkani",native:"कोंकणी",flag:"🇮🇳"},{isocode:"kok-IN",locale:"Konkani (India)",native:"कोंकणी (भारत)",flag:"🇮🇳"},{isocode:"ks",locale:"Kashmiri",native:"کٲشُر",flag:"🇮🇳"},{isocode:"ks-IN",locale:"Kashmiri (India)",native:"کٲشُر (ہِنٛدوستان)",flag:"🇮🇳"},{isocode:"ksb",locale:"Chambala",native:"Kishambaa",flag:"🇹🇿"},{isocode:"ksb-TZ",locale:"Chambala (Tanzanie)",native:"Kishambaa (Tanzania)",flag:"🇹🇿"},{isocode:"ksf",locale:"Bafia",native:"Rikpa",flag:"🇨🇲"},{isocode:"ksf-CM",locale:"Bafia (Cameroun)",native:"Rikpa (kamɛrún)",flag:"🇨🇲"},{isocode:"ksh",locale:"Francique ripuaire",native:"Kölsch",flag:"🇩🇪"},{isocode:"ksh-DE",locale:"Francique ripuaire (Germany)",native:"Kölsch en Doütschland",flag:"🇩🇪"},{isocode:"kw",locale:"Cornique",native:"Kernewek",flag:"🇬🇧"},{isocode:"kw-GB",locale:"Cornique (United Kingdom)",native:"Kernewek (Rywvaneth Unys)",flag:"🇬🇧"},{isocode:"ky",locale:"Kirghize",native:"кыргызча",flag:"🇰🇬"},{isocode:"ky-KG",locale:"Kirghize (Kirghizistan)",native:"кыргызча (Кыргызстан)",flag:"🇰🇬"},{isocode:"lag",locale:"Langi",native:"Kɨlaangi",flag:"🇹🇿"},{isocode:"lag-TZ",locale:"Langi (Tanzanie)",native:"Kɨlaangi (Taansanía)",flag:"🇹🇿"},{isocode:"lb",locale:"Luxembourgeois",native:"Lëtzebuergesch",flag:"🇱🇺"},{isocode:"lb-LU",locale:"Luxembourgeois (Luxembourg)",native:"Lëtzebuergesch (Lëtzebuerg)",flag:"🇱🇺"},{isocode:"lg",locale:"Ganda",native:"Luganda",flag:"🇺🇬"},{isocode:"lg-UG",locale:"Ganda (Ouganda)",native:"Luganda (Yuganda)",flag:"🇺🇬"},{isocode:"lkt",locale:"Lakota",native:"Lakȟólʼiyapi",flag:"🇺🇸"},{isocode:"lkt-US",locale:"Lakota (United States)",native:"Lakȟólʼiyapi (Mílahaŋska Tȟamákȟočhe)",flag:"🇺🇸"},{isocode:"ln",locale:"Lingala",native:"Lingála",flag:"🇨🇩"},{isocode:"ln-AO",locale:"Lingala (Angola)",native:"Lingála (Angóla)",flag:"🇦🇴"},{isocode:"ln-CD",locale:"Lingala (Congo-Kinshasa)",native:"Lingála (Republíki ya Kongó Demokratíki)",flag:"🇨🇩"},{isocode:"ln-CF",locale:"Lingala (République centrafricaine)",native:"Lingála (Repibiki ya Afríka ya Káti)",flag:"🇨🇫"},{isocode:"ln-CG",locale:"Lingala (Congo-Brazzaville)",native:"Lingála (Kongo)",flag:"🇨🇬"},{isocode:"lo",locale:"Lao",native:"ລາວ",flag:"🇱🇦"},{isocode:"lo-LA",locale:"Lao (Laos)",native:"ລາວ (ລາວ)",flag:"🇱🇦"},{isocode:"lrc",locale:"Lori du Nord",native:"لۊری شومالی",flag:"🇮🇷"},{isocode:"lrc-IQ",locale:"Lori du Nord (Irak)",native:"لۊری شومالی (IQ)",flag:"🇮🇶"},{isocode:"lrc-IR",locale:"Lori du Nord (Iran)",native:"لۊری شومالی (IR)",flag:"🇮🇷"},{isocode:"lt",locale:"Lituanien",native:"Lietuvių",flag:"🇱🇹"},{isocode:"lt-LT",locale:"Lituanien (Lituanie)",native:"Lietuvių (Lietuva)",flag:"🇱🇹"},{isocode:"lu",locale:"Luba-katanga",native:"Tshiluba",flag:"🇨🇩"},{isocode:"lu-CD",locale:"Luba-katanga (Congo-Kinshasa)",native:"Tshiluba (Ditunga wa Kongu)",flag:"🇨🇩"},{isocode:"luo",locale:"Luo",native:"Dholuo",flag:"🇰🇪"},{isocode:"luo-KE",locale:"Luo (Kenya)",native:"Dholuo (Kenya)",flag:"🇰🇪"},{isocode:"luy",locale:"Luhya",native:"Luluhia",flag:"🇰🇪"},{isocode:"luy-KE",locale:"Luhya (Kenya)",native:"Luluhia (Kenya)",flag:"🇰🇪"},{isocode:"lv",locale:"Letton",native:"Latviešu",flag:"🇱🇻"},{isocode:"lv-LV",locale:"Letton (Lettonie)",native:"Latviešu (Latvija)",flag:"🇱🇻"},{isocode:"mas",locale:"Massaï",native:"Maa",flag:"🇰🇪"},{isocode:"mas-KE",locale:"Massaï (Kenya)",native:"Maa (Kenya)",flag:"🇰🇪"},{isocode:"mas-TZ",locale:"Massaï (Tanzanie)",native:"Maa (Tansania)",flag:"🇹🇿"},{isocode:"mer",locale:"Mérou",native:"Kĩmĩrũ",flag:"🇰🇪"},{isocode:"mer-KE",locale:"Mérou (Kenya)",native:"Kĩmĩrũ (Kenya)",flag:"🇰🇪"},{isocode:"mfe",locale:"Créole mauricien",native:"Kreol morisien",flag:"🇲🇺"},{isocode:"mfe-MU",locale:"Créole mauricien (Maurice)",native:"Kreol morisien (Moris)",flag:"🇲🇺"},{isocode:"mg",locale:"Malgache",native:"Malagasy",flag:"🇲🇬"},{isocode:"mg-MG",locale:"Malgache (Madagascar)",native:"Malagasy (Madagasikara)",flag:"🇲🇬"},{isocode:"mgh",locale:"Makhuwa-meetto",native:"Makua",flag:"🇲🇿"},{isocode:"mgh-MZ",locale:"Makhuwa-meetto (Mozambique)",native:"Makua (Umozambiki)",flag:"🇲🇿"},{isocode:"mgo",locale:"Méta'",native:"Metaʼ",flag:"🇨🇲"},{isocode:"mgo-CM",locale:"Méta' (Cameroun)",native:"Metaʼ (Kamalun)",flag:"🇨🇲"},{isocode:"mk",locale:"Macédonien",native:"македонски",flag:"🇲🇰"},{isocode:"mk-MK",locale:"Macédonien (Macédoine)",native:"македонски (Македонија)",flag:"🇲🇰"},{isocode:"ml",locale:"Malayalam",native:"മലയാളം",flag:"🇮🇳"},{isocode:"ml-IN",locale:"Malayalam (India)",native:"മലയാളം (ഇന്ത്യ)",flag:"🇮🇳"},{isocode:"mn",locale:"Mongol",native:"монгол",flag:"🇲🇳"},{isocode:"mn-MN",locale:"Mongol (Mongolie)",native:"монгол (Монгол)",flag:"🇲🇳"},{isocode:"mr",locale:"Marathe",native:"मराठी",flag:"🇮🇳"},{isocode:"mr-IN",locale:"Marathe (India)",native:"मराठी (भारत)",flag:"🇮🇳"},{isocode:"ms",locale:"Malais",native:"Melayu",flag:"🇲🇾"},{isocode:"ms-BN",locale:"Malais (Brunéi Darussalam)",native:"Melayu (Brunei)",flag:"🇧🇳"},{isocode:"ms-MY",locale:"Malais (Malaisie)",native:"Melayu (Malaysia)",flag:"🇲🇾"},{isocode:"ms-SG",locale:"Malais (Singapour)",native:"Melayu (Singapura)",flag:"🇸🇬"},{isocode:"mt",locale:"Maltais",native:"Malti",flag:"🇲🇹"},{isocode:"mt-MT",locale:"Maltais (Malte)",native:"Malti (Malta)",flag:"🇲🇹"},{isocode:"mua",locale:"Moundang",native:"MUNDAŊ",flag:"🇨🇲"},{isocode:"mua-CM",locale:"Moundang (Cameroun)",native:"MUNDAŊ (kameruŋ)",flag:"🇨🇲"},{isocode:"my",locale:"Birman",native:"မြန်မာ",flag:"🇲🇲"},{isocode:"my-MM",locale:"Birman (Myanmar [Birmanie])",native:"မြန်မာ (မြန်မာ)",flag:"🇲🇲"},{isocode:"mzn",locale:"Mazandérani",native:"مازرونی",flag:"🇮🇷"},{isocode:"mzn-IR",locale:"Mazandérani (Iran)",native:"مازرونی (ایران)",flag:"🇮🇷"},{isocode:"naq",locale:"Nama",native:"Khoekhoegowab",flag:"🇳🇦"},{isocode:"naq-NA",locale:"Nama (Namibie)",native:"Khoekhoegowab (Namibiab)",flag:"🇳🇦"},{isocode:"nb",locale:"Norvégien bokmål",native:"Norsk bokmål",flag:"🇳🇴"},{isocode:"nb-NO",locale:"Norvégien bokmål (Norvège)",native:"Norsk bokmål (Norge)",flag:"🇳🇴"},{isocode:"nb-SJ",locale:"Norvégien bokmål (Svalbard et Jan Mayen)",native:"Norsk bokmål (Svalbard og Jan Mayen)",flag:"🇸🇯"},{isocode:"nd",locale:"Ndébélé du Nord",native:"IsiNdebele",flag:"🇿🇼"},{isocode:"nd-ZW",locale:"Ndébélé du Nord (Zimbabwe)",native:"IsiNdebele (Zimbabwe)",flag:"🇿🇼"},{isocode:"nds",locale:"Bas-German",native:"Nds",flag:"🇩🇪"},{isocode:"nds-DE",locale:"Bas-German (Germany)",native:"Nds (DE)",flag:"🇩🇪"},{isocode:"nds-NL",locale:"Bas-German (Pays-Bas)",native:"Nds (NL)",flag:"🇳🇱"},{isocode:"ne",locale:"Népalais",native:"नेपाली",flag:"🇳🇵"},{isocode:"ne-IN",locale:"Népalais (India)",native:"नेपाली (भारत)",flag:"🇮🇳"},{isocode:"ne-NP",locale:"Népalais (Népal)",native:"नेपाली (नेपाल)",flag:"🇳🇵"},{isocode:"nl",locale:"Néerlandais",native:"Nederlands",flag:"🇳🇱"},{isocode:"nl-AW",locale:"Néerlandais (Aruba)",native:"Nederlands (Aruba)",flag:"🇦🇼"},{isocode:"nl-BE",locale:"Néerlandais (Belgium)",native:"Nederlands (België)",flag:"🇧🇪"},{isocode:"nl-BQ",locale:"Néerlandais (Pays-Bas caribéens)",native:"Nederlands (Caribisch Nederland)",flag:"🇧🇶"},{isocode:"nl-CW",locale:"Néerlandais (Curaçao)",native:"Nederlands (Curaçao)",flag:"🇨🇼"},{isocode:"nl-NL",locale:"Néerlandais (Pays-Bas)",native:"Nederlands (Nederland)",flag:"🇳🇱"},{isocode:"nl-SR",locale:"Néerlandais (Suriname)",native:"Nederlands (Suriname)",flag:"🇸🇷"},{isocode:"nl-SX",locale:"Néerlandais (Saint-Martin [partie néerlandaise])",native:"Nederlands (Sint-Maarten)",flag:"🇸🇽"},{isocode:"nmg",locale:"Kwasio",native:"Nmg",flag:"🇨🇲"},{isocode:"nmg-CM",locale:"Kwasio (Cameroun)",native:"Nmg (Kamerun)",flag:"🇨🇲"},{isocode:"nn",locale:"Norvégien nynorsk",native:"Nynorsk",flag:"🇳🇴"},{isocode:"nn-NO",locale:"Norvégien nynorsk (Norvège)",native:"Nynorsk (Noreg)",flag:"🇳🇴"},{isocode:"nnh",locale:"Ngiemboon",native:"Shwóŋò ngiembɔɔn",flag:"🇨🇲"},{isocode:"nnh-CM",locale:"Ngiemboon (Cameroun)",native:"Shwóŋò ngiembɔɔn (Kàmalûm)",flag:"🇨🇲"},{isocode:"nus",locale:"Nuer",native:"Thok Nath",flag:"🇸🇸"},{isocode:"nus-SS",locale:"Nuer (Soudan du Sud)",native:"Thok Nath (SS)",flag:"🇸🇸"},{isocode:"nyn",locale:"Nyankolé",native:"Runyankore",flag:"🇺🇬"},{isocode:"nyn-UG",locale:"Nyankolé (Ouganda)",native:"Runyankore (Uganda)",flag:"🇺🇬"},{isocode:"om",locale:"Oromo",native:"Oromoo",flag:"🇪🇹"},{isocode:"om-ET",locale:"Oromo (Éthiopie)",native:"Oromoo (Itoophiyaa)",flag:"🇪🇹"},{isocode:"om-KE",locale:"Oromo (Kenya)",native:"Oromoo (Keeniyaa)",flag:"🇰🇪"},{isocode:"or",locale:"Oriya",native:"ଓଡ଼ିଆ",flag:"🇮🇳"},{isocode:"or-IN",locale:"Oriya (India)",native:"ଓଡ଼ିଆ (ଭାରତ)",flag:"🇮🇳"},{isocode:"os",locale:"Ossète",native:"ирон",flag:"🇬🇪"},{isocode:"os-GE",locale:"Ossète (Géorgie)",native:"ирон (Гуырдзыстон)",flag:"🇬🇪"},{isocode:"os-RU",locale:"Ossète (Russie)",native:"ирон (Уӕрӕсе)",flag:"🇷🇺"},{isocode:"pa",locale:"Pendjabi",native:"ਪੰਜਾਬੀ",flag:"🇮🇳"},{isocode:"pa-Arab",locale:"Pendjabi (Arabic)",native:"پنجابی (عربی)",flag:"🇵🇰"},{isocode:"pa-Arab-PK",locale:"Pendjabi (Arabic, Pakistan)",native:"پنجابی (عربی, پاکستان)",flag:"🇵🇰"},{isocode:"pa-Guru",locale:"Pendjabi (gourmoukhî)",native:"ਪੰਜਾਬੀ (ਗੁਰਮੁਖੀ)",flag:"🇮🇳"},{isocode:"pa-Guru-IN",locale:"Pendjabi (gourmoukhî, India)",native:"ਪੰਜਾਬੀ (ਗੁਰਮੁਖੀ, ਭਾਰਤ)",flag:"🇮🇳"},{isocode:"pl",locale:"Polonais",native:"Polski",flag:"🇵🇱"},{isocode:"pl-PL",locale:"Polonais (Pologne)",native:"Polski (Polska)",flag:"🇵🇱"},{isocode:"ps",locale:"Pachto",native:"پښتو",flag:"🇦🇫"},{isocode:"ps-AF",locale:"Pachto (Afghanistan)",native:"پښتو (افغانستان)",flag:"🇦🇫"},{isocode:"pt",locale:"Portugais",native:"Português",flag:"🇵🇹"},{isocode:"pt-AO",locale:"Portugais (Angola)",native:"Português (Angola)",flag:"🇦🇴"},{isocode:"pt-BR",locale:"Portugais (Brazil)",native:"Português (Brasil)",flag:"🇧🇷"},{isocode:"pt-CH",locale:"Portugais (Switzerland)",native:"Português (Suíça)",flag:"🇨🇭"},{isocode:"pt-CV",locale:"Portugais (Cap-Vert)",native:"Português (Cabo Verde)",flag:"🇨🇻"},{isocode:"pt-GQ",locale:"Portugais (Guinée équatoriale)",native:"Português (Guiné Equatorial)",flag:"🇬🇶"},{isocode:"pt-GW",locale:"Portugais (Guinée-Bissau)",native:"Português (Guiné-Bissau)",flag:"🇬🇼"},{isocode:"pt-LU",locale:"Portugais (Luxembourg)",native:"Português (Luxemburgo)",flag:"🇱🇺"},{isocode:"pt-MO",locale:"Portugais (R.A.S. chinoise de Macao)",native:"Português (Macau, RAE da China)",flag:"🇲🇴"},{isocode:"pt-MZ",locale:"Portugais (Mozambique)",native:"Português (Moçambique)",flag:"🇲🇿"},{isocode:"pt-PT",locale:"Portugais (Portugal)",native:"Português (Portugal)",flag:"🇵🇹"},{isocode:"pt-ST",locale:"Portugais (Sao Tomé-et-Principe)",native:"Português (São Tomé e Príncipe)",flag:"🇸🇹"},{isocode:"pt-TL",locale:"Portugais (Timor oriental)",native:"Português (Timor-Leste)",flag:"🇹🇱"},{isocode:"qu",locale:"Quechua",native:"Runasimi",flag:"🇵🇪"},{isocode:"qu-BO",locale:"Quechua (Bolivie)",native:"Runasimi (Bolivia)",flag:"🇧🇴"},{isocode:"qu-EC",locale:"Quechua (Équateur)",native:"Runasimi (Ecuador)",flag:"🇪🇨"},{isocode:"qu-PE",locale:"Quechua (Pérou)",native:"Runasimi (Perú)",flag:"🇵🇪"},{isocode:"rm",locale:"Romanche",native:"Rumantsch",flag:"🇨🇭"},{isocode:"rm-CH",locale:"Romanche (Switzerland)",native:"Rumantsch (Svizra)",flag:"🇨🇭"},{isocode:"rn",locale:"Roundi",native:"Ikirundi",flag:"🇧🇮"},{isocode:"rn-BI",locale:"Roundi (Burundi)",native:"Ikirundi (Uburundi)",flag:"🇧🇮"},{isocode:"ro",locale:"Roumain",native:"Română",flag:"🇷🇴"},{isocode:"ro-MD",locale:"Roumain (Moldavie)",native:"Română (Republica Moldova)",flag:"🇲🇩"},{isocode:"ro-RO",locale:"Roumain (Roumanie)",native:"Română (România)",flag:"🇷🇴"},{isocode:"rof",locale:"Rombo",native:"Kihorombo",flag:"🇹🇿"},{isocode:"rof-TZ",locale:"Rombo (Tanzanie)",native:"Kihorombo (Tanzania)",flag:"🇹🇿"},{isocode:"ru",locale:"Russe",native:"русский",flag:"🇷🇺"},{isocode:"ru-BY",locale:"Russe (Biélorussie)",native:"русский (Беларусь)",flag:"🇧🇾"},{isocode:"ru-KG",locale:"Russe (Kirghizistan)",native:"русский (Киргизия)",flag:"🇰🇬"},{isocode:"ru-KZ",locale:"Russe (Kazakhstan)",native:"русский (Казахстан)",flag:"🇰🇿"},{isocode:"ru-MD",locale:"Russe (Moldavie)",native:"русский (Молдова)",flag:"🇲🇩"},{isocode:"ru-RU",locale:"Russe (Russie)",native:"русский (Россия)",flag:"🇷🇺"},{isocode:"ru-UA",locale:"Russe (Ukraine)",native:"русский (Украина)",flag:"🇺🇦"},{isocode:"rw",locale:"Rwanda",native:"Kinyarwanda",flag:"🇷🇼"},{isocode:"rw-RW",locale:"Rwanda (Rwanda)",native:"Kinyarwanda (U Rwanda)",flag:"🇷🇼"},{isocode:"rwk",locale:"Rwa",native:"Kiruwa",flag:"🇹🇿"},{isocode:"rwk-TZ",locale:"Rwa (Tanzanie)",native:"Kiruwa (Tanzania)",flag:"🇹🇿"},{isocode:"sah",locale:"Iakoute",native:"саха тыла",flag:"🇷🇺"},{isocode:"sah-RU",locale:"Iakoute (Russie)",native:"саха тыла (Арассыыйа)",flag:"🇷🇺"},{isocode:"saq",locale:"Sambourou",native:"Kisampur",flag:"🇰🇪"},{isocode:"saq-KE",locale:"Sambourou (Kenya)",native:"Kisampur (Kenya)",flag:"🇰🇪"},{isocode:"sbp",locale:"Sangu",native:"Ishisangu",flag:"🇹🇿"},{isocode:"sbp-TZ",locale:"Sangu (Tanzanie)",native:"Ishisangu (Tansaniya)",flag:"🇹🇿"},{isocode:"se",locale:"Sami du Nord",native:"Davvisámegiella",flag:"🇳🇴"},{isocode:"se-FI",locale:"Sami du Nord (Finlande)",native:"Davvisámegiella (Suopma)",flag:"🇫🇮"},{isocode:"se-NO",locale:"Sami du Nord (Norvège)",native:"Davvisámegiella (Norga)",flag:"🇳🇴"},{isocode:"se-SE",locale:"Sami du Nord (Suède)",native:"Davvisámegiella (Ruoŧŧa)",flag:"🇸🇪"},{isocode:"seh",locale:"Cisena",native:"Sena",flag:"🇲🇿"},{isocode:"seh-MZ",locale:"Cisena (Mozambique)",native:"Sena (Moçambique)",flag:"🇲🇿"},{isocode:"ses",locale:"Koyraboro senni",native:"Koyraboro senni",flag:"🇲🇱"},{isocode:"ses-ML",locale:"Koyraboro senni (Mali)",native:"Koyraboro senni (Maali)",flag:"🇲🇱"},{isocode:"sg",locale:"Sangho",native:"Sängö",flag:"🇨🇫"},{isocode:"sg-CF",locale:"Sangho (République centrafricaine)",native:"Sängö (Ködörösêse tî Bêafrîka)",flag:"🇨🇫"},{isocode:"shi",locale:"Chleuh",native:"ⵜⴰⵛⵍⵃⵉⵜ",flag:"🇲🇦"},{isocode:"shi-Latn",locale:"Chleuh (latin)",native:"Tashelḥiyt (Latn)",flag:"🇲🇦"},{isocode:"shi-Latn-MA",locale:"Chleuh (latin, Maroc)",native:"Tashelḥiyt (Latn, lmɣrib)",flag:"🇲🇦"},{isocode:"shi-Tfng",locale:"Chleuh (tifinagh)",native:"ⵜⴰⵛⵍⵃⵉⵜ (Tfng)",flag:"🇲🇦"},{isocode:"shi-Tfng-MA",locale:"Chleuh (tifinagh, Maroc)",native:"ⵜⴰⵛⵍⵃⵉⵜ (Tfng, ⵍⵎⵖⵔⵉⴱ)",flag:"🇲🇦"},{isocode:"si",locale:"Cinghalais",native:"සිංහල",flag:"🇱🇰"},{isocode:"si-LK",locale:"Cinghalais (Sri Lanka)",native:"සිංහල (ශ්රී ලංකාව)",flag:"🇱🇰"},{isocode:"sk",locale:"Slovaque",native:"Slovenčina",flag:"🇸🇰"},{isocode:"sk-SK",locale:"Slovaque (Slovaquie)",native:"Slovenčina (Slovensko)",flag:"🇸🇰"},{isocode:"sl",locale:"Slovène",native:"Slovenščina",flag:"🇸🇮"},{isocode:"sl-SI",locale:"Slovène (Slovénie)",native:"Slovenščina (Slovenija)",flag:"🇸🇮"},{isocode:"smn",locale:"Sami d'Inari",native:"Anarâškielâ",flag:"🇫🇮"},{isocode:"smn-FI",locale:"Sami d'Inari (Finlande)",native:"Anarâškielâ (Suomâ)",flag:"🇫🇮"},{isocode:"sn",locale:"Shona",native:"ChiShona",flag:"🇿🇼"},{isocode:"sn-ZW",locale:"Shona (Zimbabwe)",native:"ChiShona (Zimbabwe)",flag:"🇿🇼"},{isocode:"so",locale:"Somali",native:"Soomaali",flag:"🇸🇴"},{isocode:"so-DJ",locale:"Somali (Djibouti)",native:"Soomaali (Jabuuti)",flag:"🇩🇯"},{isocode:"so-ET",locale:"Somali (Éthiopie)",native:"Soomaali (Itoobiya)",flag:"🇪🇹"},{isocode:"so-KE",locale:"Somali (Kenya)",native:"Soomaali (Kiiniya)",flag:"🇰🇪"},{isocode:"so-SO",locale:"Somali (Somalie)",native:"Soomaali (Soomaaliya)",flag:"🇸🇴"},{isocode:"sq",locale:"Albanais",native:"Shqip",flag:"🇦🇱"},{isocode:"sq-AL",locale:"Albanais (Albanie)",native:"Shqip (Shqipëri)",flag:"🇦🇱"},{isocode:"sq-MK",locale:"Albanais (Macédoine)",native:"Shqip (Maqedoni)",flag:"🇲🇰"},{isocode:"sq-XK",locale:"Albanais (Kosovo)",native:"Shqip (Kosovë)",flag:"🇽🇰"},{isocode:"sr",locale:"Serbe",native:"српски",flag:"🇷🇸"},{isocode:"sr-Cyrl",locale:"Serbe (cyrillique)",native:"српски (ћирилица)",flag:"🇷🇸"},{isocode:"sr-Cyrl-BA",locale:"Serbe (cyrillique, Bosnie-Herzégovine)",native:"српски (ћирилица, Босна и Херцеговина)",flag:"🇧🇦"},{isocode:"sr-Cyrl-ME",locale:"Serbe (cyrillique, Monténégro)",native:"српски (ћирилица, Црна Гора)",flag:"🇲🇪"},{isocode:"sr-Cyrl-RS",locale:"Serbe (cyrillique, Serbie)",native:"српски (ћирилица, Србија)",flag:"🇷🇸"},{isocode:"sr-Cyrl-XK",locale:"Serbe (cyrillique, Kosovo)",native:"српски (ћирилица, Косово)",flag:"🇽🇰"},{isocode:"sr-Latn",locale:"Serbe (latin)",native:"Srpski (latinica)",flag:"🇷🇸"},{isocode:"sr-Latn-BA",locale:"Serbe (latin, Bosnie-Herzégovine)",native:"Srpski (latinica, Bosna i Hercegovina)",flag:"🇧🇦"},{isocode:"sr-Latn-ME",locale:"Serbe (latin, Monténégro)",native:"Srpski (latinica, Crna Gora)",flag:"🇲🇪"},{isocode:"sr-Latn-RS",locale:"Serbe (latin, Serbie)",native:"Srpski (latinica, Srbija)",flag:"🇷🇸"},{isocode:"sr-Latn-XK",locale:"Serbe (latin, Kosovo)",native:"Srpski (latinica, Kosovo)",flag:"🇽🇰"},{isocode:"sv",locale:"Suédois",native:"Svenska",flag:"🇸🇪"},{isocode:"sv-AX",locale:"Suédois (Îles Åland)",native:"Svenska (Åland)",flag:"🇦🇽"},{isocode:"sv-FI",locale:"Suédois (Finlande)",native:"Svenska (Finland)",flag:"🇫🇮"},{isocode:"sv-SE",locale:"Suédois (Suède)",native:"Svenska (Sverige)",flag:"🇸🇪"},{isocode:"sw",locale:"Swahili",native:"Kiswahili",flag:"🇹🇿"},{isocode:"sw-CD",locale:"Swahili (Congo-Kinshasa)",native:"Kiswahili (Jamhuri ya Kidemokrasia ya Kongo)",flag:"🇨🇩"},{isocode:"sw-KE",locale:"Swahili (Kenya)",native:"Kiswahili (Kenya)",flag:"🇰🇪"},{isocode:"sw-TZ",locale:"Swahili (Tanzanie)",native:"Kiswahili (Tanzania)",flag:"🇹🇿"},{isocode:"sw-UG",locale:"Swahili (Ouganda)",native:"Kiswahili (Uganda)",flag:"🇺🇬"},{isocode:"ta",locale:"Tamoul",native:"தமிழ்",flag:"🇱🇰"},{isocode:"ta-IN",locale:"Tamoul (India)",native:"தமிழ் (இந்தியா)",flag:"🇮🇳"},{isocode:"ta-LK",locale:"Tamoul (Sri Lanka)",native:"தமிழ் (இலங்கை)",flag:"🇱🇰"},{isocode:"ta-MY",locale:"Tamoul (Malaisie)",native:"தமிழ் (மலேசியா)",flag:"🇲🇾"},{isocode:"ta-SG",locale:"Tamoul (Singapour)",native:"தமிழ் (சிங்கப்பூர்)",flag:"🇸🇬"},{isocode:"te",locale:"Télougou",native:"తెలుగు",flag:"🇮🇳"},{isocode:"te-IN",locale:"Télougou (India)",native:"తెలుగు (భారతదేశం)",flag:"🇮🇳"},{isocode:"teo",locale:"Teso",native:"Kiteso",flag:"🇺🇬"},{isocode:"teo-KE",locale:"Teso (Kenya)",native:"Kiteso (Kenia)",flag:"🇰🇪"},{isocode:"teo-UG",locale:"Teso (Ouganda)",native:"Kiteso (Uganda)",flag:"🇺🇬"},{isocode:"tg",locale:"Tadjik",native:"тоҷикӣ",flag:"🇹🇯"},{isocode:"tg-TJ",locale:"Tadjik (Tadjikistan)",native:"тоҷикӣ (Тоҷикистон)",flag:"🇹🇯"},{isocode:"th",locale:"Thaï",native:"ไทย",flag:"🇹🇭"},{isocode:"th-TH",locale:"Thaï (Thaïlande)",native:"ไทย (ไทย)",flag:"🇹🇭"},{isocode:"ti",locale:"Tigrigna",native:"ትግርኛ",flag:"🇪🇷"},{isocode:"ti-ER",locale:"Tigrigna (Érythrée)",native:"ትግርኛ (ኤርትራ)",flag:"🇪🇷"},{isocode:"ti-ET",locale:"Tigrigna (Éthiopie)",native:"ትግርኛ (ኢትዮጵያ)",flag:"🇪🇹"},{isocode:"to",locale:"Tonguien",native:"Lea fakatonga",flag:"🇹🇴"},{isocode:"to-TO",locale:"Tonguien (Tonga)",native:"Lea fakatonga (Tonga)",flag:"🇹🇴"},{isocode:"tr",locale:"Turc",native:"Türkçe",flag:"🇹🇷"},{isocode:"tr-CY",locale:"Turc (Chypre)",native:"Türkçe (Kıbrıs)",flag:"🇨🇾"},{isocode:"tr-TR",locale:"Turc (Turquie)",native:"Türkçe (Türkiye)",flag:"🇹🇷"},{isocode:"tt",locale:"Tatar",native:"татар",flag:"🇷🇺"},{isocode:"tt-RU",locale:"Tatar (Russie)",native:"татар (Россия)",flag:"🇷🇺"},{isocode:"twq",locale:"Tasawaq",native:"Tasawaq senni",flag:"🇳🇪"},{isocode:"twq-NE",locale:"Tasawaq (Niger)",native:"Tasawaq senni (Nižer)",flag:"🇳🇪"},{isocode:"tzm",locale:"Amazighe de l'Atlas central",native:"Tamaziɣt n laṭlaṣ",flag:"🇲🇦"},{isocode:"tzm-MA",locale:"Amazighe de l'Atlas central (Maroc)",native:"Tamaziɣt n laṭlaṣ (Meṛṛuk)",flag:"🇲🇦"},{isocode:"ug",locale:"Ouïghour",native:"ئۇيغۇرچە",flag:"🇨🇳"},{isocode:"ug-CN",locale:"Ouïghour (Chine)",native:"ئۇيغۇرچە (جۇڭگو)",flag:"🇨🇳"},{isocode:"uk",locale:"Ukrainien",native:"українська",flag:"🇺🇦"},{isocode:"uk-UA",locale:"Ukrainien (Ukraine)",native:"українська (Україна)",flag:"🇺🇦"},{isocode:"ur",locale:"Ourdou",native:"اردو",flag:"🇵🇰"},{isocode:"ur-IN",locale:"Ourdou (India)",native:"اردو (بھارت)",flag:"🇮🇳"},{isocode:"ur-PK",locale:"Ourdou (Pakistan)",native:"اردو (پاکستان)",flag:"🇵🇰"},{isocode:"uz",locale:"Ouzbek",native:"O‘zbek",flag:"🇺🇿"},{isocode:"uz-Arab",locale:"Ouzbek (Arabic)",native:"اوزبیک (عربی)",flag:"🇦🇫"},{isocode:"uz-Arab-AF",locale:"Ouzbek (Arabic, Afghanistan)",native:"اوزبیک (عربی, افغانستان)",flag:"🇦🇫"},{isocode:"uz-Cyrl",locale:"Ouzbek (cyrillique)",native:"ўзбекча (Кирил)",flag:"🇺🇿"},{isocode:"uz-Cyrl-UZ",locale:"Ouzbek (cyrillique, Ouzbékistan)",native:"ўзбекча (Кирил, Ўзбекистон)",flag:"🇺🇿"},{isocode:"uz-Latn",locale:"Ouzbek (latin)",native:"O‘zbek (lotin)",flag:"🇺🇿"},{isocode:"uz-Latn-UZ",locale:"Ouzbek (latin, Ouzbékistan)",native:"O‘zbek (lotin, Oʻzbekiston)",flag:"🇺🇿"},{isocode:"vai",locale:"Vaï",native:"ꕙꔤ",flag:"🇱🇷"},{isocode:"vai-Latn",locale:"Vaï (latin)",native:"Vai (Latn)",flag:"🇱🇷"},{isocode:"vai-Latn-LR",locale:"Vaï (latin, Libéria)",native:"Vai (Latn, Laibhiya)",flag:"🇱🇷"},{isocode:"vai-Vaii",locale:"Vaï (vaï)",native:"ꕙꔤ (Vaii)",flag:"🇱🇷"},{isocode:"vai-Vaii-LR",locale:"Vaï (vaï, Libéria)",native:"ꕙꔤ (Vaii, ꕞꔤꔫꕩ)",flag:"🇱🇷"},{isocode:"vi",locale:"Vietnamien",native:"Tiếng Việt",flag:"🇻🇳"},{isocode:"vi-VN",locale:"Vietnamien (Vietnam)",native:"Tiếng Việt (Việt Nam)",flag:"🇻🇳"},{isocode:"vun",locale:"Vunjo",native:"Kyivunjo",flag:"🇹🇿"},{isocode:"vun-TZ",locale:"Vunjo (Tanzanie)",native:"Kyivunjo (Tanzania)",flag:"🇹🇿"},{isocode:"wae",locale:"Walser",native:"Walser",flag:"🇨🇭"},{isocode:"wae-CH",locale:"Walser (Switzerland)",native:"Walser (Schwiz)",flag:"🇨🇭"},{isocode:"wo",locale:"Wolof",native:"Wolof",flag:"🇸🇳"},{isocode:"wo-SN",locale:"Wolof (Sénégal)",native:"Wolof (Senegaal)",flag:"🇸🇳"},{isocode:"xog",locale:"Soga",native:"Olusoga",flag:"🇺🇬"},{isocode:"xog-UG",locale:"Soga (Ouganda)",native:"Olusoga (Yuganda)",flag:"🇺🇬"},{isocode:"yav",locale:"Yangben",native:"Nuasue",flag:"🇨🇲"},{isocode:"yav-CM",locale:"Yangben (Cameroun)",native:"Nuasue (Kemelún)",flag:"🇨🇲"},{isocode:"yi",locale:"Yiddish",native:"ייִדיש",flag:"🏳️"},{isocode:"yi-001",locale:"Yiddish (World)",native:"ייִדיש (וועלט)",flag:"🏳️"},{isocode:"yo",locale:"Yoruba",native:"Èdè Yorùbá",flag:"🇳🇬"},{isocode:"yo-BJ",locale:"Yoruba (Bénin)",native:"Èdè Yorùbá (Orílɛ́ède Bɛ̀nɛ̀)",flag:"🇧🇯"},{isocode:"yo-NG",locale:"Yoruba (Nigéria)",native:"Èdè Yorùbá (Orílẹ́ède Nàìjíríà)",flag:"🇳🇬"},{isocode:"yue",locale:"Cantonais",native:"粵語",flag:"🇭🇰"},{isocode:"yue-Hans",locale:"Cantonais (simplifié)",native:"粤语 (简体)",flag:"🇨🇳"},{isocode:"yue-Hans-CN",locale:"Cantonais (simplifié, Chine)",native:"粤语 (简体,中华人民共和国)",flag:"🇨🇳"},{isocode:"yue-Hant",locale:"Cantonais (traditionnel)",native:"粵語 (繁體)",flag:"🇭🇰"},{isocode:"yue-Hant-HK",locale:"Cantonais (traditionnel, R.A.S. chinoise de Hong Kong)",native:"粵語 (繁體,中華人民共和國香港特別行政區)",flag:"🇭🇰"},{isocode:"zgh",locale:"Amazighe standard marocain",native:"ⵜⴰⵎⴰⵣⵉⵖⵜ",flag:"🇲🇦"},{isocode:"zgh-MA",locale:"Amazighe standard marocain (Maroc)",native:"ⵜⴰⵎⴰⵣⵉⵖⵜ (ⵍⵎⵖⵔⵉⴱ)",flag:"🇲🇦"},{isocode:"zh",locale:"Chinese",native:"中文",flag:"🇨🇳"},{isocode:"zh-Hans",locale:"Chinese (simplifié)",native:"中文(简体)",flag:"🇨🇳"},{isocode:"zh-Hans-CN",locale:"Chinese (simplifié, Chine)",native:"中文(简体,中国)",flag:"🇨🇳"},{isocode:"zh-Hans-HK",locale:"Chinese (simplifié, R.A.S. chinoise de Hong Kong)",native:"中文(简体,中国香港特别行政区)",flag:"🇭🇰"},{isocode:"zh-Hans-MO",locale:"Chinese (simplifié, R.A.S. chinoise de Macao)",native:"中文(简体,中国澳门特别行政区)",flag:"🇲🇴"},{isocode:"zh-Hans-SG",locale:"Chinese (simplifié, Singapour)",native:"中文(简体,新加坡)",flag:"🇸🇬"},{isocode:"zh-Hant",locale:"Chinese (traditionnel)",native:"中文(繁體)",flag:"🇹🇼"},{isocode:"zh-Hant-HK",locale:"Chinese (traditionnel, R.A.S. chinoise de Hong Kong)",native:"中文(繁體字,中國香港特別行政區)",flag:"🇭🇰"},{isocode:"zh-Hant-MO",locale:"Chinese (traditionnel, R.A.S. chinoise de Macao)",native:"中文(繁體字,中國澳門特別行政區)",flag:"🇲🇴"},{isocode:"zh-Hant-TW",locale:"Chinese (traditionnel, Taïwan)",native:"中文(繁體,台灣)",flag:"🇹🇼"},{isocode:"zu",locale:"Zoulou",native:"IsiZulu",flag:"🇿🇦"},{isocode:"zu-ZA",locale:"Zoulou (South Africa)",native:"IsiZulu (iNingizimu Afrika)",flag:"🇿🇦"}]};exports.LOCALIZATION_EDITOR_SCOPE_CLASS=Ao.LOCALIZATION_EDITOR_SCOPE_CLASS;exports.EditorStateAdapterProvider=zp;exports.EditorStateContext=Ka;exports.I18N_ACTIONS=Zy;exports.I18N_CONSTANT=tf;exports.I18nProvider=nf;exports.LocalizationEditor=Cm;exports.LocalizationEditorProvider=uf;exports.LocalizationProvider=sf;exports.Portal=tw;exports.ReducerAdapterProvider=Zp;exports.Standalone=XA;exports.getDefaultContainer=dt;exports.getDefaultInitialState=Yp;exports.getLanguageDetails=lr;exports.languages=QA;exports.localizationReducer=Jp;exports.useEditorStateAdapter=$n;exports.useI18n=Jn;exports.useLocalization=of;exports.useLocalizationEditor=Yn;exports.useModals=Qp;exports.useReducerAdapter=Xp;exports.useReduxAdapter=Ry;
|
|
120
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return U.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},nE="DialogDescriptionWarning",iE=({contentRef:e,descriptionId:t})=>{const i=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${If(nE).contentName}}.`;return U.useEffect(()=>{var s;const r=(s=e.current)==null?void 0:s.getAttribute("aria-describedby");t&&r&&(document.getElementById(t)||console.warn(i))},[i,e,t]),null},rE=mf,aE=bf,sE=yf,oE=wf,lE=Sf;const Af=({children:e,isOpen:t,onClose:n,title:i})=>C.jsx(rE,{open:t,onOpenChange:r=>!r&&n(),children:C.jsxs(aE,{container:it(),children:[C.jsx(sE,{className:`fixed inset-0 z-[1000] bg-black bg-opacity-75
|
|
121
|
+
data-[state=open]:animate-in data-[state=open]:fade-in-0
|
|
122
|
+
data-[state=closed]:animate-out data-[state=closed]:fade-out-0`}),C.jsx("div",{className:"fixed inset-0 z-[1001] overflow-y-auto",children:C.jsx("div",{className:"flex min-h-full items-center justify-center p-4 text-center",children:C.jsxs(oE,{onPointerDownOutside:r=>r.preventDefault(),"aria-describedby":void 0,className:`w-full space-y-2 max-w-md transform overflow-hidden rounded border border-grey-50 bg-grey-900 px-5 py-4 text-left align-middle text-white shadow-xl
|
|
123
|
+
data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:scale-95 data-[state=open]:duration-300
|
|
124
|
+
data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:scale-95 data-[state=closed]:duration-200`,children:[C.jsxs("div",{className:"flex flex-col items-center justify-center space-y-2",children:[C.jsx(Je.FdDownload,{className:"h-6 w-6"}),C.jsx(lE,{className:"mt-4 text-sm font-bold",children:i})]}),C.jsx("div",{className:"space-y-2",children:e})]})})})]})});var Wi={exports:{}},Gi={exports:{}},We={};/** @license React v16.13.1
|
|
125
|
+
* react-is.production.min.js
|
|
126
|
+
*
|
|
127
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
128
|
+
*
|
|
129
|
+
* This source code is licensed under the MIT license found in the
|
|
130
|
+
* LICENSE file in the root directory of this source tree.
|
|
131
|
+
*/var au;function uE(){if(au)return We;au=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,r=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,S=e?Symbol.for("react.fundamental"):60117,E=e?Symbol.for("react.responder"):60118,k=e?Symbol.for("react.scope"):60119;function I(y){if(typeof y=="object"&&y!==null){var g=y.$$typeof;switch(g){case t:switch(y=y.type,y){case u:case f:case i:case s:case r:case h:return y;default:switch(y=y&&y.$$typeof,y){case l:case p:case b:case m:case o:return y;default:return g}}case n:return g}}}function N(y){return I(y)===f}return We.AsyncMode=u,We.ConcurrentMode=f,We.ContextConsumer=l,We.ContextProvider=o,We.Element=t,We.ForwardRef=p,We.Fragment=i,We.Lazy=b,We.Memo=m,We.Portal=n,We.Profiler=s,We.StrictMode=r,We.Suspense=h,We.isAsyncMode=function(y){return N(y)||I(y)===u},We.isConcurrentMode=N,We.isContextConsumer=function(y){return I(y)===l},We.isContextProvider=function(y){return I(y)===o},We.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===t},We.isForwardRef=function(y){return I(y)===p},We.isFragment=function(y){return I(y)===i},We.isLazy=function(y){return I(y)===b},We.isMemo=function(y){return I(y)===m},We.isPortal=function(y){return I(y)===n},We.isProfiler=function(y){return I(y)===s},We.isStrictMode=function(y){return I(y)===r},We.isSuspense=function(y){return I(y)===h},We.isValidElementType=function(y){return typeof y=="string"||typeof y=="function"||y===i||y===f||y===s||y===r||y===h||y===d||typeof y=="object"&&y!==null&&(y.$$typeof===b||y.$$typeof===m||y.$$typeof===o||y.$$typeof===l||y.$$typeof===p||y.$$typeof===S||y.$$typeof===E||y.$$typeof===k||y.$$typeof===v)},We.typeOf=I,We}var Ge={},su;function cE(){if(su)return Ge;su=1;var e={};/** @license React v16.13.1
|
|
132
|
+
* react-is.development.js
|
|
133
|
+
*
|
|
134
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
135
|
+
*
|
|
136
|
+
* This source code is licensed under the MIT license found in the
|
|
137
|
+
* LICENSE file in the root directory of this source tree.
|
|
138
|
+
*/return e.NODE_ENV!=="production"&&(function(){var t=typeof Symbol=="function"&&Symbol.for,n=t?Symbol.for("react.element"):60103,i=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,s=t?Symbol.for("react.strict_mode"):60108,o=t?Symbol.for("react.profiler"):60114,l=t?Symbol.for("react.provider"):60109,u=t?Symbol.for("react.context"):60110,f=t?Symbol.for("react.async_mode"):60111,p=t?Symbol.for("react.concurrent_mode"):60111,h=t?Symbol.for("react.forward_ref"):60112,d=t?Symbol.for("react.suspense"):60113,m=t?Symbol.for("react.suspense_list"):60120,b=t?Symbol.for("react.memo"):60115,v=t?Symbol.for("react.lazy"):60116,S=t?Symbol.for("react.block"):60121,E=t?Symbol.for("react.fundamental"):60117,k=t?Symbol.for("react.responder"):60118,I=t?Symbol.for("react.scope"):60119;function N(Y){return typeof Y=="string"||typeof Y=="function"||Y===r||Y===p||Y===o||Y===s||Y===d||Y===m||typeof Y=="object"&&Y!==null&&(Y.$$typeof===v||Y.$$typeof===b||Y.$$typeof===l||Y.$$typeof===u||Y.$$typeof===h||Y.$$typeof===E||Y.$$typeof===k||Y.$$typeof===I||Y.$$typeof===S)}function y(Y){if(typeof Y=="object"&&Y!==null){var le=Y.$$typeof;switch(le){case n:var de=Y.type;switch(de){case f:case p:case r:case o:case s:case d:return de;default:var Se=de&&de.$$typeof;switch(Se){case u:case h:case v:case b:case l:return Se;default:return le}}case i:return le}}}var g=f,A=p,M=u,F=l,R=n,j=h,B=r,D=v,se=b,ue=i,te=o,ae=s,ge=d,ve=!1;function L(Y){return ve||(ve=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),G(Y)||y(Y)===f}function G(Y){return y(Y)===p}function ne(Y){return y(Y)===u}function O(Y){return y(Y)===l}function he(Y){return typeof Y=="object"&&Y!==null&&Y.$$typeof===n}function W(Y){return y(Y)===h}function Z(Y){return y(Y)===r}function H(Y){return y(Y)===v}function K(Y){return y(Y)===b}function J(Y){return y(Y)===i}function ie(Y){return y(Y)===o}function X(Y){return y(Y)===s}function $(Y){return y(Y)===d}Ge.AsyncMode=g,Ge.ConcurrentMode=A,Ge.ContextConsumer=M,Ge.ContextProvider=F,Ge.Element=R,Ge.ForwardRef=j,Ge.Fragment=B,Ge.Lazy=D,Ge.Memo=se,Ge.Portal=ue,Ge.Profiler=te,Ge.StrictMode=ae,Ge.Suspense=ge,Ge.isAsyncMode=L,Ge.isConcurrentMode=G,Ge.isContextConsumer=ne,Ge.isContextProvider=O,Ge.isElement=he,Ge.isForwardRef=W,Ge.isFragment=Z,Ge.isLazy=H,Ge.isMemo=K,Ge.isPortal=J,Ge.isProfiler=ie,Ge.isStrictMode=X,Ge.isSuspense=$,Ge.isValidElementType=N,Ge.typeOf=y})(),Ge}var ou;function Tf(){if(ou)return Gi.exports;ou=1;var e={};return e.NODE_ENV==="production"?Gi.exports=uE():Gi.exports=cE(),Gi.exports}/*
|
|
139
|
+
object-assign
|
|
140
|
+
(c) Sindre Sorhus
|
|
141
|
+
@license MIT
|
|
142
|
+
*/var Aa,lu;function hE(){if(lu)return Aa;lu=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function i(s){if(s==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(s)}function r(){try{if(!Object.assign)return!1;var s=new String("abc");if(s[5]="de",Object.getOwnPropertyNames(s)[0]==="5")return!1;for(var o={},l=0;l<10;l++)o["_"+String.fromCharCode(l)]=l;var u=Object.getOwnPropertyNames(o).map(function(p){return o[p]});if(u.join("")!=="0123456789")return!1;var f={};return"abcdefghijklmnopqrst".split("").forEach(function(p){f[p]=p}),Object.keys(Object.assign({},f)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Aa=r()?Object.assign:function(s,o){for(var l,u=i(s),f,p=1;p<arguments.length;p++){l=Object(arguments[p]);for(var h in l)t.call(l,h)&&(u[h]=l[h]);if(e){f=e(l);for(var d=0;d<f.length;d++)n.call(l,f[d])&&(u[f[d]]=l[f[d]])}}return u},Aa}var Ta,uu;function As(){if(uu)return Ta;uu=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Ta=e,Ta}var Na,cu;function Nf(){return cu||(cu=1,Na=Function.call.bind(Object.prototype.hasOwnProperty)),Na}var Pa,hu;function fE(){if(hu)return Pa;hu=1;var e={},t=function(){};if(e.NODE_ENV!=="production"){var n=As(),i={},r=Nf();t=function(o){var l="Warning: "+o;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}}}function s(o,l,u,f,p){if(e.NODE_ENV!=="production"){for(var h in o)if(r(o,h)){var d;try{if(typeof o[h]!="function"){var m=Error((f||"React class")+": "+u+" type `"+h+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[h]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw m.name="Invariant Violation",m}d=o[h](l,h,f,u,null,n)}catch(v){d=v}if(d&&!(d instanceof Error)&&t((f||"React class")+": type specification of "+u+" `"+h+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof d+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),d instanceof Error&&!(d.message in i)){i[d.message]=!0;var b=p?p():"";t("Failed "+u+" type: "+d.message+(b??""))}}}}return s.resetWarningCache=function(){e.NODE_ENV!=="production"&&(i={})},Pa=s,Pa}var Oa,fu;function pE(){if(fu)return Oa;fu=1;var e={},t=Tf(),n=hE(),i=As(),r=Nf(),s=fE(),o=function(){};e.NODE_ENV!=="production"&&(o=function(u){var f="Warning: "+u;typeof console<"u"&&console.error(f);try{throw new Error(f)}catch{}});function l(){return null}return Oa=function(u,f){var p=typeof Symbol=="function"&&Symbol.iterator,h="@@iterator";function d(G){var ne=G&&(p&&G[p]||G[h]);if(typeof ne=="function")return ne}var m="<<anonymous>>",b={array:k("array"),bigint:k("bigint"),bool:k("boolean"),func:k("function"),number:k("number"),object:k("object"),string:k("string"),symbol:k("symbol"),any:I(),arrayOf:N,element:y(),elementType:g(),instanceOf:A,node:j(),objectOf:F,oneOf:M,oneOfType:R,shape:D,exact:se};function v(G,ne){return G===ne?G!==0||1/G===1/ne:G!==G&&ne!==ne}function S(G,ne){this.message=G,this.data=ne&&typeof ne=="object"?ne:{},this.stack=""}S.prototype=Error.prototype;function E(G){if(e.NODE_ENV!=="production")var ne={},O=0;function he(Z,H,K,J,ie,X,$){if(J=J||m,X=X||K,$!==i){if(f){var Y=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw Y.name="Invariant Violation",Y}else if(e.NODE_ENV!=="production"&&typeof console<"u"){var le=J+":"+K;!ne[le]&&O<3&&(o("You are manually calling a React.PropTypes validation function for the `"+X+"` prop on `"+J+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),ne[le]=!0,O++)}}return H[K]==null?Z?H[K]===null?new S("The "+ie+" `"+X+"` is marked as required "+("in `"+J+"`, but its value is `null`.")):new S("The "+ie+" `"+X+"` is marked as required in "+("`"+J+"`, but its value is `undefined`.")):null:G(H,K,J,ie,X)}var W=he.bind(null,!1);return W.isRequired=he.bind(null,!0),W}function k(G){function ne(O,he,W,Z,H,K){var J=O[he],ie=ae(J);if(ie!==G){var X=ge(J);return new S("Invalid "+Z+" `"+H+"` of type "+("`"+X+"` supplied to `"+W+"`, expected ")+("`"+G+"`."),{expectedType:G})}return null}return E(ne)}function I(){return E(l)}function N(G){function ne(O,he,W,Z,H){if(typeof G!="function")return new S("Property `"+H+"` of component `"+W+"` has invalid PropType notation inside arrayOf.");var K=O[he];if(!Array.isArray(K)){var J=ae(K);return new S("Invalid "+Z+" `"+H+"` of type "+("`"+J+"` supplied to `"+W+"`, expected an array."))}for(var ie=0;ie<K.length;ie++){var X=G(K,ie,W,Z,H+"["+ie+"]",i);if(X instanceof Error)return X}return null}return E(ne)}function y(){function G(ne,O,he,W,Z){var H=ne[O];if(!u(H)){var K=ae(H);return new S("Invalid "+W+" `"+Z+"` of type "+("`"+K+"` supplied to `"+he+"`, expected a single ReactElement."))}return null}return E(G)}function g(){function G(ne,O,he,W,Z){var H=ne[O];if(!t.isValidElementType(H)){var K=ae(H);return new S("Invalid "+W+" `"+Z+"` of type "+("`"+K+"` supplied to `"+he+"`, expected a single ReactElement type."))}return null}return E(G)}function A(G){function ne(O,he,W,Z,H){if(!(O[he]instanceof G)){var K=G.name||m,J=L(O[he]);return new S("Invalid "+Z+" `"+H+"` of type "+("`"+J+"` supplied to `"+W+"`, expected ")+("instance of `"+K+"`."))}return null}return E(ne)}function M(G){if(!Array.isArray(G))return e.NODE_ENV!=="production"&&(arguments.length>1?o("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):o("Invalid argument supplied to oneOf, expected an array.")),l;function ne(O,he,W,Z,H){for(var K=O[he],J=0;J<G.length;J++)if(v(K,G[J]))return null;var ie=JSON.stringify(G,function($,Y){var le=ge(Y);return le==="symbol"?String(Y):Y});return new S("Invalid "+Z+" `"+H+"` of value `"+String(K)+"` "+("supplied to `"+W+"`, expected one of "+ie+"."))}return E(ne)}function F(G){function ne(O,he,W,Z,H){if(typeof G!="function")return new S("Property `"+H+"` of component `"+W+"` has invalid PropType notation inside objectOf.");var K=O[he],J=ae(K);if(J!=="object")return new S("Invalid "+Z+" `"+H+"` of type "+("`"+J+"` supplied to `"+W+"`, expected an object."));for(var ie in K)if(r(K,ie)){var X=G(K,ie,W,Z,H+"."+ie,i);if(X instanceof Error)return X}return null}return E(ne)}function R(G){if(!Array.isArray(G))return e.NODE_ENV!=="production"&&o("Invalid argument supplied to oneOfType, expected an instance of array."),l;for(var ne=0;ne<G.length;ne++){var O=G[ne];if(typeof O!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+ve(O)+" at index "+ne+"."),l}function he(W,Z,H,K,J){for(var ie=[],X=0;X<G.length;X++){var $=G[X],Y=$(W,Z,H,K,J,i);if(Y==null)return null;Y.data&&r(Y.data,"expectedType")&&ie.push(Y.data.expectedType)}var le=ie.length>0?", expected one of type ["+ie.join(", ")+"]":"";return new S("Invalid "+K+" `"+J+"` supplied to "+("`"+H+"`"+le+"."))}return E(he)}function j(){function G(ne,O,he,W,Z){return ue(ne[O])?null:new S("Invalid "+W+" `"+Z+"` supplied to "+("`"+he+"`, expected a ReactNode."))}return E(G)}function B(G,ne,O,he,W){return new S((G||"React class")+": "+ne+" type `"+O+"."+he+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+W+"`.")}function D(G){function ne(O,he,W,Z,H){var K=O[he],J=ae(K);if(J!=="object")return new S("Invalid "+Z+" `"+H+"` of type `"+J+"` "+("supplied to `"+W+"`, expected `object`."));for(var ie in G){var X=G[ie];if(typeof X!="function")return B(W,Z,H,ie,ge(X));var $=X(K,ie,W,Z,H+"."+ie,i);if($)return $}return null}return E(ne)}function se(G){function ne(O,he,W,Z,H){var K=O[he],J=ae(K);if(J!=="object")return new S("Invalid "+Z+" `"+H+"` of type `"+J+"` "+("supplied to `"+W+"`, expected `object`."));var ie=n({},O[he],G);for(var X in ie){var $=G[X];if(r(G,X)&&typeof $!="function")return B(W,Z,H,X,ge($));if(!$)return new S("Invalid "+Z+" `"+H+"` key `"+X+"` supplied to `"+W+"`.\nBad object: "+JSON.stringify(O[he],null," ")+`
|
|
143
|
+
Valid keys: `+JSON.stringify(Object.keys(G),null," "));var Y=$(K,X,W,Z,H+"."+X,i);if(Y)return Y}return null}return E(ne)}function ue(G){switch(typeof G){case"number":case"string":case"undefined":return!0;case"boolean":return!G;case"object":if(Array.isArray(G))return G.every(ue);if(G===null||u(G))return!0;var ne=d(G);if(ne){var O=ne.call(G),he;if(ne!==G.entries){for(;!(he=O.next()).done;)if(!ue(he.value))return!1}else for(;!(he=O.next()).done;){var W=he.value;if(W&&!ue(W[1]))return!1}}else return!1;return!0;default:return!1}}function te(G,ne){return G==="symbol"?!0:ne?ne["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&ne instanceof Symbol:!1}function ae(G){var ne=typeof G;return Array.isArray(G)?"array":G instanceof RegExp?"object":te(ne,G)?"symbol":ne}function ge(G){if(typeof G>"u"||G===null)return""+G;var ne=ae(G);if(ne==="object"){if(G instanceof Date)return"date";if(G instanceof RegExp)return"regexp"}return ne}function ve(G){var ne=ge(G);switch(ne){case"array":case"object":return"an "+ne;case"boolean":case"date":case"regexp":return"a "+ne;default:return ne}}function L(G){return!G.constructor||!G.constructor.name?m:G.constructor.name}return b.checkPropTypes=s,b.resetWarningCache=s.resetWarningCache,b.PropTypes=b,b},Oa}var Ra,pu;function dE(){if(pu)return Ra;pu=1;var e=As();function t(){}function n(){}return n.resetWarningCache=t,Ra=function(){function i(o,l,u,f,p,h){if(h!==e){var d=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw d.name="Invariant Violation",d}}i.isRequired=i;function r(){return i}var s={array:i,bigint:i,bool:i,func:i,number:i,object:i,string:i,symbol:i,any:i,arrayOf:r,element:i,elementType:i,instanceOf:r,node:i,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:n,resetWarningCache:t};return s.PropTypes=s,s},Ra}var du;function gE(){if(du)return Wi.exports;du=1;var e={};if(e.NODE_ENV!=="production"){var t=Tf(),n=!0;Wi.exports=pE()(t.isElement,n)}else Wi.exports=dE()();return Wi.exports}var mE=gE();const ee=Lr(mE);var Ji={exports:{}},Ye={};/** @license React v17.0.2
|
|
144
|
+
* react-is.production.min.js
|
|
145
|
+
*
|
|
146
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
147
|
+
*
|
|
148
|
+
* This source code is licensed under the MIT license found in the
|
|
149
|
+
* LICENSE file in the root directory of this source tree.
|
|
150
|
+
*/var gu;function xE(){if(gu)return Ye;gu=1;var e=60103,t=60106,n=60107,i=60108,r=60114,s=60109,o=60110,l=60112,u=60113,f=60120,p=60115,h=60116,d=60121,m=60122,b=60117,v=60129,S=60131;if(typeof Symbol=="function"&&Symbol.for){var E=Symbol.for;e=E("react.element"),t=E("react.portal"),n=E("react.fragment"),i=E("react.strict_mode"),r=E("react.profiler"),s=E("react.provider"),o=E("react.context"),l=E("react.forward_ref"),u=E("react.suspense"),f=E("react.suspense_list"),p=E("react.memo"),h=E("react.lazy"),d=E("react.block"),m=E("react.server.block"),b=E("react.fundamental"),v=E("react.debug_trace_mode"),S=E("react.legacy_hidden")}function k(D){if(typeof D=="object"&&D!==null){var se=D.$$typeof;switch(se){case e:switch(D=D.type,D){case n:case r:case i:case u:case f:return D;default:switch(D=D&&D.$$typeof,D){case o:case l:case h:case p:case s:return D;default:return se}}case t:return se}}}var I=s,N=e,y=l,g=n,A=h,M=p,F=t,R=r,j=i,B=u;return Ye.ContextConsumer=o,Ye.ContextProvider=I,Ye.Element=N,Ye.ForwardRef=y,Ye.Fragment=g,Ye.Lazy=A,Ye.Memo=M,Ye.Portal=F,Ye.Profiler=R,Ye.StrictMode=j,Ye.Suspense=B,Ye.isAsyncMode=function(){return!1},Ye.isConcurrentMode=function(){return!1},Ye.isContextConsumer=function(D){return k(D)===o},Ye.isContextProvider=function(D){return k(D)===s},Ye.isElement=function(D){return typeof D=="object"&&D!==null&&D.$$typeof===e},Ye.isForwardRef=function(D){return k(D)===l},Ye.isFragment=function(D){return k(D)===n},Ye.isLazy=function(D){return k(D)===h},Ye.isMemo=function(D){return k(D)===p},Ye.isPortal=function(D){return k(D)===t},Ye.isProfiler=function(D){return k(D)===r},Ye.isStrictMode=function(D){return k(D)===i},Ye.isSuspense=function(D){return k(D)===u},Ye.isValidElementType=function(D){return typeof D=="string"||typeof D=="function"||D===n||D===r||D===v||D===i||D===u||D===f||D===S||typeof D=="object"&&D!==null&&(D.$$typeof===h||D.$$typeof===p||D.$$typeof===s||D.$$typeof===o||D.$$typeof===l||D.$$typeof===b||D.$$typeof===d||D[0]===m)},Ye.typeOf=k,Ye}var Qe={},mu;function vE(){if(mu)return Qe;mu=1;var e={};/** @license React v17.0.2
|
|
151
|
+
* react-is.development.js
|
|
152
|
+
*
|
|
153
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
154
|
+
*
|
|
155
|
+
* This source code is licensed under the MIT license found in the
|
|
156
|
+
* LICENSE file in the root directory of this source tree.
|
|
157
|
+
*/return e.NODE_ENV!=="production"&&(function(){var t=60103,n=60106,i=60107,r=60108,s=60114,o=60109,l=60110,u=60112,f=60113,p=60120,h=60115,d=60116,m=60121,b=60122,v=60117,S=60129,E=60131;if(typeof Symbol=="function"&&Symbol.for){var k=Symbol.for;t=k("react.element"),n=k("react.portal"),i=k("react.fragment"),r=k("react.strict_mode"),s=k("react.profiler"),o=k("react.provider"),l=k("react.context"),u=k("react.forward_ref"),f=k("react.suspense"),p=k("react.suspense_list"),h=k("react.memo"),d=k("react.lazy"),m=k("react.block"),b=k("react.server.block"),v=k("react.fundamental"),k("react.scope"),k("react.opaque.id"),S=k("react.debug_trace_mode"),k("react.offscreen"),E=k("react.legacy_hidden")}var I=!1;function N($){return!!(typeof $=="string"||typeof $=="function"||$===i||$===s||$===S||$===r||$===f||$===p||$===E||I||typeof $=="object"&&$!==null&&($.$$typeof===d||$.$$typeof===h||$.$$typeof===o||$.$$typeof===l||$.$$typeof===u||$.$$typeof===v||$.$$typeof===m||$[0]===b))}function y($){if(typeof $=="object"&&$!==null){var Y=$.$$typeof;switch(Y){case t:var le=$.type;switch(le){case i:case s:case r:case f:case p:return le;default:var de=le&&le.$$typeof;switch(de){case l:case u:case d:case h:case o:return de;default:return Y}}case n:return Y}}}var g=l,A=o,M=t,F=u,R=i,j=d,B=h,D=n,se=s,ue=r,te=f,ae=!1,ge=!1;function ve($){return ae||(ae=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function L($){return ge||(ge=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function G($){return y($)===l}function ne($){return y($)===o}function O($){return typeof $=="object"&&$!==null&&$.$$typeof===t}function he($){return y($)===u}function W($){return y($)===i}function Z($){return y($)===d}function H($){return y($)===h}function K($){return y($)===n}function J($){return y($)===s}function ie($){return y($)===r}function X($){return y($)===f}Qe.ContextConsumer=g,Qe.ContextProvider=A,Qe.Element=M,Qe.ForwardRef=F,Qe.Fragment=R,Qe.Lazy=j,Qe.Memo=B,Qe.Portal=D,Qe.Profiler=se,Qe.StrictMode=ue,Qe.Suspense=te,Qe.isAsyncMode=ve,Qe.isConcurrentMode=L,Qe.isContextConsumer=G,Qe.isContextProvider=ne,Qe.isElement=O,Qe.isForwardRef=he,Qe.isFragment=W,Qe.isLazy=Z,Qe.isMemo=H,Qe.isPortal=K,Qe.isProfiler=J,Qe.isStrictMode=ie,Qe.isSuspense=X,Qe.isValidElementType=N,Qe.typeOf=y})(),Qe}var xu;function bE(){if(xu)return Ji.exports;xu=1;var e={};return e.NODE_ENV==="production"?Ji.exports=xE():Ji.exports=vE(),Ji.exports}var vu=bE();function bu(e){return typeof e=="object"&&e!=null&&e.nodeType===1}function yu(e,t){return(!t||e!=="hidden")&&e!=="visible"&&e!=="clip"}function La(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return yu(n.overflowY,t)||yu(n.overflowX,t)||(function(i){var r=(function(s){if(!s.ownerDocument||!s.ownerDocument.defaultView)return null;try{return s.ownerDocument.defaultView.frameElement}catch{return null}})(i);return!!r&&(r.clientHeight<i.scrollHeight||r.clientWidth<i.scrollWidth)})(e)}return!1}function Yi(e,t,n,i,r,s,o,l){return s<e&&o>t||s>e&&o<t?0:s<=e&&l<=n||o>=t&&l>=n?s-e-i:o>t&&l<n||s<e&&l>n?o-t+r:0}var yE=function(e,t){var n=window,i=t.inline,r=t.boundary,s=t.skipOverflowHiddenElements,o=typeof r=="function"?r:function($){return $!==r};if(!bu(e))throw new TypeError("Invalid target");for(var l,u,f=document.scrollingElement||document.documentElement,p=[],h=e;bu(h)&&o(h);){if((h=(u=(l=h).parentElement)==null?l.getRootNode().host||null:u)===f){p.push(h);break}h!=null&&h===document.body&&La(h)&&!La(document.documentElement)||h!=null&&La(h,s)&&p.push(h)}for(var d=n.visualViewport?n.visualViewport.width:innerWidth,m=n.visualViewport?n.visualViewport.height:innerHeight,b=window.scrollX||pageXOffset,v=window.scrollY||pageYOffset,S=e.getBoundingClientRect(),E=S.height,k=S.width,I=S.top,N=S.right,y=S.bottom,g=S.left,A=I,M=i==="center"?g+k/2:i==="end"?N:g,F=[],R=0;R<p.length;R++){var j=p[R],B=j.getBoundingClientRect(),D=B.height,se=B.width,ue=B.top,te=B.right,ae=B.bottom,ge=B.left;if(I>=0&&g>=0&&y<=m&&N<=d&&I>=ue&&y<=ae&&g>=ge&&N<=te)return F;var ve=getComputedStyle(j),L=parseInt(ve.borderLeftWidth,10),G=parseInt(ve.borderTopWidth,10),ne=parseInt(ve.borderRightWidth,10),O=parseInt(ve.borderBottomWidth,10),he=0,W=0,Z="offsetWidth"in j?j.offsetWidth-j.clientWidth-L-ne:0,H="offsetHeight"in j?j.offsetHeight-j.clientHeight-G-O:0,K="offsetWidth"in j?j.offsetWidth===0?0:se/j.offsetWidth:0,J="offsetHeight"in j?j.offsetHeight===0?0:D/j.offsetHeight:0;if(f===j)he=Yi(v,v+m,m,G,O,v+A,v+A+E,E),W=i==="start"?M:i==="center"?M-d/2:i==="end"?M-d:Yi(b,b+d,d,L,ne,b+M,b+M+k,k),he=Math.max(0,he+v),W=Math.max(0,W+b);else{he=Yi(ue,ae,D,G,O+H,A,A+E,E),W=i==="start"?M-ge-L:i==="center"?M-(ge+se/2)+Z/2:i==="end"?M-te+ne+Z:Yi(ge,te,se,L,ne+Z,M,M+k,k);var ie=j.scrollLeft,X=j.scrollTop;A+=X-(he=Math.max(0,Math.min(X+he/J,j.scrollHeight-D/J+H))),M+=ie-(W=Math.max(0,Math.min(ie+W/K,j.scrollWidth-se/K+Z)))}F.push({el:j,top:he,left:W})}return F},xe={};let wE=0;function wu(e){return typeof e=="function"?e:wt}function wt(){}function Pf(e,t){if(!e)return;yE(e,{boundary:t}).forEach(i=>{let{el:r,top:s,left:o}=i;r.scrollTop=s,r.scrollLeft=o})}function Eu(e,t,n){return e===t||t instanceof n.Node&&e.contains&&e.contains(t)}function Kr(e,t){let n;function i(){n&&clearTimeout(n)}function r(){for(var s=arguments.length,o=new Array(s),l=0;l<s;l++)o[l]=arguments[l];i(),n=setTimeout(()=>{n=null,e(...o)},t)}return r.cancel=i,r}function et(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(i){for(var r=arguments.length,s=new Array(r>1?r-1:0),o=1;o<r;o++)s[o-1]=arguments[o];return t.some(l=>(l&&l(i,...s),i.preventDownshiftDefault||i.hasOwnProperty("nativeEvent")&&i.nativeEvent.preventDownshiftDefault))}}function $t(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return i=>{t.forEach(r=>{typeof r=="function"?r(i):r&&(r.current=i)})}}function Of(){return String(wE++)}function Rf(e){let{isOpen:t,resultCount:n,previousResultCount:i}=e;return t?n?n!==i?`${n} result${n===1?" is":"s are"} available, use up and down arrow keys to navigate. Press Enter key to select.`:"":"No results are available.":""}function Su(e,t){return e=Array.isArray(e)?e[0]:e,!e&&t?t:e}function Lf(e){return typeof e.type=="string"}function Mf(e){return e.props}function EE(e,t){console.error(`The property "${t}" is required in "${e}"`)}const SE=["highlightedIndex","inputValue","isOpen","selectedItem","type"];function Qi(e){e===void 0&&(e={});const t={};return SE.forEach(n=>{e.hasOwnProperty(n)&&(t[n]=e[n])}),t}function bi(e,t){return Object.keys(e).reduce((n,i)=>(n[i]=vr(t,i)?t[i]:e[i],n),{})}function vr(e,t){return e[t]!==void 0}function yi(e){const{key:t,keyCode:n}=e;return n>=37&&n<=40&&t.indexOf("Arrow")!==0?`Arrow${t}`:t}function kE(e){return Object.prototype.toString.call(e)==="[object Object]"}function gn(e,t,n,i,r){if(r===void 0&&(r=!0),n===0)return-1;const s=n-1;(typeof t!="number"||t<0||t>=n)&&(t=e>0?-1:s+1);let o=t+e;o<0?o=r?s:0:o>s&&(o=r?0:s);const l=rn(e,o,n,i,r);return l===-1?t>=n?-1:t:l}function rn(e,t,n,i,r){const s=i(t);if(!s||!s.hasAttribute("disabled"))return t;if(e>0){for(let o=t+1;o<n;o++)if(!i(o).hasAttribute("disabled"))return o}else for(let o=t-1;o>=0;o--)if(!i(o).hasAttribute("disabled"))return o;return r?e>0?rn(1,0,n,i,!1):rn(-1,n-1,n,i,!1):-1}function br(e,t,n,i){return i===void 0&&(i=!0),t.some(r=>r&&(Eu(r,e,n)||i&&Eu(r,n.document.activeElement,n)))}let Ts=wt;xe.NODE_ENV!=="production"&&(Ts=(e,t,n)=>{const i="This prop should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled Downshift element for the lifetime of the component. More info: https://github.com/downshift-js/downshift#control-props";Object.keys(e).forEach(r=>{t[r]!==void 0&&n[r]===void 0?console.error(`downshift: A component has changed the controlled prop "${r}" to be uncontrolled. ${i}`):t[r]===void 0&&n[r]!==void 0&&console.error(`downshift: A component has changed the uncontrolled prop "${r}" to be controlled. ${i}`)})});const CE=Kr(e=>{Df(e).textContent=""},500);function Ff(e,t){const n=Df(t);e&&(n.textContent=e,CE(t))}function Df(e){e===void 0&&(e=document);let t=e.getElementById("a11y-status-message");return t||(t=e.createElement("div"),t.setAttribute("id","a11y-status-message"),t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-relevant","additions text"),Object.assign(t.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),e.body.appendChild(t),t)}const jf=xe.NODE_ENV!=="production"?"__autocomplete_unknown__":0,Vf=xe.NODE_ENV!=="production"?"__autocomplete_mouseup__":1,Bf=xe.NODE_ENV!=="production"?"__autocomplete_item_mouseenter__":2,ar=xe.NODE_ENV!=="production"?"__autocomplete_keydown_arrow_up__":3,sr=xe.NODE_ENV!=="production"?"__autocomplete_keydown_arrow_down__":4,zf=xe.NODE_ENV!=="production"?"__autocomplete_keydown_escape__":5,Kf=xe.NODE_ENV!=="production"?"__autocomplete_keydown_enter__":6,Uf=xe.NODE_ENV!=="production"?"__autocomplete_keydown_home__":7,Hf=xe.NODE_ENV!=="production"?"__autocomplete_keydown_end__":8,$f=xe.NODE_ENV!=="production"?"__autocomplete_click_item__":9,qf=xe.NODE_ENV!=="production"?"__autocomplete_blur_input__":10,Wf=xe.NODE_ENV!=="production"?"__autocomplete_change_input__":11,Gf=xe.NODE_ENV!=="production"?"__autocomplete_keydown_space_button__":12,ns=xe.NODE_ENV!=="production"?"__autocomplete_click_button__":13,Jf=xe.NODE_ENV!=="production"?"__autocomplete_blur_button__":14,Yf=xe.NODE_ENV!=="production"?"__autocomplete_controlled_prop_updated_selected_item__":15,Qf=xe.NODE_ENV!=="production"?"__autocomplete_touchend__":16;var _E=Object.freeze({__proto__:null,unknown:jf,mouseUp:Vf,itemMouseEnter:Bf,keyDownArrowUp:ar,keyDownArrowDown:sr,keyDownEscape:zf,keyDownEnter:Kf,keyDownHome:Uf,keyDownEnd:Hf,clickItem:$f,blurInput:qf,changeInput:Wf,keyDownSpaceButton:Gf,clickButton:ns,blurButton:Jf,controlledPropUpdatedSelectedItem:Yf,touchEnd:Qf});const IE=(()=>{class e extends V.Component{constructor(n){var i;super(n),i=this,this.id=this.props.id||`downshift-${Of()}`,this.menuId=this.props.menuId||`${this.id}-menu`,this.labelId=this.props.labelId||`${this.id}-label`,this.inputId=this.props.inputId||`${this.id}-input`,this.getItemId=this.props.getItemId||(h=>`${this.id}-item-${h}`),this.input=null,this.items=[],this.itemCount=null,this.previousResultCount=0,this.timeoutIds=[],this.internalSetTimeout=(h,d)=>{const m=setTimeout(()=>{this.timeoutIds=this.timeoutIds.filter(b=>b!==m),h()},d);this.timeoutIds.push(m)},this.setItemCount=h=>{this.itemCount=h},this.unsetItemCount=()=>{this.itemCount=null},this.setHighlightedIndex=function(h,d){h===void 0&&(h=i.props.defaultHighlightedIndex),d===void 0&&(d={}),d=Qi(d),i.internalSetState({highlightedIndex:h,...d})},this.clearSelection=h=>{this.internalSetState({selectedItem:null,inputValue:"",highlightedIndex:this.props.defaultHighlightedIndex,isOpen:this.props.defaultIsOpen},h)},this.selectItem=(h,d,m)=>{d=Qi(d),this.internalSetState({isOpen:this.props.defaultIsOpen,highlightedIndex:this.props.defaultHighlightedIndex,selectedItem:h,inputValue:this.props.itemToString(h),...d},m)},this.selectItemAtIndex=(h,d,m)=>{const b=this.items[h];b!=null&&this.selectItem(b,d,m)},this.selectHighlightedItem=(h,d)=>this.selectItemAtIndex(this.getState().highlightedIndex,h,d),this.internalSetState=(h,d)=>{let m,b;const v={},S=typeof h=="function";return!S&&h.hasOwnProperty("inputValue")&&this.props.onInputValueChange(h.inputValue,{...this.getStateAndHelpers(),...h}),this.setState(E=>{E=this.getState(E);let k=S?h(E):h;k=this.props.stateReducer(E,k),m=k.hasOwnProperty("selectedItem");const I={};return m&&k.selectedItem!==E.selectedItem&&(b=k.selectedItem),k.type=k.type||jf,Object.keys(k).forEach(N=>{E[N]!==k[N]&&(v[N]=k[N]),N!=="type"&&(k[N],vr(this.props,N)||(I[N]=k[N]))}),S&&k.hasOwnProperty("inputValue")&&this.props.onInputValueChange(k.inputValue,{...this.getStateAndHelpers(),...k}),I},()=>{wu(d)(),Object.keys(v).length>1&&this.props.onStateChange(v,this.getStateAndHelpers()),m&&this.props.onSelect(h.selectedItem,this.getStateAndHelpers()),b!==void 0&&this.props.onChange(b,this.getStateAndHelpers()),this.props.onUserAction(v,this.getStateAndHelpers())})},this.rootRef=h=>this._rootNode=h,this.getRootProps=function(h,d){let{refKey:m="ref",ref:b,...v}=h===void 0?{}:h,{suppressRefError:S=!1}=d===void 0?{}:d;i.getRootProps.called=!0,i.getRootProps.refKey=m,i.getRootProps.suppressRefError=S;const{isOpen:E}=i.getState();return{[m]:$t(b,i.rootRef),role:"combobox","aria-expanded":E,"aria-haspopup":"listbox","aria-owns":E?i.menuId:null,"aria-labelledby":i.labelId,...v}},this.keyDownHandlers={ArrowDown(h){if(h.preventDefault(),this.getState().isOpen){const d=h.shiftKey?5:1;this.moveHighlightedIndex(d,{type:sr})}else this.internalSetState({isOpen:!0,type:sr},()=>{const d=this.getItemCount();if(d>0){const{highlightedIndex:m}=this.getState(),b=gn(1,m,d,v=>this.getItemNodeFromIndex(v));this.setHighlightedIndex(b,{type:sr})}})},ArrowUp(h){if(h.preventDefault(),this.getState().isOpen){const d=h.shiftKey?-5:-1;this.moveHighlightedIndex(d,{type:ar})}else this.internalSetState({isOpen:!0,type:ar},()=>{const d=this.getItemCount();if(d>0){const{highlightedIndex:m}=this.getState(),b=gn(-1,m,d,v=>this.getItemNodeFromIndex(v));this.setHighlightedIndex(b,{type:ar})}})},Enter(h){if(h.which===229)return;const{isOpen:d,highlightedIndex:m}=this.getState();if(d&&m!=null){h.preventDefault();const b=this.items[m],v=this.getItemNodeFromIndex(m);if(b==null||v&&v.hasAttribute("disabled"))return;this.selectHighlightedItem({type:Kf})}},Escape(h){h.preventDefault(),this.reset({type:zf,...!this.state.isOpen&&{selectedItem:null,inputValue:""}})}},this.buttonKeyDownHandlers={...this.keyDownHandlers," "(h){h.preventDefault(),this.toggleMenu({type:Gf})}},this.inputKeyDownHandlers={...this.keyDownHandlers,Home(h){const{isOpen:d}=this.getState();if(!d)return;h.preventDefault();const m=this.getItemCount();if(m<=0||!d)return;const b=rn(1,0,m,v=>this.getItemNodeFromIndex(v),!1);this.setHighlightedIndex(b,{type:Uf})},End(h){const{isOpen:d}=this.getState();if(!d)return;h.preventDefault();const m=this.getItemCount();if(m<=0||!d)return;const b=rn(-1,m-1,m,v=>this.getItemNodeFromIndex(v),!1);this.setHighlightedIndex(b,{type:Hf})}},this.getToggleButtonProps=function(h){let{onClick:d,onPress:m,onKeyDown:b,onKeyUp:v,onBlur:S,...E}=h===void 0?{}:h;const{isOpen:k}=i.getState(),I={onClick:et(d,i.buttonHandleClick),onKeyDown:et(b,i.buttonHandleKeyDown),onKeyUp:et(v,i.buttonHandleKeyUp),onBlur:et(S,i.buttonHandleBlur)},N=E.disabled?{}:I;return{type:"button",role:"button","aria-label":k?"close menu":"open menu","aria-haspopup":!0,"data-toggle":!0,...N,...E}},this.buttonHandleKeyUp=h=>{h.preventDefault()},this.buttonHandleKeyDown=h=>{const d=yi(h);this.buttonKeyDownHandlers[d]&&this.buttonKeyDownHandlers[d].call(this,h)},this.buttonHandleClick=h=>{h.preventDefault(),this.props.environment.document.activeElement===this.props.environment.document.body&&h.target.focus(),xe.NODE_ENV==="test"?this.toggleMenu({type:ns}):this.internalSetTimeout(()=>this.toggleMenu({type:ns}))},this.buttonHandleBlur=h=>{const d=h.target;this.internalSetTimeout(()=>{!this.isMouseDown&&(this.props.environment.document.activeElement==null||this.props.environment.document.activeElement.id!==this.inputId)&&this.props.environment.document.activeElement!==d&&this.reset({type:Jf})})},this.getLabelProps=h=>({htmlFor:this.inputId,id:this.labelId,...h}),this.getInputProps=function(h){let{onKeyDown:d,onBlur:m,onChange:b,onInput:v,onChangeText:S,...E}=h===void 0?{}:h,k,I={};k="onChange";const{inputValue:N,isOpen:y,highlightedIndex:g}=i.getState();return E.disabled||(I={[k]:et(b,v,i.inputHandleChange),onKeyDown:et(d,i.inputHandleKeyDown),onBlur:et(m,i.inputHandleBlur)}),{"aria-autocomplete":"list","aria-activedescendant":y&&typeof g=="number"&&g>=0?i.getItemId(g):null,"aria-controls":y?i.menuId:null,"aria-labelledby":i.labelId,autoComplete:"off",value:N,id:i.inputId,...I,...E}},this.inputHandleKeyDown=h=>{const d=yi(h);d&&this.inputKeyDownHandlers[d]&&this.inputKeyDownHandlers[d].call(this,h)},this.inputHandleChange=h=>{this.internalSetState({type:Wf,isOpen:!0,inputValue:h.target.value,highlightedIndex:this.props.defaultHighlightedIndex})},this.inputHandleBlur=()=>{this.internalSetTimeout(()=>{const h=this.props.environment.document&&!!this.props.environment.document.activeElement&&!!this.props.environment.document.activeElement.dataset&&this.props.environment.document.activeElement.dataset.toggle&&this._rootNode&&this._rootNode.contains(this.props.environment.document.activeElement);!this.isMouseDown&&!h&&this.reset({type:qf})})},this.menuRef=h=>{this._menuNode=h},this.getMenuProps=function(h,d){let{refKey:m="ref",ref:b,...v}=h===void 0?{}:h,{suppressRefError:S=!1}=d===void 0?{}:d;return i.getMenuProps.called=!0,i.getMenuProps.refKey=m,i.getMenuProps.suppressRefError=S,{[m]:$t(b,i.menuRef),role:"listbox","aria-labelledby":v&&v["aria-label"]?null:i.labelId,id:i.menuId,...v}},this.getItemProps=function(h){let{onMouseMove:d,onMouseDown:m,onClick:b,onPress:v,index:S,item:E=xe.NODE_ENV==="production"?void 0:EE("getItemProps","item"),...k}=h===void 0?{}:h;S===void 0?(i.items.push(E),S=i.items.indexOf(E)):i.items[S]=E;const I="onClick",N=b,y={onMouseMove:et(d,()=>{S!==i.getState().highlightedIndex&&(i.setHighlightedIndex(S,{type:Bf}),i.avoidScrolling=!0,i.internalSetTimeout(()=>i.avoidScrolling=!1,250))}),onMouseDown:et(m,A=>{A.preventDefault()}),[I]:et(N,()=>{i.selectItemAtIndex(S,{type:$f})})},g=k.disabled?{onMouseDown:y.onMouseDown}:y;return{id:i.getItemId(S),role:"option","aria-selected":i.getState().highlightedIndex===S,...g,...k}},this.clearItems=()=>{this.items=[]},this.reset=function(h,d){h===void 0&&(h={}),h=Qi(h),i.internalSetState(m=>{let{selectedItem:b}=m;return{isOpen:i.props.defaultIsOpen,highlightedIndex:i.props.defaultHighlightedIndex,inputValue:i.props.itemToString(b),...h}},d)},this.toggleMenu=function(h,d){h===void 0&&(h={}),h=Qi(h),i.internalSetState(m=>{let{isOpen:b}=m;return{isOpen:!b,...b&&{highlightedIndex:i.props.defaultHighlightedIndex},...h}},()=>{const{isOpen:m,highlightedIndex:b}=i.getState();m&&i.getItemCount()>0&&typeof b=="number"&&i.setHighlightedIndex(b,h),wu(d)()})},this.openMenu=h=>{this.internalSetState({isOpen:!0},h)},this.closeMenu=h=>{this.internalSetState({isOpen:!1},h)},this.updateStatus=Kr(()=>{const h=this.getState(),d=this.items[h.highlightedIndex],m=this.getItemCount(),b=this.props.getA11yStatusMessage({itemToString:this.props.itemToString,previousResultCount:this.previousResultCount,resultCount:m,highlightedItem:d,...h});this.previousResultCount=m,Ff(b,this.props.environment.document)},200);const{defaultHighlightedIndex:r,initialHighlightedIndex:s=r,defaultIsOpen:o,initialIsOpen:l=o,initialInputValue:u="",initialSelectedItem:f=null}=this.props,p=this.getState({highlightedIndex:s,isOpen:l,inputValue:u,selectedItem:f});p.selectedItem!=null&&this.props.initialInputValue===void 0&&(p.inputValue=this.props.itemToString(p.selectedItem)),this.state=p}internalClearTimeouts(){this.timeoutIds.forEach(n=>{clearTimeout(n)}),this.timeoutIds=[]}getState(n){return n===void 0&&(n=this.state),bi(n,this.props)}getItemCount(){let n=this.items.length;return this.itemCount!=null?n=this.itemCount:this.props.itemCount!==void 0&&(n=this.props.itemCount),n}getItemNodeFromIndex(n){return this.props.environment.document.getElementById(this.getItemId(n))}scrollHighlightedItemIntoView(){{const n=this.getItemNodeFromIndex(this.getState().highlightedIndex);this.props.scrollIntoView(n,this._menuNode)}}moveHighlightedIndex(n,i){const r=this.getItemCount(),{highlightedIndex:s}=this.getState();if(r>0){const o=gn(n,s,r,l=>this.getItemNodeFromIndex(l));this.setHighlightedIndex(o,i)}}getStateAndHelpers(){const{highlightedIndex:n,inputValue:i,selectedItem:r,isOpen:s}=this.getState(),{itemToString:o}=this.props,{id:l}=this,{getRootProps:u,getToggleButtonProps:f,getLabelProps:p,getMenuProps:h,getInputProps:d,getItemProps:m,openMenu:b,closeMenu:v,toggleMenu:S,selectItem:E,selectItemAtIndex:k,selectHighlightedItem:I,setHighlightedIndex:N,clearSelection:y,clearItems:g,reset:A,setItemCount:M,unsetItemCount:F,internalSetState:R}=this;return{getRootProps:u,getToggleButtonProps:f,getLabelProps:p,getMenuProps:h,getInputProps:d,getItemProps:m,reset:A,openMenu:b,closeMenu:v,toggleMenu:S,selectItem:E,selectItemAtIndex:k,selectHighlightedItem:I,setHighlightedIndex:N,clearSelection:y,clearItems:g,setItemCount:M,unsetItemCount:F,setState:R,itemToString:o,id:l,highlightedIndex:n,inputValue:i,isOpen:s,selectedItem:r}}componentDidMount(){xe.NODE_ENV!=="production"&&this.getMenuProps.called&&!this.getMenuProps.suppressRefError&&ku(this._menuNode,this.getMenuProps);{const n=()=>{this.isMouseDown=!0},i=u=>{this.isMouseDown=!1,!br(u.target,[this._rootNode,this._menuNode],this.props.environment)&&this.getState().isOpen&&this.reset({type:Vf},()=>this.props.onOuterClick(this.getStateAndHelpers()))},r=()=>{this.isTouchMove=!1},s=()=>{this.isTouchMove=!0},o=u=>{const f=br(u.target,[this._rootNode,this._menuNode],this.props.environment,!1);!this.isTouchMove&&!f&&this.getState().isOpen&&this.reset({type:Qf},()=>this.props.onOuterClick(this.getStateAndHelpers()))},{environment:l}=this.props;l.addEventListener("mousedown",n),l.addEventListener("mouseup",i),l.addEventListener("touchstart",r),l.addEventListener("touchmove",s),l.addEventListener("touchend",o),this.cleanup=()=>{this.internalClearTimeouts(),this.updateStatus.cancel(),l.removeEventListener("mousedown",n),l.removeEventListener("mouseup",i),l.removeEventListener("touchstart",r),l.removeEventListener("touchmove",s),l.removeEventListener("touchend",o)}}}shouldScroll(n,i){const{highlightedIndex:r}=this.props.highlightedIndex===void 0?this.getState():this.props,{highlightedIndex:s}=i.highlightedIndex===void 0?n:i;return r&&this.getState().isOpen&&!n.isOpen||r!==s}componentDidUpdate(n,i){xe.NODE_ENV!=="production"&&(Ts(this.state,n,this.props),this.getMenuProps.called&&!this.getMenuProps.suppressRefError&&ku(this._menuNode,this.getMenuProps)),vr(this.props,"selectedItem")&&this.props.selectedItemChanged(n.selectedItem,this.props.selectedItem)&&this.internalSetState({type:Yf,inputValue:this.props.itemToString(this.props.selectedItem)}),!this.avoidScrolling&&this.shouldScroll(i,n)&&this.scrollHighlightedItemIntoView(),this.updateStatus()}componentWillUnmount(){this.cleanup()}render(){const n=Su(this.props.children,wt);this.clearItems(),this.getRootProps.called=!1,this.getRootProps.refKey=void 0,this.getRootProps.suppressRefError=void 0,this.getMenuProps.called=!1,this.getMenuProps.refKey=void 0,this.getMenuProps.suppressRefError=void 0,this.getLabelProps.called=!1,this.getInputProps.called=!1;const i=Su(n(this.getStateAndHelpers()));if(!i)return null;if(this.getRootProps.called||this.props.suppressRefError)return xe.NODE_ENV!=="production"&&!this.getRootProps.suppressRefError&&!this.props.suppressRefError&&AE(i,this.getRootProps),i;if(Lf(i))return V.cloneElement(i,this.getRootProps(Mf(i)));if(xe.NODE_ENV!=="production")throw new Error("downshift: If you return a non-DOM element, you must apply the getRootProps function")}}return e.defaultProps={defaultHighlightedIndex:null,defaultIsOpen:!1,getA11yStatusMessage:Rf,itemToString:t=>t==null?"":(xe.NODE_ENV!=="production"&&kE(t)&&!t.hasOwnProperty("toString")&&console.warn("downshift: An object was passed to the default implementation of `itemToString`. You should probably provide your own `itemToString` implementation. Please refer to the `itemToString` API documentation.","The object that was passed:",t),String(t)),onStateChange:wt,onInputValueChange:wt,onUserAction:wt,onChange:wt,onSelect:wt,onOuterClick:wt,selectedItemChanged:(t,n)=>t!==n,environment:typeof window>"u"?{}:window,stateReducer:(t,n)=>n,suppressRefError:!1,scrollIntoView:Pf},e.stateChangeTypes=_E,e})();xe.NODE_ENV!=="production"&&(IE.propTypes={children:ee.func,defaultHighlightedIndex:ee.number,defaultIsOpen:ee.bool,initialHighlightedIndex:ee.number,initialSelectedItem:ee.any,initialInputValue:ee.string,initialIsOpen:ee.bool,getA11yStatusMessage:ee.func,itemToString:ee.func,onChange:ee.func,onSelect:ee.func,onStateChange:ee.func,onInputValueChange:ee.func,onUserAction:ee.func,onOuterClick:ee.func,selectedItemChanged:ee.func,stateReducer:ee.func,itemCount:ee.number,id:ee.string,environment:ee.shape({addEventListener:ee.func,removeEventListener:ee.func,document:ee.shape({getElementById:ee.func,activeElement:ee.any,body:ee.any})}),suppressRefError:ee.bool,scrollIntoView:ee.func,selectedItem:ee.any,isOpen:ee.bool,inputValue:ee.string,highlightedIndex:ee.number,labelId:ee.string,inputId:ee.string,menuId:ee.string,getItemId:ee.func});function ku(e,t){let{refKey:n}=t;e||console.error(`downshift: The ref prop "${n}" from getMenuProps was not applied correctly on your menu element.`)}function AE(e,t){let{refKey:n}=t;const i=n!=="ref",r=!Lf(e);r&&!i&&!vu.isForwardRef(e)?console.error("downshift: You returned a non-DOM element. You must specify a refKey in getRootProps"):!r&&i&&console.error(`downshift: You returned a DOM element. You should not specify a refKey in getRootProps. You specified "${n}"`),!vu.isForwardRef(e)&&!Mf(e)[n]&&console.error(`downshift: You must apply the ref prop "${n}" from getRootProps onto your root element.`)}const Zf={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""};function TE(e,t,n){const{props:i,type:r}=e,s={};Object.keys(t).forEach(o=>{NE(o,e,t,n),n[o]!==t[o]&&(s[o]=n[o])}),i.onStateChange&&Object.keys(s).length&&i.onStateChange({type:r,...s})}function NE(e,t,n,i){const{props:r,type:s}=t,o=`on${Ns(e)}Change`;r[o]&&i[e]!==void 0&&i[e]!==n[e]&&r[o]({type:s,...i})}function PE(e,t){return t.changes}function OE(e){const{selectedItem:t,itemToString:n}=e;return t?`${n(t)} has been selected.`:""}const RE=Kr((e,t)=>{Ff(e(),t)},200),LE=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?V.useLayoutEffect:V.useEffect;function Xf(e){let{id:t=`downshift-${Of()}`,labelId:n,menuId:i,getItemId:r,toggleButtonId:s,inputId:o}=e;return V.useRef({labelId:n||`${t}-label`,menuId:i||`${t}-menu`,getItemId:r||(u=>`${t}-item-${u}`),toggleButtonId:s||`${t}-toggle-button`,inputId:o||`${t}-input`}).current}function ep(e,t,n){return e!==void 0?e:n.length===0?-1:n.indexOf(t)}function ME(e){return e?String(e):""}function Cu(e){return/^\S{1}$/.test(e)}function Ns(e){return`${e.slice(0,1).toUpperCase()}${e.slice(1)}`}function Ps(e){const t=V.useRef(e);return t.current=e,t}function tp(e,t,n){const i=V.useRef(),r=V.useRef(),s=V.useCallback((h,d)=>{r.current=d,h=bi(h,d.props);const m=e(h,d);return d.props.stateReducer(h,{...d,changes:m})},[e]),[o,l]=V.useReducer(s,t),u=Ps(n),f=V.useCallback(h=>l({props:u.current,...h}),[u]),p=r.current;return V.useEffect(()=>{p&&i.current&&i.current!==o&&TE(p,bi(i.current,p.props),o),i.current=o},[o,n,p]),[o,f]}function FE(e,t,n){const[i,r]=tp(e,t,n);return[bi(i,n),r]}const pi={itemToString:ME,stateReducer:PE,getA11ySelectionMessage:OE,scrollIntoView:Pf,circularNavigation:!1,environment:typeof window>"u"?{}:window};function dt(e,t,n){n===void 0&&(n=Zf);const i=e[`default${Ns(t)}`];return i!==void 0?i:n[t]}function Zi(e,t,n){n===void 0&&(n=Zf);const i=e[t];if(i!==void 0)return i;const r=e[`initial${Ns(t)}`];return r!==void 0?r:dt(e,t,n)}function np(e){const t=Zi(e,"selectedItem"),n=Zi(e,"isOpen"),i=Zi(e,"highlightedIndex"),r=Zi(e,"inputValue");return{highlightedIndex:i<0&&t&&n?e.items.indexOf(t):i,isOpen:n,selectedItem:t,inputValue:r}}function Wn(e,t,n,i){const{items:r,initialHighlightedIndex:s,defaultHighlightedIndex:o}=e,{selectedItem:l,highlightedIndex:u}=t;return r.length===0?-1:s!==void 0&&u===s?s:o!==void 0?o:l?n===0?r.indexOf(l):gn(n,r.indexOf(l),r.length,i,!1):n===0?-1:n<0?r.length-1:0}function ip(e,t,n,i){const r=V.useRef({isMouseDown:!1,isTouchMove:!1});return V.useEffect(()=>{const s=()=>{r.current.isMouseDown=!0},o=p=>{r.current.isMouseDown=!1,e&&!br(p.target,t.map(h=>h.current),n)&&i()},l=()=>{r.current.isTouchMove=!1},u=()=>{r.current.isTouchMove=!0},f=p=>{e&&!r.current.isTouchMove&&!br(p.target,t.map(h=>h.current),n,!1)&&i()};return n.addEventListener("mousedown",s),n.addEventListener("mouseup",o),n.addEventListener("touchstart",l),n.addEventListener("touchmove",u),n.addEventListener("touchend",f),function(){n.removeEventListener("mousedown",s),n.removeEventListener("mouseup",o),n.removeEventListener("touchstart",l),n.removeEventListener("touchmove",u),n.removeEventListener("touchend",f)}},[e,n]),r}let Os=()=>wt;xe.NODE_ENV!=="production"&&(Os=function(){const e=V.useRef(!0);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];const r=V.useRef(n.reduce((o,l)=>(o[l]={},o),{}));return V.useEffect(()=>{Object.keys(r.current).forEach(o=>{const l=r.current[o];if(e.current&&!Object.keys(l).length){console.error(`downshift: You forgot to call the ${o} getter function on your component / element.`);return}const{suppressRefError:u,refKey:f,elementRef:p}=l;(!p||!p.current)&&!u&&console.error(`downshift: The ref prop "${f}" from ${o} was not applied correctly on your element.`)}),e.current=!1}),V.useCallback((o,l,u,f)=>{r.current[o]={suppressRefError:l,refKey:u,elementRef:f}},[])});function yr(e,t,n){let{isInitialMount:i,highlightedIndex:r,items:s,environment:o,...l}=n;V.useEffect(()=>{i||RE(()=>e({highlightedIndex:r,highlightedItem:s[r],resultCount:s.length,...l}),o.document)},t)}function rp(e){let{highlightedIndex:t,isOpen:n,itemRefs:i,getItemNodeFromIndex:r,menuElement:s,scrollIntoView:o}=e;const l=V.useRef(!0);return LE(()=>{t<0||!n||!Object.keys(i.current).length||(l.current===!1?l.current=!0:o(r(t),s))},[t]),l}let Rs=wt;xe.NODE_ENV!=="production"&&(Rs=e=>{let{isInitialMount:t,props:n,state:i}=e;const r=V.useRef(n);V.useEffect(()=>{t||(Ts(i,r.current,n),r.current=n)},[i,n,t])});function ap(e,t,n){const{type:i,props:r}=t;let s;switch(i){case n.ItemMouseMove:s={highlightedIndex:t.disabled?-1:t.index};break;case n.MenuMouseLeave:s={highlightedIndex:-1};break;case n.ToggleButtonClick:case n.FunctionToggleMenu:s={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:Wn(r,e,0)};break;case n.FunctionOpenMenu:s={isOpen:!0,highlightedIndex:Wn(r,e,0)};break;case n.FunctionCloseMenu:s={isOpen:!1};break;case n.FunctionSetHighlightedIndex:s={highlightedIndex:t.highlightedIndex};break;case n.FunctionSetInputValue:s={inputValue:t.inputValue};break;case n.FunctionReset:s={highlightedIndex:dt(r,"highlightedIndex"),isOpen:dt(r,"isOpen"),selectedItem:dt(r,"selectedItem"),inputValue:dt(r,"inputValue")};break;default:throw new Error("Reducer called without proper action type.")}return{...e,...s}}function _u(e){for(var t=e.keysSoFar,n=e.highlightedIndex,i=e.items,r=e.itemToString,s=e.getItemNodeFromIndex,o=t.toLowerCase(),l=0;l<i.length;l++){var u=(l+n+1)%i.length,f=i[u];if(f!==void 0&&r(f).toLowerCase().startsWith(o)){var p=s(u);if(!(p!=null&&p.hasAttribute("disabled")))return u}}return n}var DE={items:ee.array.isRequired,itemToString:ee.func,getA11yStatusMessage:ee.func,getA11ySelectionMessage:ee.func,circularNavigation:ee.bool,highlightedIndex:ee.number,defaultHighlightedIndex:ee.number,initialHighlightedIndex:ee.number,isOpen:ee.bool,defaultIsOpen:ee.bool,initialIsOpen:ee.bool,selectedItem:ee.any,initialSelectedItem:ee.any,defaultSelectedItem:ee.any,id:ee.string,labelId:ee.string,menuId:ee.string,getItemId:ee.func,toggleButtonId:ee.string,stateReducer:ee.func,onSelectedItemChange:ee.func,onHighlightedIndexChange:ee.func,onStateChange:ee.func,onIsOpenChange:ee.func,environment:ee.shape({addEventListener:ee.func,removeEventListener:ee.func,document:ee.shape({getElementById:ee.func,activeElement:ee.any,body:ee.any})})};function jE(e){var t=e.isOpen,n=e.resultCount,i=e.previousResultCount;return t?n?n!==i?"".concat(n," result").concat(n===1?" is":"s are"," available, use up and down arrow keys to navigate. Press Enter or Space Bar keys to select."):"":"No results are available.":""}var VE=Ot(Ot({},pi),{getA11yStatusMessage:jE}),sp=wt;xe.NODE_ENV!=="production"&&(sp=function(e,t){ee.checkPropTypes(DE,e,"prop",t.name)});const Ls=xe.NODE_ENV!=="production"?"__menu_keydown_arrow_down__":0,Ms=xe.NODE_ENV!=="production"?"__menu_keydown_arrow_up__":1,Fs=xe.NODE_ENV!=="production"?"__menu_keydown_escape__":2,Ds=xe.NODE_ENV!=="production"?"__menu_keydown_home__":3,js=xe.NODE_ENV!=="production"?"__menu_keydown_end__":4,Vs=xe.NODE_ENV!=="production"?"__menu_keydown_enter__":5,Bs=xe.NODE_ENV!=="production"?"__menu_keydown_space_button__":6,zs=xe.NODE_ENV!=="production"?"__menu_keydown_character__":7,wr=xe.NODE_ENV!=="production"?"__menu_blur__":8,op=xe.NODE_ENV!=="production"?"__menu_mouse_leave__":9,lp=xe.NODE_ENV!=="production"?"__item_mouse_move__":10,Ks=xe.NODE_ENV!=="production"?"__item_click__":11,up=xe.NODE_ENV!=="production"?"__togglebutton_click__":12,Us=xe.NODE_ENV!=="production"?"__togglebutton_keydown_arrow_down__":13,Hs=xe.NODE_ENV!=="production"?"__togglebutton_keydown_arrow_up__":14,$s=xe.NODE_ENV!=="production"?"__togglebutton_keydown_character__":15,cp=xe.NODE_ENV!=="production"?"__function_toggle_menu__":16,hp=xe.NODE_ENV!=="production"?"__function_open_menu__":17,fp=xe.NODE_ENV!=="production"?"__function_close_menu__":18,pp=xe.NODE_ENV!=="production"?"__function_set_highlighted_index__":19,qs=xe.NODE_ENV!=="production"?"__function_select_item__":20,is=xe.NODE_ENV!=="production"?"__function_set_input_value__":21,dp=xe.NODE_ENV!=="production"?"__function_reset__":22;var gp=Object.freeze({__proto__:null,MenuKeyDownArrowDown:Ls,MenuKeyDownArrowUp:Ms,MenuKeyDownEscape:Fs,MenuKeyDownHome:Ds,MenuKeyDownEnd:js,MenuKeyDownEnter:Vs,MenuKeyDownSpaceButton:Bs,MenuKeyDownCharacter:zs,MenuBlur:wr,MenuMouseLeave:op,ItemMouseMove:lp,ItemClick:Ks,ToggleButtonClick:up,ToggleButtonKeyDownArrowDown:Us,ToggleButtonKeyDownArrowUp:Hs,ToggleButtonKeyDownCharacter:$s,FunctionToggleMenu:cp,FunctionOpenMenu:hp,FunctionCloseMenu:fp,FunctionSetHighlightedIndex:pp,FunctionSelectItem:qs,FunctionSetInputValue:is,FunctionReset:dp});function BE(e,t){const{type:n,props:i,shiftKey:r}=t;let s;switch(n){case Ks:s={isOpen:dt(i,"isOpen"),highlightedIndex:dt(i,"highlightedIndex"),selectedItem:i.items[t.index]};break;case $s:{const o=t.key,l=`${e.inputValue}${o}`,u=_u({keysSoFar:l,highlightedIndex:e.selectedItem?i.items.indexOf(e.selectedItem):-1,items:i.items,itemToString:i.itemToString,getItemNodeFromIndex:t.getItemNodeFromIndex});s={inputValue:l,...u>=0&&{selectedItem:i.items[u]}}}break;case Us:s={highlightedIndex:Wn(i,e,1,t.getItemNodeFromIndex),isOpen:!0};break;case Hs:s={highlightedIndex:Wn(i,e,-1,t.getItemNodeFromIndex),isOpen:!0};break;case Vs:case Bs:s={isOpen:dt(i,"isOpen"),highlightedIndex:dt(i,"highlightedIndex"),...e.highlightedIndex>=0&&{selectedItem:i.items[e.highlightedIndex]}};break;case Ds:s={highlightedIndex:rn(1,0,i.items.length,t.getItemNodeFromIndex,!1)};break;case js:s={highlightedIndex:rn(-1,i.items.length-1,i.items.length,t.getItemNodeFromIndex,!1)};break;case Fs:s={isOpen:!1,highlightedIndex:-1};break;case wr:s={isOpen:!1,highlightedIndex:-1};break;case zs:{const o=t.key,l=`${e.inputValue}${o}`,u=_u({keysSoFar:l,highlightedIndex:e.highlightedIndex,items:i.items,itemToString:i.itemToString,getItemNodeFromIndex:t.getItemNodeFromIndex});s={inputValue:l,...u>=0&&{highlightedIndex:u}}}break;case Ls:s={highlightedIndex:gn(r?5:1,e.highlightedIndex,i.items.length,t.getItemNodeFromIndex,i.circularNavigation)};break;case Ms:s={highlightedIndex:gn(r?-5:-1,e.highlightedIndex,i.items.length,t.getItemNodeFromIndex,i.circularNavigation)};break;case qs:s={selectedItem:t.selectedItem};break;default:return ap(e,t,gp)}return{...e,...s}}Ws.stateChangeTypes=gp;function Ws(e){e===void 0&&(e={}),sp(e,Ws);const t={...VE,...e},{items:n,scrollIntoView:i,environment:r,initialIsOpen:s,defaultIsOpen:o,itemToString:l,getA11ySelectionMessage:u,getA11yStatusMessage:f}=t,p=np(t),[h,d]=FE(BE,p,t),{isOpen:m,highlightedIndex:b,selectedItem:v,inputValue:S}=h,E=V.useRef(null),k=V.useRef(null),I=V.useRef({}),N=V.useRef(!0),y=V.useRef(null),g=Xf(t),A=V.useRef(),M=V.useRef(!0),F=Ps({state:h,props:t}),R=V.useCallback(H=>I.current[g.getItemId(H)],[g]);yr(f,[m,b,S,n],{isInitialMount:M.current,previousResultCount:A.current,items:n,environment:r,itemToString:l,...h}),yr(u,[v],{isInitialMount:M.current,previousResultCount:A.current,items:n,environment:r,itemToString:l,...h});const j=rp({menuElement:k.current,highlightedIndex:b,isOpen:m,itemRefs:I,scrollIntoView:i,getItemNodeFromIndex:R});V.useEffect(()=>(y.current=Kr(H=>{H({type:is,inputValue:""})},500),()=>{y.current.cancel()}),[]),V.useEffect(()=>{S&&y.current(d)},[d,S]),Rs({isInitialMount:M.current,props:t,state:h}),V.useEffect(()=>{if(M.current){(s||o||m)&&k.current&&k.current.focus();return}if(m){k.current&&k.current.focus();return}r.document.activeElement===k.current&&E.current&&(N.current=!1,E.current.focus())},[m]),V.useEffect(()=>{M.current||(A.current=n.length)});const B=ip(m,[k,E],r,()=>{d({type:wr})}),D=Os("getMenuProps","getToggleButtonProps");V.useEffect(()=>{M.current=!1},[]),V.useEffect(()=>{m||(I.current={})},[m]);const se=V.useMemo(()=>({ArrowDown(H){H.preventDefault(),d({type:Us,getItemNodeFromIndex:R,shiftKey:H.shiftKey})},ArrowUp(H){H.preventDefault(),d({type:Hs,getItemNodeFromIndex:R,shiftKey:H.shiftKey})}}),[d,R]),ue=V.useMemo(()=>({ArrowDown(H){H.preventDefault(),d({type:Ls,getItemNodeFromIndex:R,shiftKey:H.shiftKey})},ArrowUp(H){H.preventDefault(),d({type:Ms,getItemNodeFromIndex:R,shiftKey:H.shiftKey})},Home(H){H.preventDefault(),d({type:Ds,getItemNodeFromIndex:R})},End(H){H.preventDefault(),d({type:js,getItemNodeFromIndex:R})},Escape(){d({type:Fs})},Enter(H){H.preventDefault(),d({type:Vs})}," "(H){H.preventDefault(),d({type:Bs})}}),[d,R]),te=V.useCallback(()=>{d({type:cp})},[d]),ae=V.useCallback(()=>{d({type:fp})},[d]),ge=V.useCallback(()=>{d({type:hp})},[d]),ve=V.useCallback(H=>{d({type:pp,highlightedIndex:H})},[d]),L=V.useCallback(H=>{d({type:qs,selectedItem:H})},[d]),G=V.useCallback(()=>{d({type:dp})},[d]),ne=V.useCallback(H=>{d({type:is,inputValue:H})},[d]),O=V.useCallback(H=>({id:g.labelId,htmlFor:g.toggleButtonId,...H}),[g]),he=V.useCallback(function(H,K){let{onMouseLeave:J,refKey:ie="ref",onKeyDown:X,onBlur:$,ref:Y,...le}=H===void 0?{}:H,{suppressRefError:de=!1}=K===void 0?{}:K;const Se=F.current.state,ye=be=>{const Pe=yi(be);Pe&&ue[Pe]?ue[Pe](be):Cu(Pe)&&d({type:zs,key:Pe,getItemNodeFromIndex:R})},ke=()=>{if(N.current===!1){N.current=!0;return}!B.current.isMouseDown&&d({type:wr})},Ie=()=>{d({type:op})};return D("getMenuProps",de,ie,k),{[ie]:$t(Y,be=>{k.current=be}),id:g.menuId,role:"listbox","aria-labelledby":g.labelId,tabIndex:-1,...Se.isOpen&&Se.highlightedIndex>-1&&{"aria-activedescendant":g.getItemId(Se.highlightedIndex)},onMouseLeave:et(J,Ie),onKeyDown:et(X,ye),onBlur:et($,ke),...le}},[d,F,ue,B,D,g,R]),W=V.useCallback(function(H,K){let{onClick:J,onKeyDown:ie,refKey:X="ref",ref:$,...Y}=H===void 0?{}:H,{suppressRefError:le=!1}=K===void 0?{}:K;const de=()=>{d({type:up})},Se=ke=>{const Ie=yi(ke);Ie&&se[Ie]?se[Ie](ke):Cu(Ie)&&d({type:$s,key:Ie,getItemNodeFromIndex:R})},ye={[X]:$t($,ke=>{E.current=ke}),id:g.toggleButtonId,"aria-haspopup":"listbox","aria-expanded":F.current.state.isOpen,"aria-labelledby":`${g.labelId} ${g.toggleButtonId}`,...Y};return Y.disabled||(ye.onClick=et(J,de),ye.onKeyDown=et(ie,Se)),D("getToggleButtonProps",le,X,E),ye},[d,F,se,D,g,R]),Z=V.useCallback(function(H){let{item:K,index:J,onMouseMove:ie,onClick:X,refKey:$="ref",ref:Y,disabled:le,...de}=H===void 0?{}:H;const{state:Se,props:ye}=F.current,ke=()=>{J!==Se.highlightedIndex&&(j.current=!1,d({type:lp,index:J,disabled:le}))},Ie=()=>{d({type:Ks,index:J})},be=ep(J,K,ye.items);if(be<0)throw new Error("Pass either item or item index in getItemProps!");const Pe={disabled:le,role:"option","aria-selected":`${be===Se.highlightedIndex}`,id:g.getItemId(be),[$]:$t(Y,Be=>{Be&&(I.current[g.getItemId(be)]=Be)}),...de};return le||(Pe.onClick=et(X,Ie)),Pe.onMouseMove=et(ie,ke),Pe},[d,F,j,g]);return{getToggleButtonProps:W,getLabelProps:O,getMenuProps:he,getItemProps:Z,toggleMenu:te,openMenu:ge,closeMenu:ae,setHighlightedIndex:ve,selectItem:L,reset:G,setInputValue:ne,highlightedIndex:b,isOpen:m,selectedItem:v,inputValue:S}}const Gs=xe.NODE_ENV!=="production"?"__input_keydown_arrow_down__":0,Js=xe.NODE_ENV!=="production"?"__input_keydown_arrow_up__":1,Ys=xe.NODE_ENV!=="production"?"__input_keydown_escape__":2,Qs=xe.NODE_ENV!=="production"?"__input_keydown_home__":3,Zs=xe.NODE_ENV!=="production"?"__input_keydown_end__":4,Xs=xe.NODE_ENV!=="production"?"__input_keydown_enter__":5,eo=xe.NODE_ENV!=="production"?"__input_change__":6,Er=xe.NODE_ENV!=="production"?"__input_blur__":7,mp=xe.NODE_ENV!=="production"?"__menu_mouse_leave__":8,xp=xe.NODE_ENV!=="production"?"__item_mouse_move__":9,to=xe.NODE_ENV!=="production"?"__item_click__":10,vp=xe.NODE_ENV!=="production"?"__togglebutton_click__":11,bp=xe.NODE_ENV!=="production"?"__function_toggle_menu__":12,yp=xe.NODE_ENV!=="production"?"__function_open_menu__":13,wp=xe.NODE_ENV!=="production"?"__function_close_menu__":14,Ep=xe.NODE_ENV!=="production"?"__function_set_highlighted_index__":15,no=xe.NODE_ENV!=="production"?"__function_select_item__":16,Sp=xe.NODE_ENV!=="production"?"__function_set_input_value__":17,kp=xe.NODE_ENV!=="production"?"__function_reset__":18,io=xe.NODE_ENV!=="production"?"__controlled_prop_updated_selected_item__":19;var Cp=Object.freeze({__proto__:null,InputKeyDownArrowDown:Gs,InputKeyDownArrowUp:Js,InputKeyDownEscape:Ys,InputKeyDownHome:Qs,InputKeyDownEnd:Zs,InputKeyDownEnter:Xs,InputChange:eo,InputBlur:Er,MenuMouseLeave:mp,ItemMouseMove:xp,ItemClick:to,ToggleButtonClick:vp,FunctionToggleMenu:bp,FunctionOpenMenu:yp,FunctionCloseMenu:wp,FunctionSetHighlightedIndex:Ep,FunctionSelectItem:no,FunctionSetInputValue:Sp,FunctionReset:kp,ControlledPropUpdatedSelectedItem:io});function zE(e){const t=np(e),{selectedItem:n}=t;let{inputValue:i}=t;return i===""&&n&&e.defaultInputValue===void 0&&e.initialInputValue===void 0&&e.inputValue===void 0&&(i=e.itemToString(n)),{...t,inputValue:i}}const KE={items:ee.array.isRequired,itemToString:ee.func,getA11yStatusMessage:ee.func,getA11ySelectionMessage:ee.func,circularNavigation:ee.bool,highlightedIndex:ee.number,defaultHighlightedIndex:ee.number,initialHighlightedIndex:ee.number,isOpen:ee.bool,defaultIsOpen:ee.bool,initialIsOpen:ee.bool,selectedItem:ee.any,initialSelectedItem:ee.any,defaultSelectedItem:ee.any,inputValue:ee.string,defaultInputValue:ee.string,initialInputValue:ee.string,id:ee.string,labelId:ee.string,menuId:ee.string,getItemId:ee.func,inputId:ee.string,toggleButtonId:ee.string,stateReducer:ee.func,onSelectedItemChange:ee.func,onHighlightedIndexChange:ee.func,onStateChange:ee.func,onIsOpenChange:ee.func,onInputValueChange:ee.func,environment:ee.shape({addEventListener:ee.func,removeEventListener:ee.func,document:ee.shape({getElementById:ee.func,activeElement:ee.any,body:ee.any})})};function UE(e,t,n){const i=V.useRef(),[r,s]=tp(e,t,n);return V.useEffect(()=>{vr(n,"selectedItem")&&(i.current!==n.selectedItem&&s({type:io,inputValue:n.itemToString(n.selectedItem)}),i.current=r.selectedItem===i.current?n.selectedItem:r.selectedItem)}),[bi(r,n),s]}let _p=wt;xe.NODE_ENV!=="production"&&(_p=(e,t)=>{ee.checkPropTypes(KE,e,"prop",t.name)});const HE={...pi,getA11yStatusMessage:Rf,circularNavigation:!0};function $E(e,t){const{type:n,props:i,shiftKey:r}=t;let s;switch(n){case to:s={isOpen:dt(i,"isOpen"),highlightedIndex:dt(i,"highlightedIndex"),selectedItem:i.items[t.index],inputValue:i.itemToString(i.items[t.index])};break;case Gs:e.isOpen?s={highlightedIndex:gn(r?5:1,e.highlightedIndex,i.items.length,t.getItemNodeFromIndex,i.circularNavigation)}:s={highlightedIndex:Wn(i,e,1,t.getItemNodeFromIndex),isOpen:i.items.length>=0};break;case Js:e.isOpen?s={highlightedIndex:gn(r?-5:-1,e.highlightedIndex,i.items.length,t.getItemNodeFromIndex,i.circularNavigation)}:s={highlightedIndex:Wn(i,e,-1,t.getItemNodeFromIndex),isOpen:i.items.length>=0};break;case Xs:s={...e.isOpen&&e.highlightedIndex>=0&&{selectedItem:i.items[e.highlightedIndex],isOpen:dt(i,"isOpen"),highlightedIndex:dt(i,"highlightedIndex"),inputValue:i.itemToString(i.items[e.highlightedIndex])}};break;case Ys:s={isOpen:!1,highlightedIndex:-1,...!e.isOpen&&{selectedItem:null,inputValue:""}};break;case Qs:s={highlightedIndex:rn(1,0,i.items.length,t.getItemNodeFromIndex,!1)};break;case Zs:s={highlightedIndex:rn(-1,i.items.length-1,i.items.length,t.getItemNodeFromIndex,!1)};break;case Er:s={isOpen:!1,highlightedIndex:-1,...e.highlightedIndex>=0&&t.selectItem&&{selectedItem:i.items[e.highlightedIndex],inputValue:i.itemToString(i.items[e.highlightedIndex])}};break;case eo:s={isOpen:!0,highlightedIndex:dt(i,"highlightedIndex"),inputValue:t.inputValue};break;case no:s={selectedItem:t.selectedItem,inputValue:i.itemToString(t.selectedItem)};break;case io:s={inputValue:t.inputValue};break;default:return ap(e,t,Cp)}return{...e,...s}}Ur.stateChangeTypes=Cp;function Ur(e){e===void 0&&(e={}),_p(e,Ur);const t={...HE,...e},{initialIsOpen:n,defaultIsOpen:i,items:r,scrollIntoView:s,environment:o,getA11yStatusMessage:l,getA11ySelectionMessage:u,itemToString:f}=t,p=zE(t),[h,d]=UE($E,p,t),{isOpen:m,highlightedIndex:b,selectedItem:v,inputValue:S}=h,E=V.useRef(null),k=V.useRef({}),I=V.useRef(null),N=V.useRef(null),y=V.useRef(null),g=V.useRef(!0),A=Xf(t),M=V.useRef(),F=Ps({state:h,props:t}),R=V.useCallback(K=>k.current[A.getItemId(K)],[A]);yr(l,[m,b,S,r],{isInitialMount:g.current,previousResultCount:M.current,items:r,environment:o,itemToString:f,...h}),yr(u,[v],{isInitialMount:g.current,previousResultCount:M.current,items:r,environment:o,itemToString:f,...h});const j=rp({menuElement:E.current,highlightedIndex:b,isOpen:m,itemRefs:k,scrollIntoView:s,getItemNodeFromIndex:R});Rs({isInitialMount:g.current,props:t,state:h}),V.useEffect(()=>{(n||i||m)&&I.current&&I.current.focus()},[]),V.useEffect(()=>{g.current||(M.current=r.length)});const B=ip(m,[y,E,N],o,()=>{d({type:Er,selectItem:!1})}),D=Os("getInputProps","getComboboxProps","getMenuProps");V.useEffect(()=>{g.current=!1},[]),V.useEffect(()=>{m||(k.current={})},[m]);const se=V.useMemo(()=>({ArrowDown(K){K.preventDefault(),d({type:Gs,shiftKey:K.shiftKey,getItemNodeFromIndex:R})},ArrowUp(K){K.preventDefault(),d({type:Js,shiftKey:K.shiftKey,getItemNodeFromIndex:R})},Home(K){F.current.state.isOpen&&(K.preventDefault(),d({type:Qs,getItemNodeFromIndex:R}))},End(K){F.current.state.isOpen&&(K.preventDefault(),d({type:Zs,getItemNodeFromIndex:R}))},Escape(K){const J=F.current.state;(J.isOpen||J.inputValue||J.selectedItem||J.highlightedIndex>-1)&&(K.preventDefault(),d({type:Ys}))},Enter(K){const J=F.current.state;!J.isOpen||J.highlightedIndex<0||K.which===229||(K.preventDefault(),d({type:Xs,getItemNodeFromIndex:R}))}}),[d,F,R]),ue=V.useCallback(K=>({id:A.labelId,htmlFor:A.inputId,...K}),[A]),te=V.useCallback(function(K,J){let{onMouseLeave:ie,refKey:X="ref",ref:$,...Y}=K===void 0?{}:K,{suppressRefError:le=!1}=J===void 0?{}:J;return D("getMenuProps",le,X,E),{[X]:$t($,de=>{E.current=de}),id:A.menuId,role:"listbox","aria-labelledby":A.labelId,onMouseLeave:et(ie,()=>{d({type:mp})}),...Y}},[d,D,A]),ae=V.useCallback(function(K){let{item:J,index:ie,refKey:X="ref",ref:$,onMouseMove:Y,onMouseDown:le,onClick:de,onPress:Se,disabled:ye,...ke}=K===void 0?{}:K;const{props:Ie,state:be}=F.current,Pe=ep(ie,J,Ie.items);if(Pe<0)throw new Error("Pass either item or item index in getItemProps!");const Be="onClick",$e=de,Te=()=>{ie!==be.highlightedIndex&&(j.current=!1,d({type:xp,index:ie,disabled:ye}))},nt=()=>{d({type:to,index:ie})},Q=re=>re.preventDefault();return{[X]:$t($,re=>{re&&(k.current[A.getItemId(Pe)]=re)}),disabled:ye,role:"option","aria-selected":`${Pe===be.highlightedIndex}`,id:A.getItemId(Pe),...!ye&&{[Be]:et($e,nt)},onMouseMove:et(Y,Te),onMouseDown:et(le,Q),...ke}},[d,F,j,A]),ge=V.useCallback(function(K){let{onClick:J,onPress:ie,refKey:X="ref",ref:$,...Y}=K===void 0?{}:K;const le=()=>{d({type:vp}),!F.current.state.isOpen&&I.current&&I.current.focus()};return{[X]:$t($,de=>{N.current=de}),id:A.toggleButtonId,tabIndex:-1,...!Y.disabled&&{onClick:et(J,le)},...Y}},[d,F,A]),ve=V.useCallback(function(K,J){let{onKeyDown:ie,onChange:X,onInput:$,onBlur:Y,onChangeText:le,refKey:de="ref",ref:Se,...ye}=K===void 0?{}:K,{suppressRefError:ke=!1}=J===void 0?{}:J;D("getInputProps",ke,de,I);const Ie=F.current.state,be=nt=>{const Q=yi(nt);Q&&se[Q]&&se[Q](nt)},Pe=nt=>{d({type:eo,inputValue:nt.target.value})},Be=()=>{Ie.isOpen&&!B.current.isMouseDown&&d({type:Er,selectItem:!0})},$e="onChange";let Te={};return ye.disabled||(Te={[$e]:et(X,$,Pe),onKeyDown:et(ie,be),onBlur:et(Y,Be)}),{[de]:$t(Se,nt=>{I.current=nt}),id:A.inputId,"aria-autocomplete":"list","aria-controls":A.menuId,...Ie.isOpen&&Ie.highlightedIndex>-1&&{"aria-activedescendant":A.getItemId(Ie.highlightedIndex)},"aria-labelledby":A.labelId,autoComplete:"off",value:Ie.inputValue,...Te,...ye}},[d,se,F,B,D,A]),L=V.useCallback(function(K,J){let{refKey:ie="ref",ref:X,...$}=K===void 0?{}:K,{suppressRefError:Y=!1}=J===void 0?{}:J;return D("getComboboxProps",Y,ie,y),{[ie]:$t(X,le=>{y.current=le}),role:"combobox","aria-haspopup":"listbox","aria-owns":A.menuId,"aria-expanded":F.current.state.isOpen,...$}},[F,D,A]),G=V.useCallback(()=>{d({type:bp})},[d]),ne=V.useCallback(()=>{d({type:wp})},[d]),O=V.useCallback(()=>{d({type:yp})},[d]),he=V.useCallback(K=>{d({type:Ep,highlightedIndex:K})},[d]),W=V.useCallback(K=>{d({type:no,selectedItem:K})},[d]),Z=V.useCallback(K=>{d({type:Sp,inputValue:K})},[d]),H=V.useCallback(()=>{d({type:kp})},[d]);return{getItemProps:ae,getLabelProps:ue,getMenuProps:te,getInputProps:ve,getComboboxProps:L,getToggleButtonProps:ge,toggleMenu:G,openMenu:O,closeMenu:ne,setHighlightedIndex:he,setInputValue:Z,selectItem:W,reset:H,highlightedIndex:b,isOpen:m,selectedItem:v,inputValue:S}}ee.array,ee.array,ee.array,ee.func,ee.func,ee.func,ee.number,ee.number,ee.number,ee.func,ee.func,ee.string,ee.string,ee.shape({addEventListener:ee.func,removeEventListener:ee.func,document:ee.shape({getElementById:ee.func,activeElement:ee.any,body:ee.any})});pi.itemToString,pi.stateReducer,pi.environment;const Iu=[{label:"json",value:"json"},{label:"csv",value:"csv"}],qE=({onSelect:e})=>{const{isOpen:t,selectedItem:n,getToggleButtonProps:i,getMenuProps:r,getItemProps:s}=Ws({items:Iu,onSelectedItemChange:({selectedItem:o})=>{e(o==null?void 0:o.value)},itemToString:o=>o?o.value:""});return C.jsxs("div",{className:"w-full",children:[C.jsxs("div",{"data-cy":"localization-export-file-type-select",className:Ue("w-full p-2 flex items-center justify-between cursor-pointer space-x-1 bg-grey-300 text-grey-50 h-6",{"border-l border-r border-t border-primary-dark rounded-t":t,rounded:!t}),...i(),children:[C.jsx("span",{className:"text-grey-50 text-xs",children:n?n.label:"Select a file format"}),C.jsx(Je.FdDown,{className:"w-4 h-4"})]}),C.jsx("ul",{className:Ue("h-full rounded-b py-[6px]",{hidden:!t,"border-[1px] border-primary-dark":t}),...r(),children:t&&Iu.map((o,l)=>C.jsx("li",{className:Ue("h-5 p-1 bg-grey-900 text-xs hover:bg-primary-hover cursor-pointer"),...s({item:o,index:l}),children:o.label},l))})]})},WE=({selected:e,delimiter:t,onSelect:n,label:i})=>C.jsxs("div",{className:"flex flex-row items-center justify-between space-x-2",children:[C.jsx("div",{className:"flex h-[16px] w-[16px] items-center justify-center rounded-full border",onClick:()=>n(t),children:e===t&&C.jsx("div",{className:"h-2 w-2 rounded-full bg-primary-dark"})}),C.jsxs("div",{className:"text-sm text-grey-50",children:[i,` (${t})`]})]}),GE=({enable:e,onSelect:t})=>{const{state:n,actions:i}=fe.useStateObject({delimiters:[{label:"Comma",value:","},{label:"Semicolon",value:";"}],selected:","});return V.useEffect(()=>{t(n.selected)},[n.selected]),e?C.jsxs("div",{className:"flex flex-row items-center justify-between",children:[C.jsx("span",{className:"text-sm text-grey-50",children:" Select a Delimiter "}),C.jsx("div",{className:"flex flex-row space-x-2",children:n.delimiters.map(({label:r,value:s},o)=>C.jsx(WE,{onSelect:l=>i.setSelected(l),selected:n.selected,delimiter:s,label:r},o))})]}):C.jsx(C.Fragment,{})},JE={SELECT_FILE_TYPE:"Please Select a File Format !"},YE=({toExport:e})=>{var se,ue;const[t,n]=V.useState(),i=vn(),r=i.getWebformTabs(),s=V.useRef(null),o=V.useRef([]),l=V.useRef([]),{i18n:u}=sn(),f=((se=i.getUserComponents)==null?void 0:se.call(i))??{},p=((ue=i.getBuildResolver)==null?void 0:ue.call(i))??{},[h]=V.useState(!0),{state:{isOpen:d,fileType:m,error:b,csvDelimier:v},actions:S}=fe.useStateObject({error:"",isOpen:!1,fileType:"",supprtedExtension:[".json",".csv"],csvDelimier:","}),E=e.length===0;V.useEffect(()=>{fe.tasksManagerSubject.subscribe({next:te=>{if(te.type==="i18n"&&te.action==="cancel"){const{id:ae}=te;l.current.push(ae)}}}),n({...p,...f})},[]);const k=()=>{S.setFileType(""),S.setError(""),S.setIsOpen(!1)},I=()=>{k()},N=()=>I(),y=()=>{const te={};t&&(Object.entries(t).forEach(([ae,ge])=>{const{info:{settings:ve}}=ge;if(ve)if(ae==="Text")te.Text=[{keyPropName:"doc",keyDefaultName:"text"}];else{const L=g(ve,"");te[ae]=L}}),s.current=te)},g=(te,ae)=>{let ge=[];if(Array.isArray(te))te.forEach(ve=>ge=ge.concat(g(ve,ae)));else if(oe.isObject(te)){const{key:ve,type:L}=te;if(L===fe.ESetting.GROUP){const{components:G}=te;G==null||G.forEach(ne=>ge=ge.concat(g(ne,ae)))}else L===fe.ESetting.I18NFIELD?ge.push({keyPropName:ae||ve,keyDefaultName:ve}):Object.entries(te).forEach(([,G])=>{oe.isObject(G)&&(ge=ge.concat(g(G,ae||ve)))})}return ge},A=(te,ae)=>{const{content:ge}=te,{components:ve}=ge,L={};if(!ve)return te;const G=(O,he,W,Z)=>{const H=[];if(oe.has(O,W)){const ie=oe.get(O,W);H.push(...Xa(ie,W,Z))}const J=[];return H.forEach(ie=>{const X=oe.get(O,ie),$={__dataPath:ie,__default:X};e.forEach(Y=>{const le=`i18n:${Y}`,de=Object.keys(he),Se=de.find(ke=>ke.startsWith(le)),ye=de.reduce((ke,Ie)=>(Ie!==le&&Ie.endsWith(le)&&ke.push(Ie),ke),[]);if(Se){const ke=oe.get(he,`${Se}.${ie}`);oe.set($,Y,ke)}if(ye.length&&ye.forEach(ke=>{const Ie=oe.get(he,`${ke}.${ie}`);let be=ke;be=ke.replace("states:",""),be=be.replace("i18n:",""),Ie&&oe.set($,be,Ie)}),!Se){const ke=oe.get(O,`${ie}`);oe.set($,Y,ke)}}),J.push($)}),J},ne=(O,he,W)=>{const Z=[],H=oe.get(O,W);return H?(Z.push({key:"__default",props:H}),e.forEach(J=>{const ie=`i18n:${J}`,X=Object.keys(he),$=X.find(le=>le.startsWith(ie)),Y=X.reduce((le,de)=>(de!==ie&&de.endsWith(ie)&&le.push(de),le),[]);if($){const le=oe.get(he,`${$}.${W}`);le&&Z.push({key:J,props:le})}Y.length&&Y.forEach(le=>{const de=oe.get(he,`${le}.${W}`);Z.push({key:le,props:de||""})}),!$&&!Y.length&&Z.push({key:J,props:H})}),Z.reduce((J,ie)=>{const{key:X,props:$}=ie,Y=g1($);return{...J,[X]:Y}},{__dataPath:W})):O};return Object.entries(ve).forEach(([O,he])=>{const{props:W,custom:Z={},type:H}=he,K=H.resolvedName,J=ae[K];if(!J||J.length===0)return;const ie=J.map(({keyPropName:X,keyDefaultName:$})=>K==="Text"?ne(W,Z,X):G(W,Z,X,$));oe.set(L,O,{resolverName:K,props:[...ie.flat()]})}),L},M=async(te,ae)=>{const ge={},ve=L=>{const G=L+1===te.length?te.length:L,ne=Math.ceil(G/te.length*100);fe.tasksManagerSubject.next({id:ae,action:"update",type:"i18n",payload:{progress:ne,status:ne>=100?"finished":"ongoing"}})};for(let L=0;L<te.length;L++){const G=te[L],ne=r.find(W=>W.name===G.name&&W.type==="webform");if(!s.current){ve(L);continue}const O=ne||await fe.getNodeInfo({verb:fe.DesignerRequestVerb.GET_INFO,content:!0,path:`WebForms/${G.name}.${G.ext}`,as:"json"}),he=A(O,s.current);if(oe.isEmpty(he)||oe.set(ge,G.name,he),l.current.find(W=>W===ae))return{};ve(L)}return ge},F=(te,ae,ge)=>{const ve="data:text/json;charset=utf-8,"+encodeURIComponent(te),L=document.createElement("a");L.setAttribute("href",ve),L.setAttribute("download",ae+`.${ge}`),document.body.appendChild(L),L.click(),L.remove()},R=te=>{switch(m){case"csv":{const ae=["keys","resolverName","__t"].concat(e.concat(["i18nkey_default"]));return p1(te,ae,v)}case"json":return JSON.stringify(te,null," ");default:return JSON.stringify(te,null," ")}},j=(te,ae)=>{Object.entries(ae.keys).forEach(([ve,L])=>{Object.keys(L).forEach(G=>{o.current.push(`i18n.${ve}.${G}`)})});const ge={};return Object.entries(ae.keys).forEach(([ve,L])=>{ge[ve]={default:L.default},e.forEach(G=>{ge[ve][G]=Object.hasOwn(L,G)?L[G]:h?L.default:void 0})}),{webforms:{...te},i18n:ge}},B=te=>S.setCsvDelimier(te),D=async()=>{const te=ss.generate().toString();try{fe.tasksManagerSubject.next({id:te,action:"add",type:"i18n",payload:{progress:0,name:"Export i18n",status:"ongoing",date:new Date().toISOString(),time:f1()}}),y();const ae=await Wh(),ge=await M(ae,te),ve=j(ge,u),L=R(ve);oe.isEmpty(L)||F(L,"export-i18n",m),k()}catch(ae){fe.tasksManagerSubject.next({id:te,type:"i18n",action:"update",payload:{status:"canceled"}}),fe.tasksManagerSubject.next({id:te,type:"i18n",action:"error",payload:{errorMessage:ae.message||"Export file error"}})}k()};return C.jsxs(C.Fragment,{children:[C.jsx(fe.Tooltip,{label:"Export",container:it(),children:C.jsx("button",{"data-cy":"localization-export-button",disabled:E,className:Ue("flex h-full flex-row items-center p-1 rounded disabled:opacity-50",{"cursor-not-allowed":E},{"hover:bg-primary-hover":!E}),onClick:()=>{S.setIsOpen(!0)},children:C.jsx(Je.FdUpload,{className:"h-4 w-4"})})}),C.jsxs(Af,{isOpen:d,onClose:I,title:"Export","data-cy":"localization-export-dialog",children:[C.jsx("div",{className:"mt-4",children:C.jsx(qE,{onSelect:te=>S.setFileType(te)})}),C.jsx(GE,{enable:m==="csv",onSelect:B}),C.jsxs("div",{className:"mt-3 flex items-center justify-between gap-4",children:[C.jsxs("div",{className:"flex flex-row space-x-1 justify-center items-center text-purple-600 hover:underline cursor-pointer",onClick:()=>{window.open("https://developer.4d.com/qodly/4DQodlyPro/localization#exporting-and-importing-translations","_blank")},children:[C.jsx("p",{className:"text-xs",children:"How to Export an i18n File"}),C.jsx(Je.FdOutload,{className:"ml-1 h-4 w-4 text-grey-50"})]}),C.jsxs("div",{className:"flex items-center space-x-2",children:[C.jsx("button",{onClick:N,className:"rounded border w-16 border-white px-2 py-1 text-xs font-medium text-grey-50 hover:bg-white hover:border-white hover:font-bold hover:text-primary-dark",children:"Cancel"}),C.jsx("button",{onClick:()=>{m?(S.setIsOpen(!1),D()):S.setError(JE.SELECT_FILE_TYPE)},className:"rounded w-16 px-2 py-1 text-xs font-medium text-grey-50 bg-primary-dark hover:border-white hover:border hover:bg-primary-hover hover:text-white hover:font-bold",children:"Export"})]})]}),b&&C.jsx("div",{className:"flex items-center justify-center p-2",children:C.jsx("span",{className:"text-sm text-red-500",children:b})})]})]})},QE={DROP_EVENT_ERROR:"Not Suported File type! Only .json and .csv are Supported."},ZE=["default"],XE={MISSING_WEBFORMS_OR_I18N:"The file must contain 'webforms' or 'i18n' (or both). The file is empty or missing these keys."},Ip=["__dataPath","__default","default","__t","i18nkey_default"],eS=["i18n:","state:"],Sr=e=>Ip.includes(e)||eS.some(t=>e.startsWith(t)),tS=e=>{const t=new Set;return e.webforms&&Object.values(e.webforms).forEach(n=>{Object.values(n).forEach(i=>{(i.props||[]).forEach(r=>{Object.keys(r).forEach(s=>{Sr(s)||t.add(s)})})})}),e.i18n&&Object.values(e.i18n).forEach(n=>{Object.keys(n||{}).forEach(i=>{Sr(i)||t.add(i)})}),Array.from(t).sort()},Au=e=>{if(Ip.includes(e))return null;if(e.startsWith("state:")){const t=e.lastIndexOf("i18n:");return t!==-1&&e.slice(t+5)||null}return e},nS=(e,t)=>{const n=new Set(t),i={};return e.webforms&&(i.webforms={},Object.entries(e.webforms).forEach(([r,s])=>{if(!s||typeof s!="object")return;const o={};Object.entries(s).forEach(([l,u])=>{if(!u||typeof u!="object")return;const f={resolverName:u.resolverName};u.resolverName==="Text"?(u.props&&(f.props=u.props),u.custom&&(f.custom={},Object.entries(u.custom).forEach(([h,d])=>{const m=h.startsWith("state:")||h.startsWith("states:")?Au(h):h.startsWith("i18n:")?h.slice(5):h;m&&n.has(m)&&(f.custom[h]=d)}))):Object.entries(u).forEach(([h,d])=>{if(h!=="resolverName")if(d&&oe.isObject(d)&&!Array.isArray(d)){const m={};Object.entries(d).forEach(([b,v])=>{const S=Au(b);(S===null||n.has(S))&&(m[b]=v)}),Object.keys(m).length>0&&(f[h]=m)}else f[h]=d}),o[l]=f}),i.webforms[r]=o})),e.i18n&&(i.i18n={},Object.entries(e.i18n).forEach(([r,s])=>{if(!s||typeof s!="object")return;const o={};Object.entries(s).forEach(([l,u])=>{(l==="default"||!Sr(l)&&n.has(l))&&(o[l]=u)}),Object.keys(o).length>0&&(i.i18n[r]=o)})),i},iS=e=>{const{data:t}=ls.parse(e),n=t[0];if(!n||!Array.isArray(n))return[];const i=n.slice(2).filter(r=>r&&!Sr(r.trim()));return[...new Set(i)].sort()},Kn={EMPTY_OR_INVALID:"The CSV file is empty or could not be parsed.",HEADER_REQUIRED:"The first row must be a header with at least columns: 'keys', 'resolverName', and one locale (e.g. __t, fr, en).",KEY_FORMAT:"Each data row's first column (keys) must be non-empty and start with 'webforms.' or 'i18n.'.",ROW_COLUMNS:"Every row must have the same number of columns as the header."},rS=e=>{const t=Gh(e),{data:n}=ls.parse(t),i=n;if(!(i!=null&&i.length))return{valid:!1,message:Kn.EMPTY_OR_INVALID};const r=i[0];if(!r||r.length<3)return{valid:!1,message:Kn.HEADER_REQUIRED};const s=(r[0]??"").trim().toLowerCase(),o=(r[1]??"").trim().toLowerCase();if(s!=="keys"||o!=="resolvername")return{valid:!1,message:Kn.HEADER_REQUIRED};const l=r.length;for(let u=1;u<i.length;u++){if(i[u].length<=1)continue;const f=i[u];if(!f||f.length!==l)return{valid:!1,message:Kn.ROW_COLUMNS};const p=(f[0]??"").trim();if(!p)return{valid:!1,message:Kn.KEY_FORMAT};if(!p.startsWith("webforms.")&&!p.startsWith("i18n."))return{valid:!1,message:Kn.KEY_FORMAT}}return{valid:!0}},aS=(e,t)=>{const i=new dd.Validator().validate(e,t);if(i.valid)return{valid:!0};const r=i.errors[0],s=r?`${r.property||"root"} ${r.message}`.trim():"Invalid file format";return{valid:!1,message:oe.isObject(e)&&!oe.has(e,"webforms")&&!oe.has(e,"i18n")&&(s.includes("subschema")||s.includes("any of"))?XE.MISSING_WEBFORMS_OR_I18N:s}},sS="Export i18n",oS="Schema for i18n export format. Must have webforms, i18n, or both.",lS="object",uS=!1,cS={webforms:{type:"object",description:"Webform names to their component localizations",additionalProperties:{$ref:"#/definitions/webformComponents"}},i18n:{type:"object",description:"Shared i18n keys and their localized values",additionalProperties:{$ref:"#/definitions/i18nKeys"}}},hS=[{required:["webforms"]},{required:["i18n"]}],fS={webformComponents:{type:"object",description:"Component ID to component localization entry",additionalProperties:{$ref:"#/definitions/componentEntry"}},componentEntry:{type:"object",required:["resolverName","props"],additionalProperties:!1,properties:{resolverName:{type:"string",description:"Name of the component resolver (e.g. Button)"},props:{type:"array",description:"Localized prop entries",items:{$ref:"#/definitions/propLocalization"}}}},propLocalization:{type:"object",required:["__dataPath","__default"],properties:{__dataPath:{type:"string",description:"Path to the prop (e.g. text)"},__default:{type:"string",description:"Default value for the prop"}},additionalProperties:{type:"string",description:"Locale code to localized string (e.g. fr, en)"}},i18nKeys:{type:"object",required:["default"],properties:{default:{type:"string",description:"Default value"}},additionalProperties:{type:"string",description:"Locale code to localized string (e.g. fr, en)"}}},pS={title:sS,description:oS,type:lS,additionalProperties:uS,properties:cS,anyOf:hS,definitions:fS},dS=({label:e,isocode:t,isChecked:n,onToggle:i})=>C.jsxs("label",{className:"flex cursor-pointer items-center gap-2 rounded py-0.5 text-xs text-grey-50 hover:bg-grey-700 hover:text-white",children:[C.jsx(fe.Checkbox,{className:"h-4",isChecked:n,onChange:i}),C.jsx("span",{className:"truncate",title:t,children:e})]}),gS=({detectedLanguageDetails:e,selectedIsocodes:t,onToggleIsocode:n})=>C.jsxs("div",{className:"mt-2 w-full rounded border border-grey-50 bg-grey-800 px-2 py-1.5",children:[C.jsx("p",{className:"mb-1.5 text-xs font-medium text-grey-100",children:"Detected locales"}),C.jsx("div",{className:"flex flex-col gap-1 overflow-y-auto",style:{maxHeight:"5rem"},children:e.map(i=>C.jsx(dS,{label:`${i.native} - ${i.isocode??""}`,isocode:i.isocode,isChecked:t.includes(i.isocode),onToggle:()=>n(i.isocode)},i.isocode))})]}),mS="Drop or Add a File !",xS=({getRootProps:e,getInputProps:t,isDragActive:n,file:i,error:r,onResetFile:s,detectedLanguageDetails:o,selectedIsocodes:l,onToggleIsocode:u,onClose:f,onImport:p,setError:h,hasNoSelection:d})=>C.jsxs(C.Fragment,{children:[C.jsxs("div",{className:"mt-4 space-y-2",children:[C.jsxs("div",{...e(),children:[C.jsx("input",{...t()}),C.jsx("div",{className:Ue("min-h-[100px] rounded border border-dashed text-center text-sm",{"border-purple-500":n,"flex items-center justify-center":i}),children:i?C.jsxs("div",{className:"flex items-center justify-center gap-1 px-2",children:[C.jsx("p",{className:"min-w-0 flex-1 truncate",children:i.name}),C.jsx(fe.Tooltip,{label:"Remove file",container:it(),children:C.jsx("button",{type:"button",onClick:m=>{m.stopPropagation(),s()},className:"flex shrink-0 rounded p-1 text-grey-100 hover:bg-grey-700 hover:text-white","aria-label":"Remove file",children:C.jsx(Je.FdClose,{className:"h-4 w-4"})})})]}):C.jsxs("div",{className:"flex min-h-[100px] w-full flex-col items-center justify-center text-grey-100",children:[C.jsx("p",{className:"max-w-md px-2 text-center text-xs ",children:'Drag and drop the file with ".json" or ".csv" extension here or click to select it from your computer.'}),C.jsx(Je.FdDownload,{className:"mt-2 h-6 w-6 text-grey-200"})]})}),r&&C.jsx("div",{className:"flex items-center justify-center p-2",children:C.jsx("p",{className:"text-xs text-red-400",children:r})})]}),i&&o.length>0&&C.jsx(gS,{detectedLanguageDetails:o,selectedIsocodes:l,onToggleIsocode:u})]}),C.jsxs("div",{className:"mt-4 flex items-center justify-between gap-4",children:[C.jsxs("div",{className:"flex flex-row space-x-1 justify-center items-center text-purple-600 hover:underline cursor-pointer",onClick:()=>{window.open("https://developer.4d.com/qodly/4DQodlyPro/localization#exporting-and-importing-translations","_blank")},children:[C.jsx("p",{className:"text-xs",children:"How to Import an i18n File"}),C.jsx(Je.FdOutload,{className:"ml-1 h-4 w-4 text-grey-50"})]}),C.jsxs("div",{className:"flex items-center space-x-2",children:[C.jsx("button",{onClick:f,className:"rounded border w-16 border-white px-2 py-1 text-xs font-medium text-grey-50 hover:bg-white hover:border-white hover:font-bold hover:text-primary-dark",children:"Cancel"}),C.jsx("button",{disabled:d,onClick:()=>{!r&&i?p():i||h(mS)},className:Ue("rounded w-16 px-2 py-1 text-xs font-medium text-grey-50 bg-primary-dark",d&&"cursor-not-allowed opacity-50",!d&&"hover:border-white hover:border hover:bg-primary-hover hover:text-white hover:font-bold"),children:"Import"})]})]})]}),vS=({summary:e,onClose:t})=>C.jsxs(C.Fragment,{children:[C.jsxs("div",{className:"mt-4 space-y-4",children:[C.jsx("p",{className:"text-sm text-grey-100",children:"Summary"}),C.jsxs("div",{className:"rounded border border-grey-50 bg-grey-800 px-3 py-3 space-y-2",children:[C.jsxs("div",{className:"flex items-center justify-between text-xs",children:[C.jsx("span",{className:"text-grey-200",children:"Keys Imported"}),C.jsx("span",{className:"font-medium text-white",children:e.importedKeys})]}),C.jsxs("div",{className:"flex items-center justify-between text-xs",children:[C.jsx("span",{className:"text-grey-200",children:"Keys Merged"}),C.jsx("span",{className:"font-medium text-white",children:e.mergedKeys})]}),C.jsxs("div",{className:"flex items-center justify-between text-xs",children:[C.jsx("span",{className:"text-grey-200",children:"Keys Unchanged"}),C.jsx("span",{className:"font-medium text-white",children:e.unchangedKeys})]})]})]}),C.jsx("div",{className:"mt-4 flex justify-end",children:C.jsx("button",{onClick:t,className:"rounded border border-white px-4 py-1.5 text-xs font-medium text-grey-50 hover:bg-white hover:border-white hover:font-bold hover:text-primary-dark",children:"Close"})})]}),Ap=({disable:e,enable:t,RenderTrigger:n})=>{const i=vn(),{state:{file:r,isOpen:s,supprtedExtension:o,error:l,content:u,detectedLanguages:f,selectedIsocodes:p,showSummaryView:h,summary:d},actions:m}=fe.useStateObject({file:null,error:"",isOpen:!1,fileType:"",supprtedExtension:[".json",".csv"],content:{},detectedLanguages:[],selectedIsocodes:[],showSummaryView:!1,summary:{importedKeys:0,mergedKeys:0,unchangedKeys:0}}),b=i.getWebformTabs(),{i18n:{keys:v}}=sn(),{allSupportedLanguages:S,userLanguages:{supported:E,primary:k},setUserLangSettings:I}=on(),N=V.useMemo(()=>S.filter(W=>f.includes(W.isocode)),[S,f]),y=W=>{const Z=new Set(E.map(J=>J.isocode)),H=W.filter(J=>!Z.has(J));if(H.length===0)return;const K=H.map(J=>dn(J,S)).filter(J=>J!=null).map(J=>({isocode:J.isocode}));K.length!==0&&I({primary:E.length===0?K[0].isocode:k,supported:E.concat(K)})},{getRootProps:g,getInputProps:A,isDragActive:M}=pd.useDropzone({async onDropAccepted([W]){if(o.find(Z=>W.name.endsWith(Z))){m.setError(""),m.setFile(W);const Z=await j(W),H=W.name.split(".").pop()||"";try{if(H==="csv"){const K=rS(Z);if(!K.valid){m.setError(K.message);return}const J=L(Z,H);m.setContent(J||{});const ie=iS(Z);m.setDetectedLanguages(ie),m.setSelectedIsocodes(ie)}else{const K=JSON.parse(Z),J=aS(K,pS);if(!J.valid){m.setError(J.message);return}const ie=L(Z,H);m.setContent(ie||{});const X=tS(K);m.setDetectedLanguages(X),m.setSelectedIsocodes(X)}}catch(K){m.setError(K.message||"Invalid file");return}}else m.setError(QE.DROP_EVENT_ERROR)},accept:{"application/*":o},multiple:!1}),F=()=>{m.setFileType(""),m.setError(""),m.setFile(null),m.setContent({}),m.setDetectedLanguages([]),m.setSelectedIsocodes([])},R=()=>{m.setIsOpen(!1),m.setShowSummaryView(!1),m.setSummary({importedKeys:0,mergedKeys:0,unchangedKeys:0}),F()},j=W=>new Promise(Z=>{const H=new FileReader;H.onload=()=>Z(H.result),H.readAsText(W)}),B=async(W,Z,H)=>{if(H){const K=`WebForms/${Z}.WebForm`;await i.actions.setTabContent({path:K,content:W.content}),fe.webformSubject.next({path:K,action:fe.WebformActions.RECOMPUTE,payload:W.content.components})}else{const K={...W};await fe.saveContent({verb:fe.DesignerRequestVerb.SAVE_CONTENT,content:K.content,path:`WebForms/${Z}.WebForm`})}},D=(W,Z)=>{const{content:{components:H}}=oe.cloneDeep(W);if(!H)return W;const K=(X,$,Y,le)=>{if(Array.isArray(X))X.forEach((de,Se)=>{let ye="";Y==="Text"?ye=Array.isArray(de)?`${$}.[${Se}].children`:`${$}.[${Se}]`:ye=`${$}.[${Se}]`,K(de,ye,Y,le)});else if(oe.isObject(X))if(Object.keys(X).length>1){const Se=Object.keys(X),ye={};Se.forEach(Ie=>{const be=oe.get(X,Ie);if(Ie==="__t")oe.set(le,`props.${$}`,be);else if(be&&Ie.startsWith("states:")){const Pe=Ie.split(":"),Be=Pe.map(($e,Te)=>Te+1===Pe.length?`i18n:${$e}`:$e).join(":");if(!le.custom)return;oe.set(ye,`${Be}.${$}`,be)}else if(be){const Pe=`i18n:${Ie}`;if(!le.custom)return;oe.set(ye,`${Pe}.${$}`,be)}});const[ke]=$.split(".");Object.entries(ye).forEach(([Ie,be])=>{const Pe=oe.get(le,`props.${ke}`,{}),Be=oe.get(le,`custom.${Ie}.${ke}`);let $e="";typeof Be=="string"||typeof Pe=="string"?$e=oe.get(be,ke):$e=oe.merge(Be||oe.cloneDeep(Pe),oe.get(be,ke)),oe.set(le,`custom.${Ie}.${ke}`,$e)})}else{const Se=Object.entries(X)[0],ye=Se[0],ke=Se[1];$=`${$}.${ye}`,K(ke,$,Y,le)}},J=Object.entries(Z);for(let X=0;X<J.length;X++){const[$,Y]=J[X],{resolverName:le,...de}=Y,Se=oe.get(H,$);if(Se)if(le==="Text"){const{custom:ye,props:ke}=de;oe.set(H,$,{...Se,props:{...Se.props,...ke},custom:{...Se.custom,...ye}})}else Object.entries(de).forEach(([ye,ke])=>{const Ie=oe.get(H,$);if(!Ie)return;const be=oe.cloneDeep(Ie);K(ke,ye,le,be),oe.set(H,$,be)})}const ie=oe.cloneDeep(W);return oe.set(ie,"content.components",H),ie},se=W=>W==null||typeof W=="string"&&W.trim()==="",ue=(W,Z)=>{const H=W&&oe.isObject(W)?W:{},K=Z&&oe.isObject(Z)?Z:{};if(se(K))return oe.cloneDeep(H);const J=oe.cloneDeep(H);for(const ie of Object.keys(K)){const X=K[ie];if(!X||!oe.isObject(X))continue;const $=J[ie],Y=new Set([...Object.keys(X),...$&&oe.isObject($)?Object.keys($):[]]),le={};for(const de of Y){const Se=oe.get(X,de),ye=$&&oe.isObject($)?oe.get($,de):void 0;se(Se)?se(ye)||(le[de]=ye):le[de]=Se}for(const de of ZE){const Se=oe.get(le,de),ye=$&&oe.isObject($)?oe.get($,de):void 0;!se(ye)&&se(Se)&&oe.set(le,de,ye)}J[ie]=le}return J},te=(W,Z)=>{const H={importedKeys:0,mergedKeys:0,unchangedKeys:0},K=new Set(Object.keys(Z||{}));for(const J of K){const ie=Z[J],X=W[J];if(!X||!oe.isObject(X)){H.importedKeys+=1;continue}const $=Object.keys(ie);let Y=!1;for(const le of $){const de=ie[le],Se=oe.get(X,le),ye=se(de)&&!se(Se),ke=String(de??"")===String(Se??"");if(!ye&&!ke){Y=!0;break}}$.length>0&&!Y?H.unchangedKeys+=1:Y&&(H.mergedKeys+=1)}for(const J of Object.keys(W))K.has(J)||(H.unchangedKeys+=1);return H},ae=async(W,Z,H)=>{const{webforms:K,i18n:J}=W,ie=ue(v,J),X=te(v,J);fe.i18nSubject.next({action:"set_content",payload:ie});const $=Y=>{const le=Y+1===Z.length?Z.length:Y,de=Math.ceil(le/Z.length*100);fe.tasksManagerSubject.next({id:H,action:"update",type:"i18n",payload:{progress:de,status:de>=100?"finished":"ongoing"}})};if(se(K))return X;for(let Y=0;Y<Z.length;Y++){const le=Z[Y],de=b.find(be=>be.name===le.name&&be.type==="webform"),Se=!!de,ye=Se?de:await fe.getNodeInfo({verb:fe.DesignerRequestVerb.GET_INFO,content:!0,path:`WebForms/${le.name}.${le.ext}`,as:"json"}),{name:ke}=ye;if(!K[ke]){$(Y);continue}const Ie=D(ye,K[ke]);await B(Ie,ke,Se),$(Y)}return X},ge=W=>{const Z=Gh(W),{data:H}=ls.parse(Z),K={};let J=[];return H.forEach((ie,X)=>{if(X===0){J=ie;return}let $="",Y="";ie.forEach((le,de)=>{if(de===0)$=le;else if(de===1)Y=le;else if($.startsWith("i18n")){if(oe.has(K,$)&&oe.get(K,$))return;oe.set(K,$,le)}else if(le){const{webformName:Se,componentId:ye,propName:ke}=x1($);if(oe.set(K,`webforms.${Se}.${ye}.resolverName`,Y),Y==="Text"){const Ie=va(le),be=J[de];be==="__t"?oe.set(K,`webforms.${Se}.${ye}.props.${ke}`,Ie):oe.set(K,`webforms.${Se}.${ye}.custom.i18n:${be}.${ke}`,Ie)}else{const Ie=J[de];let be=Ie==="i18nkey_default"?"default":Ie;if(be.includes(":")){const Pe=be.split(":");be=Pe.map((Be,$e)=>$e===0?`states:${Be}`:$e===Pe.length-1?`i18n:${Be}`:Be).join(":")}oe.set(K,`${$}.${be}`,le)}}})}),K},ve=W=>{const Z=JSON.parse(W),H={},{webforms:K,i18n:J}=Z;return K&&Object.keys(K).forEach(X=>{const $=oe.get(K,X);Object.keys($).forEach(le=>{const de=oe.get($,le),{props:Se,resolverName:ye}=de;oe.set(H,`webforms.${X}.${le}.resolverName`,ye),Array.isArray(Se)&&Se.forEach(({__dataPath:ke,__default:Ie,...be})=>{if(ye==="Text"){const Pe=va(Ie);oe.set(H,`webforms.${X}.${le}.props.doc`,Pe),Object.keys(be).forEach(Be=>{const $e=va(be[Be]);oe.set(H,`webforms.${X}.${le}.custom.i18n:${Be}.doc`,$e)})}else oe.set(H,`webforms.${X}.${le}.${ke}.__t`,Ie),Object.keys(be).forEach(Pe=>{let Be=Pe;if(Be.includes(":")){const $e=Be.split(":");Be=$e.map((Te,nt)=>nt===0?`states:${Te}`:nt===$e.length-1?`i18n:${Te}`:Te).join(":")}oe.set(H,`webforms.${X}.${le}.${ke}.${Be}`,be[Pe])})})})}),J&&Object.keys(J).forEach(X=>{const $=oe.get(J,X);$&&Object.keys($).forEach(le=>{const de=oe.get($,le);oe.set(H,`i18n.${X}.${le}`,de)})}),H},L=(W,Z)=>{switch(Z){case"csv":return ge(W);case"json":return ve(W)}},G=async()=>{if(r){const W=ss.generate().toString();try{fe.tasksManagerSubject.next({id:W,action:"add",type:"i18n",payload:{date:new Date().toISOString(),progress:0,name:"Import i18n",status:"ongoing"}});const Z=await Wh(),H=nS(u,p),K=await ae(H,Z,W);m.setSummary(K),m.setShowSummaryView(!0),y(p)}catch(Z){fe.tasksManagerSubject.next({id:W,type:"i18n",action:"update",payload:{status:"canceled"}}),fe.tasksManagerSubject.next({id:W,type:"i18n",action:"error",payload:{errorMessage:Z.message||"Import file error"}})}}};if(!t)return C.jsx(C.Fragment,{});const ne=()=>{m.setIsOpen(!0),F()},O=W=>{m.setSelectedIsocodes(p.includes(W)?p.filter(Z=>Z!==W):[...p,W])},he=n?C.jsx(n,{onClick:ne,disabled:!!e}):C.jsx(fe.Tooltip,{label:"Import",container:it(),children:C.jsx("button",{"data-cy":"localization-import-button",disabled:e,className:Ue("flex h-full flex-row items-center rounded p-1 disabled:opacity-50",{"cursor-not-allowed":e},{"hover:bg-primary-hover":!e}),onClick:ne,children:C.jsx(Je.FdDownload,{className:"h-4 w-4"})})});return C.jsxs(C.Fragment,{children:[he,C.jsx(Af,{isOpen:s,onClose:R,title:h?"Import summary":"Import",children:h?C.jsx(vS,{summary:d,onClose:R}):C.jsx(xS,{getRootProps:g,getInputProps:A,isDragActive:M,file:r,error:l,onResetFile:F,detectedLanguages:f,detectedLanguageDetails:N,selectedIsocodes:p,onToggleIsocode:O,onClose:R,onImport:G,setError:m.setError,hasNoSelection:p.length===0})})]})},bS=({onClick:e})=>C.jsx(fe.Tooltip,{label:"Edit",container:it(),children:C.jsx("button",{"data-cy":"locales-list-item-edit-button",onClick:t=>{t.stopPropagation(),e()},className:"cursor-pointer rounded p-1 hover:bg-primary-hover focus:outline-none",children:C.jsx(Je.FdPen,{className:"h-4 w-4"})})}),yS=({onClick:e,disable:t})=>t?C.jsx(C.Fragment,{}):C.jsx(fe.Tooltip,{label:"Remove",container:it(),children:C.jsx("button",{"data-cy":"locales-list-item-remove-button",disabled:t,onClick:n=>{n.stopPropagation(),e()},className:"cursor-pointer rounded p-1 hover:bg-primary-hover focus:outline-none",children:C.jsx(Je.FdTrash,{className:"h-4 w-4"})})}),wS=({collapse:e,onClick:t})=>C.jsx(fe.Tooltip,{label:"Collapse",container:it(),children:C.jsx("button",{onClick:n=>{n.stopPropagation(),t()},className:"cursor-pointer rounded p-1 hover:bg-primary-hover focus:outline-none",children:C.jsx(Je.FdDown,{className:Ue("h-4 w-4 ",{"-rotate-90":e})})})}),ES=({lang:e,onCancel:t,onConfirm:n})=>{var I,N,y;const{allSupportedLanguages:i,setEditing:r}=on(),{i18n:s}=sn();V.useEffect(()=>(r(!0),()=>{r(!1)}),[r]);const o=V.useMemo(()=>{var A,M;const g=new Set;return(A=s==null?void 0:s.userLang)!=null&&A.primary&&g.add(s.userLang.primary),(M=s==null?void 0:s.userLang)!=null&&M.supported&&s.userLang.supported.forEach(F=>{g.add(F.isocode)}),i.filter(F=>!g.has(F.isocode))},[i,(I=s==null?void 0:s.userLang)==null?void 0:I.primary,(N=s==null?void 0:s.userLang)==null?void 0:N.supported]),{state:{supported:l,selectedLanguage:u,highlightedLanguageIndex:f},actions:p}=fe.useStateObject({supported:o,editing:!1,selectedLanguage:null,highlightedLanguageIndex:-1}),{isOpen:h,getToggleButtonProps:d,getMenuProps:m,getItemProps:b,getInputProps:v,openMenu:S}=Ur({onSelectedItemChange:({selectedItem:g})=>{g&&(p.setSelectedLanguage({isocode:g.isocode}),p.setSupported(o))},onInputValueChange:({inputValue:g})=>{if(!g){p.setSupported(o);return}const A=new RegExp(oe.escapeRegExp(g),"gi"),M=o.filter(F=>!g||F.native.match(A)||F.isocode.match(A)||F.locale.match(A));p.setSupported(M)},items:l,itemToString:g=>{if(!g)return"";const A=dn(g.isocode,i);return A?`${A.locale} - ${A.native}`:g.isocode},onHighlightedIndexChange:({highlightedIndex:g})=>{p.setHighlightedLanguageIndex(g)}}),E=fe.useOutsideClick(()=>{k()},"mousedown"),k=()=>{u?n(u):t()};return C.jsxs("div",{className:"flex flex-row justify-between items-center border-1 mb-2 bg-grey-300 rounded border px-2 py-2 hover:cursor-pointer",ref:E,children:[C.jsxs("div",{children:[C.jsx("div",{className:Ue("flex flex-col gap-1 border w-48",{"border-primary-dark rounded-t":h||u,rounded:!h}),children:C.jsxs("div",{className:"flex h-7 rounded bg-grey-300 w-full",children:[C.jsx("input",{"data-cy":"locales-new-language-input",placeholder:((y=dn(e==null?void 0:e.isocode,i))==null?void 0:y.locale)||"Select a language",className:"w-full cursor-pointer placeholder:text-grey-50 text-xs rounded text-grey-50 caret-grey-50 bg-grey-300 p-1.5 placeholder:text-xs focus:outline-none",...v({onClick:()=>{S()},onKeyUp:g=>{g.key==="Enter"&&k()}}),autoFocus:!0}),C.jsx("button",{"aria-label":"toggle menu",className:"cursor-pointer rounded px-2",type:"button",...d({onClick:()=>{p.setSupported(o)}}),children:C.jsx(Je.FdDown,{className:"w-4 h-4 text-green-50"})})]})}),C.jsx("ul",{className:`absolute z-10 w-48 max-h-80 overflow-scroll bg-grey-900 py-1 space-y-1 border-b border-x border-1 rounded-b border-primary-dark ${!(h&&l.length)&&"hidden"}`,...m(),children:h&&l.map((g,A)=>{const M=dn(g.isocode,i);return C.jsx("li",{className:Ue("cursor-pointer text-grey-50 h-5 p-1","flex flex-col justify-center items-start",{"bg-primary-hover":A===f}),...b({item:g,index:A}),children:C.jsx("span",{className:"truncate text-xs text-justify flex justify-center items-center",children:`${M==null?void 0:M.native} - ${M==null?void 0:M.isocode}`})},g.isocode)})})]}),C.jsxs("div",{className:"flex space-x-1",children:[C.jsx(fe.Tooltip,{label:"Cancel",container:it(),children:C.jsx("button",{"data-cy":"locales-new-language-cancel-button",className:"cursor-pointer rounded p-1 hover:bg-primary-hover focus:outline-none",onClick:t,children:C.jsx(Je.FdClose,{className:"h-4 w-4 text-gray-50"})})}),C.jsx(fe.Tooltip,{label:"Confirm",container:it(),children:C.jsx("button",{"data-cy":"locales-new-language-confirm-button",className:Ue("rounded p-1 focus:outline-none",{"cursor-not-allowed opacity-50":!u,"cursor-pointer hover:bg-primary-hover":u}),onClick:k,disabled:!u,children:C.jsx(Je.FdCheckCircle,{className:"h-4 w-4 text-gray-50"})})})]})]})},Tp=({activate:e,...t})=>e?C.jsx(ES,{...t}):C.jsx(C.Fragment,{}),SS=({primary:e,selected:t,selectMode:n,lang:i,onSelect:r,onRemove:s,onEdit:o,"data-cy":l})=>{const{state:{hover:u,selected:f,collapse:p,editing:h},actions:{setHover:d,setSelected:m,setCollapse:b,setEditing:v}}=fe.useStateObject({hover:!1,selected:!1,collapse:!0,editing:!1}),{selectedLanguage:S,setSelectedLanguage:E}=on(),{isocode:k,locale:I,native:N}=i||{isocode:"",locale:"",native:""},y=e===k,g=()=>{d(!0)},A=()=>{d(!1)},M=()=>{m(!f),r(k,!f)},F=()=>{v(!0)},R=()=>{s(k)},j=()=>{E(i)},B=se=>{v(!1),o(i,se)},D=()=>{v(!1)};return V.useEffect(()=>{m(t)},[t]),V.useEffect(()=>{y&&E(i)},[]),h?C.jsx(Tp,{lang:i,activate:h,onCancel:D,onConfirm:B}):C.jsxs("div",{"data-cy":l,className:Ue("border-[1px] mb-2 bg-grey-300 flex flex-col space-y-2 rounded px-2 py-2 hover:cursor-pointer",{"border-primary-dark":(S==null?void 0:S.isocode)===(i==null?void 0:i.isocode)}),onMouseEnter:g,onMouseLeave:A,onClick:j,children:[C.jsxs("div",{className:"flex flex-row justify-between items-center",children:[C.jsxs("div",{className:"flex flex-row space-x-1 text-gray-50",children:[u||n?C.jsx(fe.Checkbox,{className:Ue("h-4 w-4 rounded"),isChecked:f,onChange:M}):C.jsx(C.Fragment,{}),C.jsx(Je.FdLocalization,{className:Ue("w-4 h-4",{hidden:n||u})}),C.jsx("span",{className:Ue("text-xs",{"italic font-bold":y}),children:N})]}),C.jsxs("div",{className:"text-grey-50 flex flex-row items-center space-x-1",children:[y&&C.jsx("div",{className:"bg-primary-dark rounded p-0.5 text-xs text-center shrink-0 h-5 w-12",children:"Primary"}),C.jsx(bS,{onClick:F}),C.jsx(yS,{disable:y,onClick:R}),C.jsx(wS,{collapse:p,onClick:()=>b(!p)})]})]}),C.jsxs("div",{className:Ue("ml-6 flex justify-between p-1 text-xs",{hidden:p}),children:[C.jsx("span",{className:"text-grey-50",children:"English name"}),C.jsx("span",{className:"text-grey-100",children:I})]}),C.jsxs("div",{className:Ue("text-grey-50 ml-6 flex justify-between p-1 text-xs",{hidden:p}),children:[C.jsx("span",{className:"text-grey-50",children:"Iso Code"}),C.jsx("span",{className:"text-grey-100",children:k})]})]})};var Tu=function(t){return t.reduce(function(n,i){var r=i[0],s=i[1];return n[r]=s,n},{})},Nu=typeof window<"u"&&window.document&&window.document.createElement?U.useLayoutEffect:U.useEffect,mt="top",Mt="bottom",Ft="right",xt="left",ro="auto",Ai=[mt,Mt,Ft,xt],Gn="start",wi="end",kS="clippingParents",Np="viewport",oi="popper",CS="reference",Pu=Ai.reduce(function(e,t){return e.concat([t+"-"+Gn,t+"-"+wi])},[]),Pp=[].concat(Ai,[ro]).reduce(function(e,t){return e.concat([t,t+"-"+Gn,t+"-"+wi])},[]),_S="beforeRead",IS="read",AS="afterRead",TS="beforeMain",NS="main",PS="afterMain",OS="beforeWrite",RS="write",LS="afterWrite",MS=[_S,IS,AS,TS,NS,PS,OS,RS,LS];function Jt(e){return e?(e.nodeName||"").toLowerCase():null}function St(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Tn(e){var t=St(e).Element;return e instanceof t||e instanceof Element}function Lt(e){var t=St(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function ao(e){if(typeof ShadowRoot>"u")return!1;var t=St(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function FS(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var i=t.styles[n]||{},r=t.attributes[n]||{},s=t.elements[n];!Lt(s)||!Jt(s)||(Object.assign(s.style,i),Object.keys(r).forEach(function(o){var l=r[o];l===!1?s.removeAttribute(o):s.setAttribute(o,l===!0?"":l)}))})}function DS(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(i){var r=t.elements[i],s=t.attributes[i]||{},o=Object.keys(t.styles.hasOwnProperty(i)?t.styles[i]:n[i]),l=o.reduce(function(u,f){return u[f]="",u},{});!Lt(r)||!Jt(r)||(Object.assign(r.style,l),Object.keys(s).forEach(function(u){r.removeAttribute(u)}))})}}const jS={name:"applyStyles",enabled:!0,phase:"write",fn:FS,effect:DS,requires:["computeStyles"]};function Wt(e){return e.split("-")[0]}var _n=Math.max,kr=Math.min,Jn=Math.round;function rs(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Op(){return!/^((?!chrome|android).)*safari/i.test(rs())}function Yn(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var i=e.getBoundingClientRect(),r=1,s=1;t&&Lt(e)&&(r=e.offsetWidth>0&&Jn(i.width)/e.offsetWidth||1,s=e.offsetHeight>0&&Jn(i.height)/e.offsetHeight||1);var o=Tn(e)?St(e):window,l=o.visualViewport,u=!Op()&&n,f=(i.left+(u&&l?l.offsetLeft:0))/r,p=(i.top+(u&&l?l.offsetTop:0))/s,h=i.width/r,d=i.height/s;return{width:h,height:d,top:p,right:f+h,bottom:p+d,left:f,x:f,y:p}}function so(e){var t=Yn(e),n=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:i}}function Rp(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&ao(n)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function an(e){return St(e).getComputedStyle(e)}function VS(e){return["table","td","th"].indexOf(Jt(e))>=0}function wn(e){return((Tn(e)?e.ownerDocument:e.document)||window.document).documentElement}function Hr(e){return Jt(e)==="html"?e:e.assignedSlot||e.parentNode||(ao(e)?e.host:null)||wn(e)}function Ou(e){return!Lt(e)||an(e).position==="fixed"?null:e.offsetParent}function BS(e){var t=/firefox/i.test(rs()),n=/Trident/i.test(rs());if(n&&Lt(e)){var i=an(e);if(i.position==="fixed")return null}var r=Hr(e);for(ao(r)&&(r=r.host);Lt(r)&&["html","body"].indexOf(Jt(r))<0;){var s=an(r);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return r;r=r.parentNode}return null}function Ti(e){for(var t=St(e),n=Ou(e);n&&VS(n)&&an(n).position==="static";)n=Ou(n);return n&&(Jt(n)==="html"||Jt(n)==="body"&&an(n).position==="static")?t:n||BS(e)||t}function oo(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function di(e,t,n){return _n(e,kr(t,n))}function zS(e,t,n){var i=di(e,t,n);return i>n?n:i}function Lp(){return{top:0,right:0,bottom:0,left:0}}function Mp(e){return Object.assign({},Lp(),e)}function Fp(e,t){return t.reduce(function(n,i){return n[i]=e,n},{})}var KS=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Mp(typeof t!="number"?t:Fp(t,Ai))};function US(e){var t,n=e.state,i=e.name,r=e.options,s=n.elements.arrow,o=n.modifiersData.popperOffsets,l=Wt(n.placement),u=oo(l),f=[xt,Ft].indexOf(l)>=0,p=f?"height":"width";if(!(!s||!o)){var h=KS(r.padding,n),d=so(s),m=u==="y"?mt:xt,b=u==="y"?Mt:Ft,v=n.rects.reference[p]+n.rects.reference[u]-o[u]-n.rects.popper[p],S=o[u]-n.rects.reference[u],E=Ti(s),k=E?u==="y"?E.clientHeight||0:E.clientWidth||0:0,I=v/2-S/2,N=h[m],y=k-d[p]-h[b],g=k/2-d[p]/2+I,A=di(N,g,y),M=u;n.modifiersData[i]=(t={},t[M]=A,t.centerOffset=A-g,t)}}function HS(e){var t=e.state,n=e.options,i=n.element,r=i===void 0?"[data-popper-arrow]":i;r!=null&&(typeof r=="string"&&(r=t.elements.popper.querySelector(r),!r)||Rp(t.elements.popper,r)&&(t.elements.arrow=r))}const $S={name:"arrow",enabled:!0,phase:"main",fn:US,effect:HS,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Qn(e){return e.split("-")[1]}var qS={top:"auto",right:"auto",bottom:"auto",left:"auto"};function WS(e,t){var n=e.x,i=e.y,r=t.devicePixelRatio||1;return{x:Jn(n*r)/r||0,y:Jn(i*r)/r||0}}function Ru(e){var t,n=e.popper,i=e.popperRect,r=e.placement,s=e.variation,o=e.offsets,l=e.position,u=e.gpuAcceleration,f=e.adaptive,p=e.roundOffsets,h=e.isFixed,d=o.x,m=d===void 0?0:d,b=o.y,v=b===void 0?0:b,S=typeof p=="function"?p({x:m,y:v}):{x:m,y:v};m=S.x,v=S.y;var E=o.hasOwnProperty("x"),k=o.hasOwnProperty("y"),I=xt,N=mt,y=window;if(f){var g=Ti(n),A="clientHeight",M="clientWidth";if(g===St(n)&&(g=wn(n),an(g).position!=="static"&&l==="absolute"&&(A="scrollHeight",M="scrollWidth")),g=g,r===mt||(r===xt||r===Ft)&&s===wi){N=Mt;var F=h&&g===y&&y.visualViewport?y.visualViewport.height:g[A];v-=F-i.height,v*=u?1:-1}if(r===xt||(r===mt||r===Mt)&&s===wi){I=Ft;var R=h&&g===y&&y.visualViewport?y.visualViewport.width:g[M];m-=R-i.width,m*=u?1:-1}}var j=Object.assign({position:l},f&&qS),B=p===!0?WS({x:m,y:v},St(n)):{x:m,y:v};if(m=B.x,v=B.y,u){var D;return Object.assign({},j,(D={},D[N]=k?"0":"",D[I]=E?"0":"",D.transform=(y.devicePixelRatio||1)<=1?"translate("+m+"px, "+v+"px)":"translate3d("+m+"px, "+v+"px, 0)",D))}return Object.assign({},j,(t={},t[N]=k?v+"px":"",t[I]=E?m+"px":"",t.transform="",t))}function GS(e){var t=e.state,n=e.options,i=n.gpuAcceleration,r=i===void 0?!0:i,s=n.adaptive,o=s===void 0?!0:s,l=n.roundOffsets,u=l===void 0?!0:l,f={placement:Wt(t.placement),variation:Qn(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Ru(Object.assign({},f,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Ru(Object.assign({},f,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const JS={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:GS,data:{}};var Xi={passive:!0};function YS(e){var t=e.state,n=e.instance,i=e.options,r=i.scroll,s=r===void 0?!0:r,o=i.resize,l=o===void 0?!0:o,u=St(t.elements.popper),f=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&f.forEach(function(p){p.addEventListener("scroll",n.update,Xi)}),l&&u.addEventListener("resize",n.update,Xi),function(){s&&f.forEach(function(p){p.removeEventListener("scroll",n.update,Xi)}),l&&u.removeEventListener("resize",n.update,Xi)}}const QS={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:YS,data:{}};var ZS={left:"right",right:"left",bottom:"top",top:"bottom"};function or(e){return e.replace(/left|right|bottom|top/g,function(t){return ZS[t]})}var XS={start:"end",end:"start"};function Lu(e){return e.replace(/start|end/g,function(t){return XS[t]})}function lo(e){var t=St(e),n=t.pageXOffset,i=t.pageYOffset;return{scrollLeft:n,scrollTop:i}}function uo(e){return Yn(wn(e)).left+lo(e).scrollLeft}function ek(e,t){var n=St(e),i=wn(e),r=n.visualViewport,s=i.clientWidth,o=i.clientHeight,l=0,u=0;if(r){s=r.width,o=r.height;var f=Op();(f||!f&&t==="fixed")&&(l=r.offsetLeft,u=r.offsetTop)}return{width:s,height:o,x:l+uo(e),y:u}}function tk(e){var t,n=wn(e),i=lo(e),r=(t=e.ownerDocument)==null?void 0:t.body,s=_n(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),o=_n(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),l=-i.scrollLeft+uo(e),u=-i.scrollTop;return an(r||n).direction==="rtl"&&(l+=_n(n.clientWidth,r?r.clientWidth:0)-s),{width:s,height:o,x:l,y:u}}function co(e){var t=an(e),n=t.overflow,i=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+i)}function Dp(e){return["html","body","#document"].indexOf(Jt(e))>=0?e.ownerDocument.body:Lt(e)&&co(e)?e:Dp(Hr(e))}function gi(e,t){var n;t===void 0&&(t=[]);var i=Dp(e),r=i===((n=e.ownerDocument)==null?void 0:n.body),s=St(i),o=r?[s].concat(s.visualViewport||[],co(i)?i:[]):i,l=t.concat(o);return r?l:l.concat(gi(Hr(o)))}function as(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function nk(e,t){var n=Yn(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Mu(e,t,n){return t===Np?as(ek(e,n)):Tn(t)?nk(t,n):as(tk(wn(e)))}function ik(e){var t=gi(Hr(e)),n=["absolute","fixed"].indexOf(an(e).position)>=0,i=n&&Lt(e)?Ti(e):e;return Tn(i)?t.filter(function(r){return Tn(r)&&Rp(r,i)&&Jt(r)!=="body"}):[]}function rk(e,t,n,i){var r=t==="clippingParents"?ik(e):[].concat(t),s=[].concat(r,[n]),o=s[0],l=s.reduce(function(u,f){var p=Mu(e,f,i);return u.top=_n(p.top,u.top),u.right=kr(p.right,u.right),u.bottom=kr(p.bottom,u.bottom),u.left=_n(p.left,u.left),u},Mu(e,o,i));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function jp(e){var t=e.reference,n=e.element,i=e.placement,r=i?Wt(i):null,s=i?Qn(i):null,o=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,u;switch(r){case mt:u={x:o,y:t.y-n.height};break;case Mt:u={x:o,y:t.y+t.height};break;case Ft:u={x:t.x+t.width,y:l};break;case xt:u={x:t.x-n.width,y:l};break;default:u={x:t.x,y:t.y}}var f=r?oo(r):null;if(f!=null){var p=f==="y"?"height":"width";switch(s){case Gn:u[f]=u[f]-(t[p]/2-n[p]/2);break;case wi:u[f]=u[f]+(t[p]/2-n[p]/2);break}}return u}function Ei(e,t){t===void 0&&(t={});var n=t,i=n.placement,r=i===void 0?e.placement:i,s=n.strategy,o=s===void 0?e.strategy:s,l=n.boundary,u=l===void 0?kS:l,f=n.rootBoundary,p=f===void 0?Np:f,h=n.elementContext,d=h===void 0?oi:h,m=n.altBoundary,b=m===void 0?!1:m,v=n.padding,S=v===void 0?0:v,E=Mp(typeof S!="number"?S:Fp(S,Ai)),k=d===oi?CS:oi,I=e.rects.popper,N=e.elements[b?k:d],y=rk(Tn(N)?N:N.contextElement||wn(e.elements.popper),u,p,o),g=Yn(e.elements.reference),A=jp({reference:g,element:I,placement:r}),M=as(Object.assign({},I,A)),F=d===oi?M:g,R={top:y.top-F.top+E.top,bottom:F.bottom-y.bottom+E.bottom,left:y.left-F.left+E.left,right:F.right-y.right+E.right},j=e.modifiersData.offset;if(d===oi&&j){var B=j[r];Object.keys(R).forEach(function(D){var se=[Ft,Mt].indexOf(D)>=0?1:-1,ue=[mt,Mt].indexOf(D)>=0?"y":"x";R[D]+=B[ue]*se})}return R}function ak(e,t){t===void 0&&(t={});var n=t,i=n.placement,r=n.boundary,s=n.rootBoundary,o=n.padding,l=n.flipVariations,u=n.allowedAutoPlacements,f=u===void 0?Pp:u,p=Qn(i),h=p?l?Pu:Pu.filter(function(b){return Qn(b)===p}):Ai,d=h.filter(function(b){return f.indexOf(b)>=0});d.length===0&&(d=h);var m=d.reduce(function(b,v){return b[v]=Ei(e,{placement:v,boundary:r,rootBoundary:s,padding:o})[Wt(v)],b},{});return Object.keys(m).sort(function(b,v){return m[b]-m[v]})}function sk(e){if(Wt(e)===ro)return[];var t=or(e);return[Lu(e),t,Lu(t)]}function ok(e){var t=e.state,n=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var r=n.mainAxis,s=r===void 0?!0:r,o=n.altAxis,l=o===void 0?!0:o,u=n.fallbackPlacements,f=n.padding,p=n.boundary,h=n.rootBoundary,d=n.altBoundary,m=n.flipVariations,b=m===void 0?!0:m,v=n.allowedAutoPlacements,S=t.options.placement,E=Wt(S),k=E===S,I=u||(k||!b?[or(S)]:sk(S)),N=[S].concat(I).reduce(function(he,W){return he.concat(Wt(W)===ro?ak(t,{placement:W,boundary:p,rootBoundary:h,padding:f,flipVariations:b,allowedAutoPlacements:v}):W)},[]),y=t.rects.reference,g=t.rects.popper,A=new Map,M=!0,F=N[0],R=0;R<N.length;R++){var j=N[R],B=Wt(j),D=Qn(j)===Gn,se=[mt,Mt].indexOf(B)>=0,ue=se?"width":"height",te=Ei(t,{placement:j,boundary:p,rootBoundary:h,altBoundary:d,padding:f}),ae=se?D?Ft:xt:D?Mt:mt;y[ue]>g[ue]&&(ae=or(ae));var ge=or(ae),ve=[];if(s&&ve.push(te[B]<=0),l&&ve.push(te[ae]<=0,te[ge]<=0),ve.every(function(he){return he})){F=j,M=!1;break}A.set(j,ve)}if(M)for(var L=b?3:1,G=function(W){var Z=N.find(function(H){var K=A.get(H);if(K)return K.slice(0,W).every(function(J){return J})});if(Z)return F=Z,"break"},ne=L;ne>0;ne--){var O=G(ne);if(O==="break")break}t.placement!==F&&(t.modifiersData[i]._skip=!0,t.placement=F,t.reset=!0)}}const lk={name:"flip",enabled:!0,phase:"main",fn:ok,requiresIfExists:["offset"],data:{_skip:!1}};function Fu(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Du(e){return[mt,Ft,Mt,xt].some(function(t){return e[t]>=0})}function uk(e){var t=e.state,n=e.name,i=t.rects.reference,r=t.rects.popper,s=t.modifiersData.preventOverflow,o=Ei(t,{elementContext:"reference"}),l=Ei(t,{altBoundary:!0}),u=Fu(o,i),f=Fu(l,r,s),p=Du(u),h=Du(f);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:f,isReferenceHidden:p,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":h})}const ck={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:uk};function hk(e,t,n){var i=Wt(e),r=[xt,mt].indexOf(i)>=0?-1:1,s=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,o=s[0],l=s[1];return o=o||0,l=(l||0)*r,[xt,Ft].indexOf(i)>=0?{x:l,y:o}:{x:o,y:l}}function fk(e){var t=e.state,n=e.options,i=e.name,r=n.offset,s=r===void 0?[0,0]:r,o=Pp.reduce(function(p,h){return p[h]=hk(h,t.rects,s),p},{}),l=o[t.placement],u=l.x,f=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=f),t.modifiersData[i]=o}const pk={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:fk};function dk(e){var t=e.state,n=e.name;t.modifiersData[n]=jp({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const gk={name:"popperOffsets",enabled:!0,phase:"read",fn:dk,data:{}};function mk(e){return e==="x"?"y":"x"}function xk(e){var t=e.state,n=e.options,i=e.name,r=n.mainAxis,s=r===void 0?!0:r,o=n.altAxis,l=o===void 0?!1:o,u=n.boundary,f=n.rootBoundary,p=n.altBoundary,h=n.padding,d=n.tether,m=d===void 0?!0:d,b=n.tetherOffset,v=b===void 0?0:b,S=Ei(t,{boundary:u,rootBoundary:f,padding:h,altBoundary:p}),E=Wt(t.placement),k=Qn(t.placement),I=!k,N=oo(E),y=mk(N),g=t.modifiersData.popperOffsets,A=t.rects.reference,M=t.rects.popper,F=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,R=typeof F=="number"?{mainAxis:F,altAxis:F}:Object.assign({mainAxis:0,altAxis:0},F),j=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,B={x:0,y:0};if(g){if(s){var D,se=N==="y"?mt:xt,ue=N==="y"?Mt:Ft,te=N==="y"?"height":"width",ae=g[N],ge=ae+S[se],ve=ae-S[ue],L=m?-M[te]/2:0,G=k===Gn?A[te]:M[te],ne=k===Gn?-M[te]:-A[te],O=t.elements.arrow,he=m&&O?so(O):{width:0,height:0},W=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Lp(),Z=W[se],H=W[ue],K=di(0,A[te],he[te]),J=I?A[te]/2-L-K-Z-R.mainAxis:G-K-Z-R.mainAxis,ie=I?-A[te]/2+L+K+H+R.mainAxis:ne+K+H+R.mainAxis,X=t.elements.arrow&&Ti(t.elements.arrow),$=X?N==="y"?X.clientTop||0:X.clientLeft||0:0,Y=(D=j==null?void 0:j[N])!=null?D:0,le=ae+J-Y-$,de=ae+ie-Y,Se=di(m?kr(ge,le):ge,ae,m?_n(ve,de):ve);g[N]=Se,B[N]=Se-ae}if(l){var ye,ke=N==="x"?mt:xt,Ie=N==="x"?Mt:Ft,be=g[y],Pe=y==="y"?"height":"width",Be=be+S[ke],$e=be-S[Ie],Te=[mt,xt].indexOf(E)!==-1,nt=(ye=j==null?void 0:j[y])!=null?ye:0,Q=Te?Be:be-A[Pe]-M[Pe]-nt+R.altAxis,re=Te?be+A[Pe]+M[Pe]-nt-R.altAxis:$e,T=m&&Te?zS(Q,be,re):di(m?Q:Be,be,m?re:$e);g[y]=T,B[y]=T-be}t.modifiersData[i]=B}}const vk={name:"preventOverflow",enabled:!0,phase:"main",fn:xk,requiresIfExists:["offset"]};function bk(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function yk(e){return e===St(e)||!Lt(e)?lo(e):bk(e)}function wk(e){var t=e.getBoundingClientRect(),n=Jn(t.width)/e.offsetWidth||1,i=Jn(t.height)/e.offsetHeight||1;return n!==1||i!==1}function Ek(e,t,n){n===void 0&&(n=!1);var i=Lt(t),r=Lt(t)&&wk(t),s=wn(t),o=Yn(e,r,n),l={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(i||!i&&!n)&&((Jt(t)!=="body"||co(s))&&(l=yk(t)),Lt(t)?(u=Yn(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):s&&(u.x=uo(s))),{x:o.left+l.scrollLeft-u.x,y:o.top+l.scrollTop-u.y,width:o.width,height:o.height}}function Sk(e){var t=new Map,n=new Set,i=[];e.forEach(function(s){t.set(s.name,s)});function r(s){n.add(s.name);var o=[].concat(s.requires||[],s.requiresIfExists||[]);o.forEach(function(l){if(!n.has(l)){var u=t.get(l);u&&r(u)}}),i.push(s)}return e.forEach(function(s){n.has(s.name)||r(s)}),i}function kk(e){var t=Sk(e);return MS.reduce(function(n,i){return n.concat(t.filter(function(r){return r.phase===i}))},[])}function Ck(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function _k(e){var t=e.reduce(function(n,i){var r=n[i.name];return n[i.name]=r?Object.assign({},r,i,{options:Object.assign({},r.options,i.options),data:Object.assign({},r.data,i.data)}):i,n},{});return Object.keys(t).map(function(n){return t[n]})}var ju={placement:"bottom",modifiers:[],strategy:"absolute"};function Vu(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(i){return!(i&&typeof i.getBoundingClientRect=="function")})}function Ik(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,i=n===void 0?[]:n,r=t.defaultOptions,s=r===void 0?ju:r;return function(l,u,f){f===void 0&&(f=s);var p={placement:"bottom",orderedModifiers:[],options:Object.assign({},ju,s),modifiersData:{},elements:{reference:l,popper:u},attributes:{},styles:{}},h=[],d=!1,m={state:p,setOptions:function(E){var k=typeof E=="function"?E(p.options):E;v(),p.options=Object.assign({},s,p.options,k),p.scrollParents={reference:Tn(l)?gi(l):l.contextElement?gi(l.contextElement):[],popper:gi(u)};var I=kk(_k([].concat(i,p.options.modifiers)));return p.orderedModifiers=I.filter(function(N){return N.enabled}),b(),m.update()},forceUpdate:function(){if(!d){var E=p.elements,k=E.reference,I=E.popper;if(Vu(k,I)){p.rects={reference:Ek(k,Ti(I),p.options.strategy==="fixed"),popper:so(I)},p.reset=!1,p.placement=p.options.placement,p.orderedModifiers.forEach(function(R){return p.modifiersData[R.name]=Object.assign({},R.data)});for(var N=0;N<p.orderedModifiers.length;N++){if(p.reset===!0){p.reset=!1,N=-1;continue}var y=p.orderedModifiers[N],g=y.fn,A=y.options,M=A===void 0?{}:A,F=y.name;typeof g=="function"&&(p=g({state:p,options:M,name:F,instance:m})||p)}}}},update:Ck(function(){return new Promise(function(S){m.forceUpdate(),S(p)})}),destroy:function(){v(),d=!0}};if(!Vu(l,u))return m;m.setOptions(f).then(function(S){!d&&f.onFirstUpdate&&f.onFirstUpdate(S)});function b(){p.orderedModifiers.forEach(function(S){var E=S.name,k=S.options,I=k===void 0?{}:k,N=S.effect;if(typeof N=="function"){var y=N({state:p,name:E,instance:m,options:I}),g=function(){};h.push(y||g)}})}function v(){h.forEach(function(S){return S()}),h=[]}return m}}var Ak=[QS,gk,JS,jS,pk,lk,vk,$S,ck],Tk=Ik({defaultModifiers:Ak}),Ma,Bu;function Nk(){if(Bu)return Ma;Bu=1;var e=typeof Element<"u",t=typeof Map=="function",n=typeof Set=="function",i=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function r(s,o){if(s===o)return!0;if(s&&o&&typeof s=="object"&&typeof o=="object"){if(s.constructor!==o.constructor)return!1;var l,u,f;if(Array.isArray(s)){if(l=s.length,l!=o.length)return!1;for(u=l;u--!==0;)if(!r(s[u],o[u]))return!1;return!0}var p;if(t&&s instanceof Map&&o instanceof Map){if(s.size!==o.size)return!1;for(p=s.entries();!(u=p.next()).done;)if(!o.has(u.value[0]))return!1;for(p=s.entries();!(u=p.next()).done;)if(!r(u.value[1],o.get(u.value[0])))return!1;return!0}if(n&&s instanceof Set&&o instanceof Set){if(s.size!==o.size)return!1;for(p=s.entries();!(u=p.next()).done;)if(!o.has(u.value[0]))return!1;return!0}if(i&&ArrayBuffer.isView(s)&&ArrayBuffer.isView(o)){if(l=s.length,l!=o.length)return!1;for(u=l;u--!==0;)if(s[u]!==o[u])return!1;return!0}if(s.constructor===RegExp)return s.source===o.source&&s.flags===o.flags;if(s.valueOf!==Object.prototype.valueOf&&typeof s.valueOf=="function"&&typeof o.valueOf=="function")return s.valueOf()===o.valueOf();if(s.toString!==Object.prototype.toString&&typeof s.toString=="function"&&typeof o.toString=="function")return s.toString()===o.toString();if(f=Object.keys(s),l=f.length,l!==Object.keys(o).length)return!1;for(u=l;u--!==0;)if(!Object.prototype.hasOwnProperty.call(o,f[u]))return!1;if(e&&s instanceof Element)return!1;for(u=l;u--!==0;)if(!((f[u]==="_owner"||f[u]==="__v"||f[u]==="__o")&&s.$$typeof)&&!r(s[f[u]],o[f[u]]))return!1;return!0}return s!==s&&o!==o}return Ma=function(o,l){try{return r(o,l)}catch(u){if((u.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw u}},Ma}var Pk=Nk();const Ok=Lr(Pk);var Rk=[],Lk=function(t,n,i){i===void 0&&(i={});var r=U.useRef(null),s={onFirstUpdate:i.onFirstUpdate,placement:i.placement||"bottom",strategy:i.strategy||"absolute",modifiers:i.modifiers||Rk},o=U.useState({styles:{popper:{position:s.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),l=o[0],u=o[1],f=U.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(m){var b=m.state,v=Object.keys(b.elements);Ku.flushSync(function(){u({styles:Tu(v.map(function(S){return[S,b.styles[S]||{}]})),attributes:Tu(v.map(function(S){return[S,b.attributes[S]]}))})})},requires:["computeStyles"]}},[]),p=U.useMemo(function(){var d={onFirstUpdate:s.onFirstUpdate,placement:s.placement,strategy:s.strategy,modifiers:[].concat(s.modifiers,[f,{name:"applyStyles",enabled:!1}])};return Ok(r.current,d)?r.current||d:(r.current=d,d)},[s.onFirstUpdate,s.placement,s.strategy,s.modifiers,f]),h=U.useRef();return Nu(function(){h.current&&h.current.setOptions(p)},[p]),Nu(function(){if(!(t==null||n==null)){var d=i.createPopper||Tk,m=d(t,n,p);return h.current=m,function(){m.destroy(),h.current=null}}},[t,n,i.createPopper]),{state:h.current?h.current.state:null,styles:l.styles,attributes:l.attributes,update:h.current?h.current.update:null,forceUpdate:h.current?h.current.forceUpdate:null}};const Mk=()=>{var R,j;const[e,t]=V.useState(),[n,i]=V.useState(null),[r,s]=V.useState(null),[o,l]=V.useState([]),{allSupportedLanguages:u,userLanguages:{supported:f=[],primary:p},setUserLangSettings:h,editing:d}=on(),{i18n:m}=sn(),b=V.useMemo(()=>{var D,se;const B=new Set;return(D=m==null?void 0:m.userLang)!=null&&D.primary&&B.add(m.userLang.primary),(se=m==null?void 0:m.userLang)!=null&&se.supported&&m.userLang.supported.forEach(ue=>{B.add(ue.isocode)}),u.filter(ue=>!B.has(ue.isocode))},[u,(R=m==null?void 0:m.userLang)==null?void 0:R.primary,(j=m==null?void 0:m.userLang)==null?void 0:j.supported]),{styles:v,attributes:S}=Lk(e,n,{modifiers:[{name:"offset",options:{offset:[-10,10]}}],placement:"right-start"}),{isOpen:E,getToggleButtonProps:k,getMenuProps:I,getItemProps:N,getInputProps:y,openMenu:g,highlightedIndex:A,reset:M}=Ur({onSelectedItemChange:({selectedItem:B})=>{B&&s({isocode:B.isocode})},onInputValueChange:({inputValue:B})=>{if(!B){l(b);return}const D=new RegExp(oe.escapeRegExp(B),"gi"),se=b.filter(ue=>ue.native.match(D)||ue.isocode.match(D)||ue.locale.match(D));l(se)},items:o,itemToString:B=>{if(!B)return"";const D=dn(B.isocode,u);return D?`${D.locale} - ${D.native}`:B.isocode}});V.useEffect(()=>{s(null),l(b),M()},[n]),V.useEffect(()=>{l(b)},[b]);const F=B=>{if(!r)return;const D={primary:f.length===0?r.isocode:p,supported:f.concat(r)};h(D),B()};return C.jsxs("div",{className:"flex items-center justify-between",children:[C.jsxs("div",{className:"text-grey-50 flex flex-row justify-between",children:[C.jsxs("div",{className:"flex flex-row items-center justify-center space-x-2 text-sm",children:[C.jsx(Je.FdLocalization,{className:"h-4 w-4"}),C.jsx("span",{className:"text-sm text-gray-50",children:"Locales "})]}),C.jsx("div",{className:"space-x-2",children:C.jsx(fe.Tip,{tipKey:"editors:i18n:locals",alwaysOn:!0})})]}),C.jsx(Wr.Popover,{children:({open:B,close:D})=>C.jsxs(C.Fragment,{children:[C.jsx(Wr.Popover.Button,{className:Ue("rounded p-1",{"hover:bg-primary-hover":!d,"cursor-not-allowed opacity-50":d}),ref:t,"data-cy":"locales-header-add-button",children:C.jsx(fe.Tooltip,{label:"Add new language",container:it(),children:C.jsx("span",{children:C.jsx(Je.FdPlus,{className:Ue("h-4 w-4",{"text-gray-50":!d,"text-grey-200":d})})})})}),B&&!d&&Cr.createPortal(C.jsxs(Wr.Popover.Panel,{ref:i,style:v.popper,...S.popper,className:"z-[10000] w-80 rounded border border-grey-50 bg-grey-900 px-4 py-2 text-xs text-white shadow-md",static:!0,children:[C.jsx("h5",{className:"mb-2 text-xs font-semibold",children:"Add a Language"}),C.jsx("div",{className:"mt-2",children:C.jsxs("label",{className:"flex items-start space-x-4",children:[C.jsx("span",{className:"mt-1 block text-grey-100",children:"Language"}),C.jsxs("div",{className:"relative flex-1",children:[C.jsxs("div",{className:Ue("flex h-7 rounded border bg-grey-300 w-full",{"border-primary-dark":E||r,"border-grey-100":!E&&!r}),children:[C.jsx("input",{"data-cy":"locales-new-language-input",placeholder:"Select a language",className:"w-full cursor-pointer placeholder:text-grey-50 text-xs rounded text-grey-50 caret-grey-50 bg-grey-300 p-1.5 placeholder:text-xs focus:outline-none",...y({onClick:()=>g(),onKeyUp:se=>{se.key==="Enter"&&F(D)}}),autoFocus:!0}),C.jsx("button",{"aria-label":"toggle menu",className:"cursor-pointer rounded px-2",type:"button",...k({onClick:()=>l(b)}),children:C.jsx(Je.FdDown,{className:"w-3 h-3 text-grey-50"})})]}),C.jsx("ul",{className:Ue("absolute z-10 w-full max-h-80 overflow-auto bg-grey-900 py-1 space-y-1 border-b border-x rounded-b border-primary-dark",{hidden:!(E&&o.length)}),...I(),children:E&&o.map((se,ue)=>{const te=dn(se.isocode,u);return C.jsx("li",{className:Ue("cursor-pointer text-grey-50 px-2 py-1","flex flex-col justify-center items-start",{"bg-primary-hover":ue===A}),...N({item:se,index:ue}),children:C.jsx("span",{className:"truncate text-xs",children:`${te==null?void 0:te.native} - ${te==null?void 0:te.isocode}`})},se.isocode)})})]})]})}),C.jsxs("div",{className:"mt-4 flex items-center justify-center space-x-2",children:[C.jsx("button",{"data-cy":"locales-new-language-confirm-button",className:Ue("rounded border text-xs border-primary-dark bg-primary-dark px-4 py-1 focus:outline-none focus:ring-1 focus:ring-white",{"cursor-not-allowed opacity-50":!r,"hover:border-primary-hover hover:bg-primary-hover cursor-pointer":r}),disabled:!r,onClick:()=>F(D),children:"Confirm"}),C.jsx("button",{"data-cy":"locales-new-language-cancel-button",className:"rounded border border-grey-50 px-4 py-1 text-xs text-white hover:bg-white hover:border-white hover:text-primary-dark cursor-pointer",onClick:()=>D(),children:"Cancel"})]})]}),document.body)]})})]})},Fk=()=>{const{state:{selectedLanguages:e,selectAll:t},actions:n}=fe.useStateObject({selectAll:!1,selectedLanguages:[]}),{userLanguages:{supported:i=[],primary:r},addFirstLanguage:s,setAddFirstLanguage:o,setUserLangSettings:l,setSelectedLanguage:u,allSupportedLanguages:f}=on(),{editLanguageKeys:p,deleteLanguageKeys:h}=sn(),d=Ad(f),m=Td(e),b=vn(),v=b.getI18nCurrent(),S=b.getTabs(),E=(F,R)=>{const j=R?e.concat(F):e.filter(B=>B!==F);n.setSelectedLanguages(j),t&&n.setSelectAll(!1)},k=()=>{n.setSelectAll(!t),t?n.setSelectedLanguages([]):n.setSelectedLanguages(i.map(F=>F.isocode))},I=(F,R)=>{const j=`i18n:${R}`,B=`:i18n:${R}`,D=se=>{se.custom&&Object.keys(se.custom).forEach(ue=>{(ue.includes(j)||ue.endsWith(B))&&delete se.custom[ue]})};return Object.values(F).forEach(se=>D(se)),F},N=(F,R)=>F.map(j=>{var D;const B=oe.cloneDeep(j);return(D=B.content)!=null&&D.components&&(B.content={...B.content,components:I({...B.content.components},R)}),B}),y=(F,R,j)=>{const B=`i18n:${R}`,D=`:i18n:${R}`,se=ue=>{ue.custom&&Object.keys(ue.custom).forEach(te=>{if(te===B){const ae=ue.custom[te];delete ue.custom[te],ue.custom[`i18n:${j}`]=ae}else if(te.endsWith(D)){const ae=ue.custom[te];delete ue.custom[te];const ge=te.replace(`:i18n:${R}`,`:i18n:${j}`);ue.custom[ge]=ae}})};return Object.values(F).forEach(ue=>se(ue)),F},g=(F,R,j)=>F.map(B=>{var se;const D=oe.cloneDeep(B);return(se=D.content)!=null&&se.components&&(D.content={...D.content,components:y({...D.content.components},R,j)}),D}),A=async F=>{const{confirmed:R}=await b.actions.openModal({title:"Delete Language",message:"Your translations will be lost , want to proceed ?",type:fe.ModalType.CONFIRM,color:fe.ModalColor.WARNING,icon:"FdWarningDanger"});if(!R)return;h({isocode:F});const j=N(S,F);b.actions.setTabs(j);const B={primary:r,supported:i.filter(D=>D.isocode!==F)};l(B),e.includes(F)&&n.setSelectedLanguages(e.filter(D=>D!==F)),B.supported.length===0&&o(!1),F===v&&b.actions.setI18nCurrent("")},M=(F,R)=>{const j={primary:r===F.isocode?R.isocode:r,supported:i.map(D=>D.isocode===F.isocode?R:D)},B=g(S,F.isocode,R.isocode);b.actions.setTabs(B),v===F.isocode&&b.actions.setI18nCurrent(R.isocode),p(F,R),l(j),u(R)};return C.jsxs("div",{className:"flex w-72 flex-col space-y-2 px-2 py-3 shrink-0",children:[C.jsx(Mk,{}),C.jsxs("div",{className:"flex px-[5px] justify-between text-gray-50",children:[C.jsxs("div",{"data-cy":"locales-select-all-checkbox",className:Ue("text-grey-50 flex items-center justify-center space-x-1",{visible:d,invisible:!d}),children:[C.jsx(fe.Checkbox,{id:"select-all",isChecked:t,onChange:k}),C.jsx("label",{htmlFor:"select-all",className:"text-xs cursor-pointer",children:"Select all"})]}),C.jsxs("div",{className:"flex flex-row items-center justify-center space-x-1",children:[C.jsx(YE,{"data-cy":"localization-export-button",enable:!0,disable:!1,toExport:e}),C.jsx(Ap,{"data-cy":"localization-import-button",enable:!0,disable:!1})]})]}),C.jsx("div",{style:{height:"calc(100vh - 11.75rem)"},children:C.jsxs(fd,{"data-cy":"locales-list",style:{height:"100%",width:"100%"},children:[s&&i.length===0&&C.jsx(Tp,{activate:!0,onCancel:()=>o(!1),onConfirm:F=>{const R={primary:F.isocode,supported:[F]};l(R)}}),[...i].sort(F=>F.isocode===r?-1:1).map((F,R)=>{const j=dn(F.isocode,f);return C.jsx(SS,{"data-cy":`locales-list-item-${j==null?void 0:j.isocode}`,primary:r,selected:t||e.includes(j==null?void 0:j.isocode),lang:j,onSelect:E,selectMode:m,onRemove:A,onEdit:M},R)})]})})]})},Dk=({onAddLocal:e})=>C.jsxs("div",{"data-cy":"localization-empty-view",className:"flex flex-col justify-center items-center space-y-3 pb-[30%] w-full h-full bg-grey-800",children:[C.jsx(Je.FdInfoBold,{className:"h-8 w-8 text-grey-200"}),C.jsx("span",{className:"text-grey-200 text-sm text-center",children:"No locale is available yet. Add a new one or import a locale."}),C.jsxs("div",{className:"flex flex-row items-center justify-center space-x-2",children:[C.jsxs("div",{"data-cy":"localization-empty-add-button",className:"flex flex-row items-center justify-center px-2 py-1 space-x-1 bg-primary-dark rounded cursor-pointer",onClick:e,children:[C.jsx(Je.FdPlus,{className:"h-4 w-4 text-grey-50"}),C.jsx("span",{className:"text-grey-50 text-sm",children:"Add new Locale"})]}),C.jsx(Ap,{enable:!0,RenderTrigger:({onClick:t})=>C.jsxs("div",{className:"flex flex-row items-center justify-center px-2 py-1 space-x-1 bg-primary-dark rounded text-grey-50 text-sm disabled:opacity-50 cursor-pointer",onClick:t,children:[C.jsx(Je.FdDownload,{className:"h-4 w-4 text-grey-50"}),C.jsx("span",{className:"text-grey-50 text-sm",children:"Import Locale"})]})})]})]}),jk=()=>{var o;const{userLanguages:e,addFirstLanguage:t,setAddFirstLanguage:n}=on(),r=(((o=e.supported)==null?void 0:o.length)??0)===0&&!t,s=()=>{n(!0)};return r?C.jsx(Dk,{onAddLocal:s}):C.jsxs("div",{className:Ue("flex flex-row w-full h-full bg-grey-800",{"justify-center items-center":r}),children:[C.jsx(Fk,{}),C.jsx(ng,{})]})},Vp=()=>C.jsx(dc,{children:C.jsx(jk,{})}),Vk=()=>{const{modals:e,closeModal:t,editModal:n}=ac();return C.jsx(C.Fragment,{children:e.map((i,r)=>C.jsx(fe.Modal,{hasOverlay:r===0,...i,onClose:t,onEdit:n,container:it()},i.id))})},ui={keys:{},userLang:{primary:"",supported:[]}},Bk=e=>{if(!e)return ui;try{const t=JSON.parse(e);return{keys:(t==null?void 0:t.keys)??ui.keys,userLang:(t==null?void 0:t.userLang)??ui.userLang}}catch{return ui}},zk=({onTabsChange:e,onI18nCurrentChange:t})=>{const n=vn(),i=(n==null?void 0:n.getTabs())||[],r=n==null?void 0:n.getI18nCurrent();return fe.useDidMountEffect(()=>{e&&e(i)},[e,i]),fe.useDidMountEffect(()=>{t&&r&&t(r)},[t,r]),C.jsxs(C.Fragment,{children:[C.jsx("div",{className:`relative h-screen z-10 overflow-hidden ${os.LOCALIZATION_EDITOR_SCOPE_CLASS}`,children:C.jsx(Vp,{})}),C.jsx(Vk,{})]})},Kk=({children:e})=>{const t=vn();return C.jsx(hc,{getSupportedLanguages:n=>(t==null?void 0:t.getSupportedLanguages(n))||Promise.resolve([]),i18nCurrent:t==null?void 0:t.getI18nCurrent(),activeTabPath:t==null?void 0:t.getActiveTabPath(),flagsForActiveTab:t==null?void 0:t.getFlagsByPath(t==null?void 0:t.getActiveTabPath()),children:e})},Uk=({userComponents:e,buildResolver:t,supportedLanguages:n,initialValue:i,onChange:r,...s})=>{const o=rc(e,t,n),[l,u]=V.useState({}),f=V.useRef(ui),p=V.useMemo(()=>Bk(i),[i]);return V.useEffect(()=>{f.current=p},[p]),fe.useDidMountEffect(()=>{if(!(!r||oe.isEqual(l,f.current)))try{r==null||r(JSON.stringify(l)),f.current=l}catch{}},[l,r]),C.jsx($u,{adapter:o,children:C.jsx(lc,{isI18nEnabled:!0,onI18nChange:u,children:C.jsx(Kk,{children:C.jsx(fe.TipsProvider,{children:C.jsx(zk,{...s})})})})})},Hk=({tabs:e=[],i18nCurrent:t="",initialValue:n,...i})=>C.jsx(ic,{tabs:e,i18nCurrent:t,initialI18nFile:n,children:C.jsx(Uk,{initialValue:n,...i})}),$k={supported:[{isocode:"af",locale:"Afrikaans",native:"Afrikaans",flag:"🇿🇦"},{isocode:"af-NA",locale:"Afrikaans (Namibie)",native:"Afrikaans (Namibië)",flag:"🇳🇦"},{isocode:"af-ZA",locale:"Afrikaans (South Africa)",native:"Afrikaans (Suid-Afrika)",flag:"🇿🇦"},{isocode:"agq",locale:"Aghem",native:"Aghem",flag:"🇨🇲"},{isocode:"agq-CM",locale:"Aghem (Cameroun)",native:"Aghem (Kàmàlûŋ)",flag:"🇨🇲"},{isocode:"ak",locale:"Akan",native:"Akan",flag:"🇬🇭"},{isocode:"ak-GH",locale:"Akan (Ghana)",native:"Akan (Gaana)",flag:"🇬🇭"},{isocode:"am",locale:"Amharique",native:"አማርኛ",flag:"🇪🇹"},{isocode:"am-ET",locale:"Amharique (Éthiopie)",native:"አማርኛ (ኢትዮጵያ)",flag:"🇪🇹"},{isocode:"ar",locale:"Arabic",native:"العربية",flag:"🇸🇦"},{isocode:"ar-001",locale:"Arabic (World)",native:"العربية (العالم)",flag:"🌍"},{isocode:"ar-AE",locale:"Arabic (Émirats arabes unis)",native:"العربية (الإمارات العربية المتحدة)",flag:"🇦🇪"},{isocode:"ar-BH",locale:"Arabic (Bahreïn)",native:"العربية (البحرين)",flag:"🇧🇭"},{isocode:"ar-DJ",locale:"Arabic (Djibouti)",native:"العربية (جيبوتي)",flag:"🇩🇯"},{isocode:"ar-DZ",locale:"Arabic (Algérie)",native:"العربية (الجزائر)",flag:"🇩🇿"},{isocode:"ar-EG",locale:"Arabic (Égypte)",native:"العربية (مصر)",flag:"🇪🇬"},{isocode:"ar-EH",locale:"Arabic (Sahara occidental)",native:"العربية (الصحراء الغربية)",flag:"🇪🇭"},{isocode:"ar-ER",locale:"Arabic (Érythrée)",native:"العربية (إريتريا)",flag:"🇪🇷"},{isocode:"ar-IL",locale:"Arabic (Israël)",native:"العربية (إسرائيل)",flag:"🇮🇱"},{isocode:"ar-IQ",locale:"Arabic (Irak)",native:"العربية (العراق)",flag:"🇮🇶"},{isocode:"ar-JO",locale:"Arabic (Jordanie)",native:"العربية (الأردن)",flag:"🇯🇴"},{isocode:"ar-KM",locale:"Arabic (Comores)",native:"العربية (جزر القمر)",flag:"🇰🇲"},{isocode:"ar-KW",locale:"Arabic (Koweït)",native:"العربية (الكويت)",flag:"🇰🇼"},{isocode:"ar-LB",locale:"Arabic (Liban)",native:"العربية (لبنان)",flag:"🇱🇧"},{isocode:"ar-LY",locale:"Arabic (Libye)",native:"العربية (ليبيا)",flag:"🇱🇾"},{isocode:"ar-MA",locale:"Arabic (Maroc)",native:"العربية (المغرب)",flag:"🇲🇦"},{isocode:"ar-MR",locale:"Arabic (Mauritanie)",native:"العربية (موريتانيا)",flag:"🇲🇷"},{isocode:"ar-OM",locale:"Arabic (Oman)",native:"العربية (عُمان)",flag:"🇴🇲"},{isocode:"ar-PS",locale:"Arabic (Territoires palestiniens)",native:"العربية (الأراضي الفلسطينية)",flag:"🇵🇸"},{isocode:"ar-QA",locale:"Arabic (Qatar)",native:"العربية (قطر)",flag:"🇶🇦"},{isocode:"ar-SA",locale:"Arabic (Arabie saoudite)",native:"العربية (المملكة العربية السعودية)",flag:"🇸🇦"},{isocode:"ar-SD",locale:"Arabic (Soudan)",native:"العربية (السودان)",flag:"🇸🇩"},{isocode:"ar-SO",locale:"Arabic (Somalie)",native:"العربية (الصومال)",flag:"🇸🇴"},{isocode:"ar-SS",locale:"Arabic (Soudan du Sud)",native:"العربية (جنوب السودان)",flag:"🇸🇸"},{isocode:"ar-SY",locale:"Arabic (Syrie)",native:"العربية (سوريا)",flag:"🇸🇾"},{isocode:"ar-TD",locale:"Arabic (Tchad)",native:"العربية (تشاد)",flag:"🇹🇩"},{isocode:"ar-TN",locale:"Arabic (Tunisie)",native:"العربية (تونس)",flag:"🇹🇳"},{isocode:"ar-YE",locale:"Arabic (Yémen)",native:"العربية (اليمن)",flag:"🇾🇪"},{isocode:"as",locale:"Assamais",native:"অসমীয়া",flag:"🇮🇳"},{isocode:"as-IN",locale:"Assamais (India)",native:"অসমীয়া (ভারত)",flag:"🇮🇳"},{isocode:"asa",locale:"Assou",native:"Kipare",flag:"🇹🇿"},{isocode:"asa-TZ",locale:"Assou (Tanzanie)",native:"Kipare (Tadhania)",flag:"🇹🇿"},{isocode:"ast",locale:"Asturien",native:"Asturianu",flag:"🇪🇸"},{isocode:"ast-ES",locale:"Asturien (Spain)",native:"Asturianu (España)",flag:"🇪🇸"},{isocode:"az",locale:"Azéri",native:"Azərbaycan",flag:"🇦🇿"},{isocode:"az-Cyrl",locale:"Azéri (cyrillique)",native:"азәрбајҹан (Кирил)",flag:"🇦🇿"},{isocode:"az-Cyrl-AZ",locale:"Azéri (cyrillique, Azerbaïdjan)",native:"азәрбајҹан (Кирил, Азәрбајҹан)",flag:"🇦🇿"},{isocode:"az-Latn",locale:"Azéri (latin)",native:"Azərbaycan (latın)",flag:"🇦🇿"},{isocode:"az-Latn-AZ",locale:"Azéri (latin, Azerbaïdjan)",native:"Azərbaycan (latın, Azərbaycan)",flag:"🇦🇿"},{isocode:"bas",locale:"Bassa",native:"Ɓàsàa",flag:"🇨🇲"},{isocode:"bas-CM",locale:"Bassa (Cameroun)",native:"Ɓàsàa (Kàmɛ̀rûn)",flag:"🇨🇲"},{isocode:"be",locale:"Biélorusse",native:"беларуская",flag:"🇧🇾"},{isocode:"be-BY",locale:"Biélorusse (Biélorussie)",native:"беларуская (Беларусь)",flag:"🇧🇾"},{isocode:"bem",locale:"Bemba",native:"Ichibemba",flag:"🇿🇲"},{isocode:"bem-ZM",locale:"Bemba (Zambie)",native:"Ichibemba (Zambia)",flag:"🇿🇲"},{isocode:"bez",locale:"Béna",native:"Hibena",flag:"🇹🇿"},{isocode:"bez-TZ",locale:"Béna (Tanzanie)",native:"Hibena (Hutanzania)",flag:"🇹🇿"},{isocode:"bg",locale:"Bulgare",native:"български",flag:"🇧🇬"},{isocode:"bg-BG",locale:"Bulgare (Bulgarie)",native:"български (България)",flag:"🇧🇬"},{isocode:"bm",locale:"Bambara",native:"Bamanakan",flag:"🇲🇱"},{isocode:"bm-ML",locale:"Bambara (Mali)",native:"Bamanakan (Mali)",flag:"🇲🇱"},{isocode:"bn",locale:"Bengali",native:"বাংলা",flag:"🇧🇩"},{isocode:"bn-BD",locale:"Bengali (Bangladesh)",native:"বাংলা (বাংলাদেশ)",flag:"🇧🇩"},{isocode:"bn-IN",locale:"Bengali (India)",native:"বাংলা (ভারত)",flag:"🇮🇳"},{isocode:"bo",locale:"Tibétain",native:"བོད་སྐད་",flag:"🇨🇳"},{isocode:"bo-CN",locale:"Tibétain (Chine)",native:"བོད་སྐད་ (རྒྱ་ནག)",flag:"🇨🇳"},{isocode:"bo-IN",locale:"Tibétain (India)",native:"བོད་སྐད་ (རྒྱ་གར་)",flag:"🇮🇳"},{isocode:"br",locale:"Breton",native:"Brezhoneg",flag:"🇫🇷"},{isocode:"br-FR",locale:"Breton (France)",native:"Brezhoneg (Frañs)",flag:"🇫🇷"},{isocode:"brx",locale:"Bodo",native:"बड़ो",flag:"🇮🇳"},{isocode:"brx-IN",locale:"Bodo (India)",native:"बड़ो (भारत)",flag:"🇮🇳"},{isocode:"bs",locale:"Bosniaque",native:"Bosanski",flag:"🇧🇦"},{isocode:"bs-Cyrl",locale:"Bosniaque (cyrillique)",native:"босански (ћирилица)",flag:"🇧🇦"},{isocode:"bs-Cyrl-BA",locale:"Bosniaque (cyrillique, Bosnie-Herzégovine)",native:"босански (ћирилица, Босна и Херцеговина)",flag:"🇧🇦"},{isocode:"bs-Latn",locale:"Bosniaque (latin)",native:"Bosanski (latinica)",flag:"🇧🇦"},{isocode:"bs-Latn-BA",locale:"Bosniaque (latin, Bosnie-Herzégovine)",native:"Bosanski (latinica, Bosna i Hercegovina)",flag:"🇧🇦"},{isocode:"ca",locale:"Catalan",native:"Català",flag:"🇪🇸"},{isocode:"ca-AD",locale:"Catalan (Andorre)",native:"Català (Andorra)",flag:"🇦🇩"},{isocode:"ca-ES",locale:"Catalan (Spain)",native:"Català (Espanya)",flag:"🇪🇸"},{isocode:"ca-FR",locale:"Catalan (France)",native:"Català (França)",flag:"🇫🇷"},{isocode:"ca-IT",locale:"Catalan (Italie)",native:"Català (Itàlia)",flag:"🇮🇹"},{isocode:"ccp",locale:"Ccp",native:"𑄌𑄋𑄴𑄟𑄳𑄦",flag:"🇧🇩"},{isocode:"ccp-BD",locale:"Ccp (Bangladesh)",native:"𑄌𑄋𑄴𑄟𑄳𑄦 (𑄝𑄁𑄣𑄘𑄬𑄌𑄴)",flag:"🇧🇩"},{isocode:"ccp-IN",locale:"Ccp (India)",native:"𑄌𑄋𑄴𑄟𑄳𑄦 (𑄞𑄢𑄧𑄖𑄴)",flag:"🇮🇳"},{isocode:"ce",locale:"Tchétchène",native:"нохчийн",flag:"🇷🇺"},{isocode:"ce-RU",locale:"Tchétchène (Russie)",native:"нохчийн (Росси)",flag:"🇷🇺"},{isocode:"cgg",locale:"Kiga",native:"Rukiga",flag:"🇺🇬"},{isocode:"cgg-UG",locale:"Kiga (Ouganda)",native:"Rukiga (Uganda)",flag:"🇺🇬"},{isocode:"chr",locale:"Cherokee",native:"ᏣᎳᎩ",flag:"🇺🇸"},{isocode:"chr-US",locale:"Cherokee (United States)",native:"ᏣᎳᎩ (ᏌᏊ ᎢᏳᎾᎵᏍᏔᏅ ᏍᎦᏚᎩ)",flag:"🇺🇸"},{isocode:"ckb",locale:"Sorani",native:"کوردیی ناوەندی",flag:"🇮🇶"},{isocode:"ckb-IQ",locale:"Sorani (Irak)",native:"کوردیی ناوەندی (عێراق)",flag:"🇮🇶"},{isocode:"ckb-IR",locale:"Sorani (Iran)",native:"کوردیی ناوەندی (ئێران)",flag:"🇮🇷"},{isocode:"cs",locale:"Tchèque",native:"čeština",flag:"🇨🇿"},{isocode:"cs-CZ",locale:"Tchèque (Tchéquie)",native:"čeština (Česko)",flag:"🇨🇿"},{isocode:"cy",locale:"Gallois",native:"Cymraeg",flag:"🏴"},{isocode:"cy-GB",locale:"Gallois (United Kingdom)",native:"Cymraeg (Y Deyrnas Unedig)",flag:"🇬🇧"},{isocode:"da",locale:"Danois",native:"Dansk",flag:"🇩🇰"},{isocode:"da-DK",locale:"Danois (Danemark)",native:"Dansk (Danmark)",flag:"🇩🇰"},{isocode:"da-GL",locale:"Danois (Groenland)",native:"Dansk (Grønland)",flag:"🇬🇱"},{isocode:"dav",locale:"Taita",native:"Kitaita",flag:"🇰🇪"},{isocode:"dav-KE",locale:"Taita (Kenya)",native:"Kitaita (Kenya)",flag:"🇰🇪"},{isocode:"de",locale:"German",native:"Deutsch",flag:"🇩🇪"},{isocode:"de-AT",locale:"German (Autriche)",native:"Deutsch (Österreich)",flag:"🇦🇹"},{isocode:"de-BE",locale:"German (Belgium)",native:"Deutsch (Belgien)",flag:"🇧🇪"},{isocode:"de-CH",locale:"German (Switzerland)",native:"Deutsch (Schweiz)",flag:"🇨🇭"},{isocode:"de-DE",locale:"German (Germany)",native:"Deutsch (Deutschland)",flag:"🇩🇪"},{isocode:"de-IT",locale:"German (Italie)",native:"Deutsch (Italien)",flag:"🇮🇹"},{isocode:"de-LI",locale:"German (Liechtenstein)",native:"Deutsch (Liechtenstein)",flag:"🇱🇮"},{isocode:"de-LU",locale:"German (Luxembourg)",native:"Deutsch (Luxemburg)",flag:"🇱🇺"},{isocode:"dje",locale:"Zarma",native:"Zarmaciine",flag:"🇳🇪"},{isocode:"dje-NE",locale:"Zarma (Niger)",native:"Zarmaciine (Nižer)",flag:"🇳🇪"},{isocode:"dsb",locale:"Bas-sorabe",native:"Dolnoserbšćina",flag:"🇩🇪"},{isocode:"dsb-DE",locale:"Bas-sorabe (Germany)",native:"Dolnoserbšćina (Nimska)",flag:"🇩🇪"},{isocode:"dua",locale:"Douala",native:"Duálá",flag:"🇨🇲"},{isocode:"dua-CM",locale:"Douala (Cameroun)",native:"Duálá (Cameroun)",flag:"🇨🇲"},{isocode:"dyo",locale:"Diola-fogny",native:"Joola",flag:"🇸🇳"},{isocode:"dyo-SN",locale:"Diola-fogny (Sénégal)",native:"Joola (Senegal)",flag:"🇸🇳"},{isocode:"dz",locale:"Dzongkha",native:"རྫོང་ཁ",flag:"🇧🇹"},{isocode:"dz-BT",locale:"Dzongkha (Bhoutan)",native:"རྫོང་ཁ། (འབྲུག།)",flag:"🇧🇹"},{isocode:"ebu",locale:"Embou",native:"Kĩembu",flag:"🇰🇪"},{isocode:"ebu-KE",locale:"Embou (Kenya)",native:"Kĩembu (Kenya)",flag:"🇰🇪"},{isocode:"ee",locale:"Éwé",native:"Eʋegbe",flag:"🇬🇭"},{isocode:"ee-GH",locale:"Éwé (Ghana)",native:"Eʋegbe (Ghana nutome)",flag:"🇬🇭"},{isocode:"ee-TG",locale:"Éwé (Togo)",native:"Eʋegbe (Togo nutome)",flag:"🇹🇬"},{isocode:"el",locale:"Grec",native:"Ελληνικά",flag:"🇬🇷"},{isocode:"el-CY",locale:"Grec (Chypre)",native:"Ελληνικά (Κύπρος)",flag:"🇨🇾"},{isocode:"el-GR",locale:"Grec (Grèce)",native:"Ελληνικά (Ελλάδα)",flag:"🇬🇷"},{isocode:"en",locale:"English",native:"English",flag:"🇬🇧"},{isocode:"en-001",locale:"English (World)",native:"English (World)",flag:"🌍"},{isocode:"en-150",locale:"English (Europe)",native:"English (Europe)",flag:"🇪🇺"},{isocode:"en-AG",locale:"English (Antigua-et-Barbuda)",native:"English (Antigua & Barbuda)",flag:"🇦🇬"},{isocode:"en-AI",locale:"English (Anguilla)",native:"English (Anguilla)",flag:"🇦🇮"},{isocode:"en-AS",locale:"English (Samoa américaines)",native:"English (American Samoa)",flag:"🇦🇸"},{isocode:"en-AT",locale:"English (Autriche)",native:"English (Austria)",flag:"🇦🇹"},{isocode:"en-AU",locale:"English (Australia)",native:"English (Australia)",flag:"🇦🇺"},{isocode:"en-BB",locale:"English (Barbade)",native:"English (Barbados)",flag:"🇧🇧"},{isocode:"en-BE",locale:"English (Belgium)",native:"English (Belgium)",flag:"🇧🇪"},{isocode:"en-BI",locale:"English (Burundi)",native:"English (Burundi)",flag:"🇧🇮"},{isocode:"en-BM",locale:"English (Bermudes)",native:"English (Bermuda)",flag:"🇧🇲"},{isocode:"en-BS",locale:"English (Bahamas)",native:"English (Bahamas)",flag:"🇧🇸"},{isocode:"en-BW",locale:"English (Botswana)",native:"English (Botswana)",flag:"🇧🇼"},{isocode:"en-BZ",locale:"English (Belize)",native:"English (Belize)",flag:"🇧🇿"},{isocode:"en-CA",locale:"English (Canada)",native:"English (Canada)",flag:"🇨🇦"},{isocode:"en-CC",locale:"English (Îles Cocos)",native:"English (Cocos [Keeling] Islands)",flag:"🇨🇨"},{isocode:"en-CH",locale:"English (Switzerland)",native:"English (Switzerland)",flag:"🇨🇭"},{isocode:"en-CK",locale:"English (Îles Cook)",native:"English (Cook Islands)",flag:"🇨🇰"},{isocode:"en-CM",locale:"English (Cameroun)",native:"English (Cameroon)",flag:"🇨🇲"},{isocode:"en-CX",locale:"English (Île Christmas)",native:"English (Christmas Island)",flag:"🇨🇽"},{isocode:"en-CY",locale:"English (Chypre)",native:"English (Cyprus)",flag:"🇨🇾"},{isocode:"en-DE",locale:"English (Germany)",native:"English (Germany)",flag:"🇩🇪"},{isocode:"en-DG",locale:"English (Diego Garcia)",native:"English (Diego Garcia)",flag:"🇩🇬"},{isocode:"en-DK",locale:"English (Danemark)",native:"English (Denmark)",flag:"🇩🇰"},{isocode:"en-DM",locale:"English (Dominique)",native:"English (Dominica)",flag:"🇩🇲"},{isocode:"en-ER",locale:"English (Érythrée)",native:"English (Eritrea)",flag:"🇪🇷"},{isocode:"en-FI",locale:"English (Finlande)",native:"English (Finland)",flag:"🇫🇮"},{isocode:"en-FJ",locale:"English (Fidji)",native:"English (Fiji)",flag:"🇫🇯"},{isocode:"en-FK",locale:"English (Îles Malouines)",native:"English (Falkland Islands)",flag:"🇫🇰"},{isocode:"en-FM",locale:"English (États fédérés de Micronésie)",native:"English (Micronesia)",flag:"🇫🇲"},{isocode:"en-GB",locale:"English (United Kingdom)",native:"English (United Kingdom)",flag:"🇬🇧"},{isocode:"en-GD",locale:"English (Grenade)",native:"English (Grenada)",flag:"🇬🇩"},{isocode:"en-GG",locale:"English (Guernesey)",native:"English (Guernsey)",flag:"🇬🇬"},{isocode:"en-GH",locale:"English (Ghana)",native:"English (Ghana)",flag:"🇬🇭"},{isocode:"en-GI",locale:"English (Gibraltar)",native:"English (Gibraltar)",flag:"🇬🇮"},{isocode:"en-GM",locale:"English (Gambie)",native:"English (Gambia)",flag:"🇬🇲"},{isocode:"en-GU",locale:"English (Guam)",native:"English (Guam)",flag:"🇬🇺"},{isocode:"en-GY",locale:"English (Guyana)",native:"English (Guyana)",flag:"🇬🇾"},{isocode:"en-HK",locale:"English (R.A.S. chinoise de Hong Kong)",native:"English (Hong Kong SAR China)",flag:"🇭🇰"},{isocode:"en-IE",locale:"English (Irlande)",native:"English (Ireland)",flag:"🇮🇪"},{isocode:"en-IL",locale:"English (Israël)",native:"English (Israel)",flag:"🇮🇱"},{isocode:"en-IM",locale:"English (Île de Man)",native:"English (Isle of Man)",flag:"🇮🇲"},{isocode:"en-IN",locale:"English (India)",native:"English (India)",flag:"🇮🇳"},{isocode:"en-IO",locale:"English (Territoire britannique de l'océan Indien)",native:"English (British Indian Ocean Territory)",flag:"🇮🇴"},{isocode:"en-JE",locale:"English (Jersey)",native:"English (Jersey)",flag:"🇯🇪"},{isocode:"en-JM",locale:"English (Jamaïque)",native:"English (Jamaica)",flag:"🇯🇲"},{isocode:"en-KE",locale:"English (Kenya)",native:"English (Kenya)",flag:"🇰🇪"},{isocode:"en-KI",locale:"English (Kiribati)",native:"English (Kiribati)",flag:"🇰🇮"},{isocode:"en-KN",locale:"English (Saint-Christophe-et-Niévès)",native:"English (St. Kitts & Nevis)",flag:"🇰🇳"},{isocode:"en-KY",locale:"English (Îles Caïmans)",native:"English (Cayman Islands)",flag:"🇰🇾"},{isocode:"en-LC",locale:"English (Sainte-Lucie)",native:"English (St. Lucia)",flag:"🇱🇨"},{isocode:"en-LR",locale:"English (Libéria)",native:"English (Liberia)",flag:"🇱🇷"},{isocode:"en-LS",locale:"English (Lesotho)",native:"English (Lesotho)",flag:"🇱🇸"},{isocode:"en-MG",locale:"English (Madagascar)",native:"English (Madagascar)",flag:"🇲🇬"},{isocode:"en-MH",locale:"English (Îles Marshall)",native:"English (Marshall Islands)",flag:"🇲🇭"},{isocode:"en-MO",locale:"English (R.A.S. chinoise de Macao)",native:"English (Macau SAR China)",flag:"🇲🇴"},{isocode:"en-MP",locale:"English (Îles Mariannes du Nord)",native:"English (Northern Mariana Islands)",flag:"🇲🇵"},{isocode:"en-MS",locale:"English (Montserrat)",native:"English (Montserrat)",flag:"🇲🇸"},{isocode:"en-MT",locale:"English (Malte)",native:"English (Malta)",flag:"🇲🇹"},{isocode:"en-MU",locale:"English (Maurice)",native:"English (Mauritius)",flag:"🇲🇺"},{isocode:"en-MW",locale:"English (Malawi)",native:"English (Malawi)",flag:"🇲🇼"},{isocode:"en-MY",locale:"English (Malaisie)",native:"English (Malaysia)",flag:"🇲🇾"},{isocode:"en-NA",locale:"English (Namibie)",native:"English (Namibia)",flag:"🇳🇦"},{isocode:"en-NF",locale:"English (Île Norfolk)",native:"English (Norfolk Island)",flag:"🇳🇫"},{isocode:"en-NG",locale:"English (Nigéria)",native:"English (Nigeria)",flag:"🇳🇬"},{isocode:"en-NL",locale:"English (Pays-Bas)",native:"English (Netherlands)",flag:"🇳🇱"},{isocode:"en-NR",locale:"English (Nauru)",native:"English (Nauru)",flag:"🇳🇷"},{isocode:"en-NU",locale:"English (Niue)",native:"English (Niue)",flag:"🇳🇺"},{isocode:"en-NZ",locale:"English (New Zealand)",native:"English (New Zealand)",flag:"🇳🇿"},{isocode:"en-PG",locale:"English (Papouasie-Nouvelle-Guinée)",native:"English (Papua New Guinea)",flag:"🇵🇬"},{isocode:"en-PH",locale:"English (Philippines)",native:"English (Philippines)",flag:"🇵🇭"},{isocode:"en-PK",locale:"English (Pakistan)",native:"English (Pakistan)",flag:"🇵🇰"},{isocode:"en-PN",locale:"English (Îles Pitcairn)",native:"English (Pitcairn Islands)",flag:"🇵🇳"},{isocode:"en-PR",locale:"English (Porto Rico)",native:"English (Puerto Rico)",flag:"🇵🇷"},{isocode:"en-PW",locale:"English (Palaos)",native:"English (Palau)",flag:"🇵🇼"},{isocode:"en-RW",locale:"English (Rwanda)",native:"English (Rwanda)",flag:"🇷🇼"},{isocode:"en-SB",locale:"English (Îles Salomon)",native:"English (Solomon Islands)",flag:"🇸🇧"},{isocode:"en-SC",locale:"English (Seychelles)",native:"English (Seychelles)",flag:"🇸🇨"},{isocode:"en-SD",locale:"English (Soudan)",native:"English (Sudan)",flag:"🇸🇩"},{isocode:"en-SE",locale:"English (Suède)",native:"English (Sweden)",flag:"🇸🇪"},{isocode:"en-SG",locale:"English (Singapour)",native:"English (Singapore)",flag:"🇸🇬"},{isocode:"en-SH",locale:"English (Sainte-Hélène)",native:"English (St. Helena)",flag:"🇸🇭"},{isocode:"en-SI",locale:"English (Slovénie)",native:"English (Slovenia)",flag:"🇸🇮"},{isocode:"en-SL",locale:"English (Sierra Leone)",native:"English (Sierra Leone)",flag:"🇸🇱"},{isocode:"en-SS",locale:"English (Soudan du Sud)",native:"English (South Sudan)",flag:"🇸🇸"},{isocode:"en-SX",locale:"English (Saint-Martin [partie néerlandaise])",native:"English (Sint Maarten)",flag:"🇸🇽"},{isocode:"en-SZ",locale:"English (Swaziland)",native:"English (Swaziland)",flag:"🇸🇿"},{isocode:"en-TC",locale:"English (Îles Turques-et-Caïques)",native:"English (Turks & Caicos Islands)",flag:"🇹🇨"},{isocode:"en-TK",locale:"English (Tokélaou)",native:"English (Tokelau)",flag:"🇹🇰"},{isocode:"en-TO",locale:"English (Tonga)",native:"English (Tonga)",flag:"🇹🇴"},{isocode:"en-TT",locale:"English (Trinité-et-Tobago)",native:"English (Trinidad & Tobago)",flag:"🇹🇹"},{isocode:"en-TV",locale:"English (Tuvalu)",native:"English (Tuvalu)",flag:"🇹🇻"},{isocode:"en-TZ",locale:"English (Tanzanie)",native:"English (Tanzania)",flag:"🇹🇿"},{isocode:"en-UG",locale:"English (Ouganda)",native:"English (Uganda)",flag:"🇺🇬"},{isocode:"en-UM",locale:"English (Îles mineures éloignées des United States)",native:"English (U.S. Outlying Islands)",flag:"🇺🇲"},{isocode:"en-US",locale:"English (United States)",native:"English (United States)",flag:"🇺🇸"},{isocode:"en-US-POSIX",locale:"English (United States, Computer)",native:"English (United States, Computer)",flag:"💻"},{isocode:"en-VC",locale:"English (Saint-Vincent-et-les-Grenadines)",native:"English (St. Vincent & Grenadines)",flag:"🇻🇨"},{isocode:"en-VG",locale:"English (Îles Vierges britanniques)",native:"English (British Virgin Islands)",flag:"🇻🇬"},{isocode:"en-VI",locale:"English (Îles Vierges des United States)",native:"English (U.S. Virgin Islands)",flag:"🇻🇮"},{isocode:"en-VU",locale:"English (Vanuatu)",native:"English (Vanuatu)",flag:"🇻🇺"},{isocode:"en-WS",locale:"English (Samoa)",native:"English (Samoa)",flag:"🇼🇸"},{isocode:"en-ZA",locale:"English (South Africa)",native:"English (South Africa)",flag:"🇿🇦"},{isocode:"en-ZM",locale:"English (Zambie)",native:"English (Zambia)",flag:"🇿🇲"},{isocode:"en-ZW",locale:"English (Zimbabwe)",native:"English (Zimbabwe)",flag:"🇿🇼"},{isocode:"eo",locale:"Espéranto",native:"Esperanto",flag:"🌍"},{isocode:"es",locale:"Espagnol",native:"Español",flag:"🇪🇸"},{isocode:"es-419",locale:"Espagnol (Latin America)",native:"Español (Latinoamérica)",flag:"🌎"},{isocode:"es-AR",locale:"Espagnol (Argentine)",native:"Español (Argentina)",flag:"🇦🇷"},{isocode:"es-BO",locale:"Espagnol (Bolivie)",native:"Español (Bolivia)",flag:"🇧🇴"},{isocode:"es-BR",locale:"Espagnol (Brazil)",native:"Español (Brasil)",flag:"🇧🇷"},{isocode:"es-BZ",locale:"Espagnol (Belize)",native:"Español (Belice)",flag:"🇧🇿"},{isocode:"es-CL",locale:"Espagnol (Chili)",native:"Español (Chile)",flag:"🇨🇱"},{isocode:"es-CO",locale:"Espagnol (Colombie)",native:"Español (Colombia)",flag:"🇨🇴"},{isocode:"es-CR",locale:"Espagnol (Costa Rica)",native:"Español (Costa Rica)",flag:"🇨🇷"},{isocode:"es-CU",locale:"Espagnol (Cuba)",native:"Español (Cuba)",flag:"🇨🇺"},{isocode:"es-DO",locale:"Espagnol (République dominicaine)",native:"Español (República Dominicana)",flag:"🇩🇴"},{isocode:"es-EA",locale:"Espagnol (Ceuta et Melilla)",native:"Español (Ceuta y Melilla)",flag:"🇪🇦"},{isocode:"es-EC",locale:"Espagnol (Équateur)",native:"Español (Ecuador)",flag:"🇪🇨"},{isocode:"es-ES",locale:"Espagnol (Spain)",native:"Español (España)",flag:"🇪🇸"},{isocode:"es-GQ",locale:"Espagnol (Guinée équatoriale)",native:"Español (Guinea Ecuatorial)",flag:"🇬🇶"},{isocode:"es-GT",locale:"Espagnol (Guatemala)",native:"Español (Guatemala)",flag:"🇬🇹"},{isocode:"es-HN",locale:"Espagnol (Honduras)",native:"Español (Honduras)",flag:"🇭🇳"},{isocode:"es-IC",locale:"Espagnol (Îles Canaries)",native:"Español (Canarias)",flag:"🇮🇨"},{isocode:"es-MX",locale:"Espagnol (Mexico)",native:"Español (México)",flag:"🇲🇽"},{isocode:"es-NI",locale:"Espagnol (Nicaragua)",native:"Español (Nicaragua)",flag:"🇳🇮"},{isocode:"es-PA",locale:"Espagnol (Panama)",native:"Español (Panamá)",flag:"🇵🇦"},{isocode:"es-PE",locale:"Espagnol (Pérou)",native:"Español (Perú)",flag:"🇵🇪"},{isocode:"es-PH",locale:"Espagnol (Philippines)",native:"Español (Filipinas)",flag:"🇵🇭"},{isocode:"es-PR",locale:"Espagnol (Porto Rico)",native:"Español (Puerto Rico)",flag:"🇵🇷"},{isocode:"es-PY",locale:"Espagnol (Paraguay)",native:"Español (Paraguay)",flag:"🇵🇾"},{isocode:"es-SV",locale:"Espagnol (Salvador)",native:"Español (El Salvador)",flag:"🇸🇻"},{isocode:"es-US",locale:"Espagnol (United States)",native:"Español (Estados Unidos)",flag:"🇺🇸"},{isocode:"es-UY",locale:"Espagnol (Uruguay)",native:"Español (Uruguay)",flag:"🇺🇾"},{isocode:"es-VE",locale:"Espagnol (Venezuela)",native:"Español (Venezuela)",flag:"🇻🇪"},{isocode:"et",locale:"Estonien",native:"Eesti",flag:"🇪🇪"},{isocode:"et-EE",locale:"Estonien (Estonie)",native:"Eesti (Eesti)",flag:"🇪🇪"},{isocode:"eu",locale:"Basque",native:"Euskara",flag:"🇪🇸"},{isocode:"eu-ES",locale:"Basque (Spain)",native:"Euskara (Espainia)",flag:"🇪🇸"},{isocode:"ewo",locale:"Éwondo",native:"Ewondo",flag:"🇨🇲"},{isocode:"ewo-CM",locale:"Éwondo (Cameroun)",native:"Ewondo (Kamərún)",flag:"🇨🇲"},{isocode:"fa",locale:"Persan",native:"فارسی",flag:"🇮🇷"},{isocode:"fa-AF",locale:"Persan (Afghanistan)",native:"فارسی (افغانستان)",flag:"🇦🇫"},{isocode:"fa-IR",locale:"Persan (Iran)",native:"فارسی (ایران)",flag:"🇮🇷"},{isocode:"ff",locale:"Peul",native:"Pulaar",flag:"🇸🇳"},{isocode:"ff-CM",locale:"Peul (Cameroun)",native:"Pulaar (Kameruun)",flag:"🇨🇲"},{isocode:"ff-GN",locale:"Peul (Guinée)",native:"Pulaar (Gine)",flag:"🇬🇳"},{isocode:"ff-MR",locale:"Peul (Mauritanie)",native:"Pulaar (Muritani)",flag:"🇲🇷"},{isocode:"ff-SN",locale:"Peul (Sénégal)",native:"Pulaar (Senegaal)",flag:"🇸🇳"},{isocode:"fi",locale:"Finnois",native:"Suomi",flag:"🇫🇮"},{isocode:"fi-FI",locale:"Finnois (Finlande)",native:"Suomi (Suomi)",flag:"🇫🇮"},{isocode:"fil",locale:"Filipino",native:"Filipino",flag:"🇵🇭"},{isocode:"fil-PH",locale:"Filipino (Philippines)",native:"Filipino (Pilipinas)",flag:"🇵🇭"},{isocode:"fo",locale:"Féroïen",native:"Føroyskt",flag:"🇫🇴"},{isocode:"fo-DK",locale:"Féroïen (Danemark)",native:"Føroyskt (Danmark)",flag:"🇩🇰"},{isocode:"fo-FO",locale:"Féroïen (Îles Féroé)",native:"Føroyskt (Føroyar)",flag:"🇫🇴"},{isocode:"fr",locale:"French",native:"Français",flag:"🇫🇷"},{isocode:"fr-BE",locale:"French (Belgium)",native:"Français (Belgique)",flag:"🇧🇪"},{isocode:"fr-BF",locale:"French (Burkina Faso)",native:"Français (Burkina Faso)",flag:"🇧🇫"},{isocode:"fr-BI",locale:"French (Burundi)",native:"Français (Burundi)",flag:"🇧🇮"},{isocode:"fr-BJ",locale:"French (Bénin)",native:"Français (Bénin)",flag:"🇧🇯"},{isocode:"fr-BL",locale:"French (Saint-Barthélemy)",native:"Français (Saint-Barthélemy)",flag:"🇧🇱"},{isocode:"fr-CA",locale:"French (Canada)",native:"Français (Canada)",flag:"🇨🇦"},{isocode:"fr-CD",locale:"French (Congo-Kinshasa)",native:"Français (Congo-Kinshasa)",flag:"🇨🇩"},{isocode:"fr-CF",locale:"French (République centrafricaine)",native:"Français (République centrafricaine)",flag:"🇨🇫"},{isocode:"fr-CG",locale:"French (Congo-Brazzaville)",native:"Français (Congo-Brazzaville)",flag:"🇨🇬"},{isocode:"fr-CH",locale:"French (Switzerland)",native:"Français (Suisse)",flag:"🇨🇭"},{isocode:"fr-CI",locale:"French (Côte d'Ivoire)",native:"Français (Côte d'Ivoire)",flag:"🇨🇮"},{isocode:"fr-CM",locale:"French (Cameroun)",native:"Français (Cameroun)",flag:"🇨🇲"},{isocode:"fr-DJ",locale:"French (Djibouti)",native:"Français (Djibouti)",flag:"🇩🇯"},{isocode:"fr-DZ",locale:"French (Algérie)",native:"Français (Algérie)",flag:"🇩🇿"},{isocode:"fr-FR",locale:"French (France)",native:"Français (France)",flag:"🇫🇷"},{isocode:"fr-GA",locale:"French (Gabon)",native:"Français (Gabon)",flag:"🇬🇦"},{isocode:"fr-GF",locale:"French (Guyane française)",native:"Français (Guyane française)",flag:"🇬🇫"},{isocode:"fr-GN",locale:"French (Guinée)",native:"Français (Guinée)",flag:"🇬🇳"},{isocode:"fr-GP",locale:"French (Guadeloupe)",native:"Français (Guadeloupe)",flag:"🇬🇵"},{isocode:"fr-GQ",locale:"French (Guinée équatoriale)",native:"Français (Guinée équatoriale)",flag:"🇬🇶"},{isocode:"fr-HT",locale:"French (Haïti)",native:"Français (Haïti)",flag:"🇭🇹"},{isocode:"fr-KM",locale:"French (Comores)",native:"Français (Comores)",flag:"🇰🇲"},{isocode:"fr-LU",locale:"French (Luxembourg)",native:"Français (Luxembourg)",flag:"🇱🇺"},{isocode:"fr-MA",locale:"French (Maroc)",native:"Français (Maroc)",flag:"🇲🇦"},{isocode:"fr-MC",locale:"French (Monaco)",native:"Français (Monaco)",flag:"🇲🇨"},{isocode:"fr-MF",locale:"French (Saint-Martin)",native:"Français (Saint-Martin)",flag:"🇲🇫"},{isocode:"fr-MG",locale:"French (Madagascar)",native:"Français (Madagascar)",flag:"🇲🇬"},{isocode:"fr-ML",locale:"French (Mali)",native:"Français (Mali)",flag:"🇲🇱"},{isocode:"fr-MQ",locale:"French (Martinique)",native:"Français (Martinique)",flag:"🇲🇶"},{isocode:"fr-MR",locale:"French (Mauritanie)",native:"Français (Mauritanie)",flag:"🇲🇷"},{isocode:"fr-MU",locale:"French (Maurice)",native:"Français (Maurice)",flag:"🇲🇺"},{isocode:"fr-NC",locale:"French (Nouvelle-Calédonie)",native:"Français (Nouvelle-Calédonie)",flag:"🇳🇨"},{isocode:"fr-NE",locale:"French (Niger)",native:"Français (Niger)",flag:"🇳🇪"},{isocode:"fr-PF",locale:"French (Polynésie française)",native:"Français (Polynésie française)",flag:"🇵🇫"},{isocode:"fr-PM",locale:"French (Saint-Pierre-et-Miquelon)",native:"Français (Saint-Pierre-et-Miquelon)",flag:"🇵🇲"},{isocode:"fr-RE",locale:"French (La Réunion)",native:"Français (La Réunion)",flag:"🇷🇪"},{isocode:"fr-RW",locale:"French (Rwanda)",native:"Français (Rwanda)",flag:"🇷🇼"},{isocode:"fr-SC",locale:"French (Seychelles)",native:"Français (Seychelles)",flag:"🇸🇨"},{isocode:"fr-SN",locale:"French (Sénégal)",native:"Français (Sénégal)",flag:"🇸🇳"},{isocode:"fr-SY",locale:"French (Syrie)",native:"Français (Syrie)",flag:"🇸🇾"},{isocode:"fr-TD",locale:"French (Tchad)",native:"Français (Tchad)",flag:"🇹🇩"},{isocode:"fr-TG",locale:"French (Togo)",native:"Français (Togo)",flag:"🇹🇬"},{isocode:"fr-TN",locale:"French (Tunisie)",native:"Français (Tunisie)",flag:"🇹🇳"},{isocode:"fr-VU",locale:"French (Vanuatu)",native:"Français (Vanuatu)",flag:"🇻🇺"},{isocode:"fr-WF",locale:"French (Wallis-et-Futuna)",native:"Français (Wallis-et-Futuna)",flag:"🇼🇫"},{isocode:"fr-YT",locale:"French (Mayotte)",native:"Français (Mayotte)",flag:"🇾🇹"},{isocode:"fur",locale:"Frioulan",native:"Furlan",flag:"🇮🇹"},{isocode:"fur-IT",locale:"Frioulan (Italie)",native:"Furlan (Italie)",flag:"🇮🇹"},{isocode:"fy",locale:"Frison occidental",native:"Frysk",flag:"🇳🇱"},{isocode:"fy-NL",locale:"Frison occidental (Pays-Bas)",native:"Frysk (Nederlân)",flag:"🇳🇱"},{isocode:"ga",locale:"Irlandais",native:"Gaeilge",flag:"🇮🇪"},{isocode:"ga-IE",locale:"Irlandais (Irlande)",native:"Gaeilge (Éire)",flag:"🇮🇪"},{isocode:"gd",locale:"Gaélique écossais",native:"Gàidhlig",flag:"🏴"},{isocode:"gd-GB",locale:"Gaélique écossais (United Kingdom)",native:"Gàidhlig (An Rìoghachd Aonaichte)",flag:"🇬🇧"},{isocode:"gl",locale:"Galicien",native:"Galego",flag:"🇪🇸"},{isocode:"gl-ES",locale:"Galicien (Spain)",native:"Galego (España)",flag:"🇪🇸"},{isocode:"gsw",locale:"Switzerland German",native:"Schwiizertüütsch",flag:"🇨🇭"},{isocode:"gsw-CH",locale:"Switzerland German (Switzerland)",native:"Schwiizertüütsch (Schwiiz)",flag:"🇨🇭"},{isocode:"gsw-FR",locale:"Switzerland German (France)",native:"Schwiizertüütsch (Frankriich)",flag:"🇫🇷"},{isocode:"gsw-LI",locale:"Switzerland German (Liechtenstein)",native:"Schwiizertüütsch (Liächteschtäi)",flag:"🇱🇮"},{isocode:"gu",locale:"Goudjerati",native:"ગુજરાતી",flag:"🇮🇳"},{isocode:"gu-IN",locale:"Goudjerati (India)",native:"ગુજરાતી (ભારત)",flag:"🇮🇳"},{isocode:"guz",locale:"Gusii",native:"Ekegusii",flag:"🇰🇪"},{isocode:"guz-KE",locale:"Gusii (Kenya)",native:"Ekegusii (Kenya)",flag:"🇰🇪"},{isocode:"gv",locale:"Mannois",native:"Gaelg",flag:"🇮🇲"},{isocode:"gv-IM",locale:"Mannois (Île de Man)",native:"Gaelg (Ellan Vannin)",flag:"🇮🇲"},{isocode:"ha",locale:"Haoussa",native:"Hausa",flag:"🇳🇬"},{isocode:"ha-GH",locale:"Haoussa (Ghana)",native:"Hausa (Gana)",flag:"🇬🇭"},{isocode:"ha-NE",locale:"Haoussa (Niger)",native:"Hausa (Nijar)",flag:"🇳🇪"},{isocode:"ha-NG",locale:"Haoussa (Nigéria)",native:"Hausa (Najeriya)",flag:"🇳🇬"},{isocode:"haw",locale:"Hawaïen",native:"ʻŌlelo Hawaiʻi",flag:"🇺🇸"},{isocode:"haw-US",locale:"Hawaïen (United States)",native:"ʻŌlelo Hawaiʻi (ʻAmelika Hui Pū ʻIa)",flag:"🇺🇸"},{isocode:"he",locale:"Hébreu",native:"עברית",flag:"🇮🇱"},{isocode:"he-IL",locale:"Hébreu (Israël)",native:"עברית (ישראל)",flag:"🇮🇱"},{isocode:"hi",locale:"Hindi",native:"हिन्दी",flag:"🇮🇳"},{isocode:"hi-IN",locale:"Hindi (India)",native:"हिन्दी (भारत)",flag:"🇮🇳"},{isocode:"hr",locale:"Croate",native:"Hrvatski",flag:"🇭🇷"},{isocode:"hr-BA",locale:"Croate (Bosnie-Herzégovine)",native:"Hrvatski (Bosna i Hercegovina)",flag:"🇧🇦"},{isocode:"hr-HR",locale:"Croate (Croatie)",native:"Hrvatski (Hrvatska)",flag:"🇭🇷"},{isocode:"hsb",locale:"Haut-sorabe",native:"Hornjoserbšćina",flag:"🇩🇪"},{isocode:"hsb-DE",locale:"Haut-sorabe (Germany)",native:"Hornjoserbšćina (Němska)",flag:"🇩🇪"},{isocode:"hu",locale:"Hongrois",native:"Magyar",flag:"🇭🇺"},{isocode:"hu-HU",locale:"Hongrois (Hongrie)",native:"Magyar (Magyarország)",flag:"🇭🇺"},{isocode:"hy",locale:"Arménien",native:"հայերեն",flag:"🇦🇲"},{isocode:"hy-AM",locale:"Arménien (Arménie)",native:"հայերեն (Հայաստան)",flag:"🇦🇲"},{isocode:"id",locale:"Indonésien",native:"Indonesia",flag:"🇮🇩"},{isocode:"id-ID",locale:"Indonésien (Indonésie)",native:"Indonesia (Indonesia)",flag:"🇮🇩"},{isocode:"ig",locale:"Igbo",native:"Igbo",flag:"🇳🇬"},{isocode:"ig-NG",locale:"Igbo (Nigéria)",native:"Igbo (Naịjịrịa)",flag:"🇳🇬"},{isocode:"ii",locale:"Yi du Sichuan",native:"ꆈꌠꉙ",flag:"🇨🇳"},{isocode:"ii-CN",locale:"Yi du Sichuan (Chine)",native:"ꆈꌠꉙ (ꍏꇩ)",flag:"🇨🇳"},{isocode:"is",locale:"Islandais",native:"íslenska",flag:"🇮🇸"},{isocode:"is-IS",locale:"Islandais (Islande)",native:"íslenska (Ísland)",flag:"🇮🇸"},{isocode:"it",locale:"Italian",native:"Italiano",flag:"🇮🇹"},{isocode:"it-CH",locale:"Italian (Switzerland)",native:"Italiano (Svizzera)",flag:"🇨🇭"},{isocode:"it-IT",locale:"Italian (Italie)",native:"Italiano (Italia)",flag:"🇮🇹"},{isocode:"it-SM",locale:"Italian (Saint-Marin)",native:"Italiano (San Marino)",flag:"🇸🇲"},{isocode:"it-VA",locale:"Italian (État de la Cité du Vatican)",native:"Italiano (Città del Vaticano)",flag:"🇻🇦"},{isocode:"ja",locale:"Japonais",native:"日本語",flag:"🇯🇵"},{isocode:"ja-JP",locale:"Japonais (Japan)",native:"日本語 (日本)",flag:"🇯🇵"},{isocode:"jgo",locale:"Ngomba",native:"Ndaꞌa",flag:"🇨🇲"},{isocode:"jgo-CM",locale:"Ngomba (Cameroun)",native:"Ndaꞌa (Kamɛlûn)",flag:"🇨🇲"},{isocode:"jmc",locale:"Matchamé",native:"Kimachame",flag:"🇹🇿"},{isocode:"jmc-TZ",locale:"Matchamé (Tanzanie)",native:"Kimachame (Tanzania)",flag:"🇹🇿"},{isocode:"ka",locale:"Géorgien",native:"ქართული",flag:"🇬🇪"},{isocode:"ka-GE",locale:"Géorgien (Géorgie)",native:"ქართული (საქართველო)",flag:"🇬🇪"},{isocode:"kab",locale:"Kabyle",native:"Taqbaylit",flag:"🇩🇿"},{isocode:"kab-DZ",locale:"Kabyle (Algérie)",native:"Taqbaylit (Lezzayer)",flag:"🇩🇿"},{isocode:"kam",locale:"Kamba",native:"Kikamba",flag:"🇰🇪"},{isocode:"kam-KE",locale:"Kamba (Kenya)",native:"Kikamba (Kenya)",flag:"🇰🇪"},{isocode:"kde",locale:"Makondé",native:"Chimakonde",flag:"🇹🇿"},{isocode:"kde-TZ",locale:"Makondé (Tanzanie)",native:"Chimakonde (Tanzania)",flag:"🇹🇿"},{isocode:"kea",locale:"Capverdien",native:"Kabuverdianu",flag:"🇨🇻"},{isocode:"kea-CV",locale:"Capverdien (Cap-Vert)",native:"Kabuverdianu (Kabu Verdi)",flag:"🇨🇻"},{isocode:"khq",locale:"Koyra chiini",native:"Koyra ciini",flag:"🇲🇱"},{isocode:"khq-ML",locale:"Koyra chiini (Mali)",native:"Koyra ciini (Maali)",flag:"🇲🇱"},{isocode:"ki",locale:"Kikuyu",native:"Gikuyu",flag:"🇰🇪"},{isocode:"ki-KE",locale:"Kikuyu (Kenya)",native:"Gikuyu (Kenya)",flag:"🇰🇪"},{isocode:"kk",locale:"Kazakh",native:"қазақ тілі",flag:"🇰🇿"},{isocode:"kk-KZ",locale:"Kazakh (Kazakhstan)",native:"қазақ тілі (Қазақстан)",flag:"🇰🇿"},{isocode:"kkj",locale:"Kako",native:"Kakɔ",flag:"🇨🇲"},{isocode:"kkj-CM",locale:"Kako (Cameroun)",native:"Kakɔ (Kamɛrun)",flag:"🇨🇲"},{isocode:"kl",locale:"Groenlandais",native:"Kalaallisut",flag:"🇬🇱"},{isocode:"kl-GL",locale:"Groenlandais (Groenland)",native:"Kalaallisut (Kalaallit Nunaat)",flag:"🇬🇱"},{isocode:"kln",locale:"Kalendjin",native:"Kalenjin",flag:"🇰🇪"},{isocode:"kln-KE",locale:"Kalendjin (Kenya)",native:"Kalenjin (Emetab Kenya)",flag:"🇰🇪"},{isocode:"km",locale:"Khmer",native:"ខ្មែរ",flag:"🇰🇭"},{isocode:"km-KH",locale:"Khmer (Cambodge)",native:"ខ្មែរ (កម្ពុជា)",flag:"🇰🇭"},{isocode:"kn",locale:"Kannada",native:"ಕನ್ನಡ",flag:"🇮🇳"},{isocode:"kn-IN",locale:"Kannada (India)",native:"ಕನ್ನಡ (ಭಾರತ)",flag:"🇮🇳"},{isocode:"ko",locale:"Coréen",native:"한국어",flag:"🇰🇷"},{isocode:"ko-KP",locale:"Coréen (Corée du Nord)",native:"한국어(조선민주주의인민공화국)",flag:"🇰🇵"},{isocode:"ko-KR",locale:"Coréen (Corée du Sud)",native:"한국어(대한민국)",flag:"🇰🇷"},{isocode:"kok",locale:"Konkani",native:"कोंकणी",flag:"🇮🇳"},{isocode:"kok-IN",locale:"Konkani (India)",native:"कोंकणी (भारत)",flag:"🇮🇳"},{isocode:"ks",locale:"Kashmiri",native:"کٲشُر",flag:"🇮🇳"},{isocode:"ks-IN",locale:"Kashmiri (India)",native:"کٲشُر (ہِنٛدوستان)",flag:"🇮🇳"},{isocode:"ksb",locale:"Chambala",native:"Kishambaa",flag:"🇹🇿"},{isocode:"ksb-TZ",locale:"Chambala (Tanzanie)",native:"Kishambaa (Tanzania)",flag:"🇹🇿"},{isocode:"ksf",locale:"Bafia",native:"Rikpa",flag:"🇨🇲"},{isocode:"ksf-CM",locale:"Bafia (Cameroun)",native:"Rikpa (kamɛrún)",flag:"🇨🇲"},{isocode:"ksh",locale:"Francique ripuaire",native:"Kölsch",flag:"🇩🇪"},{isocode:"ksh-DE",locale:"Francique ripuaire (Germany)",native:"Kölsch en Doütschland",flag:"🇩🇪"},{isocode:"kw",locale:"Cornique",native:"Kernewek",flag:"🇬🇧"},{isocode:"kw-GB",locale:"Cornique (United Kingdom)",native:"Kernewek (Rywvaneth Unys)",flag:"🇬🇧"},{isocode:"ky",locale:"Kirghize",native:"кыргызча",flag:"🇰🇬"},{isocode:"ky-KG",locale:"Kirghize (Kirghizistan)",native:"кыргызча (Кыргызстан)",flag:"🇰🇬"},{isocode:"lag",locale:"Langi",native:"Kɨlaangi",flag:"🇹🇿"},{isocode:"lag-TZ",locale:"Langi (Tanzanie)",native:"Kɨlaangi (Taansanía)",flag:"🇹🇿"},{isocode:"lb",locale:"Luxembourgeois",native:"Lëtzebuergesch",flag:"🇱🇺"},{isocode:"lb-LU",locale:"Luxembourgeois (Luxembourg)",native:"Lëtzebuergesch (Lëtzebuerg)",flag:"🇱🇺"},{isocode:"lg",locale:"Ganda",native:"Luganda",flag:"🇺🇬"},{isocode:"lg-UG",locale:"Ganda (Ouganda)",native:"Luganda (Yuganda)",flag:"🇺🇬"},{isocode:"lkt",locale:"Lakota",native:"Lakȟólʼiyapi",flag:"🇺🇸"},{isocode:"lkt-US",locale:"Lakota (United States)",native:"Lakȟólʼiyapi (Mílahaŋska Tȟamákȟočhe)",flag:"🇺🇸"},{isocode:"ln",locale:"Lingala",native:"Lingála",flag:"🇨🇩"},{isocode:"ln-AO",locale:"Lingala (Angola)",native:"Lingála (Angóla)",flag:"🇦🇴"},{isocode:"ln-CD",locale:"Lingala (Congo-Kinshasa)",native:"Lingála (Republíki ya Kongó Demokratíki)",flag:"🇨🇩"},{isocode:"ln-CF",locale:"Lingala (République centrafricaine)",native:"Lingála (Repibiki ya Afríka ya Káti)",flag:"🇨🇫"},{isocode:"ln-CG",locale:"Lingala (Congo-Brazzaville)",native:"Lingála (Kongo)",flag:"🇨🇬"},{isocode:"lo",locale:"Lao",native:"ລາວ",flag:"🇱🇦"},{isocode:"lo-LA",locale:"Lao (Laos)",native:"ລາວ (ລາວ)",flag:"🇱🇦"},{isocode:"lrc",locale:"Lori du Nord",native:"لۊری شومالی",flag:"🇮🇷"},{isocode:"lrc-IQ",locale:"Lori du Nord (Irak)",native:"لۊری شومالی (IQ)",flag:"🇮🇶"},{isocode:"lrc-IR",locale:"Lori du Nord (Iran)",native:"لۊری شومالی (IR)",flag:"🇮🇷"},{isocode:"lt",locale:"Lituanien",native:"Lietuvių",flag:"🇱🇹"},{isocode:"lt-LT",locale:"Lituanien (Lituanie)",native:"Lietuvių (Lietuva)",flag:"🇱🇹"},{isocode:"lu",locale:"Luba-katanga",native:"Tshiluba",flag:"🇨🇩"},{isocode:"lu-CD",locale:"Luba-katanga (Congo-Kinshasa)",native:"Tshiluba (Ditunga wa Kongu)",flag:"🇨🇩"},{isocode:"luo",locale:"Luo",native:"Dholuo",flag:"🇰🇪"},{isocode:"luo-KE",locale:"Luo (Kenya)",native:"Dholuo (Kenya)",flag:"🇰🇪"},{isocode:"luy",locale:"Luhya",native:"Luluhia",flag:"🇰🇪"},{isocode:"luy-KE",locale:"Luhya (Kenya)",native:"Luluhia (Kenya)",flag:"🇰🇪"},{isocode:"lv",locale:"Letton",native:"Latviešu",flag:"🇱🇻"},{isocode:"lv-LV",locale:"Letton (Lettonie)",native:"Latviešu (Latvija)",flag:"🇱🇻"},{isocode:"mas",locale:"Massaï",native:"Maa",flag:"🇰🇪"},{isocode:"mas-KE",locale:"Massaï (Kenya)",native:"Maa (Kenya)",flag:"🇰🇪"},{isocode:"mas-TZ",locale:"Massaï (Tanzanie)",native:"Maa (Tansania)",flag:"🇹🇿"},{isocode:"mer",locale:"Mérou",native:"Kĩmĩrũ",flag:"🇰🇪"},{isocode:"mer-KE",locale:"Mérou (Kenya)",native:"Kĩmĩrũ (Kenya)",flag:"🇰🇪"},{isocode:"mfe",locale:"Créole mauricien",native:"Kreol morisien",flag:"🇲🇺"},{isocode:"mfe-MU",locale:"Créole mauricien (Maurice)",native:"Kreol morisien (Moris)",flag:"🇲🇺"},{isocode:"mg",locale:"Malgache",native:"Malagasy",flag:"🇲🇬"},{isocode:"mg-MG",locale:"Malgache (Madagascar)",native:"Malagasy (Madagasikara)",flag:"🇲🇬"},{isocode:"mgh",locale:"Makhuwa-meetto",native:"Makua",flag:"🇲🇿"},{isocode:"mgh-MZ",locale:"Makhuwa-meetto (Mozambique)",native:"Makua (Umozambiki)",flag:"🇲🇿"},{isocode:"mgo",locale:"Méta'",native:"Metaʼ",flag:"🇨🇲"},{isocode:"mgo-CM",locale:"Méta' (Cameroun)",native:"Metaʼ (Kamalun)",flag:"🇨🇲"},{isocode:"mk",locale:"Macédonien",native:"македонски",flag:"🇲🇰"},{isocode:"mk-MK",locale:"Macédonien (Macédoine)",native:"македонски (Македонија)",flag:"🇲🇰"},{isocode:"ml",locale:"Malayalam",native:"മലയാളം",flag:"🇮🇳"},{isocode:"ml-IN",locale:"Malayalam (India)",native:"മലയാളം (ഇന്ത്യ)",flag:"🇮🇳"},{isocode:"mn",locale:"Mongol",native:"монгол",flag:"🇲🇳"},{isocode:"mn-MN",locale:"Mongol (Mongolie)",native:"монгол (Монгол)",flag:"🇲🇳"},{isocode:"mr",locale:"Marathe",native:"मराठी",flag:"🇮🇳"},{isocode:"mr-IN",locale:"Marathe (India)",native:"मराठी (भारत)",flag:"🇮🇳"},{isocode:"ms",locale:"Malais",native:"Melayu",flag:"🇲🇾"},{isocode:"ms-BN",locale:"Malais (Brunéi Darussalam)",native:"Melayu (Brunei)",flag:"🇧🇳"},{isocode:"ms-MY",locale:"Malais (Malaisie)",native:"Melayu (Malaysia)",flag:"🇲🇾"},{isocode:"ms-SG",locale:"Malais (Singapour)",native:"Melayu (Singapura)",flag:"🇸🇬"},{isocode:"mt",locale:"Maltais",native:"Malti",flag:"🇲🇹"},{isocode:"mt-MT",locale:"Maltais (Malte)",native:"Malti (Malta)",flag:"🇲🇹"},{isocode:"mua",locale:"Moundang",native:"MUNDAŊ",flag:"🇨🇲"},{isocode:"mua-CM",locale:"Moundang (Cameroun)",native:"MUNDAŊ (kameruŋ)",flag:"🇨🇲"},{isocode:"my",locale:"Birman",native:"မြန်မာ",flag:"🇲🇲"},{isocode:"my-MM",locale:"Birman (Myanmar [Birmanie])",native:"မြန်မာ (မြန်မာ)",flag:"🇲🇲"},{isocode:"mzn",locale:"Mazandérani",native:"مازرونی",flag:"🇮🇷"},{isocode:"mzn-IR",locale:"Mazandérani (Iran)",native:"مازرونی (ایران)",flag:"🇮🇷"},{isocode:"naq",locale:"Nama",native:"Khoekhoegowab",flag:"🇳🇦"},{isocode:"naq-NA",locale:"Nama (Namibie)",native:"Khoekhoegowab (Namibiab)",flag:"🇳🇦"},{isocode:"nb",locale:"Norvégien bokmål",native:"Norsk bokmål",flag:"🇳🇴"},{isocode:"nb-NO",locale:"Norvégien bokmål (Norvège)",native:"Norsk bokmål (Norge)",flag:"🇳🇴"},{isocode:"nb-SJ",locale:"Norvégien bokmål (Svalbard et Jan Mayen)",native:"Norsk bokmål (Svalbard og Jan Mayen)",flag:"🇸🇯"},{isocode:"nd",locale:"Ndébélé du Nord",native:"IsiNdebele",flag:"🇿🇼"},{isocode:"nd-ZW",locale:"Ndébélé du Nord (Zimbabwe)",native:"IsiNdebele (Zimbabwe)",flag:"🇿🇼"},{isocode:"nds",locale:"Bas-German",native:"Nds",flag:"🇩🇪"},{isocode:"nds-DE",locale:"Bas-German (Germany)",native:"Nds (DE)",flag:"🇩🇪"},{isocode:"nds-NL",locale:"Bas-German (Pays-Bas)",native:"Nds (NL)",flag:"🇳🇱"},{isocode:"ne",locale:"Népalais",native:"नेपाली",flag:"🇳🇵"},{isocode:"ne-IN",locale:"Népalais (India)",native:"नेपाली (भारत)",flag:"🇮🇳"},{isocode:"ne-NP",locale:"Népalais (Népal)",native:"नेपाली (नेपाल)",flag:"🇳🇵"},{isocode:"nl",locale:"Néerlandais",native:"Nederlands",flag:"🇳🇱"},{isocode:"nl-AW",locale:"Néerlandais (Aruba)",native:"Nederlands (Aruba)",flag:"🇦🇼"},{isocode:"nl-BE",locale:"Néerlandais (Belgium)",native:"Nederlands (België)",flag:"🇧🇪"},{isocode:"nl-BQ",locale:"Néerlandais (Pays-Bas caribéens)",native:"Nederlands (Caribisch Nederland)",flag:"🇧🇶"},{isocode:"nl-CW",locale:"Néerlandais (Curaçao)",native:"Nederlands (Curaçao)",flag:"🇨🇼"},{isocode:"nl-NL",locale:"Néerlandais (Pays-Bas)",native:"Nederlands (Nederland)",flag:"🇳🇱"},{isocode:"nl-SR",locale:"Néerlandais (Suriname)",native:"Nederlands (Suriname)",flag:"🇸🇷"},{isocode:"nl-SX",locale:"Néerlandais (Saint-Martin [partie néerlandaise])",native:"Nederlands (Sint-Maarten)",flag:"🇸🇽"},{isocode:"nmg",locale:"Kwasio",native:"Nmg",flag:"🇨🇲"},{isocode:"nmg-CM",locale:"Kwasio (Cameroun)",native:"Nmg (Kamerun)",flag:"🇨🇲"},{isocode:"nn",locale:"Norvégien nynorsk",native:"Nynorsk",flag:"🇳🇴"},{isocode:"nn-NO",locale:"Norvégien nynorsk (Norvège)",native:"Nynorsk (Noreg)",flag:"🇳🇴"},{isocode:"nnh",locale:"Ngiemboon",native:"Shwóŋò ngiembɔɔn",flag:"🇨🇲"},{isocode:"nnh-CM",locale:"Ngiemboon (Cameroun)",native:"Shwóŋò ngiembɔɔn (Kàmalûm)",flag:"🇨🇲"},{isocode:"nus",locale:"Nuer",native:"Thok Nath",flag:"🇸🇸"},{isocode:"nus-SS",locale:"Nuer (Soudan du Sud)",native:"Thok Nath (SS)",flag:"🇸🇸"},{isocode:"nyn",locale:"Nyankolé",native:"Runyankore",flag:"🇺🇬"},{isocode:"nyn-UG",locale:"Nyankolé (Ouganda)",native:"Runyankore (Uganda)",flag:"🇺🇬"},{isocode:"om",locale:"Oromo",native:"Oromoo",flag:"🇪🇹"},{isocode:"om-ET",locale:"Oromo (Éthiopie)",native:"Oromoo (Itoophiyaa)",flag:"🇪🇹"},{isocode:"om-KE",locale:"Oromo (Kenya)",native:"Oromoo (Keeniyaa)",flag:"🇰🇪"},{isocode:"or",locale:"Oriya",native:"ଓଡ଼ିଆ",flag:"🇮🇳"},{isocode:"or-IN",locale:"Oriya (India)",native:"ଓଡ଼ିଆ (ଭାରତ)",flag:"🇮🇳"},{isocode:"os",locale:"Ossète",native:"ирон",flag:"🇬🇪"},{isocode:"os-GE",locale:"Ossète (Géorgie)",native:"ирон (Гуырдзыстон)",flag:"🇬🇪"},{isocode:"os-RU",locale:"Ossète (Russie)",native:"ирон (Уӕрӕсе)",flag:"🇷🇺"},{isocode:"pa",locale:"Pendjabi",native:"ਪੰਜਾਬੀ",flag:"🇮🇳"},{isocode:"pa-Arab",locale:"Pendjabi (Arabic)",native:"پنجابی (عربی)",flag:"🇵🇰"},{isocode:"pa-Arab-PK",locale:"Pendjabi (Arabic, Pakistan)",native:"پنجابی (عربی, پاکستان)",flag:"🇵🇰"},{isocode:"pa-Guru",locale:"Pendjabi (gourmoukhî)",native:"ਪੰਜਾਬੀ (ਗੁਰਮੁਖੀ)",flag:"🇮🇳"},{isocode:"pa-Guru-IN",locale:"Pendjabi (gourmoukhî, India)",native:"ਪੰਜਾਬੀ (ਗੁਰਮੁਖੀ, ਭਾਰਤ)",flag:"🇮🇳"},{isocode:"pl",locale:"Polonais",native:"Polski",flag:"🇵🇱"},{isocode:"pl-PL",locale:"Polonais (Pologne)",native:"Polski (Polska)",flag:"🇵🇱"},{isocode:"ps",locale:"Pachto",native:"پښتو",flag:"🇦🇫"},{isocode:"ps-AF",locale:"Pachto (Afghanistan)",native:"پښتو (افغانستان)",flag:"🇦🇫"},{isocode:"pt",locale:"Portugais",native:"Português",flag:"🇵🇹"},{isocode:"pt-AO",locale:"Portugais (Angola)",native:"Português (Angola)",flag:"🇦🇴"},{isocode:"pt-BR",locale:"Portugais (Brazil)",native:"Português (Brasil)",flag:"🇧🇷"},{isocode:"pt-CH",locale:"Portugais (Switzerland)",native:"Português (Suíça)",flag:"🇨🇭"},{isocode:"pt-CV",locale:"Portugais (Cap-Vert)",native:"Português (Cabo Verde)",flag:"🇨🇻"},{isocode:"pt-GQ",locale:"Portugais (Guinée équatoriale)",native:"Português (Guiné Equatorial)",flag:"🇬🇶"},{isocode:"pt-GW",locale:"Portugais (Guinée-Bissau)",native:"Português (Guiné-Bissau)",flag:"🇬🇼"},{isocode:"pt-LU",locale:"Portugais (Luxembourg)",native:"Português (Luxemburgo)",flag:"🇱🇺"},{isocode:"pt-MO",locale:"Portugais (R.A.S. chinoise de Macao)",native:"Português (Macau, RAE da China)",flag:"🇲🇴"},{isocode:"pt-MZ",locale:"Portugais (Mozambique)",native:"Português (Moçambique)",flag:"🇲🇿"},{isocode:"pt-PT",locale:"Portugais (Portugal)",native:"Português (Portugal)",flag:"🇵🇹"},{isocode:"pt-ST",locale:"Portugais (Sao Tomé-et-Principe)",native:"Português (São Tomé e Príncipe)",flag:"🇸🇹"},{isocode:"pt-TL",locale:"Portugais (Timor oriental)",native:"Português (Timor-Leste)",flag:"🇹🇱"},{isocode:"qu",locale:"Quechua",native:"Runasimi",flag:"🇵🇪"},{isocode:"qu-BO",locale:"Quechua (Bolivie)",native:"Runasimi (Bolivia)",flag:"🇧🇴"},{isocode:"qu-EC",locale:"Quechua (Équateur)",native:"Runasimi (Ecuador)",flag:"🇪🇨"},{isocode:"qu-PE",locale:"Quechua (Pérou)",native:"Runasimi (Perú)",flag:"🇵🇪"},{isocode:"rm",locale:"Romanche",native:"Rumantsch",flag:"🇨🇭"},{isocode:"rm-CH",locale:"Romanche (Switzerland)",native:"Rumantsch (Svizra)",flag:"🇨🇭"},{isocode:"rn",locale:"Roundi",native:"Ikirundi",flag:"🇧🇮"},{isocode:"rn-BI",locale:"Roundi (Burundi)",native:"Ikirundi (Uburundi)",flag:"🇧🇮"},{isocode:"ro",locale:"Roumain",native:"Română",flag:"🇷🇴"},{isocode:"ro-MD",locale:"Roumain (Moldavie)",native:"Română (Republica Moldova)",flag:"🇲🇩"},{isocode:"ro-RO",locale:"Roumain (Roumanie)",native:"Română (România)",flag:"🇷🇴"},{isocode:"rof",locale:"Rombo",native:"Kihorombo",flag:"🇹🇿"},{isocode:"rof-TZ",locale:"Rombo (Tanzanie)",native:"Kihorombo (Tanzania)",flag:"🇹🇿"},{isocode:"ru",locale:"Russe",native:"русский",flag:"🇷🇺"},{isocode:"ru-BY",locale:"Russe (Biélorussie)",native:"русский (Беларусь)",flag:"🇧🇾"},{isocode:"ru-KG",locale:"Russe (Kirghizistan)",native:"русский (Киргизия)",flag:"🇰🇬"},{isocode:"ru-KZ",locale:"Russe (Kazakhstan)",native:"русский (Казахстан)",flag:"🇰🇿"},{isocode:"ru-MD",locale:"Russe (Moldavie)",native:"русский (Молдова)",flag:"🇲🇩"},{isocode:"ru-RU",locale:"Russe (Russie)",native:"русский (Россия)",flag:"🇷🇺"},{isocode:"ru-UA",locale:"Russe (Ukraine)",native:"русский (Украина)",flag:"🇺🇦"},{isocode:"rw",locale:"Rwanda",native:"Kinyarwanda",flag:"🇷🇼"},{isocode:"rw-RW",locale:"Rwanda (Rwanda)",native:"Kinyarwanda (U Rwanda)",flag:"🇷🇼"},{isocode:"rwk",locale:"Rwa",native:"Kiruwa",flag:"🇹🇿"},{isocode:"rwk-TZ",locale:"Rwa (Tanzanie)",native:"Kiruwa (Tanzania)",flag:"🇹🇿"},{isocode:"sah",locale:"Iakoute",native:"саха тыла",flag:"🇷🇺"},{isocode:"sah-RU",locale:"Iakoute (Russie)",native:"саха тыла (Арассыыйа)",flag:"🇷🇺"},{isocode:"saq",locale:"Sambourou",native:"Kisampur",flag:"🇰🇪"},{isocode:"saq-KE",locale:"Sambourou (Kenya)",native:"Kisampur (Kenya)",flag:"🇰🇪"},{isocode:"sbp",locale:"Sangu",native:"Ishisangu",flag:"🇹🇿"},{isocode:"sbp-TZ",locale:"Sangu (Tanzanie)",native:"Ishisangu (Tansaniya)",flag:"🇹🇿"},{isocode:"se",locale:"Sami du Nord",native:"Davvisámegiella",flag:"🇳🇴"},{isocode:"se-FI",locale:"Sami du Nord (Finlande)",native:"Davvisámegiella (Suopma)",flag:"🇫🇮"},{isocode:"se-NO",locale:"Sami du Nord (Norvège)",native:"Davvisámegiella (Norga)",flag:"🇳🇴"},{isocode:"se-SE",locale:"Sami du Nord (Suède)",native:"Davvisámegiella (Ruoŧŧa)",flag:"🇸🇪"},{isocode:"seh",locale:"Cisena",native:"Sena",flag:"🇲🇿"},{isocode:"seh-MZ",locale:"Cisena (Mozambique)",native:"Sena (Moçambique)",flag:"🇲🇿"},{isocode:"ses",locale:"Koyraboro senni",native:"Koyraboro senni",flag:"🇲🇱"},{isocode:"ses-ML",locale:"Koyraboro senni (Mali)",native:"Koyraboro senni (Maali)",flag:"🇲🇱"},{isocode:"sg",locale:"Sangho",native:"Sängö",flag:"🇨🇫"},{isocode:"sg-CF",locale:"Sangho (République centrafricaine)",native:"Sängö (Ködörösêse tî Bêafrîka)",flag:"🇨🇫"},{isocode:"shi",locale:"Chleuh",native:"ⵜⴰⵛⵍⵃⵉⵜ",flag:"🇲🇦"},{isocode:"shi-Latn",locale:"Chleuh (latin)",native:"Tashelḥiyt (Latn)",flag:"🇲🇦"},{isocode:"shi-Latn-MA",locale:"Chleuh (latin, Maroc)",native:"Tashelḥiyt (Latn, lmɣrib)",flag:"🇲🇦"},{isocode:"shi-Tfng",locale:"Chleuh (tifinagh)",native:"ⵜⴰⵛⵍⵃⵉⵜ (Tfng)",flag:"🇲🇦"},{isocode:"shi-Tfng-MA",locale:"Chleuh (tifinagh, Maroc)",native:"ⵜⴰⵛⵍⵃⵉⵜ (Tfng, ⵍⵎⵖⵔⵉⴱ)",flag:"🇲🇦"},{isocode:"si",locale:"Cinghalais",native:"සිංහල",flag:"🇱🇰"},{isocode:"si-LK",locale:"Cinghalais (Sri Lanka)",native:"සිංහල (ශ්රී ලංකාව)",flag:"🇱🇰"},{isocode:"sk",locale:"Slovaque",native:"Slovenčina",flag:"🇸🇰"},{isocode:"sk-SK",locale:"Slovaque (Slovaquie)",native:"Slovenčina (Slovensko)",flag:"🇸🇰"},{isocode:"sl",locale:"Slovène",native:"Slovenščina",flag:"🇸🇮"},{isocode:"sl-SI",locale:"Slovène (Slovénie)",native:"Slovenščina (Slovenija)",flag:"🇸🇮"},{isocode:"smn",locale:"Sami d'Inari",native:"Anarâškielâ",flag:"🇫🇮"},{isocode:"smn-FI",locale:"Sami d'Inari (Finlande)",native:"Anarâškielâ (Suomâ)",flag:"🇫🇮"},{isocode:"sn",locale:"Shona",native:"ChiShona",flag:"🇿🇼"},{isocode:"sn-ZW",locale:"Shona (Zimbabwe)",native:"ChiShona (Zimbabwe)",flag:"🇿🇼"},{isocode:"so",locale:"Somali",native:"Soomaali",flag:"🇸🇴"},{isocode:"so-DJ",locale:"Somali (Djibouti)",native:"Soomaali (Jabuuti)",flag:"🇩🇯"},{isocode:"so-ET",locale:"Somali (Éthiopie)",native:"Soomaali (Itoobiya)",flag:"🇪🇹"},{isocode:"so-KE",locale:"Somali (Kenya)",native:"Soomaali (Kiiniya)",flag:"🇰🇪"},{isocode:"so-SO",locale:"Somali (Somalie)",native:"Soomaali (Soomaaliya)",flag:"🇸🇴"},{isocode:"sq",locale:"Albanais",native:"Shqip",flag:"🇦🇱"},{isocode:"sq-AL",locale:"Albanais (Albanie)",native:"Shqip (Shqipëri)",flag:"🇦🇱"},{isocode:"sq-MK",locale:"Albanais (Macédoine)",native:"Shqip (Maqedoni)",flag:"🇲🇰"},{isocode:"sq-XK",locale:"Albanais (Kosovo)",native:"Shqip (Kosovë)",flag:"🇽🇰"},{isocode:"sr",locale:"Serbe",native:"српски",flag:"🇷🇸"},{isocode:"sr-Cyrl",locale:"Serbe (cyrillique)",native:"српски (ћирилица)",flag:"🇷🇸"},{isocode:"sr-Cyrl-BA",locale:"Serbe (cyrillique, Bosnie-Herzégovine)",native:"српски (ћирилица, Босна и Херцеговина)",flag:"🇧🇦"},{isocode:"sr-Cyrl-ME",locale:"Serbe (cyrillique, Monténégro)",native:"српски (ћирилица, Црна Гора)",flag:"🇲🇪"},{isocode:"sr-Cyrl-RS",locale:"Serbe (cyrillique, Serbie)",native:"српски (ћирилица, Србија)",flag:"🇷🇸"},{isocode:"sr-Cyrl-XK",locale:"Serbe (cyrillique, Kosovo)",native:"српски (ћирилица, Косово)",flag:"🇽🇰"},{isocode:"sr-Latn",locale:"Serbe (latin)",native:"Srpski (latinica)",flag:"🇷🇸"},{isocode:"sr-Latn-BA",locale:"Serbe (latin, Bosnie-Herzégovine)",native:"Srpski (latinica, Bosna i Hercegovina)",flag:"🇧🇦"},{isocode:"sr-Latn-ME",locale:"Serbe (latin, Monténégro)",native:"Srpski (latinica, Crna Gora)",flag:"🇲🇪"},{isocode:"sr-Latn-RS",locale:"Serbe (latin, Serbie)",native:"Srpski (latinica, Srbija)",flag:"🇷🇸"},{isocode:"sr-Latn-XK",locale:"Serbe (latin, Kosovo)",native:"Srpski (latinica, Kosovo)",flag:"🇽🇰"},{isocode:"sv",locale:"Suédois",native:"Svenska",flag:"🇸🇪"},{isocode:"sv-AX",locale:"Suédois (Îles Åland)",native:"Svenska (Åland)",flag:"🇦🇽"},{isocode:"sv-FI",locale:"Suédois (Finlande)",native:"Svenska (Finland)",flag:"🇫🇮"},{isocode:"sv-SE",locale:"Suédois (Suède)",native:"Svenska (Sverige)",flag:"🇸🇪"},{isocode:"sw",locale:"Swahili",native:"Kiswahili",flag:"🇹🇿"},{isocode:"sw-CD",locale:"Swahili (Congo-Kinshasa)",native:"Kiswahili (Jamhuri ya Kidemokrasia ya Kongo)",flag:"🇨🇩"},{isocode:"sw-KE",locale:"Swahili (Kenya)",native:"Kiswahili (Kenya)",flag:"🇰🇪"},{isocode:"sw-TZ",locale:"Swahili (Tanzanie)",native:"Kiswahili (Tanzania)",flag:"🇹🇿"},{isocode:"sw-UG",locale:"Swahili (Ouganda)",native:"Kiswahili (Uganda)",flag:"🇺🇬"},{isocode:"ta",locale:"Tamoul",native:"தமிழ்",flag:"🇱🇰"},{isocode:"ta-IN",locale:"Tamoul (India)",native:"தமிழ் (இந்தியா)",flag:"🇮🇳"},{isocode:"ta-LK",locale:"Tamoul (Sri Lanka)",native:"தமிழ் (இலங்கை)",flag:"🇱🇰"},{isocode:"ta-MY",locale:"Tamoul (Malaisie)",native:"தமிழ் (மலேசியா)",flag:"🇲🇾"},{isocode:"ta-SG",locale:"Tamoul (Singapour)",native:"தமிழ் (சிங்கப்பூர்)",flag:"🇸🇬"},{isocode:"te",locale:"Télougou",native:"తెలుగు",flag:"🇮🇳"},{isocode:"te-IN",locale:"Télougou (India)",native:"తెలుగు (భారతదేశం)",flag:"🇮🇳"},{isocode:"teo",locale:"Teso",native:"Kiteso",flag:"🇺🇬"},{isocode:"teo-KE",locale:"Teso (Kenya)",native:"Kiteso (Kenia)",flag:"🇰🇪"},{isocode:"teo-UG",locale:"Teso (Ouganda)",native:"Kiteso (Uganda)",flag:"🇺🇬"},{isocode:"tg",locale:"Tadjik",native:"тоҷикӣ",flag:"🇹🇯"},{isocode:"tg-TJ",locale:"Tadjik (Tadjikistan)",native:"тоҷикӣ (Тоҷикистон)",flag:"🇹🇯"},{isocode:"th",locale:"Thaï",native:"ไทย",flag:"🇹🇭"},{isocode:"th-TH",locale:"Thaï (Thaïlande)",native:"ไทย (ไทย)",flag:"🇹🇭"},{isocode:"ti",locale:"Tigrigna",native:"ትግርኛ",flag:"🇪🇷"},{isocode:"ti-ER",locale:"Tigrigna (Érythrée)",native:"ትግርኛ (ኤርትራ)",flag:"🇪🇷"},{isocode:"ti-ET",locale:"Tigrigna (Éthiopie)",native:"ትግርኛ (ኢትዮጵያ)",flag:"🇪🇹"},{isocode:"to",locale:"Tonguien",native:"Lea fakatonga",flag:"🇹🇴"},{isocode:"to-TO",locale:"Tonguien (Tonga)",native:"Lea fakatonga (Tonga)",flag:"🇹🇴"},{isocode:"tr",locale:"Turc",native:"Türkçe",flag:"🇹🇷"},{isocode:"tr-CY",locale:"Turc (Chypre)",native:"Türkçe (Kıbrıs)",flag:"🇨🇾"},{isocode:"tr-TR",locale:"Turc (Turquie)",native:"Türkçe (Türkiye)",flag:"🇹🇷"},{isocode:"tt",locale:"Tatar",native:"татар",flag:"🇷🇺"},{isocode:"tt-RU",locale:"Tatar (Russie)",native:"татар (Россия)",flag:"🇷🇺"},{isocode:"twq",locale:"Tasawaq",native:"Tasawaq senni",flag:"🇳🇪"},{isocode:"twq-NE",locale:"Tasawaq (Niger)",native:"Tasawaq senni (Nižer)",flag:"🇳🇪"},{isocode:"tzm",locale:"Amazighe de l'Atlas central",native:"Tamaziɣt n laṭlaṣ",flag:"🇲🇦"},{isocode:"tzm-MA",locale:"Amazighe de l'Atlas central (Maroc)",native:"Tamaziɣt n laṭlaṣ (Meṛṛuk)",flag:"🇲🇦"},{isocode:"ug",locale:"Ouïghour",native:"ئۇيغۇرچە",flag:"🇨🇳"},{isocode:"ug-CN",locale:"Ouïghour (Chine)",native:"ئۇيغۇرچە (جۇڭگو)",flag:"🇨🇳"},{isocode:"uk",locale:"Ukrainien",native:"українська",flag:"🇺🇦"},{isocode:"uk-UA",locale:"Ukrainien (Ukraine)",native:"українська (Україна)",flag:"🇺🇦"},{isocode:"ur",locale:"Ourdou",native:"اردو",flag:"🇵🇰"},{isocode:"ur-IN",locale:"Ourdou (India)",native:"اردو (بھارت)",flag:"🇮🇳"},{isocode:"ur-PK",locale:"Ourdou (Pakistan)",native:"اردو (پاکستان)",flag:"🇵🇰"},{isocode:"uz",locale:"Ouzbek",native:"O‘zbek",flag:"🇺🇿"},{isocode:"uz-Arab",locale:"Ouzbek (Arabic)",native:"اوزبیک (عربی)",flag:"🇦🇫"},{isocode:"uz-Arab-AF",locale:"Ouzbek (Arabic, Afghanistan)",native:"اوزبیک (عربی, افغانستان)",flag:"🇦🇫"},{isocode:"uz-Cyrl",locale:"Ouzbek (cyrillique)",native:"ўзбекча (Кирил)",flag:"🇺🇿"},{isocode:"uz-Cyrl-UZ",locale:"Ouzbek (cyrillique, Ouzbékistan)",native:"ўзбекча (Кирил, Ўзбекистон)",flag:"🇺🇿"},{isocode:"uz-Latn",locale:"Ouzbek (latin)",native:"O‘zbek (lotin)",flag:"🇺🇿"},{isocode:"uz-Latn-UZ",locale:"Ouzbek (latin, Ouzbékistan)",native:"O‘zbek (lotin, Oʻzbekiston)",flag:"🇺🇿"},{isocode:"vai",locale:"Vaï",native:"ꕙꔤ",flag:"🇱🇷"},{isocode:"vai-Latn",locale:"Vaï (latin)",native:"Vai (Latn)",flag:"🇱🇷"},{isocode:"vai-Latn-LR",locale:"Vaï (latin, Libéria)",native:"Vai (Latn, Laibhiya)",flag:"🇱🇷"},{isocode:"vai-Vaii",locale:"Vaï (vaï)",native:"ꕙꔤ (Vaii)",flag:"🇱🇷"},{isocode:"vai-Vaii-LR",locale:"Vaï (vaï, Libéria)",native:"ꕙꔤ (Vaii, ꕞꔤꔫꕩ)",flag:"🇱🇷"},{isocode:"vi",locale:"Vietnamien",native:"Tiếng Việt",flag:"🇻🇳"},{isocode:"vi-VN",locale:"Vietnamien (Vietnam)",native:"Tiếng Việt (Việt Nam)",flag:"🇻🇳"},{isocode:"vun",locale:"Vunjo",native:"Kyivunjo",flag:"🇹🇿"},{isocode:"vun-TZ",locale:"Vunjo (Tanzanie)",native:"Kyivunjo (Tanzania)",flag:"🇹🇿"},{isocode:"wae",locale:"Walser",native:"Walser",flag:"🇨🇭"},{isocode:"wae-CH",locale:"Walser (Switzerland)",native:"Walser (Schwiz)",flag:"🇨🇭"},{isocode:"wo",locale:"Wolof",native:"Wolof",flag:"🇸🇳"},{isocode:"wo-SN",locale:"Wolof (Sénégal)",native:"Wolof (Senegaal)",flag:"🇸🇳"},{isocode:"xog",locale:"Soga",native:"Olusoga",flag:"🇺🇬"},{isocode:"xog-UG",locale:"Soga (Ouganda)",native:"Olusoga (Yuganda)",flag:"🇺🇬"},{isocode:"yav",locale:"Yangben",native:"Nuasue",flag:"🇨🇲"},{isocode:"yav-CM",locale:"Yangben (Cameroun)",native:"Nuasue (Kemelún)",flag:"🇨🇲"},{isocode:"yi",locale:"Yiddish",native:"ייִדיש",flag:"🏳️"},{isocode:"yi-001",locale:"Yiddish (World)",native:"ייִדיש (וועלט)",flag:"🏳️"},{isocode:"yo",locale:"Yoruba",native:"Èdè Yorùbá",flag:"🇳🇬"},{isocode:"yo-BJ",locale:"Yoruba (Bénin)",native:"Èdè Yorùbá (Orílɛ́ède Bɛ̀nɛ̀)",flag:"🇧🇯"},{isocode:"yo-NG",locale:"Yoruba (Nigéria)",native:"Èdè Yorùbá (Orílẹ́ède Nàìjíríà)",flag:"🇳🇬"},{isocode:"yue",locale:"Cantonais",native:"粵語",flag:"🇭🇰"},{isocode:"yue-Hans",locale:"Cantonais (simplifié)",native:"粤语 (简体)",flag:"🇨🇳"},{isocode:"yue-Hans-CN",locale:"Cantonais (simplifié, Chine)",native:"粤语 (简体,中华人民共和国)",flag:"🇨🇳"},{isocode:"yue-Hant",locale:"Cantonais (traditionnel)",native:"粵語 (繁體)",flag:"🇭🇰"},{isocode:"yue-Hant-HK",locale:"Cantonais (traditionnel, R.A.S. chinoise de Hong Kong)",native:"粵語 (繁體,中華人民共和國香港特別行政區)",flag:"🇭🇰"},{isocode:"zgh",locale:"Amazighe standard marocain",native:"ⵜⴰⵎⴰⵣⵉⵖⵜ",flag:"🇲🇦"},{isocode:"zgh-MA",locale:"Amazighe standard marocain (Maroc)",native:"ⵜⴰⵎⴰⵣⵉⵖⵜ (ⵍⵎⵖⵔⵉⴱ)",flag:"🇲🇦"},{isocode:"zh",locale:"Chinese",native:"中文",flag:"🇨🇳"},{isocode:"zh-Hans",locale:"Chinese (simplifié)",native:"中文(简体)",flag:"🇨🇳"},{isocode:"zh-Hans-CN",locale:"Chinese (simplifié, Chine)",native:"中文(简体,中国)",flag:"🇨🇳"},{isocode:"zh-Hans-HK",locale:"Chinese (simplifié, R.A.S. chinoise de Hong Kong)",native:"中文(简体,中国香港特别行政区)",flag:"🇭🇰"},{isocode:"zh-Hans-MO",locale:"Chinese (simplifié, R.A.S. chinoise de Macao)",native:"中文(简体,中国澳门特别行政区)",flag:"🇲🇴"},{isocode:"zh-Hans-SG",locale:"Chinese (simplifié, Singapour)",native:"中文(简体,新加坡)",flag:"🇸🇬"},{isocode:"zh-Hant",locale:"Chinese (traditionnel)",native:"中文(繁體)",flag:"🇹🇼"},{isocode:"zh-Hant-HK",locale:"Chinese (traditionnel, R.A.S. chinoise de Hong Kong)",native:"中文(繁體字,中國香港特別行政區)",flag:"🇭🇰"},{isocode:"zh-Hant-MO",locale:"Chinese (traditionnel, R.A.S. chinoise de Macao)",native:"中文(繁體字,中國澳門特別行政區)",flag:"🇲🇴"},{isocode:"zh-Hant-TW",locale:"Chinese (traditionnel, Taïwan)",native:"中文(繁體,台灣)",flag:"🇹🇼"},{isocode:"zu",locale:"Zoulou",native:"IsiZulu",flag:"🇿🇦"},{isocode:"zu-ZA",locale:"Zoulou (South Africa)",native:"IsiZulu (iNingizimu Afrika)",flag:"🇿🇦"}]};exports.LOCALIZATION_EDITOR_SCOPE_CLASS=os.LOCALIZATION_EDITOR_SCOPE_CLASS;exports.EditorStateAdapterProvider=$u;exports.EditorStateContext=Ir;exports.I18N_ACTIONS=Jd;exports.I18N_CONSTANT=oc;exports.I18nProvider=lc;exports.LocalizationEditor=Vp;exports.LocalizationEditorProvider=dc;exports.LocalizationProvider=hc;exports.Portal=Xd;exports.ReducerAdapterProvider=ic;exports.Standalone=Hk;exports.getDefaultContainer=it;exports.getDefaultInitialState=nc;exports.getLanguageDetails=dn;exports.languages=$k;exports.localizationReducer=tc;exports.useEditorStateAdapter=vn;exports.useI18n=sn;exports.useLocalization=fc;exports.useLocalizationEditor=on;exports.useModals=ac;exports.useReducerAdapter=rc;exports.useReduxAdapter=Pd;
|
|
177
158
|
//# sourceMappingURL=index.cjs.js.map
|