fluency-v8-components 1.6.9 → 1.7.1

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.
@@ -5,7 +5,7 @@
5
5
  color: hsl(${Math.max(0,Math.min(120-120*g,120))}deg 100% 31%);`,n==null?void 0:n.key)}return(c=n==null?void 0:n.onChange)==null||c.call(n,i),i}return a.updateDeps=o=>{r=o},a}function UL(e,t){if(e===void 0)throw new Error("Unexpected undefined");return e}const zee=(e,t)=>Math.abs(e-t)<1.01,qee=(e,t,n)=>{let r;return function(...i){e.clearTimeout(r),r=e.setTimeout(()=>t.apply(this,i),n)}},PL=e=>{const{offsetWidth:t,offsetHeight:n}=e;return{width:t,height:n}},Kee=e=>e,Gee=e=>{const t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1),r=[];for(let i=t;i<=n;i++)r.push(i);return r},Wee=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;const i=o=>{const{width:s,height:u}=o;t({width:Math.round(s),height:Math.round(u)})};if(i(PL(n)),!r.ResizeObserver)return()=>{};const a=new r.ResizeObserver(o=>{const s=()=>{const u=o[0];if(u!=null&&u.borderBoxSize){const c=u.borderBoxSize[0];if(c){i({width:c.inlineSize,height:c.blockSize});return}}i(PL(n))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(s):s()});return a.observe(n,{box:"border-box"}),()=>{a.unobserve(n)}},HL={passive:!0},YL=typeof window>"u"?!0:"onscrollend"in window,Xee=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;let i=0;const a=e.options.useScrollendEvent&&YL?()=>{}:qee(r,()=>{t(i,!1)},e.options.isScrollingResetDelay),o=A=>()=>{const{horizontal:f,isRtl:h}=e.options;i=f?n.scrollLeft*(h&&-1||1):n.scrollTop,a(),t(i,A)},s=o(!0),u=o(!1);u(),n.addEventListener("scroll",s,HL);const c=e.options.useScrollendEvent&&YL;return c&&n.addEventListener("scrollend",u,HL),()=>{n.removeEventListener("scroll",s),c&&n.removeEventListener("scrollend",u)}},Jee=(e,t,n)=>{if(t!=null&&t.borderBoxSize){const r=t.borderBoxSize[0];if(r)return Math.round(r[n.options.horizontal?"inlineSize":"blockSize"])}return e[n.options.horizontal?"offsetWidth":"offsetHeight"]},Zee=(e,{adjustments:t=0,behavior:n},r)=>{var i,a;const o=e+t;(a=(i=r.scrollElement)==null?void 0:i.scrollTo)==null||a.call(i,{[r.options.horizontal?"left":"top"]:o,behavior:n})};class $ee{constructor(t){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let n=null;const r=()=>n||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:n=new this.targetWindow.ResizeObserver(i=>{i.forEach(a=>{const o=()=>{this._measureElement(a.target,a)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(o):o()})}));return{disconnect:()=>{var i;(i=r())==null||i.disconnect(),n=null},observe:i=>{var a;return(a=r())==null?void 0:a.observe(i,{box:"border-box"})},unobserve:i=>{var a;return(a=r())==null?void 0:a.unobserve(i)}}})(),this.range=null,this.setOptions=n=>{Object.entries(n).forEach(([r,i])=>{typeof i>"u"&&delete n[r]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:Kee,rangeExtractor:Gee,onChange:()=>{},measureElement:Jee,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 r,i;(i=(r=this.options).onChange)==null||i.call(r,this,n)},this.maybeNotify=ih(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),n=>{this.notify(n)},{key:process.env.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.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var n;const r=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==r){if(this.cleanup(),!r){this.maybeNotify();return}this.scrollElement=r,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(i=>{this.observer.observe(i)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,i=>{this.scrollRect=i,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(i,a)=>{this.scrollAdjustments=0,this.scrollDirection=a?this.getScrollOffset()<i?"forward":"backward":null,this.scrollOffset=i,this.isScrolling=a,this.maybeNotify()}))}},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,r)=>{const i=new Map,a=new Map;for(let o=r-1;o>=0;o--){const s=n[o];if(i.has(s.lane))continue;const u=a.get(s.lane);if(u==null||s.end>u.end?a.set(s.lane,s):s.end<u.end&&i.set(s.lane,!0),i.size===this.options.lanes)break}return a.size===this.options.lanes?Array.from(a.values()).sort((o,s)=>o.end===s.end?o.index-s.index:o.end-s.end)[0]:void 0},this.getMeasurementOptions=ih(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(n,r,i,a,o)=>(this.pendingMeasuredCacheIndexes=[],{count:n,paddingStart:r,scrollMargin:i,getItemKey:a,enabled:o}),{key:!1}),this.getMeasurements=ih(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:n,paddingStart:r,scrollMargin:i,getItemKey:a,enabled:o},s)=>{if(!o)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(A=>{this.itemSizeCache.set(A.key,A.size)}));const u=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const c=this.measurementsCache.slice(0,u);for(let A=u;A<n;A++){const f=a(A),h=this.options.lanes===1?c[A-1]:this.getFurthestMeasurement(c,A),d=h?h.end+this.options.gap:r+i,m=s.get(f),p=typeof m=="number"?m:this.options.estimateSize(A),g=d+p,v=h?h.lane:A%this.options.lanes;c[A]={index:A,start:d,size:p,end:g,key:f,lane:v}}return this.measurementsCache=c,c},{key:process.env.NODE_ENV!=="production"&&"getMeasurements",debug:()=>this.options.debug}),this.calculateRange=ih(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(n,r,i,a)=>this.range=n.length>0&&r>0?ete({measurements:n,outerSize:r,scrollOffset:i,lanes:a}):null,{key:process.env.NODE_ENV!=="production"&&"calculateRange",debug:()=>this.options.debug}),this.getVirtualIndexes=ih(()=>{let n=null,r=null;const i=this.calculateRange();return i&&(n=i.startIndex,r=i.endIndex),this.maybeNotify.updateDeps([this.isScrolling,n,r]),[this.options.rangeExtractor,this.options.overscan,this.options.count,n,r]},(n,r,i,a,o)=>a===null||o===null?[]:n({startIndex:a,endIndex:o,overscan:r,count:i}),{key:process.env.NODE_ENV!=="production"&&"getVirtualIndexes",debug:()=>this.options.debug}),this.indexFromElement=n=>{const r=this.options.indexAttribute,i=n.getAttribute(r);return i?parseInt(i,10):(console.warn(`Missing attribute name '${r}={index}' on measured element.`),-1)},this._measureElement=(n,r)=>{const i=this.indexFromElement(n),a=this.measurementsCache[i];if(!a)return;const o=a.key,s=this.elementsCache.get(o);s!==n&&(s&&this.observer.unobserve(s),this.observer.observe(n),this.elementsCache.set(o,n)),n.isConnected&&this.resizeItem(i,this.options.measureElement(n,r,this))},this.resizeItem=(n,r)=>{const i=this.measurementsCache[n];if(!i)return;const a=this.itemSizeCache.get(i.key)??i.size,o=r-a;o!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(i,o,this):i.start<this.getScrollOffset()+this.scrollAdjustments)&&(process.env.NODE_ENV!=="production"&&this.options.debug&&console.info("correction",o),this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=o,behavior:void 0})),this.pendingMeasuredCacheIndexes.push(i.index),this.itemSizeCache=new Map(this.itemSizeCache.set(i.key,r)),this.notify(!1))},this.measureElement=n=>{if(!n){this.elementsCache.forEach((r,i)=>{r.isConnected||(this.observer.unobserve(r),this.elementsCache.delete(i))});return}this._measureElement(n,void 0)},this.getVirtualItems=ih(()=>[this.getVirtualIndexes(),this.getMeasurements()],(n,r)=>{const i=[];for(let a=0,o=n.length;a<o;a++){const s=n[a],u=r[s];i.push(u)}return i},{key:process.env.NODE_ENV!=="production"&&"getVirtualItems",debug:()=>this.options.debug}),this.getVirtualItemForOffset=n=>{const r=this.getMeasurements();if(r.length!==0)return UL(r[RL(0,r.length-1,i=>UL(r[i]).start,n)])},this.getOffsetForAlignment=(n,r,i=0)=>{const a=this.getSize(),o=this.getScrollOffset();r==="auto"&&(r=n>=o+a?"end":"start"),r==="center"?n+=(i-a)/2:r==="end"&&(n-=a);const s=this.getTotalSize()+this.options.scrollMargin-a;return Math.max(Math.min(s,n),0)},this.getOffsetForIndex=(n,r="auto")=>{n=Math.max(0,Math.min(n,this.options.count-1));const i=this.measurementsCache[n];if(!i)return;const a=this.getSize(),o=this.getScrollOffset();if(r==="auto")if(i.end>=o+a-this.options.scrollPaddingEnd)r="end";else if(i.start<=o+this.options.scrollPaddingStart)r="start";else return[o,r];const s=r==="end"?i.end+this.options.scrollPaddingEnd:i.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(s,r,i.size),r]},this.isDynamicMode=()=>this.elementsCache.size>0,this.scrollToOffset=(n,{align:r="start",behavior:i}={})=>{i==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(n,r),{adjustments:void 0,behavior:i})},this.scrollToIndex=(n,{align:r="auto",behavior:i}={})=>{i==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),n=Math.max(0,Math.min(n,this.options.count-1));let a=0;const o=10,s=c=>{if(!this.targetWindow)return;const A=this.getOffsetForIndex(n,c);if(!A){console.warn("Failed to get offset for index:",n);return}const[f,h]=A;this._scrollToOffset(f,{adjustments:void 0,behavior:i}),this.targetWindow.requestAnimationFrame(()=>{const d=this.getScrollOffset(),m=this.getOffsetForIndex(n,h);if(!m){console.warn("Failed to get offset for index:",n);return}zee(m[0],d)||u(h)})},u=c=>{this.targetWindow&&(a++,a<o?(process.env.NODE_ENV!=="production"&&this.options.debug&&console.info("Schedule retry",a,o),this.targetWindow.requestAnimationFrame(()=>s(c))):console.warn(`Failed to scroll to index ${n} after ${o} attempts.`))};s(r)},this.scrollBy=(n,{behavior:r}={})=>{r==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+n,{adjustments:void 0,behavior:r})},this.getTotalSize=()=>{var n;const r=this.getMeasurements();let i;if(r.length===0)i=this.options.paddingStart;else if(this.options.lanes===1)i=((n=r[r.length-1])==null?void 0:n.end)??0;else{const a=Array(this.options.lanes).fill(null);let o=r.length-1;for(;o>=0&&a.some(s=>s===null);){const s=r[o];a[s.lane]===null&&(a[s.lane]=s.end),o--}i=Math.max(...a.filter(s=>s!==null))}return Math.max(i-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(n,{adjustments:r,behavior:i})=>{this.options.scrollToFn(n,{behavior:i,adjustments:r},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(t)}}const RL=(e,t,n,r)=>{for(;e<=t;){const i=(e+t)/2|0,a=n(i);if(a<r)e=i+1;else if(a>r)t=i-1;else return i}return e>0?e-1:0};function ete({measurements:e,outerSize:t,scrollOffset:n,lanes:r}){const i=e.length-1,a=u=>e[u].start;if(e.length<=r)return{startIndex:0,endIndex:i};let o=RL(0,i,a,n),s=o;if(r===1)for(;s<i&&e[s].end<n+t;)s++;else if(r>1){const u=Array(r).fill(0);for(;s<i&&u.some(A=>A<n+t);){const A=e[s];u[A.lane]=A.end,s++}const c=Array(r).fill(n+t);for(;o>=0&&c.some(A=>A>=n);){const A=e[o];c[A.lane]=A.start,o--}o=Math.max(0,o-o%r),s=Math.min(i,s+(r-1-s%r))}return{startIndex:o,endIndex:s}}function tte(e){const t=new $ee(l.unref(e)),n=l.shallowRef(t),r=t._didMount();return l.watch(()=>l.unref(e).getScrollElement(),i=>{i&&t._willUpdate()},{immediate:!0}),l.watch(()=>l.unref(e),i=>{t.setOptions({...i,onChange:(a,o)=>{var s;l.triggerRef(n),(s=i.onChange)==null||s.call(i,a,o)}}),t._willUpdate(),l.triggerRef(n)},{immediate:!0}),l.onScopeDispose(r),n}function nte(e){return tte(l.computed(()=>({observeElementRect:Wee,observeElementOffset:Xee,scrollToFn:Zee,...l.unref(e)})))}function xv(e,t,n){let r=l.ref(n==null?void 0:n.value),i=l.computed(()=>e.value!==void 0);return[l.computed(()=>i.value?e.value:r.value),function(a){return i.value||(r.value=a),t==null?void 0:t(a)}]}function cw(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function nA(){let e=[],t={addEventListener(n,r,i,a){return n.addEventListener(r,i,a),t.add(()=>n.removeEventListener(r,i,a))},requestAnimationFrame(...n){let r=requestAnimationFrame(...n);t.add(()=>cancelAnimationFrame(r))},nextFrame(...n){t.requestAnimationFrame(()=>{t.requestAnimationFrame(...n)})},setTimeout(...n){let r=setTimeout(...n);t.add(()=>clearTimeout(r))},microTask(...n){let r={current:!0};return cw(()=>{r.current&&n[0]()}),t.add(()=>{r.current=!1})},style(n,r,i){let a=n.style.getPropertyValue(r);return Object.assign(n.style,{[r]:i}),this.add(()=>{Object.assign(n.style,{[r]:a})})},group(n){let r=nA();return n(r),this.add(()=>r.dispose())},add(n){return e.push(n),()=>{let r=e.indexOf(n);if(r>=0)for(let i of e.splice(r,1))i()}},dispose(){for(let n of e.splice(0))n()}};return t}function rte(){let e=nA();return l.onUnmounted(()=>e.dispose()),e}function ite(){let e=rte();return t=>{e.dispose(),e.nextFrame(t)}}var QL;let ate=Symbol("headlessui.useid"),ote=0;const dr=(QL=IL.useId)!=null?QL:function(){return IL.inject(ate,()=>`${++ote}`)()};function Ze(e){var t;if(e==null||e.value==null)return null;let n=(t=e.value.$el)!=null?t:e.value;return n instanceof Node?n:null}function tr(e,t,...n){if(e in t){let i=t[e];return typeof i=="function"?i(...n):i}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(i=>`"${i}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,tr),r}var ste=Object.defineProperty,lte=(e,t,n)=>t in e?ste(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,jL=(e,t,n)=>(lte(e,typeof t!="symbol"?t+"":t,n),n);let ute=class{constructor(){jL(this,"current",this.detect()),jL(this,"currentId",0)}set(t){this.current!==t&&(this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}},lm=new ute;function Da(e){if(lm.isServer)return null;if(e instanceof Node)return e.ownerDocument;if(e!=null&&e.hasOwnProperty("value")){let t=Ze(e);if(t)return t.ownerDocument}return document}let Aw=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var li=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(li||{}),Sd=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(Sd||{}),cte=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(cte||{});function um(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(Aw)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}var cm=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(cm||{});function Am(e,t=0){var n;return e===((n=Da(e))==null?void 0:n.body)?!1:tr(t,{0(){return e.matches(Aw)},1(){let r=e;for(;r!==null;){if(r.matches(Aw))return!0;r=r.parentElement}return!1}})}function VL(e){let t=Da(e);l.nextTick(()=>{t&&!Am(t.activeElement,0)&&rA(e)})}var Ate=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(Ate||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function rA(e){e==null||e.focus({preventScroll:!0})}let dte=["textarea","input"].join(",");function fte(e){var t,n;return(n=(t=e==null?void 0:e.matches)==null?void 0:t.call(e,dte))!=null?n:!1}function dm(e,t=n=>n){return e.slice().sort((n,r)=>{let i=t(n),a=t(r);if(i===null||a===null)return 0;let o=i.compareDocumentPosition(a);return o&Node.DOCUMENT_POSITION_FOLLOWING?-1:o&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function hte(e,t){return So(um(),t,{relativeTo:e})}function So(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:i=[]}={}){var a;let o=(a=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e==null?void 0:e.ownerDocument)!=null?a:document,s=Array.isArray(e)?n?dm(e):e:um(e);i.length>0&&s.length>1&&(s=s.filter(m=>!i.includes(m))),r=r??o.activeElement;let u=(()=>{if(t&5)return 1;if(t&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),c=(()=>{if(t&1)return 0;if(t&2)return Math.max(0,s.indexOf(r))-1;if(t&4)return Math.max(0,s.indexOf(r))+1;if(t&8)return s.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),A=t&32?{preventScroll:!0}:{},f=0,h=s.length,d;do{if(f>=h||f+h<=0)return 0;let m=c+f;if(t&16)m=(m+h)%h;else{if(m<0)return 3;if(m>=h)return 1}d=s[m],d==null||d.focus(A),f+=u}while(d!==o.activeElement);return t&6&&fte(d)&&d.select(),2}function zL(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function pte(){return/Android/gi.test(window.navigator.userAgent)}function qL(){return zL()||pte()}function Cv(e,t,n){lm.isServer||l.watchEffect(r=>{document.addEventListener(e,t,n),r(()=>document.removeEventListener(e,t,n))})}function KL(e,t,n){lm.isServer||l.watchEffect(r=>{window.addEventListener(e,t,n),r(()=>window.removeEventListener(e,t,n))})}function fm(e,t,n=l.computed(()=>!0)){function r(a,o){if(!n.value||a.defaultPrevented)return;let s=o(a);if(s===null||!s.getRootNode().contains(s))return;let u=function c(A){return typeof A=="function"?c(A()):Array.isArray(A)||A instanceof Set?A:[A]}(e);for(let c of u){if(c===null)continue;let A=c instanceof HTMLElement?c:Ze(c);if(A!=null&&A.contains(s)||a.composed&&a.composedPath().includes(A))return}return!Am(s,cm.Loose)&&s.tabIndex!==-1&&a.preventDefault(),t(a,s)}let i=l.ref(null);Cv("pointerdown",a=>{var o,s;n.value&&(i.value=((s=(o=a.composedPath)==null?void 0:o.call(a))==null?void 0:s[0])||a.target)},!0),Cv("mousedown",a=>{var o,s;n.value&&(i.value=((s=(o=a.composedPath)==null?void 0:o.call(a))==null?void 0:s[0])||a.target)},!0),Cv("click",a=>{qL()||i.value&&(r(a,()=>i.value),i.value=null)},!0),Cv("touchend",a=>r(a,()=>a.target instanceof HTMLElement?a.target:null),!0),KL("blur",a=>r(a,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function GL(e,t){if(e)return e;let n=t??"button";if(typeof n=="string"&&n.toLowerCase()==="button")return"button"}function ah(e,t){let n=l.ref(GL(e.value.type,e.value.as));return l.onMounted(()=>{n.value=GL(e.value.type,e.value.as)}),l.watchEffect(()=>{var r;n.value||Ze(t)&&Ze(t)instanceof HTMLButtonElement&&!((r=Ze(t))!=null&&r.hasAttribute("type"))&&(n.value="button")}),n}function WL(e){return[e.screenX,e.screenY]}function dw(){let e=l.ref([-1,-1]);return{wasMoved(t){let n=WL(t);return e.value[0]===n[0]&&e.value[1]===n[1]?!1:(e.value=n,!0)},update(t){e.value=WL(t)}}}function fw({container:e,accept:t,walk:n,enabled:r}){l.watchEffect(()=>{let i=e.value;if(!i||r!==void 0&&!r.value)return;let a=Da(e);if(!a)return;let o=Object.assign(u=>t(u),{acceptNode:t}),s=a.createTreeWalker(i,NodeFilter.SHOW_ELEMENT,o,!1);for(;s.nextNode();)n(s.currentNode)})}var oa=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(oa||{}),iA=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(iA||{});function Nn({visible:e=!0,features:t=0,ourProps:n,theirProps:r,...i}){var a;let o=JL(r,n),s=Object.assign(i,{props:o});if(e||t&2&&o.static)return hw(s);if(t&1){let u=(a=o.unmount)==null||a?0:1;return tr(u,{0(){return null},1(){return hw({...i,props:{...o,hidden:!0,style:{display:"none"}}})}})}return hw(s)}function hw({props:e,attrs:t,slots:n,slot:r,name:i}){var a,o;let{as:s,...u}=aA(e,["unmount","static"]),c=(a=n.default)==null?void 0:a.call(n,r),A={};if(r){let f=!1,h=[];for(let[d,m]of Object.entries(r))typeof m=="boolean"&&(f=!0),m===!0&&h.push(d);f&&(A["data-headlessui-state"]=h.join(" "))}if(s==="template"){if(c=XL(c??[]),Object.keys(u).length>0||Object.keys(t).length>0){let[f,...h]=c??[];if(!mte(f)||h.length>0)throw new Error(['Passing props on "template"!',"",`The current component <${i} /> is rendering a "template".`,"However we need to passthrough the following props:",Object.keys(u).concat(Object.keys(t)).map(p=>p.trim()).filter((p,g,v)=>v.indexOf(p)===g).sort((p,g)=>p.localeCompare(g)).map(p=>` - ${p}`).join(`
6
6
  `),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "template".',"Render a single element as the child so that we can forward the props onto that element."].map(p=>` - ${p}`).join(`
7
7
  `)].join(`
8
- `));let d=JL((o=f.props)!=null?o:{},u,A),m=l.cloneVNode(f,d,!0);for(let p in d)p.startsWith("on")&&(m.props||(m.props={}),m.props[p]=d[p]);return m}return Array.isArray(c)&&c.length===1?c[0]:c}return l.h(s,Object.assign({},u,A),{default:()=>c})}function XL(e){return e.flatMap(t=>t.type===l.Fragment?XL(t.children):[t])}function JL(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let i in r)i.startsWith("on")&&typeof r[i]=="function"?(n[i]!=null||(n[i]=[]),n[i].push(r[i])):t[i]=r[i];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map(r=>[r,void 0])));for(let r in n)Object.assign(t,{[r](i,...a){let o=n[r];for(let s of o){if(i instanceof Event&&i.defaultPrevented)return;s(i,...a)}}});return t}function Sv(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function aA(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function mte(e){return e==null?!1:typeof e.type=="string"||typeof e.type=="object"||typeof e.type=="function"}var vs=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(vs||{});let Js=l.defineComponent({name:"Hidden",props:{as:{type:[Object,String],default:"div"},features:{type:Number,default:1}},setup(e,{slots:t,attrs:n}){return()=>{var r;let{features:i,...a}=e,o={"aria-hidden":(i&2)===2?!0:(r=a["aria-hidden"])!=null?r:void 0,hidden:(i&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(i&4)===4&&(i&2)!==2&&{display:"none"}}};return Nn({ourProps:o,theirProps:a,slot:{},attrs:n,slots:t,name:"Hidden"})}}}),ZL=Symbol("Context");var Wn=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Wn||{});function gte(){return ju()!==null}function ju(){return l.inject(ZL,null)}function oh(e){l.provide(ZL,e)}var Yt=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(Yt||{}),$L=(e=>(e[e.Left=0]="Left",e[e.Right=2]="Right",e))($L||{});function vte(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}let Vu=[];vte(()=>{function e(t){t.target instanceof HTMLElement&&t.target!==document.body&&Vu[0]!==t.target&&(Vu.unshift(t.target),Vu=Vu.filter(n=>n!=null&&n.isConnected),Vu.splice(10))}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});function yte(e){throw new Error("Unexpected object: "+e)}var xn=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(xn||{});function kv(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),i=r??-1;switch(e.focus){case 0:{for(let a=0;a<n.length;++a)if(!t.resolveDisabled(n[a],a,n))return a;return r}case 1:{i===-1&&(i=n.length);for(let a=i-1;a>=0;--a)if(!t.resolveDisabled(n[a],a,n))return a;return r}case 2:{for(let a=i+1;a<n.length;++a)if(!t.resolveDisabled(n[a],a,n))return a;return r}case 3:{for(let a=n.length-1;a>=0;--a)if(!t.resolveDisabled(n[a],a,n))return a;return r}case 4:{for(let a=0;a<n.length;++a)if(t.resolveId(n[a],a,n)===e.id)return a;return r}case 5:return null;default:yte(e)}}function Mv(e={},t=null,n=[]){for(let[r,i]of Object.entries(e))t6(n,e6(t,r),i);return n}function e6(e,t){return e?e+"["+t+"]":t}function t6(e,t,n){if(Array.isArray(n))for(let[r,i]of n.entries())t6(e,e6(t,r.toString()),i);else n instanceof Date?e.push([t,n.toISOString()]):typeof n=="boolean"?e.push([t,n?"1":"0"]):typeof n=="string"?e.push([t,n]):typeof n=="number"?e.push([t,`${n}`]):n==null?e.push([t,""]):Mv(n,t,e)}function n6(e){var t,n;let r=(t=e==null?void 0:e.form)!=null?t:e.closest("form");if(r){for(let i of r.elements)if(i!==e&&(i.tagName==="INPUT"&&i.type==="submit"||i.tagName==="BUTTON"&&i.type==="submit"||i.nodeName==="INPUT"&&i.type==="image")){i.click();return}(n=r.requestSubmit)==null||n.call(r)}}function _te(e,t){return e===t}var bte=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(bte||{}),wte=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(wte||{}),Bte=(e=>(e[e.Pointer=0]="Pointer",e[e.Focus=1]="Focus",e[e.Other=2]="Other",e))(Bte||{});let r6=Symbol("ComboboxContext");function kd(e){let t=l.inject(r6,null);if(t===null){let n=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,kd),n}return t}let i6=Symbol("VirtualContext"),xte=l.defineComponent({name:"VirtualProvider",setup(e,{slots:t}){let n=kd("VirtualProvider"),r=l.computed(()=>{let s=Ze(n.optionsRef);if(!s)return{start:0,end:0};let u=window.getComputedStyle(s);return{start:parseFloat(u.paddingBlockStart||u.paddingTop),end:parseFloat(u.paddingBlockEnd||u.paddingBottom)}}),i=nte(l.computed(()=>({scrollPaddingStart:r.value.start,scrollPaddingEnd:r.value.end,count:n.virtual.value.options.length,estimateSize(){return 40},getScrollElement(){return Ze(n.optionsRef)},overscan:12}))),a=l.computed(()=>{var s;return(s=n.virtual.value)==null?void 0:s.options}),o=l.ref(0);return l.watch([a],()=>{o.value+=1}),l.provide(i6,n.virtual.value?i:null),()=>[l.h("div",{style:{position:"relative",width:"100%",height:`${i.value.getTotalSize()}px`},ref:s=>{if(s){if(typeof process<"u"&&process.env.JEST_WORKER_ID!==void 0||n.activationTrigger.value===0)return;n.activeOptionIndex.value!==null&&n.virtual.value.options.length>n.activeOptionIndex.value&&i.value.scrollToIndex(n.activeOptionIndex.value)}}},i.value.getVirtualItems().map(s=>l.cloneVNode(t.default({option:n.virtual.value.options[s.index],open:n.comboboxState.value===0})[0],{key:`${o.value}-${s.index}`,"data-index":s.index,"aria-setsize":n.virtual.value.options.length,"aria-posinset":s.index+1,style:{position:"absolute",top:0,left:0,transform:`translateY(${s.start}px)`,overflowAnchor:"none"}})))]}}),hm=l.defineComponent({name:"Combobox",emits:{"update:modelValue":e=>!0},props:{as:{type:[Object,String],default:"template"},disabled:{type:[Boolean],default:!1},by:{type:[String,Function],nullable:!0,default:null},modelValue:{type:[Object,String,Number,Boolean],default:void 0},defaultValue:{type:[Object,String,Number,Boolean],default:void 0},form:{type:String,optional:!0},name:{type:String,optional:!0},nullable:{type:Boolean,default:!1},multiple:{type:[Boolean],default:!1},immediate:{type:[Boolean],default:!1},virtual:{type:Object,default:null}},inheritAttrs:!1,setup(e,{slots:t,attrs:n,emit:r}){let i=l.ref(1),a=l.ref(null),o=l.ref(null),s=l.ref(null),u=l.ref(null),c=l.ref({static:!1,hold:!1}),A=l.ref([]),f=l.ref(null),h=l.ref(2),d=l.ref(!1);function m(P=k=>k){let k=f.value!==null?A.value[f.value]:null,F=P(A.value.slice()),D=F.length>0&&F[0].dataRef.order.value!==null?F.sort((H,K)=>H.dataRef.order.value-K.dataRef.order.value):dm(F,H=>Ze(H.dataRef.domRef)),L=k?D.indexOf(k):null;return L===-1&&(L=null),{options:D,activeOptionIndex:L}}let p=l.computed(()=>e.multiple?1:0),g=l.computed(()=>e.nullable),[v,y]=xv(l.computed(()=>e.modelValue),P=>r("update:modelValue",P),l.computed(()=>e.defaultValue)),_=l.computed(()=>v.value===void 0?tr(p.value,{1:[],0:void 0}):v.value),b=null,w=null;function C(P){return tr(p.value,{0(){return y==null?void 0:y(P)},1:()=>{let k=l.toRaw(E.value.value).slice(),F=l.toRaw(P),D=k.findIndex(L=>E.compare(F,l.toRaw(L)));return D===-1?k.push(F):k.splice(D,1),y==null?void 0:y(k)}})}let B=l.computed(()=>{});l.watch([B],([P],[k])=>{if(E.virtual.value&&P&&k&&f.value!==null){let F=P.indexOf(k[f.value]);F!==-1?f.value=F:f.value=null}});let E={comboboxState:i,value:_,mode:p,compare(P,k){if(typeof e.by=="string"){let F=e.by;return(P==null?void 0:P[F])===(k==null?void 0:k[F])}return e.by===null?_te(P,k):e.by(P,k)},calculateIndex(P){return E.virtual.value?e.by===null?E.virtual.value.options.indexOf(P):E.virtual.value.options.findIndex(k=>E.compare(k,P)):A.value.findIndex(k=>E.compare(k.dataRef.value,P))},defaultValue:l.computed(()=>e.defaultValue),nullable:g,immediate:l.computed(()=>!1),virtual:l.computed(()=>null),inputRef:o,labelRef:a,buttonRef:s,optionsRef:u,disabled:l.computed(()=>e.disabled),options:A,change(P){y(P)},activeOptionIndex:l.computed(()=>{if(d.value&&f.value===null&&(E.virtual.value?E.virtual.value.options.length>0:A.value.length>0)){if(E.virtual.value){let k=E.virtual.value.options.findIndex(F=>{var D;return!((D=E.virtual.value)!=null&&D.disabled(F))});if(k!==-1)return k}let P=A.value.findIndex(k=>!k.dataRef.disabled);if(P!==-1)return P}return f.value}),activationTrigger:h,optionsPropsRef:c,closeCombobox(){d.value=!1,!e.disabled&&i.value!==1&&(i.value=1,f.value=null)},openCombobox(){if(d.value=!0,!e.disabled&&i.value!==0){if(E.value.value){let P=E.calculateIndex(E.value.value);P!==-1&&(f.value=P)}i.value=0}},setActivationTrigger(P){h.value=P},goToOption(P,k,F){d.value=!1,b!==null&&cancelAnimationFrame(b),b=requestAnimationFrame(()=>{if(e.disabled||u.value&&!c.value.static&&i.value===1)return;if(E.virtual.value){f.value=P===xn.Specific?k:kv({focus:P},{resolveItems:()=>E.virtual.value.options,resolveActiveIndex:()=>{var H,K;return(K=(H=E.activeOptionIndex.value)!=null?H:E.virtual.value.options.findIndex(q=>{var z;return!((z=E.virtual.value)!=null&&z.disabled(q))}))!=null?K:null},resolveDisabled:H=>E.virtual.value.disabled(H),resolveId(){throw new Error("Function not implemented.")}}),h.value=F??2;return}let D=m();if(D.activeOptionIndex===null){let H=D.options.findIndex(K=>!K.dataRef.disabled);H!==-1&&(D.activeOptionIndex=H)}let L=P===xn.Specific?k:kv({focus:P},{resolveItems:()=>D.options,resolveActiveIndex:()=>D.activeOptionIndex,resolveId:H=>H.id,resolveDisabled:H=>H.dataRef.disabled});f.value=L,h.value=F??2,A.value=D.options})},selectOption(P){let k=A.value.find(D=>D.id===P);if(!k)return;let{dataRef:F}=k;C(F.value)},selectActiveOption(){if(E.activeOptionIndex.value!==null){if(E.virtual.value)C(E.virtual.value.options[E.activeOptionIndex.value]);else{let{dataRef:P}=A.value[E.activeOptionIndex.value];C(P.value)}E.goToOption(xn.Specific,E.activeOptionIndex.value)}},registerOption(P,k){let F=l.reactive({id:P,dataRef:k});if(E.virtual.value){A.value.push(F);return}w&&cancelAnimationFrame(w);let D=m(L=>(L.push(F),L));f.value===null&&E.isSelected(k.value.value)&&(D.activeOptionIndex=D.options.indexOf(F)),A.value=D.options,f.value=D.activeOptionIndex,h.value=2,D.options.some(L=>!Ze(L.dataRef.domRef))&&(w=requestAnimationFrame(()=>{let L=m();A.value=L.options,f.value=L.activeOptionIndex}))},unregisterOption(P,k){if(b!==null&&cancelAnimationFrame(b),k&&(d.value=!0),E.virtual.value){A.value=A.value.filter(D=>D.id!==P);return}let F=m(D=>{let L=D.findIndex(H=>H.id===P);return L!==-1&&D.splice(L,1),D});A.value=F.options,f.value=F.activeOptionIndex,h.value=2},isSelected(P){return tr(p.value,{0:()=>E.compare(l.toRaw(E.value.value),l.toRaw(P)),1:()=>l.toRaw(E.value.value).some(k=>E.compare(l.toRaw(k),l.toRaw(P)))})},isActive(P){return f.value===E.calculateIndex(P)}};fm([o,s,u],()=>E.closeCombobox(),l.computed(()=>i.value===0)),l.provide(r6,E),oh(l.computed(()=>tr(i.value,{0:Wn.Open,1:Wn.Closed})));let N=l.computed(()=>{var P;return(P=Ze(o))==null?void 0:P.closest("form")});return l.onMounted(()=>{l.watch([N],()=>{if(!N.value||e.defaultValue===void 0)return;function P(){E.change(e.defaultValue)}return N.value.addEventListener("reset",P),()=>{var k;(k=N.value)==null||k.removeEventListener("reset",P)}},{immediate:!0})}),()=>{var P,k,F;let{name:D,disabled:L,form:H,...K}=e,q={open:i.value===0,disabled:L,activeIndex:E.activeOptionIndex.value,activeOption:E.activeOptionIndex.value===null?null:E.virtual.value?E.virtual.value.options[(P=E.activeOptionIndex.value)!=null?P:0]:(F=(k=E.options.value[E.activeOptionIndex.value])==null?void 0:k.dataRef.value)!=null?F:null,value:_.value};return l.h(l.Fragment,[...D!=null&&_.value!=null?Mv({[D]:_.value}).map(([z,J])=>l.h(Js,Sv({features:vs.Hidden,key:z,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:H,disabled:L,name:z,value:J}))):[],Nn({theirProps:{...n,...aA(K,["by","defaultValue","immediate","modelValue","multiple","nullable","onUpdate:modelValue","virtual"])},ourProps:{},slot:q,slots:t,attrs:n,name:"Combobox"})])}}});l.defineComponent({name:"ComboboxLabel",props:{as:{type:[Object,String],default:"label"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n}){var r;let i=(r=e.id)!=null?r:`headlessui-combobox-label-${dr()}`,a=kd("ComboboxLabel");function o(){var s;(s=Ze(a.inputRef))==null||s.focus({preventScroll:!0})}return()=>{let s={open:a.comboboxState.value===0,disabled:a.disabled.value},{...u}=e,c={id:i,ref:a.labelRef,onClick:o};return Nn({ourProps:c,theirProps:u,slot:s,attrs:t,slots:n,name:"ComboboxLabel"})}}});let Ev=l.defineComponent({name:"ComboboxButton",props:{as:{type:[Object,String],default:"button"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n,expose:r}){var i;let a=(i=e.id)!=null?i:`headlessui-combobox-button-${dr()}`,o=kd("ComboboxButton");r({el:o.buttonRef,$el:o.buttonRef});function s(A){o.disabled.value||(o.comboboxState.value===0?o.closeCombobox():(A.preventDefault(),o.openCombobox()),l.nextTick(()=>{var f;return(f=Ze(o.inputRef))==null?void 0:f.focus({preventScroll:!0})}))}function u(A){switch(A.key){case Yt.ArrowDown:A.preventDefault(),A.stopPropagation(),o.comboboxState.value===1&&o.openCombobox(),l.nextTick(()=>{var f;return(f=o.inputRef.value)==null?void 0:f.focus({preventScroll:!0})});return;case Yt.ArrowUp:A.preventDefault(),A.stopPropagation(),o.comboboxState.value===1&&(o.openCombobox(),l.nextTick(()=>{o.value.value||o.goToOption(xn.Last)})),l.nextTick(()=>{var f;return(f=o.inputRef.value)==null?void 0:f.focus({preventScroll:!0})});return;case Yt.Escape:if(o.comboboxState.value!==0)return;A.preventDefault(),o.optionsRef.value&&!o.optionsPropsRef.value.static&&A.stopPropagation(),o.closeCombobox(),l.nextTick(()=>{var f;return(f=o.inputRef.value)==null?void 0:f.focus({preventScroll:!0})});return}}let c=ah(l.computed(()=>({as:e.as,type:t.type})),o.buttonRef);return()=>{var A,f;let h={open:o.comboboxState.value===0,disabled:o.disabled.value,value:o.value.value},{...d}=e,m={ref:o.buttonRef,id:a,type:c.value,tabindex:"-1","aria-haspopup":"listbox","aria-controls":(A=Ze(o.optionsRef))==null?void 0:A.id,"aria-expanded":o.comboboxState.value===0,"aria-labelledby":o.labelRef.value?[(f=Ze(o.labelRef))==null?void 0:f.id,a].join(" "):void 0,disabled:o.disabled.value===!0?!0:void 0,onKeydown:u,onClick:s};return Nn({ourProps:m,theirProps:d,slot:h,attrs:t,slots:n,name:"ComboboxButton"})}}}),Lv=l.defineComponent({name:"ComboboxInput",props:{as:{type:[Object,String],default:"input"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},displayValue:{type:Function},defaultValue:{type:String,default:void 0},id:{type:String,default:null}},emits:{change:e=>!0},setup(e,{emit:t,attrs:n,slots:r,expose:i}){var a;let o=(a=e.id)!=null?a:`headlessui-combobox-input-${dr()}`,s=kd("ComboboxInput"),u=l.computed(()=>Da(Ze(s.inputRef))),c={value:!1};i({el:s.inputRef,$el:s.inputRef});function A(){s.change(null);let w=Ze(s.optionsRef);w&&(w.scrollTop=0),s.goToOption(xn.Nothing)}let f=l.computed(()=>{var w;let C=s.value.value;return Ze(s.inputRef)?typeof e.displayValue<"u"&&C!==void 0?(w=e.displayValue(C))!=null?w:"":typeof C=="string"?C:"":""});l.onMounted(()=>{l.watch([f,s.comboboxState,u],([w,C],[B,E])=>{if(c.value)return;let N=Ze(s.inputRef);N&&((E===0&&C===1||w!==B)&&(N.value=w),requestAnimationFrame(()=>{var P;if(c.value||!N||((P=u.value)==null?void 0:P.activeElement)!==N)return;let{selectionStart:k,selectionEnd:F}=N;Math.abs((F??0)-(k??0))===0&&k===0&&N.setSelectionRange(N.value.length,N.value.length)}))},{immediate:!0}),l.watch([s.comboboxState],([w],[C])=>{if(w===0&&C===1){if(c.value)return;let B=Ze(s.inputRef);if(!B)return;let E=B.value,{selectionStart:N,selectionEnd:P,selectionDirection:k}=B;B.value="",B.value=E,k!==null?B.setSelectionRange(N,P,k):B.setSelectionRange(N,P)}})});let h=l.ref(!1);function d(){h.value=!0}function m(){nA().nextFrame(()=>{h.value=!1})}let p=ite();function g(w){switch(c.value=!0,p(()=>{c.value=!1}),w.key){case Yt.Enter:if(c.value=!1,s.comboboxState.value!==0||h.value)return;if(w.preventDefault(),w.stopPropagation(),s.activeOptionIndex.value===null){s.closeCombobox();return}s.selectActiveOption(),s.mode.value===0&&s.closeCombobox();break;case Yt.ArrowDown:return c.value=!1,w.preventDefault(),w.stopPropagation(),tr(s.comboboxState.value,{0:()=>s.goToOption(xn.Next),1:()=>s.openCombobox()});case Yt.ArrowUp:return c.value=!1,w.preventDefault(),w.stopPropagation(),tr(s.comboboxState.value,{0:()=>s.goToOption(xn.Previous),1:()=>{s.openCombobox(),l.nextTick(()=>{s.value.value||s.goToOption(xn.Last)})}});case Yt.Home:if(w.shiftKey)break;return c.value=!1,w.preventDefault(),w.stopPropagation(),s.goToOption(xn.First);case Yt.PageUp:return c.value=!1,w.preventDefault(),w.stopPropagation(),s.goToOption(xn.First);case Yt.End:if(w.shiftKey)break;return c.value=!1,w.preventDefault(),w.stopPropagation(),s.goToOption(xn.Last);case Yt.PageDown:return c.value=!1,w.preventDefault(),w.stopPropagation(),s.goToOption(xn.Last);case Yt.Escape:if(c.value=!1,s.comboboxState.value!==0)return;w.preventDefault(),s.optionsRef.value&&!s.optionsPropsRef.value.static&&w.stopPropagation(),s.nullable.value&&s.mode.value===0&&s.value.value===null&&A(),s.closeCombobox();break;case Yt.Tab:if(c.value=!1,s.comboboxState.value!==0)return;s.mode.value===0&&s.activationTrigger.value!==1&&s.selectActiveOption(),s.closeCombobox();break}}function v(w){t("change",w),s.nullable.value&&s.mode.value===0&&w.target.value===""&&A(),s.openCombobox()}function y(w){var C,B,E;let N=(C=w.relatedTarget)!=null?C:Vu.find(P=>P!==w.currentTarget);if(c.value=!1,!((B=Ze(s.optionsRef))!=null&&B.contains(N))&&!((E=Ze(s.buttonRef))!=null&&E.contains(N))&&s.comboboxState.value===0)return w.preventDefault(),s.mode.value===0&&(s.nullable.value&&s.value.value===null?A():s.activationTrigger.value!==1&&s.selectActiveOption()),s.closeCombobox()}function _(w){var C,B,E;let N=(C=w.relatedTarget)!=null?C:Vu.find(P=>P!==w.currentTarget);(B=Ze(s.buttonRef))!=null&&B.contains(N)||(E=Ze(s.optionsRef))!=null&&E.contains(N)||s.disabled.value||s.immediate.value&&s.comboboxState.value!==0&&(s.openCombobox(),nA().nextFrame(()=>{s.setActivationTrigger(1)}))}let b=l.computed(()=>{var w,C,B,E;return(E=(B=(C=e.defaultValue)!=null?C:s.defaultValue.value!==void 0?(w=e.displayValue)==null?void 0:w.call(e,s.defaultValue.value):null)!=null?B:s.defaultValue.value)!=null?E:""});return()=>{var w,C,B,E,N,P,k;let F={open:s.comboboxState.value===0},{displayValue:D,onChange:L,...H}=e,K={"aria-controls":(w=s.optionsRef.value)==null?void 0:w.id,"aria-expanded":s.comboboxState.value===0,"aria-activedescendant":s.activeOptionIndex.value===null?void 0:s.virtual.value?(C=s.options.value.find(q=>!s.virtual.value.disabled(q.dataRef.value)&&s.compare(q.dataRef.value,s.virtual.value.options[s.activeOptionIndex.value])))==null?void 0:C.id:(B=s.options.value[s.activeOptionIndex.value])==null?void 0:B.id,"aria-labelledby":(P=(E=Ze(s.labelRef))==null?void 0:E.id)!=null?P:(N=Ze(s.buttonRef))==null?void 0:N.id,"aria-autocomplete":"list",id:o,onCompositionstart:d,onCompositionend:m,onKeydown:g,onInput:v,onFocus:_,onBlur:y,role:"combobox",type:(k=n.type)!=null?k:"text",tabIndex:0,ref:s.inputRef,defaultValue:b.value,disabled:s.disabled.value===!0?!0:void 0};return Nn({ourProps:K,theirProps:H,slot:F,attrs:n,slots:r,features:oa.RenderStrategy|oa.Static,name:"ComboboxInput"})}}}),pm=l.defineComponent({name:"ComboboxOptions",props:{as:{type:[Object,String],default:"ul"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},hold:{type:[Boolean],default:!1}},setup(e,{attrs:t,slots:n,expose:r}){let i=kd("ComboboxOptions"),a=`headlessui-combobox-options-${dr()}`;r({el:i.optionsRef,$el:i.optionsRef}),l.watchEffect(()=>{i.optionsPropsRef.value.static=e.static}),l.watchEffect(()=>{i.optionsPropsRef.value.hold=e.hold});let o=ju(),s=l.computed(()=>o!==null?(o.value&Wn.Open)===Wn.Open:i.comboboxState.value===0);fw({container:l.computed(()=>Ze(i.optionsRef)),enabled:l.computed(()=>i.comboboxState.value===0),accept(c){return c.getAttribute("role")==="option"?NodeFilter.FILTER_REJECT:c.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(c){c.setAttribute("role","none")}});function u(c){c.preventDefault()}return()=>{var c,A,f;let h={open:i.comboboxState.value===0},d={"aria-labelledby":(f=(c=Ze(i.labelRef))==null?void 0:c.id)!=null?f:(A=Ze(i.buttonRef))==null?void 0:A.id,id:a,ref:i.optionsRef,role:"listbox","aria-multiselectable":i.mode.value===1?!0:void 0,onMousedown:u},m=aA(e,["hold"]);return Nn({ourProps:d,theirProps:m,slot:h,attrs:t,slots:i.virtual.value&&i.comboboxState.value===0?{...n,default:()=>[l.h(xte,{},n.default)]}:n,features:oa.RenderStrategy|oa.Static,visible:s.value,name:"ComboboxOptions"})}}}),sh=l.defineComponent({name:"ComboboxOption",props:{as:{type:[Object,String],default:"li"},value:{type:[Object,String,Number,Boolean]},disabled:{type:Boolean,default:!1},order:{type:[Number],default:null}},setup(e,{slots:t,attrs:n,expose:r}){let i=kd("ComboboxOption"),a=`headlessui-combobox-option-${dr()}`,o=l.ref(null),s=l.computed(()=>e.disabled);r({el:o,$el:o});let u=l.computed(()=>{var y;return i.virtual.value?i.activeOptionIndex.value===i.calculateIndex(e.value):i.activeOptionIndex.value===null?!1:((y=i.options.value[i.activeOptionIndex.value])==null?void 0:y.id)===a}),c=l.computed(()=>i.isSelected(e.value)),A=l.inject(i6,null),f=l.computed(()=>({disabled:e.disabled,value:e.value,domRef:o,order:l.computed(()=>e.order)}));l.onMounted(()=>i.registerOption(a,f)),l.onUnmounted(()=>i.unregisterOption(a,u.value)),l.watchEffect(()=>{let y=Ze(o);y&&(A==null||A.value.measureElement(y))}),l.watchEffect(()=>{i.comboboxState.value===0&&u.value&&(i.virtual.value||i.activationTrigger.value!==0&&l.nextTick(()=>{var y,_;return(_=(y=Ze(o))==null?void 0:y.scrollIntoView)==null?void 0:_.call(y,{block:"nearest"})}))});function h(y){y.preventDefault(),y.button===$L.Left&&(s.value||(i.selectOption(a),qL()||requestAnimationFrame(()=>{var _;return(_=Ze(i.inputRef))==null?void 0:_.focus({preventScroll:!0})}),i.mode.value===0&&i.closeCombobox()))}function d(){var y;if(e.disabled||(y=i.virtual.value)!=null&&y.disabled(e.value))return i.goToOption(xn.Nothing);let _=i.calculateIndex(e.value);i.goToOption(xn.Specific,_)}let m=dw();function p(y){m.update(y)}function g(y){var _;if(!m.wasMoved(y)||e.disabled||(_=i.virtual.value)!=null&&_.disabled(e.value)||u.value)return;let b=i.calculateIndex(e.value);i.goToOption(xn.Specific,b,0)}function v(y){var _;m.wasMoved(y)&&(e.disabled||(_=i.virtual.value)!=null&&_.disabled(e.value)||u.value&&(i.optionsPropsRef.value.hold||i.goToOption(xn.Nothing)))}return()=>{let{disabled:y}=e,_={active:u.value,selected:c.value,disabled:y},b={id:a,ref:o,role:"option",tabIndex:y===!0?void 0:-1,"aria-disabled":y===!0?!0:void 0,"aria-selected":c.value,disabled:void 0,onMousedown:h,onFocus:d,onPointerenter:p,onMouseenter:p,onPointermove:g,onMousemove:g,onPointerleave:v,onMouseleave:v},w=aA(e,["order","value"]);return Nn({ourProps:b,theirProps:w,slot:_,attrs:n,slots:t,name:"ComboboxOption"})}}});function pw(e,t,n,r){lm.isServer||l.watchEffect(i=>{e=e??window,e.addEventListener(t,n,r),i(()=>e.removeEventListener(t,n,r))})}var qo=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(qo||{});function mw(){let e=l.ref(0);return KL("keydown",t=>{t.key==="Tab"&&(e.value=t.shiftKey?1:0)}),e}function a6(e){if(!e)return new Set;if(typeof e=="function")return new Set(e());let t=new Set;for(let n of e.value){let r=Ze(n);r instanceof HTMLElement&&t.add(r)}return t}var o6=(e=>(e[e.None=1]="None",e[e.InitialFocus=2]="InitialFocus",e[e.TabLock=4]="TabLock",e[e.FocusLock=8]="FocusLock",e[e.RestoreFocus=16]="RestoreFocus",e[e.All=30]="All",e))(o6||{});let mm=Object.assign(l.defineComponent({name:"FocusTrap",props:{as:{type:[Object,String],default:"div"},initialFocus:{type:Object,default:null},features:{type:Number,default:30},containers:{type:[Object,Function],default:l.ref(new Set)}},inheritAttrs:!1,setup(e,{attrs:t,slots:n,expose:r}){let i=l.ref(null);r({el:i,$el:i});let a=l.computed(()=>Da(i)),o=l.ref(!1);l.onMounted(()=>o.value=!0),l.onUnmounted(()=>o.value=!1),Ste({ownerDocument:a},l.computed(()=>o.value&&!!(e.features&16)));let s=kte({ownerDocument:a,container:i,initialFocus:l.computed(()=>e.initialFocus)},l.computed(()=>o.value&&!!(e.features&2)));Mte({ownerDocument:a,container:i,containers:e.containers,previousActiveElement:s},l.computed(()=>o.value&&!!(e.features&8)));let u=mw();function c(d){let m=Ze(i);m&&(p=>p())(()=>{tr(u.value,{[qo.Forwards]:()=>{So(m,li.First,{skipElements:[d.relatedTarget]})},[qo.Backwards]:()=>{So(m,li.Last,{skipElements:[d.relatedTarget]})}})})}let A=l.ref(!1);function f(d){d.key==="Tab"&&(A.value=!0,requestAnimationFrame(()=>{A.value=!1}))}function h(d){if(!o.value)return;let m=a6(e.containers);Ze(i)instanceof HTMLElement&&m.add(Ze(i));let p=d.relatedTarget;p instanceof HTMLElement&&p.dataset.headlessuiFocusGuard!=="true"&&(s6(m,p)||(A.value?So(Ze(i),tr(u.value,{[qo.Forwards]:()=>li.Next,[qo.Backwards]:()=>li.Previous})|li.WrapAround,{relativeTo:d.target}):d.target instanceof HTMLElement&&rA(d.target)))}return()=>{let d={},m={ref:i,onKeydown:f,onFocusout:h},{features:p,initialFocus:g,containers:v,...y}=e;return l.h(l.Fragment,[!!(p&4)&&l.h(Js,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:c,features:vs.Focusable}),Nn({ourProps:m,theirProps:{...t,...y},slot:d,attrs:t,slots:n,name:"FocusTrap"}),!!(p&4)&&l.h(Js,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:c,features:vs.Focusable})])}}}),{features:o6});function Cte(e){let t=l.ref(Vu.slice());return l.watch([e],([n],[r])=>{r===!0&&n===!1?cw(()=>{t.value.splice(0)}):r===!1&&n===!0&&(t.value=Vu.slice())},{flush:"post"}),()=>{var n;return(n=t.value.find(r=>r!=null&&r.isConnected))!=null?n:null}}function Ste({ownerDocument:e},t){let n=Cte(t);l.onMounted(()=>{l.watchEffect(()=>{var r,i;t.value||((r=e.value)==null?void 0:r.activeElement)===((i=e.value)==null?void 0:i.body)&&rA(n())},{flush:"post"})}),l.onUnmounted(()=>{t.value&&rA(n())})}function kte({ownerDocument:e,container:t,initialFocus:n},r){let i=l.ref(null),a=l.ref(!1);return l.onMounted(()=>a.value=!0),l.onUnmounted(()=>a.value=!1),l.onMounted(()=>{l.watch([t,n,r],(o,s)=>{if(o.every((c,A)=>(s==null?void 0:s[A])===c)||!r.value)return;let u=Ze(t);u&&cw(()=>{var c,A;if(!a.value)return;let f=Ze(n),h=(c=e.value)==null?void 0:c.activeElement;if(f){if(f===h){i.value=h;return}}else if(u.contains(h)){i.value=h;return}f?rA(f):So(u,li.First|li.NoScroll)===Sd.Error&&console.warn("There are no focusable elements inside the <FocusTrap />"),i.value=(A=e.value)==null?void 0:A.activeElement})},{immediate:!0,flush:"post"})}),i}function Mte({ownerDocument:e,container:t,containers:n,previousActiveElement:r},i){var a;pw((a=e.value)==null?void 0:a.defaultView,"focus",o=>{if(!i.value)return;let s=a6(n);Ze(t)instanceof HTMLElement&&s.add(Ze(t));let u=r.value;if(!u)return;let c=o.target;c&&c instanceof HTMLElement?s6(s,c)?(r.value=c,rA(c)):(o.preventDefault(),o.stopPropagation(),rA(u)):rA(r.value)},!0)}function s6(e,t){for(let n of e)if(n.contains(t))return!0;return!1}function Ete(e){let t=l.shallowRef(e.getSnapshot());return l.onUnmounted(e.subscribe(()=>{t.value=e.getSnapshot()})),t}function Lte(e,t){let n=e(),r=new Set;return{getSnapshot(){return n},subscribe(i){return r.add(i),()=>r.delete(i)},dispatch(i,...a){let o=t[i].call(n,...a);o&&(n=o,r.forEach(s=>s()))}}}function Tte(){let e;return{before({doc:t}){var n;let r=t.documentElement;e=((n=t.defaultView)!=null?n:window).innerWidth-r.clientWidth},after({doc:t,d:n}){let r=t.documentElement,i=r.clientWidth-r.offsetWidth,a=e-i;n.style(r,"paddingRight",`${a}px`)}}}function Nte(){return zL()?{before({doc:e,d:t,meta:n}){function r(i){return n.containers.flatMap(a=>a()).some(a=>a.contains(i))}t.microTask(()=>{var i;if(window.getComputedStyle(e.documentElement).scrollBehavior!=="auto"){let s=nA();s.style(e.documentElement,"scrollBehavior","auto"),t.add(()=>t.microTask(()=>s.dispose()))}let a=(i=window.scrollY)!=null?i:window.pageYOffset,o=null;t.addEventListener(e,"click",s=>{if(s.target instanceof HTMLElement)try{let u=s.target.closest("a");if(!u)return;let{hash:c}=new URL(u.href),A=e.querySelector(c);A&&!r(A)&&(o=A)}catch{}},!0),t.addEventListener(e,"touchstart",s=>{if(s.target instanceof HTMLElement)if(r(s.target)){let u=s.target;for(;u.parentElement&&r(u.parentElement);)u=u.parentElement;t.style(u,"overscrollBehavior","contain")}else t.style(s.target,"touchAction","none")}),t.addEventListener(e,"touchmove",s=>{if(s.target instanceof HTMLElement){if(s.target.tagName==="INPUT")return;if(r(s.target)){let u=s.target;for(;u.parentElement&&u.dataset.headlessuiPortal!==""&&!(u.scrollHeight>u.clientHeight||u.scrollWidth>u.clientWidth);)u=u.parentElement;u.dataset.headlessuiPortal===""&&s.preventDefault()}else s.preventDefault()}},{passive:!1}),t.add(()=>{var s;let u=(s=window.scrollY)!=null?s:window.pageYOffset;a!==u&&window.scrollTo(0,a),o&&o.isConnected&&(o.scrollIntoView({block:"nearest"}),o=null)})})}}:{}}function Fte(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function Ote(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let Md=Lte(()=>new Map,{PUSH(e,t){var n;let r=(n=this.get(e))!=null?n:{doc:e,count:0,d:nA(),meta:new Set};return r.count++,r.meta.add(t),this.set(e,r),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:n}){let r={doc:e,d:t,meta:Ote(n)},i=[Nte(),Tte(),Fte()];i.forEach(({before:a})=>a==null?void 0:a(r)),i.forEach(({after:a})=>a==null?void 0:a(r))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});Md.subscribe(()=>{let e=Md.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let r=t.get(n.doc)==="hidden",i=n.count!==0;(i&&!r||!i&&r)&&Md.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&Md.dispatch("TEARDOWN",n)}});function Dte(e,t,n){let r=Ete(Md),i=l.computed(()=>{let a=e.value?r.value.get(e.value):void 0;return a?a.count>0:!1});return l.watch([e,t],([a,o],[s],u)=>{if(!a||!o)return;Md.dispatch("PUSH",a,n);let c=!1;u(()=>{c||(Md.dispatch("POP",s??a,n),c=!0)})},{immediate:!0}),i}let gw=new Map,gm=new Map;function l6(e,t=l.ref(!0)){l.watchEffect(n=>{var r;if(!t.value)return;let i=Ze(e);if(!i)return;n(function(){var o;if(!i)return;let s=(o=gm.get(i))!=null?o:1;if(s===1?gm.delete(i):gm.set(i,s-1),s!==1)return;let u=gw.get(i);u&&(u["aria-hidden"]===null?i.removeAttribute("aria-hidden"):i.setAttribute("aria-hidden",u["aria-hidden"]),i.inert=u.inert,gw.delete(i))});let a=(r=gm.get(i))!=null?r:0;gm.set(i,a+1),a===0&&(gw.set(i,{"aria-hidden":i.getAttribute("aria-hidden"),inert:i.inert}),i.setAttribute("aria-hidden","true"),i.inert=!0)})}function u6({defaultContainers:e=[],portals:t,mainTreeNodeRef:n}={}){let r=l.ref(null),i=Da(r);function a(){var o,s,u;let c=[];for(let A of e)A!==null&&(A instanceof HTMLElement?c.push(A):"value"in A&&A.value instanceof HTMLElement&&c.push(A.value));if(t!=null&&t.value)for(let A of t.value)c.push(A);for(let A of(o=i==null?void 0:i.querySelectorAll("html > *, body > *"))!=null?o:[])A!==document.body&&A!==document.head&&A instanceof HTMLElement&&A.id!=="headlessui-portal-root"&&(A.contains(Ze(r))||A.contains((u=(s=Ze(r))==null?void 0:s.getRootNode())==null?void 0:u.host)||c.some(f=>A.contains(f))||c.push(A));return c}return{resolveContainers:a,contains(o){return a().some(s=>s.contains(o))},mainTreeNodeRef:r,MainTreeNode(){return n!=null?null:l.h(Js,{features:vs.Hidden,ref:r})}}}function Ite(){let e=l.ref(null);return{mainTreeNodeRef:e,MainTreeNode(){return l.h(Js,{features:vs.Hidden,ref:e})}}}let c6=Symbol("ForcePortalRootContext");function Ute(){return l.inject(c6,!1)}let vw=l.defineComponent({name:"ForcePortalRoot",props:{as:{type:[Object,String],default:"template"},force:{type:Boolean,default:!1}},setup(e,{slots:t,attrs:n}){return l.provide(c6,e.force),()=>{let{force:r,...i}=e;return Nn({theirProps:i,ourProps:{},slot:{},slots:t,attrs:n,name:"ForcePortalRoot"})}}}),A6=Symbol("StackContext");var yw=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(yw||{});function Pte(){return l.inject(A6,()=>{})}function Hte({type:e,enabled:t,element:n,onUpdate:r}){let i=Pte();function a(...o){r==null||r(...o),i(...o)}l.onMounted(()=>{l.watch(t,(o,s)=>{o?a(0,e,n):s===!0&&a(1,e,n)},{immediate:!0,flush:"sync"})}),l.onUnmounted(()=>{t.value&&a(1,e,n)}),l.provide(A6,a)}let d6=Symbol("DescriptionContext");function Yte(){let e=l.inject(d6,null);if(e===null)throw new Error("Missing parent");return e}function Tv({slot:e=l.ref({}),name:t="Description",props:n={}}={}){let r=l.ref([]);function i(a){return r.value.push(a),()=>{let o=r.value.indexOf(a);o!==-1&&r.value.splice(o,1)}}return l.provide(d6,{register:i,slot:e,name:t,props:n}),l.computed(()=>r.value.length>0?r.value.join(" "):void 0)}l.defineComponent({name:"Description",props:{as:{type:[Object,String],default:"p"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n}){var r;let i=(r=e.id)!=null?r:`headlessui-description-${dr()}`,a=Yte();return l.onMounted(()=>l.onUnmounted(a.register(i))),()=>{let{name:o="Description",slot:s=l.ref({}),props:u={}}=a,{...c}=e,A={...Object.entries(u).reduce((f,[h,d])=>Object.assign(f,{[h]:l.unref(d)}),{}),id:i};return Nn({ourProps:A,theirProps:c,slot:s.value,attrs:t,slots:n,name:o})}}});function Rte(e){let t=Da(e);if(!t){if(e===null)return null;throw new Error(`[Headless UI]: Cannot find ownerDocument for contextElement: ${e}`)}let n=t.getElementById("headlessui-portal-root");if(n)return n;let r=t.createElement("div");return r.setAttribute("id","headlessui-portal-root"),t.body.appendChild(r)}const _w=new WeakMap;function Qte(e){var t;return(t=_w.get(e))!=null?t:0}function f6(e,t){let n=t(Qte(e));return n<=0?_w.delete(e):_w.set(e,n),n}let h6=l.defineComponent({name:"Portal",props:{as:{type:[Object,String],default:"div"}},setup(e,{slots:t,attrs:n}){let r=l.ref(null),i=l.computed(()=>Da(r)),a=Ute(),o=l.inject(m6,null),s=l.ref(a===!0||o==null?Rte(r.value):o.resolveTarget());s.value&&f6(s.value,h=>h+1);let u=l.ref(!1);l.onMounted(()=>{u.value=!0}),l.watchEffect(()=>{a||o!=null&&(s.value=o.resolveTarget())});let c=l.inject(bw,null),A=!1,f=l.getCurrentInstance();return l.watch(r,()=>{if(A||!c)return;let h=Ze(r);h&&(l.onUnmounted(c.register(h),f),A=!0)}),l.onUnmounted(()=>{var h,d;let m=(h=i.value)==null?void 0:h.getElementById("headlessui-portal-root");!m||s.value!==m||f6(s.value,p=>p-1)||s.value.children.length>0||(d=s.value.parentElement)==null||d.removeChild(s.value)}),()=>{if(!u.value||s.value===null)return null;let h={ref:r,"data-headlessui-portal":""};return l.h(l.Teleport,{to:s.value},Nn({ourProps:h,theirProps:e,slot:{},attrs:n,slots:t,name:"Portal"}))}}}),bw=Symbol("PortalParentContext");function p6(){let e=l.inject(bw,null),t=l.ref([]);function n(a){return t.value.push(a),e&&e.register(a),()=>r(a)}function r(a){let o=t.value.indexOf(a);o!==-1&&t.value.splice(o,1),e&&e.unregister(a)}let i={register:n,unregister:r,portals:t};return[t,l.defineComponent({name:"PortalWrapper",setup(a,{slots:o}){return l.provide(bw,i),()=>{var s;return(s=o.default)==null?void 0:s.call(o)}}})]}let m6=Symbol("PortalGroupContext"),jte=l.defineComponent({name:"PortalGroup",props:{as:{type:[Object,String],default:"template"},target:{type:Object,default:null}},setup(e,{attrs:t,slots:n}){let r=l.reactive({resolveTarget(){return e.target}});return l.provide(m6,r),()=>{let{target:i,...a}=e;return Nn({theirProps:a,ourProps:{},slot:{},attrs:t,slots:n,name:"PortalGroup"})}}});var Vte=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Vte||{});let ww=Symbol("DialogContext");function vm(e){let t=l.inject(ww,null);if(t===null){let n=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,vm),n}return t}let Nv="DC8F892D-2EBD-447C-A4C8-A03058436FF4",lh=l.defineComponent({name:"Dialog",inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},open:{type:[Boolean,String],default:Nv},initialFocus:{type:Object,default:null},id:{type:String,default:null},role:{type:String,default:"dialog"}},emits:{close:e=>!0},setup(e,{emit:t,attrs:n,slots:r,expose:i}){var a,o;let s=(a=e.id)!=null?a:`headlessui-dialog-${dr()}`,u=l.ref(!1);l.onMounted(()=>{u.value=!0});let c=!1,A=l.computed(()=>e.role==="dialog"||e.role==="alertdialog"?e.role:(c||(c=!0,console.warn(`Invalid role [${A}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog")),f=l.ref(0),h=ju(),d=l.computed(()=>e.open===Nv&&h!==null?(h.value&Wn.Open)===Wn.Open:e.open),m=l.ref(null),p=l.computed(()=>Da(m));if(i({el:m,$el:m}),!(e.open!==Nv||h!==null))throw new Error("You forgot to provide an `open` prop to the `Dialog`.");if(typeof d.value!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${d.value===Nv?void 0:e.open}`);let g=l.computed(()=>u.value&&d.value?0:1),v=l.computed(()=>g.value===0),y=l.computed(()=>f.value>1),_=l.inject(ww,null)!==null,[b,w]=p6(),{resolveContainers:C,mainTreeNodeRef:B,MainTreeNode:E}=u6({portals:b,defaultContainers:[l.computed(()=>{var X;return(X=q.panelRef.value)!=null?X:m.value})]}),N=l.computed(()=>y.value?"parent":"leaf"),P=l.computed(()=>h!==null?(h.value&Wn.Closing)===Wn.Closing:!1),k=l.computed(()=>_||P.value?!1:v.value),F=l.computed(()=>{var X,I,W;return(W=Array.from((I=(X=p.value)==null?void 0:X.querySelectorAll("body > *"))!=null?I:[]).find(ee=>ee.id==="headlessui-portal-root"?!1:ee.contains(Ze(B))&&ee instanceof HTMLElement))!=null?W:null});l6(F,k);let D=l.computed(()=>y.value?!0:v.value),L=l.computed(()=>{var X,I,W;return(W=Array.from((I=(X=p.value)==null?void 0:X.querySelectorAll("[data-headlessui-portal]"))!=null?I:[]).find(ee=>ee.contains(Ze(B))&&ee instanceof HTMLElement))!=null?W:null});l6(L,D),Hte({type:"Dialog",enabled:l.computed(()=>g.value===0),element:m,onUpdate:(X,I)=>{if(I==="Dialog")return tr(X,{[yw.Add]:()=>f.value+=1,[yw.Remove]:()=>f.value-=1})}});let H=Tv({name:"DialogDescription",slot:l.computed(()=>({open:d.value}))}),K=l.ref(null),q={titleId:K,panelRef:l.ref(null),dialogState:g,setTitleId(X){K.value!==X&&(K.value=X)},close(){t("close",!1)}};l.provide(ww,q);let z=l.computed(()=>!(!v.value||y.value));fm(C,(X,I)=>{X.preventDefault(),q.close(),l.nextTick(()=>I==null?void 0:I.focus())},z);let J=l.computed(()=>!(y.value||g.value!==0));pw((o=p.value)==null?void 0:o.defaultView,"keydown",X=>{J.value&&(X.defaultPrevented||X.key===Yt.Escape&&(X.preventDefault(),X.stopPropagation(),q.close()))});let ie=l.computed(()=>!(P.value||g.value!==0||_));return Dte(p,ie,X=>{var I;return{containers:[...(I=X.containers)!=null?I:[],C]}}),l.watchEffect(X=>{if(g.value!==0)return;let I=Ze(m);if(!I)return;let W=new ResizeObserver(ee=>{for(let ne of ee){let pe=ne.target.getBoundingClientRect();pe.x===0&&pe.y===0&&pe.width===0&&pe.height===0&&q.close()}});W.observe(I),X(()=>W.disconnect())}),()=>{let{open:X,initialFocus:I,...W}=e,ee={...n,ref:m,id:s,role:A.value,"aria-modal":g.value===0?!0:void 0,"aria-labelledby":K.value,"aria-describedby":H.value},ne={open:g.value===0};return l.h(vw,{force:!0},()=>[l.h(h6,()=>l.h(jte,{target:m.value},()=>l.h(vw,{force:!1},()=>l.h(mm,{initialFocus:I,containers:C,features:v.value?tr(N.value,{parent:mm.features.RestoreFocus,leaf:mm.features.All&~mm.features.FocusLock}):mm.features.None},()=>l.h(w,{},()=>Nn({ourProps:ee,theirProps:{...W,...n},slot:ne,attrs:n,slots:r,visible:g.value===0,features:oa.RenderStrategy|oa.Static,name:"Dialog"})))))),l.h(E)])}}});l.defineComponent({name:"DialogOverlay",props:{as:{type:[Object,String],default:"div"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n}){var r;let i=(r=e.id)!=null?r:`headlessui-dialog-overlay-${dr()}`,a=vm("DialogOverlay");function o(s){s.target===s.currentTarget&&(s.preventDefault(),s.stopPropagation(),a.close())}return()=>{let{...s}=e;return Nn({ourProps:{id:i,"aria-hidden":!0,onClick:o},theirProps:s,slot:{open:a.dialogState.value===0},attrs:t,slots:n,name:"DialogOverlay"})}}}),l.defineComponent({name:"DialogBackdrop",props:{as:{type:[Object,String],default:"div"},id:{type:String,default:null}},inheritAttrs:!1,setup(e,{attrs:t,slots:n,expose:r}){var i;let a=(i=e.id)!=null?i:`headlessui-dialog-backdrop-${dr()}`,o=vm("DialogBackdrop"),s=l.ref(null);return r({el:s,$el:s}),l.onMounted(()=>{if(o.panelRef.value===null)throw new Error("A <DialogBackdrop /> component is being used, but a <DialogPanel /> component is missing.")}),()=>{let{...u}=e,c={id:a,ref:s,"aria-hidden":!0};return l.h(vw,{force:!0},()=>l.h(h6,()=>Nn({ourProps:c,theirProps:{...t,...u},slot:{open:o.dialogState.value===0},attrs:t,slots:n,name:"DialogBackdrop"})))}}});let Fv=l.defineComponent({name:"DialogPanel",props:{as:{type:[Object,String],default:"div"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n,expose:r}){var i;let a=(i=e.id)!=null?i:`headlessui-dialog-panel-${dr()}`,o=vm("DialogPanel");r({el:o.panelRef,$el:o.panelRef});function s(u){u.stopPropagation()}return()=>{let{...u}=e,c={id:a,ref:o.panelRef,onClick:s};return Nn({ourProps:c,theirProps:u,slot:{open:o.dialogState.value===0},attrs:t,slots:n,name:"DialogPanel"})}}}),Bw=l.defineComponent({name:"DialogTitle",props:{as:{type:[Object,String],default:"h2"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n}){var r;let i=(r=e.id)!=null?r:`headlessui-dialog-title-${dr()}`,a=vm("DialogTitle");return l.onMounted(()=>{a.setTitleId(i),l.onUnmounted(()=>a.setTitleId(null))}),()=>{let{...o}=e;return Nn({ourProps:{id:i},theirProps:o,slot:{open:a.dialogState.value===0},attrs:t,slots:n,name:"DialogTitle"})}}});var zte=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(zte||{});let g6=Symbol("DisclosureContext");function xw(e){let t=l.inject(g6,null);if(t===null){let n=new Error(`<${e} /> is missing a parent <Disclosure /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,xw),n}return t}let v6=Symbol("DisclosurePanelContext");function qte(){return l.inject(v6,null)}let Kte=l.defineComponent({name:"Disclosure",props:{as:{type:[Object,String],default:"template"},defaultOpen:{type:[Boolean],default:!1}},setup(e,{slots:t,attrs:n}){let r=l.ref(e.defaultOpen?0:1),i=l.ref(null),a=l.ref(null),o={buttonId:l.ref(`headlessui-disclosure-button-${dr()}`),panelId:l.ref(`headlessui-disclosure-panel-${dr()}`),disclosureState:r,panel:i,button:a,toggleDisclosure(){r.value=tr(r.value,{0:1,1:0})},closeDisclosure(){r.value!==1&&(r.value=1)},close(s){o.closeDisclosure();let u=s?s instanceof HTMLElement?s:s.value instanceof HTMLElement?Ze(s):Ze(o.button):Ze(o.button);u==null||u.focus()}};return l.provide(g6,o),oh(l.computed(()=>tr(r.value,{0:Wn.Open,1:Wn.Closed}))),()=>{let{defaultOpen:s,...u}=e,c={open:r.value===0,close:o.close};return Nn({theirProps:u,ourProps:{},slot:c,slots:t,attrs:n,name:"Disclosure"})}}}),y6=l.defineComponent({name:"DisclosureButton",props:{as:{type:[Object,String],default:"button"},disabled:{type:[Boolean],default:!1},id:{type:String,default:null}},setup(e,{attrs:t,slots:n,expose:r}){let i=xw("DisclosureButton"),a=qte(),o=l.computed(()=>a===null?!1:a.value===i.panelId.value);l.onMounted(()=>{o.value||e.id!==null&&(i.buttonId.value=e.id)}),l.onUnmounted(()=>{o.value||(i.buttonId.value=null)});let s=l.ref(null);r({el:s,$el:s}),o.value||l.watchEffect(()=>{i.button.value=s.value});let u=ah(l.computed(()=>({as:e.as,type:t.type})),s);function c(){var h;e.disabled||(o.value?(i.toggleDisclosure(),(h=Ze(i.button))==null||h.focus()):i.toggleDisclosure())}function A(h){var d;if(!e.disabled)if(o.value)switch(h.key){case Yt.Space:case Yt.Enter:h.preventDefault(),h.stopPropagation(),i.toggleDisclosure(),(d=Ze(i.button))==null||d.focus();break}else switch(h.key){case Yt.Space:case Yt.Enter:h.preventDefault(),h.stopPropagation(),i.toggleDisclosure();break}}function f(h){switch(h.key){case Yt.Space:h.preventDefault();break}}return()=>{var h;let d={open:i.disclosureState.value===0},{id:m,...p}=e,g=o.value?{ref:s,type:u.value,onClick:c,onKeydown:A}:{id:(h=i.buttonId.value)!=null?h:m,ref:s,type:u.value,"aria-expanded":i.disclosureState.value===0,"aria-controls":i.disclosureState.value===0||Ze(i.panel)?i.panelId.value:void 0,disabled:e.disabled?!0:void 0,onClick:c,onKeydown:A,onKeyup:f};return Nn({ourProps:g,theirProps:p,slot:d,attrs:t,slots:n,name:"DisclosureButton"})}}}),Gte=l.defineComponent({name:"DisclosurePanel",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},id:{type:String,default:null}},setup(e,{attrs:t,slots:n,expose:r}){let i=xw("DisclosurePanel");l.onMounted(()=>{e.id!==null&&(i.panelId.value=e.id)}),l.onUnmounted(()=>{i.panelId.value=null}),r({el:i.panel,$el:i.panel}),l.provide(v6,i.panelId);let a=ju(),o=l.computed(()=>a!==null?(a.value&Wn.Open)===Wn.Open:i.disclosureState.value===0);return()=>{var s;let u={open:i.disclosureState.value===0,close:i.close},{id:c,...A}=e,f={id:(s=i.panelId.value)!=null?s:c,ref:i.panel};return Nn({ourProps:f,theirProps:A,slot:u,attrs:t,slots:n,features:oa.RenderStrategy|oa.Static,visible:o.value,name:"DisclosurePanel"})}}}),_6=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function b6(e){var t,n;let r=(t=e.innerText)!=null?t:"",i=e.cloneNode(!0);if(!(i instanceof HTMLElement))return r;let a=!1;for(let s of i.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))s.remove(),a=!0;let o=a?(n=i.innerText)!=null?n:"":r;return _6.test(o)&&(o=o.replace(_6,"")),o}function Wte(e){let t=e.getAttribute("aria-label");if(typeof t=="string")return t.trim();let n=e.getAttribute("aria-labelledby");if(n){let r=n.split(" ").map(i=>{let a=document.getElementById(i);if(a){let o=a.getAttribute("aria-label");return typeof o=="string"?o.trim():b6(a).trim()}return null}).filter(Boolean);if(r.length>0)return r.join(", ")}return b6(e).trim()}function w6(e){let t=l.ref(""),n=l.ref("");return()=>{let r=Ze(e);if(!r)return"";let i=r.innerText;if(t.value===i)return n.value;let a=Wte(r).trim().toLowerCase();return t.value=i,n.value=a,a}}function Xte(e,t){return e===t}var Jte=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Jte||{}),Zte=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(Zte||{}),$te=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))($te||{});function ene(e){requestAnimationFrame(()=>requestAnimationFrame(e))}let B6=Symbol("ListboxContext");function ym(e){let t=l.inject(B6,null);if(t===null){let n=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,ym),n}return t}let tne=l.defineComponent({name:"Listbox",emits:{"update:modelValue":e=>!0},props:{as:{type:[Object,String],default:"template"},disabled:{type:[Boolean],default:!1},by:{type:[String,Function],default:()=>Xte},horizontal:{type:[Boolean],default:!1},modelValue:{type:[Object,String,Number,Boolean],default:void 0},defaultValue:{type:[Object,String,Number,Boolean],default:void 0},form:{type:String,optional:!0},name:{type:String,optional:!0},multiple:{type:[Boolean],default:!1}},inheritAttrs:!1,setup(e,{slots:t,attrs:n,emit:r}){let i=l.ref(1),a=l.ref(null),o=l.ref(null),s=l.ref(null),u=l.ref([]),c=l.ref(""),A=l.ref(null),f=l.ref(1);function h(_=b=>b){let b=A.value!==null?u.value[A.value]:null,w=dm(_(u.value.slice()),B=>Ze(B.dataRef.domRef)),C=b?w.indexOf(b):null;return C===-1&&(C=null),{options:w,activeOptionIndex:C}}let d=l.computed(()=>e.multiple?1:0),[m,p]=xv(l.computed(()=>e.modelValue),_=>r("update:modelValue",_),l.computed(()=>e.defaultValue)),g=l.computed(()=>m.value===void 0?tr(d.value,{1:[],0:void 0}):m.value),v={listboxState:i,value:g,mode:d,compare(_,b){if(typeof e.by=="string"){let w=e.by;return(_==null?void 0:_[w])===(b==null?void 0:b[w])}return e.by(_,b)},orientation:l.computed(()=>e.horizontal?"horizontal":"vertical"),labelRef:a,buttonRef:o,optionsRef:s,disabled:l.computed(()=>e.disabled),options:u,searchQuery:c,activeOptionIndex:A,activationTrigger:f,closeListbox(){e.disabled||i.value!==1&&(i.value=1,A.value=null)},openListbox(){e.disabled||i.value!==0&&(i.value=0)},goToOption(_,b,w){if(e.disabled||i.value===1)return;let C=h(),B=kv(_===xn.Specific?{focus:xn.Specific,id:b}:{focus:_},{resolveItems:()=>C.options,resolveActiveIndex:()=>C.activeOptionIndex,resolveId:E=>E.id,resolveDisabled:E=>E.dataRef.disabled});c.value="",A.value=B,f.value=w??1,u.value=C.options},search(_){if(e.disabled||i.value===1)return;let b=c.value!==""?0:1;c.value+=_.toLowerCase();let w=(A.value!==null?u.value.slice(A.value+b).concat(u.value.slice(0,A.value+b)):u.value).find(B=>B.dataRef.textValue.startsWith(c.value)&&!B.dataRef.disabled),C=w?u.value.indexOf(w):-1;C===-1||C===A.value||(A.value=C,f.value=1)},clearSearch(){e.disabled||i.value!==1&&c.value!==""&&(c.value="")},registerOption(_,b){let w=h(C=>[...C,{id:_,dataRef:b}]);u.value=w.options,A.value=w.activeOptionIndex},unregisterOption(_){let b=h(w=>{let C=w.findIndex(B=>B.id===_);return C!==-1&&w.splice(C,1),w});u.value=b.options,A.value=b.activeOptionIndex,f.value=1},theirOnChange(_){e.disabled||p(_)},select(_){e.disabled||p(tr(d.value,{0:()=>_,1:()=>{let b=l.toRaw(v.value.value).slice(),w=l.toRaw(_),C=b.findIndex(B=>v.compare(w,l.toRaw(B)));return C===-1?b.push(w):b.splice(C,1),b}}))}};fm([o,s],(_,b)=>{var w;v.closeListbox(),Am(b,cm.Loose)||(_.preventDefault(),(w=Ze(o))==null||w.focus())},l.computed(()=>i.value===0)),l.provide(B6,v),oh(l.computed(()=>tr(i.value,{0:Wn.Open,1:Wn.Closed})));let y=l.computed(()=>{var _;return(_=Ze(o))==null?void 0:_.closest("form")});return l.onMounted(()=>{l.watch([y],()=>{if(!y.value||e.defaultValue===void 0)return;function _(){v.theirOnChange(e.defaultValue)}return y.value.addEventListener("reset",_),()=>{var b;(b=y.value)==null||b.removeEventListener("reset",_)}},{immediate:!0})}),()=>{let{name:_,modelValue:b,disabled:w,form:C,...B}=e,E={open:i.value===0,disabled:w,value:g.value};return l.h(l.Fragment,[..._!=null&&g.value!=null?Mv({[_]:g.value}).map(([N,P])=>l.h(Js,Sv({features:vs.Hidden,key:N,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:C,disabled:w,name:N,value:P}))):[],Nn({ourProps:{},theirProps:{...n,...aA(B,["defaultValue","onUpdate:modelValue","horizontal","multiple","by"])},slot:E,slots:t,attrs:n,name:"Listbox"})])}}}),nne=l.defineComponent({name:"ListboxLabel",props:{as:{type:[Object,String],default:"label"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n}){var r;let i=(r=e.id)!=null?r:`headlessui-listbox-label-${dr()}`,a=ym("ListboxLabel");function o(){var s;(s=Ze(a.buttonRef))==null||s.focus({preventScroll:!0})}return()=>{let s={open:a.listboxState.value===0,disabled:a.disabled.value},{...u}=e,c={id:i,ref:a.labelRef,onClick:o};return Nn({ourProps:c,theirProps:u,slot:s,attrs:t,slots:n,name:"ListboxLabel"})}}}),rne=l.defineComponent({name:"ListboxButton",props:{as:{type:[Object,String],default:"button"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n,expose:r}){var i;let a=(i=e.id)!=null?i:`headlessui-listbox-button-${dr()}`,o=ym("ListboxButton");r({el:o.buttonRef,$el:o.buttonRef});function s(f){switch(f.key){case Yt.Space:case Yt.Enter:case Yt.ArrowDown:f.preventDefault(),o.openListbox(),l.nextTick(()=>{var h;(h=Ze(o.optionsRef))==null||h.focus({preventScroll:!0}),o.value.value||o.goToOption(xn.First)});break;case Yt.ArrowUp:f.preventDefault(),o.openListbox(),l.nextTick(()=>{var h;(h=Ze(o.optionsRef))==null||h.focus({preventScroll:!0}),o.value.value||o.goToOption(xn.Last)});break}}function u(f){switch(f.key){case Yt.Space:f.preventDefault();break}}function c(f){o.disabled.value||(o.listboxState.value===0?(o.closeListbox(),l.nextTick(()=>{var h;return(h=Ze(o.buttonRef))==null?void 0:h.focus({preventScroll:!0})})):(f.preventDefault(),o.openListbox(),ene(()=>{var h;return(h=Ze(o.optionsRef))==null?void 0:h.focus({preventScroll:!0})})))}let A=ah(l.computed(()=>({as:e.as,type:t.type})),o.buttonRef);return()=>{var f,h;let d={open:o.listboxState.value===0,disabled:o.disabled.value,value:o.value.value},{...m}=e,p={ref:o.buttonRef,id:a,type:A.value,"aria-haspopup":"listbox","aria-controls":(f=Ze(o.optionsRef))==null?void 0:f.id,"aria-expanded":o.listboxState.value===0,"aria-labelledby":o.labelRef.value?[(h=Ze(o.labelRef))==null?void 0:h.id,a].join(" "):void 0,disabled:o.disabled.value===!0?!0:void 0,onKeydown:s,onKeyup:u,onClick:c};return Nn({ourProps:p,theirProps:m,slot:d,attrs:t,slots:n,name:"ListboxButton"})}}}),ine=l.defineComponent({name:"ListboxOptions",props:{as:{type:[Object,String],default:"ul"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},id:{type:String,default:null}},setup(e,{attrs:t,slots:n,expose:r}){var i;let a=(i=e.id)!=null?i:`headlessui-listbox-options-${dr()}`,o=ym("ListboxOptions"),s=l.ref(null);r({el:o.optionsRef,$el:o.optionsRef});function u(f){switch(s.value&&clearTimeout(s.value),f.key){case Yt.Space:if(o.searchQuery.value!=="")return f.preventDefault(),f.stopPropagation(),o.search(f.key);case Yt.Enter:if(f.preventDefault(),f.stopPropagation(),o.activeOptionIndex.value!==null){let h=o.options.value[o.activeOptionIndex.value];o.select(h.dataRef.value)}o.mode.value===0&&(o.closeListbox(),l.nextTick(()=>{var h;return(h=Ze(o.buttonRef))==null?void 0:h.focus({preventScroll:!0})}));break;case tr(o.orientation.value,{vertical:Yt.ArrowDown,horizontal:Yt.ArrowRight}):return f.preventDefault(),f.stopPropagation(),o.goToOption(xn.Next);case tr(o.orientation.value,{vertical:Yt.ArrowUp,horizontal:Yt.ArrowLeft}):return f.preventDefault(),f.stopPropagation(),o.goToOption(xn.Previous);case Yt.Home:case Yt.PageUp:return f.preventDefault(),f.stopPropagation(),o.goToOption(xn.First);case Yt.End:case Yt.PageDown:return f.preventDefault(),f.stopPropagation(),o.goToOption(xn.Last);case Yt.Escape:f.preventDefault(),f.stopPropagation(),o.closeListbox(),l.nextTick(()=>{var h;return(h=Ze(o.buttonRef))==null?void 0:h.focus({preventScroll:!0})});break;case Yt.Tab:f.preventDefault(),f.stopPropagation();break;default:f.key.length===1&&(o.search(f.key),s.value=setTimeout(()=>o.clearSearch(),350));break}}let c=ju(),A=l.computed(()=>c!==null?(c.value&Wn.Open)===Wn.Open:o.listboxState.value===0);return()=>{var f,h;let d={open:o.listboxState.value===0},{...m}=e,p={"aria-activedescendant":o.activeOptionIndex.value===null||(f=o.options.value[o.activeOptionIndex.value])==null?void 0:f.id,"aria-multiselectable":o.mode.value===1?!0:void 0,"aria-labelledby":(h=Ze(o.buttonRef))==null?void 0:h.id,"aria-orientation":o.orientation.value,id:a,onKeydown:u,role:"listbox",tabIndex:0,ref:o.optionsRef};return Nn({ourProps:p,theirProps:m,slot:d,attrs:t,slots:n,features:oa.RenderStrategy|oa.Static,visible:A.value,name:"ListboxOptions"})}}}),ane=l.defineComponent({name:"ListboxOption",props:{as:{type:[Object,String],default:"li"},value:{type:[Object,String,Number,Boolean]},disabled:{type:Boolean,default:!1},id:{type:String,default:null}},setup(e,{slots:t,attrs:n,expose:r}){var i;let a=(i=e.id)!=null?i:`headlessui-listbox-option-${dr()}`,o=ym("ListboxOption"),s=l.ref(null);r({el:s,$el:s});let u=l.computed(()=>o.activeOptionIndex.value!==null?o.options.value[o.activeOptionIndex.value].id===a:!1),c=l.computed(()=>tr(o.mode.value,{0:()=>o.compare(l.toRaw(o.value.value),l.toRaw(e.value)),1:()=>l.toRaw(o.value.value).some(_=>o.compare(l.toRaw(_),l.toRaw(e.value)))})),A=l.computed(()=>tr(o.mode.value,{1:()=>{var _;let b=l.toRaw(o.value.value);return((_=o.options.value.find(w=>b.some(C=>o.compare(l.toRaw(C),l.toRaw(w.dataRef.value)))))==null?void 0:_.id)===a},0:()=>c.value})),f=w6(s),h=l.computed(()=>({disabled:e.disabled,value:e.value,get textValue(){return f()},domRef:s}));l.onMounted(()=>o.registerOption(a,h)),l.onUnmounted(()=>o.unregisterOption(a)),l.onMounted(()=>{l.watch([o.listboxState,c],()=>{o.listboxState.value===0&&c.value&&tr(o.mode.value,{1:()=>{A.value&&o.goToOption(xn.Specific,a)},0:()=>{o.goToOption(xn.Specific,a)}})},{immediate:!0})}),l.watchEffect(()=>{o.listboxState.value===0&&u.value&&o.activationTrigger.value!==0&&l.nextTick(()=>{var _,b;return(b=(_=Ze(s))==null?void 0:_.scrollIntoView)==null?void 0:b.call(_,{block:"nearest"})})});function d(_){if(e.disabled)return _.preventDefault();o.select(e.value),o.mode.value===0&&(o.closeListbox(),l.nextTick(()=>{var b;return(b=Ze(o.buttonRef))==null?void 0:b.focus({preventScroll:!0})}))}function m(){if(e.disabled)return o.goToOption(xn.Nothing);o.goToOption(xn.Specific,a)}let p=dw();function g(_){p.update(_)}function v(_){p.wasMoved(_)&&(e.disabled||u.value||o.goToOption(xn.Specific,a,0))}function y(_){p.wasMoved(_)&&(e.disabled||u.value&&o.goToOption(xn.Nothing))}return()=>{let{disabled:_}=e,b={active:u.value,selected:c.value,disabled:_},{value:w,disabled:C,...B}=e,E={id:a,ref:s,role:"option",tabIndex:_===!0?void 0:-1,"aria-disabled":_===!0?!0:void 0,"aria-selected":c.value,disabled:void 0,onClick:d,onFocus:m,onPointerenter:g,onMouseenter:g,onPointermove:v,onMousemove:v,onPointerleave:y,onMouseleave:y};return Nn({ourProps:E,theirProps:B,slot:b,attrs:n,slots:t,name:"ListboxOption"})}}});var one=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(one||{}),sne=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(sne||{});function lne(e){requestAnimationFrame(()=>requestAnimationFrame(e))}let x6=Symbol("MenuContext");function Ov(e){let t=l.inject(x6,null);if(t===null){let n=new Error(`<${e} /> is missing a parent <Menu /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Ov),n}return t}let Ed=l.defineComponent({name:"Menu",props:{as:{type:[Object,String],default:"template"}},setup(e,{slots:t,attrs:n}){let r=l.ref(1),i=l.ref(null),a=l.ref(null),o=l.ref([]),s=l.ref(""),u=l.ref(null),c=l.ref(1);function A(h=d=>d){let d=u.value!==null?o.value[u.value]:null,m=dm(h(o.value.slice()),g=>Ze(g.dataRef.domRef)),p=d?m.indexOf(d):null;return p===-1&&(p=null),{items:m,activeItemIndex:p}}let f={menuState:r,buttonRef:i,itemsRef:a,items:o,searchQuery:s,activeItemIndex:u,activationTrigger:c,closeMenu:()=>{r.value=1,u.value=null},openMenu:()=>r.value=0,goToItem(h,d,m){let p=A(),g=kv(h===xn.Specific?{focus:xn.Specific,id:d}:{focus:h},{resolveItems:()=>p.items,resolveActiveIndex:()=>p.activeItemIndex,resolveId:v=>v.id,resolveDisabled:v=>v.dataRef.disabled});s.value="",u.value=g,c.value=m??1,o.value=p.items},search(h){let d=s.value!==""?0:1;s.value+=h.toLowerCase();let m=(u.value!==null?o.value.slice(u.value+d).concat(o.value.slice(0,u.value+d)):o.value).find(g=>g.dataRef.textValue.startsWith(s.value)&&!g.dataRef.disabled),p=m?o.value.indexOf(m):-1;p===-1||p===u.value||(u.value=p,c.value=1)},clearSearch(){s.value=""},registerItem(h,d){let m=A(p=>[...p,{id:h,dataRef:d}]);o.value=m.items,u.value=m.activeItemIndex,c.value=1},unregisterItem(h){let d=A(m=>{let p=m.findIndex(g=>g.id===h);return p!==-1&&m.splice(p,1),m});o.value=d.items,u.value=d.activeItemIndex,c.value=1}};return fm([i,a],(h,d)=>{var m;f.closeMenu(),Am(d,cm.Loose)||(h.preventDefault(),(m=Ze(i))==null||m.focus())},l.computed(()=>r.value===0)),l.provide(x6,f),oh(l.computed(()=>tr(r.value,{0:Wn.Open,1:Wn.Closed}))),()=>{let h={open:r.value===0,close:f.closeMenu};return Nn({ourProps:{},theirProps:e,slot:h,slots:t,attrs:n,name:"Menu"})}}}),Ld=l.defineComponent({name:"MenuButton",props:{disabled:{type:Boolean,default:!1},as:{type:[Object,String],default:"button"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n,expose:r}){var i;let a=(i=e.id)!=null?i:`headlessui-menu-button-${dr()}`,o=Ov("MenuButton");r({el:o.buttonRef,$el:o.buttonRef});function s(f){switch(f.key){case Yt.Space:case Yt.Enter:case Yt.ArrowDown:f.preventDefault(),f.stopPropagation(),o.openMenu(),l.nextTick(()=>{var h;(h=Ze(o.itemsRef))==null||h.focus({preventScroll:!0}),o.goToItem(xn.First)});break;case Yt.ArrowUp:f.preventDefault(),f.stopPropagation(),o.openMenu(),l.nextTick(()=>{var h;(h=Ze(o.itemsRef))==null||h.focus({preventScroll:!0}),o.goToItem(xn.Last)});break}}function u(f){switch(f.key){case Yt.Space:f.preventDefault();break}}function c(f){e.disabled||(o.menuState.value===0?(o.closeMenu(),l.nextTick(()=>{var h;return(h=Ze(o.buttonRef))==null?void 0:h.focus({preventScroll:!0})})):(f.preventDefault(),o.openMenu(),lne(()=>{var h;return(h=Ze(o.itemsRef))==null?void 0:h.focus({preventScroll:!0})})))}let A=ah(l.computed(()=>({as:e.as,type:t.type})),o.buttonRef);return()=>{var f;let h={open:o.menuState.value===0},{...d}=e,m={ref:o.buttonRef,id:a,type:A.value,"aria-haspopup":"menu","aria-controls":(f=Ze(o.itemsRef))==null?void 0:f.id,"aria-expanded":o.menuState.value===0,onKeydown:s,onKeyup:u,onClick:c};return Nn({ourProps:m,theirProps:d,slot:h,attrs:t,slots:n,name:"MenuButton"})}}}),Td=l.defineComponent({name:"MenuItems",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},id:{type:String,default:null}},setup(e,{attrs:t,slots:n,expose:r}){var i;let a=(i=e.id)!=null?i:`headlessui-menu-items-${dr()}`,o=Ov("MenuItems"),s=l.ref(null);r({el:o.itemsRef,$el:o.itemsRef}),fw({container:l.computed(()=>Ze(o.itemsRef)),enabled:l.computed(()=>o.menuState.value===0),accept(h){return h.getAttribute("role")==="menuitem"?NodeFilter.FILTER_REJECT:h.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(h){h.setAttribute("role","none")}});function u(h){var d;switch(s.value&&clearTimeout(s.value),h.key){case Yt.Space:if(o.searchQuery.value!=="")return h.preventDefault(),h.stopPropagation(),o.search(h.key);case Yt.Enter:if(h.preventDefault(),h.stopPropagation(),o.activeItemIndex.value!==null){let m=o.items.value[o.activeItemIndex.value];(d=Ze(m.dataRef.domRef))==null||d.click()}o.closeMenu(),VL(Ze(o.buttonRef));break;case Yt.ArrowDown:return h.preventDefault(),h.stopPropagation(),o.goToItem(xn.Next);case Yt.ArrowUp:return h.preventDefault(),h.stopPropagation(),o.goToItem(xn.Previous);case Yt.Home:case Yt.PageUp:return h.preventDefault(),h.stopPropagation(),o.goToItem(xn.First);case Yt.End:case Yt.PageDown:return h.preventDefault(),h.stopPropagation(),o.goToItem(xn.Last);case Yt.Escape:h.preventDefault(),h.stopPropagation(),o.closeMenu(),l.nextTick(()=>{var m;return(m=Ze(o.buttonRef))==null?void 0:m.focus({preventScroll:!0})});break;case Yt.Tab:h.preventDefault(),h.stopPropagation(),o.closeMenu(),l.nextTick(()=>hte(Ze(o.buttonRef),h.shiftKey?li.Previous:li.Next));break;default:h.key.length===1&&(o.search(h.key),s.value=setTimeout(()=>o.clearSearch(),350));break}}function c(h){switch(h.key){case Yt.Space:h.preventDefault();break}}let A=ju(),f=l.computed(()=>A!==null?(A.value&Wn.Open)===Wn.Open:o.menuState.value===0);return()=>{var h,d;let m={open:o.menuState.value===0},{...p}=e,g={"aria-activedescendant":o.activeItemIndex.value===null||(h=o.items.value[o.activeItemIndex.value])==null?void 0:h.id,"aria-labelledby":(d=Ze(o.buttonRef))==null?void 0:d.id,id:a,onKeydown:u,onKeyup:c,role:"menu",tabIndex:0,ref:o.itemsRef};return Nn({ourProps:g,theirProps:p,slot:m,attrs:t,slots:n,features:oa.RenderStrategy|oa.Static,visible:f.value,name:"MenuItems"})}}}),eu=l.defineComponent({name:"MenuItem",inheritAttrs:!1,props:{as:{type:[Object,String],default:"template"},disabled:{type:Boolean,default:!1},id:{type:String,default:null}},setup(e,{slots:t,attrs:n,expose:r}){var i;let a=(i=e.id)!=null?i:`headlessui-menu-item-${dr()}`,o=Ov("MenuItem"),s=l.ref(null);r({el:s,$el:s});let u=l.computed(()=>o.activeItemIndex.value!==null?o.items.value[o.activeItemIndex.value].id===a:!1),c=w6(s),A=l.computed(()=>({disabled:e.disabled,get textValue(){return c()},domRef:s}));l.onMounted(()=>o.registerItem(a,A)),l.onUnmounted(()=>o.unregisterItem(a)),l.watchEffect(()=>{o.menuState.value===0&&u.value&&o.activationTrigger.value!==0&&l.nextTick(()=>{var v,y;return(y=(v=Ze(s))==null?void 0:v.scrollIntoView)==null?void 0:y.call(v,{block:"nearest"})})});function f(v){if(e.disabled)return v.preventDefault();o.closeMenu(),VL(Ze(o.buttonRef))}function h(){if(e.disabled)return o.goToItem(xn.Nothing);o.goToItem(xn.Specific,a)}let d=dw();function m(v){d.update(v)}function p(v){d.wasMoved(v)&&(e.disabled||u.value||o.goToItem(xn.Specific,a,0))}function g(v){d.wasMoved(v)&&(e.disabled||u.value&&o.goToItem(xn.Nothing))}return()=>{let{disabled:v,...y}=e,_={active:u.value,disabled:v,close:o.closeMenu};return Nn({ourProps:{id:a,ref:s,role:"menuitem",tabIndex:v===!0?void 0:-1,"aria-disabled":v===!0?!0:void 0,onClick:f,onFocus:h,onPointerenter:m,onMouseenter:m,onPointermove:p,onMousemove:p,onPointerleave:g,onMouseleave:g},theirProps:{...n,...y},slot:_,attrs:n,slots:t,name:"MenuItem"})}}});var une=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(une||{});let C6=Symbol("PopoverContext");function Dv(e){let t=l.inject(C6,null);if(t===null){let n=new Error(`<${e} /> is missing a parent <${Cw.name} /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Dv),n}return t}let S6=Symbol("PopoverGroupContext");function k6(){return l.inject(S6,null)}let M6=Symbol("PopoverPanelContext");function cne(){return l.inject(M6,null)}let Cw=l.defineComponent({name:"Popover",inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"}},setup(e,{slots:t,attrs:n,expose:r}){var i;let a=l.ref(null);r({el:a,$el:a});let o=l.ref(1),s=l.ref(null),u=l.ref(null),c=l.ref(null),A=l.ref(null),f=l.computed(()=>Da(a)),h=l.computed(()=>{var w,C;if(!Ze(s)||!Ze(A))return!1;for(let D of document.querySelectorAll("body > *"))if(Number(D==null?void 0:D.contains(Ze(s)))^Number(D==null?void 0:D.contains(Ze(A))))return!0;let B=um(),E=B.indexOf(Ze(s)),N=(E+B.length-1)%B.length,P=(E+1)%B.length,k=B[N],F=B[P];return!((w=Ze(A))!=null&&w.contains(k))&&!((C=Ze(A))!=null&&C.contains(F))}),d={popoverState:o,buttonId:l.ref(null),panelId:l.ref(null),panel:A,button:s,isPortalled:h,beforePanelSentinel:u,afterPanelSentinel:c,togglePopover(){o.value=tr(o.value,{0:1,1:0})},closePopover(){o.value!==1&&(o.value=1)},close(w){d.closePopover();let C=w?w instanceof HTMLElement?w:w.value instanceof HTMLElement?Ze(w):Ze(d.button):Ze(d.button);C==null||C.focus()}};l.provide(C6,d),oh(l.computed(()=>tr(o.value,{0:Wn.Open,1:Wn.Closed})));let m={buttonId:d.buttonId,panelId:d.panelId,close(){d.closePopover()}},p=k6(),g=p==null?void 0:p.registerPopover,[v,y]=p6(),_=u6({mainTreeNodeRef:p==null?void 0:p.mainTreeNodeRef,portals:v,defaultContainers:[s,A]});function b(){var w,C,B,E;return(E=p==null?void 0:p.isFocusWithinPopoverGroup())!=null?E:((w=f.value)==null?void 0:w.activeElement)&&(((C=Ze(s))==null?void 0:C.contains(f.value.activeElement))||((B=Ze(A))==null?void 0:B.contains(f.value.activeElement)))}return l.watchEffect(()=>g==null?void 0:g(m)),pw((i=f.value)==null?void 0:i.defaultView,"focus",w=>{var C,B;w.target!==window&&w.target instanceof HTMLElement&&o.value===0&&(b()||s&&A&&(_.contains(w.target)||(C=Ze(d.beforePanelSentinel))!=null&&C.contains(w.target)||(B=Ze(d.afterPanelSentinel))!=null&&B.contains(w.target)||d.closePopover()))},!0),fm(_.resolveContainers,(w,C)=>{var B;d.closePopover(),Am(C,cm.Loose)||(w.preventDefault(),(B=Ze(s))==null||B.focus())},l.computed(()=>o.value===0)),()=>{let w={open:o.value===0,close:d.close};return l.h(l.Fragment,[l.h(y,{},()=>Nn({theirProps:{...e,...n},ourProps:{ref:a},slot:w,slots:t,attrs:n,name:"Popover"})),l.h(_.MainTreeNode)])}}}),E6=l.defineComponent({name:"PopoverButton",props:{as:{type:[Object,String],default:"button"},disabled:{type:[Boolean],default:!1},id:{type:String,default:null}},inheritAttrs:!1,setup(e,{attrs:t,slots:n,expose:r}){var i;let a=(i=e.id)!=null?i:`headlessui-popover-button-${dr()}`,o=Dv("PopoverButton"),s=l.computed(()=>Da(o.button));r({el:o.button,$el:o.button}),l.onMounted(()=>{o.buttonId.value=a}),l.onUnmounted(()=>{o.buttonId.value=null});let u=k6(),c=u==null?void 0:u.closeOthers,A=cne(),f=l.computed(()=>A===null?!1:A.value===o.panelId.value),h=l.ref(null),d=`headlessui-focus-sentinel-${dr()}`;f.value||l.watchEffect(()=>{o.button.value=Ze(h)});let m=ah(l.computed(()=>({as:e.as,type:t.type})),h);function p(w){var C,B,E,N,P;if(f.value){if(o.popoverState.value===1)return;switch(w.key){case Yt.Space:case Yt.Enter:w.preventDefault(),(B=(C=w.target).click)==null||B.call(C),o.closePopover(),(E=Ze(o.button))==null||E.focus();break}}else switch(w.key){case Yt.Space:case Yt.Enter:w.preventDefault(),w.stopPropagation(),o.popoverState.value===1&&(c==null||c(o.buttonId.value)),o.togglePopover();break;case Yt.Escape:if(o.popoverState.value!==0)return c==null?void 0:c(o.buttonId.value);if(!Ze(o.button)||(N=s.value)!=null&&N.activeElement&&!((P=Ze(o.button))!=null&&P.contains(s.value.activeElement)))return;w.preventDefault(),w.stopPropagation(),o.closePopover();break}}function g(w){f.value||w.key===Yt.Space&&w.preventDefault()}function v(w){var C,B;e.disabled||(f.value?(o.closePopover(),(C=Ze(o.button))==null||C.focus()):(w.preventDefault(),w.stopPropagation(),o.popoverState.value===1&&(c==null||c(o.buttonId.value)),o.togglePopover(),(B=Ze(o.button))==null||B.focus()))}function y(w){w.preventDefault(),w.stopPropagation()}let _=mw();function b(){let w=Ze(o.panel);if(!w)return;function C(){tr(_.value,{[qo.Forwards]:()=>So(w,li.First),[qo.Backwards]:()=>So(w,li.Last)})===Sd.Error&&So(um().filter(B=>B.dataset.headlessuiFocusGuard!=="true"),tr(_.value,{[qo.Forwards]:li.Next,[qo.Backwards]:li.Previous}),{relativeTo:Ze(o.button)})}C()}return()=>{let w=o.popoverState.value===0,C={open:w},{...B}=e,E=f.value?{ref:h,type:m.value,onKeydown:p,onClick:v}:{ref:h,id:a,type:m.value,"aria-expanded":o.popoverState.value===0,"aria-controls":Ze(o.panel)?o.panelId.value:void 0,disabled:e.disabled?!0:void 0,onKeydown:p,onKeyup:g,onClick:v,onMousedown:y};return l.h(l.Fragment,[Nn({ourProps:E,theirProps:{...t,...B},slot:C,attrs:t,slots:n,name:"PopoverButton"}),w&&!f.value&&o.isPortalled.value&&l.h(Js,{id:d,features:vs.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:b})])}}});l.defineComponent({name:"PopoverOverlay",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0}},setup(e,{attrs:t,slots:n}){let r=Dv("PopoverOverlay"),i=`headlessui-popover-overlay-${dr()}`,a=ju(),o=l.computed(()=>a!==null?(a.value&Wn.Open)===Wn.Open:r.popoverState.value===0);function s(){r.closePopover()}return()=>{let u={open:r.popoverState.value===0};return Nn({ourProps:{id:i,"aria-hidden":!0,onClick:s},theirProps:e,slot:u,attrs:t,slots:n,features:oa.RenderStrategy|oa.Static,visible:o.value,name:"PopoverOverlay"})}}});let L6=l.defineComponent({name:"PopoverPanel",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},focus:{type:Boolean,default:!1},id:{type:String,default:null}},inheritAttrs:!1,setup(e,{attrs:t,slots:n,expose:r}){var i;let a=(i=e.id)!=null?i:`headlessui-popover-panel-${dr()}`,{focus:o}=e,s=Dv("PopoverPanel"),u=l.computed(()=>Da(s.panel)),c=`headlessui-focus-sentinel-before-${dr()}`,A=`headlessui-focus-sentinel-after-${dr()}`;r({el:s.panel,$el:s.panel}),l.onMounted(()=>{s.panelId.value=a}),l.onUnmounted(()=>{s.panelId.value=null}),l.provide(M6,s.panelId),l.watchEffect(()=>{var y,_;if(!o||s.popoverState.value!==0||!s.panel)return;let b=(y=u.value)==null?void 0:y.activeElement;(_=Ze(s.panel))!=null&&_.contains(b)||So(Ze(s.panel),li.First)});let f=ju(),h=l.computed(()=>f!==null?(f.value&Wn.Open)===Wn.Open:s.popoverState.value===0);function d(y){var _,b;switch(y.key){case Yt.Escape:if(s.popoverState.value!==0||!Ze(s.panel)||u.value&&!((_=Ze(s.panel))!=null&&_.contains(u.value.activeElement)))return;y.preventDefault(),y.stopPropagation(),s.closePopover(),(b=Ze(s.button))==null||b.focus();break}}function m(y){var _,b,w,C,B;let E=y.relatedTarget;E&&Ze(s.panel)&&((_=Ze(s.panel))!=null&&_.contains(E)||(s.closePopover(),((w=(b=Ze(s.beforePanelSentinel))==null?void 0:b.contains)!=null&&w.call(b,E)||(B=(C=Ze(s.afterPanelSentinel))==null?void 0:C.contains)!=null&&B.call(C,E))&&E.focus({preventScroll:!0})))}let p=mw();function g(){let y=Ze(s.panel);if(!y)return;function _(){tr(p.value,{[qo.Forwards]:()=>{var b;So(y,li.First)===Sd.Error&&((b=Ze(s.afterPanelSentinel))==null||b.focus())},[qo.Backwards]:()=>{var b;(b=Ze(s.button))==null||b.focus({preventScroll:!0})}})}_()}function v(){let y=Ze(s.panel);if(!y)return;function _(){tr(p.value,{[qo.Forwards]:()=>{let b=Ze(s.button),w=Ze(s.panel);if(!b)return;let C=um(),B=C.indexOf(b),E=C.slice(0,B+1),N=[...C.slice(B+1),...E];for(let P of N.slice())if(P.dataset.headlessuiFocusGuard==="true"||w!=null&&w.contains(P)){let k=N.indexOf(P);k!==-1&&N.splice(k,1)}So(N,li.First,{sorted:!1})},[qo.Backwards]:()=>{var b;So(y,li.Previous)===Sd.Error&&((b=Ze(s.button))==null||b.focus())}})}_()}return()=>{let y={open:s.popoverState.value===0,close:s.close},{focus:_,...b}=e,w={ref:s.panel,id:a,onKeydown:d,onFocusout:o&&s.popoverState.value===0?m:void 0,tabIndex:-1};return Nn({ourProps:w,theirProps:{...t,...b},attrs:t,slot:y,slots:{...n,default:(...C)=>{var B;return[l.h(l.Fragment,[h.value&&s.isPortalled.value&&l.h(Js,{id:c,ref:s.beforePanelSentinel,features:vs.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:g}),(B=n.default)==null?void 0:B.call(n,...C),h.value&&s.isPortalled.value&&l.h(Js,{id:A,ref:s.afterPanelSentinel,features:vs.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:v})])]}},features:oa.RenderStrategy|oa.Static,visible:h.value,name:"PopoverPanel"})}}});l.defineComponent({name:"PopoverGroup",inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"}},setup(e,{attrs:t,slots:n,expose:r}){let i=l.ref(null),a=l.shallowRef([]),o=l.computed(()=>Da(i)),s=Ite();r({el:i,$el:i});function u(h){let d=a.value.indexOf(h);d!==-1&&a.value.splice(d,1)}function c(h){return a.value.push(h),()=>{u(h)}}function A(){var h;let d=o.value;if(!d)return!1;let m=d.activeElement;return(h=Ze(i))!=null&&h.contains(m)?!0:a.value.some(p=>{var g,v;return((g=d.getElementById(p.buttonId.value))==null?void 0:g.contains(m))||((v=d.getElementById(p.panelId.value))==null?void 0:v.contains(m))})}function f(h){for(let d of a.value)d.buttonId.value!==h&&d.close()}return l.provide(S6,{registerPopover:c,unregisterPopover:u,isFocusWithinPopoverGroup:A,closeOthers:f,mainTreeNodeRef:s.mainTreeNodeRef}),()=>l.h(l.Fragment,[Nn({ourProps:{ref:i},theirProps:{...e,...t},slot:{},attrs:t,slots:n,name:"PopoverGroup"}),l.h(s.MainTreeNode)])}});let T6=Symbol("LabelContext");function N6(){let e=l.inject(T6,null);if(e===null){let t=new Error("You used a <Label /> component, but it is not inside a parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,N6),t}return e}function Sw({slot:e={},name:t="Label",props:n={}}={}){let r=l.ref([]);function i(a){return r.value.push(a),()=>{let o=r.value.indexOf(a);o!==-1&&r.value.splice(o,1)}}return l.provide(T6,{register:i,slot:e,name:t,props:n}),l.computed(()=>r.value.length>0?r.value.join(" "):void 0)}let Ane=l.defineComponent({name:"Label",props:{as:{type:[Object,String],default:"label"},passive:{type:[Boolean],default:!1},id:{type:String,default:null}},setup(e,{slots:t,attrs:n}){var r;let i=(r=e.id)!=null?r:`headlessui-label-${dr()}`,a=N6();return l.onMounted(()=>l.onUnmounted(a.register(i))),()=>{let{name:o="Label",slot:s={},props:u={}}=a,{passive:c,...A}=e,f={...Object.entries(u).reduce((h,[d,m])=>Object.assign(h,{[d]:l.unref(m)}),{}),id:i};return c&&(delete f.onClick,delete f.htmlFor,delete A.onClick),Nn({ourProps:f,theirProps:A,slot:s,attrs:n,slots:t,name:o})}}});function dne(e,t){return e===t}let F6=Symbol("RadioGroupContext");function O6(e){let t=l.inject(F6,null);if(t===null){let n=new Error(`<${e} /> is missing a parent <RadioGroup /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,O6),n}return t}let fne=l.defineComponent({name:"RadioGroup",emits:{"update:modelValue":e=>!0},props:{as:{type:[Object,String],default:"div"},disabled:{type:[Boolean],default:!1},by:{type:[String,Function],default:()=>dne},modelValue:{type:[Object,String,Number,Boolean],default:void 0},defaultValue:{type:[Object,String,Number,Boolean],default:void 0},form:{type:String,optional:!0},name:{type:String,optional:!0},id:{type:String,default:null}},inheritAttrs:!1,setup(e,{emit:t,attrs:n,slots:r,expose:i}){var a;let o=(a=e.id)!=null?a:`headlessui-radiogroup-${dr()}`,s=l.ref(null),u=l.ref([]),c=Sw({name:"RadioGroupLabel"}),A=Tv({name:"RadioGroupDescription"});i({el:s,$el:s});let[f,h]=xv(l.computed(()=>e.modelValue),g=>t("update:modelValue",g),l.computed(()=>e.defaultValue)),d={options:u,value:f,disabled:l.computed(()=>e.disabled),firstOption:l.computed(()=>u.value.find(g=>!g.propsRef.disabled)),containsCheckedOption:l.computed(()=>u.value.some(g=>d.compare(l.toRaw(g.propsRef.value),l.toRaw(e.modelValue)))),compare(g,v){if(typeof e.by=="string"){let y=e.by;return(g==null?void 0:g[y])===(v==null?void 0:v[y])}return e.by(g,v)},change(g){var v;if(e.disabled||d.compare(l.toRaw(f.value),l.toRaw(g)))return!1;let y=(v=u.value.find(_=>d.compare(l.toRaw(_.propsRef.value),l.toRaw(g))))==null?void 0:v.propsRef;return y!=null&&y.disabled?!1:(h(g),!0)},registerOption(g){u.value.push(g),u.value=dm(u.value,v=>v.element)},unregisterOption(g){let v=u.value.findIndex(y=>y.id===g);v!==-1&&u.value.splice(v,1)}};l.provide(F6,d),fw({container:l.computed(()=>Ze(s)),accept(g){return g.getAttribute("role")==="radio"?NodeFilter.FILTER_REJECT:g.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(g){g.setAttribute("role","none")}});function m(g){if(!s.value||!s.value.contains(g.target))return;let v=u.value.filter(y=>y.propsRef.disabled===!1).map(y=>y.element);switch(g.key){case Yt.Enter:n6(g.currentTarget);break;case Yt.ArrowLeft:case Yt.ArrowUp:if(g.preventDefault(),g.stopPropagation(),So(v,li.Previous|li.WrapAround)===Sd.Success){let y=u.value.find(_=>{var b;return _.element===((b=Da(s))==null?void 0:b.activeElement)});y&&d.change(y.propsRef.value)}break;case Yt.ArrowRight:case Yt.ArrowDown:if(g.preventDefault(),g.stopPropagation(),So(v,li.Next|li.WrapAround)===Sd.Success){let y=u.value.find(_=>{var b;return _.element===((b=Da(_.element))==null?void 0:b.activeElement)});y&&d.change(y.propsRef.value)}break;case Yt.Space:{g.preventDefault(),g.stopPropagation();let y=u.value.find(_=>{var b;return _.element===((b=Da(_.element))==null?void 0:b.activeElement)});y&&d.change(y.propsRef.value)}break}}let p=l.computed(()=>{var g;return(g=Ze(s))==null?void 0:g.closest("form")});return l.onMounted(()=>{l.watch([p],()=>{if(!p.value||e.defaultValue===void 0)return;function g(){d.change(e.defaultValue)}return p.value.addEventListener("reset",g),()=>{var v;(v=p.value)==null||v.removeEventListener("reset",g)}},{immediate:!0})}),()=>{let{disabled:g,name:v,form:y,..._}=e,b={ref:s,id:o,role:"radiogroup","aria-labelledby":c.value,"aria-describedby":A.value,onKeydown:m};return l.h(l.Fragment,[...v!=null&&f.value!=null?Mv({[v]:f.value}).map(([w,C])=>l.h(Js,Sv({features:vs.Hidden,key:w,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:y,disabled:g,name:w,value:C}))):[],Nn({ourProps:b,theirProps:{...n,...aA(_,["modelValue","defaultValue","by"])},slot:{},attrs:n,slots:r,name:"RadioGroup"})])}}});var hne=(e=>(e[e.Empty=1]="Empty",e[e.Active=2]="Active",e))(hne||{});let pne=l.defineComponent({name:"RadioGroupOption",props:{as:{type:[Object,String],default:"div"},value:{type:[Object,String,Number,Boolean]},disabled:{type:Boolean,default:!1},id:{type:String,default:null}},setup(e,{attrs:t,slots:n,expose:r}){var i;let a=(i=e.id)!=null?i:`headlessui-radiogroup-option-${dr()}`,o=O6("RadioGroupOption"),s=Sw({name:"RadioGroupLabel"}),u=Tv({name:"RadioGroupDescription"}),c=l.ref(null),A=l.computed(()=>({value:e.value,disabled:e.disabled})),f=l.ref(1);r({el:c,$el:c});let h=l.computed(()=>Ze(c));l.onMounted(()=>o.registerOption({id:a,element:h,propsRef:A})),l.onUnmounted(()=>o.unregisterOption(a));let d=l.computed(()=>{var b;return((b=o.firstOption.value)==null?void 0:b.id)===a}),m=l.computed(()=>o.disabled.value||e.disabled),p=l.computed(()=>o.compare(l.toRaw(o.value.value),l.toRaw(e.value))),g=l.computed(()=>m.value?-1:p.value||!o.containsCheckedOption.value&&d.value?0:-1);function v(){var b;o.change(e.value)&&(f.value|=2,(b=Ze(c))==null||b.focus())}function y(){f.value|=2}function _(){f.value&=-3}return()=>{let{value:b,disabled:w,...C}=e,B={checked:p.value,disabled:m.value,active:!!(f.value&2)},E={id:a,ref:c,role:"radio","aria-checked":p.value?"true":"false","aria-labelledby":s.value,"aria-describedby":u.value,"aria-disabled":m.value?!0:void 0,tabIndex:g.value,onClick:m.value?void 0:v,onFocus:m.value?void 0:y,onBlur:m.value?void 0:_};return Nn({ourProps:E,theirProps:C,slot:B,attrs:t,slots:n,name:"RadioGroupOption"})}}}),mne=Ane,D6=Symbol("GroupContext");l.defineComponent({name:"SwitchGroup",props:{as:{type:[Object,String],default:"template"}},setup(e,{slots:t,attrs:n}){let r=l.ref(null),i=Sw({name:"SwitchLabel",props:{htmlFor:l.computed(()=>{var o;return(o=r.value)==null?void 0:o.id}),onClick(o){r.value&&(o.currentTarget.tagName==="LABEL"&&o.preventDefault(),r.value.click(),r.value.focus({preventScroll:!0}))}}}),a=Tv({name:"SwitchDescription"});return l.provide(D6,{switchRef:r,labelledby:i,describedby:a}),()=>Nn({theirProps:e,ourProps:{},slot:{},slots:t,attrs:n,name:"SwitchGroup"})}});let gne=l.defineComponent({name:"Switch",emits:{"update:modelValue":e=>!0},props:{as:{type:[Object,String],default:"button"},modelValue:{type:Boolean,default:void 0},defaultChecked:{type:Boolean,optional:!0},form:{type:String,optional:!0},name:{type:String,optional:!0},value:{type:String,optional:!0},id:{type:String,default:null},disabled:{type:Boolean,default:!1},tabIndex:{type:Number,default:0}},inheritAttrs:!1,setup(e,{emit:t,attrs:n,slots:r,expose:i}){var a;let o=(a=e.id)!=null?a:`headlessui-switch-${dr()}`,s=l.inject(D6,null),[u,c]=xv(l.computed(()=>e.modelValue),y=>t("update:modelValue",y),l.computed(()=>e.defaultChecked));function A(){c(!u.value)}let f=l.ref(null),h=s===null?f:s.switchRef,d=ah(l.computed(()=>({as:e.as,type:n.type})),h);i({el:h,$el:h});function m(y){y.preventDefault(),A()}function p(y){y.key===Yt.Space?(y.preventDefault(),A()):y.key===Yt.Enter&&n6(y.currentTarget)}function g(y){y.preventDefault()}let v=l.computed(()=>{var y,_;return(_=(y=Ze(h))==null?void 0:y.closest)==null?void 0:_.call(y,"form")});return l.onMounted(()=>{l.watch([v],()=>{if(!v.value||e.defaultChecked===void 0)return;function y(){c(e.defaultChecked)}return v.value.addEventListener("reset",y),()=>{var _;(_=v.value)==null||_.removeEventListener("reset",y)}},{immediate:!0})}),()=>{let{name:y,value:_,form:b,tabIndex:w,...C}=e,B={checked:u.value},E={id:o,ref:h,role:"switch",type:d.value,tabIndex:w===-1?0:w,"aria-checked":u.value,"aria-labelledby":s==null?void 0:s.labelledby.value,"aria-describedby":s==null?void 0:s.describedby.value,onClick:m,onKeyup:p,onKeypress:g};return l.h(l.Fragment,[y!=null&&u.value!=null?l.h(Js,Sv({features:vs.Hidden,as:"input",type:"checkbox",hidden:!0,readOnly:!0,checked:u.value,form:b,disabled:C.disabled,name:y,value:_})):null,Nn({ourProps:E,theirProps:{...n,...aA(C,["modelValue","defaultChecked"])},slot:B,attrs:n,slots:r,name:"Switch"})])}}});function vne(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}function kw(e,...t){e&&t.length>0&&e.classList.add(...t)}function Iv(e,...t){e&&t.length>0&&e.classList.remove(...t)}var Mw=(e=>(e.Finished="finished",e.Cancelled="cancelled",e))(Mw||{});function yne(e,t){let n=nA();if(!e)return n.dispose;let{transitionDuration:r,transitionDelay:i}=getComputedStyle(e),[a,o]=[r,i].map(s=>{let[u=0]=s.split(",").filter(Boolean).map(c=>c.includes("ms")?parseFloat(c):parseFloat(c)*1e3).sort((c,A)=>A-c);return u});return a!==0?n.setTimeout(()=>t("finished"),a+o):t("finished"),n.add(()=>t("cancelled")),n.dispose}function I6(e,t,n,r,i,a){let o=nA(),s=a!==void 0?vne(a):()=>{};return Iv(e,...i),kw(e,...t,...n),o.nextFrame(()=>{Iv(e,...n),kw(e,...r),o.add(yne(e,u=>(Iv(e,...r,...t),kw(e,...i),s(u))))}),o.add(()=>Iv(e,...t,...n,...r,...i)),o.add(()=>s("cancelled")),o.dispose}function Nd(e=""){return e.split(/\s+/).filter(t=>t.length>1)}let Ew=Symbol("TransitionContext");var _ne=(e=>(e.Visible="visible",e.Hidden="hidden",e))(_ne||{});function bne(){return l.inject(Ew,null)!==null}function wne(){let e=l.inject(Ew,null);if(e===null)throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");return e}function Bne(){let e=l.inject(Lw,null);if(e===null)throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");return e}let Lw=Symbol("NestingContext");function Uv(e){return"children"in e?Uv(e.children):e.value.filter(({state:t})=>t==="visible").length>0}function U6(e){let t=l.ref([]),n=l.ref(!1);l.onMounted(()=>n.value=!0),l.onUnmounted(()=>n.value=!1);function r(a,o=iA.Hidden){let s=t.value.findIndex(({id:u})=>u===a);s!==-1&&(tr(o,{[iA.Unmount](){t.value.splice(s,1)},[iA.Hidden](){t.value[s].state="hidden"}}),!Uv(t)&&n.value&&(e==null||e()))}function i(a){let o=t.value.find(({id:s})=>s===a);return o?o.state!=="visible"&&(o.state="visible"):t.value.push({id:a,state:"visible"}),()=>r(a,iA.Unmount)}return{children:t,register:i,unregister:r}}let P6=oa.RenderStrategy,Fd=l.defineComponent({props:{as:{type:[Object,String],default:"div"},show:{type:[Boolean],default:null},unmount:{type:[Boolean],default:!0},appear:{type:[Boolean],default:!1},enter:{type:[String],default:""},enterFrom:{type:[String],default:""},enterTo:{type:[String],default:""},entered:{type:[String],default:""},leave:{type:[String],default:""},leaveFrom:{type:[String],default:""},leaveTo:{type:[String],default:""}},emits:{beforeEnter:()=>!0,afterEnter:()=>!0,beforeLeave:()=>!0,afterLeave:()=>!0},setup(e,{emit:t,attrs:n,slots:r,expose:i}){let a=l.ref(0);function o(){a.value|=Wn.Opening,t("beforeEnter")}function s(){a.value&=~Wn.Opening,t("afterEnter")}function u(){a.value|=Wn.Closing,t("beforeLeave")}function c(){a.value&=~Wn.Closing,t("afterLeave")}if(!bne()&&gte())return()=>l.h(oA,{...e,onBeforeEnter:o,onAfterEnter:s,onBeforeLeave:u,onAfterLeave:c},r);let A=l.ref(null),f=l.computed(()=>e.unmount?iA.Unmount:iA.Hidden);i({el:A,$el:A});let{show:h,appear:d}=wne(),{register:m,unregister:p}=Bne(),g=l.ref(h.value?"visible":"hidden"),v={value:!0},y=dr(),_={value:!1},b=U6(()=>{!_.value&&g.value!=="hidden"&&(g.value="hidden",p(y),c())});l.onMounted(()=>{let D=m(y);l.onUnmounted(D)}),l.watchEffect(()=>{if(f.value===iA.Hidden&&y){if(h.value&&g.value!=="visible"){g.value="visible";return}tr(g.value,{hidden:()=>p(y),visible:()=>m(y)})}});let w=Nd(e.enter),C=Nd(e.enterFrom),B=Nd(e.enterTo),E=Nd(e.entered),N=Nd(e.leave),P=Nd(e.leaveFrom),k=Nd(e.leaveTo);l.onMounted(()=>{l.watchEffect(()=>{if(g.value==="visible"){let D=Ze(A);if(D instanceof Comment&&D.data==="")throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}})});function F(D){let L=v.value&&!d.value,H=Ze(A);!H||!(H instanceof HTMLElement)||L||(_.value=!0,h.value&&o(),h.value||u(),D(h.value?I6(H,w,C,B,E,K=>{_.value=!1,K===Mw.Finished&&s()}):I6(H,N,P,k,E,K=>{_.value=!1,K===Mw.Finished&&(Uv(b)||(g.value="hidden",p(y),c()))})))}return l.onMounted(()=>{l.watch([h],(D,L,H)=>{F(H),v.value=!1},{immediate:!0})}),l.provide(Lw,b),oh(l.computed(()=>tr(g.value,{visible:Wn.Open,hidden:Wn.Closed})|a.value)),()=>{let{appear:D,show:L,enter:H,enterFrom:K,enterTo:q,entered:z,leave:J,leaveFrom:ie,leaveTo:X,...I}=e,W={ref:A},ee={...I,...d.value&&h.value&&lm.isServer?{class:l.normalizeClass([n.class,I.class,...w,...C])}:{}};return Nn({theirProps:ee,ourProps:W,slot:{},slots:r,attrs:n,features:P6,visible:g.value==="visible",name:"TransitionChild"})}}}),xne=Fd,oA=l.defineComponent({inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"},show:{type:[Boolean],default:null},unmount:{type:[Boolean],default:!0},appear:{type:[Boolean],default:!1},enter:{type:[String],default:""},enterFrom:{type:[String],default:""},enterTo:{type:[String],default:""},entered:{type:[String],default:""},leave:{type:[String],default:""},leaveFrom:{type:[String],default:""},leaveTo:{type:[String],default:""}},emits:{beforeEnter:()=>!0,afterEnter:()=>!0,beforeLeave:()=>!0,afterLeave:()=>!0},setup(e,{emit:t,attrs:n,slots:r}){let i=ju(),a=l.computed(()=>e.show===null&&i!==null?(i.value&Wn.Open)===Wn.Open:e.show);l.watchEffect(()=>{if(![!0,!1].includes(a.value))throw new Error('A <Transition /> is used but it is missing a `:show="true | false"` prop.')});let o=l.ref(a.value?"visible":"hidden"),s=U6(()=>{o.value="hidden"}),u=l.ref(!0),c={show:a,appear:l.computed(()=>e.appear||!u.value)};return l.onMounted(()=>{l.watchEffect(()=>{u.value=!1,a.value?o.value="visible":Uv(s)||(o.value="hidden")})}),l.provide(Lw,s),l.provide(Ew,c),()=>{let A=aA(e,["show","appear","unmount","onBeforeEnter","onBeforeLeave","onAfterEnter","onAfterLeave"]),f={unmount:e.unmount};return Nn({ourProps:{...f,as:"template"},theirProps:{},slot:{},slots:{...r,default:()=>[l.h(xne,{onBeforeEnter:()=>t("beforeEnter"),onAfterEnter:()=>t("afterEnter"),onBeforeLeave:()=>t("beforeLeave"),onAfterLeave:()=>t("afterLeave"),...n,...f,...A},r.default)]},attrs:{},features:P6,visible:o.value==="visible",name:"Transition"})}}});const Cne={class:"flex items-center pr-10"},Sne={class:"input-dropdown-label"},kne={class:"flex items-center pr-10"},Mne={class:"input-dropdown-label"},Ene={key:0,class:"std-red-text text-sm"},Lne={__name:"GreyInputAutocomplete",props:{options:{type:Array,default:()=>[]},readonly:{type:[Boolean,Number],default:!1},error:{type:String,default:""}},setup(e){const t=e,n=l.ref(""),r=l.computed(()=>n.value===""?null:n.value),i=l.computed(()=>n.value===""?t.options.slice(0,100):t.options.filter(a=>a.value.toLowerCase().includes(n.value.toLowerCase())).slice(0,100));return(a,o)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createVNode(l.unref(hm),l.mergeProps({as:"div"},a.$attrs,{class:"relative input-block",disabled:!!e.readonly}),{default:l.withCtx(()=>[l.createVNode(l.unref(Lv),{class:l.normalizeClass(["px-2 w-full bg-transparent border-0 outline-none ring-0 focus:outline-none focus:ring-0 std-placeholder",{"std-red-ring":e.error},{disabled:e.readonly}]),onChange:o[0]||(o[0]=s=>n.value=s.target.value),displayValue:s=>s},null,8,["class","displayValue"]),l.createVNode(l.unref(pm),{class:"input-block input-dropdown text-base sm:text-sm"},{default:l.withCtx(()=>[r.value&&!i.value.some(s=>s.value===r.value)?(l.openBlock(),l.createBlock(l.unref(sh),{key:0,value:r.value,as:"template"},{default:l.withCtx(({active:s})=>[l.createElementVNode("li",{class:l.normalizeClass([{"std-blue text-white":s},"input-dropdown-item"])},[l.createElementVNode("div",Cne,[l.createElementVNode("span",Sne,l.toDisplayString(n.value),1)])],2)]),_:1},8,["value"])):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(i.value,s=>(l.openBlock(),l.createBlock(l.unref(sh),{as:"template",key:s.value,value:s.value},{default:l.withCtx(({active:u})=>[l.createElementVNode("li",{class:l.normalizeClass([{"std-blue text-white":u},"input-dropdown-item"])},[l.createElementVNode("div",kne,[l.createElementVNode("span",Mne,l.toDisplayString(s.label),1)])],2)]),_:2},1032,["value"]))),128))]),_:1})]),_:1},16,["disabled"]),e.error?(l.openBlock(),l.createElementBlock("div",Ene,l.toDisplayString(e.error),1)):l.createCommentVNode("",!0)],64))}},Tne=["value","readonly"],Nne={key:0,class:"std-red-text text-sm"},H6={__name:"GreyInputGrow",props:{error:{type:String,default:""},readonly:{type:[Boolean,Number],default:!1},value:{type:String,default:""},maxHeight:{type:Number,default:200}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t,i=l.ref();function a(o){if(!i.value)return;i.value.style.height="auto";const s=i.value.scrollHeight;s<=n.maxHeight?(i.value.style.height=`${s}px`,i.value.style.overflowY="hidden"):(i.value.style.height=`${n.maxHeight}px`,i.value.style.overflowY="scroll"),r("update:modelValue",o)}return(o,s)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createElementVNode("div",l.mergeProps({class:["flex input-block relative",{"std-red-ring ":e.error}]},o.$attrs),[l.createElementVNode("textarea",l.mergeProps({ref_key:"textarea",ref:i,class:["py-2 px-3 w-full resize-none border-0 std-placeholder custom-scrollbar","focus:ring-0 focus:ring-offset-0 focus:border-0 focus:outline-none shadow-none",e.readonly?"disabled":""],value:o.$attrs.modelValue||n.value},o.$attrs,{rows:"1",readonly:n.readonly,onInput:s[0]||(s[0]=u=>a(u.target.value))}),null,16,Tne)],16),e.error?(l.openBlock(),l.createElementBlock("div",Nne,l.toDisplayString(e.error),1)):l.createCommentVNode("",!0)],64))}};function Fne(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"fill-rule":"evenodd",d:"M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16Zm.75-11.25a.75.75 0 0 0-1.5 0v4.59L7.3 9.24a.75.75 0 0 0-1.1 1.02l3.25 3.5a.75.75 0 0 0 1.1 0l3.25-3.5a.75.75 0 1 0-1.1-1.02l-1.95 2.1V6.75Z","clip-rule":"evenodd"})])}function One(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{d:"M10.75 2.75a.75.75 0 0 0-1.5 0v8.614L6.295 8.235a.75.75 0 1 0-1.09 1.03l4.25 4.5a.75.75 0 0 0 1.09 0l4.25-4.5a.75.75 0 0 0-1.09-1.03l-2.955 3.129V2.75Z"}),l.createElementVNode("path",{d:"M3.5 12.75a.75.75 0 0 0-1.5 0v2.5A2.75 2.75 0 0 0 4.75 18h10.5A2.75 2.75 0 0 0 18 15.25v-2.5a.75.75 0 0 0-1.5 0v2.5c0 .69-.56 1.25-1.25 1.25H4.75c-.69 0-1.25-.56-1.25-1.25v-2.5Z"})])}function Y6(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"fill-rule":"evenodd",d:"M15.312 11.424a5.5 5.5 0 0 1-9.201 2.466l-.312-.311h2.433a.75.75 0 0 0 0-1.5H3.989a.75.75 0 0 0-.75.75v4.242a.75.75 0 0 0 1.5 0v-2.43l.31.31a7 7 0 0 0 11.712-3.138.75.75 0 0 0-1.449-.39Zm1.23-3.723a.75.75 0 0 0 .219-.53V2.929a.75.75 0 0 0-1.5 0V5.36l-.31-.31A7 7 0 0 0 3.239 8.188a.75.75 0 1 0 1.448.389A5.5 5.5 0 0 1 13.89 6.11l.311.31h-2.432a.75.75 0 0 0 0 1.5h4.243a.75.75 0 0 0 .53-.219Z","clip-rule":"evenodd"})])}function Dne(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"fill-rule":"evenodd",d:"M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16Zm-.75-4.75a.75.75 0 0 0 1.5 0V8.66l1.95 2.1a.75.75 0 1 0 1.1-1.02l-3.25-3.5a.75.75 0 0 0-1.1 0L6.2 9.74a.75.75 0 1 0 1.1 1.02l1.95-2.1v4.59Z","clip-rule":"evenodd"})])}function Ine(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"fill-rule":"evenodd",d:"M2 4.75A.75.75 0 0 1 2.75 4h14.5a.75.75 0 0 1 0 1.5H2.75A.75.75 0 0 1 2 4.75ZM2 10a.75.75 0 0 1 .75-.75h14.5a.75.75 0 0 1 0 1.5H2.75A.75.75 0 0 1 2 10Zm0 5.25a.75.75 0 0 1 .75-.75h14.5a.75.75 0 0 1 0 1.5H2.75a.75.75 0 0 1-.75-.75Z","clip-rule":"evenodd"})])}function R6(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"fill-rule":"evenodd",d:"M16.704 4.153a.75.75 0 0 1 .143 1.052l-8 10.5a.75.75 0 0 1-1.127.075l-4.5-4.5a.75.75 0 0 1 1.06-1.06l3.894 3.893 7.48-9.817a.75.75 0 0 1 1.05-.143Z","clip-rule":"evenodd"})])}function Q6(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"fill-rule":"evenodd",d:"M5.22 8.22a.75.75 0 0 1 1.06 0L10 11.94l3.72-3.72a.75.75 0 1 1 1.06 1.06l-4.25 4.25a.75.75 0 0 1-1.06 0L5.22 9.28a.75.75 0 0 1 0-1.06Z","clip-rule":"evenodd"})])}function j6(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"fill-rule":"evenodd",d:"M11.78 5.22a.75.75 0 0 1 0 1.06L8.06 10l3.72 3.72a.75.75 0 1 1-1.06 1.06l-4.25-4.25a.75.75 0 0 1 0-1.06l4.25-4.25a.75.75 0 0 1 1.06 0Z","clip-rule":"evenodd"})])}function V6(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"fill-rule":"evenodd",d:"M8.22 5.22a.75.75 0 0 1 1.06 0l4.25 4.25a.75.75 0 0 1 0 1.06l-4.25 4.25a.75.75 0 0 1-1.06-1.06L11.94 10 8.22 6.28a.75.75 0 0 1 0-1.06Z","clip-rule":"evenodd"})])}function Tw(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"fill-rule":"evenodd",d:"M10.53 3.47a.75.75 0 0 0-1.06 0L6.22 6.72a.75.75 0 0 0 1.06 1.06L10 5.06l2.72 2.72a.75.75 0 1 0 1.06-1.06l-3.25-3.25Zm-4.31 9.81 3.25 3.25a.75.75 0 0 0 1.06 0l3.25-3.25a.75.75 0 1 0-1.06-1.06L10 14.94l-2.72-2.72a.75.75 0 0 0-1.06 1.06Z","clip-rule":"evenodd"})])}function Une(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"fill-rule":"evenodd",d:"M13.887 3.182c.396.037.79.08 1.183.128C16.194 3.45 17 4.414 17 5.517V16.75A2.25 2.25 0 0 1 14.75 19h-9.5A2.25 2.25 0 0 1 3 16.75V5.517c0-1.103.806-2.068 1.93-2.207.393-.048.787-.09 1.183-.128A3.001 3.001 0 0 1 9 1h2c1.373 0 2.531.923 2.887 2.182ZM7.5 4A1.5 1.5 0 0 1 9 2.5h2A1.5 1.5 0 0 1 12.5 4v.5h-5V4Z","clip-rule":"evenodd"})])}function Pne(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"fill-rule":"evenodd",d:"M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16Zm.75-13a.75.75 0 0 0-1.5 0v5c0 .414.336.75.75.75h4a.75.75 0 0 0 0-1.5h-3.25V5Z","clip-rule":"evenodd"})])}function Hne(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"fill-rule":"evenodd",d:"M8.34 1.804A1 1 0 0 1 9.32 1h1.36a1 1 0 0 1 .98.804l.295 1.473c.497.144.971.342 1.416.587l1.25-.834a1 1 0 0 1 1.262.125l.962.962a1 1 0 0 1 .125 1.262l-.834 1.25c.245.445.443.919.587 1.416l1.473.294a1 1 0 0 1 .804.98v1.361a1 1 0 0 1-.804.98l-1.473.295a6.95 6.95 0 0 1-.587 1.416l.834 1.25a1 1 0 0 1-.125 1.262l-.962.962a1 1 0 0 1-1.262.125l-1.25-.834a6.953 6.953 0 0 1-1.416.587l-.294 1.473a1 1 0 0 1-.98.804H9.32a1 1 0 0 1-.98-.804l-.295-1.473a6.957 6.957 0 0 1-1.416-.587l-1.25.834a1 1 0 0 1-1.262-.125l-.962-.962a1 1 0 0 1-.125-1.262l.834-1.25a6.957 6.957 0 0 1-.587-1.416l-1.473-.294A1 1 0 0 1 1 10.68V9.32a1 1 0 0 1 .804-.98l1.473-.295c.144-.497.342-.971.587-1.416l-.834-1.25a1 1 0 0 1 .125-1.262l.962-.962A1 1 0 0 1 5.38 3.03l1.25.834a6.957 6.957 0 0 1 1.416-.587l.294-1.473ZM13 10a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z","clip-rule":"evenodd"})])}function Yne(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{d:"M10.75 10.818v2.614A3.13 3.13 0 0 0 11.888 13c.482-.315.612-.648.612-.875 0-.227-.13-.56-.612-.875a3.13 3.13 0 0 0-1.138-.432ZM8.33 8.62c.053.055.115.11.184.164.208.16.46.284.736.363V6.603a2.45 2.45 0 0 0-.35.13c-.14.065-.27.143-.386.233-.377.292-.514.627-.514.909 0 .184.058.39.202.592.037.051.08.102.128.152Z"}),l.createElementVNode("path",{"fill-rule":"evenodd",d:"M18 10a8 8 0 1 1-16 0 8 8 0 0 1 16 0Zm-8-6a.75.75 0 0 1 .75.75v.316a3.78 3.78 0 0 1 1.653.713c.426.33.744.74.925 1.2a.75.75 0 0 1-1.395.55 1.35 1.35 0 0 0-.447-.563 2.187 2.187 0 0 0-.736-.363V9.3c.698.093 1.383.32 1.959.696.787.514 1.29 1.27 1.29 2.13 0 .86-.504 1.616-1.29 2.13-.576.377-1.261.603-1.96.696v.299a.75.75 0 1 1-1.5 0v-.3c-.697-.092-1.382-.318-1.958-.695-.482-.315-.857-.717-1.078-1.188a.75.75 0 1 1 1.359-.636c.08.173.245.376.54.569.313.205.706.353 1.138.432v-2.748a3.782 3.782 0 0 1-1.653-.713C6.9 9.433 6.5 8.681 6.5 7.875c0-.805.4-1.558 1.097-2.096a3.78 3.78 0 0 1 1.653-.713V4.75A.75.75 0 0 1 10 4Z","clip-rule":"evenodd"})])}function Rne(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{d:"M7 3.5A1.5 1.5 0 0 1 8.5 2h3.879a1.5 1.5 0 0 1 1.06.44l3.122 3.12A1.5 1.5 0 0 1 17 6.622V12.5a1.5 1.5 0 0 1-1.5 1.5h-1v-3.379a3 3 0 0 0-.879-2.121L10.5 5.379A3 3 0 0 0 8.379 4.5H7v-1Z"}),l.createElementVNode("path",{d:"M4.5 6A1.5 1.5 0 0 0 3 7.5v9A1.5 1.5 0 0 0 4.5 18h7a1.5 1.5 0 0 0 1.5-1.5v-5.879a1.5 1.5 0 0 0-.44-1.06L9.44 6.439A1.5 1.5 0 0 0 8.378 6H4.5Z"})])}function z6(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{d:"M3 10a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0ZM8.5 10a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0ZM15.5 8.5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3Z"})])}function Qne(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"fill-rule":"evenodd",d:"M8.485 2.495c.673-1.167 2.357-1.167 3.03 0l6.28 10.875c.673 1.167-.17 2.625-1.516 2.625H3.72c-1.347 0-2.189-1.458-1.515-2.625L8.485 2.495ZM10 5a.75.75 0 0 1 .75.75v3.5a.75.75 0 0 1-1.5 0v-3.5A.75.75 0 0 1 10 5Zm0 9a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z","clip-rule":"evenodd"})])}function jne(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{d:"M10 12.5a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Z"}),l.createElementVNode("path",{"fill-rule":"evenodd",d:"M.664 10.59a1.651 1.651 0 0 1 0-1.186A10.004 10.004 0 0 1 10 3c4.257 0 7.893 2.66 9.336 6.41.147.381.146.804 0 1.186A10.004 10.004 0 0 1 10 17c-4.257 0-7.893-2.66-9.336-6.41ZM14 10a4 4 0 1 1-8 0 4 4 0 0 1 8 0Z","clip-rule":"evenodd"})])}function Vne(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"fill-rule":"evenodd",d:"M9.293 2.293a1 1 0 0 1 1.414 0l7 7A1 1 0 0 1 17 11h-1v6a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1v-3a1 1 0 0 0-1-1H9a1 1 0 0 0-1 1v3a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-6H3a1 1 0 0 1-.707-1.707l7-7Z","clip-rule":"evenodd"})])}function zne(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{d:"M12.232 4.232a2.5 2.5 0 0 1 3.536 3.536l-1.225 1.224a.75.75 0 0 0 1.061 1.06l1.224-1.224a4 4 0 0 0-5.656-5.656l-3 3a4 4 0 0 0 .225 5.865.75.75 0 0 0 .977-1.138 2.5 2.5 0 0 1-.142-3.667l3-3Z"}),l.createElementVNode("path",{d:"M11.603 7.963a.75.75 0 0 0-.977 1.138 2.5 2.5 0 0 1 .142 3.667l-3 3a2.5 2.5 0 0 1-3.536-3.536l1.225-1.224a.75.75 0 0 0-1.061-1.06l-1.224 1.224a4 4 0 1 0 5.656 5.656l3-3a4 4 0 0 0-.225-5.865Z"})])}function Nw(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"fill-rule":"evenodd",d:"M9 3.5a5.5 5.5 0 1 0 0 11 5.5 5.5 0 0 0 0-11ZM2 9a7 7 0 1 1 12.452 4.391l3.328 3.329a.75.75 0 1 1-1.06 1.06l-3.329-3.328A7 7 0 0 1 2 9Z","clip-rule":"evenodd"})])}function qne(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"fill-rule":"evenodd",d:"M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16ZM6.75 9.25a.75.75 0 0 0 0 1.5h6.5a.75.75 0 0 0 0-1.5h-6.5Z","clip-rule":"evenodd"})])}function q6(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{d:"m5.433 13.917 1.262-3.155A4 4 0 0 1 7.58 9.42l6.92-6.918a2.121 2.121 0 0 1 3 3l-6.92 6.918c-.383.383-.84.685-1.343.886l-3.154 1.262a.5.5 0 0 1-.65-.65Z"}),l.createElementVNode("path",{d:"M3.5 5.75c0-.69.56-1.25 1.25-1.25H10A.75.75 0 0 0 10 3H4.75A2.75 2.75 0 0 0 2 5.75v9.5A2.75 2.75 0 0 0 4.75 18h9.5A2.75 2.75 0 0 0 17 15.25V10a.75.75 0 0 0-1.5 0v5.25c0 .69-.56 1.25-1.25 1.25h-9.5c-.69 0-1.25-.56-1.25-1.25v-9.5Z"})])}function Kne(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{d:"m2.695 14.762-1.262 3.155a.5.5 0 0 0 .65.65l3.155-1.262a4 4 0 0 0 1.343-.886L17.5 5.501a2.121 2.121 0 0 0-3-3L3.58 13.419a4 4 0 0 0-.885 1.343Z"})])}function Gne(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{d:"M6.3 2.84A1.5 1.5 0 0 0 4 4.11v11.78a1.5 1.5 0 0 0 2.3 1.27l9.344-5.891a1.5 1.5 0 0 0 0-2.538L6.3 2.841Z"})])}function Wne(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"fill-rule":"evenodd",d:"M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16Zm.75-11.25a.75.75 0 0 0-1.5 0v2.5h-2.5a.75.75 0 0 0 0 1.5h2.5v2.5a.75.75 0 0 0 1.5 0v-2.5h2.5a.75.75 0 0 0 0-1.5h-2.5v-2.5Z","clip-rule":"evenodd"})])}function Xne(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{d:"M10.75 4.75a.75.75 0 0 0-1.5 0v4.5h-4.5a.75.75 0 0 0 0 1.5h4.5v4.5a.75.75 0 0 0 1.5 0v-4.5h4.5a.75.75 0 0 0 0-1.5h-4.5v-4.5Z"})])}function Jne(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{d:"M5.25 3A2.25 2.25 0 0 0 3 5.25v9.5A2.25 2.25 0 0 0 5.25 17h9.5A2.25 2.25 0 0 0 17 14.75v-9.5A2.25 2.25 0 0 0 14.75 3h-9.5Z"})])}function Fw(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"fill-rule":"evenodd",d:"M8.75 1A2.75 2.75 0 0 0 6 3.75v.443c-.795.077-1.584.176-2.365.298a.75.75 0 1 0 .23 1.482l.149-.022.841 10.518A2.75 2.75 0 0 0 7.596 19h4.807a2.75 2.75 0 0 0 2.742-2.53l.841-10.52.149.023a.75.75 0 0 0 .23-1.482A41.03 41.03 0 0 0 14 4.193V3.75A2.75 2.75 0 0 0 11.25 1h-2.5ZM10 4c.84 0 1.673.025 2.5.075V3.75c0-.69-.56-1.25-1.25-1.25h-2.5c-.69 0-1.25.56-1.25 1.25v.325C8.327 4.025 9.16 4 10 4ZM8.58 7.72a.75.75 0 0 0-1.5.06l.3 7.5a.75.75 0 1 0 1.5-.06l-.3-7.5Zm4.34.06a.75.75 0 1 0-1.5-.06l-.3 7.5a.75.75 0 1 0 1.5.06l.3-7.5Z","clip-rule":"evenodd"})])}function Od(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{d:"M6.28 5.22a.75.75 0 0 0-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 1 0 1.06 1.06L10 11.06l3.72 3.72a.75.75 0 1 0 1.06-1.06L11.06 10l3.72-3.72a.75.75 0 0 0-1.06-1.06L10 8.94 6.28 5.22Z"})])}const Zne={components:{DocumentDuplicateIcon:Rne},props:{error:{type:String,default:""},readonly:{type:[Boolean,Number],default:!1}},data(){return{inputValue:""}},mounted(){this.inputValue=this.initialValue},methods:{onChange(e){this.$emit("update:modelValue",e.target.value)},async copyInput(){await navigator.clipboard.writeText(this.$attrs.modelValue),this.$emit("copied","Copied to clipboard","",!0)}}},$ne={class:"relative"},ere=["value","readonly"],tre={key:0,class:"std-red-text text-sm"};function nre(e,t,n,r,i,a){const o=l.resolveComponent("DocumentDuplicateIcon");return l.openBlock(),l.createElementBlock("div",$ne,[l.createElementVNode("input",l.mergeProps({type:"text",class:["pl-3 input-block pr-8",{"std-red-ring":n.error},{disabled:n.readonly}],value:e.$attrs.modelValue},e.$attrs,{readonly:n.readonly,onInput:t[0]||(t[0]=(...s)=>a.onChange&&a.onChange(...s))}),null,16,ere),l.createElementVNode("span",{class:l.normalizeClass(["input-icon cursor-pointer",{"pb-5":n.error}]),onClick:t[1]||(t[1]=(...s)=>a.copyInput&&a.copyInput(...s))},[l.createVNode(o,{class:"icon-md"})],2),n.error?(l.openBlock(),l.createElementBlock("div",tre,l.toDisplayString(n.error),1)):l.createCommentVNode("",!0)])}const rre=ar(Zne,[["render",nre]]),ire=e=>{let t="";const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=n.length;for(let i=0;i<e;i++)t+=n.charAt(Math.floor(Math.random()*r));return t},are={components:{CurrencyDollarIcon:Yne},props:{error:{type:String,default:""},initialValue:{type:String,default:""},tokenFunction:{type:Function,default:()=>ire(10)},readonly:{type:[Boolean,Number],default:!1}},data(){return{inputValue:""}},mounted(){this.inputValue=this.initialValue},methods:{onChange(){this.$emit("updateModel",this.inputValue)},generateToken(){const e=this.tokenFunction();this.inputValue=e,this.$emit("updateModel",e)}}},ore={class:"relative"},sre={key:0,class:"std-red-text text-sm"};function lre(e,t,n,r,i,a){const o=l.resolveComponent("CurrencyDollarIcon");return l.openBlock(),l.createElementBlock("div",ore,[l.withDirectives(l.createElementVNode("input",l.mergeProps({type:"text",class:["pl-3 input-block pr-8",{"std-red-ring":n.error},{disabled:n.readonly}],"onUpdate:modelValue":t[0]||(t[0]=s=>i.inputValue=s)},e.$attrs,{onInput:t[1]||(t[1]=(...s)=>a.onChange&&a.onChange(...s))}),null,16),[[l.vModelText,i.inputValue,void 0,{trim:!0}]]),l.createElementVNode("span",{class:l.normalizeClass(["input-icon cursor-pointer",{"pb-5":n.error},{hidden:n.readonly}]),onClick:t[2]||(t[2]=(...s)=>a.generateToken&&a.generateToken(...s))},[l.createVNode(o,{class:"icon-md"})],2),n.error?(l.openBlock(),l.createElementBlock("div",sre,l.toDisplayString(n.error),1)):l.createCommentVNode("",!0)])}const ure=ar(are,[["render",lre]]),cre={props:{error:{type:String,default:""},readonly:{type:[Boolean,Number],default:!1}},methods:{onChange(e){this.$emit("update:modelValue",e.target.value)}}},Are=["value"],dre={key:0,class:"std-red-text text-sm"};function fre(e,t,n,r,i,a){return l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createElementVNode("input",l.mergeProps({type:"password",class:["pl-3 input-block outline-none",{"std-red-ring":n.error},{disabled:n.readonly}],value:e.$attrs.modelValue},e.$attrs,{onInput:t[0]||(t[0]=(...o)=>a.onChange&&a.onChange(...o))}),null,16,Are),n.error?(l.openBlock(),l.createElementBlock("div",dre,l.toDisplayString(n.error),1)):l.createCommentVNode("",!0)],64)}const Ow=ar(cre,[["render",fre]]),hre={props:{error:{type:String,default:""},readonly:{type:[Boolean,Number],default:!1}},emits:["update"],data(){return{formatted:""}},methods:{onChange(e){const t=e.target.value.replace(/\D/g,"");let n=t;n.length>10&&(n=n.slice(0,10)),t.length>6?this.formatted=`(${n.slice(0,3)})-${n.slice(3,6)}-${n.slice(6)}`:t.length>3?this.formatted=`(${n.slice(0,3)})-${n.slice(3)}`:t.length>0?this.formatted=`(${n})`:this.formatted="",this.$emit("update",n)}}},pre={key:0,class:"std-red-text text-sm"};function mre(e,t,n,r,i,a){return l.openBlock(),l.createElementBlock(l.Fragment,null,[l.withDirectives(l.createElementVNode("input",{"onUpdate:modelValue":t[0]||(t[0]=o=>i.formatted=o),type:"tel",class:l.normalizeClass(["input-block",{"std-red-ring":n.error},{disabled:n.readonly}]),placeholder:"(xxx)-xxx-xxxx",onInput:t[1]||(t[1]=(...o)=>a.onChange&&a.onChange(...o))},null,34),[[l.vModelText,i.formatted]]),n.error?(l.openBlock(),l.createElementBlock("div",pre,l.toDisplayString(n.error),1)):l.createCommentVNode("",!0)],64)}const gre=ar(hre,[["render",mre]]),vre={components:{Listbox:tne,ListboxButton:rne,ListboxLabel:nne,ListboxOption:ane,ListboxOptions:ine,CheckIcon:R6,ChevronUpDownIcon:Tw},props:{options:{type:Array,required:!0},readonly:{type:[Boolean,Number],default:!1},error:{type:String,default:""},sorted:{type:Boolean,default:!1},placeholder:{type:String,default:"Select a value"}},computed:{selected(){const e=this.options.find(t=>t.value===this.$attrs.modelValue);return!e&&this.$attrs.modelValue?{label:this.$attrs.modelValue,value:this.$attrs.modelValue}:e},sortedOptions(){return this.sorted?this.options.sort((e,t)=>e.label.localeCompare(t.label)):this.options}}},yre={class:"relative"},_re={class:"flex items-center pr-10"},bre={class:"ml-3 block truncate"},wre={class:"pointer-events-none input-icon"},Bre={class:"flex items-center pr-10"},xre={class:"ml-3 block truncate"},Cre={class:"pointer-events-none input-icon"},Sre={key:0,class:"std-red-text text-sm"};function kre(e,t,n,r,i,a){const o=l.resolveComponent("ChevronUpDownIcon"),s=l.resolveComponent("ListboxButton"),u=l.resolveComponent("CheckIcon"),c=l.resolveComponent("ListboxOption"),A=l.resolveComponent("ListboxOptions"),f=l.resolveComponent("Listbox");return l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createVNode(f,l.mergeProps({as:"div",value:e.$attrs.modelValue},e.$attrs),{default:l.withCtx(()=>[l.createElementVNode("div",yre,[a.selected?(l.openBlock(),l.createBlock(s,{key:0,class:l.normalizeClass(["input-block sm:text-sm sm:leading-6",{"std-red-ring":n.error},{disabled:n.readonly}]),disabled:n.readonly},{default:l.withCtx(()=>[l.createElementVNode("span",_re,[l.createElementVNode("span",bre,l.toDisplayString(a.selected.label),1)]),l.createElementVNode("span",wre,[l.createVNode(o,{class:"icon-md","aria-hidden":"true"})])]),_:1},8,["class","disabled"])):(l.openBlock(),l.createBlock(s,{key:1,class:l.normalizeClass(["input-block sm:text-sm sm:leading-6",{"std-red-ring":n.error},{disabled:n.readonly}]),disabled:n.readonly},{default:l.withCtx(()=>[l.createElementVNode("span",Bre,[l.createElementVNode("span",xre,l.toDisplayString(n.placeholder),1)]),l.createElementVNode("span",Cre,[l.createVNode(o,{class:"icon-md","aria-hidden":"true"})])]),_:1},8,["class","disabled"])),n.readonly?l.createCommentVNode("",!0):(l.openBlock(),l.createBlock(l.Transition,{key:2,"leave-active-class":"transition ease-in duration-100","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:l.withCtx(()=>[l.createVNode(A,{class:"input-block input-dropdown text-sm sm:text-xs"},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(a.sortedOptions,h=>(l.openBlock(),l.createBlock(c,{as:"template",key:h.id,value:h.value},{default:l.withCtx(({active:d})=>[l.createElementVNode("li",{class:l.normalizeClass([{"std-blue text-white":d},"input-dropdown-item"])},[l.createElementVNode("div",{class:l.normalizeClass(["flex items-center",{"pr-10":a.selected&&a.selected.value===h.value}])},[l.createElementVNode("span",{class:l.normalizeClass([{"font-semibold":a.selected},"input-dropdown-label"])},l.toDisplayString(h.label),3)],2),a.selected&&a.selected.value===h.value?(l.openBlock(),l.createElementBlock("span",{key:0,class:l.normalizeClass([d?"text-white":"","absolute inset-y-0 right-2 flex items-center"])},[l.createVNode(u,{class:"icon-md","aria-hidden":"true"})],2)):l.createCommentVNode("",!0)],2)]),_:2},1032,["value"]))),128))]),_:1})]),_:1}))])]),_:1},16,["value"]),n.error?(l.openBlock(),l.createElementBlock("div",Sre,l.toDisplayString(n.error),1)):l.createCommentVNode("",!0)],64)}const fr=ar(vre,[["render",kre]]),Mre={components:{Combobox:hm,ComboboxButton:Ev,ComboboxOption:sh,ComboboxOptions:pm,ChevronUpDownIcon:Tw},props:{initialValue:{type:String,required:!1},options:{type:Array,required:!0},readonly:{type:[Boolean,Number],default:!1},error:{type:String,default:""},sorted:{type:Boolean,default:!1}},data(){return{inputValue:""}},computed:{sortedOptions(){return this.sorted?this.options.sort((e,t)=>e.label.localeCompare(t.label)):this.options}},mounted(){this.selected=this.options.find(e=>e.value===this.initialValue)||"",this.inputValue=this.initialValue},methods:{setModelValue(e){this.$emit("updateModel",e.value)},updateInput(e){this.inputValue=e.value,this.setModelValue(e)}}},Ere={class:"relative input-block"},Lre={class:"flex items-center pr-10"},Tre={class:"input-dropdown-label"},Nre={key:0,class:"std-red-text text-sm"};function Fre(e,t,n,r,i,a){const o=l.resolveComponent("ChevronUpDownIcon"),s=l.resolveComponent("ComboboxButton"),u=l.resolveComponent("ComboboxOption"),c=l.resolveComponent("ComboboxOptions"),A=l.resolveComponent("Combobox");return l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createVNode(A,l.mergeProps({as:"div"},e.$attrs),{default:l.withCtx(()=>[l.createElementVNode("div",Ere,[l.withDirectives(l.createElementVNode("input",{type:"text",class:l.normalizeClass(["pl-3 pr-8 w-full bg-transparent border-0 outline-none ring-0 focus:outline-none focus:ring-0",{"std-red-ring":n.error},{disabled:n.readonly}]),"onUpdate:modelValue":t[0]||(t[0]=f=>i.inputValue=f),onInput:t[1]||(t[1]=f=>a.setModelValue(f.target))},null,34),[[l.vModelText,i.inputValue,void 0,{trim:!0}]]),l.createVNode(s,{class:"input-icon focus:outline-hidden"},{default:l.withCtx(()=>[l.createVNode(o,{class:"icon-md","aria-hidden":"true"})]),_:1}),n.readonly?l.createCommentVNode("",!0):(l.openBlock(),l.createBlock(l.Transition,{key:0,"leave-active-class":"transition ease-in duration-100","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:l.withCtx(()=>[l.createVNode(c,{class:"input-block input-dropdown text-base sm:text-sm"},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(a.sortedOptions,f=>(l.openBlock(),l.createBlock(u,{as:"template",key:f.id,value:f,onClick:h=>a.updateInput(f)},{default:l.withCtx(({active:h})=>[l.createElementVNode("li",{class:l.normalizeClass([{"std-blue text-white":h},"input-dropdown-item pl-3"])},[l.createElementVNode("div",Lre,[l.createElementVNode("span",Tre,l.toDisplayString(f.label),1)])],2)]),_:2},1032,["value","onClick"]))),128))]),_:1})]),_:1}))])]),_:1},16),n.error?(l.openBlock(),l.createElementBlock("div",Nre,l.toDisplayString(n.error),1)):l.createCommentVNode("",!0)],64)}const Ore=ar(Mre,[["render",Fre]]),Dre={class:"relative w-full rounded-lg text-left min-h-9"},Ire={class:"flex flex-auto flex-wrap py-1"},Ure={class:"select-chip gray-chip"},Pre={class:"text-xs font-normal leading-none max-w-full flex-initial"},Hre={key:0,class:"relative z-9 flex flex-auto flex-row-reverse"},Yre={key:0,class:"block truncate"},Rre={key:0,class:"input-icon"},Qre={key:0,class:"std-red-text text-sm"},Dw={__name:"GreySelectInputMultiple",props:{selected:{type:Array,default:()=>[]},options:{type:Array,default:()=>[]},readonly:{type:[Boolean,Number],default:!1},error:{type:String,default:""},sorted:{type:Boolean,default:!1},allowInput:{type:Boolean,default:!0},preventNew:{type:Boolean,default:!1}},emits:["update"],setup(e,{emit:t}){const n=e,r=t,i=l.ref([]),a=l.ref(""),o=l.computed(()=>n.sorted?n.options.sort((h,d)=>h.label.localeCompare(d.label)):n.options),s=l.computed(()=>a.value===""?o.value.slice(0,50):o.value.filter(h=>h.label.toLowerCase().includes(a.value.toLowerCase())).slice(0,50));l.watch(()=>n.selected,(h,d)=>{JSON.stringify(i.value)!==JSON.stringify(n.selected)&&f()}),f();function u(){n.preventNew||i.value.find(h=>h.value===a.value)||(i.value.push({label:a.value,value:a.value}),a.value="",A(i.value))}function c(h){i.value=i.value.filter(d=>d.value!==h.value),A(i.value)}function A(h){const d=h.map(m=>m.value);r("update",d)}function f(){const h=n.selected.map(d=>n.options.find(p=>p.value===d)||{label:d,value:d});i.value=h}return(h,d)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createVNode(l.unref(hm),{as:"div",modelValue:i.value,"onUpdate:modelValue":[d[4]||(d[4]=m=>i.value=m),A],multiple:"",class:l.normalizeClass(["input-block py-0 relative"])},{default:l.withCtx(()=>[l.createElementVNode("div",Dre,[l.createElementVNode("div",Ire,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(i.value,m=>(l.openBlock(),l.createElementBlock("div",Ure,[l.createElementVNode("div",Pre,l.toDisplayString(m.label),1),e.readonly?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("div",Hre,[l.createVNode(l.unref(Od),{class:"icon cursor-pointer hover:opacity-75",onClick:p=>c(m)},null,8,["onClick"])]))]))),256))]),e.allowInput?(l.openBlock(),l.createBlock(l.unref(Lv),{key:0,class:"z-1 pl-3 py-2 pr-10 w-full text-sm bg-transparent border-0 outline-none ring-0 focus:outline-none focus:ring-0",displayValue:()=>a.value,disabled:e.readonly,onChange:d[0]||(d[0]=m=>a.value=m.target.value),onKeyup:d[1]||(d[1]=l.withKeys(m=>u(),["enter"]))},null,8,["displayValue","disabled"])):l.createCommentVNode("",!0),e.allowInput?l.createCommentVNode("",!0):(l.openBlock(),l.createBlock(l.unref(Ev),{key:1,disabled:e.readonly,class:"absolute w-full inset-y-0 left-0 flex items-center pl-3"},{default:l.withCtx(()=>[i.value.length===0?(l.openBlock(),l.createElementBlock("span",Yre," Select Values ")):l.createCommentVNode("",!0)]),_:1},8,["disabled"])),l.createVNode(l.unref(Ev),{class:"input-icon focus:outline-hidden",disabled:e.readonly},{default:l.withCtx(()=>[l.createVNode(l.unref(Tw),{class:"icon-md icon-gray","aria-hidden":"true"})]),_:1},8,["disabled"])]),l.createVNode(l.unref(oA),{leave:"transition ease-in duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0",onAfterLeave:d[3]||(d[3]=m=>a.value="")},{default:l.withCtx(()=>[l.createVNode(l.unref(pm),{class:"input-block input-dropdown text-base sm:text-sm"},{default:l.withCtx(()=>[s.value.length===0&&a.value!==""?(l.openBlock(),l.createElementBlock("div",{key:0,class:"relative px-4 py-2 text-white",onClick:d[2]||(d[2]=m=>u())},l.toDisplayString(a.value),1)):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(s.value,m=>(l.openBlock(),l.createBlock(l.unref(sh),{as:"template",value:m},{default:l.withCtx(({selected:p,active:g})=>[l.createElementVNode("li",{class:l.normalizeClass([{"std-blue text-white":g},"input-dropdown-item pr-10"])},[l.createElementVNode("span",{class:l.normalizeClass(["input-dropdown-label",{"font-semibold":p,"font-normal":!p}])},l.toDisplayString(m.label),3),p?(l.openBlock(),l.createElementBlock("span",Rre,[l.createVNode(l.unref(R6),{class:"icon-md","aria-hidden":"true"})])):l.createCommentVNode("",!0)],2)]),_:2},1032,["value"]))),256))]),_:1})]),_:1})]),_:1},8,["modelValue"]),e.error?(l.openBlock(),l.createElementBlock("div",Qre,l.toDisplayString(e.error),1)):l.createCommentVNode("",!0)],64))}},jre={props:{size:{type:String,default:"md"}},computed:{iconSize(){return this.size==="xs"?"icon":this.size==="sm"?"icon-md":this.size==="md"?"icon-lg":this.size==="lg"?"icon-xl":"icon"}},methods:{onChange(){this.$emit("update:modelValue",!this.$attrs.modelValue)}}},Vre={class:"relative flex items-start pl-2"},zre={class:"flex h-6 items-center"},qre=["checked","disabled"];function Kre(e,t,n,r,i,a){return l.openBlock(),l.createElementBlock("div",Vre,[l.createElementVNode("div",zre,[l.createElementVNode("input",l.mergeProps({type:"checkbox",class:["rounded-sm cursor-pointer",a.iconSize,{"cursor-not-allowed!":e.$attrs.disabled}],checked:e.$attrs.modelValue},e.$attrs,{onChange:t[0]||(t[0]=(...o)=>a.onChange&&a.onChange(...o)),disabled:e.$attrs.disabled}),null,16,qre)])])}const tu=ar(jre,[["render",Kre]]),Gre={class:"col py-1"},Wre={class:"row text-xs font-medium"},Xre={key:0,class:"std-red-text"},Jre={class:"flex-row w-full"},zi=l.defineComponent({__name:"FormCol",props:{fieldName:{},required:{type:Boolean}},setup(e){return(t,n)=>(l.openBlock(),l.createElementBlock("div",Gre,[l.createElementVNode("div",Wre,[l.createTextVNode(l.toDisplayString(t.fieldName)+" ",1),t.required?(l.openBlock(),l.createElementBlock("span",Xre,"*")):l.createCommentVNode("",!0)]),l.createElementVNode("div",Jre,[l.renderSlot(t.$slots,"default")])]))}}),Zre={class:"flex items-center py-3"},$re={class:"w-20 sm:w-40 text-xs font-medium pr-4"},eie={key:0,class:"std-red-text"},tie={class:"w-32 sm:w-full"},Sr=l.defineComponent({__name:"FormRow",props:{fieldName:{},required:{type:Boolean}},setup(e){return(t,n)=>(l.openBlock(),l.createElementBlock("div",Zre,[l.createElementVNode("div",$re,[l.createTextVNode(l.toDisplayString(t.fieldName)+" ",1),t.required?(l.openBlock(),l.createElementBlock("span",eie,"*")):l.createCommentVNode("",!0)]),l.createElementVNode("div",tie,[l.renderSlot(t.$slots,"default")])]))}}),nie={},rie={class:"w-full h-0.5 bg-gray-300 my-2"};function iie(e,t){return l.openBlock(),l.createElementBlock("div",rie)}const Iw=ar(nie,[["render",iie]]),aie={class:"row justify-between items-center w-full"},oie={class:"text-base"},sie={class:"justify-end relative"},_m=l.defineComponent({__name:"FormSection",props:{sectionName:{}},setup(e){const t=e;return(n,r)=>(l.openBlock(),l.createElementBlock("div",null,[l.createElementVNode("div",aie,[l.createElementVNode("div",oie,l.toDisplayString(t.sectionName),1),l.createElementVNode("div",sie,[l.renderSlot(n.$slots,"section-right")])]),l.createVNode(Iw),l.renderSlot(n.$slots,"default")]))}}),lie={},uie={class:"rounded-lg shadow-lg my-2 std-white dark:dark-bg"},cie={class:"px-6 py-4"};function Aie(e,t){return l.openBlock(),l.createElementBlock("div",uie,[l.createElementVNode("div",cie,[l.renderSlot(e.$slots,"default")])])}const bm=ar(lie,[["render",Aie]]);var ni=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function uh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var wm={exports:{}},die=wm.exports,K6;function fie(){return K6||(K6=1,function(e,t){(function(n,r){e.exports=r()})(die,function(){function n(M,S){var O=Object.keys(M);if(Object.getOwnPropertySymbols){var Y=Object.getOwnPropertySymbols(M);S&&(Y=Y.filter(function(V){return Object.getOwnPropertyDescriptor(M,V).enumerable})),O.push.apply(O,Y)}return O}function r(M){for(var S=1;S<arguments.length;S++){var O=arguments[S]!=null?arguments[S]:{};S%2?n(Object(O),!0).forEach(function(Y){u(M,Y,O[Y])}):Object.getOwnPropertyDescriptors?Object.defineProperties(M,Object.getOwnPropertyDescriptors(O)):n(Object(O)).forEach(function(Y){Object.defineProperty(M,Y,Object.getOwnPropertyDescriptor(O,Y))})}return M}function i(M){return i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(S){return typeof S}:function(S){return S&&typeof Symbol=="function"&&S.constructor===Symbol&&S!==Symbol.prototype?"symbol":typeof S},i(M)}function a(M,S){if(!(M instanceof S))throw new TypeError("Cannot call a class as a function")}function o(M,S){for(var O=0;O<S.length;O++){var Y=S[O];Y.enumerable=Y.enumerable||!1,Y.configurable=!0,"value"in Y&&(Y.writable=!0),Object.defineProperty(M,p(Y.key),Y)}}function s(M,S,O){return S&&o(M.prototype,S),Object.defineProperty(M,"prototype",{writable:!1}),M}function u(M,S,O){return(S=p(S))in M?Object.defineProperty(M,S,{value:O,enumerable:!0,configurable:!0,writable:!0}):M[S]=O,M}function c(M,S){if(typeof S!="function"&&S!==null)throw new TypeError("Super expression must either be null or a function");M.prototype=Object.create(S&&S.prototype,{constructor:{value:M,writable:!0,configurable:!0}}),Object.defineProperty(M,"prototype",{writable:!1}),S&&f(M,S)}function A(M){return A=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(S){return S.__proto__||Object.getPrototypeOf(S)},A(M)}function f(M,S){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(O,Y){return O.__proto__=Y,O},f(M,S)}function h(M){if(M===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return M}function d(M){var S=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var O,Y=A(M);if(S){var V=A(this).constructor;O=Reflect.construct(Y,arguments,V)}else O=Y.apply(this,arguments);return function(re,le){if(le&&(typeof le=="object"||typeof le=="function"))return le;if(le!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return h(re)}(this,O)}}function m(){return m=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(M,S,O){var Y=function(re,le){for(;!Object.prototype.hasOwnProperty.call(re,le)&&(re=A(re))!==null;);return re}(M,S);if(Y){var V=Object.getOwnPropertyDescriptor(Y,S);return V.get?V.get.call(arguments.length<3?M:O):V.value}},m.apply(this,arguments)}function p(M){var S=function(O,Y){if(typeof O!="object"||O===null)return O;var V=O[Symbol.toPrimitive];if(V!==void 0){var re=V.call(O,Y);if(typeof re!="object")return re;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(O)}(M,"string");return typeof S=="symbol"?S:S+""}var g=function(M){return!(!M||!M.Window)&&M instanceof M.Window},v=void 0,y=void 0;function _(M){v=M;var S=M.document.createTextNode("");S.ownerDocument!==M.document&&typeof M.wrap=="function"&&M.wrap(S)===S&&(M=M.wrap(M)),y=M}function b(M){return g(M)?M:(M.ownerDocument||M).defaultView||y.window}typeof window<"u"&&window&&_(window);var w=function(M){return!!M&&i(M)==="object"},C=function(M){return typeof M=="function"},B={window:function(M){return M===y||g(M)},docFrag:function(M){return w(M)&&M.nodeType===11},object:w,func:C,number:function(M){return typeof M=="number"},bool:function(M){return typeof M=="boolean"},string:function(M){return typeof M=="string"},element:function(M){if(!M||i(M)!=="object")return!1;var S=b(M)||y;return/object|function/.test(typeof Element>"u"?"undefined":i(Element))?M instanceof Element||M instanceof S.Element:M.nodeType===1&&typeof M.nodeName=="string"},plainObject:function(M){return w(M)&&!!M.constructor&&/function Object\b/.test(M.constructor.toString())},array:function(M){return w(M)&&M.length!==void 0&&C(M.splice)}};function E(M){var S=M.interaction;if(S.prepared.name==="drag"){var O=S.prepared.axis;O==="x"?(S.coords.cur.page.y=S.coords.start.page.y,S.coords.cur.client.y=S.coords.start.client.y,S.coords.velocity.client.y=0,S.coords.velocity.page.y=0):O==="y"&&(S.coords.cur.page.x=S.coords.start.page.x,S.coords.cur.client.x=S.coords.start.client.x,S.coords.velocity.client.x=0,S.coords.velocity.page.x=0)}}function N(M){var S=M.iEvent,O=M.interaction;if(O.prepared.name==="drag"){var Y=O.prepared.axis;if(Y==="x"||Y==="y"){var V=Y==="x"?"y":"x";S.page[V]=O.coords.start.page[V],S.client[V]=O.coords.start.client[V],S.delta[V]=0}}}var P={id:"actions/drag",install:function(M){var S=M.actions,O=M.Interactable,Y=M.defaults;O.prototype.draggable=P.draggable,S.map.drag=P,S.methodDict.drag="draggable",Y.actions.drag=P.defaults},listeners:{"interactions:before-action-move":E,"interactions:action-resume":E,"interactions:action-move":N,"auto-start:check":function(M){var S=M.interaction,O=M.interactable,Y=M.buttons,V=O.options.drag;if(V&&V.enabled&&(!S.pointerIsDown||!/mouse|pointer/.test(S.pointerType)||(Y&O.options.drag.mouseButtons)!=0))return M.action={name:"drag",axis:V.lockAxis==="start"?V.startAxis:V.lockAxis},!1}},draggable:function(M){return B.object(M)?(this.options.drag.enabled=M.enabled!==!1,this.setPerAction("drag",M),this.setOnEvents("drag",M),/^(xy|x|y|start)$/.test(M.lockAxis)&&(this.options.drag.lockAxis=M.lockAxis),/^(xy|x|y)$/.test(M.startAxis)&&(this.options.drag.startAxis=M.startAxis),this):B.bool(M)?(this.options.drag.enabled=M,this):this.options.drag},beforeMove:E,move:N,defaults:{startAxis:"xy",lockAxis:"xy"},getCursor:function(){return"move"},filterEventType:function(M){return M.search("drag")===0}},k=P,F={init:function(M){var S=M;F.document=S.document,F.DocumentFragment=S.DocumentFragment||D,F.SVGElement=S.SVGElement||D,F.SVGSVGElement=S.SVGSVGElement||D,F.SVGElementInstance=S.SVGElementInstance||D,F.Element=S.Element||D,F.HTMLElement=S.HTMLElement||F.Element,F.Event=S.Event,F.Touch=S.Touch||D,F.PointerEvent=S.PointerEvent||S.MSPointerEvent},document:null,DocumentFragment:null,SVGElement:null,SVGSVGElement:null,SVGElementInstance:null,Element:null,HTMLElement:null,Event:null,Touch:null,PointerEvent:null};function D(){}var L=F,H={init:function(M){var S=L.Element,O=M.navigator||{};H.supportsTouch="ontouchstart"in M||B.func(M.DocumentTouch)&&L.document instanceof M.DocumentTouch,H.supportsPointerEvent=O.pointerEnabled!==!1&&!!L.PointerEvent,H.isIOS=/iP(hone|od|ad)/.test(O.platform),H.isIOS7=/iP(hone|od|ad)/.test(O.platform)&&/OS 7[^\d]/.test(O.appVersion),H.isIe9=/MSIE 9/.test(O.userAgent),H.isOperaMobile=O.appName==="Opera"&&H.supportsTouch&&/Presto/.test(O.userAgent),H.prefixedMatchesSelector="matches"in S.prototype?"matches":"webkitMatchesSelector"in S.prototype?"webkitMatchesSelector":"mozMatchesSelector"in S.prototype?"mozMatchesSelector":"oMatchesSelector"in S.prototype?"oMatchesSelector":"msMatchesSelector",H.pEventTypes=H.supportsPointerEvent?L.PointerEvent===M.MSPointerEvent?{up:"MSPointerUp",down:"MSPointerDown",over:"mouseover",out:"mouseout",move:"MSPointerMove",cancel:"MSPointerCancel"}:{up:"pointerup",down:"pointerdown",over:"pointerover",out:"pointerout",move:"pointermove",cancel:"pointercancel"}:null,H.wheelEvent=L.document&&"onmousewheel"in L.document?"mousewheel":"wheel"},supportsTouch:null,supportsPointerEvent:null,isIOS7:null,isIOS:null,isIe9:null,isOperaMobile:null,prefixedMatchesSelector:null,pEventTypes:null,wheelEvent:null},K=H;function q(M,S){if(M.contains)return M.contains(S);for(;S;){if(S===M)return!0;S=S.parentNode}return!1}function z(M,S){for(;B.element(M);){if(ie(M,S))return M;M=J(M)}return null}function J(M){var S=M.parentNode;if(B.docFrag(S)){for(;(S=S.host)&&B.docFrag(S););return S}return S}function ie(M,S){return y!==v&&(S=S.replace(/\/deep\//g," ")),M[K.prefixedMatchesSelector](S)}var X=function(M){return M.parentNode||M.host};function I(M,S){for(var O,Y=[],V=M;(O=X(V))&&V!==S&&O!==V.ownerDocument;)Y.unshift(V),V=O;return Y}function W(M,S,O){for(;B.element(M);){if(ie(M,S))return!0;if((M=J(M))===O)return ie(M,S)}return!1}function ee(M){return M.correspondingUseElement||M}function ne(M){var S=M instanceof L.SVGElement?M.getBoundingClientRect():M.getClientRects()[0];return S&&{left:S.left,right:S.right,top:S.top,bottom:S.bottom,width:S.width||S.right-S.left,height:S.height||S.bottom-S.top}}function pe(M){var S,O=ne(M);if(!K.isIOS7&&O){var Y={x:(S=(S=b(M))||y).scrollX||S.document.documentElement.scrollLeft,y:S.scrollY||S.document.documentElement.scrollTop};O.left+=Y.x,O.right+=Y.x,O.top+=Y.y,O.bottom+=Y.y}return O}function he(M){for(var S=[];M;)S.push(M),M=J(M);return S}function ve(M){return!!B.string(M)&&(L.document.querySelector(M),!0)}function ue(M,S){for(var O in S)M[O]=S[O];return M}function _e(M,S,O){return M==="parent"?J(O):M==="self"?S.getRect(O):z(O,M)}function Le(M,S,O,Y){var V=M;return B.string(V)?V=_e(V,S,O):B.func(V)&&(V=V.apply(void 0,Y)),B.element(V)&&(V=pe(V)),V}function Me(M){return M&&{x:"x"in M?M.x:M.left,y:"y"in M?M.y:M.top}}function Pe(M){return!M||"x"in M&&"y"in M||((M=ue({},M)).x=M.left||0,M.y=M.top||0,M.width=M.width||(M.right||0)-M.x,M.height=M.height||(M.bottom||0)-M.y),M}function Q(M,S,O){M.left&&(S.left+=O.x),M.right&&(S.right+=O.x),M.top&&(S.top+=O.y),M.bottom&&(S.bottom+=O.y),S.width=S.right-S.left,S.height=S.bottom-S.top}function te(M,S,O){var Y=O&&M.options[O];return Me(Le(Y&&Y.origin||M.options.origin,M,S,[M&&S]))||{x:0,y:0}}function ce(M,S){var O=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(be){return!0},Y=arguments.length>3?arguments[3]:void 0;if(Y=Y||{},B.string(M)&&M.search(" ")!==-1&&(M=$(M)),B.array(M))return M.forEach(function(be){return ce(be,S,O,Y)}),Y;if(B.object(M)&&(S=M,M=""),B.func(S)&&O(M))Y[M]=Y[M]||[],Y[M].push(S);else if(B.array(S))for(var V=0,re=S;V<re.length;V++){var le=re[V];ce(M,le,O,Y)}else if(B.object(S))for(var fe in S)ce($(fe).map(function(be){return"".concat(M).concat(be)}),S[fe],O,Y);return Y}function $(M){return M.trim().split(/ +/)}var Z=function(M,S){return Math.sqrt(M*M+S*S)},ae=["webkit","moz"];function Be(M,S){M.__set||(M.__set={});var O=function(V){if(ae.some(function(re){return V.indexOf(re)===0}))return 1;typeof M[V]!="function"&&V!=="__set"&&Object.defineProperty(M,V,{get:function(){return V in M.__set?M.__set[V]:M.__set[V]=S[V]},set:function(re){M.__set[V]=re},configurable:!0})};for(var Y in S)O(Y);return M}function Ee(M,S){M.page=M.page||{},M.page.x=S.page.x,M.page.y=S.page.y,M.client=M.client||{},M.client.x=S.client.x,M.client.y=S.client.y,M.timeStamp=S.timeStamp}function Se(M){M.page.x=0,M.page.y=0,M.client.x=0,M.client.y=0}function Ye(M){return M instanceof L.Event||M instanceof L.Touch}function Te(M,S,O){return M=M||"page",(O=O||{}).x=S[M+"X"],O.y=S[M+"Y"],O}function Ie(M,S){return S=S||{x:0,y:0},K.isOperaMobile&&Ye(M)?(Te("screen",M,S),S.x+=window.scrollX,S.y+=window.scrollY):Te("page",M,S),S}function Ge(M){return B.number(M.pointerId)?M.pointerId:M.identifier}function at(M,S,O){var Y=S.length>1?pt(S):S[0];Ie(Y,M.page),function(V,re){re=re||{},K.isOperaMobile&&Ye(V)?Te("screen",V,re):Te("client",V,re)}(Y,M.client),M.timeStamp=O}function tt(M){var S=[];return B.array(M)?(S[0]=M[0],S[1]=M[1]):M.type==="touchend"?M.touches.length===1?(S[0]=M.touches[0],S[1]=M.changedTouches[0]):M.touches.length===0&&(S[0]=M.changedTouches[0],S[1]=M.changedTouches[1]):(S[0]=M.touches[0],S[1]=M.touches[1]),S}function pt(M){for(var S={pageX:0,pageY:0,clientX:0,clientY:0,screenX:0,screenY:0},O=0;O<M.length;O++){var Y=M[O];for(var V in S)S[V]+=Y[V]}for(var re in S)S[re]/=M.length;return S}function _t(M){if(!M.length)return null;var S=tt(M),O=Math.min(S[0].pageX,S[1].pageX),Y=Math.min(S[0].pageY,S[1].pageY),V=Math.max(S[0].pageX,S[1].pageX),re=Math.max(S[0].pageY,S[1].pageY);return{x:O,y:Y,left:O,top:Y,right:V,bottom:re,width:V-O,height:re-Y}}function vt(M,S){var O=S+"X",Y=S+"Y",V=tt(M),re=V[0][O]-V[1][O],le=V[0][Y]-V[1][Y];return Z(re,le)}function sn(M,S){var O=S+"X",Y=S+"Y",V=tt(M),re=V[1][O]-V[0][O],le=V[1][Y]-V[0][Y];return 180*Math.atan2(le,re)/Math.PI}function xt(M){return B.string(M.pointerType)?M.pointerType:B.number(M.pointerType)?[void 0,void 0,"touch","pen","mouse"][M.pointerType]:/touch/.test(M.type||"")||M instanceof L.Touch?"touch":"mouse"}function kt(M){var S=B.func(M.composedPath)?M.composedPath():M.path;return[ee(S?S[0]:M.target),ee(M.currentTarget)]}var bt=function(){function M(S){a(this,M),this.immediatePropagationStopped=!1,this.propagationStopped=!1,this._interaction=S}return s(M,[{key:"preventDefault",value:function(){}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}}]),M}();Object.defineProperty(bt.prototype,"interaction",{get:function(){return this._interaction._proxy},set:function(){}});var an=function(M,S){for(var O=0;O<S.length;O++){var Y=S[O];M.push(Y)}return M},Mt=function(M){return an([],M)},cn=function(M,S){for(var O=0;O<M.length;O++)if(S(M[O],O,M))return O;return-1},Ct=function(M,S){return M[cn(M,S)]},Ut=function(M){c(O,M);var S=d(O);function O(Y,V,re){var le;a(this,O),(le=S.call(this,V._interaction)).dropzone=void 0,le.dragEvent=void 0,le.relatedTarget=void 0,le.draggable=void 0,le.propagationStopped=!1,le.immediatePropagationStopped=!1;var fe=re==="dragleave"?Y.prev:Y.cur,be=fe.element,Fe=fe.dropzone;return le.type=re,le.target=be,le.currentTarget=be,le.dropzone=Fe,le.dragEvent=V,le.relatedTarget=V.target,le.draggable=V.interactable,le.timeStamp=V.timeStamp,le}return s(O,[{key:"reject",value:function(){var Y=this,V=this._interaction.dropState;if(this.type==="dropactivate"||this.dropzone&&V.cur.dropzone===this.dropzone&&V.cur.element===this.target)if(V.prev.dropzone=this.dropzone,V.prev.element=this.target,V.rejected=!0,V.events.enter=null,this.stopImmediatePropagation(),this.type==="dropactivate"){var re=V.activeDrops,le=cn(re,function(be){var Fe=be.dropzone,ke=be.element;return Fe===Y.dropzone&&ke===Y.target});V.activeDrops.splice(le,1);var fe=new O(V,this.dragEvent,"dropdeactivate");fe.dropzone=this.dropzone,fe.target=this.target,this.dropzone.fire(fe)}else this.dropzone.fire(new O(V,this.dragEvent,"dragleave"))}},{key:"preventDefault",value:function(){}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}}]),O}(bt);function yn(M,S){for(var O=0,Y=M.slice();O<Y.length;O++){var V=Y[O],re=V.dropzone,le=V.element;S.dropzone=re,S.target=le,re.fire(S),S.propagationStopped=S.immediatePropagationStopped=!1}}function Lt(M,S){for(var O=function(re,le){for(var fe=[],be=0,Fe=re.interactables.list;be<Fe.length;be++){var ke=Fe[be];if(ke.options.drop.enabled){var Re=ke.options.drop.accept;if(!(B.element(Re)&&Re!==le||B.string(Re)&&!ie(le,Re)||B.func(Re)&&!Re({dropzone:ke,draggableElement:le})))for(var We=0,At=ke.getAllElements();We<At.length;We++){var lt=At[We];lt!==le&&fe.push({dropzone:ke,element:lt,rect:ke.getRect(lt)})}}}return fe}(M,S),Y=0;Y<O.length;Y++){var V=O[Y];V.rect=V.dropzone.getRect(V.element)}return O}function Dt(M,S,O){for(var Y=M.dropState,V=M.interactable,re=M.element,le=[],fe=0,be=Y.activeDrops;fe<be.length;fe++){var Fe=be[fe],ke=Fe.dropzone,Re=Fe.element,We=Fe.rect,At=ke.dropCheck(S,O,V,re,Re,We);le.push(At?Re:null)}var lt=function(ht){for(var St,wt,Vt,An=[],dn=0;dn<ht.length;dn++){var $t=ht[dn],Ft=ht[St];if($t&&dn!==St)if(Ft){var Sn=X($t),vn=X(Ft);if(Sn!==$t.ownerDocument)if(vn!==$t.ownerDocument)if(Sn!==vn){An=An.length?An:I(Ft);var rr=void 0;if(Ft instanceof L.HTMLElement&&$t instanceof L.SVGElement&&!($t instanceof L.SVGSVGElement)){if($t===vn)continue;rr=$t.ownerSVGElement}else rr=$t;for(var Di=I(rr,Ft.ownerDocument),wo=0;Di[wo]&&Di[wo]===An[wo];)wo++;var Xl=[Di[wo-1],Di[wo],An[wo]];if(Xl[0])for(var Qu=Xl[0].lastChild;Qu;){if(Qu===Xl[1]){St=dn,An=Di;break}if(Qu===Xl[2])break;Qu=Qu.previousSibling}}else Vt=Ft,(parseInt(b(wt=$t).getComputedStyle(wt).zIndex,10)||0)>=(parseInt(b(Vt).getComputedStyle(Vt).zIndex,10)||0)&&(St=dn);else St=dn}else St=dn}return St}(le);return Y.activeDrops[lt]||null}function wn(M,S,O){var Y=M.dropState,V={enter:null,leave:null,activate:null,deactivate:null,move:null,drop:null};return O.type==="dragstart"&&(V.activate=new Ut(Y,O,"dropactivate"),V.activate.target=null,V.activate.dropzone=null),O.type==="dragend"&&(V.deactivate=new Ut(Y,O,"dropdeactivate"),V.deactivate.target=null,V.deactivate.dropzone=null),Y.rejected||(Y.cur.element!==Y.prev.element&&(Y.prev.dropzone&&(V.leave=new Ut(Y,O,"dragleave"),O.dragLeave=V.leave.target=Y.prev.element,O.prevDropzone=V.leave.dropzone=Y.prev.dropzone),Y.cur.dropzone&&(V.enter=new Ut(Y,O,"dragenter"),O.dragEnter=Y.cur.element,O.dropzone=Y.cur.dropzone)),O.type==="dragend"&&Y.cur.dropzone&&(V.drop=new Ut(Y,O,"drop"),O.dropzone=Y.cur.dropzone,O.relatedTarget=Y.cur.element),O.type==="dragmove"&&Y.cur.dropzone&&(V.move=new Ut(Y,O,"dropmove"),O.dropzone=Y.cur.dropzone)),V}function Xi(M,S){var O=M.dropState,Y=O.activeDrops,V=O.cur,re=O.prev;S.leave&&re.dropzone.fire(S.leave),S.enter&&V.dropzone.fire(S.enter),S.move&&V.dropzone.fire(S.move),S.drop&&V.dropzone.fire(S.drop),S.deactivate&&yn(Y,S.deactivate),O.prev.dropzone=V.dropzone,O.prev.element=V.element}function _n(M,S){var O=M.interaction,Y=M.iEvent,V=M.event;if(Y.type==="dragmove"||Y.type==="dragend"){var re=O.dropState;S.dynamicDrop&&(re.activeDrops=Lt(S,O.element));var le=Y,fe=Dt(O,le,V);re.rejected=re.rejected&&!!fe&&fe.dropzone===re.cur.dropzone&&fe.element===re.cur.element,re.cur.dropzone=fe&&fe.dropzone,re.cur.element=fe&&fe.element,re.events=wn(O,0,le)}}var Kr={id:"actions/drop",install:function(M){var S=M.actions,O=M.interactStatic,Y=M.Interactable,V=M.defaults;M.usePlugin(k),Y.prototype.dropzone=function(re){return function(le,fe){if(B.object(fe)){if(le.options.drop.enabled=fe.enabled!==!1,fe.listeners){var be=ce(fe.listeners),Fe=Object.keys(be).reduce(function(Re,We){return Re[/^(enter|leave)/.test(We)?"drag".concat(We):/^(activate|deactivate|move)/.test(We)?"drop".concat(We):We]=be[We],Re},{}),ke=le.options.drop.listeners;ke&&le.off(ke),le.on(Fe),le.options.drop.listeners=Fe}return B.func(fe.ondrop)&&le.on("drop",fe.ondrop),B.func(fe.ondropactivate)&&le.on("dropactivate",fe.ondropactivate),B.func(fe.ondropdeactivate)&&le.on("dropdeactivate",fe.ondropdeactivate),B.func(fe.ondragenter)&&le.on("dragenter",fe.ondragenter),B.func(fe.ondragleave)&&le.on("dragleave",fe.ondragleave),B.func(fe.ondropmove)&&le.on("dropmove",fe.ondropmove),/^(pointer|center)$/.test(fe.overlap)?le.options.drop.overlap=fe.overlap:B.number(fe.overlap)&&(le.options.drop.overlap=Math.max(Math.min(1,fe.overlap),0)),"accept"in fe&&(le.options.drop.accept=fe.accept),"checker"in fe&&(le.options.drop.checker=fe.checker),le}return B.bool(fe)?(le.options.drop.enabled=fe,le):le.options.drop}(this,re)},Y.prototype.dropCheck=function(re,le,fe,be,Fe,ke){return function(Re,We,At,lt,ht,St,wt){var Vt=!1;if(!(wt=wt||Re.getRect(St)))return!!Re.options.drop.checker&&Re.options.drop.checker(We,At,Vt,Re,St,lt,ht);var An=Re.options.drop.overlap;if(An==="pointer"){var dn=te(lt,ht,"drag"),$t=Ie(We);$t.x+=dn.x,$t.y+=dn.y;var Ft=$t.x>wt.left&&$t.x<wt.right,Sn=$t.y>wt.top&&$t.y<wt.bottom;Vt=Ft&&Sn}var vn=lt.getRect(ht);if(vn&&An==="center"){var rr=vn.left+vn.width/2,Di=vn.top+vn.height/2;Vt=rr>=wt.left&&rr<=wt.right&&Di>=wt.top&&Di<=wt.bottom}return vn&&B.number(An)&&(Vt=Math.max(0,Math.min(wt.right,vn.right)-Math.max(wt.left,vn.left))*Math.max(0,Math.min(wt.bottom,vn.bottom)-Math.max(wt.top,vn.top))/(vn.width*vn.height)>=An),Re.options.drop.checker&&(Vt=Re.options.drop.checker(We,At,Vt,Re,St,lt,ht)),Vt}(this,re,le,fe,be,Fe,ke)},O.dynamicDrop=function(re){return B.bool(re)?(M.dynamicDrop=re,O):M.dynamicDrop},ue(S.phaselessTypes,{dragenter:!0,dragleave:!0,dropactivate:!0,dropdeactivate:!0,dropmove:!0,drop:!0}),S.methodDict.drop="dropzone",M.dynamicDrop=!1,V.actions.drop=Kr.defaults},listeners:{"interactions:before-action-start":function(M){var S=M.interaction;S.prepared.name==="drag"&&(S.dropState={cur:{dropzone:null,element:null},prev:{dropzone:null,element:null},rejected:null,events:null,activeDrops:[]})},"interactions:after-action-start":function(M,S){var O=M.interaction,Y=(M.event,M.iEvent);if(O.prepared.name==="drag"){var V=O.dropState;V.activeDrops=[],V.events={},V.activeDrops=Lt(S,O.element),V.events=wn(O,0,Y),V.events.activate&&(yn(V.activeDrops,V.events.activate),S.fire("actions/drop:start",{interaction:O,dragEvent:Y}))}},"interactions:action-move":_n,"interactions:after-action-move":function(M,S){var O=M.interaction,Y=M.iEvent;if(O.prepared.name==="drag"){var V=O.dropState;Xi(O,V.events),S.fire("actions/drop:move",{interaction:O,dragEvent:Y}),V.events={}}},"interactions:action-end":function(M,S){if(M.interaction.prepared.name==="drag"){var O=M.interaction,Y=M.iEvent;_n(M,S),Xi(O,O.dropState.events),S.fire("actions/drop:end",{interaction:O,dragEvent:Y})}},"interactions:stop":function(M){var S=M.interaction;if(S.prepared.name==="drag"){var O=S.dropState;O&&(O.activeDrops=null,O.events=null,O.cur.dropzone=null,O.cur.element=null,O.prev.dropzone=null,O.prev.element=null,O.rejected=!1)}}},getActiveDrops:Lt,getDrop:Dt,getDropEvents:wn,fireDropEvents:Xi,filterEventType:function(M){return M.search("drag")===0||M.search("drop")===0},defaults:{enabled:!1,accept:null,overlap:"pointer"}},oi=Kr;function Gt(M){var S=M.interaction,O=M.iEvent,Y=M.phase;if(S.prepared.name==="gesture"){var V=S.pointers.map(function(Fe){return Fe.pointer}),re=Y==="start",le=Y==="end",fe=S.interactable.options.deltaSource;if(O.touches=[V[0],V[1]],re)O.distance=vt(V,fe),O.box=_t(V),O.scale=1,O.ds=0,O.angle=sn(V,fe),O.da=0,S.gesture.startDistance=O.distance,S.gesture.startAngle=O.angle;else if(le||S.pointers.length<2){var be=S.prevEvent;O.distance=be.distance,O.box=be.box,O.scale=be.scale,O.ds=0,O.angle=be.angle,O.da=0}else O.distance=vt(V,fe),O.box=_t(V),O.scale=O.distance/S.gesture.startDistance,O.angle=sn(V,fe),O.ds=O.scale-S.gesture.scale,O.da=O.angle-S.gesture.angle;S.gesture.distance=O.distance,S.gesture.angle=O.angle,B.number(O.scale)&&O.scale!==1/0&&!isNaN(O.scale)&&(S.gesture.scale=O.scale)}}var Fr={id:"actions/gesture",before:["actions/drag","actions/resize"],install:function(M){var S=M.actions,O=M.Interactable,Y=M.defaults;O.prototype.gesturable=function(V){return B.object(V)?(this.options.gesture.enabled=V.enabled!==!1,this.setPerAction("gesture",V),this.setOnEvents("gesture",V),this):B.bool(V)?(this.options.gesture.enabled=V,this):this.options.gesture},S.map.gesture=Fr,S.methodDict.gesture="gesturable",Y.actions.gesture=Fr.defaults},listeners:{"interactions:action-start":Gt,"interactions:action-move":Gt,"interactions:action-end":Gt,"interactions:new":function(M){M.interaction.gesture={angle:0,distance:0,scale:1,startAngle:0,startDistance:0}},"auto-start:check":function(M){if(!(M.interaction.pointers.length<2)){var S=M.interactable.options.gesture;if(S&&S.enabled)return M.action={name:"gesture"},!1}}},defaults:{},getCursor:function(){return""},filterEventType:function(M){return M.search("gesture")===0}},fa=Fr;function Ei(M,S,O,Y,V,re,le){if(!S)return!1;if(S===!0){var fe=B.number(re.width)?re.width:re.right-re.left,be=B.number(re.height)?re.height:re.bottom-re.top;if(le=Math.min(le,Math.abs((M==="left"||M==="right"?fe:be)/2)),fe<0&&(M==="left"?M="right":M==="right"&&(M="left")),be<0&&(M==="top"?M="bottom":M==="bottom"&&(M="top")),M==="left"){var Fe=fe>=0?re.left:re.right;return O.x<Fe+le}if(M==="top"){var ke=be>=0?re.top:re.bottom;return O.y<ke+le}if(M==="right")return O.x>(fe>=0?re.right:re.left)-le;if(M==="bottom")return O.y>(be>=0?re.bottom:re.top)-le}return!!B.element(Y)&&(B.element(S)?S===Y:W(Y,S,V))}function Li(M){var S=M.iEvent,O=M.interaction;if(O.prepared.name==="resize"&&O.resizeAxes){var Y=S;O.interactable.options.resize.square?(O.resizeAxes==="y"?Y.delta.x=Y.delta.y:Y.delta.y=Y.delta.x,Y.axes="xy"):(Y.axes=O.resizeAxes,O.resizeAxes==="x"?Y.delta.y=0:O.resizeAxes==="y"&&(Y.delta.x=0))}}var fn,Hn,hn={id:"actions/resize",before:["actions/drag"],install:function(M){var S=M.actions,O=M.browser,Y=M.Interactable,V=M.defaults;hn.cursors=function(re){return re.isIe9?{x:"e-resize",y:"s-resize",xy:"se-resize",top:"n-resize",left:"w-resize",bottom:"s-resize",right:"e-resize",topleft:"se-resize",bottomright:"se-resize",topright:"ne-resize",bottomleft:"ne-resize"}:{x:"ew-resize",y:"ns-resize",xy:"nwse-resize",top:"ns-resize",left:"ew-resize",bottom:"ns-resize",right:"ew-resize",topleft:"nwse-resize",bottomright:"nwse-resize",topright:"nesw-resize",bottomleft:"nesw-resize"}}(O),hn.defaultMargin=O.supportsTouch||O.supportsPointerEvent?20:10,Y.prototype.resizable=function(re){return function(le,fe,be){return B.object(fe)?(le.options.resize.enabled=fe.enabled!==!1,le.setPerAction("resize",fe),le.setOnEvents("resize",fe),B.string(fe.axis)&&/^x$|^y$|^xy$/.test(fe.axis)?le.options.resize.axis=fe.axis:fe.axis===null&&(le.options.resize.axis=be.defaults.actions.resize.axis),B.bool(fe.preserveAspectRatio)?le.options.resize.preserveAspectRatio=fe.preserveAspectRatio:B.bool(fe.square)&&(le.options.resize.square=fe.square),le):B.bool(fe)?(le.options.resize.enabled=fe,le):le.options.resize}(this,re,M)},S.map.resize=hn,S.methodDict.resize="resizable",V.actions.resize=hn.defaults},listeners:{"interactions:new":function(M){M.interaction.resizeAxes="xy"},"interactions:action-start":function(M){(function(S){var O=S.iEvent,Y=S.interaction;if(Y.prepared.name==="resize"&&Y.prepared.edges){var V=O,re=Y.rect;Y._rects={start:ue({},re),corrected:ue({},re),previous:ue({},re),delta:{left:0,right:0,width:0,top:0,bottom:0,height:0}},V.edges=Y.prepared.edges,V.rect=Y._rects.corrected,V.deltaRect=Y._rects.delta}})(M),Li(M)},"interactions:action-move":function(M){(function(S){var O=S.iEvent,Y=S.interaction;if(Y.prepared.name==="resize"&&Y.prepared.edges){var V=O,re=Y.interactable.options.resize.invert,le=re==="reposition"||re==="negate",fe=Y.rect,be=Y._rects,Fe=be.start,ke=be.corrected,Re=be.delta,We=be.previous;if(ue(We,ke),le){if(ue(ke,fe),re==="reposition"){if(ke.top>ke.bottom){var At=ke.top;ke.top=ke.bottom,ke.bottom=At}if(ke.left>ke.right){var lt=ke.left;ke.left=ke.right,ke.right=lt}}}else ke.top=Math.min(fe.top,Fe.bottom),ke.bottom=Math.max(fe.bottom,Fe.top),ke.left=Math.min(fe.left,Fe.right),ke.right=Math.max(fe.right,Fe.left);for(var ht in ke.width=ke.right-ke.left,ke.height=ke.bottom-ke.top,ke)Re[ht]=ke[ht]-We[ht];V.edges=Y.prepared.edges,V.rect=ke,V.deltaRect=Re}})(M),Li(M)},"interactions:action-end":function(M){var S=M.iEvent,O=M.interaction;if(O.prepared.name==="resize"&&O.prepared.edges){var Y=S;Y.edges=O.prepared.edges,Y.rect=O._rects.corrected,Y.deltaRect=O._rects.delta}},"auto-start:check":function(M){var S=M.interaction,O=M.interactable,Y=M.element,V=M.rect,re=M.buttons;if(V){var le=ue({},S.coords.cur.page),fe=O.options.resize;if(fe&&fe.enabled&&(!S.pointerIsDown||!/mouse|pointer/.test(S.pointerType)||(re&fe.mouseButtons)!=0)){if(B.object(fe.edges)){var be={left:!1,right:!1,top:!1,bottom:!1};for(var Fe in be)be[Fe]=Ei(Fe,fe.edges[Fe],le,S._latestPointer.eventTarget,Y,V,fe.margin||hn.defaultMargin);be.left=be.left&&!be.right,be.top=be.top&&!be.bottom,(be.left||be.right||be.top||be.bottom)&&(M.action={name:"resize",edges:be})}else{var ke=fe.axis!=="y"&&le.x>V.right-hn.defaultMargin,Re=fe.axis!=="x"&&le.y>V.bottom-hn.defaultMargin;(ke||Re)&&(M.action={name:"resize",axes:(ke?"x":"")+(Re?"y":"")})}return!M.action&&void 0}}}},defaults:{square:!1,preserveAspectRatio:!1,axis:"xy",margin:NaN,edges:null,invert:"none"},cursors:null,getCursor:function(M){var S=M.edges,O=M.axis,Y=M.name,V=hn.cursors,re=null;if(O)re=V[Y+O];else if(S){for(var le="",fe=0,be=["top","bottom","left","right"];fe<be.length;fe++){var Fe=be[fe];S[Fe]&&(le+=Fe)}re=V[le]}return re},filterEventType:function(M){return M.search("resize")===0},defaultMargin:null},to=hn,ha={id:"actions",install:function(M){M.usePlugin(fa),M.usePlugin(to),M.usePlugin(k),M.usePlugin(oi)}},Ti=0,nr={request:function(M){return fn(M)},cancel:function(M){return Hn(M)},init:function(M){if(fn=M.requestAnimationFrame,Hn=M.cancelAnimationFrame,!fn)for(var S=["ms","moz","webkit","o"],O=0;O<S.length;O++){var Y=S[O];fn=M["".concat(Y,"RequestAnimationFrame")],Hn=M["".concat(Y,"CancelAnimationFrame")]||M["".concat(Y,"CancelRequestAnimationFrame")]}fn=fn&&fn.bind(M),Hn=Hn&&Hn.bind(M),fn||(fn=function(V){var re=Date.now(),le=Math.max(0,16-(re-Ti)),fe=M.setTimeout(function(){V(re+le)},le);return Ti=re+le,fe},Hn=function(V){return clearTimeout(V)})}},jt={defaults:{enabled:!1,margin:60,container:null,speed:300},now:Date.now,interaction:null,i:0,x:0,y:0,isScrolling:!1,prevTime:0,margin:0,speed:0,start:function(M){jt.isScrolling=!0,nr.cancel(jt.i),M.autoScroll=jt,jt.interaction=M,jt.prevTime=jt.now(),jt.i=nr.request(jt.scroll)},stop:function(){jt.isScrolling=!1,jt.interaction&&(jt.interaction.autoScroll=null),nr.cancel(jt.i)},scroll:function(){var M=jt.interaction,S=M.interactable,O=M.element,Y=M.prepared.name,V=S.options[Y].autoScroll,re=Zn(V.container,S,O),le=jt.now(),fe=(le-jt.prevTime)/1e3,be=V.speed*fe;if(be>=1){var Fe={x:jt.x*be,y:jt.y*be};if(Fe.x||Fe.y){var ke=gi(re);B.window(re)?re.scrollBy(Fe.x,Fe.y):re&&(re.scrollLeft+=Fe.x,re.scrollTop+=Fe.y);var Re=gi(re),We={x:Re.x-ke.x,y:Re.y-ke.y};(We.x||We.y)&&S.fire({type:"autoscroll",target:O,interactable:S,delta:We,interaction:M,container:re})}jt.prevTime=le}jt.isScrolling&&(nr.cancel(jt.i),jt.i=nr.request(jt.scroll))},check:function(M,S){var O;return(O=M.options[S].autoScroll)==null?void 0:O.enabled},onInteractionMove:function(M){var S=M.interaction,O=M.pointer;if(S.interacting()&&jt.check(S.interactable,S.prepared.name))if(S.simulation)jt.x=jt.y=0;else{var Y,V,re,le,fe=S.interactable,be=S.element,Fe=S.prepared.name,ke=fe.options[Fe].autoScroll,Re=Zn(ke.container,fe,be);if(B.window(Re))le=O.clientX<jt.margin,Y=O.clientY<jt.margin,V=O.clientX>Re.innerWidth-jt.margin,re=O.clientY>Re.innerHeight-jt.margin;else{var We=ne(Re);le=O.clientX<We.left+jt.margin,Y=O.clientY<We.top+jt.margin,V=O.clientX>We.right-jt.margin,re=O.clientY>We.bottom-jt.margin}jt.x=V?1:le?-1:0,jt.y=re?1:Y?-1:0,jt.isScrolling||(jt.margin=ke.margin,jt.speed=ke.speed,jt.start(S))}}};function Zn(M,S,O){return(B.string(M)?_e(M,S,O):M)||b(O)}function gi(M){return B.window(M)&&(M=window.document.body),{x:M.scrollLeft,y:M.scrollTop}}var no={id:"auto-scroll",install:function(M){var S=M.defaults,O=M.actions;M.autoScroll=jt,jt.now=function(){return M.now()},O.phaselessTypes.autoscroll=!0,S.perAction.autoScroll=jt.defaults},listeners:{"interactions:new":function(M){M.interaction.autoScroll=null},"interactions:destroy":function(M){M.interaction.autoScroll=null,jt.stop(),jt.interaction&&(jt.interaction=null)},"interactions:stop":jt.stop,"interactions:action-move":function(M){return jt.onInteractionMove(M)}}},pa=no;function Tt(M,S){var O=!1;return function(){return O||(y.console.warn(S),O=!0),M.apply(this,arguments)}}function Oe(M,S){return M.name=S.name,M.axis=S.axis,M.edges=S.edges,M}function ot(M){return B.bool(M)?(this.options.styleCursor=M,this):M===null?(delete this.options.styleCursor,this):this.options.styleCursor}function Et(M){return B.func(M)?(this.options.actionChecker=M,this):M===null?(delete this.options.actionChecker,this):this.options.actionChecker}var $n={id:"auto-start/interactableMethods",install:function(M){var S=M.Interactable;S.prototype.getAction=function(O,Y,V,re){var le=function(fe,be,Fe,ke,Re){var We=fe.getRect(ke),At=be.buttons||{0:1,1:4,3:8,4:16}[be.button],lt={action:null,interactable:fe,interaction:Fe,element:ke,rect:We,buttons:At};return Re.fire("auto-start:check",lt),lt.action}(this,Y,V,re,M);return this.options.actionChecker?this.options.actionChecker(O,Y,le,this,re,V):le},S.prototype.ignoreFrom=Tt(function(O){return this._backCompatOption("ignoreFrom",O)},"Interactable.ignoreFrom() has been deprecated. Use Interactble.draggable({ignoreFrom: newValue})."),S.prototype.allowFrom=Tt(function(O){return this._backCompatOption("allowFrom",O)},"Interactable.allowFrom() has been deprecated. Use Interactble.draggable({allowFrom: newValue})."),S.prototype.actionChecker=Et,S.prototype.styleCursor=ot}};function _r(M,S,O,Y,V){return S.testIgnoreAllow(S.options[M.name],O,Y)&&S.options[M.name].enabled&&vi(S,O,M,V)?M:null}function hr(M,S,O,Y,V,re,le){for(var fe=0,be=Y.length;fe<be;fe++){var Fe=Y[fe],ke=V[fe],Re=Fe.getAction(S,O,M,ke);if(Re){var We=_r(Re,Fe,ke,re,le);if(We)return{action:We,interactable:Fe,element:ke}}}return{action:null,interactable:null,element:null}}function Pr(M,S,O,Y,V){var re=[],le=[],fe=Y;function be(ke){re.push(ke),le.push(fe)}for(;B.element(fe);){re=[],le=[],V.interactables.forEachMatch(fe,be);var Fe=hr(M,S,O,re,le,Y,V);if(Fe.action&&!Fe.interactable.options[Fe.action.name].manualStart)return Fe;fe=J(fe)}return{action:null,interactable:null,element:null}}function cr(M,S,O){var Y=S.action,V=S.interactable,re=S.element;Y=Y||{name:null},M.interactable=V,M.element=re,Oe(M.prepared,Y),M.rect=V&&Y.name?V.getRect(re):null,ro(M,O),O.fire("autoStart:prepared",{interaction:M})}function vi(M,S,O,Y){var V=M.options,re=V[O.name].max,le=V[O.name].maxPerElement,fe=Y.autoStart.maxInteractions,be=0,Fe=0,ke=0;if(!(re&&le&&fe))return!1;for(var Re=0,We=Y.interactions.list;Re<We.length;Re++){var At=We[Re],lt=At.prepared.name;if(At.interacting()&&(++be>=fe||At.interactable===M&&((Fe+=lt===O.name?1:0)>=re||At.element===S&&(ke++,lt===O.name&&ke>=le))))return!1}return fe>0}function ma(M,S){return B.number(M)?(S.autoStart.maxInteractions=M,this):S.autoStart.maxInteractions}function zn(M,S,O){var Y=O.autoStart.cursorElement;Y&&Y!==M&&(Y.style.cursor=""),M.ownerDocument.documentElement.style.cursor=S,M.style.cursor=S,O.autoStart.cursorElement=S?M:null}function ro(M,S){var O=M.interactable,Y=M.element,V=M.prepared;if(M.pointerType==="mouse"&&O&&O.options.styleCursor){var re="";if(V.name){var le=O.options[V.name].cursorChecker;re=B.func(le)?le(V,O,Y,M._interacting):S.actions.map[V.name].getCursor(V)}zn(M.element,re||"",S)}else S.autoStart.cursorElement&&zn(S.autoStart.cursorElement,"",S)}var is={id:"auto-start/base",before:["actions"],install:function(M){var S=M.interactStatic,O=M.defaults;M.usePlugin($n),O.base.actionChecker=null,O.base.styleCursor=!0,ue(O.perAction,{manualStart:!1,max:1/0,maxPerElement:1,allowFrom:null,ignoreFrom:null,mouseButtons:1}),S.maxInteractions=function(Y){return ma(Y,M)},M.autoStart={maxInteractions:1/0,withinInteractionLimit:vi,cursorElement:null}},listeners:{"interactions:down":function(M,S){var O=M.interaction,Y=M.pointer,V=M.event,re=M.eventTarget;O.interacting()||cr(O,Pr(O,Y,V,re,S),S)},"interactions:move":function(M,S){(function(O,Y){var V=O.interaction,re=O.pointer,le=O.event,fe=O.eventTarget;V.pointerType!=="mouse"||V.pointerIsDown||V.interacting()||cr(V,Pr(V,re,le,fe,Y),Y)})(M,S),function(O,Y){var V=O.interaction;if(V.pointerIsDown&&!V.interacting()&&V.pointerWasMoved&&V.prepared.name){Y.fire("autoStart:before-start",O);var re=V.interactable,le=V.prepared.name;le&&re&&(re.options[le].manualStart||!vi(re,V.element,V.prepared,Y)?V.stop():(V.start(V.prepared,re,V.element),ro(V,Y)))}}(M,S)},"interactions:stop":function(M,S){var O=M.interaction,Y=O.interactable;Y&&Y.options.styleCursor&&zn(O.element,"",S)}},maxInteractions:ma,withinInteractionLimit:vi,validateAction:_r},Vs=is,io={id:"auto-start/dragAxis",listeners:{"autoStart:before-start":function(M,S){var O=M.interaction,Y=M.eventTarget,V=M.dx,re=M.dy;if(O.prepared.name==="drag"){var le=Math.abs(V),fe=Math.abs(re),be=O.interactable.options.drag,Fe=be.startAxis,ke=le>fe?"x":le<fe?"y":"xy";if(O.prepared.axis=be.lockAxis==="start"?ke[0]:be.lockAxis,ke!=="xy"&&Fe!=="xy"&&Fe!==ke){O.prepared.name=null;for(var Re=Y,We=function(lt){if(lt!==O.interactable){var ht=O.interactable.options.drag;if(!ht.manualStart&&lt.testIgnoreAllow(ht,Re,Y)){var St=lt.getAction(O.downPointer,O.downEvent,O,Re);if(St&&St.name==="drag"&&function(wt,Vt){if(!Vt)return!1;var An=Vt.options.drag.startAxis;return wt==="xy"||An==="xy"||An===wt}(ke,lt)&&Vs.validateAction(St,lt,Re,Y,S))return lt}}};B.element(Re);){var At=S.interactables.forEachMatch(Re,We);if(At){O.prepared.name="drag",O.interactable=At,O.element=Re;break}Re=J(Re)}}}}}};function Ho(M){var S=M.prepared&&M.prepared.name;if(!S)return null;var O=M.interactable.options;return O[S].hold||O[S].delay}var zc={id:"auto-start/hold",install:function(M){var S=M.defaults;M.usePlugin(Vs),S.perAction.hold=0,S.perAction.delay=0},listeners:{"interactions:new":function(M){M.interaction.autoStartHoldTimer=null},"autoStart:prepared":function(M){var S=M.interaction,O=Ho(S);O>0&&(S.autoStartHoldTimer=setTimeout(function(){S.start(S.prepared,S.interactable,S.element)},O))},"interactions:move":function(M){var S=M.interaction,O=M.duplicate;S.autoStartHoldTimer&&S.pointerWasMoved&&!O&&(clearTimeout(S.autoStartHoldTimer),S.autoStartHoldTimer=null)},"autoStart:before-start":function(M){var S=M.interaction;Ho(S)>0&&(S.prepared.name=null)}},getHoldDuration:Ho},br=zc,zs={id:"auto-start",install:function(M){M.usePlugin(Vs),M.usePlugin(br),M.usePlugin(io)}},ji=function(M){return/^(always|never|auto)$/.test(M)?(this.options.preventDefault=M,this):B.bool(M)?(this.options.preventDefault=M?"always":"never",this):this.options.preventDefault};function as(M){var S=M.interaction,O=M.event;S.interactable&&S.interactable.checkAndPreventDefault(O)}var qs={id:"core/interactablePreventDefault",install:function(M){var S=M.Interactable;S.prototype.preventDefault=ji,S.prototype.checkAndPreventDefault=function(O){return function(Y,V,re){var le=Y.options.preventDefault;if(le!=="never")if(le!=="always"){if(V.events.supportsPassive&&/^touch(start|move)$/.test(re.type)){var fe=b(re.target).document,be=V.getDocOptions(fe);if(!be||!be.events||be.events.passive!==!1)return}/^(mouse|pointer|touch)*(down|start)/i.test(re.type)||B.element(re.target)&&ie(re.target,"input,select,textarea,[contenteditable=true],[contenteditable=true] *")||re.preventDefault()}else re.preventDefault()}(this,M,O)},M.interactions.docEvents.push({type:"dragstart",listener:function(O){for(var Y=0,V=M.interactions.list;Y<V.length;Y++){var re=V[Y];if(re.element&&(re.element===O.target||q(re.element,O.target)))return void re.interactable.checkAndPreventDefault(O)}}})},listeners:["down","move","up","cancel"].reduce(function(M,S){return M["interactions:".concat(S)]=as,M},{})};function Ni(M,S){if(S.phaselessTypes[M])return!0;for(var O in S.map)if(M.indexOf(O)===0&&M.substr(O.length)in S.phases)return!0;return!1}function gr(M){var S={};for(var O in M){var Y=M[O];B.plainObject(Y)?S[O]=gr(Y):B.array(Y)?S[O]=Mt(Y):S[O]=Y}return S}var Sa=function(){function M(S){a(this,M),this.states=[],this.startOffset={left:0,right:0,top:0,bottom:0},this.startDelta=void 0,this.result=void 0,this.endResult=void 0,this.startEdges=void 0,this.edges=void 0,this.interaction=void 0,this.interaction=S,this.result=os(),this.edges={left:!1,right:!1,top:!1,bottom:!1}}return s(M,[{key:"start",value:function(S,O){var Y,V,re=S.phase,le=this.interaction,fe=function(Fe){var ke=Fe.interactable.options[Fe.prepared.name],Re=ke.modifiers;return Re&&Re.length?Re:["snap","snapSize","snapEdges","restrict","restrictEdges","restrictSize"].map(function(We){var At=ke[We];return At&&At.enabled&&{options:At,methods:At._methods}}).filter(function(We){return!!We})}(le);this.prepareStates(fe),this.startEdges=ue({},le.edges),this.edges=ue({},this.startEdges),this.startOffset=(Y=le.rect,V=O,Y?{left:V.x-Y.left,top:V.y-Y.top,right:Y.right-V.x,bottom:Y.bottom-V.y}:{left:0,top:0,right:0,bottom:0}),this.startDelta={x:0,y:0};var be=this.fillArg({phase:re,pageCoords:O,preEnd:!1});return this.result=os(),this.startAll(be),this.result=this.setAll(be)}},{key:"fillArg",value:function(S){var O=this.interaction;return S.interaction=O,S.interactable=O.interactable,S.element=O.element,S.rect||(S.rect=O.rect),S.edges||(S.edges=this.startEdges),S.startOffset=this.startOffset,S}},{key:"startAll",value:function(S){for(var O=0,Y=this.states;O<Y.length;O++){var V=Y[O];V.methods.start&&(S.state=V,V.methods.start(S))}}},{key:"setAll",value:function(S){var O=S.phase,Y=S.preEnd,V=S.skipModifiers,re=S.rect,le=S.edges;S.coords=ue({},S.pageCoords),S.rect=ue({},re),S.edges=ue({},le);for(var fe=V?this.states.slice(V):this.states,be=os(S.coords,S.rect),Fe=0;Fe<fe.length;Fe++){var ke,Re=fe[Fe],We=Re.options,At=ue({},S.coords),lt=null;(ke=Re.methods)!=null&&ke.set&&this.shouldDo(We,Y,O)&&(S.state=Re,lt=Re.methods.set(S),Q(S.edges,S.rect,{x:S.coords.x-At.x,y:S.coords.y-At.y})),be.eventProps.push(lt)}ue(this.edges,S.edges),be.delta.x=S.coords.x-S.pageCoords.x,be.delta.y=S.coords.y-S.pageCoords.y,be.rectDelta.left=S.rect.left-re.left,be.rectDelta.right=S.rect.right-re.right,be.rectDelta.top=S.rect.top-re.top,be.rectDelta.bottom=S.rect.bottom-re.bottom;var ht=this.result.coords,St=this.result.rect;if(ht&&St){var wt=be.rect.left!==St.left||be.rect.right!==St.right||be.rect.top!==St.top||be.rect.bottom!==St.bottom;be.changed=wt||ht.x!==be.coords.x||ht.y!==be.coords.y}return be}},{key:"applyToInteraction",value:function(S){var O=this.interaction,Y=S.phase,V=O.coords.cur,re=O.coords.start,le=this.result,fe=this.startDelta,be=le.delta;Y==="start"&&ue(this.startDelta,le.delta);for(var Fe=0,ke=[[re,fe],[V,be]];Fe<ke.length;Fe++){var Re=ke[Fe],We=Re[0],At=Re[1];We.page.x+=At.x,We.page.y+=At.y,We.client.x+=At.x,We.client.y+=At.y}var lt=this.result.rectDelta,ht=S.rect||O.rect;ht.left+=lt.left,ht.right+=lt.right,ht.top+=lt.top,ht.bottom+=lt.bottom,ht.width=ht.right-ht.left,ht.height=ht.bottom-ht.top}},{key:"setAndApply",value:function(S){var O=this.interaction,Y=S.phase,V=S.preEnd,re=S.skipModifiers,le=this.setAll(this.fillArg({preEnd:V,phase:Y,pageCoords:S.modifiedCoords||O.coords.cur.page}));if(this.result=le,!le.changed&&(!re||re<this.states.length)&&O.interacting())return!1;if(S.modifiedCoords){var fe=O.coords.cur.page,be={x:S.modifiedCoords.x-fe.x,y:S.modifiedCoords.y-fe.y};le.coords.x+=be.x,le.coords.y+=be.y,le.delta.x+=be.x,le.delta.y+=be.y}this.applyToInteraction(S)}},{key:"beforeEnd",value:function(S){var O=S.interaction,Y=S.event,V=this.states;if(V&&V.length){for(var re=!1,le=0;le<V.length;le++){var fe=V[le];S.state=fe;var be=fe.options,Fe=fe.methods,ke=Fe.beforeEnd&&Fe.beforeEnd(S);if(ke)return this.endResult=ke,!1;re=re||!re&&this.shouldDo(be,!0,S.phase,!0)}re&&O.move({event:Y,preEnd:!0})}}},{key:"stop",value:function(S){var O=S.interaction;if(this.states&&this.states.length){var Y=ue({states:this.states,interactable:O.interactable,element:O.element,rect:null},S);this.fillArg(Y);for(var V=0,re=this.states;V<re.length;V++){var le=re[V];Y.state=le,le.methods.stop&&le.methods.stop(Y)}this.states=null,this.endResult=null}}},{key:"prepareStates",value:function(S){this.states=[];for(var O=0;O<S.length;O++){var Y=S[O],V=Y.options,re=Y.methods,le=Y.name;this.states.push({options:V,methods:re,index:O,name:le})}return this.states}},{key:"restoreInteractionCoords",value:function(S){var O=S.interaction,Y=O.coords,V=O.rect,re=O.modification;if(re.result){for(var le=re.startDelta,fe=re.result,be=fe.delta,Fe=fe.rectDelta,ke=0,Re=[[Y.start,le],[Y.cur,be]];ke<Re.length;ke++){var We=Re[ke],At=We[0],lt=We[1];At.page.x-=lt.x,At.page.y-=lt.y,At.client.x-=lt.x,At.client.y-=lt.y}V.left-=Fe.left,V.right-=Fe.right,V.top-=Fe.top,V.bottom-=Fe.bottom}}},{key:"shouldDo",value:function(S,O,Y,V){return!(!S||S.enabled===!1||V&&!S.endOnly||S.endOnly&&!O||Y==="start"&&!S.setStart)}},{key:"copyFrom",value:function(S){this.startOffset=S.startOffset,this.startDelta=S.startDelta,this.startEdges=S.startEdges,this.edges=S.edges,this.states=S.states.map(function(O){return gr(O)}),this.result=os(ue({},S.result.coords),ue({},S.result.rect))}},{key:"destroy",value:function(){for(var S in this)this[S]=null}}]),M}();function os(M,S){return{rect:S,coords:M,delta:{x:0,y:0},rectDelta:{left:0,right:0,top:0,bottom:0},eventProps:[],changed:!0}}function ga(M,S){var O=M.defaults,Y={start:M.start,set:M.set,beforeEnd:M.beforeEnd,stop:M.stop},V=function(re){var le=re||{};for(var fe in le.enabled=le.enabled!==!1,O)fe in le||(le[fe]=O[fe]);var be={options:le,methods:Y,name:S,enable:function(){return le.enabled=!0,be},disable:function(){return le.enabled=!1,be}};return be};return S&&typeof S=="string"&&(V._defaults=O,V._methods=Y),V}function ss(M){var S=M.iEvent,O=M.interaction.modification.result;O&&(S.modifiers=O.eventProps)}var ao={id:"modifiers/base",before:["actions"],install:function(M){M.defaults.perAction.modifiers=[]},listeners:{"interactions:new":function(M){var S=M.interaction;S.modification=new Sa(S)},"interactions:before-action-start":function(M){var S=M.interaction,O=M.interaction.modification;O.start(M,S.coords.start.page),S.edges=O.edges,O.applyToInteraction(M)},"interactions:before-action-move":function(M){var S=M.interaction,O=S.modification,Y=O.setAndApply(M);return S.edges=O.edges,Y},"interactions:before-action-end":function(M){var S=M.interaction,O=S.modification,Y=O.beforeEnd(M);return S.edges=O.startEdges,Y},"interactions:action-start":ss,"interactions:action-move":ss,"interactions:action-end":ss,"interactions:after-action-start":function(M){return M.interaction.modification.restoreInteractionCoords(M)},"interactions:after-action-move":function(M){return M.interaction.modification.restoreInteractionCoords(M)},"interactions:stop":function(M){return M.interaction.modification.stop(M)}}},_o=ao,Ji={base:{preventDefault:"auto",deltaSource:"page"},perAction:{enabled:!1,origin:{x:0,y:0}},actions:{}},Vi=function(M){c(O,M);var S=d(O);function O(Y,V,re,le,fe,be,Fe){var ke;a(this,O),(ke=S.call(this,Y)).relatedTarget=null,ke.screenX=void 0,ke.screenY=void 0,ke.button=void 0,ke.buttons=void 0,ke.ctrlKey=void 0,ke.shiftKey=void 0,ke.altKey=void 0,ke.metaKey=void 0,ke.page=void 0,ke.client=void 0,ke.delta=void 0,ke.rect=void 0,ke.x0=void 0,ke.y0=void 0,ke.t0=void 0,ke.dt=void 0,ke.duration=void 0,ke.clientX0=void 0,ke.clientY0=void 0,ke.velocity=void 0,ke.speed=void 0,ke.swipe=void 0,ke.axes=void 0,ke.preEnd=void 0,fe=fe||Y.element;var Re=Y.interactable,We=(Re&&Re.options||Ji).deltaSource,At=te(Re,fe,re),lt=le==="start",ht=le==="end",St=lt?h(ke):Y.prevEvent,wt=lt?Y.coords.start:ht?{page:St.page,client:St.client,timeStamp:Y.coords.cur.timeStamp}:Y.coords.cur;return ke.page=ue({},wt.page),ke.client=ue({},wt.client),ke.rect=ue({},Y.rect),ke.timeStamp=wt.timeStamp,ht||(ke.page.x-=At.x,ke.page.y-=At.y,ke.client.x-=At.x,ke.client.y-=At.y),ke.ctrlKey=V.ctrlKey,ke.altKey=V.altKey,ke.shiftKey=V.shiftKey,ke.metaKey=V.metaKey,ke.button=V.button,ke.buttons=V.buttons,ke.target=fe,ke.currentTarget=fe,ke.preEnd=be,ke.type=Fe||re+(le||""),ke.interactable=Re,ke.t0=lt?Y.pointers[Y.pointers.length-1].downTime:St.t0,ke.x0=Y.coords.start.page.x-At.x,ke.y0=Y.coords.start.page.y-At.y,ke.clientX0=Y.coords.start.client.x-At.x,ke.clientY0=Y.coords.start.client.y-At.y,ke.delta=lt||ht?{x:0,y:0}:{x:ke[We].x-St[We].x,y:ke[We].y-St[We].y},ke.dt=Y.coords.delta.timeStamp,ke.duration=ke.timeStamp-ke.t0,ke.velocity=ue({},Y.coords.velocity[We]),ke.speed=Z(ke.velocity.x,ke.velocity.y),ke.swipe=ht||le==="inertiastart"?ke.getSwipe():null,ke}return s(O,[{key:"getSwipe",value:function(){var Y=this._interaction;if(Y.prevEvent.speed<600||this.timeStamp-Y.prevEvent.timeStamp>150)return null;var V=180*Math.atan2(Y.prevEvent.velocityY,Y.prevEvent.velocityX)/Math.PI;V<0&&(V+=360);var re=112.5<=V&&V<247.5,le=202.5<=V&&V<337.5;return{up:le,down:!le&&22.5<=V&&V<157.5,left:re,right:!re&&(292.5<=V||V<67.5),angle:V,speed:Y.prevEvent.speed,velocity:{x:Y.prevEvent.velocityX,y:Y.prevEvent.velocityY}}}},{key:"preventDefault",value:function(){}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}}]),O}(bt);Object.defineProperties(Vi.prototype,{pageX:{get:function(){return this.page.x},set:function(M){this.page.x=M}},pageY:{get:function(){return this.page.y},set:function(M){this.page.y=M}},clientX:{get:function(){return this.client.x},set:function(M){this.client.x=M}},clientY:{get:function(){return this.client.y},set:function(M){this.client.y=M}},dx:{get:function(){return this.delta.x},set:function(M){this.delta.x=M}},dy:{get:function(){return this.delta.y},set:function(M){this.delta.y=M}},velocityX:{get:function(){return this.velocity.x},set:function(M){this.velocity.x=M}},velocityY:{get:function(){return this.velocity.y},set:function(M){this.velocity.y=M}}});var Zi=s(function M(S,O,Y,V,re){a(this,M),this.id=void 0,this.pointer=void 0,this.event=void 0,this.downTime=void 0,this.downTarget=void 0,this.id=S,this.pointer=O,this.event=Y,this.downTime=V,this.downTarget=re}),qc=function(M){return M.interactable="",M.element="",M.prepared="",M.pointerIsDown="",M.pointerWasMoved="",M._proxy="",M}({}),ka=function(M){return M.start="",M.move="",M.end="",M.stop="",M.interacting="",M}({}),Kc=0,Ql=function(){function M(S){var O=this,Y=S.pointerType,V=S.scopeFire;a(this,M),this.interactable=null,this.element=null,this.rect=null,this._rects=void 0,this.edges=null,this._scopeFire=void 0,this.prepared={name:null,axis:null,edges:null},this.pointerType=void 0,this.pointers=[],this.downEvent=null,this.downPointer={},this._latestPointer={pointer:null,event:null,eventTarget:null},this.prevEvent=null,this.pointerIsDown=!1,this.pointerWasMoved=!1,this._interacting=!1,this._ending=!1,this._stopped=!0,this._proxy=void 0,this.simulation=null,this.doMove=Tt(function(ke){this.move(ke)},"The interaction.doMove() method has been renamed to interaction.move()"),this.coords={start:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},prev:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},cur:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},delta:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},velocity:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0}},this._id=Kc++,this._scopeFire=V,this.pointerType=Y;var re=this;this._proxy={};var le=function(ke){Object.defineProperty(O._proxy,ke,{get:function(){return re[ke]}})};for(var fe in qc)le(fe);var be=function(ke){Object.defineProperty(O._proxy,ke,{value:function(){return re[ke].apply(re,arguments)}})};for(var Fe in ka)be(Fe);this._scopeFire("interactions:new",{interaction:this})}return s(M,[{key:"pointerMoveTolerance",get:function(){return 1}},{key:"pointerDown",value:function(S,O,Y){var V=this.updatePointer(S,O,Y,!0),re=this.pointers[V];this._scopeFire("interactions:down",{pointer:S,event:O,eventTarget:Y,pointerIndex:V,pointerInfo:re,type:"down",interaction:this})}},{key:"start",value:function(S,O,Y){return!(this.interacting()||!this.pointerIsDown||this.pointers.length<(S.name==="gesture"?2:1)||!O.options[S.name].enabled)&&(Oe(this.prepared,S),this.interactable=O,this.element=Y,this.rect=O.getRect(Y),this.edges=this.prepared.edges?ue({},this.prepared.edges):{left:!0,right:!0,top:!0,bottom:!0},this._stopped=!1,this._interacting=this._doPhase({interaction:this,event:this.downEvent,phase:"start"})&&!this._stopped,this._interacting)}},{key:"pointerMove",value:function(S,O,Y){this.simulation||this.modification&&this.modification.endResult||this.updatePointer(S,O,Y,!1);var V,re,le=this.coords.cur.page.x===this.coords.prev.page.x&&this.coords.cur.page.y===this.coords.prev.page.y&&this.coords.cur.client.x===this.coords.prev.client.x&&this.coords.cur.client.y===this.coords.prev.client.y;this.pointerIsDown&&!this.pointerWasMoved&&(V=this.coords.cur.client.x-this.coords.start.client.x,re=this.coords.cur.client.y-this.coords.start.client.y,this.pointerWasMoved=Z(V,re)>this.pointerMoveTolerance);var fe,be,Fe,ke=this.getPointerIndex(S),Re={pointer:S,pointerIndex:ke,pointerInfo:this.pointers[ke],event:O,type:"move",eventTarget:Y,dx:V,dy:re,duplicate:le,interaction:this};le||(fe=this.coords.velocity,be=this.coords.delta,Fe=Math.max(be.timeStamp/1e3,.001),fe.page.x=be.page.x/Fe,fe.page.y=be.page.y/Fe,fe.client.x=be.client.x/Fe,fe.client.y=be.client.y/Fe,fe.timeStamp=Fe),this._scopeFire("interactions:move",Re),le||this.simulation||(this.interacting()&&(Re.type=null,this.move(Re)),this.pointerWasMoved&&Ee(this.coords.prev,this.coords.cur))}},{key:"move",value:function(S){S&&S.event||Se(this.coords.delta),(S=ue({pointer:this._latestPointer.pointer,event:this._latestPointer.event,eventTarget:this._latestPointer.eventTarget,interaction:this},S||{})).phase="move",this._doPhase(S)}},{key:"pointerUp",value:function(S,O,Y,V){var re=this.getPointerIndex(S);re===-1&&(re=this.updatePointer(S,O,Y,!1));var le=/cancel$/i.test(O.type)?"cancel":"up";this._scopeFire("interactions:".concat(le),{pointer:S,pointerIndex:re,pointerInfo:this.pointers[re],event:O,eventTarget:Y,type:le,curEventTarget:V,interaction:this}),this.simulation||this.end(O),this.removePointer(S,O)}},{key:"documentBlur",value:function(S){this.end(S),this._scopeFire("interactions:blur",{event:S,type:"blur",interaction:this})}},{key:"end",value:function(S){var O;this._ending=!0,S=S||this._latestPointer.event,this.interacting()&&(O=this._doPhase({event:S,interaction:this,phase:"end"})),this._ending=!1,O===!0&&this.stop()}},{key:"currentAction",value:function(){return this._interacting?this.prepared.name:null}},{key:"interacting",value:function(){return this._interacting}},{key:"stop",value:function(){this._scopeFire("interactions:stop",{interaction:this}),this.interactable=this.element=null,this._interacting=!1,this._stopped=!0,this.prepared.name=this.prevEvent=null}},{key:"getPointerIndex",value:function(S){var O=Ge(S);return this.pointerType==="mouse"||this.pointerType==="pen"?this.pointers.length-1:cn(this.pointers,function(Y){return Y.id===O})}},{key:"getPointerInfo",value:function(S){return this.pointers[this.getPointerIndex(S)]}},{key:"updatePointer",value:function(S,O,Y,V){var re,le,fe,be=Ge(S),Fe=this.getPointerIndex(S),ke=this.pointers[Fe];return V=V!==!1&&(V||/(down|start)$/i.test(O.type)),ke?ke.pointer=S:(ke=new Zi(be,S,O,null,null),Fe=this.pointers.length,this.pointers.push(ke)),at(this.coords.cur,this.pointers.map(function(Re){return Re.pointer}),this._now()),re=this.coords.delta,le=this.coords.prev,fe=this.coords.cur,re.page.x=fe.page.x-le.page.x,re.page.y=fe.page.y-le.page.y,re.client.x=fe.client.x-le.client.x,re.client.y=fe.client.y-le.client.y,re.timeStamp=fe.timeStamp-le.timeStamp,V&&(this.pointerIsDown=!0,ke.downTime=this.coords.cur.timeStamp,ke.downTarget=Y,Be(this.downPointer,S),this.interacting()||(Ee(this.coords.start,this.coords.cur),Ee(this.coords.prev,this.coords.cur),this.downEvent=O,this.pointerWasMoved=!1)),this._updateLatestPointer(S,O,Y),this._scopeFire("interactions:update-pointer",{pointer:S,event:O,eventTarget:Y,down:V,pointerInfo:ke,pointerIndex:Fe,interaction:this}),Fe}},{key:"removePointer",value:function(S,O){var Y=this.getPointerIndex(S);if(Y!==-1){var V=this.pointers[Y];this._scopeFire("interactions:remove-pointer",{pointer:S,event:O,eventTarget:null,pointerIndex:Y,pointerInfo:V,interaction:this}),this.pointers.splice(Y,1),this.pointerIsDown=!1}}},{key:"_updateLatestPointer",value:function(S,O,Y){this._latestPointer.pointer=S,this._latestPointer.event=O,this._latestPointer.eventTarget=Y}},{key:"destroy",value:function(){this._latestPointer.pointer=null,this._latestPointer.event=null,this._latestPointer.eventTarget=null}},{key:"_createPreparedEvent",value:function(S,O,Y,V){return new Vi(this,S,this.prepared.name,O,this.element,Y,V)}},{key:"_fireEvent",value:function(S){var O;(O=this.interactable)==null||O.fire(S),(!this.prevEvent||S.timeStamp>=this.prevEvent.timeStamp)&&(this.prevEvent=S)}},{key:"_doPhase",value:function(S){var O=S.event,Y=S.phase,V=S.preEnd,re=S.type,le=this.rect;if(le&&Y==="move"&&(Q(this.edges,le,this.coords.delta[this.interactable.options.deltaSource]),le.width=le.right-le.left,le.height=le.bottom-le.top),this._scopeFire("interactions:before-action-".concat(Y),S)===!1)return!1;var fe=S.iEvent=this._createPreparedEvent(O,Y,V,re);return this._scopeFire("interactions:action-".concat(Y),S),Y==="start"&&(this.prevEvent=fe),this._fireEvent(fe),this._scopeFire("interactions:after-action-".concat(Y),S),!0}},{key:"_now",value:function(){return Date.now()}}]),M}();function jl(M){va(M.interaction)}function va(M){if(!function(O){return!(!O.offset.pending.x&&!O.offset.pending.y)}(M))return!1;var S=M.offset.pending;return Or(M.coords.cur,S),Or(M.coords.delta,S),Q(M.edges,M.rect,S),S.x=0,S.y=0,!0}function Uu(M){var S=M.x,O=M.y;this.offset.pending.x+=S,this.offset.pending.y+=O,this.offset.total.x+=S,this.offset.total.y+=O}function Or(M,S){var O=M.page,Y=M.client,V=S.x,re=S.y;O.x+=V,O.y+=re,Y.x+=V,Y.y+=re}ka.offsetBy="";var Ks={id:"offset",before:["modifiers","pointer-events","actions","inertia"],install:function(M){M.Interaction.prototype.offsetBy=Uu},listeners:{"interactions:new":function(M){M.interaction.offset={total:{x:0,y:0},pending:{x:0,y:0}}},"interactions:update-pointer":function(M){return function(S){S.pointerIsDown&&(Or(S.coords.cur,S.offset.total),S.offset.pending.x=0,S.offset.pending.y=0)}(M.interaction)},"interactions:before-action-start":jl,"interactions:before-action-move":jl,"interactions:before-action-end":function(M){var S=M.interaction;if(va(S))return S.move({offset:!0}),S.end(),!1},"interactions:stop":function(M){var S=M.interaction;S.offset.total.x=0,S.offset.total.y=0,S.offset.pending.x=0,S.offset.pending.y=0}}},Vl=Ks,on=function(){function M(S){a(this,M),this.active=!1,this.isModified=!1,this.smoothEnd=!1,this.allowResume=!1,this.modification=void 0,this.modifierCount=0,this.modifierArg=void 0,this.startCoords=void 0,this.t0=0,this.v0=0,this.te=0,this.targetOffset=void 0,this.modifiedOffset=void 0,this.currentOffset=void 0,this.lambda_v0=0,this.one_ve_v0=0,this.timeout=void 0,this.interaction=void 0,this.interaction=S}return s(M,[{key:"start",value:function(S){var O=this.interaction,Y=Yo(O);if(!Y||!Y.enabled)return!1;var V=O.coords.velocity.client,re=Z(V.x,V.y),le=this.modification||(this.modification=new Sa(O));if(le.copyFrom(O.modification),this.t0=O._now(),this.allowResume=Y.allowResume,this.v0=re,this.currentOffset={x:0,y:0},this.startCoords=O.coords.cur.page,this.modifierArg=le.fillArg({pageCoords:this.startCoords,preEnd:!0,phase:"inertiastart"}),this.t0-O.coords.cur.timeStamp<50&&re>Y.minSpeed&&re>Y.endSpeed)this.startInertia();else{if(le.result=le.setAll(this.modifierArg),!le.result.changed)return!1;this.startSmoothEnd()}return O.modification.result.rect=null,O.offsetBy(this.targetOffset),O._doPhase({interaction:O,event:S,phase:"inertiastart"}),O.offsetBy({x:-this.targetOffset.x,y:-this.targetOffset.y}),O.modification.result.rect=null,this.active=!0,O.simulation=this,!0}},{key:"startInertia",value:function(){var S=this,O=this.interaction.coords.velocity.client,Y=Yo(this.interaction),V=Y.resistance,re=-Math.log(Y.endSpeed/this.v0)/V;this.targetOffset={x:(O.x-re)/V,y:(O.y-re)/V},this.te=re,this.lambda_v0=V/this.v0,this.one_ve_v0=1-Y.endSpeed/this.v0;var le=this.modification,fe=this.modifierArg;fe.pageCoords={x:this.startCoords.x+this.targetOffset.x,y:this.startCoords.y+this.targetOffset.y},le.result=le.setAll(fe),le.result.changed&&(this.isModified=!0,this.modifiedOffset={x:this.targetOffset.x+le.result.delta.x,y:this.targetOffset.y+le.result.delta.y}),this.onNextFrame(function(){return S.inertiaTick()})}},{key:"startSmoothEnd",value:function(){var S=this;this.smoothEnd=!0,this.isModified=!0,this.targetOffset={x:this.modification.result.delta.x,y:this.modification.result.delta.y},this.onNextFrame(function(){return S.smoothEndTick()})}},{key:"onNextFrame",value:function(S){var O=this;this.timeout=nr.request(function(){O.active&&S()})}},{key:"inertiaTick",value:function(){var S,O,Y,V,re,le,fe,be=this,Fe=this.interaction,ke=Yo(Fe).resistance,Re=(Fe._now()-this.t0)/1e3;if(Re<this.te){var We,At=1-(Math.exp(-ke*Re)-this.lambda_v0)/this.one_ve_v0;this.isModified?(S=0,O=0,Y=this.targetOffset.x,V=this.targetOffset.y,re=this.modifiedOffset.x,le=this.modifiedOffset.y,We={x:Pu(fe=At,S,Y,re),y:Pu(fe,O,V,le)}):We={x:this.targetOffset.x*At,y:this.targetOffset.y*At};var lt={x:We.x-this.currentOffset.x,y:We.y-this.currentOffset.y};this.currentOffset.x+=lt.x,this.currentOffset.y+=lt.y,Fe.offsetBy(lt),Fe.move(),this.onNextFrame(function(){return be.inertiaTick()})}else Fe.offsetBy({x:this.modifiedOffset.x-this.currentOffset.x,y:this.modifiedOffset.y-this.currentOffset.y}),this.end()}},{key:"smoothEndTick",value:function(){var S=this,O=this.interaction,Y=O._now()-this.t0,V=Yo(O).smoothEndDuration;if(Y<V){var re={x:Ma(Y,0,this.targetOffset.x,V),y:Ma(Y,0,this.targetOffset.y,V)},le={x:re.x-this.currentOffset.x,y:re.y-this.currentOffset.y};this.currentOffset.x+=le.x,this.currentOffset.y+=le.y,O.offsetBy(le),O.move({skipModifiers:this.modifierCount}),this.onNextFrame(function(){return S.smoothEndTick()})}else O.offsetBy({x:this.targetOffset.x-this.currentOffset.x,y:this.targetOffset.y-this.currentOffset.y}),this.end()}},{key:"resume",value:function(S){var O=S.pointer,Y=S.event,V=S.eventTarget,re=this.interaction;re.offsetBy({x:-this.currentOffset.x,y:-this.currentOffset.y}),re.updatePointer(O,Y,V,!0),re._doPhase({interaction:re,event:Y,phase:"resume"}),Ee(re.coords.prev,re.coords.cur),this.stop()}},{key:"end",value:function(){this.interaction.move(),this.interaction.end(),this.stop()}},{key:"stop",value:function(){this.active=this.smoothEnd=!1,this.interaction.simulation=null,nr.cancel(this.timeout)}}]),M}();function Yo(M){var S=M.interactable,O=M.prepared;return S&&S.options&&O.name&&S.options[O.name].inertia}var Gs={id:"inertia",before:["modifiers","actions"],install:function(M){var S=M.defaults;M.usePlugin(Vl),M.usePlugin(_o),M.actions.phases.inertiastart=!0,M.actions.phases.resume=!0,S.perAction.inertia={enabled:!1,resistance:10,minSpeed:100,endSpeed:10,allowResume:!0,smoothEndDuration:300}},listeners:{"interactions:new":function(M){var S=M.interaction;S.inertia=new on(S)},"interactions:before-action-end":function(M){var S=M.interaction,O=M.event;return(!S._interacting||S.simulation||!S.inertia.start(O))&&null},"interactions:down":function(M){var S=M.interaction,O=M.eventTarget,Y=S.inertia;if(Y.active)for(var V=O;B.element(V);){if(V===S.element){Y.resume(M);break}V=J(V)}},"interactions:stop":function(M){var S=M.interaction.inertia;S.active&&S.stop()},"interactions:before-action-resume":function(M){var S=M.interaction.modification;S.stop(M),S.start(M,M.interaction.coords.cur.page),S.applyToInteraction(M)},"interactions:before-action-inertiastart":function(M){return M.interaction.modification.setAndApply(M)},"interactions:action-resume":ss,"interactions:action-inertiastart":ss,"interactions:after-action-inertiastart":function(M){return M.interaction.modification.restoreInteractionCoords(M)},"interactions:after-action-resume":function(M){return M.interaction.modification.restoreInteractionCoords(M)}}};function Pu(M,S,O,Y){var V=1-M;return V*V*S+2*V*M*O+M*M*Y}function Ma(M,S,O,Y){return-O*(M/=Y)*(M-2)+S}var Ea=Gs;function zl(M,S){for(var O=0;O<S.length;O++){var Y=S[O];if(M.immediatePropagationStopped)break;Y(M)}}var La=function(){function M(S){a(this,M),this.options=void 0,this.types={},this.propagationStopped=!1,this.immediatePropagationStopped=!1,this.global=void 0,this.options=ue({},S||{})}return s(M,[{key:"fire",value:function(S){var O,Y=this.global;(O=this.types[S.type])&&zl(S,O),!S.propagationStopped&&Y&&(O=Y[S.type])&&zl(S,O)}},{key:"on",value:function(S,O){var Y=ce(S,O);for(S in Y)this.types[S]=an(this.types[S]||[],Y[S])}},{key:"off",value:function(S,O){var Y=ce(S,O);for(S in Y){var V=this.types[S];if(V&&V.length)for(var re=0,le=Y[S];re<le.length;re++){var fe=le[re],be=V.indexOf(fe);be!==-1&&V.splice(be,1)}}}},{key:"getRect",value:function(S){return null}}]),M}(),ls=function(){function M(S){a(this,M),this.currentTarget=void 0,this.originalEvent=void 0,this.type=void 0,this.originalEvent=S,Be(this,S)}return s(M,[{key:"preventOriginalDefault",value:function(){this.originalEvent.preventDefault()}},{key:"stopPropagation",value:function(){this.originalEvent.stopPropagation()}},{key:"stopImmediatePropagation",value:function(){this.originalEvent.stopImmediatePropagation()}}]),M}();function Ta(M){return B.object(M)?{capture:!!M.capture,passive:!!M.passive}:{capture:!!M,passive:!1}}function oo(M,S){return M===S||(typeof M=="boolean"?!!S.capture===M&&!S.passive:!!M.capture==!!S.capture&&!!M.passive==!!S.passive)}var Gc={id:"events",install:function(M){var S,O=[],Y={},V=[],re={add:le,remove:fe,addDelegate:function(ke,Re,We,At,lt){var ht=Ta(lt);if(!Y[We]){Y[We]=[];for(var St=0;St<V.length;St++){var wt=V[St];le(wt,We,be),le(wt,We,Fe,!0)}}var Vt=Y[We],An=Ct(Vt,function(dn){return dn.selector===ke&&dn.context===Re});An||(An={selector:ke,context:Re,listeners:[]},Vt.push(An)),An.listeners.push({func:At,options:ht})},removeDelegate:function(ke,Re,We,At,lt){var ht,St=Ta(lt),wt=Y[We],Vt=!1;if(wt)for(ht=wt.length-1;ht>=0;ht--){var An=wt[ht];if(An.selector===ke&&An.context===Re){for(var dn=An.listeners,$t=dn.length-1;$t>=0;$t--){var Ft=dn[$t];if(Ft.func===At&&oo(Ft.options,St)){dn.splice($t,1),dn.length||(wt.splice(ht,1),fe(Re,We,be),fe(Re,We,Fe,!0)),Vt=!0;break}}if(Vt)break}}},delegateListener:be,delegateUseCapture:Fe,delegatedEvents:Y,documents:V,targets:O,supportsOptions:!1,supportsPassive:!1};function le(ke,Re,We,At){if(ke.addEventListener){var lt=Ta(At),ht=Ct(O,function(St){return St.eventTarget===ke});ht||(ht={eventTarget:ke,events:{}},O.push(ht)),ht.events[Re]||(ht.events[Re]=[]),Ct(ht.events[Re],function(St){return St.func===We&&oo(St.options,lt)})||(ke.addEventListener(Re,We,re.supportsOptions?lt:lt.capture),ht.events[Re].push({func:We,options:lt}))}}function fe(ke,Re,We,At){if(ke.addEventListener&&ke.removeEventListener){var lt=cn(O,function(Sn){return Sn.eventTarget===ke}),ht=O[lt];if(ht&&ht.events)if(Re!=="all"){var St=!1,wt=ht.events[Re];if(wt){if(We==="all"){for(var Vt=wt.length-1;Vt>=0;Vt--){var An=wt[Vt];fe(ke,Re,An.func,An.options)}return}for(var dn=Ta(At),$t=0;$t<wt.length;$t++){var Ft=wt[$t];if(Ft.func===We&&oo(Ft.options,dn)){ke.removeEventListener(Re,We,re.supportsOptions?dn:dn.capture),wt.splice($t,1),wt.length===0&&(delete ht.events[Re],St=!0);break}}}St&&!Object.keys(ht.events).length&&O.splice(lt,1)}else for(Re in ht.events)ht.events.hasOwnProperty(Re)&&fe(ke,Re,"all")}}function be(ke,Re){for(var We=Ta(Re),At=new ls(ke),lt=Y[ke.type],ht=kt(ke)[0],St=ht;B.element(St);){for(var wt=0;wt<lt.length;wt++){var Vt=lt[wt],An=Vt.selector,dn=Vt.context;if(ie(St,An)&&q(dn,ht)&&q(dn,St)){var $t=Vt.listeners;At.currentTarget=St;for(var Ft=0;Ft<$t.length;Ft++){var Sn=$t[Ft];oo(Sn.options,We)&&Sn.func(At)}}}St=J(St)}}function Fe(ke){return be(ke,!0)}return(S=M.document)==null||S.createElement("div").addEventListener("test",null,{get capture(){return re.supportsOptions=!0},get passive(){return re.supportsPassive=!0}}),M.events=re,re}},j={methodOrder:["simulationResume","mouseOrPen","hasPointer","idle"],search:function(M){for(var S=0,O=j.methodOrder;S<O.length;S++){var Y=O[S],V=j[Y](M);if(V)return V}return null},simulationResume:function(M){var S=M.pointerType,O=M.eventType,Y=M.eventTarget,V=M.scope;if(!/down|start/i.test(O))return null;for(var re=0,le=V.interactions.list;re<le.length;re++){var fe=le[re],be=Y;if(fe.simulation&&fe.simulation.allowResume&&fe.pointerType===S)for(;be;){if(be===fe.element)return fe;be=J(be)}}return null},mouseOrPen:function(M){var S,O=M.pointerId,Y=M.pointerType,V=M.eventType,re=M.scope;if(Y!=="mouse"&&Y!=="pen")return null;for(var le=0,fe=re.interactions.list;le<fe.length;le++){var be=fe[le];if(be.pointerType===Y){if(be.simulation&&!me(be,O))continue;if(be.interacting())return be;S||(S=be)}}if(S)return S;for(var Fe=0,ke=re.interactions.list;Fe<ke.length;Fe++){var Re=ke[Fe];if(!(Re.pointerType!==Y||/down/i.test(V)&&Re.simulation))return Re}return null},hasPointer:function(M){for(var S=M.pointerId,O=0,Y=M.scope.interactions.list;O<Y.length;O++){var V=Y[O];if(me(V,S))return V}return null},idle:function(M){for(var S=M.pointerType,O=0,Y=M.scope.interactions.list;O<Y.length;O++){var V=Y[O];if(V.pointers.length===1){var re=V.interactable;if(re&&(!re.options.gesture||!re.options.gesture.enabled))continue}else if(V.pointers.length>=2)continue;if(!V.interacting()&&S===V.pointerType)return V}return null}};function me(M,S){return M.pointers.some(function(O){return O.id===S})}var Ne=j,Xe=["pointerDown","pointerMove","pointerUp","updatePointer","removePointer","windowBlur"];function ln(M,S){return function(O){var Y=S.interactions.list,V=xt(O),re=kt(O),le=re[0],fe=re[1],be=[];if(/^touch/.test(O.type)){S.prevTouchTime=S.now();for(var Fe=0,ke=O.changedTouches;Fe<ke.length;Fe++){var Re=ke[Fe],We={pointer:Re,pointerId:Ge(Re),pointerType:V,eventType:O.type,eventTarget:le,curEventTarget:fe,scope:S},At=Pt(We);be.push([We.pointer,We.eventTarget,We.curEventTarget,At])}}else{var lt=!1;if(!K.supportsPointerEvent&&/mouse/.test(O.type)){for(var ht=0;ht<Y.length&&!lt;ht++)lt=Y[ht].pointerType!=="mouse"&&Y[ht].pointerIsDown;lt=lt||S.now()-S.prevTouchTime<500||O.timeStamp===0}if(!lt){var St={pointer:O,pointerId:Ge(O),pointerType:V,eventType:O.type,curEventTarget:fe,eventTarget:le,scope:S},wt=Pt(St);be.push([St.pointer,St.eventTarget,St.curEventTarget,wt])}}for(var Vt=0;Vt<be.length;Vt++){var An=be[Vt],dn=An[0],$t=An[1],Ft=An[2];An[3][M](dn,O,$t,Ft)}}}function Pt(M){var S=M.pointerType,O=M.scope,Y={interaction:Ne.search(M),searchDetails:M};return O.fire("interactions:find",Y),Y.interaction||O.interactions.new({pointerType:S})}function Ln(M,S){var O=M.doc,Y=M.scope,V=M.options,re=Y.interactions.docEvents,le=Y.events,fe=le[S];for(var be in Y.browser.isIOS&&!V.events&&(V.events={passive:!1}),le.delegatedEvents)fe(O,be,le.delegateListener),fe(O,be,le.delegateUseCapture,!0);for(var Fe=V&&V.events,ke=0;ke<re.length;ke++){var Re=re[ke];fe(O,Re.type,Re.listener,Fe)}}var Tn={id:"core/interactions",install:function(M){for(var S={},O=0;O<Xe.length;O++){var Y=Xe[O];S[Y]=ln(Y,M)}var V,re=K.pEventTypes;function le(){for(var fe=0,be=M.interactions.list;fe<be.length;fe++){var Fe=be[fe];if(Fe.pointerIsDown&&Fe.pointerType==="touch"&&!Fe._interacting)for(var ke=function(){var At=We[Re];M.documents.some(function(lt){return q(lt.doc,At.downTarget)})||Fe.removePointer(At.pointer,At.event)},Re=0,We=Fe.pointers;Re<We.length;Re++)ke()}}(V=L.PointerEvent?[{type:re.down,listener:le},{type:re.down,listener:S.pointerDown},{type:re.move,listener:S.pointerMove},{type:re.up,listener:S.pointerUp},{type:re.cancel,listener:S.pointerUp}]:[{type:"mousedown",listener:S.pointerDown},{type:"mousemove",listener:S.pointerMove},{type:"mouseup",listener:S.pointerUp},{type:"touchstart",listener:le},{type:"touchstart",listener:S.pointerDown},{type:"touchmove",listener:S.pointerMove},{type:"touchend",listener:S.pointerUp},{type:"touchcancel",listener:S.pointerUp}]).push({type:"blur",listener:function(fe){for(var be=0,Fe=M.interactions.list;be<Fe.length;be++)Fe[be].documentBlur(fe)}}),M.prevTouchTime=0,M.Interaction=function(fe){c(Fe,fe);var be=d(Fe);function Fe(){return a(this,Fe),be.apply(this,arguments)}return s(Fe,[{key:"pointerMoveTolerance",get:function(){return M.interactions.pointerMoveTolerance},set:function(ke){M.interactions.pointerMoveTolerance=ke}},{key:"_now",value:function(){return M.now()}}]),Fe}(Ql),M.interactions={list:[],new:function(fe){fe.scopeFire=function(Fe,ke){return M.fire(Fe,ke)};var be=new M.Interaction(fe);return M.interactions.list.push(be),be},listeners:S,docEvents:V,pointerMoveTolerance:1},M.usePlugin(qs)},listeners:{"scope:add-document":function(M){return Ln(M,"add")},"scope:remove-document":function(M){return Ln(M,"remove")},"interactable:unset":function(M,S){for(var O=M.interactable,Y=S.interactions.list.length-1;Y>=0;Y--){var V=S.interactions.list[Y];V.interactable===O&&(V.stop(),S.fire("interactions:destroy",{interaction:V}),V.destroy(),S.interactions.list.length>2&&S.interactions.list.splice(Y,1))}}},onDocSignal:Ln,doOnInteractions:ln,methodNames:Xe},Lr=Tn,gn=function(M){return M[M.On=0]="On",M[M.Off=1]="Off",M}(gn||{}),ti=function(){function M(S,O,Y,V){a(this,M),this.target=void 0,this.options=void 0,this._actions=void 0,this.events=new La,this._context=void 0,this._win=void 0,this._doc=void 0,this._scopeEvents=void 0,this._actions=O.actions,this.target=S,this._context=O.context||Y,this._win=b(ve(S)?this._context:S),this._doc=this._win.document,this._scopeEvents=V,this.set(O)}return s(M,[{key:"_defaults",get:function(){return{base:{},perAction:{},actions:{}}}},{key:"setOnEvents",value:function(S,O){return B.func(O.onstart)&&this.on("".concat(S,"start"),O.onstart),B.func(O.onmove)&&this.on("".concat(S,"move"),O.onmove),B.func(O.onend)&&this.on("".concat(S,"end"),O.onend),B.func(O.oninertiastart)&&this.on("".concat(S,"inertiastart"),O.oninertiastart),this}},{key:"updatePerActionListeners",value:function(S,O,Y){var V,re=this,le=(V=this._actions.map[S])==null?void 0:V.filterEventType,fe=function(be){return(le==null||le(be))&&Ni(be,re._actions)};(B.array(O)||B.object(O))&&this._onOff(gn.Off,S,O,void 0,fe),(B.array(Y)||B.object(Y))&&this._onOff(gn.On,S,Y,void 0,fe)}},{key:"setPerAction",value:function(S,O){var Y=this._defaults;for(var V in O){var re=V,le=this.options[S],fe=O[re];re==="listeners"&&this.updatePerActionListeners(S,le.listeners,fe),B.array(fe)?le[re]=Mt(fe):B.plainObject(fe)?(le[re]=ue(le[re]||{},gr(fe)),B.object(Y.perAction[re])&&"enabled"in Y.perAction[re]&&(le[re].enabled=fe.enabled!==!1)):B.bool(fe)&&B.object(Y.perAction[re])?le[re].enabled=fe:le[re]=fe}}},{key:"getRect",value:function(S){return S=S||(B.element(this.target)?this.target:null),B.string(this.target)&&(S=S||this._context.querySelector(this.target)),pe(S)}},{key:"rectChecker",value:function(S){var O=this;return B.func(S)?(this.getRect=function(Y){var V=ue({},S.apply(O,Y));return"width"in V||(V.width=V.right-V.left,V.height=V.bottom-V.top),V},this):S===null?(delete this.getRect,this):this.getRect}},{key:"_backCompatOption",value:function(S,O){if(ve(O)||B.object(O)){for(var Y in this.options[S]=O,this._actions.map)this.options[Y][S]=O;return this}return this.options[S]}},{key:"origin",value:function(S){return this._backCompatOption("origin",S)}},{key:"deltaSource",value:function(S){return S==="page"||S==="client"?(this.options.deltaSource=S,this):this.options.deltaSource}},{key:"getAllElements",value:function(){var S=this.target;return B.string(S)?Array.from(this._context.querySelectorAll(S)):B.func(S)&&S.getAllElements?S.getAllElements():B.element(S)?[S]:[]}},{key:"context",value:function(){return this._context}},{key:"inContext",value:function(S){return this._context===S.ownerDocument||q(this._context,S)}},{key:"testIgnoreAllow",value:function(S,O,Y){return!this.testIgnore(S.ignoreFrom,O,Y)&&this.testAllow(S.allowFrom,O,Y)}},{key:"testAllow",value:function(S,O,Y){return!S||!!B.element(Y)&&(B.string(S)?W(Y,S,O):!!B.element(S)&&q(S,Y))}},{key:"testIgnore",value:function(S,O,Y){return!(!S||!B.element(Y))&&(B.string(S)?W(Y,S,O):!!B.element(S)&&q(S,Y))}},{key:"fire",value:function(S){return this.events.fire(S),this}},{key:"_onOff",value:function(S,O,Y,V,re){B.object(O)&&!B.array(O)&&(V=Y,Y=null);var le=ce(O,Y,re);for(var fe in le){fe==="wheel"&&(fe=K.wheelEvent);for(var be=0,Fe=le[fe];be<Fe.length;be++){var ke=Fe[be];Ni(fe,this._actions)?this.events[S===gn.On?"on":"off"](fe,ke):B.string(this.target)?this._scopeEvents[S===gn.On?"addDelegate":"removeDelegate"](this.target,this._context,fe,ke,V):this._scopeEvents[S===gn.On?"add":"remove"](this.target,fe,ke,V)}}return this}},{key:"on",value:function(S,O,Y){return this._onOff(gn.On,S,O,Y)}},{key:"off",value:function(S,O,Y){return this._onOff(gn.Off,S,O,Y)}},{key:"set",value:function(S){var O=this._defaults;for(var Y in B.object(S)||(S={}),this.options=gr(O.base),this._actions.methodDict){var V=Y,re=this._actions.methodDict[V];this.options[V]={},this.setPerAction(V,ue(ue({},O.perAction),O.actions[V])),this[re](S[V])}for(var le in S)le!=="getRect"?B.func(this[le])&&this[le](S[le]):this.rectChecker(S.getRect);return this}},{key:"unset",value:function(){if(B.string(this.target))for(var S in this._scopeEvents.delegatedEvents)for(var O=this._scopeEvents.delegatedEvents[S],Y=O.length-1;Y>=0;Y--){var V=O[Y],re=V.selector,le=V.context,fe=V.listeners;re===this.target&&le===this._context&&O.splice(Y,1);for(var be=fe.length-1;be>=0;be--)this._scopeEvents.removeDelegate(this.target,this._context,S,fe[be][0],fe[be][1])}else this._scopeEvents.remove(this.target,"all")}}]),M}(),Fi=function(){function M(S){var O=this;a(this,M),this.list=[],this.selectorMap={},this.scope=void 0,this.scope=S,S.addListeners({"interactable:unset":function(Y){var V=Y.interactable,re=V.target,le=B.string(re)?O.selectorMap[re]:re[O.scope.id],fe=cn(le,function(be){return be===V});le.splice(fe,1)}})}return s(M,[{key:"new",value:function(S,O){O=ue(O||{},{actions:this.scope.actions});var Y=new this.scope.Interactable(S,O,this.scope.document,this.scope.events);return this.scope.addDocument(Y._doc),this.list.push(Y),B.string(S)?(this.selectorMap[S]||(this.selectorMap[S]=[]),this.selectorMap[S].push(Y)):(Y.target[this.scope.id]||Object.defineProperty(S,this.scope.id,{value:[],configurable:!0}),S[this.scope.id].push(Y)),this.scope.fire("interactable:new",{target:S,options:O,interactable:Y,win:this.scope._win}),Y}},{key:"getExisting",value:function(S,O){var Y=O&&O.context||this.scope.document,V=B.string(S),re=V?this.selectorMap[S]:S[this.scope.id];if(re)return Ct(re,function(le){return le._context===Y&&(V||le.inContext(S))})}},{key:"forEachMatch",value:function(S,O){for(var Y=0,V=this.list;Y<V.length;Y++){var re=V[Y],le=void 0;if((B.string(re.target)?B.element(S)&&ie(S,re.target):S===re.target)&&re.inContext(S)&&(le=O(re)),le!==void 0)return le}}}]),M}(),Hr=function(){function M(){var S=this;a(this,M),this.id="__interact_scope_".concat(Math.floor(100*Math.random())),this.isInitialized=!1,this.listenerMaps=[],this.browser=K,this.defaults=gr(Ji),this.Eventable=La,this.actions={map:{},phases:{start:!0,move:!0,end:!0},methodDict:{},phaselessTypes:{}},this.interactStatic=function(Y){var V=function re(le,fe){var be=Y.interactables.getExisting(le,fe);return be||((be=Y.interactables.new(le,fe)).events.global=re.globalEvents),be};return V.getPointerAverage=pt,V.getTouchBBox=_t,V.getTouchDistance=vt,V.getTouchAngle=sn,V.getElementRect=pe,V.getElementClientRect=ne,V.matchesSelector=ie,V.closest=z,V.globalEvents={},V.version="1.10.27",V.scope=Y,V.use=function(re,le){return this.scope.usePlugin(re,le),this},V.isSet=function(re,le){return!!this.scope.interactables.get(re,le&&le.context)},V.on=Tt(function(re,le,fe){if(B.string(re)&&re.search(" ")!==-1&&(re=re.trim().split(/ +/)),B.array(re)){for(var be=0,Fe=re;be<Fe.length;be++){var ke=Fe[be];this.on(ke,le,fe)}return this}if(B.object(re)){for(var Re in re)this.on(Re,re[Re],le);return this}return Ni(re,this.scope.actions)?this.globalEvents[re]?this.globalEvents[re].push(le):this.globalEvents[re]=[le]:this.scope.events.add(this.scope.document,re,le,{options:fe}),this},"The interact.on() method is being deprecated"),V.off=Tt(function(re,le,fe){if(B.string(re)&&re.search(" ")!==-1&&(re=re.trim().split(/ +/)),B.array(re)){for(var be=0,Fe=re;be<Fe.length;be++){var ke=Fe[be];this.off(ke,le,fe)}return this}if(B.object(re)){for(var Re in re)this.off(Re,re[Re],le);return this}var We;return Ni(re,this.scope.actions)?re in this.globalEvents&&(We=this.globalEvents[re].indexOf(le))!==-1&&this.globalEvents[re].splice(We,1):this.scope.events.remove(this.scope.document,re,le,fe),this},"The interact.off() method is being deprecated"),V.debug=function(){return this.scope},V.supportsTouch=function(){return K.supportsTouch},V.supportsPointerEvent=function(){return K.supportsPointerEvent},V.stop=function(){for(var re=0,le=this.scope.interactions.list;re<le.length;re++)le[re].stop();return this},V.pointerMoveTolerance=function(re){return B.number(re)?(this.scope.interactions.pointerMoveTolerance=re,this):this.scope.interactions.pointerMoveTolerance},V.addDocument=function(re,le){this.scope.addDocument(re,le)},V.removeDocument=function(re){this.scope.removeDocument(re)},V}(this),this.InteractEvent=Vi,this.Interactable=void 0,this.interactables=new Fi(this),this._win=void 0,this.document=void 0,this.window=void 0,this.documents=[],this._plugins={list:[],map:{}},this.onWindowUnload=function(Y){return S.removeDocument(Y.target)};var O=this;this.Interactable=function(Y){c(re,Y);var V=d(re);function re(){return a(this,re),V.apply(this,arguments)}return s(re,[{key:"_defaults",get:function(){return O.defaults}},{key:"set",value:function(le){return m(A(re.prototype),"set",this).call(this,le),O.fire("interactable:set",{options:le,interactable:this}),this}},{key:"unset",value:function(){m(A(re.prototype),"unset",this).call(this);var le=O.interactables.list.indexOf(this);le<0||(O.interactables.list.splice(le,1),O.fire("interactable:unset",{interactable:this}))}}]),re}(ti)}return s(M,[{key:"addListeners",value:function(S,O){this.listenerMaps.push({id:O,map:S})}},{key:"fire",value:function(S,O){for(var Y=0,V=this.listenerMaps;Y<V.length;Y++){var re=V[Y].map[S];if(re&&re(O,this,S)===!1)return!1}}},{key:"init",value:function(S){return this.isInitialized?this:function(O,Y){return O.isInitialized=!0,B.window(Y)&&_(Y),L.init(Y),K.init(Y),nr.init(Y),O.window=Y,O.document=Y.document,O.usePlugin(Lr),O.usePlugin(Gc),O}(this,S)}},{key:"pluginIsInstalled",value:function(S){var O=S.id;return O?!!this._plugins.map[O]:this._plugins.list.indexOf(S)!==-1}},{key:"usePlugin",value:function(S,O){if(!this.isInitialized)return this;if(this.pluginIsInstalled(S))return this;if(S.id&&(this._plugins.map[S.id]=S),this._plugins.list.push(S),S.install&&S.install(this,O),S.listeners&&S.before){for(var Y=0,V=this.listenerMaps.length,re=S.before.reduce(function(fe,be){return fe[be]=!0,fe[wr(be)]=!0,fe},{});Y<V;Y++){var le=this.listenerMaps[Y].id;if(le&&(re[le]||re[wr(le)]))break}this.listenerMaps.splice(Y,0,{id:S.id,map:S.listeners})}else S.listeners&&this.listenerMaps.push({id:S.id,map:S.listeners});return this}},{key:"addDocument",value:function(S,O){if(this.getDocIndex(S)!==-1)return!1;var Y=b(S);O=O?ue({},O):{},this.documents.push({doc:S,options:O}),this.events.documents.push(S),S!==this.document&&this.events.add(Y,"unload",this.onWindowUnload),this.fire("scope:add-document",{doc:S,window:Y,scope:this,options:O})}},{key:"removeDocument",value:function(S){var O=this.getDocIndex(S),Y=b(S),V=this.documents[O].options;this.events.remove(Y,"unload",this.onWindowUnload),this.documents.splice(O,1),this.events.documents.splice(O,1),this.fire("scope:remove-document",{doc:S,window:Y,scope:this,options:V})}},{key:"getDocIndex",value:function(S){for(var O=0;O<this.documents.length;O++)if(this.documents[O].doc===S)return O;return-1}},{key:"getDocOptions",value:function(S){var O=this.getDocIndex(S);return O===-1?null:this.documents[O].options}},{key:"now",value:function(){return(this.window.Date||Date).now()}}]),M}();function wr(M){return M&&M.replace(/\/.*$/,"")}var vr=new Hr,Br=vr.interactStatic,$i=typeof globalThis<"u"?globalThis:window;vr.init($i);var Ro=Object.freeze({__proto__:null,edgeTarget:function(){},elements:function(){},grid:function(M){var S=[["x","y"],["left","top"],["right","bottom"],["width","height"]].filter(function(Y){var V=Y[0],re=Y[1];return V in M||re in M}),O=function(Y,V){for(var re=M.range,le=M.limits,fe=le===void 0?{left:-1/0,right:1/0,top:-1/0,bottom:1/0}:le,be=M.offset,Fe=be===void 0?{x:0,y:0}:be,ke={range:re,grid:M,x:null,y:null},Re=0;Re<S.length;Re++){var We=S[Re],At=We[0],lt=We[1],ht=Math.round((Y-Fe.x)/M[At]),St=Math.round((V-Fe.y)/M[lt]);ke[At]=Math.max(fe.left,Math.min(fe.right,ht*M[At]+Fe.x)),ke[lt]=Math.max(fe.top,Math.min(fe.bottom,St*M[lt]+Fe.y))}return ke};return O.grid=M,O.coordFields=S,O}}),U={id:"snappers",install:function(M){var S=M.interactStatic;S.snappers=ue(S.snappers||{},Ro),S.createSnapGrid=S.snappers.grid}},oe=U,we={start:function(M){var S=M.state,O=M.rect,Y=M.edges,V=M.pageCoords,re=S.options,le=re.ratio,fe=re.enabled,be=S.options,Fe=be.equalDelta,ke=be.modifiers;le==="preserve"&&(le=O.width/O.height),S.startCoords=ue({},V),S.startRect=ue({},O),S.ratio=le,S.equalDelta=Fe;var Re=S.linkedEdges={top:Y.top||Y.left&&!Y.bottom,left:Y.left||Y.top&&!Y.right,bottom:Y.bottom||Y.right&&!Y.top,right:Y.right||Y.bottom&&!Y.left};if(S.xIsPrimaryAxis=!(!Y.left&&!Y.right),S.equalDelta){var We=(Re.left?1:-1)*(Re.top?1:-1);S.edgeSign={x:We,y:We}}else S.edgeSign={x:Re.left?-1:1,y:Re.top?-1:1};if(fe!==!1&&ue(Y,Re),ke!=null&&ke.length){var At=new Sa(M.interaction);At.copyFrom(M.interaction.modification),At.prepareStates(ke),S.subModification=At,At.startAll(r({},M))}},set:function(M){var S=M.state,O=M.rect,Y=M.coords,V=S.linkedEdges,re=ue({},Y),le=S.equalDelta?De:je;if(ue(M.edges,V),le(S,S.xIsPrimaryAxis,Y,O),!S.subModification)return null;var fe=ue({},O);Q(V,fe,{x:Y.x-re.x,y:Y.y-re.y});var be=S.subModification.setAll(r(r({},M),{},{rect:fe,edges:V,pageCoords:Y,prevCoords:Y,prevRect:fe})),Fe=be.delta;return be.changed&&(le(S,Math.abs(Fe.x)>Math.abs(Fe.y),be.coords,be.rect),ue(Y,be.coords)),be.eventProps},defaults:{ratio:"preserve",equalDelta:!1,modifiers:[],enabled:!1}};function De(M,S,O){var Y=M.startCoords,V=M.edgeSign;S?O.y=Y.y+(O.x-Y.x)*V.y:O.x=Y.x+(O.y-Y.y)*V.x}function je(M,S,O,Y){var V=M.startRect,re=M.startCoords,le=M.ratio,fe=M.edgeSign;if(S){var be=Y.width/le;O.y=re.y+(be-V.height)*fe.y}else{var Fe=Y.height*le;O.x=re.x+(Fe-V.width)*fe.x}}var nt=ga(we,"aspectRatio"),ut=function(){};ut._defaults={};var Ht=ut;function Qt(M,S,O){return B.func(M)?Le(M,S.interactable,S.element,[O.x,O.y,S]):Le(M,S.interactable,S.element)}var un={start:function(M){var S=M.rect,O=M.startOffset,Y=M.state,V=M.interaction,re=M.pageCoords,le=Y.options,fe=le.elementRect,be=ue({left:0,top:0,right:0,bottom:0},le.offset||{});if(S&&fe){var Fe=Qt(le.restriction,V,re);if(Fe){var ke=Fe.right-Fe.left-S.width,Re=Fe.bottom-Fe.top-S.height;ke<0&&(be.left+=ke,be.right+=ke),Re<0&&(be.top+=Re,be.bottom+=Re)}be.left+=O.left-S.width*fe.left,be.top+=O.top-S.height*fe.top,be.right+=O.right-S.width*(1-fe.right),be.bottom+=O.bottom-S.height*(1-fe.bottom)}Y.offset=be},set:function(M){var S=M.coords,O=M.interaction,Y=M.state,V=Y.options,re=Y.offset,le=Qt(V.restriction,O,S);if(le){var fe=function(be){return!be||"left"in be&&"top"in be||((be=ue({},be)).left=be.x||0,be.top=be.y||0,be.right=be.right||be.left+be.width,be.bottom=be.bottom||be.top+be.height),be}(le);S.x=Math.max(Math.min(fe.right-re.right,S.x),fe.left+re.left),S.y=Math.max(Math.min(fe.bottom-re.bottom,S.y),fe.top+re.top)}},defaults:{restriction:null,elementRect:null,offset:null,endOnly:!1,enabled:!1}},Bn=ga(un,"restrict"),Gn={top:1/0,left:1/0,bottom:-1/0,right:-1/0},Yr={top:-1/0,left:-1/0,bottom:1/0,right:1/0};function si(M,S){for(var O=0,Y=["top","left","bottom","right"];O<Y.length;O++){var V=Y[O];V in M||(M[V]=S[V])}return M}var Ar={noInner:Gn,noOuter:Yr,start:function(M){var S,O=M.interaction,Y=M.startOffset,V=M.state,re=V.options;re&&(S=Me(Qt(re.offset,O,O.coords.start.page))),S=S||{x:0,y:0},V.offset={top:S.y+Y.top,left:S.x+Y.left,bottom:S.y-Y.bottom,right:S.x-Y.right}},set:function(M){var S=M.coords,O=M.edges,Y=M.interaction,V=M.state,re=V.offset,le=V.options;if(O){var fe=ue({},S),be=Qt(le.inner,Y,fe)||{},Fe=Qt(le.outer,Y,fe)||{};si(be,Gn),si(Fe,Yr),O.top?S.y=Math.min(Math.max(Fe.top+re.top,fe.y),be.top+re.top):O.bottom&&(S.y=Math.max(Math.min(Fe.bottom+re.bottom,fe.y),be.bottom+re.bottom)),O.left?S.x=Math.min(Math.max(Fe.left+re.left,fe.x),be.left+re.left):O.right&&(S.x=Math.max(Math.min(Fe.right+re.right,fe.x),be.right+re.right))}},defaults:{inner:null,outer:null,offset:null,endOnly:!1,enabled:!1}},Oi=ga(Ar,"restrictEdges"),yi=ue({get elementRect(){return{top:0,left:0,bottom:1,right:1}},set elementRect(M){}},un.defaults),ea=ga({start:un.start,set:un.set,defaults:yi},"restrictRect"),ql={width:-1/0,height:-1/0},us={width:1/0,height:1/0},Kl=ga({start:function(M){return Ar.start(M)},set:function(M){var S=M.interaction,O=M.state,Y=M.rect,V=M.edges,re=O.options;if(V){var le=Pe(Qt(re.min,S,M.coords))||ql,fe=Pe(Qt(re.max,S,M.coords))||us;O.options={endOnly:re.endOnly,inner:ue({},Ar.noInner),outer:ue({},Ar.noOuter)},V.top?(O.options.inner.top=Y.bottom-le.height,O.options.outer.top=Y.bottom-fe.height):V.bottom&&(O.options.inner.bottom=Y.top+le.height,O.options.outer.bottom=Y.top+fe.height),V.left?(O.options.inner.left=Y.right-le.width,O.options.outer.left=Y.right-fe.width):V.right&&(O.options.inner.right=Y.left+le.width,O.options.outer.right=Y.left+fe.width),Ar.set(M),O.options=re}},defaults:{min:null,max:null,endOnly:!1,enabled:!1}},"restrictSize"),Wc={start:function(M){var S,O=M.interaction,Y=M.interactable,V=M.element,re=M.rect,le=M.state,fe=M.startOffset,be=le.options,Fe=be.offsetWithOrigin?function(We){var At=We.interaction.element,lt=Me(Le(We.state.options.origin,null,null,[At])),ht=lt||te(We.interactable,At,We.interaction.prepared.name);return ht}(M):{x:0,y:0};if(be.offset==="startCoords")S={x:O.coords.start.page.x,y:O.coords.start.page.y};else{var ke=Le(be.offset,Y,V,[O]);(S=Me(ke)||{x:0,y:0}).x+=Fe.x,S.y+=Fe.y}var Re=be.relativePoints;le.offsets=re&&Re&&Re.length?Re.map(function(We,At){return{index:At,relativePoint:We,x:fe.left-re.width*We.x+S.x,y:fe.top-re.height*We.y+S.y}}):[{index:0,relativePoint:null,x:S.x,y:S.y}]},set:function(M){var S=M.interaction,O=M.coords,Y=M.state,V=Y.options,re=Y.offsets,le=te(S.interactable,S.element,S.prepared.name),fe=ue({},O),be=[];V.offsetWithOrigin||(fe.x-=le.x,fe.y-=le.y);for(var Fe=0,ke=re;Fe<ke.length;Fe++)for(var Re=ke[Fe],We=fe.x-Re.x,At=fe.y-Re.y,lt=0,ht=V.targets.length;lt<ht;lt++){var St=V.targets[lt],wt=void 0;(wt=B.func(St)?St(We,At,S._proxy,Re,lt):St)&&be.push({x:(B.number(wt.x)?wt.x:We)+Re.x,y:(B.number(wt.y)?wt.y:At)+Re.y,range:B.number(wt.range)?wt.range:V.range,source:St,index:lt,offset:Re})}for(var Vt={target:null,inRange:!1,distance:0,range:0,delta:{x:0,y:0}},An=0;An<be.length;An++){var dn=be[An],$t=dn.range,Ft=dn.x-fe.x,Sn=dn.y-fe.y,vn=Z(Ft,Sn),rr=vn<=$t;$t===1/0&&Vt.inRange&&Vt.range!==1/0&&(rr=!1),Vt.target&&!(rr?Vt.inRange&&$t!==1/0?vn/$t<Vt.distance/Vt.range:$t===1/0&&Vt.range!==1/0||vn<Vt.distance:!Vt.inRange&&vn<Vt.distance)||(Vt.target=dn,Vt.distance=vn,Vt.range=$t,Vt.inRange=rr,Vt.delta.x=Ft,Vt.delta.y=Sn)}return Vt.inRange&&(O.x=Vt.target.x,O.y=Vt.target.y),Y.closest=Vt,Vt},defaults:{range:1/0,targets:null,offset:null,offsetWithOrigin:!0,origin:null,relativePoints:null,endOnly:!1,enabled:!1}},pd=ga(Wc,"snap"),cs={start:function(M){var S=M.state,O=M.edges,Y=S.options;if(!O)return null;M.state={options:{targets:null,relativePoints:[{x:O.left?0:1,y:O.top?0:1}],offset:Y.offset||"self",origin:{x:0,y:0},range:Y.range}},S.targetFields=S.targetFields||[["width","height"],["x","y"]],Wc.start(M),S.offsets=M.state.offsets,M.state=S},set:function(M){var S=M.interaction,O=M.state,Y=M.coords,V=O.options,re=O.offsets,le={x:Y.x-re[0].x,y:Y.y-re[0].y};O.options=ue({},V),O.options.targets=[];for(var fe=0,be=V.targets||[];fe<be.length;fe++){var Fe=be[fe],ke=void 0;if(ke=B.func(Fe)?Fe(le.x,le.y,S):Fe){for(var Re=0,We=O.targetFields;Re<We.length;Re++){var At=We[Re],lt=At[0],ht=At[1];if(lt in ke||ht in ke){ke.x=ke[lt],ke.y=ke[ht];break}}O.options.targets.push(ke)}}var St=Wc.set(M);return O.options=V,St},defaults:{range:1/0,targets:null,offset:null,endOnly:!1,enabled:!1}},Xc=ga(cs,"snapSize"),Gl={aspectRatio:nt,restrictEdges:Oi,restrict:Bn,restrictRect:ea,restrictSize:Kl,snapEdges:ga({start:function(M){var S=M.edges;return S?(M.state.targetFields=M.state.targetFields||[[S.left?"left":"right",S.top?"top":"bottom"]],cs.start(M)):null},set:cs.set,defaults:ue(gr(cs.defaults),{targets:void 0,range:void 0,offset:{x:0,y:0}})},"snapEdges"),snap:pd,snapSize:Xc,spring:Ht,avoid:Ht,transform:Ht,rubberband:Ht},Hu={id:"modifiers",install:function(M){var S=M.interactStatic;for(var O in M.usePlugin(_o),M.usePlugin(oe),S.modifiers=Gl,Gl){var Y=Gl[O],V=Y._defaults,re=Y._methods;V._methods=re,M.defaults.perAction[O]=V}}},ta=Hu,Yu=function(M){c(O,M);var S=d(O);function O(Y,V,re,le,fe,be){var Fe;if(a(this,O),Be(h(Fe=S.call(this,fe)),re),re!==V&&Be(h(Fe),V),Fe.timeStamp=be,Fe.originalEvent=re,Fe.type=Y,Fe.pointerId=Ge(V),Fe.pointerType=xt(V),Fe.target=le,Fe.currentTarget=null,Y==="tap"){var ke=fe.getPointerIndex(V);Fe.dt=Fe.timeStamp-fe.pointers[ke].downTime;var Re=Fe.timeStamp-fe.tapTime;Fe.double=!!fe.prevTap&&fe.prevTap.type!=="doubletap"&&fe.prevTap.target===Fe.target&&Re<500}else Y==="doubletap"&&(Fe.dt=V.timeStamp-fe.tapTime,Fe.double=!0);return Fe}return s(O,[{key:"_subtractOrigin",value:function(Y){var V=Y.x,re=Y.y;return this.pageX-=V,this.pageY-=re,this.clientX-=V,this.clientY-=re,this}},{key:"_addOrigin",value:function(Y){var V=Y.x,re=Y.y;return this.pageX+=V,this.pageY+=re,this.clientX+=V,this.clientY+=re,this}},{key:"preventDefault",value:function(){this.originalEvent.preventDefault()}}]),O}(bt),As={id:"pointer-events/base",before:["inertia","modifiers","auto-start","actions"],install:function(M){M.pointerEvents=As,M.defaults.actions.pointerEvents=As.defaults,ue(M.actions.phaselessTypes,As.types)},listeners:{"interactions:new":function(M){var S=M.interaction;S.prevTap=null,S.tapTime=0},"interactions:update-pointer":function(M){var S=M.down,O=M.pointerInfo;!S&&O.hold||(O.hold={duration:1/0,timeout:null})},"interactions:move":function(M,S){var O=M.interaction,Y=M.pointer,V=M.event,re=M.eventTarget;M.duplicate||O.pointerIsDown&&!O.pointerWasMoved||(O.pointerIsDown&&na(M),Qo({interaction:O,pointer:Y,event:V,eventTarget:re,type:"move"},S))},"interactions:down":function(M,S){(function(O,Y){for(var V=O.interaction,re=O.pointer,le=O.event,fe=O.eventTarget,be=O.pointerIndex,Fe=V.pointers[be].hold,ke=he(fe),Re={interaction:V,pointer:re,event:le,eventTarget:fe,type:"hold",targets:[],path:ke,node:null},We=0;We<ke.length;We++){var At=ke[We];Re.node=At,Y.fire("pointerEvents:collect-targets",Re)}if(Re.targets.length){for(var lt=1/0,ht=0,St=Re.targets;ht<St.length;ht++){var wt=St[ht].eventable.options.holdDuration;wt<lt&&(lt=wt)}Fe.duration=lt,Fe.timeout=setTimeout(function(){Qo({interaction:V,eventTarget:fe,pointer:re,event:le,type:"hold"},Y)},lt)}})(M,S),Qo(M,S)},"interactions:up":function(M,S){na(M),Qo(M,S),function(O,Y){var V=O.interaction,re=O.pointer,le=O.event,fe=O.eventTarget;V.pointerWasMoved||Qo({interaction:V,eventTarget:fe,pointer:re,event:le,type:"tap"},Y)}(M,S)},"interactions:cancel":function(M,S){na(M),Qo(M,S)}},PointerEvent:Yu,fire:Qo,collectEventTargets:md,defaults:{holdDuration:600,ignoreFrom:null,allowFrom:null,origin:{x:0,y:0}},types:{down:!0,move:!0,up:!0,cancel:!0,tap:!0,doubletap:!0,hold:!0}};function Qo(M,S){var O=M.interaction,Y=M.pointer,V=M.event,re=M.eventTarget,le=M.type,fe=M.targets,be=fe===void 0?md(M,S):fe,Fe=new Yu(le,Y,V,re,O,S.now());S.fire("pointerEvents:new",{pointerEvent:Fe});for(var ke={interaction:O,pointer:Y,event:V,eventTarget:re,targets:be,type:le,pointerEvent:Fe},Re=0;Re<be.length;Re++){var We=be[Re];for(var At in We.props||{})Fe[At]=We.props[At];var lt=te(We.eventable,We.node);if(Fe._subtractOrigin(lt),Fe.eventable=We.eventable,Fe.currentTarget=We.node,We.eventable.fire(Fe),Fe._addOrigin(lt),Fe.immediatePropagationStopped||Fe.propagationStopped&&Re+1<be.length&&be[Re+1].node!==Fe.currentTarget)break}if(S.fire("pointerEvents:fired",ke),le==="tap"){var ht=Fe.double?Qo({interaction:O,pointer:Y,event:V,eventTarget:re,type:"doubletap"},S):Fe;O.prevTap=ht,O.tapTime=ht.timeStamp}return Fe}function md(M,S){var O=M.interaction,Y=M.pointer,V=M.event,re=M.eventTarget,le=M.type,fe=O.getPointerIndex(Y),be=O.pointers[fe];if(le==="tap"&&(O.pointerWasMoved||!be||be.downTarget!==re))return[];for(var Fe=he(re),ke={interaction:O,pointer:Y,event:V,eventTarget:re,type:le,path:Fe,targets:[],node:null},Re=0;Re<Fe.length;Re++){var We=Fe[Re];ke.node=We,S.fire("pointerEvents:collect-targets",ke)}return le==="hold"&&(ke.targets=ke.targets.filter(function(At){var lt,ht;return At.eventable.options.holdDuration===((lt=O.pointers[fe])==null||(ht=lt.hold)==null?void 0:ht.duration)})),ke.targets}function na(M){var S=M.interaction,O=M.pointerIndex,Y=S.pointers[O].hold;Y&&Y.timeout&&(clearTimeout(Y.timeout),Y.timeout=null)}var Wl=Object.freeze({__proto__:null,default:As});function gd(M){var S=M.interaction;S.holdIntervalHandle&&(clearInterval(S.holdIntervalHandle),S.holdIntervalHandle=null)}var im={id:"pointer-events/holdRepeat",install:function(M){M.usePlugin(As);var S=M.pointerEvents;S.defaults.holdRepeatInterval=0,S.types.holdrepeat=M.actions.phaselessTypes.holdrepeat=!0},listeners:["move","up","cancel","endall"].reduce(function(M,S){return M["pointerEvents:".concat(S)]=gd,M},{"pointerEvents:new":function(M){var S=M.pointerEvent;S.type==="hold"&&(S.count=(S.count||0)+1)},"pointerEvents:fired":function(M,S){var O=M.interaction,Y=M.pointerEvent,V=M.eventTarget,re=M.targets;if(Y.type==="hold"&&re.length){var le=re[0].eventable.options.holdRepeatInterval;le<=0||(O.holdIntervalHandle=setTimeout(function(){S.pointerEvents.fire({interaction:O,eventTarget:V,type:"hold",pointer:Y,event:Y},S)},le))}}})},jo=im,Jc={id:"pointer-events/interactableTargets",install:function(M){var S=M.Interactable;S.prototype.pointerEvents=function(Y){return ue(this.events.options,Y),this};var O=S.prototype._backCompatOption;S.prototype._backCompatOption=function(Y,V){var re=O.call(this,Y,V);return re===this&&(this.events.options[Y]=V),re}},listeners:{"pointerEvents:collect-targets":function(M,S){var O=M.targets,Y=M.node,V=M.type,re=M.eventTarget;S.interactables.forEachMatch(Y,function(le){var fe=le.events,be=fe.options;fe.types[V]&&fe.types[V].length&&le.testIgnoreAllow(be,Y,re)&&O.push({node:Y,eventable:fe,props:{interactable:le}})})},"interactable:new":function(M){var S=M.interactable;S.events.getRect=function(O){return S.getRect(O)}},"interactable:set":function(M,S){var O=M.interactable,Y=M.options;ue(O.events.options,S.pointerEvents.defaults),ue(O.events.options,Y.pointerEvents||{})}}},th=Jc,nh={id:"pointer-events",install:function(M){M.usePlugin(Wl),M.usePlugin(jo),M.usePlugin(th)}},Ru=nh,Zc={id:"reflow",install:function(M){var S=M.Interactable;M.actions.phases.reflow=!0,S.prototype.reflow=function(O){return function(Y,V,re){for(var le=Y.getAllElements(),fe=re.window.Promise,be=fe?[]:null,Fe=function(){var Re=le[ke],We=Y.getRect(Re);if(!We)return 1;var At,lt=Ct(re.interactions.list,function(wt){return wt.interacting()&&wt.interactable===Y&&wt.element===Re&&wt.prepared.name===V.name});if(lt)lt.move(),be&&(At=lt._reflowPromise||new fe(function(wt){lt._reflowResolve=wt}));else{var ht=Pe(We),St=function(wt){return{coords:wt,get page(){return this.coords.page},get client(){return this.coords.client},get timeStamp(){return this.coords.timeStamp},get pageX(){return this.coords.page.x},get pageY(){return this.coords.page.y},get clientX(){return this.coords.client.x},get clientY(){return this.coords.client.y},get pointerId(){return this.coords.pointerId},get target(){return this.coords.target},get type(){return this.coords.type},get pointerType(){return this.coords.pointerType},get buttons(){return this.coords.buttons},preventDefault:function(){}}}({page:{x:ht.x,y:ht.y},client:{x:ht.x,y:ht.y},timeStamp:re.now()});At=function(wt,Vt,An,dn,$t){var Ft=wt.interactions.new({pointerType:"reflow"}),Sn={interaction:Ft,event:$t,pointer:$t,eventTarget:An,phase:"reflow"};Ft.interactable=Vt,Ft.element=An,Ft.prevEvent=$t,Ft.updatePointer($t,$t,An,!0),Se(Ft.coords.delta),Oe(Ft.prepared,dn),Ft._doPhase(Sn);var vn=wt.window,rr=vn.Promise,Di=rr?new rr(function(wo){Ft._reflowResolve=wo}):void 0;return Ft._reflowPromise=Di,Ft.start(dn,Vt,An),Ft._interacting?(Ft.move(Sn),Ft.end($t)):(Ft.stop(),Ft._reflowResolve()),Ft.removePointer($t,$t),Di}(re,Y,Re,V,St)}be&&be.push(At)},ke=0;ke<le.length&&!Fe();ke++);return be&&fe.all(be).then(function(){return Y})}(this,O,M)}},listeners:{"interactions:stop":function(M,S){var O=M.interaction;O.pointerType==="reflow"&&(O._reflowResolve&&O._reflowResolve(),function(Y,V){Y.splice(Y.indexOf(V),1)}(S.interactions.list,O))}}},bo=Zc;if(Br.use(qs),Br.use(Vl),Br.use(Ru),Br.use(Ea),Br.use(ta),Br.use(zs),Br.use(ha),Br.use(pa),Br.use(bo),Br.default=Br,i(e)==="object"&&e)try{e.exports=Br}catch{}return Br.default=Br,Br})}(wm,wm.exports)),wm.exports}var hie=fie();const Pv=uh(hie),pie={class:"flex items-center"},mie={class:"ml-1 block truncate"},gie={class:"absolute right-2"},vie={__name:"HamburgerItem",props:{name:String,draggable:{type:Boolean,default:!1},itemCount:Number,index:Number,reset:Boolean},emits:["reorder","reset"],setup(e,{emit:t}){const n=e,r=t,i=l.ref({x:0,y:0});a(),l.watch(()=>n.itemCount,()=>{a()}),l.watch(()=>n.reset,()=>{a()});function a(){const s=o();Pv(`.draggable${n.index}`).draggable({listeners:{start(u){i.value.x=0,i.value.y=0},move(u){const c=s.findIndex(f=>i.value.y>f-1&&i.value.y<f+1);i.value.x+=u.dx,i.value.y+=u.dy;const A=s.find(f=>i.value.y>f-1&&i.value.y<f+1);A||A===0?r("reorder",s.indexOf(A),c):u.target.style.transform=`translate(${i.value.x}px, ${i.value.y}px)`},end(){r("reset")}},modifiers:[Pv.modifiers.snap({targets:s.map(u=>({x:0,y:u})),offset:"startCoords"})]})}function o(){const s=[];for(let u=0;u<n.itemCount;u++){const c=u-n.index;s.push(c*40)}return s}return(s,u)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["cursor-pointer input-block my-2 px-5 py-1 rounded-lg relative",e.draggable?`draggable${e.index} select-none`:"","hover:white-bg-hover dark:hover:dark-bg-hover"])},[l.createElementVNode("span",pie,[e.draggable?(l.openBlock(),l.createBlock(l.unref(Ine),{key:0,class:"icon-md flex-shrink-0 mr-4"})):l.createCommentVNode("",!0),l.createElementVNode("span",mie,l.toDisplayString(e.name),1),l.createElementVNode("span",gie,[l.renderSlot(s.$slots,"right")])])],2))}},yie={props:{radioValue:{type:String,required:!0},label:{type:String,default:""}},methods:{onChange(e){this.$emit("update:modelValue",e.target.value)}}},_ie=["value","checked"],bie={key:0,class:"ml-2 text-sm"};function wie(e,t,n,r,i,a){return l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createElementVNode("input",l.mergeProps({type:"radio",class:["icon std-blue-text focus:std-blue-ring",{disabled:e.$attrs.readonly}],value:n.radioValue,checked:n.radioValue===e.$attrs.modelValue},e.$attrs,{onInput:t[0]||(t[0]=(...o)=>a.onChange&&a.onChange(...o))}),null,16,_ie),n.label?(l.openBlock(),l.createElementBlock("span",bie,l.toDisplayString(n.label),1)):l.createCommentVNode("",!0)],64)}const ko=ar(yie,[["render",wie]]),Bie=["data-active"],xie={class:"mt-2 sm:col-span-2 sm:mt-0"},Cie={class:"flex justify-center rounded-lg border-2 border-dashed px-6 py-10 std-white-border"},Sie={class:"text-center"},kie={class:"mt-4 flex text-sm leading-6"},Mie={for:"file-upload",class:"relative cursor-pointer rounded-md font-bold"},Eie=["accept"],Lie={class:"text-xs leading-5"},G6={__name:"UploadFile",props:{formats:{type:Array,default:()=>[".json"]},readerFunction:{type:String,default:"text"}},emits:["upload","notify"],setup(e,{emit:t}){const n=e,r=t,i=["dragenter","dragover","dragleave","drop","notify"],a=l.ref(!1);function o(c){if(!c.target.files||!c.target.files.length)return;const A=c.target.files[0],f=A.name.substring(A.name.lastIndexOf("."),A.name.length);if(!n.formats.some(d=>d===f)){r("notify","Error","Invalid file format",!1);return}const h=new FileReader;h.onload=d=>{const m=d.target.result;r("upload",m)},n.readerFunction==="data"?h.readAsDataURL(A):h.readAsText(A)}function s(c){o({target:c.dataTransfer}),a.value=!1}function u(c){c.preventDefault()}return l.onMounted(()=>{i.forEach(c=>{document.getElementById("upload-drop").addEventListener(c,u)})}),(c,A)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["w-full",a.value?"white-bg-hover dark:dark-bg-hover":""]),id:"upload-drop","data-active":a.value,onDrop:l.withModifiers(s,["prevent"]),onDragenter:A[0]||(A[0]=l.withModifiers(f=>a.value=!0,["prevent"])),onDragover:A[1]||(A[1]=l.withModifiers(f=>a.value=!0,["prevent"])),onDragleave:A[2]||(A[2]=l.withModifiers(f=>a.value=!1,["prevent"]))},[l.createElementVNode("div",xie,[l.createElementVNode("div",Cie,[l.createElementVNode("div",Sie,[l.createElementVNode("div",kie,[l.createElementVNode("label",Mie,[A[3]||(A[3]=l.createElementVNode("span",null,"Click here to upload a file",-1)),l.createElementVNode("input",{id:"file-upload",name:"file-upload",type:"file",class:"sr-only",accept:e.formats.join(", "),onChange:o},null,40,Eie)]),A[4]||(A[4]=l.createElementVNode("p",{class:"pl-1"},"or drop the file here",-1))]),l.createElementVNode("p",Lie," Accepts "+l.toDisplayString(e.formats.join(" "))+" formats ",1)])])])],42,Bie))}},Tie=["id"],zu=ar(l.defineComponent({__name:"Tooltip",props:{tooltip:{type:String,default:""},showingTooltip:{type:Boolean,default:!1},id:{type:String,default:"tooltip"},direction:{type:String,default:"bottom"}},setup(e){const t=e;return(n,r)=>(l.openBlock(),l.createElementBlock("span",{id:t.id,role:"tooltip",class:l.normalizeClass(["mt-2 tooltip opacity-100 whitespace-nowrap",{hidden:!t.showingTooltip},{"bottom-5 x-center":t.direction==="top"},{"top-5 x-center":t.direction==="bottom"},{"bottom-0 left-tooltip":t.direction==="left"},{"bottom-0 right-tooltip":t.direction==="right"}])},l.toDisplayString(t.tooltip),11,Tie))}}),[["__scopeId","data-v-59ba8a5f"]]),Nie=["disabled"],Fie={key:0,class:"spinner"},sA={__name:"IconButton",props:{color:{type:String,default:"blue",validator:e=>["red","green","blue"].includes(e)},disabled:{type:Boolean,default:!1},dense:{type:Boolean,default:!1},tooltip:{type:String,default:""},tooltipDirection:{type:String,default:"bottom"},loading:{type:Boolean,default:!1}},setup(e){const t=l.ref(!1),n=e;function r(){n.tooltip&&(t.value=!0)}function i(){t.value=!1}return(a,o)=>(l.openBlock(),l.createElementBlock("button",{class:l.normalizeClass(["circle-btn relative",{"p-1.5":e.dense},{"std-btn-blue":e.color==="blue"},{"std-btn-red":e.color==="red"},{"std-btn-green":e.color==="green"}]),disabled:e.disabled||e.loading,onMouseover:r,onMouseout:i},[e.loading?(l.openBlock(),l.createElementBlock("div",Fie)):l.renderSlot(a.$slots,"default",{key:1}),l.createVNode(zu,{tooltip:e.tooltip,showingTooltip:t.value,direction:e.tooltipDirection},null,8,["tooltip","showingTooltip","direction"])],42,Nie))}},Oie={class:"w-full"},Die={class:"table-frame3"},Iie={class:"std-table"},Uie={key:0},Pie={key:1,class:"std-table-body"},Bm={__name:"Table",props:{data:Array,hideHeader:Boolean,dense:{type:Boolean,default:!1},overflow:{type:Boolean,default:!0}},setup(e){return(t,n)=>(l.openBlock(),l.createElementBlock("div",Oie,[l.createElementVNode("div",{class:l.normalizeClass(e.dense?"":"table-frame1")},[l.createElementVNode("div",{class:l.normalizeClass(e.dense?"":e.overflow?"overflow-x-auto":"")},[l.createElementVNode("div",Die,[l.createElementVNode("div",{class:l.normalizeClass(["table-shadow",{"overflow-hidden":e.overflow}])},[l.createElementVNode("table",Iie,[l.createElementVNode("thead",{class:l.normalizeClass(e.hideHeader?"sr-only":"text-left")},[l.renderSlot(t.$slots,"header")],2),!e.data||e.data.length===0?(l.openBlock(),l.createElementBlock("tbody",Uie,n[0]||(n[0]=[l.createElementVNode("tr",null,[l.createElementVNode("td",{colspan:"100%",class:"h-24 text-center std-table-body"}," No data available ")],-1)]))):(l.openBlock(),l.createElementBlock("tbody",Pie,[l.renderSlot(t.$slots,"rows")]))]),l.renderSlot(t.$slots,"pagination")],2)])],2)],2)]))}},Hie=["colspan"],qi={__name:"TableData",props:{title:[String,Number,Array],colspan:{type:String,default:"1"},center:{type:Boolean,default:!1},right:{type:Boolean,default:!1},hover:{type:Boolean,default:!1},break:{type:Boolean,default:!1}},setup(e){const t=e;return(n,r)=>(l.openBlock(),l.createElementBlock("td",{colspan:t.colspan,class:l.normalizeClass(["table-font",{"cursor-pointer hover:white-bg-hover dark:hover:dark-bg-hover":t.hover},{"break-all":t.break}])},[l.createElementVNode("span",{class:l.normalizeClass([{"flex text-right justify-end":t.right&&!t.center},{"flex justify-center":t.center}])},[l.createTextVNode(l.toDisplayString(t.title)+" ",1),l.renderSlot(n.$slots,"default")],2)],10,Hie))}},Yie=["colspan"],ri={__name:"TableHeader",props:{title:String,colspan:{type:String,default:"1"},center:{type:Boolean,default:!1}},setup(e){const t=e;return(n,r)=>(l.openBlock(),l.createElementBlock("th",{scope:"col",colspan:t.colspan,class:"std-table-header"},[l.createElementVNode("span",{class:l.normalizeClass(["",{"flex justify-center":t.center}])},[l.createTextVNode(l.toDisplayString(t.title)+" ",1),l.renderSlot(n.$slots,"default")],2)],8,Yie))}},Rie=["disabled"],Qie={key:0,class:"mx-2 inline-block spinner"},jie={key:1,class:"flex"},Ko={__name:"TextButton",props:{text:String,color:{type:String,default:"blue",validator:e=>["red","green","blue"].includes(e)},disabled:{type:[Boolean,Number],default:!1},dense:{type:Boolean,default:!1},loading:{type:Boolean,default:!1}},setup(e){const t=e;return(n,r)=>(l.openBlock(),l.createElementBlock("button",{class:l.normalizeClass(["std-btn",{"px-3 py-1":e.dense},{"std-btn-red":e.color==="red"},{"std-btn-green":e.color==="green"},{"std-btn-blue":e.color==="blue"},{"cursor-not-allowed":e.disabled||e.loading}]),disabled:e.disabled||e.loading},[e.loading?(l.openBlock(),l.createElementBlock("div",Qie)):(l.openBlock(),l.createElementBlock("div",jie,[l.renderSlot(n.$slots,"default"),l.createTextVNode(" "+l.toDisplayString(t.text),1)]))],10,Rie))}},Vie={colspan:"3"},zie={key:0,class:"std-red-text text-sm"},qie={__name:"KeyValueEntry",props:{kvarray:Array,keyName:String,valueName:String,readonly:Boolean,error:String},emits:["update"],setup(e,{emit:t}){const n=e,r=t,i=l.ref(n.kvarray);l.watch(i,o=>{r("update",o)});function a(){const o={};o[n.keyName]="",o[n.valueName]="",i.value||(i.value=[]),i.value.push(o)}return(o,s)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createVNode(Bm,{data:[0]},{header:l.withCtx(()=>[l.createElementVNode("tr",null,[l.createVNode(ri,{title:"Name"}),l.createVNode(ri,{title:"Value"}),l.createVNode(ri,{title:" "})])]),rows:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(i.value,(u,c)=>(l.openBlock(),l.createElementBlock("tr",{key:c},[l.createVNode(qi,null,{default:l.withCtx(()=>[l.createVNode(lo,{modelValue:u[e.keyName],"onUpdate:modelValue":A=>u[e.keyName]=A,readonly:e.readonly},null,8,["modelValue","onUpdate:modelValue","readonly"])]),_:2},1024),l.createVNode(qi,null,{default:l.withCtx(()=>[l.createVNode(lo,{modelValue:u[e.valueName],"onUpdate:modelValue":A=>u[e.valueName]=A,readonly:e.readonly},null,8,["modelValue","onUpdate:modelValue","readonly"])]),_:2},1024),l.createVNode(qi,null,{default:l.withCtx(()=>[l.createVNode(sA,{color:"red",disabled:e.readonly,onClick:A=>i.value.splice(c,1)},{default:l.withCtx(()=>[l.createVNode(l.unref(Fw),{class:"icon-md","aria-hidden":"true"})]),_:2},1032,["disabled","onClick"])]),_:2},1024)]))),128)),l.createElementVNode("tr",null,[l.createElementVNode("th",Vie,[l.createVNode(Ko,{text:"Add",disabled:e.readonly,onClick:a},null,8,["disabled"])])])]),_:1}),e.error?(l.openBlock(),l.createElementBlock("div",zie,l.toDisplayString(e.error),1)):l.createCommentVNode("",!0)],64))}};var W6=typeof global=="object"&&global&&global.Object===Object&&global,Kie=typeof self=="object"&&self&&self.Object===Object&&self,nu=W6||Kie||Function("return this")(),lA=nu.Symbol,X6=Object.prototype,Gie=X6.hasOwnProperty,Wie=X6.toString,xm=lA?lA.toStringTag:void 0;function Xie(e){var t=Gie.call(e,xm),n=e[xm];try{e[xm]=void 0;var r=!0}catch{}var i=Wie.call(e);return r&&(t?e[xm]=n:delete e[xm]),i}var Jie=Object.prototype,Zie=Jie.toString;function $ie(e){return Zie.call(e)}var eae="[object Null]",tae="[object Undefined]",J6=lA?lA.toStringTag:void 0;function ch(e){return e==null?e===void 0?tae:eae:J6&&J6 in Object(e)?Xie(e):$ie(e)}function qu(e){return e!=null&&typeof e=="object"}var Dd=Array.isArray;function uA(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function Z6(e){return e}var nae="[object AsyncFunction]",rae="[object Function]",iae="[object GeneratorFunction]",aae="[object Proxy]";function Uw(e){if(!uA(e))return!1;var t=ch(e);return t==rae||t==iae||t==nae||t==aae}var Pw=nu["__core-js_shared__"],$6=function(){var e=/[^.]+$/.exec(Pw&&Pw.keys&&Pw.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function oae(e){return!!$6&&$6 in e}var sae=Function.prototype,lae=sae.toString;function Id(e){if(e!=null){try{return lae.call(e)}catch{}try{return e+""}catch{}}return""}var uae=/[\\^$.*+?()[\]{}|]/g,cae=/^\[object .+?Constructor\]$/,Aae=Function.prototype,dae=Object.prototype,fae=Aae.toString,hae=dae.hasOwnProperty,pae=RegExp("^"+fae.call(hae).replace(uae,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function mae(e){if(!uA(e)||oae(e))return!1;var t=Uw(e)?pae:cae;return t.test(Id(e))}function gae(e,t){return e==null?void 0:e[t]}function Ud(e,t){var n=gae(e,t);return mae(n)?n:void 0}var Hw=Ud(nu,"WeakMap"),eT=Object.create,vae=function(){function e(){}return function(t){if(!uA(t))return{};if(eT)return eT(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function yae(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function _ae(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var bae=800,wae=16,Bae=Date.now;function xae(e){var t=0,n=0;return function(){var r=Bae(),i=wae-(r-n);if(n=r,i>0){if(++t>=bae)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Cae(e){return function(){return e}}var Hv=function(){try{var e=Ud(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Sae=Hv?function(e,t){return Hv(e,"toString",{configurable:!0,enumerable:!1,value:Cae(t),writable:!0})}:Z6,kae=xae(Sae);function Mae(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var Eae=9007199254740991,Lae=/^(?:0|[1-9]\d*)$/;function tT(e,t){var n=typeof e;return t=t??Eae,!!t&&(n=="number"||n!="symbol"&&Lae.test(e))&&e>-1&&e%1==0&&e<t}function Yw(e,t,n){t=="__proto__"&&Hv?Hv(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Cm(e,t){return e===t||e!==e&&t!==t}var Tae=Object.prototype,Nae=Tae.hasOwnProperty;function nT(e,t,n){var r=e[t];(!(Nae.call(e,t)&&Cm(r,n))||n===void 0&&!(t in e))&&Yw(e,t,n)}function Fae(e,t,n,r){var i=!n;n||(n={});for(var a=-1,o=t.length;++a<o;){var s=t[a],u=void 0;u===void 0&&(u=e[s]),i?Yw(n,s,u):nT(n,s,u)}return n}var rT=Math.max;function Oae(e,t,n){return t=rT(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,a=rT(r.length-t,0),o=Array(a);++i<a;)o[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(o),yae(e,this,s)}}function Dae(e,t){return kae(Oae(e,t,Z6),e+"")}var Iae=9007199254740991;function iT(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Iae}function Yv(e){return e!=null&&iT(e.length)&&!Uw(e)}function Uae(e,t,n){if(!uA(n))return!1;var r=typeof t;return(r=="number"?Yv(n)&&tT(t,n.length):r=="string"&&t in n)?Cm(n[t],e):!1}function Pae(e){return Dae(function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,o=i>2?n[2]:void 0;for(a=e.length>3&&typeof a=="function"?(i--,a):void 0,o&&Uae(n[0],n[1],o)&&(a=i<3?void 0:a,i=1),t=Object(t);++r<i;){var s=n[r];s&&e(t,s,r,a)}return t})}var Hae=Object.prototype;function Rw(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Hae;return e===n}function Yae(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var Rae="[object Arguments]";function aT(e){return qu(e)&&ch(e)==Rae}var oT=Object.prototype,Qae=oT.hasOwnProperty,jae=oT.propertyIsEnumerable,Qw=aT(function(){return arguments}())?aT:function(e){return qu(e)&&Qae.call(e,"callee")&&!jae.call(e,"callee")};function Vae(){return!1}var sT=typeof Qe=="object"&&Qe&&!Qe.nodeType&&Qe,lT=sT&&typeof module=="object"&&module&&!module.nodeType&&module,zae=lT&&lT.exports===sT,uT=zae?nu.Buffer:void 0,qae=uT?uT.isBuffer:void 0,Sm=qae||Vae,Kae="[object Arguments]",Gae="[object Array]",Wae="[object Boolean]",Xae="[object Date]",Jae="[object Error]",Zae="[object Function]",$ae="[object Map]",eoe="[object Number]",toe="[object Object]",noe="[object RegExp]",roe="[object Set]",ioe="[object String]",aoe="[object WeakMap]",ooe="[object ArrayBuffer]",soe="[object DataView]",loe="[object Float32Array]",uoe="[object Float64Array]",coe="[object Int8Array]",Aoe="[object Int16Array]",doe="[object Int32Array]",foe="[object Uint8Array]",hoe="[object Uint8ClampedArray]",poe="[object Uint16Array]",moe="[object Uint32Array]",Qr={};Qr[loe]=Qr[uoe]=Qr[coe]=Qr[Aoe]=Qr[doe]=Qr[foe]=Qr[hoe]=Qr[poe]=Qr[moe]=!0,Qr[Kae]=Qr[Gae]=Qr[ooe]=Qr[Wae]=Qr[soe]=Qr[Xae]=Qr[Jae]=Qr[Zae]=Qr[$ae]=Qr[eoe]=Qr[toe]=Qr[noe]=Qr[roe]=Qr[ioe]=Qr[aoe]=!1;function goe(e){return qu(e)&&iT(e.length)&&!!Qr[ch(e)]}function jw(e){return function(t){return e(t)}}var cT=typeof Qe=="object"&&Qe&&!Qe.nodeType&&Qe,km=cT&&typeof module=="object"&&module&&!module.nodeType&&module,voe=km&&km.exports===cT,Vw=voe&&W6.process,Ah=function(){try{var e=km&&km.require&&km.require("util").types;return e||Vw&&Vw.binding&&Vw.binding("util")}catch{}}(),AT=Ah&&Ah.isTypedArray,zw=AT?jw(AT):goe,yoe=Object.prototype,_oe=yoe.hasOwnProperty;function dT(e,t){var n=Dd(e),r=!n&&Qw(e),i=!n&&!r&&Sm(e),a=!n&&!r&&!i&&zw(e),o=n||r||i||a,s=o?Yae(e.length,String):[],u=s.length;for(var c in e)(t||_oe.call(e,c))&&!(o&&(c=="length"||i&&(c=="offset"||c=="parent")||a&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||tT(c,u)))&&s.push(c);return s}function fT(e,t){return function(n){return e(t(n))}}var boe=fT(Object.keys,Object),woe=Object.prototype,Boe=woe.hasOwnProperty;function xoe(e){if(!Rw(e))return boe(e);var t=[];for(var n in Object(e))Boe.call(e,n)&&n!="constructor"&&t.push(n);return t}function Coe(e){return Yv(e)?dT(e):xoe(e)}function Soe(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var koe=Object.prototype,Moe=koe.hasOwnProperty;function Eoe(e){if(!uA(e))return Soe(e);var t=Rw(e),n=[];for(var r in e)r=="constructor"&&(t||!Moe.call(e,r))||n.push(r);return n}function hT(e){return Yv(e)?dT(e,!0):Eoe(e)}var Mm=Ud(Object,"create");function Loe(){this.__data__=Mm?Mm(null):{},this.size=0}function Toe(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Noe="__lodash_hash_undefined__",Foe=Object.prototype,Ooe=Foe.hasOwnProperty;function Doe(e){var t=this.__data__;if(Mm){var n=t[e];return n===Noe?void 0:n}return Ooe.call(t,e)?t[e]:void 0}var Ioe=Object.prototype,Uoe=Ioe.hasOwnProperty;function Poe(e){var t=this.__data__;return Mm?t[e]!==void 0:Uoe.call(t,e)}var Hoe="__lodash_hash_undefined__";function Yoe(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Mm&&t===void 0?Hoe:t,this}function Pd(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Pd.prototype.clear=Loe,Pd.prototype.delete=Toe,Pd.prototype.get=Doe,Pd.prototype.has=Poe,Pd.prototype.set=Yoe;function Roe(){this.__data__=[],this.size=0}function Rv(e,t){for(var n=e.length;n--;)if(Cm(e[n][0],t))return n;return-1}var Qoe=Array.prototype,joe=Qoe.splice;function Voe(e){var t=this.__data__,n=Rv(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():joe.call(t,n,1),--this.size,!0}function zoe(e){var t=this.__data__,n=Rv(t,e);return n<0?void 0:t[n][1]}function qoe(e){return Rv(this.__data__,e)>-1}function Koe(e,t){var n=this.__data__,r=Rv(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Ku(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ku.prototype.clear=Roe,Ku.prototype.delete=Voe,Ku.prototype.get=zoe,Ku.prototype.has=qoe,Ku.prototype.set=Koe;var Em=Ud(nu,"Map");function Goe(){this.size=0,this.__data__={hash:new Pd,map:new(Em||Ku),string:new Pd}}function Woe(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Qv(e,t){var n=e.__data__;return Woe(t)?n[typeof t=="string"?"string":"hash"]:n.map}function Xoe(e){var t=Qv(this,e).delete(e);return this.size-=t?1:0,t}function Joe(e){return Qv(this,e).get(e)}function Zoe(e){return Qv(this,e).has(e)}function $oe(e,t){var n=Qv(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function Hd(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Hd.prototype.clear=Goe,Hd.prototype.delete=Xoe,Hd.prototype.get=Joe,Hd.prototype.has=Zoe,Hd.prototype.set=$oe;function ese(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var pT=fT(Object.getPrototypeOf,Object),tse="[object Object]",nse=Function.prototype,rse=Object.prototype,mT=nse.toString,ise=rse.hasOwnProperty,ase=mT.call(Object);function ose(e){if(!qu(e)||ch(e)!=tse)return!1;var t=pT(e);if(t===null)return!0;var n=ise.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&mT.call(n)==ase}function sse(){this.__data__=new Ku,this.size=0}function lse(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function use(e){return this.__data__.get(e)}function cse(e){return this.__data__.has(e)}var Ase=200;function dse(e,t){var n=this.__data__;if(n instanceof Ku){var r=n.__data__;if(!Em||r.length<Ase-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Hd(r)}return n.set(e,t),this.size=n.size,this}function ru(e){var t=this.__data__=new Ku(e);this.size=t.size}ru.prototype.clear=sse,ru.prototype.delete=lse,ru.prototype.get=use,ru.prototype.has=cse,ru.prototype.set=dse;var gT=typeof Qe=="object"&&Qe&&!Qe.nodeType&&Qe,vT=gT&&typeof module=="object"&&module&&!module.nodeType&&module,fse=vT&&vT.exports===gT,yT=fse?nu.Buffer:void 0,_T=yT?yT.allocUnsafe:void 0;function bT(e,t){if(t)return e.slice();var n=e.length,r=_T?_T(n):new e.constructor(n);return e.copy(r),r}function hse(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}function pse(){return[]}var mse=Object.prototype,gse=mse.propertyIsEnumerable,wT=Object.getOwnPropertySymbols,vse=wT?function(e){return e==null?[]:(e=Object(e),hse(wT(e),function(t){return gse.call(e,t)}))}:pse;function yse(e,t,n){var r=t(e);return Dd(e)?r:ese(r,n(e))}function qw(e){return yse(e,Coe,vse)}var Kw=Ud(nu,"DataView"),Gw=Ud(nu,"Promise"),Ww=Ud(nu,"Set"),BT="[object Map]",_se="[object Object]",xT="[object Promise]",CT="[object Set]",ST="[object WeakMap]",kT="[object DataView]",bse=Id(Kw),wse=Id(Em),Bse=Id(Gw),xse=Id(Ww),Cse=Id(Hw),Zs=ch;(Kw&&Zs(new Kw(new ArrayBuffer(1)))!=kT||Em&&Zs(new Em)!=BT||Gw&&Zs(Gw.resolve())!=xT||Ww&&Zs(new Ww)!=CT||Hw&&Zs(new Hw)!=ST)&&(Zs=function(e){var t=ch(e),n=t==_se?e.constructor:void 0,r=n?Id(n):"";if(r)switch(r){case bse:return kT;case wse:return BT;case Bse:return xT;case xse:return CT;case Cse:return ST}return t});var Sse=Object.prototype,kse=Sse.hasOwnProperty;function Mse(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&kse.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var jv=nu.Uint8Array;function Xw(e){var t=new e.constructor(e.byteLength);return new jv(t).set(new jv(e)),t}function Ese(e,t){var n=Xw(e.buffer);return new e.constructor(n,e.byteOffset,e.byteLength)}var Lse=/\w*$/;function Tse(e){var t=new e.constructor(e.source,Lse.exec(e));return t.lastIndex=e.lastIndex,t}var MT=lA?lA.prototype:void 0,ET=MT?MT.valueOf:void 0;function Nse(e){return ET?Object(ET.call(e)):{}}function LT(e,t){var n=t?Xw(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var Fse="[object Boolean]",Ose="[object Date]",Dse="[object Map]",Ise="[object Number]",Use="[object RegExp]",Pse="[object Set]",Hse="[object String]",Yse="[object Symbol]",Rse="[object ArrayBuffer]",Qse="[object DataView]",jse="[object Float32Array]",Vse="[object Float64Array]",zse="[object Int8Array]",qse="[object Int16Array]",Kse="[object Int32Array]",Gse="[object Uint8Array]",Wse="[object Uint8ClampedArray]",Xse="[object Uint16Array]",Jse="[object Uint32Array]";function Zse(e,t,n){var r=e.constructor;switch(t){case Rse:return Xw(e);case Fse:case Ose:return new r(+e);case Qse:return Ese(e);case jse:case Vse:case zse:case qse:case Kse:case Gse:case Wse:case Xse:case Jse:return LT(e,n);case Dse:return new r;case Ise:case Hse:return new r(e);case Use:return Tse(e);case Pse:return new r;case Yse:return Nse(e)}}function TT(e){return typeof e.constructor=="function"&&!Rw(e)?vae(pT(e)):{}}var $se="[object Map]";function ele(e){return qu(e)&&Zs(e)==$se}var NT=Ah&&Ah.isMap,tle=NT?jw(NT):ele,nle="[object Set]";function rle(e){return qu(e)&&Zs(e)==nle}var FT=Ah&&Ah.isSet,ile=FT?jw(FT):rle,ale=1,OT="[object Arguments]",ole="[object Array]",sle="[object Boolean]",lle="[object Date]",ule="[object Error]",DT="[object Function]",cle="[object GeneratorFunction]",Ale="[object Map]",dle="[object Number]",IT="[object Object]",fle="[object RegExp]",hle="[object Set]",ple="[object String]",mle="[object Symbol]",gle="[object WeakMap]",vle="[object ArrayBuffer]",yle="[object DataView]",_le="[object Float32Array]",ble="[object Float64Array]",wle="[object Int8Array]",Ble="[object Int16Array]",xle="[object Int32Array]",Cle="[object Uint8Array]",Sle="[object Uint8ClampedArray]",kle="[object Uint16Array]",Mle="[object Uint32Array]",Ir={};Ir[OT]=Ir[ole]=Ir[vle]=Ir[yle]=Ir[sle]=Ir[lle]=Ir[_le]=Ir[ble]=Ir[wle]=Ir[Ble]=Ir[xle]=Ir[Ale]=Ir[dle]=Ir[IT]=Ir[fle]=Ir[hle]=Ir[ple]=Ir[mle]=Ir[Cle]=Ir[Sle]=Ir[kle]=Ir[Mle]=!0,Ir[ule]=Ir[DT]=Ir[gle]=!1;function Vv(e,t,n,r,i,a){var o,s=t&ale;if(o!==void 0)return o;if(!uA(e))return e;var u=Dd(e);if(u)o=Mse(e);else{var c=Zs(e),A=c==DT||c==cle;if(Sm(e))return bT(e,s);if(c==IT||c==OT||A&&!i)o=A?{}:TT(e);else{if(!Ir[c])return i?e:{};o=Zse(e,c,s)}}a||(a=new ru);var f=a.get(e);if(f)return f;a.set(e,o),ile(e)?e.forEach(function(m){o.add(Vv(m,t,n,m,e,a))}):tle(e)&&e.forEach(function(m,p){o.set(p,Vv(m,t,n,p,e,a))});var h=qw,d=u?void 0:h(e);return Mae(d||e,function(m,p){d&&(p=m,m=e[p]),nT(o,p,Vv(m,t,n,p,e,a))}),o}var Ele=1,Lle=4;function dh(e){return Vv(e,Ele|Lle)}var Tle="__lodash_hash_undefined__";function Nle(e){return this.__data__.set(e,Tle),this}function Fle(e){return this.__data__.has(e)}function zv(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Hd;++t<n;)this.add(e[t])}zv.prototype.add=zv.prototype.push=Nle,zv.prototype.has=Fle;function Ole(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function Dle(e,t){return e.has(t)}var Ile=1,Ule=2;function UT(e,t,n,r,i,a){var o=n&Ile,s=e.length,u=t.length;if(s!=u&&!(o&&u>s))return!1;var c=a.get(e),A=a.get(t);if(c&&A)return c==t&&A==e;var f=-1,h=!0,d=n&Ule?new zv:void 0;for(a.set(e,t),a.set(t,e);++f<s;){var m=e[f],p=t[f];if(r)var g=o?r(p,m,f,t,e,a):r(m,p,f,e,t,a);if(g!==void 0){if(g)continue;h=!1;break}if(d){if(!Ole(t,function(v,y){if(!Dle(d,y)&&(m===v||i(m,v,n,r,a)))return d.push(y)})){h=!1;break}}else if(!(m===p||i(m,p,n,r,a))){h=!1;break}}return a.delete(e),a.delete(t),h}function Ple(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}function Hle(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var Yle=1,Rle=2,Qle="[object Boolean]",jle="[object Date]",Vle="[object Error]",zle="[object Map]",qle="[object Number]",Kle="[object RegExp]",Gle="[object Set]",Wle="[object String]",Xle="[object Symbol]",Jle="[object ArrayBuffer]",Zle="[object DataView]",PT=lA?lA.prototype:void 0,Jw=PT?PT.valueOf:void 0;function $le(e,t,n,r,i,a,o){switch(n){case Zle:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Jle:return!(e.byteLength!=t.byteLength||!a(new jv(e),new jv(t)));case Qle:case jle:case qle:return Cm(+e,+t);case Vle:return e.name==t.name&&e.message==t.message;case Kle:case Wle:return e==t+"";case zle:var s=Ple;case Gle:var u=r&Yle;if(s||(s=Hle),e.size!=t.size&&!u)return!1;var c=o.get(e);if(c)return c==t;r|=Rle,o.set(e,t);var A=UT(s(e),s(t),r,i,a,o);return o.delete(e),A;case Xle:if(Jw)return Jw.call(e)==Jw.call(t)}return!1}var eue=1,tue=Object.prototype,nue=tue.hasOwnProperty;function rue(e,t,n,r,i,a){var o=n&eue,s=qw(e),u=s.length,c=qw(t),A=c.length;if(u!=A&&!o)return!1;for(var f=u;f--;){var h=s[f];if(!(o?h in t:nue.call(t,h)))return!1}var d=a.get(e),m=a.get(t);if(d&&m)return d==t&&m==e;var p=!0;a.set(e,t),a.set(t,e);for(var g=o;++f<u;){h=s[f];var v=e[h],y=t[h];if(r)var _=o?r(y,v,h,t,e,a):r(v,y,h,e,t,a);if(!(_===void 0?v===y||i(v,y,n,r,a):_)){p=!1;break}g||(g=h=="constructor")}if(p&&!g){var b=e.constructor,w=t.constructor;b!=w&&"constructor"in e&&"constructor"in t&&!(typeof b=="function"&&b instanceof b&&typeof w=="function"&&w instanceof w)&&(p=!1)}return a.delete(e),a.delete(t),p}var iue=1,HT="[object Arguments]",YT="[object Array]",qv="[object Object]",aue=Object.prototype,RT=aue.hasOwnProperty;function oue(e,t,n,r,i,a){var o=Dd(e),s=Dd(t),u=o?YT:Zs(e),c=s?YT:Zs(t);u=u==HT?qv:u,c=c==HT?qv:c;var A=u==qv,f=c==qv,h=u==c;if(h&&Sm(e)){if(!Sm(t))return!1;o=!0,A=!1}if(h&&!A)return a||(a=new ru),o||zw(e)?UT(e,t,n,r,i,a):$le(e,t,u,n,r,i,a);if(!(n&iue)){var d=A&&RT.call(e,"__wrapped__"),m=f&&RT.call(t,"__wrapped__");if(d||m){var p=d?e.value():e,g=m?t.value():t;return a||(a=new ru),i(p,g,n,r,a)}}return h?(a||(a=new ru),rue(e,t,n,r,i,a)):!1}function QT(e,t,n,r,i){return e===t?!0:e==null||t==null||!qu(e)&&!qu(t)?e!==e&&t!==t:oue(e,t,n,r,QT,i)}function sue(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),s=o.length;s--;){var u=o[++i];if(n(a[u],u,a)===!1)break}return t}}var lue=sue();function Zw(e,t,n){(n!==void 0&&!Cm(e[t],n)||n===void 0&&!(t in e))&&Yw(e,t,n)}function uue(e){return qu(e)&&Yv(e)}function $w(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function cue(e){return Fae(e,hT(e))}function Aue(e,t,n,r,i,a,o){var s=$w(e,n),u=$w(t,n),c=o.get(u);if(c){Zw(e,n,c);return}var A=a?a(s,u,n+"",e,t,o):void 0,f=A===void 0;if(f){var h=Dd(u),d=!h&&Sm(u),m=!h&&!d&&zw(u);A=u,h||d||m?Dd(s)?A=s:uue(s)?A=_ae(s):d?(f=!1,A=bT(u,!0)):m?(f=!1,A=LT(u,!0)):A=[]:ose(u)||Qw(u)?(A=s,Qw(s)?A=cue(s):(!uA(s)||Uw(s))&&(A=TT(u))):f=!1}f&&(o.set(u,A),i(A,u,r,a,o),o.delete(u)),Zw(e,n,A)}function jT(e,t,n,r,i){e!==t&&lue(t,function(a,o){if(i||(i=new ru),uA(a))Aue(e,t,o,n,jT,r,i);else{var s=r?r($w(e,o),a,o+"",e,t,i):void 0;s===void 0&&(s=a),Zw(e,o,s)}},hT)}function e5(e,t){return QT(e,t)}var cA=Pae(function(e,t,n){jT(e,t,n)}),Zt=(e=>(e[e.TYPE=3]="TYPE",e[e.LEVEL=12]="LEVEL",e[e.ATTRIBUTE=13]="ATTRIBUTE",e[e.BLOT=14]="BLOT",e[e.INLINE=7]="INLINE",e[e.BLOCK=11]="BLOCK",e[e.BLOCK_BLOT=10]="BLOCK_BLOT",e[e.INLINE_BLOT=6]="INLINE_BLOT",e[e.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",e[e.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",e[e.ANY=15]="ANY",e))(Zt||{});class iu{constructor(t,n,r={}){this.attrName=t,this.keyName=n;const i=Zt.TYPE&Zt.ATTRIBUTE;this.scope=r.scope!=null?r.scope&Zt.LEVEL|i:Zt.ATTRIBUTE,r.whitelist!=null&&(this.whitelist=r.whitelist)}static keys(t){return Array.from(t.attributes).map(n=>n.name)}add(t,n){return this.canAdd(t,n)?(t.setAttribute(this.keyName,n),!0):!1}canAdd(t,n){return this.whitelist==null?!0:typeof n=="string"?this.whitelist.indexOf(n.replace(/["']/g,""))>-1:this.whitelist.indexOf(n)>-1}remove(t){t.removeAttribute(this.keyName)}value(t){const n=t.getAttribute(this.keyName);return this.canAdd(t,n)&&n?n:""}}class fh extends Error{constructor(t){t="[Parchment] "+t,super(t),this.message=t,this.name=this.constructor.name}}const VT=class FL{constructor(){this.attributes={},this.classes={},this.tags={},this.types={}}static find(t,n=!1){if(t==null)return null;if(this.blots.has(t))return this.blots.get(t)||null;if(n){let r=null;try{r=t.parentNode}catch{return null}return this.find(r,n)}return null}create(t,n,r){const i=this.query(n);if(i==null)throw new fh(`Unable to create ${n} blot`);const a=i,o=n instanceof Node||n.nodeType===Node.TEXT_NODE?n:a.create(r),s=new a(t,o,r);return FL.blots.set(s.domNode,s),s}find(t,n=!1){return FL.find(t,n)}query(t,n=Zt.ANY){let r;return typeof t=="string"?r=this.types[t]||this.attributes[t]:t instanceof Text||t.nodeType===Node.TEXT_NODE?r=this.types.text:typeof t=="number"?t&Zt.LEVEL&Zt.BLOCK?r=this.types.block:t&Zt.LEVEL&Zt.INLINE&&(r=this.types.inline):t instanceof Element&&((t.getAttribute("class")||"").split(/\s+/).some(i=>(r=this.classes[i],!!r)),r=r||this.tags[t.tagName]),r==null?null:"scope"in r&&n&Zt.LEVEL&r.scope&&n&Zt.TYPE&r.scope?r:null}register(...t){return t.map(n=>{const r="blotName"in n,i="attrName"in n;if(!r&&!i)throw new fh("Invalid definition");if(r&&n.blotName==="abstract")throw new fh("Cannot register abstract class");const a=r?n.blotName:i?n.attrName:void 0;return this.types[a]=n,i?typeof n.keyName=="string"&&(this.attributes[n.keyName]=n):r&&(n.className&&(this.classes[n.className]=n),n.tagName&&(Array.isArray(n.tagName)?n.tagName=n.tagName.map(o=>o.toUpperCase()):n.tagName=n.tagName.toUpperCase(),(Array.isArray(n.tagName)?n.tagName:[n.tagName]).forEach(o=>{(this.tags[o]==null||n.className==null)&&(this.tags[o]=n)}))),n})}};VT.blots=new WeakMap;let hh=VT;function zT(e,t){return(e.getAttribute("class")||"").split(/\s+/).filter(n=>n.indexOf(`${t}-`)===0)}class due extends iu{static keys(t){return(t.getAttribute("class")||"").split(/\s+/).map(n=>n.split("-").slice(0,-1).join("-"))}add(t,n){return this.canAdd(t,n)?(this.remove(t),t.classList.add(`${this.keyName}-${n}`),!0):!1}remove(t){zT(t,this.keyName).forEach(n=>{t.classList.remove(n)}),t.classList.length===0&&t.removeAttribute("class")}value(t){const n=(zT(t,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(t,n)?n:""}}const $s=due;function t5(e){const t=e.split("-"),n=t.slice(1).map(r=>r[0].toUpperCase()+r.slice(1)).join("");return t[0]+n}class fue extends iu{static keys(t){return(t.getAttribute("style")||"").split(";").map(n=>n.split(":")[0].trim())}add(t,n){return this.canAdd(t,n)?(t.style[t5(this.keyName)]=n,!0):!1}remove(t){t.style[t5(this.keyName)]="",t.getAttribute("style")||t.removeAttribute("style")}value(t){const n=t.style[t5(this.keyName)];return this.canAdd(t,n)?n:""}}const AA=fue;class hue{constructor(t){this.attributes={},this.domNode=t,this.build()}attribute(t,n){n?t.add(this.domNode,n)&&(t.value(this.domNode)!=null?this.attributes[t.attrName]=t:delete this.attributes[t.attrName]):(t.remove(this.domNode),delete this.attributes[t.attrName])}build(){this.attributes={};const t=hh.find(this.domNode);if(t==null)return;const n=iu.keys(this.domNode),r=$s.keys(this.domNode),i=AA.keys(this.domNode);n.concat(r).concat(i).forEach(a=>{const o=t.scroll.query(a,Zt.ATTRIBUTE);o instanceof iu&&(this.attributes[o.attrName]=o)})}copy(t){Object.keys(this.attributes).forEach(n=>{const r=this.attributes[n].value(this.domNode);t.format(n,r)})}move(t){this.copy(t),Object.keys(this.attributes).forEach(n=>{this.attributes[n].remove(this.domNode)}),this.attributes={}}values(){return Object.keys(this.attributes).reduce((t,n)=>(t[n]=this.attributes[n].value(this.domNode),t),{})}}const Kv=hue,qT=class{constructor(t,n){this.scroll=t,this.domNode=n,hh.blots.set(n,this),this.prev=null,this.next=null}static create(t){if(this.tagName==null)throw new fh("Blot definition missing tagName");let n,r;return Array.isArray(this.tagName)?(typeof t=="string"?(r=t.toUpperCase(),parseInt(r,10).toString()===r&&(r=parseInt(r,10))):typeof t=="number"&&(r=t),typeof r=="number"?n=document.createElement(this.tagName[r-1]):r&&this.tagName.indexOf(r)>-1?n=document.createElement(r):n=document.createElement(this.tagName[0])):n=document.createElement(this.tagName),this.className&&n.classList.add(this.className),n}get statics(){return this.constructor}attach(){}clone(){const t=this.domNode.cloneNode(!1);return this.scroll.create(t)}detach(){this.parent!=null&&this.parent.removeChild(this),hh.blots.delete(this.domNode)}deleteAt(t,n){this.isolate(t,n).remove()}formatAt(t,n,r,i){const a=this.isolate(t,n);if(this.scroll.query(r,Zt.BLOT)!=null&&i)a.wrap(r,i);else if(this.scroll.query(r,Zt.ATTRIBUTE)!=null){const o=this.scroll.create(this.statics.scope);a.wrap(o),o.format(r,i)}}insertAt(t,n,r){const i=r==null?this.scroll.create("text",n):this.scroll.create(n,r),a=this.split(t);this.parent.insertBefore(i,a||void 0)}isolate(t,n){const r=this.split(t);if(r==null)throw new Error("Attempt to isolate at end");return r.split(n),r}length(){return 1}offset(t=this.parent){return this.parent==null||this===t?0:this.parent.children.offset(this)+this.parent.offset(t)}optimize(t){this.statics.requiredContainer&&!(this.parent instanceof this.statics.requiredContainer)&&this.wrap(this.statics.requiredContainer.blotName)}remove(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()}replaceWith(t,n){const r=typeof t=="string"?this.scroll.create(t,n):t;return this.parent!=null&&(this.parent.insertBefore(r,this.next||void 0),this.remove()),r}split(t,n){return t===0?this:this.next}update(t,n){}wrap(t,n){const r=typeof t=="string"?this.scroll.create(t,n):t;if(this.parent!=null&&this.parent.insertBefore(r,this.next||void 0),typeof r.appendChild!="function")throw new fh(`Cannot wrap ${t}`);return r.appendChild(this),r}};qT.blotName="abstract";let KT=qT;const GT=class extends KT{static value(t){return!0}index(t,n){return this.domNode===t||this.domNode.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(n,1):-1}position(t,n){let r=Array.from(this.parent.domNode.childNodes).indexOf(this.domNode);return t>0&&(r+=1),[this.parent.domNode,r]}value(){return{[this.statics.blotName]:this.statics.value(this.domNode)||!0}}};GT.scope=Zt.INLINE_BLOT;const Ia=GT;class pue{constructor(){this.head=null,this.tail=null,this.length=0}append(...t){if(this.insertBefore(t[0],null),t.length>1){const n=t.slice(1);this.append(...n)}}at(t){const n=this.iterator();let r=n();for(;r&&t>0;)t-=1,r=n();return r}contains(t){const n=this.iterator();let r=n();for(;r;){if(r===t)return!0;r=n()}return!1}indexOf(t){const n=this.iterator();let r=n(),i=0;for(;r;){if(r===t)return i;i+=1,r=n()}return-1}insertBefore(t,n){t!=null&&(this.remove(t),t.next=n,n!=null?(t.prev=n.prev,n.prev!=null&&(n.prev.next=t),n.prev=t,n===this.head&&(this.head=t)):this.tail!=null?(this.tail.next=t,t.prev=this.tail,this.tail=t):(t.prev=null,this.head=this.tail=t),this.length+=1)}offset(t){let n=0,r=this.head;for(;r!=null;){if(r===t)return n;n+=r.length(),r=r.next}return-1}remove(t){this.contains(t)&&(t.prev!=null&&(t.prev.next=t.next),t.next!=null&&(t.next.prev=t.prev),t===this.head&&(this.head=t.next),t===this.tail&&(this.tail=t.prev),this.length-=1)}iterator(t=this.head){return()=>{const n=t;return t!=null&&(t=t.next),n}}find(t,n=!1){const r=this.iterator();let i=r();for(;i;){const a=i.length();if(t<a||n&&t===a&&(i.next==null||i.next.length()!==0))return[i,t];t-=a,i=r()}return[null,0]}forEach(t){const n=this.iterator();let r=n();for(;r;)t(r),r=n()}forEachAt(t,n,r){if(n<=0)return;const[i,a]=this.find(t);let o=t-a;const s=this.iterator(i);let u=s();for(;u&&o<t+n;){const c=u.length();t>o?r(u,t-o,Math.min(n,o+c-t)):r(u,0,Math.min(c,t+n-o)),o+=c,u=s()}}map(t){return this.reduce((n,r)=>(n.push(t(r)),n),[])}reduce(t,n){const r=this.iterator();let i=r();for(;i;)n=t(n,i),i=r();return n}}function WT(e,t){const n=t.find(e);if(n)return n;try{return t.create(e)}catch{const r=t.create(Zt.INLINE);return Array.from(e.childNodes).forEach(i=>{r.domNode.appendChild(i)}),e.parentNode&&e.parentNode.replaceChild(r.domNode,e),r.attach(),r}}const XT=class xd extends KT{constructor(t,n){super(t,n),this.uiNode=null,this.build()}appendChild(t){this.insertBefore(t)}attach(){super.attach(),this.children.forEach(t=>{t.attach()})}attachUI(t){this.uiNode!=null&&this.uiNode.remove(),this.uiNode=t,xd.uiClass&&this.uiNode.classList.add(xd.uiClass),this.uiNode.setAttribute("contenteditable","false"),this.domNode.insertBefore(this.uiNode,this.domNode.firstChild)}build(){this.children=new pue,Array.from(this.domNode.childNodes).filter(t=>t!==this.uiNode).reverse().forEach(t=>{try{const n=WT(t,this.scroll);this.insertBefore(n,this.children.head||void 0)}catch(n){if(n instanceof fh)return;throw n}})}deleteAt(t,n){if(t===0&&n===this.length())return this.remove();this.children.forEachAt(t,n,(r,i,a)=>{r.deleteAt(i,a)})}descendant(t,n=0){const[r,i]=this.children.find(n);return t.blotName==null&&t(r)||t.blotName!=null&&r instanceof t?[r,i]:r instanceof xd?r.descendant(t,i):[null,-1]}descendants(t,n=0,r=Number.MAX_VALUE){let i=[],a=r;return this.children.forEachAt(n,r,(o,s,u)=>{(t.blotName==null&&t(o)||t.blotName!=null&&o instanceof t)&&i.push(o),o instanceof xd&&(i=i.concat(o.descendants(t,s,a))),a-=u}),i}detach(){this.children.forEach(t=>{t.detach()}),super.detach()}enforceAllowedChildren(){let t=!1;this.children.forEach(n=>{t||this.statics.allowedChildren.some(r=>n instanceof r)||(n.statics.scope===Zt.BLOCK_BLOT?(n.next!=null&&this.splitAfter(n),n.prev!=null&&this.splitAfter(n.prev),n.parent.unwrap(),t=!0):n instanceof xd?n.unwrap():n.remove())})}formatAt(t,n,r,i){this.children.forEachAt(t,n,(a,o,s)=>{a.formatAt(o,s,r,i)})}insertAt(t,n,r){const[i,a]=this.children.find(t);if(i)i.insertAt(a,n,r);else{const o=r==null?this.scroll.create("text",n):this.scroll.create(n,r);this.appendChild(o)}}insertBefore(t,n){t.parent!=null&&t.parent.children.remove(t);let r=null;this.children.insertBefore(t,n||null),t.parent=this,n!=null&&(r=n.domNode),(this.domNode.parentNode!==t.domNode||this.domNode.nextSibling!==r)&&this.domNode.insertBefore(t.domNode,r),t.attach()}length(){return this.children.reduce((t,n)=>t+n.length(),0)}moveChildren(t,n){this.children.forEach(r=>{t.insertBefore(r,n)})}optimize(t){if(super.optimize(t),this.enforceAllowedChildren(),this.uiNode!=null&&this.uiNode!==this.domNode.firstChild&&this.domNode.insertBefore(this.uiNode,this.domNode.firstChild),this.children.length===0)if(this.statics.defaultChild!=null){const n=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(n)}else this.remove()}path(t,n=!1){const[r,i]=this.children.find(t,n),a=[[this,t]];return r instanceof xd?a.concat(r.path(i,n)):(r!=null&&a.push([r,i]),a)}removeChild(t){this.children.remove(t)}replaceWith(t,n){const r=typeof t=="string"?this.scroll.create(t,n):t;return r instanceof xd&&this.moveChildren(r),super.replaceWith(r)}split(t,n=!1){if(!n){if(t===0)return this;if(t===this.length())return this.next}const r=this.clone();return this.parent&&this.parent.insertBefore(r,this.next||void 0),this.children.forEachAt(t,this.length(),(i,a,o)=>{const s=i.split(a,n);s!=null&&r.appendChild(s)}),r}splitAfter(t){const n=this.clone();for(;t.next!=null;)n.appendChild(t.next);return this.parent&&this.parent.insertBefore(n,this.next||void 0),n}unwrap(){this.parent&&this.moveChildren(this.parent,this.next||void 0),this.remove()}update(t,n){const r=[],i=[];t.forEach(a=>{a.target===this.domNode&&a.type==="childList"&&(r.push(...a.addedNodes),i.push(...a.removedNodes))}),i.forEach(a=>{if(a.parentNode!=null&&a.tagName!=="IFRAME"&&document.body.compareDocumentPosition(a)&Node.DOCUMENT_POSITION_CONTAINED_BY)return;const o=this.scroll.find(a);o!=null&&(o.domNode.parentNode==null||o.domNode.parentNode===this.domNode)&&o.detach()}),r.filter(a=>a.parentNode===this.domNode&&a!==this.uiNode).sort((a,o)=>a===o?0:a.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1).forEach(a=>{let o=null;a.nextSibling!=null&&(o=this.scroll.find(a.nextSibling));const s=WT(a,this.scroll);(s.next!==o||s.next==null)&&(s.parent!=null&&s.parent.removeChild(this),this.insertBefore(s,o||void 0))}),this.enforceAllowedChildren()}};XT.uiClass="";const el=XT;function mue(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}const ph=class om extends el{static create(t){return super.create(t)}static formats(t,n){const r=n.query(om.blotName);if(!(r!=null&&t.tagName===r.tagName)){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return t.tagName.toLowerCase()}}constructor(t,n){super(t,n),this.attributes=new Kv(this.domNode)}format(t,n){if(t===this.statics.blotName&&!n)this.children.forEach(r=>{r instanceof om||(r=r.wrap(om.blotName,!0)),this.attributes.copy(r)}),this.unwrap();else{const r=this.scroll.query(t,Zt.INLINE);if(r==null)return;r instanceof iu?this.attributes.attribute(r,n):n&&(t!==this.statics.blotName||this.formats()[t]!==n)&&this.replaceWith(t,n)}}formats(){const t=this.attributes.values(),n=this.statics.formats(this.domNode,this.scroll);return n!=null&&(t[this.statics.blotName]=n),t}formatAt(t,n,r,i){this.formats()[r]!=null||this.scroll.query(r,Zt.ATTRIBUTE)?this.isolate(t,n).format(r,i):super.formatAt(t,n,r,i)}optimize(t){super.optimize(t);const n=this.formats();if(Object.keys(n).length===0)return this.unwrap();const r=this.next;r instanceof om&&r.prev===this&&mue(n,r.formats())&&(r.moveChildren(this),r.remove())}replaceWith(t,n){const r=super.replaceWith(t,n);return this.attributes.copy(r),r}update(t,n){super.update(t,n),t.some(r=>r.target===this.domNode&&r.type==="attributes")&&this.attributes.build()}wrap(t,n){const r=super.wrap(t,n);return r instanceof om&&this.attributes.move(r),r}};ph.allowedChildren=[ph,Ia],ph.blotName="inline",ph.scope=Zt.INLINE_BLOT,ph.tagName="SPAN";const n5=ph,mh=class OL extends el{static create(t){return super.create(t)}static formats(t,n){const r=n.query(OL.blotName);if(!(r!=null&&t.tagName===r.tagName)){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return t.tagName.toLowerCase()}}constructor(t,n){super(t,n),this.attributes=new Kv(this.domNode)}format(t,n){const r=this.scroll.query(t,Zt.BLOCK);r!=null&&(r instanceof iu?this.attributes.attribute(r,n):t===this.statics.blotName&&!n?this.replaceWith(OL.blotName):n&&(t!==this.statics.blotName||this.formats()[t]!==n)&&this.replaceWith(t,n))}formats(){const t=this.attributes.values(),n=this.statics.formats(this.domNode,this.scroll);return n!=null&&(t[this.statics.blotName]=n),t}formatAt(t,n,r,i){this.scroll.query(r,Zt.BLOCK)!=null?this.format(r,i):super.formatAt(t,n,r,i)}insertAt(t,n,r){if(r==null||this.scroll.query(n,Zt.INLINE)!=null)super.insertAt(t,n,r);else{const i=this.split(t);if(i!=null){const a=this.scroll.create(n,r);i.parent.insertBefore(a,i)}else throw new Error("Attempt to insertAt after block boundaries")}}replaceWith(t,n){const r=super.replaceWith(t,n);return this.attributes.copy(r),r}update(t,n){super.update(t,n),t.some(r=>r.target===this.domNode&&r.type==="attributes")&&this.attributes.build()}};mh.blotName="block",mh.scope=Zt.BLOCK_BLOT,mh.tagName="P",mh.allowedChildren=[n5,mh,Ia];const Lm=mh,r5=class extends el{checkMerge(){return this.next!==null&&this.next.statics.blotName===this.statics.blotName}deleteAt(t,n){super.deleteAt(t,n),this.enforceAllowedChildren()}formatAt(t,n,r,i){super.formatAt(t,n,r,i),this.enforceAllowedChildren()}insertAt(t,n,r){super.insertAt(t,n,r),this.enforceAllowedChildren()}optimize(t){super.optimize(t),this.children.length>0&&this.next!=null&&this.checkMerge()&&(this.next.moveChildren(this),this.next.remove())}};r5.blotName="container",r5.scope=Zt.BLOCK_BLOT;const Gv=r5;class gue extends Ia{static formats(t,n){}format(t,n){super.formatAt(0,this.length(),t,n)}formatAt(t,n,r,i){t===0&&n===this.length()?this.format(r,i):super.formatAt(t,n,r,i)}formats(){return this.statics.formats(this.domNode,this.scroll)}}const Go=gue,vue={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},yue=100,gh=class extends el{constructor(t,n){super(null,n),this.registry=t,this.scroll=this,this.build(),this.observer=new MutationObserver(r=>{this.update(r)}),this.observer.observe(this.domNode,vue),this.attach()}create(t,n){return this.registry.create(this,t,n)}find(t,n=!1){const r=this.registry.find(t,n);return r?r.scroll===this?r:n?this.find(r.scroll.domNode.parentNode,!0):null:null}query(t,n=Zt.ANY){return this.registry.query(t,n)}register(...t){return this.registry.register(...t)}build(){this.scroll!=null&&super.build()}detach(){super.detach(),this.observer.disconnect()}deleteAt(t,n){this.update(),t===0&&n===this.length()?this.children.forEach(r=>{r.remove()}):super.deleteAt(t,n)}formatAt(t,n,r,i){this.update(),super.formatAt(t,n,r,i)}insertAt(t,n,r){this.update(),super.insertAt(t,n,r)}optimize(t=[],n={}){super.optimize(n);const r=n.mutationsMap||new WeakMap;let i=Array.from(this.observer.takeRecords());for(;i.length>0;)t.push(i.pop());const a=(u,c=!0)=>{u==null||u===this||u.domNode.parentNode!=null&&(r.has(u.domNode)||r.set(u.domNode,[]),c&&a(u.parent))},o=u=>{r.has(u.domNode)&&(u instanceof el&&u.children.forEach(o),r.delete(u.domNode),u.optimize(n))};let s=t;for(let u=0;s.length>0;u+=1){if(u>=yue)throw new Error("[Parchment] Maximum optimize iterations reached");for(s.forEach(c=>{const A=this.find(c.target,!0);A!=null&&(A.domNode===c.target&&(c.type==="childList"?(a(this.find(c.previousSibling,!1)),Array.from(c.addedNodes).forEach(f=>{const h=this.find(f,!1);a(h,!1),h instanceof el&&h.children.forEach(d=>{a(d,!1)})})):c.type==="attributes"&&a(A.prev)),a(A))}),this.children.forEach(o),s=Array.from(this.observer.takeRecords()),i=s.slice();i.length>0;)t.push(i.pop())}}update(t,n={}){t=t||this.observer.takeRecords();const r=new WeakMap;t.map(i=>{const a=this.find(i.target,!0);return a==null?null:r.has(a.domNode)?(r.get(a.domNode).push(i),null):(r.set(a.domNode,[i]),a)}).forEach(i=>{i!=null&&i!==this&&r.has(i.domNode)&&i.update(r.get(i.domNode)||[],n)}),n.mutationsMap=r,r.has(this.domNode)&&super.update(r.get(this.domNode),n),this.optimize(t,n)}};gh.blotName="scroll",gh.defaultChild=Lm,gh.allowedChildren=[Lm,Gv],gh.scope=Zt.BLOCK_BLOT,gh.tagName="DIV";const i5=gh,a5=class Pee extends Ia{static create(t){return document.createTextNode(t)}static value(t){return t.data}constructor(t,n){super(t,n),this.text=this.statics.value(this.domNode)}deleteAt(t,n){this.domNode.data=this.text=this.text.slice(0,t)+this.text.slice(t+n)}index(t,n){return this.domNode===t?n:-1}insertAt(t,n,r){r==null?(this.text=this.text.slice(0,t)+n+this.text.slice(t),this.domNode.data=this.text):super.insertAt(t,n,r)}length(){return this.text.length}optimize(t){super.optimize(t),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof Pee&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())}position(t,n=!1){return[this.domNode,t]}split(t,n=!1){if(!n){if(t===0)return this;if(t===this.length())return this.next}const r=this.scroll.create(this.domNode.splitText(t));return this.parent.insertBefore(r,this.next||void 0),this.text=this.statics.value(this.domNode),r}update(t,n){t.some(r=>r.type==="characterData"&&r.target===this.domNode)&&(this.text=this.statics.value(this.domNode))}value(){return this.text}};a5.blotName="text",a5.scope=Zt.INLINE_BLOT;const Wv=a5,_ue=Object.freeze(Object.defineProperty({__proto__:null,Attributor:iu,AttributorStore:Kv,BlockBlot:Lm,ClassAttributor:$s,ContainerBlot:Gv,EmbedBlot:Go,InlineBlot:n5,LeafBlot:Ia,ParentBlot:el,Registry:hh,Scope:Zt,ScrollBlot:i5,StyleAttributor:AA,TextBlot:Wv},Symbol.toStringTag,{value:"Module"}));var Xv={exports:{}},o5,JT;function bue(){if(JT)return o5;JT=1;var e=-1,t=1,n=0;function r(k,F,D,L,H){if(k===F)return k?[[n,k]]:[];if(D!=null){var K=N(k,F,D);if(K)return K}var q=s(k,F),z=k.substring(0,q);k=k.substring(q),F=F.substring(q),q=c(k,F);var J=k.substring(k.length-q);k=k.substring(0,k.length-q),F=F.substring(0,F.length-q);var ie=i(k,F);return z&&ie.unshift([n,z]),J&&ie.push([n,J]),y(ie,H),L&&f(ie),ie}function i(k,F){var D;if(!k)return[[t,F]];if(!F)return[[e,k]];var L=k.length>F.length?k:F,H=k.length>F.length?F:k,K=L.indexOf(H);if(K!==-1)return D=[[t,L.substring(0,K)],[n,H],[t,L.substring(K+H.length)]],k.length>F.length&&(D[0][0]=D[2][0]=e),D;if(H.length===1)return[[e,k],[t,F]];var q=A(k,F);if(q){var z=q[0],J=q[1],ie=q[2],X=q[3],I=q[4],W=r(z,ie),ee=r(J,X);return W.concat([[n,I]],ee)}return a(k,F)}function a(k,F){for(var D=k.length,L=F.length,H=Math.ceil((D+L)/2),K=H,q=2*H,z=new Array(q),J=new Array(q),ie=0;ie<q;ie++)z[ie]=-1,J[ie]=-1;z[K+1]=0,J[K+1]=0;for(var X=D-L,I=X%2!==0,W=0,ee=0,ne=0,pe=0,he=0;he<H;he++){for(var ve=-he+W;ve<=he-ee;ve+=2){var ue=K+ve,_e;ve===-he||ve!==he&&z[ue-1]<z[ue+1]?_e=z[ue+1]:_e=z[ue-1]+1;for(var Le=_e-ve;_e<D&&Le<L&&k.charAt(_e)===F.charAt(Le);)_e++,Le++;if(z[ue]=_e,_e>D)ee+=2;else if(Le>L)W+=2;else if(I){var Me=K+X-ve;if(Me>=0&&Me<q&&J[Me]!==-1){var Pe=D-J[Me];if(_e>=Pe)return o(k,F,_e,Le)}}}for(var Q=-he+ne;Q<=he-pe;Q+=2){var Me=K+Q,Pe;Q===-he||Q!==he&&J[Me-1]<J[Me+1]?Pe=J[Me+1]:Pe=J[Me-1]+1;for(var te=Pe-Q;Pe<D&&te<L&&k.charAt(D-Pe-1)===F.charAt(L-te-1);)Pe++,te++;if(J[Me]=Pe,Pe>D)pe+=2;else if(te>L)ne+=2;else if(!I){var ue=K+X-Q;if(ue>=0&&ue<q&&z[ue]!==-1){var _e=z[ue],Le=K+_e-ue;if(Pe=D-Pe,_e>=Pe)return o(k,F,_e,Le)}}}}return[[e,k],[t,F]]}function o(k,F,D,L){var H=k.substring(0,D),K=F.substring(0,L),q=k.substring(D),z=F.substring(L),J=r(H,K),ie=r(q,z);return J.concat(ie)}function s(k,F){if(!k||!F||k.charAt(0)!==F.charAt(0))return 0;for(var D=0,L=Math.min(k.length,F.length),H=L,K=0;D<H;)k.substring(K,H)==F.substring(K,H)?(D=H,K=D):L=H,H=Math.floor((L-D)/2+D);return _(k.charCodeAt(H-1))&&H--,H}function u(k,F){var D=k.length,L=F.length;if(D==0||L==0)return 0;D>L?k=k.substring(D-L):D<L&&(F=F.substring(0,D));var H=Math.min(D,L);if(k==F)return H;for(var K=0,q=1;;){var z=k.substring(H-q),J=F.indexOf(z);if(J==-1)return K;q+=J,(J==0||k.substring(H-q)==F.substring(0,q))&&(K=q,q++)}}function c(k,F){if(!k||!F||k.slice(-1)!==F.slice(-1))return 0;for(var D=0,L=Math.min(k.length,F.length),H=L,K=0;D<H;)k.substring(k.length-H,k.length-K)==F.substring(F.length-H,F.length-K)?(D=H,K=D):L=H,H=Math.floor((L-D)/2+D);return b(k.charCodeAt(k.length-H))&&H--,H}function A(k,F){var D=k.length>F.length?k:F,L=k.length>F.length?F:k;if(D.length<4||L.length*2<D.length)return null;function H(ee,ne,pe){for(var he=ee.substring(pe,pe+Math.floor(ee.length/4)),ve=-1,ue="",_e,Le,Me,Pe;(ve=ne.indexOf(he,ve+1))!==-1;){var Q=s(ee.substring(pe),ne.substring(ve)),te=c(ee.substring(0,pe),ne.substring(0,ve));ue.length<te+Q&&(ue=ne.substring(ve-te,ve)+ne.substring(ve,ve+Q),_e=ee.substring(0,pe-te),Le=ee.substring(pe+Q),Me=ne.substring(0,ve-te),Pe=ne.substring(ve+Q))}return ue.length*2>=ee.length?[_e,Le,Me,Pe,ue]:null}var K=H(D,L,Math.ceil(D.length/4)),q=H(D,L,Math.ceil(D.length/2)),z;if(!K&&!q)return null;q?K?z=K[4].length>q[4].length?K:q:z=q:z=K;var J,ie,X,I;k.length>F.length?(J=z[0],ie=z[1],X=z[2],I=z[3]):(X=z[0],I=z[1],J=z[2],ie=z[3]);var W=z[4];return[J,ie,X,I,W]}function f(k){for(var F=!1,D=[],L=0,H=null,K=0,q=0,z=0,J=0,ie=0;K<k.length;)k[K][0]==n?(D[L++]=K,q=J,z=ie,J=0,ie=0,H=k[K][1]):(k[K][0]==t?J+=k[K][1].length:ie+=k[K][1].length,H&&H.length<=Math.max(q,z)&&H.length<=Math.max(J,ie)&&(k.splice(D[L-1],0,[e,H]),k[D[L-1]+1][0]=t,L--,L--,K=L>0?D[L-1]:-1,q=0,z=0,J=0,ie=0,H=null,F=!0)),K++;for(F&&y(k),v(k),K=1;K<k.length;){if(k[K-1][0]==e&&k[K][0]==t){var X=k[K-1][1],I=k[K][1],W=u(X,I),ee=u(I,X);W>=ee?(W>=X.length/2||W>=I.length/2)&&(k.splice(K,0,[n,I.substring(0,W)]),k[K-1][1]=X.substring(0,X.length-W),k[K+1][1]=I.substring(W),K++):(ee>=X.length/2||ee>=I.length/2)&&(k.splice(K,0,[n,X.substring(0,ee)]),k[K-1][0]=t,k[K-1][1]=I.substring(0,I.length-ee),k[K+1][0]=e,k[K+1][1]=X.substring(ee),K++),K++}K++}}var h=/[^a-zA-Z0-9]/,d=/\s/,m=/[\r\n]/,p=/\n\r?\n$/,g=/^\r?\n\r?\n/;function v(k){function F(ee,ne){if(!ee||!ne)return 6;var pe=ee.charAt(ee.length-1),he=ne.charAt(0),ve=pe.match(h),ue=he.match(h),_e=ve&&pe.match(d),Le=ue&&he.match(d),Me=_e&&pe.match(m),Pe=Le&&he.match(m),Q=Me&&ee.match(p),te=Pe&&ne.match(g);return Q||te?5:Me||Pe?4:ve&&!_e&&Le?3:_e||Le?2:ve||ue?1:0}for(var D=1;D<k.length-1;){if(k[D-1][0]==n&&k[D+1][0]==n){var L=k[D-1][1],H=k[D][1],K=k[D+1][1],q=c(L,H);if(q){var z=H.substring(H.length-q);L=L.substring(0,L.length-q),H=z+H.substring(0,H.length-q),K=z+K}for(var J=L,ie=H,X=K,I=F(L,H)+F(H,K);H.charAt(0)===K.charAt(0);){L+=H.charAt(0),H=H.substring(1)+K.charAt(0),K=K.substring(1);var W=F(L,H)+F(H,K);W>=I&&(I=W,J=L,ie=H,X=K)}k[D-1][1]!=J&&(J?k[D-1][1]=J:(k.splice(D-1,1),D--),k[D][1]=ie,X?k[D+1][1]=X:(k.splice(D+1,1),D--))}D++}}function y(k,F){k.push([n,""]);for(var D=0,L=0,H=0,K="",q="",z;D<k.length;){if(D<k.length-1&&!k[D][1]){k.splice(D,1);continue}switch(k[D][0]){case t:H++,q+=k[D][1],D++;break;case e:L++,K+=k[D][1],D++;break;case n:var J=D-H-L-1;if(F){if(J>=0&&C(k[J][1])){var ie=k[J][1].slice(-1);if(k[J][1]=k[J][1].slice(0,-1),K=ie+K,q=ie+q,!k[J][1]){k.splice(J,1),D--;var X=J-1;k[X]&&k[X][0]===t&&(H++,q=k[X][1]+q,X--),k[X]&&k[X][0]===e&&(L++,K=k[X][1]+K,X--),J=X}}if(w(k[D][1])){var ie=k[D][1].charAt(0);k[D][1]=k[D][1].slice(1),K+=ie,q+=ie}}if(D<k.length-1&&!k[D][1]){k.splice(D,1);break}if(K.length>0||q.length>0){K.length>0&&q.length>0&&(z=s(q,K),z!==0&&(J>=0?k[J][1]+=q.substring(0,z):(k.splice(0,0,[n,q.substring(0,z)]),D++),q=q.substring(z),K=K.substring(z)),z=c(q,K),z!==0&&(k[D][1]=q.substring(q.length-z)+k[D][1],q=q.substring(0,q.length-z),K=K.substring(0,K.length-z)));var I=H+L;K.length===0&&q.length===0?(k.splice(D-I,I),D=D-I):K.length===0?(k.splice(D-I,I,[t,q]),D=D-I+1):q.length===0?(k.splice(D-I,I,[e,K]),D=D-I+1):(k.splice(D-I,I,[e,K],[t,q]),D=D-I+2)}D!==0&&k[D-1][0]===n?(k[D-1][1]+=k[D][1],k.splice(D,1)):D++,H=0,L=0,K="",q="";break}}k[k.length-1][1]===""&&k.pop();var W=!1;for(D=1;D<k.length-1;)k[D-1][0]===n&&k[D+1][0]===n&&(k[D][1].substring(k[D][1].length-k[D-1][1].length)===k[D-1][1]?(k[D][1]=k[D-1][1]+k[D][1].substring(0,k[D][1].length-k[D-1][1].length),k[D+1][1]=k[D-1][1]+k[D+1][1],k.splice(D-1,1),W=!0):k[D][1].substring(0,k[D+1][1].length)==k[D+1][1]&&(k[D-1][1]+=k[D+1][1],k[D][1]=k[D][1].substring(k[D+1][1].length)+k[D+1][1],k.splice(D+1,1),W=!0)),D++;W&&y(k,F)}function _(k){return k>=55296&&k<=56319}function b(k){return k>=56320&&k<=57343}function w(k){return b(k.charCodeAt(0))}function C(k){return _(k.charCodeAt(k.length-1))}function B(k){for(var F=[],D=0;D<k.length;D++)k[D][1].length>0&&F.push(k[D]);return F}function E(k,F,D,L){return C(k)||w(L)?null:B([[n,k],[e,F],[t,D],[n,L]])}function N(k,F,D){var L=typeof D=="number"?{index:D,length:0}:D.oldRange,H=typeof D=="number"?null:D.newRange,K=k.length,q=F.length;if(L.length===0&&(H===null||H.length===0)){var z=L.index,J=k.slice(0,z),ie=k.slice(z),X=H?H.index:null;e:{var I=z+q-K;if(X!==null&&X!==I||I<0||I>q)break e;var W=F.slice(0,I),ee=F.slice(I);if(ee!==ie)break e;var ne=Math.min(z,I),pe=J.slice(0,ne),he=W.slice(0,ne);if(pe!==he)break e;var ve=J.slice(ne),ue=W.slice(ne);return E(pe,ve,ue,ie)}e:{if(X!==null&&X!==z)break e;var _e=z,W=F.slice(0,_e),ee=F.slice(_e);if(W!==J)break e;var Le=Math.min(K-_e,q-_e),Me=ie.slice(ie.length-Le),Pe=ee.slice(ee.length-Le);if(Me!==Pe)break e;var ve=ie.slice(0,ie.length-Le),ue=ee.slice(0,ee.length-Le);return E(J,ve,ue,Me)}}if(L.length>0&&H&&H.length===0)e:{var pe=k.slice(0,L.index),Me=k.slice(L.index+L.length),ne=pe.length,Le=Me.length;if(q<ne+Le)break e;var he=F.slice(0,ne),Pe=F.slice(q-Le);if(pe!==he||Me!==Pe)break e;var ve=k.slice(ne,K-Le),ue=F.slice(ne,q-Le);return E(pe,ve,ue,Me)}return null}function P(k,F,D,L){return r(k,F,D,L,!0)}return P.INSERT=t,P.DELETE=e,P.EQUAL=n,o5=P,o5}var Tm={exports:{}};Tm.exports;var ZT;function $T(){return ZT||(ZT=1,function(e,t){var n=200,r="__lodash_hash_undefined__",i=9007199254740991,a="[object Arguments]",o="[object Array]",s="[object Boolean]",u="[object Date]",c="[object Error]",A="[object Function]",f="[object GeneratorFunction]",h="[object Map]",d="[object Number]",m="[object Object]",p="[object Promise]",g="[object RegExp]",v="[object Set]",y="[object String]",_="[object Symbol]",b="[object WeakMap]",w="[object ArrayBuffer]",C="[object DataView]",B="[object Float32Array]",E="[object Float64Array]",N="[object Int8Array]",P="[object Int16Array]",k="[object Int32Array]",F="[object Uint8Array]",D="[object Uint8ClampedArray]",L="[object Uint16Array]",H="[object Uint32Array]",K=/[\\^$.*+?()[\]{}|]/g,q=/\w*$/,z=/^\[object .+?Constructor\]$/,J=/^(?:0|[1-9]\d*)$/,ie={};ie[a]=ie[o]=ie[w]=ie[C]=ie[s]=ie[u]=ie[B]=ie[E]=ie[N]=ie[P]=ie[k]=ie[h]=ie[d]=ie[m]=ie[g]=ie[v]=ie[y]=ie[_]=ie[F]=ie[D]=ie[L]=ie[H]=!0,ie[c]=ie[A]=ie[b]=!1;var X=typeof ni=="object"&&ni&&ni.Object===Object&&ni,I=typeof self=="object"&&self&&self.Object===Object&&self,W=X||I||Function("return this")(),ee=t&&!t.nodeType&&t,ne=ee&&!0&&e&&!e.nodeType&&e,pe=ne&&ne.exports===ee;function he(j,me){return j.set(me[0],me[1]),j}function ve(j,me){return j.add(me),j}function ue(j,me){for(var Ne=-1,Xe=j?j.length:0;++Ne<Xe&&me(j[Ne],Ne,j)!==!1;);return j}function _e(j,me){for(var Ne=-1,Xe=me.length,ln=j.length;++Ne<Xe;)j[ln+Ne]=me[Ne];return j}function Le(j,me,Ne,Xe){for(var ln=-1,Pt=j?j.length:0;++ln<Pt;)Ne=me(Ne,j[ln],ln,j);return Ne}function Me(j,me){for(var Ne=-1,Xe=Array(j);++Ne<j;)Xe[Ne]=me(Ne);return Xe}function Pe(j,me){return j==null?void 0:j[me]}function Q(j){var me=!1;if(j!=null&&typeof j.toString!="function")try{me=!!(j+"")}catch{}return me}function te(j){var me=-1,Ne=Array(j.size);return j.forEach(function(Xe,ln){Ne[++me]=[ln,Xe]}),Ne}function ce(j,me){return function(Ne){return j(me(Ne))}}function $(j){var me=-1,Ne=Array(j.size);return j.forEach(function(Xe){Ne[++me]=Xe}),Ne}var Z=Array.prototype,ae=Function.prototype,Be=Object.prototype,Ee=W["__core-js_shared__"],Se=function(){var j=/[^.]+$/.exec(Ee&&Ee.keys&&Ee.keys.IE_PROTO||"");return j?"Symbol(src)_1."+j:""}(),Ye=ae.toString,Te=Be.hasOwnProperty,Ie=Be.toString,Ge=RegExp("^"+Ye.call(Te).replace(K,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),at=pe?W.Buffer:void 0,tt=W.Symbol,pt=W.Uint8Array,_t=ce(Object.getPrototypeOf,Object),vt=Object.create,sn=Be.propertyIsEnumerable,xt=Z.splice,kt=Object.getOwnPropertySymbols,bt=at?at.isBuffer:void 0,an=ce(Object.keys,Object),Mt=Ji(W,"DataView"),cn=Ji(W,"Map"),Ct=Ji(W,"Promise"),Ut=Ji(W,"Set"),yn=Ji(W,"WeakMap"),Lt=Ji(Object,"create"),Dt=Or(Mt),wn=Or(cn),Xi=Or(Ct),_n=Or(Ut),Kr=Or(yn),oi=tt?tt.prototype:void 0,Gt=oi?oi.valueOf:void 0;function Fr(j){var me=-1,Ne=j?j.length:0;for(this.clear();++me<Ne;){var Xe=j[me];this.set(Xe[0],Xe[1])}}function fa(){this.__data__=Lt?Lt(null):{}}function Ei(j){return this.has(j)&&delete this.__data__[j]}function Li(j){var me=this.__data__;if(Lt){var Ne=me[j];return Ne===r?void 0:Ne}return Te.call(me,j)?me[j]:void 0}function fn(j){var me=this.__data__;return Lt?me[j]!==void 0:Te.call(me,j)}function Hn(j,me){var Ne=this.__data__;return Ne[j]=Lt&&me===void 0?r:me,this}Fr.prototype.clear=fa,Fr.prototype.delete=Ei,Fr.prototype.get=Li,Fr.prototype.has=fn,Fr.prototype.set=Hn;function hn(j){var me=-1,Ne=j?j.length:0;for(this.clear();++me<Ne;){var Xe=j[me];this.set(Xe[0],Xe[1])}}function to(){this.__data__=[]}function ha(j){var me=this.__data__,Ne=ma(me,j);if(Ne<0)return!1;var Xe=me.length-1;return Ne==Xe?me.pop():xt.call(me,Ne,1),!0}function Ti(j){var me=this.__data__,Ne=ma(me,j);return Ne<0?void 0:me[Ne][1]}function nr(j){return ma(this.__data__,j)>-1}function jt(j,me){var Ne=this.__data__,Xe=ma(Ne,j);return Xe<0?Ne.push([j,me]):Ne[Xe][1]=me,this}hn.prototype.clear=to,hn.prototype.delete=ha,hn.prototype.get=Ti,hn.prototype.has=nr,hn.prototype.set=jt;function Zn(j){var me=-1,Ne=j?j.length:0;for(this.clear();++me<Ne;){var Xe=j[me];this.set(Xe[0],Xe[1])}}function gi(){this.__data__={hash:new Fr,map:new(cn||hn),string:new Fr}}function no(j){return _o(this,j).delete(j)}function pa(j){return _o(this,j).get(j)}function Tt(j){return _o(this,j).has(j)}function Oe(j,me){return _o(this,j).set(j,me),this}Zn.prototype.clear=gi,Zn.prototype.delete=no,Zn.prototype.get=pa,Zn.prototype.has=Tt,Zn.prototype.set=Oe;function ot(j){this.__data__=new hn(j)}function Et(){this.__data__=new hn}function $n(j){return this.__data__.delete(j)}function _r(j){return this.__data__.get(j)}function hr(j){return this.__data__.has(j)}function Pr(j,me){var Ne=this.__data__;if(Ne instanceof hn){var Xe=Ne.__data__;if(!cn||Xe.length<n-1)return Xe.push([j,me]),this;Ne=this.__data__=new Zn(Xe)}return Ne.set(j,me),this}ot.prototype.clear=Et,ot.prototype.delete=$n,ot.prototype.get=_r,ot.prototype.has=hr,ot.prototype.set=Pr;function cr(j,me){var Ne=Yo(j)||on(j)?Me(j.length,String):[],Xe=Ne.length,ln=!!Xe;for(var Pt in j)Te.call(j,Pt)&&!(ln&&(Pt=="length"||Ql(Pt,Xe)))&&Ne.push(Pt);return Ne}function vi(j,me,Ne){var Xe=j[me];(!(Te.call(j,me)&&Vl(Xe,Ne))||Ne===void 0&&!(me in j))&&(j[me]=Ne)}function ma(j,me){for(var Ne=j.length;Ne--;)if(Vl(j[Ne][0],me))return Ne;return-1}function zn(j,me){return j&&ga(me,Ta(me),j)}function ro(j,me,Ne,Xe,ln,Pt,Ln){var Tn;if(Xe&&(Tn=Pt?Xe(j,ln,Pt,Ln):Xe(j)),Tn!==void 0)return Tn;if(!La(j))return j;var Lr=Yo(j);if(Lr){if(Tn=qc(j),!me)return os(j,Tn)}else{var gn=Zi(j),ti=gn==A||gn==f;if(Ma(j))return br(j,me);if(gn==m||gn==a||ti&&!Pt){if(Q(j))return Pt?j:{};if(Tn=ka(ti?{}:j),!me)return ss(j,zn(Tn,j))}else{if(!ie[gn])return Pt?j:{};Tn=Kc(j,gn,ro,me)}}Ln||(Ln=new ot);var Fi=Ln.get(j);if(Fi)return Fi;if(Ln.set(j,Tn),!Lr)var Hr=Ne?ao(j):Ta(j);return ue(Hr||j,function(wr,vr){Hr&&(vr=wr,wr=j[vr]),vi(Tn,vr,ro(wr,me,Ne,Xe,vr,j,Ln))}),Tn}function is(j){return La(j)?vt(j):{}}function Vs(j,me,Ne){var Xe=me(j);return Yo(j)?Xe:_e(Xe,Ne(j))}function io(j){return Ie.call(j)}function Ho(j){if(!La(j)||va(j))return!1;var me=Ea(j)||Q(j)?Ge:z;return me.test(Or(j))}function zc(j){if(!Uu(j))return an(j);var me=[];for(var Ne in Object(j))Te.call(j,Ne)&&Ne!="constructor"&&me.push(Ne);return me}function br(j,me){if(me)return j.slice();var Ne=new j.constructor(j.length);return j.copy(Ne),Ne}function zs(j){var me=new j.constructor(j.byteLength);return new pt(me).set(new pt(j)),me}function ji(j,me){var Ne=me?zs(j.buffer):j.buffer;return new j.constructor(Ne,j.byteOffset,j.byteLength)}function as(j,me,Ne){var Xe=me?Ne(te(j),!0):te(j);return Le(Xe,he,new j.constructor)}function qs(j){var me=new j.constructor(j.source,q.exec(j));return me.lastIndex=j.lastIndex,me}function Ni(j,me,Ne){var Xe=me?Ne($(j),!0):$(j);return Le(Xe,ve,new j.constructor)}function gr(j){return Gt?Object(Gt.call(j)):{}}function Sa(j,me){var Ne=me?zs(j.buffer):j.buffer;return new j.constructor(Ne,j.byteOffset,j.length)}function os(j,me){var Ne=-1,Xe=j.length;for(me||(me=Array(Xe));++Ne<Xe;)me[Ne]=j[Ne];return me}function ga(j,me,Ne,Xe){Ne||(Ne={});for(var ln=-1,Pt=me.length;++ln<Pt;){var Ln=me[ln],Tn=void 0;vi(Ne,Ln,Tn===void 0?j[Ln]:Tn)}return Ne}function ss(j,me){return ga(j,Vi(j),me)}function ao(j){return Vs(j,Ta,Vi)}function _o(j,me){var Ne=j.__data__;return jl(me)?Ne[typeof me=="string"?"string":"hash"]:Ne.map}function Ji(j,me){var Ne=Pe(j,me);return Ho(Ne)?Ne:void 0}var Vi=kt?ce(kt,Object):oo,Zi=io;(Mt&&Zi(new Mt(new ArrayBuffer(1)))!=C||cn&&Zi(new cn)!=h||Ct&&Zi(Ct.resolve())!=p||Ut&&Zi(new Ut)!=v||yn&&Zi(new yn)!=b)&&(Zi=function(j){var me=Ie.call(j),Ne=me==m?j.constructor:void 0,Xe=Ne?Or(Ne):void 0;if(Xe)switch(Xe){case Dt:return C;case wn:return h;case Xi:return p;case _n:return v;case Kr:return b}return me});function qc(j){var me=j.length,Ne=j.constructor(me);return me&&typeof j[0]=="string"&&Te.call(j,"index")&&(Ne.index=j.index,Ne.input=j.input),Ne}function ka(j){return typeof j.constructor=="function"&&!Uu(j)?is(_t(j)):{}}function Kc(j,me,Ne,Xe){var ln=j.constructor;switch(me){case w:return zs(j);case s:case u:return new ln(+j);case C:return ji(j,Xe);case B:case E:case N:case P:case k:case F:case D:case L:case H:return Sa(j,Xe);case h:return as(j,Xe,Ne);case d:case y:return new ln(j);case g:return qs(j);case v:return Ni(j,Xe,Ne);case _:return gr(j)}}function Ql(j,me){return me=me??i,!!me&&(typeof j=="number"||J.test(j))&&j>-1&&j%1==0&&j<me}function jl(j){var me=typeof j;return me=="string"||me=="number"||me=="symbol"||me=="boolean"?j!=="__proto__":j===null}function va(j){return!!Se&&Se in j}function Uu(j){var me=j&&j.constructor,Ne=typeof me=="function"&&me.prototype||Be;return j===Ne}function Or(j){if(j!=null){try{return Ye.call(j)}catch{}try{return j+""}catch{}}return""}function Ks(j){return ro(j,!0,!0)}function Vl(j,me){return j===me||j!==j&&me!==me}function on(j){return Pu(j)&&Te.call(j,"callee")&&(!sn.call(j,"callee")||Ie.call(j)==a)}var Yo=Array.isArray;function Gs(j){return j!=null&&zl(j.length)&&!Ea(j)}function Pu(j){return ls(j)&&Gs(j)}var Ma=bt||Gc;function Ea(j){var me=La(j)?Ie.call(j):"";return me==A||me==f}function zl(j){return typeof j=="number"&&j>-1&&j%1==0&&j<=i}function La(j){var me=typeof j;return!!j&&(me=="object"||me=="function")}function ls(j){return!!j&&typeof j=="object"}function Ta(j){return Gs(j)?cr(j):zc(j)}function oo(){return[]}function Gc(){return!1}e.exports=Ks}(Tm,Tm.exports)),Tm.exports}var Nm={exports:{}};Nm.exports;var e8;function t8(){return e8||(e8=1,function(e,t){var n=200,r="__lodash_hash_undefined__",i=1,a=2,o=9007199254740991,s="[object Arguments]",u="[object Array]",c="[object AsyncFunction]",A="[object Boolean]",f="[object Date]",h="[object Error]",d="[object Function]",m="[object GeneratorFunction]",p="[object Map]",g="[object Number]",v="[object Null]",y="[object Object]",_="[object Promise]",b="[object Proxy]",w="[object RegExp]",C="[object Set]",B="[object String]",E="[object Symbol]",N="[object Undefined]",P="[object WeakMap]",k="[object ArrayBuffer]",F="[object DataView]",D="[object Float32Array]",L="[object Float64Array]",H="[object Int8Array]",K="[object Int16Array]",q="[object Int32Array]",z="[object Uint8Array]",J="[object Uint8ClampedArray]",ie="[object Uint16Array]",X="[object Uint32Array]",I=/[\\^$.*+?()[\]{}|]/g,W=/^\[object .+?Constructor\]$/,ee=/^(?:0|[1-9]\d*)$/,ne={};ne[D]=ne[L]=ne[H]=ne[K]=ne[q]=ne[z]=ne[J]=ne[ie]=ne[X]=!0,ne[s]=ne[u]=ne[k]=ne[A]=ne[F]=ne[f]=ne[h]=ne[d]=ne[p]=ne[g]=ne[y]=ne[w]=ne[C]=ne[B]=ne[P]=!1;var pe=typeof ni=="object"&&ni&&ni.Object===Object&&ni,he=typeof self=="object"&&self&&self.Object===Object&&self,ve=pe||he||Function("return this")(),ue=t&&!t.nodeType&&t,_e=ue&&!0&&e&&!e.nodeType&&e,Le=_e&&_e.exports===ue,Me=Le&&pe.process,Pe=function(){try{return Me&&Me.binding&&Me.binding("util")}catch{}}(),Q=Pe&&Pe.isTypedArray;function te(j,me){for(var Ne=-1,Xe=j==null?0:j.length,ln=0,Pt=[];++Ne<Xe;){var Ln=j[Ne];me(Ln,Ne,j)&&(Pt[ln++]=Ln)}return Pt}function ce(j,me){for(var Ne=-1,Xe=me.length,ln=j.length;++Ne<Xe;)j[ln+Ne]=me[Ne];return j}function $(j,me){for(var Ne=-1,Xe=j==null?0:j.length;++Ne<Xe;)if(me(j[Ne],Ne,j))return!0;return!1}function Z(j,me){for(var Ne=-1,Xe=Array(j);++Ne<j;)Xe[Ne]=me(Ne);return Xe}function ae(j){return function(me){return j(me)}}function Be(j,me){return j.has(me)}function Ee(j,me){return j==null?void 0:j[me]}function Se(j){var me=-1,Ne=Array(j.size);return j.forEach(function(Xe,ln){Ne[++me]=[ln,Xe]}),Ne}function Ye(j,me){return function(Ne){return j(me(Ne))}}function Te(j){var me=-1,Ne=Array(j.size);return j.forEach(function(Xe){Ne[++me]=Xe}),Ne}var Ie=Array.prototype,Ge=Function.prototype,at=Object.prototype,tt=ve["__core-js_shared__"],pt=Ge.toString,_t=at.hasOwnProperty,vt=function(){var j=/[^.]+$/.exec(tt&&tt.keys&&tt.keys.IE_PROTO||"");return j?"Symbol(src)_1."+j:""}(),sn=at.toString,xt=RegExp("^"+pt.call(_t).replace(I,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),kt=Le?ve.Buffer:void 0,bt=ve.Symbol,an=ve.Uint8Array,Mt=at.propertyIsEnumerable,cn=Ie.splice,Ct=bt?bt.toStringTag:void 0,Ut=Object.getOwnPropertySymbols,yn=kt?kt.isBuffer:void 0,Lt=Ye(Object.keys,Object),Dt=Vi(ve,"DataView"),wn=Vi(ve,"Map"),Xi=Vi(ve,"Promise"),_n=Vi(ve,"Set"),Kr=Vi(ve,"WeakMap"),oi=Vi(Object,"create"),Gt=Or(Dt),Fr=Or(wn),fa=Or(Xi),Ei=Or(_n),Li=Or(Kr),fn=bt?bt.prototype:void 0,Hn=fn?fn.valueOf:void 0;function hn(j){var me=-1,Ne=j==null?0:j.length;for(this.clear();++me<Ne;){var Xe=j[me];this.set(Xe[0],Xe[1])}}function to(){this.__data__=oi?oi(null):{},this.size=0}function ha(j){var me=this.has(j)&&delete this.__data__[j];return this.size-=me?1:0,me}function Ti(j){var me=this.__data__;if(oi){var Ne=me[j];return Ne===r?void 0:Ne}return _t.call(me,j)?me[j]:void 0}function nr(j){var me=this.__data__;return oi?me[j]!==void 0:_t.call(me,j)}function jt(j,me){var Ne=this.__data__;return this.size+=this.has(j)?0:1,Ne[j]=oi&&me===void 0?r:me,this}hn.prototype.clear=to,hn.prototype.delete=ha,hn.prototype.get=Ti,hn.prototype.has=nr,hn.prototype.set=jt;function Zn(j){var me=-1,Ne=j==null?0:j.length;for(this.clear();++me<Ne;){var Xe=j[me];this.set(Xe[0],Xe[1])}}function gi(){this.__data__=[],this.size=0}function no(j){var me=this.__data__,Ne=br(me,j);if(Ne<0)return!1;var Xe=me.length-1;return Ne==Xe?me.pop():cn.call(me,Ne,1),--this.size,!0}function pa(j){var me=this.__data__,Ne=br(me,j);return Ne<0?void 0:me[Ne][1]}function Tt(j){return br(this.__data__,j)>-1}function Oe(j,me){var Ne=this.__data__,Xe=br(Ne,j);return Xe<0?(++this.size,Ne.push([j,me])):Ne[Xe][1]=me,this}Zn.prototype.clear=gi,Zn.prototype.delete=no,Zn.prototype.get=pa,Zn.prototype.has=Tt,Zn.prototype.set=Oe;function ot(j){var me=-1,Ne=j==null?0:j.length;for(this.clear();++me<Ne;){var Xe=j[me];this.set(Xe[0],Xe[1])}}function Et(){this.size=0,this.__data__={hash:new hn,map:new(wn||Zn),string:new hn}}function $n(j){var me=Ji(this,j).delete(j);return this.size-=me?1:0,me}function _r(j){return Ji(this,j).get(j)}function hr(j){return Ji(this,j).has(j)}function Pr(j,me){var Ne=Ji(this,j),Xe=Ne.size;return Ne.set(j,me),this.size+=Ne.size==Xe?0:1,this}ot.prototype.clear=Et,ot.prototype.delete=$n,ot.prototype.get=_r,ot.prototype.has=hr,ot.prototype.set=Pr;function cr(j){var me=-1,Ne=j==null?0:j.length;for(this.__data__=new ot;++me<Ne;)this.add(j[me])}function vi(j){return this.__data__.set(j,r),this}function ma(j){return this.__data__.has(j)}cr.prototype.add=cr.prototype.push=vi,cr.prototype.has=ma;function zn(j){var me=this.__data__=new Zn(j);this.size=me.size}function ro(){this.__data__=new Zn,this.size=0}function is(j){var me=this.__data__,Ne=me.delete(j);return this.size=me.size,Ne}function Vs(j){return this.__data__.get(j)}function io(j){return this.__data__.has(j)}function Ho(j,me){var Ne=this.__data__;if(Ne instanceof Zn){var Xe=Ne.__data__;if(!wn||Xe.length<n-1)return Xe.push([j,me]),this.size=++Ne.size,this;Ne=this.__data__=new ot(Xe)}return Ne.set(j,me),this.size=Ne.size,this}zn.prototype.clear=ro,zn.prototype.delete=is,zn.prototype.get=Vs,zn.prototype.has=io,zn.prototype.set=Ho;function zc(j,me){var Ne=on(j),Xe=!Ne&&Vl(j),ln=!Ne&&!Xe&&Gs(j),Pt=!Ne&&!Xe&&!ln&&ls(j),Ln=Ne||Xe||ln||Pt,Tn=Ln?Z(j.length,String):[],Lr=Tn.length;for(var gn in j)_t.call(j,gn)&&!(Ln&&(gn=="length"||ln&&(gn=="offset"||gn=="parent")||Pt&&(gn=="buffer"||gn=="byteLength"||gn=="byteOffset")||Kc(gn,Lr)))&&Tn.push(gn);return Tn}function br(j,me){for(var Ne=j.length;Ne--;)if(Ks(j[Ne][0],me))return Ne;return-1}function zs(j,me,Ne){var Xe=me(j);return on(j)?Xe:ce(Xe,Ne(j))}function ji(j){return j==null?j===void 0?N:v:Ct&&Ct in Object(j)?Zi(j):Uu(j)}function as(j){return La(j)&&ji(j)==s}function qs(j,me,Ne,Xe,ln){return j===me?!0:j==null||me==null||!La(j)&&!La(me)?j!==j&&me!==me:Ni(j,me,Ne,Xe,qs,ln)}function Ni(j,me,Ne,Xe,ln,Pt){var Ln=on(j),Tn=on(me),Lr=Ln?u:ka(j),gn=Tn?u:ka(me);Lr=Lr==s?y:Lr,gn=gn==s?y:gn;var ti=Lr==y,Fi=gn==y,Hr=Lr==gn;if(Hr&&Gs(j)){if(!Gs(me))return!1;Ln=!0,ti=!1}if(Hr&&!ti)return Pt||(Pt=new zn),Ln||ls(j)?ga(j,me,Ne,Xe,ln,Pt):ss(j,me,Lr,Ne,Xe,ln,Pt);if(!(Ne&i)){var wr=ti&&_t.call(j,"__wrapped__"),vr=Fi&&_t.call(me,"__wrapped__");if(wr||vr){var Br=wr?j.value():j,$i=vr?me.value():me;return Pt||(Pt=new zn),ln(Br,$i,Ne,Xe,Pt)}}return Hr?(Pt||(Pt=new zn),ao(j,me,Ne,Xe,ln,Pt)):!1}function gr(j){if(!zl(j)||jl(j))return!1;var me=Ma(j)?xt:W;return me.test(Or(j))}function Sa(j){return La(j)&&Ea(j.length)&&!!ne[ji(j)]}function os(j){if(!va(j))return Lt(j);var me=[];for(var Ne in Object(j))_t.call(j,Ne)&&Ne!="constructor"&&me.push(Ne);return me}function ga(j,me,Ne,Xe,ln,Pt){var Ln=Ne&i,Tn=j.length,Lr=me.length;if(Tn!=Lr&&!(Ln&&Lr>Tn))return!1;var gn=Pt.get(j);if(gn&&Pt.get(me))return gn==me;var ti=-1,Fi=!0,Hr=Ne&a?new cr:void 0;for(Pt.set(j,me),Pt.set(me,j);++ti<Tn;){var wr=j[ti],vr=me[ti];if(Xe)var Br=Ln?Xe(vr,wr,ti,me,j,Pt):Xe(wr,vr,ti,j,me,Pt);if(Br!==void 0){if(Br)continue;Fi=!1;break}if(Hr){if(!$(me,function($i,Ro){if(!Be(Hr,Ro)&&(wr===$i||ln(wr,$i,Ne,Xe,Pt)))return Hr.push(Ro)})){Fi=!1;break}}else if(!(wr===vr||ln(wr,vr,Ne,Xe,Pt))){Fi=!1;break}}return Pt.delete(j),Pt.delete(me),Fi}function ss(j,me,Ne,Xe,ln,Pt,Ln){switch(Ne){case F:if(j.byteLength!=me.byteLength||j.byteOffset!=me.byteOffset)return!1;j=j.buffer,me=me.buffer;case k:return!(j.byteLength!=me.byteLength||!Pt(new an(j),new an(me)));case A:case f:case g:return Ks(+j,+me);case h:return j.name==me.name&&j.message==me.message;case w:case B:return j==me+"";case p:var Tn=Se;case C:var Lr=Xe&i;if(Tn||(Tn=Te),j.size!=me.size&&!Lr)return!1;var gn=Ln.get(j);if(gn)return gn==me;Xe|=a,Ln.set(j,me);var ti=ga(Tn(j),Tn(me),Xe,ln,Pt,Ln);return Ln.delete(j),ti;case E:if(Hn)return Hn.call(j)==Hn.call(me)}return!1}function ao(j,me,Ne,Xe,ln,Pt){var Ln=Ne&i,Tn=_o(j),Lr=Tn.length,gn=_o(me),ti=gn.length;if(Lr!=ti&&!Ln)return!1;for(var Fi=Lr;Fi--;){var Hr=Tn[Fi];if(!(Ln?Hr in me:_t.call(me,Hr)))return!1}var wr=Pt.get(j);if(wr&&Pt.get(me))return wr==me;var vr=!0;Pt.set(j,me),Pt.set(me,j);for(var Br=Ln;++Fi<Lr;){Hr=Tn[Fi];var $i=j[Hr],Ro=me[Hr];if(Xe)var U=Ln?Xe(Ro,$i,Hr,me,j,Pt):Xe($i,Ro,Hr,j,me,Pt);if(!(U===void 0?$i===Ro||ln($i,Ro,Ne,Xe,Pt):U)){vr=!1;break}Br||(Br=Hr=="constructor")}if(vr&&!Br){var oe=j.constructor,we=me.constructor;oe!=we&&"constructor"in j&&"constructor"in me&&!(typeof oe=="function"&&oe instanceof oe&&typeof we=="function"&&we instanceof we)&&(vr=!1)}return Pt.delete(j),Pt.delete(me),vr}function _o(j){return zs(j,Ta,qc)}function Ji(j,me){var Ne=j.__data__;return Ql(me)?Ne[typeof me=="string"?"string":"hash"]:Ne.map}function Vi(j,me){var Ne=Ee(j,me);return gr(Ne)?Ne:void 0}function Zi(j){var me=_t.call(j,Ct),Ne=j[Ct];try{j[Ct]=void 0;var Xe=!0}catch{}var ln=sn.call(j);return Xe&&(me?j[Ct]=Ne:delete j[Ct]),ln}var qc=Ut?function(j){return j==null?[]:(j=Object(j),te(Ut(j),function(me){return Mt.call(j,me)}))}:oo,ka=ji;(Dt&&ka(new Dt(new ArrayBuffer(1)))!=F||wn&&ka(new wn)!=p||Xi&&ka(Xi.resolve())!=_||_n&&ka(new _n)!=C||Kr&&ka(new Kr)!=P)&&(ka=function(j){var me=ji(j),Ne=me==y?j.constructor:void 0,Xe=Ne?Or(Ne):"";if(Xe)switch(Xe){case Gt:return F;case Fr:return p;case fa:return _;case Ei:return C;case Li:return P}return me});function Kc(j,me){return me=me??o,!!me&&(typeof j=="number"||ee.test(j))&&j>-1&&j%1==0&&j<me}function Ql(j){var me=typeof j;return me=="string"||me=="number"||me=="symbol"||me=="boolean"?j!=="__proto__":j===null}function jl(j){return!!vt&&vt in j}function va(j){var me=j&&j.constructor,Ne=typeof me=="function"&&me.prototype||at;return j===Ne}function Uu(j){return sn.call(j)}function Or(j){if(j!=null){try{return pt.call(j)}catch{}try{return j+""}catch{}}return""}function Ks(j,me){return j===me||j!==j&&me!==me}var Vl=as(function(){return arguments}())?as:function(j){return La(j)&&_t.call(j,"callee")&&!Mt.call(j,"callee")},on=Array.isArray;function Yo(j){return j!=null&&Ea(j.length)&&!Ma(j)}var Gs=yn||Gc;function Pu(j,me){return qs(j,me)}function Ma(j){if(!zl(j))return!1;var me=ji(j);return me==d||me==m||me==c||me==b}function Ea(j){return typeof j=="number"&&j>-1&&j%1==0&&j<=o}function zl(j){var me=typeof j;return j!=null&&(me=="object"||me=="function")}function La(j){return j!=null&&typeof j=="object"}var ls=Q?ae(Q):Sa;function Ta(j){return Yo(j)?zc(j):os(j)}function oo(){return[]}function Gc(){return!1}e.exports=Pu}(Nm,Nm.exports)),Nm.exports}var Jv={},n8;function wue(){if(n8)return Jv;n8=1,Object.defineProperty(Jv,"__esModule",{value:!0});const e=$T(),t=t8();var n;return function(r){function i(u={},c={},A=!1){typeof u!="object"&&(u={}),typeof c!="object"&&(c={});let f=e(c);A||(f=Object.keys(f).reduce((h,d)=>(f[d]!=null&&(h[d]=f[d]),h),{}));for(const h in u)u[h]!==void 0&&c[h]===void 0&&(f[h]=u[h]);return Object.keys(f).length>0?f:void 0}r.compose=i;function a(u={},c={}){typeof u!="object"&&(u={}),typeof c!="object"&&(c={});const A=Object.keys(u).concat(Object.keys(c)).reduce((f,h)=>(t(u[h],c[h])||(f[h]=c[h]===void 0?null:c[h]),f),{});return Object.keys(A).length>0?A:void 0}r.diff=a;function o(u={},c={}){u=u||{};const A=Object.keys(c).reduce((f,h)=>(c[h]!==u[h]&&u[h]!==void 0&&(f[h]=c[h]),f),{});return Object.keys(u).reduce((f,h)=>(u[h]!==c[h]&&c[h]===void 0&&(f[h]=null),f),A)}r.invert=o;function s(u,c,A=!1){if(typeof u!="object")return c;if(typeof c!="object")return;if(!A)return c;const f=Object.keys(c).reduce((h,d)=>(u[d]===void 0&&(h[d]=c[d]),h),{});return Object.keys(f).length>0?f:void 0}r.transform=s}(n||(n={})),Jv.default=n,Jv}var Zv={},r8;function i8(){if(r8)return Zv;r8=1,Object.defineProperty(Zv,"__esModule",{value:!0});var e;return function(t){function n(r){return typeof r.delete=="number"?r.delete:typeof r.retain=="number"?r.retain:typeof r.retain=="object"&&r.retain!==null?1:typeof r.insert=="string"?r.insert.length:1}t.length=n}(e||(e={})),Zv.default=e,Zv}var $v={},a8;function Bue(){if(a8)return $v;a8=1,Object.defineProperty($v,"__esModule",{value:!0});const e=i8();class t{constructor(r){this.ops=r,this.index=0,this.offset=0}hasNext(){return this.peekLength()<1/0}next(r){r||(r=1/0);const i=this.ops[this.index];if(i){const a=this.offset,o=e.default.length(i);if(r>=o-a?(r=o-a,this.index+=1,this.offset=0):this.offset+=r,typeof i.delete=="number")return{delete:r};{const s={};return i.attributes&&(s.attributes=i.attributes),typeof i.retain=="number"?s.retain=r:typeof i.retain=="object"&&i.retain!==null?s.retain=i.retain:typeof i.insert=="string"?s.insert=i.insert.substr(a,r):s.insert=i.insert,s}}else return{retain:1/0}}peek(){return this.ops[this.index]}peekLength(){return this.ops[this.index]?e.default.length(this.ops[this.index])-this.offset:1/0}peekType(){const r=this.ops[this.index];return r?typeof r.delete=="number"?"delete":typeof r.retain=="number"||typeof r.retain=="object"&&r.retain!==null?"retain":"insert":"retain"}rest(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);{const r=this.offset,i=this.index,a=this.next(),o=this.ops.slice(this.index);return this.offset=r,this.index=i,[a].concat(o)}}else return[]}}return $v.default=t,$v}var o8;function xue(){return o8||(o8=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.AttributeMap=t.OpIterator=t.Op=void 0;const n=bue(),r=$T(),i=t8(),a=wue();t.AttributeMap=a.default;const o=i8();t.Op=o.default;const s=Bue();t.OpIterator=s.default;const u="\0",c=(f,h)=>{if(typeof f!="object"||f===null)throw new Error(`cannot retain a ${typeof f}`);if(typeof h!="object"||h===null)throw new Error(`cannot retain a ${typeof h}`);const d=Object.keys(f)[0];if(!d||d!==Object.keys(h)[0])throw new Error(`embed types not matched: ${d} != ${Object.keys(h)[0]}`);return[d,f[d],h[d]]};class A{constructor(h){Array.isArray(h)?this.ops=h:h!=null&&Array.isArray(h.ops)?this.ops=h.ops:this.ops=[]}static registerEmbed(h,d){this.handlers[h]=d}static unregisterEmbed(h){delete this.handlers[h]}static getHandler(h){const d=this.handlers[h];if(!d)throw new Error(`no handlers for embed type "${h}"`);return d}insert(h,d){const m={};return typeof h=="string"&&h.length===0?this:(m.insert=h,d!=null&&typeof d=="object"&&Object.keys(d).length>0&&(m.attributes=d),this.push(m))}delete(h){return h<=0?this:this.push({delete:h})}retain(h,d){if(typeof h=="number"&&h<=0)return this;const m={retain:h};return d!=null&&typeof d=="object"&&Object.keys(d).length>0&&(m.attributes=d),this.push(m)}push(h){let d=this.ops.length,m=this.ops[d-1];if(h=r(h),typeof m=="object"){if(typeof h.delete=="number"&&typeof m.delete=="number")return this.ops[d-1]={delete:m.delete+h.delete},this;if(typeof m.delete=="number"&&h.insert!=null&&(d-=1,m=this.ops[d-1],typeof m!="object"))return this.ops.unshift(h),this;if(i(h.attributes,m.attributes)){if(typeof h.insert=="string"&&typeof m.insert=="string")return this.ops[d-1]={insert:m.insert+h.insert},typeof h.attributes=="object"&&(this.ops[d-1].attributes=h.attributes),this;if(typeof h.retain=="number"&&typeof m.retain=="number")return this.ops[d-1]={retain:m.retain+h.retain},typeof h.attributes=="object"&&(this.ops[d-1].attributes=h.attributes),this}}return d===this.ops.length?this.ops.push(h):this.ops.splice(d,0,h),this}chop(){const h=this.ops[this.ops.length-1];return h&&typeof h.retain=="number"&&!h.attributes&&this.ops.pop(),this}filter(h){return this.ops.filter(h)}forEach(h){this.ops.forEach(h)}map(h){return this.ops.map(h)}partition(h){const d=[],m=[];return this.forEach(p=>{(h(p)?d:m).push(p)}),[d,m]}reduce(h,d){return this.ops.reduce(h,d)}changeLength(){return this.reduce((h,d)=>d.insert?h+o.default.length(d):d.delete?h-d.delete:h,0)}length(){return this.reduce((h,d)=>h+o.default.length(d),0)}slice(h=0,d=1/0){const m=[],p=new s.default(this.ops);let g=0;for(;g<d&&p.hasNext();){let v;g<h?v=p.next(h-g):(v=p.next(d-g),m.push(v)),g+=o.default.length(v)}return new A(m)}compose(h){const d=new s.default(this.ops),m=new s.default(h.ops),p=[],g=m.peek();if(g!=null&&typeof g.retain=="number"&&g.attributes==null){let y=g.retain;for(;d.peekType()==="insert"&&d.peekLength()<=y;)y-=d.peekLength(),p.push(d.next());g.retain-y>0&&m.next(g.retain-y)}const v=new A(p);for(;d.hasNext()||m.hasNext();)if(m.peekType()==="insert")v.push(m.next());else if(d.peekType()==="delete")v.push(d.next());else{const y=Math.min(d.peekLength(),m.peekLength()),_=d.next(y),b=m.next(y);if(b.retain){const w={};if(typeof _.retain=="number")w.retain=typeof b.retain=="number"?y:b.retain;else if(typeof b.retain=="number")_.retain==null?w.insert=_.insert:w.retain=_.retain;else{const B=_.retain==null?"insert":"retain",[E,N,P]=c(_[B],b.retain),k=A.getHandler(E);w[B]={[E]:k.compose(N,P,B==="retain")}}const C=a.default.compose(_.attributes,b.attributes,typeof _.retain=="number");if(C&&(w.attributes=C),v.push(w),!m.hasNext()&&i(v.ops[v.ops.length-1],w)){const B=new A(d.rest());return v.concat(B).chop()}}else typeof b.delete=="number"&&(typeof _.retain=="number"||typeof _.retain=="object"&&_.retain!==null)&&v.push(b)}return v.chop()}concat(h){const d=new A(this.ops.slice());return h.ops.length>0&&(d.push(h.ops[0]),d.ops=d.ops.concat(h.ops.slice(1))),d}diff(h,d){if(this.ops===h.ops)return new A;const m=[this,h].map(_=>_.map(b=>{if(b.insert!=null)return typeof b.insert=="string"?b.insert:u;const w=_===h?"on":"with";throw new Error("diff() called "+w+" non-document")}).join("")),p=new A,g=n(m[0],m[1],d,!0),v=new s.default(this.ops),y=new s.default(h.ops);return g.forEach(_=>{let b=_[1].length;for(;b>0;){let w=0;switch(_[0]){case n.INSERT:w=Math.min(y.peekLength(),b),p.push(y.next(w));break;case n.DELETE:w=Math.min(b,v.peekLength()),v.next(w),p.delete(w);break;case n.EQUAL:w=Math.min(v.peekLength(),y.peekLength(),b);const C=v.next(w),B=y.next(w);i(C.insert,B.insert)?p.retain(w,a.default.diff(C.attributes,B.attributes)):p.push(B).delete(w);break}b-=w}}),p.chop()}eachLine(h,d=`
8
+ `));let d=JL((o=f.props)!=null?o:{},u,A),m=l.cloneVNode(f,d,!0);for(let p in d)p.startsWith("on")&&(m.props||(m.props={}),m.props[p]=d[p]);return m}return Array.isArray(c)&&c.length===1?c[0]:c}return l.h(s,Object.assign({},u,A),{default:()=>c})}function XL(e){return e.flatMap(t=>t.type===l.Fragment?XL(t.children):[t])}function JL(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let i in r)i.startsWith("on")&&typeof r[i]=="function"?(n[i]!=null||(n[i]=[]),n[i].push(r[i])):t[i]=r[i];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map(r=>[r,void 0])));for(let r in n)Object.assign(t,{[r](i,...a){let o=n[r];for(let s of o){if(i instanceof Event&&i.defaultPrevented)return;s(i,...a)}}});return t}function Sv(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function aA(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function mte(e){return e==null?!1:typeof e.type=="string"||typeof e.type=="object"||typeof e.type=="function"}var vs=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(vs||{});let Js=l.defineComponent({name:"Hidden",props:{as:{type:[Object,String],default:"div"},features:{type:Number,default:1}},setup(e,{slots:t,attrs:n}){return()=>{var r;let{features:i,...a}=e,o={"aria-hidden":(i&2)===2?!0:(r=a["aria-hidden"])!=null?r:void 0,hidden:(i&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(i&4)===4&&(i&2)!==2&&{display:"none"}}};return Nn({ourProps:o,theirProps:a,slot:{},attrs:n,slots:t,name:"Hidden"})}}}),ZL=Symbol("Context");var Wn=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Wn||{});function gte(){return ju()!==null}function ju(){return l.inject(ZL,null)}function oh(e){l.provide(ZL,e)}var Yt=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(Yt||{}),$L=(e=>(e[e.Left=0]="Left",e[e.Right=2]="Right",e))($L||{});function vte(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}let Vu=[];vte(()=>{function e(t){t.target instanceof HTMLElement&&t.target!==document.body&&Vu[0]!==t.target&&(Vu.unshift(t.target),Vu=Vu.filter(n=>n!=null&&n.isConnected),Vu.splice(10))}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});function yte(e){throw new Error("Unexpected object: "+e)}var xn=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(xn||{});function kv(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),i=r??-1;switch(e.focus){case 0:{for(let a=0;a<n.length;++a)if(!t.resolveDisabled(n[a],a,n))return a;return r}case 1:{i===-1&&(i=n.length);for(let a=i-1;a>=0;--a)if(!t.resolveDisabled(n[a],a,n))return a;return r}case 2:{for(let a=i+1;a<n.length;++a)if(!t.resolveDisabled(n[a],a,n))return a;return r}case 3:{for(let a=n.length-1;a>=0;--a)if(!t.resolveDisabled(n[a],a,n))return a;return r}case 4:{for(let a=0;a<n.length;++a)if(t.resolveId(n[a],a,n)===e.id)return a;return r}case 5:return null;default:yte(e)}}function Mv(e={},t=null,n=[]){for(let[r,i]of Object.entries(e))t6(n,e6(t,r),i);return n}function e6(e,t){return e?e+"["+t+"]":t}function t6(e,t,n){if(Array.isArray(n))for(let[r,i]of n.entries())t6(e,e6(t,r.toString()),i);else n instanceof Date?e.push([t,n.toISOString()]):typeof n=="boolean"?e.push([t,n?"1":"0"]):typeof n=="string"?e.push([t,n]):typeof n=="number"?e.push([t,`${n}`]):n==null?e.push([t,""]):Mv(n,t,e)}function n6(e){var t,n;let r=(t=e==null?void 0:e.form)!=null?t:e.closest("form");if(r){for(let i of r.elements)if(i!==e&&(i.tagName==="INPUT"&&i.type==="submit"||i.tagName==="BUTTON"&&i.type==="submit"||i.nodeName==="INPUT"&&i.type==="image")){i.click();return}(n=r.requestSubmit)==null||n.call(r)}}function _te(e,t){return e===t}var bte=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(bte||{}),wte=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(wte||{}),Bte=(e=>(e[e.Pointer=0]="Pointer",e[e.Focus=1]="Focus",e[e.Other=2]="Other",e))(Bte||{});let r6=Symbol("ComboboxContext");function kd(e){let t=l.inject(r6,null);if(t===null){let n=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,kd),n}return t}let i6=Symbol("VirtualContext"),xte=l.defineComponent({name:"VirtualProvider",setup(e,{slots:t}){let n=kd("VirtualProvider"),r=l.computed(()=>{let s=Ze(n.optionsRef);if(!s)return{start:0,end:0};let u=window.getComputedStyle(s);return{start:parseFloat(u.paddingBlockStart||u.paddingTop),end:parseFloat(u.paddingBlockEnd||u.paddingBottom)}}),i=nte(l.computed(()=>({scrollPaddingStart:r.value.start,scrollPaddingEnd:r.value.end,count:n.virtual.value.options.length,estimateSize(){return 40},getScrollElement(){return Ze(n.optionsRef)},overscan:12}))),a=l.computed(()=>{var s;return(s=n.virtual.value)==null?void 0:s.options}),o=l.ref(0);return l.watch([a],()=>{o.value+=1}),l.provide(i6,n.virtual.value?i:null),()=>[l.h("div",{style:{position:"relative",width:"100%",height:`${i.value.getTotalSize()}px`},ref:s=>{if(s){if(typeof process<"u"&&process.env.JEST_WORKER_ID!==void 0||n.activationTrigger.value===0)return;n.activeOptionIndex.value!==null&&n.virtual.value.options.length>n.activeOptionIndex.value&&i.value.scrollToIndex(n.activeOptionIndex.value)}}},i.value.getVirtualItems().map(s=>l.cloneVNode(t.default({option:n.virtual.value.options[s.index],open:n.comboboxState.value===0})[0],{key:`${o.value}-${s.index}`,"data-index":s.index,"aria-setsize":n.virtual.value.options.length,"aria-posinset":s.index+1,style:{position:"absolute",top:0,left:0,transform:`translateY(${s.start}px)`,overflowAnchor:"none"}})))]}}),hm=l.defineComponent({name:"Combobox",emits:{"update:modelValue":e=>!0},props:{as:{type:[Object,String],default:"template"},disabled:{type:[Boolean],default:!1},by:{type:[String,Function],nullable:!0,default:null},modelValue:{type:[Object,String,Number,Boolean],default:void 0},defaultValue:{type:[Object,String,Number,Boolean],default:void 0},form:{type:String,optional:!0},name:{type:String,optional:!0},nullable:{type:Boolean,default:!1},multiple:{type:[Boolean],default:!1},immediate:{type:[Boolean],default:!1},virtual:{type:Object,default:null}},inheritAttrs:!1,setup(e,{slots:t,attrs:n,emit:r}){let i=l.ref(1),a=l.ref(null),o=l.ref(null),s=l.ref(null),u=l.ref(null),c=l.ref({static:!1,hold:!1}),A=l.ref([]),f=l.ref(null),h=l.ref(2),d=l.ref(!1);function m(P=k=>k){let k=f.value!==null?A.value[f.value]:null,F=P(A.value.slice()),D=F.length>0&&F[0].dataRef.order.value!==null?F.sort((H,K)=>H.dataRef.order.value-K.dataRef.order.value):dm(F,H=>Ze(H.dataRef.domRef)),L=k?D.indexOf(k):null;return L===-1&&(L=null),{options:D,activeOptionIndex:L}}let p=l.computed(()=>e.multiple?1:0),g=l.computed(()=>e.nullable),[v,y]=xv(l.computed(()=>e.modelValue),P=>r("update:modelValue",P),l.computed(()=>e.defaultValue)),_=l.computed(()=>v.value===void 0?tr(p.value,{1:[],0:void 0}):v.value),b=null,w=null;function C(P){return tr(p.value,{0(){return y==null?void 0:y(P)},1:()=>{let k=l.toRaw(E.value.value).slice(),F=l.toRaw(P),D=k.findIndex(L=>E.compare(F,l.toRaw(L)));return D===-1?k.push(F):k.splice(D,1),y==null?void 0:y(k)}})}let B=l.computed(()=>{});l.watch([B],([P],[k])=>{if(E.virtual.value&&P&&k&&f.value!==null){let F=P.indexOf(k[f.value]);F!==-1?f.value=F:f.value=null}});let E={comboboxState:i,value:_,mode:p,compare(P,k){if(typeof e.by=="string"){let F=e.by;return(P==null?void 0:P[F])===(k==null?void 0:k[F])}return e.by===null?_te(P,k):e.by(P,k)},calculateIndex(P){return E.virtual.value?e.by===null?E.virtual.value.options.indexOf(P):E.virtual.value.options.findIndex(k=>E.compare(k,P)):A.value.findIndex(k=>E.compare(k.dataRef.value,P))},defaultValue:l.computed(()=>e.defaultValue),nullable:g,immediate:l.computed(()=>!1),virtual:l.computed(()=>null),inputRef:o,labelRef:a,buttonRef:s,optionsRef:u,disabled:l.computed(()=>e.disabled),options:A,change(P){y(P)},activeOptionIndex:l.computed(()=>{if(d.value&&f.value===null&&(E.virtual.value?E.virtual.value.options.length>0:A.value.length>0)){if(E.virtual.value){let k=E.virtual.value.options.findIndex(F=>{var D;return!((D=E.virtual.value)!=null&&D.disabled(F))});if(k!==-1)return k}let P=A.value.findIndex(k=>!k.dataRef.disabled);if(P!==-1)return P}return f.value}),activationTrigger:h,optionsPropsRef:c,closeCombobox(){d.value=!1,!e.disabled&&i.value!==1&&(i.value=1,f.value=null)},openCombobox(){if(d.value=!0,!e.disabled&&i.value!==0){if(E.value.value){let P=E.calculateIndex(E.value.value);P!==-1&&(f.value=P)}i.value=0}},setActivationTrigger(P){h.value=P},goToOption(P,k,F){d.value=!1,b!==null&&cancelAnimationFrame(b),b=requestAnimationFrame(()=>{if(e.disabled||u.value&&!c.value.static&&i.value===1)return;if(E.virtual.value){f.value=P===xn.Specific?k:kv({focus:P},{resolveItems:()=>E.virtual.value.options,resolveActiveIndex:()=>{var H,K;return(K=(H=E.activeOptionIndex.value)!=null?H:E.virtual.value.options.findIndex(q=>{var z;return!((z=E.virtual.value)!=null&&z.disabled(q))}))!=null?K:null},resolveDisabled:H=>E.virtual.value.disabled(H),resolveId(){throw new Error("Function not implemented.")}}),h.value=F??2;return}let D=m();if(D.activeOptionIndex===null){let H=D.options.findIndex(K=>!K.dataRef.disabled);H!==-1&&(D.activeOptionIndex=H)}let L=P===xn.Specific?k:kv({focus:P},{resolveItems:()=>D.options,resolveActiveIndex:()=>D.activeOptionIndex,resolveId:H=>H.id,resolveDisabled:H=>H.dataRef.disabled});f.value=L,h.value=F??2,A.value=D.options})},selectOption(P){let k=A.value.find(D=>D.id===P);if(!k)return;let{dataRef:F}=k;C(F.value)},selectActiveOption(){if(E.activeOptionIndex.value!==null){if(E.virtual.value)C(E.virtual.value.options[E.activeOptionIndex.value]);else{let{dataRef:P}=A.value[E.activeOptionIndex.value];C(P.value)}E.goToOption(xn.Specific,E.activeOptionIndex.value)}},registerOption(P,k){let F=l.reactive({id:P,dataRef:k});if(E.virtual.value){A.value.push(F);return}w&&cancelAnimationFrame(w);let D=m(L=>(L.push(F),L));f.value===null&&E.isSelected(k.value.value)&&(D.activeOptionIndex=D.options.indexOf(F)),A.value=D.options,f.value=D.activeOptionIndex,h.value=2,D.options.some(L=>!Ze(L.dataRef.domRef))&&(w=requestAnimationFrame(()=>{let L=m();A.value=L.options,f.value=L.activeOptionIndex}))},unregisterOption(P,k){if(b!==null&&cancelAnimationFrame(b),k&&(d.value=!0),E.virtual.value){A.value=A.value.filter(D=>D.id!==P);return}let F=m(D=>{let L=D.findIndex(H=>H.id===P);return L!==-1&&D.splice(L,1),D});A.value=F.options,f.value=F.activeOptionIndex,h.value=2},isSelected(P){return tr(p.value,{0:()=>E.compare(l.toRaw(E.value.value),l.toRaw(P)),1:()=>l.toRaw(E.value.value).some(k=>E.compare(l.toRaw(k),l.toRaw(P)))})},isActive(P){return f.value===E.calculateIndex(P)}};fm([o,s,u],()=>E.closeCombobox(),l.computed(()=>i.value===0)),l.provide(r6,E),oh(l.computed(()=>tr(i.value,{0:Wn.Open,1:Wn.Closed})));let N=l.computed(()=>{var P;return(P=Ze(o))==null?void 0:P.closest("form")});return l.onMounted(()=>{l.watch([N],()=>{if(!N.value||e.defaultValue===void 0)return;function P(){E.change(e.defaultValue)}return N.value.addEventListener("reset",P),()=>{var k;(k=N.value)==null||k.removeEventListener("reset",P)}},{immediate:!0})}),()=>{var P,k,F;let{name:D,disabled:L,form:H,...K}=e,q={open:i.value===0,disabled:L,activeIndex:E.activeOptionIndex.value,activeOption:E.activeOptionIndex.value===null?null:E.virtual.value?E.virtual.value.options[(P=E.activeOptionIndex.value)!=null?P:0]:(F=(k=E.options.value[E.activeOptionIndex.value])==null?void 0:k.dataRef.value)!=null?F:null,value:_.value};return l.h(l.Fragment,[...D!=null&&_.value!=null?Mv({[D]:_.value}).map(([z,J])=>l.h(Js,Sv({features:vs.Hidden,key:z,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:H,disabled:L,name:z,value:J}))):[],Nn({theirProps:{...n,...aA(K,["by","defaultValue","immediate","modelValue","multiple","nullable","onUpdate:modelValue","virtual"])},ourProps:{},slot:q,slots:t,attrs:n,name:"Combobox"})])}}});l.defineComponent({name:"ComboboxLabel",props:{as:{type:[Object,String],default:"label"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n}){var r;let i=(r=e.id)!=null?r:`headlessui-combobox-label-${dr()}`,a=kd("ComboboxLabel");function o(){var s;(s=Ze(a.inputRef))==null||s.focus({preventScroll:!0})}return()=>{let s={open:a.comboboxState.value===0,disabled:a.disabled.value},{...u}=e,c={id:i,ref:a.labelRef,onClick:o};return Nn({ourProps:c,theirProps:u,slot:s,attrs:t,slots:n,name:"ComboboxLabel"})}}});let Ev=l.defineComponent({name:"ComboboxButton",props:{as:{type:[Object,String],default:"button"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n,expose:r}){var i;let a=(i=e.id)!=null?i:`headlessui-combobox-button-${dr()}`,o=kd("ComboboxButton");r({el:o.buttonRef,$el:o.buttonRef});function s(A){o.disabled.value||(o.comboboxState.value===0?o.closeCombobox():(A.preventDefault(),o.openCombobox()),l.nextTick(()=>{var f;return(f=Ze(o.inputRef))==null?void 0:f.focus({preventScroll:!0})}))}function u(A){switch(A.key){case Yt.ArrowDown:A.preventDefault(),A.stopPropagation(),o.comboboxState.value===1&&o.openCombobox(),l.nextTick(()=>{var f;return(f=o.inputRef.value)==null?void 0:f.focus({preventScroll:!0})});return;case Yt.ArrowUp:A.preventDefault(),A.stopPropagation(),o.comboboxState.value===1&&(o.openCombobox(),l.nextTick(()=>{o.value.value||o.goToOption(xn.Last)})),l.nextTick(()=>{var f;return(f=o.inputRef.value)==null?void 0:f.focus({preventScroll:!0})});return;case Yt.Escape:if(o.comboboxState.value!==0)return;A.preventDefault(),o.optionsRef.value&&!o.optionsPropsRef.value.static&&A.stopPropagation(),o.closeCombobox(),l.nextTick(()=>{var f;return(f=o.inputRef.value)==null?void 0:f.focus({preventScroll:!0})});return}}let c=ah(l.computed(()=>({as:e.as,type:t.type})),o.buttonRef);return()=>{var A,f;let h={open:o.comboboxState.value===0,disabled:o.disabled.value,value:o.value.value},{...d}=e,m={ref:o.buttonRef,id:a,type:c.value,tabindex:"-1","aria-haspopup":"listbox","aria-controls":(A=Ze(o.optionsRef))==null?void 0:A.id,"aria-expanded":o.comboboxState.value===0,"aria-labelledby":o.labelRef.value?[(f=Ze(o.labelRef))==null?void 0:f.id,a].join(" "):void 0,disabled:o.disabled.value===!0?!0:void 0,onKeydown:u,onClick:s};return Nn({ourProps:m,theirProps:d,slot:h,attrs:t,slots:n,name:"ComboboxButton"})}}}),Lv=l.defineComponent({name:"ComboboxInput",props:{as:{type:[Object,String],default:"input"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},displayValue:{type:Function},defaultValue:{type:String,default:void 0},id:{type:String,default:null}},emits:{change:e=>!0},setup(e,{emit:t,attrs:n,slots:r,expose:i}){var a;let o=(a=e.id)!=null?a:`headlessui-combobox-input-${dr()}`,s=kd("ComboboxInput"),u=l.computed(()=>Da(Ze(s.inputRef))),c={value:!1};i({el:s.inputRef,$el:s.inputRef});function A(){s.change(null);let w=Ze(s.optionsRef);w&&(w.scrollTop=0),s.goToOption(xn.Nothing)}let f=l.computed(()=>{var w;let C=s.value.value;return Ze(s.inputRef)?typeof e.displayValue<"u"&&C!==void 0?(w=e.displayValue(C))!=null?w:"":typeof C=="string"?C:"":""});l.onMounted(()=>{l.watch([f,s.comboboxState,u],([w,C],[B,E])=>{if(c.value)return;let N=Ze(s.inputRef);N&&((E===0&&C===1||w!==B)&&(N.value=w),requestAnimationFrame(()=>{var P;if(c.value||!N||((P=u.value)==null?void 0:P.activeElement)!==N)return;let{selectionStart:k,selectionEnd:F}=N;Math.abs((F??0)-(k??0))===0&&k===0&&N.setSelectionRange(N.value.length,N.value.length)}))},{immediate:!0}),l.watch([s.comboboxState],([w],[C])=>{if(w===0&&C===1){if(c.value)return;let B=Ze(s.inputRef);if(!B)return;let E=B.value,{selectionStart:N,selectionEnd:P,selectionDirection:k}=B;B.value="",B.value=E,k!==null?B.setSelectionRange(N,P,k):B.setSelectionRange(N,P)}})});let h=l.ref(!1);function d(){h.value=!0}function m(){nA().nextFrame(()=>{h.value=!1})}let p=ite();function g(w){switch(c.value=!0,p(()=>{c.value=!1}),w.key){case Yt.Enter:if(c.value=!1,s.comboboxState.value!==0||h.value)return;if(w.preventDefault(),w.stopPropagation(),s.activeOptionIndex.value===null){s.closeCombobox();return}s.selectActiveOption(),s.mode.value===0&&s.closeCombobox();break;case Yt.ArrowDown:return c.value=!1,w.preventDefault(),w.stopPropagation(),tr(s.comboboxState.value,{0:()=>s.goToOption(xn.Next),1:()=>s.openCombobox()});case Yt.ArrowUp:return c.value=!1,w.preventDefault(),w.stopPropagation(),tr(s.comboboxState.value,{0:()=>s.goToOption(xn.Previous),1:()=>{s.openCombobox(),l.nextTick(()=>{s.value.value||s.goToOption(xn.Last)})}});case Yt.Home:if(w.shiftKey)break;return c.value=!1,w.preventDefault(),w.stopPropagation(),s.goToOption(xn.First);case Yt.PageUp:return c.value=!1,w.preventDefault(),w.stopPropagation(),s.goToOption(xn.First);case Yt.End:if(w.shiftKey)break;return c.value=!1,w.preventDefault(),w.stopPropagation(),s.goToOption(xn.Last);case Yt.PageDown:return c.value=!1,w.preventDefault(),w.stopPropagation(),s.goToOption(xn.Last);case Yt.Escape:if(c.value=!1,s.comboboxState.value!==0)return;w.preventDefault(),s.optionsRef.value&&!s.optionsPropsRef.value.static&&w.stopPropagation(),s.nullable.value&&s.mode.value===0&&s.value.value===null&&A(),s.closeCombobox();break;case Yt.Tab:if(c.value=!1,s.comboboxState.value!==0)return;s.mode.value===0&&s.activationTrigger.value!==1&&s.selectActiveOption(),s.closeCombobox();break}}function v(w){t("change",w),s.nullable.value&&s.mode.value===0&&w.target.value===""&&A(),s.openCombobox()}function y(w){var C,B,E;let N=(C=w.relatedTarget)!=null?C:Vu.find(P=>P!==w.currentTarget);if(c.value=!1,!((B=Ze(s.optionsRef))!=null&&B.contains(N))&&!((E=Ze(s.buttonRef))!=null&&E.contains(N))&&s.comboboxState.value===0)return w.preventDefault(),s.mode.value===0&&(s.nullable.value&&s.value.value===null?A():s.activationTrigger.value!==1&&s.selectActiveOption()),s.closeCombobox()}function _(w){var C,B,E;let N=(C=w.relatedTarget)!=null?C:Vu.find(P=>P!==w.currentTarget);(B=Ze(s.buttonRef))!=null&&B.contains(N)||(E=Ze(s.optionsRef))!=null&&E.contains(N)||s.disabled.value||s.immediate.value&&s.comboboxState.value!==0&&(s.openCombobox(),nA().nextFrame(()=>{s.setActivationTrigger(1)}))}let b=l.computed(()=>{var w,C,B,E;return(E=(B=(C=e.defaultValue)!=null?C:s.defaultValue.value!==void 0?(w=e.displayValue)==null?void 0:w.call(e,s.defaultValue.value):null)!=null?B:s.defaultValue.value)!=null?E:""});return()=>{var w,C,B,E,N,P,k;let F={open:s.comboboxState.value===0},{displayValue:D,onChange:L,...H}=e,K={"aria-controls":(w=s.optionsRef.value)==null?void 0:w.id,"aria-expanded":s.comboboxState.value===0,"aria-activedescendant":s.activeOptionIndex.value===null?void 0:s.virtual.value?(C=s.options.value.find(q=>!s.virtual.value.disabled(q.dataRef.value)&&s.compare(q.dataRef.value,s.virtual.value.options[s.activeOptionIndex.value])))==null?void 0:C.id:(B=s.options.value[s.activeOptionIndex.value])==null?void 0:B.id,"aria-labelledby":(P=(E=Ze(s.labelRef))==null?void 0:E.id)!=null?P:(N=Ze(s.buttonRef))==null?void 0:N.id,"aria-autocomplete":"list",id:o,onCompositionstart:d,onCompositionend:m,onKeydown:g,onInput:v,onFocus:_,onBlur:y,role:"combobox",type:(k=n.type)!=null?k:"text",tabIndex:0,ref:s.inputRef,defaultValue:b.value,disabled:s.disabled.value===!0?!0:void 0};return Nn({ourProps:K,theirProps:H,slot:F,attrs:n,slots:r,features:oa.RenderStrategy|oa.Static,name:"ComboboxInput"})}}}),pm=l.defineComponent({name:"ComboboxOptions",props:{as:{type:[Object,String],default:"ul"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},hold:{type:[Boolean],default:!1}},setup(e,{attrs:t,slots:n,expose:r}){let i=kd("ComboboxOptions"),a=`headlessui-combobox-options-${dr()}`;r({el:i.optionsRef,$el:i.optionsRef}),l.watchEffect(()=>{i.optionsPropsRef.value.static=e.static}),l.watchEffect(()=>{i.optionsPropsRef.value.hold=e.hold});let o=ju(),s=l.computed(()=>o!==null?(o.value&Wn.Open)===Wn.Open:i.comboboxState.value===0);fw({container:l.computed(()=>Ze(i.optionsRef)),enabled:l.computed(()=>i.comboboxState.value===0),accept(c){return c.getAttribute("role")==="option"?NodeFilter.FILTER_REJECT:c.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(c){c.setAttribute("role","none")}});function u(c){c.preventDefault()}return()=>{var c,A,f;let h={open:i.comboboxState.value===0},d={"aria-labelledby":(f=(c=Ze(i.labelRef))==null?void 0:c.id)!=null?f:(A=Ze(i.buttonRef))==null?void 0:A.id,id:a,ref:i.optionsRef,role:"listbox","aria-multiselectable":i.mode.value===1?!0:void 0,onMousedown:u},m=aA(e,["hold"]);return Nn({ourProps:d,theirProps:m,slot:h,attrs:t,slots:i.virtual.value&&i.comboboxState.value===0?{...n,default:()=>[l.h(xte,{},n.default)]}:n,features:oa.RenderStrategy|oa.Static,visible:s.value,name:"ComboboxOptions"})}}}),sh=l.defineComponent({name:"ComboboxOption",props:{as:{type:[Object,String],default:"li"},value:{type:[Object,String,Number,Boolean]},disabled:{type:Boolean,default:!1},order:{type:[Number],default:null}},setup(e,{slots:t,attrs:n,expose:r}){let i=kd("ComboboxOption"),a=`headlessui-combobox-option-${dr()}`,o=l.ref(null),s=l.computed(()=>e.disabled);r({el:o,$el:o});let u=l.computed(()=>{var y;return i.virtual.value?i.activeOptionIndex.value===i.calculateIndex(e.value):i.activeOptionIndex.value===null?!1:((y=i.options.value[i.activeOptionIndex.value])==null?void 0:y.id)===a}),c=l.computed(()=>i.isSelected(e.value)),A=l.inject(i6,null),f=l.computed(()=>({disabled:e.disabled,value:e.value,domRef:o,order:l.computed(()=>e.order)}));l.onMounted(()=>i.registerOption(a,f)),l.onUnmounted(()=>i.unregisterOption(a,u.value)),l.watchEffect(()=>{let y=Ze(o);y&&(A==null||A.value.measureElement(y))}),l.watchEffect(()=>{i.comboboxState.value===0&&u.value&&(i.virtual.value||i.activationTrigger.value!==0&&l.nextTick(()=>{var y,_;return(_=(y=Ze(o))==null?void 0:y.scrollIntoView)==null?void 0:_.call(y,{block:"nearest"})}))});function h(y){y.preventDefault(),y.button===$L.Left&&(s.value||(i.selectOption(a),qL()||requestAnimationFrame(()=>{var _;return(_=Ze(i.inputRef))==null?void 0:_.focus({preventScroll:!0})}),i.mode.value===0&&i.closeCombobox()))}function d(){var y;if(e.disabled||(y=i.virtual.value)!=null&&y.disabled(e.value))return i.goToOption(xn.Nothing);let _=i.calculateIndex(e.value);i.goToOption(xn.Specific,_)}let m=dw();function p(y){m.update(y)}function g(y){var _;if(!m.wasMoved(y)||e.disabled||(_=i.virtual.value)!=null&&_.disabled(e.value)||u.value)return;let b=i.calculateIndex(e.value);i.goToOption(xn.Specific,b,0)}function v(y){var _;m.wasMoved(y)&&(e.disabled||(_=i.virtual.value)!=null&&_.disabled(e.value)||u.value&&(i.optionsPropsRef.value.hold||i.goToOption(xn.Nothing)))}return()=>{let{disabled:y}=e,_={active:u.value,selected:c.value,disabled:y},b={id:a,ref:o,role:"option",tabIndex:y===!0?void 0:-1,"aria-disabled":y===!0?!0:void 0,"aria-selected":c.value,disabled:void 0,onMousedown:h,onFocus:d,onPointerenter:p,onMouseenter:p,onPointermove:g,onMousemove:g,onPointerleave:v,onMouseleave:v},w=aA(e,["order","value"]);return Nn({ourProps:b,theirProps:w,slot:_,attrs:n,slots:t,name:"ComboboxOption"})}}});function pw(e,t,n,r){lm.isServer||l.watchEffect(i=>{e=e??window,e.addEventListener(t,n,r),i(()=>e.removeEventListener(t,n,r))})}var qo=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(qo||{});function mw(){let e=l.ref(0);return KL("keydown",t=>{t.key==="Tab"&&(e.value=t.shiftKey?1:0)}),e}function a6(e){if(!e)return new Set;if(typeof e=="function")return new Set(e());let t=new Set;for(let n of e.value){let r=Ze(n);r instanceof HTMLElement&&t.add(r)}return t}var o6=(e=>(e[e.None=1]="None",e[e.InitialFocus=2]="InitialFocus",e[e.TabLock=4]="TabLock",e[e.FocusLock=8]="FocusLock",e[e.RestoreFocus=16]="RestoreFocus",e[e.All=30]="All",e))(o6||{});let mm=Object.assign(l.defineComponent({name:"FocusTrap",props:{as:{type:[Object,String],default:"div"},initialFocus:{type:Object,default:null},features:{type:Number,default:30},containers:{type:[Object,Function],default:l.ref(new Set)}},inheritAttrs:!1,setup(e,{attrs:t,slots:n,expose:r}){let i=l.ref(null);r({el:i,$el:i});let a=l.computed(()=>Da(i)),o=l.ref(!1);l.onMounted(()=>o.value=!0),l.onUnmounted(()=>o.value=!1),Ste({ownerDocument:a},l.computed(()=>o.value&&!!(e.features&16)));let s=kte({ownerDocument:a,container:i,initialFocus:l.computed(()=>e.initialFocus)},l.computed(()=>o.value&&!!(e.features&2)));Mte({ownerDocument:a,container:i,containers:e.containers,previousActiveElement:s},l.computed(()=>o.value&&!!(e.features&8)));let u=mw();function c(d){let m=Ze(i);m&&(p=>p())(()=>{tr(u.value,{[qo.Forwards]:()=>{So(m,li.First,{skipElements:[d.relatedTarget]})},[qo.Backwards]:()=>{So(m,li.Last,{skipElements:[d.relatedTarget]})}})})}let A=l.ref(!1);function f(d){d.key==="Tab"&&(A.value=!0,requestAnimationFrame(()=>{A.value=!1}))}function h(d){if(!o.value)return;let m=a6(e.containers);Ze(i)instanceof HTMLElement&&m.add(Ze(i));let p=d.relatedTarget;p instanceof HTMLElement&&p.dataset.headlessuiFocusGuard!=="true"&&(s6(m,p)||(A.value?So(Ze(i),tr(u.value,{[qo.Forwards]:()=>li.Next,[qo.Backwards]:()=>li.Previous})|li.WrapAround,{relativeTo:d.target}):d.target instanceof HTMLElement&&rA(d.target)))}return()=>{let d={},m={ref:i,onKeydown:f,onFocusout:h},{features:p,initialFocus:g,containers:v,...y}=e;return l.h(l.Fragment,[!!(p&4)&&l.h(Js,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:c,features:vs.Focusable}),Nn({ourProps:m,theirProps:{...t,...y},slot:d,attrs:t,slots:n,name:"FocusTrap"}),!!(p&4)&&l.h(Js,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:c,features:vs.Focusable})])}}}),{features:o6});function Cte(e){let t=l.ref(Vu.slice());return l.watch([e],([n],[r])=>{r===!0&&n===!1?cw(()=>{t.value.splice(0)}):r===!1&&n===!0&&(t.value=Vu.slice())},{flush:"post"}),()=>{var n;return(n=t.value.find(r=>r!=null&&r.isConnected))!=null?n:null}}function Ste({ownerDocument:e},t){let n=Cte(t);l.onMounted(()=>{l.watchEffect(()=>{var r,i;t.value||((r=e.value)==null?void 0:r.activeElement)===((i=e.value)==null?void 0:i.body)&&rA(n())},{flush:"post"})}),l.onUnmounted(()=>{t.value&&rA(n())})}function kte({ownerDocument:e,container:t,initialFocus:n},r){let i=l.ref(null),a=l.ref(!1);return l.onMounted(()=>a.value=!0),l.onUnmounted(()=>a.value=!1),l.onMounted(()=>{l.watch([t,n,r],(o,s)=>{if(o.every((c,A)=>(s==null?void 0:s[A])===c)||!r.value)return;let u=Ze(t);u&&cw(()=>{var c,A;if(!a.value)return;let f=Ze(n),h=(c=e.value)==null?void 0:c.activeElement;if(f){if(f===h){i.value=h;return}}else if(u.contains(h)){i.value=h;return}f?rA(f):So(u,li.First|li.NoScroll)===Sd.Error&&console.warn("There are no focusable elements inside the <FocusTrap />"),i.value=(A=e.value)==null?void 0:A.activeElement})},{immediate:!0,flush:"post"})}),i}function Mte({ownerDocument:e,container:t,containers:n,previousActiveElement:r},i){var a;pw((a=e.value)==null?void 0:a.defaultView,"focus",o=>{if(!i.value)return;let s=a6(n);Ze(t)instanceof HTMLElement&&s.add(Ze(t));let u=r.value;if(!u)return;let c=o.target;c&&c instanceof HTMLElement?s6(s,c)?(r.value=c,rA(c)):(o.preventDefault(),o.stopPropagation(),rA(u)):rA(r.value)},!0)}function s6(e,t){for(let n of e)if(n.contains(t))return!0;return!1}function Ete(e){let t=l.shallowRef(e.getSnapshot());return l.onUnmounted(e.subscribe(()=>{t.value=e.getSnapshot()})),t}function Lte(e,t){let n=e(),r=new Set;return{getSnapshot(){return n},subscribe(i){return r.add(i),()=>r.delete(i)},dispatch(i,...a){let o=t[i].call(n,...a);o&&(n=o,r.forEach(s=>s()))}}}function Tte(){let e;return{before({doc:t}){var n;let r=t.documentElement;e=((n=t.defaultView)!=null?n:window).innerWidth-r.clientWidth},after({doc:t,d:n}){let r=t.documentElement,i=r.clientWidth-r.offsetWidth,a=e-i;n.style(r,"paddingRight",`${a}px`)}}}function Nte(){return zL()?{before({doc:e,d:t,meta:n}){function r(i){return n.containers.flatMap(a=>a()).some(a=>a.contains(i))}t.microTask(()=>{var i;if(window.getComputedStyle(e.documentElement).scrollBehavior!=="auto"){let s=nA();s.style(e.documentElement,"scrollBehavior","auto"),t.add(()=>t.microTask(()=>s.dispose()))}let a=(i=window.scrollY)!=null?i:window.pageYOffset,o=null;t.addEventListener(e,"click",s=>{if(s.target instanceof HTMLElement)try{let u=s.target.closest("a");if(!u)return;let{hash:c}=new URL(u.href),A=e.querySelector(c);A&&!r(A)&&(o=A)}catch{}},!0),t.addEventListener(e,"touchstart",s=>{if(s.target instanceof HTMLElement)if(r(s.target)){let u=s.target;for(;u.parentElement&&r(u.parentElement);)u=u.parentElement;t.style(u,"overscrollBehavior","contain")}else t.style(s.target,"touchAction","none")}),t.addEventListener(e,"touchmove",s=>{if(s.target instanceof HTMLElement){if(s.target.tagName==="INPUT")return;if(r(s.target)){let u=s.target;for(;u.parentElement&&u.dataset.headlessuiPortal!==""&&!(u.scrollHeight>u.clientHeight||u.scrollWidth>u.clientWidth);)u=u.parentElement;u.dataset.headlessuiPortal===""&&s.preventDefault()}else s.preventDefault()}},{passive:!1}),t.add(()=>{var s;let u=(s=window.scrollY)!=null?s:window.pageYOffset;a!==u&&window.scrollTo(0,a),o&&o.isConnected&&(o.scrollIntoView({block:"nearest"}),o=null)})})}}:{}}function Fte(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function Ote(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let Md=Lte(()=>new Map,{PUSH(e,t){var n;let r=(n=this.get(e))!=null?n:{doc:e,count:0,d:nA(),meta:new Set};return r.count++,r.meta.add(t),this.set(e,r),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:n}){let r={doc:e,d:t,meta:Ote(n)},i=[Nte(),Tte(),Fte()];i.forEach(({before:a})=>a==null?void 0:a(r)),i.forEach(({after:a})=>a==null?void 0:a(r))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});Md.subscribe(()=>{let e=Md.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let r=t.get(n.doc)==="hidden",i=n.count!==0;(i&&!r||!i&&r)&&Md.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&Md.dispatch("TEARDOWN",n)}});function Dte(e,t,n){let r=Ete(Md),i=l.computed(()=>{let a=e.value?r.value.get(e.value):void 0;return a?a.count>0:!1});return l.watch([e,t],([a,o],[s],u)=>{if(!a||!o)return;Md.dispatch("PUSH",a,n);let c=!1;u(()=>{c||(Md.dispatch("POP",s??a,n),c=!0)})},{immediate:!0}),i}let gw=new Map,gm=new Map;function l6(e,t=l.ref(!0)){l.watchEffect(n=>{var r;if(!t.value)return;let i=Ze(e);if(!i)return;n(function(){var o;if(!i)return;let s=(o=gm.get(i))!=null?o:1;if(s===1?gm.delete(i):gm.set(i,s-1),s!==1)return;let u=gw.get(i);u&&(u["aria-hidden"]===null?i.removeAttribute("aria-hidden"):i.setAttribute("aria-hidden",u["aria-hidden"]),i.inert=u.inert,gw.delete(i))});let a=(r=gm.get(i))!=null?r:0;gm.set(i,a+1),a===0&&(gw.set(i,{"aria-hidden":i.getAttribute("aria-hidden"),inert:i.inert}),i.setAttribute("aria-hidden","true"),i.inert=!0)})}function u6({defaultContainers:e=[],portals:t,mainTreeNodeRef:n}={}){let r=l.ref(null),i=Da(r);function a(){var o,s,u;let c=[];for(let A of e)A!==null&&(A instanceof HTMLElement?c.push(A):"value"in A&&A.value instanceof HTMLElement&&c.push(A.value));if(t!=null&&t.value)for(let A of t.value)c.push(A);for(let A of(o=i==null?void 0:i.querySelectorAll("html > *, body > *"))!=null?o:[])A!==document.body&&A!==document.head&&A instanceof HTMLElement&&A.id!=="headlessui-portal-root"&&(A.contains(Ze(r))||A.contains((u=(s=Ze(r))==null?void 0:s.getRootNode())==null?void 0:u.host)||c.some(f=>A.contains(f))||c.push(A));return c}return{resolveContainers:a,contains(o){return a().some(s=>s.contains(o))},mainTreeNodeRef:r,MainTreeNode(){return n!=null?null:l.h(Js,{features:vs.Hidden,ref:r})}}}function Ite(){let e=l.ref(null);return{mainTreeNodeRef:e,MainTreeNode(){return l.h(Js,{features:vs.Hidden,ref:e})}}}let c6=Symbol("ForcePortalRootContext");function Ute(){return l.inject(c6,!1)}let vw=l.defineComponent({name:"ForcePortalRoot",props:{as:{type:[Object,String],default:"template"},force:{type:Boolean,default:!1}},setup(e,{slots:t,attrs:n}){return l.provide(c6,e.force),()=>{let{force:r,...i}=e;return Nn({theirProps:i,ourProps:{},slot:{},slots:t,attrs:n,name:"ForcePortalRoot"})}}}),A6=Symbol("StackContext");var yw=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(yw||{});function Pte(){return l.inject(A6,()=>{})}function Hte({type:e,enabled:t,element:n,onUpdate:r}){let i=Pte();function a(...o){r==null||r(...o),i(...o)}l.onMounted(()=>{l.watch(t,(o,s)=>{o?a(0,e,n):s===!0&&a(1,e,n)},{immediate:!0,flush:"sync"})}),l.onUnmounted(()=>{t.value&&a(1,e,n)}),l.provide(A6,a)}let d6=Symbol("DescriptionContext");function Yte(){let e=l.inject(d6,null);if(e===null)throw new Error("Missing parent");return e}function Tv({slot:e=l.ref({}),name:t="Description",props:n={}}={}){let r=l.ref([]);function i(a){return r.value.push(a),()=>{let o=r.value.indexOf(a);o!==-1&&r.value.splice(o,1)}}return l.provide(d6,{register:i,slot:e,name:t,props:n}),l.computed(()=>r.value.length>0?r.value.join(" "):void 0)}l.defineComponent({name:"Description",props:{as:{type:[Object,String],default:"p"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n}){var r;let i=(r=e.id)!=null?r:`headlessui-description-${dr()}`,a=Yte();return l.onMounted(()=>l.onUnmounted(a.register(i))),()=>{let{name:o="Description",slot:s=l.ref({}),props:u={}}=a,{...c}=e,A={...Object.entries(u).reduce((f,[h,d])=>Object.assign(f,{[h]:l.unref(d)}),{}),id:i};return Nn({ourProps:A,theirProps:c,slot:s.value,attrs:t,slots:n,name:o})}}});function Rte(e){let t=Da(e);if(!t){if(e===null)return null;throw new Error(`[Headless UI]: Cannot find ownerDocument for contextElement: ${e}`)}let n=t.getElementById("headlessui-portal-root");if(n)return n;let r=t.createElement("div");return r.setAttribute("id","headlessui-portal-root"),t.body.appendChild(r)}const _w=new WeakMap;function Qte(e){var t;return(t=_w.get(e))!=null?t:0}function f6(e,t){let n=t(Qte(e));return n<=0?_w.delete(e):_w.set(e,n),n}let h6=l.defineComponent({name:"Portal",props:{as:{type:[Object,String],default:"div"}},setup(e,{slots:t,attrs:n}){let r=l.ref(null),i=l.computed(()=>Da(r)),a=Ute(),o=l.inject(m6,null),s=l.ref(a===!0||o==null?Rte(r.value):o.resolveTarget());s.value&&f6(s.value,h=>h+1);let u=l.ref(!1);l.onMounted(()=>{u.value=!0}),l.watchEffect(()=>{a||o!=null&&(s.value=o.resolveTarget())});let c=l.inject(bw,null),A=!1,f=l.getCurrentInstance();return l.watch(r,()=>{if(A||!c)return;let h=Ze(r);h&&(l.onUnmounted(c.register(h),f),A=!0)}),l.onUnmounted(()=>{var h,d;let m=(h=i.value)==null?void 0:h.getElementById("headlessui-portal-root");!m||s.value!==m||f6(s.value,p=>p-1)||s.value.children.length>0||(d=s.value.parentElement)==null||d.removeChild(s.value)}),()=>{if(!u.value||s.value===null)return null;let h={ref:r,"data-headlessui-portal":""};return l.h(l.Teleport,{to:s.value},Nn({ourProps:h,theirProps:e,slot:{},attrs:n,slots:t,name:"Portal"}))}}}),bw=Symbol("PortalParentContext");function p6(){let e=l.inject(bw,null),t=l.ref([]);function n(a){return t.value.push(a),e&&e.register(a),()=>r(a)}function r(a){let o=t.value.indexOf(a);o!==-1&&t.value.splice(o,1),e&&e.unregister(a)}let i={register:n,unregister:r,portals:t};return[t,l.defineComponent({name:"PortalWrapper",setup(a,{slots:o}){return l.provide(bw,i),()=>{var s;return(s=o.default)==null?void 0:s.call(o)}}})]}let m6=Symbol("PortalGroupContext"),jte=l.defineComponent({name:"PortalGroup",props:{as:{type:[Object,String],default:"template"},target:{type:Object,default:null}},setup(e,{attrs:t,slots:n}){let r=l.reactive({resolveTarget(){return e.target}});return l.provide(m6,r),()=>{let{target:i,...a}=e;return Nn({theirProps:a,ourProps:{},slot:{},attrs:t,slots:n,name:"PortalGroup"})}}});var Vte=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Vte||{});let ww=Symbol("DialogContext");function vm(e){let t=l.inject(ww,null);if(t===null){let n=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,vm),n}return t}let Nv="DC8F892D-2EBD-447C-A4C8-A03058436FF4",lh=l.defineComponent({name:"Dialog",inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},open:{type:[Boolean,String],default:Nv},initialFocus:{type:Object,default:null},id:{type:String,default:null},role:{type:String,default:"dialog"}},emits:{close:e=>!0},setup(e,{emit:t,attrs:n,slots:r,expose:i}){var a,o;let s=(a=e.id)!=null?a:`headlessui-dialog-${dr()}`,u=l.ref(!1);l.onMounted(()=>{u.value=!0});let c=!1,A=l.computed(()=>e.role==="dialog"||e.role==="alertdialog"?e.role:(c||(c=!0,console.warn(`Invalid role [${A}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog")),f=l.ref(0),h=ju(),d=l.computed(()=>e.open===Nv&&h!==null?(h.value&Wn.Open)===Wn.Open:e.open),m=l.ref(null),p=l.computed(()=>Da(m));if(i({el:m,$el:m}),!(e.open!==Nv||h!==null))throw new Error("You forgot to provide an `open` prop to the `Dialog`.");if(typeof d.value!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${d.value===Nv?void 0:e.open}`);let g=l.computed(()=>u.value&&d.value?0:1),v=l.computed(()=>g.value===0),y=l.computed(()=>f.value>1),_=l.inject(ww,null)!==null,[b,w]=p6(),{resolveContainers:C,mainTreeNodeRef:B,MainTreeNode:E}=u6({portals:b,defaultContainers:[l.computed(()=>{var X;return(X=q.panelRef.value)!=null?X:m.value})]}),N=l.computed(()=>y.value?"parent":"leaf"),P=l.computed(()=>h!==null?(h.value&Wn.Closing)===Wn.Closing:!1),k=l.computed(()=>_||P.value?!1:v.value),F=l.computed(()=>{var X,I,W;return(W=Array.from((I=(X=p.value)==null?void 0:X.querySelectorAll("body > *"))!=null?I:[]).find(ee=>ee.id==="headlessui-portal-root"?!1:ee.contains(Ze(B))&&ee instanceof HTMLElement))!=null?W:null});l6(F,k);let D=l.computed(()=>y.value?!0:v.value),L=l.computed(()=>{var X,I,W;return(W=Array.from((I=(X=p.value)==null?void 0:X.querySelectorAll("[data-headlessui-portal]"))!=null?I:[]).find(ee=>ee.contains(Ze(B))&&ee instanceof HTMLElement))!=null?W:null});l6(L,D),Hte({type:"Dialog",enabled:l.computed(()=>g.value===0),element:m,onUpdate:(X,I)=>{if(I==="Dialog")return tr(X,{[yw.Add]:()=>f.value+=1,[yw.Remove]:()=>f.value-=1})}});let H=Tv({name:"DialogDescription",slot:l.computed(()=>({open:d.value}))}),K=l.ref(null),q={titleId:K,panelRef:l.ref(null),dialogState:g,setTitleId(X){K.value!==X&&(K.value=X)},close(){t("close",!1)}};l.provide(ww,q);let z=l.computed(()=>!(!v.value||y.value));fm(C,(X,I)=>{X.preventDefault(),q.close(),l.nextTick(()=>I==null?void 0:I.focus())},z);let J=l.computed(()=>!(y.value||g.value!==0));pw((o=p.value)==null?void 0:o.defaultView,"keydown",X=>{J.value&&(X.defaultPrevented||X.key===Yt.Escape&&(X.preventDefault(),X.stopPropagation(),q.close()))});let ie=l.computed(()=>!(P.value||g.value!==0||_));return Dte(p,ie,X=>{var I;return{containers:[...(I=X.containers)!=null?I:[],C]}}),l.watchEffect(X=>{if(g.value!==0)return;let I=Ze(m);if(!I)return;let W=new ResizeObserver(ee=>{for(let ne of ee){let pe=ne.target.getBoundingClientRect();pe.x===0&&pe.y===0&&pe.width===0&&pe.height===0&&q.close()}});W.observe(I),X(()=>W.disconnect())}),()=>{let{open:X,initialFocus:I,...W}=e,ee={...n,ref:m,id:s,role:A.value,"aria-modal":g.value===0?!0:void 0,"aria-labelledby":K.value,"aria-describedby":H.value},ne={open:g.value===0};return l.h(vw,{force:!0},()=>[l.h(h6,()=>l.h(jte,{target:m.value},()=>l.h(vw,{force:!1},()=>l.h(mm,{initialFocus:I,containers:C,features:v.value?tr(N.value,{parent:mm.features.RestoreFocus,leaf:mm.features.All&~mm.features.FocusLock}):mm.features.None},()=>l.h(w,{},()=>Nn({ourProps:ee,theirProps:{...W,...n},slot:ne,attrs:n,slots:r,visible:g.value===0,features:oa.RenderStrategy|oa.Static,name:"Dialog"})))))),l.h(E)])}}});l.defineComponent({name:"DialogOverlay",props:{as:{type:[Object,String],default:"div"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n}){var r;let i=(r=e.id)!=null?r:`headlessui-dialog-overlay-${dr()}`,a=vm("DialogOverlay");function o(s){s.target===s.currentTarget&&(s.preventDefault(),s.stopPropagation(),a.close())}return()=>{let{...s}=e;return Nn({ourProps:{id:i,"aria-hidden":!0,onClick:o},theirProps:s,slot:{open:a.dialogState.value===0},attrs:t,slots:n,name:"DialogOverlay"})}}}),l.defineComponent({name:"DialogBackdrop",props:{as:{type:[Object,String],default:"div"},id:{type:String,default:null}},inheritAttrs:!1,setup(e,{attrs:t,slots:n,expose:r}){var i;let a=(i=e.id)!=null?i:`headlessui-dialog-backdrop-${dr()}`,o=vm("DialogBackdrop"),s=l.ref(null);return r({el:s,$el:s}),l.onMounted(()=>{if(o.panelRef.value===null)throw new Error("A <DialogBackdrop /> component is being used, but a <DialogPanel /> component is missing.")}),()=>{let{...u}=e,c={id:a,ref:s,"aria-hidden":!0};return l.h(vw,{force:!0},()=>l.h(h6,()=>Nn({ourProps:c,theirProps:{...t,...u},slot:{open:o.dialogState.value===0},attrs:t,slots:n,name:"DialogBackdrop"})))}}});let Fv=l.defineComponent({name:"DialogPanel",props:{as:{type:[Object,String],default:"div"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n,expose:r}){var i;let a=(i=e.id)!=null?i:`headlessui-dialog-panel-${dr()}`,o=vm("DialogPanel");r({el:o.panelRef,$el:o.panelRef});function s(u){u.stopPropagation()}return()=>{let{...u}=e,c={id:a,ref:o.panelRef,onClick:s};return Nn({ourProps:c,theirProps:u,slot:{open:o.dialogState.value===0},attrs:t,slots:n,name:"DialogPanel"})}}}),Bw=l.defineComponent({name:"DialogTitle",props:{as:{type:[Object,String],default:"h2"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n}){var r;let i=(r=e.id)!=null?r:`headlessui-dialog-title-${dr()}`,a=vm("DialogTitle");return l.onMounted(()=>{a.setTitleId(i),l.onUnmounted(()=>a.setTitleId(null))}),()=>{let{...o}=e;return Nn({ourProps:{id:i},theirProps:o,slot:{open:a.dialogState.value===0},attrs:t,slots:n,name:"DialogTitle"})}}});var zte=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(zte||{});let g6=Symbol("DisclosureContext");function xw(e){let t=l.inject(g6,null);if(t===null){let n=new Error(`<${e} /> is missing a parent <Disclosure /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,xw),n}return t}let v6=Symbol("DisclosurePanelContext");function qte(){return l.inject(v6,null)}let Kte=l.defineComponent({name:"Disclosure",props:{as:{type:[Object,String],default:"template"},defaultOpen:{type:[Boolean],default:!1}},setup(e,{slots:t,attrs:n}){let r=l.ref(e.defaultOpen?0:1),i=l.ref(null),a=l.ref(null),o={buttonId:l.ref(`headlessui-disclosure-button-${dr()}`),panelId:l.ref(`headlessui-disclosure-panel-${dr()}`),disclosureState:r,panel:i,button:a,toggleDisclosure(){r.value=tr(r.value,{0:1,1:0})},closeDisclosure(){r.value!==1&&(r.value=1)},close(s){o.closeDisclosure();let u=s?s instanceof HTMLElement?s:s.value instanceof HTMLElement?Ze(s):Ze(o.button):Ze(o.button);u==null||u.focus()}};return l.provide(g6,o),oh(l.computed(()=>tr(r.value,{0:Wn.Open,1:Wn.Closed}))),()=>{let{defaultOpen:s,...u}=e,c={open:r.value===0,close:o.close};return Nn({theirProps:u,ourProps:{},slot:c,slots:t,attrs:n,name:"Disclosure"})}}}),y6=l.defineComponent({name:"DisclosureButton",props:{as:{type:[Object,String],default:"button"},disabled:{type:[Boolean],default:!1},id:{type:String,default:null}},setup(e,{attrs:t,slots:n,expose:r}){let i=xw("DisclosureButton"),a=qte(),o=l.computed(()=>a===null?!1:a.value===i.panelId.value);l.onMounted(()=>{o.value||e.id!==null&&(i.buttonId.value=e.id)}),l.onUnmounted(()=>{o.value||(i.buttonId.value=null)});let s=l.ref(null);r({el:s,$el:s}),o.value||l.watchEffect(()=>{i.button.value=s.value});let u=ah(l.computed(()=>({as:e.as,type:t.type})),s);function c(){var h;e.disabled||(o.value?(i.toggleDisclosure(),(h=Ze(i.button))==null||h.focus()):i.toggleDisclosure())}function A(h){var d;if(!e.disabled)if(o.value)switch(h.key){case Yt.Space:case Yt.Enter:h.preventDefault(),h.stopPropagation(),i.toggleDisclosure(),(d=Ze(i.button))==null||d.focus();break}else switch(h.key){case Yt.Space:case Yt.Enter:h.preventDefault(),h.stopPropagation(),i.toggleDisclosure();break}}function f(h){switch(h.key){case Yt.Space:h.preventDefault();break}}return()=>{var h;let d={open:i.disclosureState.value===0},{id:m,...p}=e,g=o.value?{ref:s,type:u.value,onClick:c,onKeydown:A}:{id:(h=i.buttonId.value)!=null?h:m,ref:s,type:u.value,"aria-expanded":i.disclosureState.value===0,"aria-controls":i.disclosureState.value===0||Ze(i.panel)?i.panelId.value:void 0,disabled:e.disabled?!0:void 0,onClick:c,onKeydown:A,onKeyup:f};return Nn({ourProps:g,theirProps:p,slot:d,attrs:t,slots:n,name:"DisclosureButton"})}}}),Gte=l.defineComponent({name:"DisclosurePanel",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},id:{type:String,default:null}},setup(e,{attrs:t,slots:n,expose:r}){let i=xw("DisclosurePanel");l.onMounted(()=>{e.id!==null&&(i.panelId.value=e.id)}),l.onUnmounted(()=>{i.panelId.value=null}),r({el:i.panel,$el:i.panel}),l.provide(v6,i.panelId);let a=ju(),o=l.computed(()=>a!==null?(a.value&Wn.Open)===Wn.Open:i.disclosureState.value===0);return()=>{var s;let u={open:i.disclosureState.value===0,close:i.close},{id:c,...A}=e,f={id:(s=i.panelId.value)!=null?s:c,ref:i.panel};return Nn({ourProps:f,theirProps:A,slot:u,attrs:t,slots:n,features:oa.RenderStrategy|oa.Static,visible:o.value,name:"DisclosurePanel"})}}}),_6=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function b6(e){var t,n;let r=(t=e.innerText)!=null?t:"",i=e.cloneNode(!0);if(!(i instanceof HTMLElement))return r;let a=!1;for(let s of i.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))s.remove(),a=!0;let o=a?(n=i.innerText)!=null?n:"":r;return _6.test(o)&&(o=o.replace(_6,"")),o}function Wte(e){let t=e.getAttribute("aria-label");if(typeof t=="string")return t.trim();let n=e.getAttribute("aria-labelledby");if(n){let r=n.split(" ").map(i=>{let a=document.getElementById(i);if(a){let o=a.getAttribute("aria-label");return typeof o=="string"?o.trim():b6(a).trim()}return null}).filter(Boolean);if(r.length>0)return r.join(", ")}return b6(e).trim()}function w6(e){let t=l.ref(""),n=l.ref("");return()=>{let r=Ze(e);if(!r)return"";let i=r.innerText;if(t.value===i)return n.value;let a=Wte(r).trim().toLowerCase();return t.value=i,n.value=a,a}}function Xte(e,t){return e===t}var Jte=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Jte||{}),Zte=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(Zte||{}),$te=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))($te||{});function ene(e){requestAnimationFrame(()=>requestAnimationFrame(e))}let B6=Symbol("ListboxContext");function ym(e){let t=l.inject(B6,null);if(t===null){let n=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,ym),n}return t}let tne=l.defineComponent({name:"Listbox",emits:{"update:modelValue":e=>!0},props:{as:{type:[Object,String],default:"template"},disabled:{type:[Boolean],default:!1},by:{type:[String,Function],default:()=>Xte},horizontal:{type:[Boolean],default:!1},modelValue:{type:[Object,String,Number,Boolean],default:void 0},defaultValue:{type:[Object,String,Number,Boolean],default:void 0},form:{type:String,optional:!0},name:{type:String,optional:!0},multiple:{type:[Boolean],default:!1}},inheritAttrs:!1,setup(e,{slots:t,attrs:n,emit:r}){let i=l.ref(1),a=l.ref(null),o=l.ref(null),s=l.ref(null),u=l.ref([]),c=l.ref(""),A=l.ref(null),f=l.ref(1);function h(_=b=>b){let b=A.value!==null?u.value[A.value]:null,w=dm(_(u.value.slice()),B=>Ze(B.dataRef.domRef)),C=b?w.indexOf(b):null;return C===-1&&(C=null),{options:w,activeOptionIndex:C}}let d=l.computed(()=>e.multiple?1:0),[m,p]=xv(l.computed(()=>e.modelValue),_=>r("update:modelValue",_),l.computed(()=>e.defaultValue)),g=l.computed(()=>m.value===void 0?tr(d.value,{1:[],0:void 0}):m.value),v={listboxState:i,value:g,mode:d,compare(_,b){if(typeof e.by=="string"){let w=e.by;return(_==null?void 0:_[w])===(b==null?void 0:b[w])}return e.by(_,b)},orientation:l.computed(()=>e.horizontal?"horizontal":"vertical"),labelRef:a,buttonRef:o,optionsRef:s,disabled:l.computed(()=>e.disabled),options:u,searchQuery:c,activeOptionIndex:A,activationTrigger:f,closeListbox(){e.disabled||i.value!==1&&(i.value=1,A.value=null)},openListbox(){e.disabled||i.value!==0&&(i.value=0)},goToOption(_,b,w){if(e.disabled||i.value===1)return;let C=h(),B=kv(_===xn.Specific?{focus:xn.Specific,id:b}:{focus:_},{resolveItems:()=>C.options,resolveActiveIndex:()=>C.activeOptionIndex,resolveId:E=>E.id,resolveDisabled:E=>E.dataRef.disabled});c.value="",A.value=B,f.value=w??1,u.value=C.options},search(_){if(e.disabled||i.value===1)return;let b=c.value!==""?0:1;c.value+=_.toLowerCase();let w=(A.value!==null?u.value.slice(A.value+b).concat(u.value.slice(0,A.value+b)):u.value).find(B=>B.dataRef.textValue.startsWith(c.value)&&!B.dataRef.disabled),C=w?u.value.indexOf(w):-1;C===-1||C===A.value||(A.value=C,f.value=1)},clearSearch(){e.disabled||i.value!==1&&c.value!==""&&(c.value="")},registerOption(_,b){let w=h(C=>[...C,{id:_,dataRef:b}]);u.value=w.options,A.value=w.activeOptionIndex},unregisterOption(_){let b=h(w=>{let C=w.findIndex(B=>B.id===_);return C!==-1&&w.splice(C,1),w});u.value=b.options,A.value=b.activeOptionIndex,f.value=1},theirOnChange(_){e.disabled||p(_)},select(_){e.disabled||p(tr(d.value,{0:()=>_,1:()=>{let b=l.toRaw(v.value.value).slice(),w=l.toRaw(_),C=b.findIndex(B=>v.compare(w,l.toRaw(B)));return C===-1?b.push(w):b.splice(C,1),b}}))}};fm([o,s],(_,b)=>{var w;v.closeListbox(),Am(b,cm.Loose)||(_.preventDefault(),(w=Ze(o))==null||w.focus())},l.computed(()=>i.value===0)),l.provide(B6,v),oh(l.computed(()=>tr(i.value,{0:Wn.Open,1:Wn.Closed})));let y=l.computed(()=>{var _;return(_=Ze(o))==null?void 0:_.closest("form")});return l.onMounted(()=>{l.watch([y],()=>{if(!y.value||e.defaultValue===void 0)return;function _(){v.theirOnChange(e.defaultValue)}return y.value.addEventListener("reset",_),()=>{var b;(b=y.value)==null||b.removeEventListener("reset",_)}},{immediate:!0})}),()=>{let{name:_,modelValue:b,disabled:w,form:C,...B}=e,E={open:i.value===0,disabled:w,value:g.value};return l.h(l.Fragment,[..._!=null&&g.value!=null?Mv({[_]:g.value}).map(([N,P])=>l.h(Js,Sv({features:vs.Hidden,key:N,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:C,disabled:w,name:N,value:P}))):[],Nn({ourProps:{},theirProps:{...n,...aA(B,["defaultValue","onUpdate:modelValue","horizontal","multiple","by"])},slot:E,slots:t,attrs:n,name:"Listbox"})])}}}),nne=l.defineComponent({name:"ListboxLabel",props:{as:{type:[Object,String],default:"label"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n}){var r;let i=(r=e.id)!=null?r:`headlessui-listbox-label-${dr()}`,a=ym("ListboxLabel");function o(){var s;(s=Ze(a.buttonRef))==null||s.focus({preventScroll:!0})}return()=>{let s={open:a.listboxState.value===0,disabled:a.disabled.value},{...u}=e,c={id:i,ref:a.labelRef,onClick:o};return Nn({ourProps:c,theirProps:u,slot:s,attrs:t,slots:n,name:"ListboxLabel"})}}}),rne=l.defineComponent({name:"ListboxButton",props:{as:{type:[Object,String],default:"button"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n,expose:r}){var i;let a=(i=e.id)!=null?i:`headlessui-listbox-button-${dr()}`,o=ym("ListboxButton");r({el:o.buttonRef,$el:o.buttonRef});function s(f){switch(f.key){case Yt.Space:case Yt.Enter:case Yt.ArrowDown:f.preventDefault(),o.openListbox(),l.nextTick(()=>{var h;(h=Ze(o.optionsRef))==null||h.focus({preventScroll:!0}),o.value.value||o.goToOption(xn.First)});break;case Yt.ArrowUp:f.preventDefault(),o.openListbox(),l.nextTick(()=>{var h;(h=Ze(o.optionsRef))==null||h.focus({preventScroll:!0}),o.value.value||o.goToOption(xn.Last)});break}}function u(f){switch(f.key){case Yt.Space:f.preventDefault();break}}function c(f){o.disabled.value||(o.listboxState.value===0?(o.closeListbox(),l.nextTick(()=>{var h;return(h=Ze(o.buttonRef))==null?void 0:h.focus({preventScroll:!0})})):(f.preventDefault(),o.openListbox(),ene(()=>{var h;return(h=Ze(o.optionsRef))==null?void 0:h.focus({preventScroll:!0})})))}let A=ah(l.computed(()=>({as:e.as,type:t.type})),o.buttonRef);return()=>{var f,h;let d={open:o.listboxState.value===0,disabled:o.disabled.value,value:o.value.value},{...m}=e,p={ref:o.buttonRef,id:a,type:A.value,"aria-haspopup":"listbox","aria-controls":(f=Ze(o.optionsRef))==null?void 0:f.id,"aria-expanded":o.listboxState.value===0,"aria-labelledby":o.labelRef.value?[(h=Ze(o.labelRef))==null?void 0:h.id,a].join(" "):void 0,disabled:o.disabled.value===!0?!0:void 0,onKeydown:s,onKeyup:u,onClick:c};return Nn({ourProps:p,theirProps:m,slot:d,attrs:t,slots:n,name:"ListboxButton"})}}}),ine=l.defineComponent({name:"ListboxOptions",props:{as:{type:[Object,String],default:"ul"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},id:{type:String,default:null}},setup(e,{attrs:t,slots:n,expose:r}){var i;let a=(i=e.id)!=null?i:`headlessui-listbox-options-${dr()}`,o=ym("ListboxOptions"),s=l.ref(null);r({el:o.optionsRef,$el:o.optionsRef});function u(f){switch(s.value&&clearTimeout(s.value),f.key){case Yt.Space:if(o.searchQuery.value!=="")return f.preventDefault(),f.stopPropagation(),o.search(f.key);case Yt.Enter:if(f.preventDefault(),f.stopPropagation(),o.activeOptionIndex.value!==null){let h=o.options.value[o.activeOptionIndex.value];o.select(h.dataRef.value)}o.mode.value===0&&(o.closeListbox(),l.nextTick(()=>{var h;return(h=Ze(o.buttonRef))==null?void 0:h.focus({preventScroll:!0})}));break;case tr(o.orientation.value,{vertical:Yt.ArrowDown,horizontal:Yt.ArrowRight}):return f.preventDefault(),f.stopPropagation(),o.goToOption(xn.Next);case tr(o.orientation.value,{vertical:Yt.ArrowUp,horizontal:Yt.ArrowLeft}):return f.preventDefault(),f.stopPropagation(),o.goToOption(xn.Previous);case Yt.Home:case Yt.PageUp:return f.preventDefault(),f.stopPropagation(),o.goToOption(xn.First);case Yt.End:case Yt.PageDown:return f.preventDefault(),f.stopPropagation(),o.goToOption(xn.Last);case Yt.Escape:f.preventDefault(),f.stopPropagation(),o.closeListbox(),l.nextTick(()=>{var h;return(h=Ze(o.buttonRef))==null?void 0:h.focus({preventScroll:!0})});break;case Yt.Tab:f.preventDefault(),f.stopPropagation();break;default:f.key.length===1&&(o.search(f.key),s.value=setTimeout(()=>o.clearSearch(),350));break}}let c=ju(),A=l.computed(()=>c!==null?(c.value&Wn.Open)===Wn.Open:o.listboxState.value===0);return()=>{var f,h;let d={open:o.listboxState.value===0},{...m}=e,p={"aria-activedescendant":o.activeOptionIndex.value===null||(f=o.options.value[o.activeOptionIndex.value])==null?void 0:f.id,"aria-multiselectable":o.mode.value===1?!0:void 0,"aria-labelledby":(h=Ze(o.buttonRef))==null?void 0:h.id,"aria-orientation":o.orientation.value,id:a,onKeydown:u,role:"listbox",tabIndex:0,ref:o.optionsRef};return Nn({ourProps:p,theirProps:m,slot:d,attrs:t,slots:n,features:oa.RenderStrategy|oa.Static,visible:A.value,name:"ListboxOptions"})}}}),ane=l.defineComponent({name:"ListboxOption",props:{as:{type:[Object,String],default:"li"},value:{type:[Object,String,Number,Boolean]},disabled:{type:Boolean,default:!1},id:{type:String,default:null}},setup(e,{slots:t,attrs:n,expose:r}){var i;let a=(i=e.id)!=null?i:`headlessui-listbox-option-${dr()}`,o=ym("ListboxOption"),s=l.ref(null);r({el:s,$el:s});let u=l.computed(()=>o.activeOptionIndex.value!==null?o.options.value[o.activeOptionIndex.value].id===a:!1),c=l.computed(()=>tr(o.mode.value,{0:()=>o.compare(l.toRaw(o.value.value),l.toRaw(e.value)),1:()=>l.toRaw(o.value.value).some(_=>o.compare(l.toRaw(_),l.toRaw(e.value)))})),A=l.computed(()=>tr(o.mode.value,{1:()=>{var _;let b=l.toRaw(o.value.value);return((_=o.options.value.find(w=>b.some(C=>o.compare(l.toRaw(C),l.toRaw(w.dataRef.value)))))==null?void 0:_.id)===a},0:()=>c.value})),f=w6(s),h=l.computed(()=>({disabled:e.disabled,value:e.value,get textValue(){return f()},domRef:s}));l.onMounted(()=>o.registerOption(a,h)),l.onUnmounted(()=>o.unregisterOption(a)),l.onMounted(()=>{l.watch([o.listboxState,c],()=>{o.listboxState.value===0&&c.value&&tr(o.mode.value,{1:()=>{A.value&&o.goToOption(xn.Specific,a)},0:()=>{o.goToOption(xn.Specific,a)}})},{immediate:!0})}),l.watchEffect(()=>{o.listboxState.value===0&&u.value&&o.activationTrigger.value!==0&&l.nextTick(()=>{var _,b;return(b=(_=Ze(s))==null?void 0:_.scrollIntoView)==null?void 0:b.call(_,{block:"nearest"})})});function d(_){if(e.disabled)return _.preventDefault();o.select(e.value),o.mode.value===0&&(o.closeListbox(),l.nextTick(()=>{var b;return(b=Ze(o.buttonRef))==null?void 0:b.focus({preventScroll:!0})}))}function m(){if(e.disabled)return o.goToOption(xn.Nothing);o.goToOption(xn.Specific,a)}let p=dw();function g(_){p.update(_)}function v(_){p.wasMoved(_)&&(e.disabled||u.value||o.goToOption(xn.Specific,a,0))}function y(_){p.wasMoved(_)&&(e.disabled||u.value&&o.goToOption(xn.Nothing))}return()=>{let{disabled:_}=e,b={active:u.value,selected:c.value,disabled:_},{value:w,disabled:C,...B}=e,E={id:a,ref:s,role:"option",tabIndex:_===!0?void 0:-1,"aria-disabled":_===!0?!0:void 0,"aria-selected":c.value,disabled:void 0,onClick:d,onFocus:m,onPointerenter:g,onMouseenter:g,onPointermove:v,onMousemove:v,onPointerleave:y,onMouseleave:y};return Nn({ourProps:E,theirProps:B,slot:b,attrs:n,slots:t,name:"ListboxOption"})}}});var one=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(one||{}),sne=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(sne||{});function lne(e){requestAnimationFrame(()=>requestAnimationFrame(e))}let x6=Symbol("MenuContext");function Ov(e){let t=l.inject(x6,null);if(t===null){let n=new Error(`<${e} /> is missing a parent <Menu /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Ov),n}return t}let Ed=l.defineComponent({name:"Menu",props:{as:{type:[Object,String],default:"template"}},setup(e,{slots:t,attrs:n}){let r=l.ref(1),i=l.ref(null),a=l.ref(null),o=l.ref([]),s=l.ref(""),u=l.ref(null),c=l.ref(1);function A(h=d=>d){let d=u.value!==null?o.value[u.value]:null,m=dm(h(o.value.slice()),g=>Ze(g.dataRef.domRef)),p=d?m.indexOf(d):null;return p===-1&&(p=null),{items:m,activeItemIndex:p}}let f={menuState:r,buttonRef:i,itemsRef:a,items:o,searchQuery:s,activeItemIndex:u,activationTrigger:c,closeMenu:()=>{r.value=1,u.value=null},openMenu:()=>r.value=0,goToItem(h,d,m){let p=A(),g=kv(h===xn.Specific?{focus:xn.Specific,id:d}:{focus:h},{resolveItems:()=>p.items,resolveActiveIndex:()=>p.activeItemIndex,resolveId:v=>v.id,resolveDisabled:v=>v.dataRef.disabled});s.value="",u.value=g,c.value=m??1,o.value=p.items},search(h){let d=s.value!==""?0:1;s.value+=h.toLowerCase();let m=(u.value!==null?o.value.slice(u.value+d).concat(o.value.slice(0,u.value+d)):o.value).find(g=>g.dataRef.textValue.startsWith(s.value)&&!g.dataRef.disabled),p=m?o.value.indexOf(m):-1;p===-1||p===u.value||(u.value=p,c.value=1)},clearSearch(){s.value=""},registerItem(h,d){let m=A(p=>[...p,{id:h,dataRef:d}]);o.value=m.items,u.value=m.activeItemIndex,c.value=1},unregisterItem(h){let d=A(m=>{let p=m.findIndex(g=>g.id===h);return p!==-1&&m.splice(p,1),m});o.value=d.items,u.value=d.activeItemIndex,c.value=1}};return fm([i,a],(h,d)=>{var m;f.closeMenu(),Am(d,cm.Loose)||(h.preventDefault(),(m=Ze(i))==null||m.focus())},l.computed(()=>r.value===0)),l.provide(x6,f),oh(l.computed(()=>tr(r.value,{0:Wn.Open,1:Wn.Closed}))),()=>{let h={open:r.value===0,close:f.closeMenu};return Nn({ourProps:{},theirProps:e,slot:h,slots:t,attrs:n,name:"Menu"})}}}),Ld=l.defineComponent({name:"MenuButton",props:{disabled:{type:Boolean,default:!1},as:{type:[Object,String],default:"button"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n,expose:r}){var i;let a=(i=e.id)!=null?i:`headlessui-menu-button-${dr()}`,o=Ov("MenuButton");r({el:o.buttonRef,$el:o.buttonRef});function s(f){switch(f.key){case Yt.Space:case Yt.Enter:case Yt.ArrowDown:f.preventDefault(),f.stopPropagation(),o.openMenu(),l.nextTick(()=>{var h;(h=Ze(o.itemsRef))==null||h.focus({preventScroll:!0}),o.goToItem(xn.First)});break;case Yt.ArrowUp:f.preventDefault(),f.stopPropagation(),o.openMenu(),l.nextTick(()=>{var h;(h=Ze(o.itemsRef))==null||h.focus({preventScroll:!0}),o.goToItem(xn.Last)});break}}function u(f){switch(f.key){case Yt.Space:f.preventDefault();break}}function c(f){e.disabled||(o.menuState.value===0?(o.closeMenu(),l.nextTick(()=>{var h;return(h=Ze(o.buttonRef))==null?void 0:h.focus({preventScroll:!0})})):(f.preventDefault(),o.openMenu(),lne(()=>{var h;return(h=Ze(o.itemsRef))==null?void 0:h.focus({preventScroll:!0})})))}let A=ah(l.computed(()=>({as:e.as,type:t.type})),o.buttonRef);return()=>{var f;let h={open:o.menuState.value===0},{...d}=e,m={ref:o.buttonRef,id:a,type:A.value,"aria-haspopup":"menu","aria-controls":(f=Ze(o.itemsRef))==null?void 0:f.id,"aria-expanded":o.menuState.value===0,onKeydown:s,onKeyup:u,onClick:c};return Nn({ourProps:m,theirProps:d,slot:h,attrs:t,slots:n,name:"MenuButton"})}}}),Td=l.defineComponent({name:"MenuItems",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},id:{type:String,default:null}},setup(e,{attrs:t,slots:n,expose:r}){var i;let a=(i=e.id)!=null?i:`headlessui-menu-items-${dr()}`,o=Ov("MenuItems"),s=l.ref(null);r({el:o.itemsRef,$el:o.itemsRef}),fw({container:l.computed(()=>Ze(o.itemsRef)),enabled:l.computed(()=>o.menuState.value===0),accept(h){return h.getAttribute("role")==="menuitem"?NodeFilter.FILTER_REJECT:h.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(h){h.setAttribute("role","none")}});function u(h){var d;switch(s.value&&clearTimeout(s.value),h.key){case Yt.Space:if(o.searchQuery.value!=="")return h.preventDefault(),h.stopPropagation(),o.search(h.key);case Yt.Enter:if(h.preventDefault(),h.stopPropagation(),o.activeItemIndex.value!==null){let m=o.items.value[o.activeItemIndex.value];(d=Ze(m.dataRef.domRef))==null||d.click()}o.closeMenu(),VL(Ze(o.buttonRef));break;case Yt.ArrowDown:return h.preventDefault(),h.stopPropagation(),o.goToItem(xn.Next);case Yt.ArrowUp:return h.preventDefault(),h.stopPropagation(),o.goToItem(xn.Previous);case Yt.Home:case Yt.PageUp:return h.preventDefault(),h.stopPropagation(),o.goToItem(xn.First);case Yt.End:case Yt.PageDown:return h.preventDefault(),h.stopPropagation(),o.goToItem(xn.Last);case Yt.Escape:h.preventDefault(),h.stopPropagation(),o.closeMenu(),l.nextTick(()=>{var m;return(m=Ze(o.buttonRef))==null?void 0:m.focus({preventScroll:!0})});break;case Yt.Tab:h.preventDefault(),h.stopPropagation(),o.closeMenu(),l.nextTick(()=>hte(Ze(o.buttonRef),h.shiftKey?li.Previous:li.Next));break;default:h.key.length===1&&(o.search(h.key),s.value=setTimeout(()=>o.clearSearch(),350));break}}function c(h){switch(h.key){case Yt.Space:h.preventDefault();break}}let A=ju(),f=l.computed(()=>A!==null?(A.value&Wn.Open)===Wn.Open:o.menuState.value===0);return()=>{var h,d;let m={open:o.menuState.value===0},{...p}=e,g={"aria-activedescendant":o.activeItemIndex.value===null||(h=o.items.value[o.activeItemIndex.value])==null?void 0:h.id,"aria-labelledby":(d=Ze(o.buttonRef))==null?void 0:d.id,id:a,onKeydown:u,onKeyup:c,role:"menu",tabIndex:0,ref:o.itemsRef};return Nn({ourProps:g,theirProps:p,slot:m,attrs:t,slots:n,features:oa.RenderStrategy|oa.Static,visible:f.value,name:"MenuItems"})}}}),eu=l.defineComponent({name:"MenuItem",inheritAttrs:!1,props:{as:{type:[Object,String],default:"template"},disabled:{type:Boolean,default:!1},id:{type:String,default:null}},setup(e,{slots:t,attrs:n,expose:r}){var i;let a=(i=e.id)!=null?i:`headlessui-menu-item-${dr()}`,o=Ov("MenuItem"),s=l.ref(null);r({el:s,$el:s});let u=l.computed(()=>o.activeItemIndex.value!==null?o.items.value[o.activeItemIndex.value].id===a:!1),c=w6(s),A=l.computed(()=>({disabled:e.disabled,get textValue(){return c()},domRef:s}));l.onMounted(()=>o.registerItem(a,A)),l.onUnmounted(()=>o.unregisterItem(a)),l.watchEffect(()=>{o.menuState.value===0&&u.value&&o.activationTrigger.value!==0&&l.nextTick(()=>{var v,y;return(y=(v=Ze(s))==null?void 0:v.scrollIntoView)==null?void 0:y.call(v,{block:"nearest"})})});function f(v){if(e.disabled)return v.preventDefault();o.closeMenu(),VL(Ze(o.buttonRef))}function h(){if(e.disabled)return o.goToItem(xn.Nothing);o.goToItem(xn.Specific,a)}let d=dw();function m(v){d.update(v)}function p(v){d.wasMoved(v)&&(e.disabled||u.value||o.goToItem(xn.Specific,a,0))}function g(v){d.wasMoved(v)&&(e.disabled||u.value&&o.goToItem(xn.Nothing))}return()=>{let{disabled:v,...y}=e,_={active:u.value,disabled:v,close:o.closeMenu};return Nn({ourProps:{id:a,ref:s,role:"menuitem",tabIndex:v===!0?void 0:-1,"aria-disabled":v===!0?!0:void 0,onClick:f,onFocus:h,onPointerenter:m,onMouseenter:m,onPointermove:p,onMousemove:p,onPointerleave:g,onMouseleave:g},theirProps:{...n,...y},slot:_,attrs:n,slots:t,name:"MenuItem"})}}});var une=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(une||{});let C6=Symbol("PopoverContext");function Dv(e){let t=l.inject(C6,null);if(t===null){let n=new Error(`<${e} /> is missing a parent <${Cw.name} /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Dv),n}return t}let S6=Symbol("PopoverGroupContext");function k6(){return l.inject(S6,null)}let M6=Symbol("PopoverPanelContext");function cne(){return l.inject(M6,null)}let Cw=l.defineComponent({name:"Popover",inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"}},setup(e,{slots:t,attrs:n,expose:r}){var i;let a=l.ref(null);r({el:a,$el:a});let o=l.ref(1),s=l.ref(null),u=l.ref(null),c=l.ref(null),A=l.ref(null),f=l.computed(()=>Da(a)),h=l.computed(()=>{var w,C;if(!Ze(s)||!Ze(A))return!1;for(let D of document.querySelectorAll("body > *"))if(Number(D==null?void 0:D.contains(Ze(s)))^Number(D==null?void 0:D.contains(Ze(A))))return!0;let B=um(),E=B.indexOf(Ze(s)),N=(E+B.length-1)%B.length,P=(E+1)%B.length,k=B[N],F=B[P];return!((w=Ze(A))!=null&&w.contains(k))&&!((C=Ze(A))!=null&&C.contains(F))}),d={popoverState:o,buttonId:l.ref(null),panelId:l.ref(null),panel:A,button:s,isPortalled:h,beforePanelSentinel:u,afterPanelSentinel:c,togglePopover(){o.value=tr(o.value,{0:1,1:0})},closePopover(){o.value!==1&&(o.value=1)},close(w){d.closePopover();let C=w?w instanceof HTMLElement?w:w.value instanceof HTMLElement?Ze(w):Ze(d.button):Ze(d.button);C==null||C.focus()}};l.provide(C6,d),oh(l.computed(()=>tr(o.value,{0:Wn.Open,1:Wn.Closed})));let m={buttonId:d.buttonId,panelId:d.panelId,close(){d.closePopover()}},p=k6(),g=p==null?void 0:p.registerPopover,[v,y]=p6(),_=u6({mainTreeNodeRef:p==null?void 0:p.mainTreeNodeRef,portals:v,defaultContainers:[s,A]});function b(){var w,C,B,E;return(E=p==null?void 0:p.isFocusWithinPopoverGroup())!=null?E:((w=f.value)==null?void 0:w.activeElement)&&(((C=Ze(s))==null?void 0:C.contains(f.value.activeElement))||((B=Ze(A))==null?void 0:B.contains(f.value.activeElement)))}return l.watchEffect(()=>g==null?void 0:g(m)),pw((i=f.value)==null?void 0:i.defaultView,"focus",w=>{var C,B;w.target!==window&&w.target instanceof HTMLElement&&o.value===0&&(b()||s&&A&&(_.contains(w.target)||(C=Ze(d.beforePanelSentinel))!=null&&C.contains(w.target)||(B=Ze(d.afterPanelSentinel))!=null&&B.contains(w.target)||d.closePopover()))},!0),fm(_.resolveContainers,(w,C)=>{var B;d.closePopover(),Am(C,cm.Loose)||(w.preventDefault(),(B=Ze(s))==null||B.focus())},l.computed(()=>o.value===0)),()=>{let w={open:o.value===0,close:d.close};return l.h(l.Fragment,[l.h(y,{},()=>Nn({theirProps:{...e,...n},ourProps:{ref:a},slot:w,slots:t,attrs:n,name:"Popover"})),l.h(_.MainTreeNode)])}}}),E6=l.defineComponent({name:"PopoverButton",props:{as:{type:[Object,String],default:"button"},disabled:{type:[Boolean],default:!1},id:{type:String,default:null}},inheritAttrs:!1,setup(e,{attrs:t,slots:n,expose:r}){var i;let a=(i=e.id)!=null?i:`headlessui-popover-button-${dr()}`,o=Dv("PopoverButton"),s=l.computed(()=>Da(o.button));r({el:o.button,$el:o.button}),l.onMounted(()=>{o.buttonId.value=a}),l.onUnmounted(()=>{o.buttonId.value=null});let u=k6(),c=u==null?void 0:u.closeOthers,A=cne(),f=l.computed(()=>A===null?!1:A.value===o.panelId.value),h=l.ref(null),d=`headlessui-focus-sentinel-${dr()}`;f.value||l.watchEffect(()=>{o.button.value=Ze(h)});let m=ah(l.computed(()=>({as:e.as,type:t.type})),h);function p(w){var C,B,E,N,P;if(f.value){if(o.popoverState.value===1)return;switch(w.key){case Yt.Space:case Yt.Enter:w.preventDefault(),(B=(C=w.target).click)==null||B.call(C),o.closePopover(),(E=Ze(o.button))==null||E.focus();break}}else switch(w.key){case Yt.Space:case Yt.Enter:w.preventDefault(),w.stopPropagation(),o.popoverState.value===1&&(c==null||c(o.buttonId.value)),o.togglePopover();break;case Yt.Escape:if(o.popoverState.value!==0)return c==null?void 0:c(o.buttonId.value);if(!Ze(o.button)||(N=s.value)!=null&&N.activeElement&&!((P=Ze(o.button))!=null&&P.contains(s.value.activeElement)))return;w.preventDefault(),w.stopPropagation(),o.closePopover();break}}function g(w){f.value||w.key===Yt.Space&&w.preventDefault()}function v(w){var C,B;e.disabled||(f.value?(o.closePopover(),(C=Ze(o.button))==null||C.focus()):(w.preventDefault(),w.stopPropagation(),o.popoverState.value===1&&(c==null||c(o.buttonId.value)),o.togglePopover(),(B=Ze(o.button))==null||B.focus()))}function y(w){w.preventDefault(),w.stopPropagation()}let _=mw();function b(){let w=Ze(o.panel);if(!w)return;function C(){tr(_.value,{[qo.Forwards]:()=>So(w,li.First),[qo.Backwards]:()=>So(w,li.Last)})===Sd.Error&&So(um().filter(B=>B.dataset.headlessuiFocusGuard!=="true"),tr(_.value,{[qo.Forwards]:li.Next,[qo.Backwards]:li.Previous}),{relativeTo:Ze(o.button)})}C()}return()=>{let w=o.popoverState.value===0,C={open:w},{...B}=e,E=f.value?{ref:h,type:m.value,onKeydown:p,onClick:v}:{ref:h,id:a,type:m.value,"aria-expanded":o.popoverState.value===0,"aria-controls":Ze(o.panel)?o.panelId.value:void 0,disabled:e.disabled?!0:void 0,onKeydown:p,onKeyup:g,onClick:v,onMousedown:y};return l.h(l.Fragment,[Nn({ourProps:E,theirProps:{...t,...B},slot:C,attrs:t,slots:n,name:"PopoverButton"}),w&&!f.value&&o.isPortalled.value&&l.h(Js,{id:d,features:vs.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:b})])}}});l.defineComponent({name:"PopoverOverlay",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0}},setup(e,{attrs:t,slots:n}){let r=Dv("PopoverOverlay"),i=`headlessui-popover-overlay-${dr()}`,a=ju(),o=l.computed(()=>a!==null?(a.value&Wn.Open)===Wn.Open:r.popoverState.value===0);function s(){r.closePopover()}return()=>{let u={open:r.popoverState.value===0};return Nn({ourProps:{id:i,"aria-hidden":!0,onClick:s},theirProps:e,slot:u,attrs:t,slots:n,features:oa.RenderStrategy|oa.Static,visible:o.value,name:"PopoverOverlay"})}}});let L6=l.defineComponent({name:"PopoverPanel",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},focus:{type:Boolean,default:!1},id:{type:String,default:null}},inheritAttrs:!1,setup(e,{attrs:t,slots:n,expose:r}){var i;let a=(i=e.id)!=null?i:`headlessui-popover-panel-${dr()}`,{focus:o}=e,s=Dv("PopoverPanel"),u=l.computed(()=>Da(s.panel)),c=`headlessui-focus-sentinel-before-${dr()}`,A=`headlessui-focus-sentinel-after-${dr()}`;r({el:s.panel,$el:s.panel}),l.onMounted(()=>{s.panelId.value=a}),l.onUnmounted(()=>{s.panelId.value=null}),l.provide(M6,s.panelId),l.watchEffect(()=>{var y,_;if(!o||s.popoverState.value!==0||!s.panel)return;let b=(y=u.value)==null?void 0:y.activeElement;(_=Ze(s.panel))!=null&&_.contains(b)||So(Ze(s.panel),li.First)});let f=ju(),h=l.computed(()=>f!==null?(f.value&Wn.Open)===Wn.Open:s.popoverState.value===0);function d(y){var _,b;switch(y.key){case Yt.Escape:if(s.popoverState.value!==0||!Ze(s.panel)||u.value&&!((_=Ze(s.panel))!=null&&_.contains(u.value.activeElement)))return;y.preventDefault(),y.stopPropagation(),s.closePopover(),(b=Ze(s.button))==null||b.focus();break}}function m(y){var _,b,w,C,B;let E=y.relatedTarget;E&&Ze(s.panel)&&((_=Ze(s.panel))!=null&&_.contains(E)||(s.closePopover(),((w=(b=Ze(s.beforePanelSentinel))==null?void 0:b.contains)!=null&&w.call(b,E)||(B=(C=Ze(s.afterPanelSentinel))==null?void 0:C.contains)!=null&&B.call(C,E))&&E.focus({preventScroll:!0})))}let p=mw();function g(){let y=Ze(s.panel);if(!y)return;function _(){tr(p.value,{[qo.Forwards]:()=>{var b;So(y,li.First)===Sd.Error&&((b=Ze(s.afterPanelSentinel))==null||b.focus())},[qo.Backwards]:()=>{var b;(b=Ze(s.button))==null||b.focus({preventScroll:!0})}})}_()}function v(){let y=Ze(s.panel);if(!y)return;function _(){tr(p.value,{[qo.Forwards]:()=>{let b=Ze(s.button),w=Ze(s.panel);if(!b)return;let C=um(),B=C.indexOf(b),E=C.slice(0,B+1),N=[...C.slice(B+1),...E];for(let P of N.slice())if(P.dataset.headlessuiFocusGuard==="true"||w!=null&&w.contains(P)){let k=N.indexOf(P);k!==-1&&N.splice(k,1)}So(N,li.First,{sorted:!1})},[qo.Backwards]:()=>{var b;So(y,li.Previous)===Sd.Error&&((b=Ze(s.button))==null||b.focus())}})}_()}return()=>{let y={open:s.popoverState.value===0,close:s.close},{focus:_,...b}=e,w={ref:s.panel,id:a,onKeydown:d,onFocusout:o&&s.popoverState.value===0?m:void 0,tabIndex:-1};return Nn({ourProps:w,theirProps:{...t,...b},attrs:t,slot:y,slots:{...n,default:(...C)=>{var B;return[l.h(l.Fragment,[h.value&&s.isPortalled.value&&l.h(Js,{id:c,ref:s.beforePanelSentinel,features:vs.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:g}),(B=n.default)==null?void 0:B.call(n,...C),h.value&&s.isPortalled.value&&l.h(Js,{id:A,ref:s.afterPanelSentinel,features:vs.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:v})])]}},features:oa.RenderStrategy|oa.Static,visible:h.value,name:"PopoverPanel"})}}});l.defineComponent({name:"PopoverGroup",inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"}},setup(e,{attrs:t,slots:n,expose:r}){let i=l.ref(null),a=l.shallowRef([]),o=l.computed(()=>Da(i)),s=Ite();r({el:i,$el:i});function u(h){let d=a.value.indexOf(h);d!==-1&&a.value.splice(d,1)}function c(h){return a.value.push(h),()=>{u(h)}}function A(){var h;let d=o.value;if(!d)return!1;let m=d.activeElement;return(h=Ze(i))!=null&&h.contains(m)?!0:a.value.some(p=>{var g,v;return((g=d.getElementById(p.buttonId.value))==null?void 0:g.contains(m))||((v=d.getElementById(p.panelId.value))==null?void 0:v.contains(m))})}function f(h){for(let d of a.value)d.buttonId.value!==h&&d.close()}return l.provide(S6,{registerPopover:c,unregisterPopover:u,isFocusWithinPopoverGroup:A,closeOthers:f,mainTreeNodeRef:s.mainTreeNodeRef}),()=>l.h(l.Fragment,[Nn({ourProps:{ref:i},theirProps:{...e,...t},slot:{},attrs:t,slots:n,name:"PopoverGroup"}),l.h(s.MainTreeNode)])}});let T6=Symbol("LabelContext");function N6(){let e=l.inject(T6,null);if(e===null){let t=new Error("You used a <Label /> component, but it is not inside a parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,N6),t}return e}function Sw({slot:e={},name:t="Label",props:n={}}={}){let r=l.ref([]);function i(a){return r.value.push(a),()=>{let o=r.value.indexOf(a);o!==-1&&r.value.splice(o,1)}}return l.provide(T6,{register:i,slot:e,name:t,props:n}),l.computed(()=>r.value.length>0?r.value.join(" "):void 0)}let Ane=l.defineComponent({name:"Label",props:{as:{type:[Object,String],default:"label"},passive:{type:[Boolean],default:!1},id:{type:String,default:null}},setup(e,{slots:t,attrs:n}){var r;let i=(r=e.id)!=null?r:`headlessui-label-${dr()}`,a=N6();return l.onMounted(()=>l.onUnmounted(a.register(i))),()=>{let{name:o="Label",slot:s={},props:u={}}=a,{passive:c,...A}=e,f={...Object.entries(u).reduce((h,[d,m])=>Object.assign(h,{[d]:l.unref(m)}),{}),id:i};return c&&(delete f.onClick,delete f.htmlFor,delete A.onClick),Nn({ourProps:f,theirProps:A,slot:s,attrs:n,slots:t,name:o})}}});function dne(e,t){return e===t}let F6=Symbol("RadioGroupContext");function O6(e){let t=l.inject(F6,null);if(t===null){let n=new Error(`<${e} /> is missing a parent <RadioGroup /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,O6),n}return t}let fne=l.defineComponent({name:"RadioGroup",emits:{"update:modelValue":e=>!0},props:{as:{type:[Object,String],default:"div"},disabled:{type:[Boolean],default:!1},by:{type:[String,Function],default:()=>dne},modelValue:{type:[Object,String,Number,Boolean],default:void 0},defaultValue:{type:[Object,String,Number,Boolean],default:void 0},form:{type:String,optional:!0},name:{type:String,optional:!0},id:{type:String,default:null}},inheritAttrs:!1,setup(e,{emit:t,attrs:n,slots:r,expose:i}){var a;let o=(a=e.id)!=null?a:`headlessui-radiogroup-${dr()}`,s=l.ref(null),u=l.ref([]),c=Sw({name:"RadioGroupLabel"}),A=Tv({name:"RadioGroupDescription"});i({el:s,$el:s});let[f,h]=xv(l.computed(()=>e.modelValue),g=>t("update:modelValue",g),l.computed(()=>e.defaultValue)),d={options:u,value:f,disabled:l.computed(()=>e.disabled),firstOption:l.computed(()=>u.value.find(g=>!g.propsRef.disabled)),containsCheckedOption:l.computed(()=>u.value.some(g=>d.compare(l.toRaw(g.propsRef.value),l.toRaw(e.modelValue)))),compare(g,v){if(typeof e.by=="string"){let y=e.by;return(g==null?void 0:g[y])===(v==null?void 0:v[y])}return e.by(g,v)},change(g){var v;if(e.disabled||d.compare(l.toRaw(f.value),l.toRaw(g)))return!1;let y=(v=u.value.find(_=>d.compare(l.toRaw(_.propsRef.value),l.toRaw(g))))==null?void 0:v.propsRef;return y!=null&&y.disabled?!1:(h(g),!0)},registerOption(g){u.value.push(g),u.value=dm(u.value,v=>v.element)},unregisterOption(g){let v=u.value.findIndex(y=>y.id===g);v!==-1&&u.value.splice(v,1)}};l.provide(F6,d),fw({container:l.computed(()=>Ze(s)),accept(g){return g.getAttribute("role")==="radio"?NodeFilter.FILTER_REJECT:g.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(g){g.setAttribute("role","none")}});function m(g){if(!s.value||!s.value.contains(g.target))return;let v=u.value.filter(y=>y.propsRef.disabled===!1).map(y=>y.element);switch(g.key){case Yt.Enter:n6(g.currentTarget);break;case Yt.ArrowLeft:case Yt.ArrowUp:if(g.preventDefault(),g.stopPropagation(),So(v,li.Previous|li.WrapAround)===Sd.Success){let y=u.value.find(_=>{var b;return _.element===((b=Da(s))==null?void 0:b.activeElement)});y&&d.change(y.propsRef.value)}break;case Yt.ArrowRight:case Yt.ArrowDown:if(g.preventDefault(),g.stopPropagation(),So(v,li.Next|li.WrapAround)===Sd.Success){let y=u.value.find(_=>{var b;return _.element===((b=Da(_.element))==null?void 0:b.activeElement)});y&&d.change(y.propsRef.value)}break;case Yt.Space:{g.preventDefault(),g.stopPropagation();let y=u.value.find(_=>{var b;return _.element===((b=Da(_.element))==null?void 0:b.activeElement)});y&&d.change(y.propsRef.value)}break}}let p=l.computed(()=>{var g;return(g=Ze(s))==null?void 0:g.closest("form")});return l.onMounted(()=>{l.watch([p],()=>{if(!p.value||e.defaultValue===void 0)return;function g(){d.change(e.defaultValue)}return p.value.addEventListener("reset",g),()=>{var v;(v=p.value)==null||v.removeEventListener("reset",g)}},{immediate:!0})}),()=>{let{disabled:g,name:v,form:y,..._}=e,b={ref:s,id:o,role:"radiogroup","aria-labelledby":c.value,"aria-describedby":A.value,onKeydown:m};return l.h(l.Fragment,[...v!=null&&f.value!=null?Mv({[v]:f.value}).map(([w,C])=>l.h(Js,Sv({features:vs.Hidden,key:w,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:y,disabled:g,name:w,value:C}))):[],Nn({ourProps:b,theirProps:{...n,...aA(_,["modelValue","defaultValue","by"])},slot:{},attrs:n,slots:r,name:"RadioGroup"})])}}});var hne=(e=>(e[e.Empty=1]="Empty",e[e.Active=2]="Active",e))(hne||{});let pne=l.defineComponent({name:"RadioGroupOption",props:{as:{type:[Object,String],default:"div"},value:{type:[Object,String,Number,Boolean]},disabled:{type:Boolean,default:!1},id:{type:String,default:null}},setup(e,{attrs:t,slots:n,expose:r}){var i;let a=(i=e.id)!=null?i:`headlessui-radiogroup-option-${dr()}`,o=O6("RadioGroupOption"),s=Sw({name:"RadioGroupLabel"}),u=Tv({name:"RadioGroupDescription"}),c=l.ref(null),A=l.computed(()=>({value:e.value,disabled:e.disabled})),f=l.ref(1);r({el:c,$el:c});let h=l.computed(()=>Ze(c));l.onMounted(()=>o.registerOption({id:a,element:h,propsRef:A})),l.onUnmounted(()=>o.unregisterOption(a));let d=l.computed(()=>{var b;return((b=o.firstOption.value)==null?void 0:b.id)===a}),m=l.computed(()=>o.disabled.value||e.disabled),p=l.computed(()=>o.compare(l.toRaw(o.value.value),l.toRaw(e.value))),g=l.computed(()=>m.value?-1:p.value||!o.containsCheckedOption.value&&d.value?0:-1);function v(){var b;o.change(e.value)&&(f.value|=2,(b=Ze(c))==null||b.focus())}function y(){f.value|=2}function _(){f.value&=-3}return()=>{let{value:b,disabled:w,...C}=e,B={checked:p.value,disabled:m.value,active:!!(f.value&2)},E={id:a,ref:c,role:"radio","aria-checked":p.value?"true":"false","aria-labelledby":s.value,"aria-describedby":u.value,"aria-disabled":m.value?!0:void 0,tabIndex:g.value,onClick:m.value?void 0:v,onFocus:m.value?void 0:y,onBlur:m.value?void 0:_};return Nn({ourProps:E,theirProps:C,slot:B,attrs:t,slots:n,name:"RadioGroupOption"})}}}),mne=Ane,D6=Symbol("GroupContext");l.defineComponent({name:"SwitchGroup",props:{as:{type:[Object,String],default:"template"}},setup(e,{slots:t,attrs:n}){let r=l.ref(null),i=Sw({name:"SwitchLabel",props:{htmlFor:l.computed(()=>{var o;return(o=r.value)==null?void 0:o.id}),onClick(o){r.value&&(o.currentTarget.tagName==="LABEL"&&o.preventDefault(),r.value.click(),r.value.focus({preventScroll:!0}))}}}),a=Tv({name:"SwitchDescription"});return l.provide(D6,{switchRef:r,labelledby:i,describedby:a}),()=>Nn({theirProps:e,ourProps:{},slot:{},slots:t,attrs:n,name:"SwitchGroup"})}});let gne=l.defineComponent({name:"Switch",emits:{"update:modelValue":e=>!0},props:{as:{type:[Object,String],default:"button"},modelValue:{type:Boolean,default:void 0},defaultChecked:{type:Boolean,optional:!0},form:{type:String,optional:!0},name:{type:String,optional:!0},value:{type:String,optional:!0},id:{type:String,default:null},disabled:{type:Boolean,default:!1},tabIndex:{type:Number,default:0}},inheritAttrs:!1,setup(e,{emit:t,attrs:n,slots:r,expose:i}){var a;let o=(a=e.id)!=null?a:`headlessui-switch-${dr()}`,s=l.inject(D6,null),[u,c]=xv(l.computed(()=>e.modelValue),y=>t("update:modelValue",y),l.computed(()=>e.defaultChecked));function A(){c(!u.value)}let f=l.ref(null),h=s===null?f:s.switchRef,d=ah(l.computed(()=>({as:e.as,type:n.type})),h);i({el:h,$el:h});function m(y){y.preventDefault(),A()}function p(y){y.key===Yt.Space?(y.preventDefault(),A()):y.key===Yt.Enter&&n6(y.currentTarget)}function g(y){y.preventDefault()}let v=l.computed(()=>{var y,_;return(_=(y=Ze(h))==null?void 0:y.closest)==null?void 0:_.call(y,"form")});return l.onMounted(()=>{l.watch([v],()=>{if(!v.value||e.defaultChecked===void 0)return;function y(){c(e.defaultChecked)}return v.value.addEventListener("reset",y),()=>{var _;(_=v.value)==null||_.removeEventListener("reset",y)}},{immediate:!0})}),()=>{let{name:y,value:_,form:b,tabIndex:w,...C}=e,B={checked:u.value},E={id:o,ref:h,role:"switch",type:d.value,tabIndex:w===-1?0:w,"aria-checked":u.value,"aria-labelledby":s==null?void 0:s.labelledby.value,"aria-describedby":s==null?void 0:s.describedby.value,onClick:m,onKeyup:p,onKeypress:g};return l.h(l.Fragment,[y!=null&&u.value!=null?l.h(Js,Sv({features:vs.Hidden,as:"input",type:"checkbox",hidden:!0,readOnly:!0,checked:u.value,form:b,disabled:C.disabled,name:y,value:_})):null,Nn({ourProps:E,theirProps:{...n,...aA(C,["modelValue","defaultChecked"])},slot:B,attrs:n,slots:r,name:"Switch"})])}}});function vne(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}function kw(e,...t){e&&t.length>0&&e.classList.add(...t)}function Iv(e,...t){e&&t.length>0&&e.classList.remove(...t)}var Mw=(e=>(e.Finished="finished",e.Cancelled="cancelled",e))(Mw||{});function yne(e,t){let n=nA();if(!e)return n.dispose;let{transitionDuration:r,transitionDelay:i}=getComputedStyle(e),[a,o]=[r,i].map(s=>{let[u=0]=s.split(",").filter(Boolean).map(c=>c.includes("ms")?parseFloat(c):parseFloat(c)*1e3).sort((c,A)=>A-c);return u});return a!==0?n.setTimeout(()=>t("finished"),a+o):t("finished"),n.add(()=>t("cancelled")),n.dispose}function I6(e,t,n,r,i,a){let o=nA(),s=a!==void 0?vne(a):()=>{};return Iv(e,...i),kw(e,...t,...n),o.nextFrame(()=>{Iv(e,...n),kw(e,...r),o.add(yne(e,u=>(Iv(e,...r,...t),kw(e,...i),s(u))))}),o.add(()=>Iv(e,...t,...n,...r,...i)),o.add(()=>s("cancelled")),o.dispose}function Nd(e=""){return e.split(/\s+/).filter(t=>t.length>1)}let Ew=Symbol("TransitionContext");var _ne=(e=>(e.Visible="visible",e.Hidden="hidden",e))(_ne||{});function bne(){return l.inject(Ew,null)!==null}function wne(){let e=l.inject(Ew,null);if(e===null)throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");return e}function Bne(){let e=l.inject(Lw,null);if(e===null)throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");return e}let Lw=Symbol("NestingContext");function Uv(e){return"children"in e?Uv(e.children):e.value.filter(({state:t})=>t==="visible").length>0}function U6(e){let t=l.ref([]),n=l.ref(!1);l.onMounted(()=>n.value=!0),l.onUnmounted(()=>n.value=!1);function r(a,o=iA.Hidden){let s=t.value.findIndex(({id:u})=>u===a);s!==-1&&(tr(o,{[iA.Unmount](){t.value.splice(s,1)},[iA.Hidden](){t.value[s].state="hidden"}}),!Uv(t)&&n.value&&(e==null||e()))}function i(a){let o=t.value.find(({id:s})=>s===a);return o?o.state!=="visible"&&(o.state="visible"):t.value.push({id:a,state:"visible"}),()=>r(a,iA.Unmount)}return{children:t,register:i,unregister:r}}let P6=oa.RenderStrategy,Fd=l.defineComponent({props:{as:{type:[Object,String],default:"div"},show:{type:[Boolean],default:null},unmount:{type:[Boolean],default:!0},appear:{type:[Boolean],default:!1},enter:{type:[String],default:""},enterFrom:{type:[String],default:""},enterTo:{type:[String],default:""},entered:{type:[String],default:""},leave:{type:[String],default:""},leaveFrom:{type:[String],default:""},leaveTo:{type:[String],default:""}},emits:{beforeEnter:()=>!0,afterEnter:()=>!0,beforeLeave:()=>!0,afterLeave:()=>!0},setup(e,{emit:t,attrs:n,slots:r,expose:i}){let a=l.ref(0);function o(){a.value|=Wn.Opening,t("beforeEnter")}function s(){a.value&=~Wn.Opening,t("afterEnter")}function u(){a.value|=Wn.Closing,t("beforeLeave")}function c(){a.value&=~Wn.Closing,t("afterLeave")}if(!bne()&&gte())return()=>l.h(oA,{...e,onBeforeEnter:o,onAfterEnter:s,onBeforeLeave:u,onAfterLeave:c},r);let A=l.ref(null),f=l.computed(()=>e.unmount?iA.Unmount:iA.Hidden);i({el:A,$el:A});let{show:h,appear:d}=wne(),{register:m,unregister:p}=Bne(),g=l.ref(h.value?"visible":"hidden"),v={value:!0},y=dr(),_={value:!1},b=U6(()=>{!_.value&&g.value!=="hidden"&&(g.value="hidden",p(y),c())});l.onMounted(()=>{let D=m(y);l.onUnmounted(D)}),l.watchEffect(()=>{if(f.value===iA.Hidden&&y){if(h.value&&g.value!=="visible"){g.value="visible";return}tr(g.value,{hidden:()=>p(y),visible:()=>m(y)})}});let w=Nd(e.enter),C=Nd(e.enterFrom),B=Nd(e.enterTo),E=Nd(e.entered),N=Nd(e.leave),P=Nd(e.leaveFrom),k=Nd(e.leaveTo);l.onMounted(()=>{l.watchEffect(()=>{if(g.value==="visible"){let D=Ze(A);if(D instanceof Comment&&D.data==="")throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}})});function F(D){let L=v.value&&!d.value,H=Ze(A);!H||!(H instanceof HTMLElement)||L||(_.value=!0,h.value&&o(),h.value||u(),D(h.value?I6(H,w,C,B,E,K=>{_.value=!1,K===Mw.Finished&&s()}):I6(H,N,P,k,E,K=>{_.value=!1,K===Mw.Finished&&(Uv(b)||(g.value="hidden",p(y),c()))})))}return l.onMounted(()=>{l.watch([h],(D,L,H)=>{F(H),v.value=!1},{immediate:!0})}),l.provide(Lw,b),oh(l.computed(()=>tr(g.value,{visible:Wn.Open,hidden:Wn.Closed})|a.value)),()=>{let{appear:D,show:L,enter:H,enterFrom:K,enterTo:q,entered:z,leave:J,leaveFrom:ie,leaveTo:X,...I}=e,W={ref:A},ee={...I,...d.value&&h.value&&lm.isServer?{class:l.normalizeClass([n.class,I.class,...w,...C])}:{}};return Nn({theirProps:ee,ourProps:W,slot:{},slots:r,attrs:n,features:P6,visible:g.value==="visible",name:"TransitionChild"})}}}),xne=Fd,oA=l.defineComponent({inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"},show:{type:[Boolean],default:null},unmount:{type:[Boolean],default:!0},appear:{type:[Boolean],default:!1},enter:{type:[String],default:""},enterFrom:{type:[String],default:""},enterTo:{type:[String],default:""},entered:{type:[String],default:""},leave:{type:[String],default:""},leaveFrom:{type:[String],default:""},leaveTo:{type:[String],default:""}},emits:{beforeEnter:()=>!0,afterEnter:()=>!0,beforeLeave:()=>!0,afterLeave:()=>!0},setup(e,{emit:t,attrs:n,slots:r}){let i=ju(),a=l.computed(()=>e.show===null&&i!==null?(i.value&Wn.Open)===Wn.Open:e.show);l.watchEffect(()=>{if(![!0,!1].includes(a.value))throw new Error('A <Transition /> is used but it is missing a `:show="true | false"` prop.')});let o=l.ref(a.value?"visible":"hidden"),s=U6(()=>{o.value="hidden"}),u=l.ref(!0),c={show:a,appear:l.computed(()=>e.appear||!u.value)};return l.onMounted(()=>{l.watchEffect(()=>{u.value=!1,a.value?o.value="visible":Uv(s)||(o.value="hidden")})}),l.provide(Lw,s),l.provide(Ew,c),()=>{let A=aA(e,["show","appear","unmount","onBeforeEnter","onBeforeLeave","onAfterEnter","onAfterLeave"]),f={unmount:e.unmount};return Nn({ourProps:{...f,as:"template"},theirProps:{},slot:{},slots:{...r,default:()=>[l.h(xne,{onBeforeEnter:()=>t("beforeEnter"),onAfterEnter:()=>t("afterEnter"),onBeforeLeave:()=>t("beforeLeave"),onAfterLeave:()=>t("afterLeave"),...n,...f,...A},r.default)]},attrs:{},features:P6,visible:o.value==="visible",name:"Transition"})}}});const Cne={class:"flex items-center pr-10"},Sne={class:"input-dropdown-label"},kne={class:"flex items-center pr-10"},Mne={class:"input-dropdown-label"},Ene={key:0,class:"std-red-text text-sm"},Lne={__name:"GreyInputAutocomplete",props:{options:{type:Array,default:()=>[]},readonly:{type:[Boolean,Number],default:!1},error:{type:String,default:""}},setup(e){const t=e,n=l.ref(""),r=l.computed(()=>n.value===""?null:n.value),i=l.computed(()=>n.value===""?t.options.slice(0,100):t.options.filter(a=>a.value.toLowerCase().includes(n.value.toLowerCase())).slice(0,100));return(a,o)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createVNode(l.unref(hm),l.mergeProps({as:"div"},a.$attrs,{class:"relative input-block",disabled:!!e.readonly}),{default:l.withCtx(()=>[l.createVNode(l.unref(Lv),{class:l.normalizeClass(["px-2 w-full bg-transparent border-0 outline-none ring-0 focus:outline-none focus:ring-0 std-placeholder",{"std-red-ring":e.error},{disabled:e.readonly}]),onChange:o[0]||(o[0]=s=>n.value=s.target.value),displayValue:s=>s},null,8,["class","displayValue"]),l.createVNode(l.unref(pm),{class:"input-block input-dropdown text-base sm:text-sm"},{default:l.withCtx(()=>[r.value&&!i.value.some(s=>s.value===r.value)?(l.openBlock(),l.createBlock(l.unref(sh),{key:0,value:r.value,as:"template"},{default:l.withCtx(({active:s})=>[l.createElementVNode("li",{class:l.normalizeClass([{"std-blue text-white":s},"input-dropdown-item"])},[l.createElementVNode("div",Cne,[l.createElementVNode("span",Sne,l.toDisplayString(n.value),1)])],2)]),_:1},8,["value"])):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(i.value,s=>(l.openBlock(),l.createBlock(l.unref(sh),{as:"template",key:s.value,value:s.value},{default:l.withCtx(({active:u})=>[l.createElementVNode("li",{class:l.normalizeClass([{"std-blue text-white":u},"input-dropdown-item"])},[l.createElementVNode("div",kne,[l.createElementVNode("span",Mne,l.toDisplayString(s.label),1)])],2)]),_:2},1032,["value"]))),128))]),_:1})]),_:1},16,["disabled"]),e.error?(l.openBlock(),l.createElementBlock("div",Ene,l.toDisplayString(e.error),1)):l.createCommentVNode("",!0)],64))}},Tne=["value","readonly"],Nne={key:0,class:"std-red-text text-sm"},H6={__name:"GreyInputGrow",props:{error:{type:String,default:""},readonly:{type:[Boolean,Number],default:!1},value:{type:String,default:""},maxHeight:{type:Number,default:200}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t,i=l.ref();function a(o){if(!i.value)return;i.value.style.height="auto";const s=i.value.scrollHeight;s<=n.maxHeight?(i.value.style.height=`${s}px`,i.value.style.overflowY="hidden"):(i.value.style.height=`${n.maxHeight}px`,i.value.style.overflowY="scroll"),r("update:modelValue",o)}return(o,s)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createElementVNode("div",l.mergeProps({class:["flex input-block relative",{"std-red-ring ":e.error}]},o.$attrs),[l.createElementVNode("textarea",l.mergeProps({ref_key:"textarea",ref:i,class:["py-2 px-3 w-full resize-none border-0 std-placeholder custom-scrollbar","focus:ring-0 focus:ring-offset-0 focus:border-0 focus:outline-none shadow-none",e.readonly?"disabled":""],value:o.$attrs.modelValue||n.value},o.$attrs,{rows:"1",readonly:n.readonly,onInput:s[0]||(s[0]=u=>a(u.target.value))}),null,16,Tne)],16),e.error?(l.openBlock(),l.createElementBlock("div",Nne,l.toDisplayString(e.error),1)):l.createCommentVNode("",!0)],64))}};function Fne(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"fill-rule":"evenodd",d:"M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16Zm.75-11.25a.75.75 0 0 0-1.5 0v4.59L7.3 9.24a.75.75 0 0 0-1.1 1.02l3.25 3.5a.75.75 0 0 0 1.1 0l3.25-3.5a.75.75 0 1 0-1.1-1.02l-1.95 2.1V6.75Z","clip-rule":"evenodd"})])}function One(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{d:"M10.75 2.75a.75.75 0 0 0-1.5 0v8.614L6.295 8.235a.75.75 0 1 0-1.09 1.03l4.25 4.5a.75.75 0 0 0 1.09 0l4.25-4.5a.75.75 0 0 0-1.09-1.03l-2.955 3.129V2.75Z"}),l.createElementVNode("path",{d:"M3.5 12.75a.75.75 0 0 0-1.5 0v2.5A2.75 2.75 0 0 0 4.75 18h10.5A2.75 2.75 0 0 0 18 15.25v-2.5a.75.75 0 0 0-1.5 0v2.5c0 .69-.56 1.25-1.25 1.25H4.75c-.69 0-1.25-.56-1.25-1.25v-2.5Z"})])}function Y6(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"fill-rule":"evenodd",d:"M15.312 11.424a5.5 5.5 0 0 1-9.201 2.466l-.312-.311h2.433a.75.75 0 0 0 0-1.5H3.989a.75.75 0 0 0-.75.75v4.242a.75.75 0 0 0 1.5 0v-2.43l.31.31a7 7 0 0 0 11.712-3.138.75.75 0 0 0-1.449-.39Zm1.23-3.723a.75.75 0 0 0 .219-.53V2.929a.75.75 0 0 0-1.5 0V5.36l-.31-.31A7 7 0 0 0 3.239 8.188a.75.75 0 1 0 1.448.389A5.5 5.5 0 0 1 13.89 6.11l.311.31h-2.432a.75.75 0 0 0 0 1.5h4.243a.75.75 0 0 0 .53-.219Z","clip-rule":"evenodd"})])}function Dne(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"fill-rule":"evenodd",d:"M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16Zm-.75-4.75a.75.75 0 0 0 1.5 0V8.66l1.95 2.1a.75.75 0 1 0 1.1-1.02l-3.25-3.5a.75.75 0 0 0-1.1 0L6.2 9.74a.75.75 0 1 0 1.1 1.02l1.95-2.1v4.59Z","clip-rule":"evenodd"})])}function Ine(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"fill-rule":"evenodd",d:"M2 4.75A.75.75 0 0 1 2.75 4h14.5a.75.75 0 0 1 0 1.5H2.75A.75.75 0 0 1 2 4.75ZM2 10a.75.75 0 0 1 .75-.75h14.5a.75.75 0 0 1 0 1.5H2.75A.75.75 0 0 1 2 10Zm0 5.25a.75.75 0 0 1 .75-.75h14.5a.75.75 0 0 1 0 1.5H2.75a.75.75 0 0 1-.75-.75Z","clip-rule":"evenodd"})])}function R6(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"fill-rule":"evenodd",d:"M16.704 4.153a.75.75 0 0 1 .143 1.052l-8 10.5a.75.75 0 0 1-1.127.075l-4.5-4.5a.75.75 0 0 1 1.06-1.06l3.894 3.893 7.48-9.817a.75.75 0 0 1 1.05-.143Z","clip-rule":"evenodd"})])}function Q6(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"fill-rule":"evenodd",d:"M5.22 8.22a.75.75 0 0 1 1.06 0L10 11.94l3.72-3.72a.75.75 0 1 1 1.06 1.06l-4.25 4.25a.75.75 0 0 1-1.06 0L5.22 9.28a.75.75 0 0 1 0-1.06Z","clip-rule":"evenodd"})])}function j6(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"fill-rule":"evenodd",d:"M11.78 5.22a.75.75 0 0 1 0 1.06L8.06 10l3.72 3.72a.75.75 0 1 1-1.06 1.06l-4.25-4.25a.75.75 0 0 1 0-1.06l4.25-4.25a.75.75 0 0 1 1.06 0Z","clip-rule":"evenodd"})])}function V6(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"fill-rule":"evenodd",d:"M8.22 5.22a.75.75 0 0 1 1.06 0l4.25 4.25a.75.75 0 0 1 0 1.06l-4.25 4.25a.75.75 0 0 1-1.06-1.06L11.94 10 8.22 6.28a.75.75 0 0 1 0-1.06Z","clip-rule":"evenodd"})])}function Tw(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"fill-rule":"evenodd",d:"M10.53 3.47a.75.75 0 0 0-1.06 0L6.22 6.72a.75.75 0 0 0 1.06 1.06L10 5.06l2.72 2.72a.75.75 0 1 0 1.06-1.06l-3.25-3.25Zm-4.31 9.81 3.25 3.25a.75.75 0 0 0 1.06 0l3.25-3.25a.75.75 0 1 0-1.06-1.06L10 14.94l-2.72-2.72a.75.75 0 0 0-1.06 1.06Z","clip-rule":"evenodd"})])}function Une(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"fill-rule":"evenodd",d:"M13.887 3.182c.396.037.79.08 1.183.128C16.194 3.45 17 4.414 17 5.517V16.75A2.25 2.25 0 0 1 14.75 19h-9.5A2.25 2.25 0 0 1 3 16.75V5.517c0-1.103.806-2.068 1.93-2.207.393-.048.787-.09 1.183-.128A3.001 3.001 0 0 1 9 1h2c1.373 0 2.531.923 2.887 2.182ZM7.5 4A1.5 1.5 0 0 1 9 2.5h2A1.5 1.5 0 0 1 12.5 4v.5h-5V4Z","clip-rule":"evenodd"})])}function Pne(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"fill-rule":"evenodd",d:"M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16Zm.75-13a.75.75 0 0 0-1.5 0v5c0 .414.336.75.75.75h4a.75.75 0 0 0 0-1.5h-3.25V5Z","clip-rule":"evenodd"})])}function Hne(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"fill-rule":"evenodd",d:"M8.34 1.804A1 1 0 0 1 9.32 1h1.36a1 1 0 0 1 .98.804l.295 1.473c.497.144.971.342 1.416.587l1.25-.834a1 1 0 0 1 1.262.125l.962.962a1 1 0 0 1 .125 1.262l-.834 1.25c.245.445.443.919.587 1.416l1.473.294a1 1 0 0 1 .804.98v1.361a1 1 0 0 1-.804.98l-1.473.295a6.95 6.95 0 0 1-.587 1.416l.834 1.25a1 1 0 0 1-.125 1.262l-.962.962a1 1 0 0 1-1.262.125l-1.25-.834a6.953 6.953 0 0 1-1.416.587l-.294 1.473a1 1 0 0 1-.98.804H9.32a1 1 0 0 1-.98-.804l-.295-1.473a6.957 6.957 0 0 1-1.416-.587l-1.25.834a1 1 0 0 1-1.262-.125l-.962-.962a1 1 0 0 1-.125-1.262l.834-1.25a6.957 6.957 0 0 1-.587-1.416l-1.473-.294A1 1 0 0 1 1 10.68V9.32a1 1 0 0 1 .804-.98l1.473-.295c.144-.497.342-.971.587-1.416l-.834-1.25a1 1 0 0 1 .125-1.262l.962-.962A1 1 0 0 1 5.38 3.03l1.25.834a6.957 6.957 0 0 1 1.416-.587l.294-1.473ZM13 10a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z","clip-rule":"evenodd"})])}function Yne(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{d:"M10.75 10.818v2.614A3.13 3.13 0 0 0 11.888 13c.482-.315.612-.648.612-.875 0-.227-.13-.56-.612-.875a3.13 3.13 0 0 0-1.138-.432ZM8.33 8.62c.053.055.115.11.184.164.208.16.46.284.736.363V6.603a2.45 2.45 0 0 0-.35.13c-.14.065-.27.143-.386.233-.377.292-.514.627-.514.909 0 .184.058.39.202.592.037.051.08.102.128.152Z"}),l.createElementVNode("path",{"fill-rule":"evenodd",d:"M18 10a8 8 0 1 1-16 0 8 8 0 0 1 16 0Zm-8-6a.75.75 0 0 1 .75.75v.316a3.78 3.78 0 0 1 1.653.713c.426.33.744.74.925 1.2a.75.75 0 0 1-1.395.55 1.35 1.35 0 0 0-.447-.563 2.187 2.187 0 0 0-.736-.363V9.3c.698.093 1.383.32 1.959.696.787.514 1.29 1.27 1.29 2.13 0 .86-.504 1.616-1.29 2.13-.576.377-1.261.603-1.96.696v.299a.75.75 0 1 1-1.5 0v-.3c-.697-.092-1.382-.318-1.958-.695-.482-.315-.857-.717-1.078-1.188a.75.75 0 1 1 1.359-.636c.08.173.245.376.54.569.313.205.706.353 1.138.432v-2.748a3.782 3.782 0 0 1-1.653-.713C6.9 9.433 6.5 8.681 6.5 7.875c0-.805.4-1.558 1.097-2.096a3.78 3.78 0 0 1 1.653-.713V4.75A.75.75 0 0 1 10 4Z","clip-rule":"evenodd"})])}function Rne(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{d:"M7 3.5A1.5 1.5 0 0 1 8.5 2h3.879a1.5 1.5 0 0 1 1.06.44l3.122 3.12A1.5 1.5 0 0 1 17 6.622V12.5a1.5 1.5 0 0 1-1.5 1.5h-1v-3.379a3 3 0 0 0-.879-2.121L10.5 5.379A3 3 0 0 0 8.379 4.5H7v-1Z"}),l.createElementVNode("path",{d:"M4.5 6A1.5 1.5 0 0 0 3 7.5v9A1.5 1.5 0 0 0 4.5 18h7a1.5 1.5 0 0 0 1.5-1.5v-5.879a1.5 1.5 0 0 0-.44-1.06L9.44 6.439A1.5 1.5 0 0 0 8.378 6H4.5Z"})])}function z6(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{d:"M3 10a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0ZM8.5 10a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0ZM15.5 8.5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3Z"})])}function Qne(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"fill-rule":"evenodd",d:"M8.485 2.495c.673-1.167 2.357-1.167 3.03 0l6.28 10.875c.673 1.167-.17 2.625-1.516 2.625H3.72c-1.347 0-2.189-1.458-1.515-2.625L8.485 2.495ZM10 5a.75.75 0 0 1 .75.75v3.5a.75.75 0 0 1-1.5 0v-3.5A.75.75 0 0 1 10 5Zm0 9a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z","clip-rule":"evenodd"})])}function jne(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{d:"M10 12.5a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Z"}),l.createElementVNode("path",{"fill-rule":"evenodd",d:"M.664 10.59a1.651 1.651 0 0 1 0-1.186A10.004 10.004 0 0 1 10 3c4.257 0 7.893 2.66 9.336 6.41.147.381.146.804 0 1.186A10.004 10.004 0 0 1 10 17c-4.257 0-7.893-2.66-9.336-6.41ZM14 10a4 4 0 1 1-8 0 4 4 0 0 1 8 0Z","clip-rule":"evenodd"})])}function Vne(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"fill-rule":"evenodd",d:"M9.293 2.293a1 1 0 0 1 1.414 0l7 7A1 1 0 0 1 17 11h-1v6a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1v-3a1 1 0 0 0-1-1H9a1 1 0 0 0-1 1v3a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-6H3a1 1 0 0 1-.707-1.707l7-7Z","clip-rule":"evenodd"})])}function zne(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{d:"M12.232 4.232a2.5 2.5 0 0 1 3.536 3.536l-1.225 1.224a.75.75 0 0 0 1.061 1.06l1.224-1.224a4 4 0 0 0-5.656-5.656l-3 3a4 4 0 0 0 .225 5.865.75.75 0 0 0 .977-1.138 2.5 2.5 0 0 1-.142-3.667l3-3Z"}),l.createElementVNode("path",{d:"M11.603 7.963a.75.75 0 0 0-.977 1.138 2.5 2.5 0 0 1 .142 3.667l-3 3a2.5 2.5 0 0 1-3.536-3.536l1.225-1.224a.75.75 0 0 0-1.061-1.06l-1.224 1.224a4 4 0 1 0 5.656 5.656l3-3a4 4 0 0 0-.225-5.865Z"})])}function Nw(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"fill-rule":"evenodd",d:"M9 3.5a5.5 5.5 0 1 0 0 11 5.5 5.5 0 0 0 0-11ZM2 9a7 7 0 1 1 12.452 4.391l3.328 3.329a.75.75 0 1 1-1.06 1.06l-3.329-3.328A7 7 0 0 1 2 9Z","clip-rule":"evenodd"})])}function qne(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"fill-rule":"evenodd",d:"M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16ZM6.75 9.25a.75.75 0 0 0 0 1.5h6.5a.75.75 0 0 0 0-1.5h-6.5Z","clip-rule":"evenodd"})])}function q6(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{d:"m5.433 13.917 1.262-3.155A4 4 0 0 1 7.58 9.42l6.92-6.918a2.121 2.121 0 0 1 3 3l-6.92 6.918c-.383.383-.84.685-1.343.886l-3.154 1.262a.5.5 0 0 1-.65-.65Z"}),l.createElementVNode("path",{d:"M3.5 5.75c0-.69.56-1.25 1.25-1.25H10A.75.75 0 0 0 10 3H4.75A2.75 2.75 0 0 0 2 5.75v9.5A2.75 2.75 0 0 0 4.75 18h9.5A2.75 2.75 0 0 0 17 15.25V10a.75.75 0 0 0-1.5 0v5.25c0 .69-.56 1.25-1.25 1.25h-9.5c-.69 0-1.25-.56-1.25-1.25v-9.5Z"})])}function Kne(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{d:"m2.695 14.762-1.262 3.155a.5.5 0 0 0 .65.65l3.155-1.262a4 4 0 0 0 1.343-.886L17.5 5.501a2.121 2.121 0 0 0-3-3L3.58 13.419a4 4 0 0 0-.885 1.343Z"})])}function Gne(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{d:"M6.3 2.84A1.5 1.5 0 0 0 4 4.11v11.78a1.5 1.5 0 0 0 2.3 1.27l9.344-5.891a1.5 1.5 0 0 0 0-2.538L6.3 2.841Z"})])}function Wne(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"fill-rule":"evenodd",d:"M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16Zm.75-11.25a.75.75 0 0 0-1.5 0v2.5h-2.5a.75.75 0 0 0 0 1.5h2.5v2.5a.75.75 0 0 0 1.5 0v-2.5h2.5a.75.75 0 0 0 0-1.5h-2.5v-2.5Z","clip-rule":"evenodd"})])}function Xne(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{d:"M10.75 4.75a.75.75 0 0 0-1.5 0v4.5h-4.5a.75.75 0 0 0 0 1.5h4.5v4.5a.75.75 0 0 0 1.5 0v-4.5h4.5a.75.75 0 0 0 0-1.5h-4.5v-4.5Z"})])}function Jne(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{d:"M5.25 3A2.25 2.25 0 0 0 3 5.25v9.5A2.25 2.25 0 0 0 5.25 17h9.5A2.25 2.25 0 0 0 17 14.75v-9.5A2.25 2.25 0 0 0 14.75 3h-9.5Z"})])}function Fw(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"fill-rule":"evenodd",d:"M8.75 1A2.75 2.75 0 0 0 6 3.75v.443c-.795.077-1.584.176-2.365.298a.75.75 0 1 0 .23 1.482l.149-.022.841 10.518A2.75 2.75 0 0 0 7.596 19h4.807a2.75 2.75 0 0 0 2.742-2.53l.841-10.52.149.023a.75.75 0 0 0 .23-1.482A41.03 41.03 0 0 0 14 4.193V3.75A2.75 2.75 0 0 0 11.25 1h-2.5ZM10 4c.84 0 1.673.025 2.5.075V3.75c0-.69-.56-1.25-1.25-1.25h-2.5c-.69 0-1.25.56-1.25 1.25v.325C8.327 4.025 9.16 4 10 4ZM8.58 7.72a.75.75 0 0 0-1.5.06l.3 7.5a.75.75 0 1 0 1.5-.06l-.3-7.5Zm4.34.06a.75.75 0 1 0-1.5-.06l-.3 7.5a.75.75 0 1 0 1.5.06l.3-7.5Z","clip-rule":"evenodd"})])}function Od(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{d:"M6.28 5.22a.75.75 0 0 0-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 1 0 1.06 1.06L10 11.06l3.72 3.72a.75.75 0 1 0 1.06-1.06L11.06 10l3.72-3.72a.75.75 0 0 0-1.06-1.06L10 8.94 6.28 5.22Z"})])}const Zne={components:{DocumentDuplicateIcon:Rne},props:{error:{type:String,default:""},readonly:{type:[Boolean,Number],default:!1}},data(){return{inputValue:""}},mounted(){this.inputValue=this.initialValue},methods:{onChange(e){this.$emit("update:modelValue",e.target.value)},async copyInput(){await navigator.clipboard.writeText(this.$attrs.modelValue),this.$emit("copied","Copied to clipboard","",!0)}}},$ne={class:"relative"},ere=["value","readonly"],tre={key:0,class:"std-red-text text-sm"};function nre(e,t,n,r,i,a){const o=l.resolveComponent("DocumentDuplicateIcon");return l.openBlock(),l.createElementBlock("div",$ne,[l.createElementVNode("input",l.mergeProps({type:"text",class:["pl-3 input-block pr-8",{"std-red-ring":n.error},{disabled:n.readonly}],value:e.$attrs.modelValue},e.$attrs,{readonly:n.readonly,onInput:t[0]||(t[0]=(...s)=>a.onChange&&a.onChange(...s))}),null,16,ere),l.createElementVNode("span",{class:l.normalizeClass(["input-icon cursor-pointer",{"pb-5":n.error}]),onClick:t[1]||(t[1]=(...s)=>a.copyInput&&a.copyInput(...s))},[l.createVNode(o,{class:"icon-md"})],2),n.error?(l.openBlock(),l.createElementBlock("div",tre,l.toDisplayString(n.error),1)):l.createCommentVNode("",!0)])}const rre=ar(Zne,[["render",nre]]),ire=e=>{let t="";const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=n.length;for(let i=0;i<e;i++)t+=n.charAt(Math.floor(Math.random()*r));return t},are={components:{CurrencyDollarIcon:Yne},props:{error:{type:String,default:""},initialValue:{type:String,default:""},tokenFunction:{type:Function,default:()=>ire(10)},readonly:{type:[Boolean,Number],default:!1}},data(){return{inputValue:""}},mounted(){this.inputValue=this.initialValue},methods:{onChange(){this.$emit("updateModel",this.inputValue)},generateToken(){const e=this.tokenFunction();this.inputValue=e,this.$emit("updateModel",e)}}},ore={class:"relative"},sre={key:0,class:"std-red-text text-sm"};function lre(e,t,n,r,i,a){const o=l.resolveComponent("CurrencyDollarIcon");return l.openBlock(),l.createElementBlock("div",ore,[l.withDirectives(l.createElementVNode("input",l.mergeProps({type:"text",class:["pl-3 input-block pr-8",{"std-red-ring":n.error},{disabled:n.readonly}],"onUpdate:modelValue":t[0]||(t[0]=s=>i.inputValue=s)},e.$attrs,{onInput:t[1]||(t[1]=(...s)=>a.onChange&&a.onChange(...s))}),null,16),[[l.vModelText,i.inputValue,void 0,{trim:!0}]]),l.createElementVNode("span",{class:l.normalizeClass(["input-icon cursor-pointer",{"pb-5":n.error},{hidden:n.readonly}]),onClick:t[2]||(t[2]=(...s)=>a.generateToken&&a.generateToken(...s))},[l.createVNode(o,{class:"icon-md"})],2),n.error?(l.openBlock(),l.createElementBlock("div",sre,l.toDisplayString(n.error),1)):l.createCommentVNode("",!0)])}const ure=ar(are,[["render",lre]]),cre={props:{error:{type:String,default:""},readonly:{type:[Boolean,Number],default:!1}},methods:{onChange(e){this.$emit("update:modelValue",e.target.value)}}},Are=["value"],dre={key:0,class:"std-red-text text-sm"};function fre(e,t,n,r,i,a){return l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createElementVNode("input",l.mergeProps({type:"password",class:["pl-3 input-block outline-none",{"std-red-ring":n.error},{disabled:n.readonly}],value:e.$attrs.modelValue},e.$attrs,{onInput:t[0]||(t[0]=(...o)=>a.onChange&&a.onChange(...o))}),null,16,Are),n.error?(l.openBlock(),l.createElementBlock("div",dre,l.toDisplayString(n.error),1)):l.createCommentVNode("",!0)],64)}const Ow=ar(cre,[["render",fre]]),hre={props:{error:{type:String,default:""},readonly:{type:[Boolean,Number],default:!1}},emits:["update"],data(){return{formatted:""}},methods:{onChange(e){const t=e.target.value.replace(/\D/g,"");let n=t;n.length>10&&(n=n.slice(0,10)),t.length>6?this.formatted=`(${n.slice(0,3)})-${n.slice(3,6)}-${n.slice(6)}`:t.length>3?this.formatted=`(${n.slice(0,3)})-${n.slice(3)}`:t.length>0?this.formatted=`(${n})`:this.formatted="",this.$emit("update",n)}}},pre={key:0,class:"std-red-text text-sm"};function mre(e,t,n,r,i,a){return l.openBlock(),l.createElementBlock(l.Fragment,null,[l.withDirectives(l.createElementVNode("input",{"onUpdate:modelValue":t[0]||(t[0]=o=>i.formatted=o),type:"tel",class:l.normalizeClass(["input-block",{"std-red-ring":n.error},{disabled:n.readonly}]),placeholder:"(xxx)-xxx-xxxx",onInput:t[1]||(t[1]=(...o)=>a.onChange&&a.onChange(...o))},null,34),[[l.vModelText,i.formatted]]),n.error?(l.openBlock(),l.createElementBlock("div",pre,l.toDisplayString(n.error),1)):l.createCommentVNode("",!0)],64)}const gre=ar(hre,[["render",mre]]),vre={components:{Listbox:tne,ListboxButton:rne,ListboxLabel:nne,ListboxOption:ane,ListboxOptions:ine,CheckIcon:R6,ChevronUpDownIcon:Tw},props:{options:{type:Array,required:!0},readonly:{type:[Boolean,Number],default:!1},error:{type:String,default:""},sorted:{type:Boolean,default:!1},placeholder:{type:String,default:"Select a value"}},computed:{selected(){const e=this.options.find(t=>t.value===this.$attrs.modelValue);return!e&&this.$attrs.modelValue?{label:this.$attrs.modelValue,value:this.$attrs.modelValue}:e},sortedOptions(){return this.sorted?this.options.sort((e,t)=>e.label.localeCompare(t.label)):this.options}}},yre={class:"relative"},_re={class:"flex items-center pr-10"},bre={class:"ml-3 block truncate"},wre={class:"pointer-events-none input-icon"},Bre={class:"flex items-center pr-10"},xre={class:"ml-3 block truncate"},Cre={class:"pointer-events-none input-icon"},Sre={key:0,class:"std-red-text text-sm"};function kre(e,t,n,r,i,a){const o=l.resolveComponent("ChevronUpDownIcon"),s=l.resolveComponent("ListboxButton"),u=l.resolveComponent("CheckIcon"),c=l.resolveComponent("ListboxOption"),A=l.resolveComponent("ListboxOptions"),f=l.resolveComponent("Listbox");return l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createVNode(f,l.mergeProps({as:"div",value:e.$attrs.modelValue},e.$attrs),{default:l.withCtx(()=>[l.createElementVNode("div",yre,[a.selected?(l.openBlock(),l.createBlock(s,{key:0,class:l.normalizeClass(["input-block sm:text-sm sm:leading-6",{"std-red-ring":n.error},{disabled:n.readonly}]),disabled:n.readonly},{default:l.withCtx(()=>[l.createElementVNode("span",_re,[l.createElementVNode("span",bre,l.toDisplayString(a.selected.label),1)]),l.createElementVNode("span",wre,[l.createVNode(o,{class:"icon-md","aria-hidden":"true"})])]),_:1},8,["class","disabled"])):(l.openBlock(),l.createBlock(s,{key:1,class:l.normalizeClass(["input-block sm:text-sm sm:leading-6",{"std-red-ring":n.error},{disabled:n.readonly}]),disabled:n.readonly},{default:l.withCtx(()=>[l.createElementVNode("span",Bre,[l.createElementVNode("span",xre,l.toDisplayString(n.placeholder),1)]),l.createElementVNode("span",Cre,[l.createVNode(o,{class:"icon-md","aria-hidden":"true"})])]),_:1},8,["class","disabled"])),n.readonly?l.createCommentVNode("",!0):(l.openBlock(),l.createBlock(l.Transition,{key:2,"leave-active-class":"transition ease-in duration-100","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:l.withCtx(()=>[l.createVNode(A,{class:"input-block input-dropdown text-sm sm:text-xs"},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(a.sortedOptions,h=>(l.openBlock(),l.createBlock(c,{as:"template",key:h.id,value:h.value},{default:l.withCtx(({active:d})=>[l.createElementVNode("li",{class:l.normalizeClass([{"std-blue text-white":d},"input-dropdown-item"])},[l.createElementVNode("div",{class:l.normalizeClass(["flex items-center",{"pr-10":a.selected&&a.selected.value===h.value}])},[l.createElementVNode("span",{class:l.normalizeClass([{"font-semibold":a.selected},"input-dropdown-label"])},l.toDisplayString(h.label),3)],2),a.selected&&a.selected.value===h.value?(l.openBlock(),l.createElementBlock("span",{key:0,class:l.normalizeClass([d?"text-white":"","absolute inset-y-0 right-2 flex items-center"])},[l.createVNode(u,{class:"icon-md","aria-hidden":"true"})],2)):l.createCommentVNode("",!0)],2)]),_:2},1032,["value"]))),128))]),_:1})]),_:1}))])]),_:1},16,["value"]),n.error?(l.openBlock(),l.createElementBlock("div",Sre,l.toDisplayString(n.error),1)):l.createCommentVNode("",!0)],64)}const fr=ar(vre,[["render",kre]]),Mre={components:{Combobox:hm,ComboboxButton:Ev,ComboboxOption:sh,ComboboxOptions:pm,ChevronUpDownIcon:Tw},props:{initialValue:{type:String,required:!1},options:{type:Array,required:!0},readonly:{type:[Boolean,Number],default:!1},error:{type:String,default:""},sorted:{type:Boolean,default:!1}},data(){return{inputValue:""}},computed:{sortedOptions(){return this.sorted?this.options.sort((e,t)=>e.label.localeCompare(t.label)):this.options}},mounted(){this.selected=this.options.find(e=>e.value===this.initialValue)||"",this.inputValue=this.initialValue},methods:{setModelValue(e){this.$emit("updateModel",e.value)},updateInput(e){this.inputValue=e.value,this.setModelValue(e)}}},Ere={class:"relative input-block"},Lre={class:"flex items-center pr-10"},Tre={class:"input-dropdown-label"},Nre={key:0,class:"std-red-text text-sm"};function Fre(e,t,n,r,i,a){const o=l.resolveComponent("ChevronUpDownIcon"),s=l.resolveComponent("ComboboxButton"),u=l.resolveComponent("ComboboxOption"),c=l.resolveComponent("ComboboxOptions"),A=l.resolveComponent("Combobox");return l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createVNode(A,l.mergeProps({as:"div"},e.$attrs),{default:l.withCtx(()=>[l.createElementVNode("div",Ere,[l.withDirectives(l.createElementVNode("input",{type:"text",class:l.normalizeClass(["pl-3 pr-8 w-full bg-transparent border-0 outline-none ring-0 focus:outline-none focus:ring-0",{"std-red-ring":n.error},{disabled:n.readonly}]),"onUpdate:modelValue":t[0]||(t[0]=f=>i.inputValue=f),onInput:t[1]||(t[1]=f=>a.setModelValue(f.target))},null,34),[[l.vModelText,i.inputValue,void 0,{trim:!0}]]),l.createVNode(s,{class:"input-icon focus:outline-hidden"},{default:l.withCtx(()=>[l.createVNode(o,{class:"icon-md","aria-hidden":"true"})]),_:1}),n.readonly?l.createCommentVNode("",!0):(l.openBlock(),l.createBlock(l.Transition,{key:0,"leave-active-class":"transition ease-in duration-100","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:l.withCtx(()=>[l.createVNode(c,{class:"input-block input-dropdown text-base sm:text-sm"},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(a.sortedOptions,f=>(l.openBlock(),l.createBlock(u,{as:"template",key:f.id,value:f,onClick:h=>a.updateInput(f)},{default:l.withCtx(({active:h})=>[l.createElementVNode("li",{class:l.normalizeClass([{"std-blue text-white":h},"input-dropdown-item pl-3"])},[l.createElementVNode("div",Lre,[l.createElementVNode("span",Tre,l.toDisplayString(f.label),1)])],2)]),_:2},1032,["value","onClick"]))),128))]),_:1})]),_:1}))])]),_:1},16),n.error?(l.openBlock(),l.createElementBlock("div",Nre,l.toDisplayString(n.error),1)):l.createCommentVNode("",!0)],64)}const Ore=ar(Mre,[["render",Fre]]),Dre={class:"relative w-full rounded-lg text-left min-h-9"},Ire={class:"flex flex-auto flex-wrap py-1"},Ure={class:"select-chip gray-chip"},Pre={class:"text-xs font-normal leading-none max-w-full flex-initial"},Hre={key:0,class:"relative z-9 flex flex-auto flex-row-reverse"},Yre={key:0,class:"block truncate"},Rre={key:0,class:"input-icon"},Qre={key:0,class:"std-red-text text-sm"},Dw={__name:"GreySelectInputMultiple",props:{selected:{type:Array,default:()=>[]},options:{type:Array,default:()=>[]},readonly:{type:[Boolean,Number],default:!1},error:{type:String,default:""},sorted:{type:Boolean,default:!1},allowInput:{type:Boolean,default:!0},preventNew:{type:Boolean,default:!1}},emits:["update"],setup(e,{emit:t}){const n=e,r=t,i=l.ref([]),a=l.ref(""),o=l.computed(()=>n.sorted?n.options.sort((h,d)=>h.label.localeCompare(d.label)):n.options),s=l.computed(()=>a.value===""?o.value.slice(0,50):o.value.filter(h=>h.label.toLowerCase().includes(a.value.toLowerCase())).slice(0,50));l.watch(()=>n.selected,(h,d)=>{JSON.stringify(i.value)!==JSON.stringify(n.selected)&&f()}),f();function u(){n.preventNew||i.value.find(h=>h.value===a.value)||(i.value.push({label:a.value,value:a.value}),a.value="",A(i.value))}function c(h){i.value=i.value.filter(d=>d.value!==h.value),A(i.value)}function A(h){const d=h.map(m=>m.value);r("update",d)}function f(){const h=n.selected.map(d=>n.options.find(p=>p.value===d)||{label:d,value:d});i.value=h}return(h,d)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createVNode(l.unref(hm),{as:"div",modelValue:i.value,"onUpdate:modelValue":[d[5]||(d[5]=m=>i.value=m),A],multiple:"",class:l.normalizeClass(["input-block py-0 relative"])},{default:l.withCtx(()=>[l.createElementVNode("div",Dre,[l.createElementVNode("div",Ire,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(i.value,m=>(l.openBlock(),l.createElementBlock("div",Ure,[l.createElementVNode("div",Pre,l.toDisplayString(m.label),1),e.readonly?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("div",Hre,[l.createVNode(l.unref(Od),{class:"icon cursor-pointer hover:opacity-75",onClick:p=>c(m)},null,8,["onClick"])]))]))),256))]),e.allowInput?(l.openBlock(),l.createBlock(l.unref(Lv),{key:0,class:"z-1 pl-3 py-2 pr-10 w-full text-sm bg-transparent border-0 outline-none ring-0 focus:outline-none focus:ring-0",displayValue:()=>a.value,disabled:e.readonly,onInput:d[0]||(d[0]=m=>a.value=m.target.value),onChange:d[1]||(d[1]=m=>a.value=m.target.value),onKeyup:d[2]||(d[2]=l.withKeys(m=>u(),["enter"]))},null,8,["displayValue","disabled"])):l.createCommentVNode("",!0),e.allowInput?l.createCommentVNode("",!0):(l.openBlock(),l.createBlock(l.unref(Ev),{key:1,disabled:e.readonly,class:"absolute w-full inset-y-0 left-0 flex items-center pl-3"},{default:l.withCtx(()=>[i.value.length===0?(l.openBlock(),l.createElementBlock("span",Yre," Select Values ")):l.createCommentVNode("",!0)]),_:1},8,["disabled"])),l.createVNode(l.unref(Ev),{class:"input-icon focus:outline-hidden",disabled:e.readonly},{default:l.withCtx(()=>[l.createVNode(l.unref(Tw),{class:"icon-md icon-gray","aria-hidden":"true"})]),_:1},8,["disabled"])]),l.createVNode(l.unref(oA),{leave:"transition ease-in duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0",onAfterLeave:d[4]||(d[4]=m=>a.value="")},{default:l.withCtx(()=>[l.createVNode(l.unref(pm),{class:"input-block input-dropdown text-base sm:text-sm"},{default:l.withCtx(()=>[s.value.length===0&&a.value!==""?(l.openBlock(),l.createElementBlock("div",{key:0,class:"relative px-4 py-2 text-white",onClick:d[3]||(d[3]=m=>u())},l.toDisplayString(a.value),1)):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(s.value,m=>(l.openBlock(),l.createBlock(l.unref(sh),{as:"template",value:m},{default:l.withCtx(({selected:p,active:g})=>[l.createElementVNode("li",{class:l.normalizeClass([{"std-blue text-white":g},"input-dropdown-item pr-10"])},[l.createElementVNode("span",{class:l.normalizeClass(["input-dropdown-label",{"font-semibold":p,"font-normal":!p}])},l.toDisplayString(m.label),3),p?(l.openBlock(),l.createElementBlock("span",Rre,[l.createVNode(l.unref(R6),{class:"icon-md","aria-hidden":"true"})])):l.createCommentVNode("",!0)],2)]),_:2},1032,["value"]))),256))]),_:1})]),_:1})]),_:1},8,["modelValue"]),e.error?(l.openBlock(),l.createElementBlock("div",Qre,l.toDisplayString(e.error),1)):l.createCommentVNode("",!0)],64))}},jre={props:{size:{type:String,default:"md"}},computed:{iconSize(){return this.size==="xs"?"icon":this.size==="sm"?"icon-md":this.size==="md"?"icon-lg":this.size==="lg"?"icon-xl":"icon"}},methods:{onChange(){this.$emit("update:modelValue",!this.$attrs.modelValue)}}},Vre={class:"relative flex items-start pl-2"},zre={class:"flex h-6 items-center"},qre=["checked","disabled"];function Kre(e,t,n,r,i,a){return l.openBlock(),l.createElementBlock("div",Vre,[l.createElementVNode("div",zre,[l.createElementVNode("input",l.mergeProps({type:"checkbox",class:["rounded-sm cursor-pointer",a.iconSize,{"cursor-not-allowed!":e.$attrs.disabled}],checked:e.$attrs.modelValue},e.$attrs,{onChange:t[0]||(t[0]=(...o)=>a.onChange&&a.onChange(...o)),disabled:e.$attrs.disabled}),null,16,qre)])])}const tu=ar(jre,[["render",Kre]]),Gre={class:"col py-1"},Wre={class:"row text-xs font-medium"},Xre={key:0,class:"std-red-text"},Jre={class:"flex-row w-full"},zi=l.defineComponent({__name:"FormCol",props:{fieldName:{},required:{type:Boolean}},setup(e){return(t,n)=>(l.openBlock(),l.createElementBlock("div",Gre,[l.createElementVNode("div",Wre,[l.createTextVNode(l.toDisplayString(t.fieldName)+" ",1),t.required?(l.openBlock(),l.createElementBlock("span",Xre,"*")):l.createCommentVNode("",!0)]),l.createElementVNode("div",Jre,[l.renderSlot(t.$slots,"default")])]))}}),Zre={class:"flex items-center py-3"},$re={class:"w-20 sm:w-40 text-xs font-medium pr-4"},eie={key:0,class:"std-red-text"},tie={class:"w-32 sm:w-full"},Sr=l.defineComponent({__name:"FormRow",props:{fieldName:{},required:{type:Boolean}},setup(e){return(t,n)=>(l.openBlock(),l.createElementBlock("div",Zre,[l.createElementVNode("div",$re,[l.createTextVNode(l.toDisplayString(t.fieldName)+" ",1),t.required?(l.openBlock(),l.createElementBlock("span",eie,"*")):l.createCommentVNode("",!0)]),l.createElementVNode("div",tie,[l.renderSlot(t.$slots,"default")])]))}}),nie={},rie={class:"w-full h-0.5 bg-gray-300 my-2"};function iie(e,t){return l.openBlock(),l.createElementBlock("div",rie)}const Iw=ar(nie,[["render",iie]]),aie={class:"row justify-between items-center w-full"},oie={class:"text-base"},sie={class:"justify-end relative"},_m=l.defineComponent({__name:"FormSection",props:{sectionName:{}},setup(e){const t=e;return(n,r)=>(l.openBlock(),l.createElementBlock("div",null,[l.createElementVNode("div",aie,[l.createElementVNode("div",oie,l.toDisplayString(t.sectionName),1),l.createElementVNode("div",sie,[l.renderSlot(n.$slots,"section-right")])]),l.createVNode(Iw),l.renderSlot(n.$slots,"default")]))}}),lie={},uie={class:"rounded-lg shadow-lg my-2 std-white dark:dark-bg"},cie={class:"px-6 py-4"};function Aie(e,t){return l.openBlock(),l.createElementBlock("div",uie,[l.createElementVNode("div",cie,[l.renderSlot(e.$slots,"default")])])}const bm=ar(lie,[["render",Aie]]);var ni=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function uh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var wm={exports:{}},die=wm.exports,K6;function fie(){return K6||(K6=1,function(e,t){(function(n,r){e.exports=r()})(die,function(){function n(M,S){var O=Object.keys(M);if(Object.getOwnPropertySymbols){var Y=Object.getOwnPropertySymbols(M);S&&(Y=Y.filter(function(V){return Object.getOwnPropertyDescriptor(M,V).enumerable})),O.push.apply(O,Y)}return O}function r(M){for(var S=1;S<arguments.length;S++){var O=arguments[S]!=null?arguments[S]:{};S%2?n(Object(O),!0).forEach(function(Y){u(M,Y,O[Y])}):Object.getOwnPropertyDescriptors?Object.defineProperties(M,Object.getOwnPropertyDescriptors(O)):n(Object(O)).forEach(function(Y){Object.defineProperty(M,Y,Object.getOwnPropertyDescriptor(O,Y))})}return M}function i(M){return i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(S){return typeof S}:function(S){return S&&typeof Symbol=="function"&&S.constructor===Symbol&&S!==Symbol.prototype?"symbol":typeof S},i(M)}function a(M,S){if(!(M instanceof S))throw new TypeError("Cannot call a class as a function")}function o(M,S){for(var O=0;O<S.length;O++){var Y=S[O];Y.enumerable=Y.enumerable||!1,Y.configurable=!0,"value"in Y&&(Y.writable=!0),Object.defineProperty(M,p(Y.key),Y)}}function s(M,S,O){return S&&o(M.prototype,S),Object.defineProperty(M,"prototype",{writable:!1}),M}function u(M,S,O){return(S=p(S))in M?Object.defineProperty(M,S,{value:O,enumerable:!0,configurable:!0,writable:!0}):M[S]=O,M}function c(M,S){if(typeof S!="function"&&S!==null)throw new TypeError("Super expression must either be null or a function");M.prototype=Object.create(S&&S.prototype,{constructor:{value:M,writable:!0,configurable:!0}}),Object.defineProperty(M,"prototype",{writable:!1}),S&&f(M,S)}function A(M){return A=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(S){return S.__proto__||Object.getPrototypeOf(S)},A(M)}function f(M,S){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(O,Y){return O.__proto__=Y,O},f(M,S)}function h(M){if(M===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return M}function d(M){var S=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var O,Y=A(M);if(S){var V=A(this).constructor;O=Reflect.construct(Y,arguments,V)}else O=Y.apply(this,arguments);return function(re,le){if(le&&(typeof le=="object"||typeof le=="function"))return le;if(le!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return h(re)}(this,O)}}function m(){return m=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(M,S,O){var Y=function(re,le){for(;!Object.prototype.hasOwnProperty.call(re,le)&&(re=A(re))!==null;);return re}(M,S);if(Y){var V=Object.getOwnPropertyDescriptor(Y,S);return V.get?V.get.call(arguments.length<3?M:O):V.value}},m.apply(this,arguments)}function p(M){var S=function(O,Y){if(typeof O!="object"||O===null)return O;var V=O[Symbol.toPrimitive];if(V!==void 0){var re=V.call(O,Y);if(typeof re!="object")return re;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(O)}(M,"string");return typeof S=="symbol"?S:S+""}var g=function(M){return!(!M||!M.Window)&&M instanceof M.Window},v=void 0,y=void 0;function _(M){v=M;var S=M.document.createTextNode("");S.ownerDocument!==M.document&&typeof M.wrap=="function"&&M.wrap(S)===S&&(M=M.wrap(M)),y=M}function b(M){return g(M)?M:(M.ownerDocument||M).defaultView||y.window}typeof window<"u"&&window&&_(window);var w=function(M){return!!M&&i(M)==="object"},C=function(M){return typeof M=="function"},B={window:function(M){return M===y||g(M)},docFrag:function(M){return w(M)&&M.nodeType===11},object:w,func:C,number:function(M){return typeof M=="number"},bool:function(M){return typeof M=="boolean"},string:function(M){return typeof M=="string"},element:function(M){if(!M||i(M)!=="object")return!1;var S=b(M)||y;return/object|function/.test(typeof Element>"u"?"undefined":i(Element))?M instanceof Element||M instanceof S.Element:M.nodeType===1&&typeof M.nodeName=="string"},plainObject:function(M){return w(M)&&!!M.constructor&&/function Object\b/.test(M.constructor.toString())},array:function(M){return w(M)&&M.length!==void 0&&C(M.splice)}};function E(M){var S=M.interaction;if(S.prepared.name==="drag"){var O=S.prepared.axis;O==="x"?(S.coords.cur.page.y=S.coords.start.page.y,S.coords.cur.client.y=S.coords.start.client.y,S.coords.velocity.client.y=0,S.coords.velocity.page.y=0):O==="y"&&(S.coords.cur.page.x=S.coords.start.page.x,S.coords.cur.client.x=S.coords.start.client.x,S.coords.velocity.client.x=0,S.coords.velocity.page.x=0)}}function N(M){var S=M.iEvent,O=M.interaction;if(O.prepared.name==="drag"){var Y=O.prepared.axis;if(Y==="x"||Y==="y"){var V=Y==="x"?"y":"x";S.page[V]=O.coords.start.page[V],S.client[V]=O.coords.start.client[V],S.delta[V]=0}}}var P={id:"actions/drag",install:function(M){var S=M.actions,O=M.Interactable,Y=M.defaults;O.prototype.draggable=P.draggable,S.map.drag=P,S.methodDict.drag="draggable",Y.actions.drag=P.defaults},listeners:{"interactions:before-action-move":E,"interactions:action-resume":E,"interactions:action-move":N,"auto-start:check":function(M){var S=M.interaction,O=M.interactable,Y=M.buttons,V=O.options.drag;if(V&&V.enabled&&(!S.pointerIsDown||!/mouse|pointer/.test(S.pointerType)||(Y&O.options.drag.mouseButtons)!=0))return M.action={name:"drag",axis:V.lockAxis==="start"?V.startAxis:V.lockAxis},!1}},draggable:function(M){return B.object(M)?(this.options.drag.enabled=M.enabled!==!1,this.setPerAction("drag",M),this.setOnEvents("drag",M),/^(xy|x|y|start)$/.test(M.lockAxis)&&(this.options.drag.lockAxis=M.lockAxis),/^(xy|x|y)$/.test(M.startAxis)&&(this.options.drag.startAxis=M.startAxis),this):B.bool(M)?(this.options.drag.enabled=M,this):this.options.drag},beforeMove:E,move:N,defaults:{startAxis:"xy",lockAxis:"xy"},getCursor:function(){return"move"},filterEventType:function(M){return M.search("drag")===0}},k=P,F={init:function(M){var S=M;F.document=S.document,F.DocumentFragment=S.DocumentFragment||D,F.SVGElement=S.SVGElement||D,F.SVGSVGElement=S.SVGSVGElement||D,F.SVGElementInstance=S.SVGElementInstance||D,F.Element=S.Element||D,F.HTMLElement=S.HTMLElement||F.Element,F.Event=S.Event,F.Touch=S.Touch||D,F.PointerEvent=S.PointerEvent||S.MSPointerEvent},document:null,DocumentFragment:null,SVGElement:null,SVGSVGElement:null,SVGElementInstance:null,Element:null,HTMLElement:null,Event:null,Touch:null,PointerEvent:null};function D(){}var L=F,H={init:function(M){var S=L.Element,O=M.navigator||{};H.supportsTouch="ontouchstart"in M||B.func(M.DocumentTouch)&&L.document instanceof M.DocumentTouch,H.supportsPointerEvent=O.pointerEnabled!==!1&&!!L.PointerEvent,H.isIOS=/iP(hone|od|ad)/.test(O.platform),H.isIOS7=/iP(hone|od|ad)/.test(O.platform)&&/OS 7[^\d]/.test(O.appVersion),H.isIe9=/MSIE 9/.test(O.userAgent),H.isOperaMobile=O.appName==="Opera"&&H.supportsTouch&&/Presto/.test(O.userAgent),H.prefixedMatchesSelector="matches"in S.prototype?"matches":"webkitMatchesSelector"in S.prototype?"webkitMatchesSelector":"mozMatchesSelector"in S.prototype?"mozMatchesSelector":"oMatchesSelector"in S.prototype?"oMatchesSelector":"msMatchesSelector",H.pEventTypes=H.supportsPointerEvent?L.PointerEvent===M.MSPointerEvent?{up:"MSPointerUp",down:"MSPointerDown",over:"mouseover",out:"mouseout",move:"MSPointerMove",cancel:"MSPointerCancel"}:{up:"pointerup",down:"pointerdown",over:"pointerover",out:"pointerout",move:"pointermove",cancel:"pointercancel"}:null,H.wheelEvent=L.document&&"onmousewheel"in L.document?"mousewheel":"wheel"},supportsTouch:null,supportsPointerEvent:null,isIOS7:null,isIOS:null,isIe9:null,isOperaMobile:null,prefixedMatchesSelector:null,pEventTypes:null,wheelEvent:null},K=H;function q(M,S){if(M.contains)return M.contains(S);for(;S;){if(S===M)return!0;S=S.parentNode}return!1}function z(M,S){for(;B.element(M);){if(ie(M,S))return M;M=J(M)}return null}function J(M){var S=M.parentNode;if(B.docFrag(S)){for(;(S=S.host)&&B.docFrag(S););return S}return S}function ie(M,S){return y!==v&&(S=S.replace(/\/deep\//g," ")),M[K.prefixedMatchesSelector](S)}var X=function(M){return M.parentNode||M.host};function I(M,S){for(var O,Y=[],V=M;(O=X(V))&&V!==S&&O!==V.ownerDocument;)Y.unshift(V),V=O;return Y}function W(M,S,O){for(;B.element(M);){if(ie(M,S))return!0;if((M=J(M))===O)return ie(M,S)}return!1}function ee(M){return M.correspondingUseElement||M}function ne(M){var S=M instanceof L.SVGElement?M.getBoundingClientRect():M.getClientRects()[0];return S&&{left:S.left,right:S.right,top:S.top,bottom:S.bottom,width:S.width||S.right-S.left,height:S.height||S.bottom-S.top}}function pe(M){var S,O=ne(M);if(!K.isIOS7&&O){var Y={x:(S=(S=b(M))||y).scrollX||S.document.documentElement.scrollLeft,y:S.scrollY||S.document.documentElement.scrollTop};O.left+=Y.x,O.right+=Y.x,O.top+=Y.y,O.bottom+=Y.y}return O}function he(M){for(var S=[];M;)S.push(M),M=J(M);return S}function ve(M){return!!B.string(M)&&(L.document.querySelector(M),!0)}function ue(M,S){for(var O in S)M[O]=S[O];return M}function _e(M,S,O){return M==="parent"?J(O):M==="self"?S.getRect(O):z(O,M)}function Le(M,S,O,Y){var V=M;return B.string(V)?V=_e(V,S,O):B.func(V)&&(V=V.apply(void 0,Y)),B.element(V)&&(V=pe(V)),V}function Me(M){return M&&{x:"x"in M?M.x:M.left,y:"y"in M?M.y:M.top}}function Pe(M){return!M||"x"in M&&"y"in M||((M=ue({},M)).x=M.left||0,M.y=M.top||0,M.width=M.width||(M.right||0)-M.x,M.height=M.height||(M.bottom||0)-M.y),M}function Q(M,S,O){M.left&&(S.left+=O.x),M.right&&(S.right+=O.x),M.top&&(S.top+=O.y),M.bottom&&(S.bottom+=O.y),S.width=S.right-S.left,S.height=S.bottom-S.top}function te(M,S,O){var Y=O&&M.options[O];return Me(Le(Y&&Y.origin||M.options.origin,M,S,[M&&S]))||{x:0,y:0}}function ce(M,S){var O=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(be){return!0},Y=arguments.length>3?arguments[3]:void 0;if(Y=Y||{},B.string(M)&&M.search(" ")!==-1&&(M=$(M)),B.array(M))return M.forEach(function(be){return ce(be,S,O,Y)}),Y;if(B.object(M)&&(S=M,M=""),B.func(S)&&O(M))Y[M]=Y[M]||[],Y[M].push(S);else if(B.array(S))for(var V=0,re=S;V<re.length;V++){var le=re[V];ce(M,le,O,Y)}else if(B.object(S))for(var fe in S)ce($(fe).map(function(be){return"".concat(M).concat(be)}),S[fe],O,Y);return Y}function $(M){return M.trim().split(/ +/)}var Z=function(M,S){return Math.sqrt(M*M+S*S)},ae=["webkit","moz"];function Be(M,S){M.__set||(M.__set={});var O=function(V){if(ae.some(function(re){return V.indexOf(re)===0}))return 1;typeof M[V]!="function"&&V!=="__set"&&Object.defineProperty(M,V,{get:function(){return V in M.__set?M.__set[V]:M.__set[V]=S[V]},set:function(re){M.__set[V]=re},configurable:!0})};for(var Y in S)O(Y);return M}function Ee(M,S){M.page=M.page||{},M.page.x=S.page.x,M.page.y=S.page.y,M.client=M.client||{},M.client.x=S.client.x,M.client.y=S.client.y,M.timeStamp=S.timeStamp}function Se(M){M.page.x=0,M.page.y=0,M.client.x=0,M.client.y=0}function Ye(M){return M instanceof L.Event||M instanceof L.Touch}function Te(M,S,O){return M=M||"page",(O=O||{}).x=S[M+"X"],O.y=S[M+"Y"],O}function Ie(M,S){return S=S||{x:0,y:0},K.isOperaMobile&&Ye(M)?(Te("screen",M,S),S.x+=window.scrollX,S.y+=window.scrollY):Te("page",M,S),S}function Ge(M){return B.number(M.pointerId)?M.pointerId:M.identifier}function at(M,S,O){var Y=S.length>1?pt(S):S[0];Ie(Y,M.page),function(V,re){re=re||{},K.isOperaMobile&&Ye(V)?Te("screen",V,re):Te("client",V,re)}(Y,M.client),M.timeStamp=O}function tt(M){var S=[];return B.array(M)?(S[0]=M[0],S[1]=M[1]):M.type==="touchend"?M.touches.length===1?(S[0]=M.touches[0],S[1]=M.changedTouches[0]):M.touches.length===0&&(S[0]=M.changedTouches[0],S[1]=M.changedTouches[1]):(S[0]=M.touches[0],S[1]=M.touches[1]),S}function pt(M){for(var S={pageX:0,pageY:0,clientX:0,clientY:0,screenX:0,screenY:0},O=0;O<M.length;O++){var Y=M[O];for(var V in S)S[V]+=Y[V]}for(var re in S)S[re]/=M.length;return S}function _t(M){if(!M.length)return null;var S=tt(M),O=Math.min(S[0].pageX,S[1].pageX),Y=Math.min(S[0].pageY,S[1].pageY),V=Math.max(S[0].pageX,S[1].pageX),re=Math.max(S[0].pageY,S[1].pageY);return{x:O,y:Y,left:O,top:Y,right:V,bottom:re,width:V-O,height:re-Y}}function vt(M,S){var O=S+"X",Y=S+"Y",V=tt(M),re=V[0][O]-V[1][O],le=V[0][Y]-V[1][Y];return Z(re,le)}function sn(M,S){var O=S+"X",Y=S+"Y",V=tt(M),re=V[1][O]-V[0][O],le=V[1][Y]-V[0][Y];return 180*Math.atan2(le,re)/Math.PI}function xt(M){return B.string(M.pointerType)?M.pointerType:B.number(M.pointerType)?[void 0,void 0,"touch","pen","mouse"][M.pointerType]:/touch/.test(M.type||"")||M instanceof L.Touch?"touch":"mouse"}function kt(M){var S=B.func(M.composedPath)?M.composedPath():M.path;return[ee(S?S[0]:M.target),ee(M.currentTarget)]}var bt=function(){function M(S){a(this,M),this.immediatePropagationStopped=!1,this.propagationStopped=!1,this._interaction=S}return s(M,[{key:"preventDefault",value:function(){}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}}]),M}();Object.defineProperty(bt.prototype,"interaction",{get:function(){return this._interaction._proxy},set:function(){}});var an=function(M,S){for(var O=0;O<S.length;O++){var Y=S[O];M.push(Y)}return M},Mt=function(M){return an([],M)},cn=function(M,S){for(var O=0;O<M.length;O++)if(S(M[O],O,M))return O;return-1},Ct=function(M,S){return M[cn(M,S)]},Ut=function(M){c(O,M);var S=d(O);function O(Y,V,re){var le;a(this,O),(le=S.call(this,V._interaction)).dropzone=void 0,le.dragEvent=void 0,le.relatedTarget=void 0,le.draggable=void 0,le.propagationStopped=!1,le.immediatePropagationStopped=!1;var fe=re==="dragleave"?Y.prev:Y.cur,be=fe.element,Fe=fe.dropzone;return le.type=re,le.target=be,le.currentTarget=be,le.dropzone=Fe,le.dragEvent=V,le.relatedTarget=V.target,le.draggable=V.interactable,le.timeStamp=V.timeStamp,le}return s(O,[{key:"reject",value:function(){var Y=this,V=this._interaction.dropState;if(this.type==="dropactivate"||this.dropzone&&V.cur.dropzone===this.dropzone&&V.cur.element===this.target)if(V.prev.dropzone=this.dropzone,V.prev.element=this.target,V.rejected=!0,V.events.enter=null,this.stopImmediatePropagation(),this.type==="dropactivate"){var re=V.activeDrops,le=cn(re,function(be){var Fe=be.dropzone,ke=be.element;return Fe===Y.dropzone&&ke===Y.target});V.activeDrops.splice(le,1);var fe=new O(V,this.dragEvent,"dropdeactivate");fe.dropzone=this.dropzone,fe.target=this.target,this.dropzone.fire(fe)}else this.dropzone.fire(new O(V,this.dragEvent,"dragleave"))}},{key:"preventDefault",value:function(){}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}}]),O}(bt);function yn(M,S){for(var O=0,Y=M.slice();O<Y.length;O++){var V=Y[O],re=V.dropzone,le=V.element;S.dropzone=re,S.target=le,re.fire(S),S.propagationStopped=S.immediatePropagationStopped=!1}}function Lt(M,S){for(var O=function(re,le){for(var fe=[],be=0,Fe=re.interactables.list;be<Fe.length;be++){var ke=Fe[be];if(ke.options.drop.enabled){var Re=ke.options.drop.accept;if(!(B.element(Re)&&Re!==le||B.string(Re)&&!ie(le,Re)||B.func(Re)&&!Re({dropzone:ke,draggableElement:le})))for(var We=0,At=ke.getAllElements();We<At.length;We++){var lt=At[We];lt!==le&&fe.push({dropzone:ke,element:lt,rect:ke.getRect(lt)})}}}return fe}(M,S),Y=0;Y<O.length;Y++){var V=O[Y];V.rect=V.dropzone.getRect(V.element)}return O}function Dt(M,S,O){for(var Y=M.dropState,V=M.interactable,re=M.element,le=[],fe=0,be=Y.activeDrops;fe<be.length;fe++){var Fe=be[fe],ke=Fe.dropzone,Re=Fe.element,We=Fe.rect,At=ke.dropCheck(S,O,V,re,Re,We);le.push(At?Re:null)}var lt=function(ht){for(var St,wt,Vt,An=[],dn=0;dn<ht.length;dn++){var $t=ht[dn],Ft=ht[St];if($t&&dn!==St)if(Ft){var Sn=X($t),vn=X(Ft);if(Sn!==$t.ownerDocument)if(vn!==$t.ownerDocument)if(Sn!==vn){An=An.length?An:I(Ft);var rr=void 0;if(Ft instanceof L.HTMLElement&&$t instanceof L.SVGElement&&!($t instanceof L.SVGSVGElement)){if($t===vn)continue;rr=$t.ownerSVGElement}else rr=$t;for(var Di=I(rr,Ft.ownerDocument),wo=0;Di[wo]&&Di[wo]===An[wo];)wo++;var Xl=[Di[wo-1],Di[wo],An[wo]];if(Xl[0])for(var Qu=Xl[0].lastChild;Qu;){if(Qu===Xl[1]){St=dn,An=Di;break}if(Qu===Xl[2])break;Qu=Qu.previousSibling}}else Vt=Ft,(parseInt(b(wt=$t).getComputedStyle(wt).zIndex,10)||0)>=(parseInt(b(Vt).getComputedStyle(Vt).zIndex,10)||0)&&(St=dn);else St=dn}else St=dn}return St}(le);return Y.activeDrops[lt]||null}function wn(M,S,O){var Y=M.dropState,V={enter:null,leave:null,activate:null,deactivate:null,move:null,drop:null};return O.type==="dragstart"&&(V.activate=new Ut(Y,O,"dropactivate"),V.activate.target=null,V.activate.dropzone=null),O.type==="dragend"&&(V.deactivate=new Ut(Y,O,"dropdeactivate"),V.deactivate.target=null,V.deactivate.dropzone=null),Y.rejected||(Y.cur.element!==Y.prev.element&&(Y.prev.dropzone&&(V.leave=new Ut(Y,O,"dragleave"),O.dragLeave=V.leave.target=Y.prev.element,O.prevDropzone=V.leave.dropzone=Y.prev.dropzone),Y.cur.dropzone&&(V.enter=new Ut(Y,O,"dragenter"),O.dragEnter=Y.cur.element,O.dropzone=Y.cur.dropzone)),O.type==="dragend"&&Y.cur.dropzone&&(V.drop=new Ut(Y,O,"drop"),O.dropzone=Y.cur.dropzone,O.relatedTarget=Y.cur.element),O.type==="dragmove"&&Y.cur.dropzone&&(V.move=new Ut(Y,O,"dropmove"),O.dropzone=Y.cur.dropzone)),V}function Xi(M,S){var O=M.dropState,Y=O.activeDrops,V=O.cur,re=O.prev;S.leave&&re.dropzone.fire(S.leave),S.enter&&V.dropzone.fire(S.enter),S.move&&V.dropzone.fire(S.move),S.drop&&V.dropzone.fire(S.drop),S.deactivate&&yn(Y,S.deactivate),O.prev.dropzone=V.dropzone,O.prev.element=V.element}function _n(M,S){var O=M.interaction,Y=M.iEvent,V=M.event;if(Y.type==="dragmove"||Y.type==="dragend"){var re=O.dropState;S.dynamicDrop&&(re.activeDrops=Lt(S,O.element));var le=Y,fe=Dt(O,le,V);re.rejected=re.rejected&&!!fe&&fe.dropzone===re.cur.dropzone&&fe.element===re.cur.element,re.cur.dropzone=fe&&fe.dropzone,re.cur.element=fe&&fe.element,re.events=wn(O,0,le)}}var Kr={id:"actions/drop",install:function(M){var S=M.actions,O=M.interactStatic,Y=M.Interactable,V=M.defaults;M.usePlugin(k),Y.prototype.dropzone=function(re){return function(le,fe){if(B.object(fe)){if(le.options.drop.enabled=fe.enabled!==!1,fe.listeners){var be=ce(fe.listeners),Fe=Object.keys(be).reduce(function(Re,We){return Re[/^(enter|leave)/.test(We)?"drag".concat(We):/^(activate|deactivate|move)/.test(We)?"drop".concat(We):We]=be[We],Re},{}),ke=le.options.drop.listeners;ke&&le.off(ke),le.on(Fe),le.options.drop.listeners=Fe}return B.func(fe.ondrop)&&le.on("drop",fe.ondrop),B.func(fe.ondropactivate)&&le.on("dropactivate",fe.ondropactivate),B.func(fe.ondropdeactivate)&&le.on("dropdeactivate",fe.ondropdeactivate),B.func(fe.ondragenter)&&le.on("dragenter",fe.ondragenter),B.func(fe.ondragleave)&&le.on("dragleave",fe.ondragleave),B.func(fe.ondropmove)&&le.on("dropmove",fe.ondropmove),/^(pointer|center)$/.test(fe.overlap)?le.options.drop.overlap=fe.overlap:B.number(fe.overlap)&&(le.options.drop.overlap=Math.max(Math.min(1,fe.overlap),0)),"accept"in fe&&(le.options.drop.accept=fe.accept),"checker"in fe&&(le.options.drop.checker=fe.checker),le}return B.bool(fe)?(le.options.drop.enabled=fe,le):le.options.drop}(this,re)},Y.prototype.dropCheck=function(re,le,fe,be,Fe,ke){return function(Re,We,At,lt,ht,St,wt){var Vt=!1;if(!(wt=wt||Re.getRect(St)))return!!Re.options.drop.checker&&Re.options.drop.checker(We,At,Vt,Re,St,lt,ht);var An=Re.options.drop.overlap;if(An==="pointer"){var dn=te(lt,ht,"drag"),$t=Ie(We);$t.x+=dn.x,$t.y+=dn.y;var Ft=$t.x>wt.left&&$t.x<wt.right,Sn=$t.y>wt.top&&$t.y<wt.bottom;Vt=Ft&&Sn}var vn=lt.getRect(ht);if(vn&&An==="center"){var rr=vn.left+vn.width/2,Di=vn.top+vn.height/2;Vt=rr>=wt.left&&rr<=wt.right&&Di>=wt.top&&Di<=wt.bottom}return vn&&B.number(An)&&(Vt=Math.max(0,Math.min(wt.right,vn.right)-Math.max(wt.left,vn.left))*Math.max(0,Math.min(wt.bottom,vn.bottom)-Math.max(wt.top,vn.top))/(vn.width*vn.height)>=An),Re.options.drop.checker&&(Vt=Re.options.drop.checker(We,At,Vt,Re,St,lt,ht)),Vt}(this,re,le,fe,be,Fe,ke)},O.dynamicDrop=function(re){return B.bool(re)?(M.dynamicDrop=re,O):M.dynamicDrop},ue(S.phaselessTypes,{dragenter:!0,dragleave:!0,dropactivate:!0,dropdeactivate:!0,dropmove:!0,drop:!0}),S.methodDict.drop="dropzone",M.dynamicDrop=!1,V.actions.drop=Kr.defaults},listeners:{"interactions:before-action-start":function(M){var S=M.interaction;S.prepared.name==="drag"&&(S.dropState={cur:{dropzone:null,element:null},prev:{dropzone:null,element:null},rejected:null,events:null,activeDrops:[]})},"interactions:after-action-start":function(M,S){var O=M.interaction,Y=(M.event,M.iEvent);if(O.prepared.name==="drag"){var V=O.dropState;V.activeDrops=[],V.events={},V.activeDrops=Lt(S,O.element),V.events=wn(O,0,Y),V.events.activate&&(yn(V.activeDrops,V.events.activate),S.fire("actions/drop:start",{interaction:O,dragEvent:Y}))}},"interactions:action-move":_n,"interactions:after-action-move":function(M,S){var O=M.interaction,Y=M.iEvent;if(O.prepared.name==="drag"){var V=O.dropState;Xi(O,V.events),S.fire("actions/drop:move",{interaction:O,dragEvent:Y}),V.events={}}},"interactions:action-end":function(M,S){if(M.interaction.prepared.name==="drag"){var O=M.interaction,Y=M.iEvent;_n(M,S),Xi(O,O.dropState.events),S.fire("actions/drop:end",{interaction:O,dragEvent:Y})}},"interactions:stop":function(M){var S=M.interaction;if(S.prepared.name==="drag"){var O=S.dropState;O&&(O.activeDrops=null,O.events=null,O.cur.dropzone=null,O.cur.element=null,O.prev.dropzone=null,O.prev.element=null,O.rejected=!1)}}},getActiveDrops:Lt,getDrop:Dt,getDropEvents:wn,fireDropEvents:Xi,filterEventType:function(M){return M.search("drag")===0||M.search("drop")===0},defaults:{enabled:!1,accept:null,overlap:"pointer"}},oi=Kr;function Gt(M){var S=M.interaction,O=M.iEvent,Y=M.phase;if(S.prepared.name==="gesture"){var V=S.pointers.map(function(Fe){return Fe.pointer}),re=Y==="start",le=Y==="end",fe=S.interactable.options.deltaSource;if(O.touches=[V[0],V[1]],re)O.distance=vt(V,fe),O.box=_t(V),O.scale=1,O.ds=0,O.angle=sn(V,fe),O.da=0,S.gesture.startDistance=O.distance,S.gesture.startAngle=O.angle;else if(le||S.pointers.length<2){var be=S.prevEvent;O.distance=be.distance,O.box=be.box,O.scale=be.scale,O.ds=0,O.angle=be.angle,O.da=0}else O.distance=vt(V,fe),O.box=_t(V),O.scale=O.distance/S.gesture.startDistance,O.angle=sn(V,fe),O.ds=O.scale-S.gesture.scale,O.da=O.angle-S.gesture.angle;S.gesture.distance=O.distance,S.gesture.angle=O.angle,B.number(O.scale)&&O.scale!==1/0&&!isNaN(O.scale)&&(S.gesture.scale=O.scale)}}var Fr={id:"actions/gesture",before:["actions/drag","actions/resize"],install:function(M){var S=M.actions,O=M.Interactable,Y=M.defaults;O.prototype.gesturable=function(V){return B.object(V)?(this.options.gesture.enabled=V.enabled!==!1,this.setPerAction("gesture",V),this.setOnEvents("gesture",V),this):B.bool(V)?(this.options.gesture.enabled=V,this):this.options.gesture},S.map.gesture=Fr,S.methodDict.gesture="gesturable",Y.actions.gesture=Fr.defaults},listeners:{"interactions:action-start":Gt,"interactions:action-move":Gt,"interactions:action-end":Gt,"interactions:new":function(M){M.interaction.gesture={angle:0,distance:0,scale:1,startAngle:0,startDistance:0}},"auto-start:check":function(M){if(!(M.interaction.pointers.length<2)){var S=M.interactable.options.gesture;if(S&&S.enabled)return M.action={name:"gesture"},!1}}},defaults:{},getCursor:function(){return""},filterEventType:function(M){return M.search("gesture")===0}},fa=Fr;function Ei(M,S,O,Y,V,re,le){if(!S)return!1;if(S===!0){var fe=B.number(re.width)?re.width:re.right-re.left,be=B.number(re.height)?re.height:re.bottom-re.top;if(le=Math.min(le,Math.abs((M==="left"||M==="right"?fe:be)/2)),fe<0&&(M==="left"?M="right":M==="right"&&(M="left")),be<0&&(M==="top"?M="bottom":M==="bottom"&&(M="top")),M==="left"){var Fe=fe>=0?re.left:re.right;return O.x<Fe+le}if(M==="top"){var ke=be>=0?re.top:re.bottom;return O.y<ke+le}if(M==="right")return O.x>(fe>=0?re.right:re.left)-le;if(M==="bottom")return O.y>(be>=0?re.bottom:re.top)-le}return!!B.element(Y)&&(B.element(S)?S===Y:W(Y,S,V))}function Li(M){var S=M.iEvent,O=M.interaction;if(O.prepared.name==="resize"&&O.resizeAxes){var Y=S;O.interactable.options.resize.square?(O.resizeAxes==="y"?Y.delta.x=Y.delta.y:Y.delta.y=Y.delta.x,Y.axes="xy"):(Y.axes=O.resizeAxes,O.resizeAxes==="x"?Y.delta.y=0:O.resizeAxes==="y"&&(Y.delta.x=0))}}var fn,Hn,hn={id:"actions/resize",before:["actions/drag"],install:function(M){var S=M.actions,O=M.browser,Y=M.Interactable,V=M.defaults;hn.cursors=function(re){return re.isIe9?{x:"e-resize",y:"s-resize",xy:"se-resize",top:"n-resize",left:"w-resize",bottom:"s-resize",right:"e-resize",topleft:"se-resize",bottomright:"se-resize",topright:"ne-resize",bottomleft:"ne-resize"}:{x:"ew-resize",y:"ns-resize",xy:"nwse-resize",top:"ns-resize",left:"ew-resize",bottom:"ns-resize",right:"ew-resize",topleft:"nwse-resize",bottomright:"nwse-resize",topright:"nesw-resize",bottomleft:"nesw-resize"}}(O),hn.defaultMargin=O.supportsTouch||O.supportsPointerEvent?20:10,Y.prototype.resizable=function(re){return function(le,fe,be){return B.object(fe)?(le.options.resize.enabled=fe.enabled!==!1,le.setPerAction("resize",fe),le.setOnEvents("resize",fe),B.string(fe.axis)&&/^x$|^y$|^xy$/.test(fe.axis)?le.options.resize.axis=fe.axis:fe.axis===null&&(le.options.resize.axis=be.defaults.actions.resize.axis),B.bool(fe.preserveAspectRatio)?le.options.resize.preserveAspectRatio=fe.preserveAspectRatio:B.bool(fe.square)&&(le.options.resize.square=fe.square),le):B.bool(fe)?(le.options.resize.enabled=fe,le):le.options.resize}(this,re,M)},S.map.resize=hn,S.methodDict.resize="resizable",V.actions.resize=hn.defaults},listeners:{"interactions:new":function(M){M.interaction.resizeAxes="xy"},"interactions:action-start":function(M){(function(S){var O=S.iEvent,Y=S.interaction;if(Y.prepared.name==="resize"&&Y.prepared.edges){var V=O,re=Y.rect;Y._rects={start:ue({},re),corrected:ue({},re),previous:ue({},re),delta:{left:0,right:0,width:0,top:0,bottom:0,height:0}},V.edges=Y.prepared.edges,V.rect=Y._rects.corrected,V.deltaRect=Y._rects.delta}})(M),Li(M)},"interactions:action-move":function(M){(function(S){var O=S.iEvent,Y=S.interaction;if(Y.prepared.name==="resize"&&Y.prepared.edges){var V=O,re=Y.interactable.options.resize.invert,le=re==="reposition"||re==="negate",fe=Y.rect,be=Y._rects,Fe=be.start,ke=be.corrected,Re=be.delta,We=be.previous;if(ue(We,ke),le){if(ue(ke,fe),re==="reposition"){if(ke.top>ke.bottom){var At=ke.top;ke.top=ke.bottom,ke.bottom=At}if(ke.left>ke.right){var lt=ke.left;ke.left=ke.right,ke.right=lt}}}else ke.top=Math.min(fe.top,Fe.bottom),ke.bottom=Math.max(fe.bottom,Fe.top),ke.left=Math.min(fe.left,Fe.right),ke.right=Math.max(fe.right,Fe.left);for(var ht in ke.width=ke.right-ke.left,ke.height=ke.bottom-ke.top,ke)Re[ht]=ke[ht]-We[ht];V.edges=Y.prepared.edges,V.rect=ke,V.deltaRect=Re}})(M),Li(M)},"interactions:action-end":function(M){var S=M.iEvent,O=M.interaction;if(O.prepared.name==="resize"&&O.prepared.edges){var Y=S;Y.edges=O.prepared.edges,Y.rect=O._rects.corrected,Y.deltaRect=O._rects.delta}},"auto-start:check":function(M){var S=M.interaction,O=M.interactable,Y=M.element,V=M.rect,re=M.buttons;if(V){var le=ue({},S.coords.cur.page),fe=O.options.resize;if(fe&&fe.enabled&&(!S.pointerIsDown||!/mouse|pointer/.test(S.pointerType)||(re&fe.mouseButtons)!=0)){if(B.object(fe.edges)){var be={left:!1,right:!1,top:!1,bottom:!1};for(var Fe in be)be[Fe]=Ei(Fe,fe.edges[Fe],le,S._latestPointer.eventTarget,Y,V,fe.margin||hn.defaultMargin);be.left=be.left&&!be.right,be.top=be.top&&!be.bottom,(be.left||be.right||be.top||be.bottom)&&(M.action={name:"resize",edges:be})}else{var ke=fe.axis!=="y"&&le.x>V.right-hn.defaultMargin,Re=fe.axis!=="x"&&le.y>V.bottom-hn.defaultMargin;(ke||Re)&&(M.action={name:"resize",axes:(ke?"x":"")+(Re?"y":"")})}return!M.action&&void 0}}}},defaults:{square:!1,preserveAspectRatio:!1,axis:"xy",margin:NaN,edges:null,invert:"none"},cursors:null,getCursor:function(M){var S=M.edges,O=M.axis,Y=M.name,V=hn.cursors,re=null;if(O)re=V[Y+O];else if(S){for(var le="",fe=0,be=["top","bottom","left","right"];fe<be.length;fe++){var Fe=be[fe];S[Fe]&&(le+=Fe)}re=V[le]}return re},filterEventType:function(M){return M.search("resize")===0},defaultMargin:null},to=hn,ha={id:"actions",install:function(M){M.usePlugin(fa),M.usePlugin(to),M.usePlugin(k),M.usePlugin(oi)}},Ti=0,nr={request:function(M){return fn(M)},cancel:function(M){return Hn(M)},init:function(M){if(fn=M.requestAnimationFrame,Hn=M.cancelAnimationFrame,!fn)for(var S=["ms","moz","webkit","o"],O=0;O<S.length;O++){var Y=S[O];fn=M["".concat(Y,"RequestAnimationFrame")],Hn=M["".concat(Y,"CancelAnimationFrame")]||M["".concat(Y,"CancelRequestAnimationFrame")]}fn=fn&&fn.bind(M),Hn=Hn&&Hn.bind(M),fn||(fn=function(V){var re=Date.now(),le=Math.max(0,16-(re-Ti)),fe=M.setTimeout(function(){V(re+le)},le);return Ti=re+le,fe},Hn=function(V){return clearTimeout(V)})}},jt={defaults:{enabled:!1,margin:60,container:null,speed:300},now:Date.now,interaction:null,i:0,x:0,y:0,isScrolling:!1,prevTime:0,margin:0,speed:0,start:function(M){jt.isScrolling=!0,nr.cancel(jt.i),M.autoScroll=jt,jt.interaction=M,jt.prevTime=jt.now(),jt.i=nr.request(jt.scroll)},stop:function(){jt.isScrolling=!1,jt.interaction&&(jt.interaction.autoScroll=null),nr.cancel(jt.i)},scroll:function(){var M=jt.interaction,S=M.interactable,O=M.element,Y=M.prepared.name,V=S.options[Y].autoScroll,re=Zn(V.container,S,O),le=jt.now(),fe=(le-jt.prevTime)/1e3,be=V.speed*fe;if(be>=1){var Fe={x:jt.x*be,y:jt.y*be};if(Fe.x||Fe.y){var ke=gi(re);B.window(re)?re.scrollBy(Fe.x,Fe.y):re&&(re.scrollLeft+=Fe.x,re.scrollTop+=Fe.y);var Re=gi(re),We={x:Re.x-ke.x,y:Re.y-ke.y};(We.x||We.y)&&S.fire({type:"autoscroll",target:O,interactable:S,delta:We,interaction:M,container:re})}jt.prevTime=le}jt.isScrolling&&(nr.cancel(jt.i),jt.i=nr.request(jt.scroll))},check:function(M,S){var O;return(O=M.options[S].autoScroll)==null?void 0:O.enabled},onInteractionMove:function(M){var S=M.interaction,O=M.pointer;if(S.interacting()&&jt.check(S.interactable,S.prepared.name))if(S.simulation)jt.x=jt.y=0;else{var Y,V,re,le,fe=S.interactable,be=S.element,Fe=S.prepared.name,ke=fe.options[Fe].autoScroll,Re=Zn(ke.container,fe,be);if(B.window(Re))le=O.clientX<jt.margin,Y=O.clientY<jt.margin,V=O.clientX>Re.innerWidth-jt.margin,re=O.clientY>Re.innerHeight-jt.margin;else{var We=ne(Re);le=O.clientX<We.left+jt.margin,Y=O.clientY<We.top+jt.margin,V=O.clientX>We.right-jt.margin,re=O.clientY>We.bottom-jt.margin}jt.x=V?1:le?-1:0,jt.y=re?1:Y?-1:0,jt.isScrolling||(jt.margin=ke.margin,jt.speed=ke.speed,jt.start(S))}}};function Zn(M,S,O){return(B.string(M)?_e(M,S,O):M)||b(O)}function gi(M){return B.window(M)&&(M=window.document.body),{x:M.scrollLeft,y:M.scrollTop}}var no={id:"auto-scroll",install:function(M){var S=M.defaults,O=M.actions;M.autoScroll=jt,jt.now=function(){return M.now()},O.phaselessTypes.autoscroll=!0,S.perAction.autoScroll=jt.defaults},listeners:{"interactions:new":function(M){M.interaction.autoScroll=null},"interactions:destroy":function(M){M.interaction.autoScroll=null,jt.stop(),jt.interaction&&(jt.interaction=null)},"interactions:stop":jt.stop,"interactions:action-move":function(M){return jt.onInteractionMove(M)}}},pa=no;function Tt(M,S){var O=!1;return function(){return O||(y.console.warn(S),O=!0),M.apply(this,arguments)}}function Oe(M,S){return M.name=S.name,M.axis=S.axis,M.edges=S.edges,M}function ot(M){return B.bool(M)?(this.options.styleCursor=M,this):M===null?(delete this.options.styleCursor,this):this.options.styleCursor}function Et(M){return B.func(M)?(this.options.actionChecker=M,this):M===null?(delete this.options.actionChecker,this):this.options.actionChecker}var $n={id:"auto-start/interactableMethods",install:function(M){var S=M.Interactable;S.prototype.getAction=function(O,Y,V,re){var le=function(fe,be,Fe,ke,Re){var We=fe.getRect(ke),At=be.buttons||{0:1,1:4,3:8,4:16}[be.button],lt={action:null,interactable:fe,interaction:Fe,element:ke,rect:We,buttons:At};return Re.fire("auto-start:check",lt),lt.action}(this,Y,V,re,M);return this.options.actionChecker?this.options.actionChecker(O,Y,le,this,re,V):le},S.prototype.ignoreFrom=Tt(function(O){return this._backCompatOption("ignoreFrom",O)},"Interactable.ignoreFrom() has been deprecated. Use Interactble.draggable({ignoreFrom: newValue})."),S.prototype.allowFrom=Tt(function(O){return this._backCompatOption("allowFrom",O)},"Interactable.allowFrom() has been deprecated. Use Interactble.draggable({allowFrom: newValue})."),S.prototype.actionChecker=Et,S.prototype.styleCursor=ot}};function _r(M,S,O,Y,V){return S.testIgnoreAllow(S.options[M.name],O,Y)&&S.options[M.name].enabled&&vi(S,O,M,V)?M:null}function hr(M,S,O,Y,V,re,le){for(var fe=0,be=Y.length;fe<be;fe++){var Fe=Y[fe],ke=V[fe],Re=Fe.getAction(S,O,M,ke);if(Re){var We=_r(Re,Fe,ke,re,le);if(We)return{action:We,interactable:Fe,element:ke}}}return{action:null,interactable:null,element:null}}function Pr(M,S,O,Y,V){var re=[],le=[],fe=Y;function be(ke){re.push(ke),le.push(fe)}for(;B.element(fe);){re=[],le=[],V.interactables.forEachMatch(fe,be);var Fe=hr(M,S,O,re,le,Y,V);if(Fe.action&&!Fe.interactable.options[Fe.action.name].manualStart)return Fe;fe=J(fe)}return{action:null,interactable:null,element:null}}function cr(M,S,O){var Y=S.action,V=S.interactable,re=S.element;Y=Y||{name:null},M.interactable=V,M.element=re,Oe(M.prepared,Y),M.rect=V&&Y.name?V.getRect(re):null,ro(M,O),O.fire("autoStart:prepared",{interaction:M})}function vi(M,S,O,Y){var V=M.options,re=V[O.name].max,le=V[O.name].maxPerElement,fe=Y.autoStart.maxInteractions,be=0,Fe=0,ke=0;if(!(re&&le&&fe))return!1;for(var Re=0,We=Y.interactions.list;Re<We.length;Re++){var At=We[Re],lt=At.prepared.name;if(At.interacting()&&(++be>=fe||At.interactable===M&&((Fe+=lt===O.name?1:0)>=re||At.element===S&&(ke++,lt===O.name&&ke>=le))))return!1}return fe>0}function ma(M,S){return B.number(M)?(S.autoStart.maxInteractions=M,this):S.autoStart.maxInteractions}function zn(M,S,O){var Y=O.autoStart.cursorElement;Y&&Y!==M&&(Y.style.cursor=""),M.ownerDocument.documentElement.style.cursor=S,M.style.cursor=S,O.autoStart.cursorElement=S?M:null}function ro(M,S){var O=M.interactable,Y=M.element,V=M.prepared;if(M.pointerType==="mouse"&&O&&O.options.styleCursor){var re="";if(V.name){var le=O.options[V.name].cursorChecker;re=B.func(le)?le(V,O,Y,M._interacting):S.actions.map[V.name].getCursor(V)}zn(M.element,re||"",S)}else S.autoStart.cursorElement&&zn(S.autoStart.cursorElement,"",S)}var is={id:"auto-start/base",before:["actions"],install:function(M){var S=M.interactStatic,O=M.defaults;M.usePlugin($n),O.base.actionChecker=null,O.base.styleCursor=!0,ue(O.perAction,{manualStart:!1,max:1/0,maxPerElement:1,allowFrom:null,ignoreFrom:null,mouseButtons:1}),S.maxInteractions=function(Y){return ma(Y,M)},M.autoStart={maxInteractions:1/0,withinInteractionLimit:vi,cursorElement:null}},listeners:{"interactions:down":function(M,S){var O=M.interaction,Y=M.pointer,V=M.event,re=M.eventTarget;O.interacting()||cr(O,Pr(O,Y,V,re,S),S)},"interactions:move":function(M,S){(function(O,Y){var V=O.interaction,re=O.pointer,le=O.event,fe=O.eventTarget;V.pointerType!=="mouse"||V.pointerIsDown||V.interacting()||cr(V,Pr(V,re,le,fe,Y),Y)})(M,S),function(O,Y){var V=O.interaction;if(V.pointerIsDown&&!V.interacting()&&V.pointerWasMoved&&V.prepared.name){Y.fire("autoStart:before-start",O);var re=V.interactable,le=V.prepared.name;le&&re&&(re.options[le].manualStart||!vi(re,V.element,V.prepared,Y)?V.stop():(V.start(V.prepared,re,V.element),ro(V,Y)))}}(M,S)},"interactions:stop":function(M,S){var O=M.interaction,Y=O.interactable;Y&&Y.options.styleCursor&&zn(O.element,"",S)}},maxInteractions:ma,withinInteractionLimit:vi,validateAction:_r},Vs=is,io={id:"auto-start/dragAxis",listeners:{"autoStart:before-start":function(M,S){var O=M.interaction,Y=M.eventTarget,V=M.dx,re=M.dy;if(O.prepared.name==="drag"){var le=Math.abs(V),fe=Math.abs(re),be=O.interactable.options.drag,Fe=be.startAxis,ke=le>fe?"x":le<fe?"y":"xy";if(O.prepared.axis=be.lockAxis==="start"?ke[0]:be.lockAxis,ke!=="xy"&&Fe!=="xy"&&Fe!==ke){O.prepared.name=null;for(var Re=Y,We=function(lt){if(lt!==O.interactable){var ht=O.interactable.options.drag;if(!ht.manualStart&&lt.testIgnoreAllow(ht,Re,Y)){var St=lt.getAction(O.downPointer,O.downEvent,O,Re);if(St&&St.name==="drag"&&function(wt,Vt){if(!Vt)return!1;var An=Vt.options.drag.startAxis;return wt==="xy"||An==="xy"||An===wt}(ke,lt)&&Vs.validateAction(St,lt,Re,Y,S))return lt}}};B.element(Re);){var At=S.interactables.forEachMatch(Re,We);if(At){O.prepared.name="drag",O.interactable=At,O.element=Re;break}Re=J(Re)}}}}}};function Ho(M){var S=M.prepared&&M.prepared.name;if(!S)return null;var O=M.interactable.options;return O[S].hold||O[S].delay}var zc={id:"auto-start/hold",install:function(M){var S=M.defaults;M.usePlugin(Vs),S.perAction.hold=0,S.perAction.delay=0},listeners:{"interactions:new":function(M){M.interaction.autoStartHoldTimer=null},"autoStart:prepared":function(M){var S=M.interaction,O=Ho(S);O>0&&(S.autoStartHoldTimer=setTimeout(function(){S.start(S.prepared,S.interactable,S.element)},O))},"interactions:move":function(M){var S=M.interaction,O=M.duplicate;S.autoStartHoldTimer&&S.pointerWasMoved&&!O&&(clearTimeout(S.autoStartHoldTimer),S.autoStartHoldTimer=null)},"autoStart:before-start":function(M){var S=M.interaction;Ho(S)>0&&(S.prepared.name=null)}},getHoldDuration:Ho},br=zc,zs={id:"auto-start",install:function(M){M.usePlugin(Vs),M.usePlugin(br),M.usePlugin(io)}},ji=function(M){return/^(always|never|auto)$/.test(M)?(this.options.preventDefault=M,this):B.bool(M)?(this.options.preventDefault=M?"always":"never",this):this.options.preventDefault};function as(M){var S=M.interaction,O=M.event;S.interactable&&S.interactable.checkAndPreventDefault(O)}var qs={id:"core/interactablePreventDefault",install:function(M){var S=M.Interactable;S.prototype.preventDefault=ji,S.prototype.checkAndPreventDefault=function(O){return function(Y,V,re){var le=Y.options.preventDefault;if(le!=="never")if(le!=="always"){if(V.events.supportsPassive&&/^touch(start|move)$/.test(re.type)){var fe=b(re.target).document,be=V.getDocOptions(fe);if(!be||!be.events||be.events.passive!==!1)return}/^(mouse|pointer|touch)*(down|start)/i.test(re.type)||B.element(re.target)&&ie(re.target,"input,select,textarea,[contenteditable=true],[contenteditable=true] *")||re.preventDefault()}else re.preventDefault()}(this,M,O)},M.interactions.docEvents.push({type:"dragstart",listener:function(O){for(var Y=0,V=M.interactions.list;Y<V.length;Y++){var re=V[Y];if(re.element&&(re.element===O.target||q(re.element,O.target)))return void re.interactable.checkAndPreventDefault(O)}}})},listeners:["down","move","up","cancel"].reduce(function(M,S){return M["interactions:".concat(S)]=as,M},{})};function Ni(M,S){if(S.phaselessTypes[M])return!0;for(var O in S.map)if(M.indexOf(O)===0&&M.substr(O.length)in S.phases)return!0;return!1}function gr(M){var S={};for(var O in M){var Y=M[O];B.plainObject(Y)?S[O]=gr(Y):B.array(Y)?S[O]=Mt(Y):S[O]=Y}return S}var Sa=function(){function M(S){a(this,M),this.states=[],this.startOffset={left:0,right:0,top:0,bottom:0},this.startDelta=void 0,this.result=void 0,this.endResult=void 0,this.startEdges=void 0,this.edges=void 0,this.interaction=void 0,this.interaction=S,this.result=os(),this.edges={left:!1,right:!1,top:!1,bottom:!1}}return s(M,[{key:"start",value:function(S,O){var Y,V,re=S.phase,le=this.interaction,fe=function(Fe){var ke=Fe.interactable.options[Fe.prepared.name],Re=ke.modifiers;return Re&&Re.length?Re:["snap","snapSize","snapEdges","restrict","restrictEdges","restrictSize"].map(function(We){var At=ke[We];return At&&At.enabled&&{options:At,methods:At._methods}}).filter(function(We){return!!We})}(le);this.prepareStates(fe),this.startEdges=ue({},le.edges),this.edges=ue({},this.startEdges),this.startOffset=(Y=le.rect,V=O,Y?{left:V.x-Y.left,top:V.y-Y.top,right:Y.right-V.x,bottom:Y.bottom-V.y}:{left:0,top:0,right:0,bottom:0}),this.startDelta={x:0,y:0};var be=this.fillArg({phase:re,pageCoords:O,preEnd:!1});return this.result=os(),this.startAll(be),this.result=this.setAll(be)}},{key:"fillArg",value:function(S){var O=this.interaction;return S.interaction=O,S.interactable=O.interactable,S.element=O.element,S.rect||(S.rect=O.rect),S.edges||(S.edges=this.startEdges),S.startOffset=this.startOffset,S}},{key:"startAll",value:function(S){for(var O=0,Y=this.states;O<Y.length;O++){var V=Y[O];V.methods.start&&(S.state=V,V.methods.start(S))}}},{key:"setAll",value:function(S){var O=S.phase,Y=S.preEnd,V=S.skipModifiers,re=S.rect,le=S.edges;S.coords=ue({},S.pageCoords),S.rect=ue({},re),S.edges=ue({},le);for(var fe=V?this.states.slice(V):this.states,be=os(S.coords,S.rect),Fe=0;Fe<fe.length;Fe++){var ke,Re=fe[Fe],We=Re.options,At=ue({},S.coords),lt=null;(ke=Re.methods)!=null&&ke.set&&this.shouldDo(We,Y,O)&&(S.state=Re,lt=Re.methods.set(S),Q(S.edges,S.rect,{x:S.coords.x-At.x,y:S.coords.y-At.y})),be.eventProps.push(lt)}ue(this.edges,S.edges),be.delta.x=S.coords.x-S.pageCoords.x,be.delta.y=S.coords.y-S.pageCoords.y,be.rectDelta.left=S.rect.left-re.left,be.rectDelta.right=S.rect.right-re.right,be.rectDelta.top=S.rect.top-re.top,be.rectDelta.bottom=S.rect.bottom-re.bottom;var ht=this.result.coords,St=this.result.rect;if(ht&&St){var wt=be.rect.left!==St.left||be.rect.right!==St.right||be.rect.top!==St.top||be.rect.bottom!==St.bottom;be.changed=wt||ht.x!==be.coords.x||ht.y!==be.coords.y}return be}},{key:"applyToInteraction",value:function(S){var O=this.interaction,Y=S.phase,V=O.coords.cur,re=O.coords.start,le=this.result,fe=this.startDelta,be=le.delta;Y==="start"&&ue(this.startDelta,le.delta);for(var Fe=0,ke=[[re,fe],[V,be]];Fe<ke.length;Fe++){var Re=ke[Fe],We=Re[0],At=Re[1];We.page.x+=At.x,We.page.y+=At.y,We.client.x+=At.x,We.client.y+=At.y}var lt=this.result.rectDelta,ht=S.rect||O.rect;ht.left+=lt.left,ht.right+=lt.right,ht.top+=lt.top,ht.bottom+=lt.bottom,ht.width=ht.right-ht.left,ht.height=ht.bottom-ht.top}},{key:"setAndApply",value:function(S){var O=this.interaction,Y=S.phase,V=S.preEnd,re=S.skipModifiers,le=this.setAll(this.fillArg({preEnd:V,phase:Y,pageCoords:S.modifiedCoords||O.coords.cur.page}));if(this.result=le,!le.changed&&(!re||re<this.states.length)&&O.interacting())return!1;if(S.modifiedCoords){var fe=O.coords.cur.page,be={x:S.modifiedCoords.x-fe.x,y:S.modifiedCoords.y-fe.y};le.coords.x+=be.x,le.coords.y+=be.y,le.delta.x+=be.x,le.delta.y+=be.y}this.applyToInteraction(S)}},{key:"beforeEnd",value:function(S){var O=S.interaction,Y=S.event,V=this.states;if(V&&V.length){for(var re=!1,le=0;le<V.length;le++){var fe=V[le];S.state=fe;var be=fe.options,Fe=fe.methods,ke=Fe.beforeEnd&&Fe.beforeEnd(S);if(ke)return this.endResult=ke,!1;re=re||!re&&this.shouldDo(be,!0,S.phase,!0)}re&&O.move({event:Y,preEnd:!0})}}},{key:"stop",value:function(S){var O=S.interaction;if(this.states&&this.states.length){var Y=ue({states:this.states,interactable:O.interactable,element:O.element,rect:null},S);this.fillArg(Y);for(var V=0,re=this.states;V<re.length;V++){var le=re[V];Y.state=le,le.methods.stop&&le.methods.stop(Y)}this.states=null,this.endResult=null}}},{key:"prepareStates",value:function(S){this.states=[];for(var O=0;O<S.length;O++){var Y=S[O],V=Y.options,re=Y.methods,le=Y.name;this.states.push({options:V,methods:re,index:O,name:le})}return this.states}},{key:"restoreInteractionCoords",value:function(S){var O=S.interaction,Y=O.coords,V=O.rect,re=O.modification;if(re.result){for(var le=re.startDelta,fe=re.result,be=fe.delta,Fe=fe.rectDelta,ke=0,Re=[[Y.start,le],[Y.cur,be]];ke<Re.length;ke++){var We=Re[ke],At=We[0],lt=We[1];At.page.x-=lt.x,At.page.y-=lt.y,At.client.x-=lt.x,At.client.y-=lt.y}V.left-=Fe.left,V.right-=Fe.right,V.top-=Fe.top,V.bottom-=Fe.bottom}}},{key:"shouldDo",value:function(S,O,Y,V){return!(!S||S.enabled===!1||V&&!S.endOnly||S.endOnly&&!O||Y==="start"&&!S.setStart)}},{key:"copyFrom",value:function(S){this.startOffset=S.startOffset,this.startDelta=S.startDelta,this.startEdges=S.startEdges,this.edges=S.edges,this.states=S.states.map(function(O){return gr(O)}),this.result=os(ue({},S.result.coords),ue({},S.result.rect))}},{key:"destroy",value:function(){for(var S in this)this[S]=null}}]),M}();function os(M,S){return{rect:S,coords:M,delta:{x:0,y:0},rectDelta:{left:0,right:0,top:0,bottom:0},eventProps:[],changed:!0}}function ga(M,S){var O=M.defaults,Y={start:M.start,set:M.set,beforeEnd:M.beforeEnd,stop:M.stop},V=function(re){var le=re||{};for(var fe in le.enabled=le.enabled!==!1,O)fe in le||(le[fe]=O[fe]);var be={options:le,methods:Y,name:S,enable:function(){return le.enabled=!0,be},disable:function(){return le.enabled=!1,be}};return be};return S&&typeof S=="string"&&(V._defaults=O,V._methods=Y),V}function ss(M){var S=M.iEvent,O=M.interaction.modification.result;O&&(S.modifiers=O.eventProps)}var ao={id:"modifiers/base",before:["actions"],install:function(M){M.defaults.perAction.modifiers=[]},listeners:{"interactions:new":function(M){var S=M.interaction;S.modification=new Sa(S)},"interactions:before-action-start":function(M){var S=M.interaction,O=M.interaction.modification;O.start(M,S.coords.start.page),S.edges=O.edges,O.applyToInteraction(M)},"interactions:before-action-move":function(M){var S=M.interaction,O=S.modification,Y=O.setAndApply(M);return S.edges=O.edges,Y},"interactions:before-action-end":function(M){var S=M.interaction,O=S.modification,Y=O.beforeEnd(M);return S.edges=O.startEdges,Y},"interactions:action-start":ss,"interactions:action-move":ss,"interactions:action-end":ss,"interactions:after-action-start":function(M){return M.interaction.modification.restoreInteractionCoords(M)},"interactions:after-action-move":function(M){return M.interaction.modification.restoreInteractionCoords(M)},"interactions:stop":function(M){return M.interaction.modification.stop(M)}}},_o=ao,Ji={base:{preventDefault:"auto",deltaSource:"page"},perAction:{enabled:!1,origin:{x:0,y:0}},actions:{}},Vi=function(M){c(O,M);var S=d(O);function O(Y,V,re,le,fe,be,Fe){var ke;a(this,O),(ke=S.call(this,Y)).relatedTarget=null,ke.screenX=void 0,ke.screenY=void 0,ke.button=void 0,ke.buttons=void 0,ke.ctrlKey=void 0,ke.shiftKey=void 0,ke.altKey=void 0,ke.metaKey=void 0,ke.page=void 0,ke.client=void 0,ke.delta=void 0,ke.rect=void 0,ke.x0=void 0,ke.y0=void 0,ke.t0=void 0,ke.dt=void 0,ke.duration=void 0,ke.clientX0=void 0,ke.clientY0=void 0,ke.velocity=void 0,ke.speed=void 0,ke.swipe=void 0,ke.axes=void 0,ke.preEnd=void 0,fe=fe||Y.element;var Re=Y.interactable,We=(Re&&Re.options||Ji).deltaSource,At=te(Re,fe,re),lt=le==="start",ht=le==="end",St=lt?h(ke):Y.prevEvent,wt=lt?Y.coords.start:ht?{page:St.page,client:St.client,timeStamp:Y.coords.cur.timeStamp}:Y.coords.cur;return ke.page=ue({},wt.page),ke.client=ue({},wt.client),ke.rect=ue({},Y.rect),ke.timeStamp=wt.timeStamp,ht||(ke.page.x-=At.x,ke.page.y-=At.y,ke.client.x-=At.x,ke.client.y-=At.y),ke.ctrlKey=V.ctrlKey,ke.altKey=V.altKey,ke.shiftKey=V.shiftKey,ke.metaKey=V.metaKey,ke.button=V.button,ke.buttons=V.buttons,ke.target=fe,ke.currentTarget=fe,ke.preEnd=be,ke.type=Fe||re+(le||""),ke.interactable=Re,ke.t0=lt?Y.pointers[Y.pointers.length-1].downTime:St.t0,ke.x0=Y.coords.start.page.x-At.x,ke.y0=Y.coords.start.page.y-At.y,ke.clientX0=Y.coords.start.client.x-At.x,ke.clientY0=Y.coords.start.client.y-At.y,ke.delta=lt||ht?{x:0,y:0}:{x:ke[We].x-St[We].x,y:ke[We].y-St[We].y},ke.dt=Y.coords.delta.timeStamp,ke.duration=ke.timeStamp-ke.t0,ke.velocity=ue({},Y.coords.velocity[We]),ke.speed=Z(ke.velocity.x,ke.velocity.y),ke.swipe=ht||le==="inertiastart"?ke.getSwipe():null,ke}return s(O,[{key:"getSwipe",value:function(){var Y=this._interaction;if(Y.prevEvent.speed<600||this.timeStamp-Y.prevEvent.timeStamp>150)return null;var V=180*Math.atan2(Y.prevEvent.velocityY,Y.prevEvent.velocityX)/Math.PI;V<0&&(V+=360);var re=112.5<=V&&V<247.5,le=202.5<=V&&V<337.5;return{up:le,down:!le&&22.5<=V&&V<157.5,left:re,right:!re&&(292.5<=V||V<67.5),angle:V,speed:Y.prevEvent.speed,velocity:{x:Y.prevEvent.velocityX,y:Y.prevEvent.velocityY}}}},{key:"preventDefault",value:function(){}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}}]),O}(bt);Object.defineProperties(Vi.prototype,{pageX:{get:function(){return this.page.x},set:function(M){this.page.x=M}},pageY:{get:function(){return this.page.y},set:function(M){this.page.y=M}},clientX:{get:function(){return this.client.x},set:function(M){this.client.x=M}},clientY:{get:function(){return this.client.y},set:function(M){this.client.y=M}},dx:{get:function(){return this.delta.x},set:function(M){this.delta.x=M}},dy:{get:function(){return this.delta.y},set:function(M){this.delta.y=M}},velocityX:{get:function(){return this.velocity.x},set:function(M){this.velocity.x=M}},velocityY:{get:function(){return this.velocity.y},set:function(M){this.velocity.y=M}}});var Zi=s(function M(S,O,Y,V,re){a(this,M),this.id=void 0,this.pointer=void 0,this.event=void 0,this.downTime=void 0,this.downTarget=void 0,this.id=S,this.pointer=O,this.event=Y,this.downTime=V,this.downTarget=re}),qc=function(M){return M.interactable="",M.element="",M.prepared="",M.pointerIsDown="",M.pointerWasMoved="",M._proxy="",M}({}),ka=function(M){return M.start="",M.move="",M.end="",M.stop="",M.interacting="",M}({}),Kc=0,Ql=function(){function M(S){var O=this,Y=S.pointerType,V=S.scopeFire;a(this,M),this.interactable=null,this.element=null,this.rect=null,this._rects=void 0,this.edges=null,this._scopeFire=void 0,this.prepared={name:null,axis:null,edges:null},this.pointerType=void 0,this.pointers=[],this.downEvent=null,this.downPointer={},this._latestPointer={pointer:null,event:null,eventTarget:null},this.prevEvent=null,this.pointerIsDown=!1,this.pointerWasMoved=!1,this._interacting=!1,this._ending=!1,this._stopped=!0,this._proxy=void 0,this.simulation=null,this.doMove=Tt(function(ke){this.move(ke)},"The interaction.doMove() method has been renamed to interaction.move()"),this.coords={start:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},prev:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},cur:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},delta:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},velocity:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0}},this._id=Kc++,this._scopeFire=V,this.pointerType=Y;var re=this;this._proxy={};var le=function(ke){Object.defineProperty(O._proxy,ke,{get:function(){return re[ke]}})};for(var fe in qc)le(fe);var be=function(ke){Object.defineProperty(O._proxy,ke,{value:function(){return re[ke].apply(re,arguments)}})};for(var Fe in ka)be(Fe);this._scopeFire("interactions:new",{interaction:this})}return s(M,[{key:"pointerMoveTolerance",get:function(){return 1}},{key:"pointerDown",value:function(S,O,Y){var V=this.updatePointer(S,O,Y,!0),re=this.pointers[V];this._scopeFire("interactions:down",{pointer:S,event:O,eventTarget:Y,pointerIndex:V,pointerInfo:re,type:"down",interaction:this})}},{key:"start",value:function(S,O,Y){return!(this.interacting()||!this.pointerIsDown||this.pointers.length<(S.name==="gesture"?2:1)||!O.options[S.name].enabled)&&(Oe(this.prepared,S),this.interactable=O,this.element=Y,this.rect=O.getRect(Y),this.edges=this.prepared.edges?ue({},this.prepared.edges):{left:!0,right:!0,top:!0,bottom:!0},this._stopped=!1,this._interacting=this._doPhase({interaction:this,event:this.downEvent,phase:"start"})&&!this._stopped,this._interacting)}},{key:"pointerMove",value:function(S,O,Y){this.simulation||this.modification&&this.modification.endResult||this.updatePointer(S,O,Y,!1);var V,re,le=this.coords.cur.page.x===this.coords.prev.page.x&&this.coords.cur.page.y===this.coords.prev.page.y&&this.coords.cur.client.x===this.coords.prev.client.x&&this.coords.cur.client.y===this.coords.prev.client.y;this.pointerIsDown&&!this.pointerWasMoved&&(V=this.coords.cur.client.x-this.coords.start.client.x,re=this.coords.cur.client.y-this.coords.start.client.y,this.pointerWasMoved=Z(V,re)>this.pointerMoveTolerance);var fe,be,Fe,ke=this.getPointerIndex(S),Re={pointer:S,pointerIndex:ke,pointerInfo:this.pointers[ke],event:O,type:"move",eventTarget:Y,dx:V,dy:re,duplicate:le,interaction:this};le||(fe=this.coords.velocity,be=this.coords.delta,Fe=Math.max(be.timeStamp/1e3,.001),fe.page.x=be.page.x/Fe,fe.page.y=be.page.y/Fe,fe.client.x=be.client.x/Fe,fe.client.y=be.client.y/Fe,fe.timeStamp=Fe),this._scopeFire("interactions:move",Re),le||this.simulation||(this.interacting()&&(Re.type=null,this.move(Re)),this.pointerWasMoved&&Ee(this.coords.prev,this.coords.cur))}},{key:"move",value:function(S){S&&S.event||Se(this.coords.delta),(S=ue({pointer:this._latestPointer.pointer,event:this._latestPointer.event,eventTarget:this._latestPointer.eventTarget,interaction:this},S||{})).phase="move",this._doPhase(S)}},{key:"pointerUp",value:function(S,O,Y,V){var re=this.getPointerIndex(S);re===-1&&(re=this.updatePointer(S,O,Y,!1));var le=/cancel$/i.test(O.type)?"cancel":"up";this._scopeFire("interactions:".concat(le),{pointer:S,pointerIndex:re,pointerInfo:this.pointers[re],event:O,eventTarget:Y,type:le,curEventTarget:V,interaction:this}),this.simulation||this.end(O),this.removePointer(S,O)}},{key:"documentBlur",value:function(S){this.end(S),this._scopeFire("interactions:blur",{event:S,type:"blur",interaction:this})}},{key:"end",value:function(S){var O;this._ending=!0,S=S||this._latestPointer.event,this.interacting()&&(O=this._doPhase({event:S,interaction:this,phase:"end"})),this._ending=!1,O===!0&&this.stop()}},{key:"currentAction",value:function(){return this._interacting?this.prepared.name:null}},{key:"interacting",value:function(){return this._interacting}},{key:"stop",value:function(){this._scopeFire("interactions:stop",{interaction:this}),this.interactable=this.element=null,this._interacting=!1,this._stopped=!0,this.prepared.name=this.prevEvent=null}},{key:"getPointerIndex",value:function(S){var O=Ge(S);return this.pointerType==="mouse"||this.pointerType==="pen"?this.pointers.length-1:cn(this.pointers,function(Y){return Y.id===O})}},{key:"getPointerInfo",value:function(S){return this.pointers[this.getPointerIndex(S)]}},{key:"updatePointer",value:function(S,O,Y,V){var re,le,fe,be=Ge(S),Fe=this.getPointerIndex(S),ke=this.pointers[Fe];return V=V!==!1&&(V||/(down|start)$/i.test(O.type)),ke?ke.pointer=S:(ke=new Zi(be,S,O,null,null),Fe=this.pointers.length,this.pointers.push(ke)),at(this.coords.cur,this.pointers.map(function(Re){return Re.pointer}),this._now()),re=this.coords.delta,le=this.coords.prev,fe=this.coords.cur,re.page.x=fe.page.x-le.page.x,re.page.y=fe.page.y-le.page.y,re.client.x=fe.client.x-le.client.x,re.client.y=fe.client.y-le.client.y,re.timeStamp=fe.timeStamp-le.timeStamp,V&&(this.pointerIsDown=!0,ke.downTime=this.coords.cur.timeStamp,ke.downTarget=Y,Be(this.downPointer,S),this.interacting()||(Ee(this.coords.start,this.coords.cur),Ee(this.coords.prev,this.coords.cur),this.downEvent=O,this.pointerWasMoved=!1)),this._updateLatestPointer(S,O,Y),this._scopeFire("interactions:update-pointer",{pointer:S,event:O,eventTarget:Y,down:V,pointerInfo:ke,pointerIndex:Fe,interaction:this}),Fe}},{key:"removePointer",value:function(S,O){var Y=this.getPointerIndex(S);if(Y!==-1){var V=this.pointers[Y];this._scopeFire("interactions:remove-pointer",{pointer:S,event:O,eventTarget:null,pointerIndex:Y,pointerInfo:V,interaction:this}),this.pointers.splice(Y,1),this.pointerIsDown=!1}}},{key:"_updateLatestPointer",value:function(S,O,Y){this._latestPointer.pointer=S,this._latestPointer.event=O,this._latestPointer.eventTarget=Y}},{key:"destroy",value:function(){this._latestPointer.pointer=null,this._latestPointer.event=null,this._latestPointer.eventTarget=null}},{key:"_createPreparedEvent",value:function(S,O,Y,V){return new Vi(this,S,this.prepared.name,O,this.element,Y,V)}},{key:"_fireEvent",value:function(S){var O;(O=this.interactable)==null||O.fire(S),(!this.prevEvent||S.timeStamp>=this.prevEvent.timeStamp)&&(this.prevEvent=S)}},{key:"_doPhase",value:function(S){var O=S.event,Y=S.phase,V=S.preEnd,re=S.type,le=this.rect;if(le&&Y==="move"&&(Q(this.edges,le,this.coords.delta[this.interactable.options.deltaSource]),le.width=le.right-le.left,le.height=le.bottom-le.top),this._scopeFire("interactions:before-action-".concat(Y),S)===!1)return!1;var fe=S.iEvent=this._createPreparedEvent(O,Y,V,re);return this._scopeFire("interactions:action-".concat(Y),S),Y==="start"&&(this.prevEvent=fe),this._fireEvent(fe),this._scopeFire("interactions:after-action-".concat(Y),S),!0}},{key:"_now",value:function(){return Date.now()}}]),M}();function jl(M){va(M.interaction)}function va(M){if(!function(O){return!(!O.offset.pending.x&&!O.offset.pending.y)}(M))return!1;var S=M.offset.pending;return Or(M.coords.cur,S),Or(M.coords.delta,S),Q(M.edges,M.rect,S),S.x=0,S.y=0,!0}function Uu(M){var S=M.x,O=M.y;this.offset.pending.x+=S,this.offset.pending.y+=O,this.offset.total.x+=S,this.offset.total.y+=O}function Or(M,S){var O=M.page,Y=M.client,V=S.x,re=S.y;O.x+=V,O.y+=re,Y.x+=V,Y.y+=re}ka.offsetBy="";var Ks={id:"offset",before:["modifiers","pointer-events","actions","inertia"],install:function(M){M.Interaction.prototype.offsetBy=Uu},listeners:{"interactions:new":function(M){M.interaction.offset={total:{x:0,y:0},pending:{x:0,y:0}}},"interactions:update-pointer":function(M){return function(S){S.pointerIsDown&&(Or(S.coords.cur,S.offset.total),S.offset.pending.x=0,S.offset.pending.y=0)}(M.interaction)},"interactions:before-action-start":jl,"interactions:before-action-move":jl,"interactions:before-action-end":function(M){var S=M.interaction;if(va(S))return S.move({offset:!0}),S.end(),!1},"interactions:stop":function(M){var S=M.interaction;S.offset.total.x=0,S.offset.total.y=0,S.offset.pending.x=0,S.offset.pending.y=0}}},Vl=Ks,on=function(){function M(S){a(this,M),this.active=!1,this.isModified=!1,this.smoothEnd=!1,this.allowResume=!1,this.modification=void 0,this.modifierCount=0,this.modifierArg=void 0,this.startCoords=void 0,this.t0=0,this.v0=0,this.te=0,this.targetOffset=void 0,this.modifiedOffset=void 0,this.currentOffset=void 0,this.lambda_v0=0,this.one_ve_v0=0,this.timeout=void 0,this.interaction=void 0,this.interaction=S}return s(M,[{key:"start",value:function(S){var O=this.interaction,Y=Yo(O);if(!Y||!Y.enabled)return!1;var V=O.coords.velocity.client,re=Z(V.x,V.y),le=this.modification||(this.modification=new Sa(O));if(le.copyFrom(O.modification),this.t0=O._now(),this.allowResume=Y.allowResume,this.v0=re,this.currentOffset={x:0,y:0},this.startCoords=O.coords.cur.page,this.modifierArg=le.fillArg({pageCoords:this.startCoords,preEnd:!0,phase:"inertiastart"}),this.t0-O.coords.cur.timeStamp<50&&re>Y.minSpeed&&re>Y.endSpeed)this.startInertia();else{if(le.result=le.setAll(this.modifierArg),!le.result.changed)return!1;this.startSmoothEnd()}return O.modification.result.rect=null,O.offsetBy(this.targetOffset),O._doPhase({interaction:O,event:S,phase:"inertiastart"}),O.offsetBy({x:-this.targetOffset.x,y:-this.targetOffset.y}),O.modification.result.rect=null,this.active=!0,O.simulation=this,!0}},{key:"startInertia",value:function(){var S=this,O=this.interaction.coords.velocity.client,Y=Yo(this.interaction),V=Y.resistance,re=-Math.log(Y.endSpeed/this.v0)/V;this.targetOffset={x:(O.x-re)/V,y:(O.y-re)/V},this.te=re,this.lambda_v0=V/this.v0,this.one_ve_v0=1-Y.endSpeed/this.v0;var le=this.modification,fe=this.modifierArg;fe.pageCoords={x:this.startCoords.x+this.targetOffset.x,y:this.startCoords.y+this.targetOffset.y},le.result=le.setAll(fe),le.result.changed&&(this.isModified=!0,this.modifiedOffset={x:this.targetOffset.x+le.result.delta.x,y:this.targetOffset.y+le.result.delta.y}),this.onNextFrame(function(){return S.inertiaTick()})}},{key:"startSmoothEnd",value:function(){var S=this;this.smoothEnd=!0,this.isModified=!0,this.targetOffset={x:this.modification.result.delta.x,y:this.modification.result.delta.y},this.onNextFrame(function(){return S.smoothEndTick()})}},{key:"onNextFrame",value:function(S){var O=this;this.timeout=nr.request(function(){O.active&&S()})}},{key:"inertiaTick",value:function(){var S,O,Y,V,re,le,fe,be=this,Fe=this.interaction,ke=Yo(Fe).resistance,Re=(Fe._now()-this.t0)/1e3;if(Re<this.te){var We,At=1-(Math.exp(-ke*Re)-this.lambda_v0)/this.one_ve_v0;this.isModified?(S=0,O=0,Y=this.targetOffset.x,V=this.targetOffset.y,re=this.modifiedOffset.x,le=this.modifiedOffset.y,We={x:Pu(fe=At,S,Y,re),y:Pu(fe,O,V,le)}):We={x:this.targetOffset.x*At,y:this.targetOffset.y*At};var lt={x:We.x-this.currentOffset.x,y:We.y-this.currentOffset.y};this.currentOffset.x+=lt.x,this.currentOffset.y+=lt.y,Fe.offsetBy(lt),Fe.move(),this.onNextFrame(function(){return be.inertiaTick()})}else Fe.offsetBy({x:this.modifiedOffset.x-this.currentOffset.x,y:this.modifiedOffset.y-this.currentOffset.y}),this.end()}},{key:"smoothEndTick",value:function(){var S=this,O=this.interaction,Y=O._now()-this.t0,V=Yo(O).smoothEndDuration;if(Y<V){var re={x:Ma(Y,0,this.targetOffset.x,V),y:Ma(Y,0,this.targetOffset.y,V)},le={x:re.x-this.currentOffset.x,y:re.y-this.currentOffset.y};this.currentOffset.x+=le.x,this.currentOffset.y+=le.y,O.offsetBy(le),O.move({skipModifiers:this.modifierCount}),this.onNextFrame(function(){return S.smoothEndTick()})}else O.offsetBy({x:this.targetOffset.x-this.currentOffset.x,y:this.targetOffset.y-this.currentOffset.y}),this.end()}},{key:"resume",value:function(S){var O=S.pointer,Y=S.event,V=S.eventTarget,re=this.interaction;re.offsetBy({x:-this.currentOffset.x,y:-this.currentOffset.y}),re.updatePointer(O,Y,V,!0),re._doPhase({interaction:re,event:Y,phase:"resume"}),Ee(re.coords.prev,re.coords.cur),this.stop()}},{key:"end",value:function(){this.interaction.move(),this.interaction.end(),this.stop()}},{key:"stop",value:function(){this.active=this.smoothEnd=!1,this.interaction.simulation=null,nr.cancel(this.timeout)}}]),M}();function Yo(M){var S=M.interactable,O=M.prepared;return S&&S.options&&O.name&&S.options[O.name].inertia}var Gs={id:"inertia",before:["modifiers","actions"],install:function(M){var S=M.defaults;M.usePlugin(Vl),M.usePlugin(_o),M.actions.phases.inertiastart=!0,M.actions.phases.resume=!0,S.perAction.inertia={enabled:!1,resistance:10,minSpeed:100,endSpeed:10,allowResume:!0,smoothEndDuration:300}},listeners:{"interactions:new":function(M){var S=M.interaction;S.inertia=new on(S)},"interactions:before-action-end":function(M){var S=M.interaction,O=M.event;return(!S._interacting||S.simulation||!S.inertia.start(O))&&null},"interactions:down":function(M){var S=M.interaction,O=M.eventTarget,Y=S.inertia;if(Y.active)for(var V=O;B.element(V);){if(V===S.element){Y.resume(M);break}V=J(V)}},"interactions:stop":function(M){var S=M.interaction.inertia;S.active&&S.stop()},"interactions:before-action-resume":function(M){var S=M.interaction.modification;S.stop(M),S.start(M,M.interaction.coords.cur.page),S.applyToInteraction(M)},"interactions:before-action-inertiastart":function(M){return M.interaction.modification.setAndApply(M)},"interactions:action-resume":ss,"interactions:action-inertiastart":ss,"interactions:after-action-inertiastart":function(M){return M.interaction.modification.restoreInteractionCoords(M)},"interactions:after-action-resume":function(M){return M.interaction.modification.restoreInteractionCoords(M)}}};function Pu(M,S,O,Y){var V=1-M;return V*V*S+2*V*M*O+M*M*Y}function Ma(M,S,O,Y){return-O*(M/=Y)*(M-2)+S}var Ea=Gs;function zl(M,S){for(var O=0;O<S.length;O++){var Y=S[O];if(M.immediatePropagationStopped)break;Y(M)}}var La=function(){function M(S){a(this,M),this.options=void 0,this.types={},this.propagationStopped=!1,this.immediatePropagationStopped=!1,this.global=void 0,this.options=ue({},S||{})}return s(M,[{key:"fire",value:function(S){var O,Y=this.global;(O=this.types[S.type])&&zl(S,O),!S.propagationStopped&&Y&&(O=Y[S.type])&&zl(S,O)}},{key:"on",value:function(S,O){var Y=ce(S,O);for(S in Y)this.types[S]=an(this.types[S]||[],Y[S])}},{key:"off",value:function(S,O){var Y=ce(S,O);for(S in Y){var V=this.types[S];if(V&&V.length)for(var re=0,le=Y[S];re<le.length;re++){var fe=le[re],be=V.indexOf(fe);be!==-1&&V.splice(be,1)}}}},{key:"getRect",value:function(S){return null}}]),M}(),ls=function(){function M(S){a(this,M),this.currentTarget=void 0,this.originalEvent=void 0,this.type=void 0,this.originalEvent=S,Be(this,S)}return s(M,[{key:"preventOriginalDefault",value:function(){this.originalEvent.preventDefault()}},{key:"stopPropagation",value:function(){this.originalEvent.stopPropagation()}},{key:"stopImmediatePropagation",value:function(){this.originalEvent.stopImmediatePropagation()}}]),M}();function Ta(M){return B.object(M)?{capture:!!M.capture,passive:!!M.passive}:{capture:!!M,passive:!1}}function oo(M,S){return M===S||(typeof M=="boolean"?!!S.capture===M&&!S.passive:!!M.capture==!!S.capture&&!!M.passive==!!S.passive)}var Gc={id:"events",install:function(M){var S,O=[],Y={},V=[],re={add:le,remove:fe,addDelegate:function(ke,Re,We,At,lt){var ht=Ta(lt);if(!Y[We]){Y[We]=[];for(var St=0;St<V.length;St++){var wt=V[St];le(wt,We,be),le(wt,We,Fe,!0)}}var Vt=Y[We],An=Ct(Vt,function(dn){return dn.selector===ke&&dn.context===Re});An||(An={selector:ke,context:Re,listeners:[]},Vt.push(An)),An.listeners.push({func:At,options:ht})},removeDelegate:function(ke,Re,We,At,lt){var ht,St=Ta(lt),wt=Y[We],Vt=!1;if(wt)for(ht=wt.length-1;ht>=0;ht--){var An=wt[ht];if(An.selector===ke&&An.context===Re){for(var dn=An.listeners,$t=dn.length-1;$t>=0;$t--){var Ft=dn[$t];if(Ft.func===At&&oo(Ft.options,St)){dn.splice($t,1),dn.length||(wt.splice(ht,1),fe(Re,We,be),fe(Re,We,Fe,!0)),Vt=!0;break}}if(Vt)break}}},delegateListener:be,delegateUseCapture:Fe,delegatedEvents:Y,documents:V,targets:O,supportsOptions:!1,supportsPassive:!1};function le(ke,Re,We,At){if(ke.addEventListener){var lt=Ta(At),ht=Ct(O,function(St){return St.eventTarget===ke});ht||(ht={eventTarget:ke,events:{}},O.push(ht)),ht.events[Re]||(ht.events[Re]=[]),Ct(ht.events[Re],function(St){return St.func===We&&oo(St.options,lt)})||(ke.addEventListener(Re,We,re.supportsOptions?lt:lt.capture),ht.events[Re].push({func:We,options:lt}))}}function fe(ke,Re,We,At){if(ke.addEventListener&&ke.removeEventListener){var lt=cn(O,function(Sn){return Sn.eventTarget===ke}),ht=O[lt];if(ht&&ht.events)if(Re!=="all"){var St=!1,wt=ht.events[Re];if(wt){if(We==="all"){for(var Vt=wt.length-1;Vt>=0;Vt--){var An=wt[Vt];fe(ke,Re,An.func,An.options)}return}for(var dn=Ta(At),$t=0;$t<wt.length;$t++){var Ft=wt[$t];if(Ft.func===We&&oo(Ft.options,dn)){ke.removeEventListener(Re,We,re.supportsOptions?dn:dn.capture),wt.splice($t,1),wt.length===0&&(delete ht.events[Re],St=!0);break}}}St&&!Object.keys(ht.events).length&&O.splice(lt,1)}else for(Re in ht.events)ht.events.hasOwnProperty(Re)&&fe(ke,Re,"all")}}function be(ke,Re){for(var We=Ta(Re),At=new ls(ke),lt=Y[ke.type],ht=kt(ke)[0],St=ht;B.element(St);){for(var wt=0;wt<lt.length;wt++){var Vt=lt[wt],An=Vt.selector,dn=Vt.context;if(ie(St,An)&&q(dn,ht)&&q(dn,St)){var $t=Vt.listeners;At.currentTarget=St;for(var Ft=0;Ft<$t.length;Ft++){var Sn=$t[Ft];oo(Sn.options,We)&&Sn.func(At)}}}St=J(St)}}function Fe(ke){return be(ke,!0)}return(S=M.document)==null||S.createElement("div").addEventListener("test",null,{get capture(){return re.supportsOptions=!0},get passive(){return re.supportsPassive=!0}}),M.events=re,re}},j={methodOrder:["simulationResume","mouseOrPen","hasPointer","idle"],search:function(M){for(var S=0,O=j.methodOrder;S<O.length;S++){var Y=O[S],V=j[Y](M);if(V)return V}return null},simulationResume:function(M){var S=M.pointerType,O=M.eventType,Y=M.eventTarget,V=M.scope;if(!/down|start/i.test(O))return null;for(var re=0,le=V.interactions.list;re<le.length;re++){var fe=le[re],be=Y;if(fe.simulation&&fe.simulation.allowResume&&fe.pointerType===S)for(;be;){if(be===fe.element)return fe;be=J(be)}}return null},mouseOrPen:function(M){var S,O=M.pointerId,Y=M.pointerType,V=M.eventType,re=M.scope;if(Y!=="mouse"&&Y!=="pen")return null;for(var le=0,fe=re.interactions.list;le<fe.length;le++){var be=fe[le];if(be.pointerType===Y){if(be.simulation&&!me(be,O))continue;if(be.interacting())return be;S||(S=be)}}if(S)return S;for(var Fe=0,ke=re.interactions.list;Fe<ke.length;Fe++){var Re=ke[Fe];if(!(Re.pointerType!==Y||/down/i.test(V)&&Re.simulation))return Re}return null},hasPointer:function(M){for(var S=M.pointerId,O=0,Y=M.scope.interactions.list;O<Y.length;O++){var V=Y[O];if(me(V,S))return V}return null},idle:function(M){for(var S=M.pointerType,O=0,Y=M.scope.interactions.list;O<Y.length;O++){var V=Y[O];if(V.pointers.length===1){var re=V.interactable;if(re&&(!re.options.gesture||!re.options.gesture.enabled))continue}else if(V.pointers.length>=2)continue;if(!V.interacting()&&S===V.pointerType)return V}return null}};function me(M,S){return M.pointers.some(function(O){return O.id===S})}var Ne=j,Xe=["pointerDown","pointerMove","pointerUp","updatePointer","removePointer","windowBlur"];function ln(M,S){return function(O){var Y=S.interactions.list,V=xt(O),re=kt(O),le=re[0],fe=re[1],be=[];if(/^touch/.test(O.type)){S.prevTouchTime=S.now();for(var Fe=0,ke=O.changedTouches;Fe<ke.length;Fe++){var Re=ke[Fe],We={pointer:Re,pointerId:Ge(Re),pointerType:V,eventType:O.type,eventTarget:le,curEventTarget:fe,scope:S},At=Pt(We);be.push([We.pointer,We.eventTarget,We.curEventTarget,At])}}else{var lt=!1;if(!K.supportsPointerEvent&&/mouse/.test(O.type)){for(var ht=0;ht<Y.length&&!lt;ht++)lt=Y[ht].pointerType!=="mouse"&&Y[ht].pointerIsDown;lt=lt||S.now()-S.prevTouchTime<500||O.timeStamp===0}if(!lt){var St={pointer:O,pointerId:Ge(O),pointerType:V,eventType:O.type,curEventTarget:fe,eventTarget:le,scope:S},wt=Pt(St);be.push([St.pointer,St.eventTarget,St.curEventTarget,wt])}}for(var Vt=0;Vt<be.length;Vt++){var An=be[Vt],dn=An[0],$t=An[1],Ft=An[2];An[3][M](dn,O,$t,Ft)}}}function Pt(M){var S=M.pointerType,O=M.scope,Y={interaction:Ne.search(M),searchDetails:M};return O.fire("interactions:find",Y),Y.interaction||O.interactions.new({pointerType:S})}function Ln(M,S){var O=M.doc,Y=M.scope,V=M.options,re=Y.interactions.docEvents,le=Y.events,fe=le[S];for(var be in Y.browser.isIOS&&!V.events&&(V.events={passive:!1}),le.delegatedEvents)fe(O,be,le.delegateListener),fe(O,be,le.delegateUseCapture,!0);for(var Fe=V&&V.events,ke=0;ke<re.length;ke++){var Re=re[ke];fe(O,Re.type,Re.listener,Fe)}}var Tn={id:"core/interactions",install:function(M){for(var S={},O=0;O<Xe.length;O++){var Y=Xe[O];S[Y]=ln(Y,M)}var V,re=K.pEventTypes;function le(){for(var fe=0,be=M.interactions.list;fe<be.length;fe++){var Fe=be[fe];if(Fe.pointerIsDown&&Fe.pointerType==="touch"&&!Fe._interacting)for(var ke=function(){var At=We[Re];M.documents.some(function(lt){return q(lt.doc,At.downTarget)})||Fe.removePointer(At.pointer,At.event)},Re=0,We=Fe.pointers;Re<We.length;Re++)ke()}}(V=L.PointerEvent?[{type:re.down,listener:le},{type:re.down,listener:S.pointerDown},{type:re.move,listener:S.pointerMove},{type:re.up,listener:S.pointerUp},{type:re.cancel,listener:S.pointerUp}]:[{type:"mousedown",listener:S.pointerDown},{type:"mousemove",listener:S.pointerMove},{type:"mouseup",listener:S.pointerUp},{type:"touchstart",listener:le},{type:"touchstart",listener:S.pointerDown},{type:"touchmove",listener:S.pointerMove},{type:"touchend",listener:S.pointerUp},{type:"touchcancel",listener:S.pointerUp}]).push({type:"blur",listener:function(fe){for(var be=0,Fe=M.interactions.list;be<Fe.length;be++)Fe[be].documentBlur(fe)}}),M.prevTouchTime=0,M.Interaction=function(fe){c(Fe,fe);var be=d(Fe);function Fe(){return a(this,Fe),be.apply(this,arguments)}return s(Fe,[{key:"pointerMoveTolerance",get:function(){return M.interactions.pointerMoveTolerance},set:function(ke){M.interactions.pointerMoveTolerance=ke}},{key:"_now",value:function(){return M.now()}}]),Fe}(Ql),M.interactions={list:[],new:function(fe){fe.scopeFire=function(Fe,ke){return M.fire(Fe,ke)};var be=new M.Interaction(fe);return M.interactions.list.push(be),be},listeners:S,docEvents:V,pointerMoveTolerance:1},M.usePlugin(qs)},listeners:{"scope:add-document":function(M){return Ln(M,"add")},"scope:remove-document":function(M){return Ln(M,"remove")},"interactable:unset":function(M,S){for(var O=M.interactable,Y=S.interactions.list.length-1;Y>=0;Y--){var V=S.interactions.list[Y];V.interactable===O&&(V.stop(),S.fire("interactions:destroy",{interaction:V}),V.destroy(),S.interactions.list.length>2&&S.interactions.list.splice(Y,1))}}},onDocSignal:Ln,doOnInteractions:ln,methodNames:Xe},Lr=Tn,gn=function(M){return M[M.On=0]="On",M[M.Off=1]="Off",M}(gn||{}),ti=function(){function M(S,O,Y,V){a(this,M),this.target=void 0,this.options=void 0,this._actions=void 0,this.events=new La,this._context=void 0,this._win=void 0,this._doc=void 0,this._scopeEvents=void 0,this._actions=O.actions,this.target=S,this._context=O.context||Y,this._win=b(ve(S)?this._context:S),this._doc=this._win.document,this._scopeEvents=V,this.set(O)}return s(M,[{key:"_defaults",get:function(){return{base:{},perAction:{},actions:{}}}},{key:"setOnEvents",value:function(S,O){return B.func(O.onstart)&&this.on("".concat(S,"start"),O.onstart),B.func(O.onmove)&&this.on("".concat(S,"move"),O.onmove),B.func(O.onend)&&this.on("".concat(S,"end"),O.onend),B.func(O.oninertiastart)&&this.on("".concat(S,"inertiastart"),O.oninertiastart),this}},{key:"updatePerActionListeners",value:function(S,O,Y){var V,re=this,le=(V=this._actions.map[S])==null?void 0:V.filterEventType,fe=function(be){return(le==null||le(be))&&Ni(be,re._actions)};(B.array(O)||B.object(O))&&this._onOff(gn.Off,S,O,void 0,fe),(B.array(Y)||B.object(Y))&&this._onOff(gn.On,S,Y,void 0,fe)}},{key:"setPerAction",value:function(S,O){var Y=this._defaults;for(var V in O){var re=V,le=this.options[S],fe=O[re];re==="listeners"&&this.updatePerActionListeners(S,le.listeners,fe),B.array(fe)?le[re]=Mt(fe):B.plainObject(fe)?(le[re]=ue(le[re]||{},gr(fe)),B.object(Y.perAction[re])&&"enabled"in Y.perAction[re]&&(le[re].enabled=fe.enabled!==!1)):B.bool(fe)&&B.object(Y.perAction[re])?le[re].enabled=fe:le[re]=fe}}},{key:"getRect",value:function(S){return S=S||(B.element(this.target)?this.target:null),B.string(this.target)&&(S=S||this._context.querySelector(this.target)),pe(S)}},{key:"rectChecker",value:function(S){var O=this;return B.func(S)?(this.getRect=function(Y){var V=ue({},S.apply(O,Y));return"width"in V||(V.width=V.right-V.left,V.height=V.bottom-V.top),V},this):S===null?(delete this.getRect,this):this.getRect}},{key:"_backCompatOption",value:function(S,O){if(ve(O)||B.object(O)){for(var Y in this.options[S]=O,this._actions.map)this.options[Y][S]=O;return this}return this.options[S]}},{key:"origin",value:function(S){return this._backCompatOption("origin",S)}},{key:"deltaSource",value:function(S){return S==="page"||S==="client"?(this.options.deltaSource=S,this):this.options.deltaSource}},{key:"getAllElements",value:function(){var S=this.target;return B.string(S)?Array.from(this._context.querySelectorAll(S)):B.func(S)&&S.getAllElements?S.getAllElements():B.element(S)?[S]:[]}},{key:"context",value:function(){return this._context}},{key:"inContext",value:function(S){return this._context===S.ownerDocument||q(this._context,S)}},{key:"testIgnoreAllow",value:function(S,O,Y){return!this.testIgnore(S.ignoreFrom,O,Y)&&this.testAllow(S.allowFrom,O,Y)}},{key:"testAllow",value:function(S,O,Y){return!S||!!B.element(Y)&&(B.string(S)?W(Y,S,O):!!B.element(S)&&q(S,Y))}},{key:"testIgnore",value:function(S,O,Y){return!(!S||!B.element(Y))&&(B.string(S)?W(Y,S,O):!!B.element(S)&&q(S,Y))}},{key:"fire",value:function(S){return this.events.fire(S),this}},{key:"_onOff",value:function(S,O,Y,V,re){B.object(O)&&!B.array(O)&&(V=Y,Y=null);var le=ce(O,Y,re);for(var fe in le){fe==="wheel"&&(fe=K.wheelEvent);for(var be=0,Fe=le[fe];be<Fe.length;be++){var ke=Fe[be];Ni(fe,this._actions)?this.events[S===gn.On?"on":"off"](fe,ke):B.string(this.target)?this._scopeEvents[S===gn.On?"addDelegate":"removeDelegate"](this.target,this._context,fe,ke,V):this._scopeEvents[S===gn.On?"add":"remove"](this.target,fe,ke,V)}}return this}},{key:"on",value:function(S,O,Y){return this._onOff(gn.On,S,O,Y)}},{key:"off",value:function(S,O,Y){return this._onOff(gn.Off,S,O,Y)}},{key:"set",value:function(S){var O=this._defaults;for(var Y in B.object(S)||(S={}),this.options=gr(O.base),this._actions.methodDict){var V=Y,re=this._actions.methodDict[V];this.options[V]={},this.setPerAction(V,ue(ue({},O.perAction),O.actions[V])),this[re](S[V])}for(var le in S)le!=="getRect"?B.func(this[le])&&this[le](S[le]):this.rectChecker(S.getRect);return this}},{key:"unset",value:function(){if(B.string(this.target))for(var S in this._scopeEvents.delegatedEvents)for(var O=this._scopeEvents.delegatedEvents[S],Y=O.length-1;Y>=0;Y--){var V=O[Y],re=V.selector,le=V.context,fe=V.listeners;re===this.target&&le===this._context&&O.splice(Y,1);for(var be=fe.length-1;be>=0;be--)this._scopeEvents.removeDelegate(this.target,this._context,S,fe[be][0],fe[be][1])}else this._scopeEvents.remove(this.target,"all")}}]),M}(),Fi=function(){function M(S){var O=this;a(this,M),this.list=[],this.selectorMap={},this.scope=void 0,this.scope=S,S.addListeners({"interactable:unset":function(Y){var V=Y.interactable,re=V.target,le=B.string(re)?O.selectorMap[re]:re[O.scope.id],fe=cn(le,function(be){return be===V});le.splice(fe,1)}})}return s(M,[{key:"new",value:function(S,O){O=ue(O||{},{actions:this.scope.actions});var Y=new this.scope.Interactable(S,O,this.scope.document,this.scope.events);return this.scope.addDocument(Y._doc),this.list.push(Y),B.string(S)?(this.selectorMap[S]||(this.selectorMap[S]=[]),this.selectorMap[S].push(Y)):(Y.target[this.scope.id]||Object.defineProperty(S,this.scope.id,{value:[],configurable:!0}),S[this.scope.id].push(Y)),this.scope.fire("interactable:new",{target:S,options:O,interactable:Y,win:this.scope._win}),Y}},{key:"getExisting",value:function(S,O){var Y=O&&O.context||this.scope.document,V=B.string(S),re=V?this.selectorMap[S]:S[this.scope.id];if(re)return Ct(re,function(le){return le._context===Y&&(V||le.inContext(S))})}},{key:"forEachMatch",value:function(S,O){for(var Y=0,V=this.list;Y<V.length;Y++){var re=V[Y],le=void 0;if((B.string(re.target)?B.element(S)&&ie(S,re.target):S===re.target)&&re.inContext(S)&&(le=O(re)),le!==void 0)return le}}}]),M}(),Hr=function(){function M(){var S=this;a(this,M),this.id="__interact_scope_".concat(Math.floor(100*Math.random())),this.isInitialized=!1,this.listenerMaps=[],this.browser=K,this.defaults=gr(Ji),this.Eventable=La,this.actions={map:{},phases:{start:!0,move:!0,end:!0},methodDict:{},phaselessTypes:{}},this.interactStatic=function(Y){var V=function re(le,fe){var be=Y.interactables.getExisting(le,fe);return be||((be=Y.interactables.new(le,fe)).events.global=re.globalEvents),be};return V.getPointerAverage=pt,V.getTouchBBox=_t,V.getTouchDistance=vt,V.getTouchAngle=sn,V.getElementRect=pe,V.getElementClientRect=ne,V.matchesSelector=ie,V.closest=z,V.globalEvents={},V.version="1.10.27",V.scope=Y,V.use=function(re,le){return this.scope.usePlugin(re,le),this},V.isSet=function(re,le){return!!this.scope.interactables.get(re,le&&le.context)},V.on=Tt(function(re,le,fe){if(B.string(re)&&re.search(" ")!==-1&&(re=re.trim().split(/ +/)),B.array(re)){for(var be=0,Fe=re;be<Fe.length;be++){var ke=Fe[be];this.on(ke,le,fe)}return this}if(B.object(re)){for(var Re in re)this.on(Re,re[Re],le);return this}return Ni(re,this.scope.actions)?this.globalEvents[re]?this.globalEvents[re].push(le):this.globalEvents[re]=[le]:this.scope.events.add(this.scope.document,re,le,{options:fe}),this},"The interact.on() method is being deprecated"),V.off=Tt(function(re,le,fe){if(B.string(re)&&re.search(" ")!==-1&&(re=re.trim().split(/ +/)),B.array(re)){for(var be=0,Fe=re;be<Fe.length;be++){var ke=Fe[be];this.off(ke,le,fe)}return this}if(B.object(re)){for(var Re in re)this.off(Re,re[Re],le);return this}var We;return Ni(re,this.scope.actions)?re in this.globalEvents&&(We=this.globalEvents[re].indexOf(le))!==-1&&this.globalEvents[re].splice(We,1):this.scope.events.remove(this.scope.document,re,le,fe),this},"The interact.off() method is being deprecated"),V.debug=function(){return this.scope},V.supportsTouch=function(){return K.supportsTouch},V.supportsPointerEvent=function(){return K.supportsPointerEvent},V.stop=function(){for(var re=0,le=this.scope.interactions.list;re<le.length;re++)le[re].stop();return this},V.pointerMoveTolerance=function(re){return B.number(re)?(this.scope.interactions.pointerMoveTolerance=re,this):this.scope.interactions.pointerMoveTolerance},V.addDocument=function(re,le){this.scope.addDocument(re,le)},V.removeDocument=function(re){this.scope.removeDocument(re)},V}(this),this.InteractEvent=Vi,this.Interactable=void 0,this.interactables=new Fi(this),this._win=void 0,this.document=void 0,this.window=void 0,this.documents=[],this._plugins={list:[],map:{}},this.onWindowUnload=function(Y){return S.removeDocument(Y.target)};var O=this;this.Interactable=function(Y){c(re,Y);var V=d(re);function re(){return a(this,re),V.apply(this,arguments)}return s(re,[{key:"_defaults",get:function(){return O.defaults}},{key:"set",value:function(le){return m(A(re.prototype),"set",this).call(this,le),O.fire("interactable:set",{options:le,interactable:this}),this}},{key:"unset",value:function(){m(A(re.prototype),"unset",this).call(this);var le=O.interactables.list.indexOf(this);le<0||(O.interactables.list.splice(le,1),O.fire("interactable:unset",{interactable:this}))}}]),re}(ti)}return s(M,[{key:"addListeners",value:function(S,O){this.listenerMaps.push({id:O,map:S})}},{key:"fire",value:function(S,O){for(var Y=0,V=this.listenerMaps;Y<V.length;Y++){var re=V[Y].map[S];if(re&&re(O,this,S)===!1)return!1}}},{key:"init",value:function(S){return this.isInitialized?this:function(O,Y){return O.isInitialized=!0,B.window(Y)&&_(Y),L.init(Y),K.init(Y),nr.init(Y),O.window=Y,O.document=Y.document,O.usePlugin(Lr),O.usePlugin(Gc),O}(this,S)}},{key:"pluginIsInstalled",value:function(S){var O=S.id;return O?!!this._plugins.map[O]:this._plugins.list.indexOf(S)!==-1}},{key:"usePlugin",value:function(S,O){if(!this.isInitialized)return this;if(this.pluginIsInstalled(S))return this;if(S.id&&(this._plugins.map[S.id]=S),this._plugins.list.push(S),S.install&&S.install(this,O),S.listeners&&S.before){for(var Y=0,V=this.listenerMaps.length,re=S.before.reduce(function(fe,be){return fe[be]=!0,fe[wr(be)]=!0,fe},{});Y<V;Y++){var le=this.listenerMaps[Y].id;if(le&&(re[le]||re[wr(le)]))break}this.listenerMaps.splice(Y,0,{id:S.id,map:S.listeners})}else S.listeners&&this.listenerMaps.push({id:S.id,map:S.listeners});return this}},{key:"addDocument",value:function(S,O){if(this.getDocIndex(S)!==-1)return!1;var Y=b(S);O=O?ue({},O):{},this.documents.push({doc:S,options:O}),this.events.documents.push(S),S!==this.document&&this.events.add(Y,"unload",this.onWindowUnload),this.fire("scope:add-document",{doc:S,window:Y,scope:this,options:O})}},{key:"removeDocument",value:function(S){var O=this.getDocIndex(S),Y=b(S),V=this.documents[O].options;this.events.remove(Y,"unload",this.onWindowUnload),this.documents.splice(O,1),this.events.documents.splice(O,1),this.fire("scope:remove-document",{doc:S,window:Y,scope:this,options:V})}},{key:"getDocIndex",value:function(S){for(var O=0;O<this.documents.length;O++)if(this.documents[O].doc===S)return O;return-1}},{key:"getDocOptions",value:function(S){var O=this.getDocIndex(S);return O===-1?null:this.documents[O].options}},{key:"now",value:function(){return(this.window.Date||Date).now()}}]),M}();function wr(M){return M&&M.replace(/\/.*$/,"")}var vr=new Hr,Br=vr.interactStatic,$i=typeof globalThis<"u"?globalThis:window;vr.init($i);var Ro=Object.freeze({__proto__:null,edgeTarget:function(){},elements:function(){},grid:function(M){var S=[["x","y"],["left","top"],["right","bottom"],["width","height"]].filter(function(Y){var V=Y[0],re=Y[1];return V in M||re in M}),O=function(Y,V){for(var re=M.range,le=M.limits,fe=le===void 0?{left:-1/0,right:1/0,top:-1/0,bottom:1/0}:le,be=M.offset,Fe=be===void 0?{x:0,y:0}:be,ke={range:re,grid:M,x:null,y:null},Re=0;Re<S.length;Re++){var We=S[Re],At=We[0],lt=We[1],ht=Math.round((Y-Fe.x)/M[At]),St=Math.round((V-Fe.y)/M[lt]);ke[At]=Math.max(fe.left,Math.min(fe.right,ht*M[At]+Fe.x)),ke[lt]=Math.max(fe.top,Math.min(fe.bottom,St*M[lt]+Fe.y))}return ke};return O.grid=M,O.coordFields=S,O}}),U={id:"snappers",install:function(M){var S=M.interactStatic;S.snappers=ue(S.snappers||{},Ro),S.createSnapGrid=S.snappers.grid}},oe=U,we={start:function(M){var S=M.state,O=M.rect,Y=M.edges,V=M.pageCoords,re=S.options,le=re.ratio,fe=re.enabled,be=S.options,Fe=be.equalDelta,ke=be.modifiers;le==="preserve"&&(le=O.width/O.height),S.startCoords=ue({},V),S.startRect=ue({},O),S.ratio=le,S.equalDelta=Fe;var Re=S.linkedEdges={top:Y.top||Y.left&&!Y.bottom,left:Y.left||Y.top&&!Y.right,bottom:Y.bottom||Y.right&&!Y.top,right:Y.right||Y.bottom&&!Y.left};if(S.xIsPrimaryAxis=!(!Y.left&&!Y.right),S.equalDelta){var We=(Re.left?1:-1)*(Re.top?1:-1);S.edgeSign={x:We,y:We}}else S.edgeSign={x:Re.left?-1:1,y:Re.top?-1:1};if(fe!==!1&&ue(Y,Re),ke!=null&&ke.length){var At=new Sa(M.interaction);At.copyFrom(M.interaction.modification),At.prepareStates(ke),S.subModification=At,At.startAll(r({},M))}},set:function(M){var S=M.state,O=M.rect,Y=M.coords,V=S.linkedEdges,re=ue({},Y),le=S.equalDelta?De:je;if(ue(M.edges,V),le(S,S.xIsPrimaryAxis,Y,O),!S.subModification)return null;var fe=ue({},O);Q(V,fe,{x:Y.x-re.x,y:Y.y-re.y});var be=S.subModification.setAll(r(r({},M),{},{rect:fe,edges:V,pageCoords:Y,prevCoords:Y,prevRect:fe})),Fe=be.delta;return be.changed&&(le(S,Math.abs(Fe.x)>Math.abs(Fe.y),be.coords,be.rect),ue(Y,be.coords)),be.eventProps},defaults:{ratio:"preserve",equalDelta:!1,modifiers:[],enabled:!1}};function De(M,S,O){var Y=M.startCoords,V=M.edgeSign;S?O.y=Y.y+(O.x-Y.x)*V.y:O.x=Y.x+(O.y-Y.y)*V.x}function je(M,S,O,Y){var V=M.startRect,re=M.startCoords,le=M.ratio,fe=M.edgeSign;if(S){var be=Y.width/le;O.y=re.y+(be-V.height)*fe.y}else{var Fe=Y.height*le;O.x=re.x+(Fe-V.width)*fe.x}}var nt=ga(we,"aspectRatio"),ut=function(){};ut._defaults={};var Ht=ut;function Qt(M,S,O){return B.func(M)?Le(M,S.interactable,S.element,[O.x,O.y,S]):Le(M,S.interactable,S.element)}var un={start:function(M){var S=M.rect,O=M.startOffset,Y=M.state,V=M.interaction,re=M.pageCoords,le=Y.options,fe=le.elementRect,be=ue({left:0,top:0,right:0,bottom:0},le.offset||{});if(S&&fe){var Fe=Qt(le.restriction,V,re);if(Fe){var ke=Fe.right-Fe.left-S.width,Re=Fe.bottom-Fe.top-S.height;ke<0&&(be.left+=ke,be.right+=ke),Re<0&&(be.top+=Re,be.bottom+=Re)}be.left+=O.left-S.width*fe.left,be.top+=O.top-S.height*fe.top,be.right+=O.right-S.width*(1-fe.right),be.bottom+=O.bottom-S.height*(1-fe.bottom)}Y.offset=be},set:function(M){var S=M.coords,O=M.interaction,Y=M.state,V=Y.options,re=Y.offset,le=Qt(V.restriction,O,S);if(le){var fe=function(be){return!be||"left"in be&&"top"in be||((be=ue({},be)).left=be.x||0,be.top=be.y||0,be.right=be.right||be.left+be.width,be.bottom=be.bottom||be.top+be.height),be}(le);S.x=Math.max(Math.min(fe.right-re.right,S.x),fe.left+re.left),S.y=Math.max(Math.min(fe.bottom-re.bottom,S.y),fe.top+re.top)}},defaults:{restriction:null,elementRect:null,offset:null,endOnly:!1,enabled:!1}},Bn=ga(un,"restrict"),Gn={top:1/0,left:1/0,bottom:-1/0,right:-1/0},Yr={top:-1/0,left:-1/0,bottom:1/0,right:1/0};function si(M,S){for(var O=0,Y=["top","left","bottom","right"];O<Y.length;O++){var V=Y[O];V in M||(M[V]=S[V])}return M}var Ar={noInner:Gn,noOuter:Yr,start:function(M){var S,O=M.interaction,Y=M.startOffset,V=M.state,re=V.options;re&&(S=Me(Qt(re.offset,O,O.coords.start.page))),S=S||{x:0,y:0},V.offset={top:S.y+Y.top,left:S.x+Y.left,bottom:S.y-Y.bottom,right:S.x-Y.right}},set:function(M){var S=M.coords,O=M.edges,Y=M.interaction,V=M.state,re=V.offset,le=V.options;if(O){var fe=ue({},S),be=Qt(le.inner,Y,fe)||{},Fe=Qt(le.outer,Y,fe)||{};si(be,Gn),si(Fe,Yr),O.top?S.y=Math.min(Math.max(Fe.top+re.top,fe.y),be.top+re.top):O.bottom&&(S.y=Math.max(Math.min(Fe.bottom+re.bottom,fe.y),be.bottom+re.bottom)),O.left?S.x=Math.min(Math.max(Fe.left+re.left,fe.x),be.left+re.left):O.right&&(S.x=Math.max(Math.min(Fe.right+re.right,fe.x),be.right+re.right))}},defaults:{inner:null,outer:null,offset:null,endOnly:!1,enabled:!1}},Oi=ga(Ar,"restrictEdges"),yi=ue({get elementRect(){return{top:0,left:0,bottom:1,right:1}},set elementRect(M){}},un.defaults),ea=ga({start:un.start,set:un.set,defaults:yi},"restrictRect"),ql={width:-1/0,height:-1/0},us={width:1/0,height:1/0},Kl=ga({start:function(M){return Ar.start(M)},set:function(M){var S=M.interaction,O=M.state,Y=M.rect,V=M.edges,re=O.options;if(V){var le=Pe(Qt(re.min,S,M.coords))||ql,fe=Pe(Qt(re.max,S,M.coords))||us;O.options={endOnly:re.endOnly,inner:ue({},Ar.noInner),outer:ue({},Ar.noOuter)},V.top?(O.options.inner.top=Y.bottom-le.height,O.options.outer.top=Y.bottom-fe.height):V.bottom&&(O.options.inner.bottom=Y.top+le.height,O.options.outer.bottom=Y.top+fe.height),V.left?(O.options.inner.left=Y.right-le.width,O.options.outer.left=Y.right-fe.width):V.right&&(O.options.inner.right=Y.left+le.width,O.options.outer.right=Y.left+fe.width),Ar.set(M),O.options=re}},defaults:{min:null,max:null,endOnly:!1,enabled:!1}},"restrictSize"),Wc={start:function(M){var S,O=M.interaction,Y=M.interactable,V=M.element,re=M.rect,le=M.state,fe=M.startOffset,be=le.options,Fe=be.offsetWithOrigin?function(We){var At=We.interaction.element,lt=Me(Le(We.state.options.origin,null,null,[At])),ht=lt||te(We.interactable,At,We.interaction.prepared.name);return ht}(M):{x:0,y:0};if(be.offset==="startCoords")S={x:O.coords.start.page.x,y:O.coords.start.page.y};else{var ke=Le(be.offset,Y,V,[O]);(S=Me(ke)||{x:0,y:0}).x+=Fe.x,S.y+=Fe.y}var Re=be.relativePoints;le.offsets=re&&Re&&Re.length?Re.map(function(We,At){return{index:At,relativePoint:We,x:fe.left-re.width*We.x+S.x,y:fe.top-re.height*We.y+S.y}}):[{index:0,relativePoint:null,x:S.x,y:S.y}]},set:function(M){var S=M.interaction,O=M.coords,Y=M.state,V=Y.options,re=Y.offsets,le=te(S.interactable,S.element,S.prepared.name),fe=ue({},O),be=[];V.offsetWithOrigin||(fe.x-=le.x,fe.y-=le.y);for(var Fe=0,ke=re;Fe<ke.length;Fe++)for(var Re=ke[Fe],We=fe.x-Re.x,At=fe.y-Re.y,lt=0,ht=V.targets.length;lt<ht;lt++){var St=V.targets[lt],wt=void 0;(wt=B.func(St)?St(We,At,S._proxy,Re,lt):St)&&be.push({x:(B.number(wt.x)?wt.x:We)+Re.x,y:(B.number(wt.y)?wt.y:At)+Re.y,range:B.number(wt.range)?wt.range:V.range,source:St,index:lt,offset:Re})}for(var Vt={target:null,inRange:!1,distance:0,range:0,delta:{x:0,y:0}},An=0;An<be.length;An++){var dn=be[An],$t=dn.range,Ft=dn.x-fe.x,Sn=dn.y-fe.y,vn=Z(Ft,Sn),rr=vn<=$t;$t===1/0&&Vt.inRange&&Vt.range!==1/0&&(rr=!1),Vt.target&&!(rr?Vt.inRange&&$t!==1/0?vn/$t<Vt.distance/Vt.range:$t===1/0&&Vt.range!==1/0||vn<Vt.distance:!Vt.inRange&&vn<Vt.distance)||(Vt.target=dn,Vt.distance=vn,Vt.range=$t,Vt.inRange=rr,Vt.delta.x=Ft,Vt.delta.y=Sn)}return Vt.inRange&&(O.x=Vt.target.x,O.y=Vt.target.y),Y.closest=Vt,Vt},defaults:{range:1/0,targets:null,offset:null,offsetWithOrigin:!0,origin:null,relativePoints:null,endOnly:!1,enabled:!1}},pd=ga(Wc,"snap"),cs={start:function(M){var S=M.state,O=M.edges,Y=S.options;if(!O)return null;M.state={options:{targets:null,relativePoints:[{x:O.left?0:1,y:O.top?0:1}],offset:Y.offset||"self",origin:{x:0,y:0},range:Y.range}},S.targetFields=S.targetFields||[["width","height"],["x","y"]],Wc.start(M),S.offsets=M.state.offsets,M.state=S},set:function(M){var S=M.interaction,O=M.state,Y=M.coords,V=O.options,re=O.offsets,le={x:Y.x-re[0].x,y:Y.y-re[0].y};O.options=ue({},V),O.options.targets=[];for(var fe=0,be=V.targets||[];fe<be.length;fe++){var Fe=be[fe],ke=void 0;if(ke=B.func(Fe)?Fe(le.x,le.y,S):Fe){for(var Re=0,We=O.targetFields;Re<We.length;Re++){var At=We[Re],lt=At[0],ht=At[1];if(lt in ke||ht in ke){ke.x=ke[lt],ke.y=ke[ht];break}}O.options.targets.push(ke)}}var St=Wc.set(M);return O.options=V,St},defaults:{range:1/0,targets:null,offset:null,endOnly:!1,enabled:!1}},Xc=ga(cs,"snapSize"),Gl={aspectRatio:nt,restrictEdges:Oi,restrict:Bn,restrictRect:ea,restrictSize:Kl,snapEdges:ga({start:function(M){var S=M.edges;return S?(M.state.targetFields=M.state.targetFields||[[S.left?"left":"right",S.top?"top":"bottom"]],cs.start(M)):null},set:cs.set,defaults:ue(gr(cs.defaults),{targets:void 0,range:void 0,offset:{x:0,y:0}})},"snapEdges"),snap:pd,snapSize:Xc,spring:Ht,avoid:Ht,transform:Ht,rubberband:Ht},Hu={id:"modifiers",install:function(M){var S=M.interactStatic;for(var O in M.usePlugin(_o),M.usePlugin(oe),S.modifiers=Gl,Gl){var Y=Gl[O],V=Y._defaults,re=Y._methods;V._methods=re,M.defaults.perAction[O]=V}}},ta=Hu,Yu=function(M){c(O,M);var S=d(O);function O(Y,V,re,le,fe,be){var Fe;if(a(this,O),Be(h(Fe=S.call(this,fe)),re),re!==V&&Be(h(Fe),V),Fe.timeStamp=be,Fe.originalEvent=re,Fe.type=Y,Fe.pointerId=Ge(V),Fe.pointerType=xt(V),Fe.target=le,Fe.currentTarget=null,Y==="tap"){var ke=fe.getPointerIndex(V);Fe.dt=Fe.timeStamp-fe.pointers[ke].downTime;var Re=Fe.timeStamp-fe.tapTime;Fe.double=!!fe.prevTap&&fe.prevTap.type!=="doubletap"&&fe.prevTap.target===Fe.target&&Re<500}else Y==="doubletap"&&(Fe.dt=V.timeStamp-fe.tapTime,Fe.double=!0);return Fe}return s(O,[{key:"_subtractOrigin",value:function(Y){var V=Y.x,re=Y.y;return this.pageX-=V,this.pageY-=re,this.clientX-=V,this.clientY-=re,this}},{key:"_addOrigin",value:function(Y){var V=Y.x,re=Y.y;return this.pageX+=V,this.pageY+=re,this.clientX+=V,this.clientY+=re,this}},{key:"preventDefault",value:function(){this.originalEvent.preventDefault()}}]),O}(bt),As={id:"pointer-events/base",before:["inertia","modifiers","auto-start","actions"],install:function(M){M.pointerEvents=As,M.defaults.actions.pointerEvents=As.defaults,ue(M.actions.phaselessTypes,As.types)},listeners:{"interactions:new":function(M){var S=M.interaction;S.prevTap=null,S.tapTime=0},"interactions:update-pointer":function(M){var S=M.down,O=M.pointerInfo;!S&&O.hold||(O.hold={duration:1/0,timeout:null})},"interactions:move":function(M,S){var O=M.interaction,Y=M.pointer,V=M.event,re=M.eventTarget;M.duplicate||O.pointerIsDown&&!O.pointerWasMoved||(O.pointerIsDown&&na(M),Qo({interaction:O,pointer:Y,event:V,eventTarget:re,type:"move"},S))},"interactions:down":function(M,S){(function(O,Y){for(var V=O.interaction,re=O.pointer,le=O.event,fe=O.eventTarget,be=O.pointerIndex,Fe=V.pointers[be].hold,ke=he(fe),Re={interaction:V,pointer:re,event:le,eventTarget:fe,type:"hold",targets:[],path:ke,node:null},We=0;We<ke.length;We++){var At=ke[We];Re.node=At,Y.fire("pointerEvents:collect-targets",Re)}if(Re.targets.length){for(var lt=1/0,ht=0,St=Re.targets;ht<St.length;ht++){var wt=St[ht].eventable.options.holdDuration;wt<lt&&(lt=wt)}Fe.duration=lt,Fe.timeout=setTimeout(function(){Qo({interaction:V,eventTarget:fe,pointer:re,event:le,type:"hold"},Y)},lt)}})(M,S),Qo(M,S)},"interactions:up":function(M,S){na(M),Qo(M,S),function(O,Y){var V=O.interaction,re=O.pointer,le=O.event,fe=O.eventTarget;V.pointerWasMoved||Qo({interaction:V,eventTarget:fe,pointer:re,event:le,type:"tap"},Y)}(M,S)},"interactions:cancel":function(M,S){na(M),Qo(M,S)}},PointerEvent:Yu,fire:Qo,collectEventTargets:md,defaults:{holdDuration:600,ignoreFrom:null,allowFrom:null,origin:{x:0,y:0}},types:{down:!0,move:!0,up:!0,cancel:!0,tap:!0,doubletap:!0,hold:!0}};function Qo(M,S){var O=M.interaction,Y=M.pointer,V=M.event,re=M.eventTarget,le=M.type,fe=M.targets,be=fe===void 0?md(M,S):fe,Fe=new Yu(le,Y,V,re,O,S.now());S.fire("pointerEvents:new",{pointerEvent:Fe});for(var ke={interaction:O,pointer:Y,event:V,eventTarget:re,targets:be,type:le,pointerEvent:Fe},Re=0;Re<be.length;Re++){var We=be[Re];for(var At in We.props||{})Fe[At]=We.props[At];var lt=te(We.eventable,We.node);if(Fe._subtractOrigin(lt),Fe.eventable=We.eventable,Fe.currentTarget=We.node,We.eventable.fire(Fe),Fe._addOrigin(lt),Fe.immediatePropagationStopped||Fe.propagationStopped&&Re+1<be.length&&be[Re+1].node!==Fe.currentTarget)break}if(S.fire("pointerEvents:fired",ke),le==="tap"){var ht=Fe.double?Qo({interaction:O,pointer:Y,event:V,eventTarget:re,type:"doubletap"},S):Fe;O.prevTap=ht,O.tapTime=ht.timeStamp}return Fe}function md(M,S){var O=M.interaction,Y=M.pointer,V=M.event,re=M.eventTarget,le=M.type,fe=O.getPointerIndex(Y),be=O.pointers[fe];if(le==="tap"&&(O.pointerWasMoved||!be||be.downTarget!==re))return[];for(var Fe=he(re),ke={interaction:O,pointer:Y,event:V,eventTarget:re,type:le,path:Fe,targets:[],node:null},Re=0;Re<Fe.length;Re++){var We=Fe[Re];ke.node=We,S.fire("pointerEvents:collect-targets",ke)}return le==="hold"&&(ke.targets=ke.targets.filter(function(At){var lt,ht;return At.eventable.options.holdDuration===((lt=O.pointers[fe])==null||(ht=lt.hold)==null?void 0:ht.duration)})),ke.targets}function na(M){var S=M.interaction,O=M.pointerIndex,Y=S.pointers[O].hold;Y&&Y.timeout&&(clearTimeout(Y.timeout),Y.timeout=null)}var Wl=Object.freeze({__proto__:null,default:As});function gd(M){var S=M.interaction;S.holdIntervalHandle&&(clearInterval(S.holdIntervalHandle),S.holdIntervalHandle=null)}var im={id:"pointer-events/holdRepeat",install:function(M){M.usePlugin(As);var S=M.pointerEvents;S.defaults.holdRepeatInterval=0,S.types.holdrepeat=M.actions.phaselessTypes.holdrepeat=!0},listeners:["move","up","cancel","endall"].reduce(function(M,S){return M["pointerEvents:".concat(S)]=gd,M},{"pointerEvents:new":function(M){var S=M.pointerEvent;S.type==="hold"&&(S.count=(S.count||0)+1)},"pointerEvents:fired":function(M,S){var O=M.interaction,Y=M.pointerEvent,V=M.eventTarget,re=M.targets;if(Y.type==="hold"&&re.length){var le=re[0].eventable.options.holdRepeatInterval;le<=0||(O.holdIntervalHandle=setTimeout(function(){S.pointerEvents.fire({interaction:O,eventTarget:V,type:"hold",pointer:Y,event:Y},S)},le))}}})},jo=im,Jc={id:"pointer-events/interactableTargets",install:function(M){var S=M.Interactable;S.prototype.pointerEvents=function(Y){return ue(this.events.options,Y),this};var O=S.prototype._backCompatOption;S.prototype._backCompatOption=function(Y,V){var re=O.call(this,Y,V);return re===this&&(this.events.options[Y]=V),re}},listeners:{"pointerEvents:collect-targets":function(M,S){var O=M.targets,Y=M.node,V=M.type,re=M.eventTarget;S.interactables.forEachMatch(Y,function(le){var fe=le.events,be=fe.options;fe.types[V]&&fe.types[V].length&&le.testIgnoreAllow(be,Y,re)&&O.push({node:Y,eventable:fe,props:{interactable:le}})})},"interactable:new":function(M){var S=M.interactable;S.events.getRect=function(O){return S.getRect(O)}},"interactable:set":function(M,S){var O=M.interactable,Y=M.options;ue(O.events.options,S.pointerEvents.defaults),ue(O.events.options,Y.pointerEvents||{})}}},th=Jc,nh={id:"pointer-events",install:function(M){M.usePlugin(Wl),M.usePlugin(jo),M.usePlugin(th)}},Ru=nh,Zc={id:"reflow",install:function(M){var S=M.Interactable;M.actions.phases.reflow=!0,S.prototype.reflow=function(O){return function(Y,V,re){for(var le=Y.getAllElements(),fe=re.window.Promise,be=fe?[]:null,Fe=function(){var Re=le[ke],We=Y.getRect(Re);if(!We)return 1;var At,lt=Ct(re.interactions.list,function(wt){return wt.interacting()&&wt.interactable===Y&&wt.element===Re&&wt.prepared.name===V.name});if(lt)lt.move(),be&&(At=lt._reflowPromise||new fe(function(wt){lt._reflowResolve=wt}));else{var ht=Pe(We),St=function(wt){return{coords:wt,get page(){return this.coords.page},get client(){return this.coords.client},get timeStamp(){return this.coords.timeStamp},get pageX(){return this.coords.page.x},get pageY(){return this.coords.page.y},get clientX(){return this.coords.client.x},get clientY(){return this.coords.client.y},get pointerId(){return this.coords.pointerId},get target(){return this.coords.target},get type(){return this.coords.type},get pointerType(){return this.coords.pointerType},get buttons(){return this.coords.buttons},preventDefault:function(){}}}({page:{x:ht.x,y:ht.y},client:{x:ht.x,y:ht.y},timeStamp:re.now()});At=function(wt,Vt,An,dn,$t){var Ft=wt.interactions.new({pointerType:"reflow"}),Sn={interaction:Ft,event:$t,pointer:$t,eventTarget:An,phase:"reflow"};Ft.interactable=Vt,Ft.element=An,Ft.prevEvent=$t,Ft.updatePointer($t,$t,An,!0),Se(Ft.coords.delta),Oe(Ft.prepared,dn),Ft._doPhase(Sn);var vn=wt.window,rr=vn.Promise,Di=rr?new rr(function(wo){Ft._reflowResolve=wo}):void 0;return Ft._reflowPromise=Di,Ft.start(dn,Vt,An),Ft._interacting?(Ft.move(Sn),Ft.end($t)):(Ft.stop(),Ft._reflowResolve()),Ft.removePointer($t,$t),Di}(re,Y,Re,V,St)}be&&be.push(At)},ke=0;ke<le.length&&!Fe();ke++);return be&&fe.all(be).then(function(){return Y})}(this,O,M)}},listeners:{"interactions:stop":function(M,S){var O=M.interaction;O.pointerType==="reflow"&&(O._reflowResolve&&O._reflowResolve(),function(Y,V){Y.splice(Y.indexOf(V),1)}(S.interactions.list,O))}}},bo=Zc;if(Br.use(qs),Br.use(Vl),Br.use(Ru),Br.use(Ea),Br.use(ta),Br.use(zs),Br.use(ha),Br.use(pa),Br.use(bo),Br.default=Br,i(e)==="object"&&e)try{e.exports=Br}catch{}return Br.default=Br,Br})}(wm,wm.exports)),wm.exports}var hie=fie();const Pv=uh(hie),pie={class:"flex items-center"},mie={class:"ml-1 block truncate"},gie={class:"absolute right-2"},vie={__name:"HamburgerItem",props:{name:String,draggable:{type:Boolean,default:!1},itemCount:Number,index:Number,reset:Boolean},emits:["reorder","reset"],setup(e,{emit:t}){const n=e,r=t,i=l.ref({x:0,y:0});a(),l.watch(()=>n.itemCount,()=>{a()}),l.watch(()=>n.reset,()=>{a()});function a(){const s=o();Pv(`.draggable${n.index}`).draggable({listeners:{start(u){i.value.x=0,i.value.y=0},move(u){const c=s.findIndex(f=>i.value.y>f-1&&i.value.y<f+1);i.value.x+=u.dx,i.value.y+=u.dy;const A=s.find(f=>i.value.y>f-1&&i.value.y<f+1);A||A===0?r("reorder",s.indexOf(A),c):u.target.style.transform=`translate(${i.value.x}px, ${i.value.y}px)`},end(){r("reset")}},modifiers:[Pv.modifiers.snap({targets:s.map(u=>({x:0,y:u})),offset:"startCoords"})]})}function o(){const s=[];for(let u=0;u<n.itemCount;u++){const c=u-n.index;s.push(c*40)}return s}return(s,u)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["cursor-pointer input-block my-2 px-5 py-1 rounded-lg relative",e.draggable?`draggable${e.index} select-none`:"","hover:white-bg-hover dark:hover:dark-bg-hover"])},[l.createElementVNode("span",pie,[e.draggable?(l.openBlock(),l.createBlock(l.unref(Ine),{key:0,class:"icon-md flex-shrink-0 mr-4"})):l.createCommentVNode("",!0),l.createElementVNode("span",mie,l.toDisplayString(e.name),1),l.createElementVNode("span",gie,[l.renderSlot(s.$slots,"right")])])],2))}},yie={props:{radioValue:{type:String,required:!0},label:{type:String,default:""}},methods:{onChange(e){this.$emit("update:modelValue",e.target.value)}}},_ie=["value","checked"],bie={key:0,class:"ml-2 text-sm"};function wie(e,t,n,r,i,a){return l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createElementVNode("input",l.mergeProps({type:"radio",class:["icon std-blue-text focus:std-blue-ring",{disabled:e.$attrs.readonly}],value:n.radioValue,checked:n.radioValue===e.$attrs.modelValue},e.$attrs,{onInput:t[0]||(t[0]=(...o)=>a.onChange&&a.onChange(...o))}),null,16,_ie),n.label?(l.openBlock(),l.createElementBlock("span",bie,l.toDisplayString(n.label),1)):l.createCommentVNode("",!0)],64)}const ko=ar(yie,[["render",wie]]),Bie=["data-active"],xie={class:"mt-2 sm:col-span-2 sm:mt-0"},Cie={class:"flex justify-center rounded-lg border-2 border-dashed px-6 py-10 std-white-border"},Sie={class:"text-center"},kie={class:"mt-4 flex text-sm leading-6"},Mie={for:"file-upload",class:"relative cursor-pointer rounded-md font-bold"},Eie=["accept"],Lie={class:"text-xs leading-5"},G6={__name:"UploadFile",props:{formats:{type:Array,default:()=>[".json"]},readerFunction:{type:String,default:"text"}},emits:["upload","notify"],setup(e,{emit:t}){const n=e,r=t,i=["dragenter","dragover","dragleave","drop","notify"],a=l.ref(!1);function o(c){if(!c.target.files||!c.target.files.length)return;const A=c.target.files[0],f=A.name.substring(A.name.lastIndexOf("."),A.name.length);if(!n.formats.some(d=>d===f)){r("notify","Error","Invalid file format",!1);return}const h=new FileReader;h.onload=d=>{const m=d.target.result;r("upload",m)},n.readerFunction==="data"?h.readAsDataURL(A):h.readAsText(A)}function s(c){o({target:c.dataTransfer}),a.value=!1}function u(c){c.preventDefault()}return l.onMounted(()=>{i.forEach(c=>{document.getElementById("upload-drop").addEventListener(c,u)})}),(c,A)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["w-full",a.value?"white-bg-hover dark:dark-bg-hover":""]),id:"upload-drop","data-active":a.value,onDrop:l.withModifiers(s,["prevent"]),onDragenter:A[0]||(A[0]=l.withModifiers(f=>a.value=!0,["prevent"])),onDragover:A[1]||(A[1]=l.withModifiers(f=>a.value=!0,["prevent"])),onDragleave:A[2]||(A[2]=l.withModifiers(f=>a.value=!1,["prevent"]))},[l.createElementVNode("div",xie,[l.createElementVNode("div",Cie,[l.createElementVNode("div",Sie,[l.createElementVNode("div",kie,[l.createElementVNode("label",Mie,[A[3]||(A[3]=l.createElementVNode("span",null,"Click here to upload a file",-1)),l.createElementVNode("input",{id:"file-upload",name:"file-upload",type:"file",class:"sr-only",accept:e.formats.join(", "),onChange:o},null,40,Eie)]),A[4]||(A[4]=l.createElementVNode("p",{class:"pl-1"},"or drop the file here",-1))]),l.createElementVNode("p",Lie," Accepts "+l.toDisplayString(e.formats.join(" "))+" formats ",1)])])])],42,Bie))}},Tie=["id"],zu=ar(l.defineComponent({__name:"Tooltip",props:{tooltip:{type:String,default:""},showingTooltip:{type:Boolean,default:!1},id:{type:String,default:"tooltip"},direction:{type:String,default:"bottom"}},setup(e){const t=e;return(n,r)=>(l.openBlock(),l.createElementBlock("span",{id:t.id,role:"tooltip",class:l.normalizeClass(["mt-2 tooltip opacity-100 whitespace-nowrap",{hidden:!t.showingTooltip},{"bottom-5 x-center":t.direction==="top"},{"top-5 x-center":t.direction==="bottom"},{"bottom-0 left-tooltip":t.direction==="left"},{"bottom-0 right-tooltip":t.direction==="right"}])},l.toDisplayString(t.tooltip),11,Tie))}}),[["__scopeId","data-v-59ba8a5f"]]),Nie=["disabled"],Fie={key:0,class:"spinner"},sA={__name:"IconButton",props:{color:{type:String,default:"blue",validator:e=>["red","green","blue"].includes(e)},disabled:{type:Boolean,default:!1},dense:{type:Boolean,default:!1},tooltip:{type:String,default:""},tooltipDirection:{type:String,default:"bottom"},loading:{type:Boolean,default:!1}},setup(e){const t=l.ref(!1),n=e;function r(){n.tooltip&&(t.value=!0)}function i(){t.value=!1}return(a,o)=>(l.openBlock(),l.createElementBlock("button",{class:l.normalizeClass(["circle-btn relative",{"p-1.5":e.dense},{"std-btn-blue":e.color==="blue"},{"std-btn-red":e.color==="red"},{"std-btn-green":e.color==="green"}]),disabled:e.disabled||e.loading,onMouseover:r,onMouseout:i},[e.loading?(l.openBlock(),l.createElementBlock("div",Fie)):l.renderSlot(a.$slots,"default",{key:1}),l.createVNode(zu,{tooltip:e.tooltip,showingTooltip:t.value,direction:e.tooltipDirection},null,8,["tooltip","showingTooltip","direction"])],42,Nie))}},Oie={class:"w-full"},Die={class:"table-frame3"},Iie={class:"std-table"},Uie={key:0},Pie={key:1,class:"std-table-body"},Bm={__name:"Table",props:{data:Array,hideHeader:Boolean,dense:{type:Boolean,default:!1},overflow:{type:Boolean,default:!0}},setup(e){return(t,n)=>(l.openBlock(),l.createElementBlock("div",Oie,[l.createElementVNode("div",{class:l.normalizeClass(e.dense?"":"table-frame1")},[l.createElementVNode("div",{class:l.normalizeClass(e.dense?"":e.overflow?"overflow-x-auto":"")},[l.createElementVNode("div",Die,[l.createElementVNode("div",{class:l.normalizeClass(["table-shadow",{"overflow-hidden":e.overflow}])},[l.createElementVNode("table",Iie,[l.createElementVNode("thead",{class:l.normalizeClass(e.hideHeader?"sr-only":"text-left")},[l.renderSlot(t.$slots,"header")],2),!e.data||e.data.length===0?(l.openBlock(),l.createElementBlock("tbody",Uie,n[0]||(n[0]=[l.createElementVNode("tr",null,[l.createElementVNode("td",{colspan:"100%",class:"h-24 text-center std-table-body"}," No data available ")],-1)]))):(l.openBlock(),l.createElementBlock("tbody",Pie,[l.renderSlot(t.$slots,"rows")]))]),l.renderSlot(t.$slots,"pagination")],2)])],2)],2)]))}},Hie=["colspan"],qi={__name:"TableData",props:{title:[String,Number,Array],colspan:{type:String,default:"1"},center:{type:Boolean,default:!1},right:{type:Boolean,default:!1},hover:{type:Boolean,default:!1},break:{type:Boolean,default:!1}},setup(e){const t=e;return(n,r)=>(l.openBlock(),l.createElementBlock("td",{colspan:t.colspan,class:l.normalizeClass(["table-font",{"cursor-pointer hover:white-bg-hover dark:hover:dark-bg-hover":t.hover},{"break-all":t.break}])},[l.createElementVNode("span",{class:l.normalizeClass([{"flex text-right justify-end":t.right&&!t.center},{"flex justify-center":t.center}])},[l.createTextVNode(l.toDisplayString(t.title)+" ",1),l.renderSlot(n.$slots,"default")],2)],10,Hie))}},Yie=["colspan"],ri={__name:"TableHeader",props:{title:String,colspan:{type:String,default:"1"},center:{type:Boolean,default:!1}},setup(e){const t=e;return(n,r)=>(l.openBlock(),l.createElementBlock("th",{scope:"col",colspan:t.colspan,class:"std-table-header"},[l.createElementVNode("span",{class:l.normalizeClass(["",{"flex justify-center":t.center}])},[l.createTextVNode(l.toDisplayString(t.title)+" ",1),l.renderSlot(n.$slots,"default")],2)],8,Yie))}},Rie=["disabled"],Qie={key:0,class:"mx-2 inline-block spinner"},jie={key:1,class:"flex"},Ko={__name:"TextButton",props:{text:String,color:{type:String,default:"blue",validator:e=>["red","green","blue"].includes(e)},disabled:{type:[Boolean,Number],default:!1},dense:{type:Boolean,default:!1},loading:{type:Boolean,default:!1}},setup(e){const t=e;return(n,r)=>(l.openBlock(),l.createElementBlock("button",{class:l.normalizeClass(["std-btn",{"px-3 py-1":e.dense},{"std-btn-red":e.color==="red"},{"std-btn-green":e.color==="green"},{"std-btn-blue":e.color==="blue"},{"cursor-not-allowed":e.disabled||e.loading}]),disabled:e.disabled||e.loading},[e.loading?(l.openBlock(),l.createElementBlock("div",Qie)):(l.openBlock(),l.createElementBlock("div",jie,[l.renderSlot(n.$slots,"default"),l.createTextVNode(" "+l.toDisplayString(t.text),1)]))],10,Rie))}},Vie={colspan:"3"},zie={key:0,class:"std-red-text text-sm"},qie={__name:"KeyValueEntry",props:{kvarray:Array,keyName:String,valueName:String,readonly:Boolean,error:String},emits:["update"],setup(e,{emit:t}){const n=e,r=t,i=l.ref(n.kvarray);l.watch(i,o=>{r("update",o)});function a(){const o={};o[n.keyName]="",o[n.valueName]="",i.value||(i.value=[]),i.value.push(o)}return(o,s)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createVNode(Bm,{data:[0]},{header:l.withCtx(()=>[l.createElementVNode("tr",null,[l.createVNode(ri,{title:"Name"}),l.createVNode(ri,{title:"Value"}),l.createVNode(ri,{title:" "})])]),rows:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(i.value,(u,c)=>(l.openBlock(),l.createElementBlock("tr",{key:c},[l.createVNode(qi,null,{default:l.withCtx(()=>[l.createVNode(lo,{modelValue:u[e.keyName],"onUpdate:modelValue":A=>u[e.keyName]=A,readonly:e.readonly},null,8,["modelValue","onUpdate:modelValue","readonly"])]),_:2},1024),l.createVNode(qi,null,{default:l.withCtx(()=>[l.createVNode(lo,{modelValue:u[e.valueName],"onUpdate:modelValue":A=>u[e.valueName]=A,readonly:e.readonly},null,8,["modelValue","onUpdate:modelValue","readonly"])]),_:2},1024),l.createVNode(qi,null,{default:l.withCtx(()=>[l.createVNode(sA,{color:"red",disabled:e.readonly,onClick:A=>i.value.splice(c,1)},{default:l.withCtx(()=>[l.createVNode(l.unref(Fw),{class:"icon-md","aria-hidden":"true"})]),_:2},1032,["disabled","onClick"])]),_:2},1024)]))),128)),l.createElementVNode("tr",null,[l.createElementVNode("th",Vie,[l.createVNode(Ko,{text:"Add",disabled:e.readonly,onClick:a},null,8,["disabled"])])])]),_:1}),e.error?(l.openBlock(),l.createElementBlock("div",zie,l.toDisplayString(e.error),1)):l.createCommentVNode("",!0)],64))}};var W6=typeof global=="object"&&global&&global.Object===Object&&global,Kie=typeof self=="object"&&self&&self.Object===Object&&self,nu=W6||Kie||Function("return this")(),lA=nu.Symbol,X6=Object.prototype,Gie=X6.hasOwnProperty,Wie=X6.toString,xm=lA?lA.toStringTag:void 0;function Xie(e){var t=Gie.call(e,xm),n=e[xm];try{e[xm]=void 0;var r=!0}catch{}var i=Wie.call(e);return r&&(t?e[xm]=n:delete e[xm]),i}var Jie=Object.prototype,Zie=Jie.toString;function $ie(e){return Zie.call(e)}var eae="[object Null]",tae="[object Undefined]",J6=lA?lA.toStringTag:void 0;function ch(e){return e==null?e===void 0?tae:eae:J6&&J6 in Object(e)?Xie(e):$ie(e)}function qu(e){return e!=null&&typeof e=="object"}var Dd=Array.isArray;function uA(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function Z6(e){return e}var nae="[object AsyncFunction]",rae="[object Function]",iae="[object GeneratorFunction]",aae="[object Proxy]";function Uw(e){if(!uA(e))return!1;var t=ch(e);return t==rae||t==iae||t==nae||t==aae}var Pw=nu["__core-js_shared__"],$6=function(){var e=/[^.]+$/.exec(Pw&&Pw.keys&&Pw.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function oae(e){return!!$6&&$6 in e}var sae=Function.prototype,lae=sae.toString;function Id(e){if(e!=null){try{return lae.call(e)}catch{}try{return e+""}catch{}}return""}var uae=/[\\^$.*+?()[\]{}|]/g,cae=/^\[object .+?Constructor\]$/,Aae=Function.prototype,dae=Object.prototype,fae=Aae.toString,hae=dae.hasOwnProperty,pae=RegExp("^"+fae.call(hae).replace(uae,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function mae(e){if(!uA(e)||oae(e))return!1;var t=Uw(e)?pae:cae;return t.test(Id(e))}function gae(e,t){return e==null?void 0:e[t]}function Ud(e,t){var n=gae(e,t);return mae(n)?n:void 0}var Hw=Ud(nu,"WeakMap"),eT=Object.create,vae=function(){function e(){}return function(t){if(!uA(t))return{};if(eT)return eT(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function yae(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function _ae(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var bae=800,wae=16,Bae=Date.now;function xae(e){var t=0,n=0;return function(){var r=Bae(),i=wae-(r-n);if(n=r,i>0){if(++t>=bae)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Cae(e){return function(){return e}}var Hv=function(){try{var e=Ud(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Sae=Hv?function(e,t){return Hv(e,"toString",{configurable:!0,enumerable:!1,value:Cae(t),writable:!0})}:Z6,kae=xae(Sae);function Mae(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var Eae=9007199254740991,Lae=/^(?:0|[1-9]\d*)$/;function tT(e,t){var n=typeof e;return t=t??Eae,!!t&&(n=="number"||n!="symbol"&&Lae.test(e))&&e>-1&&e%1==0&&e<t}function Yw(e,t,n){t=="__proto__"&&Hv?Hv(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Cm(e,t){return e===t||e!==e&&t!==t}var Tae=Object.prototype,Nae=Tae.hasOwnProperty;function nT(e,t,n){var r=e[t];(!(Nae.call(e,t)&&Cm(r,n))||n===void 0&&!(t in e))&&Yw(e,t,n)}function Fae(e,t,n,r){var i=!n;n||(n={});for(var a=-1,o=t.length;++a<o;){var s=t[a],u=void 0;u===void 0&&(u=e[s]),i?Yw(n,s,u):nT(n,s,u)}return n}var rT=Math.max;function Oae(e,t,n){return t=rT(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,a=rT(r.length-t,0),o=Array(a);++i<a;)o[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(o),yae(e,this,s)}}function Dae(e,t){return kae(Oae(e,t,Z6),e+"")}var Iae=9007199254740991;function iT(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Iae}function Yv(e){return e!=null&&iT(e.length)&&!Uw(e)}function Uae(e,t,n){if(!uA(n))return!1;var r=typeof t;return(r=="number"?Yv(n)&&tT(t,n.length):r=="string"&&t in n)?Cm(n[t],e):!1}function Pae(e){return Dae(function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,o=i>2?n[2]:void 0;for(a=e.length>3&&typeof a=="function"?(i--,a):void 0,o&&Uae(n[0],n[1],o)&&(a=i<3?void 0:a,i=1),t=Object(t);++r<i;){var s=n[r];s&&e(t,s,r,a)}return t})}var Hae=Object.prototype;function Rw(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Hae;return e===n}function Yae(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var Rae="[object Arguments]";function aT(e){return qu(e)&&ch(e)==Rae}var oT=Object.prototype,Qae=oT.hasOwnProperty,jae=oT.propertyIsEnumerable,Qw=aT(function(){return arguments}())?aT:function(e){return qu(e)&&Qae.call(e,"callee")&&!jae.call(e,"callee")};function Vae(){return!1}var sT=typeof Qe=="object"&&Qe&&!Qe.nodeType&&Qe,lT=sT&&typeof module=="object"&&module&&!module.nodeType&&module,zae=lT&&lT.exports===sT,uT=zae?nu.Buffer:void 0,qae=uT?uT.isBuffer:void 0,Sm=qae||Vae,Kae="[object Arguments]",Gae="[object Array]",Wae="[object Boolean]",Xae="[object Date]",Jae="[object Error]",Zae="[object Function]",$ae="[object Map]",eoe="[object Number]",toe="[object Object]",noe="[object RegExp]",roe="[object Set]",ioe="[object String]",aoe="[object WeakMap]",ooe="[object ArrayBuffer]",soe="[object DataView]",loe="[object Float32Array]",uoe="[object Float64Array]",coe="[object Int8Array]",Aoe="[object Int16Array]",doe="[object Int32Array]",foe="[object Uint8Array]",hoe="[object Uint8ClampedArray]",poe="[object Uint16Array]",moe="[object Uint32Array]",Qr={};Qr[loe]=Qr[uoe]=Qr[coe]=Qr[Aoe]=Qr[doe]=Qr[foe]=Qr[hoe]=Qr[poe]=Qr[moe]=!0,Qr[Kae]=Qr[Gae]=Qr[ooe]=Qr[Wae]=Qr[soe]=Qr[Xae]=Qr[Jae]=Qr[Zae]=Qr[$ae]=Qr[eoe]=Qr[toe]=Qr[noe]=Qr[roe]=Qr[ioe]=Qr[aoe]=!1;function goe(e){return qu(e)&&iT(e.length)&&!!Qr[ch(e)]}function jw(e){return function(t){return e(t)}}var cT=typeof Qe=="object"&&Qe&&!Qe.nodeType&&Qe,km=cT&&typeof module=="object"&&module&&!module.nodeType&&module,voe=km&&km.exports===cT,Vw=voe&&W6.process,Ah=function(){try{var e=km&&km.require&&km.require("util").types;return e||Vw&&Vw.binding&&Vw.binding("util")}catch{}}(),AT=Ah&&Ah.isTypedArray,zw=AT?jw(AT):goe,yoe=Object.prototype,_oe=yoe.hasOwnProperty;function dT(e,t){var n=Dd(e),r=!n&&Qw(e),i=!n&&!r&&Sm(e),a=!n&&!r&&!i&&zw(e),o=n||r||i||a,s=o?Yae(e.length,String):[],u=s.length;for(var c in e)(t||_oe.call(e,c))&&!(o&&(c=="length"||i&&(c=="offset"||c=="parent")||a&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||tT(c,u)))&&s.push(c);return s}function fT(e,t){return function(n){return e(t(n))}}var boe=fT(Object.keys,Object),woe=Object.prototype,Boe=woe.hasOwnProperty;function xoe(e){if(!Rw(e))return boe(e);var t=[];for(var n in Object(e))Boe.call(e,n)&&n!="constructor"&&t.push(n);return t}function Coe(e){return Yv(e)?dT(e):xoe(e)}function Soe(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var koe=Object.prototype,Moe=koe.hasOwnProperty;function Eoe(e){if(!uA(e))return Soe(e);var t=Rw(e),n=[];for(var r in e)r=="constructor"&&(t||!Moe.call(e,r))||n.push(r);return n}function hT(e){return Yv(e)?dT(e,!0):Eoe(e)}var Mm=Ud(Object,"create");function Loe(){this.__data__=Mm?Mm(null):{},this.size=0}function Toe(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Noe="__lodash_hash_undefined__",Foe=Object.prototype,Ooe=Foe.hasOwnProperty;function Doe(e){var t=this.__data__;if(Mm){var n=t[e];return n===Noe?void 0:n}return Ooe.call(t,e)?t[e]:void 0}var Ioe=Object.prototype,Uoe=Ioe.hasOwnProperty;function Poe(e){var t=this.__data__;return Mm?t[e]!==void 0:Uoe.call(t,e)}var Hoe="__lodash_hash_undefined__";function Yoe(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Mm&&t===void 0?Hoe:t,this}function Pd(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Pd.prototype.clear=Loe,Pd.prototype.delete=Toe,Pd.prototype.get=Doe,Pd.prototype.has=Poe,Pd.prototype.set=Yoe;function Roe(){this.__data__=[],this.size=0}function Rv(e,t){for(var n=e.length;n--;)if(Cm(e[n][0],t))return n;return-1}var Qoe=Array.prototype,joe=Qoe.splice;function Voe(e){var t=this.__data__,n=Rv(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():joe.call(t,n,1),--this.size,!0}function zoe(e){var t=this.__data__,n=Rv(t,e);return n<0?void 0:t[n][1]}function qoe(e){return Rv(this.__data__,e)>-1}function Koe(e,t){var n=this.__data__,r=Rv(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Ku(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ku.prototype.clear=Roe,Ku.prototype.delete=Voe,Ku.prototype.get=zoe,Ku.prototype.has=qoe,Ku.prototype.set=Koe;var Em=Ud(nu,"Map");function Goe(){this.size=0,this.__data__={hash:new Pd,map:new(Em||Ku),string:new Pd}}function Woe(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Qv(e,t){var n=e.__data__;return Woe(t)?n[typeof t=="string"?"string":"hash"]:n.map}function Xoe(e){var t=Qv(this,e).delete(e);return this.size-=t?1:0,t}function Joe(e){return Qv(this,e).get(e)}function Zoe(e){return Qv(this,e).has(e)}function $oe(e,t){var n=Qv(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function Hd(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Hd.prototype.clear=Goe,Hd.prototype.delete=Xoe,Hd.prototype.get=Joe,Hd.prototype.has=Zoe,Hd.prototype.set=$oe;function ese(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var pT=fT(Object.getPrototypeOf,Object),tse="[object Object]",nse=Function.prototype,rse=Object.prototype,mT=nse.toString,ise=rse.hasOwnProperty,ase=mT.call(Object);function ose(e){if(!qu(e)||ch(e)!=tse)return!1;var t=pT(e);if(t===null)return!0;var n=ise.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&mT.call(n)==ase}function sse(){this.__data__=new Ku,this.size=0}function lse(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function use(e){return this.__data__.get(e)}function cse(e){return this.__data__.has(e)}var Ase=200;function dse(e,t){var n=this.__data__;if(n instanceof Ku){var r=n.__data__;if(!Em||r.length<Ase-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Hd(r)}return n.set(e,t),this.size=n.size,this}function ru(e){var t=this.__data__=new Ku(e);this.size=t.size}ru.prototype.clear=sse,ru.prototype.delete=lse,ru.prototype.get=use,ru.prototype.has=cse,ru.prototype.set=dse;var gT=typeof Qe=="object"&&Qe&&!Qe.nodeType&&Qe,vT=gT&&typeof module=="object"&&module&&!module.nodeType&&module,fse=vT&&vT.exports===gT,yT=fse?nu.Buffer:void 0,_T=yT?yT.allocUnsafe:void 0;function bT(e,t){if(t)return e.slice();var n=e.length,r=_T?_T(n):new e.constructor(n);return e.copy(r),r}function hse(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}function pse(){return[]}var mse=Object.prototype,gse=mse.propertyIsEnumerable,wT=Object.getOwnPropertySymbols,vse=wT?function(e){return e==null?[]:(e=Object(e),hse(wT(e),function(t){return gse.call(e,t)}))}:pse;function yse(e,t,n){var r=t(e);return Dd(e)?r:ese(r,n(e))}function qw(e){return yse(e,Coe,vse)}var Kw=Ud(nu,"DataView"),Gw=Ud(nu,"Promise"),Ww=Ud(nu,"Set"),BT="[object Map]",_se="[object Object]",xT="[object Promise]",CT="[object Set]",ST="[object WeakMap]",kT="[object DataView]",bse=Id(Kw),wse=Id(Em),Bse=Id(Gw),xse=Id(Ww),Cse=Id(Hw),Zs=ch;(Kw&&Zs(new Kw(new ArrayBuffer(1)))!=kT||Em&&Zs(new Em)!=BT||Gw&&Zs(Gw.resolve())!=xT||Ww&&Zs(new Ww)!=CT||Hw&&Zs(new Hw)!=ST)&&(Zs=function(e){var t=ch(e),n=t==_se?e.constructor:void 0,r=n?Id(n):"";if(r)switch(r){case bse:return kT;case wse:return BT;case Bse:return xT;case xse:return CT;case Cse:return ST}return t});var Sse=Object.prototype,kse=Sse.hasOwnProperty;function Mse(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&kse.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var jv=nu.Uint8Array;function Xw(e){var t=new e.constructor(e.byteLength);return new jv(t).set(new jv(e)),t}function Ese(e,t){var n=Xw(e.buffer);return new e.constructor(n,e.byteOffset,e.byteLength)}var Lse=/\w*$/;function Tse(e){var t=new e.constructor(e.source,Lse.exec(e));return t.lastIndex=e.lastIndex,t}var MT=lA?lA.prototype:void 0,ET=MT?MT.valueOf:void 0;function Nse(e){return ET?Object(ET.call(e)):{}}function LT(e,t){var n=t?Xw(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var Fse="[object Boolean]",Ose="[object Date]",Dse="[object Map]",Ise="[object Number]",Use="[object RegExp]",Pse="[object Set]",Hse="[object String]",Yse="[object Symbol]",Rse="[object ArrayBuffer]",Qse="[object DataView]",jse="[object Float32Array]",Vse="[object Float64Array]",zse="[object Int8Array]",qse="[object Int16Array]",Kse="[object Int32Array]",Gse="[object Uint8Array]",Wse="[object Uint8ClampedArray]",Xse="[object Uint16Array]",Jse="[object Uint32Array]";function Zse(e,t,n){var r=e.constructor;switch(t){case Rse:return Xw(e);case Fse:case Ose:return new r(+e);case Qse:return Ese(e);case jse:case Vse:case zse:case qse:case Kse:case Gse:case Wse:case Xse:case Jse:return LT(e,n);case Dse:return new r;case Ise:case Hse:return new r(e);case Use:return Tse(e);case Pse:return new r;case Yse:return Nse(e)}}function TT(e){return typeof e.constructor=="function"&&!Rw(e)?vae(pT(e)):{}}var $se="[object Map]";function ele(e){return qu(e)&&Zs(e)==$se}var NT=Ah&&Ah.isMap,tle=NT?jw(NT):ele,nle="[object Set]";function rle(e){return qu(e)&&Zs(e)==nle}var FT=Ah&&Ah.isSet,ile=FT?jw(FT):rle,ale=1,OT="[object Arguments]",ole="[object Array]",sle="[object Boolean]",lle="[object Date]",ule="[object Error]",DT="[object Function]",cle="[object GeneratorFunction]",Ale="[object Map]",dle="[object Number]",IT="[object Object]",fle="[object RegExp]",hle="[object Set]",ple="[object String]",mle="[object Symbol]",gle="[object WeakMap]",vle="[object ArrayBuffer]",yle="[object DataView]",_le="[object Float32Array]",ble="[object Float64Array]",wle="[object Int8Array]",Ble="[object Int16Array]",xle="[object Int32Array]",Cle="[object Uint8Array]",Sle="[object Uint8ClampedArray]",kle="[object Uint16Array]",Mle="[object Uint32Array]",Ir={};Ir[OT]=Ir[ole]=Ir[vle]=Ir[yle]=Ir[sle]=Ir[lle]=Ir[_le]=Ir[ble]=Ir[wle]=Ir[Ble]=Ir[xle]=Ir[Ale]=Ir[dle]=Ir[IT]=Ir[fle]=Ir[hle]=Ir[ple]=Ir[mle]=Ir[Cle]=Ir[Sle]=Ir[kle]=Ir[Mle]=!0,Ir[ule]=Ir[DT]=Ir[gle]=!1;function Vv(e,t,n,r,i,a){var o,s=t&ale;if(o!==void 0)return o;if(!uA(e))return e;var u=Dd(e);if(u)o=Mse(e);else{var c=Zs(e),A=c==DT||c==cle;if(Sm(e))return bT(e,s);if(c==IT||c==OT||A&&!i)o=A?{}:TT(e);else{if(!Ir[c])return i?e:{};o=Zse(e,c,s)}}a||(a=new ru);var f=a.get(e);if(f)return f;a.set(e,o),ile(e)?e.forEach(function(m){o.add(Vv(m,t,n,m,e,a))}):tle(e)&&e.forEach(function(m,p){o.set(p,Vv(m,t,n,p,e,a))});var h=qw,d=u?void 0:h(e);return Mae(d||e,function(m,p){d&&(p=m,m=e[p]),nT(o,p,Vv(m,t,n,p,e,a))}),o}var Ele=1,Lle=4;function dh(e){return Vv(e,Ele|Lle)}var Tle="__lodash_hash_undefined__";function Nle(e){return this.__data__.set(e,Tle),this}function Fle(e){return this.__data__.has(e)}function zv(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Hd;++t<n;)this.add(e[t])}zv.prototype.add=zv.prototype.push=Nle,zv.prototype.has=Fle;function Ole(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function Dle(e,t){return e.has(t)}var Ile=1,Ule=2;function UT(e,t,n,r,i,a){var o=n&Ile,s=e.length,u=t.length;if(s!=u&&!(o&&u>s))return!1;var c=a.get(e),A=a.get(t);if(c&&A)return c==t&&A==e;var f=-1,h=!0,d=n&Ule?new zv:void 0;for(a.set(e,t),a.set(t,e);++f<s;){var m=e[f],p=t[f];if(r)var g=o?r(p,m,f,t,e,a):r(m,p,f,e,t,a);if(g!==void 0){if(g)continue;h=!1;break}if(d){if(!Ole(t,function(v,y){if(!Dle(d,y)&&(m===v||i(m,v,n,r,a)))return d.push(y)})){h=!1;break}}else if(!(m===p||i(m,p,n,r,a))){h=!1;break}}return a.delete(e),a.delete(t),h}function Ple(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}function Hle(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var Yle=1,Rle=2,Qle="[object Boolean]",jle="[object Date]",Vle="[object Error]",zle="[object Map]",qle="[object Number]",Kle="[object RegExp]",Gle="[object Set]",Wle="[object String]",Xle="[object Symbol]",Jle="[object ArrayBuffer]",Zle="[object DataView]",PT=lA?lA.prototype:void 0,Jw=PT?PT.valueOf:void 0;function $le(e,t,n,r,i,a,o){switch(n){case Zle:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Jle:return!(e.byteLength!=t.byteLength||!a(new jv(e),new jv(t)));case Qle:case jle:case qle:return Cm(+e,+t);case Vle:return e.name==t.name&&e.message==t.message;case Kle:case Wle:return e==t+"";case zle:var s=Ple;case Gle:var u=r&Yle;if(s||(s=Hle),e.size!=t.size&&!u)return!1;var c=o.get(e);if(c)return c==t;r|=Rle,o.set(e,t);var A=UT(s(e),s(t),r,i,a,o);return o.delete(e),A;case Xle:if(Jw)return Jw.call(e)==Jw.call(t)}return!1}var eue=1,tue=Object.prototype,nue=tue.hasOwnProperty;function rue(e,t,n,r,i,a){var o=n&eue,s=qw(e),u=s.length,c=qw(t),A=c.length;if(u!=A&&!o)return!1;for(var f=u;f--;){var h=s[f];if(!(o?h in t:nue.call(t,h)))return!1}var d=a.get(e),m=a.get(t);if(d&&m)return d==t&&m==e;var p=!0;a.set(e,t),a.set(t,e);for(var g=o;++f<u;){h=s[f];var v=e[h],y=t[h];if(r)var _=o?r(y,v,h,t,e,a):r(v,y,h,e,t,a);if(!(_===void 0?v===y||i(v,y,n,r,a):_)){p=!1;break}g||(g=h=="constructor")}if(p&&!g){var b=e.constructor,w=t.constructor;b!=w&&"constructor"in e&&"constructor"in t&&!(typeof b=="function"&&b instanceof b&&typeof w=="function"&&w instanceof w)&&(p=!1)}return a.delete(e),a.delete(t),p}var iue=1,HT="[object Arguments]",YT="[object Array]",qv="[object Object]",aue=Object.prototype,RT=aue.hasOwnProperty;function oue(e,t,n,r,i,a){var o=Dd(e),s=Dd(t),u=o?YT:Zs(e),c=s?YT:Zs(t);u=u==HT?qv:u,c=c==HT?qv:c;var A=u==qv,f=c==qv,h=u==c;if(h&&Sm(e)){if(!Sm(t))return!1;o=!0,A=!1}if(h&&!A)return a||(a=new ru),o||zw(e)?UT(e,t,n,r,i,a):$le(e,t,u,n,r,i,a);if(!(n&iue)){var d=A&&RT.call(e,"__wrapped__"),m=f&&RT.call(t,"__wrapped__");if(d||m){var p=d?e.value():e,g=m?t.value():t;return a||(a=new ru),i(p,g,n,r,a)}}return h?(a||(a=new ru),rue(e,t,n,r,i,a)):!1}function QT(e,t,n,r,i){return e===t?!0:e==null||t==null||!qu(e)&&!qu(t)?e!==e&&t!==t:oue(e,t,n,r,QT,i)}function sue(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),s=o.length;s--;){var u=o[++i];if(n(a[u],u,a)===!1)break}return t}}var lue=sue();function Zw(e,t,n){(n!==void 0&&!Cm(e[t],n)||n===void 0&&!(t in e))&&Yw(e,t,n)}function uue(e){return qu(e)&&Yv(e)}function $w(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function cue(e){return Fae(e,hT(e))}function Aue(e,t,n,r,i,a,o){var s=$w(e,n),u=$w(t,n),c=o.get(u);if(c){Zw(e,n,c);return}var A=a?a(s,u,n+"",e,t,o):void 0,f=A===void 0;if(f){var h=Dd(u),d=!h&&Sm(u),m=!h&&!d&&zw(u);A=u,h||d||m?Dd(s)?A=s:uue(s)?A=_ae(s):d?(f=!1,A=bT(u,!0)):m?(f=!1,A=LT(u,!0)):A=[]:ose(u)||Qw(u)?(A=s,Qw(s)?A=cue(s):(!uA(s)||Uw(s))&&(A=TT(u))):f=!1}f&&(o.set(u,A),i(A,u,r,a,o),o.delete(u)),Zw(e,n,A)}function jT(e,t,n,r,i){e!==t&&lue(t,function(a,o){if(i||(i=new ru),uA(a))Aue(e,t,o,n,jT,r,i);else{var s=r?r($w(e,o),a,o+"",e,t,i):void 0;s===void 0&&(s=a),Zw(e,o,s)}},hT)}function e5(e,t){return QT(e,t)}var cA=Pae(function(e,t,n){jT(e,t,n)}),Zt=(e=>(e[e.TYPE=3]="TYPE",e[e.LEVEL=12]="LEVEL",e[e.ATTRIBUTE=13]="ATTRIBUTE",e[e.BLOT=14]="BLOT",e[e.INLINE=7]="INLINE",e[e.BLOCK=11]="BLOCK",e[e.BLOCK_BLOT=10]="BLOCK_BLOT",e[e.INLINE_BLOT=6]="INLINE_BLOT",e[e.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",e[e.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",e[e.ANY=15]="ANY",e))(Zt||{});class iu{constructor(t,n,r={}){this.attrName=t,this.keyName=n;const i=Zt.TYPE&Zt.ATTRIBUTE;this.scope=r.scope!=null?r.scope&Zt.LEVEL|i:Zt.ATTRIBUTE,r.whitelist!=null&&(this.whitelist=r.whitelist)}static keys(t){return Array.from(t.attributes).map(n=>n.name)}add(t,n){return this.canAdd(t,n)?(t.setAttribute(this.keyName,n),!0):!1}canAdd(t,n){return this.whitelist==null?!0:typeof n=="string"?this.whitelist.indexOf(n.replace(/["']/g,""))>-1:this.whitelist.indexOf(n)>-1}remove(t){t.removeAttribute(this.keyName)}value(t){const n=t.getAttribute(this.keyName);return this.canAdd(t,n)&&n?n:""}}class fh extends Error{constructor(t){t="[Parchment] "+t,super(t),this.message=t,this.name=this.constructor.name}}const VT=class FL{constructor(){this.attributes={},this.classes={},this.tags={},this.types={}}static find(t,n=!1){if(t==null)return null;if(this.blots.has(t))return this.blots.get(t)||null;if(n){let r=null;try{r=t.parentNode}catch{return null}return this.find(r,n)}return null}create(t,n,r){const i=this.query(n);if(i==null)throw new fh(`Unable to create ${n} blot`);const a=i,o=n instanceof Node||n.nodeType===Node.TEXT_NODE?n:a.create(r),s=new a(t,o,r);return FL.blots.set(s.domNode,s),s}find(t,n=!1){return FL.find(t,n)}query(t,n=Zt.ANY){let r;return typeof t=="string"?r=this.types[t]||this.attributes[t]:t instanceof Text||t.nodeType===Node.TEXT_NODE?r=this.types.text:typeof t=="number"?t&Zt.LEVEL&Zt.BLOCK?r=this.types.block:t&Zt.LEVEL&Zt.INLINE&&(r=this.types.inline):t instanceof Element&&((t.getAttribute("class")||"").split(/\s+/).some(i=>(r=this.classes[i],!!r)),r=r||this.tags[t.tagName]),r==null?null:"scope"in r&&n&Zt.LEVEL&r.scope&&n&Zt.TYPE&r.scope?r:null}register(...t){return t.map(n=>{const r="blotName"in n,i="attrName"in n;if(!r&&!i)throw new fh("Invalid definition");if(r&&n.blotName==="abstract")throw new fh("Cannot register abstract class");const a=r?n.blotName:i?n.attrName:void 0;return this.types[a]=n,i?typeof n.keyName=="string"&&(this.attributes[n.keyName]=n):r&&(n.className&&(this.classes[n.className]=n),n.tagName&&(Array.isArray(n.tagName)?n.tagName=n.tagName.map(o=>o.toUpperCase()):n.tagName=n.tagName.toUpperCase(),(Array.isArray(n.tagName)?n.tagName:[n.tagName]).forEach(o=>{(this.tags[o]==null||n.className==null)&&(this.tags[o]=n)}))),n})}};VT.blots=new WeakMap;let hh=VT;function zT(e,t){return(e.getAttribute("class")||"").split(/\s+/).filter(n=>n.indexOf(`${t}-`)===0)}class due extends iu{static keys(t){return(t.getAttribute("class")||"").split(/\s+/).map(n=>n.split("-").slice(0,-1).join("-"))}add(t,n){return this.canAdd(t,n)?(this.remove(t),t.classList.add(`${this.keyName}-${n}`),!0):!1}remove(t){zT(t,this.keyName).forEach(n=>{t.classList.remove(n)}),t.classList.length===0&&t.removeAttribute("class")}value(t){const n=(zT(t,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(t,n)?n:""}}const $s=due;function t5(e){const t=e.split("-"),n=t.slice(1).map(r=>r[0].toUpperCase()+r.slice(1)).join("");return t[0]+n}class fue extends iu{static keys(t){return(t.getAttribute("style")||"").split(";").map(n=>n.split(":")[0].trim())}add(t,n){return this.canAdd(t,n)?(t.style[t5(this.keyName)]=n,!0):!1}remove(t){t.style[t5(this.keyName)]="",t.getAttribute("style")||t.removeAttribute("style")}value(t){const n=t.style[t5(this.keyName)];return this.canAdd(t,n)?n:""}}const AA=fue;class hue{constructor(t){this.attributes={},this.domNode=t,this.build()}attribute(t,n){n?t.add(this.domNode,n)&&(t.value(this.domNode)!=null?this.attributes[t.attrName]=t:delete this.attributes[t.attrName]):(t.remove(this.domNode),delete this.attributes[t.attrName])}build(){this.attributes={};const t=hh.find(this.domNode);if(t==null)return;const n=iu.keys(this.domNode),r=$s.keys(this.domNode),i=AA.keys(this.domNode);n.concat(r).concat(i).forEach(a=>{const o=t.scroll.query(a,Zt.ATTRIBUTE);o instanceof iu&&(this.attributes[o.attrName]=o)})}copy(t){Object.keys(this.attributes).forEach(n=>{const r=this.attributes[n].value(this.domNode);t.format(n,r)})}move(t){this.copy(t),Object.keys(this.attributes).forEach(n=>{this.attributes[n].remove(this.domNode)}),this.attributes={}}values(){return Object.keys(this.attributes).reduce((t,n)=>(t[n]=this.attributes[n].value(this.domNode),t),{})}}const Kv=hue,qT=class{constructor(t,n){this.scroll=t,this.domNode=n,hh.blots.set(n,this),this.prev=null,this.next=null}static create(t){if(this.tagName==null)throw new fh("Blot definition missing tagName");let n,r;return Array.isArray(this.tagName)?(typeof t=="string"?(r=t.toUpperCase(),parseInt(r,10).toString()===r&&(r=parseInt(r,10))):typeof t=="number"&&(r=t),typeof r=="number"?n=document.createElement(this.tagName[r-1]):r&&this.tagName.indexOf(r)>-1?n=document.createElement(r):n=document.createElement(this.tagName[0])):n=document.createElement(this.tagName),this.className&&n.classList.add(this.className),n}get statics(){return this.constructor}attach(){}clone(){const t=this.domNode.cloneNode(!1);return this.scroll.create(t)}detach(){this.parent!=null&&this.parent.removeChild(this),hh.blots.delete(this.domNode)}deleteAt(t,n){this.isolate(t,n).remove()}formatAt(t,n,r,i){const a=this.isolate(t,n);if(this.scroll.query(r,Zt.BLOT)!=null&&i)a.wrap(r,i);else if(this.scroll.query(r,Zt.ATTRIBUTE)!=null){const o=this.scroll.create(this.statics.scope);a.wrap(o),o.format(r,i)}}insertAt(t,n,r){const i=r==null?this.scroll.create("text",n):this.scroll.create(n,r),a=this.split(t);this.parent.insertBefore(i,a||void 0)}isolate(t,n){const r=this.split(t);if(r==null)throw new Error("Attempt to isolate at end");return r.split(n),r}length(){return 1}offset(t=this.parent){return this.parent==null||this===t?0:this.parent.children.offset(this)+this.parent.offset(t)}optimize(t){this.statics.requiredContainer&&!(this.parent instanceof this.statics.requiredContainer)&&this.wrap(this.statics.requiredContainer.blotName)}remove(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()}replaceWith(t,n){const r=typeof t=="string"?this.scroll.create(t,n):t;return this.parent!=null&&(this.parent.insertBefore(r,this.next||void 0),this.remove()),r}split(t,n){return t===0?this:this.next}update(t,n){}wrap(t,n){const r=typeof t=="string"?this.scroll.create(t,n):t;if(this.parent!=null&&this.parent.insertBefore(r,this.next||void 0),typeof r.appendChild!="function")throw new fh(`Cannot wrap ${t}`);return r.appendChild(this),r}};qT.blotName="abstract";let KT=qT;const GT=class extends KT{static value(t){return!0}index(t,n){return this.domNode===t||this.domNode.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(n,1):-1}position(t,n){let r=Array.from(this.parent.domNode.childNodes).indexOf(this.domNode);return t>0&&(r+=1),[this.parent.domNode,r]}value(){return{[this.statics.blotName]:this.statics.value(this.domNode)||!0}}};GT.scope=Zt.INLINE_BLOT;const Ia=GT;class pue{constructor(){this.head=null,this.tail=null,this.length=0}append(...t){if(this.insertBefore(t[0],null),t.length>1){const n=t.slice(1);this.append(...n)}}at(t){const n=this.iterator();let r=n();for(;r&&t>0;)t-=1,r=n();return r}contains(t){const n=this.iterator();let r=n();for(;r;){if(r===t)return!0;r=n()}return!1}indexOf(t){const n=this.iterator();let r=n(),i=0;for(;r;){if(r===t)return i;i+=1,r=n()}return-1}insertBefore(t,n){t!=null&&(this.remove(t),t.next=n,n!=null?(t.prev=n.prev,n.prev!=null&&(n.prev.next=t),n.prev=t,n===this.head&&(this.head=t)):this.tail!=null?(this.tail.next=t,t.prev=this.tail,this.tail=t):(t.prev=null,this.head=this.tail=t),this.length+=1)}offset(t){let n=0,r=this.head;for(;r!=null;){if(r===t)return n;n+=r.length(),r=r.next}return-1}remove(t){this.contains(t)&&(t.prev!=null&&(t.prev.next=t.next),t.next!=null&&(t.next.prev=t.prev),t===this.head&&(this.head=t.next),t===this.tail&&(this.tail=t.prev),this.length-=1)}iterator(t=this.head){return()=>{const n=t;return t!=null&&(t=t.next),n}}find(t,n=!1){const r=this.iterator();let i=r();for(;i;){const a=i.length();if(t<a||n&&t===a&&(i.next==null||i.next.length()!==0))return[i,t];t-=a,i=r()}return[null,0]}forEach(t){const n=this.iterator();let r=n();for(;r;)t(r),r=n()}forEachAt(t,n,r){if(n<=0)return;const[i,a]=this.find(t);let o=t-a;const s=this.iterator(i);let u=s();for(;u&&o<t+n;){const c=u.length();t>o?r(u,t-o,Math.min(n,o+c-t)):r(u,0,Math.min(c,t+n-o)),o+=c,u=s()}}map(t){return this.reduce((n,r)=>(n.push(t(r)),n),[])}reduce(t,n){const r=this.iterator();let i=r();for(;i;)n=t(n,i),i=r();return n}}function WT(e,t){const n=t.find(e);if(n)return n;try{return t.create(e)}catch{const r=t.create(Zt.INLINE);return Array.from(e.childNodes).forEach(i=>{r.domNode.appendChild(i)}),e.parentNode&&e.parentNode.replaceChild(r.domNode,e),r.attach(),r}}const XT=class xd extends KT{constructor(t,n){super(t,n),this.uiNode=null,this.build()}appendChild(t){this.insertBefore(t)}attach(){super.attach(),this.children.forEach(t=>{t.attach()})}attachUI(t){this.uiNode!=null&&this.uiNode.remove(),this.uiNode=t,xd.uiClass&&this.uiNode.classList.add(xd.uiClass),this.uiNode.setAttribute("contenteditable","false"),this.domNode.insertBefore(this.uiNode,this.domNode.firstChild)}build(){this.children=new pue,Array.from(this.domNode.childNodes).filter(t=>t!==this.uiNode).reverse().forEach(t=>{try{const n=WT(t,this.scroll);this.insertBefore(n,this.children.head||void 0)}catch(n){if(n instanceof fh)return;throw n}})}deleteAt(t,n){if(t===0&&n===this.length())return this.remove();this.children.forEachAt(t,n,(r,i,a)=>{r.deleteAt(i,a)})}descendant(t,n=0){const[r,i]=this.children.find(n);return t.blotName==null&&t(r)||t.blotName!=null&&r instanceof t?[r,i]:r instanceof xd?r.descendant(t,i):[null,-1]}descendants(t,n=0,r=Number.MAX_VALUE){let i=[],a=r;return this.children.forEachAt(n,r,(o,s,u)=>{(t.blotName==null&&t(o)||t.blotName!=null&&o instanceof t)&&i.push(o),o instanceof xd&&(i=i.concat(o.descendants(t,s,a))),a-=u}),i}detach(){this.children.forEach(t=>{t.detach()}),super.detach()}enforceAllowedChildren(){let t=!1;this.children.forEach(n=>{t||this.statics.allowedChildren.some(r=>n instanceof r)||(n.statics.scope===Zt.BLOCK_BLOT?(n.next!=null&&this.splitAfter(n),n.prev!=null&&this.splitAfter(n.prev),n.parent.unwrap(),t=!0):n instanceof xd?n.unwrap():n.remove())})}formatAt(t,n,r,i){this.children.forEachAt(t,n,(a,o,s)=>{a.formatAt(o,s,r,i)})}insertAt(t,n,r){const[i,a]=this.children.find(t);if(i)i.insertAt(a,n,r);else{const o=r==null?this.scroll.create("text",n):this.scroll.create(n,r);this.appendChild(o)}}insertBefore(t,n){t.parent!=null&&t.parent.children.remove(t);let r=null;this.children.insertBefore(t,n||null),t.parent=this,n!=null&&(r=n.domNode),(this.domNode.parentNode!==t.domNode||this.domNode.nextSibling!==r)&&this.domNode.insertBefore(t.domNode,r),t.attach()}length(){return this.children.reduce((t,n)=>t+n.length(),0)}moveChildren(t,n){this.children.forEach(r=>{t.insertBefore(r,n)})}optimize(t){if(super.optimize(t),this.enforceAllowedChildren(),this.uiNode!=null&&this.uiNode!==this.domNode.firstChild&&this.domNode.insertBefore(this.uiNode,this.domNode.firstChild),this.children.length===0)if(this.statics.defaultChild!=null){const n=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(n)}else this.remove()}path(t,n=!1){const[r,i]=this.children.find(t,n),a=[[this,t]];return r instanceof xd?a.concat(r.path(i,n)):(r!=null&&a.push([r,i]),a)}removeChild(t){this.children.remove(t)}replaceWith(t,n){const r=typeof t=="string"?this.scroll.create(t,n):t;return r instanceof xd&&this.moveChildren(r),super.replaceWith(r)}split(t,n=!1){if(!n){if(t===0)return this;if(t===this.length())return this.next}const r=this.clone();return this.parent&&this.parent.insertBefore(r,this.next||void 0),this.children.forEachAt(t,this.length(),(i,a,o)=>{const s=i.split(a,n);s!=null&&r.appendChild(s)}),r}splitAfter(t){const n=this.clone();for(;t.next!=null;)n.appendChild(t.next);return this.parent&&this.parent.insertBefore(n,this.next||void 0),n}unwrap(){this.parent&&this.moveChildren(this.parent,this.next||void 0),this.remove()}update(t,n){const r=[],i=[];t.forEach(a=>{a.target===this.domNode&&a.type==="childList"&&(r.push(...a.addedNodes),i.push(...a.removedNodes))}),i.forEach(a=>{if(a.parentNode!=null&&a.tagName!=="IFRAME"&&document.body.compareDocumentPosition(a)&Node.DOCUMENT_POSITION_CONTAINED_BY)return;const o=this.scroll.find(a);o!=null&&(o.domNode.parentNode==null||o.domNode.parentNode===this.domNode)&&o.detach()}),r.filter(a=>a.parentNode===this.domNode&&a!==this.uiNode).sort((a,o)=>a===o?0:a.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1).forEach(a=>{let o=null;a.nextSibling!=null&&(o=this.scroll.find(a.nextSibling));const s=WT(a,this.scroll);(s.next!==o||s.next==null)&&(s.parent!=null&&s.parent.removeChild(this),this.insertBefore(s,o||void 0))}),this.enforceAllowedChildren()}};XT.uiClass="";const el=XT;function mue(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}const ph=class om extends el{static create(t){return super.create(t)}static formats(t,n){const r=n.query(om.blotName);if(!(r!=null&&t.tagName===r.tagName)){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return t.tagName.toLowerCase()}}constructor(t,n){super(t,n),this.attributes=new Kv(this.domNode)}format(t,n){if(t===this.statics.blotName&&!n)this.children.forEach(r=>{r instanceof om||(r=r.wrap(om.blotName,!0)),this.attributes.copy(r)}),this.unwrap();else{const r=this.scroll.query(t,Zt.INLINE);if(r==null)return;r instanceof iu?this.attributes.attribute(r,n):n&&(t!==this.statics.blotName||this.formats()[t]!==n)&&this.replaceWith(t,n)}}formats(){const t=this.attributes.values(),n=this.statics.formats(this.domNode,this.scroll);return n!=null&&(t[this.statics.blotName]=n),t}formatAt(t,n,r,i){this.formats()[r]!=null||this.scroll.query(r,Zt.ATTRIBUTE)?this.isolate(t,n).format(r,i):super.formatAt(t,n,r,i)}optimize(t){super.optimize(t);const n=this.formats();if(Object.keys(n).length===0)return this.unwrap();const r=this.next;r instanceof om&&r.prev===this&&mue(n,r.formats())&&(r.moveChildren(this),r.remove())}replaceWith(t,n){const r=super.replaceWith(t,n);return this.attributes.copy(r),r}update(t,n){super.update(t,n),t.some(r=>r.target===this.domNode&&r.type==="attributes")&&this.attributes.build()}wrap(t,n){const r=super.wrap(t,n);return r instanceof om&&this.attributes.move(r),r}};ph.allowedChildren=[ph,Ia],ph.blotName="inline",ph.scope=Zt.INLINE_BLOT,ph.tagName="SPAN";const n5=ph,mh=class OL extends el{static create(t){return super.create(t)}static formats(t,n){const r=n.query(OL.blotName);if(!(r!=null&&t.tagName===r.tagName)){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return t.tagName.toLowerCase()}}constructor(t,n){super(t,n),this.attributes=new Kv(this.domNode)}format(t,n){const r=this.scroll.query(t,Zt.BLOCK);r!=null&&(r instanceof iu?this.attributes.attribute(r,n):t===this.statics.blotName&&!n?this.replaceWith(OL.blotName):n&&(t!==this.statics.blotName||this.formats()[t]!==n)&&this.replaceWith(t,n))}formats(){const t=this.attributes.values(),n=this.statics.formats(this.domNode,this.scroll);return n!=null&&(t[this.statics.blotName]=n),t}formatAt(t,n,r,i){this.scroll.query(r,Zt.BLOCK)!=null?this.format(r,i):super.formatAt(t,n,r,i)}insertAt(t,n,r){if(r==null||this.scroll.query(n,Zt.INLINE)!=null)super.insertAt(t,n,r);else{const i=this.split(t);if(i!=null){const a=this.scroll.create(n,r);i.parent.insertBefore(a,i)}else throw new Error("Attempt to insertAt after block boundaries")}}replaceWith(t,n){const r=super.replaceWith(t,n);return this.attributes.copy(r),r}update(t,n){super.update(t,n),t.some(r=>r.target===this.domNode&&r.type==="attributes")&&this.attributes.build()}};mh.blotName="block",mh.scope=Zt.BLOCK_BLOT,mh.tagName="P",mh.allowedChildren=[n5,mh,Ia];const Lm=mh,r5=class extends el{checkMerge(){return this.next!==null&&this.next.statics.blotName===this.statics.blotName}deleteAt(t,n){super.deleteAt(t,n),this.enforceAllowedChildren()}formatAt(t,n,r,i){super.formatAt(t,n,r,i),this.enforceAllowedChildren()}insertAt(t,n,r){super.insertAt(t,n,r),this.enforceAllowedChildren()}optimize(t){super.optimize(t),this.children.length>0&&this.next!=null&&this.checkMerge()&&(this.next.moveChildren(this),this.next.remove())}};r5.blotName="container",r5.scope=Zt.BLOCK_BLOT;const Gv=r5;class gue extends Ia{static formats(t,n){}format(t,n){super.formatAt(0,this.length(),t,n)}formatAt(t,n,r,i){t===0&&n===this.length()?this.format(r,i):super.formatAt(t,n,r,i)}formats(){return this.statics.formats(this.domNode,this.scroll)}}const Go=gue,vue={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},yue=100,gh=class extends el{constructor(t,n){super(null,n),this.registry=t,this.scroll=this,this.build(),this.observer=new MutationObserver(r=>{this.update(r)}),this.observer.observe(this.domNode,vue),this.attach()}create(t,n){return this.registry.create(this,t,n)}find(t,n=!1){const r=this.registry.find(t,n);return r?r.scroll===this?r:n?this.find(r.scroll.domNode.parentNode,!0):null:null}query(t,n=Zt.ANY){return this.registry.query(t,n)}register(...t){return this.registry.register(...t)}build(){this.scroll!=null&&super.build()}detach(){super.detach(),this.observer.disconnect()}deleteAt(t,n){this.update(),t===0&&n===this.length()?this.children.forEach(r=>{r.remove()}):super.deleteAt(t,n)}formatAt(t,n,r,i){this.update(),super.formatAt(t,n,r,i)}insertAt(t,n,r){this.update(),super.insertAt(t,n,r)}optimize(t=[],n={}){super.optimize(n);const r=n.mutationsMap||new WeakMap;let i=Array.from(this.observer.takeRecords());for(;i.length>0;)t.push(i.pop());const a=(u,c=!0)=>{u==null||u===this||u.domNode.parentNode!=null&&(r.has(u.domNode)||r.set(u.domNode,[]),c&&a(u.parent))},o=u=>{r.has(u.domNode)&&(u instanceof el&&u.children.forEach(o),r.delete(u.domNode),u.optimize(n))};let s=t;for(let u=0;s.length>0;u+=1){if(u>=yue)throw new Error("[Parchment] Maximum optimize iterations reached");for(s.forEach(c=>{const A=this.find(c.target,!0);A!=null&&(A.domNode===c.target&&(c.type==="childList"?(a(this.find(c.previousSibling,!1)),Array.from(c.addedNodes).forEach(f=>{const h=this.find(f,!1);a(h,!1),h instanceof el&&h.children.forEach(d=>{a(d,!1)})})):c.type==="attributes"&&a(A.prev)),a(A))}),this.children.forEach(o),s=Array.from(this.observer.takeRecords()),i=s.slice();i.length>0;)t.push(i.pop())}}update(t,n={}){t=t||this.observer.takeRecords();const r=new WeakMap;t.map(i=>{const a=this.find(i.target,!0);return a==null?null:r.has(a.domNode)?(r.get(a.domNode).push(i),null):(r.set(a.domNode,[i]),a)}).forEach(i=>{i!=null&&i!==this&&r.has(i.domNode)&&i.update(r.get(i.domNode)||[],n)}),n.mutationsMap=r,r.has(this.domNode)&&super.update(r.get(this.domNode),n),this.optimize(t,n)}};gh.blotName="scroll",gh.defaultChild=Lm,gh.allowedChildren=[Lm,Gv],gh.scope=Zt.BLOCK_BLOT,gh.tagName="DIV";const i5=gh,a5=class Pee extends Ia{static create(t){return document.createTextNode(t)}static value(t){return t.data}constructor(t,n){super(t,n),this.text=this.statics.value(this.domNode)}deleteAt(t,n){this.domNode.data=this.text=this.text.slice(0,t)+this.text.slice(t+n)}index(t,n){return this.domNode===t?n:-1}insertAt(t,n,r){r==null?(this.text=this.text.slice(0,t)+n+this.text.slice(t),this.domNode.data=this.text):super.insertAt(t,n,r)}length(){return this.text.length}optimize(t){super.optimize(t),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof Pee&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())}position(t,n=!1){return[this.domNode,t]}split(t,n=!1){if(!n){if(t===0)return this;if(t===this.length())return this.next}const r=this.scroll.create(this.domNode.splitText(t));return this.parent.insertBefore(r,this.next||void 0),this.text=this.statics.value(this.domNode),r}update(t,n){t.some(r=>r.type==="characterData"&&r.target===this.domNode)&&(this.text=this.statics.value(this.domNode))}value(){return this.text}};a5.blotName="text",a5.scope=Zt.INLINE_BLOT;const Wv=a5,_ue=Object.freeze(Object.defineProperty({__proto__:null,Attributor:iu,AttributorStore:Kv,BlockBlot:Lm,ClassAttributor:$s,ContainerBlot:Gv,EmbedBlot:Go,InlineBlot:n5,LeafBlot:Ia,ParentBlot:el,Registry:hh,Scope:Zt,ScrollBlot:i5,StyleAttributor:AA,TextBlot:Wv},Symbol.toStringTag,{value:"Module"}));var Xv={exports:{}},o5,JT;function bue(){if(JT)return o5;JT=1;var e=-1,t=1,n=0;function r(k,F,D,L,H){if(k===F)return k?[[n,k]]:[];if(D!=null){var K=N(k,F,D);if(K)return K}var q=s(k,F),z=k.substring(0,q);k=k.substring(q),F=F.substring(q),q=c(k,F);var J=k.substring(k.length-q);k=k.substring(0,k.length-q),F=F.substring(0,F.length-q);var ie=i(k,F);return z&&ie.unshift([n,z]),J&&ie.push([n,J]),y(ie,H),L&&f(ie),ie}function i(k,F){var D;if(!k)return[[t,F]];if(!F)return[[e,k]];var L=k.length>F.length?k:F,H=k.length>F.length?F:k,K=L.indexOf(H);if(K!==-1)return D=[[t,L.substring(0,K)],[n,H],[t,L.substring(K+H.length)]],k.length>F.length&&(D[0][0]=D[2][0]=e),D;if(H.length===1)return[[e,k],[t,F]];var q=A(k,F);if(q){var z=q[0],J=q[1],ie=q[2],X=q[3],I=q[4],W=r(z,ie),ee=r(J,X);return W.concat([[n,I]],ee)}return a(k,F)}function a(k,F){for(var D=k.length,L=F.length,H=Math.ceil((D+L)/2),K=H,q=2*H,z=new Array(q),J=new Array(q),ie=0;ie<q;ie++)z[ie]=-1,J[ie]=-1;z[K+1]=0,J[K+1]=0;for(var X=D-L,I=X%2!==0,W=0,ee=0,ne=0,pe=0,he=0;he<H;he++){for(var ve=-he+W;ve<=he-ee;ve+=2){var ue=K+ve,_e;ve===-he||ve!==he&&z[ue-1]<z[ue+1]?_e=z[ue+1]:_e=z[ue-1]+1;for(var Le=_e-ve;_e<D&&Le<L&&k.charAt(_e)===F.charAt(Le);)_e++,Le++;if(z[ue]=_e,_e>D)ee+=2;else if(Le>L)W+=2;else if(I){var Me=K+X-ve;if(Me>=0&&Me<q&&J[Me]!==-1){var Pe=D-J[Me];if(_e>=Pe)return o(k,F,_e,Le)}}}for(var Q=-he+ne;Q<=he-pe;Q+=2){var Me=K+Q,Pe;Q===-he||Q!==he&&J[Me-1]<J[Me+1]?Pe=J[Me+1]:Pe=J[Me-1]+1;for(var te=Pe-Q;Pe<D&&te<L&&k.charAt(D-Pe-1)===F.charAt(L-te-1);)Pe++,te++;if(J[Me]=Pe,Pe>D)pe+=2;else if(te>L)ne+=2;else if(!I){var ue=K+X-Q;if(ue>=0&&ue<q&&z[ue]!==-1){var _e=z[ue],Le=K+_e-ue;if(Pe=D-Pe,_e>=Pe)return o(k,F,_e,Le)}}}}return[[e,k],[t,F]]}function o(k,F,D,L){var H=k.substring(0,D),K=F.substring(0,L),q=k.substring(D),z=F.substring(L),J=r(H,K),ie=r(q,z);return J.concat(ie)}function s(k,F){if(!k||!F||k.charAt(0)!==F.charAt(0))return 0;for(var D=0,L=Math.min(k.length,F.length),H=L,K=0;D<H;)k.substring(K,H)==F.substring(K,H)?(D=H,K=D):L=H,H=Math.floor((L-D)/2+D);return _(k.charCodeAt(H-1))&&H--,H}function u(k,F){var D=k.length,L=F.length;if(D==0||L==0)return 0;D>L?k=k.substring(D-L):D<L&&(F=F.substring(0,D));var H=Math.min(D,L);if(k==F)return H;for(var K=0,q=1;;){var z=k.substring(H-q),J=F.indexOf(z);if(J==-1)return K;q+=J,(J==0||k.substring(H-q)==F.substring(0,q))&&(K=q,q++)}}function c(k,F){if(!k||!F||k.slice(-1)!==F.slice(-1))return 0;for(var D=0,L=Math.min(k.length,F.length),H=L,K=0;D<H;)k.substring(k.length-H,k.length-K)==F.substring(F.length-H,F.length-K)?(D=H,K=D):L=H,H=Math.floor((L-D)/2+D);return b(k.charCodeAt(k.length-H))&&H--,H}function A(k,F){var D=k.length>F.length?k:F,L=k.length>F.length?F:k;if(D.length<4||L.length*2<D.length)return null;function H(ee,ne,pe){for(var he=ee.substring(pe,pe+Math.floor(ee.length/4)),ve=-1,ue="",_e,Le,Me,Pe;(ve=ne.indexOf(he,ve+1))!==-1;){var Q=s(ee.substring(pe),ne.substring(ve)),te=c(ee.substring(0,pe),ne.substring(0,ve));ue.length<te+Q&&(ue=ne.substring(ve-te,ve)+ne.substring(ve,ve+Q),_e=ee.substring(0,pe-te),Le=ee.substring(pe+Q),Me=ne.substring(0,ve-te),Pe=ne.substring(ve+Q))}return ue.length*2>=ee.length?[_e,Le,Me,Pe,ue]:null}var K=H(D,L,Math.ceil(D.length/4)),q=H(D,L,Math.ceil(D.length/2)),z;if(!K&&!q)return null;q?K?z=K[4].length>q[4].length?K:q:z=q:z=K;var J,ie,X,I;k.length>F.length?(J=z[0],ie=z[1],X=z[2],I=z[3]):(X=z[0],I=z[1],J=z[2],ie=z[3]);var W=z[4];return[J,ie,X,I,W]}function f(k){for(var F=!1,D=[],L=0,H=null,K=0,q=0,z=0,J=0,ie=0;K<k.length;)k[K][0]==n?(D[L++]=K,q=J,z=ie,J=0,ie=0,H=k[K][1]):(k[K][0]==t?J+=k[K][1].length:ie+=k[K][1].length,H&&H.length<=Math.max(q,z)&&H.length<=Math.max(J,ie)&&(k.splice(D[L-1],0,[e,H]),k[D[L-1]+1][0]=t,L--,L--,K=L>0?D[L-1]:-1,q=0,z=0,J=0,ie=0,H=null,F=!0)),K++;for(F&&y(k),v(k),K=1;K<k.length;){if(k[K-1][0]==e&&k[K][0]==t){var X=k[K-1][1],I=k[K][1],W=u(X,I),ee=u(I,X);W>=ee?(W>=X.length/2||W>=I.length/2)&&(k.splice(K,0,[n,I.substring(0,W)]),k[K-1][1]=X.substring(0,X.length-W),k[K+1][1]=I.substring(W),K++):(ee>=X.length/2||ee>=I.length/2)&&(k.splice(K,0,[n,X.substring(0,ee)]),k[K-1][0]=t,k[K-1][1]=I.substring(0,I.length-ee),k[K+1][0]=e,k[K+1][1]=X.substring(ee),K++),K++}K++}}var h=/[^a-zA-Z0-9]/,d=/\s/,m=/[\r\n]/,p=/\n\r?\n$/,g=/^\r?\n\r?\n/;function v(k){function F(ee,ne){if(!ee||!ne)return 6;var pe=ee.charAt(ee.length-1),he=ne.charAt(0),ve=pe.match(h),ue=he.match(h),_e=ve&&pe.match(d),Le=ue&&he.match(d),Me=_e&&pe.match(m),Pe=Le&&he.match(m),Q=Me&&ee.match(p),te=Pe&&ne.match(g);return Q||te?5:Me||Pe?4:ve&&!_e&&Le?3:_e||Le?2:ve||ue?1:0}for(var D=1;D<k.length-1;){if(k[D-1][0]==n&&k[D+1][0]==n){var L=k[D-1][1],H=k[D][1],K=k[D+1][1],q=c(L,H);if(q){var z=H.substring(H.length-q);L=L.substring(0,L.length-q),H=z+H.substring(0,H.length-q),K=z+K}for(var J=L,ie=H,X=K,I=F(L,H)+F(H,K);H.charAt(0)===K.charAt(0);){L+=H.charAt(0),H=H.substring(1)+K.charAt(0),K=K.substring(1);var W=F(L,H)+F(H,K);W>=I&&(I=W,J=L,ie=H,X=K)}k[D-1][1]!=J&&(J?k[D-1][1]=J:(k.splice(D-1,1),D--),k[D][1]=ie,X?k[D+1][1]=X:(k.splice(D+1,1),D--))}D++}}function y(k,F){k.push([n,""]);for(var D=0,L=0,H=0,K="",q="",z;D<k.length;){if(D<k.length-1&&!k[D][1]){k.splice(D,1);continue}switch(k[D][0]){case t:H++,q+=k[D][1],D++;break;case e:L++,K+=k[D][1],D++;break;case n:var J=D-H-L-1;if(F){if(J>=0&&C(k[J][1])){var ie=k[J][1].slice(-1);if(k[J][1]=k[J][1].slice(0,-1),K=ie+K,q=ie+q,!k[J][1]){k.splice(J,1),D--;var X=J-1;k[X]&&k[X][0]===t&&(H++,q=k[X][1]+q,X--),k[X]&&k[X][0]===e&&(L++,K=k[X][1]+K,X--),J=X}}if(w(k[D][1])){var ie=k[D][1].charAt(0);k[D][1]=k[D][1].slice(1),K+=ie,q+=ie}}if(D<k.length-1&&!k[D][1]){k.splice(D,1);break}if(K.length>0||q.length>0){K.length>0&&q.length>0&&(z=s(q,K),z!==0&&(J>=0?k[J][1]+=q.substring(0,z):(k.splice(0,0,[n,q.substring(0,z)]),D++),q=q.substring(z),K=K.substring(z)),z=c(q,K),z!==0&&(k[D][1]=q.substring(q.length-z)+k[D][1],q=q.substring(0,q.length-z),K=K.substring(0,K.length-z)));var I=H+L;K.length===0&&q.length===0?(k.splice(D-I,I),D=D-I):K.length===0?(k.splice(D-I,I,[t,q]),D=D-I+1):q.length===0?(k.splice(D-I,I,[e,K]),D=D-I+1):(k.splice(D-I,I,[e,K],[t,q]),D=D-I+2)}D!==0&&k[D-1][0]===n?(k[D-1][1]+=k[D][1],k.splice(D,1)):D++,H=0,L=0,K="",q="";break}}k[k.length-1][1]===""&&k.pop();var W=!1;for(D=1;D<k.length-1;)k[D-1][0]===n&&k[D+1][0]===n&&(k[D][1].substring(k[D][1].length-k[D-1][1].length)===k[D-1][1]?(k[D][1]=k[D-1][1]+k[D][1].substring(0,k[D][1].length-k[D-1][1].length),k[D+1][1]=k[D-1][1]+k[D+1][1],k.splice(D-1,1),W=!0):k[D][1].substring(0,k[D+1][1].length)==k[D+1][1]&&(k[D-1][1]+=k[D+1][1],k[D][1]=k[D][1].substring(k[D+1][1].length)+k[D+1][1],k.splice(D+1,1),W=!0)),D++;W&&y(k,F)}function _(k){return k>=55296&&k<=56319}function b(k){return k>=56320&&k<=57343}function w(k){return b(k.charCodeAt(0))}function C(k){return _(k.charCodeAt(k.length-1))}function B(k){for(var F=[],D=0;D<k.length;D++)k[D][1].length>0&&F.push(k[D]);return F}function E(k,F,D,L){return C(k)||w(L)?null:B([[n,k],[e,F],[t,D],[n,L]])}function N(k,F,D){var L=typeof D=="number"?{index:D,length:0}:D.oldRange,H=typeof D=="number"?null:D.newRange,K=k.length,q=F.length;if(L.length===0&&(H===null||H.length===0)){var z=L.index,J=k.slice(0,z),ie=k.slice(z),X=H?H.index:null;e:{var I=z+q-K;if(X!==null&&X!==I||I<0||I>q)break e;var W=F.slice(0,I),ee=F.slice(I);if(ee!==ie)break e;var ne=Math.min(z,I),pe=J.slice(0,ne),he=W.slice(0,ne);if(pe!==he)break e;var ve=J.slice(ne),ue=W.slice(ne);return E(pe,ve,ue,ie)}e:{if(X!==null&&X!==z)break e;var _e=z,W=F.slice(0,_e),ee=F.slice(_e);if(W!==J)break e;var Le=Math.min(K-_e,q-_e),Me=ie.slice(ie.length-Le),Pe=ee.slice(ee.length-Le);if(Me!==Pe)break e;var ve=ie.slice(0,ie.length-Le),ue=ee.slice(0,ee.length-Le);return E(J,ve,ue,Me)}}if(L.length>0&&H&&H.length===0)e:{var pe=k.slice(0,L.index),Me=k.slice(L.index+L.length),ne=pe.length,Le=Me.length;if(q<ne+Le)break e;var he=F.slice(0,ne),Pe=F.slice(q-Le);if(pe!==he||Me!==Pe)break e;var ve=k.slice(ne,K-Le),ue=F.slice(ne,q-Le);return E(pe,ve,ue,Me)}return null}function P(k,F,D,L){return r(k,F,D,L,!0)}return P.INSERT=t,P.DELETE=e,P.EQUAL=n,o5=P,o5}var Tm={exports:{}};Tm.exports;var ZT;function $T(){return ZT||(ZT=1,function(e,t){var n=200,r="__lodash_hash_undefined__",i=9007199254740991,a="[object Arguments]",o="[object Array]",s="[object Boolean]",u="[object Date]",c="[object Error]",A="[object Function]",f="[object GeneratorFunction]",h="[object Map]",d="[object Number]",m="[object Object]",p="[object Promise]",g="[object RegExp]",v="[object Set]",y="[object String]",_="[object Symbol]",b="[object WeakMap]",w="[object ArrayBuffer]",C="[object DataView]",B="[object Float32Array]",E="[object Float64Array]",N="[object Int8Array]",P="[object Int16Array]",k="[object Int32Array]",F="[object Uint8Array]",D="[object Uint8ClampedArray]",L="[object Uint16Array]",H="[object Uint32Array]",K=/[\\^$.*+?()[\]{}|]/g,q=/\w*$/,z=/^\[object .+?Constructor\]$/,J=/^(?:0|[1-9]\d*)$/,ie={};ie[a]=ie[o]=ie[w]=ie[C]=ie[s]=ie[u]=ie[B]=ie[E]=ie[N]=ie[P]=ie[k]=ie[h]=ie[d]=ie[m]=ie[g]=ie[v]=ie[y]=ie[_]=ie[F]=ie[D]=ie[L]=ie[H]=!0,ie[c]=ie[A]=ie[b]=!1;var X=typeof ni=="object"&&ni&&ni.Object===Object&&ni,I=typeof self=="object"&&self&&self.Object===Object&&self,W=X||I||Function("return this")(),ee=t&&!t.nodeType&&t,ne=ee&&!0&&e&&!e.nodeType&&e,pe=ne&&ne.exports===ee;function he(j,me){return j.set(me[0],me[1]),j}function ve(j,me){return j.add(me),j}function ue(j,me){for(var Ne=-1,Xe=j?j.length:0;++Ne<Xe&&me(j[Ne],Ne,j)!==!1;);return j}function _e(j,me){for(var Ne=-1,Xe=me.length,ln=j.length;++Ne<Xe;)j[ln+Ne]=me[Ne];return j}function Le(j,me,Ne,Xe){for(var ln=-1,Pt=j?j.length:0;++ln<Pt;)Ne=me(Ne,j[ln],ln,j);return Ne}function Me(j,me){for(var Ne=-1,Xe=Array(j);++Ne<j;)Xe[Ne]=me(Ne);return Xe}function Pe(j,me){return j==null?void 0:j[me]}function Q(j){var me=!1;if(j!=null&&typeof j.toString!="function")try{me=!!(j+"")}catch{}return me}function te(j){var me=-1,Ne=Array(j.size);return j.forEach(function(Xe,ln){Ne[++me]=[ln,Xe]}),Ne}function ce(j,me){return function(Ne){return j(me(Ne))}}function $(j){var me=-1,Ne=Array(j.size);return j.forEach(function(Xe){Ne[++me]=Xe}),Ne}var Z=Array.prototype,ae=Function.prototype,Be=Object.prototype,Ee=W["__core-js_shared__"],Se=function(){var j=/[^.]+$/.exec(Ee&&Ee.keys&&Ee.keys.IE_PROTO||"");return j?"Symbol(src)_1."+j:""}(),Ye=ae.toString,Te=Be.hasOwnProperty,Ie=Be.toString,Ge=RegExp("^"+Ye.call(Te).replace(K,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),at=pe?W.Buffer:void 0,tt=W.Symbol,pt=W.Uint8Array,_t=ce(Object.getPrototypeOf,Object),vt=Object.create,sn=Be.propertyIsEnumerable,xt=Z.splice,kt=Object.getOwnPropertySymbols,bt=at?at.isBuffer:void 0,an=ce(Object.keys,Object),Mt=Ji(W,"DataView"),cn=Ji(W,"Map"),Ct=Ji(W,"Promise"),Ut=Ji(W,"Set"),yn=Ji(W,"WeakMap"),Lt=Ji(Object,"create"),Dt=Or(Mt),wn=Or(cn),Xi=Or(Ct),_n=Or(Ut),Kr=Or(yn),oi=tt?tt.prototype:void 0,Gt=oi?oi.valueOf:void 0;function Fr(j){var me=-1,Ne=j?j.length:0;for(this.clear();++me<Ne;){var Xe=j[me];this.set(Xe[0],Xe[1])}}function fa(){this.__data__=Lt?Lt(null):{}}function Ei(j){return this.has(j)&&delete this.__data__[j]}function Li(j){var me=this.__data__;if(Lt){var Ne=me[j];return Ne===r?void 0:Ne}return Te.call(me,j)?me[j]:void 0}function fn(j){var me=this.__data__;return Lt?me[j]!==void 0:Te.call(me,j)}function Hn(j,me){var Ne=this.__data__;return Ne[j]=Lt&&me===void 0?r:me,this}Fr.prototype.clear=fa,Fr.prototype.delete=Ei,Fr.prototype.get=Li,Fr.prototype.has=fn,Fr.prototype.set=Hn;function hn(j){var me=-1,Ne=j?j.length:0;for(this.clear();++me<Ne;){var Xe=j[me];this.set(Xe[0],Xe[1])}}function to(){this.__data__=[]}function ha(j){var me=this.__data__,Ne=ma(me,j);if(Ne<0)return!1;var Xe=me.length-1;return Ne==Xe?me.pop():xt.call(me,Ne,1),!0}function Ti(j){var me=this.__data__,Ne=ma(me,j);return Ne<0?void 0:me[Ne][1]}function nr(j){return ma(this.__data__,j)>-1}function jt(j,me){var Ne=this.__data__,Xe=ma(Ne,j);return Xe<0?Ne.push([j,me]):Ne[Xe][1]=me,this}hn.prototype.clear=to,hn.prototype.delete=ha,hn.prototype.get=Ti,hn.prototype.has=nr,hn.prototype.set=jt;function Zn(j){var me=-1,Ne=j?j.length:0;for(this.clear();++me<Ne;){var Xe=j[me];this.set(Xe[0],Xe[1])}}function gi(){this.__data__={hash:new Fr,map:new(cn||hn),string:new Fr}}function no(j){return _o(this,j).delete(j)}function pa(j){return _o(this,j).get(j)}function Tt(j){return _o(this,j).has(j)}function Oe(j,me){return _o(this,j).set(j,me),this}Zn.prototype.clear=gi,Zn.prototype.delete=no,Zn.prototype.get=pa,Zn.prototype.has=Tt,Zn.prototype.set=Oe;function ot(j){this.__data__=new hn(j)}function Et(){this.__data__=new hn}function $n(j){return this.__data__.delete(j)}function _r(j){return this.__data__.get(j)}function hr(j){return this.__data__.has(j)}function Pr(j,me){var Ne=this.__data__;if(Ne instanceof hn){var Xe=Ne.__data__;if(!cn||Xe.length<n-1)return Xe.push([j,me]),this;Ne=this.__data__=new Zn(Xe)}return Ne.set(j,me),this}ot.prototype.clear=Et,ot.prototype.delete=$n,ot.prototype.get=_r,ot.prototype.has=hr,ot.prototype.set=Pr;function cr(j,me){var Ne=Yo(j)||on(j)?Me(j.length,String):[],Xe=Ne.length,ln=!!Xe;for(var Pt in j)Te.call(j,Pt)&&!(ln&&(Pt=="length"||Ql(Pt,Xe)))&&Ne.push(Pt);return Ne}function vi(j,me,Ne){var Xe=j[me];(!(Te.call(j,me)&&Vl(Xe,Ne))||Ne===void 0&&!(me in j))&&(j[me]=Ne)}function ma(j,me){for(var Ne=j.length;Ne--;)if(Vl(j[Ne][0],me))return Ne;return-1}function zn(j,me){return j&&ga(me,Ta(me),j)}function ro(j,me,Ne,Xe,ln,Pt,Ln){var Tn;if(Xe&&(Tn=Pt?Xe(j,ln,Pt,Ln):Xe(j)),Tn!==void 0)return Tn;if(!La(j))return j;var Lr=Yo(j);if(Lr){if(Tn=qc(j),!me)return os(j,Tn)}else{var gn=Zi(j),ti=gn==A||gn==f;if(Ma(j))return br(j,me);if(gn==m||gn==a||ti&&!Pt){if(Q(j))return Pt?j:{};if(Tn=ka(ti?{}:j),!me)return ss(j,zn(Tn,j))}else{if(!ie[gn])return Pt?j:{};Tn=Kc(j,gn,ro,me)}}Ln||(Ln=new ot);var Fi=Ln.get(j);if(Fi)return Fi;if(Ln.set(j,Tn),!Lr)var Hr=Ne?ao(j):Ta(j);return ue(Hr||j,function(wr,vr){Hr&&(vr=wr,wr=j[vr]),vi(Tn,vr,ro(wr,me,Ne,Xe,vr,j,Ln))}),Tn}function is(j){return La(j)?vt(j):{}}function Vs(j,me,Ne){var Xe=me(j);return Yo(j)?Xe:_e(Xe,Ne(j))}function io(j){return Ie.call(j)}function Ho(j){if(!La(j)||va(j))return!1;var me=Ea(j)||Q(j)?Ge:z;return me.test(Or(j))}function zc(j){if(!Uu(j))return an(j);var me=[];for(var Ne in Object(j))Te.call(j,Ne)&&Ne!="constructor"&&me.push(Ne);return me}function br(j,me){if(me)return j.slice();var Ne=new j.constructor(j.length);return j.copy(Ne),Ne}function zs(j){var me=new j.constructor(j.byteLength);return new pt(me).set(new pt(j)),me}function ji(j,me){var Ne=me?zs(j.buffer):j.buffer;return new j.constructor(Ne,j.byteOffset,j.byteLength)}function as(j,me,Ne){var Xe=me?Ne(te(j),!0):te(j);return Le(Xe,he,new j.constructor)}function qs(j){var me=new j.constructor(j.source,q.exec(j));return me.lastIndex=j.lastIndex,me}function Ni(j,me,Ne){var Xe=me?Ne($(j),!0):$(j);return Le(Xe,ve,new j.constructor)}function gr(j){return Gt?Object(Gt.call(j)):{}}function Sa(j,me){var Ne=me?zs(j.buffer):j.buffer;return new j.constructor(Ne,j.byteOffset,j.length)}function os(j,me){var Ne=-1,Xe=j.length;for(me||(me=Array(Xe));++Ne<Xe;)me[Ne]=j[Ne];return me}function ga(j,me,Ne,Xe){Ne||(Ne={});for(var ln=-1,Pt=me.length;++ln<Pt;){var Ln=me[ln],Tn=void 0;vi(Ne,Ln,Tn===void 0?j[Ln]:Tn)}return Ne}function ss(j,me){return ga(j,Vi(j),me)}function ao(j){return Vs(j,Ta,Vi)}function _o(j,me){var Ne=j.__data__;return jl(me)?Ne[typeof me=="string"?"string":"hash"]:Ne.map}function Ji(j,me){var Ne=Pe(j,me);return Ho(Ne)?Ne:void 0}var Vi=kt?ce(kt,Object):oo,Zi=io;(Mt&&Zi(new Mt(new ArrayBuffer(1)))!=C||cn&&Zi(new cn)!=h||Ct&&Zi(Ct.resolve())!=p||Ut&&Zi(new Ut)!=v||yn&&Zi(new yn)!=b)&&(Zi=function(j){var me=Ie.call(j),Ne=me==m?j.constructor:void 0,Xe=Ne?Or(Ne):void 0;if(Xe)switch(Xe){case Dt:return C;case wn:return h;case Xi:return p;case _n:return v;case Kr:return b}return me});function qc(j){var me=j.length,Ne=j.constructor(me);return me&&typeof j[0]=="string"&&Te.call(j,"index")&&(Ne.index=j.index,Ne.input=j.input),Ne}function ka(j){return typeof j.constructor=="function"&&!Uu(j)?is(_t(j)):{}}function Kc(j,me,Ne,Xe){var ln=j.constructor;switch(me){case w:return zs(j);case s:case u:return new ln(+j);case C:return ji(j,Xe);case B:case E:case N:case P:case k:case F:case D:case L:case H:return Sa(j,Xe);case h:return as(j,Xe,Ne);case d:case y:return new ln(j);case g:return qs(j);case v:return Ni(j,Xe,Ne);case _:return gr(j)}}function Ql(j,me){return me=me??i,!!me&&(typeof j=="number"||J.test(j))&&j>-1&&j%1==0&&j<me}function jl(j){var me=typeof j;return me=="string"||me=="number"||me=="symbol"||me=="boolean"?j!=="__proto__":j===null}function va(j){return!!Se&&Se in j}function Uu(j){var me=j&&j.constructor,Ne=typeof me=="function"&&me.prototype||Be;return j===Ne}function Or(j){if(j!=null){try{return Ye.call(j)}catch{}try{return j+""}catch{}}return""}function Ks(j){return ro(j,!0,!0)}function Vl(j,me){return j===me||j!==j&&me!==me}function on(j){return Pu(j)&&Te.call(j,"callee")&&(!sn.call(j,"callee")||Ie.call(j)==a)}var Yo=Array.isArray;function Gs(j){return j!=null&&zl(j.length)&&!Ea(j)}function Pu(j){return ls(j)&&Gs(j)}var Ma=bt||Gc;function Ea(j){var me=La(j)?Ie.call(j):"";return me==A||me==f}function zl(j){return typeof j=="number"&&j>-1&&j%1==0&&j<=i}function La(j){var me=typeof j;return!!j&&(me=="object"||me=="function")}function ls(j){return!!j&&typeof j=="object"}function Ta(j){return Gs(j)?cr(j):zc(j)}function oo(){return[]}function Gc(){return!1}e.exports=Ks}(Tm,Tm.exports)),Tm.exports}var Nm={exports:{}};Nm.exports;var e8;function t8(){return e8||(e8=1,function(e,t){var n=200,r="__lodash_hash_undefined__",i=1,a=2,o=9007199254740991,s="[object Arguments]",u="[object Array]",c="[object AsyncFunction]",A="[object Boolean]",f="[object Date]",h="[object Error]",d="[object Function]",m="[object GeneratorFunction]",p="[object Map]",g="[object Number]",v="[object Null]",y="[object Object]",_="[object Promise]",b="[object Proxy]",w="[object RegExp]",C="[object Set]",B="[object String]",E="[object Symbol]",N="[object Undefined]",P="[object WeakMap]",k="[object ArrayBuffer]",F="[object DataView]",D="[object Float32Array]",L="[object Float64Array]",H="[object Int8Array]",K="[object Int16Array]",q="[object Int32Array]",z="[object Uint8Array]",J="[object Uint8ClampedArray]",ie="[object Uint16Array]",X="[object Uint32Array]",I=/[\\^$.*+?()[\]{}|]/g,W=/^\[object .+?Constructor\]$/,ee=/^(?:0|[1-9]\d*)$/,ne={};ne[D]=ne[L]=ne[H]=ne[K]=ne[q]=ne[z]=ne[J]=ne[ie]=ne[X]=!0,ne[s]=ne[u]=ne[k]=ne[A]=ne[F]=ne[f]=ne[h]=ne[d]=ne[p]=ne[g]=ne[y]=ne[w]=ne[C]=ne[B]=ne[P]=!1;var pe=typeof ni=="object"&&ni&&ni.Object===Object&&ni,he=typeof self=="object"&&self&&self.Object===Object&&self,ve=pe||he||Function("return this")(),ue=t&&!t.nodeType&&t,_e=ue&&!0&&e&&!e.nodeType&&e,Le=_e&&_e.exports===ue,Me=Le&&pe.process,Pe=function(){try{return Me&&Me.binding&&Me.binding("util")}catch{}}(),Q=Pe&&Pe.isTypedArray;function te(j,me){for(var Ne=-1,Xe=j==null?0:j.length,ln=0,Pt=[];++Ne<Xe;){var Ln=j[Ne];me(Ln,Ne,j)&&(Pt[ln++]=Ln)}return Pt}function ce(j,me){for(var Ne=-1,Xe=me.length,ln=j.length;++Ne<Xe;)j[ln+Ne]=me[Ne];return j}function $(j,me){for(var Ne=-1,Xe=j==null?0:j.length;++Ne<Xe;)if(me(j[Ne],Ne,j))return!0;return!1}function Z(j,me){for(var Ne=-1,Xe=Array(j);++Ne<j;)Xe[Ne]=me(Ne);return Xe}function ae(j){return function(me){return j(me)}}function Be(j,me){return j.has(me)}function Ee(j,me){return j==null?void 0:j[me]}function Se(j){var me=-1,Ne=Array(j.size);return j.forEach(function(Xe,ln){Ne[++me]=[ln,Xe]}),Ne}function Ye(j,me){return function(Ne){return j(me(Ne))}}function Te(j){var me=-1,Ne=Array(j.size);return j.forEach(function(Xe){Ne[++me]=Xe}),Ne}var Ie=Array.prototype,Ge=Function.prototype,at=Object.prototype,tt=ve["__core-js_shared__"],pt=Ge.toString,_t=at.hasOwnProperty,vt=function(){var j=/[^.]+$/.exec(tt&&tt.keys&&tt.keys.IE_PROTO||"");return j?"Symbol(src)_1."+j:""}(),sn=at.toString,xt=RegExp("^"+pt.call(_t).replace(I,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),kt=Le?ve.Buffer:void 0,bt=ve.Symbol,an=ve.Uint8Array,Mt=at.propertyIsEnumerable,cn=Ie.splice,Ct=bt?bt.toStringTag:void 0,Ut=Object.getOwnPropertySymbols,yn=kt?kt.isBuffer:void 0,Lt=Ye(Object.keys,Object),Dt=Vi(ve,"DataView"),wn=Vi(ve,"Map"),Xi=Vi(ve,"Promise"),_n=Vi(ve,"Set"),Kr=Vi(ve,"WeakMap"),oi=Vi(Object,"create"),Gt=Or(Dt),Fr=Or(wn),fa=Or(Xi),Ei=Or(_n),Li=Or(Kr),fn=bt?bt.prototype:void 0,Hn=fn?fn.valueOf:void 0;function hn(j){var me=-1,Ne=j==null?0:j.length;for(this.clear();++me<Ne;){var Xe=j[me];this.set(Xe[0],Xe[1])}}function to(){this.__data__=oi?oi(null):{},this.size=0}function ha(j){var me=this.has(j)&&delete this.__data__[j];return this.size-=me?1:0,me}function Ti(j){var me=this.__data__;if(oi){var Ne=me[j];return Ne===r?void 0:Ne}return _t.call(me,j)?me[j]:void 0}function nr(j){var me=this.__data__;return oi?me[j]!==void 0:_t.call(me,j)}function jt(j,me){var Ne=this.__data__;return this.size+=this.has(j)?0:1,Ne[j]=oi&&me===void 0?r:me,this}hn.prototype.clear=to,hn.prototype.delete=ha,hn.prototype.get=Ti,hn.prototype.has=nr,hn.prototype.set=jt;function Zn(j){var me=-1,Ne=j==null?0:j.length;for(this.clear();++me<Ne;){var Xe=j[me];this.set(Xe[0],Xe[1])}}function gi(){this.__data__=[],this.size=0}function no(j){var me=this.__data__,Ne=br(me,j);if(Ne<0)return!1;var Xe=me.length-1;return Ne==Xe?me.pop():cn.call(me,Ne,1),--this.size,!0}function pa(j){var me=this.__data__,Ne=br(me,j);return Ne<0?void 0:me[Ne][1]}function Tt(j){return br(this.__data__,j)>-1}function Oe(j,me){var Ne=this.__data__,Xe=br(Ne,j);return Xe<0?(++this.size,Ne.push([j,me])):Ne[Xe][1]=me,this}Zn.prototype.clear=gi,Zn.prototype.delete=no,Zn.prototype.get=pa,Zn.prototype.has=Tt,Zn.prototype.set=Oe;function ot(j){var me=-1,Ne=j==null?0:j.length;for(this.clear();++me<Ne;){var Xe=j[me];this.set(Xe[0],Xe[1])}}function Et(){this.size=0,this.__data__={hash:new hn,map:new(wn||Zn),string:new hn}}function $n(j){var me=Ji(this,j).delete(j);return this.size-=me?1:0,me}function _r(j){return Ji(this,j).get(j)}function hr(j){return Ji(this,j).has(j)}function Pr(j,me){var Ne=Ji(this,j),Xe=Ne.size;return Ne.set(j,me),this.size+=Ne.size==Xe?0:1,this}ot.prototype.clear=Et,ot.prototype.delete=$n,ot.prototype.get=_r,ot.prototype.has=hr,ot.prototype.set=Pr;function cr(j){var me=-1,Ne=j==null?0:j.length;for(this.__data__=new ot;++me<Ne;)this.add(j[me])}function vi(j){return this.__data__.set(j,r),this}function ma(j){return this.__data__.has(j)}cr.prototype.add=cr.prototype.push=vi,cr.prototype.has=ma;function zn(j){var me=this.__data__=new Zn(j);this.size=me.size}function ro(){this.__data__=new Zn,this.size=0}function is(j){var me=this.__data__,Ne=me.delete(j);return this.size=me.size,Ne}function Vs(j){return this.__data__.get(j)}function io(j){return this.__data__.has(j)}function Ho(j,me){var Ne=this.__data__;if(Ne instanceof Zn){var Xe=Ne.__data__;if(!wn||Xe.length<n-1)return Xe.push([j,me]),this.size=++Ne.size,this;Ne=this.__data__=new ot(Xe)}return Ne.set(j,me),this.size=Ne.size,this}zn.prototype.clear=ro,zn.prototype.delete=is,zn.prototype.get=Vs,zn.prototype.has=io,zn.prototype.set=Ho;function zc(j,me){var Ne=on(j),Xe=!Ne&&Vl(j),ln=!Ne&&!Xe&&Gs(j),Pt=!Ne&&!Xe&&!ln&&ls(j),Ln=Ne||Xe||ln||Pt,Tn=Ln?Z(j.length,String):[],Lr=Tn.length;for(var gn in j)_t.call(j,gn)&&!(Ln&&(gn=="length"||ln&&(gn=="offset"||gn=="parent")||Pt&&(gn=="buffer"||gn=="byteLength"||gn=="byteOffset")||Kc(gn,Lr)))&&Tn.push(gn);return Tn}function br(j,me){for(var Ne=j.length;Ne--;)if(Ks(j[Ne][0],me))return Ne;return-1}function zs(j,me,Ne){var Xe=me(j);return on(j)?Xe:ce(Xe,Ne(j))}function ji(j){return j==null?j===void 0?N:v:Ct&&Ct in Object(j)?Zi(j):Uu(j)}function as(j){return La(j)&&ji(j)==s}function qs(j,me,Ne,Xe,ln){return j===me?!0:j==null||me==null||!La(j)&&!La(me)?j!==j&&me!==me:Ni(j,me,Ne,Xe,qs,ln)}function Ni(j,me,Ne,Xe,ln,Pt){var Ln=on(j),Tn=on(me),Lr=Ln?u:ka(j),gn=Tn?u:ka(me);Lr=Lr==s?y:Lr,gn=gn==s?y:gn;var ti=Lr==y,Fi=gn==y,Hr=Lr==gn;if(Hr&&Gs(j)){if(!Gs(me))return!1;Ln=!0,ti=!1}if(Hr&&!ti)return Pt||(Pt=new zn),Ln||ls(j)?ga(j,me,Ne,Xe,ln,Pt):ss(j,me,Lr,Ne,Xe,ln,Pt);if(!(Ne&i)){var wr=ti&&_t.call(j,"__wrapped__"),vr=Fi&&_t.call(me,"__wrapped__");if(wr||vr){var Br=wr?j.value():j,$i=vr?me.value():me;return Pt||(Pt=new zn),ln(Br,$i,Ne,Xe,Pt)}}return Hr?(Pt||(Pt=new zn),ao(j,me,Ne,Xe,ln,Pt)):!1}function gr(j){if(!zl(j)||jl(j))return!1;var me=Ma(j)?xt:W;return me.test(Or(j))}function Sa(j){return La(j)&&Ea(j.length)&&!!ne[ji(j)]}function os(j){if(!va(j))return Lt(j);var me=[];for(var Ne in Object(j))_t.call(j,Ne)&&Ne!="constructor"&&me.push(Ne);return me}function ga(j,me,Ne,Xe,ln,Pt){var Ln=Ne&i,Tn=j.length,Lr=me.length;if(Tn!=Lr&&!(Ln&&Lr>Tn))return!1;var gn=Pt.get(j);if(gn&&Pt.get(me))return gn==me;var ti=-1,Fi=!0,Hr=Ne&a?new cr:void 0;for(Pt.set(j,me),Pt.set(me,j);++ti<Tn;){var wr=j[ti],vr=me[ti];if(Xe)var Br=Ln?Xe(vr,wr,ti,me,j,Pt):Xe(wr,vr,ti,j,me,Pt);if(Br!==void 0){if(Br)continue;Fi=!1;break}if(Hr){if(!$(me,function($i,Ro){if(!Be(Hr,Ro)&&(wr===$i||ln(wr,$i,Ne,Xe,Pt)))return Hr.push(Ro)})){Fi=!1;break}}else if(!(wr===vr||ln(wr,vr,Ne,Xe,Pt))){Fi=!1;break}}return Pt.delete(j),Pt.delete(me),Fi}function ss(j,me,Ne,Xe,ln,Pt,Ln){switch(Ne){case F:if(j.byteLength!=me.byteLength||j.byteOffset!=me.byteOffset)return!1;j=j.buffer,me=me.buffer;case k:return!(j.byteLength!=me.byteLength||!Pt(new an(j),new an(me)));case A:case f:case g:return Ks(+j,+me);case h:return j.name==me.name&&j.message==me.message;case w:case B:return j==me+"";case p:var Tn=Se;case C:var Lr=Xe&i;if(Tn||(Tn=Te),j.size!=me.size&&!Lr)return!1;var gn=Ln.get(j);if(gn)return gn==me;Xe|=a,Ln.set(j,me);var ti=ga(Tn(j),Tn(me),Xe,ln,Pt,Ln);return Ln.delete(j),ti;case E:if(Hn)return Hn.call(j)==Hn.call(me)}return!1}function ao(j,me,Ne,Xe,ln,Pt){var Ln=Ne&i,Tn=_o(j),Lr=Tn.length,gn=_o(me),ti=gn.length;if(Lr!=ti&&!Ln)return!1;for(var Fi=Lr;Fi--;){var Hr=Tn[Fi];if(!(Ln?Hr in me:_t.call(me,Hr)))return!1}var wr=Pt.get(j);if(wr&&Pt.get(me))return wr==me;var vr=!0;Pt.set(j,me),Pt.set(me,j);for(var Br=Ln;++Fi<Lr;){Hr=Tn[Fi];var $i=j[Hr],Ro=me[Hr];if(Xe)var U=Ln?Xe(Ro,$i,Hr,me,j,Pt):Xe($i,Ro,Hr,j,me,Pt);if(!(U===void 0?$i===Ro||ln($i,Ro,Ne,Xe,Pt):U)){vr=!1;break}Br||(Br=Hr=="constructor")}if(vr&&!Br){var oe=j.constructor,we=me.constructor;oe!=we&&"constructor"in j&&"constructor"in me&&!(typeof oe=="function"&&oe instanceof oe&&typeof we=="function"&&we instanceof we)&&(vr=!1)}return Pt.delete(j),Pt.delete(me),vr}function _o(j){return zs(j,Ta,qc)}function Ji(j,me){var Ne=j.__data__;return Ql(me)?Ne[typeof me=="string"?"string":"hash"]:Ne.map}function Vi(j,me){var Ne=Ee(j,me);return gr(Ne)?Ne:void 0}function Zi(j){var me=_t.call(j,Ct),Ne=j[Ct];try{j[Ct]=void 0;var Xe=!0}catch{}var ln=sn.call(j);return Xe&&(me?j[Ct]=Ne:delete j[Ct]),ln}var qc=Ut?function(j){return j==null?[]:(j=Object(j),te(Ut(j),function(me){return Mt.call(j,me)}))}:oo,ka=ji;(Dt&&ka(new Dt(new ArrayBuffer(1)))!=F||wn&&ka(new wn)!=p||Xi&&ka(Xi.resolve())!=_||_n&&ka(new _n)!=C||Kr&&ka(new Kr)!=P)&&(ka=function(j){var me=ji(j),Ne=me==y?j.constructor:void 0,Xe=Ne?Or(Ne):"";if(Xe)switch(Xe){case Gt:return F;case Fr:return p;case fa:return _;case Ei:return C;case Li:return P}return me});function Kc(j,me){return me=me??o,!!me&&(typeof j=="number"||ee.test(j))&&j>-1&&j%1==0&&j<me}function Ql(j){var me=typeof j;return me=="string"||me=="number"||me=="symbol"||me=="boolean"?j!=="__proto__":j===null}function jl(j){return!!vt&&vt in j}function va(j){var me=j&&j.constructor,Ne=typeof me=="function"&&me.prototype||at;return j===Ne}function Uu(j){return sn.call(j)}function Or(j){if(j!=null){try{return pt.call(j)}catch{}try{return j+""}catch{}}return""}function Ks(j,me){return j===me||j!==j&&me!==me}var Vl=as(function(){return arguments}())?as:function(j){return La(j)&&_t.call(j,"callee")&&!Mt.call(j,"callee")},on=Array.isArray;function Yo(j){return j!=null&&Ea(j.length)&&!Ma(j)}var Gs=yn||Gc;function Pu(j,me){return qs(j,me)}function Ma(j){if(!zl(j))return!1;var me=ji(j);return me==d||me==m||me==c||me==b}function Ea(j){return typeof j=="number"&&j>-1&&j%1==0&&j<=o}function zl(j){var me=typeof j;return j!=null&&(me=="object"||me=="function")}function La(j){return j!=null&&typeof j=="object"}var ls=Q?ae(Q):Sa;function Ta(j){return Yo(j)?zc(j):os(j)}function oo(){return[]}function Gc(){return!1}e.exports=Pu}(Nm,Nm.exports)),Nm.exports}var Jv={},n8;function wue(){if(n8)return Jv;n8=1,Object.defineProperty(Jv,"__esModule",{value:!0});const e=$T(),t=t8();var n;return function(r){function i(u={},c={},A=!1){typeof u!="object"&&(u={}),typeof c!="object"&&(c={});let f=e(c);A||(f=Object.keys(f).reduce((h,d)=>(f[d]!=null&&(h[d]=f[d]),h),{}));for(const h in u)u[h]!==void 0&&c[h]===void 0&&(f[h]=u[h]);return Object.keys(f).length>0?f:void 0}r.compose=i;function a(u={},c={}){typeof u!="object"&&(u={}),typeof c!="object"&&(c={});const A=Object.keys(u).concat(Object.keys(c)).reduce((f,h)=>(t(u[h],c[h])||(f[h]=c[h]===void 0?null:c[h]),f),{});return Object.keys(A).length>0?A:void 0}r.diff=a;function o(u={},c={}){u=u||{};const A=Object.keys(c).reduce((f,h)=>(c[h]!==u[h]&&u[h]!==void 0&&(f[h]=c[h]),f),{});return Object.keys(u).reduce((f,h)=>(u[h]!==c[h]&&c[h]===void 0&&(f[h]=null),f),A)}r.invert=o;function s(u,c,A=!1){if(typeof u!="object")return c;if(typeof c!="object")return;if(!A)return c;const f=Object.keys(c).reduce((h,d)=>(u[d]===void 0&&(h[d]=c[d]),h),{});return Object.keys(f).length>0?f:void 0}r.transform=s}(n||(n={})),Jv.default=n,Jv}var Zv={},r8;function i8(){if(r8)return Zv;r8=1,Object.defineProperty(Zv,"__esModule",{value:!0});var e;return function(t){function n(r){return typeof r.delete=="number"?r.delete:typeof r.retain=="number"?r.retain:typeof r.retain=="object"&&r.retain!==null?1:typeof r.insert=="string"?r.insert.length:1}t.length=n}(e||(e={})),Zv.default=e,Zv}var $v={},a8;function Bue(){if(a8)return $v;a8=1,Object.defineProperty($v,"__esModule",{value:!0});const e=i8();class t{constructor(r){this.ops=r,this.index=0,this.offset=0}hasNext(){return this.peekLength()<1/0}next(r){r||(r=1/0);const i=this.ops[this.index];if(i){const a=this.offset,o=e.default.length(i);if(r>=o-a?(r=o-a,this.index+=1,this.offset=0):this.offset+=r,typeof i.delete=="number")return{delete:r};{const s={};return i.attributes&&(s.attributes=i.attributes),typeof i.retain=="number"?s.retain=r:typeof i.retain=="object"&&i.retain!==null?s.retain=i.retain:typeof i.insert=="string"?s.insert=i.insert.substr(a,r):s.insert=i.insert,s}}else return{retain:1/0}}peek(){return this.ops[this.index]}peekLength(){return this.ops[this.index]?e.default.length(this.ops[this.index])-this.offset:1/0}peekType(){const r=this.ops[this.index];return r?typeof r.delete=="number"?"delete":typeof r.retain=="number"||typeof r.retain=="object"&&r.retain!==null?"retain":"insert":"retain"}rest(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);{const r=this.offset,i=this.index,a=this.next(),o=this.ops.slice(this.index);return this.offset=r,this.index=i,[a].concat(o)}}else return[]}}return $v.default=t,$v}var o8;function xue(){return o8||(o8=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.AttributeMap=t.OpIterator=t.Op=void 0;const n=bue(),r=$T(),i=t8(),a=wue();t.AttributeMap=a.default;const o=i8();t.Op=o.default;const s=Bue();t.OpIterator=s.default;const u="\0",c=(f,h)=>{if(typeof f!="object"||f===null)throw new Error(`cannot retain a ${typeof f}`);if(typeof h!="object"||h===null)throw new Error(`cannot retain a ${typeof h}`);const d=Object.keys(f)[0];if(!d||d!==Object.keys(h)[0])throw new Error(`embed types not matched: ${d} != ${Object.keys(h)[0]}`);return[d,f[d],h[d]]};class A{constructor(h){Array.isArray(h)?this.ops=h:h!=null&&Array.isArray(h.ops)?this.ops=h.ops:this.ops=[]}static registerEmbed(h,d){this.handlers[h]=d}static unregisterEmbed(h){delete this.handlers[h]}static getHandler(h){const d=this.handlers[h];if(!d)throw new Error(`no handlers for embed type "${h}"`);return d}insert(h,d){const m={};return typeof h=="string"&&h.length===0?this:(m.insert=h,d!=null&&typeof d=="object"&&Object.keys(d).length>0&&(m.attributes=d),this.push(m))}delete(h){return h<=0?this:this.push({delete:h})}retain(h,d){if(typeof h=="number"&&h<=0)return this;const m={retain:h};return d!=null&&typeof d=="object"&&Object.keys(d).length>0&&(m.attributes=d),this.push(m)}push(h){let d=this.ops.length,m=this.ops[d-1];if(h=r(h),typeof m=="object"){if(typeof h.delete=="number"&&typeof m.delete=="number")return this.ops[d-1]={delete:m.delete+h.delete},this;if(typeof m.delete=="number"&&h.insert!=null&&(d-=1,m=this.ops[d-1],typeof m!="object"))return this.ops.unshift(h),this;if(i(h.attributes,m.attributes)){if(typeof h.insert=="string"&&typeof m.insert=="string")return this.ops[d-1]={insert:m.insert+h.insert},typeof h.attributes=="object"&&(this.ops[d-1].attributes=h.attributes),this;if(typeof h.retain=="number"&&typeof m.retain=="number")return this.ops[d-1]={retain:m.retain+h.retain},typeof h.attributes=="object"&&(this.ops[d-1].attributes=h.attributes),this}}return d===this.ops.length?this.ops.push(h):this.ops.splice(d,0,h),this}chop(){const h=this.ops[this.ops.length-1];return h&&typeof h.retain=="number"&&!h.attributes&&this.ops.pop(),this}filter(h){return this.ops.filter(h)}forEach(h){this.ops.forEach(h)}map(h){return this.ops.map(h)}partition(h){const d=[],m=[];return this.forEach(p=>{(h(p)?d:m).push(p)}),[d,m]}reduce(h,d){return this.ops.reduce(h,d)}changeLength(){return this.reduce((h,d)=>d.insert?h+o.default.length(d):d.delete?h-d.delete:h,0)}length(){return this.reduce((h,d)=>h+o.default.length(d),0)}slice(h=0,d=1/0){const m=[],p=new s.default(this.ops);let g=0;for(;g<d&&p.hasNext();){let v;g<h?v=p.next(h-g):(v=p.next(d-g),m.push(v)),g+=o.default.length(v)}return new A(m)}compose(h){const d=new s.default(this.ops),m=new s.default(h.ops),p=[],g=m.peek();if(g!=null&&typeof g.retain=="number"&&g.attributes==null){let y=g.retain;for(;d.peekType()==="insert"&&d.peekLength()<=y;)y-=d.peekLength(),p.push(d.next());g.retain-y>0&&m.next(g.retain-y)}const v=new A(p);for(;d.hasNext()||m.hasNext();)if(m.peekType()==="insert")v.push(m.next());else if(d.peekType()==="delete")v.push(d.next());else{const y=Math.min(d.peekLength(),m.peekLength()),_=d.next(y),b=m.next(y);if(b.retain){const w={};if(typeof _.retain=="number")w.retain=typeof b.retain=="number"?y:b.retain;else if(typeof b.retain=="number")_.retain==null?w.insert=_.insert:w.retain=_.retain;else{const B=_.retain==null?"insert":"retain",[E,N,P]=c(_[B],b.retain),k=A.getHandler(E);w[B]={[E]:k.compose(N,P,B==="retain")}}const C=a.default.compose(_.attributes,b.attributes,typeof _.retain=="number");if(C&&(w.attributes=C),v.push(w),!m.hasNext()&&i(v.ops[v.ops.length-1],w)){const B=new A(d.rest());return v.concat(B).chop()}}else typeof b.delete=="number"&&(typeof _.retain=="number"||typeof _.retain=="object"&&_.retain!==null)&&v.push(b)}return v.chop()}concat(h){const d=new A(this.ops.slice());return h.ops.length>0&&(d.push(h.ops[0]),d.ops=d.ops.concat(h.ops.slice(1))),d}diff(h,d){if(this.ops===h.ops)return new A;const m=[this,h].map(_=>_.map(b=>{if(b.insert!=null)return typeof b.insert=="string"?b.insert:u;const w=_===h?"on":"with";throw new Error("diff() called "+w+" non-document")}).join("")),p=new A,g=n(m[0],m[1],d,!0),v=new s.default(this.ops),y=new s.default(h.ops);return g.forEach(_=>{let b=_[1].length;for(;b>0;){let w=0;switch(_[0]){case n.INSERT:w=Math.min(y.peekLength(),b),p.push(y.next(w));break;case n.DELETE:w=Math.min(b,v.peekLength()),v.next(w),p.delete(w);break;case n.EQUAL:w=Math.min(v.peekLength(),y.peekLength(),b);const C=v.next(w),B=y.next(w);i(C.insert,B.insert)?p.retain(w,a.default.diff(C.attributes,B.attributes)):p.push(B).delete(w);break}b-=w}}),p.chop()}eachLine(h,d=`
9
9
  `){const m=new s.default(this.ops);let p=new A,g=0;for(;m.hasNext();){if(m.peekType()!=="insert")return;const v=m.peek(),y=o.default.length(v)-m.peekLength(),_=typeof v.insert=="string"?v.insert.indexOf(d,y)-y:-1;if(_<0)p.push(m.next());else if(_>0)p.push(m.next(_));else{if(h(p,m.next(1).attributes||{},g)===!1)return;g+=1,p=new A}}p.length()>0&&h(p,{},g)}invert(h){const d=new A;return this.reduce((m,p)=>{if(p.insert)d.delete(o.default.length(p));else{if(typeof p.retain=="number"&&p.attributes==null)return d.retain(p.retain),m+p.retain;if(p.delete||typeof p.retain=="number"){const g=p.delete||p.retain;return h.slice(m,m+g).forEach(y=>{p.delete?d.push(y):p.retain&&p.attributes&&d.retain(o.default.length(y),a.default.invert(p.attributes,y.attributes))}),m+g}else if(typeof p.retain=="object"&&p.retain!==null){const g=h.slice(m,m+1),v=new s.default(g.ops).next(),[y,_,b]=c(p.retain,v.insert),w=A.getHandler(y);return d.retain({[y]:w.invert(_,b)},a.default.invert(p.attributes,v.attributes)),m+1}}return m},0),d.chop()}transform(h,d=!1){if(d=!!d,typeof h=="number")return this.transformPosition(h,d);const m=h,p=new s.default(this.ops),g=new s.default(m.ops),v=new A;for(;p.hasNext()||g.hasNext();)if(p.peekType()==="insert"&&(d||g.peekType()!=="insert"))v.retain(o.default.length(p.next()));else if(g.peekType()==="insert")v.push(g.next());else{const y=Math.min(p.peekLength(),g.peekLength()),_=p.next(y),b=g.next(y);if(_.delete)continue;if(b.delete)v.push(b);else{const w=_.retain,C=b.retain;let B=typeof C=="object"&&C!==null?C:y;if(typeof w=="object"&&w!==null&&typeof C=="object"&&C!==null){const E=Object.keys(w)[0];if(E===Object.keys(C)[0]){const N=A.getHandler(E);N&&(B={[E]:N.transform(w[E],C[E],d)})}}v.retain(B,a.default.transform(_.attributes,b.attributes,d))}}return v.chop()}transformPosition(h,d=!1){d=!!d;const m=new s.default(this.ops);let p=0;for(;m.hasNext()&&p<=h;){const g=m.peekLength(),v=m.peekType();if(m.next(),v==="delete"){h-=Math.min(g,h-p);continue}else v==="insert"&&(p<h||!d)&&(h+=g);p+=g}return h}}A.Op=o.default,A.OpIterator=s.default,A.AttributeMap=a.default,A.handlers={},t.default=A,e.exports=A,e.exports.default=A}(Xv,Xv.exports)),Xv.exports}var ys=xue();const Wt=uh(ys);let tl=class extends Go{static value(){}optimize(){(this.prev||this.next)&&this.remove()}length(){return 0}value(){return""}};tl.blotName="break",tl.tagName="BR";let nl=class extends Wv{};function e1(e){return e.replace(/[&<>"']/g,t=>({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"})[t])}const Iu=class Iu extends n5{static compare(t,n){const r=Iu.order.indexOf(t),i=Iu.order.indexOf(n);return r>=0||i>=0?r-i:t===n?0:t<n?-1:1}formatAt(t,n,r,i){if(Iu.compare(this.statics.blotName,r)<0&&this.scroll.query(r,Zt.BLOT)){const a=this.isolate(t,n);i&&a.wrap(r,i)}else super.formatAt(t,n,r,i)}optimize(t){if(super.optimize(t),this.parent instanceof Iu&&Iu.compare(this.statics.blotName,this.parent.statics.blotName)>0){const n=this.parent.isolate(this.offset(),this.length());this.moveChildren(n),n.wrap(this)}}};mt(Iu,"allowedChildren",[Iu,tl,Go,nl]),mt(Iu,"order",["cursor","inline","link","underline","strike","italic","bold","script","code"]);let au=Iu;const s8=1;class ya extends Lm{constructor(){super(...arguments);mt(this,"cache",{})}delta(){return this.cache.delta==null&&(this.cache.delta=l8(this)),this.cache.delta}deleteAt(n,r){super.deleteAt(n,r),this.cache={}}formatAt(n,r,i,a){r<=0||(this.scroll.query(i,Zt.BLOCK)?n+r===this.length()&&this.format(i,a):super.formatAt(n,Math.min(r,this.length()-n-1),i,a),this.cache={})}insertAt(n,r,i){if(i!=null){super.insertAt(n,r,i),this.cache={};return}if(r.length===0)return;const a=r.split(`
10
10
  `),o=a.shift();o.length>0&&(n<this.length()-1||this.children.tail==null?super.insertAt(Math.min(n,this.length()-1),o):this.children.tail.insertAt(this.children.tail.length(),o),this.cache={});let s=this;a.reduce((u,c)=>(s=s.split(u,!0),s.insertAt(0,c),c.length),n+o.length)}insertBefore(n,r){const{head:i}=this.children;super.insertBefore(n,r),i instanceof tl&&i.remove(),this.cache={}}length(){return this.cache.length==null&&(this.cache.length=super.length()+s8),this.cache.length}moveChildren(n,r){super.moveChildren(n,r),this.cache={}}optimize(n){super.optimize(n),this.cache={}}path(n){return super.path(n,!0)}removeChild(n){super.removeChild(n),this.cache={}}split(n){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(r&&(n===0||n>=this.length()-s8)){const a=this.clone();return n===0?(this.parent.insertBefore(a,this),this):(this.parent.insertBefore(a,this.next),a)}const i=super.split(n,r);return this.cache={},i}}ya.blotName="block",ya.tagName="P",ya.defaultChild=tl,ya.allowedChildren=[tl,au,Go,nl];class _s extends Go{attach(){super.attach(),this.attributes=new Kv(this.domNode)}delta(){return new Wt().insert(this.value(),{...this.formats(),...this.attributes.values()})}format(t,n){const r=this.scroll.query(t,Zt.BLOCK_ATTRIBUTE);r!=null&&this.attributes.attribute(r,n)}formatAt(t,n,r,i){this.format(r,i)}insertAt(t,n,r){if(r!=null){super.insertAt(t,n,r);return}const i=n.split(`
11
11
  `),a=i.pop(),o=i.map(u=>{const c=this.scroll.create(ya.blotName);return c.insertAt(0,u),c}),s=this.split(t);o.forEach(u=>{this.parent.insertBefore(u,s)}),a&&this.parent.insertBefore(this.scroll.create("text",a),s)}}_s.scope=Zt.BLOCK_BLOT;function l8(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.descendants(Ia).reduce((n,r)=>r.length()===0?n:n.insert(r.value(),bs(r,{},t)),new Wt).insert(`
@@ -54,7 +54,7 @@ ${e1(this.code(t,n))}
54
54
  `).reduce((o,s,u)=>(u!==0&&o.insert(`
55
55
  `,{[Ua.blotName]:n}),o.insert(s)),a)],new WeakMap)}}j8.DEFAULTS={hljs:window.hljs,interval:1e3,languages:[{key:"plain",label:"Plain"},{key:"bash",label:"Bash"},{key:"cpp",label:"C++"},{key:"cs",label:"C#"},{key:"css",label:"CSS"},{key:"diff",label:"Diff"},{key:"xml",label:"HTML/XML"},{key:"java",label:"Java"},{key:"javascript",label:"JavaScript"},{key:"markdown",label:"Markdown"},{key:"php",label:"PHP"},{key:"python",label:"Python"},{key:"ruby",label:"Ruby"},{key:"sql",label:"SQL"}]};const gv=class gv extends ya{static create(t){const n=super.create();return t?n.setAttribute("data-row",t):n.setAttribute("data-row",O5()),n}static formats(t){if(t.hasAttribute("data-row"))return t.getAttribute("data-row")}cellOffset(){return this.parent?this.parent.children.indexOf(this):-1}format(t,n){t===gv.blotName&&n?this.domNode.setAttribute("data-row",n):super.format(t,n)}row(){return this.parent}rowOffset(){return this.row()?this.row().rowOffset():-1}table(){return this.row()&&this.row().table()}};mt(gv,"blotName","table"),mt(gv,"tagName","TD");let al=gv;class Ju extends Rd{checkMerge(){if(super.checkMerge()&&this.next.children.head!=null){const t=this.children.head.formats(),n=this.children.tail.formats(),r=this.next.children.head.formats(),i=this.next.children.tail.formats();return t.table===n.table&&t.table===r.table&&t.table===i.table}return!1}optimize(t){super.optimize(t),this.children.forEach(n=>{if(n.next==null)return;const r=n.formats(),i=n.next.formats();if(r.table!==i.table){const a=this.splitAfter(n);a&&a.optimize(),this.prev&&this.prev.optimize()}})}rowOffset(){return this.parent?this.parent.children.indexOf(this):-1}table(){return this.parent&&this.parent.parent}}mt(Ju,"blotName","table-row"),mt(Ju,"tagName","TR");class ou extends Rd{}mt(ou,"blotName","table-body"),mt(ou,"tagName","TBODY");class Bh extends Rd{balanceCells(){const t=this.descendants(Ju),n=t.reduce((r,i)=>Math.max(i.children.length,r),0);t.forEach(r=>{new Array(n-r.children.length).fill(0).forEach(()=>{let i;r.children.head!=null&&(i=al.formats(r.children.head.domNode));const a=this.scroll.create(al.blotName,i);r.appendChild(a),a.optimize()})})}cells(t){return this.rows().map(n=>n.children.at(t))}deleteColumn(t){const[n]=this.descendant(ou);n==null||n.children.head==null||n.children.forEach(r=>{const i=r.children.at(t);i!=null&&i.remove()})}insertColumn(t){const[n]=this.descendant(ou);n==null||n.children.head==null||n.children.forEach(r=>{const i=r.children.at(t),a=al.formats(r.children.head.domNode),o=this.scroll.create(al.blotName,a);r.insertBefore(o,i)})}insertRow(t){const[n]=this.descendant(ou);if(n==null||n.children.head==null)return;const r=O5(),i=this.scroll.create(Ju.blotName);n.children.head.children.forEach(()=>{const o=this.scroll.create(al.blotName,r);i.appendChild(o)});const a=n.children.at(t);n.insertBefore(i,a)}rows(){const t=this.children.head;return t==null?[]:t.children.map(n=>n)}}mt(Bh,"blotName","table-container"),mt(Bh,"tagName","TABLE"),Bh.allowedChildren=[ou],ou.requiredContainer=Bh,ou.allowedChildren=[Ju],Ju.requiredContainer=ou,Ju.allowedChildren=[al],al.requiredContainer=Ju;function O5(){return`row-${Math.random().toString(36).slice(2,6)}`}class Ice extends rl{static register(){st.register(al),st.register(Ju),st.register(ou),st.register(Bh)}constructor(){super(...arguments),this.listenBalanceCells()}balanceTables(){this.quill.scroll.descendants(Bh).forEach(t=>{t.balanceCells()})}deleteColumn(){const[t,,n]=this.getTable();n!=null&&(t.deleteColumn(n.cellOffset()),this.quill.update(st.sources.USER))}deleteRow(){const[,t]=this.getTable();t!=null&&(t.remove(),this.quill.update(st.sources.USER))}deleteTable(){const[t]=this.getTable();if(t==null)return;const n=t.offset();t.remove(),this.quill.update(st.sources.USER),this.quill.setSelection(n,st.sources.SILENT)}getTable(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.quill.getSelection();if(t==null)return[null,null,null,-1];const[n,r]=this.quill.getLine(t.index);if(n==null||n.statics.blotName!==al.blotName)return[null,null,null,-1];const i=n.parent;return[i.parent.parent,i,n,r]}insertColumn(t){const n=this.quill.getSelection();if(!n)return;const[r,i,a]=this.getTable(n);if(a==null)return;const o=a.cellOffset();r.insertColumn(o+t),this.quill.update(st.sources.USER);let s=i.rowOffset();t===0&&(s+=1),this.quill.setSelection(n.index+s,n.length,st.sources.SILENT)}insertColumnLeft(){this.insertColumn(0)}insertColumnRight(){this.insertColumn(1)}insertRow(t){const n=this.quill.getSelection();if(!n)return;const[r,i,a]=this.getTable(n);if(a==null)return;const o=i.rowOffset();r.insertRow(o+t),this.quill.update(st.sources.USER),t>0?this.quill.setSelection(n,st.sources.SILENT):this.quill.setSelection(n.index+i.children.length,n.length,st.sources.SILENT)}insertRowAbove(){this.insertRow(0)}insertRowBelow(){this.insertRow(1)}insertTable(t,n){const r=this.quill.getSelection();if(r==null)return;const i=new Array(t).fill(0).reduce(a=>{const o=new Array(n).fill(`
56
56
  `).join("");return a.insert(o,{table:O5()})},new Wt().retain(r.index));this.quill.updateContents(i,st.sources.USER),this.quill.setSelection(r.index,st.sources.SILENT),this.balanceTables()}listenBalanceCells(){this.quill.on(st.events.SCROLL_OPTIMIZE,t=>{t.some(n=>["TD","TR","TBODY","TABLE"].includes(n.target.tagName)?(this.quill.once(st.events.TEXT_CHANGE,(r,i,a)=>{a===st.sources.USER&&this.balanceTables()}),!0):!1)})}}const V8=Gu("quill:toolbar");class D5 extends rl{constructor(t,n){var r,i;if(super(t,n),Array.isArray(this.options.container)){const a=document.createElement("div");a.setAttribute("role","toolbar"),Uce(a,this.options.container),(i=(r=t.container)==null?void 0:r.parentNode)==null||i.insertBefore(a,t.container),this.container=a}else typeof this.options.container=="string"?this.container=document.querySelector(this.options.container):this.container=this.options.container;if(!(this.container instanceof HTMLElement)){V8.error("Container required for toolbar",this.options);return}this.container.classList.add("ql-toolbar"),this.controls=[],this.handlers={},this.options.handlers&&Object.keys(this.options.handlers).forEach(a=>{var s;const o=(s=this.options.handlers)==null?void 0:s[a];o&&this.addHandler(a,o)}),Array.from(this.container.querySelectorAll("button, select")).forEach(a=>{this.attach(a)}),this.quill.on(st.events.EDITOR_CHANGE,()=>{const[a]=this.quill.selection.getRange();this.update(a)})}addHandler(t,n){this.handlers[t]=n}attach(t){let n=Array.from(t.classList).find(i=>i.indexOf("ql-")===0);if(!n)return;if(n=n.slice(3),t.tagName==="BUTTON"&&t.setAttribute("type","button"),this.handlers[n]==null&&this.quill.scroll.query(n)==null){V8.warn("ignoring attaching to nonexistent format",n,t);return}const r=t.tagName==="SELECT"?"change":"click";t.addEventListener(r,i=>{let a;if(t.tagName==="SELECT"){if(t.selectedIndex<0)return;const s=t.options[t.selectedIndex];s.hasAttribute("selected")?a=!1:a=s.value||!1}else t.classList.contains("ql-active")?a=!1:a=t.value||!t.hasAttribute("value"),i.preventDefault();this.quill.focus();const[o]=this.quill.selection.getRange();if(this.handlers[n]!=null)this.handlers[n].call(this,a);else if(this.quill.scroll.query(n).prototype instanceof Go){if(a=prompt(`Enter ${n}`),!a)return;this.quill.updateContents(new Wt().retain(o.index).delete(o.length).insert({[n]:a}),st.sources.USER)}else this.quill.format(n,a,st.sources.USER);this.update(o)}),this.controls.push([n,t])}update(t){const n=t==null?{}:this.quill.getFormat(t);this.controls.forEach(r=>{const[i,a]=r;if(a.tagName==="SELECT"){let o=null;if(t==null)o=null;else if(n[i]==null)o=a.querySelector("option[selected]");else if(!Array.isArray(n[i])){let s=n[i];typeof s=="string"&&(s=s.replace(/"/g,'\\"')),o=a.querySelector(`option[value="${s}"]`)}o==null?(a.value="",a.selectedIndex=-1):o.selected=!0}else if(t==null)a.classList.remove("ql-active"),a.setAttribute("aria-pressed","false");else if(a.hasAttribute("value")){const o=n[i],s=o===a.getAttribute("value")||o!=null&&o.toString()===a.getAttribute("value")||o==null&&!a.getAttribute("value");a.classList.toggle("ql-active",s),a.setAttribute("aria-pressed",s.toString())}else{const o=n[i]!=null;a.classList.toggle("ql-active",o),a.setAttribute("aria-pressed",o.toString())}})}}D5.DEFAULTS={};function z8(e,t,n){const r=document.createElement("button");r.setAttribute("type","button"),r.classList.add(`ql-${t}`),r.setAttribute("aria-pressed","false"),n!=null?(r.value=n,r.setAttribute("aria-label",`${t}: ${n}`)):r.setAttribute("aria-label",t),e.appendChild(r)}function Uce(e,t){Array.isArray(t[0])||(t=[t]),t.forEach(n=>{const r=document.createElement("span");r.classList.add("ql-formats"),n.forEach(i=>{if(typeof i=="string")z8(r,i);else{const a=Object.keys(i)[0],o=i[a];Array.isArray(o)?Pce(r,a,o):z8(r,a,o)}}),e.appendChild(r)})}function Pce(e,t,n){const r=document.createElement("select");r.classList.add(`ql-${t}`),n.forEach(i=>{const a=document.createElement("option");i!==!1?a.setAttribute("value",String(i)):a.setAttribute("selected","selected"),r.appendChild(a)}),e.appendChild(r)}D5.DEFAULTS={container:null,handlers:{clean(){const e=this.quill.getSelection();if(e!=null)if(e.length===0){const t=this.quill.getFormat();Object.keys(t).forEach(n=>{this.quill.scroll.query(n,Zt.INLINE)!=null&&this.quill.format(n,!1,st.sources.USER)})}else this.quill.removeFormat(e.index,e.length,st.sources.USER)},direction(e){const{align:t}=this.quill.getFormat();e==="rtl"&&t==null?this.quill.format("align","right",st.sources.USER):!e&&t==="right"&&this.quill.format("align",!1,st.sources.USER),this.quill.format("direction",e,st.sources.USER)},indent(e){const t=this.quill.getSelection(),n=this.quill.getFormat(t),r=parseInt(n.indent||0,10);if(e==="+1"||e==="-1"){let i=e==="+1"?1:-1;n.direction==="rtl"&&(i*=-1),this.quill.format("indent",r+i,st.sources.USER)}},link(e){e===!0&&(e=prompt("Enter link URL:")),this.quill.format("link",e,st.sources.USER)},list(e){const t=this.quill.getSelection(),n=this.quill.getFormat(t);e==="check"?n.list==="checked"||n.list==="unchecked"?this.quill.format("list",!1,st.sources.USER):this.quill.format("list","unchecked",st.sources.USER):this.quill.format("list",e,st.sources.USER)}}};const Hce='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="3" x2="13" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="9" y1="4" y2="4"/></svg>',Yce='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="14" x2="4" y1="14" y2="14"/><line class="ql-stroke" x1="12" x2="6" y1="4" y2="4"/></svg>',Rce='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="15" x2="5" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="9" y1="4" y2="4"/></svg>',Qce='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="15" x2="3" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="3" y1="4" y2="4"/></svg>',jce='<svg viewbox="0 0 18 18"><g class="ql-fill ql-color-label"><polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"/><rect height="1" width="1" x="4" y="4"/><polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"/><rect height="1" width="1" x="2" y="6"/><rect height="1" width="1" x="3" y="5"/><rect height="1" width="1" x="4" y="7"/><polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"/><rect height="1" width="1" x="2" y="12"/><rect height="1" width="1" x="2" y="9"/><rect height="1" width="1" x="2" y="15"/><polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"/><rect height="1" width="1" x="3" y="8"/><path d="M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z"/><path d="M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z"/><path d="M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z"/><rect height="1" width="1" x="12" y="2"/><rect height="1" width="1" x="11" y="3"/><path d="M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z"/><rect height="1" width="1" x="2" y="3"/><rect height="1" width="1" x="6" y="2"/><rect height="1" width="1" x="3" y="2"/><rect height="1" width="1" x="5" y="3"/><rect height="1" width="1" x="9" y="2"/><rect height="1" width="1" x="15" y="14"/><polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"/><rect height="1" width="1" x="13" y="7"/><rect height="1" width="1" x="15" y="5"/><rect height="1" width="1" x="14" y="6"/><rect height="1" width="1" x="15" y="8"/><rect height="1" width="1" x="14" y="9"/><path d="M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z"/><rect height="1" width="1" x="14" y="3"/><polygon points="12 6.868 12 6 11.62 6 12 6.868"/><rect height="1" width="1" x="15" y="2"/><rect height="1" width="1" x="12" y="5"/><rect height="1" width="1" x="13" y="4"/><polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"/><rect height="1" width="1" x="9" y="14"/><rect height="1" width="1" x="8" y="15"/><path d="M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z"/><rect height="1" width="1" x="5" y="15"/><path d="M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z"/><rect height="1" width="1" x="11" y="15"/><path d="M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z"/><rect height="1" width="1" x="14" y="15"/><rect height="1" width="1" x="15" y="11"/></g><polyline class="ql-stroke" points="5.5 13 9 5 12.5 13"/><line class="ql-stroke" x1="11.63" x2="6.38" y1="11" y2="11"/></svg>',Vce='<svg viewbox="0 0 18 18"><rect class="ql-fill ql-stroke" height="3" width="3" x="4" y="5"/><rect class="ql-fill ql-stroke" height="3" width="3" x="11" y="5"/><path class="ql-even ql-fill ql-stroke" d="M7,8c0,4.031-3,5-3,5"/><path class="ql-even ql-fill ql-stroke" d="M14,8c0,4.031-3,5-3,5"/></svg>',zce='<svg viewbox="0 0 18 18"><path class="ql-stroke" d="M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z"/><path class="ql-stroke" d="M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z"/></svg>',qce='<svg class="" viewbox="0 0 18 18"><line class="ql-stroke" x1="5" x2="13" y1="3" y2="3"/><line class="ql-stroke" x1="6" x2="9.35" y1="12" y2="3"/><line class="ql-stroke" x1="11" x2="15" y1="11" y2="15"/><line class="ql-stroke" x1="15" x2="11" y1="11" y2="15"/><rect class="ql-fill" height="1" rx="0.5" ry="0.5" width="7" x="2" y="14"/></svg>',q8='<svg viewbox="0 0 18 18"><polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"/><polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"/><line class="ql-stroke" x1="10" x2="8" y1="5" y2="13"/></svg>',Ym={align:{"":Hce,center:Yce,right:Rce,justify:Qce},background:jce,blockquote:Vce,bold:zce,clean:qce,code:q8,"code-block":q8,color:'<svg viewbox="0 0 18 18"><line class="ql-color-label ql-stroke ql-transparent" x1="3" x2="15" y1="15" y2="15"/><polyline class="ql-stroke" points="5.5 11 9 3 12.5 11"/><line class="ql-stroke" x1="11.63" x2="6.38" y1="9" y2="9"/></svg>',direction:{"":'<svg viewbox="0 0 18 18"><polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"/><line class="ql-stroke ql-fill" x1="15" x2="11" y1="4" y2="4"/><path class="ql-fill" d="M11,3a3,3,0,0,0,0,6h1V3H11Z"/><rect class="ql-fill" height="11" width="1" x="11" y="4"/><rect class="ql-fill" height="11" width="1" x="13" y="4"/></svg>',rtl:'<svg viewbox="0 0 18 18"><polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"/><line class="ql-stroke ql-fill" x1="9" x2="5" y1="4" y2="4"/><path class="ql-fill" d="M5,3A3,3,0,0,0,5,9H6V3H5Z"/><rect class="ql-fill" height="11" width="1" x="5" y="4"/><rect class="ql-fill" height="11" width="1" x="7" y="4"/></svg>'},formula:'<svg viewbox="0 0 18 18"><path class="ql-fill" d="M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z"/><rect class="ql-fill" height="1.6" rx="0.8" ry="0.8" width="5" x="5.15" y="6.2"/><path class="ql-fill" d="M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z"/></svg>',header:{1:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z"/></svg>',2:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',3:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.65186,12.30664a2.6742,2.6742,0,0,1-2.915,2.68457,3.96592,3.96592,0,0,1-2.25537-.6709.56007.56007,0,0,1-.13232-.83594L11.64648,13c.209-.34082.48389-.36328.82471-.1543a2.32654,2.32654,0,0,0,1.12256.33008c.71484,0,1.12207-.35156,1.12207-.78125,0-.61523-.61621-.86816-1.46338-.86816H13.2085a.65159.65159,0,0,1-.68213-.41895l-.05518-.10937a.67114.67114,0,0,1,.14307-.78125l.71533-.86914a8.55289,8.55289,0,0,1,.68213-.7373V8.58887a3.93913,3.93913,0,0,1-.748.05469H11.9873a.54085.54085,0,0,1-.605-.60547V7.59863a.54085.54085,0,0,1,.605-.60547h3.75146a.53773.53773,0,0,1,.60547.59375v.17676a1.03723,1.03723,0,0,1-.27539.748L14.74854,10.0293A2.31132,2.31132,0,0,1,16.65186,12.30664ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',4:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm7.05371,7.96582v.38477c0,.39648-.165.60547-.46191.60547h-.47314v1.29785a.54085.54085,0,0,1-.605.60547h-.69336a.54085.54085,0,0,1-.605-.60547V12.95605H11.333a.5412.5412,0,0,1-.60547-.60547v-.15332a1.199,1.199,0,0,1,.22021-.748l2.56348-4.05957a.7819.7819,0,0,1,.72607-.39648h1.27637a.54085.54085,0,0,1,.605.60547v3.7627h.33008A.54055.54055,0,0,1,17.05371,11.96582ZM14.28125,8.7207h-.022a4.18969,4.18969,0,0,1-.38525.81348l-1.188,1.80469v.02246h1.5293V9.60059A7.04058,7.04058,0,0,1,14.28125,8.7207Z"/></svg>',5:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.74023,12.18555a2.75131,2.75131,0,0,1-2.91553,2.80566,3.908,3.908,0,0,1-2.25537-.68164.54809.54809,0,0,1-.13184-.8252L11.73438,13c.209-.34082.48389-.36328.8252-.1543a2.23757,2.23757,0,0,0,1.1001.33008,1.01827,1.01827,0,0,0,1.1001-.96777c0-.61621-.53906-.97949-1.25439-.97949a2.15554,2.15554,0,0,0-.64893.09961,1.15209,1.15209,0,0,1-.814.01074l-.12109-.04395a.64116.64116,0,0,1-.45117-.71484l.231-3.00391a.56666.56666,0,0,1,.62744-.583H15.541a.54085.54085,0,0,1,.605.60547v.43945a.54085.54085,0,0,1-.605.60547H13.41748l-.04395.72559a1.29306,1.29306,0,0,1-.04395.30859h.022a2.39776,2.39776,0,0,1,.57227-.07715A2.53266,2.53266,0,0,1,16.74023,12.18555ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',6:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M14.51758,9.64453a1.85627,1.85627,0,0,0-1.24316.38477H13.252a1.73532,1.73532,0,0,1,1.72754-1.4082,2.66491,2.66491,0,0,1,.5498.06641c.35254.05469.57227.01074.70508-.40723l.16406-.5166a.53393.53393,0,0,0-.373-.75977,4.83723,4.83723,0,0,0-1.17773-.14258c-2.43164,0-3.7627,2.17773-3.7627,4.43359,0,2.47559,1.60645,3.69629,3.19043,3.69629A2.70585,2.70585,0,0,0,16.96,12.19727,2.43861,2.43861,0,0,0,14.51758,9.64453Zm-.23047,3.58691c-.67187,0-1.22168-.81445-1.22168-1.45215,0-.47363.30762-.583.72559-.583.96875,0,1.27734.59375,1.27734,1.12207A.82182.82182,0,0,1,14.28711,13.23145ZM10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Z"/></svg>'},italic:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="13" y1="4" y2="4"/><line class="ql-stroke" x1="5" x2="11" y1="14" y2="14"/><line class="ql-stroke" x1="8" x2="10" y1="14" y2="4"/></svg>',image:'<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="10" width="12" x="3" y="4"/><circle class="ql-fill" cx="6" cy="7" r="1"/><polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"/></svg>',indent:{"+1":'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"/></svg>',"-1":'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-stroke" points="5 7 5 11 3 9 5 7"/></svg>'},link:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="11" y1="7" y2="11"/><path class="ql-even ql-stroke" d="M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z"/><path class="ql-even ql-stroke" d="M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z"/></svg>',list:{bullet:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="6" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="6" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="6" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="3" y1="4" y2="4"/><line class="ql-stroke" x1="3" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="3" x2="3" y1="14" y2="14"/></svg>',check:'<svg class="" viewbox="0 0 18 18"><line class="ql-stroke" x1="9" x2="15" y1="4" y2="4"/><polyline class="ql-stroke" points="3 4 4 5 6 3"/><line class="ql-stroke" x1="9" x2="15" y1="14" y2="14"/><polyline class="ql-stroke" points="3 14 4 15 6 13"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-stroke" points="3 9 4 10 6 8"/></svg>',ordered:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="7" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="7" x2="15" y1="14" y2="14"/><line class="ql-stroke ql-thin" x1="2.5" x2="4.5" y1="5.5" y2="5.5"/><path class="ql-fill" d="M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z"/><path class="ql-stroke ql-thin" d="M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156"/><path class="ql-stroke ql-thin" d="M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109"/></svg>'},script:{sub:'<svg viewbox="0 0 18 18"><path class="ql-fill" d="M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z"/><path class="ql-fill" d="M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z"/></svg>',super:'<svg viewbox="0 0 18 18"><path class="ql-fill" d="M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z"/><path class="ql-fill" d="M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z"/></svg>'},strike:'<svg viewbox="0 0 18 18"><line class="ql-stroke ql-thin" x1="15.5" x2="2.5" y1="8.5" y2="9.5"/><path class="ql-fill" d="M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z"/><path class="ql-fill" d="M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z"/></svg>',table:'<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="12" width="12" x="3" y="3"/><rect class="ql-fill" height="2" width="3" x="5" y="5"/><rect class="ql-fill" height="2" width="4" x="9" y="5"/><g class="ql-fill ql-transparent"><rect height="2" width="3" x="5" y="8"/><rect height="2" width="4" x="9" y="8"/><rect height="2" width="3" x="5" y="11"/><rect height="2" width="4" x="9" y="11"/></g></svg>',underline:'<svg viewbox="0 0 18 18"><path class="ql-stroke" d="M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3"/><rect class="ql-fill" height="1" rx="0.5" ry="0.5" width="12" x="3" y="15"/></svg>',video:'<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="12" width="12" x="3" y="3"/><rect class="ql-fill" height="12" width="1" x="5" y="3"/><rect class="ql-fill" height="12" width="1" x="12" y="3"/><rect class="ql-fill" height="2" width="8" x="5" y="8"/><rect class="ql-fill" height="1" width="3" x="3" y="5"/><rect class="ql-fill" height="1" width="3" x="3" y="7"/><rect class="ql-fill" height="1" width="3" x="3" y="10"/><rect class="ql-fill" height="1" width="3" x="3" y="12"/><rect class="ql-fill" height="1" width="3" x="12" y="5"/><rect class="ql-fill" height="1" width="3" x="12" y="7"/><rect class="ql-fill" height="1" width="3" x="12" y="10"/><rect class="ql-fill" height="1" width="3" x="12" y="12"/></svg>'},Kce='<svg viewbox="0 0 18 18"><polygon class="ql-stroke" points="7 11 9 13 11 11 7 11"/><polygon class="ql-stroke" points="7 7 9 5 11 7 7 7"/></svg>';let K8=0;function G8(e,t){e.setAttribute(t,`${e.getAttribute(t)!=="true"}`)}class u1{constructor(t){this.select=t,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",()=>{this.togglePicker()}),this.label.addEventListener("keydown",n=>{switch(n.key){case"Enter":this.togglePicker();break;case"Escape":this.escape(),n.preventDefault();break}}),this.select.addEventListener("change",this.update.bind(this))}togglePicker(){this.container.classList.toggle("ql-expanded"),G8(this.label,"aria-expanded"),G8(this.options,"aria-hidden")}buildItem(t){const n=document.createElement("span");n.tabIndex="0",n.setAttribute("role","button"),n.classList.add("ql-picker-item");const r=t.getAttribute("value");return r&&n.setAttribute("data-value",r),t.textContent&&n.setAttribute("data-label",t.textContent),n.addEventListener("click",()=>{this.selectItem(n,!0)}),n.addEventListener("keydown",i=>{switch(i.key){case"Enter":this.selectItem(n,!0),i.preventDefault();break;case"Escape":this.escape(),i.preventDefault();break}}),n}buildLabel(){const t=document.createElement("span");return t.classList.add("ql-picker-label"),t.innerHTML=Kce,t.tabIndex="0",t.setAttribute("role","button"),t.setAttribute("aria-expanded","false"),this.container.appendChild(t),t}buildOptions(){const t=document.createElement("span");t.classList.add("ql-picker-options"),t.setAttribute("aria-hidden","true"),t.tabIndex="-1",t.id=`ql-picker-options-${K8}`,K8+=1,this.label.setAttribute("aria-controls",t.id),this.options=t,Array.from(this.select.options).forEach(n=>{const r=this.buildItem(n);t.appendChild(r),n.selected===!0&&this.selectItem(r)}),this.container.appendChild(t)}buildPicker(){Array.from(this.select.attributes).forEach(t=>{this.container.setAttribute(t.name,t.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}escape(){this.close(),setTimeout(()=>this.label.focus(),1)}close(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}selectItem(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const r=this.container.querySelector(".ql-selected");t!==r&&(r!=null&&r.classList.remove("ql-selected"),t!=null&&(t.classList.add("ql-selected"),this.select.selectedIndex=Array.from(t.parentNode.children).indexOf(t),t.hasAttribute("data-value")?this.label.setAttribute("data-value",t.getAttribute("data-value")):this.label.removeAttribute("data-value"),t.hasAttribute("data-label")?this.label.setAttribute("data-label",t.getAttribute("data-label")):this.label.removeAttribute("data-label"),n&&(this.select.dispatchEvent(new Event("change")),this.close())))}update(){let t;if(this.select.selectedIndex>-1){const r=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];t=this.select.options[this.select.selectedIndex],this.selectItem(r)}else this.selectItem(null);const n=t!=null&&t!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",n)}}class W8 extends u1{constructor(t,n){super(t),this.label.innerHTML=n,this.container.classList.add("ql-color-picker"),Array.from(this.container.querySelectorAll(".ql-picker-item")).slice(0,7).forEach(r=>{r.classList.add("ql-primary")})}buildItem(t){const n=super.buildItem(t);return n.style.backgroundColor=t.getAttribute("value")||"",n}selectItem(t,n){super.selectItem(t,n);const r=this.label.querySelector(".ql-color-label"),i=t&&t.getAttribute("data-value")||"";r&&(r.tagName==="line"?r.style.stroke=i:r.style.fill=i)}}class X8 extends u1{constructor(t,n){super(t),this.container.classList.add("ql-icon-picker"),Array.from(this.container.querySelectorAll(".ql-picker-item")).forEach(r=>{r.innerHTML=n[r.getAttribute("data-value")||""]}),this.defaultItem=this.container.querySelector(".ql-selected"),this.selectItem(this.defaultItem)}selectItem(t,n){super.selectItem(t,n);const r=t||this.defaultItem;if(r!=null){if(this.label.innerHTML===r.innerHTML)return;this.label.innerHTML=r.innerHTML}}}const Gce=e=>{const{overflowY:t}=getComputedStyle(e,null);return t!=="visible"&&t!=="clip"};class J8{constructor(t,n){this.quill=t,this.boundsContainer=n||document.body,this.root=t.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,Gce(this.quill.root)&&this.quill.root.addEventListener("scroll",()=>{this.root.style.marginTop=`${-1*this.quill.root.scrollTop}px`}),this.hide()}hide(){this.root.classList.add("ql-hidden")}position(t){const n=t.left+t.width/2-this.root.offsetWidth/2,r=t.bottom+this.quill.root.scrollTop;this.root.style.left=`${n}px`,this.root.style.top=`${r}px`,this.root.classList.remove("ql-flip");const i=this.boundsContainer.getBoundingClientRect(),a=this.root.getBoundingClientRect();let o=0;if(a.right>i.right&&(o=i.right-a.right,this.root.style.left=`${n+o}px`),a.left<i.left&&(o=i.left-a.left,this.root.style.left=`${n+o}px`),a.bottom>i.bottom){const s=a.bottom-a.top,u=t.bottom-t.top+s;this.root.style.top=`${r-u}px`,this.root.classList.add("ql-flip")}return o}show(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}const Wce=[!1,"center","right","justify"],Xce=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],Jce=[!1,"serif","monospace"],Zce=["1","2","3",!1],$ce=["small",!1,"large","huge"];class Rm extends _h{constructor(t,n){super(t,n);const r=i=>{if(!document.body.contains(t.root)){document.body.removeEventListener("click",r);return}this.tooltip!=null&&!this.tooltip.root.contains(i.target)&&document.activeElement!==this.tooltip.textbox&&!this.quill.hasFocus()&&this.tooltip.hide(),this.pickers!=null&&this.pickers.forEach(a=>{a.container.contains(i.target)||a.close()})};t.emitter.listenDOM("click",document.body,r)}addModule(t){const n=super.addModule(t);return t==="toolbar"&&this.extendToolbar(n),n}buildButtons(t,n){Array.from(t).forEach(r=>{(r.getAttribute("class")||"").split(/\s+/).forEach(a=>{if(a.startsWith("ql-")&&(a=a.slice(3),n[a]!=null))if(a==="direction")r.innerHTML=n[a][""]+n[a].rtl;else if(typeof n[a]=="string")r.innerHTML=n[a];else{const o=r.value||"";o!=null&&n[a][o]&&(r.innerHTML=n[a][o])}})})}buildPickers(t,n){this.pickers=Array.from(t).map(i=>{if(i.classList.contains("ql-align")&&(i.querySelector("option")==null&&Qm(i,Wce),typeof n.align=="object"))return new X8(i,n.align);if(i.classList.contains("ql-background")||i.classList.contains("ql-color")){const a=i.classList.contains("ql-background")?"background":"color";return i.querySelector("option")==null&&Qm(i,Xce,a==="background"?"#ffffff":"#000000"),new W8(i,n[a])}return i.querySelector("option")==null&&(i.classList.contains("ql-font")?Qm(i,Jce):i.classList.contains("ql-header")?Qm(i,Zce):i.classList.contains("ql-size")&&Qm(i,$ce)),new u1(i)});const r=()=>{this.pickers.forEach(i=>{i.update()})};this.quill.on(zt.events.EDITOR_CHANGE,r)}}Rm.DEFAULTS=cA({},_h.DEFAULTS,{modules:{toolbar:{handlers:{formula(){this.quill.theme.tooltip.edit("formula")},image(){let e=this.container.querySelector("input.ql-image[type=file]");e==null&&(e=document.createElement("input"),e.setAttribute("type","file"),e.setAttribute("accept",this.quill.uploader.options.mimetypes.join(", ")),e.classList.add("ql-image"),e.addEventListener("change",()=>{const t=this.quill.getSelection(!0);this.quill.uploader.upload(t,e.files),e.value=""}),this.container.appendChild(e)),e.click()},video(){this.quill.theme.tooltip.edit("video")}}}}});class Z8 extends J8{constructor(t,n){super(t,n),this.textbox=this.root.querySelector('input[type="text"]'),this.listen()}listen(){this.textbox.addEventListener("keydown",t=>{t.key==="Enter"?(this.save(),t.preventDefault()):t.key==="Escape"&&(this.cancel(),t.preventDefault())})}cancel(){this.hide(),this.restoreFocus()}edit(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"link",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),this.textbox==null)return;n!=null?this.textbox.value=n:t!==this.root.getAttribute("data-mode")&&(this.textbox.value="");const r=this.quill.getBounds(this.quill.selection.savedRange);r!=null&&this.position(r),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute(`data-${t}`)||""),this.root.setAttribute("data-mode",t)}restoreFocus(){this.quill.focus({preventScroll:!0})}save(){let{value:t}=this.textbox;switch(this.root.getAttribute("data-mode")){case"link":{const{scrollTop:n}=this.quill.root;this.linkRange?(this.quill.formatText(this.linkRange,"link",t,zt.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",t,zt.sources.USER)),this.quill.root.scrollTop=n;break}case"video":t=eAe(t);case"formula":{if(!t)break;const n=this.quill.getSelection(!0);if(n!=null){const r=n.index+n.length;this.quill.insertEmbed(r,this.root.getAttribute("data-mode"),t,zt.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(r+1," ",zt.sources.USER),this.quill.setSelection(r+2,zt.sources.USER)}break}}this.textbox.value="",this.hide()}}function eAe(e){let t=e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return t?`${t[1]||"https"}://www.youtube.com/embed/${t[2]}?showinfo=0`:(t=e.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?`${t[1]||"https"}://player.vimeo.com/video/${t[2]}/`:e}function Qm(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;t.forEach(r=>{const i=document.createElement("option");r===n?i.setAttribute("selected","selected"):i.setAttribute("value",String(r)),e.appendChild(i)})}const tAe=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]];class $8 extends Z8{constructor(t,n){super(t,n),this.quill.on(zt.events.EDITOR_CHANGE,(r,i,a,o)=>{if(r===zt.events.SELECTION_CHANGE)if(i!=null&&i.length>0&&o===zt.sources.USER){this.show(),this.root.style.left="0px",this.root.style.width="",this.root.style.width=`${this.root.offsetWidth}px`;const s=this.quill.getLines(i.index,i.length);if(s.length===1){const u=this.quill.getBounds(i);u!=null&&this.position(u)}else{const u=s[s.length-1],c=this.quill.getIndex(u),A=Math.min(u.length()-1,i.index+i.length-c),f=this.quill.getBounds(new Yd(c,A));f!=null&&this.position(f)}}else document.activeElement!==this.textbox&&this.quill.hasFocus()&&this.hide()})}listen(){super.listen(),this.root.querySelector(".ql-close").addEventListener("click",()=>{this.root.classList.remove("ql-editing")}),this.quill.on(zt.events.SCROLL_OPTIMIZE,()=>{setTimeout(()=>{if(this.root.classList.contains("ql-hidden"))return;const t=this.quill.getSelection();if(t!=null){const n=this.quill.getBounds(t);n!=null&&this.position(n)}},1)})}cancel(){this.show()}position(t){const n=super.position(t),r=this.root.querySelector(".ql-tooltip-arrow");return r.style.marginLeft="",n!==0&&(r.style.marginLeft=`${-1*n-r.offsetWidth/2}px`),n}}mt($8,"TEMPLATE",['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""));class eN extends Rm{constructor(t,n){n.modules.toolbar!=null&&n.modules.toolbar.container==null&&(n.modules.toolbar.container=tAe),super(t,n),this.quill.container.classList.add("ql-bubble")}extendToolbar(t){this.tooltip=new $8(this.quill,this.options.bounds),t.container!=null&&(this.tooltip.root.appendChild(t.container),this.buildButtons(t.container.querySelectorAll("button"),Ym),this.buildPickers(t.container.querySelectorAll("select"),Ym))}}eN.DEFAULTS=cA({},Rm.DEFAULTS,{modules:{toolbar:{handlers:{link(e){e?this.quill.theme.tooltip.edit():this.quill.format("link",!1,st.sources.USER)}}}}});const nAe=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]];class tN extends Z8{constructor(){super(...arguments);mt(this,"preview",this.root.querySelector("a.ql-preview"))}listen(){super.listen(),this.root.querySelector("a.ql-action").addEventListener("click",n=>{this.root.classList.contains("ql-editing")?this.save():this.edit("link",this.preview.textContent),n.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",n=>{if(this.linkRange!=null){const r=this.linkRange;this.restoreFocus(),this.quill.formatText(r,"link",!1,zt.sources.USER),delete this.linkRange}n.preventDefault(),this.hide()}),this.quill.on(zt.events.SELECTION_CHANGE,(n,r,i)=>{if(n!=null){if(n.length===0&&i===zt.sources.USER){const[a,o]=this.quill.scroll.descendant(fA,n.index);if(a!=null){this.linkRange=new Yd(n.index-o,a.length());const s=fA.formats(a.domNode);this.preview.textContent=s,this.preview.setAttribute("href",s),this.show();const u=this.quill.getBounds(this.linkRange);u!=null&&this.position(u);return}}else delete this.linkRange;this.hide()}})}show(){super.show(),this.root.removeAttribute("data-mode")}}mt(tN,"TEMPLATE",['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""));class nN extends Rm{constructor(t,n){n.modules.toolbar!=null&&n.modules.toolbar.container==null&&(n.modules.toolbar.container=nAe),super(t,n),this.quill.container.classList.add("ql-snow")}extendToolbar(t){t.container!=null&&(t.container.classList.add("ql-snow"),this.buildButtons(t.container.querySelectorAll("button"),Ym),this.buildPickers(t.container.querySelectorAll("select"),Ym),this.tooltip=new tN(this.quill,this.options.bounds),t.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"k",shortKey:!0},(n,r)=>{t.handlers.link.call(t,!r.format.link)}))}}nN.DEFAULTS=cA({},Rm.DEFAULTS,{modules:{toolbar:{handlers:{link(e){if(e){const t=this.quill.getSelection();if(t==null||t.length===0)return;let n=this.quill.getText(t);/^\S+@\S+\.\S+$/.test(n)&&n.indexOf("mailto:")!==0&&(n=`mailto:${n}`);const{tooltip:r}=this.quill.theme;r.edit("link",n)}else this.quill.format("link",!1,st.sources.USER)}}}}}),st.register({"attributors/attribute/direction":w8,"attributors/class/align":y8,"attributors/class/background":jue,"attributors/class/color":Que,"attributors/class/direction":B8,"attributors/class/font":S8,"attributors/class/size":M8,"attributors/style/align":_8,"attributors/style/background":_5,"attributors/style/color":y5,"attributors/style/direction":x8,"attributors/style/font":k8,"attributors/style/size":E8},!0),st.register({"formats/align":y8,"formats/direction":B8,"formats/indent":Fce,"formats/background":_5,"formats/color":y5,"formats/font":S8,"formats/size":M8,"formats/blockquote":M5,"formats/code-block":Ua,"formats/header":E5,"formats/list":Im,"formats/bold":Um,"formats/code":b5,"formats/italic":L5,"formats/link":fA,"formats/script":T5,"formats/strike":N5,"formats/underline":F5,"formats/formula":s1,"formats/image":Oce,"formats/video":l1,"modules/syntax":j8,"modules/table":Ice,"modules/toolbar":D5,"themes/bubble":eN,"themes/snow":nN,"ui/icons":Ym,"ui/picker":u1,"ui/icon-picker":X8,"ui/color-picker":W8,"ui/tooltip":J8},!0);const rAe={props:{modelValue:{type:String,default:""}},data(){return{editor:null}},mounted(){if(this.editor=new st("#editor",{modules:{toolbar:"#toolbar"},theme:"snow",formats:["font","size","bold","underline","header","italic","strike","link","color","background","list","align"]}),this.modelValue){let e="";this.modelValue.startsWith("<p>")?e=this.modelValue:e=this.editor.clipboard.convertHTML(this.modelValue).ops[0].insert.split(`
57
- `).map(i=>`<p>${i}</p>`).join("");const t=document.querySelector("#editor .ql-editor");t.innerHTML=e}this.editor.on("text-change",()=>{this.$emit("update:modelValue",this.editor.root.innerHTML)})}};function iAe(e,t,n,r,i,a){return t[0]||(t[0]=l.createStaticVNode('<div id="toolbar" class="std-light"><span class="ql-formats"><select class="ql-font"></select><select class="ql-size"></select></span><span class="ql-formats"><button class="ql-bold"></button><button class="ql-italic"></button><button class="ql-underline"></button><button class="ql-strike"></button></span><span class="ql-formats"><select class="ql-color"></select><select class="ql-background"></select></span><span class="ql-formats"><button class="ql-list" value="ordered"></button><button class="ql-list" value="bullet"></button><select class="ql-align"></select></span><span class="ql-formats"><button class="ql-link"></button></span></div><div id="editor" class="min-h-40"></div>',2))}const rN=ar(rAe,[["render",iAe]]),aAe="data:image/svg+xml,%3csvg%20viewBox='0%200%20512%20512'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='%23000000'%3e%3cg%20id='SVGRepo_bgCarrier'%20stroke-width='0'%3e%3c/g%3e%3cg%20id='SVGRepo_tracerCarrier'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3c/g%3e%3cg%20id='SVGRepo_iconCarrier'%3e%3ctitle%3eai%3c/title%3e%3cg%20id='Page-1'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='icon'%20fill='%230097f5'%20transform='translate(64.000000,%2064.000000)'%3e%3cpath%20d='M320,64%20L320,320%20L64,320%20L64,64%20L320,64%20Z%20M171.749388,128%20L146.817842,128%20L99.4840387,256%20L121.976629,256%20L130.913039,230.977%20L187.575039,230.977%20L196.319607,256%20L220.167172,256%20L171.749388,128%20Z%20M260.093778,128%20L237.691519,128%20L237.691519,256%20L260.093778,256%20L260.093778,128%20Z%20M159.094727,149.47526%20L181.409039,213.333%20L137.135039,213.333%20L159.094727,149.47526%20Z%20M341.333333,256%20L384,256%20L384,298.666667%20L341.333333,298.666667%20L341.333333,256%20Z%20M85.3333333,341.333333%20L128,341.333333%20L128,384%20L85.3333333,384%20L85.3333333,341.333333%20Z%20M170.666667,341.333333%20L213.333333,341.333333%20L213.333333,384%20L170.666667,384%20L170.666667,341.333333%20Z%20M85.3333333,0%20L128,0%20L128,42.6666667%20L85.3333333,42.6666667%20L85.3333333,0%20Z%20M256,341.333333%20L298.666667,341.333333%20L298.666667,384%20L256,384%20L256,341.333333%20Z%20M170.666667,0%20L213.333333,0%20L213.333333,42.6666667%20L170.666667,42.6666667%20L170.666667,0%20Z%20M256,0%20L298.666667,0%20L298.666667,42.6666667%20L256,42.6666667%20L256,0%20Z%20M341.333333,170.666667%20L384,170.666667%20L384,213.333333%20L341.333333,213.333333%20L341.333333,170.666667%20Z%20M0,256%20L42.6666667,256%20L42.6666667,298.666667%20L0,298.666667%20L0,256%20Z%20M341.333333,85.3333333%20L384,85.3333333%20L384,128%20L341.333333,128%20L341.333333,85.3333333%20Z%20M0,170.666667%20L42.6666667,170.666667%20L42.6666667,213.333333%20L0,213.333333%20L0,170.666667%20Z%20M0,85.3333333%20L42.6666667,85.3333333%20L42.6666667,128%20L0,128%20L0,85.3333333%20Z'%20id='Combined-Shape'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",oAe="data:image/svg+xml,%3csvg%20viewBox='0%200%2017%2016'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20fill='%23fff'%20fill-rule='evenodd'%3e%3cpath%20d='m8.20003216%200c-4.5281696%200-8.20003216%203.67233045-8.20003216%208.2025137%200%203.6241466%202.34955472%206.6987785%205.60770169%207.7833978.40979259.0759104.5602814-.1779394.5602814-.3946059%200-.195566-.00765306-.84177-.01112588-1.5271516-2.28132027.4961843-2.76269151-.9677944-2.76269151-.9677944-.37300645-.948109-.91045728-1.2001576-.91045728-1.2001576-.74395492-.5091149.05607959-.4986933.05607959-.4986933.82344388.0578979%201.25703171.8453083%201.25703171.8453083.73134987%201.2540026%201.9182821.8914335%202.38621225.6819077.07357231-.5302154.28612167-.8920125.52060124-1.0968421-1.82130043-.2074672-3.73598109-.9107972-3.73598109-4.05374848%200-.89548638.32033536-1.62725057.84492391-2.20166134-.08514837-.20663091-.36580356-1.04087425.07942464-2.17071817%200%200%20.68858276-.22046205%202.25559569.8408051.6540475-.18179917%201.35555686-.27289175%202.0524358-.27597964.69687893.00308789%201.39890278.09418047%202.05423654.27597964%201.5651479-1.06126715%202.252766-.8408051%202.252766-.8408051.4463215%201.12984392.1655376%201.96408726.0803893%202.17071817.5257461.57441077.8438949%201.30611063.8438949%202.20166134%200%203.15041368-1.9182821%203.84415838-3.74421295%204.04718668.29409628.2545575.55616545.7537654.55616545%201.5189817%200%201.0974854-.0095181%201.9808133-.0095181%202.2510031%200%20.2182748.1475948.4740546.5633041.3935122%203.2563462-1.0858415%205.6029426-4.1593798%205.6029426-7.7823041%200-4.53018325-3.6713481-8.2025137-8.19996784-8.2025137'/%3e%3cpath%20d='m3.07518929%2011.6824029c-.01787762.0408541-.08159856.0531168-.13950928.0251063-.05905999-.0268489-.09226129-.0826118-.07310669-.1236596.01755837-.0420803.08127932-.0538267.14021161-.025558.05918769.0267843.09289978.0830636.07240436.1241113m.40045868.3611685c-.03881997.0364008-.11473601.0194912-.16626186-.0380143-.05324977-.0573765-.06321015-.1340506-.02381554-.1710323.0400331-.0363363.11365058-.0193621.16702804.0380789.05324977.0580219.06359325.1342442.02298552.1710322m.27480455.4620452c-.04992964.0350455-.1315282.0021944-.18190478-.0709945-.04986579-.0731243-.04986579-.1608994.00108543-.1960739.05056812-.0351746.13088971-.0035497.18196863.0690583.04980194.0744151.04980194.1621902-.00121313.1980747m.46462657.5351695c-.0446302.0496962-.13963698.0364009-.209232-.0314957-.07112739-.0663476-.09098432-.1605121-.04622642-.2102728.04514099-.0498253.14072241-.03582.21082822.0314957.07068044.0662185.09226128.161093.04469405.2102728m.60036877.1807134c-.01960153.0644113-.11116048.0937127-.20335792.0663476-.09206974-.0282042-.15234286-.1037166-.1337629-.1688379.01915459-.0648632.11109663-.0953908.20399641-.0660894.09194204.0280751.15234286.1030065.13318826.1685797m.68337202.0766095c.00229855.0678966-.07591604.1241759-.17271058.1254021-.09736918.0021299-.17609455-.0527941-.17711613-.1195289%200-.068542.07642682-.124305.17373215-.1259185.09679454-.0019362.17609456.0526005.17609456.1200453m.67130462-.0260098c.01162045.0662185-.05567602.1342442-.15176823.1523155-.09449599.0174259-.18196862-.0234282-.19403602-.0890659-.01174815-.0678965.05682529-.1358576.15112974-.1534772.09628375-.0169096.18241557.0229119.19467451.0902276'%20fill-rule='nonzero'/%3e%3c/g%3e%3c/svg%3e",sAe="data:image/svg+xml,%3csvg%20width='98'%20height='96'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M48.854%200C21.839%200%200%2022%200%2049.217c0%2021.756%2013.993%2040.172%2033.405%2046.69%202.427.49%203.316-1.059%203.316-2.362%200-1.141-.08-5.052-.08-9.127-13.59%202.934-16.42-5.867-16.42-5.867-2.184-5.704-5.42-7.17-5.42-7.17-4.448-3.015.324-3.015.324-3.015%204.934.326%207.523%205.052%207.523%205.052%204.367%207.496%2011.404%205.378%2014.235%204.074.404-3.178%201.699-5.378%203.074-6.6-10.839-1.141-22.243-5.378-22.243-24.283%200-5.378%201.94-9.778%205.014-13.2-.485-1.222-2.184-6.275.486-13.038%200%200%204.125-1.304%2013.426%205.052a46.97%2046.97%200%200%201%2012.214-1.63c4.125%200%208.33.571%2012.213%201.63%209.302-6.356%2013.427-5.052%2013.427-5.052%202.67%206.763.97%2011.816.485%2013.038%203.155%203.422%205.015%207.822%205.015%2013.2%200%2018.905-11.404%2023.06-22.324%2024.283%201.78%201.548%203.316%204.481%203.316%209.126%200%206.6-.08%2011.897-.08%2013.526%200%201.304.89%202.853%203.316%202.364%2019.412-6.52%2033.405-24.935%2033.405-46.691C97.707%2022%2075.788%200%2048.854%200z'%20fill='%2324292f'/%3e%3c/svg%3e",lAe="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20height='24px'%20viewBox='0%20-960%20960%20960'%20width='24px'%20fill='%23C10015'%3e%3cpath%20d='M480-120q-33%200-56.5-23.5T400-200q0-33%2023.5-56.5T480-280q33%200%2056.5%2023.5T560-200q0%2033-23.5%2056.5T480-120Zm-80-240v-480h160v480H400Z'/%3e%3c/svg%3e",uAe="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20height='24px'%20viewBox='0%20-960%20960%20960'%20width='24px'%20fill='%23C10015'%3e%3cpath%20d='M380-120v-120L240-380v-220q0-24%2011-45t32-32l77%2077h-40v186l140%20140v74h40v-74l37-37L56-792l56-56%20736%20736-56%2056-198-198-14%2014v120H380Zm306-268-46-46v-166H474L320-754v-86h80v160h160v-160h80v200l-40-40h40q33%200%2056.5%2023.5T720-600v178l-34%2034ZM558-516Zm-130%2097Z'/%3e%3c/svg%3e",cAe="data:image/svg+xml,%3csvg%20width='800px'%20height='800px'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M3%205.75C3%204.23122%204.23122%203%205.75%203H15.7145C16.5764%203%2017.4031%203.34241%2018.0126%203.9519L20.0481%205.98744C20.6576%206.59693%2021%207.42358%2021%208.28553V18.25C21%2019.7688%2019.7688%2021%2018.25%2021H5.75C4.23122%2021%203%2019.7688%203%2018.25V5.75ZM5.75%204.5C5.05964%204.5%204.5%205.05964%204.5%205.75V18.25C4.5%2018.9404%205.05964%2019.5%205.75%2019.5H6V14.25C6%2013.0074%207.00736%2012%208.25%2012H15.75C16.9926%2012%2018%2013.0074%2018%2014.25V19.5H18.25C18.9404%2019.5%2019.5%2018.9404%2019.5%2018.25V8.28553C19.5%207.8214%2019.3156%207.37629%2018.9874%207.0481L16.9519%205.01256C16.6918%204.75246%2016.3582%204.58269%2016%204.52344V7.25C16%208.49264%2014.9926%209.5%2013.75%209.5H9.25C8.00736%209.5%207%208.49264%207%207.25V4.5H5.75ZM16.5%2019.5V14.25C16.5%2013.8358%2016.1642%2013.5%2015.75%2013.5H8.25C7.83579%2013.5%207.5%2013.8358%207.5%2014.25V19.5H16.5ZM8.5%204.5V7.25C8.5%207.66421%208.83579%208%209.25%208H13.75C14.1642%208%2014.5%207.66421%2014.5%207.25V4.5H8.5Z'%20fill='%23FFFFFF'/%3e%3c/svg%3e",AAe=["src"],dAe={__name:"AiIcon",setup(e){return(t,n)=>(l.openBlock(),l.createElementBlock("img",{src:l.unref(aAe),alt:"avatar"},null,8,AAe))}},fAe=["src"],hAe={__name:"GithubIcon",props:{theme:{type:String,default:"light"}},setup(e){const t=e,n=l.computed(()=>t.theme==="dark"?oAe:sAe);return(r,i)=>(l.openBlock(),l.createElementBlock("img",{src:n.value,alt:"avatar"},null,8,fAe))}},pAe=["src"],mAe=l.defineComponent({__name:"HighPriorityIcon",setup(e){return(t,n)=>(l.openBlock(),l.createElementBlock("img",{src:l.unref(lAe),alt:"avatar"},null,8,pAe))}}),gAe={},vAe={height:"20px",viewBox:"0 0 24 24",width:"20px",fill:"#16a34a"};function yAe(e,t){return l.openBlock(),l.createElementBlock("svg",vAe,t[0]||(t[0]=[l.createElementVNode("path",{d:"M0 0h24v24H0z",fill:"none"},null,-1),l.createElementVNode("path",{d:"M16.01 7L16 3h-2v4h-4V3H8v4h-.01C7 6.99 6 7.99 6 8.99v5.49L9.5 18v3h5v-3l3.5-3.51v-5.5c0-1-1-2-1.99-1.99z"},null,-1)]))}const _Ae=ar(gAe,[["render",yAe]]),bAe={},wAe={height:"20px",viewBox:"0 0 24 24",width:"20px",fill:"#ef4444"};function BAe(e,t){return l.openBlock(),l.createElementBlock("svg",wAe,t[0]||(t[0]=[l.createElementVNode("path",{d:"M0 0h24v24H0V0z",fill:"none"},null,-1),l.createElementVNode("path",{d:"M18 14.49V9c0-1-1.01-2.01-2-2V3h-2v4h-4V3H8v2.48l9.51 9.5.49-.49zm-1.76 1.77L7.2 7.2l-.01.01L3.98 4 2.71 5.25l3.36 3.36C6.04 8.74 6 8.87 6 9v5.48L9.5 18v3h5v-3l.48-.48L19.45 22l1.26-1.28-4.47-4.46z"},null,-1)]))}const xAe=ar(bAe,[["render",BAe]]),CAe=["src"],SAe=l.defineComponent({__name:"PowerOffIcon",setup(e){return(t,n)=>(l.openBlock(),l.createElementBlock("img",{src:l.unref(uAe),alt:"avatar"},null,8,CAe))}}),kAe=["src"],iN=l.defineComponent({__name:"SaveIcon",setup(e){return(t,n)=>(l.openBlock(),l.createElementBlock("img",{src:l.unref(cAe),alt:"avatar"},null,8,kAe))}}),MAe={class:"fixed inset-0 overflow-y-auto"},EAe={class:"flex min-h-full items-center justify-center p-4 text-center"},LAe={key:0,class:"mx-2 inline-block spinner"},TAe={class:"absolute right-2 top-0"},NAe={class:"text-xs"},FAe={class:"pt-4"},OAe={class:"mt-4 space-x-3"},Bs=l.defineComponent({__name:"Dialog",props:{open:Boolean,title:String,description:{type:String,default:""},size:{type:String,default:"small"},loading:{type:Boolean,default:!1}},emits:["close"],setup(e,{emit:t}){const n=e,r=t,i=l.computed(()=>n.open),a=l.computed(()=>n.title);return(o,s)=>(l.openBlock(),l.createBlock(l.unref(oA),{appear:"",show:i.value,as:"template"},{default:l.withCtx(()=>[l.createVNode(l.unref(lh),{as:"div",onClose:s[0]||(s[0]=u=>r("close")),class:"relative z-40"},{default:l.withCtx(()=>[l.createVNode(l.unref(Fd),{as:"template",enter:"duration-300 ease-out","enter-from":"opacity-0","enter-to":"opacity-100",leave:"duration-200 ease-in","leave-from":"opacity-100","leave-to":"opacity-0"},{default:l.withCtx(()=>s[1]||(s[1]=[l.createElementVNode("div",{class:"fixed inset-0 bg-gray-500/75 transition-opacity"},null,-1)])),_:1,__:[1]}),l.createElementVNode("div",MAe,[l.createElementVNode("div",EAe,[l.createVNode(l.unref(Fd),{as:"template",enter:"duration-300 ease-out","enter-from":"opacity-0 scale-95","enter-to":"opacity-100 scale-100",leave:"duration-200 ease-in","leave-from":"opacity-100 scale-100","leave-to":"opacity-0 scale-95"},{default:l.withCtx(()=>[l.createVNode(l.unref(Fv),{class:l.normalizeClass(["white-bg dark:dark-bg transform rounded-2xl p-6 text-left align-middle shadow-xl transition-all",{"w-full max-w-md":e.size==="small"},{"min-w-150 px-4 pb-4 pt-5 sm:my-8 w-full sm:max-w-lg sm:p-6":e.size==="medium"},{"px-4 pb-4 pt-5 sm:my-8 w-full sm:max-w-4xl sm:p-6":e.size==="large"},{"px-4 pb-4 pt-5 sm:my-8 w-full sm:max-w-7xl sm:p-6":e.size==="xlarge"}])},{default:l.withCtx(()=>[l.createVNode(l.unref(Bw),{as:"h3",class:"relative text-lg font-medium leading-6"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(a.value)+" ",1),e.loading?(l.openBlock(),l.createElementBlock("div",LAe)):l.createCommentVNode("",!0),l.createElementVNode("div",TAe,[l.renderSlot(o.$slots,"header")])]),_:3}),l.createElementVNode("p",NAe,l.toDisplayString(e.description),1),l.createElementVNode("div",FAe,[l.renderSlot(o.$slots,"content")]),l.createElementVNode("div",OAe,[l.renderSlot(o.$slots,"footer")])]),_:3},8,["class"])]),_:3})])])]),_:3})]),_:3},8,["show"]))}}),DAe={class:"mt-2"},IAe={class:"text-sm overflow-x-auto text-ellipsis"},UAe=l.defineComponent({__name:"ConfirmDialog",setup(e,{expose:t}){const n=l.ref(!1),r=l.ref(""),i=l.ref(""),a=l.ref(()=>{}),o=l.ref(()=>{}),s=l.ref("Yes"),u=l.ref("No"),c=l.ref(!1);function A(m,p,g,v,y="Yes",_="No"){i.value=m,r.value=p,a.value=g,o.value=v,n.value=!0,s.value=y,u.value=_}async function f(){c.value=!0,await a.value(),c.value=!1,d()}function h(){o.value&&o.value(),d()}function d(){n.value=!1}return t({openModal:A}),(m,p)=>(l.openBlock(),l.createBlock(Bs,{open:n.value,title:i.value,onClose:d},{content:l.withCtx(()=>[l.createElementVNode("div",DAe,[l.createElementVNode("p",IAe,l.toDisplayString(r.value),1)])]),footer:l.withCtx(()=>[l.createVNode(Ko,{text:s.value,loading:c.value,onClick:f},null,8,["text","loading"]),l.createVNode(Ko,{text:u.value,color:"red",onClick:h},null,8,["text"])]),_:1},8,["open","title"]))}}),PAe={class:"mt-2"},HAe={class:"break-all text-sm std-white-text font-bold"},YAe={class:"text-sm font-light"},RAe=l.defineComponent({__name:"CopyDialog",emits:["notify"],setup(e,{expose:t,emit:n}){const r=n,i=l.ref(!1),a=l.ref(""),o=l.ref(""),s=l.ref("");function u(f,h,d){o.value=f,a.value=h,s.value=d,i.value=!0}function c(){navigator.clipboard.writeText(s.value),r("notify","Token copied to clipboard","",!0)}function A(){i.value=!1}return t({openModal:u}),(f,h)=>(l.openBlock(),l.createBlock(Bs,{open:i.value,title:o.value,onClose:A},{content:l.withCtx(()=>[l.createElementVNode("div",PAe,[l.createElementVNode("p",HAe,l.toDisplayString(s.value),1),l.createElementVNode("p",YAe,l.toDisplayString(a.value),1)])]),footer:l.withCtx(()=>[l.createVNode(Ko,{text:"Copy",color:"green",onClick:c}),l.createVNode(Ko,{text:"Close",color:"red",onClick:A})]),_:1},8,["open","title"]))}}),Vd={__name:"SubmitButtons",props:{saveText:{type:String,default:"Save"},disableSave:{type:[Boolean,Number],default:!1},isRun:{type:Boolean,default:!1},loading:{type:Boolean,default:!1}},emits:["save","close"],setup(e,{emit:t}){const n=e,r=t;function i(){!n.loading&&!n.disableSave&&r("save")}function a(){n.loading||r("close")}return(o,s)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createVNode(Ko,{text:e.saveText,color:e.isRun?"green":"blue",disabled:e.disableSave||e.loading,loading:e.loading,onClick:i},null,8,["text","color","disabled","loading"]),l.createVNode(Ko,{color:"red",text:"Cancel",loading:e.loading,disabled:e.loading,onClick:a},null,8,["loading","disabled"])],64))}},aN={__name:"ChooseValueDialog",props:{title:{type:String,default:"Add"},nameField:{type:String,default:"Name"},saveButtonText:{type:String,default:"Save"},values:{type:Array,default:()=>[]}},emits:["save"],setup(e,{expose:t,emit:n}){const r=e,i=n,a=l.ref(!1),o=l.ref({}),s=l.computed(()=>{const f=r.values.find(h=>h.value===o.value.key);return f?f.values.map(h=>({label:h,value:h})):[]});function u(f){const h=r.values.find(d=>d.value===f);h&&(o.value.val=h.values[0])}function c(){a.value=!1}function A(f){a.value=!0,o.value={}}return t({open:a,openModal:A,close:c}),(f,h)=>(l.openBlock(),l.createBlock(Bs,{open:a.value,title:e.title},{content:l.withCtx(()=>[l.createVNode(zi,{fieldName:e.nameField},{default:l.withCtx(()=>[l.createVNode(fr,{modelValue:o.value.key,"onUpdate:modelValue":[h[0]||(h[0]=d=>o.value.key=d),h[1]||(h[1]=d=>u(d))],options:e.values},null,8,["modelValue","options"])]),_:1},8,["fieldName"]),s.value.length>1?(l.openBlock(),l.createBlock(zi,{key:0,fieldName:"Select Attribute Value"},{default:l.withCtx(()=>[l.createVNode(fr,{modelValue:o.value.val,"onUpdate:modelValue":h[2]||(h[2]=d=>o.value.val=d),options:s.value},null,8,["modelValue","options"])]),_:1})):l.createCommentVNode("",!0),l.createVNode(zi,{fieldName:"Selected Value"},{default:l.withCtx(()=>[l.createVNode(H6,{value:o.value.val,readonly:""},null,8,["value"])]),_:1})]),footer:l.withCtx(()=>[l.createVNode(Vd,{saveText:e.saveButtonText,onSave:h[3]||(h[3]=d=>i("save",o.value)),onClose:c},null,8,["saveText"])]),_:1},8,["open","title"]))}},QAe={__name:"NameDialog",props:{title:{type:String,default:"Add"},nameField:{type:String,default:"Name"},saveButtonText:{type:String,default:"Save"}},emits:["save"],setup(e,{expose:t,emit:n}){const r=n,i=l.ref(!1),a=l.ref({});function o(){i.value=!1}function s(u){i.value=!0,a.value={name:u.name}}return t({open:i,openModal:s,close:o}),(u,c)=>(l.openBlock(),l.createBlock(Bs,{open:i.value,title:e.title},{content:l.withCtx(()=>[l.createVNode(zi,{fieldName:e.nameField},{default:l.withCtx(()=>[l.createVNode(lo,{modelValue:a.value.name,"onUpdate:modelValue":c[0]||(c[0]=A=>a.value.name=A)},null,8,["modelValue"])]),_:1},8,["fieldName"])]),footer:l.withCtx(()=>[l.createVNode(Vd,{saveText:e.saveButtonText,onSave:c[1]||(c[1]=A=>r("save",a.value)),onClose:o},null,8,["saveText"])]),_:1},8,["open","title"]))}},jAe={__name:"NameDescDialog",props:{title:{type:String,default:"Add"},saveButtonText:{type:String,default:"Save"},loading:{type:Boolean,default:!1}},emits:["save","notifyList"],setup(e,{expose:t,emit:n}){const r=n,i=l.ref(!1),a=l.ref({}),o=l.ref({});function s(){o.value={},i.value=!1}function u(){if(o.value={},!a.value.name){o.value.name="Name is required",r("notifyList","Error",["Name is required"],!1);return}r("save",a.value)}function c(A){i.value=!0,a.value={name:A.name,description:A.description||""}}return t({open:i,openModal:c,close:s}),(A,f)=>(l.openBlock(),l.createBlock(Bs,{open:i.value,title:e.title},{content:l.withCtx(()=>[l.createVNode(zi,{fieldName:"Name"},{default:l.withCtx(()=>[l.createVNode(lo,{modelValue:a.value.name,"onUpdate:modelValue":f[0]||(f[0]=h=>a.value.name=h),error:o.value.name},null,8,["modelValue","error"])]),_:1}),l.createVNode(zi,{fieldName:"Description"},{default:l.withCtx(()=>[l.createVNode(lo,{modelValue:a.value.description,"onUpdate:modelValue":f[1]||(f[1]=h=>a.value.description=h)},null,8,["modelValue"])]),_:1})]),footer:l.withCtx(()=>[l.createVNode(Vd,{saveText:e.saveButtonText,loading:e.loading,onSave:u,onClose:s},null,8,["saveText","loading"])]),_:1},8,["open","title"]))}};function oN(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25H12"})])}function VAe(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 6.75h16.5M3.75 12h16.5M12 17.25h8.25"})])}function zAe(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"})])}function qAe(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 5.25h16.5m-16.5 4.5h16.5m-16.5 4.5h16.5m-16.5 4.5h16.5"})])}function c1(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})])}function sN(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m4.5 12.75 6 6 9-13.5"})])}function A1(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m19.5 8.25-7.5 7.5-7.5-7.5"})])}function lN(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"})])}function KAe(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8.25 15 12 18.75 15.75 15m-7.5-6L12 5.25 15.75 9"})])}function uN(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 6v6h4.5m4.5 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})])}function cN(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 9v3.75m9-.75a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 3.75h.008v.008H12v-.008Z"})])}function GAe(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 3c2.755 0 5.455.232 8.083.678.533.09.917.556.917 1.096v1.044a2.25 2.25 0 0 1-.659 1.591l-5.432 5.432a2.25 2.25 0 0 0-.659 1.591v2.927a2.25 2.25 0 0 1-1.244 2.013L9.75 21v-6.568a2.25 2.25 0 0 0-.659-1.591L3.659 7.409A2.25 2.25 0 0 1 3 5.818V4.774c0-.54.384-1.006.917-1.096A48.32 48.32 0 0 1 12 3Z"})])}function zd(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m9.75 9.75 4.5 4.5m0-4.5-4.5 4.5M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})])}function I5(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18 18 6M6 6l12 12"})])}const WAe={class:"flex"},XAe={class:"flex-shrink-0"},JAe={class:"ml-3"},ZAe={key:0,class:"text-sm font-medium std-green-text"},$Ae={key:1,class:"text-sm font-medium std-red-text"},ede={key:2,class:"mt-2 text-sm std-green-text"},tde={key:3,class:"mt-2 text-sm std-red-text"},nde={class:"ml-auto pl-3"},rde={class:"-mx-1.5 -my-1.5"},ide={class:"flex"},ade={class:"flex-shrink-0"},ode={class:"ml-3"},sde={key:0,class:"text-sm font-medium std-green-text"},lde={key:1,class:"text-sm font-medium std-red-text"},ude={key:2,class:"mt-2 text-sm std-green-text"},cde={key:3,class:"mt-2 text-sm std-red-text"},Ade={class:"ml-auto pl-3"},dde={class:"-mx-1.5 -my-1.5"},fde=l.defineComponent({__name:"Notify",setup(e,{expose:t}){const n=l.ref(!1),r=l.ref(""),i=l.ref(!1),a=l.ref(""),o=l.ref(),s=l.ref(!1);function u(f,h,d){clearTimeout(o.value),a.value=f,r.value=h,i.value=d,n.value=!0;const m=window.document.querySelectorAll("#headlessui-portal-root");s.value=m&&m.length>0&&m[0].childElementCount>1,o.value=setTimeout(()=>{c()},1e4)}function c(){n.value=!1}function A(){return i.value?"green":"red"}return t({openModal:u}),(f,h)=>(l.openBlock(),l.createBlock(l.unref(oA),{as:"template",show:n.value},{default:l.withCtx(()=>[s.value?(l.openBlock(),l.createBlock(l.unref(lh),{key:0,as:"div",class:l.normalizeClass([i.value?"std-green-light":"std-red-light","rounded-md p-4 fixed bottom-5 z-50"]),style:{"min-width":"75%",left:"50%",transform:"translateX(-50%)"},onClose:c},{default:l.withCtx(()=>[l.createElementVNode("div",WAe,[l.createElementVNode("div",XAe,[i.value?(l.openBlock(),l.createBlock(l.unref(c1),{key:0,class:"icon-md icon-green","aria-hidden":"true"})):(l.openBlock(),l.createBlock(l.unref(zd),{key:1,class:"icon-md icon-red","aria-hidden":"true"}))]),l.createElementVNode("div",JAe,[i.value?(l.openBlock(),l.createElementBlock("h3",ZAe,l.toDisplayString(a.value),1)):(l.openBlock(),l.createElementBlock("h3",$Ae,l.toDisplayString(a.value),1)),i.value?(l.openBlock(),l.createElementBlock("div",ede,[l.createElementVNode("p",null,l.toDisplayString(r.value),1)])):(l.openBlock(),l.createElementBlock("div",tde,[l.createElementVNode("p",null,l.toDisplayString(r.value),1)]))]),l.createElementVNode("div",nde,[l.createElementVNode("div",rde,[l.createVNode(l.unref(sA),{color:A(),onClick:l.withModifiers(c,["stop"])},{default:l.withCtx(()=>[l.createVNode(l.unref(Od),{class:"icon-md","aria-hidden":"true"})]),_:1},8,["color"])])])])]),_:1},8,["class"])):(l.openBlock(),l.createElementBlock("div",{key:1,class:l.normalizeClass([i.value?"std-green-light":"std-red-light","rounded-md p-4 fixed bottom-5 z-80"]),style:{"min-width":"75%",left:"50%",transform:"translateX(-50%)"}},[l.createElementVNode("div",ide,[l.createElementVNode("div",ade,[i.value?(l.openBlock(),l.createBlock(l.unref(c1),{key:0,class:"icon-md icon-green","aria-hidden":"true"})):(l.openBlock(),l.createBlock(l.unref(zd),{key:1,class:"icon-md icon-red","aria-hidden":"true"}))]),l.createElementVNode("div",ode,[i.value?(l.openBlock(),l.createElementBlock("h3",sde,l.toDisplayString(a.value),1)):(l.openBlock(),l.createElementBlock("h3",lde,l.toDisplayString(a.value),1)),i.value?(l.openBlock(),l.createElementBlock("div",ude,[l.createElementVNode("p",null,l.toDisplayString(r.value),1)])):(l.openBlock(),l.createElementBlock("div",cde,[l.createElementVNode("p",null,l.toDisplayString(r.value),1)]))]),l.createElementVNode("div",Ade,[l.createElementVNode("div",dde,[l.createVNode(l.unref(sA),{color:A(),onClick:l.withModifiers(c,["stop"])},{default:l.withCtx(()=>[l.createVNode(l.unref(Od),{class:"icon-md","aria-hidden":"true"})]),_:1},8,["color"])])])])],2))]),_:1},8,["show"]))}}),hde={class:"flex"},pde={class:"flex-shrink-0"},mde={class:"ml-3"},gde={key:0,class:"text-sm font-medium std-green-text"},vde={key:1,class:"text-sm font-medium std-red-text"},yde={key:2,class:"mt-2 text-sm std-green-text"},_de={role:"list",class:"list-disc space-y-1 pl-5"},bde={key:3,class:"mt-2 text-sm std-red-text"},wde={role:"list",class:"list-disc space-y-1 pl-5"},Bde={class:"ml-auto pl-3"},xde={class:"-mx-1.5 -my-1.5"},Cde={class:"flex"},Sde={class:"flex-shrink-0"},kde={class:"ml-3"},Mde={key:0,class:"text-sm font-medium std-green-text"},Ede={key:1,class:"text-sm font-medium std-red-text"},Lde={key:2,class:"mt-2 text-sm std-green-text"},Tde={role:"list",class:"list-disc space-y-1 pl-5"},Nde={key:3,class:"mt-2 text-sm std-red-text"},Fde={role:"list",class:"list-disc space-y-1 pl-5"},Ode={class:"ml-auto pl-3"},Dde={class:"-mx-1.5 -my-1.5"},AN=l.defineComponent({__name:"NotifyList",setup(e,{expose:t}){const n=l.ref(!1),r=l.ref(),i=l.ref(!1),a=l.ref(""),o=l.ref(),s=l.ref(!1);function u(f,h,d){clearTimeout(o.value),a.value=f,r.value=h,i.value=d,n.value=!0;const m=window.document.querySelectorAll("#headlessui-portal-root");s.value=m&&m.length>0&&m[0].childElementCount>1,o.value=setTimeout(()=>{c()},1e4)}function c(){n.value=!1}function A(){return i.value?"green":"red"}return t({openModal:u}),(f,h)=>(l.openBlock(),l.createBlock(l.unref(oA),{as:"template",show:n.value},{default:l.withCtx(()=>[s.value?(l.openBlock(),l.createBlock(l.unref(lh),{key:0,as:"div",class:l.normalizeClass([i.value?"std-green-light":"std-red-light","rounded-md p-4 fixed bottom-5 z-50"]),style:{"min-width":"75%",left:"50%",transform:"translateX(-50%)"},onClose:c},{default:l.withCtx(()=>[l.createElementVNode("div",hde,[l.createElementVNode("div",pde,[i.value?(l.openBlock(),l.createBlock(l.unref(c1),{key:0,class:"icon-md icon-green","aria-hidden":"true"})):(l.openBlock(),l.createBlock(l.unref(zd),{key:1,class:"icon-md icon-red","aria-hidden":"true"}))]),l.createElementVNode("div",mde,[i.value?(l.openBlock(),l.createElementBlock("h3",gde,l.toDisplayString(a.value),1)):(l.openBlock(),l.createElementBlock("h3",vde,l.toDisplayString(a.value),1)),i.value?(l.openBlock(),l.createElementBlock("div",yde,[l.createElementVNode("ul",_de,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(r.value,d=>(l.openBlock(),l.createElementBlock("li",{key:d},l.toDisplayString(d),1))),128))])])):(l.openBlock(),l.createElementBlock("div",bde,[l.createElementVNode("ul",wde,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(r.value,d=>(l.openBlock(),l.createElementBlock("li",{key:d},l.toDisplayString(d),1))),128))])]))]),l.createElementVNode("div",Bde,[l.createElementVNode("div",xde,[l.createVNode(l.unref(sA),{color:A(),onClick:c},{default:l.withCtx(()=>[l.createVNode(l.unref(Od),{class:"icon-md","aria-hidden":"true"})]),_:1},8,["color"])])])])]),_:1},8,["class"])):(l.openBlock(),l.createElementBlock("div",{key:1,class:l.normalizeClass([i.value?"std-green-light":"std-red-light","rounded-md p-4 fixed bottom-5 z-50"]),style:{"min-width":"75%",left:"50%",transform:"translateX(-50%)"}},[l.createElementVNode("div",Cde,[l.createElementVNode("div",Sde,[i.value?(l.openBlock(),l.createBlock(l.unref(c1),{key:0,class:"icon-md icon-green","aria-hidden":"true"})):(l.openBlock(),l.createBlock(l.unref(zd),{key:1,class:"icon-md icon-red","aria-hidden":"true"}))]),l.createElementVNode("div",kde,[i.value?(l.openBlock(),l.createElementBlock("h3",Mde,l.toDisplayString(a.value),1)):(l.openBlock(),l.createElementBlock("h3",Ede,l.toDisplayString(a.value),1)),i.value?(l.openBlock(),l.createElementBlock("div",Lde,[l.createElementVNode("ul",Tde,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(r.value,d=>(l.openBlock(),l.createElementBlock("li",{key:d},l.toDisplayString(d),1))),128))])])):(l.openBlock(),l.createElementBlock("div",Nde,[l.createElementVNode("ul",Fde,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(r.value,d=>(l.openBlock(),l.createElementBlock("li",{key:d},l.toDisplayString(d),1))),128))])]))]),l.createElementVNode("div",Ode,[l.createElementVNode("div",Dde,[l.createVNode(l.unref(sA),{color:A(),onClick:c},{default:l.withCtx(()=>[l.createVNode(l.unref(Od),{class:"icon-md","aria-hidden":"true"})]),_:1},8,["color"])])])])],2))]),_:1},8,["show"]))}}),Ide={class:"slider-inactive rounded-xl shadow-xs overflow-hidden p-1"},Ude={key:0,class:"relative text-green-900 font-medium text-sm"},dN={__name:"ProgressBar",props:{progress:Number,hideProgress:{type:Boolean,default:!1}},setup(e){const t=e;return(n,r)=>(l.openBlock(),l.createElementBlock("div",Ide,[l.createElementVNode("div",{class:l.normalizeClass(["relative flex items-center justify-center",{"h-2":e.hideProgress},{"h-6":!e.hideProgress}])},[l.createElementVNode("div",{class:"absolute top-0 bottom-0 left-0 rounded-lg std-green-hover",style:l.normalizeStyle({width:`${t.progress}%`})},null,4),e.hideProgress?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("div",Ude,l.toDisplayString(t.progress)+"% ",1))],2)]))}},Pde={__name:"ProgressDialog",emits:["close"],setup(e,{expose:t,emit:n}){const r=n,i=l.ref(!1),a=l.ref("Loading"),o=l.ref(0),s=l.ref(()=>{}),u=l.ref(),c=d=>{o.value+=1,o.value<100?u.value=setTimeout(()=>{s.value(d)},d):(A(),r("close"))};function A(){clearTimeout(u.value),i.value=!1}function f(d,m=0,p=100,g=c){i.value=!0,a.value=d,o.value=m,p?(s.value=c,s.value(p)):(s.value=g,s.value())}function h(d){o.value=d}return t({openModal:f,updateProgress:h,close:A}),(d,m)=>(l.openBlock(),l.createBlock(Bs,{open:i.value,title:a.value,loading:!0},{content:l.withCtx(()=>[l.createVNode(dN,{progress:o.value},null,8,["progress"])]),_:1},8,["open","title"]))}},Hde={class:"w-full px-4"},fN={__name:"Stepper",props:{steps:Array},setup(e){const t=e,n=l.computed(()=>({gridTemplateColumns:`repeat(${t.steps.length}, minmax(0, 1fr))`}));return(r,i)=>(l.openBlock(),l.createElementBlock("div",Hde,[l.createElementVNode("div",{class:"'w-full grid pb-8 md:pb-4 gap-x-2",style:l.normalizeStyle(n.value)},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.steps,(a,o)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["h-2 text-sm px-1",{"opacity-75":a.status!=="current"},{"font-semibold":a.status==="current"}])},l.toDisplayString(a.name),3))),256))],4),l.createElementVNode("div",{class:"w-full grid gap-x-2",style:l.normalizeStyle(n.value)},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.steps,(a,o)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["h-2 rounded-lg flex-none",{"slider-inactive":a.status==="upcoming"},{"std-blue":a.status!=="upcoming"}])},null,2))),256))],4)]))}},Yde={class:"flow-root"},Rde={class:"float-left"},Qde={class:"float-right space-x-4"},jde={__name:"Wizard",props:{open:Boolean,title:String,steps:Array,proceed:Boolean,saveButton:{type:String,default:"Save"},preventSave:{type:[Boolean,Number],default:!1},size:{type:String,default:"large"}},emits:["close","next","moved","clickout"],setup(e,{emit:t}){const n=e,r=l.ref(n.steps),i=l.ref(0),a=t;l.watch(()=>n.open,()=>{r.value=n.steps,i.value=0}),l.watch(()=>n.proceed,()=>{n.proceed&&(r.value[i.value].status="completed",i.value+=1,r.value[i.value].status="current",a("moved"))}),l.watch(()=>n.steps,()=>{r.value=n.steps});function o(){i.value===0?(i.value=0,a("close")):(r.value[i.value].status="upcoming",i.value-=1,r.value[i.value].status="current")}function s(){a("next")}return(u,c)=>(l.openBlock(),l.createBlock(Bs,{open:e.open,title:e.title,size:e.size,onClose:c[1]||(c[1]=A=>u.$emit("clickout"))},{header:l.withCtx(()=>[l.renderSlot(u.$slots,"header")]),content:l.withCtx(()=>[l.createVNode(fN,{steps:r.value},null,8,["steps"]),l.renderSlot(u.$slots,"content")]),footer:l.withCtx(()=>[l.createElementVNode("div",Yde,[l.createElementVNode("div",Rde,[l.renderSlot(u.$slots,"footer")]),l.createElementVNode("div",Qde,[l.createVNode(Ko,{text:i.value===0?"Cancel":"Back",color:"red",onClick:o},null,8,["text"]),i.value!==r.value.length-1?(l.openBlock(),l.createBlock(Ko,{key:0,text:"Next",onClick:s})):(l.openBlock(),l.createBlock(Ko,{key:1,text:e.preventSave?"Close":e.saveButton,color:"blue",onClick:c[0]||(c[0]=A=>e.preventSave?a("close"):s())},null,8,["text"]))])])]),_:3},8,["open","title","size"]))}},Vde={__name:"ResetPasswordDialog",emits:["save","notify"],setup(e,{expose:t,emit:n}){const r=n,i=l.ref(!1),a=l.ref({}),o=l.ref({});function s(){if(o.value={},!a.value.password||a.value.password.length<8){o.value.password="Password needs to be at least 8 characters long",r("notify","Error",[o.value.password],!1);return}if(a.value.password!==a.value.confirm){o.value.confirm="Passwords do not match",r("notify","Error",[o.value.confirm],!1);return}r("save",a.value),u()}function u(){i.value=!1}function c(A){i.value=!0,a.value={username:A}}return t({open:i,openModal:c,close:u}),(A,f)=>(l.openBlock(),l.createBlock(Bs,{open:i.value,title:"Reset Password"},{content:l.withCtx(()=>[l.createVNode(zi,{fieldName:"Password"},{default:l.withCtx(()=>[l.createVNode(Ow,{modelValue:a.value.password,"onUpdate:modelValue":f[0]||(f[0]=h=>a.value.password=h),error:o.value.password},null,8,["modelValue","error"])]),_:1}),l.createVNode(zi,{fieldName:"Confirm Password"},{default:l.withCtx(()=>[l.createVNode(Ow,{modelValue:a.value.confirm,"onUpdate:modelValue":f[1]||(f[1]=h=>a.value.confirm=h),error:o.value.confirm},null,8,["modelValue","error"])]),_:1})]),footer:l.withCtx(()=>[l.createVNode(Vd,{saveText:"Reset",onSave:s,onClose:u})]),_:1},8,["open"]))}},zde={__name:"DownloadDialog",props:{},emits:["notify","notifyList","close"],setup(e,{expose:t,emit:n}){const r=n,i=l.ref(!1),a=l.ref("Title"),o=l.ref(null);function s(A,f){i.value=!0,a.value=A,o.value=f}function u(){window.open(o.value,"_blank"),c()}function c(){i.value=!1,a.value="Title",o.value=null,r("close")}return t({openModal:s,closeModal:c}),(A,f)=>(l.openBlock(),l.createBlock(Bs,{open:i.value,title:a.value,size:"medium"},{footer:l.withCtx(()=>[l.createVNode(Vd,{saveText:"Download",onSave:u,onClose:c})]),_:1},8,["open","title"]))}};function jm(){return jm=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jm.apply(this,arguments)}var qde=13,Kde=9,Gde=8,Wde=89,d1=90,Xde=77,hN=57,pN=219,mN=222,gN=192,Jde=27,vN=100,Zde=3e3,$de=typeof window<"u"&&navigator&&/Win/i.test(navigator.platform),U5=typeof window<"u"&&navigator&&/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform),efe=l.defineComponent({props:{lineNumbers:{type:Boolean,default:!1},autoStyleLineNumbers:{type:Boolean,default:!0},readonly:{type:Boolean,default:!1},modelValue:{type:String,default:""},highlight:{type:Function,required:!0},tabSize:{type:Number,default:2},insertSpaces:{type:Boolean,default:!0},ignoreTabKey:{type:Boolean,default:!1},placeholder:{type:String,default:""}},data:function(){return{capture:!0,history:{stack:[],offset:-1},lineNumbersHeight:"20px",codeData:""}},watch:{modelValue:{immediate:!0,handler:function(t){t?this.codeData=t:this.codeData=""}},content:{immediate:!0,handler:function(){var t=this;this.lineNumbers&&this.$nextTick(function(){t.setLineNumbersHeight()})}},lineNumbers:function(){var t=this;this.$nextTick(function(){t.styleLineNumbers(),t.setLineNumbersHeight()})}},computed:{isEmpty:function(){return this.codeData.length===0},content:function(){var t=this.highlight(this.codeData)+"<br />";return t},lineNumbersCount:function(){var t=this.codeData.split(/\r\n|\n/).length;return t}},mounted:function(){this._recordCurrentState(),this.styleLineNumbers()},methods:{setLineNumbersHeight:function(){this.lineNumbersHeight=getComputedStyle(this.$refs.pre).height},styleLineNumbers:function(){if(!(!this.lineNumbers||!this.autoStyleLineNumbers)){var t=this.$refs.pre,n=this.$el.querySelector(".prism-editor__line-numbers"),r=window.getComputedStyle(t);this.$nextTick(function(){var i="border-top-left-radius",a="border-bottom-left-radius";if(n){n.style[i]=r[i],n.style[a]=r[a],t.style[i]="0",t.style[a]="0";var o=["background-color","margin-top","padding-top","font-family","font-size","line-height"];o.forEach(function(s){n.style[s]=r[s]}),n.style["margin-bottom"]="-"+r["padding-top"]}})}},_recordCurrentState:function(){var t=this.$refs.textarea;if(t){var n=t.value,r=t.selectionStart,i=t.selectionEnd;this._recordChange({value:n,selectionStart:r,selectionEnd:i})}},_getLines:function(t,n){return t.substring(0,n).split(`
57
+ `).map(i=>`<p>${i}</p>`).join("");const t=document.querySelector("#editor .ql-editor");t.innerHTML=e}this.editor.on("text-change",()=>{this.$emit("update:modelValue",this.editor.root.innerHTML)})}};function iAe(e,t,n,r,i,a){return t[0]||(t[0]=l.createStaticVNode('<div id="toolbar" class="std-light"><span class="ql-formats"><select class="ql-font"></select><select class="ql-size"></select></span><span class="ql-formats"><button class="ql-bold"></button><button class="ql-italic"></button><button class="ql-underline"></button><button class="ql-strike"></button></span><span class="ql-formats"><select class="ql-color"></select><select class="ql-background"></select></span><span class="ql-formats"><button class="ql-list" value="ordered"></button><button class="ql-list" value="bullet"></button><select class="ql-align"></select></span><span class="ql-formats"><button class="ql-link"></button></span></div><div id="editor" class="min-h-40"></div>',2))}const rN=ar(rAe,[["render",iAe]]),aAe="data:image/svg+xml,%3csvg%20viewBox='0%200%20512%20512'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='%23000000'%3e%3cg%20id='SVGRepo_bgCarrier'%20stroke-width='0'%3e%3c/g%3e%3cg%20id='SVGRepo_tracerCarrier'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3c/g%3e%3cg%20id='SVGRepo_iconCarrier'%3e%3ctitle%3eai%3c/title%3e%3cg%20id='Page-1'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='icon'%20fill='%230097f5'%20transform='translate(64.000000,%2064.000000)'%3e%3cpath%20d='M320,64%20L320,320%20L64,320%20L64,64%20L320,64%20Z%20M171.749388,128%20L146.817842,128%20L99.4840387,256%20L121.976629,256%20L130.913039,230.977%20L187.575039,230.977%20L196.319607,256%20L220.167172,256%20L171.749388,128%20Z%20M260.093778,128%20L237.691519,128%20L237.691519,256%20L260.093778,256%20L260.093778,128%20Z%20M159.094727,149.47526%20L181.409039,213.333%20L137.135039,213.333%20L159.094727,149.47526%20Z%20M341.333333,256%20L384,256%20L384,298.666667%20L341.333333,298.666667%20L341.333333,256%20Z%20M85.3333333,341.333333%20L128,341.333333%20L128,384%20L85.3333333,384%20L85.3333333,341.333333%20Z%20M170.666667,341.333333%20L213.333333,341.333333%20L213.333333,384%20L170.666667,384%20L170.666667,341.333333%20Z%20M85.3333333,0%20L128,0%20L128,42.6666667%20L85.3333333,42.6666667%20L85.3333333,0%20Z%20M256,341.333333%20L298.666667,341.333333%20L298.666667,384%20L256,384%20L256,341.333333%20Z%20M170.666667,0%20L213.333333,0%20L213.333333,42.6666667%20L170.666667,42.6666667%20L170.666667,0%20Z%20M256,0%20L298.666667,0%20L298.666667,42.6666667%20L256,42.6666667%20L256,0%20Z%20M341.333333,170.666667%20L384,170.666667%20L384,213.333333%20L341.333333,213.333333%20L341.333333,170.666667%20Z%20M0,256%20L42.6666667,256%20L42.6666667,298.666667%20L0,298.666667%20L0,256%20Z%20M341.333333,85.3333333%20L384,85.3333333%20L384,128%20L341.333333,128%20L341.333333,85.3333333%20Z%20M0,170.666667%20L42.6666667,170.666667%20L42.6666667,213.333333%20L0,213.333333%20L0,170.666667%20Z%20M0,85.3333333%20L42.6666667,85.3333333%20L42.6666667,128%20L0,128%20L0,85.3333333%20Z'%20id='Combined-Shape'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",oAe="data:image/svg+xml,%3csvg%20viewBox='0%200%2017%2016'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20fill='%23fff'%20fill-rule='evenodd'%3e%3cpath%20d='m8.20003216%200c-4.5281696%200-8.20003216%203.67233045-8.20003216%208.2025137%200%203.6241466%202.34955472%206.6987785%205.60770169%207.7833978.40979259.0759104.5602814-.1779394.5602814-.3946059%200-.195566-.00765306-.84177-.01112588-1.5271516-2.28132027.4961843-2.76269151-.9677944-2.76269151-.9677944-.37300645-.948109-.91045728-1.2001576-.91045728-1.2001576-.74395492-.5091149.05607959-.4986933.05607959-.4986933.82344388.0578979%201.25703171.8453083%201.25703171.8453083.73134987%201.2540026%201.9182821.8914335%202.38621225.6819077.07357231-.5302154.28612167-.8920125.52060124-1.0968421-1.82130043-.2074672-3.73598109-.9107972-3.73598109-4.05374848%200-.89548638.32033536-1.62725057.84492391-2.20166134-.08514837-.20663091-.36580356-1.04087425.07942464-2.17071817%200%200%20.68858276-.22046205%202.25559569.8408051.6540475-.18179917%201.35555686-.27289175%202.0524358-.27597964.69687893.00308789%201.39890278.09418047%202.05423654.27597964%201.5651479-1.06126715%202.252766-.8408051%202.252766-.8408051.4463215%201.12984392.1655376%201.96408726.0803893%202.17071817.5257461.57441077.8438949%201.30611063.8438949%202.20166134%200%203.15041368-1.9182821%203.84415838-3.74421295%204.04718668.29409628.2545575.55616545.7537654.55616545%201.5189817%200%201.0974854-.0095181%201.9808133-.0095181%202.2510031%200%20.2182748.1475948.4740546.5633041.3935122%203.2563462-1.0858415%205.6029426-4.1593798%205.6029426-7.7823041%200-4.53018325-3.6713481-8.2025137-8.19996784-8.2025137'/%3e%3cpath%20d='m3.07518929%2011.6824029c-.01787762.0408541-.08159856.0531168-.13950928.0251063-.05905999-.0268489-.09226129-.0826118-.07310669-.1236596.01755837-.0420803.08127932-.0538267.14021161-.025558.05918769.0267843.09289978.0830636.07240436.1241113m.40045868.3611685c-.03881997.0364008-.11473601.0194912-.16626186-.0380143-.05324977-.0573765-.06321015-.1340506-.02381554-.1710323.0400331-.0363363.11365058-.0193621.16702804.0380789.05324977.0580219.06359325.1342442.02298552.1710322m.27480455.4620452c-.04992964.0350455-.1315282.0021944-.18190478-.0709945-.04986579-.0731243-.04986579-.1608994.00108543-.1960739.05056812-.0351746.13088971-.0035497.18196863.0690583.04980194.0744151.04980194.1621902-.00121313.1980747m.46462657.5351695c-.0446302.0496962-.13963698.0364009-.209232-.0314957-.07112739-.0663476-.09098432-.1605121-.04622642-.2102728.04514099-.0498253.14072241-.03582.21082822.0314957.07068044.0662185.09226128.161093.04469405.2102728m.60036877.1807134c-.01960153.0644113-.11116048.0937127-.20335792.0663476-.09206974-.0282042-.15234286-.1037166-.1337629-.1688379.01915459-.0648632.11109663-.0953908.20399641-.0660894.09194204.0280751.15234286.1030065.13318826.1685797m.68337202.0766095c.00229855.0678966-.07591604.1241759-.17271058.1254021-.09736918.0021299-.17609455-.0527941-.17711613-.1195289%200-.068542.07642682-.124305.17373215-.1259185.09679454-.0019362.17609456.0526005.17609456.1200453m.67130462-.0260098c.01162045.0662185-.05567602.1342442-.15176823.1523155-.09449599.0174259-.18196862-.0234282-.19403602-.0890659-.01174815-.0678965.05682529-.1358576.15112974-.1534772.09628375-.0169096.18241557.0229119.19467451.0902276'%20fill-rule='nonzero'/%3e%3c/g%3e%3c/svg%3e",sAe="data:image/svg+xml,%3csvg%20width='98'%20height='96'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M48.854%200C21.839%200%200%2022%200%2049.217c0%2021.756%2013.993%2040.172%2033.405%2046.69%202.427.49%203.316-1.059%203.316-2.362%200-1.141-.08-5.052-.08-9.127-13.59%202.934-16.42-5.867-16.42-5.867-2.184-5.704-5.42-7.17-5.42-7.17-4.448-3.015.324-3.015.324-3.015%204.934.326%207.523%205.052%207.523%205.052%204.367%207.496%2011.404%205.378%2014.235%204.074.404-3.178%201.699-5.378%203.074-6.6-10.839-1.141-22.243-5.378-22.243-24.283%200-5.378%201.94-9.778%205.014-13.2-.485-1.222-2.184-6.275.486-13.038%200%200%204.125-1.304%2013.426%205.052a46.97%2046.97%200%200%201%2012.214-1.63c4.125%200%208.33.571%2012.213%201.63%209.302-6.356%2013.427-5.052%2013.427-5.052%202.67%206.763.97%2011.816.485%2013.038%203.155%203.422%205.015%207.822%205.015%2013.2%200%2018.905-11.404%2023.06-22.324%2024.283%201.78%201.548%203.316%204.481%203.316%209.126%200%206.6-.08%2011.897-.08%2013.526%200%201.304.89%202.853%203.316%202.364%2019.412-6.52%2033.405-24.935%2033.405-46.691C97.707%2022%2075.788%200%2048.854%200z'%20fill='%2324292f'/%3e%3c/svg%3e",lAe="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20height='24px'%20viewBox='0%20-960%20960%20960'%20width='24px'%20fill='%23C10015'%3e%3cpath%20d='M480-120q-33%200-56.5-23.5T400-200q0-33%2023.5-56.5T480-280q33%200%2056.5%2023.5T560-200q0%2033-23.5%2056.5T480-120Zm-80-240v-480h160v480H400Z'/%3e%3c/svg%3e",uAe="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20height='24px'%20viewBox='0%20-960%20960%20960'%20width='24px'%20fill='%23C10015'%3e%3cpath%20d='M380-120v-120L240-380v-220q0-24%2011-45t32-32l77%2077h-40v186l140%20140v74h40v-74l37-37L56-792l56-56%20736%20736-56%2056-198-198-14%2014v120H380Zm306-268-46-46v-166H474L320-754v-86h80v160h160v-160h80v200l-40-40h40q33%200%2056.5%2023.5T720-600v178l-34%2034ZM558-516Zm-130%2097Z'/%3e%3c/svg%3e",cAe="data:image/svg+xml,%3csvg%20width='800px'%20height='800px'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M3%205.75C3%204.23122%204.23122%203%205.75%203H15.7145C16.5764%203%2017.4031%203.34241%2018.0126%203.9519L20.0481%205.98744C20.6576%206.59693%2021%207.42358%2021%208.28553V18.25C21%2019.7688%2019.7688%2021%2018.25%2021H5.75C4.23122%2021%203%2019.7688%203%2018.25V5.75ZM5.75%204.5C5.05964%204.5%204.5%205.05964%204.5%205.75V18.25C4.5%2018.9404%205.05964%2019.5%205.75%2019.5H6V14.25C6%2013.0074%207.00736%2012%208.25%2012H15.75C16.9926%2012%2018%2013.0074%2018%2014.25V19.5H18.25C18.9404%2019.5%2019.5%2018.9404%2019.5%2018.25V8.28553C19.5%207.8214%2019.3156%207.37629%2018.9874%207.0481L16.9519%205.01256C16.6918%204.75246%2016.3582%204.58269%2016%204.52344V7.25C16%208.49264%2014.9926%209.5%2013.75%209.5H9.25C8.00736%209.5%207%208.49264%207%207.25V4.5H5.75ZM16.5%2019.5V14.25C16.5%2013.8358%2016.1642%2013.5%2015.75%2013.5H8.25C7.83579%2013.5%207.5%2013.8358%207.5%2014.25V19.5H16.5ZM8.5%204.5V7.25C8.5%207.66421%208.83579%208%209.25%208H13.75C14.1642%208%2014.5%207.66421%2014.5%207.25V4.5H8.5Z'%20fill='%23FFFFFF'/%3e%3c/svg%3e",AAe=["src"],dAe={__name:"AiIcon",setup(e){return(t,n)=>(l.openBlock(),l.createElementBlock("img",{src:l.unref(aAe),alt:"avatar"},null,8,AAe))}},fAe=["src"],hAe={__name:"GithubIcon",props:{theme:{type:String,default:"light"}},setup(e){const t=e,n=l.computed(()=>t.theme==="dark"?oAe:sAe);return(r,i)=>(l.openBlock(),l.createElementBlock("img",{src:n.value,alt:"avatar"},null,8,fAe))}},pAe=["src"],mAe=l.defineComponent({__name:"HighPriorityIcon",setup(e){return(t,n)=>(l.openBlock(),l.createElementBlock("img",{src:l.unref(lAe),alt:"avatar"},null,8,pAe))}}),gAe={},vAe={height:"20px",viewBox:"0 0 24 24",width:"20px",fill:"#16a34a"};function yAe(e,t){return l.openBlock(),l.createElementBlock("svg",vAe,t[0]||(t[0]=[l.createElementVNode("path",{d:"M0 0h24v24H0z",fill:"none"},null,-1),l.createElementVNode("path",{d:"M16.01 7L16 3h-2v4h-4V3H8v4h-.01C7 6.99 6 7.99 6 8.99v5.49L9.5 18v3h5v-3l3.5-3.51v-5.5c0-1-1-2-1.99-1.99z"},null,-1)]))}const _Ae=ar(gAe,[["render",yAe]]),bAe={},wAe={height:"20px",viewBox:"0 0 24 24",width:"20px",fill:"#ef4444"};function BAe(e,t){return l.openBlock(),l.createElementBlock("svg",wAe,t[0]||(t[0]=[l.createElementVNode("path",{d:"M0 0h24v24H0V0z",fill:"none"},null,-1),l.createElementVNode("path",{d:"M18 14.49V9c0-1-1.01-2.01-2-2V3h-2v4h-4V3H8v2.48l9.51 9.5.49-.49zm-1.76 1.77L7.2 7.2l-.01.01L3.98 4 2.71 5.25l3.36 3.36C6.04 8.74 6 8.87 6 9v5.48L9.5 18v3h5v-3l.48-.48L19.45 22l1.26-1.28-4.47-4.46z"},null,-1)]))}const xAe=ar(bAe,[["render",BAe]]),CAe=["src"],SAe=l.defineComponent({__name:"PowerOffIcon",setup(e){return(t,n)=>(l.openBlock(),l.createElementBlock("img",{src:l.unref(uAe),alt:"avatar"},null,8,CAe))}}),kAe=["src"],iN=l.defineComponent({__name:"SaveIcon",setup(e){return(t,n)=>(l.openBlock(),l.createElementBlock("img",{src:l.unref(cAe),alt:"avatar"},null,8,kAe))}}),MAe={class:"fixed inset-0 overflow-y-auto"},EAe={class:"flex min-h-full items-center justify-center p-4 text-center"},LAe={key:0,class:"mx-2 inline-block spinner"},TAe={class:"absolute right-2 top-0"},NAe={class:"text-xs"},FAe={class:"pt-4"},OAe={class:"mt-4 space-x-3"},Bs=l.defineComponent({__name:"Dialog",props:{open:Boolean,title:String,description:{type:String,default:""},size:{type:String,default:"small"},loading:{type:Boolean,default:!1}},emits:["close"],setup(e,{emit:t}){const n=e,r=t,i=l.computed(()=>n.open),a=l.computed(()=>n.title);return(o,s)=>(l.openBlock(),l.createBlock(l.unref(oA),{appear:"",show:i.value,as:"template"},{default:l.withCtx(()=>[l.createVNode(l.unref(lh),{as:"div",onClose:s[0]||(s[0]=u=>r("close")),class:"relative z-40"},{default:l.withCtx(()=>[l.createVNode(l.unref(Fd),{as:"template",enter:"duration-300 ease-out","enter-from":"opacity-0","enter-to":"opacity-100",leave:"duration-200 ease-in","leave-from":"opacity-100","leave-to":"opacity-0"},{default:l.withCtx(()=>s[1]||(s[1]=[l.createElementVNode("div",{class:"fixed inset-0 bg-gray-500/75 transition-opacity"},null,-1)])),_:1,__:[1]}),l.createElementVNode("div",MAe,[l.createElementVNode("div",EAe,[l.createVNode(l.unref(Fd),{as:"template",enter:"duration-300 ease-out","enter-from":"opacity-0 scale-95","enter-to":"opacity-100 scale-100",leave:"duration-200 ease-in","leave-from":"opacity-100 scale-100","leave-to":"opacity-0 scale-95"},{default:l.withCtx(()=>[l.createVNode(l.unref(Fv),{class:l.normalizeClass(["white-bg dark:dark-bg transform rounded-2xl p-6 text-left align-middle shadow-xl transition-all",{"w-full max-w-md":e.size==="small"},{"min-w-150 px-4 pb-4 pt-5 sm:my-8 w-full sm:max-w-lg sm:p-6":e.size==="medium"},{"px-4 pb-4 pt-5 sm:my-8 w-full sm:max-w-4xl sm:p-6":e.size==="large"},{"px-4 pb-4 pt-5 sm:my-8 w-full sm:max-w-7xl sm:p-6":e.size==="xlarge"}])},{default:l.withCtx(()=>[l.createVNode(l.unref(Bw),{as:"h3",class:"relative text-lg font-medium leading-6"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(a.value)+" ",1),e.loading?(l.openBlock(),l.createElementBlock("div",LAe)):l.createCommentVNode("",!0),l.createElementVNode("div",TAe,[l.renderSlot(o.$slots,"header")])]),_:3}),l.createElementVNode("p",NAe,l.toDisplayString(e.description),1),l.createElementVNode("div",FAe,[l.renderSlot(o.$slots,"content")]),l.createElementVNode("div",OAe,[l.renderSlot(o.$slots,"footer")])]),_:3},8,["class"])]),_:3})])])]),_:3})]),_:3},8,["show"]))}}),DAe={class:"mt-2"},IAe={class:"text-sm overflow-x-auto text-ellipsis"},UAe=l.defineComponent({__name:"ConfirmDialog",setup(e,{expose:t}){const n=l.ref(!1),r=l.ref(""),i=l.ref(""),a=l.ref(()=>{}),o=l.ref(()=>{}),s=l.ref("Yes"),u=l.ref("No"),c=l.ref(!1);function A(m,p,g,v,y="Yes",_="No"){i.value=m,r.value=p,a.value=g,o.value=v,n.value=!0,s.value=y,u.value=_}async function f(){c.value=!0,await a.value(),c.value=!1,d()}function h(){o.value&&o.value(),d()}function d(){n.value=!1}return t({openModal:A}),(m,p)=>(l.openBlock(),l.createBlock(Bs,{open:n.value,title:i.value,onClose:d},{content:l.withCtx(()=>[l.createElementVNode("div",DAe,[l.createElementVNode("p",IAe,l.toDisplayString(r.value),1)])]),footer:l.withCtx(()=>[l.createVNode(Ko,{text:s.value,loading:c.value,onClick:f},null,8,["text","loading"]),l.createVNode(Ko,{text:u.value,color:"red",onClick:h},null,8,["text"])]),_:1},8,["open","title"]))}}),PAe={class:"mt-2"},HAe={class:"break-all text-sm std-white-text font-bold"},YAe={class:"text-sm font-light"},RAe=l.defineComponent({__name:"CopyDialog",emits:["notify"],setup(e,{expose:t,emit:n}){const r=n,i=l.ref(!1),a=l.ref(""),o=l.ref(""),s=l.ref("");function u(f,h,d){o.value=f,a.value=h,s.value=d,i.value=!0}function c(){navigator.clipboard.writeText(s.value),r("notify","Token copied to clipboard","",!0)}function A(){i.value=!1}return t({openModal:u}),(f,h)=>(l.openBlock(),l.createBlock(Bs,{open:i.value,title:o.value,onClose:A},{content:l.withCtx(()=>[l.createElementVNode("div",PAe,[l.createElementVNode("p",HAe,l.toDisplayString(s.value),1),l.createElementVNode("p",YAe,l.toDisplayString(a.value),1)])]),footer:l.withCtx(()=>[l.createVNode(Ko,{text:"Copy",color:"green",onClick:c}),l.createVNode(Ko,{text:"Close",color:"red",onClick:A})]),_:1},8,["open","title"]))}}),Vd={__name:"SubmitButtons",props:{saveText:{type:String,default:"Save"},disableSave:{type:[Boolean,Number],default:!1},isRun:{type:Boolean,default:!1},loading:{type:Boolean,default:!1}},emits:["save","close"],setup(e,{emit:t}){const n=e,r=t;function i(){!n.loading&&!n.disableSave&&r("save")}function a(){n.loading||r("close")}return(o,s)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createVNode(Ko,{text:e.saveText,color:e.isRun?"green":"blue",disabled:e.disableSave||e.loading,loading:e.loading,onClick:i},null,8,["text","color","disabled","loading"]),l.createVNode(Ko,{color:"red",text:"Cancel",loading:e.loading,disabled:e.loading,onClick:a},null,8,["loading","disabled"])],64))}},aN={__name:"ChooseValueDialog",props:{title:{type:String,default:"Add"},nameField:{type:String,default:"Name"},saveButtonText:{type:String,default:"Save"},values:{type:Array,default:()=>[]}},emits:["save"],setup(e,{expose:t,emit:n}){const r=e,i=n,a=l.ref(!1),o=l.ref({}),s=l.computed(()=>{const f=r.values.find(h=>h.value===o.value.key);return f?f.values.map(h=>({label:h,value:h})):[]});function u(f){const h=r.values.find(d=>d.value===f);h&&(o.value.val=h.values[0])}function c(){a.value=!1}function A(f){a.value=!0,o.value={}}return t({open:a,openModal:A,close:c}),(f,h)=>(l.openBlock(),l.createBlock(Bs,{open:a.value,title:e.title},{content:l.withCtx(()=>[l.createVNode(zi,{fieldName:e.nameField},{default:l.withCtx(()=>[l.createVNode(fr,{modelValue:o.value.key,"onUpdate:modelValue":[h[0]||(h[0]=d=>o.value.key=d),h[1]||(h[1]=d=>u(d))],options:e.values},null,8,["modelValue","options"])]),_:1},8,["fieldName"]),s.value.length>1?(l.openBlock(),l.createBlock(zi,{key:0,fieldName:"Select Attribute Value"},{default:l.withCtx(()=>[l.createVNode(fr,{modelValue:o.value.val,"onUpdate:modelValue":h[2]||(h[2]=d=>o.value.val=d),options:s.value},null,8,["modelValue","options"])]),_:1})):l.createCommentVNode("",!0),l.createVNode(zi,{fieldName:"Selected Value"},{default:l.withCtx(()=>[l.createVNode(H6,{value:o.value.val,readonly:""},null,8,["value"])]),_:1})]),footer:l.withCtx(()=>[l.createVNode(Vd,{saveText:e.saveButtonText,onSave:h[3]||(h[3]=d=>i("save",o.value)),onClose:c},null,8,["saveText"])]),_:1},8,["open","title"]))}},QAe={__name:"NameDialog",props:{title:{type:String,default:"Add"},nameField:{type:String,default:"Name"},saveButtonText:{type:String,default:"Save"}},emits:["save"],setup(e,{expose:t,emit:n}){const r=n,i=l.ref(!1),a=l.ref({});function o(){i.value=!1}function s(u){i.value=!0,a.value={name:u.name}}return t({open:i,openModal:s,close:o}),(u,c)=>(l.openBlock(),l.createBlock(Bs,{open:i.value,title:e.title},{content:l.withCtx(()=>[l.createVNode(zi,{fieldName:e.nameField},{default:l.withCtx(()=>[l.createVNode(lo,{modelValue:a.value.name,"onUpdate:modelValue":c[0]||(c[0]=A=>a.value.name=A)},null,8,["modelValue"])]),_:1},8,["fieldName"])]),footer:l.withCtx(()=>[l.createVNode(Vd,{saveText:e.saveButtonText,onSave:c[1]||(c[1]=A=>r("save",a.value)),onClose:o},null,8,["saveText"])]),_:1},8,["open","title"]))}},jAe={__name:"NameDescDialog",props:{title:{type:String,default:"Add"},saveButtonText:{type:String,default:"Save"},loading:{type:Boolean,default:!1}},emits:["save","notifyList"],setup(e,{expose:t,emit:n}){const r=n,i=l.ref(!1),a=l.ref({}),o=l.ref({});function s(){o.value={},i.value=!1}function u(){if(o.value={},!a.value.name){o.value.name="Name is required",r("notifyList","Error",["Name is required"],!1);return}r("save",a.value)}function c(A){i.value=!0,a.value={name:A.name,description:A.description||""}}return t({open:i,openModal:c,close:s}),(A,f)=>(l.openBlock(),l.createBlock(Bs,{open:i.value,title:e.title},{content:l.withCtx(()=>[l.createVNode(zi,{fieldName:"Name"},{default:l.withCtx(()=>[l.createVNode(lo,{modelValue:a.value.name,"onUpdate:modelValue":f[0]||(f[0]=h=>a.value.name=h),error:o.value.name},null,8,["modelValue","error"])]),_:1}),l.createVNode(zi,{fieldName:"Description"},{default:l.withCtx(()=>[l.createVNode(lo,{modelValue:a.value.description,"onUpdate:modelValue":f[1]||(f[1]=h=>a.value.description=h)},null,8,["modelValue"])]),_:1}),l.renderSlot(A.$slots,"extra")]),footer:l.withCtx(()=>[l.createVNode(Vd,{saveText:e.saveButtonText,loading:e.loading,onSave:u,onClose:s},null,8,["saveText","loading"])]),_:3},8,["open","title"]))}};function oN(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25H12"})])}function VAe(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 6.75h16.5M3.75 12h16.5M12 17.25h8.25"})])}function zAe(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"})])}function qAe(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 5.25h16.5m-16.5 4.5h16.5m-16.5 4.5h16.5m-16.5 4.5h16.5"})])}function c1(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})])}function sN(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m4.5 12.75 6 6 9-13.5"})])}function A1(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m19.5 8.25-7.5 7.5-7.5-7.5"})])}function lN(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"})])}function KAe(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8.25 15 12 18.75 15.75 15m-7.5-6L12 5.25 15.75 9"})])}function uN(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 6v6h4.5m4.5 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})])}function cN(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 9v3.75m9-.75a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 3.75h.008v.008H12v-.008Z"})])}function GAe(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 3c2.755 0 5.455.232 8.083.678.533.09.917.556.917 1.096v1.044a2.25 2.25 0 0 1-.659 1.591l-5.432 5.432a2.25 2.25 0 0 0-.659 1.591v2.927a2.25 2.25 0 0 1-1.244 2.013L9.75 21v-6.568a2.25 2.25 0 0 0-.659-1.591L3.659 7.409A2.25 2.25 0 0 1 3 5.818V4.774c0-.54.384-1.006.917-1.096A48.32 48.32 0 0 1 12 3Z"})])}function zd(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m9.75 9.75 4.5 4.5m0-4.5-4.5 4.5M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})])}function I5(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18 18 6M6 6l12 12"})])}const WAe={class:"flex"},XAe={class:"flex-shrink-0"},JAe={class:"ml-3"},ZAe={key:0,class:"text-sm font-medium std-green-text"},$Ae={key:1,class:"text-sm font-medium std-red-text"},ede={key:2,class:"mt-2 text-sm std-green-text"},tde={key:3,class:"mt-2 text-sm std-red-text"},nde={class:"ml-auto pl-3"},rde={class:"-mx-1.5 -my-1.5"},ide={class:"flex"},ade={class:"flex-shrink-0"},ode={class:"ml-3"},sde={key:0,class:"text-sm font-medium std-green-text"},lde={key:1,class:"text-sm font-medium std-red-text"},ude={key:2,class:"mt-2 text-sm std-green-text"},cde={key:3,class:"mt-2 text-sm std-red-text"},Ade={class:"ml-auto pl-3"},dde={class:"-mx-1.5 -my-1.5"},fde=l.defineComponent({__name:"Notify",setup(e,{expose:t}){const n=l.ref(!1),r=l.ref(""),i=l.ref(!1),a=l.ref(""),o=l.ref(),s=l.ref(!1);function u(f,h,d){clearTimeout(o.value),a.value=f,r.value=h,i.value=d,n.value=!0;const m=window.document.querySelectorAll("#headlessui-portal-root");s.value=m&&m.length>0&&m[0].childElementCount>1,o.value=setTimeout(()=>{c()},1e4)}function c(){n.value=!1}function A(){return i.value?"green":"red"}return t({openModal:u}),(f,h)=>(l.openBlock(),l.createBlock(l.unref(oA),{as:"template",show:n.value},{default:l.withCtx(()=>[s.value?(l.openBlock(),l.createBlock(l.unref(lh),{key:0,as:"div",class:l.normalizeClass([i.value?"std-green-light":"std-red-light","rounded-md p-4 fixed bottom-5 z-50"]),style:{"min-width":"75%",left:"50%",transform:"translateX(-50%)"},onClose:c},{default:l.withCtx(()=>[l.createElementVNode("div",WAe,[l.createElementVNode("div",XAe,[i.value?(l.openBlock(),l.createBlock(l.unref(c1),{key:0,class:"icon-md icon-green","aria-hidden":"true"})):(l.openBlock(),l.createBlock(l.unref(zd),{key:1,class:"icon-md icon-red","aria-hidden":"true"}))]),l.createElementVNode("div",JAe,[i.value?(l.openBlock(),l.createElementBlock("h3",ZAe,l.toDisplayString(a.value),1)):(l.openBlock(),l.createElementBlock("h3",$Ae,l.toDisplayString(a.value),1)),i.value?(l.openBlock(),l.createElementBlock("div",ede,[l.createElementVNode("p",null,l.toDisplayString(r.value),1)])):(l.openBlock(),l.createElementBlock("div",tde,[l.createElementVNode("p",null,l.toDisplayString(r.value),1)]))]),l.createElementVNode("div",nde,[l.createElementVNode("div",rde,[l.createVNode(l.unref(sA),{color:A(),onClick:l.withModifiers(c,["stop"])},{default:l.withCtx(()=>[l.createVNode(l.unref(Od),{class:"icon-md","aria-hidden":"true"})]),_:1},8,["color"])])])])]),_:1},8,["class"])):(l.openBlock(),l.createElementBlock("div",{key:1,class:l.normalizeClass([i.value?"std-green-light":"std-red-light","rounded-md p-4 fixed bottom-5 z-80"]),style:{"min-width":"75%",left:"50%",transform:"translateX(-50%)"}},[l.createElementVNode("div",ide,[l.createElementVNode("div",ade,[i.value?(l.openBlock(),l.createBlock(l.unref(c1),{key:0,class:"icon-md icon-green","aria-hidden":"true"})):(l.openBlock(),l.createBlock(l.unref(zd),{key:1,class:"icon-md icon-red","aria-hidden":"true"}))]),l.createElementVNode("div",ode,[i.value?(l.openBlock(),l.createElementBlock("h3",sde,l.toDisplayString(a.value),1)):(l.openBlock(),l.createElementBlock("h3",lde,l.toDisplayString(a.value),1)),i.value?(l.openBlock(),l.createElementBlock("div",ude,[l.createElementVNode("p",null,l.toDisplayString(r.value),1)])):(l.openBlock(),l.createElementBlock("div",cde,[l.createElementVNode("p",null,l.toDisplayString(r.value),1)]))]),l.createElementVNode("div",Ade,[l.createElementVNode("div",dde,[l.createVNode(l.unref(sA),{color:A(),onClick:l.withModifiers(c,["stop"])},{default:l.withCtx(()=>[l.createVNode(l.unref(Od),{class:"icon-md","aria-hidden":"true"})]),_:1},8,["color"])])])])],2))]),_:1},8,["show"]))}}),hde={class:"flex"},pde={class:"flex-shrink-0"},mde={class:"ml-3"},gde={key:0,class:"text-sm font-medium std-green-text"},vde={key:1,class:"text-sm font-medium std-red-text"},yde={key:2,class:"mt-2 text-sm std-green-text"},_de={role:"list",class:"list-disc space-y-1 pl-5"},bde={key:3,class:"mt-2 text-sm std-red-text"},wde={role:"list",class:"list-disc space-y-1 pl-5"},Bde={class:"ml-auto pl-3"},xde={class:"-mx-1.5 -my-1.5"},Cde={class:"flex"},Sde={class:"flex-shrink-0"},kde={class:"ml-3"},Mde={key:0,class:"text-sm font-medium std-green-text"},Ede={key:1,class:"text-sm font-medium std-red-text"},Lde={key:2,class:"mt-2 text-sm std-green-text"},Tde={role:"list",class:"list-disc space-y-1 pl-5"},Nde={key:3,class:"mt-2 text-sm std-red-text"},Fde={role:"list",class:"list-disc space-y-1 pl-5"},Ode={class:"ml-auto pl-3"},Dde={class:"-mx-1.5 -my-1.5"},AN=l.defineComponent({__name:"NotifyList",setup(e,{expose:t}){const n=l.ref(!1),r=l.ref(),i=l.ref(!1),a=l.ref(""),o=l.ref(),s=l.ref(!1);function u(f,h,d){clearTimeout(o.value),a.value=f,r.value=h,i.value=d,n.value=!0;const m=window.document.querySelectorAll("#headlessui-portal-root");s.value=m&&m.length>0&&m[0].childElementCount>1,o.value=setTimeout(()=>{c()},1e4)}function c(){n.value=!1}function A(){return i.value?"green":"red"}return t({openModal:u}),(f,h)=>(l.openBlock(),l.createBlock(l.unref(oA),{as:"template",show:n.value},{default:l.withCtx(()=>[s.value?(l.openBlock(),l.createBlock(l.unref(lh),{key:0,as:"div",class:l.normalizeClass([i.value?"std-green-light":"std-red-light","rounded-md p-4 fixed bottom-5 z-50"]),style:{"min-width":"75%",left:"50%",transform:"translateX(-50%)"},onClose:c},{default:l.withCtx(()=>[l.createElementVNode("div",hde,[l.createElementVNode("div",pde,[i.value?(l.openBlock(),l.createBlock(l.unref(c1),{key:0,class:"icon-md icon-green","aria-hidden":"true"})):(l.openBlock(),l.createBlock(l.unref(zd),{key:1,class:"icon-md icon-red","aria-hidden":"true"}))]),l.createElementVNode("div",mde,[i.value?(l.openBlock(),l.createElementBlock("h3",gde,l.toDisplayString(a.value),1)):(l.openBlock(),l.createElementBlock("h3",vde,l.toDisplayString(a.value),1)),i.value?(l.openBlock(),l.createElementBlock("div",yde,[l.createElementVNode("ul",_de,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(r.value,d=>(l.openBlock(),l.createElementBlock("li",{key:d},l.toDisplayString(d),1))),128))])])):(l.openBlock(),l.createElementBlock("div",bde,[l.createElementVNode("ul",wde,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(r.value,d=>(l.openBlock(),l.createElementBlock("li",{key:d},l.toDisplayString(d),1))),128))])]))]),l.createElementVNode("div",Bde,[l.createElementVNode("div",xde,[l.createVNode(l.unref(sA),{color:A(),onClick:c},{default:l.withCtx(()=>[l.createVNode(l.unref(Od),{class:"icon-md","aria-hidden":"true"})]),_:1},8,["color"])])])])]),_:1},8,["class"])):(l.openBlock(),l.createElementBlock("div",{key:1,class:l.normalizeClass([i.value?"std-green-light":"std-red-light","rounded-md p-4 fixed bottom-5 z-50"]),style:{"min-width":"75%",left:"50%",transform:"translateX(-50%)"}},[l.createElementVNode("div",Cde,[l.createElementVNode("div",Sde,[i.value?(l.openBlock(),l.createBlock(l.unref(c1),{key:0,class:"icon-md icon-green","aria-hidden":"true"})):(l.openBlock(),l.createBlock(l.unref(zd),{key:1,class:"icon-md icon-red","aria-hidden":"true"}))]),l.createElementVNode("div",kde,[i.value?(l.openBlock(),l.createElementBlock("h3",Mde,l.toDisplayString(a.value),1)):(l.openBlock(),l.createElementBlock("h3",Ede,l.toDisplayString(a.value),1)),i.value?(l.openBlock(),l.createElementBlock("div",Lde,[l.createElementVNode("ul",Tde,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(r.value,d=>(l.openBlock(),l.createElementBlock("li",{key:d},l.toDisplayString(d),1))),128))])])):(l.openBlock(),l.createElementBlock("div",Nde,[l.createElementVNode("ul",Fde,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(r.value,d=>(l.openBlock(),l.createElementBlock("li",{key:d},l.toDisplayString(d),1))),128))])]))]),l.createElementVNode("div",Ode,[l.createElementVNode("div",Dde,[l.createVNode(l.unref(sA),{color:A(),onClick:c},{default:l.withCtx(()=>[l.createVNode(l.unref(Od),{class:"icon-md","aria-hidden":"true"})]),_:1},8,["color"])])])])],2))]),_:1},8,["show"]))}}),Ide={class:"slider-inactive rounded-xl shadow-xs overflow-hidden p-1"},Ude={key:0,class:"relative text-green-900 font-medium text-sm"},dN={__name:"ProgressBar",props:{progress:Number,hideProgress:{type:Boolean,default:!1}},setup(e){const t=e;return(n,r)=>(l.openBlock(),l.createElementBlock("div",Ide,[l.createElementVNode("div",{class:l.normalizeClass(["relative flex items-center justify-center",{"h-2":e.hideProgress},{"h-6":!e.hideProgress}])},[l.createElementVNode("div",{class:"absolute top-0 bottom-0 left-0 rounded-lg std-green-hover",style:l.normalizeStyle({width:`${t.progress}%`})},null,4),e.hideProgress?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("div",Ude,l.toDisplayString(t.progress)+"% ",1))],2)]))}},Pde={__name:"ProgressDialog",emits:["close"],setup(e,{expose:t,emit:n}){const r=n,i=l.ref(!1),a=l.ref("Loading"),o=l.ref(0),s=l.ref(()=>{}),u=l.ref(),c=d=>{o.value+=1,o.value<100?u.value=setTimeout(()=>{s.value(d)},d):(A(),r("close"))};function A(){clearTimeout(u.value),i.value=!1}function f(d,m=0,p=100,g=c){i.value=!0,a.value=d,o.value=m,p?(s.value=c,s.value(p)):(s.value=g,s.value())}function h(d){o.value=d}return t({openModal:f,updateProgress:h,close:A}),(d,m)=>(l.openBlock(),l.createBlock(Bs,{open:i.value,title:a.value,loading:!0},{content:l.withCtx(()=>[l.createVNode(dN,{progress:o.value},null,8,["progress"])]),_:1},8,["open","title"]))}},Hde={class:"w-full px-4"},fN={__name:"Stepper",props:{steps:Array},setup(e){const t=e,n=l.computed(()=>({gridTemplateColumns:`repeat(${t.steps.length}, minmax(0, 1fr))`}));return(r,i)=>(l.openBlock(),l.createElementBlock("div",Hde,[l.createElementVNode("div",{class:"'w-full grid pb-8 md:pb-4 gap-x-2",style:l.normalizeStyle(n.value)},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.steps,(a,o)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["h-2 text-sm px-1",{"opacity-75":a.status!=="current"},{"font-semibold":a.status==="current"}])},l.toDisplayString(a.name),3))),256))],4),l.createElementVNode("div",{class:"w-full grid gap-x-2",style:l.normalizeStyle(n.value)},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.steps,(a,o)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["h-2 rounded-lg flex-none",{"slider-inactive":a.status==="upcoming"},{"std-blue":a.status!=="upcoming"}])},null,2))),256))],4)]))}},Yde={class:"flow-root"},Rde={class:"float-left"},Qde={class:"float-right space-x-4"},jde={__name:"Wizard",props:{open:Boolean,title:String,steps:Array,proceed:Boolean,saveButton:{type:String,default:"Save"},preventSave:{type:[Boolean,Number],default:!1},size:{type:String,default:"large"}},emits:["close","next","moved","clickout"],setup(e,{emit:t}){const n=e,r=l.ref(n.steps),i=l.ref(0),a=t;l.watch(()=>n.open,()=>{r.value=n.steps,i.value=0}),l.watch(()=>n.proceed,()=>{n.proceed&&(r.value[i.value].status="completed",i.value+=1,r.value[i.value].status="current",a("moved"))}),l.watch(()=>n.steps,()=>{r.value=n.steps});function o(){i.value===0?(i.value=0,a("close")):(r.value[i.value].status="upcoming",i.value-=1,r.value[i.value].status="current")}function s(){a("next")}return(u,c)=>(l.openBlock(),l.createBlock(Bs,{open:e.open,title:e.title,size:e.size,onClose:c[1]||(c[1]=A=>u.$emit("clickout"))},{header:l.withCtx(()=>[l.renderSlot(u.$slots,"header")]),content:l.withCtx(()=>[l.createVNode(fN,{steps:r.value},null,8,["steps"]),l.renderSlot(u.$slots,"content")]),footer:l.withCtx(()=>[l.createElementVNode("div",Yde,[l.createElementVNode("div",Rde,[l.renderSlot(u.$slots,"footer")]),l.createElementVNode("div",Qde,[l.createVNode(Ko,{text:i.value===0?"Cancel":"Back",color:"red",onClick:o},null,8,["text"]),i.value!==r.value.length-1?(l.openBlock(),l.createBlock(Ko,{key:0,text:"Next",onClick:s})):(l.openBlock(),l.createBlock(Ko,{key:1,text:e.preventSave?"Close":e.saveButton,color:"blue",onClick:c[0]||(c[0]=A=>e.preventSave?a("close"):s())},null,8,["text"]))])])]),_:3},8,["open","title","size"]))}},Vde={__name:"ResetPasswordDialog",emits:["save","notify"],setup(e,{expose:t,emit:n}){const r=n,i=l.ref(!1),a=l.ref({}),o=l.ref({});function s(){if(o.value={},!a.value.password||a.value.password.length<8){o.value.password="Password needs to be at least 8 characters long",r("notify","Error",[o.value.password],!1);return}if(a.value.password!==a.value.confirm){o.value.confirm="Passwords do not match",r("notify","Error",[o.value.confirm],!1);return}r("save",a.value),u()}function u(){i.value=!1}function c(A){i.value=!0,a.value={username:A}}return t({open:i,openModal:c,close:u}),(A,f)=>(l.openBlock(),l.createBlock(Bs,{open:i.value,title:"Reset Password"},{content:l.withCtx(()=>[l.createVNode(zi,{fieldName:"Password"},{default:l.withCtx(()=>[l.createVNode(Ow,{modelValue:a.value.password,"onUpdate:modelValue":f[0]||(f[0]=h=>a.value.password=h),error:o.value.password},null,8,["modelValue","error"])]),_:1}),l.createVNode(zi,{fieldName:"Confirm Password"},{default:l.withCtx(()=>[l.createVNode(Ow,{modelValue:a.value.confirm,"onUpdate:modelValue":f[1]||(f[1]=h=>a.value.confirm=h),error:o.value.confirm},null,8,["modelValue","error"])]),_:1})]),footer:l.withCtx(()=>[l.createVNode(Vd,{saveText:"Reset",onSave:s,onClose:u})]),_:1},8,["open"]))}},zde={__name:"DownloadDialog",props:{},emits:["notify","notifyList","close"],setup(e,{expose:t,emit:n}){const r=n,i=l.ref(!1),a=l.ref("Title"),o=l.ref(null);function s(A,f){i.value=!0,a.value=A,o.value=f}function u(){window.open(o.value,"_blank"),c()}function c(){i.value=!1,a.value="Title",o.value=null,r("close")}return t({openModal:s,closeModal:c}),(A,f)=>(l.openBlock(),l.createBlock(Bs,{open:i.value,title:a.value,size:"medium"},{footer:l.withCtx(()=>[l.createVNode(Vd,{saveText:"Download",onSave:u,onClose:c})]),_:1},8,["open","title"]))}};function jm(){return jm=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jm.apply(this,arguments)}var qde=13,Kde=9,Gde=8,Wde=89,d1=90,Xde=77,hN=57,pN=219,mN=222,gN=192,Jde=27,vN=100,Zde=3e3,$de=typeof window<"u"&&navigator&&/Win/i.test(navigator.platform),U5=typeof window<"u"&&navigator&&/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform),efe=l.defineComponent({props:{lineNumbers:{type:Boolean,default:!1},autoStyleLineNumbers:{type:Boolean,default:!0},readonly:{type:Boolean,default:!1},modelValue:{type:String,default:""},highlight:{type:Function,required:!0},tabSize:{type:Number,default:2},insertSpaces:{type:Boolean,default:!0},ignoreTabKey:{type:Boolean,default:!1},placeholder:{type:String,default:""}},data:function(){return{capture:!0,history:{stack:[],offset:-1},lineNumbersHeight:"20px",codeData:""}},watch:{modelValue:{immediate:!0,handler:function(t){t?this.codeData=t:this.codeData=""}},content:{immediate:!0,handler:function(){var t=this;this.lineNumbers&&this.$nextTick(function(){t.setLineNumbersHeight()})}},lineNumbers:function(){var t=this;this.$nextTick(function(){t.styleLineNumbers(),t.setLineNumbersHeight()})}},computed:{isEmpty:function(){return this.codeData.length===0},content:function(){var t=this.highlight(this.codeData)+"<br />";return t},lineNumbersCount:function(){var t=this.codeData.split(/\r\n|\n/).length;return t}},mounted:function(){this._recordCurrentState(),this.styleLineNumbers()},methods:{setLineNumbersHeight:function(){this.lineNumbersHeight=getComputedStyle(this.$refs.pre).height},styleLineNumbers:function(){if(!(!this.lineNumbers||!this.autoStyleLineNumbers)){var t=this.$refs.pre,n=this.$el.querySelector(".prism-editor__line-numbers"),r=window.getComputedStyle(t);this.$nextTick(function(){var i="border-top-left-radius",a="border-bottom-left-radius";if(n){n.style[i]=r[i],n.style[a]=r[a],t.style[i]="0",t.style[a]="0";var o=["background-color","margin-top","padding-top","font-family","font-size","line-height"];o.forEach(function(s){n.style[s]=r[s]}),n.style["margin-bottom"]="-"+r["padding-top"]}})}},_recordCurrentState:function(){var t=this.$refs.textarea;if(t){var n=t.value,r=t.selectionStart,i=t.selectionEnd;this._recordChange({value:n,selectionStart:r,selectionEnd:i})}},_getLines:function(t,n){return t.substring(0,n).split(`
58
58
  `)},_applyEdits:function(t){var n=this.$refs.textarea,r=this.history.stack[this.history.offset];r&&n&&(this.history.stack[this.history.offset]=jm({},r,{selectionStart:n.selectionStart,selectionEnd:n.selectionEnd})),this._recordChange(t),this._updateInput(t)},_recordChange:function(t,n){n===void 0&&(n=!1);var r=this.history,i=r.stack,a=r.offset;if(i.length&&a>-1){this.history.stack=i.slice(0,a+1);var o=this.history.stack.length;if(o>vN){var s=o-vN;this.history.stack=i.slice(s,o),this.history.offset=Math.max(this.history.offset-s,0)}}var u=Date.now();if(n){var c=this.history.stack[this.history.offset];if(c&&u-c.timestamp<Zde){var A,f,h=/[^a-z0-9]([a-z0-9]+)$/i,d=(A=this._getLines(c.value,c.selectionStart).pop())===null||A===void 0?void 0:A.match(h),m=(f=this._getLines(t.value,t.selectionStart).pop())===null||f===void 0?void 0:f.match(h);if(d&&m&&m[1].startsWith(d[1])){this.history.stack[this.history.offset]=jm({},t,{timestamp:u});return}}}this.history.stack.push(jm({},t,{timestamp:u})),this.history.offset++},_updateInput:function(t){var n=this.$refs.textarea;n&&(n.value=t.value,n.selectionStart=t.selectionStart,n.selectionEnd=t.selectionEnd,this.$emit("update:modelValue",t.value))},handleChange:function(t){var n=t.target,r=n.value,i=n.selectionStart,a=n.selectionEnd;this._recordChange({value:r,selectionStart:i,selectionEnd:a},!0),this.$emit("update:modelValue",r)},_undoEdit:function(){var t=this.history,n=t.stack,r=t.offset,i=n[r-1];i&&(this._updateInput(i),this.history.offset=Math.max(r-1,0))},_redoEdit:function(){var t=this.history,n=t.stack,r=t.offset,i=n[r+1];i&&(this._updateInput(i),this.history.offset=Math.min(r+1,n.length-1))},handleKeyDown:function(t){var n=this.tabSize,r=this.insertSpaces,i=this.ignoreTabKey;if(this.$emit("keydown",t),!t.defaultPrevented){t.keyCode===Jde&&(t.target.blur(),this.$emit("blur",t));var a=t.target,o=a.value,s=a.selectionStart,u=a.selectionEnd,c=(r?" ":" ").repeat(n);if(t.keyCode===Kde&&!i&&this.capture)if(t.preventDefault(),t.shiftKey){var A=this._getLines(o,s),f=A.length-1,h=this._getLines(o,u).length-1,d=o.split(`
59
59
  `).map(function(F,D){return D>=f&&D<=h&&F.startsWith(c)?F.substring(c.length):F}).join(`
60
60
  `);if(o!==d){var m=A[f];this._applyEdits({value:d,selectionStart:m.startsWith(c)?s-c.length:s,selectionEnd:u-(o.length-d.length)})}}else if(s!==u){var p=this._getLines(o,s),g=p.length-1,v=this._getLines(o,u).length-1,y=p[g];this._applyEdits({value:o.split(`