1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,79474,(e,t,n)=>{"use strict";var r=e.r(71645).__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;n.c=function(e){return r.H.useMemoCache(e)}},932,(e,t,n)=>{"use strict";t.exports=e.r(79474)},34537,e=>{"use strict";var t,n,r=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,i=(t=function(e){return r.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&91>e.charCodeAt(2)},n=Object.create(null),function(e){return void 0===n[e]&&(n[e]=t(e)),n[e]});e.s(["default",0,i],34537)},78804,(e,t,n)=>{"use strict";var r=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),u=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),g=Symbol.for("react.view_transition"),m=Symbol.for("react.client.reference");function y(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case o:case a:case s:case c:case h:case g:return e;default:switch(e=e&&e.$$typeof){case u:case d:case p:case f:case l:return e;default:return t}}case i:return t}}}n.ContextConsumer=l,n.ContextProvider=u,n.Element=r,n.ForwardRef=d,n.Fragment=o,n.Lazy=p,n.Memo=f,n.Portal=i,n.Profiler=a,n.StrictMode=s,n.Suspense=c,n.SuspenseList=h,n.isContextConsumer=function(e){return y(e)===l},n.isContextProvider=function(e){return y(e)===u},n.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},n.isForwardRef=function(e){return y(e)===d},n.isFragment=function(e){return y(e)===o},n.isLazy=function(e){return y(e)===p},n.isMemo=function(e){return y(e)===f},n.isPortal=function(e){return y(e)===i},n.isProfiler=function(e){return y(e)===a},n.isStrictMode=function(e){return y(e)===s},n.isSuspense=function(e){return y(e)===c},n.isSuspenseList=function(e){return y(e)===h},n.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===a||e===s||e===c||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===p||e.$$typeof===f||e.$$typeof===u||e.$$typeof===l||e.$$typeof===d||e.$$typeof===m||void 0!==e.getModuleId)||!1},n.typeOf=y},79684,(e,t,n)=>{"use strict";
1t.exports=e.r(78804)},50724,(e,t,n)=>{t.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},36536,3871,48876,34388,9820,49253,54975,22834,29122,49520,1328,81283,56414,18998,89964,66283,89740,62966,89955,23694,e=>{"use strict";let t,n,r,i,o,s,a,l="u">typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),u=new Uint8Array(16),d=[];for(let e=0;e<256;++e)d.push((e+256).toString(16).slice(1));let c=function(e,n,r){if(l&&!n&&!e)return l();var i=e,o=r;let s=(i=i||{}).random??i.rng?.()??function(){if(!t){if("u"<typeof crypto||!crypto.getRandomValues)throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");t=crypto.getRandomValues.bind(crypto)}return t(u)}();if(s.length<16)throw Error("Random bytes length must be >= 16");if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,n){if((o=o||0)<0||o+16>n.length)throw RangeError(`UUID byte range ${o}:${o+15} is out of buffer bounds`);for(let e=0;e<16;++e)n[o+e]=s[e];return n}return function(e,t=0){return(d[e[t+0]]+d[e[t+1]]+d[e[t+2]]+d[e[t+3]]+"-"+d[e[t+4]]+d[e[t+5]]+"-"+d[e[t+6]]+d[e[t+7]]+"-"+d[e[t+8]]+d[e[t+9]]+"-"+d[e[t+10]]+d[e[t+11]]+d[e[t+12]]+d[e[t+13]]+d[e[t+14]]+d[e[t+15]]).toLowerCase()}(s)};class h{constructor(e){this._process=e,this._active=!1,this._current=null,this._last=null}start(){this._active=!0,this.flush()}clear(){this._current&&(this._current.next=null,this._last=this._current)}enqueue(e){let t={value:e,next:null};if(this._current){this._last.next=t,this._last=t;return}this._current=t,this._last=t,this._active&&this.flush()}flush(){for(;this._current;){let e=this._current;this._process(e.value),this._current=e.next}this._last=null}}let f="xstate.init",p="xstate.error",g="xstate.stop";function m(e,t){return{type:`xstate.done.state.${e}`,output:t}}function y(e,t){return{type:`xstate.error.actor.${e}`,error:t,actorId:e}}function v(e){return{type:f,input:e}}function w(e){setTimeout(()=>{throw e})}let b="function"==typeof Symbol&&Symbol.observable||"@@observable";function x(e){if(L(e))return e;let t=[],n="";for(let r=0;r<e.length;r++){switch(e.charCodeAt(r)){case 92:n+=e[r+1],r++;continue;case 46:t.push(n),n="";continue}n+=e[r]}return t.push(n),t}function C(e){var t;return(t=e)&&"object"==typeof t&&"machine"in t&&"value"in t?e.value:"string"!=typeof e?e:function(e){if(1===e.length)return e[0];let t={},n=t;for(let t=0;t<e.length-1;t++)if(t===e.length-2)n[e[t]]=e[t+1];else{let r=n;n={},r[e[t]]=n}return t}(x(e))}function k(e,t){let n={},r=Object.keys(e);for(let i=0;i<r.length;i++){let o=r[i];n[o]=t(e[o],o,e,i)}return n}function j(e){var t;return void 0===e?[]:L(t=e)?t:[t]}function M(e,t,n,r){return"function"==typeof e?e({context:t,event:n,self:r}):e}function L(e){return Array.isArray(e)}function S(e){var t;return(L(t=e)?t:[t]).map(e=>void 0===e||"string"==typeof e?{target:e}:e)}function E(e){if(void 0!==e&&""!==e)return j(e)}function R(e,t,n){let r="object"==typeof e,i=r?e:void 0;return{next:(r?e.next:e)?.bind(i),error:(r?e.error:t)?.bind(i),complete:(r?e.complete:n)?.bind(i)}}function V(e,t){return`${t}.${e}`}function _(e,t){let n=t.match(/^xstate\.invoke\.(\d+)\.(.*)/);if(!n)return e.implementations.actors[t];let[,r,i]=n,o=e.getStateNodeById(i).config.invoke;return(Array.isArray(o)?o[r]:o).src}function $(e,t){if(t===e||"*"===t)return!0;if(!t.endsWith(".*"))return!1;let n=t.split("."),r=e.split(".");for(let e=0;e<n.length;e++){let t=n[e],i=r[e];if("*"===t)return e===n.length-1;if(t!==i)return!1}return!0}function A(e,t){return`${e.sessionId}.${t}`}let T=0,H=!1,I=((tp={})[tp.NotStarted=0]="NotStarted",tp[tp.Running=1]="Running",tp[tp.Stopped=2]="Stopped",tp),P={clock:{setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e)},logger:console.log.bind(console),devTools:!1};class O{constructor(e,t){this.logic=e,this._snapshot=void 0,this.clock=void 0,this.options=void 0,this.id=void 0,this.mailbox=new h(this._process.bind(this)),this.observers=new Set,this.eventListeners=new Map,this.logger=void 0,this._processingStatus=I.NotStarted,this._parent=void 0,this._syncSnapshot=void 0,this.ref=void 0,this._actorScope=void 0,this.systemId=void 0,this.sessionId=void 0,this.system=void 0,this._doneEvent=void 0,this.src=void 0,this._deferred=[];const n={...P,...t},{clock:r,logger:i,parent:o,syncSnapshot:s,id:a,systemId:l,inspect:u}=n;this.system=o?o.system:function(e,t){let n=new Map,r=new Map,i=new WeakMap,o=new Set,s={},{clock:a,logger:l}=t,u={schedule:(e,t,n,r,i=Math.random().toString(36).slice(2))=>{let o={source:e,target:t,event:n,delay:r,id:i,startedAt:Date.now()},l=A(e,i);d._snapshot._scheduledEvents[l]=o;let u=a.setTimeout(()=>{delete s[l],delete d._snapshot._scheduledEvents[l],d._relay(e,t,n)},r);s[l]=u},cancel:(e,t)=>
1{let n=A(e,t),r=s[n];delete s[n],delete d._snapshot._scheduledEvents[n],void 0!==r&&a.clearTimeout(r)},cancelAll:e=>{for(let t in d._snapshot._scheduledEvents){let n=d._snapshot._scheduledEvents[t];n.source===e&&u.cancel(e,n.id)}}},d={_snapshot:{_scheduledEvents:(t?.snapshot&&t.snapshot.scheduler)??{}},_bookId:()=>`x:${T++}`,_register:(e,t)=>(n.set(e,t),e),_unregister:e=>{n.delete(e.sessionId);let t=i.get(e);void 0!==t&&(r.delete(t),i.delete(e))},get:e=>r.get(e),getAll:()=>Object.fromEntries(r.entries()),_set:(e,t)=>{let n=r.get(e);if(n&&n!==t)throw Error(`Actor with system ID '${e}' already exists.`);r.set(e,t),i.set(t,e)},inspect:e=>{let t=R(e);return o.add(t),{unsubscribe(){o.delete(t)}}},_sendInspectionEvent:t=>{if(!o.size)return;let n={...t,rootId:e.sessionId};o.forEach(e=>e.next?.(n))},_relay:(e,t,n)=>{d._sendInspectionEvent({type:"@xstate.event",sourceRef:e,actorRef:t,event:n}),t._send(n)},scheduler:u,getSnapshot:()=>({_scheduledEvents:{...d._snapshot._scheduledEvents}}),start:()=>{let e=d._snapshot._scheduledEvents;for(let t in d._snapshot._scheduledEvents={},e){let{source:n,target:r,event:i,delay:o,id:s}=e[t];u.schedule(n,r,i,o,s)}},_clock:a,_logger:l};return d}(this,{clock:r,logger:i}),u&&!o&&this.system.inspect(R(u)),this.sessionId=this.system._bookId(),this.id=a??this.sessionId,this.logger=t?.logger??this.system._logger,this.clock=t?.clock??this.system._clock,this._parent=o,this._syncSnapshot=s,this.options=n,this.src=n.src??e,this.ref=this,this._actorScope={self:this,id:this.id,sessionId:this.sessionId,logger:this.logger,defer:e=>{this._deferred.push(e)},system:this.system,stopChild:e=>{if(e._parent!==this)throw Error(`Cannot stop child actor ${e.id} of ${this.id} because it is not a child`);e._stop()},emit:e=>{let t=this.eventListeners.get(e.type),n=this.eventListeners.get("*");if(t||n)for(let r of[...t?t.values():[],...n?n.values():[]])try{r(e)}catch(e){w(e)}},actionExecutor:e=>{let t=()=>{if(this._actorScope.system._sendInspectionEvent({type:"@xstate.action",actorRef:this,action:{type:e.type,params:e.params}}),!e.exec)return;let t=H;try{H=!0,e.exec(e.info,e.params)}finally{H=t}};this._processingStatus===I.Running?t():this._deferred.push(t)}},this.send=this.send.bind(this),this.system._sendInspectionEvent({type:"@xstate.actor",actorRef:this}),l&&(this.systemId=l,this.system._set(l,this)),this._initState(t?.snapshot??t?.state),l&&"active"!==this._snapshot.status&&this.system._unregister(this)}_initState(e){try{this._snapshot=e?this.logic.restoreSnapshot?this.logic.restoreSnapshot(e,this._actorScope):e:this.logic.getInitialSnapshot(this._actorScope,this.options?.input)}catch(e){this._snapshot={status:"error",output:void 0,error:e}}}update(e,t){let n;for(this._snapshot=e;n=this._deferred.shift();)try{n()}catch(t){this._deferred.length=0,this._snapshot={...e,status:"error",error:t}}switch(this._snapshot.status){case"active":for(let t of this.observers)try{t.next?.(e)}catch(e){w(e)}break;case"done":var r;for(let t of this.observers)try{t.next?.(e)}catch(e){w(e)}this._stopProcedure(),this._complete(),this._doneEvent=(r=this.id,{type:`xstate.done.actor.${r}`,output:this._snapshot.output,actorId:r}),this._parent&&this.system._relay(this,this._parent,this._doneEvent);break;case"error":this._error(this._snapshot.error)}this.system._sendInspectionEvent({type:"@xstate.snapshot",actorRef:this,event:t,snapshot:e})}subscribe(e,t,n){let r=R(e,t,n);if(this._processingStatus!==I.Stopped)this.observers.add(r);else switch(this._snapshot.status){case"done":try{r.complete?.()}catch(e){w(e)}break;case"error":{let e=this._snapshot.error;if(r.error)try{r.error(e)}catch(e){w(e)}else w(e)}}return{unsubscribe:()=>{this.observers.delete(r)}}}on(e,t){let n=this.eventListeners.get(e);n||(n=new Set,this.eventListeners.set(e,n));let r=t.bind(void 0);return n.add(r),{unsubscribe:()=>{n.delete(r)}}}select(e,t=Object.is){return{subscribe:n=>{let r=R(n),i=e(this.getSnapshot());return this.subscribe(n=>{let o=e(n);t(i,o)||(i=o,r.next?.(o))})},get:()=>e(this.getSnapshot())}}start(){if(this._processingStatus===I.Running)return this;this._syncSnapshot&&this.subscribe({next:e=>{"active"===e.status&&this.system._relay(this,this._parent,{type:`xstate.snapshot.${this.id}`,snapshot:e})},error:()=>{}}),this.system._register(this.sessionId,this),this.systemId&&this.system._set(this.systemId,this),this._processingStatus=I.Running;let e=v(this.options.input);switch(this.system._sendInspectionEvent({type:"@xstate.event",sourceRef:this._parent,actorRef:this,event:e}),this._snapshot.status){case"done":return this.update(this._snapshot,e),this;case"error":return this._error(this._snapshot.error),this}if(this._parent||this.system.start(),this.logic.start)try{this.logic.start(this._snapshot,this._actorScope)}catch(e){return this._snapshot={...this._snapshot,status:"error",error:e},this._error(e),this}return this.update(this._snapshot,e),this.options.devTools&&this.attachDevTools(),this.mailbox.start(),this}_process(e){let t,n;try{t=this.logic.transition(this._snapshot,e,this._actorScope)}catch(e){n={err:e}}if(n){let{err:e}=n;this._snapshot={...this._snapshot,status:"error",error:e},this._error(e);return}this.update(t,e),e.type===g&&(this._stopProcedure(),this._complete())}_stop(){return this._processingStatus===I.Stopped||((this.mailbox.clear(),this._processingStatus===I.NotStarted)?this._processingStatus=I.Stopped:this.mailbox.enqueue({type:g})),this}stop(){if(this._parent)throw Error("A non-root actor cannot be stopped directly.");return this._stop()}_complete(){for(let e of this.observers)try{e.complete?.()}catch(e){w(e)}this.observers.clear(),this.eventListeners.clear()}_reportError(e){if(!this.observers.size){this._parent||w(e),this.eventListeners.clear();return}let t=!1;for(let n of this.observers){let r=n.error;t||=!r;try{r?.(e)}catch(e){w(e)}}this.observers.clear(),this.eventListeners.clear(),t&&w(e)}_error(e){this._stopProcedure(),this._reportError(e),this._parent&&this.system._relay(this,this._parent,y(this.id,e))}_stopProcedure(){return this._processingStatus!==I.Running||(this.system.scheduler.cancelAll(this),this.mailbox.clear(),this.mailbox=new h(this._process.bind(this)),this._processingStatus=I.Stopped,this.system._unregister(this)),this}_send(e){this._processingStatus!==I.Stopped&&this.mailbox.enqueue(e)}send(e){this.system._relay(void 0,this,e)}attachDevTools(){let{devTools:t}=this.options;t&&("function"==typeof t?t:t=>{if("u"<typeof window)return;let n=function(){let t="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:e.g;if(t.__xstate__)return t.__xstate__}();n&&n.register(t)})(this)}toJSON(){return{xstate$$type:1,id:this.id}}getPersistedSnapshot(e){return this.logic.getPersistedSnapshot(this._snapshot,e)}[b](){return this}getSnapshot(){return this._snapshot}}function B(e,...[t]){return new O(e,t)}function N(e,t,n,r,{sendId:i}){return[t,{sendId:"function"==typeof i?i(n,r):i},void 0]}function W(e,t){e.defer(()=>{e.system.scheduler.cancel(e.self,t.sendId)})}function z(e){function t(e,t){}return t.type="xstate.cancel",t.sendId=e,t.resolve=N,t.execute=W,t}function D(e,t,n,r,{id:i,systemId:o,src:s,input:a,syncSnapshot:l}){let u,d,c="string"==typeof s?_(t.machine,s):s,h="function"==typeof i?i(n):i;return c&&(d="function"==typeof a?a({context:t.context,event:n.event,self:e.self}):a,u=B(c,{id:h,src:s,parent:e.self,syncSnapshot:l,systemId:o,input:d})),[eB(t,{children:{...t.children,[h]:u}}),{id:i,systemId:o,actorRef:u,src:s,input:d},void 0]}function F(e,{actorRef:t}){t&&e.defer(()=>{t._processingStatus!==I.Stopped&&t.start()})}function Z(...[e,{id:t,systemId:n,input:r,syncSnapshot:i=!1}={}]){function o(e,t){}return o.type="xstate.spawnChild",o.id=t,o.systemId=n,o.src=e,o.input=r,o.syncSnapshot=i,o.resolve=D,o.execute=F,o}function U(e,t,n,r,{actorRef:i}){let o="function"==typeof i?i(n,r):i,s="string"==typeof o?t.children[o]:o,a=t.children;return s&&(a={...a},delete a[s.id]),[eB(t,{children:a}),s,void 0]}function q(e,t){if(t){if(!function e(t,n){let r=n.getSnapshot();if(r&&"children"in r)for(let n of Object.values(r.children))e(t,n);t.system._unregister(n)}(e,t),t._processingStatus!==I.Running)return void e.stopChild(t);e.defer(()=>{e.stopChild(t)})}}function G(e){function t(e,t){}return t.type="xstate.stopChild",t.actorRef=e,t.resolve=U,t.execute=q,t}function Y(e,{context:t,event:n},{guards:r}){return r.every(r=>X(r,t,n,e))}function X(e,t,n,r){let{machine:i}=r,o="function"==typeof e,s=o?e:i.implementations.guards["string"==typeof e?e:e.type];if(!o&&!s)throw Error(`Guard '${"string"==typeof e?e:e.type}' is not implemented.'.`);if("function"!=typeof s)return X(s,t,n,r);let a={context:t,event:n},l=o||"string"==typeof e?void 0:"params"in e?"function"==typeof e.params?e.params({context:t,event:n}):e.params:void 0;return"check"in s?s.check(r,a,s):s(a,l)}function K(e){return"atomic"===e.type||"final"===e.type}function J(e){return Object.values(e.states).filter(e=>"history"!==e.type)}function Q(e,t){let n=[];if(t===e)return n;let r=e.parent;for(;r&&r!==t;)n.push(r),r=r.parent;return n}function ee(e){let t=new Set(e),n=et(t);for(let e of t)if("compound"!==e.type||n.get(e)&&n.get(e).length){if("parallel"===e.type){for(let n of J(e))if("history"!==n.type&&!t.has(n))for(let e of ef(n))t.add(e)}}
1else ef(e).forEach(e=>t.add(e));for(let e of t){let n=e.parent;for(;n;)t.add(n),n=n.parent}return t}function et(e){let t=new Map;for(let n of e)t.has(n)||t.set(n,[]),n.parent&&(t.has(n.parent)||t.set(n.parent,[]),t.get(n.parent).push(n));return t}function en(e,t){return function e(t,n){let r=n.get(t);if(!r)return{};if("compound"===t.type){let e=r[0];if(!e)return{};if(K(e))return e.key}let i={};for(let t of r)i[t.key]=e(t,n);return i}(e,et(ee(t)))}function er(e,t){return"compound"===t.type?J(t).some(t=>"final"===t.type&&e.has(t)):"parallel"===t.type?J(t).every(t=>er(e,t)):"final"===t.type}let ei=e=>"#"===e[0];function eo(e,t){return e.transitions.get(t)||[...e.transitions.keys()].filter(e=>$(t,e)).sort((e,t)=>t.length-e.length).flatMap(t=>e.transitions.get(t))}function es(e){let t=e.config.after;return t?Object.keys(t).flatMap(n=>{var r;let i,o,s=t[n],a=Number.isNaN(+n)?n:+n,l=(r=e.id,o=(i={type:`xstate.after.${a}.${r}`}).type,e.entry.push(eD(i,{id:o,delay:a})),e.exit.push(z(o)),o);return j("string"==typeof s?{target:s}:s).map(e=>({...e,event:l,delay:a}))}).map(t=>{let{delay:n}=t;return{...ea(e,t.event,t),delay:n}}):[]}function ea(e,t,n){let r=E(n.target),i=n.reenter??!1,o=function(e,t){if(void 0!==t)return t.map(t=>{if("string"!=typeof t)return t;if(ei(t))return e.machine.getStateNodeById(t);let n="."===t[0];if(n&&!e.parent)return em(e,t.slice(1));let r=n?e.key+t:t;if(e.parent)try{return em(e.parent,r)}catch(t){throw Error(`Invalid transition definition for state node '${e.id}': 2${t.message}`)}throw Error(`Invalid target: "${t}" is not a valid target from the root node. Did you mean ".${t}"?`)})}(e,r),s={...n,actions:j(n.actions),guard:n.guard,target:o,source:e,reenter
2:i,eventType:t,toJSON:()=>({...s,source:`#${e.id}`,target:o?o.map(e=>`#${e.id}`):void 0})};return s}function el(e){let t=new Map;if(e.config.on)for(let n of Object.keys(e.config.on)){if(""===n)throw Error('Null events ("") cannot be specified as a transition key. Use `always: { ... }` instead.');let r=e.config.on[n];t.set(n,S(r).map(t=>ea(e,n,t)))}if(e.config.onDone){let n=`xstate.done.state.${e.id}`;t.set(n,S(e.config.onDone).map(t=>ea(e,n,t)))}for(let n of e.invoke){if(n.onDone){let r=`xstate.done.actor.${n.id}`;t.set(r,S(n.onDone).map(t=>ea(e,r,t)))}if(n.onError){let r=`xstate.error.actor.${n.id}`;t.set(r,S(n.onError).map(t=>ea(e,r,t)))}if(n.onSnapshot){let r=`xstate.snapshot.${n.id}`;t.set(r,S(n.onSnapshot).map(t=>ea(e,r,t)))}}for(let n of e.after){let e=t.get(n.eventType);e||(e=[],t.set(n.eventType,e)),e.push(n)}return t}function eu(e){let t=[],n=r=>{Object.values(r).forEach(r=>{if(r.config.route&&r.config.id){let n=r.config.id,i=r.config.route.guard,o=({event:e})=>e.to===`#${n}`,s={...r.config.route,guard:i?function(e){function t(e,t){return!1}return t.check=Y,t.guards=e,t}([o,i]):o,target:`#${n}`};t.push(ea(e,"xstate.route",s))}r.states&&n(r.states)})};n(e.states),t.length>0&&e.transitions.set("xstate.route",t)}function ed(e,t){let n="string"==typeof t?e.states[t]:t?e.states[t.target]:void 0;if(!n&&t)throw Error(`Initial state node "${t}" not found on parent state node #${e.id}`);let r={source:e,actions:t&&"string"!=typeof t?j(t.actions):[],eventType:null,reenter:!1,target:n?[n]:[],toJSON:()=>({...r,source:`#${e.id}`,target:n?[`#${n.id}`]:[]})};return r}function ec(e){let t=E(e.config.target);return t?{target:t.map(t=>"string"==typeof t?em(e.parent,t):t)}:e.parent.initial}function eh(e){return"history"===e.type}function ef(e){let t=ep(e);for(let n of t)for(let r of Q(n,e))t.add(r);return t}function ep(e){let t=new Set;return!function e(n){if(!t.has(n)){if(t.add(n),"compound"===n.type)e(n.initial.target[0]);else if("parallel"===n.type)for(let t of J(n))e(t)}}(e),t}function eg(e,t){if(ei(t))return e.machine.getStateNodeById(t);if(!e.states)throw Error(`Unable to retrieve child state '${t}' from '${e.id}'; no child states exist.`);let n=e.states[t];if(!n)throw Error(`Child state '${t}' does not exist on '${e.id}'`);return n}function em(e,t){if("string"==typeof t&&ei(t))try{return e.machine.getStateNodeById(t)}catch{}let n=x(t).slice(),r=e;for(;n.length;){let e=n.shift();if(!e.length)break;r=eg(r,e)}return r}function ey(e,t){if("string"==typeof t){let n=e.states[t];if(!n)throw Error(`State '${t}' does not exist on '${e.id}'`);return[e,n]}let n=Object.keys(t),r=n.map(t=>eg(e,t)).filter(Boolean);return[e.machine.root,e].concat(r,n.reduce((n,r)=>{let i=eg(e,r);if(!i)return n;let o=ey(i,t[r]);return n.concat(o)},[]))}function ev(e,t,n,r){if("string"==typeof t){let i;return(i=eg(e,t).next(n,r))&&i.length?i:e.next(n,r)}if(1===Object.keys(t).length){let i,o;return(o=ev(eg(e,(i=Object.keys(t))[0]),t[i[0]],n,r))&&o.length?o:e.next(n,r)}let i=[];for(let o of Object.keys(t)){let s=t[o];if(!s)continue;let a=ev(eg(e,o),s,n,r);a&&i.push(...a)}return i.length?i:e.next(n,r)}function ew(e,t){let n=e;for(;n.parent&&n.parent!==t;)n=n.parent;return n.parent===t}function eb(e,t,n){let r=new Set;for(let i of e){let e=!1,o=new Set;for(let s of r)if(function(e,t){let n=new Set(e),r=new Set(t);for(let e of n)if(r.has(e))return!0;for(let e of r)if(n.has(e))return!0;return!1}(ek([i],t,n),ek([s],t,n)))if(ew(i.source,s.source))o.add(s);else{e=!0;break}if(!e){for(let e of o)r.delete(e);r.add(i)}}return Array.from(r)}function ex(e,t){if(!e.target)return[];let n=new Set;for(let r of e.target)if(eh(r))if(t[r.id])for(let e of t[r.id])n.add(e);else for(let e of ex(ec(r),t))n.add(e);else n.add(r);return[...n]}function eC(e,t){let n=ex(e,t);if(!n)return;if(!e.reenter&&n.every(t=>t===e.source||ew(t,e.source)))return e.source;let r=function(e){let[t,...n]=e;for(let e of Q(t,void 0))if(n.every(t=>ew(t,e)))return e}(n.concat(e.source));return r||(e.reenter?void 0:e.source.machine.root)}function ek(e,t,n){let r=new Set;for(let i of e)if(i.target?.length){let e=eC(i,n);for(let n of(i.reenter&&i.source===e&&r.add(e),t))ew(n,e)&&r.add(n)}return[...r]}function ej(e,t,n,r,i){return eM([{target:[...ep(e)],source:e,reenter
2:!0,actions:[],eventType:null,toJSON:null}],t,n,r,!0,i)}function eM(e,t,n,r,i,o){let s=[];if(!e.length)return[t,s];let a=n.actionExecutor;n.actionExecutor=e=>{s.push(e),a(e)};try{let a=new Set(t._nodes),l=t.historyValue,u=eb(e,a,l),d=t;i||([d,l]=function(e,t,n,r,i,o,s,a){let l,u=e,d=ek(r,i,o);for(let e of(d.sort((e,t)=>t.order-e.order),d))for(let t of function(e){return Object.keys(e.states).map(t=>e.states[t]).filter(e=>"history"===e.type)}(e)){let n;n="deep"===t.history?t=>K(t)&&ew(t,e):t=>t.parent===e,(l??={...o})[t.id]=Array.from(i).filter(n)}for(let e of d)u=eE(u,t,n,[...e.exit,...e.invoke.map(e=>G(e.id))],s,void 0),i.delete(e);return[u,l||o]}(d,r,n,u,a,l,o,n.actionExecutor)),d=eE(d,r,n,u.flatMap(e=>e.actions),o,void 0),d=function(e,t,n,r,i,o,s,a){let l=e,u=new Set,d=new Set;(function(e,t,n,r){for(let i of e){let e=eC(i,t);for(let o of i.target||[])!eh(o)&&(i.source!==o||i.source!==e||i.reenter)&&(r.add(o),n.add(o)),eL(o,t,n,r);for(let o of ex(i,t)){let s=Q(o,e);e?.type==="parallel"&&s.push(e),eS(r,t,n,s,!i.source.parent&&i.reenter?void 0:e)}}})(r,s,d,u),a&&d.add(e.machine.root);let c=new Set;for(let e of[...u].sort((e,t)=>e.order-t.order)){i.add(e);let r=[];for(let t of(r.push(...e.entry),e.invoke))r.push(Z(t.src,{...t,syncSnapshot:!!t.onSnapshot}));if(d.has(e)){let t=e.initial.actions;r.push(...t)}if(l=eE(l,t,n,r,o,e.invoke.map(e=>e.id)),"final"===e.type){let r=e.parent,s=r?.type==="parallel"?r:r?.parent,a=s||e;for(r?.type==="compound"&&o.push(m(r.id,void 0!==e.output?M(e.output,l.context,t,n.self):void 0));s?.type==="parallel"&&!c.has(s)&&er(i,s);)c.add(s),o.push(m(s.id)),a=s,s=s.parent;if(s)continue;l=eB(l,{status:"done",output:function(e,t,n,r,i){if(void 0===r.output)return;let o=m(i.id,void 0!==i.output&&i.parent?M(i.output,e.context,t,n.self):void 0);return M(r.output,e.context,o,n.self)}(l,t,n,l.machine.root,a)})}}return l}(d,r,n,u,a,o,l,i);let c=[...a];"done"===d.status&&(d=eE(d,r,n,c.sort((e,t)=>t.order-e.order).flatMap(e=>e.exit),o,void 0));try{if(l===t.historyValue&&function(e,t){if(e.length!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}(t._nodes,a))return[d,s];return[eB(d,{_nodes:c,historyValue:l}),s]}catch(e){throw e}}finally{n.actionExecutor=a}}function eL(e,t,n,r){var i,o,s,a;if(eh(e))if(t[e.id]){let s=t[e.id];for(let e of s)r.add(e),eL(e,t,n,r);for(let a of s){i=a,o=e.parent,eS(r,t,n,Q(i,o))}}else{let i=ec(e);for(let o of i.target)r.add(o),i===e.parent?.initial&&n.add(e.parent),eL(o,t,n,r);for(let o of i.target){s=o,a=e.parent,eS(r,t,n,Q(s,a))}}else if("compound"===e.type){let[i]=e.initial.target;eh(i)||(r.add(i),n.add(i)),eL(i,t,n,r),eS(r,t,n,Q(i,e))}else if("parallel"===e.type)for(let i of J(e).filter(e=>!eh(e)))[...r].some(e=>ew(e,i))||(eh(i)||(r.add(i),n.add(i)),eL(i,t,n,r))}function eS(e,t,n,r,i){for(let o of r)if((!i||ew(o,i))&&e.add(o),"parallel"===o.type)for(let r of J(o).filter(e=>!eh(e)))[...e].some(e=>ew(e,r))||(e.add(r),eL(r,t,n,e))}function eE(e,t,n,r,i,o){let s=o?[]:void 0,a=function e(t,n,r,i,o,s){let{machine:a}=t,l=t;for(let t of i){var u;let i="function"==typeof t,d=i?t:(u="string"==typeof t?t:t.type,a.implementations.actions[u]),c={context:l.context,event:n,self:r.self,system:r.system},h=i||"string"==typeof t?void 0:"params"in t?"function"==typeof t.params?t.params({context:l.context,event:n}):t.params:void 0;if(!d||!("resolve"in d)){r.actionExecutor({type:"string"==typeof t?t:"object"==typeof t?t.type:t.name||"(anonymous)",info:c,params:h,exec:d});continue}let[f,p,g]=d.resolve(r,l,c,h,d,o);l=f,"retryResolve"in d&&s?.push([d,p]),"execute"in d&&r.actionExecutor({type:d.type,info:c,params:p,exec:d.execute.bind(null,r,p)}),g&&(l=e(l,n,r,g,o,s))}return l}(e,t,n,r,{internalQueue:i,deferredActorIds:o},s);return s?.forEach(([e,t])=>{e.retryResolve(n,a,t)}),a}function eR(e,t,n,r){let i=e,o=[];function s(e,t,r){n.system._sendInspectionEvent({type:"@xstate.microstep",actorRef:n.self,event:t,snapshot:e[0],_transitions:r}),o.push(e)}if(t.type===g)return s([i=eB(eV(i,t,n),{status:"stopped"}),[]],t,[]),{snapshot:i,microsteps:o};let a=t;if(a.type!==f){let t=a,l=t.type.startsWith("xstate.error.actor"),u=e_(t,i);if(l&&!u.length)return s([i=eB(e,{status:"error",error:t.error}),[]],t,[]),{snapshot:i,microsteps:o};let d=eM(u,e,n,a,!1,r);i=d[0],s(d,t,u)}let l=!0,u=e.machine.options?.maxIterations??1/0,d=0;for(;"active"===i.status;){if(++d>u)throw Error(`Infinite loop detected: the machine has processed more than ${u} microsteps without reaching a stable state. This usually happens when there's a cycle of transitions (e.g., eventless transitions or raised events causing state A -> B -> C -> A).`);let e=l?function(e,t){let n=new Set;for(let r of e._nodes.filter(K))e:for(let i of[r].concat(Q(r,void 0)))if(i.always){for(let r of i.always)if(void 0===r.guard||X(r.guard,e.context,t,e)){n.add(r);break e}}return eb(Array.from(n),new Set(e._nodes),e.historyValue)}
2(i,a):[],t=e.length?i:void 0;if(!e.length){if(!r.length)break;e=e_(a=r.shift(),i)}let o=eM(e,i,n,a,!1,r);l=(i=o[0])!==t,s(o,a,e)}return"active"!==i.status&&eV(i,a,n),{snapshot:i,microsteps:o}}function eV(e,t,n){return eE(e,t,n,Object.values(e.children).map(e=>G(e)),[],void 0)}function e_(e,t){return t.machine.getTransitionData(t,e)}function e$(e,t){let n=ee(ey(e,t));return en(e,[...n])}let eA=function(e){return function e(t,n){let r=C(t),i=C(n);return"string"==typeof i?"string"==typeof r&&i===r:"string"==typeof r?r in i:Object.keys(r).every(t=>t in i&&e(r[t],i[t]))}(e,this.value)},eT=function(e){return this.tags.has(e)},eH=function(e){let t=this.machine.getTransitionData(this,e);return!!t?.length&&t.some(e=>void 0!==e.target||e.actions.length)},eI=function(){let{_nodes:e,tags:t,machine:n,getMeta:r,toJSON:i,can:o,hasTag:s,matches:a,...l}=this;return{...l,tags:Array.from(t)}},eP=function(){return this._nodes.reduce((e,t)=>(void 0!==t.meta&&(e[t.id]=t.meta),e),{})};function eO(e,t){return{status:e.status,output:e.output,error:e.error,machine:t,context:e.context,_nodes:e._nodes,value:en(t.root,e._nodes),tags:new Set(e._nodes.flatMap(e=>e.tags)),children:e.children,historyValue:e.historyValue||{},matches:eA,hasTag:eT,can:eH,getMeta:eP,toJSON:eI}}function eB(e,t={}){return eO({...e,...t},e.machine)}function eN(e,t){let{_nodes:n,tags:r,machine:i,children:o,context:s,can:a,hasTag:l,matches:u,getMeta:d,toJSON:c,...h}=e,f={};for(let e in o){let n=o[e];f[e]={snapshot:n.getPersistedSnapshot(t),src:n.src,systemId:n.systemId,syncSnapshot:n._syncSnapshot}}return{...h,context:function e(t){let n;for(let r in t){let i=t[r];if(i&&"object"==typeof i)if("sessionId"in i&&"send"in i&&"ref"in i)(n??=Array.isArray(t)?t.slice():{...t})[r]={xstate$$type:1,id:i.id};else{let o=e(i);o!==i&&((n??=Array.isArray(t)?t.slice():{...t})[r]=o)}}return n??t}(s),children:f,historyValue:function(e){if("object"!=typeof e||null===e)return{};let t={};for(let n in e){let r=e[n];Array.isArray(r)&&(t[n]=r.map(e=>({id:e.id})))}return t}(h.historyValue)}}function eW(e,t,n,r,{event:i,id:o,delay:s},{internalQueue:a}){let l,u=t.machine.implementations.delays;if("string"==typeof i)throw Error(`Only event objects may be used with raise; use raise({ type: "${i}" }) instead`);let d="function"==typeof i?i(n,r):i;if("string"==typeof s){let e=u&&u[s];l="function"==typeof e?e(n,r):e}else l="function"==typeof s?s(n,r):s;return"number"!=typeof l&&a.push(d),[t,{event:d,id:o,delay:l},void 0]}function ez(e,t){let{event:n,delay:r,id:i}=t;if("number"==typeof r)return void e.defer(()=>{let t=e.self;e.system.scheduler.schedule(t,t,n,r,i)})}function eD(e,t){function n(e,t){}return n.type="xstate.raise",n.event=e,n.id=t?.id,n.delay=t?.delay,n.resolve=eW,n.execute=ez,n}e.s(["$",0,1,"B",0,S,"C",0,ea,"D",0,X,"E",0,V,"F",0,es,"G",0,ed,"H",0,eo,"I",0,eu,"J",0,e$,"K",0,ee,"L",0,eO,"M",0,er,"N",0,"","O",0,ev,"P",0,eE,"Q",0,x,"R",0,ei,"S",0,".","T",0,em,"U",0,eN,"V",0,_,"W",0,p,"X",0,g,"Y",0,y,"Z",0,I,"_",0,eB,"a",0,z,"b",0,Z,"c",0,B,"d",0,eR,"e",0,v,"f",0,ej,"g",0,Q,"i",0,K,"m",0,$,"p",0,ey,"r",0,eD,"s",0,G,"t",0,j,"y",0,k,"z",0,el],3871);let eF=new WeakMap;function eZ(e){return{config:e,start:(t,n)=>{let{self:r,system:i,emit:o}=n,s={receivers:void 0,dispose:void 0};eF.set(r,s),s.dispose=e({input:t.input,system:i,self:r,sendBack:e=>{"stopped"!==r.getSnapshot().status&&r._parent&&i._relay(r,r._parent,e)},receive:e=>{s.receivers??=new Set,s.receivers.add(e)},emit:o})},transition:(e,t,n)=>{let r=eF.get(n.self);return t.type===g?(e={...e,status:"stopped",error:void 0},eF.delete(n.self),r.receivers?.clear(),r.dispose?.()):r.receivers?.forEach(e=>e(t)),e},getInitialSnapshot:(e,t)=>({status:"active",output:void 0,error:void 0,input:t}),getPersistedSnapshot:e=>e,restoreSnapshot:e=>e}}let eU="xstate.observable.error",eq="xstate.observable.complete";function eG(e){return{config:e,transition:(e,t)=>{if("active"!==e.status)return e;switch(t.type){case eU:return{...e,status:"error",error:t.data,input:void 0,_subscription:void 0};case eq:return{...e,status:"done",input:void 0,_subscription:void 0};case g:return e._subscription.unsubscribe(),{...e,status:"stopped",input:void 0,_subscription:void 0};default:return e}},getInitialSnapshot:(e,t)=>
2({status:"active",output:void 0,error:void 0,context:void 0,input:t,_subscription:void 0}),start:(t,{self:n,system:r,emit:i})=>{"done"!==t.status&&(t._subscription=e({input:t.input,system:r,self:n,emit:i}).subscribe({next:e=>{n._parent&&r._relay(n,n._parent,e)},error:e=>{r._relay(n,n,{type:eU,data:e})},complete:()=>{r._relay(n,n,{type:eq})}}))},getPersistedSnapshot:({_subscription:e,...t})=>t,restoreSnapshot:e=>({...e,_subscription:void 0})}}let eY="xstate.promise.resolve",eX="xstate.promise.reject",eK=new WeakMap,eJ=(tm=void 0,{config:tg=e=>void 0,transition:(e,t,n)=>({...e,context:tg(e.context,t,n)}),getInitialSnapshot:(e,t)=>({status:"active",output:void 0,error:void 0,context:"function"==typeof tm?tm({input:t}):tm}),getPersistedSnapshot:e=>e,restoreSnapshot:e=>e});function eQ(){return B(eJ)}function e1(e,t,n,r,{assignment:i}){if(!t.context)throw Error("Cannot assign to undefined `context`. Ensure that `context` is defined in the machine config.");let o={},s={context:t.context,event:n.event,spawn:function(e,{machine:t,context:n},r,i){return(o,s)=>{let a=((o,s)=>{if("string"!=typeof o)return B(o,{id:s?.id,parent:e.self,syncSnapshot:s?.syncSnapshot,input:s?.input,src:o,systemId:s?.systemId});{let a=_(t,o);if(!a)throw Error(`Actor logic '${o}' not implemented in machine '${t.id}'`);let l=B(a,{id:s?.id,parent:e.self,syncSnapshot:s?.syncSnapshot,input:"function"==typeof s?.input?s.input({context:n,event:r,self:e.self}):s?.input,src:o,systemId:s?.systemId});return i[l.id]=l,l}})(o,s);return i[a.id]=a,e.defer(()=>{a._processingStatus!==I.Stopped&&a.start()}),a}}(e,t,n.event,o),self:e.self,system:e.system},a={};if("function"==typeof i)a=i(s,r);else for(let e of Object.keys(i)){let t=i[e];a[e]="function"==typeof t?t(s,r):t}let l=Object.assign({},t.context,a);return[eB(t,{context:l,children:Object.keys(o).length?{...t.children,...o}:t.children}),void 0,void 0]}function e0(e){function t(e,t){}return t.type="xstate.assign",t.assignment=e,t.resolve=e1,t}e.s(["createEmptyActor",0,eQ,"fromCallback",0,eZ,"fromEventObservable",0,eG,"fromPromise",0,function(e){return{config:e,transition:(e,t,n)=>{if("active"!==e.status)return e;switch(t.type){case eY:{let n=t.data;return{...e,status:"done",output:n,input:void 0}}case eX:return{...e,status:"error",error:t.data,input:void 0};case g:return eK.get(n.self)?.abort(),eK.delete(n.self),{...e,status:"stopped",input:void 0};default:return e}},start:(t,{self:n,system:r,emit:i})=>{if("active"!==t.status)return;let o=new AbortController;eK.set(n,o),Promise.resolve(e({input:t.input,system:r,self:n,signal:o.signal,emit:i})).then(e=>{"active"===n.getSnapshot().status&&(eK.delete(n),r._relay(n,n,{type:eY,data:e}))},e=>{"active"===n.getSnapshot().status&&(eK.delete(n),r._relay(n,n,{type:eX,data:e}))})},getInitialSnapshot:(e,t)=>({status:"active",output:void 0,error:void 0,input:t}),getPersistedSnapshot:e=>e,restoreSnapshot:e=>e}}],48876);let e5=new WeakMap;function e2(e,t,n){let r=e5.get(e);return r?t in r||(r[t]=n()):(r={[t]:n()},e5.set(e,r)),r[t]}let e3={},e4=e=>"string"==typeof e?{type:e}:"function"==typeof e?"resolve"in e?{type:e.type}:{type:e.name}:e;class e6{constructor(e,t){if(this.config=e,this.key=void 0,this.id=void 0,this.type=void 0,this.path=void 0,this.states=void 0,this.history=void 0,this.entry=void 0,this.exit=void 0,this.parent=void 0,this.machine=void 0,this.meta=void 0,this.output=void 0,this.order=-1,this.description=void 0,this.tags=[],this.transitions=void 0,this.always=void 0,this.parent=t._parent,this.key=t._key,this.machine=t._machine,this.path=this.parent?this.parent.path.concat(this.key):[],this.id=this.config.id||[this.machine.id,...this.path].join("."),this.type=this.config.type||(this.config.states&&Object.keys(this.config.states).length?"compound":this.config.history?"history":"atomic"),this.description=this.config.description,this.order=this.machine.idMap.size,this.machine.idMap.set(this.id,this),this.states=this.config.states?k(this.config.states,(e,t)=>new e6(e,{_parent:this,_key:t,_machine:this.machine})):e3,"compound"===this.type&&!this.config.initial)throw Error(`No initial state specified for c
2ompound state node "#${this.id}". Try adding { initial: "${Object.keys(this.states)[0]}" } to the state config.`);this.history=!0===this.config.history?"shallow":this.config.history||!1,this.entry=j(this.config.entry).slice(),this.exit=j(this.config.exit).slice(),this.meta=this.config.meta,this.output="final"!==this.type&&this.parent?void 0:this.config.output,this.tags=j(e.tags).slice()}_initialize(){this.transitions=el(this),this.config.always&&(this.always=S(this.config.always).map(e=>ea(this,"",e))),Object.keys(this.states).forEach(e=>{this.states[e]._initialize()})}get definition(){return{id:this.id,key:this.key,version:this.machine.version,type:this.type,initial:this.initial?{target:this.initial.target,source:this,actions:this.initial.actions.map(e4),eventType:null,reenter:!1,toJSON:()=>({target:this.initial.target.map(e=>`#${e.id}`),source:`#${this.id}`,actions:this.initial.actions.map(e4),eventType:null})}:void 0,history:this.history,states:k(this.states,e=>e.definition),on:this.on,transitions:[...this.transitions.values()].flat().map(e=>({...e,actions:e.actions.map(e4)})),entry:this.entry.map(e4),exit:this.exit.map(e4),meta:this.meta,order:this.order||-1,output:this.output,invoke:this.invoke,description:this.description,tags:this.tags}}toJSON(){return this.definition}get invoke(){return e2(this,"invoke",()=>j(this.config.invoke).map((e,t)=>{let{src:n,systemId:r}=e,i=e.id??V(this.id,t),o="string"==typeof n?n:`xstate.invoke.${V(this.id,t)}`;return{...e,src:o,id:i,systemId:r,toJSON(){let{onDone:t,onError:n,...r}=e;return{...r,type:"xstate.invoke",src:o,id:i}}}}))}get on(){return e2(this,"on",()=>[...this.transitions].flatMap(([e,t])=>t.map(t=>[e,t])).reduce((e,[t,n])=>(e[t]=e[t]||[],e[t].push(n),e),{}))}get after(){return e2(this,"delayedTransitions",()=>es(this))}get initial(){return e2(this,"initial",()=>ed(this,this.config.initial))}next(e,t){let n,r=t.type,i=[];for(let o of e2(this,`candidates-${r}`,()=>eo(this,r))){let{guard:s}=o,a=e.context,l=!1;try{l=!s||X(s,a,t,e)}catch(t){let e="string"==typeof s?s:"object"==typeof s?s.type:void 0;throw Error(`Unable to evaluate guard ${e?`'${e}' `:""}in transition for event '${r}' in state node '${this.id}': 3${t.message}`)}if(l){i.push(...o.actions),n=o;break}}return n?[n]:void 0}get events(){return e2(this,"events",()=>{let{states:e}=this,t=new Set(this.ownEvents);if(e)for(let n of Object.keys(e)){let r=e[n];if(r.states)for(let e of r.events)t.add(`${e}`)}return Array.from(t)})}get ownEvents(){return Array.from(new Set(Object.keys(Object.fromEntries(this.transitions)).filter(e=>this.transitions.get(e).some(e=>!(!e.target&&!e.actions.length&&!e.reenter)))))}}class e8{constructor(e,t){this.config=e,this.version=void 0,this.schemas=void 0,this.implementations=void 0,this.options=void 0,this.__xstatenode=!0,this.idMap=new Map,this.root=void 0,this.id=void 0,this.states=void 0,this.events=void 0,this.id=e.id||"(machine)",this.implementations={actors:t?.actors??{},actions:t?.actions??{},delays:t?.delays??{},guards:t?.guards??{}},this.version=this.config.version,this.schemas=this.config.schemas,this.options={maxIterations:1/0,...this.config.options},this.transition=this.transition.bind(this),this.getInitialSnapshot=this.getInitialSnapshot.bind(this),this.getPersistedSnapshot=this.getPersistedSnapshot.bind(this),this.restoreSnapshot=this.restoreSnapshot.bind(this),this.start=this.start.bind(this),this.root=new e6(e,{_key:this.id,_machine:this}),this.root._initialize(),eu(this.root),this.states=this.root.states,this.events=this.root.events}provide(e){let{actions:t,guards:n,actors:r,delays:i}=this.implementations;return new e8(this.config,{actions:{...t,...e.actions},guards:{...n,...e.guards},actors:{...r,...e.actors},delays:{...i,...e.delays}})}resolveState(e){let t=e$(this.root,e.value),n=ee(ey(this.root,t));return eO({_nodes:[...n],context:e.context||{},children:{},status:er(n,this.root)?"done":e.status||"active",output:e.output,error:e.error,historyValue:e.historyValue},this)}transition(e,t,n){return eR(e,t,n,[]).snapshot}microstep(e,t,n){return eR(e,t,n,[]).microsteps.map(([e])=>e)}getTransitionData(e,t){return ev(this.root,e.value,e,t)||[]}_getPreInitialState(e,t,n){let{context:r}=this.config,i=eO({context:"function"!=typeof r&&r?r:{},_nodes:[this.root],children:{},status:"active"},this);return"function"==typeof r?eE(i,t,e,[e0(({spawn:e,event:t,self:n})=>r({spawn:e,input:t.input,self:n}))],n,void 0):i}getInitialSnapshot(e,t){let n=v(t),r=[],i=this._getPreInitialState(e,n,r),[o]=ej(this.root,i,e,n,r),{snapshot:s}=eR(o,n,e,r);return s}
3start(e){Object.values(e.children).forEach(e=>{"active"===e.getSnapshot().status&&e.start()})}getStateNodeById(e){let t=x(e),n=t.slice(1),r=ei(t[0])?t[0].slice(1):t[0],i=this.idMap.get(r);if(!i)throw Error(`Child state node '#${r}' does not exist on machine '${this.id}'`);return em(i,n)}get definition(){return this.root.definition}toJSON(){return this.definition}getPersistedSnapshot(e,t){return eN(e,t)}restoreSnapshot(e,t){let n={},r=e.children;Object.keys(r).forEach(e=>{let i=r[e],o=i.snapshot,s=i.src,a="string"==typeof s?_(this,s):s;if(!a)return;let l=B(a,{id:e,parent:t.self,syncSnapshot:i.syncSnapshot,snapshot:o,src:s,systemId:i.systemId});n[e]=l});let i=function(e,t){if(!t||"object"!=typeof t)return{};let n={};for(let r in t)for(let i of t[r]){let t=function(e,t){if(t instanceof e6)return t;try{return e.machine.getStateNodeById(t.id)}catch{}}(e,i);t&&(n[r]??=[],n[r].push(t))}return n}(this.root,e.historyValue),o=eO({...e,children:n,_nodes:Array.from(ee(ey(this.root,e.value))),historyValue:i},this),s=new Set;return!function e(t,n){if(!s.has(t))for(let r in s.add(t),t){let i=t[r];if(i&&"object"==typeof i){if("xstate$$type"in i&&1===i.xstate$$type){t[r]=n[i.id];continue}e(i,n)}}}(o.context,n),o}}function e9(e,t,n,r,{event:i}){return[t,{event:"function"==typeof i?i(n,r):i},void 0]}function e7(e,{event:t}){e.defer(()=>e.emit(t))}function te(e){function t(e,t){}return t.type="xstate.emit",t.event=e,t.resolve=e9,t.execute=e7,t}let tt=((ty={}).Parent="#_parent",ty.Internal="#_internal",ty);function tn(e,t,n,r,{to:i,event:o,id:s,delay:a},l){let u,d,c=t.machine.implementations.delays;if("string"==typeof o)throw Error(`Only event objects may be used with sendTo; use sendTo({ type: "${o}" }) instead`);let h="function"==typeof o?o(n,r):o;if("string"==typeof a){let e=c&&c[a];u="function"==typeof e?e(n,r):e}else u="function"==typeof a?a(n,r):a;let f="function"==typeof i?i(n,r):i;if("string"==typeof f){if(!(d=f===tt.Parent?e.self._parent:f===tt.Internal?e.self:f.startsWith("#_")?t.children[f.slice(2)]:l.deferredActorIds?.includes(f)?f:t.children[f]))throw Error(`Unable to send event to actor '${f}' from machine '${t.machine.id}'.`)}else d=f||e.self;return[t,{to:d,targetId:"string"==typeof f?f:void 0,event:h,id:s,delay:u},void 0]}function tr(e,t,n){"string"==typeof n.to&&(n.to=t.children[n.to])}function ti(e,t){e.defer(()=>{let{to:n,event:r,delay:i,id:o}=t;"number"==typeof i?e.system.scheduler.schedule(e.self,n,r,i,o):e.system._relay(e.self,n,r.type===p?y(e.self.id,r.data):r)})}function to(e,t,n){function r(e,t){}return r.type="xstate.sendTo",r.to=e,r.event=t,r.id=n?.id,r.delay=n?.delay,r.resolve=tn,r.retryResolve=tr,r.execute=ti,r}function ts(e,t){return to(tt.Parent,e,t)}function ta(e,t,n,r,{collect:i}){let o=[],s=function(e){o.push(e)};return s.assign=(...e)=>{o.push(e0(...e))},s.cancel=(...e)=>{o.push(z(...e))},s.raise=(...e)=>{o.push(eD(...e))},s.sendTo=(...e)=>{o.push(to(...e))},s.sendParent=(...e)=>{o.push(ts(...e))},s.spawnChild=(...e)=>{o.push(Z(...e))},s.stopChild=(...e)=>{o.push(G(...e))},s.emit=(...e)=>{o.push(te(...e))},i({context:n.context,event:n.event,enqueue:s,check:e=>X(e,t.context,n.event,t),self:e.self,system:e.system},r),[t,void 0,o]}function tl(e){function t(e,t){}return t.type="xstate.enqueueActions",t.collect=e,t.resolve=ta,t}function tu(e,t,n,r,{value:i,label:o}){return[t,{value:"function"==typeof i?i(n,r):i,label:o},void 0]}function td({logger:e},{value:t,label:n}){n?e(n,t):e(t)}function tc(e=({context:e,event:t})=>({context:e,event:t}),t){function n(e,t){}return n.type="xstate.log",n.value=e,n.label=t,n.resolve=tu,n.execute=td,n}function th(e,t){let n=j(t);if(!n.some(t=>$(e.type,t))){let t=1===n.length?`type matching "${n[0]}"`:`one of types matching "${n.join('", "')}"`;throw Error(`Expected event ${JSON.stringify(e)} to have ${t}`)}}function tf({schemas:e,actors:t,actions:n,guards:r,delays:i}){return{assign:e0,sendTo:to,raise:eD,log:tc,cancel:z,stopChild:G,enqueueActions:tl,emit:te,spawnChild:Z,createStateConfig:e=>e,createAction:e=>e,createMachine:o=>new e8({...o,schemas:e},{actors:t,actions:n,guards:r,delays:i}),extend:o=>tf({schemas:e,actors:t,actions:{...n,...o.actions},guards:{...r,...o.guards},delays:{...i,...o.delays}})}}e.s(["a",0,te,"b",0,ts,"e",0,tl,"l",0,tc,"s",0,to],34388),e.s(["assertEvent",0,th,"setup",0,tf],9820),e.s(["assign",0,e0],49253),e.s(["createActor",0,B],54975),e.s(["enqueueActions",0,tl],22834),e.s(["raise",0,eD],29122),e.s(["emit",0,te],49520),e.s(["stopChild",0,G],1328);
3var tp,tg,tm,ty,tv,tw=e.i(72441),tb=e.i(90571),tx=e.i(20324),tC=e.i(94426),tk=e.i(84973),tj=e.i(87675),tM=e.i(3752),tL=e.i(29955),tS=["addListener","removeListener"],tE=["addEventListener","removeEventListener"],tR=["on","off"];function tV(e,t,n,r){if((0,tM.isFunction)(n)&&(r=n,n=void 0),r)return tV(e,t,n).pipe((0,tL.mapOneOrManyArgs)(r));var i,o,s,a=(0,tb.__read)((i=e,(0,tM.isFunction)(i.addEventListener)&&(0,tM.isFunction)(i.removeEventListener))?tE.map(function(r){return function(i){return e[r](t,i,n)}}):(o=e,(0,tM.isFunction)(o.addListener)&&(0,tM.isFunction)(o.removeListener))?tS.map(t_(e,t)):(s=e,(0,tM.isFunction)(s.on)&&(0,tM.isFunction)(s.off))?tR.map(t_(e,t)):[],2),l=a[0],u=a[1];if(!l&&(0,tj.isArrayLike)(e))return(0,tk.mergeMap)(function(e){return tV(e,t,n)})((0,tx.innerFrom)(e));if(!l)throw TypeError("Invalid event target");return new tC.Observable(function(e){var t=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.next(1<t.length?t:t[0])};return l(t),function(){return u(t)}})}function t_(e,t){return function(n){return function(r){return e[n](t,r)}}}var t$=e.i(94059),tA=e.i(82541),tT=e.i(22249),tH=e.i(2965),tI=e.i(27608),tP=e.i(86903),tO=e.i(96623);function tB(e){return e<=0?function(){return tO.EMPTY}:(0,tH.operate)(function(t,n){var r=0;t.subscribe((0,tI.createOperatorSubscriber)(n,function(t){++r<=e&&(n.next(t),e<=r&&n.complete())}))})}var tN=e.i(14940);let tW=e=>({context:t})=>{let{count:n,include:r,exclude:i,responseType:o="message.received"}=e;return{count:n,domain:t.domain,from:t.connectTo,include:r?Array.isArray(r)?r:[r]:[],exclude:i?Array.isArray(i)?i:[i]:[],responseType:o,target:t.target,to:t.name}},tz=(0,tw.defer)(()=>tV(window,"message")),tD=e=>eG(({input:t})=>{var n,r,i;let o;return tz.pipe(e?(0,t$.map)(e):(0,tA.pipe)(),(0,tT.filter)(e=>{let{data:n}=e;return(!t.include.length||t.include.includes(n.type))&&(!t.exclude.length||!t.exclude.includes(n.type))&&n.domain===t.domain&&n.from===t.from&&n.to===t.to&&(!t.target||e.source===t.target)}),(0,t$.map)((o=t.responseType,e=>({type:o,message:e}))),t.count?(0,tA.pipe)((n=t.count,void 0===r&&(r=null),r=null!=r?r:n,(0,tH.operate)(function(e,t){var i=[],o=0;e.subscribe((0,tI.createOperatorSubscriber)(t,function(e){var s,a,l,u,d=null;o++%r==0&&i.push([]);try{for(var c=(0,tb.__values)(i),h=c.next();!h.done;h=c.next()){var f=h.value;f.push(e),n<=f.length&&(d=null!=d?d:[]).push(f)}}catch(e){s={error:e}}finally{try{h&&!h.done&&(a=c.return)&&a.call(c)}finally{if(s)throw s.error}}if(d)try{for(var p=(0,tb.__values)(d),g=p.next();!g.done;g=p.next()){var f=g.value;(0,tP.arrRemove)(i,f),t.next(f)}}catch(e){l={error:e}}finally{try{g&&!g.done&&(u=p.return)&&u.call(p)}finally{if(l)throw l.error}}},function(){var e,n;try{for(var r=(0,tb.__values)(i),o=r.next();!o.done;o=r.next()){var s=o.value;t.next(s)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}t.complete()},void 0,function(){i=null}))})),(i=e=>e,(0,tM.isFunction)(void 0)?(0,tk.mergeMap)(i,void 0,1):(0,tk.mergeMap)(i,1)),tB(t.count)):(0,tA.pipe)())}),tF="sanity/comlink",tZ="comlink/response",tU="comlink/heartbeat",tq="comlink/disconnect",tG="comlink/handshake/syn",tY="comlink/handshake/syn-ack",tX="comlink/handshake/ack",tK=()=>tf({types:{},actors:{listen:eG(({input:e})=>{let t,n=e.signal?tV(e.signal,"abort").pipe((t=`Request ${e.requestId} aborted`,e=>e.pipe(tB(1),(0,t$.map)(()=>{throw Error(t)})))):tO.EMPTY;return tV(window,"message").pipe((0,tT.filter)(t=>t.data?.type===tZ&&t.data?.responseTo===e.requestId&&!!t.source&&e.sources.has(t.source)),tB(e.sources.size),(0,tH.operate)(function(e,t){(0,tx.innerFrom)(n).subscribe((0,tI.createOperatorSubscriber)(t,function(){return t.complete()},tN.noop)),t.closed||e.subscribe(t)}))})},actions:{"send message":({context:e},t)=>{let{sources:n,targetOrigin:r}=e,{message:i}=t;n.forEach(e=>{e.postMessage(i,{targetOrigin:r})})},"on success":to(({context:e})=>e.parentRef,({context:e,self:t})=>(e.response&&e.resolvable?.resolve(e.response),{type:"request.success",requestId:t.id,response:e.response,responseTo:e.responseTo})),"on fail":to(({context:e})=>e.parentRef,({context:e,self:t})=>(e.suppressWarnings||console.warn(`[@sanity/comlink] Received no response to message '${e.type}' on client '${e.from}' (ID: '${e.id}').`),e.resolvable?.reject(Error("No response received")),{type:"request.failed",requestId:t.id})),"on abort":to(({context:e})=>e.parentRef,({context:e,self:t})=>(e.resolvable?.reject(Error("Request aborted")),{type:"request.aborted",requestId:t.id}))},guards:{expectsResponse:({context:e})=>e.expectResponse},delays:{initialTimeout:0,responseTimeout:({context:e})=>e.responseTimeout??3e3}}).createMachine({context:({input:e})=>({channelId:e.channelId,data:e.data,domain:e.domain,expectResponse:e.expectResponse??!1,from:e.from,id:`msg-${c()}`,parentRef:e.parentRef,resolvable:e.resolvable,response:null,responseTimeout:e.responseTimeout,responseTo:e.responseTo,signal:e.signal,sources:e.sources instanceof Set?e.sources:new Set([e.sources]),suppressWarnings:e.suppressWarnings,targetOrigin:e.targetOrigin,to:e.to,type:e.type}),initial:"idle",on:{abort:".aborted"},states:{idle:{after:{initialTimeout:[{target:"sending"}]}},sending:{entry:{type:"send message",params:({context:e})=>{let{channelId:t,data:n,domain:r,from:i,id:o,responseTo:s,to:a,type:l}=e;return{message:{channelId:t,data:n,domain:r,from:i,id:o,to:a,type:l,responseTo:s}}}},always:[{guard:"expectsResponse",target:"awaiting"},"success"]},awaiting:{invoke:{id:"listen for response",src:"listen",input:({context:e})=>({requestId:e.id,sources:e.sources,signal:e.signal}),onError:"aborted"},after:{responseTimeout:"failed"},on:{message:{actions:e0({response:({event:e})=>e.data.data,responseTo:({event:e})=>e.data.responseTo}),target:"success"}}},failed:{type:"final",entry:"on fail"},success:{type:"final",entry:"on success"},aborted:{type:"final",entry:"on abort"}},output:({context:e,self:t})=>({requestId:t.id,response:e.response,responseTo:e.responseTo})});eZ(({sendBack:e,input:t})=>{let n=()=>{e(t.event)};t.immediate&&n();let r=setInterval(n,t.interval);return()=>{clearInterval(r)}});let tJ=()=>tf({types:{},actors:{requestMachine:tK(),listen:tD()},actions:{"buffer handshake":e0({handshakeBuffer:({event:e,context:t})=>(th(e,"message.received"),[...t.handshakeBuffer,e])}),"buffer message":tl(({enqueue:e})=>{e.assign({buffer:({event:e,context:t})=>(th(e,"post"),[...t.buffer,{data:e.data,resolvable:e.resolvable,options:e.options}])}),e.emit(({event:e})=>(th(e,"post"),{type:"buffer.added",message:e.data}))}),"create request":e0({requests:({context:e,event:t,self:n,spawn:r})=>{th(t,"request");let i=(Array.isArray(t.data)?t.data:[t.data]).map(t=>r("requestMachine",{id:`req-${c()}`,input:{channelId:e.channelId,data:t.data,domain:e.domain,expectResponse:t.expectResponse,from:e.name,parentRef:n,resolvable:t.resolvable,responseTimeout:t.options?.responseTimeout,responseTo:t.responseTo,signal:t.options?.signal,sources:e.target,suppressWarnings:t.o
3ptions?.suppressWarnings,targetOrigin:e.targetOrigin,to:e.connectTo,type:t.type}}));return[...e.requests,...i]}}),"emit heartbeat":te(()=>({type:"heartbeat"})),"emit received message":tl(({enqueue:e})=>{e.emit(({event:e})=>(th(e,"message.received"),{type:"message",message:e.message.data}))}),"emit status":te((e,t)=>({type:"status",status:t.status})),"post message":eD(({event:e})=>(th(e,"post"),{type:"request",data:{data:e.data.data,expectResponse:!!e.resolvable,type:e.data.type,resolvable:e.resolvable,options:e.options}})),"process pending handshakes":tl(({context:e,enqueue:t})=>{e.handshakeBuffer.forEach(e=>t.raise(e)),t.assign({handshakeBuffer:[]})}),"remove request":tl(({context:e,enqueue:t,event:n})=>{th(n,["request.success","request.failed","request.aborted"]),G(n.requestId),t.assign({requests:e.requests.filter(({id:e})=>e!==n.requestId)})}),"send response":eD(({event:e})=>(th(e,["message.received","heartbeat.received"]),{type:"request",data:{type:tZ,responseTo:e.message.data.id,data:void 0}})),"send handshake syn ack":eD({type:"request",data:{type:tY}}),"send pending messages":tl(({enqueue:e})=>{e.raise(({context:e})=>({type:"request",data:e.buffer.map(({data:e,resolvable:t,options:n})=>({data:e.data,type:e.type,expectResponse:!!t,resolvable:t,options:n}))})),e.emit(({context:e})=>({type:"buffer.flushed",messages:e.buffer.map(({data:e})=>e)})),e.assign({buffer:[]})}),"set connection config":e0({channelId:({event:e})=>(th(e,"handshake.syn"),e.message.data.channelId),target:({event:e})=>(th(e,"handshake.syn"),e.message.source||void 0),targetOrigin:({event:e})=>(th(e,"handshake.syn"),e.message.origin)})},guards:{hasSource:({context:e})=>null!==e.target}}).createMachine({id:"node",context:({input:e})=>({buffer:[],channelId:null,connectTo:e.connectTo,domain:e.domain??tF,handshakeBuffer:[],name:e.name,requests:[],target:void 0,targetOrigin:null}),invoke:{id:"listen for handshake syn",src:"listen",input:tW({include:tG,responseType:"handshake.syn"})},on:{"request.success":{actions:"remove request"},"request.failed":{actions:"remove request"},"request.aborted":{actions:"remove request"},"handshake.syn":{actions:"set connection config",target:".handshaking"}},initial:"idle",states:{idle:{entry:[{type:"emit status",params:{status:"idle"}}],on:{post:{actions:"buffer message"}}},handshaking:{guard:"hasSource",entry:["send handshake syn ack",{type:"emit status",params:{status:"handshaking"}}],invoke:[{id:"listen for handshake ack",src:"listen",input:tW({include:tX,count:1,responseType:"handshake.complete"}),onDone:"connected"},{id:"listen for disconnect",src:"listen",input:tW({include:tq,count:1,responseType:"disconnect"})},{id:"listen for messages",src:"listen",input:tW({exclude:[tq,tG,tX,tU,tZ]})}],on:{request:{actions:"create request"},post:{actions:"buffer message"},"message.received":{actions:"buffer handshake"},disconnect:{target:"idle"}}},connected:{entry:["process pending handshakes","send pending messages",{type:"emit status",params:{status:"connected"}}],invoke:[{id:"listen for messages",src:"listen",input:tW({exclude:[tq,tG,tX,tU,tZ]})},{id:"listen for heartbeat",src:"listen",input:tW({include:tU,responseType:"heartbeat.received"})},{id:"listen for disconnect",src:"listen",input:tW({include:tq,count:1,responseType:"disconnect"})}],on:{request:{actions:"create request"},post:{actions:"post message"},disconnect:{target:"idle"},"message.received":{actions:["send response","emit received message"]},"heartbeat.received":{actions:["send response","emit heartbeat"]}}}}});e.s(["DOMAIN",0,tF,"MSG_DISCONNECT",0,tq,"MSG_HANDSHAKE_ACK",0,tX,"MSG_HANDSHAKE_SYN",0,tG,"MSG_HANDSHAKE_SYN_ACK",0,tY,"MSG_HEARTBEAT",0,tU,"MSG_RESPONSE",0,tZ,"createListenLogic",0,tD,"createNode",0,(e,t=tJ())=>{let n,r=B(t,{input:e}),i=new Map,o=new Map;r.on("message",({message:e})=>{let t=i.get(e.type);if(t)return void t.forEach(t=>t(e.data));let n=o.get(e.type);n?n.add(e):o.set(e.type,new Set([e]))});let s=()=>{r.stop()};return{actor:r,fetch:(e,t,n)=>{let i,o,{responseTimeout:s=1e4,signal:a,suppressWarnings:l}=n||{},u="function"==typeof Promise.withResolvers?Promise.withResolvers():{promise:new Promise((e,t)=>
3{i=e,o=t}),resolve:i,reject:o};return r.send({type:"post",data:{type:e,data:t},resolvable:u,options:{responseTimeout:s,signal:a,suppressWarnings:l}}),u.promise},machine:t,on:(e,t,n)=>{let r=i.get(e)||new Set;i.has(e)||i.set(e,r),r.add(t);let s=o.get(e);if(s){let r=n?.replay??1;Array.from(s).slice(-r).forEach(({data:e})=>t(e)),o.delete(e)}return()=>{r.delete(t)}},onStatus:(e,t)=>{let i=r.on("status",r=>{n=r.status,t&&r.status!==t||e(r.status)});return n&&e(n),()=>i.unsubscribe()},post:(e,t)=>{r.send({type:"post",data:{type:e,data:t}})},start:()=>(r.start(),s),stop:s}},"createNodeMachine",0,tJ,"createRequestMachine",0,tK],81283);let tQ={"handshake/syn":tG,"handshake/syn-ack":tY,"handshake/ack":tX,"channel/response":tZ,"channel/heartbeat":tU,"channel/disconnect":tq,"overlay/focus":"visual-editing/focus","overlay/navigate":"visual-editing/navigate","overlay/toggle":"visual-editing/toggle","presentation/toggleOverlay":"presentation/toggle-overlay"},t1={[tG]:"handshake/syn",[tY]:"handshake/syn-ack",[tX]:"handshake/ack",[tZ]:"channel/response",[tU]:"channel/heartbeat",[tq]:"channel/disconnect","visual-editing/focus":"overlay/focus","visual-editing/navigate":"overlay/navigate","visual-editing/toggle":"overlay/toggle","presentation/toggle-overlay":"presentation/toggleOverlay"},t0=e=>{let{data:t}=e;return t&&"object"==typeof t&&"domain"in t&&"type"in t&&"from"in t&&"to"in t&&("sanity/channels"===t.domain&&(t.domain=tF),"overlays"===t.to&&(t.to="visual-editing"),"overlays"===t.from&&(t.from="visual-editing"),t.channelId=t.connectionId,delete t.connectionId,t.type=tQ[t.type]??t.type),e},t5=({context:e},t)=>{let{sources:n,targetOrigin:r}=e,i=(e=>{let{channelId:t,...n}=e,r={...n,connectionId:t};return r.domain===tF&&(r.domain="sanity/channels"),"visual-editing"===r.to&&(r.to="overlays"),"visual-editing"===r.from&&(r.from="overlays"),r.type=t1[r.type]??r.type,"channel/response"===r.type&&r.responseTo&&!r.data&&(r.data={responseTo:r.responseTo}),("handshake/syn"===r.type||"handshake/syn-ack"===r.type||"handshake/ack"===r.type)&&(r.data={id:r.connectionId}),r})(t.message);n.forEach(e=>{e.postMessage(i,{targetOrigin:r})})};function t2(){return window.self!==window.top}function t3(){return!!window.opener}e.s(["createCompatibilityActors",0,()=>({listen:tD(t0),requestMachine:tK().provide({actions:{"send message":t5}})}),"isMaybePreviewIframe",0,t2,"isMaybePreviewWindow",0,t3],36536);var t4=e.i(932),t6=e.i(16024),t8=e.i(50724);function t9(e){return e.split(/[[.\]]/g).filter(Boolean).map(e=>{var t;return e.includes("==")?function(e){let[t,n]=e.split("==");if("_key"!==t)throw Error(`Currently only "_key" is supported as path segment. Found ${t}`);if(typeof n>"u")throw Error('Invalid path segment, expected `key=="value"`');return{_key:n.replace(/^['"]/,"").replace(/['"]$/,"")}}(e):t7.test(t=e)?Number(t):t})}let t7=/^-?\d+$/;function ne(e){return"string"==typeof e?._key}function nt(e){return"object"==typeof e&&"_key"in e&&"string"==typeof e._key}let nn=/^[a-z_$]+/;function nr(e){return e.map((e,t)=>{var n;return n=0===t,Array.isArray(e)?`[${e[0]}:${e[1]||""}]`:"number"==typeof e?`[${e}]`:nt(e)?`[_key==${JSON.stringify(e._key)}]`:"string"==typeof e&&nn.test(e)?n?e:`.${e}`:`['${e}']`}).join("")}function ni(e){return Array.isArray(e)?e:[e]}function no(e){if("createIfNotExists"in e)return{type:"createIfNotExists",document:e.createIfNotExists};if("createOrReplace"in e)return{type:"createOrReplace",document:e.createOrReplace};if("create"in e)return{type:"create",document:e.create};if("delete"in e)return{id:e.delete.id,type:"delete"};if("patch"in e){var t,n,r,i,o,s,a;return{type:"patch",id:e.patch.id,patches:[..."set"in(n=t=e.patch)?Object.keys(n.set).map(e=>({path:t9(e),op:{type:"set",value:n.set[e]}})):[],..."setIfMissing"in(r=t)?Object.keys(r.setIfMissing).map(e=>({path:t9(e),op:{type:"setIfMissing",value:r.setIfMissing[e]}})):[],..."unset"in(i=t)?i.unset.map(e=>({path:t9(e),op:{type:"unset"}})):[],..."inc"in(o=t)?Object.keys(o.inc).map(e=>({path:t9(e),op:{type:"inc",amount:o.inc[e]}})):[],..."inc"in(s=t)?Object.keys(s.dec).map(e=>({path:t9(e),op:{type:"dec",amount:s.dec[e]}})):[],...function(e){if(!("insert"in e))return[];let t=function(e){let t=ns.filter(t=>t in e);if(t.length>1)throw Error(`Insert patch is ambiguous. Should only contain one of: ${ns.join(", ")}, instead found ${t.join(", ")}`);return t[0]}(e.insert);if(!t)throw Error("Insert patch missing position");let n=t9(e.insert[t]),r=n.pop();return[{path:n,op:{type:"insert",position:t,referenceItem:r,items:e.insert.items}}]}(t),..."diffMatchPatch"in(a=t)?Object.keys(a.diffMatchPatch).map(e=>({path:t9(e),op:{type:"diffMatchPatch",value:a.diffMatchPatch[e]}})):[]]}}throw Error(`Unknown mutation: ${JSON.stringify(e)}`)}e.s(["isArrayElement",0,function(e){return"number"==typeof e||nt(e)},"isKeyedElement",0,nt,"isPropertyElement",0,function(e){return"string"==typeof e},"startsWith",0,function(e,t){return e.length<=t.length&&e.every((e,n)=>{var r,i;return r=e,i=function(e,t){if(t<0||t>=e.length)throw Error("Index out of bounds");return e[t]}(t,n),ne(r)&&ne(i)?r._key===i._key:"number"==typeof r?Number(r)===Number(i):r===i})},"stringify",0,nr],56414);let ns=["before","replace","after"];function na(e){return nd(e)}function nl(e){return e.flatMap(na)}function nu(e){return{transactionId:e.id,mutations:nl(e.mutations)}}
3function nd(e){switch(e.type){case"create":case"createIfNotExists":case"createOrReplace":return{[e.type]:e.document};case"delete":return{delete:{id:e.id}};case"patch":{let t=e.options?.ifRevision;return e.patches.map(n=>({patch:{id:e.id,...t&&{ifRevisionID:t},...nc(n)}}))}}}function nc(e){let{path:t,op:n}=e;if("unset"===n.type)return{unset:[nr(t)]};if("insert"===n.type)return{insert:{[n.position]:nr([...t,n.referenceItem]),items:n.items}};if("diffMatchPatch"===n.type)return{diffMatchPatch:{[nr(t)]:n.value}};if("inc"===n.type)return{inc:{[nr(t)]:n.amount}};if("dec"===n.type)return{dec:{[nr(t)]:n.amount}};if("set"===n.type||"setIfMissing"===n.type)return{[n.type]:{[nr(t)]:n.value}};if("truncate"===n.type){let e=[n.startIndex,"number"==typeof n.endIndex?n.endIndex:""].join(":");return{unset:[`${nr(t)}[${e}]`]}}if("upsert"===n.type)return{unset:n.items.map(e=>nr([...t,{_key:e._key}])),insert:{[n.position]:nr([...t,n.referenceItem]),items:n.items}};if("assign"===n.type)return{set:Object.fromEntries(Object.keys(n.value).map(e=>[nr(t.concat(e)),n.value[e]]))};if("unassign"===n.type)return{unset:n.keys.map(e=>nr(t.concat(e)))};if("replace"===n.type)return{insert:{replace:nr(t.concat(n.referenceItem)),items:n.items}};if("remove"===n.type)return{unset:[nr(t.concat(n.referenceItem))]};throw"insertIfMissing"===n.type?Error("Patch type insertIfMissing is not supported by Sanity"):Error(`Unknown operation type ${n.type}`)}e.s(["encode",0,na,"encodeAll",0,nl,"encodeMutation",0,nd,"encodePatch",0,nc,"encodeTransaction",0,nu],18998),e.s(["isObject",0,function(e){return null!==e&&"object"==typeof e&&!Array.isArray(e)}],89964);function nh(e,t,n){return{type:"patch",id:e,patches:ni(t),...n?{options:n}:{}}}function nf(e,t){return{path:"string"==typeof e?t9(e):e,op:t}}function np(e){return{type:"createIfNotExists",document:e}}function ng(e,t,n){return{type:"insert",referenceItem:n,position:t,items:ni(e)}}function nm(e,t){return{type:"truncate",startIndex:e,endIndex:t}}var ny=Object.freeze({__proto__:null,decode:function(e){return no(e)},decodeAll:function(e){return e.map(no)},encode:na,encodeAll:nl,encodeMutation:nd,encodePatch:nc,encodeTransaction:nu});e.s(["SanityEncoder",0,ny,"at",0,nf,"createIfNotExists",0,np,"insert",0,ng,"patch",0,nh,"remove",0,function(e){return{type:"remove",referenceItem:e}},"truncate",0,nm],66283);let nv=eQ(),nw=nv,nb=new Set;function nx(e){return e===nv}e.s(["actor",()=>nw,"emptyActor",0,nv,"isEmptyActor",0,nx,"listeners",0,nb,"setActor",0,function(e){for(let t of(nw=e,nb))t()}],89740);var nC=e.i(71645);let nk=/_key\s*==\s*['"](.*)['"]/,nj=/^\d*:\d*$/;function nM(e){return"number"==typeof e||"string"==typeof e&&/^\[\d+\]$/.test(e)}function nL(e){return"string"==typeof e?nk.test(e.trim()):"object"==typeof e&&"_key"in e}let nS=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,nE=/_key\s*==\s*['"](.*)['"]/;function nR(e,t,n){let r="string"==typeof t?function(e){if("string"!=typeof e)throw Error("Path is not a string");let t=e.match(nS);if(!t)throw Error("Invalid path string");return t.map(nV)}(t):t;if(!Array.isArray(r))throw Error("Path must be an array or a string");let i=e;for(let e=0;e<r.length;e++){let t=r[e];if(nM(t)){if(!Array.isArray(i))return n;i=i[t]}if(nL(t)){if(!Array.isArray(i))return n;i=i.find(e=>e._key===t._key)}if("string"==typeof t&&(i="object"==typeof i&&null!==i?i[t]:void 0),typeof i>"u")return n}return i}function nV(e){return nM(e)?Number(e.replace(/[^\d]/g,"")):nL(e)?{_key:e.match(nE)[1]}:!function(e){if("string"==typeof e&&nj.test(e))return!0;if(!Array.isArray(e)||2!==e.length)return!1;let[t,n]=e;return("number"==typeof t||""===t)&&("number"==typeof n||""===n)}(e)?e:function(e){let[t,n]=e.split(":").map(e=>""===e?e:Number(e));return[t,n]}(e)}function n_(){return(0,nC.useSyncExternalStore)(nT,nA,n$)}function n$(){return nv}function nA(){return nw}function nT(e){return nb.add(e),()=>nb.delete(e)}function nH(e,t){let n;return(...r)=>{clearTimeout(n),n=setTimeout(()=>{e.apply(e,r)},t)}}function nI(e,t){let n=t2(),r=t3();if(nx(t)||!n&&!r)throw Error("The `useDocuments` hook cannot be used in this context");let i=(0,t6.getDraftId)(e),o=(0,t6.getPublishedId)(e),s=t.getSnapshot().context?.documents,a=s?.[i],l=s?.[o],u=a||l;if(!u)throw Error(`Document "${e}" not found`);let d=a.getSnapshot().context?.local||l.getSnapshot().context?.local,c=new Promise(e=>{if(d)e(d);else{let t=u.on("ready",n=>{let{snapshot:r}=n;e(r||null),t.unsubscribe()})}});return{draftDoc:a,draftId:i,getSnapshot:()=>c,publishedDoc:l,publishedId:o,get snapshot(){if(!d)throw Error(`Snapshot for document "${e}" not found`);return d}}}function nP(e){let t=(()=>
3{if(a)return a;a=[];for(let e=0;e<256;++e)a[e]=(e+256).toString(16).slice(1);return a})();return(function(e=16){let t=new Uint8Array(e);return crypto.getRandomValues(t),t})(e).reduce((e,n)=>e+t[n],"").slice(0,e)}function nO(e){let t,n,r="string"==typeof e?e:e.path,i=r.lastIndexOf("."),o=r.substring(i+1,r.length);if(!o.indexOf("["))throw Error("Invalid path: not an array");let s=r.lastIndexOf("["),a=r.substring(0,s);if(o.includes("_key")){let e=o.indexOf('"')+1,r=o.indexOf('"',e);t=o.substring(e,r),n=!0}else{let e=o.indexOf("[")+1,r=o.indexOf("]",e);t=o.substring(e,r),n=!1}if(!a||!t)throw Error("Invalid path");return{path:a,key:t,hasExplicitKey:n}}async function nB(e,t,n){if(!e.type)throw Error("Node type is missing");let{path:r,key:i}=nO(e),o=await t.getSnapshot(),s=nR(o,r),a=nR(o,e.path),l=s.findIndex(e=>e._key===i),u=-1,d="before";if("first"===n){if(0===l)return[];u=0,d="before"}else if("last"===n){if(l===s.length-1)return[];u=-1,d="after"}else if("next"===n){if(l===s.length-1)return[];u=l,d="after"}else if("previous"===n){if(0===l)return[];u=l-1,d="before"}return[nf(r,nm(l,l+1)),nf(r,ng(a,d,u))]}e.s(["get",0,nR,"getArrayDuplicatePatches",0,function(e,t,n="after"){let{path:r,key:i}=nO(e);return[nf(r,ng({...nR(t,e.path),_key:nP()},n,{_key:i}))]},"getArrayInsertPatches",0,function(e,t,n){let{path:r,key:i}=nO(e);return[nf(r,ng([{_type:t,_key:nP()}],n,{_key:i}))]},"getArrayItemKeyAndParentPath",0,nO,"getArrayMovePatches",0,nB,"getArrayRemovePatches",0,function(e,t){let{path:n,key:r}=nO(e),i=nR(t,n).findIndex(e=>e._key===r);return[nf(n,nm(i,i+1))]},"useDocuments",0,function(){let e,t,n,r=(0,t4.c)(7),i=n_();r[0]!==i?(e=e=>({id:e,commit:()=>{let{draftDoc:t}=nI(e,i);t.send({type:"submit"})},get:t=>{let{snapshot:n}=nI(e,i);return t?nR(n,t):n},getSnapshot:function(e,t){let{getSnapshot:n}=nI(e,t);return n}(e,i),patch:async(t,n)=>{let r=nI(e,i),{draftDoc:o,draftId:s,getSnapshot:a,publishedId:l}=r,{commit:u=!0}=n||{},d=await ("function"==typeof t?t({draftId:s,publishedId:l,get snapshot(){return r.snapshot},getSnapshot:a}):t),c=await a();if(!c)throw Error(`Snapshot for document "${e}" not found`);o.send({type:"mutate",mutations:[np({...c,_id:s}),nh(s,d)]}),u&&("object"==typeof u&&"debounce"in u?nH(()=>o.send({type:"submit"}),u.debounce)():o.send({type:"submit"}))}}),r[0]=i,r[1]=e):e=r[1];let o=e;r[2]!==i?(t=(e,t,n)=>{let{draftDoc:r}=nI(e,i),{commit:o}=n||{},s=void 0===o||o;r.send({type:"mutate",mutations:t}),s&&("object"==typeof s&&"debounce"in s?nH(()=>r.send({type:"submit"}),s.debounce)():r.send({type:"submit"}))},r[2]=i,r[3]=t):t=r[3];let s=t;return r[4]!==o||r[5]!==s?(n={getDocument:o,mutateDocument:s},r[4]=o,r[5]=s,r[6]=n):n=r[6],n},"useOptimisticActor",0,n_,"useOptimisticActorReady",0,function(){let e,t=(0,t4.c)(2),n=n_();return t[0]!==n?(e=nx(n),t[0]=n,t[1]=e):e=t[1],!e}],62966);let nN={lang:void 0,message:void 0,abortEarly:void 0,abortPipeEarly:void 0};function nW(e){return e||n?{lang:e?.lang??n?.lang,message:e?.message,abortEarly:e?.abortEarly??n?.abortEarly,abortPipeEarly:e?.abortPipeEarly??n?.abortPipeEarly}:nN}function nz(e,t,n,s,a){var l,u,d,c;let h,f=a&&"input"in a?a.input:n.value,p=a?.expected??e.expects??null,g=a?.received??("string"==(h=typeof f)?`"${f}"`:"number"===h||"bigint"===h||"boolean"===h?`${f}`:"object"===h||"function"===h?(f&&Object.getPrototypeOf(f)?.constructor?.name)??"null":h),m={kind:e.kind,type:e.type,input:f,expected:p,received:g,message:`Invalid ${t}: ${p?`Expected ${p} but r`:"R"}eceived ${g}`,requirement:e.requirement,path:a?.path,issues:a?.issues,lang:s.lang,abortEarly:s.abortEarly,abortPipeEarly:s.abortPipeEarly},y="schema"===e.kind,v=a?.message??e.message??(l=e.reference,u=m.lang,o?.get(l)?.get(u))??(y?(d=m.lang,i?.get(d)):null)??s.message??(c=m.lang,r?.get(c));void 0!==v&&(m.message="function"==typeof v?v(m):v),y&&(n.typed=!1),n.issues?n.issues.push(m):n.issues=[m]}let nD=new WeakMap;function nF(e){let t=nD.get(e);return t||(t={version:1,vendor:"valibot",validate:t=>e["~run"]({value:t},nW())},nD.set(e,t)),t}var nZ=class extends Error{constructor(e){super(e[0].message),this.name="ValiError",this.issues=e}};
3function nU(e,t){return{kind:"validation",type:"min_length",reference:nU,async:!1,expects:`>=${e}`,requirement:e,message:t,"~run"(e,t){return e.typed&&e.value.length<this.requirement&&nz(this,"length",e,t,{received:`${e.value.length}`}),e}}}let nq={abortEarly:!0};function nG(e,t,n){return"function"==typeof e.fallback?e.fallback(t,n):e.fallback}function nY(e,t,n){return"function"==typeof e.default?e.default(t,n):e.default}function nX(e,t){return{kind:"schema",type:"object",reference:nX,expects:"Object",async:!1,entries:e,message:t,get"~standard"(){return nF(this)},"~run"(e,t){let n=e.value;if(n&&"object"==typeof n)for(let r in e.typed=!0,e.value={},this.entries){let i=this.entries[r];if(r in n||("exact_optional"===i.type||"optional"===i.type||"nullish"===i.type)&&void 0!==i.default){let o=r in n?n[r]:nY(i),s=i["~run"]({value:o},t);if(s.issues){let i={type:"object",origin:"value",input:n,key:r,value:o};for(let t of s.issues)t.path?t.path.unshift(i):t.path=[i],e.issues?.push(t);if(e.issues||(e.issues=s.issues),t.abortEarly){e.typed=!1;break}}s.typed||(e.typed=!1),e.value[r]=s.value}else if(void 0!==i.fallback)e.value[r]=nG(i);else if("exact_optional"!==i.type&&"optional"!==i.type&&"nullish"!==i.type&&(nz(this,"key",e,t,{input:void 0,expected:`"${r}"`,path:[{type:"object",origin:"key",input:n,key:r,value:n[r]}]}),t.abortEarly))break}else nz(this,"type",e,t);return e}}}function nK(e,t){return{kind:"schema",type:"optional",reference:nK,expects:`(${e.expects} | undefined)`,async:!1,wrapped:e,default:t,get"~standard"(){return nF(this)},"~run"(e,t){return void 0===e.value&&(void 0!==this.default&&(e.value=nY(this,e,t)),void 0===e.value)?(e.typed=!0,e):this.wrapped["~run"](e,t)}}}function nJ(e){return{kind:"schema",type:"string",reference:nJ,expects:"string",async:!1,message:e,get"~standard"(){return nF(this)},"~run"(e,t){return"string"==typeof e.value?e.typed=!0:nz(this,"type",e,t),e}}}function nQ(...e){return{...e[0],pipe:e,get"~standard"(){return nF(this)},"~run"(t,n){for(let r of e)if("metadata"!==r.kind){if(t.issues&&("schema"===r.kind||"transformation"===r.kind)){t.typed=!1;break}t.issues&&(n.abortEarly||n.abortPipeEarly)||(t=r["~run"](t,n))}return t}}}function n1(e,t,n){let r=e["~run"]({value:t},nW(n));return{typed:r.typed,success:!r.issues,output:r.value,issues:r.issues}}let n0=nQ(nJ(),nU(1)),n5=nK(n0),n2=nX({baseUrl:n0,dataset:n5,id:n0,path:n0,projectId:n5,tool:n5,type:n5,workspace:n5,perspective:{...tv=nJ(),fallback:"drafts",get"~standard"(){return nF(this)},"~run"(e,t){let n=tv["~run"](e,t);return n.issues?{typed:!0,value:nG(this,n,t)}:n}}});function n3(e){return!n2["~run"]({value:e},nq).issues}function n4(e){let t="";for(let n of e){if("string"==typeof n){t&&(t+="."),t+=n;continue}if("number"==typeof n){t&&(t+=":"),t+=`${n}`;continue}if(null!==n&&Array.isArray(n)){t&&(t+=":"),t+=`${n.join(",")}}`;continue}if(n._key){t&&(t+=":"),t+=`${n._key}`;continue}}return t}let n6=/^([\w-]+):(0|[1-9][0-9]*)$/,n8=/^([\w-]+):([0-9]+),([0-9]+)$/,n9=/^([\w-]+):([\w-]+)$/,n7=nQ(nJ(),nU(1)),re=nX({origin:n7,href:n7,data:nK(function e(t,n,r){return{kind:"schema",type:"record",reference:e,expects:"Object",async:!1,key:t,value:n,message:r,get"~standard"(){return nF(this)},"~run"(e,t){let n=e.value;if(n&&"object"==typeof n){for(let r in e.typed=!0,e.value={},n)if(Object.prototype.hasOwnProperty.call(n,r)&&"__proto__"!==r&&"prototype"!==r&&"constructor"!==r){let i=n[r],o=this.key["~run"]({value:r},t);if(o.issues){let s={type:"object",origin:"key",input:n,key:r,value:i};for(let t of o.issues)t.path=[s],e.issues?.push(t);if(e.issues||(e.issues=o.issues),t.abortEarly){e.typed=!1;break}}let s=this.value["~run"]({value:i},t);if(s.issues){let o={type:"object",origin:"value",input:n,key:r,value:i};for(let t of s.issues)t.path?t.path.unshift(o):t.path=[o],e.issues?.push(t);if(e.issues||(e.issues=s.issues),t.abortEarly){e.typed=!1;break}}o.typed&&s.typed||(e.typed=!1),o.typed&&(e.value[o.value]=s.value)}}else nz(this,"type",e,t);return e}}}(nJ(),function e(){return{kind:"schema",type:"unknown",reference:e,expects:"unknown",async:!1,get"~standard"(){return nF(this)},"~run":e=>(e.typed=!0,e)}}()))});function rt(e){let t=n1(n2,e);if(t.success)return t.output;let n=n1(re,e);if(n.success)try{let e=new URL(n.output.href,typeof document>"u"?"https://example.com":location.origin);return e.searchParams.size>0?function(e,t){let n=e["~run"]({value:t},nW(void 0));if(n.issues)throw new nZ(n.issues);return n.value}
3(n2,Object.fromEntries(e.searchParams.entries())):n.output}catch(e){return console.error("Failed to parse sanity node",e),n.output}}function rn(e){if("object"==typeof e&&null!==e)return rt(e);try{let t=JSON.parse(e);return rt(t)}catch{let t=e.split(";").reduce((e,t)=>{let[n,r]=t.split("=");if(!n||t.includes("=")&&!r)return e;switch(n){case"id":e.id=r;break;case"type":e.type=r;break;case"path":e.path=t6.studioPath.toString(function(e){let t=[];for(let n of e.split(".")){let e=n6.exec(n);if(e){t.push(e[1],Number(e[2]));continue}let r=n8.exec(n);if(r){t.push(r[1],[Number(r[2]),Number(r[3])]);continue}let i=n9.exec(n);if(i){t.push(i[1],{_key:i[2]});continue}t.push(n)}return t}(r));break;case"base":e.baseUrl=decodeURIComponent(r);break;case"perspective":e.perspective=r;break;case"tool":e.tool=r;break;case"workspace":e.workspace=r;break;case"projectId":e.projectId=r;break;case"dataset":e.dataset=r}return e},{});if(n3(t))return t;return}}e.s(["createDataAttribute",0,function e(t){function n(e){return e?"string"==typeof e?t6.studioPath.fromString(e):e:[]}function r(e){if(!e.id)throw Error("`id` is required to create a data attribute");if(!e.type)throw Error("`type` is required to create a data attribute");if(!e.path||!e.path.length)throw Error("`path` is required to create a data attribute");return function(e){let{id:t,path:n,baseUrl:r,tool:i,workspace:o,type:s}=e;return n3(e)?[["id",(0,t6.getPublishedId)(t)],["type",s],["path",n4(t6.studioPath.fromString(n))],["base",encodeURIComponent(r)],["workspace",o],["tool",i]].filter(([,e])=>!!e).map(e=>e.join("=")).join(";"):void 0}({baseUrl:e.baseUrl||"/",workspace:e.workspace,tool:e.tool,type:e.type,id:e.id,path:"string"==typeof e.path?e.path:t6.studioPath.toString(e.path),perspective:e.perspective})}let i=e=>r({...t,path:[...n(t.path),...n(e)]});return i.toString=function(){return r(t)},i.combine=function(n){return e({...t,...n})},i.scope=function(r){return e({...t,path:[...n(t.path),...n(r)]})},i},"decodeSanityNodeData",0,rn,"pathToUrlString",0,n4],89955);var rr={0:8203,1:8204,2:8205,3:8290,4:8291,5:8288,6:65279,7:8289,8:119155,9:119156,a:119157,b:119158,c:119159,d:119160,e:119161,f:119162},ri={0:8203,1:8204,2:8205,3:65279},ro={0:String.fromCodePoint(ri[0]),1:String.fromCodePoint(ri[1]),2:String.fromCodePoint(ri[2]),3:String.fromCodePoint(ri[3])},rs=[,,,,].fill(String.fromCodePoint(ri[0])).join(""),ra=Object.fromEntries(Object.entries(ro).map(e=>[e[1],+e[0]])),rl=Object.fromEntries(Object.entries(rr).map(e=>e.reverse())),ru=`${Object.values(rr).map(e=>`\\u{${e.toString(16)}}`).join("")}`,rd=RegExp(`[${ru}]{4,}`,"gu");let rc=[];for(let e=0;e<256;++e)rc.push((e+256).toString(16).slice(1));let rh=new Uint8Array(16);var rf="u">typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);function rp(e,t,n){return rf&&!e?rf():function(e){let t=(e=e||{}).random??e.rng?.()??function(){if(!s){if(typeof crypto>"u"||!crypto.getRandomValues)throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");s=crypto.getRandomValues.bind(crypto)}return s(rh)}();if(t.length<16)throw Error("Random bytes length must be >= 16");return t[6]=15&t[6]|64,t[8]=63&t[8]|128,function(e,t=0){return(rc[e[t+0]]+rc[e[t+1]]+rc[e[t+2]]+rc[e[t+3]]+"-"+rc[e[t+4]]+rc[e[t+5]]+"-"+rc[e[t+6]]+rc[e[t+7]]+"-"+rc[e[t+8]]+rc[e[t+9]]+"-"+rc[e[t+10]]+rc[e[t+11]]+rc[e[t+12]]+rc[e[t+13]]+rc[e[t+14]]+rc[e[t+15]]).toLowerCase()}(t)}(e)}function rg(e){let t=e.getBoundingClientRect();return{x:t.x+scrollX,y:t.y+scrollY,w:t.width,h:t.height}}function rm(e,t,n){return"x"===n?{x:e.x+t,y:e.y,w:e.w-2*t,h:e.h}:{x:e.x,y:e.y+t,w:e.w,h:e.h-2*t}}function ry(e,t){return e.x===t.x&&e.y===t.y&&e.w===t.w&&e.h===t.h}function rv(e,t){let n=e.x-t.x,r=e.y-t.y;return Math.sqrt(n*n+r*r)}function rw(e,t,n){let r,i,o={x:e.x1,y:e.y1};if(t.some(e=>{var t;let r,i;return t=rm(e,Math.min(e.w,e.h)/10,"horizontal"===n?"x":"y"),r=o.x>=t.x&&o.x<=t.x+t.w,i=o.y>=t.y&&o.y<=t.y+t.h,r&&i}))return null;for(let s of t){let t=function(e,t){let n=[{x1:t.x,y1:t.y,x2:t.x+t.w,y2:t.y},{x1:t.x+t.w,y1:t.y,x2:t.x+t.w,y2:t.y+t.h},{x1:t.x+t.w,y1:t.y+t.h,x2:t.x,y2:t.y+t.h},{x1:t.x,y1:t.y+t.h,x2:t.x,y2:t.y}],r=[];for(let t=0;t<n.length;t++){let i=function(e,t){let{x1:n,y1:r,x2:i,y2:o}=e,{x1:s,y1:a,x2:l,y2:u}=t;if(n===i&&r===o||s===l&&a===u)return!1;let d=(u-a)*(i-n)-(l-s)*(o-r);if(0===d)return!1;let c=((l-s)*(r-a)-(u-a)*(n-s))/d,h=((i-n)*(r-a)-(o-r)*(n-s))/d;return!(c<0)&&!(c>1)&&!(h<0)&&!(h>1)&&{x:n+c*(i-n),y:r+c*(o-r)}}(e,n[t]);if(i){let e=!1;for(let t=0;t<r.length;t++)r[t].x===i.x&&r[t].y===i.y&&(e=!0);e||r.push(i)}}return 0!==r.length&&r.sort((t,n)=>rv(t,{x:e.x1,y:e.y1})-rv(n,{x:e.x1,y:e.y1}))}(e,rm(s,Math.min(s.w,s.h)/10,"horizontal"===n?"x":"y"));if(t){let e=t[0];r?rv(o,e)<rv(o,r)&&(r=e,i=s):(r=e,i=s)}}return i||null}function rb(e,t,n){let{x:r,y:i,w:o,h:s}=e,{x:a,y:l}=n;return{x:a+(r-a)*t,y:l+(i-l)*t,w:o*t,h:s*t}}function rx(e){let t=Math.max(0,Math.min(...e.map(e=>e.y))),n=Math.min(document.body.scrollHeight,Math.max(...e.map(e=>e.y+e.h)));return{min:t,max:n,height:n-t}}function rC(e,t){return t.find(t=>ry(rg(t.elements.element),e))?.sanity}
3function rk(e,t,n){return Object.values(t).every(e=>null===e)?null:"horizontal"===n?{left:t.left?{rect:t.left,sanity:rC(t.left,e)}:null,right:t.right?{rect:t.right,sanity:rC(t.right,e)}:null}:{top:t.top?{rect:t.top,sanity:rC(t.top,e)}:null,bottom:t.bottom?{rect:t.bottom,sanity:rC(t.bottom,e)}:null}}function rj(e){let t=document.body.getBoundingClientRect();return{x:Math.max(t.x,Math.min(e.clientX,t.x+t.width)),y:e.clientY+window.scrollY}}function rM(e,t,n){let r=rg(t),i=[...t.querySelectorAll(":where(h1, h2, h3, h4, p, a, img, span, button):not(:has(*))")];e.x<=r.x&&(e.x=r.x),e.x>=r.x+r.w&&(e.x=r.x+r.w),e.y>=r.y+r.h&&(e.y=r.y+r.h),e.y<=r.y&&(e.y=r.y);let o=i.map(e=>{let t=rb(rg(e),n,{x:r.x,y:r.y});return{x:t.x-r.x,y:t.y-r.y,w:t.w,h:t.h,tagName:e.tagName}});return{offsetX:(r.x-e.x)*n,offsetY:(r.y-e.y)*n,w:r.w*n,h:r.h*n,maxWidth:r.w*n*.75,childRects:o}}async function rL(e,t,n,r,i){return new Promise(o=>{e.addEventListener("transitionend",()=>{setTimeout(()=>{r({type:"overlay/dragEndMinimapTransition"})},2*i),o()},{once:!0}),r({type:"overlay/dragStartMinimapTransition"}),r({type:"overlay/dragToggleMinimap",display:!0}),document.body.style.overflow="hidden",document.body.style.height="100%",document.documentElement.style.overflow="initial",document.documentElement.style.height="100%",setTimeout(()=>{e.style.transformOrigin="50% 0px",e.style.transition="transform 150ms ease",e.style.transform=`translate3d(0px, ${-n+scrollY}px, 0px) scale(${t})`},25)})}function rS(e){let t,n,r=(t=Math.max(0,Math.min(...e.map(e=>e.x))),{min:t,max:n=Math.min(document.body.offsetWidth,Math.max(...e.map(e=>e.x+e.w))),width:n-t}),i=rx(e),o=r.min>8&&r.min+r.width<=window.innerWidth-8,s=i.min>8&&i.min+i.height<=document.body.scrollHeight-8,a=o&&s;return{x:a?r.min-8:r.min,y:a?i.min-8:i.min,w:a?r.width+16:r.width,h:a?i.height+16:i.height}}async function rE(e,t,n,r,i,o){return new Promise(s=>{if(1===new DOMMatrix(window.getComputedStyle(t).transform).a)return;let a=n-window.innerHeight,l=scrollY;(e-=window.innerHeight/2)<0&&(e=0),t.addEventListener("transitionend",()=>{t.style.transition="none",t.style.transform="none",scrollTo({top:e,behavior:"instant"}),setTimeout(()=>{r({type:"overlay/dragEndMinimapTransition"}),r({type:"overlay/dragToggleMinimap",display:!1})},2*i),s()},{once:!0}),r({type:"overlay/dragStartMinimapTransition"}),t.style.transform=`translateY(${Math.max(l-e,-a+l)}px) scale(1)`,o&&(document.body.style.overflow=o.body.overflow,document.body.style.height=o.body.height,document.documentElement.style.overflow=o.documentElement.overflow,document.documentElement.style.height=o.documentElement.height)})}let rR=!1,rV={y:0},r_={x:0,y:0},r$=typeof document>"u"?0:document.documentElement.scrollHeight,rA=null,rT=e=>e instanceof HTMLElement||e instanceof SVGElement,rH=e=>e&&rT(e)?e.dataset?.sanityOverlayElement?e:rH(e.parentElement):null;function rI(e){return rd.lastIndex=0,rd.test(e)}function rP(e,t=!1){return rI(e)?function(e,t=!1){try{let n=function(e){let t=e.match(rd);if(t)return function(e,t=!1){let n=Array.from(e),r=1/0,i=-1;for(let e=0;e<n.length;++e)n[e]===rs[0]&&n[e+1]===rs[1]&&n[e+2]===rs[2]&&n[e+3]===rs[3]&&(r=Math.min(r,e),i=Math.max(i,e));if(-1===i)return function(e,t){var n;let r=[];for(let t=.5*e.length;t--;){let n=`${rl[e[2*t].codePointAt(0)]}${rl[e[2*t+1].codePointAt(0)]}`;r.unshift(String.fromCharCode(parseInt(n,16)))}let i=[],o=[r.join("")],s=10;for(;o.length;){let e=o.shift();try{if(i.push(JSON.parse(e)),t)break}catch(r){if(!s--)throw r;let t=+(null==(n=r.message.match(/\sposition\s(\d+)$/))?void 0:n[1]);if(!t)throw r;o.unshift(e.substring(0,t),e.substring(t))}}return i}(n,t);for(let e=r;e<=i;++e)if(!((n.length-e)%4))try{let r=n.slice(e+4),i=new Uint8Array(r.length/4);for(let e=0;e<i.length;e++)i[e]=ra[r[4*e]]<<6|ra[r[4*e+1]]<<4|ra[r[4*e+2]]<<2|ra[r[4*e+3]];let o=new TextDecoder().decode(i);if(t){let e=o.indexOf("\0");return -1===e&&(e=o.length),[JSON.parse(o.slice(0,e))]}return o.split("\0").filter(Boolean).map(e=>JSON.parse(e))}catch{}return[]}(t[0],!0)[0]}(e);return n&&"sanity.io"===n.origin?(t&&(n.href=n.href?.replace(".alt","")),n):null}catch(t){return console.error("Failed to decode stega for string: ",e,"with the original error: ",t),null}}(e,t):null}function rO(e){return"path"in e}function rB(e){if(!e.length||!e.map(e=>rO(e)).every((e,t,n)=>e===n[0]))return;if(!rO(e[0]))return e[0];let t=e.filter(rO),n=e[0],r=["projectId","dataset","id","baseUrl","workspace","tool"];for(let e=1;e<t.length;e++){let i=t[e];if(r.some(e=>i[e]!==n?.[e])){n=void 0;break}n={...n,path:function(e,t){let n=e.split("."),r=t.split("."),i=Math.min(n.length,r.length);return n=n.slice(0,i).reverse(),r=r.slice(0,i).reverse(),n.reduce((e,t,n
3)=>t===r[n]?[...e,t]:[],[]).reverse().join(".")}(n.path,i.path)}}return n}function rN(e){let t=e.lastIndexOf(".");return e.substring(t,e.length).includes("[")}function rW(e){if(!rN(e))return null;let t=e.split(".");return t[t.length-1]=t[t.length-1].replace(/\[.*?\]/g,"[]"),t.join(".")}function rz(e,t){return!!rN(e.path)&&!!rN(t.path)&&rW(e.path)===rW(t.path)}function rD(e,t,n,r){if(!e.getAttribute("data-sanity")||e.getAttribute("data-sanity-drag-disable")||!t||!rO(t)||!rN(t.path))return null;let i=e.getAttribute("data-sanity-drag-group"),o=[...n].reduce((e,n)=>{let o=r.get(n),s=n.getAttribute("data-sanity-drag-disable"),a=n.getAttribute("data-sanity-drag-group"),l=null!==n.getAttribute("data-sanity");return o?.sanity&&!s&&rO(o.sanity)&&rz(t,o.sanity)&&(null===i||i===a)&&l&&e.push(o),e},[]);return o.length<=1?null:o}let rF=(0,nC.createContext)(null);e.s(["SharedStateContext",0,rF,"createOverlayController",0,function({handler:e,overlayElement:t,inFrame:n,inPopUp:r,optimisticActorReady:i}){let o=!1,s=new Map,a=new WeakMap,l=new Set,u=new WeakMap,d=new WeakMap,c,h,f,p=!1,g=[],m=()=>g[g.length-1];function y(e,t){e.removeEventListener("click",t.click,{capture:!0}),e.removeEventListener("contextmenu",t.contextmenu,{capture:!0}),e.removeEventListener("mousemove",t.mousemove,{capture:!0}),e.removeEventListener("mousedown",t.mousedown,{capture:!0}),e.removeEventListener("mouseenter",t.mouseenter),e.removeEventListener("mouseleave",t.mouseleave)}function v({id:t,elements:n,handlers:r}){let{element:i,measureElement:o}=n;i.addEventListener("click",r.click,{capture:!0}),i.addEventListener("contextmenu",r.contextmenu,{capture:!0}),i.addEventListener("mousemove",r.mousemove,{once:!0,capture:!0}),i.addEventListener("mousedown",r.mousedown,{capture:!0}),c.observe(o),e({type:"element/activate",id:t})}function w({id:t,elements:n,handlers:r}){let{element:i,measureElement:o}=n;y(i,r),c.unobserve(o),g=g.filter(e=>e!==i),e({type:"element/deactivate",id:t})}function b(t){if(!(!n&&!r||!i))for(let n of g){if(t===n){let n=a.get(t)?.sanity;if(!n||!rO(n))return;if(rD(t,n,l,a)){let n=t.style.cursor;n&&d.set(t,n),e({type:"overlay/setCursor",element:t,cursor:"move"});continue}}x(n)}}function x(t){let n=d.get(t);e({type:"overlay/setCursor",element:t,cursor:n})}function C(d){for(let c of function e(t){let n=[];function r(e,t,n,r){let i=rn(t);if(!i)return;let o=function e(t){let{display:n}=window.getComputedStyle(t);if("inline"!==n)return t;let r=t.parentElement;return r?e(r):null}(e);if(o)return{elements:{element:e,measureElement:o},sanity:i,reason:n,preventGrouping:r}}if(t)for(let i of t.childNodes)!function t(i,o){let s=function(t){let{nodeType:n,parentElement:i,textContent:o}=t;if(t.nodeType===Node.ELEMENT_NODE&&t.dataset?.sanityEditTarget!==void 0){let n=rB(e(t).map(e=>"element"===e.type?e.commonSanity:void 0).filter(e=>void 0!==e));if(n)return{reason:"edit-target",elements:{element:t,measureElement:t},sanity:n}}else if(n===Node.TEXT_NODE&&i&&o){let e=rP(o);return e?r(i,e,"stega-text",!0):void 0}else if(t.nodeType===Node.ELEMENT_NODE){if("SCRIPT"===t.tagName||"SANITY-VISUAL-EDITING"===t.tagName)return;if(t.dataset?.sanity)return r(t,t.dataset.sanity,"data-attribute",!!(t.textContent&&rI(t.textContent)));if(t.dataset?.sanityEditInfo)return r(t,t.dataset.sanityEditInfo,"data-attribute",!!(t.textContent&&rI(t.textContent)));if("IMG"===t.tagName){let e=rP(t.alt,!0);return e?r(t,e,"stega-attribute"):void 0}if("TIME"===t.tagName){let e=rP(t.dateTime,!0);return e?r(t,e,"stega-attribute"):void 0}if("SVG"===t.tagName.toUpperCase()){if(!t.ariaLabel)return;let e=rP(t.ariaLabel,!0);return e?r(t,e,"stega-attribute"):void 0}}}(i),a=o;if(i.nodeType===Node.ELEMENT_NODE&&i.dataset?.sanityEditGroup!==void 0&&(a={type:"group",elements:{element:i,measureElement:i},targets:[]},n.push(a)),s){let e={elements:s.elements,sanity:s.sanity,reason:s.reason};a&&!s.preventGrouping?a.targets.push(e):n.push({elements:s.elements,type:"element",targets:[e]})}if(i.nodeType===Node.ELEMENT_NODE&&"IMG"!==i.tagName&&"SCRIPT"!==i.tagName&&"SANITY-VISUAL-EDITING"!==i.tagName)for(let e of i.childNodes)t(e,a)}(i,void 0);return n.map(e=>{if(0===e.targets.length&&"group"===e.type)return{...e,commonSanity:void 0};let t=1===e.targets.length?e.targets[0].sanity:rB(e.targets.map(({s
3anity:e})=>e).filter(e=>void 0!==e))||e.targets[0].sanity;return t?{...e,commonSanity:t}:null}).filter(e=>null!==e)}(d)){if("group"===c.type){for(let e of c.targets){let t=a.get(e.elements.element);t&&"element"===t.type&&k(e.elements.element)}0===c.targets.length&&k(c.elements.element)}if(!c.commonSanity)continue;let{element:d}=c.elements;a.has(d)?function(t){let{element:n}=t.elements,r=a.get(n);r&&(a.set(n,{...r,sanity:t.commonSanity}),e({type:"element/update",elementType:r.type,id:r.id,rect:rg(n),sanity:t.commonSanity,targets:t.targets.map(e=>({sanity:e.sanity,element:e.elements.element}))}))}(c):function({type:d,elements:c,commonSanity:f,targets:y}){let{element:w,measureElement:C}=c,k={click(t){let r=t.target;if(w===m()&&w.contains(r)){n&&(t.preventDefault(),t.stopPropagation());let r=a.get(w)?.sanity;r&&!p&&e({type:"element/click",id:j,sanity:r})}},contextmenu(t){if(!("path"in f)||!n&&!r||!i||!f.path.split(".").pop()?.includes("[_key=="))return;let o=t.target;w===m()&&w.contains(o)&&((n||r)&&(t.preventDefault(),t.stopPropagation()),e({type:"element/contextmenu",id:j,position:{x:t.clientX,y:t.clientY},sanity:f}))},mousedown(t){if(t.preventDefault(),t.currentTarget!==g.at(-1)||w.getAttribute("data-sanity-drag-disable")||!n&&!r||!i)return;let o=a.get(w)?.sanity;if(!o||!rO(o)||!rN(o.path))return;let s=rD(w,f,l,a);s&&function(e){var t;let{mouseEvent:n,element:r,overlayGroup:i,handler:o,target:s,onSequenceStart:a,onSequenceEnd:l}=e;if(0!==n.button)return;window.focus();let u=i.map(e=>rg(e.elements.element)),d=r.getAttribute("data-sanity-drag-flow")||((t=u).some(e=>t.filter(t=>!ry(e,t)).some(t=>e.y===t.y))?"horizontal":"vertical"),c=r.getAttribute("data-sanity-drag-group"),h=!!r.getAttribute("data-sanity-drag-minimap-disable"),f=!!r.getAttribute("data-sanity-drag-prevent-default"),p=r.getAttribute("data-unstable_sanity-drag-document-height"),g=r.getAttribute("data-unstable_sanity-drag-group-height"),m=null,y=rj(n),v=document.body,{minYScaled:w,scaleFactor:b}=function(e,t){let n=t||rx(e).height,r=(n+=200)>window.innerHeight?window.innerHeight/n:1,{min:i}=rx(e.map(e=>rb(e,r,{x:window.innerWidth/2,y:0})));return{scaleFactor:r,minYScaled:i-100*r}}(u,g?~~g:null),x=!1,C=!1,k=!0;rR||(rA={body:{overflow:window.getComputedStyle(document.body).overflow,height:window.getComputedStyle(document.body).height},documentElement:{overflow:window.getComputedStyle(document.documentElement).overflow,height:window.getComputedStyle(document.documentElement).height}},r$=p?~~p:document.documentElement.scrollHeight);let j=setInterval(()=>{u=i.map(e=>rg(e.elements.element))},150),M=()=>{b>=1||(o({type:"overlay/dragUpdateSkeleton",skeleton:rM(r_,r,b)}),o({type:"overlay/dragToggleMinimapPrompt",display:!1}),rL(v,b,w,o,150).then(()=>{setTimeout(()=>{o({type:"overlay/dragUpdateGroupRect",groupRect:rS(u)})},300)}))},L=e=>{Math.abs(e.deltaY)>=10&&b<1&&!rR&&!C&&!h&&k&&(o({type:"overlay/dragToggleMinimapPrompt",display:!0}),C=!0),!e.shiftKey||rR||h||(window.dispatchEvent(new CustomEvent("unstable_sanity/dragApplyMinimap")),rR=!0,setTimeout(()=>{M()},50))},S=e=>{if(e.preventDefault(),rV=function(e){let t=document.body,n=window.getComputedStyle(t).transform;if("none"===n)return{x:e.x,y:e.y};let r=new DOMMatrix(n).inverse(),i=new DOMPoint(e.x,e.y).matrixTransform(r);return{x:i.x,y:i.y}}(r_=rj(e)),4>Math.abs(rv(r_,y)))return;if(!x){let e=rS(u),t=rM(r_,r,1);o({type:"overlay/dragStart",flow:d}),o({type:"overlay/dragUpdateSkeleton",skeleton:t}),o({type:"overlay/dragUpdateGroupRect",groupRect:e}),x=!0,a()}o({type:"overlay/dragUpdateCursorPosition",x:r_.x,y:r_.y}),!e.shiftKey||rR||h||(window.dispatchEvent(new CustomEvent("unstable_sanity/dragApplyMinimap")),rR=!0,setTimeout(()=>{M()},50));let t=function(e,t,n){if("horizontal"===n){let r={x1:e.x,y1:e.y,x2:e.x-1e8,y2:e.y},i={x1:e.x,y1:e.y,x2:e.x+1e8,y2:e.y};return{left:rw(r,t,n),right:rw(i,t,n)}}{let r={x1:e.x,y1:e.y,x2:e.x,y2:e.y-1e8},i={x1:e.x,y1:e.y,x2:e.x,y2:e.y+1e8};return{top:rw(r,t,n),bottom:rw(i,t,n)}}}(r_,u,d);JSON.stringify(m)!==JSON.stringify(t)&&o({type:"overlay/dragUpdateInsertPosition",insertPosition:rk(i,m=t,d)})},E=()=>{k=!1,o({type:"overlay/dragEnd",target:s,insertPosition:m?rk(i,m,d):null,dragGroup:c,flow:d,preventInsertDefault:f}),C&&o({type:"overlay/dragToggleMinimapPrompt",display:!1}),rR||(clearInterval(j),l(),A(),$()),_()},R=e=>{"Shift"===e.key&&rR&&(rR=!1,o({type:"overlay/dragUpdateSkeleton",skeleton:rM(r_,r,1/b)}),window.dispatchEvent(new CustomEvent("unstable_sanity/dragResetMinimap")),setTimeout(()=>{rE(rV.y,v,r$,o,150,rA)},50),o({type:"overlay/dragUpdateGroupRect",groupRect:null}),k||(clearInterval(j),_(),A(),$(),l()))},V=()=>{o({type:"overlay/dragUpdateGroupRect",groupRect:null}),window.dispatchEvent(new CustomEvent("unstable_sanity/dragResetMinimap")),setTimeout(()=>{rE(rV.y,v,r$,o,150,rA).then(()=>{rR=!1})},50),clearInterval(j),_(),A(),$(),l()},_=()=>{window.removeEventListener("mousemove",S),window.removeEventListener("wheel",L),window.removeEventListener("mouseup",E)},$=()=>{window.removeEventListener("keyup",R)},A=()=>{window.removeEventListener("blur",V)};window.addEventListener("blur",V),window.addEventListener("keyup",R),window.addEventListener("wheel",L),window.addEventListener("mousemove",S),window.addEventListener("mouseup",E)}({element:w,handler:e,mouseEvent:t,overlayGroup:s,target:o,onSequenceStart:()=>{p=!0},onSequenceEnd:()=>{setTimeout(()=>{p=!1},250)}})},mousemove(e){k.mouseenter(e);let t=e.currentTarget;t&&(t.addEventListener("mouseenter",k.mouseenter),t.addEventListener("mouseleave",k.mouseleave))},mouseenter(){document.querySelector("vercel-live-feedback")&&w.closest("[data-vercel-edit-info]")||w.closest("[data-vercel-edit-target]")||(g.push(w),e({type:"element/mouseenter",id:j,rect:rg(w)}),b(w))},mouseleave(n){function r(){g.pop();let t=m();if(e({type:"element/mouseleave",id:j}),t){b(t);let n=a.get(t);n&&e({type:"element/mouseenter",id:n.id,rect:rg(t)})}x(w)}let{relatedTarget:i}=n,o=rH(i),s=t.contains(o);if(rT(o)&&s)return function e(t){let n=i=>{let{relatedTarget:o}=i;rH(o)?o&&rT(o)&&(t.removeEventListener("mouseleave",n),e(o)):(t.removeEventListener("mouseleave",n),r())};t.addEventListener("mouseleave",n)}(o);r()}},j=rp(),M={type:d,id:j,elements:c,sanity:f,handlers:k};l.add(w),u.set(C,w),s.set(j,w),a.set(w,M),h?.observe(w),e({type:"element/register",elementType:d,id:j,element:w,rect:rg(w),sanity:f,dragDisabled:!!w.getAttribute("data-sanity-drag-disable"),targets:y.map(e=>({sanity:e.sanity,element:e.elements.element}))}),o&&v(M)}(c)}}function k(t){let n=a.get(t);if(n){let{id:r,handlers:i}=n;y(t,i),c.unobserve(t),a.delete(t),l.delete(t),s.delete(r),e({type:"element/unregister",id:r})}}function j(t){let n=a.get(t);n&&e({type:"element/updateRect",id:n.id,rect:rg(t)})}function M(e){if(o)for(let t of e){let{target:e}=t,n=rT(e)&&a.get(e);n&&(t.isIntersecting?v(n):w(n))}}function L(t){let n=rH(t.target);if(n){"capture"===n.dataset.sanityOverlayElement&&(t.preventDefault(),t.stopPropagation());return}g=[],e({type:"overlay/blur"})}function S(){g=[],e({type:"overlay/reset-mouse-state"})}function E(){for(let e of l)j(e)}function R(t){"Escape"===t.key&&(g=[],e({type:"overlay/blur"}))}function V(e){let{target:t}=e;if(!(t===window.document||!rT(t)))for(let e of l)t.contains(e)&&j(e)}function _(){o||(h=new IntersectionObserver(M,{threshold:.3}
3),l.forEach(e=>h.observe(e)),e({type:"overlay/activate"}),o=!0)}function $(){o&&(h?.disconnect(),l.forEach(e=>{let t=a.get(e);t&&w(t)}),e({type:"overlay/deactivate"}),o=!1)}function A(t){let{id:n}=t.detail,r=s.get(n);if(!r)return;let i=a.get(r)?.sanity;i&&e({type:"element/click",id:n,sanity:i})}return window.document.fonts.ready.then(()=>{for(let e of l)j(e)}),window.addEventListener("click",L),window.addEventListener("contextmenu",L),window.addEventListener("sanity-overlay/exclusive-plugin-closed",S),window.addEventListener("sanity-overlay/label-click",A),window.addEventListener("keydown",R),window.addEventListener("resize",E),window.addEventListener("scroll",V,{capture:!0,passive:!0}),c=new ResizeObserver(function(e){for(let t of e){let e=t.target;if(rT(e)){let t=u.get(e);if(!t)return;j(t)}}}),(f=new MutationObserver(function(e){let n=!1;for(let r of e){let{target:e,type:i}=r,o="characterData"===i?e.parentElement:e;if(!(o===t||t.contains(o))&&(n=!0,rT(o))){let e=o.parentElement?.closest("[data-sanity-edit-group]")||null;C({childNodes:[rT(e)?e:o]})}}if(n)for(let e of l)e.isConnected||k(e),a.get(e)?.type!=="group"||e.hasAttribute("data-sanity-edit-group")||k(e)})).observe(document.body,{attributes:!0,characterData:!0,childList:!0,subtree:!0}),C(document.body),_(),{activate:_,deactivate:$,destroy:function(){window.removeEventListener("click",L),window.removeEventListener("contextmenu",L),window.removeEventListener("sanity-overlay/exclusive-plugin-closed",S),window.removeEventListener("sanity-overlay/label-click",A),window.removeEventListener("keydown",R),window.removeEventListener("resize",E),window.removeEventListener("scroll",V),f.disconnect(),c.disconnect(),l.forEach(e=>{k(e)}),s.clear(),l.clear(),g=[],$()}}},"sanityNodesExistInSameArray",0,rz,"useOptimistic",0,function(e,t){let n,r,i,o,s,a,l,u,d,c=(0,t4.c)(17),[h,f]=(0,nC.useState)(!0),[p,g]=(0,nC.useState)(e),[m,y]=(0,nC.useState)(null),[v,w]=(0,nC.useState)(e),b=n_(),x=(0,nC.useRef)(null);c[0]!==t?(n=()=>{x.current=(e,n)=>(Array.isArray(t)?t:[t]).reduce((t,n)=>n(t,{document:e.document,id:(0,t6.getPublishedId)(e.id),originalId:e.id,type:e.type}),n)},r=[t],c[0]=t,c[1]=n,c[2]=r):(n=c[1],r=c[2]),(0,nC.useInsertionEffect)(n,r),c[3]!==e?(i=()=>w(e),c[3]=e,c[4]=i):i=c[4];let C=(0,nC.useRef)(i);return c[5]!==e?(o=()=>{C.current=()=>w(e)},s=[e],c[5]=e,c[6]=o,c[7]=s):(o=c[6],s=c[7]),(0,nC.useInsertionEffect)(o,s),c[8]!==b?(a=()=>{let e;if(nx(b))return;let t=b.on("rebased.local",t=>{let n={document:t.document,id:t.id,originalId:(0,t6.getPublishedId)(t.id),type:"mutate"};g(e=>x.current?x.current(n,e):e),y(n),C.current(),f(!1),clearTimeout(e)}),n=b.on("pristine",()=>{e=setTimeout(()=>{(0,nC.startTransition)(()=>f(!0))},15e3)});return()=>{t.unsubscribe(),n.unsubscribe()}},l=[b],c[8]=b,c[9]=a,c[10]=l):(a=c[9],l=c[10]),(0,nC.useEffect)(a,l),c[11]!==m||c[12]!==v||c[13]!==e||c[14]!==h?(u=()=>{if(!h){if(!m)throw Error("No last event found when syncing passthrough");v!==e&&(0,nC.startTransition)(()=>{g(x.current?x.current(m,e):e),w(e)})}},d=[m,v,e,h],c[11]=m,c[12]=v,c[13]=e,c[14]=h,c[15]=u,c[16]=d):(u=c[15],d=c[16]),(0,nC.useEffect)(u,d),h?e:p},"v4",0,rp],23694)},236,(e,t,n)=>{t.exports=e.g&&e.g.Object===Object&&e.g},39088,(e,t,n)=>{var r=e.r(236),i="object"==typeof self&&self&&self.Object===Object&&self;t.exports=r||i||Function("return this")()},30353,(e,t,n)=>{t.exports=e.r(39088).Symbol},43436,(e,t,n)=>{var r=e.r(30353),i=Object.prototype,o=i.hasOwnProperty,s=i.toString,a=r?r.toStringTag:void 0;t.exports=function(e){var t=o.call(e,a),n=e[a];try{e[a]=void 0;var r=!0}catch(e){}var i=s.call(e);return r&&(t?e[a]=n:delete e[a]),i}},23243,(e,t,n)=>{var r=Object.prototype.toString;t.exports=function(e){return r.call(e)}},77684,(e,t,n)=>{var r=e.r(30353),i=e.r(43436),o=e.r(23243),s=r?r.toStringTag:void 0;t.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":s&&s in Object(e)?i(e):o(e)}},71223,(e,t,n)=>{var r=e.r(77684),i=e.r(50724);t.exports=function(e){if(!i(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},53789,(e,t,n)=>{t.exports=e.r(39088)["__core-js_shared__"]},69553,(e,t,n)=>{var r,i=e.r(53789),o=(r=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(sr
3c)_1."+r:"";t.exports=function(e){return!!o&&o in e}},76366,(e,t,n)=>{var r=Function.prototype.toString;t.exports=function(e){if(null!=e){try{return r.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},54368,(e,t,n)=>{var r=e.r(71223),i=e.r(69553),o=e.r(50724),s=e.r(76366),a=/^\[object .+?Constructor\]$/,l=Object.prototype,u=Function.prototype.toString,d=l.hasOwnProperty,c=RegExp("^"+u.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(e){return!(!o(e)||i(e))&&(r(e)?c:a).test(s(e))}},63958,(e,t,n)=>{t.exports=function(e,t){return null==e?void 0:e[t]}},41920,(e,t,n)=>{var r=e.r(54368),i=e.r(63958);t.exports=function(e,t){var n=i(e,t);return r(n)?n:void 0}},24251,(e,t,n)=>{var r=e.r(41920);t.exports=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}()},74548,(e,t,n)=>{var r=e.r(24251);t.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},64254,(e,t,n)=>{t.exports=function(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i<o;){var s=e[i];t(r,s,n(s),e)}return r}},36755,(e,t,n)=>{t.exports=function(e){return function(t,n,r){for(var i=-1,o=Object(t),s=r(t),a=s.length;a--;){var l=s[e?a:++i];if(!1===n(o[l],l,o))break}return t}}},98728,(e,t,n)=>{t.exports=e.r(36755)()},55803,(e,t,n)=>{t.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},77289,(e,t,n)=>{t.exports=function(e){return null!=e&&"object"==typeof e}},66645,(e,t,n)=>{var r=e.r(77684),i=e.r(77289);t.exports=function(e){return i(e)&&"[object Arguments]"==r(e)}},73250,(e,t,n)=>{var r=e.r(66645),i=e.r(77289),o=Object.prototype,s=o.hasOwnProperty,a=o.propertyIsEnumerable;t.exports=r(function(){return arguments}())?r:function(e){return i(e)&&s.call(e,"callee")&&!a.call(e,"callee")}},45350,(e,t,n)=>{t.exports=Array.isArray},24013,(e,t,n)=>{t.exports=function(){return!1}},56956,(e,t,n)=>{var r=e.r(39088),i=e.r(24013),o=n&&!n.nodeType&&n,s=o&&t&&!t.nodeType&&t,a=s&&s.exports===o?r.Buffer:void 0;t.exports=(a?a.isBuffer:void 0)||i},66397,(e,t,n)=>{var r=/^(?:0|[1-9]\d*)$/;t.exports=function(e,t){var n=typeof e;return!!(t=null==t?0x1fffffffffffff:t)&&("number"==n||"symbol"!=n&&r.test(e))&&e>-1&&e%1==0&&e<t}},98376,(e,t,n)=>{t.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=0x1fffffffffffff}},76602,(e,t,n)=>{var r=e.r(77684),i=e.r(98376),o=e.r(77289),s={};s["[object Float32Array]"]=s["[object Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object Uint16Array]"]=s["[object Uint32Array]"]=!0,s["[object Arguments]"]=s["[object Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object DataView]"]=s["[object Date]"]=s["[object Error]"]=s["[object Function]"]=s["[object Map]"]=s["[object Number]"]=s["[object Object]"]=s["[object RegExp]"]=s["[object Set]"]=s["[object String]"]=s["[object WeakMap]"]=!1,t.exports=function(e){return o(e)&&i(e.length)&&!!s[r(e)]}},33999,(e,t,n)=>{t.exports=function(e){return function(t){return e(t)}}},80156,(e,t,n)=>{var r=e.r(236),i=n&&!n.nodeType&&n,o=i&&t&&!t.nodeType&&t,s=o&&o.exports===i&&r.process;t.exports=function(){try{var e=o&&o.require&&o.require("util").types;if(e)return e;return s&&s.binding&&s.binding("util")}catch(e){}}()},3023,(e,t,n)=>{var r=e.r(76602),i=e.r(33999),o=e.r(80156),s=o&&o.isTypedArray;t.exports=s?i(s):r},58877,(e,t,n)=>{var r=e.r(55803),i=e.r(73250),o=e.r(45350),s=e.r(56956),a=e.r(66397),l=e.r(3023),u=Object.prototype.hasOwnProperty;t.exports=function(e,t){var n=o(e),d=!n&&i(e),c=!n&&!d&&s(e),h=!n&&!d&&!c&&l(e),f=n||d||c||h,p=f?r(e.length,String):[],g=p.length;for(var m in e)(t||u.call(e,m))&&!(f&&("length"==m||c&&("offset"==m||"parent"==m)||h&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||a(m,g)))&&p.push(m);return p}},63996,(e,t,n)=>{var r=Object.prototype;t.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||r)}},25717,(e,t,n)=>{t.exports=function(e,t){return function(n){return e(t(n))}}},42369,(e,t,n)=>{t.exports=e.r(25717)(Object.keys,Object)},48477,(e,t,n)=>{var r=e.r(63996),i=e.r(42369),o=Object.prototype.hasOwnProperty;t.exports=function(e){if(!r(e))return i(e);var t=[];for(var n in Object(e))o.call(e,n)&&"constructor"!=n&&t.push(n);return t}},51095,(e,t,n)=>{var r=e.r(71223),i=e.r(98376);t.exports=function(e){return null!=e&&i(e.length)&&!r(e)}},33679,(e,t,n)=>{var r=e.r(58877),i=e.r(48477),o=e.r(51095);t.exports=function(e){return o(e)?r(e):i(e)}},63799,(e,t,n)=>{var r=e.r(98728),i=e.r(33679);t.exports=function(e,t){return e&&r(e,t,i)}},73554,(e,t,n)=>{var r=e.r(51095);
3t.exports=function(e,t){return function(n,i){if(null==n)return n;if(!r(n))return e(n,i);for(var o=n.length,s=t?o:-1,a=Object(n);(t?s--:++s<o)&&!1!==i(a[s],s,a););return n}}},53587,(e,t,n)=>{var r=e.r(63799);t.exports=e.r(73554)(r)},5143,(e,t,n)=>{var r=e.r(53587);t.exports=function(e,t,n,i){return r(e,function(e,r,o){t(i,e,n(e),o)}),i}},65742,(e,t,n)=>{t.exports=function(){this.__data__=[],this.size=0}},25172,(e,t,n)=>{t.exports=function(e,t){return e===t||e!=e&&t!=t}},34314,(e,t,n)=>{var r=e.r(25172);t.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return -1}},19206,(e,t,n)=>{var r=e.r(34314),i=Array.prototype.splice;t.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():i.call(t,n,1),--this.size,!0)}},67763,(e,t,n)=>{var r=e.r(34314);t.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},23407,(e,t,n)=>{var r=e.r(34314);t.exports=function(e){return r(this.__data__,e)>-1}},53833,(e,t,n)=>{var r=e.r(34314);t.exports=function(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}},29039,(e,t,n)=>{var r=e.r(65742),i=e.r(19206),o=e.r(67763),s=e.r(23407),a=e.r(53833);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=s,l.prototype.set=a,t.exports=l},5400,(e,t,n)=>{var r=e.r(29039);t.exports=function(){this.__data__=new r,this.size=0}},86238,(e,t,n)=>{t.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},57831,(e,t,n)=>{t.exports=function(e){return this.__data__.get(e)}},77802,(e,t,n)=>{t.exports=function(e){return this.__data__.has(e)}},87362,(e,t,n)=>{t.exports=e.r(41920)(e.r(39088),"Map")},32760,(e,t,n)=>{t.exports=e.r(41920)(Object,"create")},50514,(e,t,n)=>{var r=e.r(32760);t.exports=function(){this.__data__=r?r(null):{},this.size=0}},97617,(e,t,n)=>{t.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=!!t,t}},57412,(e,t,n)=>{var r=e.r(32760),i=Object.prototype.hasOwnProperty;t.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(t,e)?t[e]:void 0}},23592,(e,t,n)=>{var r=e.r(32760),i=Object.prototype.hasOwnProperty;t.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:i.call(t,e)}},39004,(e,t,n)=>{var r=e.r(32760);t.exports=function(e,t){var n=this.__data__;return this.size+=+!this.has(e),n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},34421,(e,t,n)=>{var r=e.r(50514),i=e.r(97617),o=e.r(57412),s=e.r(23592),a=e.r(39004);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=s,l.prototype.set=a,t.exports=l},48994,(e,t,n)=>{var r=e.r(34421),i=e.r(29039),o=e.r(87362);t.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},24053,(e,t,n)=>{t.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},87994,(e,t,n)=>{var r=e.r(24053);t.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},96768,(e,t,n)=>{var r=e.r(87994);t.exports=function(e){var t=r(this,e).delete(e);return this.size-=!!t,t}},29932,(e,t,n)=>{var r=e.r(87994);t.exports=function(e){return r(this,e).get(e)}},92647,(e,t,n)=>{var r=e.r(87994);t.exports=function(e){return r(this,e).has(e)}},46644,(e,t,n)=>{var r=e.r(87994);t.exports=function(e,t){var n=r(this,e),i=n.size;return n.set(e,t),this.size+=+(n.size!=i),this}},87547,(e,t,n)=>{var r=e.r(48994),i=e.r(96768),o=e.r(29932),s=e.r(92647),a=e.r(46644);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=s,l.prototype.set=a,t.exports=l},20517,(e,t,n)=>{var r=e.r(29039),i=e.r(87362),o=e.r(87547);t.exports=function(e,t){var n=this.__data__;if(n instanceof r){var s=n.__data__;if(!i||s.length<199)return s.push([e,t]),this.size=++n.size,this;n=this.__data__=new o(s)}return n.set(e,t),this.size=n.size,this}},1551,(e,t,n)=>{var r=e.r(29039),i=e.r(5400),o=e.r(86238),s=e.r(57831),a=e.r(77802),l=e.r(20517);function u(e){var t=this.__data__=new r(e);this.size=t.size}u.prototype.clear=i,u.prototype.delete=o,u.prototype.get=s,u.prototype.has=a,u.prototype.set=l,t.exports=u},21274,(e,t,n)=>{t.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},39805,(e,t,n)=>{t.exports=function(e){return this.__data__.has(e)}},27493,(e,t,n)=>{var r=e.r(87547),i=e.r(21274),o=e.r(39805);function s(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}s.prototype.add=s.prototype.push=i,s.prototype.has=o,t.exports=s},51477,(e,t,n)=>{t.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},15262,(e,t,n)=>{t.exports=function(e,t){return e.has(t)}},6856,(e,t,n)=>{var r=e.r(27493),i=e.r(51477),o=e.r(15262);t.exports=function(e,t,n,s,a,l){var u=1&n,d=e.length,c=t.length;if(d!=c&&!(u&&c>d))return!1;var h=l.get(e),f=l.get(t);if(h&&f)return h==t&&f==e;var p=-1,g=!0,m=2&n?new r:void 0;for(l.set(e,t),l.set(t,e);++p<d;){var y=e[p],v=t[p];if(s)var w=u?s(v,y,p,t,e,l):s(y,v,p,e,t,l);if(void 0!==w){if(w)continue;g=!1;break}if(m){if(!i(t,function(e,t){if(!o(m,t)&&(y===e||a(y,e,n,s,l)))return m.push(t)})){g=!1;break}}else if(!(y===v||a(y,v,n,s,l))){g=!1;break}}return l.delete(e),l.delete(t),g}},63750,(e,t,n)=>{t.exports=e.r(39088).Uint8Array},75331,(e,t,n)=>{t.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}},99850,(e,t,n)=>{t.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}},78012,(e,t,n)=>{var r=e.r(30353),i=e.r(63750),o=e.r(25172),s=e.r(6856),a=e.r(75331),l=e.r(99850),u=r?r.prototype:void 0,d=u?u.valueOf:void 0;t.exports=function(e,t,n,r,u,c,h){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":if(e.byteLength!=t.byteLength||!c(new i(e),new i(t)))break;return!0;case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var f=a;case"[object Set]":var p=1&r;if(f||(f=l),e.size!=t.size&&!p)break;var g=h.get(e);if(g)return g==t;r|=2,h.set(e,t);var m=s(f(e),f(t),r,u,c,h);return h.delete(e),m;case"[object Symbol]":if(d)return d.call(e)==d.call(t)}return!1}},69102,(e,t,n)=>{t.exports=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}},23403,(e,t,n)=>{var r=e.r(69102),i=e.r(45350);t.exports=function(e,t,n){var o=t(e);return i(e)?o:r(o,n(e))}},36100,(e,t,n)=>{t.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var s=e[n];t(s,n,e)&&(o[i++]=s)}return o}},45159,(e,t,n)=>{t.exports=function(){return[]}},17332,(e,t,n)=>{var r=e.r(36100),i=e.r(45159),o=Object.prototype.propertyIsEnumerable,s=Object.getOwnPropertySymbols;t.exports=s?function(e){return null==e?[]:r(s(e=Object(e)),function(t){return o.call(e,t)})}:i},13370,(e,t,n)=>{var r=e.r(23403),i=e.r(17332),o=e.r(33679);t.exports=function(e){return r(e,o,i)}},30698,(e,t,n)=>{var r=e.r(13370),i=Object.prototype.hasOwnProperty;t.exports=function(e,t,n,o,s,a){var l=1&n,u=r(e),d=u.length;if(d!=r(t).length&&!l)return!1;for(var c=d;c--;){var h=u[c];if(!(l?h in t:i.call(t,h)))return!1}var f=a.get(e),p=a.get(t);if(f&&p)return f==t&&p==e;var g=!0;a.set(e,t),a.set(t,e);for(var m=l;++c<d;){var y=e[h=u[c]],v=t[h];if(o)var w=l?o(v,y,h,t,e,a):o(y,v,h,e,t,a);if(!(void 0===w?y===v||s(y,v,n,o,a):w)){g=!1;break}
3m||(m="constructor"==h)}if(g&&!m){var b=e.constructor,x=t.constructor;b!=x&&"constructor"in e&&"constructor"in t&&!("function"==typeof b&&b instanceof b&&"function"==typeof x&&x instanceof x)&&(g=!1)}return a.delete(e),a.delete(t),g}},1419,(e,t,n)=>{t.exports=e.r(41920)(e.r(39088),"DataView")},17074,(e,t,n)=>{t.exports=e.r(41920)(e.r(39088),"Promise")},6966,(e,t,n)=>{t.exports=e.r(41920)(e.r(39088),"Set")},40253,(e,t,n)=>{t.exports=e.r(41920)(e.r(39088),"WeakMap")},67426,(e,t,n)=>{var r=e.r(1419),i=e.r(87362),o=e.r(17074),s=e.r(6966),a=e.r(40253),l=e.r(77684),u=e.r(76366),d="[object Map]",c="[object Promise]",h="[object Set]",f="[object WeakMap]",p="[object DataView]",g=u(r),m=u(i),y=u(o),v=u(s),w=u(a),b=l;(r&&b(new r(new ArrayBuffer(1)))!=p||i&&b(new i)!=d||o&&b(o.resolve())!=c||s&&b(new s)!=h||a&&b(new a)!=f)&&(b=function(e){var t=l(e),n="[object Object]"==t?e.constructor:void 0,r=n?u(n):"";if(r)switch(r){case g:return p;case m:return d;case y:return c;case v:return h;case w:return f}return t}),t.exports=b},78353,(e,t,n)=>{var r=e.r(1551),i=e.r(6856),o=e.r(78012),s=e.r(30698),a=e.r(67426),l=e.r(45350),u=e.r(56956),d=e.r(3023),c="[object Arguments]",h="[object Array]",f="[object Object]",p=Object.prototype.hasOwnProperty;t.exports=function(e,t,n,g,m,y){var v=l(e),w=l(t),b=v?h:a(e),x=w?h:a(t);b=b==c?f:b,x=x==c?f:x;var C=b==f,k=x==f,j=b==x;if(j&&u(e)){if(!u(t))return!1;v=!0,C=!1}if(j&&!C)return y||(y=new r),v||d(e)?i(e,t,n,g,m,y):o(e,t,b,n,g,m,y);if(!(1&n)){var M=C&&p.call(e,"__wrapped__"),L=k&&p.call(t,"__wrapped__");
3if(M||L){var S=M?e.value():e,E=L?t.value():t;return y||(y=new r),m(S,E,n,g,y)}}return!!j&&(y||(y=new r),s(e,t,n,g,m,y))}},21885,(e,t,n)=>{var r=e.r(78353),i=e.r(77289);t.exports=function e(t,n,o,s,a){return t===n||(null!=t&&null!=n&&(i(t)||i(n))?r(t,n,o,s,e,a):t!=t&&n!=n)}},48299,(e,t,n)=>{var r=e.r(1551),i=e.r(21885);t.exports=function(e,t,n,o){var s=n.length,a=s,l=!o;if(null==e)return!a;for(e=Object(e);s--;){var u=n[s];if(l&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++s<a;){var d=(u=n[s])[0],c=e[d],h=u[1];if(l&&u[2]){if(void 0===c&&!(d in e))return!1}else{var f=new r;if(o)var p=o(c,h,d,e,t,f);if(!(void 0===p?i(h,c,3,o,f):p))return!1}}return!0}},15782,(e,t,n)=>{var r=e.r(50724);t.exports=function(e){return e==e&&!r(e)}},41903,(e,t,n)=>{var r=e.r(15782),i=e.r(33679);t.exports=function(e){for(var t=i(e),n=t.length;n--;){var o=t[n],s=e[o];t[n]=[o,s,r(s)]}return t}},65570,(e,t,n)=>{t.exports=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}},23426,(e,t,n)=>{var r=e.r(48299),i=e.r(41903),o=e.r(65570);t.exports=function(e){var t=i(e);return 1==t.length&&t[0][2]?o(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},61884,(e,t,n)=>{var r=e.r(77684),i=e.r(77289);t.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==r(e)}},9903,(e,t,n)=>{var r=e.r(45350),i=e.r(61884),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;t.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!!("number"==n||"symbol"==n||"boolean"==n||null==e||i(e))||s.test(e)||!o.test(e)||null!=t&&e in Object(t)}},57588,(e,t,n)=>{var r=e.r(87547);function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var s=e.apply(this,r);return n.cache=o.set(i,s)||o,s};return n.cache=new(i.Cache||r),n}i.Cache=r,t.exports=i},88832,(e,t,n)=>{var r=e.r(57588);t.exports=function(e){var t=r(e,function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t}},2677,(e,t,n)=>{var r=e.r(88832),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g;t.exports=r(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(i,function(e,n,r,i){t.push(r?i.replace(o,"$1"):n||e)}),t})},92708,(e,t,n)=>{t.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}},72537,(e,t,n)=>{var r=e.r(30353),i=e.r(92708),o=e.r(45350),s=e.r(61884),a=1/0,l=r?r.prototype:void 0,u=l?l.toString:void 0;t.exports=function e(t){if("string"==typeof t)return t;if(o(t))return i(t,e)+"";if(s(t))return u?u.call(t):"";var n=t+"";return"0"==n&&1/t==-a?"-0":n}},2922,(e,t,n)=>{var r=e.r(72537);t.exports=function(e){return null==e?"":r(e)}},86287,(e,t,n)=>{var r=e.r(45350),i=e.r(9903),o=e.r(2677),s=e.r(2922);t.exports=function(e,t){return r(e)?e:i(e,t)?[e]:o(s(e))}},2054,(e,t,n)=>{var r=e.r(61884),i=1/0;t.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-i?"-0":t}},33141,(e,t,n)=>{var r=e.r(86287),i=e.r(2054);t.exports=function(e,t){t=r(t,e);for(var n=0,o=t.length;null!=e&&n<o;)e=e[i(t[n++])];return n&&n==o?e:void 0}},82820,(e,t,n)=>{var r=e.r(33141);t.exports=function(e,t,n){var i=null==e?void 0:r(e,t);return void 0===i?n:i}},40688,(e,t,n)=>{t.exports=function(e,t){return null!=e&&t in Object(e)}},15359,(e,t,n)=>{var r=e.r(86287),i=e.r(73250),o=e.r(45350),s=e.r(66397),a=e.r(98376),l=e.r(2054);t.exports=function(e,t,n){t=r(t,e);for(var u=-1,d=t.length,c=!1;++u<d;){var h=l(t[u]);if(!(c=null!=e&&n(e,h)))break;e=e[h]}return c||++u!=d?c:!!(d=null==e?0:e.length)&&a(d)&&s(h,d)&&(o(e)||i(e))}},2816,(e,t,n)=>{var r=e.r(40688),i=e.r(15359);t.exports=function(e,t){return null!=e&&i(e,t,r)}},72298,(e,t,n)=>{var r=e.r(21885),i=e.r(82820),o=e.r(2816),s=e.r(9903),a=e.r(15782),l=e.r(65570),u=e.r(2054);t.exports=function(e,t){return s(e)&&a(t)?l(u(e),t):function(n){var s=i(n,e);return void 0===s&&s===t?o(n,e):r(t,s,3)}}},53336,(e,t,n)=>{t.exports=function(e){return e}},1079,(e,t,n)=>{t.exports=function(e){return function(t){return null==t?void 0:t[e]}}},30970,(e,t,n)=>{var r=e.r(33141);t.exports=function(e){return function(t){return r(t,e)}}},33906,(e,t,n)=>{var r=e.r(1079),i=e.r(30970),o=e.r(9903),s=e.r(2054);t.exports=function(e){return o(e)?r(s(e)):i(e)}},66305,(e,t,n)=>{var r=e.r(23426),i=e.r(72298),o=e.r(53336),s=e.r(45350),a=e.r(33906);t.exports=function(e){return"function"==typeof e?e:null==e?o:"object"==typeof e?s(e)?i(e[0],e[1]):r(e):a(e)}},95261,(e,t,n)=>{var r=e.r(64254),i=e.r(5143),o=e.r(66305),s=e.r(45350);t.exports=function(e,t){return function(n,a){var l=s(n)?r:i,u=t?t():{};return l(n,e,o(a,2),u)}}},76955,(e,t,n)=>{var r=e.r(74548),i=e.r(95261),o=Object.prototype.hasOwnProperty;t.exports=i(function(e,t,n){o.call(e,n)?e[n].push(t):r(e,n,[t])})},31513,77575,33524,e=>{"use strict";let t,n,r,i,o,s,a,l,u,d,c,h,f,p;var g,m,y,v,w,b,x,C,k,j,M,L,S,E=e.i(43476),R=e.i(932),V=e.i(36536),_=e.i(71645),$=e.i(74080),A=e.i(16024);let T=["gray","blue","purple","magenta","red","orange","yellow","green","cyan"],H=["50","100","200","300","400","500","600","700","800","900","950"],I={sizes:[{distance:-4,size:19},{distance:-4,size:25},{distance:-8,size:33},{distance:-12,size:49}],focusRing:{offset:1,width:1}},P={textWeight:"medium",border:{width:1},focusRing:{offset:-1,width:1}},O={border:{width:1},focusRing:{offset:-1,width:1},shadow:{outline:.5}},B={dialog:{zOffset:600},popover:{zOffset:400},tooltip:{zOffset:200}},N={border:{width:1},checkbox:{size:17,focusRing:{offset:-1,width:1}}
3,radio:{size:17,markSize:9,focusRing:{offset:-1,width:1}},switch:{width:25,height:17,padding:5,transitionDurationMs:150,transitionTimingFunction:"ease-out",focusRing:{offset:1,width:1}},select:{focusRing:{offset:-1,width:1}},text:{focusRing:{offset:-1,width:1}}},W=new WeakMap;function z(e){let t=W.get(e);if(t)return t;let n=F(e,e.card.enabled),r={_blend:e._blend||(e.dark?"screen":"multiply"),_dark:e.dark,accent:n.accent,avatar:n.avatar,backdrop:e.base.shadow.ambient,badge:n.badge,bg:e.base.bg,border:e.base.border,button:{default:D(e,e.button.default),ghost:D(e,e.button.ghost),bleed:D(e,e.button.bleed)},code:n.code,fg:e.base.fg,focusRing:e.base.focusRing,icon:n.muted.fg,input:{default:Z(e.input.default),invalid:Z(e.input.invalid)},kbd:n.kbd,link:n.link,muted:{...n.muted,bg:e.selectable?.default.enabled.bg2||e.base.bg},selectable:D(e,e.selectable||e.muted),shadow:e.base.shadow,skeleton:{from:e.skeleton?.from||e.base.border,to:e.skeleton?.to||e.base.border},syntax:e.syntax};return W.set(e,r),r}function D(e,t){return{default:{enabled:F(e,t.default.enabled),hovered:F(e,t.default.hovered),pressed:F(e,t.default.pressed),selected:F(e,t.default.selected),disabled:F(e,t.default.disabled)},neutral:{enabled:F(e,t.default.enabled),hovered:F(e,t.default.hovered),pressed:F(e,t.default.pressed),selected:F(e,t.default.selected),disabled:F(e,t.default.disabled)},primary:{enabled:F(e,t.primary.enabled),hovered:F(e,t.primary.hovered),pressed:F(e,t.primary.pressed),selected:F(e,t.primary.selected),disabled:F(e,t.primary.disabled)},suggest:{enabled:F(e,t.primary.enabled),hovered:F(e,t.primary.hovered),pressed:F(e,t.primary.pressed),selected:F(e,t.primary.selected),disabled:F(e,t.primary.disabled)},positive:{enabled:F(e,t.positive.enabled),hovered:F(e,t.positive.hovered),pressed:F(e,t.positive.pressed),selected:F(e,t.positive.selected),disabled:F(e,t.positive.disabled)},caution:{enabled:F(e,t.caution.enabled),hovered:F(e,t.caution.hovered),pressed:F(e,t.caution.pressed),selected:F(e,t.caution.selected),disabled:F(e,t.caution.disabled)},critical:{enabled:F(e,t.critical.enabled),hovered:F(e,t.critical.hovered),pressed:F(e,t.critical.pressed),selected:F(e,t.critical.selected),disabled:F(e,t.critical.disabled)}}}function F(e,t){return{...t,avatar:{gray:{bg:e.spot.gray,fg:e.base.bg},blue:{bg:e.spot.blue,fg:e.base.bg},purple:{bg:e.spot.purple,fg:e.base.bg},magenta:{bg:e.spot.magenta,fg:e.base.bg},red:{bg:e.spot.red,fg:e.base.bg},orange:{bg:e.spot.orange,fg:e.base.bg},yellow:{bg:e.spot.yellow,fg:e.base.bg},green:{bg:e.spot.green,fg:e.base.bg},cyan:{bg:e.spot.cyan,fg:e.base.bg}},badge:{default:{bg:e.muted.default.enabled.bg,fg:e.muted.default.enabled.fg,dot:e.muted.default.enabled.muted.fg,icon:e.muted.default.enabled.muted.fg},neutral:{bg:e.muted.transparent.enabled.bg,fg:e.muted.transparent.enabled.fg,dot:e.muted.transparent.enabled.muted.fg,icon:e.muted.transparent.enabled.muted.fg},primary:{bg:e.muted.primary.enabled.bg,fg:e.muted.primary.enabled.fg,dot:e.muted.primary.enabled.muted.fg,icon:e.muted.primary.enabled.muted.fg},suggest:{bg:e.muted.primary.enabled.bg,fg:e.muted.primary.enabled.fg,dot:e.muted.primary.enabled.muted.fg,icon:e.muted.primary.enabled.muted.fg},positive:{bg:e.muted.positive.enabled.bg,fg:e.muted.positive.enabled.fg,dot:e.muted.positive.enabled.muted.fg,icon:e.muted.positive.enabled.muted.fg},caution:{bg:e.muted.caution.enabled.bg,fg:e.muted.caution.enabled.fg,dot:e.muted.caution.enabled.muted.fg,icon:e.muted.caution.enabled.muted.fg},critical:{bg:e.muted.critical.enabled.bg,fg:e.muted.critical.enabled.fg,dot:e.muted.critical.enabled.muted.fg,icon:e.muted.critical.enabled.muted.fg}},kbd:{bg:e.muted.default.enabled.bg,fg:e.muted.default.enabled.fg,border:e.muted.default.enabled.border},muted:{...e.muted.default.enabled.muted,bg:t.bg2||t.bg},skeleton:{from:t.skeleton?.from||t.border,to:t.skeleton?.to||t.border}}}function Z(e){return{enabled:U(e.enabled),disabled:U(e.disabled),readOnly:U(e.readOnly),hovered:U(e.hovered)}}function U(e){return{bg:e.bg,border:e.border,fg:e.fg,muted:{bg:e.bg2},placeholder:e.placeholder}}let q=new WeakMap;function G(e){if(e.sanity.v2?._resolved)return e.sanity.v2;let t=q.get(e);if(t)return t;let n={_version:2,_resolved:!0,avatar:{...I,...e.sanity.avatar},button:{...P,...e.sanity.button},card:O,color:z(e.sanity.color),container:e.sanity.container,font:e.sanity.fonts,input:{...N,...e.sanity.input,checkbox:{...N.checkbox,...e.sanity.input.checkbox},radio:{...N.radio,...e.sanity.input.radio},switch:{...N.switch,...e.sanity.input.switch}},layer:e.sanity.layer??B,media:e.sanity.media,radius:e.sanity.radius,shadow:e.sanity.shadows,space:e.sanity.space,style:e.sanity.styles};return q.set(e,n),n}function Y(e){return 2===e._version}let X=new WeakMap;function K(e,t,n){Object.defineProperty(e,t,{get(){let r=n();return Object.defineProperty(e,t,{value:r,enumerable:!0,writable:!1,
3configurable:!1}),r},enumerable:!0,configurable:!0})}let J=new WeakMap,Q=["transparent","default","primary","positive","caution","critical"];function ee(e,t){let n={};for(let r of Q)K(n,r,()=>{var n;return{base:{bg:(n=t[e][r]).bg,fg:n.fg,border:n.border,focusRing:n.focusRing,shadow:n.shadow},button:n.button,card:n.selectable.default,dark:n._dark,input:{default:en(n.input.default),invalid:en(n.input.invalid)},muted:{...n.button.ghost,transparent:n.button.ghost.default},solid:{...n.button.default,transparent:n.button.default.default},selectable:n.selectable,spot:{gray:n.avatar.gray.bg,blue:n.avatar.blue.bg,purple:n.avatar.purple.bg,magenta:n.avatar.magenta.bg,red:n.avatar.red.bg,orange:n.avatar.orange.bg,yellow:n.avatar.yellow.bg,green:n.avatar.green.bg,cyan:n.avatar.cyan.bg},syntax:n.syntax}});return n}function et(e){let t=J.get(e);if(t)return t;let{avatar:n,button:r,color:i,container:o,font:s,input:a,media:l,radius:u,shadow:d,space:c,style:h}=e,f={};K(f,"light",()=>ee("light",i)),K(f,"dark",()=>ee("dark",i));let p={_version:0,avatar:n,button:r,container:o,color:f,focusRing:a.text.focusRing,fonts:s,input:a,media:l,radius:u,shadows:d,space:c,styles:h,v2:e};return J.set(e,p),p}function en(e){return{enabled:er(e.enabled),disabled:er(e.disabled),readOnly:er(e.readOnly),hovered:er(e.hovered)}}function er(e){return{bg:e.bg,bg2:e.muted.bg,border:e.border,fg:e.fg,placeholder:e.placeholder}}let ei=["multiply","screen"],eo=["transparent","default","neutral","primary","suggest","positive","caution","critical"],es=["default","neutral","primary","suggest","positive","caution","critical"],ea=["enabled","hovered","pressed","selected","disabled"],el=["default","ghost","bleed"],eu=["default","invali
3d"],ed=["enabled","hovered","readOnly","disabled"];function ec(e){return H.includes(e)}function eh(e){return/^\d+%$/.test(e)}function ef(e){var t;let n=e.split("/"),r=n.shift()||"",[i,o]=r.split(" ");if(ec(i)){let e=n.shift()||"";return eh(o)?{type:"color",tint:i,mix:Number(o.slice(0,-1))/100}:ep(e)?{type:"color",tint:i,opacity:Number(e)}:{type:"color",tint:i}}if("black"===(t=i)||"white"===t){let e=n.shift()||"";return eh(o)?{type:"color",key:i,mix:Number(o.slice(0,-1))/100}:ep(e)?{type:"color",key:i,opacity:Number(e)}:{type:"color",key:i}}if(T.includes(i)){let[e,t]=(r=n.shift()||"").split(" ");if(ec(e)){let r=n.shift()||"";return eh(t)?{type:"color",hue:i,tint:e,mix:Number(t.slice(0,-1))/100}:ep(r)?{type:"color",hue:i,tint:e,opacity:Number(r)}:{type:"color",hue:i,tint:e}}return{type:"hue",value:i}}if(ei.includes(i))return{type:"blendMode",value:i}}function ep(e){return"0"===e||/^0\.[0-9]+$/.test(e)||"1"===e}[...T],[...eo],[...es],[...ea],[...eu],[...ed];let eg=["500","500"];function em(e,t=eg){var n;let r,{hue:i,scheme:o}=e,s=ef(t[+("light"!==o)]);if(!s||"color"!==s.type)throw Error(`Invalid color token: ${t[0]}`);return n={...s,hue:s.hue||i},r="",r="black"===n.key||"white"===n.key?n.key:`${n.hue}/${n.tint}`,void 0!==n.mix?`${r} ${100*n.mix}%`:(void 0!==n.opacity&&(r+=`/${n.opacity}`),r)}let ey={base:{"*":{_blend:["multiply","screen"],accent:{fg:["purple/600","purple/400"]},avatar:{"*":{_blend:["screen","multiply"],bg:["500","400"],fg:["white","black"]}},backdrop:["gray/200/0.5","black/0.5"],badge:{"*":{bg:["100","900"],fg:["600","400"],icon:["500","500"],dot:["500","500"]},positive:{bg:["200 50%","900"],fg:["600","500"]},caution:{bg:["200 50%","900"],fg:["600","500"]}},bg:["50","950"],border:["200","800"],code:{bg:["50","950"],fg:["600","400"]},fg:["800","200"],focusRing:["blue/500","blue/500"],icon:["600","400"],kbd:{bg:["white","black"],fg:["600","400"],border:["200","800"]},link:{fg:["blue/600","blue/300"]},muted:{bg:["50","950"],fg:["700 75%","300 75%"]},shadow:{outline:["500/0.3","500/0.4"],umbra:["gray/500/0.1","black/0.2"],penumbra:["gray/500/0.07","black/0.14"],ambient:["gray/500/0.06","black/0.12"]},skeleton:{from:["100","900"],to:["100 50%","900 50%"]}},transparent:{bg:["50","black"]},default:{bg:["white","950"],fg:["800","200"],muted:{fg:["600","400"]}},primary:{_hue:"blue"},suggest:{_hue:"purple"},positive:{_hue:"green",shadow:{outline:["500/0.4","500/0.4"]}},caution:{_hue:"yellow",shadow:{outline:["600/0.3","500/0.4"]}},critical:{_hue:"red"}},button:{default:{"*":{"*":{_blend:["screen","multiply"],accent:{fg:["purple/300","purple/700"]},avatar:{"*":{_blend:["screen","multiply"],bg:["500","400"],fg:["white","black"]}},badge:{"*":{bg:["900","100"],fg:["400","600"],dot:["500","500"],icon:["500","500"]}},bg:["500","400"],border:["500/0","400/0"],code:{bg:["500 20%","400 20%"],fg:["200","600"]},fg:["white","black"],icon:["100 70%","900 70%"],kbd:{bg:["black","white"],fg:["200","600"],border:["800","200"]},link:{fg:["blue/200","blue/600"]},muted:{bg:["950","50"],fg:["100 70%","900 70%"]},skeleton:{from:["900","100"],to:["900 50%","100 50%"]}},hovered:{bg:["600","300"],border:["700/0","300/0"]},pressed:{bg:["700","300"]},selected:{bg:["700","300"]},disabled:{_hue:"gray",accent:{fg:["100 70%","900 70%"]},avatar:{"*":{_blend:["screen","multiply"],bg:["gray/500","gray/400"],fg:["white","black"]}},badge:{"*":{bg:["gray/700","gray/300"],fg:["white","black"],dot:["white","black"],icon:["white","black"]}},bg:["300","600"],code:{bg:["950","50"],fg:["300","600"]},fg:["300","600"],muted:{bg:["950","50"],fg:["300","600"]},kbd:{bg:["black","white"],fg:["white","black"],border:["700","300"]},link:{fg:["100 70%","900 70%"]}}},default:{"*":{avatar:{"*":{_blend:["screen","multiply"],bg:["500","400"],fg:["white","black"]}},bg:["800","200"],muted:{bg:["950","50"],fg:["400","600"]}},hovered:{bg:["900","100"]},pressed:{bg:["black","white"]},selected:{bg:["black","white"]}}},ghost:{"*":{"*":{_blend:["multiply","screen"],accent:{fg:["purple/700 60%","purple/300 70%"]},avatar:{"*":{_blend:["screen","multiply"],bg:["500","400"],fg:["white","black"]}},badge:{"*":{bg:["100","900"],fg:["600","400"],dot:["500","500"],icon:["500","500"]}},bg:["50","950"],border:["100","900"],code:{bg:["500 10%","400 10%"],fg:["700 60%","400 60%"]},fg:["600","400"],icon:["700 60%","300 60%"],kbd:{bg:["white","black"],fg:["600","400"],border:["200","800"]},link:{fg:["blue/700 60%","blue/300 60%"]},muted:{bg:["100","950"],fg:["700 60%","300 60%"]},skeleton:{from:["100","900"],to:["100 50%","900 50%"]}},hovered:{bg:["100","900"],fg:["700","300"]},pressed:{bg:["200","800"],fg:["800","200"]},selected:{bg:["200","800"],fg:["800","200"]},disabled:{_hue:"gray",accent:{fg:["200","800"]},avatar:{"*":{_blend:["screen","multiply"],bg:["gray/100","gray/900"],fg:["white","black"]}}
3,badge:{"*":{_hue:"gray",bg:["50","950"],fg:["gray/200","gray/800"],dot:["gray/200","gray/800"],icon:["gray/200","gray/800"]}},border:["100","900"],code:{bg:["50","950"],fg:["200","800"]},fg:["400","600"],icon:["300","700"],muted:{fg:["300","700"]},kbd:{bg:["white","black"],fg:["200","800"],border:["100","900"]},link:{fg:["200","800"]}}},positive:{"*":{border:["600 20%","800"]}},caution:{"*":{border:["600 20%","800"]}}},bleed:{"*":{"*":{_blend:["multiply","screen"],accent:{fg:["purple/700 70%","purple/300 70%"]},avatar:{"*":{_blend:["screen","multiply"],bg:["500","400"],fg:["white","black"]}},badge:{"*":{bg:["100","900"],fg:["600","400"],dot:["500","500"],icon:["500","500"]}},bg:["white","black"],border:["white/0","black/0"],code:{bg:["50","950"],fg:["700 75%","300 75%"]},fg:["700","300"],icon:["700 75%","300 75%"],kbd:{bg:["white","black"],fg:["700","300"],border:["200","800"]},link:{fg:["blue/700 70%","blue/300 70%"]},muted:{bg:["100","950"],fg:["700 75%","300 75%"]},skeleton:{from:["100","900"],to:["100 50%","900 50%"]}},hovered:{bg:["50","900"],fg:["800","200"],icon:["800 70%","300 70%"]},pressed:{bg:["100","800"],fg:["800","200"],icon:["800 70%","200 70%"]},selected:{bg:["100","900"],fg:["800","200"],icon:["800 60%","200 60%"]},disabled:{_hue:"gray",accent:{fg:["200","800"]},avatar:{"*":{_blend:["screen","multiply"],bg:["gray/100","gray/900"],fg:["white","black"]}},badge:{"*":{_hue:"gray",bg:["50","950"],fg:["gray/200","gray/800"],dot:["gray/200","gray/800"],icon:["gray/200","gray/800"]}},code:{bg:["50","950"],fg:["200","800"]},fg:["400","600"],icon:["300","700"],muted:{fg:["400","600"]},kbd:{bg:["white","black"],fg:["200","800"],border:["100","900"]},link:{fg:["200","800"]}}}}},input:{"*":{"*":{_blend:["multiply","screen"],bg:["white","black"],border:["200","700"],fg:["black","200"],muted:{bg:["50","950"]},placeholder:["400","600"]},hovered:{border:["300","700"]},readOnly:{bg:["50","950"],border:["200","800"],fg:["800","200"]},disabled:{bg:["50","950"],fg:["400","600"],border:["100","900"],placeholder:["200","800 50%"]}},invalid:{"*":{_hue:"red",bg:["100","950"]}}},selectable:{"*":{"*":{_blend:["multiply","screen"],accent:{fg:["purple/700 70%","purple/300 70%"]},avatar:{"*":{_blend:["screen","multiply"],bg:["500","400"],fg:["white","black"]}},badge:{"*":{bg:["100","900"],fg:["600","400"],dot:["500","500"],icon:["500","500"]}},bg:["white","black"],border:["200","800"],code:{bg:["50","950"],fg:["600","400"]},fg:["700","300"],icon:["700 75%","300 75%"],kbd:{bg:["white","black"],fg:["600","400"],border:["200","800"]},link:{fg:["blue/700 70%","blue/300 70%"]},muted:{bg:["50","950"],fg:["700 75%","300 75%"]},skeleton:{from:["100","900"],to:["100 50%","900 50%"]}},hovered:{bg:["50","950"]},pressed:{bg:["100","900"]},selected:{_blend:["screen","multiply"],accent:{fg:["purple/300","purple/700"]},avatar:{"*":{_blend:["multiply","screen"],bg:["white","black"],fg:["black","white"]}},badge:{"*":{bg:["900","100"],fg:["400","600"],dot:["500","500"],icon:["500","500"]}},bg:["500","400"],border:["500 20%","400 20%"],code:{bg:["500 20%","400 20%"],fg:["200","600"]},fg:["white","black"],icon:["100 70%","900 70%"],kbd:{bg:["black","white"],fg:["200","600"],border:["800","200"]},link:{fg:["blue/200","blue/600"]},muted:{bg:["500 10%","400 10%"],fg:["100 70%","900 70%"]},skeleton:{from:["900","100"],to:["900 50%","100 50%"]}},disabled:{_hue:"gray",accent:{fg:["200","800"]},avatar:{"*":{_blend:["screen","multiply"],bg:["gray/100","gray/900"],fg:["white","black"]}},badge:{"*":{_hue:"gray",bg:["50","950"],fg:["gray/200","gray/800"],dot:["gray/200","gray/800"],icon:["gray/200","gray/800"]}},border:["100","900"],code:{bg:["50","950"],fg:["200","800"]},fg:["200","800"],icon:["200","800"],kbd:{bg:["white","black"],fg:["200","800"],border:["100","900"]},link:{fg:["200","800"]},muted:{bg:["50 50%","950 50%"],fg:["200","800"]}}},default:{selected:{_hue:"blue"}},critical:{disabled:{bg:["50 50%","950 50%"]}}},syntax:{atrule:["purple/600","purple/400"],attrName:["green/600","green/400"],attrValue:["yellow/600","yellow/400"],attribute:["yellow/600","yellow/400"],boolean:["purple/600","purple/400"],builtin:["purple/600","purple/400"],c
3data:["yellow/600","yellow/400"],char:["yellow/600","yellow/400"],class:["orange/600","orange/400"],className:["cyan/600","cyan/400"],comment:["gray/400","gray/600"],constant:["purple/600","purple/400"],deleted:["red/600","red/400"],entity:["red/600","red/400"],function:["green/600","green/400"],hexcode:["blue/600","blue/400"],id:["purple/600","purple/400"],important:["purple/600","purple/400"],inserted:["yellow/600","yellow/400"],keyword:["magenta/600","magenta/400"],number:["purple/600","purple/400"],operator:["magenta/600","magenta/400"],property:["blue/600","blue/400"],pseudoClass:["yellow/600","yellow/400"],pseudoElement:["yellow/600","yellow/400"],punctuation:["gray/600","gray/400"],regex:["blue/600","blue/400"],selector:["red/600","red/400"],string:["yellow/600","yellow/400"],symbol:["purple/600","purple/400"],tag:["red/600","red/400"],unit:["orange/600","orange/400"],url:["red/600","red/400"],variable:["red/600","red/400"]}};function ev(e){return!!(e&&"object"==typeof e&&!Array.isArray(e))}function ew(...e){let t=e.filter(Boolean);return 0===t.length?{}:t.reduce(eb,{})}function eb(e,t){for(let n of Object.keys(t)){let r=e[n],i=t[n];ev(r)&&ev(i)?e[n]=ew(r,i):e[n]=i}return e}function ex(e,t){let{scheme:n}=e,r={};for(let e of eo)K(r,e,()=>(function(e,t){let{scheme:n,tone:r}=e,i=t?.color?.base?.[r],o={hue:i?._hue||"gray",scheme:n};return{_blend:(i?._blend||["multiply","screen"])[+("light"!==n)],_dark:"dark"===n,accent:{fg:em(o,i?.accent?.fg)},avatar:eC({scheme:n},i),backdrop:em(o,i?.backdrop),badge:ej(i?.badge,{scheme:n},t),bg:em(o,i?.bg),border:em(o,i?.border),button:function(e,t){let{scheme:n,tone:r}=e,i={};for(let e of el)i[e]=function(e,t){let{cardTone:n,mode:r,scheme:i}=e,o={};for(let e of es)o[e]=function(e,t){let{cardTone:n,mode:r,scheme:i,tone:o}=e,s={};for(let e of ea)s[e]=function(e,t){let{cardTone:n,mode:r,tone:i,scheme:o,state:s}=e,a=t?.color?.base?.[n],l=t?.color?.button?.[r]?.[i]?.[s],u=l?._hue||a?._hue||"gray",d=l?._blend||["screen","multiply"],c={hue:u,scheme:o};return{_blend:d[+("light"!==o)],accent:{fg:em(c,l?.accent?.fg)},avatar:eC({scheme:o},l),badge:ej(l?.badge,{scheme:o},t),bg:em(c,l?.bg),border:em(c,l?.border),code:{bg:em(c,l?.code?.bg),fg:em(c,l?.code?.fg)},fg:em(c,l?.fg),icon:em(c,l?.icon),muted:{bg:em(c,l?.muted?.bg),fg:em(c,l?.muted?.fg)},kbd:{bg:em(c,l?.kbd?.bg),fg:em(c,l?.kbd?.fg),border:em(c,l?.kbd?.border)},link:{fg:em(c,l?.link?.fg)},skeleton:{from:em(c,l?.skeleton?.from),to:em(c,l?.skeleton?.to)}}}({cardTone:n,mode:r,tone:o,scheme:i,state:e},t);return s}({cardTone:n,mode:r,scheme:i,tone:e},t);return o}({cardTone:r,scheme:n,mode:e},t);return i}({scheme:n,tone:r},t),code:{bg:em(o,i?.code?.bg),fg:em(o,i?.code?.fg)},fg:em(o,i?.fg),focusRing:em(o,i?.focusRing),icon:em(o,i?.icon),input:function(e,t){let{scheme:n,tone:r}=e;return{default:eM({mode:"default",scheme:n,tone:r},t),invalid:eM({mode:"invalid",scheme:n,tone:r},t)}}({scheme:n,tone:r},t),kbd:{bg:em(o,i?.kbd?.bg),fg:em(o,i?.kbd?.fg),border:em(o,i?.kbd?.border)},link:{fg:em(o,i?.link?.fg)},muted:{bg:em(o,i?.muted?.bg),fg:em(o,i?.muted?.fg)},selectable:function(e,t){let{scheme:n,tone:r}=e,i={};for(let e of es)i[e]=function(e,t){let{cardTone:n,scheme:r,tone:i}=e,o={};for(let e of ea)o[e]=function(e,t){let{cardTone:n,scheme:r,state:i,tone:o}=e,s=t?.color?.base?.[n],a=t?.color?.selectable?.[o]?.[i],l=a?._hue||s?._hue||"gray",u=a?._blend||["screen","multiply"],d={hue:l,sc
3heme:r};return{_blend:u[+("light"!==r)],accent:{fg:em(d,a?.accent?.fg)},avatar:eC({scheme:r},a),badge:ej(a?.badge,{scheme:r},t),bg:em(d,a?.bg),border:em(d,a?.border),code:{bg:em(d,a?.code?.bg),fg:em(d,a?.code?.fg)},fg:em(d,a?.fg),icon:em(d,a?.icon),muted:{bg:em(d,a?.muted?.bg),fg:em(d,a?.muted?.fg)},kbd:{bg:em(d,a?.kbd?.bg),fg:em(d,a?.kbd?.fg),border:em(d,a?.kbd?.border)},link:{fg:em(d,a?.link?.fg)},skeleton:{from:em(d,a?.skeleton?.from),to:em(d,a?.skeleton?.to)}}}({cardTone:n,tone:i,scheme:r,state:e},t);return o}({cardTone:r,scheme:n,tone:e},t);return i}({scheme:n,tone:r},t),shadow:function(e,t){let{scheme:n,tone:r}=e,i=t?.color?.base?.[r],o={hue:i?._hue||"gray",scheme:n};return{outline:em(o,i?.shadow?.outline),umbra:em(o,i?.shadow?.umbra),penumbra:em(o,i?.shadow?.penumbra),ambient:em(o,i?.shadow?.ambient)}}({scheme:n,tone:r},t),skeleton:{from:em(o,i?.skeleton?.from),to:em(o,i?.skeleton?.to)},syntax:function(e,t){let{scheme:n}=e,r=t?.color?.syntax,i={hue:"gray",scheme:n};return{atrule:em(i,r?.atrule),attrName:em(i,r?.attrName),attrValue:em(i,r?.attrValue),attribute:em(i,r?.attribute),boolean:em(i,r?.boolean),builtin:em(i,r?.builtin),cdata:em(i,r?.cdata),char:em(i,r?.char),class:em(i,r?.class),className:em(i,r?.className),comment:em(i,r?.comment),constant:em(i,r?.constant),deleted:em(i,r?.deleted),doctype:em(i,r?.doctype),entity:em(i,r?.entity),function:em(i,r?.function),hexcode:em(i,r?.hexcode),id:em(i,r?.id),important:em(i,r?.important),inserted:em(i,r?.inserted),keyword:em(i,r?.keyword),number:em(i,r?.number),operator:em(i,r?.operator),prolog:em(i,r?.prolog),property:em(i,r?.property),pseudoClass:em(i,r?.pseudoClass),pseudoElement:em(i,r?.pseudoElement),punctuation:em(i,r?.punctuation),regex:em(i,r?.regex),selector:em(i,r?.selector),string:em(i,r?.string),symbol:em(i,r?.symbol),tag:em(i,r?.tag),unit:em(i,r?.unit),url:em(i,r?.url),variable:em(i,r?.variable)}}({scheme:n},t)}})({scheme:n,tone:e},t));return r}function eC(e,t){let{scheme:n}=e;return{gray:ek({color:"gray",scheme:n},t),blue:ek({color:"blue",scheme:n},t),purple:ek({color:"purple",scheme:n},t),magenta:ek({color:"magenta",scheme:n},t),red:ek({color:"red",scheme:n},t),orange:ek({color:"orange",scheme:n},t),yellow:ek({color:"yellow",scheme:n},t),green:ek({color:"green",scheme:n},t),cyan:ek({color:"cyan",scheme:n},t)}}function ek(e,t){let{color:n,scheme:r}=e,i=t?.avatar?.[n],o={hue:i?._hue||"gray",scheme:r};return{_blend:(i?._blend||["screen","multiply"])[+("light"!==r)],bg:em(o,i?.bg),fg:em(o,i?.fg)}}function ej(e,t,n){let{scheme:r}=t,i={};for(let t of es)i[t]=function(e,t,n){let{scheme:r,tone:i}=t,o=e?.[i],s={hue:o?._hue||n?.color?.base?.[i]?._hue||"gray",scheme:r};return{bg:em(s,o?.bg),fg:em(s,o?.fg),dot:em(s,o?.dot),icon:em(s,o?.icon)}}(e,{scheme:r,tone:t},n);return i}function eM(e,t){let{mode:n,scheme:r,tone:i}=e;return{enabled:eL({mode:n,scheme:r,state:"enabled",cardTone:i},t),hovered:eL({mode:n,scheme:r,state:"hovered",cardTone:i},t),readOnly:eL({mode:n,scheme:r,state:"readOnly",cardTone:i},t),disabled:eL({mode:n,scheme:r,state:"disabled",cardTone:i},t)}}function eL(e,t){let{cardTone:n,mode:r,scheme:i,state:o}=e,s=t?.color?.base?.[n],a=t?.color?.input?.[r]?.[o],l=a?._hue||s?._hue||"gray",u=a?._blend||["screen","multiply"],d={hue:l,sc
3heme:i};return{_blend:u[+("light"!==i)],bg:em(d,a?.bg),border:em(d,a?.border),fg:em(d,a?.fg),muted:{bg:em(d,a?.muted?.bg)},placeholder:em(d,a?.placeholder)}}function eS(e,t=0,n=1){return Math.min(n,Math.max(t,e))}function eE(e,t,n,r,i){var o;return n*(1-(o=eS((i-e)/(t-e))))+r*o}function eR(e){return Math.round(e)}function eV(e){if(4===e.length){let t=e.slice(1,2),n=e.slice(2,3),r=e.slice(3,4);return{r:parseInt(t+t,16),g:parseInt(n+n,16),b:parseInt(r+r,16)}}return{r:parseInt(e.slice(1,3),16),g:parseInt(e.slice(3,5),16),b:parseInt(e.slice(5,7),16)}}function e_(e){let t=eR(eS(Math.round(e.r),0,255)),n=eR(eS(Math.round(e.g),0,255)),r=eR(eS(Math.round(e.b),0,255));return"a"in e?`rgba(${t},${n},${r},${e.a})`:"#"+(0x1000000+(t<<16)+(n<<8)+r).toString(16).slice(1)}let e$=/hsl\(\s*(\d+)\s*,\s*((\d+(?:\.\d+)?)%)\s*,\s*((\d+(?:\.\d+)?)%)\s*\)/i;function eA(e){var t;if(!e)return{r:0,g:0,b:0};if("string"!=typeof e)throw Error("parseColor: expected a string");if("#"===e[0]&&(4===e.length||7===e.length)&&function(e){for(let t of e)if(-1==="0123456789ABCDEFabcdef".indexOf(t))return!1;return!0}(e.slice(1)))return eV(e);if(e.startsWith("hsl(")){let n,r,i,o,s,a,l,u;return n=(t=function(e){let t=e$.exec(e);if(!t)throw Error(`parseHsl: string is not a HSL color: "${e}"`);return{h:parseInt(t[1]),s:parseFloat(t[3]),l:parseFloat(t[5])}}(e)).s/100,o=(i=(1-Math.abs(2*(r=t.l/100)-1))*n)*(1-Math.abs(t.h/60%2-1)),s=r-i/2,a=0,l=0,u=0,0<=t.h&&t.h<60?(a=i,l=o,u=0):60<=t.h&&t.h<120?(a=o,l=i,u=0):120<=t.h&&t.h<180?(a=0,l=i,u=o):180<=t.h&&t.h<240?(a=0,l=o,u=i):240<=t.h&&t.h<300?(a=o,l=0,u=i):300<=t.h&&t.h<360&&(a=i,l=0,u=o),{r:Math.round((a+s)*255),g:Math.round((l+s)*255),b:Math.round((u+s)*255)}}if(e.startsWith("rgba(")){let t;return{r:parseInt((t=e.replace(/rgba\(|\)/g,"").split(","))[0]),g:parseInt(t[1]),b:parseInt(t[2]),a:parseFloat(t[3])}}throw Error(`parseColor: unexpected color format: "${e}"`)}let eT=[0,255];function eH(e,t){var n,r,i,o,s,a,l,u,d;let c,{bg:h,blendMode:f,colorPalette:p}=t;if("white"===h)throw Error("Cannot blend with white background");let g=ef(e);if(!g||"color"!==g.type)throw Error(`Invalid color token value: ${e}`);let m="";if("black"===g.key&&(m=eI(p.black)),"white"===g.key&&(m=eI(p.white)),g.hue&&g.tint&&(m=eI(p[g.hue][g.tint])),!m)throw Error(`Invalid color token value: ${e}`);let y=m,v={blendMode:f,bg:h,black:eI(p.black),white:eI(p.white)};try{if(m=function(e,t){var n,r,i,o,s,a;let{blendMode:l}=t,u=eA(e),d=eA(t.black),c=eA(t.white),h=t.bg?eA(t.bg):"multiply"===l?c:d,f={r:[d.r,c.r],g:[d.g,c.g],b:[d.b,c.b]},p={r:eS(eE(...f.r,...eT,h.r),...eT),g:eS(eE(...f.g,...eT,h.g),...eT),b:eS(eE(...f.b,...eT,h.b),...eT)},g={r:eS(eE(...f.r,...eT,u.r),...eT),g:eS(eE(...f.g,...eT,u.g),...eT),b:eS(eE(...f.b,...eT,u.b),...eT)},m="multiply"===l?{r:255*(p.r/255*(g.r/255)),g:255*(p.g/255*(g.g/255)),b:255*(p.b/255*(g.b/255))}:{r:255*((n=p.r/255)+(r=g.r/255)-n*r),g:255*((i=p.g/255)+(o=g.g/255)-i*o),b:255*((s=p.b/255)+(a=g.b/255)-s*a)};return e_({r:eS(eE(...eT,...f.r,m.r),...f.r),g:eS(eE(...eT,...f.g,m.g),...f.g),b:eS(eE(...eT,...f.b,m.b),...f.b)})}(m,v),h&&void 0!==g.mix){let e=eV(h),t=eV(m);m=e_((n=g.mix,{r:(r=e.r,i=t.r,r+(i-r)*n),g:(o=e.g,s=t.g,o+(s-o)*n),b:(a=e.b,l=t.b,a+(l-a)*n)}))}}catch(e){throw console.warn("could not blend",m,v),e}return"#aN"===m&&(console.warn(`invalid color token value: ${e}`),m=y),void 0!==g.opacity&&(u=m,d=g.opacity,c=eA(u),m=`rgba(${c.r},${c.g},${c.b},${d})`),m}function eI(e){return"string"==typeof e?e:e.hex}function eP(e,t){let n=eO(t.default,{colorPalette:e}),r=n.bg;if("white"===r)throw Error("Cannot blend with white background");let i={default:n};for(let n of eo){if("default"===n)continue;let o="transparent"===n?{colorPalette:e}:{bg:r,colorPalette:e};K(i,n,()=>eO(t[n],o))}return i}function eO(e,t){var n,r,i,o;let{colorPalette:s,bg:a}=t,l=e._blend||"multiply",u=eH(e.bg,{colorPalette:s,bg:a,blendMode:l}),d={colorPalette:s,bg:u,blendMode:l},c=(n=e.button,r={baseBg:u,blendMode:l,colorPalette:s},{default:eW(n.default,r),ghost:eW(n.ghost,r),bleed:eW(n.bleed,r)}),h=function(e,t){let n={};for(let o of es){var r,i;n[o]=(r=e[o],i=t,{enabled:ez(r.enabled,i),hovered:ez(r.hovered,i),pressed:ez(r.pressed,i),selected:ez(r.selected,i),disabled:ez(r.disabled,i)})}return n}(e.selectable,{colorPalette:s,baseBg:u,blendMode:l}),f={outline:eH(e.shadow.outline,d),umbra:eH(e.shadow.umbra,{...d,bg:void 0,colorPalette:{...s,black:"#000000"}}
3),penumbra:eH(e.shadow.penumbra,{...d,bg:void 0,colorPalette:{...s,black:"#000000"}}),ambient:eH(e.shadow.ambient,{...d,bg:void 0,colorPalette:{...s,black:"#000000"}})};return{_blend:l,_dark:e._dark,accent:{fg:eH(e.accent.fg,d)},avatar:eB(e.avatar,{baseBg:u,colorPalette:s,blendMode:l}),backdrop:eH(e.backdrop,d),badge:eN(e.badge,{baseBg:u,colorPalette:s,blendMode:l}),bg:u,border:eH(e.border,d),button:c,code:{bg:eH(e.code.bg,d),fg:eH(e.code.fg,d)},fg:eH(e.fg,d),focusRing:eH(e.focusRing,d),icon:eH(e.icon,d),input:(i=e.input,o={baseBg:u,colorPalette:s,blendMode:l},{default:eD(i.default,o),invalid:eD(i.invalid,o)}),kbd:function(e,t){let{baseBg:n,blendMode:r,colorPalette:i}=t,o=eH(e.bg,{bg:n,blendMode:r,colorPalette:i}),s={bg:o,blendMode:r,colorPalette:i};return{bg:o,fg:eH(e.fg,s),border:eH(e.border,s)}}(e.kbd,{baseBg:u,colorPalette:s,blendMode:l}),link:{fg:eH(e.link.fg,d)},muted:{bg:eH(e.muted.bg,d),fg:eH(e.muted.fg,d)},shadow:f,skeleton:{from:eH(e.skeleton.from,d),to:eH(e.skeleton.to,d)},syntax:function(e,t){let{colorPalette:n,baseBg:r,blendMode:i}=t,o={colorPalette:n,bg:r,blendMode:i};return{atrule:eH(e.atrule,o),attrName:eH(e.attrName,o),attrValue:eH(e.attrValue,o),attribute:eH(e.attribute,o),boolean:eH(e.boolean,o),builtin:eH(e.builtin,o),cdata:eH(e.cdata,o),char:eH(e.char,o),class:eH(e.class,o),className:eH(e.className,o),comment:eH(e.comment,o),constant:eH(e.constant,o),deleted:eH(e.deleted,o),doctype:eH(e.doctype,o),entity:eH(e.entity,o),function:eH(e.function,o),hexcode:eH(e.hexcode,o),id:eH(e.id,o),important:eH(e.important,o),inserted:eH(e.inserted,o),keyword:eH(e.keyword,o),number:eH(e.number,o),operator:eH(e.operator,o),prolog:eH(e.prolog,o),property:eH(e.property,o),pseudoClass:eH(e.pseudoClass,o),pseudoElement:eH(e.pseudoElement,o),punctuation:eH(e.punctuation,o),regex:eH(e.regex,o),selector:eH(e.selector,o),string:eH(e.string,o),symbol:eH(e.symbol,o),tag:eH(e.tag,o),unit:eH(e.unit,o),url:eH(e.url,o),variable:eH(e.variable,o)}}(e.syntax,{baseBg:u,colorPalette:s,blendMode:l}),selectable:h}}function eB(e,t){let n={};for(let r of T)n[r]=function(e,t){let{baseBg:n,blendMode:r,colorPalette:i}=t,o=e._blend||"multiply",s=eH(e.bg,{bg:n,blendMode:r,colorPalette:i});return{_blend:o,bg:s,fg:eH(e.fg,{bg:s,blendMode:o,colorPalette:i})}}(e[r],t);return n}function eN(e,t){let n={};for(let r of es)n[r]=function(e,t){let{baseBg:n,blendMode:r,colorPalette:i}=t,o=eH(e.bg,{bg:n,blendMode:r,colorPalette:i}),s={bg:o,blendMode:r,colorPalette:i};return{bg:o,dot:eH(e.dot,s),fg:eH(e.fg,s),icon:eH(e.icon,s)}}(e[r],t);return n}function eW(e,t){let n={};for(let o of es){var r,i;n[o]=(r=e[o],i=t,{enabled:ez(r.enabled,i),hovered:ez(r.hovered,i),pressed:ez(r.pressed,i),selected:ez(r.selected,i),disabled:ez(r.disabled,i)})}return n}function ez(e,t){let{baseBg:n,blendMode:r,colorPalette:i}=t,o=e._blend||"multiply",s=eH(e.bg,{bg:n,blendMode:r,colorPalette:i}),a={bg:s,blendMode:o,colorPalette:i};return{_blend:o,accent:{fg:eH(e.accent.fg,a)},avatar:eB(e.avatar,{baseBg:s,colorPalette:i,blendMode:o}),badge:eN(e.badge,{baseBg:s,colorPalette:i,blendMode:o}),bg:s,border:eH(e.border,a),code:{bg:eH(e.code.bg,a),fg:eH(e.code.fg,a)},fg:eH(e.fg,a),icon:eH(e.icon,a),link:{fg:eH(e.link.fg,a)},muted:{bg:eH(e.muted.bg,a),fg:eH(e.muted.fg,a)},kbd:{bg:eH(e.kbd.bg,a),fg:eH(e.kbd.fg,a),border:eH(e.kbd.border,a)},skeleton:{from:eH(e.skeleton?.from,a),to:eH(e.skeleton?.to,a)}}}function eD(e,t){return{enabled:eF(e.enabled,t),hovered:eF(e.hovered,t),readOnly:eF(e.readOnly,t),disabled:eF(e.disabled,t)}}function eF(e,t){let{baseBg:n,blendMode:r,colorPalette:i}=t,o=e._blend||"multiply",s=eH(e.bg,{colorPalette:i,bg:n,blendMode:r}),a={colorPalette:i,bg:s,blendMode:o};return{_blend:o,bg:s,border:eH(e.border,a),fg:eH(e.fg,a),muted:{bg:eH(e.muted.bg,a)},placeholder:eH(e.placeholder,a)}}let eZ=new Map;var eU=e.i(81933),eq=e.i(47167);e.i(34537);var eG="-ms-",eY="-moz-",eX="-webkit-",eK="comm",eJ="rule",eQ="decl",e1="@keyframes",e0=Math.abs,e5=String.fromCharCode,e2=Object.assign;function e3(e,t){return(e=t.exec(e))?e[0]:e}function e4(e,t,n){return e.replace(t,n)}function e6(e,t,n){return e.indexOf(t,n)}function e8(e,t){return 0|e.charCodeAt(t)}function e9(e,t,n){return e.slice(t,n)}function e7(e){return e.length}function te(e,t){return t.push(e),e}function tt(e,t){return e.filter(function(e){return!e3(e,t)})}var tn=1,tr=1,ti=0,to=0,ts=0,ta="";function tl(e,t,n,r,i,o,s,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:tn,column:tr,length:s,return:"",siblings:a}}function tu(e,t){return e2(tl("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function td(e){for(;e.root;)e=tu(e.root,{children:[e]});te(e,e.siblings)}function tc(){return ts=to<ti?e8(ta,to++):0,tr++,10===ts&&(tr=1,tn++),ts}function th(){return e8(ta,to)}function tf(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function tp(e){var t,n;return(t=to-1,n=function e(t){for(;tc();)switch(ts){case t:return to;case 34:case 39:34!==t&&39!==t&&e(ts);break;case 40:41===t&&e(t);break;case 92:tc()}return to}(91===e?e+2:40===e?e+1:e),e9(ta,t,n)).trim()}function tg(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function tm(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case"@namespace":case eQ:return e.return=e.return||e.value;case eK:return"";case e1:return e.return=e.value+"{"+tg(e.children,r)+"}";case eJ:if(!e7(e.value=e.props.join(",")))return""}return e7(n=tg(e.children,r))?e.return=e.value+"{"+n+"}":""}function ty(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case eQ:e.return=function e(t,n,r){var i;switch(i=n,45^e8(t,0)?(((i<<2^e8(t,0))<<2^e8(t,1))<<2^e8(t,2))<<2^e8(t,3):0){case 5103:return eX+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return eX+t+t;case 4855:return eX+t.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+t;case 4789:return eY+t+t;
3case 5349:case 4246:case 4810:case 6968:case 2756:return eX+t+eY+t+eG+t+t;case 5936:switch(e8(t,n+11)){case 114:return eX+t+eG+e4(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return eX+t+eG+e4(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return eX+t+eG+e4(t,/[svh]\w+-[tblr]{2}/,"lr")+t}case 6828:case 4268:case 2903:return eX+t+eG+t+t;case 6165:return eX+t+eG+"flex-"+t+t;case 5187:return eX+t+e4(t,/(\w+).+(:[^]+)/,eX+"box-$1$2"+eG+"flex-$1$2")+t;case 5443:return eX+t+eG+"flex-item-"+e4(t,/flex-|-self/g,"")+(e3(t,/flex-|baseline/)?"":eG+"grid-row-"+e4(t,/flex-|-self/g,""))+t;case 4675:return eX+t+eG+"flex-line-pack"+e4(t,/align-content|flex-|-self/g,"")+t;case 5548:return eX+t+eG+e4(t,"shrink","negative")+t;case 5292:return eX+t+eG+e4(t,"basis","preferred-size")+t;case 6060:return eX+"box-"+e4(t,"-grow","")+eX+t+eG+e4(t,"grow","positive")+t;case 4554:return eX+e4(t,/([^-])(transform)/g,"$1"+eX+"$2")+t;case 6187:return e4(e4(e4(t,/(zoom-|grab)/,eX+"$1"),/(image-set)/,eX+"$1"),t,"")+t;case 5495:case 3959:return e4(t,/(image-set\([^]*)/,eX+"$1$`$1");case 4968:return e4(e4(t,/(.+:)(flex-)?(.*)/,eX+"box-pack:$3"+eG+"flex-pack:$3"),/space-between/,"justify")+eX+t+t;case 4200:if(!e3(t,/flex-|baseline/))return eG+"grid-column-align"+e9(t,n)+t;break;case 2592:case 3360:return eG+e4(t,"template-","")+t;case 4384:case 3616:if(r&&r.some(function(e,t){return n=t,e3(e.props,/grid-\w+-end/)}))return~e6(t+(r=r[n].value),"span",0)?t:eG+e4(t,"-start","")+t+eG+"grid-row-span:"+(~e6(r,"span",0)?e3(r,/\d+/):e3(r,/\d+/)-e3(t,/\d+/))+";";return eG+e4(t,"-start","")+t;case 4896:case 4128:return r&&r.some(function(e){return e3(e.props,/grid-\w+-start/)})?t:eG+e4(e4(t,"-end","-span"),"span ","")+t;case 4095:case 3583:case 4068:case 2532:return e4(t,/(.+)-inline(.+)/,eX+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(e7(t)-1-n>6)switch(e8(t,n+1)){case 109:if(45!==e8(t,n+4))break;case 102:return e4(t,/(.+:)(.+)-([^]+)/,"$1"+eX+"$2-$3$1"+eY+(108==e8(t,n+3)?"$3":"$2-$3"))+t;case 115:return~e6(t,"stretch",0)?e(e4(t,"stretch","fill-available"),n,r)+t:t}break;case 5152:case 5920:return e4(t,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(e,n,r,i,o,s,a){return eG+n+":"+r+a+(i?eG+n+"-span:"+(o?s:s-r)+a:"")+t});case 4949:if(121===e8(t,n+6))return e4(t,":",":"+eX)+t;break;case 6444:switch(e8(t,45===e8(t,14)?18:11)){case 120:return e4(t,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+eX+(45===e8(t,14)?"inline-":"")+"box$3$1"+eX+"$2$3$1"+eG+"$2box$3")+t;case 100:return e4(t,":",":"+eG)+t}break;case 5719:case 2647:case 2135:case 3927:case 2391:return e4(t,"scroll-","scroll-snap-")+t}return t}(e.value,e.length,n);return;case e1:return tg([tu(e,{value:e4(e.value,"@","@"+eX)})],r);case eJ:if(e.length){var i,o;return i=n=e.props,o=function(t){switch(e3(t,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":td(tu(e,{props:[e4(t,/:(read-\w+)/,":"+eY+"$1")]})),td(tu(e,{props:[t]})),e2(e,{props:tt(n,r)});break;case"::placeholder":td(tu(e,{props:[e4(t,/:(plac\w+)/,":"+eX+"input-$1")]})),td(tu(e,{props:[e4(t,/:(plac\w+)/,":"+eY+"$1")]})),td(tu(e,{props:[e4(t,/:(plac\w+)/,eG+"input-$1")]})),td(tu(e,{props:[t]})),e2(e,{props:tt(n,r)})}return""},i.map(o).join("")}}}function tv(e,t,n,r,i,o,s,a,l,u,d,c){for(var h=i-1,f=0===i?o:[""],p=f.length,g=0,m=0,y=0;g<r;++g)for(var v=0,w=e9(e,h+1,h=e0(m=s[g])),b=e;v<p;++v)(b=(m>0?f[v]+" "+w:e4(w,/&\f/g,f[v])).trim())&&(l[y++]=b);return tl(e,t,n,0===i?eJ:a,l,u,d,c)}function tw(e,t,n,r,i){return tl(e,t,n,eQ,e9(e,0,r),e9(e,r+1,-1),r,i)}let tb=void 0!==eq.default&&void 0!==eq.default.env&&(eq.default.env.REACT_APP_SC_ATTR||eq.default.env.SC_ATTR)||"data-styled",tx="active",tC="data-styled-version",tk="6.4.2",tj="/*!sc*/\n",tM="u">typeof window&&"u">typeof document;function tL(e){if(void 0!==eq.default&&void 0!==eq.default.env){let t=eq.default.env[e];if(void 0!==t&&""!==t)return"false"!==t}}let tS=!!("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:null!=(C=null!=(x=tL("REACT_APP_SC_DISABLE_SPEEDY"))?x:tL("SC_DISABLE_SPEEDY"))?C:void 0!==eq.default&&void 0!==eq.default.env&&!1),tE="sc-keyframes-";function tR(e,...t){return Error(`An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#${e} for more information.${t.length>0?` Args: ${t.join(", ")}`:""}`)}let tV=new Map,t_=new Map,t$=1,tA=e=>{if(tV.has(e))return tV.get(e);for(;t_.has(t$);)t$++;let t=t$++;return tV.set(e,t),t_.set(t,e),t},tT=e=>t_.get(e),tH=(e,t)=>{t$=t+1,tV.set(e,t),t_.set(t,e)},tI=Object.freeze([]),tP=Object.freeze({}),tO=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,tB=/(^-|-$)/g;function tN(e){return e.replace(tO,"-").replace(tB,"")}let tW=/(a)(d)/gi,tz=e=>String.fromCharCode(e+(e>25?39:97));function tD(e){let t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=tz(t%52)+n;return(tz(t%52)+n).replace(tW,"$1-$2")}let tF=(e,t)=>{let n=t.length;for(;n;)e=33*e^t.charCodeAt(--n);return e};function tZ(e){return tD(tF(5381,e)>>>0)}function tU(e){return"string"==typeof e}let tq=Symbol.for("react.memo"),tG=Symbol.for("react.forward_ref"),tY={contextType:!0,defaultProps:!0,displayName:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,propTypes:!0,type:!0},tX={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},tK={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},tJ={[tG]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[tq]:tK};function tQ(e){return("type"in e&&e.type.$$typeof)===tq?tK:"$$typeof"in e?tJ[e.$$typeof]:tY}let t1=Object.defineProperty,t0=Object.getOwnPropertyNames,t5=Object.getOwnPropertySymbols,t2=Object.getOwnPropertyDescriptor,t3=Object.getPrototypeOf,t4=Object.prototype;function t6(e){return"function"==typeof e}let t8=Symbol.for("react.forward_ref");function t9(e){return null!=e&&("object"==typeof e||"function"==typeof e)&&e.$$typeof===t8&&"styledComponentId"in e}function t7(e,t){return e&&t?e+" "+t:e||t||""}function ne(e,t){return e.join(t||"")}function nt(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function nn(e,t){Object.defineProperty(e,"toString",{value:t})}let nr=class{constructor(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e,this._cGroup=0,this._cIndex=0}indexOfGroup(e){if(e===this._cGroup)return this._cIndex;let t=this._cIndex;if(e>this._cGroup)for(let n=this._cGroup;n<e;n++)t+=this.groupSizes[n];else for(let n=this._cGroup-1;n>=e;n--)t-=this.groupSizes[n];return this._cGroup=e,this._cIndex=t,t}insertRules(e,t){if(e>=this.groupSizes.length){let t=this.groupSizes,n=t.length,r=n;for(;e>=r;)if((r<<=1)<0)throw tR(16,`${e}`);this.groupSizes=new Uint32Array(r),this.groupSizes.set(t),this.length=r;for(let e=n;e<r;e++)this.groupSizes[e]=0}let n=this.indexOfGroup(e+1),r=0;for(let i=0,o=t.length;i<o;i++)this.tag.insertRule(n,t[i])&&(this.groupSizes[e]++,n++,r++);r>0&&this._cGroup>e&&(this._cIndex+=r)}clearGroup(e){if(e<this.length){let t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(let e=n;e<r;e++)this.tag.deleteRule(n);t>0&&this._cGroup>e&&(this._cIndex-=t)}}getGroup(e){let t="";if(e>=this.length||0===this.groupSizes[e])return t;let n=this.groupSizes[e],r=this.indexOfGroup(e),i=r+n;for(let e=r;e<i;e++)t+=this.tag.getRule(e)+tj;return t}},ni=`style[${tb}][${tC}="${tk}"]`,no=RegExp(`^${tb}\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)`),ns=e=>"u">typeof ShadowRoot&&e instanceof ShadowRoot||"host"in e&&11===e.nodeType,na=e=>{if(!e)return document;if(ns(e))return e;if("getRootNode"in e){let t=e.getRootNode();if(ns(t))return t}return document},nl=(e,t,n)=>{let r,i=n.split(",");for(let n=0,o=i.length;n<o;n++)(r=i[n])&&e.registerName(t,r)},nu=(e,t)=>{var n;let r=(null!=(n=t.textContent)?n:"").split(tj),i=[];for(let t=0,n=r.length;t<n;t++){let n=r[t].trim();if(!n)continue;let o=n.match(no);if(o){let t=0|parseInt(o[1],10),n=o[2];0!==t&&(tH(n,t),nl(e,n,o[3]),e.getTag().insertRules(t,i)),i.length=0}else i.push(n)}},nd=e=>{let t=na(e.options.target).querySelectorAll(ni);for(let n=0,r=t.length;n<r;n++){let r=t[n];r&&r.getAttribute(tb)!==tx&&(nu(e,r),r.parentNode&&r.parentNode.removeChild(r))}},nc=!1,nh=(e,t)=>{let n,r=document.head,i=e||r,o=document.createElement("style"),s=(n=Array.from(i.querySelectorAll(`style[${tb}]`)))[n.length-1],a=void 0!==s?s.nextSibling:null;o.setAttribute(tb,tx),o.setAttribute(tC,tk);let l=t||function(){if(!1!==nc)return nc;if("u">typeof document){let e=document.head.querySelector('meta[property="csp-nonce"]');if(e)return nc=e.nonce||e.getAttribute("content")||void 0;let t=document.head.querySelector('meta[name="sc-nonce"]');if(t)return nc=t.getAttribute("content")||void 0}return nc="u">typeof __webpack_nonce__?__webpack_nonce__:void 0}();return l&&o.setAttribute("nonce",l),i.insertBefore(o,a),o},nf=class{constructor(e,t){this.element=nh(e,t),this.element.appendChild(document.createTextNode("")),this.sheet=(e=>{var t;if(e.sheet)return e.sheet;let n=null!=(t=e.getRootNode().styleSheets)?t:document.styleSheets;for(let t=0,r=n.length;t<r;t++){let r=n[t];if(r.ownerNode===e)return r}throw tR(17)})(this.element),this.length=0}insertRule(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}}deleteRule(e){this.sheet.deleteRule(e),this.length--}getRule(e){let t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""}}
3,np=class{constructor(e,t){this.element=nh(e,t),this.nodes=this.element.childNodes,this.length=0}insertRule(e,t){if(e<=this.length&&e>=0){let n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1}deleteRule(e){this.element.removeChild(this.nodes[e]),this.length--}getRule(e){return e<this.length?this.nodes[e].textContent:""}},ng=tM,nm={isServer:!tM,useCSSOMInjection:!tS};class ny{static registerId(e){return tA(e)}constructor(e=tP,t={},n){this.options=Object.assign(Object.assign({},nm),e),this.gs=t,this.keyframeIds=new Set,this.names=new Map(n),this.server=!!e.isServer,!this.server&&tM&&ng&&(ng=!1,nd(this)),nn(this,()=>(e=>{let t=e.getTag(),{length:n}=t,r="";for(let i=0;i<n;i++){let n=tT(i);if(void 0===n)continue;let o=e.names.get(n);if(void 0===o||!o.size)continue;let s=t.getGroup(i);if(0===s.length)continue;let a=tb+".g"+i+'[id="'+n+'"]',l="";for(let e of o)e.length>0&&(l+=e+",");r+=s+a+'{content:"'+l+'"}'+tj}return r})(this))}rehydrate(){!this.server&&tM&&nd(this)}reconstructWithOptions(e,t=!0){let n=new ny(Object.assign(Object.assign({},this.options),e),this.gs,t&&this.names||void 0);return n.keyframeIds=new Set(this.keyframeIds),!this.server&&tM&&e.target!==this.options.target&&na(this.options.target)!==na(e.target)&&nd(n),n}allocateGSInstance(e){return this.gs[e]=(this.gs[e]||0)+1}getTag(){return this.tag||(this.tag=new nr((({useCSSOMInjection:e,target:t,nonce:n})=>e?new nf(t,n):new np(t,n))(this.options)))}hasNameForId(e,t){var n,r;return null!=(r=null==(n=this.names.get(e))?void 0:n.has(t))&&r}registerName(e,t){tA(e),e.startsWith(tE)&&this.keyframeIds.add(e);let n=this.names.get(e);n?n.add(t):this.names.set(e,new Set([t]))}insertRules(e,t,n){this.registerName(e,t),this.getTag().insertRules(tA(e),n)}clearNames(e){this.names.has(e)&&this.names.get(e).clear()}clearRules(e){this.getTag().clearGroup(tA(e)),this.clearNames(e)}clearTag(){this.tag=void 0}}let nv=new WeakSet,nw={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexShrink:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function nb(e){if(45===e.charCodeAt(0)&&45===e.charCodeAt(1))return e;let t="";for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);t+=r>=65&&r<=90?"-"+String.fromCharCode(r+32):e[n]}return t.startsWith("ms-")?"-"+t:t}let nx=Symbol.for("sc-keyframes");function nC(e){return t6(e)&&!(e.prototype&&e.prototype.isReactComponent)}let nk=e=>null==e||!1===e||""===e,nj=Symbol.for("react.client.reference");function nM(e){return e.$$typeof===nj}function nL(e,t,n,r,i=[]){if(nk(e))return i;let o=typeof e;if("string"===o)return i.push(e),i;if("function"===o)return nM(e)?i:nC(e)&&t?nL(e(t),t,n,r,i):(i.push(e),i);if(Array.isArray(e)){for(let o=0;o<e.length;o++)nL(e[o],t,n,r,i);return i}return t9(e)?i.push(`.${e.styledComponentId}`):"object"==typeof e&&null!==e&&nx in e?n?(e.inject(n,r),i.push(e.getName(r))):i.push(e):nM(e)||(nt(e)?e.toString!==Object.prototype.toString?i.push(e.toString()):function e(t,n){for(let r in t){let i=t[r];t.hasOwnProperty(r)&&!nk(i)&&(Array.isArray(i)&&nv.has(i)||t6(i)?n.push(nb(r)+":",i,";"):nt(i)?(n.push(r+" {"),e(i,n),n.push("}")):n.push(nb(r)+": "+(null==i||"boolean"==typeof i||""===i?"":"number"!=typeof i||0===i||r in nw||r.startsWith("--")?String(i).trim():i+"px")+";"))}}(e,i):i.push(e.toString())),i}let nS=tF(5381,tk);class nE{constructor(e,t,n){this.rules=e,this.componentId=t,this.baseHash=tF(nS,t),this.baseStyle=n,ny.registerId(t)}generateAndInjectStyles(e,t,n){let r=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";{let i="";for(let r=0;r<this.rules.length;r++){let o=this.rules[r];if("string"==typeof o)i+=o;else if(o)if(nC(o)){let r=o(e);"string"==typeof r?i+=r:null!=r&&!1!==r&&(i+=ne(nL(r,e,t,n)))}else i+=ne(nL(o,e,t,n))}
3if(i){this.dynamicNameCache||(this.dynamicNameCache=new Map);let e=n.hash?n.hash+i:i,o=this.dynamicNameCache.get(e);if(!o){if(o=tD(tF(tF(this.baseHash,n.hash),i)>>>0),this.dynamicNameCache.size>=200){let e=this.dynamicNameCache.keys().next().value;void 0!==e&&this.dynamicNameCache.delete(e)}this.dynamicNameCache.set(e,o)}if(!t.hasNameForId(this.componentId,o)){let e=n(i,"."+o,void 0,this.componentId);t.insertRules(this.componentId,o,e)}r=t7(r,o)}}return r}}let nR=/&/g;function nV(e,t){let n=0;for(;--t>=0&&92===e.charCodeAt(t);)n++;return!(1&~n)}function n_(e){let t=e.length,n="",r=0,i=0,o=0,s=!1,a=!1;for(let l=0;l<t;l++){let u=e.charCodeAt(l);if(0!==o||s||47!==u||42!==e.charCodeAt(l+1))if(s)42===u&&47===e.charCodeAt(l+1)&&(s=!1,l++);else if(34!==u&&39!==u||nV(e,l)){if(0===o)if(123===u)i++;else if(125===u){if(--i<0){a=!0;let n=l+1;for(;n<t;){let t=e.charCodeAt(n);if(59===t||10===t)break;n++}n<t&&59===e.charCodeAt(n)&&n++,i=0,l=n-1,r=n;continue}0===i&&(n+=e.substring(r,l+1),r=l+1)}else 59===u&&0===i&&(n+=e.substring(r,l+1),r=l+1)}else 0===o?o=u:o===u&&(o=0);else s=!0,l++}return a||0!==i||0!==o?(r<t&&0===i&&0===o&&(n+=e.substring(r)),n):e}let n$=new ny,nA=function({options:e=tP,plugins:t=tI}=tP){var n,r,i;let o,s,a,l=(e,t,n)=>n.startsWith(s)&&n.endsWith(s)&&n.replaceAll(s,"").length>0?`.${o}`:e,u=t.slice();u.push(e=>{e.type===eJ&&e.value.includes("&")&&(a||(a=RegExp(`\\${s}\\b`,"g")),e.props[0]=e.props[0].replace(nR,s).replace(a,l))}),e.prefix&&u.push(ty),u.push(tm);let d=[],c=(i=(r=u.concat((n=e=>d.push(e),function(e){!e.root&&(e=e.return)&&n(e)}))).length,function(e,t,n,o){for(var s="",a=0;a<i;a++)s+=r[a](e,t,n,o)||"";return s}),h=(t,n="",r="",i="&")=>{var l,u,h;o=i,s=n,a=void 0;let f=function(e){let t=-1!==e.indexOf("//"),n=-1!==e.indexOf("}");if(!t&&!n)return e;if(!t)return n_(e);let r=e.length,i="",o=0,s=0,a=0,l=0,u=0,d=!1;for(;s<r;){let t=e.charCodeAt(s);if(34!==t&&39!==t||nV(e,s))if(0===a)if(47===t&&s+1<r&&42===e.charCodeAt(s+1)){for(s+=2;s+1<r&&(42!==e.charCodeAt(s)||47!==e.charCodeAt(s+1));)s++;s+=2}else if(40!==t)if(41!==t)if(l>0)s++;else if(42===t&&s+1<r&&47===e.charCodeAt(s+1))i+=e.substring(o,s),s+=2,o=s,d=!0;else if(47===t&&s+1<r&&47===e.charCodeAt(s+1)){for(i+=e.substring(o,s);s<r&&10!==e.charCodeAt(s);)s++;o=s,d=!0}else 123===t?u++:125===t&&u--,s++;else l>0&&l--,s++;else l++,s++;else s++;else 0===a?a=t:a===t&&(a=0),s++}return d?(o<r&&(i+=e.substring(o)),0===u?i:n_(i)):0===u?e:n_(e)}(t),p=(h=function e(t,n,r,i,o,s,a,l,u){for(var d,c,h,f,p=0,g=0,m=a,y=0,v=0,w=0,b=1,x=1,C=1,k=0,j="",M=o,L=s,S=i,E=j;x;)switch(w=k,k=tc()){case 40:if(108!=w&&58==e8(E,m-1)){-1!=e6(E+=e4(tp(k),"&","&\f"),"&\f",e0(p?l[p-1]:0))&&(C=-1);break}case 34:case 39:case 91:E+=tp(k);break;case 9:case 10:case 13:case 32:E+=function(e){for(;ts=th();)if(ts<33)tc();else break;return tf(e)>2||tf(ts)>3?"":" "}(w);break;case 92:E+=function(e,t){for(var n;--t&&tc()&&!(ts<48)&&!(ts>102)&&(!(ts>57)||!(ts<65))&&(!(ts>70)||!(ts<97)););return n=to+(t<6&&32==th()&&32==tc()),e9(ta,e,n)}(to-1,7);continue;case 47:switch(th()){case 42:case 47:te((d=function(e,t){for(;tc();)if(e+ts===57)break;else if(e+ts===84&&47===th())break;return"/*"+e9(ta,t,to-1)+"*"+e5(47===e?e:tc())}(tc(),to),c=n,h=r,f=u,tl(d,c,h,eK,e5(ts),e9(d,2,-2),0,f)),u),(5==tf(w||1)||5==tf(th()||1))&&e7(E)&&" "!==e9(E,-1,void 0)&&(E+=" ");break;default:E+="/"}break;case 123*b:l[p++]=e7(E)*C;case 125*b:case 59:case 0:switch(k){case 0:case 125:x=0;case 59+g:-1==C&&(E=e4(E,/\f/g,"")),v>0&&(e7(E)-m||0===b&&47===w)&&te(v>32?tw(E+";",i,r,m-1,u):tw(e4(E," ","")+";",i,r,m-2,u),u);break;case 59:E+=";";default:if(te(S=tv(E,n,r,p,g,o,l,j,M=[],L=[],m,s),s),123===k)if(0===g)e(E,n,S,S,M,s,m,l,L);else{switch(y){case 99:if(110===e8(E,3))break;case 108:if(97===e8(E,2))break;default:g=0;case 100:case 109:case 115:}g?e(t,S,S,i&&te(tv(t,S,S,0,0,o,l,j,o,M=[],m,L),L),o,L,m,l,i?M:L):e(E,S,S,S,[""],L,0,l,L)}}p=g=v=0,b=C=1,j=E="",m=a;break;case 58:m=1+e7(E),v=w;default:if(b<1){if(123==k)--b;else if(125==k&&0==b++&&125==(ts=to>0?e8(ta,--to):0,tr--,10===ts&&(tr=1,tn--),ts))continue}switch(E+=e5(k),k*b){case 38:C=g>0?1:(E+="\f",-1);break;case 44:l[p++]=(e7(E)-1)*C,C=1;break;case 64:45===th()&&(E+=tp(tc())),y=th(),g=m=e7(j=E+=function(e){for(;!tf(th());)tc();return e9(ta,e,to)}(to)),k++;break;case 45:45===w&&2==e7(E)&&(b=0)}}return s}("",null,null,null,[""],(u=l=r||n?r+" "+n+" { "+f+" }":f,tn=tr=1,ti=e7(ta=u),to=0,l=[]),0,[0],l),ta="",h);return e.namespace&&(p=function e(t,n){let r=n+" ",i=","+r;for(let o=0;o<t.length;o++){let s=t[o];if("rule"===s.type){s.value=(r+s.value).replaceAll(",",i);let e=s.props,t=[];for(let n=0;n<e.length;n++)t[n]=r+e[n];s.props=t}Array.isArray(s.children)&&"@keyframes"!==s.type&&e(s.children,n)}return t}(p,e.namespace)),d=[],tg(p,c),d},f=5381;for(let e=0;e<t.length;e++)t[e].name||tR(15),f=tF(f,t[e].name);return(null==e?void 0:e.namespace)&&(f=tF(f,e.namespace)),(null==e?void 0:e.prefix)&&(f=tF(f,"p")),h.hash=5381!==f?f.toString():"",h}(),nT=_.default.createContext({shouldForwardProp:void 0,styleSheet:n$,stylis:nA,stylisPlugins:void 0});nT.Consumer;let nH=_.default.createContext(void 0);function nI(e){let t=_.default.useContext(nH),n=_.default.useMemo(()=>(function(e,t){if(!e)throw tR(14);if(t6(e))return e(t);if(Array.isArray(e)||"object"!=typeof e)throw tR(8);return t?Object.assign(Object.assign({},t),e):e})(e.theme,t),[e.theme,t]);return e.children?_.default.createElement(nH.Provider,{value:n},e.children):null}nH.Consumer;let nP=Object.prototype.hasOwnProperty,nO={};function nB(e,t,n){var r,i;let o,s,a=t9(e),l=!tU(e),{attrs:u=tI,componentId:d=(r=t.displayName,i=t.parentComponentId,nO[o="str
3ing"!=typeof r?"sc":tN(r)]=(nO[o]||0)+1,s=o+"-"+tZ(tk+o+nO[o]),i?i+"-"+s:s),displayName:c=tU(e)?`styled.${e}`:`Styled(${e.displayName||e.name||"Component"})`}=t,h=t.displayName&&t.componentId?tN(t.displayName)+"-"+t.componentId:t.componentId||d,f=a&&e.attrs?e.attrs.concat(u).filter(Boolean):u,{shouldForwardProp:p}=t;if(a&&e.shouldForwardProp){let n=e.shouldForwardProp;if(t.shouldForwardProp){let e=t.shouldForwardProp;p=(t,r)=>n(t,r)&&e(t,r)}else p=n}let g=new nE(n,h,a?e.componentStyle:void 0);function m(e,t){return function(e,t,n){let r,i,{attrs:o,componentStyle:s,defaultProps:a,foldedComponentIds:l,styledComponentId:u,target:d}=e,c=_.default.useContext(nH),h=_.default.useContext(nT),f=e.shouldForwardProp||h.shouldForwardProp,p=function(e,t,n=tP){return e.theme!==n.theme&&e.theme||t||n.theme}(t,c,a)||tP;{let e=_.default.useRef(null),n=e.current;if(null!==n&&n[1]===p&&n[2]===h.styleSheet&&n[3]===h.stylis&&n[7]===s&&function(e,t,n){let r=0;for(let n in t)if(nP.call(t,n)&&(r++,e[n]!==t[n]))return!1;return r===n}(n[0],t,n[4]))r=n[5],i=n[6];else{var g,m,y;r=function(e,t,n){let r=Object.assign(Object.assign({},t),{className:void 0,theme:n}),i=e.length>1;for(let n=0;n<e.length;n++){let o=e[n],s=t6(o)?o(i?Object.assign({},r):r):o;for(let e in s)"className"===e?r.className=t7(r.className,s[e]):"style"===e?r.style=Object.assign(Object.assign({},r.style),s[e]):e in t&&void 0===t[e]||(r[e]=s[e])}return"className"in t&&"string"==typeof t.className&&(r.className=t7(r.className,t.className)),r}(o,t,p),g=r,m=h.styleSheet,y=h.stylis,i=s.generateAndInjectStyles(g,m,y);let n=0;for(let e in t)nP.call(t,e)&&n++;e.current=[t,p,h.styleSheet,h.stylis,n,r,i,s]}}let v=r.as||d,w=function(e,t,n,r){let i={};for(let o in e)void 0===e[o]||"$"===o[0]||"as"===o||"theme"===o&&e.theme===n||("forwardedAs"===o?i.as=e.forwardedAs:r&&!r(o,t)||(i[o]=e[o]));return i}(r,v,p,f),b=t7(l,u);return i&&(b+=" "+i),r.className&&(b+=" "+r.className),w[tU(v)&&v.includes("-")?"class":"className"]=b,n&&(w.ref=n),(0,_.createElement)(v,w)}(y,e,t)}m.displayName=c;let y=_.default.forwardRef(m);return y.attrs=f,y.componentStyle=g,y.displayName=c,y.shouldForwardProp=p,y.foldedComponentIds=a?t7(e.foldedComponentIds,e.styledComponentId):"",y.styledComponentId=h,y.target=a?e.target:e,Object.defineProperty(y,"defaultProps",{get(){return this._foldedDefaultProps},set(t){this._foldedDefaultProps=a?function(e,...t){for(let n of t)!function e(t,n,r=!1){if(!r&&!nt(t)&&!Array.isArray(t))return n;if(Array.isArray(n))for(let r=0;r<n.length;r++)t[r]=e(t[r],n[r]);else if(nt(n))for(let r in n)t[r]=e(t[r],n[r]);return t}(e,n,!0);return e}({},e.defaultProps,t):t}}),nn(y,()=>`.${y.styledComponentId}`),l&&function e(t,n,r){if("string"!=typeof n){let i=t3(n);i&&i!==t4&&e(t,i,r);let o=t0(n).concat(t5(n)),s=tQ(t),a=tQ(n);for(let e=0;e<o.length;++e){let i=o[e];if(!(i in tX||r&&r[i]||a&&i in a||s&&i in s)){let e=t2(n,i);try{t1(t,i,e)}catch(e){}}}}return t}(y,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),y}var nN=new Set(["a","abbr","address","area","article","aside","audio","b","bdi","bdo","blockquote","body","button","br","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","map","mark","menu","meter","nav","object","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","slot","small","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","switch","symbol","text","textPath","tspan","use"]);function nW(e,t){let n=[e[0]];for(let r=0,i=t.length;r<i;r+=1)n.push(t[r],e[r+1]);return n}let nz=e=>(nv.add(e),e);function nD(e,...t){return t6(e)||nt(e)?nz(nL(nW(tI,[e,...t]))):0===t.length&&1===e.length&&"string"==typeof e[0]?nL(e):nz(nL(nW(e,t)))}let nF=e=>(function e(t,n,r=tP){if(!n)throw tR(1,n);let i=(e,...i)=>t(n,r,nD(e,...i));return i.attrs=i=>e(t,n,Object.assign(Object.assign({}
3,r),{attrs:Array.prototype.concat(r.attrs,i).filter(Boolean)})),i.withConfig=i=>e(t,n,Object.assign(Object.assign({},r),i)),i})(nB,e);nN.forEach(e=>{nF[e]=nF(e)});class nZ{constructor(e,t){this[k]=!0,this.inject=(e,t=nA)=>{let n=this.getName(t);if(!e.hasNameForId(this.id,n)){let r=t(this.rules,n,"@keyframes");e.insertRules(this.id,n,r)}},this.name=e,this.id=tE+e,this.rules=t,tA(this.id),nn(this,()=>{throw tR(12,String(this.name))})}getName(e=nA){return e.hash?this.name+tD(e.hash>>>0):this.name}}function nU(e,...t){let n=ne(nD(e,...t));return new nZ(tZ(n),n)}k=nx;var nq=e.i(79684);let nG=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"access-denied",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M18.1568 6.84315C21.281 9.96734 21.281 15.0327 18.1568 18.1569C15.0326 21.281 9.96733 21.281 6.84313 18.1569C3.71894 15.0327 3.71894 9.96734 6.84313 6.84315C9.96733 3.71895 15.0326 3.71895 18.1568 6.84315ZM18.1568 6.84315L6.844 18.156",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),nY=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"activity",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M21 15H19L15.5 7L11 18L8 12L6 15H4",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),nX=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"add-circle",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M8 12.4H17M12.5 8V17M20.5 12.5C20.5 16.9183 16.9183 20.5 12.5 20.5C8.08172 20.5 4.5 16.9183 4.5 12.5C4.5 8.08172 8.08172 4.5 12.5 4.5C16.9183 4.5 20.5 8.08172 20.5 12.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),nK=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"add-comment",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M13 6.5H7.5C6.39543 6.5 5.5 7.39543 5.5 8.5V14.5C5.5 15.6046 6.39543 16.5 7.5 16.5H9.5V20.5L13.5 16.5H16.5C17.6046 16.5 18.5 15.6046 18.5 14.5V12M15 6.5H22M18.5 10V3",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),nJ=(0,_.forwardRef)(function(e,t){return(0,E.jsxs)("svg",{"data-sanity-icon":"add-document",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:[(0,E.jsx)("path",{d:"M11.5 4.5V9.5H6.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),(0,E.jsx)("path",{d:"M11.5 4.5H18.5V12M11.5 4.5L6.5 9.5M11.5 4.5V9.5H6.5M6.5 9.5V19.5H11M20 17.5H16.5M16.5 17.5H13M16.5 17.5V14M16.5 17.5V21",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})}),nQ=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"add",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M12.5 5V20M5 12.5H20",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),n1=(0,_.forwardRef)(function(e,t){return(0,E.jsxs)("svg",{"data-sanity-icon":"add-user",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:[(0,E.jsx)("path",{d:"M7.17857 15.2368C6.10714 15.7632 4.5 16.8158 4.5 20.5H19.5C19.5 16.8158 18.2589 15.943 16.8214 15.2368C15.75 14.7105 13.6071 14.7105 13.6071 13.1316C13.6071 11.5526 14.6786 10.7632 14.6786 8.65789C14.6786 6.55263 13.6071 5.5 12 5.5C10.3929 5.5 9.32142 6.55263 9.32142 8.65789C9.32142 10.7632 10.3929 11.5526 10.3929 13.1316C10.3929 14.7105 8.25 14.7105 7.17857 15.2368Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),(0,E.jsx)("path",{d:"M20.5 6V13M17 9.5H24",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})}),n0=(0,_.forwardRef)(function(e,t){return(0,E.jsxs)("svg",{"data-sanity-icon":"api",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:[(0,E.jsx)("path",{d:"M5.93047 13.2107L6.66782 10.3728H6.73089L7.45854 13.2107H5.93047ZM8.17164 16H9.66089L7.56041 9H5.93047L3.82999 16H5.20767L5.65396 14.2876H7.73505L8.17164 16Z",fill:"currentColor"}),(0,E.jsx)("path",{d:"M10.5389 9V16H11.9166V13.7782H13.0323C14.541 13.7782 15.5015 12.8517 15.5015 11.3964C15.5015 9.92654 14.5701 9 13.1003 9H10.5389ZM11.9166 10.1303H12.751C13.6533 10.1303 14.1044 10.5475 14.1044 11.3867C14.1044 12.2308 13.6533 12.6431 12.751 12.6431H11.9166V10.1303Z",fill:"currentColor"}),(0,E.jsx)("path",{d:"M21.1675 16V14.8164H19.717V10.1836H21.1675V9H16.8889V10.1836H18.3393V14.8164H16.8889V16H21.1675Z",fill:"currentColor"})]})}),n5=(0,_.forwardRef)(function(e,t){return(0,E.jsxs)("svg",{"data-sanity-icon":"archive",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:[(0,E.jsx)("path",{d:"M12.5 10V17M20.5 7.5V20.5H4.5V7.5L7.5 4.5H17.5L20.5 7.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),(0,E.jsx)("path",{d:"M4.5 7.5H20.5M16 14L12.5 17.5L9 14",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})}),n2=(0,_.forwardRef)(function(e,t){return(0,E.jsxs)("svg",{"data-sanity-icon":"arrow-down",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:[(0,E.jsx)("path",{d:"M12.5 19.5V5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),(0,E.jsx)("path",{d:"M18 14L12.5 19.5L7 14",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})}),n3=(0,_.forwardRef)(function(e,t){return(0,E.jsxs)("svg",{"data-sanity-icon":"arrow-left",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:[(0,E.jsx)("path",{d:"M5.5 12.5H20",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),(0,E.jsx)("path",{d:"M11 18L5.5 12.5L11 7",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})}),n4=(0,_.forwardRef)(function(e,t){return(0,E.jsxs)("svg",{"data-sanity-icon":"arrow-right",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:[(0,E.jsx)("path",{d:"M19.5 12.5H5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),(0,E.jsx)("path",{d:"M14 7L19.5 12.5L14 18",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})}),n6=(0,_.forwardRef)(function(e,t){return(0,E.jsxs)("svg",{"data-sanity-icon":"arrow-top-right",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:[(0,E.jsx)("path",{d:"M16.5 8.5L7 18",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}
3),(0,E.jsx)("path",{d:"M9 8.5H16.5V16",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})}),n8=(0,_.forwardRef)(function(e,t){return(0,E.jsxs)("svg",{"data-sanity-icon":"arrow-up",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:[(0,E.jsx)("path",{d:"M7 11L12.5 5.5L18 11",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),(0,E.jsx)("path",{d:"M12.5 5.5V20",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})}),n9=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"asterisk",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M12.5 4V21M16.75 5.13879L8.25 19.8612M19.8612 8.25L5.13878 16.75M4.00002 12.5H21M5.13881 8.25L19.8612 16.75M8.25002 5.13879L16.75 19.8612",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),n7=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"bar-chart",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M5.5 5V19.5H20M8.5 18V13M11.5 18V9M14.5 18V11M17.5 18V7",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),re=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"basket",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M8.5 10.5H5L6.5 19.5H18.5L20 10.5H16.5M8.5 10.5L10.2721 5.18377C10.4082 4.77543 10.7903 4.5 11.2208 4.5H13.7792C14.2097 4.5 14.5918 4.77543 14.7279 5.18377L16.5 10.5M8.5 10.5H16.5M8.5 10.5L9.5 19.5M16.5 10.5L15.5 19.5M12.5 10.5V19.5M19.5 13.5H5.5M19
316.5H6",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),rt=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"bell",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M10.5 17.5V18.5C10.5 20 11.5 20.5 12.5 20.5C13.5 20.5 14.5 20 14.5 18.5V17.5M5.5 17.5C6.5 16 6.5 15 6.5 12C6.5 8 8.5 5.5 12.5 5.5C16.5 5.5 18.5 8 18.5 12C18.5 15 18.5 16 19.5 17.5H5.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),rn=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"bill",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M6.50001 5.5C8.50003 5.5 8.50003 8 8.50003 8V9.5M6.50001 5.5C4.5 5.5 4.5 8 4.5 8L4.50001 9.5H8.50003M6.50001 5.5C6.50001 5.5 15.8333 5.5 17.6667 5.5C19.5 5.5 19.5 8.5 19.5 8.5V20L17.6667 19L15.8333 20L14 19L12.1667 20L10.3334 19L8.50003 20V9.5M11 12.5H15M11 9.5H16M11 15.5H16",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),rr=(0,_.forwardRef)(function(e,t){return(0,E.jsxs)("svg",{"data-sanity-icon":"binary-document",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:[(0,E.jsx)("path",{d:"M11.5 4.5V9.5H6.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),(0,E.jsx)("path",{d:"M9.5 12.5V17.5M11.5 4.5H18.5V20.5H6.5V9.5L11.5 4.5ZM12.5 12.5V17.5H15.5V12.5H12.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinecap:"square",strokeLinejoin:"round"})]})}),ri=(0,_.forwardRef)(function(e,t){return(0,E.jsxs)("svg",{"data-sanity-icon":"block-content",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:[(0,E.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21 7.60002L11 7.60003V6.40003L21 6.40002V7.60002Z",fill:"currentColor"}),(0,E.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21 11.2667L12.4833 11.2667V10.0667L21 10.0667V11.2667Z",fill:"currentColor"}),(0,E.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21 14.9334H13.9254V13.7334L21 13.7334V14.9334Z",fill:"currentColor"}),(0,E.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21 18.6002H4V17.4002H21V18.6002Z",fill:"currentColor"}),(0,E.jsx)("path",{d:"M9.86438 15.6H11.2L8.27623 7.60003H6.92377L4 15.6H5.29072L6.0371 13.4767H9.12362L9.86438 15.6ZM7.53546 9.05255H7.63086L8.80374 12.4344H6.35698L7.53546 9.05255Z",fill:"currentColor"})]})}),ro=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"block-element",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M5 19.5H20M5 5.5H20M6.5 8.5H18.5V16.5H6.5V8.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),rs=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"blockquote",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M10 17.5H19M6 7.5H19M10 12.5H17M6.5 12V18",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),ra=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"bold",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M13.2087 18C15.5322 18 16.9731 16.793 16.9731 14.8844C16.9731 13.4812 15.9245 12.3949 14.4836 12.2892V12.1534C15.6001 11.9875 16.4526 10.9841 16.4526 9.82991C16.4526 8.14761 15.1927 7.11409 13.0804 7.11409H8.32019V18H13.2087ZM10.5985 8.85674H12.4995C13.5859 8.85674 14.212 9.37727 14.212 10.2448C14.212 11.1199 13.5406 11.6254 12.3109 11.6254H10.5985V8.85674ZM10.5985 16.2574V13.1643H12.575C13.9178 13.1643 14.6496 13.6924 14.6496 14.6882C14.6496 15.7066 13.9404 16.2574 12.6278 16.2574H10.5985Z",fill:"currentColor"})})}),rl=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"bolt",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M18 11.5L9 21L11 13.5H7L16 4L14 11.5H18Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),ru=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"book",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M19.5 18V7C19.5 7 18.5 6.5 16.5 6.5C14.5 6.5 12.5 7.5 12.5 7.5M19.5 18V18.5C19.5 18.5 18 18.5 16 18.5C14 18.5 12.5 18.5 12.5 18.5M19.5 18C19.5 18 18.5 17.5 16.5 17.5C14.5 17.5 12.5 18.5 12.5 18.5M5.5 18V7C5.5 7 6.5 6.5 8.5 6.5C10.5 6.5 12.5 7.5 12.5 7.5M5.5 18V18.5C5.5 18.5 7 18.5 9 18.5C11 18.5 12.5 18.5 12.5 18.5M5.5 18C5.5 18 6.5 17.5 8.5 17.5C10.5 17.5 12.5 18.5 12.5 18.5M12.5 18.5V7.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),rd=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"bookmark-filled",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M7.5 6.5V19.5L12.5 14.5L17.5 19.5V6.5C17.5 5.94772 17.0523 5.5 16.5 5.5H8.5C7.94772 5.5 7.5 5.94772 7.5 6.5Z",fill:"currentColor",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),rc=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"bookmark",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M7.5 6.5V19.5L12.5 14.5L17.5 19.5V6.5C17.5 5.94772 17.0523 5.5 16.5 5.5H8.5C7.94772 5.5 7.5 5.94772 7.5 6.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),rh=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"bottle",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M7.5 17.5L17.5 17.5M17.5 13C17.5 12.087 17.5 11.3518 17.5 11C17.5 8.5 14.5 9 14.5 7.37494L14.5 5.5M17.5 13C17.5 15.1229 17.5 18.7543 17.5 20.5022C17.5 21.0545 17.0523 21.5 16.5 21.5L8.5 21.5C7.94772 21.5 7.5 21.0547 7.5 20.5024C7.5 18.8157 7.5 15.3546 7.5 13M17.5 13L7.5 13M7.5 13C7.5 12.2538 7.5 11.5648 7.5 11C7.5 8.5 10.5 9 10.5 7.37494L10.5 5.5M10.5 5.5L10.5 3.99999C10.5 3.72385 10.7239 3.49999 11 3.49999L14 3.49999C14.2761 3.49999 14.5 3.72385 14.5 3.99999L14.5 5.5M10.5 5.5L14.5 5.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),rf=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"bug",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M8.5 9.5V8.9C8.16863 8.9 7.9 9.16863 7.9 9.5H8.5ZM16.5 9.5H17.1C17.1 9.16863 16.8314 8.9 16.5 8.9V9.5ZM8.5 10.1H9.5V8.9H8.5V10.1ZM9.5 10.1H15.5V8.9H9.5V10.1ZM15.5 10.1H16.5V8.9H15.5V10.1ZM15.9 9.5V13.5H17.1V9.5H15.9ZM15.9 13.5C15.9 14.395 15.678 15.0264 15.3758 15.4797C15.0711 15.9367 14.6605 16.2489 14.2317 16.4633C13.8005 16.6789 13.3621 16.7897 13.0264 16.8457C12.8599 16.8734 12.7226 16.887 12.6291 16.8937C12.5825 16.897 12.5472 16.8986 12.5249 16.8994C12.5138 16.8997 12.506 16.8999 12.5018 16.9C12.4997 16.9 12.4984 16.9 12.4981 16.9C12.498 16.9 12.4981 16.9 12.4984 16.9C12.4985 16.9 12.4987 16.9 12.499 16.9C12.4991 16.9 12.4994 16.9 12.4995 16.9C12.4997 16.9 12.5 16.9 12.5 17.5C12.5 18.1 12.5003 18.1 12.5006 18.1C12.5008 18.1 12.5011 18.1 12.5014 18.1C12.5019 18.1 12.5025 18.1 12.5031 18.1C12.5044 18.1 12.5059 18.1 12.5077 18.1C12.5112 18.0999 12.5157 18.0999 12.5212 18.0998C12.532 18.0996 12.5467 18.0993 12.5649 18.0987C12.6013 18.0975 12.6519 18.0951 12.7146 18.0907C12.8399 18.0817 13.0151 18.0641 13.2236 18.0293C13.6379 17.9603 14.1995 17.8211 14.7683 17.5367C15.3395 17.2511 15.9289 16.8133 16.3742 16.1453C16.822 15.4736 17.1 14.605 17.1 13.5H15.9ZM12.5 17.5C12.5 16.9 12.5003 16.9 12.5005 16.9C12.5006 16.9 12.5009 16.9 12.501 16.9C12.5013 16.9 12.5015 16.9 12.5016 16.9C12.5019 16.9 12.502 16.9 12.5019 16.9C12.5016 16.9 12.5003 16.9 12.4982 16.9C12.494 16.8999 12.4862 16.8997 12.4751 16.8994C12.4528 16.8986 12.4175 16.897 12.3709 16.8937C12.2774 16.887 12.1401 16.8734 11.9736 16.8457C11.6379 16.7897 11.1995 16.6789 10.7683 16.4633C10.3395 16.2489 9.92894 15.9367 9.62423 15.4797C9.32203 15.0264 9.1 14.395 9.1 13.5H7.9C7.9 14.605 8.17797 15.4736 8.62577 16.1453C9.07106 16.8133 9.66049 17.2511 10.2317 17.5367C10.8005 17.8211 11.3621 17.9603 11.7764 18.0293C11.9849 18.0641 12.1601 18.0817 12.2854 18.0907C12.3481 18.0951 12.3987 18.0975 12.4351 18.0987C12.4533 18.0993 12.468 18.0996 12.4788 18.0998C12.4843 18.0999 12.4888 18.0999 12.4923 18.1C12.4941 18.1 12.4956 18.1 12.4969 18.1C12.4975 18.1 12.4981 18.1 12.4986 18.1C12.4989 18.1 12.4992 18.1 12.4994 18.1C12.4997 18.1 12.5 18.1 12.5 17.5ZM9.1 13.5V9.5H7.9V13.5H9.1Z
3M9.5 9.5C10.1 9.5 10.1 9.50028 10.1 9.50055C10.1 9.50063 10.1 9.50089 10.1 9.50104C10.1 9.50134 10.1 9.5016 10.1 9.50182C10.1 9.50225 10.1 9.5025 10.1 9.50259C10.1 9.50276 10.1 9.50224 10.1 9.50107C10.1001 9.49872 10.1002 9.49374 10.1004 9.4863C10.1009 9.4714 10.102 9.44678 10.1043 9.41384C10.1091 9.34776 10.1188 9.24944 10.1387 9.12989C10.179 8.88793 10.2586 8.5745 10.4117 8.26833C10.5636 7.96451 10.782 7.67894 11.0984 7.46798C11.4111 7.25953 11.855 7.1 12.5 7.1V5.9C11.645 5.9 10.9639 6.11547 10.4328 6.46952C9.90549 6.82106 9.56143 7.28549 9.33834 7.73167C9.11643 8.1755 9.00846 8.61207 8.95504 8.93261C8.92809 9.09431 8.91438 9.23036 8.90738 9.32835C8.90388 9.37744 8.90203 9.41727 8.90107 9.44632C8.90058 9.46085 8.90031 9.47272 8.90017 9.48172C8.9001 9.48622 8.90005 9.49001 8.90003 9.49306C8.90002 9.49459 8.90001 9.49593 8.90001 9.49709C8.9 9.49767 8.9 9.4982 8.9 9.49869C8.9 9.49893 8.9 9.49926 8.9 9.49938C8.9 9.4997 8.9 9.5 9.5 9.5ZM12.5 7.1C13.145 7.1 13.5889 7.25953 13.9016 7.46798C14.218 7.67894 14.4364 7.96451 14.5883 8.26833C14.7414 8.5745 14.821 8.88793 14.8613 9.12989C14.8812 9.24944 14.8909 9.34776 14.8957 9.41384C14.898 9.44678 14.8991 9.4714 14.8996 9.4863C14.8998 9.49374 14.8999 9.49872 14.9 9.50107C14.9 9.50224 14.9 9.50276 14.9 9.50259C14.9 9.5025 14.9 9.50225 14.9 9.50182C14.9 9.5016 14.9 9.50134 14.9 9.50104C14.9 9.50089 14.9 9.50063 14.9 9.50055C14.9 9.50028 14.9 9.5 15.5 9.5C16.1 9.5 16.1 9.4997 16.1 9.49938C16.1 9.49926 16.1 9.49893 16.1 9.49869C16.1 9.4982 16.1 9.49767 16.1 9.49709C16.1 9.49593 16.1 9.49459 16.1 9.49306C16.0999 9.49001 16.0999 9.48622 16.0998 9.48172C16.0997 9.47272 16.0994 9.46085 16.0989 9.44632C16.098 9.41727 16.0961 9.37744 16.0926 9.32835C16.0856 9.23036 16.0719 9.09431 16.045 8.93261C15.9915 8.61207 15.8836 8.1755 15.6617 7.73167C15.4386 7.28549 15.0945 6.82106 14.5672 6.46952C14.0361 6.11547 13.355 5.9 12.5 5.9V7.1ZM11.9 9.5V17.5H13.1V9.5H11.9ZM8.5 9.9C7.71525 9.9 7.10887 9.51034 6.67426 9.07574C6.45859 8.86006 6.29547 8.64279 6.18673 8.47968C6.1327 8.39863 6.09302 8.33235 6.06782 8.28825C6.05524 8.26624 6.04634 8.24988 6.04113 8.24011C6.03853 8.23523 6.03685 8.232 6.0361 8.23055C6.03573 8.22983 6.03559 8.22955 6.03568 8.22973C6.03573 8.22982 6.03583 8.23003 6.03599 8.23035C6.03607 8.23051 6.03617 8.2307 6.03628 8.23092C6.03634 8.23103 6.03643 8.23122 6.03646 8.23127C6.03656 8.23147 6.03666 8.23167 5.5 8.5C4.96334 8.76833 4.96345 8.76855 4.96357 8.76877C4.96361 8.76886 4.96372 8.76909 4.96381 8.76926C4.96398 8.7696 4.96417 8.76997 4.96437 8.77038C4.96478 8.77119 4.96525 8.77212 4.96579 8.77317C4.96685 8.77527 4.96818 8.77786 4.96976 8.78092C4.97292 8.78704 4.9771 8.79505 4.98231 8.80481C4.99272 8.82434 5.00726 8.85094 5.02593 8.88362C5.06323 8.9489 5.1173 9.03887 5.18827 9.14532C5.32953 9.35721 5.54141 9.63994 5.82574 9.92426C6.39113 10.4897 7.28475 11.1 8.5 11.1V9.9ZM16.5 11.1C17.7153 11.1 18.6089 10.4897 19.1743 9.92426C19.4586 9.63994 19.6705 9.35721 19.8117 9.14532C19.8827 9.03887 19.9368 8.9489 19.9741 8.88362C19.9927 8.85094 20.0073 8.82434 20.0177 8.80481C20.0229 8.79505 20.0271 8.78704 20.0302 8.78092C20.0318 8.77786 20.0331 8.77527 20.0342 8.77317C20.0347 8.77212 20.0352 8.77119 20.0356 8.77038C20.0358 8.76997 20.036 8.7696 20.0362 8.76926C20.0363 8.76909 20.0364 8.76886 20.0364 8.76877C20.0365 8.76855 20.0367 8.76833 19.5 8.5C18.9633 8.23167 18.9634 8.23147 18.9635 8.23127C18.9636 8.23122 18.9637 8.23103 18.9637 8.23092C18.9638 8.2307 18.9639 8.23051 18.964 8.23035C18.9642 8.23003 18.9643 8.22982 18.9643 8.22973C18.9644 8.22955 18.9643 8.22983 18.9639 8.23055C18.9632 8.232 18.9615 8.23523 18.9589 8.24011C18.9537 8.24988 18.9448 8.26624 18.9322 8.28825C18.907 8.33235 18.8673 8.39863 18.8133 8.47968C18.7045 8.64279 18.5414 8.86006 18.3257 9.07574C17.8911 9.51034 17.2847 9.9 16.5 9.9V11.1ZM16.5 13.1H20V11.9H16.5V13.1ZM16.5 15.1C17.2847 15.1 17.8911 15.4897 18.3257 15.9243C18.5414 16.1399 18.7045 16.3572 18.8133 16.5203C18.8673 16.6014 18.907 16.6676 18.9322 16.7117C18.9448 16.7338 18.9537 16.7501 18.9589 16.7599C18.9615 16.7648 18.9632 16.768 18.9639 16.7694C18.9643 16.7702 18.9644 16.7705 18.9643 16.7703C18.9643 16.7702 18.9642 16.77 18.964 16.7697C18.9639 16.7695 18.9638 16.7693 18.9637 16.7691C18.9637 16.769 18.9636 16.7688 18.9635 16.7687C18.9634 16.7685 18.9633 16.7683 19.5 16.5C20.0367 16.2317 20.0365 16.2315 20.0364 16.2312C20.0364 16.2311 20.0363 16.2309 20.0362 16.2307C20.036 16.23
304 20.0358 16.23 20.0356 16.2296C20.0352 16.2288 20.0347 16.2279 20.0342 16.2268C20.0331 16.2247 20.0318 16.2221 20.0302 16.2191C20.0271 16.213 20.0229 16.205 20.0177 16.1952C20.0073 16.1757 19.9927 16.1491 19.9741 16.1164C19.9368 16.0511 19.8827 15.9611 19.8117 15.8547C19.6705 15.6428 19.4586 15.3601 19.1743 15.0757C18.6089 14.5103 17.7153 13.9 16.5 13.9V15.1ZM8.5 13.9C7.28475 13.9 6.39113 14.5103 5.82574 15.0757C5.54141 15.3601 5.32953 15.6428 5.18827 15.8547C5.1173 15.9611 5.06323 16.0511 5.02593 16.1164C5.00726 16.1491 4.99272 16.1757 4.98231 16.1952C4.9771 16.205 4.97292 16.213 4.96976 16.2191C4.96818 16.2221 4.96685 16.2247 4.96579 16.2268C4.96525 16.2279 4.96478 16.2288 4.96437 16.2296C4.96417 16.23 4.96398 16.2304 4.96381 16.2307C4.96372 16.2309 4.96361 16.2311 4.96357 16.2312C4.96345 16.2315 4.96334 16.2317 5.5 16.5C6.03666 16.7683 6.03656 16.7685 6.03646 16.7687C6.03643 16.7688 6.03634 16.769 6.03628 16.7691C6.03617 16.7693 6.03607 16.7695 6.03599 16.7697C6.03583 16.77 6.03573 16.7702 6.03568 16.7703C6.03559 16.7705 6.03573 16.7702 6.0361 16.7694C6.03685 16.768 6.03853 16.7648 6.04113 16.7599C6.04634 16.7501 6.05524 16.7338 6.06782 16.7117C6.09302 16.6676 6.1327 16.6014 6.18673 16.5203C6.29547 16.3572 6.45859 16.1399 6.67426 15.9243C7.10887 15.4897 7.71525 15.1 8.5 15.1V13.9ZM8.5 11.9H5V13.1H8.5V11.9Z",fill:"currentColor"})})}),rp=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"bulb-filled",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M16.4272 14.3368C15.8273 15.1773 15.5 16.1794 15.5 17.212V18.5C15.5 19.0523 15.0523 19.5 14.5 19.5H14V20.5C14 21.0523 13.5523 21.5 13 21.5H12C11.4477 21.5 11 21.0523 11 20.5V19.5H10.5C9.94772 19.5 9.5 19.0523 9.5 18.5V17.212C9.5 16.1794 9.17266 15.1773 8.57284 14.3368C7.60216 12.9767 7 11.94 7 10C7 7 9.5 4.5 12.5 4.5C15.5 4.5 18 7 18 10C18 11.94 17.3978 12.9767 16.4272 14.3368Z",fill:"currentColor",stroke:"currentColor",strokeWidth:1.2})})}),rg=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"bulb-outline",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M9.5 16.5H15.5M11 20V20.5C11 21.0523 11.4477 21.5 12 21.5H13C13.5523 21.5 14 21.0523 14 20.5V20M18 10C18 11.94 17.3978 12.9767 16.4272 14.3368C15.8273 15.1773 15.5 16.1794 15.5 17.212V18.5C15.5 19.0523 15.0523 19.5 14.5 19.5H10.5C9.94772 19.5 9.5 19.0523 9.5 18.5V17.212C9.5 16.1794 9.17266 15.1773 8.57284 14.3368C7.60216 12.9767 7 11.94 7 10C7 7 9.5 4.5 12.5 4.5C15.5 4.5 18 7 18 10Z",stroke:"currentColor",strokeWidth:1.2})})}),rm=(0,_.forwardRef)(function(e,t){return(0,E.jsxs)("svg",{"data-sanity-icon":"calendar",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:[(0,E.jsx)("path",{d:"M5.5 18.5H19.5V6.5H5.5V18.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),(0,E.jsx)("path",{d:"M16.5 8V4M8.5 8V4M8 12.5H10M8 15.5H10M11.5 12.5H13.5M11.5 15.5H13.5M15 12.5H17M15 15.5H17M12.5 8V4M5.5 9.5H19.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})}),ry=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"case",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M9 8.5122V6C9 5.44772 9.44772 5 10 5H15C15.5523 5 16 5.44772 16 6V8.5122M4.5 12V18.5C4.5 19.0523 4.94772 19.5 5.5 19.5H19.5C20.0523 19.5 20.5 19.0523 20.5 18.5V12M4.5 12V9.5122C4.5 8.95991 4.94772 8.5122 5.5 8.5122H19.5C20.0523 8.5122 20.5 8.95991 20.5 9.5122V12M4.5 12L11.7978 14.7367C12.2505 14.9064 12.7495 14.9064 13.2022 14.7367L20.5 12",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),rv=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"chart-upward",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M5.5 5V19.5H20M7.5 16L11.5 11.5L15.5 14L19.5 8.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),rw=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"checkmark-circle",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M9.5 12.1316L11.7414 14.5L16 10M20.5 12.5C20.5 16.9183 16.9183 20.5 12.5 20.5C8.08172 20.5 4.5 16.9183 4.5 12.5C4.5 8.08172 8.08172 4.5 12.5 4.5C16.9183 4.5 20.5 8.08172 20.5 12.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),rb=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"checkmark",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M5.5 11.5L10.5 16.5L19.5 7.60001",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),rx=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"chevron-down",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M17 10L12.5 14.5L8 10",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),rC=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"chevron-left",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M15 17L10.5 12.5L15 8",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),rk=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"chevron-right",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M10 8L14.5 12.5L10 17",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),rj=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"chevron-up",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M8 15L12.5 10.5L17 15",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),rM=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"circle",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("circle",{cx:12.5,cy:12.5,r:8,stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),rL=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"clipboard",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M8 5.5H6.5V19.5H18.5V5.5H17M12.5 3C11.5 3 11.5 4.5 11 4.5C10 4.5 9.5 5 9.5 6.5H15.6C15.6 5 15 4.5 14 4.5C13.5 4.5 13.5 3 12.5 3Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),rS=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"clipboard-image",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M8 5.5H6.5V19.5H10.5M17 5.5H18.5V11.5M10.5 18.5L12.73 15.8983C13.1327 15.4285 13.8613 15.4335 14.2575 15.909L15.299 17.1588C15.6754 17.6105 16.3585 17.6415 16.7743 17.2257L16.9903 17.0097C17.2947 16.7053 17.7597 16.6298 18.1447 16.8223L20.5 18M10.5 11.5H20.5V21.5H10.5V11.5ZM12.5 3C11.5 3 11.5 4.5 11 4.5C10 4.5 9.5 5 9.5 6.5H15.6C15.6 5 15 4.5 14 4.5C13.5 4.5 13.5 3 12.5 3Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),rE=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"clock",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M12.5 8V12.5L15.5 15.5M20.5 12.5C20.5 16.9183 16.9183 20.5 12.5 20.5C8.08172 20.5 4.5 16.9183 4.5 12.5C4.5 8.08172 8.08172 4.5 12.5 4.5C16.9183 4.5 20.5 8.08172 20.5 12.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),rR=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"close-circle",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M9.5 15.5L12.5 12.5M12.5 12.5L15.5 9.5M12.5 12.5L9.5 9.5M12.5 12.5L15.5 15.5M20.5 12.5C20.5 16.9183 16.9183 20.5 12.5 20.5C8.08172 20.5 4.5 16.9183 4.5 12.5C4.5 8.08172 8.08172 4.5 12.5 4.5C16.9183 4.5 20.5 8.08172 20.5 12.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),rV=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"close",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M18 7L7 18M7 7L18 18",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),r_=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"code-block",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M11 15L8.5 12.5L11 10M14 10L16.5 12.5L14 15M5.5 6.5H19.5V18.5H5.5V6.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),r$=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"code",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M11 16L7.5 12.5L11 9M14 9L17.5 12.5L14 16",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),rA=(0,_.forwardRef)(function(e,t){return(0,E.jsxs)("svg",{"data-sanity-icon":"cog",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:[(0,E.jsx)("path",{d:"M14.0666 6.19428L13.719 5.32531C13.5196 4.82685 13.0369 4.5 12.5 4.5C11.9631 4.5 11.4804 4.82685 11.281 5.32531L10.9334 6.19428C10.7984 6.53187 10.5328 6.80068 10.1969 6.93982C9.86098 7.07896 9.48313 7.07666 9.14894 6.93343L8.2887 6.56476C7.79525 6.35328 7.22276 6.46353 6.84315 6.84315C6.46353 7.22276 6.35328 7.79525 6.56476 8.2887L6.93343 9.14894C7.07666 9.48313 7.07896 9.86098 6.93982 10.1969C6.80068 10.5328 6.53187 10.7984 6.19428 10.9334L5.32531 11.281C4.82685 11.4804 4.5 11.9631 4.5 12.5C4.5 13.0369 4.82685 13.5196 5.32531 13.719L6.19428 14.0666C6.53187 14.2016 6.80068 14.4672 6.93982 14.8031C
37.07896 15.139 7.07666 15.5169 6.93343 15.8511L6.56476 16.7113C6.35328 17.2048 6.46353 17.7772 6.84315 18.1569C7.22276 18.5365 7.79525 18.6467 8.2887 18.4352L9.14894 18.0666C9.48314 17.9233 9.86099 17.921 10.1969 18.0602C10.5328 18.1993 10.7984 18.4681 10.9334 18.8057L11.281 19.6747C11.4804 20.1732 11.9631 20.5 12.5 20.5C13.0369 20.5 13.5196 20.1731 13.719 19.6747L14.0666 18.8057C14.2016 18.4681 14.4672 18.1993 14.8031 18.0602C15.139 17.921 15.5169 17.9233 15.8511 18.0666L16.7113 18.4352C17.2047 18.6467 17.7772 18.5365 18.1569 18.1569C18.5365 17.7772 18.6467 17.2047 18.4352 16.7113L18.0666 15.8511C17.9233 15.5169 17.921 15.139 18.0602 14.8031C18.1993 14.4672 18.4681 14.2016 18.8057 14.0666L19.6747 13.719C20.1731 13.5196 20.5 13.0369 20.5 12.5C20.5 11.9631 20.1731 11.4804 19.6747 11.281L18.8057 10.9334C18.4681 10.7984 18.1993 10.5328 18.0602 10.1969C17.921 9.86098 17.9233 9.48313 18.0666 9.14894L18.4352 8.2887C18.6467 7.79525 18.5365 7.22276 18.1569 6.84314C17.7772 6.46353 17.2048 6.35328 16.7113 6.56476L15.8511 6.93343C15.5169 7.07666 15.139 7.07896 14.8031 6.93982C14.4672 6.80068 14.2016 6.53187 14.0666 6.19428Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),(0,E.jsx)("path",{d:"M16 12.5C16 14.433 14.433 16 12.5 16C10.567 16 9 14.433 9 12.5C9 10.567 10.567 9 12.5 9C14.433 9 16 10.567 16 12.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})}),rT=(0,_.forwardRef)(function(e,t){return(0,E.jsxs)("svg",{"data-sanity-icon":"collapse",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:[(0,E.jsx)("path",{d:"M6 14.5L10.5 14.5V19M19 10.5H14.5L14.5 6",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),(0,E.jsx)("path",{d:"M10.5 14.5L6 19M14.5 10.5L19 6",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})}),rH=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"color-wheel",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M9.43853 5.10896L11.1606 9.26642M13.8394 15.7336L15.5615 19.891M15.7336 11.1606L19.891 9.43853M9.26642 13.8394L5.10896 15.5615M5.3139 9.52342L9.23359 11.147M15.7664 13.853L19.6861 15.4766M13.853 9.23359L15.4766 5.3139M9.52342 19.6861L11.147 15.7664M20.5 12.5C20.5 16.9183 16.9183 20.5 12.5 20.5C8.08172 20.5 4.5 16.9183 4.5 12.5C4.5 8.08172 8.08172 4.5 12.5 4.5C16.9183 4.5 20.5 8.08172 20.5 12.5ZM16 12.5C16 14.433 14.433 16 12.5 16C10.567 16 9 14.433 9 12.5C9 10.567 10.567 9 12.5 9C14.433 9 16 10.567 16 12.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),rI=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"comment",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M7.5 16.5H9.5V20.5L13.5 16.5H17.5C18.6046 16.5 19.5 15.6046 19.5 14.5V8.5C19.5 7.39543 18.6046 6.5 17.5 6.5H7.5C6.39543 6.5 5.5 7.39543 5.5 8.5V14.5C5.5 15.6046 6.39543 16.5 7.5 16.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),rP=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"component",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M8.5 8.5L12.5 12.5M12.5 12.5L16.5 16.5M12.5 12.5L16.5 8.5M12.5 12.5L8.5 16.5M12.5 4L21 12.5L12.5 21L4 12.5L12.5 4Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),rO=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"compose",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M17 6L19 8M14 5.5H5.5V19.5H19.5V11M9 16L9.5 13.5L19 4L21 6L11.5 15.5L9 16Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),rB=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"compose-sparkles",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M11 3.5V5M11 5V6.5M11 5H12.5M11 5H9.5M17 9L9.5 16.5L9 19L11.5 18.5L19 11M17 9L19 7L21 9L19 11M17 9L19 11M4.5 10C4.5 10 5.72308 9.87692 6.3 9.3C6.87692 8.72308 7 7.5 7 7.5C7 7.5 7.12308 8.72308 7.7 9.3C8.27692 9.87692 9.5 10 9.5 10C9.5 10 8.27692 10.1231 7.7 10.7C7.12308 11.2769 7 12.5 7 12.5C7 12.5 6.87692 11.2769 6.3 10.7C5.72308 10.1231 4.5 10 4.5 10Z",stroke:"currentColor",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round"})})}),rN=(0,_.forwardRef)(function(e,t){return(0,E.jsxs)("svg",{"data-sanity-icon":"confetti",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:[(0,E.jsx)("path",{d:"M16.5 6.25C16.9142 6.25 17.25 5.91421 17.25 5.5C17.25 5.08579 16.9142 4.75 16.5 4.75C16.0858 4.75 15.75 5.08579 15.75 5.5C15.75 5.91421 16.0858 6.25 16.5 6.25Z",fill:"currentColor"}),(0,E.jsx)("path",{d:"M19.5 16.25C19.9142 16.25 20.25 15.9142 20.25 15.5C20.25 15.0858 19.9142 14.75 19.5 14.75C19.0858 14.75 18.75 15.0858 18.75 15.5C18.75 15.9142
319.0858 16.25 19.5 16.25Z",fill:"currentColor"}),(0,E.jsx)("path",{d:"M13 4C11 6 14.5 5.5 12.5 7.5M21 12C19 14 19.5 10.5 17.5 12.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),(0,E.jsx)("path",{d:"M16.066 16.4904C15.3965 17.1598 13.1126 15.9613 10.9647 13.8135C8.81684 11.6656 7.61835 9.38165 8.28782 8.71218M16.066 16.4904C16.7355 15.8209 15.537 13.537 13.3891 11.3891C11.2412 9.2412 8.95729 8.04271 8.28782 8.71218M16.066 16.4904C15.8661 16.6902 15.6277 16.8474 15.3657 16.952L6.99288 20.296C6.26931 20.5849 5.44878 20.4193 4.9038 19.8744C4.35883 19.3294 4.19324 18.5089 4.48221 17.7853L7.82614 9.41242C7.93077 9.15042 8.08793 8.91208 8.28782 8.71218M20 5C20 14 11.5 5.32688 11.5 14.3269",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})}),rW=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"controls",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M6.5 5V7.5M6.5 7.5C5.39543 7.5 4.5 8.39543 4.5 9.5C4.5 10.6046 5.39543 11.5 6.5 11.5M6.5 7.5C7.60457 7.5 8.5 8.39543 8.5 9.5C8.5 10.6046 7.60457 11.5 6.5 11.5M6.5 11.5V20M12.5 5V13.5M12.5 13.5C11.3954 13.5 10.5 14.3954 10.5 15.5C10.5 16.6046 11.3954 17.5 12.5 17.5M12.5 13.5C13.6046 13.5 14.5 14.3954 14.5 15.5C14.5 16.6046 13.6046 17.5 12.5 17.5M12.5 17.5V20M18.5 5V7.5M18.5 7.5C17.3954 7.5 16.5 8.39543 16.5 9.5C16.5 10.6046 17.3954 11.5 18.5 11.5M18.5 7.5C19.6046 7.5 20.5 8.39543 20.5 9.5C20.5 10.6046 19.6046 11.5 18.5 11.5M18.5 11.5V20",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),rz=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"copy",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M8.5 8.5H5.5V20.5H16.5V16.5M19.5 4.5H8.5V16.5H19.5V4.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),rD=(0,_.forwardRef)(function(e,t){return(0,E.jsxs)("svg",{"data-sanity-icon":"credit-card",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:[(0,E.jsx)("path",{d:"M20.5 9.5H4.5V11.5H20.5V9.5Z",fill:"currentColor",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),(0,E.jsx)("path",{d:"M7 15.5H14M5.5 18.5H19.5C20.0523 18.5 20.5 18.0523 20.5 17.5V7.5C20.5 6.94772 20.0523 6.5 19.5 6.5H5.5C4.94772 6.5 4.5 6.94772 4.5 7.5V17.5C4.5 18.0523 4.94772 18.5 5.5 18.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})}),rF=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"crop",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M9.5 5V15.5H20M5 9.5H15.5V20",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),rZ=(0,_.forwardRef)(function(e,t){return(0,E.jsxs)("svg",{"data-sanity-icon":"cube",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:[(0,E.jsx)("path",{d:"M4.5 8L12.5 3L20.5 8V17L12.5 22L4.5 17V8Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),(0,E.jsx)("path",{d:"M12.5 22V13M12.5 13L4.5 8M12.5 13L20.5 8",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})}),rU=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"dashboard",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M14.5 19.5V12.5M10.5 12.5V5.5M5.5 12.5H19.5M5.5 19.5H19.5V5.5H5.5V19.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),rq=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"database",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M18.5 7V17.5C18.5 19.0594 16.0504 20.5 12.5 20.5C8.9496 20.5 6.5 19.0594 6.5 17.5V7M18.5 7C18.5 8.45543 15.8137 9.5 12.5 9.5C9.18629 9.5 6.5 8.45543 6.5 7C6.5 5.54457 9.18629 4.5 12.5 4.5C15.8137 4.5 18.5 5.54457 18.5 7Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),rG=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"desktop",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M4.5 13.5V15.5C4.5 16.0523 4.94772 16.5 5.5 16.5H12.5M4.5 13.5V6.5C4.5 5.94772 4.94772 5.5 5.5 5.5H19.5C20.0523 5.5 20.5 5.94772 20.5 6.5V13.5M4.5 13.5H20.5M20.5 13.5V15.5C20.5 16.0523 20.0523 16.5 19.5 16.5H12.5M12.5 16.5V19.5M12.5 19.5H8M12.5 19.5H17",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),rY=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"diamond",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M21 10.5L12.5 21M21 10.5L18 5.5H11M21 10.5H16M12.5 21L4 10.5M12.5 21L9 10.5M12.5 21L16 10.5M4 10.5L7 5.5H11M4 10.5H9M9 10.5H12.5H16M9 10.5L11 5.5M16 10.5L14.5 5.5H11",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),rX=(0,_.forwardRef)(function(e,t){return(0,E.jsxs)("svg",{"data-sanity-icon":"document",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:[(0,E.jsx)("path",{d:"M11.5 4.5V9.5H6.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),(0,E.jsx)("path",{d:"M18.5 20.5H6.5V9.5L11.5 4.5H18.5V20.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})}),rK=(0,_.forwardRef)(function(e,t){return(0,E.jsxs)("svg",{"data-sanity-icon":"document-pdf",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:[(0,E.jsx)("path",{d:"M12.7127 13.8012L12.7193 13.77C12.8488 13.2366 13.0117 12.5716 12.8845 11.969C12.7997 11.4937 12.4493 11.3084 12.1503 11.295C11.7977 11.2794 11.483 11.4803 11.4049 11.7726C11.2576 12.3082 11.3893 13.0402 11.6303 13.973C11.3268 14.6961 10.8425 15.7472 10.4877 16.3721C9.8271 16.7135 8.94113 17.2402 8.80946 17.9053C8.78268 18.028 8.81392
318.1842 8.88757 18.3248C8.97014 18.481 9.10181 18.6015 9.25579 18.6596C9.32274 18.6841 9.40308 18.7042 9.49681 18.7042C9.88959 18.7042 10.5256 18.3873 11.3736 16.9322C11.5031 16.8898 11.637 16.8452 11.7664 16.8006C12.3734 16.5953 13.0028 16.381 13.5718 16.2851C14.2012 16.622 14.9175 16.8385 15.404 16.8385C15.8861 16.8385 16.0758 16.5529 16.1472 16.381C16.2722 16.0797 16.2119 15.7004 16.0088 15.4973C15.7143 15.2072 14.9979 15.1313 13.882 15.2696C13.3331 14.9349 12.9738 14.4796 12.7127 13.8012ZM10.2645 17.1911C9.95431 17.6419 9.71998 17.8673 9.59278 17.9655C9.7423 17.691 10.0346 17.4009 10.2645 17.1911ZM12.2195 11.9355C12.3355 12.1341 12.3199 12.7345 12.2306 13.038C12.1213 12.5939 12.1056 11.9645 12.1704 11.8909L12.2195 11.9355ZM12.1837 14.6247C12.4225 15.0376 12.7238 15.3924 13.0563 15.6557C12.5743 15.7651 12.1346 15.9458 11.7419 16.1065C11.6481 16.1445 11.5566 16.1824 11.4674 16.2181C11.7642 15.6803 12.0119 15.071 12.1837 14.6247ZM15.6562 16.0864L15.6428 16.1065C15.6428 16.1065 15.4375 16.2315 14.6497 15.9213C15.5558 15.8789 15.6562 16.0864 15.6562 16.0864Z",fill:"currentColor"}),(0,E.jsx)("path",{d:"M11.5 4.5V9.5H6.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),(0,E.jsx)("path",{d:"M11.5 4.5H18.5V20.5H6.5V9.5L11.5 4.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})}),rJ=(0,_.forwardRef)(function(e,t){return(0,E.jsxs)("svg",{"data-sanity-icon":"document-remove",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:[(0,E.jsx)("path",{d:"M11.5 4.5V9.5H6.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),(0,E.jsx)("path",{d:"M6.5 14V20.5H18.5V14M6.5 11V9.5L11.5 4.5H18.5V11M3 12.5H22",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})}),rQ=(0,_.forwardRef)(function(e,t){return(0,E.jsxs)("svg",{"data-sanity-icon":"document-sheet",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:[(0,E.jsx)("path",{d:"M11.5 4.5V9.5H6.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),(0,E.jsx)("path",{d:"M10.4 19V16.4M10.4 16.4L10.4 13.4M10.4 16.4H8M10.4 16.4H14.4M10.4 13.4V11M10.4 13.4H8M10.4 13.4H14.4M14.4 19V16.4M14.4 16.4V13.4M14.4 16.4H17M14.4 13.4V11M14.4 13.4H17M11.5 4.5H18.5V20.5H6.5V9.5L11.5 4.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})}),r1=(0,_.forwardRef)(function(e,t){return(0,E.jsxs)("svg",{"data-sanity-icon":"documents",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:[(0,E.jsx)("path",{d:"M10.5 4.5V9.5H5.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),(0,E.jsx)("path",{d:"M16.5 7.5H19.5V21.5H8.5V18.5M10.5 4.5H16.5V18.5H5.5V9.5L10.5 4.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})}),r0=(0,_.forwardRef)(function(e,t){return(0,E.jsxs)("svg",{"data-sanity-icon":"document-text",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:[(0,E.jsx)("path",{d:"M11.5 4.5V9.5H6.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),(0,E.jsx)("path",{d:"M16 13H9M14 16H9M11.5 4.5H18.5V20.5H6.5V9.5L11.5 4.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})}),r5=(0,_.forwardRef)(function(e,t){return(0,E.jsxs)("svg",{"data-sanity-icon":"document-video",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:[(0,E.jsx)("path",{d:"M11.5 16.5V13.5L14 15L11.5 16.5Z",fill:"currentColor",stroke:"currentColor",strokeWidth:1.2}),(0,E.jsx)("path",{d:"M11.5 4.5V9.5H6.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),(0,E.jsx)("path",{d:"M11.5 4.5H18.5V20.5H6.5V9.5L11.5 4.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})}),r2=(0,_.forwardRef)(function(e,t){return(0,E.jsxs)("svg",{"data-sanity-icon":"document-word",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:[(0,E.jsx)("path",{d:"M12.4699 13.4588H12.5263L13.6328 17H14.5435L16 12H14.9952L14.0656 15.7214H14.0129L12.929 12H12.0672L10.9984 15.7214H10.9419L10.0124 12H9L10.4565 17H11.371L12.4699 13.4588Z",fill:"currentColor"}),(0,E.jsx)("path",{d:"M11.5 4.5V9.5H6.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}
3),(0,E.jsx)("path",{d:"M11.5 4.5H18.5V20.5H6.5V9.5L11.5 4.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})}),r3=(0,_.forwardRef)(function(e,t){return(0,E.jsxs)("svg",{"data-sanity-icon":"document-zip",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:[(0,E.jsx)("path",{d:"M11.5 4.5V9.5H6.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),(0,E.jsx)("path",{d:"M15 4.5L13.5 5L15.5 6L13.5 7L15.5 8L13.5 9L15.5 10L13.5 11L14.5 11.5V13M11.5 4.5H18.5V20.5H6.5V9.5L11.5 4.5ZM13.5 13H15.5L16 17H13L13.5 13Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})}),r4=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"dot",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("circle",{cx:12.5,cy:12.5,r:2.5,fill:"currentColor",stroke:"currentColor",strokeWidth:1.2})})}),r6=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"double-chevron-down",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M17 7.5C15.6332 8.86683 12.5 12 12.5 12L8 7.5M17 12.5C15.6332 13.8668 12.5 17 12.5 17L8 12.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),r8=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"double-chevron-left",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M12.5 17L8 12.5L12.5 8M17.5 17L13 12.5L17.5 8",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),r9=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"double-chevron-right",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M12.5 8L17 12.5L12.5 17M7.5 8L12 12.5L7.5 17",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),r7=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"double-chevron-up",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M8 12.5L12.5 8L17 12.5M8 17.5L12.5 13L17 17.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),ie=(0,_.forwardRef)(function(e,t){return(0,E.jsxs)("svg",{"data-sanity-icon":"download",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:[(0,E.jsx)("path",{d:"M19.5 17V19.5H5.5V17M12.5 16L12.5 5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),(0,E.jsx)("path",{d:"M17.5 11L12.5 16L7.5 11",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})}),it=(0,_.forwardRef)(function(e,t){return(0,E.jsxs)("svg",{"data-sanity-icon":"drag-handle",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:[(0,E.jsx)("path",{d:"M9.5 8C10.3284 8 11 7.32843 11 6.5C11 5.67157 10.3284 5 9.5 5C8.67157 5 8 5.67157 8 6.5C8 7.32843 8.67157 8 9.5 8Z",fill:"currentColor"}),(0,E.jsx)("path",{d:"M9.5 14C10.3284 14 11 13.3284 11 12.5C11 11.6716 10.3284 11 9.5 11C8.67157 11 8 11.6716 8 12.5C8 13.3284 8.67157 14 9.5 14Z",fill:"currentColor"}),(0,E.jsx)("path",{d:"M11 18.5C11 19.3284 10.3284 20 9.5 20C8.67157 20 8 19.3284 8 18.5C8 17.6716 8.67157 17 9.5 17C10.3284 17 11 17.6716 11 18.5Z",fill:"currentColor"}),(0,E.jsx)("path",{d:"M15.5 8C16.3284 8 17 7.32843 17 6.5C17 5.67157 16.3284 5 15.5 5C14.6716 5 14 5.67157 14 6.5C14 7.32843 14.6716 8 15.5 8Z",fill:"currentColor"}),(0,E.jsx)("path",{d:"M17 12.5C17 13.3284 16.3284 14 15.5 14C14.6716 14 14 13.3284 14 12.5C14 11.6716 14.6716 11 15.5 11C16.3284 11 17 11.6716 17 12.5Z",fill:"currentColor"}),(0,E.jsx)("path",{d:"M15.5 20C16.3284 20 17 19.3284 17 18.5C17 17.6716 16.3284 17 15.5 17C14.6716 17 14 17.6716 14 18.5C14 19.3284 14.6716 20 15.5 20Z",fill:"currentColor"})]})}),ir=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"drop",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M18.5 14.5C18.5 18
316 20.5 12.5 20.5C9 20.5 6.5 18 6.5 14.5C6.5 11 9.5 7.50001 12.5 4.5C15.5 7.5 18.5 11 18.5 14.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),ii=(0,_.forwardRef)(function(e,t){return(0,E.jsxs)("svg",{"data-sanity-icon":"earth-americas",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:[(0,E.jsx)("path",{d:"M7 13L5.5 9L10 5H15V10L14 9H11L9.5 11L10.5 12H12V13L13 14.5H15.5L18.5 17L15.5 19.5L10.5 20V17L12.5 15L9 13L7 10.5V13Z",fill:"currentColor",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),(0,E.jsx)("circle",{cx:12.5,cy:12.5,r:8,stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})}),io=(0,_.forwardRef)(function(e,t){return(0,E.jsxs)("svg",{"data-sanity-icon":"earth-globe",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:[(0,E.jsx)("path",{d:"M20.5 12.5C20.5 16.9183 16.9183 20.5 12.5 20.5C8.08172 20.5 4.5 16.9183 4.5 12.5C4.5 8.08172 8.08172 4.5 12.5 4.5C16.9183 4.5 20.5 8.08172 20.5 12.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),(0,E.jsx)("path",{d:"M20.5 12.5H4.5M12.5 20.5C12.5 20.5 9.5 17.5 9.5 12.5C9.5 7.5 12.5 4.5 12.5 4.5C12.5 4.5 15.5 7.5 15.5 12.5C15.5 17.5 12.5 20.5 12.5 20.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})}),is=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"edit",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M15 7L18 10M6 19L7 15L17 5L20 8L10 18L6 19Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),ia=(0,_.forwardRef)(function(e,t){return(0,E.jsxs)("svg",{"data-sanity-icon":"ellipsis-horizontal",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:[(0,E.jsx)("path",{d:"M6.5 11C7.32843 11 8 11.6716 8 12.5C8 13.3284 7.32843 14 6.5 14C5.67157 14 5 13.3284 5 12.5C5 11.6716 5.67157 11 6.5 11Z",fill:"currentColor"}),(0,E.jsx)("path",{d:"M12.5 11C13.3284 11 14 11.6716 14 12.5C14 13.3284 13.3284 14 12.5 14C11.6716 14 11 13.3284 11 12.5C11 11.6716 11.6716 11 12.5 11Z",fill:"currentColor"}),(0,E.jsx)("path",{d:"M18.5 11C19.3284 11 20 11.6716 20 12.5C20 13.3284 19.3284 14 18.5 14C17.6716 14 17 13.3284 17 12.5C17 11.6716 17.6716 11 18.5 11Z",fill:"currentColor"})]})}),il=(0,_.forwardRef)(function(e,t){return(0,E.jsxs)("svg",{"data-sanity-icon":"ellipsis-vertical",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:[(0,E.jsx)("path",{d:"M14 6.5C14 7.32843 13.3284 8 12.5 8C11.6716 8 11 7.32843 11 6.5C11 5.67157 11.6716 5 12.5 5C13.3284 5 14 5.67157 14 6.5Z",fill:"currentColor"}),(0,E.jsx)("path",{d:"M14 12.5C14 13.3284 13.3284 14 12.5 14C11.6716 14 11 13.3284 11 12.5C11 11.6716 11.6716 11 12.5 11C13.3284 11 14 11.6716 14 12.5Z",fill:"currentColor"}),(0,E.jsx)("path",{d:"M14 18.5C14 19.3284 13.3284 20 12.5 20C11.6716 20 11 19.3284 11 18.5C11 17.6716 11.6716 17 12.5 17C13.3284 17 14 17.6716 14 18.5Z",fill:"currentColor"})]})}),iu=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"empty",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M12.5 21V19.1111M8.25 19.8614L9.19445 18.2255M5.13878 16.7501L6.77461 15.8057M4 12.5H5.8889M5.13872 8.2499L6.77455 9.19436M8.25004 5.13876L9.19449 6.7746M12.5 5.88891V4M15.8055 6.77465L16.75 5.1388M18.2254 9.19449L19.8612 8.25004M19.1111 12.5001H21M18.2254 15.8056L19.8612 16.7501M15.8056 18.2255L16.75 19.8614",stroke:"currentColor",strokeWidth:1.2})})}),id=(0,_.forwardRef)(function(e,t){return(0,E.jsxs)("svg",{"data-sanity-icon":"enter",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:[(0,E.jsx)("path",{d:"M6 14.5H19.5V7",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),(0,E.jsx)("path",{d:"M10 18.5L6 14.5L10 10.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})}),ic=(0,_.forwardRef)(function(e,t){return(0,E.jsxs)("svg",{"data-sanity-icon":"enter-right",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:[(0,E.jsx)("path",{d:"M19 14.5H5.5V7",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),(0,E.jsx)("path",{d:"M15 18.5L19 14.5L15 10.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})}),ih=(0,_.forwardRef)(function(e,t){return(0,E.jsxs)("svg",{"data-sanity-icon":"envelope",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:[(0,E.jsx)("path",{d:"M20.5 18.5H4.5V6.5H20.5V18.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),(0,E.jsx)("path",{d:"M20.5 18.5L17.75 15.5L15 12.5M4.5 18.5L10 12.5M20.5 6.5L12.5 15L4.5 6.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})}),ip=(0,_.forwardRef)(function(e,t){return(0,E.jsxs)("svg",{"data-sanity-icon":"equal",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:[(0,E.jsx)("path",{d:"M7.5 4.5H3.5V20.5
3H7.5",stroke:"currentColor",strokeWidth:1.2}),(0,E.jsx)("path",{d:"M17.5 20.5L21.5 20.5L21.5 4.5L17.5 4.5",stroke:"currentColor",strokeWidth:1.2}),(0,E.jsx)("path",{d:"M9 10.5H16",stroke:"currentColor",strokeWidth:1.2}),(0,E.jsx)("path",{d:"M9 14.5H16",stroke:"currentColor",strokeWidth:1.2})]})}),ig=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"error-filled",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 12.5C4 7.80558 7.80558 4 12.5 4C17.1944 4 21 7.80558 21 12.5C21 17.1944 17.1944 21 12.5 21C7.80558 21 4 17.1944 4 12.5ZM13 14.5V16H12V14.5H13ZM12 9V13H13V9H12Z",fill:"currentColor"})})}),im=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"error-outline",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M12.5 16V14.5M12.5 9V13M20.5 12.5C20.5 16.9183 16.9183 20.5 12.5 20.5C8.08172 20.5 4.5 16.9183 4.5 12.5C4.5 8.08172 8.08172 4.5 12.5 4.5C16.9183 4.5 20.5 8.08172 20.5 12.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),iy=(0,_.forwardRef)(function(e,t){return(0,E.jsxs)("svg",{"data-sanity-icon":"error-screen",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:[(0,E.jsx)("path",{d:"M10 8.5L15 13.5M15 8.5L10 13.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),(0,E.jsx)("path",{d:"M12.5 16.5H5.5C4.94772 16.5 4.5 16.0523 4.5 15.5V6.5C4.5 5.94771 4.94772 5.5 5.5 5.5H19.5C20.0523 5.5 20.5 5.94772 20.5 6.5V15.5C20.5 16.0523 20.0523 16.5 19.5 16.5H12.5ZM12.5 16.5V19.5M12.5 19.5H8M12.5 19.5H17",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})}),iv=(0,_.forwardRef)(function(e,t){return(0,E.jsxs)("svg",{"data-sanity-icon":"expand",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:[(0,E.jsx)("path",{d:"M14 6.5H18.5V11M11 18.5H6.5V14",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),(0,E.jsx)("path",{d:"M18.5 6.5L14 11M6.5 18.5L11 14",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})}),iw=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"eye-closed",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M7 15.5L5.5 17.5M20.5 12.5C19.8612 13.5647 19.041 14.6294 18.0008 15.501M18.0008 15.501C16.5985 16.676 14.7965 17.5 12.5 17.5M18.0008 15.501L18 15.5M18.0008 15.501L19.5 17.5M12.5 17.5C8.5 17.5 6 15 4.5 12.5M12.5 17.5V20M15.5 17L16.5 19.5M9.5 17L8.5 19.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),ib=(0,_.forwardRef)(function(e,t){return(0,E.jsxs)("svg",{"data-sanity-icon":"eye-open",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:[(0,E.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.39999 12.5C9.39999 10.7879 10.7879 9.39999 12.5 9.39999C14.2121 9.39999 15.6 10.7879 15.6 12.5C15.6 14.2121 14.2121 15.6 12.5 15.6C10.7879 15.6 9.39999 14.2121 9.39999 12.5Z",fill:"currentColor"}),(0,E.jsx)("path",{d:"M12.5 7.5C8.5 7.5 6 10 4.5 12.5C6 15 8.5 17.5 12.5 17.5C16.5 17.5 19 15 20.5 12.5C19 10 16.5 7.5 12.5 7.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})}),ix=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"face-happy",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M10.5 9V12M14.5 9V12M8.5 14C8.5 14 9.50001 16.5 12.5 16.5C15.5 16.5 16.5 14 16.5 14M20.5 12.5C20.5 16.9183 16.9183 20.5 12.5 20.5C8.08172 20.5 4.5 16.9183 4.5 12.5C4.5 8.08172 8.08172 4.5 12.5 4.5C16.9183 4.5 20.5 8.08172 20.5 12.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),iC=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"face-indifferent",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M10.5 9V12M14.5 9V12M8.5 15.5C8.5 15.5 9.50001 15.5 12.5 15.5C15.5 15.5 16.5 15.5 16.5 15.5M20.5 12.5C20.5 16.9183 16.9183 20.5 12.5 20.5C8.08172 20.5 4.5 16.9183 4.5 12.5C4.5 8.08172 8.08172 4.5 12.5 4.5C16.9183 4.5 20.5 8.08172 20.5 12.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),ik=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"face-sad",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M10.5 9V12M14.5 9V12M8.5 16.5C8.5 16.5 9.50001 14.5 12.5 14.5C15.5 14.5 16.5 16.5 16.5 16.5M20.5 12.5C20.5 16.9183 16.9183 20.5 12.5 20.5C8.08172 20.5 4.5 16.9183 4.5 12.5C4.5 8.08172 8.08172 4.5 12.5 4.5C16.9183 4.5 20.5 8.08172 20.5 12.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),ij=(0,_.forwardRef)(function(e,t){return(0,E.jsxs)("svg",{"data-sanity-icon":"feedback",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:[(0,E.jsx)("path",{d:"M10 11.5V12H9.5L9.5 11.5H10Z",fill:"currentColor"}),(0,E.jsx)("path",{d:"M13 11.5V12H12.5V11.5H13Z",fill:"currentColor"}),(0,E.jsx)("path",{d:"M16 11.5V12H15.5V11.5H16Z",fill:"currentColor"}),(0,E.jsx)("path",{d:"M10 11.5V12H9.5L9.5 11.5H10Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),(0,E.jsx)("path",{d:"M13 11.5V12H12.5V11.5H13Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),(0,E.jsx)("path",{d:"M16 11.5V12H15.5V11.5H16Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),(0,E.jsx)("path",{d:"M7.5 16.5H9.5V20.5L13.5 16.5H17.5C18.6046 16.5 19.5 15.6046 19.5 14.5V8.5C19.5 7.39543 18.6046 6.5 17.5 6.5H7.5C6.39543 6.5 5.5 7.39543 5.5 8.5V14.5C5.5 15.6046 6.39543 16.5 7.5 16.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})}),iM=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"filter",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M6 7.5H19M8 12.5H17M10 17.5H15",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),iL=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"folder",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M11.5 8.5H19.5V18.5H5.5V5.5H10.5L11.5 8.5ZM11.5 8.5H5.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),iS=(0,_.forwardRef)(function(e,t){return(0,E.jsxs)("svg",{"data-sanity-icon":"generate",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:[(0,E.jsx)("path",{d:"M9 5.30423C6.33576 6.60253 4.5 9.33688 4.5 12.5C4.5 16.9183 8.08172 20.5 12.5 20.5C16.9
3183 20.5 20.5 16.9183 20.5 12.5C20.5 8.08172 16.9183 4.5 12.5 4.5V14.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),(0,E.jsx)("path",{d:"M16 11L12.5 14.5L9 11",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})}),iE=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"github",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.507 4C7.80286 4 4 7.8309 4 12.5702C4 16.3587 6.43663 19.5655 9.81687 20.7005C10.2395 20.7858 10.3943 20.5161 10.3943 20.2892C10.3943 20.0905 10.3804 19.4094 10.3804 18.6999C8.01391 19.2108 7.52112 17.6782 7.52112 17.6782C7.14081 16.685 6.57732 16.4297 6.57732 16.4297C5.80279 15.9047 6.63374 15.9047 6.63374 15.9047C7.49291 15.9615 7.94374 16.7844 7.94374 16.7844C8.70417 18.0897 9.92953 17.7209 10.4225 17.4938C10.4929 16.9404 10.7184 16.5573 10.9578 16.3445C9.07037 16.1459 7.08457 15.4081 7.08457 12.1161C7.08457 11.1796 7.42239 10.4134 7.95767 9.81757C7.87321 9.60478 7.57736 8.72489 8.04229 7.54724C8.04229 7.54724 8.76059 7.32017 10.3802 8.42695C11.0736 8.23935 11.7887 8.14392 12.507 8.14312C13.2253 8.14312 13.9576 8.24255 14.6337 8.42695C16.2535 7.32017 16.9718 7.54724 16.9718 7.54724C17.4367 8.72489 17.1407 9.60478 17.0562 9.81757C17.6056 10.4134 17.9295 11.1796 17.9295 12.1161C17.9295 15.4081 15.9437 16.1316 14.0422 16.3445C14.3521 16.6141 14.6196 17.1248 14.6196 17.9337C14.6196 19.0829 14.6057 20.0053 14.6057 20.289C14.6057 20.5161 14.7606 20.7858 15.1831 20.7006C18.5633 19.5653 21 16.3587 21 12.5702C21.0139 7.8309 17.1971 4 12.507 4Z",fill:"currentColor"})})}),iR=(0,_.forwardRef)(function(e,t){return(0,E.jsxs)("svg",{"data-sanity-icon":"groq",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:[(0,E.jsx)("path",{d:"M13 13H21L13 21L13 13Z",fill:"currentColor"}),(0,E.jsx)("path",{d:"M12 12V4L4 12H12Z",fill:"currentColor"}),(0,E.jsx)("path",{d:"M12 13H4L12 21V13Z",fill:"currentColor"})]})}),iV=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"hash",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.33894 16.1002H5.44615L5.63077 14.9002H8.52356L9.26202 10.1002H6.36923L6.55384 8.90018H9.44663L9.89281 6H11.1069L10.6608 8.90018H15.4466L15.8928 6H17.1069L16.
36608 8.90018H19.5539L19.3693 10.1002H16.4761L15.7377 14.9002H18.6308L18.4462 16.1002H15.5531L15.1069 19H13.8928L14.3389 16.1002H9.55306L9.10693 19H7.89281L8.33894 16.1002ZM10.4761 10.1002L9.73767 14.9002H14.5236L15.262 10.1002H10.4761Z",fill:"currentColor"})})}),i_=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"heart-filled",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M17 16C15.8 17.3235 12.5 20.5 12.5 20.5C12.5 20.5 9.2 17.3235 8 16C5.2 12.9118 4.5 11.7059 4.5 9.5C4.5 7.29412 6.1 5.5 8.5 5.5C10.5 5.5 11.7 6.82353 12.5 8.14706C13.3 6.82353 14.5 5.5 16.5 5.5C18.9 5.5 20.5 7.29412 20.5 9.5C20.5 11.7059 19.8 12.9118 17 16Z",fill:"currentColor",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),i$=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"heart",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M17 16C15.8 17.3235 12.5 20.5 12.5 20.5C12.5 20.5 9.2 17.3235 8 16C5.2 12.9118 4.5 11.7059 4.5 9.5C4.5 7.29412 6.1 5.5 8.5 5.5C10.5 5.5 11.7 6.82353 12.5 8.14706C13.3 6.82353 14.5 5.5 16.5 5.5C18.9 5.5 20.5 7.29412 20.5 9.5C20.5 11.7059 19.8 12.9118 17 16Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),iA=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"help-circle",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M12.5 13C12.5 11 14 11.5 14 10C14 9.34375 13.5 8.5 12.5 8.5C11.5 8.5 11 9 10.5 9.5M12.5 16V14.5M20.5 12.5C20.5 16.9183 16.9183 20.5 12.5 20.5C8.08172 20.5 4.5 16.9183 4.5 12.5C4.5 8.08172 8.08172 4.5 12.5 4.5C16.9183 4.5 20.5 8.08172 20.5 12.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),iT=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"highlight",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M17.5311 13.7141L8.02451 8.22547M17.5311 13.7141L20.25 9.00478M17.5311 13.7141L16.5 15.5L13.232 16.134L12 18L11.4142 17.6485M8.02451 8.22547L10.75 3.50479M8.02451 8.22547L6.99999 9.99998L7.99999 13L6.99999 15L7.58576 15.3514M7.58576 15.3514L4.90192 20L10.0566 20L11.4142 17.6485M7.58576 15.3514L11.4142 17.6485M13 20H20",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),iH=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"home",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M14.5 18.5V12.5H10.5V18.5M5.5 11.5V18.5H19.5V11.5L12.5 5.5L5.5 11.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),iI=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"ice-cream",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M9.5 13.5L12.5 20.5L15.5 13.5M12.5 8.26389C11.9692 7.78885 11.2684 7.5 10.5 7.5C8.84315 7.5 7.5 8.84315 7.5 10.5C7.5 12.1569 8.84315 13.5 10.5 13.5C11.2684 13.5 11.9692 13.2111 12.5 12.7361M9.5 7.5C9.5 5.84315 10.8431 4.5 12.5 4.5C14.1569 4.5 15.5 5.84315 15.5 7.5M17.5 10.5C17.5 12.1569 16.1569 13.5 14.5 13.5C12.8431 13.5 11.5 12.1569 11.5 10.5C11.5 8.84315 12.8431 7.5 14.5 7.5C16.1569 7.5 17.5 8.84315 17.5 10.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),iP=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"image",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M5.5 15.5L8.79289 12.2071C9.18342 11.8166 9.81658 11.8166 10.2071 12.2071L12.8867 14.8867C13.2386 15.2386 13.7957 15.2782 14.1938 14.9796L15.1192 14.2856C15.3601 14.1049 15.6696 14.0424 15.9618 14.1154L19.5 15M5.5 6.5H19.5V18.5H5.5V6.5ZM15.5 10.5C15.5 11.0523 15.0523 11.5 14.5 11.5C13.9477 11.5 13.5 11.0523 13.5 10.5C13.5 9.94772 13.9477 9.5 14.5 9.5C15.0523 9.5 15.5 9.94772 15.5 10.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),iO=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"image-remove",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M5.5 11V6.5H19.5V11M5.5 14V18.5H19.5V14M3 12.5H22",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),iB=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"images",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M18.5 7.5H20.5V19.5H6.5V17.5M4.5 14.5L7.79289 11.2071C8.18342 10.8166 8.81658 10.8166 9.20711 11.2071L11.8867 13.8867C12.2386 14.2386 12.7957 14.2782 13.1938 13.9796L14.1192 13.2856C14.3601 13.1049 14.6696 13.0424 14.9618 13.1154L18.5 14M4.5 5.5H18.5V17.5H4.5V5.5ZM14.5 9.5C14.5 10.0523 14.0523 10.5 13.5 10.5C12.9477 10.5 12.5 10.0523 12.5 9.5C12.5 8.94772 12.9477 8.5 13.5 8.5C14.0523 8.5 14.5 8.94772 14.5 9.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),iN=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"inbox",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M9 8.5H8.17703C7.76813 8.5 7.40042 8.74895 7.24856 9.12861L5.5 13.5M5.5 13.5V17.5C5.5 18.0523 5.94302 18.5 6.4953 18.5C9.00381 18.5 15.5919 18.5 18.504 18.5C19.0563 18.5 19.5 18.0523 19.5 17.5V13.5M5.5 13.5H8.5L10 15.5H15L16.5 13.5H19.5M19.5 13.5L17.7514 9.12861C17.5996 8.74895 17.2319 8.5 16.823 8.5H16M12.5 5V12.5M12.5 12.5L15 10M12.5 12.5L10 10",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),iW=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"info-filled",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21 12.5C21 17.1944 17.1944 21 12.5 21C7.80558 21 4 17.1944 4 12.5C4 7.80558 7.80558 4 12.5 4C17.1944 4 21 7.80558 21 12.5ZM12 10.5V9H13V10.5H12ZM13 16V12H12V16H13Z",fill:"currentColor"})})}),iz=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"info-outline",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M12.5 10.5V9M12.5 12V16M20.5 12.5C20.5 16.9183 16.9183 20.5 12.5 20.5C8.08172 20.5 4.5 16.9183 4.5 12.5C4.5 8.08172 8.08172 4.5 12.5 4.5C16.9183 4.5 20.5 8.08172 20.5 12.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),iD=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"inl
3ine-element",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M5.5 5V20M19.5 5V20M8.5 6.5H16.5V18.5H8.5V6.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),iF=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"inline",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M12.5 6.5H19.5V18.5H12.5M12.5 6.5H5.5V18.5H12.5M12.5 6.5V18.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),iZ=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"insert-above",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M14.5 10.5556L10.5 10.5556M12.5 12.5L12.5 8.5M18.5 5.5L6.5 5.5M18.5 19.5L6.5 19.5L6.5 15.5L18.5 15.5L18.5 19.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinecap:"square",strokeLinejoin:"round"})})}),iU=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"insert-below",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M10.5 14.5H14.5M12.5 12.5V16.5M6.5 19.5H18.5M6.5 5.5H18.5V9.5H6.5V5.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinecap:"square",strokeLinejoin:"round"})})}),iq=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"italic",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M10.43 18H11.7276L13.4551 9.86763H12.1576L10.43 18ZM13.3042 8.29849C13.8021 8.29849 14.2095 7.89112 14.2095 7.39322C14.2095 6.89532 13.8021 6.48795 13.3042 6.48795C12.8063 6.48795 12.399 6.89532 12.399 7.39322C12.399 7.89112 12.8063 8.29849 13.3042 8.29849Z",fill:"currentColor"})})}),iG=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"joystick",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M9.5 16V14.5H15.5V16M13.5 10.5V14.5M11.5 10.5V14.5M15.5 7.5C15.5 9.15685 14.1569 10.5 12.5 10.5C10.8431 10.5 9.5 9.15685 9.5 7.5C9.5 5.84315 10.8431 4.5 12.5 4.5C14.1569 4.5 15.5 5.84315 15.5 7.5ZM18.5 19.5H6.5C5.94772 19.5 5.5 19.0523 5.5 18.5V17.5C5.5 16.9477 5.94772 16.5 6.5 16.5H18.5C19.0523 16.5 19.5 16.9477 19.5 17.5V18.5C19.5 19.0523 19.0523 19.5 18.5 19.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),iY=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"json",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M11 5.5H9.5C8.39543 5.5 7.5 6.39543 7.5 7.5V12.5M7.5 12.5H4M7.5 12.5V17.5C7.5 18.6046 8.39543 19.5 9.5 19.5H11M14 5.5H15.5C16.6046 5.5 17.5 6.39543 17.5 7.5V12.5M17.5 12.5H21M17.5 12.5V17.5C17.5 18.6046 16.6046 19.5 15.5 19.5H14",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),iX=(0,_.forwardRef)(function(e,t){return(0,E.jsxs)("svg",{"data-sanity-icon":"launch",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:[(0,E.jsx)("path",{d:"M12 7.5H6.5V18.5H17.5V13M19.5 5.5L10.5 14.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),(0,E.jsx)("path",{d:"M14 5.5H19.5V11",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})}),iK=(0,_.forwardRef)(function(e,t){return(0,E.jsxs)("svg",{"data-sanity-icon":"leave",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:[(0,E.jsx)("path",{d:"M14.5 15V18.5H5.5V6.5H14.5V10M9 12.5H21.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),(0,E.jsx)("path",{d:"M18 9L21.5 12.5L18 16",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})}),iJ=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"lemon",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M10.6569 10.3431L6.41422 14.5858C7.58579 15.7574 9.12132 16.3431 10.6569 16.3431M10.6569 10.3431L14.8995 6.1005C16.0711 7.27208 16.6569 8.80761 16.6569 10.3431M10.6569 10.3431L10.6569 16.3431M10.6569 10.3431L16.6569 10.3431M10.6569 10.3431L14.8995 14.5858M14.8995 14.5858C13.7279 15.7574 12.1924 16.3431 10.6569 16.3431M14.8995 14.5858C16.0711 13.4142 16.6569 11.8787 16.6569 10.3431M16.3137 4.68629C19.4379 7.81049 19.4379
312.8758 16.3137 16C13.1895 19.1242 8.12419 19.1242 5 16L16.3137 4.68629Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),iQ=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"linkedin",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M20.0249 20H16.9137V15.1278C16.9137 13.9659 16.893 12.4704 15.2956 12.4704C13.6753 12.4704 13.4273 13.7362 13.4273 15.0432V19.9997H10.3162V9.98042H13.3028V11.3496H13.3447C13.6436 10.8386 14.0755 10.4182 14.5944 10.1332C15.1134 9.8482 15.6999 9.7092 16.2915 9.7312C19.4448 9.7312 20.0262 11.8054 20.0262 14.5036L20.0249 20ZM6.80572 8.6109C6.44863 8.6109 6.0996 8.50507 5.80265 8.30683C5.50571 8.10848 5.27427 7.82653 5.13757 7.4967C5.00086 7.16677 4.96502 6.80378 5.03463 6.45356C5.10423 6.10334 5.27613 5.78157 5.52858 5.52903C5.78103 5.2765 6.10271 5.10448 6.45293 5.03476C6.80315 4.96502 7.16614 5.00072 7.49607 5.13731C7.826 5.2739 8.10796 5.50526 8.30641 5.80212C8.50486 6.09894 8.6108 6.44798 8.6109 6.80507C8.6109 7.04216 8.56422 7.277 8.47352 7.49606C8.38283 7.71512 8.24995 7.91422 8.0823 8.08187C7.91466 8.24952 7.71567 8.3826 7.4966 8.4733C7.27765 8.5641 7.04281 8.61079 6.80572 8.6109ZM8.36136 20H5.24695V9.98042H8.36136V20Z",fill:"currentColor"})})}),i1=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"link",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M11 12.5L12.5 14C13.281 14.781 14.719 14.781 15.5 14L18.5 11C19.281 10.219 19.281 8.78105 18.5 8L18 7.5C17.2189 6.71895 15.781 6.71895 15 7.5L13 9.5M12 15.5L10 17.5C9.21895 18.281 7.78105 18.281 7 17.5L6.5 17C5.71895 16.219 5.71896 14.781 6.5 14L9.50001 11C10.2811 10.219 11.719 10.2189 12.5 11L14 12.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),i0=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"link-removed",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M18.5 11C19.281 10.219 19.281 8.78108 18.5 8.00003L18 7.50003C17.2189 6.71898 15.781 6.71898 15 7.50003L13 9.50003M15.5 14C14.7189 14.7811 13.281 14.7811 12.5 14M6.5 14C5.71895 14.7811 5.71894 16.219 6.49999 17L6.99999 17.5C7.78104 18.2811 9.21894 18.2811 9.99999 17.5L12 15.5M12.5 11C11.719 10.219 10.281 10.219 9.5 11M3 12.5H22",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),i5=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"list",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M6 6.5H19M6 14.5H19M6 10.5H19M6 18.5H19",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),i2=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"lock",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M15.5 11.5V8.5C15.5 6.5 14 5.5 12.5 5.5C11 5.5 9.5 6.5 9.5 8.5V11.5M7.5 11.5H17.5V19.5H7.5V11.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),i3=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"logo-js",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20 5H5V20H20V5ZM12.5254 16.1572C12.5254 17.4189 11.7742 18.1536 10.4792 18.1536C9.24243 18.1536 8.49121 17.4189 8.45801 16.2942V16.261H9.67407V16.2859C9.69897 16.7466 9.9729 17.0703 10.4626 17.0703C10.9939 17.0703 11.272 16.7507 11.272 16.1489V12.011H12.5254V16.1572ZM18.2893 16.2153C18.2893 17.4023 17.3679 18.1536 15.8738 18.1536C14.4419 18.1536 13.5371 17.4688 13.4666 16.4062L13.4624 16.3398H14.6702L14.6743 16.3813C14.72 16.8296 15.2056 17.1326 15.907 17.1326C16.5752 17.1326 17.0359 16.813 17.0359 16.3523V16.3481C17.0359 15.9539 16.7412 15.7339 15.9983 15.5803L15.3674 15.4517C14.1223 15.1985 13.5869 14.6174 13.5869 13.7085V13.7043C13.5869 12.592 14.5415 11.8574 15.8696 11.8574C17.2683 11.8574 18.0901 12.5962 18.1689 13.5964L18.1731 13.6504H16.9944L16.9861 13.6006C16.9155 13.1731 16.5005 12.8743 15.8696 12.8743C15.2512 12.8784 14.8403 13.1606 14.8403 13.6089V13.613C14.8403 14.0032 15.1309 14.2356 15.8364 14.3809L16.4714 14.5095C17.7373 14.771 18.2893 15.2773 18.2893 16.2112V16.2153Z",fill:"currentColor"})})}),i4=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"logo-ts",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20 5H5V20H20V5ZM11.0769 18H9.82349V13.0444H8.02637V12.011H12.874V13.0444H11.0769V18ZM18.2893 16.2153C18.2893 17.4023 17.3679 18.1536 15.8738 18.1536C14.4419 18.1536 13.5371 17.4688 13.4666 16.4062L13.4624 16.3398H14.6702L14.6743 16.3813C14.72 16.8296 15.2056 17.1326 15.907 17.1326C16.5752 17.1326 17.0359 16.813 17.0359 16.3523V16.3481C17.0359 15.9539 16.7412 15.7339 15.9983 15.5803L15.3674 15.4517C14.1223 15.1985 13.5869 14.6174 13.5869 13.7085V13.7043C13.5869 12.592 14.5415 11.8574 15.8696 11.8574C17.2683 11.8574 18.0901 12.5962 18.1689 13.5964L18.1731 13.6504H16.9944L16.9861 13.6006C16.9155 13.1731 16.5005 12.8743 15.8696 12.8743C15.2512 12.8784 14.8403 13.1606 14.8403 13.6089V13.613C14.8403 14.0032 15.1309 14.2356 15.8364 14.3809L16.4714 14.5095C17.7373 14.771 18.2893 15.2773 18.2893 16.2112V16.2153Z",fill:"currentColor"})})}),i6=(0,_.forwardRef)(function(e,t){return(0,E.jsxs)("svg",{"data-sanity-icon":"marker",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:[(0,E.jsx)("path",{d:"M6.5 10.5C6.5 7 9 4.5 12.5 4.5C16 4.5 18.5 7 18.5 10.5C18.5 14 15.5 17.5 12.5 20.5C9.5 17.5 6.5 14 6.5 10.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),(0,E.jsx)("path",{d:"M14 10.5C14 11.3284 13.3284 12 12.5 12C11.6716 12 11 11.3284 11 10.5C11 9.67157 11.6716 9 12.5 9C13.3284 9 14 9.67157 14 10.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})}),i8=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"marker-removed",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M7.39787 14C8.51075 16.2897 10.5054 18.5054 12.5 20.5C14.4946 18.5054 16.4892 16.2897 17.6021 14M6.52009 11C6.50681 10.8334 6.5 10.6667 6.5 10.5C6.5 7 9 4.5 12.5 4.5C16 4.5 18.5 7 18.5 10.5C18.5 10.6667 18.4932 10.8334 18.4799 11M3 12.5H22",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),i9=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"master-detail",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M9.5 6.5V10.5M9.5 10.5V14.5M9.5 10.5H5.5M9.5 14.5V18.5M9.5 14.5H5.5M5.5 6.5H19.5V18.5H5.5V6.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),i7=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"menu",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M6 7.5H19M6 17.5H19M6 12.5H19",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),oe=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"microphone",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M12.5 16.5C15.8137 16.5 18.5 13.8137 18.5 10.5V10M12.5 16.5C9.18629 16.5 6.5 13.8137 6.5 10.5V10M12.5 16.5V20.5M8 20.5H17M15.5 10.5C15.5 12.1569 14.1569 13.5 12.5 13.5C10.8431 13.5 9.5 12.1569 9.5 10.5V7.5C9.5 5.84315 10.8431 4.5 12.5 4.5C14.1569 4.5 15.5 5.84315 15.5 7.5V10.5Z",stroke:"currentColor",strokeWidth:1.2})})}),ot=(0,_.forwardRef)(function(e,t){return(0,E.jsxs)("svg",{"data-sanity-icon":"microphone-slash",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:[(0,E.jsx)("path",{d:"M17.8162 14.412C18.6231 13.3173 19.1 11.9644 19.1 10.5V10H17.9V10.5C17.9 11.6324 17.5514 12.6834 16.9557 13.5516L17.8162 14.412Z",fill:"currentColor"}),(0,E.jsx)("path",{d:"M14.2171 15.6213L15.1446 16.5488C14.5091 16.8271 13.8213 17.0081 13.1 17.0731V19.9H17V21.1H7.99999V19.9H11.9V17.0731C8.53609 16.77 5.89999 13.9429 5.89999 10.5V10H7.09999V10.5C7.09999 13.4824 9.51766 15.9 12.5 15.9C13.1003 15.9 13.6777 15.802
31 14.2171 15.6213Z",fill:"currentColor"}),(0,E.jsx)("path",{d:"M15.6494 12.2453C15.9365 11.7283 16.1 11.1333 16.1 10.5V7.50002C16.1 5.5118 14.4882 3.90002 12.5 3.90002C11.0945 3.90002 9.87704 4.70551 9.2842 5.88007L10.2038 6.79966C10.5035 5.81583 11.4181 5.10002 12.5 5.10002C13.8255 5.10002 14.9 6.17454 14.9 7.50002V10.5C14.9 10.7968 14.8461 11.0811 14.7476 11.3435L15.6494 12.2453Z",fill:"currentColor"}),(0,E.jsx)("path",{d:"M8.89999 10.3042L12.6909 14.0951C12.6277 14.0984 12.564 14.1 12.5 14.1C10.5118 14.1 8.89999 12.4882 8.89999 10.5V10.3042Z",fill:"currentColor"}),(0,E.jsx)("path",{d:"M19 18L6 5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})}),on=(0,_.forwardRef)(function(e,t){return(0,E.jsxs)("svg",{"data-sanity-icon":"mobile-device",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:[(0,E.jsx)("path",{d:"M7.5 6.5C7.5 5.39543 8.39543 4.5 9.5 4.5H15.5C16.6046 4.5 17.5 5.39543 17.5 6.5V18.5C17.5 19.6046 16.6046 20.5 15.5 20.5H9.5C8.39543 20.5 7.5 19.6046 7.5 18.5V6.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),(0,E.jsx)("path",{d:"M13.5 17.5C13.5 18.0523 13.0523 18.5 12.5 18.5C11.9477 18.5 11.5 18.0523 11.5 17.5C11.5 16.9477 11.9477 16.5 12.5 16.5C13.0523 16.5 13.5 16.9477 13.5 17.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})}),or=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"moon",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M19.6065 16.1775C18.9417 16.387 18.234 16.5 17.5 16.5C13.634 16.5 10.5 13.366 10.5 9.5C10.5 7.54163 11.3042 5.77109 12.6004 4.50062C12.567 4.50021 12.5335 4.5 12.5 4.5C8.08172 4.5 4.5 8.08172 4.5 12.5C4.5 16.9183 8.08172 20.5 12.5 20.5C15.5924 20.5 18.275 18.7454 19.6065 16.1775Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),oi=(0,_.forwardRef)(function(e,t){return(0,E.jsxs)("svg",{"data-sanity-icon":"number",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:[(0,E.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.0165 17.6336H3.83636V16.4336H21.0165V17.6336Z",fill:"currentColor"}),(0,E.jsx)("path",{d:"M7.09808 13.3967V7.508H5.74066L3.83636 8.78241V10.091L5.65277 8.88495H5.74066V13.3967H3.84125V14.5539H8.89984V13.3967H7.09808Z",fill:"currentColor"}),(0,E.jsx)("path",{d:"M9.81781 9.63202V9.66132H11.1069V9.62714C11.1069 8.95331 11.5756 8.49432 12.2739 8.49432C12.9575 8.49432 13.4018 8.89471 13.4018 9.50507C13.4018 9.9787 13.1528 10.3498 12.1909 11.3117L9.89594 13.5822V14.5539H14.8618V13.3869H11.7807V13.299L13.1577 11.9855C14.3491 10.843 14.7543 10.1838 14.7543 9.41229C14.7543 8.19159 13.7729 7.36639 12.3178 7.36639C10.8383 7.36639 9.81781 8.28436 9.81781 9.63202Z",fill:"currentColor"}),(0,E.jsx)("path",{d:"M17.6694 11.4631H18.5092C19.3198 11.4631 19.8422 11.8683 19.8422 12.4982C19.8422 13.1183 19.3295 13.5139 18.5239 13.5139C17.767 13.5139 17.2592 13.133 17.2104 12.5324H15.9262C15.9897 13.8508 17.0248 14.6955 18.5629 14.6955C20.1401 14.6955 21.2192 13.841 21.2192 12.591C21.2192 11.6584 20.6528 11.0334 19.7006 10.9211V10.8332C20.4721 10.6769 20.9457 10.0666 20.9457 9.23651C20.9457 8.12323 19.9741 7.36639 18.5434 7.36639C17.0541 7.36639 16.1118 8.17694 16.0629 9.50018H17.2983C17.3422 8.88007 17.8061 8.48456 18.4995 8.48456C19.2075 8.48456 19.6567 8.85565 19.6567 9.44159C19.6567 10.0324 19.1977 10.4182 18.4946 10.4182H17.6694V11.4631Z",fill:"currentColor"})]})}),oo=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"ok-hand",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M15.9957 11.5C14.8197 10.912 11.9957 9 10.4957 9C8.9957 9 5.17825 11.7674 6 13C7 14.5 9.15134 11.7256 10.4957 12C11.8401 12.2744 13 13.5 13 14.5C13 15.5 11.8401 16.939 10.4957 16.5C9.15134 16.061 8.58665 14.3415 7.4957 14C6.21272 13.5984 5.05843 14.6168 5.5 15.5C5.94157 16.3832 7.10688 17.6006 8.4957 19C9.74229 20.2561 11.9957 21.5 14.9957 20C17.9957 18.5 18.5 16.2498 18.5 13C18.5 11.5 13.7332 5.36875 11.9957 4.5C10.995
37 4 10 5 10.9957 6.5C11.614 7.43149 13.5 9.27705 14 10.3751M15.5 8C15.5 8 15.3707 7.5 14.9957 6C14.4957 4 15.9957 3.5 16.4957 4.5C17.1281 5.76491 18.2872 10.9147 18.4957 13",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),os=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"olist",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M10 7.5H19M10 12.5H19M10 17.5H19M5 18.5H7.5L7 17.5L7.5 16.5H5M5 6.5H6.5V8.5M5 8.5H6.5M6.5 8.5H8M8 13.5H6L7 11.5H5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),oa=(0,_.forwardRef)(function(e,t){return(0,E.jsxs)("svg",{"data-sanity-icon":"overage",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:[(0,E.jsx)("path",{d:"M18.5 11V6.5H14",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),(0,E.jsx)("path",{d:"M6.5 18.5L9 16L12 13L18.5 6.5M3 13.5H22",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})}),ol=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"package",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M12.5 13V22M12.5 13L4.5 8M12.5 13L20.5 8M8.5 5.5L16.5 10.5M4.5 8L12.5 3L20.5 8V17L12.5 22L4.5 17V8Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),ou=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"panel-left",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M10.5 6.5H19.5V18.5H10.5M10.5 6.5H5.5V18.5H10.5M10.5 6.5V18.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),od=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"panel-right",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M14.5 6.5H19.5V18.5H14.5M14.5 6.5H5.5V18.5H14.5M14.5 6.5V18.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),oc=(0,_.forwardRef)(function(e,t){return(0,E.jsxs)("svg",{"data-sanity-icon":"pause",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:[(0,E.jsx)("path",{d:"M10.5 7.5H8.5V17.5H10.5V7.5Z",fill:"currentColor"}),(0,E.jsx)("path",{d:"M16.5 7.5H14.5V17.5H16.5V7.5Z",fill:"currentColor"}),(0,E.jsx)("path",{d:"M10.5 7.5H8.5V17.5H10.5V7.5Z",stroke:"currentColor",strokeWidth:1.2}),(0,E.jsx)("path",{d:"M16.5 7.5H14.5V17.5H16.5V7.5Z",stroke:"currentColor",strokeWidth:1.2})]})}),oh=(0,_.forwardRef)(function(e,t){return(0,E.jsxs)("svg",{"data-sanity-icon":"pin-filled",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:[(0,E.jsx)("path",{d:"M17 15H8V13.5C8 12 10.5 11 10.5 11V9L8.5 7V6H16.5V7L14.5 9V11C14.5 11 17 12 17 13.5V15Z",fill:"currentColor",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),(0,E.jsx)("path",{d:"M12 15L12.5 20L13 15",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})}),of=(0,_.forwardRef)(function(e,t){return(0,E.jsxs)("svg",{"data-sanity-icon":"pin",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:[(0,E.jsx)("path",{d:"M12 15L12.5 20L13 15",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),(0,E.jsx)("path",{d:"M17 15H8V13.5C8 12 10.5 11 10.5 11V9L8.5 7V6H16.5V7L14.5 9V11C14.5 11 17 12 17 13.5V15Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})}),op=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"pin-removed",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M7.39787 14C8.51075 16.2897 10.5054 18.5054 12.5 20.5C14.4946 18.5054 16.4892 16.2897 17.6021 14M6.52009 11C6.50681 10.8334 6.5 10.6667 6.5 10.5C6.5 7 9 4.5 12.5 4.5C16 4.5 18.5 7 18.5 10.5C18.5 10.6667 18.4932 10.8334 18.4799 11M3 12.5H22",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),og=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"play",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M7.5 18.5V6.5L17.5 12.5L7.5 18.5Z",fill:"currentColor",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),om=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"plug",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M13.25 8.5L16.75 5M16.25 11.5L19.75 8M9.25 15.5L5.25 19.5M7.75 14L9.75 12C8.25 10 8.75 9 9.75 8C10.15 7.6 11.25 6.5 11.25 6.5L18.25 13.5C18.25 13.5 17.3825 14.3675 16.75 15C15.75 16 14.75 16.5 12.75 15L10.75 17L7.75 14Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),oy=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"presentation",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M10.5 18H5.5V8.5H19.5V18H14.5M10.5 18L9 22M10.5 18H14.5M14.5 18L16 22M4.5 8.5H20.5V6.5H4.5V8.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),ov=(0,_.forwardRef)(function(e,t){return(0,E.jsxs)("svg",{"data-sanity-icon":"progress-50",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:[(0,E.jsx)("path",{d:"M17 12.5C17 14.9853 14.9853 17 12.5 17V8C14.9853 8 17 10.0147 17 12.5Z",fill:"currentColor",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}
3),(0,E.jsx)("path",{d:"M12.5 20.5C16.9183 20.5 20.5 16.9183 20.5 12.5C20.5 8.08172 16.9183 4.5 12.5 4.5C8.08172 4.5 4.5 8.08172 4.5 12.5C4.5 16.9183 8.08172 20.5 12.5 20.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})}),ow=(0,_.forwardRef)(function(e,t){return(0,E.jsxs)("svg",{"data-sanity-icon":"progress-75",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:[(0,E.jsx)("path",{d:"M12.5 17C14.9853 17 17 14.9853 17 12.5C17 10.0147 14.9853 8 12.5 8V12.5H8C8 14.9853 10.0147 17 12.5 17Z",fill:"currentColor",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),(0,E.jsx)("path",{d:"M20.5 12.5C20.5 16.9183 16.9183 20.5 12.5 20.5C8.08172 20.5 4.5 16.9183 4.5 12.5C4.5 8.08172 8.08172 4.5 12.5 4.5C16.9183 4.5 20.5 8.08172 20.5 12.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})}),ob=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"projects",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M21 17.5H14M17.5 14V21M5.5 14.5H10.5V19.5H5.5V14.5ZM14.5 5.5H19.5V10.5H14.5V5.5ZM5.5 5.5H10.5V10.5H5.5V5.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),ox=(0,_.forwardRef)(function(e,t){return(0,E.jsxs)("svg",{"data-sanity-icon":"publish",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:[(0,E.jsx)("path",{d:"M4.99997 5.50006H20M12.5 9.00005V20",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),(0,E.jsx)("path",{d:"M7.5 14L12.5 9.00006L17.5 14",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})}),oC=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"read-only",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M15 7L18 10M10 12L7 15L6 19L10 18L13 15M12 10L17 5L20 8L15 13M19 19L5 5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),ok=(0,_.forwardRef)(function(e,t){return(0,E.jsxs)("svg",{"data-sanity-icon":"redo",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:[(0,E.jsx)("path",{d:"M19 9.5L10 9.5C7.51472 9.5 5.5 11.5147 5.5 14C5.5 16.4853 7.51472 18.5 10 18.5H19",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),(0,E.jsx)("path",{d:"M15 13.5L19 9.5L15 5.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})}),oj=(0,_.forwardRef)(function(e,t){return(0,E.jsxs)("svg",{"data-sanity-icon":"refresh",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:[(0,E.jsx)("path",{d:"M19.5 13.5C19.5 17.366 16.366 20.5 12.5 20.5C8.63401 20.5 5.5 17.366 5.5 13.5C5.5 9.63401 8.63401 6.5 12.5 6.5H15.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),(0,E.jsx)("path",{d:"M11.5 10.5L15.5 6.5L11.5 2.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})}),oM=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"remove-circle",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M8 12.4H17M20.5 12.5C20.5 16.9183 16.9183 20.5 12.5 20.5C8.08172 20.5 4.5 16.9183 4.5 12.5C4.5 8.08172 8.08172 4.5 12.5 4.5C16.9183 4.5 20.5 8.08172 20.5 12.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),oL=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"remove",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M5 12.5H20",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),oS=(0,_.forwardRef)(function(e,t){return(0,E.jsxs)("svg",{"data-sanity-icon":"reset",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:[(0,E.jsx)("path",{d:"M7 11L4.56189 13.5L2 11",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),(0,E.jsx)("path",{d:"M9.50001 15.5L15.5 9.5M9.5 9.5L15.5 15.5M4.56189 13.5C4.52104 13.1724 4.5 12.8387 4.5 12.5C4.5 8.08172 8.08172 4.5 12.5 4.5C16.9183 4.5 20.5 8.08172 20.5 12.5C20.5 16.9183 16.9183 20.5 12.5 20.5C9.75033 20.5 7.32466 19.1128 5.88468 17",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})}),oE=(0,_.forwardRef)(function(e,t){return(0,E.jsxs)("svg",{"data-sanity-icon":"restore",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:[(0,E.jsx)("path",{d:"M5.88468 17C7.32466 19.1128 9.75033 20.5 12.5 20.5C16.9
3183 20.5 20.5 16.9183 20.5 12.5C20.5 8.08172 16.9183 4.5 12.5 4.5C8.08172 4.5 4.5 8.08172 4.5 12.5V13.5M12.5 8V12.5L15.5 15.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),(0,E.jsx)("path",{d:"M7 11L4.5 13.5L2 11",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})}),oR=(0,_.forwardRef)(function(e,t){return(0,E.jsxs)("svg",{"data-sanity-icon":"retrieve",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:[(0,E.jsx)("path",{d:"M16 14L12.5 10.5L9 14M5.5 7.5H19.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),(0,E.jsx)("path",{d:"M12.5 10.5L12.5 17.5M19.5 7.5V19.5H5.5V7.5L7.5 5.5H17.5L19.5 7.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})}),oV=(0,_.forwardRef)(function(e,t){return(0,E.jsxs)("svg",{"data-sanity-icon":"retry",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:[(0,E.jsx)("path",{d:"M19 9.5L10 9.5C7.51472 9.5 5.5 11.5147 5.5 14C5.5 16.4853 7.51472 18.5 10 18.5H19",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),(0,E.jsx)("path",{d:"M15 13.5L19 9.5L15 5.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})}),o_=(0,_.forwardRef)(function(e,t){return(0,E.jsxs)("svg",{"data-sanity-icon":"revert",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:[(0,E.jsx)("path",{d:"M6 9.5L15 9.5C17.4853 9.5 19.5 11.5147 19.5 14C19.5 16.4853 17.4853 18.5 15 18.5H6",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),(0,E.jsx)("path",{d:"M10 13.5L6 9.5L10 5.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})}),o$=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"robot",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M12.5 15.5V17.5M12.5 8.5V6.5M12.5 6.5C13.3284 6.5 14 5.82843 14 5C14 4.17157 13.3284 3.5 12.5 3.5C11.6716 3.5 11 4.17157 11 5C11 5.82843 11.6716 6.5 12.5 6.5ZM20.5 20.5V19.5C20.5 18.3954 19.6046 17.5 18.5 17.5H6.5C5.39543 17.5 4.5 18.3954 4.5 19.5V20.5H20.5ZM11.5 12C11.5 12.5523 11.0523 13 10.5 13C9.94772 13 9.5 12.5523 9.5 12C9.5 11.4477 9.94772 11 10.5 11C11.0523 11 11.5 11.4477 11.5 12ZM15.5 12C15.5 12.5523 15.0523 13 14.5 13C13.9477 13 13.5 12.5523 13.5 12C13.5 11.4477 13.9477 11 14.5 11C15.0523 11 15.5 11.4477 15.5 12ZM8.5 15.5H16.5C17.6046 15.5 18.5 14.6046 18.5 13.5V10.5C18.5 9.39543 17.6046 8.5 16.5 8.5H8.5C7.39543 8.5 6.5 9.39543 6.5 10.5V13.5C6.5 14.6046 7.39543 15.5 8.5 15.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),oA=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"rocket",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M12.5 20.5L15.5 14M11 9.49999L4.5 12.5M9 14C9 14 7.54688 14.9531 6.5 16C5.5 17 4.5 20.5 4.5 20.5C4.5 20.5 8 19.5 9 18.5C10 17.5 11 16 11 16M9 14C9 14 10.1 9.9 12.5 7.5C15.5 4.5 20.5 4.5 20.5 4.5C20.5 4.5 20.5 9.5 17.5 12.5C15.7492 14.2508 11 16 11 16L9 14ZM16.5 9.99999C16.5 10.8284 15.8284 11.5 15 11.5C14.1716 11.5 13.5 10.8284 13.5 9.99999C13.5 9.17157 14.1716 8.49999 15 8.49999C15.8284 8.49999 16.5 9.17157 16.5 9.99999Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),oT=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"schema",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M12.5 9.5V12.5M12.5 12.5H8.5V15.5M12.5 12.5H16.5V15.5M10.5 5.5H14.5V9.5H10.5V5.5ZM6.5 15.5H10.5V19.5H6.5V15.5ZM14.5 15.5H18.5V19.5H14.5V15.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),oH=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"search",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M15.0355 15.0355L20 20M16.5 11.5C16.5 14.2614 14.2614 16.5 11.5 16.5C8.73858 16.5 6.5 14.2614 6.5 11.5C6.5 8.73858 8.73858 6.5 11.5 6.5C14.2614 6.5 16.5 8.73858 16.5 11.5
3Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),oI=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"select",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M16 15L12.5 18.5L9 15M9 10L12.5 6.5L16 10",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),oP=(0,_.forwardRef)(function(e,t){return(0,E.jsxs)("svg",{"data-sanity-icon":"share",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:[(0,E.jsx)("path",{d:"M15 10.5H18.5V19.5H6.5L6.5 10.5H10M12.5 16V3.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),(0,E.jsx)("path",{d:"M9 7L12.5 3.5L16 7",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})}),oO=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"sort",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M8.5 18.5V6M16.5 19V6.5M12 15L8.5 18.5L5 15M13 10L16.5 6.5L20 10",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),oB=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"sparkle",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M10.5 10.5C8.5 12.5 5 12.5 5 12.5C5 12.5 8.5 12.5 10.5 14.5C12.5 16.5 12.5 20 12.5 20C12.5 20 12.5 16.5 14.5 14.5C16.5 12.5 20 12.5 20 12.5C20 12.5 16.5 12.5 14.5 10.5C12.5 8.5 12.5 5 12.5 5C12.5 5 12.5 8.5 10.5 10.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),oN=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"sparkles",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M11 3.5V5M11 5V6.5M11 5H12.5M11 5H9.5M9.5 15C9.5 15 12.2308 14.7692 13.5 13.5C14.7692 12.2308 15 9.5 15 9.5C15 9.5 15.2308 12.2308 16.5 13.5C17.7692 14.7692 20.5 15 20.5 15C20.5 15 17.7692 15.2308 16.5 16.5C15.2308 17.7692 15 20.5 15 20.5C15 20.5 14.7692 17.7692 13.5 16.5C12.2308 15.2308 9.5 15 9.5 15ZM4.5 10C4.5 10 5.72308 9.87692 6.3 9.3C6.87692 8.72308 7 7.5 7 7.5C7 7.5 7.12308 8.72308 7.7 9.3C8.27692 9.87692 9.5 10 9.5 10C9.5 10 8.27692 10.1231 7.7 10.7C7.12308 11.2769 7 12.5 7 12.5C7 12.5 6.87692 11.2769 6.3 10.7C5.72308 10.1231 4.5 10 4.5 10Z",stroke:"currentColor",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round"})})}),oW=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"spinner",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M4.5 12.5C4.5 16.9183 8.08172 20.5 12.5 20.5C16.9183 20.5 20.5 16.9183 20.5 12.5C20.5 8.08172 16.9183 4.5 12.5 4.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),oz=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"split-horizontal",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M19.5 10.5V20.5H5.5V10.5M19.5 10.5H5.5M19.5 10.5V4.5H5.5V10.5M12.5 13V15.5M12.5 18V15.5M12.5 15.5H15M12.5 15.5H10",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),oD=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"split-vertical",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M10.5 5.5V19.5M13 12.5H15.5M18 12.5H15.5M15.5 12.5V15M15.5 12.5V10M4.5 5.5H20.5V19.5H4.5V5.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),oF=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"square",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("rect",{x:5.5,y:5.5,width:14,height:14,stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),oZ=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"stack-compact",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M5.5 15.5V18.5H19.5V15.5M5.5 15.5H19.5M5.5 15.5V9.5M19.5 15.5V9.5M5.5 9.5V6.5H19.5V9.5M5.5 9.5H19.5M5.5 12.5H19.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),oU=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"stack",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M5.5 12.5H19.5M5.5 18.5H19.5V6.5H5.5V18.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),oq=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"star-filled",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M12.5 5L14.3956 9.89092L19.6329 10.1824L15.5672 13.4966L16.9084 18.5676L12.5 15.725L8.09161 18.5676L9.43284 13.4966L5.36708 10.1824L10.6044 9.89092L12.5 5Z",fill:"currentColor",stroke:"currentColor",strokeLinejoin:"round"})})}),oG=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"star",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M12.5 5L14.3956 9.89092L19.6329 10.1824L15.5672 13.4966L16.9084 18.5676L12.5 15.725L8.09161 18.5676L9.43284 13.4966L5.36708 10.1824L10.6044 9.89092L12.5 5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),oY=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"stop",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("rect",{x:7.5,y:7.5,width:10,height:10,fill:"currentColor",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),oX=(0,_.forwardRef)(function(e,t){return(0,E.jsxs)("svg",{"data-sanity-icon":"strikethrough",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:[(0,E.jsx)("path",{d:"M12.5656 7.73438C11.0656 7.73438 10.
30734 8.48438 10.0734 9.625C10.0734 10.2317 10.3649 10.6613 11.0519 11H8.90358C8.71703 10.6199 8.62813 10.1801 8.62813 9.67188C8.62813 7.75781 10.2297 6.46094 12.6125 6.46094C14.7922 6.46094 16.4172 7.75781 16.5344 9.57812H15.1203C14.925 8.42188 13.9719 7.73438 12.5656 7.73438Z",fill:"currentColor"}),(0,E.jsx)("path",{d:"M12.4875 18.2656C10.0969 18.2656 8.44844 17 8.3 15.0547H9.72188C9.89375 16.2344 11.0188 16.9844 12.6203 16.9844C14.1359 16.9844 15.2531 16.1641 15.2531 15.0469C15.2531 14.6375 15.1255 14.292 14.8589 14H16.5912C16.6638 14.266 16.6984 14.5566 16.6984 14.875C16.6984 16.9453 15.0656 18.2656 12.4875 18.2656Z",fill:"currentColor"}),(0,E.jsx)("path",{d:"M7 13.1H18V11.9H7V13.1Z",fill:"currentColor"})]})}),oK=(0,_.forwardRef)(function(e,t){return(0,E.jsxs)("svg",{"data-sanity-icon":"string",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:[(0,E.jsx)("path",{d:"M11.6748 15.5227H13.1855L9.87842 6.36304H8.34863L5.0415 15.5227H6.50146L7.3457 13.0916H10.8369L11.6748 15.5227ZM9.04053 8.02612H9.14844L10.4751 11.8982H7.70752L9.04053 8.02612Z",fill:"currentColor"}),(0,E.jsx)("path",{d:"M16.8101 14.488C16.0674 14.488 15.5278 14.1262 15.5278 13.5042C15.5278 12.8948 15.9595 12.571 16.9116 12.5076L18.6001 12.3997V12.9773C18.6001 13.8342 17.8384 14.488 16.8101 14.488ZM16.4609 15.637C17.3687 15.637 18.124 15.2434 18.5366 14.5515H18.6445V15.5227H19.9585V10.8C19.9585 9.34009 18.981 8.47681 17.248 8.47681C15.6802 8.47681 14.563 9.23853 14.4233 10.4255H15.7437C15.896 9.93677 16.4229 9.65747 17.1846 9.65747C18.1177 9.65747 18.6001 10.0701 18.6001 10.8V11.3967L16.7275 11.5046C15.0835 11.6062 14.1567 12.3235 14.1567 13.5676C14.1567 14.8308 15.1279 15.637 16.4609 15.637Z",fill:"currentColor"}),(0,E.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.9585 18.637L5.0415 18.637V17.437L19.9585 17.437V18.637Z",fill:"currentColor"})]})}),oJ=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"sun",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M19 12.5H22M3 12.5H6M12.5 6V3M12.5 22V19M17.3891 7.61091L19.5104 5.48959M5.48959 19.5104L7.61091 17.3891M7.61091 7.61091L5.48959 5.48959M19.5104 19.5104L17.3891 17.3891M16 12.5C16 14.433 14.433 16 12.5 16C10.567 16 9 14.433 9 12.5C9 10.567 10.567 9 12.5 9C14.433 9 16 10.567 16 12.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),oQ=(0,_.forwardRef)(function(e,t){return(0,E.jsxs)("svg",{"data-sanity-icon":"sync",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:[(0,E.jsx)("path",{d:"M13.5 4.5H12.5C8.08172 4.5 4.5 8.08172 4.5 12.5C4.5 15.6631 6.33576 18.3975 9 19.6958M11.5 20.5H12.5C16.9183 20.5 20.5 16.9183 20.5 12.5C20.5 9.33688 18.6642 6.60253 16 5.30423",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),(0,E.jsx)("path",{d:"M14 17.5619L11.5 20.5L14.5 23.0619M11 7.43811L13.5 4.50001L10.5 1.93811",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})}),o1=(0,_.forwardRef)(function(e,t){return(0,E.jsxs)("svg",{"data-sanity-icon":"tablet-device",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:[(0,E.jsx)("path",{d:"M5.5 5.5C5.5 4.94772 5.94772 4.5 6.5 4.5H18.5C19.0523 4.5 19.5 4.94772 19.5 5.5V19.5C19.5 20.0523 19.0523 20.5 18.5 20.5H6.5C5.94772 20.5 5.5 20.0523 5.5 19.5V5.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),(0,E.jsx)("path",{d:"M13 18C13 18.2761 12.7761 18.5 12.5 18.5C12.2239 18.5 12 18.2761 12 18C12 17.7239 12.2239 17.5 12.5 17.5C12.7761 17.5 13 17.7239 13 18Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})}),o0=(0,_.forwardRef)(function(e,t){return(0,E.jsxs)("svg",{"data-sanity-icon":"tag",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:[(0,E.jsx)("path",{d:"M12.5 20L5 20L5 12.5L12.5 5L20 12.5L12.5 20Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),(0,E.jsx)("path",{d:"M11 15.5C11 16.3284 10.3284 17 9.5 17C8.67157 17 8 16.3284 8 15.5C8 14.6716 8.67157 14 9.5 14C10.3284 14 11 14.6716 11 15.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})}),o5=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"tags",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M12.1562 7.93179L13.9717 6.11633L20.3553 12.5L13.9717 18.8836L10.6855 18.8836M11.0283 18.8836L17.4119 12.5L11.0283 6.11633L4.64462 12.5L4.64462 18.8836L11.0283 18.8836ZM9.75153 15.0534C9.75153 15.7585 9.17992 16.3302 8.47481 16.3302C7.76969 16.3302 7.19808 15.7585 7.19808 15.0534C7.19808 14.3483 7.76969 13.7767 8.47481 13.7767C9.17992 13.7767 9.75153 14.3483 9.75153 15.0534Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),o2=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"target",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M12.5 3V10M22 12.5H15M12.5 22V15M3 12.5H10M19 12.5C19 16.
30899 16.0899 19 12.5 19C8.91015 19 6 16.0899 6 12.5C6 8.91015 8.91015 6 12.5 6C16.0899 6 19 8.91015 19 12.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),o3=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"task",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M20.5 10.75V19.75H4.5V10.75M20.5 10.75V5.75H17.5M20.5 10.75H4.5M4.5 10.75V5.75H7.5M7.5 5.75H17.5M7.5 5.75V8.25M7.5 5.75V3.25M17.5 5.75V8.25M17.5 5.75V3.25M9.7002 14.7358L11.7002 16.7358L15.3002 13.1758",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),o4=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"terminal",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M8.5 9.5L11.5 12.5L8.5 15.5M13 15.5H17M5.5 6.5H19.5V18.5H5.5V6.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),o6=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"text",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M7.5 9V6.5H17.5V9M12.5 18.5V6.5M10 18.5H15",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),o8=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"th-large",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M12.5 6.5V12.5M12.5 12.5V18.5M12.5 12.5H19.5M12.5 12.5H5.5M19.5 12.5V6.5H5.5V12.5M19.5 12.5V18.5H5.5V12.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),o9=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"th-list",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M9.5 6.5V10.5M9.5 10.5V14.5M9.5 10.5H19.5M9.5 10.5H5.5M9.5 14.5V18.5M9.5 14.5H19.5M9.5 14.5H5.5M5.5 6.5H19.5V18.5H5.5V6.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),o7=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"thumbs-down",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M9.5 15C9.5 15 12.5 16.5 12.5 18C12.5 19.5 13.5 19.5 13.5 19.5C13.5 19.5 14.5 19.5 14.5 18C14.5 16.5 14.5 15.5 14.5 15.5H18C18 15.5 18 15.5 18 15.5C18 15.5 19 15.5 19 14.5C19 13.5 19.5 14 19.5 13C19.5 12 19 11.5 19 10.5C19 9.5 18 9.5 18 8.5C18 7.5 17 7.5 16.5 7.5C16 7.5 9.5 7.5 9.5 7.5M9.5 7.5H6.5V15.5H9.5V7.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),se=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"thumbs-up",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M9.5 10C9.5 10 12.5 8.5 12.5 7C12.5 5.5 13.5 5.5 13.5 5.5C13.5 5.5 14.5 5.5 14.5 7C14.5 8.5 14.5 9.5 14.5 9.5H18C18 9.5 18 9.5 18 9.5C18 9.5 19 9.5 19 10.5C19 11.5 19.5 11 19.5 12C19.5 13 19 13.5 19 14.5C19 15.5 18 15.5 18 16.5C18 17.5 17 17.5 16.5 17.5C16 17.5 9.5 17.5 9.5 17.5M9.5 17.5H6.5V9.5H9.5V17.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),st=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"tiers",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M16.5 14.5L20.5 16.5L12.5 20.5L4.5 16.5L8.5 14.5M16.5 10.5L20.5 12.5L12.5 16.5L4.5 12.5L8.5 10.5M12.5 12.5L20.5 8.5L12.5 4.5L4.5 8.5L12.5 12.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),sn=(0,_.forwardRef)(function(e,t){return(0,E.jsxs)("svg",{"data-sanity-icon":"timeline",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:[(0,E.jsx)("path",{d:"M12.5 5V20",stroke:"currentColor",strokeWidth:1.2}),(0,E.jsx)("path",{d:"M5 8.5H11M7 12.5H11M9 16.5H11M13 16.5H20M13 12.5H18M13 8.5H16",stroke:"currentColor",strokeWidth:1.2})]})}),sr=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"toggle-arrow-right",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M10.5 16V9L16 12.5L10.5 16Z",fill:"currentColor",stroke:"currentColor",strokeLinejoin:"round"})})}),si=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"token",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M17.5711 12.5C17.5711 15.2614 15.3325 17.5 12.5711 17.5M7.57107 12.5C7.57107 9.73858 9.80964 7.5 12.5711 7.5M20.5 12.5C20.5 16.9183 16.9183 20.5 12.5 20.5C8.08172 20.5 4.5 16.9183 4.5 12.5C4.5 8.08172 8.08172 4.5 12.5 4.5C16.9183 4.5 20.5 8.08172 20.5 12.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),so=(0,_.forwardRef)(function(e,t){return(0,E.jsxs)("svg",{"data-sanity-icon":"transfer",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:[(0,E.jsx)("path",{d:"M19.5 16.5H6M5.5 8.5L19 8.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),(0,E.jsx)("path",{d:"M16 13L19.5 16.5L16 20M9 12L5.5 8.5L9 5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})}),ss=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"translate",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.4 5.4H4V6.6H13.2189C13.1612 6.78478 13.0895 6.99578 13.0025 7.22211C12.7032 8.00031 12.2402 8.91125 11.5757 9.57574L10 11.1515L9.42426 10.5757C8.72102 9.8725 8.25297 9.16987 7.96199 8.64611C7.81668 8.38455 7.71617 8.16874 7.65305 8.02146C7.62151 7.94787 7.59937 7.89154 7.5857 7.85534C7.57886 7.83725 7.57415 7.8242 7.57144 7.81657L7.56886 7.80922C7.56886 7.80922 7.56921 7.81026 7 8C6.43079 8.18974 6.43091 8.19009 6.43091 8.19009L6.43133 8.19135L6.43206 8.19351L6.4341 8.19948L6.44052 8.21786C6.44587 8.23292 6.45336 8.25357 6.46313 8.27942C6.48266 8.33112 6.5113 8.40369 6.55008 8.49416C6.62758 8.67501 6.74582 8.92795 6.91301 9.22889C7.24703 9.83013 7.77898 10.6275 8.57574 11.4243L9.15147 12L4.57964 16.5718L4.57655 16.5749L4.57577 16.5757L5.4243 17.4242L5.42688 17.4216L10.0368 12.8117L12.6159 14.9609L13.3841 14.0391L10.8888 11.9597L12.4243 10.4243C13.2598 9.58875 13.7968 8.49969 14.1225 7.65289C14.2818 7.23863 14.395 6.87072 14.4696 6.6H16V5.4H10.6V4H9.4V5.4ZM17.4405 10L21.553 19.7672H20.2509L19.1279 17.1H14.8721L13.7491 19.7672H12.447L16.5595 10H17.4405ZM15.3773 15.9H18.6227L17 12.0462L15.37
373 15.9Z",fill:"currentColor"})})}),sa=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"trash",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M5 6.5H20M10 6.5V4.5C10 3.94772 10.4477 3.5 11 3.5H14C14.5523 3.5 15 3.94772 15 4.5V6.5M12.5 9V17M15.5 9L15 17M9.5 9L10 17M18.5 6.5L17.571 18.5767C17.5309 19.0977 17.0965 19.5 16.574 19.5H8.42603C7.90349 19.5 7.46905 19.0977 7.42898 18.5767L6.5 6.5H18.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),sl=(0,_.forwardRef)(function(e,t){return(0,E.jsxs)("svg",{"data-sanity-icon":"trend-upward",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:[(0,E.jsx)("path",{d:"M4.5 18.5L11.5 10.5L13.5 14.5L20.5 6.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),(0,E.jsx)("path",{d:"M20.5 11V6.5H16",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})}),su=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"triangle-outline",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M20.5 18.5H4.5L12.5 5.5L20.5 18.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),sd=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"trolley",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M8 17.5L5.81763 6.26772C5.71013 5.81757 5.30779 5.5 4.84498 5.5H3M8 17.5H17M8 17.5C8.82843 17.5 9.5 18.1716 9.5 19C9.5 19.8284 8.82843 20.5 8 20.5C7.17157 20.5 6.5 19.8284 6.5 19C6.5 18.1716 7.17157 17.5 8 17.5ZM17 17.5C17.8284 17.5 18.5 18.1716 18.5 19C18.5 19.8284 17.8284 20.5 17 20.5C16.1716 20.5 15.5 19.8284 15.5 19C15.5 18.1716 16.1716 17.5 17 17.5ZM7.78357 14.5H17.5L19 7.5H6",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),sc=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"truncate",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M5 12.5H20M8.5 19.5L12.5 15.5L16.5 19.5M16.5 5.5L12.5 9.5L8.5 5.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),sh=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"twitter",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M18.8738 6.65751C18.1994 5.9447 17.2445 5.5 16.1857 5.5C14.1423 5.5 12.4857 7.15655 12.4857 9.2C12.4857 9.55263 12.535 9.89374 12.6272 10.2168C7.0826 9.56422 4.55703 6.02857 4.55703 6.02857C4.55703 6.02857 4.02846 9.2 6.14274 11.3143C5.08571 11.3143 4.55703 10.7857 4.55703 10.7857C4.55703 10.7857 4.55703 13.4286 7.19989 14.4857C6.67143 15.0143 5.61417 14.4857 5.61417 14.4857C5.97533 15.9303 7.45606 16.8562 8.82133 17.1358C6.67298 19.1676 3.5 18.7143 3.5 18.7143C5.14562 19.771 7.21334 20.3 9.31429 20.3C16.1214 20.3 19.8162 15.6315 19.8848 9.37762C20.8722 8.58943 22 7.08571 22 7.08571C22 7.08571 21.277 7.45458 19.6913 7.98315C21.277 6.92601 21.4714 5.5 21.4714 5.5C21.4714 5.5 20.4135 6.55789 18.8738 6.65751Z",fill:"currentColor"})})}),sf=(0,_.forwardRef)(function(e,t){return(0,E.jsxs)("svg",{"data-sanity-icon":"ulist",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:[(0,E.jsx)("path",{d:"M7.10153 17.5C7.10153 17.8322 6.83221 18.1016 6.5 18.1016C6.16778 18.1016 5.89847 17.8322 5.89847 17.5C5.89847 17.1678 6.16778 16.8985 6.5 16.8985C6.83221 16.8985 7.10153 17.1678 7.10153 17.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),(0,E.jsx)("path",{d:"M7.10153 7.49997C7.10153 7.83218 6.83221 8.1015 6.5 8.1015C6.16778 8.1015 5.89847 7.83218 5.89847 7.49997C5.89847 7.16775 6.16778 6.89844 6.5 6.89844C6.83221 6.89844 7.10153 7.16775 7.10153 7.49997Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),(0,E.jsx)("path",{d:"M7.10153 12.5C7.10153 12.8322 6.83221 13.1015 6.5 13.1015C6.16778 13.1015 5.89847 12.8322 5.89847 12.5C5.89847 12.1678 6.16778 11.8984 6.5 11.8984C6.83221 11.8984 7.10153 12.1678 7.10153 12.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),(0,E.jsx)("path",{d:"M10 7.5H19M10 17.5H19M10 12.5H19",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})}),sp=(0,_.forwardRef)(function(e,t){return(0,E.jsxs)("svg",{"data-sanity-icon":"unarchive",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:[(0,E.jsx)("path",{d:"M12.5 10.5V18M20.5 7.5V20.5H4.5V7.5L7.5 4.5H17.5L20.5 7.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),(0,E.jsx)("path",{d:"M4.5 7.5H20.5M16 14L12.5 10.5L9 14",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})}),sg=(0,_.forwardRef)(function(e,t){return(0,E.jsxs)("svg",{"data-sanity-icon":"underline",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:[(0,E.jsx)("path",{d:"M9.52791 7.11407H8.17V14.2582C8.17 16.5817 9.79195 18.2565 12.4927 18.2565C15.1934 18.2565 16.8154 16.5817 16.8154 14.2582V7.11407H15.4574V14.1677C15.4574 15.8122 14.3787 17.0042 12.4927 17.0042C10.6067 17.0042 9.52791 15.8122 9.52791 14.1677V7.11407Z",fill:"currentColor"}),(0,E.jsx)("path",{d:"M7 20.5H18",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})}),sm=(0,_.forwardRef)(function(e,t){return(0,E.jsxs)("svg",{"data-sanity-icon":"undo",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:[(0,E.jsx)("path",{d:"M6 9.5L15 9.5C17.4853 9.5 19.5 11.5147 19.5 14C19.5 16.4853 17.4853 18.5 15 18.5H6",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),(0,E.jsx)("path",{d:"M10 13.5L6 9.5L10 5.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})}),sy=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"unknown",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M12.5 13C12.5 11 14 11.5 14 10C14 9.34375 13.5 8.5 12.5 8.5C11.5 8.5 11 9 10.5 9.5M12.5 16V14.5M5.5 5.5H19.5V19.5H5.5V5.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),sv=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"unlink",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M15 13.5L17.5 11C18.281 10.219 18.281 8.78105 17.5 8L17 7.5C16.2189 6.71895 14.781 6.71895 14 7.5L11.5 10M10 11.5L7.5 14C6.71896 14.781 6.71895 16.219 7.5 17L8 17.5C8.78105 18.281 10.2189 18.281 11 17.5L13.5 15M9.5 8V5M8 9.5H5M17 15.5H20M15.5 17V20",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),sw=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"unlock",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M9.5 11.5V8.5C9.5 6.5 8 5.5 6.5 5.5C5 5.5 3.5 6.5 3.5 8.5V11.5M7.5 11.5H17.5V19.5H7.5V11.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),sb=(0,_.forwardRef)(function(e,t){return(0,E.jsxs)("svg",{"data-sanity-icon":"unpublish",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:[(0,E.jsx)("path",{d:"M5 19.5H20M12.5 16V5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),(0,E.jsx)("path",{d:"M17.5 11L12.5 16L7.5 11",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})}),sx=(0,_.forwardRef)(function(e,t){return(0,E.jsxs)("svg",{"data-sanity-icon":"upload",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:[(0,E.jsx)("path",{d:"M12.5 6V15.5M5.5 15.5H19.5V19.5H5.5V15.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),(0,E.jsx)("path",{d:"M7.5 11L12.5 6L17.5 11",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})}),sC=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"user",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M8 14.5C7 15 5.5 16 5.5 19.5H19.5C19.5 16 18.3416 15.1708 17 14.5C16 14 14 14 14 12.5C14 11 15 10.25 15 8.25C15 6.25 14 5.25 12.5 5.25C11 5.25 10 6.25 10 8.25C10 10.25 11 11 11 12.5C11 14 9 14 8 14.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),sk=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"users",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M17.5 18.5H2
31.5C21.5 15 20.8416 14.1708 19.5 13.5C18.5 13 16.5 12.5 16.5 11C16.5 9.5 17.5 9 17.5 7C17.5 5 16.5 4 15 4C13.6628 4 12.723 4.79472 12.5347 6.38415M4.5 20.5C4.5 17 5.5 16 6.5 15.5C7.5 15 9.5 14.5 9.5 13C9.5 11.5 8.5 11 8.5 9C8.5 7 9.5 6 11 6C12.5 6 13.5 7 13.5 9C13.5 11 12.5 11.5 12.5 13C12.5 14.5 14.5 15 15.5 15.5C16.8416 16.1708 17.5 17 17.5 20.5H4.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),sj=(0,_.forwardRef)(function(e,t){return(0,E.jsxs)("svg",{"data-sanity-icon":"versions",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:[(0,E.jsx)("path",{d:"M10.5 7.5H7.5V17.5H10.5M7.5 9.5H4.5V15.5H7.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),(0,E.jsx)("path",{d:"M20.5 19.5V5.5H10.5V19.5H20.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})}),sM=(0,_.forwardRef)(function(e,t){return(0,E.jsxs)("svg",{"data-sanity-icon":"video",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:[(0,E.jsx)("path",{d:"M19.5 18.5H5.5V6.5H19.5V18.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),(0,E.jsx)("path",{d:"M11.5 14.5V10.5L14.5 12.5L11.5 14.5Z",fill:"currentColor",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})}),sL=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"warning-filled",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.741 5.12635C13.7357 3.41736 11.2643 3.41736 10.259 5.12635L3.7558 16.1817C2.73624 17.915 3.98595 20.1 5.99683 20.1H19.0032C21.014 20.1 22.2637 17.915 21.2442 16.1817L14.741 5.12635ZM11.9 8.99998V13H13.1V8.99998H11.9ZM13.1 16V14.5H11.9V16H13.1Z",fill:"currentColor"})})}),sS=(0,_.forwardRef)(function(e,t){return(0,E.jsx)("svg",{"data-sanity-icon":"warning-outline",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,E.jsx)("path",{d:"M12.5 9V13M12.5 16V14.5M14.2239 5.43058L20.727 16.486C21.5113 17.8192 20.55 19.5 19.0032 19.5H5.99683C4.45 19.5 3.48869 17.8192 4.27297 16.486L10.7761 5.43058C11.5494 4.11596 13.4506 4.11596 14.2239 5.43058Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),sE=["top","right","bottom","left"],sR=sE.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]),sV=Math.min,s_=Math.max,s$=Math.round,sA=Math.floor,sT=e=>({x:e,y:e}),sH={left:"right",right:"left",bottom:"top",top:"bottom"};function sI(e,t){return"function"==typeof e?e(t):e}function sP(e){return e.split("-")[0]}function sO(e){return e.split("-")[1]}function sB(e){return"x"===e?"y":"x"}function sN(e){return"y"===e?"height":"width"}function sW(e){let t=e[0];return"t"===t||"b"===t?"y":"x"}function sz(e,t,n){void 0===n&&(n=!1);let r=sO(e),i=sB(sW(e)),o=sN(i),s="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=sG(s)),[s,sG(s)]}function sD(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}let sF=["left","right"],sZ=["right","left"],sU=["top","bottom"],sq=["bottom","top"];function sG(e){let t=sP(e);return sH[t]+e.slice(t.length)}function sY(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function sX(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function sK(e,t,n){let r,{reference:i,floating:o}=e,s=sW(t),a=sB(sW(t)),l=sN(a),u=sP(t),d="y"===s,c=i.x+i.width/2-o.width/2,h=i.y+i.height/2-o.height/2,f=i[l]/2-o[l]/2;switch(u){case"top":r={x:c,y:i.y-o.height};break;case"bottom":r={x:c,y:i.y+i.height};break;case"right":r={x:i.x+i.width,y:h};break;case"left":r={x:i.x-o.width,y:h};break;default:r={x:i.x,y:i.y}}switch(sO(t)){case"start":r[a]-=f*(n&&d?-1:1);break;case"end":r[a]+=f*(n&&d?-1:1)}return r}async function sJ(e,t){var n;void 0===t&&(t={});let{x:r,y:i,platform:o,rects:s,elements:a,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:c="floating",altBoundary:h=!1,padding:f=0}=sI(t,e),p=sY(f),g=a[h?"floating"===c?"reference":"floating":c],m=sX(await o.getClippingRect
3({element:null==(n=await (null==o.isElement?void 0:o.isElement(g)))||n?g:g.contextElement||await (null==o.getDocumentElement?void 0:o.getDocumentElement(a.floating)),boundary:u,rootBoundary:d,strategy:l})),y="floating"===c?{x:r,y:i,width:s.floating.width,height:s.floating.height}:s.reference,v=await (null==o.getOffsetParent?void 0:o.getOffsetParent(a.floating)),w=await (null==o.isElement?void 0:o.isElement(v))&&await (null==o.getScale?void 0:o.getScale(v))||{x:1,y:1},b=sX(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:v,strategy:l}):y);return{top:(m.top-b.top+p.top)/w.y,bottom:(b.bottom-m.bottom+p.bottom)/w.y,left:(m.left-b.left+p.left)/w.x,right:(b.right-m.right+p.right)/w.x}}let sQ=async(e,t,n)=>{let{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:s}=n,a=s.detectOverflow?s:{...s,detectOverflow:sJ},l=await (null==s.isRTL?void 0:s.isRTL(t)),u=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:d,y:c}=sK(u,r,l),h=r,f=0,p={};for(let n=0;n<o.length;n++){let g=o[n];if(!g)continue;let{name:m,fn:y}=g,{x:v,y:w,data:b,reset:x}=await y({x:d,y:c,initialPlacement:r,placement:h,strategy:i,middlewareData:p,rects:u,platform:a,elements:{reference:e,floating:t}});d=null!=v?v:d,c=null!=w?w:c,p[m]={...p[m],...b},x&&f<50&&(f++,"object"==typeof x&&(x.placement&&(h=x.placement),x.rects&&(u=!0===x.rects?await s.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:d,y:c}=sK(u,h,l)),n=-1)}return{x:d,y:c,placement:h,strategy:i,middlewareData:p}};function s1(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function s0(e){return sE.some(t=>e[t]>=0)}let s5=new Set(["left","top"]);async function s2(e,t){let{placement:n,platform:r,elements:i}=e,o=await (null==r.isRTL?void 0:r.isRTL(i.floating)),s=sP(n),a=sO(n),l="y"===sW(n),u=s5.has(s)?-1:1,d=o&&l?-1:1,c=sI(t,e),{mainAxis:h,crossAxis:f,alignmentAxis:p}="number"==typeof c?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:c.mainAxis||0,crossAxis:c.crossAxis||0,alignmentAxis:c.alignmentAxis};return a&&"number"==typeof p&&(f="end"===a?-1*p:p),l?{x:f*d,y:h*u}:{x:h*u,y:f*d}}function s3(){return"u">typeof window}function s4(e){return s9(e)?(e.nodeName||"").toLowerCase():"#document"}function s6(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function s8(e){var t;return null==(t=(s9(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function s9(e){return!!s3()&&(e instanceof Node||e instanceof s6(e).Node)}function s7(e){return!!s3()&&(e instanceof Element||e instanceof s6(e).Element)}function ae(e){return!!s3()&&(e instanceof HTMLElement||e instanceof s6(e).HTMLElement)}function at(e){return!(!s3()||"u"<typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof s6(e).ShadowRoot)}function an(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=ad(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==i&&"contents"!==i}function ar(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}let ai=/transform|translate|scale|rotate|perspective|filter/,ao=/paint|layout|strict|content/,as=e=>!!e&&"none"!==e;function aa(e){let t=s7(e)?ad(e):e;return as(t.transform)||as(t.translate)||as(t.scale)||as(t.rotate)||as(t.perspective)||!al()&&(as(t.backdropFilter)||as(t.filter))||ai.test(t.willChange||"")||ao.test(t.contain||"")}function al(){return null==t&&(t="u">typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),t}function au(e){return/^(html|body|#document)$/.test(s4(e))}function ad(e){return s6(e).getComputedStyle(e)}function ac(e){return s7(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ah(e){if("html"===s4(e))return e;let t=e.assignedSlot||e.parentNode||at(e)&&e.host||s8(e);return at(t)?t.host:t}function af(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let i=function e(t){let n=ah(t);return au(n)?t.ownerDocument?t.ownerDocument.body:t.body:ae(n)&&an(n)?n:e(n)}(e),o=i===(null==(r=e.ownerDocument)?void 0:r.body),s=s6(i);if(!o)return t.concat(i,af(i,[],n));{let e=ap(s);
3return t.concat(s,s.visualViewport||[],an(i)?i:[],e&&n?af(e):[])}}function ap(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ag(e){let t=ad(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=ae(e),o=i?e.offsetWidth:n,s=i?e.offsetHeight:r,a=s$(n)!==o||s$(r)!==s;return a&&(n=o,r=s),{width:n,height:r,$:a}}function am(e){return s7(e)?e:e.contextElement}function ay(e){let t=am(e);if(!ae(t))return sT(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:o}=ag(t),s=(o?s$(n.width):n.width)/r,a=(o?s$(n.height):n.height)/i;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}let av=sT(0);function aw(e){let t=s6(e);return al()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:av}function ab(e,t,n,r){var i;void 0===t&&(t=!1),void 0===n&&(n=!1);let o=e.getBoundingClientRect(),s=am(e),a=sT(1);t&&(r?s7(r)&&(a=ay(r)):a=ay(e));let l=(void 0===(i=n)&&(i=!1),r&&(!i||r===s6(s))&&i)?aw(s):sT(0),u=(o.left+l.x)/a.x,d=(o.top+l.y)/a.y,c=o.width/a.x,h=o.height/a.y;if(s){let e=s6(s),t=r&&s7(r)?s6(r):r,n=e,i=ap(n);for(;i&&r&&t!==n;){let e=ay(i),t=i.getBoundingClientRect(),r=ad(i),o=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,s=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;u*=e.x,d*=e.y,c*=e.x,h*=e.y,u+=o,d+=s,i=ap(n=s6(i))}}return sX({width:c,height:h,x:u,y:d})}function ax(e,t){let n=ac(e).scrollLeft;return t?t.left+n:ab(s8(e)).left+n}function aC(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-ax(e,n),y:n.top+t.scrollTop}}function ak(e,t,n){var r;let i;if("viewport"===t)i=function(e,t){let n=s6(e),r=s8(e),i=n.visualViewport,o=r.clientWidth,s=r.clientHeight,a=0,l=0;if(i){o=i.width,s=i.height;let e=al();(!e||e&&"fixed"===t)&&(a=i.offsetLeft,l=i.offsetTop)}let u=ax(r);if(u<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,s=Math.abs(r.clientWidth-t.clientWidth-i);s<=25&&(o-=s)}else u<=25&&(o+=u);return{width:o,height:s,x:a,y:l}}(e,n);else if("document"===t){let t,n,o,s,a,l,u;r=s8(e),t=s8(r),n=ac(r),o=r.ownerDocument.body,s=s_(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),a=s_(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight),l=-n.scrollLeft+ax(r),u=-n.scrollTop,"rtl"===ad(o).direction&&(l+=s_(t.clientWidth,o.clientWidth)-s),i={width:s,height:a,x:l,y:u}}else if(s7(t)){let e,r,o,s,a,l;r=(e=ab(t,!0,"fixed"===n)).top+t.clientTop,o=e.left+t.clientLeft,s=ae(t)?ay(t):sT(1),a=t.clientWidth*s.x,l=t.clientHeight*s.y,i={width:a,height:l,x:o*s.x,y:r*s.y}}else{let n=aw(e);i={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return sX(i)}function aj(e){return"static"===ad(e).position}function aM(e,t){if(!ae(e)||"fixed"===ad(e).position)return null;if(t)return t(e);let n=e.offsetParent;return s8(e)===n&&(n=n.ownerDocument.body),n}function aL(e,t){var n;let r=s6(e);if(ar(e))return r;if(!ae(e)){let t=ah(e);for(;t&&!au(t);){if(s7(t)&&!aj(t))return t;t=ah(t)}return r}let i=aM(e,t);for(;i&&(n=i,/^(table|td|th)$/.test(s4(n)))&&aj(i);)i=aM(i,t);return i&&au(i)&&aj(i)&&!aa(i)?r:i||function(e){let t=ah(e);for(;ae(t)&&!au(t);){if(aa(t))return t;if(ar(t))break;t=ah(t)}return null}(e)||r}let aS=async function(e){let t=this.getOffsetParent||aL,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=ae(t),i=s8(t),o="fixed"===n,s=ab(e,!0,o,t),a={scrollLeft:0,scrollTop:0},l=sT(0);if(r||!r&&!o)if(("body"!==s4(t)||an(i))&&(a=ac(t)),r){let e=ab(t,!0,o,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else i&&(l.x=ax(i));o&&!r&&i&&(l.x=ax(i));let u=!i||r||o?sT(0):aC(i,a);return{x:s.left+a.scrollLeft-l.x-u.x,y:s.top+a.scrollTop-l.y-u.y,width:s.width,height:s.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},aE={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,o="fixed"===i,s=s8(r),a=!!t&&ar(t.floating);if(r===s||a&&o)return n;let l={scrollLeft:0,scrollTop:0},u=sT(1),d=sT(0),c=ae(r);if((c||!c&&!o)&&(("body"!==s4(r)||an(s))&&(l=ac(r)),c)){let e=ab(r);u=ay(r),d.x=e.x+r.clientLeft,d.y=e.y+r.clientTop}let h=!s||c||o?sT(0):aC(s,l);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+d.x+h.x,y:n.y*u.y-l.scrollTop*u.y+d.y+h.y}},getDocumentElement:s8,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,o=[..."clippingAncestors"===n?ar(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=af(e,[],!1).filter(e=>s7(e)&&"body"!==s4(e)),i=null,o="fixed"===ad(e).position,s=o?ah(e):e;for(;s7(s)&&!au(s);){let t=ad(s),n=aa(s);n||"fixed"!==t.position||(i=null),(o?n||i:!(!n&&"static"===t.position&&i&&("absolute"===i.position||"fixed"===i.position)||an(s)&&!n&&function e(t,n){let r=ah(t);return!(r===n||!s7(r)||au(r))&&("fixed"===ad(r).position||e(r,n))}(e,s)))?i=t:r=r.filter(e=>e!==s),s=ah(s)}return t.set(e,r),r}(t,this._c):[].concat(n),r],s=ak(t,o[0],i),a=s.top,l=s.right,u=s.bottom,d=s.left;for(let e=1;e<o.length;e++){let n=ak(t,o[e],i);a=s_(n.top,a),l=sV(n.right,l),u=sV(n.bottom,u),d=s_(n.left,d)}return{width:l-d,height:u-a,x:d,y:a}},getOffsetParent:aL,getElementRects:aS,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=ag(e);return{width:t,height:n}},getScale:ay,isElement:s7,isRTL:function(e){return"rtl"===ad(e).direction}};function aR(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function aV(e,t,n,r){let i;void 0===r&&(r={});let{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:u=!1}=r,d=am(e),c=o||s?[...d?af(d):[],...t?af(t):[]]:[];
3c.forEach(e=>{o&&e.addEventListener("scroll",n,{passive:!0}),s&&e.addEventListener("resize",n)});let h=d&&l?function(e,t){let n,r=null,i=s8(e);function o(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return!function s(a,l){void 0===a&&(a=!1),void 0===l&&(l=1),o();let u=e.getBoundingClientRect(),{left:d,top:c,width:h,height:f}=u;if(a||t(),!h||!f)return;let p={rootMargin:-sA(c)+"px "+-sA(i.clientWidth-(d+h))+"px "+-sA(i.clientHeight-(c+f))+"px "+-sA(d)+"px",threshold:s_(0,sV(1,l))||1},g=!0;function m(t){let r=t[0].intersectionRatio;if(r!==l){if(!g)return s();r?s(!1,r):n=setTimeout(()=>{s(!1,1e-7)},1e3)}1!==r||aR(u,e.getBoundingClientRect())||s(),g=!1}try{r=new IntersectionObserver(m,{...p,root:i.ownerDocument})}catch(e){r=new IntersectionObserver(m,p)}r.observe(e)}(!0),o}(d,n):null,f=-1,p=null;a&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===d&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;null==(e=p)||e.observe(t)})),n()}),d&&!u&&p.observe(d),t&&p.observe(t));let g=u?ab(e):null;return u&&function t(){let r=ab(e);g&&!aR(g,r)&&n(),g=r,i=requestAnimationFrame(t)}(),n(),()=>{var e;c.forEach(e=>{o&&e.removeEventListener("scroll",n),s&&e.removeEventListener("resize",n)}),null==h||h(),null==(e=p)||e.disconnect(),p=null,u&&cancelAnimationFrame(i)}}let a_=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:i,rects:o,platform:s,elements:a,middlewareData:l}=t,{element:u,padding:d=0}=sI(e,t)||{};if(null==u)return{};let c=sY(d),h={x:n,y:r},f=sB(sW(i)),p=sN(f),g=await s.getDimensions(u),m="y"===f,y=m?"clientHeight":"clientWidth",v=o.reference[p]+o.reference[f]-h[f]-o.floating[p],w=h[f]-o.reference[f],b=await (null==s.getOffsetParent?void 0:s.getOffsetParent(u)),x=b?b[y]:0;x&&await (null==s.isElement?void 0:s.isElement(b))||(x=a.floating[y]||o.floating[p]);let C=x/2-g[p]/2-1,k=sV(c[m?"top":"left"],C),j=sV(c[m?"bottom":"right"],C),M=x-g[p]-j,L=x/2-g[p]/2+(v/2-w/2),S=s_(k,sV(L,M)),E=!l.arrow&&null!=sO(i)&&L!==S&&o.reference[p]/2-(L<k?k:j)-g[p]/2<0,R=E?L<k?L-k:L-M:0;return{[f]:h[f]+R,data:{[f]:S,centerOffset:L-S-R,...E&&{alignmentOffset:R}},reset:E}}});var a$="u">typeof document?_.useLayoutEffect:function(){};function aA(e,t){let n,r,i;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!aA(e[r],t[r]))return!1;return!0}if((n=(i=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,i[r]))return!1;for(r=n;0!=r--;){let n=i[r];if(("_owner"!==n||!e.$$typeof)&&!aA(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function aT(e){return"u"<typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function aH(e,t){let n=aT(e);return Math.round(t*n)/n}function aI(e){let t=_.useRef(e);return a$(()=>{t.current=e}),t}function aP(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:s}={},transform:a=!0,whileElementsMounted:l,open:u}=e,[d,c]=_.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,f]=_.useState(r);aA(h,r)||f(r);let[p,g]=_.useState(null),[m,y]=_.useState(null),v=_.useCallback(e=>{e!==C.current&&(C.current=e,g(e))},[]),w=_.useCallback(e=>{e!==k.current&&(k.current=e,y(e))},[]),b=o||p,x=s||m,C=_.useRef(null),k=_.useRef(null),j=_.useRef(d),M=null!=l,L=aI(l),S=aI(i),E=aI(u),R=_.useCallback(()=>{var e,r;let i,o,s;if(!C.current||!k.current)return;let a={placement:t,strategy:n,middleware:h};S.current&&(a.platform=S.current),(e=C.current,r=k.current,i=new Map,s={...(o={platform:aE,...a}).platform,_c:i},sQ(e,r,{...o,platform:s})).then(e=>{let t={...e,isPositioned:!1!==E.current};V.current&&!aA(j.current,t)&&(j.current=t,$.flushSync(()=>{c(t)}))})},[h,t,n,S,E]);a$(()=>{!1===u&&j.current.isPositioned&&(j.current.isPositioned=!1,c(e=>({...e,isPositioned:!1})))},[u]);let V=_.useRef(!1);a$(()=>(V.current=!0,()=>{V.current=!1}),[]),a$(()=>{if(b&&(C.current=b),x&&(k.current=x),b&&x){if(L.current)return L.current(b,x,R);R()}},[b,x,R,L,M]);let A=_.useMemo(()=>({reference:C,floating:k,setReference:v,setFloating:w}),[v,w]),T=_.useMemo(()=>({reference:b,floating:x}),[b,x]),H=_.useMemo(()=>{let e={position:n,left:0,top:0};if(!T.floating)return e;let t=aH(T.floating,d.x),r=aH(T.floating,d.y);return a?{...e,transform:"translate("+t+"px, "+r+"px)",...aT(T.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,a,T.floating,d.x,d.y]);return _.useMemo(()=>({...d,update:R,refs:A,elements:T,floatingStyles:H}),[d,R,A,T,H])}let aO=(e,t)=>
3{var n;let r=(void 0===(n=e)&&(n=0),{name:"offset",options:n,async fn(e){var t,r;let{x:i,y:o,placement:s,middlewareData:a}=e,l=await s2(e,n);return s===(null==(t=a.offset)?void 0:t.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:i+l.x,y:o+l.y,data:{...l,placement:s}}}});return{name:r.name,fn:r.fn,options:[e,t]}},aB=(e,t)=>{var n;let r=(void 0===(n=e)&&(n={}),{name:"shift",options:n,async fn(e){let{x:t,y:r,placement:i,platform:o}=e,{mainAxis:s=!0,crossAxis:a=!1,limiter:l={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...u}=sI(n,e),d={x:t,y:r},c=await o.detectOverflow(e,u),h=sW(sP(i)),f=sB(h),p=d[f],g=d[h];if(s){let e="y"===f?"top":"left",t="y"===f?"bottom":"right",n=p+c[e],r=p-c[t];p=s_(n,sV(p,r))}if(a){let e="y"===h?"top":"left",t="y"===h?"bottom":"right",n=g+c[e],r=g-c[t];g=s_(n,sV(g,r))}let m=l.fn({...e,[f]:p,[h]:g});return{...m,data:{x:m.x-t,y:m.y-r,enabled:{[f]:s,[h]:a}}}}});return{name:r.name,fn:r.fn,options:[e,t]}},aN=(e,t)=>{var n;let r=(void 0===(n=e)&&(n={}),{name:"flip",options:n,async fn(e){var t,r,i,o,s;let a,l,u,{placement:d,middlewareData:c,rects:h,initialPlacement:f,platform:p,elements:g}=e,{mainAxis:m=!0,crossAxis:y=!0,fallbackPlacements:v,fallbackStrategy:w="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:x=!0,...C}=sI(n,e);if(null!=(t=c.arrow)&&t.alignmentOffset)return{};let k=sP(d),j=sW(f),M=sP(f)===f,L=await (null==p.isRTL?void 0:p.isRTL(g.floating)),S=v||(M||!x?[sG(f)]:(a=sG(f),[sD(f),a,sD(a)])),E="none"!==b;!v&&E&&S.push(...(l=sO(f),u=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?sZ:sF;return t?sF:sZ;case"left":case"right":return t?sU:sq;default:return[]}}(sP(f),"start"===b,L),l&&(u=u.map(e=>e+"-"+l),x&&(u=u.concat(u.map(sD)))),u));let R=[f,...S],V=await p.detectOverflow(e,C),_=[],$=(null==(r=c.flip)?void 0:r.overflows)||[];if(m&&_.push(V[k]),y){let e=sz(d,h,L);_.push(V[e[0]],V[e[1]])}if($=[...$,{placement:d,overflows:_}],!_.every(e=>e<=0)){let e=((null==(i=c.flip)?void 0:i.index)||0)+1,t=R[e];if(t&&("alignment"!==y||j===sW(t)||$.every(e=>sW(e.placement)!==j||e.overflows[0]>0)))return{data:{index:e,overflows:$},reset:{placement:t}};let n=null==(o=$.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:o.placement;if(!n)switch(w){case"bestFit":{let e=null==(s=$.filter(e=>{if(E){let t=sW(e.placement);return t===j||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:s[0];e&&(n=e);break}case"initialPlacement":n=f}if(d!==n)return{reset:{placement:n}}}return{}}});return{name:r.name,fn:r.fn,options:[e,t]}},aW=(e,t)=>{let n={name:"arrow",options:e,fn(t){let{element:n,padding:r}="function"==typeof e?e(t):e;return n&&({}).hasOwnProperty.call(n,"current")?null!=n.current?a_({element:n.current,padding:r}).fn(t):{}:n?a_({element:n,padding:r}).fn(t):{}}};return{name:n.name,fn:n.fn,options:[e,t]}},az=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],aD=new Set([...az,"pathRotation"]),aF=(e,t,n)=>n>t?t:n<e?e:n,aZ={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},aU={...aZ,transform:e=>aF(0,1,e)},aq={...aZ,default:1},aG=e=>Math.round(1e5*e)/1e5,aY=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,aX=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,aK=(e,t)=>n=>!!("string"==typeof n&&aX.test(n)&&n.startsWith(e)||t&&null!=n&&Object.prototype.hasOwnProperty.call(n,t)),aJ=(e,t,n)=>r=>{if("string"!=typeof r)return r;let[i,o,s,a]=r.match(aY);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(s),alpha:void 0!==a?parseFloat(a):1}},aQ={...aZ,transform:e=>Math.round(aF(0,255,e))},a1={test:aK("rgb","red"),parse:aJ("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+aQ.transform(e)+", "+aQ.transform(t)+", "+aQ.transform(n)+", "+aG(aU.transform(r))+")"},a0={test:aK("#"),parse:function(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alph
3a:i?parseInt(i,16)/255:1}},transform:a1.transform},a5=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),a2=a5("deg"),a3=a5("%"),a4=a5("px"),a6=a5("vh"),a8=a5("vw"),a9={...a3,parse:e=>a3.parse(e)/100,transform:e=>a3.transform(100*e)},a7={test:aK("hsl","hue"),parse:aJ("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+a3.transform(aG(t))+", "+a3.transform(aG(n))+", "+aG(aU.transform(r))+")"},le={test:e=>a1.test(e)||a0.test(e)||a7.test(e),parse:e=>a1.test(e)?a1.parse(e):a7.test(e)?a7.parse(e):a0.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?a1.transform(e):a7.transform(e),getAnimatableNone:e=>{let t=le.parse(e);return t.alpha=0,le.transform(t)}},lt=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,ln="number",lr="color",li=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function lo(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],o=0,s=t.replace(li,e=>(le.test(e)?(r.color.push(o),i.push(lr),n.push(le.parse(e))):e.startsWith("var(")?(r.var.push(o),i.push("var"),n.push(e)):(r.number.push(o),i.push(ln),n.push(parseFloat(e))),++o,"${}")).split("${}");return{values:n,split:s,indexes:r,types:i}}function ls({split:e,types:t}){let n=e.length;return r=>{let i="";for(let o=0;o<n;o++)if(i+=e[o],void 0!==r[o]){let e=t[o];e===ln?i+=aG(r[o]):e===lr?i+=le.transform(r[o]):i+=r[o]}return i}}let la={test:function(e){return isNaN(e)&&"string"==typeof e&&(e.match(aY)?.length||0)+(e.match(lt)?.length||0)>0},parse:function(e){return lo(e).values},createTransformer:function(e){return ls(lo(e))},getAnimatableNone:function(e){let t=lo(e);return ls(t)(t.values.map((e,n)=>((e,t)=>"number"==typeof e?t?.trim().endsWith("/")?e:0:"number"==typeof e?0:le.test(e)?le.getAnimatableNone(e):e)(e,t.split[n])))}},ll=new Set(["brightness","contrast","saturate","opacity"]);function lu(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[r]=n.match(aY)||[];if(!r)return e;let i=n.replace(r,""),o=+!!ll.has(t);return r!==n&&(o*=100),t+"("+o+i+")"}let ld=/\b([a-z-]*)\(.*?\)/gu,lc={...la,getAnimatableNone:e=>{let t=e.match(ld);return t?t.map(lu).join(" "):e}},lh={...la,getAnimatableNone:e=>{let t=la.parse(e);return la.createTransformer(e)(t.map(e=>"number"==typeof e?0:"object"==typeof e?{...e,alpha:1}:e))}},lf={...aZ,transform:Math.round},lp={borderWidth:a4,borderTopWidth:a4,borderRightWidth:a4,borderBottomWidth:a4,borderLeftWidth:a4,borderRadius:a4,borderTopLeftRadius:a4,borderTopRightRadius:a4,borderBottomRightRadius:a4,borderBottomLeftRadius:a4,width:a4,maxWidth:a4,height:a4,maxHeight:a4,top:a4,right:a4,bottom:a4,left:a4,inset:a4,insetBlock:a4,insetBlockStart:a4,insetBlockEnd:a4,insetInline:a4,insetInlineStart:a4,insetInlineEnd:a4,padding:a4,paddingTop:a4,paddingRight:a4,paddingBottom:a4,paddingLeft:a4,paddingBlock:a4,paddingBlockStart:a4,paddingBlockEnd:a4,paddingInline:a4,paddingInlineStart:a4,paddingInlineEnd:a4,margin:a4,marginTop:a4,marginRight:a4,marginBottom:a4,marginLeft:a4,marginBlock:a4,marginBlockStart:a4,marginBlockEnd:a4,marginInline:a4,marginInlineStart:a4,marginInlineEnd:a4,fontSize:a4,backgroundPositionX:a4,backgroundPositionY:a4,rotate:a2,pathRotation:a2,rotateX:a2,rotateY:a2,rotateZ:a2,scale:aq,scaleX:aq,scaleY:aq,scaleZ:aq,skew:a2,skewX:a2,skewY:a2,distance:a4,translateX:a4,translateY:a4,translateZ:a4,x:a4,y:a4,z:a4,perspective:a4,transformPerspective:a4,opacity:aU,originX:a9,originY:a9,originZ:a4,zIndex:lf,fillOpacity:aU,strokeOpacity:aU,numOctaves:lf},lg={...lp,color:le,backgroundColor:le,outlineColor:le,fill:le,stroke:le,borderColor:le,borderTopColor:le,borderRightColor:le,borderBottomColor:le,borderLeftColor:le,filter:lc,WebkitFilter:lc,mask:lh,WebkitMask:lh},lm=e=>lg[e],ly=()=>({translate:0,scale:1,origin:0,originPoint:0}),lv=()=>({x:ly(),y:ly()}),lw=()=>({min:0,max:0}),lb=()=>({x:lw(),y:lw()}),lx=e=>!!(e&&e.getVelocity),lC=new Set(["width","height","top","left","right","bottom",...az]),lk=e=>t=>t.test(e),lj=[aZ,a4,a3,a2,a8,a6,{test:e=>"auto"===e,parse:e=>e}],lM=e=>lj.find(lk(e)),lL=()=>{},lS=()=>{};eq.default;let lE=e=>t=>"string"==typeof t&&t.startsWith(e),lR=lE("--"),lV=lE("var(--"),l_=e=>!!lV(e)&&l$.test(e.split("/*")[0].trim()),l$=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function lA(e){return"string"==typeof e&&e.split("/*")[0].includes("var(--")}let lT=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,lH=e=>180*e/Math.PI,lI=e=>lO(lH(Math.atan2(e[1],e[0]))),lP={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:lI,rotateZ:lI,skewX:e=>lH(Math.atan(e[1])),skewY:e=>lH(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},lO=e=>((e%=360)<0&&(e+=360),e),lB=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),lN=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),lW={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:lB,scaleY:lN,scale:e=>(lB(e)+lN(e))/2,rotateX:e=>lO(lH(Math.atan2(e[6],e[5]))),rotateY:e=>lO(lH(Math.atan2(-e[2],e[0]))),rotateZ:lI,rotate:lI,skewX:e=>lH(Math.atan(e[4])),skewY:e=>lH(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function lz(e){return+!!e.includes("scale")}function lD(e,t){let n,r;if(!e||"none"===e)return lz(t);let i=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(i)n=lW,r=i;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);n=lP,r=t}if(!r)return lz(t);let o=n[t],s=r[1].split(",").map(lF);return"function"==typeof o?o(s):s[o]}function lF(e){return parseFloat(e.trim())}let lZ=e=>e===aZ||e===a4,lU=new Set(["x","y","z"]),lq=az.filter(e=>!lU.has(e)),lG={width:({x:e},{paddingLeft:t="0",paddingRight:n="0",boxSizing:r})=>{let i=e.max-e.min;return"border-box"===r?i:i-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t="0",paddingBottom:n="0",boxSizing:r})=>{let i=e.max-e.min;return"border-box"===r?i:i-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>lD(t,"x"),y:(e,{transform:t})=>lD(t,"y")};lG.translateX=lG.x,lG.translateY=lG.y;let lY=e=>e,lX={},lK=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function lJ(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,s=lK.reduce((e,n)=>(e[n]=function(e,t){let n=new Set,r=new Set,i=!1,o=!1,s=new WeakSet,a={delta:0,timestamp:0,isProcessing:!1},l=0;
3function u(t){s.has(t)&&(d.schedule(t),e()),l++,t(a)}let d={schedule:(e,t=!1,o=!1)=>{let a=o&&i?n:r;return t&&s.add(e),a.add(e),e},cancel:e=>{r.delete(e),s.delete(e)},process:e=>{if(a=e,i){o=!0;return}i=!0;let s=n;n=r,r=s,n.forEach(u),t,l=0,n.clear(),i=!1,o&&(o=!1,d.process(e))}};return d}(o,t?n:void 0),e),{}),{setup:a,read:l,resolveKeyframes:u,preUpdate:d,update:c,preRender:h,render:f,postRender:p}=s,g=()=>{let o=lX.useManualTiming,s=o?i.timestamp:performance.now();n=!1,o||(i.delta=r?1e3/60:Math.max(Math.min(s-i.timestamp,40),1)),i.timestamp=s,i.isProcessing=!0,a.process(i),l.process(i),u.process(i),d.process(i),c.process(i),h.process(i),f.process(i),p.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(g))};return{schedule:lK.reduce((t,o)=>{let a=s[o];return t[o]=(t,o=!1,s=!1)=>(!n&&(n=!0,r=!0,i.isProcessing||e(g)),a.schedule(t,o,s)),t},{}),cancel:e=>{for(let t=0;t<lK.length;t++)s[lK[t]].cancel(e)},state:i,steps:s}}let{schedule:lQ,cancel:l1,state:l0,steps:l5}=lJ("u">typeof requestAnimationFrame?requestAnimationFrame:lY,!0),l2=new Set,l3=!1,l4=!1,l6=!1;function l8(){if(l4){let e=Array.from(l2).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t,r=(t=[],lq.forEach(n=>{let r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(+!!n.startsWith("scale")))}),t);r.length&&(n.set(e,r),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}l4=!1,l3=!1,l2.forEach(e=>e.complete(l6)),l2.clear()}function l9(){l2.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(l4=!0)})}class l7{constructor(e,t,n,r,i,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(l2.add(this),l3||(l3=!0,lQ.read(l9),lQ.resolveKeyframes(l8))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(null===e[0]){let i=r?.get(),o=e[e.length-1];if(void 0!==i)e[0]=i;else if(n&&t){let r=n.readValue(t,o);null!=r&&(e[0]=r)}void 0===e[0]&&(e[0]=o),r&&void 0===i&&r.set(e[0])}for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),l2.delete(this)}cancel(){"scheduled"===this.state&&(l2.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}let ue=new Set([lc,lh]);function ut(e,t){let n=lm(e);return ue.has(n)||(n=la),n.getAnimatableNone?n.getAnimatableNone(t):void 0}let un=new Set(["auto","none","0"]);class ur extends l7{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if("string"==typeof r&&l_(r=r.trim())){let i=function e(t,n,r=1){lS(r<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[i,o]=function(e){let t=lT.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}(t);if(!i)return;let s=window.getComputedStyle(n).getPropertyValue(i);if(s){let e=s.trim();return/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e)?parseFloat(e):e}return l_(o)?e(o,n,r+1):o}(r,t.current);void 0!==i&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!lC.has(n)||2!==e.length)return;let[r,i]=e,o=lM(r),s=lM(i);if(lA(r)!==lA(i)&&lG[n]){this.needsMeasurement=!0;return}if(o!==s)if(lZ(o)&&lZ(s))for(let t=0;t<e.length;t++){let n=e[t];"string"==typeof n&&(e[t]=parseFloat(n))}else lG[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(null===e[t]||function(e){if("number"==typeof e)return 0===e;if(null===e)return!0;return"none"===e||"0"===e||/^0[^.\s]+$/u.test(e)}(e[t]))&&n.push(t);n.length&&function(e,t,n){let r,i=0;for(;i<e.length&&!r;){let t=e[i];"string"==typeof t&&!un.has(t)&&lo(t).values.length&&(r=e[i]),i++}if(r&&n)for(let i of t)e[i]=ut(n,r)}(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=lG[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let r=t[t.length-1];void 0!==r&&e.getValue(n,r).jump(r,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let r=e.getValue(t);r&&r.jump(this.measuredOrigin,!1);let i=n.length-1,o=n[i];n[i]=lG[t](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==o&&void 0===this.finalKeyframe&&(this.finalKeyframe=o),this.removedTransforms?.length&&this.removedTransforms.forEac
3h(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}}let ui=e=>1e3*e;function uo(e,t){-1===e.indexOf(t)&&e.push(t)}function us(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}class ua{constructor(){this.subscriptions=[]}add(e){return uo(this.subscriptions,e),()=>us(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function ul(e,t,n){t.startsWith("--")?e.style.setProperty(t,n):e.style[t]=n}function uu(e){let t;return()=>(void 0===t&&(t=e()),t)}let ud={};function uc(e,t){let n=uu(e);return()=>ud[t]??n()}let uh=uc(()=>void 0!==window.ScrollTimeline,"scrollTimeline"),uf=e=>null!==e;function up(e,{repeat:t,repeatType:n="loop"},r,i=1){let o=e.filter(uf),s=i<0||t&&"loop"!==n&&t%2==1?0:o.length-1;return s&&void 0!==r?r:o[s]}class ug{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}}let um={layout:0,mainThread:0,waapi:0},uy=e=>Array.isArray(e)&&"number"==typeof e[0],uv=uc(()=>{try{document.createElement("div").animate({opacity:0}
3,{easing:"linear(0, 1)"})}catch(e){return!1}return!0},"linearEasing"),uw=(e,t,n=10)=>{let r="",i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(1e4*e(t/(i-1)))/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},ub=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,ux={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ub([0,.65,.55,1]),circOut:ub([.55,0,1,.45]),backIn:ub([.31,.01,.66,-.59]),backOut:ub([.33,1.53,.69,.99])};function uC(e){return"function"==typeof e&&"applyToOptions"in e}class uk extends ug{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;const{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:o=!1,finalKeyframe:s,onComplete:a}=e;this.isPseudoElement=!!i,this.allowFlatten=o,this.options=e,lS("string"!=typeof e.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");const l=function({type:e,...t}){return uC(e)&&uv()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}(e);this.animation=function(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:s="loop",ease:a="easeOut",times:l}={},u){let d={[t]:n};l&&(d.offset=l);let c=function e(t,n){if(t)return"function"==typeof t?uv()?uw(t,n):"ease-out":uy(t)?ub(t):Array.isArray(t)?t.map(t=>e(t,n)||ux.easeOut):ux[t]}(a,i);Array.isArray(c)&&(d.easing=c);let h={delay:r,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:o+1,direction:"reverse"===s?"alternate":"normal"};u&&(h.pseudoElement=u);let f=e.animate(d,h);return f}(t,n,r,l,i),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=up(r,this.options,s,this.speed);this.updateMotionValue&&this.updateMotionValue(e),ul(t,n,e),this.animation.cancel()}a?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(e){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;"idle"!==e&&"finished"!==e&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){return Number(this.animation.effect?.getComputedTiming?.().duration||0)/1e3}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+e/1e3}get time(){return(Number(this.animation.currentTime)||0)/1e3}set time(e){let t=null!==this.finishedTime;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=ui(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:t,rangeEnd:n,observe:r}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&uh())?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),n&&(this.animation.rangeEnd=n),lY):r(this)}}let uj=new Set(["opacity","clipPath","filter","transform"]),{schedule:uM}=lJ(queueMicrotask,!1);function uL(){n=void 0}let uS={now:()=>(void 0===n&&uS.set(l0.isProcessing||lX.useManualTiming?l0.timestamp:performance.now()),n),set:e=>{n=e,queueMicrotask(uL)}},uE=(e,t)=>t?1e3/t*e:0,uR;class uV{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=uS.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=uS.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new ua);let n=this.events[e].add(t);return"change"===e?()=>{n(),lQ.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}
3setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return uR&&uR.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=uS.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return uE(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function u_(e,t){return new uV(e,t)}let u$=[...lj,le,la],uA=new WeakMap;function uT(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}function uH(e){return"string"==typeof e||Array.isArray(e)}let uI=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],uP=["initial",...uI];function uO(e){return uT(e.animate)||uP.some(t=>uH(e[t]))}function uB(e){return!!(uO(e)||e.variants)}let uN={current:null},uW={current:!1},uz="u">typeof window;function uD(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function uF(e,t,n,r){if("function"==typeof t){let[i,o]=uD(r);t=t(void 0!==n?n:e.custom,i,o)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){let[i,o]=uD(r);t=t(void 0!==n?n:e.custom,i,o)}return t}let uZ=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],uU={};class uq{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,skipAnimations:i,blockInitialAnimation:o,visualState:s},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=l7,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=uS.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,lQ.render(this.render,!1,!0))};const{latestValues:l,renderState:u}=s;this.latestValues=l,this.baseTarget={...l},this.initialValues=t.initial?{...l}:{},this.renderState=u,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=i,this.options=a,this.blockInitialAnimation=!!o,this.isControllingVariants=uO(t),this.isVariantNode=uB(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:d,...c}=this.scrapeMotionValuesFromProps(t,{},this);for(const e in c){const t=c[e];void 0!==l[e]&&lx(t)&&t.set(l[e])}}mount(e){if(this.hasBeenMounted)for(let e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];this.current=e,uA.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEac
3h((e,t)=>this.bindToMotionValue(t,e)),"never"===this.reducedMotionConfig?this.shouldReduceMotion=!1:"always"===this.reducedMotionConfig?this.shouldReduceMotion=!0:(uW.current||function(){if(uW.current=!0,uz)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>uN.current=e.matches;e.addEventListener("change",t),t()}else uN.current=!1}(),this.shouldReduceMotion=uN.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){for(let e in this.projection&&this.projection.unmount(),l1(this.notifyUpdate),l1(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this),this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){let n;if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&uj.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:o,duration:s}=t.accelerate,a=new uk({element:this.current,name:e,keyframes:r,times:i,ease:o,duration:ui(s)}),l=n(a);this.valueSubscriptions.set(e,()=>{l(),a.cancel()});return}let r=aD.has(e);r&&this.onBindTransform&&this.onBindTransform();let i=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&lQ.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});"u">typeof window&&window.MotionCheckAppearSync&&(n=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{i(),n&&n()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in uU){let t=uU[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):lb()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<uZ.length;t++){let n=uZ[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e["on"+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=function(e,t,n){for(let r in t){let i=t[r],o=n[r];if(lx(i))e.addValue(r,i);else if(lx(o))e.addValue(r,u_(i,{owner:e}));else if(o!==i)if(e.hasValue(r)){let t=e.getValue(r);!0===t.liveStyle?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,u_(void 0!==t?t:i,{owner:e}))}}for(let r in n)void 0===t[r]&&e.removeValue(r);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=u_(null===t?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=void 0===this.latestValues[e]&&this.current?this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];if(null!=n){let r,i;if("string"==typeof n&&(r=n,/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(r)||(i=n,/^0[^.\s]+$/u.test(i))))n=parseFloat(n);else{let r;r=n,!u$.find(lk(r))&&la.test(t)&&(n=ut(e,t))}this.setBaseTarget(e,lx(n)?n.get():n)}return lx(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let t,{initial:n}=this.props;if("string"==typeof n||"object"==typeof n){let r=uF(this.props,n,this.presenceContext?.custom);r&&(t=r[e])}if(n&&void 0!==t)return t;let r=this.getBaseTargetFromProps(this.props,e);return void 0===r||lx(r)?void 0!==this.initialValues[e]&&void 0===t?void 0:this.baseTarget[e]:r}on(e,t){return this.events[e]||(this.events[e]=new ua),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){uM.render(this.render)}}class uG extends uq{constructor(){super(...arguments),this.KeyframeResolver=ur}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){let n=e.style;return n?n[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;lx(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}}function uY(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}let uX=(e,t)=>t&&"number"==typeof e?t.transform(e):e,uK={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},uJ=az.length;function uQ(e,t,n){let{style:r,vars:i,transformOrigin:o}=e,s=!1,a=!1;for(let e in t){let n=t[e];if(aD.has(e)){s=!0;continue}if(lR(e)){i[e]=n;continue}{let t=uX(n,lp[e]);e.startsWith("origin")?(a=!0,o[e]=t):r[e]=t}}if(!t.transform&&(s||n?r.transform=function(e,t,n){let r="",i=!0;for(let o=0;o<uJ;o++){let s=az[o],a=e[s];if(void 0===a)continue;let l=!0;if("number"==typeof a)l=a===+!!s.startsWith("scale");else{let e=parseFloat(a);l=s.startsWith("scale")?1===e:0===e}if(!l||n){let e=uX(a,lp[s]);if(!l){i=!1;let t=uK[s]||s;r+=`${t}(${e}) `}n&&(t[s]=e)}}let o=e.pathRotation;return o&&(i=!1,r+=`rotate(${uX(o,lp.pathRotation)}) `),r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}(t,e.transform,n):r.transform&&(r.transform="none")),a){let{originX:e="50%",originY:t="50%",originZ:n=0}=o;r.transformOrigin=`${e} ${t} ${n}`}}let u1={offset:"stroke-dashoffset",array:"stroke-dasharray"},u0={offset:"strokeDashoffset",array:"strokeDasharray"},u5=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function u2(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:o=1,pathOffset:s=0,...a}
3,l,u,d){if(uQ(e,a,u),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:c,style:h}=e;for(let e of(c.transform&&(h.transform=c.transform,delete c.transform),(h.transform||c.transformOrigin)&&(h.transformOrigin=c.transformOrigin??"50% 50%",delete c.transformOrigin),h.transform&&(h.transformBox=d?.transformBox??"fill-box",delete c.transformBox),u5))void 0!==c[e]&&(h[e]=c[e],delete c[e]);void 0!==t&&(c.x=t),void 0!==n&&(c.y=n),void 0!==r&&(c.scale=r),void 0!==i&&function(e,t,n=1,r=0,i=!0){e.pathLength=1;let o=i?u1:u0;e[o.offset]=`${-r}`,e[o.array]=`${t} ${n}`}(c,i,o,s,!1)}let u3=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),u4=e=>"string"==typeof e&&"svg"===e.toLowerCase();function u6(e,{style:t,vars:n},r,i){let o,s=e.style;for(o in t)s[o]=t[o];for(o in i?.applyProjectionStyles(s,r),n)s.setProperty(o,n[o])}function u8(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let u9={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e)if(!a4.test(e))return e;else e=parseFloat(e);let n=u8(e,t.target.x),r=u8(e,t.target.y);return`${n}% ${r}%`}},u7=(e,t,n)=>e+(t-e)*n,de={borderRadius:{...u9,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:u9,borderTopRightRadius:u9,borderBottomLeftRadius:u9,borderBottomRightRadius:u9,boxShadow:{correct:(e,{treeScale:t,projectionDelta:n})=>{let r=la.parse(e);if(r.length>5)return e;let i=la.createTransformer(e),o=+("number"!=typeof r[0]),s=n.x.scale*t.x,a=n.y.scale*t.y;r[0+o]/=s,r[1+o]/=a;let l=u7(s,a,.5);return"number"==typeof r[2+o]&&(r[2+o]/=l),"number"==typeof r[3+o]&&(r[3+o]/=l),i(r)}}};function dt(e,{layout:t,layoutId:n}){return aD.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!de[e]||"opacity"===e)}function dn(e,t,n){let r=e.style,i=t?.style,o={};if(!r)return o;for(let t in r)(lx(r[t])||i&&lx(i[t])||dt(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(o[t]=r[t]);return o}function dr(e,t,n){let r=dn(e,t,n);for(let n in e)(lx(e[n])||lx(t[n]))&&(r[-1!==az.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n]=e[n]);return r}class di extends uG{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=lb}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(aD.has(t)){let e=lm(t);return e&&e.default||0}return t=u3.has(t)?t:uY(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return dr(e,t,n)}
3build(e,t,n){u2(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){for(let n in u6(e,t,void 0,r),t.attrs)e.setAttribute(u3.has(n)?n:uY(n),t.attrs[n])}mount(e){this.isSVGTag=u4(e.tagName),super.mount(e)}}function ds({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function da(e){return void 0===e||1===e}function dl({scale:e,scaleX:t,scaleY:n}){return!da(e)||!da(t)||!da(n)}function du(e){return dl(e)||dd(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function dd(e){var t,n;return(t=e.x)&&"0%"!==t||(n=e.y)&&"0%"!==n}function dc(e,t,n,r,i){return void 0!==i&&(e=r+i*(e-r)),r+n*(e-r)+t}function dh(e,t=0,n=1,r,i){e.min=dc(e.min,t,n,r,i),e.max=dc(e.max,t,n,r,i)}function df(e,{x:t,y:n}){dh(e.x,t.translate,t.scale,t.originPoint),dh(e.y,n.translate,n.scale,n.originPoint)}function dp(e,t){e.min+=t,e.max+=t}function dg(e,t,n,r,i=.5){let o=u7(e.min,e.max,i);dh(e,t,n,o,r)}function dm(e,t){return"string"==typeof e?parseFloat(e)/100*(t.max-t.min):e}function dy(e,t,n){let r=n??e;dg(e.x,dm(t.x,r.x),t.scaleX,t.scale,t.originX),dg(e.y,dm(t.y,r.y),t.scaleY,t.scale,t.originY)}function dv(e,t){return ds(function(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}class dw extends uG{constructor(){super(...arguments),this.type="html",this.renderInstance=u6}readValueFromInstance(e,t){if(aD.has(t))return this.projection?.isProjecting?lz(t):((e,t)=>{let{transform:n="none"}=getComputedStyle(e);return lD(n,t)})(e,t);{let n=window.getComputedStyle(e),r=(lR(t)?n.getPropertyValue(t):n[t])||0;return"string"==typeof r?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return dv(e,t)}build(e,t,n){uQ(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return dn(e,t,n)}}let db=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function dx(e){if("string"!=typeof e||e.includes("-"));else if(db.indexOf(e)>-1||/[A-Z]/u.test(e))return!0;return!1}let dC=(0,_.createContext)({}),dk=(0,_.createContext)({strict:!1}),dj=(0,_.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),dM=(0,_.createContext)({});function dL(e){return Array.isArray(e)?e.join(" "):e}let dS=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function dE(e,t,n){for(let r in t)lx(t[r])||dt(r,n)||(e[r]=t[r])}let dR=()=>({...dS(),attrs:{}}),dV=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function d_(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||dV.has(e)}let d$=e=>!d_(e);try{m=e.r(34537).default,"function"==typeof m&&(d$=e=>e.startsWith("on")?!d_(e):m(e))}catch{}function dA(e){return lx(e)?e.get():e}let dT=(0,_.createContext)(null);function dH(e){let t=(0,_.useRef)(null);return null===t.current&&(t.current=e()),t.current}let dI=e=>(t,n)=>{let r=(0,_.useContext)(dM),i=(0,_.useContext)(dT),o=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:function(e,t,n,r){let i={},o=r(e,{});for(let e in o)i[e]=dA(o[e]);let{initial:s,animate:a}=e,l=uO(e),u=uB(e);t&&u&&!l&&!1!==e.inherit&&(void 0===s&&(s=t.initial),void 0===a&&(a=t.animate));let d=!!n&&!1===n.initial,c=(d=d||!1===s)?a:s;if(c&&"boolean"!=typeof c&&!uT(c)){let t=Array.isArray(c)?c:[c];for(let n=0;n<t.length;n++){let r=uF(e,t[n]);if(r){let{transitionEnd:e,transition:t,...n}=r;for(let e in n){let t=n[e];if(Array.isArray(t)){let e=d?t.length-1:0;t=t[e]}null!==t&&(i[e]=t)}for(let t in e)i[t]=e[t]}}}return i}(n,r,i,e),renderState:t()}})(e,t,r,i);return n?o():dH(o)},dP=dI({scrapeMotionValuesFromProps:dn,createRenderState:dS}),dO=dI({scrapeMotionValuesFromProps:dr,createRenderState:dR}),dB={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},dN=!1;function dW(){return!function(){if(dN)return;let e={};for(let t in dB)e[t]={isEnabled:e=>dB[t].some(t=>!!e[t])};uU=e,dN=!0}(),uU}let dz=Symbol.for("motionComponentSymbol"),dD="data-"+uY("framerAppearId"),dF=(0,_.createContext)({});function dZ(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}let dU="u">typeof window?_.useLayoutEffect:_.useEffect;function dq(e,{forwardMotionProps:t=!1,type:n}={},r,i){r&&function(e){let t=dW();for(let n in e)t[n]={...t[n],...e[n]};uU=t}(r);let o=n?"svg"===n:dx(e),s=o?dO:dP;function a(n,r){var a;let l,u,d,c={...(0,_.useContext)(dj),...n,layoutId:function({layoutId:e}){let t=(0,_.useContext)(dC).id;return t&&void 0!==e?t+"-"+e:e}(n)},{isStatic:h}=c,f=function(e){let{initial:t,animate:n}=function(e,t){if(uO(e)){let{initial:t,animate:n}=e;return{initial:!1===t||uH(t)?t:void 0,animate:uH(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,_.useContext)(dM));return(0,_.useMemo)(()=>({initial:t,animate:n}),[dL(t),dL(n)])}(n),p=s(n,h);if(!h&&"u">typeof window){(0,_.useContext)(dk).strict;let t=function(e){let{drag:t,layout:n}=dW();if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}
3(c);l=t.MeasureLayout,f.visualElement=function(e,t,n,r,i,o){let{visualElement:s}=(0,_.useContext)(dM),a=(0,_.useContext)(dk),l=(0,_.useContext)(dT),u=(0,_.useContext)(dj),d=u.reducedMotion,c=u.skipAnimations,h=(0,_.useRef)(null),f=(0,_.useRef)(!1);r=r||a.renderer,!h.current&&r&&(h.current=r(e,{visualState:t,parent:s,props:n,presenceContext:l,blockInitialAnimation:!!l&&!1===l.initial,reducedMotionConfig:d,skipAnimations:c,isSVG:o}),f.current&&h.current&&(h.current.manuallyAnimateOnMount=!0));let p=h.current,g=(0,_.useContext)(dF);p&&!p.projection&&i&&("html"===p.type||"svg"===p.type)&&function(e,t,n,r){let{layoutId:i,layout:o,drag:s,dragConstraints:a,layoutScroll:l,layoutRoot:u,layoutAnchor:d,layoutCrossfade:c}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:function e(t){if(t)return!1!==t.options.allowProjection?t.projection:e(t.parent)}(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!s||a&&dZ(a),visualElement:e,animationType:"string"==typeof o?o:"both",initialPromotionConfig:r,crossfade:c,layoutScroll:l,layoutRoot:u,layoutAnchor:d})}(h.current,n,i,g);let m=(0,_.useRef)(!1);(0,_.useInsertionEffect)(()=>{p&&m.current&&p.update(n,l)});let y=n[dD],v=(0,_.useRef)(!!y&&"u">typeof window&&!window.MotionHandoffIsComplete?.(y)&&window.MotionHasOptimisedAnimation?.(y));return dU(()=>{f.current=!0,p&&(m.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),p.scheduleRenderMicrotask(),v.current&&p.animationState&&p.animationState.animateChanges())}),(0,_.useEffect)(()=>{p&&(!v.current&&p.animationState&&p.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(y)}),v.current=!1),p.enteringChildren=void 0)}),p}(e,p,c,i,t.ProjectionNode,o)}return(0,E.jsxs)(dM.Provider,{value:f,children:[l&&f.visualElement?(0,E.jsx)(l,{visualElement:f.visualElement,...c}):null,function(e,t,n,{latestValues:r},i,o=!1,s){let a=(s??dx(e)?function(e,t,n,r){let i=(0,_.useMemo)(()=>{let n=dR();return u2(n,t,u4(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};dE(t,e.style,e),i.style={...t,...i.style}}return i}:function(e,t){let n,r,i={},o=(n=e.style||{},dE(r={},n,e),Object.assign(r,function({transformTemplate:e},t){return(0,_.useMemo)(()=>{let n=dS();return uQ(n,t,e),Object.assign({},n.vars,n.style)},[t])}(e,t)),r);return e.drag&&!1!==e.dragListener&&(i.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}`),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(i.tabIndex=0),i.style=o,i})(t,r,i,e),l=function(e,t,n){let r={};for(let i in e)("values"!==i||"object"!=typeof e.values)&&!lx(e[i])&&(d$(i)||!0===n&&d_(i)||!t&&!d_(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}(t,"string"==typeof e,o),u=e!==_.Fragment?{...l,...a,ref:n}:{},{children:d}=t,c=(0,_.useMemo)(()=>lx(d)?d.get():d,[d]);return(0,_.createElement)(e,{...u,children:c})}(e,n,(a=f.visualElement,u=(0,_.useRef)(r),(0,_.useInsertionEffect)(()=>{u.current=r}),d=(0,_.useRef)(null),(0,_.useCallback)(e=>{e&&p.onMount?.(e),a&&(e?a.mount(e):a.unmount());let t=u.current;if("function"==typeof t)if(e){let n=t(e);"function"==typeof n&&(d.current=n)}else d.current?(d.current(),d.current=null):t(e);else t&&(t.current=e)},[a])),p,h,t,o)]})}a.displayName=`motion.${"string"==typeof e?e:`create(${e.displayName??e.name??""})`}`;let l=(0,_.forwardRef)(a);return l[dz]=e,l}class dG{constructor(e){this.isMounted=!1,this.node=e}update(){}}function dY(e,t,n){let r=e.getProps();return uF(r,t,void 0!==n?n:r.custom,e)}function dX(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function dK(e,t){let n=e?.[t]??e?.default??e;return n!==e?dX(n,e):n}let dJ=e=>Array.isArray(e);function dQ(e,t){let n=e.getValue("willChange");if(lx(n)&&n.add)return n.add(t);if(!n&&lX.WillChange){let n=new lX.WillChange("auto");e.addValue("willChange",n),n.add(t)}}let d1=(...e)=>e.reduce((e,t)=>n=>t(e(n)));function d0(e,t,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function d5(e,t){return n=>n>0?t:e}
3let d2=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},d3=[a0,a1,a7];function d4(e){let t=d3.find(t=>t.test(e));if(lL(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let n=t.parse(e);return t===a7&&(n=function({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let i=0,o=0,s=0;if(t/=100){let r=n<.5?n*(1+t):n+t-n*t,a=2*n-r;i=d0(a,r,e+1/3),o=d0(a,r,e),s=d0(a,r,e-1/3)}else i=o=s=n;return{red:Math.round(255*i),green:Math.round(255*o),blue:Math.round(255*s),alpha:r}}(n)),n}let d6=(e,t)=>{let n=d4(e),r=d4(t);if(!n||!r)return d5(e,t);let i={...n};return e=>(i.red=d2(n.red,r.red,e),i.green=d2(n.green,r.green,e),i.blue=d2(n.blue,r.blue,e),i.alpha=u7(n.alpha,r.alpha,e),a1.transform(i))},d8=new Set(["none","hidden"]);function d9(e,t){return n=>u7(e,t,n)}function d7(e){return"number"==typeof e?d9:"string"==typeof e?l_(e)?d5:le.test(e)?d6:cn:Array.isArray(e)?ce:"object"==typeof e?le.test(e)?d6:ct:d5}function ce(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>d7(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function ct(e,t){let n={...e,...t},r={};for(let i in n)void 0!==e[i]&&void 0!==t[i]&&(r[i]=d7(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}let cn=(e,t)=>{let n=la.createTransformer(t),r=lo(e),i=lo(t);if(!(r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length))return lL(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),d5(e,t);if(d8.has(e)&&!i.values.length||d8.has(t)&&!r.values.length)return d8.has(e)?n=>n<=0?e:t:n=>n>=1?t:e;return d1(ce(function(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let o=t.types[i],s=e.indexes[o][r[o]],a=e.values[s]??0;n[i]=a,r[o]++}return n}(r,i),i.values),n)};function cr(e,t,n){return"number"==typeof e&&"number"==typeof t&&"number"==typeof n?u7(e,t,n):d7(e)(e,t)}let ci=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>lQ.update(t,e),stop:()=>l1(t),now:()=>l0.isProcessing?l0.timestamp:uS.now()}};function co(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}let cs=.01,ca=2,cl=.005,cu=.5;function cd(e,t){return e*Math.sqrt(1-t*t)}let cc=["duration","bounce"],ch=["stiffness","damping","mass"];function cf(e,t){return t.some(t=>void 0!==e[t])}function cp(e=.3,t=.3){let n,r,i,o,s,a,l="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e,{restSpeed:u,restDelta:d}=l,c=l.keyframes[0],h=l.keyframes[l.keyframes.length-1],f={done:!1,value:c},{stiffness:p,damping:g,mass:m,duration:y,velocity:v,isResolvedFromDuration:w}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!cf(e,ch)&&cf(e,cc))if(t.velocity=0,e.visualDuration){let n=2*Math.PI/(1.2*e.visualDuration),r=n*n,i=2*aF(.05,1,1-(e.bounce||0))*Math.sqrt(r);t={...t,mass:1,stiffness:r,damping:i}}else{let n=function({duration:e=800,bounce:t=.3,velocity:n=0,mass:r=1}){let i,o;lL(e<=ui(10),"Spring duration must be 10 seconds or less","spring-duration-limit");let s=1-t;s=aF(.05,1,s),e=aF(.01,10,e/1e3),s<1?(i=t=>{let r=t*s,i=r*e;return .001-(r-n)/cd(t,s)*Math.exp(-i)},o=t=>{let r=t*s*e,o=Math.pow(s,2)*Math.pow(t,2)*e,a=Math.exp(-r),l=cd(Math.pow(t,2),s);return(r*n+n-o)*a*(-i(t)+.001>0?-1:1)/l}):(i=t=>-.001+Math.exp(-t*e)*((t-n)*e+1),o=t=>e*e*(n-t)*Math.exp(-t*e));let a=function(e,t,n){let r=n;for(let n=1;n<12;n++)r-=e(r)/t(r);return r}(i,o,5/e);if(e=ui(e),isNaN(a))return{stiffness:100,damping:10,duration:e};{let t=Math.pow(a,2)*r;return{stiffness:t,damping:2*s*Math.sqrt(r*t),duration:e}}}({...e,velocity:0});(t={...t,...n,mass:1}).isResolvedFromDuration=!0}return t}({...l,velocity:-((l.velocity||0)/1e3)}),b=v||0,x=g/(2*Math.sqrt(p*m)),C=h-c,k=Math.sqrt(p/m)/1e3,j=5>Math.abs(C);if(u||(u=j?cs:ca),d||(d=j?cl:cu),x<1)i=cd(k,x),o=(b+x*k*C)/i,n=e=>h-Math.exp(-x*k*e)*(o*Math.sin(i*e)+C*Math.cos(i*e)),s=x*k*o+C*i,a=x*k*C-o*i,r=e=>
3Math.exp(-x*k*e)*(s*Math.sin(i*e)+a*Math.cos(i*e));else if(1===x){n=e=>h-Math.exp(-k*e)*(C+(b+k*C)*e);let e=b+k*C;r=t=>Math.exp(-k*t)*(k*e*t-b)}else{let e=k*Math.sqrt(x*x-1);n=t=>{let n=Math.exp(-x*k*t),r=Math.min(e*t,300);return h-n*((b+x*k*C)*Math.sinh(r)+e*C*Math.cosh(r))/e};let t=(b+x*k*C)/e,i=x*k*t-C*e,o=x*k*C-t*e;r=t=>{let n=Math.exp(-x*k*t),r=Math.min(e*t,300);return n*(i*Math.sinh(r)+o*Math.cosh(r))}}let M={calculatedDuration:w&&y||null,velocity:e=>ui(r(e)),next:e=>{if(!w&&x<1){let t=Math.exp(-x*k*e),n=Math.sin(i*e),r=Math.cos(i*e),l=h-t*(o*n+C*r);return f.done=Math.abs(ui(t*(s*n+a*r)))<=u&&Math.abs(h-l)<=d,f.value=f.done?h:l,f}let t=n(e);return w?f.done=e>=y:f.done=Math.abs(ui(r(e)))<=u&&Math.abs(h-t)<=d,f.value=f.done?h:t,f},toString:()=>{let e=Math.min(co(M),2e4),t=uw(t=>M.next(e*t).value,e,30);return e+"ms "+t},toTransition:()=>{}};return M}function cg(e,t,n){let r=Math.max(t-5,0);return uE(n-e(r),t-r)}function cm({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:s,min:a,max:l,restDelta:u=.5,restSpeed:d}){let c,h,f=e[0],p={done:!1,value:f},g=n*t,m=f+g,y=void 0===s?m:s(m);y!==m&&(g=y-f);let v=e=>-g*Math.exp(-e/r),w=e=>y+v(e),b=e=>{let t=v(e),n=w(e);p.done=Math.abs(t)<=u,p.value=p.done?y:n},x=e=>{let t;if(t=p.value,void 0!==a&&t<a||void 0!==l&&t>l){var n;c=e,h=cp({keyframes:[p.value,(n=p.value,void 0===a?l:void 0===l||Math.abs(a-n)<Math.abs(l-n)?a:l)],velocity:cg(w,e,p.value),damping:i,stiffness:o,restDelta:u,restSpeed:d})}};return x(0),{calculatedDuration:null,next:e=>{let t=!1;return(h||void 0!==c||(t=!0,b(e),x(e)),void 0!==c&&e>=c)?h.next(e-c):(t||b(e),p)}}}cp.applyToOptions=e=>{let t=function(e,t=100,n){let r=n({...e,keyframes:[0,t]}),i=Math.min(co(r),2e4);return{type:"keyframes",ease:e=>r.next(i*e).value/t,duration:i/1e3}}(e,100,cp);return e.ease=t.ease,e.duration=ui(t.duration),e.type="keyframes",e};let cy=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function cv(e,t,n,r){return e===t&&n===r?lY:i=>0===i||1===i?i:cy(function(e,t,n,r,i){let o,s,a=0;do(o=cy(s=t+(n-t)/2,r,i)-e)>0?n=s:t=s;while(Math.abs(o)>1e-7&&++a<12)return s}(i,0,1,e,n),t,r)}let cw=cv(.42,0,1,1),cb=cv(0,0,.58,1),cx=cv(.42,0,.58,1),cC=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,ck=e=>t=>1-e(1-t),cj=cv(.33,1.53,.69,.99),cM=ck(cj),cL=cC(cM),cS=e=>e>=1?1:(e*=2)<1?.5*cM(e):.5*(2-Math.pow(2,-10*(e-1))),cE=e=>1-Math.sin(Math.acos(e)),cR=ck(cE),cV=cC(cE),c_={linear:lY,easeIn:cw,easeInOut:cx,easeOut:cb,circIn:cE,circInOut:cV,circOut:cR,backIn:cM,backInOut:cL,backOut:cj,anticipate:cS},c$=e=>{if(uy(e)){lS(4===e.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[t,n,r,i]=e;return cv(t,n,r,i)}return"string"==typeof e?(lS(void 0!==c_[e],`Invalid easing type '${e}'`,"invalid-easing-type"),c_[e]):e},cA=(e,t,n)=>{let r=t-e;return r?(n-e)/r:1};function cT({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){var i;let o,s=Array.isArray(r)&&"number"!=typeof r[0]?r.map(c$):c$(r),a={done:!1,value:t[0]},l=function(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let o=e.length;if(lS(o===t.length,"Both input and output ranges must be the same length","range-length"),1===o)return()=>t[0];if(2===o&&t[0]===t[1])return()=>t[1];let s=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());let a=function(e,t,n){let r=[],i=n||lX.mix||cr,o=e.length-1;for(let n=0;n<o;n++){let o=i(e[n],e[n+1]);t&&(o=d1(Array.isArray(t)?t[n]||lY:t,o)),r.push(o)}return r}(t,r,i),l=a.length,u=n=>{if(s&&n<e[0])return t[0];let r=0;if(l>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=cA(e[r],e[r+1],n);return a[r](i)};return n?t=>u(aF(e[0],e[o-1],t)):u}((i=n&&n.length===t.length?n:(!function(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=cA(0,t,r);e.push(u7(n,1,i))}}(o=[0],t.length-1),o),i.map(t=>t*e)),t,{ease:Array.isArray(s)?s:t.map(()=>s||cx).splice(0,t.length-1)});return{calculatedDuration:e,next:t=>(a.value=l(t),a.done=t>=e,a)}}let cH={decay:cm,inertia:cm,tween:cT,keyframes:cT,spring:cp};function cI(e){"string"==typeof e.type&&(e.type=cH[e.type])}let cP=e=>e/100;class cO extends ug{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==uS.now()&&this.tick(uS.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},um.mainThread++,this.options=e,this.initAnimation(),this.play(),!1===e.autoplay&&this.pause()}initAnimation(){let{options:e}=this;cI(e);let{type:t=cT,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:o=0}=e,{keyframes:s}=e,a=t||cT;a!==cT&&"number"!=typeof s[0]&&(this.mixKeyframes=d1(cP,cr(s[0],s[1])),s=[0,100]);let l=a({...e,keyframes:s}
3);"mirror"===i&&(this.mirroredGenerator=a({...e,keyframes:[...s].reverse(),velocity:-o})),null===l.calculatedDuration&&(l.calculatedDuration=co(l));let{calculatedDuration:u}=l;this.calculatedDuration=u,this.resolvedDuration=u+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=l}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=t}tick(e,t=!1){let n,{generator:r,totalDuration:i,mixKeyframes:o,mirroredGenerator:s,resolvedDuration:a,calculatedDuration:l}=this;if(null===this.startTime)return r.next(0);let{delay:u=0,keyframes:d,repeat:c,repeatType:h,repeatDelay:f,type:p,onUpdate:g,finalKeyframe:m}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-i/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let y=this.currentTime-u*(this.playbackSpeed>=0?1:-1),v=this.playbackSpeed>=0?y<0:y>i;this.currentTime=Math.max(y,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=i);let w=this.currentTime,b=r;if(c){let e=Math.min(this.currentTime,i)/a,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,(t=Math.min(t,c+1))%2&&("reverse"===h?(n=1-n,f&&(n-=f/a)):"mirror"===h&&(b=s)),w=aF(0,1,n)*a}v?(this.delayState.value=d[0],n=this.delayState):n=b.next(w),o&&!v&&(n.value=o(n.value));let{done:x}=n;v||null===l||(x=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);let C=null===this.holdTime&&("finished"===this.state||"running"===this.state&&x);return C&&p!==cm&&(n.value=up(d,this.options,m,this.speed)),g&&g(n.value),C&&this.finish(),n}then(e,t){return this.finished.then(e,t)}get duration(){return this.calculatedDuration/1e3}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+e/1e3}get time(){return this.currentTime/1e3}set time(e){e=ui(e),this.currentTime=e,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=e,this.tick(e))}getGeneratorVelocity(){let e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);let t=this.generator.next(e).value;return cg(e=>this.generator.next(e).value,e,t)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(uS.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=this.currentTime/1e3)}play(){if(this.isStopped)return;let{driver:e=ci,startTime:t}=this.options;this.driver||(this.driver=e(e=>this.tick(e))),this.options.onPlay?.();let n=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=n):null!==this.holdTime?this.startTime=n-this.holdTime:this.startTime||(this.startTime=t??n),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(uS.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,um.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}}let cB={anticipate:cS,backInOut:cL,circInOut:cV};class cN extends uk{constructor(e){!function(e){"string"==typeof e.ease&&e.ease in cB&&(e.ease=cB[e.ease])}(e),cI(e),super(e),void 0!==e.startTime&&!1!==e.autoplay&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:r,element:i,...o}=this.options;if(!t)return;if(void 0!==e)return void t.set(e);let s=new cO({...o,autoplay:!1}),a=Math.max(10,uS.now()-this.startTime),l=aF(0,10,a-10),u=s.sample(a).value,{name:d}=this.options;i&&d&&ul(i,d,u),t.setWithVelocity(s.sample(Math.max(0,a-l)).value,u,l),s.stop()}}let cW=(e,t)=>
3"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(la.test(e)||"0"===e)&&!e.startsWith("url("));function cz(e){e.duration=0,e.type="keyframes"}let cD=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/,cF=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),cZ=uu(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class cU extends ug{constructor({autoplay:e=!0,delay:t=0,type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o="loop",keyframes:s,name:a,motionValue:l,element:u,...d}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=uS.now();const c={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:o,name:a,motionValue:l,element:u,...d},h=u?.KeyframeResolver||l7;this.keyframeResolver=new h(s,(e,t,n)=>this.onKeyframesResolved(e,t,c,!n),a,l,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){let i;this.keyframeResolver=void 0;let{name:o,type:s,velocity:a,delay:l,isHandoff:u,onUpdate:d}=n;this.resolvedAt=uS.now();let c=!0;!function(e,t,n,r){let i=e[0];if(null===i)return!1;if("display"===t||"visibility"===t)return!0;let o=e[e.length-1],s=cW(i,t),a=cW(o,t);return lL(s===a,`You are trying to animate ${t} from "${i}" to "${o}". "${s?o:i}" is not an animatable value.`,"value-not-animatable"),!!s&&!!a&&(function(e){let t=e[0];if(1===e.length)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}(e)||("spring"===n||uC(n))&&r)}(e,o,s,a)&&(c=!1,(lX.instantAnimations||!l)&&d?.(up(e,n,t)),e[0]=e[e.length-1],cz(n),n.repeat=0);let h={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},f=c&&!u&&function(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:o,type:s,keyframes:a}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:l,transformTemplate:u}=t.owner.getProps();return cZ()&&n&&(uj.has(n)||cF.has(n)&&function(e){for(let t=0;t<e.length;t++)if("string"==typeof e[t]&&cD.test(e[t]))return!0;return!1}(a))&&("transform"!==n||!u)&&!l&&!r&&"mirror"!==i&&0!==o&&"inertia"!==s}(h),p=h.motionValue?.owner?.current;if(f)try{i=new cN({...h,element:p})}catch{i=new cO(h)}else i=new cO(h);i.finished.then(()=>{this.notifyFinished()}).catch(lY),this.pendingTimeline&&(this.stopTimeline=i.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=i}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),l6=!0,l9(),l8(),l6=!1),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}let cq={type:"spring",stiffness:500,damping:25,restSpeed:10},cG={type:"keyframes",duration:.8},cY={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},cX=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]),cK=(e,t,n,r={},i,o)=>s=>{let a=dK(r,e)||{},l=a.delay||r.delay||0,{elapsed:u=0}=r;u-=ui(l);let d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-u,onUpdate:e=>{t.set(e),a.onUpdate&&a.onUpdate(e)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:o?void 0:i};!function(e){for(let t in e)if(!cX.has(t))return!0;return!1}(a)&&Object.assign(d,((e,{keyframes:t})=>t.length>2?cG:aD.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:cq:cY)(e,d)),d.duration&&(d.duration=ui(d.duration)),d.repeatDelay&&(d.repeatDelay=ui(d.repeatDelay)),void 0!==d.from&&(d.keyframes[0]=d.from);let c=!1;if(!1!==d.type&&(0!==d.duration||d.repeatDelay)||(cz(d),0===d.delay&&(c=!0)),(lX.instantAnimations||lX.skipAnimations||i?.shouldSkipAnimations||a.skipAnimations)&&(c=!0,cz(d),d.delay=0),d.allowFlatten=!a.type&&!a.ease,c&&!o&&void 0!==t.get()){let e=up(d.keyframes,a);if(void 0!==e)return void lQ.update(()=>{d.onUpdate(e),d.onComplete()})}return a.isSync?new cO(d):new cU(d)};function cJ(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:o,transitionEnd:s,...a}=t,l=e.getDefaultTransition();o=o?dX(o,l):l;let u=o?.reduceMotion,d=o?.skipAnimations;r&&(o=r);let c=[],h=i&&e.animationState&&e.animationState.getState()[i],f=o?.path;for(let t in f&&f.animateVisualElement(e,a,o,n,c),a){let r=e.getValue(t,e.latestValues[t]??null),i=a[t];if(void 0===i||h&&function({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}(h,t))continue;let s={delay:n,...dK(o||{},t)};d&&(s.skipAnimations=!0);let l=r.get();if(void 0!==l&&!r.isAnimating()&&!Array.isArray(i)&&i===l&&!s.velocity){lQ.update(()=>r.set(i));continue}let f=!1;if(window.MotionHandoffAnimation){let n=e.props[dD];if(n){let e=window.MotionHandoffAnimation(n,t,lQ);null!==e&&(s.startTime=e,f=!0)}}dQ(e,t);let p=u??e.shouldReduceMotion;
3r.start(cK(t,r,i,p&&lC.has(t)?{type:!1}:s,e,f));let g=r.animation;g&&c.push(g)}if(s){let t=()=>lQ.update(()=>{s&&function(e,t){let{transitionEnd:n={},transition:r={},...i}=dY(e,t)||{};for(let t in i={...i,...n}){var o;let n=dJ(o=i[t])?o[o.length-1]||0:o;e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,u_(n))}}(e,s)});c.length?Promise.all(c).then(t):t()}return c}function cQ(e,t,n,r=0,i=1){let o=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),s=e.size,a=(s-1)*r;return"function"==typeof n?n(o,s):1===i?o*r:a-o*r}function c1(e,t,n={}){let r=dY(e,t,"exit"===n.type?e.presenceContext?.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);let o=r?()=>Promise.all(cJ(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:o=0,staggerChildren:s,staggerDirection:a}=i;return function(e,t,n=0,r=0,i=0,o=1,s){let a=[];for(let l of e.variantChildren)l.notify("AnimationStart",t),a.push(c1(l,t,{...s,delay:n+("function"==typeof r?0:r)+cQ(e.variantChildren,l,r,i,o)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(a)}(e,t,r,o,s,a,n)}:()=>Promise.resolve(),{when:a}=i;if(!a)return Promise.all([o(),s(n.delay)]);{let[e,t]="beforeChildren"===a?[o,s]:[s,o];return e().then(()=>t())}}let c0=uP.length;function c5(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}let c2=[...uI].reverse(),c3=uI.length;function c4(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function c6(){return{animate:c4(!0),whileInView:c4(),whileHover:c4(),whileTap:c4(),whileDrag:c4(),whileFocus:c4(),exit:c4()}}let c8=0;function c9(e){return[e("x"),e("y")]}function c7(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}let he={x:!1,y:!1};function ht(e){return e.max-e.min}function hn(e,t,n,r=.5){e.origin=r,e.originPoint=u7(t.min,t.max,e.origin),e.scale=ht(n)/ht(t),e.translate=u7(n.min,n.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function hr(e,t,n,r){hn(e.x,t.x,n.x,r?r.originX:void 0),hn(e.y,t.y,n.y,r?r.originY:void 0)}function hi(e,t,n,r=0){e.min=(r?u7(n.min,n.max,r):n.min)+t.min,e.max=e.min+ht(t)}function ho(e,t,n,r=0){let i=r?u7(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+ht(t)}function hs(e,t,n,r){ho(e.x,t.x,n.x,r?.x),ho(e.y,t.y,n.y,r?.y)}let ha=e=>"object"==typeof e&&null!==e;function hl(e){return ha(e)&&"ownerSVGElement"in e}function hu(e,t,n){if(null==e)return[];if(e instanceof EventTarget)return[e];if("string"==typeof e){let r=document;t&&(r=t.current);let i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>null!=e)}let hd=new WeakMap,hc=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+"Size"]:hl(r)&&"getBBox"in r?r.getBBox()[t]:r[n],hh=hc("inline","width","offsetWidth"),hf=hc("block","height","offsetHeight");function hp({target:e,borderBoxSize:t}){hd.get(e)?.forEach(n=>{n(e,{get width(){return hh(e,t)},get height(){return hf(e,t)}})})}function hg(e){e.forEach(hp)}let hm=new Set;function hy(e,t){let n;return"function"==typeof e?(hm.add(e),i||(i=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};hm.forEach(t=>t(e))},window.addEventListener("resize",i)),()=>{hm.delete(e),hm.size||"function"!=typeof i||(window.removeEventListener("resize",i),i=void 0)}):(!r&&"u">typeof ResizeObserver&&(r=new ResizeObserver(hg)),(n=hu(e)).forEach(e=>{let n=hd.get(e);n||(n=new Set,hd.set(e,n)),n.add(t),r?.observe(e)}),()=>{n.forEach(e=>{let n=hd.get(e);n?.delete(t),n?.size||r?.unobserve(e)})})}let hv=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),hw=new Set(["INPUT","SELECT","TEXTAREA"]),hb=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function hx(e){return{point:{x:e.pageX,y:e.pageY}}}function hC(e,t,n,r){return c7(e,t,e=>hb(e)&&n(e,hx(e)),r)}let hk=({current:e})=>e?e.ownerDocument.defaultView:null,hj=(e,t)=>Math.abs(e-t),hM=new Set(["auto","scroll"]);class hL{constructor(e,t,{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:i=!1,distanceThreshold:o=3,element:s}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{var e,t;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=hS(this.lastRawMoveEventInfo,this.transformPagePoint));let n=hR(this.lastMoveEventInfo,this.history),r=null!==this.startEvent,i=(e=n.offset,t={x:0,y:0},Math.sqrt(hj(e.x,t.x)**2+hj(e.y,t.y)**2)>=this.distanceThreshold);if(!r&&!i)return;let{point:o}=n,{timestamp:s}=l0;this.history.push({...o,timestamp:s});let{onStart:a,onMove:l}=this.handlers;r||(a&&a(this.lastMoveEvent,n),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,n)},this.handlePointerMove=(e,t)=>
3{this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=hS(t,this.transformPagePoint),lQ.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let o=hR("pointercancel"===e.type?this.lastMoveEventInfo:hS(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,o),r&&r(e,o)},!hb(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=o,this.contextWindow=r||window;const a=hS(hx(e),this.transformPagePoint),{point:l}=a,{timestamp:u}=l0;this.history=[{...l,timestamp:u}];const{onSessionStart:d}=t;d&&d(e,hR(a,this.history)),this.removeListeners=d1(hC(this.contextWindow,"pointermove",this.handlePointerMove),hC(this.contextWindow,"pointerup",this.handlePointerUp),hC(this.contextWindow,"pointercancel",this.handlePointerUp)),s&&this.startScrollTracking(s)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(hM.has(e.overflowX)||hM.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(e){let t=this.scrollPositions.get(e);if(!t)return;let n=e===window,r=n?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},i={x:r.x-t.x,y:r.y-t.y};(0!==i.x||0!==i.y)&&(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(e,r),lQ.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),l1(this.updatePoint)}}function hS(e,t){return t?{point:t(e.point)}:e}function hE(e,t){return{x:e.x-t.x,y:e.y-t.y}}function hR({point:e},t){return{point:e,delta:hE(e,hV(t)),offset:hE(e,t[0]),velocity:function(e){if(e.length<2)return{x:0,y:0};let t=e.length-1,n=null,r=hV(e);for(;t>=0&&(n=e[t],!(r.timestamp-n.timestamp>ui(.1)));)t--;if(!n)return{x:0,y:0};n===e[0]&&e.length>2&&r.timestamp-n.timestamp>2*ui(.1)&&(n=e[1]);let i=(r.timestamp-n.timestamp)/1e3;if(0===i)return{x:0,y:0};let o={x:(r.x-n.x)/i,y:(r.y-n.y)/i};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}(t)}}function hV(e){return e[e.length-1]}function h_(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function h$(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function hA(e,t,n){return{min:hT(e,t),max:hT(e,n)}}function hT(e,t){return"number"==typeof e?e:e[t]||0}let hH=new WeakMap;class hI{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=lb(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){let{presenceContext:r}=this.visualElement;if(r&&!1===r.isPresent)return;let i=e=>{t&&this.snapToCursor(hx(e).point),this.stopAnimation()},o=(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(e){if("x"===e||"y"===e)if(he[e])return null;else return he[e]=!0,()=>{he[e]=!1};return he.x||he.y?null:(he.x=he.y=!0,()=>{he.x=he.y=!1})}(n),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),c9(e=>{let t=this.getAxisMotionValue(e).get()||0;if(a3.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=ht(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&lQ.update(()=>i(e,t),!1,!0),dQ(this.visualElement,"transform");let{animationState:o}=this.visualElement;o&&o.setActive("whileDrag",!0)},s=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:o}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:s}=t;if(r&&null===this.currentDirection){this.currentDirection=function(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}(s),null!==this.currentDirection&&i&&i(this.currentDirection);return}this.updateAxis("x",t.point,s),this.updateAxis("y",t.point,s),this.visualElement.render(),o&&lQ.update(()=>o(e,t),!1,!0)},a=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:u}=this.getProps();
3this.panSession=new hL(e,{onSessionStart:i,onStart:o,onMove:s,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:n,contextWindow:hk(this.visualElement),element:this.visualElement.current})}stop(e,t){let n=e||this.latestPointerEvent,r=t||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!r||!n)return;let{velocity:o}=r;this.startAnimation(o);let{onDragEnd:s}=this.getProps();s&&lQ.postRender(()=>s(n,r))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!hO(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),o=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(o=function(e,{min:t,max:n},r){return void 0!==t&&e<t?e=r?u7(t,e,r.min):Math.max(e,t):void 0!==n&&e>n&&(e=r?u7(n,e,r.max):Math.min(e,n)),e}(o,this.constraints[e],this.elastic[e])),i.set(o)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&dZ(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=function(e,{top:t,left:n,bottom:r,right:i}){return{x:h_(e.x,n,i),y:h_(e.y,t,r)}}(n.layoutBox,e):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:hA(e,"left","right"),y:hA(e,"top","bottom")}}(t),r!==this.constraints&&!dZ(e)&&n&&this.constraints&&!this.hasMutatedConstraints&&c9(e=>{var t,r;let i;!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=(t=n.layoutBox[e],r=this.constraints[e],i={},void 0!==r.min&&(i.min=r.min-t.min),void 0!==r.max&&(i.max=r.max-t.min),i))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!dZ(t))return!1;let r=t.current;lS(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:i}=this.visualElement;if(!i||!i.layout)return!1;i.root&&(i.root.scroll=void 0,i.root.updateScroll());let o=function(e,t,n){let r=dv(e,n),{scroll:i}=t;return i&&(dp(r.x,i.offset.x),dp(r.y,i.offset.y)),r}(r,i.root,this.visualElement.getTransformPagePoint()),s=(e=i.layout.layoutBox,{x:h$(e.x,o.x),y:h$(e.y,o.y)});if(n){let e=n(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(s));this.hasMutatedConstraints=!!e,e&&(s=ds(e))}return s}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:s}=this.getProps(),a=this.constraints||{};return Promise.all(c9(s=>{if(!hO(s,t,this.currentDirection))return;let l=a&&a[s]||{};(!0===o||o===s)&&(l={min:0,max:0});let u={type:"inertia",velocity:n?e[s]:0,bounceStiffness:r?200:1e6,bounceDamping:r?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...i,...l};return this.startAxisValueAnimation(s,u)})).then(s)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return dQ(this.visualElement,e),n.start(cK(e,n,0,t,this.visualElement,!1))}stopAnimation(){c9(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`;return this.visualElement.getProps()[t]||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor(e){c9(t=>{let{drag:n}=this.getProps();if(!hO(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:o}=r.layout.layoutBox[t],s=i.get()||0;i.set(e[t]-u7(n,o,.5)+s)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!dZ(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};c9(e=>{let t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){var n,i;let o,s,a,l=t.get();r[e]=(n={min:l,max:l},i=this.constraints[e],o=.5,s=ht(n),(a=ht(i))>s?o=cA(i.min,i.max-s,n.min):s>
3a&&(o=cA(n.min,n.max-a,i.min)),aF(0,1,o))}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),c9(t=>{if(!hO(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:o}=this.constraints[t];n.set(u7(i,o,r[t]))}),this.visualElement.render()}addListeners(){let e;if(!this.visualElement.current)return;hH.set(this.visualElement,this);let t=this.visualElement.current,n=hC(t,"pointerdown",e=>{let{drag:n,dragListener:r=!0}=this.getProps(),i=e.target,o=i!==t&&(hw.has(i.tagName)||!0===i.isContentEditable);n&&r&&!o&&this.start(e)}),r=()=>{var n,r,i;let o,s,{dragConstraints:a}=this.getProps();dZ(a)&&a.current&&(this.constraints=this.resolveRefConstraints(),e||(n=t,r=a.current,o=hy(n,hP(i=()=>this.scalePositionWithinConstraints())),s=hy(r,hP(i)),e=()=>{o(),s()}))},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),lQ.read(r);let s=c7(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(c9(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())});return()=>{s(),n(),o(),a&&a(),e&&e()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:o=.35,dragMomentum:s=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:o,dragMomentum:s}}}function hP(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function hO(e,t,n){return(!0===t||t===e)&&(null===n||n===e)}let hB=e=>(t,n)=>{e&&lQ.update(()=>e(t,n),!1,!0)},hN={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var hW=_;function hz(e=!0){let t=(0,_.useContext)(dT);if(null===t)return[!0,null];let{isPresent:n,onExitComplete:r,register:i}=t,o=(0,_.useId)();(0,_.useEffect)(()=>{if(e)return i(o)},[e]);let s=(0,_.useCallback)(()=>e&&r&&r(o),[o,r,e]);return!n&&r?[!1,s]:[!0]}let hD=!1;class hF extends hW.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),hD&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),hN.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,{projection:o}=n;return o&&(o.isPresent=i,e.layoutDependency!==t&&o.setOptions({...o.options,layoutDependency:t}),hD=!0,r||e.layoutDependency!==t||void 0===t||e.isPresent!==i?o.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?o.promote():o.relegate()||lQ.postRender(()=>{let e=o.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{visualElement:e,layoutAnchor:t}=this.props,{projection:n}=e;n&&(n.options.layoutAnchor=t,n.root.didUpdate(),uM.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;hD=!0,r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}}function hZ(e){let[t,n]=hz(),r=(0,hW.useContext)(dC);return(0,E.jsx)(hF,{...e,layoutGroup:r,switchLayoutGroup:(0,hW.useContext)(dF),isPresent:t,safeToRemove:n})}let hU=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],hq=hU.length,hG=e=>"string"==typeof e?parseFloat(e):e,hY=e=>"number"==typeof e||a4.test(e);function hX(e,t){return void 0!==e[t]?e[t]:e.borderRadius}let hK=hQ(0,.5,cR),hJ=hQ(.5,.95,lY);function hQ(e,t,n){return r=>r<e?0:r>t?1:n(cA(e,t,r))}function h1(e,t){e.min=t.min,e.max=t.max}function h0(e,t){h1(e.x,t.x),h1(e.y,t.y)}function h5(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function h2(e,t,n,r,i){return e-=t,e=r+1/n*(e-r),void 0!==i&&(e=r+1/i*(e-r)),e}function h3(e,t,[n,r,i],o,s){!function(e,t=0,n=1,r=.5,i,o=e,s=e){if(a3.test(t)&&(t=parseFloat(t),t=u7(s.min,s.max,t/100)-s.min),"number"!=typeof t)return;let a=u7(o.min,o.max,r);e===o&&(a-=t),e.min=h2(e.min,t,n,a,i),e.max=h2(e.max,t,n,a,i)}(e,t[n],t[r],t[i],t.scale,o,s)}let h4=["x","scaleX","originX"],h6=["y","scaleY","originY"];function h8(e,t,n,r){h3(e.x,t,h4,n?n.x:void 0,r?r.x:void 0),h3(e.y,t,h6,n?n.y:void 0,r?r.y:void 0)}function h9(e){return 0===e.translate&&1===e.scale}function h7(e){return h9(e.x)&&h9(e.y)}function fe(e,t){return e.min===t.min&&e.max===t.max}function ft(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function fn(e,t){return ft(e.x,t.x)&&ft(e.y,t.y)}function fr(e){return ht(e.x)/ht(e.y)}function fi(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class fo{constructor(){this.members=[]}add(e){uo(this.members,e);for(let t=this.members.length-1;t>=0;t--){let n=this.members[t];if(n===e||n===this.lead||n===this.prevLead)continue;let r=n.instance;r&&!1!==r.isConnected||n.snapshot||(us(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(us(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){for(let t=this.members.indexOf(e)-1;t>=0;t--){let e=this.members[t];if(!1!==e.isPresent&&e.instance?.isConnected!==!1)return this.promote(e),!0}return!1}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.updateSnapshot(),e.scheduleRender();let{layoutDependency:r}=n.options,{layoutDependency:i}=e.options;(void 0===r||r!==i)&&(e.resumeFrom=n,t&&(n.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root?.isU
3pdating&&(e.isLayoutDirty=!0)),!1===e.options.crossfade&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}let fs=(e,t)=>e.depth-t.depth;class fa{constructor(){this.children=[],this.isDirty=!1}add(e){uo(this.children,e),this.isDirty=!0}remove(e){us(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(fs),this.isDirty=!1,this.children.forEach(e)}}let fl=["","X","Y","Z"],fu=0;function fd(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function fc({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=fu++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(fp),this.nodes.forEach(fk),this.nodes.forEach(fj),this.nodes.forEach(fg)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new fa)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new ua),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=hl(t)&&!(hl(t)&&"svg"===t.tagName),this.instance=t;let{layoutId:n,layout:r,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||n)&&(this.isLayoutDirty=!0),e){let n,r=0,i=()=>this.root.updateBlockedByResize=!1;lQ.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;if(e!==r){let t,o;r=e,this.root.updateBlockedByResize=!0,n&&n(),t=uS.now(),o=({timestamp:e})=>{let n=e-t;n>=250&&(l1(o),i(n-250))},lQ.setup(o,!0),n=()=>l1(o),hN.hasAnimatedSinceResize&&(hN.hasAnimatedSinceResize=!1,this.nodes.forEach(fC))}})}n&&this.root.registerSharedNode(n,this),!1!==this.options.animate&&i&&(n||r)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let o=this.options.transition||i.getDefaultTransition()||fV,{onLayoutAnimationStart:s,onLayoutAnimationComplete:a}=i.getProps(),l=!this.targetLayout||!fn(this.targetLayout,r),u=!t&&n;if(this.options.layoutRoot||this.resumeFrom||u||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...dK(o,"layout"),onPlay:s,onComplete:a};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,u,t.path)}else t||fC(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),l1(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEac
3h(fM),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function e(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;let{visualElement:n}=t.options;if(!n)return;let r=n.props[dD];if(window.MotionHasOptimisedAnimation(r,"transform")){let{layout:e,layoutId:n}=t.options;window.MotionCancelOptimisedAnimation(r,"transform",lQ,!(e||n))}let{parent:i}=t;i&&!i.hasCheckedOptimisedAppear&&e(i)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,("string"==typeof t.latestValues.x||"string"==typeof t.latestValues.y)&&(t.isLayoutDirty=!0),t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(void 0===t&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let e=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),e&&this.nodes.forEach(fv),this.nodes.forEach(fy);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(fw);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(fb),this.nodes.forEach(fx),this.nodes.forEach(fh),this.nodes.forEach(ff)):this.nodes.forEach(fw),this.clearAllSnapshots();let e=uS.now();l0.delta=aF(0,1e3/60,e-l0.timestamp),l0.timestamp=e,l0.isProcessing=!0,l5.update.process(l0),l5.preRender.process(l0),l5.render.process(l0),l0.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,uM.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(fm),this.sharedNodes.forEach(fL)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,lQ.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){lQ.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||ht(this.snapshot.measuredBox.x)||ht(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=lb()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!h7(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,o=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||du(this.latestValues)||o)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){var t;let n=this.measurePageBox(),r=this.removeElementScroll(n);return e&&(r=this.removeTransform(r)),fA((t=r).x),fA(t.y),{animationId:this.root.animationId,measuredBox:n,layoutBox:r,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return lb();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(fH))){let{scroll:e}=this.root;e&&(dp(t.x,e.offset.x),dp(t.y,e.offset.y))}return t}removeElementScroll(e){let t=lb();if(h0(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:o}=r;r!==this.root&&i&&o.layoutScroll&&(i.wasRoot&&h0(t,e),dp(t.x,i.offset.x),dp(t.y,i.offset.y))}return t}applyTransform(e,t=!1,n){let r=n||lb();h0(r,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(dp(r.x,-n.scroll.offset.x),dp(r.y,-n.scroll.offset.y)),du(n.latestValues)&&dy(r,n.latestValues,n.layout?.layoutBox)}return du(this.latestValues)&&dy(r,this.latestValues,this.layout?.layoutBox),r}removeTransform(e){let t=lb();h0(t,e);for(let e=0;e<this.path.length;e++){let n,r=this.path[e];du(r.latestValues)&&(r.instance&&(dl(r.latestValues)&&r.updateSnapshot(),h0(n=lb(),r.measurePageBox())),h8(t,r.latestValues,r.snapshot?.layoutBox,n))}return du(this.latestValues)&&h8(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==l0.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=t.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=t.
3isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=t.isSharedProjectionDirty);let n=!!this.resumingFrom||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:r,layoutId:i}=this.options;if(!this.layout||!(r||i))return;this.resolvedRelativeTargetAt=l0.timestamp;let o=this.getClosestProjectingParent();if(o&&this.linkedParentVersion!==o.layoutVersion&&!o.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(!1!==this.options.layoutAnchor&&o&&o.layout?this.createRelativeTarget(o,this.layout.layoutBox,o.layout.layoutBox):this.removeRelativeTarget()),this.relativeTarget||this.targetDelta){if(this.target||(this.target=lb(),this.targetWithTransforms=lb()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var s,a,l,u;this.forceRelativeParentToResolveTarget(),s=this.target,a=this.relativeTarget,l=this.relativeParent.target,u=this.options.layoutAnchor||void 0,hi(s.x,a.x,l.x,u?.x),hi(s.y,a.y,l.y,u?.y)}else this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):h0(this.target,this.layout.layoutBox),df(this.target,this.targetDelta)):h0(this.target,this.layout.layoutBox);this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,!1!==this.options.layoutAnchor&&o&&!!o.resumingFrom==!!this.resumingFrom&&!o.options.layoutScroll&&o.target&&1!==this.animationProgress?this.createRelativeTarget(o,this.target,o.target):this.relativeParent=this.relativeTarget=void 0)}}getClosestProjectingParent(){if(!(!this.parent||dl(this.parent.latestValues)||dd(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,n){this.relativeParent=e,this.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=lb(),this.relativeTargetOrigin=lb(),hs(this.relativeTargetOrigin,t,n,this.options.layoutAnchor||void 0),h0(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===l0.timestamp&&(n=!1),n)return;let{layout:r,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||i))return;h0(this.layoutCorrected,this.layout.layoutBox);let o=this.treeScale.x,s=this.treeScale.y;!function(e,t,n,r=!1){let i,o,s=n.length;if(s){t.x=t.y=1;for(let a=0;a<s;a++){o=(i=n[a]).projectionDelta;let{visualElement:s}=i.options;(!s||!s.props.style||"contents"!==s.props.style.display)&&(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&(dp(e.x,-i.scroll.offset.x),dp(e.y,-i.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,df(e,o)),r&&du(i.latestValues)&&dy(e,i.latestValues,i.layout?.layoutBox))}t.x<1.0000000000001&&t.x>.999999999999&&(t.x=1),t.y<1.0000000000001&&t.y>.999999999999&&(t.y=1)}}(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=lb());let{target:a}=e;if(!a){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(h5(this.prevProjectionDelta.x,this.projectionDelta.x),h5(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),hr(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.treeScale.x===o&&this.treeScale.y===s&&fi(this.projectionDelta.x,this.prevProjectionDelta.x)&&fi(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=lv(),this.projectionDelta=lv(),this.projectionDeltaWithTransform=lv()}setAnimationOrigin(e,t=!1,n){let r,i=this.snapshot,o=i?i.latestValues:{},s={...this.latestValues},a=lv();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let l=lb(),u=(i?i.source:void 0)!==(this.layout?this.layout.source:void 0),d=this.getStack(),c=!d||d.members.length<=1,h=!!(u&&!c&&!0===this.options.crossfade&&!this.path.some(fR));this.animationProgress=0;let f=n?.interpolateProjection(e);this.mixTargetDelta=t=>{let n=t/1e3,i=f?.(n);if(i?(a.x.translate=i.x,a.x.scale=u7(e.x.scale,1,n),a.x.origin=e.x.origin,a.x.originPoint=e.x.originPoint,a.y.translate=i.y,a.y.scale=u7(e.y.scale,1,n),a.y.origin=e.y.origin,a.y.originPoint=e.y.originPoint):(fS(a.x,e.x,n),fS(a.y,e.y,n)),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var d,p,g,m,y,v;hs(l,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),g=this.relativeTarget,m=this.relativeTargetOrigin,y=l,v=n,fE(g.x,m.x,y.x,v),fE(g.y,m.y,y.y,v),r&&(d=this.relativeTarget,p=r,fe(d.x,p.x)&&fe(d.y,p.y))&&(this.isProjectionDirty=!1),r||(r=lb()),h0(r,this.relativeTarget)}u&&(this.animationValues=s,function(e,t,n,r,i,o){i?(e.opacity=u7(0,n.opacity??1,hK(r)),e.opacityExit=u7(t.opacity??1,0,hJ(r))):o&&(e.opacity=u7(t.opacity??1,n.opacity??1,r));for(let i=0;i<hq;i++){let o=hU[i],s=hX(t,o),a=hX(n,o);(void 0!==s||void 0!==a)&&(s||(s=0),a||(a=0),0===s||0===a||hY(s)===hY(a)?(e[o]=Math.max(u7(hG(s),hG(a),r),0),(a3.test(a)||a3.test(s))&&(e[o]+="%")):e[o]=a)}(t.rotate||n.rotate)&&(e.rotate=u7(t.rotate||0,n.rotate||0,r))}(s,o,this.latestValues,n,h,c)),i&&void 0!==i.rotate&&(this.animationValues||(this.animationValues=s),this.animationValues.pathRotation=i.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(l1(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=lQ.update(()=>{var t,n,r;let i;hN.hasAnimatedSinceResize=!0,um.layout++,this.motionValue||(this.motionValue=u_(0)),this.motionValue.jump(0,!1),this.currentAnimation=(t=this.motionValue,n=[0,1e3],r={...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onStop:()=>{um.layout--},onComplete:()=>{um.layout--,e.onComplete&&e.onComplete(),this.completeAnimation()}},(i=lx(t)?t:u_(t)).start(cK("",i,n,r)),i.animation),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(t&&n&&r){if(this!==e&&this.layout&&r&&fT(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||lb();let t=ht(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=ht(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}h0(t,n),dy(t,i),hr(this.projectionDeltaWithTransform,this.layoutCorrected,t,i
3)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new fo),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&fd("z",e,r,this.animationValues);for(let t=0;t<fl.length;t++)fd(`rotate${fl[t]}`,e,r,this.animationValues),fd(`skew${fl[t]}`,e,r,this.animationValues);for(let t in e.render(),r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility="hidden";return}let n=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility="",e.opacity="",e.pointerEvents=dA(t?.pointerEvents)||"",e.transform=n?n(this.latestValues,""):"none";return}let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=dA(t?.pointerEvents)||""),this.hasProjected&&!du(this.latestValues)&&(e.transform=n?n({},""):"none",this.hasProjected=!1);return}e.visibility="";let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();
3let o=function(e,t,n){let r="",i=e.x.translate/t.x,o=e.y.translate/t.y,s=n?.z||0;if((i||o||s)&&(r=`translate3d(${i}px, ${o}px, ${s}px) `),(1!==t.x||1!==t.y)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,pathRotation:i,rotateX:o,rotateY:s,skewX:a,skewY:l}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotate(${i}deg) `),o&&(r+=`rotateX(${o}deg) `),s&&(r+=`rotateY(${s}deg) `),a&&(r+=`skewX(${a}deg) `),l&&(r+=`skewY(${l}deg) `)}let a=e.x.scale*t.x,l=e.y.scale*t.y;return(1!==a||1!==l)&&(r+=`scale(${a}, ${l})`),r||"none"}(this.projectionDeltaWithTransform,this.treeScale,i);n&&(o=n(i,o)),e.transform=o;let{x:s,y:a}=this.projectionDelta;for(let t in e.transformOrigin=`${100*s.origin}% ${100*a.origin}% 0`,r.animationValues?e.opacity=r===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:e.opacity=r===this?void 0!==i.opacity?i.opacity:"":void 0!==i.opacityExit?i.opacityExit:0,de){if(void 0===i[t])continue;let{correct:n,applyTo:s,isCSSVariable:a}=de[t],l="none"===o?i[t]:n(i[t],r);if(s){let t=s.length;for(let n=0;n<t;n++)e[s[n]]=l}else a?this.options.visualElement.renderState.vars[t]=l:e[t]=l}this.options.layoutId&&(e.pointerEvents=r===this?dA(t?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(fy),this.root.sharedNodes.clear()}}}function fh(e){e.updateLayout()}function ff(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,o=t.source!==e.layout.source;if("size"===i)c9(e=>{let r=o?t.measuredBox[e]:t.layoutBox[e],i=ht(r);r.min=n[e].min,r.max=r.min+i});else if("x"===i||"y"===i){let e="x"===i?"y":"x";h1(o?t.measuredBox[e]:t.layoutBox[e],n[e])}else fT(i,t.layoutBox,n)&&c9(r=>{let i=o?t.measuredBox[r]:t.layoutBox[r],s=ht(n[r]);i.max=i.min+s,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+s)});let s=lv();hr(s,n,t.layoutBox);let a=lv();o?hr(a,e.applyTransform(r,!0),t.measuredBox):hr(a,n,t.layoutBox);let l=!h7(s),u=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:o}=r;if(i&&o){let s=e.options.layoutAnchor||void 0,a=lb();hs(a,t.layoutBox,i.layoutBox,s);let l=lb();hs(l,n,o.layoutBox,s),fn(a,l)||(u=!0),r.options.layoutRoot&&(e.relativeTarget=l,e.relativeTargetOrigin=a,e.relativeParent=r)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:a,layoutDelta:s,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function fp(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function fg(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function fm(e){e.clearSnapshot()}function fy(e){e.clearMeasurements()}function fv(e){e.isLayoutDirty=!0,e.updateLayout()}function fw(e){e.isLayoutDirty=!1}function fb(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function fx(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function fC(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function fk(e){e.resolveTargetDelta()}function fj(e){e.calcProjection()}function fM(e){e.resetSkewAndRotation()}function fL(e){e.removeLeadSnapshot()}function fS(e,t,n){e.translate=u7(t.translate,0,n),e.scale=u7(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function fE(e,t,n,r){e.min=u7(t.min,n.min,r),e.max=u7(t.max,n.max,r)}function fR(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let fV={duration:.45,ease:[.4,0,.1,1]},f_=e=>"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),f$=f_("applewebkit/")&&!f_("chrome/")?Math.round:lY;function fA(e){e.min=f$(e.min),e.max=f$(e.max)}function fT(e,t,n){return"position"===e||"preserve-aspect"===e&&!(.2>=Math.abs(fr(t)-fr(n)))}function fH(e){return e!==e.root&&e.scroll?.wasRoot}let fI=fc({attachResizeListener:(e,t)=>c7(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),fP={current:void 0},fO=fc({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!fP.current){let e=new fI({});e.mount(window),e.setOptions({layoutScroll:!0}),fP.current=e}return fP.current},resetTransform:(e,t)=>
3{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position});function fB(e,t){let n=hu(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function fN(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover","Start"===n);let i=r["onHover"+n];i&&lQ.postRender(()=>i(t,hx(t)))}function fW(e){return ha(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}let fz=(e,t)=>!!t&&(e===t||fz(e,t.parentElement)),fD=new WeakSet;function fF(e){return t=>{"Enter"===t.key&&e(t)}}function fZ(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}function fU(e){return hb(e)&&!(he.x||he.y)}let fq=new WeakSet;function fG(e,t,n){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap","Start"===n);let i=r["onTap"+("End"===n?"":n)];i&&lQ.postRender(()=>i(t,hx(t)))}let fY=new WeakMap,fX=new WeakMap,fK=e=>{let t=fY.get(e.target);t&&t(e)},fJ=e=>{e.forEach(fK)},fQ={some:0,all:1},f1=function(e,t){if("u"<typeof Proxy)return dq;let n=new Map,r=(n,r)=>dq(n,r,e,t);return new Proxy((e,t)=>r(e,t),{get:(i,o)=>"create"===o?r:(n.has(o)||n.set(o,dq(o,void 0,e,t)),n.get(o))})}({animation:{Feature:class extends dG{constructor(e){super(e),e.animationState||(e.animationState=function(e){let t=t=>Promise.all(t.map(({animation:t,options:n})=>(function(e,t,n={}){let r;if(e.notify("AnimationStart",t),Array.isArray(t))r=Promise.all(t.map(t=>c1(e,t,n)));else if("string"==typeof t)r=c1(e,t,n);else{let i="function"==typeof t?dY(e,t,n.custom):t;r=Promise.all(cJ(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})})(e,t,n))),n=c6(),r=!0,i=!1,o=t=>(n,r)=>{let i=dY(e,r,"exit"===t?e.presenceContext?.custom:void 0);if(i){let{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function s(s){let{props:a}=e,l=function e(t){if(!t)return;if(!t.isControllingVariants){let n=t.parent&&e(t.parent)||{};return void 0!==t.props.initial&&(n.initial=t.props.initial),n}let n={};for(let e=0;e<c0;e++){let r=uP[e],i=t.props[r];(uH(i)||!1===i)&&(n[r]=i)}return n}(e.parent)||{},u=[],d=new Set,c={},h=1/0;for(let t=0;t<c3;t++){var f,p;let g=c2[t],m=n[g],y=void 0!==a[g]?a[g]:l[g],v=uH(y),w=g===s?m.isActive:null;!1===w&&(h=t);let b=y===l[g]&&y!==a[g]&&v;if(b&&(r||i)&&e.manuallyAnimateOnMount&&(b=!1),m.protectedKeys={...c},!m.isActive&&null===w||!y&&!m.prevProp||uT(y)||"boolean"==typeof y)continue;if("exit"===g&&m.isActive&&!0!==w){m.prevResolvedValues&&(c={...c,...m.prevResolvedValues});continue}let x=(f=m.prevProp,"string"==typeof(p=y)?p!==f:!!Array.isArray(p)&&!c5(p,f)),C=x||g===s&&m.isActive&&!b&&v||t>h&&v,k=!1,j=Array.isArray(y)?y:[y],M=j.reduce(o(g),{});!1===w&&(M={});let{prevResolvedValues:L={}}=m,S={...L,...M},E=t=>{C=!0,d.has(t)&&(k=!0,d.delete(t)),m.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in S){let t=M[e],n=L[e];if(!c.hasOwnProperty(e))(dJ(t)&&dJ(n)?!c5(t,n)||x:t!==n)?null!=t?E(e):d.add(e):void 0!==t&&d.has(e)?E(e):m.protectedKeys[e]=!0}m.prevProp=y,m.prevResolvedValues=M,m.isActive&&(c={...c,...M}),(r||i)&&e.blockInitialAnimation&&(C=!1);let R=b&&x,V=!R||k;C&&V&&u.push(...j.map(t=>{let n={type:g};if("string"==typeof t&&(r||i)&&!R&&e.manuallyAnimateOnMount&&e.parent){let{parent:r}=e,i=dY(r,t);if(r.enteringChildren&&i){let{delayChildren:t}=i.transition||{};n.delay=cQ(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(d.size){let t={};if("boolean"!=typeof a.initial){let n=dY(e,Array.isArray(a.initial)?a.initial[0]:a.initial);n&&n.transition&&(t.transition=n.transition)}d.forEach(n=>{let r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=r??null}),u.push({animation:t})}let g=!!u.length;return r&&(!1===a.initial||a.initial===a.animate)&&!e.manuallyAnimateOnMount&&(g=!1),r=!1,i=!1,g?t(u):Promise.resolve()}return{animateChanges:s,setActive:function(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let i=s(t);for(let e in n)n[e].protectedKeys={};return i},setAnimateFunction:function(n){t=n(e)},getState:()=>n,reset:()=>{n=c6(),i=!0}}}(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();uT(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}},exit:{Feature:class extends dG{constructor(){super(...arguments),this.id=c8++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;if(e&&!1===n){if(this.isExitComplete){let{initial:e,custom:t}=this.node.getProps();if("string"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)){let n=dY(this.node,e,t);if(n){let{transition:e,transitionEnd:t,...r}=n;for(let e in r)this.node.getValue(e)?.jump(r[e])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}let r=this.node.animationState.setActive("exit",!e);t&&!e&&r.then(()=>
3{this.isExitComplete=!0,t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}},inView:{Feature:class extends dG{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var e;let t;this.stopObserver?.();let{viewport:n={}}=this.node.getProps(),{root:r,margin:i,amount:o="some",once:s}=n,a={root:r?r.current:void 0,rootMargin:i,threshold:"number"==typeof o?o:fQ[o]},l=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,s&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),i=t?n:r;i&&i(e)};this.stopObserver=(e=this.node.current,t=function({root:e,...t}){let n=e||document;fX.has(n)||fX.set(n,{});let r=fX.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(fJ,{root:e,...t})),r[i]}(a),fY.set(e,l),t.observe(e),()=>{fY.delete(e),t.unobserve(e)})}mount(){this.startObserver()}update(){if("u"<typeof IntersectionObserver)return;let{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}},tap:{Feature:class extends dG{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:n}=this.node.props;this.unmount=function(e,t,n={}){let[r,i,o]=fB(e,n),s=e=>{let r=e.currentTarget;if(!fU(e)||fq.has(e))return;fD.add(r),n.stopPropagation&&fq.add(e);let o=t(r,e),s=(e,t)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",l),fD.has(r)&&fD.delete(r),fU(e)&&"function"==typeof o&&o(e,{success:t})},a=e=>{s(e,r===window||r===document||n.useGlobalTarget||fz(r,e.target))},l=e=>{s(e,!1)};window.addEventListener("pointerup",a,i),window.addEventListener("pointercancel",l,i)};return r.forEach(e=>{((n.useGlobalTarget?window:e).addEventListener("pointerdown",s,i),fW(e))&&(e.addEventListener("focus",e=>((e,t)=>{let n=e.currentTarget;if(!n)return;let r=fF(()=>
3{if(fD.has(n))return;fZ(n,"down");let e=fF(()=>{fZ(n,"up")});n.addEventListener("keyup",e,t),n.addEventListener("blur",()=>fZ(n,"cancel"),t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)})(e,i)),hv.has(e.tagName)||!0===e.isContentEditable||e.hasAttribute("tabindex")||(e.tabIndex=0))}),o}(e,(e,t)=>(fG(this.node,t,"Start"),(e,{success:t})=>fG(this.node,e,t?"End":"Cancel")),{useGlobalTarget:t,stopPropagation:n?.tap===!1})}unmount(){}}},focus:{Feature:class extends dG{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=d1(c7(this.node.current,"focus",()=>this.onFocus()),c7(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends dG{mount(){let{current:e}=this.node;e&&(this.unmount=function(e,t,n={}){let[r,i,o]=fB(e,n);return r.forEach(e=>{let n,r=!1,o=!1,s=t=>{n&&(n(t),n=void 0),e.removeEventListener("pointerleave",l)},a=e=>{r=!1,window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",a),o&&(o=!1,s(e))},l=e=>{if("touch"!==e.pointerType){if(r){o=!0;return}s(e)}};e.addEventListener("pointerenter",r=>{if("touch"===r.pointerType||he.x||he.y)return;o=!1;let s=t(e,r);"function"==typeof s&&(n=s,e.addEventListener("pointerleave",l,i))},i),e.addEventListener("pointerdown",()=>{r=!0,window.addEventListener("pointerup",a,i),window.addEventListener("pointercancel",a,i)},i)}),o}(e,(e,t)=>(fN(this.node,t,"Start"),e=>fN(this.node,e,"End"))))}unmount(){}}},pan:{Feature:class extends dG{constructor(){super(...arguments),this.removePointerDownListener=lY}onPointerDown(e){this.session=new hL(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:hk(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:hB(e),onStart:hB(t),onMove:hB(n),onEnd:(e,t)=>{delete this.session,r&&lQ.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=hC(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends dG{constructor(e){super(e),this.removeGroupControls=lY,this.removeListeners=lY,this.controls=new hI(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||lY}update(){let{dragControls:e}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};e!==t&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},ProjectionNode:fO,MeasureLayout:hZ},layout:{ProjectionNode:fO,MeasureLayout:hZ}},(e,t)=>t.isSVG??dx(e)?new di(t):new dw(t,{allowProjection:e!==_.Fragment}));var f0=_;function f5(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}class f2 extends f0.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(fW(t)&&e.isPresent&&!this.props.isPresent&&!1!==this.props.pop){let e=t.offsetParent,n=fW(e)&&e.offsetWidth||0,r=fW(e)&&e.offsetHeight||0,i=getComputedStyle(t),o=this.props.sizeRef.current;o.height=parseFloat(i.height),o.width=parseFloat(i.width),o.top=t.offsetTop,o.left=t.offsetLeft,o.right=n-o.width-o.left,o.bottom=r-o.height-o.top,o.direction=i.direction}return null}componentDidUpdate(){}render(){return this.props.children}}function f3({children:e,isPresent:t,anchorX:n,anchorY:r,root:i,pop:o}){let s=(0,f0.useId)(),a=(0,f0.useRef)(null),l=(0,f0.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:"ltr"}),{nonce:u}=(0,f0.useContext)(dj),d=function(...e){return _.useCallback(function(...e){return t=>{let n=!1,r=e.map(e=>{let r=f5(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():f5(e[t],null)}}}}(...e),e)}(a,e.props?.ref??e?.ref);return(0,f0.useInsertionEffect)(()=>{let{width:e,height:d,top:c,left:h,right:f,bottom:p,direction:g}=l.current;if(t||!1===o||!a.current||!e||!d)return;let m="rtl"===g,y="left"===n?m?`right: ${f}`:`left: ${h}`:m?`left: ${h}`:`right: ${f}`,v="bottom"===r?`bottom: ${p}`:`top: ${c}`;a.current.dataset.motionPopId=s;let w=document.createElement("style");u&&(w.nonce=u);let b=i??document.head;return b.appendChild(w),w.sheet&&w.sheet.insertRule(` 4 [data-motion-pop-id="${s}"] { 5 position: absolute !important; 6 width: ${e}px !important; 7 height: ${d}px !important; 8 ${y}px !important; 9 ${v}px !important; 10 } 11 `),()=>{a.current?.removeAttribute("data-motion-pop-id"),b.contains(w)&&b.removeChild(w)}},[t]),(0,E.jsx)(f2,{isPresent:t,childRef:a,sizeRef:l,pop:o,children:!1===o?e:f0.cloneElement(e,{ref:d})})}let f4=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:s,anchorX:a,anchorY:l,root:u})=>{let d=dH(f6),c=(0,_.useId)(),h=!0,f=(0,_.useMemo)(()=>(h=!1,{id:c,initial:t,isPresent:n,custom:i,onExitComplete:e=>
11{for(let t of(d.set(e,!0),d.values()))if(!t)return;r&&r()},register:e=>(d.set(e,!1),()=>d.delete(e))}),[n,d,r]);return o&&h&&(f={...f}),(0,_.useMemo)(()=>{d.forEach((e,t)=>d.set(t,!1))},[n]),_.useEffect(()=>{n||d.size||!r||r()},[n]),e=(0,E.jsx)(f3,{pop:"popLayout"===s,isPresent:n,anchorX:a,anchorY:l,root:u,children:e}),(0,E.jsx)(dT.Provider,{value:f,children:e})};function f6(){return new Map}let f8=e=>e.key||"";function f9(e){let t=[];return _.Children.forEach(e,e=>{(0,_.isValidElement)(e)&&t.push(e)}),t}let f7=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:o="sync",propagate:s=!1,anchorX:a="left",anchorY:l="top",root:u})=>{let[d,c]=hz(s),h=(0,_.useMemo)(()=>f9(e),[e]),f=s&&!d?[]:h.map(f8),p=(0,_.useRef)(!0),g=(0,_.useRef)(h),m=dH(()=>new Map),y=(0,_.useRef)(new Set),[v,w]=(0,_.useState)(h),[b,x]=(0,_.useState)(h);dU(()=>{p.current=!1,g.current=h;for(let e=0;e<b.length;e++){let t=f8(b[e]);f.includes(t)?(m.delete(t),y.current.delete(t)):!0!==m.get(t)&&m.set(t,!1)}},[b,f.length,f.join("-")]);let C=[];if(h!==v){let e=[...h];for(let t=0;t<b.length;t++){let n=b[t],r=f8(n);f.includes(r)||(e.splice(t,0,n),C.push(n))}return"wait"===o&&C.length&&(e=C),x(f9(e)),w(h),null}let{forceRender:k}=(0,_.useContext)(dC);return(0,E.jsx)(E.Fragment,{children:b.map(e=>{let v=f8(e),w=(!s||!!d)&&(h===b||f.includes(v));return(0,E.jsx)(f4,{isPresent:w,initial:(!p.current||!!n)&&void 0,custom:t,presenceAffectsLayout:i,mode:o,root:u,onExitComplete:w?void 0:()=>{if(y.current.has(v)||!m.has(v))return;y.current.add(v),m.set(v,!0);let e=!0;m.forEach(t=>{t||(e=!1)}),e&&(k?.(),x(g.current),s&&c?.(),r&&r())},anchorX:a,anchorY:l,children:e},v)})})};var pe=[],pt="ResizeObserver loop completed with undelivered notifications.",pn=function(){var e;"function"==typeof ErrorEvent?e=new ErrorEvent("error",{message:pt}):((e=document.createEvent("Event")).initEvent("error",!1,!1),e.message=pt),window.dispatchEvent(e)};(y=j||(j={})).BORDER_BOX="border-box",y.CONTENT_BOX="content-box",y.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box";var pr=function(e){return Object.freeze(e)},pi=function(e,t){this.inlineSize=e,this.blockSize=t,pr(this)},po=function(){function e(e,t,n,r){return this.x=e,this.y=t,this.width=n,this.height=r,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,pr(this)}return e.prototype.toJSON=function(){return{x:this.x,y:this.y,top:this.top,right:this.right,bottom:this.bottom,left:this.left,width:this.width,height:this.height}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),ps=function(e){return e instanceof SVGElement&&"getBBox"in e},pa=function(e){if(ps(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var i=e.offsetWidth,o=e.offsetHeight;return!(i||o||e.getClientRects().length)},pl=function(e){if(e instanceof Element)return!0;var t,n=null==(t=null==e?void 0:e.ownerDocument)?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},pu=function(e){switch(e.tagName){case"INPUT":if("image"!==e.type)break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},pd="u">typeof window?window:{},pc=new WeakMap,ph=/auto|scroll/,pf=/^tb|vertical/,pp=/msie|trident/i.test(pd.navigator&&pd.navigator.userAgent),pg=function(e){return parseFloat(e||"0")},pm=function(e,t,n){return void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=!1),new pi((n?t:e)||0,(n?e:t)||0)},py=pr({devicePixelContentBoxSize:pm(),borderBoxSize:pm(),contentBoxSize:pm(),contentRect:new po(0,0,0,0)}),pv=function(e,t){if(void 0===t&&(t=!1),pc.has(e)&&!t)return pc.get(e);if(pa(e))return pc.set(e,py),py;var n=getComputedStyle(e),r=ps(e)&&e.ownerSVGElement&&e.getBBox(),i=!pp&&"border-box"===n.boxSizing,o=pf.test(n.writingMode||""),s=!r&&ph.test(n.overflowY||""),a=!r&&ph.test(n.overflowX||""),l=r?0:pg(n.paddingTop),u=r?0:pg(n.paddingRight),d=r?0:pg(n.paddingBottom),c=r?0:pg(n.paddingLeft),h=r?0:pg(n.borderTopWidth),f=r?0:pg(n.borderRightWidth),p=r?0:pg(n.borderBottomWidth),g=r?0:pg(n.borderLeftWidth),m=c+u,y=l+d,v=g+f,w=h+p,b=a?e.offsetHeight-w-e.clientHeight:0,x=s?e.offsetWidth-v-e.clientWidth:0,C=r?r.width:pg(n.width)-(i?m+v:0)-x,k=r?r.height:pg(n.height)-(i?y+w:0)-b,j=C+m+x+v,M=k+y+b+w,L=pr({devicePixelContentBoxSize:pm(Math.round(C*devicePixelRatio),Math.round(k*devicePixelRatio),o),borderBoxSize:pm(j,M,o),contentBoxSize:pm(C,k,o),contentRect:new po(c,l,C,k)});return pc.set(e,L),L},pw=function(e,t,n){var r=pv(e,n),i=r.borderBoxSize,o=r.contentBoxSize,s=r.devicePixelContentBoxSize;switch(t){case j.DEVICE_PIXEL_CONTENT_BOX:return s;case j.BORDER_BOX:return i;default:return o}},pb=function(e){var t=pv(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=pr([t.borderBoxSize]),this.contentBoxSize=pr([t.contentBoxSize]),this.devicePixelContentBoxSize=pr([t.devicePixelContentBoxSize])},px=function(e){if(pa(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},pC=function(){var e=1/0,t=[];pe.forEach(function(n){if(0!==n.activeTargets.length){var r=[];
11n.activeTargets.forEach(function(t){var n=new pb(t.target),i=px(t.target);r.push(n),t.lastReportedSize=pw(t.target,t.observedBox),i<e&&(e=i)}),t.push(function(){n.callback.call(n.observer,r,n.observer)}),n.activeTargets.splice(0,n.activeTargets.length)}});for(var n=0;n<t.length;n++)(0,t[n])();return e},pk=function(e){pe.forEach(function(t){t.activeTargets.splice(0,t.activeTargets.length),t.skippedTargets.splice(0,t.skippedTargets.length),t.observationTargets.forEach(function(n){n.isActive()&&(px(n.target)>e?t.activeTargets.push(n):t.skippedTargets.push(n))})})},pj=function(){var e=0;for(pk(0);pe.some(function(e){return e.activeTargets.length>0});)pk(e=pC());return pe.some(function(e){return e.skippedTargets.length>0})&&pn(),e>0},pM=[],pL=function(e){if(!M){var t=0,n=document.createTextNode("");new MutationObserver(function(){return pM.splice(0).forEach(function(e){return e()})}).observe(n,{characterData:!0}),M=function(){n.textContent="".concat(t?t--:t++)}}pM.push(e),M()},pS=function(e){pL(function(){requestAnimationFrame(e)})},pE=0,pR={attributes:!0,characterData:!0,childList:!0,subtree:!0},pV=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],p_=function(e){return void 0===e&&(e=0),Date.now()+e},p$=!1,pA=new(function(){function e(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return e.prototype.run=function(e){var t=this;if(void 0===e&&(e=250),!p$){p$=!0;var n=p_(e);pS(function(){var r=!1;try{r=pj()}finally{if(p$=!1,e=n-p_(),!pE)return;r?t.run(1e3):e>0?t.run(e):t.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var e=this,t=function(){return e.observer&&e.observer.observe(document.body,pR)};document.body?t():pd.addEventListener("DOMContentLoaded",t)},e.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),pV.forEach(function(t){return pd.addEventListener(t,e.listener,!0)}))},e.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),pV.forEach(function(t){return pd.removeEventListener(t,e.listener,!0)}),this.stopped=!0)},e}()),pT=function(e){!pE&&e>0&&pA.start(),(pE+=e)||pA.stop()},pH=function(){function e(e,t){this.target=e,this.observedBox=t||j.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var e,t=pw(this.target,this.observedBox,!0);return ps(e=this.target)||pu(e)||"inline"!==getComputedStyle(e).display||(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),pI=function(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t},pP=new WeakMap,pO=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return -1},pB=function(){function e(){}return e.connect=function(e,t){var n=new pI(e,t);pP.set(e,n)},e.observe=function(e,t,n){var r=pP.get(e),i=0===r.observationTargets.length;0>pO(r.observationTargets,t)&&(i&&pe.push(r),r.observationTargets.push(new pH(t,n&&n.box)),pT(1),pA.schedule())},e.unobserve=function(e,t){var n=pP.get(e),r=pO(n.observationTargets,t),i=1===n.observationTargets.length;r>=0&&(i&&pe.splice(pe.indexOf(n),1),n.observationTargets.splice(r,1),pT(-1))},e.disconnect=function(e){var t=this,n=pP.get(e);n.observationTargets.slice().forEach(function(n){return t.unobserve(e,n.target)}),n.activeTargets.splice(0,n.activeTargets.length)},e}(),pN=function(){function e(e){if(0==arguments.length)throw TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if("function"!=typeof e)throw TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");pB.connect(this,e)}return e.prototype.observe=function(e,t){if(0==arguments.length)throw TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!pl(e))throw TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");pB.observe(this,e,t)},e.prototype.unobserve=function(e){if(0==arguments.length)throw TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!pl(e))throw TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");pB.unobserve(this,e)},e.prototype.disconnect=function(){pB.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();let pW=_.default.createContext(!0);function pz(){throw Error("A function wrapped in useEffectEvent can't be called during rendering.")}let pD="use"in _.default?()=>{try{return _.default.use(pW)}catch{return!1}}:()=>!1;function pF(e){let t=_.default.useRef(pz);return _.default.useInsertionEffect(()=>{t.current=e},[e]),(...e)=>(pD()&&pz(),(0,t.current)(...e))}
11let pZ=(g=void 0,c={color:{base:function(e){let t={};for(let n of eo)t[n]=function(e,t){let n=ew(e?.base?.["*"],e?.base?.[t]),r=n._hue||e?.base?.[t]?._hue||"gray";return{...n,_hue:r,avatar:T.reduce((e,t)=>({...e,[t]:ew({_hue:t},n.avatar?.["*"],n.avatar?.[t])}),{}),badge:es.reduce((t,i)=>({...t,[i]:{_hue:e?.base?.[i]?._hue||r,...n.badge?.["*"],...n.badge?.[i]}}),{})}}(e,n);return t}(d=ew(ey,g?.color)),button:function(e){let t={};for(let n of el)t[n]=function(e,t){let n={};for(let r of es)n[r]=function(e,t,n){let r={};for(let i of ea)r[i]=function(e,t,n,r){let i=ew(e?.button?.[n]?.["*"]?.["*"],e?.button?.[n]?.[t]?.["*"],e?.button?.[n]?.["*"]?.[r],e?.button?.[n]?.[t]?.[r]),o=i._hue||e?.base?.[t]?._hue;return{...i,_hue:o,avatar:T.reduce((e,t)=>({...e,[t]:ew({_hue:t},i.avatar?.["*"],i.avatar?.[t])}),{}),badge:es.reduce((t,n)=>({...t,[n]:{_hue:e?.base?.[n]?._hue||o,...i.badge?.["*"],...i.badge?.[n]}}),{})}}(e,n,t,i);return r}(e,t,r);return n}(e,n);return t}(d),input:function(e){let t={};for(let n of eu)t[n]=function(e,t){let n={};for(let r of ed)n[r]=function(e,t,n){let r=ew(e?.input?.["*"]?.["*"],e?.
11input?.[t]?.["*"],e?.input?.["*"]?.[n],e?.input?.[t]?.[n]),i=r._hue||e?.input?.[t]?._hue;return{...r,_hue:i}}(e,t,r);return n}(e,n);return t}(d),selectable:function(e){let t={};for(let n of es)t[n]=function(e,t){let n={_hue:e?.selectable?.[t]?._hue||e?.base?.[t]?._hue};for(let r of ea)n[r]=function(e,t,n){let r=ew(e?.selectable?.["*"]?.["*"],e?.selectable?.[t]?.["*"],e?.selectable?.["*"]?.[n],e?.selectable?.[t]?.[n]),i=r._hue||e?.base?.[t]?._hue;return{...r,_hue:i,avatar:T.reduce((e,t)=>({...e,[t]:ew({_hue:t},r.avatar?.["*"],r.avatar?.[t])}),{}),badge:es.reduce((t,n)=>({...t,[n]:{_hue:e?.base?.[n]?._hue||i,...r.badge?.["*"],...r.badge?.[n]}}),{})}}(e,t,r);return n}(e,n);return t}(d),syntax:d.syntax}},K(h={},"light",()=>ex({scheme:"light"},c)),K(h,"dark",()=>ex({scheme:"dark"},c)),et({_version:2,avatar:(void 0)??I,button:(void 0)??P,card:(void 0)??O,color:(a=h,v=void 0,o=v?.palette??{black:{title:"Black",hex:"#0d0e12"},white:{title:"White",hex:"#ffffff"},gray:{50:{title:"Gray 50",hex:"#f6f6f8"},100:{title:"Gray 100",hex:"#eeeef1"},200:{title:"Gray 200",hex:"#e3e4e8"},300:{title:"Gray 300",hex:"#bbbdc9"},400:{title:"Gray 400",hex:"#9499ad"},500:{title:"Gray 500",hex:"#727892"},600:{title:"Gray 600",hex:"#515870"},700:{title:"Gray 700",hex:"#383d51"},800:{title:"Gray 800",hex:"#252837"},900:{title:"Gray 900",hex:"#1b1d27"},950:{title:"Gray 950",hex:"#13141b"}},blue:{50:{title:"Blue 50",hex:"#f5f8ff"},100:{title:"Blue 100",hex:"#e5edff"},200:{title:"Blue 200",hex:"#dbe5ff"},300:{title:"Blue 300",hex:"#a8bfff"},400:{title:"Blue 400",hex:"#7595ff"},500:{title:"Blue 500",hex:"#556bfc"},600:{title:"Blue 600",hex:"#4043e7"},700:{title:"Blue 700",hex:"#2927aa"},800:{title:"Blue 800",hex:"#192457"},900:{title:"Blue 900",hex:"#161a41"},950:{title:"Blue 950",hex:"#101228"}},purple:{50:{title:"Purple 50",hex:"#f8f5ff"},100:{title:"Purple 100",hex:"#f1ebff"},200:{title:"Purple 200",hex:"#ece1fe"},300:{title:"Purple 300",hex:"#ccb1fc"},400:{title:"Purple 400",hex:"#b087f7"},500:{title:"Purple 500",hex:"#8f57ef"},600:{title:"Purple 600",hex:"#721fe5"},700:{title:"Purple 700",hex:"#4c1a9e"},800:{title:"Purple 800",hex:"#2f1862"},900:{title:"Purple 900",hex:"#23173f"},950:{title:"Purple 950",hex:"#181128"}},magenta:{50:{title:"Magenta 50",hex:"#fef6f9"},100:{title:"Magenta 100",hex:"#fde8ef"},200:{title:"Magenta 200",hex:"#fcdee9"},300:{title:"Magenta 300",hex:"#f7abc5"},400:{title:"Magenta 400",hex:"#f0709b"},500:{title:"Magenta 500",hex:"#e72767"},600:{title:"Magenta 600",hex:"#b11651"},700:{title:"Magenta 700",hex:"#7c1342"},800:{title:"Magenta 800",hex:"#4b1130"},900:{title:"Magenta 900",hex:"#341325"},950:{title:"Magenta 950",hex:"#1f0f14"}},red:{50:{title:"Red 50",hex:"#fff6f5"},100:{title:"Red 100",hex:"#ffe7e5"},200:{title:"Red 200",hex:"#ffdedc"},300:{title:"Red 300",hex:"#fdada5"},400:{title:"Red 400",hex:"#f77769"},500:{title:"Red 500",hex:"#ef4434"},600:{title:"Red 600",hex:"#cc2819"},700:{title:"Red 700",hex:"#8b2018"},800:{title:"Red 800",hex:"#4d1714"},900:{title:"Red 900",hex:"#321615"},950:{title:"Red 950",hex:"#1e1011"}},orange:{50:{title:"Orange 50",hex:"#fff7f0"},100:{title:"Orange 100",hex:"#ffeadb"},200:{title:"Orange 200",hex:"#ffddc7"},300:{title:"Orange 300",hex:"#ffb685"},400:{title:"Orange 400",hex:"#ff8e42"},500:{title:"Orange 500",hex:"#fa6400"},600:{title:"Orange 600",hex:"#b14802"},700:{title:"Orange 700",hex:"#7c3404"},800:{title:"Orange 800",hex:"#461e07"},900:{title:"Orange 900",hex:"#32160b"},950:{title:"Orange 950",hex:"#21120d"}},yellow:{50:{title:"Yellow 50",hex:"#fefae1"},100:{title:"Yellow 100",hex:"#fcf3bb"},200:{title:"Yellow 200",hex:"#f9e994"},300:{title:"Yellow 300",hex:"#f7d455"},400:{title:"Yellow 400",hex:"#f9bc15"},500:{title:"Yellow 500",hex:"#d28a04"},600:{title:"Yellow 600",hex:"#965908"},700:{title:"Yellow 700",hex:"#653a0b"},800:{title:"Yellow 800",hex:"#3b220c"},900:{title:"Yellow 900",hex:"#271a11"},950:{title:"Yellow 950",hex:"#181410"}},green:{50:{title:"Green 50",hex:"#e7fef5"},100:{title:"Green 100",hex:"#c5fce8"},200:{title:"Green 200",hex:"#a9f9dc"},300:{title:"Green 300",hex:"#59f3ba"},400:{title:"Green 400",hex:"#0ff0a1"},500:{title:"Green 500",hex:"#04b97a"},600:{title:"Green 600",hex:"#01794f"},700:{title:"Green 700",hex:"#015133"},800:{title:"Green 800",hex:"#023120"},900:{title:"Green 900",hex:"#06231a"},950:{title:"Green 950",hex:"#071715"}},cyan:{50:{title:"Cyan 50",hex:"#e7fefe"},100:{title:"Cyan 100",hex:"#c5fcfc"},200:{title:"Cyan 200",hex:"#96f8f8"},300:{title:"Cyan 300",hex:"#62efef"},400:{title:"Cyan 400",hex:"#18e2e2"},500:{title:"Cyan 500",hex:"#04b8be"},600:{title:"Cyan 600",hex:"#037782"},700:{title:"Cyan 700",hex:"#024950"},800:{title:"Cyan 800",hex:"#042f34"},900:{title:"Cyan 900",hex:"#072227"},950:{title:"Cyan 950",hex:"#0d181c"}}},K(s={},"light",()=>eP(o,a.light)),K(s,"dark",()=>eP(o,a.dark)),s),container:(void 0)??[320,640,960,1280,1600,1920],font:(void 0)??{code:{family:"ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace",weights:{regular:400,medium:500,semibold:600,bold:700},sizes:[{ascenderHeight:4,descenderHeight:4,fontSize:10,iconSize:17,lineHeight:15,letterSpacing:0},{ascenderHeight:5,descenderHeight:5,fontSize:13,iconSize:21,lineHeight:19,letterSpacing:0},{ascenderHeight:6,descenderHeight:6,fontSize:16,iconSize:25,lineHeight:23,letterSpacing:0},{ascenderHeight:7,descenderHeight:7,fontSize:19,iconSize:29,lineHeight:27,letterSpacing:0}
11,{ascenderHeight:8,descenderHeight:8,fontSize:22,iconSize:33,lineHeight:31,letterSpacing:0}]},heading:{family:'Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Liberation Sans", Helvetica, Arial, system-ui, sans-serif',weights:{regular:700,medium:800,semibold:900,bold:900},sizes:[{ascenderHeight:5,descenderHeight:5,fontSize:13,iconSize:17,lineHeight:19,letterSpacing:0},{ascenderHeight:6,descenderHeight:6,fontSize:16,iconSize:25,lineHeight:23,letterSpacing:0},{ascenderHeight:7,descenderHeight:7,fontSize:21,iconSize:33,lineHeight:29,letterSpacing:0},{ascenderHeight:8,descenderHeight:8,fontSize:27,iconSize:41,lineHeight:35,letterSpacing:0},{ascenderHeight:9.5,descenderHeight:8.5,fontSize:33,iconSize:49,lineHeight:41,letterSpacing:0},{ascenderHeight:10.5,descenderHeight:9.5,fontSize:38,iconSize:53,lineHeight:47,letterSpacing:0}]},label:{family:'Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Liberation Sans", system-ui, sans-serif',weights:{regular:600,medium:700,semibold:800,bold:900},sizes:[{ascenderHeight:2,descenderHeight:2,fontSize:8.1,iconSize:13,lineHeight:10,letterSpacing:.5},{ascenderHeight:2,descenderHeight:2,fontSize:9.5,iconSize:15,lineHeight:11,letterSpacing:.5},{ascenderHeight:2,descenderHeight:2,fontSize:10.8,iconSize:17,lineHeight:12,letterSpacing:.5},{ascenderHeight:2,descenderHeight:2,fontSize:12.25,iconSize:19,lineHeight:13,letterSpacing:.5},{ascenderHeight:2,descenderHeight:2,fontSize:13.6,iconSize:21,lineHeight:14,letterSpacing:.5},{ascenderHeight:2,descenderHeight:2,fontSize:15,iconSize:23,lineHeight:15,letterSpacing:.5}]},text:{family:'Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Liberation Sans", Helvetica, Arial, system-ui, sans-serif',weights:{regular:400,medium:500,semibold:600,bold:700},sizes:[{ascenderHeight:4,descenderHeight:4,fontSize:10,iconSize:17,lineHeight:15,letterSpacing:0},{ascenderHeight:5,descenderHeight:5,fontSize:13,iconSize:21,lineHeight:19,letterSpacing:0},{ascenderHeight:6,descenderHeight:6,fontSize:15,iconSize:25,lineHeight:23,letterSpacing:0},{ascenderHeight:7,descenderHeight:7,fontSize:18,iconSize:29,lineHeight:27,letterSpacing:0},{ascenderHeight:8,descenderHeight:8,fontSize:21,iconSize:33,lineHeight:31,letterSpacing:0}]}},input:(void 0)??N,layer:(void 0)??B,media:(void 0)??[360,600,900,1200,1800,2400],radius:(void 0)??[0,1,3,6,9,12,21],shadow:(void 0)??[null,{umbra:[0,0,0,0],penumbra:[0,0,0,0],ambient:[0,0,0,0]},{umbra:[0,3,5,-2],penumbra:[0,6,10,0],ambient:[0,1,18,1]},{umbra:[0,7,8,-4],penumbra:[0,12,17,2],ambient:[0,5,22,4]},{umbra:[0,9,11,-5],penumbra:[0,18,28,2],ambient:[0,7,34,6]},{umbra:[0,11,15,-7],penumbra:[0,24,38,3],ambient:[0,9,46,8]}],space:(void 0)??[0,4,8,12,20,32,52,84,136,220],style:(void 0)??{button:{root:{transition:"background-color 100ms,border-color 100ms,color 100ms"}}}})),pU=[],pq={},pG={initial:{scale:.97,willChange:"transform"},hidden:{opacity:0},visible:{opacity:1,transition:{when:"beforeChildren",duration:.1}},scaleIn:{scale:1},scaleOut:{scale:.97}},pY={hidden:{opacity:0},visible:{opacity:1}},pX={type:"spring",visualDuration:.2,bounce:.25};function pK(e){return e instanceof Node&&e.nodeType===Node.ELEMENT_NODE}function pJ(e){return pK(e)&&"A"===e.nodeName}function pQ(e){return pK(e)&&"BUTTON"===e.nodeName}function p1(e,t){return e.contains(t)||e===t}function p0(e){return 0===e?0:`${e/16}rem`}function p5(e,t,n){return(t?.map(n)||[]).map((t,n)=>0===n?t:{[`@media screen and (min-width: ${e[n-1]}px)`]:t})}function p2(e,t){return void 0===e?t||pU:Array.isArray(e)?e:[e]}function p3(e,t,n=pU){if(!Array.isArray(n))throw Error("the property must be array of numbers");if(0===n.length)return null;let{media:r,space:i}=G(e);return p5(r,n,e=>{var n;return n=p0(i[e]),t.reduce((e,t)=>(e[t]=n,e),{})})}function p4(e,t){let{$size:n,$weight:r}=t,{font:i,media:o}=G(t.theme),{family:s,sizes:a,weights:l}=i[e],u=r&&l[r]||l.regular,d=a[2],c={position:"relative",fontFamily:s,fontWeight:`${u}`,padding:"1px 0",margin:0,"&:before":{content:'""',display:"block",height:0}
11,"&:after":{content:'""',display:"block",height:0},"& > code, & > span":{display:"block"},"&:not([hidden])":{display:"block"}};return n?[c,...p5(o,n,e=>(function(e){let{ascenderHeight:t,descenderHeight:n,fontSize:r,iconSize:i,letterSpacing:o,lineHeight:s}=e,a=t+n,l=s-a,u=2*Math.floor(1.125*r/2)+1;return{fontSize:p0(r),lineHeight:`calc(${s} / ${r})`,letterSpacing:p0(o),transform:`translateY(${p0(n)})`,"&:before":{marginTop:`calc(${p0(0-a)} - 1px)`},"&:after":{marginBottom:"-1px"},"& svg:not([data-sanity-icon])":{fontSize:`calc(${u} / 16 * 1rem)`,margin:p0((l-u)/2)},"& [data-sanity-icon]":{fontSize:`calc(${i} / 16 * 1rem)`,margin:p0((l-i)/2)}}})(a[e]||d))]:(p4.warned||(console.warn("No size specified for responsive font",{fontKey:e,$size:n,props:t,base:c}),p4.warned=!0),[c])}function p6(e){let{media:t}=G(e.theme);return p5(t,e.$align,e=>({textAlign:e}))}let p8="u">typeof globalThis?globalThis:"u">typeof window?window:"u">typeof self?self:e.g;function p9(e,t){let n=Symbol.for(e);if(typeof document>"u"){let n=(0,_.createContext)(t);return n.displayName=e,n}return p8[n]=p8[n]||(0,_.createContext)(t),p8[n]}let p7=p9("@sanity/ui/context/theme",null);function ge(e){let t,n,r,i,o=(0,eU.c)(15),s=(0,_.useContext)(p7),{children:a}=e,l=e.scheme??(s?.scheme||"light"),u=e.theme??(s?.theme||null),d=e.tone??(s?.tone||"default");t:{let e;if(!u){t=null;break t}o[0]!==u||o[1]!==l||o[2]!==d?(e={version:0,theme:u,scheme:l,tone:d},o[0]=u,o[1]=l,o[2]=d,o[3]=e):e=o[3],t=e}let c=t;n:{let e;if(!u){n=null;break n}o[4]!==u||o[5]!==l||o[6]!==d?(e=function(e,t,n){var r,i,o,s,a;let l,u=function(e,t,n){let r=eZ.get(t);if(!r)return;let i=r.get(n);if(i)return i.get(e)}(e,t,n);if(u)return u;let d=Y(e)?et(e):e,c=Y(e)?e:function(e){if(e.v2)return e.v2;let t=X.get(e);if(t)return t;let{avatar:n,button:r,color:i,container:o,fonts:s,input:a,layer:l,media:u,radius:d,shadows:c,space:h,styles:f}=e,p={_version:2,avatar:{...I,...n},button:{...P,...r},card:O,color:{light:{transparent:z(i.light.transparent),default:z(i.light.default),neutral:z(i.light.transparent),primary:z(i.light.primary),suggest:z(i.light.primary),positive:z(i.light.positive),caution:z(i.light.caution),critical:z(i.light.critical)},dark:{transparent:z(i.dark.transparent),default:z(i.dark.default),neutral:z(i.dark.transparent),primary:z(i.dark.primary),suggest:z(i.dark.primary),positive:z(i.dark.positive),caution:z(i.dark.caution),critical:z(i.dark.critical)}},container:o,font:s,input:{...N,...a,checkbox:{...N.checkbox,...a.checkbox},radio:{...N.radio,...a.radio},switch:{...N.switch,...a.switch}},layer:l??B,media:u,radius:d,shadow:c,space:h,style:f};return X.set(e,p),p}(e),h=d.layer||B,f=c.color[t]||c.color.light,p="neutral"in(r=f[n]||f.default).badge?r:{...r,badge:{...r.badge,neutral:r.badge.default,suggest:r.badge.primary},button:{bleed:{...r.button.bleed,neutral:r.button.bleed.default,suggest:r.button.bleed.primary},default:{...r.button.default,neutral:r.button.default.default,suggest:r.button.default.primary},ghost:{...r.button.ghost,neutral:r.button.ghost.default,suggest:r.button.ghost.primary}},selectable:{...r.selectable,neutral:r.selectable.default,suggest:r.selectable.primary}},g=c.layer||B,{color:m,...y}=d,v={...y,layer:h,v2:{...c,_resolved:!0,color:p,layer:g}};K(v,"color",()=>{let e=d.color[t]||d.color.light;return e[n]||e.default});let w={sanity:v};return i=e,o=t,s=n,a=w,eZ.has(o)||eZ.set(o,new Map),(l=eZ.get(o)).has(s)||l.set(s,new WeakMap),l.get(s).set(i,a),w}(u,l,d),o[4]=u,o[5]=l,o[6]=d,o[7]=e):e=o[7],n=e}let h=n;if(!h){let e;return o[8]===Symbol.for("react.memo_cache_sentinel")?(e=(0,E.jsx)("pre",{children:'ThemeProvider: no "theme" property provided'}),o[8]=e):e=o[8],e}return o[9]!==a||o[10]!==h?(r=(0,E.jsx)(nI,{theme:h,children:a}),o[9]=a,o[10]=h,o[11]=r):r=o[11],o[12]!==r||o[13]!==c?(i=(0,E.jsx)(p7.Provider,{value:c,children:r}),o[12]=r,o[13]=c,o[14]=i):i=o[14],i}function gt(){let e=(0,_.useContext)(p7);if(!e)throw Error("useRootTheme(): missing context value");return e}function gn(e){let t,n=(0,eU.c)(5),{children:r,scheme:i,tone:o}=e,s=gt(),a=i||s.scheme;return n[0]!==r||n[1]!==s.theme||n[2]!==a||n[3]!==o?(t=(0,E.jsx)(ge,{scheme:a,theme:s.theme,tone:o,children:r}),n[0]=r,n[1]=s.theme,n[2]=a,n[3]=o,n[4]=t):t=n[4],t}function gr(){let e,t=(0,eU.c)(2),n=function(){let e=_.default.useContext(nH);if(!e)throw tR(18);return e}();return t[0]!==n?(e=G(n),t[0]=n,t[1]=e):e=t[1],e}function gi(e){let{card:t,media:n}=G(e.theme),r=`${t.border?.width??1}px solid var(--card-border-color)`;return p5(n,e.$border,e=>e?{"&&":{border:r}}:{"&&":{border:0}})}function go(e){let{card:t,media:n}=G(e.theme),r=`${t.border?.width??1}px solid var(--card-border-color)`;return p5(n,e.$borderTop,e=>e?{"&&":{borderTop:r}}:{"&&":{borderTop:0}})}function gs(e){let{card:t,media:n}=G(e.theme),r=`${t.border?.width??1}px solid var(--card-border-color)`;return p5(n,e.$borderRight,e=>e?{"&&":{borderRight:r}}:{"&&":{borderRight:0}})}function ga(e){let{card:t,media:n}=G(e.theme),r=`${t.border?.width??1}px solid var(--card-border-color)`;return p5(n,e.$borderBottom,e=>e?{"&&":{borderBottom:r}}:{"&&":{borderBottom:0}})}function gl(e){let{card:t,media:n}=G(e.theme),r=`${t.border?.width??1}px solid var(--card-border-color)`;return p5(n,e.$borderLeft,e=>e?{"&&":{borderLeft:r}}:{"&&":{borderLeft:0}})}ge.displayName="ThemeProvider",gn.displayName="ThemeColorProvider";let gu={'&[data-as="ul"],&[data-as="ol"]':{listStyle:"none"}},gd={content:"content-box",border:"border-box"},gc={stretch:"stretch",fill:"100%"};function gh(e){let{media:t}=G(e.theme);return p5(t,e.$display,e=>({"&:not([hidden])":{display:e}}))}function gf(e){let{media:t}=G(e.theme);return p5(t,e.$sizing,e=>({boxSizing:gd[e]}))}function gp(e){let{media:t}=G(e.theme);return p5(t,e.$height,e=>({height:gc[e]}))}function gg(e){let{media:t}=G(e.theme);return p5(t,e.$overflow,e=>({overflow:e}))}let gm={minWidth:0,minHeight:0};function gy(){return[gm,gv]}
11function gv(e){let{media:t}=G(e.theme);return e.$flex?p5(t,e.$flex,e=>({flex:`${e}`})):pU}let gw={"&&:not([hidden])":{display:"flex"}};function gb(e){let{media:t}=G(e.theme);return p5(t,e.$align,e=>({alignItems:e}))}function gx(e){let{media:t,space:n}=G(e.theme);return p5(t,e.$gap,e=>({gap:e?p0(n[e]):void 0}))}function gC(e){let{media:t}=G(e.theme);return p5(t,e.$wrap,e=>({flexWrap:e}))}function gk(e){let{media:t}=G(e.theme);return p5(t,e.$justify,e=>({justifyContent:e}))}function gj(e){let{media:t}=G(e.theme);return p5(t,e.$direction,e=>({flexDirection:e}))}function gM(e){return`inset 0 0 0 ${e.width}px ${e.color}`}function gL(e){let{base:t,border:n,focusRing:r}=e,i=r.offset+r.width,o=0-r.offset,s=t?t.bg:"var(--card-bg-color)";return[o>0&&`inset 0 0 0 ${o}px var(--card-focus-ring-color)`,n&&gM(n),o<0&&`0 0 0 ${0-o}px ${s}`,i>0&&`0 0 0 ${i}px var(--card-focus-ring-color)`].filter(Boolean).join(",")}let gS={auto:"auto",full:"1 / -1"},gE={auto:"auto",full:"1 / -1"};function gR(e){let{media:t}=G(e.theme);return p5(t,e.$row,e=>"number"==typeof e?{gridRow:`span ${e} / span ${e}`}:{gridRow:gS[e]})}function gV(e){let{media:t}=G(e.theme);return p5(t,e.$rowStart,e=>({gridRowStart:`${e}`}))}function g_(e){let{media:t}=G(e.theme);return p5(t,e.$rowEnd,e=>({gridRowEnd:`${e}`}))}function g$(e){let{media:t}=G(e.theme);return p5(t,e.$column,e=>"number"==typeof e?{gridColumn:`span ${e} / span ${e}`}:{gridColumn:gE[e]})}function gA(e){let{media:t}=G(e.theme);return p5(t,e.$columnStart,e=>({gridColumnStart:`${e}`}))}function gT(e){let{media:t}=G(e.theme);return p5(t,e.$columnEnd,e=>({gridColumnEnd:`${e}`}))}let gH={"&&:not([hidden])":{display:"grid"},'&[data-as="ul"],&[data-as="ol"]':{listStyle:"none"}},gI={auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"},gP={auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"};function gO(e){let{media:t}=G(e.theme);return p5(t,e.$autoFlow,e=>({gridAutoFlow:e}))}function gB(e){let{media:t}=G(e.theme);return p5(t,e.$autoRows,e=>({gridAutoRows:e&&gP[e]}))}function gN(e){let{media:t}=G(e.theme);return p5(t,e.$autoCols,e=>({gridAutoColumns:e&&gI[e]}))}function gW(e){let{media:t}=G(e.theme);return p5(t,e.$columns,e=>({gridTemplateColumns:e&&`repeat(${e},minmax(0,1fr));`}))}function gz(e){let{media:t}=G(e.theme);return p5(t,e.$rows,e=>({gridTemplateRows:e&&`repeat(${e},minmax(0,1fr));`}))}function gD(e){let{media:t,space:n}=G(e.theme);return p5(t,e.$gap,e=>({gridGap:e?p0(n[e]):void 0}))}function gF(e){let{media:t,space:n}=G(e.theme);return p5(t,e.$gapX,e=>({columnGap:e?p0(n[e]):void 0}))}function gZ(e){let{media:t,space:n}=G(e.theme);return p5(t,e.$gapY,e=>({rowGap:e?p0(n[e]):void 0}))}function gU(e){let{$fontSize:t,$iconLeft:n,$iconRight:r,$padding:i,$space:o}=e,{font:s,media:a,space:l}=G(e.theme),u=Math.max(i.length,o.length,t.length),d=[],c=[],h=[];for(let e=0;e<u;e+=1)h[e]=void 0===t[e]?h[e-1]:t[e],d[e]=void 0===i[e]?d[e-1]:i[e],c[e]=void 0===o[e]?c[e-1]:o[e];return p5(a,d,(e,t)=>{let i=s.text.sizes[h[t]]||s.text.sizes[2],o=i.lineHeight-i.ascenderHeight-i.descenderHeight,a=l[d[t]],u=l[c[t]],f={paddingTop:p0(a-i.ascenderHeight),paddingRight:p0(a),paddingBottom:p0(a-i.descenderHeight),paddingLeft:p0(a)};return r&&(f.paddingRight=p0(a+o+u)),n&&(f.paddingLeft=p0(a+o+u)),f})}function gq(e){return gU({...e,$iconRight:!0})}let gG=nD` 12 &:not([hidden]) { 13 display: flex; 14 } 15 16 align-items: center; 17`;function gY(){return gG}function gX(e){let{$scheme:t,$tone:n,$weight:r}=e,{color:i,font:o}=G(e.theme);return nD` 18 appearance: none; 19 background: none; 20 border: 0; 21 border-radius: 0; 22 outline: none; 23 width: 100%; 24 box-sizing: border-box; 25 font-family: ${o.text.family}; 26 font-weight: ${r&&o.text.weights[r]||o.text.weights.regular}; 27 margin: 0; 28 position: relative; 29 z-index: 1; 30 display: block; 31 32 /* NOTE: This is a hack to disable Chromeâs autofill styles */ 33 &:-webkit-autofill, 34 &:-webkit-autofill:hover, 35 &:-webkit-autofill:focus, 36 &:-webkit-autofill:active { 37 -webkit-text-fill-color: var(--input-fg-color) !important; 38 transition: background-color 5000s; 39 transition-delay: 86400s /* 24h */; 40 } 41 42 /* &:is(textarea) */ 43 &[data-as='textarea'] { 44 resize: none; 45 } 46 47 color: var(--input-fg-color); 48 49 &::placeholder { 50 color: var(--input-placeholder-color); 51 } 52 53 &[data-scheme='${t}'][data-tone='${n}'] { 54 --input-fg-color: ${i.input.default.enabled.fg}; 55 --input-placeholder-color: ${i.input.default.enabled.placeholder}; 56 57 /* enabled */
58 &:not(:invalid):not(:disabled):not(:read-only) { 59 --input-fg-color: ${i.input.default.enabled.fg}; 60 --input-placeholder-color: ${i.input.default.enabled.placeholder}; 61 } 62 63 /* disabled */ 64 &:not(:invalid):disabled { 65 --input-fg-color: ${i.input.default.disabled.fg}; 66 --input-placeholder-color: ${i.input.default.disabled.placeholder}; 67 } 68 69 /* invalid */ 70 &:invalid { 71 --input-fg-color: ${i.input.invalid.enabled.fg}; 72 --input-placeholder-color: ${i.input.invalid.enabled.placeholder}; 73 } 74 75 /* readOnly */ 76 &:read-only { 77 --input-fg-color: ${i.input.default.readOnly.fg}; 78 --input-placeholder-color: ${i.input.default.readOnly.placeholder}; 79 } 80 } 81 `}function gK(e){let{font:t,media:n}=G(e.theme);return p5(n,e.$fontSize,e=>{let n=t.text.sizes[e]||t.text.sizes[2];return{fontSize:p0(n.fontSize),lineHeight:`${n.lineHeight/n.fontSize}`}})}function gJ(e){let{$hasPrefix:t,$hasSuffix:n,$scheme:r,$tone:i,$unstableDisableFocusRing:o}=e,{color:s,input:a}=G(e.theme);return nD` 82 --input-box-shadow: none; 83 84 position: absolute; 85 top: 0; 86 left: 0; 87 right: 0; 88 bottom: 0; 89 display: block; 90 pointer-events: none; 91 z-index: 0; 92 93 background-color: var(--card-bg-color); 94 box-shadow: var(--input-box-shadow); 95 96 border-top-left-radius: ${t?0:void 0}; 97 border-bottom-left-radius: ${t?0:void 0}; 98 border-top-right-radius: ${n?0:void 0}; 99 border-bottom-right-radius: ${n?0:void 0}; 100 101 &[data-scheme='${r}'][data-tone='${i}'] { 102 --card-bg-color: ${s.input.default.enabled.bg}; 103 --card-fg-color: ${s.input.default.enabled.fg}; 104 105 /* enabled */ 106 *:not(:disabled) + &[data-border] { 107 --input-box-shadow: ${gM({color:s.input.default.enabled.border,width:a.border.width})}; 108 } 109 110 /* invalid */ 111 *:not(:disabled):invalid + & { 112 --card-bg-color: ${s.input.invalid.enabled.bg}; 113 --card-fg-color: ${s.input.invalid.enabled.fg}; 114 115 &[data-border] { 116 --input-box-shadow: ${gM({color:s.input.invalid.enabled.border,width:a.border.width})}; 117 } 118 } 119 120 /* focused */ 121 *:not(:disabled):focus + & { 122 &[data-border] { 123 --input-box-shadow: ${o?void 0:gL({border:{color:s.input.default.enabled.border,width:a.border.width},focusRing:a.text.focusRing})}; 124 } 125 126 &:not([data-border]) { 127 --input-box-shadow: ${o?void 0:gL({focusRing:a.text.focusRing})}; 128 } 129 } 130 131 /* disabled */ 132 *:not(:invalid):disabled + & { 133 --card-bg-color: ${s.input.default.disabled.bg} !important; 134 --card-fg-color: ${s.input.default.disabled.fg} !important; 135 --card-icon-color: ${s.input.default.disabled.fg} !important; 136 137 &[data-border] { 138 --input-box-shadow: ${gM({color:s.input.default.disabled.border,width:a.border.width})}; 139 } 140 } 141 142 *:invalid:disabled + & { 143 --card-bg-color: ${s.input.invalid.disabled.bg} !important; 144 --card-fg-color: ${s.input.invalid.disabled.fg} !important; 145 --card-icon-color: ${s.input.invalid.disabled.fg} !important; 146 147 &[data-border] { 148 --input-box-shadow: ${gM({color:s.input.invalid.disabled.border,width:a.border.width})}; 149 } 150 } 151 152 /* readOnly */ 153 *:not(:invalid):read-only + & { 154 --card-bg-color: ${s.input.default.readOnly.bg} !important; 155 --card-fg-color: ${s.input.default.readOnly.fg} !important; 156 } 157 158 *:invalid:read-only + & { 159 --card-bg-color: ${s.input.invalid.readOnly.bg} !important; 160 --card-fg-color: ${s.input.invalid.readOnly.fg} !important; 161 } 162 163 /* hovered */ 164 @media (hover: hover) { 165 *:not(:disabled):not(:read-only):not(:invalid):hover + & { 166 --card-bg-color: ${s.input.default.hovered.bg}; 167 --card-fg-color: ${s.input.default.hovered.fg}; 168 } 169 170 *:invalid:not(:disabled):not(:read-only):hover + & { 171 --card-bg-color: ${s.input.invalid.hovered.bg}; 172 --card-fg-color: ${s.input.invalid.hovered.fg}; 173 } 174
175 *:not(:disabled):not(:read-only):not(:invalid):not(:focus):hover + &[data-border] { 176 --input-box-shadow: ${gM({color:s.input.default.hovered.border,width:a.border.width})}; 177 } 178 179 *:invalid:not(:disabled):not(:read-only):not(:focus):hover + &[data-border] { 180 --input-box-shadow: ${gM({color:s.input.invalid.hovered.border,width:a.border.width})}; 181 } 182 } 183 } 184 `}function gQ(e){let{theme:t}=e;return[p3(t,["padding"],e.$padding),p3(t,["paddingLeft","paddingRight"],e.$paddingX),p3(t,["paddingTop","paddingBottom"],e.$paddingY),p3(t,["paddingTop"],e.$paddingTop),p3(t,["paddingRight"],e.$paddingRight),p3(t,["paddingBottom"],e.$paddingBottom),p3(t,["paddingLeft"],e.$paddingLeft)].filter(Boolean)}function g1(e){let{media:t,radius:n}=G(e.theme);return p5(t,e.$radius,e=>{let t=0;return"number"==typeof e&&(t=p0(n[e])),"full"===e&&(t="9999px"),{borderRadius:t}})}function g0(e,t){return`${e.map(p0).join(" ")} ${t}`}let g5=nF.span.withConfig({displayName:"SpanWithTextOverflow",componentId:"sc-ol2i3b-0"})`display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;overflow:clip;`,g2=nF.div.withConfig({displayName:"StyledLabel",componentId:"sc-1luap7z-0"})(function(e){return p4("label",e)},p6,function(e){let{$accent:t,$muted:n}=e,{font:r}=G(e.theme);return nD` 185 text-transform: uppercase; 186 187 ${t&&nD` 188 color: var(--card-accent-fg-color); 189 `} 190 191 ${n&&nD` 192 color: var(--card-muted-fg-color); 193 `} 194 195 & code { 196 font-family: ${r.code.family}; 197 border-radius: 1px; 198 } 199 200 & a { 201 text-decoration: none; 202 border-radius: 1px; 203 } 204 205 & svg { 206 /* Certain popular CSS libraries changes the defaults for SVG display */ 207 /* Make sure SVGs are rendered as inline elements */ 208 display: inline; 209 } 210 211 & [data-sanity-icon] { 212 vertical-align: baseline; 213 } 214 `}),g3=(0,_.forwardRef)(function(e,t){let n,r,i,o,s,a,l,u,d,c,h,f=(0,eU.c)(26);f[0]!==e?({accent:n,align:r,children:i,muted:s,size:a,textOverflow:l,weight:u,...o}=e,f[0]=e,f[1]=n,f[2]=r,f[3]=i,f[4]=o,f[5]=s,f[6]=a,f[7]=l,f[8]=u):(n=f[1],r=f[2],i=f[3],o=f[4],s=f[5],a=f[6],l=f[7],u=f[8]);let p=void 0!==s&&s,g=void 0===a?2:a,m=i;if("ellipsis"===l){let e;f[9]!==m?(e=(0,E.jsx)(g5,{children:m}),f[9]=m,f[10]=e):e=f[10],m=e}else{let e;f[11]!==m?(e=(0,E.jsx)("span",{children:m}),f[11]=m,f[12]=e):e=f[12],m=e}return f[13]!==r?(d=p2(r),f[13]=r,f[14]=d):d=f[14],f[15]!==g?(c=p2(g),f[15]=g,f[16]=c):c=f[16],f[17]!==n||f[18]!==m||f[19]!==p||f[20]!==t||f[21]!==o||f[22]!==d||f[23]!==c||f[24]!==u?(h=(0,E.jsx)(g2,{"data-ui":"Label",...o,$accent:n,$align:d,$muted:p,$size:c,$weight:u,ref:t,children:m}),f[17]=n,f[18]=m,f[19]=p,f[20]=t,f[21]=o,f[22]=d,f[23]=c,f[24]=u,f[25]=h):h=f[25],h});g3.displayName="ForwardRef(Label)";let g4=nF.div.withConfig({displayName:"StyledAvatar",componentId:"sc-1rj7kl0-0"})(function(e){let{avatar:t,media:n}=G(e.theme);return p5(n,e.$size,e=>{let n=t.sizes[e]||t.sizes[0];return{width:p0(n.size),height:p0(n.size),borderRadius:p0(n.size/2),"&>svg":{width:p0(n.size),height:p0(n.size),borderRadius:p0(n.size/2)}}})},function(e){let{$color:t}=e,{avatar:n}=G(e.theme);return{"--avatar-bg-color":`var(--card-avatar-${t}-bg-color)`,"--avatar-fg-color":`var(--card-avatar-${t}-fg-color)`,backgroundColor:"var(--avatar-bg-color)",position:"relative",boxSizing:"border-box",userSelect:"none",boxShadow:"0 0 0 1px var(--card-bg-color)",'&[data-status="inactive"]':{opacity:"0.5"},"&>svg":{"&:not([hidden])":{display:"block"}},'&[data-as="button"]':{WebkitFontSmoothing:"inherit",appearance:"none",margin:0,padding:0,border:0,font:"inherit",color:"inherit",outline:"none","&:focus":{boxShadow:gL({focusRing:n.focusRing})},"&:focus:not(:focus-visible)":{boxShadow:"none"}}}}),g6=nF.div.withConfig({displayName:"Arrow",componentId:"sc-1rj7kl0-1"})(function(){return{position:"absolute",boxSizing:"border-box",zIndex:"0",opacity:"0",transition:"all 0.2s linear",transform:"rotate(-90deg) translate3d(0, 6px, 0)",left:0,right:0,top:0,bottom:0,"& > svg":{width:"11px",height:"7px",position:"absolute",top:"-5px",left:"50%",transform:"translateX(-6px)","&:not([hidden])":{display:"block"}},"[data-arrow-position='inside'] > &":{transform:"rotate(-90deg) translate3d(0, 6px, 0)",opacity:"0"},"[data-arrow-position='top'] > &":{opacity:"1",transform:"rotate(0deg)"},"[data-arrow-position='bottom'] > &":{opacity:"1",transform:"rotate(-180deg)"}}}),g8=nF.ellipse.withConfig({displayName:"BgStroke",componentId:"sc-1rj7kl0-2"})(function(){return{strokeWidth:"4px",stroke:"var(--card-bg-color)"}}),g9=nF.ellipse.withConfig({displayName:"Stroke",componentId:"sc-1rj7kl0-3"})(function(){return{strokeWidth:"2px",stroke:"var(--avatar-bg-color)",'[data-status="editing"] &':{strokeDasharray:"2 4",strokeLinecap:"round"}}}),g7=nF.div.withConfig({displayName:"Initials",componentId:"sc-1rj7kl0-4"})(function(){return{width:"100%",height:"100%",color:"var(--avatar-fg-color)",alignItems:"center",justifyContent:"center",textTransform:"uppercase",textAlign:"center",borderRadius:"50%","&:not([hidden])":{display:"flex"}}}),me=nF(g3).withConfig({displayName:"InitialsLabel",componentId:"sc-1rj7kl0-5"})({color:"inherit"}),mt=nF.svg.withConfig({displayName:"AvatarImage",componentId:"sc-1rj7kl0-6"})(function(){return{position:"relative"}}
214);function mn(e){return 1===e?1:2===e?3:5*(3===e)}(0,_.forwardRef)(function(e,t){let n,r,i,o,s,a,l,u,d,c,h,f,p,g,m,y,v,w,b,x,C=(0,eU.c)(46);C[0]!==e?({__unstable_hideInnerStroke:n,as:o,color:d,src:u,title:f,initials:s,onImageLoadError:a,arrowPosition:i,animateArrowFrom:r,status:c,size:h,...l}=e,C[0]=e,C[1]=n,C[2]=r,C[3]=i,C[4]=o,C[5]=s,C[6]=a,C[7]=l,C[8]=u,C[9]=d,C[10]=c,C[11]=h,C[12]=f):(n=C[1],r=C[2],i=C[3],o=C[4],s=C[5],a=C[6],l=C[7],u=C[8],d=C[9],c=C[10],h=C[11],f=C[12]);let k=void 0===d?"gray":d,j=void 0===c?"online":c,M=void 0===h?1:h,{avatar:L}=gr(),S=nq.default.isValidElementType(o)?o:"div",R=p2(M),V=(L.sizes[R[0]]||L.sizes[0]).size,$=V/2,A=(0,_.useId)(),[T,H]=(0,_.useState)(r||i||"inside"),[I,P]=(0,_.useState)(!1),O=`avatar-image-${A}`;C[13]!==T||C[14]!==i?(p=()=>{if(T===i)return;let e=requestAnimationFrame(()=>H(i));return()=>cancelAnimationFrame(e)},g=[T,i],C[13]=T,C[14]=i,C[15]=p,C[16]=g):(p=C[15],g=C[16]),(0,_.useEffect)(p,g),C[17]!==u?(m=()=>{u&&P(!1)},y=[u],C[17]=u,C[18]=m,C[19]=y):(m=C[18],y=C[19]),(0,_.useEffect)(m,y),C[20]!==a?(v=()=>{P(!0),a&&a(Error("Avatar: the image failed to load"))},C[20]=a,C[21]=v):v=C[21];let B=v,N="string"==typeof S?S:void 0;C[22]!==k?(w=(0,E.jsx)(g6,{children:(0,E.jsx)("svg",{width:"11",height:"7",viewBox:"0 0 11 7",fill:"none",children:(0,E.jsx)("path",{d:"M6.67948 1.50115L11 7L0 7L4.32052 1.50115C4.92109 0.736796 6.07891 0.736795 6.67948 1.50115Z",fill:k})})}),C[22]=k,C[23]=w):w=C[23],C[24]!==n||C[25]!==$||C[26]!==V||C[27]!==B||C[28]!==I||C[29]!==O||C[30]!==u?(b=!I&&u&&(0,E.jsxs)(mt,{viewBox:`0 0 ${V} ${V}`,fill:"none",children:[(0,E.jsx)("defs",{children:(0,E.jsx)("pattern",{id:O,patternContentUnits:"objectBoundingBox",width:"1",height:"1",children:(0,E.jsx)("image",{href:u,width:"1",height:"1",onError:B})})}),(0,E.jsx)("circle",{cx:$,cy:$,r:$,fill:`url(#${O})`}),!n&&(0,E.jsx)(g8,{cx:$,cy:$,rx:$,ry:$,vectorEffect:"non-scaling-stroke"}),(0,E.jsx)(g9,{cx:$,cy:$,rx:$,ry:$,vectorEffect:"non-scaling-stroke"})]}),C[24]=n,C[25]=$,C[26]=V,C[27]=B,C[28]=I,C[29]=O,C[30]=u,C[31]=b):b=C[31];let W=(I||!u)&&s&&(0,E.jsx)(E.Fragment,{children:(0,E.jsx)(g7,{children:(0,E.jsx)(me,{forwardedAs:"span",size:R.map(mn),weight:"medium",children:s})})});return C[32]!==g4||C[33]!==T||C[34]!==S||C[35]!==k||C[36]!==t||C[37]!==l||C[38]!==R||C[39]!==j||C[40]!==w||C[41]!==b||C[42]!==W||C[43]!==N||C[44]!==f?(x=(0,E.jsxs)(g4,{as:S,"data-as":N,"data-ui":"Avatar",...l,$color:k,$size:R,"aria-label":f,"data-arrow-position":T,"data-status":j,ref:t,title:f,children:[w,b,W]}),C[32]=g4,C[33]=T,C[34]=S,C[35]=k,C[36]=t,C[37]=l,C[38]=R,C[39]=j,C[40]=w,C[41]=b,C[42]=W,C[43]=N,C[44]=f,C[45]=x):x=C[45],x}).displayName="ForwardRef(Avatar)";let mr=nF.div.withConfig({displayName:"StyledAvatarCounter",componentId:"sc-1ydx86y-0"})(function(e){let{avatar:t,media:n}=G(e.theme);return p5(n,e.$size,e=>{let n=t.sizes[e];return n?{borderRadius:p0(n.size/2),minWidth:p0(n.size),height:p0(n.size)}:pq})},function(e){let{space:t}=G(e.theme);return nD` 215 align-items: center; 216 justify-content: center; 217 box-sizing: border-box; 218 user-select: none; 219 color: inherit; 220 color: var(--card-fg-color); 221 background: var(--card-bg-color); 222 box-shadow: 223 0 0 0 1px var(--card-bg-color), 224 inset 0 0 0 1px var(--card-hairline-hard-color); 225 padding: 0 ${p0(t[2])}; 226 227 &:not([hidden]) { 228 display: flex; 229 } 230 `}),mi=(0,_.forwardRef)(function(e,t){let n,r,i,o,s,a,l,u,d,c=(0,eU.c)(20),{count:h,size:f}=e,p=void 0===f?1:f;if(c[0]!==t||c[1]!==p){let e=p2(p);r=mr,s=e,a="AvatarCounter",l=t,n=g3,i="span",o=e.map(mo),c[0]=t,c[1]=p,c[2]=n,c[3]=r,c[4]=i,c[5]=o,c[6]=s,c[7]=a,c[8]=l}else n=c[2],r=c[3],i=c[4],o=c[5],s=c[6],a=c[7],l=c[8];return c[9]!==n||c[10]!==h||c[11]!==i||c[12]!==o?(u=(0,E.jsx)(n,{as:i,size:o,weight:"medium",children:h}),c[9]=n,c[10]=h,c[11]=i,c[12]=o,c[13]=u):u=c[13],c[14]!==r||c[15]!==s||c[16]!==a||c[17]!==l||c[18]!==u?(d=(0,E.jsx)(r,{$size:s,"data-ui":a,ref:l,children:u}),c[14]=r,c[15]=s,c[16]=a,c[17]=l,c[18]=u,c[19]=d):d=c[19],d});function mo(e){return 1===e?1:2===e?3:5*(3===e)}mi.displayName="ForwardRef(AvatarCounter)";let ms=nD` 231 white-space: nowrap; 232 233 & > div { 234 vertical-align: top; 235 236 &:not([hidden]) { 237 display: inline-block; 238 } 239 } 240`,ma=nF.div.withConfig({displayName:"StyledAvatarStack",componentId:"sc-cysmbb-0"})(function(e){let{avatar:t,media:n}=G(e.theme);return p5(n,e.$size,e=>{let n=t.sizes[e];return n?{"& > div + div":{marginLeft:p0(n.distance)}}:pq})},function(){return ms});(0,_.forwardRef)(function(e,t){let n,r,i,o,s,a,l,u,d,c,h,f,p,g=(0,eU.c)(38);g[0]!==e?({children:n,maxLength:i,size:o,...r}=e,g[0]=e,g[1]=n,g[2]=r,g[3]=i,g[4]=o):(n=g[1],r=g[2],i=g[3],o=g[4]);let m=void 0===i?4:i,y=void 0===o?1:o;if(g[5]!==n||g[6]!==m||g[7]!==t||g[8]!==r||g[9]!==y){let e,i,o=_.Children.toArray(n).filter(_.isValidElement),p=Math.max(m,0);g[18]!==y?(e=p2(y),g[18]=y,g[19]=e):e=g[19];let v=e,w=o.length,b=w-(p-1),x=b>1?o.slice(b,w):o;s=ma,a="AvatarStack",l=r,u=t,d=v,g[20]!==w||g[21]!==v?(c=0===w&&(0,E.jsx)("div",{children:(0,E.jsx)(mi,{count:w,size:v})}),g[20]=w,g[21]=v,g[22]=c):c=g[22],g[23]!==b||g[24]!==w||g[25]!==v?(h=0!==w&&b>1&&(0,E.jsx)("div",{children:(0,E.jsx)(mi,{count:b,size:v})}),g[23]=b,g[24]=w,g[25]=v,g[26]=h):h=g[26],g[27]!==v?(i=(e,t)=>(0,E.jsx)("div",{children:(0,_.cloneElement)(e,{size:v})},String(t)),g[27]=v,g[28]=i):i=g[28],f=x.map(i),g[5]=n,g[6]=m,g[7]=t,g[8]=r,g[9]=y,g[10]=s,g[11]=a,g[12]=l,g[13]=u,g[14]=d,g[15]=c,g[16]=h,g[17]=f}
240else s=g[10],a=g[11],l=g[12],u=g[13],d=g[14],c=g[15],h=g[16],f=g[17];return g[29]!==s||g[30]!==a||g[31]!==l||g[32]!==u||g[33]!==d||g[34]!==c||g[35]!==h||g[36]!==f?(p=(0,E.jsxs)(s,{"data-ui":a,...l,ref:u,$size:d,children:[c,h,f]}),g[29]=s,g[30]=a,g[31]=l,g[32]=u,g[33]=d,g[34]=c,g[35]=h,g[36]=f,g[37]=p):p=g[37],p}).displayName="ForwardRef(AvatarStack)";let ml=nF.div.withConfig({displayName:"StyledBox",componentId:"sc-1hhky9f-0"})(function(){return gu},gy,function(){return[gf,gp,gg,gh]},function(){return[gR,gV,g_,g$,gA,gT]},function(e){let{theme:t}=e;return[p3(t,["margin"],e.$margin),p3(t,["marginLeft","marginRight"],e.$marginX),p3(t,["marginTop","marginBottom"],e.$marginY),p3(t,["marginTop"],e.$marginTop),p3(t,["marginRight"],e.$marginRight),p3(t,["marginBottom"],e.$marginBottom),p3(t,["marginLeft"],e.$marginLeft)].filter(Boolean)},gQ),mu=(0,_.forwardRef)(function(e,t){let n,r,i,o,s,a,l,u,d,c,h,f,p,g,m,y,v,w,b,x,C,k,j,M,L,S,R,V,_,$,A,T,H,I,P,O,B,N,W,z,D,F,Z,U,q,G,Y,X,K,J,Q,ee,et,en,er,ei,eo,es,ea,el=(0,eU.c)(115);el[0]!==e?({as:$,gridColumn:u,column:n,gridColumnStart:c,columnStart:i,gridColumnEnd:d,columnEnd:r,display:A,flex:l,height:g,margin:T,marginX:b,marginY:x,marginTop:w,marginRight:v,marginBottom:m,marginLeft:y,overflow:C,padding:H,paddingX:S,paddingY:R,paddingTop:L,paddingRight:M,paddingBottom:k,paddingLeft:j,gridRow:h,row:o,gridRowStart:p,rowStart:a,gridRowEnd:f,rowEnd:s,sizing:_,...V}=e,el[0]=e,el[1]=n,el[2]=r,el[3]=i,el[4]=o,el[5]=s,el[6]=a,el[7]=l,el[8]=u,el[9]=d,el[10]=c,el[11]=h,el[12]=f,el[13]=p,el[14]=g,el[15]=m,el[16]=y,el[17]=v,el[18]=w,el[19]=b,el[20]=x,el[21]=C,el[22]=k,el[23]=j,el[24]=M,el[25]=L,el[26]=S,el[27]=R,el[28]=V,el[29]=_,el[30]=$,el[31]=A,el[32]=T,el[33]=H):(n=el[1],r=el[2],i=el[3],o=el[4],s=el[5],a=el[6],l=el[7],u=el[8],d=el[9],c=el[10],h=el[11],f=el[12],p=el[13],g=el[14],m=el[15],y=el[16],v=el[17],w=el[18],b=el[19],x=el[20],C=el[21],k=el[22],j=el[23],M=el[24],L=el[25],S=el[26],R=el[27],V=el[28],_=el[29],$=el[30],A=el[31],T=el[32],H=el[33]);let eu=void 0===$?"div":$,ed=void 0===A?"block":A,ec=void 0===T?0:T,eh=void 0===H?0:H,ef=void 0===u?n:u,ep=void 0===c?i:c,eg=void 0===d?r:d,em=void 0===h?o:h,ey=void 0===p?a:p,ev=void 0===f?s:f,ew="string"==typeof eu?eu:void 0;return el[34]!==ef?(I=p2(ef),el[34]=ef,el[35]=I):I=el[35],el[36]!==ep?(P=p2(ep),el[36]=ep,el[37]=P):P=el[37],el[38]!==eg?(O=p2(eg),el[38]=eg,el[39]=O):O=el[39],el[40]!==ed?(B=p2(ed),el[40]=ed,el[41]=B):B=el[41],el[42]!==l?(N=p2(l),el[42]=l,el[43]=N):N=el[43],el[44]!==g?(W=p2(g),el[44]=g,el[45]=W):W=el[45],el[46]!==ec?(z=p2(ec),el[46]=ec,el[47]=z):z=el[47],el[48]!==b?(D=p2(b),el[48]=b,el[49]=D):D=el[49],el[50]!==x?(F=p2(x),el[50]=x,el[51]=F):F=el[51],el[52]!==w?(Z=p2(w),el[52]=w,el[53]=Z):Z=el[53],el[54]!==v?(U=p2(v),el[54]=v,el[55]=U):U=el[55],el[56]!==m?(q=p2(m),el[56]=m,el[57]=q):q=el[57],el[58]!==y?(G=p2(y),el[58]=y,el[59]=G):G=el[59],el[60]!==C?(Y=p2(C),el[60]=C,el[61]=Y):Y=el[61],el[62]!==eh?(X=p2(eh),el[62]=eh,el[63]=X):X=el[63],el[64]!==S?(K=p2(S),el[64]=S,el[65]=K):K=el[65],el[66]!==R?(J=p2(R),el[66]=R,el[67]=J):J=el[67],el[68]!==L?(Q=p2(L),el[68]=L,el[69]=Q):Q=el[69],el[70]!==M?(ee=p2(M),el[70]=M,el[71]=ee):ee=el[71],el[72]!==k?(et=p2(k),el[72]=k,el[73]=et):et=el[73],el[74]!==j?(en=p2(j),el[74]=j,el[75]=en):en=el[75],el[76]!==em?(er=p2(em),el[76]=em,el[77]=er):er=el[77],el[78]!==ey?(ei=p2(ey),el[78]=ey,el[79]=ei):ei=el[79],el[80]!==ev?(eo=p2(ev),el[80]=ev,el[81]=eo):eo=el[81],el[82]!==_?(es=p2(_),el[82]=_,el[83]=es):es=el[83],el[84]!==eu||el[85]!==e.children||el[86]!==t||el[87]!==V||el[88]!==W||el[89]!==z||el[90]!==D||el[91]!==F||el[92]!==Z||el[93]!==U||el[94]!==q||el[95]!==G||el[96]!==Y||el[97]!==X||el[98]!==K||el[99]!==J||el[100]!==Q||el[101]!==ee||el[102]!==et||el[103]!==en||el[104]!==er||el[105]!==ei||el[106]!==eo||el[107]!==es||el[108]!==ew||el[109]!==I||el[110]!==P||el[111]!==O||el[112]!==B||el[113]!==N?(ea=(0,E.jsx)(ml,{"data-as":ew,"data-ui":"Box",...V,$column:I,$columnStart:P,$columnEnd:O,$display:B,$flex:N,$height:W,$margin:z,$marginX:D,$marginY:F,$marginTop:Z,$marginRight:U,$marginBottom:q,$marginLeft:G,$overflow:Y,$padding:X,$paddingX:K,$paddingY:J,$paddingTop:Q,$paddingRight:ee,$paddingBottom:et,$paddingLeft:en,$row:er,$rowStart:ei,$rowEnd:eo,$sizing:es,as:eu,ref:t,children:e.children}),el[84]=eu,el[85]=e.children,el[86]=t,el[87]=V,el[88]=W,el[89]=z,el[90]=D,el[91]=F,el[92]=Z,el[93]=U,el[94]=q,el[95]=G,el[96]=Y,el[97]=X,el[98]=K,el[99]=J,el[100]=Q,el[101]=ee,el[102]=et,el[103]=en,el[104]=er,el[105]=ei,el[106]=eo,el[107]=es,el[108]=ew,el[109]=I,el[110]=P,el[111]=O,el[112]=B,el[113]=N,el[114]=ea):ea=el[114],ea});mu.displayName="ForwardRef(Box)";let md=nF.div.withConfig({displayName:"StyledText",componentId:"sc-11ov82j-0"})(function(e){return p4("text",e)},p6,function(e){let{$accent:t,$muted:n}=e,{font:r}=G(e.theme);return nD` 241 color: var(--card-fg-color); 242 243 ${t&&nD` 244 color: var(--card-accent-fg-color); 245 `} 246 247 ${n&&nD` 248 color: var(--card-muted-fg-color); 249 `} 250 251 & code { 252 font-family: ${r.code.family}; 253 border-radius: 1px; 254 background-color: var(--card-code-bg-color); 255 color: var(--card-code-fg-color); 256 } 257 258 & a { 259 text-decoration: none; 260 border-radius: 1px; 261 color: var(--card-link-color); 262 outline: none; 263 264 @media (hover: hover) { 265 &:hover { 266 text-decoration: underline; 267 } 268 } 269 270 &:focus { 271 box-shadow: 272 0 0 0 1px var(--card-bg-color), 273 0 0 0 3px var(--card-focus-ring-color); 274 } 275 276 &:focus:not(:focus-visible) { 277 box-shadow: none; 278 } 279 } 280 281 & strong { 282 font-weight: ${r.text.weights.bold}; 283 } 284 285 & svg { 286 /* Certain popular CSS libraries changes the defaults for SVG display */ 287 /* Make sure SVGs are rendered as inline elements */ 288 display: inline; 289 } 290 291 & [data-sanity-icon] { 292 vertical-align: baseline; 293 color: var(--card-icon-color); 294 295 & path { 296 vector-effect: non-scaling-stroke !important; 297 } 298 } 299 `}),mc=(0,_.forwardRef)(function(e,t){let n,r,i,o,s,a,l,u,d,c,h,f,p=(0,eU.c)(26);p[0]!==e?({accent:o,align:n,children:r,muted:s,size:a,textOverflow:l,weight:u,...i}=e,p[0]=e,p[1]=n,p[2]=r,p[3]=i,p[4]=o,p[5]=s,p[6]=a,p[7]=l,p[8]=u):(n=p[1],r=p[2],i=p[3],o=p[4],s=p[5],a=p[6],l=p[7],u=p[8]);let g=void 0!==o&&o,m=void 0!==s&&s,y=void 0===a?2:a,v=r;if("ellipsis"===l){let e;p[9]!==v?(e=(0,E.jsx)(g5,{children:v}),p[9]=v,p[10]=e):e=p[10],v=e}return p[11]!==n?(d=p2(n),p[11]=n,p[12]=d):d=p[12],p[13]!==y?(c=p2(y),p[13]=y,p[14]=c):c=p[14],p[15]!==v?(h=(0,E.jsx)("span",{children:v}),p[15]=v,p[16]=h):h=p[16],p[17]!==g||p[18]!==m||p[19]!==t||p[20]!==i||p[21]!==d||p[22]!==c||p[23]!==h||p[24]!==u?(f=(0,E.jsx)(md,{"data-ui":"Text",...i,$accent:g,$align:d,$muted:m,ref:t,$size:c,$weight:u,children:h}),p[17]=g,p[18]=m,p[19]=t,p[20]=i,p[21]=d,p[22]=c,p[23]=h,p[24]=u,p[25]=f):f=p[25],f});mc.displayName="ForwardRef(Text)";let mh=nF(mu).withConfig({displayName:"StyledBadge",componentId:"sc-5u140l-0"}
299)(g1,function(e){let{$tone:t}=e;return{"--card-bg-color":`var(--card-badge-${t}-bg-color)`,"--card-fg-color":`var(--card-badge-${t}-fg-color)`,backgroundColor:"var(--card-bg-color)",cursor:"default","&:not([hidden])":{display:"inline-block",verticalAlign:"top"}}});(0,_.forwardRef)(function(e,t){let n,r,i,o,s,a,l,u,d,c,h=(0,eU.c)(21);if(h[0]!==e){let{children:t,fontSize:l,mode:u,padding:d,radius:c,tone:f,...p}=e;n=t,i=l,o=d,s=c,a=f,r=p,h[0]=e,h[1]=n,h[2]=r,h[3]=i,h[4]=o,h[5]=s,h[6]=a}else n=h[1],r=h[2],i=h[3],o=h[4],s=h[5],a=h[6];let f=void 0===i?1:i,p=void 0===o?1:o,g=void 0===s?"full":s,m=void 0===a?"default":a;return h[7]!==g?(l=p2(g),h[7]=g,h[8]=l):l=h[8],h[9]!==p?(u=p2(p),h[9]=p,h[10]=u):u=h[10],h[11]!==n||h[12]!==f?(d=(0,E.jsx)(mc,{size:f,children:n}),h[11]=n,h[12]=f,h[13]=d):d=h[13],h[14]!==t||h[15]!==r||h[16]!==l||h[17]!==u||h[18]!==d||h[19]!==m?(c=(0,E.jsx)(mh,{"data-ui":"Badge",...r,$tone:m,$radius:l,padding:u,ref:t,children:d}),h[14]=t,h[15]=r,h[16]=l,h[17]=u,h[18]=d,h[19]=m,h[20]=c):c=h[20],c}).displayName="ForwardRef(Badge)";let mf=nF(mu).withConfig({displayName:"StyledFlex",componentId:"sc-oxesg3-0"})(gy,function(){return[gw,gb,gx,gC,gk,gj]}),mp=(0,_.forwardRef)(function(e,t){let n,r,i,o,s,a,l,u,d,c,h,f,p,g=(0,eU.c)(27);g[0]!==e?({align:n,as:r,direction:a,gap:i,justify:o,wrap:l,...s}=e,g[0]=e,g[1]=n,g[2]=r,g[3]=i,g[4]=o,g[5]=s,g[6]=a,g[7]=l):(n=g[1],r=g[2],i=g[3],o=g[4],s=g[5],a=g[6],l=g[7]);let m=void 0===a?"row":a;return g[8]!==n?(u=p2(n),g[8]=n,g[9]=u):u=g[9],g[10]!==m?(d=p2(m),g[10]=m,g[11]=d):d=g[11],g[12]!==i?(c=p2(i),g[12]=i,g[13]=c):c=g[13],g[14]!==o?(h=p2(o),g[14]=o,g[15]=h):h=g[15],g[16]!==l?(f=p2(l),g[16]=l,g[17]=f):f=g[17],g[18]!==r||g[19]!==t||g[20]!==s||g[21]!==u||g[22]!==d||g[23]!==c||g[24]!==h||g[25]!==f?(p=(0,E.jsx)(mf,{"data-ui":"Flex",...s,$align:u,$direction:d,$gap:c,$justify:h,$wrap:f,forwardedAs:r,ref:t}),g[18]=r,g[19]=t,g[20]=s,g[21]=u,g[22]=d,g[23]=c,g[24]=h,g[25]=f,g[26]=p):p=g[26],p});mp.displayName="ForwardRef(Flex)";let mg=nU` 300 from { 301 transform: rotate(0deg); 302 } 303 304 to { 305 transform: rotate(360deg); 306 } 307`,mm=nF(mc).withConfig({displayName:"StyledSpinner",componentId:"sc-124hnd0-0"})`& > span > svg{animation:${mg} 500ms linear infinite;}`,my=(0,_.forwardRef)(function(e,t){let n,r,i=(0,eU.c)(4);return i[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,E.jsx)(oW,{}),i[0]=n):n=i[0],i[1]!==e||i[2]!==t?(r=(0,E.jsx)(mm,{"data-ui":"Spinner",...e,ref:t,children:n}),i[1]=e,i[2]=t,i[3]=r):r=i[3],r});function mv(e,t,n=!1){return{"--card-backdrop-color":e.backdrop,"--card-focus-ring-color":e.focusRing,"--card-shadow-outline-color":e.shadow.outline,"--card-shadow-umbra-color":e.shadow.umbra,"--card-shadow-penumbra-color":e.shadow.penumbra,"--card-shadow-ambient-color":e.shadow.ambient,"--card-accent-fg-color":t.accent.fg,"--card-avatar-gray-bg-color":t.avatar.gray.bg,"--card-avatar-gray-fg-color":t.avatar.gray.fg,"--card-avatar-blue-bg-color":t.avatar.blue.bg,"--card-avatar-blue-fg-color":t.avatar.blue.fg,"--card-avatar-purple-bg-color":t.avatar.purple.bg,"--card-avatar-purple-fg-color":t.avatar.purple.fg,"--card-avatar-magenta-bg-color":t.avatar.magenta.bg,"--card-avatar-magenta-fg-color":t.avatar.magenta.fg,"--card-avatar-red-bg-color":t.avatar.red.bg,"--card-avatar-red-fg-color":t.avatar.red.fg,"--card-avatar-orange-bg-color":t.avatar.orange.bg,"--card-avatar-orange-fg-color":t.avatar.orange.fg,"--card-avatar-yellow-bg-color":t.avatar.yellow.bg,"--card-avatar-yellow-fg-color":t.avatar.yellow.fg,"--card-avatar-green-bg-color":t.avatar.green.bg,"--card-avatar-green-fg-color":t.avatar.green.fg,"--card-avatar-cyan-bg-color":t.avatar.cyan.bg,"--card-avatar-cyan-fg-color":t.avatar.cyan.fg,"--card-bg-color":t.bg,"--card-bg-image":n?`repeating-conic-gradient(${t.bg} 0% 25%, ${t.muted.bg} 0% 50%)`:void 0,"--card-border-color":t.border,"--card-badge-default-bg-color":t.badge.default.bg,"--card-badge-default-dot-color":t.badge.default.dot,"--card-badge-default-fg-color":t.badge.default.fg,"--card-badge-default-icon-color":t.badge.default.icon,"--card-badge-neutral-bg-color":t.badge.neutral?.bg,"--card-badge-neutral-dot-color":t.badge.neutral?.dot,"--card-badge-neutral-fg-color":t.badge.neutral?.fg,"--card-badge-neutral-icon-color":t.badge.neutral?.icon,"--card-badge-primary-bg-color":t.badge.primary.bg,"--card-badge-primary-dot-color":t.badge.primary.dot,"--card-badge-primary-fg-color":t.badge.primary.fg,"--card-badge-primary-icon-color":t.badge.primary.icon,"--card-badge-suggest-bg-color":t.badge.suggest?.bg,"--card-badge-suggest-dot-color":t.badge.suggest?.dot,"--card-badge-suggest-fg-color":t.badge.suggest?.fg,"--card-badge-suggest-icon-color":t.badge.suggest?.icon,"--card-badge-positive-bg-color":t.badge.positive.bg,"--card-badge-positive-dot-color":t.badge.positive.dot,"--card-badge-positive-fg-color":t.badge.positive.fg,"--card-badge-positive-icon-color":t.badge.positive.icon,"--card-badge-caution-bg-color":t.badge.caution.bg,"--card-badge-caution-dot-color":t.badge.caution.dot,"--card-badge-caution-fg-color":t.badge.caution.fg,"--card-badge-caution-icon-color":t.badge.caution.icon,"--card-badge-critical-bg-color":t.badge.critical.bg,"--card-badge-critical-dot-color":t.badge.critical.dot,"--card-badge-critical-fg-color":t.badge.critical.fg,"--card-badge-critical-icon-color":t.badge.critical.icon,"--card-code-bg-color":t.code.bg,"--card-code-fg-color":t.code.fg,"--card-fg-color":t.fg,"--card-icon-color":t.icon,"--card-kbd-bg-color":t.kbd.bg,"--card-kbd-border-color":t.kbd.border,"--card-kbd-fg-color":t.kbd.fg,"--card-link-fg-color":t.link.fg,"--card-muted-bg-color":t.muted.bg,"--card-muted-fg-color":t.muted.fg,"--card-skeleton-color-from":t.skeleton.from,"--card-skeleton-color-to":t.skeleton.to,"--card-bg2-color":t.muted.bg,"--card-link-color":t.link.fg,"--card-hairline-soft-color":t.border,"--card-hairline-hard-color":t.border}}function mw(...e){return e.filter(Boolean).join(",")}my.displayName="ForwardRef(Spinner)";let mb=nF.button.withConfig({displayName:"StyledButton",componentId:"sc-aaekt4-0"})(g1,function(e){let{$width:t}=e,{style:n}=G(e.theme);return nD` 308 ${n?.button}; 309 310 -webkit-font-smoothing: inherit; 311 appearance: none; 312 display: inline-flex; 313 align-items: center; 314 font: inherit; 315 border: 0; 316 outline: none; 317 user-select: none; 318 text-decoration: none; 319 border: 0; 320 box-sizing: border-box; 321 padding: 0; 322 margin: 0; 323 white-space: nowrap; 324 text-align: left; 325 position: relative; 326 vertical-align: top; 327 328 ${"fill"===t&&nD` 329 width: -moz-available; 330 width: -webkit-fill-available; 331 width: stretch; 332 `} 333 334 & > span { 335 display: block; 336 flex: 1; 337 min-width: 0; 338 border-radius: inherit; 339 } 340 341 &::-moz-focus-inner { 342 border: 0; 343 padding: 0; 344 } 345 `},function(e){let{$mode:t}=e,{button:n,color:r,style:i}=G(e.theme),o="ghost"===e.$mode,s=r.button[t]||r.button.default,a=s[e.$tone]||s.default,l={width:n.border.width,color:"var(--card-border-color)"},u;return[mv(r,a.enabled),{backgroundColor:"var(--card-bg-color)",color:"var(--card-fg-color)",boxShadow:gM(l),'&:disabled, &[data-disabled="true"]':mv(r,a.disabled),"&:not([data-disabled='true'])":{boxShadow:mw(gM(l),o?u:void 0),"&:focus":{boxShadow:gL({base:r,border:{width:2,color:r.bg},focusRing:n.focusRing})},"&:focus:not(:focus-visible)":{boxShadow:mw(gM(l),o?u:void 0)},"@media (hover: hover)":{"&:hover":mv(r,a.hovered),"&:active":mv(r,a.pressed),"&[data-hovered]":mv(r,a.hovered)},"&[data-selected]":mv(r,a.pressed)}}
345,i?.button?.root].filter(Boolean)}),mx=nF.div.withConfig({displayName:"LoadingBox",componentId:"sc-aaekt4-1"})`position:absolute;top:0;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center;background-color:var(--card-bg-color);border-radius:inherit;z-index:1;box-shadow:inherit;`,mC=(0,_.forwardRef)(function(e,t){let n,r,i,o,s,a,l,u,d,c,h,f,p,g,m,y,v,w,b,x,C,k,j,M,L,S,R,V,$,A,T,H,I,P,O,B,N,W,z,D,F,Z,U=(0,eU.c)(87);U[0]!==e?({children:i,disabled:o,fontSize:m,icon:n,iconRight:r,justify:y,loading:a,mode:v,padding:w,paddingX:h,paddingY:f,paddingTop:c,paddingBottom:l,paddingLeft:u,paddingRight:d,radius:b,selected:g,gap:s,space:x,text:M,textAlign:L,textWeight:S,tone:C,type:k,muted:j,width:R,...p}=e,U[0]=e,U[1]=n,U[2]=r,U[3]=i,U[4]=o,U[5]=s,U[6]=a,U[7]=l,U[8]=u,U[9]=d,U[10]=c,U[11]=h,U[12]=f,U[13]=p,U[14]=g,U[15]=m,U[16]=y,U[17]=v,U[18]=w,U[19]=b,U[20]=x,U[21]=C,U[22]=k,U[23]=j,U[24]=M,U[25]=L,U[26]=S,U[27]=R):(n=U[1],r=U[2],i=U[3],o=U[4],s=U[5],a=U[6],l=U[7],u=U[8],d=U[9],c=U[10],h=U[11],f=U[12],p=U[13],g=U[14],m=U[15],y=U[16],v=U[17],w=U[18],b=U[19],x=U[20],C=U[21],k=U[22],j=U[23],M=U[24],L=U[25],S=U[26],R=U[27]);let q=void 0===m?1:m,G=void 0===y?"center":y,Y=void 0===v?"default":v,X=void 0===w?3:w,K=void 0===b?2:b,J=void 0===x?3:x,Q=void 0===C?"default":C,ee=void 0===k?"button":k,et=void 0!==j&&j,{button:en}=gr();U[28]!==G?(V=p2(G),U[28]=G,U[29]=V):V=U[29];let er=V;U[30]!==X?($=p2(X),U[30]=X,U[31]=$):$=U[31];let ei=$;U[32]!==h?(A=p2(h),U[32]=h,U[33]=A):A=U[33];let eo=A;U[34]!==f?(T=p2(f),U[34]=f,U[35]=T):T=U[35];let es=T;U[36]!==c?(H=p2(c),U[36]=c,U[37]=H):H=U[37];let ea=H;U[38]!==l?(I=p2(l),U[38]=l,U[39]=I):I=U[39];let el=I;U[40]!==u?(P=p2(u),U[40]=u,U[41]=P):P=U[41];let eu=P;U[42]!==d?(O=p2(d),U[42]=d,U[43]=O):O=U[43];let ed=O;U[44]!==K?(B=p2(K),U[44]=K,U[45]=B):B=U[45];let ec=B,eh=void 0===s?J:s;U[46]!==eh?(N=p2(eh),U[46]=eh,U[47]=N):N=U[47];let ef=N;U[48]!==ei||U[49]!==el||U[50]!==eu||U[51]!==ed||U[52]!==ea||U[53]!==eo||U[54]!==es?(W={padding:ei,paddingX:eo,paddingY:es,paddingTop:ea,paddingBottom:el,paddingLeft:eu,paddingRight:ed},U[48]=ei,U[49]=el,U[50]=eu,U[51]=ed,U[52]=ea,U[53]=eo,U[54]=es,U[55]=W):W=U[55];let ep=W,eg=!!(a||o),em=g?"":void 0,ey=!!(a||o);return U[56]!==a?(z=!!a&&(0,E.jsx)(mx,{children:(0,E.jsx)(my,{})}),U[56]=a,U[57]=z):z=U[57],U[58]!==n||U[59]!==r||U[60]!==ep||U[61]!==en||U[62]!==q||U[63]!==er||U[64]!==et||U[65]!==ef||U[66]!==M||U[67]!==L||U[68]!==S?(D=(n||M||r)&&(0,E.jsx)(mu,{as:"span",...ep,children:(0,E.jsxs)(mp,{as:"span",justify:er,gap:ef,children:[n&&(0,E.jsxs)(mc,{size:q,children:[(0,_.isValidElement)(n)&&n,(0,nq.isValidElementType)(n)&&(0,E.jsx)(n,{})]}),M&&(0,E.jsx)(mu,{children:(0,E.jsx)(mc,{muted:et,align:L,size:q,textOverflow:"ellipsis",weight:S??en.textWeight,children:M})}),r&&(0,E.jsxs)(mc,{size:q,children:[(0,_.isValidElement)(r)&&r,(0,nq.isValidElementType)(r)&&(0,E.jsx)(r,{})]})]})}),U[58]=n,U[59]=r,U[60]=ep,U[61]=en,U[62]=q,U[63]=er,U[64]=et,U[65]=ef,U[66]=M,U[67]=L,U[68]=S,U[69]=D):D=U[69],U[70]!==ep||U[71]!==i?(F=i&&(0,E.jsx)(mu,{as:"span",...ep,children:i}),U[70]=ep,U[71]=i,U[72]=F):F=U[72],U[73]!==Y||U[74]!==ec||U[75]!==t||U[76]!==p||U[77]!==eg||U[78]!==em||U[79]!==ey||U[80]!==z||U[81]!==D||U[82]!==F||U[83]!==Q||U[84]!==ee||U[85]!==R?(Z=(0,E.jsxs)(mb,{"data-ui":"Button",...p,$mode:Y,$radius:ec,$tone:Q,"data-disabled":eg,"data-selected":em,disabled:ey,ref:t,type:ee,$width:R,children:[z,D,F]}),U[73]=Y,U[74]=ec,U[75]=t,U[76]=p,U[77]=eg,U[78]=em,U[79]=ey,U[80]=z,U[81]=D,U[82]=F,U[83]=Q,U[84]=ee,U[85]=R,U[86]=Z):Z=U[86],Z});mC.displayName="ForwardRef(Button)";let mk=nF(mu).withConfig({displayName:"StyledCard",componentId:"sc-osnro2-0"})(function(){return[gi,go,gs,ga,gl]},g1,function(e){let{card:t,media:n,shadow:r}=G(e.theme);return p5(n,e.$shadow,e=>(function(e,t=1){if(!e)return pq;let n=`0 0 0 ${p0(t)} var(--card-shadow-outline-color)`,r=g0(e.umbra,"var(--card-shadow-umbra-color)"),i=g0(e.penumbra,"var(--card-shadow-penumbra-color)"),o=g0(e.ambient,"var(--card-shadow-ambient-color)");return{boxShadow:`${n}, ${r}, ${i}, ${o}`}})(r[e],t.shadow.outline))},function(e){return[function(e){let{$checkered:t}=e,{space:n}=G(e.theme);return nD` 346 ${t&&nD` 347 background-size: ${n[3]}px ${n[3]}px; 348 background-position: 50% 50%; 349 background-image: var(--card-bg-image); 350 `} 351 352 &[data-as='button'] { 353 -webkit-font-smoothing: inherit; 354 appearance: none; 355 outline: none; 356 font: inherit; 357 text-align: inherit; 358 border: 0; 359 width: -moz-available; 360 width: -webkit-fill-available; 361 width: stretch; 362 } 363 364 /* &:is(a) */ 365 &[data-as='a'] { 366 outline: none; 367 text-decoration: none; 368 } 369 370 /* &:is(pre) */ 371 &[data-as='pre'] { 372 font: inherit; 373 } 374 `}(e),function(e){let{$checkered:t,$focusRing:n,$muted:r}=e,{card:i,color:o,style:s}=G(e.theme),a={width:i.border.width,color:"var(--card-border-color)"};return nD` 375 color-scheme: ${o._dark?"dark":"light"}; 376 377 ${mv(o,o,t)} 378 379 background-color: ${r?"var(--card-muted-bg-color)":"var(--card-bg-color)"}; 380 color: var(--card-fg-color); 381 382 /* &:is(button) */ 383 &[data-as='button'] { 384 --card-focus-ring-box-shadow: none; 385 386 cursor: default; 387 box-shadow: var(--card-focus-ring-box-shadow); 388 389 &:disabled { 390 ${mv(o,o.selectable.default.disabled,t)} 391 } 392 393 &:not(:disabled) { 394 &[data-pressed] { 395 ${mv(o,o.selectable.default.pressed,t)} 396 } 397 398 &[data-selected] { 399 ${mv(o,o.selectable.default.selected,t)} 400 } 401 402 @media (hover: hover) {
403 &:not([data-pressed]):not([data-selected]) { 404 &[data-hovered], 405 &:hover { 406 ${mv(o,o.selectable.default.hovered,t)} 407 } 408 409 &:active { 410 ${mv(o,o.selectable.default.pressed,t)} 411 } 412 } 413 } 414 415 &:focus-visible { 416 --card-focus-ring-box-shadow: ${n?gL({base:o,border:a,focusRing:i.focusRing}):void 0}; 417 } 418 } 419 } 420 421 /* &:is(a) */ 422 &[data-as='a'] { 423 cursor: pointer; 424 box-shadow: var(--card-focus-ring-box-shadow); 425 426 &[data-disabled] { 427 ${mv(o,o.selectable.default.disabled,t)} 428 } 429 430 &:not([data-disabled]) { 431 &[data-pressed] { 432 ${mv(o,o.selectable.default.pressed,t)} 433 } 434 435 &[data-selected] { 436 ${mv(o,o.selectable.default.selected,t)} 437 } 438 439 @media (hover: hover) { 440 &:not([data-pressed]):not([data-selected]) { 441 &[data-hovered], 442 &:hover { 443 ${mv(o,o.selectable.default.hovered,t)} 444 } 445 446 &:active { 447 ${mv(o,o.selectable.default.pressed,t)} 448 } 449 } 450 } 451 452 &:focus-visible { 453 --card-focus-ring-box-shadow: ${n?gL({base:o,border:a,focusRing:i.focusRing}):void 0}; 454 } 455 } 456 } 457 458 ${s?.card?.root} 459 `}(e)]}),mj=(0,_.forwardRef)(function(e,t){let n,r,i,o,s,a,l,u,d,c,h,f,p,g,m,y,v,w,b,x,C,k,j,M,L,S=(0,eU.c)(56);S[0]!==e?({__unstable_checkered:p,__unstable_focusRing:g,as:n,border:r,borderTop:a,borderRight:s,borderBottom:i,borderLeft:o,muted:l,pressed:u,radius:m,scheme:c,selected:h,shadow:f,tone:y,...d}=e,S[0]=e,S[1]=n,S[2]=r,S[3]=i,S[4]=o,S[5]=s,S[6]=a,S[7]=l,S[8]=u,S[9]=d,S[10]=c,S[11]=h,S[12]=f,S[13]=p,S[14]=g,S[15]=m,S[16]=y):(n=S[1],r=S[2],i=S[3],o=S[4],s=S[5],a=S[6],l=S[7],u=S[8],d=S[9],c=S[10],h=S[11],f=S[12],p=S[13],g=S[14],m=S[15],y=S[16]);let R=void 0!==p&&p,V=void 0!==g&&g,_=void 0===m?0:m,$=void 0===y?"default":y,A=(0,nq.isValidElementType)(n)?n:"div",T=gt(),H="inherit"===$?T.tone:$,I="string"==typeof A?A:void 0,P=T.scheme;S[17]!==r?(v=p2(r),S[17]=r,S[18]=v):v=S[18],S[19]!==a?(w=p2(a),S[19]=a,S[20]=w):w=S[20],S[21]!==s?(b=p2(s),S[21]=s,S[22]=b):b=S[22],S[23]!==i?(x=p2(i),S[23]=i,S[24]=x):x=S[24],S[25]!==o?(C=p2(o),S[25]=o,S[26]=C):C=S[26],S[27]!==_?(k=p2(_),S[27]=_,S[28]=k):k=S[28],S[29]!==f?(j=p2(f),S[29]=f,S[30]=j):j=S[30];let O=R?"":void 0,B=u?"":void 0,N=h?"":void 0;return S[31]!==A||S[32]!==R||S[33]!==V||S[34]!==l||S[35]!==t||S[36]!==d||S[37]!==T.scheme||S[38]!==h||S[39]!==C||S[40]!==k||S[41]!==j||S[42]!==O||S[43]!==B||S[44]!==N||S[45]!==I||S[46]!==v||S[47]!==w||S[48]!==b||S[49]!==x||S[50]!==H?(M=(0,E.jsx)(mk,{"data-as":I,"data-scheme":P,"data-ui":"Card","data-tone":H,...d,$border:v,$borderTop:w,$borderRight:b,$borderBottom:x,$borderLeft:C,$checkered:R,$focusRing:V,$muted:l,$radius:k,$shadow:j,$tone:H,"data-checkered":O,"data-
459pressed":B,"data-selected":N,forwardedAs:A,ref:t,selected:h}),S[31]=A,S[32]=R,S[33]=V,S[34]=l,S[35]=t,S[36]=d,S[37]=T.scheme,S[38]=h,S[39]=C,S[40]=k,S[41]=j,S[42]=O,S[43]=B,S[44]=N,S[45]=I,S[46]=v,S[47]=w,S[48]=b,S[49]=x,S[50]=H,S[51]=M):M=S[51],S[52]!==c||S[53]!==M||S[54]!==H?(L=(0,E.jsx)(gn,{scheme:c,tone:H,children:M}),S[52]=c,S[53]=M,S[54]=H,S[55]=L):L=S[55],L});function mM(e,t,n){let r,i,o,s=(0,eU.c)(9),a=void 0===t?mL:t;s[0]!==n||s[1]!==a||s[2]!==e?(r=t=>{if(!e)return;let r=t.target;if(!(r instanceof Node))return;let i=n?.();if(!i||i.contains(r)){for(let e of a().flat())if(e&&(r===e||e.contains(r)))return;e(t)}},s[0]=n,s[1]=a,s[2]=e,s[3]=r):r=s[3];let l=pF(r),u=!!e;s[4]!==u||s[5]!==l?(i=()=>{if(!u)return;let e=e=>l(e);return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},s[4]=u,s[5]=l,s[6]=i):i=s[6],s[7]!==u?(o=[u],s[7]=u,s[8]=o):o=s[8],(0,_.useEffect)(i,o),(0,_.useDebugValue)(e?"MouseDown On":"MouseDown Off")}function mL(){return pU}function mS(e,t){let n,r,i=(0,eU.c)(4);i[0]!==t||i[1]!==e?(n=()=>{e.current?.setCustomValidity(t||"")},r=[t,e],i[0]=t,i[1]=e,i[2]=n,i[3]=r):(n=i[2],r=i[3]),(0,_.useEffect)(n,r)}mj.displayName="ForwardRef(Card)";let mE="u">typeof document&&"u">typeof window&&window.ResizeObserver?window.ResizeObserver:pN,mR=(f=new WeakMap,p=new WeakMap,{subscribe(e,t){let n=p.get(e)||[],r=f.get(e);return p.has(e)||(p.set(e,n),r=({subscribe(e,t){let n=new mE(([e])=>{t({_contentRect:e.contentRect,border:{width:e.borderBoxSize[0].inlineSize,height:e.borderBoxSize[0].blockSize},content:{width:e.contentRect.width,height:e.contentRect.height}})});return n.observe(e),()=>{n.unobserve(e),n.disconnect()}}}).subscribe(e,e=>{for(let t of n)t(e)})),n.push(t),()=>{let e=n.indexOf(t);e>-1&&n.splice(e,1),0===n.length&&r&&r()}}});function mV(e){let t,n,r=(0,eU.c)(3),[i,o]=(0,_.useState)(null);return r[0]!==e?(t=()=>{if(e)return mR.subscribe(e,o)},n=[e],r[0]=e,r[1]=t,r[2]=n):(t=r[1],n=r[2]),(0,_.useEffect)(t,n),i}function m_(e,t){let n,r,i,o=(0,eU.c)(7);o[0]!==e?(n=t=>e(t),o[0]=e,o[1]=n):n=o[1];let s=pF(n);o[2]!==s||o[3]!==t?(r=()=>{let e=e=>s(e);return window.addEventListener("keydown",e,t),()=>window.removeEventListener("keydown",e,t)},o[2]=s,o[3]=t,o[4]=r):r=o[4],o[5]!==t?(i=[t],o[5]=t,o[6]=i):i=o[6],(0,_.useEffect)(r,i)}function m$(e,t){let n,r,i=(0,eU.c)(4);return(0,_.useDebugValue)(e),i[0]!==e?(n=t=>{let n=window.matchMedia(e);return n.addEventListener("change",t),()=>n.removeEventListener("change",t)},i[0]=e,i[1]=n):n=i[1],i[2]!==e?(r=()=>window.matchMedia(e).matches,i[2]=e,i[3]=r):r=i[3],(0,_.useSyncExternalStore)(n,r,t)}function mA(){return 0}function mT(){let e,t,n,r,i=(0,eU.c)(2),{media:o}=gr();i[0]!==o?(n=o.length,r=()=>{if(!t){t=[];for(let r=n;r>-1;r-=1){var e;let n=0===(e=r)?`screen and (max-width: ${o[e]-1}px)`:e===o.length?`screen and (min-width: ${o[e-1]}px)`:`screen and (min-width: ${o[e-1]}px) and (max-width: ${o[e]-1}px)`;t.push({index:r,mq:window.matchMedia(n)})}}return t},e={getSnapshot:()=>{for(let{index:e,mq:t}of r())if(t.matches)return e;return 0},subscribe:e=>{let t=[];for(let{mq:n}of r()){let r=()=>{n.matches&&e()};n.addEventListener("change",r),t.push(()=>n.removeEventListener("change",r))}return()=>{for(let e of t)e()}}},i[0]=o,i[1]=e):e=i[1];let s=e;return(0,_.useSyncExternalStore)(s.subscribe,s.getSnapshot,mA)}function mH(e){return m$("(prefers-color-scheme: dark)",void 0===e?mI:e)}function mI(){return!1}function mP(e){return m$("(prefers-reduced-motion: reduce)",void 0===e?mO:e)}function mO(){return!1}let mB=nF.div.withConfig({displayName:"StyledCheckbox",componentId:"sc-1l5mt2l-0"})(function(){return nD` 460 position: relative; 461 display: inline-block; 462 `}),mN=nF.input.withConfig({displayName:"Input",componentId:"sc-1l5mt2l-1"})(function(e){let{color:t,input:n,radius:r}=G(e.theme),{focusRing:i}=n.checkbox;return nD` 463 position: absolute; 464 top: 0; 465 left: 0; 466 width: 100%; 467 height: 100%; 468 outline: none; 469 opacity: 0; 470 z-index: 1; 471 padding: 0; 472 margin: 0; 473 474 & + span { 475 position: relative; 476 display: block; 477 height: ${p0(n.checkbox.size)}; 478 width: ${p0(n.checkbox.size)}; 479 box-sizing: border-box; 480 box-shadow: ${gM({color:t.input.default.enabled.border,width:n.border.width})}; 481 border-radius: ${p0(r[2])}; 482 line-height: 1; 483 background-color: ${t.input.default.enabled.bg}; 484 485 & > svg { 486 display: block; 487 position: absolute; 488 opacity: 0; 489 height: 100%; 490 width: 100%; 491 492 & > path { 493 vector-effect: non-scaling-stroke; 494 stroke-width: 1.5px !important; 495 } 496 } 497 } 498 499 &:checked + span { 500 background: ${t.input.default.enabled.fg}; 501 box-shadow: ${gM({color:t.input.default.enabled.fg,width:n.border.width})}; 502 color: ${t.input.default.enabled.bg}; 503 } 504 505 /* focus */ 506 &:not(:disabled):focus:focus-visible + span { 507 box-shadow: ${gL({focusRing:i})}; 508 } 509 510 /* focus when checked - uses a different offset */ 511 &:not(:disabled):focus:focus-visible&:checked + span { 512 box-shadow: ${gL({focusRing:{width:1,offset:1}})}; 513 } 514 515 &[data-error] + span { 516 background-color: ${t.input.invalid.enabled.border}; 517 box-shadow: ${gM({width:n.border.width,color:t.input.invalid.enabled.muted.bg})}; 518 color: ${t.input.default.disabled.fg}; 519 } 520 &[data-error]&:checked + span { 521 background-color: ${t.input.invalid.enabled.muted.bg}; 522 color: ${t.input.default.enabled.bg}; 523 } 524 &[data-error]&:checked&:not(:disabled):focus:focus-visible + span { 525 box-shadow: ${gL({border:{width:n.border.width,color:t.input.invalid.readOnly.muted.bg},focusRing:{width:1,offset:1}})}; 526 } 527 528 &:disabled + span { 529 background-color: ${t.input.default.disabled.bg}; 530 box-shadow: ${gM({width:n.border.width,color:t.input.default.disabled.border})}; 531 color: ${t.input.default.disabled.fg}; 532 } 533 &:disabled&:checked + span { 534 background-color: ${t.input.default.disabled.muted.bg}; 535 } 536 537 &[data-read-only] + span { 538 background-color: ${t.input.default.readOnly.bg}; 539 box-shadow: ${gM({width:n.border.width,color:t.input.default.readOnly.border})}; 540 color: ${t.input.default.readOnly.fg}; 541 } 542 543 &[data-read-only]&:checked + span { 544 background-color: ${t.input.default.readOnly.muted.bg}; 545 } 546 547 &:checked + span > svg:first-child { 548 opacity: 1; 549 } 550 &:indeterminate + span > svg:last-child { 551 opacity: 1; 552 } 553 `});function mW({theme:e}){let{color:{syntax:t}}=G(e);return{"&.atrule":{color:t.atrule},"&.attr-name":{color:t.attrName},"&.attr-value":{color:t.attrValue},"&.attribute":{color:t.attribute},"&.boolean":{color:t.boolean},"&.builtin":{color:t.builtin},"&.cdata":{color:t.cdata},"&.char":{color:t.char},"&.class":{color:t.class},"&.class-name":{color:t.className},"&.comment":{color:t.comment},"&.constant":{color:t.constant},"&.deleted":{color:t.deleted},"&.doctype":{color:t.doctype},"&.entity":{color:t.entity},"&.function":{color:t.function},"&.hexcode":{color:t.hexcode},"&.id":{color:t.id},"&.important":{color:t.important},"&.inserted":{color:t.inserted},"&.keyword":{color:t.keyword},"&.number":{color:t.number},"&.operator":{color:t.operator},"&.prolog":{color:t.prolog},"&.property":{color:t.property},"&.pseudo-class":{color:t.pseudoClass},"&.pseudo-element":{color:t.pseudoElement},"&.punctuation":{color:t.punctuation},"&.regex":{color:t.regex},"&.selector":{color:t.selector},"&.string":{color:t.string},"&.symbol":{color:t.symbol},"&.tag":{color:t.tag},"&.unit":{color:t.unit},"&.url":{color:t.url},"&.variable":{color:t.variable}}}(0,_.forwardRef)(function(e,t){let n,r,i,o,s,a,l,u,d,c,h,f,p,g,m=(0,eU.c)(25);
553m[0]!==e?({checked:n,className:r,disabled:o,indeterminate:s,customValidity:i,readOnly:a,style:u,...l}=e,m[0]=e,m[1]=n,m[2]=r,m[3]=i,m[4]=o,m[5]=s,m[6]=a,m[7]=l,m[8]=u):(n=m[1],r=m[2],i=m[3],o=m[4],s=m[5],a=m[6],l=m[7],u=m[8]);let y=(0,_.useRef)(null);m[9]===Symbol.for("react.memo_cache_sentinel")?(d=()=>y.current,m[9]=d):d=m[9],(0,_.useImperativeHandle)(t,d),m[10]!==s?(c=()=>{y.current&&(y.current.indeterminate=s||!1)},h=[s],m[10]=s,m[11]=c,m[12]=h):(c=m[11],h=m[12]),(0,_.useEffect)(c,h),mS(y,i);let v=!o&&a?"":void 0,w=i?"":void 0,b=o||a;return m[13]!==n||m[14]!==a||m[15]!==l||m[16]!==v||m[17]!==w||m[18]!==b?(f=(0,E.jsx)(mN,{"data-read-only":v,"data-error":w,...l,checked:n,disabled:b,type:"checkbox",readOnly:a,ref:y}),m[13]=n,m[14]=a,m[15]=l,m[16]=v,m[17]=w,m[18]=b,m[19]=f):f=m[19],m[20]===Symbol.for("react.memo_cache_sentinel")?(p=(0,E.jsxs)("span",{children:[(0,E.jsx)(rb,{}),(0,E.jsx)(oL,{})]}),m[20]=p):p=m[20],m[21]!==r||m[22]!==u||m[23]!==f?(g=(0,E.jsxs)(mB,{className:r,"data-ui":"Checkbox",style:u,children:[f,p]}),m[21]=r,m[22]=u,m[23]=f,m[24]=g):g=m[24],g}).displayName="ForwardRef(Checkbox)";let mz=(0,_.lazy)(()=>e.A(9319)),mD=nF.pre.withConfig({displayName:"StyledCode",componentId:"sc-4dymyn-0"})(function(){return nD` 554 color: var(--card-code-fg-color); 555 556 & code { 557 font-family: inherit; 558 559 &.refractor .token { 560 ${mW} 561 } 562 } 563 564 & a { 565 color: inherit; 566 text-decoration: underline; 567 border-radius: 1px; 568 } 569 570 & svg { 571 /* Certain popular CSS libraries changes the defaults for SVG display */ 572 /* Make sure SVGs are rendered as inline elements */ 573 display: inline; 574 } 575 576 & [data-sanity-icon] { 577 vertical-align: baseline; 578 } 579 `},function(e){return p4("code",e)});(0,_.forwardRef)(function(e,t){let n,r,i,o,s,a,l,u,d,c,h=(0,eU.c)(22);h[0]!==e?({children:n,language:r,size:o,weight:s,...i}=e,h[0]=e,h[1]=n,h[2]=r,h[3]=i,h[4]=o,h[5]=s):(n=h[1],r=h[2],i=h[3],o=h[4],s=h[5]);let f=void 0===o?2:o;return h[6]!==f?(a=p2(f),h[6]=f,h[7]=a):a=h[7],h[8]!==n?(l=(0,E.jsx)("code",{children:n}),h[8]=n,h[9]=l):l=h[9],h[10]!==n||h[11]!==r?(u=(0,E.jsx)(mz,{language:r,value:n}),h[10]=n,h[11]=r,h[12]=u):u=h[12],h[13]!==l||h[14]!==u?(d=(0,E.jsx)(_.Suspense,{fallback:l,children:u}),h[13]=l,h[14]=u,h[15]=d):d=h[15],h[16]!==t||h[17]!==i||h[18]!==a||h[19]!==d||h[20]!==s?(c=(0,E.jsx)(mD,{"data-ui":"Code",...i,$size:a,$weight:s,ref:t,children:d}),h[16]=t,h[17]=i,h[18]=a,h[19]=d,h[20]=s,h[21]=c):c=h[21],c}).displayName="ForwardRef(Code)";let mF={width:"100%",margin:"0 auto"},mZ=nF(mu).withConfig({displayName:"StyledContainer",componentId:"sc-wyroop-0"})(function(){return mF},function(e){let{container:t,media:n}=G(e.theme);return p5(n,e.$width,e=>({maxWidth:"auto"===e?"none":p0(t[e])}))}),mU=(0,_.forwardRef)(function(e,t){let n,r,i,o,s,a=(0,eU.c)(11);a[0]!==e?({as:n,width:i,...r}=e,a[0]=e,a[1]=n,a[2]=r,a[3]=i):(n=a[1],r=a[2],i=a[3]);let l=void 0===i?2:i;return a[4]!==l?(o=p2(l),a[4]=l,a[5]=o):o=a[5],a[6]!==n||a[7]!==t||a[8]!==r||a[9]!==o?(s=(0,E.jsx)(mZ,{"data-ui":"Container",...r,$width:o,forwardedAs:n,ref:t}),a[6]=n,a[7]=t,a[8]=r,a[9]=o,a[10]=s):s=a[10],s});mU.displayName="ForwardRef(Container)";let mq=nF(mu).withConfig({displayName:"StyledGrid",componentId:"sc-v8t8oz-0"})(function(){return[gH,gO,gB,gN,gW,gz,gD,gF,gZ]}),mG=(0,_.forwardRef)(function(e,t){let n,r,i,o,s,a,l,u,d,c,h,f,p,g,m,y,v,w,b,x,C,k,j=(0,eU.c)(44);j[0]!==e?({as:n,autoRows:o,autoCols:r,autoFlow:i,columns:a,gridTemplateColumns:c,gap:l,gapX:u,gapY:d,rows:p,gridTemplateRows:h,children:s,...f}=e,j[0]=e,j[1]=n,j[2]=r,j[3]=i,j[4]=o,j[5]=s,j[6]=a,j[7]=l,j[8]=u,j[9]=d,j[10]=c,j[11]=h,j[12]=f,j[13]=p):(n=j[1],r=j[2],i=j[3],o=j[4],s=j[5],a=j[6],l=j[7],u=j[8],d=j[9],c=j[10],h=j[11],f=j[12],p=j[13]);let M="string"==typeof n?n:void 0;j[14]!==o?(g=p2(o),j[14]=o,j[15]=g):g=j[15],j[16]!==r?(m=p2(r),j[16]=r,j[17]=m):m=j[17],j[18]!==i?(y=p2(i),j[18]=i,j[19]=y):y=j[19];let L=void 0===c?a:c;j[20]!==L?(v=p2(L),j[20]=L,j[21]=v):v=j[21],j[22]!==l?(w=p2(l),j[22]=l,j[23]=w):w=j[23],j[24]!==u?(b=p2(u),j[24]=u,j[25]=b):b=j[25],j[26]!==d?(x=p2(d),j[26]=d,j[27]=x):x=j[27];let S=void 0===h?p:h;return j[28]!==S?(C=p2(S),j[28]=S,j[29]=C):C=j[29],j[30]!==n||j[31]!==s||j[32]!==t||j[33]!==f||j[34]!==M||j[35]!==g||j[36]!==C||j[37]!==m||j[38]!==y||j[39]!==v||j[40]!==w||j[41]!==b||j[42]!==x?(k=(0,E.jsx)(mq,{"data-as":M,"data-ui":"Grid",...f,$autoRows:g,$autoCols:m,$autoFlow:y,$columns:v,$gap:w,$gapX:b,$gapY:x,$rows:C,forwardedAs:n,ref:t,children:s}),j[30]=n,j[31]=s,j[32]=t,j[33]=f,j[34]=M,j[35]=g,j[36]=C,j[37]=m,j[38]=y,j[39]=v,j[40]=w,j[41]=b,j[42]=x,j[43]=k):k=j[43],k});mG.displayName="ForwardRef(Grid)";let mY=nF.div.withConfig({displayName:"StyledHeading",componentId:"sc-137lwim-0"})(function(e){let{$accent:t,$muted:n}=e,{font:r}=G(e.theme);return nD` 580 ${t&&nD` 581 color: var(--card-accent-fg-color); 582 `} 583 584 ${n&&nD` 585 color: var(--card-muted-fg-color); 586 `} 587 588 & code { 589 font-family: ${r.code.family}; 590 border-radius: 1px; 591 } 592 593 & a { 594 text-decoration: none; 595 border-radius: 1px; 596 color: var(--card-link-color); 597 outline: none; 598 599 @media (hover: hover) { 600 &:hover { 601 text-decoration: underline; 602 } 603 } 604 605 &:focus { 606 box-shadow: 607 0 0 0 1px var(--card-bg-color), 608 0 0 0 3px var(--card-focus-ring-color); 609 } 610 611 &:focus:not(:focus-visible) { 612 box-shadow: none; 613 } 614 } 615 616 & strong { 617 font-weight: ${r.heading.weights.bold}; 618 } 619 620 & svg { 621 /* Certain popular CSS libraries changes the defaults for SVG display */ 622 /* Make sure SVGs are rendered as inline elements */ 623 display: inline; 624 } 625 626 & [data-sanity-icon] { 627 vertical-align: baseline; 628 } 629 `},p6,function(e){return p4("heading",e)});(0,_.forwardRef)(function(e,t){let n,r,i,o,s,a,l,u,d,c,h,f,p=(0,eU.c)(26);p[0]!==e?({accent:o,align:n,children:r,muted:s,size:a,textOverflow:l,weight:u,...i}=e,p[0]=e,p[1]=n,p[2]=r,p[3]=i,p[4]=o,p[5]=s,p[6]=a,p[7]=l,p[8]=u):(n=p[1],r=p[2],i=p[3],o=p[4],s=p[5],a=p[6],l=p[7],u=p[8]);let g=void 0!==o&&o,m=void 0!==s&&s,y=void 0===a?2:a,v=r;if("ellipsis"===l){let e;p[9]!==v?(e=(0,E.jsx)(g5,{children:v}),p[9]=v,p[10]=e):e=p[10],v=e}return p[11]!==n?(d=p2(n),p[11]=n,p[12]=d):d=p[12],p[13]!==y?(c=p2(y),p[13]=y,p[14]=c):c=p[14],p[15]!==v?(h=(0,E.jsx)("span",{children:v}),p[15]=v,p[16]=h):h=p[16],p[17]!==g||p[18]!==m||p[19]!==t||p[20]!==i||p[21]!==d||p[22]!==c||p[23]!==h||p[24]!==u?(f=(0,E.jsx)(mY,{"data-ui":"Heading",...i,$accent:g,$align:d,$muted:m,$size:c,$weight:u,ref:t,children:h}),p[17]=g,p[18]=m,p[19]=t,p[20]=i,p[21]=d,p[22]=c,p[23]=h,p[24]=u,p[25]=f):f=p[25],f}).displayName="ForwardRef(Heading)";let mX=nF(mu).withConfig({displayName:"StyledInline",componentId:"sc-1pkiy6j-0"})(function(){return{lineHeight:"0","&&:not([hidden])":{display:"block"},"& > div":{display:"inline-block",verticalAlign:"middle"}}}
629,function(e){let{media:t,space:n}=G(e.theme);return p5(t,e.$space,e=>{let t=p0(.5===e?n[1]/2:n[e]);return{margin:`-${t} 0 0 -${t}`,"& > div":{padding:`${t} 0 0 ${t}`}}})}),mK=(0,_.forwardRef)(function(e,t){let n,r,i,o,s,a,l,u,d=(0,eU.c)(16);d[0]!==e?({as:n,children:r,gap:o,space:i,...s}=e,d[0]=e,d[1]=n,d[2]=r,d[3]=i,d[4]=o,d[5]=s):(n=d[1],r=d[2],i=d[3],o=d[4],s=d[5]);let c=void 0===o?i:o;d[6]!==r?(a=_.Children.map(r,mJ),d[6]=r,d[7]=a):a=d[7];let h=a;return d[8]!==c?(l=p2(c),d[8]=c,d[9]=l):l=d[9],d[10]!==n||d[11]!==h||d[12]!==s||d[13]!==l||d[14]!==t?(u=(0,E.jsx)(mX,{"data-ui":"Inline",...s,$space:l,forwardedAs:n,ref:t,children:h}),d[10]=n,d[11]=h,d[12]=s,d[13]=l,d[14]=t,d[15]=u):u=d[15],u});function mJ(e){return e&&(0,E.jsx)("div",{children:e})}mK.displayName="ForwardRef(Inline)";let mQ=nF.kbd.withConfig({displayName:"StyledKBD",componentId:"sc-1w7yd8w-0"})(g1,function(){return nD` 630 --card-bg-color: var(--card-kbd-bg-color); 631 --card-border-color: var(--card-kbd-border-color); 632 --card-fg-color: var(--card-kbd-fg-color); 633 634 box-shadow: inset 0 0 0 1px var(--card-border-color); 635 background: var(--card-bg-color); 636 font: inherit; 637 638 vertical-align: top; 639 640 &:not([hidden]) { 641 display: inline-block; 642 } 643 `}),m1=(0,_.forwardRef)(function(e,t){let n,r,i,o,s,a,l,u,d,c=(0,eU.c)(19);c[0]!==e?({children:n,fontSize:i,padding:o,radius:s,...r}=e,c[0]=e,c[1]=n,c[2]=r,c[3]=i,c[4]=o,c[5]=s):(n=c[1],r=c[2],i=c[3],o=c[4],s=c[5]);let h=void 0===i?0:i,f=void 0===o?1:o,p=void 0===s?2:s;return c[6]!==p?(a=p2(p),c[6]=p,c[7]=a):a=c[7],c[8]!==n||c[9]!==h?(l=(0,E.jsx)(mc,{as:"span",size:h,weight:"semibold",children:n}),c[8]=n,c[9]=h,c[10]=l):l=c[10],c[11]!==f||c[12]!==l?(u=(0,E.jsx)(mu,{as:"span",padding:f,children:l}),c[11]=f,c[12]=l,c[13]=u):u=c[13],c[14]!==t||c[15]!==r||c[16]!==a||c[17]!==u?(d=(0,E.jsx)(mQ,{"data-ui":"KBD",...r,$radius:a,ref:t,children:u}),c[14]=t,c[15]=r,c[16]=a,c[17]=u,c[18]=d):d=c[18],d});m1.displayName="ForwardRef(KBD)";let m0={name:"@sanity/ui/origin",fn({middlewareData:e,placement:t,rects:n}){let[r]=t.split("-"),i=n.floating.width,o=n.floating.height,s=e.shift?.x||0,a=e.shift?.y||0;if(i<=0||o<=0)return{};let{originX:l,originY:u}=["bottom","top"].includes(r)?{originX:m5(.5-s/i,0,1),originY:+("bottom"!==r)}:{originX:+("left"===r),originY:m5(.5-a/o,0,1)};return{data:{originX:l,originY:u}}}};function m5(e,t,n){return Math.min(Math.max(e,t),n)}function m2(e,t,n){let r=t.x-e.x,i=t.y-e.y;return m3(e,t,Math.min(1,n/Math.sqrt(r*r+i*i)))}function m3(e,t,n){return{x:e.x+(t.x-e.x)*n,y:e.y+(t.y-e.y)*n}}let m4=nF.div.withConfig({displayName:"StyledArrow",componentId:"sc-12vzy6c-0"})(({$w:e})=>nD` 644 position: absolute; 645 width: ${e}px; 646 height: ${e}px; 647 648 :empty + & { 649 display: none; 650 } 651 652 & > svg { 653 display: block; 654 line-height: 0; 655 transform-origin: ${e/2}px ${e/2}px; 656 } 657 658 [data-placement^='top'] > & { 659 bottom: -${e}px; 660 661 & > svg { 662 transform: rotate(0); 663 } 664 } 665 666 [data-placement^='right'] > & { 667 left: -${e}px; 668 669 & > svg { 670 transform: rotate(90deg); 671 } 672 } 673 674 [data-placement^='left'] > & { 675 right: -${e}px; 676 677 & > svg { 678 transform: rotate(-90deg); 679 } 680 } 681 682 [data-placement^='bottom'] > & { 683 top: -${e}px; 684 685 & > svg { 686 transform: rotate(180deg); 687 } 688 } 689 `),m6=nF.path.withConfig({displayName:"StrokePath",componentId:"sc-12vzy6c-1"})`stroke:var(--card-shadow-outline-color);`,m8=nF.path.withConfig({displayName:"ShapePath",componentId:"sc-12vzy6c-2"})`fill:var(--card-bg-color);`,m9=(0,_.forwardRef)(function(e,t){let n,r,i,o,s,a,l,u,d,c,h=(0,eU.c)(29);h[0]!==e?({width:o,height:n,radius:i,...r}=e,h[0]=e,h[1]=n,h[2]=r,h[3]=i,h[4]=o):(n=h[1],r=h[2],i=h[3],o=h[4]);let f=void 0===i?0:i,{card:p}=gr(),g=p.shadow.outline,m=o/2;h[5]!==m||h[6]!==n||h[7]!==f||h[8]!==o?(s=(function(e){let t=e.length,n=[];for(let r=0;r<t;r+=1){let t=e[r],i=e[r-1],o=e[r+1];if(i&&t.radius){let e=m2(t,i,t.radius),r=m2(t,o,t.radius),s=m3(e,t,.5),a=m3(t,r,.5);n.push({type:"point",...e}),n.push({type:"curve",curveEnd:r,startControl:s,endControl:a})}else n.push({type:"point",...t})}return n})([{x:0,y:0},{x:f,y:0,radius:f},{x:m,y:n-1,radius:f},{x:o-f,y:0,radius:f},{x:o,y:0}]).map((e,t)=>"point"===e.type?`${0===t?"M":"L"} ${e.x} ${e.y}`:"curve"===e.type?`C ${e.startControl.x} ${e.startControl.y} ${e.endControl.x} ${e.endControl.y} ${e.curveEnd.x} ${e.curveEnd.y}`:"").join(" "),h[5]=m,h[6]=n,h[7]=f,h[8]=o,h[9]=s):s=h[9];let y=s,v=`${y}`,w=`${y} M ${o} -1 M 0 -1 Z`,b=`0 0 ${o} ${o}`;h[10]!==g||h[11]!==o?(a=(0,E.jsx)("mask",{id:"stroke-mask",children:(0,E.jsx)("rect",{x:0,y:g,width:o,height:o,fill:"white"})}),h[10]=g,h[11]=o,h[12]=a):a=h[12];let x=2*g;return h[13]!==v||h[14]!==x?(l=(0,E.jsx)(m6,{d:v,mask:"url(#stroke-mask)",strokeWidth:x}),h[13]=v,h[14]=x,h[15]=l):l=h[15],h[16]!==w?(u=(0,E.jsx)(m8,{d:w}),h[16]=w,h[17]=u):u=h[17],h[18]!==b||h[19]!==a||h[20]!==l||h[21]!==u||h[22]!==o?(d=(0,E.jsxs)("svg",{width:o,height:o,viewBox:b,children:[a,l,u]}),h[18]=b,h[19]=a,h[20]=l,h[21]=u,h[22]=o,h[23]=d):d=h[23],h[24]!==t||h[25]!==r||h[26]!==d||h[27]!==o?(c=(0,E.jsx)(m4,{...r,$w:o,ref:t,children:d}),h[24]=t,h[25]=r,h[26]=d,h[27]=o,h[28]=c):c=h[28],c});m9.displayName="ForwardRef(Arrow)";
689let m7=p9("@sanity/ui/context/boundaryElement",null);function ye(e){return!!(e&&"object"==typeof e&&!Array.isArray(e))}let yt={version:0,element:null};function yn(){let e=(0,_.useContext)(m7);if(e&&(!ye(e)||0!==e.version))throw Error("useBoundaryElement(): the context value is not compatible");return e||yt}function yr(e){if(!ye(e)||0!==e.version)throw Error("the context value is not compatible");if(!e)throw Error("components using `useLayer()` should be wrapped in a <LayerProvider>.");if(0===e.version)return e;throw Error("could not get layer context")}(0,_.forwardRef)(function(e,t){let n,r,i,o,s,a,l,u,d=(0,eU.c)(18),c=gr();d[0]!==e?({children:r,media:n,...i}=e,d[0]=e,d[1]=n,d[2]=r,d[3]=i):(n=d[1],r=d[2],i=d[3]);let h=n??c.media,[f,p]=(0,_.useState)(null),g=mV(f)?.border.width??window.innerWidth;if(d[4]!==h||d[5]!==g){let e=function(e,t){let n=[];for(let r=0;r<e.length;r+=1)e[r]>t&&n.push(r);return n}(h,g);o=e.length?e.join(" "):void 0,d[4]=h,d[5]=g,d[6]=o}else o=d[6];let m=o;if(d[7]!==h||d[8]!==g){let e=function(e,t){let n=[];for(let r=0;r<e.length;r+=1)e[r]<=t&&n.push(r);return n}(h,g);s=e.length?e.join(" "):void 0,d[7]=h,d[8]=g,d[9]=s}else s=d[9];let y=s;return d[10]!==f?(a=()=>f,l=[f],d[10]=f,d[11]=a,d[12]=l):(a=d[11],l=d[12]),(0,_.useImperativeHandle)(t,a,l),d[13]!==r||d[14]!==m||d[15]!==y||d[16]!==i?(u=(0,E.jsx)("div",{"data-ui":"ElementQuery",...i,"data-eq-max":m,"data-eq-min":y,ref:p,children:r}),d[13]=r,d[14]=m,d[15]=y,d[16]=i,d[17]=u):u=d[17],u}).displayName="ForwardRef(ElementQuery)";let yi=p9("@sanity/ui/context/layer",null);function yo(e){let t,n,r,i,o,s,a,l,u=(0,eU.c)(21),{children:d,zOffset:c}=e,h=void 0===c?0:c,f=(0,_.useContext)(yi);u[0]!==f?(t=f&&yr(f),u[0]=f,u[1]=t):t=u[1];let p=t,g=p?.registerChild,m=(p?.level??0)+1;u[2]!==h?(n=p2(h),u[2]=h,u[3]=n):n=u[3];let y=n,v=y.length-1,w=Math.min(mT(),v),b=p?p.zIndex+y[w]:y[w];u[4]===Symbol.for("react.memo_cache_sentinel")?(r={},u[4]=r):r=u[4];let[,x]=(0,_.useState)(r),[C,k]=(0,_.useState)(0),j=0===C;u[5]!==g||u[6]!==x?(i=e=>{let t=g?.(e);return void 0!==e?x(t=>{let n=t[e]??0,r={...t,[e]:n+1};return k(Object.keys(r).length),r}):k(ya),()=>{void 0!==e?x(t=>{let n={...t};return 1===n[e]?(delete n[e],k(Object.keys(n).length)):n[e]=n[e]-1,n}):k(ys),t?.()}},u[5]=g,u[6]=x,u[7]=i):i=u[7];let M=i;u[8]!==m||u[9]!==g?(o=()=>g?.(m),s=[m,g],u[8]=m,u[9]=g,u[10]=o,u[11]=s):(o=u[10],s=u[11]),(0,_.useEffect)(o,s),u[12]!==j||u[13]!==m||u[14]!==M||u[15]!==C||u[16]!==b?(a={version:0,isTopLayer:j,level:m,registerChild:M,size:C,zIndex:b},u[12]=j,u[13]=m,u[14]=M,u[15]=C,u[16]=b,u[17]=a):a=u[17];let L=a;return u[18]!==d||u[19]!==L?(l=(0,E.jsx)(yi.Provider,{value:L,children:d}),u[18]=d,u[19]=L,u[20]=l):l=u[20],l}function ys(e){return e-1}function ya(e){return e+1}function yl(){let e=(0,eU.c)(2),t=(0,_.useContext)(yi);if(!t)throw Error("useLayer(): missing context value");try{let n;return e[0]!==t?(n=yr(t),e[0]=t,e[1]=n):n=e[1],n}catch(e){throw e instanceof Error?Error(`useLayer(): ${e.message}`):Error(`useLayer(): ${e}`)}}yo.displayName="LayerProvider";let yu=nF.div.withConfig({displayName:"StyledLayer",componentId:"sc-16kojrv-0"})({position:"relative"}),yd=(0,_.forwardRef)(function(e,t){let n,r,i,o,s,a,l,u,d,c,h,f=(0,eU.c)(22);f[0]!==e?({children:n,onActivate:r,onFocus:i,style:s,...o}=e,f[0]=e,f[1]=n,f[2]=r,f[3]=i,f[4]=o,f[5]=s):(n=f[1],r=f[2],i=f[3],o=f[4],s=f[5]);let p=void 0===s?pq:s,{zIndex:g,isTopLayer:m}=yl(),y=(0,_.useRef)(null),v=(0,_.useRef)(null),w=(0,_.useRef)(m);f[6]===Symbol.for("react.memo_cache_sentinel")?(a=()=>v.current,f[6]=a):a=f[6],(0,_.useImperativeHandle)(t,a),f[7]!==m||f[8]!==r?(l=()=>{w.current!==m&&m&&r?.({activeElement:y.current}),w.current=m},u=[m,r],f[7]=m,f[8]=r,f[9]=l,f[10]=u):(l=f[9],u=f[10]),(0,_.useEffect)(l,u),f[11]!==m||f[12]!==i?(d=e=>{i?.(e);let t=v.current,n=document.activeElement;!m||!t||!n||pK(n)&&p1(t,n)&&(y.current=n)},f[11]=m,f[12]=i,f[13]=d):d=f[13];let b=d;return f[14]!==p||f[15]!==g?(c={...p,zIndex:g},f[14]=p,f[15]=g,f[16]=c):c=f[16],f[17]!==n||f[18]!==b||f[19]!==o||f[20]!==c?(h=(0,E.jsx)(yu,{...o,"data-ui":"Layer",onFocus:b,ref:v,style:c,children:n}),f[17]=n,f[18]=b,f[19]=o,f[20]=c,f[21]=h):h=f[21],h}),yc=(0,_.forwardRef)(function(e,t){let n,r,i,o,s,a=(0,eU.c)(11);a[0]!==e?({children:n,zOffset:i,...r}=e,a[0]=e,a[1]=n,a[2]=r,a[3]=i):(n=a[1],r=a[2],i=a[3]);let l=void 0===i?1:i;return a[4]!==n||a[5]!==t||a[6]!==r?(o=(0,E.jsx)(yd,{...r,ref:t,children:n}
689),a[4]=n,a[5]=t,a[6]=r,a[7]=o):o=a[7],a[8]!==o||a[9]!==l?(s=(0,E.jsx)(yo,{zOffset:l,children:o}),a[8]=o,a[9]=l,a[10]=s):s=a[10],s});yc.displayName="ForwardRef(Layer)";let yh="@sanity/ui/context/portal",yf=Symbol.for(`${yh}/element`);p8[yf]=null;let yp=p9(yh,{version:0,boundaryElement:null,get element(){return typeof document>"u"?null:(p8[yf]||(p8[yf]=document.createElement("div"),p8[yf].setAttribute("data-portal",""),document.body.appendChild(p8[yf])),p8[yf])}});function yg(){let e=(0,_.useContext)(yp);if(!e)throw Error("usePortal(): missing context value");if(!ye(e)||0!==e.version)throw Error("usePortal(): the context value is not compatible");return e}function ym(e){let t,n=(0,eU.c)(3),{children:r,__unstable_name:i}=e,o=yg(),s=(i?o.elements&&o.elements[i]:o.element)||o.elements?.default;return s?(n[0]!==r||n[1]!==s?(t=(0,$.createPortal)(r,s),n[0]=r,n[1]=s,n[2]=t):t=n[2],t):null}function yy(e){let t,n,r=(0,eU.c)(7),{boundaryElement:i,children:o,element:s,__unstable_elements:a}=e,l=(0,_.useSyncExternalStore)(yb,yw,yv),u=i||null,d=s||l;r[0]!==a||r[1]!==u||r[2]!==d?(t={version:0,boundaryElement:u,element:d,elements:a},r[0]=a,r[1]=u,r[2]=d,r[3]=t):t=r[3];let c=t;return r[4]!==o||r[5]!==c?(n=(0,E.jsx)(yp.Provider,{value:c,children:o}),r[4]=o,r[5]=c,r[6]=n):n=r[6],n}function yv(){return null}function yw(){return document.body}ym.displayName="Portal",yy.displayName="PortalProvider";let yb=()=>()=>{},yx=nF.div.withConfig({displayName:"StyledSrOnly",componentId:"sc-mubr0c-0"})`display:block;width:0;height:0;position:absolute;overflow:hidden;overflow:clip;`;(0,_.forwardRef)(function(e,t){let n,r=(0,eU.c)(4),{as:i,children:o}=e;return r[0]!==i||r[1]!==o||r[2]!==t?(n=(0,E.jsx)(yx,{"aria-hidden":!0,as:i,"data-ui":"SrOnly",ref:t,children:o}),r[0]=i,r[1]=o,r[2]=t,r[3]=n):n=r[3],n}).displayName="ForwardRef(SrOnly)";let yC=nF.div.withConfig({displayName:"StyledVirtualList",componentId:"sc-dlqsj4-0"})`position:relative;`,yk=nF.div.withConfig({displayName:"ItemWrapper",componentId:"sc-dlqsj4-1"})`position:absolute;left:0;right:0;`;function yj(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(n=(t=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?e.props.ref:e.props.ref||e.ref}(0,_.forwardRef)(function(e,t){let n,r,i,o,s,a,l,u,d,c,h,f,p,g,m,y,v,w,b,x=(0,eU.c)(44);x[0]!==e?({as:s,gap:a,getItemKey:n,items:l,onChange:r,renderItem:i,...o}=e,x[0]=e,x[1]=n,x[2]=r,x[3]=i,x[4]=o,x[5]=s,x[6]=a,x[7]=l):(n=x[1],r=x[2],i=x[3],o=x[4],s=x[5],a=x[6],l=x[7]);let C=void 0===s?"div":s,k=void 0===a?0:a;x[8]!==l?(u=void 0===l?[]:l,x[8]=l,x[9]=u):u=x[9];let j=u,{space:M}=gr(),L=(0,_.useRef)(null),S=(0,_.useRef)(null),[R,V]=(0,_.useState)(0),[$,A]=(0,_.useState)(0),[T,H]=(0,_.useState)(-1);x[10]===Symbol.for("react.memo_cache_sentinel")?(d=()=>L.current,x[10]=d):d=x[10],(0,_.useImperativeHandle)(t,d),x[11]===Symbol.for("react.memo_cache_sentinel")?(c=()=>{if(!S.current)return;let e=S.current.firstChild;e instanceof HTMLElement&&H(e.offsetHeight)},x[11]=c):c=x[11],x[12]!==i?(h=[i],x[12]=i,x[13]=h):h=x[13],(0,_.useEffect)(c,h),x[14]===Symbol.for("react.memo_cache_sentinel")?(f=()=>{if(!L.current)return;let e=function(e){let t=e;for(;t&&!function(e){if(!(e instanceof Element))return!1;let t=window.getComputedStyle(e);return t.overflowX.includes("auto")||t.overflowX.includes("scroll")||t.overflowY.includes("auto")||t.overflowY.includes("scroll")}(t);)t=t.parentNode;return t}(L.current.parentNode);if(e){if(!(e instanceof HTMLElement))return;let t=()=>{V(e.scrollTop)};e.addEventListener("scroll",t,{passive:!0});let n=new mE(e=>{A(e[0].contentRect.height)});return n.observe(e),t(),()=>{e.removeEventListener("scroll",t),n.unobserve(e),n.disconnect()}}let t=()=>{V(window.scrollY)},n=()=>{A(window.innerHeight)};return window.addEventListener("scroll",t,{passive:!0}),window.addEventListener("resize",n),A(window.innerHeight),t(),()=>{window.removeEventListener("scroll",t),window.removeEventListener("resize",n)}},p=[],x[14]=f,x[15]=p):(f=x[14],p=x[15]),(0,_.useEffect)(f,p);let I=j.length,P=T?I*(T+M[k])-M[k]:0,O=P?Math.max(Math.floor(R/P*I)-2,0):0,B=P?Math.ceil((R+$)/P*I)+1:0;x[16]!==O||x[17]!==k||x[18]!==T||x[19]!==r||x[20]!==$||x[21]!==R||x[22]!==M||x[23]!==B?(m=()=>{r&&r({fromIndex:O,gap:M[k],itemHeight:T,scrollHeight:$,scrollTop:R,toIndex:B})},g=[O,k,T,r,$,R,M,B],x[16]=O,x[17]=k,x[18]=T,x[19]=r,x[20]=$,x[21]=R,x[22]=M,x[23]=B,x[24]=g,x[25]=m):(g=x[24],m=x[25]),(0,_.useEffect)(m,g),x[26]!==O||x[27]!==k||x[28]!==n||x[29]!==T||x[30]!==j||x[31]!==i||x[32]!==M||x[33]!==B?(y={fromIndex:O,gap:k,itemHeight:T,space:M,toIndex:B,getItemKey:n,items:j,renderItem:i},x[26]=O,x[27]=k,x[28]=n,x[29]=T,x[30]=j,x[31]=i,x[32]=M,x[33]=B,x[34]=y):y=x[34];let N=function(e){let t,n=(0,eU.c)(21),{fromIndex:r,gap:i,getItemKey:o,itemHeight:s,items:a,renderItem:l,space:u,toIndex:d}=e;if(!l||0===a.length)return null;if(-1===s){let e,t;return n[0]!==a[0]||n[1]!==l?(e=l(a[0]),n[0]=a[0],n[1]=l,n[2]=e):e=n[2],n[3]!==e?(t=[(0,E.jsx)(yk,{children:e},0)],n[3]=e,n[4]=t):t=n[4],t}
689if(n[5]!==r||n[6]!==i||n[7]!==o||n[8]!==s||n[9]!==a||n[10]!==l||n[11]!==u||n[12]!==d){let e;n[14]!==r||n[15]!==i||n[16]!==o||n[17]!==s||n[18]!==l||n[19]!==u?(e=(e,t)=>{let n=r+t,a=l(e),d=o?o(e,n):n;return(0,E.jsx)(yk,{style:{top:n*(s+u[i])},children:a},d)},n[14]=r,n[15]=i,n[16]=o,n[17]=s,n[18]=l,n[19]=u,n[20]=e):e=n[20],t=a.slice(r,d).map(e),n[5]=r,n[6]=i,n[7]=o,n[8]=s,n[9]=a,n[10]=l,n[11]=u,n[12]=d,n[13]=t}else t=n[13];return t}(y);return x[35]!==P?(v={height:P},x[35]=P,x[36]=v):v=x[36],x[37]!==N||x[38]!==v?(w=(0,E.jsx)("div",{ref:S,style:v,children:N}),x[37]=N,x[38]=v,x[39]=w):w=x[39],x[40]!==C||x[41]!==o||x[42]!==w?(b=(0,E.jsx)(yC,{as:C,"data-ui":"VirtualList",...o,ref:L,children:w}),x[40]=C,x[41]=o,x[42]=w,x[43]=b):b=x[43],b}).displayName="ForwardRef(VirtualList)";let yM=[0,0,0,0],yL={top:["bottom","left","right"],"top-start":["bottom-start","left-start","right-start"],"top-end":["bottom-end","left-end","right-end"],bottom:["top","left","right"],"bottom-start":["top-start","left-start","right-start"],"bottom-end":["top-end","left-end","right-end"],left:["right","top","bottom"],"left-start":["right-start","top-start","bottom-start"],"left-end":["right-end","top-end","bottom-end"],right:["left","top","bottom"],"right-start":["left-start","top-start","bottom-start"],"right-end":["left-end","top-end","bottom-end"]},yS=nF(f1.create(mj)).withConfig({displayName:"MotionCard",componentId:"sc-ihg31s-0"})`&:not([hidden]){display:flex;}flex-direction:column;width:max-content;min-width:min-content;will-change:transform;`,yE=nF(f1.create(mp)).withConfig({displayName:"MotionFlex",componentId:"sc-ihg31s-1"})`will-change:opacity;`,yR=(0,_.forwardRef)(function(e,t){let n,r,i,o,s,a,l,u,d,c,h,f,p,g,m,y,v,w,b,x,C,k,j,M,L,S,R,V,_,$,A,T=(0,eU.c)(66);T[0]!==e?({__unstable_margins:l,animate:n,arrow:r,arrowRef:i,arrowX:o,arrowY:s,children:a,padding:h,placement:f,originX:u,originY:d,overflow:c,radius:p,scheme:m,shadow:y,strategy:v,style:w,tone:b,width:x,x:C,y:k,...g}=e,T[0]=e,T[1]=n,T[2]=r,T[3]=i,T[4]=o,T[5]=s,T[6]=a,T[7]=l,T[8]=u,T[9]=d,T[10]=c,T[11]=h,T[12]=f,T[13]=p,T[14]=g,T[15]=m,T[16]=y,T[17]=v,T[18]=w,T[19]=b,T[20]=x,T[21]=C,T[22]=k):(n=T[1],r=T[2],i=T[3],o=T[4],s=T[5],a=T[6],l=T[7],u=T[8],d=T[9],c=T[10],h=T[11],f=T[12],p=T[13],g=T[14],m=T[15],y=T[16],v=T[17],w=T[18],b=T[19],x=T[20],C=T[21],k=T[22]);let{zIndex:H}=yl(),I=l||yM,P=(C??0)+I[3],O=(k??0)+I[0],B=n?"transform":void 0;T[23]!==u||T[24]!==d||T[25]!==v||T[26]!==w||T[27]!==B||T[28]!==x||T[29]!==P||T[30]!==O||T[31]!==H?(j={left:P,originX:u,originY:d,position:v,top:O,width:x,zIndex:H,willChange:B,...w},T[23]=u,T[24]=d,T[25]=v,T[26]=w,T[27]=B,T[28]=x,T[29]=P,T[30]=O,T[31]=H,T[32]=j):j=T[32];let N=j,W=null!==o?o:void 0,z=null!==s?s:void 0;T[33]!==W||T[34]!==z?(M={left:W,top:z,right:void 0,bottom:void 0},T[33]=W,T[34]=z,T[35]=M):M=T[35];let D=M,F=g;return T[36]!==n?(L=n?["hidden","initial"]:void 0,T[36]=n,T[37]=L):L=T[37],T[38]!==n?(S=n?["visible","scaleIn"]:void 0,T[38]=n,T[39]=S):S=T[39],T[40]!==n?(R=n?["hidden","scaleOut"]:void 0,T[40]=n,T[41]=R):R=T[41],T[42]!==a||T[43]!==h?(V=(0,E.jsx)(mp,{direction:"column",flex:1,padding:h,children:a}),T[42]=a,T[43]=h,T[44]=V):V=T[44],T[45]!==c||T[46]!==V?(_=(0,E.jsx)(yE,{"data-ui":"Popover__wrapper",direction:"column",flex:1,overflow:c,variants:pY,transition:pX,children:V}),T[45]=c,T[46]=V,T[47]=_):_=T[47],T[48]!==r||T[49]!==i||T[50]!==D?($=r&&(0,E.jsx)(m9,{ref:i,style:D,width:19,height:8,radius:2}),T[48]=r,T[49]=i,T[50]=D,T[51]=$):$=T[51],T[52]!==f||T[53]!==p||T[54]!==t||T[55]!==N||T[56]!==m||T[57]!==y||T[58]!==_||T[59]!==$||T[60]!==F||T[61]!==L||T[62]!==S||T[63]!==R||T[64]!==b?(A=(0,E.jsxs)(yS,{"data-ui":"Popover",...F,"data-placement":f,radius:p,ref:t,scheme:m,shadow:y,sizing:"border",style:N,tone:b,variants:pG,transition:pX,initial:L,animate:S,exit:R,children:[_,$]}),T[52]=f,T[53]=p,T[54]=t,T[55]=N,T[56]=m,T[57]=y,T[58]=_,T[59]=$,T[60]=F,T[61]=L,T[62]=S,T[63]=R,T[64]=b,T[65]=A):A=T[65],A});yR.displayName="ForwardRef(PopoverCard)";let yV=()=>{let e,t=(0,eU.c)(2),{zIndex:n}=yl();return t[0]!==n?(e=(0,E.jsx)("div",{style:{height:"100vh",inset:0,position:"fixed",width:"100vw",zIndex:n}}),t[0]=n,t[1]=e):e=t[1],e},y_=(0,_.forwardRef)(function(e,t){let n,r,i,o,s,a,l,u,d,c,h,f,p,g,m,y,v,w,b,x,C,k,j,M,L,S,R,V,$,A,T,H,I,P,O,B,N,W,z,D,F,Z,U,q,G,Y,X,K,J,Q,ee,et,en,er,ei,eo,es,ea=(0,eU.c)(126),{container:el,layer:eu}=gr(),ed=yn();if(ea[0]!==e){let{__unstable_margins:t,animate:E,arrow:_,boundaryElement:A,children:T,constrainSize:H,content:I,disabled:P,fallbackPlacements:O,matchReferenceWidth:B,floatingBoundary:N,modal:W,onActivate:z,open:D,overflow:F,padding:Z,placement:U,placementStrategy:q,portal:G,preventOverflow:Y,radius:X,referenceBoundary:K,referenceElement:J,scheme:Q,shadow:ee,tone:et,width:en,zOffset:er,updateRef:ei,...eo}=e;v=t,w=E,C=_,n=A,a=T,k=H,l=I,u=P,r=O,d=B,i=N,c=W,h=D,j=F,f=Z,M=U,L=q,p=G,S=Y,R=X,o=K,g=J,y=Q,V=ee,b=et,x=en,s=er,$=ei,m=eo,ea[0]=e,ea[1]=n,ea[2]=r,ea[3]=i,ea[4]=o,ea[5]=s,ea[6]=a,ea[7]=l,ea[8]=u,ea[9]=d,ea[10]=c,ea[11]=h,ea[12]=f,ea[13]=p,ea[14]=g,ea[15]=m,ea[16]=y,ea[17]=v,ea[18]=w,ea[19]=b,ea[20]=x,ea[21]=C,ea[22]=k,ea[23]=j,ea[24]=M,ea[25]=L,ea[26]=S,ea[27]=R,ea[28]=V,ea[29]=$}else n=ea[1],r=ea[2],i=ea[3],o=ea[4],s=ea[5],a=ea[6],l=ea[7],u=ea[8],d=ea[9],c=ea[10],h=ea[11],f=ea[12],p=ea[13],g=ea[14],m=ea[15],y=ea[16],v=ea[17],w=ea[18],b=ea[19],x=ea[20],C=ea[21],k=ea[22],j=ea[23],M=ea[24],L=ea[25],S=ea[26],R=ea[27],V=ea[28],$=ea[29];let ec=void 0===v?yM:v,eh=void 0!==w&&w,ef=void 0!==C&&C,ep=void 0!==k&&k,eg=void 0===j?"hidden":j,em=void 0===M?"bottom":M,ey=void 0===L?"flip":L,ev=void 0===S||S,ew=void 0===R?3:R,eb=void 0===V?3:V,ex=void 0===b?"inherit":b,eC=void 0===x?"auto":
689x,ek=n??ed?.element,ej=r??yL[e.placement??"bottom"],eM=i??e.boundaryElement??ed.element,eL=o??e.boundaryElement??ed.element,eS=s??eu.popover.zOffset,eE=!mP()&&eh,eR=mV(ek)?.border;ea[30]!==f?(A=p2(f),ea[30]=f,ea[31]=A):A=ea[31];let eV=A;ea[32]!==ew?(T=p2(ew),ea[32]=ew,ea[33]=T):T=ea[33];let e_=T;ea[34]!==eb?(H=p2(eb),ea[34]=eb,ea[35]=H):H=ea[35];let e$=H,eA=p2(eC);ea[36]!==eS?(I=p2(eS),ea[36]=eS,ea[37]=I):I=ea[37];let eT=I,eH=(0,_.useRef)(null),eI=(0,_.useRef)(null);ea[38]===Symbol.for("react.memo_cache_sentinel")?(P=()=>eH.current,ea[38]=P):P=ea[38],(0,_.useImperativeHandle)(t,P);let eP=mT(),eO=ep||ev?eR?.width:void 0,eB=function(e){let{container:t,mediaIndex:n,width:r}=e,i=r[n],o=void 0===i?r[r.length-1]:i;return"number"==typeof o?t[o]:void 0}({container:el,mediaIndex:eP,width:eA}),eN=(0,_.useRef)(eB);ea[39]!==eB?(O=()=>{eN.current=eB},B=[eB],ea[39]=eB,ea[40]=O,ea[41]=B):(O=ea[40],B=ea[41]),(0,_.useEffect)(O,B),ea[42]!==eO||ea[43]!==eB?(N=function(e){let{boundaryWidth:t,currentWidth:n}=e;if(void 0!==n||void 0!==t)return Math.min(n??1/0,(t||1/0)-8)}({boundaryWidth:eO,currentWidth:eB}),ea[42]=eO,ea[43]=eB,ea[44]=N):N=ea[44];let eW=N,ez=(0,_.useRef)(eW);ea[45]!==eW?(W=()=>{ez.current=eW},z=[eW],ea[45]=eW,ea[46]=W,ea[47]=z):(W=ea[46],z=ea[47]),(0,_.useEffect)(W,z);let eD=(0,_.useRef)(void 0);ea[48]!==d||ea[49]!==eW||ea[50]!==h||ea[51]!==eB?(D=()=>{let e=eH.current;if(!h||!e)return;let t=eD.current;d?void 0!==t&&(e.style.width=`${t}px`):void 0!==eB&&(e.style.width=`${eB}px`),"number"==typeof eW&&(e.style.maxWidth=`${eW}px`)},F=[eB,d,eW,h],ea[48]=d,ea[49]=eW,ea[50]=h,ea[51]=eB,ea[52]=D,ea[53]=F):(D=ea[52],F=ea[53]),(0,_.useEffect)(D,F);let[eF,eZ]=(0,_.useState)(void 0);ea[54]!==eE||ea[55]!==ef||ea[56]!==ep||ea[57]!==ej||ea[58]!==eM||ea[59]!==ec||ea[60]!==d||ea[61]!==em||ea[62]!==ey||ea[63]!==ev||ea[64]!==eL?(Z={animate:eE,arrowProp:ef,arrowRef:eI,constrainSize:ep,fallbackPlacements:ej,floatingBoundary:eM,margins:ec,matchReferenceWidth:d,maxWidthRef:ez,placementProp:em,placementStrategy:ey,preventOverflow:ev,referenceBoundary:eL,referenceWidthRef:eD,rootBoundary:"viewport",setReferenceWidth:eZ,widthRef:eN},ea[54]=eE,ea[55]=ef,ea[56]=ep,ea[57]=ej,ea[58]=eM,ea[59]=ec,ea[60]=d,ea[61]=em,ea[62]=ey,ea[63]=ev,ea[64]=eL,ea[65]=Z):Z=ea[65];let eq=function(e){let t,n=(0,eU.c)(42),{animate:r,arrowProp:i,arrowRef:o,constrainSize:s,fallbackPlacements:a,floatingBoundary:l,margins:u,matchReferenceWidth:d,maxWidthRef:c,placementProp:h,placementStrategy:f,preventOverflow:p,referenceBoundary:g,referenceWidthRef:m,rootBoundary:y,setReferenceWidth:v,widthRef:w}=e;if(n[0]!==r||n[1]!==i||n[2]!==o||n[3]!==s||n[4]!==a||n[5]!==l||n[6]!==u||n[7]!==d||n[8]!==c||n[9]!==h||n[10]!==f||n[11]!==p||n[12]!==g||n[13]!==m||n[14]!==y||n[15]!==v||n[16]!==w){var b,x,C,k,j,M;let e,L,S;if(t=[],s||p)if("autoPlacement"===f){let e,r;n[18]!==a||n[19]!==h?(e={name:(r={name:"autoPlacement",options:C=b={allowedPlacements:[h].concat(a)},async fn(e){var t,n,r,i;let{rects:o,middlewareData:s,placement:a,platform:l,elements:u}=e,{crossAxis:d=!1,alignment:c,allowedPlacements:h=sR,autoAlignment:f=!0,...p}=sI(C,e),g=void 0!==c||h===sR?((i=c||null)?[...h.filter(e=>sO(e)===i),...h.filter(e=>sO(e)!==i)]:h.filter(e=>sP(e)===e)).filter(e=>!i||sO(e)===i||!!f&&sD(e)!==e):h,m=await l.detectOverflow(e,p),y=(null==(t=s.autoPlacement)?void 0:t.index)||0,v=g[y];if(null==v)return{};let w=sz(v,o,await (null==l.isRTL?void 0:l.isRTL(u.floating)));if(a!==v)return{reset:{placement:g[0]}};let b=[m[sP(v)],m[w[0]],m[w[1]]],x=[...(null==(n=s.autoPlacement)?void 0:n.overflows)||[],{placement:v,overflows:b}],k=g[y+1];if(k)return{data:{index:y+1,overflows:x},reset:{placement:k}};let j=x.map(e=>{let t=sO(e.placement);return[e.placement,t&&d?e.overflows.slice(0,2).reduce((e,t)=>e+t,0):e.overflows[0],e.overflows]}).sort((e,t)=>e[1]-t[1]),M=(null==(r=j.filter(e=>e[2].slice(0,sO(e[0])?2:3).every(e=>e<=0))[0])?void 0:r[0])||j[0][0];return M!==a?{data:{index:y+1,overflows:x},reset:{placement:M}}:{}}}).name,fn:r.fn,options:[b,x]},n[18]=a,n[19]=h,n[20]=e):e=n[20],t.push(e)}else{let e,r=l||void 0;n[21]!==a||n[22]!==y||n[23]!==r?(e=aN({boundary:r,fallbackPlacements:a,padding:4,rootBoundary:y}),n[21]=a,n[22]=y,n[23]=r,n[24]=e):e=n[24],t.push(e)}if(n[25]===Symbol.for("react.memo_cache_sentinel")?(e=aO({mainAxis:4}
689),n[25]=e):e=n[25],t.push(e),s||d){let e,r=l||void 0;n[26]!==s||n[27]!==u||n[28]!==d||n[29]!==c||n[30]!==m||n[31]!==v||n[32]!==r||n[33]!==w?(e=function(e){let{constrainSize:t,margins:n,matchReferenceWidth:r,maxWidthRef:i,padding:o=0,referenceWidthRef:s,setReferenceWidth:a,widthRef:l}=e;return{name:"@sanity/ui/size",async fn(u){let{elements:d,placement:c,platform:h,rects:f}=u,{floating:p,reference:g}=f,m=await sJ(u,{altBoundary:!0,boundary:e.boundaryElement||void 0,elementContext:"floating",padding:o,rootBoundary:"viewport"}),y=1/0,v=1/0,w=p.width,b=p.height;c.includes("top")&&(y=w-(m.left+m.right),v=b-m.top),c.includes("right")&&(y=w-m.right,v=b-(m.top+m.bottom)),c.includes("bottom")&&(y=w-(m.left+m.right),v=b-m.bottom),c.includes("left")&&(y=w-m.left,v=b-(m.top+m.bottom));let x=y-n[1]-n[3],C=v-n[0]-n[2],k=g.width-n[1]-n[3];s.current=k,a(k),r?d.floating.style.width=`${k}px`:void 0!==l.current&&(d.floating.style.width=`${l.current}px`),t&&(d.floating.style.maxWidth=`${Math.min(x,i.current??1/0)}px`,d.floating.style.maxHeight=`${C}px`);let j=await h.getDimensions(d.floating),M=j.height;return w!==j.width||b!==M?{reset:{rects:!0}}:{}}}}({boundaryElement:r,constrainSize:s,margins:u,matchReferenceWidth:d,maxWidthRef:c,padding:4,referenceWidthRef:m,setReferenceWidth:v,widthRef:w}),n[26]=s,n[27]=u,n[28]=d,n[29]=c,n[30]=m,n[31]=v,n[32]=r,n[33]=w,n[34]=e):e=n[34],t.push(e)}if(p){let e,r=l||void 0;n[35]!==y||n[36]!==r?(e=aB({boundary:r,rootBoundary:y,padding:4}),n[35]=y,n[36]=r,n[37]=e):e=n[37],t.push(e)}if(i){let e;n[38]!==o?(e=aW({element:o,padding:4}),n[38]=o,n[39]=e):e=n[39],t.push(e)}r&&t.push(m0);let E=g||void 0;n[40]!==E?(L={name:(S={name:"hide",options:M=k={boundary:E,padding:4,strategy:"referenceHidden"},async fn(e){let{rects:t,platform:n}=e,{strategy:r="referenceHidden",...i}=sI(M,e);switch(r){case"referenceHidden":{let r=s1(await n.detectOverflow(e,{...i,elementContext:"reference"}),t.reference);return{data:{referenceHiddenOffsets:r,referenceHidden:s0(r)}}}case"escaped":{let r=s1(await n.detectOverflow(e,{...i,altBoundary:!0}),t.floating);return{data:{escapedOffsets:r,escaped:s0(r)}}}default:return{}}}}).name,fn:S.fn,options:[k,j]},n[40]=E,n[41]=L):L=n[41],t.push(L),n[0]=r,n[1]=i,n[2]=o,n[3]=s,n[4]=a,n[5]=l,n[6]=u,n[7]=d,n[8]=c,n[9]=h,n[10]=f,n[11]=p,n[12]=g,n[13]=m,n[14]=y,n[15]=v,n[16]=w,n[17]=t}else t=n[17];return t}(Z);ea[66]!==g?(U=g?{reference:g}:void 0,ea[66]=g,ea[67]=U):U=ea[67],ea[68]!==eq||ea[69]!==em||ea[70]!==U?(q={middleware:eq,placement:em,whileElementsMounted:aV,elements:U},ea[68]=eq,ea[69]=em,ea[70]=U,ea[71]=q):q=ea[71];let{x:eG,y:eY,middlewareData:eX,placement:eK,refs:eJ,strategy:eQ,update:e1}=aP(q),e0=eX.hide?.referenceHidden,e5=eX.arrow?.x,e2=eX.arrow?.y,e3=eX["@sanity/ui/origin"]?.originX,e4=eX["@sanity/ui/origin"]?.originY;ea[72]===Symbol.for("react.memo_cache_sentinel")?(G=e=>{eI.current=e},ea[72]=G):G=ea[72];let e6=G;ea[73]!==eJ?(Y=e=>{eH.current=e,eJ.setFloating(e)},ea[73]=eJ,ea[74]=Y):Y=ea[74];let e8=Y;ea[75]!==a?(X=a?yj(a):null,ea[75]=a,ea[76]=X):X=ea[76],ea[77]!==eJ.reference.current?(K=()=>eJ.reference.current,ea[77]=eJ.reference.current,ea[78]=K):K=ea[78],(0,_.useImperativeHandle)(X,K);t:{let e;if(g){J=a;break t}if(!a){J=null;break t}ea[79]!==a||ea[80]!==eJ.setReference?(e=(0,_.cloneElement)(a,{ref:eJ.setReference}),ea[79]=a,ea[80]=eJ.setReference,ea[81]=e):e=ea[81],J=e}let e9=J;if(ea[82]!==e1?(Q=()=>e1,ee=[e1],ea[82]=e1,ea[83]=Q,ea[84]=ee):(Q=ea[83],ee=ea[84]),(0,_.useImperativeHandle)($,Q,ee),u){let e;return ea[85]!==a?(e=a||(0,E.jsx)(E.Fragment,{}),ea[85]=a,ea[86]=e):e=ea[86],e}ea[87]!==c?(et=c&&(0,E.jsx)(yV,{}),ea[87]=c,ea[88]=et):et=ea[88];let e7=d?eF:eB;ea[89]!==eE||ea[90]!==ef||ea[91]!==e5||ea[92]!==e2||ea[93]!==l||ea[94]!==ec||ea[95]!==e3||ea[96]!==e4||ea[97]!==eg||ea[98]!==eV||ea[99]!==eK||ea[100]!==e_||ea[101]!==e0||ea[102]!==m||ea[103]!==y||ea[104]!==e8||ea[105]!==e$||ea[106]!==eQ||ea[107]!==e7||ea[108]!==ex||ea[109]!==eG||ea[110]!==eY?(en=(0,E.jsx)(yR,{...m,__unstable_margins:ec,animate:eE,arrow:ef,arrowRef:e6,arrowX:e5,arrowY:e2,hidden:e0,overflow:eg,padding:eV,placement:eK,radius:e_,ref:e8,scheme:y,shadow:e$,originX:e3,originY:e4,strategy:eQ,tone:ex,width:e7,x:eG,y:eY,children:l}),ea[89]=eE,ea[90]=ef,ea[91]=e5,ea[92]=e2,ea[93]=l,ea[94]=ec,ea[95]=e3,ea[96]=e4,ea[97]=eg,ea[98]=eV,ea[99]=eK,ea[100]=e_,ea[101]=e0,ea[102]=m,ea[103]=y,ea[104]=e8,ea[105]=e$,ea[106]=eQ,ea[107]=e7,ea[108]=ex,ea[109]=eG,ea[110]=eY,ea[111]=en):en=ea[111],ea[112]!==et||ea[113]!==en||ea[114]!==eT?(er=(0,E.jsxs)(yo,{zOffset:eT,children:[et,en]}),ea[112]=et,ea[113]=en,ea[114]=eT,ea[115]=er):er=ea[115];let te=er;ea[116]!==h||ea[117]!==te||ea[118]!==p?(ei=h&&(p?(0,E.jsx)(ym,{__unstable_name:"string"==typeof p?p:void 0,children:te}):te),ea[116]=h,ea[117]=te,ea[118]=p,ea[119]=ei):ei=ea[119];let tt=ei;return ea[120]!==eE||ea[121]!==tt?(eo=eE?(0,E.jsx)(f7,{children:tt}):tt,ea[120]=eE,ea[121]=tt,ea[122]=eo):eo=ea[122],ea[123]!==e9||ea[124]!==eo?(es=(0,E.jsxs)(E.Fragment,{children:[eo,e9]}),ea[123]=e9,ea[124]=eo,ea[125]=es):es=ea[125],es});y_.displayName="ForwardRef(Popover)";let y$=nF.div.withConfig({displayName:"StyledRadio",componentId:"sc-ccrwkf-0"})(function(){return nD` 690 position: relative; 691 692 &:not([hidden]) { 693 display: inline-block; 694 } 695 696 &[data-read-only] { 697 outline: 1px solid red; 698 } 699 `}),yA=nF.input.withConfig({displayName:"Input",componentId:"sc-ccrwkf-1"}
699)(function(e){let{color:t,input:n}=G(e.theme),r=(n.radio.size-n.radio.markSize)/2;return nD` 700 appearance: none; 701 position: absolute; 702 top: 0; 703 left: 0; 704 opacity: 0; 705 height: 100%; 706 width: 100%; 707 outline: none; 708 z-index: 1; 709 padding: 0; 710 margin: 0; 711 border-radius: ${p0(n.radio.size/2)}; 712 border: none; 713 714 /* enabled */ 715 & + span { 716 display: block; 717 position: relative; 718 height: ${p0(n.radio.size)}; 719 width: ${p0(n.radio.size)}; 720 border-radius: ${p0(n.radio.size/2)}; 721 background: ${t.input.default.enabled.bg}; 722 box-shadow: ${gM({color:t.input.default.enabled.border,width:n.border.width})}; 723 724 &::after { 725 content: ''; 726 position: absolute; 727 top: ${p0(r)}; 728 left: ${p0(r)}; 729 height: ${p0(n.radio.markSize)}; 730 width: ${p0(n.radio.markSize)}; 731 border-radius: ${p0(n.radio.markSize/2)}; 732 background: ${t.input.default.enabled.fg}; 733 opacity: 0; 734 } 735 } 736 737 /* focused */ 738 &:not(:disabled):focus + span { 739 box-shadow: ${gL({border:{width:n.border.width,color:t.input.default.enabled.border},focusRing:n.radio.focusRing})}; 740 } 741 742 &:not(:disabled):focus:not(:focus-visible) + span { 743 box-shadow: ${gM({color:t.input.default.enabled.border,width:n.border.width})}; 744 } 745 746 &:checked + span::after { 747 opacity: 1; 748 } 749 750 /* customValidity */ 751 &[data-error] + span { 752 background-color: ${t.input.invalid.enabled.border}; 753 box-shadow: ${gM({width:n.border.width,color:t.input.invalid.enabled.muted.bg})}; 754 &::after { 755 background: ${t.input.invalid.enabled.muted.bg}; 756 } 757 } 758 759 /* read only */ 760 &[data-read-only] + span { 761 box-shadow: 0 0 0 1px ${t.input.default.readOnly.border}; 762 background: ${t.input.default.readOnly.bg}; 763 764 &::after { 765 background: ${t.input.default.readOnly.border}; 766 } 767 } 768 769 /* disabled */ 770 &:not([data-read-only]):disabled + span { 771 box-shadow: 0 0 0 1px ${t.input.default.disabled.border}; 772 background: ${t.input.default.disabled.bg}; 773 774 &::after { 775 background: ${t.input.default.disabled.border}; 776 } 777 } 778 `});function yT(e){let{font:t}=G(e.theme);return nD` 779 -webkit-font-smoothing: antialiased; 780 appearance: none; 781 border: 0; 782 font-family: ${t.text.family}; 783 color: inherit; 784 width: 100%; 785 outline: none; 786 margin: 0; 787 788 &:disabled { 789 opacity: 1; 790 } 791 `}function yH(e){let{color:t,input:n}=G(e.theme);return nD` 792 /* enabled */ 793 background-color: ${t.input.default.enabled.bg}; 794 color: ${t.input.default.enabled.fg}; 795 box-shadow: ${gM({color:t.input.default.enabled.border,width:n.border.width})}; 796 797 /* hovered */ 798 @media (hover: hover) { 799 &:not(:disabled):hover { 800 background-color: ${t.input.default.hovered.bg}; 801 color: ${t.input.default.hovered.fg}; 802 box-shadow: ${gM({color:t.input.default.hovered.border,width:n.border.width})}; 803 } 804 } 805 806 /* focused */ 807 &:not(:disabled):focus { 808 box-shadow: ${gL({border:{width:n.border.width,color:t.input.default.enabled.border},focusRing:n.select.focusRing})}; 809 } 810 811 /* read-only */ 812 &[data-read-only] { 813 background-color: ${t.input.default.readOnly.bg}; 814 color: ${t.input.default.readOnly.fg}; 815 box-shadow: ${gM({color:t.input.default.readOnly.border,width:n.border.width})}; 816 } 817 818 /* disabled */ 819 &:not([data-read-only]):disabled { 820 background-color: ${t.input.default.disabled.bg}; 821 color: ${t.input.default.disabled.fg}; 822 box-shadow: ${gM({color:t.input.default.disabled.border,width:n.border.width})}; 823 } 824 `}function yI(e){let{$fontSize:t}=e,{font:n,media:r}=G(e.theme);return p5(r,t,e=>{var t;return{fontSize:p0((t=n.text.sizes[e]||n.text.sizes[2]).fontSize),lineHeight:`${p0(t.lineHeight)}`}})}(0,_.forwardRef)(function(e,t){let n,r,i,o,s,a,l,u,d,c,h=(0,eU.c)(19);h[0]!==e?({className:n,disabled:i,style:a,customValidity:r,readOnly:o,...s}=e,h[0]=e,h[1]=n,h[2]=r,h[3]=i,h[4]=o,h[5]=s,h[6]=a):(n=h[1],r=h[2],i=h[3],o=h[4],s=h[5],a=h[6]);let f=(0,_.useRef)(null);h[7]===Symbol.for("react.memo_cache_sentinel")?(l=()=>f.current,h[7]=l):l=h[7],(0,_.useImperativeHandle)(t,l),mS(f,r);let p=!i&&o?"":void 0,g=r?"":void 0,m=i||o;return h[8]!==o||h[9]!==s||h[10]!==p||h[11]!==g||h[12]!==m?(u=(0,E.jsx)(yA,{"data-read-only":p,"data-error":g,...s,disabled:m,readOnly:o,ref:f,type:"radio"}),h[8]=o,h[9]=s,h[10]=p,h[11]=g,h[12]=m,h[13]=u):u=h[13],h[14]===Symbol.for("react.memo_cache_sentinel")?(d=(0,E.jsx)("span",{}),h[14]=d):d=h[14],h[15]!==n||h[16]!==a||h[17]!==u?(c=(0,E.jsxs)(y$,{className:n,"data-ui":"Radio",style:a,children:[u,d]}),h[15]=n,h[16]=a,h[17]=u,h[18]=c):c=h[18],c}).displayName="ForwardRef(Radio)";let yP=nF.div.withConfig({displayName:"StyledSelect",componentId:"sc-5mxno7-0"})(function(){return nD` 825 position: relative; 826 width: -moz-available; 827 width: -webkit-fill-available; 828 width: stretch; 829 830 &:not([hidden]) { 831 display: inline-block; 832 } 833 `}),yO=nF.select.withConfig({displayName:"Input",componentId:"sc-5mxno7-1"})(function(){return[g1,yT,yH,yI,gq]}),yB=nF(mu).withConfig({displayName:"IconBox",componentId:"sc-5mxno7-2"}
833)(function(e){let{color:t}=G(e.theme);return nD` 834 pointer-events: none; 835 position: absolute; 836 top: 0; 837 right: 0; 838 839 /* enabled */ 840 --card-fg-color: ${t.input.default.enabled.fg}; 841 842 /* hover */ 843 @media (hover: hover) { 844 select:not(disabled):not(:read-only):hover + && { 845 --card-fg-color: ${t.input.default.hovered.fg}; 846 } 847 } 848 849 /* disabled */ 850 select:disabled + && { 851 --card-fg-color: ${t.input.default.disabled.fg}; 852 } 853 854 /* read-only */ 855 select[data-read-only] + && { 856 --card-fg-color: ${t.input.default.readOnly.fg}; 857 } 858 `});(0,_.forwardRef)(function(e,t){let n,r,i,o,s,a,l,u,d,c,h,f,p,g,m,y,v,w,b,x,C=(0,eU.c)(38);C[0]!==e?({children:n,customValidity:r,disabled:i,fontSize:l,gap:o,padding:u,radius:d,readOnly:s,space:c,...a}=e,C[0]=e,C[1]=n,C[2]=r,C[3]=i,C[4]=o,C[5]=s,C[6]=a,C[7]=l,C[8]=u,C[9]=d,C[10]=c):(n=C[1],r=C[2],i=C[3],o=C[4],s=C[5],a=C[6],l=C[7],u=C[8],d=C[9],c=C[10]);let k=void 0===l?2:l,j=void 0===u?3:u,M=void 0===d?2:d,L=void 0===o?void 0===c?3:c:o,S=(0,_.useRef)(null);C[11]===Symbol.for("react.memo_cache_sentinel")?(h=()=>S.current,C[11]=h):h=C[11],(0,_.useImperativeHandle)(t,h),mS(S,r);let R=!i&&s?"":void 0;C[12]!==k?(f=p2(k),C[12]=k,C[13]=f):f=C[13],C[14]!==j?(p=p2(j),C[14]=j,C[15]=p):p=C[15],C[16]!==M?(g=p2(M),C[16]=M,C[17]=g):g=C[17],C[18]!==L?(m=p2(L),C[18]=L,C[19]=m):m=C[19];let V=i||s;return C[20]!==n||C[21]!==a||C[22]!==V||C[23]!==R||C[24]!==f||C[25]!==p||C[26]!==g||C[27]!==m?(y=(0,E.jsx)(yO,{"data-read-only":R,"data-ui":"Select",...a,$fontSize:f,$padding:p,$radius:g,$space:m,disabled:V,ref:S,children:n}),C[20]=n,C[21]=a,C[22]=V,C[23]=R,C[24]=f,C[25]=p,C[26]=g,C[27]=m,C[28]=y):y=C[28],C[29]===Symbol.for("react.memo_cache_sentinel")?(v=(0,E.jsx)(rx,{}),C[29]=v):v=C[29],C[30]!==k?(w=(0,E.jsx)(mc,{size:k,children:v}),C[30]=k,C[31]=w):w=C[31],C[32]!==j||C[33]!==w?(b=(0,E.jsx)(yB,{padding:j,children:w}),C[32]=j,C[33]=w,C[34]=b):b=C[34],C[35]!==y||C[36]!==b?(x=(0,E.jsxs)(yP,{"data-ui":"Select",children:[y,b]}),C[35]=y,C[36]=b,C[37]=x):x=C[37],x}).displayName="ForwardRef(Select)";let yN={"&&:not([hidden])":{display:"grid"},'&[data-as="ul"],&[data-as="ol"]':{listStyle:"none"},gridTemplateColumns:"minmax(0, 1fr)",gridAutoRows:"min-content"},yW=nF(mu).withConfig({displayName:"StyledStack",componentId:"sc-8dpfq2-0"})(function(){return yN},function(e){let{media:t,space:n}=G(e.theme);return p5(t,e.$space,e=>({gridGap:p0(n[e])}))}),yz=(0,_.forwardRef)(function(e,t){let n,r,i,o,s,a,l=(0,eU.c)(13);l[0]!==e?({as:n,gap:i,space:r,...o}=e,l[0]=e,l[1]=n,l[2]=r,l[3]=i,l[4]=o):(n=l[1],r=l[2],i=l[3],o=l[4]);let u=void 0===i?r:i,d="string"==typeof n?n:void 0;return l[5]!==u?(s=p2(u),l[5]=u,l[6]=s):s=l[6],l[7]!==n||l[8]!==t||l[9]!==o||l[10]!==d||l[11]!==s?(a=(0,E.jsx)(yW,{"data-as":d,"data-ui":"Stack",...o,$space:s,forwardedAs:n,ref:t}),l[7]=n,l[8]=t,l[9]=o,l[10]=d,l[11]=s,l[12]=a):a=l[12],a});yz.displayName="ForwardRef(Stack)";let yD=nF.span.withConfig({displayName:"StyledSwitch",componentId:"sc-dw1foe-0"})(function(){return nD` 859 position: relative; 860 &:not([hidden]) { 861 display: inline-block; 862 } 863 `}),yF=nF.input.withConfig({displayName:"Input",componentId:"sc-dw1foe-1"})(function(){return nD` 864 position: absolute; 865 top: 0; 866 right: 0; 867 bottom: 0; 868 left: 0; 869 opacity: 0; 870 height: 100%; 871 width: 100%; 872 outline: none; 873 padding: 0; 874 margin: 0; 875 876 /* Place the input element above the representation element */ 877 z-index: 1; 878 `}),yZ=nF.span.withConfig({displayName:"Representation",componentId:"sc-dw1foe-2"})(function(e){let{color:t,input:n}=G(e.theme);return nD` 879 --switch-bg-color: ${t.input.default.enabled.border}; 880 --switch-fg-color: ${t.input.default.enabled.bg}; 881 --switch-box-shadow: none; 882 883 &:not([hidden]) { 884 display: block; 885 } 886 position: relative; 887 width: ${p0(n.switch.width)}; 888 height: ${p0(n.switch.height)}; 889 border-radius: ${p0(n.switch.height/2)}; 890 891 /* Make sure itâs not possible to interact with the wrapper element */ 892 pointer-events: none; 893 894 &:after { 895 content: ''; 896 display: block; 897 position: absolute; 898 top: 0; 899 left: 0; 900 right: 0; 901 bottom: 0; 902 z-index: 1;
903 box-shadow: var(--switch-box-shadow); 904 border-radius: inherit; 905 } 906 907 /* Focus styles */ 908 input:focus + && { 909 --switch-box-shadow: ${gL({focusRing:n.switch.focusRing})}; 910 } 911 912 input:focus:not(:focus-visible) + && { 913 --switch-box-shadow: none; 914 } 915 916 input:checked + && { 917 --switch-bg-color: ${t.input.default.enabled.fg}; 918 --switch-fg-color: ${t.input.default.enabled.bg}; 919 } 920 921 @media (hover: hover) { 922 input:not(:disabled):hover + && { 923 --switch-bg-color: ${t.input.default.hovered.border}; 924 --switch-fg-color: ${t.input.default.hovered.bg}; 925 } 926 927 input:not(:disabled):checked:hover + && { 928 --switch-bg-color: ${t.input.default.enabled.fg}; 929 --switch-fg-color: ${t.input.default.enabled.bg}; 930 } 931 } 932 933 input:not([data-read-only]):disabled + && { 934 --switch-bg-color: ${t.input.default.disabled.border}; 935 --switch-fg-color: ${t.input.default.disabled.bg}; 936 } 937 938 input[data-read-only]:disabled + && { 939 --switch-bg-color: ${t.input.default.readOnly.border}; 940 --switch-fg-color: ${t.input.default.readOnly.bg}; 941 } 942 943 input:checked[data-read-only]:disabled + && { 944 --switch-bg-color: ${t.input.default.readOnly.fg}; 945 --switch-fg-color: ${t.input.default.readOnly.bg}; 946 } 947 `}),yU=nF.span.withConfig({displayName:"Track",componentId:"sc-dw1foe-3"})(function(e){let{input:t}=G(e.theme);return nD` 948 &:not([hidden]) { 949 display: block; 950 } 951 background-color: var(--switch-bg-color); 952 position: absolute; 953 left: 0; 954 top: 0; 955 width: ${p0(t.switch.width)}; 956 height: ${p0(t.switch.height)}; 957 border-radius: ${p0(t.switch.height/2)}; 958 `}),yq=nF.span.withConfig({displayName:"Thumb",componentId:"sc-dw1foe-4"})(function(e){let{$indeterminate:t}=e,{input:n}=G(e.theme),r=n.switch.width,i=n.switch.height,o=n.switch.padding,s=i-2*n.switch.padding,a=r-2*o-s,l=r/2-s/2-o,u=!0!==t&&!0===e.$checked;return nD` 959 &:not([hidden]) { 960 display: block; 961 } 962 position: absolute; 963 left: ${p0(o)}; 964 top: ${p0(o)}; 965 height: ${p0(s)}; 966 width: ${p0(s)}; 967 border-radius: ${p0(s/2)}; 968 transition-property: transform; 969 transition-duration: ${n.switch.transitionDurationMs}ms; 970 transition-timing-function: ${n.switch.transitionTimingFunction}; 971 background: var(--switch-fg-color); 972 transform: translate3d(0, 0, 0); 973 box-shadow: 0px 1px 0px 0px rgba(0, 0, 0, 0.05); 974 975 ${u&&nD` 976 transform: translate3d(${a}px, 0, 0); 977 `} 978 979 ${t&&nD` 980 transform: translate3d(${l}px, 0, 0); 981 `} 982 `});(0,_.forwardRef)(function(e,t){let n,r,i,o,s,a,l,u,d,c,h,f,p,g,m=(0,eU.c)(26);m[0]!==e?({checked:n,className:r,disabled:i,indeterminate:o,readOnly:s,style:l,...a}=e,m[0]=e,m[1]=n,m[2]=r,m[3]=i,m[4]=o,m[5]=s,m[6]=a,m[7]=l):(n=m[1],r=m[2],i=m[3],o=m[4],s=m[5],a=m[6],l=m[7]);let y=(0,_.useRef)(null);m[8]===Symbol.for("react.memo_cache_sentinel")?(u=()=>y.current,m[8]=u):u=m[8],(0,_.useImperativeHandle)(t,u),m[9]!==o?(d=()=>{y.current&&(y.current.indeterminate=o||!1)},c=[o],m[9]=o,m[10]=d,m[11]=c):(d=m[10],c=m[11]),(0,_.useEffect)(d,c);let v=!i&&s?"":void 0,w=!0!==o&&n,b=i||s;return m[12]!==a||m[13]!==v||m[14]!==w||m[15]!==b?(h=(0,E.jsx)(yF,{"data-read-only":v,...a,checked:w,disabled:b,type:"checkbox",ref:y}),m[12]=a,m[13]=v,m[14]=w,m[15]=b,m[16]=h):h=m[16],m[17]===Symbol.for("react.memo_cache_sentinel")?(f=(0,E.jsx)(yU,{}),m[17]=f):f=m[17],m[18]!==n||m[19]!==o?(p=(0,E.jsxs)(yZ,{"aria-hidden":!0,"data-name":"representation",children:[f,(0,E.jsx)(yq,{$checked:n,$indeterminate:o})]}),m[18]=n,m[19]=o,m[20]=p):p=m[20],m[21]!==r||m[22]!==l||m[23]!==h||m[24]!==p?(g=(0,E.jsxs)(yD,{className:r,"data-ui":"Switch",style:l,children:[h,p]}),m[21]=r,m[22]=l,m[23]=h,m[24]=p,m[25]=g):g=m[25],g}).displayName="ForwardRef(Switch)";let yG=nF.span.withConfig({displayName:"StyledTextArea",componentId:"sc-1d6h1o8-0"})(gY),yY=nF.span.withConfig({displayName:"InputRoot",componentId:"sc-1d6h1o8-1"})`flex:1;min-width:0;display:block;position:relative;`,yX=nF.textarea.withConfig({displayName:"Input",componentId:"sc-1d6h1o8-2"})(gU,gX,gK),yK=nF.div.withConfig({displayName:"Presentation",componentId:"sc-1d6h1o8-3"})(g1,gJ);(0,_.forwardRef)(function(e,t){let n,r,i,o,s,a,l,u,d,c,h,f,p,g,m,y,v,w=(0,eU.c)(35);w[0]!==e?({border:o,customValidity:r,disabled:s,fontSize:a,padding:l,radius:u,weight:d,__unstable_disableFocusRing:n,...i}=e,w[0]=e,w[1]=n,w[2]=r,w[3]=i,w[4]=o,w[5]=s,w[6]=a,w[7]=l,w[8]=u,w[9]=d):(n=w[1],r=w[2],i=w[3],o=w[4],s=w[5],a=w[6],l=w[7],u=w[8],d=w[9]);let b=void 0===o||o,x=void 0!==s&&s,C=void 0===a?2:a,k=void 0===l?3:l,j=void 0===u?2:u,M=(0,_.useRef)(null),L=gt();w[10]===Symbol.for("react.memo_cache_sentinel")?(c=()=>M.current,w[10]=c):c=w[10],(0,_.useImperativeHandle)(t,c),mS(M,r);let S=L.scheme,R=L.tone;w[11]!==C?(h=p2(C),w[11]=C,w[12]=h):h=w[12],w[13]!==k?(f=p2(k),w[13]=k,w[14]=f):f=w[14];let V=L.scheme;w[15]===Symbol.for("react.memo_cache_sentinel")?(p=p2(0),w[15]=p):p=w[15],w[16]!==x||w[17]!==i||w[18]!==L.scheme||w[19]!==L.tone||w[20]!==h||w[21]!==f||w[22]!==d?(g=(0,E.jsx)(yX,{"data-as":"textarea","data-scheme":S,"data-tone":R,...i,$fontSize:h,$padding:f,$scheme:V,$space:p,$tone:L.tone,$weight:d,disabled:x,ref:M}),w[16]=x,w[17]=i,w[18]=L.scheme,w[19]=L.tone,w[20]=h,w[21]=f,w[22]=d,w[23]=g):g=w[23],w[24]!==j?(m=p2(j),w[24]=j,w[25]=m):m=w[25];let $=b?"":void 0;return w[26]!==n||w[27]!==L.scheme||w[28]!==L.tone||w[29]!==m||w[30]!==$?(y=(0,E.jsx)(yK,{$radius:m,$unstableDisableFocusRing:n,$scheme:L.scheme,$tone:L.tone,"data-border":$,"data-scheme":L.scheme,"data-tone":L.tone}),w[26]=n,w[27]=L.scheme,w[28]=L.tone,w[29]=m,w[30]=$,w[31]=y):y=w[31],w[32]!==g||w[33]!==y?(v=(0,E.jsx)(yG,{"data-ui":"TextArea",children:(0,E.jsxs)(yY,{children:[g,y]})}),w[32]=g,w[33]=y,w[34]=v):v=w[34],v}).displayName="ForwardRef(TextArea)";let yJ={zIndex:2},yQ=nF(mj).attrs({forwardedAs:"span"}).withConfig({displayName:"StyledTextInput",componentId:"sc-h62wco-0"})(gY),y1=nF.span.withConfig({displayName:"InputRoot",componentId:"sc-h62wco-1"})`flex:1;min-width:0;display:block;position:relative;`,y0=nF(mj).attrs({forwardedAs:"span"}).withConfig({displayName:"Prefix",componentId:"sc-h62wco-2"})`border-top-right-radius:0;border-bottom-right-radius:0;& >
982 span{display:block;margin:-1px;}`,y5=nF(mj).attrs({forwardedAs:"span"}).withConfig({displayName:"Suffix",componentId:"sc-h62wco-3"})`border-top-left-radius:0;border-bottom-left-radius:0;& > span{display:block;margin:-1px;}`,y2=nF.input.withConfig({displayName:"Input",componentId:"sc-h62wco-4"})(gU,gX,gK),y3=nF.span.withConfig({displayName:"Presentation",componentId:"sc-h62wco-5"})(g1,gJ),y4=nF(mu).withConfig({displayName:"LeftBox",componentId:"sc-h62wco-6"})`position:absolute;top:0;left:0;`,y6=nF(mu).withConfig({displayName:"RightBox",componentId:"sc-h62wco-7"})`position:absolute;top:0;right:0;`,y8=nF(mj).withConfig({displayName:"RightCard",componentId:"sc-h62wco-8"})`background-color:transparent;position:absolute;top:0;right:0;`,y9=nF(mC).withConfig({displayName:"TextInputClearButton",componentId:"sc-h62wco-9"})({"&:not([hidden])":{display:"block"}}),y7=(0,_.forwardRef)(function(e,t){let n,r,i,o,s,a,l,u,d,c,h,f,p,g,m,y,v,w,b,x,C,k,j,M,L,S,R,V,$,A,T,H,I,P,O,B,N=(0,eU.c)(93);N[0]!==e?({__unstable_disableFocusRing:i,border:f,clearButton:o,disabled:p,fontSize:g,gap:a,icon:n,iconRight:r,onClear:l,padding:m,prefix:u,radius:y,readOnly:d,space:v,suffix:h,customValidity:s,type:w,weight:b,...c}=e,N[0]=e,N[1]=n,N[2]=r,N[3]=i,N[4]=o,N[5]=s,N[6]=a,N[7]=l,N[8]=u,N[9]=d,N[10]=c,N[11]=h,N[12]=f,N[13]=p,N[14]=g,N[15]=m,N[16]=y,N[17]=v,N[18]=w,N[19]=b):(n=N[1],r=N[2],i=N[3],o=N[4],s=N[5],a=N[6],l=N[7],u=N[8],d=N[9],c=N[10],h=N[11],f=N[12],p=N[13],g=N[14],m=N[15],y=N[16],v=N[17],w=N[18],b=N[19]);let W=void 0===f||f,z=void 0!==p&&p,D=void 0===g?2:g,F=void 0===m?3:m,Z=void 0===y?2:y,U=void 0===v?3:v,q=void 0===w?"text":w,G=(0,_.useRef)(null),Y=gt();N[20]!==D?(x=p2(D),N[20]=D,N[21]=x):x=N[21];let X=x;N[22]!==F?(C=p2(F),N[22]=F,N[23]=C):C=N[23];let K=C;N[24]!==Z?(k=p2(Z),N[24]=Z,N[25]=k):k=N[25];let J=k,Q=void 0===a?U:a;N[26]!==Q?(j=p2(Q),N[26]=Q,N[27]=j):j=N[27];let ee=j,et=!!o,en=!!n,er=!!r,ei=!!h,eo=!!u;N[28]===Symbol.for("react.memo_cache_sentinel")?(M=()=>G.current,N[28]=M):M=N[28],(0,_.useImperativeHandle)(t,M),mS(G,s),N[29]!==l?(L=e=>{e.preventDefault(),e.stopPropagation(),l&&l(),G.current?.focus()},N[29]=l,N[30]=L):L=N[30];let es=L;N[31]!==u||N[32]!==J?(S=u&&(0,E.jsx)(y0,{borderTop:!0,borderLeft:!0,borderBottom:!0,radius:J,sizing:"border",tone:"inherit",children:(0,E.jsx)("span",{children:u})}),N[31]=u,N[32]=J,N[33]=S):S=N[33];let ea=S,el=W?"":void 0;N[34]!==n||N[35]!==X||N[36]!==K?(R=n&&(0,E.jsx)(y4,{padding:K,children:(0,E.jsxs)(mc,{size:X,children:[(0,_.isValidElement)(n)&&n,(0,nq.isValidElementType)(n)&&(0,E.jsx)(n,{})]})}),N[34]=n,N[35]=X,N[36]=K,N[37]=R):R=N[37],N[38]!==et||N[39]!==r||N[40]!==X||N[41]!==K?(V=!et&&r&&(0,E.jsx)(y6,{padding:K,children:(0,E.jsxs)(mc,{size:X,children:[(0,_.isValidElement)(r)&&r,(0,nq.isValidElementType)(r)&&(0,E.jsx)(r,{})]})}),N[38]=et,N[39]=r,N[40]=X,N[41]=K,N[42]=V):V=N[42],N[43]!==eo||N[44]!==ei||N[45]!==i||N[46]!==J||N[47]!==Y.scheme||N[48]!==Y.tone||N[49]!==el||N[50]!==R||N[51]!==V?($=(0,E.jsxs)(y3,{$hasPrefix:eo,$unstableDisableFocusRing:i,$hasSuffix:ei,$radius:J,$scheme:Y.scheme,$tone:Y.tone,"data-border":el,"data-scheme":Y.scheme,"data-tone":Y.tone,children:[R,V]}),N[43]=eo,N[44]=ei,N[45]=i,N[46]=J,N[47]=Y.scheme,N[48]=Y.tone,N[49]=el,N[50]=R,N[51]=V,N[52]=$):$=N[52];let eu=$;N[53]!==K?(A=K.map(vt),N[53]=K,N[54]=A):A=N[54];let ed=A;N[55]!==K?(T=K.map(vn),N[55]=K,N[56]=T):T=N[56];let ec=T,eh="object"==typeof o?o:pq;N[57]!==o||N[58]!==ed||N[59]!==ec||N[60]!==eh||N[61]!==s||N[62]!==z||N[63]!==X||N[64]!==es||N[65]!==J||N[66]!==d?(H=!z&&!d&&o&&(0,E.jsx)(y8,{forwardedAs:"span",padding:ed,style:yJ,tone:s?"critical":"inherit",children:(0,E.jsx)(y9,{"aria-label":"Clear","data-qa":"clear-button",fontSize:X,icon:rV,mode:"bleed",padding:ec,radius:J,...eh,onClick:es,onMouseDown:ve})}),N[57]=o,N[58]=ed,N[59]=ec,N[60]=eh,N[61]=s,N[62]=z,N[63]=X,N[64]=es,N[65]=J,N[66]=d,N[67]=H):H=N[67];let ef=H;N[68]!==J||N[69]!==h?(I=h&&(0,E.jsx)(y5,{borderTop:!0,borderRight:!0,borderBottom:!0,radius:J,sizing:"border",tone:"inherit",children:(0,E.jsx)("span",{children:h})}),N[68]=J,N[69]=h,N[70]=I):I=N[70];let ep=I,eg=er||et;return N[71]!==en||N[72]!==z||N[73]!==X||N[74]!==K||N[75]!==d||N[76]!==c||N[77]!==Y.scheme||N[78]!==Y.tone||N[79]!==ee||N[80]!==eg||N[81]!==q||N[82]!==b?(P=(0,E.jsx)(y2,{"data-as":"input","data-scheme":Y.scheme,"data-tone":Y.tone,...c,$fontSize:X,$iconLeft:en,$iconRight:eg,$padding:K,$scheme:Y.scheme,$space:ee,$tone:Y.tone,$weight:b,disabled:z,readOnly:d,ref:G,type:q}),N[71]=en,N[72]=z,N[73]=X,N[74]=K,N[75]=d,N[76]=c,N[77]=Y.scheme,N[78]=Y.tone,N[79]=ee,N[80]=eg,N[81]=q,N[82]=b,N[83]=P):P=N[83],N[84]!==ef||N[85]!==eu||N[86]!==P?(O=(0,E.jsxs)(y1,{children:[P,eu,ef]}),N[84]=ef,N[85]=eu,N[86]=P,N[87]=O):O=N[87],N[88]!==ea||N[89]!==Y.tone||N[90]!==ep||N[91]!==O?(B=(0,E.jsxs)(yQ,{"data-ui":"TextInput",tone
982:Y.tone,children:[ea,O,ep]}),N[88]=ea,N[89]=Y.tone,N[90]=ep,N[91]=O,N[92]=B):B=N[92],B});function ve(e){e.preventDefault(),e.stopPropagation()}function vt(e){return 0===e?0:1===e||2===e?1:e-2}function vn(e){return 0===e||1===e?0:2===e?1:e-1}y7.displayName="ForwardRef(TextInput)";let vr={top:["top-end","top-start","bottom","left","right"],"top-start":["top","top-end","bottom-start","left-start","right-start"],"top-end":["top","top-start","bottom-end","left-end","right-end"],bottom:["bottom-end","bottom-start","top","left","right"],"bottom-start":["bottom","bottom-end","top-start","left-start","right-start"],"bottom-end":["bottom","bottom-start","top-end","left-end","right-end"],left:["left-end","left-start","right","top","bottom"],"left-start":["left","left-end","right-start","top-start","bottom-start"],"left-end":["left","left-start","right-end","top-end","bottom-end"],right:["right-end","right-start","left","top","bottom"],"right-start":["right","right-end","left-start","top-start","bottom-start"],"right-end":["right","right-start","left-end","top-end","bottom-end"]},vi=nF(f1.create(mj)).withConfig({displayName:"MotionCard",componentId:"sc-1xn138w-0"})`will-change:transform;`,vo=(0,_.forwardRef)(function(e,t){let n,r,i,o,s,a,l,u,d,c,h,f,p,g,m,y,v,w,b,x,C,k,j=(0,eU.c)(48);j[0]!==e?({animate:n,arrow:r,arrowRef:i,arrowX:o,arrowY:s,children:a,originX:l,originY:u,padding:d,placement:c,radius:h,scheme:p,shadow:g,style:m,...f}=e,j[0]=e,j[1]=n,j[2]=r,j[3]=i,j[4]=o,j[5]=s,j[6]=a,j[7]=l,j[8]=u,j[9]=d,j[10]=c,j[11]=h,j[12]=f,j[13]=p,j[14]=g,j[15]=m):(n=j[1],r=j[2],i=j[3],o=j[4],s=j[5],a=j[6],l=j[7],u=j[8],d=j[9],c=j[10],h=j[11],f=j[12],p=j[13],g=j[14],m=j[15]);let M=n?"transform":void 0;j[16]!==l||j[17]!==u||j[18]!==m||j[19]!==M?(y={originX:l,originY:u,willChange:M,...m},j[16]=l,j[17]=u,j[18]=m,j[19]=M,j[20]=y):y=j[20];let L=y,S=null!==o?o:void 0,R=null!==s?s:void 0;j[21]!==S||j[22]!==R?(v={left:S,top:R,right:void 0,bottom:void 0},j[21]=S,j[22]=R,j[23]=v):v=j[23];let V=v,_=f;return j[24]!==n?(w=n?["hidden","initial"]:void 0,j[24]=n,j[25]=w):w=j[25],j[26]!==n?(b=n?["visible","scaleIn"]:void 0,j[26]=n,j[27]=b):b=j[27],j[28]!==n?(x=n?["hidden","scaleOut"]:void 0,j[28]=n,j[29]=x):x=j[29],j[30]!==r||j[31]!==i||j[32]!==V?(C=r&&(0,E.jsx)(m9,{ref:i,style:V,width:15,height:6,radius:2}),j[30]=r,j[31]=i,j[32]=V,j[33]=C):C=j[33],j[34]!==a||j[35]!==d||j[36]!==c||j[37]!==h||j[38]!==t||j[39]!==L||j[40]!==p||j[41]!==g||j[42]!==_||j[43]!==w||j[44]!==b||j[45]!==x||j[46]!==C?(k=(0,E.jsxs)(vi,{"data-ui":"Tooltip__card",..._,"data-placement":c,padding:d,radius:h,ref:t,scheme:p,shadow:g,style:L,variants:pG,transition:pX,initial:w,animate:b,exit:x,children:[a,C]}),j[34]=a,j[35]=d,j[36]=c,j[37]=h,j[38]=t,j[39]=L,j[40]=p,j[41]=g,j[42]=_,j[43]=w,j[44]=b,j[45]=x,j[46]=C,j[47]=k):k=j[47],k});vo.displayName="ForwardRef(TooltipCard)";let vs=p9("@sanity/ui/context/tooltipDelayGroup",null),va=nF(yc).withConfig({displayName:"StyledTooltip",componentId:"sc-13f2zvh-0"})`pointer-events:none;`,vl=(0,_.forwardRef)(function(e,t){let n,r,i,o,s,a,l,u,d,c,h,f,p,g,m,y,v,w,b,x,C,k,j,M,L,S,R,V,$,A,T,H,I,P,O,B,N,W,z,D,F,Z,U,q,G,Y,X,K,J,Q,ee=(0,eU.c)(137),et=yn(),{layer:en}=gr();ee[0]!==e?({animate:h,arrow:f,boundaryElement:n,children:o,content:s,disabled:l,fallbackPlacements:r,padding:p,placement:g,portal:u,radius:m,scheme:c,shadow:y,zOffset:i,delay:a,...d}=e,ee[0]=e,ee[1]=n,ee[2]=r,ee[3]=i,ee[4]=o,ee[5]=s,ee[6]=a,ee[7]=l,ee[8]=u,ee[9]=d,ee[10]=c,ee[11]=h,ee[12]=f,ee[13]=p,ee[14]=g,ee[15]=m,ee[16]=y):(n=ee[1],r=ee[2],i=ee[3],o=ee[4],s=ee[5],a=ee[6],l=ee[7],u=ee[8],d=ee[9],c=ee[10],h=ee[11],f=ee[12],p=ee[13],g=ee[14],m=ee[15],y=ee[16]);let er=void 0!==h&&h,ei=void 0!==f&&f,eo=void 0===p?2:p,es=void 0===g?"bottom":g,ea=void 0===m?2:m,el=void 0===y?2:y,eu=n??et?.element,ed=r??vr[e.placement??"bottom"],ec=i??en.tooltip.zOffset,eh=!mP()&&er;ee[17]!==ed?(v=p2(ed),ee[17]=ed,ee[18]=v):v=ee[18];let ef=v,ep=(0,_.useRef)(null),[eg,em]=(0,_.useState)(null),ey=(0,_.useRef)(null),[ev,ew]=(0,_.useState)(0);ee[19]===Symbol.for("react.memo_cache_sentinel")?(w=()=>ep.current,ee[19]=w):w=ee[19],(0,_.useImperativeHandle)(t,w);
982let eb=yg(),ex="string"==typeof u?eb.elements?.[u]||null:eb.element;ee[20]!==eh||ee[21]!==ei||ee[22]!==eu||ee[23]!==ef?(b={animate:eh,arrowProp:ei,arrowRef:ey,boundaryElement:eu,fallbackPlacements:ef,rootBoundary:"viewport"},ee[20]=eh,ee[21]=ei,ee[22]=eu,ee[23]=ef,ee[24]=b):b=ee[24];let eC=function(e){let t,n=(0,eU.c)(17),{animate:r,arrowProp:i,arrowRef:o,boundaryElement:s,fallbackPlacements:a,rootBoundary:l}=e;if(n[0]!==r||n[1]!==i||n[2]!==o||n[3]!==s||n[4]!==a||n[5]!==l){let e,u,d;t=[];let c=s||void 0;n[7]!==a||n[8]!==l||n[9]!==c?(e=aN({boundary:c,fallbackPlacements:a,padding:4,rootBoundary:l}),n[7]=a,n[8]=l,n[9]=c,n[10]=e):e=n[10],t.push(e),n[11]===Symbol.for("react.memo_cache_sentinel")?(u=aO({mainAxis:4}),n[11]=u):u=n[11],t.push(u);let h=s||void 0;if(n[12]!==l||n[13]!==h?(d=aB({boundary:h,rootBoundary:l,padding:4}),n[12]=l,n[13]=h,n[14]=d):d=n[14],t.push(d),i){let e;n[15]!==o?(e=aW({element:o,padding:4}),n[15]=o,n[16]=e):e=n[16],t.push(e)}r&&t.push(m0),n[0]=r,n[1]=i,n[2]=o,n[3]=s,n[4]=a,n[5]=l,n[6]=t}else t=n[6];return t}(b);ee[25]!==eg?(x={reference:eg},ee[25]=eg,ee[26]=x):x=ee[26],ee[27]!==eC||ee[28]!==es||ee[29]!==x?(C={middleware:eC,placement:es,whileElementsMounted:aV,elements:x},ee[27]=eC,ee[28]=es,ee[29]=x,ee[30]=C):C=ee[30];let{floatingStyles:ek,placement:ej,middlewareData:eM,refs:eL,update:eS}=aP(C),eE=eM.arrow?.x,eR=eM.arrow?.y,eV=eM["@sanity/ui/origin"]?.originX,e_=eM["@sanity/ui/origin"]?.originY,e$=(0,_.useId)(),[eA,eT]=function(e){let t,n,r,i,o=(0,eU.c)(5),[s,a]=(0,_.useState)(e),l=(0,_.useRef)(void 0);o[0]===Symbol.for("react.memo_cache_sentinel")?(t=(e,t)=>{let n=()=>{a(e)};if(l.current&&(clearTimeout(l.current),l.current=void 0),!t)return n();l.current=setTimeout(n,t)},o[0]=t):t=o[0];let u=t;return o[1]===Symbol.for("react.memo_cache_sentinel")?(n=()=>()=>{l.current&&clearTimeout(l.current)},r=[],o[1]=n,o[2]=r):(n=o[1],r=o[2]),(0,_.useEffect)(n,r),o[3]!==s?(i=[s,u],o[3]=s,o[4]=i):i=o[4],i}(!1),eH=(0,_.useContext)(vs);ee[31]!==eH?(k=eH||{},ee[31]=eH,ee[32]=k):k=ee[32];let{setIsGroupActive:eI,setOpenTooltipId:eP}=k,eO=eA||eH?.openTooltipId===e$,eB=null!==eH,eN="number"==typeof a?a:a?.open||0,eW="number"==typeof a?a:a?.close||0,ez=eB?eH.openDelay:eN,eD=eB?eH.closeDelay:eW;ee[33]!==eD||ee[34]!==eB||ee[35]!==ez||ee[36]!==eI||ee[37]!==eT||ee[38]!==eP||ee[39]!==e$?(j=(e,t)=>{if(eB)if(e){let n=t?0:ez;eI?.(e,n),eP?.(e$,n)}else{let n=eD>200?eD:200;eI?.(e,n),eP?.(null,t?0:eD)}else eT(e,t?0:e?ez:eD)},ee[33]=eD,ee[34]=eB,ee[35]=ez,ee[36]=eI,ee[37]=eT,ee[38]=eP,ee[39]=e$,ee[40]=j):j=ee[40];let eF=j;ee[41]!==o?.props||ee[42]!==eF?(M=e=>{eF(!1),o?.props?.onBlur?.(e)},ee[41]=o?.props,ee[42]=eF,ee[43]=M):M=ee[43];let eZ=M;ee[44]!==o?.props||ee[45]!==eF?(L=e=>{eF(!1,!0),o?.props.onClick?.(e)},ee[44]=o?.props,ee[45]=eF,ee[46]=L):L=ee[46];let eq=L;ee[47]!==o?.props||ee[48]!==eF?(S=e=>{eF(!1,!0),o?.props.onContextMenu?.(e)},ee[47]=o?.props,ee[48]=eF,ee[49]=S):S=ee[49];let eG=S;ee[50]!==o?.props||ee[51]!==eF?(R=e=>{eF(!0),o?.props?.onFocus?.(e)},ee[50]=o?.props,ee[51]=eF,ee[52]=R):R=ee[52];let eY=R;ee[53]!==o?.props||ee[54]!==eF?(V=e=>{eF(!0),o?.props?.onMouseEnter?.(e)},ee[53]=o?.props,ee[54]=eF,ee[55]=V):V=ee[55];let eX=V;ee[56]!==o?.props||ee[57]!==eF?($=e=>{eF(!1),o?.props?.onMouseLeave?.(e)},ee[56]=o?.props,ee[57]=eF,ee[58]=$):$=ee[58];let eK=$;ee[59]!==eF||ee[60]!==eB||ee[61]!==eg||ee[62]!==eO?(A={handleIsOpenChange:eF,referenceElement:eg,showTooltip:eO,isInsideGroup:eB},ee[59]=eF,ee[60]=eB,ee[61]=eg,ee[62]=eO,ee[63]=A):A=ee[63],function(e){let t,n,r,i=(0,eU.c)(10),{handleIsOpenChange:o,referenceElement:s,showTooltip:a,isInsideGroup:l}=e;i[0]!==o||i[1]!==s?(t=(e,t)=>{s&&(s===e||e instanceof Node&&s.contains(e)||(o(!1),t()))},i[0]=o,i[1]=s,i[2]=t):t=i[2];let u=pF(t);i[3]!==l||i[4]!==u||i[5]!==a?(n=()=>{if(!a||l)return;let e=t=>{u(t.target,()=>window.removeEventListener("mousemove",e))};return window.addEventListener("mousemove",e),()=>window.removeEventListener("mousemove",e)},i[3]=l,i[4]=u,i[5]=a,i[6]=n):n=i[6],i[7]!==l||i[8]!==a?(r=[l,a],i[7]=l,i[8]=a,i[9]=r):r=i[9],(0,_.useEffect)(n,r)}(A),ee[64]!==l||ee[65]!==eF||ee[66]!==eO?(T=()=>{l&&eO&&eF(!1)},H=[l,eF,eO],ee[64]=l,ee[65]=eF,ee[66]=eO,ee[67]=T,ee[68]=H):(T=ee[67],H=ee[68]),(0,_.useEffect)(T,H),ee[69]!==s||ee[70]!==eF||ee[71]!==eO?(I=()=>{!s&&eO&&eF(!1)},P=[s,eF,eO],ee[69]=s,ee[70]=eF,ee[71]=eO,ee[72]=I,ee[73]=P):(I=ee[72],P=ee[73]),(0,_.useEffect)(I,P),ee[74]!==eF||ee[75]!==eO?(O=()=>{if(!eO)return;let e=function(e){"Escape"===e.key&&eF(!1,!0)};return window.addEventListener("keydown",e),()=>{window.removeEventListener("keydown",e)}},B=[eF,eO],ee[74]=eF,ee[75]=eO,ee[76]=O,ee[77]=B):(O=ee[76],B=ee[77]),(0,_.useEffect)(O,B),ee[78]!==eu||ee[79]!==ex?.offsetWidth?(N=()=>{ew(Math.min(...eu?[eu.offsetWidth]:[],ex?.offsetWidth||document.body.offsetWidth)-8)},ee[78]=eu,ee[79]=ex?.offsetWidth,ee[80]=N):N=ee[80],ee[81]!==eu||ee[82]!==ex?(W=[eu,ex],ee[81]=eu,ee[82]=ex,ee[83]=W):W=ee[83],(0,_.useLayoutEffect)(N,W),ee[84]!==eS?(z=e=>{ey.current=e,eS()},ee[84]=eS,ee[85]=z):z=ee[85];let eJ=z;ee[86]!==eL?(D=e=>{ep.current=e,eL.setFloating(e)},ee[86]=eL,ee[87]=D):D=ee[87];let eQ=D;t:{let e;if(!o){F=null;break t}ee[88]!==o||ee[89]!==eZ||ee[90]!==eq||ee[91]!==eG||ee[92]!==eY||ee[93]!==eX||ee[94]!==eK?(e=(0,_.cloneElement)(o,{onBlur:eZ,onFocus:eY,onMouseEnter:eX,onMouseLeave:eK,onClick:eq,onContextMenu:eG,ref:em}),ee[88]=o,ee[89]=eZ,ee[90]=eq,ee[91]=eG,ee[92]=eY,ee[93]=eX,ee[94]=eK,ee[95]=e):e=ee[95],F=e}let e1=F;if(ee[96]!==o?(Z=o?yj(o):null,ee[96]=o,ee[97]=Z):Z=ee[97],ee[98]!==eg?
982(U=()=>eg,q=[eg],ee[98]=eg,ee[99]=U,ee[100]=q):(U=ee[99],q=ee[100]),(0,_.useImperativeHandle)(Z,U,q),!e1){let e;return ee[101]===Symbol.for("react.memo_cache_sentinel")?(e=(0,E.jsx)(E.Fragment,{}),ee[101]=e):e=ee[101],e}if(l)return e1;let e0=ev>0?`${ev}px`:void 0;ee[102]!==ek||ee[103]!==e0?(G={...ek,maxWidth:e0},ee[102]=ek,ee[103]=e0,ee[104]=G):G=ee[104],ee[105]!==eh||ee[106]!==ei||ee[107]!==eE||ee[108]!==eR||ee[109]!==s||ee[110]!==eV||ee[111]!==e_||ee[112]!==eo||ee[113]!==ej||ee[114]!==ea||ee[115]!==d||ee[116]!==c||ee[117]!==eJ||ee[118]!==eQ||ee[119]!==el?(Y=(0,E.jsx)(vo,{...d,animate:eh,arrow:ei,arrowRef:eJ,arrowX:eE,arrowY:eR,originX:eV,originY:e_,padding:eo,placement:ej,radius:ea,ref:eQ,scheme:c,shadow:el,children:s}),ee[105]=eh,ee[106]=ei,ee[107]=eE,ee[108]=eR,ee[109]=s,ee[110]=eV,ee[111]=e_,ee[112]=eo,ee[113]=ej,ee[114]=ea,ee[115]=d,ee[116]=c,ee[117]=eJ,ee[118]=eQ,ee[119]=el,ee[120]=Y):Y=ee[120],ee[121]!==d||ee[122]!==eQ||ee[123]!==G||ee[124]!==Y||ee[125]!==ec?(X=(0,E.jsx)(va,{"data-ui":"Tooltip",...d,ref:eQ,style:G,zOffset:ec,children:Y}),ee[121]=d,ee[122]=eQ,ee[123]=G,ee[124]=Y,ee[125]=ec,ee[126]=X):X=ee[126];let e5=X;ee[127]!==u||ee[128]!==eO||ee[129]!==e5?(K=eO&&(u?(0,E.jsx)(ym,{__unstable_name:"string"==typeof u?u:void 0,children:e5}):e5),ee[127]=u,ee[128]=eO,ee[129]=e5,ee[130]=K):K=ee[130];let e2=K;return ee[131]!==eh||ee[132]!==e2?(J=eh?(0,E.jsx)(f7,{children:e2}):e2,ee[131]=eh,ee[132]=e2,ee[133]=J):J=ee[133],ee[134]!==e1||ee[135]!==J?(Q=(0,E.jsxs)(E.Fragment,{children:[J,e1]}),ee[134]=e1,ee[135]=J,ee[136]=Q):Q=ee[136],Q});vl.displayName="ForwardRef(Tooltip)";let vu=nF.kbd.withConfig({displayName:"StyledHotkeys",componentId:"sc-b37mge-0"})`font:inherit;padding:1px;&:not([hidden]){display:block;}`,vd=nF(m1).withConfig({displayName:"Key",componentId:"sc-b37mge-1"})`&:not([hidden]){display:block;}`,vc=(0,_.forwardRef)(function(e,t){let n,r,i,o,s,a,l,u,d,c,h,f=(0,eU.c)(27);f[0]!==e?({fontSize:n,gap:r,keys:i,padding:o,radius:s,space:l,...a}=e,f[0]=e,f[1]=n,f[2]=r,f[3]=i,f[4]=o,f[5]=s,f[6]=a,f[7]=l):(n=f[1],r=f[2],i=f[3],o=f[4],s=f[5],a=f[6],l=f[7]);let p=void 0===r?void 0===l?.5:l:r;f[8]!==p?(u=p2(p),f[8]=p,f[9]=u):u=f[9];let g=u;if(!i||0===i.length){let e;return f[10]===Symbol.for("react.memo_cache_sentinel")?(e=(0,E.jsx)(E.Fragment,{}),f[10]=e):e=f[10],e}if(f[11]!==n||f[12]!==i||f[13]!==o||f[14]!==s){let e;f[16]!==n||f[17]!==o||f[18]!==s?(e=(e,t)=>(0,E.jsx)(vd,{fontSize:n,padding:o,radius:s,children:e},t),f[16]=n,f[17]=o,f[18]=s,f[19]=e):e=f[19],d=i.map(e),f[11]=n,f[12]=i,f[13]=o,f[14]=s,f[15]=d}else d=f[15];return f[20]!==g||f[21]!==d?(c=(0,E.jsx)(mK,{as:"span",gap:g,children:d}),f[20]=g,f[21]=d,f[22]=c):c=f[22],f[23]!==t||f[24]!==a||f[25]!==c?(h=(0,E.jsx)(vu,{"data-ui":"Hotkeys",...a,ref:t,children:c}),f[23]=t,f[24]=a,f[25]=c,f[26]=h):h=f[26],h});vc.displayName="ForwardRef(Hotkeys)";let vh=p9("@sanity/ui/context/menu",null);function vf(e){return pJ(e)&&"true"!==e.getAttribute("data-disabled")||pQ(e)&&!e.disabled}function vp(e){return e.filter(vf)}let vg=[];function vm(){}let vy=nF(mu).withConfig({displayName:"StyledMenu",componentId:"sc-xt0tnv-0"})`outline:none;overflow:auto;`,vv=(0,_.forwardRef)(function(e,t){let n,r,i,o,s,a,l,u,d,c,h,f,p,g,m,y,v,w,b,x,C,k,j,M,L=(0,eU.c)(50);if(L[0]!==e){let{children:t,focusFirst:g,focusLast:m,onClickOutside:y,onEscape:v,onItemClick:w,onItemSelect:b,onKeyDown:x,originElement:C,padding:k,registerElement:j,shouldFocus:M,gap:S,space:E,...R}=e;r=t,o=y,s=v,a=w,l=b,u=x,d=C,f=k,c=j,n=M,i=S,p=E,h=R,L[0]=e,L[1]=n,L[2]=r,L[3]=i,L[4]=o,L[5]=s,L[6]=a,L[7]=l,L[8]=u,L[9]=d,L[10]=c,L[11]=h,L[12]=f,L[13]=p}else n=L[1],r=L[2],i=L[3],o=L[4],s=L[5],a=L[6],l=L[7],u=L[8],d=L[9],c=L[10],h=L[11],f=L[12],p=L[13];let S=void 0===f?1:f,R=void 0===i?void 0===p?1:p:i,V=n??(e.focusFirst&&"first"||e.focusLast&&"last"||null),$=(0,_.useRef)(null);L[14]===Symbol.for("react.memo_cache_sentinel")?(g=()=>$.current,L[14]=g):g=L[14],(0,_.useImperativeHandle)(t,g);let{isTopLayer:A}=yl();L[15]!==u||L[16]!==d||L[17]!==V?(m={onKeyDown:u,originElement:d,shouldFocus:V,rootElementRef:$},L[15]=u,L[16]=d,L[17]=V,L[18]=m):m=L[18];let{activeElement:T,activeIndex:H,handleItemMouseEnter:I,handleItemMouseLeave:P,handleKeyDown:O,mount:B}=function(e){let t,n,r,i,o,s,a,l,u,d=(0,eU.c)(21),{onKeyDown:c,originElement:h,shouldFocus:f,rootElementRef:p}=e;d[0]===Symbol.for("react.memo_cache_sentinel")?(t=[],d[0]=t):t=d[0];let g=(0,_.useRef)(t),[m,y]=(0,_.useState)(-1),v=(0,_.useRef)(m),[w,b]=(0,_.useState)(null);d[1]===Symbol.for("react.memo_cache_sentinel")?(n=e=>{y(e),v.current=e,b(g.current[e]||null)},d[1]=n):n=d[1];let x=n;d[2]!==p?(r=(e,t)=>
982e?(-1===g.current.indexOf(e)&&(g.current.push(e),function(e,t){if(!e)return;let n=new WeakMap;for(let r of t)n.set(r,function(e,t){let n=[],r=t;for(;r!==e;){let t=r.parentElement;if(!t)break;let i=Array.from(t.childNodes).indexOf(r);if(n.unshift(i),t===e)break;r=t}return n}(e,r));t.sort((e,t)=>{let r=n.get(e)||vg,i=n.get(t)||vg,o=Math.max(r.length,i.length);for(let e=0;e<o;e+=1){let t=r[e]||-1,n=i[e]||-1;if(t!==n)return t-n}return 0})}(p.current,g.current)),t&&x(g.current.indexOf(e)),()=>{let t=g.current.indexOf(e);t>-1&&g.current.splice(t,1)}):vm,d[2]=p,d[3]=r):r=d[3];let C=r;d[4]!==c||d[5]!==h?(i=e=>{if("Tab"===e.key){h&&h.focus();return}if("Home"===e.key){e.preventDefault(),e.stopPropagation();let t=vp(g.current)[0];if(!t)return;x(g.current.indexOf(t));return}if("End"===e.key){e.preventDefault(),e.stopPropagation();let t=vp(g.current),n=t[t.length-1];if(!n)return;x(g.current.indexOf(n));return}if("ArrowUp"===e.key){e.preventDefault(),e.stopPropagation();let t=vp(g.current),n=t.length;if(0===n)return;let r=g.current[v.current],i=t.indexOf(r),o=t[i=(i-1+n)%n];x(g.current.indexOf(o));return}if("ArrowDown"===e.key){e.preventDefault(),e.stopPropagation();let t=vp(g.current),n=t.length;if(0===n)return;let r=g.current[v.current],i=t.indexOf(r),o=t[i=(i+1)%n];x(g.current.indexOf(o));return}c&&c(e)},d[4]=c,d[5]=h,d[6]=i):i=d[6];let k=i;d[7]===Symbol.for("react.memo_cache_sentinel")?(o=e=>{let t=e.currentTarget;x(g.current.indexOf(t))},d[7]=o):o=d[7];let j=o;d[8]!==p?(s=()=>{x(-2),p.current?.focus()},d[8]=p,d[9]=s):s=d[9];let M=s;return d[10]!==m||d[11]!==p||d[12]!==f?(a=()=>{if(!p.current)return;let e=requestAnimationFrame(()=>{if(-1===m){if("first"===f){let e=vp(g.current)[0];e&&x(g.current.indexOf(e))}if("last"===f){let e=vp(g.current),t=e[e.length-1];t&&x(g.current.indexOf(t))}return}(g.current[m]||null)?.focus()});return()=>cancelAnimationFrame(e)},l=[m,p,x,f],d[10]=m,d[11]=p,d[12]=f,d[13]=a,d[14]=l):(a=d[13],l=d[14]),(0,_.useEffect)(a,l),d[15]!==w||d[16]!==m||d[17]!==M||d[18]!==k||d[19]!==C?(u={activeElement:w,activeIndex:m,handleItemMouseEnter:j,handleItemMouseLeave:M,handleKeyDown:k,mount:C},d[15]=w,d[16]=m,d[17]=M,d[18]=k,d[19]=C,d[20]=u):u=d[20],u}(m),N=(0,_.useRef)(null);L[19]!==c?(y=e=>{N.current&&(N.current(),N.current=null),$.current=e,$.current&&c&&(N.current=c($.current))},L[19]=c,L[20]=y):y=L[20];let W=y;L[21]!==H||L[22]!==l?(v=()=>{l&&l(H)},w=[H,l],L[21]=H,L[22]=l,L[23]=v,L[24]=w):(v=L[23],w=L[24]),(0,_.useEffect)(v,w),L[25]===Symbol.for("react.memo_cache_sentinel")?(b=()=>[$.current],L[25]=b):b=L[25],mM(A&&o,b),L[26]!==A||L[27]!==s?(x=e=>{A&&"Escape"===e.key&&(e.stopPropagation(),s&&s())},L[26]=A,L[27]=s,L[28]=x):x=L[28],m_(x),L[29]!==T||L[30]!==I||L[31]!==P||L[32]!==B||L[33]!==o||L[34]!==s||L[35]!==a||L[36]!==c?(C={version:2,activeElement:T,mount:B,onClickOutside:o,onEscape:s,onItemClick:a,onItemMouseEnter:I,onItemMouseLeave:P,registerElement:c},L[29]=T,L[30]=I,L[31]=P,L[32]=B,L[33]=o,L[34]=s,L[35]=a,L[36]=c,L[37]=C):C=L[37];let z=C;return L[38]!==r||L[39]!==R?(k=(0,E.jsx)(yz,{gap:R,children:r}),L[38]=r,L[39]=R,L[40]=k):k=L[40],L[41]!==O||L[42]!==W||L[43]!==S||L[44]!==h||L[45]!==k?(j=(0,E.jsx)(vy,{"data-ui":"Menu",...h,onKeyDown:O,padding:S,ref:W,role:"menu",tabIndex:-1,children:k}),L[41]=O,L[42]=W,L[43]=S,L[44]=h,L[45]=k,L[46]=j):j=L[46],L[47]!==j||L[48]!==z?(M=(0,E.jsx)(vh.Provider,{value:z,children:j}),L[47]=j,L[48]=z,L[49]=M):M=L[49],M});vv.displayName="ForwardRef(Menu)";let vw=nF.hr.withConfig({displayName:"MenuDivider",componentId:"sc-uhoxwu-0"})`height:1px;border:0;background:var(--card-hairline-soft-color);margin:0;`;vw.displayName="MenuDivider";let vb=nF(mu).withConfig({displayName:"Selectable",componentId:"sc-1w01ang-0"})(g1,function(){return nD` 983 background-color: inherit; 984 color: inherit; 985 986 &[data-as='button'] { 987 -webkit-font-smoothing: inherit; 988 appearance: none; 989 outline: none; 990 font: inherit; 991 text-align: inherit; 992 border: 0; 993 width: -moz-available; 994 width: -webkit-fill-available; 995 width: stretch; 996 } 997 998 /* &:is(a) */ 999 &[data-as='a'] { 1000 text-decoration: none; 1001 } 1002 `}
1002,function(e){let{$tone:t}=e,{color:n,style:r}=G(e.theme),i=n.selectable[t];return nD` 1003 ${mv(n,i.enabled)} 1004 1005 background-color: var(--card-bg-color); 1006 color: var(--card-fg-color); 1007 outline: none; 1008 1009 /* &:is(button) */ 1010 &[data-as='button'] { 1011 &:disabled { 1012 ${mv(n,i.disabled)} 1013 } 1014 1015 &:not(:disabled) { 1016 &[aria-pressed='true'] { 1017 ${mv(n,i.pressed)} 1018 } 1019 1020 &[data-selected], 1021 &[aria-selected='true'] > & { 1022 ${mv(n,i.selected)} 1023 } 1024 1025 @media (hover: hover) { 1026 &:not([data-selected]) { 1027 &[data-hovered], 1028 &:hover { 1029 ${mv(n,i.hovered)} 1030 } 1031 1032 &:active { 1033 ${mv(n,i.pressed)} 1034 } 1035 } 1036 } 1037 } 1038 } 1039 1040 /* &:is(a) */ 1041 &[data-as='a'] { 1042 &[data-disabled] { 1043 ${mv(n,i.disabled)} 1044 } 1045 1046 &:not([data-disabled]) { 1047 &[data-pressed] { 1048 ${mv(n,i.pressed)} 1049 } 1050 1051 &[data-selected] { 1052 ${mv(n,i.selected)} 1053 } 1054 1055 @media (hover: hover) { 1056 &:not([data-selected]) { 1057 &[data-hovered], 1058 &:hover { 1059 ${mv(n,i.hovered)} 1060 } 1061 &:active { 1062 ${mv(n,i.pressed)} 1063 } 1064 } 1065 } 1066 } 1067 } 1068 1069 ${r?.card?.root} 1070 `});function vx(){let e=(0,_.useContext)(vh);if(!e)throw Error("useMenu(): missing context value");if(!ye(e)||2!==e.version)throw Error("useMenu(): the context value is not compatible");return e}function vC(e){let t,n,r,i,o,s,a,l,u,d,c,h,f,p,g,m,y,v,w,b,x,C,k,j,M,L,S,R,V,$,A,T,H,I,P,O,B,N=(0,eU.c)(82);N[0]!==e?({as:l,children:n,fontSize:u,icon:t,menu:i,onClick:o,padding:d,popover:s,radius:c,gap:r,space:h,text:p,tone:f,...a}=e,N[0]=e,N[1]=t,N[2]=n,N[3]=r,N[4]=i,N[5]=o,N[6]=s,N[7]=a,N[8]=l,N[9]=u,N[10]=d,N[11]=c,N[12]=h,N[13]=f,N[14]=p):(t=N[1],n=N[2],r=N[3],i=N[4],o=N[5],s=N[6],a=N[7],l=N[8],u=N[9],d=N[10],c=N[11],h=N[12],f=N[13],p=N[14]);let W=void 0===l?"button":l,z=void 0===u?1:u,D=void 0===d?3:d,F=void 0===c?2:c,Z=void 0===h?3:h,U=void 0===f?"default":f,q=void 0===r?Z:r,G=vx(),{scheme:Y}=gt(),{activeElement:X,mount:K,onClickOutside:J,onEscape:Q,onItemClick:ee,onItemMouseEnter:et,registerElement:en}=G,er=et??G.onItemMouseEnter,[ei,eo]=(0,_.useState)(null),[es,ea]=(0,_.useState)(!1),[el,eu]=(0,_.useState)(null),ed=!!X&&X===ei,[ec,eh]=(0,_.useState)(!1);N[15]!==er?(g=e=>{eh(!1),er(e),ea(!0)},N[15]=er,N[16]=g):g=N[16];let ef=g;N[17]!==ei?(m=e=>{"ArrowLeft"===e.key&&(e.stopPropagation(),ea(!1),requestAnimationFrame(()=>{ei?.focus()}))},N[17]=ei,N[18]=m):m=N[18];let ep=m;N[19]!==o?(y=e=>{o?.(e),eu("first"),ea(!0)},N[19]=o,N[20]=y):y=N[20];let eg=y;N[21]!==ee?(v=()=>{ea(!1),ee?.()},N[21]=ee,N[22]=v):v=N[22];let em=v;N[23]===Symbol.for("react.memo_cache_sentinel")?(w=()=>eh(!0),N[23]=w):w=N[23];let ey=w;N[24]!==K||N[25]!==ei?(b=()=>K(ei),x=[K,ei],N[24]=K,N[25]=ei,N[26]=b,N[27]=x):(b=N[26],x=N[27]),(0,_.useEffect)(b,x),N[28]!==ed?(C=()=>{ed||ea(!1)},k=[ed],N[28]=ed,N[29]=C,N[30]=k):(C=N[29],k=N[30]),(0,_.useEffect)(C,k),N[31]!==es?(j=()=>{es||eh(!1)},M=[es],N[31]=es,N[32]=j,N[33]=M):(j=N[32],M=N[33]),(0,_.useEffect)(j,M),N[34]!==el?(L=()=>{if(!el)return;let e=requestAnimationFrame(()=>eu(null));return()=>cancelAnimationFrame(e)},S=[el],N[34]=el,N[35]=L,N[36]=S):(L=N[35],S=N[36]),(0,_.useEffect)(L,S),N[37]!==n||N[38]!==em||N[39]!==ep||N[40]!==i||N[41]!==J||N[42]!==Q||N[43]!==en||N[44]!==el?(R=(0,E.jsx)(vv,{...i,onClickOutside:J,onEscape:Q,onItemClick:em,onKeyDown:ep,onMouseEnter:ey,registerElement:en,shouldFocus:el,children:n}),N[37]=n,N[38]=em,N[39]=ep,N[40]=i,N[41]=J,N[42]=Q,N[43]=en,N[44]=el,N[45]=R):R=N[45];let ev=R;N[46]===Symbol.for("react.memo_cache_sentinel")?(V=e=>{let t=e.currentTarget;if(document.activeElement===t&&"ArrowRight"===e.key){eu("first"),ea(!0),eh(!0);return}},N[46]=V):V=N[46];let ew=V,eb="button"===W?ec:void 0,ex="button"!==W?ec:void 0,eC=!ec&&ed?"":void 0;N[47]!==F?($=p2(F),N[47]=F,N[48]=$):$=N[48];let ek="button"===W?"button":void 0;return N[49]!==t||N[50]!==z?(A=t&&(0,E.jsxs)(mc,{size:z,children:[(0,_.isValidElement)(t)&&t,(0,nq.isValidElementType)(t)&&(0,E.jsx)(t,{})]}),N[49]=t,N[50]=z,N[51]=A):A=N[51],N[52]!==z||N[53]!==p?(T=(0,E.jsx)(mu,{flex:1,children:(0,E.jsx)(mc,{size:z,textOverflow:"ellipsis",weight:"medium",children:p})}),N[52]=z,N[53]=p,N[54]=T):T=N[54],N[55]===Symbol.for("react.memo_cache_sentinel")?(H=(0,E.jsx)(rk,{}),N[55]=H):H=N[55],N[56]!==z?(I=(0,E.jsx)(mc,{size:z,children:H}),N[56]=z,N[57]=I):I=N[57],N[58]!==D||N[59]!==q||N[60]!==A||N[61]!==T||N[62]!==I?(P=(0,E.jsxs)(mp,{gap:q,padding:D,children:[A,T,I
1070]}),N[58]=D,N[59]=q,N[60]=A,N[61]=T,N[62]=I,N[63]=P):P=N[63],N[64]!==W||N[65]!==eg||N[66]!==ef||N[67]!==a||N[68]!==Y||N[69]!==eb||N[70]!==ex||N[71]!==eC||N[72]!==$||N[73]!==ek||N[74]!==P||N[75]!==U?(O=(0,E.jsx)(vb,{"data-as":W,"data-ui":"MenuGroup",forwardedAs:W,...a,"aria-pressed":eb,"data-pressed":ex,"data-selected":eC,$radius:$,$tone:U,$scheme:Y,onClick:eg,onKeyDown:ew,onMouseEnter:ef,ref:eo,tabIndex:-1,type:ek,children:P}),N[64]=W,N[65]=eg,N[66]=ef,N[67]=a,N[68]=Y,N[69]=eb,N[70]=ex,N[71]=eC,N[72]=$,N[73]=ek,N[74]=P,N[75]=U,N[76]=O):O=N[76],N[77]!==ev||N[78]!==es||N[79]!==s||N[80]!==O?(B=(0,E.jsx)(y_,{...s,content:ev,"data-ui":"MenuGroup__popover",open:es,children:O}),N[77]=ev,N[78]=es,N[79]=s,N[80]=O,N[81]=B):B=N[81],B}vb.displayName="Selectable",vC.displayName="MenuGroup";let vk=(0,_.forwardRef)(function(e,t){let n,r,i,o,s,a,l,u,d,c,h,f,p,g,m,y,v,w,b,x,C,k,j,M,L,S,R,V,$,A,T,H,I,P,O,B=(0,eU.c)(76);B[0]!==e?({as:v,children:i,disabled:o,fontSize:w,hotkeys:a,icon:n,iconRight:r,onClick:l,padding:b,paddingX:f,paddingY:p,paddingTop:h,paddingRight:c,paddingBottom:u,paddingLeft:d,pressed:g,radius:x,selected:y,gap:s,space:C,text:j,tone:k,...m}=e,B[0]=e,B[1]=n,B[2]=r,B[3]=i,B[4]=o,B[5]=s,B[6]=a,B[7]=l,B[8]=u,B[9]=d,B[10]=c,B[11]=h,B[12]=f,B[13]=p,B[14]=g,B[15]=m,B[16]=y,B[17]=v,B[18]=w,B[19]=b,B[20]=x,B[21]=C,B[22]=k,B[23]=j):(n=B[1],r=B[2],i=B[3],o=B[4],s=B[5],a=B[6],l=B[7],u=B[8],d=B[9],c=B[10],h=B[11],f=B[12],p=B[13],g=B[14],m=B[15],y=B[16],v=B[17],w=B[18],b=B[19],x=B[20],C=B[21],k=B[22],j=B[23]);let N=void 0===v?"button":v,W=void 0===w?1:w,z=void 0===b?3:b,D=void 0===x?2:x,F=void 0===C?3:C,Z=void 0===k?"default":k,U=void 0===s?F:s,{scheme:q}=gt(),G=vx(),{activeElement:Y,mount:X,onItemClick:K,onItemMouseEnter:J,onItemMouseLeave:Q}=G,ee=J??G.onItemMouseEnter,et=Q??G.onItemMouseLeave,[en,er]=(0,_.useState)(null),ei=!!Y&&Y===en,eo=(0,_.useRef)(null);B[24]===Symbol.for("react.memo_cache_sentinel")?(M=()=>eo.current,B[24]=M):M=B[24],(0,_.useImperativeHandle)(t,M),B[25]!==X||B[26]!==en||B[27]!==y?(L=()=>X(en,y),S=[X,en,y],B[25]=X,B[26]=en,B[27]=y,B[28]=L,B[29]=S):(L=B[28],S=B[29]),(0,_.useEffect)(L,S),B[30]!==o||B[31]!==l||B[32]!==K?(R=e=>{o||(l&&l(e),K&&K())},B[30]=o,B[31]=l,B[32]=K,B[33]=R):R=B[33];let es=R;B[34]!==z||B[35]!==u||B[36]!==d||B[37]!==c||B[38]!==h||B[39]!==f||B[40]!==p?(V={padding:z,paddingX:f,paddingY:p,paddingTop:h,paddingRight:c,paddingBottom:u,paddingLeft:d},B[34]=z,B[35]=u,B[36]=d,B[37]=c,B[38]=h,B[39]=f,B[40]=p,B[41]=V):V=B[41];let ea=V;B[42]!==W?($=p2(W).map(vj),B[42]=W,B[43]=$):$=B[43];let el=$;B[44]===Symbol.for("react.memo_cache_sentinel")?(A=e=>{eo.current=e,er(e)},B[44]=A):A=B[44];let eu=A,ed="button"!==N&&g?"":void 0,ec=ei?"":void 0,eh=o?"":void 0;B[45]!==D?(T=p2(D),B[45]=D,B[46]=T):T=B[46],B[47]===Symbol.for("react.memo_cache_sentinel")?(H=p2(0),B[47]=H):H=B[47];let ef=o?"default":Z,ep="button"===N?"button":void 0;return B[48]!==n||B[49]!==r||B[50]!==W||B[51]!==a||B[52]!==el||B[53]!==ea||B[54]!==U||B[55]!==j?(I=(n||j||r)&&(0,E.jsxs)(mp,{as:"span",gap:U,align:"center",...ea,children:[n&&(0,E.jsxs)(mc,{size:W,children:[(0,_.isValidElement)(n)&&n,(0,nq.isValidElementType)(n)&&(0,E.jsx)(n,{})]}),j&&(0,E.jsx)(mu,{flex:1,children:(0,E.jsx)(mc,{size:W,textOverflow:"ellipsis",weight:"medium",children:j})}),a&&(0,E.jsx)(vc,{fontSize:el,keys:a,style:{marginTop:-4,marginBottom:-4}}),r&&(0,E.jsxs)(mc,{size:W,children:[(0,_.isValidElement)(r)&&r,(0,nq.isValidElementType)(r)&&(0,E.jsx)(r,{})]})]}),B[48]=n,B[49]=r,B[50]=W,B[51]=a,B[52]=el,B[53]=ea,B[54]=U,B[55]=j,B[56]=I):I=B[56],B[57]!==i||B[58]!==ea?(P=i&&(0,E.jsx)(mu,{as:"span",...ea,children:i}),B[57]=i,B[58]=ea,B[59]=P):P=B[59],B[60]!==N||B[61]!==o||B[62]!==es||B[63]!==ee||B[64]!==et||B[65]!==m||B[66]!==q||B[67]!==ed||B[68]!==ec||B[69]!==eh||B[70]!==T||B[71]!==ef||B[72]!==ep||B[73]!==I||B[74]!==P?(O=(0,E.jsxs)(vb,{"data-ui":"MenuItem",role:"menuitem",...m,"data-pressed":ed,"data-selected":ec,"data-disabled":eh,forwardedAs:N,$radius:T,$padding:H,$tone:ef,$scheme:q,disabled:o,onClick:es,onMouseEnter:ee,onMouseLeave:et,ref:eu,tabIndex:-1,type:ep,children:[I,P]}),B[60]=N,B[61]=o,B[62]=es,B[63]=ee,B[64]=et,B[65]=m,B[66]=q,B[67]=ed,B[68]=ec,B[69]=eh,B[70]=T,B[71]=ef,B[72]=ep,B[73]=I,B[74]=P,B[75]=O):O=B[75],O});function vj(e){return e-1}vk.displayName="ForwardRef(MenuItem)";let vM=nF(mC).withConfig({displayName:"CustomButton",componentId:"sc-1kns779-0"})`max-width:100%;`,vL=(0,_.forwardRef)(function(e,t){let n,r,i,o,s,a,l,u,d,c,h,f,p,g,m,y,v=(0,eU.c)(30);
1070v[0]!==e?({icon:r,id:i,focused:n,fontSize:d,label:o,onClick:s,onFocus:a,padding:c,selected:u,...l}=e,v[0]=e,v[1]=n,v[2]=r,v[3]=i,v[4]=o,v[5]=s,v[6]=a,v[7]=l,v[8]=u,v[9]=d,v[10]=c):(n=v[1],r=v[2],i=v[3],o=v[4],s=v[5],a=v[6],l=v[7],u=v[8],d=v[9],c=v[10]);let w=void 0===d?1:d,b=void 0===c?2:c,x=(0,_.useRef)(null),C=(0,_.useRef)(!1);v[11]===Symbol.for("react.memo_cache_sentinel")?(h=()=>x.current,v[11]=h):h=v[11],(0,_.useImperativeHandle)(t,h),v[12]===Symbol.for("react.memo_cache_sentinel")?(f=()=>{C.current=!1},v[12]=f):f=v[12];let k=f;v[13]!==a?(p=e=>{C.current=!0,a&&a(e)},v[13]=a,v[14]=p):p=v[14];let j=p;v[15]!==n?(g=()=>{n&&!C.current&&(x.current&&x.current.focus(),C.current=!0)},m=[n],v[15]=n,v[16]=g,v[17]=m):(g=v[16],m=v[17]),(0,_.useEffect)(g,m);let M=u?"true":"false",L=u?0:-1;return v[18]!==w||v[19]!==j||v[20]!==r||v[21]!==i||v[22]!==o||v[23]!==s||v[24]!==b||v[25]!==l||v[26]!==u||v[27]!==M||v[28]!==L?(y=(0,E.jsx)(vM,{"data-ui":"Tab",...l,"aria-selected":M,fontSize:w,icon:r,id:i,mode:"bleed",onClick:s,onBlur:k,onFocus:j,padding:b,ref:x,role:"tab",selected:u,tabIndex:L,text:o,type:"button"}),v[18]=w,v[19]=j,v[20]=r,v[21]=i,v[22]=o,v[23]=s,v[24]=b,v[25]=l,v[26]=u,v[27]=M,v[28]=L,v[29]=y):y=v[29],y});vL.displayName="ForwardRef(Tab)";let vS=nF(mK).withConfig({displayName:"CustomInline",componentId:"sc-5cm04m-0"})`& > div{display:inline-block;vertical-align:middle;max-width:100%;box-sizing:border-box;}`,vE=(0,_.forwardRef)(function(e,t){let n,r,i,o,s,a=(0,eU.c)(15);a[0]!==e?({children:n,...r}=e,a[0]=e,a[1]=n,a[2]=r):(n=a[1],r=a[2]);let[l,u]=(0,_.useState)(-1);if(a[3]!==n||a[4]!==l){let e,t=_.Children.toArray(n).filter(_.isValidElement);a[6]!==l?(e=(e,t)=>(0,_.cloneElement)(e,{focused:l===t,key:t,onFocus:()=>u(t)}),a[6]=l,a[7]=e):e=a[7],i=t.map(e),a[3]=n,a[4]=l,a[5]=i}else i=a[5];let d=i,c=d.length;a[8]!==c?(o=e=>{"ArrowLeft"===e.key&&u(e=>(e+c-1)%c),"ArrowRight"===e.key&&u(e=>(e+1)%c)},a[8]=c,a[9]=o):o=a[9];let h=o;return a[10]!==h||a[11]!==t||a[12]!==r||a[13]!==d?(s=(0,E.jsx)(vS,{"data-ui":"TabList",...r,onKeyDown:h,ref:t,role:"tablist",children:d}),a[10]=h,a[11]=t,a[12]=r,a[13]=d,a[14]=s):s=a[14],s});vE.displayName="ForwardRef(TabList)";var vR=e.i(62966),vV=e.i(23694),v_=e.i(66283);let v$=function(e,t,n,r){var i=-1,o=null==e?0:e.length;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n};var vA=(w={Ã:"A",Ã:"A",Ã:"A",Ã:"A",Ã:"A",Ã
:"A",à :"a",á:"a",â:"a",ã:"a",ä:"a",Ã¥:"a",Ã:"C",ç:"c",Ã:"D",ð:"d",Ã:"E",Ã:"E",Ã:"E",Ã:"E",è:"e",é:"e",ê:"e",ë:"e",Ã:"I",Ã:"I",Ã:"I",Ã:"I",ì:"i",Ã:"i",î:"i",ï:"i",Ã:"N",ñ:"n",Ã:"O",Ã:"O",Ã:"O",Ã:"O",Ã:"O",Ã:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ã:"U",Ã:"U",Ã:"U",Ã:"U",ù:"u",ú:"u",û:"u",ü:"u",Ã:"Y",ý:"y",ÿ:"y",Ã:"Ae",æ:"ae",Ã:"Th",þ:"th",Ã:"ss",Ä:"A",Ä:"A",Ä:"A",Ä:"a",Ä:"a",Ä
:"a",Ä:"C",Ä:"C",Ä:"C",Ä:"C",Ä:"c",Ä:"c",Ä:"c",Ä:"c",Ä:"D",Ä:"D",Ä:"d",Ä:"d",Ä:"E",Ä:"E",Ä:"E",Ä:"E",Ä:"E",Ä:"e",Ä:"e",Ä:"e",Ä:"e",Ä:"e",Ä:"G",Ä:"G",Ä :"G",Ä¢:"G",Ä:"g",Ä:"g",Ä¡:"g",Ä£:"g",Ĥ:"H",Ħ:"H",Ä¥:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Ä®:"I",İ:"I",Ä©:"i",Ä«:"i",Ä:"i",į:"i",ı:"i",Ä´:"J",ĵ:"j",Ķ:"K",Ä·:"k",ĸ:"k",Ĺ:"L",Ä»:"L",Ľ:"L",Ä¿:"L",Å:"L",ĺ:"l",ļ:"l",ľ:"l",Å:"l",Å:"l",Å:"N",Å
:"N",Å:"N",Å:"N",Å:"n",Å:"n",Å:"n",Å:"n",Å:"O",Å:"O",Å:"O",Å:"o",Å:"o",Å:"o",Å:"R",Å:"R",Å:"R",Å:"r",Å:"r",Å:"r",Å:"S",Å:"S",Å:"S",Å :"S",Å:"s",Å:"s",Å:"s",Å¡:"s",Å¢:"T",Ť:"T",Ŧ:"T",Å£:"t",Å¥:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Å®:"U",Ű:"U",Ų:"U",Å©:"u",Å«:"u",Å:"u",ů:"u",ű:"u",ų:"u",Å´:"W",ŵ:"w",Ŷ:"Y",Å·:"y",Ÿ:"Y",Ź:"Z",Å»:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Å:"Oe",Å:"oe",Å:"'n",Å¿:"s"},function(e){return null==w?void 0:w[e]}),vT=e.g&&e.g.Object===Object&&e.g,vH="object"==typeof self&&self&&self.Object===Object&&self,vI=(vT||vH||Function("return this")()).Symbol;let vP=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i};var vO=Array.isArray,vB=Object.prototype,vN=vB.hasOwnProperty,vW=vB.toString,vz=vI?vI.toStringTag:void 0;let vD=function(e){var t=vN.call(e,vz),n=e[vz];try{e[vz]=void 0;var r=!0}catch(e){}var i=vW.call(e);return r&&(t?e[vz]=n:delete e[vz]),i};var vF=Object.prototype.toString,vZ=vI?vI.toStringTag:void 0;
1070let vU=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":vZ&&vZ in Object(e)?vD(e):vF.call(e)},vq=function(e){return"symbol"==typeof e||null!=e&&"object"==typeof e&&"[object Symbol]"==vU(e)};var vG=1/0,vY=vI?vI.prototype:void 0,vX=vY?vY.toString:void 0;let vK=function e(t){if("string"==typeof t)return t;if(vO(t))return vP(t,e)+"";if(vq(t))return vX?vX.call(t):"";var n=t+"";return"0"==n&&1/t==-vG?"-0":n},vJ=function(e){return null==e?"":vK(e)};var vQ=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,v1=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g"),v0=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,v5=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,v2="\\ud800-\\udfff",v3="\\u2700-\\u27bf",v4="a-z\\xdf-\\xf6\\xf8-\\xff",v6="A-Z\\xc0-\\xd6\\xd8-\\xde",v8="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",v9="['â]",v7="["+v8+"]",we="["+v4+"]",wt="[^"+v2+v8+"\\d+"+v3+v4+v6+"]",wn="(?:\\ud83c[\\udde6-\\uddff]){2}",wr="[\\ud800-\\udbff][\\udc00-\\udfff]",wi="["+v6+"]",wo="(?:"+we+"|"+wt+")",ws="(?:"+wi+"|"+wt+")",wa="(?:"+v9+"(?:d|ll|m|re|s|t|ve))?",wl="(?:"+v9+"
1070(?:D|LL|M|RE|S|T|VE))?",wu="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",wd="[\\ufe0e\\ufe0f]?",wc="(?:\\u200d(?:"+["[^"+v2+"]",wn,wr].join("|")+")"+wd+wu+")*",wh="(?:"+["["+v3+"]",wn,wr].join("|")+")"+(wd+wu+wc),wf=RegExp([wi+"?"+we+"+"+wa+"(?="+[v7,wi,"$"].join("|")+")",ws+"+"+wl+"(?="+[v7,wi+wo,"$"].join("|")+")",wi+"?"+wo+"+"+wa,wi+"+"+wl,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])|\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])|\\d+",wh].join("|"),"g");let wp=function(e,t,n){if(e=vJ(e),void 0===(t=n?void 0:t)){var r;return(r=e,v5.test(r))?e.match(wf)||[]:e.match(v0)||[]}return e.match(t)||[]};var wg=RegExp("['â]","g");let wm=function(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r<i;)o[r]=e[r+t];return o},wy=function(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:wm(e,t,n)};var wv=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");let ww=function(e){return wv.test(e)};var wb="\\ud800-\\udfff",wx="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",wC="\\ud83c[\\udffb-\\udfff]",wk="[^"+wb+"]",wj="(?:\\ud83c[\\udde6-\\uddff]){2}",wM="[\\ud800-\\udbff][\\udc00-\\udfff]",wL="(?:"+wx+"|"+wC+")?",wS="[\\ufe0e\\ufe0f]?",wE="(?:\\u200d(?:"+[wk,wj,wM].join("|")+")"+wS+wL+")*",wR=RegExp(wC+"(?="+wC+")|"+("(?:"+[wk+wx+"?",wx,wj,wM,"["+wb+"]"].join("|"))+")"+(wS+wL+wE),"g");let wV=function(e){var t,n=ww(e=vJ(e))?ww(t=e)?t.match(wR)||[]:t.split(""):void 0,r=n?n[0]:e.charAt(0),i=n?wy(n,1).join(""):e.slice(1);return r.toUpperCase()+i};var w_=(b=function(e,t,n){return e+(n?" ":"")+wV(t)},function(e){var t;return v$(wp(((t=vJ(t=e))&&t.replace(vQ,vA).replace(v1,"")).replace(wg,"")),b,"")});function w$(e){let t=function e(t){var n;return!!(n=t)&&("object"==typeof n||"function"==typeof n)&&("reference"===t.name||e(t.type))}(e)&&1===(e.to??[]).length?e.to[0].icon:void 0;return e.icon??e.type?.icon??t}function wA(e,t){return{query:"change query"===t.type?t.query:e.query,groups:"select group"===t.type?e.groups.map(e=>({...e,selected:t.name===e.name})):e.groups,views:"toggle view"===t.type?e.views.map(e=>({...e,selected:t.name===e.name})):e.views}}let wT="all-items",wH={gridTemplateColumns:"repeat(auto-fill, minmax(118px, 1fr))",alignItems:"start"};function wI(e){let t,n,r,i,o,s,a,l,u,d,c,h,f,p,g,m,y=(0,R.c)(54),v=void 0===e.showIcons||e.showIcons,w=void 0===e.filter||"auto"===e.filter?e.schemaTypes.length>5:e.filter;y[0]!==e.groups||y[1]!==e.labels?(t=e.groups?[{name:wT,title:e.labels["insert-menu.filter.all-items"],selected:!0},...e.groups.map(wB)]:[],y[0]=e.groups,y[1]=e.labels,y[2]=t):t=y[2],y[3]!==e.views?(n=e.views??[{name:"list"}
1070],y[3]=e.views,y[4]=n):n=y[4],y[5]!==n?(r=n.map(wO),y[5]=n,y[6]=r):r=y[6],y[7]!==t||y[8]!==r?(i={query:"",groups:t,views:r},y[7]=t,y[8]=r,y[9]=i):i=y[9];let[b,x]=(0,_.useReducer)(wA,i);if(y[10]!==e||y[11]!==w||y[12]!==v||y[13]!==b.groups||y[14]!==b.query||y[15]!==b.views){var C,k,j;let t,n,r,i=(C=e.schemaTypes,k=b.query,j=b.groups,C.filter(e=>{var t,n;let r,i;return t=e,(!(r=j.find(e=>e.selected))||r.name===wT||r.of?.includes(t.name))&&(n=e,i=k.trim().toLowerCase(),n.title?n.title?.toLowerCase().includes(i):n.name.includes(i))})),p=b.views.find(wP),g=w||b.views.length>1,m=b.groups&&b.groups.length>0,M=g||m;a=vv,f=0,s=mp,d="column",c="fill",y[25]!==M?(t=M?{style:{borderBottom:"1px solid var(--card-border-color)"},paddingBottom:1}:{},y[25]=M,y[26]=t):t=y[26],y[27]!==e.labels||y[28]!==w||y[29]!==g||y[30]!==b.query||y[31]!==b.views?(n=g?(0,E.jsxs)(mp,{flex:"none",align:"center",paddingTop:1,paddingX:1,gap:1,children:[w?(0,E.jsx)(mu,{flex:1,children:(0,E.jsx)(y7,{autoFocus:!0,border:!1,fontSize:1,icon:oH,onChange:e=>{x({type:"change query",query:e.target.value})},placeholder:e.labels["insert-menu.search.placeholder"],value:b.query})}):null,b.views.length>1?(0,E.jsx)(mu,{flex:"none",children:(0,E.jsx)(wz,{views:b.views,onToggle:e=>{x({type:"toggle view",name:e})},labels:e.labels})}):null]}):null,y[27]=e.labels,y[28]=w,y[29]=g,y[30]=b.query,y[31]=b.views,y[32]=n):n=y[32],y[33]!==m||y[34]!==b.groups?(r=m?(0,E.jsx)(mu,{paddingTop:1,paddingX:1,children:(0,E.jsx)(vE,{space:1,children:b.groups.map(e=>(0,E.jsx)(vL,{id:`${e.name}-tab`,"aria-controls":`${e.name}-panel`,label:e.title??w_(e.name),selected:e.selected,onClick:()=>{x({type:"select group",name:e.name})}},e.name))})}):null,y[33]=m,y[34]=b.groups,y[35]=r):r=y[35],y[36]!==t||y[37]!==n||y[38]!==r?(h=(0,E.jsxs)(mu,{...t,children:[n,r]}),y[36]=t,y[37]=n,y[38]=r,y[39]=h):h=y[39],o=mu,l=1,u=0===i.length?(0,E.jsx)(mu,{padding:2,children:(0,E.jsx)(mc,{muted:!0,size:1,children:e.labels["insert-menu.search.no-results"]})}):p?"grid"===p.name?(0,E.jsx)(mG,{autoRows:"auto",flex:1,gap:1,style:wH,children:i.map(t=>(0,E.jsx)(wF,{icon:v?w$(t):void 0,onClick:()=>{e.onSelect(t)},previewImageUrl:p.previewImageUrl?.(t.name),schemaType:t},t.name))}):(0,E.jsx)(yz,{flex:1,space:1,children:i.map(t=>(0,E.jsx)(vk,{icon:v?w$(t):void 0,onClick:()=>{e.onSelect(t)},text:t.title??w_(t.name)},t.name))}):null,y[10]=e,y[11]=w,y[12]=v,y[13]=b.groups,y[14]=b.query,y[15]=b.views,y[16]=o,y[17]=s,y[18]=a,y[19]=l,y[20]=u,y[21]=d,y[22]=c,y[23]=h,y[24]=f}else o=y[16],s=y[17],a=y[18],l=y[19],u=y[20],d=y[21],c=y[22],h=y[23],f=y[24];return y[40]!==o||y[41]!==l||y[42]!==u?(p=(0,E.jsx)(o,{padding:l,children:u}),y[40]=o,y[41]=l,y[42]=u,y[43]=p):p=y[43],y[44]!==s||y[45]!==p||y[46]!==d||y[47]!==c||y[48]!==h?(g=(0,E.jsxs)(s,{direction:d,height:c,children:[h,p]}),y[44]=s,y[45]=p,y[46]=d,y[47]=c,y[48]=h,y[49]=g):g=y[49],y[50]!==a||y[51]!==g||y[52]!==f?(m=(0,E.jsx)(a,{padding:f,children:g}),y[50]=a,y[51]=g,y[52]=f,y[53]=m):m=y[53],m}function wP(e){return e.selected}function wO(e,t){return{...e,selected:0===t}}function wB(e){return{...e,selected:!1}}let wN={grid:o8,list:sf},wW={grid:"insert-menu.toggle-grid-view.tooltip",list:"insert-menu.toggle-list-view.tooltip"};function wz(e){let t,n,r,i,o=(0,R.c)(11),s=e.views.findIndex(wD),a=e.views[s+1]??e.views[0],l=e.labels[wW[a.name]];o[0]!==l?(t=(0,E.jsx)(mc,{size:1,children:l}),o[0]=l,o[1]=t):t=o[1];let u=wN[a.name];return o[2]!==a.name||o[3]!==e?(n=()=>{e.onToggle(a.name)},o[2]=a.name,o[3]=e,o[4]=n):n=o[4],o[5]!==u||o[6]!==n?(r=(0,E.jsx)(mC,{mode:"bleed",icon:u,onClick:n}),o[5]=u,o[6]=n,o[7]=r):r=o[7],o[8]!==t||o[9]!==r?(i=(0,E.jsx)(vl,{content:t,placement:"top",portal:!0,children:r}),o[8]=t,o[9]=r,o[10]=i):i=o[10],i}function wD(e){return e.selected}function wF(e){let t,n,r,i,o,s,a,l,u,d=(0,R.c)(20),[c,h]=(0,_.useState)(!1),f=e.icon,p=!!e.previewImageUrl&&!c;d[0]===Symbol.for("react.memo_cache_sentinel")?(t={overflow:"hidden"},d[0]=t):t=d[0],d[1]===Symbol.for("react.memo_cache_sentinel")?(n={backgroundColor:"var(--card-muted-bg-color)",paddingBottom:"66.6%",position:"relative"},d[1]=n):n=d[1],d[2]!==f||d[3]!==p?(r=(0,nq.isValidElementType)(f)&&!p?(0,E.jsx)(mp,{align:"center",justify:"center",style:{position:"absolute",top:0,left:0,width:"100%",height:"100%"},children:(0,E.jsx)(mc,{size:1,children:(0,E.jsx)(f,{})})}):null,d[2]=f,d[3]=p,d[4]=r):r=d[4],d[5]!==p||d[6]!==e.previewImageUrl?(i=p?(0,E.jsx)("img",{src:e.previewImageUrl,style:{objectFit:"contain",width:"100%",height:"100%",position:"absolute",inset:0},onError:()=>{h(!0)}}):null,d[5]=p,d[6]=e.previewImageUrl,d[7]=i):i=d[7],d[8]===Symbol.for("react.memo_cache_sentinel")?(o=(0,E.jsx)("div",{style:{position:"absolute",top:0,left:0,width:"100%",height:"100%",boxShadow:"inset 0 0 0 0.5px var(--card-fg-color)",opacity:.1}}),d[8]=o):o=d[8],d[9]!==r||d[10]!==i?(s=(0,E.jsxs)(mu,{flex:"none",style:n,children:[r,i,o]}),d[9]=r,d[10]=i,d[11]=s):s=d[11];
1070let g=e.schemaType.title??e.schemaType.name;return d[12]!==g?(a=(0,E.jsx)(mu,{flex:"none",paddingX:2,paddingY:1,children:(0,E.jsx)(mc,{size:1,weight:"medium",children:g})}),d[12]=g,d[13]=a):a=d[13],d[14]!==s||d[15]!==a?(l=(0,E.jsxs)(mp,{direction:"column",gap:1,padding:1,children:[s,a]}),d[14]=s,d[15]=a,d[16]=l):l=d[16],d[17]!==e.onClick||d[18]!==l?(u=(0,E.jsx)(vk,{padding:0,radius:2,onClick:e.onClick,style:t,children:l}),d[17]=e.onClick,d[18]=l,d[19]=u):u=d[19],u}function wZ(e){if(!e)return(0,E.jsx)(rZ,{});if("string"===e.type)return(0,E.jsx)(oK,{});if("number"===e.type)return(0,E.jsx)(oi,{});let{value:t}=e;if("icon"in e&&e.icon)return(0,E.jsx)("div",{dangerouslySetInnerHTML:{__html:e.icon}});let{type:n}=t;if("string"===n)return(0,E.jsx)(oK,{});if("boolean"===n)return(0,E.jsx)(rw,{});if("number"===n)return(0,E.jsx)(oi,{});if("array"===n||"union"===n)return(Array.isArray(t.of)?t.of:[t.of]).some(e=>"name"in e&&"block"===e.name)?(0,E.jsx)(ri,{}):(0,E.jsx)(o9,{});if("object"===n){if("image"===e.name)return(0,E.jsx)(iP,{});if("block"===e.name)return(0,E.jsx)(oK,{})}return(0,E.jsx)(rZ,{})}let wU=nD` 1071 overflow-y: scroll; 1072 overscroll-behavior: contain; 1073 -ms-overflow-style: none; 1074 scrollbar-width: none; 1075 1076 &:before { 1077 content: ''; 1078 display: block; 1079 height: calc(100% + 1px); 1080 position: absolute; 1081 top: 0; 1082 width: 100%; 1083 z-index: -1; 1084 } 1085`,wq=nF.div.withConfig({displayName:"PortalContainer",componentId:"sc-11pn4rs-0"})`height:100%;inset:0;pointer-events:all;position:fixed;width:100%;display:flex;justify-content:center;align-items:center;${e=>e.$blockScroll&&wU}`,wG=nF.div.withConfig({displayName:"PortalBackground",componentId:"sc-11pn4rs-1"})`background:transparent;height:100%;inset:0;position:absolute;width:100%;`,wY=e=>{let t,n=(0,R.c)(2);return n[0]!==e?(t=(0,E.jsx)(ym,{children:(0,E.jsx)(wX,{...e})}),n[0]=e,n[1]=t):t=n[1],t},wX=e=>{let t,n,r=(0,R.c)(7),{children:i,onDismiss:o,setBoundaryElement:s,blockScroll:a}=e,l=void 0===a||a;return r[0]!==o?(t=(0,E.jsx)(wG,{onMouseDownCapture:()=>{o?.()}}),r[0]=o,r[1]=t):t=r[1],r[2]!==l||r[3]!==i||r[4]!==s||r[5]!==t?(n=(0,E.jsxs)(wq,{"data-sanity-overlay-element":!0,ref:s,onClick:wK,$blockScroll:l,children:[t,i]}),r[2]=l,r[3]=i,r[4]=s,r[5]=t,r[6]=n):n=r[6],n};function wK(e){e.stopPropagation()}function wJ(e){return{type:"log",name:e.name,version:e.version,description:e.description,maxSampleRate:e.maxSampleRate,schema:void 0}}let wQ={"Visual Editing Drag Sequence Completed":wJ({name:"Visual Editing Drag Sequence Completed",description:"An array is successfully reordered using drag and drop.",version:1}),"Visual Editing Drag Minimap Enabled":wJ({name:"Visual Editing Drag Minimap Enabled",description:"The zoomed-out minimap view is enabled during a drag sequence.",version:1}),"Visual Editing Context Menu Item Removed":wJ({name:"Visual Editing Context Menu Item Removed",description:"An item is removed using the Context Menu.",version:1}),"Visual Editing Context Menu Item Duplicated":wJ({name:"Visual Editing Context Menu Item Duplicated",description:"An item is duplicated using the Context Menu.",version:1}),"Visual Editing Context Menu Item Moved":wJ({name:"Visual Editing Context Menu Item Moved",description:"An item is moved using the Context Menu.",version:1}),"Visual Editing Context Menu Item Inserted":wJ({name:"Visual Editing Context Menu Item Inserted",description:"An item is inserted using the Context Menu.",version:1}),"Visual Editing Insert Menu Item Inserted":wJ({name:"Visual Editing Insert Menu Item Inserted",description:"An item is inserted using the Insert Menu.",version:1}),"Visual Editing Overlay Clicked":wJ({name:"Visual Editing Overlay Clicked",description:"An Overlay is clicked.",version:1})},w1=(0,_.createContext)(void 0);function w0(){let e=(0,_.useContext)(w1);if(!e)throw Error("Telemetry context is missing");return e}let w5={"insert-menu.filter.all-items":"All","insert-menu.search.no-results":"No results","insert-menu.search.placeholder":"Filter typesâ¦","insert-menu.toggle-grid-view.tooltip":"Toggle grid view","insert-menu.toggle-list-view.tooltip":"Toggle list view"},w2=e=>{let t,n,r,i,o=(0,R.c)(11),{node:s,onSelect:a}=e;o[0]!==s.options?.insertMenu?(t=s.options?.insertMenu||{},o[0]=s.options?.insertMenu,o[1]=t):t=o[1];let l=t;o[2]!==l.views?(n=l.views?.map(w3),o[2]=l.views,o[3]=n):n=o[3];let u=n;
1085return o[4]!==s.of?(r=s.of.map(w4),o[4]=s.of,o[5]=r):r=o[5],o[6]!==l||o[7]!==a||o[8]!==r||o[9]!==u?(i=(0,E.jsx)(wI,{...l,labels:w5,schemaTypes:r,onSelect:a,views:u}),o[6]=l,o[7]=a,o[8]=r,o[9]=u,o[10]=i):i=o[10],i};function w3(e){return"grid"===e.name?{...e,previewImageUrl:t=>e.previewImageUrls?.[t]}:e}function w4(e){return{...e,icon:wZ(e)}}let w6=e=>{let t,n,r,i,o,s=(0,R.c)(10);return s[0]!==e?({children:t,style:r,...n}=e,s[0]=e,s[1]=t,s[2]=n,s[3]=r):(t=s[1],n=s[2],r=s[3]),s[4]!==r?(i={...r,pointerEvents:"all"},s[4]=r,s[5]=i):i=s[5],s[6]!==t||s[7]!==n||s[8]!==i?(o=(0,E.jsx)("div",{style:i,"data-sanity-overlay-element":!0,...n,children:t}),s[6]=t,s[7]=n,s[8]=i,s[9]=o):o=s[9],o};function w8(e){if(!(e.tabIndex>0||0===e.tabIndex&&null!==e.getAttribute("tabIndex")||(pJ(e)?!!e.href&&"ignore"!==e.rel:pK(e)&&"INPUT"===e.nodeName?"hidden"!==e.type&&"file"!==e.type&&!e.disabled:!!(pQ(e)||pK(e)&&"SELECT"===e.nodeName||pK(e)&&"TEXTAREA"===e.nodeName)&&!e.disabled)))return!1;try{e.focus()}catch{}return document.activeElement===e}function w9(e){for(let t=0;t<e.childNodes.length;t++){let n=e.childNodes[t];if(pK(n)&&(w8(n)||w9(n)))return!0}return!1}_.Component;let w7=nF.div.withConfig({displayName:"StyledAutocomplete",componentId:"sc-1igauft-0"})`line-height:0;`,be=nF(mu).withConfig({displayName:"ListBox",componentId:"sc-1igauft-1"})`& > ul{list-style:none;padding:0;margin:0;}`,bt=nU` 1086 from { 1087 transform: rotate(0deg); 1088 } 1089 1090 to { 1091 transform: rotate(360deg); 1092 } 1093`,bn=nF(oW).withConfig({displayName:"AnimatedSpinnerIcon",componentId:"sc-1igauft-2"})`animation:${bt} 500ms linear infinite;`;function br(e){let t,n,r,i=(0,eU.c)(11),{children:o,id:s,onSelect:a,selected:l,value:u}=e;i[0]!==a||i[1]!==u?(t=()=>{setTimeout(()=>{a(u)},0)},i[0]=a,i[1]=u,i[2]=t):t=i[2];let d=t;i[3]!==d?(n=e=>{var t;"Enter"!==e.key||pJ(t=e.currentTarget)||pQ(t)||d()},i[3]=d,i[4]=n):n=i[4];let c=n;return i[5]!==o||i[6]!==d||i[7]!==c||i[8]!==s||i[9]!==l?(r=(0,E.jsx)("li",{"aria-selected":l,"data-ui":"AutocompleteOption",id:s,role:"option",onClick:d,onKeyDown:c,children:o}),i[5]=o,i[6]=d,i[7]=c,i[8]=s,i[9]=l,i[10]=r):r=i[10],r}function bi(e,t){return"input/change"===t.type?{...e,activeValue:null,focused:!0,query:t.query}:"input/focus"===t.type?{...e,focused:!0}:"root/blur"===t.type?{...e,focused:!1,query:null}:"root/clear"===t.type?{...e,activeValue:null,query:null,value:null}:"root/escape"===t.type?{...e,focused:!1,query:null}:"root/open"===t.type?{...e,query:e.query||t.query}:"root/setActiveValue"===t.type?{...e,activeValue:t.value,listFocused:t.listFocused||e.listFocused}:"root/setListFocused"===t.type?{...e,listFocused:t.listFocused}:"value/change"===t.type?{...e,activeValue:t.value,query:null,value:t.value}:e}let bo=["Control","Shift","Alt","Enter","Home","End","PageUp","PageDown","Meta","Tab","CapsLock"],bs=["bottom-start","top-start"],ba=(e,t)=>t?t.value:e,bl=(e,t)=>t.value.toLowerCase().indexOf(e.toLowerCase())>-1;function bu({renderPopover:e,content:t,hidden:n,inputElement:r,onMouseEnter:i,onMouseLeave:o,resultsPopoverElementRef:s}){return e({content:t,hidden:n,inputElement:r,onMouseEnter:i,onMouseLeave:o},s)}function bd(e){return 0===e?0:1===e||2===e?1:e-2}function bc(e){return Math.max(e-1,0)}(0,_.forwardRef)(function(e,t){let n,r,i,o,s,a,l,u,d,c,h,f,p,g,m,y,v,w,b,x,C,k,j,M,L,S,R,V,$,A,T,H,I,P,O,B,N,W,z,D,F,Z,U,q,G,Y,X,K,J,Q,ee,et,en,er,ei,eo,es,ea,el,eu,ed,ec,eh,ef,ep=(0,eU.c)(181);ep[0]!==e?({border:k,customValidity:n,disabled:r,filterOption:i,fontSize:j,icon:o,id:s,listBox:M,loading:a,onBlur:l,onChange:u,onFocus:d,onQueryChange:c,onSelect:h,openButton:f,openOnFocus:p,options:g,padding:L,popover:S,prefix:m,radius:R,readOnly:y,relatedElements:v,renderOption:w,renderPopover:b,renderValue:V,suffix:C,value:$,...x}=e,ep[0]=e,ep[1]=n,ep[2]=r,ep[3]=i,ep[4]=o,ep[5]=s,ep[6]=a,ep[7]=l,ep[8]=u,ep[9]=d,ep[10]=c,ep[11]=h,ep[12]=f,ep[13]=p,ep[14]=g,ep[15]=m,ep[16]=y,ep[17]=v,ep[18]=w,ep[19]=b,ep[20]=x,ep[21]=C,ep[22]=k,ep[23]=j,ep[24]=M,ep[25]=L,ep[26]=S,ep[27]=R,ep[28]=V,ep[29]=$):(n=ep[1],r=ep[2],i=ep[3],o=ep[4],s=ep[5],a=ep[6],l=ep[7],u=ep[8],d=ep[9],c=ep[10],h=ep[11],f=ep[12],p=ep[13],g=ep[14],m=ep[15],y=ep[16],v=ep[17],w=ep[18],b=ep[19],x=ep[20],C=ep[21],k=ep[22],j=ep[23],M=ep[24],L=ep[25],S=ep[26],R=ep[27],V=ep[28],$=ep[29]);let eg=void 0===k||k,em=void 0===j?2:j,ey=void 0===M?pq:M,ev=void 0===L?3:L,ew=void 0===S?pq:S,eb=void 0===R?2:R,ex=void 0===V?ba:V,eC=$||null,ek=$||null;ep[30]!==eC||ep[31]!==ek?(A={activeValue:eC,focused:!1,listFocused:!1,query:null,value:ek},ep[30]=eC,ep[31]=ek,ep[32]=A):A=ep[32];let[ej,eM]=(0,_.useReducer)(bi,A),{activeValue:eL,focused:eS,listFocused:eE,query:eR,value:eV}=ej;ep[33]!==em||ep[34]!==ev?(T=e=>{let{value:t}=e;return(0,E.jsx)(mj,{"data-as":"button",padding:ev,radius:2,tone:"inherit",children:(0,E.jsx)(mc,{size:em,textOverflow:"ellipsis",children:t})})},ep[33]=em,ep[34]=ev,ep[35]=T):T=ep[35];let e_="function"==typeof w?w:T,e$="function"==typeof i?i:bl,eA=(0,_.useRef)(null),eT=(0,_.useRef)(null),eH=(0,_.useRef)(null),eI=(0,_.useRef)(null),[eP,eO]=(0,_.useState)(null);ep[36]===Symbol.for("react.memo_cache_sentinel")?(H=e=>{(0,_.startTransition)(()=>eO(e))},ep[36]=H):H=ep[36];let eB=H,eN=(0,_.useRef)(!1),eW=(0,_.useRef)(eV),ez=(0,_.useRef)($),eD=(0,_.useRef)(!1);ep[37]!==eP?(I=()=>
1093eP,P=[eP],ep[37]=eP,ep[38]=I,ep[39]=P):(I=ep[38],P=ep[39]),(0,_.useImperativeHandle)(eH,I,P),ep[40]!==eP?(O=()=>eP,B=[eP],ep[40]=eP,ep[41]=O,ep[42]=B):(O=ep[41],B=ep[42]),(0,_.useImperativeHandle)(t,O,B);let eF=`${s}-listbox`,eZ=Array.isArray(g)?g:pU,eq=p2(ev);ep[43]!==eZ||ep[44]!==eV?(N=null!==eV?eZ.find(e=>e.value===eV):void 0,ep[43]=eZ,ep[44]=eV,ep[45]=N):N=ep[45];let eG=N;if(ep[46]!==e$||ep[47]!==eZ||ep[48]!==eR){let e;ep[50]!==e$||ep[51]!==eR?(e=e=>!eR||e$(eR,e),ep[50]=e$,ep[51]=eR,ep[52]=e):e=ep[52],W=eZ.filter(e),ep[46]=e$,ep[47]=eZ,ep[48]=eR,ep[49]=W}else W=ep[49];let eY=W,eX=eY.length,eK=eL?`${s}-option-${eL}`:void 0,eJ=null!==eR&&a||eS&&null!==eR;ep[53]!==l||ep[54]!==c||ep[55]!==v?(z=e=>{setTimeout(()=>{if(eD.current)return;let t=(v||[]).concat(eA.current?[eA.current]:[],eT.current?[eT.current]:[]),n=!1;if(document.activeElement){for(let e of t)if(e===document.activeElement||e.contains(document.activeElement)){n=!0;break}}!1===n&&(eM({type:"root/blur"}),eD.current=!1,c&&c(null),l&&l(e))},0)},ep[53]=l,ep[54]=c,ep[55]=v,ep[56]=z):z=ep[56];let eQ=z;ep[57]===Symbol.for("react.memo_cache_sentinel")?(D=e=>{let t=eI.current,n=e.target instanceof HTMLElement?e.target:null,r=t?.contains(n)||!1;r!==eN.current&&(eN.current=r,eM({type:"root/setListFocused",listFocused:r}))},ep[57]=D):D=ep[57];let e1=D;ep[58]!==u||ep[59]!==c||ep[60]!==h?(F=e=>{eM({type:"value/change",value:e}),eD.current=!1,h&&h(e),eW.current=e,u&&u(e),c&&c(null),eH.current?.focus()},ep[58]=u,ep[59]=c,ep[60]=h,ep[61]=F):F=ep[61];let e0=F;ep[62]!==eL||ep[63]!==eY||ep[64]!==eX||ep[65]!==c?(Z=e=>{if("ArrowDown"===e.key){if(e.preventDefault(),!eX)return;let t=eY.find(e=>e.value===eL),n=t?eY.indexOf(t):-1,r=eY[(n+1)%eX];r&&eM({type:"root/setActiveValue",value:r.value,listFocused:!0});return}if("ArrowUp"===e.key){if(e.preventDefault(),!eX)return;let t=eY.find(e=>e.value===eL),n=t?eY.indexOf(t):-1,r=eY[-1===n?eX-1:(eX+n-1)%eX];r&&eM({type:"root/setActiveValue",value:r.value,listFocused:!0});return}if("Escape"===e.key){eM({type:"root/escape"}),eD.current=!1,c&&c(null),eH.current?.focus();return}let t=e.target,n=eI.current;if((n===t||n?.contains(t))&&!bo.includes(e.key))return void eH.current?.focus()},ep[62]=eL,ep[63]=eY,ep[64]=eX,ep[65]=c,ep[66]=Z):Z=ep[66];let e5=Z;ep[67]!==c?(U=e=>{let t=e.currentTarget.value;eM({type:"input/change",query:t}),c&&c(t)},ep[67]=c,ep[68]=U):U=ep[68];let e2=U;ep[69]!==eG||ep[70]!==ex||ep[71]!==eV?(q=()=>{eM({type:"root/open",query:eV?ex(eV,eG):""})},ep[69]=eG,ep[70]=ex,ep[71]=eV,ep[72]=q):q=ep[72];let e3=q;ep[73]!==e3||ep[74]!==eS||ep[75]!==d||ep[76]!==p?(G=e=>{eS||(eM({type:"input/focus"}),d&&d(e),p&&e3())},ep[73]=e3,ep[74]=eS,ep[75]=d,ep[76]=p,ep[77]=G):G=ep[77];let e4=G;ep[78]===Symbol.for("react.memo_cache_sentinel")?(Y=()=>{eD.current=!0},ep[78]=Y):Y=ep[78];let e6=Y;ep[79]===Symbol.for("react.memo_cache_sentinel")?(X=()=>{eD.current=!1},ep[79]=X):X=ep[79];let e8=X;ep[80]!==u||ep[81]!==c?(K=()=>{eM({type:"root/clear"}),eW.current="",u&&u(""),c&&c(null),eH.current?.focus()},ep[80]=u,ep[81]=c,ep[82]=K):K=ep[82];let e9=K;ep[83]===Symbol.for("react.memo_cache_sentinel")?(J=()=>{eM({type:"input/focus"})},ep[83]=J):J=ep[83];let e7=J;ep[84]!==$?(Q=()=>{if($!==ez.current){ez.current=$,void 0!==$&&(eM({type:"value/change",value:$}),eW.current=$);return}$!==eW.current&&(eW.current=$||null,eM({type:"value/change",value:$||null}))},ee=[$],ep[84]=$,ep[85]=Q,ep[86]=ee):(Q=ep[85],ee=ep[86]),(0,_.useEffect)(Q,ee),ep[87]!==eS?(et=()=>{!eS&&eW.current&&eM({type:"root/setActiveValue",value:eW.current})},en=[eS],ep[87]=eS,ep[88]=et,ep[89]=en):(et=ep[88],en=ep[89]),(0,_.useEffect)(et,en),ep[90]!==eL||ep[91]!==eY?(er=()=>{let e=eI.current;if(!e)return;let t=eY.find(e=>e.value===eL);if(t){let n=eY.indexOf(t),r=e.childNodes[n];if(r){if(document.activeElement&&r.contains(document.activeElement))return;w9(r)}}},ei=[eL,eY],ep[90]=eL,ep[91]=eY,ep[92]=er,ep[93]=ei):(er=ep[92],ei=ep[93]),(0,_.useEffect)(er,ei);t:{if(!a&&!r&&eV){let e;ep[94]===Symbol.for("react.memo_cache_sentinel")?(e={"aria-label":"Clear",onFocus:e7},ep[94]=e):e=ep[94],eo=e;break t}eo=void 0}let te=eo,tt=eq.map(bd),tn=eq.map(bc),tr="object"==typeof f?f:pq;ep[95]!==e3||ep[96]!==tr?(es=e=>{e3(),tr.onClick&&tr.onClick(e),requestAnimationFrame(()=>eH.current?.focus())},ep[95]=e3,ep[96]=tr,ep[97]=es):es=ep[97];let ti=es;ep[98]!==r||ep[99]!==eJ||ep[100]!==em||ep[101]!==ti||ep[102]!==f||ep[103]!==tt||ep[104]!==tn||ep[105]!==tr||ep[106]!==y?(ea=r||y||!f?void 0:(0,E.jsx)(mu,{"aria-hidden":eJ,padding:tt,children:(0,E.jsx)(mC,{"aria-label":"Open",disabled:eJ,fontSize:em,icon:rx,mode:"bleed",padding:tn,...tr,onClick:ti})}),ep[98]=r,ep[99]=eJ,ep[100]=em,ep[101]=ti,ep[102]=f,ep[103]=tt,ep[104]=tn,ep[105]=tr,ep[106]=y,ep[107]=ea):ea=ep[107];let to=ea;n:{if(null===eR){if(null!==eV){let e;ep[108]!==eG||ep[109]!==ex||ep[110]!==eV?(e=ex(eV,eG),ep[108]=eG,ep[109]=ex,ep[110]=eV,ep[111]=e):e
1093=ep[111],el=e;break n}el="";break n}el=eR}let ts=el;ep[112]!==eE?(eu=e=>{"Tab"===e.key&&eE&&eH.current?.focus()},ep[112]=eE,ep[113]=eu):eu=ep[113];let ta=eu;r:{let e,t,n;if(0===eY.length){ed=null;break r}if(ep[114]!==eL||ep[115]!==eG||ep[116]!==eY||ep[117]!==e0||ep[118]!==s||ep[119]!==eE||ep[120]!==a||ep[121]!==e_){let t;ep[123]!==eL||ep[124]!==eG||ep[125]!==e0||ep[126]!==s||ep[127]!==eE||ep[128]!==a||ep[129]!==e_?(t=e=>{let t=null!==eL?e.value===eL:eG===e;return(0,E.jsx)(br,{id:`${s}-option-${e.value}`,onSelect:e0,selected:t,value:e.value,children:(0,_.cloneElement)(e_(e),{disabled:a,selected:t,tabIndex:eE&&t?0:-1})},e.value)},ep[123]=eL,ep[124]=eG,ep[125]=e0,ep[126]=s,ep[127]=eE,ep[128]=a,ep[129]=e_,ep[130]=t):t=ep[130],e=eY.map(t),ep[114]=eL,ep[115]=eG,ep[116]=eY,ep[117]=e0,ep[118]=s,ep[119]=eE,ep[120]=a,ep[121]=e_,ep[122]=e}else e=ep[122];ep[131]!==eF||ep[132]!==e?(t=(0,E.jsx)(yz,{as:"ul","aria-multiselectable":!1,"data-ui":"AutoComplete__resultsList",id:eF,ref:eI,role:"listbox",space:1,children:e}),ep[131]=eF,ep[132]=e,ep[133]=t):t=ep[133],ep[134]!==ta||ep[135]!==ey||ep[136]!==t?(n=(0,E.jsx)(be,{"data-ui":"AutoComplete__results",onKeyDown:ta,padding:1,...ey,tabIndex:-1,children:t}),ep[134]=ta,ep[135]=ey,ep[136]=t,ep[137]=n):n=ep[137],ed=n}let tl=ed;i:{let e;if(b){let e,t=!eJ;ep[138]!==tl||ep[139]!==e6||ep[140]!==e8||ep[141]!==eP||ep[142]!==b||ep[143]!==t?(e=(0,E.jsx)(bu,{content:tl,hidden:t,inputElement:eP,onMouseEnter:e6,onMouseLeave:e8,resultsPopoverElementRef:eT,renderPopover:b}),ep[138]=tl,ep[139]=e6,ep[140]=e8,ep[141]=eP,ep[142]=b,ep[143]=t,ep[144]=e):e=ep[144],ec=e;break i}if(0===eX){ec=null;break i}ep[145]!==tl||ep[146]!==eJ||ep[147]!==e6||ep[148]!==e8||ep[149]!==eP||ep[150]!==ew||ep[151]!==eb?(e=(0,E.jsx)(y_,{arrow:!1,constrainSize:!0,content:tl,fallbackPlacements:bs,matchReferenceWidth:!0,onMouseEnter:e6,onMouseLeave:e8,open:eJ,overflow:"auto",placement:"bottom-start",portal:!0,radius:eb,ref:eT,referenceElement:eP,...ew}),ep[145]=tl,ep[146]=eJ,ep[147]=e6,ep[148]=e8,ep[149]=eP,ep[150]=ew,ep[151]=eb,ep[152]=e):e=ep[152],ec=e}let tu=ec,td=a&&bn,tc=C||to;return ep[153]!==eK||ep[154]!==eg||ep[155]!==te||ep[156]!==n||ep[157]!==r||ep[158]!==eJ||ep[159]!==em||ep[160]!==e9||ep[161]!==e2||ep[162]!==e4||ep[163]!==o||ep[164]!==s||ep[165]!==ts||ep[166]!==eF||ep[167]!==eq||ep[168]!==m||ep[169]!==eb||ep[170]!==y||ep[171]!==x||ep[172]!==td||ep[173]!==tc?(eh=(0,E.jsx)(y7,{...x,"aria-activedescendant":eK,"aria-autocomplete":"list","aria-expanded":eJ,"aria-owns":eF,autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",border:eg,clearButton:te,customValidity:n,disabled:r,fontSize:em,icon:o,iconRight:td,id:s,inputMode:"search",onChange:e2,onClear:e9,onFocus:e4,padding:eq,prefix:m,radius:eb,readOnly:y,ref:eB,role:"combobox",spellCheck:!1,suffix:tc,value:ts}),ep[153]=eK,ep[154]=eg,ep[155]=te,ep[156]=n,ep[157]=r,ep[158]=eJ,ep[159]=em,ep[160]=e9,ep[161]=e2,ep[162]=e4,ep[163]=o,ep[164]=s,ep[165]=ts,ep[166]=eF,ep[167]=eq,ep[168]=m,ep[169]=eb,ep[170]=y,ep[171]=x,ep[172]=td,ep[173]=tc,ep[174]=eh):eh=ep[174],ep[175]!==eQ||ep[176]!==e1||ep[177]!==e5||ep[178]!==tu||ep[179]!==eh?(ef=(0,E.jsxs)(w7,{"data-ui":"Autocomplete",onBlur:eQ,onFocus:e1,onKeyDown:e5,ref:eA,children:[eh,tu]}),ep[175]=eQ,ep[176]=e1,ep[177]=e5,ep[178]=tu,ep[179]=eh,ep[180]=ef):ef=ep[180],ef}).displayName="ForwardRef(Autocomplete)";let bh=nF.ol.withConfig({displayName:"StyledBreadcrumbs",componentId:"sc-1es8h8q-0"})`margin:0;padding:0;display:flex;list-style:none;align-items:center;white-space:nowrap;line-height:0;`,bf=nF(mC).withConfig({displayName:"ExpandButton",componentId:"sc-1es8h8q-1"})`appearance:none;margin:-4px;`;(0,_.forwardRef)(function(e,t){let n,r,i,o,s,a,l,u,d,c,h,f,p,g,m=(0,eU.c)(30);m[0]!==e?({children:n,gap:r,maxLength:i,separator:s,space:a,...o}=e,m[0]=e,m[1]=n,m[2]=r,m[3]=i,m[4]=o,m[5]=s,m[6]=a):(n=m[1],r=m[2],i=m[3],o=m[4],s=m[5],a=m[6]);let y=void 0===r?void 0===a?2:a:r;m[7]!==y?(l=p2(y),m[7]=y,m[8]=l):l=m[8];let v=l,[w,b]=(0,_.useState)(!1),x=(0,_.useRef)(null),C=(0,_.useRef)(null);m[9]===Symbol.for("react.memo_cache_sentinel")?(u=()=>b(!1),m[9]=u):u=m[9];let k=u;m[10]===Symbol.for("react.memo_cache_sentinel")?(d=()=>
1093b(!0),m[10]=d):d=m[10];let j=d;m[11]===Symbol.for("react.memo_cache_sentinel")?(c=()=>[x.current,C.current],m[11]=c):c=m[11],mM(k,c),m[12]!==n?(h=_.Children.toArray(n).filter(_.isValidElement),m[12]=n,m[13]=h):h=m[13];let M=h;m[14]!==i||m[15]!==w||m[16]!==M||m[17]!==v?(f={collapse:k,expand:j,expandElementRef:x,maxLength:i,open:w,popoverElementRef:C,rawItems:M,space:v},m[14]=i,m[15]=w,m[16]=M,m[17]=v,m[18]=f):f=m[18];let L=function(e){let t=(0,eU.c)(28),{collapse:n,expand:r,expandElementRef:i,maxLength:o,open:s,popoverElementRef:a,rawItems:l,space:u}=e,d=l.length;if(o&&d>o){let e,c=Math.ceil(o/2),h=Math.floor(o/2);if(t[0]!==h||t[1]!==c||t[2]!==n||t[3]!==r||t[4]!==i||t[5]!==d||t[6]!==s||t[7]!==a||t[8]!==l||t[9]!==u){let o,f,p,g,m=l.slice(0,c-1);t[11]!==h||t[12]!==c||t[13]!==d||t[14]!==l?(o=l.slice(c-1,d-h),t[11]=h,t[12]=c,t[13]=d,t[14]=l,t[15]=o):o=t[15],t[16]!==u||t[17]!==o?(f=(0,E.jsx)(yz,{as:"ol",overflow:"auto",padding:u,gap:u,children:o}),t[16]=u,t[17]=o,t[18]=f):f=t[18];let y=s?n:r;t[19]!==i||t[20]!==s||t[21]!==y?(p=(0,E.jsx)(bf,{fontSize:1,mode:"bleed",onClick:y,padding:1,ref:i,selected:s,text:"â¦"}),t[19]=i,t[20]=s,t[21]=y,t[22]=p):p=t[22],t[23]!==s||t[24]!==a||t[25]!==f||t[26]!==p?(g=(0,E.jsx)(y_,{constrainSize:!0,content:f,open:s,placement:"top",portal:!0,ref:a,children:p},"button"),t[23]=s,t[24]=a,t[25]=f,t[26]=p,t[27]=g):g=t[27],e=[...m,g,...l.slice(d-h)],t[0]=h,t[1]=c,t[2]=n,t[3]=r,t[4]=i,t[5]=d,t[6]=s,t[7]=a,t[8]=l,t[9]=u,t[10]=e}else e=t[10];return e}return l}(f);if(m[19]!==L||m[20]!==s||m[21]!==v){let e;m[23]!==s||m[24]!==v?(e=(e,t)=>(0,E.jsxs)(_.Fragment,{children:[t>0&&(0,E.jsx)(mu,{"aria-hidden":!0,as:"li",paddingX:v,children:s||(0,E.jsx)(mc,{muted:!0,children:"/"})}),(0,E.jsx)(mu,{as:"li",children:e})]},t),m[23]=s,m[24]=v,m[25]=e):e=m[25],p=L.map(e),m[19]=L,m[20]=s,m[21]=v,m[22]=p}else p=m[22];return m[26]!==t||m[27]!==o||m[28]!==p?(g=(0,E.jsx)(bh,{"data-ui":"Breadcrumbs",...o,ref:t,children:p}),m[26]=t,m[27]=o,m[28]=p,m[29]=g):g=m[29],g}).displayName="ForwardRef(Breadcrumbs)";let bp=p9("@sanity/ui/context/dialog",{version:0});function bg(e,t,n){return!e||!t||p1(e,n)||p1(t,n)}let bm=nF(yc).withConfig({displayName:"StyledDialog",componentId:"sc-4n4xb3-0"})(gQ,function({theme:e}){let{color:t}=G(e);return{"&:not([hidden])":{display:"flex"},top:0,left:0,right:0,bottom:0,alignItems:"center",justifyContent:"center",outline:"none",background:t.backdrop}},function(e){let{media:t}=G(e.theme);return p5(t,e.$position,e=>({"&&":{position:e}}))},function(e){return e.$animate?nD` 1094 @keyframes zoomIn { 1095 from { 1096 opacity: 0; 1097 transform: scale(0.95); 1098 } 1099 to { 1100 opacity: 1; 1101 transform: scale(1); 1102 } 1103 } 1104 @keyframes fadeIn { 1105 from { 1106 opacity: 0; 1107 } 1108 to { 1109 opacity: 1; 1110 } 1111 } 1112 1113 animation: fadeIn 200ms ease-out; 1114 // Animates the dialog card. 1115 & > [data-ui='DialogCard'] { 1116 animation: zoomIn 200ms ease-out; 1117 } 1118 `:nD``}),by=nF(mU).withConfig({displayName:"DialogContainer",componentId:"sc-4n4xb3-1"})`&:not([hidden]){display:flex;}width:100%;height:100%;flex-direction:column;align-items:center;justify-content:center;`,bv=nF(mj).withConfig({displayName:"DialogCardRoot",componentId:"sc-4n4xb3-2"})`&:not([hidden]){display:flex;}width:100%;min-height:0;max-height:100%;overflow:hidden;overflow:clip;`,bw=nF(mp).withConfig({displayName:"DialogLayout",componentId:"sc-4n4xb3-3"})`flex:1;min-height:0;width:100%;`,bb=nF(mu).withConfig({displayName:"DialogHeader",componentId:"sc-4n4xb3-4"})`position:relative;z-index:2;`,bx=nF(mu).withConfig({displayName:"DialogContent",componentId:"sc-4n4xb3-5"})`position:relative;z-index:1;overflow:auto;outline:none;`,bC=nF(mu).withConfig({displayName:"DialogFooter",componentId:"sc-4n4xb3-6"})`position:relative;z-index:3;`,bk=(0,_.forwardRef)(function(e,t){let n,r,i,o,s,a,l,u,d,c,h,f,p,g,m,y,v=(0,eU.c)(44),{__unstable_autoFocus:w,__unstable_hideCloseButton:b,children:x,contentRef:C,footer:k,header:j,id:M,onClickOutside:L,onClose:S,portal:R,radius:V,scheme:$,shadow:A,width:T}=e,H=yg(),I=R?H.elements?.[R]||null:H.element,P=yn().element;v[0]!==V?(n=p2(V),v[0]=V,v[1]=n):n=v[1];let O=n;v[2]!==A?(r=p2(A),v[2]=A,v[3]=r):r=v[3];let B=r;v[4]!==T?(i=p2(T),v[4]=T,v[5]=i):i=v[5];let N=i,W=(0,_.useRef)(null),z=(0,_.useRef)(null),{isTopLayer:D}=yl(),F=`${M}_label`,Z=!!S&&!1===b,U=!!j||Z;return v[6]===Symbol.for("react.memo_cache_sentinel")?(o=()=>W.current,v[6]=o):o=v[6],(0,_.useImperativeHandle)(t,o),v[7]===Symbol.for("react.memo_cache_sentinel")?(s=()=>z.current,v[7]=s):s=v[7],(0,_.useImperativeHandle)(C,s),v[8]!==w?(a=()=>{w&&W.current&&w9(W.current)},l=[w,W],v[8]=w,v[9]=a,v[10]=l):(a=v[9],l=v[10]),(0,_.useEffect)(a,l),v[11]!==P||v[12]!==D||v[13]!==S||v[14]!==I?(u=e=>{if(!D||!S)return;let t=document.activeElement;t&&!bg(P,I,t)||"Escape"===e.key&&(e.preventDefault(),e.stopPropagation(),S())},v[11]=P,v[12]=D,v[13]=S,v[14]=I,v[15]=u):u=v[15],m_(u),v[16]!==P||v[17]!==D||v[18]!==L||v[19]!==I?(d=D&&L&&(e=>{let t=e.target;t&&!bg(P,I,t)||L()}),v[16]=P,v[17]=D,v[18]=L,v[19]=I,v[20]=d):d=v[20],v[21]===Symbol.for("react.memo_cache_sentinel")?(c=()=>[W.current],v[21]=c):c=v[21],mM(d,c),v[22]!==j||v[23]!==F||v[24]!==S||v[25]!==Z||v[26]!==U?(h=U&&(0,E.jsx)(bb,{children:(0,E.jsxs)(mp,{align:"flex-start",padding:3,children:[(0,E.jsx)(mu,{flex:1,padding:2,children:j&&(0,E.jsx)(mc,{id:F,size:1,weight:"semibold",children:j})}),Z&&(0,E.jsx)(mu,{flex:"none",children:(0,E.jsx)(mC,{"aria-label":"Close dialog",disabled:!S,icon:r
1118V,mode:"bleed",onClick:S,padding:2})})]})}),v[22]=j,v[23]=F,v[24]=S,v[25]=Z,v[26]=U,v[27]=h):h=v[27],v[28]!==x?(f=(0,E.jsx)(bx,{flex:1,ref:z,tabIndex:-1,children:x}),v[28]=x,v[29]=f):f=v[29],v[30]!==k?(p=k&&(0,E.jsx)(bC,{children:k}),v[30]=k,v[31]=p):p=v[31],v[32]!==h||v[33]!==f||v[34]!==p?(g=(0,E.jsxs)(bw,{direction:"column",children:[h,f,p]}),v[32]=h,v[33]=f,v[34]=p,v[35]=g):g=v[35],v[36]!==O||v[37]!==$||v[38]!==B||v[39]!==g?(m=(0,E.jsx)(bv,{radius:O,ref:W,scheme:$,shadow:B,children:g}),v[36]=O,v[37]=$,v[38]=B,v[39]=g,v[40]=m):m=v[40],v[41]!==m||v[42]!==N?(y=(0,E.jsx)(by,{"data-ui":"DialogCard",width:N,children:m}),v[41]=m,v[42]=N,v[43]=y):y=v[43],y});bk.displayName="ForwardRef(DialogCard)",(0,_.forwardRef)(function(e,t){let n,r,i,o,s,a,l,u,d,c,h,f,p,g,m,y,v,w,b,x,C,k,j,M,L,S,R,V,$,A,T,H,I,P=(0,eU.c)(70),O=(0,_.useContext)(bp),{layer:B}=gr();P[0]!==e?({__unstable_autoFocus:m,__unstable_hideCloseButton:y,cardRadius:v,cardShadow:w,children:i,contentRef:o,footer:s,header:a,id:l,onActivate:u,onClickOutside:d,onClose:c,onFocus:h,padding:b,portal:f,position:n,scheme:g,width:x,zOffset:r,animate:C,...p}=e,P[0]=e,P[1]=n,P[2]=r,P[3]=i,P[4]=o,P[5]=s,P[6]=a,P[7]=l,P[8]=u,P[9]=d,P[10]=c,P[11]=h,P[12]=f,P[13]=p,P[14]=g,P[15]=m,P[16]=y,P[17]=v,P[18]=w,P[19]=b,P[20]=x,P[21]=C):(n=P[1],r=P[2],i=P[3],o=P[4],s=P[5],a=P[6],l=P[7],u=P[8],d=P[9],c=P[10],h=P[11],f=P[12],p=P[13],g=P[14],m=P[15],y=P[16],v=P[17],w=P[18],b=P[19],x=P[20],C=P[21]);let N=void 0===m||m,W=void 0!==y&&y,z=void 0===v?4:v,D=void 0===w?3:w,F=void 0===b?3:b,Z=void 0===x?0:x,U=void 0!==C&&C,q=n??(O.position||"fixed"),G=r??(O.zOffset||B.dialog.zOffset),Y=!mP()&&U,X=yg(),K=f?X.elements?.[f]||null:X.element,J=yn().element;P[22]!==z?(k=p2(z),P[22]=z,P[23]=k):k=P[23];let Q=k;P[24]!==F?(j=p2(F),P[24]=F,P[25]=j):j=P[25];let ee=j;P[26]!==q?(M=p2(q),P[26]=q,P[27]=M):M=P[27];let et=M;P[28]!==Z?(L=p2(Z),P[28]=Z,P[29]=L):L=P[29];let en=L;P[30]!==G?(S=p2(G),P[30]=G,P[31]=S):S=P[31];let er=S,ei=(0,_.useRef)(null),eo=(0,_.useRef)(null),es=(0,_.useRef)(null),ea=(0,_.useRef)(null);P[32]!==h?(R=e=>{h?.(e);let t=e.target,n=es.current;n&&t===ei.current?function e(t){for(let n=t.childNodes.length-1;n>=0;n--){let r=t.childNodes[n];if(pK(r)&&(w8(r)||e(r)))return!0}return!1}(n):n&&t===eo.current?w9(n):pK(e.target)&&(ea.current=e.target)},P[32]=h,P[33]=R):R=P[33];let el=R,eu=`${l}_label`,ed=(0,_.useRef)(void 0);P[34]!==J||P[35]!==K?(V=()=>{ed.current&&clearTimeout(ed.current),ed.current=setTimeout(()=>{let e=document.activeElement;if(e&&!bg(J,K,e)){let e=ea.current;if(!e||!document.body.contains(e)){let e=es.current;e&&w9(e);return}
1118e.focus()}},0)},P[34]=J,P[35]=K,P[36]=V):V=P[36];let ec=V;return P[37]===Symbol.for("react.memo_cache_sentinel")?($=(0,E.jsx)("div",{ref:ei,tabIndex:0}),P[37]=$):$=P[37],P[38]!==N||P[39]!==Q||P[40]!==D||P[41]!==i||P[42]!==o||P[43]!==s||P[44]!==a||P[45]!==W||P[46]!==l||P[47]!==d||P[48]!==c||P[49]!==f||P[50]!==g||P[51]!==en?(A=(0,E.jsx)(bk,{__unstable_autoFocus:N,__unstable_hideCloseButton:W,contentRef:o,footer:s,header:a,id:l,onClickOutside:d,onClose:c,portal:f,radius:Q,ref:es,scheme:g,shadow:D,width:en,children:i}),P[38]=N,P[39]=Q,P[40]=D,P[41]=i,P[42]=o,P[43]=s,P[44]=a,P[45]=W,P[46]=l,P[47]=d,P[48]=c,P[49]=f,P[50]=g,P[51]=en,P[52]=A):A=P[52],P[53]===Symbol.for("react.memo_cache_sentinel")?(T=(0,E.jsx)("div",{ref:eo,tabIndex:0}),P[53]=T):T=P[53],P[54]!==Y||P[55]!==el||P[56]!==ec||P[57]!==l||P[58]!==eu||P[59]!==u||P[60]!==ee||P[61]!==et||P[62]!==t||P[63]!==p||P[64]!==A||P[65]!==er?(H=(0,E.jsxs)(bm,{...p,$animate:Y,$padding:ee,$position:et,"aria-labelledby":eu,"aria-modal":!0,"data-ui":"Dialog",id:l,onActivate:u,onClick:ec,onFocus:el,ref:t,role:"dialog",zOffset:er,children:[$,A,T]}),P[54]=Y,P[55]=el,P[56]=ec,P[57]=l,P[58]=eu,P[59]=u,P[60]=ee,P[61]=et,P[62]=t,P[63]=p,P[64]=A,P[65]=er,P[66]=H):H=P[66],P[67]!==f||P[68]!==H?(I=(0,E.jsx)(ym,{__unstable_name:f,children:H}),P[67]=f,P[68]=H,P[69]=I):I=P[69],I}).displayName="ForwardRef(Dialog)";let bj=(0,_.forwardRef)(function(e,t){let n,r,i,o,s,a,l,u,d,c,h,f,p,g,m,y,v,w,b,x,C,k,j,M=(0,eU.c)(62),{__unstable_disableRestoreFocusOnClose:L,boundaryElement:S,button:R,id:V,menu:$,onClose:A,onOpen:T,placement:H,popoverScheme:I,portal:P,popover:O,popoverRadius:B,preventOverflow:N}=e,W=void 0!==L&&L,z=void 0===P||P,[D,F]=(0,_.useState)(!1),[Z,U]=(0,_.useState)(null),[q,G]=(0,_.useState)(null);M[0]===Symbol.for("react.memo_cache_sentinel")?(n=[],M[0]=n):n=M[0];let[Y,X]=(0,_.useState)(n),K=(0,_.useRef)(D);M[1]!==T||M[2]!==D?(r=()=>{T&&D&&!K.current&&T()},i=[T,D],M[1]=T,M[2]=D,M[3]=r,M[4]=i):(r=M[3],i=M[4]),(0,_.useEffect)(r,i),M[5]!==A||M[6]!==D?(o=()=>{A&&!D&&K.current&&A()},s=[A,D],M[5]=A,M[6]=D,M[7]=o,M[8]=s):(o=M[7],s=M[8]),(0,_.useEffect)(o,s),M[9]!==D?(a=()=>{K.current=D},l=[D],M[9]=D,M[10]=a,M[11]=l):(a=M[10],l=M[11]),(0,_.useEffect)(a,l),M[12]===Symbol.for("react.memo_cache_sentinel")?(u=()=>{F(bM),U(null)},M[12]=u):u=M[12];let J=u;M[13]!==D?(d=e=>{D&&e.preventDefault()},M[13]=D,M[14]=d):d=M[14];let Q=d;M[15]===Symbol.for("react.memo_cache_sentinel")?(c=e=>{if("ArrowDown"===e.key||"Enter"===e.key||" "===e.key){e.preventDefault(),F(!0),U("first");return}if("ArrowUp"===e.key){e.preventDefault(),F(!0),U("last");return}},M[15]=c):c=M[15];let ee=c;M[16]!==q||M[17]!==Y?(h=e=>{let t=e.target;if(t instanceof Node&&!(q&&(t===q||q.contains(t)))){for(let e of Y)if(t===e||e.contains(t))return;F(!1)}},M[16]=q,M[17]=Y,M[18]=h):h=M[18];let et=h;M[19]!==q||M[20]!==W?(f=()=>{F(!1),!W&&q&&q.focus()},M[19]=q,M[20]=W,M[21]=f):f=M[21];let en=f;M[22]!==Y?(p=e=>{let t=e.relatedTarget;if(t instanceof Node){for(let e of Y)if(e===t||e.contains(t))return;F(!1)}},M[22]=Y,M[23]=p):p=M[23];let er=p;M[24]!==q||M[25]!==W?(g=()=>{F(!1),!W&&q&&q.focus()},M[24]=q,M[25]=W,M[26]=g):g=M[26];let ei=g;M[27]===Symbol.for("react.memo_cache_sentinel")?(m=e=>(X(t=>t.concat([e])),()=>X(t=>t.filter(t=>t!==e))),M[27]=m):m=M[27];let eo=m;M[28]!==q||M[29]!==er||M[30]!==ei||M[31]!==et||M[32]!==en||M[33]!==V||M[34]!==$||M[35]!==Z?(y=$&&(0,_.cloneElement)($,{"aria-labelledby":V,onBlurCapture:er,onClickOutside:et,onEscape:en,onItemClick:ei,originElement:q,registerElement:eo,shouldFocus:Z}),M[28]=q,M[29]=er,M[30]=ei,M[31]=et,M[32]=en,M[33]=V,M[34]=$,M[35]=Z,M[36]=y):y=M[36];let es=y;M[37]!==R||M[38]!==Q||M[39]!==V||M[40]!==D?(v=R&&(0,_.cloneElement)(R,{"data-ui":"MenuButton",id:V,onClick:J,onKeyDown:ee,onMouseDown:Q,"aria-haspopup":!0,"aria-expanded":D,ref:G,selected:R.props.selected??D}),M[37]=R,M[38]=Q,M[39]=V,M[40]=D,M[41]=v):v=M[41];let ea=v;M[42]!==q?(w=()=>q,b=[q],M[42]=q,M[43]=w,M[44]=b):(w=M[43],b=M[44]),(0,_.useImperativeHandle)(t,w,b),M[45]!==O?(x=O||{},M[45]=O,M[46]=x):x=M[46],M[47]!==S||M[48]!==H||M[49]!==B||M[50]!==I||M[51]!==z||M[52]!==N||M[53]!==x?(C={boundaryElement:S,overflow:"auto",placement:H,portal:z,preventOverflow:N,radius:B,scheme:I,...x},M[47]=S,M[48]=H,M[49]=B,M[50]=I,M[51]=z,M[52]=N,M[53]=x,M[54]=C):C=M[54];let el=C;return M[55]!==ea?(k=ea||(0,E.jsx)(E.Fragment,{}),M[55]=ea,M[56]=k):k=M[56],M[57]!==es||M[58]!==D||M[59]!==el||M[60]!==k?(j=(0,E.jsx)(y_,{"data-ui":"MenuButton__popover",...el,content:es,open:D,children:k}),M[57]=es,M[58]=D,M[59]=el,M[60]=k,M[61]=j):j=M[61],j});function bM(e){return!e}bj.displayName="ForwardRef(MenuButton)";let bL=nU` 1119 0% { 1120 background-position: 100%; 1121 } 1122 100% { 1123 background-position: -100%; 1124 } 1125`,bS=nD` 1126 background-image: linear-gradient( 1127 to right, 1128 var(--card-skeleton-color-from), 1129 var(--card-skeleton-color-to), 1130 var(--card-skeleton-color-from), 1131 var(--card-skeleton-color-from), 1132 var(--card-skeleton-color-from) 1133 ); 1134 background-position: 100%; 1135 background-size: 200% 100%; 1136 background-attachment: fixed; 1137 animation-name: ${bL}; 1138 animation-timing-function: ease-in-out; 1139 animation-iteration-count: infinite; 1140 animation-duration: 2000ms; 1141`,bE=nD` 1142 opacity: ${({$visible:e})=>+!!e}; 1143 transition: opacity 200ms ease-in; 1144 1145 @media screen and (prefers-reduced-motion: no-preference) { 1146 ${({$animated:e})=>e?bS:nD` 1147 background-color: var(--card-skeleton-color-from); 1148 `} 1149 } 1150 1151 @media screen and (prefers-reduced-motion: reduce) { 1152 background-color: var(--card-skeleton-color-from); 1153 } 1154`,bR=nF(mu).withConfig({displayName:"StyledSkeleton",componentId:"sc-ebtpni-0"})(g1,bE),bV=(0,_.forwardRef)(function(e,t){let n,r,i,o,s,a,l,u,d=(0,eU.c)(16);d[0]!==e?({animated:o,delay:n,radius:r,...i}=e,d[0]=e,d[1]=n,d[2]=r,d[3]=i,d[4]=o):(n=d[1],r=d[2],i=d[3],o=d[4]);let c=void 0!==o&&o,[h,f]=(0,_.useState)(!n);d[5]!==n?(s=()=>
1154{if(!n)return;let e=setTimeout(()=>{f(!0)},n);return()=>{clearTimeout(e)}},a=[n],d[5]=n,d[6]=s,d[7]=a):(s=d[6],a=d[7]),(0,_.useEffect)(s,a),d[8]!==r?(l=p2(r),d[8]=r,d[9]=l):l=d[9];let p=!n||h;return d[10]!==c||d[11]!==t||d[12]!==i||d[13]!==l||d[14]!==p?(u=(0,E.jsx)(bR,{...i,$animated:c,$radius:l,$visible:p,ref:t}),d[10]=c,d[11]=t,d[12]=i,d[13]=l,d[14]=p,d[15]=u):u=d[15],u});bV.displayName="ForwardRef(Skeleton)";let b_=nF(bV).withConfig({displayName:"StyledSkeleton",componentId:"sc-2p7a1v-0"})(e=>{let{$size:t,$style:n}=e,{font:r,media:i}=G(e.theme),o=r[n];return p5(i,t,e=>{let t=o.sizes[e];return{height:t.lineHeight-t.ascenderHeight-t.descenderHeight}})});(0,_.forwardRef)(function(e,t){let n,r,i,o,s=(0,eU.c)(9);s[0]!==e?({size:r,...n}=e,s[0]=e,s[1]=n,s[2]=r):(n=s[1],r=s[2]);let a=void 0===r?2:r;s[3]!==a?(i=p2(a),s[3]=a,s[4]=i):i=s[4];let l=i;return s[5]!==l||s[6]!==t||s[7]!==n?(o=(0,E.jsx)(b_,{...n,$size:l,ref:t,$style:"text"}),s[5]=l,s[6]=t,s[7]=n,s[8]=o):o=s[8],o}).displayName="ForwardRef(TextSkeleton)",(0,_.forwardRef)(function(e,t){let n,r,i,o,s=(0,eU.c)(9);s[0]!==e?({size:r,...n}=e,s[0]=e,s[1]=n,s[2]=r):(n=s[1],r=s[2]);let a=void 0===r?2:r;s[3]!==a?(i=p2(a),s[3]=a,s[4]=i):i=s[4];let l=i;return s[5]!==l||s[6]!==t||s[7]!==n?(o=(0,E.jsx)(b_,{...n,$size:l,ref:t,$style:"label"}),s[5]=l,s[6]=t,s[7]=n,s[8]=o):o=s[8],o}).displayName="ForwardRef(LabelSkeleton)",(0,_.forwardRef)(function(e,t){let n,r,i,o,s=(0,eU.c)(9);s[0]!==e?({size:r,...n}=e,s[0]=e,s[1]=n,s[2]=r):(n=s[1],r=s[2]);let a=void 0===r?2:r;s[3]!==a?(i=p2(a),s[3]=a,s[4]=i):i=s[4];let l=i;return s[5]!==l||s[6]!==t||s[7]!==n?(o=(0,E.jsx)(b_,{...n,$size:l,ref:t,$style:"heading"}),s[5]=l,s[6]=t,s[7]=n,s[8]=o):o=s[8],o}).displayName="ForwardRef(HeadingSkeleton)",(0,_.forwardRef)(function(e,t){let n,r,i,o,s=(0,eU.c)(9);s[0]!==e?({size:r,...n}=e,s[0]=e,s[1]=n,s[2]=r):(n=s[1],r=s[2]);let a=void 0===r?2:r;s[3]!==a?(i=p2(a),s[3]=a,s[4]=i):i=s[4];let l=i;return s[5]!==l||s[6]!==t||s[7]!==n?(o=(0,E.jsx)(b_,{...n,$size:l,ref:t,$style:"code"}),s[5]=l,s[6]=t,s[7]=n,s[8]=o):o=s[8],o}).displayName="ForwardRef(CodeSkeleton)",(0,_.forwardRef)(function(e,t){let n,r,i,o=(0,eU.c)(9);o[0]!==e?({flex:n,...r}=e,o[0]=e,o[1]=n,o[2]=r):(n=o[1],r=o[2]);let s=void 0===e.tabIndex?0:e.tabIndex;return o[3]!==n||o[4]!==e.children||o[5]!==t||o[6]!==r||o[7]!==s?(i=(0,E.jsx)(mu,{"data-ui":"TabPanel",...r,flex:n,ref:t,role:"tabpanel",tabIndex:s,children:e.children}),o[3]=n,o[4]=e.children,o[5]=t,o[6]=r,o[7]=s,o[8]=i):i=o[8],i}).displayName="ForwardRef(TabPanel)";let b$={error:"critical",warning:"caution",success:"positive",info:"neutral"},bA={error:"critical",warning:"caution",success:"positive",info:"neutral"},bT=nF(mp).withConfig({displayName:"TextBox",componentId:"sc-1rr7rxo-0"})`overflow-x:auto;`,bH=nF(mj).withConfig({displayName:"StyledToast",componentId:"sc-1rr7rxo-1"})`pointer-events:all;width:100%;position:relative;overflow:hidden;overflow:clip;&[data-has-duration]{padding-bottom:calc(${2}px / 2);}`,bI=nF.div.withConfig({displayName:"LoadingBar",componentId:"sc-1rr7rxo-2"})`display:flex;position:absolute;bottom:0px;top:0px;left:0px;right:0px;pointer-events:none;z-index:-1;overflow:hidden;overflow:clip;background:transparent;align-items:flex-end;will-change:opacity;`,bP=nF(mj).withConfig({displayName:"LoadingBarMask",componentId:"sc-1rr7rxo-3"})`position:absolute;top:0;left:-${2}px;right:-${2}px;bottom:${2}px;z-index:1;`,bO=nF(mj).withConfig({displayName:"LoadingBarProgress",componentId:"sc-1rr7rxo-4"})`display:block;height:100%;width:100%;transform-origin:0% 50%;background-color:${e=>{let{color:t}=G(e.theme);return t.button.default[e.tone].enabled.bg}};`,bB={error:"alert",warning:"alert",success:"alert",info:"alert"};function bN(e){let t,n,r,i,o,s,a,l,u,d,c,h,f,p,g,m,y,v,w,b,x=(0,eU.c)(50);x[0]!==e?({closable:t,description:n,duration:r,onClose:i,radius:a,title:l,status:s,updatedAt:u,...o}=e,x[0]=e,x[1]=t,x[2]=n,x[3]=r,x[4]=i,x[5]=o,x[6]=s,x[7]=a,x[8]=l,x[9]=u):(t=x[1],n=x[2],r=x[3],i=x[4],o=x[5],s=x[6],a=x[7],l=x[8],u=x[9]);let C=void 0===a?3:a,k=s?b$[s]:"default",j=s?bA[s]:"default",M=s?bB[s]:"status",L=.26*!mP();x[10]!==L?(d=L?{type:"spring",visualDuration:L,bounce:.25}:{duration:0},x[10]=L,x[11]=d):d=x[11];let S=d,R=r&&isFinite(r)&&r<20736e5;x[12]===Symbol.for("react.memo_cache_sentinel")?(c=["hidden","initial"],x[12]=c):c=x[12];let V=c;x[13]===Symbol.for("react.memo_cache_sentinel")?(h=["visible","slideIn"],x[13]=h):h=x[13];let _=h;x[14]===Symbol.for("react.memo_cache_sentinel")?(f=["hidden","slideOut"],x[14]=f):f=x[14];let $=f,A=R?"":void 0;return x[15]!==l?(p=l&&(0,E.jsx)(mc,{size:1,weight:"medium",children:l}),x[15]=l,x[16]=p):p=x[16],x[17]!==n||x[18]!==S?(g=n&&(0,E.jsx)(bZ,{muted:!0,size:1,variants:bz,transition:S,children:n}),x[17]=n,x[18]=S,x[19]=g):g=x[19],x[20]!==p||x[21]!==g?(m=(0,E.jsx)(bT,{flex:1,padding:3,children:(0,E.jsxs)(yz,{space:3,children:[p,g]})}),x[20]=p,x[21]=g,x[22]=m):m=x[22],x[23]!==j||x[24]!==t||x[25]!==i?(y=t&&(0,E.jsx)(mu,{padding:1,children:(0,E.jsx)(mC,{as:"button",icon:rV,mode:"bleed",padding:2,tone:j,onClick:i,style:{verticalAlign:"top"}})}),x[23]=j,x[24]=t,x[25]=i,x[26]=y):y=x[26],x[27]!==m||x[28]!==y||x[29]!==S?(v=(0,E.jsxs)(bF,{align:"flex-start",variants:bz,transition:S,children:[m,y]}),x[27]=m,x[28]=y,x[29]=S,x[30]=v):v=x[30],x[31]!==k||x[32]!==r||x[33]!==R||x[34]!==i||x[35]!==C||x[36]!==S||x[37]!==u||x[38]!==L?(w=R&&(0,E.jsxs)(bU,{variants:bz,transition:S,children:[(0,E.jsx)(bP,{tone:k,radius:C}),(0,E.jsx)(bq,{tone:k,initial:{scaleX:0},animate:{scaleX:1},transition:{delay:L,duration:r/1e3,ease:"linear"},onAnimationComplete:i},`progress-${u}`)]}),x[31]=k,x[32]=r,x[33]=R,x[34]=i,x[35]=C,x[36]=S,x[37]=u,x[38]=L,x[39]=w):w=x[39],x[40]!==k||x[41]!==C||x[42]!==o||x[43]!==M||x[44]!==v||x[45]!==w||x[46]!==A||x[47]!==S||x[48]!==L?(b=(0,E.jsxs)(bD,{"data-ui":"Toast",role:M,...o,"data-has-duration":A,custom:L,radius:C,shadow:2,tone:k,forwardedAs:"li",layout:"position",variants:bW,initial:V,animate:_,exit:$,transition:S,children:[v,w]}),x[40]=k,x[41]=C,x[42]=o,x[43]=M,x[44]=v,x[45]=w,x[46]=A,x[47]=S,x[48]=L,x[49]=b):b=x[49],b}bN.displayName="Toast";let bW={initial:{y:32,scale:.5,zIndex:1},hidden:{opacity:0}
1154,visible:e=>e?{opacity:1,transition:{when:"beforeChildren",staggerChildren:e/3,duration:e/3}}:{opacity:1},slideIn:{y:0,scale:1},slideOut:{zIndex:0,scale:.75}},bz={initial:{willChange:"transform"},hidden:{opacity:0},visible:{opacity:1}},bD=f1.create(bH),bF=f1.create(mp),bZ=f1.create(mc),bU=f1.create(bI),bq=f1.create(bO);p9("@sanity/ui/context/toast",null);nF(mG).withConfig({displayName:"StyledLayer",componentId:"sc-1tbwn58-0"})`box-sizing:border-box;position:fixed;right:0;bottom:0;list-style:none;pointer-events:none;max-width:420px;width:100%;`;function bG(e){if("treeitem"===e.getAttribute("role")&&e.focus(),"none"===e.getAttribute("role")){let t=e.firstChild;t&&t instanceof HTMLElement&&t.focus()}}let bY=p9("@sanity/ui/context/tree",null);(0,_.forwardRef)(function(e,t){let n,r,i,o,s,a,l,u,d,c,h,f,p,g,m,y,v,w,b,x,C,k,j=(0,eU.c)(38);j[0]!==e?({children:n,gap:r,space:s,onFocus:i,...o}=e,j[0]=e,j[1]=n,j[2]=r,j[3]=i,j[4]=o,j[5]=s):(n=j[1],r=j[2],i=j[3],o=j[4],s=j[5]);let M=void 0===r?void 0===s?1:s:r,L=(0,_.useRef)(null),[S,R]=(0,_.useState)(null),V=(0,_.useRef)(S);j[6]===Symbol.for("react.memo_cache_sentinel")?(a=[],j[6]=a):a=j[6];let $=a;j[7]===Symbol.for("react.memo_cache_sentinel")?(l=[],j[7]=l):l=j[7];let[A,T]=(0,_.useState)(l);j[8]===Symbol.for("react.memo_cache_sentinel")?(u={},j[8]=u):u=j[8];let[H,I]=(0,_.useState)(u),P=(0,_.useRef)(H);j[9]===Symbol.for("react.memo_cache_sentinel")?(d=()=>L.current,j[9]=d):d=j[9],(0,_.useImperativeHandle)(t,d),j[10]!==S?(c=()=>{V.current=S},h=[S],j[10]=S,j[11]=c,j[12]=h):(c=j[11],h=j[12]),(0,_.useEffect)(c,h),j[13]!==H?(f=()=>{P.current=H},p=[H],j[13]=H,j[14]=f,j[15]=p):(f=j[14],p=j[15]),(0,_.useEffect)(f,p),j[16]===Symbol.for("react.memo_cache_sentinel")?(g=(e,t,n,r)=>(I(r=>({...r,[t]:{element:e,expanded:n}})),r&&R(e),()=>{I(e=>{let n={...e};return delete n[t],n})}),j[16]=g):g=j[16];let O=g;j[17]===Symbol.for("react.memo_cache_sentinel")?(m=(e,t)=>{I(n=>{let r=n[e];return r?{...n,[e]:{...r,expanded:t}}:n})},j[17]=m):m=j[17];let B=m,N=S||A[0]||null;j[18]!==M||j[19]!==H||j[20]!==N?(y={version:0,focusedElement:N,level:0,path:$,registerItem:O,setExpanded:B,setFocusedElement:R,gap:M,space:M,state:H},j[18]=M,j[19]=H,j[20]=N,j[21]=y):y=j[21];let W=y;j[22]!==A?(v=e=>{if(V.current){if("ArrowDown"===e.key){e.preventDefault();let t=function(e,t,n){let r=t.indexOf(n),i=t.slice(r),o=t.length;for(let t=1;t<o;t+=1){if(!i[t])continue;let n=i[t].getAttribute("data-tree-key");if(!n)continue;let r=n.split("/");r.pop();let o=[],s=!0;for(let t=0;t<r.length;t+=1){o.push(r[t]);let n=o.join("/");if(!e[n]?.expanded){s=!1;break}}if(s)return i[t]}return null}(P.current,A,V.current);t&&(bG(t),R(t));return}if("ArrowUp"===e.key){e.preventDefault();let t=function(e,t,n){let r=t.indexOf(n),i=t.slice(0,r),o=i.length;for(let t=o-1;t>=0;t-=1){let n=i[t].getAttribute("data-tree-key");if(!n)continue;let r=n.split("/");r.pop();let o=[],s=!0;for(let t=0;t<r.length;t+=1){o.push(r[t]);let n=o.join("/");if(!e[n]?.expanded){s=!1;break}}if(s)return i[t]}return null}(P.current,A,V.current);t&&(bG(t),R(t));return}if("ArrowLeft"===e.key){e.preventDefault();let t=V.current.getAttribute("data-tree-key");if(!t)return;let n=P.current[t];if(!n)return;if(n.expanded)I(e=>{let n=e[t];return n?{...e,[t]:{...n,expanded:!1}}:e});else{let e=t.split("/");e.pop();let n=e.join("/"),r=n&&P.current[n];r&&(r.element.focus(),R(r.element))}return}if("ArrowRight"===e.key){e.preventDefault();let t=V.current.getAttribute("data-tree-key");if(!t)return;P.current[t]?.expanded||I(e=>{let n=e[t];return n?{...e,[t]:{...n,expanded:!0}}:e});return}}},j[22]=A,j[23]=v):v=j[23];let z=v;j[24]!==i?(w=e=>{R(e.target),i?.(e)},j[24]=i,j[25]=w):w=j[25];let D=w;return j[26]===Symbol.for("react.memo_cache_sentinel")?(b=()=>{L.current&&T(Array.from(L.current.querySelectorAll('[data-ui="TreeItem"]')))},j[26]=b):b=j[26],j[27]!==n?(x=[n],j[27]=n,j[28]=x):x=j[28],(0,_.useEffect)(b,x),j[29]!==n||j[30]!==D||j[31]!==z||j[32]!==o||j[33]!==M?(C=(0,E.jsx)(yz,{as:"ul","data-ui":"Tree",...o,onFocus:D,onKeyDown:z,ref:L,role:"tree",gap:M,children:n}),j[29]=n,j[30]=D,j[31]=z,j[32]=o,j[33]=M,j[34]=C):C=j[34],j[35]!==W||j[36]!==C?(k=(0,E.jsx)(bY.Provider,{value:W,children:C}),j[35]=W,j[36]=C,j[37]=k):k=j[37],k}).displayName="ForwardRef(Tree)";nF(mc).withConfig({displayName:"ToggleArrowText",componentId:"sc-iiskig-2"})`& > svg{transition:transform 100ms;}`;var bX=e.i(89955);let bK=e=>"object"==typeof e&&null!=e&&1===e.nodeType,bJ=(e,t)=>
1154(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,bQ=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){let n,r=getComputedStyle(e,null);return bJ(r.overflowY,t)||bJ(r.overflowX,t)||!!(n=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}})(e))&&(n.clientHeight<e.scrollHeight||n.clientWidth<e.scrollWidth)}return!1},b1=(e,t,n,r,i,o,s,a)=>o<e&&s>t||o>e&&s<t?0:o<=e&&a<=n||s>=t&&a>=n?o-e-r:s>t&&a<n||o<e&&a>n?s-t+i:0,b0=e=>{let t=e.parentElement;return null==t?e.getRootNode().host||null:t},b5=(e,t)=>{var n,r,i,o;let s;if("u"<typeof document)return[];let{scrollMode:a,block:l,inline:u,boundary:d,skipOverflowHiddenElements:c}=t,h="function"==typeof d?d:e=>e!==d;if(!bK(e))throw TypeError("Invalid target");let f=document.scrollingElement||document.documentElement,p=[],g=e;for(;bK(g)&&h(g);){if((g=b0(g))===f){p.push(g);break}null!=g&&g===document.body&&bQ(g)&&!bQ(document.documentElement)||null!=g&&bQ(g,c)&&p.push(g)}let m=null!=(r=null==(n=window.visualViewport)?void 0:n.width)?r:innerWidth,y=null!=(o=null==(i=window.visualViewport)?void 0:i.height)?o:innerHeight,{scrollX:v,scrollY:w}=window,{height:b,width:x,top:C,right:k,bottom:j,left:M}=e.getBoundingClientRect(),{top:L,right:S,bottom:E,left:R}={top:parseFloat((s=window.getComputedStyle(e)).scrollMarginTop)||0,right:parseFloat(s.scrollMarginRight)||0,bottom:parseFloat(s.scrollMarginBottom)||0,left:parseFloat(s.scrollMarginLeft)||0},V="start"===l||"nearest"===l?C-L:"end"===l?j+E:C+b/2-L+E,_="center"===u?M+x/2-R+S:"end"===u?k+S:M-R,$=[];for(let e=0;e<p.length;e++){let t=p[e],{height:n,width:r,top:i,right:o,bottom:s,left:d}=t.getBoundingClientRect();if("if-needed"===a&&C>=0&&M>=0&&j<=y&&k<=m&&(t===f&&!bQ(t)||C>=i&&j<=s&&M>=d&&k<=o))break;let c=getComputedStyle(t),h=parseInt(c.borderLeftWidth,10),g=parseInt(c.borderTopWidth,10),L=parseInt(c.borderRightWidth,10),S=parseInt(c.borderBottomWidth,10),E=0,R=0,A="offsetWidth"in t?t.offsetWidth-t.clientWidth-h-L:0,T="offsetHeight"in t?t.offsetHeight-t.clientHeight-g-S:0,H="offsetWidth"in t?0===t.offsetWidth?0:r/t.offsetWidth:0,I="offsetHeight"in t?0===t.offsetHeight?0:n/t.offsetHeight:0;if(f===t)E="start"===l?V:"end"===l?V-y:"nearest"===l?b1(w,w+y,y,g,S,w+V,w+V+b,b):V-y/2,R="start"===u?_:"center"===u?_-m/2:"end"===u?_-m:b1(v,v+m,m,h,L,v+_,v+_+x,x),E=Math.max(0,E+w),R=Math.max(0,R+v);else{E="start"===l?V-i-g:"end"===l?V-s+S+T:"nearest"===l?b1(i,s,n,g,S+T,V,V+b,b):V-(i+n/2)+T/2,R="start"===u?_-d-h:"center"===u?_-(d+r/2)+A/2:"end"===u?_-o+L+A:b1(d,o,r,h,L+A,_,_+x,x);let{scrollLeft:e,scrollTop:a}=t;E=0===I?0:Math.max(0,Math.min(a+E/I,t.scrollHeight-n/I+T)),R=0===H?0:Math.max(0,Math.min(e+R/H,t.scrollWidth-r/H+A)),V+=a-E,_+=e-R}$.push({el:t,top:E,left:R})}return $};var b2=e.i(81283),b3=e.i(54975),b4=e.i(89740),b6=e.i(40144),b8=e.i(8659),b9=e.i(93817),b7=e.i(76955),xe=e.i(56414),xt=e.i(89964);function xn(e){let[t,n]=e;return[t,n]}function xr(e,t){let n=e,r=t,i=n.length,o=r.length;if(0===i||0===o)return 0;i>o?n=n.substring(i-o):i<o&&(r=r.substring(0,i));let s=Math.min(i,o);if(n===r)return s;let a=0,l=1;for(let e=0;-1!==e;){let t=n.substring(s-l);if(-1===(e=r.indexOf(t)))break;l+=e,(0===e||n.substring(s-l)===r.substring(0,l))&&(a=l,l++)}return a}function xi(e,t){if(!e||!t||e[0]!==t[0])return 0;let n=0,r=Math.min(e.length,t.length),i=r,o=0;for(;n<i;)e.substring(o,i)===t.substring(o,i)?o=n=i:r=i,i=Math.floor((r-n)/2+n);return i}function xo(e,t){if(!e||!t||e[e.length-1]!==t[t.length-1])return 0;let n=0,r=Math.min(e.length,t.length),i=r,o=0;for(;n<i;)e.substring(e.length-i,e.length-o)===t.substring(t.length-i,t.length-o)?o=n=i:r=i,i=Math.floor((r-n)/2+n);return i}function xs(e){let t=e.charCodeAt(0);return t>=56320&&t<=57343}function xa(e,t,n,r,i){let o=e.substring(0,n),s=t.substring(0,r),a=e.substring(n),l=t.substring(r),u=xg(o,s,{checkLines:!1,deadline:i}),d=xg(a,l,{checkLines:!1,deadline:i});return u.concat(d)}function xl(e,t,n){let r=e.slice(n,n+Math.floor(e.length/4)),i=-1,o="",s,a,l,u;for(;-1!==(i=t.indexOf(r,i+1));){let r=xi(e.slice(n),t.slice(i)),d=xo(e.slice(0,n),t.slice(0,i));o.length<d+r&&(o=t.slice(i-d,i)+t.slice(i,i+r),s=e.slice(0,n-d),a=e.slice(n+r),l=t.slice(0,i-d),u=t.slice(i+r))}return 2*o.length>=e.length?[s||"",a||"",l||"",u||"",o||""]:null}var xu=Object.defineProperty,xd=Object.getOwnPropertySymbols,xc=Object.prototype.hasOwnProperty,xh=Object.prototype.propertyIsEnumerable,xf=(e,t,n
1154)=>t in e?xu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;function xp(e,t,n){if(null===e||null===t)throw Error("Null input. (diff)");let r=xg(e,t,function(e){let t;var n,r={checkLines:!0,deadline:(n=e.timeout||1,t=1,"u">typeof n&&(t=n<=0?Number.MAX_VALUE:n),Date.now()+1e3*t)},i=e;for(var o in i||(i={}))xc.call(i,o)&&xf(r,o,i[o]);if(xd)for(var o of xd(i))xh.call(i,o)&&xf(r,o,i[o]);return r}(n||{}));return function(e){for(let t=0;t<e.length;t++){let[n,r]=e[t];if(0===r.length)continue;let i=r[0];(function(e){let t=e.charCodeAt(0);return t>=55296&&t<=56319})(r[r.length-1])&&0===n&&xv(e,t,1),xs(i)&&0===n&&xv(e,t,-1)}for(let t=0;t<e.length;t++)0===e[t][1].length&&e.splice(t,1)}(r),r}function xg(e,t,n){let r=e,i=t;if(r===i)return r?[[0,r]]:[];let o=xi(r,i),s=r.substring(0,o);o=xo(r=r.substring(o),i=i.substring(o));let a=r.substring(r.length-o),l=function(e,t,n){let r;if(!e)return[[1,t]];if(!t)return[[-1,e]];let i=e.length>t.length?e:t,o=e.length>t.length?t:e,s=i.indexOf(o);if(-1!==s)return r=[[1,i.substring(0,s)],[0,o],[1,i.substring(s+o.length)]],e.length>t.length&&(r[0][0]=-1,r[2][0]=-1),r;if(1===o.length)return[[-1,e],[1,t]];let a=function(e,t,n=1){let r,i,o,s,a;if(n<=0)return null;let l=e.length>t.length?e:t,u=e.length>t.length?t:e;if(l.length<4||2*u.length<l.length)return null;let d=xl(l,u,Math.ceil(l.length/4)),c=xl(l,u,Math.ceil(l.length/2));if(d&&c)r=d[4].length>c[4].length?d:c;else{if(!d&&!c)return null;c?d||(r=c):r=d}if(!r)throw Error("Unable to find a half match.");return e.length>t.length?(i=r[0],o=r[1],s=r[2],a=r[3]):(s=r[0],a=r[1],i=r[2],o=r[3]),[i,o,s,a,r[4]]}(e,t);if(a){let e=a[0],t=a[1],r=a[2],i=a[3],o=a[4],s=xg(e,r,n),l=xg(t,i,n);return s.concat([[0,o]],l)}return n.checkLines&&e.length>100&&t.length>100?function(e,t,n){let r=e,i=t,o=function(e,t){let n=[],r={};function i(e){let t="",i=0,s=-1,a=n.length;for(;s<e.length-1;){-1===(s=e.indexOf(` 1155`,i))&&(s=e.length-1);let l=e.slice(i,s+1);(r.hasOwnProperty?r.hasOwnProperty(l):void 0!==r[l])?t+=String.fromCharCode(r[l]):(a===o&&(l=e.slice(i),s=e.length),t+=String.fromCharCode(a),r[l]=a,n[a++]=l),i=s+1}return t}n[0]="";let o=4e4,s=i(e);return o=65535,{chars1:s,chars2:i(t),lineArray:n}}(r,i);r=o.chars1,i=o.chars2;let s=o.lineArray,a=xg(r,i,{checkLines:!1,deadline:n.deadline});(function(e,t){for(let n=0;n<e.length;n++){let r=e[n][1],i=[];for(let e=0;e<r.length;e++)i[e]=t[r.charCodeAt(e)];e[n][1]=i.join("")}})(a,s),(a=xw(a)).push([0,""]);let l=0,u=0,d=0,c="",h="";for(;l<a.length;){switch(a[l][0]){case 1:d++,h+=a[l][1];break;case -1:u++,c+=a[l][1];break;case 0:if(u>=1&&d>=1){a.splice(l-u-d,u+d),l=l-u-d;let e=xg(c,h,{checkLines:!1,deadline:n.deadline});for(let t=e.length-1;t>=0;t--)a.splice(l,0,e[t]);l+=e.length}d=0,u=0,c="",h="";break;default:throw Error("Unknown diff operation.")}l++}return a.pop(),a}(e,t,n):function(e,t,n){let r=e.length,i=t.length,o=Math.ceil((r+i)/2),s=2*o,a=Array(s),l=Array(s);for(let e=0;e<s;e++)a[e]=-1,l[e]=-1;a[o+1]=0,l[o+1]=0;let u=r-i,d=u%2!=0,c=0,h=0,f=0,p=0;for(let g=0;g<o&&!(Date.now()>n);g++){for(let f=-g+c;f<=g-h;f+=2){let p,m=o+f,y=(p=f===-g||f!==g&&a[m-1]<a[m+1]?a[m+1]:a[m-1]+1)-f;for(;p<r&&y<i&&e.charAt(p)===t.charAt(y);)p++,y++;if(a[m]=p,p>r)h+=2;else if(y>i)c+=2;else if(d){let i=o+u-f;if(i>=0&&i<s&&-1!==l[i]&&p>=r-l[i])return xa(e,t,p,y,n)}}for(let c=-g+f;c<=g-p;c+=2){let h,m=o+c,y=(h=c===-g||c!==g&&l[m-1]<l[m+1]?l[m+1]:l[m-1]+1)-c;for(;h<r&&y<i&&e.charAt(r-h-1)===t.charAt(i-y-1);)h++,y++;if(l[m]=h,h>r)p+=2;else if(y>i)f+=2;else if(!d){let i=o+u-c;if(i>=0&&i<s&&-1!==a[i]){let s=a[i],l=o+s-i;if(s>=(h=r-h))return xa(e,t,s,l,n)}}}}return[[-1,e],[1,t]]}(e,t,n.deadline)}(r=r.substring(0,r.length-o),i=i.substring(0,i.length-o),n);return s&&l.unshift([0,s]),a&&l.push([0,a]),l=xL(l)}function xm(e,t,n){return 1===n?e+t:t+e}function xy(e,t){return 1===t?[e.substring(0,e.length-1),e[e.length-1]]:[e.substring(1),e[0]]}function xv(e,t,n){var r,i;let o=1===n?-1:1,s=null,a=null,l=t+n;for(;l>=0&&l<e.length&&(null===s||null===a);l+=n){let[r,i]=e[l];if(0!==i.length){if(1===r){null===s&&(s=l);continue}else if(-1===r){null===a&&(a=l);continue}else if(0===r){if(null===s&&null===a){let[r,i]=xy(e[t][1],n);e[t][1]=r,e[l][1]=xm(e[l][1],i,o);return}break}}}if(null!==s&&null!==a&&(r=s,i=a,1===n?e[r][1][e[r][1].length-1]===e[i][1][e[i][1].length-1]:e[r][1][0]===e[i][1][0])){let[r,i]=xy(e[s][1],o),[l]=xy(e[a][1],o);e[s][1]=r,e[a][1]=l,e[t][1]=xm(e[t][1],i,n);return}let[u,d]=xy(e[t][1],n);e[t][1]=u,null===s?(e.splice(l,0,[1,d]),null!==a&&a>=l&&a++):e[s][1]=xm(e[s][1],d,o),null===a?e.splice(l,0,[-1,d]):e[a][1]=xm(e[a][1],d,o)}function xw(e){let t=e.map(e=>xn(e)),n=!1,r=[],i=0,o=null,s=0,a=0,l=0,u=0,d=0;for(;s<t.length;)0===t[s][0]?(r[i++]=s,a=u,l=d,u=0,d=0,o=t[s][1]):(1===t[s][0]?u+=t[s][1].length:d+=t[s][1].length,o&&o.length<=Math.max(a,l)&&o.length<=Math.max(u,d)&&(t.splice(r[i-1],0,[-1,o]),t[r[i-1]+1][0]=1,i--,s=--i>0?r[i-1]:-1,a=0,l=0,u=0,d=0,o=null,n=!0)),s++;for(n&&(t=xL(t)),t=xM(t),s=1;s<t.length;){if(-1===t[s-1][0]&&1===t[s][0]){let e=t[s-1][1],n=t[s][1],r=xr(e,n),i=xr(n,e);r>=i?(r>=e.length/2||r>=n.length/2)&&(t.splice(s,0,[0,n.substring(0,r)]),t[s-1][1]=e.substring(0,e.length-r),t[s+1][1]=n.substring(r),s++):(i>=e.length/2||i>=n.length/2)&&(t.splice(s,0,[0,e.substring(0,i)]),t[s-1][0]=1,t[s-1][1]=n.substring(0,n.length-i),t[
1155s+1][0]=-1,t[s+1][1]=e.substring(i),s++),s++}s++}return t}let xb=/[^a-zA-Z0-9]/,xx=/\s/,xC=/[\r\n]/,xk=/\n\r?\n$/,xj=/^\r?\n\r?\n/;function xM(e){let t=e.map(e=>xn(e));function n(e,t){if(!e||!t)return 6;let n=e.charAt(e.length-1),r=t.charAt(0),i=n.match(xb),o=r.match(xb),s=i&&n.match(xx),a=o&&r.match(xx),l=s&&n.match(xC),u=a&&r.match(xC),d=l&&e.match(xk),c=u&&t.match(xj);return d||c?5:l||u?4:i&&!s&&a?3:s||a?2:i||o?1:0}let r=1;for(;r<t.length-1;){if(0===t[r-1][0]&&0===t[r+1][0]){let e=t[r-1][1],i=t[r][1],o=t[r+1][1],s=xo(e,i);if(s){let t=i.substring(i.length-s);e=e.substring(0,e.length-s),i=t+i.substring(0,i.length-s),o=t+o}let a=e,l=i,u=o,d=n(e,i)+n(i,o);for(;i.charAt(0)===o.charAt(0);){e+=i.charAt(0),i=i.substring(1)+o.charAt(0),o=o.substring(1);let t=n(e,i)+n(i,o);t>=d&&(d=t,a=e,l=i,u=o)}t[r-1][1]!==a&&(a?t[r-1][1]=a:(t.splice(r-1,1),r--),t[r][1]=l,u?t[r+1][1]=u:(t.splice(r+1,1),r--))}r++}return t}function xL(e){let t=e.map(e=>xn(e));t.push([0,""]);let n=0,r=0,i=0,o="",s="",a;for(;n<t.length;)switch(t[n][0]){case 1:i++,s+=t[n][1],n++;break;case -1:r++,o+=t[n][1],n++;break;case 0:r+i>1?(0!==r&&0!==i&&(0!==(a=xi(s,o))&&(n-r-i>0&&0===t[n-r-i-1][0]?t[n-r-i-1][1]+=s.substring(0,a):(t.splice(0,0,[0,s.substring(0,a)]),n++),s=s.substring(a),o=o.substring(a)),0!==(a=xo(s,o))&&(t[n][1]=s.substring(s.length-a)+t[n][1],s=s.substring(0,s.length-a),o=o.substring(0,o.length-a))),n-=r+i,t.splice(n,r+i),o.length&&(t.splice(n,0,[-1,o]),n++),s.length&&(t.splice(n,0,[1,s]),n++),n++):0!==n&&0===t[n-1][0]?(t[n-1][1]+=t[n][1],t.splice(n,1)):n++,i=0,r=0,o="",s="";break;default:throw Error("Unknown diff operation")}""===t[t.length-1][1]&&t.pop();let l=!1;for(n=1;n<t.length-1;)0===t[n-1][0]&&0===t[n+1][0]&&(t[n][1].substring(t[n][1].length-t[n-1][1].length)===t[n-1][1]?(t[n][1]=t[n-1][1]+t[n][1].substring(0,t[n][1].length-t[n-1][1].length),t[n+1][1]=t[n-1][1]+t[n+1][1],t.splice(n-1,1),l=!0):t[n][1].substring(0,t[n+1][1].length)===t[n+1][1]&&(t[n-1][1]+=t[n+1][1],t[n][1]=t[n][1].substring(t[n+1][1].length)+t[n+1][1],t.splice(n+1,1),l=!0)),n++;return l&&(t=xL(t)),t}var xS=Object.defineProperty,xE=Object.getOwnPropertySymbols,xR=Object.prototype.hasOwnProperty,xV=Object.prototype.propertyIsEnumerable,x_=(e,t,n)=>t in e?xS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,x$=(e,t)=>{for(var n in t||(t={}))xR.call(t,n)&&x_(e,n,t[n]);if(xE)for(var n of xE(t))xV.call(t,n)&&x_(e,n,t[n]);return e};let xA={threshold:.5,distance:1e3};function xT(e,t,n,r={}){if(null===e||null===t||null===n)throw Error("Null input. (match())");let i=Math.max(0,Math.min(n,e.length));return e===t?0:e.length?e.substring(i,i+t.length)===t?i:function(e,t,n,r={}){if(t.length>32)throw Error("Pattern too long for this browser.");let i=x$(x$({},xA),r),o=function(e){let t={};for(let n=0;n<e.length;n++)t[e.charAt(n)]=0;for(let n=0;n<e.length;n++)t[e.charAt(n)]|=1<<e.length-n-1;return t}(t);function s(e,r){let o=e/t.length,s=Math.abs(n-r);return i.distance?o+s/i.distance:s?1:o}let a=i.threshold,l=e.indexOf(t,n);-1!==l&&(a=Math.min(s(0,l),a),-1!==(l=e.lastIndexOf(t,n+t.length))&&(a=Math.min(s(0,l),a)));let u=1<<t.length-1;l=-1;let d,c,h=t.length+e.length,f=[];for(let r=0;r<t.length;r++){for(d=0,c=h;d<c;)s(r,n+c)<=a?d=c:h=c,c=Math.floor((h-d)/2+d);h=c;let i=Math.max(1,n-c+1),p=Math.min(n+c,e.length)+t.length,g=Array(p+2);g[p+1]=(1<<r)-1;for(let t=p;t>=i;t--){let d=o[e.charAt(t-1)];if(0===r?g[t]=(g[t+1]<<1|1)&d:g[t]=(g[t+1]<<1|1)&d|((f[t+1]|f[t])<<1|1)|f[t+1],g[t]&u){let e=s(r,t-1);if(e<=a)if(a=e,(l=t-1)>n)i=Math.max(1,2*n-l);else break}}if(s(r+1,n)>a)break;f=g}return l}(e,t,i,r):-1}function xH(e){let t=[];for(let n=0;n<e.length;n++)1!==e[n][0]&&(t[n]=e[n][1]);return t.join("")}function xI(e){let t=[];for(let n=0;n<e.length;n++)-1!==e[n][0]&&(t[n]=e[n][1]);return t.join("")}function xP(e,t){let n=0,r=0,i=0,o=0,s;for(s=0;s<e.length&&(1!==e[s][0]&&(n+=e[s][1].length),-1!==e[s][0]&&(r+=e[s][1].length),!(n>t));s++)i=n,o=r;return e.length!==s&&-1===e[s][0]?o:o+(t-i)}function xO(e){let t=0;for(let n=0;n<e.length;n++){let r=e.codePointAt(n);if(typeof r>"u")throw Error("Failed to get codepoint");t+=xB(r)}return t}function xB(e){return e<=127?1:e<=2047?2:e<=65535?3:4}function xN(e,t){return{diffs:[],start1:e,start2:t,utf8Start1:e,utf8Start2:t,length1:0,length2:0,utf8Length1:0,utf8Length2:0}}var xW=Object.defineProperty,xz=Object.getOwnPropertySymbols,xD=Object.prototype.hasOwnProperty,xF=Object.prototype.propertyIsEnumerable,xZ=(e,t,n)=>t in e?xW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,xU=(e,t)=>{for(var n in t||(t={}
1155))xD.call(t,n)&&xZ(e,n,t[n]);if(xz)for(var n of xz(t))xF.call(t,n)&&xZ(e,n,t[n]);return e};let xq={margin:4};function xG(e={}){return xU(xU({},xq),e)}function xY(e,t,n){if(0===t.length)return[];let r=[],i=xN(0,0),o=0,s=0,a=0,l=0,u=0,d=e,c=e;for(let e=0;e<t.length;e++){let h=t[e],[f,p]=h,g=p.length,m=xO(p);switch(!o&&0!==f&&(i.start1=s,i.start2=a,i.utf8Start1=l,i.utf8Start2=u),f){case 1:i.diffs[o++]=h,i.length2+=g,i.utf8Length2+=m,c=c.substring(0,a)+p+c.substring(a);break;case -1:i.length1+=g,i.utf8Length1+=m,i.diffs[o++]=h,c=c.substring(0,a)+c.substring(a+g);break;case 0:g<=2*n.margin&&o&&t.length!==e+1?(i.diffs[o++]=h,i.length1+=g,i.length2+=g,i.utf8Length1+=m,i.utf8Length2+=m):g>=2*n.margin&&o&&(xX(i,d,n),r.push(i),i=xN(-1,-1),o=0,d=c,s=a,l=u);break;default:throw Error("Unknown diff type")}1!==f&&(s+=g,l+=m),-1!==f&&(a+=g,u+=m)}return o&&(xX(i,d,n),r.push(i)),r}function xX(e,t,n){if(0===t.length)return;let r=t.substring(e.start2,e.start2+e.length1),i=0;for(;t.indexOf(r)!==t.lastIndexOf(r)&&r.length<32-n.margin-n.margin;)i+=n.margin,r=t.substring(e.start2-i,e.start2+e.length1+i);i+=n.margin;let o=e.start2-i;o>=1&&xs(t[o])&&o--;let s=t.substring(o,e.start2);s&&e.diffs.unshift([0,s]);let a=s.length,l=xO(s),u=e.start2+e.length1+i;u<t.length&&xs(t[u])&&u++;let d=t.substring(e.start2+e.length1,u);d&&e.diffs.push([0,d]);let c=d.length,h=xO(d);e.start1-=a,e.start2-=a,e.utf8Start1-=l,e.utf8Start2-=l,e.length1+=a+c,e.length2+=a+c,e.utf8Length1+=l+h,e.utf8Length2+=l+h}let xK=/^@@ -(\d+),?(\d*) \+(\d+),?(\d*) @@$/;function xJ(e){return parseInt(e,10)}function xQ(e){let t,n,r,{utf8Length1:i,utf8Length2:o,utf8Start1:s,utf8Start2:a,diffs:l}=e;t=0===i?`${s},0`:1===i?`${s+1}`:`${s+1},${i}`,n=0===o?`${a},0`:1===o?`${a+1}`:`${a+1},${o}`;let u=[`@@ -${t} +${n} @@ 1156`];for(let e=0;e<l.length;e++){switch(l[e][0]){case 1:r="+";break;case -1:r="-";break;case 0:r=" ";break;default:throw Error("Unknown patch operation.")}u[e+1]=`${r+encodeURI(l[e][1])} 1157`}return u.join("").replace(/%20/g," ")}function x1(e,t){if("number"==typeof t){var n=e.length,r=t;if(0===n&&(-1===r||0===r))return 0;let i=r<0?n+r:r;return i>=n||i<0?null:i}if((0,xe.isKeyedElement)(t)){let n=e.findIndex(e=>(null!==e&&"object"==typeof e&&"string"==typeof e._key&&e._key||null)===t._key);return -1===n?null:n}throw Error(`Expected path segment to be addressing a single array item either by numeric index or by '_key'. Instead saw ${JSON.stringify(t)}`)}function x0(e,t,n,r){let i=e.slice();return i.splice(t,n,...r||[]),i}function x5(e,t){let n={...e};for(let e of t)delete n[e];return n}function x2(e,t){var n;if(!Array.isArray(t))throw TypeError('Cannot apply "insert()" on non-array value');let r=x1(t,e.referenceItem);if(null===r)throw Error(`Found no matching array element to insert ${e.position}`);return 0===t.length?e.items:x0(t,(n=e.position,"before"===n?r:r+1),0,e.items)}let x3=Object.prototype.hasOwnProperty.call.bind(Object.prototype.hasOwnProperty);var x4=Object.freeze({__proto__:null,assign:function(e,t){if(!(0,xt.isObject)(t))throw TypeError('Cannot apply "assign()" on non-object value');return!function(e){for(let t in e)if(x3(e,t))return!1;return!0}(e.value)?{...t,...e.value}:t},dec:function(e,t){if("number"!=typeof t)throw TypeError('Cannot apply "dec()" on non-numeric value');return t-e.amount},diffMatchPatch:function(e,t){if("string"!=typeof t)throw TypeError('Cannot apply "diffMatchPatch()" on non-string value');return function(e,t,n={}){if("string"==typeof e)throw Error("Patches must be an array - pass the patch to `parsePatch()` first");let r=t;if(0===e.length)return[r,[]];let i=function(e,t,n={}){let r=0,i=0;function o(e){for(;r<e;){let e=t.codePointAt(i);if(typeof e>"u")return i;r+=xB(e),e>65535?i+=2:i+=1}if(!n.allowExceedingIndices&&r!==e)throw Error("Failed to determine byte offset");return i}let s=[];for(let t of e)s.push({diffs:t.diffs.map(e=>xn(e)),start1:o(t.start1),start2:o(t.start2),utf8Start1:t.utf8Start1,utf8Start2:t.utf8Start2,length1:t.length1,length2:t.length2,utf8Length1:t.utf8Length1,utf8Length2:t.utf8Length2});return s}(e,r,{allowExceedingIndices:n.allowExceedingIndices}),o=n.margin||4,s=n.deleteThreshold||.4,a=function(e,t=4){let n="";for(let e=1;e<=t;e++)n+=String.fromCharCode(e);for(let n of e)n.start1+=t,n.start2+=t,n.utf8Start1+=t,n.utf8Start2+=t;let r=e[0],i=r.diffs;if(0===i.length||0!==i[0][0])i.unshift([0,n]),r.start1-=t,r.start2-=t,r.utf8Start1-=t,r.utf8Start2-=t,r.length1+=t,r.length2+=t,r.utf8Length1+=t,r.utf8Length2+=t;else if(t>i[0][1].length){let e=i[0][1].length,o=t-e;i[0][1]=n.substring(e)+i[0][1],r.start1-=o,r.start2-=o,r.utf8Start1-=o,r.utf8Start2-=o,r.length1+=o,r.length2+=o,r.utf8Length1+=o,r.utf8Length2+=o}if(0===(i=(r=e[e.length-1]).diffs).length||0!==i[i.length-1][0])i.push([0,n]),r.length1+=t,r.length2+=t,r.utf8Length1+=t,r.utf8Length2+=t;else if(t>i[i.length-1][1].length){let e=t-i[i.length-1][1].length;i[i.length-1][1]+=n.substring(0,e),r.length1+=e,r.length2+=e,r.utf8Length1+=e,r.utf8Length2+=e}return n}(i,o);r=a+r+a,function(e,t=4){for(let n=0;n<e.length;n++){if(e[n].length1<=32)continue;let r=e[n];e.splice(n--,1);let i=r.start1,o=r.start2,s="";for(;0!==r.diffs.length;){let a=xN(i-s.length,o-s.length),l=!0;if(""!==s){let e=xO(s);a.length1=s.length,a.utf8Length1=e,a.length2=s.length,a.utf8Length2=e,a.diffs.push([0,s])}for(;0!==r.diffs.length&&a.length1<32-t;){let e=r.diffs[0][0],n=r.diffs[0][1],s=xO(n);if(1===e){a.length2+=n.length,a.utf8Length2+=s,o+=n.length;let e=r.diffs.shift();e&&a.diffs.push(e),l=!1}else -1===e&&1===a.diffs.length&&0===a.diffs[0][0]&&n.length>64?(a.length1+=n.length,a.utf8Length1+=s,i+=n.length,l=!1,a.diffs.push([e,n]),r.diffs.shift()):(s=xO(n=n.substring(0,32-a.length1-t)),a.length1+=n.length,a.utf8Length1+=s,i+=n.length,0===e?(a.length2+=n.length,a.utf8Length2+=s,o+=n.length):l=!1,a.diffs.push([e,n]),n===r.diffs[0][1]?r.diffs.shift():r.diffs[0][1]=r.diffs[0][1].substring(n.length))}s=(s=xI(a.diffs)).substring(s.length-t);let u=xH(r.diffs).substring(0,t),d=xO(u);""!==u&&(a.length1+=u.length,a.length2+=u.length,a.utf8Length1+=d,a.utf8Length2+=d,0!==a.diffs.length&&0===a.diffs[a.diffs.length-1][0]?a.diffs[a.diffs.length-1][1]+=u:a.diffs.push([0,u])),l||e.splice(++n,0,a)}}}(i,o);let l=0,u=[];for(let e=0;e<i.length;e++){let t=i[e].start2+l,n=xH(i[e].diffs),o,a=-1;if(n.length>32?-1!==(o=xT(r,n.substring(0,32),t))&&(-1===(a=xT(r,n.substring(n.length-32),t+n.length-32))||o>=a)&&(o=-1):o=xT(r,n,t),-1===o)u[e]=!1,l-=i[e].length2-i[e].length1;else{let d;if(u[e]=!0,l=o-t,d=-1===a?r.substring(o,o+n.length):r.substring(o,a+32),n===d)r=r.substring(0,o)+xI(i[e].diffs)+r.substring(o+n.length);else{let t=xp(n,d,{checkLines:!1});if(n.length>32&&function(e){let t=0,n=0,r=0;for(let i=0;i<e.length;i++){let o=e[i][0],s=e[i][1];switch(o){case 1:n+=s.length;break;case -1:r+=s.length;break;case 0:t+=Math.max(n,r),n=0,r=0;break;default:throw Error("Unknown diff operation.")}}return t+Math.max(n,r)}(t)/n.length>s)u[e]=!1;else{t=xM(t);let n=0,s=0;for(let a=0;a<i[e].diffs.length;a++){let l=i[e].diffs[a];0!==l[0]&&(s=xP(t,n)),1===l[0]?r=r.substring(0,o+s)+l[1]+r.substring(o+s):-1===l[0]&&(r=r.substring(0,o+s)+r.
1157substring(o+xP(t,n+l[1].length))),-1!==l[0]&&(n+=l[1].length)}}}}}return[r=r.substring(a.length,r.length-a.length),u]}(function(e){if(!e)return[];let t=[],n=e.split(` 1158`),r=0;for(;r<n.length;){let e=n[r].match(xK);if(!e)throw Error(`Invalid patch string: ${n[r]}`);let i=xN(xJ(e[1]),xJ(e[3]));for(t.push(i),""===e[2]?(i.start1--,i.utf8Start1--,i.length1=1,i.utf8Length1=1):"0"===e[2]?(i.length1=0,i.utf8Length1=0):(i.start1--,i.utf8Start1--,i.utf8Length1=xJ(e[2]),i.length1=i.utf8Length1),""===e[4]?(i.start2--,i.utf8Start2--,i.length2=1,i.utf8Length2=1):"0"===e[4]?(i.length2=0,i.utf8Length2=0):(i.start2--,i.utf8Start2--,i.utf8Length2=xJ(e[4]),i.length2=i.utf8Length2),r++;r<n.length;){let e,t=n[r],o=t.charAt(0);if("@"===o)break;if(""===o){r++;continue}try{e=decodeURI(t.slice(1))}catch(e){throw Error(`Illegal escape in parse: ${t}`)}let s=xO(e)-e.length;if("-"===o)i.diffs.push([-1,e]),i.length1-=s;else if("+"===o)i.diffs.push([1,e]),i.length2-=s;else if(" "===o)i.diffs.push([0,e]),i.length1-=s,i.length2-=s;else throw Error(`Invalid patch mode "${o}" in: ${e}`);r++}}return t}(e.value),t)[0]},inc:function(e,t){if("number"!=typeof t)throw TypeError('Cannot apply "inc()" on non-numeric value');return t+e.amount},insert:x2,insertIfMissing:function(e,t){if(!Array.isArray(t))throw TypeError('Cannot apply "insertIfMissing()" on non-array value');
1158if(0===e.items.length)return t;let n=e.items.filter(e=>!t.find(t=>e._key===t?._key));return 0===n.length?t:x2({items:n,referenceItem:e.referenceItem,position:e.position},t)},remove:function(e,t){if(!Array.isArray(t))throw TypeError('Cannot apply "remove()" on non-array value');let n=x1(t,e.referenceItem);if(null===n)throw Error("Found no matching array element to replace");return x0(t,n,1,[])},replace:function(e,t){if(!Array.isArray(t))throw TypeError('Cannot apply "replace()" on non-array value');let n=x1(t,e.referenceItem);if(null===n)throw Error("Found no matching array element to replace");return x0(t,n,e.items.length,e.items)},set:function(e,t){return e.value},setIfMissing:function(e,t){return t??e.value},truncate:function(e,t){if(!Array.isArray(t))throw TypeError('Cannot apply "truncate()" on non-array value');return"number"==typeof e.endIndex?t.slice(0,e.startIndex).concat(t.slice(e.endIndex)):t.slice(0,e.startIndex)},unassign:function(e,t){if(!(0,xt.isObject)(t))throw TypeError('Cannot apply "unassign()" on non-object value');return 0===e.keys.length?t:x5(t,e.keys)},unset:function(e){},upsert:function(e,t){if(!Array.isArray(t))throw TypeError('Cannot apply "upsert()" on non-array value');
1158if(0===e.items.length)return t;let n={},r=[];e.items.forEach((e,i)=>{let o=t.findIndex(t=>t?._key===e._key);o>=0?n[o]=i:r.push(e)});let i=Object.keys(n);if(0===i.length&&0==r.length)return t;let o=[...t];for(let t of i){let r=Number(t);o[r]=e.items[n[r]]}return x2({items:r,referenceItem:e.referenceItem,position:e.position},o)}});function x6(e,t){return e.reduce((e,t)=>x8(t,e),t)}function x8(e,t){return function e(t,n,r){if(!(t.length>0)){if(!(n.type in x4))throw Error(`Invalid operation type: "${n.type}"`);return x4[n.type](n,r)}let[i,...o]=t;if((0,xe.isArrayElement)(i)&&Array.isArray(r)){var s=i,a=o,l=n,u=r;let t=x1(u,s);if(null===t||-1===t)return u;let d=u[t],c=e(a,l,d);return c===d?u:x0(u,t,1,void 0===c?[]:[c])}if((0,xe.isPropertyElement)(i)&&(0,xt.isObject)(r)){var d=i,c=o,h=n,f=r;let t=f[d];if(void 0===t&&c.length>0)return f;let s=e(c,h,t);return void 0===s?x5(f,[d]):s===t?f:{...f,[d]:s}}throw Error(`Cannot apply operation of type "${n.type}" to path ${(0,xe.stringify)(t)} on ${typeof r} value`)}(e.path,e.op,t)}function x9(e){return"_id"in e}function x7(e,t){if(0===e.length)return t;let n=t;for(let t of e){if((0,xe.isArrayElement)(t)){if(!Array.isArray(n))return;if((0,xe.isKeyedElement)(t)){n=n.find(e=>e._key===t._key);continue}n=n[t];continue}n=n[t]}return n}let Ce=(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e|=0));for(;e--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[63&n[e]];return t};var Ct=new Uint8Array(16);let Cn=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var Cr=[],Ci=0;Ci<256;++Ci)Cr.push((Ci+256).toString(16).substr(1));let Co=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(Cr[e[t+0]]+Cr[e[t+1]]+Cr[e[t+2]]+Cr[e[t+3]]+"-"+Cr[e[t+4]]+Cr[e[t+5]]+"-"+Cr[e[t+6]]+Cr[e[t+7]]+"-"+Cr[e[t+8]]+Cr[e[t+9]]+"-"+Cr[e[t+10]]+Cr[e[t+11]]+Cr[e[t+12]]+Cr[e[t+13]]+Cr[e[t+14]]+Cr[e[t+15]]).toLowerCase();if(!("string"==typeof n&&Cn.test(n)))throw TypeError("Stringified UUID is invalid");return n},Cs=function(e,t,n){var r=(e=e||{}).random||(e.rng||function(){if(!L&&!(L="u">typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"u">typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return L(Ct)})();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var i=0;i<16;++i)t[n+i]=r[i];return t}return Co(r)};function Ca(e){if("patch"===e.type)return e.id;if("create"===e.type)return e.document._id;if("delete"===e.type)return e.id;if("createIfNotExists"===e.type||"createOrReplace"===e.type)return e.document._id;throw Error("Invalid mutation type")}function Cl(e,t){return t.reduce((e,t)=>{let n=Cu(e,t);if("error"===n.status)throw Error(n.message);return"noop"===n.status?e:n.after},e)}function Cu(e,t){if("create"===t.type)return function(e,t){var n;if(e)return{status:"error",message:"Document already exist"};let r=(n=t.document,x9(n)?n:{...n,_id:Ce()});return{status:"created",id:r._id,after:r}}(e,t);if("createIfNotExists"===t.type){return n=e,x9((r=t).document)?n?{status:"noop"}:{status:"created",id:r.document._id,after:r.document}:{status:"error",message:"Cannot createIfNotExists on document without _id"}}if("delete"===t.type){return i=e,o=t,i?o.id!==i._id?{status:"error",message:"Delete mutation targeted wrong document"}:{status:"deleted",id:o.id,before:i,after:void 0}:{status:"noop"}}if("createOrReplace"===t.type){return s=e,x9((a=t).document)?s?{status:"updated",id:a.document._id,before:s,after:a.document}:{status:"created",id:a.document._id,after:a.document}:{status:"error",message:"Cannot createIfNotExists on document without _id"}}if("patch"===t.type){var n,r,i,o,s,a,l=e,u=t;if(!l)return{status:"error",message:"Cannot apply patch on nonexistent document"};let d=function(e,t){if(e.options?.ifRevision&&t._rev!==e.options.ifRevision)throw Error("Revision mismatch");if(e.id!==t._id)throw Error(`Document id mismatch. Refusing to apply mutation for document with id="${e.id}" on the given document with id="${t._id}"`);return x6(e.patches,t)}(u,l);return l===d?{status:"noop"}:{status:"updated",id:u.id,before:l,after:d}}throw Error(`Invalid mutation type: ${t.type}`)}function Cd(e,t,n){let r=[];for(let n of e.slice().reverse()){if(t(n))return r;r.push(n)}return r.reverse()}function Cc(e,t){return(0,xe.stringify)(e)===(0,xe.stringify)(t)}function Ch(e,t){let n=e;return t.reduce((e,t)=>
1158{let r=n;if(n=x8(t,n),"set"===t.op.type&&"string"==typeof t.op.value){let n=x7(t.path,r);if("string"==typeof n){let r={...t,op:{type:"diffMatchPatch",value:(function(e,t){if("string"==typeof e&&"string"==typeof t){let n=xp(e,t,{checkLines:!0});return n.length>2&&(n=function(e,t=4){let n=e.map(e=>xn(e)),r=!1,i=[],o=0,s=null,a=0,l=!1,u=!1,d=!1,c=!1;for(;a<n.length;)0===n[a][0]?(n[a][1].length<t&&(d||c)?(i[o++]=a,l=d,u=c,s=n[a][1]):(o=0,s=null),d=!1,c=!1):(-1===n[a][0]?c=!0:d=!0,s&&(l&&u&&d&&c||s.length<t/2&&3===function(...e){return e.reduce((e,t)=>e+ +!!t,0)}(l,u,d,c))&&(n.splice(i[o-1],0,[-1,s]),n[i[o-1]+1][0]=1,o--,s=null,l&&u?(d=!0,c=!0,o=0):(a=--o>0?i[o-1]:-1,d=!1,c=!1),r=!0)),a++;return r&&(n=xL(n)),n}(n=xw(n))),xY(e,n,xG(void 0))}if(e&&Array.isArray(e)&&typeof t>"u")return xY(xH(e),e,xG(void 0));if("string"==typeof e&&t&&Array.isArray(t))return xY(e,t,xG(void 0));throw Error("Unknown call format to make()")})(n,t.op.value).map(xQ).join("")}};return e.flatMap(e=>Cc(e.path,t.path)&&"diffMatchPatch"===e.op.type?[]:e).concat(r)}}return e.push(t),e},[])}function Cf(e,t,n,r){let i=t,o=r.map(t=>{let n=t.mutations.flatMap(t=>{if(Ca(t)!==e)return[];let n=i;return i=Cl(i,[t]),n&&"patch"===t.type?{type:"dmpified",mutation:{...t,dmpPatches:Ch(n,t.patches),original:t.patches}}:t});return{...t,mutations:n}}),s=n;return o.map(t=>{let n=[];return t.mutations.forEach(t=>{if("dmpified"===t.type)try{s=x6(t.mutation.dmpPatches,s),n.push(t)}catch{console.warn("Failed to apply dmp patch, falling back to original");try{s=x6(t.mutation.original,s),n.push(t)}catch(t){throw Error(`Failed to apply patch for document "${e}": ${t.message}`,{cause:t})}}else s=Cl(s,[t])})}),[r.map(t=>({...t,mutations:t.mutations.map(t=>"patch"!==t.type||Ca(t)!==e?t:{...t,patches:t.patches.map(e=>"set"!==e.op.type?e:{...e,op:{...e.op,value:x7(e.path,s)}})})})),s]}e.s(["uuid",0,Cs],77575);let Cp=["Value","Copy","Blank","ReturnIntoArray","ReturnIntoObject","ReturnIntoObjectSameKey","PushField","PushElement","PushParent","Pop","PushFieldCopy","PushFieldBlank","PushElementCopy","PushElementBlank","ReturnIntoObjectPop","ReturnIntoObjectSameKeyPop","ReturnIntoArrayPop","ObjectSetFieldValue","ObjectCopyField","ObjectDeleteField","ArrayAppendValue","ArrayAppendSlice","StringAppendString","StringAppendSlice"];class Cg{model;root;patch;i;inputStack;outputStack;constructor(e,t,n){this.model=e,this.root=t,this.patch=n,this.i=0,this.inputStack=[],this.outputStack=[]}read(){return this.patch[this.i++]}process(){for(this.inputStack.push({value:this.root}),this.outputStack.push({value:this.root});this.i<this.patch.length;){let e=this.read(),t=Cp[e];if(!t)throw Error(`Unknown opcode: ${e}`);this[`process${t}`].apply(this)}let e=this.outputStack.pop();return this.finalizeOutput(e)}inputEntry(){return this.inputStack[this.inputStack.length-1]}inputKey(e,t){return e.keys||(e.keys=this.model.objectGetKeys(e.value).sort()),e.keys[t]}outputEntry(){return this.outputStack[this.outputStack.length-1]}outputArray(){let e=this.outputEntry();return e.writeValue||(e.writeValue=this.model.copyArray(e.value)),e.writeValue}outputObject(){let e=this.outputEntry();return e.writeValue||(e.writeValue=this.model.copyObject(e.value)),e.writeValue}outputString(){let e=this.outputEntry();return e.writeValue||(e.writeValue=this.model.copyString(e.value)),e.writeValue}finalizeOutput(e){return e.writeValue?this.model.finalize(e.writeValue):e.value}processValue(){let e=this.model.wrap(this.read());this.outputStack.push({value:e})}processCopy(){let e=this.inputEntry();this.outputStack.push({value:e.value})}processBlank(){this.outputStack.push({value:null})}processReturnIntoArray(){let e=this.outputStack.pop(),t=this.finalizeOutput(e),n=this.outputArray();this.model.arrayAppendValue(n,t)}processReturnIntoObject(){let e=this.read(),t=this.outputStack.pop(),n=this.finalizeOutput(t);n=this.model.markChanged(n);let r=this.outputObject();this.model.objectSetField(r,e,n)}processReturnIntoObjectSameKey(){let e=this.inputEntry(),t=this.outputStack.pop(),n=this.finalizeOutput(t),r=this.outputObject();this.model.objectSetField(r,e.key,n)}processPushField(){let e=this.read(),t=this.inputEntry(),n=this.inputKey(t,e),r=this.model.objectGetField(t.value,n);this.inputStack.push({value:r,key:n})}processPushElement(){let e=this.read(),t=this.inputEntry(),n=this.model.arrayGetElement(t.value,e);this.inputStack.push({value:n})}processPop(){this.inputStack.pop()}processPushFieldCopy(){this.processPushField(),this.processCopy()}processPushFieldBlank(){this.processPushField(),this.processBlank()}processPushElementCopy(){this.processPushElement(),this.processCopy()}processPushElementBlank(){this.processPushElement(),this.processBlank()}processReturnIntoObjectPop(){this.processReturnIntoObject(),this.processPop()}processReturnIntoObjectSameKeyPop(){this.processReturnIntoObjectSameKey(),this.processPop()}processReturnIntoArrayPop(){this.processReturnIntoArray(),this.processPop()}processObjectSetFieldValue(){this.processValue(),this.processReturnIntoObject()}processObjectCopyField(){this.processPushField(),this.processCopy(),this.processReturnIntoObjectSameKey(),this.processPop()}processObjectDeleteField(){let e=this.read(),t=this.inputEntry(),n=this.inputKey(t,e),r=this.outputObject();this.model.objectDeleteField(r,n)}processArrayAppendValue(){let e=this.model.wrap(this.read()),t=this.outputArray();this.model.arrayAppendValue(t,e)}processArrayAppendSlice(){let e=this.read(),t=this.read(),n=this.outputArray(),r=this.inputEntry().value;this.model.arrayAppendSlice(n,r,e,t)}processStringAppendString(){let e=this.model.wrap(this.read()),t=this.outputString();this.model.stringAppendValue(t,e)}processStringAppendSlice(){let e=this.read(),t=this.read(),n=this.outputString(),r=this.inputEntry().value;this.model.stringAppendSlice(n,r,e,t)}}function Cm(e){return e>>16?4:e>>11?3:e>>7?2:1}function Cy(e,t,n=0){let r=n,i=0;for(i=n;r<t;i++){let t=Cm(e.codePointAt(i));4===t&&i++,r+=t}return i}class Cv{wrap(e){return e}finalize(e){return Array.isArray(e)?e:e.data}markChanged(e){return e}objectGetKeys(e){return Object.keys(e)}
1158objectGetField(e,t){return e[t]}arrayGetElement(e,t){return e[t]}copyObject(e){let t={type:"object",data:{}};if(null!==e)for(let[n,r]of Object.entries(e))t.data[n]=r;return t}copyArray(e){return null===e?[]:e.slice()}copyString(e){return{type:"string",data:null===e?"":e}}objectSetField(e,t,n){e.data[t]=n}objectDeleteField(e,t){delete e.data[t]}arrayAppendValue(e,t){e.push(t)}arrayAppendSlice(e,t,n,r){e.push(...t.slice(n,r))}stringAppendSlice(e,t,n,r){let i=Cy(t,n),o=Cy(t,r,i);e.data+=t.slice(i,o)}stringAppendValue(e,t){e.data+=t}}var Cw=e.i(77497),Cb=e.i(22249),Cx=e.i(27341),CC=e.i(72441),Ck=e.i(69450),Cj=e.i(90571),CM=e.i(29418),CL=1,CS={};function CE(e){return e in CS&&(delete CS[e],!0)}var CR=function(e){var t=CL++;return CS[t]=!0,S||(S=Promise.resolve()),S.then(function(){return CE(t)&&e()}),t},CV=function(e){CE(e)},C_={setImmediate:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=C_.delegate;return((null==n?void 0:n.setImmediate)||CR).apply(void 0,(0,Cj.__spreadArray)([],(0,Cj.__read)(e)))},clearImmediate:function(e){var t=C_.delegate;return((null==t?void 0:t.clearImmediate)||CV)(e)},delegate:void 0},C$=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r}return(0,Cj.__extends)(t,e),t.prototype.requestAsyncId=function(t,n,r){return(void 0===r&&(r=0),null!==r&&r>0)?e.prototype.requestAsyncId.call(this,t,n,r):(t.actions.push(this),t._scheduled||(t._scheduled=C_.setImmediate(t.flush.bind(t,void 0))))},t.prototype.recycleAsyncId=function(t,n,r){if(void 0===r&&(r=0),null!=r?r>0:this.delay>0)return e.prototype.recycleAsyncId.call(this,t,n,r);var i,o=t.actions;null!=n&&(null==(i=o[o.length-1])?void 0:i.id)!==n&&(C_.clearImmediate(n),t._scheduled===n&&(t._scheduled=void 0))},t}(CM.AsyncAction),CA=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,Cj.__extends)(t,e),t.prototype.flush=function(e){this._active=!0;var t,n=this._scheduled;this._scheduled=void 0;var r=this.actions;e=e||r.shift();do if(t=e.execute(e.state,e.delay))break;while((e=r[0])&&e.id===n&&r.shift())if(this._active=!1,t){for(;(e=r[0])&&e.id===n&&r.shift();)e.unsubscribe();throw t}},t}(e.i(96989).AsyncScheduler))(C$),CT=e.i(9820),CH=e.i(48876),CI=e.i(34388),CI=CI,CP=e.i(22834),CO=e.i(49253),CB=e.i(1328),CN=e.i(3871),CN=CN,CW=e.i(29122),Cz=e.i(18998);function CD(e){let t=e.listen('*[!(_id in path("_.**"))]',{},{events:["welcome","mutation","reconnect"],includeResult:!1,includePreviousRevision:!1,visibility:"transaction",effectFormat:"mendoza",includeMutations:!1}).pipe((0,Cw.share)({resetOnRefCountZero:!0})),n=t.pipe((0,Cb.filter)(e=>"reconnect"===e.type)),r=t.pipe((0,Cb.filter)(e=>"welcome"===e.type)),i=t.pipe((0,Cb.filter)(e=>"mutation"===e.type)),o=(0,b9.merge)(r,n).pipe((0,Cx.shareReplay)({bufferSize:1,refCount:!0})).pipe((0,Cb.filter)(e=>"welcome"===e.type));return(0,b9.merge)(o,i,n)}let CF=(0,CT.setup)({types:{},actions:{"assign error to context":(0,CO.assign)({error:({event:e})=>e}),"clear error from context":(0,CO.assign)({error:void 0}),"connect to server-sent events":(0,CW.raise)({type:"connect"}),"listen to server-sent events":(0,CN.b)("server-sent events",{id:"listener",input:({context:e})=>({listener:e.sharedListener||CD(e.client),id:e.id})}),"stop listening to server-sent events":(0,CB.stopChild)("listener"),"buffer remote mutation events":(0,CO.assign)({mutationEvents:({event:e,context:t})=>((0,CT.assertEvent)(e,"mutation"),[...t.mutationEvents,e])}),"restore stashed changes":(0,CO.assign)({stagedChanges:({event:e,context:t})=>((0,CT.assertEvent)(e,"xstate.done.actor.submitTransactions"),t.stashedChanges),stashedChanges:[]}),"rebase fetched remote snapshot":(0,CP.enqueueActions)(({enqueue:e})=>{e.assign(({event:e,context:t})=>{(0,CT.assertEvent)(e,"xstate.done.actor.getDocument");let n=t.remote,r=e.output,i=!1;for(let e of t.mutationEvents)e.effects?.apply&&(e.previousRev||"appear"===e.transition)&&(i||e.previousRev!==r?._rev||(i=!0),i&&(r=CZ(r,e.effects.apply,e.resultRev)));t.cache&&(!t.cache.has(t.id)||t.cache.get(t.id)._rev!==r?._rev)&&t.cache.set(t.i
1158d,r);let[o,s]=Cf(t.id,null===n?void 0:n,null===r?void 0:r,t.stagedChanges);return{remote:r,local:s,stagedChanges:o,mutationEvents:[]}}),e.sendParent(({context:e})=>({type:"rebased.remote",id:e.id,document:e.remote}))}),"apply mendoza patch":(0,CO.assign)(({event:e,context:t})=>{(0,CT.assertEvent)(e,"mutation");let n=t.remote;if(e.transactionId===n?._rev)return{};let r=CZ(n,e.effects.apply,e.resultRev);t.cache&&(!t.cache.has(t.id)||t.cache.get(t.id)._rev!==r?._rev)&&t.cache.set(t.id,r);let[i,o]=Cf(t.id,null===n?void 0:n,null===r?void 0:r,t.stagedChanges);return{remote:r,local:o,stagedChanges:i}}),"increment fetch attempts":(0,CO.assign)({fetchRemoteSnapshotAttempts:({context:e})=>e.fetchRemoteSnapshotAttempts+1}),"reset fetch attempts":(0,CO.assign)({fetchRemoteSnapshotAttempts:0}),"increment submit attempts":(0,CO.assign)({submitTransactionsAttempts:({context:e})=>e.submitTransactionsAttempts+1}),"reset submit attempts":(0,CO.assign)({submitTransactionsAttempts:0}),"stage mutation":(0,CO.assign)({stagedChanges:({event:e,context:t})=>((0,CT.assertEvent)(e,"mutate"),[...t.stagedChanges,{transaction:!1,mutations:e.mutations}])}),"stash mutation":(0,CO.assign)({stashedChanges:({event:e,context:t})=>((0,CT.assertEvent)(e,"mutate"),[...t.stashedChanges,{transaction:!1,mutations:e.mutations}])}),"rebase local snapshot":(0,CP.enqueueActions)(({enqueue:e})=>{e.assign({local:({event:e,context:t})=>{var n;(0,CT.assertEvent)(e,"mutate");let r=new Map;return t.local&&r.set(t.id,t.local),n=function(e,t){let n=Object.create(null);for(let r of e){let e=Ca(r);if(!e)throw Error("Unable to get document id from mutation");let i=n[e]?.after||t.get(e),o=Cu(i,r);if("error"===o.status)throw Error(o.message);"noop"!==o.status&&("updated"===o.status||"created"===o.status||"deleted"===o.status)&&(e in n||(n[e]={before:i,after:void 0,muts:[]}),t.set(e,o.after),n[e].after=o.after,n[e].muts.push(r))}return Object.entries(n).map(([e,{before:t,after:n,muts:r}])=>({id:e,status:n?t?"updated":"created":"deleted",mutations:r,before:t,after:n}))}(e.mutations,r),n.forEach(e=>{("created"===e.status||"updated"===e.status)&&r.set(e.id,e.after),"deleted"===e.status&&r.delete(e.id)}),r.get(t.id)}}),e.sendParent(({context:e})=>({type:"rebased.local",id:e.id,document:e.local}))}),"send pristine event to parent":(0,CI.b)(({context:e})=>({type:"pristine",id:e.id})),"send sync event to parent":(0,CI.b)(({context:e})=>({type:"sync",id:e.id,document:e.remote})),"send mutation event to parent":(0,CI.b)(({context:e,event:t})=>((0,CT.assertEvent)(t,"mutation"),{type:"mutation",id:e.id,previousRev:t.previousRev,resultRev:t.resultRev,effects:t.effects}))},actors:{"server-sent events":(0,CH.fromEventObservable)(({input:e})=>{let{listener:t,id:n}=e;return(0,CC.defer)(()=>t).pipe((0,Cb.filter)(e=>"welcome"===e.type||"reconnect"===e.type||"mutation"===e.type&&e.documentId===n),(0,Ck.observeOn)(CA))}),"fetch remote snapshot":(0,CH.fromPromise)(async({input:e,signal:t})=>{let{client:n,id:r}=e;return await n.getDocument(r,{signal:t}).catch(e=>{if(!(e instanceof Error&&"AbortError"===e.name))throw e})}),"submit mutations as transactions":(0,CH.fromPromise)(async({input:e,signal:t})=>{let{client:n,transactions:r}=e;for(let e of r){if(t.aborted)return;await n.dataRequest("mutate",(0,Cz.encodeTransaction)(e),{visibility:"async",returnDocuments:!1,signal:t}).catch(e=>{if(!(e instanceof Error&&"AbortError"===e.name))throw e})}})},delays:{fetchRemoteSnapshotTimeout:({context:e})=>1e3*Math.pow(2,e.fetchRemoteSnapshotAttempts),submitTransactionsTimeout:({context:e})=>1e3*Math.pow(2,e.submitTransactionsAttempts)}}).createMachine({id:"document-mutator",context:({input:e})=>({client:e.client.withConfig({allowReconfigure:!1}),sharedListener:e.sharedListener,id:e.id,remote:void 0,local:void 0,mutationEvents:[],stagedChanges:[],stashedChanges:[],error:void 0,fetchRemoteSnapshotAttempts:0,submitTransactionsAttempts:0,cache:e.cache}),entry:["connect to server-sent events"],on:{mutate:{actions:["rebase local snapshot","stage mutation"]}},initial:"disconnected",states:{disconnected:{on:{connect:{target:"connecting",actions:["listen to server-sent events"]}}},connecting:{on:{welcome:"connected",reconnect:"reconnecting",error:"connectFailure"},tags:["busy"]},connectFailure:{on:{connect:{target:"connecting",actions:["listen to server-sent events"]}},entry:["stop listening to server-sent events","assign error to context"],exit:["clear error from context"],tags:["error"]},reconnecting:{on:{welcome:{target:"connected"},error:{target:"connectFailure"}},tags:["busy","error"]},connected:{on:{mutation:{actions:["buffer remote mutation events"]},reconnect:"reconnecting"},entry:["clear error from context"],initial:"loading",states:{loading:{invoke:{src:"fetch remote snapshot",id:"getDocument",input:({context:e})=>({client:e.client,id:e.id}),onError:{target:"loadFailure"},onDone:{target:"loaded",actions:["rebase fetched remote snapshot","reset fetch attempts"]}},tags:["busy"]},loaded:{entry:["send sync event to parent"],on:{mutation:{actions:["apply mendoza patch","send mutation event to parent"]}},initial:"pristine",states:{pristine:{on:{mutate:{actions:["rebase local snapshot","stage mutation"],target:"dirty"}},tags:["ready"]},dirty:{on:{submit:"submitting"},tags:["ready"]},submitting:{on:{mutate:{actions:["rebase local snapshot","stash mutation"]}},invoke:{src:"submit mutations as transactions",id:"submitTransactions",input:({context:e})=>{var t,n;let r,i,o=new Map;return o.set(e.id,e.remote),{client:e.client,transactions:(t=e.stagedChanges,n=e=>
1158!e.transaction,r=[],i=[],t.forEach(e=>{n(e)?i.push(e):(i.length>0&&r.push(i),i=[],r.push([e]))}),i.length>0&&r.push(i),r).flatMap(e=>({...e[0],mutations:e.flatMap(e=>e.mutations)})).map(e=>{var t;return{...e,mutations:(t=e.mutations,Object.values((0,b7.default)(t,Ca)).flatMap(e=>{var t,n;return(0===(n=0===(t=e).length?t:t.reduce((e,t)=>"delete"===t.type?[t]:(e.push(t),e),[])).length?n:n.reduce((e,t)=>("createIfNotExists"!==t.type?e.push(t):Cd(e,e=>"delete"===e.type).find(e=>"createIfNotExists"===e.type)||e.push(t),e),[])).flat().reduce((e,t)=>{let n=e[e.length-1];return n&&"patch"!==n.type||"patch"!==t.type?e.concat(t):e.slice(0,-1).concat({...t,patches:(n?.patches||[]).concat(t.patches)})},[])}))}}).map(e=>({...e,mutations:e.mutations.map(e=>"patch"!==e.type?e:{...e,patches:e.patches.reduce((e,t)=>{if("unset"!==t.op.type)return e.push(t),e;let n=e.filter(e=>!(0,xe.startsWith)(t.path,e.path));return n.push(t),n},[]).reduceRight((e,t)=>(e.find(e=>{var n,r;return n=e.op,("set"===(r=t.op).type||"unset"===r.type)&&("set"===n.type||"unset"===n.type)&&Cc(e.path,t.path)})||e.unshift(t),e),[]).reduce((e,t)=>("setIfMissing"!==t.op.type?e.push(t):Cd(e,e=>"unset"===e.op.type).find(e=>"setIfMissing"===e.op.type&&Cc(e.path,t.path))||e.push(t),e),[])})})).map(e=>{var t;return{...e,mutations:(t=o,e.mutations.map((e,n)=>{var r,i;if("patch"!==e.type)return e;let o=t.get(e.id);return o?(r=o,{...i=e,patches:Ch(r,i.patches)}):e}))}}).map(e=>e.transaction&&void 0!==e.id?{id:e.id,mutations:e.mutations}:{id:Cs(),mutations:e.mutations})}},onError:{target:"submitFailure"},onDone:{target:"pristine",actions:["restore stashed changes","reset submit attempts","send pristine event to parent"]}},tags:["busy","ready"]},submitFailure:{exit:["clear error from context"],after:{submitTransactionsTimeout:{actions:["increment submit attempts"],target:"submitting"}},on:{retry:"submitting"},tags:["error","ready"]}}},loadFailure:{exit:["clear error from context"],after:{fetchRemoteSnapshotTimeout:{actions:["increment fetch attempts"],target:"loading"}},on:{retry:"loading"},tags:["error"]}}}}});function CZ(e,t,n){var r;let i=(r=function(e){if(!e)return null;let{_rev:t,...n}=e;return n}(e),new Cg(new Cv,r,t).process());return i?Object.assign(i,{_rev:n}):null}var CU=e.i(49520);let Cq=e=>{let t=(0,CH.fromPromise)(async({input:t,signal:n})=>{let{id:r}=t,{snapshot:i}=await e.fetch("visual-editing/fetch-snapshot",{documentId:r},{signal:n});return i}),n=(0,CH.fromPromise)(async({input:t})=>{let{transactions:n}=t;for(let t of n){let n=v_.SanityEncoder.encodeTransaction(t);return e.post("visual-editing/mutate",n)}});return CF.provide({actions:{"send sync event to parent":(0,CP.enqueueActions)(({enqueue:e})=>{e.sendParent(({context:e})=>({type:"sync",id:e.id,document:e.remote})),e.emit(({context:e})=>({type:"ready",snapshot:e.local}))})},actors:{"fetch remote snapshot":t,"submit mutations as transactions":n}})},CG=(0,CT.setup)({types:{},actions:{"emit sync event":(0,CU.emit)(({event:e})=>((0,CT.assertEvent)(e,"sync"),e)),"emit mutation event":(0,CU.emit)(({event:e})=>((0,CT.assertEvent)(e,"mutation"),e)),"emit rebased event":(0,CU.emit)(({event:e})=>((0,CT.assertEvent)(e,["rebased.local","rebased.remote"]),e)),"emit pristine event":(0,CU.emit)(({event:e})=>((0,CT.assertEvent)(e,["pristine"]),e)),"add document actor":(0,CO.assign)({documents:({context:e,event:t,spawn:n})=>{(0,CT.assertEvent)(t,"observe");let r=t.documentId;return e.documents[r]?e.documents:{...e.documents,[r]:n("documentMutatorMachine",{input
1158:{id:r,client:e.client,sharedListener:e.sharedListener||CD(e.client)},id:r})}}}),"stop remote snapshot":(0,CB.stopChild)(({context:e,event:t})=>((0,CT.assertEvent)(t,"unobserve"),e.documents[t.documentId])),"remove remote snapshot from context":(0,CO.assign)({documents:({context:e,event:t})=>{if((0,CT.assertEvent)(t,"unobserve"),!e.documents[t.documentId])return e.documents;let{[t.documentId]:n,...r}=e.documents;return r}})},actors:{documentMutatorMachine:CF}}).createMachine({id:"dataset-mutator",context:({input:e})=>({documents:{},client:e.client,sharedListener:e.sharedListener}),on:{sync:{actions:["emit sync event"]},mutation:{actions:["emit mutation event"]},"rebased.*":{actions:["emit rebased event"]},pristine:{actions:["emit pristine event"]},observe:{actions:["add document actor"]},unobserve:{actions:["stop remote snapshot","remove remote snapshot from context"]}},initial:"pristine",states:{pristine:{}}}),CY=e=>CG.provide({actors:{documentMutatorMachine:Cq(e)}});e.s(["createDatasetMutator",0,CY,"createDocumentMutator",0,Cq],33524);let CX=new Set,CK=null;function CJ(e){if(CK!==e)for(let t of(CK=e,CX))t()}let CQ=e=>{let t,n,r,i,o=(0,R.c)(8),{comlink:s,history:a}=e;return o[0]!==s||o[1]!==a?(t=()=>s?.on("presentation/navigate",e=>{a?.update(e)}),n=[s,a],o[0]=s,o[1]=a,o[2]=t,o[3]=n):(t=o[2],n=o[3]),(0,_.useEffect)(t,n),o[4]!==s||o[5]!==a?(r=()=>{if(a)return a.subscribe(e=>{e.title=e.title||document.title,s?.post("visual-editing/navigate",e)})},i=[s,a],o[4]=s,o[5]=a,o[6]=r,o[7]=i):(r=o[6],i=o[7]),(0,_.useEffect)(r,i),null},C1=new Set,C0=null,C5=null,C2=null,C3=null,C4=new Set,C6=!1,C8=0;function C9(e){return C4.add(e),()=>C4.delete(e)}function C7(){return C6}let ke=e=>{let t,n,r=(0,R.c)(3),{comlink:i}=e;return r[0]!==i?(t=()=>{let e=()=>{i.post("visual-editing/meta",{title:document.title})},t=new MutationObserver(t=>{let[n]=t;"TITLE"===n.target.nodeName&&e()});return t.observe(document.head,{subtree:!0,characterData:!0,childList:!0}),e(),()=>t.disconnect()},n=[i],r[0]=i,r[1]=t,r[2]=n):(t=r[1],n=r[2]),(0,_.useEffect)(t,n),null};function kt(e){let t=new CustomEvent("sanity/dragEnd",{detail:e,cancelable:!0});window.dispatchEvent(t)}let kn=(0,_.createContext)(null);function kr(){let e=(0,_.useContext)(kn);if(!e)throw Error("Schema context is missing");return e}function ki(e,t,n,r){if(!e.type)throw Error("Node type is missing");return()=>t.patch(()=>(0,vR.getArrayInsertPatches)(e,n,r))}function ko(e){let{node:t,doc:n}=e;return n?[{type:"action",label:"Duplicate",icon:rz,action:function(e,t){if(!e.type)throw Error("Node type is missing");return()=>t.patch(async({getSnapshot:t})=>(0,vR.getArrayDuplicatePatches)(e,await t()))}(t,n),telemetryEvent:"Visual Editing Context Menu Item Duplicated"}]:[]}function ks(e){let{node:t,doc:n}=e;return n?[{type:"action",label:"Remove",icon:oL,action:function(e,t){if(!e.type)throw Error("Node type is missing");return()=>t.patch(async({getSnapshot:t})=>(0,vR.getArrayRemovePatches)(e,await t()))}(t,n),telemetryEvent:"Visual Editing Context Menu Item Removed"}]:[]}async function ka(e,t=!0){let{node:n,doc:r}=e;if(!r)return[];let i=[],o=[],[s,a,l,u]=await Promise.all([(0,vR.getArrayMovePatches)(n,r,"previous"),(0,vR.getArrayMovePatches)(n,r,"next"),(0,vR.getArrayMovePatches)(n,r,"first"),(0,vR.getArrayMovePatches)(n,r,"last")]);return l.length&&o.push({type:"action",label:"To top",icon:ox,action:()=>r.patch(l),telemetryEvent:"Visual Editing Context Menu Item Moved"}),s.length&&o.push({type:"action",label:"Up",icon:n8,action:()=>r.patch(s),telemetryEvent:"Visual Editing Context Menu Item Moved"}),a.length&&o.push({type:"action",label:"Down",icon:n2,action:()=>r.patch(a),telemetryEvent:"Visual Editing Context Menu Item Moved"}),u.length&&o.push({type:"action",label:"To bottom",icon:sb,action:()=>r.patch(u),telemetryEvent:"Visual Editing Context Menu Item Moved"}),o.length&&(i.push({type:"group",label:"Move",icon:oO,items:o}),t&&i.push({type:"divider"})),i}async function kl(e){let{node:t,field:n,doc:r}=e,i=[];return i.push(...ko(e)),i.push(...ks(e)),i.push(...await ka(e)),i.push({type:"action",label:"Insert before",icon:iZ,action:ki(t,r,n.name,"before"),telemetryEvent:"Visual Editing Context Menu Item Inserted"}),i.push({type:"action",label:"Insert after",icon:iU,action:ki(t,r,n.name,"after"),telemetryEvent:"Visual Editing Context Menu Item Inserted"}),i}let ku=e=>{let t,n,r,i,o,s=(0,R.c)(12),{label:a,parent:l,width:u,onSelect:d,boundaryElement:c}=e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(t=["left-start","right","left","right-end","left-end","bottom","top"],s[0]=t):t=s[0],s[1]===Symbol.for("react.memo_cache_sentinel")?(n=[4,4,4,4],s[1]=n):n=s[1],s[2]!==c||s[3]!==u?(r={arrow:!1,constrainSize:!0,floatingBoundary:c,padding:0,placement:"right-start",fallbackPlacements:t,preventOverflow:!0,width:u,__unstable_margins:n},s[2]=c,s[3]=u,s[4]=r):r=s[4],s[5]!==d||s[6]!==l?(i=(0,E.jsx)(w2,{node:l,onSelect:d}),s[5]=d,s[6]=l,s[7]=i):i=s[7],s[8]!==a||s[9]!==r||s[10]!==i?(o=(0,E.jsx)(vC,{fontSize:1,icon:iU,padding:2,popover:r,space
1158:2,text:a,children:i}),s[8]=a,s[9]=r,s[10]=i,s[11]=o):o=s[11],o};async function kd(e){let{doc:t,node:n,parent:r}=e,i=[];if(i.push(...ko(e)),i.push(...ks(e)),i.push(...await ka(e)),r.options?.insertMenu){let e=(r.options.insertMenu||{}).views?.some(e=>"grid"===e.name)?0:void 0;i.push({type:"custom",component:({boundaryElement:i,sendTelemetry:o})=>(0,E.jsx)(ku,{label:"Insert before",onSelect:e=>{ki(n,t,e.name,"before")(),o("Visual Editing Context Menu Item Inserted",null)},parent:r,width:e,boundaryElement:i})}),i.push({type:"custom",component:({boundaryElement:i,sendTelemetry:o})=>(0,E.jsx)(ku,{label:"Insert after",onSelect:e=>{ki(n,t,e.name,"after")(),o("Visual Editing Context Menu Item Inserted",null)},parent:r,width:e,boundaryElement:i})})}else i.push({type:"group",label:"Insert before",icon:iZ,items:r.of.filter(e=>"unionOption"===e.type).map(e=>({type:"action",icon:wZ(e),label:"block"===e.name?"Paragraph":e.title||e.name,action:ki(n,t,e.name,"before"),telemetryEvent:"Visual Editing Context Menu Item Inserted"}))}),i.push({type:"group",label:"Insert after",icon:iU,items:r.of.filter(e=>"unionOption"===e.type).map(e=>({type:"action",label:"block"===e.name?"Paragraph":e.title||e.name,icon:wZ(e),action:ki(n,t,e.name,"after"),telemetryEvent:"Visual Editing Context Menu Item Inserted"}))});return i}let kc=[-4,4,-4,4];function kh(e){let t,n=(0,R.c)(27),{node:r,onDismiss:i,boundaryElement:o}=e,s=w0();n[0]!==r||n[1]!==i||n[2]!==s?(t=()=>{"action"===r.type&&(r.action?.(),i?.(),r.telemetryEvent&&s(r.telemetryEvent,null))},n[0]=r,n[1]=i,n[2]=s,n[3]=t):t=n[3];let a=t;if("divider"===r.type){let e;return n[4]===Symbol.for("react.memo_cache_sentinel")?(e=(0,E.jsx)(vw,{}),n[4]=e):e=n[4],e}if("action"===r.type){let e,t=!r.action;return n[5]!==r.hotkeys||n[6]!==r.icon||n[7]!==r.label||n[8]!==a||n[9]!==t?(e=(0,E.jsx)(vk,{fontSize:1,hotkeys:r.hotkeys,icon:r.icon,padding:2,space:2,text:r.label,disabled:t,onClick:a}),n[5]=r.hotkeys,n[6]=r.icon,n[7]=r.label,n[8]=a,n[9]=t,n[10]=e):e=n[10],e}if("group"===r.type){let e,t,s,a=r.icon;n[11]===Symbol.for("react.memo_cache_sentinel")?(e={arrow:!1,constrainSize:!0,placement:"right-start",fallbackPlacements:["left-start","right","left","right-end","left-end","bottom","top"],preventOverflow:!0,__unstable_margins:kc},n[11]=e):e=n[11];let l=r.label;if(n[12]!==o||n[13]!==r.items||n[14]!==i){let e;n[16]!==o||n[17]!==i?(e=(e,t)=>(0,E.jsx)(kh,{node:e,onDismiss:i,boundaryElement:o},t),n[16]=o,n[17]=i,n[18]=e):e=n[18],t=r.items.map(e),n[12]=o,n[13]=r.items,n[14]=i,n[15]=t}else t=n[15];return n[19]!==r.icon||n[20]!==r.label||n[21]!==t?(s=(0,E.jsx)(vC,{fontSize:1,icon:a,padding:2,popover:e,space:2,text:l,children:t}),n[19]=r.icon,n[20]=r.label,n[21]=t,n[22]=s):s=n[22],s}if("custom"===r.type){let e,{component:t}=r;return n[23]!==t||n[24]!==o||n[25]!==s?(e=(0,E.jsx)(t,{boundaryElement:o,sendTelemetry:s}),n[23]=t,n[24]=o,n[25]=s,n[26]=e):e=n[26],e}return null}let kf=e=>{let t,n,r,i,o,s,a,l,u,d,c,h,f,p,g,m=(0,R.c)(43),{node:y,onDismiss:v,position:w}=e,{x:b,y:x}=w,[C,k]=(0,_.useState)(null),{getField:j}=kr(),{getDocument:M}=(0,vR.useDocuments)();m[0]!==j||m[1]!==y?(t=j(y),m[0]=j,m[1]=y,m[2]=t):t=m[2];let{field:L,parent:S}=t,V=L?.title||L?.name||"Unknown type",[$,A]=(0,_.useState)(void 0);m[3]!==L||m[4]!==M||m[5]!==y||m[6]!==S?(n=()=>{(async()=>{let e=M(y.id);e&&A(await function(e){let{node:t,field:n,parent:r,doc:i}=e;return n?.type==="arrayItem"?kl({node:t,field:n,doc:i}):r?.type==="union"?kd({node:t,parent:r,doc:i}):Promise.resolve([])}({node:y,field:L,parent:S,doc:e}))})()},r=[L,y,S,M],m[3]=L,m[4]=M,m[5]=y,m[6]=S,m[7]=n,m[8]=r):(n=m[7],r=m[8]),(0,_.useEffect)(n,r),m[9]!==b||m[10]!==x?(i={getBoundingClientRect:()=>({bottom:x,left:b,right:b,top:x,width:0,height:0})},m[9]=b,m[10]=x,m[11]=i):i=m[11];let T=i;m[12]!==L?(o=wZ(L),m[12]=L,m[13]=o):o=m[13];let H=o;m[14]===Symbol.for("react.memo_cache_sentinel")?(s={minWidth:120,maxWidth:160},m[14]=s):s=m[14],m[15]!==H||m[16]!==$?(a=(0,E.jsx)(mu,{flex:"none",children:$?(0,E.jsx)(mc,{size:1,children:H}):(0,E.jsx)(my,{size:1})}),m[15]=H,m[16]=$,m[17]=a):a=m[17];let I=$?V:"Loading...";m[18]!==I?(l=(0,E.jsx)(yz,{flex:1,space:2,children:(0,E.jsx)(mc,{size:1,weight:"semibold",children:I})}),m[18]=I,m[19]=l):l=m[19],m[20]!==a||m[21]!==l?(u=(0,E.jsxs)(mp,{gap:2,padding:2,children:[a,l]}),m[20]=a,m[21]=l,m[22]=u):u=m[22],m[23]!==C||m[24]!==$||m[25]!==v?(d=$&&(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(vw,{}),$.map((e,t)=>(0,E.jsx)(kh,{node:e,onDismiss:v,boundaryElement:C},t))]}),m[23]=C,m[24]=$,m[25]=v,m[26]=d):d=m[26],m[27]!==u||m[28]!==d?(c=(0,E.jsxs)(vv,{style:s,children:[u,d]}),m[27]=u,m[28]=d,m[29]=c):c=m[29];let P=`${b}-${x}`;return m[30]!==b||m[31]!==x?(h={position:"absolute",left:b,top:x},m[30]=b,m[31]=x,m[32]=h):h=m[32],m[33]!==P||m[34]!==h?(f=(0,E.jsx)("div",{style:h},P),m[33]=P,m[34]=h,m[35]=f):f=m[35],m[36]!==T||m[37]!==c||m[38]!==f?(p=(0,E.jsx)(y_,{__unstable_margins:kc,arrow:!1,open:!0,placement:"right-start",referenceElement:T,content:c,children:f}),m[36]=T,m[37]=c,m[38]=f,m[39]=p):p=m[39],m[40]!==v||m[41]!==p?(g=(0,E.jsx)(wY,{setBoundaryElement:k,onDismiss:v,children:p}),m[40]=v,m[41]=p,m[42]=g):g=m[42],g},kp=(0,_.createContext)(null),kg=nF(mj).withConfig({displayName:"Root",componentId:"sc-e95gnt-0"})`background-color:var(--overlay-bg);border-radius:3px;pointer-events:none;position:absolute;will-change:transform;
1158box-shadow:var(--overlay-box-shadow);transition:none;--overlay-bg:transparent;--overlay-box-shadow:inset 0 0 0 1px transparent;[data-overlays] &{--overlay-bg:color-mix(in srgb,transparent 95%,var(--card-focus-ring-color));--overlay-box-shadow:inset 0 0 0 2px color-mix(in srgb,transparent 50%,var(--card-focus-ring-color));}[data-fading-out] &{transition:box-shadow 1550ms,background-color 1550ms;--overlay-bg:rgba(0,0,255,0);--overlay-box-shadow:inset 0 0 0 1px transparent;}&[data-focused]{--overlay-box-shadow:inset 0 0 0 1px var(--card-focus-ring-color);}&[data-hovered]:not([data-focused]){transition:none;--overlay-box-shadow:inset 0 0 0 2px var(--card-focus-ring-color);}:link{text-decoration:none;}`,km=nF(mp).withConfig({displayName:"Actions",componentId:"sc-e95gnt-1"})`bottom:100%;cursor:pointer;pointer-events:none;position:absolute;right:0;[data-hovered]:not([data-menu-open]) &{pointer-events:all;}[data-flipped] &{bottom:auto;top:100%;}`,ky=nF(mp).withConfig({displayName:"HUD",componentId:"sc-e95gnt-2"})`top:100%;cursor:pointer;pointer-events:none;position:absolute;left:0;gap:4px;padding:4px 0;flex-wrap:wrap;[data-hovered]:not([data-menu-open]) &{pointer-events:all;}[data-flipped] &{top:calc(100% + 2rem);}`,kv=nF(mp).withConfig({displayName:"MenuWrapper",componentId:"sc-e95gnt-3"})`margin:-0.5rem;[data-hovered]:not([data-menu-open]) &{pointer-events:all;}`,kw=nF(mp).withConfig({displayName:"Tab",componentId:"sc-e95gnt-4"})`bottom:100%;cursor:pointer;pointer-events:none;position:absolute;left:0;[data-hovered]:not([data-menu-open]) &{pointer-events:all;}[data-flipped] &{bottom:auto;top:100%;}`,kb=nF(mj).withConfig({displayName:"ActionOpen",componentId:"sc-e95gnt-5"})`cursor:pointer;background-color:var(--card-focus-ring-color);right:0;border-radius:3px;& [data-ui='Text']{color:#fff;white-space:nowrap;}`,kx=nF(mp).withConfig({displayName:"Labels",componentId:"sc-e95gnt-6"})`display:flex;align-items:center;background-color:var(--card-focus-ring-color);right:0;border-radius:3px;& [data-ui='Text'],& [data-sanity-icon]{color:#fff;white-space:nowrap;}`,kC=nF.div.withConfig({displayName:"ExclusivePluginContainer",componentId:"sc-e95gnt-7"})`position:absolute;inset:0;pointer-events:all;`,kk=e=>{let t,n,r,i,o,s,a,l,u,d,c,h,f,p,g,m,y,v=(0,R.c)(60),{id:w,element:b,focused:x,componentResolver:C,node:k,showActions:j,draggable:M,targets:L,elementType:S,comlink:V,onActivateExclusivePlugin:$,onMenuOpenChange:T,inFrame:H}=e,{getField:I,getType:P}=kr();v[0]!==P||v[1]!==k?(t=P(k),v[0]=P,v[1]=k,v[2]=t):t=v[2];let O=t;v[3]!==k?(n="path"in k?function(e){let{id:t,type:n,path:r,baseUrl:i,tool:o,workspace:s,perspective:a}=e,[l,u]=(0,A.createEditUrl)({baseUrl:i,workspace:s,tool:o,type:n,id:t,path:r?(0,bX.pathToUrlString)(A.studioPath.fromString(r)):[]}).split("?"),d=new URLSearchParams(u),c=a||d.get("perspective");return"drafts"===c?d.delete("perspective"):c&&d.set("perspective",c),`${l}?${d}`}(k):k.href,v[3]=k,v[4]=n):n=v[4];let B=n,N=function(){let e=(0,_.useContext)(kp);if(!e)throw Error("Preview Snapshots context is missing");return e}();t:{let e;if(!("path"in k)){r=void 0;break t}v[5]!==k||v[6]!==N?(e=N.find(e=>e._id===k.id)?.title,v[5]=k,v[6]=N,v[7]=e):e=v[7],r=e}let W=r;v[8]!==b||v[9]!==x||v[10]!==I||v[11]!==P?(i=function(e,t){let n=P(e),{field:r,parent:i}=I(e);if(!("id"in e)||!r||!n)return;let o=r.value.type;return{document:n,element:b,targetElement:t||b,field:r,focused:!!x,node:e,parent:i,type:o}},v[8]=b,v[9]=x,v[10]=I,v[11]=P,v[12]=i):i=v[12];let z=i;if(v[13]!==S||v[14]!==z||v[15]!==k?(o="element"===S?z(k):void 0,v[13]=S,v[14]=z,v[15]=k,v[16]=o):o=v[16],v[17]!==z||v[18]!==L){let e;v[20]!==z?(e=e=>z(e.sanity,e.element),v[20]=z,v[21]=e):e=v[21],s=L.map(e).filter(kS),v[17]=z,v[18]=L,v[19]=s}else s=v[19];v[22]!==o||v[23]!==s?(a={legacyComponentContext:o,pluginContexts:s},v[22]=o,v[23]=s,v[24]=a):a=v[24];let D=a,F=function(e,t){let n,r=(0,R.c)(3);if(r[0]!==e||r[1]!==t){t:{if(!e){n=void 0;break t}let r=t?.(e);if(!r){n=void 0;break t}if((0,_.isValidElement)(r)){n=r;break t}n=(Array.isArray(r)?r:[r]).map(kM)}r[0]=e,r[1]=t,r[2]=n}else n=r[2];return n}(D.legacyComponentContext,C),Z=function(e,t){let n,r=(0,R.c)(5);if(r[0]!==e||r[1]!==t){let i;r[3]!==t?(i=e=>{let n={id:(0,vV.v4)(),context:e,hud:[],exclusive:[]};return t?.forEach(t=>{t.guard?.(e)&&("hud"===t.type&&n.hud.push(t),"exclusive"===t.type&&n.exclusive.push(t))}),n},r[3]=t,r[4]=i):i=r[4],n=e.map(i),r[0]=e,r[1]=t,r[2]=n}else n=r[2];return n}(D.pluginContexts,e.plugins);v[25]!==O?(l=O?.icon?(0,E.jsx)("div",{dangerouslySetInnerHTML:{__html:O.icon}}):(0,E.jsx)(rX,{}),v[25]=O,v[26]=l):l=v[26];let U=l,q=(0,_.useId)();v[27]!==Z?(u=Z?.some(kE),v[27]=Z,v[28]=u):u=v[28];let G=u||Z?.length>1;v[29]!==w?(d=()=>{window.dispatchEvent(new CustomEvent("sanity-overlay/label-click",{detail:{id:w}}))},v[29]=w,v[30]=d):d=v[30];let Y=d;return v[31]!==B||v[32]!==H||v[33]!==j?(c=j?(0,E.jsx)(km,{gap:1,paddingY:1,children:(0,E.jsx)(kL,{inFrame:H,href:B})}):null,v[31]=B,v[32]=H,v[33]=j,v[34]=c):c=v[34],v[35]!==V||v[36]!==M||v[37]!==Y||v[38]!==U||v[39]!==q||v[40]!==Z||v[41]!==$||v[42]!==T||v[43]!==G||v[44]!==W?(h=(W||G)&&(0,E.jsx)(kw,{gap:1,paddingY:1,onClick:Y,children:(0,E.jsxs)(kx,{gap:2,padding:2,children:[M&&(0,E.jsx)(mu,{marginRight:1,children:(0,E.jsx)(mc,{className:"drag-handle",size:0,children:(0,E.jsx)(it,{})})}),(0,E.jsx)(mc,{size:0,children:U}),W&&(0,E.jsx)(mc,{size:1,weight:"medium",children:W}),G&&(0,E.jsx)(mu,{paddingLeft:2,onClick:kR,children:(0,E.jsx)(kv,{children:(0,E.jsx)(bj,{id:q,popover:{animate:!0,placement:"bottom-start",constrainSize:!0,tone:"default"},onOpen:()=>{T?.(!0)},onClose:()=>{T?.(!1)}
1158,button:(0,E.jsx)(mC,{icon:il,tone:"primary",padding:2}),menu:(0,E.jsx)(vv,{paddingY:0,children:(0,E.jsx)(w6,{children:Z?.map((e,t)=>(0,E.jsxs)(_.Fragment,{children:[(0,E.jsxs)(yz,{role:"group",paddingY:1,space:0,children:[(0,E.jsx)(vk,{paddingY:2,text:(0,E.jsx)(mu,{paddingY:2,children:(0,E.jsx)(mc,{muted:!0,size:1,style:{textTransform:"capitalize"},children:`${e.context.document.name}: ${e.context.field?.name}`})}),onClick:()=>{e.context.node&&V?.post("visual-editing/focus",e.context.node)}}),e.exclusive.map(t=>t.component?(0,E.jsx)(vk,{paddingY:2,icon:t.icon||(0,E.jsx)(om,{}),text:(0,E.jsx)(mu,{paddingY:2,children:(0,E.jsx)(mc,{size:1,children:t.title||t.name})}),onClick:()=>$?.(t,e.context)},t.name):null)]}),t<Z.length-1&&(0,E.jsx)(vw,{})]},e.id))})})})})})]})}),v[35]=V,v[36]=M,v[37]=Y,v[38]=U,v[39]=q,v[40]=Z,v[41]=$,v[42]=T,v[43]=G,v[44]=W,v[45]=h):h=v[45],v[46]!==Z?(f=Z?.map(kV),v[46]=Z,v[47]=f):f=v[47],v[48]!==f?(p=(0,E.jsx)(ky,{children:f}),v[48]=f,v[49]=p):p=v[49],v[50]!==c||v[51]!==h||v[52]!==p?(g=(0,E.jsxs)(w6,{children:[c,h,p]}),v[50]=c,v[51]=h,v[52]=p,v[53]=g):g=v[53],v[54]!==F||v[55]!==D.legacyComponentContext?(m=Array.isArray(F)?F.map((e,t)=>{let{component:n,props:r}=e;return(0,E.jsx)(n,{PointerEvents:w6,...D.legacyComponentContext,...r},t)}):F,v[54]=F,v[55]=D.legacyComponentContext,v[56]=m):m=v[56],v[57]!==g||v[58]!==m?(y=(0,E.jsxs)(E.Fragment,{children:[g,m]}),v[57]=g,v[58]=m,v[59]=y):y=v[59],y},kj=(0,_.memo)(function(e){let t,n,r,i,o,s,a,l,u,d,c,h,f,p=(0,R.c)(39),{draggable:g,focused:m,hovered:y,rect:v,wasMaybeCollapsed:w,enableScrollIntoView:b,inFrame:x}=e,C=(0,_.useRef)(null),k=(0,_.useRef)(!1),j=`${v.w}px`,M=`${v.h}px`,L=`translate(${v.x}px, ${v.y}px)`;p[0]!==j||p[1]!==M||p[2]!==L?(t={width:j,height:M,transform:L},p[0]=j,p[1]=M,p[2]=L,p[3]=t):t=p[3];let S=t;p[4]!==b||p[5]!==m||p[6]!==w?(n=()=>{if(!k.current&&!w&&!0===m&&C.current&&b){let e=C.current;!function(e,t){let n;if(!e.isConnected||!(e=>{let t=e;for(;t&&t.parentNode;){if(t.parentNode===document)return!0;t=t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}return!1})(e))return;let r={top:parseFloat((n=window.getComputedStyle(e)).scrollMarginTop)||0,right:parseFloat(n.scrollMarginRight)||0,bottom:parseFloat(n.scrollMarginBottom)||0,left:parseFloat(n.scrollMarginLeft)||0};if("object"==typeof t&&"function"==typeof t.behavior)return t.behavior(b5(e,t));let i="boolean"==typeof t||null==t?void 0:t.behavior;for(let{el:n,top:o,left:s}of b5(e,!1===t?{block:"end",inline:"nearest"}:t===Object(t)&&0!==Object.keys(t).length?t:{block:"start",inline:"nearest"})){let e=o-r.top+r.bottom,t=s-r.left+r.right;n.scroll({top:e,left:t,behavior:i})}}(C.current,{behavior:t=>{0!==t.length&&e.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"})},scrollMode:"if-needed",block:"center",inline:"nearest"})}k.current=!0===m},r=[m,w,b],p[4]=b,p[5]=m,p[6]=w,p[7]=n,p[8]=r):(n=p[7],r=p[8]),(0,_.useEffect)(n,r);let[V,$]=(0,_.useState)(!1);p[9]!==y?(i=()=>{if(!C.current||!y)return;let e=new IntersectionObserver(e=>{let[t]=e;$(t.boundingClientRect.top<0)},{threshold:1});return e.observe(C.current),()=>e.disconnect()},p[9]=y,p[10]=i):i=p[10],p[11]!==y||p[12]!==V?(o=[y,V],p[11]=y,p[12]=V,p[13]=o):o=p[13],(0,_.useEffect)(i,o);let[A,T]=(0,_.useState)(null);p[14]===Symbol.for("react.memo_cache_sentinel")?(s=()=>{T(null),window.dispatchEvent(new CustomEvent("sanity-overlay/exclusive-plugin-closed"))},p[14]=s):s=p[14];let H=s;p[15]===Symbol.for("react.memo_cache_sentinel")?(a=(e,t)=>{T({plugin:e,context:t})},p[15]=a):a=p[15];let I=a,P=A?.plugin.component,[O,B]=(0,_.useState)(!1);p[16]===Symbol.for("react.memo_cache_sentinel")?(l=()=>{(0,_.startTransition)(()=>B(!1))},p[16]=l):l=p[16],p[17]!==y?(u=[y],p[17]=y,p[18]=u):u=p[18],(0,_.useEffect)(l,u),p[19]!==P||p[20]!==O?(d=O||P?(0,E.jsx)(wX,{onDismiss:H,blockScroll:O}):null,p[19]=P,p[20]=O,p[21]=d):d=p[21];let N=m?"":void 0,W=y?"":void 0,z=V?"":void 0,D=g?"":void 0,F=O?"":void 0;return p[22]!==P||p[23]!==A||p[24]!==y||p[25]!==x||p[26]!==e?(c=P?(0,E.jsx)(kC,{"data-sanity-overlay-element":!0,onClick:k_,children:(0,E.jsx)(P,{...A.context,closeExclusiveView:H})}):y?(0,E.jsx)(kk,{...e,inFrame:x,onActivateExclusivePlugin:I,onMenuOpenChange:B}):null,p[22]=P,p[23]=A,p[24]=y,p[25]=x,p[26]=e,p[27]=c):c=p[27],p[28]!==S||p[29]!==N||p[30]!==W||p[31]!==z||p[32]!==D||p[33]!==F||p[34]!==c?(h=(0,E.jsx)(kg,{"data-focused":N,"data-hovered":W,"data-flipped":z,"data-draggable":D,"data-menu-open":F,ref:C,style:S,children:c}),p[28]=S,p[29]=N,p[30]=W,p[31]=z,p[32]=D,p[33]=F,p[34]=c,p[35]=h):h=p[35],p[36]!==d||p[37]!==h?(f=(0,E.jsxs)(E.Fragment,{children:[d,h]}),p[36]=d,p[37]=h,p[38]=f):f=p[38],f});function kM(e){return"object"==typeof e&&"component"in e?e:{component:e,props:{}}}let kL=(0,_.memo)(function(e){let t,n,r,i=(0,R.c)(8),{inFrame:o}=e,s=(0,_.useSyncExternalStore)(k$,kA);i[0]!==e.href||i[1]!==s?(t=function e(t,n){try{let r=new URL(t,typeof location>"u"?void 0:location.origin);if(r.hash){let t=new URL(e(r.hash.slice(1),n));return`${r.origin}${r.pathname}${r.search}#${t.pathname}${t.search}`}return r.searchParams.set("preview",n),r.toString()}catch{return t}}(e.href,s),i[0]=e.href,i[1]=s,i[2]=t):t=i[2];let a=t,l=o?void 0:"_blank",u=o?"noopener":"noopener noreferrer";return i[3]===Symbol.for("react.memo_cache_sentinel")?(n=(0,E.jsx)(kb,{padding:2,children:(0,E.jsx)(mc,{size:1,weight:"medium",children:"Open in Studio"})}),i[3]=n):n=i[3],i[4]!==a||i[5]!==l||i[6]!==u?(r=(0,E.jsx)(mu,{as:"a",href:a,target:l,rel:u,children:n}),i[4]=a,i[5]=l,i[6]=u,i[7]=r):r=i[7],r});function kS(e){return void 0!==e}function kE(e){return e.exclusive.length>0}function kR(e){e.stopPropagation()}function kV(e){return(0,E.jsx)(_.Fragment,{children:e.hud.map(t=>{let n=t.component;return n?(0,E.jsx)(n,{...e.context},t.name):null})},e.id)}function k_(e){e.stopPropagation()}function k$(e){let t=()=>e();return window.addEventListener("popstate",t),()=>window.removeEventListener("popstate",t)}function kA(){return window.location.href}let kT=e=>{let t,n=(0,R.c)(5),{dragGroupRect:r}
1158=e,i=`${r.y}px`,o=`${r.x}px`,s=`${r.w-1}px`,a=`${r.h-1}px`;return n[0]!==i||n[1]!==o||n[2]!==s||n[3]!==a?(t=(0,E.jsx)("div",{style:{position:"absolute",top:i,left:o,width:s,height:a,border:"1px dashed #f0709b",pointerEvents:"none"}}),n[0]=i,n[1]=o,n[2]=s,n[3]=a,n[4]=t):t=n[4],t},kH=e=>{let t,n=(0,R.c)(4),{dragInsertPosition:r}=e;if(null===r)return;let i=r?.left||r?.right?"horizontal":"vertical",o=0,s=0,a=0,l=0;if("horizontal"===i){let{left:e,right:t}=r;if(a=6,t&&e){let n=e.rect.x+e.rect.w,r=t.rect.x,i=.0125*Math.min(t.rect.h,e.rect.h);o=.5*n+.5*r-3,s=e.rect.y+i,l=Math.min(t.rect.h,e.rect.h)-2*i}else if(t&&!e){let e=.0125*t.rect.h;o=t.rect.x-3,s=t.rect.y+e,l=t.rect.h-2*e}else if(e&&!t){let t=.0125*e.rect.h;o=e.rect.x+e.rect.w-3,s=e.rect.y+t,l=e.rect.h-2*t}}else{let{bottom:e,top:t}=r;if(e&&t){let n=Math.min(t.rect.x,e.rect.x),r=t.rect.y+t.rect.h,i=e.rect.y,u=.0125*Math.min(e.rect.w,t.rect.w);l=6,o=n+u,s=.5*r+.5*i-3,a=Math.max(e.rect.w,t.rect.w)-2*u}else if(e&&!t){let t=.0125*e.rect.w;o=e.rect.x+t,s=e.rect.y-3,a=e.rect.w-2*t,l=6}else if(t&&!e){let e=.0125*t.rect.w;o=t.rect.x+e,s=t.rect.y+t.rect.h-3,a=t.rect.w-2*e,l=6}}let u=`${a}px`,d=`${l}px`,c=`translate(${o}px, ${s}px)`;return n[0]!==u||n[1]!==d||n[2]!==c?(t=(0,E.jsx)("div",{style:{position:"absolute",width:u,height:d,transform:c,background:"#556bfc",border:"2px solid white",borderRadius:"999px",zIndex:"999999"}}),n[0]=u,n[1]=d,n[2]=c,n[3]=t):t=n[3],t},kI=nF.div.withConfig({displayName:"Root",componentId:"sc-1vb3dia-0"})`--drag-preview-opacity:0.98;--drag-preview-skeleton-stroke:#ffffff;@media (prefers-color-scheme:dark){--drag-preview-skeleton-stroke:#383d51;}position:fixed;display:grid;transform:${({$scaleFactor:e,$width:t,$height:n})=>`translate(calc(var(--drag-preview-x) - ${t/2}px), calc(var(--drag-preview-y) - ${n/2}px)) scale(${e})`};width:${({$width:e})=>`${e}px`};height:${({$height:e})=>`${e}px`};z-index:9999999;opacity:var(--drag-preview-opacity);cursor:move;.drag-preview-content-wrapper{position:relative;width:100%;height:100%;container-type:inline-size;}[data-ui='card']{position:relative;width:100%;height:100%;}.drag-preview-skeleton{position:absolute;inset:0;rect{stroke:var(--drag-preview-skeleton-stroke);}}.drag-preview-handle{position:absolute;top:4cqmin;left:4cqmin;width:6cqmin;fill:var(--drag-preview-handle-fill);}`,kP=e=>{var t,n;let r,i,o,s,a,l,u,d,c,h,f,p,g,m,y,v,w,b,x,C,k,j=(0,R.c)(50),{skeleton:M}=e,L=Math.min(M.maxWidth,window.innerWidth/2),S=M.w>L?L/M.w:1,V=M.offsetX*S,_=M.offsetY*S,$=mH(),A=gr(),T=A.radius[~~(n=(M.w-0)*((t=A.radius.length-2)-1)/1920+1,n<1?1:n>t?t:n)];if(j[0]!==V||j[1]!==_||j[2]!==$||j[3]!==T||j[4]!==S||j[5]!==M.childRects||j[6]!==M.h||j[7]!==M.w){let e=M.childRects.filter(kO),t=M.childRects.filter(kB);i=kI,s=M.w,a=M.h,l=V,u=_,d=S,r=mj,p=T,g=4,m="hidden",y="transparent",v=$?"dark":"light",f="drag-preview-content-wrapper",c="drag-preview-skeleton",h=`0 0 ${M.w} ${M.h}`,o=[...e,...t],j[0]=V,j[1]=_,j[2]=$,j[3]=T,j[4]=S,j[5]=M.childRects,j[6]=M.h,j[7]=M.w,j[8]=r,j[9]=i,j[10]=o,j[11]=s,j[12]=a,j[13]=l,j[14]=u,j[15]=d,j[16]=c,j[17]=h,j[18]=f,j[19]=p,j[20]=g,j[21]=m,j[22]=y,j[23]=v}else r=j[8],i=j[9],o=j[10],s=j[11],a=j[12],l=j[13],u=j[14],d=j[15],c=j[16],h=j[17],f=j[18],p=j[19],g=j[20],m=j[21],y=j[22],v=j[23];return j[24]!==o||j[25]!==A.color?(w=o.map((e,t)=>(0,E.jsx)("rect",{x:e.x,y:e.y,width:e.w,height:e.h,fill:A.color.skeleton.from},t)),j[24]=o,j[25]=A.color,j[26]=w):w=j[26],j[27]!==w||j[28]!==c||j[29]!==h?(b=(0,E.jsx)("svg",{className:c,viewBox:h,children:w}),j[27]=w,j[28]=c,j[29]=h,j[30]=b):b=j[30],j[31]!==b||j[32]!==f?(x=(0,E.jsx)("div",{className:f,children:b}),j[31]=b,j[32]=f,j[33]=x):x=j[33],j[34]!==r||j[35]!==x||j[36]!==p||j[37]!==g||j[38]!==m||j[39]!==y||j[40]!==v?(C=(0,E.jsx)(r,{radius:p,shadow:g,overflow:m,tone:y,scheme:v,children:x}),j[34]=r,j[35]=x,j[36]=p,j[37]=g,j[38]=m,j[39]=y,j[40]=v,j[41]=C):C=j[41],j[42]!==i||j[43]!==s||j[44]!==a||j[45]!==l||j[46]!==u||j[47]!==d||j[48]!==C?(k=(0,E.jsx)(i,{$width:s,$height:a,$offsetX:l,$offsetY:u,$scaleFactor:d,children:C}),j[42]=i,j[43]=s,j[44]=a,j[45]=l,j[46]=u,j[47]=d,j[48]=C,j[49]=k):k=j[49],k};function kO(e){return"IMG"===e.tagName}function kB(e){return"IMG"!==e.tagName}let kN=nF(mj).withConfig({displayName:"Root",componentId:"sc-1ys1jta-0"})`position:fixed;bottom:2rem;left:2rem;`,kW=()=>{let e,t,n=(0,R.c)(2);return n[0]===Symbol.for("react.memo_cache_sentinel")?(e={zIndex:"999999"},n[0]=e):e=n[0],n[1]===Symbol.for("react.memo_cache_sentinel")?(t=(0,E.jsx)(kN,{padding:2,shadow:2,radius:2,style:e,children:(0,E.jsxs)(mp,{align:"center",gap:2,children:[(0,E.jsx)(vc,{keys:["Shift"]}),(0,E.jsx)(mc,{size:1,children:"Zoom Out"}),(0,E.jsx)(iv,{})]})}),n[1]=t):t=n[1],t};function kz(e,t){let{type:n}=t,{contextMenu:r,focusPath:i,perspective:o,isDragging:s,dragInsertPosition:a,dragShowMinimap:l,dragShowMinimapPrompt:u,dragSkeleton:d,dragMinimapTransition:c,dragGroupRect:h}=e,f=!1;if("presentation/focus"===n){let n=e.focusPath;n!==(i=t.data.path)&&(f=n.slice(i.length).startsWith("["))}return"presentation/perspective"===n&&(o=t.data.perspective),"element/contextmenu"===n&&(r="sanity"in t?{node:t.sanity,position:t.position}:null),("element/click"===n||"element/mouseleave"===n||"overlay/blur"===n||"presentation/blur"===n||"presentation/focus"===n)&&(r=null),"overlay/dragUpdateInsertPosition"===n&&(a=t.insertPosition),"overlay/dragStart"===n&&(s=!0),"overlay/dragUpdateSkeleton"===t.type&&(d=t.skeleton),"overlay/dragEnd"===n&&(s=!1),"overlay/dragToggleMinimapPrompt"===t.type&&(u=t.display),"overlay/dragStartMinimapTransition"===n&&(c=!0),"overlay/dragEndMinimapTransition"===n&&(c=!1),"overlay/dragUpdateGroupRect"===n&&(h=t.groupRect),"overlay/dragToggleMinimap"===n&&(l=t.display),{...e,contextMenu:r,elements:((e,t)=>{let{type:n}=t;switch(n){case"element/register":return e.find(e=>e.id===t.id)?e:[...e,{id:t.id,activated:!1,element:t.element,focused:!1,hovered:!1,rect:t.rect,sanity:t.sanity,dragDisabled:t.dragDisabled,targets:t.targets,elementType:t.elementType}];case"element/activate":return e.map(e=>e.id===t.id?{...e,activated:!0}:e);case"element/update":return e.map(e=>e.id===t.id?{...e,sanity:t.sanity,rect:t.rect,targets:t.targets,elementType:t.elementType}:e);case"element/unregister":return e.filter(e=>e.id!==t.id);case"element/deactivate":return e.map(e=>e.id===t.id?{...e,activated:!1,hovered:!1}:e);case"element/mouseenter":return e.map(e=>e.id===t.id?{...e,rect:t.rect,hovered:!0}:{...e,hovered:!1});case"element/mouseleave":return e.map(e=>e.id===t.id?{...e,hovered:!1}:e);case"element/updateRect":return e.map(e=>e.id===t.id?{...e,rect:t.rect}:e);case"element/click":return e.map(e=>({...e,focused:e.id===t.id&&"clicked"}));case"overlay/reset-mouse-state":return e.map(e=>({...e,focused:!1,hovered:!1}));case"overlay/blur":return e.map(e=>({...e,focused:!1}));case"presentation/blur":return e.map(e=>({...e,focused:!1}));case"presentation/focus":{let n=e.find(e=>"clicked"===e.focused);return e.map(e=>
1158{let r="path"in e.sanity&&e.sanity.id===t.data.id&&e.sanity.path===t.data.path;return n&&e===n&&r?e:{...e,focused:r&&n?"duplicate":r}})}default:return e}})(e.elements,t),dragInsertPosition:a,dragSkeleton:d,dragGroupRect:h,isDragging:s,focusPath:i,perspective:o,wasMaybeCollapsed:f,dragShowMinimap:l,dragShowMinimapPrompt:u,dragMinimapTransition:c}}let kD=function(e){let t,n,r,i,o,s,a,l=(0,R.c)(13),{comlink:u,children:d}=e;l[0]===Symbol.for("react.memo_cache_sentinel")?(t=[],l[0]=t):t=l[0];let[c,h]=(0,_.useState)(t);l[1]!==u?(n=async e=>{if(u)try{let t=await u.fetch("visual-editing/preview-snapshots",void 0,{signal:e,suppressWarnings:!0});h(t.snapshots)}catch{}},l[1]=u,l[2]=n):n=l[2];let f=n;return l[3]!==u||l[4]!==f?(r=()=>{if(!u)return;let e=new AbortController,t=u.onStatus(()=>{f(e.signal)},"connected");return()=>{e.abort(),t()}},i=[u,f],l[3]=u,l[4]=f,l[5]=r,l[6]=i):(r=l[5],i=l[6]),(0,_.useEffect)(r,i),l[7]!==u?(o=()=>u?.on("presentation/preview-snapshots",e=>{h(e.snapshots)}),s=[u],l[7]=u,l[8]=o,l[9]=s):(o=l[8],s=l[9]),(0,_.useEffect)(o,s),l[10]!==d||l[11]!==c?(a=(0,E.jsx)(kp.Provider,{value:c,children:d}),l[10]=d,l[11]=c,l[12]=a):a=l[12],a};function kF(e){return"document"===e.type}function kZ(e){return"type"===e.type}let kU=function(e){let t,n,r,i,o,s,a,l,u,d,c,h=(0,R.c)(22),{comlink:f,children:p,elements:g}=e;h[0]===Symbol.for("react.memo_cache_sentinel")?(t=new Map,h[0]=t):t=h[0];let[m,y]=(0,_.useState)(t),[v,w]=(0,_.useState)(null);h[1]!==f?(n=()=>{if(!f)return;let e=async function(e){if(f)try{let t=await f.fetch("visual-editing/schema",void 0,{signal:e,suppressWarnings:!0});w(t.schema)}catch{}},t=new AbortController,n=f.onStatus(()=>{e(t.signal)},"connected");return()=>{t.abort(),n()}},r=[f],h[1]=f,h[2]=n,h[3]=r):(n=h[2],r=h[3]),(0,_.useEffect)(n,r),h[4]===Symbol.for("react.memo_cache_sentinel")?(i=[],h[4]=i):i=h[4];let b=(0,_.useRef)(i),x=(0,_.useDeferredValue)(g);h[5]!==x?(o=x.reduce((e,t)=>{let{sanity:n}=t;if(!("id"in n)||!n.path.includes("[_key=="))return e;let r=n.path.split(".").toReversed().reduce((e,t)=>e.length?[t,...e]:t.includes("[_key==")?[t]:[],[]).join(".");return e.find(e=>e.id===n.id&&e.path===r)||e.push({id:n.id,path:r}),e},[]),h[5]=x,h[6]=o):o=h[6];let C=o,k=(0,_.useRef)(null);h[7]!==f||h[8]!==C?(s=()=>{if(!C.length||!f)return;let e=async(e,t)=>{let n=b.current;try{b.current=e;let n=await f.fetch("visual-editing/schema-union-types",{paths:e},{signal:t,suppressWarnings:!0});if(t.aborted)return;y(n.types),k.current=null}catch{}t.aborted&&(b.current=n)};C.some(e=>!b.current.find(t=>{let{id:n,path:r}=t;return n===e.id&&r===e.path}))&&(k.current?.abort(),k.current=new AbortController,e(C,k.current.signal))},a=[f,C],h[7]=f,h[8]=C,h[9]=s,h[10]=a):(s=h[9],a=h[10]),(0,_.useEffect)(s,a),h[11]!==v?(l=(e,t)=>{if(!v||"string"!=typeof e&&(!("path"in e)||!Array.isArray(v)))return;let n="string"==typeof e?e:e.type;return v.filter("document"===(t||"document")?kF:kZ).find(e=>e.name===n)},h[11]=v,h[12]=l):l=h[12];let j=l;h[13]!==j||h[14]!==m?(u=e=>{if(!("path"in e))return{field:void 0,parent:void 0};let t=j(e);if(!t)return{field:void 0,parent:void 0};let n=e.path.split(".").flatMap(kq);try{return function t(n,r,i,o){let s=void 0===o?[]:o;if(!n)return{field:void 0,parent:void 0};let[a,...l]=r;if("fields"in n){let e=n.fields[a];if(!e&&"rest"in n)return t(n.rest,r,n,s);if(!l.length)return{field:e,parent:i};if(!e)throw Error(`[@sanity/visual-editing] No field could be resolved at path: "${[...s,...r].join(".")}"`);return t(e.value,l,n,[...s,a])}if("array"===n.type)return t(n.of,r,n,s);if("arrayItem"===n.type)return l.length?t(n.value,l,n,[...s,a]):{field:n,parent:i};if("union"===n.type){let r=a.startsWith("[_key==")?m?.get(e.id)?.get([s.join("."),a].filter(Boolean).join("")):a;return t(n.of.find(e=>"unionOption"===e.type?e.name===r:e),l,n,[...s,a])}if("unionOption"===n.type)return a?t(n.value,r,n,s):{field:n,parent:i};if("inline"===n.type)return t(j(n.name,"type").value,r,n,s);throw Error(`[@sanity/visual-editing] No field could be resolved at path: "${[...s,...r].join(".")}"`)}(t,n,void 0)}catch(e){return e instanceof Error&&console.warn(e.message),{field:void 0,parent:void 0}}},h[13]=j,h[14]=m,h[15]=u):u=h[15];let M=u;h[16]!==M||h[17]!==j?(d={getField:M,getType:j},h[16]=M,h[17]=j,h[18]=d):d=h[18];let L=d;return h[19]!==p||h[20]!==L?(c=(0,E.jsx)(kn.Provider,{value:L,children:p}),h[19]=p,h[20]=L,h[21]=c):c=h[21],c};function kq(e){return e.includes("[")?e.split(/(\[.+\])/,2):[e]}let kG=(l={},u=new Set,{getState:()=>l,setState:e=>
1158{l=e(l),u.forEach(e=>e())},subscribe:e=>(u.add(e),()=>u.delete(e))}),kY=e=>{let t,n,r,i,o,s,a=(0,R.c)(11),{comlink:l,children:u}=e;a[0]!==l?(t=()=>l?.on("presentation/shared-state",kX),n=[l],a[0]=l,a[1]=t,a[2]=n):(t=a[1],n=a[2]),(0,_.useEffect)(t,n),a[3]!==l?(r=()=>{(async function(){let e=await l?.fetch("visual-editing/shared-state",void 0,{suppressWarnings:!0});e&&kG.setState(()=>e.state)})().catch(kK)},i=[l],a[3]=l,a[4]=r,a[5]=i):(r=a[4],i=a[5]),(0,_.useEffect)(r,i),a[6]!==l?(o={comlink:l,store:kG},a[6]=l,a[7]=o):o=a[7];let d=o;return a[8]!==u||a[9]!==d?(s=(0,E.jsx)(vV.SharedStateContext.Provider,{value:d,children:u}),a[8]=u,a[9]=d,a[10]=s):s=a[10],s};function kX(e){"value"in e?kG.setState(t=>({...t,[e.key]:e.value})):kG.setState(t=>Object.fromEntries(Object.entries(t).filter(t=>{let[n]=t;return n!==e.key})))}function kK(e){console.debug(e),console.warn("[@sanity/visual-editing]: Failed to fetch shared state. Check your version of `sanity` is up-to-date")}let kJ=e=>{let t,n,r=(0,R.c)(5),{children:i,comlink:o}=e;r[0]!==o?(t=(e,t)=>{if(!o)return;let n=wQ[e];if(n)o.post("visual-editing/telemetry-log",{event:n,data:t});else throw Error(`Telemetry event: ${e} does not exist`)},r[0]=o,r[1]=t):t=r[1];let s=t;return r[2]!==i||r[3]!==s?(n=(0,E.jsx)(w1.Provider,{value:s,children:i}),r[2]=i,r[3]=s,r[4]=n):n=r[4],n};function kQ(){}function k1(e){return e.id}function k0(e){return!!e}function k5(e){let{sanity:t}=e;return t&&"id"in t?t:null}let k2=nF.div.withConfig({displayName:"Root",componentId:"sc-dwbgdv-0"})`background-color:transparent;direction:ltr;inset:0;pointer-events:none;position:absolute;width:100%;height:100%;z-index:${({$zIndex:e})=>e??"9999999"};`;function k3(e){let t,n;return t=requestAnimationFrame(()=>{n=requestAnimationFrame(e)}),()=>{void 0!==t&&cancelAnimationFrame(t),void 0!==n&&cancelAnimationFrame(n)}}let k4=e=>{let t,n,r,i,o,s=(0,R.c)(8),{documentIds:a}=e;s[0]===Symbol.for("react.memo_cache_sentinel")?(t=[],s[0]=t):t=s[0];let[l,u]=(0,_.useState)(t);s[1]!==a?(n=()=>{(0,_.startTransition)(()=>u(e=>{let t=Array.from(new Set(a));return e.length===t.length&&e.reduce(ju,t)?.length===0?e:t}))},r=[a],s[1]=a,s[2]=n,s[3]=r):(n=s[2],r=s[3]),(0,_.useEffect)(n,r);let d=(0,vR.useOptimisticActor)();return s[4]!==d||s[5]!==l?(i=()=>{for(let e of l)d.send({type:"observe",documentId:(0,A.getDraftId)(e)}),d.send({type:"observe",documentId:(0,A.getPublishedId)(e)});return()=>{for(let e of l)d.send({type:"unobserve",documentId:(0,A.getDraftId)(e)}),d.send({type:"unobserve",documentId:(0,A.getPublishedId)(e)})}},o=[d,l],s[4]=d,s[5]=l,s[6]=i,s[7]=o):(i=s[6],o=s[7]),(0,_.useEffect)(i,o),null},k6=e=>{var t;let n,r,i,o,s,a,l,u,d=(0,R.c)(12),{comlink:c,dispatch:h,inFrame:f,inPopUp:p,onDrag:g,overlayEnabled:m,rootElement:y}=e,{dispatchDragEndEvent:v}=function(){let e,t,n,r=(0,R.c)(4),{getDocument:i}=(0,vR.useDocuments)();return r[0]!==i?(e=()=>{let e=e=>{let{insertPosition:t,target:n,preventInsertDefault:r}=e.detail;if(r)return;let o=function(e){if(e){let{top:t,right:n,bottom:r,left:i}=e;if(i||t)return{node:(i??t).sanity,position:"after"};if(n||r)return{node:(n??r).sanity,position:"before"}}}(t);if(o){let e=i(n.id),{node:t,position:r}=o,{key:s,hasExplicitKey:a}=(0,vR.getArrayItemKeyAndParentPath)(n),{path:l,key:u}=(0,vR.getArrayItemKeyAndParentPath)(t);l&&u&&u!==s&&e.patch(async e=>{let{getSnapshot:t}=e,i=await t(),o=(0,vR.get)(i,n.path);return a?[(0,v_.at)(l,(0,v_.remove)({_key:s})),(0,v_.at)(l,(0,v_.insert)(o,r,{_key:u}))]:[(0,v_.at)(l,(0,v_.remove)(~~s)),(0,v_.at)(l,(0,v_.insert)(o,r,u>s?~~u-1:~~u))]})}};return window.addEventListener("sanity/dragEnd",e),()=>{window.removeEventListener("sanity/dragEnd",e)}},t=[i],r[0]=i,r[1]=e,r[2]=t):(e=r[1],t=r[2]),(0,_.useEffect)(e,t),r[3]===Symbol.for("react.memo_cache_sentinel")?(n={dispatchDragEndEvent:kt},r[3]=n):n=r[3],n}(),w=w0();d[0]!==c||d[1]!==h||d[2]!==v||d[3]!==g||d[4]!==w?(n=e=>{if("element/click"===e.type){let{sanity:t}=e;c?.post("visual-editing/focus",t),w("Visual Editing Overlay Clicked",null)}else if("overlay/activate"===e.type)c?.post("visual-editing/toggle",{enabled:!0});else if("overlay/deactivate"===e.type)c?.post("visual-editing/toggle",{enabled:!1});else if("overlay/dragEnd"===e.type){let{insertPosition:t,target:n,dragGroup:r,flow:i,preventInsertDefault:o}=e;v({insertPosition:t,target:n,dragGroup:r,flow:i,preventInsertDefault:o}),t&&w("Visual Editing Drag Sequence Completed",null)}else if("overlay/dragUpdateCursorPosition"===e.type)return void g(e.x,e.y);else if("overlay/dragToggleMinimap"===e.type&&!0===e.display)w("Visual Editing Drag Minimap Enabled",null);else if("overlay/setCursor"===e.type){let{element:t,cursor:n}=e;n?t.style.cursor=n:t.style.removeProperty("cursor")}h(e)},d[0]=c,d[1]=h,d[2]=v,d[3]=g,d[4]=w,d[5]=n):n=d[5];let b=(t=n,a=(0,R.c)(7),l=(0,_.useRef)(void 0),u=(0,vR.useOptimisticActorReady)(),a[0]!==y||a[1]!==t||a[2]!==f||a[3]!==p||a[4]!==u?(o=()=>
1158{if(y)return l.current=(0,vV.createOverlayController)({handler:t,overlayElement:y,inFrame:f,inPopUp:p,optimisticActorReady:u}),()=>{l.current?.destroy(),l.current=void 0}},s=[y,t,f,p,u],a[0]=y,a[1]=t,a[2]=f,a[3]=p,a[4]=u,a[5]=o,a[6]=s):(o=a[5],s=a[6]),(0,_.useEffect)(o,s),l);return d[6]!==b.current||d[7]!==m?(r=()=>{m?b.current?.activate():b.current?.deactivate()},d[6]=b.current,d[7]=m,d[8]=r):r=d[8],d[9]!==b||d[10]!==m?(i=[b,m],d[9]=b,d[10]=m,d[11]=i):i=d[11],(0,_.useEffect)(r,i),null};function k8(e){let t,n,r,i,o,s,a,l,u,d,c,h,f,p,g,m,y,v,w,b,x,C,k,j,M,L,S,V,$,A,T,H,I,P,O,B=(0,R.c)(77),{comlink:N,comlinkStatus:W,componentResolver:z,inFrame:D,inPopUp:F,zIndex:Z,onPerspectiveChange:U}=e,q=mH();B[0]===Symbol.for("react.memo_cache_sentinel")?(t={contextMenu:null,dragInsertPosition:null,dragShowMinimap:!1,dragShowMinimapPrompt:!1,dragSkeleton:null,elements:[],focusPath:"",isDragging:!1,perspective:"published",wasMaybeCollapsed:!1,dragMinimapTransition:!1,dragGroupRect:null},B[0]=t):t=B[0];let[G,Y]=(0,_.useReducer)(kz,t),{contextMenu:X,dragInsertPosition:K,dragShowMinimap:J,dragShowMinimapPrompt:Q,dragSkeleton:ee,elements:et,isDragging:en,perspective:er,wasMaybeCollapsed:ei,dragMinimapTransition:eo,dragGroupRect:es}=G,[ea,el]=(0,_.useState)(null),[eu,ed]=(0,_.useState)(!0);B[1]!==N?(n=()=>{let e=[N?.on("presentation/focus",e=>{Y({type:"presentation/focus",data:e})}),N?.on("presentation/blur",e=>{Y({type:"presentation/blur",data:e})}),N?.on("presentation/toggle-overlay",()=>{ed(js)})].filter(Boolean);return()=>e.forEach(jo)},r=[N],B[1]=N,B[2]=n,B[3]=r):(n=B[2],r=B[3]),(0,_.useEffect)(n,r),S=(0,R.c)(11),V=!!U,S[0]!==Y||S[1]!==U?(j=e=>{Y({type:"presentation/perspective",data:e}),U?.(e.perspective)},S[0]=Y,S[1]=U,S[2]=j):j=S[2],$=(0,_.useEffectEvent)(j),S[3]!==N||S[4]!==$||S[5]!==V?(M=()=>{let e=new AbortController;N?.fetch("visual-editing/fetch-perspective",{handlesPerspectiveChange:V},{signal:e.signal,suppressWarnings:!0}).then(e=>{$(e)}).catch(kQ);let t=N?.on("presentation/perspective",e=>{$(e)});return()=>{t?.(),e.abort()}},S[3]=N,S[4]=$,S[5]=V,S[6]=M):M=S[6],S[7]!==N||S[8]!==Y||S[9]!==V?(L=[N,Y,V],S[7]=N,S[8]=Y,S[9]=V,S[10]=L):L=S[10],(0,_.useEffect)(M,L),I=(0,R.c)(7),P=(0,_.useRef)(void 0),I[0]!==N?(A=(e,t)=>{N?.post("visual-editing/documents",{documents:e,perspective:t})},I[0]=N,I[1]=A):A=I[1],O=A,I[2]!==et||I[3]!==er||I[4]!==O?(T=()=>{let e=et.map(k5).filter(k0),t=new Set(e.map(k1));if(!P.current||!function(e,t){if(e===t)return!0;if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}(t,P.current.nodeIds)||er!==P.current.perspective){let n=Array.from(t).map(t=>{let{type:n,projectId:r,dataset:i}=e.find(e=>e.id===t);return r&&i?{_id:t,_type:n,_projectId:r,_dataset:i}:{_id:t,_type:n}});P.current={nodeIds:t,perspective:er},O(n,er)}},H=[et,er,O],I[2]=et,I[3]=er,I[4]=O,I[5]=T,I[6]=H):(T=I[5],H=I[6]),(0,_.useEffect)(T,H),B[4]!==ea?(i=(e,t)=>{ea&&(ea.style.setProperty("--drag-preview-x",`${e}px`),ea.style.setProperty("--drag-preview-y",`${t-window.scrollY}px`))},B[4]=ea,B[5]=i):i=B[5];let ec=i;B[6]===Symbol.for("react.memo_cache_sentinel")?(o=()=>{let e=!1,t=t=>{jl(t)&&e&&(e=!1,ed(jr))},n=t=>{var n,r;if(jl(t)){if(t.ctrlKey||t.metaKey||t.shiftKey)return;e||(e=!0,ed(jn))}n=["mod","\\"],r=t,n.every(e=>ja[e]?r[ja[e]]:r.key===e.toUpperCase())&&ed(jt)},r=()=>{e&&(e=!1,ed(je))};return window.addEventListener("click",ji),window.addEventListener("keydown",n),window.addEventListener("keyup",t),window.addEventListener("blur",r),()=>{window.removeEventListener("click",ji),window.removeEventListener("keydown",n),window.removeEventListener("keyup",t),window.removeEventListener("blur",r)}},s=[ed],B[6]=o,B[7]=s):(o=B[6],s=B[7]),(0,_.useEffect)(o,s);let[eh,ef]=(0,_.useState)(!1),[ep,eg]=(0,_.useState)(!1),em=(0,_.useRef)(void 0);B[8]!==eu?(a=()=>{if(eu)return k3(()=>{ef(!0),k3(()=>{eg(!0),em.current=setTimeout(()=>{eg(!1),ef(!1)},1500)})});em.current&&(clearTimeout(em.current),(0,_.startTransition)(()=>{ef(!1),eg(!1)}))},l=[eu],B[8]=eu,B[9]=a,B[10]=l):(a=B[9],l=B[10]),(0,_.useEffect)(a,l),B[11]!==et?(u=et.flatMap(k7),B[11]=et,B[12]=u):u=B[12];let ey=u;B[13]===Symbol.for("react.memo_cache_sentinel")?(d=()=>{Y({type:"overlay/blur"})},B[13]=d):d=B[13];let ev=d,ew=(0,vR.useOptimisticActorReady)(),eb=ew?z:void 0,[ex,eC]=(0,_.useState)(!1);!ex&&D&&"connected"===W&&eC(!0);t:{let t;if(en){let e;B[14]===Symbol.for("react.memo_cache_sentinel")?(e=[],B[14]=e):e=B[14],c=e;break t}B[15]!==N||B[16]!==eb||B[17]!==eo||B[18]!==J||B[19]!==et||B[20]!==D||B[21]!==en||B[22]!==ew||B[23]!==e.plugins||B[24]!==ex||B[25]!==ei?(t=et.filter(k9).map(t=>{let{id:n,element:r,focused:i,hovered:o,rect:s,sanity:a,dragDisabled:l,targets:u,elementType:d}=t,c=!l&&!!r.getAttribute("data-sanity")&&ew&&et.some(e=>"id"in e.sanity&&"id"in a&&(0,vV.sanityNodesExistInSameArray)(e.sanity,a)&&e.sanity.path!==a.path);return(0,E.jsx)(kj,{comlink:N,componentResolver:eb,plugins:e.plugins,element:r,enableScrollIntoView:!en&&!eo&&!J,id:n,focused:i,hovered:o,node:a,rect:s,showActions:!ex,draggable:c,isDragging:en||eo,wasMaybeCollapsed:i&&ei,targets:u,elementType:d,inFrame:D},n)}),B[15]=N,B[16]=eb,B[17]=eo,B[18]=J,B[19]=et,B[20]=D,B[21]=en,B[22]=ew,B[23]=e.plugins,B[24]=ex,B[25]=ei,B[26]=t):t=B[26],c=t}let ek=c,ej=q?"dark":"light",eM=ep?"":void 0,eL=eh?"":void 0;return B[27]!==ey||B[28]!==er?(h=(0,E.jsx)(k4,{documentIds:ey,perspective:er}),B[27]=ey,B[28]=er,B[29]=h):h=B[29],B[30]!==N||B[31]!==D||B[32]!==F||B[33]!==eu||B[34]!==ea||B[35]!==ec?(f=(0,E.jsx)(k6,{comlink:N,dispatch:Y,inFrame:D,inPopUp:F,onDrag:ec,overlayEnabled:eu,rootElement:ea}),B[30]=N,B[31]=D,B[32]=F,B[33]=eu,B[34]=ea,B[35]=ec,B[36]=f):f=B[36],B[37]!==X?(p=X&&(0,E.jsx)(kf,{...X,onDismiss:ev}),B[37]=X,B[38]=p):p=B[38],B[39]!==es||B[40]!==K||B[41]!==eo||B[42]!==Q||B[43]!==en?(g=en&&!eo&&(0,E.jsxs)(E.Fragment,{children:[K&&(0,E.jsx)(kH,{dragInsertPosition:K}),Q&&(0,E.jsx)(kW,{}),es&&(0,E.jsx)(kT,{dragGroupRect:es})]}
1158),B[39]=es,B[40]=K,B[41]=eo,B[42]=Q,B[43]=en,B[44]=g):g=B[44],B[45]!==ee||B[46]!==en?(m=en&&ee&&(0,E.jsx)(kP,{skeleton:ee}),B[45]=ee,B[46]=en,B[47]=m):m=B[47],B[48]!==ek||B[49]!==eM||B[50]!==eL||B[51]!==h||B[52]!==f||B[53]!==p||B[54]!==g||B[55]!==m||B[56]!==Z?(y=(0,E.jsxs)(k2,{"data-fading-out":eM,"data-overlays":eL,ref:el,$zIndex:Z,children:[h,f,p,ek,g,m]}),B[48]=ek,B[49]=eM,B[50]=eL,B[51]=h,B[52]=f,B[53]=p,B[54]=g,B[55]=m,B[56]=Z,B[57]=y):y=B[57],B[58]!==N||B[59]!==y?(v=(0,E.jsx)(kY,{comlink:N,children:y}),B[58]=N,B[59]=y,B[60]=v):v=B[60],B[61]!==N||B[62]!==v?(w=(0,E.jsx)(kD,{comlink:N,children:v}),B[61]=N,B[62]=v,B[63]=w):w=B[63],B[64]!==N||B[65]!==et||B[66]!==w?(b=(0,E.jsx)(kU,{comlink:N,elements:et,children:w}),B[64]=N,B[65]=et,B[66]=w,B[67]=b):b=B[67],B[68]!==ea||B[69]!==b?(x=(0,E.jsx)(yo,{children:(0,E.jsx)(yy,{element:ea,children:b})}),B[68]=ea,B[69]=b,B[70]=x):x=B[70],B[71]!==ej||B[72]!==x?(C=(0,E.jsx)(ge,{scheme:ej,theme:pZ,tone:"transparent",children:x}),B[71]=ej,B[72]=x,B[73]=C):C=B[73],B[74]!==N||B[75]!==C?(k=(0,E.jsx)(kJ,{comlink:N,children:C}),B[74]=N,B[75]=C,B[76]=k):k=B[76],k}function k9(e){return e.activated||e.focused}function k7(e){return"id"in e.sanity?[e.sanity.id]:[]}function je(e){return!e}function jt(e){return!e}function jn(e){return!e}function jr(e){return!e}function ji(e){let t=e.target;if((pJ(t)||pK(t)&&t.closest("a"))&&e.altKey){e.preventDefault(),e.stopPropagation();let t=new MouseEvent(e.type,{...e,altKey:!1,bubbles:!0,cancelable:!0});e.target?.dispatchEvent(t)}}function jo(e){return e()}function js(e){return!e}let ja={alt:"altKey",ctrl:"ctrlKey",mod:"u">typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform)?"metaKey":"ctrlKey",shift:"shiftKey"};function jl(e){return"Alt"===e.key}function ju(e,t){return e.filter(e=>e!==t)}let jd=e=>{let t,n,r=(0,R.c)(4),{comlink:i,refresh:o}=e,s=(0,_.useRef)(0),a=(0,_.useRef)(0);return r[0]!==i||r[1]!==o?(t=()=>i.on("presentation/refresh",e=>{if("manual"===e.source){clearTimeout(s.current);let t=o(e);if(!1===t)return;i.post("visual-editing/refreshing",e);let n=!1;s.current=window.setTimeout(()=>{i.post("visual-editing/refreshed",e),n=!0},3e3),t?.finally?.(()=>{n||(clearTimeout(s.current),i.post("visual-editing/refreshed",e))})}else if("mutation"===e.source){clearTimeout(a.current);let t=o(e);if(!1===t)return;i.post("visual-editing/refreshing",e),a.current=window.setTimeout(()=>{let t=o(e);!1!==t&&(i.post("visual-editing/refreshing",e),t?.finally?.(()=>{i.post("visual-editing/refreshed",e)})||i.post("visual-editing/refreshed",e))},1e3),t?.finally?.(()=>{i.post("visual-editing/refreshed",e)})||i.post("visual-editing/refreshed",e)}}),n=[i,o],r[0]=i,r[1]=o,r[2]=t,r[3]=n):(t=r[2],n=r[3]),(0,_.useEffect)(t,n),null};function jc(e){let{data:t,origin:n}=e;t&&"object"==typeof t&&"domain"in t&&"sanity/channels"===t.domain&&"from"in t&&"presentation"===t.from&&"type"in t&&"presentation/status"===t.type&&window.parent.postMessage({domain:"sanity/channels",type:"visual-editing/status",data:{origin:location.origin}},n)}function jh(){console.warn("[@sanity/visual-editing] Package version mismatch detected: Please update your Sanity studio to prevent potential compatibility issues.")}function jf(){}let jp=(0,_.lazy)(()=>e.A(55688)),jg=e=>{var t;let n,r,i,o,s,a,l,u,d,c,h,f,p,g,m=(0,R.c)(33),{components:y,plugins:v,history:w,portal:b,refresh:x,zIndex:C,onPerspectiveChange:k}=e,j=void 0===b||b,[M,L]=(0,_.useState)(null),[S,A]=(0,_.useState)(null);m[0]===Symbol.for("react.memo_cache_sentinel")?(n=()=>{(0,_.startTransition)(()=>{L((0,V.isMaybePreviewIframe)()),A((0,V.isMaybePreviewWindow)())})},r=[],m[0]=n,m[1]=r):(n=m[0],r=m[1]),(0,_.useEffect)(n,r);let[T,H]=(0,_.useState)(null);m[2]!==j?(i=()=>{if(!1===j)return;let e=document.createElement("sanity-visual-editing");return document.documentElement.appendChild(e),(0,_.startTransition)(()=>H(e)),()=>{(0,_.startTransition)(()=>H(null)),document.documentElement.contains(e)&&document.documentElement.removeChild(e)}},o=[j],m[2]=j,m[3]=i,m[4]=o):(i=m[3],o=m[4]),(0,_.useEffect)(i,o);let[I,P]=function(e){let t,n,r,i,o,s=(0,R.c)(9),a=void 0===e||e,[l,u]=(0,_.useState)(),[d,c]=(0,_.useState)("idle");return s[0]!==a?(t=()=>{if(!a)return;let e=(0,b2.createNode)({name:"visual-editing",connectTo:"presentation"},(0,b2.createNodeMachine)().provide({actors:(0,V.createCompatibilityActors)()})),t=e.onStatus(()=>c("connected"),"connected");(0,_.startTransition)(()=>u(e));let n=e.start();return()=>{t(),n(),(0,_.startTransition)(()=>u(void 0))}},n=[a],s[0]=a,s[1]=t,s[2]=n):(t=s[1],n=s[2]),(0,_.useEffect)(t,n),s[3]!==d?(r=()=>{if("connected"===d)return;let e=new AbortController;return window.addEventListener("message",jc,{signal:e.signal}),()=>{e.abort()}},i=[d],s[3]=d,s[4]=r,s[5]=i):(r=s[4],i=s[5]),(0,_.useEffect)(r,i),s[6]!==l||s[7]!==d?(o=[l,d],s[6]=l,s[7]=d,s[8]=o):o=s[8],o}(!0===M||!0===S);t="connected"===P?I:void 0,(g=(0,R.c)(3))[0]!==t?(f=()=>{let e,n;if(!t)return;let r=(e=new b6.ReplaySubject(1),n=new b8.Subject,t.fetch("visual-editing/snapshot-welcome",void 0,{suppressWarnings:!0}).then(t=>{e.next(t.event)}).catch(()=>{}
1158),t.on("presentation/snapshot-event",t=>{"reconnect"===t.event.type&&e.next(t.event),"mutation"===t.event.type&&n.next(t.event)}),(0,b9.merge)(e,n)),i=CY(t),o=(0,b3.createActor)(i,{input:{client:{withConfig:jf},sharedListener:r}});o.start();let s=new AbortController;return t.fetch("visual-editing/features",void 0,{signal:s.signal,suppressWarnings:!0}).then(e=>{e.features.optimistic&&(0,b4.setActor)(o)}).catch(jh),()=>{o.stop(),s.abort()}},p=[t],g[0]=t,g[1]=f,g[2]=p):(f=g[1],p=g[2]),(0,_.useEffect)(f,p);let O=(0,_.useDeferredValue)((0,_.useSyncExternalStore)(C9,C7,jm),!1);m[5]!==P||m[6]!==M||m[7]!==S?(s=()=>{if("connected"===P)CJ(S?"presentation-window":"presentation-iframe");else if(M||S){let e=setTimeout(jy,1e3);return()=>{clearTimeout(e),CJ(null)}}else CJ("standalone");return jv},a=[P,S,M],m[5]=P,m[6]=M,m[7]=S,m[8]=s,m[9]=a):(s=m[8],a=m[9]),(0,_.useEffect)(s,a),m[10]!==I||m[11]!==P||m[12]!==y||m[13]!==M||m[14]!==S||m[15]!==k||m[16]!==v||m[17]!==C?(l=null!==M&&null!==S&&(0,E.jsx)(k8,{comlink:I,comlinkStatus:P,componentResolver:y,onPerspectiveChange:k,plugins:v,inFrame:M,inPopUp:S,zIndex:C}),m[10]=I,m[11]=P,m[12]=y,m[13]=M,m[14]=S,m[15]=k,m[16]=v,m[17]=C,m[18]=l):l=m[18],m[19]!==I||m[20]!==w||m[21]!==x?(u=I&&(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(CQ,{comlink:I,history:w}),(0,E.jsx)(ke,{comlink:I}),x&&(0,E.jsx)(jd,{comlink:I,refresh:x})]}),m[19]=I,m[20]=w,m[21]=x,m[22]=u):u=m[22],m[23]!==P||m[24]!==O?(d="connected"===P&&O&&(0,E.jsx)(_.Suspense,{children:(0,E.jsx)(jp,{})}),m[23]=P,m[24]=O,m[25]=d):d=m[25],m[26]!==l||m[27]!==u||m[28]!==d?(c=(0,E.jsxs)(E.Fragment,{children:[l,u,d]}),m[26]=l,m[27]=u,m[28]=d,m[29]=c):c=m[29];let B=c;return!1!==j&&T?(m[30]!==B||m[31]!==T?(h=(0,$.createPortal)(B,T),m[30]=B,m[31]=T,m[32]=h):h=m[32],h):B};function jm(){return!1}function jy(){return CJ("standalone")}function jv(){return CJ(null)}jg.displayName="VisualEditing",e.s(["VisualEditing",0,jg,"addQueryListener",0,function(){if(C8++,!C6)for(let e of(C6=!0,C4))e();return()=>{if(0==--C8&&C6)for(let e of(C6=!1,C4))e()}},"comlink",()=>C0,"comlinkDataset",()=>C2,"comlinkPerspective",()=>C3,"comlinkProjectId",()=>C5,"getSnapshot",0,function(){return CK},"setLoaderClientConfig",0,function(e,t){for(let n of(C5=e,C2=t,C1))n()},"setLoaderComlink",0,function(e){for(let t of(C0=e,C1))t()},"setLoaderPerspective",0,function(e){for(let t of(C3=e,C1))t()},"subscribe",0,function(e){return CX.add(e),()=>{CX.delete(e)}},"subscribe$1",0,function(e){return C1.add(e),()=>C1.delete(e)}],31513)}]);
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.