harperdb 4.7.12 → 4.7.14
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/README.md +1 -1
- package/bin/harperdb.js +34 -34
- package/bin/lite.js +28 -28
- package/launchServiceScripts/launchNatsIngestService.js +29 -29
- package/launchServiceScripts/launchNatsReplyService.js +29 -29
- package/launchServiceScripts/launchUpdateNodes4-0-0.js +29 -29
- package/npm-shrinkwrap.json +292 -256
- package/package.json +3 -3
- package/resources/RequestTarget.d.ts +1 -1
- package/resources/Resource.d.ts +13 -13
- package/resources/Table.d.ts +12 -10
- package/resources/transactionBroadcast.d.ts +4 -3
- package/server/jobs/jobProcess.js +29 -29
- package/server/replication/knownNodes.d.ts +1 -1
- package/server/threads/threadServer.js +29 -29
- package/studio/web/HDBDogOnly.svg +78 -1
- package/studio/web/assets/index-BwlW0AMB.css +1 -0
- package/studio/web/assets/{index-YHth6Ryl.css → index-CVjGhoEG.css} +1 -1
- package/studio/web/assets/{index-B_cFV1Ze.js → index-DCIk8mGR.js} +1 -1
- package/studio/web/assets/index-DHFTW4ZU.js +36 -0
- package/studio/web/assets/index-KVLE5Pus.js +217 -0
- package/studio/web/assets/{index.lazy-CFrFVE2k.js → index.lazy-CwPUt0Bc.js} +53 -53
- package/studio/web/assets/{profiler-_PkvXANS.js → profiler-Cnhc6FqT.js} +1 -1
- package/studio/web/assets/{react-redux-Cuw5Q5nk.js → react-redux-Dy0makvb.js} +2 -2
- package/studio/web/assets/startRecording-IOmSWGHg.js +2 -0
- package/studio/web/github-icon.svg +14 -2
- package/studio/web/index.html +14 -16
- package/studio/web/running.html +137 -92
- package/studio/web/running.js +1 -1
- package/utility/scripts/restartHdb.js +29 -29
- package/studio/web/assets/index-B-eMLFIg.css +0 -1
- package/studio/web/assets/index-BedIpyD2.js +0 -37
- package/studio/web/assets/index-CYB7LsMb.js +0 -203
- package/studio/web/assets/startRecording-BAY7HJ6r.js +0 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
import{V as Q,ak as D,al as x,X as J,R as W,am as Y,an as Z,ao as $,ap as ee,aq as T,c as M,ar as te,as as I,at as ne,Q as se,O as re,y as oe,au as ae,av as ie}from"./index-
|
|
1
|
+
import{V as Q,ak as D,al as x,X as J,R as W,am as Y,an as Z,ao as $,ap as ee,aq as T,c as M,ar as te,as as I,at as ne,Q as se,O as re,y as oe,au as ae,av as ie}from"./index-KVLE5Pus.js";function le(e,t,o,a){const f=d=>{t.notify(14,{error:d}),J("Error reported to customer",{"error.message":d.message})},l=Q([e.profilingEndpointBuilder],f),p=o(a);return{async send({event:d,...g}){const v=new FormData,s=D(d);if(!s)throw new Error("Failed to serialize event");v.append("event",new Blob([s],{type:"application/json"}),"event.json");let w=s.length;for(const[k,E]of x(g)){const m=D(E);if(!m)throw new Error("Failed to serialize attachment");const h=await ce(p,m);w+=h.outputBytesCount,v.append(k,new Blob([h.output]),k)}l.send({data:v,bytesCount:w})}}}function ce(e,t){return new Promise(o=>{e.write(t),e.finish(a=>{o(a)})})}function ue(e){let t=0;for(const o of e)o.stackId!==void 0&&t++;return t}const y=new Map;function de(e,t){y.set(t,e)}function fe(e){return y.get(e)}function R(e){for(const t of y.keys())t<e&&y.delete(t)}function me({rawRumEvent:e,startTime:t}){if(e.type!==W.LONG_TASK)return;const o=e.long_task.id;de(o,t)}const pe=/\/(?![vV]\d{1,2}\/)([^/\d?]*\d+[^/?]*)/g;function ve(e){return e?e.replace(pe,"/?"):"/"}const A=(e,t)=>e||ve(t);function be(e,t,o){const a={application:{id:t}};o&&(a.session={id:o});const{ids:f,names:l}=ge(e.views);f.length&&(a.view={id:f,name:l});const p=e.longTasks.map(d=>d.id).filter(d=>d!==void 0);return p.length&&(a.long_task={id:p}),a}function ge(e){const t={ids:[],names:[]};for(const o of e)t.ids.push(o.viewId),o.viewName&&t.names.push(o.viewName);return t.names=Array.from(new Set(t.names)),t}function he(e,t,o){return{event:we(e,t,o),"wall-time.json":e}}function we(e,t,o){const a=Y(t),f=be(e,t.applicationId,o),l=ke(a);return{...f,attachments:["wall-time.json"],start:new Date(e.startClocks.timeStamp).toISOString(),end:new Date(e.endClocks.timeStamp).toISOString(),family:"chrome",runtime:"chrome",format:"json",version:4,tags_profiler:l.join(","),_dd:{clock_drift:Z()}}}function ke(e){return e.concat(["language:javascript","runtime:chrome","family:chrome","host:browser"])}const Te={sampleIntervalMs:10,collectIntervalMs:6e4,minProfileDurationMs:5e3,minNumberOfSamples:50};function Ee(e,t,o,a,f,l=Te){const p=le(e,t,f,6),d=$(ee.LONG_ANIMATION_FRAME);let g;const v=[];let s={state:"stopped"};function w(n){s.state!=="running"&&(g=n?{startClocks:n.startClocks,viewId:n.id,viewName:A(n.name,document.location.pathname)}:void 0,v.push(M(e,window,"visibilitychange",B).stop,M(e,window,"beforeunload",C).stop),m())}async function k(){await P("stopped"),v.forEach(n=>n()),R(T().relative),a.set({status:"stopped",error_reason:void 0})}function E(n){if(n.state==="running")return{cleanupTasks:n.cleanupTasks,observer:n.observer};const r=[];let i;if(e.trackLongTasks){i=new PerformanceObserver(F),i.observe({entryTypes:[V()]});const u=t.subscribe(12,b=>{me(b)});r.push(()=>i?.disconnect()),r.push(u.unsubscribe)}const c=t.subscribe(2,u=>{const b={viewId:u.id,viewName:A(u.name,document.location.pathname),startClocks:u.startClocks};S(b),g=b});return r.push(c.unsubscribe),{cleanupTasks:r,observer:i}}function m(){const n=te().Profiler;if(!n)throw a.set({status:"error",error_reason:"not-supported-by-browser"}),new Error("RUM Profiler is not supported in this browser.");h(s).catch(I);const{cleanupTasks:r,observer:i}=E(s);let c;try{c=new n({sampleInterval:l.sampleIntervalMs,maxBufferSize:Math.round(l.collectIntervalMs*1.5/l.sampleIntervalMs)})}catch(u){u instanceof Error&&u.message.includes("disabled by Document Policy")?(ne.warn("[DD_RUM] Profiler startup failed. Ensure your server includes the `Document-Policy: js-profiling` response header when serving HTML pages.",u),a.set({status:"error",error_reason:"missing-document-policy-header"})):a.set({status:"error",error_reason:"unexpected-exception"});return}a.set({status:"running",error_reason:void 0}),s={state:"running",startClocks:T(),profiler:c,timeoutId:se(m,l.collectIntervalMs),longTasks:[],views:[],cleanupTasks:r,observer:i},S(g),c.addEventListener("samplebufferfull",_)}async function h(n){var r,i;if(n.state!=="running")return;L((i=(r=n.observer)===null||r===void 0?void 0:r.takeRecords())!==null&&i!==void 0?i:[]),re(n.timeoutId),n.profiler.removeEventListener("samplebufferfull",_);const{startClocks:c,longTasks:u,views:b}=n,H=T();await n.profiler.stop().then(N=>{const O=T(),q=u.length>0,X=oe(c.timeStamp,O.timeStamp)<l.minProfileDurationMs,K=ue(N.samples)<l.minNumberOfSamples;!q&&(X||K)||(j(Object.assign(N,{startClocks:c,endClocks:O,clocksOrigin:ae(),longTasks:u,views:b,sampleInterval:l.sampleIntervalMs})),R(H.relative))}).catch(I)}async function P(n){s.state==="running"&&(s.cleanupTasks.forEach(r=>r()),await h(s),s={state:n})}function S(n){s.state!=="running"||!n||s.views.push(n)}function j(n){var r;const i=(r=o.findTrackedSession())===null||r===void 0?void 0:r.id,c=he(n,e,i);p.send(c)}function _(){m()}function F(n){L(n.getEntries())}function L(n){if(s.state==="running")for(const r of n){if(r.duration<l.sampleIntervalMs)continue;const i=ie(r.startTime),c=fe(i.relative);s.longTasks.push({id:c,duration:r.duration,entryType:r.entryType,startClocks:i})}}function B(){document.visibilityState==="hidden"&&s.state==="running"?P("paused").catch(I):document.visibilityState==="visible"&&s.state==="paused"&&m()}function C(){m()}function V(){return d?"long-animation-frame":"longtask"}function U(){return s.state==="stopped"}function z(){return s.state==="running"}function G(){return s.state==="paused"}return{start:w,stop:k,isStopped:U,isRunning:z,isPaused:G}}export{Te as DEFAULT_RUM_PROFILER_CONFIGURATION,Ee as createRumProfiler};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import{aK as Te,a5 as b}from"./index-CYB7LsMb.js";function E(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var Ne=typeof Symbol=="function"&&Symbol.observable||"@@observable",ue=Ne,q=()=>Math.random().toString(36).substring(7).split("").join("."),xe={INIT:`@@redux/INIT${q()}`,REPLACE:`@@redux/REPLACE${q()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${q()}`},U=xe;function Se(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function _e(e,t,r){if(typeof e!="function")throw new Error(E(2));if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(E(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(E(1));return r(_e)(e,t)}let s=e,n=t,o=new Map,c=o,a=0,u=!1;function i(){c===o&&(c=new Map,o.forEach((d,S)=>{c.set(S,d)}))}function f(){if(u)throw new Error(E(3));return n}function l(d){if(typeof d!="function")throw new Error(E(4));if(u)throw new Error(E(5));let S=!0;i();const h=a++;return c.set(h,d),function(){if(S){if(u)throw new Error(E(6));S=!1,i(),c.delete(h),o=null}}}function y(d){if(!Se(d))throw new Error(E(7));if(typeof d.type>"u")throw new Error(E(8));if(typeof d.type!="string")throw new Error(E(17));if(u)throw new Error(E(9));try{u=!0,n=s(n,d)}finally{u=!1}return(o=c).forEach(h=>{h()}),d}function v(d){if(typeof d!="function")throw new Error(E(10));s=d,y({type:U.REPLACE})}function p(){const d=l;return{subscribe(S){if(typeof S!="object"||S===null)throw new Error(E(11));function h(){const g=S;g.next&&g.next(f())}return h(),{unsubscribe:d(h)}},[ue](){return this}}}return y({type:U.INIT}),{dispatch:y,subscribe:l,getState:f,replaceReducer:v,[ue]:p}}function Me(e){Object.keys(e).forEach(t=>{const r=e[t];if(typeof r(void 0,{type:U.INIT})>"u")throw new Error(E(12));if(typeof r(void 0,{type:U.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(E(13))})}function zt(e){const t=Object.keys(e),r={};for(let o=0;o<t.length;o++){const c=t[o];typeof e[c]=="function"&&(r[c]=e[c])}const s=Object.keys(r);let n;try{Me(r)}catch(o){n=o}return function(c={},a){if(n)throw n;let u=!1;const i={};for(let f=0;f<s.length;f++){const l=s[f],y=r[l],v=c[l],p=y(v,a);if(typeof p>"u")throw a&&a.type,new Error(E(14));i[l]=p,u=u||p!==v}return u=u||s.length!==Object.keys(c).length,u?i:c}}function ce(e,t){return function(...r){return t(e.apply(this,r))}}function Vt(e,t){if(typeof e=="function")return ce(e,t);if(typeof e!="object"||e===null)throw new Error(E(16));const r={};for(const s in e){const n=e[s];typeof n=="function"&&(r[s]=ce(n,t))}return r}function Ae(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...s)=>t(r(...s)))}function Kt(...e){return t=>(r,s)=>{const n=t(r,s);let o=()=>{throw new Error(E(15))};const c={getState:n.getState,dispatch:(u,...i)=>o(u,...i)},a=e.map(u=>u(c));return o=Ae(...a)(n.dispatch),{...n,dispatch:o}}}function Dt(e){return Se(e)&&"type"in e&&typeof e.type=="string"}function Ie(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function Fe(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function $e(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(r=>typeof r=="function")){const r=e.map(s=>typeof s=="function"?`function ${s.name||"unnamed"}()`:typeof s).join(", ");throw new TypeError(`${t}[${r}]`)}}var ie=e=>Array.isArray(e)?e:[e];function ke(e){const t=Array.isArray(e[0])?e[0]:e;return $e(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function We(e,t){const r=[],{length:s}=e;for(let n=0;n<s;n++)r.push(e[n].apply(null,t));return r}var Ue=class{constructor(e){this.value=e}deref(){return this.value}},Le=typeof WeakRef<"u"?WeakRef:Ue,je=0,ae=1;function W(){return{s:je,v:void 0,o:null,p:null}}function me(e,t={}){let r=W();const{resultEqualityCheck:s}=t;let n,o=0;function c(){let a=r;const{length:u}=arguments;for(let l=0,y=u;l<y;l++){const v=arguments[l];if(typeof v=="function"||typeof v=="object"&&v!==null){let p=a.o;p===null&&(a.o=p=new WeakMap);const w=p.get(v);w===void 0?(a=W(),p.set(v,a)):a=w}else{let p=a.p;p===null&&(a.p=p=new Map);const w=p.get(v);w===void 0?(a=W(),p.set(v,a)):a=w}}const i=a;let f;if(a.s===ae)f=a.v;else if(f=e.apply(null,arguments),o++,s){const l=n?.deref?.()??n;l!=null&&s(l,f)&&(f=l,o!==0&&o--),n=typeof f=="object"&&f!==null||typeof f=="function"?new Le(f):f}return i.s=ae,i.v=f,f}return c.clearCache=()=>{r=W(),c.resetResultsCount()},c.resultsCount=()=>o,c.resetResultsCount=()=>{o=0},c}function Ye(e,...t){const r=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,s=(...n)=>{let o=0,c=0,a,u={},i=n.pop();typeof i=="object"&&(u=i,i=n.pop()),Ie(i,`createSelector expects an output function after the inputs, but received: [${typeof i}]`);const f={...r,...u},{memoize:l,memoizeOptions:y=[],argsMemoize:v=me,argsMemoizeOptions:p=[]}=f,w=ie(y),d=ie(p),S=ke(n),h=l(function(){return o++,i.apply(null,arguments)},...w),m=v(function(){c++;const R=We(S,arguments);return a=h.apply(null,R),a},...d);return Object.assign(m,{resultFunc:i,memoizedResultFunc:h,dependencies:S,dependencyRecomputations:()=>c,resetDependencyRecomputations:()=>{c=0},lastResult:()=>a,recomputations:()=>o,resetRecomputations:()=>{o=0},memoize:l,argsMemoize:v})};return Object.assign(s,{withTypes:()=>s}),s}var ze=Ye(me),Ve=Object.assign((e,t=ze)=>{Fe(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const r=Object.keys(e),s=r.map(o=>e[o]);return t(s,(...o)=>o.reduce((c,a,u)=>(c[r[u]]=a,c),{}))},{withTypes:()=>Ve}),G={exports:{}},H={};var fe;function Ke(){if(fe)return H;fe=1;var e=Te();function t(u,i){return u===i&&(u!==0||1/u===1/i)||u!==u&&i!==i}var r=typeof Object.is=="function"?Object.is:t,s=e.useSyncExternalStore,n=e.useRef,o=e.useEffect,c=e.useMemo,a=e.useDebugValue;return H.useSyncExternalStoreWithSelector=function(u,i,f,l,y){var v=n(null);if(v.current===null){var p={hasValue:!1,value:null};v.current=p}else p=v.current;v=c(function(){function d(R){if(!S){if(S=!0,h=R,R=l(R),y!==void 0&&p.hasValue){var O=p.value;if(y(O,R))return m=O}return m=R}if(O=m,r(h,R))return O;var P=l(R);return y!==void 0&&y(O,P)?(h=R,O):(h=R,m=P)}var S=!1,h,m,g=f===void 0?null:f;return[function(){return d(i())},g===null?void 0:function(){return d(g())}]},[i,f,l,y]);var w=s(u,v[0],v[1]);return o(function(){p.hasValue=!0,p.value=w},[w]),a(w),w},H}var le;function De(){return le||(le=1,G.exports=Ke()),G.exports}De();var Be=b.version.startsWith("19"),qe=Symbol.for(Be?"react.transitional.element":"react.element"),Ge=Symbol.for("react.portal"),He=Symbol.for("react.fragment"),Xe=Symbol.for("react.strict_mode"),Ze=Symbol.for("react.profiler"),Je=Symbol.for("react.consumer"),Qe=Symbol.for("react.context"),we=Symbol.for("react.forward_ref"),et=Symbol.for("react.suspense"),tt=Symbol.for("react.suspense_list"),Q=Symbol.for("react.memo"),rt=Symbol.for("react.lazy"),nt=we,ot=Q;function st(e){if(typeof e=="object"&&e!==null){const{$$typeof:t}=e;switch(t){case qe:switch(e=e.type,e){case He:case Ze:case Xe:case et:case tt:return e;default:switch(e=e&&e.$$typeof,e){case Qe:case we:case rt:case Q:return e;case Je:return e;default:return t}}case Ge:return t}}}function ut(e){return st(e)===Q}function ct(e,t,r,s,{areStatesEqual:n,areOwnPropsEqual:o,areStatePropsEqual:c}){let a=!1,u,i,f,l,y;function v(h,m){return u=h,i=m,f=e(u,i),l=t(s,i),y=r(f,l,i),a=!0,y}function p(){return f=e(u,i),t.dependsOnOwnProps&&(l=t(s,i)),y=r(f,l,i),y}function w(){return e.dependsOnOwnProps&&(f=e(u,i)),t.dependsOnOwnProps&&(l=t(s,i)),y=r(f,l,i),y}function d(){const h=e(u,i),m=!c(h,f);return f=h,m&&(y=r(f,l,i)),y}function S(h,m){const g=!o(m,i),R=!n(h,u,m,i);return u=h,i=m,g&&R?p():g?w():R?d():y}return function(m,g){return a?S(m,g):v(m,g)}}function it(e,{initMapStateToProps:t,initMapDispatchToProps:r,initMergeProps:s,...n}){const o=t(e,n),c=r(e,n),a=s(e,n);return ct(o,c,a,e,n)}function at(e,t){const r={};for(const s in e){const n=e[s];typeof n=="function"&&(r[s]=(...o)=>t(n(...o)))}return r}function Z(e){return function(r){const s=e(r);function n(){return s}return n.dependsOnOwnProps=!1,n}}function de(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function Ee(e,t){return function(s,{displayName:n}){const o=function(a,u){return o.dependsOnOwnProps?o.mapToProps(a,u):o.mapToProps(a,void 0)};return o.dependsOnOwnProps=!0,o.mapToProps=function(a,u){o.mapToProps=e,o.dependsOnOwnProps=de(e);let i=o(a,u);return typeof i=="function"&&(o.mapToProps=i,o.dependsOnOwnProps=de(i),i=o(a,u)),i},o}}function ee(e,t){return(r,s)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${s.wrappedComponentName}.`)}}function ft(e){return e&&typeof e=="object"?Z(t=>at(e,t)):e?typeof e=="function"?Ee(e):ee(e,"mapDispatchToProps"):Z(t=>({dispatch:t}))}function lt(e){return e?typeof e=="function"?Ee(e):ee(e,"mapStateToProps"):Z(()=>({}))}function dt(e,t,r){return{...r,...e,...t}}function pt(e){return function(r,{displayName:s,areMergedPropsEqual:n}){let o=!1,c;return function(u,i,f){const l=e(u,i,f);return o?n(l,c)||(c=l):(o=!0,c=l),c}}}function yt(e){return e?typeof e=="function"?pt(e):ee(e,"mergeProps"):()=>dt}function bt(e){e()}function vt(){let e=null,t=null;return{clear(){e=null,t=null},notify(){bt(()=>{let r=e;for(;r;)r.callback(),r=r.next})},get(){const r=[];let s=e;for(;s;)r.push(s),s=s.next;return r},subscribe(r){let s=!0;const n=t={callback:r,next:null,prev:t};return n.prev?n.prev.next=n:e=n,function(){!s||e===null||(s=!1,n.next?n.next.prev=n.prev:t=n.prev,n.prev?n.prev.next=n.next:e=n.next)}}}}var pe={notify(){},get:()=>[]};function ge(e,t){let r,s=pe,n=0,o=!1;function c(w){f();const d=s.subscribe(w);let S=!1;return()=>{S||(S=!0,d(),l())}}function a(){s.notify()}function u(){p.onStateChange&&p.onStateChange()}function i(){return o}function f(){n++,r||(r=t?t.addNestedSub(u):e.subscribe(u),s=vt())}function l(){n--,r&&n===0&&(r(),r=void 0,s.clear(),s=pe)}function y(){o||(o=!0,f())}function v(){o&&(o=!1,l())}const p={addNestedSub:c,notifyNestedSubs:a,handleChangeWrapper:u,isSubscribed:i,trySubscribe:y,tryUnsubscribe:v,getListeners:()=>s};return p}var ht=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",St=ht(),mt=()=>typeof navigator<"u"&&navigator.product==="ReactNative",wt=mt(),Et=()=>St||wt?b.useLayoutEffect:b.useEffect,L=Et();function ye(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function X(e,t){if(ye(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const r=Object.keys(e),s=Object.keys(t);if(r.length!==s.length)return!1;for(let n=0;n<r.length;n++)if(!Object.prototype.hasOwnProperty.call(t,r[n])||!ye(e[r[n]],t[r[n]]))return!1;return!0}var gt={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Rt={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Ct={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Re={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Ot={[nt]:Ct,[ot]:Re};function be(e){return ut(e)?Re:Ot[e.$$typeof]||gt}var Pt=Object.defineProperty,Tt=Object.getOwnPropertyNames,ve=Object.getOwnPropertySymbols,Nt=Object.getOwnPropertyDescriptor,xt=Object.getPrototypeOf,he=Object.prototype;function J(e,t){if(typeof t!="string"){if(he){const o=xt(t);o&&o!==he&&J(e,o)}let r=Tt(t);ve&&(r=r.concat(ve(t)));const s=be(e),n=be(t);for(let o=0;o<r.length;++o){const c=r[o];if(!Rt[c]&&!(n&&n[c])&&!(s&&s[c])){const a=Nt(t,c);try{Pt(e,c,a)}catch{}}}}return e}var _t=Symbol.for("react-redux-context"),Mt=typeof globalThis<"u"?globalThis:{};function At(){if(!b.createContext)return{};const e=Mt[_t]??=new Map;let t=e.get(b.createContext);return t||(t=b.createContext(null),e.set(b.createContext,t)),t}var Ce=At(),It=[null,null];function Ft(e,t,r){L(()=>e(...t),r)}function $t(e,t,r,s,n,o){e.current=s,r.current=!1,n.current&&(n.current=null,o())}function kt(e,t,r,s,n,o,c,a,u,i,f){if(!e)return()=>{};let l=!1,y=null;const v=()=>{if(l||!a.current)return;const w=t.getState();let d,S;try{d=s(w,n.current)}catch(h){S=h,y=h}S||(y=null),d===o.current?c.current||i():(o.current=d,u.current=d,c.current=!0,f())};return r.onStateChange=v,r.trySubscribe(),v(),()=>{if(l=!0,r.tryUnsubscribe(),r.onStateChange=null,y)throw y}}function Wt(e,t){return e===t}function Ut(e,t,r,{pure:s,areStatesEqual:n=Wt,areOwnPropsEqual:o=X,areStatePropsEqual:c=X,areMergedPropsEqual:a=X,forwardRef:u=!1,context:i=Ce}={}){const f=i,l=lt(e),y=ft(t),v=yt(r),p=!!e;return d=>{const S=d.displayName||d.name||"Component",h=`Connect(${S})`,m={shouldHandleStateChanges:p,displayName:h,wrappedComponentName:S,WrappedComponent:d,initMapStateToProps:l,initMapDispatchToProps:y,initMergeProps:v,areStatesEqual:n,areStatePropsEqual:c,areOwnPropsEqual:o,areMergedPropsEqual:a};function g(P){const[_,j,N]=b.useMemo(()=>{const{reactReduxForwardedRef:C,...$}=P;return[P.context,C,$]},[P]),M=b.useMemo(()=>{let C=f;return _?.Consumer,C},[_,f]),T=b.useContext(M),A=!!P.store&&!!P.store.getState&&!!P.store.dispatch,Oe=!!T&&!!T.store,x=A?P.store:T.store,te=Oe?T.getServerState:x.getState,Y=b.useMemo(()=>it(x.dispatch,m),[x]),[I,re]=b.useMemo(()=>{if(!p)return It;const C=ge(x,A?void 0:T.subscription),$=C.notifyNestedSubs.bind(C);return[C,$]},[x,A,T]),ne=b.useMemo(()=>A?T:{...T,subscription:I},[A,T,I]),z=b.useRef(void 0),V=b.useRef(N),F=b.useRef(void 0),oe=b.useRef(!1),K=b.useRef(!1),D=b.useRef(void 0);L(()=>(K.current=!0,()=>{K.current=!1}),[]);const se=b.useMemo(()=>()=>F.current&&N===V.current?F.current:Y(x.getState(),N),[x,N]),Pe=b.useMemo(()=>$=>I?kt(p,x,I,Y,V,z,oe,K,F,re,$):()=>{},[I]);Ft($t,[V,z,oe,N,F,re]);let k;try{k=b.useSyncExternalStore(Pe,se,te?()=>Y(te(),N):se)}catch(C){throw D.current&&(C.message+=`
|
|
1
|
+
import{aK as Te,a5 as b}from"./index-KVLE5Pus.js";function E(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var Ne=typeof Symbol=="function"&&Symbol.observable||"@@observable",ue=Ne,q=()=>Math.random().toString(36).substring(7).split("").join("."),xe={INIT:`@@redux/INIT${q()}`,REPLACE:`@@redux/REPLACE${q()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${q()}`},U=xe;function Se(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function _e(e,t,r){if(typeof e!="function")throw new Error(E(2));if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(E(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(E(1));return r(_e)(e,t)}let s=e,n=t,o=new Map,c=o,a=0,u=!1;function i(){c===o&&(c=new Map,o.forEach((d,S)=>{c.set(S,d)}))}function f(){if(u)throw new Error(E(3));return n}function l(d){if(typeof d!="function")throw new Error(E(4));if(u)throw new Error(E(5));let S=!0;i();const h=a++;return c.set(h,d),function(){if(S){if(u)throw new Error(E(6));S=!1,i(),c.delete(h),o=null}}}function y(d){if(!Se(d))throw new Error(E(7));if(typeof d.type>"u")throw new Error(E(8));if(typeof d.type!="string")throw new Error(E(17));if(u)throw new Error(E(9));try{u=!0,n=s(n,d)}finally{u=!1}return(o=c).forEach(h=>{h()}),d}function v(d){if(typeof d!="function")throw new Error(E(10));s=d,y({type:U.REPLACE})}function p(){const d=l;return{subscribe(S){if(typeof S!="object"||S===null)throw new Error(E(11));function h(){const g=S;g.next&&g.next(f())}return h(),{unsubscribe:d(h)}},[ue](){return this}}}return y({type:U.INIT}),{dispatch:y,subscribe:l,getState:f,replaceReducer:v,[ue]:p}}function Me(e){Object.keys(e).forEach(t=>{const r=e[t];if(typeof r(void 0,{type:U.INIT})>"u")throw new Error(E(12));if(typeof r(void 0,{type:U.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(E(13))})}function zt(e){const t=Object.keys(e),r={};for(let o=0;o<t.length;o++){const c=t[o];typeof e[c]=="function"&&(r[c]=e[c])}const s=Object.keys(r);let n;try{Me(r)}catch(o){n=o}return function(c={},a){if(n)throw n;let u=!1;const i={};for(let f=0;f<s.length;f++){const l=s[f],y=r[l],v=c[l],p=y(v,a);if(typeof p>"u")throw a&&a.type,new Error(E(14));i[l]=p,u=u||p!==v}return u=u||s.length!==Object.keys(c).length,u?i:c}}function ce(e,t){return function(...r){return t(e.apply(this,r))}}function Vt(e,t){if(typeof e=="function")return ce(e,t);if(typeof e!="object"||e===null)throw new Error(E(16));const r={};for(const s in e){const n=e[s];typeof n=="function"&&(r[s]=ce(n,t))}return r}function Ae(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...s)=>t(r(...s)))}function Kt(...e){return t=>(r,s)=>{const n=t(r,s);let o=()=>{throw new Error(E(15))};const c={getState:n.getState,dispatch:(u,...i)=>o(u,...i)},a=e.map(u=>u(c));return o=Ae(...a)(n.dispatch),{...n,dispatch:o}}}function Dt(e){return Se(e)&&"type"in e&&typeof e.type=="string"}function Ie(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function Fe(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function $e(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(r=>typeof r=="function")){const r=e.map(s=>typeof s=="function"?`function ${s.name||"unnamed"}()`:typeof s).join(", ");throw new TypeError(`${t}[${r}]`)}}var ie=e=>Array.isArray(e)?e:[e];function ke(e){const t=Array.isArray(e[0])?e[0]:e;return $e(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function We(e,t){const r=[],{length:s}=e;for(let n=0;n<s;n++)r.push(e[n].apply(null,t));return r}var Ue=class{constructor(e){this.value=e}deref(){return this.value}},Le=typeof WeakRef<"u"?WeakRef:Ue,je=0,ae=1;function W(){return{s:je,v:void 0,o:null,p:null}}function me(e,t={}){let r=W();const{resultEqualityCheck:s}=t;let n,o=0;function c(){let a=r;const{length:u}=arguments;for(let l=0,y=u;l<y;l++){const v=arguments[l];if(typeof v=="function"||typeof v=="object"&&v!==null){let p=a.o;p===null&&(a.o=p=new WeakMap);const w=p.get(v);w===void 0?(a=W(),p.set(v,a)):a=w}else{let p=a.p;p===null&&(a.p=p=new Map);const w=p.get(v);w===void 0?(a=W(),p.set(v,a)):a=w}}const i=a;let f;if(a.s===ae)f=a.v;else if(f=e.apply(null,arguments),o++,s){const l=n?.deref?.()??n;l!=null&&s(l,f)&&(f=l,o!==0&&o--),n=typeof f=="object"&&f!==null||typeof f=="function"?new Le(f):f}return i.s=ae,i.v=f,f}return c.clearCache=()=>{r=W(),c.resetResultsCount()},c.resultsCount=()=>o,c.resetResultsCount=()=>{o=0},c}function Ye(e,...t){const r=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,s=(...n)=>{let o=0,c=0,a,u={},i=n.pop();typeof i=="object"&&(u=i,i=n.pop()),Ie(i,`createSelector expects an output function after the inputs, but received: [${typeof i}]`);const f={...r,...u},{memoize:l,memoizeOptions:y=[],argsMemoize:v=me,argsMemoizeOptions:p=[]}=f,w=ie(y),d=ie(p),S=ke(n),h=l(function(){return o++,i.apply(null,arguments)},...w),m=v(function(){c++;const R=We(S,arguments);return a=h.apply(null,R),a},...d);return Object.assign(m,{resultFunc:i,memoizedResultFunc:h,dependencies:S,dependencyRecomputations:()=>c,resetDependencyRecomputations:()=>{c=0},lastResult:()=>a,recomputations:()=>o,resetRecomputations:()=>{o=0},memoize:l,argsMemoize:v})};return Object.assign(s,{withTypes:()=>s}),s}var ze=Ye(me),Ve=Object.assign((e,t=ze)=>{Fe(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const r=Object.keys(e),s=r.map(o=>e[o]);return t(s,(...o)=>o.reduce((c,a,u)=>(c[r[u]]=a,c),{}))},{withTypes:()=>Ve}),G={exports:{}},H={};var fe;function Ke(){if(fe)return H;fe=1;var e=Te();function t(u,i){return u===i&&(u!==0||1/u===1/i)||u!==u&&i!==i}var r=typeof Object.is=="function"?Object.is:t,s=e.useSyncExternalStore,n=e.useRef,o=e.useEffect,c=e.useMemo,a=e.useDebugValue;return H.useSyncExternalStoreWithSelector=function(u,i,f,l,y){var v=n(null);if(v.current===null){var p={hasValue:!1,value:null};v.current=p}else p=v.current;v=c(function(){function d(R){if(!S){if(S=!0,h=R,R=l(R),y!==void 0&&p.hasValue){var O=p.value;if(y(O,R))return m=O}return m=R}if(O=m,r(h,R))return O;var P=l(R);return y!==void 0&&y(O,P)?(h=R,O):(h=R,m=P)}var S=!1,h,m,g=f===void 0?null:f;return[function(){return d(i())},g===null?void 0:function(){return d(g())}]},[i,f,l,y]);var w=s(u,v[0],v[1]);return o(function(){p.hasValue=!0,p.value=w},[w]),a(w),w},H}var le;function De(){return le||(le=1,G.exports=Ke()),G.exports}De();var Be=b.version.startsWith("19"),qe=Symbol.for(Be?"react.transitional.element":"react.element"),Ge=Symbol.for("react.portal"),He=Symbol.for("react.fragment"),Xe=Symbol.for("react.strict_mode"),Ze=Symbol.for("react.profiler"),Je=Symbol.for("react.consumer"),Qe=Symbol.for("react.context"),we=Symbol.for("react.forward_ref"),et=Symbol.for("react.suspense"),tt=Symbol.for("react.suspense_list"),Q=Symbol.for("react.memo"),rt=Symbol.for("react.lazy"),nt=we,ot=Q;function st(e){if(typeof e=="object"&&e!==null){const{$$typeof:t}=e;switch(t){case qe:switch(e=e.type,e){case He:case Ze:case Xe:case et:case tt:return e;default:switch(e=e&&e.$$typeof,e){case Qe:case we:case rt:case Q:return e;case Je:return e;default:return t}}case Ge:return t}}}function ut(e){return st(e)===Q}function ct(e,t,r,s,{areStatesEqual:n,areOwnPropsEqual:o,areStatePropsEqual:c}){let a=!1,u,i,f,l,y;function v(h,m){return u=h,i=m,f=e(u,i),l=t(s,i),y=r(f,l,i),a=!0,y}function p(){return f=e(u,i),t.dependsOnOwnProps&&(l=t(s,i)),y=r(f,l,i),y}function w(){return e.dependsOnOwnProps&&(f=e(u,i)),t.dependsOnOwnProps&&(l=t(s,i)),y=r(f,l,i),y}function d(){const h=e(u,i),m=!c(h,f);return f=h,m&&(y=r(f,l,i)),y}function S(h,m){const g=!o(m,i),R=!n(h,u,m,i);return u=h,i=m,g&&R?p():g?w():R?d():y}return function(m,g){return a?S(m,g):v(m,g)}}function it(e,{initMapStateToProps:t,initMapDispatchToProps:r,initMergeProps:s,...n}){const o=t(e,n),c=r(e,n),a=s(e,n);return ct(o,c,a,e,n)}function at(e,t){const r={};for(const s in e){const n=e[s];typeof n=="function"&&(r[s]=(...o)=>t(n(...o)))}return r}function Z(e){return function(r){const s=e(r);function n(){return s}return n.dependsOnOwnProps=!1,n}}function de(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function Ee(e,t){return function(s,{displayName:n}){const o=function(a,u){return o.dependsOnOwnProps?o.mapToProps(a,u):o.mapToProps(a,void 0)};return o.dependsOnOwnProps=!0,o.mapToProps=function(a,u){o.mapToProps=e,o.dependsOnOwnProps=de(e);let i=o(a,u);return typeof i=="function"&&(o.mapToProps=i,o.dependsOnOwnProps=de(i),i=o(a,u)),i},o}}function ee(e,t){return(r,s)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${s.wrappedComponentName}.`)}}function ft(e){return e&&typeof e=="object"?Z(t=>at(e,t)):e?typeof e=="function"?Ee(e):ee(e,"mapDispatchToProps"):Z(t=>({dispatch:t}))}function lt(e){return e?typeof e=="function"?Ee(e):ee(e,"mapStateToProps"):Z(()=>({}))}function dt(e,t,r){return{...r,...e,...t}}function pt(e){return function(r,{displayName:s,areMergedPropsEqual:n}){let o=!1,c;return function(u,i,f){const l=e(u,i,f);return o?n(l,c)||(c=l):(o=!0,c=l),c}}}function yt(e){return e?typeof e=="function"?pt(e):ee(e,"mergeProps"):()=>dt}function bt(e){e()}function vt(){let e=null,t=null;return{clear(){e=null,t=null},notify(){bt(()=>{let r=e;for(;r;)r.callback(),r=r.next})},get(){const r=[];let s=e;for(;s;)r.push(s),s=s.next;return r},subscribe(r){let s=!0;const n=t={callback:r,next:null,prev:t};return n.prev?n.prev.next=n:e=n,function(){!s||e===null||(s=!1,n.next?n.next.prev=n.prev:t=n.prev,n.prev?n.prev.next=n.next:e=n.next)}}}}var pe={notify(){},get:()=>[]};function ge(e,t){let r,s=pe,n=0,o=!1;function c(w){f();const d=s.subscribe(w);let S=!1;return()=>{S||(S=!0,d(),l())}}function a(){s.notify()}function u(){p.onStateChange&&p.onStateChange()}function i(){return o}function f(){n++,r||(r=t?t.addNestedSub(u):e.subscribe(u),s=vt())}function l(){n--,r&&n===0&&(r(),r=void 0,s.clear(),s=pe)}function y(){o||(o=!0,f())}function v(){o&&(o=!1,l())}const p={addNestedSub:c,notifyNestedSubs:a,handleChangeWrapper:u,isSubscribed:i,trySubscribe:y,tryUnsubscribe:v,getListeners:()=>s};return p}var ht=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",St=ht(),mt=()=>typeof navigator<"u"&&navigator.product==="ReactNative",wt=mt(),Et=()=>St||wt?b.useLayoutEffect:b.useEffect,L=Et();function ye(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function X(e,t){if(ye(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const r=Object.keys(e),s=Object.keys(t);if(r.length!==s.length)return!1;for(let n=0;n<r.length;n++)if(!Object.prototype.hasOwnProperty.call(t,r[n])||!ye(e[r[n]],t[r[n]]))return!1;return!0}var gt={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Rt={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Ct={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Re={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Ot={[nt]:Ct,[ot]:Re};function be(e){return ut(e)?Re:Ot[e.$$typeof]||gt}var Pt=Object.defineProperty,Tt=Object.getOwnPropertyNames,ve=Object.getOwnPropertySymbols,Nt=Object.getOwnPropertyDescriptor,xt=Object.getPrototypeOf,he=Object.prototype;function J(e,t){if(typeof t!="string"){if(he){const o=xt(t);o&&o!==he&&J(e,o)}let r=Tt(t);ve&&(r=r.concat(ve(t)));const s=be(e),n=be(t);for(let o=0;o<r.length;++o){const c=r[o];if(!Rt[c]&&!(n&&n[c])&&!(s&&s[c])){const a=Nt(t,c);try{Pt(e,c,a)}catch{}}}}return e}var _t=Symbol.for("react-redux-context"),Mt=typeof globalThis<"u"?globalThis:{};function At(){if(!b.createContext)return{};const e=Mt[_t]??=new Map;let t=e.get(b.createContext);return t||(t=b.createContext(null),e.set(b.createContext,t)),t}var Ce=At(),It=[null,null];function Ft(e,t,r){L(()=>e(...t),r)}function $t(e,t,r,s,n,o){e.current=s,r.current=!1,n.current&&(n.current=null,o())}function kt(e,t,r,s,n,o,c,a,u,i,f){if(!e)return()=>{};let l=!1,y=null;const v=()=>{if(l||!a.current)return;const w=t.getState();let d,S;try{d=s(w,n.current)}catch(h){S=h,y=h}S||(y=null),d===o.current?c.current||i():(o.current=d,u.current=d,c.current=!0,f())};return r.onStateChange=v,r.trySubscribe(),v(),()=>{if(l=!0,r.tryUnsubscribe(),r.onStateChange=null,y)throw y}}function Wt(e,t){return e===t}function Ut(e,t,r,{pure:s,areStatesEqual:n=Wt,areOwnPropsEqual:o=X,areStatePropsEqual:c=X,areMergedPropsEqual:a=X,forwardRef:u=!1,context:i=Ce}={}){const f=i,l=lt(e),y=ft(t),v=yt(r),p=!!e;return d=>{const S=d.displayName||d.name||"Component",h=`Connect(${S})`,m={shouldHandleStateChanges:p,displayName:h,wrappedComponentName:S,WrappedComponent:d,initMapStateToProps:l,initMapDispatchToProps:y,initMergeProps:v,areStatesEqual:n,areStatePropsEqual:c,areOwnPropsEqual:o,areMergedPropsEqual:a};function g(P){const[_,j,N]=b.useMemo(()=>{const{reactReduxForwardedRef:C,...$}=P;return[P.context,C,$]},[P]),M=b.useMemo(()=>{let C=f;return _?.Consumer,C},[_,f]),T=b.useContext(M),A=!!P.store&&!!P.store.getState&&!!P.store.dispatch,Oe=!!T&&!!T.store,x=A?P.store:T.store,te=Oe?T.getServerState:x.getState,Y=b.useMemo(()=>it(x.dispatch,m),[x]),[I,re]=b.useMemo(()=>{if(!p)return It;const C=ge(x,A?void 0:T.subscription),$=C.notifyNestedSubs.bind(C);return[C,$]},[x,A,T]),ne=b.useMemo(()=>A?T:{...T,subscription:I},[A,T,I]),z=b.useRef(void 0),V=b.useRef(N),F=b.useRef(void 0),oe=b.useRef(!1),K=b.useRef(!1),D=b.useRef(void 0);L(()=>(K.current=!0,()=>{K.current=!1}),[]);const se=b.useMemo(()=>()=>F.current&&N===V.current?F.current:Y(x.getState(),N),[x,N]),Pe=b.useMemo(()=>$=>I?kt(p,x,I,Y,V,z,oe,K,F,re,$):()=>{},[I]);Ft($t,[V,z,oe,N,F,re]);let k;try{k=b.useSyncExternalStore(Pe,se,te?()=>Y(te(),N):se)}catch(C){throw D.current&&(C.message+=`
|
|
2
2
|
The error may be correlated with this previous error:
|
|
3
3
|
${D.current.stack}
|
|
4
4
|
|
|
5
|
-
`),C}L(()=>{D.current=void 0,F.current=void 0,z.current=k});const B=b.useMemo(()=>b.createElement(d,{...k,ref:j}),[j,d,k]);return b.useMemo(()=>p?b.createElement(M.Provider,{value:ne},B):B,[M,B,ne])}const O=b.memo(g);if(O.WrappedComponent=d,O.displayName=g.displayName=h,u){const _=b.forwardRef(function(N,M){return b.createElement(O,{...N,reactReduxForwardedRef:M})});return _.displayName=h,_.WrappedComponent=d,J(_,d)}return J(O,d)}}var Bt=Ut;function Lt(e){const{children:t,context:r,serverState:s,store:n}=e,o=b.useMemo(()=>{const u=ge(n);return{store:n,subscription:u,getServerState:s?()=>s:void 0}},[n,s]),c=b.useMemo(()=>n.getState(),[n]);L(()=>{const{subscription:u}=o;return u.onStateChange=u.notifyNestedSubs,u.trySubscribe(),c!==n.getState()&&u.notifyNestedSubs(),()=>{u.tryUnsubscribe(),u.onStateChange=void 0}},[o,c]);const a=r||Ce;return b.createElement(a.Provider,{value:o},t)}var qt=Lt;export{qt as P,Ae as a,Vt as b,_e as c,Kt as d,ze as e,Bt as f,Se as g,zt as h,Dt as i};
|
|
5
|
+
`),C}L(()=>{D.current=void 0,F.current=void 0,z.current=k});const B=b.useMemo(()=>b.createElement(d,{...k,ref:j}),[j,d,k]);return b.useMemo(()=>p?b.createElement(M.Provider,{value:ne},B):B,[M,B,ne])}const O=b.memo(g);if(O.WrappedComponent=d,O.displayName=g.displayName=h,u){const _=b.forwardRef(function(N,M){return b.createElement(O,{...N,reactReduxForwardedRef:M})});return _.displayName=h,_.WrappedComponent=d,J(_,d)}return J(O,d)}}var Bt=Ut;function Lt(e){const{children:t,context:r,serverState:s,store:n}=e,o=b.useMemo(()=>{const u=ge(n);return{store:n,subscription:u,getServerState:s?()=>s:void 0}},[n,s]),c=b.useMemo(()=>n.getState(),[n]);L(()=>{const{subscription:u}=o;return u.onStateChange=u.notifyNestedSubs,u.trySubscribe(),c!==n.getState()&&u.notifyNestedSubs(),()=>{u.tryUnsubscribe(),u.onStateChange=void 0}},[o,c]);const a=r||Ce;return b.createElement(a.Provider,{value:o},t)}var qt=Lt;export{qt as P,Ae as a,Vt as b,_e as c,Kt as d,ze as e,Bt as f,Se as g,zt as h,Dt as i,X as s};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{i as G,t as N,a as x,b as M,g as y,N as h,c as dt,d as W,e as $,f as lt,n as I,h as C,R as ft,A as pt,s as D,C as Y,j as ht,k as gt,l as z,m as mt,o as St,p as X,r as Tt,q as Et,P as yt,u as Nt,v as It,w as j,x as q,y as wt,z as v,B as Mt,D as bt,E as vt,F as L,G as Rt,H as Ct,I as xt,J as _t,K as Dt,L as Lt,M as At,O as Ot,Q as Vt,S as zt,T as kt,U as Pt,V as Ft,W as Ut,X as Bt}from"./index-KVLE5Pus.js";const T={FullSnapshot:2,IncrementalSnapshot:3,Meta:4,Focus:6,ViewEnd:7,VisualViewport:8,FrustrationRecord:9},w={Document:0,DocumentType:1,Element:2,Text:3,CDATA:4,DocumentFragment:11},g={Mutation:0,MouseMove:1,MouseInteraction:2,Scroll:3,ViewportResize:4,Input:5,TouchMove:6,MediaInteraction:7,StyleSheetRule:8},m={MouseUp:0,MouseDown:1,Click:2,ContextMenu:3,DblClick:4,Focus:5,Blur:6,TouchStart:7,TouchEnd:9},k={Play:0,Pause:1};function J(t){return!!t.changedTouches}function R(t){return t.composed===!0&&G(t.target)?t.composedPath()[0]:t.target}const P=25;function Ht(t){return Math.abs(t.pageTop-t.offsetTop-window.scrollY)>P||Math.abs(t.pageLeft-t.offsetLeft-window.scrollX)>P}const Gt=(t,n)=>{const e=window.visualViewport,s={layoutViewportX:t,layoutViewportY:n,visualViewportX:t,visualViewportY:n};if(e)Ht(e)?(s.layoutViewportX=Math.round(t+e.offsetLeft),s.layoutViewportY=Math.round(n+e.offsetTop)):(s.visualViewportX=Math.round(t-e.offsetLeft),s.visualViewportY=Math.round(n-e.offsetTop));else return s;return s},K=t=>({scale:t.scale,offsetLeft:t.offsetLeft,offsetTop:t.offsetTop,pageLeft:t.pageLeft,pageTop:t.pageTop,height:t.height,width:t.width});function S(t,n){return{data:{source:t,...n},type:T.IncrementalSnapshot,timestamp:N()}}const Wt=50;function $t(t,n){const{throttled:e,cancel:s}=x(i=>{const a=R(i),r=n.nodeIds.get(a);if(r===void 0)return;const c=Q(i);if(!c)return;const u={id:r,timeOffset:0,x:c.x,y:c.y};t(S(J(i)?g.TouchMove:g.MouseMove,{positions:[u]}))},Wt,{trailing:!1}),{stop:o}=M(n.configuration,document,["mousemove","touchmove"],e,{capture:!0,passive:!0});return{stop:()=>{o(),s()}}}function Q(t){let{clientX:n,clientY:e}=J(t)?t.changedTouches[0]:t;if(window.visualViewport){const{visualViewportX:s,visualViewportY:o}=Gt(n,e);n=s,e=o}if(!(!Number.isFinite(n)||!Number.isFinite(e)))return{x:n,y:e}}const F={pointerup:m.MouseUp,mousedown:m.MouseDown,click:m.Click,contextmenu:m.ContextMenu,dblclick:m.DblClick,focus:m.Focus,blur:m.Blur,touchstart:m.TouchStart,touchend:m.TouchEnd};function Yt(t,n){const e=s=>{const o=R(s),i=n.nodeIds.get(o);if(i===void 0||y(o,n.configuration.defaultPrivacyLevel)===h.HIDDEN)return;const a=F[s.type];let r;if(a!==m.Blur&&a!==m.Focus){const c=Q(s);if(!c)return;r={id:i,type:a,x:c.x,y:c.y}}else r={id:i,type:a};t({id:n.eventIds.getIdForEvent(s),...S(g.MouseInteraction,r)})};return M(n.configuration,document,Object.keys(F),e,{capture:!0,passive:!0})}const Xt=100;function Z(t,n,e){const{throttled:s,cancel:o}=x(a=>{const r=R(a);if(!r)return;const c=e.nodeIds.get(r);if(c===void 0||y(r,e.configuration.defaultPrivacyLevel)===h.HIDDEN)return;const u=r===document?{scrollTop:$(),scrollLeft:W()}:{scrollTop:Math.round(r.scrollTop),scrollLeft:Math.round(r.scrollLeft)};e.elementsScrollPositions.set(r,u),n(S(g.Scroll,{id:c,x:u.scrollLeft,y:u.scrollTop}))},Xt),{stop:i}=dt(e.configuration,t,"scroll",s,{capture:!0,passive:!0});return{stop:()=>{i(),o()}}}const jt=200;function qt(t,n){const e=lt(n.configuration).subscribe(s=>{t(S(g.ViewportResize,s))});return{stop:()=>{e.unsubscribe()}}}function Jt(t,n){const e=window.visualViewport;if(!e)return{stop:I};const{throttled:s,cancel:o}=x(()=>{t({data:K(e),type:T.VisualViewport,timestamp:N()})},jt,{trailing:!1}),{stop:i}=M(n.configuration,e,["resize","scroll"],s,{capture:!0,passive:!0});return{stop:()=>{i(),o()}}}function Kt(t,n){return M(n.configuration,document,["play","pause"],e=>{const s=R(e);if(!s)return;const o=n.nodeIds.get(s);o===void 0||y(s,n.configuration.defaultPrivacyLevel)===h.HIDDEN||t(S(g.MediaInteraction,{id:o,type:e.type==="play"?k.Play:k.Pause}))},{capture:!0,passive:!0})}function Qt(t,n){function e(i,a){if(!i||!i.ownerNode)return;const r=n.nodeIds.get(i.ownerNode);r!==void 0&&a(r)}const s=[C(CSSStyleSheet.prototype,"insertRule",({target:i,parameters:[a,r]})=>{e(i,c=>t(S(g.StyleSheetRule,{id:c,adds:[{rule:a,index:r}]})))}),C(CSSStyleSheet.prototype,"deleteRule",({target:i,parameters:[a]})=>{e(i,r=>t(S(g.StyleSheetRule,{id:r,removes:[{index:a}]})))})];typeof CSSGroupingRule<"u"?o(CSSGroupingRule):(o(CSSMediaRule),o(CSSSupportsRule));function o(i){s.push(C(i.prototype,"insertRule",({target:a,parameters:[r,c]})=>{e(a.parentStyleSheet,u=>{const d=U(a);d&&(d.push(c||0),t(S(g.StyleSheetRule,{id:u,adds:[{rule:r,index:d}]})))})}),C(i.prototype,"deleteRule",({target:a,parameters:[r]})=>{e(a.parentStyleSheet,c=>{const u=U(a);u&&(u.push(r),t(S(g.StyleSheetRule,{id:c,removes:[{index:u}]})))})}))}return{stop:()=>{s.forEach(i=>i.stop())}}}function U(t){const n=[];let e=t;for(;e.parentRule;){const a=Array.from(e.parentRule.cssRules).indexOf(e);n.unshift(a),e=e.parentRule}if(!e.parentStyleSheet)return;const o=Array.from(e.parentStyleSheet.cssRules).indexOf(e);return n.unshift(o),n}function Zt(t,n){return M(n.configuration,window,["focus","blur"],()=>{t({data:{has_focus:document.hasFocus()},type:T.Focus,timestamp:N()})})}function te(t,n,e){const s=t.subscribe(12,o=>{var i,a;o.rawRumEvent.type===ft.ACTION&&o.rawRumEvent.action.type===pt.CLICK&&(!((a=(i=o.rawRumEvent.action.frustration)===null||i===void 0?void 0:i.type)===null||a===void 0)&&a.length)&&"events"in o.domainContext&&o.domainContext.events&&o.domainContext.events.length&&n({timestamp:o.rawRumEvent.date,type:T.FrustrationRecord,data:{frustrationTypes:o.rawRumEvent.action.frustration.type,recordIds:o.domainContext.events.map(r=>e.eventIds.getIdForEvent(r))}})});return{stop:()=>{s.unsubscribe()}}}function ee(t,n,e){const s=t.subscribe(5,()=>{e(),n({timestamp:N(),type:T.ViewEnd})});return{stop:()=>{s.unsubscribe()}}}function A(t,n){const e=t.tagName,s=t.value;if(D(t,n)){const o=t.type;return e==="INPUT"&&(o==="button"||o==="submit"||o==="reset")?s:!s||e==="OPTION"?void 0:Y}if(e==="OPTION"||e==="SELECT")return t.value;if(!(e!=="INPUT"&&e!=="TEXTAREA"))return s}const ne=/url\((?:(')([^']*)'|(")([^"]*)"|([^)]*))\)/gm,oe=/^[A-Za-z]+:|^\/\//,se=/^["']?data:.*,/i;function re(t,n){return t.replace(ne,(e,s,o,i,a,r)=>{const c=o||a||r;if(!n||!c||oe.test(c)||se.test(c))return e;const u=s||i||"";return`url(${u}${ie(c,n)}${u})`})}function ie(t,n){try{return ht(t,n).href}catch{return t}}const ue=/[^a-z1-6-_]/;function tt(t){const n=t.toLowerCase().trim();return ue.test(n)?"div":n}function B(t,n){return`data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='${t}' height='${n}' style='background-color:silver'%3E%3C/svg%3E`}function et(t){if(!(t===void 0||t.length===0))return t.map(n=>{const e=n.cssRules||n.rules;return{cssRules:Array.from(e,i=>i.cssText),disabled:n.disabled||void 0,media:n.media.length>0?Array.from(n.media):void 0}})}const ae=1e6;function nt(t,n,e,s){if(n===h.HIDDEN)return null;const o=t.getAttribute(e),i=t.tagName;if(gt(i,e,o,n,s)){if(i==="IMG"){const a=t;if(a.naturalWidth>0)return B(a.naturalWidth,a.naturalHeight);const{width:r,height:c}=t.getBoundingClientRect();return r>0||c>0?B(r,c):z}return i==="SOURCE"?z:Y}return!o||typeof o!="string"?o:mt(o,ae)}function ce(t,n,e){if(n===h.HIDDEN)return{};const s={},o=tt(t.tagName),i=t.ownerDocument;for(let u=0;u<t.attributes.length;u+=1){const l=t.attributes.item(u).name,f=nt(t,n,l,e.scope.configuration);f!==null&&(s[l]=f)}if(t.value&&(o==="textarea"||o==="select"||o==="option"||o==="input")){const u=A(t,n);u!==void 0&&(s.value=u)}if(o==="option"&&n===h.ALLOW){const u=t;u.selected&&(s.selected=u.selected)}if(o==="link"){const u=Array.from(i.styleSheets).find(l=>l.href===t.href),d=_(u);d&&u&&(e.addMetric("cssText",d.length),s._cssText=d)}if(o==="style"&&t.sheet){const u=_(t.sheet);u&&(e.addMetric("cssText",u.length),s._cssText=u)}const a=t;if(o==="input"&&(a.type==="radio"||a.type==="checkbox")&&(n===h.ALLOW?s.checked=!!a.checked:D(a,n)&&delete s.checked),o==="audio"||o==="video"){const u=t;s.rr_mediaState=u.paused?"paused":"played"}let r,c;switch(e.kind){case 0:r=Math.round(t.scrollTop),c=Math.round(t.scrollLeft),(r||c)&&e.scope.elementsScrollPositions.set(t,{scrollTop:r,scrollLeft:c});break;case 1:e.scope.elementsScrollPositions.has(t)&&({scrollTop:r,scrollLeft:c}=e.scope.elementsScrollPositions.get(t));break}return c&&(s.rr_scrollLeft=c),r&&(s.rr_scrollTop=r),s}function _(t){if(!t)return null;let n;try{n=t.rules||t.cssRules}catch{}if(!n)return null;const e=Array.from(n,St()?de:ot).join("");return re(e,t.href)}function de(t){if(fe(t)&&t.selectorText.includes(":")){const n=/(\[[\w-]+[^\\])(:[^\]]+\])/g;return t.cssText.replace(n,"$1\\$2")}return ot(t)}function ot(t){return le(t)&&_(t.styleSheet)||t.cssText}function le(t){return"styleSheet"in t}function fe(t){return"selectorText"in t}function O(t,n,e){const s=pe(t,n,e);if(!s)return null;const o=e.scope.nodeIds.assign(t),i=s;return i.id=o,e.serializedNodeIds&&e.serializedNodeIds.add(o),i}function V(t,n,e){const s=[];return q(t,o=>{const i=O(o,n,e);i&&s.push(i)}),s}function pe(t,n,e){switch(t.nodeType){case t.DOCUMENT_NODE:return he(t,n,e);case t.DOCUMENT_FRAGMENT_NODE:return ge(t,n,e);case t.DOCUMENT_TYPE_NODE:return me(t);case t.ELEMENT_NODE:return Se(t,n,e);case t.TEXT_NODE:return Ee(t,n);case t.CDATA_SECTION_NODE:return ye()}}function he(t,n,e){return{type:w.Document,childNodes:V(t,n,e),adoptedStyleSheets:et(t.adoptedStyleSheets)}}function ge(t,n,e){const s=j(t);return s&&e.scope.shadowRootsController.addShadowRoot(t,e.scope),{type:w.DocumentFragment,childNodes:V(t,n,e),isShadowRoot:s,adoptedStyleSheets:s?et(t.adoptedStyleSheets):void 0}}function me(t){return{type:w.DocumentType,name:t.name,publicId:t.publicId,systemId:t.systemId}}function Se(t,n,e){const s=tt(t.tagName),o=Te(t)||void 0,i=Tt(Et(t),n);if(i===h.HIDDEN){const{width:c,height:u}=t.getBoundingClientRect();return{type:w.Element,tagName:s,attributes:{rr_width:`${c}px`,rr_height:`${u}px`,[Nt]:yt},childNodes:[],isSVG:o}}if(i===h.IGNORE)return;const a=ce(t,i,e);let r=[];return It(t)&&s!=="style"&&(r=V(t,i,e)),{type:w.Element,tagName:s,attributes:a,childNodes:r,isSVG:o}}function Te(t){return t.tagName==="svg"||t instanceof SVGElement}function Ee(t,n){const e=X(t,n);if(e!==void 0)return{type:w.Text,textContent:e}}function ye(){return{type:w.CDATA,textContent:""}}function Ne(t,n){const e=n.scope.configuration.defaultPrivacyLevel;return O(t,e,n)}function st(){return{cssText:{count:0,max:0,sum:0},serializationDuration:{count:0,max:0,sum:0}}}function H(t,n,e){t[n].count+=1,t[n].max=Math.max(t[n].max,e),t[n].sum+=e}function Ie(t,n){for(const e of["cssText","serializationDuration"])t[e].count+=n[e].count,t[e].max=Math.max(t[e].max,n[e].max),t[e].sum+=n[e].sum}function rt(t,n,e,s,o){const i=[],a=st(),r={add:u=>{i.push(u)},addMetric:(u,d)=>{H(a,u,d)},kind:t,scope:s},c=N();o(r),H(a,"serializationDuration",wt(c,N()));for(const u of i)n(u);e(a)}function it(t,n,e){const s=e.configuration.defaultPrivacyLevel,o=new WeakMap,i=t!==document,{stop:a}=M(e.configuration,t,i?["change"]:["input","change"],d=>{const l=R(d);(l instanceof HTMLInputElement||l instanceof HTMLTextAreaElement||l instanceof HTMLSelectElement)&&c(l)},{capture:!0,passive:!0});let r;if(i)r=I;else{const d=[v(HTMLInputElement.prototype,"value",c),v(HTMLInputElement.prototype,"checked",c),v(HTMLSelectElement.prototype,"value",c),v(HTMLTextAreaElement.prototype,"value",c),v(HTMLSelectElement.prototype,"selectedIndex",c)];r=()=>{d.forEach(l=>l.stop())}}return{stop:()=>{r(),a()}};function c(d){const l=y(d,s);if(l===h.HIDDEN)return;const f=d.type;let p;if(f==="radio"||f==="checkbox"){if(D(d,l))return;p={isChecked:d.checked}}else{const b=A(d,l);if(b===void 0)return;p={text:b}}u(d,p);const E=d.name;f==="radio"&&E&&d.checked&&document.querySelectorAll(`input[type="radio"][name="${CSS.escape(E)}"]`).forEach(b=>{b!==d&&u(b,{isChecked:!1})})}function u(d,l){const f=e.nodeIds.get(d);if(f===void 0)return;const p=o.get(d);(!p||p.text!==l.text||p.isChecked!==l.isChecked)&&(o.set(d,l),n(S(g.Input,{id:f,...l})))}}const we=100,Me=16;function be(t){let n=I,e=[];function s(){n(),t(e),e=[]}const{throttled:o,cancel:i}=x(s,Me,{leading:!1});return{addMutations:a=>{e.length===0&&(n=Mt(o,{timeout:we})),e.push(...a)},flush:s,stop:()=>{n(),i()}}}function ut(t,n,e,s){const o=bt();if(!o)return{stop:I,flush:I};const i=be(r=>{rt(2,n,e,s,c=>ve(r.concat(a.takeRecords()),c))}),a=new o(vt(i.addMutations));return a.observe(t,{attributeOldValue:!0,attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),{stop:()=>{a.disconnect(),i.stop()},flush:()=>{i.flush()}}}function ve(t,n){const e=new Map;t.filter(u=>u.type==="childList").forEach(u=>{u.removedNodes.forEach(d=>{at(d,n.scope.shadowRootsController.removeShadowRoot)})});const s=t.filter(u=>u.target.isConnected&&n.scope.nodeIds.areAssignedForNodeAndAncestors(u.target)&&y(u.target,n.scope.configuration.defaultPrivacyLevel,e)!==h.HIDDEN),{adds:o,removes:i,hasBeenSerialized:a}=Re(s.filter(u=>u.type==="childList"),e,n),r=Ce(s.filter(u=>u.type==="characterData"&&!a(u.target)),e,n),c=xe(s.filter(u=>u.type==="attributes"&&!a(u.target)),e,n);!r.length&&!c.length&&!i.length&&!o.length||n.add(S(g.Mutation,{adds:o,removes:i,texts:r,attributes:c}))}function Re(t,n,e){const s=new Set,o=new Map;for(const d of t)d.addedNodes.forEach(l=>{s.add(l)}),d.removedNodes.forEach(l=>{s.has(l)||o.set(l,d.target),s.delete(l)});const i=Array.from(s);_e(i),e.serializedNodeIds=new Set;const a=[];for(const d of i){if(c(d))continue;const l=y(d.parentNode,e.scope.configuration.defaultPrivacyLevel,n);if(l===h.HIDDEN||l===h.IGNORE)continue;const f=O(d,l,e);if(!f)continue;const p=L(d);a.push({nextId:u(d),parentId:e.scope.nodeIds.get(p),node:f})}const r=[];return o.forEach((d,l)=>{const f=e.scope.nodeIds.get(d),p=e.scope.nodeIds.get(l);f!==void 0&&p!==void 0&&r.push({parentId:f,id:p})}),{adds:a,removes:r,hasBeenSerialized:c};function c(d){var l;const f=e.scope.nodeIds.get(d);return f!==void 0&&((l=e.serializedNodeIds)===null||l===void 0?void 0:l.has(f))}function u(d){let l=d.nextSibling;for(;l;){const f=e.scope.nodeIds.get(l);if(f!==void 0)return f;l=l.nextSibling}return null}}function Ce(t,n,e){var s;const o=[],i=new Set,a=t.filter(r=>i.has(r.target)?!1:(i.add(r.target),!0));for(const r of a){if(r.target.textContent===r.oldValue)continue;const u=e.scope.nodeIds.get(r.target);if(u===void 0)continue;const d=y(L(r.target),e.scope.configuration.defaultPrivacyLevel,n);d===h.HIDDEN||d===h.IGNORE||o.push({id:u,value:(s=X(r.target,d))!==null&&s!==void 0?s:null})}return o}function xe(t,n,e){const s=[],o=new Map,i=t.filter(r=>{const c=o.get(r.target);return c&&c.has(r.attributeName)?!1:(c?c.add(r.attributeName):o.set(r.target,new Set([r.attributeName])),!0)}),a=new Map;for(const r of i){if(r.target.getAttribute(r.attributeName)===r.oldValue)continue;const u=e.scope.nodeIds.get(r.target);if(u===void 0)continue;const d=y(r.target,e.scope.configuration.defaultPrivacyLevel,n),l=nt(r.target,d,r.attributeName,e.scope.configuration);let f;if(r.attributeName==="value"){const E=A(r.target,d);if(E===void 0)continue;f=E}else typeof l=="string"?f=l:f=null;let p=a.get(r.target);p||(p={id:u,attributes:{}},s.push(p),a.set(r.target,p)),p.attributes[r.attributeName]=f}return s}function _e(t){t.sort((n,e)=>{const s=n.compareDocumentPosition(e);return s&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:s&Node.DOCUMENT_POSITION_CONTAINS||s&Node.DOCUMENT_POSITION_FOLLOWING?1:s&Node.DOCUMENT_POSITION_PRECEDING?-1:0})}function at(t,n){G(t)&&n(t.shadowRoot),q(t,e=>at(e,n))}function De(){const t=new WeakMap;return{set(n,e){n===document&&!document.scrollingElement||t.set(n===document?document.scrollingElement:n,e)},get(n){return t.get(n)},has(n){return t.has(n)}}}const Le=(t,n)=>{const e=new Map;return{addShadowRoot:(o,i)=>{if(e.has(o))return;const a=ut(o,t,n,i),r=it(o,t,i),c=Z(o,t,i);e.set(o,{flush:()=>a.flush(),stop:()=>{a.stop(),r.stop(),c.stop()}})},removeShadowRoot:o=>{const i=e.get(o);i&&(i.stop(),e.delete(o))},stop:()=>{e.forEach(({stop:o})=>o())},flush:()=>{e.forEach(({flush:o})=>o())}}};function Ae(t,n,e,s,o){const i=(r,c)=>{rt(c,n,e,o,u=>{const{width:d,height:l}=Rt();u.add({data:{height:l,href:window.location.href,width:d},type:T.Meta,timestamp:r}),u.add({data:{has_focus:document.hasFocus()},type:T.Focus,timestamp:r}),u.add({data:{node:Ne(document,u),initialOffset:{left:W(),top:$()}},type:T.FullSnapshot,timestamp:r}),window.visualViewport&&u.add({data:K(window.visualViewport),type:T.VisualViewport,timestamp:r})})};i(N(),0);const{unsubscribe:a}=t.subscribe(2,r=>{s(),i(r.startClocks.timeStamp,1)});return{stop:a}}function Oe(){const t=new WeakMap;let n=1;return{getIdForEvent(e){return t.has(e)||t.set(e,n++),t.get(e)}}}function Ve(){const t=new WeakMap;let n=1;const e=s=>t.get(s);return{assign:s=>{let o=e(s);return o===void 0&&(o=n++,t.set(s,o)),o},get:e,areAssignedForNodeAndAncestors:s=>{let o=s;for(;o;){if(e(o)===void 0&&!j(o))return!1;o=L(o)}return!0}}}function ze(t,n,e,s,o){return{configuration:t,elementsScrollPositions:n,eventIds:e,nodeIds:s,shadowRootsController:o}}function ke(t){const{emitRecord:n,emitStats:e,configuration:s,lifeCycle:o}=t;if(!n||!e)throw new Error("emit functions are required");const i=f=>{n(f),Ct("record",{record:f});const p=t.viewHistory.findView();xt(p.id)},a=Le(i,e),r=ze(s,De(),Oe(),Ve(),a),{stop:c}=Ae(o,i,e,u,r);function u(){a.flush(),d.flush()}const d=ut(document,i,e,r),l=[d,$t(i,r),Yt(i,r),Z(document,i,r),qt(i,r),it(document,i,r),Kt(i,r),Qt(i,r),Zt(i,r),Jt(i,r),te(o,i,r),ee(o,i,u)];return{stop:()=>{a.stop(),l.forEach(f=>f.stop()),c()},flushMutations:u,shadowRootsController:a}}function Pe(t,n,e,s){const o=new FormData;o.append("segment",new Blob([t],{type:"application/octet-stream"}),`${n.session.id}-${n.start}`);const i={raw_segment_size:s,compressed_segment_size:t.byteLength,...n},a=JSON.stringify(i);return o.append("event",new Blob([a],{type:"application/json"})),{data:o,bytesCount:t.byteLength,cssText:e.cssText,isFullSnapshot:n.index_in_view===0,rawSize:s,recordCount:n.records_count,serializationDuration:e.serializationDuration}}function Fe({context:t,creationReason:n,encoder:e}){let s=0;const o=t.view.id,i=_t(o),a={start:1/0,end:-1/0,creation_reason:n,records_count:0,has_full_snapshot:!1,index_in_view:i,source:"browser",...t},r=st();Dt(o);function c(l,f){a.start=Math.min(a.start,l.timestamp),a.end=Math.max(a.end,l.timestamp),a.records_count+=1,a.has_full_snapshot||(a.has_full_snapshot=l.type===T.FullSnapshot);const p=e.isEmpty?'{"records":[':",";e.write(p+JSON.stringify(l),E=>{s+=E,f(s)})}function u(l){Ie(r,l)}function d(l){if(e.isEmpty)throw new Error("Empty segment flushed");e.write(`],${JSON.stringify(a).slice(1)}
|
|
2
|
+
`),e.finish(f=>{Lt(a.view.id,f.rawBytesCount),l(a,r,f)})}return{addRecord:c,addStats:u,flush:d}}const Ue=5*zt;let ct=6e4;function Be(t,n,e,s,o,i){return He(t,()=>Ge(n.applicationId,e,s),o,i)}function He(t,n,e,s){let o={status:0,nextSegmentCreationReason:"init"};const{unsubscribe:i}=t.subscribe(2,()=>{r("view_change")}),{unsubscribe:a}=t.subscribe(11,c=>{r(c.reason)});function r(c){o.status===1&&(o.segment.flush((u,d,l)=>{const f=Pe(l.output,u,d,l.rawBytesCount);At(c)?e.sendOnExit(f):e.send(f)}),Ot(o.expirationTimeoutId)),c!=="stop"?o={status:0,nextSegmentCreationReason:c}:o={status:2}}return{addRecord:c=>{if(o.status!==2){if(o.status===0){const u=n();if(!u)return;o={status:1,segment:Fe({encoder:s,context:u,creationReason:o.nextSegmentCreationReason}),expirationTimeoutId:Vt(()=>{r("segment_duration_limit")},Ue)}}o.segment.addRecord(c,u=>{u>ct&&r("segment_bytes_limit")})}},addStats:c=>{o.status===1&&o.segment.addStats(c)},stop:()=>{r("stop"),i(),a()}}}function Ge(t,n,e){const s=n.findTrackedSession(),o=e.findView();if(!(!s||!o))return{application:{id:t},session:{id:s.id},view:{id:o.id}}}function We(t,n){if(!t.metricsEnabled)return{stop:I};const{unsubscribe:e}=n.subscribe(s=>{if(s.type==="failure"||s.type==="queue-full"||s.type==="success"&&s.payload.isFullSnapshot){const o=$e(s.type,s.bandwidth,s.payload);kt("Segment network request metrics",{metrics:o})}});return{stop:e}}function $e(t,n,e){return{cssText:{count:e.cssText.count,max:e.cssText.max,sum:e.cssText.sum},isFullSnapshot:e.isFullSnapshot,ongoingRequests:{count:n.ongoingRequestCount,totalSize:n.ongoingByteCount},recordCount:e.recordCount,result:t,serializationDuration:{count:e.serializationDuration.count,max:e.serializationDuration.max,sum:e.serializationDuration.sum},size:{compressed:e.bytesCount,raw:e.rawSize}}}function Ye(t){const n=Pt();return{addRecord:e=>{const s=t.findView();n.send("record",e,s.id)}}}function je(t,n,e,s,o,i,a){const r=[],c=p=>{t.notify(14,{error:p}),Bt("Error reported to customer",{"error.message":p.message})},u=a||Ft([n.sessionReplayEndpointBuilder],c,ct);let d,l;if(Ut())({addRecord:d}=Ye(s)),l=I;else{const p=Be(t,n,e,s,u,o);d=p.addRecord,l=p.addStats,r.push(p.stop);const E=We(i,u.observable);r.push(E.stop)}const{stop:f}=ke({emitRecord:d,emitStats:l,configuration:n,lifeCycle:t,viewHistory:s});return r.push(f),{stop:()=>{r.forEach(p=>p())}}}export{je as startRecording};
|
|
@@ -1,3 +1,15 @@
|
|
|
1
|
-
<svg
|
|
2
|
-
|
|
1
|
+
<svg
|
|
2
|
+
width="1024"
|
|
3
|
+
height="1024"
|
|
4
|
+
viewBox="0 0 1024 1024"
|
|
5
|
+
fill="none"
|
|
6
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
7
|
+
>
|
|
8
|
+
<path
|
|
9
|
+
fill-rule="evenodd"
|
|
10
|
+
clip-rule="evenodd"
|
|
11
|
+
d="M8 0C3.58 0 0 3.58 0 8C0 11.54 2.29 14.53 5.47 15.59C5.87 15.66 6.02 15.42 6.02 15.21C6.02 15.02 6.01 14.39 6.01 13.72C4 14.09 3.48 13.23 3.32 12.78C3.23 12.55 2.84 11.84 2.5 11.65C2.22 11.5 1.82 11.13 2.49 11.12C3.12 11.11 3.57 11.7 3.72 11.94C4.44 13.15 5.59 12.81 6.05 12.6C6.12 12.08 6.33 11.73 6.56 11.53C4.78 11.33 2.92 10.64 2.92 7.58C2.92 6.71 3.23 5.99 3.74 5.43C3.66 5.23 3.38 4.41 3.82 3.31C3.82 3.31 4.49 3.1 6.02 4.13C6.66 3.95 7.34 3.86 8.02 3.86C8.7 3.86 9.38 3.95 10.02 4.13C11.55 3.09 12.22 3.31 12.22 3.31C12.66 4.41 12.38 5.23 12.3 5.43C12.81 5.99 13.12 6.7 13.12 7.58C13.12 10.65 11.25 11.33 9.47 11.53C9.76 11.78 10.01 12.26 10.01 13.01C10.01 14.08 10 14.94 10 15.21C10 15.42 10.15 15.67 10.55 15.59C13.71 14.53 16 11.53 16 8C16 3.58 12.42 0 8 0Z"
|
|
12
|
+
transform="scale(64)"
|
|
13
|
+
fill="#1B1F23"
|
|
14
|
+
/>
|
|
3
15
|
</svg>
|
package/studio/web/index.html
CHANGED
|
@@ -1,18 +1,16 @@
|
|
|
1
|
-
<!
|
|
2
|
-
<html lang="en">
|
|
3
|
-
|
|
4
|
-
<
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
</head>
|
|
13
|
-
|
|
14
|
-
<body>
|
|
15
|
-
<div id="root"></div>
|
|
16
|
-
</body>
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en" class="dark-mode">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<link rel="icon" type="image/svg+xml" href="/HDBDogOnly.svg" />
|
|
6
|
+
<link rel="icon" type="dynamic-favicon" href="/favicon_purple.png" />
|
|
7
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
8
|
+
<title>Harper Fabric</title>
|
|
9
|
+
<script type="module" crossorigin src="/assets/index-KVLE5Pus.js"></script>
|
|
10
|
+
<link rel="stylesheet" crossorigin href="/assets/index-BwlW0AMB.css">
|
|
11
|
+
</head>
|
|
17
12
|
|
|
13
|
+
<body>
|
|
14
|
+
<div id="root"></div>
|
|
15
|
+
</body>
|
|
18
16
|
</html>
|
package/studio/web/running.html
CHANGED
|
@@ -1,102 +1,147 @@
|
|
|
1
|
-
<!
|
|
1
|
+
<!DOCTYPE html>
|
|
2
2
|
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
</head>
|
|
3
|
+
<head>
|
|
4
|
+
<title>Harper is Running!</title>
|
|
5
|
+
<link rel="icon" type="image/svg+xml" href="/HDBDogOnly.svg" />
|
|
6
|
+
<link rel="icon" type="dynamic-favicon" href="/favicon_purple.png" />
|
|
7
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
8
|
+
<link rel="stylesheet" href="./running.css" type="text/css" />
|
|
9
|
+
</head>
|
|
10
10
|
|
|
11
|
-
<body>
|
|
11
|
+
<body>
|
|
12
|
+
<div id="content">
|
|
13
|
+
<img
|
|
14
|
+
src="/HDBDogOnly.svg"
|
|
15
|
+
width="100px"
|
|
16
|
+
height="100px"
|
|
17
|
+
alt="Harper Logo"
|
|
18
|
+
/>
|
|
12
19
|
|
|
13
|
-
<
|
|
20
|
+
<h1>Server is Running!</h1>
|
|
21
|
+
<p>
|
|
22
|
+
Your Harper server is up and running. Choose how you'd like to get
|
|
23
|
+
started:
|
|
24
|
+
</p>
|
|
14
25
|
|
|
15
|
-
|
|
26
|
+
<div class="card flex-row">
|
|
27
|
+
<svg
|
|
28
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
29
|
+
width="24"
|
|
30
|
+
height="24"
|
|
31
|
+
viewBox="0 0 24 24"
|
|
32
|
+
fill="none"
|
|
33
|
+
stroke="hsl(232.92, 80.9%, 60.98%)"
|
|
34
|
+
stroke-width="2"
|
|
35
|
+
stroke-linecap="round"
|
|
36
|
+
stroke-linejoin="round"
|
|
37
|
+
class="lucide lucide-sparkles w-6 h-6 text-blue-600 flex-shrink-0 mt-1"
|
|
38
|
+
aria-hidden="true"
|
|
39
|
+
>
|
|
40
|
+
<path d="M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z">
|
|
41
|
+
</path>
|
|
42
|
+
<path d="M20 3v4"></path>
|
|
43
|
+
<path d="M22 5h-4"></path>
|
|
44
|
+
<path d="M4 17v2"></path>
|
|
45
|
+
<path d="M5 18H3"></path>
|
|
46
|
+
</svg>
|
|
16
47
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
48
|
+
<div>
|
|
49
|
+
<div class="flex-row">
|
|
50
|
+
<h2>Connect to Harper Fabric</h2>
|
|
51
|
+
<span class="badge">
|
|
52
|
+
Most Popular
|
|
53
|
+
</span>
|
|
54
|
+
</div>
|
|
55
|
+
<p>
|
|
56
|
+
Connect your server to Harper Fabric for cloud management,
|
|
57
|
+
monitoring, and seamless collaboration. Access your instance from
|
|
58
|
+
anywhere with full observability.
|
|
59
|
+
</p>
|
|
60
|
+
<a
|
|
61
|
+
id="connectToHarperFabricAnchor"
|
|
62
|
+
href="https://fabric.harper.fast/"
|
|
63
|
+
target="_blank"
|
|
64
|
+
>
|
|
65
|
+
Connect to Harper Fabric
|
|
66
|
+
</a>
|
|
67
|
+
</div>
|
|
68
|
+
</div>
|
|
21
69
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
70
|
+
<div class="card flex-row">
|
|
71
|
+
<svg
|
|
72
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
73
|
+
width="24"
|
|
74
|
+
height="24"
|
|
75
|
+
viewBox="0 0 24 24"
|
|
76
|
+
fill="none"
|
|
77
|
+
stroke="currentColor"
|
|
78
|
+
stroke-width="2"
|
|
79
|
+
stroke-linecap="round"
|
|
80
|
+
stroke-linejoin="round"
|
|
81
|
+
class="lucide lucide-terminal w-6 h-6 text-slate-600 flex-shrink-0 mt-1"
|
|
82
|
+
aria-hidden="true"
|
|
83
|
+
>
|
|
84
|
+
<path d="M12 19h8"></path>
|
|
85
|
+
<path d="m4 17 6-6-6-6"></path>
|
|
86
|
+
</svg>
|
|
30
87
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
88
|
+
<div>
|
|
89
|
+
<h2>Manage Harper Offline</h2>
|
|
90
|
+
<p>
|
|
91
|
+
Prefer to work locally? Enable Harper Studio to configure and manage
|
|
92
|
+
your instance directly from your development environment.
|
|
93
|
+
</p>
|
|
94
|
+
<p>
|
|
95
|
+
Turn on localStudio in your harperdb-config.yaml:
|
|
96
|
+
</p>
|
|
97
|
+
<div class="code-snippet">
|
|
98
|
+
<code content="yaml">localStudio: enabled: true</code>
|
|
99
|
+
</div>
|
|
100
|
+
<p>
|
|
101
|
+
Then refresh this page!
|
|
102
|
+
</p>
|
|
103
|
+
</div>
|
|
104
|
+
</div>
|
|
47
105
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
106
|
+
<!-- {/* Footer */}-->
|
|
107
|
+
<div class="text-center text-slate-500">
|
|
108
|
+
<p>
|
|
109
|
+
Need help?
|
|
110
|
+
<a
|
|
111
|
+
href="https://docs.harperdb.io/docs"
|
|
112
|
+
target="_blank"
|
|
113
|
+
rel="noopener noreferrer"
|
|
114
|
+
>
|
|
115
|
+
Check out our docs.
|
|
116
|
+
</a>
|
|
117
|
+
</p>
|
|
118
|
+
</div>
|
|
119
|
+
</div>
|
|
53
120
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
</p>
|
|
81
|
-
</div>
|
|
82
|
-
|
|
83
|
-
</div>
|
|
84
|
-
|
|
85
|
-
<div id="app-bg-color">
|
|
86
|
-
<div class="orb-container">
|
|
87
|
-
<div class="orb"></div>
|
|
88
|
-
</div>
|
|
89
|
-
</div>
|
|
90
|
-
<svg id="app-bg-grid" xmlns="http://www.w3.org/2000/svg">
|
|
91
|
-
<defs>
|
|
92
|
-
<pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse">
|
|
93
|
-
<animateTransform attributeType="xml" attributeName="patternTransform" type="translate" from="0 0" to="-40 -40"
|
|
94
|
-
begin="0" dur="5s" repeatCount="indefinite"></animateTransform>
|
|
95
|
-
<path d="M 40 0 L 0 0 0 40" fill="none" stroke="currentColor" />
|
|
96
|
-
</pattern>
|
|
97
|
-
</defs>
|
|
98
|
-
<rect width="100%" height="100%" fill="url(#grid)" />
|
|
99
|
-
</svg>
|
|
100
|
-
<script src="./running.js" async></script>
|
|
101
|
-
</body>
|
|
121
|
+
<div id="app-bg-color">
|
|
122
|
+
<div class="orb-container">
|
|
123
|
+
<div class="orb"></div>
|
|
124
|
+
</div>
|
|
125
|
+
</div>
|
|
126
|
+
<svg id="app-bg-grid" xmlns="http://www.w3.org/2000/svg">
|
|
127
|
+
<defs>
|
|
128
|
+
<pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse">
|
|
129
|
+
<animateTransform
|
|
130
|
+
attributeType="xml"
|
|
131
|
+
attributeName="patternTransform"
|
|
132
|
+
type="translate"
|
|
133
|
+
from="0 0"
|
|
134
|
+
to="-40 -40"
|
|
135
|
+
begin="0"
|
|
136
|
+
dur="5s"
|
|
137
|
+
repeatCount="indefinite"
|
|
138
|
+
>
|
|
139
|
+
</animateTransform>
|
|
140
|
+
<path d="M 40 0 L 0 0 0 40" fill="none" stroke="currentColor" />
|
|
141
|
+
</pattern>
|
|
142
|
+
</defs>
|
|
143
|
+
<rect width="100%" height="100%" fill="url(#grid)" />
|
|
144
|
+
</svg>
|
|
145
|
+
<script src="./running.js" async></script>
|
|
146
|
+
</body>
|
|
102
147
|
</html>
|
package/studio/web/running.js
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
// Remove the centered single orb if present
|
|
14
14
|
const existingCentered = container.querySelector('.orb-container');
|
|
15
|
-
if (existingCentered) existingCentered.remove();
|
|
15
|
+
if (existingCentered) { existingCentered.remove(); }
|
|
16
16
|
|
|
17
17
|
const ORB_COUNT = 6;
|
|
18
18
|
const MIN_SIZE = 120; // px
|