homebridge-config-ui-x 5.4.2-beta.16 → 5.4.2-beta.18
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/CHANGELOG.md +6 -0
- package/dist/core/auth/auth.controller.d.ts +1 -0
- package/dist/core/config/config.service.d.ts +3 -1
- package/dist/core/config/config.service.js +3 -2
- package/dist/core/config/config.service.js.map +1 -1
- package/dist/core/config/config.startup.d.ts +1 -0
- package/dist/core/config/config.startup.js +13 -3
- package/dist/core/config/config.startup.js.map +1 -1
- package/dist/core/spa/spa-html.service.d.ts +6 -0
- package/dist/core/spa/spa-html.service.js +40 -0
- package/dist/core/spa/spa-html.service.js.map +1 -0
- package/dist/core/spa/spa.filter.d.ts +2 -0
- package/dist/core/spa/spa.filter.js +17 -2
- package/dist/core/spa/spa.filter.js.map +1 -1
- package/dist/main.js +8 -3
- package/dist/main.js.map +1 -1
- package/dist/modules/custom-plugins/plugins-settings-ui/plugins-settings-ui.service.js +1 -1
- package/dist/modules/custom-plugins/plugins-settings-ui/plugins-settings-ui.service.js.map +1 -1
- package/package.json +2 -2
- package/public/3rdpartylicenses.txt +13 -13
- package/public/assets/{monaco-0.52.2 → monaco}/min/vs/editor/editor.main.js +2 -2
- package/public/chunk-2GGT3SCW.js +1 -0
- package/public/{chunk-R7Y5ACQC.js → chunk-32KCOXXZ.js} +1 -1
- package/public/chunk-3ASJ4MIQ.js +1 -0
- package/public/chunk-3EJ4YUT7.js +1 -0
- package/public/chunk-3FGCHUZM.js +14 -0
- package/public/chunk-3LEW5FOJ.js +5 -0
- package/public/{chunk-UXALHV57.js → chunk-3O4LZ4AU.js} +1 -1
- package/public/chunk-52XZH5I7.js +40 -0
- package/public/{chunk-5TCYRJ6A.js → chunk-5WYRGCHF.js} +1 -1
- package/public/{chunk-Y7TNTIU3.js → chunk-67XMBTDZ.js} +2 -2
- package/public/chunk-6IDARBAH.js +1 -0
- package/public/chunk-6IWX4WEC.js +1 -0
- package/public/chunk-6N2TL3OX.js +49 -0
- package/public/{chunk-7OTNPUAL.js → chunk-7BJOEXZM.js} +1 -1
- package/public/{chunk-UHWT4HS2.js → chunk-AEEAPTXE.js} +1 -1
- package/public/{chunk-7BRVYYLY.js → chunk-AM53KSWA.js} +1 -1
- package/public/chunk-B5AUZBPY.js +1 -0
- package/public/{chunk-RYEUSRBX.js → chunk-BQMDK4YS.js} +2 -2
- package/public/chunk-C2ZPBNQL.js +1 -0
- package/public/{chunk-BU65ZOCD.js → chunk-CCHRGHTT.js} +1 -1
- package/public/{chunk-ZHPB347D.js → chunk-CIVLN3HQ.js} +1 -1
- package/public/{chunk-LPHTUMGC.js → chunk-CTYK4ZDT.js} +1 -1
- package/public/chunk-CWUYV4M6.js +20 -0
- package/public/chunk-D5OC6INP.js +1 -0
- package/public/chunk-DQ7H34Z3.js +3 -0
- package/public/chunk-EG2BFE2Y.js +1 -0
- package/public/{chunk-YATJTZML.js → chunk-EWO5Q2EI.js} +2 -2
- package/public/{chunk-NJOBXAPT.js → chunk-F3ULAZ4E.js} +1 -1
- package/public/chunk-FUFVCM4C.js +1 -0
- package/public/chunk-FZOVQ6IV.js +1 -0
- package/public/{chunk-MZ3XHPWZ.js → chunk-G634JYE2.js} +1 -1
- package/public/chunk-GUYJYCPC.js +1 -0
- package/public/chunk-H46D5ZZJ.js +1 -0
- package/public/{chunk-UGMDVR5V.js → chunk-HKOQ2LLE.js} +1 -1
- package/public/chunk-HUFUZTYU.js +1 -0
- package/public/chunk-IMUVCFNG.js +1 -0
- package/public/{chunk-D4JH4N33.js → chunk-IZN5MQII.js} +1 -1
- package/public/chunk-JI2XCHZB.js +1 -0
- package/public/chunk-JIAI6UD2.js +1 -0
- package/public/chunk-JXA6UYVW.js +1 -0
- package/public/{chunk-77JZBWAC.js → chunk-KNZTEJFP.js} +1 -1
- package/public/{chunk-V2P2FPJ7.js → chunk-KXMDG63G.js} +1 -1
- package/public/chunk-M2QSAMEV.js +1 -0
- package/public/{chunk-BSUFNH7A.js → chunk-M7Q6VBJE.js} +1 -1
- package/public/chunk-MDV2S56W.js +1 -0
- package/public/chunk-MVMZJM7B.js +9 -0
- package/public/chunk-NL5SKXRN.js +1 -0
- package/public/chunk-P4J7BQSF.js +1 -0
- package/public/{chunk-4JYGIYS6.js → chunk-PPRLJYJ7.js} +1 -1
- package/public/chunk-Q4376TC7.js +1 -0
- package/public/{chunk-QANVBO6M.js → chunk-QASANAGE.js} +1 -1
- package/public/chunk-QB7TEMX6.js +1 -0
- package/public/chunk-QKPDOQGQ.js +1 -0
- package/public/chunk-QMZFJZUI.js +1 -0
- package/public/chunk-R62RXKVZ.js +1 -0
- package/public/chunk-RHRWOYZU.js +1 -0
- package/public/chunk-RXBLFIBQ.js +1 -0
- package/public/chunk-SAPS6TFT.js +2 -0
- package/public/chunk-TKZ4YETU.js +1 -0
- package/public/{chunk-VNC5PDW7.js → chunk-UHCPPCOX.js} +1 -1
- package/public/chunk-VB7ZRXBC.js +1 -0
- package/public/{chunk-5B52GCDR.js → chunk-VSXAF6OX.js} +1 -1
- package/public/{chunk-2Z6NQOGB.js → chunk-WE3P5M5D.js} +1 -1
- package/public/chunk-WGHBOXD2.js +1 -0
- package/public/chunk-X2I5H52N.js +1 -0
- package/public/chunk-X5P2VUQB.js +1 -0
- package/public/chunk-XCXIKCFK.js +1 -0
- package/public/index.html +1 -1
- package/public/main-5CDFLH5S.js +1 -0
- package/public/polyfills-5KWHJ7II.js +2 -0
- package/public/assets/monaco-0.52.2/package.json +0 -82
- package/public/chunk-3F43PTVJ.js +0 -1
- package/public/chunk-3XFUWJGL.js +0 -3
- package/public/chunk-5B67RG5C.js +0 -1
- package/public/chunk-5KYV52LA.js +0 -1
- package/public/chunk-5YAMEU34.js +0 -1
- package/public/chunk-64DAPDF5.js +0 -1
- package/public/chunk-6GMXEQVA.js +0 -2
- package/public/chunk-6L4EKOQR.js +0 -1
- package/public/chunk-6XYLN2ON.js +0 -1
- package/public/chunk-72S6Y4C6.js +0 -1
- package/public/chunk-AE7VAWOU.js +0 -9
- package/public/chunk-BME7RDQX.js +0 -1
- package/public/chunk-BOEVHF5F.js +0 -1
- package/public/chunk-BYKIXKPO.js +0 -1
- package/public/chunk-C3MIVQCG.js +0 -1
- package/public/chunk-D3JHDB7S.js +0 -1
- package/public/chunk-DTWH4S27.js +0 -1
- package/public/chunk-EFN7OX2S.js +0 -20
- package/public/chunk-EZT3MKU2.js +0 -1
- package/public/chunk-FTPY4VTW.js +0 -1
- package/public/chunk-G7FA4DP4.js +0 -1
- package/public/chunk-GWXZ52WY.js +0 -14
- package/public/chunk-GYWHA4UG.js +0 -1
- package/public/chunk-H36QJYLQ.js +0 -4
- package/public/chunk-IHAZUOLN.js +0 -1
- package/public/chunk-IOTUAYMI.js +0 -49
- package/public/chunk-KCNLYISY.js +0 -1
- package/public/chunk-KOXRTPFB.js +0 -2
- package/public/chunk-KX3XFNU5.js +0 -1
- package/public/chunk-M2B6ISLX.js +0 -1
- package/public/chunk-NO5LCM63.js +0 -1
- package/public/chunk-OQGXXIW6.js +0 -1
- package/public/chunk-PB2PC33B.js +0 -1
- package/public/chunk-QXJDN2Q4.js +0 -40
- package/public/chunk-SAJTB4SR.js +0 -1
- package/public/chunk-TGMGUP4S.js +0 -1
- package/public/chunk-TGOCI72Q.js +0 -1
- package/public/chunk-TXP3432G.js +0 -1
- package/public/chunk-UOLP7IQJ.js +0 -1
- package/public/chunk-V3FPDJGI.js +0 -1
- package/public/chunk-VPCF2YXB.js +0 -1
- package/public/chunk-VY4A2U5R.js +0 -1
- package/public/chunk-WUPGTEQ4.js +0 -1
- package/public/chunk-Y3IHDNS4.js +0 -1
- package/public/chunk-ZTPRJUZ6.js +0 -1
- package/public/main-NLDH6GYP.js +0 -1
- package/public/polyfills-WE4HA5DL.js +0 -2
- /package/public/assets/{monaco-0.52.2 → monaco}/LICENSE +0 -0
- /package/public/assets/{monaco-0.52.2 → monaco}/ThirdPartyNotices.txt +0 -0
- /package/public/assets/{monaco-0.52.2 → monaco}/min/vs/base/browser/ui/codicons/codicon/codicon.ttf +0 -0
- /package/public/assets/{monaco-0.52.2 → monaco}/min/vs/base/worker/workerMain.js +0 -0
- /package/public/assets/{monaco-0.52.2 → monaco}/min/vs/basic-languages/shell/shell.js +0 -0
- /package/public/assets/{monaco-0.52.2 → monaco}/min/vs/editor/editor.main.css +0 -0
- /package/public/assets/{monaco-0.52.2 → monaco}/min/vs/language/json/jsonMode.js +0 -0
- /package/public/assets/{monaco-0.52.2 → monaco}/min/vs/language/json/jsonWorker.js +0 -0
- /package/public/assets/{monaco-0.52.2 → monaco}/min/vs/loader.js +0 -0
package/public/chunk-BME7RDQX.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as n}from"./chunk-2Z6NQOGB.js";import{g as i}from"./chunk-UOLP7IQJ.js";import"./chunk-WUPGTEQ4.js";import"./chunk-C3MIVQCG.js";import"./chunk-G7FA4DP4.js";import"./chunk-6GMXEQVA.js";import{ga as o,nb as r}from"./chunk-H36QJYLQ.js";var a=[{path:"",loadComponent:()=>import("./chunk-KOXRTPFB.js").then(t=>t.SetupWizardComponent)}],u=(()=>{class t{static \u0275fac=function(e){return new(e||t)};static \u0275mod=r({type:t});static \u0275inj=o({imports:[i.forChild(a),i]})}return t})();var l=(()=>{class t{static \u0275fac=function(e){return new(e||t)};static \u0275mod=r({type:t});static \u0275inj=o({providers:[n],imports:[u]})}return t})();export{l as SetupWizardModule};
|
package/public/chunk-BOEVHF5F.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{d as u,g as s}from"./chunk-UOLP7IQJ.js";import{k as l,n as d}from"./chunk-C3MIVQCG.js";import{a as p}from"./chunk-G7FA4DP4.js";import"./chunk-6GMXEQVA.js";import{fa as c,ga as i,h as f,ka as e,nb as n,w as m}from"./chunk-H36QJYLQ.js";var a=(()=>{class t{$api=e(d);$router=e(u);$toastr=e(l);$translate=e(p);resolve(){return f(this,null,function*(){try{let o=yield m(this.$api.get("/config-editor"));return JSON.stringify(o,null,4)}catch(o){console.error(o),this.$toastr.error(o.message,this.$translate.instant("toast.title_error")),this.$router.navigate(["/"])}})}static \u0275fac=function(r){return new(r||t)};static \u0275prov=c({token:t,factory:t.\u0275fac})}return t})();var y=[{path:"",loadComponent:()=>import("./chunk-EFN7OX2S.js").then(t=>t.ConfigEditorComponent),resolve:{config:a}}],v=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275mod=n({type:t});static \u0275inj=i({imports:[s.forChild(y),s]})}return t})();var T=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275mod=n({type:t});static \u0275inj=i({providers:[a],imports:[v]})}return t})();export{T as ConfigEditorModule};
|
package/public/chunk-BYKIXKPO.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as u}from"./chunk-V2P2FPJ7.js";import{k as p,n as m}from"./chunk-C3MIVQCG.js";import{a as c}from"./chunk-G7FA4DP4.js";import{fa as n,g as f,h as r,ka as a,w as s}from"./chunk-H36QJYLQ.js";var l=f(u(),1);var $=(()=>{class e{$api=a(m);$toastr=a(p);$translate=a(c);downloadBackup(){return r(this,null,function*(){let t=yield s(this.$api.get("/backup/download",{observe:"response",responseType:"blob"})),i=t.headers.get("File-Name")||"homebridge-backup.tar.gz",o=t.body.size;if(o>globalThis.backup.maxBackupSize){let b=this.$translate.instant("backup.backup_exceeds_max_size",{maxBackupSizeText:globalThis.backup.maxBackupSizeText,size:`${(o/1048576).toFixed(1)}MB`});this.$toastr.warning(b,this.$translate.instant("toast.title_warning"))}(0,l.saveAs)(t.body,i)})}static \u0275fac=function(i){return new(i||e)};static \u0275prov=n({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();export{$ as a};
|
package/public/chunk-C3MIVQCG.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{d as ft,m as gt}from"./chunk-6GMXEQVA.js";import{Gb as M,Hb as E,Ob as l,Pb as h,Qb as p,Rb as F,Vb as Y,Wa as ht,Wb as K,Xa as q,_b as Q,a as u,ab as r,ac as mt,b as T,bc as j,db as dt,dc as c,e as It,fa as C,ga as lt,gb as y,ia as ct,ja as w,ka as _,kd as J,la as ut,mb as G,n as g,nb as pt,nc as A,pc as m,qa as V,qc as f,ra as z,sb as S,sc as b,ua as N,va as Z,vb as U,za as O}from"./chunk-H36QJYLQ.js";var Tt=It((De,Ut)=>{Ut.exports={name:"homebridge-config-ui-x",displayName:"Homebridge UI",version:"5.4.2-beta.16",description:"A web based management, configuration and control platform for Homebridge.",author:"oznu <dev@oz.nu>",license:"MIT",funding:[{type:"github",url:"https://github.com/sponsors/oznu"},{type:"paypal",url:"https://paypal.me/oznu"}],repository:{type:"git",url:"git+https://github.com/homebridge/homebridge-config-ui-x.git"},bugs:{url:"https://github.com/homebridge/homebridge-config-ui-x/issues"},keywords:["homebridge-plugin","ui","gui","web","homebridge","homebridge-config-ui-x","ui-x","config-ui-x","homebridge-x","homebridge server","homebridge ui","homebridge-ui","homebridge gui","homebridge-gui","web interface","config ui","management","config editor","linux","macOS","osx","windows","raspberry pi","accessory control","smart home","hb-service"],main:"./dist/index.js",bin:{"hb-service":"dist/bin/hb-service.js"},engines:{node:"^20.19.0 || ^22.12.0 || ^24.0.0",homebridge:"^1.8.0 || ^2.0.0-beta.0"},scripts:{build:"npm run build:server && npm run build:ui","build:server":"rimraf dist && tsc -p tsconfig.build.json","build:ui":"npm run build --prefix ui",check:"npm run check:server && npm run check:ui","check:server":"npm install && npm outdated","check:ui":"npm install --prefix ui && npm outdated --prefix ui","lang-sync":"ts-node scripts/lang-sync.ts",lint:"eslint . --max-warnings=0","lint:fix":"npm run lint -- --fix",prepublishOnly:"npm i --package-lock-only && npm run lint && npm run build",start:"ts-node -r tsconfig-paths/register src/main.ts",test:"vitest run","test-coverage":"npm run test -- --coverage","upgrade-install":"./scripts/upgrade-install.sh",watch:'concurrently "npm run watch:ui" "npm run watch:server"',"watch:server":"nodemon","watch:ui":"npm run start --prefix ui"},dependencies:{"@fastify/helmet":"13.0.1","@fastify/multipart":"9.0.3","@fastify/static":"8.2.0","@homebridge/hap-client":"3.1.1","@homebridge/node-pty-prebuilt-multiarch":"0.13.1","@nestjs/axios":"4.0.1","@nestjs/common":"11.1.6","@nestjs/core":"11.1.6","@nestjs/jwt":"11.0.0","@nestjs/passport":"11.0.5","@nestjs/platform-fastify":"11.1.6","@nestjs/platform-socket.io":"11.1.6","@nestjs/swagger":"11.2.0","@nestjs/websockets":"11.1.6",axios:"1.11.0","bash-color":"0.0.4","class-transformer":"0.5.1","class-validator":"0.14.2",commander:"14.0.0",dayjs:"1.11.13",fastify:"5.5.0","fs-extra":"11.3.1",jsonwebtoken:"9.0.2",lodash:"4.17.21","node-cache":"5.1.2","node-schedule":"2.1.1",ora:"8.2.0",otplib:"12.0.1","p-limit":"7.1.0",passport:"0.7.0","passport-jwt":"4.0.1","reflect-metadata":"0.2.2",rxjs:"7.8.2",semver:"7.7.2",systeminformation:"5.27.7",tail:"2.2.6",tar:"7.4.3","tcp-port-used":"1.0.2",unzipper:"0.12.3"},devDependencies:{"@antfu/eslint-config":"^5.2.1","@nestjs/testing":"^11.1.6","@prettier/plugin-xml":"^3.4.2","@types/fs-extra":"^11.0.4","@types/lodash":"^4.17.20","@types/node":"^24.3.0","@types/node-schedule":"^2.1.8","@types/passport-jwt":"^4.0.1","@types/semver":"^7.7.0","@types/tail":"^2.2.3","@types/tcp-port-used":"^1.0.4","@types/unzipper":"^0.10.11","@vitest/coverage-v8":"^3.2.4",concurrently:"^9.2.0","eslint-plugin-format":"^1.0.1","form-data":"^4.0.4",nodemon:"^3.1.10",rimraf:"^6.0.1","ts-loader":"^9.5.2","ts-node":"^10.9.2","tsconfig-paths":"^4.2.0",typescript:"^5.9.2","unplugin-swc":"^1.5.6",vitest:"^3.2.4"},overrides:{"@nestjs/platform-fastify":{fastify:"^5.5.0"}},maintainers:[{email:"bwp91@icloud.com",name:"bwp91"},{email:"dev@oz.nu",name:"oznu"},{email:"northern.man1@gmail.com",name:"northernman"},{email:"mail@anderl-bauer.de",name:"supereg"},{email:"khaos.tian@gmail.com",name:"khaost"},{email:"erik.baauw@xs4all.nl",name:"ebaauw"},{email:"donavan.becker@icloud.com",name:"donavanbecker"},{email:"dustin.greif@gmail.com",name:"dustin.greif"},{email:"nfarina@gmail.com",name:"nfarina"}],scarfSettings:{enabled:!1}}});var v=function(i){return i[i.State=0]="State",i[i.Transition=1]="Transition",i[i.Sequence=2]="Sequence",i[i.Group=3]="Group",i[i.Animate=4]="Animate",i[i.Keyframes=5]="Keyframes",i[i.Style=6]="Style",i[i.Trigger=7]="Trigger",i[i.Reference=8]="Reference",i[i.AnimateChild=9]="AnimateChild",i[i.AnimateRef=10]="AnimateRef",i[i.Query=11]="Query",i[i.Stagger=12]="Stagger",i}(v||{}),xt="*";function tt(i,s){return{type:v.Trigger,name:i,definitions:s,options:{}}}function P(i,s=null){return{type:v.Animate,styles:s,timings:i}}function Yt(i,s=null){return{type:v.Sequence,steps:i,options:s}}function R(i){return{type:v.Style,styles:i,offset:null}}function H(i,s,t){return{type:v.State,name:i,styles:s,options:t}}function B(i,s,t=null){return{type:v.Transition,expr:i,animation:s,options:t}}var W=class{_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_originalOnDoneFns=[];_originalOnStartFns=[];_started=!1;_destroyed=!1;_finished=!1;_position=0;parentPlayer=null;totalTime;constructor(s=0,t=0){this.totalTime=s+t}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(s=>s()),this._onDoneFns=[])}onStart(s){this._originalOnStartFns.push(s),this._onStartFns.push(s)}onDone(s){this._originalOnDoneFns.push(s),this._onDoneFns.push(s)}onDestroy(s){this._onDestroyFns.push(s)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(s=>s()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(s=>s()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(s){this._position=this.totalTime?s*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(s){let t=s=="start"?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}},X=class{_onDoneFns=[];_onStartFns=[];_finished=!1;_started=!1;_destroyed=!1;_onDestroyFns=[];parentPlayer=null;totalTime=0;players;constructor(s){this.players=s;let t=0,e=0,n=0,o=this.players.length;o==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(a=>{a.onDone(()=>{++t==o&&this._onFinish()}),a.onDestroy(()=>{++e==o&&this._onDestroy()}),a.onStart(()=>{++n==o&&this._onStart()})}),this.totalTime=this.players.reduce((a,d)=>Math.max(a,d.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(s=>s()),this._onDoneFns=[])}init(){this.players.forEach(s=>s.init())}onStart(s){this._onStartFns.push(s)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(s=>s()),this._onStartFns=[])}onDone(s){this._onDoneFns.push(s)}onDestroy(s){this._onDestroyFns.push(s)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(s=>s.play())}pause(){this.players.forEach(s=>s.pause())}restart(){this.players.forEach(s=>s.restart())}finish(){this._onFinish(),this.players.forEach(s=>s.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(s=>s.destroy()),this._onDestroyFns.forEach(s=>s()),this._onDestroyFns=[])}reset(){this.players.forEach(s=>s.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(s){let t=s*this.totalTime;this.players.forEach(e=>{let n=e.totalTime?Math.min(1,t/e.totalTime):1;e.setPosition(n)})}getPosition(){let s=this.players.reduce((t,e)=>t===null||e.totalTime>t.totalTime?e:t,null);return s!=null?s.getPosition():0}beforeDestroy(){this.players.forEach(s=>{s.beforeDestroy&&s.beforeDestroy()})}triggerCallback(s){let t=s=="start"?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}},Ot="!";var _t=["toast-component",""];function Et(i,s){if(i&1){let t=Q();h(0,"button",5),j("click",function(){V(t);let n=c();return z(n.remove())}),h(1,"span",6),f(2,"\xD7"),p()()}}function Ft(i,s){if(i&1&&(Y(0),f(1),K()),i&2){let t=c(2);r(),b("[",t.duplicatesCount+1,"]")}}function jt(i,s){if(i&1&&(h(0,"div"),f(1),S(2,Ft,2,1,"ng-container",4),p()),i&2){let t=c();m(t.options.titleClass),E("aria-label",t.title),r(),b(" ",t.title," "),r(),l("ngIf",t.duplicatesCount)}}function At(i,s){if(i&1&&F(0,"div",7),i&2){let t=c();m(t.options.messageClass),l("innerHTML",t.message,q)}}function Rt(i,s){if(i&1&&(h(0,"div",8),f(1),p()),i&2){let t=c();m(t.options.messageClass),E("aria-label",t.message),r(),b(" ",t.message," ")}}function Ht(i,s){if(i&1&&(h(0,"div"),F(1,"div",9),p()),i&2){let t=c();r(),A("width",t.width()+"%")}}function kt(i,s){if(i&1){let t=Q();h(0,"button",5),j("click",function(){V(t);let n=c();return z(n.remove())}),h(1,"span",6),f(2,"\xD7"),p()()}}function Nt(i,s){if(i&1&&(Y(0),f(1),K()),i&2){let t=c(2);r(),b("[",t.duplicatesCount+1,"]")}}function Mt(i,s){if(i&1&&(h(0,"div"),f(1),S(2,Nt,2,1,"ng-container",4),p()),i&2){let t=c();m(t.options.titleClass),E("aria-label",t.title),r(),b(" ",t.title," "),r(),l("ngIf",t.duplicatesCount)}}function Pt(i,s){if(i&1&&F(0,"div",7),i&2){let t=c();m(t.options.messageClass),l("innerHTML",t.message,q)}}function Bt(i,s){if(i&1&&(h(0,"div",8),f(1),p()),i&2){let t=c();m(t.options.messageClass),E("aria-label",t.message),r(),b(" ",t.message," ")}}function $t(i,s){if(i&1&&(h(0,"div"),F(1,"div",9),p()),i&2){let t=c();r(),A("width",t.width()+"%")}}var et=class{_attachedHost;component;viewContainerRef;injector;constructor(s,t){this.component=s,this.injector=t}attach(s,t){return this._attachedHost=s,s.attach(this,t)}detach(){let s=this._attachedHost;if(s)return this._attachedHost=void 0,s.detach()}get isAttached(){return this._attachedHost!=null}setAttachedHost(s){this._attachedHost=s}},it=class{_attachedPortal;_disposeFn;attach(s,t){return this._attachedPortal=s,this.attachComponentPortal(s,t)}detach(){this._attachedPortal&&this._attachedPortal.setAttachedHost(),this._attachedPortal=void 0,this._disposeFn&&(this._disposeFn(),this._disposeFn=void 0)}setDisposeFn(s){this._disposeFn=s}},st=class{_overlayRef;componentInstance;duplicatesCount=0;_afterClosed=new g;_activate=new g;_manualClose=new g;_resetTimeout=new g;_countDuplicate=new g;constructor(s){this._overlayRef=s}manualClose(){this._manualClose.next(),this._manualClose.complete()}manualClosed(){return this._manualClose.asObservable()}timeoutReset(){return this._resetTimeout.asObservable()}countDuplicate(){return this._countDuplicate.asObservable()}close(){this._overlayRef.detach(),this._afterClosed.next(),this._manualClose.next(),this._afterClosed.complete(),this._manualClose.complete(),this._activate.complete(),this._resetTimeout.complete(),this._countDuplicate.complete()}afterClosed(){return this._afterClosed.asObservable()}isInactive(){return this._activate.isStopped}activate(){this._activate.next(),this._activate.complete()}afterActivate(){return this._activate.asObservable()}onDuplicate(s,t){s&&this._resetTimeout.next(),t&&this._countDuplicate.next(++this.duplicatesCount)}},D=class{toastId;config;message;title;toastType;toastRef;_onTap=new g;_onAction=new g;constructor(s,t,e,n,o,a){this.toastId=s,this.config=t,this.message=e,this.title=n,this.toastType=o,this.toastRef=a,this.toastRef.afterClosed().subscribe(()=>{this._onAction.complete(),this._onTap.complete()})}triggerTap(){this._onTap.next(),this.config.tapToDismiss&&this._onTap.complete()}onTap(){return this._onTap.asObservable()}triggerAction(s){this._onAction.next(s)}onAction(){return this._onAction.asObservable()}},vt={maxOpened:0,autoDismiss:!1,newestOnTop:!0,preventDuplicates:!1,countDuplicates:!1,resetTimeoutOnDuplicate:!1,includeTitleDuplicates:!1,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},closeButton:!1,disableTimeOut:!1,timeOut:5e3,extendedTimeOut:1e3,enableHtml:!1,progressBar:!1,toastClass:"ngx-toastr",positionClass:"toast-top-right",titleClass:"toast-title",messageClass:"toast-message",easing:"ease-in",easeTime:300,tapToDismiss:!0,onActivateTick:!1,progressAnimation:"decreasing"},yt=new ct("ToastConfig"),nt=class extends it{_hostDomElement;_componentFactoryResolver;_appRef;constructor(s,t,e){super(),this._hostDomElement=s,this._componentFactoryResolver=t,this._appRef=e}attachComponentPortal(s,t){let e=this._componentFactoryResolver.resolveComponentFactory(s.component),n;return n=e.create(s.injector),this._appRef.attachView(n.hostView),this.setDisposeFn(()=>{this._appRef.detachView(n.hostView),n.destroy()}),t?this._hostDomElement.insertBefore(this._getComponentRootNode(n),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(n)),n}_getComponentRootNode(s){return s.hostView.rootNodes[0]}},Lt=(()=>{class i{_document=_(Z);_containerElement;ngOnDestroy(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let t=this._document.createElement("div");t.classList.add("overlay-container"),t.setAttribute("aria-live","polite"),this._document.body.appendChild(t),this._containerElement=t}static \u0275fac=function(e){return new(e||i)};static \u0275prov=C({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),ot=class{_portalHost;constructor(s){this._portalHost=s}attach(s,t=!0){return this._portalHost.attach(s,t)}detach(){return this._portalHost.detach()}},Vt=(()=>{class i{_overlayContainer=_(Lt);_componentFactoryResolver=_(dt);_appRef=_(M);_document=_(Z);_paneElements=new Map;create(t,e){return this._createOverlayRef(this.getPaneElement(t,e))}getPaneElement(t="",e){return this._paneElements.get(e)||this._paneElements.set(e,{}),this._paneElements.get(e)[t]||(this._paneElements.get(e)[t]=this._createPaneElement(t,e)),this._paneElements.get(e)[t]}_createPaneElement(t,e){let n=this._document.createElement("div");return n.id="toast-container",n.classList.add(t),n.classList.add("toast-container"),e?e.getContainerElement().appendChild(n):this._overlayContainer.getContainerElement().appendChild(n),n}_createPortalHost(t){return new nt(t,this._componentFactoryResolver,this._appRef)}_createOverlayRef(t){return new ot(this._createPortalHost(t))}static \u0275fac=function(e){return new(e||i)};static \u0275prov=C({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),bt=(()=>{class i{overlay;_injector;sanitizer;ngZone;toastrConfig;currentlyActive=0;toasts=[];overlayContainer;previousToastMessage;index=0;constructor(t,e,n,o,a){this.overlay=e,this._injector=n,this.sanitizer=o,this.ngZone=a,this.toastrConfig=u(u({},t.default),t.config),t.config.iconClasses&&(this.toastrConfig.iconClasses=u(u({},t.default.iconClasses),t.config.iconClasses))}show(t,e,n={},o=""){return this._preBuildNotification(o,t,e,this.applyConfig(n))}success(t,e,n={}){let o=this.toastrConfig.iconClasses.success||"";return this._preBuildNotification(o,t,e,this.applyConfig(n))}error(t,e,n={}){let o=this.toastrConfig.iconClasses.error||"";return this._preBuildNotification(o,t,e,this.applyConfig(n))}info(t,e,n={}){let o=this.toastrConfig.iconClasses.info||"";return this._preBuildNotification(o,t,e,this.applyConfig(n))}warning(t,e,n={}){let o=this.toastrConfig.iconClasses.warning||"";return this._preBuildNotification(o,t,e,this.applyConfig(n))}clear(t){for(let e of this.toasts)if(t!==void 0){if(e.toastId===t){e.toastRef.manualClose();return}}else e.toastRef.manualClose()}remove(t){let e=this._findToast(t);if(!e||(e.activeToast.toastRef.close(),this.toasts.splice(e.index,1),this.currentlyActive=this.currentlyActive-1,!this.toastrConfig.maxOpened||!this.toasts.length))return!1;if(this.currentlyActive<this.toastrConfig.maxOpened&&this.toasts[this.currentlyActive]){let n=this.toasts[this.currentlyActive].toastRef;n.isInactive()||(this.currentlyActive=this.currentlyActive+1,n.activate())}return!0}findDuplicate(t="",e="",n,o){let{includeTitleDuplicates:a}=this.toastrConfig;for(let d of this.toasts){let k=a&&d.title===t;if((!a||k)&&d.message===e)return d.toastRef.onDuplicate(n,o),d}return null}applyConfig(t={}){return u(u({},this.toastrConfig),t)}_findToast(t){for(let e=0;e<this.toasts.length;e++)if(this.toasts[e].toastId===t)return{index:e,activeToast:this.toasts[e]};return null}_preBuildNotification(t,e,n,o){return o.onActivateTick?this.ngZone.run(()=>this._buildNotification(t,e,n,o)):this._buildNotification(t,e,n,o)}_buildNotification(t,e,n,o){if(!o.toastComponent)throw new Error("toastComponent required");let a=this.findDuplicate(n,e,this.toastrConfig.resetTimeoutOnDuplicate&&o.timeOut>0,this.toastrConfig.countDuplicates);if((this.toastrConfig.includeTitleDuplicates&&n||e)&&this.toastrConfig.preventDuplicates&&a!==null)return a;this.previousToastMessage=e;let d=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(d=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));let k=this.overlay.create(o.positionClass,this.overlayContainer);this.index=this.index+1;let rt=e;e&&o.enableHtml&&(rt=this.sanitizer.sanitize(ht.HTML,e));let x=new st(k),$=new D(this.index,o,rt,n,t,x),Ct=[{provide:D,useValue:$}],wt=N.create({providers:Ct,parent:this._injector}),Dt=new et(o.toastComponent,wt),at=k.attach(Dt,o.newestOnTop);x.componentInstance=at.instance;let L={toastId:this.index,title:n||"",message:e||"",toastRef:x,onShown:x.afterActivate(),onHidden:x.afterClosed(),onTap:$.onTap(),onAction:$.onAction(),portal:at};return d||(this.currentlyActive=this.currentlyActive+1,setTimeout(()=>{L.toastRef.activate()})),this.toasts.push(L),L}static \u0275fac=function(e){return new(e||i)(w(yt),w(Vt),w(N),w(gt),w(U))};static \u0275prov=C({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),zt=(()=>{class i{toastrService;toastPackage;ngZone;message;title;options;duplicatesCount;originalTimeout;width=O(-1);toastClasses="";state;get _state(){return this.state()}get displayStyle(){if(this.state().value==="inactive")return"none"}timeout;intervalId;hideTime;sub;sub1;sub2;sub3;constructor(t,e,n){this.toastrService=t,this.toastPackage=e,this.ngZone=n,this.message=e.message,this.title=e.title,this.options=e.config,this.originalTimeout=e.config.timeOut,this.toastClasses=`${e.toastType} ${e.config.toastClass}`,this.sub=e.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=e.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=e.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=e.toastRef.countDuplicate().subscribe(o=>{this.duplicatesCount=o}),this.state=O({value:"inactive",params:{easeTime:this.toastPackage.config.easeTime,easing:"ease-in"}})}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state.update(t=>T(u({},t),{value:"active"})),!(this.options.disableTimeOut===!0||this.options.disableTimeOut==="timeOut")&&this.options.timeOut&&(this.outsideTimeout(()=>this.remove(),this.options.timeOut),this.hideTime=new Date().getTime()+this.options.timeOut,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}updateProgress(){if(this.width()===0||this.width()===100||!this.options.timeOut)return;let t=new Date().getTime(),e=this.hideTime-t;this.width.set(e/this.options.timeOut*100),this.options.progressAnimation==="increasing"&&this.width.update(n=>100-n),this.width()<=0&&this.width.set(0),this.width()>=100&&this.width.set(100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state.update(t=>T(u({},t),{value:"active"})),this.outsideTimeout(()=>this.remove(),this.originalTimeout),this.options.timeOut=this.originalTimeout,this.hideTime=new Date().getTime()+(this.options.timeOut||0),this.width.set(-1),this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10)}remove(){this.state().value!=="removed"&&(clearTimeout(this.timeout),this.state.update(t=>T(u({},t),{value:"removed"})),this.outsideTimeout(()=>this.toastrService.remove(this.toastPackage.toastId),+this.toastPackage.config.easeTime))}tapToast(){this.state().value!=="removed"&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){this.state().value!=="removed"&&this.options.disableTimeOut!=="extendedTimeOut"&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width.set(0))}delayedHideToast(){this.options.disableTimeOut===!0||this.options.disableTimeOut==="extendedTimeOut"||this.options.extendedTimeOut===0||this.state().value==="removed"||(this.outsideTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=new Date().getTime()+(this.options.timeOut||0),this.width.set(-1),this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}outsideTimeout(t,e){this.ngZone?this.ngZone.runOutsideAngular(()=>this.timeout=setTimeout(()=>this.runInsideAngular(t),e)):this.timeout=setTimeout(()=>t(),e)}outsideInterval(t,e){this.ngZone?this.ngZone.runOutsideAngular(()=>this.intervalId=setInterval(()=>this.runInsideAngular(t),e)):this.intervalId=setInterval(()=>t(),e)}runInsideAngular(t){this.ngZone?this.ngZone.run(()=>t()):t()}static \u0275fac=function(e){return new(e||i)(y(bt),y(D),y(U))};static \u0275cmp=G({type:i,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(e,n){e&1&&j("click",function(){return n.tapToast()})("mouseenter",function(){return n.stickAround()})("mouseleave",function(){return n.delayedHideToast()}),e&2&&(mt("@flyInOut",n._state),m(n.toastClasses),A("display",n.displayStyle))},attrs:_t,decls:5,vars:5,consts:[["type","button","class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alert",3,"class","innerHTML",4,"ngIf"],["role","alert",3,"class",4,"ngIf"],[4,"ngIf"],["type","button","aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alert",3,"innerHTML"],["role","alert"],[1,"toast-progress"]],template:function(e,n){e&1&&S(0,Et,3,0,"button",0)(1,jt,3,5,"div",1)(2,At,1,3,"div",2)(3,Rt,2,4,"div",3)(4,Ht,2,2,"div",4),e&2&&(l("ngIf",n.options.closeButton),r(),l("ngIf",n.title),r(),l("ngIf",n.message&&n.options.enableHtml),r(),l("ngIf",n.message&&!n.options.enableHtml),r(),l("ngIf",n.options.progressBar))},dependencies:[J],encapsulation:2,data:{animation:[tt("flyInOut",[H("inactive",R({opacity:0})),H("active",R({opacity:1})),H("removed",R({opacity:0})),B("inactive => active",P("{{ easeTime }}ms {{ easing }}")),B("active => removed",P("{{ easeTime }}ms {{ easing }}"))])]},changeDetection:0})}return i})(),Zt=T(u({},vt),{toastComponent:zt}),qt=(i={})=>ut([{provide:yt,useValue:{default:Zt,config:i}}]),be=(()=>{class i{static forRoot(t={}){return{ngModule:i,providers:[qt(t)]}}static \u0275fac=function(e){return new(e||i)};static \u0275mod=pt({type:i});static \u0275inj=lt({})}return i})();var Gt=(()=>{class i{toastrService;toastPackage;appRef;message;title;options;duplicatesCount;originalTimeout;width=O(-1);toastClasses="";get displayStyle(){return this.state()==="inactive"?"none":null}state=O("inactive");timeout;intervalId;hideTime;sub;sub1;sub2;sub3;constructor(t,e,n){this.toastrService=t,this.toastPackage=e,this.appRef=n,this.message=e.message,this.title=e.title,this.options=e.config,this.originalTimeout=e.config.timeOut,this.toastClasses=`${e.toastType} ${e.config.toastClass}`,this.sub=e.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=e.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=e.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=e.toastRef.countDuplicate().subscribe(o=>{this.duplicatesCount=o})}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state.set("active"),!(this.options.disableTimeOut===!0||this.options.disableTimeOut==="timeOut")&&this.options.timeOut&&(this.timeout=setTimeout(()=>{this.remove()},this.options.timeOut),this.hideTime=new Date().getTime()+this.options.timeOut,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10))),this.options.onActivateTick&&this.appRef.tick()}updateProgress(){if(this.width()===0||this.width()===100||!this.options.timeOut)return;let t=new Date().getTime(),e=this.hideTime-t;this.width.set(e/this.options.timeOut*100),this.options.progressAnimation==="increasing"&&this.width.update(n=>100-n),this.width()<=0&&this.width.set(0),this.width()>=100&&this.width.set(100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state.set("active"),this.options.timeOut=this.originalTimeout,this.timeout=setTimeout(()=>this.remove(),this.originalTimeout),this.hideTime=new Date().getTime()+(this.originalTimeout||0),this.width.set(-1),this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10))}remove(){this.state()!=="removed"&&(clearTimeout(this.timeout),this.state.set("removed"),this.timeout=setTimeout(()=>this.toastrService.remove(this.toastPackage.toastId)))}tapToast(){this.state()!=="removed"&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){this.state()!=="removed"&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width.set(0))}delayedHideToast(){this.options.disableTimeOut===!0||this.options.disableTimeOut==="extendedTimeOut"||this.options.extendedTimeOut===0||this.state()==="removed"||(this.timeout=setTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=new Date().getTime()+(this.options.timeOut||0),this.width.set(-1),this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10)))}static \u0275fac=function(e){return new(e||i)(y(bt),y(D),y(M))};static \u0275cmp=G({type:i,selectors:[["","toast-component",""]],hostVars:4,hostBindings:function(e,n){e&1&&j("click",function(){return n.tapToast()})("mouseenter",function(){return n.stickAround()})("mouseleave",function(){return n.delayedHideToast()}),e&2&&(m(n.toastClasses),A("display",n.displayStyle))},attrs:_t,decls:5,vars:5,consts:[["type","button","class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alert",3,"class","innerHTML",4,"ngIf"],["role","alert",3,"class",4,"ngIf"],[4,"ngIf"],["type","button","aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alert",3,"innerHTML"],["role","alert"],[1,"toast-progress"]],template:function(e,n){e&1&&S(0,kt,3,0,"button",0)(1,Mt,3,5,"div",1)(2,Pt,1,3,"div",2)(3,Bt,2,4,"div",3)(4,$t,2,2,"div",4),e&2&&(l("ngIf",n.options.closeButton),r(),l("ngIf",n.title),r(),l("ngIf",n.message&&n.options.enableHtml),r(),l("ngIf",n.message&&!n.options.enableHtml),r(),l("ngIf",n.options.progressBar))},dependencies:[J],encapsulation:2,changeDetection:0})}return i})(),Te=T(u({},vt),{toastComponent:Gt});var I={serverTarget:Tt().version,production:!0,socket:"",api:{base:"/api",socket:`${window.location.protocol==="http:"?"ws://":"wss://"}${window.location.host}`,origin:window.location.origin},jwt:{tokenKey:"access_token",allowedDomains:[document.location.host],disallowedRoutes:[`${window.location.protocol}//${document.location.host}/api/auth/login`]},apiHttpOptions:{},owm:{appid:"fec67b55f7f74deaa28df89ba6a60821"}};var Fe=(()=>{class i{$http=_(ft);get(t,e){return this.$http.get(`${I.api.base}${t}`,e)}post(t,e,n){return this.$http.post(`${I.api.base}${t}`,e,n)}put(t,e,n){return this.$http.put(`${I.api.base}${t}`,e,n)}patch(t,e,n){return this.$http.patch(`${I.api.base}${t}`,e,n)}delete(t,e){return this.$http.delete(`${I.api.base}${t}`,e)}static \u0275fac=function(e){return new(e||i)};static \u0275prov=C({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();export{v as a,xt as b,tt as c,P as d,Yt as e,R as f,B as g,W as h,X as i,Ot as j,bt as k,be as l,I as m,Fe as n};
|
package/public/chunk-D3JHDB7S.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as _}from"./chunk-G7FA4DP4.js";import{Ec as x,Hb as s,Ib as b,Jb as f,Jc as i,Kc as n,Ob as h,Pb as t,Qb as a,Rb as p,ab as e,bc as g,id as S,mb as w,qc as r,rc as m,sc as l}from"./chunk-H36QJYLQ.js";var k=(o,v)=>({"fa-chevron-down":o,"fa-chevron-right":v});function E(o,v){o&1&&(t(0,"ul",6)(1,"li",9)(2,"span",10),r(3),i(4,"translate"),p(5,"br"),t(6,"small",11),r(7),i(8,"translate"),a()(),t(9,"a",12),i(10,"translate"),p(11,"i",13),a()(),t(12,"li",9)(13,"span",10),r(14),i(15,"translate"),p(16,"br"),t(17,"small",11),r(18),i(19,"translate"),a()(),t(20,"a",14),i(21,"translate"),p(22,"i",13),a()(),t(23,"li",9)(24,"span",10),r(25),i(26,"translate"),p(27,"br"),t(28,"small",11),r(29),i(30,"translate"),a()(),t(31,"a",15),i(32,"translate"),p(33,"i",13),a()(),t(34,"li",9)(35,"span",10),r(36),i(37,"translate"),p(38,"br"),t(39,"small",11),r(40),i(41,"translate"),a()(),t(42,"a",16),i(43,"translate"),p(44,"i",13),a()()()),o&2&&(e(3),l(" ",n(4,12,"support.links.documentation")),e(4),m(n(8,14,"support.links.documentation_sub")),e(2),s("aria-label",n(10,16,"support.links.documentation")),e(5),l(" ",n(15,18,"support.links.issue")),e(4),m(n(19,20,"support.links.issue_sub")),e(2),s("aria-label",n(21,22,"support.links.issue")),e(5),l(" ",n(26,24,"support.links.discord")),e(4),m(n(30,26,"support.links.discord_sub")),e(2),s("aria-label",n(32,28,"support.links.discord")),e(5),l(" ",n(37,30,"support.links.reddit")),e(4),m(n(41,32,"support.links.reddit_sub")),e(2),s("aria-label",n(43,34,"support.links.reddit")))}function I(o,v){o&1&&(t(0,"ul",8)(1,"li",9)(2,"span",10),r(3),i(4,"translate"),p(5,"br"),t(6,"small",11),r(7),i(8,"translate"),a()(),t(9,"a",17),i(10,"translate"),p(11,"i",13),a()(),t(12,"li",9)(13,"span",10),r(14),i(15,"translate"),p(16,"br"),t(17,"small",11),r(18),i(19,"translate"),a()(),t(20,"a",18),i(21,"translate"),p(22,"i",13),a()(),t(23,"li",9)(24,"span",10),r(25),i(26,"translate"),p(27,"br"),t(28,"small",11),r(29),i(30,"translate"),a()(),t(31,"a",19),i(32,"translate"),p(33,"i",13),a()(),t(34,"li",9)(35,"span",10),r(36),i(37,"translate"),p(38,"br"),t(39,"small",11),r(40),i(41,"translate"),a()(),t(42,"a",20),i(43,"translate"),p(44,"i",13),a()(),t(45,"li",9)(46,"span",10),r(47),i(48,"translate"),p(49,"br"),t(50,"small",11),r(51),i(52,"translate"),a()(),t(53,"a",21),i(54,"translate"),p(55,"i",13),a()()()),o&2&&(e(3),l(" ",n(4,15,"support.dev.item_swagger")),e(4),l(" ",n(8,17,"support.dev.item_swagger_sub")," "),e(2),s("aria-label",n(10,19,"support.dev.item_swagger")),e(5),l(" ",n(15,21,"support.dev.api")),e(4),m(n(19,23,"support.dev.api_sub")),e(2),s("aria-label",n(21,25,"support.dev.api")),e(5),l(" ",n(26,27,"support.dev.api_hap")),e(4),m(n(30,29,"support.dev.api_hap_sub")),e(2),s("aria-label",n(32,31,"support.dev.api_hap")),e(5),l(" ",n(37,33,"support.dev.template")),e(4),l(" ",n(41,35,"support.dev.template_sub")," "),e(2),s("aria-label",n(43,37,"support.dev.template")),e(5),l(" ",n(48,39,"support.dev.verified")),e(4),m(n(52,41,"support.dev.verified_sub")),e(2),s("aria-label",n(54,43,"support.dev.verified")))}var T=(()=>{class o{showFields={general:!0,dev:!0};toggleSection(u){this.showFields[u]=!this.showFields[u]}static \u0275fac=function(c){return new(c||o)};static \u0275cmp=w({type:o,selectors:[["ng-component"]],decls:18,vars:23,consts:[[1,"d-flex","justify-content-between"],[1,"primary-text","m-0"],[1,"mb-4"],["role","button","tabindex","0",1,"mt-3","hover-pointer",3,"click"],[1,"primary-text"],[1,"fa","fa-fw",3,"ngClass"],["id","fieldsGeneral",1,"list-group","list-group-box","mt-2","mx-0"],[1,"pb-3"],["id","fieldsDev",1,"list-group","list-group-box","mt-2","mx-0"],[1,"list-group-item","d-flex","justify-content-between","align-items-center"],[1,"pe-2"],[1,"grey-text","pe-2"],["href","https://github.com/homebridge/homebridge/wiki","target","_blank","rel","noopener noreferrer",1,"btn","btn-primary","waves-effect","m-0",2,"min-width","50px"],[1,"fas","fa-fw","fa-external-link-alt"],["href","https://github.com/homebridge/homebridge-config-ui-x/issues/new/choose","target","_blank","rel","noopener noreferrer",1,"btn","btn-primary","waves-effect","m-0",2,"min-width","50px"],["href","https://discord.gg/C87Pvq3","target","_blank","rel","noopener noreferrer",1,"btn","btn-primary","waves-effect","m-0",2,"min-width","50px"],["href","https://www.reddit.com/r/homebridge/","target","_blank","rel","noopener noreferrer",1,"btn","btn-primary","waves-effect","m-0",2,"min-width","50px"],["href","/swagger","target","_blank","rel","noopener noreferrer",1,"btn","btn-primary","waves-effect","m-0",2,"min-width","50px"],["href","https://developers.homebridge.io/#/","target","_blank","rel","noopener noreferrer",1,"btn","btn-primary","waves-effect","m-0",2,"min-width","50px"],["href","https://developers.homebridge.io/HAP-NodeJS/","target","_blank","rel","noopener noreferrer",1,"btn","btn-primary","waves-effect","m-0",2,"min-width","50px"],["href","https://github.com/homebridge/homebridge-plugin-template","target","_blank","rel","noopener noreferrer",1,"btn","btn-primary","waves-effect","m-0",2,"min-width","50px"],["href","https://github.com/homebridge/homebridge/wiki/Verified-Plugins","target","_blank","rel","noopener noreferrer",1,"btn","btn-primary","waves-effect","m-0",2,"min-width","50px"]],template:function(c,d){c&1&&(t(0,"div",0)(1,"h3",1),r(2),i(3,"translate"),a()(),t(4,"div",2)(5,"div",3),g("click",function(){return d.toggleSection("general")}),t(6,"h5",4),p(7,"i",5),r(8),i(9,"translate"),a()(),b(10,E,45,36,"ul",6),a(),t(11,"div",7)(12,"div",3),g("click",function(){return d.toggleSection("dev")}),t(13,"h5",4),p(14,"i",5),r(15),i(16,"translate"),a()(),b(17,I,56,45,"ul",8),a()),c&2&&(e(2),m(n(3,11,"support.title")),e(3),s("aria-expanded",d.showFields.general?"true":"false")("aria-controls","fieldsGeneral"),e(2),h("ngClass",x(17,k,d.showFields.general,!d.showFields.general)),e(),l(" ",n(9,13,"support.links.title")," "),e(2),f(d.showFields.general?10:-1),e(2),s("aria-expanded",d.showFields.dev?"true":"false")("aria-controls","fieldsDev"),e(2),h("ngClass",x(20,k,d.showFields.dev,!d.showFields.dev)),e(),l(" ",n(16,15,"support.dev.title")," "),e(2),f(d.showFields.dev?17:-1))},dependencies:[S,_],encapsulation:2})}return o})();export{T as SupportComponent};
|
package/public/chunk-DTWH4S27.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as n}from"./chunk-MZ3XHPWZ.js";import"./chunk-IOTUAYMI.js";import"./chunk-BYKIXKPO.js";import"./chunk-GWXZ52WY.js";import"./chunk-BSUFNH7A.js";import"./chunk-77JZBWAC.js";import"./chunk-UGMDVR5V.js";import"./chunk-AE7VAWOU.js";import"./chunk-V2P2FPJ7.js";import"./chunk-BU65ZOCD.js";import"./chunk-YATJTZML.js";import"./chunk-ZHPB347D.js";import"./chunk-7OTNPUAL.js";import"./chunk-RYEUSRBX.js";import"./chunk-7BRVYYLY.js";import"./chunk-VY4A2U5R.js";import"./chunk-5B67RG5C.js";import{g as r}from"./chunk-UOLP7IQJ.js";import"./chunk-WUPGTEQ4.js";import"./chunk-C3MIVQCG.js";import"./chunk-G7FA4DP4.js";import"./chunk-6GMXEQVA.js";import{ga as t,nb as i}from"./chunk-H36QJYLQ.js";var l=[{path:"",loadComponent:()=>import("./chunk-OQGXXIW6.js").then(o=>o.PluginsComponent)}],u=(()=>{class o{static \u0275fac=function(e){return new(e||o)};static \u0275mod=i({type:o});static \u0275inj=t({imports:[r.forChild(l),r]})}return o})();var f=(()=>{class o{static \u0275fac=function(e){return new(e||o)};static \u0275mod=i({type:o});static \u0275inj=t({imports:[n,u]})}return o})();export{f as PluginsModule};
|
package/public/chunk-EFN7OX2S.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import{a as xe}from"./chunk-5TCYRJ6A.js";import{b as B,e as Ce,f as ve,g as Pe}from"./chunk-GWXZ52WY.js";import{a as he,b as be}from"./chunk-BSUFNH7A.js";import{a as we}from"./chunk-77JZBWAC.js";import{a as je}from"./chunk-V2P2FPJ7.js";import{m as ge,n as ue,t as D}from"./chunk-RYEUSRBX.js";import{B as fe,C as pe,c as de,e as ce,l as me}from"./chunk-7BRVYYLY.js";import{b as _e,d as I}from"./chunk-UOLP7IQJ.js";import{b as ye}from"./chunk-WUPGTEQ4.js";import{k as P,n as O}from"./chunk-C3MIVQCG.js";import{a as R,b as j}from"./chunk-G7FA4DP4.js";import"./chunk-6GMXEQVA.js";import{Ec as U,Hb as w,Ib as v,Jb as x,Jc as s,Kc as l,Lb as ee,Lc as z,Mb as te,Nb as ie,Ob as g,Pb as a,Qb as d,Rb as f,_b as S,a as Y,ab as r,b as G,bc as b,d as Q,dc as m,fb as Z,g as X,h as C,id as ae,ka as p,mb as A,oc as oe,pd as le,qa as u,qc as _,ra as h,rc as k,sc as T,w as $,xc as ne,yc as re,zc as se}from"./chunk-H36QJYLQ.js";var $e=X(Pe(),1);var Ee=X(je(),1);var Se=(n,y)=>({"fa-trash":n,"fa-cog fa-spin":y});function Oe(n,y){n&1&&(a(0,"div",13),f(1,"i",20),d())}function He(n,y){if(n&1){let e=S();a(0,"li",9)(1,"span"),_(2),s(3,"date"),f(4,"br"),a(5,"span",21),_(6),s(7,"date"),d()(),a(8,"span",22)(9,"button",25),s(10,"translate"),s(11,"translate"),b("click",function(){let i=u(e).$implicit,o=m(2);return h(o.restore(i.id))}),f(12,"i",26),d(),a(13,"button",27),s(14,"translate"),s(15,"translate"),b("click",function(){let i=u(e).$implicit,o=m(2);return h(o.download(i.id))}),f(16,"i",28),d(),a(17,"button",23),s(18,"translate"),s(19,"translate"),b("click",function(){let i=u(e).$implicit,o=m(2);return h(o.delete(i.id))}),f(20,"i",24),d()()()}if(n&2){let e=y.$implicit,t=m(2);r(2),T(" ",z(3,15,e.timestamp,"mediumDate")),r(4),k(z(7,18,e.timestamp,"shortTime")),r(3),g("disabled",t.clicked||t.deleting)("ngbTooltip",l(10,21,"config.restore.copy_to_editor"))("openDelay",150),w("aria-label",l(11,23,"config.restore.copy_to_editor")),r(4),g("disabled",t.clicked||t.deleting)("ngbTooltip",l(14,25,"form.button_download"))("openDelay",150),w("aria-label",l(15,27,"form.button_download")),r(4),g("disabled",t.clicked||t.deleting)("ngbTooltip",l(18,29,"form.button_delete"))("openDelay",150),w("aria-label",l(19,31,"form.button_delete")),r(3),g("ngClass",U(33,Se,e.id!==t.deleting,e.id===t.deleting))}}function Ne(n,y){if(n&1){let e=S();a(0,"ul",14),te(1,He,21,36,"li",9,ee),a(3,"li",9)(4,"span"),_(5),s(6,"translate"),f(7,"br"),a(8,"span",21),_(9),s(10,"translate"),d()(),a(11,"span",22)(12,"button",23),s(13,"translate"),s(14,"translate"),b("click",function(){u(e);let i=m();return h(i.deleteAllBackups())}),f(15,"i",24),d()()()()}if(n&2){let e=m();r(),ie(e.backupList),r(4),T(" ",l(6,7,"form.button_delete_all")),r(4),T(" ",l(10,9,"common.labels.no_confirmation")," "),r(3),g("disabled",e.clicked||e.deleting)("ngbTooltip",l(13,11,"form.button_delete_all"))("openDelay",150),w("aria-label",l(14,13,"form.button_delete")),r(3),g("ngClass",U(15,Se,e.deleting!=="all",e.deleting==="all"))}}var ke=(()=>{class n{$activeModal=p(ge);$api=p(O);$router=p(I);$toastr=p(P);$translate=p(R);currentConfig;fromSettings=!1;loading=!0;backupList=[];clicked=!1;deleting=null;ngOnInit(){this.getConfigBackups()}getConfigBackups(){return C(this,null,function*(){try{let e=yield $(this.$api.get("/config-editor/backups"));this.loading=!1,this.backupList=e}catch(e){this.loading=!1,console.error(e),this.$toastr.error(e.error?.message||e.message,this.$translate.instant("toast.title_error")),this.dismissModal()}})}restore(e){return this.$activeModal.close(e)}download(e){return C(this,null,function*(){this.clicked=!0;try{let t=yield $(this.$api.get(`/config-editor/backups/${e}`)),i=JSON.stringify(t,null,4),o=new Blob([i],{type:"application/json"}),E=`config-backup-${e}.json`;(0,Ee.saveAs)(o,E),this.clicked=!1}catch(t){this.clicked=!1,this.$toastr.error(t.error?.message||t.message,this.$translate.instant("toast.title_error")),console.error(t)}})}downloadCurrentConfig(){let e=`data:text/json;charset=utf-8,${encodeURIComponent(this.currentConfig)}`,t=document.createElement("a");t.setAttribute("href",e),t.setAttribute("download","config.json"),document.body.appendChild(t),t.click(),t.remove()}delete(e){return C(this,null,function*(){this.deleting=e;try{yield $(this.$api.delete(`/config-editor/backups/${e}`)),yield this.getConfigBackups(),this.deleting=null}catch(t){this.deleting=null,this.$toastr.error(t.error?.message||t.message,this.$translate.instant("toast.title_error")),console.error(t)}})}deleteAllBackups(){return C(this,null,function*(){this.deleting="all";try{yield $(this.$api.delete("/config-editor/backups")),this.$toastr.success(this.$translate.instant("config.restore.toast_backups_deleted"),this.$translate.instant("toast.title_success")),this.backupList=[],this.deleting=null}catch(e){this.$toastr.error(e.error?.message||e.message,this.$translate.instant("toast.title_error")),console.error(e),this.deleting=null}})}dismissModal(){this.fromSettings&&this.$router.navigate(["/settings"]),this.$activeModal.dismiss("Dismiss")}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=A({type:n,selectors:[["ng-component"]],inputs:{currentConfig:"currentConfig",fromSettings:"fromSettings"},decls:40,vars:31,consts:[[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],["type","button","data-bs-dismiss","modal",1,"btn-close",3,"click","disabled"],[1,"modal-body"],[1,"text-center","mb-3"],[1,"fas","fa-fw","fa-history","primary-text",2,"font-size","75px"],[1,"mb-3"],[1,"list-group","list-group-box","mb-0"],[1,"list-group-item","d-flex","justify-content-between","align-items-center"],[1,"grey-text"],[1,"btn","btn-primary","m-0","ms-3",3,"click","disabled"],[1,"fas","fa-fw","fa-arrow-right"],[1,"text-center","primary-text"],[1,"list-group","list-group-box","mt-3"],[1,"modal-footer","justify-content-between"],[1,"text-start"],[1,"text-center"],["type","button","data-bs-dismiss","modal",1,"btn","btn-elegant",3,"click","disabled"],[1,"text-end"],[1,"fa","fa-fw","fa-cog","fa-spin","mt-3",2,"font-size","75px"],[1,"grey-text","small"],[2,"display","flex","flex-wrap","nowrap"],["placement","bottom","container","modal","triggers","hover",1,"btn","btn-danger","m-0","ms-2",3,"click","disabled","ngbTooltip","openDelay"],[1,"fas","fa-fw",3,"ngClass"],["placement","bottom","container","modal","triggers","hover",1,"btn","btn-primary","m-0","ms-3",3,"click","disabled","ngbTooltip","openDelay"],[1,"fas","fa-fw","fa-history"],["placement","bottom","container","modal","triggers","hover",1,"btn","btn-primary","m-0","ms-2",3,"click","disabled","ngbTooltip","openDelay"],[1,"fas","fa-fw","fa-download"]],template:function(t,i){t&1&&(a(0,"div",0)(1,"div",1)(2,"h5",2),_(3),s(4,"translate"),d(),a(5,"button",3),s(6,"translate"),b("click",function(){return i.dismissModal()}),d()(),a(7,"div",4)(8,"div",5),f(9,"i",6),d(),a(10,"ul",7)(11,"li"),_(12),s(13,"translate"),d(),a(14,"li"),_(15),s(16,"translate"),d()(),a(17,"ul",8)(18,"li",9)(19,"div")(20,"span"),_(21),s(22,"translate"),d(),f(23,"br"),a(24,"small",10),_(25),s(26,"translate"),d()(),a(27,"button",11),s(28,"translate"),b("click",function(){return i.downloadCurrentConfig()}),f(29,"i",12),d()()(),v(30,Oe,2,0,"div",13)(31,Ne,16,18,"ul",14),d(),a(32,"div",15),f(33,"div",16),a(34,"div",17)(35,"button",18),s(36,"translate"),b("click",function(){return i.dismissModal()}),_(37),s(38,"translate"),d()(),f(39,"div",19),d()()),t&2&&(r(3),k(l(4,13,"config.restore.title")),r(2),g("disabled",i.clicked||i.deleting),w("aria-label",l(6,15,"form.button_close")),r(7),k(l(13,17,"config.restore.help_1")),r(3),k(l(16,19,"config.restore.help_2")),r(6),k(l(22,21,"form.button_download")),r(4),k(l(26,23,"config.restore.download")),r(2),g("disabled",i.clicked||i.deleting),w("aria-label",l(28,25,"backup.backup_now")),r(3),x(i.loading?30:i.backupList.length?31:-1),r(5),g("disabled",i.clicked||i.deleting),w("aria-label",l(36,27,"form.button_close")),r(2),T(" ",l(38,29,"form.button_close")," "))},dependencies:[D,ae,pe,le,j],encapsulation:2})}return n})();function qe(n,y){if(n&1){let e=S();a(0,"button",13),s(1,"translate"),s(2,"translate"),b("click",function(){u(e);let i=m();return h(i.onCancelRestore())}),f(3,"i",14),d()}if(n&2){let e=m();g("disabled",e.saveInProgress)("openDelay",150)("ngbTooltip",l(1,4,"form.button_cancel")),w("aria-label",l(2,6,"form.button_cancel"))}}function Fe(n,y){if(n&1){let e=S();a(0,"button",15),s(1,"translate"),s(2,"translate"),b("click",function(){u(e);let i=m();return h(i.onRestore())}),f(3,"i",16),d()}n&2&&(g("openDelay",150)("ngbTooltip",l(1,3,"form.button_restore")),w("aria-label",l(2,5,"form.button_restore")))}function Je(n,y){if(n&1){let e=S();a(0,"button",15),s(1,"translate"),s(2,"translate"),b("click",function(){u(e);let i=m();return h(i.toggleSideBySide())}),f(3,"i",17),d()}if(n&2){let e=m();g("openDelay",150)("ngbTooltip",l(1,7,e.renderSideBySide?"config.restore.view_inline":"config.restore.view_side_by_side")),w("aria-label",l(2,9,e.renderSideBySide?"config.restore.view_inline":"config.restore.view_side_by_side")),r(3),oe("fa-columns",!e.renderSideBySide)("fa-bars",e.renderSideBySide)}}function Le(n,y){n&1&&f(0,"i",8)}function Ue(n,y){n&1&&f(0,"i",9)}function ze(n,y){if(n&1){let e=S();a(0,"ngx-monaco-editor",18),b("onInit",function(i){u(e);let o=m();return h(o.onEditorInit(i))})("keydown.control.s",function(i){u(e);let o=m();return i.preventDefault(),h(o.onSave())})("keydown.meta.s",function(i){u(e);let o=m();return i.preventDefault(),h(o.onSave())}),d()}if(n&2){let e=m();g("options",e.editorOptions)("model",e.monacoEditorModel)}}function Ke(n,y){if(n&1){let e=S();a(0,"ngx-monaco-diff-editor",19),b("onInit",function(i){u(e);let o=m();return h(o.onInitDiffEditor(i))})("keydown.control.s",function(i){u(e);let o=m();return i.preventDefault(),h(o.onSave())})("keydown.meta.s",function(i){u(e);let o=m();return i.preventDefault(),h(o.onSave())}),d()}if(n&2){let e=m();g("options",e.editorOptions)("originalModel",e.diffOriginalModel)("modifiedModel",e.diffModifiedModel)}}function We(n,y){if(n&1){let e=S();a(0,"textarea",20),se("ngModelChange",function(i){u(e);let o=m();return re(o.homebridgeConfig,i)||(o.homebridgeConfig=i),h(i)}),_(1," "),d()}if(n&2){let e=m();ne("ngModel",e.homebridgeConfig)}}var $t=(()=>{class n{$api=p(O);$md=p(we);$modal=p(ue);$monacoEditor=p(xe);$route=p(_e);$renderer=p(Z);$router=p(I);$settings=p(ye);$toastr=p(P);$translate=p(R);editorDecorations=[];lastHeight;visualViewPortEventCallback;latestSavedConfig;childBridgesToRestart=[];hbPendingRestart=!1;homebridgeConfig;originalConfig;saveInProgress;isMobile=!1;monacoEditor;editorOptions;monacoEditorModel;diffOriginalModel;diffModifiedModel;renderSideBySide=!1;constructor(){this.isMobile=this.$md.detect.mobile()}ngOnInit(){this.editorOptions={language:"json",theme:this.$settings.actualLightingMode==="dark"?"vs-dark":"vs-light",renderSideBySide:this.renderSideBySide,renderIndicators:!0,ignoreTrimWhitespace:!1,glyphMargin:!0};let e=document.querySelector(".content");this.$renderer.setStyle(e,"height","100%"),this.visualViewPortEventCallback=()=>this.visualViewPortChanged(),this.lastHeight=window.innerHeight,window.visualViewport&&!this.isMobile&&(window.visualViewport.addEventListener("resize",this.visualViewPortEventCallback,!0),this.$md.disableTouchMove()),this.visualViewPortEventCallback=()=>this.visualViewPortChanged(),this.lastHeight=window.innerHeight,window.visualViewport&&!this.isMobile&&(window.visualViewport.addEventListener("resize",this.visualViewPortEventCallback,!0),this.$md.disableTouchMove()),this.$route.data.subscribe(i=>{this.homebridgeConfig=i.config,this.latestSavedConfig=JSON.parse(i.config),this.diffModifiedModel&&this.updateDiffModels()}),this.monacoEditorModel={value:"{}",language:"json",uri:window.monaco?window.monaco.Uri.parse("a://homebridge/config.json"):void 0},this.diffOriginalModel={code:"",language:"json"},this.diffModifiedModel={code:this.homebridgeConfig||"{}",language:"json"},window.monaco?this.setMonacoEditorModel():this.$monacoEditor.readyEvent.subscribe({next:()=>this.setMonacoEditorModel()});let{action:t}=this.$router.parseUrl(this.$router.url).queryParams;if(t){switch(t){case"restore":{this.onRestore(!0);break}}this.$router.navigate([],{queryParams:{},replaceUrl:!0,queryParamsHandling:""})}}onEditorInit(e){window.editor=e,this.monacoEditor=e,this.monacoEditor.getModel().setValue(this.homebridgeConfig)}onInitDiffEditor(e){this.monacoEditor=e.getModifiedEditor(),this.updateDiffModels(),window.editor=e}updateDiffModels(){if(this.diffOriginalModel&&(this.diffOriginalModel.code=this.originalConfig||""),this.diffModifiedModel&&(this.diffModifiedModel.code=this.homebridgeConfig||"{}"),window.editor&&window.editor.getOriginalEditor){let e=window.editor.getOriginalEditor(),t=window.editor.getModifiedEditor();if(e&&t){let i=e.getModel(),o=t.getModel();i&&i.setValue(this.originalConfig||""),o&&o.setValue(this.homebridgeConfig||"{}")}}}onSave(){return C(this,null,function*(){if(!this.saveInProgress){this.monacoEditor&&(this.editorDecorations=this.monacoEditor.deltaDecorations(this.editorDecorations,[])),this.saveInProgress=!0;try{if(!this.isMobile){yield this.monacoEditor.getAction("editor.action.formatDocument").run();let t=window.monaco.editor.getModelMarkers({owner:"json"});for(let i of t)if(i.message==="Duplicate object key"){this.saveInProgress=!1,this.$toastr.error(this.$translate.instant("config.config_invalid_json"),this.$translate.instant("toast.title_error"));return}this.homebridgeConfig=this.monacoEditor.getModel().getValue()}let e=this.parseConfigFromEditor();this.homebridgeConfig=JSON.stringify(e,null,4),typeof e.bridge!="object"?this.$toastr.error(this.$translate.instant("config.config_bridge_missing"),this.$translate.instant("toast.title_error")):/^(?:[0-9A-F]{2}:){5}[0-9A-F]{2}$/i.test(e.bridge.username)?e.accessories&&!Array.isArray(e.accessories)?this.$toastr.error(this.$translate.instant("config.config_accessory_must_be_array"),this.$translate.instant("toast.title_error")):e.platforms&&!Array.isArray(e.platforms)?this.$toastr.error(this.$translate.instant("config.config_platform_must_be_array"),this.$translate.instant("toast.title_error")):e.platforms&&Array.isArray(e.platforms)&&!this.validateSection(e.platforms,"platform")||e.accessories&&Array.isArray(e.accessories)&&!this.validateSection(e.accessories,"accessory")||e.plugins&&Array.isArray(e.plugins)&&!this.validatePlugins(e.plugins,"plugins")||e.disabledPlugins&&Array.isArray(e.disabledPlugins)&&!this.validatePlugins(e.disabledPlugins,"disabledPlugins")||(yield this.saveConfig(e),this.originalConfig=""):this.$toastr.error(this.$translate.instant("config.config_username_error"),this.$translate.instant("toast.title_error"))}catch(e){console.error(e),this.$toastr.error(this.$translate.instant("config.config_invalid_json"),this.$translate.instant("toast.title_error"))}this.saveInProgress=!1}})}onRestore(e=!1){let t=this.$modal.open(ke,{size:"lg",backdrop:"static"});t.componentInstance.currentConfig=this.homebridgeConfig,t.componentInstance.fromSettings=e,t.result.then(i=>{this.originalConfig||(this.originalConfig=this.homebridgeConfig,this.updateDiffModels()),this.$api.get(`/config-editor/backups/${i}`).subscribe({next:o=>{this.$toastr.info(this.$translate.instant("config.restore.confirm"),this.$translate.instant("config.title_backup_loaded")),this.homebridgeConfig=JSON.stringify(o,null,4),this.updateDiffModels(),this.monacoEditor&&window.editor.modifiedEditor&&(this.editorDecorations=this.monacoEditor.deltaDecorations(this.editorDecorations,[]),this.monacoEditor.executeEdits("beautifier",[{identifier:"delete",range:new monaco.Range(1,1,this.monacoEditor.getModel().getLineCount()+10,1),text:"",forceMoveMarkers:!0}]),this.monacoEditor.executeEdits("beautifier",[{identifier:"insert",range:new monaco.Range(1,1,1,1),text:this.homebridgeConfig,forceMoveMarkers:!0}]))},error:o=>{console.error(o),this.$toastr.error(o.error?.message||this.$translate.instant("backup.load_error"),this.$translate.instant("toast.title_error"))}})}).catch(()=>{})}onCancelRestore(){if(window.editor&&window.editor.dispose)try{window.editor.dispose(),window.editor=void 0}catch{}this.homebridgeConfig=this.originalConfig,this.originalConfig="",this.renderSideBySide&&this.toggleSideBySide(),this.updateDiffModels(),this.onRestore()}toggleSideBySide(){this.renderSideBySide=!this.renderSideBySide,this.editorOptions=G(Y({},this.editorOptions),{renderSideBySide:this.renderSideBySide})}ngOnDestroy(){let e=document.querySelector(".content");this.$renderer.removeStyle(e,"height"),window.visualViewport&&(window.visualViewport.removeEventListener("resize",this.visualViewPortEventCallback,!0),this.$md.enableTouchMove());try{if(window.editor&&window.editor.dispose&&(window.editor.dispose(),window.editor=void 0),window.monaco){let t=window.monaco.Uri.parse("file:///original.json"),i=window.monaco.Uri.parse("file:///modified.json"),o=window.monaco.editor.getModel(t);o&&o.dispose();let E=window.monaco.editor.getModel(i);E&&E.dispose()}this.monacoEditor&&this.monacoEditor.dispose()}catch{}}validateSection(e,t){for(let i of e){if(typeof i!="object"||Array.isArray(i))return this.$toastr.error(this.$translate.instant("config.error_blocks_objects",{type:t}),this.$translate.instant("toast.title_error")),this.highlightOffendingArrayItem(i),!1;if(!i[t])return this.$toastr.error(this.$translate.instant("config.error_blocks_type",{type:t}),this.$translate.instant("toast.title_error")),this.highlightOffendingArrayItem(i),!1;if(typeof i[t]!="string")return this.$toastr.error(this.$translate.instant("config.error_string_type",{type:t}),this.$translate.instant("toast.title_error")),this.highlightOffendingArrayItem(i),!1}return!0}validatePlugins(e,t){for(let i of e)if(typeof i!="string")return this.$toastr.error(this.$translate.instant("config.error_string_array",{key:t}),this.$translate.instant("toast.title_error")),!1;return!0}highlightOffendingArrayItem(e){this.monacoEditor&&(e=JSON.stringify(e,null,4).split(`
|
|
2
|
-
`).map(t=>` ${t}`).join(`
|
|
3
|
-
`),setTimeout(()=>{let t=this.monacoEditor.getModel().findMatches(e);if(t.length){let i=t[0].range,o=new monaco.Range(i.startLineNumber,i.startColumn,i.endLineNumber,i.endColumn);this.editorDecorations=this.monacoEditor.deltaDecorations(this.editorDecorations,[{range:o,options:{isWholeLine:!0,linesDecorationsClassName:"hb-monaco-editor-line-error"}}])}},200))}setMonacoEditorModel(){if(window.monaco.languages.json.jsonDefaults.diagnosticsOptions.schemas.some(t=>t.uri==="http://homebridge/config.json"))return;let e=monaco.Uri.parse("a://homebridge/config.json");window.monaco.languages.json.jsonDefaults.setDiagnosticsOptions({allowComments:!1,validate:!0,schemas:[{uri:"http://homebridge/config.json",fileMatch:[e.toString()],schema:{type:"object",required:["bridge"],properties:{bridge:{type:"object",required:["name","username","port","pin"],properties:{name:{type:"string",description:`The Homebridge instance name.
|
|
4
|
-
This should be unique if you are running multiple instances of Homebridge.`,default:"Homebridge"},username:{type:"string",description:`Homebridge username must be 6 pairs of colon-separated hexadecimal characters (A-F 0-9).
|
|
5
|
-
You should change this pin if you need to re-pair your instance with HomeKit.
|
|
6
|
-
Example: 0E:89:49:64:91:86`,default:"0E:89:49:64:91:86",pattern:"^([A-Fa-f0-9]{2}:){5}[A-Fa-f0-9]{2}$"},port:{type:"number",description:`The port Homebridge listens on.
|
|
7
|
-
If running more than one instance of Homebridge on the same server make sure each instance is given a unique port.`,default:51173,minimum:1025,maximum:65534},pin:{type:"string",description:`The Homebridge instance pin.
|
|
8
|
-
This is used when pairing Homebridge to HomeKit.
|
|
9
|
-
Example: 630-27-655`,default:"630-27-655",pattern:"^([0-9]{3}-[0-9]{2}-[0-9]{3})$"},manufacturer:{type:"string",description:"The bridge manufacturer to be displayed in HomeKit"},firmwareRevision:{type:"string",description:"The bridge firmware version to be displayed in HomeKit"},model:{type:"string",description:"The bridge model to be displayed in HomeKit"},bind:{description:`A string or an array of strings with the name(s) of the network interface(s) Homebridge should bind to.
|
|
10
|
-
|
|
11
|
-
Requires Homebridge v1.3 or later.`,type:["string","array"],items:{type:"string",description:"Network Interface name that Homebridge should bind to."}}},default:{name:"Homebridge",username:"0E:89:49:64:91:86",port:51173,pin:"6302-7655"}},mdns:{type:"object",properties:{interface:{type:"string",description:`The interface or IP address of the interface you want Homebridge to listen on. This is useful if your server has multiple interfaces.
|
|
12
|
-
|
|
13
|
-
Deprecated as of Homebridge v1.3.0 - use bridge.bind instead.`},legacyAdvertiser:{type:"boolean",description:"Set to `false` to use the new mdns library, ciao."}},default:{legacyAdvertiser:!1}},plugins:{type:"array",description:"An array of plugins that should be selectively enabled. Remove this array to enable all plugins.",items:{type:"string",description:`The full plugin npm package name.
|
|
14
|
-
Example: homebridge-dummy`},default:["homebridge-config-ui-x"]},disabledPlugins:{type:"array",description:`An array of plugins that should be disabled.
|
|
15
|
-
|
|
16
|
-
Requires Homebridge v1.3 or later.`,items:{type:"string",description:`The full plugin npm package name.
|
|
17
|
-
Example: homebridge-dummy`},default:[]},ports:{type:"object",description:"The range of ports that should be used for certain accessories like cameras and TVs",required:["start","end"],properties:{start:{type:"number",default:52100,minimum:1025,maximum:65534},end:{type:"number",default:52150,minimum:1025,maximum:65534}},default:{start:52100,end:52150}},platforms:{type:"array",description:`Any plugin that exposes a platform should have its config entered in this array.
|
|
18
|
-
Separate each plugin config block using a comma.`,items:{type:"object",required:["platform"],anyOf:[{type:"object",required:["platform"],properties:{platform:{type:"string",description:"This is used by Homebridge to identify which plugin this platform belongs to.",not:{enum:["config"]}},name:{type:"string",description:"The name of the platform."}}},{type:"object",properties:{platform:{type:"string",description:`Homebridge UI platform name must be set to "config".
|
|
19
|
-
Do Not Change!`,oneOf:[{enum:"config"}]},name:{type:"string",description:"The name used in the Homebridge log."}}}]}},accessories:{type:"array",description:`Any plugin that exposes an accessory should have its config entered in this array.
|
|
20
|
-
Separate each plugin config block using a comma.`,items:{type:"object",required:["accessory","name"],properties:{accessory:{type:"string",description:"This is used by Homebridge to identify which plugin this accessory belongs to."},name:{type:"string",description:"The name of the accessory."}}}}}}}]}),this.monacoEditorModel.uri=monaco.Uri.parse("a://homebridge/config.json")}visualViewPortChanged(){this.lastHeight<window.visualViewport.height&&document.activeElement.blur(),window.visualViewport.height<window.innerHeight?(this.$md.enableTouchMove(),this.lastHeight=window.visualViewport.height):window.visualViewport.height===window.innerHeight&&(this.$md.disableTouchMove(),this.lastHeight=window.visualViewport.height)}saveConfig(e){return C(this,null,function*(){try{let t=yield $(this.$api.post("/config-editor",e));this.homebridgeConfig=JSON.stringify(t,null,4),yield this.detectSavesChangesForRestart()}catch(t){console.error(t),this.$toastr.error(this.$translate.instant("config.failed_to_save_config"),this.$translate.instant("toast.title_error"))}})}validateArraysEqual(e,t){if(e.length!==t.length)return!1;let i=[...e].sort(),o=[...t].sort();return i.every((E,H)=>E===o[H])}removePlatformsAndAccessories(e){let E=e,{accessories:t,platforms:i}=E;return Q(E,["accessories","platforms"])}removeEmptyBridges(e){return e.filter(t=>t._bridge&&Object.keys(t._bridge).length>0).map(t=>t._bridge)}validateBridgesEqual(e,t){return e.length!==t.length?!1:e.every(i=>t.some(o=>B(i,o)))}detectSavesChangesForRestart(){return C(this,null,function*(){let e=yield this.determineRestartType();e==="full"?yield this.performFullRestart():e==="child"&&(yield this.performChildBridgeRestart()),this.latestSavedConfig=JSON.parse(this.homebridgeConfig)})}determineRestartType(){return C(this,null,function*(){if(this.hbPendingRestart)return"full";let e=this.latestSavedConfig,t=JSON.stringify(e,null,4),i=JSON.parse(this.homebridgeConfig),o=this.homebridgeConfig;if(t===o&&!this.childBridgesToRestart.length)return this.$toastr.info(this.$translate.instant("config.no_restart"),this.$translate.instant("config.config_saved")),"none";if(!this.validateArraysEqual(Object.keys(e),Object.keys(i))||[...i.platforms||[],...i.accessories||[]].every(c=>!c._bridge||!Object.keys(c._bridge).length))return"full";let H=this.removePlatformsAndAccessories(e),Me=this.removePlatformsAndAccessories(i);if(!B(H,Me))return"full";let N=e.platforms||[],q=i.platforms||[],Te=N.map(c=>c.platform),Be=q.map(c=>c.platform);if(!this.validateArraysEqual(Te,Be))return"full";let F=e.accessories||[],J=i.accessories||[],Ve=F.map(c=>c.accessory),Ae=J.map(c=>c.accessory);if(!this.validateArraysEqual(Ve,Ae)||!this.validateBridgesEqual(this.removeEmptyBridges(N),this.removeEmptyBridges(q))||!this.validateBridgesEqual(this.removeEmptyBridges(F),this.removeEmptyBridges(J)))return"full";let K=N.filter(c=>!B(c,q.find(M=>M.platform===c.platform))),De=F.filter(c=>!B(c,J.find(M=>M.accessory===c.accessory))),W=[...K,...De];if(K.some(c=>c.platform==="config")||W.some(c=>c.platform==="config"?!1:!c._bridge||Object.keys(c._bridge).length===0))return"full";try{let c=yield $(this.$api.get("/status/homebridge/child-bridges"));return W.forEach(M=>{let Re=M._bridge.username.toUpperCase(),V=c.find(({username:L})=>L===Re);if(V)this.childBridgesToRestart.some(L=>L.username===V.username)||this.childBridgesToRestart.push({name:V.name,username:V.username});else return"full"}),"child"}catch(c){return console.error("Error fetching child bridges:",c),"full"}})}performChildBridgeRestart(){return C(this,null,function*(){let e=this.$modal.open(Ce,{size:"lg",backdrop:"static"});e.componentInstance.bridges=this.childBridgesToRestart;try{yield e.result,this.childBridgesToRestart=[]}catch{}})}performFullRestart(){return C(this,null,function*(){let e=this.$modal.open(ve,{size:"lg",backdrop:"static"});try{yield e.result,this.hbPendingRestart=!1,this.childBridgesToRestart=[]}catch{this.hbPendingRestart=!0}})}parseConfigFromEditor(){try{return JSON.parse(this.homebridgeConfig)}catch{let t=$e.default.parse(this.homebridgeConfig);return this.homebridgeConfig=JSON.stringify(t,null,4),this.monacoEditor&&this.monacoEditor.getModel().setValue(this.homebridgeConfig),t}}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=A({type:n,selectors:[["ng-component"]],decls:18,vars:19,consts:[[1,"flex-column","d-flex","align-items-stretch","h-100"],[1,"row"],[1,"col-6"],[1,"primary-text","m-0"],[1,"col-6","text-end"],["container","body","placement","bottom","triggers","hover",1,"btn","btn-danger","waves-effect","my-0","me-2",3,"disabled","openDelay","ngbTooltip"],["container","body","placement","bottom","triggers","hover",1,"btn","btn-elegant","waves-effect","my-0","me-2",3,"openDelay","ngbTooltip"],["container","body","placement","bottom","triggers","hover",1,"btn","btn-elegant","waves-effect","my-0","me-0",3,"click","disabled","openDelay","ngbTooltip"],[1,"fas","fa-fw","fa-floppy-disk"],[1,"fas","fa-fw","fa-spinner","fa-pulse"],[1,"flex-grow-1","h-100","w-100","mt-3","mb-0",3,"options","model"],[1,"flex-grow-1","h-100","w-100","mt-3","mb-0",3,"options","originalModel","modifiedModel"],["wrap","off","autocomplete","off","autocorrect","off","autocapitalize","off","spellcheck","false",1,"hb-plain-text-editor","align-self-end","h-100","w-100","my-3",3,"ngModel"],["container","body","placement","bottom","triggers","hover",1,"btn","btn-danger","waves-effect","my-0","me-2",3,"click","disabled","openDelay","ngbTooltip"],[1,"fas","fa-fw","fa-times"],["container","body","placement","bottom","triggers","hover",1,"btn","btn-elegant","waves-effect","my-0","me-2",3,"click","openDelay","ngbTooltip"],[1,"fas","fa-fw","fa-history"],[1,"fas","fa-fw"],[1,"flex-grow-1","h-100","w-100","mt-3","mb-0",3,"onInit","keydown.control.s","keydown.meta.s","options","model"],[1,"flex-grow-1","h-100","w-100","mt-3","mb-0",3,"onInit","keydown.control.s","keydown.meta.s","options","originalModel","modifiedModel"],["wrap","off","autocomplete","off","autocorrect","off","autocapitalize","off","spellcheck","false",1,"hb-plain-text-editor","align-self-end","h-100","w-100","my-3",3,"ngModelChange","ngModel"]],template:function(t,i){t&1&&(a(0,"div",0)(1,"div",1)(2,"div",2)(3,"h3",3),_(4),s(5,"translate"),d()(),a(6,"div",4),v(7,qe,4,8,"button",5),v(8,Fe,4,7,"button",6),v(9,Je,4,11,"button",6),a(10,"button",7),s(11,"translate"),s(12,"translate"),b("click",function(){return i.onSave()}),v(13,Le,1,0,"i",8),v(14,Ue,1,0,"i",9),d()()(),v(15,ze,1,2,"ngx-monaco-editor",10),v(16,Ke,1,3,"ngx-monaco-diff-editor",11),v(17,We,2,1,"textarea",12),d()),t&2&&(r(4),k(l(5,13,"menu.config_json_editor")),r(3),x(i.originalConfig?7:-1),r(),x(i.originalConfig?-1:8),r(),x(!i.isMobile&&i.originalConfig?9:-1),r(),g("disabled",i.saveInProgress)("openDelay",150)("ngbTooltip",l(11,15,"form.button_save")),w("aria-label",l(12,17,"form.button_save")),r(3),x(i.saveInProgress?-1:13),r(),x(i.saveInProgress?14:-1),r(),x(!i.isMobile&&!i.originalConfig?15:-1),r(),x(!i.isMobile&&i.originalConfig?16:-1),r(),x(i.isMobile?17:-1))},dependencies:[D,he,be,fe,de,ce,me,j],encapsulation:2})}return n})();export{$t as ConfigEditorComponent};
|
package/public/chunk-EZT3MKU2.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{g as i}from"./chunk-UOLP7IQJ.js";import"./chunk-6GMXEQVA.js";import{ga as t,nb as e}from"./chunk-H36QJYLQ.js";var d=[{path:"",redirectTo:"/",pathMatch:"full"},{path:"docker",loadChildren:()=>import("./chunk-TGMGUP4S.js").then(o=>o.DockerModule)},{path:"linux",loadChildren:()=>import("./chunk-5KYV52LA.js").then(o=>o.LinuxModule)},{path:"terminal",loadChildren:()=>import("./chunk-FTPY4VTW.js").then(o=>o.TerminalModule)}],l=(()=>{class o{static \u0275fac=function(r){return new(r||o)};static \u0275mod=e({type:o});static \u0275inj=t({imports:[i.forChild(d),i]})}return o})();var p=(()=>{class o{static \u0275fac=function(r){return new(r||o)};static \u0275mod=e({type:o});static \u0275inj=t({imports:[l]})}return o})();export{p as PlatformToolsModule};
|
package/public/chunk-FTPY4VTW.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{g as r}from"./chunk-UOLP7IQJ.js";import"./chunk-6GMXEQVA.js";import{ga as e,nb as o}from"./chunk-H36QJYLQ.js";var m=[{path:"",loadComponent:()=>import("./chunk-SAJTB4SR.js").then(t=>t.TerminalComponent),canDeactivate:[t=>t.canDeactivate?t.canDeactivate():!0]}],n=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=o({type:t});static \u0275inj=e({imports:[r.forChild(m),r]})}return t})();var s=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=o({type:t});static \u0275inj=e({imports:[n]})}return t})();export{s as TerminalModule};
|
package/public/chunk-G7FA4DP4.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{B as I,C as O,D as N,Da as w,L as K,O as C,Wc as _,X as P,_ as A,a as F,fa as u,ia as B,ka as o,n as y,pb as H,r as L,t as g,x}from"./chunk-H36QJYLQ.js";var v=class{},G=(()=>{class e{handle(t){return t.key}static \u0275fac=function(n){return new(n||e)};static \u0275prov=u({token:e,factory:e.\u0275fac})}return e})(),d=class{},z=(()=>{class e extends d{compile(t,n){return t}compileTranslations(t,n){return t}static \u0275fac=(()=>{let t;return function(r){return(t||(t=w(e)))(r||e)}})();static \u0275prov=u({token:e,factory:e.\u0275fac})}return e})(),p=class{},W=(()=>{class e extends p{getTranslation(t){return L({})}static \u0275fac=(()=>{let t;return function(r){return(t||(t=w(e)))(r||e)}})();static \u0275prov=u({token:e,factory:e.\u0275fac})}return e})();function k(e,a){if(e===a)return!0;if(e===null||a===null)return!1;if(e!==e&&a!==a)return!0;let t=typeof e,n=typeof a,r;if(t==n&&t=="object")if(Array.isArray(e)){if(!Array.isArray(a))return!1;if((r=e.length)==a.length){for(let s=0;s<r;s++)if(!k(e[s],a[s]))return!1;return!0}}else{if(Array.isArray(a))return!1;if(l(e)&&l(a)){let s=Object.create(null);for(let i in e){if(!k(e[i],a[i]))return!1;s[i]=!0}for(let i in a)if(!(i in s)&&typeof a[i]<"u")return!1;return!0}}return!1}function h(e){return typeof e<"u"&&e!==null}function J(e){return e!==void 0}function l(e){return T(e)&&!f(e)&&e!==null}function T(e){return typeof e=="object"&&e!==null}function f(e){return Array.isArray(e)}function S(e){return typeof e=="string"}function Z(e){return typeof e=="function"}function D(e){if(f(e))return e.map(a=>D(a));if(l(e)){let a={};return Object.keys(e).forEach(t=>{a[t]=D(e[t])}),a}else return e}function V(e,a){if(!T(e))return D(a);let t=D(e);return T(t)&&T(a)&&Object.keys(a).forEach(n=>{l(a[n])?n in e?t[n]=V(e[n],a[n]):Object.assign(t,{[n]:a[n]}):Object.assign(t,{[n]:a[n]})}),t}function U(e,a){let t=a.split(".");a="";do{a+=t.shift();let n=!t.length;if(h(e)){if(l(e)&&J(e[a])&&(l(e[a])||f(e[a])||n)){e=e[a],a="";continue}if(f(e)){let r=parseInt(a,10);if(J(e[r])&&(l(e[r])||f(e[r])||n)){e=e[r],a="";continue}}}if(n){e=void 0;continue}a+="."}while(t.length);return e}function Q(e,a,t){return V(e,X(a,t))}function X(e,a){return e.split(".").reduceRight((t,n)=>({[n]:t}),a)}var b=class{},Y=(()=>{class e extends b{templateMatcher=/{{\s?([^{}\s]*)\s?}}/g;interpolate(t,n){if(S(t))return this.interpolateString(t,n);if(Z(t))return this.interpolateFunction(t,n)}interpolateFunction(t,n){return t(n)}interpolateString(t,n){return n?t.replace(this.templateMatcher,(r,s)=>{let i=this.getInterpolationReplacement(n,s);return i!==void 0?i:r}):t}getInterpolationReplacement(t,n){return this.formatValue(U(t,n))}formatValue(t){if(S(t))return t;if(typeof t=="number"||typeof t=="boolean")return t.toString();if(t===null)return"null";if(f(t))return t.join(", ");if(T(t))return typeof t.toString=="function"&&t.toString!==Object.prototype.toString?t.toString():JSON.stringify(t)}static \u0275fac=(()=>{let t;return function(r){return(t||(t=w(e)))(r||e)}})();static \u0275prov=u({token:e,factory:e.\u0275fac})}return e})(),R=(()=>{class e{_onTranslationChange=new y;_onLangChange=new y;_onFallbackLangChange=new y;fallbackLang=null;currentLang;translations={};languages=[];getTranslations(t){return this.translations[t]}setTranslations(t,n,r){this.translations[t]=r&&this.hasTranslationFor(t)?V(this.translations[t],n):n,this.addLanguages([t]),this._onTranslationChange.next({lang:t,translations:this.getTranslations(t)})}getLanguages(){return this.languages}getCurrentLang(){return this.currentLang}getFallbackLang(){return this.fallbackLang}setFallbackLang(t,n=!0){this.fallbackLang=t,n&&this._onFallbackLangChange.next({lang:t,translations:this.translations[t]})}setCurrentLang(t,n=!0){this.currentLang=t,n&&this._onLangChange.next({lang:t,translations:this.translations[t]})}get onTranslationChange(){return this._onTranslationChange.asObservable()}get onLangChange(){return this._onLangChange.asObservable()}get onFallbackLangChange(){return this._onFallbackLangChange.asObservable()}addLanguages(t){this.languages=Array.from(new Set([...this.languages,...t]))}hasTranslationFor(t){return typeof this.translations[t]<"u"}deleteTranslations(t){delete this.translations[t]}getTranslation(t){let n=this.getValue(this.currentLang,t);return n===void 0&&this.fallbackLang!=null&&this.fallbackLang!==this.currentLang&&(n=this.getValue(this.fallbackLang,t)),n}getValue(t,n){return U(this.getTranslations(t),n)}static \u0275fac=function(n){return new(n||e)};static \u0275prov=u({token:e,factory:e.\u0275fac})}return e})(),j=new B("TRANSLATE_CONFIG"),m=e=>g(e)?e:L(e);var M=(()=>{class e{loadingTranslations;pending=!1;_translationRequests={};lastUseLanguage=null;currentLoader=o(p);compiler=o(d);parser=o(b);missingTranslationHandler=o(v);store=o(R);extend=!1;get onTranslationChange(){return this.store.onTranslationChange}get onLangChange(){return this.store.onLangChange}get onFallbackLangChange(){return this.store.onFallbackLangChange}get onDefaultLangChange(){return this.store.onFallbackLangChange}constructor(){let t=F({extend:!1,fallbackLang:null},o(j,{optional:!0}));t.lang&&this.use(t.lang),t.fallbackLang&&this.setFallbackLang(t.fallbackLang),t.extend&&(this.extend=!0)}setFallbackLang(t){this.getFallbackLang()||this.store.setFallbackLang(t,!1);let n=this.loadOrExtendLanguage(t);return g(n)?(n.pipe(C(1)).subscribe({next:()=>{this.store.setFallbackLang(t)},error:()=>{}}),n):(this.store.setFallbackLang(t),L(this.store.getTranslations(t)))}use(t){this.lastUseLanguage=t,this.getCurrentLang()||this.store.setCurrentLang(t,!1);let n=this.loadOrExtendLanguage(t);return g(n)?(n.pipe(C(1)).subscribe({next:()=>{this.changeLang(t)},error:()=>{}}),n):(this.changeLang(t),L(this.store.getTranslations(t)))}loadOrExtendLanguage(t){if(!this.store.hasTranslationFor(t)||this.extend)return this._translationRequests[t]=this._translationRequests[t]||this.loadAndCompileTranslations(t),this._translationRequests[t]}changeLang(t){t===this.lastUseLanguage&&this.store.setCurrentLang(t)}getCurrentLang(){return this.store.getCurrentLang()}loadAndCompileTranslations(t){this.pending=!0;let n=this.currentLoader.getTranslation(t).pipe(P(1),C(1));return this.loadingTranslations=n.pipe(x(r=>this.compiler.compileTranslations(r,t)),P(1),C(1)),this.loadingTranslations.subscribe({next:r=>{this.store.setTranslations(t,r,this.extend),this.pending=!1},error:r=>{this.pending=!1}}),n}setTranslation(t,n,r=!1){let s=this.compiler.compileTranslations(n,t);this.store.setTranslations(t,s,r||this.extend)}getLangs(){return this.store.getLanguages()}addLangs(t){this.store.addLanguages(t)}getParsedResultForKey(t,n){let r=this.getTextToInterpolate(t);if(h(r))return this.runInterpolation(r,n);let s=this.missingTranslationHandler.handle(F({key:t,translateService:this},n!==void 0&&{interpolateParams:n}));return s!==void 0?s:t}getFallbackLang(){return this.store.getFallbackLang()}getTextToInterpolate(t){return this.store.getTranslation(t)}runInterpolation(t,n){if(h(t))return f(t)?this.runInterpolationOnArray(t,n):l(t)?this.runInterpolationOnDict(t,n):this.parser.interpolate(t,n)}runInterpolationOnArray(t,n){return t.map(r=>this.runInterpolation(r,n))}runInterpolationOnDict(t,n){let r={};for(let s in t){let i=this.runInterpolation(t[s],n);i!==void 0&&(r[s]=i)}return r}getParsedResult(t,n){return t instanceof Array?this.getParsedResultForArray(t,n):this.getParsedResultForKey(t,n)}getParsedResultForArray(t,n){let r={},s=!1;for(let c of t)r[c]=this.getParsedResultForKey(c,n),s=s||g(r[c]);if(!s)return r;let i=t.map(c=>m(r[c]));return N(i).pipe(x(c=>{let E={};return c.forEach(($,q)=>{E[t[q]]=$}),E}))}get(t,n){if(!h(t)||!t.length)throw new Error('Parameter "key" is required and cannot be empty');return this.pending?this.loadingTranslations.pipe(K(()=>m(this.getParsedResult(t,n)))):m(this.getParsedResult(t,n))}getStreamOnTranslationChange(t,n){if(!h(t)||!t.length)throw new Error('Parameter "key" is required and cannot be empty');return I(O(()=>this.get(t,n)),this.onTranslationChange.pipe(A(()=>{let r=this.getParsedResult(t,n);return m(r)})))}stream(t,n){if(!h(t)||!t.length)throw new Error('Parameter "key" required');return I(O(()=>this.get(t,n)),this.onLangChange.pipe(A(()=>{let r=this.getParsedResult(t,n);return m(r)})))}instant(t,n){if(!h(t)||t.length===0)throw new Error('Parameter "key" is required and cannot be empty');let r=this.getParsedResult(t,n);return g(r)?Array.isArray(t)?t.reduce((s,i)=>(s[i]=i,s),{}):t:r}set(t,n,r=this.getCurrentLang()){this.store.setTranslations(r,Q(this.store.getTranslations(r),t,S(n)?this.compiler.compile(n,r):this.compiler.compileTranslations(n,r)),!1)}reloadLang(t){return this.resetLang(t),this.loadAndCompileTranslations(t)}resetLang(t){delete this._translationRequests[t],this.store.deleteTranslations(t)}static getBrowserLang(){if(typeof window>"u"||!window.navigator)return;let t=this.getBrowserCultureLang();return t?t.split(/[-_]/)[0]:void 0}static getBrowserCultureLang(){if(!(typeof window>"u"||typeof window.navigator>"u"))return window.navigator.languages?window.navigator.languages[0]:window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage}getBrowserLang(){return e.getBrowserLang()}getBrowserCultureLang(){return e.getBrowserCultureLang()}get defaultLang(){return this.getFallbackLang()}get currentLang(){return this.store.getCurrentLang()}get langs(){return this.store.getLanguages()}setDefaultLang(t){return this.setFallbackLang(t)}getDefaultLang(){return this.getFallbackLang()}static \u0275fac=function(n){return new(n||e)};static \u0275prov=u({token:e,factory:e.\u0275fac})}return e})();var Ct=(()=>{class e{translate=o(M);_ref=o(_);value="";lastKey=null;lastParams=[];onTranslationChange;onLangChange;onFallbackLangChange;updateValue(t,n,r){let s=i=>{this.value=i!==void 0?i:t,this.lastKey=t,this._ref.markForCheck()};if(r){let i=this.translate.getParsedResult(t,n);g(i)?i.subscribe(s):s(i)}this.translate.get(t,n).subscribe(s)}transform(t,...n){if(!t||!t.length)return t;if(k(t,this.lastKey)&&k(n,this.lastParams))return this.value;let r;if(h(n[0])&&n.length)if(S(n[0])&&n[0].length){let s=n[0].replace(/(')?([a-zA-Z0-9_]+)(')?(\s)?:/g,'"$2":').replace(/:(\s)?(')(.*?)(')/g,':"$3"');try{r=JSON.parse(s)}catch(i){throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${n[0]}`)}}else l(n[0])&&(r=n[0]);return this.lastKey=t,this.lastParams=n,this.updateValue(t,r),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(s=>{(this.lastKey&&s.lang===this.translate.getCurrentLang()||s.lang===this.translate.getFallbackLang())&&(this.lastKey=null,this.updateValue(t,r,s.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(s=>{this.lastKey&&(this.lastKey=null,this.updateValue(t,r,s.translations))})),this.onFallbackLangChange||(this.onFallbackLangChange=this.translate.onFallbackLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(t,r))})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onFallbackLangChange<"u"&&(this.onFallbackLangChange.unsubscribe(),this.onFallbackLangChange=void 0)}ngOnDestroy(){this._dispose()}static \u0275fac=function(n){return new(n||e)};static \u0275pipe=H({name:"translate",type:e,pure:!1});static \u0275prov=u({token:e,factory:e.\u0275fac})}return e})();function tt(e){return{provide:p,useClass:e}}function et(e){return{provide:d,useClass:e}}function nt(e){return{provide:b,useClass:e}}function rt(e){return{provide:v,useClass:e}}function mt(e={}){return at(F({compiler:et(z),parser:nt(Y),loader:tt(W),missingTranslationHandler:rt(G)},e),!0)}function at(e={},a){let t=[];e.loader&&t.push(e.loader),e.compiler&&t.push(e.compiler),e.parser&&t.push(e.parser),e.missingTranslationHandler&&t.push(e.missingTranslationHandler),a&&t.push(R),(e.useDefaultLang||e.defaultLanguage)&&(console.warn("The `useDefaultLang` and `defaultLanguage` options are deprecated. Please use `fallbackLang` instead."),e.useDefaultLang===!0&&e.defaultLanguage&&(e.fallbackLang=e.defaultLanguage));let n={fallbackLang:e.fallbackLang??null,lang:e.lang,extend:e.extend??!1};return t.push({provide:j,useValue:n}),t.push({provide:M,useClass:M,deps:[R,p,d,b,v,j]}),t}export{M as a,Ct as b,mt as c};
|
package/public/chunk-GWXZ52WY.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import{m as Bt}from"./chunk-RYEUSRBX.js";import{d as hu}from"./chunk-UOLP7IQJ.js";import{k as Bu,n as yu}from"./chunk-C3MIVQCG.js";import{a as gu,b as ht}from"./chunk-G7FA4DP4.js";import{Hb as qe,Jc as Q,Kc as k,Lb as Fu,Mb as Eu,Nb as xu,Sb as H,Tb as X,Ub as Ve,ab as U,cc as ye,e as da,h as Au,ka as he,mb as gt,qc as ue,rc as Le,sc as Me,w as Cu}from"./chunk-H36QJYLQ.js";var eD=da((iu,fu)=>{(function(e,t){typeof iu=="object"&&typeof fu<"u"?fu.exports=t():typeof define=="function"&&define.amd?define(t):e.JSON5=t()})(iu,function(){"use strict";function e(r,a){return a={exports:{}},r(a,a.exports),a.exports}var t=e(function(r){var a=r.exports=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=a)}),u=e(function(r){var a=r.exports={version:"2.6.5"};typeof __e=="number"&&(__e=a)}),o=u.version,f=function(r){return typeof r=="object"?r!==null:typeof r=="function"},i=function(r){if(!f(r))throw TypeError(r+" is not an object!");return r},D=function(r){try{return!!r()}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),B=function(r){return g?m.createElement(r):{}},h=!l&&!D(function(){return Object.defineProperty(B("div"),"a",{get:function(){return 7}}).a!=7}),b=function(r,a){if(!f(r))return r;var p,s;if(a&&typeof(p=r.toString)=="function"&&!f(s=p.call(r))||typeof(p=r.valueOf)=="function"&&!f(s=p.call(r))||!a&&typeof(p=r.toString)=="function"&&!f(s=p.call(r)))return s;throw TypeError("Can't convert object to primitive value")},M=Object.defineProperty,I=l?Object.defineProperty:function(a,p,s){if(i(a),p=b(p,!0),i(s),h)try{return M(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},$={f:I},j=function(r,a){return{enumerable:!(r&1),configurable:!(r&2),writable:!(r&4),value:a}},T=l?function(r,a,p){return $.f(r,a,j(1,p))}:function(r,a,p){return r[a]=p,r},pe={}.hasOwnProperty,nt=function(r,a){return pe.call(r,a)},Ge=0,Ue=Math.random(),Ro=function(r){return"Symbol(".concat(r===void 0?"":r,")_",(++Ge+Ue).toString(36))},Go=!1,Uo=e(function(r){var a="__core-js_shared__",p=t[a]||(t[a]={});(r.exports=function(s,d){return p[s]||(p[s]=d!==void 0?d:{})})("versions",[]).push({version:u.version,mode:Go?"pure":"global",copyright:"\xA9 2019 Denis Pushkarev (zloirock.ru)"})}),Yt=Uo("native-function-to-string",Function.toString),Ho=e(function(r){var a=Ro("src"),p="toString",s=(""+Yt).split(p);u.inspectSource=function(d){return Yt.call(d)},(r.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)})}),$o=function(r){if(typeof r!="function")throw TypeError(r+" is not a function!");return r},su=function(r,a,p){if($o(r),a===void 0)return r;switch(p){case 1:return function(s){return r.call(a,s)};case 2:return function(s,d){return r.call(a,s,d)};case 3:return function(s,d,F){return r.call(a,s,d,F)}}return function(){return r.apply(a,arguments)}},Xt="prototype",z=function(r,a,p){var s=r&z.F,d=r&z.G,F=r&z.S,x=r&z.P,J=r&z.B,N=d?t:F?t[a]||(t[a]={}):(t[a]||{})[Xt],Ie=d?u:u[a]||(u[a]={}),He=Ie[Xt]||(Ie[Xt]={}),ae,ie,Y,$e;d&&(p=a);for(ae in p)ie=!s&&N&&N[ae]!==void 0,Y=(ie?N:p)[ae],$e=J&&ie?su(Y,t):x&&typeof Y=="function"?su(Function.call,Y):Y,N&&Ho(N,ae,Y,r&z.U),Ie[ae]!=Y&&T(Ie,ae,$e),x&&He[ae]!=Y&&(He[ae]=Y)};t.core=u,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,qo=Math.ceil,Vo=Math.floor,Du=function(r){return isNaN(r=+r)?0:(r>0?Vo:qo)(r)},Wo=function(r){if(r==null)throw TypeError("Can't call method on "+r);return r},zo=function(r){return function(a,p){var s=String(Wo(a)),d=Du(p),F=s.length,x,J;return d<0||d>=F?r?"":void 0:(x=s.charCodeAt(d),x<55296||x>56319||d+1===F||(J=s.charCodeAt(d+1))<56320||J>57343?r?s.charAt(d):x:r?s.slice(d,d+2):(x-55296<<10)+(J-56320)+65536)}},Ko=zo(!1);it(it.P,"String",{codePointAt:function(a){return Ko(this,a)}});var tD=u.String.codePointAt,Jo=Math.max,Yo=Math.min,Xo=function(r,a){return r=Du(r),r<0?Jo(r+a,0):Yo(r,a)},pu=String.fromCharCode,lu=String.fromCodePoint;it(it.S+it.F*(!!lu&&lu.length!=1),"String",{fromCodePoint:function(a){for(var p=arguments,s=[],d=arguments.length,F=0,x;d>F;){if(x=+p[F++],Xo(x,1114111)!==x)throw RangeError(x+" is not a valid code point");s.push(x<65536?pu(x):pu(((x-=65536)>>10)+55296,x%1024+56320))}return s.join("")}});var uD=u.String.fromCodePoint,Zo=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/,Qo=/[\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]/,ko=/[\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:Zo,ID_Start:Qo,ID_Continue:ko},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,ge,oe,R,kt,ft,ea=function(a,p){Qt=String(a),K="start",le=[],At=0,ge=1,oe=0,R=void 0,kt=void 0,ft=void 0;do R=ta(),oa[K]();while(R.type!=="eof");return typeof p=="function"?eu({"":ft},"",p):ft};function eu(r,a,p){var s=r[a];if(s!=null&&typeof s=="object")if(Array.isArray(s))for(var d=0;d<s.length;d++){var F=String(d),x=eu(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=eu(s,J,p);N===void 0?delete s[J]:Object.defineProperty(s,J,{value:N,writable:!0,enumerable:!0,configurable:!0})}return p.call(r,a,s)}var C,c,st,me,E;function ta(){for(C="default",c="",st=!1,me=1;;){E=de();var r=mu[C]();if(r)return r}}function de(){if(Qt[At])return String.fromCodePoint(Qt.codePointAt(At))}function n(){var r=de();return r===`
|
|
2
|
-
`?(ge++,oe=0):r?oe+=r.length:oe++,r&&(At+=r.length),r}var mu={default:function(){switch(E){case" ":case"\v":case"\f":case" ":case"\xA0":case"\uFEFF":case`
|
|
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 mu[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
|
-
`: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(),Oe("ull"),_("null",null);case"t":return n(),Oe("rue"),_("boolean",!0);case"f":return n(),Oe("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(),Oe("nfinity"),_("numeric",1/0);case"N":return n(),Oe("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=tu();switch(a){case"$":case"_":break;default:if(!O.isIdStartChar(a))throw du();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=tu();switch(a){case"$":case"_":case"\u200C":case"\u200D":break;default:if(!O.isIdContinueChar(a))throw du();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(),Oe("nfinity"),_("numeric",me*(1/0));case"N":return n(),Oe("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+=ua();return;case'"':if(st)return n(),_("string",c);c+=n();return;case"'":if(!st)return n(),_("string",c);c+=n();return;case`
|
|
5
|
-
`:case"\r":throw S(n());case"\u2028":case"\u2029":aa(E);break;case void 0:throw S(n())}c+=n()},start:function(){switch(E){case"{":case"[":return _("punctuator",n())}C="value"},beforePropertyName:function(){switch(E){case"$":case"_":c=n(),C="identifierName";return;case"\\":n(),C="identifierNameStartEscape";return;case"}":return _("punctuator",n());case'"':case"'":st=n()==='"',C="string";return}if(O.isIdStartChar(E)){c+=n(),C="identifierName";return}throw S(n())},afterPropertyName:function(){if(E===":")return _("punctuator",n());throw S(n())},beforePropertyValue:function(){C="value"},afterPropertyValue:function(){switch(E){case",":case"}":return _("punctuator",n())}throw S(n())},beforeArrayValue:function(){if(E==="]")return _("punctuator",n());C="value"},afterArrayValue:function(){switch(E){case",":case"]":return _("punctuator",n())}throw S(n())},end:function(){throw S(n())}};function _(r,a){return{type:r,value:a,line:ge,column:oe}}function Oe(r){for(var a=0,p=r;a<p.length;a+=1){var s=p[a],d=de();if(d!==s)throw S(n());n()}}function ua(){var r=de();switch(r){case"b":return n(),"\b";case"f":return n(),"\f";case"n":return n(),`
|
|
6
|
-
`;case"r":return n(),"\r";case"t":return n()," ";case"v":return n(),"\v";case"0":if(n(),O.isDigit(de()))throw S(n());return"\0";case"x":return n(),ra();case"u":return n(),tu();case`
|
|
7
|
-
`:case"\u2028":case"\u2029":return n(),"";case"\r":return n(),de()===`
|
|
8
|
-
`&&n(),"";case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":throw S(n());case void 0:throw S(n())}return n()}function ra(){var r="",a=de();if(!O.isHexDigit(a)||(r+=n(),a=de(),!O.isHexDigit(a)))throw S(n());return r+=n(),String.fromCodePoint(parseInt(r,16))}function tu(){for(var r="",a=4;a-- >0;){var p=de();if(!O.isHexDigit(p))throw S(n());r+=n()}return String.fromCodePoint(parseInt(r,16))}var oa={start:function(){if(R.type==="eof")throw Pe();uu()},beforePropertyName:function(){switch(R.type){case"identifier":case"string":kt=R.value,K="afterPropertyName";return;case"punctuator":Ct();return;case"eof":throw Pe()}},afterPropertyName:function(){if(R.type==="eof")throw Pe();K="beforePropertyValue"},beforePropertyValue:function(){if(R.type==="eof")throw Pe();uu()},beforeArrayValue:function(){if(R.type==="eof")throw Pe();if(R.type==="punctuator"&&R.value==="]"){Ct();return}uu()},afterPropertyValue:function(){if(R.type==="eof")throw Pe();switch(R.value){case",":K="beforePropertyName";return;case"}":Ct()}},afterArrayValue:function(){if(R.type==="eof")throw Pe();switch(R.value){case",":K="beforeArrayValue";return;case"]":Ct()}},end:function(){}};function uu(){var r;switch(R.type){case"punctuator":switch(R.value){case"{":r={};break;case"[":r=[];break}break;case"null":case"boolean":case"numeric":case"string":r=R.value;break}if(ft===void 0)ft=r;else{var a=le[le.length-1];Array.isArray(a)?a.push(r):Object.defineProperty(a,kt,{value:r,writable:!0,enumerable:!0,configurable:!0})}if(r!==null&&typeof r=="object")le.push(r),Array.isArray(r)?K="beforeArrayValue":K="beforePropertyName";else{var p=le[le.length-1];p==null?K="end":Array.isArray(p)?K="afterArrayValue":K="afterPropertyValue"}}function Ct(){le.pop();var r=le[le.length-1];r==null?K="end":Array.isArray(r)?K="afterArrayValue":K="afterPropertyValue"}function S(r){return Ft(r===void 0?"JSON5: invalid end of input at "+ge+":"+oe:"JSON5: invalid character '"+cu(r)+"' at "+ge+":"+oe)}function Pe(){return Ft("JSON5: invalid end of input at "+ge+":"+oe)}function du(){return oe-=5,Ft("JSON5: invalid identifier character at "+ge+":"+oe)}function aa(r){console.warn("JSON5: '"+cu(r)+"' in strings is not valid ECMAScript; consider escaping")}function cu(r){var a={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};if(a[r])return a[r];if(r<" "){var p=r.charCodeAt(0).toString(16);return"\\x"+("00"+p).substring(p.length)}return r}function Ft(r){var a=new SyntaxError(r);return a.lineNumber=ge,a.columnNumber=oe,a}var na=function(a,p,s){var d=[],F="",x,J,N="",Ie;if(p!=null&&typeof p=="object"&&!Array.isArray(p)&&(s=p.space,Ie=p.quote,p=p.replacer),typeof p=="function")J=p;else if(Array.isArray(p)){x=[];for(var He=0,ae=p;He<ae.length;He+=1){var ie=ae[He],Y=void 0;typeof ie=="string"?Y=ie:(typeof ie=="number"||ie instanceof String||ie instanceof Number)&&(Y=String(ie)),Y!==void 0&&x.indexOf(Y)<0&&x.push(Y)}}return s instanceof Number?s=Number(s):s instanceof String&&(s=String(s)),typeof s=="number"?s>0&&(s=Math.min(10,Math.floor(s)),N=" ".substr(0,s)):typeof s=="string"&&(N=s.substr(0,10)),$e("",{"":a});function $e(y,q){var A=q[y];switch(A!=null&&(typeof A.toJSON5=="function"?A=A.toJSON5(y):typeof A.toJSON=="function"&&(A=A.toJSON(y))),J&&(A=J.call(q,y,A)),A instanceof Number?A=Number(A):A instanceof String?A=String(A):A instanceof Boolean&&(A=A.valueOf()),A){case null:return"null";case!0:return"true";case!1:return"false"}if(typeof A=="string")return Et(A,!1);if(typeof A=="number")return String(A);if(typeof A=="object")return Array.isArray(A)?la(A):Da(A)}function Et(y){for(var q={"'":.1,'"':.2},A={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"},G="",ne=0;ne<y.length;ne++){var V=y[ne];switch(V){case"'":case'"':q[V]++,G+=V;continue;case"\0":if(O.isDigit(y[ne+1])){G+="\\x00";continue}}if(A[V]){G+=A[V];continue}if(V<" "){var je=V.charCodeAt(0).toString(16);G+="\\x"+("00"+je).substring(je.length);continue}G+=V}var ce=Ie||Object.keys(q).reduce(function(Be,Ne){return q[Be]<q[Ne]?Be:Ne});return G=G.replace(new RegExp(ce,"g"),A[ce]),ce+G+ce}function Da(y){if(d.indexOf(y)>=0)throw TypeError("Converting circular structure to JSON5");d.push(y);var q=F;F=F+N;for(var A=x||Object.keys(y),G=[],ne=0,V=A;ne<V.length;ne+=1){var je=V[ne],ce=$e(je,y);if(ce!==void 0){var Be=pa(je)+":";N!==""&&(Be+=" "),Be+=ce,G.push(Be)}}var Ne;if(G.length===0)Ne="{}";else{var xt;if(N==="")xt=G.join(","),Ne="{"+xt+"}";else{var ma=`,
|
|
9
|
-
`+F;xt=G.join(ma),Ne=`{
|
|
10
|
-
`+F+xt+`,
|
|
11
|
-
`+q+"}"}}return d.pop(),F=q,Ne}function pa(y){if(y.length===0)return Et(y,!0);var q=String.fromCodePoint(y.codePointAt(0));if(!O.isIdStartChar(q))return Et(y,!0);for(var A=q.length;A<y.length;A++)if(!O.isIdContinueChar(String.fromCodePoint(y.codePointAt(A))))return Et(y,!0);return y}function la(y){if(d.indexOf(y)>=0)throw TypeError("Converting circular structure to JSON5");d.push(y);var q=F;F=F+N;for(var A=[],G=0;G<y.length;G++){var ne=$e(String(G),y);A.push(ne!==void 0?ne:"null")}var V;if(A.length===0)V="[]";else if(N===""){var je=A.join(",");V="["+je+"]"}else{var ce=`,
|
|
12
|
-
`+F,Be=A.join(ce);V=`[
|
|
13
|
-
`+F+Be+`,
|
|
14
|
-
`+q+"]"}return d.pop(),F=q,V}},ia={parse:ea,stringify:na},fa=ia,sa=fa;return sa})});function ca(){this.__data__=[],this.size=0}var bu=ca;function Aa(e,t){return e===t||e!==e&&t!==t}var fe=Aa;function Ca(e,t){for(var u=e.length;u--;)if(fe(e[u][0],t))return u;return-1}var be=Ca;var Fa=Array.prototype,Ea=Fa.splice;function xa(e){var t=this.__data__,u=be(t,e);if(u<0)return!1;var o=t.length-1;return u==o?t.pop():Ea.call(t,u,1),--this.size,!0}var vu=xa;function ga(e){var t=this.__data__,u=be(t,e);return u<0?void 0:t[u][1]}var _u=ga;function Ba(e){return be(this.__data__,e)>-1}var Su=Ba;function ha(e,t){var u=this.__data__,o=be(u,e);return o<0?(++this.size,u.push([e,t])):u[o][1]=t,this}var wu=ha;function We(e){var t=-1,u=e==null?0:e.length;for(this.clear();++t<u;){var o=e[t];this.set(o[0],o[1])}}We.prototype.clear=bu;We.prototype.delete=vu;We.prototype.get=_u;We.prototype.has=Su;We.prototype.set=wu;var ve=We;function ya(){this.__data__=new ve,this.size=0}var Tu=ya;function ba(e){var t=this.__data__,u=t.delete(e);return this.size=t.size,u}var Ou=ba;function va(e){return this.__data__.get(e)}var Pu=va;function _a(e){return this.__data__.has(e)}var Iu=_a;var Sa=typeof global=="object"&&global&&global.Object===Object&&global,yt=Sa;var wa=typeof self=="object"&&self&&self.Object===Object&&self,Ta=yt||wa||Function("return this")(),P=Ta;var Oa=P.Symbol,Z=Oa;var ju=Object.prototype,Pa=ju.hasOwnProperty,Ia=ju.toString,Dt=Z?Z.toStringTag:void 0;function ja(e){var t=Pa.call(e,Dt),u=e[Dt];try{e[Dt]=void 0;var o=!0}catch{}var f=Ia.call(e);return o&&(t?e[Dt]=u:delete e[Dt]),f}var Nu=ja;var Na=Object.prototype,La=Na.toString;function Ma(e){return La.call(e)}var Lu=Ma;var Ra="[object Null]",Ga="[object Undefined]",Mu=Z?Z.toStringTag:void 0;function Ua(e){return e==null?e===void 0?Ga:Ra:Mu&&Mu in Object(e)?Nu(e):Lu(e)}var re=Ua;function Ha(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var W=Ha;var $a="[object AsyncFunction]",qa="[object Function]",Va="[object GeneratorFunction]",Wa="[object Proxy]";function za(e){if(!W(e))return!1;var t=re(e);return t==qa||t==Va||t==$a||t==Wa}var ze=za;var Ka=P["__core-js_shared__"],bt=Ka;var Ru=function(){var e=/[^.]+$/.exec(bt&&bt.keys&&bt.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Ja(e){return!!Ru&&Ru in e}var Gu=Ja;var Ya=Function.prototype,Xa=Ya.toString;function Za(e){if(e!=null){try{return Xa.call(e)}catch{}try{return e+""}catch{}}return""}var Ae=Za;var Qa=/[\\^$.*+?()[\]{}|]/g,ka=/^\[object .+?Constructor\]$/,en=Function.prototype,tn=Object.prototype,un=en.toString,rn=tn.hasOwnProperty,on=RegExp("^"+un.call(rn).replace(Qa,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function an(e){if(!W(e)||Gu(e))return!1;var t=ze(e)?on:ka;return t.test(Ae(e))}var Uu=an;function nn(e,t){return e?.[t]}var Hu=nn;function fn(e,t){var u=Hu(e,t);return Uu(u)?u:void 0}var ee=fn;var sn=ee(P,"Map"),_e=sn;var Dn=ee(Object,"create"),Ce=Dn;function pn(){this.__data__=Ce?Ce(null):{},this.size=0}var $u=pn;function ln(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var qu=ln;var mn="__lodash_hash_undefined__",dn=Object.prototype,cn=dn.hasOwnProperty;function An(e){var t=this.__data__;if(Ce){var u=t[e];return u===mn?void 0:u}return cn.call(t,e)?t[e]:void 0}var Vu=An;var Cn=Object.prototype,Fn=Cn.hasOwnProperty;function En(e){var t=this.__data__;return Ce?t[e]!==void 0:Fn.call(t,e)}var Wu=En;var xn="__lodash_hash_undefined__";function gn(e,t){var u=this.__data__;return this.size+=this.has(e)?0:1,u[e]=Ce&&t===void 0?xn:t,this}var zu=gn;function Ke(e){var t=-1,u=e==null?0:e.length;for(this.clear();++t<u;){var o=e[t];this.set(o[0],o[1])}}Ke.prototype.clear=$u;Ke.prototype.delete=qu;Ke.prototype.get=Vu;Ke.prototype.has=Wu;Ke.prototype.set=zu;var ru=Ke;function Bn(){this.size=0,this.__data__={hash:new ru,map:new(_e||ve),string:new ru}}var Ku=Bn;function hn(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var Ju=hn;function yn(e,t){var u=e.__data__;return Ju(t)?u[typeof t=="string"?"string":"hash"]:u.map}var Se=yn;function bn(e){var t=Se(this,e).delete(e);return this.size-=t?1:0,t}var Yu=bn;function vn(e){return Se(this,e).get(e)}var Xu=vn;function _n(e){return Se(this,e).has(e)}var Zu=_n;function Sn(e,t){var u=Se(this,e),o=u.size;return u.set(e,t),this.size+=u.size==o?0:1,this}var Qu=Sn;function Je(e){var t=-1,u=e==null?0:e.length;for(this.clear();++t<u;){var o=e[t];this.set(o[0],o[1])}}Je.prototype.clear=Ku;Je.prototype.delete=Yu;Je.prototype.get=Xu;Je.prototype.has=Zu;Je.prototype.set=Qu;var vt=Je;var wn=200;function Tn(e,t){var u=this.__data__;if(u instanceof ve){var o=u.__data__;if(!_e||o.length<wn-1)return o.push([e,t]),this.size=++u.size,this;u=this.__data__=new vt(o)}return u.set(e,t),this.size=u.size,this}var ku=Tn;function Ye(e){var t=this.__data__=new ve(e);this.size=t.size}Ye.prototype.clear=Tu;Ye.prototype.delete=Ou;Ye.prototype.get=Pu;Ye.prototype.has=Iu;Ye.prototype.set=ku;var we=Ye;var On="__lodash_hash_undefined__";function Pn(e){return this.__data__.set(e,On),this}var er=Pn;function In(e){return this.__data__.has(e)}var tr=In;function _t(e){var t=-1,u=e==null?0:e.length;for(this.__data__=new vt;++t<u;)this.add(e[t])}_t.prototype.add=_t.prototype.push=er;_t.prototype.has=tr;var ur=_t;function jn(e,t){for(var u=-1,o=e==null?0:e.length;++u<o;)if(t(e[u],u,e))return!0;return!1}var rr=jn;function Nn(e,t){return e.has(t)}var or=Nn;var Ln=1,Mn=2;function Rn(e,t,u,o,f,i){var D=u&Ln,l=e.length,m=t.length;if(l!=m&&!(D&&m>l))return!1;var g=i.get(e),B=i.get(t);if(g&&B)return g==t&&B==e;var h=-1,b=!0,M=u&Mn?new ur:void 0;for(i.set(e,t),i.set(t,e);++h<l;){var I=e[h],$=t[h];if(o)var j=D?o($,I,h,t,e,i):o(I,$,h,e,t,i);if(j!==void 0){if(j)continue;b=!1;break}if(M){if(!rr(t,function(T,pe){if(!or(M,pe)&&(I===T||f(I,T,u,o,i)))return M.push(pe)})){b=!1;break}}else if(!(I===$||f(I,$,u,o,i))){b=!1;break}}return i.delete(e),i.delete(t),b}var St=Rn;var Gn=P.Uint8Array,Xe=Gn;function Un(e){var t=-1,u=Array(e.size);return e.forEach(function(o,f){u[++t]=[f,o]}),u}var ar=Un;function Hn(e){var t=-1,u=Array(e.size);return e.forEach(function(o){u[++t]=o}),u}var nr=Hn;var $n=1,qn=2,Vn="[object Boolean]",Wn="[object Date]",zn="[object Error]",Kn="[object Map]",Jn="[object Number]",Yn="[object RegExp]",Xn="[object Set]",Zn="[object String]",Qn="[object Symbol]",kn="[object ArrayBuffer]",ei="[object DataView]",ir=Z?Z.prototype:void 0,ou=ir?ir.valueOf:void 0;function ti(e,t,u,o,f,i,D){switch(u){case ei:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case kn:return!(e.byteLength!=t.byteLength||!i(new Xe(e),new Xe(t)));case Vn:case Wn:case Jn:return fe(+e,+t);case zn:return e.name==t.name&&e.message==t.message;case Yn:case Zn:return e==t+"";case Kn:var l=ar;case Xn:var m=o&$n;if(l||(l=nr),e.size!=t.size&&!m)return!1;var g=D.get(e);if(g)return g==t;o|=qn,D.set(e,t);var B=St(l(e),l(t),o,f,i,D);return D.delete(e),B;case Qn:if(ou)return ou.call(e)==ou.call(t)}return!1}var fr=ti;function ui(e,t){for(var u=-1,o=t.length,f=e.length;++u<o;)e[f+u]=t[u];return e}var wt=ui;var ri=Array.isArray,te=ri;function oi(e,t,u){var o=t(e);return te(e)?o:wt(o,u(e))}var Tt=oi;function ai(e,t){for(var u=-1,o=e==null?0:e.length,f=0,i=[];++u<o;){var D=e[u];t(D,u,e)&&(i[f++]=D)}return i}var sr=ai;function ni(){return[]}var Ot=ni;var ii=Object.prototype,fi=ii.propertyIsEnumerable,Dr=Object.getOwnPropertySymbols,si=Dr?function(e){return e==null?[]:(e=Object(e),sr(Dr(e),function(t){return fi.call(e,t)}))}:Ot,Ze=si;function Di(e,t){for(var u=-1,o=Array(e);++u<e;)o[u]=t(u);return o}var pr=Di;function pi(e){return e!=null&&typeof e=="object"}var L=pi;var li="[object Arguments]";function mi(e){return L(e)&&re(e)==li}var au=mi;var lr=Object.prototype,di=lr.hasOwnProperty,ci=lr.propertyIsEnumerable,Ai=au(function(){return arguments}())?au:function(e){return L(e)&&di.call(e,"callee")&&!ci.call(e,"callee")},pt=Ai;function Ci(){return!1}var mr=Ci;var Ar=typeof exports=="object"&&exports&&!exports.nodeType&&exports,dr=Ar&&typeof module=="object"&&module&&!module.nodeType&&module,Fi=dr&&dr.exports===Ar,cr=Fi?P.Buffer:void 0,Ei=cr?cr.isBuffer:void 0,xi=Ei||mr,Fe=xi;var gi=9007199254740991,Bi=/^(?:0|[1-9]\d*)$/;function hi(e,t){var u=typeof e;return t=t??gi,!!t&&(u=="number"||u!="symbol"&&Bi.test(e))&&e>-1&&e%1==0&&e<t}var Pt=hi;var yi=9007199254740991;function bi(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=yi}var It=bi;var vi="[object Arguments]",_i="[object Array]",Si="[object Boolean]",wi="[object Date]",Ti="[object Error]",Oi="[object Function]",Pi="[object Map]",Ii="[object Number]",ji="[object Object]",Ni="[object RegExp]",Li="[object Set]",Mi="[object String]",Ri="[object WeakMap]",Gi="[object ArrayBuffer]",Ui="[object DataView]",Hi="[object Float32Array]",$i="[object Float64Array]",qi="[object Int8Array]",Vi="[object Int16Array]",Wi="[object Int32Array]",zi="[object Uint8Array]",Ki="[object Uint8ClampedArray]",Ji="[object Uint16Array]",Yi="[object Uint32Array]",w={};w[Hi]=w[$i]=w[qi]=w[Vi]=w[Wi]=w[zi]=w[Ki]=w[Ji]=w[Yi]=!0;w[vi]=w[_i]=w[Gi]=w[Si]=w[Ui]=w[wi]=w[Ti]=w[Oi]=w[Pi]=w[Ii]=w[ji]=w[Ni]=w[Li]=w[Mi]=w[Ri]=!1;function Xi(e){return L(e)&&It(e.length)&&!!w[re(e)]}var Cr=Xi;function Zi(e){return function(t){return e(t)}}var Qe=Zi;var Fr=typeof exports=="object"&&exports&&!exports.nodeType&&exports,lt=Fr&&typeof module=="object"&&module&&!module.nodeType&&module,Qi=lt&<.exports===Fr,nu=Qi&&yt.process,ki=function(){try{var e=lt&<.require&<.require("util").types;return e||nu&&nu.binding&&nu.binding("util")}catch{}}(),Ee=ki;var Er=Ee&&Ee.isTypedArray,ef=Er?Qe(Er):Cr,ke=ef;var tf=Object.prototype,uf=tf.hasOwnProperty;function rf(e,t){var u=te(e),o=!u&&pt(e),f=!u&&!o&&Fe(e),i=!u&&!o&&!f&&ke(e),D=u||o||f||i,l=D?pr(e.length,String):[],m=l.length;for(var g in e)(t||uf.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=rf;var of=Object.prototype;function af(e){var t=e&&e.constructor,u=typeof t=="function"&&t.prototype||of;return e===u}var et=af;function nf(e,t){return function(u){return e(t(u))}}var Nt=nf;var ff=Nt(Object.keys,Object),xr=ff;var sf=Object.prototype,Df=sf.hasOwnProperty;function pf(e){if(!et(e))return xr(e);var t=[];for(var u in Object(e))Df.call(e,u)&&u!="constructor"&&t.push(u);return t}var gr=pf;function lf(e){return e!=null&&It(e.length)&&!ze(e)}var Te=lf;function mf(e){return Te(e)?jt(e):gr(e)}var tt=mf;function df(e){return Tt(e,tt,Ze)}var mt=df;var cf=1,Af=Object.prototype,Cf=Af.hasOwnProperty;function Ff(e,t,u,o,f,i){var D=u&cf,l=mt(e),m=l.length,g=mt(t),B=g.length;if(m!=B&&!D)return!1;for(var h=m;h--;){var b=l[h];if(!(D?b in t:Cf.call(t,b)))return!1}var M=i.get(e),I=i.get(t);if(M&&I)return M==t&&I==e;var $=!0;i.set(e,t),i.set(t,e);for(var j=D;++h<m;){b=l[h];var T=e[b],pe=t[b];if(o)var nt=D?o(pe,T,b,t,e,i):o(T,pe,b,e,t,i);if(!(nt===void 0?T===pe||f(T,pe,u,o,i):nt)){$=!1;break}j||(j=b=="constructor")}if($&&!j){var Ge=e.constructor,Ue=t.constructor;Ge!=Ue&&"constructor"in e&&"constructor"in t&&!(typeof Ge=="function"&&Ge instanceof Ge&&typeof Ue=="function"&&Ue instanceof Ue)&&($=!1)}return i.delete(e),i.delete(t),$}var Br=Ff;var Ef=ee(P,"DataView"),Lt=Ef;var xf=ee(P,"Promise"),Mt=xf;var gf=ee(P,"Set"),Rt=gf;var Bf=ee(P,"WeakMap"),Gt=Bf;var hr="[object Map]",hf="[object Object]",yr="[object Promise]",br="[object Set]",vr="[object WeakMap]",_r="[object DataView]",yf=Ae(Lt),bf=Ae(_e),vf=Ae(Mt),_f=Ae(Rt),Sf=Ae(Gt),Re=re;(Lt&&Re(new Lt(new ArrayBuffer(1)))!=_r||_e&&Re(new _e)!=hr||Mt&&Re(Mt.resolve())!=yr||Rt&&Re(new Rt)!=br||Gt&&Re(new Gt)!=vr)&&(Re=function(e){var t=re(e),u=t==hf?e.constructor:void 0,o=u?Ae(u):"";if(o)switch(o){case yf:return _r;case bf:return hr;case vf:return yr;case _f:return br;case Sf:return vr}return t});var xe=Re;var wf=1,Sr="[object Arguments]",wr="[object Array]",Ut="[object Object]",Tf=Object.prototype,Tr=Tf.hasOwnProperty;function Of(e,t,u,o,f,i){var D=te(e),l=te(t),m=D?wr:xe(e),g=l?wr:xe(t);m=m==Sr?Ut:m,g=g==Sr?Ut:g;var B=m==Ut,h=g==Ut,b=m==g;if(b&&Fe(e)){if(!Fe(t))return!1;D=!0,B=!1}if(b&&!B)return i||(i=new we),D||ke(e)?St(e,t,u,o,f,i):fr(e,t,m,u,o,f,i);if(!(u&wf)){var M=B&&Tr.call(e,"__wrapped__"),I=h&&Tr.call(t,"__wrapped__");if(M||I){var $=M?e.value():e,j=I?t.value():t;return i||(i=new we),f($,j,u,o,i)}}return b?(i||(i=new we),Br(e,t,u,o,f,i)):!1}var Or=Of;function Pr(e,t,u,o,f){return e===t?!0:e==null||t==null||!L(e)&&!L(t)?e!==e&&t!==t:Or(e,t,u,o,Pr,f)}var Ir=Pr;function Pf(e,t){return Ir(e,t)}var If=Pf;var jf="[object Symbol]";function Nf(e){return typeof e=="symbol"||L(e)&&re(e)==jf}var jr=Nf;function Lf(e,t){for(var u=-1,o=e==null?0:e.length,f=Array(o);++u<o;)f[u]=t(e[u],u,e);return f}var Nr=Lf;var Mf=1/0,Lr=Z?Z.prototype:void 0,Mr=Lr?Lr.toString:void 0;function Rr(e){if(typeof e=="string")return e;if(te(e))return Nr(e,Rr)+"";if(jr(e))return Mr?Mr.call(e):"";var t=e+"";return t=="0"&&1/e==-Mf?"-0":t}var Gr=Rr;function Rf(e){return e}var Ht=Rf;var Ur=Object.create,Gf=function(){function e(){}return function(t){if(!W(t))return{};if(Ur)return Ur(t);e.prototype=t;var u=new e;return e.prototype=void 0,u}}(),Hr=Gf;function Uf(e,t,u){switch(u.length){case 0:return e.call(t);case 1:return e.call(t,u[0]);case 2:return e.call(t,u[0],u[1]);case 3:return e.call(t,u[0],u[1],u[2])}return e.apply(t,u)}var $r=Uf;function Hf(e,t){var u=-1,o=e.length;for(t||(t=Array(o));++u<o;)t[u]=e[u];return t}var $t=Hf;var $f=800,qf=16,Vf=Date.now;function Wf(e){var t=0,u=0;return function(){var o=Vf(),f=qf-(o-u);if(u=o,f>0){if(++t>=$f)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var qr=Wf;function zf(e){return function(){return e}}var Vr=zf;var Kf=function(){try{var e=ee(Object,"defineProperty");return e({},"",{}),e}catch{}}(),ut=Kf;var Jf=ut?function(e,t){return ut(e,"toString",{configurable:!0,enumerable:!1,value:Vr(t),writable:!0})}:Ht,Wr=Jf;var Yf=qr(Wr),zr=Yf;function Xf(e,t){for(var u=-1,o=e==null?0:e.length;++u<o&&t(e[u],u,e)!==!1;);return e}var Kr=Xf;function Zf(e,t,u){t=="__proto__"&&ut?ut(e,t,{configurable:!0,enumerable:!0,value:u,writable:!0}):e[t]=u}var rt=Zf;var Qf=Object.prototype,kf=Qf.hasOwnProperty;function e0(e,t,u){var o=e[t];(!(kf.call(e,t)&&fe(o,u))||u===void 0&&!(t in e))&&rt(e,t,u)}var qt=e0;function t0(e,t,u,o){var f=!u;u||(u={});for(var i=-1,D=t.length;++i<D;){var l=t[i],m=o?o(u[l],e[l],l,u,e):void 0;m===void 0&&(m=e[l]),f?rt(u,l,m):qt(u,l,m)}return u}var se=t0;var Jr=Math.max;function u0(e,t,u){return t=Jr(t===void 0?e.length-1:t,0),function(){for(var o=arguments,f=-1,i=Jr(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]=u(D),$r(e,this,l)}}var Yr=u0;function r0(e,t){return zr(Yr(e,t,Ht),e+"")}var Xr=r0;function o0(e,t,u){if(!W(u))return!1;var o=typeof t;return(o=="number"?Te(u)&&Pt(t,u.length):o=="string"&&t in u)?fe(u[t],e):!1}var Zr=o0;function a0(e){return Xr(function(t,u){var o=-1,f=u.length,i=f>1?u[f-1]:void 0,D=f>2?u[2]:void 0;for(i=e.length>3&&typeof i=="function"?(f--,i):void 0,D&&Zr(u[0],u[1],D)&&(i=f<3?void 0:i,f=1),t=Object(t);++o<f;){var l=u[o];l&&e(t,l,o,i)}return t})}var Qr=a0;function n0(e){var t=[];if(e!=null)for(var u in Object(e))t.push(u);return t}var kr=n0;var i0=Object.prototype,f0=i0.hasOwnProperty;function s0(e){if(!W(e))return kr(e);var t=et(e),u=[];for(var o in e)o=="constructor"&&(t||!f0.call(e,o))||u.push(o);return u}var eo=s0;function D0(e){return Te(e)?jt(e,!0):eo(e)}var De=D0;function p0(e){return e==null?"":Gr(e)}var to=p0;var l0=Nt(Object.getPrototypeOf,Object),ot=l0;var m0="[object Object]",d0=Function.prototype,c0=Object.prototype,uo=d0.toString,A0=c0.hasOwnProperty,C0=uo.call(Object);function F0(e){if(!L(e)||re(e)!=m0)return!1;var t=ot(e);if(t===null)return!0;var u=A0.call(t,"constructor")&&t.constructor;return typeof u=="function"&&u instanceof u&&uo.call(u)==C0}var ro=F0;function E0(e,t){return e&&se(t,tt(t),e)}var oo=E0;function x0(e,t){return e&&se(t,De(t),e)}var ao=x0;var so=typeof exports=="object"&&exports&&!exports.nodeType&&exports,no=so&&typeof module=="object"&&module&&!module.nodeType&&module,g0=no&&no.exports===so,io=g0?P.Buffer:void 0,fo=io?io.allocUnsafe:void 0;function B0(e,t){if(t)return e.slice();var u=e.length,o=fo?fo(u):new e.constructor(u);return e.copy(o),o}var Vt=B0;function h0(e,t){return se(e,Ze(e),t)}var Do=h0;var y0=Object.getOwnPropertySymbols,b0=y0?function(e){for(var t=[];e;)wt(t,Ze(e)),e=ot(e);return t}:Ot,Wt=b0;function v0(e,t){return se(e,Wt(e),t)}var po=v0;function _0(e){return Tt(e,De,Wt)}var lo=_0;var S0=Object.prototype,w0=S0.hasOwnProperty;function T0(e){var t=e.length,u=new e.constructor(t);return t&&typeof e[0]=="string"&&w0.call(e,"index")&&(u.index=e.index,u.input=e.input),u}var mo=T0;function O0(e){var t=new e.constructor(e.byteLength);return new Xe(t).set(new Xe(e)),t}var at=O0;function P0(e,t){var u=t?at(e.buffer):e.buffer;return new e.constructor(u,e.byteOffset,e.byteLength)}var co=P0;var I0=/\w*$/;function j0(e){var t=new e.constructor(e.source,I0.exec(e));return t.lastIndex=e.lastIndex,t}var Ao=j0;var Co=Z?Z.prototype:void 0,Fo=Co?Co.valueOf:void 0;function N0(e){return Fo?Object(Fo.call(e)):{}}var Eo=N0;function L0(e,t){var u=t?at(e.buffer):e.buffer;return new e.constructor(u,e.byteOffset,e.length)}var zt=L0;var M0="[object Boolean]",R0="[object Date]",G0="[object Map]",U0="[object Number]",H0="[object RegExp]",$0="[object Set]",q0="[object String]",V0="[object Symbol]",W0="[object ArrayBuffer]",z0="[object DataView]",K0="[object Float32Array]",J0="[object Float64Array]",Y0="[object Int8Array]",X0="[object Int16Array]",Z0="[object Int32Array]",Q0="[object Uint8Array]",k0="[object Uint8ClampedArray]",es="[object Uint16Array]",ts="[object Uint32Array]";function us(e,t,u){var o=e.constructor;switch(t){case W0:return at(e);case M0:case R0:return new o(+e);case z0:return co(e,u);case K0:case J0:case Y0:case X0:case Z0:case Q0:case k0:case es:case ts:return zt(e,u);case G0:return new o;case U0:case q0:return new o(e);case H0:return Ao(e);case $0:return new o;case V0:return Eo(e)}}var xo=us;function rs(e){return typeof e.constructor=="function"&&!et(e)?Hr(ot(e)):{}}var Kt=rs;var os="[object Map]";function as(e){return L(e)&&xe(e)==os}var go=as;var Bo=Ee&&Ee.isMap,ns=Bo?Qe(Bo):go,ho=ns;var is="[object Set]";function fs(e){return L(e)&&xe(e)==is}var yo=fs;var bo=Ee&&Ee.isSet,ss=bo?Qe(bo):yo,vo=ss;var Ds=1,ps=2,ls=4,_o="[object Arguments]",ms="[object Array]",ds="[object Boolean]",cs="[object Date]",As="[object Error]",So="[object Function]",Cs="[object GeneratorFunction]",Fs="[object Map]",Es="[object Number]",wo="[object Object]",xs="[object RegExp]",gs="[object Set]",Bs="[object String]",hs="[object Symbol]",ys="[object WeakMap]",bs="[object ArrayBuffer]",vs="[object DataView]",_s="[object Float32Array]",Ss="[object Float64Array]",ws="[object Int8Array]",Ts="[object Int16Array]",Os="[object Int32Array]",Ps="[object Uint8Array]",Is="[object Uint8ClampedArray]",js="[object Uint16Array]",Ns="[object Uint32Array]",v={};v[_o]=v[ms]=v[bs]=v[vs]=v[ds]=v[cs]=v[_s]=v[Ss]=v[ws]=v[Ts]=v[Os]=v[Fs]=v[Es]=v[wo]=v[xs]=v[gs]=v[Bs]=v[hs]=v[Ps]=v[Is]=v[js]=v[Ns]=!0;v[As]=v[So]=v[ys]=!1;function Jt(e,t,u,o,f,i){var D,l=t&Ds,m=t&ps,g=t&ls;if(u&&(D=f?u(e,o,f,i):u(e)),D!==void 0)return D;if(!W(e))return e;var B=te(e);if(B){if(D=mo(e),!l)return $t(e,D)}else{var h=xe(e),b=h==So||h==Cs;if(Fe(e))return Vt(e,l);if(h==wo||h==_o||b&&!f){if(D=m||b?{}:Kt(e),!l)return m?po(e,ao(D,e)):Do(e,oo(D,e))}else{if(!v[h])return f?e:{};D=xo(e,h,l)}}i||(i=new we);var M=i.get(e);if(M)return M;i.set(e,D),vo(e)?e.forEach(function(j){D.add(Jt(j,t,u,j,e,i))}):ho(e)&&e.forEach(function(j,T){D.set(T,Jt(j,t,u,T,e,i))});var I=g?m?lo:mt:m?De:tt,$=B?void 0:I(e);return Kr($||e,function(j,T){$&&(T=j,j=e[T]),qt(D,T,Jt(j,t,u,T,e,i))}),D}var To=Jt;var Ls=1,Ms=4;function Rs(e){return To(e,Ls|Ms)}var Gs=Rs;function Us(e){return function(t,u,o){for(var f=-1,i=Object(t),D=o(t),l=D.length;l--;){var m=D[e?l:++f];if(u(i[m],m,i)===!1)break}return t}}var Oo=Us;var Hs=Oo(),Po=Hs;function $s(e,t,u){(u!==void 0&&!fe(e[t],u)||u===void 0&&!(t in e))&&rt(e,t,u)}var dt=$s;function qs(e){return L(e)&&Te(e)}var Io=qs;function Vs(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var ct=Vs;function Ws(e){return se(e,De(e))}var jo=Ws;function zs(e,t,u,o,f,i,D){var l=ct(e,u),m=ct(t,u),g=D.get(m);if(g){dt(e,u,g);return}var B=i?i(l,m,u+"",e,t,D):void 0,h=B===void 0;if(h){var b=te(m),M=!b&&Fe(m),I=!b&&!M&&ke(m);B=m,b||M||I?te(l)?B=l:Io(l)?B=$t(l):M?(h=!1,B=Vt(m,!0)):I?(h=!1,B=zt(m,!0)):B=[]:ro(m)||pt(m)?(B=l,pt(l)?B=jo(l):(!W(l)||ze(l))&&(B=Kt(m))):h=!1}h&&(D.set(m,B),f(B,m,o,i,D),D.delete(m)),dt(e,u,B)}var No=zs;function Lo(e,t,u,o,f){e!==t&&Po(t,function(i,D){if(f||(f=new we),W(i))No(e,t,D,u,Lo,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 Mo=Lo;var Ks=Qr(function(e,t,u){Mo(e,t,u)}),Js=Ks;var Ys=0;function Xs(e){var t=++Ys;return to(e)+t}var Zs=Xs;function ks(e,t){if(e&1&&(H(0,"li"),ue(1),H(2,"span",14),ue(3),X(),ue(4,")"),X()),e&2){let u=t.$implicit;U(),Me("",u.name," ("),U(2),Le(u.username)}}var ZA=(()=>{class e{$activeModal=he(Bt);$api=he(yu);$toastr=he(Bu);$translate=he(gu);bridges=[];onRestartChildBridgeClick(){return Au(this,null,function*(){try{for(let u of this.bridges)yield Cu(this.$api.put(`/server/restart/${u.username}`,{}));this.$toastr.success(this.$translate.instant("plugins.manage.child_bridge_restart"),this.$translate.instant("toast.title_success"))}catch(u){console.error(u),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-fw","fa-power-off","primary-text","mb-3",2,"font-size","75px"],[1,"w-100"],[1,"text-center"],[1,"d-inline-block","text-start","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-end"],["type","button",1,"btn","btn-primary",3,"click"],[1,"font-monospace"]],template:function(o,f){o&1&&(H(0,"div",0)(1,"div",1)(2,"h5",2),ue(3),Q(4,"translate"),X(),H(5,"button",3),Q(6,"translate"),ye("click",function(){return f.dismissModal()}),X()(),H(7,"div",4),Ve(8,"i",5),H(9,"p",6),ue(10),Q(11,"translate"),X(),H(12,"div",7)(13,"ul",8),Eu(14,ks,5,2,"li",null,Fu),X()()(),H(16,"div",9)(17,"div",10)(18,"button",11),Q(19,"translate"),ye("click",function(){return f.dismissModal()}),ue(20),Q(21,"translate"),X()(),Ve(22,"div",7),H(23,"div",12)(24,"button",13),ye("click",function(){return f.onRestartChildBridgeClick()}),ue(25),Q(26,"translate"),X()()()()),o&2&&(U(3),Le(k(4,6,"platform.version.service_restart_required")),U(2),qe("aria-label",k(6,8,"form.button_close")),U(5),Le(k(11,10,"restart.child_bridge_list")),U(4),xu(f.bridges),U(4),qe("aria-label",k(19,12,"form.button_close")),U(2),Me(" ",k(21,14,"form.button_close")," "),U(5),Me(" ",k(26,16,"menu.tooltip_restart")," "))},dependencies:[ht],encapsulation:2})}return e})();var aC=(()=>{class e{$activeModal=he(Bt);$router=he(hu);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-fw","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&&(H(0,"div",0)(1,"div",1)(2,"h5",2),ue(3),Q(4,"translate"),X(),H(5,"button",3),Q(6,"translate"),ye("click",function(){return f.dismissModal()}),X()(),H(7,"div",4),Ve(8,"i",5),H(9,"p",6),ue(10),Q(11,"translate"),X()(),H(12,"div",7)(13,"div",8)(14,"button",9),Q(15,"translate"),ye("click",function(){return f.dismissModal()}),ue(16),Q(17,"translate"),X()(),Ve(18,"div",10),H(19,"div",11)(20,"button",12),ye("click",function(){return f.onRestartHomebridgeClick()}),ue(21),Q(22,"translate"),X()()()()),o&2&&(U(3),Le(k(4,6,"platform.version.service_restart_required")),U(2),qe("aria-label",k(6,8,"form.button_close")),U(5),Le(k(11,10,"plugins.settings.restart_required")),U(4),qe("aria-label",k(15,12,"form.button_close")),U(2),Me(" ",k(17,14,"form.button_close")," "),U(5),Me(" ",k(22,16,"menu.tooltip_restart")," "))},dependencies:[ht],encapsulation:2})}return e})();export{Gs as a,If as b,Js as c,Zs as d,ZA as e,aC as f,eD as g};
|
package/public/chunk-GYWHA4UG.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as M}from"./chunk-UGMDVR5V.js";import"./chunk-AE7VAWOU.js";import{a as O}from"./chunk-V2P2FPJ7.js";import{a as _}from"./chunk-7OTNPUAL.js";import{n as z,t as D}from"./chunk-RYEUSRBX.js";import"./chunk-7BRVYYLY.js";import"./chunk-VY4A2U5R.js";import{b as H}from"./chunk-5B67RG5C.js";import"./chunk-WUPGTEQ4.js";import{k as F,n as V}from"./chunk-C3MIVQCG.js";import{a as E,b as A}from"./chunk-G7FA4DP4.js";import"./chunk-6GMXEQVA.js";import{$a as y,Hb as u,Ib as x,Jb as C,Jc as a,Kc as s,Ob as f,Pb as c,Qb as r,Rb as m,Uc as k,_b as T,ab as l,bc as p,dc as b,g as q,h as w,ka as i,kc as L,lc as S,mb as $,n as v,qa as d,qc as I,ra as g,rc as B}from"./chunk-H36QJYLQ.js";var N=q(O(),1);var Q=["logoutput"];function W(o,P){if(o&1){let t=T();c(0,"div",4)(1,"button",7),a(2,"translate"),a(3,"translate"),p("click",function(){d(t);let n=b();return g(n.downloadLogFile())}),m(4,"i",8),r(),c(5,"button",9),a(6,"translate"),a(7,"translate"),p("click",function(){d(t);let n=b();return g(n.truncateLogFile())}),m(8,"i",10),r()()}o&2&&(l(),f("openDelay",150)("ngbTooltip",s(2,6,"form.button_download")),u("aria-label",s(3,8,"form.button_download")),l(4),f("openDelay",150)("ngbTooltip",s(6,10,"form.button_delete")),u("aria-label",s(7,12,"form.button_delete")))}var it=(()=>{class o{$api=i(V);$auth=i(H);$log=i(M);$modal=i(z);$toastr=i(F);$translate=i(E);termTarget=k("logoutput");resizeEvent=new v;isAdmin=this.$auth.user.admin;onWindowResize(){this.resizeEvent.next(void 0)}ngOnInit(){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(_,{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-fw 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,N.saveAs)(e.body,"homebridge.log.txt")},error:e=>w(this,null,function*(){let n;try{n=JSON.parse(yield e.error.text()).message}catch(h){console.error(h)}this.$toastr.error(n||this.$translate.instant("logs.download.error"),this.$translate.instant("toast.title_error"))})})}).catch(()=>{})}truncateLogFile(){let t=this.$modal.open(_,{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-fw 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||o)};static \u0275cmp=$({type:o,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(j){return n.onWindowResize(j)},y)},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-fw","fa-download"],["container","body","placement","bottom","triggers","hover",1,"btn","btn-elegant","my-0","me-0",3,"click","openDelay","ngbTooltip"],[1,"fas","fa-fw","fa-trash-alt"]],template:function(e,n){e&1&&(c(0,"div",1)(1,"div",2)(2,"h3",3),I(3),a(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(s(4,2,"menu.linux.label_logs")),l(2),C(n.isAdmin?5:-1))},dependencies:[D,A],encapsulation:2})}return o})();export{it as LogsComponent};
|