homebridge-config-ui-x 5.8.1-beta.14 → 5.8.1-beta.16
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/dist/core/config/config.interfaces.d.ts +3 -0
- package/dist/modules/config-editor/config-editor.controller.d.ts +2 -4
- package/dist/modules/config-editor/config-editor.controller.js +0 -1
- package/dist/modules/config-editor/config-editor.controller.js.map +1 -1
- package/dist/modules/config-editor/config-editor.service.d.ts +3 -5
- package/dist/modules/config-editor/config-editor.service.js +4 -0
- package/dist/modules/config-editor/config-editor.service.js.map +1 -1
- package/dist/modules/server/server.service.js +10 -0
- package/dist/modules/server/server.service.js.map +1 -1
- package/package.json +11 -11
- package/public/{chunk-226FUQBX.js → chunk-2DXY4SSZ.js} +1 -1
- package/public/{chunk-26RP2WUW.js → chunk-3GETVWW5.js} +1 -1
- package/public/{chunk-E6CSCHAX.js → chunk-3M5AQ7HH.js} +1 -1
- package/public/{chunk-DTZGQQKA.js → chunk-44IUMKRC.js} +3 -3
- package/public/{chunk-7MDEVIXA.js → chunk-4ATCZGT7.js} +1 -1
- package/public/{chunk-YLSOS2RG.js → chunk-4KHHJ6O7.js} +1 -1
- package/public/{chunk-UHLA63MQ.js → chunk-6DK24FPQ.js} +1 -1
- package/public/{chunk-EMVU2XAG.js → chunk-6OCR2WJ3.js} +1 -1
- package/public/{chunk-5QQZMCII.js → chunk-7DDNZGBS.js} +1 -1
- package/public/{chunk-R5GTIU46.js → chunk-7KIDPQNT.js} +1 -1
- package/public/{chunk-WCH5ZVOS.js → chunk-7OWZIIPX.js} +2 -2
- package/public/{chunk-7Y4AXRRG.js → chunk-B7RLTYUZ.js} +1 -1
- package/public/{chunk-IXREESCC.js → chunk-BNHJGP2Q.js} +1 -1
- package/public/{chunk-WKARJHBX.js → chunk-BUXRCYZ3.js} +1 -1
- package/public/{chunk-XFXDPVAB.js → chunk-BZVVKWVW.js} +1 -1
- package/public/{chunk-YEDV5F2U.js → chunk-CAK77ZJG.js} +1 -1
- package/public/{chunk-E2XEMZG2.js → chunk-CMUJLMKB.js} +1 -1
- package/public/{chunk-C7FAUYTX.js → chunk-D3RFSE7L.js} +1 -1
- package/public/{chunk-OSYWJ6WY.js → chunk-D7LRZYF6.js} +1 -1
- package/public/{chunk-M7CZR2LQ.js → chunk-DQ4KZYYB.js} +1 -1
- package/public/{chunk-2UGHC53U.js → chunk-EYURBH2I.js} +1 -1
- package/public/{chunk-G2U5UWE6.js → chunk-FWNFFW6C.js} +1 -1
- package/public/chunk-G4V242OZ.js +1 -0
- package/public/{chunk-JJDRFQVO.js → chunk-GGUXE7AI.js} +1 -1
- package/public/{chunk-YAVIVBVJ.js → chunk-JHGAHTM2.js} +1 -1
- package/public/{chunk-S35WE4W4.js → chunk-JKZH6VAZ.js} +1 -1
- package/public/{chunk-KOIM2MFD.js → chunk-JUIBLDHY.js} +1 -1
- package/public/{chunk-3VL4ND5K.js → chunk-JYFQKONR.js} +1 -1
- package/public/{chunk-FBJSAKJ2.js → chunk-LV54DJY7.js} +1 -1
- package/public/{chunk-LZJC5H3Z.js → chunk-MKQHAKWO.js} +1 -1
- package/public/{chunk-R6NYXKRO.js → chunk-MPFO5MKE.js} +1 -1
- package/public/{chunk-BOLCF4OO.js → chunk-MZO73C4B.js} +1 -1
- package/public/{chunk-N6AKYUMC.js → chunk-N3GFGJ6U.js} +1 -1
- package/public/{chunk-GOF4UORW.js → chunk-N3LM3KJA.js} +1 -1
- package/public/{chunk-6XHSDPU3.js → chunk-ND6Q3577.js} +1 -1
- package/public/{chunk-Y4EY4AMI.js → chunk-NRHGWAVT.js} +1 -1
- package/public/{chunk-L2BBLX7X.js → chunk-NT7XWYWM.js} +1 -1
- package/public/{chunk-G5WDJTJP.js → chunk-OJML56DH.js} +1 -1
- package/public/{chunk-AG22QUSB.js → chunk-PSBPIZSE.js} +1 -1
- package/public/{chunk-4OKB7AUD.js → chunk-QLL4XJ6O.js} +1 -1
- package/public/{chunk-VK2UGXX2.js → chunk-QZT56NRO.js} +1 -1
- package/public/{chunk-UK3MMDHV.js → chunk-S3KWGY7Q.js} +1 -1
- package/public/{chunk-IYDZECG4.js → chunk-S6PCNWMK.js} +1 -1
- package/public/{chunk-SGCTZV2R.js → chunk-SCYX4EQC.js} +1 -1
- package/public/{chunk-SZWVIMEZ.js → chunk-SXPIMD3N.js} +1 -1
- package/public/{chunk-25PJ775M.js → chunk-TIRP5BAN.js} +1 -1
- package/public/{chunk-FRPAYIBC.js → chunk-U5MKNRR6.js} +1 -1
- package/public/{chunk-XJVAYI5T.js → chunk-V7L6YVTJ.js} +1 -1
- package/public/{chunk-NSZ6YJ47.js → chunk-VC72YRS6.js} +1 -1
- package/public/{chunk-EJTTHINX.js → chunk-WRDGXJ2N.js} +1 -1
- package/public/{chunk-5AOFTE4E.js → chunk-XHQ3QXJW.js} +1 -1
- package/public/{chunk-N2LRAUVZ.js → chunk-XZQTI646.js} +1 -1
- package/public/{chunk-N7OXMNRL.js → chunk-ZAX4JMKU.js} +1 -1
- package/public/index.html +1 -1
- package/public/{main-ZKADKRHW.js → main-QBQJVTGA.js} +1 -1
- package/public/chunk-YKWNIOX3.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{m as ht}from"./chunk-PELXH4TO.js";import{e as wr}from"./chunk-NKVA4YGF.js";import{b as Or}from"./chunk-E2XEMZG2.js";import{k as _r,l as Bt,n as Sr,q as Tr}from"./chunk-IYDZECG4.js";import{$b as Me,Ab as U,Bb as X,Cb as Ce,Mb as ye,Nb as or,Qa as L,Xb as vr,_b as ue,a as ur,ac as Re,b as Fr,db as gt,e as ga,h as Er,na as Ae,pb as Ve,qb as gr,rb as hr,rc as Q,sc as k,tb as Br,ub as br,vb as yr,x as xr}from"./chunk-YYORCSG2.js";var sD=ga((sr,Dr)=>{(function(e,t){typeof sr=="object"&&typeof Dr<"u"?Dr.exports=t():typeof define=="function"&&define.amd?define(t):e.JSON5=t()})(sr,function(){"use strict";function e(u,a){return a={exports:{}},u(a,a.exports),a.exports}var t=e(function(u){var a=u.exports=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=a)}),r=e(function(u){var a=u.exports={version:"2.6.5"};typeof __e=="number"&&(__e=a)}),o=r.version,f=function(u){return typeof u=="object"?u!==null:typeof u=="function"},i=function(u){if(!f(u))throw TypeError(u+" is not an object!");return u},D=function(u){try{return!!u()}catch{return!0}},l=!D(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7}),m=t.document,g=f(m)&&f(m.createElement),h=function(u){return g?m.createElement(u):{}},B=!l&&!D(function(){return Object.defineProperty(h("div"),"a",{get:function(){return 7}}).a!=7}),y=function(u,a){if(!f(u))return u;var p,s;if(a&&typeof(p=u.toString)=="function"&&!f(s=p.call(u))||typeof(p=u.valueOf)=="function"&&!f(s=p.call(u))||!a&&typeof(p=u.toString)=="function"&&!f(s=p.call(u)))return s;throw TypeError("Can't convert object to primitive value")},R=Object.defineProperty,I=l?Object.defineProperty:function(a,p,s){if(i(a),p=y(p,!0),i(s),B)try{return R(a,p,s)}catch{}if("get"in s||"set"in s)throw TypeError("Accessors not supported!");return"value"in s&&(a[p]=s.value),a},H={f:I},j=function(u,a){return{enumerable:!(u&1),configurable:!(u&2),writable:!(u&4),value:a}},T=l?function(u,a,p){return H.f(u,a,j(1,p))}:function(u,a,p){return u[a]=p,u},pe={}.hasOwnProperty,nt=function(u,a){return pe.call(u,a)},Ue=0,$e=Math.random(),Wo=function(u){return"Symbol(".concat(u===void 0?"":u,")_",(++Ue+$e).toString(36))},zo=!1,Ko=e(function(u){var a="__core-js_shared__",p=t[a]||(t[a]={});(u.exports=function(s,d){return p[s]||(p[s]=d!==void 0?d:{})})("versions",[]).push({version:r.version,mode:zo?"pure":"global",copyright:"\xA9 2019 Denis Pushkarev (zloirock.ru)"})}),Yt=Ko("native-function-to-string",Function.toString),Jo=e(function(u){var a=Wo("src"),p="toString",s=(""+Yt).split(p);r.inspectSource=function(d){return Yt.call(d)},(u.exports=function(d,F,x,J){var N=typeof x=="function";N&&(nt(x,"name")||T(x,"name",F)),d[F]!==x&&(N&&(nt(x,a)||T(x,a,d[F]?""+d[F]:s.join(String(F)))),d===t?d[F]=x:J?d[F]?d[F]=x:T(d,F,x):(delete d[F],T(d,F,x)))})(Function.prototype,p,function(){return typeof this=="function"&&this[a]||Yt.call(this)})}),Yo=function(u){if(typeof u!="function")throw TypeError(u+" is not a function!");return u},pr=function(u,a,p){if(Yo(u),a===void 0)return u;switch(p){case 1:return function(s){return u.call(a,s)};case 2:return function(s,d){return u.call(a,s,d)};case 3:return function(s,d,F){return u.call(a,s,d,F)}}return function(){return u.apply(a,arguments)}},Xt="prototype",z=function(u,a,p){var s=u&z.F,d=u&z.G,F=u&z.S,x=u&z.P,J=u&z.B,N=d?t:F?t[a]||(t[a]={}):(t[a]||{})[Xt],je=d?r:r[a]||(r[a]={}),He=je[Xt]||(je[Xt]={}),ae,ie,Y,qe;d&&(p=a);for(ae in p)ie=!s&&N&&N[ae]!==void 0,Y=(ie?N:p)[ae],qe=J&&ie?pr(Y,t):x&&typeof Y=="function"?pr(Function.call,Y):Y,N&&Jo(N,ae,Y,u&z.U),je[ae]!=Y&&T(je,ae,qe),x&&He[ae]!=Y&&(He[ae]=Y)};t.core=r,z.F=1,z.G=2,z.S=4,z.P=8,z.B=16,z.W=32,z.U=64,z.R=128;var it=z,Xo=Math.ceil,Zo=Math.floor,lr=function(u){return isNaN(u=+u)?0:(u>0?Zo:Xo)(u)},Qo=function(u){if(u==null)throw TypeError("Can't call method on "+u);return u},ko=function(u){return function(a,p){var s=String(Qo(a)),d=lr(p),F=s.length,x,J;return d<0||d>=F?u?"":void 0:(x=s.charCodeAt(d),x<55296||x>56319||d+1===F||(J=s.charCodeAt(d+1))<56320||J>57343?u?s.charAt(d):x:u?s.slice(d,d+2):(x-55296<<10)+(J-56320)+65536)}},ea=ko(!1);it(it.P,"String",{codePointAt:function(a){return ea(this,a)}});var DD=r.String.codePointAt,ta=Math.max,ra=Math.min,ua=function(u,a){return u=lr(u),u<0?ta(u+a,0):ra(u,a)},mr=String.fromCharCode,dr=String.fromCodePoint;it(it.S+it.F*(!!dr&&dr.length!=1),"String",{fromCodePoint:function(a){for(var p=arguments,s=[],d=arguments.length,F=0,x;d>F;){if(x=+p[F++],ua(x,1114111)!==x)throw RangeError(x+" is not a valid code point");s.push(x<65536?mr(x):mr(((x-=65536)>>10)+55296,x%1024+56320))}return s.join("")}});var pD=r.String.fromCodePoint,oa=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/,aa=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/,na=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/,Zt={Space_Separator:oa,ID_Start:aa,ID_Continue:na},O={isSpaceSeparator:function(a){return typeof a=="string"&&Zt.Space_Separator.test(a)},isIdStartChar:function(a){return typeof a=="string"&&(a>="a"&&a<="z"||a>="A"&&a<="Z"||a==="$"||a==="_"||Zt.ID_Start.test(a))},isIdContinueChar:function(a){return typeof a=="string"&&(a>="a"&&a<="z"||a>="A"&&a<="Z"||a>="0"&&a<="9"||a==="$"||a==="_"||a==="\u200C"||a==="\u200D"||Zt.ID_Continue.test(a))},isDigit:function(a){return typeof a=="string"&&/[0-9]/.test(a)},isHexDigit:function(a){return typeof a=="string"&&/[0-9A-Fa-f]/.test(a)}},Qt,K,le,At,Be,oe,G,kt,ft,ia=function(a,p){Qt=String(a),K="start",le=[],At=0,Be=1,oe=0,G=void 0,kt=void 0,ft=void 0;do G=fa(),pa[K]();while(G.type!=="eof");return typeof p=="function"?er({"":ft},"",p):ft};function er(u,a,p){var s=u[a];if(s!=null&&typeof s=="object")if(Array.isArray(s))for(var d=0;d<s.length;d++){var F=String(d),x=er(s,F,p);x===void 0?delete s[F]:Object.defineProperty(s,F,{value:x,writable:!0,enumerable:!0,configurable:!0})}else for(var J in s){var N=er(s,J,p);N===void 0?delete s[J]:Object.defineProperty(s,J,{value:N,writable:!0,enumerable:!0,configurable:!0})}return p.call(u,a,s)}var C,c,st,me,E;function fa(){for(C="default",c="",st=!1,me=1;;){E=de();var u=cr[C]();if(u)return u}}function de(){if(Qt[At])return String.fromCodePoint(Qt.codePointAt(At))}function n(){var u=de();return u===`
|
|
1
|
+
import{m as ht}from"./chunk-PELXH4TO.js";import{e as wr}from"./chunk-NKVA4YGF.js";import{b as Or}from"./chunk-CMUJLMKB.js";import{k as _r,l as Bt,n as Sr,q as Tr}from"./chunk-S6PCNWMK.js";import{$b as Me,Ab as U,Bb as X,Cb as Ce,Mb as ye,Nb as or,Qa as L,Xb as vr,_b as ue,a as ur,ac as Re,b as Fr,db as gt,e as ga,h as Er,na as Ae,pb as Ve,qb as gr,rb as hr,rc as Q,sc as k,tb as Br,ub as br,vb as yr,x as xr}from"./chunk-YYORCSG2.js";var sD=ga((sr,Dr)=>{(function(e,t){typeof sr=="object"&&typeof Dr<"u"?Dr.exports=t():typeof define=="function"&&define.amd?define(t):e.JSON5=t()})(sr,function(){"use strict";function e(u,a){return a={exports:{}},u(a,a.exports),a.exports}var t=e(function(u){var a=u.exports=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=a)}),r=e(function(u){var a=u.exports={version:"2.6.5"};typeof __e=="number"&&(__e=a)}),o=r.version,f=function(u){return typeof u=="object"?u!==null:typeof u=="function"},i=function(u){if(!f(u))throw TypeError(u+" is not an object!");return u},D=function(u){try{return!!u()}catch{return!0}},l=!D(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7}),m=t.document,g=f(m)&&f(m.createElement),h=function(u){return g?m.createElement(u):{}},B=!l&&!D(function(){return Object.defineProperty(h("div"),"a",{get:function(){return 7}}).a!=7}),y=function(u,a){if(!f(u))return u;var p,s;if(a&&typeof(p=u.toString)=="function"&&!f(s=p.call(u))||typeof(p=u.valueOf)=="function"&&!f(s=p.call(u))||!a&&typeof(p=u.toString)=="function"&&!f(s=p.call(u)))return s;throw TypeError("Can't convert object to primitive value")},R=Object.defineProperty,I=l?Object.defineProperty:function(a,p,s){if(i(a),p=y(p,!0),i(s),B)try{return R(a,p,s)}catch{}if("get"in s||"set"in s)throw TypeError("Accessors not supported!");return"value"in s&&(a[p]=s.value),a},H={f:I},j=function(u,a){return{enumerable:!(u&1),configurable:!(u&2),writable:!(u&4),value:a}},T=l?function(u,a,p){return H.f(u,a,j(1,p))}:function(u,a,p){return u[a]=p,u},pe={}.hasOwnProperty,nt=function(u,a){return pe.call(u,a)},Ue=0,$e=Math.random(),Wo=function(u){return"Symbol(".concat(u===void 0?"":u,")_",(++Ue+$e).toString(36))},zo=!1,Ko=e(function(u){var a="__core-js_shared__",p=t[a]||(t[a]={});(u.exports=function(s,d){return p[s]||(p[s]=d!==void 0?d:{})})("versions",[]).push({version:r.version,mode:zo?"pure":"global",copyright:"\xA9 2019 Denis Pushkarev (zloirock.ru)"})}),Yt=Ko("native-function-to-string",Function.toString),Jo=e(function(u){var a=Wo("src"),p="toString",s=(""+Yt).split(p);r.inspectSource=function(d){return Yt.call(d)},(u.exports=function(d,F,x,J){var N=typeof x=="function";N&&(nt(x,"name")||T(x,"name",F)),d[F]!==x&&(N&&(nt(x,a)||T(x,a,d[F]?""+d[F]:s.join(String(F)))),d===t?d[F]=x:J?d[F]?d[F]=x:T(d,F,x):(delete d[F],T(d,F,x)))})(Function.prototype,p,function(){return typeof this=="function"&&this[a]||Yt.call(this)})}),Yo=function(u){if(typeof u!="function")throw TypeError(u+" is not a function!");return u},pr=function(u,a,p){if(Yo(u),a===void 0)return u;switch(p){case 1:return function(s){return u.call(a,s)};case 2:return function(s,d){return u.call(a,s,d)};case 3:return function(s,d,F){return u.call(a,s,d,F)}}return function(){return u.apply(a,arguments)}},Xt="prototype",z=function(u,a,p){var s=u&z.F,d=u&z.G,F=u&z.S,x=u&z.P,J=u&z.B,N=d?t:F?t[a]||(t[a]={}):(t[a]||{})[Xt],je=d?r:r[a]||(r[a]={}),He=je[Xt]||(je[Xt]={}),ae,ie,Y,qe;d&&(p=a);for(ae in p)ie=!s&&N&&N[ae]!==void 0,Y=(ie?N:p)[ae],qe=J&&ie?pr(Y,t):x&&typeof Y=="function"?pr(Function.call,Y):Y,N&&Jo(N,ae,Y,u&z.U),je[ae]!=Y&&T(je,ae,qe),x&&He[ae]!=Y&&(He[ae]=Y)};t.core=r,z.F=1,z.G=2,z.S=4,z.P=8,z.B=16,z.W=32,z.U=64,z.R=128;var it=z,Xo=Math.ceil,Zo=Math.floor,lr=function(u){return isNaN(u=+u)?0:(u>0?Zo:Xo)(u)},Qo=function(u){if(u==null)throw TypeError("Can't call method on "+u);return u},ko=function(u){return function(a,p){var s=String(Qo(a)),d=lr(p),F=s.length,x,J;return d<0||d>=F?u?"":void 0:(x=s.charCodeAt(d),x<55296||x>56319||d+1===F||(J=s.charCodeAt(d+1))<56320||J>57343?u?s.charAt(d):x:u?s.slice(d,d+2):(x-55296<<10)+(J-56320)+65536)}},ea=ko(!1);it(it.P,"String",{codePointAt:function(a){return ea(this,a)}});var DD=r.String.codePointAt,ta=Math.max,ra=Math.min,ua=function(u,a){return u=lr(u),u<0?ta(u+a,0):ra(u,a)},mr=String.fromCharCode,dr=String.fromCodePoint;it(it.S+it.F*(!!dr&&dr.length!=1),"String",{fromCodePoint:function(a){for(var p=arguments,s=[],d=arguments.length,F=0,x;d>F;){if(x=+p[F++],ua(x,1114111)!==x)throw RangeError(x+" is not a valid code point");s.push(x<65536?mr(x):mr(((x-=65536)>>10)+55296,x%1024+56320))}return s.join("")}});var pD=r.String.fromCodePoint,oa=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/,aa=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/,na=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/,Zt={Space_Separator:oa,ID_Start:aa,ID_Continue:na},O={isSpaceSeparator:function(a){return typeof a=="string"&&Zt.Space_Separator.test(a)},isIdStartChar:function(a){return typeof a=="string"&&(a>="a"&&a<="z"||a>="A"&&a<="Z"||a==="$"||a==="_"||Zt.ID_Start.test(a))},isIdContinueChar:function(a){return typeof a=="string"&&(a>="a"&&a<="z"||a>="A"&&a<="Z"||a>="0"&&a<="9"||a==="$"||a==="_"||a==="\u200C"||a==="\u200D"||Zt.ID_Continue.test(a))},isDigit:function(a){return typeof a=="string"&&/[0-9]/.test(a)},isHexDigit:function(a){return typeof a=="string"&&/[0-9A-Fa-f]/.test(a)}},Qt,K,le,At,Be,oe,G,kt,ft,ia=function(a,p){Qt=String(a),K="start",le=[],At=0,Be=1,oe=0,G=void 0,kt=void 0,ft=void 0;do G=fa(),pa[K]();while(G.type!=="eof");return typeof p=="function"?er({"":ft},"",p):ft};function er(u,a,p){var s=u[a];if(s!=null&&typeof s=="object")if(Array.isArray(s))for(var d=0;d<s.length;d++){var F=String(d),x=er(s,F,p);x===void 0?delete s[F]:Object.defineProperty(s,F,{value:x,writable:!0,enumerable:!0,configurable:!0})}else for(var J in s){var N=er(s,J,p);N===void 0?delete s[J]:Object.defineProperty(s,J,{value:N,writable:!0,enumerable:!0,configurable:!0})}return p.call(u,a,s)}var C,c,st,me,E;function fa(){for(C="default",c="",st=!1,me=1;;){E=de();var u=cr[C]();if(u)return u}}function de(){if(Qt[At])return String.fromCodePoint(Qt.codePointAt(At))}function n(){var u=de();return u===`
|
|
2
2
|
`?(Be++,oe=0):u?oe+=u.length:oe++,u&&(At+=u.length),u}var cr={default:function(){switch(E){case" ":case"\v":case"\f":case" ":case"\xA0":case"\uFEFF":case`
|
|
3
3
|
`:case"\r":case"\u2028":case"\u2029":n();return;case"/":n(),C="comment";return;case void 0:return n(),_("eof")}if(O.isSpaceSeparator(E)){n();return}return cr[K]()},comment:function(){switch(E){case"*":n(),C="multiLineComment";return;case"/":n(),C="singleLineComment";return}throw S(n())},multiLineComment:function(){switch(E){case"*":n(),C="multiLineCommentAsterisk";return;case void 0:throw S(n())}n()},multiLineCommentAsterisk:function(){switch(E){case"*":n();return;case"/":n(),C="default";return;case void 0:throw S(n())}n(),C="multiLineComment"},singleLineComment:function(){switch(E){case`
|
|
4
4
|
`:case"\r":case"\u2028":case"\u2029":n(),C="default";return;case void 0:return n(),_("eof")}n()},value:function(){switch(E){case"{":case"[":return _("punctuator",n());case"n":return n(),Pe("ull"),_("null",null);case"t":return n(),Pe("rue"),_("boolean",!0);case"f":return n(),Pe("alse"),_("boolean",!1);case"-":case"+":n()==="-"&&(me=-1),C="sign";return;case".":c=n(),C="decimalPointLeading";return;case"0":c=n(),C="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":c=n(),C="decimalInteger";return;case"I":return n(),Pe("nfinity"),_("numeric",1/0);case"N":return n(),Pe("aN"),_("numeric",NaN);case'"':case"'":st=n()==='"',c="",C="string";return}throw S(n())},identifierNameStartEscape:function(){if(E!=="u")throw S(n());n();var a=tr();switch(a){case"$":case"_":break;default:if(!O.isIdStartChar(a))throw Ar();break}c+=a,C="identifierName"},identifierName:function(){switch(E){case"$":case"_":case"\u200C":case"\u200D":c+=n();return;case"\\":n(),C="identifierNameEscape";return}if(O.isIdContinueChar(E)){c+=n();return}return _("identifier",c)},identifierNameEscape:function(){if(E!=="u")throw S(n());n();var a=tr();switch(a){case"$":case"_":case"\u200C":case"\u200D":break;default:if(!O.isIdContinueChar(a))throw Ar();break}c+=a,C="identifierName"},sign:function(){switch(E){case".":c=n(),C="decimalPointLeading";return;case"0":c=n(),C="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":c=n(),C="decimalInteger";return;case"I":return n(),Pe("nfinity"),_("numeric",me*(1/0));case"N":return n(),Pe("aN"),_("numeric",NaN)}throw S(n())},zero:function(){switch(E){case".":c+=n(),C="decimalPoint";return;case"e":case"E":c+=n(),C="decimalExponent";return;case"x":case"X":c+=n(),C="hexadecimal";return}return _("numeric",me*0)},decimalInteger:function(){switch(E){case".":c+=n(),C="decimalPoint";return;case"e":case"E":c+=n(),C="decimalExponent";return}if(O.isDigit(E)){c+=n();return}return _("numeric",me*Number(c))},decimalPointLeading:function(){if(O.isDigit(E)){c+=n(),C="decimalFraction";return}throw S(n())},decimalPoint:function(){switch(E){case"e":case"E":c+=n(),C="decimalExponent";return}if(O.isDigit(E)){c+=n(),C="decimalFraction";return}return _("numeric",me*Number(c))},decimalFraction:function(){switch(E){case"e":case"E":c+=n(),C="decimalExponent";return}if(O.isDigit(E)){c+=n();return}return _("numeric",me*Number(c))},decimalExponent:function(){switch(E){case"+":case"-":c+=n(),C="decimalExponentSign";return}if(O.isDigit(E)){c+=n(),C="decimalExponentInteger";return}throw S(n())},decimalExponentSign:function(){if(O.isDigit(E)){c+=n(),C="decimalExponentInteger";return}throw S(n())},decimalExponentInteger:function(){if(O.isDigit(E)){c+=n();return}return _("numeric",me*Number(c))},hexadecimal:function(){if(O.isHexDigit(E)){c+=n(),C="hexadecimalInteger";return}throw S(n())},hexadecimalInteger:function(){if(O.isHexDigit(E)){c+=n();return}return _("numeric",me*Number(c))},string:function(){switch(E){case"\\":n(),c+=sa();return;case'"':if(st)return n(),_("string",c);c+=n();return;case"'":if(!st)return n(),_("string",c);c+=n();return;case`
|
|
@@ -11,6 +11,6 @@ import{m as ht}from"./chunk-PELXH4TO.js";import{e as wr}from"./chunk-NKVA4YGF.js
|
|
|
11
11
|
`+q+"}"}}return d.pop(),F=q,Le}function Fa(b){if(b.length===0)return Et(b,!0);var q=String.fromCodePoint(b.codePointAt(0));if(!O.isIdStartChar(q))return Et(b,!0);for(var A=q.length;A<b.length;A++)if(!O.isIdContinueChar(String.fromCodePoint(b.codePointAt(A))))return Et(b,!0);return b}function Ea(b){if(d.indexOf(b)>=0)throw TypeError("Converting circular structure to JSON5");d.push(b);var q=F;F=F+N;for(var A=[],$=0;$<b.length;$++){var ne=qe(String($),b);A.push(ne!==void 0?ne:"null")}var V;if(A.length===0)V="[]";else if(N===""){var Ne=A.join(",");V="["+Ne+"]"}else{var ce=`,
|
|
12
12
|
`+F,be=A.join(ce);V=`[
|
|
13
13
|
`+F+be+`,
|
|
14
|
-
`+q+"]"}return d.pop(),F=q,V}},da={parse:ia,stringify:ma},ca=da,Aa=ca;return Aa})});function ha(){this.__data__=[],this.size=0}var Pr=ha;function Ba(e,t){return e===t||e!==e&&t!==t}var fe=Ba;function ba(e,t){for(var r=e.length;r--;)if(fe(e[r][0],t))return r;return-1}var ve=ba;var ya=Array.prototype,va=ya.splice;function _a(e){var t=this.__data__,r=ve(t,e);if(r<0)return!1;var o=t.length-1;return r==o?t.pop():va.call(t,r,1),--this.size,!0}var Ir=_a;function Sa(e){var t=this.__data__,r=ve(t,e);return r<0?void 0:t[r][1]}var jr=Sa;function wa(e){return ve(this.__data__,e)>-1}var Nr=wa;function Ta(e,t){var r=this.__data__,o=ve(r,e);return o<0?(++this.size,r.push([e,t])):r[o][1]=t,this}var Lr=Ta;function We(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var o=e[t];this.set(o[0],o[1])}}We.prototype.clear=Pr;We.prototype.delete=Ir;We.prototype.get=jr;We.prototype.has=Nr;We.prototype.set=Lr;var _e=We;function Oa(){this.__data__=new _e,this.size=0}var Mr=Oa;function Pa(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var Rr=Pa;function Ia(e){return this.__data__.get(e)}var Gr=Ia;function ja(e){return this.__data__.has(e)}var Ur=ja;var Na=typeof global=="object"&&global&&global.Object===Object&&global,bt=Na;var La=typeof self=="object"&&self&&self.Object===Object&&self,Ma=bt||La||Function("return this")(),P=Ma;var Ra=P.Symbol,Z=Ra;var $r=Object.prototype,Ga=$r.hasOwnProperty,Ua=$r.toString,Dt=Z?Z.toStringTag:void 0;function $a(e){var t=Ga.call(e,Dt),r=e[Dt];try{e[Dt]=void 0;var o=!0}catch{}var f=Ua.call(e);return o&&(t?e[Dt]=r:delete e[Dt]),f}var Hr=$a;var Ha=Object.prototype,qa=Ha.toString;function Va(e){return qa.call(e)}var qr=Va;var Wa="[object Null]",za="[object Undefined]",Vr=Z?Z.toStringTag:void 0;function Ka(e){return e==null?e===void 0?za:Wa:Vr&&Vr in Object(e)?Hr(e):qr(e)}var re=Ka;function Ja(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var W=Ja;var Ya="[object AsyncFunction]",Xa="[object Function]",Za="[object GeneratorFunction]",Qa="[object Proxy]";function ka(e){if(!W(e))return!1;var t=re(e);return t==Xa||t==Za||t==Ya||t==Qa}var ze=ka;var en=P["__core-js_shared__"],yt=en;var Wr=(function(){var e=/[^.]+$/.exec(yt&&yt.keys&&yt.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function tn(e){return!!Wr&&Wr in e}var zr=tn;var rn=Function.prototype,un=rn.toString;function on(e){if(e!=null){try{return un.call(e)}catch{}try{return e+""}catch{}}return""}var Fe=on;var an=/[\\^$.*+?()[\]{}|]/g,nn=/^\[object .+?Constructor\]$/,fn=Function.prototype,sn=Object.prototype,Dn=fn.toString,pn=sn.hasOwnProperty,ln=RegExp("^"+Dn.call(pn).replace(an,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function mn(e){if(!W(e)||zr(e))return!1;var t=ze(e)?ln:nn;return t.test(Fe(e))}var Kr=mn;function dn(e,t){return e?.[t]}var Jr=dn;function cn(e,t){var r=Jr(e,t);return Kr(r)?r:void 0}var ee=cn;var An=ee(P,"Map"),Se=An;var Cn=ee(Object,"create"),Ee=Cn;function Fn(){this.__data__=Ee?Ee(null):{},this.size=0}var Yr=Fn;function En(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Xr=En;var xn="__lodash_hash_undefined__",gn=Object.prototype,hn=gn.hasOwnProperty;function Bn(e){var t=this.__data__;if(Ee){var r=t[e];return r===xn?void 0:r}return hn.call(t,e)?t[e]:void 0}var Zr=Bn;var bn=Object.prototype,yn=bn.hasOwnProperty;function vn(e){var t=this.__data__;return Ee?t[e]!==void 0:yn.call(t,e)}var Qr=vn;var _n="__lodash_hash_undefined__";function Sn(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Ee&&t===void 0?_n:t,this}var kr=Sn;function Ke(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var o=e[t];this.set(o[0],o[1])}}Ke.prototype.clear=Yr;Ke.prototype.delete=Xr;Ke.prototype.get=Zr;Ke.prototype.has=Qr;Ke.prototype.set=kr;var ar=Ke;function wn(){this.size=0,this.__data__={hash:new ar,map:new(Se||_e),string:new ar}}var eu=wn;function Tn(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var tu=Tn;function On(e,t){var r=e.__data__;return tu(t)?r[typeof t=="string"?"string":"hash"]:r.map}var we=On;function Pn(e){var t=we(this,e).delete(e);return this.size-=t?1:0,t}var ru=Pn;function In(e){return we(this,e).get(e)}var uu=In;function jn(e){return we(this,e).has(e)}var ou=jn;function Nn(e,t){var r=we(this,e),o=r.size;return r.set(e,t),this.size+=r.size==o?0:1,this}var au=Nn;function Je(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var o=e[t];this.set(o[0],o[1])}}Je.prototype.clear=eu;Je.prototype.delete=ru;Je.prototype.get=uu;Je.prototype.has=ou;Je.prototype.set=au;var vt=Je;var Ln=200;function Mn(e,t){var r=this.__data__;if(r instanceof _e){var o=r.__data__;if(!Se||o.length<Ln-1)return o.push([e,t]),this.size=++r.size,this;r=this.__data__=new vt(o)}return r.set(e,t),this.size=r.size,this}var nu=Mn;function Ye(e){var t=this.__data__=new _e(e);this.size=t.size}Ye.prototype.clear=Mr;Ye.prototype.delete=Rr;Ye.prototype.get=Gr;Ye.prototype.has=Ur;Ye.prototype.set=nu;var Te=Ye;var Rn="__lodash_hash_undefined__";function Gn(e){return this.__data__.set(e,Rn),this}var iu=Gn;function Un(e){return this.__data__.has(e)}var fu=Un;function _t(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new vt;++t<r;)this.add(e[t])}_t.prototype.add=_t.prototype.push=iu;_t.prototype.has=fu;var su=_t;function $n(e,t){for(var r=-1,o=e==null?0:e.length;++r<o;)if(t(e[r],r,e))return!0;return!1}var Du=$n;function Hn(e,t){return e.has(t)}var pu=Hn;var qn=1,Vn=2;function Wn(e,t,r,o,f,i){var D=r&qn,l=e.length,m=t.length;if(l!=m&&!(D&&m>l))return!1;var g=i.get(e),h=i.get(t);if(g&&h)return g==t&&h==e;var B=-1,y=!0,R=r&Vn?new su:void 0;for(i.set(e,t),i.set(t,e);++B<l;){var I=e[B],H=t[B];if(o)var j=D?o(H,I,B,t,e,i):o(I,H,B,e,t,i);if(j!==void 0){if(j)continue;y=!1;break}if(R){if(!Du(t,function(T,pe){if(!pu(R,pe)&&(I===T||f(I,T,r,o,i)))return R.push(pe)})){y=!1;break}}else if(!(I===H||f(I,H,r,o,i))){y=!1;break}}return i.delete(e),i.delete(t),y}var St=Wn;var zn=P.Uint8Array,Xe=zn;function Kn(e){var t=-1,r=Array(e.size);return e.forEach(function(o,f){r[++t]=[f,o]}),r}var lu=Kn;function Jn(e){var t=-1,r=Array(e.size);return e.forEach(function(o){r[++t]=o}),r}var mu=Jn;var Yn=1,Xn=2,Zn="[object Boolean]",Qn="[object Date]",kn="[object Error]",ei="[object Map]",ti="[object Number]",ri="[object RegExp]",ui="[object Set]",oi="[object String]",ai="[object Symbol]",ni="[object ArrayBuffer]",ii="[object DataView]",du=Z?Z.prototype:void 0,nr=du?du.valueOf:void 0;function fi(e,t,r,o,f,i,D){switch(r){case ii:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case ni:return!(e.byteLength!=t.byteLength||!i(new Xe(e),new Xe(t)));case Zn:case Qn:case ti:return fe(+e,+t);case kn:return e.name==t.name&&e.message==t.message;case ri:case oi:return e==t+"";case ei:var l=lu;case ui:var m=o&Yn;if(l||(l=mu),e.size!=t.size&&!m)return!1;var g=D.get(e);if(g)return g==t;o|=Xn,D.set(e,t);var h=St(l(e),l(t),o,f,i,D);return D.delete(e),h;case ai:if(nr)return nr.call(e)==nr.call(t)}return!1}var cu=fi;function si(e,t){for(var r=-1,o=t.length,f=e.length;++r<o;)e[f+r]=t[r];return e}var wt=si;var Di=Array.isArray,te=Di;function pi(e,t,r){var o=t(e);return te(e)?o:wt(o,r(e))}var Tt=pi;function li(e,t){for(var r=-1,o=e==null?0:e.length,f=0,i=[];++r<o;){var D=e[r];t(D,r,e)&&(i[f++]=D)}return i}var Au=li;function mi(){return[]}var Ot=mi;var di=Object.prototype,ci=di.propertyIsEnumerable,Cu=Object.getOwnPropertySymbols,Ai=Cu?function(e){return e==null?[]:(e=Object(e),Au(Cu(e),function(t){return ci.call(e,t)}))}:Ot,Ze=Ai;function Ci(e,t){for(var r=-1,o=Array(e);++r<e;)o[r]=t(r);return o}var Fu=Ci;function Fi(e){return e!=null&&typeof e=="object"}var M=Fi;var Ei="[object Arguments]";function xi(e){return M(e)&&re(e)==Ei}var ir=xi;var Eu=Object.prototype,gi=Eu.hasOwnProperty,hi=Eu.propertyIsEnumerable,Bi=ir((function(){return arguments})())?ir:function(e){return M(e)&&gi.call(e,"callee")&&!hi.call(e,"callee")},pt=Bi;function bi(){return!1}var xu=bi;var Bu=typeof exports=="object"&&exports&&!exports.nodeType&&exports,gu=Bu&&typeof module=="object"&&module&&!module.nodeType&&module,yi=gu&&gu.exports===Bu,hu=yi?P.Buffer:void 0,vi=hu?hu.isBuffer:void 0,_i=vi||xu,xe=_i;var Si=9007199254740991,wi=/^(?:0|[1-9]\d*)$/;function Ti(e,t){var r=typeof e;return t=t??Si,!!t&&(r=="number"||r!="symbol"&&wi.test(e))&&e>-1&&e%1==0&&e<t}var Pt=Ti;var Oi=9007199254740991;function Pi(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Oi}var It=Pi;var Ii="[object Arguments]",ji="[object Array]",Ni="[object Boolean]",Li="[object Date]",Mi="[object Error]",Ri="[object Function]",Gi="[object Map]",Ui="[object Number]",$i="[object Object]",Hi="[object RegExp]",qi="[object Set]",Vi="[object String]",Wi="[object WeakMap]",zi="[object ArrayBuffer]",Ki="[object DataView]",Ji="[object Float32Array]",Yi="[object Float64Array]",Xi="[object Int8Array]",Zi="[object Int16Array]",Qi="[object Int32Array]",ki="[object Uint8Array]",ef="[object Uint8ClampedArray]",tf="[object Uint16Array]",rf="[object Uint32Array]",w={};w[Ji]=w[Yi]=w[Xi]=w[Zi]=w[Qi]=w[ki]=w[ef]=w[tf]=w[rf]=!0;w[Ii]=w[ji]=w[zi]=w[Ni]=w[Ki]=w[Li]=w[Mi]=w[Ri]=w[Gi]=w[Ui]=w[$i]=w[Hi]=w[qi]=w[Vi]=w[Wi]=!1;function uf(e){return M(e)&&It(e.length)&&!!w[re(e)]}var bu=uf;function of(e){return function(t){return e(t)}}var Qe=of;var yu=typeof exports=="object"&&exports&&!exports.nodeType&&exports,lt=yu&&typeof module=="object"&&module&&!module.nodeType&&module,af=lt&<.exports===yu,fr=af&&bt.process,nf=(function(){try{var e=lt&<.require&<.require("util").types;return e||fr&&fr.binding&&fr.binding("util")}catch{}})(),ge=nf;var vu=ge&&ge.isTypedArray,ff=vu?Qe(vu):bu,ke=ff;var sf=Object.prototype,Df=sf.hasOwnProperty;function pf(e,t){var r=te(e),o=!r&&pt(e),f=!r&&!o&&xe(e),i=!r&&!o&&!f&&ke(e),D=r||o||f||i,l=D?Fu(e.length,String):[],m=l.length;for(var g in e)(t||Df.call(e,g))&&!(D&&(g=="length"||f&&(g=="offset"||g=="parent")||i&&(g=="buffer"||g=="byteLength"||g=="byteOffset")||Pt(g,m)))&&l.push(g);return l}var jt=pf;var lf=Object.prototype;function mf(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||lf;return e===r}var et=mf;function df(e,t){return function(r){return e(t(r))}}var Nt=df;var cf=Nt(Object.keys,Object),_u=cf;var Af=Object.prototype,Cf=Af.hasOwnProperty;function Ff(e){if(!et(e))return _u(e);var t=[];for(var r in Object(e))Cf.call(e,r)&&r!="constructor"&&t.push(r);return t}var Su=Ff;function Ef(e){return e!=null&&It(e.length)&&!ze(e)}var Oe=Ef;function xf(e){return Oe(e)?jt(e):Su(e)}var tt=xf;function gf(e){return Tt(e,tt,Ze)}var mt=gf;var hf=1,Bf=Object.prototype,bf=Bf.hasOwnProperty;function yf(e,t,r,o,f,i){var D=r&hf,l=mt(e),m=l.length,g=mt(t),h=g.length;if(m!=h&&!D)return!1;for(var B=m;B--;){var y=l[B];if(!(D?y in t:bf.call(t,y)))return!1}var R=i.get(e),I=i.get(t);if(R&&I)return R==t&&I==e;var H=!0;i.set(e,t),i.set(t,e);for(var j=D;++B<m;){y=l[B];var T=e[y],pe=t[y];if(o)var nt=D?o(pe,T,y,t,e,i):o(T,pe,y,e,t,i);if(!(nt===void 0?T===pe||f(T,pe,r,o,i):nt)){H=!1;break}j||(j=y=="constructor")}if(H&&!j){var Ue=e.constructor,$e=t.constructor;Ue!=$e&&"constructor"in e&&"constructor"in t&&!(typeof Ue=="function"&&Ue instanceof Ue&&typeof $e=="function"&&$e instanceof $e)&&(H=!1)}return i.delete(e),i.delete(t),H}var wu=yf;var vf=ee(P,"DataView"),Lt=vf;var _f=ee(P,"Promise"),Mt=_f;var Sf=ee(P,"Set"),Rt=Sf;var wf=ee(P,"WeakMap"),Gt=wf;var Tu="[object Map]",Tf="[object Object]",Ou="[object Promise]",Pu="[object Set]",Iu="[object WeakMap]",ju="[object DataView]",Of=Fe(Lt),Pf=Fe(Se),If=Fe(Mt),jf=Fe(Rt),Nf=Fe(Gt),Ge=re;(Lt&&Ge(new Lt(new ArrayBuffer(1)))!=ju||Se&&Ge(new Se)!=Tu||Mt&&Ge(Mt.resolve())!=Ou||Rt&&Ge(new Rt)!=Pu||Gt&&Ge(new Gt)!=Iu)&&(Ge=function(e){var t=re(e),r=t==Tf?e.constructor:void 0,o=r?Fe(r):"";if(o)switch(o){case Of:return ju;case Pf:return Tu;case If:return Ou;case jf:return Pu;case Nf:return Iu}return t});var he=Ge;var Lf=1,Nu="[object Arguments]",Lu="[object Array]",Ut="[object Object]",Mf=Object.prototype,Mu=Mf.hasOwnProperty;function Rf(e,t,r,o,f,i){var D=te(e),l=te(t),m=D?Lu:he(e),g=l?Lu:he(t);m=m==Nu?Ut:m,g=g==Nu?Ut:g;var h=m==Ut,B=g==Ut,y=m==g;if(y&&xe(e)){if(!xe(t))return!1;D=!0,h=!1}if(y&&!h)return i||(i=new Te),D||ke(e)?St(e,t,r,o,f,i):cu(e,t,m,r,o,f,i);if(!(r&Lf)){var R=h&&Mu.call(e,"__wrapped__"),I=B&&Mu.call(t,"__wrapped__");if(R||I){var H=R?e.value():e,j=I?t.value():t;return i||(i=new Te),f(H,j,r,o,i)}}return y?(i||(i=new Te),wu(e,t,r,o,f,i)):!1}var Ru=Rf;function Gu(e,t,r,o,f){return e===t?!0:e==null||t==null||!M(e)&&!M(t)?e!==e&&t!==t:Ru(e,t,r,o,Gu,f)}var Uu=Gu;function Gf(e,t){return Uu(e,t)}var Uf=Gf;var $f="[object Symbol]";function Hf(e){return typeof e=="symbol"||M(e)&&re(e)==$f}var $u=Hf;function qf(e,t){for(var r=-1,o=e==null?0:e.length,f=Array(o);++r<o;)f[r]=t(e[r],r,e);return f}var Hu=qf;var Vf=1/0,qu=Z?Z.prototype:void 0,Vu=qu?qu.toString:void 0;function Wu(e){if(typeof e=="string")return e;if(te(e))return Hu(e,Wu)+"";if($u(e))return Vu?Vu.call(e):"";var t=e+"";return t=="0"&&1/e==-Vf?"-0":t}var zu=Wu;function Wf(e){return e}var $t=Wf;var Ku=Object.create,zf=(function(){function e(){}return function(t){if(!W(t))return{};if(Ku)return Ku(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}})(),Ju=zf;function Kf(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var Yu=Kf;function Jf(e,t){var r=-1,o=e.length;for(t||(t=Array(o));++r<o;)t[r]=e[r];return t}var Ht=Jf;var Yf=800,Xf=16,Zf=Date.now;function Qf(e){var t=0,r=0;return function(){var o=Zf(),f=Xf-(o-r);if(r=o,f>0){if(++t>=Yf)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var Xu=Qf;function kf(e){return function(){return e}}var Zu=kf;var e0=(function(){try{var e=ee(Object,"defineProperty");return e({},"",{}),e}catch{}})(),rt=e0;var t0=rt?function(e,t){return rt(e,"toString",{configurable:!0,enumerable:!1,value:Zu(t),writable:!0})}:$t,Qu=t0;var r0=Xu(Qu),ku=r0;function u0(e,t){for(var r=-1,o=e==null?0:e.length;++r<o&&t(e[r],r,e)!==!1;);return e}var eo=u0;function o0(e,t,r){t=="__proto__"&&rt?rt(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var ut=o0;var a0=Object.prototype,n0=a0.hasOwnProperty;function i0(e,t,r){var o=e[t];(!(n0.call(e,t)&&fe(o,r))||r===void 0&&!(t in e))&&ut(e,t,r)}var qt=i0;function f0(e,t,r,o){var f=!r;r||(r={});for(var i=-1,D=t.length;++i<D;){var l=t[i],m=o?o(r[l],e[l],l,r,e):void 0;m===void 0&&(m=e[l]),f?ut(r,l,m):qt(r,l,m)}return r}var se=f0;var to=Math.max;function s0(e,t,r){return t=to(t===void 0?e.length-1:t,0),function(){for(var o=arguments,f=-1,i=to(o.length-t,0),D=Array(i);++f<i;)D[f]=o[t+f];f=-1;for(var l=Array(t+1);++f<t;)l[f]=o[f];return l[t]=r(D),Yu(e,this,l)}}var ro=s0;function D0(e,t){return ku(ro(e,t,$t),e+"")}var uo=D0;function p0(e,t,r){if(!W(r))return!1;var o=typeof t;return(o=="number"?Oe(r)&&Pt(t,r.length):o=="string"&&t in r)?fe(r[t],e):!1}var oo=p0;function l0(e){return uo(function(t,r){var o=-1,f=r.length,i=f>1?r[f-1]:void 0,D=f>2?r[2]:void 0;for(i=e.length>3&&typeof i=="function"?(f--,i):void 0,D&&oo(r[0],r[1],D)&&(i=f<3?void 0:i,f=1),t=Object(t);++o<f;){var l=r[o];l&&e(t,l,o,i)}return t})}var ao=l0;function m0(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var no=m0;var d0=Object.prototype,c0=d0.hasOwnProperty;function A0(e){if(!W(e))return no(e);var t=et(e),r=[];for(var o in e)o=="constructor"&&(t||!c0.call(e,o))||r.push(o);return r}var io=A0;function C0(e){return Oe(e)?jt(e,!0):io(e)}var De=C0;function F0(e){return e==null?"":zu(e)}var fo=F0;var E0=Nt(Object.getPrototypeOf,Object),ot=E0;var x0="[object Object]",g0=Function.prototype,h0=Object.prototype,so=g0.toString,B0=h0.hasOwnProperty,b0=so.call(Object);function y0(e){if(!M(e)||re(e)!=x0)return!1;var t=ot(e);if(t===null)return!0;var r=B0.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&so.call(r)==b0}var Do=y0;function v0(e,t){return e&&se(t,tt(t),e)}var po=v0;function _0(e,t){return e&&se(t,De(t),e)}var lo=_0;var Co=typeof exports=="object"&&exports&&!exports.nodeType&&exports,mo=Co&&typeof module=="object"&&module&&!module.nodeType&&module,S0=mo&&mo.exports===Co,co=S0?P.Buffer:void 0,Ao=co?co.allocUnsafe:void 0;function w0(e,t){if(t)return e.slice();var r=e.length,o=Ao?Ao(r):new e.constructor(r);return e.copy(o),o}var Vt=w0;function T0(e,t){return se(e,Ze(e),t)}var Fo=T0;var O0=Object.getOwnPropertySymbols,P0=O0?function(e){for(var t=[];e;)wt(t,Ze(e)),e=ot(e);return t}:Ot,Wt=P0;function I0(e,t){return se(e,Wt(e),t)}var Eo=I0;function j0(e){return Tt(e,De,Wt)}var xo=j0;var N0=Object.prototype,L0=N0.hasOwnProperty;function M0(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&L0.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var go=M0;function R0(e){var t=new e.constructor(e.byteLength);return new Xe(t).set(new Xe(e)),t}var at=R0;function G0(e,t){var r=t?at(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var ho=G0;var U0=/\w*$/;function $0(e){var t=new e.constructor(e.source,U0.exec(e));return t.lastIndex=e.lastIndex,t}var Bo=$0;var bo=Z?Z.prototype:void 0,yo=bo?bo.valueOf:void 0;function H0(e){return yo?Object(yo.call(e)):{}}var vo=H0;function q0(e,t){var r=t?at(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var zt=q0;var V0="[object Boolean]",W0="[object Date]",z0="[object Map]",K0="[object Number]",J0="[object RegExp]",Y0="[object Set]",X0="[object String]",Z0="[object Symbol]",Q0="[object ArrayBuffer]",k0="[object DataView]",es="[object Float32Array]",ts="[object Float64Array]",rs="[object Int8Array]",us="[object Int16Array]",os="[object Int32Array]",as="[object Uint8Array]",ns="[object Uint8ClampedArray]",is="[object Uint16Array]",fs="[object Uint32Array]";function ss(e,t,r){var o=e.constructor;switch(t){case Q0:return at(e);case V0:case W0:return new o(+e);case k0:return ho(e,r);case es:case ts:case rs:case us:case os:case as:case ns:case is:case fs:return zt(e,r);case z0:return new o;case K0:case X0:return new o(e);case J0:return Bo(e);case Y0:return new o;case Z0:return vo(e)}}var _o=ss;function Ds(e){return typeof e.constructor=="function"&&!et(e)?Ju(ot(e)):{}}var Kt=Ds;var ps="[object Map]";function ls(e){return M(e)&&he(e)==ps}var So=ls;var wo=ge&&ge.isMap,ms=wo?Qe(wo):So,To=ms;var ds="[object Set]";function cs(e){return M(e)&&he(e)==ds}var Oo=cs;var Po=ge&&ge.isSet,As=Po?Qe(Po):Oo,Io=As;var Cs=1,Fs=2,Es=4,jo="[object Arguments]",xs="[object Array]",gs="[object Boolean]",hs="[object Date]",Bs="[object Error]",No="[object Function]",bs="[object GeneratorFunction]",ys="[object Map]",vs="[object Number]",Lo="[object Object]",_s="[object RegExp]",Ss="[object Set]",ws="[object String]",Ts="[object Symbol]",Os="[object WeakMap]",Ps="[object ArrayBuffer]",Is="[object DataView]",js="[object Float32Array]",Ns="[object Float64Array]",Ls="[object Int8Array]",Ms="[object Int16Array]",Rs="[object Int32Array]",Gs="[object Uint8Array]",Us="[object Uint8ClampedArray]",$s="[object Uint16Array]",Hs="[object Uint32Array]",v={};v[jo]=v[xs]=v[Ps]=v[Is]=v[gs]=v[hs]=v[js]=v[Ns]=v[Ls]=v[Ms]=v[Rs]=v[ys]=v[vs]=v[Lo]=v[_s]=v[Ss]=v[ws]=v[Ts]=v[Gs]=v[Us]=v[$s]=v[Hs]=!0;v[Bs]=v[No]=v[Os]=!1;function Jt(e,t,r,o,f,i){var D,l=t&Cs,m=t&Fs,g=t&Es;if(r&&(D=f?r(e,o,f,i):r(e)),D!==void 0)return D;if(!W(e))return e;var h=te(e);if(h){if(D=go(e),!l)return Ht(e,D)}else{var B=he(e),y=B==No||B==bs;if(xe(e))return Vt(e,l);if(B==Lo||B==jo||y&&!f){if(D=m||y?{}:Kt(e),!l)return m?Eo(e,lo(D,e)):Fo(e,po(D,e))}else{if(!v[B])return f?e:{};D=_o(e,B,l)}}i||(i=new Te);var R=i.get(e);if(R)return R;i.set(e,D),Io(e)?e.forEach(function(j){D.add(Jt(j,t,r,j,e,i))}):To(e)&&e.forEach(function(j,T){D.set(T,Jt(j,t,r,T,e,i))});var I=g?m?xo:mt:m?De:tt,H=h?void 0:I(e);return eo(H||e,function(j,T){H&&(T=j,j=e[T]),qt(D,T,Jt(j,t,r,T,e,i))}),D}var Mo=Jt;var qs=1,Vs=4;function Ws(e){return Mo(e,qs|Vs)}var zs=Ws;function Ks(e){return function(t,r,o){for(var f=-1,i=Object(t),D=o(t),l=D.length;l--;){var m=D[e?l:++f];if(r(i[m],m,i)===!1)break}return t}}var Ro=Ks;var Js=Ro(),Go=Js;function Ys(e,t,r){(r!==void 0&&!fe(e[t],r)||r===void 0&&!(t in e))&&ut(e,t,r)}var dt=Ys;function Xs(e){return M(e)&&Oe(e)}var Uo=Xs;function Zs(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var ct=Zs;function Qs(e){return se(e,De(e))}var $o=Qs;function ks(e,t,r,o,f,i,D){var l=ct(e,r),m=ct(t,r),g=D.get(m);if(g){dt(e,r,g);return}var h=i?i(l,m,r+"",e,t,D):void 0,B=h===void 0;if(B){var y=te(m),R=!y&&xe(m),I=!y&&!R&&ke(m);h=m,y||R||I?te(l)?h=l:Uo(l)?h=Ht(l):R?(B=!1,h=Vt(m,!0)):I?(B=!1,h=zt(m,!0)):h=[]:Do(m)||pt(m)?(h=l,pt(l)?h=$o(l):(!W(l)||ze(l))&&(h=Kt(m))):B=!1}B&&(D.set(m,h),f(h,m,o,i,D),D.delete(m)),dt(e,r,h)}var Ho=ks;function qo(e,t,r,o,f){e!==t&&Go(t,function(i,D){if(f||(f=new Te),W(i))Ho(e,t,D,r,qo,o,f);else{var l=o?o(ct(e,D),i,D+"",e,t,f):void 0;l===void 0&&(l=i),dt(e,D,l)}},De)}var Vo=qo;var eD=ao(function(e,t,r){Vo(e,t,r)}),tD=eD;var rD=0;function uD(e){var t=++rD;return fo(e)+t}var oD=uD;function nD(e,t){if(e&1&&Ce(0,"i",19)(1,"i",20),e&2){let r=or().$implicit;L(),vr("opacity",r.matterSerialNumber?"1":"0.25")}}function iD(e,t){e&1&&Ce(0,"i",16)}function fD(e,t){if(e&1&&(U(0,"li",9)(1,"span",15),gr(2,nD,2,2)(3,iD,1,0,"i",16),X(),U(4,"span",17),ue(5),Ce(6,"br"),U(7,"small",18),ue(8),X()()()),e&2){let r=t.$implicit,o=or();L(2),hr(o.isMatterSupported?2:3),L(3),Re(" ",r.name),L(3),Me(r.username)}}var iC=(()=>{class e{$activeModal=Ae(ht);$api=Ae(Tr);$settings=Ae(Or);$toastr=Ae(Sr);$translate=Ae(_r);isMatterSupported=this.$settings.isFeatureEnabled("matterSupport");bridges=[];onRestartChildBridgeClick(){return Er(this,null,function*(){try{for(let r of this.bridges)yield xr(this.$api.put(`/server/restart/${r.username}`,{}));this.$toastr.success(this.$translate.instant("plugins.manage.child_bridge_restart"),this.$translate.instant("toast.title_success"))}catch(r){console.error(r),this.$toastr.error(this.$translate.instant("plugins.manage.child_bridge_restart_failed"),this.$translate.instant("toast.title_error"))}finally{this.$activeModal.close()}})}dismissModal(){this.$activeModal.dismiss("Dismiss")}static \u0275fac=function(o){return new(o||e)};static \u0275cmp=gt({type:e,selectors:[["ng-component"]],inputs:{bridges:"bridges"},decls:27,vars:18,consts:[[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],["type","button","data-bs-dismiss","modal",1,"btn-close",3,"click"],[1,"modal-body","text-center"],[1,"fas","fa-power-off","primary-text","mb-3",2,"font-size","75px"],[1,"w-100"],[1,"text-center"],[1,"list-group","list-group-box","mb-0","w-75","mx-auto"],[1,"list-group-item","d-flex","justify-content-between","align-items-center"],[1,"modal-footer","justify-content-between"],[1,"text-start"],["type","button","data-bs-dismiss","modal",1,"btn","btn-elegant",3,"click"],[1,"text-end"],["type","button",1,"btn","btn-primary",3,"click"],[1,"me-3"],[1,"fas","fa-hap"],[1,"flex-grow-1","text-start"],[1,"grey-text","font-monospace"],[1,"fas","fa-lg","fa-hap","me-2"],[1,"fas","fa-lg","fa-matter"]],template:function(o,f){o&1&&(U(0,"div",0)(1,"div",1)(2,"h5",2),ue(3),Q(4,"translate"),X(),U(5,"button",3),Q(6,"translate"),ye("click",function(){return f.dismissModal()}),X()(),U(7,"div",4),Ce(8,"i",5),U(9,"p",6),ue(10),Q(11,"translate"),X(),U(12,"div",7)(13,"ul",8),br(14,fD,9,3,"li",9,Br),X()()(),U(16,"div",10)(17,"div",11)(18,"button",12),Q(19,"translate"),ye("click",function(){return f.dismissModal()}),ue(20),Q(21,"translate"),X()(),Ce(22,"div",7),U(23,"div",13)(24,"button",14),ye("click",function(){return f.onRestartChildBridgeClick()}),ue(25),Q(26,"translate"),X()()()()),o&2&&(L(3),Me(k(4,6,"platform.version.service_restart_required")),L(2),Ve("aria-label",k(6,8,"form.button_close")),L(5),Me(k(11,10,"restart.child_bridge_list")),L(4),yr(f.bridges),L(4),Ve("aria-label",k(19,12,"form.button_close")),L(2),Re(" ",k(21,14,"form.button_close")," "),L(5),Re(" ",k(26,16,"menu.tooltip_restart")," "))},dependencies:[Bt],encapsulation:2})}return e})();var cC=(()=>{class e{$activeModal=Ae(ht);$router=Ae(wr);onRestartHomebridgeClick(){this.$router.navigate(["/restart"]),this.$activeModal.close()}dismissModal(){this.$activeModal.dismiss("Dismiss")}static \u0275fac=function(o){return new(o||e)};static \u0275cmp=gt({type:e,selectors:[["ng-component"]],decls:23,vars:18,consts:[[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],["type","button","data-bs-dismiss","modal",1,"btn-close",3,"click"],[1,"modal-body","text-center"],[1,"fas","fa-power-off","primary-text","mb-3",2,"font-size","75px"],[1,"mb-0"],[1,"modal-footer","justify-content-between"],[1,"text-start"],["type","button","data-bs-dismiss","modal",1,"btn","btn-elegant",3,"click"],[1,"text-center"],[1,"text-end"],["type","button",1,"btn","btn-primary",3,"click"]],template:function(o,f){o&1&&(U(0,"div",0)(1,"div",1)(2,"h5",2),ue(3),Q(4,"translate"),X(),U(5,"button",3),Q(6,"translate"),ye("click",function(){return f.dismissModal()}),X()(),U(7,"div",4),Ce(8,"i",5),U(9,"p",6),ue(10),Q(11,"translate"),X()(),U(12,"div",7)(13,"div",8)(14,"button",9),Q(15,"translate"),ye("click",function(){return f.dismissModal()}),ue(16),Q(17,"translate"),X()(),Ce(18,"div",10),U(19,"div",11)(20,"button",12),ye("click",function(){return f.onRestartHomebridgeClick()}),ue(21),Q(22,"translate"),X()()()()),o&2&&(L(3),Me(k(4,6,"platform.version.service_restart_required")),L(2),Ve("aria-label",k(6,8,"form.button_close")),L(5),Me(k(11,10,"plugins.settings.restart_required")),L(4),Ve("aria-label",k(15,12,"form.button_close")),L(2),Re(" ",k(17,14,"form.button_close")," "),L(5),Re(" ",k(22,16,"menu.tooltip_restart")," "))},dependencies:[Bt],encapsulation:2})}return e})();function CC(e,{isDebugModeEnabled:t,isMatterSupported:r}){return{type:"object",required:["username"],additionalProperties:!1,title:e.instant("child_bridge.bridge_settings"),properties:ur(Fr(ur({username:{type:"string",title:e.instant("users.label_username"),description:`The child bridge username must be 6 pairs of colon-separated hexadecimal characters (A-F 0-9).
|
|
14
|
+
`+q+"]"}return d.pop(),F=q,V}},da={parse:ia,stringify:ma},ca=da,Aa=ca;return Aa})});function ha(){this.__data__=[],this.size=0}var Pr=ha;function Ba(e,t){return e===t||e!==e&&t!==t}var fe=Ba;function ba(e,t){for(var r=e.length;r--;)if(fe(e[r][0],t))return r;return-1}var ve=ba;var ya=Array.prototype,va=ya.splice;function _a(e){var t=this.__data__,r=ve(t,e);if(r<0)return!1;var o=t.length-1;return r==o?t.pop():va.call(t,r,1),--this.size,!0}var Ir=_a;function Sa(e){var t=this.__data__,r=ve(t,e);return r<0?void 0:t[r][1]}var jr=Sa;function wa(e){return ve(this.__data__,e)>-1}var Nr=wa;function Ta(e,t){var r=this.__data__,o=ve(r,e);return o<0?(++this.size,r.push([e,t])):r[o][1]=t,this}var Lr=Ta;function We(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var o=e[t];this.set(o[0],o[1])}}We.prototype.clear=Pr;We.prototype.delete=Ir;We.prototype.get=jr;We.prototype.has=Nr;We.prototype.set=Lr;var _e=We;function Oa(){this.__data__=new _e,this.size=0}var Mr=Oa;function Pa(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var Rr=Pa;function Ia(e){return this.__data__.get(e)}var Gr=Ia;function ja(e){return this.__data__.has(e)}var Ur=ja;var Na=typeof global=="object"&&global&&global.Object===Object&&global,bt=Na;var La=typeof self=="object"&&self&&self.Object===Object&&self,Ma=bt||La||Function("return this")(),P=Ma;var Ra=P.Symbol,Z=Ra;var $r=Object.prototype,Ga=$r.hasOwnProperty,Ua=$r.toString,Dt=Z?Z.toStringTag:void 0;function $a(e){var t=Ga.call(e,Dt),r=e[Dt];try{e[Dt]=void 0;var o=!0}catch{}var f=Ua.call(e);return o&&(t?e[Dt]=r:delete e[Dt]),f}var Hr=$a;var Ha=Object.prototype,qa=Ha.toString;function Va(e){return qa.call(e)}var qr=Va;var Wa="[object Null]",za="[object Undefined]",Vr=Z?Z.toStringTag:void 0;function Ka(e){return e==null?e===void 0?za:Wa:Vr&&Vr in Object(e)?Hr(e):qr(e)}var re=Ka;function Ja(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var W=Ja;var Ya="[object AsyncFunction]",Xa="[object Function]",Za="[object GeneratorFunction]",Qa="[object Proxy]";function ka(e){if(!W(e))return!1;var t=re(e);return t==Xa||t==Za||t==Ya||t==Qa}var ze=ka;var en=P["__core-js_shared__"],yt=en;var Wr=(function(){var e=/[^.]+$/.exec(yt&&yt.keys&&yt.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function tn(e){return!!Wr&&Wr in e}var zr=tn;var rn=Function.prototype,un=rn.toString;function on(e){if(e!=null){try{return un.call(e)}catch{}try{return e+""}catch{}}return""}var Fe=on;var an=/[\\^$.*+?()[\]{}|]/g,nn=/^\[object .+?Constructor\]$/,fn=Function.prototype,sn=Object.prototype,Dn=fn.toString,pn=sn.hasOwnProperty,ln=RegExp("^"+Dn.call(pn).replace(an,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function mn(e){if(!W(e)||zr(e))return!1;var t=ze(e)?ln:nn;return t.test(Fe(e))}var Kr=mn;function dn(e,t){return e?.[t]}var Jr=dn;function cn(e,t){var r=Jr(e,t);return Kr(r)?r:void 0}var ee=cn;var An=ee(P,"Map"),Se=An;var Cn=ee(Object,"create"),Ee=Cn;function Fn(){this.__data__=Ee?Ee(null):{},this.size=0}var Yr=Fn;function En(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Xr=En;var xn="__lodash_hash_undefined__",gn=Object.prototype,hn=gn.hasOwnProperty;function Bn(e){var t=this.__data__;if(Ee){var r=t[e];return r===xn?void 0:r}return hn.call(t,e)?t[e]:void 0}var Zr=Bn;var bn=Object.prototype,yn=bn.hasOwnProperty;function vn(e){var t=this.__data__;return Ee?t[e]!==void 0:yn.call(t,e)}var Qr=vn;var _n="__lodash_hash_undefined__";function Sn(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Ee&&t===void 0?_n:t,this}var kr=Sn;function Ke(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var o=e[t];this.set(o[0],o[1])}}Ke.prototype.clear=Yr;Ke.prototype.delete=Xr;Ke.prototype.get=Zr;Ke.prototype.has=Qr;Ke.prototype.set=kr;var ar=Ke;function wn(){this.size=0,this.__data__={hash:new ar,map:new(Se||_e),string:new ar}}var eu=wn;function Tn(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var tu=Tn;function On(e,t){var r=e.__data__;return tu(t)?r[typeof t=="string"?"string":"hash"]:r.map}var we=On;function Pn(e){var t=we(this,e).delete(e);return this.size-=t?1:0,t}var ru=Pn;function In(e){return we(this,e).get(e)}var uu=In;function jn(e){return we(this,e).has(e)}var ou=jn;function Nn(e,t){var r=we(this,e),o=r.size;return r.set(e,t),this.size+=r.size==o?0:1,this}var au=Nn;function Je(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var o=e[t];this.set(o[0],o[1])}}Je.prototype.clear=eu;Je.prototype.delete=ru;Je.prototype.get=uu;Je.prototype.has=ou;Je.prototype.set=au;var vt=Je;var Ln=200;function Mn(e,t){var r=this.__data__;if(r instanceof _e){var o=r.__data__;if(!Se||o.length<Ln-1)return o.push([e,t]),this.size=++r.size,this;r=this.__data__=new vt(o)}return r.set(e,t),this.size=r.size,this}var nu=Mn;function Ye(e){var t=this.__data__=new _e(e);this.size=t.size}Ye.prototype.clear=Mr;Ye.prototype.delete=Rr;Ye.prototype.get=Gr;Ye.prototype.has=Ur;Ye.prototype.set=nu;var Te=Ye;var Rn="__lodash_hash_undefined__";function Gn(e){return this.__data__.set(e,Rn),this}var iu=Gn;function Un(e){return this.__data__.has(e)}var fu=Un;function _t(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new vt;++t<r;)this.add(e[t])}_t.prototype.add=_t.prototype.push=iu;_t.prototype.has=fu;var su=_t;function $n(e,t){for(var r=-1,o=e==null?0:e.length;++r<o;)if(t(e[r],r,e))return!0;return!1}var Du=$n;function Hn(e,t){return e.has(t)}var pu=Hn;var qn=1,Vn=2;function Wn(e,t,r,o,f,i){var D=r&qn,l=e.length,m=t.length;if(l!=m&&!(D&&m>l))return!1;var g=i.get(e),h=i.get(t);if(g&&h)return g==t&&h==e;var B=-1,y=!0,R=r&Vn?new su:void 0;for(i.set(e,t),i.set(t,e);++B<l;){var I=e[B],H=t[B];if(o)var j=D?o(H,I,B,t,e,i):o(I,H,B,e,t,i);if(j!==void 0){if(j)continue;y=!1;break}if(R){if(!Du(t,function(T,pe){if(!pu(R,pe)&&(I===T||f(I,T,r,o,i)))return R.push(pe)})){y=!1;break}}else if(!(I===H||f(I,H,r,o,i))){y=!1;break}}return i.delete(e),i.delete(t),y}var St=Wn;var zn=P.Uint8Array,Xe=zn;function Kn(e){var t=-1,r=Array(e.size);return e.forEach(function(o,f){r[++t]=[f,o]}),r}var lu=Kn;function Jn(e){var t=-1,r=Array(e.size);return e.forEach(function(o){r[++t]=o}),r}var mu=Jn;var Yn=1,Xn=2,Zn="[object Boolean]",Qn="[object Date]",kn="[object Error]",ei="[object Map]",ti="[object Number]",ri="[object RegExp]",ui="[object Set]",oi="[object String]",ai="[object Symbol]",ni="[object ArrayBuffer]",ii="[object DataView]",du=Z?Z.prototype:void 0,nr=du?du.valueOf:void 0;function fi(e,t,r,o,f,i,D){switch(r){case ii:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case ni:return!(e.byteLength!=t.byteLength||!i(new Xe(e),new Xe(t)));case Zn:case Qn:case ti:return fe(+e,+t);case kn:return e.name==t.name&&e.message==t.message;case ri:case oi:return e==t+"";case ei:var l=lu;case ui:var m=o&Yn;if(l||(l=mu),e.size!=t.size&&!m)return!1;var g=D.get(e);if(g)return g==t;o|=Xn,D.set(e,t);var h=St(l(e),l(t),o,f,i,D);return D.delete(e),h;case ai:if(nr)return nr.call(e)==nr.call(t)}return!1}var cu=fi;function si(e,t){for(var r=-1,o=t.length,f=e.length;++r<o;)e[f+r]=t[r];return e}var wt=si;var Di=Array.isArray,te=Di;function pi(e,t,r){var o=t(e);return te(e)?o:wt(o,r(e))}var Tt=pi;function li(e,t){for(var r=-1,o=e==null?0:e.length,f=0,i=[];++r<o;){var D=e[r];t(D,r,e)&&(i[f++]=D)}return i}var Au=li;function mi(){return[]}var Ot=mi;var di=Object.prototype,ci=di.propertyIsEnumerable,Cu=Object.getOwnPropertySymbols,Ai=Cu?function(e){return e==null?[]:(e=Object(e),Au(Cu(e),function(t){return ci.call(e,t)}))}:Ot,Ze=Ai;function Ci(e,t){for(var r=-1,o=Array(e);++r<e;)o[r]=t(r);return o}var Fu=Ci;function Fi(e){return e!=null&&typeof e=="object"}var M=Fi;var Ei="[object Arguments]";function xi(e){return M(e)&&re(e)==Ei}var ir=xi;var Eu=Object.prototype,gi=Eu.hasOwnProperty,hi=Eu.propertyIsEnumerable,Bi=ir((function(){return arguments})())?ir:function(e){return M(e)&&gi.call(e,"callee")&&!hi.call(e,"callee")},pt=Bi;function bi(){return!1}var xu=bi;var Bu=typeof exports=="object"&&exports&&!exports.nodeType&&exports,gu=Bu&&typeof module=="object"&&module&&!module.nodeType&&module,yi=gu&&gu.exports===Bu,hu=yi?P.Buffer:void 0,vi=hu?hu.isBuffer:void 0,_i=vi||xu,xe=_i;var Si=9007199254740991,wi=/^(?:0|[1-9]\d*)$/;function Ti(e,t){var r=typeof e;return t=t??Si,!!t&&(r=="number"||r!="symbol"&&wi.test(e))&&e>-1&&e%1==0&&e<t}var Pt=Ti;var Oi=9007199254740991;function Pi(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Oi}var It=Pi;var Ii="[object Arguments]",ji="[object Array]",Ni="[object Boolean]",Li="[object Date]",Mi="[object Error]",Ri="[object Function]",Gi="[object Map]",Ui="[object Number]",$i="[object Object]",Hi="[object RegExp]",qi="[object Set]",Vi="[object String]",Wi="[object WeakMap]",zi="[object ArrayBuffer]",Ki="[object DataView]",Ji="[object Float32Array]",Yi="[object Float64Array]",Xi="[object Int8Array]",Zi="[object Int16Array]",Qi="[object Int32Array]",ki="[object Uint8Array]",ef="[object Uint8ClampedArray]",tf="[object Uint16Array]",rf="[object Uint32Array]",w={};w[Ji]=w[Yi]=w[Xi]=w[Zi]=w[Qi]=w[ki]=w[ef]=w[tf]=w[rf]=!0;w[Ii]=w[ji]=w[zi]=w[Ni]=w[Ki]=w[Li]=w[Mi]=w[Ri]=w[Gi]=w[Ui]=w[$i]=w[Hi]=w[qi]=w[Vi]=w[Wi]=!1;function uf(e){return M(e)&&It(e.length)&&!!w[re(e)]}var bu=uf;function of(e){return function(t){return e(t)}}var Qe=of;var yu=typeof exports=="object"&&exports&&!exports.nodeType&&exports,lt=yu&&typeof module=="object"&&module&&!module.nodeType&&module,af=lt&<.exports===yu,fr=af&&bt.process,nf=(function(){try{var e=lt&<.require&<.require("util").types;return e||fr&&fr.binding&&fr.binding("util")}catch{}})(),ge=nf;var vu=ge&&ge.isTypedArray,ff=vu?Qe(vu):bu,ke=ff;var sf=Object.prototype,Df=sf.hasOwnProperty;function pf(e,t){var r=te(e),o=!r&&pt(e),f=!r&&!o&&xe(e),i=!r&&!o&&!f&&ke(e),D=r||o||f||i,l=D?Fu(e.length,String):[],m=l.length;for(var g in e)(t||Df.call(e,g))&&!(D&&(g=="length"||f&&(g=="offset"||g=="parent")||i&&(g=="buffer"||g=="byteLength"||g=="byteOffset")||Pt(g,m)))&&l.push(g);return l}var jt=pf;var lf=Object.prototype;function mf(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||lf;return e===r}var et=mf;function df(e,t){return function(r){return e(t(r))}}var Nt=df;var cf=Nt(Object.keys,Object),_u=cf;var Af=Object.prototype,Cf=Af.hasOwnProperty;function Ff(e){if(!et(e))return _u(e);var t=[];for(var r in Object(e))Cf.call(e,r)&&r!="constructor"&&t.push(r);return t}var Su=Ff;function Ef(e){return e!=null&&It(e.length)&&!ze(e)}var Oe=Ef;function xf(e){return Oe(e)?jt(e):Su(e)}var tt=xf;function gf(e){return Tt(e,tt,Ze)}var mt=gf;var hf=1,Bf=Object.prototype,bf=Bf.hasOwnProperty;function yf(e,t,r,o,f,i){var D=r&hf,l=mt(e),m=l.length,g=mt(t),h=g.length;if(m!=h&&!D)return!1;for(var B=m;B--;){var y=l[B];if(!(D?y in t:bf.call(t,y)))return!1}var R=i.get(e),I=i.get(t);if(R&&I)return R==t&&I==e;var H=!0;i.set(e,t),i.set(t,e);for(var j=D;++B<m;){y=l[B];var T=e[y],pe=t[y];if(o)var nt=D?o(pe,T,y,t,e,i):o(T,pe,y,e,t,i);if(!(nt===void 0?T===pe||f(T,pe,r,o,i):nt)){H=!1;break}j||(j=y=="constructor")}if(H&&!j){var Ue=e.constructor,$e=t.constructor;Ue!=$e&&"constructor"in e&&"constructor"in t&&!(typeof Ue=="function"&&Ue instanceof Ue&&typeof $e=="function"&&$e instanceof $e)&&(H=!1)}return i.delete(e),i.delete(t),H}var wu=yf;var vf=ee(P,"DataView"),Lt=vf;var _f=ee(P,"Promise"),Mt=_f;var Sf=ee(P,"Set"),Rt=Sf;var wf=ee(P,"WeakMap"),Gt=wf;var Tu="[object Map]",Tf="[object Object]",Ou="[object Promise]",Pu="[object Set]",Iu="[object WeakMap]",ju="[object DataView]",Of=Fe(Lt),Pf=Fe(Se),If=Fe(Mt),jf=Fe(Rt),Nf=Fe(Gt),Ge=re;(Lt&&Ge(new Lt(new ArrayBuffer(1)))!=ju||Se&&Ge(new Se)!=Tu||Mt&&Ge(Mt.resolve())!=Ou||Rt&&Ge(new Rt)!=Pu||Gt&&Ge(new Gt)!=Iu)&&(Ge=function(e){var t=re(e),r=t==Tf?e.constructor:void 0,o=r?Fe(r):"";if(o)switch(o){case Of:return ju;case Pf:return Tu;case If:return Ou;case jf:return Pu;case Nf:return Iu}return t});var he=Ge;var Lf=1,Nu="[object Arguments]",Lu="[object Array]",Ut="[object Object]",Mf=Object.prototype,Mu=Mf.hasOwnProperty;function Rf(e,t,r,o,f,i){var D=te(e),l=te(t),m=D?Lu:he(e),g=l?Lu:he(t);m=m==Nu?Ut:m,g=g==Nu?Ut:g;var h=m==Ut,B=g==Ut,y=m==g;if(y&&xe(e)){if(!xe(t))return!1;D=!0,h=!1}if(y&&!h)return i||(i=new Te),D||ke(e)?St(e,t,r,o,f,i):cu(e,t,m,r,o,f,i);if(!(r&Lf)){var R=h&&Mu.call(e,"__wrapped__"),I=B&&Mu.call(t,"__wrapped__");if(R||I){var H=R?e.value():e,j=I?t.value():t;return i||(i=new Te),f(H,j,r,o,i)}}return y?(i||(i=new Te),wu(e,t,r,o,f,i)):!1}var Ru=Rf;function Gu(e,t,r,o,f){return e===t?!0:e==null||t==null||!M(e)&&!M(t)?e!==e&&t!==t:Ru(e,t,r,o,Gu,f)}var Uu=Gu;function Gf(e,t){return Uu(e,t)}var Uf=Gf;var $f="[object Symbol]";function Hf(e){return typeof e=="symbol"||M(e)&&re(e)==$f}var $u=Hf;function qf(e,t){for(var r=-1,o=e==null?0:e.length,f=Array(o);++r<o;)f[r]=t(e[r],r,e);return f}var Hu=qf;var Vf=1/0,qu=Z?Z.prototype:void 0,Vu=qu?qu.toString:void 0;function Wu(e){if(typeof e=="string")return e;if(te(e))return Hu(e,Wu)+"";if($u(e))return Vu?Vu.call(e):"";var t=e+"";return t=="0"&&1/e==-Vf?"-0":t}var zu=Wu;function Wf(e){return e}var $t=Wf;var Ku=Object.create,zf=(function(){function e(){}return function(t){if(!W(t))return{};if(Ku)return Ku(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}})(),Ju=zf;function Kf(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var Yu=Kf;function Jf(e,t){var r=-1,o=e.length;for(t||(t=Array(o));++r<o;)t[r]=e[r];return t}var Ht=Jf;var Yf=800,Xf=16,Zf=Date.now;function Qf(e){var t=0,r=0;return function(){var o=Zf(),f=Xf-(o-r);if(r=o,f>0){if(++t>=Yf)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var Xu=Qf;function kf(e){return function(){return e}}var Zu=kf;var e0=(function(){try{var e=ee(Object,"defineProperty");return e({},"",{}),e}catch{}})(),rt=e0;var t0=rt?function(e,t){return rt(e,"toString",{configurable:!0,enumerable:!1,value:Zu(t),writable:!0})}:$t,Qu=t0;var r0=Xu(Qu),ku=r0;function u0(e,t){for(var r=-1,o=e==null?0:e.length;++r<o&&t(e[r],r,e)!==!1;);return e}var eo=u0;function o0(e,t,r){t=="__proto__"&&rt?rt(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var ut=o0;var a0=Object.prototype,n0=a0.hasOwnProperty;function i0(e,t,r){var o=e[t];(!(n0.call(e,t)&&fe(o,r))||r===void 0&&!(t in e))&&ut(e,t,r)}var qt=i0;function f0(e,t,r,o){var f=!r;r||(r={});for(var i=-1,D=t.length;++i<D;){var l=t[i],m=o?o(r[l],e[l],l,r,e):void 0;m===void 0&&(m=e[l]),f?ut(r,l,m):qt(r,l,m)}return r}var se=f0;var to=Math.max;function s0(e,t,r){return t=to(t===void 0?e.length-1:t,0),function(){for(var o=arguments,f=-1,i=to(o.length-t,0),D=Array(i);++f<i;)D[f]=o[t+f];f=-1;for(var l=Array(t+1);++f<t;)l[f]=o[f];return l[t]=r(D),Yu(e,this,l)}}var ro=s0;function D0(e,t){return ku(ro(e,t,$t),e+"")}var uo=D0;function p0(e,t,r){if(!W(r))return!1;var o=typeof t;return(o=="number"?Oe(r)&&Pt(t,r.length):o=="string"&&t in r)?fe(r[t],e):!1}var oo=p0;function l0(e){return uo(function(t,r){var o=-1,f=r.length,i=f>1?r[f-1]:void 0,D=f>2?r[2]:void 0;for(i=e.length>3&&typeof i=="function"?(f--,i):void 0,D&&oo(r[0],r[1],D)&&(i=f<3?void 0:i,f=1),t=Object(t);++o<f;){var l=r[o];l&&e(t,l,o,i)}return t})}var ao=l0;function m0(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var no=m0;var d0=Object.prototype,c0=d0.hasOwnProperty;function A0(e){if(!W(e))return no(e);var t=et(e),r=[];for(var o in e)o=="constructor"&&(t||!c0.call(e,o))||r.push(o);return r}var io=A0;function C0(e){return Oe(e)?jt(e,!0):io(e)}var De=C0;function F0(e){return e==null?"":zu(e)}var fo=F0;var E0=Nt(Object.getPrototypeOf,Object),ot=E0;var x0="[object Object]",g0=Function.prototype,h0=Object.prototype,so=g0.toString,B0=h0.hasOwnProperty,b0=so.call(Object);function y0(e){if(!M(e)||re(e)!=x0)return!1;var t=ot(e);if(t===null)return!0;var r=B0.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&so.call(r)==b0}var Do=y0;function v0(e,t){return e&&se(t,tt(t),e)}var po=v0;function _0(e,t){return e&&se(t,De(t),e)}var lo=_0;var Co=typeof exports=="object"&&exports&&!exports.nodeType&&exports,mo=Co&&typeof module=="object"&&module&&!module.nodeType&&module,S0=mo&&mo.exports===Co,co=S0?P.Buffer:void 0,Ao=co?co.allocUnsafe:void 0;function w0(e,t){if(t)return e.slice();var r=e.length,o=Ao?Ao(r):new e.constructor(r);return e.copy(o),o}var Vt=w0;function T0(e,t){return se(e,Ze(e),t)}var Fo=T0;var O0=Object.getOwnPropertySymbols,P0=O0?function(e){for(var t=[];e;)wt(t,Ze(e)),e=ot(e);return t}:Ot,Wt=P0;function I0(e,t){return se(e,Wt(e),t)}var Eo=I0;function j0(e){return Tt(e,De,Wt)}var xo=j0;var N0=Object.prototype,L0=N0.hasOwnProperty;function M0(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&L0.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var go=M0;function R0(e){var t=new e.constructor(e.byteLength);return new Xe(t).set(new Xe(e)),t}var at=R0;function G0(e,t){var r=t?at(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var ho=G0;var U0=/\w*$/;function $0(e){var t=new e.constructor(e.source,U0.exec(e));return t.lastIndex=e.lastIndex,t}var Bo=$0;var bo=Z?Z.prototype:void 0,yo=bo?bo.valueOf:void 0;function H0(e){return yo?Object(yo.call(e)):{}}var vo=H0;function q0(e,t){var r=t?at(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var zt=q0;var V0="[object Boolean]",W0="[object Date]",z0="[object Map]",K0="[object Number]",J0="[object RegExp]",Y0="[object Set]",X0="[object String]",Z0="[object Symbol]",Q0="[object ArrayBuffer]",k0="[object DataView]",es="[object Float32Array]",ts="[object Float64Array]",rs="[object Int8Array]",us="[object Int16Array]",os="[object Int32Array]",as="[object Uint8Array]",ns="[object Uint8ClampedArray]",is="[object Uint16Array]",fs="[object Uint32Array]";function ss(e,t,r){var o=e.constructor;switch(t){case Q0:return at(e);case V0:case W0:return new o(+e);case k0:return ho(e,r);case es:case ts:case rs:case us:case os:case as:case ns:case is:case fs:return zt(e,r);case z0:return new o;case K0:case X0:return new o(e);case J0:return Bo(e);case Y0:return new o;case Z0:return vo(e)}}var _o=ss;function Ds(e){return typeof e.constructor=="function"&&!et(e)?Ju(ot(e)):{}}var Kt=Ds;var ps="[object Map]";function ls(e){return M(e)&&he(e)==ps}var So=ls;var wo=ge&&ge.isMap,ms=wo?Qe(wo):So,To=ms;var ds="[object Set]";function cs(e){return M(e)&&he(e)==ds}var Oo=cs;var Po=ge&&ge.isSet,As=Po?Qe(Po):Oo,Io=As;var Cs=1,Fs=2,Es=4,jo="[object Arguments]",xs="[object Array]",gs="[object Boolean]",hs="[object Date]",Bs="[object Error]",No="[object Function]",bs="[object GeneratorFunction]",ys="[object Map]",vs="[object Number]",Lo="[object Object]",_s="[object RegExp]",Ss="[object Set]",ws="[object String]",Ts="[object Symbol]",Os="[object WeakMap]",Ps="[object ArrayBuffer]",Is="[object DataView]",js="[object Float32Array]",Ns="[object Float64Array]",Ls="[object Int8Array]",Ms="[object Int16Array]",Rs="[object Int32Array]",Gs="[object Uint8Array]",Us="[object Uint8ClampedArray]",$s="[object Uint16Array]",Hs="[object Uint32Array]",v={};v[jo]=v[xs]=v[Ps]=v[Is]=v[gs]=v[hs]=v[js]=v[Ns]=v[Ls]=v[Ms]=v[Rs]=v[ys]=v[vs]=v[Lo]=v[_s]=v[Ss]=v[ws]=v[Ts]=v[Gs]=v[Us]=v[$s]=v[Hs]=!0;v[Bs]=v[No]=v[Os]=!1;function Jt(e,t,r,o,f,i){var D,l=t&Cs,m=t&Fs,g=t&Es;if(r&&(D=f?r(e,o,f,i):r(e)),D!==void 0)return D;if(!W(e))return e;var h=te(e);if(h){if(D=go(e),!l)return Ht(e,D)}else{var B=he(e),y=B==No||B==bs;if(xe(e))return Vt(e,l);if(B==Lo||B==jo||y&&!f){if(D=m||y?{}:Kt(e),!l)return m?Eo(e,lo(D,e)):Fo(e,po(D,e))}else{if(!v[B])return f?e:{};D=_o(e,B,l)}}i||(i=new Te);var R=i.get(e);if(R)return R;i.set(e,D),Io(e)?e.forEach(function(j){D.add(Jt(j,t,r,j,e,i))}):To(e)&&e.forEach(function(j,T){D.set(T,Jt(j,t,r,T,e,i))});var I=g?m?xo:mt:m?De:tt,H=h?void 0:I(e);return eo(H||e,function(j,T){H&&(T=j,j=e[T]),qt(D,T,Jt(j,t,r,T,e,i))}),D}var Mo=Jt;var qs=1,Vs=4;function Ws(e){return Mo(e,qs|Vs)}var zs=Ws;function Ks(e){return function(t,r,o){for(var f=-1,i=Object(t),D=o(t),l=D.length;l--;){var m=D[e?l:++f];if(r(i[m],m,i)===!1)break}return t}}var Ro=Ks;var Js=Ro(),Go=Js;function Ys(e,t,r){(r!==void 0&&!fe(e[t],r)||r===void 0&&!(t in e))&&ut(e,t,r)}var dt=Ys;function Xs(e){return M(e)&&Oe(e)}var Uo=Xs;function Zs(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var ct=Zs;function Qs(e){return se(e,De(e))}var $o=Qs;function ks(e,t,r,o,f,i,D){var l=ct(e,r),m=ct(t,r),g=D.get(m);if(g){dt(e,r,g);return}var h=i?i(l,m,r+"",e,t,D):void 0,B=h===void 0;if(B){var y=te(m),R=!y&&xe(m),I=!y&&!R&&ke(m);h=m,y||R||I?te(l)?h=l:Uo(l)?h=Ht(l):R?(B=!1,h=Vt(m,!0)):I?(B=!1,h=zt(m,!0)):h=[]:Do(m)||pt(m)?(h=l,pt(l)?h=$o(l):(!W(l)||ze(l))&&(h=Kt(m))):B=!1}B&&(D.set(m,h),f(h,m,o,i,D),D.delete(m)),dt(e,r,h)}var Ho=ks;function qo(e,t,r,o,f){e!==t&&Go(t,function(i,D){if(f||(f=new Te),W(i))Ho(e,t,D,r,qo,o,f);else{var l=o?o(ct(e,D),i,D+"",e,t,f):void 0;l===void 0&&(l=i),dt(e,D,l)}},De)}var Vo=qo;var eD=ao(function(e,t,r){Vo(e,t,r)}),tD=eD;var rD=0;function uD(e){var t=++rD;return fo(e)+t}var oD=uD;function nD(e,t){if(e&1&&Ce(0,"i",19)(1,"i",20),e&2){let r=or().$implicit;L(),vr("opacity",r.matterSerialNumber?"1":"0.25")}}function iD(e,t){e&1&&Ce(0,"i",16)}function fD(e,t){if(e&1&&(U(0,"li",9)(1,"span",15),gr(2,nD,2,2)(3,iD,1,0,"i",16),X(),U(4,"span",17),ue(5),Ce(6,"br"),U(7,"small",18),ue(8),X()()()),e&2){let r=t.$implicit,o=or();L(2),hr(o.isMatterSupported?2:3),L(3),Re(" ",r.name),L(3),Me(r.username)}}var iC=(()=>{class e{$activeModal=Ae(ht);$api=Ae(Tr);$settings=Ae(Or);$toastr=Ae(Sr);$translate=Ae(_r);isMatterSupported=this.$settings.isFeatureEnabled("matterSupport");bridges=[];onRestartChildBridgeClick(){return Er(this,null,function*(){try{for(let r of this.bridges)yield xr(this.$api.put(`/server/restart/${r.username}`,{}));this.$toastr.success(this.$translate.instant("plugins.manage.child_bridge_restart"),this.$translate.instant("toast.title_success"))}catch(r){console.error(r),this.$toastr.error(this.$translate.instant("plugins.manage.child_bridge_restart_failed"),this.$translate.instant("toast.title_error"))}finally{this.$activeModal.close()}})}dismissModal(){this.$activeModal.dismiss("Dismiss")}static \u0275fac=function(o){return new(o||e)};static \u0275cmp=gt({type:e,selectors:[["ng-component"]],inputs:{bridges:"bridges"},decls:27,vars:18,consts:[[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],["type","button","data-bs-dismiss","modal",1,"btn-close",3,"click"],[1,"modal-body","text-center"],[1,"fas","fa-power-off","primary-text","mb-3",2,"font-size","75px"],[1,"w-100"],[1,"text-center"],[1,"list-group","list-group-box","mb-0","w-75","mx-auto"],[1,"list-group-item","d-flex","justify-content-between","align-items-center"],[1,"modal-footer","justify-content-between"],[1,"text-start"],["type","button","data-bs-dismiss","modal",1,"btn","btn-elegant",3,"click"],[1,"text-end"],["type","button",1,"btn","btn-primary",3,"click"],[1,"me-3"],[1,"fas","fa-hap"],[1,"flex-grow-1","text-start"],[1,"grey-text","font-monospace"],[1,"fas","fa-lg","fa-hap","me-2"],[1,"fas","fa-lg","fa-matter"]],template:function(o,f){o&1&&(U(0,"div",0)(1,"div",1)(2,"h5",2),ue(3),Q(4,"translate"),X(),U(5,"button",3),Q(6,"translate"),ye("click",function(){return f.dismissModal()}),X()(),U(7,"div",4),Ce(8,"i",5),U(9,"p",6),ue(10),Q(11,"translate"),X(),U(12,"div",7)(13,"ul",8),br(14,fD,9,3,"li",9,Br),X()()(),U(16,"div",10)(17,"div",11)(18,"button",12),Q(19,"translate"),ye("click",function(){return f.dismissModal()}),ue(20),Q(21,"translate"),X()(),Ce(22,"div",7),U(23,"div",13)(24,"button",14),ye("click",function(){return f.onRestartChildBridgeClick()}),ue(25),Q(26,"translate"),X()()()()),o&2&&(L(3),Me(k(4,6,"platform.version.service_restart_required")),L(2),Ve("aria-label",k(6,8,"form.button_close")),L(5),Me(k(11,10,"restart.child_bridge_list")),L(4),yr(f.bridges),L(4),Ve("aria-label",k(19,12,"form.button_close")),L(2),Re(" ",k(21,14,"form.button_close")," "),L(5),Re(" ",k(26,16,"menu.tooltip_restart")," "))},dependencies:[Bt],encapsulation:2})}return e})();var cC=(()=>{class e{$activeModal=Ae(ht);$router=Ae(wr);onRestartHomebridgeClick(){this.$router.navigate(["/restart"]),this.$activeModal.close()}dismissModal(){this.$activeModal.dismiss("Dismiss")}static \u0275fac=function(o){return new(o||e)};static \u0275cmp=gt({type:e,selectors:[["ng-component"]],decls:23,vars:18,consts:[[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],["type","button","data-bs-dismiss","modal",1,"btn-close",3,"click"],[1,"modal-body","text-center"],[1,"fas","fa-power-off","primary-text","mb-3",2,"font-size","75px"],[1,"mb-0"],[1,"modal-footer","justify-content-between"],[1,"text-start"],["type","button","data-bs-dismiss","modal",1,"btn","btn-elegant",3,"click"],[1,"text-center"],[1,"text-end"],["type","button",1,"btn","btn-primary",3,"click"]],template:function(o,f){o&1&&(U(0,"div",0)(1,"div",1)(2,"h5",2),ue(3),Q(4,"translate"),X(),U(5,"button",3),Q(6,"translate"),ye("click",function(){return f.dismissModal()}),X()(),U(7,"div",4),Ce(8,"i",5),U(9,"p",6),ue(10),Q(11,"translate"),X()(),U(12,"div",7)(13,"div",8)(14,"button",9),Q(15,"translate"),ye("click",function(){return f.dismissModal()}),ue(16),Q(17,"translate"),X()(),Ce(18,"div",10),U(19,"div",11)(20,"button",12),ye("click",function(){return f.onRestartHomebridgeClick()}),ue(21),Q(22,"translate"),X()()()()),o&2&&(L(3),Me(k(4,6,"platform.version.service_restart_required")),L(2),Ve("aria-label",k(6,8,"form.button_close")),L(5),Me(k(11,10,"plugins.settings.restart_required")),L(4),Ve("aria-label",k(15,12,"form.button_close")),L(2),Re(" ",k(17,14,"form.button_close")," "),L(5),Re(" ",k(22,16,"menu.tooltip_restart")," "))},dependencies:[Bt],encapsulation:2})}return e})();function CC(e,{isDebugModeEnabled:t,isMatterSupported:r,isPlatformPlugin:o=!0}){return{type:"object",required:["username"],additionalProperties:!1,title:e.instant("child_bridge.bridge_settings"),properties:ur(Fr(ur({username:{type:"string",title:e.instant("users.label_username"),description:`The child bridge username must be 6 pairs of colon-separated hexadecimal characters (A-F 0-9).
|
|
15
15
|
Example: 0E:89:49:64:91:86.`,pattern:"^([A-Fa-f0-9]{2}:){5}[A-Fa-f0-9]{2}$"},port:{type:"number",title:e.instant("accessories.bridge_port"),description:"The port the child bridge listens on.",minimum:1025,maximum:65534},pin:{type:"string",title:"Bridge PIN",description:`The child bridge pin.
|
|
16
|
-
Example: 630-27-655.`,pattern:"^([0-9]{3}-[0-9]{2}-[0-9]{3})$"},name:{type:"string",title:e.instant("child_bridge.config.name"),description:"The name of the child bridge.",maxLength:64},manufacturer:{type:"string",title:e.instant("child_bridge.config.manufacturer"),description:"The child bridge manufacturer to be displayed in HomeKit.",maxLength:32},firmwareRevision:{type:"string",title:e.instant("child_bridge.config.firmware"),description:"The child bridge firmware version to be displayed in HomeKit.",maxLength:64},model:{type:"string",title:e.instant("child_bridge.config.model"),description:"The child bridge model to be displayed in HomeKit.",maxLength:32}},t?{debugModeEnabled:{type:"boolean",title:"Debug Mode",description:"Enable verbose logging for debugging."}}:{}),{env:{type:"object",title:"Environment Variables",description:"Environment variables to set for this child bridge.",properties:{DEBUG:{type:"string",title:"DEBUG",description:e.instant("settings.service.debug_tooltip")},NODE_OPTIONS:{type:"string",title:"NODE_OPTIONS",description:e.instant("settings.service.node_tooltip")}}}}),r?{matter:{type:"object",additionalProperties:!1,title:e.instant("settings.matter.title"),description:"Matter-specific configuration for this child bridge.",properties:{port:{type:"number",title:e.instant("settings.matter.port"),description:e.instant("settings.matter.port_desc"),minimum:1025,maximum:65534}}}}:{})}}export{zs as a,Uf as b,tD as c,oD as d,iC as e,cC as f,sD as g,CC as h};
|
|
16
|
+
Example: 630-27-655.`,pattern:"^([0-9]{3}-[0-9]{2}-[0-9]{3})$"},name:{type:"string",title:e.instant("child_bridge.config.name"),description:"The name of the child bridge.",maxLength:64},manufacturer:{type:"string",title:e.instant("child_bridge.config.manufacturer"),description:"The child bridge manufacturer to be displayed in HomeKit.",maxLength:32},firmwareRevision:{type:"string",title:e.instant("child_bridge.config.firmware"),description:"The child bridge firmware version to be displayed in HomeKit.",maxLength:64},model:{type:"string",title:e.instant("child_bridge.config.model"),description:"The child bridge model to be displayed in HomeKit.",maxLength:32}},t?{debugModeEnabled:{type:"boolean",title:"Debug Mode",description:"Enable verbose logging for debugging."}}:{}),{env:{type:"object",title:"Environment Variables",description:"Environment variables to set for this child bridge.",properties:{DEBUG:{type:"string",title:"DEBUG",description:e.instant("settings.service.debug_tooltip")},NODE_OPTIONS:{type:"string",title:"NODE_OPTIONS",description:e.instant("settings.service.node_tooltip")}}}}),r&&o?{matter:{type:"object",additionalProperties:!1,title:e.instant("settings.matter.title"),description:"Matter-specific configuration for this child bridge.",properties:{port:{type:"number",title:e.instant("settings.matter.port"),description:e.instant("settings.matter.port_desc"),minimum:1025,maximum:65534}}}}:{})}}export{zs as a,Uf as b,tD as c,oD as d,iC as e,cC as f,sD as g,CC as h};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as r}from"./chunk-NKVA4YGF.js";import{eb as e,ja as t}from"./chunk-YYORCSG2.js";var u=[{path:"",loadComponent:()=>import("./chunk-
|
|
1
|
+
import{h as r}from"./chunk-NKVA4YGF.js";import{eb as e,ja as t}from"./chunk-YYORCSG2.js";var u=[{path:"",loadComponent:()=>import("./chunk-4KHHJ6O7.js").then(o=>o.LogsComponent)}],n=(()=>{class o{static \u0275fac=function(i){return new(i||o)};static \u0275mod=e({type:o});static \u0275inj=t({imports:[r.forChild(u),r]})}return o})();var p=(()=>{class o{static \u0275fac=function(i){return new(i||o)};static \u0275mod=e({type:o});static \u0275inj=t({imports:[n]})}return o})();export{p as LogsModule};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as N}from"./chunk-
|
|
1
|
+
import{a as N}from"./chunk-QZT56NRO.js";import"./chunk-O6NBNFQY.js";import{a as P}from"./chunk-BIXWXEEW.js";import{a as h}from"./chunk-BZVVKWVW.js";import{n as z,t as D}from"./chunk-PELXH4TO.js";import"./chunk-YLFJH4ZN.js";import"./chunk-OJML56DH.js";import{b as M}from"./chunk-7DDNZGBS.js";import{b as H}from"./chunk-CMUJLMKB.js";import{k as E,l as A,n as F,q as V}from"./chunk-S6PCNWMK.js";import{$b as B,Cc as k,Ib as T,Lb as p,Nb as b,Pa as $,Qa as l,Ub as L,Vb as S,_b as I,db as y,g as O,h as v,n as w,na as o,pb as u,qb as x,rb as C,rc as s,sa as d,sc as a,ta as g,wb as f,xb as c,yb as r,zb as m}from"./chunk-YYORCSG2.js";var j=O(P(),1);var Q=["logoutput"];function W(i,R){if(i&1){let t=T();c(0,"div",4)(1,"button",7),s(2,"translate"),s(3,"translate"),p("click",function(){d(t);let n=b();return g(n.downloadLogFile())}),m(4,"i",8),r(),c(5,"button",9),s(6,"translate"),s(7,"translate"),p("click",function(){d(t);let n=b();return g(n.truncateLogFile())}),m(8,"i",10),r()()}i&2&&(l(),f("openDelay",150)("ngbTooltip",a(2,6,"form.button_download")),u("aria-label",a(3,8,"form.button_download")),l(4),f("openDelay",150)("ngbTooltip",a(6,10,"form.button_delete")),u("aria-label",a(7,12,"form.button_delete")))}var st=(()=>{class i{$api=o(V);$auth=o(M);$log=o(N);$modal=o(z);$settings=o(H);$toastr=o(F);$translate=o(E);termTarget=k("logoutput");resizeEvent=new w;isAdmin=this.$auth.user.admin;onWindowResize(){this.resizeEvent.next(void 0)}ngOnInit(){let t=this.$translate.instant("menu.linux.label_logs");this.$settings.setPageTitle(t),window.document.querySelector("body").classList.add("bg-black"),this.$log.startTerminal(this.termTarget(),{allowProposedApi:!0},this.resizeEvent)}ngOnDestroy(){window.document.querySelector("body").classList.remove("bg-black"),this.$log.destroyTerminal()}downloadLogFile(){let t=this.$modal.open(h,{size:"lg",backdrop:"static"});t.componentInstance.title=this.$translate.instant("logs.title_download_log_file"),t.componentInstance.message=this.$translate.instant("logs.download_warning"),t.componentInstance.confirmButtonLabel=this.$translate.instant("form.button_download"),t.componentInstance.faIconClass="fas fa-user-secret primary-text",t.result.then(()=>{this.$api.get("/platform-tools/hb-service/log/download",{observe:"response",responseType:"blob"}).subscribe({next:e=>{(0,j.saveAs)(e.body,"homebridge.log.txt")},error:e=>v(this,null,function*(){let n;try{n=JSON.parse(yield e.error.text()).message}catch(_){console.error(_)}this.$toastr.error(n||this.$translate.instant("logs.download.error"),this.$translate.instant("toast.title_error"))})})}).catch(()=>{})}truncateLogFile(){let t=this.$modal.open(h,{size:"lg",backdrop:"static"});t.componentInstance.title=this.$translate.instant("logs.title_truncate_log_file"),t.componentInstance.message=this.$translate.instant("logs.truncate_log_warning"),t.componentInstance.confirmButtonLabel=this.$translate.instant("form.button_delete"),t.componentInstance.confirmButtonClass="btn-danger",t.componentInstance.faIconClass="fas fa-circle-exclamation primary-text",t.result.then(()=>{this.$api.put("/platform-tools/hb-service/log/truncate",{}).subscribe({next:()=>{this.$toastr.success(this.$translate.instant("logs.log_file_truncated"),this.$translate.instant("toast.title_success")),this.$log.term.clear()},error:e=>{console.error(e),this.$toastr.error(e.error?.message||this.$translate.instant("logs.truncate.error"),this.$translate.instant("toast.title_error"))}})}).catch(()=>{})}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=y({type:i,selectors:[["ng-component"]],viewQuery:function(e,n){e&1&&L(n.termTarget,Q,5),e&2&&S()},hostBindings:function(e,n){e&1&&p("resize",function(q){return n.onWindowResize(q)},$)},decls:9,vars:4,consts:[["logoutput",""],[1,"row","mb-3"],[1,"col-6"],[1,"primary-text","m-0"],[1,"col-6","text-end"],[1,"flex-column","d-flex","align-items-stretch","adjust-for-mobile"],["id","log-output",1,"align-self-end","w-100","h-100","mb-1"],["container","body","placement","bottom","triggers","hover",1,"btn","btn-elegant","my-0","me-2",3,"click","openDelay","ngbTooltip"],[1,"fas","fa-download"],["container","body","placement","bottom","triggers","hover",1,"btn","btn-elegant","my-0","me-0",3,"click","openDelay","ngbTooltip"],[1,"fas","fa-trash-alt"]],template:function(e,n){e&1&&(c(0,"div",1)(1,"div",2)(2,"h3",3),I(3),s(4,"translate"),r()(),x(5,W,9,14,"div",4),r(),c(6,"div",5),m(7,"div",6,0),r()),e&2&&(l(3),B(a(4,2,"menu.linux.label_logs")),l(2),C(n.isAdmin?5:-1))},dependencies:[D,A],encapsulation:2})}return i})();export{st as LogsComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as G}from"./chunk-TUN7H57E.js";import{b as j}from"./chunk-4OKB7AUD.js";import{a as J}from"./chunk-N2LRAUVZ.js";import{a as Q}from"./chunk-Y7FUFGRH.js";import{a as te}from"./chunk-Q433GZ7T.js";import"./chunk-J6Q2DPRL.js";import{a as X}from"./chunk-XFXDPVAB.js";import{n as L}from"./chunk-PELXH4TO.js";import"./chunk-YLFJH4ZN.js";import{a as R}from"./chunk-G5WDJTJP.js";import{b as B}from"./chunk-5QQZMCII.js";import{a as q,b as N,d as W,e as V,f as D,g as H}from"./chunk-NKVA4YGF.js";import{b as A}from"./chunk-E2XEMZG2.js";import{k as $,l as U,p as T}from"./chunk-IYDZECG4.js";import{$b as h,Ib as S,Lb as _,Nb as x,Qa as n,Qc as E,Za as F,_b as g,bd as K,db as O,g as ee,h as P,kc as v,lc as M,na as m,pb as u,qb as w,rb as y,rc as d,sa as b,sc as l,ta as C,wb as c,x as z,xb as i,yb as s,zb as p}from"./chunk-YYORCSG2.js";var Z=ee(te(),1);var I=()=>["/"],ne=o=>({"hamburger-icon-cross":o}),oe=o=>({expanded:o}),re=()=>({exact:!0}),ae=()=>["/plugins"],se=()=>["/accessories"],de=()=>["/logs"],le=()=>["/support"],pe=()=>["/platform-tools/terminal"],ce=()=>["/config"],me=()=>["/settings"],ue=()=>["/power-options"];function _e(o,k){if(o&1){let e=S();i(0,"div",10)(1,"div",20),d(2,"translate"),d(3,"translate"),_("click",function(){b(e);let t=x();return C(t.openUnderVoltageModal())})("keydown",function(t){b(e);let r=x();return C(r.handleKeydown(t))}),i(4,"div",12),p(5,"i",21),s(),i(6,"div",14),g(7),d(8,"translate"),s()()()}o&2&&(n(),u("aria-label",l(2,2,"rpi.throttled.undervoltage_title")+" - "+l(3,4,"rpi.throttled.undervoltage_description")),n(6),h(l(8,6,"rpi.throttled.undervoltage_title")))}function ge(o,k){if(o&1){let e=S();i(0,"div",10)(1,"div",15),d(2,"translate"),_("keydown",function(t){b(e);let r=x();return C(r.handleKeydown(t))}),i(3,"div",12),p(4,"i",22),s(),i(5,"div",14),g(6),d(7,"translate"),s()()()}o&2&&(n(),c("routerLink",v(8,pe))("routerLinkActive","active"),u("aria-label",l(2,4,"menu.linux.label_terminal")),n(5),h(l(7,6,"menu.linux.label_terminal")))}function fe(o,k){if(o&1){let e=S();i(0,"div",10)(1,"div",15),d(2,"translate"),_("keydown",function(t){b(e);let r=x();return C(r.handleKeydown(t))}),i(3,"div",12),p(4,"i",23),s(),i(5,"div",14),g(6),d(7,"translate"),s()()()}o&2&&(n(),c("routerLink",v(8,ce))("routerLinkActive","active"),u("aria-label",l(2,4,"menu.config_json_editor")),n(5),h(l(7,6,"menu.config_json_editor")))}function he(o,k){if(o&1){let e=S();i(0,"div",10)(1,"div",15),d(2,"translate"),_("keydown",function(t){b(e);let r=x();return C(r.handleKeydown(t))}),i(3,"div",12),p(4,"i",24),s(),i(5,"div",14),g(6),d(7,"translate"),s()()()}o&2&&(n(),c("routerLink",v(8,me))("routerLinkActive","active"),u("aria-label",l(2,4,"menu.label_settings")),n(5),h(l(7,6,"menu.label_settings")))}function ve(o,k){if(o&1){let e=S();i(0,"div",10)(1,"div",15),d(2,"translate"),_("keydown",function(t){b(e);let r=x();return C(r.handleKeydown(t))}),i(3,"div",12),p(4,"i",25),s(),i(5,"div",14),g(6),d(7,"translate"),s()()()}o&2&&(n(),c("routerLink",v(8,ue))("routerLinkActive","active"),u("aria-label",l(2,4,"menu.restart.title")),n(5),h(l(7,6,"menu.restart.title")))}function be(o,k){if(o&1){let e=S();i(0,"div",10)(1,"div",20),d(2,"translate"),_("click",function(){b(e);let t=x();return C(t.reloadPage())})("keydown",function(t){b(e);let r=x();return C(r.handleKeydown(t))}),i(3,"div",12),p(4,"i",26),s(),i(5,"div",14),g(6),d(7,"translate"),s()()()}o&2&&(n(),u("aria-label",l(2,2,"menu.reload")),n(5),h(l(7,4,"menu.reload")))}function Ce(o,k){if(o&1){let e=S();i(0,"div",10)(1,"div",20),d(2,"translate"),_("click",function(){b(e);let t=x();return C(t.logout())})("keydown",function(t){b(e);let r=x();return C(r.handleKeydown(t))}),i(3,"div",12),p(4,"i",27),s(),i(5,"div",14),g(6),d(7,"translate"),s()()()}o&2&&(n(),u("aria-label",l(2,2,"menu.tooltip_logout")),n(5),h(l(7,4,"menu.tooltip_logout")))}var Y=(()=>{class o{$auth=m(B);$authHelper=m(j);$settings=m(A);$modal=m(L);$notification=m(Q);$renderer=m(F);$router=m(V);$translate=m($);isExpanded=!1;formAuth=this.$settings.formAuth;isAdmin=this.$auth.user.admin;enableTerminalAccess=this.$settings.env.enableTerminalAccess;rPiCurrentlyUnderVoltage=!1;rPiWasUnderVoltage=!1;isMobile=!1;freezeMenu=!1;isPwa=G();constructor(){this.isMobile=window.innerWidth<768;let e;window.addEventListener("resize",()=>{clearTimeout(e),e=setTimeout(()=>{this.updateListeners()},500)}),this.$router.events.subscribe(a=>P(this,null,function*(){if(a instanceof q&&this.$settings.formAuth&&a.url!=="/login"&&!(yield this.$authHelper.isAuthenticated())){window.sessionStorage.setItem("target_route",a.url),yield this.$router.navigate(["/login"]);return}a instanceof N&&(this.closeSidebar(),this.freezeMenu=!0,setTimeout(()=>{this.freezeMenu=!1},750))}))}ngOnInit(){this.$notification.raspberryPiThrottled.subscribe(r=>{r["Under Voltage"]&&(this.rPiCurrentlyUnderVoltage=!0),r["Under-voltage has occurred"]&&(this.rPiWasUnderVoltage=!0)}),this.$notification.formAuthEnabled.subscribe(r=>{this.formAuth=r});let e=document.querySelector(".sidebar"),a=document.querySelector(".m-header"),t=document.querySelector(".content");this.isMobile?document.addEventListener("touchstart",r=>{if(t.contains(r.target)&&this.isExpanded){r.preventDefault(),this.toggleSidebar();return}!e.contains(r.target)&&!a.contains(r.target)&&this.isExpanded&&(r.preventDefault(),this.closeSidebar())},{passive:!1}):(this.updateListeners(),a.addEventListener("mouseenter",()=>this.openSidebar(),{passive:!1}),a.addEventListener("mouseleave",()=>this.closeSidebar(),{passive:!1}),document.addEventListener("click",r=>{e.contains(r.target)&&r.clientX>60&&this.closeSidebar()},{passive:!1})),this.updateContentStyles()}toggleSidebar(){this.freezeMenu||(this.isExpanded=!this.isExpanded,this.updateContentStyles())}openUnderVoltageModal(){let e=this.$modal.open(J,{size:"lg",backdrop:"static"});e.componentInstance.title=this.$translate.instant("rpi.throttled.undervoltage_title"),e.componentInstance.message=this.$translate.instant(this.rPiCurrentlyUnderVoltage?"rpi.throttled.currently_message":"rpi.throttled.previously_message"),e.componentInstance.ctaButtonLabel=this.$translate.instant("form.button_more_info"),e.componentInstance.faIconClass="fas fa-bolt yellow-text",e.componentInstance.ctaButtonLink="https://pimylifeup.com/raspberry-pi-low-voltage-warning"}handleKeydown(e){if(e.key==="Enter"){let a=e.target;["menuitem","button"].includes(a.getAttribute("role"))&&a.click()}}reloadPage(){window.location.reload()}ngOnDestroy(){document.removeEventListener("touchstart",()=>{}),document.removeEventListener("click",()=>{})}logout(){this.$auth.logout()}openSidebar(){this.freezeMenu||(this.isExpanded=!0,this.updateContentStyles())}closeSidebar(){this.freezeMenu||(this.isExpanded=!1,this.updateContentStyles())}updateContentStyles(){let e=document.querySelector(".content");this.isExpanded?(this.$renderer.setStyle(e,"opacity","20%"),this.$renderer.setStyle(e,"pointer-events","none"),this.$renderer.setStyle(e,"overflow","hidden")):(this.$renderer.removeStyle(e,"opacity"),this.$renderer.removeStyle(e,"pointer-events"),this.$renderer.removeStyle(e,"overflow"))}updateListeners(){this.isMobile=window.innerWidth<768;let e=document.querySelector(".sidebar");e.removeAllListeners(),(this.isMobile||!this.isMobile&&this.$settings.menuMode!=="freeze")&&(e.addEventListener("mouseenter",()=>this.openSidebar(),{passive:!1}),e.addEventListener("mouseleave",()=>this.closeSidebar(),{passive:!1}))}static \u0275fac=function(a){return new(a||o)};static \u0275cmp=O({type:o,selectors:[["app-sidebar"]],inputs:{isExpanded:"isExpanded"},decls:68,vars:75,consts:[["tabindex","0","role","button",1,"m-header","text-end",3,"click","keydown"],[1,"me-2","d-block","d-lg-none",2,"font-size","0.9rem","color","#dddddd"],[3,"routerLink"],["ngSrc","assets/homebridge-logo.svg","alt","HB Logo","height","35","width","35",2,"height","35px","width","35px"],[1,"hb-logo-text-mobile"],[1,"hamburger-icon",3,"ngClass"],["role","navigation","id","sidebar",1,"sidebar",3,"ngClass"],["tabindex","0","role","button",1,"header",3,"click","keydown"],[1,"hb-logo-text"],[1,"link-wrapper"],[1,"link"],["role","menuitem","tabindex","0",1,"link-row",3,"keydown","routerLink","routerLinkActive","routerLinkActiveOptions"],[1,"icon"],[1,"fa","fa-house"],[1,"title"],["role","menuitem","tabindex","0",1,"link-row",3,"keydown","routerLink","routerLinkActive"],[1,"fa","fa-plug"],[1,"fa","fa-lightbulb"],[1,"fa","fa-wave-square"],[1,"fa","fa-question-circle-o"],["role","menuitem","tabindex","0",1,"link-row",3,"click","keydown"],[1,"fas","fa-bolt","fa-beat","yellow-text",2,"--fa-beat-scale","1.5"],[1,"fa","fa-terminal"],[1,"fa","fa-code"],[1,"fa","fa-cog"],[1,"fa","fa-power-off"],[1,"fa","fa-refresh"],[1,"fa","fa-right-from-bracket"]],template:function(a,t){a&1&&(i(0,"div",0),d(1,"translate"),_("click",function(){return t.toggleSidebar()})("keydown",function(f){return t.handleKeydown(f)}),p(2,"span",1),i(3,"a",2),d(4,"translate"),p(5,"img",3),i(6,"div",4),g(7,"Homebridge"),s()(),i(8,"div",5),p(9,"span")(10,"span")(11,"span")(12,"span"),s()(),i(13,"div",6)(14,"div",7),_("click",function(){return t.toggleSidebar()})("keydown",function(f){return t.handleKeydown(f)}),i(15,"a",2),d(16,"translate"),p(17,"img",3),i(18,"div",8),g(19,"Homebridge"),s()()(),i(20,"div",9)(21,"div",10)(22,"div",11),d(23,"translate"),_("keydown",function(f){return t.handleKeydown(f)}),i(24,"div",12),p(25,"i",13),s(),i(26,"div",14),g(27),d(28,"translate"),s()()(),w(29,_e,9,8,"div",10),i(30,"div",10)(31,"div",15),d(32,"translate"),_("keydown",function(f){return t.handleKeydown(f)}),i(33,"div",12),p(34,"i",16),s(),i(35,"div",14),g(36),d(37,"translate"),s()()(),i(38,"div",10)(39,"div",15),d(40,"translate"),_("keydown",function(f){return t.handleKeydown(f)}),i(41,"div",12),p(42,"i",17),s(),i(43,"div",14),g(44),d(45,"translate"),s()()(),i(46,"div",10)(47,"div",15),d(48,"translate"),_("keydown",function(f){return t.handleKeydown(f)}),i(49,"div",12),p(50,"i",18),s(),i(51,"div",14),g(52),d(53,"translate"),s()()(),w(54,ge,8,9,"div",10),w(55,fe,8,9,"div",10),w(56,he,8,9,"div",10),i(57,"div",10)(58,"div",15),d(59,"translate"),_("keydown",function(f){return t.handleKeydown(f)}),i(60,"div",12),p(61,"i",19),s(),i(62,"div",14),g(63),d(64,"translate"),s()()(),w(65,ve,8,9,"div",10),w(66,be,8,6,"div",10),w(67,Ce,8,6,"div",10),s()()),a&2&&(u("aria-expanded",t.isExpanded?"true":"false")("aria-controls","sidebar")("aria-label",l(1,37,"menu.sidebar.aria_menu")),n(3),c("routerLink",v(63,I)),u("aria-label",l(4,39,"menu.label_status")),n(5),c("ngClass",M(64,ne,t.isExpanded)),n(5),c("ngClass",M(66,oe,t.isExpanded)),n(2),c("routerLink",v(68,I)),u("aria-label",l(16,41,"menu.label_status")),n(7),c("routerLink",v(69,I))("routerLinkActive","active")("routerLinkActiveOptions",v(70,re)),u("aria-label",l(23,43,"menu.label_status")),n(5),h(l(28,45,"menu.label_status")),n(2),y(t.rPiWasUnderVoltage||t.rPiCurrentlyUnderVoltage?29:-1),n(2),c("routerLink",v(71,ae))("routerLinkActive","active"),u("aria-label",l(32,47,"menu.label_plugins")),n(5),h(l(37,49,"menu.label_plugins")),n(3),c("routerLink",v(72,se))("routerLinkActive","active"),u("aria-label",l(40,51,"menu.label_accessories")),n(5),h(l(45,53,"menu.label_accessories")),n(3),c("routerLink",v(73,de))("routerLinkActive","active"),u("aria-label",l(48,55,"menu.linux.label_logs")),n(5),h(l(53,57,"menu.linux.label_logs")),n(2),y(t.enableTerminalAccess&&t.isAdmin?54:-1),n(),y(t.isAdmin?55:-1),n(),y(t.isAdmin?56:-1),n(2),c("routerLink",v(74,le))("routerLinkActive","active"),u("aria-label",l(59,59,"support.title")),n(5),h(l(64,61,"support.title")),n(2),y(t.isAdmin?65:-1),n(),y(t.isPwa?66:-1),n(),y(t.formAuth?67:-1))},dependencies:[D,K,E,H,U],styles:[".m-header[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:100%;height:65px;z-index:510;display:flex;align-items:center;padding-left:3px;padding-right:3px}.m-header[_ngcontent-%COMP%]:hover{cursor:pointer}@media (min-width: 768px){.m-header[_ngcontent-%COMP%]{display:none}}.sidebar[_ngcontent-%COMP%]{position:fixed;left:0;top:0;height:100vh;transition:.3s;width:60px;z-index:500}.sidebar[_ngcontent-%COMP%] .header[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;padding:15px 10px 15px 11px;font-size:.85rem}.sidebar[_ngcontent-%COMP%] .header[_ngcontent-%COMP%]:hover{cursor:pointer}.sidebar[_ngcontent-%COMP%] .link-wrapper[_ngcontent-%COMP%]{overflow-x:hidden;overflow-y:auto;max-height:calc(100vh - 80px)!important;scrollbar-width:thin}@media (max-width: 767px){.sidebar[_ngcontent-%COMP%] .link-wrapper[_ngcontent-%COMP%]{padding-bottom:60px}}.sidebar[_ngcontent-%COMP%] .link-wrapper[_ngcontent-%COMP%] .link[_ngcontent-%COMP%] .link-row[_ngcontent-%COMP%]{display:flex;align-items:center;padding:15px 10px;cursor:pointer;transition:.2s;font-size:17px}.sidebar[_ngcontent-%COMP%] .link-wrapper[_ngcontent-%COMP%] .link[_ngcontent-%COMP%] .link-row[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{flex:0 0 38px;display:flex;align-items:center;justify-content:center}.sidebar[_ngcontent-%COMP%] .link-wrapper[_ngcontent-%COMP%] .link[_ngcontent-%COMP%] .link-row[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{flex:1;transition:.3s;max-width:0;overflow:hidden;white-space:nowrap}@media (max-width: 767px){.sidebar[_ngcontent-%COMP%]{width:0}.sidebar[_ngcontent-%COMP%] .link-wrapper[_ngcontent-%COMP%]{display:none}}.sidebar.expanded[_ngcontent-%COMP%]{width:210px}@media (max-width: 767px){.sidebar.expanded[_ngcontent-%COMP%]{width:210px}.sidebar.expanded[_ngcontent-%COMP%] .link-wrapper[_ngcontent-%COMP%]{display:block}}.sidebar.expanded[_ngcontent-%COMP%] .link-wrapper[_ngcontent-%COMP%] .link[_ngcontent-%COMP%] .link-row[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{max-width:150px;padding-left:10px}.hamburger-icon[_ngcontent-%COMP%]{margin:-7px 0 0 25px}@media (min-width: 768px){.hb-logo-text[_ngcontent-%COMP%]{color:#fff;position:absolute;top:17px;font-size:22px;padding-left:3px}.sidebar.expanded[_ngcontent-%COMP%] .hb-logo-text[_ngcontent-%COMP%]{opacity:1;left:55px;transition:.3s}.sidebar[_ngcontent-%COMP%]:not(.expanded) .hb-logo-text[_ngcontent-%COMP%]{opacity:0;left:40px;transition:.3s}.hb-logo-text-mobile[_ngcontent-%COMP%], .hamburger-icon[_ngcontent-%COMP%]{display:none!important}}@media (max-width: 767px){.hb-logo-text[_ngcontent-%COMP%]{display:none!important}.hb-logo-text-mobile[_ngcontent-%COMP%]{color:#fff;position:absolute;top:17px;font-size:22px;padding-left:3px;opacity:1;left:55px}.hamburger-icon[_ngcontent-%COMP%]{position:absolute;right:10px;top:28px;width:30px;transform:rotate(0);transition:.5s ease-in-out;cursor:pointer}.hamburger-icon[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:block;position:absolute;height:2px;width:100%;background-color:#fff;border-radius:9px;opacity:1;left:0;transform:rotate(0);transition:.25s ease-in-out}.hamburger-icon[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(1){top:0}.hamburger-icon[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(2), .hamburger-icon[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(3){top:10px}.hamburger-icon[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(4){top:20px}.hamburger-icon-cross[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(1){top:10px;width:0;left:50%}.hamburger-icon-cross[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(2){transform:rotate(45deg)}.hamburger-icon-cross[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(3){transform:rotate(-45deg)}.hamburger-icon-cross[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(4){top:10px;width:0;left:50%}}"]})}return o})();var xe=o=>({sidebarExpanded:o}),Je=(()=>{class o{$auth=m(B);$modal=m(L);$router=m(V);$settings=m(A);$translate=m($);$ws=m(R);io;sidebarExpanded=!1;ngOnInit(){this.io=this.$ws.connectToNamespace("app"),this.io.socket.on("reconnect",()=>{this.$auth.checkToken()}),this.compareServerUiVersion()}compareServerUiVersion(){return P(this,null,function*(){if(this.$settings.settingsLoaded||(yield z(this.$settings.onSettingsLoaded)),!this.$router.url.endsWith("/restart")&&(0,Z.lt)(this.$settings.uiVersion,T.serverTarget)){console.log(`Server restart required. UI Version: ${T.serverTarget} - Server Version: ${this.$settings.uiVersion} `);let e=this.$modal.open(X,{size:"lg",backdrop:"static"});e.componentInstance.title=this.$translate.instant("platform.version.service_restart_required"),e.componentInstance.message=this.$translate.instant("platform.version.restart_required",{serverVersion:this.$settings.uiVersion,uiVersion:T.serverTarget}),e.componentInstance.confirmButtonLabel=this.$translate.instant("menu.tooltip_restart"),e.componentInstance.faIconClass="fas fa-power-off orange-text",e.result.then(()=>this.$router.navigate(["/restart"])).catch(()=>{})}})}static \u0275fac=function(a){return new(a||o)};static \u0275cmp=O({type:o,selectors:[["app-layout"]],decls:3,vars:4,consts:[[3,"isExpanded"],[1,"content","px-3","p-md-4",3,"ngClass"]],template:function(a,t){a&1&&(p(0,"app-sidebar",0),i(1,"div",1),p(2,"router-outlet"),s()),a&2&&(c("isExpanded",t.sidebarExpanded),n(),c("ngClass",M(2,xe,t.sidebarExpanded)))},dependencies:[Y,E,W],styles:[".content[_ngcontent-%COMP%]{margin-left:60px;transition:.3s;height:100%}@media (max-width: 767px){.content[_ngcontent-%COMP%]{margin-left:0;padding-top:85px!important}}@media (min-width: 768px){.content[_ngcontent-%COMP%]{height:100%}}a[_ngcontent-%COMP%]:hover{text-decoration:none!important}"]})}return o})();export{Je as LayoutComponent};
|
|
1
|
+
import{a as G}from"./chunk-TUN7H57E.js";import{b as j}from"./chunk-QLL4XJ6O.js";import{a as J}from"./chunk-XZQTI646.js";import{a as Q}from"./chunk-Y7FUFGRH.js";import{a as te}from"./chunk-Q433GZ7T.js";import"./chunk-J6Q2DPRL.js";import{a as X}from"./chunk-BZVVKWVW.js";import{n as L}from"./chunk-PELXH4TO.js";import"./chunk-YLFJH4ZN.js";import{a as R}from"./chunk-OJML56DH.js";import{b as B}from"./chunk-7DDNZGBS.js";import{a as q,b as N,d as W,e as V,f as D,g as H}from"./chunk-NKVA4YGF.js";import{b as A}from"./chunk-CMUJLMKB.js";import{k as $,l as U,p as T}from"./chunk-S6PCNWMK.js";import{$b as h,Ib as S,Lb as _,Nb as x,Qa as n,Qc as E,Za as F,_b as g,bd as K,db as O,g as ee,h as P,kc as v,lc as M,na as m,pb as u,qb as w,rb as y,rc as d,sa as b,sc as l,ta as C,wb as c,x as z,xb as i,yb as s,zb as p}from"./chunk-YYORCSG2.js";var Z=ee(te(),1);var I=()=>["/"],ne=o=>({"hamburger-icon-cross":o}),oe=o=>({expanded:o}),re=()=>({exact:!0}),ae=()=>["/plugins"],se=()=>["/accessories"],de=()=>["/logs"],le=()=>["/support"],pe=()=>["/platform-tools/terminal"],ce=()=>["/config"],me=()=>["/settings"],ue=()=>["/power-options"];function _e(o,k){if(o&1){let e=S();i(0,"div",10)(1,"div",20),d(2,"translate"),d(3,"translate"),_("click",function(){b(e);let t=x();return C(t.openUnderVoltageModal())})("keydown",function(t){b(e);let r=x();return C(r.handleKeydown(t))}),i(4,"div",12),p(5,"i",21),s(),i(6,"div",14),g(7),d(8,"translate"),s()()()}o&2&&(n(),u("aria-label",l(2,2,"rpi.throttled.undervoltage_title")+" - "+l(3,4,"rpi.throttled.undervoltage_description")),n(6),h(l(8,6,"rpi.throttled.undervoltage_title")))}function ge(o,k){if(o&1){let e=S();i(0,"div",10)(1,"div",15),d(2,"translate"),_("keydown",function(t){b(e);let r=x();return C(r.handleKeydown(t))}),i(3,"div",12),p(4,"i",22),s(),i(5,"div",14),g(6),d(7,"translate"),s()()()}o&2&&(n(),c("routerLink",v(8,pe))("routerLinkActive","active"),u("aria-label",l(2,4,"menu.linux.label_terminal")),n(5),h(l(7,6,"menu.linux.label_terminal")))}function fe(o,k){if(o&1){let e=S();i(0,"div",10)(1,"div",15),d(2,"translate"),_("keydown",function(t){b(e);let r=x();return C(r.handleKeydown(t))}),i(3,"div",12),p(4,"i",23),s(),i(5,"div",14),g(6),d(7,"translate"),s()()()}o&2&&(n(),c("routerLink",v(8,ce))("routerLinkActive","active"),u("aria-label",l(2,4,"menu.config_json_editor")),n(5),h(l(7,6,"menu.config_json_editor")))}function he(o,k){if(o&1){let e=S();i(0,"div",10)(1,"div",15),d(2,"translate"),_("keydown",function(t){b(e);let r=x();return C(r.handleKeydown(t))}),i(3,"div",12),p(4,"i",24),s(),i(5,"div",14),g(6),d(7,"translate"),s()()()}o&2&&(n(),c("routerLink",v(8,me))("routerLinkActive","active"),u("aria-label",l(2,4,"menu.label_settings")),n(5),h(l(7,6,"menu.label_settings")))}function ve(o,k){if(o&1){let e=S();i(0,"div",10)(1,"div",15),d(2,"translate"),_("keydown",function(t){b(e);let r=x();return C(r.handleKeydown(t))}),i(3,"div",12),p(4,"i",25),s(),i(5,"div",14),g(6),d(7,"translate"),s()()()}o&2&&(n(),c("routerLink",v(8,ue))("routerLinkActive","active"),u("aria-label",l(2,4,"menu.restart.title")),n(5),h(l(7,6,"menu.restart.title")))}function be(o,k){if(o&1){let e=S();i(0,"div",10)(1,"div",20),d(2,"translate"),_("click",function(){b(e);let t=x();return C(t.reloadPage())})("keydown",function(t){b(e);let r=x();return C(r.handleKeydown(t))}),i(3,"div",12),p(4,"i",26),s(),i(5,"div",14),g(6),d(7,"translate"),s()()()}o&2&&(n(),u("aria-label",l(2,2,"menu.reload")),n(5),h(l(7,4,"menu.reload")))}function Ce(o,k){if(o&1){let e=S();i(0,"div",10)(1,"div",20),d(2,"translate"),_("click",function(){b(e);let t=x();return C(t.logout())})("keydown",function(t){b(e);let r=x();return C(r.handleKeydown(t))}),i(3,"div",12),p(4,"i",27),s(),i(5,"div",14),g(6),d(7,"translate"),s()()()}o&2&&(n(),u("aria-label",l(2,2,"menu.tooltip_logout")),n(5),h(l(7,4,"menu.tooltip_logout")))}var Y=(()=>{class o{$auth=m(B);$authHelper=m(j);$settings=m(A);$modal=m(L);$notification=m(Q);$renderer=m(F);$router=m(V);$translate=m($);isExpanded=!1;formAuth=this.$settings.formAuth;isAdmin=this.$auth.user.admin;enableTerminalAccess=this.$settings.env.enableTerminalAccess;rPiCurrentlyUnderVoltage=!1;rPiWasUnderVoltage=!1;isMobile=!1;freezeMenu=!1;isPwa=G();constructor(){this.isMobile=window.innerWidth<768;let e;window.addEventListener("resize",()=>{clearTimeout(e),e=setTimeout(()=>{this.updateListeners()},500)}),this.$router.events.subscribe(a=>P(this,null,function*(){if(a instanceof q&&this.$settings.formAuth&&a.url!=="/login"&&!(yield this.$authHelper.isAuthenticated())){window.sessionStorage.setItem("target_route",a.url),yield this.$router.navigate(["/login"]);return}a instanceof N&&(this.closeSidebar(),this.freezeMenu=!0,setTimeout(()=>{this.freezeMenu=!1},750))}))}ngOnInit(){this.$notification.raspberryPiThrottled.subscribe(r=>{r["Under Voltage"]&&(this.rPiCurrentlyUnderVoltage=!0),r["Under-voltage has occurred"]&&(this.rPiWasUnderVoltage=!0)}),this.$notification.formAuthEnabled.subscribe(r=>{this.formAuth=r});let e=document.querySelector(".sidebar"),a=document.querySelector(".m-header"),t=document.querySelector(".content");this.isMobile?document.addEventListener("touchstart",r=>{if(t.contains(r.target)&&this.isExpanded){r.preventDefault(),this.toggleSidebar();return}!e.contains(r.target)&&!a.contains(r.target)&&this.isExpanded&&(r.preventDefault(),this.closeSidebar())},{passive:!1}):(this.updateListeners(),a.addEventListener("mouseenter",()=>this.openSidebar(),{passive:!1}),a.addEventListener("mouseleave",()=>this.closeSidebar(),{passive:!1}),document.addEventListener("click",r=>{e.contains(r.target)&&r.clientX>60&&this.closeSidebar()},{passive:!1})),this.updateContentStyles()}toggleSidebar(){this.freezeMenu||(this.isExpanded=!this.isExpanded,this.updateContentStyles())}openUnderVoltageModal(){let e=this.$modal.open(J,{size:"lg",backdrop:"static"});e.componentInstance.title=this.$translate.instant("rpi.throttled.undervoltage_title"),e.componentInstance.message=this.$translate.instant(this.rPiCurrentlyUnderVoltage?"rpi.throttled.currently_message":"rpi.throttled.previously_message"),e.componentInstance.ctaButtonLabel=this.$translate.instant("form.button_more_info"),e.componentInstance.faIconClass="fas fa-bolt yellow-text",e.componentInstance.ctaButtonLink="https://pimylifeup.com/raspberry-pi-low-voltage-warning"}handleKeydown(e){if(e.key==="Enter"){let a=e.target;["menuitem","button"].includes(a.getAttribute("role"))&&a.click()}}reloadPage(){window.location.reload()}ngOnDestroy(){document.removeEventListener("touchstart",()=>{}),document.removeEventListener("click",()=>{})}logout(){this.$auth.logout()}openSidebar(){this.freezeMenu||(this.isExpanded=!0,this.updateContentStyles())}closeSidebar(){this.freezeMenu||(this.isExpanded=!1,this.updateContentStyles())}updateContentStyles(){let e=document.querySelector(".content");this.isExpanded?(this.$renderer.setStyle(e,"opacity","20%"),this.$renderer.setStyle(e,"pointer-events","none"),this.$renderer.setStyle(e,"overflow","hidden")):(this.$renderer.removeStyle(e,"opacity"),this.$renderer.removeStyle(e,"pointer-events"),this.$renderer.removeStyle(e,"overflow"))}updateListeners(){this.isMobile=window.innerWidth<768;let e=document.querySelector(".sidebar");e.removeAllListeners(),(this.isMobile||!this.isMobile&&this.$settings.menuMode!=="freeze")&&(e.addEventListener("mouseenter",()=>this.openSidebar(),{passive:!1}),e.addEventListener("mouseleave",()=>this.closeSidebar(),{passive:!1}))}static \u0275fac=function(a){return new(a||o)};static \u0275cmp=O({type:o,selectors:[["app-sidebar"]],inputs:{isExpanded:"isExpanded"},decls:68,vars:75,consts:[["tabindex","0","role","button",1,"m-header","text-end",3,"click","keydown"],[1,"me-2","d-block","d-lg-none",2,"font-size","0.9rem","color","#dddddd"],[3,"routerLink"],["ngSrc","assets/homebridge-logo.svg","alt","HB Logo","height","35","width","35",2,"height","35px","width","35px"],[1,"hb-logo-text-mobile"],[1,"hamburger-icon",3,"ngClass"],["role","navigation","id","sidebar",1,"sidebar",3,"ngClass"],["tabindex","0","role","button",1,"header",3,"click","keydown"],[1,"hb-logo-text"],[1,"link-wrapper"],[1,"link"],["role","menuitem","tabindex","0",1,"link-row",3,"keydown","routerLink","routerLinkActive","routerLinkActiveOptions"],[1,"icon"],[1,"fa","fa-house"],[1,"title"],["role","menuitem","tabindex","0",1,"link-row",3,"keydown","routerLink","routerLinkActive"],[1,"fa","fa-plug"],[1,"fa","fa-lightbulb"],[1,"fa","fa-wave-square"],[1,"fa","fa-question-circle-o"],["role","menuitem","tabindex","0",1,"link-row",3,"click","keydown"],[1,"fas","fa-bolt","fa-beat","yellow-text",2,"--fa-beat-scale","1.5"],[1,"fa","fa-terminal"],[1,"fa","fa-code"],[1,"fa","fa-cog"],[1,"fa","fa-power-off"],[1,"fa","fa-refresh"],[1,"fa","fa-right-from-bracket"]],template:function(a,t){a&1&&(i(0,"div",0),d(1,"translate"),_("click",function(){return t.toggleSidebar()})("keydown",function(f){return t.handleKeydown(f)}),p(2,"span",1),i(3,"a",2),d(4,"translate"),p(5,"img",3),i(6,"div",4),g(7,"Homebridge"),s()(),i(8,"div",5),p(9,"span")(10,"span")(11,"span")(12,"span"),s()(),i(13,"div",6)(14,"div",7),_("click",function(){return t.toggleSidebar()})("keydown",function(f){return t.handleKeydown(f)}),i(15,"a",2),d(16,"translate"),p(17,"img",3),i(18,"div",8),g(19,"Homebridge"),s()()(),i(20,"div",9)(21,"div",10)(22,"div",11),d(23,"translate"),_("keydown",function(f){return t.handleKeydown(f)}),i(24,"div",12),p(25,"i",13),s(),i(26,"div",14),g(27),d(28,"translate"),s()()(),w(29,_e,9,8,"div",10),i(30,"div",10)(31,"div",15),d(32,"translate"),_("keydown",function(f){return t.handleKeydown(f)}),i(33,"div",12),p(34,"i",16),s(),i(35,"div",14),g(36),d(37,"translate"),s()()(),i(38,"div",10)(39,"div",15),d(40,"translate"),_("keydown",function(f){return t.handleKeydown(f)}),i(41,"div",12),p(42,"i",17),s(),i(43,"div",14),g(44),d(45,"translate"),s()()(),i(46,"div",10)(47,"div",15),d(48,"translate"),_("keydown",function(f){return t.handleKeydown(f)}),i(49,"div",12),p(50,"i",18),s(),i(51,"div",14),g(52),d(53,"translate"),s()()(),w(54,ge,8,9,"div",10),w(55,fe,8,9,"div",10),w(56,he,8,9,"div",10),i(57,"div",10)(58,"div",15),d(59,"translate"),_("keydown",function(f){return t.handleKeydown(f)}),i(60,"div",12),p(61,"i",19),s(),i(62,"div",14),g(63),d(64,"translate"),s()()(),w(65,ve,8,9,"div",10),w(66,be,8,6,"div",10),w(67,Ce,8,6,"div",10),s()()),a&2&&(u("aria-expanded",t.isExpanded?"true":"false")("aria-controls","sidebar")("aria-label",l(1,37,"menu.sidebar.aria_menu")),n(3),c("routerLink",v(63,I)),u("aria-label",l(4,39,"menu.label_status")),n(5),c("ngClass",M(64,ne,t.isExpanded)),n(5),c("ngClass",M(66,oe,t.isExpanded)),n(2),c("routerLink",v(68,I)),u("aria-label",l(16,41,"menu.label_status")),n(7),c("routerLink",v(69,I))("routerLinkActive","active")("routerLinkActiveOptions",v(70,re)),u("aria-label",l(23,43,"menu.label_status")),n(5),h(l(28,45,"menu.label_status")),n(2),y(t.rPiWasUnderVoltage||t.rPiCurrentlyUnderVoltage?29:-1),n(2),c("routerLink",v(71,ae))("routerLinkActive","active"),u("aria-label",l(32,47,"menu.label_plugins")),n(5),h(l(37,49,"menu.label_plugins")),n(3),c("routerLink",v(72,se))("routerLinkActive","active"),u("aria-label",l(40,51,"menu.label_accessories")),n(5),h(l(45,53,"menu.label_accessories")),n(3),c("routerLink",v(73,de))("routerLinkActive","active"),u("aria-label",l(48,55,"menu.linux.label_logs")),n(5),h(l(53,57,"menu.linux.label_logs")),n(2),y(t.enableTerminalAccess&&t.isAdmin?54:-1),n(),y(t.isAdmin?55:-1),n(),y(t.isAdmin?56:-1),n(2),c("routerLink",v(74,le))("routerLinkActive","active"),u("aria-label",l(59,59,"support.title")),n(5),h(l(64,61,"support.title")),n(2),y(t.isAdmin?65:-1),n(),y(t.isPwa?66:-1),n(),y(t.formAuth?67:-1))},dependencies:[D,K,E,H,U],styles:[".m-header[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:100%;height:65px;z-index:510;display:flex;align-items:center;padding-left:3px;padding-right:3px}.m-header[_ngcontent-%COMP%]:hover{cursor:pointer}@media (min-width: 768px){.m-header[_ngcontent-%COMP%]{display:none}}.sidebar[_ngcontent-%COMP%]{position:fixed;left:0;top:0;height:100vh;transition:.3s;width:60px;z-index:500}.sidebar[_ngcontent-%COMP%] .header[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;padding:15px 10px 15px 11px;font-size:.85rem}.sidebar[_ngcontent-%COMP%] .header[_ngcontent-%COMP%]:hover{cursor:pointer}.sidebar[_ngcontent-%COMP%] .link-wrapper[_ngcontent-%COMP%]{overflow-x:hidden;overflow-y:auto;max-height:calc(100vh - 80px)!important;scrollbar-width:thin}@media (max-width: 767px){.sidebar[_ngcontent-%COMP%] .link-wrapper[_ngcontent-%COMP%]{padding-bottom:60px}}.sidebar[_ngcontent-%COMP%] .link-wrapper[_ngcontent-%COMP%] .link[_ngcontent-%COMP%] .link-row[_ngcontent-%COMP%]{display:flex;align-items:center;padding:15px 10px;cursor:pointer;transition:.2s;font-size:17px}.sidebar[_ngcontent-%COMP%] .link-wrapper[_ngcontent-%COMP%] .link[_ngcontent-%COMP%] .link-row[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{flex:0 0 38px;display:flex;align-items:center;justify-content:center}.sidebar[_ngcontent-%COMP%] .link-wrapper[_ngcontent-%COMP%] .link[_ngcontent-%COMP%] .link-row[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{flex:1;transition:.3s;max-width:0;overflow:hidden;white-space:nowrap}@media (max-width: 767px){.sidebar[_ngcontent-%COMP%]{width:0}.sidebar[_ngcontent-%COMP%] .link-wrapper[_ngcontent-%COMP%]{display:none}}.sidebar.expanded[_ngcontent-%COMP%]{width:210px}@media (max-width: 767px){.sidebar.expanded[_ngcontent-%COMP%]{width:210px}.sidebar.expanded[_ngcontent-%COMP%] .link-wrapper[_ngcontent-%COMP%]{display:block}}.sidebar.expanded[_ngcontent-%COMP%] .link-wrapper[_ngcontent-%COMP%] .link[_ngcontent-%COMP%] .link-row[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{max-width:150px;padding-left:10px}.hamburger-icon[_ngcontent-%COMP%]{margin:-7px 0 0 25px}@media (min-width: 768px){.hb-logo-text[_ngcontent-%COMP%]{color:#fff;position:absolute;top:17px;font-size:22px;padding-left:3px}.sidebar.expanded[_ngcontent-%COMP%] .hb-logo-text[_ngcontent-%COMP%]{opacity:1;left:55px;transition:.3s}.sidebar[_ngcontent-%COMP%]:not(.expanded) .hb-logo-text[_ngcontent-%COMP%]{opacity:0;left:40px;transition:.3s}.hb-logo-text-mobile[_ngcontent-%COMP%], .hamburger-icon[_ngcontent-%COMP%]{display:none!important}}@media (max-width: 767px){.hb-logo-text[_ngcontent-%COMP%]{display:none!important}.hb-logo-text-mobile[_ngcontent-%COMP%]{color:#fff;position:absolute;top:17px;font-size:22px;padding-left:3px;opacity:1;left:55px}.hamburger-icon[_ngcontent-%COMP%]{position:absolute;right:10px;top:28px;width:30px;transform:rotate(0);transition:.5s ease-in-out;cursor:pointer}.hamburger-icon[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:block;position:absolute;height:2px;width:100%;background-color:#fff;border-radius:9px;opacity:1;left:0;transform:rotate(0);transition:.25s ease-in-out}.hamburger-icon[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(1){top:0}.hamburger-icon[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(2), .hamburger-icon[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(3){top:10px}.hamburger-icon[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(4){top:20px}.hamburger-icon-cross[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(1){top:10px;width:0;left:50%}.hamburger-icon-cross[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(2){transform:rotate(45deg)}.hamburger-icon-cross[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(3){transform:rotate(-45deg)}.hamburger-icon-cross[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(4){top:10px;width:0;left:50%}}"]})}return o})();var xe=o=>({sidebarExpanded:o}),Je=(()=>{class o{$auth=m(B);$modal=m(L);$router=m(V);$settings=m(A);$translate=m($);$ws=m(R);io;sidebarExpanded=!1;ngOnInit(){this.io=this.$ws.connectToNamespace("app"),this.io.socket.on("reconnect",()=>{this.$auth.checkToken()}),this.compareServerUiVersion()}compareServerUiVersion(){return P(this,null,function*(){if(this.$settings.settingsLoaded||(yield z(this.$settings.onSettingsLoaded)),!this.$router.url.endsWith("/restart")&&(0,Z.lt)(this.$settings.uiVersion,T.serverTarget)){console.log(`Server restart required. UI Version: ${T.serverTarget} - Server Version: ${this.$settings.uiVersion} `);let e=this.$modal.open(X,{size:"lg",backdrop:"static"});e.componentInstance.title=this.$translate.instant("platform.version.service_restart_required"),e.componentInstance.message=this.$translate.instant("platform.version.restart_required",{serverVersion:this.$settings.uiVersion,uiVersion:T.serverTarget}),e.componentInstance.confirmButtonLabel=this.$translate.instant("menu.tooltip_restart"),e.componentInstance.faIconClass="fas fa-power-off orange-text",e.result.then(()=>this.$router.navigate(["/restart"])).catch(()=>{})}})}static \u0275fac=function(a){return new(a||o)};static \u0275cmp=O({type:o,selectors:[["app-layout"]],decls:3,vars:4,consts:[[3,"isExpanded"],[1,"content","px-3","p-md-4",3,"ngClass"]],template:function(a,t){a&1&&(p(0,"app-sidebar",0),i(1,"div",1),p(2,"router-outlet"),s()),a&2&&(c("isExpanded",t.sidebarExpanded),n(),c("ngClass",M(2,xe,t.sidebarExpanded)))},dependencies:[Y,E,W],styles:[".content[_ngcontent-%COMP%]{margin-left:60px;transition:.3s;height:100%}@media (max-width: 767px){.content[_ngcontent-%COMP%]{margin-left:0;padding-top:85px!important}}@media (min-width: 768px){.content[_ngcontent-%COMP%]{height:100%}}a[_ngcontent-%COMP%]:hover{text-decoration:none!important}"]})}return o})();export{Je as LayoutComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as T}from"./chunk-
|
|
1
|
+
import{a as T}from"./chunk-OJML56DH.js";import"./chunk-7DDNZGBS.js";import{e as $}from"./chunk-NKVA4YGF.js";import{b as S}from"./chunk-CMUJLMKB.js";import{k as g,l as _,n as E,q as y}from"./chunk-S6PCNWMK.js";import{$b as s,Ab as r,Bb as i,Cb as u,Nb as v,Qa as n,_b as a,db as h,na as o,qb as c,rb as d,rc as m,sc as l}from"./chunk-YYORCSG2.js";function C(t,f){if(t&1&&(r(0,"div",7),a(1),i()),t&2){let e=v();n(),s(e.error)}}function w(t,f){t&1&&(r(0,"p",9),a(1),m(2,"translate"),i(),r(3,"div",10)(4,"div",11),u(5,"i",12),i()()),t&2&&(n(),s(l(2,1,"restart.please_wait_while_server_restarts")))}function k(t,f){t&1&&(r(0,"div",8),a(1),m(2,"translate"),i()),t&2&&(n(),s(l(2,1,"platform.linux.long_time")))}var z=(()=>{class t{$api=o(y);$router=o($);$settings=o(S);$toastr=o(E);$translate=o(g);$ws=o(T);checkTimeout;checkDelay;io;resp={};timeout=!1;error=!1;ngOnInit(){this.io=this.$ws.connectToNamespace("status"),this.io.connected.subscribe(()=>{this.io.socket.emit("monitor-server-status"),this.$settings.getAppSettings().catch(()=>{})}),this.$api.put("/platform-tools/linux/restart-host",{}).subscribe({next:e=>{this.resp=e,this.checkIfServerUp()},error:e=>{console.error(e),this.error=this.$translate.instant("platform.linux.server_restart_error"),this.$toastr.error(this.$translate.instant("platform.linux.server_restart_error"),this.$translate.instant("toast.title_error"))}})}ngOnDestroy(){this.io.end(),clearTimeout(this.checkDelay),clearTimeout(this.checkTimeout)}checkIfServerUp(){this.checkDelay=setTimeout(()=>{this.io.socket.on("homebridge-status",e=>{(e.status==="ok"||e.status==="pending")&&(this.$toastr.success(this.$translate.instant("platform.linux.server_restarted"),this.$translate.instant("toast.title_success")),this.$router.navigate(["/"]))})},3e4),this.checkTimeout=setTimeout(()=>{this.$toastr.warning(this.$translate.instant("platform.linux.server_taking_long_time"),this.$translate.instant("toast.title_warning"),{timeOut:1e4}),this.timeout=!0},12e4)}static \u0275fac=function(p){return new(p||t)};static \u0275cmp=h({type:t,selectors:[["ng-component"]],decls:14,vars:8,consts:[[1,"d-flex","justify-content-between"],[1,"primary-text","m-0"],[1,"my-4","align-items-center",2,"max-width","1000px","margin","auto"],[1,"w-100","text-center","primary-text","mb-5"],[1,"fas","fa-power-off",2,"font-size","75px"],[1,"text-center"],[1,"primary-text","mb-4"],[1,"alert","alert-error","my-4"],[1,"alert","alert-warning","my-4"],[1,"grey-text"],[1,"justify-content-center","my-4"],[1,"restart-progress-box","primary-text"],[1,"fas","fa-spinner","fa-spin"]],template:function(p,x){p&1&&(r(0,"div",0)(1,"h3",1),a(2),m(3,"translate"),i()(),r(4,"div",2)(5,"div",3),u(6,"i",4),i(),r(7,"div",5)(8,"h4",6),a(9),m(10,"translate"),i(),c(11,C,2,1,"div",7)(12,w,6,3),c(13,k,3,3,"div",8),i()()),p&2&&(n(2),s(l(3,4,"menu.restart.title")),n(7),s(l(10,6,"platform.linux.restarting_server")),n(2),d(x.error?11:12),n(2),d(x.timeout?13:-1))},dependencies:[_],styles:[".restart-progress-box[_ngcontent-%COMP%]{font-size:22px;font-weight:300;margin-top:15px}"]})}return t})();export{z as RestartLinuxComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as $}from"./chunk-
|
|
1
|
+
import{b as $}from"./chunk-CMUJLMKB.js";import{p as h,q as S}from"./chunk-S6PCNWMK.js";import{A as w,D as T,eb as E,gd as j,h as a,ia as d,ja as v,la as y,ma as l,na as p,s as f,x as c,xa as I,y as k}from"./chunk-YYORCSG2.js";var g=new y("JWT_OPTIONS"),m=(()=>{class i{constructor(e=null){this.tokenGetter=e&&e.tokenGetter||function(){}}urlBase64Decode(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:{t+="==";break}case 3:{t+="=";break}default:throw new Error("Illegal base64url string!")}return this.b64DecodeUnicode(t)}b64decode(e){let t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",o="";if(e=String(e).replace(/=+$/,""),e.length%4===1)throw new Error("'atob' failed: The string to be decoded is not correctly encoded.");for(let r=0,s,n,D=0;n=e.charAt(D++);~n&&(s=r%4?s*64+n:n,r++%4)?o+=String.fromCharCode(255&s>>(-2*r&6)):0)n=t.indexOf(n);return o}b64DecodeUnicode(e){return decodeURIComponent(Array.prototype.map.call(this.b64decode(e),t=>"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)).join(""))}decodeToken(e=this.tokenGetter()){return e instanceof Promise?e.then(t=>this._decodeToken(t)):this._decodeToken(e)}_decodeToken(e){if(!e||e==="")return null;let t=e.split(".");if(t.length!==3)throw new Error("The inspected token doesn't appear to be a JWT. Check to make sure it has three parts and see https://jwt.io for more.");let o=this.urlBase64Decode(t[1]);if(!o)throw new Error("Cannot decode the token.");return JSON.parse(o)}getTokenExpirationDate(e=this.tokenGetter()){return e instanceof Promise?e.then(t=>this._getTokenExpirationDate(t)):this._getTokenExpirationDate(e)}_getTokenExpirationDate(e){let t;if(t=this.decodeToken(e),!t||!t.hasOwnProperty("exp"))return null;let o=new Date(0);return o.setUTCSeconds(t.exp),o}isTokenExpired(e=this.tokenGetter(),t){return e instanceof Promise?e.then(o=>this._isTokenExpired(o,t)):this._isTokenExpired(e,t)}_isTokenExpired(e,t){if(!e||e==="")return!0;let o=this.getTokenExpirationDate(e);return t=t||0,o===null?!1:!(o.valueOf()>new Date().valueOf()+t*1e3)}getAuthScheme(e,t){return typeof e=="function"?e(t):e}}return i.\u0275fac=function(e){return new(e||i)(l(g))},i.\u0275prov=d({token:i,factory:i.\u0275fac}),i})(),x=i=>i instanceof Promise?T(()=>i):f(i),b=(()=>{class i{constructor(e,t,o){this.jwtHelper=t,this.document=o,this.standardPorts=["80","443"],this.tokenGetter=e.tokenGetter,this.headerName=e.headerName||"Authorization",this.authScheme=e.authScheme||e.authScheme===""?e.authScheme:"Bearer ",this.allowedDomains=e.allowedDomains||[],this.disallowedRoutes=e.disallowedRoutes||[],this.throwNoTokenError=e.throwNoTokenError||!1,this.skipWhenExpired=e.skipWhenExpired}isAllowedDomain(e){let t=new URL(e.url,this.document.location.origin);if(t.host===this.document.location.host)return!0;let o=`${t.hostname}${t.port&&!this.standardPorts.includes(t.port)?":"+t.port:""}`;return this.allowedDomains.findIndex(r=>typeof r=="string"?r===o:r instanceof RegExp?r.test(o):!1)>-1}isDisallowedRoute(e){let t=new URL(e.url,this.document.location.origin);return this.disallowedRoutes.findIndex(o=>{if(typeof o=="string"){let r=new URL(o,this.document.location.origin);return r.hostname===t.hostname&&r.pathname===t.pathname}return o instanceof RegExp?o.test(e.url):!1})>-1}handleInterception(e,t,o){let r=this.jwtHelper.getAuthScheme(this.authScheme,t);if(!e&&this.throwNoTokenError)throw new Error("Could not get token from tokenGetter function.");let s=f(!1);return this.skipWhenExpired&&(s=e?x(this.jwtHelper.isTokenExpired(e)):f(!0)),e?s.pipe(k(n=>n&&this.skipWhenExpired?t.clone():t.clone({setHeaders:{[this.headerName]:`${r}${e}`}})),w(n=>o.handle(n))):o.handle(t)}intercept(e,t){if(!this.isAllowedDomain(e)||this.isDisallowedRoute(e))return t.handle(e);let o=this.tokenGetter(e);return x(o).pipe(w(r=>this.handleInterception(r,e,t)))}}return i.\u0275fac=function(e){return new(e||i)(l(g),l(m),l(I))},i.\u0275prov=d({token:i,factory:i.\u0275fac}),i})(),U=(()=>{class i{constructor(e){if(e)throw new Error("JwtModule is already loaded. It should only be imported in your application's main module.")}static forRoot(e){return{ngModule:i,providers:[{provide:j,useClass:b,multi:!0},e.jwtOptionsProvider||{provide:g,useValue:e.config},m]}}}return i.\u0275fac=function(e){return new(e||i)(l(i,12))},i.\u0275mod=E({type:i}),i.\u0275inj=v({}),i})();var X=(()=>{class i{$api=p(S);$jwtHelper=p(m);$settings=p($);token;user={};logoutTimer;lastRefreshTime=Date.now();isRefreshing=!1;constructor(){this.loadToken()}login(e){return a(this,null,function*(){let t=yield c(this.$api.post("/auth/login",e));if(!this.validateToken(t.access_token))throw new Error("Invalid username or password.");window.localStorage.setItem(h.jwt.tokenKey,t.access_token),yield this.$settings.getAppSettings()})}noauth(){return a(this,null,function*(){let e=yield c(this.$api.post("/auth/noauth",{}));if(this.validateToken(e.access_token))window.localStorage.setItem(h.jwt.tokenKey,e.access_token),yield this.$settings.getAppSettings();else throw new Error("Invalid username or password.")})}logout(){this.user=null,this.token=null,clearTimeout(this.logoutTimer),window.localStorage.removeItem(h.jwt.tokenKey),window.location.reload()}loadToken(){return a(this,null,function*(){this.$settings.settingsLoaded||(yield c(this.$settings.onSettingsLoaded));let e=window.localStorage.getItem(h.jwt.tokenKey);e&&this.validateToken(e)})}checkToken(){return a(this,null,function*(){if(!this.token||this.$jwtHelper.isTokenExpired(this.token,this.$settings.serverTimeOffset)){console.warn("Token expired on client side, logging out immediately"),this.logout();return}try{return yield c(this.$api.get("/auth/check"))}catch(e){throw e.status===401&&(console.warn("Current token is not valid on server"),this.logout()),e}})}isLoggedIn(){return this.$settings.env.instanceId!==this.user.instanceId?(console.error("Token does not match instance"),!1):this.user&&this.token&&!this.$jwtHelper.isTokenExpired(this.token,this.$settings.serverTimeOffset)}validateToken(e){try{return this.$jwtHelper.isTokenExpired(e,this.$settings.serverTimeOffset)&&this.logout(),this.user=this.$jwtHelper.decodeToken(e),this.token=e,this.setLogoutTimer(),!0}catch{return window.localStorage.removeItem(h.jwt.tokenKey),this.token=null,!1}}setLogoutTimer(){if(clearTimeout(this.logoutTimer),!this.$jwtHelper.isTokenExpired(this.token,this.$settings.serverTimeOffset)){let e=this.$settings.sessionTimeout*1e3;e<=2147483647&&(this.logoutTimer=setTimeout(()=>a(this,null,function*(){this.$settings.formAuth===!1?(yield this.noauth(),window.location.reload()):this.logout()}),e))}}checkAndRefreshIfNeeded(){return a(this,null,function*(){if(!this.$settings.formAuth||!this.$settings.sessionTimeoutInactivityBased||!this.token||!this.isLoggedIn()||this.isRefreshing)return;let t=Date.now()-this.lastRefreshTime,r=this.$settings.sessionTimeout*1e3*.7;if(t>r)try{yield this.refreshSession()}catch(s){console.error("Failed to refresh session:",s)}})}refreshSession(){return a(this,null,function*(){if(!this.isRefreshing){this.isRefreshing=!0;try{let e=yield c(this.$api.post("/auth/refresh",{}));e.access_token&&(this.token=e.access_token,window.localStorage.setItem(h.jwt.tokenKey,e.access_token),this.lastRefreshTime=Date.now(),this.setLogoutTimer())}finally{this.isRefreshing=!1}}})}static \u0275fac=function(t){return new(t||i)};static \u0275prov=d({token:i,factory:i.\u0275fac})}return i})();export{U as a,X as b};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{B as Y,C as Z,c as G,d as k,e as j,f as D,g as K,j as $,m as A,q as J,r as Q,y as X}from"./chunk-YLFJH4ZN.js";import{a as ae}from"./chunk-
|
|
1
|
+
import{B as Y,C as Z,c as G,d as k,e as j,f as D,g as K,j as $,m as A,q as J,r as Q,y as X}from"./chunk-YLFJH4ZN.js";import{a as ae}from"./chunk-OJML56DH.js";import{b as oe}from"./chunk-7DDNZGBS.js";import{b as re}from"./chunk-CMUJLMKB.js";import{k as ee,l as te,n as ie,p as U,q as ne}from"./chunk-S6PCNWMK.js";import{$b as f,Ib as I,La as W,Lb as x,Nb as _,Qa as n,Qc as H,Tc as N,Xb as O,_b as l,ac as g,bd as R,db as V,h as S,kc as L,lc as B,mc as E,na as w,nd as q,pb as M,qb as z,rb as T,rc as a,sa as C,sc as s,ta as b,wb as m,x as h,xb as o,yb as r,zb as u}from"./chunk-YYORCSG2.js";var pe=t=>({background:t}),de=t=>({anim:t}),ce=t=>({"progress-bar-animated":t}),me=()=>["restoring","restarting","restore-complete"],P=(t,d)=>({"is-valid":t,"is-invalid":d});function ue(t,d){if(t&1){let e=I();o(0,"div",5)(1,"h4",6),l(2),a(3,"translate"),r(),u(4,"div",7),a(5,"translate"),o(6,"button",8),x("click",function(){C(e);let i=_();return b(i.onClickGettingStarted())}),l(7),a(8,"translate"),r(),o(9,"a",9),x("click",function(){C(e);let i=_();return b(i.onClickRestoreBackup())}),l(10),a(11,"translate"),r()()}t&2&&(n(2),f(s(3,4,"setup.welcome_to_homebridge")),n(2),m("innerHTML",s(5,6,"setup.intro"),W),n(3),g(" ",s(8,8,"setup.button_get_started")," "),n(3),f(s(11,10,"setup_wizard_restore")))}function ge(t,d){if(t&1){let e=I();o(0,"div",5)(1,"h4",6),l(2),a(3,"translate"),r(),o(4,"div",10),l(5),a(6,"translate"),r(),o(7,"div",11)(8,"form",12),x("ngSubmit",function(){C(e);let i=_();return b(i.createFirstUser())}),o(9,"div",13)(10,"span",14),u(11,"i",15),r(),u(12,"input",16),a(13,"translate"),r(),o(14,"div",13)(15,"span",14),u(16,"i",17),r(),u(17,"input",18),a(18,"translate"),r(),o(19,"div",13)(20,"span",14),u(21,"i",17),r(),u(22,"input",19),a(23,"translate"),r(),o(24,"div",20)(25,"button",21),x("click",function(){C(e);let i=_();return b(i.onClickCancelRestore())}),l(26),a(27,"translate"),r(),o(28,"button",22),l(29),a(30,"translate"),r()()()()()}if(t&2){let e=_();n(2),f(s(3,16,"setup.create_account")),n(3),f(s(6,18,"setup_wizard_create_info")),n(3),m("formGroup",e.createUserForm),n(4),m("readonly",e.loading)("ngClass",E(30,P,e.createUserForm.controls.username.dirty&&e.createUserForm.controls.username.valid,e.createUserForm.controls.username.dirty&&e.createUserForm.controls.username.invalid))("placeholder",s(13,20,"users.label_username")),n(5),m("readonly",e.loading)("ngClass",E(33,P,e.createUserForm.controls.password.dirty&&e.createUserForm.controls.password.valid,e.createUserForm.controls.password.dirty&&e.createUserForm.controls.password.errors))("placeholder",s(18,22,"users.label_password")),n(5),m("readonly",e.loading)("ngClass",E(36,P,e.createUserForm.controls.passwordConfirm.dirty&&e.createUserForm.controls.passwordConfirm.valid,e.createUserForm.controls.passwordConfirm.dirty&&e.createUserForm.controls.passwordConfirm.errors))("placeholder",s(23,24,"users.label_confirm_password")),n(3),m("disabled",e.restoreUploading),n(),g(" ",s(27,26,"form.button_back")," "),n(2),m("disabled",e.createUserForm.invalid||e.loading),n(),g(" ",s(30,28,"form.button_continue")," ")}}function _e(t,d){t&1&&(u(0,"i",25),l(1),a(2,"translate")),t&2&&(n(),g(" ",s(2,1,"backup.label_uploading")," "))}function fe(t,d){t&1&&(l(0),a(1,"translate")),t&2&&g(" ",s(1,1,"form.button_continue")," ")}function he(t,d){if(t&1){let e=I();o(0,"div",5)(1,"h4",6),l(2),a(3,"translate"),r(),o(4,"div",10),l(5),a(6,"translate"),r(),o(7,"input",23),x("change",function(i){C(e);let F=_();return b(F.handleRestoreFileInput(i.target.files))}),r(),o(8,"div",20)(9,"button",21),x("click",function(){C(e);let i=_();return b(i.onClickCancelRestore())}),l(10),a(11,"translate"),r(),o(12,"button",24),x("click",function(){C(e);let i=_();return b(i.onRestoreBackupClick())}),z(13,_e,3,3)(14,fe,2,3),r()()()}if(t&2){let e=_();n(2),f(s(3,6,"setup_wizard_restore")),n(3),f(s(6,8,"backup.restore_help_one")),n(4),m("disabled",e.restoreUploading),n(),g(" ",s(11,10,"form.button_back")," "),n(2),m("disabled",e.restoreUploading||!e.selectedFile),n(),T(e.restoreUploading?13:14)}}function we(t,d){t&1&&(l(0),a(1,"translate")),t&2&&g(" ",s(1,1,"setup_wizard_restoring")," ")}function Ce(t,d){t&1&&(l(0),a(1,"translate")),t&2&&g(" ",s(1,1,"setup_wizard_starting")," ")}function be(t,d){t&1&&(l(0),a(1,"translate")),t&2&&g(" ",s(1,1,"setup_wizard_complete")," ")}function xe(t,d){t&1&&(o(0,"a",27),l(1),a(2,"translate"),r()),t&2&&(n(),g(" ",s(2,1,"form.button_continue")," "))}function ve(t,d){if(t&1&&(o(0,"div",5)(1,"h4",6),z(2,we,2,3)(3,Ce,2,3)(4,be,2,3),r(),u(5,"div",26),z(6,xe,3,3,"a",27),r()),t&2){let e=_();n(2),T(e.step==="restoring"?2:e.step==="restarting"?3:e.step==="restore-complete"?4:-1),n(4),T(e.step==="restore-complete"?6:-1)}}function ye(t,d){t&1&&(o(0,"div",5)(1,"h4",28),l(2),a(3,"translate"),r(),o(4,"div",10),l(5),a(6,"translate"),r(),o(7,"a",29),l(8),a(9,"translate"),r()()),t&2&&(n(2),f(s(3,3,"setup_wizard_complete_title")),n(3),f(s(6,5,"setup_wizard_completed")),n(3),g(" ",s(9,7,"form.button_continue")," "))}var He=(()=>{class t{$api=w(ne);$auth=w(oe);$settings=w(re);$title=w(q);$toastr=w(ie);$translate=w(ee);$ws=w(ae);io;step="welcome";backgroundStyle;progress=1;restoreInProgress=!1;restoreStarted=!1;restoreFailed=!1;loading=!1;selectedFile;restoreUploading=!1;createUserForm=new K({username:new $("",[k.required]),password:new $("",[k.compose([k.required,k.minLength(4)])]),passwordConfirm:new $("",[k.required])},this.matchPassword);ngOnInit(){return S(this,null,function*(){this.$title.setTitle(this.$translate.instant("setup_wizard_page_title")),yield this.setBackground()})}onClickGettingStarted(){this.step="create-account",this.progress=50}onClickRestoreBackup(){this.step="restore-backup",this.progress=20}onClickCancelRestore(){this.selectedFile=null,this.step="welcome",this.progress=1}createFirstUser(){return S(this,null,function*(){this.loading=!0,this.progress=75;let e=this.createUserForm.getRawValue();e.name=e.username;try{yield h(this.$api.post("/setup-wizard/create-first-user",e)),this.$settings.env.setupWizardComplete=!0,this.progress=100,this.loading=!1,yield this.$auth.login({username:e.username,password:e.password}),this.step="setup-complete"}catch(p){this.loading=!1,this.progress=50,console.error(p),this.$toastr.error(p.message,this.$translate.instant("toast.title_error"))}})}handleRestoreFileInput(e){e.length?(this.selectedFile=e[0],this.progress=40):(delete this.selectedFile,this.progress=20)}onRestoreBackupClick(){return S(this,null,function*(){this.restoreUploading=!0,this.step="restoring",this.progress=60;try{let e=yield h(this.$api.get("/setup-wizard/get-setup-wizard-token"));window.localStorage.setItem(U.jwt.tokenKey,e.access_token),this.$auth.token=e.access_token,this.progress=65;let p=new FormData;p.append("restoreArchive",this.selectedFile,this.selectedFile.name),yield h(this.$api.post("/backup/restore",p)),this.progress=70,this.io=this.$ws.connectToNamespace("backup");let i=document.getElementById("output");this.io.socket.on("stdout",c=>{c.split(`
|
|
2
2
|
\r`).forEach(v=>{if(v&&!/^[⠇⠏⠋⠙⠹⠸]+$/.test(v)){let y=document.createElement("div"),le=/\x1B\[(\d{1,2}(;\d{1,2})?)?[mGK]/g;y.innerHTML=v.replace(le,""),v.includes("[0;31m")?y.classList.add("red-text"):v.includes("[0;32m")?y.classList.add("green-text"):v.includes("[0;33m")?y.classList.add("orange-text"):v.includes("[0;36m")&&y.classList.add("cyan-text"),i.appendChild(y),i.scrollTop=i.scrollHeight}})}),this.restoreStarted=!0,this.restoreInProgress=!0,this.progress=75,yield h(this.io.request("do-restore")),this.progress=80,this.restoreInProgress=!1,yield h(this.$api.put("/backup/restart",{})),this.step="restarting",this.progress=85,window.localStorage.removeItem(U.jwt.tokenKey),this.$auth.token=null;let F=document.createElement("div");F.classList.add("orange-text"),F.innerHTML="Starting Homebridge, please wait...",i.appendChild(F),i.scrollTop=i.scrollHeight,yield new Promise(c=>setTimeout(c,3e3)),this.progress=88,yield new Promise(c=>setTimeout(c,3e3)),this.progress=91,yield new Promise(c=>setTimeout(c,3e3)),this.progress=94,yield new Promise(c=>setTimeout(c,3e3)),this.progress=97,yield new Promise(c=>setTimeout(c,3e3)),this.progress=99;let se=setInterval(()=>S(this,null,function*(){try{yield h(this.$api.get("/auth/settings")),clearInterval(se),this.progress=100,this.restoreUploading=!1,this.step="restore-complete"}catch{}}),1e3)}catch(e){console.error(e),this.restoreUploading=!1,this.restoreFailed=!0,this.progress=20,this.step="restore-backup",this.$toastr.error(e.message,this.$translate.instant("toast.title_error"))}finally{this.io&&this.io.end()}})}setBackground(){return S(this,null,function*(){if(this.$settings.settingsLoaded||(yield h(this.$settings.onSettingsLoaded)),this.$settings.env.customWallpaperHash){let e=`${U.api.base}/auth/wallpaper/${this.$settings.env.customWallpaperHash}`;this.backgroundStyle=`url('${e}') center/cover`}})}matchPassword(e){let p=e.get("password").value,i=e.get("passwordConfirm").value;if(p!==i)e.get("passwordConfirm").setErrors({matchPassword:!0});else return null}static \u0275fac=function(p){return new(p||t)};static \u0275cmp=V({type:t,selectors:[["ng-component"]],decls:10,vars:14,consts:[[1,"setup-container","gradient","d-flex","align-items-start","justify-content-center",3,"ngStyle","ngClass"],[1,"w-100","setup-card","d-flex","py-4","flex-column"],["ngSrc","assets/homebridge-color-round.svg","alt","Homebridge Logo","height","100","width","100","priority","true",1,"homebridge-logo","mx-auto","my-3"],[1,"progress","w-100","my-4"],["role","progressbar","aria-valuemin","0","aria-valuemax","100",1,"progress-bar","progress-bar-striped","bg-success",3,"ngClass"],[1,"w-100","d-flex","flex-column","align-items-center","mb-2"],[1,"mb-3","text-center"],[1,"mb-4","small","grey-text","text-center",3,"innerHTML"],["type","button",1,"btn","btn-lg","btn-primary","mb-4",3,"click"],["href","javascript:void(0)",1,"grey-text",3,"click"],[1,"mb-4","small","grey-text","text-center"],[1,"w-100"],["novalidate","",3,"ngSubmit","formGroup"],[1,"input-group","mb-4"],[1,"input-group-text","custom-input"],[1,"fas","fa-user","primary-text","fa-lg"],["formControlName","username","type","text","id","form-username","autocomplete","username","autocapitalize","none","tabindex","1","required","",1,"form-control","custom-input",3,"readonly","ngClass","placeholder"],[1,"fas","fa-lock","primary-text","fa-lg"],["formControlName","password","type","password","id","form-pass","autocomplete","new-password","tabindex","2","required","",1,"form-control","custom-input",3,"readonly","ngClass","placeholder"],["formControlName","passwordConfirm","type","password","id","form-pass-confirm","autocomplete","new-password","tabindex","2","required","",1,"form-control","custom-input",3,"readonly","ngClass","placeholder"],[1,"mt-3","w-100","d-flex","justify-content-between"],["type","button",1,"btn","btn-elegant","ms-0",3,"click","disabled"],["type","submit",1,"btn","btn-primary",3,"disabled"],["type","file","id","restoreFileUpload","accept","application/gzip, .gz",1,"form-control","custom-input","mb-3",3,"change"],["type","button",1,"btn","btn-primary","me-0",3,"click","disabled"],[1,"fas","fa-spinner","fa-pulse"],["id","output",1,"font-monospace","small","alert","alert-info","w-100","text-start","mt-1","mb-0"],["href","/login",1,"btn","btn-lg","btn-primary","mt-4"],[1,"mb-3"],["href","/",1,"btn","btn-lg","btn-primary"]],template:function(p,i){p&1&&(o(0,"div",0)(1,"div",1),u(2,"img",2),o(3,"div",3),u(4,"div",4),r(),z(5,ue,12,12,"div",5)(6,ge,31,39,"div",5)(7,he,15,12,"div",5)(8,ve,7,2,"div",5)(9,ye,10,9,"div",5),r()()),p&2&&(m("ngStyle",B(7,pe,i.backgroundStyle))("ngClass",B(9,de,!i.backgroundStyle)),n(4),O("width",i.progress+"%"),m("ngClass",B(11,ce,i.loading||i.restoreUploading)),M("aria-valuenow",i.progress),n(),T(i.step==="welcome"?5:i.step==="create-account"?6:i.step==="restore-backup"?7:L(13,me).includes(i.step)?8:i.step==="setup-complete"?9:-1))},dependencies:[H,R,Y,A,G,j,D,X,Z,J,Q,N,te],styles:["body{overflow:scroll!important} body.dark-mode .setup-card{background-color:#2b2b2b;color:#fff}.setup-container[_ngcontent-%COMP%]{z-index:-1;padding-top:2em;padding-bottom:2em;min-height:100%;background-size:300% 300%}.anim[_ngcontent-%COMP%]{-webkit-animation:_ngcontent-%COMP%_gradient 20s ease infinite;-moz-animation:gradient 20s ease infinite;-o-animation:gradient 20s ease infinite;animation:_ngcontent-%COMP%_gradient 20s ease infinite}@keyframes _ngcontent-%COMP%_gradient{0%{background-position:0 50%}50%{background-position:100% 50%}to{background-position:0 50%}}.setup-card[_ngcontent-%COMP%]{max-width:550px;border-radius:1rem;padding-right:25px;padding-left:25px;background-color:#ffffffe6}.setup-card[_ngcontent-%COMP%] .form-control[_ngcontent-%COMP%]:focus{background-color:inherit!important}@media screen and (max-width: 575px){.setup-card[_ngcontent-%COMP%]{margin-left:1em;margin-right:1em}}.homebridge-logo[_ngcontent-%COMP%]{margin-bottom:10px}.progress[_ngcontent-%COMP%]{background-color:#ddd}#output[_ngcontent-%COMP%]{height:200px;overflow-y:scroll;white-space:pre-wrap}"]})}return t})();export{He as SetupWizardComponent};
|