feat(cameras): pan/tilt page — mosquitto + neolink mqtt-rtsp + cam.ginnoir.com/ptz
Deploy Caddyfile to valhalla / deploy (push) Failing after 10s
Deploy Caddyfile to valhalla / deploy (push) Failing after 10s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
d6a331465e
commit
b78a8d51ad
10 files changed
+1014
-1
No files matched your search
Vendored
+19
@@ -0,0 +1,19 @@
|
||||
"use strict";var mqtt=(()=>{var as=Object.defineProperty;var Yb=Object.getOwnPropertyDescriptor;var Jb=Object.getOwnPropertyNames;var Xb=Object.prototype.hasOwnProperty;var ze=(t,e)=>()=>(t&&(e=t(t=0)),e);var j=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Kr=(t,e)=>{for(var r in e)as(t,r,{get:e[r],enumerable:!0})},Zb=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Jb(e))!Xb.call(t,i)&&i!==r&&as(t,i,{get:()=>e[i],enumerable:!(n=Yb(e,i))||n.enumerable});return t};var me=t=>Zb(as({},"__esModule",{value:!0}),t);var A=ze(()=>{});var N={};Kr(N,{_debugEnd:()=>Qc,_debugProcess:()=>Kc,_events:()=>hf,_eventsCount:()=>df,_exiting:()=>Oc,_fatalExceptions:()=>Hc,_getActiveHandles:()=>Bc,_getActiveRequests:()=>Cc,_kill:()=>Nc,_linkedBinding:()=>Tc,_maxListeners:()=>ff,_preload_modules:()=>uf,_rawDebug:()=>Ic,_startProfilerIdleNotifier:()=>Yc,_stopProfilerIdleNotifier:()=>Jc,_tickCallback:()=>zc,abort:()=>tf,addListener:()=>pf,allowedNodeEnvironmentFlags:()=>Fc,arch:()=>fc,argv:()=>pc,argv0:()=>af,assert:()=>Wc,binding:()=>mc,browser:()=>Ac,chdir:()=>Sc,config:()=>Rc,cpuUsage:()=>Ri,cwd:()=>vc,debugPort:()=>sf,default:()=>Ef,dlopen:()=>kc,domain:()=>Pc,emit:()=>mf,emitWarning:()=>wc,env:()=>dc,execArgv:()=>yc,execPath:()=>of,exit:()=>Dc,features:()=>$c,hasUncaughtExceptionCaptureCallback:()=>Gc,hrtime:()=>Oi,kill:()=>Uc,listeners:()=>Sf,memoryUsage:()=>Lc,moduleLoadList:()=>xc,nextTick:()=>uc,off:()=>gf,on:()=>Nt,once:()=>yf,openStdin:()=>jc,pid:()=>rf,platform:()=>hc,ppid:()=>nf,prependListener:()=>_f,prependOnceListener:()=>vf,reallyExit:()=>Mc,release:()=>Ec,removeAllListeners:()=>wf,removeListener:()=>bf,resourceUsage:()=>qc,setSourceMapsEnabled:()=>lf,setUncaughtExceptionCaptureCallback:()=>Vc,stderr:()=>Zc,stdin:()=>ef,stdout:()=>Xc,title:()=>cc,umask:()=>_c,uptime:()=>cf,version:()=>gc,versions:()=>bc});function cs(t){throw new Error("Node.js process "+t+" is not supported by JSPM core outside of Node.js")}function ew(){!Qr||!wr||(Qr=!1,wr.length?Mt=wr.concat(Mt):Pi=-1,Mt.length&&ac())}function ac(){if(!Qr){var t=setTimeout(ew,0);Qr=!0;for(var e=Mt.length;e;){for(wr=Mt,Mt=[];++Pi<e;)wr&&wr[Pi].run();Pi=-1,e=Mt.length}wr=null,Qr=!1,clearTimeout(t)}}function uc(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];Mt.push(new lc(t,e)),Mt.length===1&&!Qr&&setTimeout(ac,0)}function lc(t,e){this.fun=t,this.array=e}function Ue(){}function Tc(t){cs("_linkedBinding")}function kc(t){cs("dlopen")}function Cc(){return[]}function Bc(){return[]}function Wc(t,e){if(!t)throw new Error(e||"assertion error")}function Gc(){return!1}function cf(){return Jt.now()/1e3}function Oi(t){var e=Math.floor((Date.now()-Jt.now())*.001),r=Jt.now()*.001,n=Math.floor(r)+e,i=Math.floor(r%1*1e9);return t&&(n=n-t[0],i=i-t[1],i<0&&(n--,i+=ls)),[n,i]}function Nt(){return Ef}function Sf(t){return[]}var Mt,Qr,wr,Pi,cc,fc,hc,dc,pc,yc,gc,bc,wc,mc,_c,vc,Sc,Ec,Ac,Ic,xc,Pc,Oc,Rc,Mc,Nc,Ri,qc,Lc,Uc,Dc,jc,Fc,$c,Hc,Vc,zc,Kc,Qc,Yc,Jc,Xc,Zc,ef,tf,rf,nf,of,sf,af,uf,lf,Jt,us,ls,ff,hf,df,pf,yf,gf,bf,wf,mf,_f,vf,Ef,Af=ze(()=>{A();x();I();Mt=[],Qr=!1,Pi=-1;lc.prototype.run=function(){this.fun.apply(null,this.array)};cc="browser",fc="x64",hc="browser",dc={PATH:"/usr/bin",LANG:typeof navigator<"u"?navigator.language+".UTF-8":void 0,PWD:"/",HOME:"/home",TMP:"/tmp"},pc=["/usr/bin/node"],yc=[],gc="v16.8.0",bc={},wc=function(t,e){console.warn((e?e+": ":"")+t)},mc=function(t){cs("binding")},_c=function(t){return 0},vc=function(){return"/"},Sc=function(t){},Ec={name:"node",sourceUrl:"",headersUrl:"",libUrl:""};Ac=!0,Ic=Ue,xc=[];Pc={},Oc=!1,Rc={};Mc=Ue,Nc=Ue,Ri=function(){return{}},qc=Ri,Lc=Ri,Uc=Ue,Dc=Ue,jc=Ue,Fc={};$c={inspector:!1,debug:!1,uv:!1,ipv6:!1,tls_alpn:!1,tls_sni:!1,tls_ocsp:!1,tls:!1,cached_builtins:!0},Hc=Ue,Vc=Ue;zc=Ue,Kc=Ue,Qc=Ue,Yc=Ue,Jc=Ue,Xc=void 0,Zc=void 0,ef=void 0,tf=Ue,rf=2,nf=1,of="/bin/usr/node",sf=9229,af="node",uf=[],lf=Ue,Jt={now:typeof performance<"u"?performance.now.bind(performance):void 0,timing:typeof performance<"u"?performance.timing:void 0};Jt.now===void 0&&(us=Date.now(),Jt.timing&&Jt.timing.navigationStart&&(us=Jt.timing.navigationStart),Jt.now=()=>Date.now()-us);ls=1e9;Oi.bigint=function(t){var e=Oi(t);return typeof BigInt>"u"?e[0]*ls+e[1]:BigInt(e[0]*ls)+BigInt(e[1])};ff=10,hf={},df=0;pf=Nt,yf=Nt,gf=Nt,bf=Nt,wf=Nt,mf=Ue,_f=Nt,vf=Nt;Ef={version:gc,versions:bc,arch:fc,platform:hc,browser:Ac,release:Ec,_rawDebug:Ic,moduleLoadList:xc,binding:mc,_linkedBinding:Tc,_events:hf,_eventsCount:df,_maxListeners:ff,on:Nt,addListener:pf,once:yf,off:gf,removeListener:bf,removeAllListeners:wf,emit:mf,prependListener:_f,prependOnceListener:vf,listeners:Sf,domain:Pc,_exiting:Oc,config:Rc,dlopen:kc,uptime:cf,_getActiveRequests:Cc,_getActiveHandles:Bc,reallyExit:Mc,_kill:Nc,cpuUsage:Ri,resourceUsage:qc,memoryUsage:Lc,kill:Uc,exit:Dc,openStdin:jc,allowedNodeEnvironmentFlags:Fc,assert:Wc,features:$c,_fatalExceptions:Hc,setUncaughtExceptionCaptureCallback:Vc,hasUncLine truncated
|
||||
`;super(r),this.name="AggregateError",this.errors=e}};Rf.exports={AggregateError:fs,ArrayIsArray(t){return Array.isArray(t)},ArrayPrototypeIncludes(t,e){return t.includes(e)},ArrayPrototypeIndexOf(t,e){return t.indexOf(e)},ArrayPrototypeJoin(t,e){return t.join(e)},ArrayPrototypeMap(t,e){return t.map(e)},ArrayPrototypePop(t,e){return t.pop(e)},ArrayPrototypePush(t,e){return t.push(e)},ArrayPrototypeSlice(t,e,r){return t.slice(e,r)},Error,FunctionPrototypeCall(t,e,...r){return t.call(e,...r)},FunctionPrototypeSymbolHasInstance(t,e){return Function.prototype[Symbol.hasInstance].call(t,e)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(t,e){return Object.defineProperties(t,e)},ObjectDefineProperty(t,e,r){return Object.defineProperty(t,e,r)},ObjectGetOwnPropertyDescriptor(t,e){return Object.getOwnPropertyDescriptor(t,e)},ObjectKeys(t){return Object.keys(t)},ObjectSetPrototypeOf(t,e){return Object.setPrototypeOf(t,e)},Promise,PromisePrototypeCatch(t,e){return t.catch(e)},PromisePrototypeThen(t,e,r){return t.then(e,r)},PromiseReject(t){return Promise.reject(t)},PromiseResolve(t){return Promise.resolve(t)},ReflectApply:Reflect.apply,RegExpPrototypeTest(t,e){return t.test(e)},SafeSet:Set,String,StringPrototypeSlice(t,e,r){return t.slice(e,r)},StringPrototypeToLowerCase(t){return t.toLowerCase()},StringPrototypeToUpperCase(t){return t.toUpperCase()},StringPrototypeTrim(t){return t.trim()},Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet(t,e,r){return t.set(e,r)},Boolean,Uint8Array}});var hs=j((BP,kf)=>{"use strict";A();x();I();kf.exports={format(t,...e){return t.replace(/%([sdifj])/g,function(...[r,n]){let i=e.shift();return n==="f"?i.toFixed(6):n==="j"?JSON.stringify(i):n==="s"&&typeof i=="object"?`${i.constructor!==Object?i.constructor.name:""} {}`.trim():i.toString()})},inspect(t){switch(typeof t){case"string":if(t.includes("'"))if(t.includes('"')){if(!t.includes("`")&&!t.includes("${"))return`\`${t}\``}else return`"${t}"`;return`'${t}'`;case"number":return isNaN(t)?"NaN":Object.is(t,-0)?String(t):t;case"bigint":return`${String(t)}n`;case"boolean":case"undefined":return String(t);case"object":return"{}"}}}});var De=j((jP,Mf)=>{"use strict";A();x();I();var{format:ow,inspect:Ci}=hs(),{AggregateError:sw}=Ee(),aw=globalThis.AggregateError||sw,uw=Symbol("kIsNodeError"),lw=["string","function","number","object","Function","Object","boolean","bigint","symbol"],cw=/^([A-Z][a-z0-9]*)+$/,fw="__node_internal_",Bi={};function _r(t,e){if(!t)throw new Bi.ERR_INTERNAL_ASSERTION(e)}function Cf(t){let e="",r=t.length,n=t[0]==="-"?1:0;for(;r>=n+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function hw(t,e,r){if(typeof e=="function")return _r(e.length<=r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${e.length}).`),e(...r);let n=(e.match(/%[dfijoOs]/g)||[]).length;return _r(n===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${n}).`),r.length===0?e:ow(e,...r)}function Le(t,e,r){r||(r=Error);class n extends r{constructor(...s){super(hw(t,e,s))}toString(){return`${this.name} [${t}]: ${this.message}`}}Object.defineProperties(n.prototype,{name:{value:r.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${t}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),n.prototype.code=t,n.prototype[uw]=!0,Bi[t]=n}function Bf(t){let e=fw+t.name;return Object.defineProperty(t,"name",{value:e}),t}function dw(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;let r=new aw([e,t],e.message);return r.code=e.code,r}return t||e}var ds=class extends Error{constructor(e="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new Bi.ERR_INVALID_ARG_TYPE("options","Object",r);super(e,r),this.code="ABORT_ERR",this.name="AbortError"}};Le("ERR_ASSERTION","%s",Error);Le("ERR_INVALID_ARG_TYPE",(t,e,r)=>{_r(typeof t=="string","'name' must be a string"),Array.isArray(e)||(e=[e]);let n="The ";t.endsWith(" argument")?n+=`${t} `:n+=`"${t}" ${t.includes(".")?"property":"argument"} `,n+="must be ";let i=[],s=[],o=[];for(let c of e)_r(typeof c=="string","All expected entries have to be of type string"),lw.includes(c)?i.push(c.toLowerCase()):cw.test(c)?s.push(c):(_r(c!=="object",'The value "object" should be written as "Object"'),o.push(c));if(s.length>0){let c=i.indexOf("object");c!==-1&&(i.splice(i,c,1),s.push("Object"))}if(i.length>0){switch(i.length){case 1:n+=`of type ${i[0]}`;break;case 2:n+=`one of type ${i[0]} or ${i[1]}`;break;default:{leLine truncated
|
||||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}si.exports=cA,si.exports.__esModule=!0,si.exports.default=si.exports});var lg=j((ED,ai)=>{A();x();I();var fA=ng(),hA=ig(),dA=ag(),pA=ug();function yA(t,e){return fA(t)||hA(t,e)||dA(t,e)||pA()}ai.exports=yA,ai.exports.__esModule=!0,ai.exports.default=ai.exports});var fg=j((RD,ui)=>{A();x();I();function cg(t,e,r,n,i,s,o){try{var a=t[s](o),c=a.value}catch(f){return void r(f)}a.done?e(c):Promise.resolve(c).then(n,i)}function gA(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var s=t.apply(e,r);function o(c){cg(s,n,i,o,a,"next",c)}function a(c){cg(s,n,i,o,a,"throw",c)}o(void 0)})}}ui.exports=gA,ui.exports.__esModule=!0,ui.exports.default=ui.exports});var Ru=j((LD,li)=>{A();x();I();function bA(t,e){this.v=t,this.k=e}li.exports=bA,li.exports.__esModule=!0,li.exports.default=li.exports});var ku=j((HD,$t)=>{A();x();I();function Wo(t,e,r,n){var i=Object.defineProperty;try{i({},"",{})}catch{i=0}$t.exports=Wo=function(o,a,c,f){function h(d,m){Wo(o,d,function(g){return this._invoke(d,m,g)})}a?i?i(o,a,{value:c,enumerable:!f,configurable:!f,writable:!f}):o[a]=c:(h("next",0),h("throw",1),h("return",2))},$t.exports.__esModule=!0,$t.exports.default=$t.exports,Wo(t,e,r,n)}$t.exports=Wo,$t.exports.__esModule=!0,$t.exports.default=$t.exports});var Cu=j((JD,Ht)=>{A();x();I();var Rt=ku();function hg(){var t,e,r=typeof Symbol=="function"?Symbol:{},n=r.iterator||"@@iterator",i=r.toStringTag||"@@toStringTag";function s(g,P,S,b){var w=P&&P.prototype instanceof a?P:a,_=Object.create(w.prototype);return Rt(_,"_invoke",(function(R,T,y){var O,v,M,F=0,U=y||[],Q=!1,W={p:0,n:0,v:t,a:H,f:H.bind(t,4),d:function(J,ee){return O=J,v=0,M=t,W.n=ee,o}};function H(z,J){for(v=z,M=J,e=0;!Q&&F&&!ee&&e<U.length;e++){var ee,G=U[e],V=W.p,te=G[2];z>3?(ee=te===J)&&(M=G[(v=G[4])?5:(v=3,3)],G[4]=G[5]=t):G[0]<=V&&((ee=z<2&&V<G[1])?(v=0,W.v=J,W.n=G[1]):V<te&&(ee=z<3||G[0]>J||J>te)&&(G[4]=z,G[5]=J,W.n=te,v=0))}if(ee||z>1)return o;throw Q=!0,J}return function(z,J,ee){if(F>1)throw TypeError("Generator is already running");for(Q&&J===1&&H(J,ee),v=J,M=ee;(e=v<2?t:M)||!Q;){O||(v?v<3?(v>1&&(W.n=-1),H(v,M)):W.n=M:W.v=M);try{if(F=2,O){if(v||(z="next"),e=O[z]){if(!(e=e.call(O,M)))throw TypeError("iterator result is not an object");if(!e.done)return e;M=e.value,v<2&&(v=0)}else v===1&&(e=O.return)&&e.call(O),v<2&&(M=TypeError("The iterator does not provide a '"+z+"' method"),v=1);O=t}else if((e=(Q=W.n<0)?M:R.call(T,W))!==o)break}catch(G){O=t,v=1,M=G}finally{F=1}}return{value:e,done:Q}}})(g,S,b),!0),_}var o={};function a(){}function c(){}function f(){}e=Object.getPrototypeOf;var h=[][n]?e(e([][n]())):(Rt(e={},n,function(){return this}),e),d=f.prototype=a.prototype=Object.create(h);function m(g){return Object.setPrototypeOf?Object.setPrototypeOf(g,f):(g.__proto__=f,Rt(g,i,"GeneratorFunction")),g.prototype=Object.create(d),g}return c.prototype=f,Rt(d,"constructor",f),Rt(f,"constructor",c),c.displayName="GeneratorFunction",Rt(f,i,"GeneratorFunction"),Rt(d),Rt(d,i,"Generator"),Rt(d,n,function(){return this}),Rt(d,"toString",function(){return"[object Generator]"}),(Ht.exports=hg=function(){return{w:s,m}},Ht.exports.__esModule=!0,Ht.exports.default=Ht.exports)()}Ht.exports=hg,Ht.exports.__esModule=!0,Ht.exports.default=Ht.exports});var Nu=j((i3,ci)=>{A();x();I();var wA=Ru(),Bu=ku();function Mu(t,e){function r(i,s,o,a){try{var c=t[i](s),f=c.value;return f instanceof wA?e.resolve(f.v).then(function(h){r("next",h,o,a)},function(h){r("throw",h,o,a)}):e.resolve(f).then(function(h){c.value=h,o(c)},function(h){return r("throw",h,o,a)})}catch(h){a(h)}}var n;this.next||(Bu(Mu.prototype),Bu(Mu.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),Bu(this,"_invoke",function(i,s,o){function a(){return new e(function(c,f){r(i,o,c,f)})}return n=n?n.then(a,a):a()},!0)}ci.exports=Mu,ci.exports.__esModule=!0,ci.exports.default=ci.exports});var qu=j((f3,fi)=>{A();x();I();var mA=Cu(),_A=Nu();function vA(t,e,r,n,i){return new _A(mA().w(t,e,r,n),i||Promise)}fi.exports=vA,fi.exports.__esModule=!0,fi.exports.default=fi.exports});var dg=j((w3,hi)=>{A();x();I();var SA=qu();function EA(t,e,r,n,i){var s=SA(t,e,r,n,i);return s.next().then(function(o){return o.done?o.value:s.next()})}hi.exports=EA,hi.exports.__esModule=!0,hi.exports.default=hi.exports});var pg=j((I3,di)=>{A();x();I();function AA(t){var e=Object(t),r=[];for(var n in e)r.unshift(n);return function i(){for(;r.length;)if((n=r.pop())in e)return i.value=n,i.done=!1,i;return i.done=!0,i}}di.exports=AA,di.exports.__esModule=!0,di.exports.default=di.exports});var yg=j((C3,pi)=>{A();x();I();var IA=Xn().default;function xA(t){if(t!=null){var e=t[typeof Symbol=="function"&&Symbol.iterator||"@@iterator"],r=0;if(e)return e.call(t);if(typeof t.next=="function")return t;if(!isNaN(t.length))return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}}}throw new TypeError(IA(t
Line truncated
|
||||
`)>=0)return!1;return!0}function C(k,B){var re;if(k.indent===" ")re=" ";else if(typeof k.indent=="number"&&k.indent>0)re=M.call(Array(k.indent+1)," ");else return null;return{base:re,prev:M.call(Array(B+1),re)}}function q(k,B){if(k.length===0)return"";var re=`
|
||||
`+B.prev+B.base;return re+M.call(k,","+re)+`
|
||||
`+B.prev}function $(k,B){var re=ne(k),ie=[];if(re){ie.length=k.length;for(var oe=0;oe<k.length;oe++)ie[oe]=Re(k,oe)?B(k[oe],k):""}var fe=typeof W=="function"?W(k):[],Qt;if(z){Qt={};for(var br=0;br<fe.length;br++)Qt["$"+fe[br]]=fe[br]}for(var Ye in k)Re(k,Ye)&&(re&&String(Number(Ye))===Ye&&Ye<k.length||z&&Qt["$"+Ye]instanceof Symbol||(O.call(/[^\w$]/,Ye)?ie.push(B(Ye,k)+": "+B(k[Ye],k)):ie.push(Ye+": "+B(k[Ye],k))));if(typeof W=="function")for(var Yt=0;Yt<fe.length;Yt++)ee.call(k,fe[Yt])&&ie.push("["+B(fe[Yt])+"]: "+B(k[fe[Yt]],k));return ie}return Al}function Ox(){if(gb)return xl;gb=!0;var t=Wr(),e=lb(),r=Px(),n=Sn(),i=t("%WeakMap%",!0),s=t("%Map%",!0),o=e("WeakMap.prototype.get",!0),a=e("WeakMap.prototype.set",!0),c=e("WeakMap.prototype.has",!0),f=e("Map.prototype.get",!0),h=e("Map.prototype.set",!0),d=e("Map.prototype.has",!0),m=function(b,w){for(var _=b,R;(R=_.next)!==null;_=R)if(R.key===w)return _.next=R.next,R.next=b.next,b.next=R,R},g=function(b,w){var _=m(b,w);return _&&_.value},P=function(b,w,_){var R=m(b,w);R?R.value=_:b.next={key:w,next:b.next,value:_}},S=function(b,w){return!!m(b,w)};return xl=function(){var w,_,R,T={assert:function(y){if(!T.has(y))throw new n("Side channel does not contain "+r(y))},get:function(y){if(i&&y&&(typeof y=="object"||typeof y=="function")){if(w)return o(w,y)}else if(s){if(_)return f(_,y)}else if(R)return g(R,y)},has:function(y){if(i&&y&&(typeof y=="object"||typeof y=="function")){if(w)return c(w,y)}else if(s){if(_)return d(_,y)}else if(R)return S(R,y);return!1},set:function(y,O){i&&y&&(typeof y=="object"||typeof y=="function")?(w||(w=new i),a(w,y,O)):s?(_||(_=new s),h(_,y,O)):(R||(R={key:{},next:null}),P(R,y,O))}};return T},xl}function Bl(){if(bb)return Tl;bb=!0;var t=String.prototype.replace,e=/%20/g,r={RFC1738:"RFC1738",RFC3986:"RFC3986"};return Tl={default:r.RFC3986,formatters:{RFC1738:function(n){return t.call(n,e,"+")},RFC3986:function(n){return String(n)}},RFC1738:r.RFC1738,RFC3986:r.RFC3986},Tl}function Eb(){if(wb)return Pl;wb=!0;var t=Bl(),e=Object.prototype.hasOwnProperty,r=Array.isArray,n=(function(){for(var b=[],w=0;w<256;++w)b.push("%"+((w<16?"0":"")+w.toString(16)).toUpperCase());return b})(),i=function(w){for(;w.length>1;){var _=w.pop(),R=_.obj[_.prop];if(r(R)){for(var T=[],y=0;y<R.length;++y)typeof R[y]<"u"&&T.push(R[y]);_.obj[_.prop]=T}}},s=function(w,_){for(var R=_&&_.plainObjects?Object.create(null):{},T=0;T<w.length;++T)typeof w[T]<"u"&&(R[T]=w[T]);return R},o=function b(w,_,R){if(!_)return w;if(typeof _!="object"){if(r(w))w.push(_);else if(w&&typeof w=="object")(R&&(R.plainObjects||R.allowPrototypes)||!e.call(Object.prototype,_))&&(w[_]=!0);else return[w,_];return w}if(!w||typeof w!="object")return[w].concat(_);var T=w;return r(w)&&!r(_)&&(T=s(w,R)),r(w)&&r(_)?(_.forEach(function(y,O){if(e.call(w,O)){var v=w[O];v&&typeof v=="object"&&y&&typeof y=="object"?w[O]=b(v,y,R):w.push(y)}else w[O]=y}),w):Object.keys(_).reduce(function(y,O){var v=_[O];return e.call(y,O)?y[O]=b(y[O],v,R):y[O]=v,y},T)},a=function(w,_){return Object.keys(_).reduce(function(R,T){return R[T]=_[T],R},w)},c=function(b,w,_){var R=b.replace(/\+/g," ");if(_==="iso-8859-1")return R.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(R)}catch{return R}},f=1024,h=function(w,_,R,T,y){if(w.length===0)return w;var O=w;if(typeof w=="symbol"?O=Symbol.prototype.toString.call(w):typeof w!="string"&&(O=String(w)),R==="iso-8859-1")return escape(O).replace(/%u[0-9a-f]{4}/gi,function(H){return"%26%23"+parseInt(H.slice(2),16)+"%3B"});for(var v="",M=0;M<O.length;M+=f){for(var F=O.length>=f?O.slice(M,M+f):O,U=[],Q=0;Q<F.length;++Q){var W=F.charCodeAt(Q);if(W===45||W===46||W===95||W===126||W>=48&&W<=57||W>=65&&W<=90||W>=97&&W<=122||y===t.RFC1738&&(W===40||W===41)){U[U.length]=F.charAt(Q);continue}if(W<128){U[U.length]=n[W];continue}if(W<2048){U[U.length]=n[192|W>>6]+n[128|W&63];continue}if(W<55296||W>=57344){U[U.length]=n[224|W>>12]+n[128|W>>6&63]+n[128|W&63];continue}Q+=1,W=65536+((W&1023)<<10|F.charCodeAt(Q)&1023),U[U.length]=n[240|W>>18]+n[128|W>>12&63]+n[128|W>>6&63]+n[128|W&63]}v+=U.join("")}return v},d=function(w){for(var _=[{obj:{o:w},prop:"o"}],R=[],T=0;T<_.length;++T)for(var y=_[T],O=y.obj[y.prop],v=Object.keys(O),M=0;M<v.length;++M){var F=v[M],U=O[F];typeof U=="object"&&U!==null&&R.indexOf(U)===-1&&(_.push({obj:O,prop:F}),R.push(U))}return i(_),w},m=function(w){return Object.prototype.toString.call(w)==="[object RegExp]"},g=function(w){return!w||typeof w!="object"?!1:!!(w.constructor&&w.constructor.isBuffer&&w.constructor.isBuffer(w))},P=function(w,_){return[].concat(w,_)},S=function(w,_){if(r(w)){for(var R=[],T=0;T<w.length;T+=1)R.push(_(w[T]));return R}return _(w)};return Pl={arrayToObject:s,assign:a,combine:P,compact:d,decode:c,encode:h,isBuffer:g,isRegExp:m,maybeMap:S,merge:o},Pl}function Rx(){if(mb)return Ol;mb=!0;var t=Ox(),e=Eb(),r=Bl(),n=Object.prototype.hasOwnProperty,i={brackets:function(b){return b+"[]"},comma:"comma",indices:function(b,w){return b+"["+w+"]"},repeat:fu
Line truncated
|
||||
`," "],o=["{","}","|","\\","^","`"].concat(s),a=["'"].concat(o),c=["%","/","?",";","#"].concat(a),f=["/","?","#"],h=255,d=/^[+a-z0-9A-Z_-]{0,63}$/,m=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,g={javascript:!0,"javascript:":!0},P={javascript:!0,"javascript:":!0},S={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},b=Cx();function w(y,O,v){if(y&&typeof y=="object"&&y instanceof e)return y;var M=new e;return M.parse(y,O,v),M}e.prototype.parse=function(y,O,v){if(typeof y!="string")throw new TypeError("Parameter 'url' must be a string, not "+typeof y);var M=y.indexOf("?"),F=M!==-1&&M<y.indexOf("#")?"?":"#",U=y.split(F),Q=/\\/g;U[0]=U[0].replace(Q,"/"),y=U.join(F);var W=y;if(W=W.trim(),!v&&y.split("#").length===1){var H=i.exec(W);if(H)return this.path=W,this.href=W,this.pathname=H[1],H[2]?(this.search=H[2],O?this.query=b.parse(this.search.substr(1)):this.query=this.search.substr(1)):O&&(this.search="",this.query={}),this}var z=r.exec(W);if(z){z=z[0];var J=z.toLowerCase();this.protocol=J,W=W.substr(z.length)}if(v||z||W.match(/^\/\/[^@/]+@[^@/]+/)){var ee=W.substr(0,2)==="//";ee&&!(z&&P[z])&&(W=W.substr(2),this.slashes=!0)}if(!P[z]&&(ee||z&&!S[z])){for(var G=-1,V=0;V<f.length;V++){var te=W.indexOf(f[V]);te!==-1&&(G===-1||te<G)&&(G=te)}var Y,X;G===-1?X=W.lastIndexOf("@"):X=W.lastIndexOf("@",G),X!==-1&&(Y=W.slice(0,X),W=W.slice(X+1),this.auth=decodeURIComponent(Y)),G=-1;for(var V=0;V<c.length;V++){var te=W.indexOf(c[V]);te!==-1&&(G===-1||te<G)&&(G=te)}G===-1&&(G=W.length),this.host=W.slice(0,G),W=W.slice(G),this.parseHost(),this.hostname=this.hostname||"";var ce=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!ce)for(var Z=this.hostname.split(/\./),V=0,ne=Z.length;V<ne;V++){var he=Z[V];if(he&&!he.match(d)){for(var be="",ye=0,Ae=he.length;ye<Ae;ye++)he.charCodeAt(ye)>127?be+="x":be+=he[ye];if(!be.match(d)){var _e=Z.slice(0,V),ve=Z.slice(V+1),Oe=he.match(m);Oe&&(_e.push(Oe[1]),ve.unshift(Oe[2])),ve.length&&(W="/"+ve.join(".")+W),this.hostname=_e.join(".");break}}}this.hostname.length>h?this.hostname="":this.hostname=this.hostname.toLowerCase(),ce||(this.hostname=t.toASCII(this.hostname));var xe=this.port?":"+this.port:"",st=this.hostname||"";this.host=st+xe,this.href+=this.host,ce&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),W[0]!=="/"&&(W="/"+W))}if(!g[J])for(var V=0,ne=a.length;V<ne;V++){var Re=a[V];if(W.indexOf(Re)!==-1){var Ne=encodeURIComponent(Re);Ne===Re&&(Ne=escape(Re)),W=W.split(Re).join(Ne)}}var Ct=W.indexOf("#");Ct!==-1&&(this.hash=W.substr(Ct),W=W.slice(0,Ct));var Bt=W.indexOf("?");if(Bt!==-1?(this.search=W.substr(Bt),this.query=W.substr(Bt+1),O&&(this.query=b.parse(this.query)),W=W.slice(0,Bt)):O&&(this.search="",this.query={}),W&&(this.pathname=W),S[J]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var xe=this.pathname||"",xn=this.search||"";this.path=xe+xn}return this.href=this.format(),this};function _(y){return typeof y=="string"&&(y=w(y)),y instanceof e?y.format():e.prototype.format.call(y)}e.prototype.format=function(){var y=this.auth||"";y&&(y=encodeURIComponent(y),y=y.replace(/%3A/i,":"),y+="@");var O=this.protocol||"",v=this.pathname||"",M=this.hash||"",F=!1,U="";this.host?F=y+this.host:this.hostname&&(F=y+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(F+=":"+this.port)),this.query&&typeof this.query=="object"&&Object.keys(this.query).length&&(U=b.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var Q=this.search||U&&"?"+U||"";return O&&O.substr(-1)!==":"&&(O+=":"),this.slashes||(!O||S[O])&&F!==!1?(F="//"+(F||""),v&&v.charAt(0)!=="/"&&(v="/"+v)):F||(F=""),M&&M.charAt(0)!=="#"&&(M="#"+M),Q&&Q.charAt(0)!=="?"&&(Q="?"+Q),v=v.replace(/[?#]/g,function(W){return encodeURIComponent(W)}),Q=Q.replace("#","%23"),O+F+v+Q+M};function R(y,O){return w(y,!1,!0).resolve(O)}e.prototype.resolve=function(y){return this.resolveObject(w(y,!1,!0)).format()};function T(y,O){return y?w(y,!1,!0).resolveObject(O):O}return e.prototype.resolveObject=function(y){if(typeof y=="string"){var O=new e;O.parse(y,!1,!0),y=O}for(var v=new e,M=Object.keys(this),F=0;F<M.length;F++){var U=M[F];v[U]=this[U]}if(v.hash=y.hash,y.href==="")return v.href=v.format(),v;if(y.slashes&&!y.protocol){for(var Q=Object.keys(y),W=0;W<Q.length;W++){var H=Q[W];H!=="protocol"&&(v[H]=y[H])}return S[v.protocol]&&v.hostname&&!v.pathname&&(v.pathname="/",v.path=v.pathname),v.href=v.format(),v}if(y.protocol&&y.protocol!==v.protocol){if(!S[y.protocol]){for(var z=Object.keys(y),J=0;J<z.length;J++){var ee=z[J];v[ee]=y[ee]}return v.href=v.format(),v}if(v.protocol=y.protocol,!y.host&&!P[y.protocol]){for(var ne=(y.pathname||"").split("/");ne.length&&!(y.host=ne.shift()););y.host||(y.host=""),y.hostname||(y.hostname=""),ne[0]!==""&&ne.unshift(""),ne.length<2&&ne.unshift(""),v.pathname=ne.join("/")}else v.pathname=y.pathname;if(v.search=y.search,v.query=y.query,v.host=y.host||"",v.auth=y.auth,v.hostname=y.ho
Line truncated
|
||||
`)&&(e=e.replace(Kx,"%0A")),e.includes("\r")&&(e=e.replace(Qx,"%0D")),e.includes(" ")&&(e=e.replace(Yx,"%09")),n.pathname=e,n}var Tx,Al,yb,Il,xl,gb,Tl,bb,Pl,wb,Ol,mb,Rl,_b,kl,vb,Hr,Sb,Ge,Mx,Nx,qx,Lx,Ux,Dx,jx,Fx,Wx,$x,Hx,Cl,Vx,Gx,zx,Kx,Qx,Yx,Tb=ze(()=>{A();x();I();Dg();cb();pb();vl();Tx=Object.freeze(Object.create(null)),Al={},yb=!1,Il=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global;xl={},gb=!1;Tl={},bb=!1;Pl={},wb=!1;Ol={},mb=!1;Rl={},_b=!1;kl={},vb=!1;Hr={},Sb=!1;Ge=Bx();Ge.parse;Ge.resolve;Ge.resolveObject;Ge.format;Ge.Url;Mx=typeof Deno<"u"?Deno.build.os==="windows"?"win32":Deno.build.os:void 0;Ge.URL=typeof URL<"u"?URL:null;Ge.pathToFileURL=Ib;Ge.fileURLToPath=Ab;Nx=Ge.Url,qx=Ge.format,Lx=Ge.resolve,Ux=Ge.resolveObject,Dx=Ge.parse,jx=Ge.URL,Fx=92,Wx=47,$x=97,Hx=122,Cl=Mx==="win32",Vx=/\//g,Gx=/%/g,zx=/\\/g,Kx=/\n/g,Qx=/\r/g,Yx=/\t/g});var Ob=j(($F,Pb)=>{"use strict";A();x();I();Pb.exports=function(){throw new Error("ws does not work in the browser. Browser clients must use the native WebSocket object")}});var Qo=j(mi=>{"use strict";A();x();I();Object.defineProperty(mi,"__esModule",{value:!0});mi.BufferedDuplex=void 0;mi.writev=kb;var Zx=or(),Rb=(ke(),me(qe));function kb(t,e){let r=new Array(t.length);for(let n=0;n<t.length;n++)typeof t[n].chunk=="string"?r[n]=Rb.Buffer.from(t[n].chunk,"utf8"):r[n]=t[n].chunk;this._write(Rb.Buffer.concat(r),"binary",e)}var Ml=class extends Zx.Duplex{socket;proxy;isSocketOpen;writeQueue;constructor(e,r,n){super({objectMode:!0}),this.proxy=r,this.socket=n,this.writeQueue=[],e.objectMode||(this._writev=kb.bind(this)),this.isSocketOpen=!1,this.proxy.on("data",i=>{!this.destroyed&&this.readable&&this.push(i)})}_read(e){this.proxy.read(e)}_write(e,r,n){this.isSocketOpen?this.writeToProxy(e,r,n):this.writeQueue.push({chunk:e,encoding:r,cb:n})}_final(e){this.writeQueue=[],this.proxy.end(e)}_destroy(e,r){this.writeQueue=[],this.proxy.destroy(),r(e)}socketReady(){this.emit("connect"),this.isSocketOpen=!0,this.processWriteQueue()}writeToProxy(e,r,n){this.proxy.write(e,r)===!1?this.proxy.once("drain",n):n()}processWriteQueue(){for(;this.writeQueue.length>0;){let{chunk:e,encoding:r,cb:n}=this.writeQueue.shift();this.writeToProxy(e,r,n)}}};mi.BufferedDuplex=Ml});var _i=j(gr=>{"use strict";A();x();I();var ql=gr&&gr.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(gr,"__esModule",{value:!0});gr.streamBuilder=gr.browserStreamBuilder=void 0;var Yo=(ke(),me(qe)),Cb=ql(Ob()),eT=ql(At()),tT=or(),rT=ql(yi()),Nl=Qo(),yr=(0,eT.default)("mqttjs:ws"),nT=["rejectUnauthorized","ca","cert","key","pfx","passphrase"];function Bb(t,e){let r=`${t.protocol}://${t.hostname}:${t.port}${t.path}`;return typeof t.transformWsUrl=="function"&&(r=t.transformWsUrl(r,t,e)),r}function Mb(t){let e=t;return t.port||(t.protocol==="wss"?e.port=443:e.port=80),t.path||(e.path="/"),t.wsOptions||(e.wsOptions={}),!rT.default&&!t.forceNativeWebSocket&&t.protocol==="wss"&&nT.forEach(r=>{Object.prototype.hasOwnProperty.call(t,r)&&!Object.prototype.hasOwnProperty.call(t.wsOptions,r)&&(e.wsOptions[r]=t[r])}),e}function iT(t){let e=Mb(t);if(e.hostname||(e.hostname=e.host),!e.hostname){if(typeof document>"u")throw new Error("Could not determine host. Specify host manually.");let r=new URL(document.URL);e.hostname=r.hostname,e.port||(e.port=Number(r.port))}return e.objectMode===void 0&&(e.objectMode=!(e.binary===!0||e.binary===void 0)),e}function oT(t,e,r){yr("createWebSocket"),yr(`protocol: ${r.protocolId} ${r.protocolVersion}`);let n=r.protocolId==="MQIsdp"&&r.protocolVersion===3?"mqttv3.1":"mqtt";yr(`creating new Websocket for url: ${e} and protocol: ${n}`);let i;return r.createWebsocket?i=r.createWebsocket(e,[n],r):i=new Cb.default(e,[n],r.wsOptions),i}function sT(t,e){let r=e.protocolId==="MQIsdp"&&e.protocolVersion===3?"mqttv3.1":"mqtt",n=Bb(e,t),i;return e.createWebsocket?i=e.createWebsocket(n,[r],e):i=new WebSocket(n,[r]),i.binaryType="arraybuffer",i}var aT=(t,e)=>{yr("streamBuilder");let r=Mb(e);r.hostname=r.hostname||r.host||"localhost";let n=Bb(r,t),i=oT(t,n,r),s=Cb.default.createWebSocketStream(i,r.wsOptions);return s.url=n,i.on("close",()=>{s.destroy()}),s};gr.streamBuilder=aT;var uT=(t,e)=>{yr("browserStreamBuilder");let r,i=iT(e).browserBufferSize||1024*512,s=e.browserBufferTimeout||1e3,o=!e.objectMode,a=sT(t,e),c=h(e,S,b);e.objectMode||(c._writev=Nl.writev.bind(c)),c.on("close",()=>{a.close()});let f=typeof a.addEventListener<"u";a.readyState===a.OPEN?(r=c,r.socket=a):(r=new Nl.BufferedDuplex(e,c,a),f?a.addEventListener("open",d):a.onopen=d),f?(a.addEventListener("close",m),a.addEventListener("error",g),a.addEventListener("message",P)):(a.onclose=m,a.onerror=g,a.onmessage=P);function h(w,_,R){let T=new tT.Transform({objectMode:w.objectMode});return T._write=_,T._flush=R,T}function d(){yr("WebSocket onOpen"),r instanceof Nl.BufferedDuplex&&r.socketReady()}function m(w){yr("WebSocket onClose",w),r.end(),r.destroy()}function g(w){yr("WebSocket onError",w);let _=new
Line truncated
|
||||
/*! Bundled license information:
|
||||
|
||||
@jspm/core/nodelibs/browser/chunk-DtuTasat.js:
|
||||
(*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> *)
|
||||
|
||||
safe-buffer/index.js:
|
||||
(*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
|
||||
|
||||
@babel/runtime/helpers/regenerator.js:
|
||||
(*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE *)
|
||||
*/
|
||||
Reference in new issue
Block a user