PageSourceSearch

https://chatgpt-demo-tawny-one.vercel.app/_astro/ModalsLayer.82ef14cd.js

js chatgpt-demo-tawny-one.vercel.app collected 2026-10-03 06:25:40 UTC 27,565 bytes, 7 lines download raw bytes

1import{d as Ke,l as M,n as Ve,g as P,a as oe,u as je,i as N,e as x,p as ce,s as ue,q as de,r as K,F as fe,t as k,v as te,w as Ge,m as ve,x as qe,c as X,y as Ue,z as We,P as He,A as q,B as U}from"./web.7cd7f0a9.js";import{d as Ie,a as Xe,b as Ye}from"./ui.cad2fc3e.js";import{C as Ze}from"./ConversationSidebar.31571f1a.js";import{a as Je,c as Qe,b as ze,d as et,e as tt,n as re,r as rt,t as nt,f as be,u as at,g as it,S as ot}from"./SettingsSidebar.b13a8ade.js";import{f as st}from"./index.39500d19.js";/* empty css                       */import{i as ge,j as ne,u as lt,h as ct}from"./conversation.c8fbc3c2.js";var Ne=()=>typeof window<"u";function ut(){return navigator.userAgentData?.platform??navigator.platform}var Pe=r=>Ne()&&r.test(ut()),dt=()=>Ne()&&!!navigator.maxTouchPoints,ft=()=>Pe(/^Mac/)&&!dt(),vt=()=>Pe(/mac|iphone|ipad|ipod/i),bt=()=>vt()&&!ft();const gt=k('<div class="p-6"><header class="mb-4"><h1 class="font-bold">Edit Conversation</header><main class="flex flex-col gap-3"><input type="text" placeholder="Untitled" class="w-full bg-transparent border border-base px-2 py-1 input-base focus:border-darker"><!#><!/><div></div><div class="flex flex-wrap"></main><div class="fcc px-2 py-2 bg-darker border border-base mt-4 hv-base hover:border-darker">Save'),pt=k('<div class="flex items-center gap-2 p-2 border border-base"><div></div><div>'),ht=k('<div class="fcc w-10 h-10 border border-base hv-base"><div>'),mt=[{value:"continuous",label:"Continuous Conversation",icon:"i-carbon-edt-loop"},{value:"single",label:"Single Conversation",icon:"i-carbon-connect"},{value:"image",label:"Image Generation",icon:"i-carbon-image"}],yt=["i-carbon-chat","i-carbon-chat-bot","i-carbon-basketball","i-carbon-game-console","i-carbon-palm-tree","i-carbon-asleep","i-carbon-cafe","i-carbon-calculation","i-carbon-color-palette","i-carbon-fish","i-carbon-idea","i-carbon-music","i-carbon-parameter"],Et=()=>{let r;const e=st(ge),[t,n]=M(""),[i,o]=M("continuous"),[a,f]=M("i-carbon-chat"),[u,p]=M(ne[0]?.id),b=()=>ne.find(d=>d.id===u())||null,h=d=>{p(d),o(b()?.supportConversationType[0]||"continuous")};Ve(()=>{const d=ge.get();if(d?.id){n(d.id);const{name:g,icon:y,conversationType:F}=d;r.value=g,o(F),f(y||"i-carbon-chat")}else n(""),r.value="",o("continuous"),f("i-carbon-chat")});const v=()=>{const d=t(),g={providerId:u(),conversationType:i(),name:r.value||"",icon:a()};d?lt(d,g):ct(g),Ie.set(!1),r.value=""};return(()=>{const d=P(gt),g=d.firstChild,y=g.nextSibling,F=y.firstChild,L=F.nextSibling,[A,j]=oe(L.nextSibling),D=A.nextSibling,G=D.nextSibling,w=y.nextSibling,s=r;return typeof s=="function"?je(s,F):r=F,N(y,x(Je,{get options(){return ne.map(l=>({value:l.id,label:l.name,icon:l.icon}))},value:u,setValue:h,get readonly(){return!!e()}}),A,j),N(D,x(fe,{get each(){return mt.filter(l=>b()?.supportConversationType.includes(l.value))},children:l=>(()=>{const c=P(pt),m=c.firstChild,C=m.nextSibling;return c.$$click=()=>{!e()&&o(l.value)},N(C,()=>l.label),ce(T=>{const S={"border-emerald-600! text-emerald-600":i()===l.value,"op-50":!!e(),"hv-base":!e()},I=l.icon;return T._v$=ue(c,S,T._v$),I!==T._v$2&&de(m,T._v$2=I),T},{_v$:void 0,_v$2:void 0}),K(),c})()})),N(G,x(fe,{each:yt,children:l=>(()=>{const c=P(ht),m=c.firstChild;return c.$$click=()=>{f(l)},de(m,l),ce(C=>ue(c,{"border-emerald-600! text-emerald-600":a()===l},C)),K(),c})()})),w.$$click=v,K(),d})()};Ke(["click"]);
1var Ct=Qe("dialog").parts("trigger","backdrop","container","content","title","description","closeTrigger"),O=Ct.build(),E=ze({getContainerId:r=>r.ids?.container??`dialog:${r.id}:container`,getBackdropId:r=>r.ids?.backdrop??`dialog:${r.id}:backdrop`,getContentId:r=>r.ids?.content??`dialog:${r.id}:content`,getTriggerId:r=>r.ids?.trigger??`dialog:${r.id}:trigger`,getTitleId:r=>r.ids?.title??`dialog:${r.id}:title`,getDescriptionId:r=>r.ids?.description??`dialog:${r.id}:description`,getCloseTriggerId:r=>r.ids?.closeTrigger??`dialog:${r.id}:close`,getContentEl:r=>E.getById(r,E.getContentId(r)),getTriggerEl:r=>E.getById(r,E.getTriggerId(r)),getContainerEl:r=>E.getById(r,E.getContainerId(r)),getTitleEl:r=>E.getById(r,E.getTitleId(r)),getDescriptionEl:r=>E.getById(r,E.getDescriptionId(r))});function Tt(r,e,t){const n=r.context["aria-label"],i=r.matches("open"),o=r.context.renderedElements;return{isOpen:i,open(){e("OPEN")},close(){e("CLOSE")},triggerProps:t.button({...O.trigger.attrs,id:E.getTriggerId(r.context),"aria-haspopup":"dialog",type:"button","aria-expanded":i,"aria-controls":E.getContentId(r.context),onClick(){e("TOGGLE")}}),backdropProps:t.element({...O.backdrop.attrs,hidden:!i,id:E.getBackdropId(r.context)}),containerProps:t.element({...O.container.attrs,hidden:!i,id:E.getContainerId(r.context),style:{pointerEvents:i?void 0:"none"}}),contentProps:t.element({...O.content.attrs,role:r.context.role,hidden:!i,id:E.getContentId(r.context),tabIndex:-1,"aria-modal":!0,"aria-label":n||void 0,"aria-labelledby":n||!o.title?void 0:E.getTitleId(r.context),"aria-describedby":o.description?E.getDescriptionId(r.context):void 0}),titleProps:t.element({...O.title.attrs,id:E.getTitleId(r.context)}),descriptionProps:t.element({...O.description.attrs,id:E.getDescriptionId(r.context)}),closeTriggerProps:t.button({...O.closeTrigger.attrs,id:E.getCloseTriggerId(r.context),type:"button",onClick(a){a.stopPropagation(),e("CLOSE")}})}}var B=new WeakMap;function pe(r,e){return r instanceof e.HTMLElement&&r.dataset.liveAnnouncer==="true"}function wt(r,e){const t=r.filter(Boolean);if(t.length===0)return;const n=t[0].ownerDocument||document,i=n.defaultView??window,o=new Set(t),a=new Set,f=e??n.body,u=n.createTreeWalker(f,NodeFilter.SHOW_ELEMENT,{acceptNode(v){return pe(v,i)&&o.add(v),o.has(v)||a.has(v.parentElement)?NodeFilter.FILTER_REJECT:v instanceof i.HTMLElement&&v.getAttribute("role")==="row"||t.some(d=>v.contains(d))?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT}}),p=v=>{let d=B.get(v)??0;v.getAttribute("aria-hidden")==="true"&&d===0||(d===0&&v.setAttribute("aria-hidden","true"),a.add(v),B.set(v,d+1))};let b=u.nextNode();for(;b!=null;)p(b),b=u.nextNode();const h=new i.MutationObserver(v=>{for(let d of v)if(!(d.type!=="childList"||d.addedNodes.length===0)&&![...o,...a].some(g=>g.contains(d.target)))for(const g of d.addedNodes)pe(g,i)?o.add(g):g instanceof i.Element&&p(g)});return h.observe(f,{childList:!0,subtree:!0}),()=>{h.disconnect();for(let v of a){let d=B.get(v);if(d===1){v.removeAttribute("aria-hidden"),B.delete(v);continue}d!==void 0&&B.set(v,d-1)}}}var ae="data-zag-scroll-lock";function he(r,e){if(!r)return()=>{};const t=r.style.cssText;return Object.assign(r.style,e),()=>{r.style.cssText=t}}function St(r,e,t){if(!r)return()=>{};const n=r.style.getPropertyValue(e);return r.style.setProperty(e,t),()=>{n?r.style.setProperty(e,n):r.style.removeProperty(e)}}function Ft(r){const e=r.getBoundingClientRect().left;return Math.round(e)+r.scrollLeft?"paddingLeft":"paddingRight"}function xt(r){const e=r??document,t=e.defaultView??window,{documentElement:n,body:i}=e;if(i.hasAttribute(ae))return;i.setAttribute(ae,"");const a=t.innerWidth-n.clientWidth,f=()=>St(n,"--scrollbar-width",`${a}px`),u=Ft(n),p=()=>he(i,{overflow:"hidden",[u]:`${a}px`}),b=()=>{const{scrollX:v,scrollY:d,visualViewport:g}=t,y=g?.offsetLeft??0,F=g?.offsetTop??0,L=he(i,{position:"fixed",overflow:"hidden",top:`${-(d-Math.floor(F))}px`,left:`${-(v-Math.floor(y))}px`,right:"0",[u]:`${a}px`});return()=>{L(),t.scrollTo(v,d)}},h=[f(),bt()?b():p()];return()=>{h.forEach(v=>v()),i.removeAttribute(ae)}}/*!
2* tabbable 6.1.1
3* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
4*/var ke=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not
4(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],Y=ke.join(","),Le=typeof Element>"u",$=Le?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Z=!Le&&Element.prototype.getRootNode?function(r){var e;return r==null||(e=r.getRootNode)===null||e===void 0?void 0:e.call(r)}:function(r){return r?.ownerDocument},J=function r(e,t){var n;t===void 0&&(t=!0);var i=e==null||(n=e.getAttribute)===null||n===void 0?void 0:n.call(e,"inert"),o=i===""||i==="true",a=o||t&&e&&r(e.parentNode);return a},It=function(e){var t,n=e==null||(t=e.getAttribute)===null||t===void 0?void 0:t.call(e,"contenteditable");return n===""||n==="true"},Oe=function(e,t,n){if(J(e))return[];var i=Array.prototype.slice.apply(e.querySelectorAll(Y));return t&&$.call(e,Y)&&i.unshift(e),i=i.filter(n),i},$e=function r(e,t,n){for(var i=[],o=Array.from(e);o.length;){var a=o.shift();if(!J(a,!1))if(a.tagName==="SLOT"){var f=a.assignedElements(),u=f.length?f:a.children,p=r(u,!0,n);n.flatten?i.push.apply(i,p):i.push({scopeParent:a,candidates:p})}else{var b=$.call(a,Y);b&&n.filter(a)&&(t||!e.includes(a))&&i.push(a);var h=a.shadowRoot||typeof n.getShadowRoot=="function"&&n.getShadowRoot(a),v=!J(h,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(a));if(h&&v){var d=r(h===!0?a.children:h.children,!0,n);n.flatten?i.push.apply(i,d):i.push({scopeParent:a,candidates:d})}else o.unshift.apply(o,a.children)}}return i},Ae=function(e,t){return e.tabIndex<0&&(t||/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||It(e))&&isNaN(parseInt(e.getAttribute("tabindex"),10))?0:e.tabIndex},Nt=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},De=function(e){return e.tagName==="INPUT"},Pt=function(e){return De(e)&&e.type==="hidden"},kt=function(e){var t=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(n){return n.tagName==="SUMMARY"});return t},Lt=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]},Ot=function(e){if(!e.name)return!0;var t=e.form||Z(e),n=function(f){return t.querySelectorAll('input[type="radio"][name="'+f+'"]')},i;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")i=n(window.CSS.escape(e.name));else try{i=n(e.name)}catch(a){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",a.message),!1}var o=Lt(i,e.form);return!o||o===e},$t=function(e){return De(e)&&e.type==="radio"},At=function(e){return $t(e)&&!Ot(e)},Dt=function(e){var t,n=e&&Z(e),i=(t=n)===null||t===void 0?void 0:t.host,o=!1;if(n&&n!==e){var a,f,u;for(o=!!((a=i)!==null&&a!==void 0&&(f=a.ownerDocument)!==null&&f!==void 0&&f.contains(i)||e!=null&&(u=e.ownerDocument)!==null&&u!==void 0&&u.contains(e));!o&&i;){var p,b,h;n=Z(i),i=(p=n)===null||p===void 0?void 0:p.host,o=!!((b=i)!==null&&b!==void 0&&(h=b.ownerDocument)!==null&&h!==void 0&&h.contains(i))}}return o},me=function(e){var t=e.getBoundingClientRect(),n=t.width,i=t.height;return n===0&&i===0},Rt=function(e,t){var n=t.displayCheck,i=t.getShadowRoot;if(getComputedStyle(e).visibility==="hidden")return!0;var o=$.call(e,"details>summary:first-of-type"),a=o?e.parentElement:e;if($.call(a,"details:not([open]) *"))return!0;if(!n||n==="full"||n==="legacy-full"){if(typeof i=="function"){for(var f=e;e;){var u=e.parentElement,p=Z(e);if(u&&!u.shadowRoot&&i(u)===!0)return me(e);e.assignedSlot?e=e.assignedSlot:!u&&p!==e.ownerDocument?e=p.host:e=u}e=f}if(Dt(e))return!e.getClientRects().length;if(n!=="legacy-full")return!0}else if(n==="non-zero-area")return me(e);return!1},Bt=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName==="FIELDSET"&&t.disabled){for(var n=0;n<t.children.length;n++){var i=t.children.item(n);if(i.tagName==="LEGEND")return $.call(t,"fieldset[disabled] *")?!0:!i.contains(e)}return!0}t=t.parentElement}return!1},Q=function(e,t){return!(t.disabled||J(t)||Pt(t)||Rt(t,e)||kt(t)||Bt(t))},se=function(e,t){return!(At(t)||Ae(t)<0||!Q(e,t))},_t=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},Mt=function r(e){var t=[],n=[];return e.forEach(function(i,o){var a=!!i.scopeParent,f=a?i.scopeParent:i,u=Ae(f,a),p=a?r(i.candidates):f;u===0?a?t.push.apply(t,p):t.push(f):n.push({documentOrder:o,tabIndex:u,item:i,isScope:a,content:p})}),n.sort(Nt).reduce(function(i,o){return o.isScope?i.push.apply(i,o.content):i.push(o.content),i},[]).concat(t)},Kt=function(e,t){t=t||{};var n;return t.getShadowRoot?n=$e([e],t.includeContainer,{filter:se.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:_t}):n=Oe(e,t.includeContainer,se.bind(null,t)),Mt(n)},Vt=function(e,t){t=t||{};var n;return t.getShadowRoot?n=$e([e],t.includeContainer,{filter:Q.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):n=Oe(e,t.includeContainer,Q.bind(null,t)),n},W=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return $.call(e,Y)===!1?!1:se(t,e)},jt=ke.concat("iframe").join(","),ye=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return $.call(e,jt)===!1?!1:Q(t,e)};/*!
5* focus-trap 7.4.0
6* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
7*/function Ee(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable})),t.push.apply(t,n)}return t}function Ce(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};
vendor: 3,748 bytes, line 7
7e%2?Ee(Object(t),!0).forEach(function(n){Gt(r,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):Ee(Object(t)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(t,n))})}return r}function Gt(r,e,t){return e=Ut(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function qt(r,e){if(typeof r!="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function Ut(r){var e=qt(r,"string");return typeof e=="symbol"?e:String(e)}var Te={activateTrap:function(e,t){if(e.length>0){var n=e[e.length-1];n!==t&&n.pause()}var i=e.indexOf(t);i===-1||e.splice(i,1),e.push(t)},deactivateTrap:function(e,t){var n=e.indexOf(t);n!==-1&&e.splice(n,1),e.length>0&&e[e.length-1].unpause()}},Wt=function(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select=="function"},Ht=function(e){return e.key==="Escape"||e.key==="Esc"||e.keyCode===27},V=function(e){return e.key==="Tab"||e.keyCode===9},Xt=function(e){return V(e)&&!e.shiftKey},Yt=function(e){return V(e)&&e.shiftKey},we=function(e){return setTimeout(e,0)},Se=function(e,t){var n=-1;return e.every(function(i,o){return t(i)?(n=o,!1):!0}),n},_=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return typeof e=="function"?e.apply(void 0,n):e},H=function(e){return e.target.shadowRoot&&typeof e.composedPath=="function"?e.composedPath()[0]:e.target},Zt=[],Jt=function(e,t){var n=t?.document||document,i=t?.trapStack||Zt,o=Ce({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:Xt,isKeyBackward:Yt},t),a={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0},f,u=function(s,l,c){return s&&s[l]!==void 0?s[l]:o[c||l]},p=function(s){return a.containerGroups.findIndex(function(l){var c=l.container,m=l.tabbableNodes;return c.contains(s)||m.find(function(C){return C===s})})},b=function(s){var l=o[s];if(typeof l=="function"){for(var c=arguments.length,m=new Array(c>1?c-1:0),C=1;C<c;C++)m[C-1]=arguments[C];l=l.apply(void 0,m)}if(l===!0&&(l=void 0),!l){if(l===void 0||l===!1)return l;throw new Error("`".concat(s,"` was specified but was not a node, or did not return a node"))}var T=l;if(typeof l=="string"&&(T=n.querySelector(l),!T))throw new Error("`".concat(s,"` as selector refers to no known node"));return T},h=function(){var s=b("initialFocus");if(s===!1)return!1;if(s===void 0)if(p(n.activeElement)>=0)s=n.activeElement;else{var l=a.tabbableGroups[0],c=l&&l.firstTabbableNode;s=c||b("fallbackFocus")}if(!s)throw new Error("Your focus-trap needs to have at least one focusable element");return s},v=function(){if(a.containerGroups=a.containers.map(function(s){var l=Kt(s,o.tabbableOptions),c=Vt(s,o.tabbableOptions);return{container:s,tabbableNodes:l,focusableNodes:c,firstTabbableNode:l.length>0?l[0]:null,lastTabbableNode:l.length>0?l[l.length-1]:null,nextTabbableNode:function(C){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,S=c.findIndex(function(I){return I===C});if(!(S<0))return T?c.slice(S+1).find(function(I){return W(I,o.tabbableOptions)}):c.slice(0,S).reverse().find(function(I){return W(I,o.tabbableOptions)})}}}),a.tabbableGroups=a.containerGroups.filter(function(s){return s.tabbableNodes.length>0}),a.tabbableGroups.length<=0&&!b("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times")}
7,d=function w(s){if(s!==!1&&s!==n.activeElement){if(!s||!s.focus){w(h());return}s.focus({preventScroll:!!o.preventScroll}),a.mostRecentlyFocusedNode=s,Wt(s)&&s.select()}},g=function(s){var l=b("setReturnFocus",s);return l||(l===!1?!1:s)},y=function(s){var l=H(s);if(!(p(l)>=0)){if(_(o.clickOutsideDeactivates,s)){f.deactivate({returnFocus:o.returnFocusOnDeactivate});return}_(o.allowOutsideClick,s)||s.preventDefault()}},F=function(s){var l=H(s),c=p(l)>=0;c||l instanceof Document?c&&(a.mostRecentlyFocusedNode=l):(s.stopImmediatePropagation(),d(a.mostRecentlyFocusedNode||h()))},L=function(s){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,c=H(s);v();var m=null;if(a.tabbableGroups.length>0){var C=p(c),T=C>=0?a.containerGroups[C]:void 0;if(C<0)l?m=a.tabbableGroups[a.tabbableGroups.length-1].lastTabbableNode:m=a.tabbableGroups[0].firstTabbableNode;else if(l){var S=Se(a.tabbableGroups,function(z){var ee=z.firstTabbableNode;return c===ee});if(S<0&&(T.container===c||ye(c,o.tabbableOptions)&&!W(c,o.tabbableOptions)&&!T.nextTabbableNode(c,!1))&&(S=C),S>=0){var I=S===0?a.tabbableGroups.length-1:S-1,Be=a.tabbableGroups[I];m=Be.lastTabbableNode}else V(s)||(m=T.nextTabbableNode(c,!1))}else{var R=Se(a.tabbableGroups,function(z){var ee=z.lastTabbableNode;return c===ee});if(R<0&&(T.container===c||ye(c,o.tabbableOptions)&&!W(c,o.tabbableOptions)&&!T.nextTabbableNode(c))&&(R=C),R>=0){var _e=R===a.tabbableGroups.length-1?0:R+1,Me=a.tabbableGroups[_e];m=Me.firstTabbableNode}else V(s)||(m=T.nextTabbableNode(c))}}else m=b("fallbackFocus");m&&(V(s)&&s.preventDefault(),d(m))},A=function(s){if(Ht(s)&&_(o.escapeDeactivates,s)!==!1){s.preventDefault(),f.deactivate();return}(o.isKeyForward(s)||o.isKeyBackward(s))&&L(s,o.isKeyBackward(s))},j=function(s){var l=H(s);p(l)>=0||_(o.clickOutsideDeactivates,s)||_(o.allowOutsideClick,s)||(s.preventDefault(),s.stopImmediatePropagation())},D=function(){if(a.active)return Te.activateTrap(i,f),a.delayInitialFocusTimer=o.delayInitialFocus?we(function(){d(h())}):d(h()),n.addEventListener("focusin",F,!0),n.addEventListener("mousedown",y,{capture:!0,passive:!1}),n.addEventListener("touchstart",y,{capture:!0,passive:!1}),n.addEventListener("click",j,{capture:!0,passive:!1}),n.addEventListener("keydown",A,{capture:!0,passive:!1}),f},G=function(){if(a.active)return n.removeEventListener("focusin",F,!0),n.removeEventListener("mousedown",y,!0),n.removeEventListener("touchstart",y,!0),n.removeEventListener("click",j,!0),n.removeEventListener("keydown",A,!0),f};return f={get active(){return a.active},get paused(){return a.paused},activate:function(s){if(a.active)return this;var l=u(s,"onActivate"),c=u(s,"onPostActivate"),m=u(s,"checkCanFocusTrap");m||v(),a.active=!0,a.paused=!1,a.nodeFocusedBeforeActivation=n.activeElement,l?.();var C=function(){m&&v(),D(),c?.()};return m?(m(a.containers.concat()).then(C,C),this):(C(),this)},deactivate:function(s){if(!a.active)return this;var l=Ce({onDeactivate:o.onDeactivate,onPostDeactivate:o.onPostDeactivate,checkCanReturnFocus:o.checkCanReturnFocus},s);clearTimeout(a.delayInitialFocusTimer),a.delayInitialFocusTimer=void 0,G(),a.active=!1,a.paused=!1,Te.deactivateTrap(i,f);var c=u(l,"onDeactivate"),m=u(l,"onPostDeactivate"),C=u(l,"checkCanReturnFocus"),T=u(l,"returnFocus","returnFocusOnDeactivate");c?.();var S=function(){we(function(){T&&d(g(a.nodeFocusedBeforeActivation)),m?.()})};return T&&C?(C(g(a.nodeFocusedBeforeActivation)).then(S,S),this):(S(),this)},pause:function(s){if(a.paused||!a.active)return this;var l=u(s,"onPause"),c=u(s,"onPostPause");return a.paused=!0,l?.(),G(),c?.(),this},unpause:function(s){if(!a.paused||!a.active)return this;var l=u(s,"onUnpause"),c=u(s,"onPostUnpause");return a.paused=!1,l?.(),v(),D(),c?.(),this},updateContainerElements:function(s){var l=[].concat(s).filter(Boolean);return a.containers=l.map(function(c){return typeof c=="string"?n.querySelector(c):c}),a.active&&v(),this}},f.updateContainerElements(e),f};function Qt(r){const e=et(r);return tt({id:"dialog",initial:e.defaultOpen?"open":"closed",context:{role:"dialog",renderedElements:{title:!0,description:!0}
7,modal:!0,trapFocus:!0,preventScroll:!0,closeOnOutsideClick:!0,closeOnEsc:!0,restoreFocus:!0,...e},states:{open:{entry:["checkRenderedElements"],activities:["trackDismissableElement","trapFocus","preventScroll","hideContentBelow"],on:{CLOSE:{target:"closed",actions:["invokeOnClose"]},TOGGLE:{target:"closed",actions:["invokeOnClose"]}}},closed:{on:{OPEN:{target:"open",actions:["invokeOnOpen"]},TOGGLE:{target:"open",actions:["invokeOnOpen"]}}}}},{activities:{trackDismissableElement(t,n,{send:i}){let o;return re(()=>{o=nt(E.getContentEl(t),{pointerBlocking:t.modal,exclude:[E.getTriggerEl(t)],onDismiss:()=>i({type:"CLOSE",src:"interact-outside"}),onEscapeKeyDown(a){t.closeOnEsc?i({type:"CLOSE",src:"escape-key"}):a.preventDefault(),t.onEsc?.()},onPointerDownOutside(a){t.closeOnOutsideClick||a.preventDefault(),t.onOutsideClick?.()}})}),()=>o?.()},preventScroll(t){if(t.preventScroll)return xt(E.getDoc(t))},trapFocus(t){if(!t.trapFocus)return;let n;return re(()=>{const i=E.getContentEl(t);if(i){n=Jt(i,{document:E.getDoc(t),escapeDeactivates:!1,fallbackFocus:i,allowOutsideClick:!0,returnFocusOnDeactivate:t.restoreFocus,initialFocus:be(t.initialFocusEl),setReturnFocus:be(t.finalFocusEl)});try{n.activate()}catch{}}}),()=>n?.deactivate()},hideContentBelow(t){if(!t.modal)return;let n;return re(()=>{n=wt([E.getContainerEl(t)])}),()=>n?.()}},actions:{checkRenderedElements(t){rt(()=>{t.renderedElements.title=!!E.getTitleEl(t),t.renderedElements.description=!!E.getDescriptionEl(t)})},invokeOnClose(t){t.onClose?.()},invokeOnOpen(t){t.onOpen?.()}}})}var zt=()=>{},Fe=(r,e)=>e();function er(r,e){const t=te(r),n=t?[t]:[],{onEnter:i=Fe,onExit:o=Fe}=e,[a,f]=M(e.appear?[]:n),[u]=qe();let p,b=!1;function h(g,y){if(!g)return y&&y();b=!0,o(g,()=>{ve(()=>{b=!1,f(F=>F.filter(L=>L!==g)),y&&y()})})}function v(g){const y=p;if(!y)return g&&g();p=void 0,f(F=>[y,...F]),i(y,g??zt)}const d=e.mode==="out-in"?g=>b||h(g,v):e.mode==="in-out"?g=>v(()=>h(g)):g=>{v(),h(g)};return Ge(g=>{const y=r();return te(u)?(u(),g):(y!==g&&(p=y,ve(()=>te(()=>d(g)))),y)},e.appear?void 0:t),a}var xe=r=>r instanceof Element;function le(r,e){if(e(r))return r;if(typeof r=="function"&&!r.length)return le(r(),e);if(Array.isArray(r))for(const t of r){const n=le(t,e);if(n)return n}return null}function tr(r,e=xe,t=xe){const n=X(r);return X(()=>le(n(),e))}function rr(r){return X(()=>{const e=r.name||"s";
7return{enterActiveClasses:(r.enterActiveClass||e+"-enter-active").split(" "),enterClasses:(r.enterClass||e+"-enter").split(" "),enterToClasses:(r.enterToClass||e+"-enter-to").split(" "),exitActiveClasses:(r.exitActiveClass||e+"-exit-active").split(" "),exitClasses:(r.exitClass||e+"-exit").split(" "),exitToClasses:(r.exitToClass||e+"-exit-to").split(" "),moveClasses:(r.moveClass||e+"-move").split(" ")}})}function Re(r){requestAnimationFrame(()=>requestAnimationFrame(r))}function nr(r,e,t,n){const{enterClasses:i,enterActiveClasses:o,enterToClasses:a}=r,{onBeforeEnter:f,onEnter:u,onAfterEnter:p}=e;f?.(t),t.classList.add(...i),t.classList.add(...o),queueMicrotask(()=>{if(!t.parentNode)return n?.();u?.(t,()=>b())}),Re(()=>{t.classList.remove(...i),t.classList.add(...a),(!u||u.length<2)&&(t.addEventListener("transitionend",b),t.addEventListener("animationend",b))});function b(h){(!h||h.target===t)&&(n?.(),t.removeEventListener("transitionend",b),t.removeEventListener("animationend",b),t.classList.remove(...o),t.classList.remove(...a),p?.(t))}}function ar(r,e,t,n){const{exitClasses:i,exitActiveClasses:o,exitToClasses:a}=r,{onBeforeExit:f,onExit:u,onAfterExit:p}=e;if(!t.parentNode)return n?.();f?.(t),t.classList.add(...i),t.classList.add(...o),u?.(t,()=>b()),Re(()=>{t.classList.remove(...i),t.classList.add(...a),(!u||u.length<2)&&(t.addEventListener("transitionend",b),t.addEventListener("animationend",b))});function b(h){(!h||h.target===t)&&(n?.(),t.removeEventListener("transitionend",b),t.removeEventListener("animationend",b),t.classList.remove(...o),t.classList.remove(...a),p?.(t))}}var ir={inout:"in-out",outin:"out-in"},or=r=>{const e=rr(r);return er(tr(()=>r.children),{mode:ir[r.mode],appear:r.appear,onEnter(t,n){nr(e(),r,t,n)},onExit(t,n){ar(e(),r,t,n)}})};const sr=k("<div>"),lr=k('<div class="fixed inset-0 z-20 fcc"><!#><!/><div><div><button><div i-carbon-close class="text-xl"></div></button><!#><!/>'),ie=r=>{const[e,t]=at(Qt({id:Ue(),closeOnOutsideClick:!1})),n=X(()=>Tt(e,t,it)),i={top:"absolute top-0 left-0 right-0 border-b rounded-b-xl sm:relative sm:w-[400px] sm:max-h-[60vh] sm:border sm:rounded-lg",bottom:"absolute bottom-0 left-0 right-0 border-t rounded-t-xl pb-[env(safe-area-inset-bottom)] sm:relative sm:w-[400px] sm:max-h-[60vh] sm:pb-0 sm:border sm:rounded-lg",left:"absolute top-0 left-0 bottom-0 border-r pb-[env(safe-area-inset-bottom)]",right:"absolute top-0 right-0 bottom-0 border-l pb-[env(safe-area-inset-bottom)]"}[r.direction];return r.bindValue.subscribe(o=>{o?n().open():n().close()}),x(or,{get name(){return`slide-${r.direction}`},get children(){return x(We,{get when(){return n().isOpen},get children(){const o=P(lr),a=o.firstChild,[f,u]=oe(a.nextSibling),p=f.nextSibling,b=p.firstChild,h=b.firstChild,v=h.nextSibling,[d,g]=oe(v.nextSibling);return N(o,x(He,{get children(){const y=P(sr);return q(y,U(()=>n().backdropProps,{class:"fixed inset-0 bg-base opacity-60"}),!1,!1),K(),y}}),f,u),q(p,U(()=>n().containerProps),!1,!0),q(b,U(()=>n().contentProps,{class:`bg-base-100 transition-transform ease-out max-w-screen max-h-screen overflow-auto border-base ${i}`}),!1,!0),q(h,U(()=>n().closeTriggerProps,{get class(){return`absolute p-1 rounded-md top-4 right-4 hv-base hv-foreground ${r.closeBtnClass||""}`}}),!1,!0),N(b,()=>r.children,d,g),K(),o}})}})},cr=k('<div class="w-[70vw] max-w-[300px] h-full">'),ur=k('<div class="w-screen sm:w-[70vw] sm:max-w-[300px] h-full">'),dr=k('<div class="max-h-[70vh] w-full">'),yr=()=>[x(ie,{bindValue:Xe,direction:"left",get children(){const r=P(cr);return N(r,x(Ze,{})),r}}),x(ie,{bindValue:Ye,direction:"right",get children(){const r=P(ur);return N(r,x(ot,{})),r}}),x(ie,{bindValue:Ie,direction:"bottom",closeBtnClass:"top-6 right-6",get children(){const r=P(dr);return N(r,x(Et,{})),r}})];export{yr as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.