@hot-updater/console 0.30.12 → 0.31.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.output/nitro.json +1 -1
- package/.output/public/assets/BaseTanStackRouterDevtoolsPanel-Bmws3ikM-q5p5qKUx.js +486 -0
- package/.output/public/assets/FloatingTanStackRouterDevtools-B7vy70jP-Bzs2Gthe.js +1 -0
- package/.output/public/assets/clsx-CbprLf2V.js +1 -0
- package/.output/public/assets/dist-B5egZOkC.js +9 -0
- package/.output/public/assets/main-DrVuFR7r.js +10 -0
- package/.output/public/assets/preload-helper-C5ST2IKa.js +1 -0
- package/.output/public/assets/routes-C_bgs7kg.js +54 -0
- package/.output/public/assets/styles-DZ0tCVA1.css +2 -0
- package/.output/server/{__tanstack-start-server-fn-resolver-rXMsqALt.mjs → __tanstack-start-server-fn-resolver-5wPQ8bZ3.mjs} +19 -11
- package/.output/server/_chunks/ssr-renderer.mjs +2 -2
- package/.output/server/_libs/@tanstack/react-form+[...].mjs +5 -5
- package/.output/server/_libs/lucide-react.mjs +8 -1
- package/.output/server/_libs/unctx.mjs +1 -1
- package/.output/server/_ssr/{api-rpc-DYKuUgOh.mjs → api-rpc-BhBKhZqY.mjs} +61 -18
- package/.output/server/_ssr/{config.server-8YQWTTc0.mjs → config.server-xu3W-WAK.mjs} +3 -1
- package/.output/server/_ssr/deleteBundle-D4jF5HeY.mjs +96 -0
- package/.output/server/_ssr/dist-CRiLZLfa.mjs +120 -0
- package/.output/server/_ssr/getBundleChildren-DFqZ6XMp.mjs +58 -0
- package/.output/server/_ssr/{router-D-WWsYjv.mjs → router-SkApCyud.mjs} +57 -15
- package/.output/server/_ssr/{routes-DyUhibF4.mjs → routes-BSs-dv4D.mjs} +1120 -472
- package/.output/server/_ssr/{sidebar-DXng0IOP.mjs → sidebar-CgbtXkE2.mjs} +65 -85
- package/.output/server/_ssr/ssr.mjs +4 -4
- package/.output/server/_ssr/start-D0X4LIsd.mjs +4 -0
- package/.output/server/_ssr/storageProfile-wICk5nZZ.mjs +9 -0
- package/.output/server/{_tanstack-start-manifest_v-xpdCj2Ct.mjs → _tanstack-start-manifest_v-D2MqgD3d.mjs} +9 -4
- package/.output/server/index.mjs +70 -42
- package/package.json +10 -6
- package/.output/public/assets/dist-BKho179_.js +0 -53
- package/.output/public/assets/main-5MdOCmsM.js +0 -10
- package/.output/public/assets/routes-BmbL4goz.js +0 -10
- package/.output/public/assets/styles-M2W42JQb.css +0 -2
- package/.output/server/_ssr/deleteBundle-BiJvjt0k.mjs +0 -22
- package/.output/server/_ssr/start-DsRb6TkZ.mjs +0 -4
package/.output/nitro.json
CHANGED
|
@@ -0,0 +1,486 @@
|
|
|
1
|
+
import{n as e,t}from"./clsx-CbprLf2V.js";import{n,o as r,u as i}from"./preload-helper-C5ST2IKa.js";var a={context:void 0,registry:void 0,effects:void 0,done:!1,getContextId(){return o(this.context.count)},getNextContextId(){return o(this.context.count++)}};function o(e){let t=String(e),n=t.length-1;return a.context.id+(n?String.fromCharCode(96+n):``)+t}function s(e){a.context=e}var c=(e,t)=>e===t,l=Symbol(`solid-proxy`),u=typeof Proxy==`function`,d=Symbol(`solid-track`),f={equals:c},p=ne,m=1,h=2,g={owned:null,cleanups:null,context:null,owner:null},_=null,v=null,y=null,b=null,x=0;function S(e,t){let n=v,r=_,i=e.length===0,a=t===void 0?r:t,o=i?g:{owned:null,cleanups:null,context:a?a.context:null,owner:a},s=i?e:()=>e(()=>D(()=>ae(o)));_=o,v=null;try{return I(s,!0)}finally{v=n,_=r}}function C(e,t){t=t?Object.assign({},f,t):f;let n={value:e,observers:null,observerSlots:null,comparator:t.equals||void 0};return[ee.bind(n),e=>(typeof e==`function`&&(e=e(n.value)),M(n,e))]}function w(e,t,n){N(P(e,t,!1,m))}function T(e,t,n){p=re;let r=P(e,t,!1,m);(!n||!n.render)&&(r.user=!0),b?b.push(r):N(r)}function E(e,t,n){n=n?Object.assign({},f,n):f;let r=P(e,t,!0,0);return r.observers=null,r.observerSlots=null,r.comparator=n.equals||void 0,N(r),ee.bind(r)}function D(e){if(v===null)return e();let t=v;v=null;try{return e()}finally{v=t}}function O(e){return _===null||(_.cleanups===null?_.cleanups=[e]:_.cleanups.push(e)),e}function k(e,t){let n=Symbol(`context`);return{id:n,Provider:le(n),defaultValue:e}}function A(e){let t;return _&&_.context&&(t=_.context[e.id])!==void 0?t:e.defaultValue}function j(e){let t=E(e),n=E(()=>ce(t()));return n.toArray=()=>{let e=n();return Array.isArray(e)?e:e==null?[]:[e]},n}function ee(){if(this.sources&&this.state)if(this.state===m)N(this);else{let e=y;y=null,I(()=>R(this),!1),y=e}if(v){let e=this.observers?this.observers.length:0;v.sources?(v.sources.push(this),v.sourceSlots.push(e)):(v.sources=[this],v.sourceSlots=[e]),this.observers?(this.observers.push(v),this.observerSlots.push(v.sources.length-1)):(this.observers=[v],this.observerSlots=[v.sources.length-1])}return this.value}function M(e,t,n){let r=e.value;return(!e.comparator||!e.comparator(r,t))&&(e.value=t,e.observers&&e.observers.length&&I(()=>{for(let t=0;t<e.observers.length;t+=1){let n=e.observers[t];n.state||(n.pure?y.push(n):b.push(n),n.observers&&ie(n)),n.state=m}if(y.length>1e6)throw y=[],Error()},!1)),t}function N(e){if(!e.fn)return;ae(e);let t=x;te(e,e.value,t)}function te(e,t,n){let r,i=_,a=v;v=_=e;try{r=e.fn(t)}catch(t){return e.pure&&(e.state=m,e.owned&&e.owned.forEach(ae),e.owned=null),e.updatedAt=n+1,se(t)}finally{v=a,_=i}(!e.updatedAt||e.updatedAt<=n)&&(e.updatedAt!=null&&`observers`in e?M(e,r):e.value=r,e.updatedAt=n)}function P(e,t,n,r=m,i){let a={fn:e,state:r,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:_,context:_?_.context:null,pure:n};return _===null||_!==g&&(_.owned?_.owned.push(a):_.owned=[a]),a}function F(e){if(e.state===0)return;if(e.state===h)return R(e);if(e.suspense&&D(e.suspense.inFallback))return e.suspense.effects.push(e);let t=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<x);)e.state&&t.push(e);for(let n=t.length-1;n>=0;n--)if(e=t[n],e.state===m)N(e);else if(e.state===h){let n=y;y=null,I(()=>R(e,t[0]),!1),y=n}}function I(e,t){if(y)return e();let n=!1;t||(y=[]),b?n=!0:b=[],x++;try{let t=e();return L(n),t}catch(e){n||(b=null),y=null,se(e)}}function L(e){if(y&&=(ne(y),null),e)return;let t=b;b=null,t.length&&I(()=>p(t),!1)}function ne(e){for(let t=0;t<e.length;t++)F(e[t])}function re(e){let t,n=0;for(t=0;t<e.length;t++){let r=e[t];r.user?e[n++]=r:F(r)}if(a.context){if(a.count){a.effects||=[],a.effects.push(...e.slice(0,n));return}s()}for(a.effects&&(a.done||!a.count)&&(e=[...a.effects,...e],n+=a.effects.length,delete a.effects),t=0;t<n;t++)F(e[t])}function R(e,t){e.state=0;for(let n=0;n<e.sources.length;n+=1){let r=e.sources[n];if(r.sources){let e=r.state;e===m?r!==t&&(!r.updatedAt||r.updatedAt<x)&&F(r):e===h&&R(r,t)}}}function ie(e){for(let t=0;t<e.observers.length;t+=1){let n=e.observers[t];n.state||(n.state=h,n.pure?y.push(n):b.push(n),n.observers&&ie(n))}}function ae(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--)ae(e.tOwned[t]);delete e.tOwned}if(e.owned){for(t=e.owned.length-1;t>=0;t--)ae(e.owned[t]);e.owned=null}if(e.cleanups){for(t=e.cleanups.length-1;t>=0;t--)e.cleanups[t]();e.cleanups=null}e.state=0}function oe(e){return e instanceof Error?e:Error(typeof e==`string`?e:`Unknown error`,{cause:e})}function se(e,t=_){throw oe(e)}function ce(e){if(typeof e==`function`&&!e.length)return ce(e());if(Array.isArray(e)){let t=[];for(let n=0;n<e.length;n++){let r=ce(e[n]);Array.isArray(r)?t.push.apply(t,r):t.push(r)}return t}return e}function le(e,t){return function(t){let n;return w(()=>n=D(()=>(_.context={..._.context,[e]:t.value},j(()=>t.children))),void 0),n}}var ue=Symbol(`fallback`);function de(e){for(let t=0;t<e.length;t++)e[t]()}function fe(e,t,n={}){let r=[],i=[],a=[],o=0,s=t.length>1?[]:null;return O(()=>de(a)),()=>{let c=e()||[],l=c.length,u,f;return c[d],D(()=>{let e,t,d,m,h,g,_,v,y;if(l===0)o!==0&&(de(a),a=[],r=[],i=[],o=0,s&&=[]),n.fallback&&(r=[ue],i[0]=S(e=>(a[0]=e,n.fallback())),o=1);else if(o===0){for(i=Array(l),f=0;f<l;f++)r[f]=c[f],i[f]=S(p);o=l}else{for(d=Array(l),m=Array(l),s&&(h=Array(l)),g=0,_=Math.min(o,l);g<_&&r[g]===c[g];g++);for(_=o-1,v=l-1;_>=g&&v>=g&&r[_]===c[v];_--,v--)d[v]=i[_],m[v]=a[_],s&&(h[v]=s[_]);for(e=new Map,t=Array(v+1),f=v;f>=g;f--)y=c[f],u=e.get(y),t[f]=u===void 0?-1:u,e.set(y,f);for(u=g;u<=_;u++)y=r[u],f=e.get(y),f!==void 0&&f!==-1?(d[f]=i[u],m[f]=a[u],s&&(h[f]=s[u]),f=t[f],e.set(y,f)):a[u]();for(f=g;f<l;f++)f in d?(i[f]=d[f],a[f]=m[f],s&&(s[f]=h[f],s[f](f))):i[f]=S(p);i=i.slice(0,o=l),r=c.slice(0)}return i});function p(e){if(a[f]=e,s){let[e,n]=C(f);return s[f]=n,t(c[f],e)}return t(c[f])}}}function z(e,t){return D(()=>e(t||{}))}function pe(){return!0}var me={get(e,t,n){return t===l?n:e.get(t)},has(e,t){return t===l?!0:e.has(t)},set:pe,deleteProperty:pe,getOwnPropertyDescriptor(e,t){return{configurable:!0,enumerable:!0,get(){return e.get(t)},set:pe,deleteProperty:pe}},ownKeys(e){return e.keys()}};function he(e){return(e=typeof e==`function`?e():e)?e:{}}function ge(){for(let e=0,t=this.length;e<t;++e){let t=this[e]();if(t!==void 0)return t}}function _e(...e){let t=!1;for(let n=0;n<e.length;n++){let r=e[n];t||=!!r&&l in r,e[n]=typeof r==`function`?(t=!0,E(r)):r}if(u&&t)return new Proxy({get(t){for(let n=e.length-1;n>=0;n--){let r=he(e[n])[t];if(r!==void 0)return r}},has(t){for(let n=e.length-1;n>=0;n--)if(t in he(e[n]))return!0;return!1},keys(){let t=[];for(let n=0;n<e.length;n++)t.push(...Object.keys(he(e[n])));return[...new Set(t)]}},me);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:ge.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 ve(e,...t){let n=t.length;if(u&&l in e){let r=n>1?t.flat():t[0],i=t.map(t=>new Proxy({get(n){return t.includes(n)?e[n]:void 0},has(n){return t.includes(n)&&n in e},keys(){return t.filter(t=>t in e)}},me));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))}},me)),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}var ye=0;function be(){return a.context?a.getNextContextId():`cl-${ye++}`}var xe=e=>`Stale read from <${e}>.`;function Se(e){let t=`fallback`in e&&{fallback:()=>e.fallback};return E(fe(()=>e.each,e.children,t||void 0))}function Ce(e){let t=e.keyed,n=E(()=>e.when,void 0,void 0),r=t?n:E(n,void 0,{equals:(e,t)=>!e==!t});return E(()=>{let i=r();if(i){let a=e.children;return typeof a==`function`&&a.length>0?D(()=>a(t?i:()=>{if(!D(r))throw xe(`Show`);return n()})):a}return e.fallback},void 0,void 0)}function we(e){let t=j(()=>e.children),n=E(()=>{let e=t(),n=Array.isArray(e)?e:[e],r=()=>void 0;for(let e=0;e<n.length;e++){let t=e,i=n[e],a=r,o=E(()=>a()?void 0:i.when,void 0,void 0),s=i.keyed?o:E(o,void 0,{equals:(e,t)=>!e==!t});r=()=>a()||(s()?[t,o,i]:void 0)}return r});return E(()=>{let t=n()();if(!t)return e.fallback;let[r,i,a]=t,o=a.children;return typeof o==`function`&&o.length>0?D(()=>o(a.keyed?i():()=>{if(D(n)()?.[0]!==r)throw xe(`Match`);return i()})):o},void 0,void 0)}function Te(e){return e}var Ee=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(`.`)]),De=new Set([`innerHTML`,`textContent`,`innerText`,`children`]),Oe=Object.assign(Object.create(null),{className:`class`,htmlFor:`for`}),ke=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 Ae(e,t){let n=ke[e];return typeof n==`object`?n[t]?n.$:void 0:n}var je=new Set([`beforeinput`,`click`,`dblclick`,`contextmenu`,`focusin`,`focusout`,`input`,`keydown`,`keyup`,`mousedown`,`mousemove`,`mouseout`,`mouseover`,`mouseup`,`pointerdown`,`pointermove`,`pointerout`,`pointerover`,`pointerup`,`touchend`,`touchmove`,`touchstart`]),Me=new Set(`altGlyph.altGlyphDef.altGlyphItem.animate.animateColor.animateMotion.animateTransform.circle.clipPath.color-profile.cursor.defs.desc.ellipse.feBlend.feColorMatrix.feComponentTransfer.feComposite.feConvolveMatrix.feDiffuseLighting.feDisplacementMap.feDistantLight.feDropShadow.feFlood.feFuncA.feFuncB.feFuncG.feFuncR.feGaussianBlur.feImage.feMerge.feMergeNode.feMorphology.feOffset.fePointLight.feSpecularLighting.feSpotLight.feTile.feTurbulence.filter.font.font-face.font-face-format.font-face-name.font-face-src.font-face-uri.foreignObject.g.glyph.glyphRef.hkern.image.line.linearGradient.marker.mask.metadata.missing-glyph.mpath.path.pattern.polygon.polyline.radialGradient.rect.set.stop.svg.switch.symbol.text.textPath.tref.tspan.use.view.vkern`.split(`.`)),Ne={xlink:`http://www.w3.org/1999/xlink`,xml:`http://www.w3.org/XML/1998/namespace`},B=e=>E(()=>e());function Pe(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()}}}var Fe=`_$DX_DELEGATE`;function V(e,t,n,r){let i,a=()=>{let t=document.createElement(`template`);return t.innerHTML=e,t.content.firstChild},o=t?()=>D(()=>document.importNode(i||=a(),!0)):()=>(i||=a()).cloneNode(!0);return o.cloneNode=o,o}function Ie(e,t=window.document){let n=t[Fe]||(t[Fe]=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,Ye))}}function H(e,t,n){G(e)||(n==null?e.removeAttribute(t):e.setAttribute(t,n))}function Le(e,t,n,r){G(e)||(r==null?e.removeAttributeNS(t,n):e.setAttributeNS(t,n,r))}function Re(e,t,n){G(e)||(n?e.setAttribute(t,``):e.removeAttribute(t))}function U(e,t){G(e)||(t==null?e.removeAttribute(`class`):e.className=t)}function ze(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 Be(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]||(qe(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||(qe(e,i,!0),n[i]=o)}return n}function Ve(e,t,n){if(!t)return n?H(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 He(e,t={},n,r){let i={};return r||w(()=>i.children=Xe(e,t.children,i.children)),w(()=>typeof t.ref==`function`&&Ue(t.ref,e)),w(()=>We(e,t,n,!0,i,!0)),i}function Ue(e,t,n){return D(()=>e(t,n))}function W(e,t,n,r){if(n!==void 0&&!r&&(r=[]),typeof t!=`function`)return Xe(e,t,r,n);w(r=>Xe(e,t(),r,n),r)}function We(e,t,n,r,i={},a=!1){t||={};for(let r in i)if(!(r in t)){if(r===`children`)continue;i[r]=Je(e,r,null,i[r],n,a,t)}for(let r in t){if(r===`children`)continue;let o=t[r];i[r]=Je(e,r,o,i[r],n,a,t)}}function Ge(e){let t,n;return!G()||!(t=a.registry.get(n=$e()))?e():(a.completed&&a.completed.add(t),a.registry.delete(n),t)}function G(e){return!!a.context&&!a.done&&(!e||e.isConnected)}function Ke(e){return e.toLowerCase().replace(/-([a-z])/g,(e,t)=>t.toUpperCase())}function qe(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 Je(e,t,n,r,i,a,o){let s,c,l,u,d;if(t===`style`)return Ve(e,n,r);if(t===`classList`)return Be(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=je.has(i);if(!a&&r){let t=Array.isArray(r)?r[0]:r;e.removeEventListener(i,t)}(a||n)&&(ze(e,i,n,a),a&&Ie([i]))}else if(t.slice(0,5)===`attr:`)H(e,t.slice(5),n);else if(t.slice(0,5)===`bool:`)Re(e,t.slice(5),n);else if((d=t.slice(0,5)===`prop:`)||(l=De.has(t))||!i&&((u=Ae(t,e.tagName))||(c=Ee.has(t)))||(s=e.nodeName.includes(`-`)||`is`in o)){if(d)t=t.slice(5),c=!0;else if(G(e))return n;t===`class`||t===`className`?U(e,n):s&&!c&&!l?e[Ke(t)]=n:e[u||t]=n}else{let r=i&&t.indexOf(`:`)>-1&&Ne[t.split(`:`)[0]];r?Le(e,r,t,n):H(e,Oe[t]||t,n)}return n}function Ye(e){if(a.registry&&a.events&&a.events.find(([t,n])=>n===e))return;let t=e.target,n=`$$${e.type}`,r=e.target,i=e.currentTarget,o=t=>Object.defineProperty(e,`target`,{configurable:!0,value:t}),s=()=>{let r=t[n];if(r&&!t.disabled){let i=t[`${n}Data`];if(i===void 0?r.call(t,e):r.call(t,i,e),e.cancelBubble)return}return t.host&&typeof t.host!=`string`&&!t.host._$host&&t.contains(e.target)&&o(t.host),!0},c=()=>{for(;s()&&(t=t._$host||t.parentNode||t.host););};if(Object.defineProperty(e,`currentTarget`,{configurable:!0,get(){return t||document}}),a.registry&&!a.done&&(a.done=_$HY.done=!0),e.composedPath){let n=e.composedPath();o(n[0]);for(let e=0;e<n.length-2&&(t=n[e],s());e++){if(t._$host){t=t._$host,c();break}if(t.parentNode===i)break}}else c();o(r)}function Xe(e,t,n,r,i){let a=G(e);if(a){!n&&(n=[...e.childNodes]);let t=[];for(let e=0;e<n.length;e++){let r=n[e];r.nodeType===8&&r.data.slice(0,2)===`!$`?r.remove():t.push(r)}n=t}for(;typeof n==`function`;)n=n();if(t===n)return n;let o=typeof t,s=r!==void 0;if(e=s&&n[0]&&n[0].parentNode||e,o===`string`||o===`number`){if(a||o===`number`&&(t=t.toString(),t===n))return n;if(s){let i=n[0];i&&i.nodeType===3?i.data!==t&&(i.data=t):i=document.createTextNode(t),n=K(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=K(e,n,r)}else if(o===`function`)return w(()=>{let i=t();for(;typeof i==`function`;)i=i();n=Xe(e,i,n,r)}),()=>n;else if(Array.isArray(t)){let o=[],c=n&&Array.isArray(n);if(Ze(o,t,n,i))return w(()=>n=Xe(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=K(e,n,r),s)return n}else c?n.length===0?Qe(e,o,r):Pe(e,n,o):(n&&K(e),Qe(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=K(e,n,r,t);K(e,n,null,t)}else n==null||n===``||!e.firstChild?e.appendChild(t):e.replaceChild(t,e.firstChild);n=t}return n}function Ze(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=Ze(e,o,s)||i;else if(c===`function`)if(r){for(;typeof o==`function`;)o=o();i=Ze(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 Qe(e,t,n=null){for(let r=0,i=t.length;r<i;r++)e.insertBefore(t[r],n)}function K(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 $e(){return a.getNextContextId()}var et=`http://www.w3.org/2000/svg`;function tt(e,t=!1,n=void 0){return t?document.createElementNS(et,e):document.createElement(e,{is:n})}function nt(e,t){let n=E(e);return E(()=>{let e=n();switch(typeof e){case`function`:return D(()=>e(t));case`string`:let n=Me.has(e),r=a.context?Ge():tt(e,n,D(()=>t.is));return He(r,t,n),r}})}function rt(e){let[,t]=ve(e,[`component`]);return nt(()=>e.component,t)}var it=k(void 0),at=k(void 0),ot=()=>{let e=A(at);if(!e)throw Error(`useDevtoolsOnClose must be used within a TanStackRouterDevtools component`);return e},st={data:``},ct=e=>{if(typeof window==`object`){let t=(e?e.querySelector(`#_goober`):window._goober)||Object.assign(document.createElement(`style`),{innerHTML:` `,id:`_goober`});return t.nonce=window.__nonce__,t.parentNode||(e||document.head).appendChild(t),t.firstChild}return e||st},lt=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,ut=/\/\*[^]*?\*\/| +/g,dt=/\n+/g,q=(e,t)=>{let n=``,r=``,i=``;for(let a in e){let o=e[a];a[0]==`@`?a[1]==`i`?n=a+` `+o+`;`:r+=a[1]==`f`?q(o,a):a+`{`+q(o,a[1]==`k`?``:t)+`}`:typeof o==`object`?r+=q(o,t?t.replace(/([^,])+/g,e=>a.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,t=>/&/.test(t)?t.replace(/&/g,e):e?e+` `+t:t)):a):o!=null&&(a=/^--/.test(a)?a:a.replace(/[A-Z]/g,`-$&`).toLowerCase(),i+=q.p?q.p(a,o):a+`:`+o+`;`)}return n+(t&&i?t+`{`+i+`}`:i)+r},J={},ft=e=>{if(typeof e==`object`){let t=``;for(let n in e)t+=n+ft(e[n]);return t}return e},pt=(e,t,n,r,i)=>{let a=ft(e),o=J[a]||(J[a]=(e=>{let t=0,n=11;for(;t<e.length;)n=101*n+e.charCodeAt(t++)>>>0;return`go`+n})(a));if(!J[o]){let t=a===e?(e=>{let t,n,r=[{}];for(;t=lt.exec(e.replace(ut,``));)t[4]?r.shift():t[3]?(n=t[3].replace(dt,` `).trim(),r.unshift(r[0][n]=r[0][n]||{})):r[0][t[1]]=t[2].replace(dt,` `).trim();return r[0]})(e):e;J[o]=q(i?{[`@keyframes `+o]:t}:t,n?``:`.`+o)}let s=n&&J.g?J.g:null;return n&&(J.g=J[o]),((e,t,n,r)=>{r?t.data=t.data.replace(r,e):t.data.indexOf(e)===-1&&(t.data=n?e+t.data:t.data+e)})(J[o],t,r,s),o},mt=(e,t,n)=>e.reduce((e,r,i)=>{let a=t[i];if(a&&a.call){let e=a(n),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;a=t?`.`+t:e&&typeof e==`object`?e.props?``:q(e,``):!1===e?``:e}return e+r+(a??``)},``);function Y(e){let t=this||{},n=e.call?e(t.p):e;return pt(n.unshift?n.raw?mt(n,[].slice.call(arguments,1),t.p):n.reduce((e,n)=>Object.assign(e,n&&n.call?n(t.p):n),{}):n,ct(t.target),t.g,t.o,t.k)}Y.bind({g:1}),Y.bind({k:1});var ht=typeof window>`u`;function gt(e){return e.isFetching&&e.status===`success`?e.isFetching===`beforeLoad`?`purple`:`blue`:{pending:`yellow`,success:`green`,error:`red`,notFound:`purple`,redirected:`gray`}[e.status]}function _t(e,t){let n=e.find(e=>e.routeId===t.id);return n?gt(n):`gray`}function vt(){let[e,t]=C(!1);return(ht?T:w)(()=>{t(!0)}),e}var yt=e=>{let t=Object.getOwnPropertyNames(Object(e)),n=typeof e==`bigint`?`${e.toString()}n`:e;try{return JSON.stringify(n,t)}catch{return`unable to stringify`}};function bt(e,t=[e=>e]){return e.map((e,t)=>[e,t]).sort(([e,n],[r,i])=>{for(let n of t){let t=n(e),i=n(r);if(t===void 0){if(i===void 0)continue;return 1}if(t!==i)return t>i?1:-1}return n-i}).map(([e])=>e)}var X={colors:{inherit:`inherit`,current:`currentColor`,transparent:`transparent`,black:`#000000`,white:`#ffffff`,neutral:{50:`#f9fafb`,100:`#f2f4f7`,200:`#eaecf0`,300:`#d0d5dd`,400:`#98a2b3`,500:`#667085`,600:`#475467`,700:`#344054`,800:`#1d2939`,900:`#101828`},darkGray:{50:`#525c7a`,100:`#49536e`,200:`#414962`,300:`#394056`,400:`#313749`,500:`#292e3d`,600:`#212530`,700:`#191c24`,800:`#111318`,900:`#0b0d10`},gray:{50:`#f9fafb`,100:`#f2f4f7`,200:`#eaecf0`,300:`#d0d5dd`,400:`#98a2b3`,500:`#667085`,600:`#475467`,700:`#344054`,800:`#1d2939`,900:`#101828`},blue:{25:`#F5FAFF`,50:`#EFF8FF`,100:`#D1E9FF`,200:`#B2DDFF`,300:`#84CAFF`,400:`#53B1FD`,500:`#2E90FA`,600:`#1570EF`,700:`#175CD3`,800:`#1849A9`,900:`#194185`},green:{25:`#F6FEF9`,50:`#ECFDF3`,100:`#D1FADF`,200:`#A6F4C5`,300:`#6CE9A6`,400:`#32D583`,500:`#12B76A`,600:`#039855`,700:`#027A48`,800:`#05603A`,900:`#054F31`},red:{50:`#fef2f2`,100:`#fee2e2`,200:`#fecaca`,300:`#fca5a5`,400:`#f87171`,500:`#ef4444`,600:`#dc2626`,700:`#b91c1c`,800:`#991b1b`,900:`#7f1d1d`,950:`#450a0a`},yellow:{25:`#FFFCF5`,50:`#FFFAEB`,100:`#FEF0C7`,200:`#FEDF89`,300:`#FEC84B`,400:`#FDB022`,500:`#F79009`,600:`#DC6803`,700:`#B54708`,800:`#93370D`,900:`#7A2E0E`},purple:{25:`#FAFAFF`,50:`#F4F3FF`,100:`#EBE9FE`,200:`#D9D6FE`,300:`#BDB4FE`,400:`#9B8AFB`,500:`#7A5AF8`,600:`#6938EF`,700:`#5925DC`,800:`#4A1FB8`,900:`#3E1C96`},teal:{25:`#F6FEFC`,50:`#F0FDF9`,100:`#CCFBEF`,200:`#99F6E0`,300:`#5FE9D0`,400:`#2ED3B7`,500:`#15B79E`,600:`#0E9384`,700:`#107569`,800:`#125D56`,900:`#134E48`},pink:{25:`#fdf2f8`,50:`#fce7f3`,100:`#fbcfe8`,200:`#f9a8d4`,300:`#f472b6`,400:`#ec4899`,500:`#db2777`,600:`#be185d`,700:`#9d174d`,800:`#831843`,900:`#500724`},cyan:{25:`#ecfeff`,50:`#cffafe`,100:`#a5f3fc`,200:`#67e8f9`,300:`#22d3ee`,400:`#06b6d4`,500:`#0891b2`,600:`#0e7490`,700:`#155e75`,800:`#164e63`,900:`#083344`}},alpha:{90:`e5`,70:`b3`,20:`33`},font:{size:{"2xs":`calc(var(--tsrd-font-size) * 0.625)`,xs:`calc(var(--tsrd-font-size) * 0.75)`,sm:`calc(var(--tsrd-font-size) * 0.875)`,md:`var(--tsrd-font-size)`},lineHeight:{xs:`calc(var(--tsrd-font-size) * 1)`,sm:`calc(var(--tsrd-font-size) * 1.25)`},weight:{normal:`400`,medium:`500`,semibold:`600`,bold:`700`},fontFamily:{sans:`ui-sans-serif, Inter, system-ui, sans-serif, sans-serif`,mono:`ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace`}},border:{radius:{xs:`calc(var(--tsrd-font-size) * 0.125)`,sm:`calc(var(--tsrd-font-size) * 0.25)`,md:`calc(var(--tsrd-font-size) * 0.375)`,full:`9999px`}},size:{0:`0px`,.5:`calc(var(--tsrd-font-size) * 0.125)`,1:`calc(var(--tsrd-font-size) * 0.25)`,1.5:`calc(var(--tsrd-font-size) * 0.375)`,2:`calc(var(--tsrd-font-size) * 0.5)`,2.5:`calc(var(--tsrd-font-size) * 0.625)`,3:`calc(var(--tsrd-font-size) * 0.75)`,3.5:`calc(var(--tsrd-font-size) * 0.875)`,4:`calc(var(--tsrd-font-size) * 1)`,5:`calc(var(--tsrd-font-size) * 1.25)`,8:`calc(var(--tsrd-font-size) * 2)`}},xt=e=>{let{colors:t,font:n,size:r,alpha:i,border:a}=X,{fontFamily:o,lineHeight:s,size:c}=n,l=e?Y.bind({target:e}):Y;return{devtoolsPanelContainer:l`
|
|
2
|
+
direction: ltr;
|
|
3
|
+
position: fixed;
|
|
4
|
+
bottom: 0;
|
|
5
|
+
right: 0;
|
|
6
|
+
z-index: 99999;
|
|
7
|
+
width: 100%;
|
|
8
|
+
max-height: 90%;
|
|
9
|
+
border-top: 1px solid ${t.gray[700]};
|
|
10
|
+
transform-origin: top;
|
|
11
|
+
`,devtoolsPanelContainerVisibility:e=>l`
|
|
12
|
+
visibility: ${e?`visible`:`hidden`};
|
|
13
|
+
`,devtoolsPanelContainerResizing:e=>e()?l`
|
|
14
|
+
transition: none;
|
|
15
|
+
`:l`
|
|
16
|
+
transition: all 0.4s ease;
|
|
17
|
+
`,devtoolsPanelContainerAnimation:(e,t)=>e?l`
|
|
18
|
+
pointer-events: auto;
|
|
19
|
+
transform: translateY(0);
|
|
20
|
+
`:l`
|
|
21
|
+
pointer-events: none;
|
|
22
|
+
transform: translateY(${t}px);
|
|
23
|
+
`,logo:l`
|
|
24
|
+
cursor: pointer;
|
|
25
|
+
display: flex;
|
|
26
|
+
flex-direction: column;
|
|
27
|
+
background-color: transparent;
|
|
28
|
+
border: none;
|
|
29
|
+
font-family: ${o.sans};
|
|
30
|
+
gap: ${X.size[.5]};
|
|
31
|
+
padding: 0px;
|
|
32
|
+
&:hover {
|
|
33
|
+
opacity: 0.7;
|
|
34
|
+
}
|
|
35
|
+
&:focus-visible {
|
|
36
|
+
outline-offset: 4px;
|
|
37
|
+
border-radius: ${a.radius.xs};
|
|
38
|
+
outline: 2px solid ${t.blue[800]};
|
|
39
|
+
}
|
|
40
|
+
`,tanstackLogo:l`
|
|
41
|
+
font-size: ${n.size.md};
|
|
42
|
+
font-weight: ${n.weight.bold};
|
|
43
|
+
line-height: ${n.lineHeight.xs};
|
|
44
|
+
white-space: nowrap;
|
|
45
|
+
color: ${t.gray[300]};
|
|
46
|
+
`,routerLogo:l`
|
|
47
|
+
font-weight: ${n.weight.semibold};
|
|
48
|
+
font-size: ${n.size.xs};
|
|
49
|
+
background: linear-gradient(to right, #84cc16, #10b981);
|
|
50
|
+
background-clip: text;
|
|
51
|
+
-webkit-background-clip: text;
|
|
52
|
+
line-height: 1;
|
|
53
|
+
-webkit-text-fill-color: transparent;
|
|
54
|
+
white-space: nowrap;
|
|
55
|
+
`,devtoolsPanel:l`
|
|
56
|
+
display: flex;
|
|
57
|
+
font-size: ${c.sm};
|
|
58
|
+
font-family: ${o.sans};
|
|
59
|
+
background-color: ${t.darkGray[700]};
|
|
60
|
+
color: ${t.gray[300]};
|
|
61
|
+
|
|
62
|
+
@media (max-width: 700px) {
|
|
63
|
+
flex-direction: column;
|
|
64
|
+
}
|
|
65
|
+
@media (max-width: 600px) {
|
|
66
|
+
font-size: ${c.xs};
|
|
67
|
+
}
|
|
68
|
+
`,dragHandle:l`
|
|
69
|
+
position: absolute;
|
|
70
|
+
left: 0;
|
|
71
|
+
top: 0;
|
|
72
|
+
width: 100%;
|
|
73
|
+
height: 4px;
|
|
74
|
+
cursor: row-resize;
|
|
75
|
+
z-index: 100000;
|
|
76
|
+
&:hover {
|
|
77
|
+
background-color: ${t.purple[400]}${i[90]};
|
|
78
|
+
}
|
|
79
|
+
`,firstContainer:l`
|
|
80
|
+
flex: 1 1 500px;
|
|
81
|
+
min-height: 40%;
|
|
82
|
+
max-height: 100%;
|
|
83
|
+
overflow: auto;
|
|
84
|
+
border-right: 1px solid ${t.gray[700]};
|
|
85
|
+
display: flex;
|
|
86
|
+
flex-direction: column;
|
|
87
|
+
`,routerExplorerContainer:l`
|
|
88
|
+
overflow-y: auto;
|
|
89
|
+
flex: 1;
|
|
90
|
+
`,routerExplorer:l`
|
|
91
|
+
padding: ${X.size[2]};
|
|
92
|
+
`,row:l`
|
|
93
|
+
display: flex;
|
|
94
|
+
align-items: center;
|
|
95
|
+
padding: ${X.size[2]} ${X.size[2.5]};
|
|
96
|
+
gap: ${X.size[2.5]};
|
|
97
|
+
border-bottom: ${t.darkGray[500]} 1px solid;
|
|
98
|
+
align-items: center;
|
|
99
|
+
`,detailsHeader:l`
|
|
100
|
+
font-family: ui-sans-serif, Inter, system-ui, sans-serif, sans-serif;
|
|
101
|
+
position: sticky;
|
|
102
|
+
top: 0;
|
|
103
|
+
z-index: 2;
|
|
104
|
+
background-color: ${t.darkGray[600]};
|
|
105
|
+
padding: 0px ${X.size[2]};
|
|
106
|
+
font-weight: ${n.weight.medium};
|
|
107
|
+
font-size: ${n.size.xs};
|
|
108
|
+
min-height: ${X.size[8]};
|
|
109
|
+
line-height: ${n.lineHeight.xs};
|
|
110
|
+
text-align: left;
|
|
111
|
+
display: flex;
|
|
112
|
+
align-items: center;
|
|
113
|
+
`,maskedBadge:l`
|
|
114
|
+
background: ${t.yellow[900]}${i[70]};
|
|
115
|
+
color: ${t.yellow[300]};
|
|
116
|
+
display: inline-block;
|
|
117
|
+
padding: ${X.size[0]} ${X.size[2.5]};
|
|
118
|
+
border-radius: ${a.radius.full};
|
|
119
|
+
font-size: ${n.size.xs};
|
|
120
|
+
font-weight: ${n.weight.normal};
|
|
121
|
+
border: 1px solid ${t.yellow[300]};
|
|
122
|
+
`,maskedLocation:l`
|
|
123
|
+
color: ${t.yellow[300]};
|
|
124
|
+
`,detailsContent:l`
|
|
125
|
+
padding: ${X.size[1.5]} ${X.size[2]};
|
|
126
|
+
display: flex;
|
|
127
|
+
align-items: center;
|
|
128
|
+
justify-content: space-between;
|
|
129
|
+
font-size: ${n.size.xs};
|
|
130
|
+
`,routeMatchesToggle:l`
|
|
131
|
+
display: flex;
|
|
132
|
+
align-items: center;
|
|
133
|
+
border: 1px solid ${t.gray[500]};
|
|
134
|
+
border-radius: ${a.radius.sm};
|
|
135
|
+
overflow: hidden;
|
|
136
|
+
`,routeMatchesToggleBtn:(e,r)=>{let a=[l`
|
|
137
|
+
appearance: none;
|
|
138
|
+
border: none;
|
|
139
|
+
font-size: 12px;
|
|
140
|
+
padding: 4px 8px;
|
|
141
|
+
background: transparent;
|
|
142
|
+
cursor: pointer;
|
|
143
|
+
font-family: ${o.sans};
|
|
144
|
+
font-weight: ${n.weight.medium};
|
|
145
|
+
`];if(e){let e=l`
|
|
146
|
+
background: ${t.darkGray[400]};
|
|
147
|
+
color: ${t.gray[300]};
|
|
148
|
+
`;a.push(e)}else{let e=l`
|
|
149
|
+
color: ${t.gray[500]};
|
|
150
|
+
background: ${t.darkGray[800]}${i[20]};
|
|
151
|
+
`;a.push(e)}return r&&a.push(l`
|
|
152
|
+
border-right: 1px solid ${X.colors.gray[500]};
|
|
153
|
+
`),a},detailsHeaderInfo:l`
|
|
154
|
+
flex: 1;
|
|
155
|
+
justify-content: flex-end;
|
|
156
|
+
display: flex;
|
|
157
|
+
align-items: center;
|
|
158
|
+
font-weight: ${n.weight.normal};
|
|
159
|
+
color: ${t.gray[400]};
|
|
160
|
+
`,matchRow:e=>{let n=[l`
|
|
161
|
+
display: flex;
|
|
162
|
+
border-bottom: 1px solid ${t.darkGray[400]};
|
|
163
|
+
cursor: pointer;
|
|
164
|
+
align-items: center;
|
|
165
|
+
padding: ${r[1]} ${r[2]};
|
|
166
|
+
gap: ${r[2]};
|
|
167
|
+
font-size: ${c.xs};
|
|
168
|
+
color: ${t.gray[300]};
|
|
169
|
+
`];if(e){let e=l`
|
|
170
|
+
background: ${t.darkGray[500]};
|
|
171
|
+
`;n.push(e)}return n},matchIndicator:e=>{let n=[l`
|
|
172
|
+
flex: 0 0 auto;
|
|
173
|
+
width: ${r[3]};
|
|
174
|
+
height: ${r[3]};
|
|
175
|
+
background: ${t[e][900]};
|
|
176
|
+
border: 1px solid ${t[e][500]};
|
|
177
|
+
border-radius: ${a.radius.full};
|
|
178
|
+
transition: all 0.25s ease-out;
|
|
179
|
+
box-sizing: border-box;
|
|
180
|
+
`];if(e===`gray`){let e=l`
|
|
181
|
+
background: ${t.gray[700]};
|
|
182
|
+
border-color: ${t.gray[400]};
|
|
183
|
+
`;n.push(e)}return n},matchID:l`
|
|
184
|
+
flex: 1;
|
|
185
|
+
line-height: ${s.xs};
|
|
186
|
+
`,ageTicker:e=>{let n=[l`
|
|
187
|
+
display: flex;
|
|
188
|
+
gap: ${r[1]};
|
|
189
|
+
font-size: ${c.xs};
|
|
190
|
+
color: ${t.gray[400]};
|
|
191
|
+
font-variant-numeric: tabular-nums;
|
|
192
|
+
line-height: ${s.xs};
|
|
193
|
+
`];if(e){let e=l`
|
|
194
|
+
color: ${t.yellow[400]};
|
|
195
|
+
`;n.push(e)}return n},secondContainer:l`
|
|
196
|
+
flex: 1 1 500px;
|
|
197
|
+
min-height: 40%;
|
|
198
|
+
max-height: 100%;
|
|
199
|
+
overflow: auto;
|
|
200
|
+
border-right: 1px solid ${t.gray[700]};
|
|
201
|
+
display: flex;
|
|
202
|
+
flex-direction: column;
|
|
203
|
+
`,thirdContainer:l`
|
|
204
|
+
flex: 1 1 500px;
|
|
205
|
+
overflow: auto;
|
|
206
|
+
display: flex;
|
|
207
|
+
flex-direction: column;
|
|
208
|
+
height: 100%;
|
|
209
|
+
border-right: 1px solid ${t.gray[700]};
|
|
210
|
+
|
|
211
|
+
@media (max-width: 700px) {
|
|
212
|
+
border-top: 2px solid ${t.gray[700]};
|
|
213
|
+
}
|
|
214
|
+
`,fourthContainer:l`
|
|
215
|
+
flex: 1 1 500px;
|
|
216
|
+
min-height: 40%;
|
|
217
|
+
max-height: 100%;
|
|
218
|
+
overflow: auto;
|
|
219
|
+
display: flex;
|
|
220
|
+
flex-direction: column;
|
|
221
|
+
`,routesContainer:l`
|
|
222
|
+
overflow-x: auto;
|
|
223
|
+
overflow-y: visible;
|
|
224
|
+
`,routesRowContainer:(e,n)=>{let i=[l`
|
|
225
|
+
display: flex;
|
|
226
|
+
border-bottom: 1px solid ${t.darkGray[400]};
|
|
227
|
+
align-items: center;
|
|
228
|
+
padding: ${r[1]} ${r[2]};
|
|
229
|
+
gap: ${r[2]};
|
|
230
|
+
font-size: ${c.xs};
|
|
231
|
+
color: ${t.gray[300]};
|
|
232
|
+
cursor: ${n?`pointer`:`default`};
|
|
233
|
+
line-height: ${s.xs};
|
|
234
|
+
`];if(e){let e=l`
|
|
235
|
+
background: ${t.darkGray[500]};
|
|
236
|
+
`;i.push(e)}return i},routesRow:e=>{let n=[l`
|
|
237
|
+
flex: 1 0 auto;
|
|
238
|
+
display: flex;
|
|
239
|
+
justify-content: space-between;
|
|
240
|
+
align-items: center;
|
|
241
|
+
font-size: ${c.xs};
|
|
242
|
+
line-height: ${s.xs};
|
|
243
|
+
`];if(!e){let e=l`
|
|
244
|
+
color: ${t.gray[400]};
|
|
245
|
+
`;n.push(e)}return n},routesRowInner:l`
|
|
246
|
+
display: 'flex';
|
|
247
|
+
align-items: 'center';
|
|
248
|
+
flex-grow: 1;
|
|
249
|
+
min-width: 0;
|
|
250
|
+
`,routeParamInfo:l`
|
|
251
|
+
color: ${t.gray[400]};
|
|
252
|
+
font-size: ${c.xs};
|
|
253
|
+
line-height: ${s.xs};
|
|
254
|
+
`,nestedRouteRow:e=>l`
|
|
255
|
+
margin-left: ${e?0:r[3.5]};
|
|
256
|
+
border-left: ${e?``:`solid 1px ${t.gray[700]}`};
|
|
257
|
+
`,code:l`
|
|
258
|
+
font-size: ${c.xs};
|
|
259
|
+
line-height: ${s.xs};
|
|
260
|
+
white-space: nowrap;
|
|
261
|
+
overflow: hidden;
|
|
262
|
+
text-overflow: ellipsis;
|
|
263
|
+
`,matchesContainer:l`
|
|
264
|
+
flex: 1 1 auto;
|
|
265
|
+
overflow-y: auto;
|
|
266
|
+
`,cachedMatchesContainer:l`
|
|
267
|
+
flex: 1 1 auto;
|
|
268
|
+
overflow-y: auto;
|
|
269
|
+
max-height: 50%;
|
|
270
|
+
`,historyContainer:l`
|
|
271
|
+
display: flex;
|
|
272
|
+
flex: 1 1 auto;
|
|
273
|
+
overflow-y: auto;
|
|
274
|
+
max-height: 50%;
|
|
275
|
+
`,historyOverflowContainer:l`
|
|
276
|
+
padding: ${r[1]} ${r[2]};
|
|
277
|
+
font-size: ${X.font.size.xs};
|
|
278
|
+
`,maskedBadgeContainer:l`
|
|
279
|
+
flex: 1;
|
|
280
|
+
justify-content: flex-end;
|
|
281
|
+
display: flex;
|
|
282
|
+
`,matchDetails:l`
|
|
283
|
+
display: flex;
|
|
284
|
+
flex-direction: column;
|
|
285
|
+
padding: ${X.size[2]};
|
|
286
|
+
font-size: ${X.font.size.xs};
|
|
287
|
+
color: ${X.colors.gray[300]};
|
|
288
|
+
line-height: ${X.font.lineHeight.sm};
|
|
289
|
+
`,matchStatus:(e,t)=>{let n=t&&e===`success`?t===`beforeLoad`?`purple`:`blue`:{pending:`yellow`,success:`green`,error:`red`,notFound:`purple`,redirected:`gray`}[e];return l`
|
|
290
|
+
display: flex;
|
|
291
|
+
justify-content: center;
|
|
292
|
+
align-items: center;
|
|
293
|
+
height: 40px;
|
|
294
|
+
border-radius: ${X.border.radius.sm};
|
|
295
|
+
font-weight: ${X.font.weight.normal};
|
|
296
|
+
background-color: ${X.colors[n][900]}${X.alpha[90]};
|
|
297
|
+
color: ${X.colors[n][300]};
|
|
298
|
+
border: 1px solid ${X.colors[n][600]};
|
|
299
|
+
margin-bottom: ${X.size[2]};
|
|
300
|
+
transition: all 0.25s ease-out;
|
|
301
|
+
`},matchDetailsInfo:l`
|
|
302
|
+
display: flex;
|
|
303
|
+
justify-content: flex-end;
|
|
304
|
+
flex: 1;
|
|
305
|
+
`,matchDetailsInfoLabel:l`
|
|
306
|
+
display: flex;
|
|
307
|
+
`,mainCloseBtn:l`
|
|
308
|
+
background: ${t.darkGray[700]};
|
|
309
|
+
padding: ${r[1]} ${r[2]} ${r[1]} ${r[1.5]};
|
|
310
|
+
border-radius: ${a.radius.md};
|
|
311
|
+
position: fixed;
|
|
312
|
+
z-index: 99999;
|
|
313
|
+
display: inline-flex;
|
|
314
|
+
width: fit-content;
|
|
315
|
+
cursor: pointer;
|
|
316
|
+
appearance: none;
|
|
317
|
+
border: 0;
|
|
318
|
+
gap: 8px;
|
|
319
|
+
align-items: center;
|
|
320
|
+
border: 1px solid ${t.gray[500]};
|
|
321
|
+
font-size: ${n.size.xs};
|
|
322
|
+
cursor: pointer;
|
|
323
|
+
transition: all 0.25s ease-out;
|
|
324
|
+
|
|
325
|
+
&:hover {
|
|
326
|
+
background: ${t.darkGray[500]};
|
|
327
|
+
}
|
|
328
|
+
`,mainCloseBtnPosition:e=>l`
|
|
329
|
+
${e===`top-left`?`top: ${r[2]}; left: ${r[2]};`:``}
|
|
330
|
+
${e===`top-right`?`top: ${r[2]}; right: ${r[2]};`:``}
|
|
331
|
+
${e===`bottom-left`?`bottom: ${r[2]}; left: ${r[2]};`:``}
|
|
332
|
+
${e===`bottom-right`?`bottom: ${r[2]}; right: ${r[2]};`:``}
|
|
333
|
+
`,mainCloseBtnAnimation:e=>e?l`
|
|
334
|
+
opacity: 0;
|
|
335
|
+
pointer-events: none;
|
|
336
|
+
visibility: hidden;
|
|
337
|
+
`:l`
|
|
338
|
+
opacity: 1;
|
|
339
|
+
pointer-events: auto;
|
|
340
|
+
visibility: visible;
|
|
341
|
+
`,routerLogoCloseButton:l`
|
|
342
|
+
font-weight: ${n.weight.semibold};
|
|
343
|
+
font-size: ${n.size.xs};
|
|
344
|
+
background: linear-gradient(to right, #98f30c, #00f4a3);
|
|
345
|
+
background-clip: text;
|
|
346
|
+
-webkit-background-clip: text;
|
|
347
|
+
line-height: 1;
|
|
348
|
+
-webkit-text-fill-color: transparent;
|
|
349
|
+
white-space: nowrap;
|
|
350
|
+
`,mainCloseBtnDivider:l`
|
|
351
|
+
width: 1px;
|
|
352
|
+
background: ${X.colors.gray[600]};
|
|
353
|
+
height: 100%;
|
|
354
|
+
border-radius: 999999px;
|
|
355
|
+
color: transparent;
|
|
356
|
+
`,mainCloseBtnIconContainer:l`
|
|
357
|
+
position: relative;
|
|
358
|
+
width: ${r[5]};
|
|
359
|
+
height: ${r[5]};
|
|
360
|
+
background: pink;
|
|
361
|
+
border-radius: 999999px;
|
|
362
|
+
overflow: hidden;
|
|
363
|
+
`,mainCloseBtnIconOuter:l`
|
|
364
|
+
width: ${r[5]};
|
|
365
|
+
height: ${r[5]};
|
|
366
|
+
position: absolute;
|
|
367
|
+
top: 50%;
|
|
368
|
+
left: 50%;
|
|
369
|
+
transform: translate(-50%, -50%);
|
|
370
|
+
filter: blur(3px) saturate(1.8) contrast(2);
|
|
371
|
+
`,mainCloseBtnIconInner:l`
|
|
372
|
+
width: ${r[4]};
|
|
373
|
+
height: ${r[4]};
|
|
374
|
+
position: absolute;
|
|
375
|
+
top: 50%;
|
|
376
|
+
left: 50%;
|
|
377
|
+
transform: translate(-50%, -50%);
|
|
378
|
+
`,panelCloseBtn:l`
|
|
379
|
+
position: absolute;
|
|
380
|
+
cursor: pointer;
|
|
381
|
+
z-index: 100001;
|
|
382
|
+
display: flex;
|
|
383
|
+
align-items: center;
|
|
384
|
+
justify-content: center;
|
|
385
|
+
outline: none;
|
|
386
|
+
background-color: ${t.darkGray[700]};
|
|
387
|
+
&:hover {
|
|
388
|
+
background-color: ${t.darkGray[500]};
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
top: 0;
|
|
392
|
+
right: ${r[2]};
|
|
393
|
+
transform: translate(0, -100%);
|
|
394
|
+
border-right: ${t.darkGray[300]} 1px solid;
|
|
395
|
+
border-left: ${t.darkGray[300]} 1px solid;
|
|
396
|
+
border-top: ${t.darkGray[300]} 1px solid;
|
|
397
|
+
border-bottom: none;
|
|
398
|
+
border-radius: ${a.radius.sm} ${a.radius.sm} 0px 0px;
|
|
399
|
+
padding: ${r[1]} ${r[1.5]} ${r[.5]} ${r[1.5]};
|
|
400
|
+
|
|
401
|
+
&::after {
|
|
402
|
+
content: ' ';
|
|
403
|
+
position: absolute;
|
|
404
|
+
top: 100%;
|
|
405
|
+
left: -${r[2.5]};
|
|
406
|
+
height: ${r[1.5]};
|
|
407
|
+
width: calc(100% + ${r[5]});
|
|
408
|
+
}
|
|
409
|
+
`,panelCloseBtnIcon:l`
|
|
410
|
+
color: ${t.gray[400]};
|
|
411
|
+
width: ${r[2]};
|
|
412
|
+
height: ${r[2]};
|
|
413
|
+
`,navigateButton:l`
|
|
414
|
+
background: none;
|
|
415
|
+
border: none;
|
|
416
|
+
padding: 0 0 0 4px;
|
|
417
|
+
margin: 0;
|
|
418
|
+
color: ${t.gray[400]};
|
|
419
|
+
font-size: ${c.md};
|
|
420
|
+
cursor: pointer;
|
|
421
|
+
line-height: 1;
|
|
422
|
+
vertical-align: middle;
|
|
423
|
+
margin-right: 0.5ch;
|
|
424
|
+
flex-shrink: 0;
|
|
425
|
+
&:hover {
|
|
426
|
+
color: ${t.blue[300]};
|
|
427
|
+
}
|
|
428
|
+
`}};function Z(){let[e]=C(xt(A(it)));return e}var St=e=>{try{let t=localStorage.getItem(e);return typeof t==`string`?JSON.parse(t):void 0}catch{return}};function Ct(e,t){let[n,r]=C();return T(()=>{r(St(e)??(typeof t==`function`?t():t))}),[n,t=>{r(n=>{let r=t;typeof t==`function`&&(r=t(n));try{localStorage.setItem(e,JSON.stringify(r))}catch{}return r})}]}var wt=V(`<span><svg xmlns=http://www.w3.org/2000/svg width=12 height=12 fill=none viewBox="0 0 24 24"><path stroke=currentColor stroke-linecap=round stroke-linejoin=round stroke-width=2 d="M9 18l6-6-6-6">`),Tt=V(`<div>`),Et=V(`<button><span> `),Dt=V(`<div><div><button> [<!> ... <!>]`),Ot=V(`<button><span></span> 🔄 `),kt=V(`<span>:`),At=V(`<span>`),jt=({expanded:e,style:n={}})=>{let r=Ft();return(()=>{var n=wt(),i=n.firstChild;return w(a=>{var o=r().expander,s=t(r().expanderIcon(e));return o!==a.e&&U(n,a.e=o),s!==a.t&&H(i,`class`,a.t=s),a},{e:void 0,t:void 0}),n})()};function Mt(e,t){if(t<1)return[];let n=0,r=[];for(;n<e.length;)r.push(e.slice(n,n+t)),n+=t;return r}function Nt(e){return Symbol.iterator in e}function Q({value:e,defaultExpanded:n,pageSize:r=100,filterSubEntries:i,...a}){let[o,s]=C(!!n),c=()=>s(e=>!e),l=E(()=>typeof e()),u=E(()=>{let t=[],r=e=>{let t=n===!0?{[e.label]:!0}:n?.[e.label];return{...e,value:()=>e.value,defaultExpanded:t}};return Array.isArray(e())?t=e().map((e,t)=>r({label:t.toString(),value:e})):e()!==null&&typeof e()==`object`&&Nt(e())&&typeof e()[Symbol.iterator]==`function`?t=Array.from(e(),(e,t)=>r({label:t.toString(),value:e})):typeof e()==`object`&&e()!==null&&(t=Object.entries(e()).map(([e,t])=>r({label:e,value:t}))),i?i(t):t}),d=E(()=>Mt(u(),r)),[f,p]=C([]),[m,h]=C(void 0),g=Ft(),_=()=>{h(e()())},v=t=>z(Q,_e({value:e,filterSubEntries:i},a,t));return(()=>{var n=Tt();return W(n,(()=>{var n=B(()=>!!d().length);return()=>n()?[(()=>{var e=Et(),t=e.firstChild,n=t.firstChild;return e.$$click=()=>c(),W(e,z(jt,{get expanded(){return o()??!1}}),t),W(e,()=>a.label,t),W(t,()=>String(l).toLowerCase()===`iterable`?`(Iterable) `:``,n),W(t,()=>u().length,n),W(t,()=>u().length>1?`items`:`item`,null),w(n=>{var r=g().expandButton,i=g().info;return r!==n.e&&U(e,n.e=r),i!==n.t&&U(t,n.t=i),n},{e:void 0,t:void 0}),e})(),B(()=>B(()=>!!(o()??!1))()?B(()=>d().length===1)()?(()=>{var e=Tt();return W(e,()=>u().map((e,t)=>v(e))),w(()=>U(e,g().subEntries)),e})():(()=>{var e=Tt();return W(e,()=>d().map((e,n)=>(()=>{var i=Dt(),a=i.firstChild,o=a.firstChild,s=o.firstChild,c=s.nextSibling,l=c.nextSibling.nextSibling;return l.nextSibling,o.$$click=()=>p(e=>e.includes(n)?e.filter(e=>e!==n):[...e,n]),W(o,z(jt,{get expanded(){return f().includes(n)}}),s),W(o,n*r,c),W(o,n*r+r-1,l),W(a,(()=>{var t=B(()=>!!f().includes(n));return()=>t()?(()=>{var t=Tt();return W(t,()=>e.map(e=>v(e))),w(()=>U(t,g().subEntries)),t})():null})(),null),w(e=>{var n=g().entry,r=t(g().labelButton,`labelButton`);return n!==e.e&&U(a,e.e=n),r!==e.t&&U(o,e.t=r),e},{e:void 0,t:void 0}),i})())),w(()=>U(e,g().subEntries)),e})():null)]:B(()=>l()===`function`)()?z(Q,{get label(){return(()=>{var e=Ot(),t=e.firstChild;return e.$$click=_,W(t,()=>a.label),w(()=>U(e,g().refreshValueBtn)),e})()},value:m,defaultExpanded:{}}):[(()=>{var e=kt(),t=e.firstChild;return W(e,()=>a.label,t),e})(),` `,(()=>{var t=At();return W(t,()=>yt(e())),w(()=>U(t,g().value)),t})()]})()),w(()=>U(n,g().entry)),n})()}var Pt=e=>{let{colors:t,font:n,size:r}=X,{fontFamily:i,lineHeight:a,size:o}=n,s=e?Y.bind({target:e}):Y;return{entry:s`
|
|
429
|
+
font-family: ${i.mono};
|
|
430
|
+
font-size: ${o.xs};
|
|
431
|
+
line-height: ${a.sm};
|
|
432
|
+
outline: none;
|
|
433
|
+
word-break: break-word;
|
|
434
|
+
`,labelButton:s`
|
|
435
|
+
cursor: pointer;
|
|
436
|
+
color: inherit;
|
|
437
|
+
font: inherit;
|
|
438
|
+
outline: inherit;
|
|
439
|
+
background: transparent;
|
|
440
|
+
border: none;
|
|
441
|
+
padding: 0;
|
|
442
|
+
`,expander:s`
|
|
443
|
+
display: inline-flex;
|
|
444
|
+
align-items: center;
|
|
445
|
+
justify-content: center;
|
|
446
|
+
width: ${r[3]};
|
|
447
|
+
height: ${r[3]};
|
|
448
|
+
padding-left: 3px;
|
|
449
|
+
box-sizing: content-box;
|
|
450
|
+
`,expanderIcon:e=>e?s`
|
|
451
|
+
transform: rotate(90deg);
|
|
452
|
+
transition: transform 0.1s ease;
|
|
453
|
+
`:s`
|
|
454
|
+
transform: rotate(0deg);
|
|
455
|
+
transition: transform 0.1s ease;
|
|
456
|
+
`,expandButton:s`
|
|
457
|
+
display: flex;
|
|
458
|
+
gap: ${r[1]};
|
|
459
|
+
align-items: center;
|
|
460
|
+
cursor: pointer;
|
|
461
|
+
color: inherit;
|
|
462
|
+
font: inherit;
|
|
463
|
+
outline: inherit;
|
|
464
|
+
background: transparent;
|
|
465
|
+
border: none;
|
|
466
|
+
padding: 0;
|
|
467
|
+
`,value:s`
|
|
468
|
+
color: ${t.purple[400]};
|
|
469
|
+
`,subEntries:s`
|
|
470
|
+
margin-left: ${r[2]};
|
|
471
|
+
padding-left: ${r[2]};
|
|
472
|
+
border-left: 2px solid ${t.darkGray[400]};
|
|
473
|
+
`,info:s`
|
|
474
|
+
color: ${t.gray[500]};
|
|
475
|
+
font-size: ${o[`2xs`]};
|
|
476
|
+
padding-left: ${r[1]};
|
|
477
|
+
`,refreshValueBtn:s`
|
|
478
|
+
appearance: none;
|
|
479
|
+
border: 0;
|
|
480
|
+
cursor: pointer;
|
|
481
|
+
background: transparent;
|
|
482
|
+
color: inherit;
|
|
483
|
+
padding: 0;
|
|
484
|
+
font-family: ${i.mono};
|
|
485
|
+
font-size: ${o.xs};
|
|
486
|
+
`}};function Ft(){let[e]=C(Pt(A(it)));return e}Ie([`click`]);var It=V(`<div><div></div><div>/</div><div></div><div>/</div><div>`);function Lt(e){let t=[`s`,`min`,`h`,`d`],n=[e/1e3,e/6e4,e/36e5,e/864e5],r=0;for(let e=1;e<n.length&&!(n[e]<1);e++)r=e;return new Intl.NumberFormat(navigator.language,{compactDisplay:`short`,notation:`compact`,maximumFractionDigits:0}).format(n[r])+t[r]}function Rt({match:e,router:n}){let r=Z();if(!e)return null;let i=n().looseRoutesById[e.routeId];if(!i.options.loader)return null;let a=Date.now()-e.updatedAt,o=i.options.staleTime??n().options.defaultStaleTime??0,s=i.options.gcTime??n().options.defaultGcTime??1800*1e3;return(()=>{var e=It(),n=e.firstChild,i=n.nextSibling.nextSibling,c=i.nextSibling.nextSibling;return W(n,()=>Lt(a)),W(i,()=>Lt(o)),W(c,()=>Lt(s)),w(()=>U(e,t(r().ageTicker(a>o)))),e})()}var zt=V(`<button type=button>➔`);function Bt({to:e,params:t,search:n,router:r}){let i=Z();return(()=>{var a=zt();return a.$$click=i=>{i.stopPropagation(),r().navigate({to:e,params:t,search:n})},H(a,`title`,`Navigate to ${e}`),w(()=>U(a,i().navigateButton)),a})()}Ie([`click`]);var Vt=V(`<button><div>TANSTACK</div><div>TanStack Router v1`),Ht=V(`<div style=display:flex;align-items:center;width:100%><div style=flex-grow:1;min-width:0>`),Ut=V(`<code> `),$=V(`<code>`),Wt=V(`<div><div role=button><div>`),Gt=V(`<div>`),Kt=V(`<div><ul>`),qt=V(`<div><button><svg xmlns=http://www.w3.org/2000/svg width=10 height=6 fill=none viewBox="0 0 10 6"><path stroke=currentColor stroke-linecap=round stroke-linejoin=round stroke-width=1.667 d="M1 1l4 4 4-4"></path></svg></button><div><div></div><div><div></div></div></div><div><div><div><span>Pathname</span></div><div><code></code></div><div><div><button type=button>Routes</button><button type=button>Matches</button><button type=button>History</button></div><div><div>age / staleTime / gcTime</div></div></div><div>`),Jt=V(`<div><span>masked`),Yt=V(`<div role=button><div>`),Xt=V(`<li><div>`),Zt=V(`<li>This panel displays the most recent 15 navigations.`),Qt=V(`<div><div><div>Cached Matches</div><div>age / staleTime / gcTime</div></div><div>`),$t=V(`<div><div>Match Details</div><div><div><div><div></div></div><div><div>ID:</div><div><code></code></div></div><div><div>State:</div><div></div></div><div><div>Last Updated:</div><div></div></div></div></div><div>Explorer</div><div>`),en=V(`<div>Loader Data`),tn=V(`<div><div><span>Search Params</span></div><div>`),nn=V(`<span style=margin-left:0.5rem>`),rn=V(`<button type=button aria-label="Copy value to clipboard"style=cursor:pointer>`),an=15;function on(e){let{className:n,...r}=e,i=Z();return(()=>{var e=Vt(),a=e.firstChild,o=a.nextSibling;return He(e,_e(r,{get class(){return t(i().logo,n?n():``)}}),!1,!0),w(e=>{var t=i().tanstackLogo,n=i().routerLogo;return t!==e.e&&U(a,e.e=t),n!==e.t&&U(o,e.t=n),e},{e:void 0,t:void 0}),e})()}function sn(e){return(()=>{var t=Ht(),n=t.firstChild;return W(t,()=>e.left,n),W(n,()=>e.children),W(t,()=>e.right,null),w(()=>U(t,e.class)),t})()}function cn({routerState:e,router:a,route:o,isRoot:s,activeId:c,setActiveId:l}){let u=Z(),d=E(()=>e().pendingMatches||e().matches),f=E(()=>e().matches.find(e=>e.routeId===o.id)),p=E(()=>{try{if(f()?.params){let e=f()?.params,t=o.path||i(o.id);if(t.startsWith(`$`)){let n=t.slice(1);if(e[n])return`(${e[n]})`}}return``}catch{return``}}),m=E(()=>{if(s||!o.path)return;let e=Object.assign({},...d().map(e=>e.params)),t=r({path:o.fullPath,params:e,decoder:a().pathParamsDecoder});return t.isMissingParams?void 0:t.interpolatedPath});return(()=>{var r=Wt(),h=r.firstChild,g=h.firstChild;return h.$$click=()=>{f()&&l(c()===o.id?``:o.id)},W(h,z(sn,{get class(){return t(u().routesRow(!!f()))},get left(){return z(Ce,{get when(){return m()},children:e=>z(Bt,{get to(){return e()},router:a})})},get right(){return z(Rt,{get match(){return f()},router:a})},get children(){return[(()=>{var e=Ut(),t=e.firstChild;return W(e,()=>s?n:o.path||i(o.id),t),w(()=>U(e,u().code)),e})(),(()=>{var e=$();return W(e,p),w(()=>U(e,u().routeParamInfo)),e})()]}}),null),W(r,(()=>{var t=B(()=>!!o.children?.length);return()=>t()?(()=>{var t=Gt();return W(t,()=>[...o.children].sort((e,t)=>e.rank-t.rank).map(t=>z(cn,{routerState:e,router:a,route:t,activeId:c,setActiveId:l}))),w(()=>U(t,u().nestedRouteRow(!!s))),t})():null})(),null),w(e=>{var n=`Open match details for ${o.id}`,r=t(u().routesRowContainer(o.id===c(),!!f())),i=t(u().matchIndicator(_t(d(),o)));return n!==e.e&&H(h,`aria-label`,e.e=n),r!==e.t&&U(h,e.t=r),i!==e.a&&U(g,e.a=i),e},{e:void 0,t:void 0,a:void 0}),r})()}var ln=function({...r}){let{isOpen:i=!0,setIsOpen:a,handleDragStart:o,router:s,routerState:c,shadowDOMTarget:l,...u}=r,{onCloseClick:d}=ot(),f=Z(),{className:p,style:m,...h}=u;e(s,`No router was found for the TanStack Router Devtools. Please place the devtools in the <RouterProvider> component tree or pass the router instance to the devtools manually.`);let[g,_]=Ct(`tanstackRouterDevtoolsActiveTab`,`routes`),[v,y]=Ct(`tanstackRouterDevtoolsActiveRouteId`,``),[b,x]=C([]),[S,O]=C(!1);T(()=>{let e=c().matches,t=e[e.length-1];if(!t)return;let n=D(()=>b()),r=n[0],i=r&&r.pathname===t.pathname&&JSON.stringify(r.search??{})===JSON.stringify(t.search??{});(!r||!i)&&(n.length>=an&&O(!0),x(e=>{let n=[t,...e];return n.splice(an),n}))});let k=E(()=>[...c().pendingMatches??[],...c().matches,...c().cachedMatches].find(e=>e.routeId===v()||e.id===v())),A=E(()=>Object.keys(c().location.search).length),j=E(()=>({...s(),state:c()})),ee=E(()=>Object.fromEntries(bt(Object.keys(j()),[`state`,`routesById`,`routesByPath`,`options`,`manifest`].map(e=>t=>t!==e)).map(e=>[e,j()[e]]).filter(e=>typeof e[1]!=`function`&&![`__store`,`basepath`,`injectedHtml`,`subscribers`,`latestLoadPromise`,`navigateTimeout`,`resetNextScroll`,`tempLocationKey`,`latestLocation`,`routeTree`,`history`].includes(e[0])))),M=E(()=>k()?.loaderData),N=E(()=>k()),te=E(()=>c().location.search);return(()=>{var e=qt(),r=e.firstChild,i=r.firstChild,l=r.nextSibling,u=l.firstChild,x=u.nextSibling,C=x.firstChild,T=l.nextSibling,E=T.firstChild,D=E.firstChild;D.firstChild;var O=D.nextSibling,j=O.firstChild,P=O.nextSibling,F=P.firstChild,I=F.firstChild,L=I.nextSibling,ne=L.nextSibling,re=F.nextSibling,R=P.nextSibling;return He(e,_e({get class(){return t(f().devtoolsPanel,`TanStackRouterDevtoolsPanel`,p?p():``)},get style(){return m?m():``}},h),!1,!0),W(e,o?(()=>{var e=Gt();return ze(e,`mousedown`,o,!0),w(()=>U(e,f().dragHandle)),e})():null,r),r.$$click=e=>{a&&a(!1),d(e)},W(u,z(on,{"aria-hidden":!0,onClick:e=>{a&&a(!1),d(e)}})),W(C,z(Q,{label:`Router`,value:ee,defaultExpanded:{state:{},context:{},options:{}},filterSubEntries:e=>e.filter(e=>typeof e.value()!=`function`)})),W(D,(()=>{var e=B(()=>!!c().location.maskedLocation);return()=>e()?(()=>{var e=Jt(),t=e.firstChild;return w(n=>{var r=f().maskedBadgeContainer,i=f().maskedBadge;return r!==n.e&&U(e,n.e=r),i!==n.t&&U(t,n.t=i),n},{e:void 0,t:void 0}),e})():null})(),null),W(j,()=>c().location.pathname),W(O,(()=>{var e=B(()=>!!c().location.maskedLocation);return()=>e()?(()=>{var e=$();return W(e,()=>c().location.maskedLocation?.pathname),w(()=>U(e,f().maskedLocation)),e})():null})(),null),I.$$click=()=>{_(`routes`)},L.$$click=()=>{_(`matches`)},ne.$$click=()=>{_(`history`)},W(R,z(we,{get children(){return[z(Te,{get when(){return g()===`routes`},get children(){return z(cn,{routerState:c,router:s,get route(){return s().routeTree},isRoot:!0,activeId:v,setActiveId:y})}}),z(Te,{get when(){return g()===`matches`},get children(){var e=Gt();return W(e,()=>(c().pendingMatches?.length?c().pendingMatches:c().matches)?.map((e,r)=>(()=>{var r=Yt(),i=r.firstChild;return r.$$click=()=>y(v()===e.id?``:e.id),W(r,z(sn,{get left(){return z(Bt,{get to(){return e.pathname},get params(){return e.params},get search(){return e.search},router:s})},get right(){return z(Rt,{match:e,router:s})},get children(){var t=$();return W(t,()=>`${e.routeId===`__root__`?n:e.pathname}`),w(()=>U(t,f().matchID)),t}}),null),w(n=>{var a=`Open match details for ${e.id}`,o=t(f().matchRow(e===k())),s=t(f().matchIndicator(gt(e)));return a!==n.e&&H(r,`aria-label`,n.e=a),o!==n.t&&U(r,n.t=o),s!==n.a&&U(i,n.a=s),n},{e:void 0,t:void 0,a:void 0}),r})())),e}}),z(Te,{get when(){return g()===`history`},get children(){var e=Kt(),r=e.firstChild;return W(r,z(Se,{get each(){return b()},children:(e,r)=>(()=>{var i=Xt(),a=i.firstChild;return W(i,z(sn,{get left(){return z(Bt,{get to(){return e.pathname},get params(){return e.params},get search(){return e.search},router:s})},get right(){return z(Rt,{match:e,router:s})},get children(){var t=$();return W(t,()=>`${e.routeId===`__root__`?n:e.pathname}`),w(()=>U(t,f().matchID)),t}}),null),w(n=>{var o=t(f().matchRow(e===k())),s=t(f().matchIndicator(r()===0?`green`:`gray`));return o!==n.e&&U(i,n.e=o),s!==n.t&&U(a,n.t=s),n},{e:void 0,t:void 0}),i})()}),null),W(r,(()=>{var e=B(()=>!!S());return()=>e()?(()=>{var e=Zt();return w(()=>U(e,f().historyOverflowContainer)),e})():null})(),null),e}})]}})),W(T,(()=>{var e=B(()=>!!c().cachedMatches.length);return()=>e()?(()=>{var e=Qt(),n=e.firstChild,r=n.firstChild.nextSibling,i=n.nextSibling;return W(i,()=>c().cachedMatches.map(e=>(()=>{var n=Yt(),r=n.firstChild;return n.$$click=()=>y(v()===e.id?``:e.id),W(n,z(sn,{get left(){return z(Bt,{get to(){return e.pathname},get params(){return e.params},get search(){return e.search},router:s})},get right(){return z(Rt,{match:e,router:s})},get children(){var t=$();return W(t,()=>`${e.id}`),w(()=>U(t,f().matchID)),t}}),null),w(i=>{var a=`Open match details for ${e.id}`,o=t(f().matchRow(e===k())),s=t(f().matchIndicator(gt(e)));return a!==i.e&&H(n,`aria-label`,i.e=a),o!==i.t&&U(n,i.t=o),s!==i.a&&U(r,i.a=s),i},{e:void 0,t:void 0,a:void 0}),n})())),w(t=>{var i=f().cachedMatchesContainer,a=f().detailsHeader,o=f().detailsHeaderInfo;return i!==t.e&&U(e,t.e=i),a!==t.t&&U(n,t.t=a),o!==t.a&&U(r,t.a=o),t},{e:void 0,t:void 0,a:void 0}),e})():null})(),null),W(e,(()=>{var e=B(()=>!!(k()&&k()?.status));return()=>e()?(()=>{var e=$t(),t=e.firstChild,n=t.nextSibling,r=n.firstChild,i=r.firstChild,a=i.firstChild,o=i.nextSibling,s=o.firstChild.nextSibling,l=s.firstChild,u=o.nextSibling,d=u.firstChild.nextSibling,p=u.nextSibling,m=p.firstChild.nextSibling,h=n.nextSibling,g=h.nextSibling;return W(a,(()=>{var e=B(()=>!!(k()?.status===`success`&&k()?.isFetching));return()=>e()?`fetching`:k()?.status})()),W(l,()=>k()?.id),W(d,(()=>{var e=B(()=>!!c().pendingMatches?.find(e=>e.id===k()?.id));return()=>e()?`Pending`:c().matches.find(e=>e.id===k()?.id)?`Active`:`Cached`})()),W(m,(()=>{var e=B(()=>!!k()?.updatedAt);return()=>e()?new Date(k()?.updatedAt).toLocaleTimeString():`N/A`})()),W(e,(()=>{var e=B(()=>!!M());return()=>e()?[(()=>{var e=en();return w(()=>U(e,f().detailsHeader)),e})(),(()=>{var e=Gt();return W(e,z(Q,{label:`loaderData`,value:M,defaultExpanded:{}})),w(()=>U(e,f().detailsContent)),e})()]:null})(),h),W(g,z(Q,{label:`Match`,value:N,defaultExpanded:{}})),w(n=>{var a=f().thirdContainer,c=f().detailsHeader,l=f().matchDetails,_=f().matchStatus(k()?.status,k()?.isFetching),v=f().matchDetailsInfoLabel,y=f().matchDetailsInfo,b=f().matchDetailsInfoLabel,x=f().matchDetailsInfo,S=f().matchDetailsInfoLabel,C=f().matchDetailsInfo,w=f().detailsHeader,T=f().detailsContent;return a!==n.e&&U(e,n.e=a),c!==n.t&&U(t,n.t=c),l!==n.a&&U(r,n.a=l),_!==n.o&&U(i,n.o=_),v!==n.i&&U(o,n.i=v),y!==n.n&&U(s,n.n=y),b!==n.s&&U(u,n.s=b),x!==n.h&&U(d,n.h=x),S!==n.r&&U(p,n.r=S),C!==n.d&&U(m,n.d=C),w!==n.l&&U(h,n.l=w),T!==n.u&&U(g,n.u=T),n},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0,h:void 0,r:void 0,d:void 0,l:void 0,u:void 0}),e})():null})(),null),W(e,(()=>{var e=B(()=>!!A());return()=>e()?(()=>{var e=tn(),t=e.firstChild;t.firstChild;var n=t.nextSibling;return W(t,typeof navigator<`u`?(()=>{var e=nn();return W(e,z(un,{getValue:()=>{let e=c().location.search;return JSON.stringify(e)}})),e})():null,null),W(n,z(Q,{value:te,get defaultExpanded(){return Object.keys(c().location.search).reduce((e,t)=>(e[t]={},e),{})}})),w(r=>{var i=f().fourthContainer,a=f().detailsHeader,o=f().detailsContent;return i!==r.e&&U(e,r.e=i),a!==r.t&&U(t,r.t=a),o!==r.a&&U(n,r.a=o),r},{e:void 0,t:void 0,a:void 0}),e})():null})(),null),w(e=>{var n=f().panelCloseBtn,a=f().panelCloseBtnIcon,o=f().firstContainer,s=f().row,c=f().routerExplorerContainer,d=f().routerExplorer,p=f().secondContainer,m=f().matchesContainer,h=f().detailsHeader,_=f().detailsContent,v=f().detailsHeader,y=f().routeMatchesToggle,b=g()===`routes`,S=t(f().routeMatchesToggleBtn(g()===`routes`,!0)),w=g()===`matches`,k=t(f().routeMatchesToggleBtn(g()===`matches`,!0)),A=g()===`history`,j=t(f().routeMatchesToggleBtn(g()===`history`,!1)),ee=f().detailsHeaderInfo,M=t(f().routesContainer);return n!==e.e&&U(r,e.e=n),a!==e.t&&H(i,`class`,e.t=a),o!==e.a&&U(l,e.a=o),s!==e.o&&U(u,e.o=s),c!==e.i&&U(x,e.i=c),d!==e.n&&U(C,e.n=d),p!==e.s&&U(T,e.s=p),m!==e.h&&U(E,e.h=m),h!==e.r&&U(D,e.r=h),_!==e.d&&U(O,e.d=_),v!==e.l&&U(P,e.l=v),y!==e.u&&U(F,e.u=y),b!==e.c&&(I.disabled=e.c=b),S!==e.w&&U(I,e.w=S),w!==e.m&&(L.disabled=e.m=w),k!==e.f&&U(L,e.f=k),A!==e.y&&(ne.disabled=e.y=A),j!==e.g&&U(ne,e.g=j),ee!==e.p&&U(re,e.p=ee),M!==e.b&&U(R,e.b=M),e},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0,h:void 0,r:void 0,d:void 0,l:void 0,u:void 0,c:void 0,w:void 0,m:void 0,f:void 0,y:void 0,g:void 0,p:void 0,b:void 0}),e})()};function un({getValue:e}){let[t,n]=C(!1),r=null,i=async()=>{if(typeof navigator>`u`||!navigator.clipboard?.writeText){console.warn(`TanStack Router Devtools: Clipboard API unavailable`);return}try{let t=e();await navigator.clipboard.writeText(t),n(!0),r&&clearTimeout(r),r=setTimeout(()=>n(!1),2500)}catch(e){console.error(`TanStack Router Devtools: Failed to copy`,e)}};return O(()=>{r&&clearTimeout(r)}),(()=>{var e=rn();return e.$$click=i,W(e,()=>t()?`✅`:`📋`),w(()=>H(e,`title`,t()?`Copied!`:`Copy`)),e})()}Ie([`click`,`mousedown`]);var dn=Object.freeze(Object.defineProperty({__proto__:null,BaseTanStackRouterDevtoolsPanel:ln,default:ln},Symbol.toStringTag,{value:`Module`}));export{ln as B,V as _,vt as a,Z as b,dn as c,C as d,be as f,He as g,H as h,z as i,w as l,_e as m,rt as n,T as o,W as p,U as r,E as s,at as t,Ct as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./clsx-CbprLf2V.js";import{B as t,_ as n,a as r,b as i,d as a,f as o,g as s,h as c,i as l,l as u,m as d,n as f,o as p,p as m,r as h,s as g,t as _,u as v}from"./BaseTanStackRouterDevtoolsPanel-Bmws3ikM-q5p5qKUx.js";var ee=n(`<svg xmlns=http://www.w3.org/2000/svg enable-background="new 0 0 634 633"viewBox="0 0 634 633"><g transform=translate(1)><linearGradient x1=-641.486 x2=-641.486 y1=856.648 y2=855.931 gradientTransform="matrix(633 0 0 -633 406377 542258)"gradientUnits=userSpaceOnUse><stop offset=0 stop-color=#6bdaff></stop><stop offset=0.319 stop-color=#f9ffb5></stop><stop offset=0.706 stop-color=#ffa770></stop><stop offset=1 stop-color=#ff7373></stop></linearGradient><circle cx=316.5 cy=316.5 r=316.5 fill-rule=evenodd clip-rule=evenodd></circle><defs><filter width=454 height=396.9 x=-137.5 y=412 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask width=454 height=396.9 x=-137.5 y=412 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#FFF fill-rule=evenodd clip-rule=evenodd></circle></g></mask><ellipse cx=89.5 cy=610.5 fill=#015064 fill-rule=evenodd stroke=#00CFE2 stroke-width=25 clip-rule=evenodd rx=214.5 ry=186></ellipse><defs><filter width=454 height=396.9 x=316.5 y=412 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask width=454 height=396.9 x=316.5 y=412 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#FFF fill-rule=evenodd clip-rule=evenodd></circle></g></mask><ellipse cx=543.5 cy=610.5 fill=#015064 fill-rule=evenodd stroke=#00CFE2 stroke-width=25 clip-rule=evenodd rx=214.5 ry=186></ellipse><defs><filter width=454 height=396.9 x=-137.5 y=450 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask width=454 height=396.9 x=-137.5 y=450 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#FFF fill-rule=evenodd clip-rule=evenodd></circle></g></mask><ellipse cx=89.5 cy=648.5 fill=#015064 fill-rule=evenodd stroke=#00A8B8 stroke-width=25 clip-rule=evenodd rx=214.5 ry=186></ellipse><defs><filter width=454 height=396.9 x=316.5 y=450 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask width=454 height=396.9 x=316.5 y=450 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#FFF fill-rule=evenodd clip-rule=evenodd></circle></g></mask><ellipse cx=543.5 cy=648.5 fill=#015064 fill-rule=evenodd stroke=#00A8B8 stroke-width=25 clip-rule=evenodd rx=214.5 ry=186></ellipse><defs><filter width=454 height=396.9 x=-137.5 y=486 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask width=454 height=396.9 x=-137.5 y=486 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#FFF fill-rule=evenodd clip-rule=evenodd></circle></g></mask><ellipse cx=89.5 cy=684.5 fill=#015064 fill-rule=evenodd stroke=#007782 stroke-width=25 clip-rule=evenodd rx=214.5 ry=186></ellipse><defs><filter width=454 height=396.9 x=316.5 y=486 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask width=454 height=396.9 x=316.5 y=486 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#FFF fill-rule=evenodd clip-rule=evenodd></circle></g></mask><ellipse cx=543.5 cy=684.5 fill=#015064 fill-rule=evenodd stroke=#007782 stroke-width=25 clip-rule=evenodd rx=214.5 ry=186></ellipse><defs><filter width=176.9 height=129.3 x=272.2 y=308 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask width=176.9 height=129.3 x=272.2 y=308 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#FFF fill-rule=evenodd clip-rule=evenodd></circle></g></mask><g><path fill=none stroke=#000 stroke-linecap=round stroke-linejoin=bevel stroke-width=11 d="M436 403.2l-5 28.6m-140-90.3l-10.9 62m52.8-19.4l-4.3 27.1"></path><linearGradient x1=-645.656 x2=-646.499 y1=854.878 y2=854.788 gradientTransform="matrix(-184.159 -32.4722 11.4608 -64.9973 -128419.844 34938.836)"gradientUnits=userSpaceOnUse><stop offset=0 stop-color=#ee2700></stop><stop offset=1 stop-color=#ff008e></stop></linearGradient><path fill-rule=evenodd d="M344.1 363l97.7 17.2c5.8 2.1 8.2 6.2 7.1 12.1-1 5.9-4.7 9.2-11 9.9l-106-18.7-57.5-59.2c-3.2-4.8-2.9-9.1.8-12.8 3.7-3.7 8.3-4.4 13.7-2.1l55.2 53.6z"clip-rule=evenodd></path><path fill=#D8D8D8 fill-rule=evenodd stroke=#FFF stroke-linecap=round stroke-linejoin=bevel stroke-width=7 d="M428.3 384.5l.9-6.5m-33.9 1.5l.9-6.5m-34 .5l.9-6.1m-38.9-16.1l4.2-3.9m-25.2-16.1l4.2-3.9"clip-rule=evenodd></path></g><defs><filter width=280.6 height=317.4 x=73.2 y=113.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask width=280.6 height=317.4 x=73.2 y=113.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#FFF fill-rule=evenodd clip-rule=evenodd></circle></g></mask><g><linearGradient x1=-646.8 x2=-646.8 y1=854.844 y2=853.844 gradientTransform="matrix(-100.1751 48.8587 -97.9753 -200.879 19124.773 203538.61)"gradientUnits=userSpaceOnUse><stop offset=0 stop-color=#a17500></stop><stop offset=1 stop-color=#5d2100></stop></linearGradient><path fill-rule=evenodd d="M192.3 203c8.1 37.3 14 73.6 17.8 109.1 3.8 35.4 2.8 75.2-2.9 119.2l61.2-16.7c-15.6-59-25.2-97.9-28.6-116.6-3.4-18.7-10.8-51.8-22.2-99.6l-25.3 4.6"clip-rule=evenodd></path><linearGradient x1=-635.467 x2=-635.467 y1=852.115 y2=851.115 gradientTransform="matrix(92.6873 4.8575 2.0257 -38.6535 57323.695 36176.047)"gradientUnits=userSpaceOnUse><stop offset=0 stop-color=#2f8a00></stop><stop offset=1 stop-color=#90ff57></stop></linearGradient><path fill-rule=evenodd stroke=#2F8A00 stroke-width=13 d="M195 183.9s-12.6-22.1-36.5-29.9c-15.9-5.2-34.4-1.5-55.5 11.1 15.9 14.3 29.5 22.6 40.7 24.9 16.8 3.6 51.3-6.1 51.3-6.1z"clip-rule=evenodd></path><linearGradient x1=-636.573 x2=-636.573 y1=855.444 y2=854.444 gradientTransform="matrix(109.9945 5.7646 6.3597 -121.3507 64719.133 107659.336)"gradientUnits=userSpaceOnUse><stop offset=0 stop-color=#2f8a00></stop><stop offset=1 stop-color=#90ff57></stop></linearGradient><path fill-rule=evenodd stroke=#2F8A00 stroke-width=13 d="M194.9 184.5s-47.5-8.5-83.2 15.7c-23.8 16.2-34.3 49.3-31.6 99.3 30.3-27.8 52.1-48.5 65.2-61.9 19.8-20 49.6-53.1 49.6-53.1z"clip-rule=evenodd></path><linearGradient x1=-632.145 x2=-632.145 y1=854.174 y2=853.174 gradientTransform="matrix(62.9558 3.2994 3.5021 -66.8246 37035.367 59284.227)"gradientUnits=userSpaceOnUse><stop offset=0 stop-color=#2f8a00></stop><stop offset=1 stop-color=#90ff57></stop></linearGradient><path fill-rule=evenodd stroke=#2F8A00 stroke-width=13 d="M195 183.9c-.8-21.9 6-38 20.6-48.2 14.6-10.2 29.8-15.3 45.5-15.3-6.1 21.4-14.5 35.8-25.2 43.4-10.7 7.5-24.4 14.2-40.9 20.1z"clip-rule=evenodd></path><linearGradient x1=-638.224 x2=-638.224 y1=853.801 y2=852.801 gradientTransform="matrix(152.4666 7.9904 3.0934 -59.0251 94939.86 55646.855)"gradientUnits=userSpaceOnUse><stop offset=0 stop-color=#2f8a00></stop><stop offset=1 stop-color=#90ff57></stop></linearGradient><path fill-rule=evenodd stroke=#2F8A00 stroke-width=13 d="M194.9 184.5c31.9-30 64.1-39.7 96.7-29 32.6 10.7 50.8 30.4 54.6 59.1-35.2-5.5-60.4-9.6-75.8-12.1-15.3-2.6-40.5-8.6-75.5-18z"clip-rule=evenodd></path><linearGradient x1=-637.723 x2=-637.723 y1=855.103 y2=854.103 gradientTransform="matrix(136.467 7.1519 5.2165 -99.5377 82830.875 89859.578)"gradientUnits=userSpaceOnUse><stop offset=0 stop-color=#2f8a00></stop><stop offset=1 stop-color=#90ff57></stop></linearGradient><path fill-rule=evenodd stroke=#2F8A00 stroke-width=13 d="M194.9 184.5c35.8-7.6 65.6-.2 89.2 22 23.6 22.2 37.7 49 42.3 80.3-39.8-9.7-68.3-23.8-85.5-42.4-17.2-18.5-32.5-38.5-46-59.9z"clip-rule=evenodd></path><linearGradient x1=-631.79 x2=-631.79 y1=855.872 y2=854.872 gradientTransform="matrix(60.8683 3.19 8.7771 -167.4773 31110.818 145537.61)"gradientUnits=userSpaceOnUse><stop offset=0 stop-color=#2f8a00></stop><stop offset=1 stop-color=#90ff57></stop></linearGradient><path fill-rule=evenodd stroke=#2F8A00 stroke-width=13 d="M194.9 184.5c-33.6 13.8-53.6 35.7-60.1 65.6-6.5 29.9-3.6 63.1 8.7 99.6 27.4-40.3 43.2-69.6 47.4-88 4.2-18.3 5.5-44.1 4-77.2z"clip-rule=evenodd></path><path fill=none stroke=#2F8A00 stroke-linecap=round stroke-width=8 d="M196.5 182.3c-14.8 21.6-25.1 41.4-30.8 59.4-5.7 18-9.4 33-11.1 45.1"></path><path fill=none stroke=#2F8A00 stroke-linecap=round stroke-width=8 d="M194.8 185.7c-24.4 1.7-43.8 9-58.1 21.8-14.3 12.8-24.7 25.4-31.3 37.8m99.1-68.9c29.7-6.7 52-8.4 67-5 15 3.4 26.9 8.7 35.8 15.9m-110.8-5.9c20.3 9.9 38.2 20.5 53.9 31.9 15.7 11.4 27.4 22.1 35.1 32"></path></g><defs><filter width=532 height=633 x=50.5 y=399 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask width=532 height=633 x=50.5 y=399 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#FFF fill-rule=evenodd clip-rule=evenodd></circle></g></mask><linearGradient x1=-641.104 x2=-641.278 y1=856.577 y2=856.183 gradientTransform="matrix(532 0 0 -633 341484.5 542657)"gradientUnits=userSpaceOnUse><stop offset=0 stop-color=#fff400></stop><stop offset=1 stop-color=#3c8700></stop></linearGradient><ellipse cx=316.5 cy=715.5 fill-rule=evenodd clip-rule=evenodd rx=266 ry=316.5></ellipse><defs><filter width=288 height=283 x=391 y=-24 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask width=288 height=283 x=391 y=-24 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#FFF fill-rule=evenodd clip-rule=evenodd></circle></g></mask><g><g transform="translate(397 -24)"><linearGradient x1=-1036.672 x2=-1036.672 y1=880.018 y2=879.018 gradientTransform="matrix(227 0 0 -227 235493 199764)"gradientUnits=userSpaceOnUse><stop offset=0 stop-color=#ffdf00></stop><stop offset=1 stop-color=#ff9d00></stop></linearGradient><circle cx=168.5 cy=113.5 r=113.5 fill-rule=evenodd clip-rule=evenodd></circle><linearGradient x1=-1017.329 x2=-1018.602 y1=658.003 y2=657.998 gradientTransform="matrix(30 0 0 -1 30558 771)"gradientUnits=userSpaceOnUse><stop offset=0 stop-color=#ffa400></stop><stop offset=1 stop-color=#ff5e00></stop></linearGradient><path fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12 d="M30 113H0"></path><linearGradient x1=-1014.501 x2=-1015.774 y1=839.985 y2=839.935 gradientTransform="matrix(26.5 0 0 -5.5 26925 4696.5)"gradientUnits=userSpaceOnUse><stop offset=0 stop-color=#ffa400></stop><stop offset=1 stop-color=#ff5e00></stop></linearGradient><path fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12 d="M33.5 79.5L7 74"></path><linearGradient x1=-1016.59 x2=-1017.862 y1=852.671 y2=852.595 gradientTransform="matrix(29 0 0 -8 29523 6971)"gradientUnits=userSpaceOnUse><stop offset=0 stop-color=#ffa400></stop><stop offset=1 stop-color=#ff5e00></stop></linearGradient><path fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12 d="M34 146l-29 8"></path><linearGradient x1=-1011.984 x2=-1013.257 y1=863.523 y2=863.229 gradientTransform="matrix(24 0 0 -13 24339 11407)"gradientUnits=userSpaceOnUse><stop offset=0 stop-color=#ffa400></stop><stop offset=1 stop-color=#ff5e00></stop></linearGradient><path fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12 d="M45 177l-24 13"></path><linearGradient x1=-1006.673 x2=-1007.946 y1=869.279 y2=868.376 gradientTransform="matrix(20 0 0 -19 20205 16720)"gradientUnits=userSpaceOnUse><stop offset=0 stop-color=#ffa400></stop><stop offset=1 stop-color=#ff5e00></stop></linearGradient><path fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12 d="M67 204l-20 19"></path><linearGradient x1=-992.85 x2=-993.317 y1=871.258 y2=870.258 gradientTransform="matrix(13.8339 0 0 -22.8467 13825.796 20131.938)"gradientUnits=userSpaceOnUse><stop offset=0 stop-color=#ffa400></stop><stop offset=1 stop-color=#ff5e00></stop></linearGradient><path fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12 d="M94.4 227l-13.8 22.8"></path><linearGradient x1=-953.835 x2=-953.965 y1=871.9 y2=870.9 gradientTransform="matrix(7.5 0 0 -24.5 7278 21605)"gradientUnits=userSpaceOnUse><stop offset=0 stop-color=#ffa400></stop><stop offset=1 stop-color=#ff5e00></stop></linearGradient><path fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12 d="M127.5 243.5L120 268"></path><linearGradient x1=244.504 x2=244.496 y1=871.898 y2=870.898 gradientTransform="matrix(.5 0 0 -24.5 45.5 21614)"gradientUnits=userSpaceOnUse><stop offset=0 stop-color=#ffa400></stop><stop offset=1 stop-color=#ff5e00></stop></linearGradient><path fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12 d="M167.5 252.5l.5 24.5">`);function y(){let e=o();return(()=>{var t=ee(),n=t.firstChild.firstChild,r=n.nextSibling,i=r.nextSibling,a=i.firstChild,o=i.nextSibling,s=o.firstChild,l=o.nextSibling,u=l.nextSibling,d=u.firstChild,f=u.nextSibling,p=f.firstChild,m=f.nextSibling,h=m.nextSibling,g=h.firstChild,_=h.nextSibling,v=_.firstChild,y=_.nextSibling,b=y.nextSibling,x=b.firstChild,S=b.nextSibling,te=S.firstChild,C=S.nextSibling,w=C.nextSibling,T=w.firstChild,E=w.nextSibling,D=E.firstChild,O=E.nextSibling,k=O.nextSibling,ne=k.firstChild,A=k.nextSibling,j=A.firstChild,M=A.nextSibling,N=M.nextSibling,P=N.firstChild,F=N.nextSibling,I=F.firstChild,L=F.nextSibling,R=L.firstChild.nextSibling,re=R.nextSibling,z=L.nextSibling,ie=z.firstChild,B=z.nextSibling,V=B.firstChild,H=B.nextSibling,U=H.firstChild,W=U.nextSibling,G=W.nextSibling,K=G.nextSibling,q=K.nextSibling,J=q.nextSibling,Y=J.nextSibling,ae=Y.nextSibling,oe=ae.nextSibling,se=oe.nextSibling,ce=se.nextSibling,le=ce.nextSibling,ue=le.nextSibling,de=ue.nextSibling,fe=H.nextSibling,pe=fe.firstChild,X=fe.nextSibling,me=X.firstChild,he=X.nextSibling,Z=he.nextSibling,ge=Z.nextSibling,_e=ge.firstChild,Q=ge.nextSibling,ve=Q.firstChild,ye=Q.nextSibling,be=ye.firstChild.firstChild,xe=be.nextSibling,Se=xe.nextSibling,Ce=Se.nextSibling,we=Ce.nextSibling,Te=we.nextSibling,Ee=Te.nextSibling,De=Ee.nextSibling,Oe=De.nextSibling,$=Oe.nextSibling,ke=$.nextSibling,Ae=ke.nextSibling,je=Ae.nextSibling,Me=je.nextSibling,Ne=Me.nextSibling,Pe=Ne.nextSibling,Fe=Pe.nextSibling,Ie=Fe.nextSibling;return c(n,`id`,`a-${e}`),c(r,`fill`,`url(#a-${e})`),c(a,`id`,`b-${e}`),c(o,`id`,`c-${e}`),c(s,`filter`,`url(#b-${e})`),c(l,`mask`,`url(#c-${e})`),c(d,`id`,`d-${e}`),c(f,`id`,`e-${e}`),c(p,`filter`,`url(#d-${e})`),c(m,`mask`,`url(#e-${e})`),c(g,`id`,`f-${e}`),c(_,`id`,`g-${e}`),c(v,`filter`,`url(#f-${e})`),c(y,`mask`,`url(#g-${e})`),c(x,`id`,`h-${e}`),c(S,`id`,`i-${e}`),c(te,`filter`,`url(#h-${e})`),c(C,`mask`,`url(#i-${e})`),c(T,`id`,`j-${e}`),c(E,`id`,`k-${e}`),c(D,`filter`,`url(#j-${e})`),c(O,`mask`,`url(#k-${e})`),c(ne,`id`,`l-${e}`),c(A,`id`,`m-${e}`),c(j,`filter`,`url(#l-${e})`),c(M,`mask`,`url(#m-${e})`),c(P,`id`,`n-${e}`),c(F,`id`,`o-${e}`),c(I,`filter`,`url(#n-${e})`),c(L,`mask`,`url(#o-${e})`),c(R,`id`,`p-${e}`),c(re,`fill`,`url(#p-${e})`),c(ie,`id`,`q-${e}`),c(B,`id`,`r-${e}`),c(V,`filter`,`url(#q-${e})`),c(H,`mask`,`url(#r-${e})`),c(U,`id`,`s-${e}`),c(W,`fill`,`url(#s-${e})`),c(G,`id`,`t-${e}`),c(K,`fill`,`url(#t-${e})`),c(q,`id`,`u-${e}`),c(J,`fill`,`url(#u-${e})`),c(Y,`id`,`v-${e}`),c(ae,`fill`,`url(#v-${e})`),c(oe,`id`,`w-${e}`),c(se,`fill`,`url(#w-${e})`),c(ce,`id`,`x-${e}`),c(le,`fill`,`url(#x-${e})`),c(ue,`id`,`y-${e}`),c(de,`fill`,`url(#y-${e})`),c(pe,`id`,`z-${e}`),c(X,`id`,`A-${e}`),c(me,`filter`,`url(#z-${e})`),c(he,`id`,`B-${e}`),c(Z,`fill`,`url(#B-${e})`),c(Z,`mask`,`url(#A-${e})`),c(_e,`id`,`C-${e}`),c(Q,`id`,`D-${e}`),c(ve,`filter`,`url(#C-${e})`),c(ye,`mask`,`url(#D-${e})`),c(be,`id`,`E-${e}`),c(xe,`fill`,`url(#E-${e})`),c(Se,`id`,`F-${e}`),c(Ce,`stroke`,`url(#F-${e})`),c(we,`id`,`G-${e}`),c(Te,`stroke`,`url(#G-${e})`),c(Ee,`id`,`H-${e}`),c(De,`stroke`,`url(#H-${e})`),c(Oe,`id`,`I-${e}`),c($,`stroke`,`url(#I-${e})`),c(ke,`id`,`J-${e}`),c(Ae,`stroke`,`url(#J-${e})`),c(je,`id`,`K-${e}`),c(Me,`stroke`,`url(#K-${e})`),c(Ne,`id`,`L-${e}`),c(Pe,`stroke`,`url(#L-${e})`),c(Fe,`id`,`M-${e}`),c(Ie,`stroke`,`url(#M-${e})`),t})()}var b=n(`<button type=button><div><div></div><div></div></div><div>-</div><div>TanStack Router`);function x({initialIsOpen:n,panelProps:o={},closeButtonProps:c={},toggleButtonProps:ee={},position:x=`bottom-left`,containerElement:S=`footer`,router:te,routerState:C,shadowDOMTarget:w}){let[T,E]=a(),D,[O,k]=v(`tanstackRouterDevtoolsOpen`,n),[ne,A]=v(`tanstackRouterDevtoolsHeight`,null),[j,M]=a(!1),[N,P]=a(!1),F=r(),I=i(),L=(e,t)=>{if(t.button!==0)return;P(!0);let n={originalHeight:e?.getBoundingClientRect().height??0,pageY:t.pageY},r=e=>{let t=n.pageY-e.pageY,r=n.originalHeight+t;A(r),k(!(r<70))},i=()=>{P(!1),document.removeEventListener(`mousemove`,r),document.removeEventListener(`mouseUp`,i)};document.addEventListener(`mousemove`,r),document.addEventListener(`mouseup`,i)};O(),p(()=>{M(O()??!1)}),p(()=>{if(j()){let e=T()?.parentElement?.style.paddingBottom,t=()=>{let e=D.getBoundingClientRect().height;T()?.parentElement&&E(t=>(t?.parentElement&&(t.parentElement.style.paddingBottom=`${e}px`),t))};if(t(),typeof window<`u`)return window.addEventListener(`resize`,t),()=>{window.removeEventListener(`resize`,t),T()?.parentElement&&typeof e==`string`&&E(t=>(t.parentElement.style.paddingBottom=e,t))}}else T()?.parentElement&&E(e=>(e?.parentElement&&e.parentElement.removeAttribute(`style`),e))}),p(()=>{if(T()){let e=T(),t=getComputedStyle(e).fontSize;e?.style.setProperty(`--tsrd-font-size`,t)}});let{style:R={},...re}=o,{style:z={},onClick:ie,...B}=c,{onClick:V,class:H,...U}=ee;if(!F())return null;let W=g(()=>ne()??500),G=g(()=>e(I().devtoolsPanelContainer,I().devtoolsPanelContainerVisibility(!!O()),I().devtoolsPanelContainerResizing(N),I().devtoolsPanelContainerAnimation(j(),W()+16))),K=g(()=>({height:`${W()}px`,...R||{}})),q=g(()=>e(I().mainCloseBtn,I().mainCloseBtnPosition(x),I().mainCloseBtnAnimation(!!O()),H));return l(f,{component:S,ref:E,class:`TanStackRouterDevtools`,get children(){return[l(_.Provider,{value:{onCloseClick:ie??(()=>{})},get children(){return l(t,d({ref(e){var t=D;typeof t==`function`?t(e):D=e}},re,{router:te,routerState:C,className:G,style:K,get isOpen(){return j()},setIsOpen:k,handleDragStart:e=>L(D,e),shadowDOMTarget:w}))}}),(()=>{var e=b(),t=e.firstChild,n=t.firstChild,r=n.nextSibling,i=t.nextSibling,a=i.nextSibling;return s(e,d(U,{"aria-label":`Open TanStack Router Devtools`,onClick:e=>{k(!0),V&&V(e)},get class(){return q()}}),!1,!0),m(n,l(y,{})),m(r,l(y,{})),u(e=>{var o=I().mainCloseBtnIconContainer,s=I().mainCloseBtnIconOuter,c=I().mainCloseBtnIconInner,l=I().mainCloseBtnDivider,u=I().routerLogoCloseButton;return o!==e.e&&h(t,e.e=o),s!==e.t&&h(n,e.t=s),c!==e.a&&h(r,e.a=c),l!==e.o&&h(i,e.o=l),u!==e.i&&h(a,e.i=u),e},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0}),e})()]}})}export{x as FloatingTanStackRouterDevtools,x as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function e(e){return e[e.length-1]}function t(e){return typeof e==`function`}function n(e,n){return t(e)?e(n):e}var r=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable,a=()=>Object.create(null),o=(e,t)=>s(e,t,a);function s(e,t,n=()=>({}),i=0){if(e===t)return e;if(i>500)return t;let a=t,o=d(e)&&d(a);if(!o&&!(l(e)&&l(a)))return a;let u=o?e:c(e);if(!u)return a;let f=o?a:c(a);if(!f)return a;let p=u.length,m=f.length,h=o?Array(m):n(),g=0;for(let t=0;t<m;t++){let c=o?t:f[t],l=e[c],u=a[c];if(l===u){h[c]=l,(o?t<p:r.call(e,c))&&g++;continue}if(l===null||u===null||typeof l!=`object`||typeof u!=`object`){h[c]=u;continue}let d=s(l,u,n,i+1);h[c]=d,d===l&&g++}return p===m&&g===p?e:h}function c(e){let t=Object.getOwnPropertyNames(e);for(let n of t)if(!i.call(e,n))return!1;let n=Object.getOwnPropertySymbols(e);if(n.length===0)return t;let r=t;for(let t of n){if(!i.call(e,t))return!1;r.push(t)}return r}function l(e){if(!u(e))return!1;let t=e.constructor;if(t===void 0)return!0;let n=t.prototype;return!(!u(n)||!n.hasOwnProperty(`isPrototypeOf`))}function u(e){return Object.prototype.toString.call(e)===`[object Object]`}function d(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function f(e,t,n){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let r=0,i=e.length;r<i;r++)if(!f(e[r],t[r],n))return!1;return!0}if(l(e)&&l(t)){let r=n?.ignoreUndefined??!0;if(n?.partial){for(let i in t)if((!r||t[i]!==void 0)&&!f(e[i],t[i],n))return!1;return!0}let i=0;if(!r)i=Object.keys(e).length;else for(let t in e)e[t]!==void 0&&i++;let a=0;for(let o in t)if((!r||t[o]!==void 0)&&(a++,a>i||!f(e[o],t[o],n)))return!1;return i===a}return!1}function p(e){let t,n,r=new Promise((e,r)=>{t=e,n=r});return r.status=`pending`,r.resolve=n=>{r.status=`resolved`,r.value=n,t(n),e?.(n)},r.reject=e=>{r.status=`rejected`,n(e)},r}function m(e){return typeof e?.message==`string`?e.message.startsWith(`Failed to fetch dynamically imported module`)||e.message.startsWith(`error loading dynamically imported module`)||e.message.startsWith(`Importing a module script failed`):!1}function h(e){return!!(e&&typeof e==`object`&&typeof e.then==`function`)}function g(e){return e.replace(/[\x00-\x1f\x7f]/g,``)}function _(e){let t;try{t=decodeURI(e)}catch{t=e.replaceAll(/%[0-9A-F]{2}/gi,e=>{try{return decodeURI(e)}catch{return e}})}return g(t)}var v=[`http:`,`https:`,`mailto:`,`tel:`];function y(e,t){if(!e)return!1;try{let n=new URL(e);return!t.has(n.protocol)}catch{return!1}}var b={"&":`\\u0026`,">":`\\u003e`,"<":`\\u003c`,"\u2028":`\\u2028`,"\u2029":`\\u2029`},x=/[&><\u2028\u2029]/g;function S(e){return e.replace(x,e=>b[e])}function C(e){if(!e||!/[%\\\x00-\x1f\x7f]/.test(e)&&!e.startsWith(`//`))return{path:e,handledProtocolRelativeURL:!1};let t=/%25|%5C/gi,n=0,r=``,i;for(;(i=t.exec(e))!==null;)r+=_(e.slice(n,i.index))+i[0],n=t.lastIndex;r+=_(n?e.slice(n):e);let a=!1;return r.startsWith(`//`)&&(a=!0,r=`/`+r.replace(/^\/+/,``)),{path:r,handledProtocolRelativeURL:a}}function w(e){return/\s|[^\u0000-\u007F]/.test(e)?e.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):e}var T=!0,E=`Invariant failed`;function D(e,t){if(!e){if(T)throw Error(E);var n=typeof t==`function`?t():t,r=n?`${E}: ${n}`:E;throw Error(r)}}function O(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=O(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function k(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=O(e))&&(r&&(r+=` `),r+=t);return r}export{C as a,S as c,m as d,h as f,s as h,p as i,n as l,o as m,D as n,f as o,e as p,v as r,w as s,k as t,y as u};
|