harperdb 4.7.5 → 4.7.7
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 +30 -30
- package/bin/lite.js +27 -27
- package/launchServiceScripts/launchNatsIngestService.js +27 -27
- package/launchServiceScripts/launchNatsReplyService.js +27 -27
- package/launchServiceScripts/launchUpdateNodes4-0-0.js +27 -27
- package/npm-shrinkwrap.json +37 -37
- package/package.json +1 -1
- package/server/jobs/jobProcess.js +27 -27
- package/server/threads/threadServer.js +27 -27
- package/studio/web/assets/index-BPK8BWbv.js +37 -0
- package/studio/web/assets/index-D5pQ8QQg.js +1 -0
- package/studio/web/assets/index-DaQmCsN4.js +192 -0
- package/studio/web/assets/index-DnA-_HBI.css +1 -0
- package/studio/web/assets/{index.lazy-D173BYf8.js → index.lazy-D_uzntq0.js} +12 -34
- package/studio/web/assets/profiler-Cm_P0Kov.js +1 -0
- package/studio/web/assets/react-redux-4LNT8IKN.js +5 -0
- package/studio/web/assets/startRecording-CFKbezKY.js +2 -0
- package/studio/web/index.html +2 -2
- package/utility/scripts/restartHdb.js +27 -27
- package/studio/web/assets/index-CNPtE0XQ.js +0 -601
- package/studio/web/assets/index-DAAAZCZd.css +0 -4
- package/studio/web/assets/index-Dn_IqWNq.js +0 -1
- package/studio/web/assets/index-OhIVM2M0.js +0 -60
- package/studio/web/assets/profiler-DjvgK9z4.js +0 -1
- package/studio/web/assets/react-redux-DQ-bSEyM.js +0 -13
- package/studio/web/assets/startRecording-DGFXrb7c.js +0 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{V as K,ak as D,al as J,X as Q,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,O as se,M as re,x as oe,au as ae,av as ie}from"./index-DaQmCsN4.js";function le(e,t,o,a){const m=d=>{t.notify(14,{error:d}),Q("Error reported to customer",{"error.message":d.message})},l=K([e.profilingEndpointBuilder],e.batchBytesLimit,m),p=o(a);return{async send({event:d,...h}){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 J(h)){const f=D(E);if(!f)throw new Error("Failed to serialize attachment");const g=await ce(p,f);w+=g.outputBytesCount,v.append(k,new Blob([g.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 me(e){return y.get(e)}function R(e){for(const t of y.keys())t<e&&y.delete(t)}function fe({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:m,names:l}=he(e.views);m.length&&(a.view={id:m,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 he(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 ge(e,t,o){return{event:we(e,t,o),"wall-time.json":e}}function we(e,t,o){const a=Y(t),m=be(e,t.applicationId,o),l=ke(a);return{...m,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,m,l=Te){const p=le(e,t,m,6),d=$(ee.LONG_ANIMATION_FRAME);let h;const v=[];let s={state:"stopped"};function w(n){s.state!=="running"&&(h=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),f())}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=>{fe(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),h=b});return r.push(c.unsubscribe),{cleanupTasks:r,observer:i}}function f(){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.");g(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(f,l.collectIntervalMs),longTasks:[],views:[],cleanupTasks:r,observer:i},S(h),c.addEventListener("samplebufferfull",_)}async function g(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,x=ue(N.samples)<l.minNumberOfSamples;!q&&(X||x)||(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 g(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=ge(n,e,i);p.send(c)}function _(){f()}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=me(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"&&f()}function C(){f()}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};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import{aK as Te,a5 as b}from"./index-DaQmCsN4.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
|
+
The error may be correlated with this previous error:
|
|
3
|
+
${D.current.stack}
|
|
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};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{i as K,t as N,a as O,b as x,g as w,N as S,c as mt,d as j,e as q,f as gt,n as R,h as A,R as St,A as Tt,s as V,C as _,j as Et,P as J,S as yt,k as H,l as It,m as Nt,o as Q,r as wt,p as Mt,q as Ct,u as Rt,v as Z,w as tt,x as et,y as v,z as xt,B as bt,D as vt,E as k,F as _t,G as Dt,H as At,I as Lt,J as Ot,K as zt,L as Vt,M as kt,O as Pt,Q as Ft,T as Bt,U as Ut,V as Ht,W as Gt,X as Wt}from"./index-DaQmCsN4.js";const I={FullSnapshot:2,IncrementalSnapshot:3,Meta:4,Focus:6,ViewEnd:7,VisualViewport:8,FrustrationRecord:9},C={Document:0,DocumentType:1,Element:2,Text:3,CDATA:4,DocumentFragment:11},T={Mutation:0,MouseMove:1,MouseInteraction:2,Scroll:3,ViewportResize:4,Input:5,TouchMove:6,MediaInteraction:7,StyleSheetRule:8},E={MouseUp:0,MouseDown:1,Click:2,ContextMenu:3,DblClick:4,Focus:5,Blur:6,TouchStart:7,TouchEnd:9},G={Play:0,Pause:1};function nt(t){return!!t.changedTouches}function D(t){return t.composed===!0&&K(t.target)?t.composedPath()[0]:t.target}const W=25;function $t(t){return Math.abs(t.pageTop-t.offsetTop-window.scrollY)>W||Math.abs(t.pageLeft-t.offsetLeft-window.scrollX)>W}const Yt=(t,n)=>{const e=window.visualViewport,o={layoutViewportX:t,layoutViewportY:n,visualViewportX:t,visualViewportY:n};if(e)$t(e)?(o.layoutViewportX=Math.round(t+e.offsetLeft),o.layoutViewportY=Math.round(n+e.offsetTop)):(o.visualViewportX=Math.round(t-e.offsetLeft),o.visualViewportY=Math.round(n-e.offsetTop));else return o;return o},st=t=>({scale:t.scale,offsetLeft:t.offsetLeft,offsetTop:t.offsetTop,pageLeft:t.pageLeft,pageTop:t.pageTop,height:t.height,width:t.width});function y(t,n){return{data:{source:t,...n},type:I.IncrementalSnapshot,timestamp:N()}}const Xt=50;function Kt(t,n,e){const{throttled:o,cancel:s}=O(r=>{const u=D(r),a=n.nodeIds.get(u);if(a===void 0)return;const c=ot(r);if(!c)return;const d={id:a,timeOffset:0,x:c.x,y:c.y};e(y(nt(r)?T.TouchMove:T.MouseMove,{positions:[d]}))},Xt,{trailing:!1}),{stop:i}=x(t,document,["mousemove","touchmove"],o,{capture:!0,passive:!0});return{stop:()=>{i(),s()}}}function ot(t){let{clientX:n,clientY:e}=nt(t)?t.changedTouches[0]:t;if(window.visualViewport){const{visualViewportX:o,visualViewportY:s}=Yt(n,e);n=o,e=s}if(!(!Number.isFinite(n)||!Number.isFinite(e)))return{x:n,y:e}}const $={pointerup:E.MouseUp,mousedown:E.MouseDown,click:E.Click,contextmenu:E.ContextMenu,dblclick:E.DblClick,focus:E.Focus,blur:E.Blur,touchstart:E.TouchStart,touchend:E.TouchEnd};function jt(t,n,e,o){const s=i=>{const r=D(i),u=n.nodeIds.get(r);if(u===void 0||w(r,t.defaultPrivacyLevel)===S.HIDDEN)return;const a=$[i.type];let c;if(a!==E.Blur&&a!==E.Focus){const l=ot(i);if(!l)return;c={id:u,type:a,x:l.x,y:l.y}}else c={id:u,type:a};const d={id:o.getIdForEvent(i),...y(T.MouseInteraction,c)};e(d)};return x(t,document,Object.keys($),s,{capture:!0,passive:!0})}const qt=100;function rt(t,n,e,o,s=document){const{throttled:i,cancel:r}=O(a=>{const c=D(a);if(!c)return;const d=n.nodeIds.get(c);if(d===void 0||w(c,t.defaultPrivacyLevel)===S.HIDDEN)return;const l=c===document?{scrollTop:q(),scrollLeft:j()}:{scrollTop:Math.round(c.scrollTop),scrollLeft:Math.round(c.scrollLeft)};o.set(c,l),e(y(T.Scroll,{id:d,x:l.scrollLeft,y:l.scrollTop}))},qt),{stop:u}=mt(t,s,"scroll",i,{capture:!0,passive:!0});return{stop:()=>{u(),r()}}}const Jt=200;function Qt(t,n){const e=gt(t).subscribe(o=>{n(y(T.ViewportResize,o))});return{stop:()=>{e.unsubscribe()}}}function Zt(t,n){const e=window.visualViewport;if(!e)return{stop:R};const{throttled:o,cancel:s}=O(()=>{n({data:st(e),type:I.VisualViewport,timestamp:N()})},Jt,{trailing:!1}),{stop:i}=x(t,e,["resize","scroll"],o,{capture:!0,passive:!0});return{stop:()=>{i(),s()}}}function te(t,n,e){return x(t,document,["play","pause"],o=>{const s=D(o);if(!s)return;const i=n.nodeIds.get(s);i===void 0||w(s,t.defaultPrivacyLevel)===S.HIDDEN||e(y(T.MediaInteraction,{id:i,type:o.type==="play"?G.Play:G.Pause}))},{capture:!0,passive:!0})}function ee(t,n){function e(i,r){if(!i||!i.ownerNode)return;const u=t.nodeIds.get(i.ownerNode);u!==void 0&&r(u)}const o=[A(CSSStyleSheet.prototype,"insertRule",({target:i,parameters:[r,u]})=>{e(i,a=>n(y(T.StyleSheetRule,{id:a,adds:[{rule:r,index:u}]})))}),A(CSSStyleSheet.prototype,"deleteRule",({target:i,parameters:[r]})=>{e(i,u=>n(y(T.StyleSheetRule,{id:u,removes:[{index:r}]})))})];typeof CSSGroupingRule<"u"?s(CSSGroupingRule):(s(CSSMediaRule),s(CSSSupportsRule));function s(i){o.push(A(i.prototype,"insertRule",({target:r,parameters:[u,a]})=>{e(r.parentStyleSheet,c=>{const d=Y(r);d&&(d.push(a||0),n(y(T.StyleSheetRule,{id:c,adds:[{rule:u,index:d}]})))})}),A(i.prototype,"deleteRule",({target:r,parameters:[u]})=>{e(r.parentStyleSheet,a=>{const c=Y(r);c&&(c.push(u),n(y(T.StyleSheetRule,{id:a,removes:[{index:c}]})))})}))}return{stop:()=>{o.forEach(i=>i.stop())}}}function Y(t){const n=[];let e=t;for(;e.parentRule;){const r=Array.from(e.parentRule.cssRules).indexOf(e);n.unshift(r),e=e.parentRule}if(!e.parentStyleSheet)return;const s=Array.from(e.parentStyleSheet.cssRules).indexOf(e);return n.unshift(s),n}function ne(t,n){return x(t,window,["focus","blur"],()=>{n({data:{has_focus:document.hasFocus()},type:I.Focus,timestamp:N()})})}function se(t,n,e){const o=t.subscribe(12,s=>{var i,r;s.rawRumEvent.type===St.ACTION&&s.rawRumEvent.action.type===Tt.CLICK&&(!((r=(i=s.rawRumEvent.action.frustration)===null||i===void 0?void 0:i.type)===null||r===void 0)&&r.length)&&"events"in s.domainContext&&s.domainContext.events&&s.domainContext.events.length&&n({timestamp:s.rawRumEvent.date,type:I.FrustrationRecord,data:{frustrationTypes:s.rawRumEvent.action.frustration.type,recordIds:s.domainContext.events.map(u=>e.getIdForEvent(u))}})});return{stop:()=>{o.unsubscribe()}}}function oe(t,n){const e=t.subscribe(5,()=>{n({timestamp:N(),type:I.ViewEnd})});return{stop:()=>{e.unsubscribe()}}}function P(t,n){const e=t.tagName,o=t.value;if(V(t,n)){const s=t.type;return e==="INPUT"&&(s==="button"||s==="submit"||s==="reset")?o:!o||e==="OPTION"?void 0:_}if(e==="OPTION"||e==="SELECT")return t.value;if(!(e!=="INPUT"&&e!=="TEXTAREA"))return o}const re=/url\((?:(')([^']*)'|(")([^"]*)"|([^)]*))\)/gm,ie=/^[A-Za-z]+:|^\/\//,ae=/^["']?data:.*,/i;function ue(t,n){return t.replace(re,(e,o,s,i,r,u)=>{const a=s||r||u;if(!n||!a||ie.test(a)||ae.test(a))return e;const c=o||i||"";return`url(${c}${ce(a,n)}${c})`})}function ce(t,n){try{return Et(t,n).href}catch{return t}}const de=/[^a-z1-6-_]/;function it(t){const n=t.toLowerCase().trim();return de.test(n)?"div":n}function X(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 at(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 le=1e6;function ut(t,n,e,o){if(n===S.HIDDEN)return null;const s=t.getAttribute(e);if(n===S.MASK&&e!==J&&!yt.includes(e)&&e!==o.actionNameAttribute){const i=t.tagName;switch(e){case"title":case"alt":case"placeholder":return _}if(i==="IMG"&&(e==="src"||e==="srcset")){const r=t;if(r.naturalWidth>0)return X(r.naturalWidth,r.naturalHeight);const{width:u,height:a}=t.getBoundingClientRect();return u>0||a>0?X(u,a):H}if(i==="SOURCE"&&(e==="src"||e==="srcset"))return H;if(i==="A"&&e==="href")return _;if(s&&e.startsWith("data-"))return _;if(i==="IFRAME"&&e==="srcdoc")return _}return!s||typeof s!="string"?s:It(s,le)}function F(){return{cssText:{count:0,max:0,sum:0},serializationDuration:{count:0,max:0,sum:0}}}function L(t,n,e){t[n].count+=1,t[n].max=Math.max(t[n].max,e),t[n].sum+=e}function fe(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 pe(t,n,e){if(n===S.HIDDEN)return{};const o={},s=it(t.tagName),i=t.ownerDocument;for(let d=0;d<t.attributes.length;d+=1){const f=t.attributes.item(d).name,p=ut(t,n,f,e.configuration);p!==null&&(o[f]=p)}if(t.value&&(s==="textarea"||s==="select"||s==="option"||s==="input")){const d=P(t,n);d!==void 0&&(o.value=d)}if(s==="option"&&n===S.ALLOW){const d=t;d.selected&&(o.selected=d.selected)}if(s==="link"){const d=Array.from(i.styleSheets).find(f=>f.href===t.href),l=z(d);l&&d&&(L(e.serializationContext.serializationStats,"cssText",l.length),o._cssText=l)}if(s==="style"&&t.sheet){const d=z(t.sheet);d&&(L(e.serializationContext.serializationStats,"cssText",d.length),o._cssText=d)}const r=t;if(s==="input"&&(r.type==="radio"||r.type==="checkbox")&&(n===S.ALLOW?o.checked=!!r.checked:V(r,n)&&delete o.checked),s==="audio"||s==="video"){const d=t;o.rr_mediaState=d.paused?"paused":"played"}let u,a;const c=e.serializationContext;switch(c.status){case 0:u=Math.round(t.scrollTop),a=Math.round(t.scrollLeft),(u||a)&&c.elementsScrollPositions.set(t,{scrollTop:u,scrollLeft:a});break;case 1:c.elementsScrollPositions.has(t)&&({scrollTop:u,scrollLeft:a}=c.elementsScrollPositions.get(t));break}return a&&(o.rr_scrollLeft=a),u&&(o.rr_scrollTop=u),o}function z(t){if(!t)return null;let n;try{n=t.rules||t.cssRules}catch{}if(!n)return null;const e=Array.from(n,Nt()?he:ct).join("");return ue(e,t.href)}function he(t){if(ge(t)&&t.selectorText.includes(":")){const n=/(\[[\w-]+[^\\])(:[^\]]+\])/g;return t.cssText.replace(n,"$1\\$2")}return ct(t)}function ct(t){return me(t)&&z(t.styleSheet)||t.cssText}function me(t){return"styleSheet"in t}function ge(t){return"selectorText"in t}function B(t,n,e){const o=Se(t,n,e);if(!o)return null;const s=e.scope.nodeIds.assign(t),i=o;return i.id=s,e.serializedNodeIds&&e.serializedNodeIds.add(s),i}function U(t,n,e){const o=[];return tt(t,s=>{const i=B(s,n,e);i&&o.push(i)}),o}function Se(t,n,e){switch(t.nodeType){case t.DOCUMENT_NODE:return Te(t,n,e);case t.DOCUMENT_FRAGMENT_NODE:return Ee(t,n,e);case t.DOCUMENT_TYPE_NODE:return ye(t);case t.ELEMENT_NODE:return Ie(t,n,e);case t.TEXT_NODE:return we(t,n);case t.CDATA_SECTION_NODE:return Me()}}function Te(t,n,e){return{type:C.Document,childNodes:U(t,n,e),adoptedStyleSheets:at(t.adoptedStyleSheets)}}function Ee(t,n,e){const o=Z(t);return o&&e.serializationContext.shadowRootsController.addShadowRoot(t),{type:C.DocumentFragment,childNodes:U(t,n,e),isShadowRoot:o,adoptedStyleSheets:o?at(t.adoptedStyleSheets):void 0}}function ye(t){return{type:C.DocumentType,name:t.name,publicId:t.publicId,systemId:t.systemId}}function Ie(t,n,e){const o=it(t.tagName),s=Ne(t)||void 0,i=wt(Mt(t),n);if(i===S.HIDDEN){const{width:a,height:c}=t.getBoundingClientRect();return{type:C.Element,tagName:o,attributes:{rr_width:`${a}px`,rr_height:`${c}px`,[J]:Ct},childNodes:[],isSVG:s}}if(i===S.IGNORE)return;const r=pe(t,i,e);let u=[];return Rt(t)&&o!=="style"&&(u=U(t,i,e)),{type:C.Element,tagName:o,attributes:r,childNodes:u,isSVG:s}}function Ne(t){return t.tagName==="svg"||t instanceof SVGElement}function we(t,n){const e=Q(t,n);if(e!==void 0)return{type:C.Text,textContent:e}}function Me(){return{type:C.CDATA,textContent:""}}function Ce(t,n,e,o){const s=N(),i=B(t,n.defaultPrivacyLevel,{serializationContext:o,configuration:n,scope:e});return L(o.serializationStats,"serializationDuration",et(s,N())),i}function Re(t){return{nodeIds:t}}function dt(t,n,e,o=document){const s=t.defaultPrivacyLevel,i=new WeakMap,r=o!==document,{stop:u}=x(t,o,r?["change"]:["input","change"],l=>{const f=D(l);(f instanceof HTMLInputElement||f instanceof HTMLTextAreaElement||f instanceof HTMLSelectElement)&&c(f)},{capture:!0,passive:!0});let a;if(r)a=R;else{const l=[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)];a=()=>{l.forEach(f=>f.stop())}}return{stop:()=>{a(),u()}};function c(l){const f=w(l,s);if(f===S.HIDDEN)return;const p=l.type;let g;if(p==="radio"||p==="checkbox"){if(V(l,f))return;g={isChecked:l.checked}}else{const m=P(l,f);if(m===void 0)return;g={text:m}}d(l,g,n);const h=l.name;p==="radio"&&h&&l.checked&&document.querySelectorAll(`input[type="radio"][name="${CSS.escape(h)}"]`).forEach(m=>{m!==l&&d(m,{isChecked:!1},n)})}function d(l,f,p){const g=p.nodeIds.get(l);if(g===void 0)return;const h=i.get(l);(!h||h.text!==f.text||h.isChecked!==f.isChecked)&&(i.set(l,f),e(y(T.Input,{id:g,...f})))}}const xe=100,be=16;function ve(t){let n=R,e=[];function o(){n(),t(e),e=[]}const{throttled:s,cancel:i}=O(o,be,{leading:!1});return{addMutations:r=>{e.length===0&&(n=xt(s,{timeout:xe})),e.push(...r)},flush:o,stop:()=>{n(),i()}}}function lt(t,n,e,o,s){const i=bt();if(!i)return{stop:R,flush:R};const r=ve(a=>{_e(a.concat(u.takeRecords()),t,n,e,o)}),u=new i(vt(r.addMutations));return u.observe(s,{attributeOldValue:!0,attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),{stop:()=>{u.disconnect(),r.stop()},flush:()=>{r.flush()}}}function _e(t,n,e,o,s){const i=new Map;t.filter(p=>p.type==="childList").forEach(p=>{p.removedNodes.forEach(g=>{ft(g,s.removeShadowRoot)})});const r=t.filter(p=>p.target.isConnected&&o.nodeIds.areAssignedForNodeAndAncestors(p.target)&&w(p.target,e.defaultPrivacyLevel,i)!==S.HIDDEN),u=F(),{adds:a,removes:c,hasBeenSerialized:d}=De(r.filter(p=>p.type==="childList"),e,o,u,s,i),l=Ae(r.filter(p=>p.type==="characterData"&&!d(p.target)),e,o,i),f=Le(r.filter(p=>p.type==="attributes"&&!d(p.target)),e,o,i);!l.length&&!f.length&&!c.length&&!a.length||n(y(T.Mutation,{adds:a,removes:c,texts:l,attributes:f}),u)}function De(t,n,e,o,s,i){const r=new Set,u=new Map;for(const h of t)h.addedNodes.forEach(m=>{r.add(m)}),h.removedNodes.forEach(m=>{r.has(m)||u.set(m,h.target),r.delete(m)});const a=Array.from(r);Oe(a);const c=new Set,d={status:2,serializationStats:o,shadowRootsController:s},l=[];for(const h of a){if(p(h))continue;const m=w(h.parentNode,n.defaultPrivacyLevel,i);if(m===S.HIDDEN||m===S.IGNORE)continue;const M=N(),b=B(h,m,{serializedNodeIds:c,serializationContext:d,configuration:n,scope:e});if(L(o,"serializationDuration",et(M,N())),!b)continue;const ht=k(h);l.push({nextId:g(h),parentId:e.nodeIds.get(ht),node:b})}const f=[];return u.forEach((h,m)=>{const M=e.nodeIds.get(h),b=e.nodeIds.get(m);M!==void 0&&b!==void 0&&f.push({parentId:M,id:b})}),{adds:l,removes:f,hasBeenSerialized:p};function p(h){const m=e.nodeIds.get(h);return m!==void 0&&c.has(m)}function g(h){let m=h.nextSibling;for(;m;){const M=e.nodeIds.get(m);if(M!==void 0)return M;m=m.nextSibling}return null}}function Ae(t,n,e,o){var s;const i=[],r=new Set,u=t.filter(a=>r.has(a.target)?!1:(r.add(a.target),!0));for(const a of u){if(a.target.textContent===a.oldValue)continue;const d=e.nodeIds.get(a.target);if(d===void 0)continue;const l=w(k(a.target),n.defaultPrivacyLevel,o);l===S.HIDDEN||l===S.IGNORE||i.push({id:d,value:(s=Q(a.target,l))!==null&&s!==void 0?s:null})}return i}function Le(t,n,e,o){const s=[],i=new Map,r=t.filter(a=>{const c=i.get(a.target);return c&&c.has(a.attributeName)?!1:(c?c.add(a.attributeName):i.set(a.target,new Set([a.attributeName])),!0)}),u=new Map;for(const a of r){if(a.target.getAttribute(a.attributeName)===a.oldValue)continue;const d=e.nodeIds.get(a.target);if(d===void 0)continue;const l=w(a.target,n.defaultPrivacyLevel,o),f=ut(a.target,l,a.attributeName,n);let p;if(a.attributeName==="value"){const h=P(a.target,l);if(h===void 0)continue;p=h}else typeof f=="string"?p=f:p=null;let g=u.get(a.target);g||(g={id:d,attributes:{}},s.push(g),u.set(a.target,g)),g.attributes[a.attributeName]=p}return s}function Oe(t){t.sort((n,e)=>{const o=n.compareDocumentPosition(e);return o&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:o&Node.DOCUMENT_POSITION_CONTAINS||o&Node.DOCUMENT_POSITION_FOLLOWING?1:o&Node.DOCUMENT_POSITION_PRECEDING?-1:0})}function ft(t,n){K(t)&&n(t.shadowRoot),tt(t,e=>ft(e,n))}function ze(){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 Ve=(t,n,e,o)=>{const s=new Map,i={addShadowRoot:r=>{if(s.has(r))return;const u=lt(e,t,n,i,r),a=dt(t,n,e,r),c=rt(t,n,e,o,r);s.set(r,{flush:()=>u.flush(),stop:()=>{u.stop(),a.stop(),c.stop()}})},removeShadowRoot:r=>{const u=s.get(r);u&&(u.stop(),s.delete(r))},stop:()=>{s.forEach(({stop:r})=>r())},flush:()=>{s.forEach(({flush:r})=>r())}};return i};function ke(t,n,e,o,s,i,r){const u=(c,d)=>{const{width:l,height:f}=_t();r({data:{height:f,href:window.location.href,width:l},type:I.Meta,timestamp:c}),r({data:{has_focus:document.hasFocus()},type:I.Focus,timestamp:c});const p=F();r({data:{node:Ce(document,o,s,{status:d,elementsScrollPositions:t,serializationStats:p,shadowRootsController:n}),initialOffset:{left:j(),top:q()}},type:I.FullSnapshot,timestamp:c},p),window.visualViewport&&r({data:st(window.visualViewport),type:I.VisualViewport,timestamp:c})};u(N(),0);const{unsubscribe:a}=e.subscribe(2,c=>{i(),u(c.startClocks.timeStamp,1)});return{stop:a}}function Pe(){const t=new WeakMap;let n=1;return{getIdForEvent(e){return t.has(e)||t.set(e,n++),t.get(e)}}}function Fe(){const t=new WeakMap;let n=1;const e=o=>t.get(o);return{assign:o=>{let s=e(o);return s===void 0&&(s=n++,t.set(o,s)),s},get:e,areAssignedForNodeAndAncestors:o=>{let s=o;for(;s;){if(e(s)===void 0&&!Z(s))return!1;s=k(s)}return!0}}}function Be(t){const{emit:n,configuration:e,lifeCycle:o}=t;if(!n)throw new Error("emit function is required");const s=(p,g)=>{n(p,g),Dt("record",{record:p});const h=t.viewHistory.findView();At(h.id)},i=ze(),r=Re(Fe()),u=Ve(e,r,s,i),{stop:a}=ke(i,u,o,e,r,c,s);function c(){u.flush(),l.flush()}const d=Pe(),l=lt(s,e,r,u,document),f=[l,Kt(e,r,s),jt(e,r,s,d),rt(e,r,s,i,document),Qt(e,s),dt(e,r,s),te(e,r,s),ee(r,s),ne(e,s),Zt(e,s),se(o,s,d),oe(o,p=>{c(),s(p)})];return{stop:()=>{u.stop(),f.forEach(p=>p.stop()),a()},flushMutations:c,shadowRootsController:u}}function Ue(t,n,e,o){const s=new FormData;s.append("segment",new Blob([t],{type:"application/octet-stream"}),`${n.session.id}-${n.start}`);const i={raw_segment_size:o,compressed_segment_size:t.byteLength,...n},r=JSON.stringify(i);return s.append("event",new Blob([r],{type:"application/json"})),{data:s,bytesCount:t.byteLength,cssText:e.cssText,isFullSnapshot:n.index_in_view===0,rawSize:o,recordCount:n.records_count,serializationDuration:e.serializationDuration}}function He({context:t,creationReason:n,encoder:e}){let o=0;const s=t.view.id,i=Lt(s),r={start:1/0,end:-1/0,creation_reason:n,records_count:0,has_full_snapshot:!1,index_in_view:i,source:"browser",...t},u=F();Ot(s);function a(d,l,f){r.start=Math.min(r.start,d.timestamp),r.end=Math.max(r.end,d.timestamp),r.records_count+=1,r.has_full_snapshot||(r.has_full_snapshot=d.type===I.FullSnapshot),l&&fe(u,l);const p=e.isEmpty?'{"records":[':",";e.write(p+JSON.stringify(d),g=>{o+=g,f(o)})}function c(d){if(e.isEmpty)throw new Error("Empty segment flushed");e.write(`],${JSON.stringify(r).slice(1)}
|
|
2
|
+
`),e.finish(l=>{zt(r.view.id,l.rawBytesCount),d(r,u,l)})}return{addRecord:a,flush:c}}const Ge=5*Ft;let pt=6e4;function We(t,n,e,o,s,i){return $e(t,()=>Ye(n.applicationId,e,o),s,i)}function $e(t,n,e,o){let s={status:0,nextSegmentCreationReason:"init"};const{unsubscribe:i}=t.subscribe(2,()=>{u("view_change")}),{unsubscribe:r}=t.subscribe(11,a=>{u(a.reason)});function u(a){s.status===1&&(s.segment.flush((c,d,l)=>{const f=Ue(l.output,c,d,l.rawBytesCount);Vt(a)?e.sendOnExit(f):e.send(f)}),kt(s.expirationTimeoutId)),a!=="stop"?s={status:0,nextSegmentCreationReason:a}:s={status:2}}return{addRecord:(a,c)=>{if(s.status!==2){if(s.status===0){const d=n();if(!d)return;s={status:1,segment:He({encoder:o,context:d,creationReason:s.nextSegmentCreationReason}),expirationTimeoutId:Pt(()=>{u("segment_duration_limit")},Ge)}}s.segment.addRecord(a,c,d=>{d>pt&&u("segment_bytes_limit")})}},stop:()=>{u("stop"),i(),r()}}}function Ye(t,n,e){const o=n.findTrackedSession(),s=e.findView();if(!(!o||!s))return{application:{id:t},session:{id:o.id},view:{id:s.id}}}function Xe(t,n){if(!t.metricsEnabled)return{stop:R};const{unsubscribe:e}=n.subscribe(o=>{if(o.type==="failure"||o.type==="queue-full"||o.type==="success"&&o.payload.isFullSnapshot){const s=Ke(o.type,o.bandwidth,o.payload);Bt("Segment network request metrics",{metrics:s})}});return{stop:e}}function Ke(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 je(t){const n=Ut();return{addRecord:e=>{const o=t.findView();n.send("record",e,o.id)}}}function Je(t,n,e,o,s,i,r){const u=[],a=f=>{t.notify(14,{error:f}),Wt("Error reported to customer",{"error.message":f.message})},c=r||Ht([n.sessionReplayEndpointBuilder],pt,a);let d;if(Gt())({addRecord:d}=je(o));else{const f=We(t,n,e,o,c,s);d=f.addRecord,u.push(f.stop);const p=Xe(i,c.observable);u.push(p.stop)}const{stop:l}=Be({emit:d,configuration:n,lifeCycle:t,viewHistory:o});return u.push(l),{stop:()=>{u.forEach(f=>f())}}}export{Je as startRecording};
|
package/studio/web/index.html
CHANGED
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
<link rel="icon" type="dynamic-favicon" href="/favicon_purple.png" />
|
|
8
8
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
9
9
|
<title>Harper Fabric</title>
|
|
10
|
-
<script type="module" crossorigin src="/assets/index-
|
|
11
|
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
|
10
|
+
<script type="module" crossorigin src="/assets/index-DaQmCsN4.js"></script>
|
|
11
|
+
<link rel="stylesheet" crossorigin href="/assets/index-DnA-_HBI.css">
|
|
12
12
|
</head>
|
|
13
13
|
|
|
14
14
|
<body>
|