@fuadnafiz98/grab 0.2.0-dev.1c5343a → 0.2.0-dev.9b69eda

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.
Files changed (30) hide show
  1. package/dist/{copy-content-CGMz3X7m.d.cts → copy-content-CAzUtmEY.d.cts} +1 -1
  2. package/dist/{copy-content-DDha1TvA.d.ts → copy-content-DQZZQZP6.d.ts} +1 -1
  3. package/dist/core/index.cjs +1 -1
  4. package/dist/core/index.d.cts +2 -2
  5. package/dist/core/index.d.ts +2 -2
  6. package/dist/core/index.js +1 -1
  7. package/dist/{core-D10aG0bT.js → core-D01mr3bY.js} +2 -2
  8. package/dist/{core-B6ewlEl-.cjs → core-OKLC8Qri.cjs} +2 -2
  9. package/dist/{execute-context-menu-action-Che0nlbU.cjs → execute-context-menu-action-D9Vfhktq.cjs} +1 -1
  10. package/dist/{execute-context-menu-action-rLG0Vr3d.js → execute-context-menu-action-VXm_BiJA.js} +1 -1
  11. package/dist/{freeze-updates-Dq-WbRwR.js → freeze-updates-BagDh7PQ.js} +1 -1
  12. package/dist/{freeze-updates-DJW5eM-i.cjs → freeze-updates-C5GYFxGi.cjs} +1 -1
  13. package/dist/{index-WLhSTqMb.d.ts → index-DPeQbi7w.d.ts} +1 -1
  14. package/dist/{index-Bqe1Iy_L.d.cts → index-DjJuQ7ZY.d.cts} +1 -1
  15. package/dist/index.cjs +1 -1
  16. package/dist/index.d.cts +2 -2
  17. package/dist/index.d.ts +2 -2
  18. package/dist/index.global.js +19 -19
  19. package/dist/index.js +1 -1
  20. package/dist/{open-file-R5hAPZtH.cjs → open-file-Bg05P_6c.cjs} +1 -1
  21. package/dist/{open-file-CYelj0h2.js → open-file-CXoh8pKu.js} +1 -1
  22. package/dist/primitives.cjs +1 -1
  23. package/dist/primitives.d.cts +1 -1
  24. package/dist/primitives.d.ts +1 -1
  25. package/dist/primitives.js +1 -1
  26. package/dist/renderer-7O_3KYuS.js +11 -0
  27. package/dist/renderer-BNXQ--cX.cjs +11 -0
  28. package/package.json +3 -3
  29. package/dist/renderer-KMGRDlFt.cjs +0 -11
  30. package/dist/renderer-pleCTv1a.js +0 -11
@@ -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
- import{H as e,Mt as t,N as n,Tt as r,U as i,W as a,at as o,hn as s,l as c}from"./freeze-updates-Dq-WbRwR.js";const l={context:void 0,registry:void 0,effects:void 0,done:!1,getContextId(){return u(this.context.count)},getNextContextId(){return u(this.context.count++)}};function u(e){let t=String(e),n=t.length-1;return l.context.id+(n?String.fromCharCode(96+n):``)+t}function d(e){l.context=e}const f=(e,t)=>e===t,p=Symbol(`solid-proxy`),m=typeof Proxy==`function`,h=Symbol(`solid-track`),g={equals:f};let _=ge;const v={owned:null,cleanups:null,context:null,owner:null},y={};var b=null;let x=null,S=null,C=null,w=null,T=0;function E(e,t){let n=S,r=b,i=e.length===0,a=t===void 0?r:t,o=i?v:{owned:null,cleanups:null,context:a?a.context:null,owner:a},s=i?e:()=>e(()=>N(()=>V(o)));b=o,S=null;try{return z(s,!0)}finally{S=n,b=r}}function D(e,t){t=t?Object.assign({},g,t):g;let n={value:e,observers:null,observerSlots:null,comparator:t.equals||void 0};return[fe.bind(n),e=>(typeof e==`function`&&(e=x&&x.running&&x.sources.has(n)?e(n.tValue):e(n.value)),pe(n,e))]}function ee(e,t,n){I(L(e,t,!0,1))}function O(e,t,n){I(L(e,t,!1,1))}function k(e,t,n){_=_e;let r=L(e,t,!1,1),i=F&&ue(F);i&&(r.suspense=i),(!n||!n.render)&&(r.user=!0),w?w.push(r):I(r)}function A(e,t,n){n=n?Object.assign({},g,n):g;let r=L(e,t,!0,0);return r.observers=null,r.observerSlots=null,r.comparator=n.equals||void 0,I(r),fe.bind(r)}function te(e){return e&&typeof e==`object`&&`then`in e}function j(e,t,n){let r,i,a;typeof t==`function`?(r=e,i=t,a=n||{}):(r=!0,i=e,a=t||{});let o=null,s=y,c=null,u=!1,d=!1,f=`initialValue`in a,p=typeof r==`function`&&A(r),m=new Set,[h,g]=(a.storage||D)(a.initialValue),[_,v]=D(void 0),[C,w]=D(void 0,{equals:!1}),[T,E]=D(f?`ready`:`unresolved`);l.context&&(c=l.getNextContextId(),a.ssrLoadFrom===`initial`?s=a.initialValue:l.load&&l.has(c)&&(s=l.load(c)));function O(e,t,n,r){return o===e&&(o=null,r!==void 0&&(f=!0),(e===s||t===s)&&a.onHydrated&&queueMicrotask(()=>a.onHydrated(r,{value:t})),s=y,x&&e&&u?(x.promises.delete(e),u=!1,z(()=>{x.running=!0,k(t,n)},!1)):k(t,n)),t}function k(e,t){z(()=>{t===void 0&&g(()=>e),E(t===void 0?f?`ready`:`unresolved`:`errored`),v(t);for(let e of m.keys())e.decrement();m.clear()},!1)}function j(){let e=F&&ue(F),t=h(),n=_();if(n!==void 0&&!o)throw n;return S&&!S.user&&e&&ee(()=>{C(),o&&(e.resolved&&x&&u?x.promises.add(o):m.has(e)||(e.increment(),m.add(e)))}),t}function M(e=!0){if(e!==!1&&d)return;d=!1;let t=p?p():r;if(u=x&&x.running,t==null||t===!1){O(o,N(h));return}x&&o&&x.promises.delete(o);let n,a=s===y?N(()=>{try{return i(t,{value:h(),refetching:e})}catch(e){n=e}}):s;if(n!==void 0){O(o,void 0,H(n),t);return}else if(!te(a))return O(o,a,void 0,t),a;return o=a,`v`in a?(a.s===1?O(o,a.v,void 0,t):O(o,void 0,H(a.v),t),a):(d=!0,queueMicrotask(()=>d=!1),z(()=>{E(f?`refreshing`:`pending`),w()},!1),a.then(e=>O(a,e,void 0,t),e=>O(a,void 0,H(e),t)))}Object.defineProperties(j,{state:{get:()=>T()},error:{get:()=>_()},loading:{get(){let e=T();return e===`pending`||e===`refreshing`}},latest:{get(){if(!f)return j();let e=_();if(e&&!o)throw e;return h()}}});let ne=b;return p?ee(()=>(ne=b,M(!1))):M(!1),[j,{refetch:e=>oe(ne,()=>M(e)),mutate:g}]}function M(e){return z(e,!1)}function N(e){if(S===null)return e();let t=S;S=null;try{return e()}finally{S=t}}function ne(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=N(()=>t(o,i,n));return i=o,s}}function re(e){k(()=>N(e))}function P(e){return b===null||(b.cleanups===null?b.cleanups=[e]:b.cleanups.push(e)),e}function ie(){return S}function ae(){return b}function oe(e,t){let n=b,r=S;b=e,S=null;try{return z(t,!0)}catch(e){U(e)}finally{b=n,S=r}}const[se,ce]=D(!1);function le(e,t){let n=Symbol(`context`);return{id:n,Provider:xe(n),defaultValue:e}}function ue(e){let t;return b&&b.context&&(t=b.context[e.id])!==void 0?t:e.defaultValue}function de(e){let t=A(e),n=A(()=>be(t()));return n.toArray=()=>{let e=n();return Array.isArray(e)?e:e==null?[]:[e]},n}let F;function fe(){let e=x&&x.running;if(this.sources&&(e?this.tState:this.state))if((e?this.tState:this.state)===1)I(this);else{let e=C;C=null,z(()=>B(this),!1),C=e}if(S){let e=this.observers?this.observers.length:0;S.sources?(S.sources.push(this),S.sourceSlots.push(e)):(S.sources=[this],S.sourceSlots=[e]),this.observers?(this.observers.push(S),this.observerSlots.push(S.sources.length-1)):(this.observers=[S],this.observerSlots=[S.sources.length-1])}return e&&x.sources.has(this)?this.tValue:this.value}function pe(e,t,n){let r=x&&x.running&&x.sources.has(e)?e.tValue:e.value;if(!e.comparator||!e.comparator(r,t)){if(x){let r=x.running;(r||!n&&x.sources.has(e))&&(x.sources.add(e),e.tValue=t),r||(e.value=t)}else e.value=t;e.observers&&e.observers.length&&z(()=>{for(let t=0;t<e.observers.length;t+=1){let n=e.observers[t],r=x&&x.running;r&&x.disposed.has(n)||((r?!n.tState:!n.state)&&(n.pure?C.push(n):w.push(n),n.observers&&ve(n)),r?n.tState=1:n.state=1)}if(C.length>1e6)throw C=[],Error()},!1)}return t}function I(e){if(!e.fn)return;V(e);let t=T;me(e,x&&x.running&&x.sources.has(e)?e.tValue:e.value,t),x&&!x.running&&x.sources.has(e)&&queueMicrotask(()=>{z(()=>{x&&(x.running=!0),S=b=e,me(e,e.tValue,t),S=b=null},!1)})}function me(e,t,n){let r,i=b,a=S;S=b=e;try{r=e.fn(t)}catch(t){return e.pure&&(x&&x.running?(e.tState=1,e.tOwned&&e.tOwned.forEach(V),e.tOwned=void 0):(e.state=1,e.owned&&e.owned.forEach(V),e.owned=null)),e.updatedAt=n+1,U(t)}finally{S=a,b=i}(!e.updatedAt||e.updatedAt<=n)&&(e.updatedAt!=null&&`observers`in e?pe(e,r,!0):x&&x.running&&e.pure?(x.sources.has(e)||(e.value=r),x.sources.add(e),e.tValue=r):e.value=r,e.updatedAt=n)}function L(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:b,context:b?b.context:null,pure:n};return x&&x.running&&(a.state=0,a.tState=r),b===null||b!==v&&(x&&x.running&&b.pure?b.tOwned?b.tOwned.push(a):b.tOwned=[a]:b.owned?b.owned.push(a):b.owned=[a]),a}function R(e){let t=x&&x.running;if((t?e.tState:e.state)===0)return;if((t?e.tState:e.state)===2)return B(e);if(e.suspense&&N(e.suspense.inFallback))return e.suspense.effects.push(e);let n=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<T);){if(t&&x.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(x.disposed.has(t))return}if((t?e.tState:e.state)===1)I(e);else if((t?e.tState:e.state)===2){let t=C;C=null,z(()=>B(e,n[0]),!1),C=t}}}function z(e,t){if(C)return e();let n=!1;t||(C=[]),w?n=!0:w=[],T++;try{let t=e();return he(n),t}catch(e){n||(w=null),C=null,U(e)}}function he(e){if(C&&=(ge(C),null),e)return;let t;if(x){if(!x.promises.size&&!x.queue.size){let e=x.sources,n=x.disposed;w.push.apply(w,x.effects),t=x.resolve;for(let e of w)`tState`in e&&(e.state=e.tState),delete e.tState;x=null,z(()=>{for(let e of n)V(e);for(let t of e){if(t.value=t.tValue,t.owned)for(let e=0,n=t.owned.length;e<n;e++)V(t.owned[e]);t.tOwned&&(t.owned=t.tOwned),delete t.tValue,delete t.tOwned,t.tState=0}ce(!1)},!1)}else if(x.running){x.running=!1,x.effects.push.apply(x.effects,w),w=null,ce(!0);return}}let n=w;w=null,n.length&&z(()=>_(n),!1),t&&t()}function ge(e){for(let t=0;t<e.length;t++)R(e[t])}function _e(e){let t,n=0;for(t=0;t<e.length;t++){let r=e[t];r.user?e[n++]=r:R(r)}if(l.context){if(l.count){l.effects||=[],l.effects.push(...e.slice(0,n));return}d()}for(l.effects&&(l.done||!l.count)&&(e=[...l.effects,...e],n+=l.effects.length,delete l.effects),t=0;t<n;t++)R(e[t])}function B(e,t){let n=x&&x.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<T)&&R(i):e===2&&B(i,t)}}}function ve(e){let t=x&&x.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?C.push(r):w.push(r),r.observers&&ve(r))}}function V(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--)V(e.tOwned[t]);delete e.tOwned}if(x&&x.running&&e.pure)ye(e,!0);else if(e.owned){for(t=e.owned.length-1;t>=0;t--)V(e.owned[t]);e.owned=null}if(e.cleanups){for(t=e.cleanups.length-1;t>=0;t--)e.cleanups[t]();e.cleanups=null}x&&x.running?e.tState=0:e.state=0}function ye(e,t){if(t||(e.tState=0,x.disposed.add(e)),e.owned)for(let t=0;t<e.owned.length;t++)ye(e.owned[t])}function H(e){return e instanceof Error?e:Error(typeof e==`string`?e:`Unknown error`,{cause:e})}function U(e,t=b){throw H(e)}function be(e){if(typeof e==`function`&&!e.length)return be(e());if(Array.isArray(e)){let t=[];for(let n=0;n<e.length;n++){let r=be(e[n]);Array.isArray(r)?t.push.apply(t,r):t.push(r)}return t}return e}function xe(e,t){return function(t){let n;return O(()=>n=N(()=>(b.context={...b.context,[e]:t.value},de(()=>t.children))),void 0),n}}const Se=Symbol(`fallback`);function Ce(e){for(let t=0;t<e.length;t++)e[t]()}function we(e,t,n={}){let r=[],i=[],a=[],o=0,s=t.length>1?[]:null;return P(()=>Ce(a)),()=>{let c=e()||[],l=c.length,u,d;return c[h],N(()=>{let e,t,p,m,h,g,_,v,y;if(l===0)o!==0&&(Ce(a),a=[],r=[],i=[],o=0,s&&=[]),n.fallback&&(r=[Se],i[0]=E(e=>(a[0]=e,n.fallback())),o=1);else if(o===0){for(i=Array(l),d=0;d<l;d++)r[d]=c[d],i[d]=E(f);o=l}else{for(p=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--)p[v]=i[_],m[v]=a[_],s&&(h[v]=s[_]);for(e=new Map,t=Array(v+1),d=v;d>=g;d--)y=c[d],u=e.get(y),t[d]=u===void 0?-1:u,e.set(y,d);for(u=g;u<=_;u++)y=r[u],d=e.get(y),d!==void 0&&d!==-1?(p[d]=i[u],m[d]=a[u],s&&(h[d]=s[u]),d=t[d],e.set(y,d)):a[u]();for(d=g;d<l;d++)d in p?(i[d]=p[d],a[d]=m[d],s&&(s[d]=h[d],s[d](d))):i[d]=E(f);i=i.slice(0,o=l),r=c.slice(0)}return i});function f(e){if(a[d]=e,s){let[e,n]=D(d);return s[d]=n,t(c[d],e)}return t(c[d])}}}function Te(e,t){return N(()=>e(t||{}))}function W(){return!0}const Ee={get(e,t,n){return t===p?n:e.get(t)},has(e,t){return t===p?!0:e.has(t)},set:W,deleteProperty:W,getOwnPropertyDescriptor(e,t){return{configurable:!0,enumerable:!0,get(){return e.get(t)},set:W,deleteProperty:W}},ownKeys(e){return e.keys()}};function De(e){return(e=typeof e==`function`?e():e)?e:{}}function Oe(){for(let e=0,t=this.length;e<t;++e){let t=this[e]();if(t!==void 0)return t}}function ke(...e){let t=!1;for(let n=0;n<e.length;n++){let r=e[n];t||=!!r&&p in r,e[n]=typeof r==`function`?(t=!0,A(r)):r}if(m&&t)return new Proxy({get(t){for(let n=e.length-1;n>=0;n--){let r=De(e[n])[t];if(r!==void 0)return r}},has(t){for(let n=e.length-1;n>=0;n--)if(t in De(e[n]))return!0;return!1},keys(){let t=[];for(let n=0;n<e.length;n++)t.push(...Object.keys(De(e[n])));return[...new Set(t)]}},Ee);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:Oe.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 Ae(e,...t){let n=t.length;if(m&&p 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)}},Ee));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))}},Ee)),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 je=e=>`Stale read from <${e}>.`;function Me(e){let t=`fallback`in e&&{fallback:()=>e.fallback};return A(we(()=>e.each,e.children,t||void 0))}function Ne(e){let t=e.keyed,n=A(()=>e.when,void 0,void 0),r=t?n:A(n,void 0,{equals:(e,t)=>!e==!t});return A(()=>{let i=r();if(i){let a=e.children;return typeof a==`function`&&a.length>0?N(()=>a(t?i:()=>{if(!N(r))throw je(`Show`);return n()})):a}return e.fallback},void 0,void 0)}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=>A(()=>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 E(r=>{i=r,t===document?e():K(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?()=>N(()=>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,ot))}}function G(e,t,n){q(e)||(n==null?e.removeAttribute(t):e.setAttribute(t,n))}function qe(e,t,n,r){q(e)||(r==null?e.removeAttributeNS(t,n):e.setAttributeNS(t,n,r))}function Je(e,t,n){q(e)||(n?e.setAttribute(t,``):e.removeAttribute(t))}function Ye(e,t){q(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]||(it(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||(it(e,i,!0),n[i]=o)}return n}function Qe(e,t,n){if(!t)return n?G(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||O(()=>i.children=J(e,t.children,i.children)),O(()=>typeof t.ref==`function`&&tt(t.ref,e)),O(()=>nt(e,t,n,!0,i,!0)),i}function tt(e,t,n){return N(()=>e(t,n))}function K(e,t,n,r){if(n!==void 0&&!r&&(r=[]),typeof t!=`function`)return J(e,t,r,n);O(r=>J(e,t(),r,n),r)}function nt(e,t,n,r,i={},a=!1){t||={};for(let r in i)if(!(r in t)){if(r===`children`)continue;i[r]=at(e,r,null,i[r],n,a,t)}for(let o in t){if(o===`children`){r||J(e,t.children);continue}let s=t[o];i[o]=at(e,o,s,i[o],n,a,t)}}function q(e){return!!l.context&&!l.done&&(!e||e.isConnected)}function rt(e){return e.toLowerCase().replace(/-([a-z])/g,(e,t)=>t.toUpperCase())}function it(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 at(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:`)G(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(q(e))return n;t===`class`||t===`className`?Ye(e,n):s&&!c&&!l?e[rt(t)]=n:e[u||t]=n}else{let r=i&&t.indexOf(`:`)>-1&&Be[t.split(`:`)[0]];r?qe(e,r,t,n):G(e,Ie[t]||t,n)}return n}function ot(e){if(l.registry&&l.events&&l.events.find(([t,n])=>n===e))return;let t=e.target,n=`$$${e.type}`,r=e.target,i=e.currentTarget,a=t=>Object.defineProperty(e,`target`,{configurable:!0,value:t}),o=()=>{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)&&a(t.host),!0},s=()=>{for(;o()&&(t=t._$host||t.parentNode||t.host););};if(Object.defineProperty(e,`currentTarget`,{configurable:!0,get(){return t||document}}),l.registry&&!l.done&&(l.done=_$HY.done=!0),e.composedPath){let n=e.composedPath();a(n[0]);for(let e=0;e<n.length-2&&(t=n[e],o());e++){if(t._$host){t=t._$host,s();break}if(t.parentNode===i)break}}else s();a(r)}function J(e,t,n,r,i){let a=q(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=Y(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=Y(e,n,r)}else if(o===`function`)return O(()=>{let i=t();for(;typeof i==`function`;)i=i();n=J(e,i,n,r)}),()=>n;else if(Array.isArray(t)){let o=[],c=n&&Array.isArray(n);if(st(o,t,n,i))return O(()=>n=J(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=Y(e,n,r),s)return n}else c?n.length===0?ct(e,o,r):He(e,n,o):(n&&Y(e),ct(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=Y(e,n,r,t);Y(e,n,null,t)}else n==null||n===``||!e.firstChild?e.appendChild(t):e.replaceChild(t,e.firstChild);n=t}return n}function st(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=st(e,o,s)||i;else if(c===`function`)if(r){for(;typeof o==`function`;)o=o();i=st(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 ct(e,t,n=null){for(let r=0,i=t.length;r<i;r++)e.insertBefore(t[r],n)}function Y(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]}function lt(e,t=!1,n=void 0){return t?document.createElementNS(`http://www.w3.org/2000/svg`,e):document.createElement(e,{is:n})}function ut(e){let{useShadow:t}=e,n=document.createTextNode(``),r=()=>e.mount||document.body,i=ae(),a,o=!!l.context;return k(()=>{o&&(ae().user=o=!1),a||=oe(i,()=>A(()=>e.children));let s=r();if(s instanceof HTMLHeadElement){let[e,t]=D(!1);E(t=>K(s,()=>e()?t():a(),null)),P(()=>t(!0))}else{let r=lt(e.isSVG?`g`:`div`,e.isSVG),i=t&&r.attachShadow?r.attachShadow({mode:`open`}):r;Object.defineProperty(r,`_$host`,{get(){return n.parentNode},configurable:!0}),K(i,a),s.appendChild(r),e.ref&&e.ref(r),P(()=>s.removeChild(r))}},void 0,{render:!o}),n}const dt=e=>{if(!e)return!1;let t=o(e);return t?t.isConnected():!!(e.isConnected||e.ownerDocument?.contains(e))},ft=[`input`,`textarea`,`select`,`searchbox`,`slider`,`spinbutton`,`menuitem`,`menuitemcheckbox`,`menuitemradio`,`option`,`radio`,`textbox`,`combobox`],pt=e=>{if(e.composed){let t=e.composedPath()[0];if(t instanceof HTMLElement)return t}else if(e.target instanceof HTMLElement)return e.target},mt=t=>{if(document.designMode===`on`)return!0;let n=pt(t);if(!n)return!1;if(n.isContentEditable)return!0;let r=e(n);return ft.some(e=>e===r||e===n.role)},ht=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},gt=()=>{let e=window.getSelection();return e?e.toString().length>0:!1},_t=`data-react-grab`,vt=(e,t,n)=>Math.max(t,Math.min(e,n)),X={width:0,height:0,offsetLeft:0,offsetTop:0};let yt=null,bt=-1/0;const xt=()=>{bt=-1/0},St=e=>{if(e){let t=e.getBoundingClientRect();X.width=t.width,X.height=t.height,X.offsetLeft=t.left,X.offsetTop=t.top;return}let t=window.visualViewport;X.width=t?.width??window.innerWidth,X.height=t?.height??window.innerHeight,X.offsetLeft=t?.offsetLeft??0,X.offsetTop=t?.offsetTop??0},Ct=()=>{let e=n(),t=performance.now();return(e!==yt||t-bt>=16)&&(yt=e,bt=t,St(e)),{width:X.width,height:X.height,offsetLeft:X.offsetLeft,offsetTop:X.offsetTop}};let Z=null;const wt=()=>{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},Tt=()=>{if(Z===null){if(typeof navigator>`u`)return Z=!1,Z;let e=navigator.platform??wt()??navigator.userAgent;Z=/Mac|iPhone|iPad|iPod/i.test(e)}return Z},Et=(e,t)=>{try{return e.composedPath().some(e=>r(e)&&e.hasAttribute(t))}catch{return!1}},Q=e=>`${e}-${Date.now()}-${Math.random().toString(36).slice(2,9)}`,Dt=`react-grab-toolbar-state`,Ot=()=>{try{let e=localStorage.getItem(Dt);if(!e)return null;let n=JSON.parse(e);if(typeof n!=`object`||!n)return null;let r=n,i=typeof r.collapsed==`boolean`?r.collapsed:!1;return{edge:r.edge===`top`||r.edge===`bottom`||r.edge===`left`||r.edge===`right`?r.edge:`bottom`,ratio:typeof r.ratio==`number`?r.ratio:s,collapsed:i,enabled:!i,defaultAction:typeof r.defaultAction==`string`?r.defaultAction:t}}catch(e){console.warn(`[react-grab] Failed to load toolbar state from localStorage:`,e)}return null},kt=e=>{try{localStorage.setItem(Dt,JSON.stringify(e))}catch(e){console.warn(`[react-grab] Failed to save toolbar state to localStorage:`,e)}},At=`react-grab-comment-items`,jt=60*1e3,Mt=60*jt,Nt=24*Mt,Pt=new Set;let $=null;const Ft=e=>{if(typeof e.content!=`string`||typeof e.commentText!=`string`||typeof e.tagName!=`string`||typeof e.timestamp!=`number`||!Number.isFinite(e.timestamp))return null;let t=typeof e.componentName==`string`?e.componentName:typeof e.elementName==`string`?e.elementName:void 0;return{id:typeof e.id==`string`?e.id:Q(`comment`),content:e.content,tagName:e.tagName,componentName:t,elementsCount:typeof e.elementsCount==`number`&&Number.isFinite(e.elementsCount)?Math.max(1,Math.floor(e.elementsCount)):1,elementSelectors:Array.isArray(e.elementSelectors)?e.elementSelectors.filter(e=>typeof e==`string`):[],commentText:e.commentText,timestamp:e.timestamp}},It=()=>{if(typeof window>`u`)return[];try{let e=sessionStorage.getItem(At);if(!e)return[];let t=JSON.parse(e);return Array.isArray(t)?t.map(e=>Ft(e)).filter(e=>e!==null).slice(0,50):[]}catch{return[]}},Lt=()=>($??=It(),$),Rt=e=>{let t=e;for(;t.length>0;){let e=JSON.stringify(t);if(new Blob([e]).size<=524288)return t;t=t.slice(0,-1)}return[]},zt=e=>{$=Rt(e);try{sessionStorage.setItem(At,JSON.stringify($))}catch{}for(let e of Pt)e($);return $},Bt=(e,t)=>e.length===t.length&&e.every((e,n)=>e===t[n]),Vt=()=>[...Lt()],Ht=e=>{let t=Lt().filter(t=>t.commentText!==e.commentText||!Bt(t.elementSelectors,e.elementSelectors));return zt([{...e,id:Q(`comment`)},...t].slice(0,50))},Ut=e=>zt(Lt().filter(t=>t.id!==e)),Wt=()=>zt([]),Gt=e=>(Pt.add(e),()=>{Pt.delete(e)}),Kt=e=>e.key===`Enter`,qt=e=>e.metaKey||e.ctrlKey,Jt=(e,t,n={})=>{if(!t.key)return null;if(Kt(t))return e.find(e=>e.shortcut===`Enter`)??null;if(t.repeat)return null;let r=t.key.toLowerCase();return qt(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},Yt=e=>e??!0,Xt=(e,t)=>{if(typeof e.enabled==`function`){if(!t)return!1;try{return e.enabled(t)}catch(t){return c(new i(e.id,t)),!1}}return Yt(e.enabled)},Zt=(e,t)=>{if(!Xt(e,t))return!1;try{let n=e.onAction(t);n&&n.catch(t=>{c(new a(e.id,t))})}catch(t){c(new a(e.id,t))}return!0};export{ae as $,K as A,h as B,mt as C,Ze as D,Xe as E,et as F,le as G,Ne as H,Qe as I,O as J,k as K,Ge as L,We as M,G as N,Ye as O,$e as P,ie as Q,tt as R,gt as S,ut as T,M as U,Me as V,Te as W,E as X,j as Y,D as Z,Ct as _,Wt as a,Ae as at,_t as b,Gt as c,jt as d,we as et,Ot as f,Tt as g,Et as h,Ht as i,re as it,Ve as j,Ke as k,Nt as l,Q as m,Xt as n,ne as nt,Vt as o,N as ot,kt as p,A as q,Jt as r,P as rt,Ut as s,ue as st,Zt as t,ke as tt,Mt as u,xt as v,dt as w,ht as x,vt as y,p as z};
9
+ import{H as e,Mt as t,N as n,Tt as r,U as i,W as a,at as o,hn as s,l as c}from"./freeze-updates-BagDh7PQ.js";const l={context:void 0,registry:void 0,effects:void 0,done:!1,getContextId(){return u(this.context.count)},getNextContextId(){return u(this.context.count++)}};function u(e){let t=String(e),n=t.length-1;return l.context.id+(n?String.fromCharCode(96+n):``)+t}function d(e){l.context=e}const f=(e,t)=>e===t,p=Symbol(`solid-proxy`),m=typeof Proxy==`function`,h=Symbol(`solid-track`),g={equals:f};let _=ge;const v={owned:null,cleanups:null,context:null,owner:null},y={};var b=null;let x=null,S=null,C=null,w=null,T=0;function E(e,t){let n=S,r=b,i=e.length===0,a=t===void 0?r:t,o=i?v:{owned:null,cleanups:null,context:a?a.context:null,owner:a},s=i?e:()=>e(()=>N(()=>V(o)));b=o,S=null;try{return z(s,!0)}finally{S=n,b=r}}function D(e,t){t=t?Object.assign({},g,t):g;let n={value:e,observers:null,observerSlots:null,comparator:t.equals||void 0};return[fe.bind(n),e=>(typeof e==`function`&&(e=x&&x.running&&x.sources.has(n)?e(n.tValue):e(n.value)),pe(n,e))]}function ee(e,t,n){I(L(e,t,!0,1))}function O(e,t,n){I(L(e,t,!1,1))}function k(e,t,n){_=_e;let r=L(e,t,!1,1),i=F&&ue(F);i&&(r.suspense=i),(!n||!n.render)&&(r.user=!0),w?w.push(r):I(r)}function A(e,t,n){n=n?Object.assign({},g,n):g;let r=L(e,t,!0,0);return r.observers=null,r.observerSlots=null,r.comparator=n.equals||void 0,I(r),fe.bind(r)}function te(e){return e&&typeof e==`object`&&`then`in e}function j(e,t,n){let r,i,a;typeof t==`function`?(r=e,i=t,a=n||{}):(r=!0,i=e,a=t||{});let o=null,s=y,c=null,u=!1,d=!1,f=`initialValue`in a,p=typeof r==`function`&&A(r),m=new Set,[h,g]=(a.storage||D)(a.initialValue),[_,v]=D(void 0),[C,w]=D(void 0,{equals:!1}),[T,E]=D(f?`ready`:`unresolved`);l.context&&(c=l.getNextContextId(),a.ssrLoadFrom===`initial`?s=a.initialValue:l.load&&l.has(c)&&(s=l.load(c)));function O(e,t,n,r){return o===e&&(o=null,r!==void 0&&(f=!0),(e===s||t===s)&&a.onHydrated&&queueMicrotask(()=>a.onHydrated(r,{value:t})),s=y,x&&e&&u?(x.promises.delete(e),u=!1,z(()=>{x.running=!0,k(t,n)},!1)):k(t,n)),t}function k(e,t){z(()=>{t===void 0&&g(()=>e),E(t===void 0?f?`ready`:`unresolved`:`errored`),v(t);for(let e of m.keys())e.decrement();m.clear()},!1)}function j(){let e=F&&ue(F),t=h(),n=_();if(n!==void 0&&!o)throw n;return S&&!S.user&&e&&ee(()=>{C(),o&&(e.resolved&&x&&u?x.promises.add(o):m.has(e)||(e.increment(),m.add(e)))}),t}function M(e=!0){if(e!==!1&&d)return;d=!1;let t=p?p():r;if(u=x&&x.running,t==null||t===!1){O(o,N(h));return}x&&o&&x.promises.delete(o);let n,a=s===y?N(()=>{try{return i(t,{value:h(),refetching:e})}catch(e){n=e}}):s;if(n!==void 0){O(o,void 0,H(n),t);return}else if(!te(a))return O(o,a,void 0,t),a;return o=a,`v`in a?(a.s===1?O(o,a.v,void 0,t):O(o,void 0,H(a.v),t),a):(d=!0,queueMicrotask(()=>d=!1),z(()=>{E(f?`refreshing`:`pending`),w()},!1),a.then(e=>O(a,e,void 0,t),e=>O(a,void 0,H(e),t)))}Object.defineProperties(j,{state:{get:()=>T()},error:{get:()=>_()},loading:{get(){let e=T();return e===`pending`||e===`refreshing`}},latest:{get(){if(!f)return j();let e=_();if(e&&!o)throw e;return h()}}});let ne=b;return p?ee(()=>(ne=b,M(!1))):M(!1),[j,{refetch:e=>oe(ne,()=>M(e)),mutate:g}]}function M(e){return z(e,!1)}function N(e){if(S===null)return e();let t=S;S=null;try{return e()}finally{S=t}}function ne(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=N(()=>t(o,i,n));return i=o,s}}function re(e){k(()=>N(e))}function P(e){return b===null||(b.cleanups===null?b.cleanups=[e]:b.cleanups.push(e)),e}function ie(){return S}function ae(){return b}function oe(e,t){let n=b,r=S;b=e,S=null;try{return z(t,!0)}catch(e){U(e)}finally{b=n,S=r}}const[se,ce]=D(!1);function le(e,t){let n=Symbol(`context`);return{id:n,Provider:xe(n),defaultValue:e}}function ue(e){let t;return b&&b.context&&(t=b.context[e.id])!==void 0?t:e.defaultValue}function de(e){let t=A(e),n=A(()=>be(t()));return n.toArray=()=>{let e=n();return Array.isArray(e)?e:e==null?[]:[e]},n}let F;function fe(){let e=x&&x.running;if(this.sources&&(e?this.tState:this.state))if((e?this.tState:this.state)===1)I(this);else{let e=C;C=null,z(()=>B(this),!1),C=e}if(S){let e=this.observers?this.observers.length:0;S.sources?(S.sources.push(this),S.sourceSlots.push(e)):(S.sources=[this],S.sourceSlots=[e]),this.observers?(this.observers.push(S),this.observerSlots.push(S.sources.length-1)):(this.observers=[S],this.observerSlots=[S.sources.length-1])}return e&&x.sources.has(this)?this.tValue:this.value}function pe(e,t,n){let r=x&&x.running&&x.sources.has(e)?e.tValue:e.value;if(!e.comparator||!e.comparator(r,t)){if(x){let r=x.running;(r||!n&&x.sources.has(e))&&(x.sources.add(e),e.tValue=t),r||(e.value=t)}else e.value=t;e.observers&&e.observers.length&&z(()=>{for(let t=0;t<e.observers.length;t+=1){let n=e.observers[t],r=x&&x.running;r&&x.disposed.has(n)||((r?!n.tState:!n.state)&&(n.pure?C.push(n):w.push(n),n.observers&&ve(n)),r?n.tState=1:n.state=1)}if(C.length>1e6)throw C=[],Error()},!1)}return t}function I(e){if(!e.fn)return;V(e);let t=T;me(e,x&&x.running&&x.sources.has(e)?e.tValue:e.value,t),x&&!x.running&&x.sources.has(e)&&queueMicrotask(()=>{z(()=>{x&&(x.running=!0),S=b=e,me(e,e.tValue,t),S=b=null},!1)})}function me(e,t,n){let r,i=b,a=S;S=b=e;try{r=e.fn(t)}catch(t){return e.pure&&(x&&x.running?(e.tState=1,e.tOwned&&e.tOwned.forEach(V),e.tOwned=void 0):(e.state=1,e.owned&&e.owned.forEach(V),e.owned=null)),e.updatedAt=n+1,U(t)}finally{S=a,b=i}(!e.updatedAt||e.updatedAt<=n)&&(e.updatedAt!=null&&`observers`in e?pe(e,r,!0):x&&x.running&&e.pure?(x.sources.has(e)||(e.value=r),x.sources.add(e),e.tValue=r):e.value=r,e.updatedAt=n)}function L(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:b,context:b?b.context:null,pure:n};return x&&x.running&&(a.state=0,a.tState=r),b===null||b!==v&&(x&&x.running&&b.pure?b.tOwned?b.tOwned.push(a):b.tOwned=[a]:b.owned?b.owned.push(a):b.owned=[a]),a}function R(e){let t=x&&x.running;if((t?e.tState:e.state)===0)return;if((t?e.tState:e.state)===2)return B(e);if(e.suspense&&N(e.suspense.inFallback))return e.suspense.effects.push(e);let n=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<T);){if(t&&x.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(x.disposed.has(t))return}if((t?e.tState:e.state)===1)I(e);else if((t?e.tState:e.state)===2){let t=C;C=null,z(()=>B(e,n[0]),!1),C=t}}}function z(e,t){if(C)return e();let n=!1;t||(C=[]),w?n=!0:w=[],T++;try{let t=e();return he(n),t}catch(e){n||(w=null),C=null,U(e)}}function he(e){if(C&&=(ge(C),null),e)return;let t;if(x){if(!x.promises.size&&!x.queue.size){let e=x.sources,n=x.disposed;w.push.apply(w,x.effects),t=x.resolve;for(let e of w)`tState`in e&&(e.state=e.tState),delete e.tState;x=null,z(()=>{for(let e of n)V(e);for(let t of e){if(t.value=t.tValue,t.owned)for(let e=0,n=t.owned.length;e<n;e++)V(t.owned[e]);t.tOwned&&(t.owned=t.tOwned),delete t.tValue,delete t.tOwned,t.tState=0}ce(!1)},!1)}else if(x.running){x.running=!1,x.effects.push.apply(x.effects,w),w=null,ce(!0);return}}let n=w;w=null,n.length&&z(()=>_(n),!1),t&&t()}function ge(e){for(let t=0;t<e.length;t++)R(e[t])}function _e(e){let t,n=0;for(t=0;t<e.length;t++){let r=e[t];r.user?e[n++]=r:R(r)}if(l.context){if(l.count){l.effects||=[],l.effects.push(...e.slice(0,n));return}d()}for(l.effects&&(l.done||!l.count)&&(e=[...l.effects,...e],n+=l.effects.length,delete l.effects),t=0;t<n;t++)R(e[t])}function B(e,t){let n=x&&x.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<T)&&R(i):e===2&&B(i,t)}}}function ve(e){let t=x&&x.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?C.push(r):w.push(r),r.observers&&ve(r))}}function V(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--)V(e.tOwned[t]);delete e.tOwned}if(x&&x.running&&e.pure)ye(e,!0);else if(e.owned){for(t=e.owned.length-1;t>=0;t--)V(e.owned[t]);e.owned=null}if(e.cleanups){for(t=e.cleanups.length-1;t>=0;t--)e.cleanups[t]();e.cleanups=null}x&&x.running?e.tState=0:e.state=0}function ye(e,t){if(t||(e.tState=0,x.disposed.add(e)),e.owned)for(let t=0;t<e.owned.length;t++)ye(e.owned[t])}function H(e){return e instanceof Error?e:Error(typeof e==`string`?e:`Unknown error`,{cause:e})}function U(e,t=b){throw H(e)}function be(e){if(typeof e==`function`&&!e.length)return be(e());if(Array.isArray(e)){let t=[];for(let n=0;n<e.length;n++){let r=be(e[n]);Array.isArray(r)?t.push.apply(t,r):t.push(r)}return t}return e}function xe(e,t){return function(t){let n;return O(()=>n=N(()=>(b.context={...b.context,[e]:t.value},de(()=>t.children))),void 0),n}}const Se=Symbol(`fallback`);function Ce(e){for(let t=0;t<e.length;t++)e[t]()}function we(e,t,n={}){let r=[],i=[],a=[],o=0,s=t.length>1?[]:null;return P(()=>Ce(a)),()=>{let c=e()||[],l=c.length,u,d;return c[h],N(()=>{let e,t,p,m,h,g,_,v,y;if(l===0)o!==0&&(Ce(a),a=[],r=[],i=[],o=0,s&&=[]),n.fallback&&(r=[Se],i[0]=E(e=>(a[0]=e,n.fallback())),o=1);else if(o===0){for(i=Array(l),d=0;d<l;d++)r[d]=c[d],i[d]=E(f);o=l}else{for(p=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--)p[v]=i[_],m[v]=a[_],s&&(h[v]=s[_]);for(e=new Map,t=Array(v+1),d=v;d>=g;d--)y=c[d],u=e.get(y),t[d]=u===void 0?-1:u,e.set(y,d);for(u=g;u<=_;u++)y=r[u],d=e.get(y),d!==void 0&&d!==-1?(p[d]=i[u],m[d]=a[u],s&&(h[d]=s[u]),d=t[d],e.set(y,d)):a[u]();for(d=g;d<l;d++)d in p?(i[d]=p[d],a[d]=m[d],s&&(s[d]=h[d],s[d](d))):i[d]=E(f);i=i.slice(0,o=l),r=c.slice(0)}return i});function f(e){if(a[d]=e,s){let[e,n]=D(d);return s[d]=n,t(c[d],e)}return t(c[d])}}}function Te(e,t){return N(()=>e(t||{}))}function W(){return!0}const Ee={get(e,t,n){return t===p?n:e.get(t)},has(e,t){return t===p?!0:e.has(t)},set:W,deleteProperty:W,getOwnPropertyDescriptor(e,t){return{configurable:!0,enumerable:!0,get(){return e.get(t)},set:W,deleteProperty:W}},ownKeys(e){return e.keys()}};function De(e){return(e=typeof e==`function`?e():e)?e:{}}function Oe(){for(let e=0,t=this.length;e<t;++e){let t=this[e]();if(t!==void 0)return t}}function ke(...e){let t=!1;for(let n=0;n<e.length;n++){let r=e[n];t||=!!r&&p in r,e[n]=typeof r==`function`?(t=!0,A(r)):r}if(m&&t)return new Proxy({get(t){for(let n=e.length-1;n>=0;n--){let r=De(e[n])[t];if(r!==void 0)return r}},has(t){for(let n=e.length-1;n>=0;n--)if(t in De(e[n]))return!0;return!1},keys(){let t=[];for(let n=0;n<e.length;n++)t.push(...Object.keys(De(e[n])));return[...new Set(t)]}},Ee);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:Oe.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 Ae(e,...t){let n=t.length;if(m&&p 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)}},Ee));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))}},Ee)),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 je=e=>`Stale read from <${e}>.`;function Me(e){let t=`fallback`in e&&{fallback:()=>e.fallback};return A(we(()=>e.each,e.children,t||void 0))}function Ne(e){let t=e.keyed,n=A(()=>e.when,void 0,void 0),r=t?n:A(n,void 0,{equals:(e,t)=>!e==!t});return A(()=>{let i=r();if(i){let a=e.children;return typeof a==`function`&&a.length>0?N(()=>a(t?i:()=>{if(!N(r))throw je(`Show`);return n()})):a}return e.fallback},void 0,void 0)}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=>A(()=>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 E(r=>{i=r,t===document?e():K(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?()=>N(()=>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,ot))}}function G(e,t,n){q(e)||(n==null?e.removeAttribute(t):e.setAttribute(t,n))}function qe(e,t,n,r){q(e)||(r==null?e.removeAttributeNS(t,n):e.setAttributeNS(t,n,r))}function Je(e,t,n){q(e)||(n?e.setAttribute(t,``):e.removeAttribute(t))}function Ye(e,t){q(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]||(it(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||(it(e,i,!0),n[i]=o)}return n}function Qe(e,t,n){if(!t)return n?G(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||O(()=>i.children=J(e,t.children,i.children)),O(()=>typeof t.ref==`function`&&tt(t.ref,e)),O(()=>nt(e,t,n,!0,i,!0)),i}function tt(e,t,n){return N(()=>e(t,n))}function K(e,t,n,r){if(n!==void 0&&!r&&(r=[]),typeof t!=`function`)return J(e,t,r,n);O(r=>J(e,t(),r,n),r)}function nt(e,t,n,r,i={},a=!1){t||={};for(let r in i)if(!(r in t)){if(r===`children`)continue;i[r]=at(e,r,null,i[r],n,a,t)}for(let o in t){if(o===`children`){r||J(e,t.children);continue}let s=t[o];i[o]=at(e,o,s,i[o],n,a,t)}}function q(e){return!!l.context&&!l.done&&(!e||e.isConnected)}function rt(e){return e.toLowerCase().replace(/-([a-z])/g,(e,t)=>t.toUpperCase())}function it(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 at(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:`)G(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(q(e))return n;t===`class`||t===`className`?Ye(e,n):s&&!c&&!l?e[rt(t)]=n:e[u||t]=n}else{let r=i&&t.indexOf(`:`)>-1&&Be[t.split(`:`)[0]];r?qe(e,r,t,n):G(e,Ie[t]||t,n)}return n}function ot(e){if(l.registry&&l.events&&l.events.find(([t,n])=>n===e))return;let t=e.target,n=`$$${e.type}`,r=e.target,i=e.currentTarget,a=t=>Object.defineProperty(e,`target`,{configurable:!0,value:t}),o=()=>{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)&&a(t.host),!0},s=()=>{for(;o()&&(t=t._$host||t.parentNode||t.host););};if(Object.defineProperty(e,`currentTarget`,{configurable:!0,get(){return t||document}}),l.registry&&!l.done&&(l.done=_$HY.done=!0),e.composedPath){let n=e.composedPath();a(n[0]);for(let e=0;e<n.length-2&&(t=n[e],o());e++){if(t._$host){t=t._$host,s();break}if(t.parentNode===i)break}}else s();a(r)}function J(e,t,n,r,i){let a=q(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=Y(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=Y(e,n,r)}else if(o===`function`)return O(()=>{let i=t();for(;typeof i==`function`;)i=i();n=J(e,i,n,r)}),()=>n;else if(Array.isArray(t)){let o=[],c=n&&Array.isArray(n);if(st(o,t,n,i))return O(()=>n=J(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=Y(e,n,r),s)return n}else c?n.length===0?ct(e,o,r):He(e,n,o):(n&&Y(e),ct(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=Y(e,n,r,t);Y(e,n,null,t)}else n==null||n===``||!e.firstChild?e.appendChild(t):e.replaceChild(t,e.firstChild);n=t}return n}function st(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=st(e,o,s)||i;else if(c===`function`)if(r){for(;typeof o==`function`;)o=o();i=st(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 ct(e,t,n=null){for(let r=0,i=t.length;r<i;r++)e.insertBefore(t[r],n)}function Y(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]}function lt(e,t=!1,n=void 0){return t?document.createElementNS(`http://www.w3.org/2000/svg`,e):document.createElement(e,{is:n})}function ut(e){let{useShadow:t}=e,n=document.createTextNode(``),r=()=>e.mount||document.body,i=ae(),a,o=!!l.context;return k(()=>{o&&(ae().user=o=!1),a||=oe(i,()=>A(()=>e.children));let s=r();if(s instanceof HTMLHeadElement){let[e,t]=D(!1);E(t=>K(s,()=>e()?t():a(),null)),P(()=>t(!0))}else{let r=lt(e.isSVG?`g`:`div`,e.isSVG),i=t&&r.attachShadow?r.attachShadow({mode:`open`}):r;Object.defineProperty(r,`_$host`,{get(){return n.parentNode},configurable:!0}),K(i,a),s.appendChild(r),e.ref&&e.ref(r),P(()=>s.removeChild(r))}},void 0,{render:!o}),n}const dt=e=>{if(!e)return!1;let t=o(e);return t?t.isConnected():!!(e.isConnected||e.ownerDocument?.contains(e))},ft=[`input`,`textarea`,`select`,`searchbox`,`slider`,`spinbutton`,`menuitem`,`menuitemcheckbox`,`menuitemradio`,`option`,`radio`,`textbox`,`combobox`],pt=e=>{if(e.composed){let t=e.composedPath()[0];if(t instanceof HTMLElement)return t}else if(e.target instanceof HTMLElement)return e.target},mt=t=>{if(document.designMode===`on`)return!0;let n=pt(t);if(!n)return!1;if(n.isContentEditable)return!0;let r=e(n);return ft.some(e=>e===r||e===n.role)},ht=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},gt=()=>{let e=window.getSelection();return e?e.toString().length>0:!1},_t=`data-react-grab`,vt=(e,t,n)=>Math.max(t,Math.min(e,n)),X={width:0,height:0,offsetLeft:0,offsetTop:0};let yt=null,bt=-1/0;const xt=()=>{bt=-1/0},St=e=>{if(e){let t=e.getBoundingClientRect();X.width=t.width,X.height=t.height,X.offsetLeft=t.left,X.offsetTop=t.top;return}let t=window.visualViewport;X.width=t?.width??window.innerWidth,X.height=t?.height??window.innerHeight,X.offsetLeft=t?.offsetLeft??0,X.offsetTop=t?.offsetTop??0},Ct=()=>{let e=n(),t=performance.now();return(e!==yt||t-bt>=16)&&(yt=e,bt=t,St(e)),{width:X.width,height:X.height,offsetLeft:X.offsetLeft,offsetTop:X.offsetTop}};let Z=null;const wt=()=>{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},Tt=()=>{if(Z===null){if(typeof navigator>`u`)return Z=!1,Z;let e=navigator.platform??wt()??navigator.userAgent;Z=/Mac|iPhone|iPad|iPod/i.test(e)}return Z},Et=(e,t)=>{try{return e.composedPath().some(e=>r(e)&&e.hasAttribute(t))}catch{return!1}},Q=e=>`${e}-${Date.now()}-${Math.random().toString(36).slice(2,9)}`,Dt=`react-grab-toolbar-state`,Ot=()=>{try{let e=localStorage.getItem(Dt);if(!e)return null;let n=JSON.parse(e);if(typeof n!=`object`||!n)return null;let r=n,i=typeof r.collapsed==`boolean`?r.collapsed:!1;return{edge:r.edge===`top`||r.edge===`bottom`||r.edge===`left`||r.edge===`right`?r.edge:`bottom`,ratio:typeof r.ratio==`number`?r.ratio:s,collapsed:i,enabled:!i,defaultAction:typeof r.defaultAction==`string`?r.defaultAction:t}}catch(e){console.warn(`[react-grab] Failed to load toolbar state from localStorage:`,e)}return null},kt=e=>{try{localStorage.setItem(Dt,JSON.stringify(e))}catch(e){console.warn(`[react-grab] Failed to save toolbar state to localStorage:`,e)}},At=`react-grab-comment-items`,jt=60*1e3,Mt=60*jt,Nt=24*Mt,Pt=new Set;let $=null;const Ft=e=>{if(typeof e.content!=`string`||typeof e.commentText!=`string`||typeof e.tagName!=`string`||typeof e.timestamp!=`number`||!Number.isFinite(e.timestamp))return null;let t=typeof e.componentName==`string`?e.componentName:typeof e.elementName==`string`?e.elementName:void 0;return{id:typeof e.id==`string`?e.id:Q(`comment`),content:e.content,tagName:e.tagName,componentName:t,elementsCount:typeof e.elementsCount==`number`&&Number.isFinite(e.elementsCount)?Math.max(1,Math.floor(e.elementsCount)):1,elementSelectors:Array.isArray(e.elementSelectors)?e.elementSelectors.filter(e=>typeof e==`string`):[],commentText:e.commentText,timestamp:e.timestamp}},It=()=>{if(typeof window>`u`)return[];try{let e=sessionStorage.getItem(At);if(!e)return[];let t=JSON.parse(e);return Array.isArray(t)?t.map(e=>Ft(e)).filter(e=>e!==null).slice(0,50):[]}catch{return[]}},Lt=()=>($??=It(),$),Rt=e=>{let t=e;for(;t.length>0;){let e=JSON.stringify(t);if(new Blob([e]).size<=524288)return t;t=t.slice(0,-1)}return[]},zt=e=>{$=Rt(e);try{sessionStorage.setItem(At,JSON.stringify($))}catch{}for(let e of Pt)e($);return $},Bt=(e,t)=>e.length===t.length&&e.every((e,n)=>e===t[n]),Vt=()=>[...Lt()],Ht=e=>{let t=Lt().filter(t=>t.commentText!==e.commentText||!Bt(t.elementSelectors,e.elementSelectors));return zt([{...e,id:Q(`comment`)},...t].slice(0,50))},Ut=e=>zt(Lt().filter(t=>t.id!==e)),Wt=()=>zt([]),Gt=e=>(Pt.add(e),()=>{Pt.delete(e)}),Kt=e=>e.key===`Enter`,qt=e=>e.metaKey||e.ctrlKey,Jt=(e,t,n={})=>{if(!t.key)return null;if(Kt(t))return e.find(e=>e.shortcut===`Enter`)??null;if(t.repeat)return null;let r=t.key.toLowerCase();return qt(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},Yt=e=>e??!0,Xt=(e,t)=>{if(typeof e.enabled==`function`){if(!t)return!1;try{return e.enabled(t)}catch(t){return c(new i(e.id,t)),!1}}return Yt(e.enabled)},Zt=(e,t)=>{if(!Xt(e,t))return!1;try{let n=e.onAction(t);n&&n.catch(t=>{c(new a(e.id,t))})}catch(t){c(new a(e.id,t))}return!0};export{ae as $,K as A,h as B,mt as C,Ze as D,Xe as E,et as F,le as G,Ne as H,Qe as I,O as J,k as K,Ge as L,We as M,G as N,Ye as O,$e as P,ie as Q,tt as R,gt as S,ut as T,M as U,Me as V,Te as W,E as X,j as Y,D as Z,Ct as _,Wt as a,Ae as at,_t as b,Gt as c,jt as d,we as et,Ot as f,Tt as g,Et as h,Ht as i,re as it,Ve as j,Ke as k,Nt as l,Q as m,Xt as n,ne as nt,Vt as o,N as ot,kt as p,A as q,Jt as r,P as rt,Ut as s,ue as st,Zt as t,ke as tt,Mt as u,xt as v,dt as w,ht as x,vt as y,p as z};
@@ -24,7 +24,7 @@ try{g()}catch{}
24
24
  * This source code is licensed under the MIT license found in the
25
25
  * LICENSE file in the root directory of this source tree.
26
26
  */
27
- const mt=/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-([0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*))?(?:\+[0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*)?$/,ht=/^\d+$/,gt=e=>_t(e)!==null,_t=e=>{let t=mt.exec(e);if(!t)return null;let n=t[4]?.split(`.`)??[];return n.some(e=>ht.test(e)&&e.length>1&&e.startsWith(`0`))?null:{major:t[1],minor:t[2],patch:t[3],prerelease:n}},vt=(e,t)=>e.length===t.length?e===t?0:e<t?-1:1:e.length<t.length?-1:1,yt=(e,t)=>{let n=ht.test(e),r=ht.test(t);return n&&r?vt(e,t):n===r?e===t?0:e<t?-1:1:n?-1:1},bt=(e,t)=>{if(e.length===0||t.length===0)return e.length===t.length?0:e.length===0?1:-1;let n=Math.max(e.length,t.length);for(let r=0;r<n;r++){let n=e[r],i=t[r];if(n===void 0||i===void 0)return n===void 0?-1:1;let a=yt(n,i);if(a!==0)return a}return 0},xt=(e,t)=>{let n=_t(e),r=_t(t);if(!n||!r)return null;let i=vt(n.major,r.major);if(i!==0)return i;let a=vt(n.minor,r.minor);if(a!==0)return a;let o=vt(n.patch,r.patch);return o===0?bt(n.prerelease,r.prerelease):o},_={ChildDeletion:16,Cloned:8,ContentReset:32,Hydrating:4096,PerformedWork:1,Placement:2,Snapshot:1024,Update:4,Visibility:8192},St={CONCURRENT_MODE_NUMBER:60111,CONCURRENT_MODE_SYMBOL_DESCRIPTION:`react.concurrent_mode`,CONCURRENT_MODE_SYMBOL_STRING:`Symbol(react.concurrent_mode)`,DEPRECATED_ASYNC_MODE_SYMBOL_DESCRIPTION:`react.async_mode`,DEPRECATED_ASYNC_MODE_SYMBOL_STRING:`Symbol(react.async_mode)`,ELEMENT_SYMBOL_STRING:`Symbol(react.transitional.element)`,LEGACY_ELEMENT_SYMBOL_STRING:`Symbol(react.element)`},v=(e=>e)({"16.0.0":{ActivityComponent:-1,CacheComponent:-1,ClassComponent:2,ContextConsumer:12,ContextProvider:13,CoroutineComponent:7,CoroutineHandlerPhase:8,DehydratedSuspenseComponent:-1,ForwardRef:14,Fragment:10,FunctionComponent:1,HostComponent:5,HostHoistable:-1,HostPortal:4,HostRoot:3,HostSingleton:-1,HostText:6,IncompleteClassComponent:-1,IncompleteFunctionComponent:-1,IndeterminateComponent:0,LazyComponent:-1,LegacyHiddenComponent:-1,MemoComponent:-1,Mode:11,OffscreenComponent:-1,Profiler:15,ScopeComponent:-1,SimpleMemoComponent:-1,SuspenseComponent:16,SuspenseListComponent:-1,Throw:-1,TracingMarkerComponent:-1,ViewTransitionComponent:-1,YieldComponent:9},"16.4.3-alpha":{ActivityComponent:-1,CacheComponent:-1,ClassComponent:2,ContextConsumer:11,ContextProvider:12,CoroutineComponent:-1,CoroutineHandlerPhase:-1,DehydratedSuspenseComponent:-1,ForwardRef:13,Fragment:9,FunctionComponent:0,HostComponent:7,HostHoistable:-1,HostPortal:6,HostRoot:5,HostSingleton:-1,HostText:8,IncompleteClassComponent:-1,IncompleteFunctionComponent:-1,IndeterminateComponent:4,LazyComponent:-1,LegacyHiddenComponent:-1,MemoComponent:-1,Mode:10,OffscreenComponent:-1,Profiler:15,ScopeComponent:-1,SimpleMemoComponent:-1,SuspenseComponent:16,SuspenseListComponent:-1,Throw:-1,TracingMarkerComponent:-1,ViewTransitionComponent:-1,YieldComponent:-1},"16.6.0-beta.0":{ActivityComponent:-1,CacheComponent:-1,ClassComponent:1,ContextConsumer:9,ContextProvider:10,CoroutineComponent:-1,CoroutineHandlerPhase:-1,DehydratedSuspenseComponent:18,ForwardRef:11,Fragment:7,FunctionComponent:0,HostComponent:5,HostHoistable:-1,HostPortal:4,HostRoot:3,HostSingleton:-1,HostText:6,IncompleteClassComponent:17,IncompleteFunctionComponent:-1,IndeterminateComponent:2,LazyComponent:16,LegacyHiddenComponent:-1,MemoComponent:14,Mode:8,OffscreenComponent:-1,Profiler:12,ScopeComponent:-1,SimpleMemoComponent:15,SuspenseComponent:13,SuspenseListComponent:19,Throw:-1,TracingMarkerComponent:-1,ViewTransitionComponent:-1,YieldComponent:-1},"17.0.0-alpha":{ActivityComponent:-1,CacheComponent:-1,ClassComponent:1,ContextConsumer:9,ContextProvider:10,CoroutineComponent:-1,CoroutineHandlerPhase:-1,DehydratedSuspenseComponent:18,ForwardRef:11,Fragment:7,FunctionComponent:0,HostComponent:5,HostHoistable:-1,HostPortal:4,HostRoot:3,HostSingleton:-1,HostText:6,IncompleteClassComponent:17,IncompleteFunctionComponent:-1,IndeterminateComponent:2,LazyComponent:16,LegacyHiddenComponent:24,MemoComponent:14,Mode:8,OffscreenComponent:23,Profiler:12,ScopeComponent:21,SimpleMemoComponent:15,SuspenseComponent:13,SuspenseListComponent:19,Throw:-1,TracingMarkerComponent:-1,ViewTransitionComponent:-1,YieldComponent:-1},"17.0.2":{ActivityComponent:31,CacheComponent:24,ClassComponent:1,ContextConsumer:9,ContextProvider:10,CoroutineComponent:-1,CoroutineHandlerPhase:-1,DehydratedSuspenseComponent:18,ForwardRef:11,Fragment:7,FunctionComponent:0,HostComponent:5,HostHoistable:26,HostPortal:4,HostRoot:3,HostSingleton:27,HostText:6,IncompleteClassComponent:17,IncompleteFunctionComponent:28,IndeterminateComponent:2,LazyComponent:16,LegacyHiddenComponent:23,MemoComponent:14,Mode:8,OffscreenComponent:22,Profiler:12,ScopeComponent:21,SimpleMemoComponent:15,SuspenseComponent:13,SuspenseListComponent:19,Throw:29,TracingMarkerComponent:25,ViewTransitionComponent:30,YieldComponent:-1}}),Ct=[{isMinimumExcluded:!0,minimumVersion:`17.0.1`,workTags:v[`17.0.2`]},{isMinimumExcluded:!1,minimumVersion:`17.0.0-alpha`,workTags:v[`17.0.0-alpha`]},{isMinimumExcluded:!1,minimumVersion:`16.6.0-beta.0`,workTags:v[`16.6.0-beta.0`]},{isMinimumExcluded:!1,minimumVersion:`16.4.3-alpha`,workTags:v[`16.4.3-alpha`]}],wt=v[`17.0.2`],Tt=e=>{if(e===void 0)return wt;for(let t of Ct){let n=xt(e,t.minimumVersion);if(n===null)return wt;if(n===1||n===0&&!t.isMinimumExcluded)return t.workTags}return v[`16.0.0`]},Et=Tt(),y=new WeakMap,Dt=e=>e.startsWith(`0.0.0-`)?Et:Tt(e),Ot=e=>{let t=e?.reconcilerVersion;return t&&gt(t)?Dt(t):e?.version?Dt(e.version):Et},kt=(e,t)=>{let n=Ot(t);y.set(e,n),e.alternate&&y.set(e.alternate,n)},b=e=>{let t=y.get(e);if(t)return t;let n=[e],r=e;for(;r.return;)r=r.return,n.push(r);let i=y.get(r)??Et;for(let e of n)y.set(e,i),e.alternate&&y.set(e.alternate,i);return i};_.Placement|_.Update|_.ChildDeletion|_.ContentReset|_.Hydrating|_.Visibility|_.Snapshot;var At=class extends Error{constructor(e,t){super(e,{cause:t}),this.name=`BippyError`}},jt=class extends At{constructor(e,t){super(e,t),this.name=`BippyHookInspectionError`}},Mt=class extends jt{constructor(e,t){super(e,t),this.name=`BippyUnsupportedHookError`}},Nt=class extends At{constructor(e,t){super(e,t),this.name=`BippySourceMapError`}};const Pt=e=>typeof e==`function`,Ft=e=>{let t=`displayName`in e?e.displayName:null;if(typeof t==`string`&&t)return t;let n=`name`in e?e.name:null;return typeof n==`string`&&n?n:null},x=e=>typeof e==`object`&&!!e&&`tag`in e&&`stateNode`in e&&`return`in e&&`child`in e&&`sibling`in e&&`flags`in e,It=e=>typeof e==`object`&&!!e&&`current`in e&&x(e.current),Lt=e=>{let t=b(e);switch(e.tag){case t.HostComponent:case t.HostText:case t.HostHoistable:case t.HostSingleton:return!0;default:return!1}},Rt=e=>{let t=b(e);switch(e.tag){case t.ClassComponent:case t.ForwardRef:case t.FunctionComponent:case t.MemoComponent:case t.SimpleMemoComponent:return!0;default:return!1}},zt=e=>{let t=e.memoizedProps,n=e.alternate?.memoizedProps||{},r=e.flags??e.effectTag??0,i=b(e);switch(e.tag){case i.ClassComponent:case i.ContextConsumer:case i.ForwardRef:case i.FunctionComponent:case i.MemoComponent:case i.SimpleMemoComponent:return(r&_.PerformedWork)===_.PerformedWork;default:return!e.alternate||n!==t||e.alternate.memoizedState!==e.memoizedState||e.alternate.ref!==e.ref}},Bt=e=>{let t=b(e);switch(e.tag){case t.DehydratedSuspenseComponent:return!0;case t.Fragment:case t.HostText:case t.LegacyHiddenComponent:case t.OffscreenComponent:return!0;case t.HostRoot:return!1;default:{let t=typeof e.type==`object`&&e.type!==null?e.type.$$typeof:e.type;if(typeof t==`symbol`)return t.description===St.CONCURRENT_MODE_SYMBOL_DESCRIPTION||t.description===St.DEPRECATED_ASYNC_MODE_SYMBOL_DESCRIPTION;switch(t){case St.CONCURRENT_MODE_NUMBER:case St.CONCURRENT_MODE_SYMBOL_STRING:case St.DEPRECATED_ASYNC_MODE_SYMBOL_STRING:return!0;default:return!1}}}};function Vt(e,t,n=!1){if(!e)return null;let r=t(e);return Ht(r)?Promise.resolve(r).then(r=>r===!0?e:Ut(e,t,n)):r===!0?e:Ut(e,t,n)}const Ht=e=>(typeof e==`object`||typeof e==`function`)&&e!==null&&`then`in e&&typeof e.then==`function`,Ut=(e,t,n)=>Wt(n?e.return:e.child,t,n),Wt=(e,t,n)=>{if(!e)return null;let r=n?null:e.sibling,i=Vt(e,t,n);return Ht(i)?Promise.resolve(i).then(e=>e??Wt(r,t,n)):i??Wt(r,t,n)},Gt=e=>Pt(e)?e:typeof e!=`object`||!e?null:Gt(Reflect.get(e,`type`)??Reflect.get(e,`render`)),Kt=e=>{if(typeof e==`string`)return e;if(typeof e!=`function`&&typeof e!=`object`||e===null)return null;let t=Ft(e);if(t)return t;let n=Gt(e);return n?Ft(n):null},qt=()=>{let e=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__;return!!e?._instrumentationIsActive||tt(e)||nt(e)},S=new Set,Jt=new WeakMap,Yt=e=>{let t=e.alternate;if(!t)return e;let n=e;for(;n.return;)n=n.return;if(It(n.stateNode)){let r=Vt(n.stateNode.current,n=>{if(n===e||n===t)return!0});if(r)return r}if(t.actualStartTime&&e.actualStartTime)return t.actualStartTime>e.actualStartTime?t:e;for(let n of S){let r=Vt(n.current,n=>{if(n===e||n===t)return!0});if(r)return r}return e};let Xt=0;const Zt=new WeakMap,Qt=(e,t=Xt++)=>{Zt.set(e,t),Number.isSafeInteger(t)&&t>=Xt&&(Xt=t+1)},$t=e=>{let t=Zt.get(e);return t===void 0&&e.alternate&&(t=Zt.get(e.alternate)),t===void 0&&(t=Xt++,Qt(e,t)),t},en=(e,t,n)=>{let r=t;for(;r!==null;){if($t(r),!Bt(r)&&zt(r)&&e(r,`mount`),r.tag===b(r).SuspenseComponent)if(r.memoizedState!==null){let t=r.child,n=t?t.sibling:null;if(n){let t=n.child;t!==null&&en(e,t,!1)}}else{let t=r.child?.child??null;t!==null&&en(e,t,!1)}else r.child!==null&&en(e,r.child,!0);r=n?r.sibling:null}},tn=(e,t,n)=>{if($t(t),!n)return;$t(n);let r=t.tag===b(t).SuspenseComponent;!Bt(t)&&zt(t)&&e(t,`update`);let i=r&&n.memoizedState!==null,a=r&&t.memoizedState!==null;if(i&&a){let r=t.child?.sibling??null,i=n.child?.sibling??null;r!==null&&i!==null&&tn(e,r,i)}else if(i&&!a){let n=t.child;n!==null&&en(e,n,!0)}else if(!i&&a){rn(e,n);let r=t.child?.sibling??null;r!==null&&en(e,r,!0)}else if(t.child!==n.child){let n=t.child;for(;n;)n.alternate?tn(e,n,n.alternate):en(e,n,!1),n=n.sibling}},nn=(e,t)=>{(t.tag===b(t).HostRoot||!Bt(t))&&e(t,`unmount`)},rn=(e,t)=>{let n=t.tag===b(t).SuspenseComponent&&t.memoizedState!==null,r=t.child;for(n&&(r=(t.child?.sibling??null)?.child??null);r!==null;)r.return!==null&&(nn(e,r),rn(e,r)),r=r.sibling},C=new Set,w=new WeakMap;let an=!1;const on=e=>{let t=w.get(e)??{};if(w.set(e,t),!t.onCommitFiberRoot||e.onCommitFiberRoot!==t.onCommitFiberRoot){let n=e.onCommitFiberRoot,r=(t,i,a,o)=>{if(n&&n.call(e,t,i,a,o),w.get(e)?.onCommitFiberRoot!==r)return;kt(i.current,e.renderers.get(t));let s=i.current.memoizedState;s===null||s!==void 0&&(s.element===null||s.element===void 0)?(S.delete(i),Jt.delete(i)):(S.add(i),Jt.set(i,t));for(let{options:e}of C)e.onCommitFiberRoot&&e.onCommitFiberRoot(t,i,a,o)};t.onCommitFiberRoot=r,e.onCommitFiberRoot=r}if(!t.onCommitFiberUnmount||e.onCommitFiberUnmount!==t.onCommitFiberUnmount){let n=e.onCommitFiberUnmount,r=(t,i)=>{if(kt(i,e.renderers.get(t)),n&&n.call(e,t,i),w.get(e)?.onCommitFiberUnmount===r)for(let{options:e}of C)e.onCommitFiberUnmount&&e.onCommitFiberUnmount(t,i)};t.onCommitFiberUnmount=r,e.onCommitFiberUnmount=r}if(!t.onPostCommitFiberRoot||e.onPostCommitFiberRoot!==t.onPostCommitFiberRoot){let n=e.onPostCommitFiberRoot,r=(t,i)=>{if(n&&n.call(e,t,i),w.get(e)?.onPostCommitFiberRoot===r)for(let{options:e}of C)e.onPostCommitFiberRoot&&e.onPostCommitFiberRoot(t,i)};t.onPostCommitFiberRoot=r,e.onPostCommitFiberRoot=r}if(!t.onScheduleFiberRoot||e.onScheduleFiberRoot!==t.onScheduleFiberRoot){let n=e.onScheduleFiberRoot,r=(t,i,a)=>{if(n&&n.call(e,t,i,a),w.get(e)?.onScheduleFiberRoot===r)for(let{options:e}of C)e.onScheduleFiberRoot&&e.onScheduleFiberRoot(t,i,a)};t.onScheduleFiberRoot=r,e.onScheduleFiberRoot=r}},sn=e=>{an||=(ct(on),!0),on(e)};try{pt()&&sn(g())}catch{}const cn=e=>{let t=g(e.onActive);t._instrumentationSource=e.name??Xe,sn(t);let n={options:e};return C.add(n),$e(()=>{e.onActive&&rt.delete(e.onActive),C.delete(n)})},ln=new Set,un=e=>e.startsWith(`__reactContainer$`)||e.startsWith(`__reactInternalInstance$`)||e.startsWith(`__reactFiber`),dn=e=>{let t=Reflect.get(e,`_reactRootContainer`);if(typeof t!=`object`||!t)return null;let n=Reflect.get(t,`_internalRoot`);if(typeof n!=`object`||!n)return null;let r=Reflect.get(n,`current`);if(typeof r!=`object`||!r)return null;let i=Reflect.get(r,`child`);return x(i)?i:null},fn=e=>{let t=Reflect.get(e,`__internalInstanceHandle`)??Reflect.get(e,`_internalInstanceHandle`);return x(t)?t:null},pn=e=>{if(typeof e!=`object`||!e)return e;let t=Reflect.get(e,`canonical`);if(typeof t==`object`&&t){let e=Reflect.get(t,`publicInstance`);if(typeof e==`object`&&e)return e}let n=Reflect.get(e,`_nativeTag`);return typeof n==`number`?n:e},mn=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){let t=dn(e);if(t)return t;let n=fn(e);if(n)return n;for(let t of ln){let n=Reflect.get(e,t);if(x(n))return n}for(let t of Object.keys(e))if(un(t)){ln.add(t);let n=Reflect.get(e,t);if(x(n))return n}}if(e!=null&&(typeof e==`object`||typeof e==`number`))for(let t of S){let n=Vt(t.current,t=>Lt(t)&&pn(t.stateNode)===e);if(n)return n}return null};Reflect.get(e,`useSyncExternalStore`);const hn=new WeakMap,gn=(e,t)=>{hn.set(e,t)},T=e=>hn.get(e)??null,_n=e=>T(e)?.getFiber()??mn(e);let vn=new WeakMap,yn=new WeakMap;const bn=()=>{vn=new WeakMap,yn=new WeakMap},xn=(e,t,n)=>{let r=yn.get(e);if(r&&n-r.timestamp<200)return r.borderRadius;let i=(t??qe(e)).borderRadius||`0px`;return yn.set(e,{borderRadius:i,timestamp:n}),i},Sn=e=>{let t=performance.now(),n=vn.get(e);if(n&&t-n.timestamp<16)return n.bounds;let r=T(e);if(r){let n=r.getBounds();return vn.set(e,{bounds:n,timestamp:t}),n}let i=e.getBoundingClientRect(),a=Ke(e.ownerDocument.defaultView,i.left,i.top),o={borderRadius:Ye(xn(e,null,t),a.scaleX,a.scaleY),height:i.height*a.scaleY,width:i.width*a.scaleX,x:a.x,y:a.y};return vn.set(e,{bounds:o,timestamp:t}),o},Cn=e=>{let t=e.ownerDocument?.defaultView;return!!(t&&e instanceof t.ShadowRoot)};var E=class extends Error{constructor(e,t){super(e,t),this.name=`ReactGrabError`}},D=class extends E{constructor(e,t){super(e,{cause:t}),this.name=`RecoverableError`}},wn=class extends E{constructor(e){super(`Failed to freeze page`,{cause:e}),this.name=`FreezeError`}},Tn=class extends D{constructor(e,t,n){super(`Failed to open source file "${e}"`,n),this.name=`OpenFileError`,this.filePath=e,this.lineNumber=t}},En=class extends D{constructor(e,t,n){super(`Plugin hook "${t}" failed for "${e}"`,n),this.name=`PluginHookError`,this.pluginName=e,this.hookName=t}},Dn=class extends D{constructor(e,t){super(`Plugin cleanup failed for "${e}"`,t),this.name=`PluginCleanupError`,this.pluginName=e}},On=class extends D{constructor(e,t){super(`Plugin setup failed for "${e}"`,t),this.name=`PluginSetupError`,this.pluginName=e}},kn=class extends D{constructor(e,t){super(`Action "${e}" failed`,t),this.name=`ContextMenuActionError`,this.actionId=e}},An=class extends D{constructor(e,t){super(`Action "${e}" enabled check failed`,t),this.name=`ContextMenuActionEnabledError`,this.actionId=e}},jn=class extends E{constructor(){super(`Can't generate CSS selector for non-element node type.`),this.name=`NonElementNodeError`}},Mn=class extends E{constructor(e){super(`Timeout: Can't find a unique selector after ${e}ms`),this.name=`SelectorTimeoutError`,this.timeoutMs=e}},Nn=class extends E{constructor(){super(`Selector was not found.`),this.name=`SelectorNotFoundError`}},Pn=class extends E{constructor(){super(`Failed to copy`),this.name=`CopyFailedError`}};const Fn=e=>T(e)?.getTagName()??(e.tagName||``).toLowerCase(),In=new WeakMap,Ln=(e=document)=>{let t=In.get(e);if(t!==void 0)return t;let n=e.querySelector(`script[nonce], style[nonce]`),r=n?.nonce||n?.getAttribute(`nonce`)||null;return r&&In.set(e,r),r},Rn=[[`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`,``]],zn=e=>{for(let[t,n]of Rn)e.setAttribute(t,n);e.setAttribute(`data-testid`,`react-grab-overlay`),e.classList.add(`ph-no-capture`)},Bn=e=>typeof e==`object`&&!!e&&`nodeType`in e&&e.nodeType===9,O=e=>{if(e.assignedSlot)return e.assignedSlot;if(e.parentElement)return e.parentElement;let t=e.getRootNode();return Cn(t)?t.host:Bn(t)?Ge(t.defaultView):null},Vn=(e,t)=>{let n=T(e)?.hostElement??e;for(;n;){if(n===t)return!0;n=O(n)}return!1};let Hn=null;const Un=e=>{Hn=e},Wn=()=>Hn,k=e=>Hn?e?Vn(e,Hn):!1:!0,Gn=e=>e,Kn=e=>e.replace(/&/g,`&amp;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`),qn=typeof window<`u`,Jn=e=>0,Yn=e=>{},Xn=qn?(Object.getOwnPropertyDescriptor(Window.prototype,`requestAnimationFrame`)?.value??window.requestAnimationFrame).bind(window):Jn,Zn=qn?(Object.getOwnPropertyDescriptor(Window.prototype,`cancelAnimationFrame`)?.value??window.cancelAnimationFrame).bind(window):Yn,Qn=()=>qn?new Promise(e=>Xn(()=>e())):Promise.resolve(),$n=(e,t)=>{let n=t?.componentName??`div`,r={version:`0.2.0-dev.1c5343a`,content:e,entries:t?.entries??[{tagName:t?.tagName,componentName:n,content:e,commentText:t?.commentText}],timestamp:Date.now()},i=t=>{t.preventDefault(),t.clipboardData?.setData(`text/plain`,e),t.clipboardData?.setData(`text/html`,`<meta charset='utf-8'><pre><code>${Kn(e)}</code></pre>`),t.clipboardData?.setData(`application/x-react-grab`,JSON.stringify(r))},a=document.createElement(`textarea`);document.addEventListener(`copy`,i);try{return a.value=e,a.style.position=`fixed`,a.style.left=`-9999px`,a.ariaHidden=`true`,document.body.appendChild(a),a.select(),typeof document.execCommand==`function`?document.execCommand(`copy`):!1}finally{document.removeEventListener(`copy`,i),a.remove()}},A=e=>{try{return e.contentDocument}catch{return null}},er=(e,t,n)=>{let r=e.getBoundingClientRect(),i=Ue(e),a=We(r.width,i.width),o=We(r.height,i.height);return{x:(t-r.left)/a-i.contentOffsetX,y:(n-r.top)/o-i.contentOffsetY}},tr=(e,t,n)=>{let r=e.elementFromPoint(t,n);for(;r;){let e=r.shadowRoot?.elementFromPoint(t,n);if(e&&e!==r){r=e;continue}if(m(r)){let e=A(r);if(!e)return r;let i=er(r,t,n);return tr(e,i.x,i.y)??r}return r}return null},nr=(e,t)=>tr(document,e,t),rr=e=>{let t=e;for(;t;){if(t.hasAttribute(`data-react-grab-ignore`))return!0;t=O(t)}return!1},ir=typeof Element<`u`&&typeof Element.prototype.checkVisibility==`function`,ar={checkOpacity:!0,checkVisibilityCSS:!0,opacityProperty:!0,visibilityProperty:!0},or={checkVisibilityCSS:!0,visibilityProperty:!0},sr=(e,t)=>{if(ir&&!t)return e.checkVisibility(ar)?!0:e.checkVisibility(or)?qe(e).opacity!==`0`:!1;let n=t??qe(e);return n.display!==`none`&&n.visibility!==`hidden`&&n.opacity!==`0`},cr=e=>{let t=Fn(e);return t===`html`||t===`body`},lr=[`data-react-grab`,`data-react-grab-demo`],ur=e=>lr.some(t=>e.hasAttribute(t)),dr=e=>{if(ur(e)||e.hasAttribute(`data-react-grab-hit-test-shield`))return!0;let t=e.getRootNode();return Cn(t)&&ur(t.host)},fr=e=>{let t=parseInt(e.zIndex,10);return e.pointerEvents===`none`&&e.position===`fixed`&&!isNaN(t)&&t>=2147483600},pr=e=>{let t=e.backgroundColor;return t===`transparent`||t===`rgba(0, 0, 0, 0)`},mr=e=>{let t=e.position;if(t!==`fixed`&&t!==`absolute`)return!1;if(pr(e)||parseFloat(e.opacity)<.1)return!0;let n=parseInt(e.zIndex,10);return!isNaN(n)&&n>1e3};let hr=new WeakMap;const gr=()=>{hr=new WeakMap},_r=e=>{let t=T(e);if(t)return t.isConnected();if(cr(e)||dr(e)||rr(e))return!1;let n=performance.now(),r=hr.get(e);if(r&&n-r.timestamp<50)return r.isVisible;if(!sr(e))return hr.set(e,{isVisible:!1,timestamp:n}),!1;if(e.clientWidth/(e.ownerDocument.defaultView?.innerWidth??window.innerWidth)>=.9&&e.clientHeight/(e.ownerDocument.defaultView?.innerHeight??window.innerHeight)>=.9){let t=qe(e);if(fr(t)||mr(t))return!1}return hr.set(e,{isVisible:!0,timestamp:n}),!0},vr=e=>{if(e===`transparent`)return!0;let t=e.lastIndexOf(`/`);if(t>=0)return Number.parseFloat(e.slice(t+1))===0;if(!e.startsWith(`rgba(`))return!1;let n=e.lastIndexOf(`,`);return n>=0&&Number.parseFloat(e.slice(n+1))===0},yr=e=>{let t=e.ownerDocument.defaultView?.getComputedStyle?.(e);if(!t)return!1;let n=t.backgroundClip!==`text`&&(t.backgroundImage!==`none`||!vr(t.backgroundColor)),r=t.borderTopStyle!==`none`&&t.borderTopWidth!==`0px`||t.borderRightStyle!==`none`&&t.borderRightWidth!==`0px`||t.borderBottomStyle!==`none`&&t.borderBottomWidth!==`0px`||t.borderLeftStyle!==`none`&&t.borderLeftWidth!==`0px`;return n||r||t.boxShadow!==`none`||t.outlineStyle!==`none`},br=new Set([`A`,`AUDIO`,`BUTTON`,`CANVAS`,`DETAILS`,`EMBED`,`IFRAME`,`IMG`,`INPUT`,`METER`,`OBJECT`,`OPTION`,`PROGRESS`,`SELECT`,`SUMMARY`,`SVG`,`TEXTAREA`,`VIDEO`]),xr=new Set([`button`,`checkbox`,`combobox`,`gridcell`,`link`,`listbox`,`menuitem`,`menuitemcheckbox`,`menuitemradio`,`option`,`radio`,`scrollbar`,`searchbox`,`slider`,`spinbutton`,`switch`,`tab`,`textbox`,`treeitem`]),Sr=new Set(`A.ABBR.B.BDI.BDO.BR.CITE.CODE.DATA.DEL.DFN.EM.I.INS.KBD.MARK.Q.S.SAMP.SMALL.SPAN.STRONG.SUB.SUP.TIME.U.VAR.WBR`.split(`.`));let Cr=new WeakMap,wr=new WeakMap;const Tr=()=>{Cr=new WeakMap,wr=new WeakMap},j=(e,t,n)=>(Cr.set(e,t),wr.set(e,n),t),Er=e=>br.has(e.tagName)||xr.has(e.getAttribute(`role`)??``)||p(e)&&e.isContentEditable,Dr=e=>{let t=performance.now(),n=wr.get(e);if(n!==void 0&&t-n<16)return Cr.get(e)??null;if(Er(e)||e.childNodes.length>64)return j(e,null,t);let r=[],i=[],a=0;for(let t=e.childNodes.length-1;t>=0;--t)i.push(e.childNodes[t]);for(;i.length>0;){if(a+=1,a>64)return j(e,null,t);let n=i.pop();if(n){if(n.nodeType===Node.TEXT_NODE){if(n.textContent?.trim()&&(r.push(n),r.length>32))return j(e,null,t);continue}if(!Ve(n)||!Sr.has(n.tagName)||a+i.length+n.childNodes.length>64)return j(e,null,t);for(let e=n.childNodes.length-1;e>=0;--e)i.push(n.childNodes[e])}}if(r.length===0||yr(e))return j(e,null,t);try{let n=e.ownerDocument.createRange(),i=Ke(e.ownerDocument.defaultView,0,0),a=[];for(let o of r){n.selectNodeContents(o);let r=n.getClientRects();if(a.length+r.length>64)return j(e,null,t);for(let e=0;e<r.length;e+=1){let t=r[e],n=t.width*i.scaleX,o=t.height*i.scaleY;!Number.isFinite(t.left)||!Number.isFinite(t.top)||!Number.isFinite(n)||!Number.isFinite(o)||n<=0||o<=0||a.push({borderRadius:`0px`,height:o,width:n,x:i.x+t.left*i.scaleX,y:i.y+t.top*i.scaleY})}}return j(e,a.length>0?a:null,t)}catch{return j(e,null,t)}},Or=(e,t,n)=>{let r=Dr(e);if(!r)return!0;for(let e of r)if(t>=e.x&&t<=e.x+e.width&&n>=e.y&&n<=e.y+e.height)return!0;return!1},kr=(e,t,n,r,i)=>{let a=!0;for(let o of e.elementsFromPoint(t,n)){if(rr(o)&&(a=!1),!k(o))continue;let s=o.shadowRoot;if(a&&s&&s!==e){let e=kr(s,t,n,r,i);if(e)return e}if(a&&m(o)){let e=A(o);if(e){let a=er(o,t,n),s=kr(e,a.x,a.y,r,i);if(s)return s}}if(_r(o)&&Or(o,r,i))return o}return null},Ar=(e,t)=>kr(document,e,t,e,t),jr=(e,t,n,r)=>{let i=e.elementsFromPoint(t,n),a=!0;for(let o of i){if(rr(o)&&(a=!1),a&&o.shadowRoot&&o.shadowRoot!==e&&jr(o.shadowRoot,t,n,r),a&&m(o)){let e=A(o);if(e){let i=er(o,t,n);jr(e,i.x,i.y,r)}}r.add(o)}},Mr=(e,t)=>{let n=new Set;return jr(document,e,t,n),[...n]},Nr=(e,t,n)=>{let r=[],i=e;for(;i&&i!==window;){let e=Ge(i);if(!e||!m(e))break;r.push(e),i=e.ownerDocument.defaultView}let a=t,o=n;for(let e=r.length-1;e>=0;--e){let t=er(r[e],a,o);a=t.x,o=t.y}return{x:a,y:o}},Pr=`http://www.w3.org/2000/svg`,Fr=e=>{if(e.localName===`svg`)return e;let t=e,n=e.parentElement;for(;n?.namespaceURI===Pr&&(t=n,n.localName!==`svg`);)n=n.parentElement;return t},Ir=(e,t,n,r)=>{if(typeof e.caretPositionFromPoint==`function`){let i=e.caretPositionFromPoint(t,n,{shadowRoots:r?[r]:[]});if(i)return i.offsetNode}return typeof e.caretRangeFromPoint==`function`?e.caretRangeFromPoint(t,n)?.startContainer??null:null},Lr=(e,t,n)=>{if(cr(e))return null;let r=e.ownerDocument,i=r.defaultView;if(!i)return null;let a=Nr(i,t,n),o=e.getRootNode(),s=Ir(r,a.x,a.y,Cn(o)?o:null);if(!s)return null;let c=Ve(s)?s:s.parentElement;if(!c||c===e)return null;let l=e.namespaceURI===Pr;return!(l?Fr(e):e).contains(c)||!l&&qe(c).pointerEvents!==`none`?null:c},Rr=(e,t,n)=>e>=n.left&&e<=n.right&&t>=n.top&&t<=n.bottom,zr=new Set([`auto`,`scroll`,`overlay`]),Br=(e,t,n,r,i)=>zr.has(e)?i<0?t>1:t+n<r-1:!1,Vr=(e,t,n)=>{let r=e;for(;r;){let e=n!==0&&r.scrollHeight>r.clientHeight,i=t!==0&&r.scrollWidth>r.clientWidth;if(e||i){let a=getComputedStyle(r);if(e&&Br(a.overflowY,r.scrollTop,r.clientHeight,r.scrollHeight,n)||i&&Br(a.overflowX,r.scrollLeft,r.clientWidth,r.scrollWidth,t))return r}r=O(r)}return null},Hr=(e,t)=>{let n=[];for(let r of e){let e=Math.max(r.left,t.left),i=Math.max(r.top,t.top),a=Math.min(r.right,t.right),o=Math.min(r.bottom,t.bottom);if(a<=e||o<=i){n.push(r);continue}i>r.top&&n.push({left:r.left,top:r.top,right:r.right,bottom:i}),o<r.bottom&&n.push({left:r.left,top:o,right:r.right,bottom:r.bottom}),e>r.left&&n.push({left:r.left,top:i,right:e,bottom:o}),a<r.right&&n.push({left:a,top:i,right:r.right,bottom:o})}return n},Ur=`full-viewport`,Wr=(e,t)=>{let n=e.createElement(`div`);return n.setAttribute(Se,``),n.style.position=`absolute`,n.style.pointerEvents=t,n.style.background=`transparent`,n},Gr=e=>{let t=[];for(let n of e){let e=n.getBoundingClientRect();e.width<=0||e.height<=0||t.push({left:e.left,top:e.top,right:e.right,bottom:e.bottom})}return t},Kr=e=>{let t={...e[0]};for(let n of e)n.left<t.left&&(t.left=n.left),n.top<t.top&&(t.top=n.top),n.right>t.right&&(t.right=n.right),n.bottom>t.bottom&&(t.bottom=n.bottom);return t},qr=(e,t)=>{let n=e.createElement(`div`);n.setAttribute(Se,``),n.setAttribute(`aria-hidden`,`true`),zn(n),n.style.cssText=`position:fixed;inset:0;pointer-events:none;contain:strict;background:transparent;z-index:2147483644;`;let r=!1,i=()=>r?`none`:`auto`,a=Wr(e,i());a.style.inset=`0`,n.appendChild(a),(e.body??e.documentElement).appendChild(n);let o=[a],s=Ur,c=e=>{if(r===e)return;r=e;let t=i();for(let e of o)e.style.pointerEvents=t},l=(t,n)=>{let i=r;c(!0);let a=tr(e,t,n);return c(i),a},u=t=>{let n=t.deltaX,r=t.deltaY;if(t.deltaMode===WheelEvent.DOM_DELTA_LINE?(n*=16,r*=16):t.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(n*=e.documentElement.clientWidth,r*=e.documentElement.clientHeight),n===0&&r===0)return;let i=l(t.clientX,t.clientY);if(!i)return;let a=Vr(i,n,r);a&&(t.preventDefault(),a.scrollBy({left:n,top:r,behavior:`instant`}))};return n.addEventListener(`wheel`,u,{passive:!1}),{openForHitTest:()=>{c(!0)},closeAfterHitTest:()=>{c(!1)},refreshHoles:()=>{let r=Gr(t());if(r.length===0){if(s===Ur)return;s=Ur,a.style.pointerEvents=i(),o=[a],n.replaceChildren(a);return}let c={left:0,top:0,right:e.documentElement.clientWidth,bottom:e.documentElement.clientHeight},l=Hr([c],r[0]);for(let e=1;e<r.length;e++)l=Hr(l,r[e]);l.length>12&&(l=Hr([c],Kr(r)));let u=l.map(e=>`${e.left},${e.top},${e.right},${e.bottom}`).join(`|`);if(u===s)return;s=u;let d=i();o=l.map(t=>{let n=Wr(e,d);return n.style.left=`${t.left}px`,n.style.top=`${t.top}px`,n.style.width=`${t.right-t.left}px`,n.style.height=`${t.bottom-t.top}px`,n}),n.replaceChildren(...o)},remove:()=>{n.removeEventListener(`wheel`,u),n.remove()}}},Jr=(e,t,n=document)=>{let r=n.createElement(`style`);r.setAttribute(e,``);let i=Ln(n);return i&&(r.nonce=i),zn(r),r.textContent=t,n.head.appendChild(r),r},Yr=`html, body { pointer-events: auto !important; }
27
+ const mt=/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-([0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*))?(?:\+[0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*)?$/,ht=/^\d+$/,gt=e=>_t(e)!==null,_t=e=>{let t=mt.exec(e);if(!t)return null;let n=t[4]?.split(`.`)??[];return n.some(e=>ht.test(e)&&e.length>1&&e.startsWith(`0`))?null:{major:t[1],minor:t[2],patch:t[3],prerelease:n}},vt=(e,t)=>e.length===t.length?e===t?0:e<t?-1:1:e.length<t.length?-1:1,yt=(e,t)=>{let n=ht.test(e),r=ht.test(t);return n&&r?vt(e,t):n===r?e===t?0:e<t?-1:1:n?-1:1},bt=(e,t)=>{if(e.length===0||t.length===0)return e.length===t.length?0:e.length===0?1:-1;let n=Math.max(e.length,t.length);for(let r=0;r<n;r++){let n=e[r],i=t[r];if(n===void 0||i===void 0)return n===void 0?-1:1;let a=yt(n,i);if(a!==0)return a}return 0},xt=(e,t)=>{let n=_t(e),r=_t(t);if(!n||!r)return null;let i=vt(n.major,r.major);if(i!==0)return i;let a=vt(n.minor,r.minor);if(a!==0)return a;let o=vt(n.patch,r.patch);return o===0?bt(n.prerelease,r.prerelease):o},_={ChildDeletion:16,Cloned:8,ContentReset:32,Hydrating:4096,PerformedWork:1,Placement:2,Snapshot:1024,Update:4,Visibility:8192},St={CONCURRENT_MODE_NUMBER:60111,CONCURRENT_MODE_SYMBOL_DESCRIPTION:`react.concurrent_mode`,CONCURRENT_MODE_SYMBOL_STRING:`Symbol(react.concurrent_mode)`,DEPRECATED_ASYNC_MODE_SYMBOL_DESCRIPTION:`react.async_mode`,DEPRECATED_ASYNC_MODE_SYMBOL_STRING:`Symbol(react.async_mode)`,ELEMENT_SYMBOL_STRING:`Symbol(react.transitional.element)`,LEGACY_ELEMENT_SYMBOL_STRING:`Symbol(react.element)`},v=(e=>e)({"16.0.0":{ActivityComponent:-1,CacheComponent:-1,ClassComponent:2,ContextConsumer:12,ContextProvider:13,CoroutineComponent:7,CoroutineHandlerPhase:8,DehydratedSuspenseComponent:-1,ForwardRef:14,Fragment:10,FunctionComponent:1,HostComponent:5,HostHoistable:-1,HostPortal:4,HostRoot:3,HostSingleton:-1,HostText:6,IncompleteClassComponent:-1,IncompleteFunctionComponent:-1,IndeterminateComponent:0,LazyComponent:-1,LegacyHiddenComponent:-1,MemoComponent:-1,Mode:11,OffscreenComponent:-1,Profiler:15,ScopeComponent:-1,SimpleMemoComponent:-1,SuspenseComponent:16,SuspenseListComponent:-1,Throw:-1,TracingMarkerComponent:-1,ViewTransitionComponent:-1,YieldComponent:9},"16.4.3-alpha":{ActivityComponent:-1,CacheComponent:-1,ClassComponent:2,ContextConsumer:11,ContextProvider:12,CoroutineComponent:-1,CoroutineHandlerPhase:-1,DehydratedSuspenseComponent:-1,ForwardRef:13,Fragment:9,FunctionComponent:0,HostComponent:7,HostHoistable:-1,HostPortal:6,HostRoot:5,HostSingleton:-1,HostText:8,IncompleteClassComponent:-1,IncompleteFunctionComponent:-1,IndeterminateComponent:4,LazyComponent:-1,LegacyHiddenComponent:-1,MemoComponent:-1,Mode:10,OffscreenComponent:-1,Profiler:15,ScopeComponent:-1,SimpleMemoComponent:-1,SuspenseComponent:16,SuspenseListComponent:-1,Throw:-1,TracingMarkerComponent:-1,ViewTransitionComponent:-1,YieldComponent:-1},"16.6.0-beta.0":{ActivityComponent:-1,CacheComponent:-1,ClassComponent:1,ContextConsumer:9,ContextProvider:10,CoroutineComponent:-1,CoroutineHandlerPhase:-1,DehydratedSuspenseComponent:18,ForwardRef:11,Fragment:7,FunctionComponent:0,HostComponent:5,HostHoistable:-1,HostPortal:4,HostRoot:3,HostSingleton:-1,HostText:6,IncompleteClassComponent:17,IncompleteFunctionComponent:-1,IndeterminateComponent:2,LazyComponent:16,LegacyHiddenComponent:-1,MemoComponent:14,Mode:8,OffscreenComponent:-1,Profiler:12,ScopeComponent:-1,SimpleMemoComponent:15,SuspenseComponent:13,SuspenseListComponent:19,Throw:-1,TracingMarkerComponent:-1,ViewTransitionComponent:-1,YieldComponent:-1},"17.0.0-alpha":{ActivityComponent:-1,CacheComponent:-1,ClassComponent:1,ContextConsumer:9,ContextProvider:10,CoroutineComponent:-1,CoroutineHandlerPhase:-1,DehydratedSuspenseComponent:18,ForwardRef:11,Fragment:7,FunctionComponent:0,HostComponent:5,HostHoistable:-1,HostPortal:4,HostRoot:3,HostSingleton:-1,HostText:6,IncompleteClassComponent:17,IncompleteFunctionComponent:-1,IndeterminateComponent:2,LazyComponent:16,LegacyHiddenComponent:24,MemoComponent:14,Mode:8,OffscreenComponent:23,Profiler:12,ScopeComponent:21,SimpleMemoComponent:15,SuspenseComponent:13,SuspenseListComponent:19,Throw:-1,TracingMarkerComponent:-1,ViewTransitionComponent:-1,YieldComponent:-1},"17.0.2":{ActivityComponent:31,CacheComponent:24,ClassComponent:1,ContextConsumer:9,ContextProvider:10,CoroutineComponent:-1,CoroutineHandlerPhase:-1,DehydratedSuspenseComponent:18,ForwardRef:11,Fragment:7,FunctionComponent:0,HostComponent:5,HostHoistable:26,HostPortal:4,HostRoot:3,HostSingleton:27,HostText:6,IncompleteClassComponent:17,IncompleteFunctionComponent:28,IndeterminateComponent:2,LazyComponent:16,LegacyHiddenComponent:23,MemoComponent:14,Mode:8,OffscreenComponent:22,Profiler:12,ScopeComponent:21,SimpleMemoComponent:15,SuspenseComponent:13,SuspenseListComponent:19,Throw:29,TracingMarkerComponent:25,ViewTransitionComponent:30,YieldComponent:-1}}),Ct=[{isMinimumExcluded:!0,minimumVersion:`17.0.1`,workTags:v[`17.0.2`]},{isMinimumExcluded:!1,minimumVersion:`17.0.0-alpha`,workTags:v[`17.0.0-alpha`]},{isMinimumExcluded:!1,minimumVersion:`16.6.0-beta.0`,workTags:v[`16.6.0-beta.0`]},{isMinimumExcluded:!1,minimumVersion:`16.4.3-alpha`,workTags:v[`16.4.3-alpha`]}],wt=v[`17.0.2`],Tt=e=>{if(e===void 0)return wt;for(let t of Ct){let n=xt(e,t.minimumVersion);if(n===null)return wt;if(n===1||n===0&&!t.isMinimumExcluded)return t.workTags}return v[`16.0.0`]},Et=Tt(),y=new WeakMap,Dt=e=>e.startsWith(`0.0.0-`)?Et:Tt(e),Ot=e=>{let t=e?.reconcilerVersion;return t&&gt(t)?Dt(t):e?.version?Dt(e.version):Et},kt=(e,t)=>{let n=Ot(t);y.set(e,n),e.alternate&&y.set(e.alternate,n)},b=e=>{let t=y.get(e);if(t)return t;let n=[e],r=e;for(;r.return;)r=r.return,n.push(r);let i=y.get(r)??Et;for(let e of n)y.set(e,i),e.alternate&&y.set(e.alternate,i);return i};_.Placement|_.Update|_.ChildDeletion|_.ContentReset|_.Hydrating|_.Visibility|_.Snapshot;var At=class extends Error{constructor(e,t){super(e,{cause:t}),this.name=`BippyError`}},jt=class extends At{constructor(e,t){super(e,t),this.name=`BippyHookInspectionError`}},Mt=class extends jt{constructor(e,t){super(e,t),this.name=`BippyUnsupportedHookError`}},Nt=class extends At{constructor(e,t){super(e,t),this.name=`BippySourceMapError`}};const Pt=e=>typeof e==`function`,Ft=e=>{let t=`displayName`in e?e.displayName:null;if(typeof t==`string`&&t)return t;let n=`name`in e?e.name:null;return typeof n==`string`&&n?n:null},x=e=>typeof e==`object`&&!!e&&`tag`in e&&`stateNode`in e&&`return`in e&&`child`in e&&`sibling`in e&&`flags`in e,It=e=>typeof e==`object`&&!!e&&`current`in e&&x(e.current),Lt=e=>{let t=b(e);switch(e.tag){case t.HostComponent:case t.HostText:case t.HostHoistable:case t.HostSingleton:return!0;default:return!1}},Rt=e=>{let t=b(e);switch(e.tag){case t.ClassComponent:case t.ForwardRef:case t.FunctionComponent:case t.MemoComponent:case t.SimpleMemoComponent:return!0;default:return!1}},zt=e=>{let t=e.memoizedProps,n=e.alternate?.memoizedProps||{},r=e.flags??e.effectTag??0,i=b(e);switch(e.tag){case i.ClassComponent:case i.ContextConsumer:case i.ForwardRef:case i.FunctionComponent:case i.MemoComponent:case i.SimpleMemoComponent:return(r&_.PerformedWork)===_.PerformedWork;default:return!e.alternate||n!==t||e.alternate.memoizedState!==e.memoizedState||e.alternate.ref!==e.ref}},Bt=e=>{let t=b(e);switch(e.tag){case t.DehydratedSuspenseComponent:return!0;case t.Fragment:case t.HostText:case t.LegacyHiddenComponent:case t.OffscreenComponent:return!0;case t.HostRoot:return!1;default:{let t=typeof e.type==`object`&&e.type!==null?e.type.$$typeof:e.type;if(typeof t==`symbol`)return t.description===St.CONCURRENT_MODE_SYMBOL_DESCRIPTION||t.description===St.DEPRECATED_ASYNC_MODE_SYMBOL_DESCRIPTION;switch(t){case St.CONCURRENT_MODE_NUMBER:case St.CONCURRENT_MODE_SYMBOL_STRING:case St.DEPRECATED_ASYNC_MODE_SYMBOL_STRING:return!0;default:return!1}}}};function Vt(e,t,n=!1){if(!e)return null;let r=t(e);return Ht(r)?Promise.resolve(r).then(r=>r===!0?e:Ut(e,t,n)):r===!0?e:Ut(e,t,n)}const Ht=e=>(typeof e==`object`||typeof e==`function`)&&e!==null&&`then`in e&&typeof e.then==`function`,Ut=(e,t,n)=>Wt(n?e.return:e.child,t,n),Wt=(e,t,n)=>{if(!e)return null;let r=n?null:e.sibling,i=Vt(e,t,n);return Ht(i)?Promise.resolve(i).then(e=>e??Wt(r,t,n)):i??Wt(r,t,n)},Gt=e=>Pt(e)?e:typeof e!=`object`||!e?null:Gt(Reflect.get(e,`type`)??Reflect.get(e,`render`)),Kt=e=>{if(typeof e==`string`)return e;if(typeof e!=`function`&&typeof e!=`object`||e===null)return null;let t=Ft(e);if(t)return t;let n=Gt(e);return n?Ft(n):null},qt=()=>{let e=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__;return!!e?._instrumentationIsActive||tt(e)||nt(e)},S=new Set,Jt=new WeakMap,Yt=e=>{let t=e.alternate;if(!t)return e;let n=e;for(;n.return;)n=n.return;if(It(n.stateNode)){let r=Vt(n.stateNode.current,n=>{if(n===e||n===t)return!0});if(r)return r}if(t.actualStartTime&&e.actualStartTime)return t.actualStartTime>e.actualStartTime?t:e;for(let n of S){let r=Vt(n.current,n=>{if(n===e||n===t)return!0});if(r)return r}return e};let Xt=0;const Zt=new WeakMap,Qt=(e,t=Xt++)=>{Zt.set(e,t),Number.isSafeInteger(t)&&t>=Xt&&(Xt=t+1)},$t=e=>{let t=Zt.get(e);return t===void 0&&e.alternate&&(t=Zt.get(e.alternate)),t===void 0&&(t=Xt++,Qt(e,t)),t},en=(e,t,n)=>{let r=t;for(;r!==null;){if($t(r),!Bt(r)&&zt(r)&&e(r,`mount`),r.tag===b(r).SuspenseComponent)if(r.memoizedState!==null){let t=r.child,n=t?t.sibling:null;if(n){let t=n.child;t!==null&&en(e,t,!1)}}else{let t=r.child?.child??null;t!==null&&en(e,t,!1)}else r.child!==null&&en(e,r.child,!0);r=n?r.sibling:null}},tn=(e,t,n)=>{if($t(t),!n)return;$t(n);let r=t.tag===b(t).SuspenseComponent;!Bt(t)&&zt(t)&&e(t,`update`);let i=r&&n.memoizedState!==null,a=r&&t.memoizedState!==null;if(i&&a){let r=t.child?.sibling??null,i=n.child?.sibling??null;r!==null&&i!==null&&tn(e,r,i)}else if(i&&!a){let n=t.child;n!==null&&en(e,n,!0)}else if(!i&&a){rn(e,n);let r=t.child?.sibling??null;r!==null&&en(e,r,!0)}else if(t.child!==n.child){let n=t.child;for(;n;)n.alternate?tn(e,n,n.alternate):en(e,n,!1),n=n.sibling}},nn=(e,t)=>{(t.tag===b(t).HostRoot||!Bt(t))&&e(t,`unmount`)},rn=(e,t)=>{let n=t.tag===b(t).SuspenseComponent&&t.memoizedState!==null,r=t.child;for(n&&(r=(t.child?.sibling??null)?.child??null);r!==null;)r.return!==null&&(nn(e,r),rn(e,r)),r=r.sibling},C=new Set,w=new WeakMap;let an=!1;const on=e=>{let t=w.get(e)??{};if(w.set(e,t),!t.onCommitFiberRoot||e.onCommitFiberRoot!==t.onCommitFiberRoot){let n=e.onCommitFiberRoot,r=(t,i,a,o)=>{if(n&&n.call(e,t,i,a,o),w.get(e)?.onCommitFiberRoot!==r)return;kt(i.current,e.renderers.get(t));let s=i.current.memoizedState;s===null||s!==void 0&&(s.element===null||s.element===void 0)?(S.delete(i),Jt.delete(i)):(S.add(i),Jt.set(i,t));for(let{options:e}of C)e.onCommitFiberRoot&&e.onCommitFiberRoot(t,i,a,o)};t.onCommitFiberRoot=r,e.onCommitFiberRoot=r}if(!t.onCommitFiberUnmount||e.onCommitFiberUnmount!==t.onCommitFiberUnmount){let n=e.onCommitFiberUnmount,r=(t,i)=>{if(kt(i,e.renderers.get(t)),n&&n.call(e,t,i),w.get(e)?.onCommitFiberUnmount===r)for(let{options:e}of C)e.onCommitFiberUnmount&&e.onCommitFiberUnmount(t,i)};t.onCommitFiberUnmount=r,e.onCommitFiberUnmount=r}if(!t.onPostCommitFiberRoot||e.onPostCommitFiberRoot!==t.onPostCommitFiberRoot){let n=e.onPostCommitFiberRoot,r=(t,i)=>{if(n&&n.call(e,t,i),w.get(e)?.onPostCommitFiberRoot===r)for(let{options:e}of C)e.onPostCommitFiberRoot&&e.onPostCommitFiberRoot(t,i)};t.onPostCommitFiberRoot=r,e.onPostCommitFiberRoot=r}if(!t.onScheduleFiberRoot||e.onScheduleFiberRoot!==t.onScheduleFiberRoot){let n=e.onScheduleFiberRoot,r=(t,i,a)=>{if(n&&n.call(e,t,i,a),w.get(e)?.onScheduleFiberRoot===r)for(let{options:e}of C)e.onScheduleFiberRoot&&e.onScheduleFiberRoot(t,i,a)};t.onScheduleFiberRoot=r,e.onScheduleFiberRoot=r}},sn=e=>{an||=(ct(on),!0),on(e)};try{pt()&&sn(g())}catch{}const cn=e=>{let t=g(e.onActive);t._instrumentationSource=e.name??Xe,sn(t);let n={options:e};return C.add(n),$e(()=>{e.onActive&&rt.delete(e.onActive),C.delete(n)})},ln=new Set,un=e=>e.startsWith(`__reactContainer$`)||e.startsWith(`__reactInternalInstance$`)||e.startsWith(`__reactFiber`),dn=e=>{let t=Reflect.get(e,`_reactRootContainer`);if(typeof t!=`object`||!t)return null;let n=Reflect.get(t,`_internalRoot`);if(typeof n!=`object`||!n)return null;let r=Reflect.get(n,`current`);if(typeof r!=`object`||!r)return null;let i=Reflect.get(r,`child`);return x(i)?i:null},fn=e=>{let t=Reflect.get(e,`__internalInstanceHandle`)??Reflect.get(e,`_internalInstanceHandle`);return x(t)?t:null},pn=e=>{if(typeof e!=`object`||!e)return e;let t=Reflect.get(e,`canonical`);if(typeof t==`object`&&t){let e=Reflect.get(t,`publicInstance`);if(typeof e==`object`&&e)return e}let n=Reflect.get(e,`_nativeTag`);return typeof n==`number`?n:e},mn=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){let t=dn(e);if(t)return t;let n=fn(e);if(n)return n;for(let t of ln){let n=Reflect.get(e,t);if(x(n))return n}for(let t of Object.keys(e))if(un(t)){ln.add(t);let n=Reflect.get(e,t);if(x(n))return n}}if(e!=null&&(typeof e==`object`||typeof e==`number`))for(let t of S){let n=Vt(t.current,t=>Lt(t)&&pn(t.stateNode)===e);if(n)return n}return null};Reflect.get(e,`useSyncExternalStore`);const hn=new WeakMap,gn=(e,t)=>{hn.set(e,t)},T=e=>hn.get(e)??null,_n=e=>T(e)?.getFiber()??mn(e);let vn=new WeakMap,yn=new WeakMap;const bn=()=>{vn=new WeakMap,yn=new WeakMap},xn=(e,t,n)=>{let r=yn.get(e);if(r&&n-r.timestamp<200)return r.borderRadius;let i=(t??qe(e)).borderRadius||`0px`;return yn.set(e,{borderRadius:i,timestamp:n}),i},Sn=e=>{let t=performance.now(),n=vn.get(e);if(n&&t-n.timestamp<16)return n.bounds;let r=T(e);if(r){let n=r.getBounds();return vn.set(e,{bounds:n,timestamp:t}),n}let i=e.getBoundingClientRect(),a=Ke(e.ownerDocument.defaultView,i.left,i.top),o={borderRadius:Ye(xn(e,null,t),a.scaleX,a.scaleY),height:i.height*a.scaleY,width:i.width*a.scaleX,x:a.x,y:a.y};return vn.set(e,{bounds:o,timestamp:t}),o},Cn=e=>{let t=e.ownerDocument?.defaultView;return!!(t&&e instanceof t.ShadowRoot)};var E=class extends Error{constructor(e,t){super(e,t),this.name=`ReactGrabError`}},D=class extends E{constructor(e,t){super(e,{cause:t}),this.name=`RecoverableError`}},wn=class extends E{constructor(e){super(`Failed to freeze page`,{cause:e}),this.name=`FreezeError`}},Tn=class extends D{constructor(e,t,n){super(`Failed to open source file "${e}"`,n),this.name=`OpenFileError`,this.filePath=e,this.lineNumber=t}},En=class extends D{constructor(e,t,n){super(`Plugin hook "${t}" failed for "${e}"`,n),this.name=`PluginHookError`,this.pluginName=e,this.hookName=t}},Dn=class extends D{constructor(e,t){super(`Plugin cleanup failed for "${e}"`,t),this.name=`PluginCleanupError`,this.pluginName=e}},On=class extends D{constructor(e,t){super(`Plugin setup failed for "${e}"`,t),this.name=`PluginSetupError`,this.pluginName=e}},kn=class extends D{constructor(e,t){super(`Action "${e}" failed`,t),this.name=`ContextMenuActionError`,this.actionId=e}},An=class extends D{constructor(e,t){super(`Action "${e}" enabled check failed`,t),this.name=`ContextMenuActionEnabledError`,this.actionId=e}},jn=class extends E{constructor(){super(`Can't generate CSS selector for non-element node type.`),this.name=`NonElementNodeError`}},Mn=class extends E{constructor(e){super(`Timeout: Can't find a unique selector after ${e}ms`),this.name=`SelectorTimeoutError`,this.timeoutMs=e}},Nn=class extends E{constructor(){super(`Selector was not found.`),this.name=`SelectorNotFoundError`}},Pn=class extends E{constructor(){super(`Failed to copy`),this.name=`CopyFailedError`}};const Fn=e=>T(e)?.getTagName()??(e.tagName||``).toLowerCase(),In=new WeakMap,Ln=(e=document)=>{let t=In.get(e);if(t!==void 0)return t;let n=e.querySelector(`script[nonce], style[nonce]`),r=n?.nonce||n?.getAttribute(`nonce`)||null;return r&&In.set(e,r),r},Rn=[[`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`,``]],zn=e=>{for(let[t,n]of Rn)e.setAttribute(t,n);e.setAttribute(`data-testid`,`react-grab-overlay`),e.classList.add(`ph-no-capture`)},Bn=e=>typeof e==`object`&&!!e&&`nodeType`in e&&e.nodeType===9,O=e=>{if(e.assignedSlot)return e.assignedSlot;if(e.parentElement)return e.parentElement;let t=e.getRootNode();return Cn(t)?t.host:Bn(t)?Ge(t.defaultView):null},Vn=(e,t)=>{let n=T(e)?.hostElement??e;for(;n;){if(n===t)return!0;n=O(n)}return!1};let Hn=null;const Un=e=>{Hn=e},Wn=()=>Hn,k=e=>Hn?e?Vn(e,Hn):!1:!0,Gn=e=>e,Kn=e=>e.replace(/&/g,`&amp;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`),qn=typeof window<`u`,Jn=e=>0,Yn=e=>{},Xn=qn?(Object.getOwnPropertyDescriptor(Window.prototype,`requestAnimationFrame`)?.value??window.requestAnimationFrame).bind(window):Jn,Zn=qn?(Object.getOwnPropertyDescriptor(Window.prototype,`cancelAnimationFrame`)?.value??window.cancelAnimationFrame).bind(window):Yn,Qn=()=>qn?new Promise(e=>Xn(()=>e())):Promise.resolve(),$n=(e,t)=>{let n=t?.componentName??`div`,r={version:`0.2.0-dev.9b69eda`,content:e,entries:t?.entries??[{tagName:t?.tagName,componentName:n,content:e,commentText:t?.commentText}],timestamp:Date.now()},i=t=>{t.preventDefault(),t.clipboardData?.setData(`text/plain`,e),t.clipboardData?.setData(`text/html`,`<meta charset='utf-8'><pre><code>${Kn(e)}</code></pre>`),t.clipboardData?.setData(`application/x-react-grab`,JSON.stringify(r))},a=document.createElement(`textarea`);document.addEventListener(`copy`,i);try{return a.value=e,a.style.position=`fixed`,a.style.left=`-9999px`,a.ariaHidden=`true`,document.body.appendChild(a),a.select(),typeof document.execCommand==`function`?document.execCommand(`copy`):!1}finally{document.removeEventListener(`copy`,i),a.remove()}},A=e=>{try{return e.contentDocument}catch{return null}},er=(e,t,n)=>{let r=e.getBoundingClientRect(),i=Ue(e),a=We(r.width,i.width),o=We(r.height,i.height);return{x:(t-r.left)/a-i.contentOffsetX,y:(n-r.top)/o-i.contentOffsetY}},tr=(e,t,n)=>{let r=e.elementFromPoint(t,n);for(;r;){let e=r.shadowRoot?.elementFromPoint(t,n);if(e&&e!==r){r=e;continue}if(m(r)){let e=A(r);if(!e)return r;let i=er(r,t,n);return tr(e,i.x,i.y)??r}return r}return null},nr=(e,t)=>tr(document,e,t),rr=e=>{let t=e;for(;t;){if(t.hasAttribute(`data-react-grab-ignore`))return!0;t=O(t)}return!1},ir=typeof Element<`u`&&typeof Element.prototype.checkVisibility==`function`,ar={checkOpacity:!0,checkVisibilityCSS:!0,opacityProperty:!0,visibilityProperty:!0},or={checkVisibilityCSS:!0,visibilityProperty:!0},sr=(e,t)=>{if(ir&&!t)return e.checkVisibility(ar)?!0:e.checkVisibility(or)?qe(e).opacity!==`0`:!1;let n=t??qe(e);return n.display!==`none`&&n.visibility!==`hidden`&&n.opacity!==`0`},cr=e=>{let t=Fn(e);return t===`html`||t===`body`},lr=[`data-react-grab`,`data-react-grab-demo`],ur=e=>lr.some(t=>e.hasAttribute(t)),dr=e=>{if(ur(e)||e.hasAttribute(`data-react-grab-hit-test-shield`))return!0;let t=e.getRootNode();return Cn(t)&&ur(t.host)},fr=e=>{let t=parseInt(e.zIndex,10);return e.pointerEvents===`none`&&e.position===`fixed`&&!isNaN(t)&&t>=2147483600},pr=e=>{let t=e.backgroundColor;return t===`transparent`||t===`rgba(0, 0, 0, 0)`},mr=e=>{let t=e.position;if(t!==`fixed`&&t!==`absolute`)return!1;if(pr(e)||parseFloat(e.opacity)<.1)return!0;let n=parseInt(e.zIndex,10);return!isNaN(n)&&n>1e3};let hr=new WeakMap;const gr=()=>{hr=new WeakMap},_r=e=>{let t=T(e);if(t)return t.isConnected();if(cr(e)||dr(e)||rr(e))return!1;let n=performance.now(),r=hr.get(e);if(r&&n-r.timestamp<50)return r.isVisible;if(!sr(e))return hr.set(e,{isVisible:!1,timestamp:n}),!1;if(e.clientWidth/(e.ownerDocument.defaultView?.innerWidth??window.innerWidth)>=.9&&e.clientHeight/(e.ownerDocument.defaultView?.innerHeight??window.innerHeight)>=.9){let t=qe(e);if(fr(t)||mr(t))return!1}return hr.set(e,{isVisible:!0,timestamp:n}),!0},vr=e=>{if(e===`transparent`)return!0;let t=e.lastIndexOf(`/`);if(t>=0)return Number.parseFloat(e.slice(t+1))===0;if(!e.startsWith(`rgba(`))return!1;let n=e.lastIndexOf(`,`);return n>=0&&Number.parseFloat(e.slice(n+1))===0},yr=e=>{let t=e.ownerDocument.defaultView?.getComputedStyle?.(e);if(!t)return!1;let n=t.backgroundClip!==`text`&&(t.backgroundImage!==`none`||!vr(t.backgroundColor)),r=t.borderTopStyle!==`none`&&t.borderTopWidth!==`0px`||t.borderRightStyle!==`none`&&t.borderRightWidth!==`0px`||t.borderBottomStyle!==`none`&&t.borderBottomWidth!==`0px`||t.borderLeftStyle!==`none`&&t.borderLeftWidth!==`0px`;return n||r||t.boxShadow!==`none`||t.outlineStyle!==`none`},br=new Set([`A`,`AUDIO`,`BUTTON`,`CANVAS`,`DETAILS`,`EMBED`,`IFRAME`,`IMG`,`INPUT`,`METER`,`OBJECT`,`OPTION`,`PROGRESS`,`SELECT`,`SUMMARY`,`SVG`,`TEXTAREA`,`VIDEO`]),xr=new Set([`button`,`checkbox`,`combobox`,`gridcell`,`link`,`listbox`,`menuitem`,`menuitemcheckbox`,`menuitemradio`,`option`,`radio`,`scrollbar`,`searchbox`,`slider`,`spinbutton`,`switch`,`tab`,`textbox`,`treeitem`]),Sr=new Set(`A.ABBR.B.BDI.BDO.BR.CITE.CODE.DATA.DEL.DFN.EM.I.INS.KBD.MARK.Q.S.SAMP.SMALL.SPAN.STRONG.SUB.SUP.TIME.U.VAR.WBR`.split(`.`));let Cr=new WeakMap,wr=new WeakMap;const Tr=()=>{Cr=new WeakMap,wr=new WeakMap},j=(e,t,n)=>(Cr.set(e,t),wr.set(e,n),t),Er=e=>br.has(e.tagName)||xr.has(e.getAttribute(`role`)??``)||p(e)&&e.isContentEditable,Dr=e=>{let t=performance.now(),n=wr.get(e);if(n!==void 0&&t-n<16)return Cr.get(e)??null;if(Er(e)||e.childNodes.length>64)return j(e,null,t);let r=[],i=[],a=0;for(let t=e.childNodes.length-1;t>=0;--t)i.push(e.childNodes[t]);for(;i.length>0;){if(a+=1,a>64)return j(e,null,t);let n=i.pop();if(n){if(n.nodeType===Node.TEXT_NODE){if(n.textContent?.trim()&&(r.push(n),r.length>32))return j(e,null,t);continue}if(!Ve(n)||!Sr.has(n.tagName)||a+i.length+n.childNodes.length>64)return j(e,null,t);for(let e=n.childNodes.length-1;e>=0;--e)i.push(n.childNodes[e])}}if(r.length===0||yr(e))return j(e,null,t);try{let n=e.ownerDocument.createRange(),i=Ke(e.ownerDocument.defaultView,0,0),a=[];for(let o of r){n.selectNodeContents(o);let r=n.getClientRects();if(a.length+r.length>64)return j(e,null,t);for(let e=0;e<r.length;e+=1){let t=r[e],n=t.width*i.scaleX,o=t.height*i.scaleY;!Number.isFinite(t.left)||!Number.isFinite(t.top)||!Number.isFinite(n)||!Number.isFinite(o)||n<=0||o<=0||a.push({borderRadius:`0px`,height:o,width:n,x:i.x+t.left*i.scaleX,y:i.y+t.top*i.scaleY})}}return j(e,a.length>0?a:null,t)}catch{return j(e,null,t)}},Or=(e,t,n)=>{let r=Dr(e);if(!r)return!0;for(let e of r)if(t>=e.x&&t<=e.x+e.width&&n>=e.y&&n<=e.y+e.height)return!0;return!1},kr=(e,t,n,r,i)=>{let a=!0;for(let o of e.elementsFromPoint(t,n)){if(rr(o)&&(a=!1),!k(o))continue;let s=o.shadowRoot;if(a&&s&&s!==e){let e=kr(s,t,n,r,i);if(e)return e}if(a&&m(o)){let e=A(o);if(e){let a=er(o,t,n),s=kr(e,a.x,a.y,r,i);if(s)return s}}if(_r(o)&&Or(o,r,i))return o}return null},Ar=(e,t)=>kr(document,e,t,e,t),jr=(e,t,n,r)=>{let i=e.elementsFromPoint(t,n),a=!0;for(let o of i){if(rr(o)&&(a=!1),a&&o.shadowRoot&&o.shadowRoot!==e&&jr(o.shadowRoot,t,n,r),a&&m(o)){let e=A(o);if(e){let i=er(o,t,n);jr(e,i.x,i.y,r)}}r.add(o)}},Mr=(e,t)=>{let n=new Set;return jr(document,e,t,n),[...n]},Nr=(e,t,n)=>{let r=[],i=e;for(;i&&i!==window;){let e=Ge(i);if(!e||!m(e))break;r.push(e),i=e.ownerDocument.defaultView}let a=t,o=n;for(let e=r.length-1;e>=0;--e){let t=er(r[e],a,o);a=t.x,o=t.y}return{x:a,y:o}},Pr=`http://www.w3.org/2000/svg`,Fr=e=>{if(e.localName===`svg`)return e;let t=e,n=e.parentElement;for(;n?.namespaceURI===Pr&&(t=n,n.localName!==`svg`);)n=n.parentElement;return t},Ir=(e,t,n,r)=>{if(typeof e.caretPositionFromPoint==`function`){let i=e.caretPositionFromPoint(t,n,{shadowRoots:r?[r]:[]});if(i)return i.offsetNode}return typeof e.caretRangeFromPoint==`function`?e.caretRangeFromPoint(t,n)?.startContainer??null:null},Lr=(e,t,n)=>{if(cr(e))return null;let r=e.ownerDocument,i=r.defaultView;if(!i)return null;let a=Nr(i,t,n),o=e.getRootNode(),s=Ir(r,a.x,a.y,Cn(o)?o:null);if(!s)return null;let c=Ve(s)?s:s.parentElement;if(!c||c===e)return null;let l=e.namespaceURI===Pr;return!(l?Fr(e):e).contains(c)||!l&&qe(c).pointerEvents!==`none`?null:c},Rr=(e,t,n)=>e>=n.left&&e<=n.right&&t>=n.top&&t<=n.bottom,zr=new Set([`auto`,`scroll`,`overlay`]),Br=(e,t,n,r,i)=>zr.has(e)?i<0?t>1:t+n<r-1:!1,Vr=(e,t,n)=>{let r=e;for(;r;){let e=n!==0&&r.scrollHeight>r.clientHeight,i=t!==0&&r.scrollWidth>r.clientWidth;if(e||i){let a=getComputedStyle(r);if(e&&Br(a.overflowY,r.scrollTop,r.clientHeight,r.scrollHeight,n)||i&&Br(a.overflowX,r.scrollLeft,r.clientWidth,r.scrollWidth,t))return r}r=O(r)}return null},Hr=(e,t)=>{let n=[];for(let r of e){let e=Math.max(r.left,t.left),i=Math.max(r.top,t.top),a=Math.min(r.right,t.right),o=Math.min(r.bottom,t.bottom);if(a<=e||o<=i){n.push(r);continue}i>r.top&&n.push({left:r.left,top:r.top,right:r.right,bottom:i}),o<r.bottom&&n.push({left:r.left,top:o,right:r.right,bottom:r.bottom}),e>r.left&&n.push({left:r.left,top:i,right:e,bottom:o}),a<r.right&&n.push({left:a,top:i,right:r.right,bottom:o})}return n},Ur=`full-viewport`,Wr=(e,t)=>{let n=e.createElement(`div`);return n.setAttribute(Se,``),n.style.position=`absolute`,n.style.pointerEvents=t,n.style.background=`transparent`,n},Gr=e=>{let t=[];for(let n of e){let e=n.getBoundingClientRect();e.width<=0||e.height<=0||t.push({left:e.left,top:e.top,right:e.right,bottom:e.bottom})}return t},Kr=e=>{let t={...e[0]};for(let n of e)n.left<t.left&&(t.left=n.left),n.top<t.top&&(t.top=n.top),n.right>t.right&&(t.right=n.right),n.bottom>t.bottom&&(t.bottom=n.bottom);return t},qr=(e,t)=>{let n=e.createElement(`div`);n.setAttribute(Se,``),n.setAttribute(`aria-hidden`,`true`),zn(n),n.style.cssText=`position:fixed;inset:0;pointer-events:none;contain:strict;background:transparent;z-index:2147483644;`;let r=!1,i=()=>r?`none`:`auto`,a=Wr(e,i());a.style.inset=`0`,n.appendChild(a),(e.body??e.documentElement).appendChild(n);let o=[a],s=Ur,c=e=>{if(r===e)return;r=e;let t=i();for(let e of o)e.style.pointerEvents=t},l=(t,n)=>{let i=r;c(!0);let a=tr(e,t,n);return c(i),a},u=t=>{let n=t.deltaX,r=t.deltaY;if(t.deltaMode===WheelEvent.DOM_DELTA_LINE?(n*=16,r*=16):t.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(n*=e.documentElement.clientWidth,r*=e.documentElement.clientHeight),n===0&&r===0)return;let i=l(t.clientX,t.clientY);if(!i)return;let a=Vr(i,n,r);a&&(t.preventDefault(),a.scrollBy({left:n,top:r,behavior:`instant`}))};return n.addEventListener(`wheel`,u,{passive:!1}),{openForHitTest:()=>{c(!0)},closeAfterHitTest:()=>{c(!1)},refreshHoles:()=>{let r=Gr(t());if(r.length===0){if(s===Ur)return;s=Ur,a.style.pointerEvents=i(),o=[a],n.replaceChildren(a);return}let c={left:0,top:0,right:e.documentElement.clientWidth,bottom:e.documentElement.clientHeight},l=Hr([c],r[0]);for(let e=1;e<r.length;e++)l=Hr(l,r[e]);l.length>12&&(l=Hr([c],Kr(r)));let u=l.map(e=>`${e.left},${e.top},${e.right},${e.bottom}`).join(`|`);if(u===s)return;s=u;let d=i();o=l.map(t=>{let n=Wr(e,d);return n.style.left=`${t.left}px`,n.style.top=`${t.top}px`,n.style.width=`${t.right-t.left}px`,n.style.height=`${t.bottom-t.top}px`,n}),n.replaceChildren(...o)},remove:()=>{n.removeEventListener(`wheel`,u),n.remove()}}},Jr=(e,t,n=document)=>{let r=n.createElement(`style`);r.setAttribute(e,``);let i=Ln(n);return i&&(r.nonce=i),zn(r),r.textContent=t,n.head.appendChild(r),r},Yr=`html, body { pointer-events: auto !important; }
28
28
  iframe[${xe}] { pointer-events: auto !important; }`,Xr=new Set,M=new Map;let N=!1,P=0;const Zr=e=>{let t=new Set(e.querySelectorAll(`iframe[${xe}]`));for(let n of Xr){let r=Ge(n.defaultView);r?.ownerDocument===e&&t.add(r)}return t},Qr=e=>{if(M.has(e))return;let t=Jr(`data-react-grab-frozen-pseudo`,Yr,e),n=qr(e,()=>Zr(e));n.refreshHoles(),P>0&&n.openForHitTest(),M.set(e,{style:t,shield:n})},$r=e=>{let t=M.get(e);t&&(t.style.remove(),t.shield.remove(),M.delete(e))},ei=()=>N,ti=e=>(Xr.add(e),N&&(Qr(e),oi()),()=>{Xr.delete(e),$r(e),oi()}),ni=()=>{if(!N){N=!0,P=0,Xr.add(document);for(let e of Xr)Qr(e)}},ri=()=>{if(N){N=!1,P=0;for(let e of[...M.keys()])$r(e)}},ii=()=>{if(N&&(P++,!(P>1)))for(let e of M.values())e.shield.openForHitTest()},ai=()=>{if(!(!N||P===0)&&(P--,!(P>0)))for(let e of M.values())e.shield.closeAfterHitTest()},oi=()=>{if(N)for(let e of M.values())e.shield.refreshHoles()},F=(e,t)=>{if(e.length!==0)throw e.length===1?e[0]:AggregateError(e,t)},si=new Set,I=new Set;let L=!1;const ci=(e,t)=>{if(I.has(e))try{e.unfreeze()}catch(e){t.push(e)}finally{I.delete(e)}},li=e=>{si.add(e);try{L&&e.isConnected()&&(e.freeze(),I.add(e))}catch(t){throw si.delete(e),t}return()=>{let t=[];ci(e,t),si.delete(e),F(t,`Unregistering renderer freeze failed`)}},ui=()=>{if(!L){L=!0;try{for(let e of si)e.isConnected()&&(e.freeze(),I.add(e))}catch(e){L=!1;let t=[];for(let e of[...I].reverse())ci(e,t);throw t.length===0?e:AggregateError([e,...t],`Rolling back renderer freeze failed`)}}},di=()=>{if(!L)return;L=!1;let e=[];for(let t of[...I].reverse())ci(t,e);F(e,`Unfreezing renderers failed`)},fi=new WeakMap,pi=new WeakMap,R=new WeakMap,mi=new WeakMap,hi=new WeakMap,gi=[`name`,`position`,`rotation`,`scale`,`color`,`visible`,`args`],z=e=>typeof e==`object`&&!!e,_i=e=>typeof e==`object`&&!!e||typeof e==`function`,B=(e,t)=>typeof e[t]==`function`,V=e=>z(e)&&typeof e.x==`number`&&typeof e.y==`number`&&typeof e.z==`number`&&B(e,`set`)&&B(e,`clone`)&&B(e,`applyMatrix4`)&&B(e,`project`),vi=e=>z(e)&&B(e,`clone`)&&B(e,`premultiply`),yi=e=>z(e)&&`boundingBox`in e&&B(e,`computeBoundingBox`),bi=e=>z(e)&&typeof e.type==`string`&&z(e.props)&&xi(e.object),xi=e=>z(e)&&e.isObject3D===!0&&typeof e.uuid==`string`&&typeof e.name==`string`&&typeof e.type==`string`&&typeof e.visible==`boolean`&&vi(e.matrixWorld)&&B(e,`updateWorldMatrix`),Si=e=>z(e)&&e.isCamera===!0,Ci=e=>xi(e)&&e.isScene===!0&&Array.isArray(e.children),wi=e=>z(e)&&typeof e.tagName==`string`&&e.tagName.toLowerCase()===`canvas`&&B(e,`getContext`),Ti=e=>z(e)&&wi(e.domElement),Ei=e=>z(e)&&B(e,`set`),Di=e=>z(e)&&B(e,`setFromCamera`)&&B(e,`intersectObjects`),Oi=e=>z(e)&&Ti(e.gl)&&Ci(e.scene)&&Si(e.camera)&&Di(e.raycaster)&&Ei(e.pointer),ki=e=>e===`always`||e===`demand`||e===`never`,Ai=e=>z(e)&&typeof e.elapsedTime==`number`,ji=(e,t)=>{let n=e.getState();if(typeof n.setFrameloop!=`function`)return;let r=Ai(n.clock)?n.clock.elapsedTime:null;n.setFrameloop(t);let i=e.getState().clock;r!==null&&Ai(i)&&(i.elapsedTime=r)},Mi=e=>{if(mi.has(e))return;let t=null,n=li({freeze:()=>{let n=R.get(e);if(!n)return;let r=n.getState();if(ki(r.frameloop)&&typeof r.setFrameloop==`function`){let e=r.frameloop;ji(n,`never`),t=()=>ji(n,e)}},isConnected:()=>e.isConnected,unfreeze:()=>{t?.(),t=null}});mi.set(e,n)},Ni=e=>{let t=mi.get(e);t&&(mi.delete(e),t())},Pi=e=>bi(e.__r3f)?e.__r3f:null,Fi=e=>{let t=e.current.stateNode;if(!z(t)||!_i(t.containerInfo))return null;let n=t.containerInfo,r=Reflect.get(n,`getState`);if(typeof r!=`function`)return null;let i=Reflect.apply(r,n,[]);return Oi(i)?()=>{let e=Reflect.apply(r,n,[]);return Oi(e)?e:i}:null},Ii=e=>{let t=hi.get(e);t&&(hi.delete(e),R.get(t.canvas)===t.root&&(R.delete(t.canvas),Ni(t.canvas)))},Li=e=>{let t=Fi(e);if(!t){Ii(e);return}let n=t().gl.domElement;if(!n.isConnected||!e.current.child){Ii(e);return}let r=hi.get(e);r&&r.canvas!==n&&(Ii(e),r=void 0),r?(r.root.getState=t,r.root.selectableObjects=null):(r={canvas:n,root:{getState:t,selectableObjects:null}},hi.set(e,r)),R.set(n,r.root),Mi(n)};cn({name:`react-grab-three-selection`,onCommitFiberRoot:(e,t)=>Li(t)});const Ri=e=>{let t=e;for(;t;){if(Pi(t))return t;t=t.parent}return null},zi=e=>{let t=e;for(;t;){let e=Pi(t);if(e&&typeof e.eventCount==`number`&&e.eventCount>0)return!0;t=t.parent}return!1},Bi=(e,t)=>{let n=e;for(;n;){if(n===t)return!0;n=n.parent}return!1},Vi=e=>{let t=e;for(;t;){if(!t.visible)return!1;t=t.parent}return!0},Hi=e=>!!Pi(e)&&(yi(e.geometry)||e.type.toLowerCase()===`sprite`),Ui=e=>e.isInstancedMesh!==!0||typeof e.count!=`number`||!Number.isInteger(e.count)||e.count<=0||!e.getMatrixAt?0:e.count,Wi=(e,t,n,r)=>{try{let i={object:n};r!==void 0&&(i.instanceId=r);let a=Gi(t,n,i);a&&e.push(a)}catch{}},Gi=(e,t,n)=>{let r=typeof n.instanceId==`number`&&Number.isInteger(n.instanceId)?n.instanceId:null,i=fi.get(t);i||(i=new Map,fi.set(t,i));let a=i.get(r);if(a)return a.canvas=e.gl.domElement,a.intersectionPoint=V(n.point)?n.point:null,a.object=t,a.rootState=e,a.element;let o=Pi(t),s=o?mn(o):null;if(o&&!s)return null;let c=(o?.type||t.type||`object-3d`).toLowerCase(),l=e.gl.domElement.ownerDocument.createElement(c),u={canvas:e.gl.domElement,element:l,fiber:s,instance:o,instanceId:r,intersectionPoint:V(n.point)?n.point:null,object:t,rootState:e,tagName:c},d=l.getBoundingClientRect.bind(l);return l.getBoundingClientRect=()=>{let e=na(u),t=l.ownerDocument.defaultView?.DOMRect;return t?new t(e.x,e.y,e.width,e.height):d()},gn(l,{hostElement:u.canvas,supportsDomEditing:!1,getBounds:()=>na(u),getFiber:()=>u.fiber?Yt(u.fiber):null,getPreview:()=>Yi(u),getSelector:()=>Xi(u),getTagName:()=>u.tagName,isConnected:()=>u.canvas.isConnected&&Bi(u.object,u.rootState.scene)}),i.set(r,u),pi.set(l,u),l},Ki=(e,t,n)=>{if(!wi(e))return e;let r=R.get(e);if(!r)return e;try{let i=r.getState(),a=Sn(e);if(a.width<=0||a.height<=0)return e;let o=(t-a.x)/a.width*2-1,s=-((n-a.y)/a.height)*2+1;if(o<-1||o>1||s<-1||s>1)return e;i.pointer.set(o,s),i.raycaster.setFromCamera(i.pointer,i.camera);let c=i.raycaster.intersectObjects(i.scene.children,!0);for(let e of c){if(!zi(e.object))continue;let t=Ri(e.object);if(!t||t.visible===!1)continue;let n=Gi(i,t,e);if(n)return n}for(let e of c){let t=Ri(e.object);if(!t||t.visible===!1)continue;let n=Gi(i,t,e);if(n)return n}}catch{}return e},qi=(e,t)=>{if(!wi(e))return[];let n=R.get(e);if(!n)return[];try{let e=n.getState(),r=t?pi.get(t):null;if(!n.selectableObjects){let t=[],r=[...e.scene.children];for(let e=0;e<r.length;e+=1){let n=r[e];if(n.children)for(let e of n.children)r.push(e);Hi(n)&&t.push(n)}n.selectableObjects=t}let i=[];for(let t of n.selectableObjects){if(!Vi(t)||!Bi(t,e.scene)||t.isInstancedMesh===!0&&t.count===0)continue;let n=Ui(t);if(n>0&&n<=512){for(let r=0;r<n;r+=1)Wi(i,e,t,r);continue}if(n>512&&r?.object===t&&r.instanceId!==null){i.push(r.element);continue}Wi(i,e,t)}return i}catch{return[]}},Ji=e=>typeof e==`string`?JSON.stringify(e):typeof e==`number`||typeof e==`boolean`?`{${String(e)}}`:Array.isArray(e)&&e.length<=4&&e.every(e=>typeof e==`number`||typeof e==`string`)?`{${JSON.stringify(e)}}`:null,Yi=e=>{let t=e.instance?.props??{},n=[];for(let r of gi){let i=t[r];r===`name`&&i===void 0&&e.object.name&&(i=e.object.name);let a=Ji(i);a&&n.push(`${r}=${a}`)}return e.instanceId!==null&&n.push(`instanceId={${e.instanceId}}`),`<${e.tagName}${n.length>0?` ${n.join(` `)}`:``} />`},Xi=e=>{if(e.object.name)return`${e.tagName}[name=${JSON.stringify(e.object.name)}]`;let t=e.instanceId===null?``:`:${e.instanceId}`;return`${e.tagName}[uuid=${JSON.stringify(`${e.object.uuid}${t}`)}]`},Zi=e=>{e.object.updateWorldMatrix(!0,!1);let t=e.object.matrixWorld.clone();if(e.instanceId===null||!e.object.getMatrixAt)return t;let n=e.object.matrixWorld.clone();return e.object.getMatrixAt(e.instanceId,n),n.premultiply(t)},Qi=e=>{if(!yi(e.geometry))return null;if(!e.geometry.boundingBox)try{e.geometry.computeBoundingBox()}catch{return null}let t=e.geometry.boundingBox;return!t||!V(t.min)||!V(t.max)?null:t},$i=e=>{if(e.isInstancedMesh!==!0||typeof e.computeBoundingBox!=`function`)return null;if(!e.boundingBox)try{e.computeBoundingBox()}catch{return null}let t=e.boundingBox;return!t||!V(t.min)||!V(t.max)?null:t},ea=e=>e.instanceId===null?$i(e.object)??Qi(e.object):Qi(e.object),ta=(e,t)=>{let n=t.x+t.width/2,r=t.y+t.height/2;try{let i=e.intersectionPoint?e.intersectionPoint.clone():V(e.object.position)?e.object.position.clone().set(0,0,0).applyMatrix4(Zi(e)):null;i&&(i.project(e.rootState.camera),Number.isFinite(i.x)&&Number.isFinite(i.y)&&(n=t.x+(i.x+1)/2*t.width,r=t.y+(1-i.y)/2*t.height))}catch{}return{x:n-16/2,y:r-16/2,width:16,height:16,borderRadius:`0px`}},na=e=>{let t=Sn(e.canvas);try{let n=ea(e);if(!n)return ta(e,t);let r=Zi(e),i=[n.min.x,n.max.x],a=[n.min.y,n.max.y],o=[n.min.z,n.max.z],s=1/0,c=1/0,l=-1/0,u=-1/0,d=n.min.clone();for(let n of i)for(let i of a)for(let a of o){if(d.set(n,i,a).applyMatrix4(r).project(e.rootState.camera),!Number.isFinite(d.x)||!Number.isFinite(d.y))continue;let o=t.x+(d.x+1)/2*t.width,f=t.y+(1-d.y)/2*t.height;s=Math.min(s,o),c=Math.min(c,f),l=Math.max(l,o),u=Math.max(u,f)}if(!Number.isFinite(s)||!Number.isFinite(c)||!Number.isFinite(l)||!Number.isFinite(u))return ta(e,t);let f=Math.max(t.x,s),ee=Math.max(t.y,c),te=Math.min(t.x+t.width,l),ne=Math.min(t.y+t.height,u);return te<=f||ne<=ee?ta(e,t):{x:f,y:ee,width:te-f,height:ne-ee,borderRadius:`0px`}}catch{return ta(e,t)}};let H=null,U=null;const ra=(e,t,n,r)=>{let i=Math.abs(e-n),a=Math.abs(t-r);return i<=2&&a<=2},ia=(e,t,n)=>{let r=Ki(e,t,n);return _r(r)&&k(e)&&Or(e,t,n)?r:null},aa=(e,t)=>{if(!Number.isFinite(e)||!Number.isFinite(t))return[];ii();try{let n=Mr(e,t),r=Wn()?n.filter(k):n,i=[],a=new Set,o=!1;for(let n of r){let r=n,s=Or(n,e,t);if(!o){let i=Lr(n,e,t);i&&k(i)&&_r(i)&&Or(i,e,t)?(r=i,s=!0,o=!0):_r(n)&&s&&(o=!0)}let c=Ki(r,e,t);if(s&&!a.has(c)&&(a.add(c),i.push(c)),r===n)continue;let l=O(r);for(;l&&k(l);){let n=Ki(l,e,t);Or(l,e,t)&&!a.has(n)&&(a.add(n),i.push(n)),l=O(l)}break}return i}finally{ai()}},oa=(e,t)=>{if(!Number.isFinite(e)||!Number.isFinite(t))return null;let n=performance.now();ii();try{if(U){let r=U.element,i=n-U.timestamp<16;if(r.isConnected&&i&&Rr(e,t,U.bounds)&&!A(r))return r;U=null,H?.element===r&&(H=null)}if(H){let r=ra(e,t,H.clientX,H.clientY),i=n-H.timestamp<16;if(r&&i){if(!H.preciseHitElement)return H.element;let n=Lr(H.preciseHitElement,e,t);if(n){let r=ia(n,e,t);if(r)return r}return H.usesTextHitTesting?ia(H.preciseHitElement,e,t)??Ar(e,t):H.fallbackElement}}let r=null,i=nr(e,t),a=i?Dr(i)!==null:!1,o=i?Lr(i,e,t):null,s=o?ia(o,e,t):null,c=(i?ia(i,e,t):null)??Ar(e,t);if(r=s??c,r&&m(r)&&!A(r)){let e=Sn(r);U={element:r,timestamp:n,bounds:{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height}}}else U=null;return H={clientX:e,clientY:t,element:r,fallbackElement:c,preciseHitElement:i?.namespaceURI===`http://www.w3.org/2000/svg`||o||a?i:null,usesTextHitTesting:a,timestamp:n},r}finally{ai()}},sa=()=>{H=null,U=null},W=e=>{console.warn(`[react-grab]`,e)},ca=(e,t)=>e.length===t.length&&e.every((e,n)=>e===t[n]);let G=!1,K=null,q=!1;const J=new Map;let la=-1;const ua=new WeakSet,da=new WeakSet,fa=new WeakMap,pa=new Map,Y=new Map,ma=e=>{if(K===e&&(q=!0),ua.has(e))return!0;if(!G&&K===e){let t=(fa.get(e)??0)+1;return fa.set(e,t),t<4?!1:(ua.add(e),!0)}return!G||!(`gsapVersions`in window)||!(Error().stack??``).includes(`_tick`)?!1:(ua.add(e),da.add(e),!0)};typeof window<`u`&&(window.requestAnimationFrame=e=>{let t=ma(e);if(G&&t){let t=la--;return J.set(t,e),t}let n=Xn(t=>{if(G&&ma(e)){let t=la--;J.set(t,e),pa.set(n,t);return}let r=K,i=q;K=e,q=!1;try{e(t)}finally{let t=q;K=r,q=i,!t&&!da.has(e)&&(ua.delete(e),fa.delete(e))}});return n},window.cancelAnimationFrame=e=>{if(J.has(e)){J.delete(e);return}let t=Y.get(e);if(t!==void 0){Zn(t.nativeId),Y.delete(e);return}let n=pa.get(e);if(n!==void 0){J.delete(n),pa.delete(e);return}Zn(e)});const ha=()=>{if(!G){G=!0,J.clear(),pa.clear();for(let[e,{nativeId:t,callback:n}]of Y)Zn(t),J.set(e,n);Y.clear()}},ga=()=>{if(G){G=!1;for(let[e,t]of J.entries()){let n=Xn(n=>{Y.delete(e);let r=K,i=q;K=t,q=!1;try{t(n)}finally{let e=q;K=r,q=i,!e&&!da.has(t)&&(ua.delete(t),fa.delete(t))}});Y.set(e,{nativeId:n,callback:t})}J.clear(),pa.clear()}},_a=`
29
29
  [${be}],
30
30
  [${be}] * {
@@ -24,7 +24,7 @@ try{g()}catch{}
24
24
  * This source code is licensed under the MIT license found in the
25
25
  * LICENSE file in the root directory of this source tree.
26
26
  */
27
- const Ge=/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-([0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*))?(?:\+[0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*)?$/,Ke=/^\d+$/,qe=e=>Je(e)!==null,Je=e=>{let t=Ge.exec(e);if(!t)return null;let n=t[4]?.split(`.`)??[];return n.some(e=>Ke.test(e)&&e.length>1&&e.startsWith(`0`))?null:{major:t[1],minor:t[2],patch:t[3],prerelease:n}},Ye=(e,t)=>e.length===t.length?e===t?0:e<t?-1:1:e.length<t.length?-1:1,Xe=(e,t)=>{let n=Ke.test(e),r=Ke.test(t);return n&&r?Ye(e,t):n===r?e===t?0:e<t?-1:1:n?-1:1},Ze=(e,t)=>{if(e.length===0||t.length===0)return e.length===t.length?0:e.length===0?1:-1;let n=Math.max(e.length,t.length);for(let r=0;r<n;r++){let n=e[r],i=t[r];if(n===void 0||i===void 0)return n===void 0?-1:1;let a=Xe(n,i);if(a!==0)return a}return 0},Qe=(e,t)=>{let n=Je(e),r=Je(t);if(!n||!r)return null;let i=Ye(n.major,r.major);if(i!==0)return i;let a=Ye(n.minor,r.minor);if(a!==0)return a;let o=Ye(n.patch,r.patch);return o===0?Ze(n.prerelease,r.prerelease):o},_={ChildDeletion:16,Cloned:8,ContentReset:32,Hydrating:4096,PerformedWork:1,Placement:2,Snapshot:1024,Update:4,Visibility:8192},$e={CONCURRENT_MODE_NUMBER:60111,CONCURRENT_MODE_SYMBOL_DESCRIPTION:`react.concurrent_mode`,CONCURRENT_MODE_SYMBOL_STRING:`Symbol(react.concurrent_mode)`,DEPRECATED_ASYNC_MODE_SYMBOL_DESCRIPTION:`react.async_mode`,DEPRECATED_ASYNC_MODE_SYMBOL_STRING:`Symbol(react.async_mode)`,ELEMENT_SYMBOL_STRING:`Symbol(react.transitional.element)`,LEGACY_ELEMENT_SYMBOL_STRING:`Symbol(react.element)`},v=(e=>e)({"16.0.0":{ActivityComponent:-1,CacheComponent:-1,ClassComponent:2,ContextConsumer:12,ContextProvider:13,CoroutineComponent:7,CoroutineHandlerPhase:8,DehydratedSuspenseComponent:-1,ForwardRef:14,Fragment:10,FunctionComponent:1,HostComponent:5,HostHoistable:-1,HostPortal:4,HostRoot:3,HostSingleton:-1,HostText:6,IncompleteClassComponent:-1,IncompleteFunctionComponent:-1,IndeterminateComponent:0,LazyComponent:-1,LegacyHiddenComponent:-1,MemoComponent:-1,Mode:11,OffscreenComponent:-1,Profiler:15,ScopeComponent:-1,SimpleMemoComponent:-1,SuspenseComponent:16,SuspenseListComponent:-1,Throw:-1,TracingMarkerComponent:-1,ViewTransitionComponent:-1,YieldComponent:9},"16.4.3-alpha":{ActivityComponent:-1,CacheComponent:-1,ClassComponent:2,ContextConsumer:11,ContextProvider:12,CoroutineComponent:-1,CoroutineHandlerPhase:-1,DehydratedSuspenseComponent:-1,ForwardRef:13,Fragment:9,FunctionComponent:0,HostComponent:7,HostHoistable:-1,HostPortal:6,HostRoot:5,HostSingleton:-1,HostText:8,IncompleteClassComponent:-1,IncompleteFunctionComponent:-1,IndeterminateComponent:4,LazyComponent:-1,LegacyHiddenComponent:-1,MemoComponent:-1,Mode:10,OffscreenComponent:-1,Profiler:15,ScopeComponent:-1,SimpleMemoComponent:-1,SuspenseComponent:16,SuspenseListComponent:-1,Throw:-1,TracingMarkerComponent:-1,ViewTransitionComponent:-1,YieldComponent:-1},"16.6.0-beta.0":{ActivityComponent:-1,CacheComponent:-1,ClassComponent:1,ContextConsumer:9,ContextProvider:10,CoroutineComponent:-1,CoroutineHandlerPhase:-1,DehydratedSuspenseComponent:18,ForwardRef:11,Fragment:7,FunctionComponent:0,HostComponent:5,HostHoistable:-1,HostPortal:4,HostRoot:3,HostSingleton:-1,HostText:6,IncompleteClassComponent:17,IncompleteFunctionComponent:-1,IndeterminateComponent:2,LazyComponent:16,LegacyHiddenComponent:-1,MemoComponent:14,Mode:8,OffscreenComponent:-1,Profiler:12,ScopeComponent:-1,SimpleMemoComponent:15,SuspenseComponent:13,SuspenseListComponent:19,Throw:-1,TracingMarkerComponent:-1,ViewTransitionComponent:-1,YieldComponent:-1},"17.0.0-alpha":{ActivityComponent:-1,CacheComponent:-1,ClassComponent:1,ContextConsumer:9,ContextProvider:10,CoroutineComponent:-1,CoroutineHandlerPhase:-1,DehydratedSuspenseComponent:18,ForwardRef:11,Fragment:7,FunctionComponent:0,HostComponent:5,HostHoistable:-1,HostPortal:4,HostRoot:3,HostSingleton:-1,HostText:6,IncompleteClassComponent:17,IncompleteFunctionComponent:-1,IndeterminateComponent:2,LazyComponent:16,LegacyHiddenComponent:24,MemoComponent:14,Mode:8,OffscreenComponent:23,Profiler:12,ScopeComponent:21,SimpleMemoComponent:15,SuspenseComponent:13,SuspenseListComponent:19,Throw:-1,TracingMarkerComponent:-1,ViewTransitionComponent:-1,YieldComponent:-1},"17.0.2":{ActivityComponent:31,CacheComponent:24,ClassComponent:1,ContextConsumer:9,ContextProvider:10,CoroutineComponent:-1,CoroutineHandlerPhase:-1,DehydratedSuspenseComponent:18,ForwardRef:11,Fragment:7,FunctionComponent:0,HostComponent:5,HostHoistable:26,HostPortal:4,HostRoot:3,HostSingleton:27,HostText:6,IncompleteClassComponent:17,IncompleteFunctionComponent:28,IndeterminateComponent:2,LazyComponent:16,LegacyHiddenComponent:23,MemoComponent:14,Mode:8,OffscreenComponent:22,Profiler:12,ScopeComponent:21,SimpleMemoComponent:15,SuspenseComponent:13,SuspenseListComponent:19,Throw:29,TracingMarkerComponent:25,ViewTransitionComponent:30,YieldComponent:-1}}),et=[{isMinimumExcluded:!0,minimumVersion:`17.0.1`,workTags:v[`17.0.2`]},{isMinimumExcluded:!1,minimumVersion:`17.0.0-alpha`,workTags:v[`17.0.0-alpha`]},{isMinimumExcluded:!1,minimumVersion:`16.6.0-beta.0`,workTags:v[`16.6.0-beta.0`]},{isMinimumExcluded:!1,minimumVersion:`16.4.3-alpha`,workTags:v[`16.4.3-alpha`]}],tt=v[`17.0.2`],nt=e=>{if(e===void 0)return tt;for(let t of et){let n=Qe(e,t.minimumVersion);if(n===null)return tt;if(n===1||n===0&&!t.isMinimumExcluded)return t.workTags}return v[`16.0.0`]},rt=nt(),it=new WeakMap,at=e=>e.startsWith(`0.0.0-`)?rt:nt(e),ot=e=>{let t=e?.reconcilerVersion;return t&&qe(t)?at(t):e?.version?at(e.version):rt},st=(e,t)=>{let n=ot(t);it.set(e,n),e.alternate&&it.set(e.alternate,n)},y=e=>{let t=it.get(e);if(t)return t;let n=[e],r=e;for(;r.return;)r=r.return,n.push(r);let i=it.get(r)??rt;for(let e of n)it.set(e,i),e.alternate&&it.set(e.alternate,i);return i};_.Placement|_.Update|_.ChildDeletion|_.ContentReset|_.Hydrating|_.Visibility|_.Snapshot;var ct=class extends Error{constructor(e,t){super(e,{cause:t}),this.name=`BippyError`}},lt=class extends ct{constructor(e,t){super(e,t),this.name=`BippyHookInspectionError`}},ut=class extends lt{constructor(e,t){super(e,t),this.name=`BippyUnsupportedHookError`}},dt=class extends ct{constructor(e,t){super(e,t),this.name=`BippySourceMapError`}};const ft=e=>typeof e==`function`,pt=e=>{let t=`displayName`in e?e.displayName:null;if(typeof t==`string`&&t)return t;let n=`name`in e?e.name:null;return typeof n==`string`&&n?n:null},b=e=>typeof e==`object`&&!!e&&`tag`in e&&`stateNode`in e&&`return`in e&&`child`in e&&`sibling`in e&&`flags`in e,mt=e=>typeof e==`object`&&!!e&&`current`in e&&b(e.current),ht=e=>{let t=y(e);switch(e.tag){case t.HostComponent:case t.HostText:case t.HostHoistable:case t.HostSingleton:return!0;default:return!1}},gt=e=>{let t=y(e);switch(e.tag){case t.ClassComponent:case t.ForwardRef:case t.FunctionComponent:case t.MemoComponent:case t.SimpleMemoComponent:return!0;default:return!1}},_t=e=>{let t=e.memoizedProps,n=e.alternate?.memoizedProps||{},r=e.flags??e.effectTag??0,i=y(e);switch(e.tag){case i.ClassComponent:case i.ContextConsumer:case i.ForwardRef:case i.FunctionComponent:case i.MemoComponent:case i.SimpleMemoComponent:return(r&_.PerformedWork)===_.PerformedWork;default:return!e.alternate||n!==t||e.alternate.memoizedState!==e.memoizedState||e.alternate.ref!==e.ref}},vt=e=>{let t=y(e);switch(e.tag){case t.DehydratedSuspenseComponent:return!0;case t.Fragment:case t.HostText:case t.LegacyHiddenComponent:case t.OffscreenComponent:return!0;case t.HostRoot:return!1;default:{let t=typeof e.type==`object`&&e.type!==null?e.type.$$typeof:e.type;if(typeof t==`symbol`)return t.description===$e.CONCURRENT_MODE_SYMBOL_DESCRIPTION||t.description===$e.DEPRECATED_ASYNC_MODE_SYMBOL_DESCRIPTION;switch(t){case $e.CONCURRENT_MODE_NUMBER:case $e.CONCURRENT_MODE_SYMBOL_STRING:case $e.DEPRECATED_ASYNC_MODE_SYMBOL_STRING:return!0;default:return!1}}}};function yt(e,t,n=!1){if(!e)return null;let r=t(e);return bt(r)?Promise.resolve(r).then(r=>r===!0?e:xt(e,t,n)):r===!0?e:xt(e,t,n)}const bt=e=>(typeof e==`object`||typeof e==`function`)&&e!==null&&`then`in e&&typeof e.then==`function`,xt=(e,t,n)=>St(n?e.return:e.child,t,n),St=(e,t,n)=>{if(!e)return null;let r=n?null:e.sibling,i=yt(e,t,n);return bt(i)?Promise.resolve(i).then(e=>e??St(r,t,n)):i??St(r,t,n)},Ct=e=>ft(e)?e:typeof e!=`object`||!e?null:Ct(Reflect.get(e,`type`)??Reflect.get(e,`render`)),wt=e=>{if(typeof e==`string`)return e;if(typeof e!=`function`&&typeof e!=`object`||e===null)return null;let t=pt(e);if(t)return t;let n=Ct(e);return n?pt(n):null},Tt=()=>{let e=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__;return!!e?._instrumentationIsActive||Me(e)||Ne(e)},x=new Set,Et=new WeakMap,Dt=e=>{let t=e.alternate;if(!t)return e;let n=e;for(;n.return;)n=n.return;if(mt(n.stateNode)){let r=yt(n.stateNode.current,n=>{if(n===e||n===t)return!0});if(r)return r}if(t.actualStartTime&&e.actualStartTime)return t.actualStartTime>e.actualStartTime?t:e;for(let n of x){let r=yt(n.current,n=>{if(n===e||n===t)return!0});if(r)return r}return e};let Ot=0;const kt=new WeakMap,At=(e,t=Ot++)=>{kt.set(e,t),Number.isSafeInteger(t)&&t>=Ot&&(Ot=t+1)},jt=e=>{let t=kt.get(e);return t===void 0&&e.alternate&&(t=kt.get(e.alternate)),t===void 0&&(t=Ot++,At(e,t)),t},S=(e,t,n)=>{let r=t;for(;r!==null;){if(jt(r),!vt(r)&&_t(r)&&e(r,`mount`),r.tag===y(r).SuspenseComponent)if(r.memoizedState!==null){let t=r.child,n=t?t.sibling:null;if(n){let t=n.child;t!==null&&S(e,t,!1)}}else{let t=r.child?.child??null;t!==null&&S(e,t,!1)}else r.child!==null&&S(e,r.child,!0);r=n?r.sibling:null}},Mt=(e,t,n)=>{if(jt(t),!n)return;jt(n);let r=t.tag===y(t).SuspenseComponent;!vt(t)&&_t(t)&&e(t,`update`);let i=r&&n.memoizedState!==null,a=r&&t.memoizedState!==null;if(i&&a){let r=t.child?.sibling??null,i=n.child?.sibling??null;r!==null&&i!==null&&Mt(e,r,i)}else if(i&&!a){let n=t.child;n!==null&&S(e,n,!0)}else if(!i&&a){Pt(e,n);let r=t.child?.sibling??null;r!==null&&S(e,r,!0)}else if(t.child!==n.child){let n=t.child;for(;n;)n.alternate?Mt(e,n,n.alternate):S(e,n,!1),n=n.sibling}},Nt=(e,t)=>{(t.tag===y(t).HostRoot||!vt(t))&&e(t,`unmount`)},Pt=(e,t)=>{let n=t.tag===y(t).SuspenseComponent&&t.memoizedState!==null,r=t.child;for(n&&(r=(t.child?.sibling??null)?.child??null);r!==null;)r.return!==null&&(Nt(e,r),Pt(e,r)),r=r.sibling},C=new Set,w=new WeakMap;let Ft=!1;const It=e=>{let t=w.get(e)??{};if(w.set(e,t),!t.onCommitFiberRoot||e.onCommitFiberRoot!==t.onCommitFiberRoot){let n=e.onCommitFiberRoot,r=(t,i,a,o)=>{if(n&&n.call(e,t,i,a,o),w.get(e)?.onCommitFiberRoot!==r)return;st(i.current,e.renderers.get(t));let s=i.current.memoizedState;s===null||s!==void 0&&(s.element===null||s.element===void 0)?(x.delete(i),Et.delete(i)):(x.add(i),Et.set(i,t));for(let{options:e}of C)e.onCommitFiberRoot&&e.onCommitFiberRoot(t,i,a,o)};t.onCommitFiberRoot=r,e.onCommitFiberRoot=r}if(!t.onCommitFiberUnmount||e.onCommitFiberUnmount!==t.onCommitFiberUnmount){let n=e.onCommitFiberUnmount,r=(t,i)=>{if(st(i,e.renderers.get(t)),n&&n.call(e,t,i),w.get(e)?.onCommitFiberUnmount===r)for(let{options:e}of C)e.onCommitFiberUnmount&&e.onCommitFiberUnmount(t,i)};t.onCommitFiberUnmount=r,e.onCommitFiberUnmount=r}if(!t.onPostCommitFiberRoot||e.onPostCommitFiberRoot!==t.onPostCommitFiberRoot){let n=e.onPostCommitFiberRoot,r=(t,i)=>{if(n&&n.call(e,t,i),w.get(e)?.onPostCommitFiberRoot===r)for(let{options:e}of C)e.onPostCommitFiberRoot&&e.onPostCommitFiberRoot(t,i)};t.onPostCommitFiberRoot=r,e.onPostCommitFiberRoot=r}if(!t.onScheduleFiberRoot||e.onScheduleFiberRoot!==t.onScheduleFiberRoot){let n=e.onScheduleFiberRoot,r=(t,i,a)=>{if(n&&n.call(e,t,i,a),w.get(e)?.onScheduleFiberRoot===r)for(let{options:e}of C)e.onScheduleFiberRoot&&e.onScheduleFiberRoot(t,i,a)};t.onScheduleFiberRoot=r,e.onScheduleFiberRoot=r}},Lt=e=>{Ft||=(ze(It),!0),It(e)};try{We()&&Lt(g())}catch{}const Rt=e=>{let t=g(e.onActive);t._instrumentationSource=e.name??De,Lt(t);let n={options:e};return C.add(n),Ae(()=>{e.onActive&&Pe.delete(e.onActive),C.delete(n)})},zt=new Set,Bt=e=>e.startsWith(`__reactContainer$`)||e.startsWith(`__reactInternalInstance$`)||e.startsWith(`__reactFiber`),Vt=e=>{let t=Reflect.get(e,`_reactRootContainer`);if(typeof t!=`object`||!t)return null;let n=Reflect.get(t,`_internalRoot`);if(typeof n!=`object`||!n)return null;let r=Reflect.get(n,`current`);if(typeof r!=`object`||!r)return null;let i=Reflect.get(r,`child`);return b(i)?i:null},Ht=e=>{let t=Reflect.get(e,`__internalInstanceHandle`)??Reflect.get(e,`_internalInstanceHandle`);return b(t)?t:null},Ut=e=>{if(typeof e!=`object`||!e)return e;let t=Reflect.get(e,`canonical`);if(typeof t==`object`&&t){let e=Reflect.get(t,`publicInstance`);if(typeof e==`object`&&e)return e}let n=Reflect.get(e,`_nativeTag`);return typeof n==`number`?n:e},Wt=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){let t=Vt(e);if(t)return t;let n=Ht(e);if(n)return n;for(let t of zt){let n=Reflect.get(e,t);if(b(n))return n}for(let t of Object.keys(e))if(Bt(t)){zt.add(t);let n=Reflect.get(e,t);if(b(n))return n}}if(e!=null&&(typeof e==`object`||typeof e==`number`))for(let t of x){let n=yt(t.current,t=>ht(t)&&Ut(t.stateNode)===e);if(n)return n}return null};Reflect.get(c,`useSyncExternalStore`);const Gt=new WeakMap,Kt=(e,t)=>{Gt.set(e,t)},T=e=>Gt.get(e)??null,qt=e=>T(e)?.getFiber()??Wt(e);let Jt=new WeakMap,Yt=new WeakMap;const Xt=()=>{Jt=new WeakMap,Yt=new WeakMap},Zt=(e,t,n)=>{let r=Yt.get(e);if(r&&n-r.timestamp<200)return r.borderRadius;let i=(t??we(e)).borderRadius||`0px`;return Yt.set(e,{borderRadius:i,timestamp:n}),i},Qt=e=>{let t=performance.now(),n=Jt.get(e);if(n&&t-n.timestamp<16)return n.bounds;let r=T(e);if(r){let n=r.getBounds();return Jt.set(e,{bounds:n,timestamp:t}),n}let i=e.getBoundingClientRect(),a=Ce(e.ownerDocument.defaultView,i.left,i.top),o={borderRadius:Ee(Zt(e,null,t),a.scaleX,a.scaleY),height:i.height*a.scaleY,width:i.width*a.scaleX,x:a.x,y:a.y};return Jt.set(e,{bounds:o,timestamp:t}),o},$t=e=>{let t=e.ownerDocument?.defaultView;return!!(t&&e instanceof t.ShadowRoot)};var E=class extends Error{constructor(e,t){super(e,t),this.name=`ReactGrabError`}},D=class extends E{constructor(e,t){super(e,{cause:t}),this.name=`RecoverableError`}},en=class extends E{constructor(e){super(`Failed to freeze page`,{cause:e}),this.name=`FreezeError`}},tn=class extends D{constructor(e,t,n){super(`Failed to open source file "${e}"`,n),this.name=`OpenFileError`,this.filePath=e,this.lineNumber=t}},nn=class extends D{constructor(e,t,n){super(`Plugin hook "${t}" failed for "${e}"`,n),this.name=`PluginHookError`,this.pluginName=e,this.hookName=t}},rn=class extends D{constructor(e,t){super(`Plugin cleanup failed for "${e}"`,t),this.name=`PluginCleanupError`,this.pluginName=e}},an=class extends D{constructor(e,t){super(`Plugin setup failed for "${e}"`,t),this.name=`PluginSetupError`,this.pluginName=e}},on=class extends D{constructor(e,t){super(`Action "${e}" failed`,t),this.name=`ContextMenuActionError`,this.actionId=e}},sn=class extends D{constructor(e,t){super(`Action "${e}" enabled check failed`,t),this.name=`ContextMenuActionEnabledError`,this.actionId=e}},cn=class extends E{constructor(){super(`Can't generate CSS selector for non-element node type.`),this.name=`NonElementNodeError`}},ln=class extends E{constructor(e){super(`Timeout: Can't find a unique selector after ${e}ms`),this.name=`SelectorTimeoutError`,this.timeoutMs=e}},un=class extends E{constructor(){super(`Selector was not found.`),this.name=`SelectorNotFoundError`}},dn=class extends E{constructor(){super(`Failed to copy`),this.name=`CopyFailedError`}};const fn=e=>T(e)?.getTagName()??(e.tagName||``).toLowerCase(),pn=new WeakMap,mn=(e=document)=>{let t=pn.get(e);if(t!==void 0)return t;let n=e.querySelector(`script[nonce], style[nonce]`),r=n?.nonce||n?.getAttribute(`nonce`)||null;return r&&pn.set(e,r),r},hn=[[`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`,``]],gn=e=>{for(let[t,n]of hn)e.setAttribute(t,n);e.setAttribute(`data-testid`,`react-grab-overlay`),e.classList.add(`ph-no-capture`)},_n=e=>typeof e==`object`&&!!e&&`nodeType`in e&&e.nodeType===9,O=e=>{if(e.assignedSlot)return e.assignedSlot;if(e.parentElement)return e.parentElement;let t=e.getRootNode();return $t(t)?t.host:_n(t)?Se(t.defaultView):null},vn=(e,t)=>{let n=T(e)?.hostElement??e;for(;n;){if(n===t)return!0;n=O(n)}return!1};let yn=null;const bn=e=>{yn=e},xn=()=>yn,k=e=>yn?e?vn(e,yn):!1:!0,Sn=e=>e,Cn=e=>e.replace(/&/g,`&amp;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`),wn=typeof window<`u`,Tn=e=>0,En=e=>{},Dn=wn?(Object.getOwnPropertyDescriptor(Window.prototype,`requestAnimationFrame`)?.value??window.requestAnimationFrame).bind(window):Tn,On=wn?(Object.getOwnPropertyDescriptor(Window.prototype,`cancelAnimationFrame`)?.value??window.cancelAnimationFrame).bind(window):En,kn=()=>wn?new Promise(e=>Dn(()=>e())):Promise.resolve(),An=(e,t)=>{let n=t?.componentName??`div`,r={version:`0.2.0-dev.1c5343a`,content:e,entries:t?.entries??[{tagName:t?.tagName,componentName:n,content:e,commentText:t?.commentText}],timestamp:Date.now()},i=t=>{t.preventDefault(),t.clipboardData?.setData(`text/plain`,e),t.clipboardData?.setData(`text/html`,`<meta charset='utf-8'><pre><code>${Cn(e)}</code></pre>`),t.clipboardData?.setData(`application/x-react-grab`,JSON.stringify(r))},a=document.createElement(`textarea`);document.addEventListener(`copy`,i);try{return a.value=e,a.style.position=`fixed`,a.style.left=`-9999px`,a.ariaHidden=`true`,document.body.appendChild(a),a.select(),typeof document.execCommand==`function`?document.execCommand(`copy`):!1}finally{document.removeEventListener(`copy`,i),a.remove()}},A=e=>{try{return e.contentDocument}catch{return null}},jn=(e,t,n)=>{let r=e.getBoundingClientRect(),i=be(e),a=xe(r.width,i.width),o=xe(r.height,i.height);return{x:(t-r.left)/a-i.contentOffsetX,y:(n-r.top)/o-i.contentOffsetY}},Mn=(e,t,n)=>{let r=e.elementFromPoint(t,n);for(;r;){let e=r.shadowRoot?.elementFromPoint(t,n);if(e&&e!==r){r=e;continue}if(m(r)){let e=A(r);if(!e)return r;let i=jn(r,t,n);return Mn(e,i.x,i.y)??r}return r}return null},Nn=(e,t)=>Mn(document,e,t),Pn=e=>{let t=e;for(;t;){if(t.hasAttribute(`data-react-grab-ignore`))return!0;t=O(t)}return!1},Fn=typeof Element<`u`&&typeof Element.prototype.checkVisibility==`function`,In={checkOpacity:!0,checkVisibilityCSS:!0,opacityProperty:!0,visibilityProperty:!0},Ln={checkVisibilityCSS:!0,visibilityProperty:!0},Rn=(e,t)=>{if(Fn&&!t)return e.checkVisibility(In)?!0:e.checkVisibility(Ln)?we(e).opacity!==`0`:!1;let n=t??we(e);return n.display!==`none`&&n.visibility!==`hidden`&&n.opacity!==`0`},zn=e=>{let t=fn(e);return t===`html`||t===`body`},Bn=[`data-react-grab`,`data-react-grab-demo`],Vn=e=>Bn.some(t=>e.hasAttribute(t)),Hn=e=>{if(Vn(e)||e.hasAttribute(`data-react-grab-hit-test-shield`))return!0;let t=e.getRootNode();return $t(t)&&Vn(t.host)},Un=e=>{let t=parseInt(e.zIndex,10);return e.pointerEvents===`none`&&e.position===`fixed`&&!isNaN(t)&&t>=2147483600},Wn=e=>{let t=e.backgroundColor;return t===`transparent`||t===`rgba(0, 0, 0, 0)`},Gn=e=>{let t=e.position;if(t!==`fixed`&&t!==`absolute`)return!1;if(Wn(e)||parseFloat(e.opacity)<.1)return!0;let n=parseInt(e.zIndex,10);return!isNaN(n)&&n>1e3};let Kn=new WeakMap;const qn=()=>{Kn=new WeakMap},Jn=e=>{let t=T(e);if(t)return t.isConnected();if(zn(e)||Hn(e)||Pn(e))return!1;let n=performance.now(),r=Kn.get(e);if(r&&n-r.timestamp<50)return r.isVisible;if(!Rn(e))return Kn.set(e,{isVisible:!1,timestamp:n}),!1;if(e.clientWidth/(e.ownerDocument.defaultView?.innerWidth??window.innerWidth)>=.9&&e.clientHeight/(e.ownerDocument.defaultView?.innerHeight??window.innerHeight)>=.9){let t=we(e);if(Un(t)||Gn(t))return!1}return Kn.set(e,{isVisible:!0,timestamp:n}),!0},Yn=e=>{if(e===`transparent`)return!0;let t=e.lastIndexOf(`/`);if(t>=0)return Number.parseFloat(e.slice(t+1))===0;if(!e.startsWith(`rgba(`))return!1;let n=e.lastIndexOf(`,`);return n>=0&&Number.parseFloat(e.slice(n+1))===0},Xn=e=>{let t=e.ownerDocument.defaultView?.getComputedStyle?.(e);if(!t)return!1;let n=t.backgroundClip!==`text`&&(t.backgroundImage!==`none`||!Yn(t.backgroundColor)),r=t.borderTopStyle!==`none`&&t.borderTopWidth!==`0px`||t.borderRightStyle!==`none`&&t.borderRightWidth!==`0px`||t.borderBottomStyle!==`none`&&t.borderBottomWidth!==`0px`||t.borderLeftStyle!==`none`&&t.borderLeftWidth!==`0px`;return n||r||t.boxShadow!==`none`||t.outlineStyle!==`none`},Zn=new Set([`A`,`AUDIO`,`BUTTON`,`CANVAS`,`DETAILS`,`EMBED`,`IFRAME`,`IMG`,`INPUT`,`METER`,`OBJECT`,`OPTION`,`PROGRESS`,`SELECT`,`SUMMARY`,`SVG`,`TEXTAREA`,`VIDEO`]),Qn=new Set([`button`,`checkbox`,`combobox`,`gridcell`,`link`,`listbox`,`menuitem`,`menuitemcheckbox`,`menuitemradio`,`option`,`radio`,`scrollbar`,`searchbox`,`slider`,`spinbutton`,`switch`,`tab`,`textbox`,`treeitem`]),$n=new Set(`A.ABBR.B.BDI.BDO.BR.CITE.CODE.DATA.DEL.DFN.EM.I.INS.KBD.MARK.Q.S.SAMP.SMALL.SPAN.STRONG.SUB.SUP.TIME.U.VAR.WBR`.split(`.`));let er=new WeakMap,tr=new WeakMap;const nr=()=>{er=new WeakMap,tr=new WeakMap},j=(e,t,n)=>(er.set(e,t),tr.set(e,n),t),rr=e=>Zn.has(e.tagName)||Qn.has(e.getAttribute(`role`)??``)||p(e)&&e.isContentEditable,ir=e=>{let t=performance.now(),n=tr.get(e);if(n!==void 0&&t-n<16)return er.get(e)??null;if(rr(e)||e.childNodes.length>64)return j(e,null,t);let r=[],i=[],a=0;for(let t=e.childNodes.length-1;t>=0;--t)i.push(e.childNodes[t]);for(;i.length>0;){if(a+=1,a>64)return j(e,null,t);let n=i.pop();if(n){if(n.nodeType===Node.TEXT_NODE){if(n.textContent?.trim()&&(r.push(n),r.length>32))return j(e,null,t);continue}if(!ve(n)||!$n.has(n.tagName)||a+i.length+n.childNodes.length>64)return j(e,null,t);for(let e=n.childNodes.length-1;e>=0;--e)i.push(n.childNodes[e])}}if(r.length===0||Xn(e))return j(e,null,t);try{let n=e.ownerDocument.createRange(),i=Ce(e.ownerDocument.defaultView,0,0),a=[];for(let o of r){n.selectNodeContents(o);let r=n.getClientRects();if(a.length+r.length>64)return j(e,null,t);for(let e=0;e<r.length;e+=1){let t=r[e],n=t.width*i.scaleX,o=t.height*i.scaleY;!Number.isFinite(t.left)||!Number.isFinite(t.top)||!Number.isFinite(n)||!Number.isFinite(o)||n<=0||o<=0||a.push({borderRadius:`0px`,height:o,width:n,x:i.x+t.left*i.scaleX,y:i.y+t.top*i.scaleY})}}return j(e,a.length>0?a:null,t)}catch{return j(e,null,t)}},ar=(e,t,n)=>{let r=ir(e);if(!r)return!0;for(let e of r)if(t>=e.x&&t<=e.x+e.width&&n>=e.y&&n<=e.y+e.height)return!0;return!1},or=(e,t,n,r,i)=>{let a=!0;for(let o of e.elementsFromPoint(t,n)){if(Pn(o)&&(a=!1),!k(o))continue;let s=o.shadowRoot;if(a&&s&&s!==e){let e=or(s,t,n,r,i);if(e)return e}if(a&&m(o)){let e=A(o);if(e){let a=jn(o,t,n),s=or(e,a.x,a.y,r,i);if(s)return s}}if(Jn(o)&&ar(o,r,i))return o}return null},sr=(e,t)=>or(document,e,t,e,t),cr=(e,t,n,r)=>{let i=e.elementsFromPoint(t,n),a=!0;for(let o of i){if(Pn(o)&&(a=!1),a&&o.shadowRoot&&o.shadowRoot!==e&&cr(o.shadowRoot,t,n,r),a&&m(o)){let e=A(o);if(e){let i=jn(o,t,n);cr(e,i.x,i.y,r)}}r.add(o)}},lr=(e,t)=>{let n=new Set;return cr(document,e,t,n),[...n]},ur=(e,t,n)=>{let r=[],i=e;for(;i&&i!==window;){let e=Se(i);if(!e||!m(e))break;r.push(e),i=e.ownerDocument.defaultView}let a=t,o=n;for(let e=r.length-1;e>=0;--e){let t=jn(r[e],a,o);a=t.x,o=t.y}return{x:a,y:o}},dr=`http://www.w3.org/2000/svg`,fr=e=>{if(e.localName===`svg`)return e;let t=e,n=e.parentElement;for(;n?.namespaceURI===dr&&(t=n,n.localName!==`svg`);)n=n.parentElement;return t},pr=(e,t,n,r)=>{if(typeof e.caretPositionFromPoint==`function`){let i=e.caretPositionFromPoint(t,n,{shadowRoots:r?[r]:[]});if(i)return i.offsetNode}return typeof e.caretRangeFromPoint==`function`?e.caretRangeFromPoint(t,n)?.startContainer??null:null},mr=(e,t,n)=>{if(zn(e))return null;let r=e.ownerDocument,i=r.defaultView;if(!i)return null;let a=ur(i,t,n),o=e.getRootNode(),s=pr(r,a.x,a.y,$t(o)?o:null);if(!s)return null;let c=ve(s)?s:s.parentElement;if(!c||c===e)return null;let l=e.namespaceURI===dr;return!(l?fr(e):e).contains(c)||!l&&we(c).pointerEvents!==`none`?null:c},hr=(e,t,n)=>e>=n.left&&e<=n.right&&t>=n.top&&t<=n.bottom,gr=new Set([`auto`,`scroll`,`overlay`]),_r=(e,t,n,r,i)=>gr.has(e)?i<0?t>1:t+n<r-1:!1,vr=(e,t,n)=>{let r=e;for(;r;){let e=n!==0&&r.scrollHeight>r.clientHeight,i=t!==0&&r.scrollWidth>r.clientWidth;if(e||i){let a=getComputedStyle(r);if(e&&_r(a.overflowY,r.scrollTop,r.clientHeight,r.scrollHeight,n)||i&&_r(a.overflowX,r.scrollLeft,r.clientWidth,r.scrollWidth,t))return r}r=O(r)}return null},yr=(e,t)=>{let n=[];for(let r of e){let e=Math.max(r.left,t.left),i=Math.max(r.top,t.top),a=Math.min(r.right,t.right),o=Math.min(r.bottom,t.bottom);if(a<=e||o<=i){n.push(r);continue}i>r.top&&n.push({left:r.left,top:r.top,right:r.right,bottom:i}),o<r.bottom&&n.push({left:r.left,top:o,right:r.right,bottom:r.bottom}),e>r.left&&n.push({left:r.left,top:i,right:e,bottom:o}),a<r.right&&n.push({left:a,top:i,right:r.right,bottom:o})}return n},br=`full-viewport`,xr=(e,t)=>{let n=e.createElement(`div`);return n.setAttribute(me,``),n.style.position=`absolute`,n.style.pointerEvents=t,n.style.background=`transparent`,n},Sr=e=>{let t=[];for(let n of e){let e=n.getBoundingClientRect();e.width<=0||e.height<=0||t.push({left:e.left,top:e.top,right:e.right,bottom:e.bottom})}return t},Cr=e=>{let t={...e[0]};for(let n of e)n.left<t.left&&(t.left=n.left),n.top<t.top&&(t.top=n.top),n.right>t.right&&(t.right=n.right),n.bottom>t.bottom&&(t.bottom=n.bottom);return t},wr=(e,t)=>{let n=e.createElement(`div`);n.setAttribute(me,``),n.setAttribute(`aria-hidden`,`true`),gn(n),n.style.cssText=`position:fixed;inset:0;pointer-events:none;contain:strict;background:transparent;z-index:2147483644;`;let r=!1,i=()=>r?`none`:`auto`,a=xr(e,i());a.style.inset=`0`,n.appendChild(a),(e.body??e.documentElement).appendChild(n);let o=[a],s=br,c=e=>{if(r===e)return;r=e;let t=i();for(let e of o)e.style.pointerEvents=t},l=(t,n)=>{let i=r;c(!0);let a=Mn(e,t,n);return c(i),a},u=t=>{let n=t.deltaX,r=t.deltaY;if(t.deltaMode===WheelEvent.DOM_DELTA_LINE?(n*=16,r*=16):t.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(n*=e.documentElement.clientWidth,r*=e.documentElement.clientHeight),n===0&&r===0)return;let i=l(t.clientX,t.clientY);if(!i)return;let a=vr(i,n,r);a&&(t.preventDefault(),a.scrollBy({left:n,top:r,behavior:`instant`}))};return n.addEventListener(`wheel`,u,{passive:!1}),{openForHitTest:()=>{c(!0)},closeAfterHitTest:()=>{c(!1)},refreshHoles:()=>{let r=Sr(t());if(r.length===0){if(s===br)return;s=br,a.style.pointerEvents=i(),o=[a],n.replaceChildren(a);return}let c={left:0,top:0,right:e.documentElement.clientWidth,bottom:e.documentElement.clientHeight},l=yr([c],r[0]);for(let e=1;e<r.length;e++)l=yr(l,r[e]);l.length>12&&(l=yr([c],Cr(r)));let u=l.map(e=>`${e.left},${e.top},${e.right},${e.bottom}`).join(`|`);if(u===s)return;s=u;let d=i();o=l.map(t=>{let n=xr(e,d);return n.style.left=`${t.left}px`,n.style.top=`${t.top}px`,n.style.width=`${t.right-t.left}px`,n.style.height=`${t.bottom-t.top}px`,n}),n.replaceChildren(...o)},remove:()=>{n.removeEventListener(`wheel`,u),n.remove()}}},Tr=(e,t,n=document)=>{let r=n.createElement(`style`);r.setAttribute(e,``);let i=mn(n);return i&&(r.nonce=i),gn(r),r.textContent=t,n.head.appendChild(r),r},Er=`html, body { pointer-events: auto !important; }
27
+ const Ge=/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-([0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*))?(?:\+[0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*)?$/,Ke=/^\d+$/,qe=e=>Je(e)!==null,Je=e=>{let t=Ge.exec(e);if(!t)return null;let n=t[4]?.split(`.`)??[];return n.some(e=>Ke.test(e)&&e.length>1&&e.startsWith(`0`))?null:{major:t[1],minor:t[2],patch:t[3],prerelease:n}},Ye=(e,t)=>e.length===t.length?e===t?0:e<t?-1:1:e.length<t.length?-1:1,Xe=(e,t)=>{let n=Ke.test(e),r=Ke.test(t);return n&&r?Ye(e,t):n===r?e===t?0:e<t?-1:1:n?-1:1},Ze=(e,t)=>{if(e.length===0||t.length===0)return e.length===t.length?0:e.length===0?1:-1;let n=Math.max(e.length,t.length);for(let r=0;r<n;r++){let n=e[r],i=t[r];if(n===void 0||i===void 0)return n===void 0?-1:1;let a=Xe(n,i);if(a!==0)return a}return 0},Qe=(e,t)=>{let n=Je(e),r=Je(t);if(!n||!r)return null;let i=Ye(n.major,r.major);if(i!==0)return i;let a=Ye(n.minor,r.minor);if(a!==0)return a;let o=Ye(n.patch,r.patch);return o===0?Ze(n.prerelease,r.prerelease):o},_={ChildDeletion:16,Cloned:8,ContentReset:32,Hydrating:4096,PerformedWork:1,Placement:2,Snapshot:1024,Update:4,Visibility:8192},$e={CONCURRENT_MODE_NUMBER:60111,CONCURRENT_MODE_SYMBOL_DESCRIPTION:`react.concurrent_mode`,CONCURRENT_MODE_SYMBOL_STRING:`Symbol(react.concurrent_mode)`,DEPRECATED_ASYNC_MODE_SYMBOL_DESCRIPTION:`react.async_mode`,DEPRECATED_ASYNC_MODE_SYMBOL_STRING:`Symbol(react.async_mode)`,ELEMENT_SYMBOL_STRING:`Symbol(react.transitional.element)`,LEGACY_ELEMENT_SYMBOL_STRING:`Symbol(react.element)`},v=(e=>e)({"16.0.0":{ActivityComponent:-1,CacheComponent:-1,ClassComponent:2,ContextConsumer:12,ContextProvider:13,CoroutineComponent:7,CoroutineHandlerPhase:8,DehydratedSuspenseComponent:-1,ForwardRef:14,Fragment:10,FunctionComponent:1,HostComponent:5,HostHoistable:-1,HostPortal:4,HostRoot:3,HostSingleton:-1,HostText:6,IncompleteClassComponent:-1,IncompleteFunctionComponent:-1,IndeterminateComponent:0,LazyComponent:-1,LegacyHiddenComponent:-1,MemoComponent:-1,Mode:11,OffscreenComponent:-1,Profiler:15,ScopeComponent:-1,SimpleMemoComponent:-1,SuspenseComponent:16,SuspenseListComponent:-1,Throw:-1,TracingMarkerComponent:-1,ViewTransitionComponent:-1,YieldComponent:9},"16.4.3-alpha":{ActivityComponent:-1,CacheComponent:-1,ClassComponent:2,ContextConsumer:11,ContextProvider:12,CoroutineComponent:-1,CoroutineHandlerPhase:-1,DehydratedSuspenseComponent:-1,ForwardRef:13,Fragment:9,FunctionComponent:0,HostComponent:7,HostHoistable:-1,HostPortal:6,HostRoot:5,HostSingleton:-1,HostText:8,IncompleteClassComponent:-1,IncompleteFunctionComponent:-1,IndeterminateComponent:4,LazyComponent:-1,LegacyHiddenComponent:-1,MemoComponent:-1,Mode:10,OffscreenComponent:-1,Profiler:15,ScopeComponent:-1,SimpleMemoComponent:-1,SuspenseComponent:16,SuspenseListComponent:-1,Throw:-1,TracingMarkerComponent:-1,ViewTransitionComponent:-1,YieldComponent:-1},"16.6.0-beta.0":{ActivityComponent:-1,CacheComponent:-1,ClassComponent:1,ContextConsumer:9,ContextProvider:10,CoroutineComponent:-1,CoroutineHandlerPhase:-1,DehydratedSuspenseComponent:18,ForwardRef:11,Fragment:7,FunctionComponent:0,HostComponent:5,HostHoistable:-1,HostPortal:4,HostRoot:3,HostSingleton:-1,HostText:6,IncompleteClassComponent:17,IncompleteFunctionComponent:-1,IndeterminateComponent:2,LazyComponent:16,LegacyHiddenComponent:-1,MemoComponent:14,Mode:8,OffscreenComponent:-1,Profiler:12,ScopeComponent:-1,SimpleMemoComponent:15,SuspenseComponent:13,SuspenseListComponent:19,Throw:-1,TracingMarkerComponent:-1,ViewTransitionComponent:-1,YieldComponent:-1},"17.0.0-alpha":{ActivityComponent:-1,CacheComponent:-1,ClassComponent:1,ContextConsumer:9,ContextProvider:10,CoroutineComponent:-1,CoroutineHandlerPhase:-1,DehydratedSuspenseComponent:18,ForwardRef:11,Fragment:7,FunctionComponent:0,HostComponent:5,HostHoistable:-1,HostPortal:4,HostRoot:3,HostSingleton:-1,HostText:6,IncompleteClassComponent:17,IncompleteFunctionComponent:-1,IndeterminateComponent:2,LazyComponent:16,LegacyHiddenComponent:24,MemoComponent:14,Mode:8,OffscreenComponent:23,Profiler:12,ScopeComponent:21,SimpleMemoComponent:15,SuspenseComponent:13,SuspenseListComponent:19,Throw:-1,TracingMarkerComponent:-1,ViewTransitionComponent:-1,YieldComponent:-1},"17.0.2":{ActivityComponent:31,CacheComponent:24,ClassComponent:1,ContextConsumer:9,ContextProvider:10,CoroutineComponent:-1,CoroutineHandlerPhase:-1,DehydratedSuspenseComponent:18,ForwardRef:11,Fragment:7,FunctionComponent:0,HostComponent:5,HostHoistable:26,HostPortal:4,HostRoot:3,HostSingleton:27,HostText:6,IncompleteClassComponent:17,IncompleteFunctionComponent:28,IndeterminateComponent:2,LazyComponent:16,LegacyHiddenComponent:23,MemoComponent:14,Mode:8,OffscreenComponent:22,Profiler:12,ScopeComponent:21,SimpleMemoComponent:15,SuspenseComponent:13,SuspenseListComponent:19,Throw:29,TracingMarkerComponent:25,ViewTransitionComponent:30,YieldComponent:-1}}),et=[{isMinimumExcluded:!0,minimumVersion:`17.0.1`,workTags:v[`17.0.2`]},{isMinimumExcluded:!1,minimumVersion:`17.0.0-alpha`,workTags:v[`17.0.0-alpha`]},{isMinimumExcluded:!1,minimumVersion:`16.6.0-beta.0`,workTags:v[`16.6.0-beta.0`]},{isMinimumExcluded:!1,minimumVersion:`16.4.3-alpha`,workTags:v[`16.4.3-alpha`]}],tt=v[`17.0.2`],nt=e=>{if(e===void 0)return tt;for(let t of et){let n=Qe(e,t.minimumVersion);if(n===null)return tt;if(n===1||n===0&&!t.isMinimumExcluded)return t.workTags}return v[`16.0.0`]},rt=nt(),it=new WeakMap,at=e=>e.startsWith(`0.0.0-`)?rt:nt(e),ot=e=>{let t=e?.reconcilerVersion;return t&&qe(t)?at(t):e?.version?at(e.version):rt},st=(e,t)=>{let n=ot(t);it.set(e,n),e.alternate&&it.set(e.alternate,n)},y=e=>{let t=it.get(e);if(t)return t;let n=[e],r=e;for(;r.return;)r=r.return,n.push(r);let i=it.get(r)??rt;for(let e of n)it.set(e,i),e.alternate&&it.set(e.alternate,i);return i};_.Placement|_.Update|_.ChildDeletion|_.ContentReset|_.Hydrating|_.Visibility|_.Snapshot;var ct=class extends Error{constructor(e,t){super(e,{cause:t}),this.name=`BippyError`}},lt=class extends ct{constructor(e,t){super(e,t),this.name=`BippyHookInspectionError`}},ut=class extends lt{constructor(e,t){super(e,t),this.name=`BippyUnsupportedHookError`}},dt=class extends ct{constructor(e,t){super(e,t),this.name=`BippySourceMapError`}};const ft=e=>typeof e==`function`,pt=e=>{let t=`displayName`in e?e.displayName:null;if(typeof t==`string`&&t)return t;let n=`name`in e?e.name:null;return typeof n==`string`&&n?n:null},b=e=>typeof e==`object`&&!!e&&`tag`in e&&`stateNode`in e&&`return`in e&&`child`in e&&`sibling`in e&&`flags`in e,mt=e=>typeof e==`object`&&!!e&&`current`in e&&b(e.current),ht=e=>{let t=y(e);switch(e.tag){case t.HostComponent:case t.HostText:case t.HostHoistable:case t.HostSingleton:return!0;default:return!1}},gt=e=>{let t=y(e);switch(e.tag){case t.ClassComponent:case t.ForwardRef:case t.FunctionComponent:case t.MemoComponent:case t.SimpleMemoComponent:return!0;default:return!1}},_t=e=>{let t=e.memoizedProps,n=e.alternate?.memoizedProps||{},r=e.flags??e.effectTag??0,i=y(e);switch(e.tag){case i.ClassComponent:case i.ContextConsumer:case i.ForwardRef:case i.FunctionComponent:case i.MemoComponent:case i.SimpleMemoComponent:return(r&_.PerformedWork)===_.PerformedWork;default:return!e.alternate||n!==t||e.alternate.memoizedState!==e.memoizedState||e.alternate.ref!==e.ref}},vt=e=>{let t=y(e);switch(e.tag){case t.DehydratedSuspenseComponent:return!0;case t.Fragment:case t.HostText:case t.LegacyHiddenComponent:case t.OffscreenComponent:return!0;case t.HostRoot:return!1;default:{let t=typeof e.type==`object`&&e.type!==null?e.type.$$typeof:e.type;if(typeof t==`symbol`)return t.description===$e.CONCURRENT_MODE_SYMBOL_DESCRIPTION||t.description===$e.DEPRECATED_ASYNC_MODE_SYMBOL_DESCRIPTION;switch(t){case $e.CONCURRENT_MODE_NUMBER:case $e.CONCURRENT_MODE_SYMBOL_STRING:case $e.DEPRECATED_ASYNC_MODE_SYMBOL_STRING:return!0;default:return!1}}}};function yt(e,t,n=!1){if(!e)return null;let r=t(e);return bt(r)?Promise.resolve(r).then(r=>r===!0?e:xt(e,t,n)):r===!0?e:xt(e,t,n)}const bt=e=>(typeof e==`object`||typeof e==`function`)&&e!==null&&`then`in e&&typeof e.then==`function`,xt=(e,t,n)=>St(n?e.return:e.child,t,n),St=(e,t,n)=>{if(!e)return null;let r=n?null:e.sibling,i=yt(e,t,n);return bt(i)?Promise.resolve(i).then(e=>e??St(r,t,n)):i??St(r,t,n)},Ct=e=>ft(e)?e:typeof e!=`object`||!e?null:Ct(Reflect.get(e,`type`)??Reflect.get(e,`render`)),wt=e=>{if(typeof e==`string`)return e;if(typeof e!=`function`&&typeof e!=`object`||e===null)return null;let t=pt(e);if(t)return t;let n=Ct(e);return n?pt(n):null},Tt=()=>{let e=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__;return!!e?._instrumentationIsActive||Me(e)||Ne(e)},x=new Set,Et=new WeakMap,Dt=e=>{let t=e.alternate;if(!t)return e;let n=e;for(;n.return;)n=n.return;if(mt(n.stateNode)){let r=yt(n.stateNode.current,n=>{if(n===e||n===t)return!0});if(r)return r}if(t.actualStartTime&&e.actualStartTime)return t.actualStartTime>e.actualStartTime?t:e;for(let n of x){let r=yt(n.current,n=>{if(n===e||n===t)return!0});if(r)return r}return e};let Ot=0;const kt=new WeakMap,At=(e,t=Ot++)=>{kt.set(e,t),Number.isSafeInteger(t)&&t>=Ot&&(Ot=t+1)},jt=e=>{let t=kt.get(e);return t===void 0&&e.alternate&&(t=kt.get(e.alternate)),t===void 0&&(t=Ot++,At(e,t)),t},S=(e,t,n)=>{let r=t;for(;r!==null;){if(jt(r),!vt(r)&&_t(r)&&e(r,`mount`),r.tag===y(r).SuspenseComponent)if(r.memoizedState!==null){let t=r.child,n=t?t.sibling:null;if(n){let t=n.child;t!==null&&S(e,t,!1)}}else{let t=r.child?.child??null;t!==null&&S(e,t,!1)}else r.child!==null&&S(e,r.child,!0);r=n?r.sibling:null}},Mt=(e,t,n)=>{if(jt(t),!n)return;jt(n);let r=t.tag===y(t).SuspenseComponent;!vt(t)&&_t(t)&&e(t,`update`);let i=r&&n.memoizedState!==null,a=r&&t.memoizedState!==null;if(i&&a){let r=t.child?.sibling??null,i=n.child?.sibling??null;r!==null&&i!==null&&Mt(e,r,i)}else if(i&&!a){let n=t.child;n!==null&&S(e,n,!0)}else if(!i&&a){Pt(e,n);let r=t.child?.sibling??null;r!==null&&S(e,r,!0)}else if(t.child!==n.child){let n=t.child;for(;n;)n.alternate?Mt(e,n,n.alternate):S(e,n,!1),n=n.sibling}},Nt=(e,t)=>{(t.tag===y(t).HostRoot||!vt(t))&&e(t,`unmount`)},Pt=(e,t)=>{let n=t.tag===y(t).SuspenseComponent&&t.memoizedState!==null,r=t.child;for(n&&(r=(t.child?.sibling??null)?.child??null);r!==null;)r.return!==null&&(Nt(e,r),Pt(e,r)),r=r.sibling},C=new Set,w=new WeakMap;let Ft=!1;const It=e=>{let t=w.get(e)??{};if(w.set(e,t),!t.onCommitFiberRoot||e.onCommitFiberRoot!==t.onCommitFiberRoot){let n=e.onCommitFiberRoot,r=(t,i,a,o)=>{if(n&&n.call(e,t,i,a,o),w.get(e)?.onCommitFiberRoot!==r)return;st(i.current,e.renderers.get(t));let s=i.current.memoizedState;s===null||s!==void 0&&(s.element===null||s.element===void 0)?(x.delete(i),Et.delete(i)):(x.add(i),Et.set(i,t));for(let{options:e}of C)e.onCommitFiberRoot&&e.onCommitFiberRoot(t,i,a,o)};t.onCommitFiberRoot=r,e.onCommitFiberRoot=r}if(!t.onCommitFiberUnmount||e.onCommitFiberUnmount!==t.onCommitFiberUnmount){let n=e.onCommitFiberUnmount,r=(t,i)=>{if(st(i,e.renderers.get(t)),n&&n.call(e,t,i),w.get(e)?.onCommitFiberUnmount===r)for(let{options:e}of C)e.onCommitFiberUnmount&&e.onCommitFiberUnmount(t,i)};t.onCommitFiberUnmount=r,e.onCommitFiberUnmount=r}if(!t.onPostCommitFiberRoot||e.onPostCommitFiberRoot!==t.onPostCommitFiberRoot){let n=e.onPostCommitFiberRoot,r=(t,i)=>{if(n&&n.call(e,t,i),w.get(e)?.onPostCommitFiberRoot===r)for(let{options:e}of C)e.onPostCommitFiberRoot&&e.onPostCommitFiberRoot(t,i)};t.onPostCommitFiberRoot=r,e.onPostCommitFiberRoot=r}if(!t.onScheduleFiberRoot||e.onScheduleFiberRoot!==t.onScheduleFiberRoot){let n=e.onScheduleFiberRoot,r=(t,i,a)=>{if(n&&n.call(e,t,i,a),w.get(e)?.onScheduleFiberRoot===r)for(let{options:e}of C)e.onScheduleFiberRoot&&e.onScheduleFiberRoot(t,i,a)};t.onScheduleFiberRoot=r,e.onScheduleFiberRoot=r}},Lt=e=>{Ft||=(ze(It),!0),It(e)};try{We()&&Lt(g())}catch{}const Rt=e=>{let t=g(e.onActive);t._instrumentationSource=e.name??De,Lt(t);let n={options:e};return C.add(n),Ae(()=>{e.onActive&&Pe.delete(e.onActive),C.delete(n)})},zt=new Set,Bt=e=>e.startsWith(`__reactContainer$`)||e.startsWith(`__reactInternalInstance$`)||e.startsWith(`__reactFiber`),Vt=e=>{let t=Reflect.get(e,`_reactRootContainer`);if(typeof t!=`object`||!t)return null;let n=Reflect.get(t,`_internalRoot`);if(typeof n!=`object`||!n)return null;let r=Reflect.get(n,`current`);if(typeof r!=`object`||!r)return null;let i=Reflect.get(r,`child`);return b(i)?i:null},Ht=e=>{let t=Reflect.get(e,`__internalInstanceHandle`)??Reflect.get(e,`_internalInstanceHandle`);return b(t)?t:null},Ut=e=>{if(typeof e!=`object`||!e)return e;let t=Reflect.get(e,`canonical`);if(typeof t==`object`&&t){let e=Reflect.get(t,`publicInstance`);if(typeof e==`object`&&e)return e}let n=Reflect.get(e,`_nativeTag`);return typeof n==`number`?n:e},Wt=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){let t=Vt(e);if(t)return t;let n=Ht(e);if(n)return n;for(let t of zt){let n=Reflect.get(e,t);if(b(n))return n}for(let t of Object.keys(e))if(Bt(t)){zt.add(t);let n=Reflect.get(e,t);if(b(n))return n}}if(e!=null&&(typeof e==`object`||typeof e==`number`))for(let t of x){let n=yt(t.current,t=>ht(t)&&Ut(t.stateNode)===e);if(n)return n}return null};Reflect.get(c,`useSyncExternalStore`);const Gt=new WeakMap,Kt=(e,t)=>{Gt.set(e,t)},T=e=>Gt.get(e)??null,qt=e=>T(e)?.getFiber()??Wt(e);let Jt=new WeakMap,Yt=new WeakMap;const Xt=()=>{Jt=new WeakMap,Yt=new WeakMap},Zt=(e,t,n)=>{let r=Yt.get(e);if(r&&n-r.timestamp<200)return r.borderRadius;let i=(t??we(e)).borderRadius||`0px`;return Yt.set(e,{borderRadius:i,timestamp:n}),i},Qt=e=>{let t=performance.now(),n=Jt.get(e);if(n&&t-n.timestamp<16)return n.bounds;let r=T(e);if(r){let n=r.getBounds();return Jt.set(e,{bounds:n,timestamp:t}),n}let i=e.getBoundingClientRect(),a=Ce(e.ownerDocument.defaultView,i.left,i.top),o={borderRadius:Ee(Zt(e,null,t),a.scaleX,a.scaleY),height:i.height*a.scaleY,width:i.width*a.scaleX,x:a.x,y:a.y};return Jt.set(e,{bounds:o,timestamp:t}),o},$t=e=>{let t=e.ownerDocument?.defaultView;return!!(t&&e instanceof t.ShadowRoot)};var E=class extends Error{constructor(e,t){super(e,t),this.name=`ReactGrabError`}},D=class extends E{constructor(e,t){super(e,{cause:t}),this.name=`RecoverableError`}},en=class extends E{constructor(e){super(`Failed to freeze page`,{cause:e}),this.name=`FreezeError`}},tn=class extends D{constructor(e,t,n){super(`Failed to open source file "${e}"`,n),this.name=`OpenFileError`,this.filePath=e,this.lineNumber=t}},nn=class extends D{constructor(e,t,n){super(`Plugin hook "${t}" failed for "${e}"`,n),this.name=`PluginHookError`,this.pluginName=e,this.hookName=t}},rn=class extends D{constructor(e,t){super(`Plugin cleanup failed for "${e}"`,t),this.name=`PluginCleanupError`,this.pluginName=e}},an=class extends D{constructor(e,t){super(`Plugin setup failed for "${e}"`,t),this.name=`PluginSetupError`,this.pluginName=e}},on=class extends D{constructor(e,t){super(`Action "${e}" failed`,t),this.name=`ContextMenuActionError`,this.actionId=e}},sn=class extends D{constructor(e,t){super(`Action "${e}" enabled check failed`,t),this.name=`ContextMenuActionEnabledError`,this.actionId=e}},cn=class extends E{constructor(){super(`Can't generate CSS selector for non-element node type.`),this.name=`NonElementNodeError`}},ln=class extends E{constructor(e){super(`Timeout: Can't find a unique selector after ${e}ms`),this.name=`SelectorTimeoutError`,this.timeoutMs=e}},un=class extends E{constructor(){super(`Selector was not found.`),this.name=`SelectorNotFoundError`}},dn=class extends E{constructor(){super(`Failed to copy`),this.name=`CopyFailedError`}};const fn=e=>T(e)?.getTagName()??(e.tagName||``).toLowerCase(),pn=new WeakMap,mn=(e=document)=>{let t=pn.get(e);if(t!==void 0)return t;let n=e.querySelector(`script[nonce], style[nonce]`),r=n?.nonce||n?.getAttribute(`nonce`)||null;return r&&pn.set(e,r),r},hn=[[`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`,``]],gn=e=>{for(let[t,n]of hn)e.setAttribute(t,n);e.setAttribute(`data-testid`,`react-grab-overlay`),e.classList.add(`ph-no-capture`)},_n=e=>typeof e==`object`&&!!e&&`nodeType`in e&&e.nodeType===9,O=e=>{if(e.assignedSlot)return e.assignedSlot;if(e.parentElement)return e.parentElement;let t=e.getRootNode();return $t(t)?t.host:_n(t)?Se(t.defaultView):null},vn=(e,t)=>{let n=T(e)?.hostElement??e;for(;n;){if(n===t)return!0;n=O(n)}return!1};let yn=null;const bn=e=>{yn=e},xn=()=>yn,k=e=>yn?e?vn(e,yn):!1:!0,Sn=e=>e,Cn=e=>e.replace(/&/g,`&amp;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`),wn=typeof window<`u`,Tn=e=>0,En=e=>{},Dn=wn?(Object.getOwnPropertyDescriptor(Window.prototype,`requestAnimationFrame`)?.value??window.requestAnimationFrame).bind(window):Tn,On=wn?(Object.getOwnPropertyDescriptor(Window.prototype,`cancelAnimationFrame`)?.value??window.cancelAnimationFrame).bind(window):En,kn=()=>wn?new Promise(e=>Dn(()=>e())):Promise.resolve(),An=(e,t)=>{let n=t?.componentName??`div`,r={version:`0.2.0-dev.9b69eda`,content:e,entries:t?.entries??[{tagName:t?.tagName,componentName:n,content:e,commentText:t?.commentText}],timestamp:Date.now()},i=t=>{t.preventDefault(),t.clipboardData?.setData(`text/plain`,e),t.clipboardData?.setData(`text/html`,`<meta charset='utf-8'><pre><code>${Cn(e)}</code></pre>`),t.clipboardData?.setData(`application/x-react-grab`,JSON.stringify(r))},a=document.createElement(`textarea`);document.addEventListener(`copy`,i);try{return a.value=e,a.style.position=`fixed`,a.style.left=`-9999px`,a.ariaHidden=`true`,document.body.appendChild(a),a.select(),typeof document.execCommand==`function`?document.execCommand(`copy`):!1}finally{document.removeEventListener(`copy`,i),a.remove()}},A=e=>{try{return e.contentDocument}catch{return null}},jn=(e,t,n)=>{let r=e.getBoundingClientRect(),i=be(e),a=xe(r.width,i.width),o=xe(r.height,i.height);return{x:(t-r.left)/a-i.contentOffsetX,y:(n-r.top)/o-i.contentOffsetY}},Mn=(e,t,n)=>{let r=e.elementFromPoint(t,n);for(;r;){let e=r.shadowRoot?.elementFromPoint(t,n);if(e&&e!==r){r=e;continue}if(m(r)){let e=A(r);if(!e)return r;let i=jn(r,t,n);return Mn(e,i.x,i.y)??r}return r}return null},Nn=(e,t)=>Mn(document,e,t),Pn=e=>{let t=e;for(;t;){if(t.hasAttribute(`data-react-grab-ignore`))return!0;t=O(t)}return!1},Fn=typeof Element<`u`&&typeof Element.prototype.checkVisibility==`function`,In={checkOpacity:!0,checkVisibilityCSS:!0,opacityProperty:!0,visibilityProperty:!0},Ln={checkVisibilityCSS:!0,visibilityProperty:!0},Rn=(e,t)=>{if(Fn&&!t)return e.checkVisibility(In)?!0:e.checkVisibility(Ln)?we(e).opacity!==`0`:!1;let n=t??we(e);return n.display!==`none`&&n.visibility!==`hidden`&&n.opacity!==`0`},zn=e=>{let t=fn(e);return t===`html`||t===`body`},Bn=[`data-react-grab`,`data-react-grab-demo`],Vn=e=>Bn.some(t=>e.hasAttribute(t)),Hn=e=>{if(Vn(e)||e.hasAttribute(`data-react-grab-hit-test-shield`))return!0;let t=e.getRootNode();return $t(t)&&Vn(t.host)},Un=e=>{let t=parseInt(e.zIndex,10);return e.pointerEvents===`none`&&e.position===`fixed`&&!isNaN(t)&&t>=2147483600},Wn=e=>{let t=e.backgroundColor;return t===`transparent`||t===`rgba(0, 0, 0, 0)`},Gn=e=>{let t=e.position;if(t!==`fixed`&&t!==`absolute`)return!1;if(Wn(e)||parseFloat(e.opacity)<.1)return!0;let n=parseInt(e.zIndex,10);return!isNaN(n)&&n>1e3};let Kn=new WeakMap;const qn=()=>{Kn=new WeakMap},Jn=e=>{let t=T(e);if(t)return t.isConnected();if(zn(e)||Hn(e)||Pn(e))return!1;let n=performance.now(),r=Kn.get(e);if(r&&n-r.timestamp<50)return r.isVisible;if(!Rn(e))return Kn.set(e,{isVisible:!1,timestamp:n}),!1;if(e.clientWidth/(e.ownerDocument.defaultView?.innerWidth??window.innerWidth)>=.9&&e.clientHeight/(e.ownerDocument.defaultView?.innerHeight??window.innerHeight)>=.9){let t=we(e);if(Un(t)||Gn(t))return!1}return Kn.set(e,{isVisible:!0,timestamp:n}),!0},Yn=e=>{if(e===`transparent`)return!0;let t=e.lastIndexOf(`/`);if(t>=0)return Number.parseFloat(e.slice(t+1))===0;if(!e.startsWith(`rgba(`))return!1;let n=e.lastIndexOf(`,`);return n>=0&&Number.parseFloat(e.slice(n+1))===0},Xn=e=>{let t=e.ownerDocument.defaultView?.getComputedStyle?.(e);if(!t)return!1;let n=t.backgroundClip!==`text`&&(t.backgroundImage!==`none`||!Yn(t.backgroundColor)),r=t.borderTopStyle!==`none`&&t.borderTopWidth!==`0px`||t.borderRightStyle!==`none`&&t.borderRightWidth!==`0px`||t.borderBottomStyle!==`none`&&t.borderBottomWidth!==`0px`||t.borderLeftStyle!==`none`&&t.borderLeftWidth!==`0px`;return n||r||t.boxShadow!==`none`||t.outlineStyle!==`none`},Zn=new Set([`A`,`AUDIO`,`BUTTON`,`CANVAS`,`DETAILS`,`EMBED`,`IFRAME`,`IMG`,`INPUT`,`METER`,`OBJECT`,`OPTION`,`PROGRESS`,`SELECT`,`SUMMARY`,`SVG`,`TEXTAREA`,`VIDEO`]),Qn=new Set([`button`,`checkbox`,`combobox`,`gridcell`,`link`,`listbox`,`menuitem`,`menuitemcheckbox`,`menuitemradio`,`option`,`radio`,`scrollbar`,`searchbox`,`slider`,`spinbutton`,`switch`,`tab`,`textbox`,`treeitem`]),$n=new Set(`A.ABBR.B.BDI.BDO.BR.CITE.CODE.DATA.DEL.DFN.EM.I.INS.KBD.MARK.Q.S.SAMP.SMALL.SPAN.STRONG.SUB.SUP.TIME.U.VAR.WBR`.split(`.`));let er=new WeakMap,tr=new WeakMap;const nr=()=>{er=new WeakMap,tr=new WeakMap},j=(e,t,n)=>(er.set(e,t),tr.set(e,n),t),rr=e=>Zn.has(e.tagName)||Qn.has(e.getAttribute(`role`)??``)||p(e)&&e.isContentEditable,ir=e=>{let t=performance.now(),n=tr.get(e);if(n!==void 0&&t-n<16)return er.get(e)??null;if(rr(e)||e.childNodes.length>64)return j(e,null,t);let r=[],i=[],a=0;for(let t=e.childNodes.length-1;t>=0;--t)i.push(e.childNodes[t]);for(;i.length>0;){if(a+=1,a>64)return j(e,null,t);let n=i.pop();if(n){if(n.nodeType===Node.TEXT_NODE){if(n.textContent?.trim()&&(r.push(n),r.length>32))return j(e,null,t);continue}if(!ve(n)||!$n.has(n.tagName)||a+i.length+n.childNodes.length>64)return j(e,null,t);for(let e=n.childNodes.length-1;e>=0;--e)i.push(n.childNodes[e])}}if(r.length===0||Xn(e))return j(e,null,t);try{let n=e.ownerDocument.createRange(),i=Ce(e.ownerDocument.defaultView,0,0),a=[];for(let o of r){n.selectNodeContents(o);let r=n.getClientRects();if(a.length+r.length>64)return j(e,null,t);for(let e=0;e<r.length;e+=1){let t=r[e],n=t.width*i.scaleX,o=t.height*i.scaleY;!Number.isFinite(t.left)||!Number.isFinite(t.top)||!Number.isFinite(n)||!Number.isFinite(o)||n<=0||o<=0||a.push({borderRadius:`0px`,height:o,width:n,x:i.x+t.left*i.scaleX,y:i.y+t.top*i.scaleY})}}return j(e,a.length>0?a:null,t)}catch{return j(e,null,t)}},ar=(e,t,n)=>{let r=ir(e);if(!r)return!0;for(let e of r)if(t>=e.x&&t<=e.x+e.width&&n>=e.y&&n<=e.y+e.height)return!0;return!1},or=(e,t,n,r,i)=>{let a=!0;for(let o of e.elementsFromPoint(t,n)){if(Pn(o)&&(a=!1),!k(o))continue;let s=o.shadowRoot;if(a&&s&&s!==e){let e=or(s,t,n,r,i);if(e)return e}if(a&&m(o)){let e=A(o);if(e){let a=jn(o,t,n),s=or(e,a.x,a.y,r,i);if(s)return s}}if(Jn(o)&&ar(o,r,i))return o}return null},sr=(e,t)=>or(document,e,t,e,t),cr=(e,t,n,r)=>{let i=e.elementsFromPoint(t,n),a=!0;for(let o of i){if(Pn(o)&&(a=!1),a&&o.shadowRoot&&o.shadowRoot!==e&&cr(o.shadowRoot,t,n,r),a&&m(o)){let e=A(o);if(e){let i=jn(o,t,n);cr(e,i.x,i.y,r)}}r.add(o)}},lr=(e,t)=>{let n=new Set;return cr(document,e,t,n),[...n]},ur=(e,t,n)=>{let r=[],i=e;for(;i&&i!==window;){let e=Se(i);if(!e||!m(e))break;r.push(e),i=e.ownerDocument.defaultView}let a=t,o=n;for(let e=r.length-1;e>=0;--e){let t=jn(r[e],a,o);a=t.x,o=t.y}return{x:a,y:o}},dr=`http://www.w3.org/2000/svg`,fr=e=>{if(e.localName===`svg`)return e;let t=e,n=e.parentElement;for(;n?.namespaceURI===dr&&(t=n,n.localName!==`svg`);)n=n.parentElement;return t},pr=(e,t,n,r)=>{if(typeof e.caretPositionFromPoint==`function`){let i=e.caretPositionFromPoint(t,n,{shadowRoots:r?[r]:[]});if(i)return i.offsetNode}return typeof e.caretRangeFromPoint==`function`?e.caretRangeFromPoint(t,n)?.startContainer??null:null},mr=(e,t,n)=>{if(zn(e))return null;let r=e.ownerDocument,i=r.defaultView;if(!i)return null;let a=ur(i,t,n),o=e.getRootNode(),s=pr(r,a.x,a.y,$t(o)?o:null);if(!s)return null;let c=ve(s)?s:s.parentElement;if(!c||c===e)return null;let l=e.namespaceURI===dr;return!(l?fr(e):e).contains(c)||!l&&we(c).pointerEvents!==`none`?null:c},hr=(e,t,n)=>e>=n.left&&e<=n.right&&t>=n.top&&t<=n.bottom,gr=new Set([`auto`,`scroll`,`overlay`]),_r=(e,t,n,r,i)=>gr.has(e)?i<0?t>1:t+n<r-1:!1,vr=(e,t,n)=>{let r=e;for(;r;){let e=n!==0&&r.scrollHeight>r.clientHeight,i=t!==0&&r.scrollWidth>r.clientWidth;if(e||i){let a=getComputedStyle(r);if(e&&_r(a.overflowY,r.scrollTop,r.clientHeight,r.scrollHeight,n)||i&&_r(a.overflowX,r.scrollLeft,r.clientWidth,r.scrollWidth,t))return r}r=O(r)}return null},yr=(e,t)=>{let n=[];for(let r of e){let e=Math.max(r.left,t.left),i=Math.max(r.top,t.top),a=Math.min(r.right,t.right),o=Math.min(r.bottom,t.bottom);if(a<=e||o<=i){n.push(r);continue}i>r.top&&n.push({left:r.left,top:r.top,right:r.right,bottom:i}),o<r.bottom&&n.push({left:r.left,top:o,right:r.right,bottom:r.bottom}),e>r.left&&n.push({left:r.left,top:i,right:e,bottom:o}),a<r.right&&n.push({left:a,top:i,right:r.right,bottom:o})}return n},br=`full-viewport`,xr=(e,t)=>{let n=e.createElement(`div`);return n.setAttribute(me,``),n.style.position=`absolute`,n.style.pointerEvents=t,n.style.background=`transparent`,n},Sr=e=>{let t=[];for(let n of e){let e=n.getBoundingClientRect();e.width<=0||e.height<=0||t.push({left:e.left,top:e.top,right:e.right,bottom:e.bottom})}return t},Cr=e=>{let t={...e[0]};for(let n of e)n.left<t.left&&(t.left=n.left),n.top<t.top&&(t.top=n.top),n.right>t.right&&(t.right=n.right),n.bottom>t.bottom&&(t.bottom=n.bottom);return t},wr=(e,t)=>{let n=e.createElement(`div`);n.setAttribute(me,``),n.setAttribute(`aria-hidden`,`true`),gn(n),n.style.cssText=`position:fixed;inset:0;pointer-events:none;contain:strict;background:transparent;z-index:2147483644;`;let r=!1,i=()=>r?`none`:`auto`,a=xr(e,i());a.style.inset=`0`,n.appendChild(a),(e.body??e.documentElement).appendChild(n);let o=[a],s=br,c=e=>{if(r===e)return;r=e;let t=i();for(let e of o)e.style.pointerEvents=t},l=(t,n)=>{let i=r;c(!0);let a=Mn(e,t,n);return c(i),a},u=t=>{let n=t.deltaX,r=t.deltaY;if(t.deltaMode===WheelEvent.DOM_DELTA_LINE?(n*=16,r*=16):t.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(n*=e.documentElement.clientWidth,r*=e.documentElement.clientHeight),n===0&&r===0)return;let i=l(t.clientX,t.clientY);if(!i)return;let a=vr(i,n,r);a&&(t.preventDefault(),a.scrollBy({left:n,top:r,behavior:`instant`}))};return n.addEventListener(`wheel`,u,{passive:!1}),{openForHitTest:()=>{c(!0)},closeAfterHitTest:()=>{c(!1)},refreshHoles:()=>{let r=Sr(t());if(r.length===0){if(s===br)return;s=br,a.style.pointerEvents=i(),o=[a],n.replaceChildren(a);return}let c={left:0,top:0,right:e.documentElement.clientWidth,bottom:e.documentElement.clientHeight},l=yr([c],r[0]);for(let e=1;e<r.length;e++)l=yr(l,r[e]);l.length>12&&(l=yr([c],Cr(r)));let u=l.map(e=>`${e.left},${e.top},${e.right},${e.bottom}`).join(`|`);if(u===s)return;s=u;let d=i();o=l.map(t=>{let n=xr(e,d);return n.style.left=`${t.left}px`,n.style.top=`${t.top}px`,n.style.width=`${t.right-t.left}px`,n.style.height=`${t.bottom-t.top}px`,n}),n.replaceChildren(...o)},remove:()=>{n.removeEventListener(`wheel`,u),n.remove()}}},Tr=(e,t,n=document)=>{let r=n.createElement(`style`);r.setAttribute(e,``);let i=mn(n);return i&&(r.nonce=i),gn(r),r.textContent=t,n.head.appendChild(r),r},Er=`html, body { pointer-events: auto !important; }
28
28
  iframe[${pe}] { pointer-events: auto !important; }`,Dr=new Set,M=new Map;let N=!1,P=0;const Or=e=>{let t=new Set(e.querySelectorAll(`iframe[${pe}]`));for(let n of Dr){let r=Se(n.defaultView);r?.ownerDocument===e&&t.add(r)}return t},kr=e=>{if(M.has(e))return;let t=Tr(`data-react-grab-frozen-pseudo`,Er,e),n=wr(e,()=>Or(e));n.refreshHoles(),P>0&&n.openForHitTest(),M.set(e,{style:t,shield:n})},Ar=e=>{let t=M.get(e);t&&(t.style.remove(),t.shield.remove(),M.delete(e))},jr=()=>N,Mr=e=>(Dr.add(e),N&&(kr(e),Lr()),()=>{Dr.delete(e),Ar(e),Lr()}),Nr=()=>{if(!N){N=!0,P=0,Dr.add(document);for(let e of Dr)kr(e)}},Pr=()=>{if(N){N=!1,P=0;for(let e of[...M.keys()])Ar(e)}},Fr=()=>{if(N&&(P++,!(P>1)))for(let e of M.values())e.shield.openForHitTest()},Ir=()=>{if(!(!N||P===0)&&(P--,!(P>0)))for(let e of M.values())e.shield.closeAfterHitTest()},Lr=()=>{if(N)for(let e of M.values())e.shield.refreshHoles()},F=(e,t)=>{if(e.length!==0)throw e.length===1?e[0]:AggregateError(e,t)},Rr=new Set,I=new Set;let L=!1;const zr=(e,t)=>{if(I.has(e))try{e.unfreeze()}catch(e){t.push(e)}finally{I.delete(e)}},Br=e=>{Rr.add(e);try{L&&e.isConnected()&&(e.freeze(),I.add(e))}catch(t){throw Rr.delete(e),t}return()=>{let t=[];zr(e,t),Rr.delete(e),F(t,`Unregistering renderer freeze failed`)}},Vr=()=>{if(!L){L=!0;try{for(let e of Rr)e.isConnected()&&(e.freeze(),I.add(e))}catch(e){L=!1;let t=[];for(let e of[...I].reverse())zr(e,t);throw t.length===0?e:AggregateError([e,...t],`Rolling back renderer freeze failed`)}}},Hr=()=>{if(!L)return;L=!1;let e=[];for(let t of[...I].reverse())zr(t,e);F(e,`Unfreezing renderers failed`)},Ur=new WeakMap,Wr=new WeakMap,R=new WeakMap,Gr=new WeakMap,Kr=new WeakMap,qr=[`name`,`position`,`rotation`,`scale`,`color`,`visible`,`args`],z=e=>typeof e==`object`&&!!e,Jr=e=>typeof e==`object`&&!!e||typeof e==`function`,B=(e,t)=>typeof e[t]==`function`,V=e=>z(e)&&typeof e.x==`number`&&typeof e.y==`number`&&typeof e.z==`number`&&B(e,`set`)&&B(e,`clone`)&&B(e,`applyMatrix4`)&&B(e,`project`),Yr=e=>z(e)&&B(e,`clone`)&&B(e,`premultiply`),Xr=e=>z(e)&&`boundingBox`in e&&B(e,`computeBoundingBox`),Zr=e=>z(e)&&typeof e.type==`string`&&z(e.props)&&Qr(e.object),Qr=e=>z(e)&&e.isObject3D===!0&&typeof e.uuid==`string`&&typeof e.name==`string`&&typeof e.type==`string`&&typeof e.visible==`boolean`&&Yr(e.matrixWorld)&&B(e,`updateWorldMatrix`),$r=e=>z(e)&&e.isCamera===!0,ei=e=>Qr(e)&&e.isScene===!0&&Array.isArray(e.children),ti=e=>z(e)&&typeof e.tagName==`string`&&e.tagName.toLowerCase()===`canvas`&&B(e,`getContext`),ni=e=>z(e)&&ti(e.domElement),ri=e=>z(e)&&B(e,`set`),ii=e=>z(e)&&B(e,`setFromCamera`)&&B(e,`intersectObjects`),ai=e=>z(e)&&ni(e.gl)&&ei(e.scene)&&$r(e.camera)&&ii(e.raycaster)&&ri(e.pointer),oi=e=>e===`always`||e===`demand`||e===`never`,si=e=>z(e)&&typeof e.elapsedTime==`number`,ci=(e,t)=>{let n=e.getState();if(typeof n.setFrameloop!=`function`)return;let r=si(n.clock)?n.clock.elapsedTime:null;n.setFrameloop(t);let i=e.getState().clock;r!==null&&si(i)&&(i.elapsedTime=r)},li=e=>{if(Gr.has(e))return;let t=null,n=Br({freeze:()=>{let n=R.get(e);if(!n)return;let r=n.getState();if(oi(r.frameloop)&&typeof r.setFrameloop==`function`){let e=r.frameloop;ci(n,`never`),t=()=>ci(n,e)}},isConnected:()=>e.isConnected,unfreeze:()=>{t?.(),t=null}});Gr.set(e,n)},ui=e=>{let t=Gr.get(e);t&&(Gr.delete(e),t())},di=e=>Zr(e.__r3f)?e.__r3f:null,fi=e=>{let t=e.current.stateNode;if(!z(t)||!Jr(t.containerInfo))return null;let n=t.containerInfo,r=Reflect.get(n,`getState`);if(typeof r!=`function`)return null;let i=Reflect.apply(r,n,[]);return ai(i)?()=>{let e=Reflect.apply(r,n,[]);return ai(e)?e:i}:null},pi=e=>{let t=Kr.get(e);t&&(Kr.delete(e),R.get(t.canvas)===t.root&&(R.delete(t.canvas),ui(t.canvas)))},mi=e=>{let t=fi(e);if(!t){pi(e);return}let n=t().gl.domElement;if(!n.isConnected||!e.current.child){pi(e);return}let r=Kr.get(e);r&&r.canvas!==n&&(pi(e),r=void 0),r?(r.root.getState=t,r.root.selectableObjects=null):(r={canvas:n,root:{getState:t,selectableObjects:null}},Kr.set(e,r)),R.set(n,r.root),li(n)};Rt({name:`react-grab-three-selection`,onCommitFiberRoot:(e,t)=>mi(t)});const hi=e=>{let t=e;for(;t;){if(di(t))return t;t=t.parent}return null},gi=e=>{let t=e;for(;t;){let e=di(t);if(e&&typeof e.eventCount==`number`&&e.eventCount>0)return!0;t=t.parent}return!1},_i=(e,t)=>{let n=e;for(;n;){if(n===t)return!0;n=n.parent}return!1},vi=e=>{let t=e;for(;t;){if(!t.visible)return!1;t=t.parent}return!0},yi=e=>!!di(e)&&(Xr(e.geometry)||e.type.toLowerCase()===`sprite`),bi=e=>e.isInstancedMesh!==!0||typeof e.count!=`number`||!Number.isInteger(e.count)||e.count<=0||!e.getMatrixAt?0:e.count,xi=(e,t,n,r)=>{try{let i={object:n};r!==void 0&&(i.instanceId=r);let a=Si(t,n,i);a&&e.push(a)}catch{}},Si=(e,t,n)=>{let r=typeof n.instanceId==`number`&&Number.isInteger(n.instanceId)?n.instanceId:null,i=Ur.get(t);i||(i=new Map,Ur.set(t,i));let a=i.get(r);if(a)return a.canvas=e.gl.domElement,a.intersectionPoint=V(n.point)?n.point:null,a.object=t,a.rootState=e,a.element;let o=di(t),s=o?Wt(o):null;if(o&&!s)return null;let c=(o?.type||t.type||`object-3d`).toLowerCase(),l=e.gl.domElement.ownerDocument.createElement(c),u={canvas:e.gl.domElement,element:l,fiber:s,instance:o,instanceId:r,intersectionPoint:V(n.point)?n.point:null,object:t,rootState:e,tagName:c},d=l.getBoundingClientRect.bind(l);return l.getBoundingClientRect=()=>{let e=Ni(u),t=l.ownerDocument.defaultView?.DOMRect;return t?new t(e.x,e.y,e.width,e.height):d()},Kt(l,{hostElement:u.canvas,supportsDomEditing:!1,getBounds:()=>Ni(u),getFiber:()=>u.fiber?Dt(u.fiber):null,getPreview:()=>Ei(u),getSelector:()=>Di(u),getTagName:()=>u.tagName,isConnected:()=>u.canvas.isConnected&&_i(u.object,u.rootState.scene)}),i.set(r,u),Wr.set(l,u),l},Ci=(e,t,n)=>{if(!ti(e))return e;let r=R.get(e);if(!r)return e;try{let i=r.getState(),a=Qt(e);if(a.width<=0||a.height<=0)return e;let o=(t-a.x)/a.width*2-1,s=-((n-a.y)/a.height)*2+1;if(o<-1||o>1||s<-1||s>1)return e;i.pointer.set(o,s),i.raycaster.setFromCamera(i.pointer,i.camera);let c=i.raycaster.intersectObjects(i.scene.children,!0);for(let e of c){if(!gi(e.object))continue;let t=hi(e.object);if(!t||t.visible===!1)continue;let n=Si(i,t,e);if(n)return n}for(let e of c){let t=hi(e.object);if(!t||t.visible===!1)continue;let n=Si(i,t,e);if(n)return n}}catch{}return e},wi=(e,t)=>{if(!ti(e))return[];let n=R.get(e);if(!n)return[];try{let e=n.getState(),r=t?Wr.get(t):null;if(!n.selectableObjects){let t=[],r=[...e.scene.children];for(let e=0;e<r.length;e+=1){let n=r[e];if(n.children)for(let e of n.children)r.push(e);yi(n)&&t.push(n)}n.selectableObjects=t}let i=[];for(let t of n.selectableObjects){if(!vi(t)||!_i(t,e.scene)||t.isInstancedMesh===!0&&t.count===0)continue;let n=bi(t);if(n>0&&n<=512){for(let r=0;r<n;r+=1)xi(i,e,t,r);continue}if(n>512&&r?.object===t&&r.instanceId!==null){i.push(r.element);continue}xi(i,e,t)}return i}catch{return[]}},Ti=e=>typeof e==`string`?JSON.stringify(e):typeof e==`number`||typeof e==`boolean`?`{${String(e)}}`:Array.isArray(e)&&e.length<=4&&e.every(e=>typeof e==`number`||typeof e==`string`)?`{${JSON.stringify(e)}}`:null,Ei=e=>{let t=e.instance?.props??{},n=[];for(let r of qr){let i=t[r];r===`name`&&i===void 0&&e.object.name&&(i=e.object.name);let a=Ti(i);a&&n.push(`${r}=${a}`)}return e.instanceId!==null&&n.push(`instanceId={${e.instanceId}}`),`<${e.tagName}${n.length>0?` ${n.join(` `)}`:``} />`},Di=e=>{if(e.object.name)return`${e.tagName}[name=${JSON.stringify(e.object.name)}]`;let t=e.instanceId===null?``:`:${e.instanceId}`;return`${e.tagName}[uuid=${JSON.stringify(`${e.object.uuid}${t}`)}]`},Oi=e=>{e.object.updateWorldMatrix(!0,!1);let t=e.object.matrixWorld.clone();if(e.instanceId===null||!e.object.getMatrixAt)return t;let n=e.object.matrixWorld.clone();return e.object.getMatrixAt(e.instanceId,n),n.premultiply(t)},ki=e=>{if(!Xr(e.geometry))return null;if(!e.geometry.boundingBox)try{e.geometry.computeBoundingBox()}catch{return null}let t=e.geometry.boundingBox;return!t||!V(t.min)||!V(t.max)?null:t},Ai=e=>{if(e.isInstancedMesh!==!0||typeof e.computeBoundingBox!=`function`)return null;if(!e.boundingBox)try{e.computeBoundingBox()}catch{return null}let t=e.boundingBox;return!t||!V(t.min)||!V(t.max)?null:t},ji=e=>e.instanceId===null?Ai(e.object)??ki(e.object):ki(e.object),Mi=(e,t)=>{let n=t.x+t.width/2,r=t.y+t.height/2;try{let i=e.intersectionPoint?e.intersectionPoint.clone():V(e.object.position)?e.object.position.clone().set(0,0,0).applyMatrix4(Oi(e)):null;i&&(i.project(e.rootState.camera),Number.isFinite(i.x)&&Number.isFinite(i.y)&&(n=t.x+(i.x+1)/2*t.width,r=t.y+(1-i.y)/2*t.height))}catch{}return{x:n-16/2,y:r-16/2,width:16,height:16,borderRadius:`0px`}},Ni=e=>{let t=Qt(e.canvas);try{let n=ji(e);if(!n)return Mi(e,t);let r=Oi(e),i=[n.min.x,n.max.x],a=[n.min.y,n.max.y],o=[n.min.z,n.max.z],s=1/0,c=1/0,l=-1/0,u=-1/0,d=n.min.clone();for(let n of i)for(let i of a)for(let a of o){if(d.set(n,i,a).applyMatrix4(r).project(e.rootState.camera),!Number.isFinite(d.x)||!Number.isFinite(d.y))continue;let o=t.x+(d.x+1)/2*t.width,f=t.y+(1-d.y)/2*t.height;s=Math.min(s,o),c=Math.min(c,f),l=Math.max(l,o),u=Math.max(u,f)}if(!Number.isFinite(s)||!Number.isFinite(c)||!Number.isFinite(l)||!Number.isFinite(u))return Mi(e,t);let f=Math.max(t.x,s),ee=Math.max(t.y,c),te=Math.min(t.x+t.width,l),ne=Math.min(t.y+t.height,u);return te<=f||ne<=ee?Mi(e,t):{x:f,y:ee,width:te-f,height:ne-ee,borderRadius:`0px`}}catch{return Mi(e,t)}};let H=null,U=null;const Pi=(e,t,n,r)=>{let i=Math.abs(e-n),a=Math.abs(t-r);return i<=2&&a<=2},Fi=(e,t,n)=>{let r=Ci(e,t,n);return Jn(r)&&k(e)&&ar(e,t,n)?r:null},Ii=(e,t)=>{if(!Number.isFinite(e)||!Number.isFinite(t))return[];Fr();try{let n=lr(e,t),r=xn()?n.filter(k):n,i=[],a=new Set,o=!1;for(let n of r){let r=n,s=ar(n,e,t);if(!o){let i=mr(n,e,t);i&&k(i)&&Jn(i)&&ar(i,e,t)?(r=i,s=!0,o=!0):Jn(n)&&s&&(o=!0)}let c=Ci(r,e,t);if(s&&!a.has(c)&&(a.add(c),i.push(c)),r===n)continue;let l=O(r);for(;l&&k(l);){let n=Ci(l,e,t);ar(l,e,t)&&!a.has(n)&&(a.add(n),i.push(n)),l=O(l)}break}return i}finally{Ir()}},Li=(e,t)=>{if(!Number.isFinite(e)||!Number.isFinite(t))return null;let n=performance.now();Fr();try{if(U){let r=U.element,i=n-U.timestamp<16;if(r.isConnected&&i&&hr(e,t,U.bounds)&&!A(r))return r;U=null,H?.element===r&&(H=null)}if(H){let r=Pi(e,t,H.clientX,H.clientY),i=n-H.timestamp<16;if(r&&i){if(!H.preciseHitElement)return H.element;let n=mr(H.preciseHitElement,e,t);if(n){let r=Fi(n,e,t);if(r)return r}return H.usesTextHitTesting?Fi(H.preciseHitElement,e,t)??sr(e,t):H.fallbackElement}}let r=null,i=Nn(e,t),a=i?ir(i)!==null:!1,o=i?mr(i,e,t):null,s=o?Fi(o,e,t):null,c=(i?Fi(i,e,t):null)??sr(e,t);if(r=s??c,r&&m(r)&&!A(r)){let e=Qt(r);U={element:r,timestamp:n,bounds:{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height}}}else U=null;return H={clientX:e,clientY:t,element:r,fallbackElement:c,preciseHitElement:i?.namespaceURI===`http://www.w3.org/2000/svg`||o||a?i:null,usesTextHitTesting:a,timestamp:n},r}finally{Ir()}},Ri=()=>{H=null,U=null},W=e=>{console.warn(`[react-grab]`,e)},zi=(e,t)=>e.length===t.length&&e.every((e,n)=>e===t[n]);let G=!1,K=null,q=!1;const J=new Map;let Bi=-1;const Vi=new WeakSet,Hi=new WeakSet,Ui=new WeakMap,Wi=new Map,Y=new Map,Gi=e=>{if(K===e&&(q=!0),Vi.has(e))return!0;if(!G&&K===e){let t=(Ui.get(e)??0)+1;return Ui.set(e,t),t<4?!1:(Vi.add(e),!0)}return!G||!(`gsapVersions`in window)||!(Error().stack??``).includes(`_tick`)?!1:(Vi.add(e),Hi.add(e),!0)};typeof window<`u`&&(window.requestAnimationFrame=e=>{let t=Gi(e);if(G&&t){let t=Bi--;return J.set(t,e),t}let n=Dn(t=>{if(G&&Gi(e)){let t=Bi--;J.set(t,e),Wi.set(n,t);return}let r=K,i=q;K=e,q=!1;try{e(t)}finally{let t=q;K=r,q=i,!t&&!Hi.has(e)&&(Vi.delete(e),Ui.delete(e))}});return n},window.cancelAnimationFrame=e=>{if(J.has(e)){J.delete(e);return}let t=Y.get(e);if(t!==void 0){On(t.nativeId),Y.delete(e);return}let n=Wi.get(e);if(n!==void 0){J.delete(n),Wi.delete(e);return}On(e)});const Ki=()=>{if(!G){G=!0,J.clear(),Wi.clear();for(let[e,{nativeId:t,callback:n}]of Y)On(t),J.set(e,n);Y.clear()}},qi=()=>{if(G){G=!1;for(let[e,t]of J.entries()){let n=Dn(n=>{Y.delete(e);let r=K,i=q;K=t,q=!1;try{t(n)}finally{let e=q;K=r,q=i,!e&&!Hi.has(t)&&(Vi.delete(t),Ui.delete(t))}});Y.set(e,{nativeId:n,callback:t})}J.clear(),Wi.clear()}},Ji=`
29
29
  [${fe}],
30
30
  [${fe}] * {
@@ -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 { F as Theme, O as ReactGrabAPI, r as StackFrame, x as Options } from "./copy-content-DDha1TvA.js";
9
+ import { F as Theme, O as ReactGrabAPI, r as StackFrame, x as Options } from "./copy-content-DQZZQZP6.js";
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 { F as Theme, O as ReactGrabAPI, r as StackFrame, x as Options } from "./copy-content-CGMz3X7m.cjs";
9
+ import { F as Theme, O as ReactGrabAPI, r as StackFrame, x as Options } from "./copy-content-CAzUtmEY.cjs";
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(`./freeze-updates-DJW5eM-i.cjs`),t=require(`./core-B6ewlEl-.cjs`),n=require(`./open-file-R5hAPZtH.cjs`),r=()=>{if(typeof window>`u`||window.parent===window)return null;try{return window.parent.__REACT_GRAB__??null}catch{return null}};if(typeof window<`u`&&!window.__REACT_GRAB_DISABLED__){let e=window.__REACT_GRAB__??r();e?t.a(e):t.a(t.t()),window.dispatchEvent(new CustomEvent(`react-grab:init`,{detail:t.r()}))}exports.DEFAULT_THEME=t.l,exports.FreezeError=e.K,exports.OpenFileError=e.J,exports.PluginSetupError=e.Z,exports.ReactGrabError=e.Q,exports.commentPlugin=t.c,exports.formatElementInfo=n.n,exports.generateSnippet=t.n,exports.getGlobalApi=t.r,exports.getStack=n.a,exports.init=t.t,exports.isInstrumentationActive=e.gt,exports.openPlugin=t.s,exports.registerPlugin=t.i,exports.setGlobalApi=t.a,exports.unregisterPlugin=t.o;
9
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./freeze-updates-C5GYFxGi.cjs`),t=require(`./core-OKLC8Qri.cjs`),n=require(`./open-file-Bg05P_6c.cjs`),r=()=>{if(typeof window>`u`||window.parent===window)return null;try{return window.parent.__REACT_GRAB__??null}catch{return null}};if(typeof window<`u`&&!window.__REACT_GRAB_DISABLED__){let e=window.__REACT_GRAB__??r();e?t.a(e):t.a(t.t()),window.dispatchEvent(new CustomEvent(`react-grab:init`,{detail:t.r()}))}exports.DEFAULT_THEME=t.l,exports.FreezeError=e.K,exports.OpenFileError=e.J,exports.PluginSetupError=e.Z,exports.ReactGrabError=e.Q,exports.commentPlugin=t.c,exports.formatElementInfo=n.n,exports.generateSnippet=t.n,exports.getGlobalApi=t.r,exports.getStack=n.a,exports.init=t.t,exports.isInstrumentationActive=e.gt,exports.openPlugin=t.s,exports.registerPlugin=t.i,exports.setGlobalApi=t.a,exports.unregisterPlugin=t.o;
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 ReactGrabState, C as Plugin, D as PromptModeContext, E as Position, F as Theme, I as ToolbarState, M as SelectedElementPayload, N as SettableOptions, O as ReactGrabAPI, P as SourceInfo, S as OverlayBounds, T as PluginHooks, _ as ElementLabelVariant, a as ActionContext, b as OpenFileActionHooks, c as AgentContext, d as CopySuccessContext, f as DeepPartial, g as ElementLabelContext, j as Rect, l as ContextMenuAction, n as isInstrumentationActive, o as ActionContextHooks, p as DragRect, s as ActivationMode, u as ContextMenuActionContext, v as ElementSelectedEventDetail, w as PluginConfig, x as Options, y as GrabbedBox } from "./copy-content-CGMz3X7m.cjs";
10
- import { a as getStack, i as formatElementInfo, n as generateSnippet, r as DEFAULT_THEME, t as init } from "./index-Bqe1Iy_L.cjs";
9
+ import { A as ReactGrabState, C as Plugin, D as PromptModeContext, E as Position, F as Theme, I as ToolbarState, M as SelectedElementPayload, N as SettableOptions, O as ReactGrabAPI, P as SourceInfo, S as OverlayBounds, T as PluginHooks, _ as ElementLabelVariant, a as ActionContext, b as OpenFileActionHooks, c as AgentContext, d as CopySuccessContext, f as DeepPartial, g as ElementLabelContext, j as Rect, l as ContextMenuAction, n as isInstrumentationActive, o as ActionContextHooks, p as DragRect, s as ActivationMode, u as ContextMenuActionContext, v as ElementSelectedEventDetail, w as PluginConfig, x as Options, y as GrabbedBox } from "./copy-content-CAzUtmEY.cjs";
10
+ import { a as getStack, i as formatElementInfo, n as generateSnippet, r as DEFAULT_THEME, t as init } from "./index-DjJuQ7ZY.cjs";
11
11
  import { i as ReactGrabError, n as OpenFileError, r as PluginSetupError, t as FreezeError } from "./errors-CTlIFDQs.cjs";
12
12
 
13
13
  //#region src/core/plugins/comment.d.ts
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 ReactGrabState, C as Plugin, D as PromptModeContext, E as Position, F as Theme, I as ToolbarState, M as SelectedElementPayload, N as SettableOptions, O as ReactGrabAPI, P as SourceInfo, S as OverlayBounds, T as PluginHooks, _ as ElementLabelVariant, a as ActionContext, b as OpenFileActionHooks, c as AgentContext, d as CopySuccessContext, f as DeepPartial, g as ElementLabelContext, j as Rect, l as ContextMenuAction, n as isInstrumentationActive, o as ActionContextHooks, p as DragRect, s as ActivationMode, u as ContextMenuActionContext, v as ElementSelectedEventDetail, w as PluginConfig, x as Options, y as GrabbedBox } from "./copy-content-DDha1TvA.js";
10
- import { a as getStack, i as formatElementInfo, n as generateSnippet, r as DEFAULT_THEME, t as init } from "./index-WLhSTqMb.js";
9
+ import { A as ReactGrabState, C as Plugin, D as PromptModeContext, E as Position, F as Theme, I as ToolbarState, M as SelectedElementPayload, N as SettableOptions, O as ReactGrabAPI, P as SourceInfo, S as OverlayBounds, T as PluginHooks, _ as ElementLabelVariant, a as ActionContext, b as OpenFileActionHooks, c as AgentContext, d as CopySuccessContext, f as DeepPartial, g as ElementLabelContext, j as Rect, l as ContextMenuAction, n as isInstrumentationActive, o as ActionContextHooks, p as DragRect, s as ActivationMode, u as ContextMenuActionContext, v as ElementSelectedEventDetail, w as PluginConfig, x as Options, y as GrabbedBox } from "./copy-content-DQZZQZP6.js";
10
+ import { a as getStack, i as formatElementInfo, n as generateSnippet, r as DEFAULT_THEME, t as init } from "./index-DPeQbi7w.js";
11
11
  import { i as ReactGrabError, n as OpenFileError, r as PluginSetupError, t as FreezeError } from "./errors-BEgowzRA.js";
12
12
 
13
13
  //#region src/core/plugins/comment.d.ts