grab 0.1.47-dev.58b4de2 → 0.1.47-dev.61857c7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{copy-content-5FzVj_Qo.d.cts → copy-content-Bu9TkfQ-.d.cts} +34 -7
- package/dist/{copy-content-DBTUuI3p.cjs → copy-content-CbkJ7J6S.cjs} +2 -2
- package/dist/{copy-content-BPOJJewQ.js → copy-content-fAdecUHO.js} +2 -2
- package/dist/{copy-content-BJATOqZF.d.ts → copy-content-gFhiC_Op.d.ts} +34 -7
- package/dist/core/index.cjs +1 -1
- package/dist/core/index.d.cts +2 -2
- package/dist/core/index.d.ts +2 -2
- package/dist/core/index.js +1 -1
- package/dist/core-BL9TAEy1.cjs +14 -0
- package/dist/core-mTDC4h_Q.js +14 -0
- package/dist/{create-pointer-move-prompt-handoff-CuUzA8kA.cjs → create-pointer-move-prompt-handoff-DHAI0IUp.cjs} +1 -1
- package/dist/create-pointer-move-prompt-handoff-DP3dYRgh.js +9 -0
- package/dist/freeze-updates-DFGqjTbl.cjs +51 -0
- package/dist/freeze-updates-Dlsx15dh.js +51 -0
- package/dist/{index-jMjUhmbS.d.cts → index-Chk_n5Il.d.cts} +1 -1
- package/dist/{index-C_bngsx-.d.ts → index-DR2XmmEU.d.ts} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.global.js +18 -18
- package/dist/index.js +1 -1
- package/dist/primitives.cjs +1 -1
- package/dist/primitives.d.cts +1 -1
- package/dist/primitives.d.ts +1 -1
- package/dist/primitives.js +2 -2
- package/dist/renderer-BIN-MhpY.cjs +9 -0
- package/dist/renderer-CiVvDHwR.js +9 -0
- package/dist/styles.css +1 -1
- package/package.json +2 -2
- package/dist/core-Bas76m8X.js +0 -14
- package/dist/core-Ch_38Dh0.cjs +0 -14
- package/dist/create-pointer-move-prompt-handoff-DL_Nlrs5.js +0 -9
- package/dist/freeze-updates-D6aehaiC.cjs +0 -51
- package/dist/freeze-updates-Dldphza-.js +0 -51
- package/dist/renderer-BI36o6Yw.cjs +0 -9
- package/dist/renderer-PetxKDwl.js +0 -9
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license MIT
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) 2025 Aiden Bai
|
|
5
|
+
*
|
|
6
|
+
* This source code is licensed under the MIT license found in the
|
|
7
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
|
+
*/
|
|
9
|
+
import{Ft as e,H as t,Ht as n,I as r,nt as i}from"./freeze-updates-Dlsx15dh.js";const a={context:void 0,registry:void 0,effects:void 0,done:!1,getContextId(){return o(this.context.count)},getNextContextId(){return o(this.context.count++)}};function o(e){let t=String(e),n=t.length-1;return a.context.id+(n?String.fromCharCode(96+n):``)+t}function s(e){a.context=e}const c=(e,t)=>e===t,l=Symbol(`solid-proxy`),u=typeof Proxy==`function`,d=Symbol(`solid-track`),f={equals:c};let p=he;const m={owned:null,cleanups:null,context:null,owner:null},h={};var g=null;let _=null,v=null,y=null,b=null,x=0;function S(e,t){let n=v,r=g,i=e.length===0,a=t===void 0?r:t,o=i?m:{owned:null,cleanups:null,context:a?a.context:null,owner:a},s=i?e:()=>e(()=>E(()=>L(o)));g=o,v=null;try{return F(s,!0)}finally{v=n,g=r}}function C(e,t){t=t?Object.assign({},f,t):f;let n={value:e,observers:null,observerSlots:null,comparator:t.equals||void 0};return[de.bind(n),e=>(typeof e==`function`&&(e=_&&_.running&&_.sources.has(n)?e(n.tValue):e(n.value)),fe(n,e))]}function ee(e,t,n){M(N(e,t,!0,1))}function w(e,t,n){M(N(e,t,!1,1))}function te(e,t,n){p=ge;let r=N(e,t,!1,1),i=j&&le(j);i&&(r.suspense=i),(!n||!n.render)&&(r.user=!0),b?b.push(r):M(r)}function T(e,t,n){n=n?Object.assign({},f,n):f;let r=N(e,t,!0,0);return r.observers=null,r.observerSlots=null,r.comparator=n.equals||void 0,M(r),de.bind(r)}function ne(e){return e&&typeof e==`object`&&`then`in e}function re(e,t,n){let r,i,o;typeof t==`function`?(r=e,i=t,o=n||{}):(r=!0,i=e,o=t||{});let s=null,c=h,l=null,u=!1,d=!1,f=`initialValue`in o,p=typeof r==`function`&&T(r),m=new Set,[y,b]=(o.storage||C)(o.initialValue),[x,S]=C(void 0),[w,te]=C(void 0,{equals:!1}),[re,ie]=C(f?`ready`:`unresolved`);a.context&&(l=a.getNextContextId(),o.ssrLoadFrom===`initial`?c=o.initialValue:a.load&&a.has(l)&&(c=a.load(l)));function D(e,t,n,r){return s===e&&(s=null,r!==void 0&&(f=!0),(e===c||t===c)&&o.onHydrated&&queueMicrotask(()=>o.onHydrated(r,{value:t})),c=h,_&&e&&u?(_.promises.delete(e),u=!1,F(()=>{_.running=!0,O(t,n)},!1)):O(t,n)),t}function O(e,t){F(()=>{t===void 0&&b(()=>e),ie(t===void 0?f?`ready`:`unresolved`:`errored`),S(t);for(let e of m.keys())e.decrement();m.clear()},!1)}function k(){let e=j&&le(j),t=y(),n=x();if(n!==void 0&&!s)throw n;return v&&!v.user&&e&&ee(()=>{w(),s&&(e.resolved&&_&&u?_.promises.add(s):m.has(e)||(e.increment(),m.add(e)))}),t}function A(e=!0){if(e!==!1&&d)return;d=!1;let t=p?p():r;if(u=_&&_.running,t==null||t===!1){D(s,E(y));return}_&&s&&_.promises.delete(s);let n,a=c===h?E(()=>{try{return i(t,{value:y(),refetching:e})}catch(e){n=e}}):c;if(n!==void 0){D(s,void 0,R(n),t);return}else if(!ne(a))return D(s,a,void 0,t),a;return s=a,`v`in a?(a.s===1?D(s,a.v,void 0,t):D(s,void 0,R(a.v),t),a):(d=!0,queueMicrotask(()=>d=!1),F(()=>{ie(f?`refreshing`:`pending`),te()},!1),a.then(e=>D(a,e,void 0,t),e=>D(a,void 0,R(e),t)))}Object.defineProperties(k,{state:{get:()=>re()},error:{get:()=>x()},loading:{get(){let e=re();return e===`pending`||e===`refreshing`}},latest:{get(){if(!f)return k();let e=x();if(e&&!s)throw e;return y()}}});let oe=g;return p?ee(()=>(oe=g,A(!1))):A(!1),[k,{refetch:e=>ae(oe,()=>A(e)),mutate:b}]}function ie(e){return F(e,!1)}function E(e){if(v===null)return e();let t=v;v=null;try{return e()}finally{v=t}}function D(e,t,n){let r=Array.isArray(e),i,a=n&&n.defer;return n=>{let o;if(r){o=Array(e.length);for(let t=0;t<e.length;t++)o[t]=e[t]()}else o=e();if(a)return a=!1,n;let s=E(()=>t(o,i,n));return i=o,s}}function O(e){te(()=>E(e))}function k(e){return g===null||(g.cleanups===null?g.cleanups=[e]:g.cleanups.push(e)),e}function A(){return v}function ae(e,t){let n=g,r=v;g=e,v=null;try{return F(t,!0)}catch(e){z(e)}finally{g=n,v=r}}const[oe,se]=C(!1);function ce(e,t){let n=Symbol(`context`);return{id:n,Provider:ye(n),defaultValue:e}}function le(e){let t;return g&&g.context&&(t=g.context[e.id])!==void 0?t:e.defaultValue}function ue(e){let t=T(e),n=T(()=>B(t()));return n.toArray=()=>{let e=n();return Array.isArray(e)?e:e==null?[]:[e]},n}let j;function de(){let e=_&&_.running;if(this.sources&&(e?this.tState:this.state))if((e?this.tState:this.state)===1)M(this);else{let e=y;y=null,F(()=>I(this),!1),y=e}if(v){let e=this.observers?this.observers.length:0;v.sources?(v.sources.push(this),v.sourceSlots.push(e)):(v.sources=[this],v.sourceSlots=[e]),this.observers?(this.observers.push(v),this.observerSlots.push(v.sources.length-1)):(this.observers=[v],this.observerSlots=[v.sources.length-1])}return e&&_.sources.has(this)?this.tValue:this.value}function fe(e,t,n){let r=_&&_.running&&_.sources.has(e)?e.tValue:e.value;if(!e.comparator||!e.comparator(r,t)){if(_){let r=_.running;(r||!n&&_.sources.has(e))&&(_.sources.add(e),e.tValue=t),r||(e.value=t)}else e.value=t;e.observers&&e.observers.length&&F(()=>{for(let t=0;t<e.observers.length;t+=1){let n=e.observers[t],r=_&&_.running;r&&_.disposed.has(n)||((r?!n.tState:!n.state)&&(n.pure?y.push(n):b.push(n),n.observers&&_e(n)),r?n.tState=1:n.state=1)}if(y.length>1e6)throw y=[],Error()},!1)}return t}function M(e){if(!e.fn)return;L(e);let t=x;pe(e,_&&_.running&&_.sources.has(e)?e.tValue:e.value,t),_&&!_.running&&_.sources.has(e)&&queueMicrotask(()=>{F(()=>{_&&(_.running=!0),v=g=e,pe(e,e.tValue,t),v=g=null},!1)})}function pe(e,t,n){let r,i=g,a=v;v=g=e;try{r=e.fn(t)}catch(t){return e.pure&&(_&&_.running?(e.tState=1,e.tOwned&&e.tOwned.forEach(L),e.tOwned=void 0):(e.state=1,e.owned&&e.owned.forEach(L),e.owned=null)),e.updatedAt=n+1,z(t)}finally{v=a,g=i}(!e.updatedAt||e.updatedAt<=n)&&(e.updatedAt!=null&&`observers`in e?fe(e,r,!0):_&&_.running&&e.pure?(_.sources.has(e)||(e.value=r),_.sources.add(e),e.tValue=r):e.value=r,e.updatedAt=n)}function N(e,t,n,r=1,i){let a={fn:e,state:r,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:g,context:g?g.context:null,pure:n};return _&&_.running&&(a.state=0,a.tState=r),g===null||g!==m&&(_&&_.running&&g.pure?g.tOwned?g.tOwned.push(a):g.tOwned=[a]:g.owned?g.owned.push(a):g.owned=[a]),a}function P(e){let t=_&&_.running;if((t?e.tState:e.state)===0)return;if((t?e.tState:e.state)===2)return I(e);if(e.suspense&&E(e.suspense.inFallback))return e.suspense.effects.push(e);let n=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<x);){if(t&&_.disposed.has(e))return;(t?e.tState:e.state)&&n.push(e)}for(let r=n.length-1;r>=0;r--){if(e=n[r],t){let t=e,i=n[r+1];for(;(t=t.owner)&&t!==i;)if(_.disposed.has(t))return}if((t?e.tState:e.state)===1)M(e);else if((t?e.tState:e.state)===2){let t=y;y=null,F(()=>I(e,n[0]),!1),y=t}}}function F(e,t){if(y)return e();let n=!1;t||(y=[]),b?n=!0:b=[],x++;try{let t=e();return me(n),t}catch(e){n||(b=null),y=null,z(e)}}function me(e){if(y&&=(he(y),null),e)return;let t;if(_){if(!_.promises.size&&!_.queue.size){let e=_.sources,n=_.disposed;b.push.apply(b,_.effects),t=_.resolve;for(let e of b)`tState`in e&&(e.state=e.tState),delete e.tState;_=null,F(()=>{for(let e of n)L(e);for(let t of e){if(t.value=t.tValue,t.owned)for(let e=0,n=t.owned.length;e<n;e++)L(t.owned[e]);t.tOwned&&(t.owned=t.tOwned),delete t.tValue,delete t.tOwned,t.tState=0}se(!1)},!1)}else if(_.running){_.running=!1,_.effects.push.apply(_.effects,b),b=null,se(!0);return}}let n=b;b=null,n.length&&F(()=>p(n),!1),t&&t()}function he(e){for(let t=0;t<e.length;t++)P(e[t])}function ge(e){let t,n=0;for(t=0;t<e.length;t++){let r=e[t];r.user?e[n++]=r:P(r)}if(a.context){if(a.count){a.effects||=[],a.effects.push(...e.slice(0,n));return}s()}for(a.effects&&(a.done||!a.count)&&(e=[...a.effects,...e],n+=a.effects.length,delete a.effects),t=0;t<n;t++)P(e[t])}function I(e,t){let n=_&&_.running;n?e.tState=0:e.state=0;for(let r=0;r<e.sources.length;r+=1){let i=e.sources[r];if(i.sources){let e=n?i.tState:i.state;e===1?i!==t&&(!i.updatedAt||i.updatedAt<x)&&P(i):e===2&&I(i,t)}}}function _e(e){let t=_&&_.running;for(let n=0;n<e.observers.length;n+=1){let r=e.observers[n];(t?!r.tState:!r.state)&&(t?r.tState=2:r.state=2,r.pure?y.push(r):b.push(r),r.observers&&_e(r))}}function L(e){let t;if(e.sources)for(;e.sources.length;){let t=e.sources.pop(),n=e.sourceSlots.pop(),r=t.observers;if(r&&r.length){let e=r.pop(),i=t.observerSlots.pop();n<r.length&&(e.sourceSlots[i]=n,r[n]=e,t.observerSlots[n]=i)}}if(e.tOwned){for(t=e.tOwned.length-1;t>=0;t--)L(e.tOwned[t]);delete e.tOwned}if(_&&_.running&&e.pure)ve(e,!0);else if(e.owned){for(t=e.owned.length-1;t>=0;t--)L(e.owned[t]);e.owned=null}if(e.cleanups){for(t=e.cleanups.length-1;t>=0;t--)e.cleanups[t]();e.cleanups=null}_&&_.running?e.tState=0:e.state=0}function ve(e,t){if(t||(e.tState=0,_.disposed.add(e)),e.owned)for(let t=0;t<e.owned.length;t++)ve(e.owned[t])}function R(e){return e instanceof Error?e:Error(typeof e==`string`?e:`Unknown error`,{cause:e})}function z(e,t=g){throw R(e)}function B(e){if(typeof e==`function`&&!e.length)return B(e());if(Array.isArray(e)){let t=[];for(let n=0;n<e.length;n++){let r=B(e[n]);Array.isArray(r)?t.push.apply(t,r):t.push(r)}return t}return e}function ye(e,t){return function(t){let n;return w(()=>n=E(()=>(g.context={...g.context,[e]:t.value},ue(()=>t.children))),void 0),n}}const V=Symbol(`fallback`);function H(e){for(let t=0;t<e.length;t++)e[t]()}function be(e,t,n={}){let r=[],i=[],a=[],o=0,s=t.length>1?[]:null;return k(()=>H(a)),()=>{let c=e()||[],l=c.length,u,f;return c[d],E(()=>{let e,t,d,m,h,g,_,v,y;if(l===0)o!==0&&(H(a),a=[],r=[],i=[],o=0,s&&=[]),n.fallback&&(r=[V],i[0]=S(e=>(a[0]=e,n.fallback())),o=1);else if(o===0){for(i=Array(l),f=0;f<l;f++)r[f]=c[f],i[f]=S(p);o=l}else{for(d=Array(l),m=Array(l),s&&(h=Array(l)),g=0,_=Math.min(o,l);g<_&&r[g]===c[g];g++);for(_=o-1,v=l-1;_>=g&&v>=g&&r[_]===c[v];_--,v--)d[v]=i[_],m[v]=a[_],s&&(h[v]=s[_]);for(e=new Map,t=Array(v+1),f=v;f>=g;f--)y=c[f],u=e.get(y),t[f]=u===void 0?-1:u,e.set(y,f);for(u=g;u<=_;u++)y=r[u],f=e.get(y),f!==void 0&&f!==-1?(d[f]=i[u],m[f]=a[u],s&&(h[f]=s[u]),f=t[f],e.set(y,f)):a[u]();for(f=g;f<l;f++)f in d?(i[f]=d[f],a[f]=m[f],s&&(s[f]=h[f],s[f](f))):i[f]=S(p);i=i.slice(0,o=l),r=c.slice(0)}return i});function p(e){if(a[f]=e,s){let[e,n]=C(f);return s[f]=n,t(c[f],e)}return t(c[f])}}}function xe(e,t,n={}){let r=[],i=[],a=[],o=[],s=0,c;return k(()=>H(a)),()=>{let l=e()||[],u=l.length;return l[d],E(()=>{if(u===0)return s!==0&&(H(a),a=[],r=[],i=[],s=0,o=[]),n.fallback&&(r=[V],i[0]=S(e=>(a[0]=e,n.fallback())),s=1),i;for(r[0]===V&&(a[0](),a=[],r=[],i=[],s=0),c=0;c<u;c++)c<r.length&&r[c]!==l[c]?o[c](()=>l[c]):c>=r.length&&(i[c]=S(f));for(;c<r.length;c++)a[c]();return s=o.length=a.length=u,r=l.slice(0),i=i.slice(0,s)});function f(e){a[c]=e;let[n,r]=C(l[c]);return o[c]=r,t(n,c)}}}function Se(e,t){return E(()=>e(t||{}))}function U(){return!0}const Ce={get(e,t,n){return t===l?n:e.get(t)},has(e,t){return t===l?!0:e.has(t)},set:U,deleteProperty:U,getOwnPropertyDescriptor(e,t){return{configurable:!0,enumerable:!0,get(){return e.get(t)},set:U,deleteProperty:U}},ownKeys(e){return e.keys()}};function we(e){return(e=typeof e==`function`?e():e)?e:{}}function Te(){for(let e=0,t=this.length;e<t;++e){let t=this[e]();if(t!==void 0)return t}}function Ee(...e){let t=!1;for(let n=0;n<e.length;n++){let r=e[n];t||=!!r&&l in r,e[n]=typeof r==`function`?(t=!0,T(r)):r}if(u&&t)return new Proxy({get(t){for(let n=e.length-1;n>=0;n--){let r=we(e[n])[t];if(r!==void 0)return r}},has(t){for(let n=e.length-1;n>=0;n--)if(t in we(e[n]))return!0;return!1},keys(){let t=[];for(let n=0;n<e.length;n++)t.push(...Object.keys(we(e[n])));return[...new Set(t)]}},Ce);let n={},r=Object.create(null);for(let t=e.length-1;t>=0;t--){let i=e[t];if(!i)continue;let a=Object.getOwnPropertyNames(i);for(let e=a.length-1;e>=0;e--){let t=a[e];if(t===`__proto__`||t===`constructor`)continue;let o=Object.getOwnPropertyDescriptor(i,t);if(!r[t])r[t]=o.get?{enumerable:!0,configurable:!0,get:Te.bind(n[t]=[o.get.bind(i)])}:o.value===void 0?void 0:o;else{let e=n[t];e&&(o.get?e.push(o.get.bind(i)):o.value!==void 0&&e.push(()=>o.value))}}}let i={},a=Object.keys(r);for(let e=a.length-1;e>=0;e--){let t=a[e],n=r[t];n&&n.get?Object.defineProperty(i,t,n):i[t]=n?n.value:void 0}return i}function De(e,...t){let n=t.length;if(u&&l in e){let r=n>1?t.flat():t[0],i=t.map(t=>new Proxy({get(n){return t.includes(n)?e[n]:void 0},has(n){return t.includes(n)&&n in e},keys(){return t.filter(t=>t in e)}},Ce));return i.push(new Proxy({get(t){return r.includes(t)?void 0:e[t]},has(t){return r.includes(t)?!1:t in e},keys(){return Object.keys(e).filter(e=>!r.includes(e))}},Ce)),i}let r=[];for(let e=0;e<=n;e++)r[e]={};for(let i of Object.getOwnPropertyNames(e)){let a=n;for(let e=0;e<t.length;e++)if(t[e].includes(i)){a=e;break}let o=Object.getOwnPropertyDescriptor(e,i);!o.get&&!o.set&&o.enumerable&&o.writable&&o.configurable?r[a][i]=o.value:Object.defineProperty(r[a],i,o)}return r}const Oe=e=>`Stale read from <${e}>.`;function ke(e){let t=`fallback`in e&&{fallback:()=>e.fallback};return T(be(()=>e.each,e.children,t||void 0))}function Ae(e){let t=`fallback`in e&&{fallback:()=>e.fallback};return T(xe(()=>e.each,e.children,t||void 0))}function je(e){let t=e.keyed,n=T(()=>e.when,void 0,void 0),r=t?n:T(n,void 0,{equals:(e,t)=>!e==!t});return T(()=>{let i=r();if(i){let a=e.children;return typeof a==`function`&&a.length>0?E(()=>a(t?i:()=>{if(!E(r))throw Oe(`Show`);return n()})):a}return e.fallback},void 0,void 0)}function Me(e){let t=ue(()=>e.children),n=T(()=>{let e=t(),n=Array.isArray(e)?e:[e],r=()=>void 0;for(let e=0;e<n.length;e++){let t=e,i=n[e],a=r,o=T(()=>a()?void 0:i.when,void 0,void 0),s=i.keyed?o:T(o,void 0,{equals:(e,t)=>!e==!t});r=()=>a()||(s()?[t,o,i]:void 0)}return r});return T(()=>{let t=n()();if(!t)return e.fallback;let[r,i,a]=t,o=a.children;return typeof o==`function`&&o.length>0?E(()=>o(a.keyed?i():()=>{if(E(n)()?.[0]!==r)throw Oe(`Match`);return i()})):o},void 0,void 0)}function Ne(e){return e}const Pe=new Set([`className`,`value`,`readOnly`,`noValidate`,`formNoValidate`,`isMap`,`noModule`,`playsInline`,`adAuctionHeaders`,`allowFullscreen`,`browsingTopics`,`defaultChecked`,`defaultMuted`,`defaultSelected`,`disablePictureInPicture`,`disableRemotePlayback`,`preservesPitch`,`shadowRootClonable`,`shadowRootCustomElementRegistry`,`shadowRootDelegatesFocus`,`shadowRootSerializable`,`sharedStorageWritable`,...`allowfullscreen.async.alpha.autofocus.autoplay.checked.controls.default.disabled.formnovalidate.hidden.indeterminate.inert.ismap.loop.multiple.muted.nomodule.novalidate.open.playsinline.readonly.required.reversed.seamless.selected.adauctionheaders.browsingtopics.credentialless.defaultchecked.defaultmuted.defaultselected.defer.disablepictureinpicture.disableremoteplayback.preservespitch.shadowrootclonable.shadowrootcustomelementregistry.shadowrootdelegatesfocus.shadowrootserializable.sharedstoragewritable`.split(`.`)]),Fe=new Set([`innerHTML`,`textContent`,`innerText`,`children`]),Ie=Object.assign(Object.create(null),{className:`class`,htmlFor:`for`}),Le=Object.assign(Object.create(null),{class:`className`,novalidate:{$:`noValidate`,FORM:1},formnovalidate:{$:`formNoValidate`,BUTTON:1,INPUT:1},ismap:{$:`isMap`,IMG:1},nomodule:{$:`noModule`,SCRIPT:1},playsinline:{$:`playsInline`,VIDEO:1},readonly:{$:`readOnly`,INPUT:1,TEXTAREA:1},adauctionheaders:{$:`adAuctionHeaders`,IFRAME:1},allowfullscreen:{$:`allowFullscreen`,IFRAME:1},browsingtopics:{$:`browsingTopics`,IMG:1},defaultchecked:{$:`defaultChecked`,INPUT:1},defaultmuted:{$:`defaultMuted`,AUDIO:1,VIDEO:1},defaultselected:{$:`defaultSelected`,OPTION:1},disablepictureinpicture:{$:`disablePictureInPicture`,VIDEO:1},disableremoteplayback:{$:`disableRemotePlayback`,AUDIO:1,VIDEO:1},preservespitch:{$:`preservesPitch`,AUDIO:1,VIDEO:1},shadowrootclonable:{$:`shadowRootClonable`,TEMPLATE:1},shadowrootdelegatesfocus:{$:`shadowRootDelegatesFocus`,TEMPLATE:1},shadowrootserializable:{$:`shadowRootSerializable`,TEMPLATE:1},sharedstoragewritable:{$:`sharedStorageWritable`,IFRAME:1,IMG:1}});function Re(e,t){let n=Le[e];return typeof n==`object`?n[t]?n.$:void 0:n}const ze=new Set([`beforeinput`,`click`,`dblclick`,`contextmenu`,`focusin`,`focusout`,`input`,`keydown`,`keyup`,`mousedown`,`mousemove`,`mouseout`,`mouseover`,`mouseup`,`pointerdown`,`pointermove`,`pointerout`,`pointerover`,`pointerup`,`touchend`,`touchmove`,`touchstart`]),Be={xlink:`http://www.w3.org/1999/xlink`,xml:`http://www.w3.org/XML/1998/namespace`},Ve=e=>T(()=>e());function He(e,t,n){let r=n.length,i=t.length,a=r,o=0,s=0,c=t[i-1].nextSibling,l=null;for(;o<i||s<a;){if(t[o]===n[s]){o++,s++;continue}for(;t[i-1]===n[a-1];)i--,a--;if(i===o){let t=a<r?s?n[s-1].nextSibling:n[a-s]:c;for(;s<a;)e.insertBefore(n[s++],t)}else if(a===s)for(;o<i;)(!l||!l.has(t[o]))&&t[o].remove(),o++;else if(t[o]===n[a-1]&&n[s]===t[i-1]){let r=t[--i].nextSibling;e.insertBefore(n[s++],t[o++].nextSibling),e.insertBefore(n[--a],r),t[i]=n[a]}else{if(!l){l=new Map;let e=s;for(;e<a;)l.set(n[e],e++)}let r=l.get(t[o]);if(r!=null)if(s<r&&r<a){let c=o,u=1,d;for(;++c<i&&c<a&&!((d=l.get(t[c]))==null||d!==r+u);)u++;if(u>r-s){let i=t[o];for(;s<r;)e.insertBefore(n[s++],i)}else e.replaceChild(n[s++],t[o++])}else o++;else t[o++].remove()}}}const Ue=`_$DX_DELEGATE`;function We(e,t,n,r={}){let i;return S(r=>{i=r,t===document?e():nt(t,e(),t.firstChild?null:void 0,n)},r.owner),()=>{i(),t.textContent=``}}function Ge(e,t,n,r){let i,a=()=>{let t=r?document.createElementNS(`http://www.w3.org/1998/Math/MathML`,`template`):document.createElement(`template`);return t.innerHTML=e,n?t.content.firstChild.firstChild:r?t.firstChild:t.content.firstChild},o=t?()=>E(()=>document.importNode(i||=a(),!0)):()=>(i||=a()).cloneNode(!0);return o.cloneNode=o,o}function Ke(e,t=window.document){let n=t[Ue]||(t[Ue]=new Set);for(let r=0,i=e.length;r<i;r++){let i=e[r];n.has(i)||(n.add(i),t.addEventListener(i,st))}}function W(e,t,n){G(e)||(n==null?e.removeAttribute(t):e.setAttribute(t,n))}function qe(e,t,n,r){G(e)||(r==null?e.removeAttributeNS(t,n):e.setAttributeNS(t,n,r))}function Je(e,t,n){G(e)||(n?e.setAttribute(t,``):e.removeAttribute(t))}function Ye(e,t){G(e)||(t==null?e.removeAttribute(`class`):e.className=t)}function Xe(e,t,n,r){if(r)Array.isArray(n)?(e[`$$${t}`]=n[0],e[`$$${t}Data`]=n[1]):e[`$$${t}`]=n;else if(Array.isArray(n)){let r=n[0];e.addEventListener(t,n[0]=t=>r.call(e,n[1],t))}else e.addEventListener(t,n,typeof n!=`function`&&n)}function Ze(e,t,n={}){let r=Object.keys(t||{}),i=Object.keys(n),a,o;for(a=0,o=i.length;a<o;a++){let r=i[a];!r||r===`undefined`||t[r]||(at(e,r,!1),delete n[r])}for(a=0,o=r.length;a<o;a++){let i=r[a],o=!!t[i];!i||i===`undefined`||n[i]===o||!o||(at(e,i,!0),n[i]=o)}return n}function Qe(e,t,n){if(!t)return n?W(e,`style`):t;let r=e.style;if(typeof t==`string`)return r.cssText=t;typeof n==`string`&&(r.cssText=n=void 0),n||={},t||={};let i,a;for(a in n)t[a]??r.removeProperty(a),delete n[a];for(a in t)i=t[a],i!==n[a]&&(r.setProperty(a,i),n[a]=i);return n}function $e(e,t,n){n==null?e.style.removeProperty(t):e.style.setProperty(t,n)}function et(e,t={},n,r){let i={};return r||w(()=>i.children=K(e,t.children,i.children)),w(()=>typeof t.ref==`function`&&tt(t.ref,e)),w(()=>rt(e,t,n,!0,i,!0)),i}function tt(e,t,n){return E(()=>e(t,n))}function nt(e,t,n,r){if(n!==void 0&&!r&&(r=[]),typeof t!=`function`)return K(e,t,r,n);w(r=>K(e,t(),r,n),r)}function rt(e,t,n,r,i={},a=!1){t||={};for(let r in i)if(!(r in t)){if(r===`children`)continue;i[r]=ot(e,r,null,i[r],n,a,t)}for(let o in t){if(o===`children`){r||K(e,t.children);continue}let s=t[o];i[o]=ot(e,o,s,i[o],n,a,t)}}function G(e){return!!a.context&&!a.done&&(!e||e.isConnected)}function it(e){return e.toLowerCase().replace(/-([a-z])/g,(e,t)=>t.toUpperCase())}function at(e,t,n){let r=t.trim().split(/\s+/);for(let t=0,i=r.length;t<i;t++)e.classList.toggle(r[t],n)}function ot(e,t,n,r,i,a,o){let s,c,l,u,d;if(t===`style`)return Qe(e,n,r);if(t===`classList`)return Ze(e,n,r);if(n===r)return r;if(t===`ref`)a||n(e);else if(t.slice(0,3)===`on:`){let i=t.slice(3);r&&e.removeEventListener(i,r,typeof r!=`function`&&r),n&&e.addEventListener(i,n,typeof n!=`function`&&n)}else if(t.slice(0,10)===`oncapture:`){let i=t.slice(10);r&&e.removeEventListener(i,r,!0),n&&e.addEventListener(i,n,!0)}else if(t.slice(0,2)===`on`){let i=t.slice(2).toLowerCase(),a=ze.has(i);if(!a&&r){let t=Array.isArray(r)?r[0]:r;e.removeEventListener(i,t)}(a||n)&&(Xe(e,i,n,a),a&&Ke([i]))}else if(t.slice(0,5)===`attr:`)W(e,t.slice(5),n);else if(t.slice(0,5)===`bool:`)Je(e,t.slice(5),n);else if((d=t.slice(0,5)===`prop:`)||(l=Fe.has(t))||!i&&((u=Re(t,e.tagName))||(c=Pe.has(t)))||(s=e.nodeName.includes(`-`)||`is`in o)){if(d)t=t.slice(5),c=!0;else if(G(e))return n;t===`class`||t===`className`?Ye(e,n):s&&!c&&!l?e[it(t)]=n:e[u||t]=n}else{let r=i&&t.indexOf(`:`)>-1&&Be[t.split(`:`)[0]];r?qe(e,r,t,n):W(e,Ie[t]||t,n)}return n}function st(e){if(a.registry&&a.events&&a.events.find(([t,n])=>n===e))return;let t=e.target,n=`$$${e.type}`,r=e.target,i=e.currentTarget,o=t=>Object.defineProperty(e,`target`,{configurable:!0,value:t}),s=()=>{let r=t[n];if(r&&!t.disabled){let i=t[`${n}Data`];if(i===void 0?r.call(t,e):r.call(t,i,e),e.cancelBubble)return}return t.host&&typeof t.host!=`string`&&!t.host._$host&&t.contains(e.target)&&o(t.host),!0},c=()=>{for(;s()&&(t=t._$host||t.parentNode||t.host););};if(Object.defineProperty(e,`currentTarget`,{configurable:!0,get(){return t||document}}),a.registry&&!a.done&&(a.done=_$HY.done=!0),e.composedPath){let n=e.composedPath();o(n[0]);for(let e=0;e<n.length-2&&(t=n[e],s());e++){if(t._$host){t=t._$host,c();break}if(t.parentNode===i)break}}else c();o(r)}function K(e,t,n,r,i){let a=G(e);if(a){!n&&(n=[...e.childNodes]);let t=[];for(let e=0;e<n.length;e++){let r=n[e];r.nodeType===8&&r.data.slice(0,2)===`!$`?r.remove():t.push(r)}n=t}for(;typeof n==`function`;)n=n();if(t===n)return n;let o=typeof t,s=r!==void 0;if(e=s&&n[0]&&n[0].parentNode||e,o===`string`||o===`number`){if(a||o===`number`&&(t=t.toString(),t===n))return n;if(s){let i=n[0];i&&i.nodeType===3?i.data!==t&&(i.data=t):i=document.createTextNode(t),n=q(e,n,r,i)}else n=n!==``&&typeof n==`string`?e.firstChild.data=t:e.textContent=t}else if(t==null||o===`boolean`){if(a)return n;n=q(e,n,r)}else if(o===`function`)return w(()=>{let i=t();for(;typeof i==`function`;)i=i();n=K(e,i,n,r)}),()=>n;else if(Array.isArray(t)){let o=[],c=n&&Array.isArray(n);if(ct(o,t,n,i))return w(()=>n=K(e,o,n,r,!0)),()=>n;if(a){if(!o.length)return n;if(r===void 0)return n=[...e.childNodes];let t=o[0];if(t.parentNode!==e)return n;let i=[t];for(;(t=t.nextSibling)!==r;)i.push(t);return n=i}if(o.length===0){if(n=q(e,n,r),s)return n}else c?n.length===0?lt(e,o,r):He(e,n,o):(n&&q(e),lt(e,o));n=o}else if(t.nodeType){if(a&&t.parentNode)return n=s?[t]:t;if(Array.isArray(n)){if(s)return n=q(e,n,r,t);q(e,n,null,t)}else n==null||n===``||!e.firstChild?e.appendChild(t):e.replaceChild(t,e.firstChild);n=t}return n}function ct(e,t,n,r){let i=!1;for(let a=0,o=t.length;a<o;a++){let o=t[a],s=n&&n[e.length],c;if(!(o==null||o===!0||o===!1))if((c=typeof o)==`object`&&o.nodeType)e.push(o);else if(Array.isArray(o))i=ct(e,o,s)||i;else if(c===`function`)if(r){for(;typeof o==`function`;)o=o();i=ct(e,Array.isArray(o)?o:[o],Array.isArray(s)?s:[s])||i}else e.push(o),i=!0;else{let t=String(o);s&&s.nodeType===3&&s.data===t?e.push(s):e.push(document.createTextNode(t))}}return i}function lt(e,t,n=null){for(let r=0,i=t.length;r<i;r++)e.insertBefore(t[r],n)}function q(e,t,n,r){if(n===void 0)return e.textContent=``;let i=r||document.createTextNode(``);if(t.length){let r=!1;for(let a=t.length-1;a>=0;a--){let o=t[a];if(i!==o){let t=o.parentNode===e;!r&&!a?t?e.replaceChild(i,o):e.insertBefore(i,n):t&&o.remove()}else r=!0}}else e.insertBefore(i,n);return[i]}const ut=e=>!!(e?.isConnected??e?.ownerDocument?.contains(e)),dt=[`input`,`textarea`,`select`,`searchbox`,`slider`,`spinbutton`,`menuitem`,`menuitemcheckbox`,`menuitemradio`,`option`,`radio`,`textbox`,`combobox`],ft=e=>{if(e.composed){let t=e.composedPath()[0];if(t instanceof HTMLElement)return t}else if(e.target instanceof HTMLElement)return e.target},pt=e=>{if(document.designMode===`on`)return!0;let t=ft(e);if(!t)return!1;if(t.isContentEditable)return!0;let n=r(t);return dt.some(e=>e===n||e===t.role)},mt=e=>{let t=e.target;if(t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement){let e=t.selectionStart??0;return(t.selectionEnd??0)-e>0}return!1},ht=()=>{let e=window.getSelection();return e?e.toString().length>0:!1},gt=/^rgba?\(\s*([\d.]+)[,\s]+([\d.]+)[,\s]+([\d.]+)(?:\s*[,/]\s*([\d.]+%?))?\s*\)$/,J=e=>Math.max(0,Math.min(255,Math.round(e))).toString(16).padStart(2,`0`),_t=(e,t,n,r=1)=>{let i=J(e),a=J(t),o=J(n);return r>=1?`#${i}${a}${o}`:`#${i}${a}${o}${J(r*255)}`},vt=e=>{if(!e.startsWith(`#`))return null;let t=e.slice(1);if(t.length!==6&&t.length!==8)return null;let n=parseInt(t.slice(0,2),16),r=parseInt(t.slice(2,4),16),i=parseInt(t.slice(4,6),16),a=t.length===8?parseInt(t.slice(6,8),16)/255:1;return!Number.isFinite(n)||!Number.isFinite(r)||!Number.isFinite(i)?null:{red:n,green:r,blue:i,alpha:a}},yt=e=>{let t=e.match(gt);if(!t)return null;let n=1;if(t[4]!==void 0){let e=t[4];n=e.endsWith(`%`)?Number(e.slice(0,-1))/100:Number(e)}return _t(Number(t[1]),Number(t[2]),Number(t[3]),n)},bt=e=>{let t=e.match(gt);return!t||t[4]===void 0?!1:(t[4].endsWith(`%`)?Number(t[4].slice(0,-1))/100:Number(t[4]))===0},xt=/^#?([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,St=e=>{let t=e.match(xt);if(!t)return null;let n=t[1];return n.length===3?`#${n[0]}${n[0]}${n[1]}${n[1]}${n[2]}${n[2]}`:n.length===4?`#${n[0]}${n[0]}${n[1]}${n[1]}${n[2]}${n[2]}${n[3]}${n[3]}`:`#${n}`},Ct=`rgba(0, 0, 0, 0)`,wt=/^oklch\(\s*([+-]?\d*\.?\d+%?)\s+([+-]?\d*\.?\d+%?)\s+([+-]?\d*\.?\d+)(deg|grad|rad|turn)?(?:\s*\/\s*([+-]?\d*\.?\d+%?))?\s*\)$/i,Tt=180/Math.PI,Et=(e,t)=>e.endsWith(`%`)?Number(e.slice(0,-1))/100*t:Number(e),Dt=(e,t)=>{let n=Number(e);return t===`grad`?n*.9:t===`rad`?n*Tt:t===`turn`?n*360:n},Ot=e=>{let t=Math.max(0,Math.min(1,e));return(t<=.0031308?t*12.92:1.055*t**(1/2.4)-.055)*255},kt=e=>{let t=e.match(wt);if(!t)return null;let n=Et(t[1],1),r=Et(t[2],.4),i=Dt(t[3],t[4])*Math.PI/180,a=t[5]===void 0?1:Et(t[5],1);if(![n,r,i,a].every(Number.isFinite))return null;let o=r*Math.cos(i),s=r*Math.sin(i),c=n+.3963377774*o+.2158037573*s,l=n-.1055613458*o-.0638541728*s,u=n-.0894841775*o-1.291485548*s,d=c**3,f=l**3,p=u**3,m=4.0767416621*d-3.3077115913*f+.2309699292*p,h=-1.2684380046*d+2.6097574011*f-.3413193965*p,g=-.0041960863*d-.7034186147*f+1.707614701*p;return _t(Ot(m),Ot(h),Ot(g),Math.max(0,Math.min(1,a)))};let At=null;const jt=()=>At||(typeof document>`u`?null:(At=document.createElement(`canvas`).getContext(`2d`,{willReadFrequently:!0}),At)),Mt=(e,t)=>{e.clearRect(0,0,1,1),e.fillStyle=t,e.fillRect(0,0,1,1);let n=e.getImageData(0,0,1,1).data;return n[3]===0?i:_t(n[0],n[1],n[2],n[3]/255)},Nt=e=>{let t=e.trim();if(!t)return null;if(t.toLowerCase()===`transparent`)return i;let n=St(t);if(n)return n;let r=kt(t);if(r)return r;let a=jt();if(!a)return null;a.fillStyle=Ct,a.fillStyle=t;let o=a.fillStyle;return typeof o==`string`?o.toLowerCase()===Ct?t.toLowerCase().replace(/\s+/g,``)===`rgba(0,0,0,0)`?i:null:o.startsWith(`#`)&&o.length===7?o:o.startsWith(`rgb`)?yt(o):Mt(a,t):null},Pt=(e,t,n)=>Math.max(t,Math.min(e,n));let Y=null;const Ft=()=>{if(typeof navigator>`u`||!(`userAgentData`in navigator))return null;let e=navigator.userAgentData;if(typeof e!=`object`||!e||!(`platform`in e))return null;let t=e.platform;return typeof t==`string`?t:null},It=()=>{if(Y===null){if(typeof navigator>`u`)return Y=!1,Y;let e=navigator.platform??Ft()??navigator.userAgent;Y=/Mac|iPhone|iPad|iPod/i.test(e)}return Y},Lt=(e,t)=>{try{return e.composedPath().some(e=>e instanceof HTMLElement&&e.hasAttribute(t))}catch{return!1}},Rt=`padding-top.padding-right.padding-bottom.padding-left.margin-top.margin-right.margin-bottom.margin-left.gap.row-gap.column-gap.font-size.line-height.letter-spacing.border-radius.border-top-left-radius.border-top-right-radius.border-bottom-right-radius.border-bottom-left-radius.border-width.border-top-width.border-right-width.border-bottom-width.border-left-width.opacity.width.height.min-width.min-height.max-width.max-height.top.right.bottom.left.z-index`.split(`.`),zt=.5,Bt=384,Vt=-128,Ht=-512,Ut=-9999,Wt=9999,Gt=new Set([`letter-spacing`,`gap`,`row-gap`,`column-gap`]),Kt=new Set([`z-index`]),qt=[{key:`padding`,label:`padding`,longhands:[`padding-top`,`padding-right`,`padding-bottom`,`padding-left`]},{key:`padding-top,padding-bottom`,label:`padding-y`,longhands:[`padding-top`,`padding-bottom`]},{key:`padding-left,padding-right`,label:`padding-x`,longhands:[`padding-left`,`padding-right`]},{key:`padding-top`,label:`padding top`,longhands:[`padding-top`]},{key:`padding-right`,label:`padding right`,longhands:[`padding-right`]},{key:`padding-bottom`,label:`padding bottom`,longhands:[`padding-bottom`]},{key:`padding-left`,label:`padding left`,longhands:[`padding-left`]}],Jt=[{key:`margin`,label:`margin`,longhands:[`margin-top`,`margin-right`,`margin-bottom`,`margin-left`]},{key:`margin-top,margin-bottom`,label:`margin-y`,longhands:[`margin-top`,`margin-bottom`]},{key:`margin-left,margin-right`,label:`margin-x`,longhands:[`margin-left`,`margin-right`]},{key:`margin-top`,label:`margin top`,longhands:[`margin-top`]},{key:`margin-right`,label:`margin right`,longhands:[`margin-right`]},{key:`margin-bottom`,label:`margin bottom`,longhands:[`margin-bottom`]},{key:`margin-left`,label:`margin left`,longhands:[`margin-left`]}],Yt=[{key:`gap`,label:`gap`,longhands:[`row-gap`,`column-gap`]},{key:`row-gap`,label:`row gap`,longhands:[`row-gap`]},{key:`column-gap`,label:`column gap`,longhands:[`column-gap`]}],Xt=[{key:`border-radius`,label:`border radius`,longhands:[`border-top-left-radius`,`border-top-right-radius`,`border-bottom-right-radius`,`border-bottom-left-radius`]},{key:`border-top-left-radius,border-top-right-radius`,label:`top corners`,longhands:[`border-top-left-radius`,`border-top-right-radius`]},{key:`border-bottom-left-radius,border-bottom-right-radius`,label:`bottom corners`,longhands:[`border-bottom-left-radius`,`border-bottom-right-radius`]},{key:`border-top-left-radius,border-bottom-left-radius`,label:`left corners`,longhands:[`border-top-left-radius`,`border-bottom-left-radius`]},{key:`border-top-right-radius,border-bottom-right-radius`,label:`right corners`,longhands:[`border-top-right-radius`,`border-bottom-right-radius`]},{key:`border-top-left-radius`,label:`top left radius`,longhands:[`border-top-left-radius`]},{key:`border-top-right-radius`,label:`top right radius`,longhands:[`border-top-right-radius`]},{key:`border-bottom-right-radius`,label:`bottom right radius`,longhands:[`border-bottom-right-radius`]},{key:`border-bottom-left-radius`,label:`bottom left radius`,longhands:[`border-bottom-left-radius`]}],Zt=[{key:`top,right,bottom,left`,label:`inset`,longhands:[`top`,`right`,`bottom`,`left`]},{key:`top,bottom`,label:`inset-y`,longhands:[`top`,`bottom`]},{key:`left,right`,label:`inset-x`,longhands:[`left`,`right`]},{key:`top`,label:`top`,longhands:[`top`]},{key:`right`,label:`right`,longhands:[`right`]},{key:`bottom`,label:`bottom`,longhands:[`bottom`]},{key:`left`,label:`left`,longhands:[`left`]}],Qt=new Set(Zt.map(e=>e.key)),$t=[qt,Jt,Yt,Xt,[{key:`border-width`,label:`border width`,longhands:[`border-top-width`,`border-right-width`,`border-bottom-width`,`border-left-width`]},{key:`border-top-width`,label:`border top width`,longhands:[`border-top-width`]},{key:`border-right-width`,label:`border right width`,longhands:[`border-right-width`]},{key:`border-bottom-width`,label:`border bottom width`,longhands:[`border-bottom-width`]},{key:`border-left-width`,label:`border left width`,longhands:[`border-left-width`]}],[{key:`width,height`,label:`size`,longhands:[`width`,`height`]},{key:`width`,label:`width`,longhands:[`width`]},{key:`height`,label:`height`,longhands:[`height`]}],Zt],en=[{key:`font-size`,label:`font size`},{key:`line-height`,label:`line height`},{key:`letter-spacing`,label:`letter spacing`},{key:`min-width`,label:`min width`},{key:`min-height`,label:`min height`},{key:`max-width`,label:`max width`},{key:`max-height`,label:`max height`},{key:`z-index`,label:`z-index`},{key:`opacity`,label:`opacity`}],tn=[{key:`color`,label:`text color`,alwaysShow:!0},{key:`background-color`,label:`background`,alwaysShow:!0},{key:`border-color`,label:`border color`},{key:`fill`,label:`fill`},{key:`stroke`,label:`stroke`}],nn=[{value:`ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"`,label:`sans`},{value:`ui-serif, Georgia, Cambria, "Times New Roman", Times, serif`,label:`serif`},{value:`ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace`,label:`mono`},{value:`system-ui, sans-serif`,label:`system`},{value:`serif`,label:`serif`},{value:`monospace`,label:`mono`}],rn=e=>{let t=e.trim();return nn.some(e=>e.value===t)?nn:[{value:t,label:`current`},...nn]},an={key:`font-family`,label:`font family`},on=[{key:`display`,label:`display`,options:[{value:`block`,label:`block`},{value:`flex`,label:`flex`},{value:`inline-block`,label:`inline-block`},{value:`inline`,label:`inline`},{value:`grid`,label:`grid`},{value:`none`,label:`none`}]},{key:`text-align`,label:`text align`,options:[{value:`left`,label:`left`},{value:`center`,label:`center`},{value:`right`,label:`right`},{value:`justify`,label:`justify`}]},{key:`font-style`,label:`font style`,options:[{value:`normal`,label:`normal`},{value:`italic`,label:`italic`}]},{key:`text-transform`,label:`text transform`,options:[{value:`none`,label:`none`},{value:`uppercase`,label:`uppercase`},{value:`lowercase`,label:`lowercase`},{value:`capitalize`,label:`capitalize`}]},{key:`white-space`,label:`white space`,options:[{value:`normal`,label:`normal`},{value:`nowrap`,label:`nowrap`},{value:`pre`,label:`pre`},{value:`pre-wrap`,label:`pre-wrap`},{value:`pre-line`,label:`pre-line`},{value:`break-spaces`,label:`break-spaces`}]},{key:`word-break`,label:`word break`,options:[{value:`normal`,label:`normal`},{value:`break-all`,label:`break-all`},{value:`keep-all`,label:`keep-all`}]},{key:`overflow-wrap`,label:`wrap`,options:[{value:`normal`,label:`normal`},{value:`break-word`,label:`break-word`},{value:`anywhere`,label:`anywhere`}]},{key:`font-variant-numeric`,label:`number style`,options:[{value:`normal`,label:`normal`},{value:`tabular-nums`,label:`tabular`},{value:`proportional-nums`,label:`proportional`},{value:`lining-nums`,label:`lining`},{value:`oldstyle-nums`,label:`oldstyle`},{value:`slashed-zero`,label:`slashed zero`}]},{key:`text-decoration-line`,label:`decoration`,options:[{value:`none`,label:`none`},{value:`underline`,label:`underline`},{value:`line-through`,label:`strike`}]},{key:`border-style`,label:`border style`,options:[{value:`none`,label:`none`},{value:`solid`,label:`solid`},{value:`dashed`,label:`dashed`},{value:`dotted`,label:`dotted`}]},{key:`visibility`,label:`visibility`,options:[{value:`visible`,label:`visible`},{value:`hidden`,label:`hidden`}]},{key:`align-items`,label:`align items`,options:[{value:`stretch`,label:`stretch`},{value:`flex-start`,label:`start`},{value:`center`,label:`center`},{value:`flex-end`,label:`end`},{value:`baseline`,label:`baseline`}]},{key:`justify-content`,label:`justify content`,options:[{value:`flex-start`,label:`start`},{value:`center`,label:`center`},{value:`flex-end`,label:`end`},{value:`space-between`,label:`between`},{value:`space-around`,label:`around`},{value:`space-evenly`,label:`evenly`}]},{key:`font-weight`,label:`font weight`,options:[{value:`100`,label:`thin`},{value:`200`,label:`extra-light`},{value:`300`,label:`light`},{value:`400`,label:`normal`},{value:`500`,label:`medium`},{value:`600`,label:`semibold`},{value:`700`,label:`bold`},{value:`800`,label:`extra-bold`},{value:`900`,label:`black`}]}],sn=[...Rt,`color`,`background-color`,`border-color`,`fill`,`stroke`,`font-family`,`display`,`text-align`,`font-style`,`text-transform`,`white-space`,`word-break`,`overflow-wrap`,`font-variant-numeric`,`text-decoration-line`,`border-style`,`visibility`,`align-items`,`justify-content`,`font-weight`],cn=e=>Number.isInteger(e)?e:Math.round(e*100)/100,ln=e=>Number.isInteger(e)?String(e):e.toFixed(2).replace(/\.?0+$/,``),un=e=>Number.isFinite(e)?ln(cn(e)):String(e),dn=e=>Math.round(e),fn=(e,t)=>{if(e.kind===`color`||e.kind===`enum`)return typeof t==`string`?t:e.value;let n=typeof t==`number`?t:e.value;return e.key===`opacity`&&e.unit===`%`?ln(cn(n/100)):`${ln(cn(n))}${e.unit}`},pn={slate:{50:`#f8fafc`,100:`#f1f5f9`,200:`#e2e8f0`,300:`#cbd5e1`,400:`#94a3b8`,500:`#64748b`,600:`#475569`,700:`#334155`,800:`#1e293b`,900:`#0f172a`,950:`#020617`},gray:{50:`#f9fafb`,100:`#f3f4f6`,200:`#e5e7eb`,300:`#d1d5db`,400:`#9ca3af`,500:`#6b7280`,600:`#4b5563`,700:`#374151`,800:`#1f2937`,900:`#111827`,950:`#030712`},zinc:{50:`#fafafa`,100:`#f4f4f5`,200:`#e4e4e7`,300:`#d4d4d8`,400:`#a1a1aa`,500:`#71717a`,600:`#52525b`,700:`#3f3f46`,800:`#27272a`,900:`#18181b`,950:`#09090b`},neutral:{50:`#fafafa`,100:`#f5f5f5`,200:`#e5e5e5`,300:`#d4d4d4`,400:`#a3a3a3`,500:`#737373`,600:`#525252`,700:`#404040`,800:`#262626`,900:`#171717`,950:`#0a0a0a`},stone:{50:`#fafaf9`,100:`#f5f5f4`,200:`#e7e5e4`,300:`#d6d3d1`,400:`#a8a29e`,500:`#78716c`,600:`#57534e`,700:`#44403c`,800:`#292524`,900:`#1c1917`,950:`#0c0a09`},red:{50:`#fef2f2`,100:`#fee2e2`,200:`#fecaca`,300:`#fca5a5`,400:`#f87171`,500:`#ef4444`,600:`#dc2626`,700:`#b91c1c`,800:`#991b1b`,900:`#7f1d1d`,950:`#450a0a`},orange:{50:`#fff7ed`,100:`#ffedd5`,200:`#fed7aa`,300:`#fdba74`,400:`#fb923c`,500:`#f97316`,600:`#ea580c`,700:`#c2410c`,800:`#9a3412`,900:`#7c2d12`,950:`#431407`},amber:{50:`#fffbeb`,100:`#fef3c7`,200:`#fde68a`,300:`#fcd34d`,400:`#fbbf24`,500:`#f59e0b`,600:`#d97706`,700:`#b45309`,800:`#92400e`,900:`#78350f`,950:`#451a03`},yellow:{50:`#fefce8`,100:`#fef9c3`,200:`#fef08a`,300:`#fde047`,400:`#facc15`,500:`#eab308`,600:`#ca8a04`,700:`#a16207`,800:`#854d0e`,900:`#713f12`,950:`#422006`},lime:{50:`#f7fee7`,100:`#ecfccb`,200:`#d9f99d`,300:`#bef264`,400:`#a3e635`,500:`#84cc16`,600:`#65a30d`,700:`#4d7c0f`,800:`#3f6212`,900:`#365314`,950:`#1a2e05`},green:{50:`#f0fdf4`,100:`#dcfce7`,200:`#bbf7d0`,300:`#86efac`,400:`#4ade80`,500:`#22c55e`,600:`#16a34a`,700:`#15803d`,800:`#166534`,900:`#14532d`,950:`#052e16`},emerald:{50:`#ecfdf5`,100:`#d1fae5`,200:`#a7f3d0`,300:`#6ee7b7`,400:`#34d399`,500:`#10b981`,600:`#059669`,700:`#047857`,800:`#065f46`,900:`#064e3b`,950:`#022c22`},teal:{50:`#f0fdfa`,100:`#ccfbf1`,200:`#99f6e4`,300:`#5eead4`,400:`#2dd4bf`,500:`#14b8a6`,600:`#0d9488`,700:`#0f766e`,800:`#115e59`,900:`#134e4a`,950:`#042f2e`},cyan:{50:`#ecfeff`,100:`#cffafe`,200:`#a5f3fc`,300:`#67e8f9`,400:`#22d3ee`,500:`#06b6d4`,600:`#0891b2`,700:`#0e7490`,800:`#155e75`,900:`#164e63`,950:`#083344`},sky:{50:`#f0f9ff`,100:`#e0f2fe`,200:`#bae6fd`,300:`#7dd3fc`,400:`#38bdf8`,500:`#0ea5e9`,600:`#0284c7`,700:`#0369a1`,800:`#075985`,900:`#0c4a6e`,950:`#082f49`},blue:{50:`#eff6ff`,100:`#dbeafe`,200:`#bfdbfe`,300:`#93c5fd`,400:`#60a5fa`,500:`#3b82f6`,600:`#2563eb`,700:`#1d4ed8`,800:`#1e40af`,900:`#1e3a8a`,950:`#172554`},indigo:{50:`#eef2ff`,100:`#e0e7ff`,200:`#c7d2fe`,300:`#a5b4fc`,400:`#818cf8`,500:`#6366f1`,600:`#4f46e5`,700:`#4338ca`,800:`#3730a3`,900:`#312e81`,950:`#1e1b4b`},violet:{50:`#f5f3ff`,100:`#ede9fe`,200:`#ddd6fe`,300:`#c4b5fd`,400:`#a78bfa`,500:`#8b5cf6`,600:`#7c3aed`,700:`#6d28d9`,800:`#5b21b6`,900:`#4c1d95`,950:`#2e1065`},purple:{50:`#faf5ff`,100:`#f3e8ff`,200:`#e9d5ff`,300:`#d8b4fe`,400:`#c084fc`,500:`#a855f7`,600:`#9333ea`,700:`#7e22ce`,800:`#6b21a8`,900:`#581c87`,950:`#3b0764`},fuchsia:{50:`#fdf4ff`,100:`#fae8ff`,200:`#f5d0fe`,300:`#f0abfc`,400:`#e879f9`,500:`#d946ef`,600:`#c026d3`,700:`#a21caf`,800:`#86198f`,900:`#701a75`,950:`#4a044e`},pink:{50:`#fdf2f8`,100:`#fce7f3`,200:`#fbcfe8`,300:`#f9a8d4`,400:`#f472b6`,500:`#ec4899`,600:`#db2777`,700:`#be185d`,800:`#9d174d`,900:`#831843`,950:`#500724`},rose:{50:`#fff1f2`,100:`#ffe4e6`,200:`#fecdd3`,300:`#fda4af`,400:`#fb7185`,500:`#f43f5e`,600:`#e11d48`,700:`#be123c`,800:`#9f1239`,900:`#881337`,950:`#4c0519`}},mn={p:`padding`,px:`padding-left,padding-right`,py:`padding-top,padding-bottom`,pt:`padding-top`,pr:`padding-right`,pb:`padding-bottom`,pl:`padding-left`,ps:`padding-left`,pe:`padding-right`,m:`margin`,mx:`margin-left,margin-right`,my:`margin-top,margin-bottom`,mt:`margin-top`,mr:`margin-right`,mb:`margin-bottom`,ml:`margin-left`,ms:`margin-left`,me:`margin-right`,gap:`gap`,"gap-x":`column-gap`,"gap-y":`row-gap`,text:`font-size`,leading:`line-height`,tracking:`letter-spacing`,rounded:`border-radius`,"rounded-t":`border-top-left-radius,border-top-right-radius`,"rounded-b":`border-bottom-left-radius,border-bottom-right-radius`,"rounded-l":`border-top-left-radius,border-bottom-left-radius`,"rounded-r":`border-top-right-radius,border-bottom-right-radius`,"rounded-tl":`border-top-left-radius`,"rounded-tr":`border-top-right-radius`,"rounded-bl":`border-bottom-left-radius`,"rounded-br":`border-bottom-right-radius`,border:`border-width`,"border-t":`border-top-width`,"border-r":`border-right-width`,"border-b":`border-bottom-width`,"border-l":`border-left-width`,w:`width`,h:`height`,size:`width,height`,"max-w":`max-width`,"max-h":`max-height`,"min-w":`min-width`,"min-h":`min-height`,opacity:`opacity`,inset:`top,right,bottom,left`,"inset-x":`left,right`,"inset-y":`top,bottom`,top:`top`,right:`right`,bottom:`bottom`,left:`left`,z:`z-index`,items:`align-items`,justify:`justify-content`,font:`font-weight`,whitespace:`white-space`},hn={"font-size":[`font-size`,`font size`,`text-size`,`text size`],color:[`color`,`text-color`,`text color`,`text-colour`,`text colour`,`foreground`,`fg`],"background-color":[`background`,`background-color`,`background color`,`bg`,`bg-color`,`bg color`],"border-color":[`border-color`,`border color`],fill:[`fill`,`fill-color`,`fill color`],stroke:[`stroke`,`stroke-color`,`stroke color`],"font-family":[`font`,`font-sans`,`font-serif`,`font-mono`,`family`,`sans`,`serif`,`mono`],"font-style":[`italic`,`not-italic`],"text-align":[`text-left`,`text-center`,`text-right`,`text-justify`],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-decoration-line":[`underline`,`line-through`,`no-underline`],"white-space":[`whitespace`,`whitespace-normal`,`whitespace-nowrap`,`whitespace-pre`],"word-break":[`break-normal`,`break-all`,`break-keep`],"overflow-wrap":[`break-words`,`break-anywhere`],"font-variant-numeric":[`tabular-nums`,`proportional-nums`,`lining-nums`,`oldstyle-nums`],"border-style":[`border-solid`,`border-dashed`,`border-dotted`,`border-none`]},gn=(()=>{let e={};for(let[t,n]of Object.entries(mn))n!==void 0&&(e[n]??=new Set).add(t);let t={};for(let[n,r]of Object.entries(e))r!==void 0&&(t[n]=Array.from(r));for(let[e,n]of Object.entries(hn)){let r=new Set([...t[e]??[],...n]);t[e]=Array.from(r)}return t})(),X={text:`color`,bg:`background-color`,border:`border-color`,"border-x":`border-color`,"border-y":`border-color`,"border-t":`border-color`,"border-r":`border-color`,"border-b":`border-color`,"border-l":`border-color`,"border-s":`border-color`,"border-e":`border-color`,fill:`fill`,stroke:`stroke`},_n=e=>mn[e]!==void 0||X[e]!==void 0,Z=e=>{let t=0,n=-1;for(let r=0;r<e.length;r++){let i=e[r];i===`[`?t++:i===`]`?t--:i===`:`&&t===0&&(n=r)}let r=n>=0?e.slice(n+1):e;return r.startsWith(`!`)?r.slice(1):r},Q=e=>{let t=Z(e);if(!t)return null;let n=t.indexOf(`[`);if(n>0)return t.slice(0,n).replace(/-$/,``)||null;let r=t.split(`-`).filter(Boolean);if(r.length===0)return null;for(let e=r.length;e>=1;e--){let t=r.slice(0,e).join(`-`);if(_n(t))return t}return r[0]},vn=/-(red|orange|amber|yellow|lime|green|emerald|teal|cyan|sky|blue|indigo|violet|purple|fuchsia|pink|rose|slate|gray|zinc|neutral|stone|black|white|transparent|current|inherit)\b/,yn=(e,t)=>e!==`text`&&e!==`bg`&&e!==`border`&&!e.startsWith(`border-`)?!1:vn.test(t),bn=new Set(`color.red.orange.amber.yellow.lime.green.emerald.teal.cyan.sky.blue.indigo.violet.purple.fuchsia.pink.rose.slate.gray.grey.zinc.neutral.stone.black.white.transparent.current.currentcolor.inherit.primary.secondary.accent.muted.foreground.background.destructive.success.warning.error.info.card.popover.input.ring`.split(`.`)),xn=new Set([`xs`,`sm`,`base`,`lg`,`xl`,`2xl`,`3xl`,`4xl`,`5xl`,`6xl`,`7xl`,`8xl`,`9xl`]),Sn=/^(#|rgb|rgba|hsl|hsla|hwb|lab|lch|oklab|oklch|color:|color\(|var\(--.*color)/,Cn=/^(-?\d|length:|size:)/,$=e=>e.trim().toLowerCase().replace(/\s+/g,`-`).replace(/([a-z])(\d)/g,`$1-$2`),wn=e=>Sn.test(e)&&!Cn.test(e),Tn=(e,t)=>{if(e===t)return``;let n=`${t}-`;return e.startsWith(n)?e.slice(n.length):null},En=e=>{let t=Z($(e)),n=Q(t);if(!n)return null;let r=X[n];if(!r)return null;let i=t.indexOf(`[`);if(i>=0)return wn(t.slice(i+1).replace(/\]$/,``))?r:null;let a=Tn(t,n);if(a===null)return null;if(n===`bg`&&a===``||(n===`fill`||n===`stroke`)&&a===``)return r;let o=a.split(`-`)[0];return n===`text`&&xn.has(o)?null:bn.has(o)?r:null},Dn={black:`#000000`,white:`#ffffff`,transparent:i},On=e=>{let t=Z($(e)),n=Q(t);if(!n||X[n]===void 0||t.includes(`[`))return null;let r=Tn(t,n);if(!r)return null;let i=Dn[r];if(i)return i;let a=r.lastIndexOf(`-`);if(a<0)return null;let o=r.slice(0,a),s=o===`grey`?`gray`:o,c=Number.parseInt(r.slice(a+1),10);return pn[s]?.[c]??null},kn=/^-?\d/,An=(e,t)=>{if(t===``||t.startsWith(`[`)||kn.test(t))return!0;let n=t.split(`-`)[0];return e===`text`?xn.has(n):e===`font`||e===`border`||e.startsWith(`border-`)?!1:(e===`rounded`||e.startsWith(`rounded-`),!0)},jn={"font-sans":{property:`font-family`,value:`ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"`},"font-serif":{property:`font-family`,value:`ui-serif, Georgia, Cambria, "Times New Roman", Times, serif`},"font-mono":{property:`font-family`,value:`ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace`},"font-thin":{property:`font-weight`,value:`100`},"font-extralight":{property:`font-weight`,value:`200`},"font-light":{property:`font-weight`,value:`300`},"font-normal":{property:`font-weight`,value:`400`},"font-medium":{property:`font-weight`,value:`500`},"font-semibold":{property:`font-weight`,value:`600`},"font-bold":{property:`font-weight`,value:`700`},"font-extrabold":{property:`font-weight`,value:`800`},"font-black":{property:`font-weight`,value:`900`},"text-left":{property:`text-align`,value:`left`},"text-center":{property:`text-align`,value:`center`},"text-right":{property:`text-align`,value:`right`},"text-justify":{property:`text-align`,value:`justify`},italic:{property:`font-style`,value:`italic`},"not-italic":{property:`font-style`,value:`normal`},uppercase:{property:`text-transform`,value:`uppercase`},lowercase:{property:`text-transform`,value:`lowercase`},capitalize:{property:`text-transform`,value:`capitalize`},"normal-case":{property:`text-transform`,value:`none`},underline:{property:`text-decoration-line`,value:`underline`},"line-through":{property:`text-decoration-line`,value:`line-through`},"no-underline":{property:`text-decoration-line`,value:`none`},"whitespace-normal":{property:`white-space`,value:`normal`},"whitespace-nowrap":{property:`white-space`,value:`nowrap`},"whitespace-pre":{property:`white-space`,value:`pre`},"whitespace-pre-line":{property:`white-space`,value:`pre-line`},"whitespace-pre-wrap":{property:`white-space`,value:`pre-wrap`},"whitespace-break-spaces":{property:`white-space`,value:`break-spaces`},"break-normal":{property:`word-break`,value:`normal`},"break-all":{property:`word-break`,value:`break-all`},"break-keep":{property:`word-break`,value:`keep-all`},"break-words":{property:`overflow-wrap`,value:`break-word`},"break-anywhere":{property:`overflow-wrap`,value:`anywhere`},"tabular-nums":{property:`font-variant-numeric`,value:`tabular-nums`},"proportional-nums":{property:`font-variant-numeric`,value:`proportional-nums`},"lining-nums":{property:`font-variant-numeric`,value:`lining-nums`},"oldstyle-nums":{property:`font-variant-numeric`,value:`oldstyle-nums`},"slashed-zero":{property:`font-variant-numeric`,value:`slashed-zero`},"border-solid":{property:`border-style`,value:`solid`},"border-dashed":{property:`border-style`,value:`dashed`},"border-dotted":{property:`border-style`,value:`dotted`},"border-none":{property:`border-style`,value:`none`}},Mn=e=>{let t=$(e);if(!t)return[];let n=Ln(t);if(n)return[n.property];let r=En(t);return r?[r]:[]},Nn=e=>{let t=$(e);if(!t)return[];let n=Q(t);if(!n)return[];let r=Tn(Z(t),n);if(r===null||!An(n,r))return[];let i=In(n);return i?[i]:[]},Pn=e=>{let t=e.getAttribute(`class`);if(!t)return new Set;let n=t.split(/\s+/).filter(Boolean),r=new Set;for(let e of n){let t=Q(e);if(!t||yn(t,e))continue;let n=Ln(e);if(n){r.add(n.property);continue}let i=In(t);i&&r.add(i)}return r},Fn=e=>gn[e]??[],In=e=>{let t=mn[e];return t===void 0?null:t},Ln=e=>{let t=jn[Z(e)];return t===void 0?null:t},Rn=`react-grab-toolbar-state`,zn=()=>{try{let n=localStorage.getItem(Rn);if(!n)return null;let r=JSON.parse(n);if(typeof r!=`object`||!r)return null;let i=r,a=typeof i.collapsed==`boolean`?i.collapsed:!1;return{edge:i.edge===`top`||i.edge===`bottom`||i.edge===`left`||i.edge===`right`?i.edge:`bottom`,ratio:typeof i.ratio==`number`?i.ratio:e,collapsed:a,enabled:!a,defaultAction:typeof i.defaultAction==`string`?i.defaultAction:t}}catch(e){console.warn(`[react-grab] Failed to load toolbar state from localStorage:`,e)}return null},Bn=e=>{try{localStorage.setItem(Rn,JSON.stringify(e))}catch(e){console.warn(`[react-grab] Failed to save toolbar state to localStorage:`,e)}},Vn=e=>{let[t,r]=C(!1);return O(()=>{let t=n(t=>r(e(t))),i=()=>r(!1);window.addEventListener(`keydown`,t,{capture:!0}),window.addEventListener(`keyup`,t,{capture:!0}),window.addEventListener(`blur`,i),k(()=>{window.removeEventListener(`keydown`,t,{capture:!0}),window.removeEventListener(`keyup`,t,{capture:!0}),window.removeEventListener(`blur`,i)})}),t},Hn=e=>e.key===`Enter`,Un=e=>e.metaKey||e.ctrlKey,Wn=(e,t,n={})=>{if(!t.key)return null;if(Hn(t))return e.find(e=>e.shortcut===`Enter`)??null;if(t.repeat)return null;let r=t.key.toLowerCase();return Un(t)?n.includeModifierShortcuts===!0?e.find(e=>e.shortcut!==void 0&&e.shortcut!==`Enter`&&e.shortcutModifier!==!1&&r===e.shortcut.toLowerCase())??null:null:e.find(e=>e.shortcut!==void 0&&e.shortcutModifier===!1&&r===e.shortcut.toLowerCase())??null},Gn=()=>{let e=!1;return{arm:()=>{e=!0},clear:()=>{e=!1},consume:()=>e?(e=!1,!0):!1}};export{$e as $,Rt as A,vt as B,Gt as C,D as Ct,Ht as D,E as Dt,Qt as E,De as Et,Lt as F,Xe as G,ht as H,It as I,Ke as J,Ze as K,Pt as L,Wt as M,Ut as N,en as O,le as Ot,rn as P,W as Q,Nt as R,on as S,Ee as St,Vt as T,O as Tt,pt as U,mt as V,ut as W,Ve as X,nt as Y,We as Z,dn as _,re as _t,Bn as a,d as at,sn as b,A as bt,En as c,Ne as ct,Mn as d,ie as dt,et,$ as f,Se as ft,fn as g,w as gt,un as h,T as ht,zn as i,l as it,Kt as j,Bt as k,On as l,je as lt,In as m,te as mt,Wn as n,Ge as nt,Pn as o,ke as ot,Ln as p,ce as pt,Ye as q,Vn as r,tt as rt,Fn as s,Ae as st,Gn as t,Qe as tt,Nn as u,Me as ut,$t as v,S as vt,an as w,k as wt,tn as x,be as xt,zt as y,C as yt,bt as z};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license MIT
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) 2025 Aiden Bai
|
|
5
|
+
*
|
|
6
|
+
* This source code is licensed under the MIT license found in the
|
|
7
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
|
+
*/
|
|
9
|
+
let e=null;const t=()=>{if(e!==null)return e;try{e=window.matchMedia(`(color-gamut: p3)`).matches}catch{e=!1}return e},n=t(),r=e=>n?`color(display-p3 0.84 0.19 0.78 / ${e})`:`rgba(210, 57, 192, ${e})`;let i=null;const a=e=>{i=e},o=()=>i,s=e=>i?e!==null&&i.contains(e):!0,c=e=>e,l=[`/components/ui/`,`/packages/ui/`,`/design-system/`,`/design-systems/`,`/primitives/`],u=r(.4),ee=r(.05),te=r(.5),ne=r(.08),re=r(.15),ie=[`id`,`class`,`aria-label`,`data-testid`,`role`,`name`,`title`],ae=new Set([`id`,`data-testid`,`aria-label`,`href`,`src`,`alt`,`type`,`name`,`placeholder`,`role`,`for`,`action`,`method`,`title`,`disabled`,`checked`,`readonly`,`required`,`selected`,`open`]),oe=new Set([`a`,`code`,`pre`]),se=new Set([`script`,`style`,`template`,`noscript`]),ce=[`Meta`,`Control`,`Shift`,`Alt`],le=new Set([`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`]),d=`data-react-grab-frozen`,ue={left:-9999,top:-9999},de={left:`left center`,right:`right center`,top:`center top`,bottom:`center bottom`},fe=new Set(`display.position.top.right.bottom.left.z-index.overflow.overflow-x.overflow-y.width.height.min-width.min-height.max-width.max-height.margin-top.margin-right.margin-bottom.margin-left.padding-top.padding-right.padding-bottom.padding-left.flex-direction.flex-wrap.justify-content.align-items.align-self.align-content.flex-grow.flex-shrink.flex-basis.order.gap.row-gap.column-gap.grid-template-columns.grid-template-rows.grid-template-areas.font-family.font-size.font-weight.font-style.line-height.letter-spacing.text-align.text-decoration-line.text-decoration-style.text-transform.text-overflow.text-shadow.white-space.word-break.overflow-wrap.vertical-align.color.background-color.background-image.background-position.background-size.background-repeat.border-top-width.border-right-width.border-bottom-width.border-left-width.border-top-style.border-right-style.border-bottom-style.border-left-style.border-top-color.border-right-color.border-bottom-color.border-left-color.border-top-left-radius.border-top-right-radius.border-bottom-left-radius.border-bottom-right-radius.box-shadow.opacity.transform.filter.backdrop-filter.object-fit.object-position`.split(`.`)),pe=e=>(e.tagName||``).toLowerCase();let me;const he=()=>{if(me!==void 0)return me;let e=document.querySelector(`script[nonce], style[nonce]`),t=e?.nonce||e?.getAttribute(`nonce`)||null;return t&&(me=t),t},ge=[[`data-rr-block`,``],[`data-rr-ignore`,``],[`data-rr-mask`,``],[`data-sentry-block`,``],[`data-sentry-ignore`,``],[`data-sentry-mask`,``],[`data-dd-privacy`,`hidden`],[`data-fs-exclude`,``],[`data-lr-exclude`,``],[`data-hj-suppress`,``],[`data-recording-disable`,``],[`data-clarity-mask`,`true`],[`data-heap-redact-text`,``]],_e=e=>{for(let[t,n]of ge)e.setAttribute(t,n);e.setAttribute(`data-testid`,`react-grab-overlay`),e.classList.add(`ph-no-capture`)},ve=`bippy-0.5.42`,ye=Object.defineProperty,be=Object.prototype.hasOwnProperty,f=()=>{},xe=e=>{try{Function.prototype.toString.call(e).indexOf(`^_^`)>-1&&setTimeout(()=>{throw Error(`React is running in production mode, but dead code elimination has not been applied. Read how to correctly configure React for production: https://reactjs.org/link/perf-use-production-build`)})}catch{}},Se=(e=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__)=>!!(e&&`getFiberRoots`in e);let Ce=!1,we;const Te=(e=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__)=>Ce?!0:(e&&typeof e.inject==`function`&&(we=e.inject.toString()),!!we?.includes(`(injected)`)),p=new Set,m=new Set,Ee=e=>{let t=new Map,n=0,r={_instrumentationIsActive:!1,_instrumentationSource:ve,checkDCE:xe,hasUnsupportedRendererAttached:!1,inject(e){let i=++n;return t.set(i,e),m.add(e),r._instrumentationIsActive||(r._instrumentationIsActive=!0,p.forEach(e=>e())),i},on:f,onCommitFiberRoot:f,onCommitFiberUnmount:f,onPostCommitFiberRoot:f,renderers:t,supportsFiber:!0,supportsFlight:!0};try{ye(globalThis,`__REACT_DEVTOOLS_GLOBAL_HOOK__`,{configurable:!0,enumerable:!0,get(){return r},set(t){if(t&&typeof t==`object`){let n=r.renderers;r=t,n.size>0&&(n.forEach((e,n)=>{m.add(e),t.renderers.set(n,e)}),De(e))}}});let t=window.hasOwnProperty,n=!1;ye(window,`hasOwnProperty`,{configurable:!0,value:function(...e){try{if(!n&&e[0]===`__REACT_DEVTOOLS_GLOBAL_HOOK__`)return globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__=void 0,n=!0,-0}catch{}return t.apply(this,e)},writable:!0})}catch{De(e)}return r},De=e=>{e&&p.add(e);try{let t=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!t)return;if(!t._instrumentationSource){t.checkDCE=xe,t.supportsFiber=!0,t.supportsFlight=!0,t.hasUnsupportedRendererAttached=!1,t._instrumentationSource=ve,t._instrumentationIsActive=!1;let e=Se(t);if(e||(t.on=f),t.renderers.size){t._instrumentationIsActive=!0,p.forEach(e=>e());return}let n=t.inject,r=Te(t);r&&!e&&(Ce=!0,t.inject({scheduleRefresh(){}})&&(t._instrumentationIsActive=!0)),t.inject=e=>{let i=n(e);return m.add(e),r&&t.renderers.set(i,e),t._instrumentationIsActive=!0,p.forEach(e=>e()),i}}(t.renderers.size||t._instrumentationIsActive||Te())&&e?.()}catch{}},Oe=()=>be.call(globalThis,`__REACT_DEVTOOLS_GLOBAL_HOOK__`),h=e=>Oe()?(De(e),globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__):Ee(e),ke=()=>!!(typeof window<`u`&&(window.document?.createElement||window.navigator?.product===`ReactNative`)),Ae=()=>{try{ke()&&h()}catch{}},g=e=>{switch(e.tag){case 1:case 11:case 0:case 14:case 15:return!0;default:return!1}};function je(e,t,n=!1){if(!e)return null;let r=t(e);if(r instanceof Promise)return(async()=>{if(await r===!0)return e;let i=n?e.return:e.child;for(;i;){let e=await Ne(i,t,n);if(e)return e;i=n?null:i.sibling}return null})();if(r===!0)return e;let i=n?e.return:e.child;for(;i;){let e=Me(i,t,n);if(e)return e;i=n?null:i.sibling}return null}const Me=(e,t,n=!1)=>{if(!e)return null;if(t(e)===!0)return e;let r=n?e.return:e.child;for(;r;){let e=Me(r,t,n);if(e)return e;r=n?null:r.sibling}return null},Ne=async(e,t,n=!1)=>{if(!e)return null;if(await t(e)===!0)return e;let r=n?e.return:e.child;for(;r;){let e=await Ne(r,t,n);if(e)return e;r=n?null:r.sibling}return null},Pe=e=>{let t=e;return typeof t==`function`?t:typeof t==`object`&&t?Pe(t.type||t.render):null},_=e=>{let t=e;if(typeof t==`string`)return t;if(typeof t!=`function`&&!(typeof t==`object`&&t))return null;let n=t.displayName||t.name||null;if(n)return n;let r=Pe(t);return r&&(r.displayName||r.name)||null},Fe=()=>{let e=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__;return!!e?._instrumentationIsActive||Se(e)||Te(e)},Ie=e=>Object.prototype.toString.call(e)===`[object Object]`&&(Object.getPrototypeOf(e)===Object.prototype||Object.getPrototypeOf(e)===null),Le=(e,t=[])=>{if(!Ie(e))return[{path:t,value:e}];let n=[];for(let r in e){let i=e[r],a=t.concat(r);Ie(i)?n.push(...Le(i,a)):n.push({path:a,value:i})}return n},Re=e=>{let t=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t?.renderers)for(let n of t.renderers.values())try{let t=n.findFiberByHostInstance?.(e);if(t)return t}catch{}if(typeof e==`object`&&e){if(`_reactRootContainer`in e)return e._reactRootContainer?._internalRoot?.current?.child;for(let t in e)if(t.startsWith(`__reactContainer$`)||t.startsWith(`__reactInternalInstance$`)||t.startsWith(`__reactFiber`))return e[t]||null}return null},ze=new Set,Be=/^[a-zA-Z][a-zA-Z\d+\-.]*:/,Ve=[`rsc://`,`file:///`,`webpack-internal://`,`webpack://`,`node:`,`turbopack://`,`metro://`,`/app-pages-browser/`,`/(app-pages-browser)/`],He=[`<anonymous>`,`eval`,``],Ue=/\.(jsx|tsx|ts|js)$/,We=/(\.min|bundle|chunk|vendor|vendors|runtime|polyfill|polyfills)\.(js|mjs|cjs)$|(chunk|bundle|vendor|vendors|runtime|polyfill|polyfills|framework|app|main|index)[-_.][A-Za-z0-9_-]{4,}\.(js|mjs|cjs)$|[\da-f]{8,}\.(js|mjs|cjs)$|[-_.][\da-f]{20,}\.(js|mjs|cjs)$|\/dist\/|\/build\/|\/.next\/|\/out\/|\/node_modules\/|\.webpack\.|\.vite\.|\.turbopack\./i,Ge=/^\?[\w~.-]+(?:=[^&#]*)?(?:&[\w~.-]+(?:=[^&#]*)?)*$/,Ke=/\(at [^)]+\)$/,qe=/(^|@)\S+:\d+/,Je=/^\s*at .*(\S+:\d+|\(native\))/m,Ye=/^(eval@)?(\[native code\])?$/,Xe=(e,t)=>{if(t?.includeInElement!==!1){let n=e.split(`
|
|
10
|
+
`),r=[];for(let e of n)if(/^\s*at\s+/.test(e)){let t=$e(e,void 0)[0];t&&r.push(t)}else if(/^\s*in\s+/.test(e)){let t=e.replace(/^\s*in\s+/,``).replace(/\s*\(at .*\)$/,``);r.push({functionName:t,source:e})}else if(e.match(qe)){let t=et(e,void 0)[0];t&&r.push(t)}return Qe(r,t)}return e.match(Je)?$e(e,t):et(e,t)},Ze=e=>{if(!e.includes(`:`))return[e,void 0,void 0];let t=e.startsWith(`(`)&&/:\d+\)$/.test(e)?e.slice(1,-1):e,n=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(t);return n?[n[1],n[2]||void 0,n[3]||void 0]:[t,void 0,void 0]},Qe=(e,t)=>t&&t.slice!=null?Array.isArray(t.slice)?e.slice(t.slice[0],t.slice[1]):e.slice(0,t.slice):e,$e=(e,t)=>Qe(e.split(`
|
|
11
|
+
`).filter(e=>!!e.match(Je)),t).map(e=>{let t=e;t.includes(`(eval `)&&(t=t.replace(/eval code/g,`eval`).replace(/(\(eval at [^()]*)|(,.*$)/g,``));let n=t.replace(/^\s+/,``).replace(/\(eval code/g,`(`).replace(/^.*?\s+/,``),r=n.match(/ (\(.+\)$)/);n=r?n.replace(r[0],``):n;let i=Ze(r?r[1]:n);return{functionName:r&&n||void 0,fileName:[`eval`,`<anonymous>`].includes(i[0])?void 0:i[0],lineNumber:i[1]?+i[1]:void 0,columnNumber:i[2]?+i[2]:void 0,source:t}}),et=(e,t)=>Qe(e.split(`
|
|
12
|
+
`).filter(e=>!e.match(Ye)),t).map(e=>{let t=e;if(t.includes(` > eval`)&&(t=t.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,`:$1`)),!t.includes(`@`)&&!t.includes(`:`))return{functionName:t};{let e=/(([^\n\r"\u2028\u2029]*".[^\n\r"\u2028\u2029]*"[^\n\r@\u2028\u2029]*(?:@[^\n\r"\u2028\u2029]*"[^\n\r@\u2028\u2029]*)*(?:[\n\r\u2028\u2029][^@]*)?)?[^@]*)@/,n=t.match(e),r=n&&n[1]?n[1]:void 0,i=Ze(t.replace(e,``));return{functionName:r,fileName:i[0],lineNumber:i[1]?+i[1]:void 0,columnNumber:i[2]?+i[2]:void 0,source:t}}});var tt=44,nt=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,rt=new Uint8Array(64),it=new Uint8Array(128);for(let e=0;e<nt.length;e++){let t=nt.charCodeAt(e);rt[e]=t,it[t]=e}function v(e,t){let n=0,r=0,i=0;do i=it[e.next()],n|=(i&31)<<r,r+=5;while(i&32);let a=n&1;return n>>>=1,a&&(n=-2147483648|-n),t+n}function at(e,t){return e.pos>=t?!1:e.peek()!==tt}var ot=class{constructor(e){this.pos=0,this.buffer=e}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(e){let{buffer:t,pos:n}=this,r=t.indexOf(e,n);return r===-1?t.length:r}};function st(e){let{length:t}=e,n=new ot(e),r=[],i=0,a=0,o=0,s=0,c=0;do{let e=n.indexOf(`;`),t=[],l=!0,u=0;for(i=0;n.pos<e;){let r;i=v(n,i),i<u&&(l=!1),u=i,at(n,e)?(a=v(n,a),o=v(n,o),s=v(n,s),at(n,e)?(c=v(n,c),r=[i,a,o,s,c]):r=[i,a,o,s]):r=[i],t.push(r),n.pos++}l||ct(t),r.push(t),n.pos=e+1}while(n.pos<=t);return r}function ct(e){e.sort(lt)}function lt(e,t){return e[0]-t[0]}const ut=/^[a-zA-Z][a-zA-Z\d+\-.]*:/,dt=/^data:application\/json[^,]+base64,/,ft=/(?:\/\/[@#][ \t]+sourceMappingURL=([^\s'"]+?)[ \t]*$)|(?:\/\*[@#][ \t]+sourceMappingURL=([^*]+?)[ \t]*(?:\*\/)[ \t]*$)/,y=new Map,b=new Map,pt=(e,t,n,r)=>{if(n<0||n>=e.length)return null;let i=e[n];if(!i||i.length===0)return null;let a=null;for(let e of i)if(e[0]<=r)a=e;else break;if(!a||a.length<4)return null;let[,o,s,c]=a;if(o===void 0||s===void 0||c===void 0)return null;let l=t[o];return l?{columnNumber:c,fileName:l,lineNumber:s+1}:null},mt=(e,t,n)=>{if(e.sections){let r=null;for(let i of e.sections)if(t>i.offset.line||t===i.offset.line&&n>=i.offset.column)r=i;else break;if(!r)return null;let i=t-r.offset.line,a=t===r.offset.line?n-r.offset.column:n;return pt(r.map.mappings,r.map.sources,i,a)}return pt(e.mappings,e.sources,t-1,n)},ht=(e,t)=>{let n=t.split(`
|
|
13
|
+
`),r;for(let e=n.length-1;e>=0&&!r;e--){let t=n[e].match(ft);t&&(r=t[1]||t[2])}if(!r)return null;let i=ut.test(r);if(!(dt.test(r)||i||r.startsWith(`/`))){let t=e.split(`/`);t[t.length-1]=r,r=t.join(`/`)}return r},gt=e=>({file:e.file,mappings:st(e.mappings),names:e.names,sourceRoot:e.sourceRoot,sources:e.sources,sourcesContent:e.sourcesContent,version:3}),_t=e=>{let t=e.sections.map(({map:e,offset:t})=>({map:{...e,mappings:st(e.mappings)},offset:t})),n=new Set;for(let e of t)for(let t of e.map.sources)n.add(t);return{file:e.file,mappings:[],names:[],sections:t,sourceRoot:void 0,sources:Array.from(n),sourcesContent:void 0,version:3}},vt=e=>{if(!e)return!1;let t=e.trim();if(!t)return!1;let n=t.match(ut);if(!n)return!0;let r=n[0].toLowerCase();return r===`http:`||r===`https:`},yt=async(e,t=fetch)=>{if(!vt(e))return null;let n=await t(e);if(!n.ok)return null;let r=await n.text();if(!r)return null;let i=ht(e,r);if(!i||!vt(i))return null;let a=await t(i);if(!a.ok)return null;try{let e=await a.json();return`sections`in e?_t(e):gt(e)}catch{return null}},bt=async(e,t=!0,n)=>{if(t&&y.has(e))return y.get(e)??null;let r=t?b.get(e):void 0;if(r)return(await r).sourceMap;let i=yt(e,n).then(e=>({sourceMap:e,isTransientFailure:!1}),()=>({sourceMap:null,isTransientFailure:!0}));t&&b.set(e,i);let{sourceMap:a,isTransientFailure:o}=await i;return t&&(b.delete(e),o||y.set(e,a)),a},xt=async(e,t=!0,n)=>await Promise.all(e.map(async e=>{if(!e.fileName)return e;let r=await bt(e.fileName,t,n);if(!r||typeof e.lineNumber!=`number`||typeof e.columnNumber!=`number`)return e;let i=mt(r,e.lineNumber,e.columnNumber);return i?{...e,source:i.fileName&&e.source?e.source.replace(e.fileName,i.fileName):e.source,fileName:i.fileName,lineNumber:i.lineNumber,columnNumber:i.columnNumber,isSymbolicated:!0}:e})),St=e=>e._debugStack instanceof Error&&typeof e._debugStack?.stack==`string`,Ct=()=>{let e=h();for(let t of[...Array.from(m),...Array.from(e.renderers.values())]){let e=t.currentDispatcherRef;if(e&&typeof e==`object`)return`H`in e?e.H:e.current}return null},wt=e=>{for(let t of m){let n=t.currentDispatcherRef;n&&typeof n==`object`&&(`H`in n?n.H=e:n.current=e)}},x=e=>`\n in ${e}`,Tt=(e,t)=>{let n=x(e);return t&&(n+=` (at ${t})`),n};let S=!1;const C=(e,t)=>{if(!e||S)return``;let n=Error.prepareStackTrace;Error.prepareStackTrace=void 0,S=!0;let r=Ct();wt(null);let i=console.error,a=console.warn;console.error=()=>{},console.warn=()=>{};try{let n={DetermineComponentFrameRoot(){let n;try{if(t){let t=function(){throw Error()};if(Object.defineProperty(t.prototype,`props`,{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){n=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){n=e}e.call(t.prototype)}}else{try{throw Error()}catch(e){n=e}let t=e();t&&typeof t.catch==`function`&&t.catch(()=>{})}}catch(e){if(e instanceof Error&&n instanceof Error&&typeof e.stack==`string`)return[e.stack,n.stack]}return[null,null]}};n.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`,Object.getOwnPropertyDescriptor(n.DetermineComponentFrameRoot,`name`)?.configurable&&Object.defineProperty(n.DetermineComponentFrameRoot,`name`,{value:`DetermineComponentFrameRoot`});let[r,i]=n.DetermineComponentFrameRoot();if(r&&i){let t=r.split(`
|
|
14
|
+
`),n=i.split(`
|
|
15
|
+
`),a=0,o=0;for(;a<t.length&&!t[a].includes(`DetermineComponentFrameRoot`);)a++;for(;o<n.length&&!n[o].includes(`DetermineComponentFrameRoot`);)o++;if(a===t.length||o===n.length)for(a=t.length-1,o=n.length-1;a>=1&&o>=0&&t[a]!==n[o];)o--;for(;a>=1&&o>=0;a--,o--)if(t[a]!==n[o]){if(a!==1||o!==1)do if(a--,o--,o<0||t[a]!==n[o]){let n=`\n${t[a].replace(` at new `,` at `)}`,r=_(e);return r&&n.includes(`<anonymous>`)&&(n=n.replace(`<anonymous>`,r)),n}while(a>=1&&o>=0);break}}}finally{S=!1,Error.prepareStackTrace=n,wt(r),console.error=i,console.warn=a}let o=e?_(e):``;return o?x(o):``},Et=(e,t)=>{let n=e.tag,r=``;switch(n){case 28:r=x(`Activity`);break;case 1:r=C(e.type,!0);break;case 11:r=C(e.type.render,!1);break;case 0:case 15:r=C(e.type,!1);break;case 5:case 26:case 27:r=x(e.type);break;case 16:r=x(`Lazy`);break;case 13:r=e.child!==t&&t!==null?x(`Suspense Fallback`):x(`Suspense`);break;case 19:r=x(`SuspenseList`);break;case 30:r=x(`ViewTransition`);break;default:return``}return r},Dt=e=>{try{let t=``,n=e,r=null;do{t+=Et(n,r);let e=n._debugInfo;if(e&&Array.isArray(e))for(let n=e.length-1;n>=0;n--){let r=e[n];typeof r.name==`string`&&(t+=Tt(r.name,r.env))}r=n,n=n.return}while(n);return t}catch(e){return e instanceof Error?`\nError generating stack: ${e.message}\n${e.stack}`:``}},Ot=e=>{let t=Error.prepareStackTrace;Error.prepareStackTrace=void 0;let n=e;if(!n)return``;Error.prepareStackTrace=t,n.startsWith(`Error: react-stack-top-frame
|
|
16
|
+
`)&&(n=n.slice(29));let r=n.indexOf(`
|
|
17
|
+
`);if(r!==-1&&(n=n.slice(r+1)),r=Math.max(n.indexOf(`react_stack_bottom_frame`),n.indexOf(`react-stack-bottom-frame`)),r!==-1&&(r=n.lastIndexOf(`
|
|
18
|
+
`,r)),r!==-1)n=n.slice(0,r);else return``;return n},kt=e=>!!(e.functionName&&e.fileName&&(e.fileName.startsWith(`rsc://`)||e.fileName.startsWith(`about://React/`))),At=(e,t)=>e.fileName===t.fileName&&e.lineNumber===t.lineNumber&&e.columnNumber===t.columnNumber,jt=e=>{let t=new Map;for(let n of e)for(let e of n.stackFrames){if(!kt(e))continue;let n=e.functionName,r=t.get(n)??[];r.some(t=>At(t,e))||(r.push(e),t.set(n,r))}return t},Mt=(e,t,n)=>{if(!e.functionName)return{...e,isServer:!0};let r=t.get(e.functionName);if(!r||r.length===0)return{...e,isServer:!0};let i=n.get(e.functionName)??0,a=r[i%r.length];return n.set(e.functionName,i+1),{...e,isServer:!0,fileName:a.fileName,lineNumber:a.lineNumber,columnNumber:a.columnNumber,source:e.source?.replace(`(at Server)`,`(${a.fileName}:${a.lineNumber}:${a.columnNumber})`)}},Nt=e=>{let t=[];return je(e,e=>{if(!St(e))return;let n=typeof e.type==`string`?e.type:_(e.type)||`<anonymous>`;t.push({componentName:n,stackFrames:Xe(Ot(e._debugStack?.stack))})},!0),t},Pt=async(e,t=!0,n)=>{let r=Nt(e),i=Xe(Dt(e)),a=jt(r),o=new Map;return xt(i.map(e=>(e.source?.includes(`(at Server)`)??!1)||e.source!=null&&Ke.test(e.source)?Mt(e,a,o):e).filter((e,t,n)=>{if(t===0)return!0;let r=n[t-1];return e.functionName!==r.functionName}),t,n)},Ft=e=>{let t=e._debugSource;return t?typeof t==`object`&&!!t&&`fileName`in t&&typeof t.fileName==`string`&&`lineNumber`in t&&typeof t.lineNumber==`number`:!1},It=async(e,t=!0,n)=>{if(Ft(e))return e._debugSource||null;let r=await Pt(e,t,n);for(let e of r)if(e.fileName)return{fileName:e.fileName,lineNumber:e.lineNumber,columnNumber:e.columnNumber,functionName:e.functionName};return null},Lt=e=>e.split(`/`).filter(Boolean).length,Rt=e=>e.split(`/`).filter(Boolean)[0]??null,zt=e=>{let t=e.indexOf(`/`,1);if(t===-1||Lt(e.slice(0,t))!==1)return e;let n=e.slice(t);if(!Ue.test(n)||Lt(n)<2)return e;let r=Rt(n);return!r||r.startsWith(`@`)||r.length>4?e:n},w=e=>{if(!e||He.some(t=>t===e))return``;let t=e,n=t.startsWith(`http://`)||t.startsWith(`https://`);if(n)try{t=new URL(t).pathname}catch{}if(n&&(t=zt(t)),t.startsWith(`about://React/`)){let e=t.slice(14),n=e.indexOf(`/`),r=e.indexOf(`:`);t=n!==-1&&(r===-1||n<r)?e.slice(n+1):e}let r=!0;for(;r;){r=!1;for(let e of Ve)if(t.startsWith(e)){t=t.slice(e.length),e===`file:///`&&(t=`/${t.replace(/^\/+/,``)}`),r=!0;break}}if(Be.test(t)){let e=t.match(Be);e&&(t=t.slice(e[0].length))}if(t.startsWith(`//`)){let e=t.indexOf(`/`,2);t=e===-1?``:t.slice(e)}let i=t.indexOf(`?`);if(i!==-1){let e=t.slice(i);Ge.test(e)&&(t=t.slice(0,i))}return t},Bt=e=>{let t=w(e);return!(!t||!Ue.test(t)||We.test(t))},Vt=Symbol.for(`react.context`);let Ht=[],Ut=null;const Wt=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render."),T=()=>{let e=Ut;return e!==null&&(Ut=e.next),e},E=e=>e._currentValue,D=(e,t,n,r=null)=>{Ht.push({displayName:r,primitive:e,stackError:Error(),value:t,dispatcherHookName:n})},Gt=e=>{if(typeof e==`object`&&e){let t=e;if(typeof t.then==`function`){let e=t;switch(e.status){case`fulfilled`:return D(`Promise`,e.value,`Use`),e.value;case`rejected`:throw e.reason}throw D(`Unresolved`,e,`Use`),Wt}if(t.$$typeof===Vt&&`_currentValue`in t){let e=t,n=E(e);return D(`Context (use)`,n,`Use`,e.displayName||`Context`),n}}throw Error(`An unsupported type was passed to use(): `+String(e))},Kt=e=>{let t=E(e);return D(`Context`,t,`Context`,e.displayName||null),t},qt=e=>{let t=T(),n=t===null?typeof e==`function`?e():e:t.memoizedState;return D(`State`,n,`State`),[n,()=>{}]},Jt=(e,t,n)=>{let r=T(),i=r===null?n===void 0?t:n(t):r.memoizedState;return D(`Reducer`,i,`Reducer`),[i,()=>{}]},Yt=e=>{let t=T(),n=t===null?{current:e}:t.memoizedState;return D(`Ref`,n.current,`Ref`),n},Xt=()=>{let e=T();return D(`CacheRefresh`,e===null?()=>{}:e.memoizedState,`CacheRefresh`),()=>{}},Zt=e=>{T(),D(`LayoutEffect`,e,`LayoutEffect`)},Qt=e=>{T(),D(`InsertionEffect`,e,`InsertionEffect`)},$t=e=>{T(),D(`Effect`,e,`Effect`)},en=e=>{T();let t;typeof e==`object`&&e&&`current`in e&&(t=e.current),D(`ImperativeHandle`,t,`ImperativeHandle`)},tn=(e,t)=>{D(`DebugValue`,typeof t==`function`?t(e):e,`DebugValue`)},nn=e=>{let t=T();return D(`Callback`,t===null?e:t.memoizedState[0],`Callback`),e},rn=e=>{let t=T(),n=t===null?e():t.memoizedState[0];return D(`Memo`,n,`Memo`),n},an=(e,t)=>{let n=T();T();let r=n===null?t():n.memoizedState;return D(`SyncExternalStore`,r,`SyncExternalStore`),r},on=()=>{let e=T();T();let t=e===null?!1:e.memoizedState;return D(`Transition`,t,`Transition`),[t,()=>{}]},sn=e=>{let t=T(),n=t===null?e:t.memoizedState;return D(`DeferredValue`,n,`DeferredValue`),n},cn=()=>{let e=T(),t=e===null?``:e.memoizedState;return D(`Id`,t,`Id`),t},ln=e=>[],un=e=>{let t=T(),n=t===null?e:t.memoizedState;return D(`Optimistic`,n,`Optimistic`),[n,()=>{}]},dn=(e,t)=>{let n,r=null;if(e!==null){let t=e.memoizedState;if(typeof t==`object`&&t&&`then`in t&&typeof t.then==`function`){let e=t;switch(e.status){case`fulfilled`:n=e.value;break;case`rejected`:r=e.reason;break;default:r=Wt,n=e}}else n=t}else n=t;return{value:n,error:r}},fn=e=>(t,n)=>{let r=T();T(),T();let i=Error(),{value:a,error:o}=dn(r,n);if(Ht.push({displayName:null,primitive:e,stackError:i,value:a,dispatcherHookName:e}),o!==null)throw o;return[a,()=>{},!1]},pn=fn(`ActionState`),mn={readContext:E,use:Gt,useCallback:nn,useContext:Kt,useEffect:$t,useImperativeHandle:en,useLayoutEffect:Zt,useInsertionEffect:Qt,useMemo:rn,useReducer:Jt,useRef:Yt,useState:qt,useDebugValue:tn,useDeferredValue:sn,useTransition:on,useSyncExternalStore:an,useId:cn,useHostTransitionStatus:()=>{let e=E({_currentValue:null});return D(`HostTransitionStatus`,e,`HostTransitionStatus`),e},useFormState:fn(`FormState`),useActionState:pn,useOptimistic:un,useMemoCache:ln,useCacheRefresh:Xt,useEffectEvent:e=>(T(),D(`EffectEvent`,e,`EffectEvent`),e)};
|
|
19
|
+
/**
|
|
20
|
+
* @license bippy
|
|
21
|
+
*
|
|
22
|
+
* Copyright (c) Aiden Bai
|
|
23
|
+
*
|
|
24
|
+
* This source code is licensed under the MIT license found in the
|
|
25
|
+
* LICENSE file in the root directory of this source tree.
|
|
26
|
+
*/
|
|
27
|
+
typeof Proxy>`u`||new Proxy(mn,{get(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t];let n=Error(`Missing method in Dispatcher: `+t);throw n.name=`ReactDebugToolsUnsupportedHookError`,n}}),Ae();
|
|
28
|
+
/**
|
|
29
|
+
* @license bippy
|
|
30
|
+
*
|
|
31
|
+
* Copyright (c) Aiden Bai
|
|
32
|
+
*
|
|
33
|
+
* This source code is licensed under the MIT license found in the
|
|
34
|
+
* LICENSE file in the root directory of this source tree.
|
|
35
|
+
*/
|
|
36
|
+
const hn=/^(?:\.\/)?\/?\([a-z][a-z0-9-]*\)\//,gn=e=>{let t=w(e);return t=t.replace(hn,``),t.startsWith(`./`)&&(t=t.slice(2)),t};let _n;const vn=e=>(e&&(_n=void 0),_n??=typeof document<`u`&&!!(document.getElementById(`__NEXT_DATA__`)||document.querySelector(`nextjs-portal`)),_n);let O;const yn=()=>{if(O!==void 0)return O;let e=document.querySelector(`script[src*="/_next/"]`)?.src,t=e?new URL(e).pathname:``,n=t.indexOf(`/_next/`);return O=n>0?t.slice(0,n):``,O},bn=typeof window<`u`,xn=e=>0,Sn=e=>{},k=bn?(Object.getOwnPropertyDescriptor(Window.prototype,`requestAnimationFrame`)?.value??window.requestAnimationFrame).bind(window):xn,A=bn?(Object.getOwnPropertyDescriptor(Window.prototype,`cancelAnimationFrame`)?.value??window.cancelAnimationFrame).bind(window):Sn,Cn=()=>bn?new Promise(e=>k(()=>e())):Promise.resolve(),wn=(e,t=window.getComputedStyle(e))=>t.display!==`none`&&t.visibility!==`hidden`&&t.opacity!==`0`,Tn=e=>{let t=pe(e);return t===`html`||t===`body`},En=[`data-react-grab`,`data-react-grab-demo`],Dn=e=>En.some(t=>e.hasAttribute(t)),On=e=>{if(Dn(e))return!0;let t=e.getRootNode();return t instanceof ShadowRoot&&Dn(t.host)},kn=e=>e.hasAttribute(`data-react-grab-ignore`)||e.closest(`[data-react-grab-ignore]`)!==null,An=e=>{let t=parseInt(e.zIndex,10);return e.pointerEvents===`none`&&e.position===`fixed`&&!isNaN(t)&&t>=2147483600},jn=e=>{let t=e.backgroundColor;return t===`transparent`||t===`rgba(0, 0, 0, 0)`},Mn=e=>{let t=e.position;if(t!==`fixed`&&t!==`absolute`)return!1;if(jn(e)||parseFloat(e.opacity)<.1)return!0;let n=parseInt(e.zIndex,10);return!isNaN(n)&&n>1e3};let j=new WeakMap;const Nn=()=>{j=new WeakMap},Pn=e=>{if(Tn(e)||On(e)||kn(e))return!1;let t=performance.now(),n=j.get(e);if(n&&t-n.timestamp<50)return n.isVisible;let r=window.getComputedStyle(e);return wn(e,r)?e.clientWidth/window.innerWidth>=.9&&e.clientHeight/window.innerHeight>=.9&&(An(r)||Mn(r))?!1:(j.set(e,{isVisible:!0,timestamp:t}),!0):(j.set(e,{isVisible:!1,timestamp:t}),!1)},M=(e,t)=>{let n=document.createElement(`style`);n.setAttribute(e,``);let r=he();return r&&(n.nonce=r),_e(n),n.textContent=t,document.head.appendChild(n),n};let N=null,P=null;const Fn=()=>N!==null,In=()=>{N||(N=M(`data-react-grab-frozen-pseudo`,`html { pointer-events: none !important; }`),P=M(`data-react-grab-hittest-override`,`html, body { pointer-events: auto !important; }`),P.disabled=!0)},Ln=()=>{N?.remove(),N=null,P?.remove(),P=null},Rn=()=>{N&&(N.disabled||=!0,P?.disabled&&(P.disabled=!1))},zn=()=>{N&&(N.disabled&&=!1,P&&!P.disabled&&(P.disabled=!0))};let F=null,I=null,L=null;const Bn=(e,t,n)=>e>=n.left&&e<=n.right&&t>=n.top&&t<=n.bottom,Vn=()=>{L!==null&&clearTimeout(L),L=setTimeout(()=>{L=null,zn()},100)},Hn=()=>{L!==null&&(clearTimeout(L),L=null)},Un=(e,t,n,r)=>{let i=Math.abs(e-n),a=Math.abs(t-r);return i<=2&&a<=2},Wn=(e,t)=>{if(!Number.isFinite(e)||!Number.isFinite(t))return[];Hn(),Rn();let n=document.elementsFromPoint(e,t);return Vn(),o()?n.filter(s):n},Gn=(e,t)=>{if(!Number.isFinite(e)||!Number.isFinite(t))return null;let n=performance.now();if(I&&Bn(e,t,I.rect))return I.element;if(F){let r=Un(e,t,F.clientX,F.clientY),i=n-F.timestamp<16;if(r||i)return F.element}Hn(),Rn();let r=null,i=document.elementFromPoint(e,t);if(i&&Pn(i)&&s(i))r=i;else{let n=document.elementsFromPoint(e,t);for(let e of n)if(e!==i&&Pn(e)&&s(e)){r=e;break}}return Vn(),I=r instanceof HTMLIFrameElement?{element:r,rect:r.getBoundingClientRect()}:null,F={clientX:e,clientY:t,element:r,timestamp:n},r},Kn=()=>{Hn(),zn(),F=null,I=null},qn=async(e,t)=>{let n=vn(),r=new URLSearchParams({file:e}),i=n?`line1`:`line`,a=n?`column1`:`column`;t&&r.set(i,String(t)),r.set(a,`1`);let o=n?`${yn()}/__nextjs_launch-editor`:`/__open-in-editor`;return(await fetch(`${o}?${r}`)).ok},Jn=async(e,t,n)=>{let r=gn(e);if(await qn(r,t).catch(()=>!1))return;let i=t?`&line=${t}`:``,a=`https://react-grab.com/open-file?url=${encodeURIComponent(r)}${i}`,o=n?n(a,r,t):a;window.open(o,`_blank`,`noopener,noreferrer`)};let R=!1;const z=new Map;let Yn=-1;const Xn=new WeakSet,B=new Map,V=new Map,Zn=e=>Xn.has(e)?!0:!R||!(`gsapVersions`in window)||!(Error().stack??``).includes(`_tick`)?!1:(Xn.add(e),!0);typeof window<`u`&&(window.requestAnimationFrame=e=>{if(!Zn(e))return k(e);if(R){let t=Yn--;return z.set(t,e),t}let t=k(n=>{if(R){let n=Yn--;z.set(n,e),B.set(t,n);return}e(n)});return t},window.cancelAnimationFrame=e=>{if(z.has(e)){z.delete(e);return}let t=V.get(e);if(t!==void 0){A(t.nativeId),V.delete(e);return}let n=B.get(e);if(n!==void 0){z.delete(n),B.delete(e);return}A(e)});const Qn=()=>{if(!R){R=!0,z.clear(),B.clear();for(let[e,{nativeId:t,callback:n}]of V)A(t),z.set(e,n);V.clear()}},$n=()=>{if(R){R=!1;for(let[e,t]of z.entries()){let n=k(n=>{V.delete(e),t(n)});V.set(e,{nativeId:n,callback:t})}z.clear(),B.clear()}},er=`
|
|
37
|
+
[${d}],
|
|
38
|
+
[${d}] * {
|
|
39
|
+
animation-play-state: paused !important;
|
|
40
|
+
transition: none !important;
|
|
41
|
+
}
|
|
42
|
+
`;let tr=null,H=[],U=[],nr=[],W=null,G=[],K=[],q=!1;const J=new Map;let Y=[];const rr=()=>{tr||=M(`data-react-grab-frozen-styles`,er)},ir=(e,t)=>e.length===t.length&&e.every((e,n)=>e===t[n]),ar=e=>{let t=new Set;for(let n of e){n instanceof SVGSVGElement?t.add(n):n instanceof SVGElement&&n.ownerSVGElement&&t.add(n.ownerSVGElement);for(let e of n.querySelectorAll(`svg`))e instanceof SVGSVGElement&&t.add(e)}return[...t]},or=(e,t)=>{let n=Reflect.get(e,t);typeof n==`function`&&n.call(e)},sr=e=>{for(let t of e){let e=J.get(t)??0;e===0&&or(t,`pauseAnimations`),J.set(t,e+1)}},cr=e=>{for(let t of e){let e=J.get(t);if(e){if(e===1){J.delete(t),or(t,`unpauseAnimations`);continue}J.set(t,e-1)}}},lr=e=>{let t=[];for(let n of e)for(let e of n.getAnimations({subtree:!0}))e.playState===`running`&&t.push(e);return t},ur=e=>{for(let t of e)try{t.finish()}catch{}},dr=e=>{if(!(e.effect instanceof KeyframeEffect))return!1;let t=e.effect.target;return t instanceof Element&&t.getRootNode()instanceof ShadowRoot},fr=e=>{if(e.length!==0&&!ir(e,nr)){pr(),nr=[...e],rr(),H=e,U=ar(H),sr(U);for(let e of H)e.setAttribute(d,``);Y=lr(H);for(let e of Y)e.pause()}},pr=()=>{if(!(H.length===0&&U.length===0&&Y.length===0)){for(let e of H)e.removeAttribute(d);cr(U),ur(Y),H=[],U=[],Y=[],nr=[]}},mr=e=>e.length===0?(pr(),()=>{}):(fr(e),pr),hr=()=>{if(W)return[];let e=[];for(let t of document.getAnimations())dr(t)||t.playState===`running`&&e.push(t);return e},gr=e=>{if(!W){if(W=M(`data-react-grab-global-freeze`,``),e.length>200)W.textContent=`
|
|
43
|
+
*, *::before, *::after {
|
|
44
|
+
animation-play-state: paused !important;
|
|
45
|
+
transition: none !important;
|
|
46
|
+
}
|
|
47
|
+
`,q=!0,K=[];else{for(let t of e)t.pause();K=e,q=!1}G=ar(Array.from(document.querySelectorAll(`svg`))),sr(G),Qn()}},_r=()=>{if(W){if(q){W.textContent=`
|
|
48
|
+
*, *::before, *::after {
|
|
49
|
+
transition: none !important;
|
|
50
|
+
}
|
|
51
|
+
`;let e=[];for(let t of document.getAnimations())dr(t)||e.push(t);ur(e),q=!1}else{for(let e of K)try{e.finish()}catch{try{e.play()}catch{}}K=[]}W.remove(),W=null,cr(G),G=[],$n()}},vr=[`mouseenter`,`mouseleave`,`mouseover`,`mouseout`,`pointerenter`,`pointerleave`,`pointerover`,`pointerout`],yr=[`focus`,`blur`,`focusin`,`focusout`],br=[`background-color`,`color`,`border-color`,`box-shadow`,`transform`,`opacity`,`outline`,`filter`,`scale`,`visibility`],xr=[`background-color`,`color`,`border-color`,`box-shadow`,`outline`,`outline-offset`,`outline-width`,`outline-color`,`outline-style`,`filter`,`opacity`,`ring-color`,`ring-width`],Sr=new Map,Cr=new Map,wr=e=>{e.stopImmediatePropagation()},Tr=e=>{e.preventDefault(),e.stopImmediatePropagation()},Er=(e,t)=>{let n=new Map;for(let r of t){let t=e.style.getPropertyValue(r);t&&n.set(r,t)}return n},Dr=(e,t,n)=>{if(n?.has(e))return null;let r=getComputedStyle(e),i=e.style.cssText,a=Er(e,t);for(let e of t){let t=r.getPropertyValue(e);t&&(i+=`${e}: ${t} !important; `)}return{element:e,frozenStyles:i,originalPropertyValues:a}},Or=(e,t)=>{let n=[],r=document.elementFromPoint(e,t);for(;r&&r!==document.documentElement;)r instanceof HTMLElement&&n.push(r),r=r.parentElement;return n},kr=()=>{let e=[],t=document.activeElement;for(;t&&t!==document.body;)t instanceof HTMLElement&&e.push(t),t=t.shadowRoot?.activeElement??null;return e},Ar=(e,t)=>{for(let{element:n,frozenStyles:r,originalPropertyValues:i}of e)t.set(n,i),n.style.cssText=r},jr=(e,t)=>{for(let[n,r]of e)for(let e of t){let t=r.get(e);t?n.style.setProperty(e,t):n.style.removeProperty(e)}e.clear()},Mr=(e,t)=>{if(Fn())return null;let n=[],r=e!==void 0&&t!==void 0&&e>=0&&t>=0&&e<window.innerWidth&&t<window.innerHeight?Or(e,t):Array.from(document.querySelectorAll(`:hover`)).filter(e=>e instanceof HTMLElement);for(let e of r){let t=Dr(e,br);t&&n.push(t)}let i=[];for(let e of kr()){let t=Dr(e,xr,Cr);t&&i.push(t)}return{hoverStates:n,focusStates:i}},Nr=e=>{if(e){for(let e of vr)document.addEventListener(e,wr,!0);for(let e of yr)document.addEventListener(e,Tr,!0);Ar(e.hoverStates,Sr),Ar(e.focusStates,Cr),In()}},Pr=()=>{Kn();for(let e of vr)document.removeEventListener(e,wr,!0);for(let e of yr)document.removeEventListener(e,Tr,!0);jr(Sr,br),jr(Cr,xr),Ln()},Fr=(e,t)=>{let n=Mr(e,t),r=hr();Nr(n),gr(r)},Ir=()=>{Pr(),_r()},Lr=(e,t)=>{};let X=!1;const Rr=(e,t,n)=>{let r=e.get(t);if(r)return r;let i=n();return e.set(t,i),i},zr=new WeakMap,Br=new WeakMap,Vr=new WeakMap,Hr=new Set,Ur=[],Z=[],Q=new WeakMap,$=new WeakMap,Wr=new WeakSet,Gr=ze,Kr=e=>{let t=e;for(;t.return;)t=t.return;return t.stateNode??null},qr=()=>{if(Gr.size>0)return Gr;let e=new Set,t=n=>{let r=Re(n);if(r){let t=Kr(r);t&&e.add(t);return}for(let r of Array.from(n.children))if(t(r),e.size>0)return};return t(document.body),e},Jr=(e,t)=>{if(!e)return t;if(!t)return e;if(!e.next||!t.next)return t;let n=e.next,r=t.next,i=e===n,a=t===r;return i&&a?(e.next=t,t.next=e):i?(e.next=r,t.next=e):a?(t.next=n,e.next=t):(e.next=r,t.next=n),t},Yr=e=>{if(!e||Q.has(e))return;let t={originalPendingDescriptor:Object.getOwnPropertyDescriptor(e,`pending`),pendingValueAtPause:e.pending,bufferedPending:null};typeof e.getSnapshot==`function`&&(t.originalGetSnapshot=e.getSnapshot,t.snapshotValueAtPause=e.getSnapshot(),e.getSnapshot=()=>X?t.snapshotValueAtPause:t.originalGetSnapshot());let n=t.pendingValueAtPause;Object.defineProperty(e,`pending`,{configurable:!0,enumerable:!0,get:()=>X?null:n,set:e=>{if(X){e!==null&&(t.bufferedPending=Jr(t.bufferedPending??null,e));return}n=e}}),Q.set(e,t)},Xr=e=>{if(!e)return[];let t=[],n=e.next;if(!n)return[];let r=n;do r&&=(t.push(r.action),r.next);while(r&&r!==n);return t},Zr=e=>{let t=Q.get(e);if(!t)return;t.originalGetSnapshot&&(e.getSnapshot=t.originalGetSnapshot),t.originalPendingDescriptor?Object.defineProperty(e,`pending`,t.originalPendingDescriptor):delete e.pending,e.pending=null;let n=e.dispatch;if(typeof n==`function`){let e=Xr(t.pendingValueAtPause??null),r=Xr(t.bufferedPending??null);for(let t of[...e,...r])Z.push(()=>n(t))}Q.delete(e)},Qr=e=>{if($.has(e))return;let t={originalDescriptor:Object.getOwnPropertyDescriptor(e,`memoizedValue`),frozenValue:e.memoizedValue};Object.defineProperty(e,`memoizedValue`,{configurable:!0,enumerable:!0,get(){return X?t.frozenValue:t.originalDescriptor?.get?t.originalDescriptor.get.call(this):this._memoizedValue},set(e){if(X){t.pendingValue=e,t.didReceivePendingValue=!0;return}t.originalDescriptor?.set?t.originalDescriptor.set.call(this,e):this._memoizedValue=e}}),t.originalDescriptor?.get||(e._memoizedValue=t.frozenValue),$.set(e,t)},$r=e=>{let t=$.get(e);t&&(t.originalDescriptor?Object.defineProperty(e,`memoizedValue`,t.originalDescriptor):delete e.memoizedValue,t.didReceivePendingValue&&(e.memoizedValue=t.pendingValue),$.delete(e))},ei=e=>{let t=e.memoizedState;for(;t;)t.queue&&typeof t.queue==`object`&&Yr(t.queue),t=t.next;let n=e.dependencies?.firstContext;for(;n&&typeof n==`object`&&`memoizedValue`in n;)Qr(n),n=n.next},ti=e=>{let t=e.memoizedState;for(;t;)t.queue&&typeof t.queue==`object`&&Zr(t.queue),t=t.next;let n=e.dependencies?.firstContext;for(;n&&typeof n==`object`&&`memoizedValue`in n;)$r(n),n=n.next},ni=e=>{let t=e;for(;t;){if(g(t)&&ei(t),t.child){t=t.child;continue}for(;t!==e&&!t.sibling;)if(t=t.return,!t)return;if(t===e)return;t=t.sibling}},ri=e=>{let t=e;for(;t;){if(g(t)&&ti(t),t.child){t=t.child;continue}for(;t!==e&&!t.sibling;)if(t=t.return,!t)return;if(t===e)return;t=t.sibling}},ii=e=>{if(zr.has(e))return;let t=e,n={useState:t.useState,useReducer:t.useReducer,useTransition:t.useTransition,useSyncExternalStore:t.useSyncExternalStore};zr.set(e,n),t.useState=(...t)=>{let r=n.useState.apply(e,t);if(!X||!Array.isArray(r)||typeof r[1]!=`function`)return r;let[i,a]=r;return[i,Rr(Br,a,()=>(...e)=>{X?Z.push(()=>a(...e)):a(...e)})]},t.useReducer=(...t)=>{let r=n.useReducer.apply(e,t);if(!X||!Array.isArray(r)||typeof r[1]!=`function`)return r;let[i,a]=r;return[i,Rr(Br,a,()=>(...e)=>{X?Z.push(()=>a(...e)):a(...e)})]},t.useTransition=(...t)=>{let r=n.useTransition.apply(e,t);if(!X||!Array.isArray(r)||typeof r[1]!=`function`)return r;let[i,a]=r;return[i,Rr(Vr,a,()=>e=>{X?Ur.push(()=>a(e)):a(e)})]},t.useSyncExternalStore=((e,t,r)=>X?n.useSyncExternalStore(t=>e(()=>{X?Hr.add(t):t()}),t,r):n.useSyncExternalStore(e,t,r))},ai=e=>{let t=e.currentDispatcherRef;if(!t||typeof t!=`object`)return;let n=`H`in t?`H`:`current`,r=t[n];Object.defineProperty(t,n,{configurable:!0,enumerable:!0,get:()=>(r&&typeof r==`object`&&ii(r),r),set:e=>{r=e}})},oi=e=>{queueMicrotask(()=>{try{for(let t of h().renderers.values())if(typeof t.scheduleUpdate==`function`){for(let n of e)if(n.current)try{t.scheduleUpdate(n.current)}catch{}}}catch{}})},si=e=>{for(let t of e)try{t()}catch{}},ci=()=>{for(let e of h().renderers.values())Wr.has(e)||(ai(e),Wr.add(e))},li=()=>{if(X)return()=>{};ci(),X=!0;let e=qr();for(let t of e)ni(t.current);return()=>{if(X)try{let e=qr();for(let t of e)ri(t.current);let t=Array.from(Hr),n=Ur.slice(),r=Z.slice();X=!1,si(t),si(n),si(r),oi(e)}finally{Hr.clear(),Ur.length=0,Z.length=0}}};Object.defineProperty(exports,`$`,{enumerable:!0,get:function(){return 12e3}}),Object.defineProperty(exports,`A`,{enumerable:!0,get:function(){return Fe}}),Object.defineProperty(exports,`At`,{enumerable:!0,get:function(){return-9999}}),Object.defineProperty(exports,`B`,{enumerable:!0,get:function(){return`comment`}}),Object.defineProperty(exports,`Bt`,{enumerable:!0,get:function(){return`data-react-grab`}}),Object.defineProperty(exports,`C`,{enumerable:!0,get:function(){return Pt}}),Object.defineProperty(exports,`Ct`,{enumerable:!0,get:function(){return`var(--rg-shadow)`}}),Object.defineProperty(exports,`D`,{enumerable:!0,get:function(){return Xe}}),Object.defineProperty(exports,`Dt`,{enumerable:!0,get:function(){return se}}),Object.defineProperty(exports,`E`,{enumerable:!0,get:function(){return w}}),Object.defineProperty(exports,`Et`,{enumerable:!0,get:function(){return ie}}),Object.defineProperty(exports,`F`,{enumerable:!0,get:function(){return he}}),Object.defineProperty(exports,`Ft`,{enumerable:!0,get:function(){return .5}}),Object.defineProperty(exports,`G`,{enumerable:!0,get:function(){return de}}),Object.defineProperty(exports,`Gt`,{enumerable:!0,get:function(){return t}}),Object.defineProperty(exports,`H`,{enumerable:!0,get:function(){return`copy`}}),Object.defineProperty(exports,`Ht`,{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,`I`,{enumerable:!0,get:function(){return pe}}),Object.defineProperty(exports,`It`,{enumerable:!0,get:function(){return`0.1.47-dev.61857c7`}}),Object.defineProperty(exports,`J`,{enumerable:!0,get:function(){return 2e3}}),Object.defineProperty(exports,`K`,{enumerable:!0,get:function(){return ue}}),Object.defineProperty(exports,`L`,{enumerable:!0,get:function(){return le}}),Object.defineProperty(exports,`Lt`,{enumerable:!0,get:function(){return .01}}),Object.defineProperty(exports,`M`,{enumerable:!0,get:function(){return Re}}),Object.defineProperty(exports,`Mt`,{enumerable:!0,get:function(){return l}}),Object.defineProperty(exports,`N`,{enumerable:!0,get:function(){return g}}),Object.defineProperty(exports,`Nt`,{enumerable:!0,get:function(){return 8e3}}),Object.defineProperty(exports,`O`,{enumerable:!0,get:function(){return St}}),Object.defineProperty(exports,`Ot`,{enumerable:!0,get:function(){return`data-react-grab-input`}}),Object.defineProperty(exports,`P`,{enumerable:!0,get:function(){return _e}}),Object.defineProperty(exports,`Pt`,{enumerable:!0,get:function(){return 5e3}}),Object.defineProperty(exports,`Q`,{enumerable:!0,get:function(){return 1e3}}),Object.defineProperty(exports,`R`,{enumerable:!0,get:function(){return .2}}),Object.defineProperty(exports,`Rt`,{enumerable:!0,get:function(){return 2147483647}}),Object.defineProperty(exports,`S`,{enumerable:!0,get:function(){return It}}),Object.defineProperty(exports,`St`,{enumerable:!0,get:function(){return`var(--rg-panel-bg)`}}),Object.defineProperty(exports,`T`,{enumerable:!0,get:function(){return Ot}}),Object.defineProperty(exports,`Tt`,{enumerable:!0,get:function(){return ae}}),Object.defineProperty(exports,`U`,{enumerable:!0,get:function(){return .7}}),Object.defineProperty(exports,`Ut`,{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,`V`,{enumerable:!0,get:function(){return 1e7}}),Object.defineProperty(exports,`Vt`,{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,`W`,{enumerable:!0,get:function(){return .75}}),Object.defineProperty(exports,`Wt`,{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,`X`,{enumerable:!0,get:function(){return 8e3}}),Object.defineProperty(exports,`Y`,{enumerable:!0,get:function(){return 1e4}}),Object.defineProperty(exports,`Z`,{enumerable:!0,get:function(){return 5e3}}),Object.defineProperty(exports,`_`,{enumerable:!0,get:function(){return k}}),Object.defineProperty(exports,`_t`,{enumerable:!0,get:function(){return .5}}),Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return fr}}),Object.defineProperty(exports,`at`,{enumerable:!0,get:function(){return 1.2}}),Object.defineProperty(exports,`b`,{enumerable:!0,get:function(){return vn}}),Object.defineProperty(exports,`bt`,{enumerable:!0,get:function(){return ne}}),Object.defineProperty(exports,`c`,{enumerable:!0,get:function(){return Kn}}),Object.defineProperty(exports,`ct`,{enumerable:!0,get:function(){return .6}}),Object.defineProperty(exports,`d`,{enumerable:!0,get:function(){return zn}}),Object.defineProperty(exports,`dt`,{enumerable:!0,get:function(){return`superellipse(1.25)`}}),Object.defineProperty(exports,`et`,{enumerable:!0,get:function(){return 9e3}}),Object.defineProperty(exports,`f`,{enumerable:!0,get:function(){return Rn}}),Object.defineProperty(exports,`ft`,{enumerable:!0,get:function(){return ce}}),Object.defineProperty(exports,`g`,{enumerable:!0,get:function(){return A}}),Object.defineProperty(exports,`gt`,{enumerable:!0,get:function(){return .01}}),Object.defineProperty(exports,`h`,{enumerable:!0,get:function(){return Tn}}),Object.defineProperty(exports,`ht`,{enumerable:!0,get:function(){return-1e3}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return Ir}}),Object.defineProperty(exports,`it`,{enumerable:!0,get:function(){return 1500}}),Object.defineProperty(exports,`j`,{enumerable:!0,get:function(){return _}}),Object.defineProperty(exports,`jt`,{enumerable:!0,get:function(){return .95}}),Object.defineProperty(exports,`k`,{enumerable:!0,get:function(){return je}}),Object.defineProperty(exports,`kt`,{enumerable:!0,get:function(){return fe}}),Object.defineProperty(exports,`l`,{enumerable:!0,get:function(){return Gn}}),Object.defineProperty(exports,`lt`,{enumerable:!0,get:function(){return .18}}),Object.defineProperty(exports,`m`,{enumerable:!0,get:function(){return Pn}}),Object.defineProperty(exports,`mt`,{enumerable:!0,get:function(){return 1e3}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return Lr}}),Object.defineProperty(exports,`nt`,{enumerable:!0,get:function(){return`#00000000`}}),Object.defineProperty(exports,`o`,{enumerable:!0,get:function(){return mr}}),Object.defineProperty(exports,`ot`,{enumerable:!0,get:function(){return re}}),Object.defineProperty(exports,`p`,{enumerable:!0,get:function(){return Nn}}),Object.defineProperty(exports,`pt`,{enumerable:!0,get:function(){return 1e3}}),Object.defineProperty(exports,`q`,{enumerable:!0,get:function(){return`edit`}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return Fr}}),Object.defineProperty(exports,`rt`,{enumerable:!0,get:function(){return`transparent`}}),Object.defineProperty(exports,`s`,{enumerable:!0,get:function(){return Jn}}),Object.defineProperty(exports,`st`,{enumerable:!0,get:function(){return .5}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return li}}),Object.defineProperty(exports,`tt`,{enumerable:!0,get:function(){return`cubic-bezier(0.34, 1.56, 0.64, 1)`}}),Object.defineProperty(exports,`u`,{enumerable:!0,get:function(){return Wn}}),Object.defineProperty(exports,`ut`,{enumerable:!0,get:function(){return 1e4}}),Object.defineProperty(exports,`v`,{enumerable:!0,get:function(){return Cn}}),Object.defineProperty(exports,`vt`,{enumerable:!0,get:function(){return te}}),Object.defineProperty(exports,`w`,{enumerable:!0,get:function(){return Bt}}),Object.defineProperty(exports,`wt`,{enumerable:!0,get:function(){return oe}}),Object.defineProperty(exports,`x`,{enumerable:!0,get:function(){return gn}}),Object.defineProperty(exports,`xt`,{enumerable:!0,get:function(){return ee}}),Object.defineProperty(exports,`y`,{enumerable:!0,get:function(){return yn}}),Object.defineProperty(exports,`yt`,{enumerable:!0,get:function(){return u}}),Object.defineProperty(exports,`z`,{enumerable:!0,get:function(){return 16.666666666666668}}),Object.defineProperty(exports,`zt`,{enumerable:!0,get:function(){return 2147483645}});
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license MIT
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) 2025 Aiden Bai
|
|
5
|
+
*
|
|
6
|
+
* This source code is licensed under the MIT license found in the
|
|
7
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
|
+
*/
|
|
9
|
+
let e=null;const t=()=>{if(e!==null)return e;try{e=window.matchMedia(`(color-gamut: p3)`).matches}catch{e=!1}return e},n=t(),r=e=>n?`color(display-p3 0.84 0.19 0.78 / ${e})`:`rgba(210, 57, 192, ${e})`;let i=null;const a=e=>{i=e},o=()=>i,s=e=>i?e!==null&&i.contains(e):!0,c=e=>e,l=`data-react-grab`,u=`0.1.47-dev.61857c7`,ee=`var(--rg-panel-bg)`,te=`var(--rg-shadow)`,ne=-1e3,re=.95,ie=1500,ae=[`/components/ui/`,`/packages/ui/`,`/design-system/`,`/design-systems/`,`/primitives/`],oe=5e3,se=8e3,ce=1e4,le=2147483647,ue=2147483645,de=.7,fe=1e3/60,pe=.5,me=.01,he=r(.4),ge=r(.05),_e=r(.5),ve=r(.08),ye=r(.15),be=.2,xe=[`id`,`class`,`aria-label`,`data-testid`,`role`,`name`,`title`],Se=new Set([`id`,`data-testid`,`aria-label`,`href`,`src`,`alt`,`type`,`name`,`placeholder`,`role`,`for`,`action`,`method`,`title`,`disabled`,`checked`,`readonly`,`required`,`selected`,`open`]),Ce=new Set([`a`,`code`,`pre`]),we=new Set([`script`,`style`,`template`,`noscript`]),Te=[`Meta`,`Control`,`Shift`,`Alt`],Ee=new Set([`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`]),d=`data-react-grab-frozen`,De=.18,Oe=.6,ke=.5,Ae=`data-react-grab-input`,je=.5,Me=`copy`,Ne=`comment`,Pe=`edit`,Fe=`superellipse(1.25)`,Ie=.75,Le=.01,Re=1e3,ze={left:-9999,top:-9999},Be={left:`left center`,right:`right center`,top:`center top`,bottom:`center bottom`},Ve=1e3,He=`#00000000`,Ue=`transparent`,We=2e3,Ge=`cubic-bezier(0.34, 1.56, 0.64, 1)`,Ke=12e3,qe=9e3,Je=1e4,Ye=8e3,Xe=5e3,Ze=1e3,Qe=1e7,$e=1.2,et=-9999,tt=new Set(`display.position.top.right.bottom.left.z-index.overflow.overflow-x.overflow-y.width.height.min-width.min-height.max-width.max-height.margin-top.margin-right.margin-bottom.margin-left.padding-top.padding-right.padding-bottom.padding-left.flex-direction.flex-wrap.justify-content.align-items.align-self.align-content.flex-grow.flex-shrink.flex-basis.order.gap.row-gap.column-gap.grid-template-columns.grid-template-rows.grid-template-areas.font-family.font-size.font-weight.font-style.line-height.letter-spacing.text-align.text-decoration-line.text-decoration-style.text-transform.text-overflow.text-shadow.white-space.word-break.overflow-wrap.vertical-align.color.background-color.background-image.background-position.background-size.background-repeat.border-top-width.border-right-width.border-bottom-width.border-left-width.border-top-style.border-right-style.border-bottom-style.border-left-style.border-top-color.border-right-color.border-bottom-color.border-left-color.border-top-left-radius.border-top-right-radius.border-bottom-left-radius.border-bottom-right-radius.box-shadow.opacity.transform.filter.backdrop-filter.object-fit.object-position`.split(`.`)),nt=e=>(e.tagName||``).toLowerCase();let rt;const it=()=>{if(rt!==void 0)return rt;let e=document.querySelector(`script[nonce], style[nonce]`),t=e?.nonce||e?.getAttribute(`nonce`)||null;return t&&(rt=t),t},at=[[`data-rr-block`,``],[`data-rr-ignore`,``],[`data-rr-mask`,``],[`data-sentry-block`,``],[`data-sentry-ignore`,``],[`data-sentry-mask`,``],[`data-dd-privacy`,`hidden`],[`data-fs-exclude`,``],[`data-lr-exclude`,``],[`data-hj-suppress`,``],[`data-recording-disable`,``],[`data-clarity-mask`,`true`],[`data-heap-redact-text`,``]],ot=e=>{for(let[t,n]of at)e.setAttribute(t,n);e.setAttribute(`data-testid`,`react-grab-overlay`),e.classList.add(`ph-no-capture`)},st=`bippy-0.5.42`,ct=Object.defineProperty,lt=Object.prototype.hasOwnProperty,f=()=>{},ut=e=>{try{Function.prototype.toString.call(e).indexOf(`^_^`)>-1&&setTimeout(()=>{throw Error(`React is running in production mode, but dead code elimination has not been applied. Read how to correctly configure React for production: https://reactjs.org/link/perf-use-production-build`)})}catch{}},dt=(e=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__)=>!!(e&&`getFiberRoots`in e);let ft=!1,pt;const mt=(e=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__)=>ft?!0:(e&&typeof e.inject==`function`&&(pt=e.inject.toString()),!!pt?.includes(`(injected)`)),p=new Set,m=new Set,ht=e=>{let t=new Map,n=0,r={_instrumentationIsActive:!1,_instrumentationSource:st,checkDCE:ut,hasUnsupportedRendererAttached:!1,inject(e){let i=++n;return t.set(i,e),m.add(e),r._instrumentationIsActive||(r._instrumentationIsActive=!0,p.forEach(e=>e())),i},on:f,onCommitFiberRoot:f,onCommitFiberUnmount:f,onPostCommitFiberRoot:f,renderers:t,supportsFiber:!0,supportsFlight:!0};try{ct(globalThis,`__REACT_DEVTOOLS_GLOBAL_HOOK__`,{configurable:!0,enumerable:!0,get(){return r},set(t){if(t&&typeof t==`object`){let n=r.renderers;r=t,n.size>0&&(n.forEach((e,n)=>{m.add(e),t.renderers.set(n,e)}),gt(e))}}});let t=window.hasOwnProperty,n=!1;ct(window,`hasOwnProperty`,{configurable:!0,value:function(...e){try{if(!n&&e[0]===`__REACT_DEVTOOLS_GLOBAL_HOOK__`)return globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__=void 0,n=!0,-0}catch{}return t.apply(this,e)},writable:!0})}catch{gt(e)}return r},gt=e=>{e&&p.add(e);try{let t=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!t)return;if(!t._instrumentationSource){t.checkDCE=ut,t.supportsFiber=!0,t.supportsFlight=!0,t.hasUnsupportedRendererAttached=!1,t._instrumentationSource=st,t._instrumentationIsActive=!1;let e=dt(t);if(e||(t.on=f),t.renderers.size){t._instrumentationIsActive=!0,p.forEach(e=>e());return}let n=t.inject,r=mt(t);r&&!e&&(ft=!0,t.inject({scheduleRefresh(){}})&&(t._instrumentationIsActive=!0)),t.inject=e=>{let i=n(e);return m.add(e),r&&t.renderers.set(i,e),t._instrumentationIsActive=!0,p.forEach(e=>e()),i}}(t.renderers.size||t._instrumentationIsActive||mt())&&e?.()}catch{}},_t=()=>lt.call(globalThis,`__REACT_DEVTOOLS_GLOBAL_HOOK__`),h=e=>_t()?(gt(e),globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__):ht(e),vt=()=>!!(typeof window<`u`&&(window.document?.createElement||window.navigator?.product===`ReactNative`)),yt=()=>{try{vt()&&h()}catch{}},g=e=>{switch(e.tag){case 1:case 11:case 0:case 14:case 15:return!0;default:return!1}};function bt(e,t,n=!1){if(!e)return null;let r=t(e);if(r instanceof Promise)return(async()=>{if(await r===!0)return e;let i=n?e.return:e.child;for(;i;){let e=await St(i,t,n);if(e)return e;i=n?null:i.sibling}return null})();if(r===!0)return e;let i=n?e.return:e.child;for(;i;){let e=xt(i,t,n);if(e)return e;i=n?null:i.sibling}return null}const xt=(e,t,n=!1)=>{if(!e)return null;if(t(e)===!0)return e;let r=n?e.return:e.child;for(;r;){let e=xt(r,t,n);if(e)return e;r=n?null:r.sibling}return null},St=async(e,t,n=!1)=>{if(!e)return null;if(await t(e)===!0)return e;let r=n?e.return:e.child;for(;r;){let e=await St(r,t,n);if(e)return e;r=n?null:r.sibling}return null},Ct=e=>{let t=e;return typeof t==`function`?t:typeof t==`object`&&t?Ct(t.type||t.render):null},_=e=>{let t=e;if(typeof t==`string`)return t;if(typeof t!=`function`&&!(typeof t==`object`&&t))return null;let n=t.displayName||t.name||null;if(n)return n;let r=Ct(t);return r&&(r.displayName||r.name)||null},wt=()=>{let e=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__;return!!e?._instrumentationIsActive||dt(e)||mt(e)},Tt=e=>Object.prototype.toString.call(e)===`[object Object]`&&(Object.getPrototypeOf(e)===Object.prototype||Object.getPrototypeOf(e)===null),Et=(e,t=[])=>{if(!Tt(e))return[{path:t,value:e}];let n=[];for(let r in e){let i=e[r],a=t.concat(r);Tt(i)?n.push(...Et(i,a)):n.push({path:a,value:i})}return n},Dt=e=>{let t=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t?.renderers)for(let n of t.renderers.values())try{let t=n.findFiberByHostInstance?.(e);if(t)return t}catch{}if(typeof e==`object`&&e){if(`_reactRootContainer`in e)return e._reactRootContainer?._internalRoot?.current?.child;for(let t in e)if(t.startsWith(`__reactContainer$`)||t.startsWith(`__reactInternalInstance$`)||t.startsWith(`__reactFiber`))return e[t]||null}return null},Ot=new Set,kt=/^[a-zA-Z][a-zA-Z\d+\-.]*:/,At=[`rsc://`,`file:///`,`webpack-internal://`,`webpack://`,`node:`,`turbopack://`,`metro://`,`/app-pages-browser/`,`/(app-pages-browser)/`],jt=[`<anonymous>`,`eval`,``],Mt=/\.(jsx|tsx|ts|js)$/,Nt=/(\.min|bundle|chunk|vendor|vendors|runtime|polyfill|polyfills)\.(js|mjs|cjs)$|(chunk|bundle|vendor|vendors|runtime|polyfill|polyfills|framework|app|main|index)[-_.][A-Za-z0-9_-]{4,}\.(js|mjs|cjs)$|[\da-f]{8,}\.(js|mjs|cjs)$|[-_.][\da-f]{20,}\.(js|mjs|cjs)$|\/dist\/|\/build\/|\/.next\/|\/out\/|\/node_modules\/|\.webpack\.|\.vite\.|\.turbopack\./i,Pt=/^\?[\w~.-]+(?:=[^&#]*)?(?:&[\w~.-]+(?:=[^&#]*)?)*$/,Ft=/\(at [^)]+\)$/,It=/(^|@)\S+:\d+/,Lt=/^\s*at .*(\S+:\d+|\(native\))/m,Rt=/^(eval@)?(\[native code\])?$/,zt=(e,t)=>{if(t?.includeInElement!==!1){let n=e.split(`
|
|
10
|
+
`),r=[];for(let e of n)if(/^\s*at\s+/.test(e)){let t=Ht(e,void 0)[0];t&&r.push(t)}else if(/^\s*in\s+/.test(e)){let t=e.replace(/^\s*in\s+/,``).replace(/\s*\(at .*\)$/,``);r.push({functionName:t,source:e})}else if(e.match(It)){let t=Ut(e,void 0)[0];t&&r.push(t)}return Vt(r,t)}return e.match(Lt)?Ht(e,t):Ut(e,t)},Bt=e=>{if(!e.includes(`:`))return[e,void 0,void 0];let t=e.startsWith(`(`)&&/:\d+\)$/.test(e)?e.slice(1,-1):e,n=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(t);return n?[n[1],n[2]||void 0,n[3]||void 0]:[t,void 0,void 0]},Vt=(e,t)=>t&&t.slice!=null?Array.isArray(t.slice)?e.slice(t.slice[0],t.slice[1]):e.slice(0,t.slice):e,Ht=(e,t)=>Vt(e.split(`
|
|
11
|
+
`).filter(e=>!!e.match(Lt)),t).map(e=>{let t=e;t.includes(`(eval `)&&(t=t.replace(/eval code/g,`eval`).replace(/(\(eval at [^()]*)|(,.*$)/g,``));let n=t.replace(/^\s+/,``).replace(/\(eval code/g,`(`).replace(/^.*?\s+/,``),r=n.match(/ (\(.+\)$)/);n=r?n.replace(r[0],``):n;let i=Bt(r?r[1]:n);return{functionName:r&&n||void 0,fileName:[`eval`,`<anonymous>`].includes(i[0])?void 0:i[0],lineNumber:i[1]?+i[1]:void 0,columnNumber:i[2]?+i[2]:void 0,source:t}}),Ut=(e,t)=>Vt(e.split(`
|
|
12
|
+
`).filter(e=>!e.match(Rt)),t).map(e=>{let t=e;if(t.includes(` > eval`)&&(t=t.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,`:$1`)),!t.includes(`@`)&&!t.includes(`:`))return{functionName:t};{let e=/(([^\n\r"\u2028\u2029]*".[^\n\r"\u2028\u2029]*"[^\n\r@\u2028\u2029]*(?:@[^\n\r"\u2028\u2029]*"[^\n\r@\u2028\u2029]*)*(?:[\n\r\u2028\u2029][^@]*)?)?[^@]*)@/,n=t.match(e),r=n&&n[1]?n[1]:void 0,i=Bt(t.replace(e,``));return{functionName:r,fileName:i[0],lineNumber:i[1]?+i[1]:void 0,columnNumber:i[2]?+i[2]:void 0,source:t}}});var Wt=44,Gt=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,Kt=new Uint8Array(64),qt=new Uint8Array(128);for(let e=0;e<Gt.length;e++){let t=Gt.charCodeAt(e);Kt[e]=t,qt[t]=e}function v(e,t){let n=0,r=0,i=0;do i=qt[e.next()],n|=(i&31)<<r,r+=5;while(i&32);let a=n&1;return n>>>=1,a&&(n=-2147483648|-n),t+n}function Jt(e,t){return e.pos>=t?!1:e.peek()!==Wt}var Yt=class{constructor(e){this.pos=0,this.buffer=e}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(e){let{buffer:t,pos:n}=this,r=t.indexOf(e,n);return r===-1?t.length:r}};function Xt(e){let{length:t}=e,n=new Yt(e),r=[],i=0,a=0,o=0,s=0,c=0;do{let e=n.indexOf(`;`),t=[],l=!0,u=0;for(i=0;n.pos<e;){let r;i=v(n,i),i<u&&(l=!1),u=i,Jt(n,e)?(a=v(n,a),o=v(n,o),s=v(n,s),Jt(n,e)?(c=v(n,c),r=[i,a,o,s,c]):r=[i,a,o,s]):r=[i],t.push(r),n.pos++}l||Zt(t),r.push(t),n.pos=e+1}while(n.pos<=t);return r}function Zt(e){e.sort(Qt)}function Qt(e,t){return e[0]-t[0]}const $t=/^[a-zA-Z][a-zA-Z\d+\-.]*:/,en=/^data:application\/json[^,]+base64,/,tn=/(?:\/\/[@#][ \t]+sourceMappingURL=([^\s'"]+?)[ \t]*$)|(?:\/\*[@#][ \t]+sourceMappingURL=([^*]+?)[ \t]*(?:\*\/)[ \t]*$)/,y=new Map,b=new Map,nn=(e,t,n,r)=>{if(n<0||n>=e.length)return null;let i=e[n];if(!i||i.length===0)return null;let a=null;for(let e of i)if(e[0]<=r)a=e;else break;if(!a||a.length<4)return null;let[,o,s,c]=a;if(o===void 0||s===void 0||c===void 0)return null;let l=t[o];return l?{columnNumber:c,fileName:l,lineNumber:s+1}:null},rn=(e,t,n)=>{if(e.sections){let r=null;for(let i of e.sections)if(t>i.offset.line||t===i.offset.line&&n>=i.offset.column)r=i;else break;if(!r)return null;let i=t-r.offset.line,a=t===r.offset.line?n-r.offset.column:n;return nn(r.map.mappings,r.map.sources,i,a)}return nn(e.mappings,e.sources,t-1,n)},an=(e,t)=>{let n=t.split(`
|
|
13
|
+
`),r;for(let e=n.length-1;e>=0&&!r;e--){let t=n[e].match(tn);t&&(r=t[1]||t[2])}if(!r)return null;let i=$t.test(r);if(!(en.test(r)||i||r.startsWith(`/`))){let t=e.split(`/`);t[t.length-1]=r,r=t.join(`/`)}return r},on=e=>({file:e.file,mappings:Xt(e.mappings),names:e.names,sourceRoot:e.sourceRoot,sources:e.sources,sourcesContent:e.sourcesContent,version:3}),sn=e=>{let t=e.sections.map(({map:e,offset:t})=>({map:{...e,mappings:Xt(e.mappings)},offset:t})),n=new Set;for(let e of t)for(let t of e.map.sources)n.add(t);return{file:e.file,mappings:[],names:[],sections:t,sourceRoot:void 0,sources:Array.from(n),sourcesContent:void 0,version:3}},cn=e=>{if(!e)return!1;let t=e.trim();if(!t)return!1;let n=t.match($t);if(!n)return!0;let r=n[0].toLowerCase();return r===`http:`||r===`https:`},ln=async(e,t=fetch)=>{if(!cn(e))return null;let n=await t(e);if(!n.ok)return null;let r=await n.text();if(!r)return null;let i=an(e,r);if(!i||!cn(i))return null;let a=await t(i);if(!a.ok)return null;try{let e=await a.json();return`sections`in e?sn(e):on(e)}catch{return null}},un=async(e,t=!0,n)=>{if(t&&y.has(e))return y.get(e)??null;let r=t?b.get(e):void 0;if(r)return(await r).sourceMap;let i=ln(e,n).then(e=>({sourceMap:e,isTransientFailure:!1}),()=>({sourceMap:null,isTransientFailure:!0}));t&&b.set(e,i);let{sourceMap:a,isTransientFailure:o}=await i;return t&&(b.delete(e),o||y.set(e,a)),a},dn=async(e,t=!0,n)=>await Promise.all(e.map(async e=>{if(!e.fileName)return e;let r=await un(e.fileName,t,n);if(!r||typeof e.lineNumber!=`number`||typeof e.columnNumber!=`number`)return e;let i=rn(r,e.lineNumber,e.columnNumber);return i?{...e,source:i.fileName&&e.source?e.source.replace(e.fileName,i.fileName):e.source,fileName:i.fileName,lineNumber:i.lineNumber,columnNumber:i.columnNumber,isSymbolicated:!0}:e})),fn=e=>e._debugStack instanceof Error&&typeof e._debugStack?.stack==`string`,pn=()=>{let e=h();for(let t of[...Array.from(m),...Array.from(e.renderers.values())]){let e=t.currentDispatcherRef;if(e&&typeof e==`object`)return`H`in e?e.H:e.current}return null},mn=e=>{for(let t of m){let n=t.currentDispatcherRef;n&&typeof n==`object`&&(`H`in n?n.H=e:n.current=e)}},x=e=>`\n in ${e}`,hn=(e,t)=>{let n=x(e);return t&&(n+=` (at ${t})`),n};let S=!1;const C=(e,t)=>{if(!e||S)return``;let n=Error.prepareStackTrace;Error.prepareStackTrace=void 0,S=!0;let r=pn();mn(null);let i=console.error,a=console.warn;console.error=()=>{},console.warn=()=>{};try{let n={DetermineComponentFrameRoot(){let n;try{if(t){let t=function(){throw Error()};if(Object.defineProperty(t.prototype,`props`,{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){n=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){n=e}e.call(t.prototype)}}else{try{throw Error()}catch(e){n=e}let t=e();t&&typeof t.catch==`function`&&t.catch(()=>{})}}catch(e){if(e instanceof Error&&n instanceof Error&&typeof e.stack==`string`)return[e.stack,n.stack]}return[null,null]}};n.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`,Object.getOwnPropertyDescriptor(n.DetermineComponentFrameRoot,`name`)?.configurable&&Object.defineProperty(n.DetermineComponentFrameRoot,`name`,{value:`DetermineComponentFrameRoot`});let[r,i]=n.DetermineComponentFrameRoot();if(r&&i){let t=r.split(`
|
|
14
|
+
`),n=i.split(`
|
|
15
|
+
`),a=0,o=0;for(;a<t.length&&!t[a].includes(`DetermineComponentFrameRoot`);)a++;for(;o<n.length&&!n[o].includes(`DetermineComponentFrameRoot`);)o++;if(a===t.length||o===n.length)for(a=t.length-1,o=n.length-1;a>=1&&o>=0&&t[a]!==n[o];)o--;for(;a>=1&&o>=0;a--,o--)if(t[a]!==n[o]){if(a!==1||o!==1)do if(a--,o--,o<0||t[a]!==n[o]){let n=`\n${t[a].replace(` at new `,` at `)}`,r=_(e);return r&&n.includes(`<anonymous>`)&&(n=n.replace(`<anonymous>`,r)),n}while(a>=1&&o>=0);break}}}finally{S=!1,Error.prepareStackTrace=n,mn(r),console.error=i,console.warn=a}let o=e?_(e):``;return o?x(o):``},gn=(e,t)=>{let n=e.tag,r=``;switch(n){case 28:r=x(`Activity`);break;case 1:r=C(e.type,!0);break;case 11:r=C(e.type.render,!1);break;case 0:case 15:r=C(e.type,!1);break;case 5:case 26:case 27:r=x(e.type);break;case 16:r=x(`Lazy`);break;case 13:r=e.child!==t&&t!==null?x(`Suspense Fallback`):x(`Suspense`);break;case 19:r=x(`SuspenseList`);break;case 30:r=x(`ViewTransition`);break;default:return``}return r},_n=e=>{try{let t=``,n=e,r=null;do{t+=gn(n,r);let e=n._debugInfo;if(e&&Array.isArray(e))for(let n=e.length-1;n>=0;n--){let r=e[n];typeof r.name==`string`&&(t+=hn(r.name,r.env))}r=n,n=n.return}while(n);return t}catch(e){return e instanceof Error?`\nError generating stack: ${e.message}\n${e.stack}`:``}},vn=e=>{let t=Error.prepareStackTrace;Error.prepareStackTrace=void 0;let n=e;if(!n)return``;Error.prepareStackTrace=t,n.startsWith(`Error: react-stack-top-frame
|
|
16
|
+
`)&&(n=n.slice(29));let r=n.indexOf(`
|
|
17
|
+
`);if(r!==-1&&(n=n.slice(r+1)),r=Math.max(n.indexOf(`react_stack_bottom_frame`),n.indexOf(`react-stack-bottom-frame`)),r!==-1&&(r=n.lastIndexOf(`
|
|
18
|
+
`,r)),r!==-1)n=n.slice(0,r);else return``;return n},yn=e=>!!(e.functionName&&e.fileName&&(e.fileName.startsWith(`rsc://`)||e.fileName.startsWith(`about://React/`))),bn=(e,t)=>e.fileName===t.fileName&&e.lineNumber===t.lineNumber&&e.columnNumber===t.columnNumber,xn=e=>{let t=new Map;for(let n of e)for(let e of n.stackFrames){if(!yn(e))continue;let n=e.functionName,r=t.get(n)??[];r.some(t=>bn(t,e))||(r.push(e),t.set(n,r))}return t},Sn=(e,t,n)=>{if(!e.functionName)return{...e,isServer:!0};let r=t.get(e.functionName);if(!r||r.length===0)return{...e,isServer:!0};let i=n.get(e.functionName)??0,a=r[i%r.length];return n.set(e.functionName,i+1),{...e,isServer:!0,fileName:a.fileName,lineNumber:a.lineNumber,columnNumber:a.columnNumber,source:e.source?.replace(`(at Server)`,`(${a.fileName}:${a.lineNumber}:${a.columnNumber})`)}},Cn=e=>{let t=[];return bt(e,e=>{if(!fn(e))return;let n=typeof e.type==`string`?e.type:_(e.type)||`<anonymous>`;t.push({componentName:n,stackFrames:zt(vn(e._debugStack?.stack))})},!0),t},wn=async(e,t=!0,n)=>{let r=Cn(e),i=zt(_n(e)),a=xn(r),o=new Map;return dn(i.map(e=>(e.source?.includes(`(at Server)`)??!1)||e.source!=null&&Ft.test(e.source)?Sn(e,a,o):e).filter((e,t,n)=>{if(t===0)return!0;let r=n[t-1];return e.functionName!==r.functionName}),t,n)},Tn=e=>{let t=e._debugSource;return t?typeof t==`object`&&!!t&&`fileName`in t&&typeof t.fileName==`string`&&`lineNumber`in t&&typeof t.lineNumber==`number`:!1},En=async(e,t=!0,n)=>{if(Tn(e))return e._debugSource||null;let r=await wn(e,t,n);for(let e of r)if(e.fileName)return{fileName:e.fileName,lineNumber:e.lineNumber,columnNumber:e.columnNumber,functionName:e.functionName};return null},Dn=e=>e.split(`/`).filter(Boolean).length,On=e=>e.split(`/`).filter(Boolean)[0]??null,kn=e=>{let t=e.indexOf(`/`,1);if(t===-1||Dn(e.slice(0,t))!==1)return e;let n=e.slice(t);if(!Mt.test(n)||Dn(n)<2)return e;let r=On(n);return!r||r.startsWith(`@`)||r.length>4?e:n},w=e=>{if(!e||jt.some(t=>t===e))return``;let t=e,n=t.startsWith(`http://`)||t.startsWith(`https://`);if(n)try{t=new URL(t).pathname}catch{}if(n&&(t=kn(t)),t.startsWith(`about://React/`)){let e=t.slice(14),n=e.indexOf(`/`),r=e.indexOf(`:`);t=n!==-1&&(r===-1||n<r)?e.slice(n+1):e}let r=!0;for(;r;){r=!1;for(let e of At)if(t.startsWith(e)){t=t.slice(e.length),e===`file:///`&&(t=`/${t.replace(/^\/+/,``)}`),r=!0;break}}if(kt.test(t)){let e=t.match(kt);e&&(t=t.slice(e[0].length))}if(t.startsWith(`//`)){let e=t.indexOf(`/`,2);t=e===-1?``:t.slice(e)}let i=t.indexOf(`?`);if(i!==-1){let e=t.slice(i);Pt.test(e)&&(t=t.slice(0,i))}return t},An=e=>{let t=w(e);return!(!t||!Mt.test(t)||Nt.test(t))},jn=Symbol.for(`react.context`);let Mn=[],Nn=null;const Pn=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render."),T=()=>{let e=Nn;return e!==null&&(Nn=e.next),e},E=e=>e._currentValue,D=(e,t,n,r=null)=>{Mn.push({displayName:r,primitive:e,stackError:Error(),value:t,dispatcherHookName:n})},Fn=e=>{if(typeof e==`object`&&e){let t=e;if(typeof t.then==`function`){let e=t;switch(e.status){case`fulfilled`:return D(`Promise`,e.value,`Use`),e.value;case`rejected`:throw e.reason}throw D(`Unresolved`,e,`Use`),Pn}if(t.$$typeof===jn&&`_currentValue`in t){let e=t,n=E(e);return D(`Context (use)`,n,`Use`,e.displayName||`Context`),n}}throw Error(`An unsupported type was passed to use(): `+String(e))},In=e=>{let t=E(e);return D(`Context`,t,`Context`,e.displayName||null),t},Ln=e=>{let t=T(),n=t===null?typeof e==`function`?e():e:t.memoizedState;return D(`State`,n,`State`),[n,()=>{}]},Rn=(e,t,n)=>{let r=T(),i=r===null?n===void 0?t:n(t):r.memoizedState;return D(`Reducer`,i,`Reducer`),[i,()=>{}]},zn=e=>{let t=T(),n=t===null?{current:e}:t.memoizedState;return D(`Ref`,n.current,`Ref`),n},Bn=()=>{let e=T();return D(`CacheRefresh`,e===null?()=>{}:e.memoizedState,`CacheRefresh`),()=>{}},Vn=e=>{T(),D(`LayoutEffect`,e,`LayoutEffect`)},Hn=e=>{T(),D(`InsertionEffect`,e,`InsertionEffect`)},Un=e=>{T(),D(`Effect`,e,`Effect`)},Wn=e=>{T();let t;typeof e==`object`&&e&&`current`in e&&(t=e.current),D(`ImperativeHandle`,t,`ImperativeHandle`)},Gn=(e,t)=>{D(`DebugValue`,typeof t==`function`?t(e):e,`DebugValue`)},Kn=e=>{let t=T();return D(`Callback`,t===null?e:t.memoizedState[0],`Callback`),e},qn=e=>{let t=T(),n=t===null?e():t.memoizedState[0];return D(`Memo`,n,`Memo`),n},Jn=(e,t)=>{let n=T();T();let r=n===null?t():n.memoizedState;return D(`SyncExternalStore`,r,`SyncExternalStore`),r},Yn=()=>{let e=T();T();let t=e===null?!1:e.memoizedState;return D(`Transition`,t,`Transition`),[t,()=>{}]},Xn=e=>{let t=T(),n=t===null?e:t.memoizedState;return D(`DeferredValue`,n,`DeferredValue`),n},Zn=()=>{let e=T(),t=e===null?``:e.memoizedState;return D(`Id`,t,`Id`),t},Qn=e=>[],$n=e=>{let t=T(),n=t===null?e:t.memoizedState;return D(`Optimistic`,n,`Optimistic`),[n,()=>{}]},er=(e,t)=>{let n,r=null;if(e!==null){let t=e.memoizedState;if(typeof t==`object`&&t&&`then`in t&&typeof t.then==`function`){let e=t;switch(e.status){case`fulfilled`:n=e.value;break;case`rejected`:r=e.reason;break;default:r=Pn,n=e}}else n=t}else n=t;return{value:n,error:r}},tr=e=>(t,n)=>{let r=T();T(),T();let i=Error(),{value:a,error:o}=er(r,n);if(Mn.push({displayName:null,primitive:e,stackError:i,value:a,dispatcherHookName:e}),o!==null)throw o;return[a,()=>{},!1]},nr=tr(`ActionState`),rr={readContext:E,use:Fn,useCallback:Kn,useContext:In,useEffect:Un,useImperativeHandle:Wn,useLayoutEffect:Vn,useInsertionEffect:Hn,useMemo:qn,useReducer:Rn,useRef:zn,useState:Ln,useDebugValue:Gn,useDeferredValue:Xn,useTransition:Yn,useSyncExternalStore:Jn,useId:Zn,useHostTransitionStatus:()=>{let e=E({_currentValue:null});return D(`HostTransitionStatus`,e,`HostTransitionStatus`),e},useFormState:tr(`FormState`),useActionState:nr,useOptimistic:$n,useMemoCache:Qn,useCacheRefresh:Bn,useEffectEvent:e=>(T(),D(`EffectEvent`,e,`EffectEvent`),e)};
|
|
19
|
+
/**
|
|
20
|
+
* @license bippy
|
|
21
|
+
*
|
|
22
|
+
* Copyright (c) Aiden Bai
|
|
23
|
+
*
|
|
24
|
+
* This source code is licensed under the MIT license found in the
|
|
25
|
+
* LICENSE file in the root directory of this source tree.
|
|
26
|
+
*/
|
|
27
|
+
typeof Proxy>`u`||new Proxy(rr,{get(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t];let n=Error(`Missing method in Dispatcher: `+t);throw n.name=`ReactDebugToolsUnsupportedHookError`,n}}),yt();
|
|
28
|
+
/**
|
|
29
|
+
* @license bippy
|
|
30
|
+
*
|
|
31
|
+
* Copyright (c) Aiden Bai
|
|
32
|
+
*
|
|
33
|
+
* This source code is licensed under the MIT license found in the
|
|
34
|
+
* LICENSE file in the root directory of this source tree.
|
|
35
|
+
*/
|
|
36
|
+
const ir=/^(?:\.\/)?\/?\([a-z][a-z0-9-]*\)\//,ar=e=>{let t=w(e);return t=t.replace(ir,``),t.startsWith(`./`)&&(t=t.slice(2)),t};let or;const sr=e=>(e&&(or=void 0),or??=typeof document<`u`&&!!(document.getElementById(`__NEXT_DATA__`)||document.querySelector(`nextjs-portal`)),or);let O;const cr=()=>{if(O!==void 0)return O;let e=document.querySelector(`script[src*="/_next/"]`)?.src,t=e?new URL(e).pathname:``,n=t.indexOf(`/_next/`);return O=n>0?t.slice(0,n):``,O},lr=typeof window<`u`,ur=e=>0,dr=e=>{},k=lr?(Object.getOwnPropertyDescriptor(Window.prototype,`requestAnimationFrame`)?.value??window.requestAnimationFrame).bind(window):ur,A=lr?(Object.getOwnPropertyDescriptor(Window.prototype,`cancelAnimationFrame`)?.value??window.cancelAnimationFrame).bind(window):dr,fr=()=>lr?new Promise(e=>k(()=>e())):Promise.resolve(),pr=(e,t=window.getComputedStyle(e))=>t.display!==`none`&&t.visibility!==`hidden`&&t.opacity!==`0`,mr=e=>{let t=nt(e);return t===`html`||t===`body`},hr=[`data-react-grab`,`data-react-grab-demo`],gr=e=>hr.some(t=>e.hasAttribute(t)),_r=e=>{if(gr(e))return!0;let t=e.getRootNode();return t instanceof ShadowRoot&&gr(t.host)},vr=e=>e.hasAttribute(`data-react-grab-ignore`)||e.closest(`[data-react-grab-ignore]`)!==null,yr=e=>{let t=parseInt(e.zIndex,10);return e.pointerEvents===`none`&&e.position===`fixed`&&!isNaN(t)&&t>=2147483600},br=e=>{let t=e.backgroundColor;return t===`transparent`||t===`rgba(0, 0, 0, 0)`},xr=e=>{let t=e.position;if(t!==`fixed`&&t!==`absolute`)return!1;if(br(e)||parseFloat(e.opacity)<.1)return!0;let n=parseInt(e.zIndex,10);return!isNaN(n)&&n>1e3};let j=new WeakMap;const Sr=()=>{j=new WeakMap},Cr=e=>{if(mr(e)||_r(e)||vr(e))return!1;let t=performance.now(),n=j.get(e);if(n&&t-n.timestamp<50)return n.isVisible;let r=window.getComputedStyle(e);return pr(e,r)?e.clientWidth/window.innerWidth>=.9&&e.clientHeight/window.innerHeight>=.9&&(yr(r)||xr(r))?!1:(j.set(e,{isVisible:!0,timestamp:t}),!0):(j.set(e,{isVisible:!1,timestamp:t}),!1)},M=(e,t)=>{let n=document.createElement(`style`);n.setAttribute(e,``);let r=it();return r&&(n.nonce=r),ot(n),n.textContent=t,document.head.appendChild(n),n};let N=null,P=null;const wr=()=>N!==null,Tr=()=>{N||(N=M(`data-react-grab-frozen-pseudo`,`html { pointer-events: none !important; }`),P=M(`data-react-grab-hittest-override`,`html, body { pointer-events: auto !important; }`),P.disabled=!0)},Er=()=>{N?.remove(),N=null,P?.remove(),P=null},Dr=()=>{N&&(N.disabled||=!0,P?.disabled&&(P.disabled=!1))},Or=()=>{N&&(N.disabled&&=!1,P&&!P.disabled&&(P.disabled=!0))};let F=null,I=null,L=null;const kr=(e,t,n)=>e>=n.left&&e<=n.right&&t>=n.top&&t<=n.bottom,Ar=()=>{L!==null&&clearTimeout(L),L=setTimeout(()=>{L=null,Or()},100)},jr=()=>{L!==null&&(clearTimeout(L),L=null)},Mr=(e,t,n,r)=>{let i=Math.abs(e-n),a=Math.abs(t-r);return i<=2&&a<=2},Nr=(e,t)=>{if(!Number.isFinite(e)||!Number.isFinite(t))return[];jr(),Dr();let n=document.elementsFromPoint(e,t);return Ar(),o()?n.filter(s):n},Pr=(e,t)=>{if(!Number.isFinite(e)||!Number.isFinite(t))return null;let n=performance.now();if(I&&kr(e,t,I.rect))return I.element;if(F){let r=Mr(e,t,F.clientX,F.clientY),i=n-F.timestamp<16;if(r||i)return F.element}jr(),Dr();let r=null,i=document.elementFromPoint(e,t);if(i&&Cr(i)&&s(i))r=i;else{let n=document.elementsFromPoint(e,t);for(let e of n)if(e!==i&&Cr(e)&&s(e)){r=e;break}}return Ar(),I=r instanceof HTMLIFrameElement?{element:r,rect:r.getBoundingClientRect()}:null,F={clientX:e,clientY:t,element:r,timestamp:n},r},Fr=()=>{jr(),Or(),F=null,I=null},Ir=async(e,t)=>{let n=sr(),r=new URLSearchParams({file:e}),i=n?`line1`:`line`,a=n?`column1`:`column`;t&&r.set(i,String(t)),r.set(a,`1`);let o=n?`${cr()}/__nextjs_launch-editor`:`/__open-in-editor`;return(await fetch(`${o}?${r}`)).ok},Lr=async(e,t,n)=>{let r=ar(e);if(await Ir(r,t).catch(()=>!1))return;let i=t?`&line=${t}`:``,a=`https://react-grab.com/open-file?url=${encodeURIComponent(r)}${i}`,o=n?n(a,r,t):a;window.open(o,`_blank`,`noopener,noreferrer`)};let R=!1;const z=new Map;let Rr=-1;const zr=new WeakSet,B=new Map,V=new Map,Br=e=>zr.has(e)?!0:!R||!(`gsapVersions`in window)||!(Error().stack??``).includes(`_tick`)?!1:(zr.add(e),!0);typeof window<`u`&&(window.requestAnimationFrame=e=>{if(!Br(e))return k(e);if(R){let t=Rr--;return z.set(t,e),t}let t=k(n=>{if(R){let n=Rr--;z.set(n,e),B.set(t,n);return}e(n)});return t},window.cancelAnimationFrame=e=>{if(z.has(e)){z.delete(e);return}let t=V.get(e);if(t!==void 0){A(t.nativeId),V.delete(e);return}let n=B.get(e);if(n!==void 0){z.delete(n),B.delete(e);return}A(e)});const Vr=()=>{if(!R){R=!0,z.clear(),B.clear();for(let[e,{nativeId:t,callback:n}]of V)A(t),z.set(e,n);V.clear()}},Hr=()=>{if(R){R=!1;for(let[e,t]of z.entries()){let n=k(n=>{V.delete(e),t(n)});V.set(e,{nativeId:n,callback:t})}z.clear(),B.clear()}},Ur=`
|
|
37
|
+
[${d}],
|
|
38
|
+
[${d}] * {
|
|
39
|
+
animation-play-state: paused !important;
|
|
40
|
+
transition: none !important;
|
|
41
|
+
}
|
|
42
|
+
`;let Wr=null,H=[],U=[],Gr=[],W=null,G=[],K=[],q=!1;const J=new Map;let Y=[];const Kr=()=>{Wr||=M(`data-react-grab-frozen-styles`,Ur)},qr=(e,t)=>e.length===t.length&&e.every((e,n)=>e===t[n]),Jr=e=>{let t=new Set;for(let n of e){n instanceof SVGSVGElement?t.add(n):n instanceof SVGElement&&n.ownerSVGElement&&t.add(n.ownerSVGElement);for(let e of n.querySelectorAll(`svg`))e instanceof SVGSVGElement&&t.add(e)}return[...t]},Yr=(e,t)=>{let n=Reflect.get(e,t);typeof n==`function`&&n.call(e)},Xr=e=>{for(let t of e){let e=J.get(t)??0;e===0&&Yr(t,`pauseAnimations`),J.set(t,e+1)}},Zr=e=>{for(let t of e){let e=J.get(t);if(e){if(e===1){J.delete(t),Yr(t,`unpauseAnimations`);continue}J.set(t,e-1)}}},Qr=e=>{let t=[];for(let n of e)for(let e of n.getAnimations({subtree:!0}))e.playState===`running`&&t.push(e);return t},$r=e=>{for(let t of e)try{t.finish()}catch{}},ei=e=>{if(!(e.effect instanceof KeyframeEffect))return!1;let t=e.effect.target;return t instanceof Element&&t.getRootNode()instanceof ShadowRoot},ti=e=>{if(e.length!==0&&!qr(e,Gr)){ni(),Gr=[...e],Kr(),H=e,U=Jr(H),Xr(U);for(let e of H)e.setAttribute(d,``);Y=Qr(H);for(let e of Y)e.pause()}},ni=()=>{if(!(H.length===0&&U.length===0&&Y.length===0)){for(let e of H)e.removeAttribute(d);Zr(U),$r(Y),H=[],U=[],Y=[],Gr=[]}},ri=e=>e.length===0?(ni(),()=>{}):(ti(e),ni),ii=()=>{if(W)return[];let e=[];for(let t of document.getAnimations())ei(t)||t.playState===`running`&&e.push(t);return e},ai=e=>{if(!W){if(W=M(`data-react-grab-global-freeze`,``),e.length>200)W.textContent=`
|
|
43
|
+
*, *::before, *::after {
|
|
44
|
+
animation-play-state: paused !important;
|
|
45
|
+
transition: none !important;
|
|
46
|
+
}
|
|
47
|
+
`,q=!0,K=[];else{for(let t of e)t.pause();K=e,q=!1}G=Jr(Array.from(document.querySelectorAll(`svg`))),Xr(G),Vr()}},oi=()=>{if(W){if(q){W.textContent=`
|
|
48
|
+
*, *::before, *::after {
|
|
49
|
+
transition: none !important;
|
|
50
|
+
}
|
|
51
|
+
`;let e=[];for(let t of document.getAnimations())ei(t)||e.push(t);$r(e),q=!1}else{for(let e of K)try{e.finish()}catch{try{e.play()}catch{}}K=[]}W.remove(),W=null,Zr(G),G=[],Hr()}},si=[`mouseenter`,`mouseleave`,`mouseover`,`mouseout`,`pointerenter`,`pointerleave`,`pointerover`,`pointerout`],ci=[`focus`,`blur`,`focusin`,`focusout`],li=[`background-color`,`color`,`border-color`,`box-shadow`,`transform`,`opacity`,`outline`,`filter`,`scale`,`visibility`],ui=[`background-color`,`color`,`border-color`,`box-shadow`,`outline`,`outline-offset`,`outline-width`,`outline-color`,`outline-style`,`filter`,`opacity`,`ring-color`,`ring-width`],di=new Map,fi=new Map,pi=e=>{e.stopImmediatePropagation()},mi=e=>{e.preventDefault(),e.stopImmediatePropagation()},hi=(e,t)=>{let n=new Map;for(let r of t){let t=e.style.getPropertyValue(r);t&&n.set(r,t)}return n},gi=(e,t,n)=>{if(n?.has(e))return null;let r=getComputedStyle(e),i=e.style.cssText,a=hi(e,t);for(let e of t){let t=r.getPropertyValue(e);t&&(i+=`${e}: ${t} !important; `)}return{element:e,frozenStyles:i,originalPropertyValues:a}},_i=(e,t)=>{let n=[],r=document.elementFromPoint(e,t);for(;r&&r!==document.documentElement;)r instanceof HTMLElement&&n.push(r),r=r.parentElement;return n},vi=()=>{let e=[],t=document.activeElement;for(;t&&t!==document.body;)t instanceof HTMLElement&&e.push(t),t=t.shadowRoot?.activeElement??null;return e},yi=(e,t)=>{for(let{element:n,frozenStyles:r,originalPropertyValues:i}of e)t.set(n,i),n.style.cssText=r},bi=(e,t)=>{for(let[n,r]of e)for(let e of t){let t=r.get(e);t?n.style.setProperty(e,t):n.style.removeProperty(e)}e.clear()},xi=(e,t)=>{if(wr())return null;let n=[],r=e!==void 0&&t!==void 0&&e>=0&&t>=0&&e<window.innerWidth&&t<window.innerHeight?_i(e,t):Array.from(document.querySelectorAll(`:hover`)).filter(e=>e instanceof HTMLElement);for(let e of r){let t=gi(e,li);t&&n.push(t)}let i=[];for(let e of vi()){let t=gi(e,ui,fi);t&&i.push(t)}return{hoverStates:n,focusStates:i}},Si=e=>{if(e){for(let e of si)document.addEventListener(e,pi,!0);for(let e of ci)document.addEventListener(e,mi,!0);yi(e.hoverStates,di),yi(e.focusStates,fi),Tr()}},Ci=()=>{Fr();for(let e of si)document.removeEventListener(e,pi,!0);for(let e of ci)document.removeEventListener(e,mi,!0);bi(di,li),bi(fi,ui),Er()},wi=(e,t)=>{let n=xi(e,t),r=ii();Si(n),ai(r)},Ti=()=>{Ci(),oi()},Ei=(e,t)=>{};let X=!1;const Di=(e,t,n)=>{let r=e.get(t);if(r)return r;let i=n();return e.set(t,i),i},Oi=new WeakMap,ki=new WeakMap,Ai=new WeakMap,ji=new Set,Mi=[],Z=[],Q=new WeakMap,$=new WeakMap,Ni=new WeakSet,Pi=Ot,Fi=e=>{let t=e;for(;t.return;)t=t.return;return t.stateNode??null},Ii=()=>{if(Pi.size>0)return Pi;let e=new Set,t=n=>{let r=Dt(n);if(r){let t=Fi(r);t&&e.add(t);return}for(let r of Array.from(n.children))if(t(r),e.size>0)return};return t(document.body),e},Li=(e,t)=>{if(!e)return t;if(!t)return e;if(!e.next||!t.next)return t;let n=e.next,r=t.next,i=e===n,a=t===r;return i&&a?(e.next=t,t.next=e):i?(e.next=r,t.next=e):a?(t.next=n,e.next=t):(e.next=r,t.next=n),t},Ri=e=>{if(!e||Q.has(e))return;let t={originalPendingDescriptor:Object.getOwnPropertyDescriptor(e,`pending`),pendingValueAtPause:e.pending,bufferedPending:null};typeof e.getSnapshot==`function`&&(t.originalGetSnapshot=e.getSnapshot,t.snapshotValueAtPause=e.getSnapshot(),e.getSnapshot=()=>X?t.snapshotValueAtPause:t.originalGetSnapshot());let n=t.pendingValueAtPause;Object.defineProperty(e,`pending`,{configurable:!0,enumerable:!0,get:()=>X?null:n,set:e=>{if(X){e!==null&&(t.bufferedPending=Li(t.bufferedPending??null,e));return}n=e}}),Q.set(e,t)},zi=e=>{if(!e)return[];let t=[],n=e.next;if(!n)return[];let r=n;do r&&=(t.push(r.action),r.next);while(r&&r!==n);return t},Bi=e=>{let t=Q.get(e);if(!t)return;t.originalGetSnapshot&&(e.getSnapshot=t.originalGetSnapshot),t.originalPendingDescriptor?Object.defineProperty(e,`pending`,t.originalPendingDescriptor):delete e.pending,e.pending=null;let n=e.dispatch;if(typeof n==`function`){let e=zi(t.pendingValueAtPause??null),r=zi(t.bufferedPending??null);for(let t of[...e,...r])Z.push(()=>n(t))}Q.delete(e)},Vi=e=>{if($.has(e))return;let t={originalDescriptor:Object.getOwnPropertyDescriptor(e,`memoizedValue`),frozenValue:e.memoizedValue};Object.defineProperty(e,`memoizedValue`,{configurable:!0,enumerable:!0,get(){return X?t.frozenValue:t.originalDescriptor?.get?t.originalDescriptor.get.call(this):this._memoizedValue},set(e){if(X){t.pendingValue=e,t.didReceivePendingValue=!0;return}t.originalDescriptor?.set?t.originalDescriptor.set.call(this,e):this._memoizedValue=e}}),t.originalDescriptor?.get||(e._memoizedValue=t.frozenValue),$.set(e,t)},Hi=e=>{let t=$.get(e);t&&(t.originalDescriptor?Object.defineProperty(e,`memoizedValue`,t.originalDescriptor):delete e.memoizedValue,t.didReceivePendingValue&&(e.memoizedValue=t.pendingValue),$.delete(e))},Ui=e=>{let t=e.memoizedState;for(;t;)t.queue&&typeof t.queue==`object`&&Ri(t.queue),t=t.next;let n=e.dependencies?.firstContext;for(;n&&typeof n==`object`&&`memoizedValue`in n;)Vi(n),n=n.next},Wi=e=>{let t=e.memoizedState;for(;t;)t.queue&&typeof t.queue==`object`&&Bi(t.queue),t=t.next;let n=e.dependencies?.firstContext;for(;n&&typeof n==`object`&&`memoizedValue`in n;)Hi(n),n=n.next},Gi=e=>{let t=e;for(;t;){if(g(t)&&Ui(t),t.child){t=t.child;continue}for(;t!==e&&!t.sibling;)if(t=t.return,!t)return;if(t===e)return;t=t.sibling}},Ki=e=>{let t=e;for(;t;){if(g(t)&&Wi(t),t.child){t=t.child;continue}for(;t!==e&&!t.sibling;)if(t=t.return,!t)return;if(t===e)return;t=t.sibling}},qi=e=>{if(Oi.has(e))return;let t=e,n={useState:t.useState,useReducer:t.useReducer,useTransition:t.useTransition,useSyncExternalStore:t.useSyncExternalStore};Oi.set(e,n),t.useState=(...t)=>{let r=n.useState.apply(e,t);if(!X||!Array.isArray(r)||typeof r[1]!=`function`)return r;let[i,a]=r;return[i,Di(ki,a,()=>(...e)=>{X?Z.push(()=>a(...e)):a(...e)})]},t.useReducer=(...t)=>{let r=n.useReducer.apply(e,t);if(!X||!Array.isArray(r)||typeof r[1]!=`function`)return r;let[i,a]=r;return[i,Di(ki,a,()=>(...e)=>{X?Z.push(()=>a(...e)):a(...e)})]},t.useTransition=(...t)=>{let r=n.useTransition.apply(e,t);if(!X||!Array.isArray(r)||typeof r[1]!=`function`)return r;let[i,a]=r;return[i,Di(Ai,a,()=>e=>{X?Mi.push(()=>a(e)):a(e)})]},t.useSyncExternalStore=((e,t,r)=>X?n.useSyncExternalStore(t=>e(()=>{X?ji.add(t):t()}),t,r):n.useSyncExternalStore(e,t,r))},Ji=e=>{let t=e.currentDispatcherRef;if(!t||typeof t!=`object`)return;let n=`H`in t?`H`:`current`,r=t[n];Object.defineProperty(t,n,{configurable:!0,enumerable:!0,get:()=>(r&&typeof r==`object`&&qi(r),r),set:e=>{r=e}})},Yi=e=>{queueMicrotask(()=>{try{for(let t of h().renderers.values())if(typeof t.scheduleUpdate==`function`){for(let n of e)if(n.current)try{t.scheduleUpdate(n.current)}catch{}}}catch{}})},Xi=e=>{for(let t of e)try{t()}catch{}},Zi=()=>{for(let e of h().renderers.values())Ni.has(e)||(Ji(e),Ni.add(e))},Qi=()=>{if(X)return()=>{};Zi(),X=!0;let e=Ii();for(let t of e)Gi(t.current);return()=>{if(X)try{let e=Ii();for(let t of e)Ki(t.current);let t=Array.from(ji),n=Mi.slice(),r=Z.slice();X=!1,Xi(t),Xi(n),Xi(r),Yi(e)}finally{ji.clear(),Mi.length=0,Z.length=0}}};export{Ke as $,wt as A,et as At,Ne as B,l as Bt,wn as C,te as Ct,zt as D,we as Dt,w as E,xe as Et,it as F,je as Ft,Be as G,t as Gt,Me as H,c as Ht,nt as I,u as It,We as J,ze as K,Ee as L,Le as Lt,Dt as M,ae as Mt,g as N,se as Nt,fn as O,Ae as Ot,ot as P,oe as Pt,Ze as Q,be as R,le as Rt,En as S,ee as St,vn as T,Se as Tt,de as U,s as Ut,Qe as V,o as Vt,Ie as W,a as Wt,Ye as X,Je as Y,Xe as Z,k as _,ke as _t,ti as a,$e as at,sr as b,ve as bt,Fr as c,Oe as ct,Or as d,Fe as dt,qe as et,Dr as f,Te as ft,A as g,me as gt,mr as h,ne as ht,Ti as i,ie as it,_ as j,re as jt,bt as k,tt as kt,Pr as l,De as lt,Cr as m,Ve as mt,Ei as n,He as nt,ri as o,ye as ot,Sr as p,Re as pt,Pe as q,wi as r,Ue as rt,Lr as s,pe as st,Qi as t,Ge as tt,Nr as u,ce as ut,fr as v,_e as vt,An as w,Ce as wt,ar as x,ge as xt,cr as y,he as yt,fe as z,ue as zt};
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* This source code is licensed under the MIT license found in the
|
|
7
7
|
* LICENSE file in the root directory of this source tree.
|
|
8
8
|
*/
|
|
9
|
-
import {
|
|
9
|
+
import { _ as Options, j as Theme, n as StackFrame, w as ReactGrabAPI } from "./copy-content-Bu9TkfQ-.cjs";
|
|
10
10
|
|
|
11
11
|
//#region src/core/context.d.ts
|
|
12
12
|
declare const getStack: (element: Element) => Promise<StackFrame[] | null>;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* This source code is licensed under the MIT license found in the
|
|
7
7
|
* LICENSE file in the root directory of this source tree.
|
|
8
8
|
*/
|
|
9
|
-
import {
|
|
9
|
+
import { _ as Options, j as Theme, n as StackFrame, w as ReactGrabAPI } from "./copy-content-gFhiC_Op.js";
|
|
10
10
|
|
|
11
11
|
//#region src/core/context.d.ts
|
|
12
12
|
declare const getStack: (element: Element) => Promise<StackFrame[] | null>;
|
package/dist/index.cjs
CHANGED
|
@@ -6,4 +6,4 @@
|
|
|
6
6
|
* This source code is licensed under the MIT license found in the
|
|
7
7
|
* LICENSE file in the root directory of this source tree.
|
|
8
8
|
*/
|
|
9
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./core-
|
|
9
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./core-BL9TAEy1.cjs`),t=require(`./freeze-updates-DFGqjTbl.cjs`),n=require(`./copy-content-CbkJ7J6S.cjs`);let r=null;const i=()=>typeof window>`u`?r:window.__REACT_GRAB__??r??null,a=e=>{r=e,typeof window<`u`&&(e?window.__REACT_GRAB__=e:delete window.__REACT_GRAB__)},o=[],s=e=>{for(;o.length>0;){let t=o.shift();t&&e.registerPlugin(t)}},c=e=>{let t=i();if(t){t.registerPlugin(e);return}o.push(e)},l=e=>{let t=i();if(t){t.unregisterPlugin(e);return}let n=o.findIndex(t=>t.name===e);n!==-1&&o.splice(n,1)};typeof window<`u`&&!window.__REACT_GRAB_DISABLED__&&(window.__REACT_GRAB__?r=window.__REACT_GRAB__:(r=e.t(),window.__REACT_GRAB__=r),s(r),window.dispatchEvent(new CustomEvent(`react-grab:init`,{detail:r}))),exports.DEFAULT_THEME=e.a,exports.commentPlugin=e.i,exports.formatElementInfo=n.n,exports.generateSnippet=e.n,exports.getGlobalApi=i,exports.getStack=n.o,exports.init=e.t,exports.isInstrumentationActive=t.A,exports.openPlugin=e.r,exports.registerPlugin=c,exports.setGlobalApi=a,exports.unregisterPlugin=l;
|
package/dist/index.d.cts
CHANGED
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
* This source code is licensed under the MIT license found in the
|
|
7
7
|
* LICENSE file in the root directory of this source tree.
|
|
8
8
|
*/
|
|
9
|
-
import { A as
|
|
10
|
-
import { a as getStack, i as formatElementInfo, n as generateSnippet, r as DEFAULT_THEME, t as init } from "./index-
|
|
9
|
+
import { A as SourceInfo, C as PromptModeContext, D as Rect, E as ReactGrabState, M as ToolbarState, O as SelectedElementPayload, S as Position, _ as Options, a as ActionContext, b as PluginConfig, c as AgentContext, d as DeepPartial, f as DragRect, g as GrabbedBox, h as ElementSelectedEventDetail, i as isInstrumentationActive, j as Theme, k as SettableOptions, l as ContextMenuAction, m as ElementLabelVariant, o as ActionContextHooks, p as ElementLabelContext, s as ActivationMode, u as ContextMenuActionContext, v as OverlayBounds, w as ReactGrabAPI, x as PluginHooks, y as Plugin } from "./copy-content-Bu9TkfQ-.cjs";
|
|
10
|
+
import { a as getStack, i as formatElementInfo, n as generateSnippet, r as DEFAULT_THEME, t as init } from "./index-Chk_n5Il.cjs";
|
|
11
11
|
|
|
12
12
|
//#region src/core/plugins/comment.d.ts
|
|
13
13
|
declare const commentPlugin: Plugin;
|
|
@@ -27,4 +27,4 @@ declare const setGlobalApi: (api: ReactGrabAPI | null) => void;
|
|
|
27
27
|
declare const registerPlugin: (plugin: Plugin) => void;
|
|
28
28
|
declare const unregisterPlugin: (name: string) => void;
|
|
29
29
|
//#endregion
|
|
30
|
-
export { type ActionContext, type ActionContextHooks, type ActivationMode, type AgentContext, type ContextMenuAction, type ContextMenuActionContext, DEFAULT_THEME, type DeepPartial, type DragRect, type ElementLabelContext, type ElementLabelVariant, type GrabbedBox, type Options, type OverlayBounds, type Plugin, type PluginConfig, type PluginHooks, type Position, type PromptModeContext, type ReactGrabAPI, type ReactGrabState, type Rect, type SettableOptions, type SourceInfo, type Theme, type ToolbarState, commentPlugin, formatElementInfo, generateSnippet, getGlobalApi, getStack, init, isInstrumentationActive, openPlugin, registerPlugin, setGlobalApi, unregisterPlugin };
|
|
30
|
+
export { type ActionContext, type ActionContextHooks, type ActivationMode, type AgentContext, type ContextMenuAction, type ContextMenuActionContext, DEFAULT_THEME, type DeepPartial, type DragRect, type ElementLabelContext, type ElementLabelVariant, type ElementSelectedEventDetail, type GrabbedBox, type Options, type OverlayBounds, type Plugin, type PluginConfig, type PluginHooks, type Position, type PromptModeContext, type ReactGrabAPI, type ReactGrabState, type Rect, type SelectedElementPayload, type SettableOptions, type SourceInfo, type Theme, type ToolbarState, commentPlugin, formatElementInfo, generateSnippet, getGlobalApi, getStack, init, isInstrumentationActive, openPlugin, registerPlugin, setGlobalApi, unregisterPlugin };
|
package/dist/index.d.ts
CHANGED
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
* This source code is licensed under the MIT license found in the
|
|
7
7
|
* LICENSE file in the root directory of this source tree.
|
|
8
8
|
*/
|
|
9
|
-
import { A as
|
|
10
|
-
import { a as getStack, i as formatElementInfo, n as generateSnippet, r as DEFAULT_THEME, t as init } from "./index-
|
|
9
|
+
import { A as SourceInfo, C as PromptModeContext, D as Rect, E as ReactGrabState, M as ToolbarState, O as SelectedElementPayload, S as Position, _ as Options, a as ActionContext, b as PluginConfig, c as AgentContext, d as DeepPartial, f as DragRect, g as GrabbedBox, h as ElementSelectedEventDetail, i as isInstrumentationActive, j as Theme, k as SettableOptions, l as ContextMenuAction, m as ElementLabelVariant, o as ActionContextHooks, p as ElementLabelContext, s as ActivationMode, u as ContextMenuActionContext, v as OverlayBounds, w as ReactGrabAPI, x as PluginHooks, y as Plugin } from "./copy-content-gFhiC_Op.js";
|
|
10
|
+
import { a as getStack, i as formatElementInfo, n as generateSnippet, r as DEFAULT_THEME, t as init } from "./index-DR2XmmEU.js";
|
|
11
11
|
|
|
12
12
|
//#region src/core/plugins/comment.d.ts
|
|
13
13
|
declare const commentPlugin: Plugin;
|
|
@@ -27,4 +27,4 @@ declare const setGlobalApi: (api: ReactGrabAPI | null) => void;
|
|
|
27
27
|
declare const registerPlugin: (plugin: Plugin) => void;
|
|
28
28
|
declare const unregisterPlugin: (name: string) => void;
|
|
29
29
|
//#endregion
|
|
30
|
-
export { type ActionContext, type ActionContextHooks, type ActivationMode, type AgentContext, type ContextMenuAction, type ContextMenuActionContext, DEFAULT_THEME, type DeepPartial, type DragRect, type ElementLabelContext, type ElementLabelVariant, type GrabbedBox, type Options, type OverlayBounds, type Plugin, type PluginConfig, type PluginHooks, type Position, type PromptModeContext, type ReactGrabAPI, type ReactGrabState, type Rect, type SettableOptions, type SourceInfo, type Theme, type ToolbarState, commentPlugin, formatElementInfo, generateSnippet, getGlobalApi, getStack, init, isInstrumentationActive, openPlugin, registerPlugin, setGlobalApi, unregisterPlugin };
|
|
30
|
+
export { type ActionContext, type ActionContextHooks, type ActivationMode, type AgentContext, type ContextMenuAction, type ContextMenuActionContext, DEFAULT_THEME, type DeepPartial, type DragRect, type ElementLabelContext, type ElementLabelVariant, type ElementSelectedEventDetail, type GrabbedBox, type Options, type OverlayBounds, type Plugin, type PluginConfig, type PluginHooks, type Position, type PromptModeContext, type ReactGrabAPI, type ReactGrabState, type Rect, type SelectedElementPayload, type SettableOptions, type SourceInfo, type Theme, type ToolbarState, commentPlugin, formatElementInfo, generateSnippet, getGlobalApi, getStack, init, isInstrumentationActive, openPlugin, registerPlugin, setGlobalApi, unregisterPlugin };
|