CDRM-Extension/react/assets/index-BnIE4uKp.js

53 lines
234 KiB
JavaScript
Raw Normal View History

2025-06-01 17:38:07 -04:00
(function(){const o=document.createElement("link").relList;if(o&&o.supports&&o.supports("modulepreload"))return;for(const h of document.querySelectorAll('link[rel="modulepreload"]'))r(h);new MutationObserver(h=>{for(const v of h)if(v.type==="childList")for(const T of v.addedNodes)T.tagName==="LINK"&&T.rel==="modulepreload"&&r(T)}).observe(document,{childList:!0,subtree:!0});function s(h){const v={};return h.integrity&&(v.integrity=h.integrity),h.referrerPolicy&&(v.referrerPolicy=h.referrerPolicy),h.crossOrigin==="use-credentials"?v.credentials="include":h.crossOrigin==="anonymous"?v.credentials="omit":v.credentials="same-origin",v}function r(h){if(h.ep)return;h.ep=!0;const v=s(h);fetch(h.href,v)}})();var pf={exports:{}},_u={};/**
* @license React
* react-jsx-runtime.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var C0;function Nm(){if(C0)return _u;C0=1;var c=Symbol.for("react.transitional.element"),o=Symbol.for("react.fragment");function s(r,h,v){var T=null;if(v!==void 0&&(T=""+v),h.key!==void 0&&(T=""+h.key),"key"in h){v={};for(var D in h)D!=="key"&&(v[D]=h[D])}else v=h;return h=v.ref,{$$typeof:c,type:r,key:T,ref:h!==void 0?h:null,props:v}}return _u.Fragment=o,_u.jsx=s,_u.jsxs=s,_u}var N0;function Um(){return N0||(N0=1,pf.exports=Nm()),pf.exports}var Z=Um(),Sf={exports:{}},et={};/**
* @license React
* react.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var U0;function Hm(){if(U0)return et;U0=1;var c=Symbol.for("react.transitional.element"),o=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),h=Symbol.for("react.profiler"),v=Symbol.for("react.consumer"),T=Symbol.for("react.context"),D=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),w=Symbol.iterator;function z(y){return y===null||typeof y!="object"?null:(y=w&&y[w]||y["@@iterator"],typeof y=="function"?y:null)}var B={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},H=Object.assign,G={};function Q(y,U,V){this.props=y,this.context=U,this.refs=G,this.updater=V||B}Q.prototype.isReactComponent={},Q.prototype.setState=function(y,U){if(typeof y!="object"&&typeof y!="function"&&y!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,y,U,"setState")},Q.prototype.forceUpdate=function(y){this.updater.enqueueForceUpdate(this,y,"forceUpdate")};function L(){}L.prototype=Q.prototype;function Y(y,U,V){this.props=y,this.context=U,this.refs=G,this.updater=V||B}var $=Y.prototype=new L;$.constructor=Y,H($,Q.prototype),$.isPureReactComponent=!0;var it=Array.isArray,I={H:null,A:null,T:null,S:null,V:null},zt=Object.prototype.hasOwnProperty;function Rt(y,U,V,q,J,ft){return V=ft.ref,{$$typeof:c,type:y,key:U,ref:V!==void 0?V:null,props:ft}}function _t(y,U){return Rt(y.type,U,void 0,void 0,void 0,y.props)}function St(y){return typeof y=="object"&&y!==null&&y.$$typeof===c}function Jt(y){var U={"=":"=0",":":"=2"};return"$"+y.replace(/[=:]/g,function(V){return U[V]})}var oe=/\/+/g;function Vt(y,U){return typeof y=="object"&&y!==null&&y.key!=null?Jt(""+y.key):U.toString(36)}function El(){}function Tl(y){switch(y.status){case"fulfilled":return y.value;case"rejected":throw y.reason;default:switch(typeof y.status=="string"?y.then(El,El):(y.status="pending",y.then(function(U){y.status==="pending"&&(y.status="fulfilled",y.value=U)},function(U){y.status==="pending"&&(y.status="rejected",y.reason=U)})),y.status){case"fulfilled":return y.value;case"rejected":throw y.reason}}throw y}function Xt(y,U,V,q,J){var ft=typeof y;(ft==="undefined"||ft==="boolean")&&(y=null);var tt=!1;if(y===null)tt=!0;else switch(ft){case"bigint":case"string":case"number":tt=!0;break;case"object":switch(y.$$typeof){case c:case o:tt=!0;break;case R:return tt=y._init,Xt(tt(y._payload),U,V,q,J)}}if(tt)return J=J(y),tt=q===""?"."+Vt(y,0):q,it(J)?(V="",tt!=null&&(V=tt.replace(oe,"$&/")+"/"),Xt(J,U,V,"",function($e){return $e})):J!=null&&(St(J)&&(J=_t(J,V+(J.key==null||y&&y.key===J.key?"":(""+J.key).replace(oe,"$&/")+"/")+tt)),U.push(J)),1;tt=0;var te=q===""?".":q+":";if(it(y))for(var bt=0;bt<y.length;bt++)q=y[bt],ft=te+Vt(q,bt),tt+=Xt(q,U,V,ft,J);else if(bt=z(y),typeof bt=="function")for(y=bt.call(y),bt=0;!(q=y.next()).done;)q=q.value,ft=te+Vt(q,bt++),tt+=Xt(q,U,V,ft,J);else if(ft==="object"){if(typeof y.then=="function")return Xt(Tl(y),U,V,q,J);throw U=String(y),Error("Objects are not valid as a React child (found: "+(U==="[object Object]"?"object with keys {"+Object.keys(y).join(", ")+"}":U)+"). If you meant to render a collection of children, use an array instead.")}return tt}function M(y,U,V){if(y==null)return y;var q=[],J=0;return Xt(y,q,"","",function(ft){return U.call(V,ft,J++)}),q}function j(y){if(y._status===-1){var U=y._result;U=U(),U.then(function(V){(y._status===0||y._status===-1)&&(y._status=1,y._result=V)},function(V){(y._status===0||y._status===-1)&&(y._status=2,y._result=V)}),y._status===-1&&(y._status=0,y._result=U)}if(y._status===1)return y._result.default;throw y._result}var F=typeof reportError=="function"?reportError:function(y){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var U=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof y=="object"&&y!==null&&typeof y.message=="string"?String(y.message):String(y),error:y});if(!window.dispatchEvent(
* @license React
* scheduler.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var w0;function wm(){return w0||(w0=1,function(c){function o(M,j){var F=M.length;M.push(j);t:for(;0<F;){var yt=F-1>>>1,y=M[yt];if(0<h(y,j))M[yt]=j,M[F]=y,F=yt;else break t}}function s(M){return M.length===0?null:M[0]}function r(M){if(M.length===0)return null;var j=M[0],F=M.pop();if(F!==j){M[0]=F;t:for(var yt=0,y=M.length,U=y>>>1;yt<U;){var V=2*(yt+1)-1,q=M[V],J=V+1,ft=M[J];if(0>h(q,F))J<y&&0>h(ft,q)?(M[yt]=ft,M[J]=F,yt=J):(M[yt]=q,M[V]=F,yt=V);else if(J<y&&0>h(ft,F))M[yt]=ft,M[J]=F,yt=J;else break t}}return j}function h(M,j){var F=M.sortIndex-j.sortIndex;return F!==0?F:M.id-j.id}if(c.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var v=performance;c.unstable_now=function(){return v.now()}}else{var T=Date,D=T.now();c.unstable_now=function(){return T.now()-D}}var p=[],d=[],R=1,w=null,z=3,B=!1,H=!1,G=!1,Q=!1,L=typeof setTimeout=="function"?setTimeout:null,Y=typeof clearTimeout=="function"?clearTimeout:null,$=typeof setImmediate<"u"?setImmediate:null;function it(M){for(var j=s(d);j!==null;){if(j.callback===null)r(d);else if(j.startTime<=M)r(d),j.sortIndex=j.expirationTime,o(p,j);else break;j=s(d)}}function I(M){if(G=!1,it(M),!H)if(s(p)!==null)H=!0,zt||(zt=!0,Vt());else{var j=s(d);j!==null&&Xt(I,j.startTime-M)}}var zt=!1,Rt=-1,_t=5,St=-1;function Jt(){return Q?!0:!(c.unstable_now()-St<_t)}function oe(){if(Q=!1,zt){var M=c.unstable_now();St=M;var j=!0;try{t:{H=!1,G&&(G=!1,Y(Rt),Rt=-1),B=!0;var F=z;try{e:{for(it(M),w=s(p);w!==null&&!(w.expirationTime>M&&Jt());){var yt=w.callback;if(typeof yt=="function"){w.callback=null,z=w.priorityLevel;var y=yt(w.expirationTime<=M);if(M=c.unstable_now(),typeof y=="function"){w.callback=y,it(M),j=!0;break e}w===s(p)&&r(p),it(M)}else r(p);w=s(p)}if(w!==null)j=!0;else{var U=s(d);U!==null&&Xt(I,U.startTime-M),j=!1}}break t}finally{w=null,z=F,B=!1}j=void 0}}finally{j?Vt():zt=!1}}}var Vt;if(typeof $=="function")Vt=function(){$(oe)};else if(typeof MessageChannel<"u"){var El=new MessageChannel,Tl=El.port2;El.port1.onmessage=oe,Vt=function(){Tl.postMessage(null)}}else Vt=function(){L(oe,0)};function Xt(M,j){Rt=L(function(){M(c.unstable_now())},j)}c.unstable_IdlePriority=5,c.unstable_ImmediatePriority=1,c.unstable_LowPriority=4,c.unstable_NormalPriority=3,c.unstable_Profiling=null,c.unstable_UserBlockingPriority=2,c.unstable_cancelCallback=function(M){M.callback=null},c.unstable_forceFrameRate=function(M){0>M||125<M?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):_t=0<M?Math.floor(1e3/M):5},c.unstable_getCurrentPriorityLevel=function(){return z},c.unstable_next=function(M){switch(z){case 1:case 2:case 3:var j=3;break;default:j=z}var F=z;z=j;try{return M()}finally{z=F}},c.unstable_requestPaint=function(){Q=!0},c.unstable_runWithPriority=function(M,j){switch(M){case 1:case 2:case 3:case 4:case 5:break;default:M=3}var F=z;z=M;try{return j()}finally{z=F}},c.unstable_scheduleCallback=function(M,j,F){var yt=c.unstable_now();switch(typeof F=="object"&&F!==null?(F=F.delay,F=typeof F=="number"&&0<F?yt+F:yt):F=yt,M){case 1:var y=-1;break;case 2:y=250;break;case 5:y=1073741823;break;case 4:y=1e4;break;default:y=5e3}return y=F+y,M={id:R++,callback:j,priorityLevel:M,startTime:F,expirationTime:y,sortIndex:-1},F>yt?(M.sortIndex=F,o(d,M),s(p)===null&&M===s(d)&&(G?(Y(Rt),Rt=-1):G=!0,Xt(I,F-yt))):(M.sortIndex=y,o(p,M),H||B||(H=!0,zt||(zt=!0,Vt()))),M},c.unstable_shouldYield=Jt,c.unstable_wrapCallback=function(M){var j=z;return function(){var F=z;z=j;try{return M.apply(this,arguments)}finally{z=F}}}}(Tf)),Tf}var L0;function Lm(){return L0||(L0=1,Ef.exports=wm()),Ef.exports}var xf={exports:{}},Kt={};/**
* @license React
* react-dom.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var B0;function Bm(){if(B0)return Kt;B0=1;var c=Mf();function o(p){var d="https://react.dev/errors/"+p;if(1<arguments.length){d+="?args[]="+encodeURIComponent(arguments[1]);for(var R=2;R<arguments.length;R++)d+="&args[]="+encodeURIComponent(arguments[R])}return"Minified React error #"+p+"; visit "+d+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(){}var r={d:{f:s,r:function(){throw Error(o(522))},D:s,C:s,L:s,m:s,X:s,S:s,M:s},p:0,findDOMNode:null},h=Symbol.for("react.portal");function v(p,d,R){var w=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:h,key:w==null?null:""+w,children:p,containerInfo:d,implementation:R}}var T=c.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function D(p,d){if(p==="font")return"";if(typeof d=="string")return d==="use-credentials"?d:""}return Kt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Kt.createPortal=function(p,d){var R=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!d||d.nodeType!==1&&d.nodeType!==9&&d.nodeType!==11)throw Error(o(299));return v(p,d,null,R)},Kt.flushSync=function(p){var d=T.T,R=r.p;try{if(T.T=null,r.p=2,p)return p()}finally{T.T=d,r.p=R,r.d.f()}},Kt.preconnect=function(p,d){typeof p=="string"&&(d?(d=d.crossOrigin,d=typeof d=="string"?d==="use-credentials"?d:"":void 0):d=null,r.d.C(p,d))},Kt.prefetchDNS=function(p){typeof p=="string"&&r.d.D(p)},Kt.preinit=function(p,d){if(typeof p=="string"&&d&&typeof d.as=="string"){var R=d.as,w=D(R,d.crossOrigin),z=typeof d.integrity=="string"?d.integrity:void 0,B=typeof d.fetchPriority=="string"?d.fetchPriority:void 0;R==="style"?r.d.S(p,typeof d.precedence=="string"?d.precedence:void 0,{crossOrigin:w,integrity:z,fetchPriority:B}):R==="script"&&r.d.X(p,{crossOrigin:w,integrity:z,fetchPriority:B,nonce:typeof d.nonce=="string"?d.nonce:void 0})}},Kt.preinitModule=function(p,d){if(typeof p=="string")if(typeof d=="object"&&d!==null){if(d.as==null||d.as==="script"){var R=D(d.as,d.crossOrigin);r.d.M(p,{crossOrigin:R,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0})}}else d==null&&r.d.M(p)},Kt.preload=function(p,d){if(typeof p=="string"&&typeof d=="object"&&d!==null&&typeof d.as=="string"){var R=d.as,w=D(R,d.crossOrigin);r.d.L(p,R,{crossOrigin:w,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0,type:typeof d.type=="string"?d.type:void 0,fetchPriority:typeof d.fetchPriority=="string"?d.fetchPriority:void 0,referrerPolicy:typeof d.referrerPolicy=="string"?d.referrerPolicy:void 0,imageSrcSet:typeof d.imageSrcSet=="string"?d.imageSrcSet:void 0,imageSizes:typeof d.imageSizes=="string"?d.imageSizes:void 0,media:typeof d.media=="string"?d.media:void 0})}},Kt.preloadModule=function(p,d){if(typeof p=="string")if(d){var R=D(d.as,d.crossOrigin);r.d.m(p,{as:typeof d.as=="string"&&d.as!=="script"?d.as:void 0,crossOrigin:R,integrity:typeof d.integrity=="string"?d.integrity:void 0})}else r.d.m(p)},Kt.requestFormReset=function(p){r.d.r(p)},Kt.unstable_batchedUpdates=function(p,d){return p(d)},Kt.useFormState=function(p,d,R){return T.H.useFormState(p,d,R)},Kt.useFormStatus=function(){return T.H.useHostTransitionStatus()},Kt.version="19.1.0",Kt}var q0;function qm(){if(q0)return xf.exports;q0=1;function c(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(c)}catch(o){console.error(o)}}return c(),xf.exports=Bm(),xf.exports}/**
* @license React
* react-dom-client.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var j0;function jm(){if(j0)return Ou;j0=1;var c=Lm(),o=Mf(),s=qm();function r(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)e+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function h(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function v(t){var e=t,l=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(l=e.return),t=e.return;while(t)}return e.tag===3?l:null}function T(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function D(t){if(v(t)!==t)throw Error(r(188))}function p(t){var e=t.alternate;if(!e){if(e=v(t),e===null)throw Error(r(188));return e!==t?null:t}for(var l=t,a=e;;){var u=l.return;if(u===null)break;var n=u.alternate;if(n===null){if(a=u.return,a!==null){l=a;continue}break}if(u.child===n.child){for(n=u.child;n;){if(n===l)return D(u),t;if(n===a)return D(u),e;n=n.sibling}throw Error(r(188))}if(l.return!==a.return)l=u,a=n;else{for(var i=!1,f=u.child;f;){if(f===l){i=!0,l=u,a=n;break}if(f===a){i=!0,a=u,l=n;break}f=f.sibling}if(!i){for(f=n.child;f;){if(f===l){i=!0,l=n,a=u;break}if(f===a){i=!0,a=n,l=u;break}f=f.sibling}if(!i)throw Error(r(189))}}if(l.alternate!==a)throw Error(r(190))}if(l.tag!==3)throw Error(r(188));return l.stateNode.current===l?t:e}function d(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=d(t),e!==null)return e;t=t.sibling}return null}var R=Object.assign,w=Symbol.for("react.element"),z=Symbol.for("react.transitional.element"),B=Symbol.for("react.portal"),H=Symbol.for("react.fragment"),G=Symbol.for("react.strict_mode"),Q=Symbol.for("react.profiler"),L=Symbol.for("react.provider"),Y=Symbol.for("react.consumer"),$=Symbol.for("react.context"),it=Symbol.for("react.forward_ref"),I=Symbol.for("react.suspense"),zt=Symbol.for("react.suspense_list"),Rt=Symbol.for("react.memo"),_t=Symbol.for("react.lazy"),St=Symbol.for("react.activity"),Jt=Symbol.for("react.memo_cache_sentinel"),oe=Symbol.iterator;function Vt(t){return t===null||typeof t!="object"?null:(t=oe&&t[oe]||t["@@iterator"],typeof t=="function"?t:null)}var El=Symbol.for("react.client.reference");function Tl(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===El?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case H:return"Fragment";case Q:return"Profiler";case G:return"StrictMode";case I:return"Suspense";case zt:return"SuspenseList";case St:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case B:return"Portal";case $:return(t.displayName||"Context")+".Provider";case Y:return(t._context.displayName||"Context")+".Consumer";case it:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case Rt:return e=t.displayName||null,e!==null?e:Tl(t.type)||"Memo";case _t:e=t._payload,t=t._init;try{return Tl(t(e))}catch{}}return null}var Xt=Array.isArray,M=o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,j=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F={pending:!1,data:null,method:null,action:null},yt=[],y=-1;function U(t){return{current:t}}function V(t){0>y||(t.current=yt[y],yt[y]=null,y--)}function q(t,e){y++,yt[y]=t.current,t.current=e}var J=U(null),ft=U(null),tt=U(null),te=U(null);function bt(t,e){switch(q(tt,e),q(ft,t),q(J,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?n0(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=n0(e),t=i0(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}V(J),q(J,t)}function $e(){V(J),V(ft),V(tt)}function li(t){t.memoizedState!==null&&q(te,t);var e=J.current,l=i0(e,t.type);e!==l&&(q(ft,t),q(J,l))}function Hu(t){ft.current===t&&(V(J),V(ft)),te.current===t&&(V(te),Tu._currentValue=F)}var ai=Object.prototype.has
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
`+si+t+Ff}var di=!1;function hi(t,e){if(!t||di)return"";di=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(e){var N=function(){throw Error()};if(Object.defineProperty(N.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(N,[])}catch(A){var x=A}Reflect.construct(t,[],N)}else{try{N.call()}catch(A){x=A}t.call(N.prototype)}}else{try{throw Error()}catch(A){x=A}(N=t())&&typeof N.catch=="function"&&N.catch(function(){})}}catch(A){if(A&&x&&typeof A.stack=="string")return[A.stack,x.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var u=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");u&&u.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var n=a.DetermineComponentFrameRoot(),i=n[0],f=n[1];if(i&&f){var m=i.split(`
`),E=f.split(`
`);for(u=a=0;a<m.length&&!m[a].includes("DetermineComponentFrameRoot");)a++;for(;u<E.length&&!E[u].includes("DetermineComponentFrameRoot");)u++;if(a===m.length||u===E.length)for(a=m.length-1,u=E.length-1;1<=a&&0<=u&&m[a]!==E[u];)u--;for(;1<=a&&0<=u;a--,u--)if(m[a]!==E[u]){if(a!==1||u!==1)do if(a--,u--,0>u||m[a]!==E[u]){var O=`
`+m[a].replace(" at new "," at ");return t.displayName&&O.includes("<anonymous>")&&(O=O.replace("<anonymous>",t.displayName)),O}while(1<=a&&0<=u);break}}}finally{di=!1,Error.prepareStackTrace=l}return(l=t?t.displayName||t.name:"")?Jl(l):""}function Dd(t){switch(t.tag){case 26:case 27:case 5:return Jl(t.type);case 16:return Jl("Lazy");case 13:return Jl("Suspense");case 19:return Jl("SuspenseList");case 0:case 15:return hi(t.type,!1);case 11:return hi(t.type.render,!1);case 1:return hi(t.type,!0);case 31:return Jl("Activity");default:return""}}function Pf(t){try{var e="";do e+=Dd(t),t=t.return;while(t);return e}catch(l){return`
Error generating stack: `+l.message+`
`+l.stack}}function se(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function If(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function _d(t){var e=If(t)?"checked":"value",l=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),a=""+t[e];if(!t.hasOwnProperty(e)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var u=l.get,n=l.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return u.call(this)},set:function(i){a=""+i,n.call(this,i)}}),Object.defineProperty(t,e,{enumerable:l.enumerable}),{getValue:function(){return a},setValue:function(i){a=""+i},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Gu(t){t._valueTracker||(t._valueTracker=_d(t))}function tr(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var l=e.getValue(),a="";return t&&(a=If(t)?t.checked?"true":"false":t.value),t=a,t!==l?(e.setValue(t),!0):!1}function Vu(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var Od=/[\n"\\]/g;function de(t){return t.replace(Od,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function mi(t,e,l,a,u,n,i,f){t.name="",i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"?t.type=i:t.removeAttribute("type"),e!=null?i==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+se(e)):t.value!==""+se(e)&&(t.value=""+se(e)):i!=="submit"&&i!=="reset"||t.removeAttribute("value"),e!=null?vi(t,i,se(e)):l!=null?vi(t,i,se(l)):a!=null&&t.removeAttribute("value"),u==null&&n!=null&&(t.defaultChecked=!!n),u!=null&&(t.checked=u&&typeof u!="function"&&typeof u!="symbol"),f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?t.name=""+se(f):t.removeAttribute("name")}function er(t,e,l,a,u,n,i,f){if(n!=null&&typeof n!="function"&&typeof n!="symbol"&&typeof n!="boolean"&&(t.type=n),e!=null||l!=null){if(!(n!=="submit"&&n!=="reset"||e!=null))return;l=l!=null?""+se(l):"",e=e!=null?""+se(e):l,f||e===t.value||(t.value=e),t.defaultValue=e}a=a??u,a=typeof a!="function"&&typeof a!="symbol"&&!!a,t.checked=f?t.checked:!!a,t.defaultChecked=!!a,i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(t.name=i)}function vi(t,e,l){e==="number"&&Vu(t.ownerDocument)===t||t.defaultValue===""+l||(t.defaultValue=""+l)}function kl(t,e,l,a){if(t=t.options,e){e={};for(var u=0;u<l.length;u++)e["$"+l[u]]=!0;for(l=0;l<t.length;l++)u=e.hasOwnProperty("$"+t[l].value),t[l].selected!==u&&(t[l].selected=u),u&&a&&(t[l].defaultSelected=!0)}else{for(l=""+se(l),e=null,u=0;u<t.length;u++){if(t[u].value===l){t[u].selected=!0,a&&(t[u].defaultSelected=!0);return}e!==null||t[u].disabled||(e=t[u])}e!==null&&(e.selected=!0)}}function lr(t,e,l){if(e!=null&&(e=""+se(e),e!==t.value&&(t.value=e),l==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=l!=null?""+se(l):""}function ar(t,e,l,a){if(e==null){if(a!=null){if(l!=null)throw Error(r(92));if(Xt(a)){if(1<a.length)throw Error(r(93));a=a[0]}l=a}l==null&&(l=""),e=l}l=se(e),t.defaultValue=l,a=t.textContent,a===l&&a!==""&&a!==null&&(t.value=a)}function $l(t,e){if(e){var l=t.firstChild;if(l&&l===t.lastChild&&l.nodeType===3){l.nodeValue=e;return}}t.textContent=e}var Md=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGr
`).replace(tm,"")}function u0(t,e){return e=a0(e),a0(t)===e}function Ln(){}function mt(t,e,l,a,u,n){switch(l){case"children":typeof a=="string"?e==="body"||e==="textarea"&&a===""||$l(t,a):(typeof a=="number"||typeof a=="bigint")&&e!=="body"&&$l(t,""+a);break;case"className":Yu(t,"class",a);break;case"tabIndex":Yu(t,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Yu(t,l,a);break;case"style":nr(t,a,n);break;case"data":if(e!=="object"){Yu(t,"data",a);break}case"src":case"href":if(a===""&&(e!=="a"||l!=="href")){t.removeAttribute(l);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(l);break}a=Xu(""+a),t.setAttribute(l,a);break;case"action":case"formAction":if(typeof a=="function"){t.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof n=="function"&&(l==="formAction"?(e!=="input"&&mt(t,e,"name",u.name,u,null),mt(t,e,"formEncType",u.formEncType,u,null),mt(t,e,"formMethod",u.formMethod,u,null),mt(t,e,"formTarget",u.formTarget,u,null)):(mt(t,e,"encType",u.encType,u,null),mt(t,e,"method",u.method,u,null),mt(t,e,"target",u.target,u,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(l);break}a=Xu(""+a),t.setAttribute(l,a);break;case"onClick":a!=null&&(t.onclick=Ln);break;case"onScroll":a!=null&&nt("scroll",t);break;case"onScrollEnd":a!=null&&nt("scrollend",t);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(r(61));if(l=a.__html,l!=null){if(u.children!=null)throw Error(r(60));t.innerHTML=l}}break;case"multiple":t.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":t.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){t.removeAttribute("xlink:href");break}l=Xu(""+a),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(l,""+a):t.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(l,""):t.removeAttribute(l);break;case"capture":case"download":a===!0?t.setAttribute(l,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(l,a):t.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?t.setAttribute(l,a):t.removeAttribute(l);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?t.removeAttribute(l):t.setAttribute(l,a);break;case"popover":nt("beforetoggle",t),nt("toggle",t),ju(t,"popover",a);break;case"xlinkActuate":Ne(t,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Ne(t,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Ne(t,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Ne(t,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Ne(t,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Ne(t,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Ne(t,"http://www.w3.org/XML/1998/nam
Please change the parent <Route path="${Y}"> to <Route path="${Y==="/"?"*":`${Y}/*`}">.`)}let w=bl(),z;if(o){let Y=typeof o=="string"?Gl(o):o;Tt(d==="/"||((L=Y.pathname)==null?void 0:L.startsWith(d)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${d}" but pathname "${Y.pathname}" was given in the \`location\` prop.`),z=Y}else z=w;let B=z.pathname||"/",H=B;if(d!=="/"){let Y=d.replace(/^\//,"").split("/");H="/"+B.replace(/^\//,"").split("/").slice(Y.length).join("/")}let G=$0(c,{pathname:H});be(R||G!=null,`No routes matched location "${z.pathname}${z.search}${z.hash}" `),be(G==null||G[G.length-1].route.element!==void 0||G[G.length-1].route.Component!==void 0||G[G.length-1].route.lazy!==void 0,`Matched leaf route at location "${z.pathname}${z.search}${z.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let Q=x1(G&&G.map(Y=>Object.assign({},Y,{params:Object.assign({},D,Y.params),pathname:Je([d,h.encodeLocation?h.encodeLocation(Y.pathname).pathname:Y.pathname]),pathnameBase:Y.pathnameBase==="/"?d:Je([d,h.encodeLocation?h.encodeLocation(Y.pathnameBase).pathname:Y.pathnameBase])})),v,s,r);return o&&Q?_.createElement(Nu.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...z},navigationType:"POP"}},Q):Q}function S1(){let c=O1(),o=d1(c)?`${c.status} ${c.statusText}`:c instanceof Error?c.message:JSON.stringify(c),s=c instanceof Error?c.stack:null,r="rgba(200,200,200, 0.5)",h={padding:"0.5rem",backgroundColor:r},v={padding:"2px 4px",backgroundColor:r},T=null;return console.error("Error handled by React Router default ErrorBoundary:",c),T=_.createElement(_.Fragment,null,_.createElement("p",null,"💿 Hey developer 👋"),_.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",_.createElement("code",{style:v},"ErrorBoundary")," or"," ",_.createElement("code",{style:v},"errorElement")," prop on your route.")),_.createElement(_.Fragment,null,_.createElement("h2",null,"Unexpected Application Error!"),_.createElement("h3",{style:{fontStyle:"italic"}},o),s?_.createElement("pre",{style:h},s):null,T)}var b1=_.createElement(S1,null),E1=class extends _.Component{constructor(c){super(c),this.state={location:c.location,revalidation:c.revalidation,error:c.error}}static getDerivedStateFromError(c){return{error:c}}static getDerivedStateFromProps(c,o){return o.location!==c.location||o.revalidation!=="idle"&&c.revalidation==="idle"?{error:c.error,location:c.location,revalidation:c.revalidation}:{error:c.error!==void 0?c.error:o.error,location:o.location,revalidation:c.revalidation||o.revalidation}}componentDidCatch(c,o){console.error("React Router caught the following error during render",c,o)}render(){return this.state.error!==void 0?_.createElement(Ce.Provider,{value:this.props.routeContext},_.createElement(Nf.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function T1({routeContext:c,match:o,children:s}){let r=_.useContext(Oa);return r&&r.static&&r.staticContext&&(o.route.errorElement||o.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=o.route.id),_.createElement(Ce.Provider,{value:c},s)}function x1(c,o=[],s=null,r=null){if(c==null){if(!s)return null;if(s.errors)c=s.matches;else if(o.length===0&&!s.initialized&&s.matches.length>0)c=s.matches;else return null}let h=c,v=s==null?void 0:s.errors;if(v!=null){let p=h.findIndex(d=>d.route.id&&(v==null?void 0:v[d.route.id])!==void 0);Tt(p>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(v).join(",")}`),h=h.slice(0,Math.min(h.length,p+1))}let T=!1,D=-1;if(s)for(let p=0;p<h.length;p++){let d=h[p];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(D=p),d.route.id){let{loaderData:R,errors:w}=s,z=d.route.loader&&!R.hasOwnProperty(d.route.id)&
`):Z.jsx("span",{className:"text-gray-400",children:"None"})})]})}function k0({onConfigSaved:c}){const[o,s]=_.useState(""),[r,h]=_.useState(null),[v,T]=_.useState(null),[D,p]=_.useState(null),[d,R]=_.useState(!1),w=Uf();_.useEffect(()=>{chrome.storage.local.get("cdrm_instance",B=>{chrome.runtime.lastError?console.error("Error fetching CDRM instance:",chrome.runtime.lastError):B.cdrm_instance&&h(B.cdrm_instance)})},[]);const z=async()=>{const B=o.trim().replace(/\/+$/,"");if(!B){T("Please enter a valid URL."),p("error");return}const H=B+"/api/extension";R(!0),T(null);try{if((await(await fetch(H,{method:"POST",headers:{"Content-Type":"application/json"}})).json()).status===!0){T("Successfully connected to CDRM Instance."),p("success");const L=await fetch(`${B}/remotecdm/widevine/deviceinfo`);if(!L.ok)throw new Error("Failed to fetch Widevine device info");const Y=await L.json(),$=await fetch(`${B}/remotecdm/playready/deviceinfo`);if(!$.ok)throw new Error("Failed to fetch PlayReady device info");const it=await $.json();chrome.storage.local.set({valid_config:!0,cdrm_instance:B,widevine_device:{device_type:Y.device_type,system_id:Y.system_id,security_level:Y.security_level,secret:Y.secret,device_name:Y.device_name,host:B},playready_device:{security_level:it.security_level,secret:it.secret,device_name:it.device_name,host:B}},()=>{chrome.runtime.lastError?(console.error("Error saving to chrome.storage:",chrome.runtime.lastError),T("Error saving configuration."),p("error")):(console.log("Configuration saved."),h(B),s(""),c&&c(),w("/results"))})}else throw new Error("Invalid response from endpoint.")}catch(G){console.error("Connection error:",G),T("Invalid endpoint or device info could not be retrieved."),p("error")}finally{R(!1)}};return Z.jsxs("div",{className:"w-full h-full overflow-y-auto overflow-x-auto flex flex-col p-4",children:[Z.jsx("input",{type:"text",value:o,onChange:B=>s(B.target.value),placeholder:r?`Current CDRM Instance: ${r}`:"CDRM Instance URL (e.g., https://cdrm-project.com/, http://127.0.0.1:5000/)",className:"w-full p-4 text-lg bg-gray-800 text-white border border-gray-700 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500 mt-4"}),Z.jsx("button",{onClick:z,disabled:d,className:`mt-4 p-2 ${d?"bg-blue-400":"bg-blue-600 hover:bg-blue-700"} text-white rounded-md transition duration-300`,children:d?"Connecting...":"Save Settings"}),v&&Z.jsx("p",{className:`mt-2 text-sm text-center ${D==="success"?"text-green-400":"text-red-400"}`,children:v})]})}function p2(){const[c,o]=_.useState(!1),[s,r]=_.useState(null);return _.useEffect(()=>{chrome.storage.local.get("valid_config",h=>{chrome.runtime.lastError?(console.error("Error reading valid_config:",chrome.runtime.lastError),r(!1)):r(h.valid_config===!0)})},[]),s===null?Z.jsx("div",{className:"flex items-center justify-center h-screen bg-black text-white",children:"Loading..."}):Z.jsx(l2,{children:Z.jsxs("div",{className:"min-w-full min-h-full w-full h-full flex flex-grow bg-black/95 flex-col relative",children:[Z.jsx("div",{className:"w-full min-h-16 max-h-16 h-16 shrink-0 flex sticky top-0 z-20 border-b border-b-white bg-black",children:Z.jsx(d2,{onMenuClick:()=>o(!0)})}),Z.jsx("div",{id:"currentpagecontainer",className:"w-full grow overflow-y-auto",children:Z.jsx(N1,{children:s?Z.jsxs(Z.Fragment,{children:[Z.jsx(_a,{path:"/",element:Z.jsx(K0,{to:"/results",replace:!0})}),Z.jsx(_a,{path:"/results",element:Z.jsx(g2,{})}),Z.jsx(_a,{path:"/settings",element:Z.jsx(k0,{})})]}):Z.jsxs(Z.Fragment,{children:[Z.jsx(_a,{path:"/settings",element:Z.jsx(k0,{onConfigSaved:()=>r(!0)})}),Z.jsx(_a,{path:"*",element:Z.jsx(K0,{to:"/settings",replace:!0})})]})})}),Z.jsx("div",{className:`fixed top-0 left-0 w-full h-full z-50 bg-black transform transition-transform duration-300 ease-in-out ${c?"translate-x-0":"-translate-x-full"}`,children:Z.jsx(y2,{onClose:()=>o(!1)})})]})})}Gm.createRoot(document.getElementById("root")).render(Z.jsx(_.StrictMode,{children:Z.jsx(p2,{})}));