diff --git a/apis/settings_test.go b/apis/settings_test.go index 5ca17a479..477332cd6 100644 --- a/apis/settings_test.go +++ b/apis/settings_test.go @@ -55,6 +55,7 @@ func TestSettingsList(t *testing.T) { `"twitterAuth":{`, `"discordAuth":{`, `"microsoftAuth":{`, + `"spotifyAuth":{`, `"secret":"******"`, `"clientSecret":"******"`, }, @@ -119,6 +120,7 @@ func TestSettingsSet(t *testing.T) { `"gitlabAuth":{`, `"discordAuth":{`, `"microsoftAuth":{`, + `"spotifyAuth":{`, `"secret":"******"`, `"clientSecret":"******"`, `"appName":"Acme"`, @@ -172,6 +174,7 @@ func TestSettingsSet(t *testing.T) { `"twitterAuth":{`, `"discordAuth":{`, `"microsoftAuth":{`, + `"spotifyAuth":{`, `"secret":"******"`, `"clientSecret":"******"`, `"appName":"update_test"`, diff --git a/core/settings.go b/core/settings.go index 1dd25d7cc..4ccde891d 100644 --- a/core/settings.go +++ b/core/settings.go @@ -40,6 +40,7 @@ type Settings struct { DiscordAuth AuthProviderConfig `form:"discordAuth" json:"discordAuth"` TwitterAuth AuthProviderConfig `form:"twitterAuth" json:"twitterAuth"` MicrosoftAuth AuthProviderConfig `form:"microsoftAuth" json:"microsoftAuth"` + SpotifyAuth AuthProviderConfig `form:"spotifyAuth" json:"spotifyAuth"` } // NewSettings creates and returns a new default Settings instance. @@ -111,6 +112,9 @@ func NewSettings() *Settings { MicrosoftAuth: AuthProviderConfig{ Enabled: false, }, + SpotifyAuth: AuthProviderConfig{ + Enabled: false, + }, } } @@ -137,6 +141,7 @@ func (s *Settings) Validate() error { validation.Field(&s.DiscordAuth), validation.Field(&s.TwitterAuth), validation.Field(&s.MicrosoftAuth), + validation.Field(&s.SpotifyAuth), ) } @@ -188,6 +193,7 @@ func (s *Settings) RedactClone() (*Settings, error) { &clone.DiscordAuth.ClientSecret, &clone.TwitterAuth.ClientSecret, &clone.MicrosoftAuth.ClientSecret, + &clone.SpotifyAuth.ClientSecret, } // mask all sensitive fields @@ -214,6 +220,7 @@ func (s *Settings) NamedAuthProviderConfigs() map[string]AuthProviderConfig { auth.NameDiscord: s.DiscordAuth, auth.NameTwitter: s.TwitterAuth, auth.NameMicrosoft: s.MicrosoftAuth, + auth.NameSpotify: s.SpotifyAuth, } } diff --git a/core/settings_test.go b/core/settings_test.go index ca46be7fb..3e40410fb 100644 --- a/core/settings_test.go +++ b/core/settings_test.go @@ -41,6 +41,8 @@ func TestSettingsValidate(t *testing.T) { s.TwitterAuth.ClientId = "" s.MicrosoftAuth.Enabled = true s.MicrosoftAuth.ClientId = "" + s.SpotifyAuth.Enabled = true + s.SpotifyAuth.ClientId = "" // check if Validate() is triggering the members validate methods. err := s.Validate() @@ -66,6 +68,7 @@ func TestSettingsValidate(t *testing.T) { `"discordAuth":{`, `"twitterAuth":{`, `"microsoftAuth":{`, + `"spotifyAuth":{`, } errBytes, _ := json.Marshal(err) @@ -108,6 +111,8 @@ func TestSettingsMerge(t *testing.T) { s2.TwitterAuth.ClientId = "twitter_test" s2.MicrosoftAuth.Enabled = true s2.MicrosoftAuth.ClientId = "microsoft_test" + s2.SpotifyAuth.Enabled = true + s2.SpotifyAuth.ClientId = "spotify_test" if err := s1.Merge(s2); err != nil { t.Fatal(err) @@ -176,6 +181,7 @@ func TestSettingsRedactClone(t *testing.T) { s1.DiscordAuth.ClientSecret = "test123" s1.TwitterAuth.ClientSecret = "test123" s1.MicrosoftAuth.ClientSecret = "test123" + s1.SpotifyAuth.ClientSecret = "test123" s2, err := s1.RedactClone() if err != nil { @@ -187,7 +193,7 @@ func TestSettingsRedactClone(t *testing.T) { t.Fatal(err) } - expected := `{"meta":{"appName":"test123","appUrl":"http://localhost:8090","hideControls":false,"senderName":"Support","senderAddress":"support@example.com","verificationTemplate":{"body":"\u003cp\u003eHello,\u003c/p\u003e\n\u003cp\u003eThank you for joining us at {APP_NAME}.\u003c/p\u003e\n\u003cp\u003eClick on the button below to verify your email address.\u003c/p\u003e\n\u003cp\u003e\n \u003ca class=\"btn\" href=\"{ACTION_URL}\" target=\"_blank\" rel=\"noopener\"\u003eVerify\u003c/a\u003e\n\u003c/p\u003e\n\u003cp\u003e\n Thanks,\u003cbr/\u003e\n {APP_NAME} team\n\u003c/p\u003e","subject":"Verify your {APP_NAME} email","actionUrl":"{APP_URL}/_/#/auth/confirm-verification/{TOKEN}"},"resetPasswordTemplate":{"body":"\u003cp\u003eHello,\u003c/p\u003e\n\u003cp\u003eClick on the button below to reset your password.\u003c/p\u003e\n\u003cp\u003e\n \u003ca class=\"btn\" href=\"{ACTION_URL}\" target=\"_blank\" rel=\"noopener\"\u003eReset password\u003c/a\u003e\n\u003c/p\u003e\n\u003cp\u003e\u003ci\u003eIf you didn't ask to reset your password, you can ignore this email.\u003c/i\u003e\u003c/p\u003e\n\u003cp\u003e\n Thanks,\u003cbr/\u003e\n {APP_NAME} team\n\u003c/p\u003e","subject":"Reset your {APP_NAME} password","actionUrl":"{APP_URL}/_/#/auth/confirm-password-reset/{TOKEN}"},"confirmEmailChangeTemplate":{"body":"\u003cp\u003eHello,\u003c/p\u003e\n\u003cp\u003eClick on the button below to confirm your new email address.\u003c/p\u003e\n\u003cp\u003e\n \u003ca class=\"btn\" href=\"{ACTION_URL}\" target=\"_blank\" rel=\"noopener\"\u003eConfirm new email\u003c/a\u003e\n\u003c/p\u003e\n\u003cp\u003e\u003ci\u003eIf you didn't ask to change your email address, you can ignore this email.\u003c/i\u003e\u003c/p\u003e\n\u003cp\u003e\n Thanks,\u003cbr/\u003e\n {APP_NAME} team\n\u003c/p\u003e","subject":"Confirm your {APP_NAME} new email address","actionUrl":"{APP_URL}/_/#/auth/confirm-email-change/{TOKEN}"}},"logs":{"maxDays":5},"smtp":{"enabled":false,"host":"smtp.example.com","port":587,"username":"","password":"******","tls":true},"s3":{"enabled":false,"bucket":"","region":"","endpoint":"","accessKey":"","secret":"******","forcePathStyle":false},"adminAuthToken":{"secret":"******","duration":1209600},"adminPasswordResetToken":{"secret":"******","duration":1800},"recordAuthToken":{"secret":"******","duration":1209600},"recordPasswordResetToken":{"secret":"******","duration":1800},"recordEmailChangeToken":{"secret":"******","duration":1800},"recordVerificationToken":{"secret":"******","duration":604800},"emailAuth":{"enabled":false,"exceptDomains":null,"onlyDomains":null,"minPasswordLength":0},"googleAuth":{"enabled":false,"clientSecret":"******"},"facebookAuth":{"enabled":false,"clientSecret":"******"},"githubAuth":{"enabled":false,"clientSecret":"******"},"gitlabAuth":{"enabled":false,"clientSecret":"******"},"discordAuth":{"enabled":false,"clientSecret":"******"},"twitterAuth":{"enabled":false,"clientSecret":"******"},"microsoftAuth":{"enabled":false,"clientSecret":"******"}}` + expected := `{"meta":{"appName":"test123","appUrl":"http://localhost:8090","hideControls":false,"senderName":"Support","senderAddress":"support@example.com","verificationTemplate":{"body":"\u003cp\u003eHello,\u003c/p\u003e\n\u003cp\u003eThank you for joining us at {APP_NAME}.\u003c/p\u003e\n\u003cp\u003eClick on the button below to verify your email address.\u003c/p\u003e\n\u003cp\u003e\n \u003ca class=\"btn\" href=\"{ACTION_URL}\" target=\"_blank\" rel=\"noopener\"\u003eVerify\u003c/a\u003e\n\u003c/p\u003e\n\u003cp\u003e\n Thanks,\u003cbr/\u003e\n {APP_NAME} team\n\u003c/p\u003e","subject":"Verify your {APP_NAME} email","actionUrl":"{APP_URL}/_/#/auth/confirm-verification/{TOKEN}"},"resetPasswordTemplate":{"body":"\u003cp\u003eHello,\u003c/p\u003e\n\u003cp\u003eClick on the button below to reset your password.\u003c/p\u003e\n\u003cp\u003e\n \u003ca class=\"btn\" href=\"{ACTION_URL}\" target=\"_blank\" rel=\"noopener\"\u003eReset password\u003c/a\u003e\n\u003c/p\u003e\n\u003cp\u003e\u003ci\u003eIf you didn't ask to reset your password, you can ignore this email.\u003c/i\u003e\u003c/p\u003e\n\u003cp\u003e\n Thanks,\u003cbr/\u003e\n {APP_NAME} team\n\u003c/p\u003e","subject":"Reset your {APP_NAME} password","actionUrl":"{APP_URL}/_/#/auth/confirm-password-reset/{TOKEN}"},"confirmEmailChangeTemplate":{"body":"\u003cp\u003eHello,\u003c/p\u003e\n\u003cp\u003eClick on the button below to confirm your new email address.\u003c/p\u003e\n\u003cp\u003e\n \u003ca class=\"btn\" href=\"{ACTION_URL}\" target=\"_blank\" rel=\"noopener\"\u003eConfirm new email\u003c/a\u003e\n\u003c/p\u003e\n\u003cp\u003e\u003ci\u003eIf you didn't ask to change your email address, you can ignore this email.\u003c/i\u003e\u003c/p\u003e\n\u003cp\u003e\n Thanks,\u003cbr/\u003e\n {APP_NAME} team\n\u003c/p\u003e","subject":"Confirm your {APP_NAME} new email address","actionUrl":"{APP_URL}/_/#/auth/confirm-email-change/{TOKEN}"}},"logs":{"maxDays":5},"smtp":{"enabled":false,"host":"smtp.example.com","port":587,"username":"","password":"******","tls":true},"s3":{"enabled":false,"bucket":"","region":"","endpoint":"","accessKey":"","secret":"******","forcePathStyle":false},"adminAuthToken":{"secret":"******","duration":1209600},"adminPasswordResetToken":{"secret":"******","duration":1800},"recordAuthToken":{"secret":"******","duration":1209600},"recordPasswordResetToken":{"secret":"******","duration":1800},"recordEmailChangeToken":{"secret":"******","duration":1800},"recordVerificationToken":{"secret":"******","duration":604800},"emailAuth":{"enabled":false,"exceptDomains":null,"onlyDomains":null,"minPasswordLength":0},"googleAuth":{"enabled":false,"clientSecret":"******"},"facebookAuth":{"enabled":false,"clientSecret":"******"},"githubAuth":{"enabled":false,"clientSecret":"******"},"gitlabAuth":{"enabled":false,"clientSecret":"******"},"discordAuth":{"enabled":false,"clientSecret":"******"},"twitterAuth":{"enabled":false,"clientSecret":"******"},"microsoftAuth":{"enabled":false,"clientSecret":"******"},"spotifyAuth":{"enabled":false,"clientSecret":"******"}}` if encodedStr := string(encoded); encodedStr != expected { t.Fatalf("Expected\n%v\ngot\n%v", expected, encodedStr) @@ -205,6 +211,7 @@ func TestNamedAuthProviderConfigs(t *testing.T) { s.DiscordAuth.ClientId = "discord_test" s.TwitterAuth.ClientId = "twitter_test" s.MicrosoftAuth.ClientId = "microsoft_test" + s.SpotifyAuth.ClientId = "spotify_test" result := s.NamedAuthProviderConfigs() @@ -213,7 +220,7 @@ func TestNamedAuthProviderConfigs(t *testing.T) { t.Fatal(err) } - expected := `{"discord":{"enabled":false,"clientId":"discord_test"},"facebook":{"enabled":false,"clientId":"facebook_test"},"github":{"enabled":false,"clientId":"github_test"},"gitlab":{"enabled":true,"clientId":"gitlab_test"},"google":{"enabled":false,"clientId":"google_test"},"microsoft":{"enabled":false,"clientId":"microsoft_test"},"twitter":{"enabled":false,"clientId":"twitter_test"}}` + expected := `{"discord":{"enabled":false,"clientId":"discord_test"},"facebook":{"enabled":false,"clientId":"facebook_test"},"github":{"enabled":false,"clientId":"github_test"},"gitlab":{"enabled":true,"clientId":"gitlab_test"},"google":{"enabled":false,"clientId":"google_test"},"microsoft":{"enabled":false,"clientId":"microsoft_test"},"spotify":{"enabled":false,"clientId":"spotify_test"},"twitter":{"enabled":false,"clientId":"twitter_test"}}` if encodedStr := string(encoded); encodedStr != expected { t.Fatalf("Expected the same serialization, got \n%v", encodedStr) diff --git a/tools/auth/auth.go b/tools/auth/auth.go index 57a8dbc37..b926e6a56 100644 --- a/tools/auth/auth.go +++ b/tools/auth/auth.go @@ -97,6 +97,8 @@ func NewProviderByName(name string) (Provider, error) { return NewTwitterProvider(), nil case NameMicrosoft: return NewMicrosoftProvider(), nil + case NameSpotify: + return NewSpotifyProvider(), nil default: return nil, errors.New("Missing provider " + name) } diff --git a/tools/auth/auth_test.go b/tools/auth/auth_test.go index 6d09e30ff..d2d05573d 100644 --- a/tools/auth/auth_test.go +++ b/tools/auth/auth_test.go @@ -72,4 +72,13 @@ func TestNewProviderByName(t *testing.T) { if _, ok := p.(*auth.Microsoft); !ok { t.Error("Expected to be instance of *auth.Microsoft") } + + // spotify + p, err = auth.NewProviderByName(auth.NameSpotify) + if err != nil { + t.Errorf("Expected nil, got error %v", err) + } + if _, ok := p.(*auth.Spotify); !ok { + t.Error("Expected to be instance of *auth.Spotify") + } } diff --git a/tools/auth/spotify.go b/tools/auth/spotify.go new file mode 100644 index 000000000..0cadbad2a --- /dev/null +++ b/tools/auth/spotify.go @@ -0,0 +1,54 @@ +package auth + +import ( + "golang.org/x/oauth2" + "golang.org/x/oauth2/spotify" +) + +var _ Provider = (*Spotify)(nil) + +// NameSpotify is the unique name of the Spotify provider. +const NameSpotify string = "spotify" + +// Spotify allows authentication via Spotify OAuth2. +type Spotify struct { + *baseProvider +} + +// NewSpotifyProvider creates a new Spotify provider instance with some defaults. +func NewSpotifyProvider() *Spotify { + return &Spotify{&baseProvider{ + scopes: []string{"user-read-private", "user-read-email"}, + authUrl: spotify.Endpoint.AuthURL, + tokenUrl: spotify.Endpoint.TokenURL, + userApiUrl: "https://api.spotify.com/v1/me", + }} +} + +// FetchAuthUser returns an AuthUser instance based on the Spotify's user api. +func (p *Spotify) FetchAuthUser(token *oauth2.Token) (*AuthUser, error) { + // https://developer.spotify.com/documentation/web-api/reference/#/operations/get-current-users-profile + rawData := struct { + Id string `json:"id"` + Name string `json:"display_name"` + Email string `json:"email"` + Images []struct { + Url string `json:"url"` + } `json:"images"` + }{} + + if err := p.FetchRawUserData(token, &rawData); err != nil { + return nil, err + } + + user := &AuthUser{ + Id: rawData.Id, + Name: rawData.Name, + Email: rawData.Email, + } + if len(rawData.Images) > 0 { + user.AvatarUrl = rawData.Images[0].Url + } + + return user, nil +} diff --git a/ui/dist/assets/AuthMethodsDocs.eae43462.js b/ui/dist/assets/AuthMethodsDocs.c1281d2c.js similarity index 98% rename from ui/dist/assets/AuthMethodsDocs.eae43462.js rename to ui/dist/assets/AuthMethodsDocs.c1281d2c.js index 5199242aa..5d284d079 100644 --- a/ui/dist/assets/AuthMethodsDocs.eae43462.js +++ b/ui/dist/assets/AuthMethodsDocs.c1281d2c.js @@ -1,4 +1,4 @@ -import{S as ke,i as be,s as ge,e as r,w as b,b as g,c as _e,f as k,g as h,h as n,m as me,x as G,P as re,Q as we,k as ve,R as Ce,n as Pe,t as J,a as Y,o as _,d as pe,L as Me,C as Se,p as $e,r as H,u as je,O as Ae}from"./index.7b2502cb.js";import{S as Be}from"./SdkTabs.315f7f19.js";function ue(a,l,o){const s=a.slice();return s[5]=l[o],s}function de(a,l,o){const s=a.slice();return s[5]=l[o],s}function fe(a,l){let o,s=l[5].code+"",m,f,i,u;function d(){return l[4](l[5])}return{key:a,first:null,c(){o=r("button"),m=b(s),f=g(),k(o,"class","tab-item"),H(o,"active",l[1]===l[5].code),this.first=o},m(v,C){h(v,o,C),n(o,m),n(o,f),i||(u=je(o,"click",d),i=!0)},p(v,C){l=v,C&4&&s!==(s=l[5].code+"")&&G(m,s),C&6&&H(o,"active",l[1]===l[5].code)},d(v){v&&_(o),i=!1,u()}}}function he(a,l){let o,s,m,f;return s=new Ae({props:{content:l[5].body}}),{key:a,first:null,c(){o=r("div"),_e(s.$$.fragment),m=g(),k(o,"class","tab-item"),H(o,"active",l[1]===l[5].code),this.first=o},m(i,u){h(i,o,u),me(s,o,null),n(o,m),f=!0},p(i,u){l=i;const d={};u&4&&(d.content=l[5].body),s.$set(d),(!f||u&6)&&H(o,"active",l[1]===l[5].code)},i(i){f||(J(s.$$.fragment,i),f=!0)},o(i){Y(s.$$.fragment,i),f=!1},d(i){i&&_(o),pe(s)}}}function Oe(a){var ae,ne;let l,o,s=a[0].name+"",m,f,i,u,d,v,C,K=a[0].name+"",U,R,q,P,D,j,W,M,N,X,Q,A,Z,V,y=a[0].name+"",I,x,L,B,E,S,O,w=[],ee=new Map,te,T,p=[],le=new Map,$;P=new Be({props:{js:` +import{S as ke,i as be,s as ge,e as r,w as b,b as g,c as _e,f as k,g as h,h as n,m as me,x as G,P as re,Q as we,k as ve,R as Ce,n as Pe,t as J,a as Y,o as _,d as pe,L as Me,C as Se,p as $e,r as H,u as je,O as Ae}from"./index.be8ffbe5.js";import{S as Be}from"./SdkTabs.8f55857f.js";function ue(a,l,o){const s=a.slice();return s[5]=l[o],s}function de(a,l,o){const s=a.slice();return s[5]=l[o],s}function fe(a,l){let o,s=l[5].code+"",m,f,i,u;function d(){return l[4](l[5])}return{key:a,first:null,c(){o=r("button"),m=b(s),f=g(),k(o,"class","tab-item"),H(o,"active",l[1]===l[5].code),this.first=o},m(v,C){h(v,o,C),n(o,m),n(o,f),i||(u=je(o,"click",d),i=!0)},p(v,C){l=v,C&4&&s!==(s=l[5].code+"")&&G(m,s),C&6&&H(o,"active",l[1]===l[5].code)},d(v){v&&_(o),i=!1,u()}}}function he(a,l){let o,s,m,f;return s=new Ae({props:{content:l[5].body}}),{key:a,first:null,c(){o=r("div"),_e(s.$$.fragment),m=g(),k(o,"class","tab-item"),H(o,"active",l[1]===l[5].code),this.first=o},m(i,u){h(i,o,u),me(s,o,null),n(o,m),f=!0},p(i,u){l=i;const d={};u&4&&(d.content=l[5].body),s.$set(d),(!f||u&6)&&H(o,"active",l[1]===l[5].code)},i(i){f||(J(s.$$.fragment,i),f=!0)},o(i){Y(s.$$.fragment,i),f=!1},d(i){i&&_(o),pe(s)}}}function Oe(a){var ae,ne;let l,o,s=a[0].name+"",m,f,i,u,d,v,C,K=a[0].name+"",U,R,q,P,D,j,W,M,N,X,Q,A,Z,V,y=a[0].name+"",I,x,L,B,E,S,O,w=[],ee=new Map,te,T,p=[],le=new Map,$;P=new Be({props:{js:` import PocketBase from 'pocketbase'; const pb = new PocketBase('${a[3]}'); diff --git a/ui/dist/assets/AuthRefreshDocs.7509da38.js b/ui/dist/assets/AuthRefreshDocs.9e6993e7.js similarity index 98% rename from ui/dist/assets/AuthRefreshDocs.7509da38.js rename to ui/dist/assets/AuthRefreshDocs.9e6993e7.js index b7db4680a..4393fd7a9 100644 --- a/ui/dist/assets/AuthRefreshDocs.7509da38.js +++ b/ui/dist/assets/AuthRefreshDocs.9e6993e7.js @@ -1,4 +1,4 @@ -import{S as Ne,i as Ue,s as je,O as ze,e as s,w as k,b as p,c as se,f as b,g as c,h as o,m as ne,x as re,P as Oe,Q as Ie,k as Je,R as Ke,n as Qe,t as U,a as j,o as d,d as ie,L as xe,C as Fe,p as We,r as I,u as Ge}from"./index.7b2502cb.js";import{S as Xe}from"./SdkTabs.315f7f19.js";function He(r,l,a){const n=r.slice();return n[5]=l[a],n}function Le(r,l,a){const n=r.slice();return n[5]=l[a],n}function Ee(r,l){let a,n=l[5].code+"",m,_,i,f;function v(){return l[4](l[5])}return{key:r,first:null,c(){a=s("button"),m=k(n),_=p(),b(a,"class","tab-item"),I(a,"active",l[1]===l[5].code),this.first=a},m(g,w){c(g,a,w),o(a,m),o(a,_),i||(f=Ge(a,"click",v),i=!0)},p(g,w){l=g,w&4&&n!==(n=l[5].code+"")&&re(m,n),w&6&&I(a,"active",l[1]===l[5].code)},d(g){g&&d(a),i=!1,f()}}}function Ve(r,l){let a,n,m,_;return n=new ze({props:{content:l[5].body}}),{key:r,first:null,c(){a=s("div"),se(n.$$.fragment),m=p(),b(a,"class","tab-item"),I(a,"active",l[1]===l[5].code),this.first=a},m(i,f){c(i,a,f),ne(n,a,null),o(a,m),_=!0},p(i,f){l=i;const v={};f&4&&(v.content=l[5].body),n.$set(v),(!_||f&6)&&I(a,"active",l[1]===l[5].code)},i(i){_||(U(n.$$.fragment,i),_=!0)},o(i){j(n.$$.fragment,i),_=!1},d(i){i&&d(a),ie(n)}}}function Ye(r){var Be,Me;let l,a,n=r[0].name+"",m,_,i,f,v,g,w,B,J,S,L,ce,E,M,de,K,V=r[0].name+"",Q,ue,pe,z,x,q,W,T,G,fe,X,C,Y,he,Z,be,h,me,P,_e,ke,ve,ee,ge,te,ye,Se,$e,oe,we,le,D,ae,R,O,$=[],Te=new Map,Ce,F,y=[],Re=new Map,A;g=new Xe({props:{js:` +import{S as Ne,i as Ue,s as je,O as ze,e as s,w as k,b as p,c as se,f as b,g as c,h as o,m as ne,x as re,P as Oe,Q as Ie,k as Je,R as Ke,n as Qe,t as U,a as j,o as d,d as ie,L as xe,C as Fe,p as We,r as I,u as Ge}from"./index.be8ffbe5.js";import{S as Xe}from"./SdkTabs.8f55857f.js";function He(r,l,a){const n=r.slice();return n[5]=l[a],n}function Le(r,l,a){const n=r.slice();return n[5]=l[a],n}function Ee(r,l){let a,n=l[5].code+"",m,_,i,f;function v(){return l[4](l[5])}return{key:r,first:null,c(){a=s("button"),m=k(n),_=p(),b(a,"class","tab-item"),I(a,"active",l[1]===l[5].code),this.first=a},m(g,w){c(g,a,w),o(a,m),o(a,_),i||(f=Ge(a,"click",v),i=!0)},p(g,w){l=g,w&4&&n!==(n=l[5].code+"")&&re(m,n),w&6&&I(a,"active",l[1]===l[5].code)},d(g){g&&d(a),i=!1,f()}}}function Ve(r,l){let a,n,m,_;return n=new ze({props:{content:l[5].body}}),{key:r,first:null,c(){a=s("div"),se(n.$$.fragment),m=p(),b(a,"class","tab-item"),I(a,"active",l[1]===l[5].code),this.first=a},m(i,f){c(i,a,f),ne(n,a,null),o(a,m),_=!0},p(i,f){l=i;const v={};f&4&&(v.content=l[5].body),n.$set(v),(!_||f&6)&&I(a,"active",l[1]===l[5].code)},i(i){_||(U(n.$$.fragment,i),_=!0)},o(i){j(n.$$.fragment,i),_=!1},d(i){i&&d(a),ie(n)}}}function Ye(r){var Be,Me;let l,a,n=r[0].name+"",m,_,i,f,v,g,w,B,J,S,L,ce,E,M,de,K,V=r[0].name+"",Q,ue,pe,z,x,q,W,T,G,fe,X,C,Y,he,Z,be,h,me,P,_e,ke,ve,ee,ge,te,ye,Se,$e,oe,we,le,D,ae,R,O,$=[],Te=new Map,Ce,F,y=[],Re=new Map,A;g=new Xe({props:{js:` import PocketBase from 'pocketbase'; const pb = new PocketBase('${r[3]}'); diff --git a/ui/dist/assets/AuthWithOAuth2Docs.01133011.js b/ui/dist/assets/AuthWithOAuth2Docs.9d132f74.js similarity index 98% rename from ui/dist/assets/AuthWithOAuth2Docs.01133011.js rename to ui/dist/assets/AuthWithOAuth2Docs.9d132f74.js index 711da4861..d67569010 100644 --- a/ui/dist/assets/AuthWithOAuth2Docs.01133011.js +++ b/ui/dist/assets/AuthWithOAuth2Docs.9d132f74.js @@ -1,4 +1,4 @@ -import{S as je,i as He,s as Je,O as We,e as s,w as v,b as p,c as re,f as h,g as r,h as a,m as ce,x as de,P as Ue,Q as Ne,k as Qe,R as ze,n as Ke,t as j,a as H,o as c,d as ue,L as Ye,C as Ve,p as Ge,r as J,u as Xe}from"./index.7b2502cb.js";import{S as Ze}from"./SdkTabs.315f7f19.js";function Be(i,l,o){const n=i.slice();return n[5]=l[o],n}function Fe(i,l,o){const n=i.slice();return n[5]=l[o],n}function xe(i,l){let o,n=l[5].code+"",m,_,d,b;function g(){return l[4](l[5])}return{key:i,first:null,c(){o=s("button"),m=v(n),_=p(),h(o,"class","tab-item"),J(o,"active",l[1]===l[5].code),this.first=o},m(k,R){r(k,o,R),a(o,m),a(o,_),d||(b=Xe(o,"click",g),d=!0)},p(k,R){l=k,R&4&&n!==(n=l[5].code+"")&&de(m,n),R&6&&J(o,"active",l[1]===l[5].code)},d(k){k&&c(o),d=!1,b()}}}function Me(i,l){let o,n,m,_;return n=new We({props:{content:l[5].body}}),{key:i,first:null,c(){o=s("div"),re(n.$$.fragment),m=p(),h(o,"class","tab-item"),J(o,"active",l[1]===l[5].code),this.first=o},m(d,b){r(d,o,b),ce(n,o,null),a(o,m),_=!0},p(d,b){l=d;const g={};b&4&&(g.content=l[5].body),n.$set(g),(!_||b&6)&&J(o,"active",l[1]===l[5].code)},i(d){_||(j(n.$$.fragment,d),_=!0)},o(d){H(n.$$.fragment,d),_=!1},d(d){d&&c(o),ue(n)}}}function et(i){var Ie,qe;let l,o,n=i[0].name+"",m,_,d,b,g,k,R,C,N,y,F,pe,x,D,he,Q,M=i[0].name+"",z,be,K,I,Y,q,G,P,X,O,Z,fe,ee,$,te,me,ae,_e,f,ve,E,ge,ke,we,le,Se,oe,Re,ye,Oe,se,$e,ne,L,ie,A,U,S=[],Ae=new Map,Ee,V,w=[],Te=new Map,T;k=new Ze({props:{js:` +import{S as je,i as He,s as Je,O as We,e as s,w as v,b as p,c as re,f as h,g as r,h as a,m as ce,x as de,P as Ue,Q as Ne,k as Qe,R as ze,n as Ke,t as j,a as H,o as c,d as ue,L as Ye,C as Ve,p as Ge,r as J,u as Xe}from"./index.be8ffbe5.js";import{S as Ze}from"./SdkTabs.8f55857f.js";function Be(i,l,o){const n=i.slice();return n[5]=l[o],n}function Fe(i,l,o){const n=i.slice();return n[5]=l[o],n}function xe(i,l){let o,n=l[5].code+"",m,_,d,b;function g(){return l[4](l[5])}return{key:i,first:null,c(){o=s("button"),m=v(n),_=p(),h(o,"class","tab-item"),J(o,"active",l[1]===l[5].code),this.first=o},m(k,R){r(k,o,R),a(o,m),a(o,_),d||(b=Xe(o,"click",g),d=!0)},p(k,R){l=k,R&4&&n!==(n=l[5].code+"")&&de(m,n),R&6&&J(o,"active",l[1]===l[5].code)},d(k){k&&c(o),d=!1,b()}}}function Me(i,l){let o,n,m,_;return n=new We({props:{content:l[5].body}}),{key:i,first:null,c(){o=s("div"),re(n.$$.fragment),m=p(),h(o,"class","tab-item"),J(o,"active",l[1]===l[5].code),this.first=o},m(d,b){r(d,o,b),ce(n,o,null),a(o,m),_=!0},p(d,b){l=d;const g={};b&4&&(g.content=l[5].body),n.$set(g),(!_||b&6)&&J(o,"active",l[1]===l[5].code)},i(d){_||(j(n.$$.fragment,d),_=!0)},o(d){H(n.$$.fragment,d),_=!1},d(d){d&&c(o),ue(n)}}}function et(i){var Ie,qe;let l,o,n=i[0].name+"",m,_,d,b,g,k,R,C,N,y,F,pe,x,D,he,Q,M=i[0].name+"",z,be,K,I,Y,q,G,P,X,O,Z,fe,ee,$,te,me,ae,_e,f,ve,E,ge,ke,we,le,Se,oe,Re,ye,Oe,se,$e,ne,L,ie,A,U,S=[],Ae=new Map,Ee,V,w=[],Te=new Map,T;k=new Ze({props:{js:` import PocketBase from 'pocketbase'; const pb = new PocketBase('${i[3]}'); diff --git a/ui/dist/assets/AuthWithPasswordDocs.739c69ce.js b/ui/dist/assets/AuthWithPasswordDocs.8731404d.js similarity index 98% rename from ui/dist/assets/AuthWithPasswordDocs.739c69ce.js rename to ui/dist/assets/AuthWithPasswordDocs.8731404d.js index d5cef5667..21b5e6936 100644 --- a/ui/dist/assets/AuthWithPasswordDocs.739c69ce.js +++ b/ui/dist/assets/AuthWithPasswordDocs.8731404d.js @@ -1,4 +1,4 @@ -import{S as Se,i as ve,s as we,O as ke,e as s,w as f,b as u,c as Ot,f as h,g as r,h as o,m as At,x as Tt,P as ce,Q as ye,k as ge,R as Pe,n as Re,t as tt,a as et,o as c,d as Ut,L as $e,C as de,p as Ce,r as lt,u as Oe}from"./index.7b2502cb.js";import{S as Ae}from"./SdkTabs.315f7f19.js";function ue(n,e,l){const i=n.slice();return i[8]=e[l],i}function fe(n,e,l){const i=n.slice();return i[8]=e[l],i}function Te(n){let e;return{c(){e=f("email")},m(l,i){r(l,e,i)},d(l){l&&c(e)}}}function Ue(n){let e;return{c(){e=f("username")},m(l,i){r(l,e,i)},d(l){l&&c(e)}}}function Me(n){let e;return{c(){e=f("username/email")},m(l,i){r(l,e,i)},d(l){l&&c(e)}}}function pe(n){let e;return{c(){e=s("strong"),e.textContent="username"},m(l,i){r(l,e,i)},d(l){l&&c(e)}}}function be(n){let e;return{c(){e=f("or")},m(l,i){r(l,e,i)},d(l){l&&c(e)}}}function me(n){let e;return{c(){e=s("strong"),e.textContent="email"},m(l,i){r(l,e,i)},d(l){l&&c(e)}}}function he(n,e){let l,i=e[8].code+"",S,m,p,d;function _(){return e[7](e[8])}return{key:n,first:null,c(){l=s("button"),S=f(i),m=u(),h(l,"class","tab-item"),lt(l,"active",e[3]===e[8].code),this.first=l},m($,C){r($,l,C),o(l,S),o(l,m),p||(d=Oe(l,"click",_),p=!0)},p($,C){e=$,C&16&&i!==(i=e[8].code+"")&&Tt(S,i),C&24&<(l,"active",e[3]===e[8].code)},d($){$&&c(l),p=!1,d()}}}function _e(n,e){let l,i,S,m;return i=new ke({props:{content:e[8].body}}),{key:n,first:null,c(){l=s("div"),Ot(i.$$.fragment),S=u(),h(l,"class","tab-item"),lt(l,"active",e[3]===e[8].code),this.first=l},m(p,d){r(p,l,d),At(i,l,null),o(l,S),m=!0},p(p,d){e=p;const _={};d&16&&(_.content=e[8].body),i.$set(_),(!m||d&24)&<(l,"active",e[3]===e[8].code)},i(p){m||(tt(i.$$.fragment,p),m=!0)},o(p){et(i.$$.fragment,p),m=!1},d(p){p&&c(l),Ut(i)}}}function De(n){var se,ne;let e,l,i=n[0].name+"",S,m,p,d,_,$,C,O,B,Mt,ot,T,at,F,st,U,G,Dt,X,I,Et,nt,Z=n[0].name+"",it,Lt,rt,N,ct,M,dt,Wt,V,D,ut,Bt,ft,Ht,g,Yt,pt,bt,mt,qt,ht,_t,j,kt,E,St,Ft,vt,L,wt,It,yt,Nt,k,Vt,H,jt,Jt,Qt,gt,Kt,Pt,zt,Gt,Xt,Rt,Zt,$t,J,Ct,W,Q,A=[],xt=new Map,te,K,P=[],ee=new Map,Y;function le(t,a){if(t[1]&&t[2])return Me;if(t[1])return Ue;if(t[2])return Te}let q=le(n),R=q&&q(n);T=new Ae({props:{js:` +import{S as Se,i as ve,s as we,O as ke,e as s,w as f,b as u,c as Ot,f as h,g as r,h as o,m as At,x as Tt,P as ce,Q as ye,k as ge,R as Pe,n as Re,t as tt,a as et,o as c,d as Ut,L as $e,C as de,p as Ce,r as lt,u as Oe}from"./index.be8ffbe5.js";import{S as Ae}from"./SdkTabs.8f55857f.js";function ue(n,e,l){const i=n.slice();return i[8]=e[l],i}function fe(n,e,l){const i=n.slice();return i[8]=e[l],i}function Te(n){let e;return{c(){e=f("email")},m(l,i){r(l,e,i)},d(l){l&&c(e)}}}function Ue(n){let e;return{c(){e=f("username")},m(l,i){r(l,e,i)},d(l){l&&c(e)}}}function Me(n){let e;return{c(){e=f("username/email")},m(l,i){r(l,e,i)},d(l){l&&c(e)}}}function pe(n){let e;return{c(){e=s("strong"),e.textContent="username"},m(l,i){r(l,e,i)},d(l){l&&c(e)}}}function be(n){let e;return{c(){e=f("or")},m(l,i){r(l,e,i)},d(l){l&&c(e)}}}function me(n){let e;return{c(){e=s("strong"),e.textContent="email"},m(l,i){r(l,e,i)},d(l){l&&c(e)}}}function he(n,e){let l,i=e[8].code+"",S,m,p,d;function _(){return e[7](e[8])}return{key:n,first:null,c(){l=s("button"),S=f(i),m=u(),h(l,"class","tab-item"),lt(l,"active",e[3]===e[8].code),this.first=l},m($,C){r($,l,C),o(l,S),o(l,m),p||(d=Oe(l,"click",_),p=!0)},p($,C){e=$,C&16&&i!==(i=e[8].code+"")&&Tt(S,i),C&24&<(l,"active",e[3]===e[8].code)},d($){$&&c(l),p=!1,d()}}}function _e(n,e){let l,i,S,m;return i=new ke({props:{content:e[8].body}}),{key:n,first:null,c(){l=s("div"),Ot(i.$$.fragment),S=u(),h(l,"class","tab-item"),lt(l,"active",e[3]===e[8].code),this.first=l},m(p,d){r(p,l,d),At(i,l,null),o(l,S),m=!0},p(p,d){e=p;const _={};d&16&&(_.content=e[8].body),i.$set(_),(!m||d&24)&<(l,"active",e[3]===e[8].code)},i(p){m||(tt(i.$$.fragment,p),m=!0)},o(p){et(i.$$.fragment,p),m=!1},d(p){p&&c(l),Ut(i)}}}function De(n){var se,ne;let e,l,i=n[0].name+"",S,m,p,d,_,$,C,O,B,Mt,ot,T,at,F,st,U,G,Dt,X,I,Et,nt,Z=n[0].name+"",it,Lt,rt,N,ct,M,dt,Wt,V,D,ut,Bt,ft,Ht,g,Yt,pt,bt,mt,qt,ht,_t,j,kt,E,St,Ft,vt,L,wt,It,yt,Nt,k,Vt,H,jt,Jt,Qt,gt,Kt,Pt,zt,Gt,Xt,Rt,Zt,$t,J,Ct,W,Q,A=[],xt=new Map,te,K,P=[],ee=new Map,Y;function le(t,a){if(t[1]&&t[2])return Me;if(t[1])return Ue;if(t[2])return Te}let q=le(n),R=q&&q(n);T=new Ae({props:{js:` import PocketBase from 'pocketbase'; const pb = new PocketBase('${n[6]}'); diff --git a/ui/dist/assets/CodeEditor.65f2eb62.js b/ui/dist/assets/CodeEditor.244d40d4.js similarity index 99% rename from ui/dist/assets/CodeEditor.65f2eb62.js rename to ui/dist/assets/CodeEditor.244d40d4.js index e3aa36eed..75e58d3f0 100644 --- a/ui/dist/assets/CodeEditor.65f2eb62.js +++ b/ui/dist/assets/CodeEditor.244d40d4.js @@ -1,4 +1,4 @@ -import{S as me,i as Te,s as Se,e as be,f as Pe,T as SO,g as Re,y as bO,o as ke,K as xe,M as Xe,N as ye}from"./index.7b2502cb.js";import{P as Ze,N as We,u as je,D as we,v as lO,T as Y,I as KO,w as QO,x as o,y as _e,L as cO,z as uO,A as V,B as dO,F as HO,G as hO,H as z,J as ve,K as qe,E as X,M as q,O as ze,Q as Ge,R as T,U as Ce,a as w,h as Ue,b as Ye,c as Ve,d as Ee,e as Ie,s as Ae,f as Ne,g as De,i as Le,r as Fe,j as Je,k as Me,l as Be,m as Ke,n as He,o as Ot,p as et,q as tt,t as PO,C as G}from"./index.9c8b95cd.js";class N{constructor(O,e,a,i,r,s,n,Q,c,u=0,l){this.p=O,this.stack=e,this.state=a,this.reducePos=i,this.pos=r,this.score=s,this.buffer=n,this.bufferBase=Q,this.curContext=c,this.lookAhead=u,this.parent=l}toString(){return`[${this.stack.filter((O,e)=>e%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(O,e,a=0){let i=O.parser.context;return new N(O,[],e,a,a,0,[],0,i?new RO(i,i.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(O,e){this.stack.push(this.state,e,this.bufferBase+this.buffer.length),this.state=O}reduce(O){let e=O>>19,a=O&65535,{parser:i}=this.p,r=i.dynamicPrecedence(a);if(r&&(this.score+=r),e==0){this.pushState(i.getGoto(this.state,a,!0),this.reducePos),as;)this.stack.pop();this.reduceContext(a,n)}storeNode(O,e,a,i=4,r=!1){if(O==0&&(!this.stack.length||this.stack[this.stack.length-1]0&&s.buffer[n-4]==0&&s.buffer[n-1]>-1){if(e==a)return;if(s.buffer[n-2]>=e){s.buffer[n-2]=a;return}}}if(!r||this.pos==a)this.buffer.push(O,e,a,i);else{let s=this.buffer.length;if(s>0&&this.buffer[s-4]!=0)for(;s>0&&this.buffer[s-2]>a;)this.buffer[s]=this.buffer[s-4],this.buffer[s+1]=this.buffer[s-3],this.buffer[s+2]=this.buffer[s-2],this.buffer[s+3]=this.buffer[s-1],s-=4,i>4&&(i-=4);this.buffer[s]=O,this.buffer[s+1]=e,this.buffer[s+2]=a,this.buffer[s+3]=i}}shift(O,e,a){let i=this.pos;if(O&131072)this.pushState(O&65535,this.pos);else if((O&262144)==0){let r=O,{parser:s}=this.p;(a>this.pos||e<=s.maxNode)&&(this.pos=a,s.stateFlag(r,1)||(this.reducePos=a)),this.pushState(r,i),this.shiftContext(e,i),e<=s.maxNode&&this.buffer.push(e,i,a,4)}else this.pos=a,this.shiftContext(e,i),e<=this.p.parser.maxNode&&this.buffer.push(e,i,a,4)}apply(O,e,a){O&65536?this.reduce(O):this.shift(O,e,a)}useNode(O,e){let a=this.p.reused.length-1;(a<0||this.p.reused[a]!=O)&&(this.p.reused.push(O),a++);let i=this.pos;this.reducePos=this.pos=i+O.length,this.pushState(e,i),this.buffer.push(a,i,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,O,this,this.p.stream.reset(this.pos-O.length)))}split(){let O=this,e=O.buffer.length;for(;e>0&&O.buffer[e-2]>O.reducePos;)e-=4;let a=O.buffer.slice(e),i=O.bufferBase+e;for(;O&&i==O.bufferBase;)O=O.parent;return new N(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,a,i,this.curContext,this.lookAhead,O)}recoverByDelete(O,e){let a=O<=this.p.parser.maxNode;a&&this.storeNode(O,this.pos,e,4),this.storeNode(0,this.pos,e,a?8:4),this.pos=this.reducePos=e,this.score-=190}canShift(O){for(let e=new at(this);;){let a=this.p.parser.stateSlot(e.state,4)||this.p.parser.hasAction(e.state,O);if((a&65536)==0)return!0;if(a==0)return!1;e.reduce(a)}}recoverByInsert(O){if(this.stack.length>=300)return[];let e=this.p.parser.nextStates(this.state);if(e.length>4<<1||this.stack.length>=120){let i=[];for(let r=0,s;rQ&1&&n==s)||i.push(e[r],s)}e=i}let a=[];for(let i=0;i>19,i=O&65535,r=this.stack.length-a*3;if(r<0||e.getGoto(this.stack[r],i,!1)<0)return!1;this.storeNode(0,this.reducePos,this.reducePos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(O),!0}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(this.stack.length!=3)return!1;let{parser:O}=this.p;return O.data[O.stateSlot(this.state,1)]==65535&&!O.stateSlot(this.state,4)}restart(){this.state=this.stack[0],this.stack.length=0}sameState(O){if(this.state!=O.state||this.stack.length!=O.stack.length)return!1;for(let e=0;ethis.lookAhead&&(this.emitLookAhead(),this.lookAhead=O)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class RO{constructor(O,e){this.tracker=O,this.context=e,this.hash=O.strict?O.hash(e):0}}var kO;(function(t){t[t.Insert=200]="Insert",t[t.Delete=190]="Delete",t[t.Reduce=100]="Reduce",t[t.MaxNext=4]="MaxNext",t[t.MaxInsertStackDepth=300]="MaxInsertStackDepth",t[t.DampenInsertStackDepth=120]="DampenInsertStackDepth"})(kO||(kO={}));class at{constructor(O){this.start=O,this.state=O.state,this.stack=O.stack,this.base=this.stack.length}reduce(O){let e=O&65535,a=O>>19;a==0?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(a-1)*3;let i=this.start.p.parser.getGoto(this.stack[this.base-3],e,!0);this.state=i}}class D{constructor(O,e,a){this.stack=O,this.pos=e,this.index=a,this.buffer=O.buffer,this.index==0&&this.maybeNext()}static create(O,e=O.bufferBase+O.buffer.length){return new D(O,e,e-O.bufferBase)}maybeNext(){let O=this.stack.parent;O!=null&&(this.index=this.stack.bufferBase-O.bufferBase,this.stack=O,this.buffer=O.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,this.index==0&&this.maybeNext()}fork(){return new D(this.stack,this.pos,this.index)}}class E{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const xO=new E;class it{constructor(O,e){this.input=O,this.ranges=e,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=xO,this.rangeIndex=0,this.pos=this.chunkPos=e[0].from,this.range=e[0],this.end=e[e.length-1].to,this.readNext()}resolveOffset(O,e){let a=this.range,i=this.rangeIndex,r=this.pos+O;for(;ra.to:r>=a.to;){if(i==this.ranges.length-1)return null;let s=this.ranges[++i];r+=s.from-a.to,a=s}return r}clipPos(O){if(O>=this.range.from&&OO)return Math.max(O,e.from);return this.end}peek(O){let e=this.chunkOff+O,a,i;if(e>=0&&e=this.chunk2Pos&&an.to&&(this.chunk2=this.chunk2.slice(0,n.to-a)),i=this.chunk2.charCodeAt(0)}}return a>=this.token.lookAhead&&(this.token.lookAhead=a+1),i}acceptToken(O,e=0){let a=e?this.resolveOffset(e,-1):this.pos;if(a==null||a=this.chunk2Pos&&this.posthis.range.to?O.slice(0,this.range.to-this.pos):O,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(O=1){for(this.chunkOff+=O;this.pos+O>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();O-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=O,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(O,e){if(e?(this.token=e,e.start=O,e.lookAhead=O+1,e.value=e.extended=-1):this.token=xO,this.pos!=O){if(this.pos=O,O==this.end)return this.setDone(),this;for(;O=this.range.to;)this.range=this.ranges[++this.rangeIndex];O>=this.chunkPos&&O=this.chunkPos&&e<=this.chunkPos+this.chunk.length)return this.chunk.slice(O-this.chunkPos,e-this.chunkPos);if(O>=this.chunk2Pos&&e<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(O-this.chunk2Pos,e-this.chunk2Pos);if(O>=this.range.from&&e<=this.range.to)return this.input.read(O,e);let a="";for(let i of this.ranges){if(i.from>=e)break;i.to>O&&(a+=this.input.read(Math.max(i.from,O),Math.min(i.to,e)))}return a}}class I{constructor(O,e){this.data=O,this.id=e}token(O,e){rt(this.data,O,e,this.id)}}I.prototype.contextual=I.prototype.fallback=I.prototype.extend=!1;class b{constructor(O,e={}){this.token=O,this.contextual=!!e.contextual,this.fallback=!!e.fallback,this.extend=!!e.extend}}function rt(t,O,e,a){let i=0,r=1<0){let $=t[h];if(n.allows($)&&(O.token.value==-1||O.token.value==$||s.overrides($,O.token.value))){O.acceptToken($);break}}let c=O.next,u=0,l=t[i+2];if(O.next<0&&l>u&&t[Q+l*3-3]==65535){i=t[Q+l*3-1];continue O}for(;u>1,$=Q+h+(h<<1),p=t[$],P=t[$+1];if(c=P)u=h+1;else{i=t[$+2],O.advance();continue O}}break}}function C(t,O=Uint16Array){if(typeof t!="string")return t;let e=null;for(let a=0,i=0;a=92&&s--,s>=34&&s--;let Q=s-32;if(Q>=46&&(Q-=46,n=!0),r+=Q,n)break;r*=46}e?e[i++]=r:e=new O(r)}return e}const S=typeof process<"u"&&process.env&&/\bparse\b/.test(process.env.LOG);let B=null;var XO;(function(t){t[t.Margin=25]="Margin"})(XO||(XO={}));function yO(t,O,e){let a=t.cursor(KO.IncludeAnonymous);for(a.moveTo(O);;)if(!(e<0?a.childBefore(O):a.childAfter(O)))for(;;){if((e<0?a.toO)&&!a.type.isError)return e<0?Math.max(0,Math.min(a.to-1,O-25)):Math.min(t.length,Math.max(a.from+1,O+25));if(e<0?a.prevSibling():a.nextSibling())break;if(!a.parent())return e<0?0:t.length}}class st{constructor(O,e){this.fragments=O,this.nodeSet=e,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let O=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(O){for(this.safeFrom=O.openStart?yO(O.tree,O.from+O.offset,1)-O.offset:O.from,this.safeTo=O.openEnd?yO(O.tree,O.to+O.offset,-1)-O.offset:O.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(O.tree),this.start.push(-O.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(O){if(OO)return this.nextStart=s,null;if(r instanceof Y){if(s==O){if(s=Math.max(this.safeFrom,O)&&(this.trees.push(r),this.start.push(s),this.index.push(0))}else this.index[e]++,this.nextStart=s+r.length}}}class nt{constructor(O,e){this.stream=e,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=O.tokenizers.map(a=>new E)}getActions(O){let e=0,a=null,{parser:i}=O.p,{tokenizers:r}=i,s=i.stateSlot(O.state,3),n=O.curContext?O.curContext.hash:0,Q=0;for(let c=0;cl.end+25&&(Q=Math.max(l.lookAhead,Q)),l.value!=0)){let h=e;if(l.extended>-1&&(e=this.addActions(O,l.extended,l.end,e)),e=this.addActions(O,l.value,l.end,e),!u.extend&&(a=l,e>h))break}}for(;this.actions.length>e;)this.actions.pop();return Q&&O.setLookAhead(Q),!a&&O.pos==this.stream.end&&(a=new E,a.value=O.p.parser.eofTerm,a.start=a.end=O.pos,e=this.addActions(O,a.value,a.end,e)),this.mainToken=a,this.actions}getMainToken(O){if(this.mainToken)return this.mainToken;let e=new E,{pos:a,p:i}=O;return e.start=a,e.end=Math.min(a+1,i.stream.end),e.value=a==i.stream.end?i.parser.eofTerm:0,e}updateCachedToken(O,e,a){let i=this.stream.clipPos(a.pos);if(e.token(this.stream.reset(i,O),a),O.value>-1){let{parser:r}=a.p;for(let s=0;s=0&&a.p.parser.dialect.allows(n>>1)){(n&1)==0?O.value=n>>1:O.extended=n>>1;break}}}else O.value=0,O.end=this.stream.clipPos(i+1)}putAction(O,e,a,i){for(let r=0;rO.bufferLength*4?new st(a,O.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let O=this.stacks,e=this.minStackPos,a=this.stacks=[],i,r;for(let s=0;se)a.push(n);else{if(this.advanceStack(n,a,O))continue;{i||(i=[],r=[]),i.push(n);let Q=this.tokens.getMainToken(n);r.push(Q.value,Q.end)}}break}}if(!a.length){let s=i&&Qt(i);if(s)return this.stackToTree(s);if(this.parser.strict)throw S&&i&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+e);this.recovering||(this.recovering=5)}if(this.recovering&&i){let s=this.stoppedAt!=null&&i[0].pos>this.stoppedAt?i[0]:this.runRecovery(i,r,a);if(s)return this.stackToTree(s.forceAll())}if(this.recovering){let s=this.recovering==1?1:this.recovering*3;if(a.length>s)for(a.sort((n,Q)=>Q.score-n.score);a.length>s;)a.pop();a.some(n=>n.reducePos>e)&&this.recovering--}else if(a.length>1){O:for(let s=0;s500&&c.buffer.length>500)if((n.score-c.score||n.buffer.length-c.buffer.length)>0)a.splice(Q--,1);else{a.splice(s--,1);continue O}}}}this.minStackPos=a[0].pos;for(let s=1;s ":"";if(this.stoppedAt!=null&&i>this.stoppedAt)return O.forceReduce()?O:null;if(this.fragments){let c=O.curContext&&O.curContext.tracker.strict,u=c?O.curContext.hash:0;for(let l=this.fragments.nodeAt(i);l;){let h=this.parser.nodeSet.types[l.type.id]==l.type?r.getGoto(O.state,l.type.id):-1;if(h>-1&&l.length&&(!c||(l.prop(lO.contextHash)||0)==u))return O.useNode(l,h),S&&console.log(s+this.stackID(O)+` (via reuse of ${r.getName(l.type.id)})`),!0;if(!(l instanceof Y)||l.children.length==0||l.positions[0]>0)break;let $=l.children[0];if($ instanceof Y&&l.positions[0]==0)l=$;else break}}let n=r.stateSlot(O.state,4);if(n>0)return O.reduce(n),S&&console.log(s+this.stackID(O)+` (via always-reduce ${r.getName(n&65535)})`),!0;if(O.stack.length>=15e3)for(;O.stack.length>9e3&&O.forceReduce(););let Q=this.tokens.getActions(O);for(let c=0;ci?e.push(p):a.push(p)}return!1}advanceFully(O,e){let a=O.pos;for(;;){if(!this.advanceStack(O,null,null))return!1;if(O.pos>a)return WO(O,e),!0}}runRecovery(O,e,a){let i=null,r=!1;for(let s=0;s ":"";if(n.deadEnd&&(r||(r=!0,n.restart(),S&&console.log(u+this.stackID(n)+" (restarted)"),this.advanceFully(n,a))))continue;let l=n.split(),h=u;for(let $=0;l.forceReduce()&&$<10&&(S&&console.log(h+this.stackID(l)+" (via force-reduce)"),!this.advanceFully(l,a));$++)S&&(h=this.stackID(l)+" -> ");for(let $ of n.recoverByInsert(Q))S&&console.log(u+this.stackID($)+" (via recover-insert)"),this.advanceFully($,a);this.stream.end>n.pos?(c==n.pos&&(c++,Q=0),n.recoverByDelete(Q,c),S&&console.log(u+this.stackID(n)+` (via recover-delete ${this.parser.getName(Q)})`),WO(n,a)):(!i||i.scoret;class Oe{constructor(O){this.start=O.start,this.shift=O.shift||K,this.reduce=O.reduce||K,this.reuse=O.reuse||K,this.hash=O.hash||(()=>0),this.strict=O.strict!==!1}}class y extends Ze{constructor(O){if(super(),this.wrappers=[],O.version!=14)throw new RangeError(`Parser version (${O.version}) doesn't match runtime version (${14})`);let e=O.nodeNames.split(" ");this.minRepeatTerm=e.length;for(let n=0;nO.topRules[n][1]),i=[];for(let n=0;n=0)r(u,Q,n[c++]);else{let l=n[c+-u];for(let h=-u;h>0;h--)r(n[c++],Q,l);c++}}}this.nodeSet=new We(e.map((n,Q)=>je.define({name:Q>=this.minRepeatTerm?void 0:n,id:Q,props:i[Q],top:a.indexOf(Q)>-1,error:Q==0,skipped:O.skippedNodes&&O.skippedNodes.indexOf(Q)>-1}))),O.propSources&&(this.nodeSet=this.nodeSet.extend(...O.propSources)),this.strict=!1,this.bufferLength=we;let s=C(O.tokenData);this.context=O.context,this.specializerSpecs=O.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let n=0;ntypeof n=="number"?new I(s,n):n),this.topRules=O.topRules,this.dialects=O.dialects||{},this.dynamicPrecedences=O.dynamicPrecedences||null,this.tokenPrecTable=O.tokenPrec,this.termNames=O.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(O,e,a){let i=new ot(this,O,e,a);for(let r of this.wrappers)i=r(i,O,e,a);return i}getGoto(O,e,a=!1){let i=this.goto;if(e>=i[0])return-1;for(let r=i[e+1];;){let s=i[r++],n=s&1,Q=i[r++];if(n&&a)return Q;for(let c=r+(s>>1);r0}validAction(O,e){if(e==this.stateSlot(O,4))return!0;for(let a=this.stateSlot(O,1);;a+=3){if(this.data[a]==65535)if(this.data[a+1]==1)a=R(this.data,a+2);else return!1;if(e==R(this.data,a+1))return!0}}nextStates(O){let e=[];for(let a=this.stateSlot(O,1);;a+=3){if(this.data[a]==65535)if(this.data[a+1]==1)a=R(this.data,a+2);else break;if((this.data[a+2]&1)==0){let i=this.data[a+1];e.some((r,s)=>s&1&&r==i)||e.push(this.data[a],i)}}return e}overrides(O,e){let a=jO(this.data,this.tokenPrecTable,e);return a<0||jO(this.data,this.tokenPrecTable,O){let i=O.tokenizers.find(r=>r.from==a);return i?i.to:a})),O.specializers&&(e.specializers=this.specializers.slice(),e.specializerSpecs=this.specializerSpecs.map((a,i)=>{let r=O.specializers.find(n=>n.from==a.external);if(!r)return a;let s=Object.assign(Object.assign({},a),{external:r.to});return e.specializers[i]=wO(s),s})),O.contextTracker&&(e.context=O.contextTracker),O.dialect&&(e.dialect=this.parseDialect(O.dialect)),O.strict!=null&&(e.strict=O.strict),O.wrap&&(e.wrappers=e.wrappers.concat(O.wrap)),O.bufferLength!=null&&(e.bufferLength=O.bufferLength),e}hasWrappers(){return this.wrappers.length>0}getName(O){return this.termNames?this.termNames[O]:String(O<=this.maxNode&&this.nodeSet.types[O].name||O)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(O){let e=this.dynamicPrecedences;return e==null?0:e[O]||0}parseDialect(O){let e=Object.keys(this.dialects),a=e.map(()=>!1);if(O)for(let r of O.split(" ")){let s=e.indexOf(r);s>=0&&(a[s]=!0)}let i=null;for(let r=0;ra)&&e.p.parser.stateFlag(e.state,2)&&(!O||O.scoret.external(e,a)<<1|O}return t.get}const ct=53,ut=1,dt=54,ht=2,$t=55,pt=3,L=4,ee=5,te=6,ae=7,ie=8,ft=9,gt=10,mt=11,H=56,Tt=12,_O=57,St=18,bt=27,Pt=30,Rt=33,kt=35,xt=0,Xt={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},yt={dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},vO={dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}};function Zt(t){return t==45||t==46||t==58||t>=65&&t<=90||t==95||t>=97&&t<=122||t>=161}function re(t){return t==9||t==10||t==13||t==32}let qO=null,zO=null,GO=0;function sO(t,O){let e=t.pos+O;if(GO==e&&zO==t)return qO;let a=t.peek(O);for(;re(a);)a=t.peek(++O);let i="";for(;Zt(a);)i+=String.fromCharCode(a),a=t.peek(++O);return zO=t,GO=e,qO=i?i.toLowerCase():a==Wt||a==jt?void 0:null}const se=60,ne=62,oe=47,Wt=63,jt=33,wt=45;function CO(t,O){this.name=t,this.parent=O,this.hash=O?O.hash:0;for(let e=0;e-1?new CO(sO(a,1)||"",t):t},reduce(t,O){return O==St&&t?t.parent:t},reuse(t,O,e,a){let i=O.type.id;return i==L||i==kt?new CO(sO(a,1)||"",t):t},hash(t){return t?t.hash:0},strict:!1}),qt=new b((t,O)=>{if(t.next!=se){t.next<0&&O.context&&t.acceptToken(H);return}t.advance();let e=t.next==oe;e&&t.advance();let a=sO(t,0);if(a===void 0)return;if(!a)return t.acceptToken(e?Tt:L);let i=O.context?O.context.name:null;if(e){if(a==i)return t.acceptToken(ft);if(i&&yt[i])return t.acceptToken(H,-2);if(O.dialectEnabled(xt))return t.acceptToken(gt);for(let r=O.context;r;r=r.parent)if(r.name==a)return;t.acceptToken(mt)}else{if(a=="script")return t.acceptToken(ee);if(a=="style")return t.acceptToken(te);if(a=="textarea")return t.acceptToken(ae);if(Xt.hasOwnProperty(a))return t.acceptToken(ie);i&&vO[i]&&vO[i][a]?t.acceptToken(H,-1):t.acceptToken(L)}},{contextual:!0}),zt=new b(t=>{for(let O=0,e=0;;e++){if(t.next<0){e&&t.acceptToken(_O);break}if(t.next==wt)O++;else if(t.next==ne&&O>=2){e>3&&t.acceptToken(_O,-2);break}else O=0;t.advance()}});function $O(t,O,e){let a=2+t.length;return new b(i=>{for(let r=0,s=0,n=0;;n++){if(i.next<0){n&&i.acceptToken(O);break}if(r==0&&i.next==se||r==1&&i.next==oe||r>=2&&rs?i.acceptToken(O,-s):i.acceptToken(e,-(s-2));break}else if((i.next==10||i.next==13)&&n){i.acceptToken(O,1);break}else r=s=0;i.advance()}})}const Gt=$O("script",ct,ut),Ct=$O("style",dt,ht),Ut=$O("textarea",$t,pt),Yt=QO({"Text RawText":o.content,"StartTag StartCloseTag SelfCloserEndTag EndTag SelfCloseEndTag":o.angleBracket,TagName:o.tagName,"MismatchedCloseTag/TagName":[o.tagName,o.invalid],AttributeName:o.attributeName,"AttributeValue UnquotedAttributeValue":o.attributeValue,Is:o.definitionOperator,"EntityReference CharacterReference":o.character,Comment:o.blockComment,ProcessingInst:o.processingInstruction,DoctypeDecl:o.documentMeta}),Vt=y.deserialize({version:14,states:",xOVOxOOO!WQ!bO'#CoO!]Q!bO'#CyO!bQ!bO'#C|O!gQ!bO'#DPO!lQ!bO'#DRO!qOXO'#CnO!|OYO'#CnO#XO[O'#CnO$eOxO'#CnOOOW'#Cn'#CnO$lO!rO'#DSO$tQ!bO'#DUO$yQ!bO'#DVOOOW'#Dj'#DjOOOW'#DX'#DXQVOxOOO%OQ#tO,59ZO%WQ#tO,59eO%`Q#tO,59hO%hQ#tO,59kO%pQ#tO,59mOOOX'#D]'#D]O%xOXO'#CwO&TOXO,59YOOOY'#D^'#D^O&]OYO'#CzO&hOYO,59YOOO['#D_'#D_O&pO[O'#C}O&{O[O,59YOOOW'#D`'#D`O'TOxO,59YO'[Q!bO'#DQOOOW,59Y,59YOOO`'#Da'#DaO'aO!rO,59nOOOW,59n,59nO'iQ!bO,59pO'nQ!bO,59qOOOW-E7V-E7VO'sQ#tO'#CqOOQO'#DY'#DYO(OQ#tO1G.uOOOX1G.u1G.uO(WQ#tO1G/POOOY1G/P1G/PO(`Q#tO1G/SOOO[1G/S1G/SO(hQ#tO1G/VOOOW1G/V1G/VO(pQ#tO1G/XOOOW1G/X1G/XOOOX-E7Z-E7ZO(xQ!bO'#CxOOOW1G.t1G.tOOOY-E7[-E7[O(}Q!bO'#C{O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{#O#R#X#[#_#e#h#k#q#w!`P!`!`P#}$T$k$q$w$}%T%Z%aPPPPPPPP%gX^OX`pXUOX`pezabcde{}!P!R!TR!q!dRhUR!XhXVOX`pRkVR!XkXWOX`pRnWR!XnXXOX`pQrXR!XpXYOX`pQ`ORx`Q{aQ}bQ!PcQ!RdQ!TeZ!e{}!P!R!TQ!v!oR!z!vQ!y!pR!|!yQgUR!VgQjVR!YjQmWR![mQpXR!^pQtZR!`tS_O`ToXp",nodeNames:"\u26A0 StartCloseTag StartCloseTag StartCloseTag StartTag StartTag StartTag StartTag StartTag StartCloseTag StartCloseTag StartCloseTag IncompleteCloseTag Document Text EntityReference CharacterReference InvalidEntity Element OpenTag TagName Attribute AttributeName Is AttributeValue UnquotedAttributeValue EndTag ScriptText CloseTag OpenTag StyleText CloseTag OpenTag TextareaText CloseTag OpenTag CloseTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag CloseTag DoctypeDecl",maxTerm:66,context:vt,nodeProps:[["closedBy",-11,1,2,3,4,5,6,7,8,9,10,11,"EndTag",-4,19,29,32,35,"CloseTag"],["group",-9,12,15,16,17,18,38,39,40,41,"Entity",14,"Entity TextContent",-3,27,30,33,"TextContent Entity"],["openedBy",26,"StartTag StartCloseTag",-4,28,31,34,36,"OpenTag"]],propSources:[Yt],skippedNodes:[0],repeatNodeCount:9,tokenData:"!#b!aR!WOX$kXY)sYZ)sZ]$k]^)s^p$kpq)sqr$krs*zsv$kvw+dwx2yx}$k}!O3f!O!P$k!P!Q7_!Q![$k![!]8u!]!^$k!^!_>b!_!`!!p!`!a8T!a!c$k!c!}8u!}#R$k#R#S8u#S#T$k#T#o8u#o$f$k$f$g&R$g%W$k%W%o8u%o%p$k%p&a8u&a&b$k&b1p8u1p4U$k4U4d8u4d4e$k4e$IS8u$IS$I`$k$I`$Ib8u$Ib$Kh$k$Kh%#t8u%#t&/x$k&/x&Et8u&Et&FV$k&FV;'S8u;'S;:jiW!``!bpOq(kqr?Rrs'gsv(kwx(]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POv'gx~'gaNUV!``OrNPrsLosvNPvwLow!aNP!a!bNk!b~NPaNpV!``OrNPrsLosvNPvwLow!`NP!`!a! V!a~NPa! ^R!``wPOr(]sv(]w~(]!R! nW!``!bpOrKjrsLZsvKjvwLowxNPx!`Kj!`!a!!W!a~Kj!R!!aT!``!bpwPOr(krs'gsv(kwx(]x~(k!V!!{VgS^P!``!bpOr&Rrs&qsv&Rwx'rx!^&R!^!_(k!_~&R",tokenizers:[Gt,Ct,Ut,qt,zt,0,1,2,3,4,5],topRules:{Document:[0,13]},dialects:{noMatch:0},tokenPrec:476});function Et(t,O){let e=Object.create(null);for(let a of t.firstChild.getChildren("Attribute")){let i=a.getChild("AttributeName"),r=a.getChild("AttributeValue")||a.getChild("UnquotedAttributeValue");i&&(e[O.read(i.from,i.to)]=r?r.name=="AttributeValue"?O.read(r.from+1,r.to-1):O.read(r.from,r.to):"")}return e}function OO(t,O,e){let a;for(let i of e)if(!i.attrs||i.attrs(a||(a=Et(t.node.parent,O))))return{parser:i.parser};return null}function It(t){let O=[],e=[],a=[];for(let i of t){let r=i.tag=="script"?O:i.tag=="style"?e:i.tag=="textarea"?a:null;if(!r)throw new RangeError("Only script, style, and textarea tags can host nested parsers");r.push(i)}return _e((i,r)=>{let s=i.type.id;return s==bt?OO(i,r,O):s==Pt?OO(i,r,e):s==Rt?OO(i,r,a):null})}const At=93,UO=1,Nt=94,Dt=95,YO=2,le=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],Lt=58,Ft=40,Qe=95,Jt=91,A=45,Mt=46,Bt=35,Kt=37;function F(t){return t>=65&&t<=90||t>=97&&t<=122||t>=161}function Ht(t){return t>=48&&t<=57}const Oa=new b((t,O)=>{for(let e=!1,a=0,i=0;;i++){let{next:r}=t;if(F(r)||r==A||r==Qe||e&&Ht(r))!e&&(r!=A||i>0)&&(e=!0),a===i&&r==A&&a++,t.advance();else{e&&t.acceptToken(r==Ft?Nt:a==2&&O.canShift(YO)?YO:Dt);break}}}),ea=new b(t=>{if(le.includes(t.peek(-1))){let{next:O}=t;(F(O)||O==Qe||O==Bt||O==Mt||O==Jt||O==Lt||O==A)&&t.acceptToken(At)}}),ta=new b(t=>{if(!le.includes(t.peek(-1))){let{next:O}=t;if(O==Kt&&(t.advance(),t.acceptToken(UO)),F(O)){do t.advance();while(F(t.next));t.acceptToken(UO)}}}),aa=QO({"AtKeyword import charset namespace keyframes media supports":o.definitionKeyword,"from to selector":o.keyword,NamespaceName:o.namespace,KeyframeName:o.labelName,TagName:o.tagName,ClassName:o.className,PseudoClassName:o.constant(o.className),IdName:o.labelName,"FeatureName PropertyName":o.propertyName,AttributeName:o.attributeName,NumberLiteral:o.number,KeywordQuery:o.keyword,UnaryQueryOp:o.operatorKeyword,"CallTag ValueName":o.atom,VariableName:o.variableName,Callee:o.operatorKeyword,Unit:o.unit,"UniversalSelector NestingSelector":o.definitionOperator,MatchOp:o.compareOperator,"ChildOp SiblingOp, LogicOp":o.logicOperator,BinOp:o.arithmeticOperator,Important:o.modifier,Comment:o.blockComment,ParenthesizedContent:o.special(o.name),ColorLiteral:o.color,StringLiteral:o.string,":":o.punctuation,"PseudoOp #":o.derefOperator,"; ,":o.separator,"( )":o.paren,"[ ]":o.squareBracket,"{ }":o.brace}),ia={__proto__:null,lang:32,"nth-child":32,"nth-last-child":32,"nth-of-type":32,"nth-last-of-type":32,dir:32,"host-context":32,url:60,"url-prefix":60,domain:60,regexp:60,selector:134},ra={__proto__:null,"@import":114,"@media":138,"@charset":142,"@namespace":146,"@keyframes":152,"@supports":164},sa={__proto__:null,not:128,only:128,from:158,to:160},na=y.deserialize({version:14,states:"7WOYQ[OOOOQP'#Cd'#CdOOQP'#Cc'#CcO!ZQ[O'#CfO!}QXO'#CaO#UQ[O'#ChO#aQ[O'#DPO#fQ[O'#DTOOQP'#Ec'#EcO#kQdO'#DeO$VQ[O'#DrO#kQdO'#DtO$hQ[O'#DvO$sQ[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z!Q%Q!Q![6z![~%Q^7RSoW#ZUOy%Qz!Q%Q!Q![6z![~%Q^7fYoW#ZUOy%Qz!O%Q!O!P5Z!P!Q%Q!Q![7_![!g%Q!g!h5z!h#X%Q#X#Y5z#Y~%Q_8ZQpVOy%Qz~%Q^8fUjSOy%Qz!O%Q!O!P4x!P!Q%Q!Q![7_![~%Q_8}S#WPOy%Qz!Q%Q!Q![5Z![~%Q~9`RjSOy%Qz{9i{~%Q~9nSoWOy9iyz9zz{:o{~9i~9}ROz9zz{:W{~9z~:ZTOz9zz{:W{!P9z!P!Q:j!Q~9z~:oOR~~:tUoWOy9iyz9zz{:o{!P9i!P!Q;W!Q~9i~;_QoWR~Oy%Qz~%Q^;jY#ZUOy%Qz!O%Q!O!P5Z!P!Q%Q!Q![7_![!g%Q!g!h5z!h#X%Q#X#Y5z#Y~%QX<_S]POy%Qz![%Q![!]RUOy%Qz!c%Q!c!}>e!}#T%Q#T#o>e#o~%QX>lY!YPoWOy%Qz}%Q}!O>e!O!Q%Q!Q![>e![!c%Q!c!}>e!}#T%Q#T#o>e#o~%QX?aQxPOy%Qz~%Q^?lQvUOy%Qz~%QX?uSOy%Qz#b%Q#b#c@R#c~%QX@WSoWOy%Qz#W%Q#W#X@d#X~%QX@kQ!`PoWOy%Qz~%QX@tSOy%Qz#f%Q#f#g@d#g~%QXAVQ!RPOy%Qz~%Q_AbQ!QVOy%Qz~%QZAmS!PPOy%Qz!_%Q!_!`2e!`~%Q",tokenizers:[ea,ta,Oa,0,1,2,3],topRules:{StyleSheet:[0,4]},specialized:[{term:94,get:t=>ia[t]||-1},{term:56,get:t=>ra[t]||-1},{term:95,get:t=>sa[t]||-1}],tokenPrec:1078});let eO=null;function tO(){if(!eO&&typeof document=="object"&&document.body){let t=[];for(let O in document.body.style)/[A-Z]|^-|^(item|length)$/.test(O)||t.push(O);eO=t.sort().map(O=>({type:"property",label:O}))}return eO||[]}const VO=["active","after","any-link","autofill","backdrop","before","checked","cue","default","defined","disabled","empty","enabled","file-selector-button","first","first-child","first-letter","first-line","first-of-type","focus","focus-visible","focus-within","fullscreen","has","host","host-context","hover","in-range","indeterminate","invalid","is","lang","last-child","last-of-type","left","link","marker","modal","not","nth-child","nth-last-child","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","part","placeholder","placeholder-shown","read-only","read-write","required","right","root","scope","selection","slotted","target","target-text","valid","visited","where"].map(t=>({type:"class",label:t})),EO=["above","absolute","activeborder","additive","activecaption","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","antialiased","appworkspace","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic-abegede-gez","ethiopic-halehame-aa-er","ethiopic-halehame-gez","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","graytext","grid","groove","hand","hard-light","help","hidden","hide","higher","highlight","highlighttext","horizontal","hsl","hsla","hue","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","justify","keep-all","landscape","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-hexadecimal","lower-latin","lower-norwegian","lowercase","ltr","luminosity","manipulation","match","matrix","matrix3d","medium","menu","menutext","message-box","middle","min-intrinsic","mix","monospace","move","multiple","multiple_mask_images","multiply","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","opacity","open-quote","optimizeLegibility","optimizeSpeed","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","text","text-bottom","text-top","textarea","textfield","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","to","top","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-latin","uppercase","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"].map(t=>({type:"keyword",label:t})).concat(["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"].map(t=>({type:"constant",label:t}))),oa=["a","abbr","address","article","aside","b","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","dd","del","details","dfn","dialog","div","dl","dt","em","figcaption","figure","footer","form","header","hgroup","h1","h2","h3","h4","h5","h6","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","meter","nav","ol","output","p","pre","ruby","section","select","small","source","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","tr","u","ul"].map(t=>({type:"type",label:t})),k=/^[\w-]*/,la=t=>{let{state:O,pos:e}=t,a=z(O).resolveInner(e,-1);if(a.name=="PropertyName")return{from:a.from,options:tO(),validFor:k};if(a.name=="ValueName")return{from:a.from,options:EO,validFor:k};if(a.name=="PseudoClassName")return{from:a.from,options:VO,validFor:k};if(a.name=="TagName"){for(let{parent:s}=a;s;s=s.parent)if(s.name=="Block")return{from:a.from,options:tO(),validFor:k};return{from:a.from,options:oa,validFor:k}}if(!t.explicit)return null;let i=a.resolve(e),r=i.childBefore(e);return r&&r.name==":"&&i.name=="PseudoClassSelector"?{from:e,options:VO,validFor:k}:r&&r.name==":"&&i.name=="Declaration"||i.name=="ArgList"?{from:e,options:EO,validFor:k}:i.name=="Block"?{from:e,options:tO(),validFor:k}:null},nO=cO.define({name:"css",parser:na.configure({props:[uO.add({Declaration:V()}),dO.add({Block:HO})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"}},indentOnInput:/^\s*\}$/,wordChars:"-"}});function Qa(){return new hO(nO,nO.data.of({autocomplete:la}))}const ca=1,IO=281,AO=2,ua=3,U=282,da=4,ha=283,NO=284,$a=286,pa=287,fa=5,ga=6,ma=1,Ta=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],ce=125,Sa=123,ba=59,DO=47,Pa=42,Ra=43,ka=45,xa=36,Xa=96,ya=92,Za=new Oe({start:!1,shift(t,O){return O==fa||O==ga||O==$a?t:O==pa},strict:!1}),Wa=new b((t,O)=>{let{next:e}=t;(e==ce||e==-1||O.context)&&O.canShift(NO)&&t.acceptToken(NO)},{contextual:!0,fallback:!0}),ja=new b((t,O)=>{let{next:e}=t,a;Ta.indexOf(e)>-1||e==DO&&((a=t.peek(1))==DO||a==Pa)||e!=ce&&e!=ba&&e!=-1&&!O.context&&O.canShift(IO)&&t.acceptToken(IO)},{contextual:!0}),wa=new b((t,O)=>{let{next:e}=t;if((e==Ra||e==ka)&&(t.advance(),e==t.next)){t.advance();let a=!O.context&&O.canShift(AO);t.acceptToken(a?AO:ua)}},{contextual:!0}),_a=new b(t=>{for(let O=!1,e=0;;e++){let{next:a}=t;if(a<0){e&&t.acceptToken(U);break}else if(a==Xa){e?t.acceptToken(U):t.acceptToken(ha,1);break}else if(a==Sa&&O){e==1?t.acceptToken(da,1):t.acceptToken(U,-1);break}else if(a==10&&e){t.advance(),t.acceptToken(U);break}else a==ya&&t.advance();O=a==xa,t.advance()}}),va=new b((t,O)=>{if(!(t.next!=101||!O.dialectEnabled(ma))){t.advance();for(let e=0;e<6;e++){if(t.next!="xtends".charCodeAt(e))return;t.advance()}t.next>=57&&t.next<=65||t.next>=48&&t.next<=90||t.next==95||t.next>=97&&t.next<=122||t.next>160||t.acceptToken(ca)}}),qa=QO({"get set async static":o.modifier,"for while do if else switch try catch finally return throw break continue default case":o.controlKeyword,"in of await yield void typeof delete instanceof":o.operatorKeyword,"let var const function class extends":o.definitionKeyword,"import export from":o.moduleKeyword,"with debugger as new":o.keyword,TemplateString:o.special(o.string),super:o.atom,BooleanLiteral:o.bool,this:o.self,null:o.null,Star:o.modifier,VariableName:o.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":o.function(o.variableName),VariableDefinition:o.definition(o.variableName),Label:o.labelName,PropertyName:o.propertyName,PrivatePropertyName:o.special(o.propertyName),"CallExpression/MemberExpression/PropertyName":o.function(o.propertyName),"FunctionDeclaration/VariableDefinition":o.function(o.definition(o.variableName)),"ClassDeclaration/VariableDefinition":o.definition(o.className),PropertyDefinition:o.definition(o.propertyName),PrivatePropertyDefinition:o.definition(o.special(o.propertyName)),UpdateOp:o.updateOperator,LineComment:o.lineComment,BlockComment:o.blockComment,Number:o.number,String:o.string,ArithOp:o.arithmeticOperator,LogicOp:o.logicOperator,BitOp:o.bitwiseOperator,CompareOp:o.compareOperator,RegExp:o.regexp,Equals:o.definitionOperator,Arrow:o.function(o.punctuation),": Spread":o.punctuation,"( )":o.paren,"[ ]":o.squareBracket,"{ }":o.brace,"InterpolationStart InterpolationEnd":o.special(o.brace),".":o.derefOperator,", ;":o.separator,TypeName:o.typeName,TypeDefinition:o.definition(o.typeName),"type enum interface implements namespace module declare":o.definitionKeyword,"abstract global Privacy readonly override":o.modifier,"is keyof unique infer":o.operatorKeyword,JSXAttributeValue:o.attributeValue,JSXText:o.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":o.angleBracket,"JSXIdentifier JSXNameSpacedName":o.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":o.attributeName}),za={__proto__:null,export:18,as:23,from:29,default:32,async:37,function:38,this:48,true:56,false:56,void:66,typeof:70,null:86,super:88,new:122,await:139,yield:141,delete:142,class:152,extends:154,public:197,private:197,protected:197,readonly:199,instanceof:220,in:222,const:224,import:256,keyof:307,unique:311,infer:317,is:351,abstract:371,implements:373,type:375,let:378,var:380,interface:387,enum:391,namespace:397,module:399,declare:403,global:407,for:428,of:437,while:440,with:444,do:448,if:452,else:454,switch:458,case:464,try:470,catch:474,finally:478,return:482,throw:486,break:490,continue:494,debugger:498},Ga={__proto__:null,async:109,get:111,set:113,public:161,private:161,protected:161,static:163,abstract:165,override:167,readonly:173,new:355},Ca={__proto__:null,"<":129},Ua=y.deserialize({version:14,states:"$8SO`QdOOO'QQ(C|O'#ChO'XOWO'#DVO)dQdO'#D]O)tQdO'#DhO){QdO'#DrO-xQdO'#DxOOQO'#E]'#E]O.]Q`O'#E[O.bQ`O'#E[OOQ(C['#Ef'#EfO0aQ(C|O'#ItO2wQ(C|O'#IuO3eQ`O'#EzO3jQ!bO'#FaOOQ(C['#FS'#FSO3rO#tO'#FSO4QQ&jO'#FhO5bQ`O'#FgOOQ(C['#Iu'#IuOOQ(CW'#It'#ItOOQS'#J^'#J^O5gQ`O'#Hp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Q4c:_Q5`2qQ6S3qQ6V3xQ6b:`Q6f:gQ6g:hQ7g6WQ7z6{Q8Z7jQ8m8]Q8y8oQ9_!WR:|;aR!aRR&Y!bS&U!b+`S+]&V&^R0Q+fR'P!yR'S!zT!tU$ZS!sU$ZU$xrs*mS&s!r!uQ,T&tQ,W&wQ.l)zS0k,S,UR4X0l`!dR!]!`$u%x&`)x+hh!qUrs!r!u$Z&t&w)z,S,U0lQ/d*mQ/w+YQ3p/oT:s&W)yT!gR$uS!fR$uS%y!]&`S&O!`)xS+S%x+hT+_&W)yT&]!b$vQ#i^R'{#nT'q#i'rR1Z,lT(a#v(cR(i#yQ-})]Q2U.RQ2|.{Q4{2TQ5l3QQ6t4}Q7U5kQ7y6zQ8S7WR8i8TlhOSj}!n$]%c%f%g%i*o*t/g/jQ%]yR*d%YV$yrs*mR.u*TR*c%WQ$qpR)u$rR)k$lT%az%dT%bz%dT/i*t/j",nodeNames:"\u26A0 extends ArithOp ArithOp InterpolationStart LineComment BlockComment Script ExportDeclaration export Star as VariableName String from ; default FunctionDeclaration async function VariableDefinition TypeParamList TypeDefinition ThisType this LiteralType ArithOp Number BooleanLiteral TemplateType InterpolationEnd Interpolation VoidType void TypeofType typeof MemberExpression . ?. PropertyName [ TemplateString Interpolation null super RegExp ] ArrayExpression Spread , } { ObjectExpression Property async get set PropertyDefinition Block : NewExpression new TypeArgList CompareOp < ) ( ArgList UnaryExpression await yield delete LogicOp BitOp ParenthesizedExpression ClassExpression class extends ClassBody MethodDeclaration Privacy static abstract override PrivatePropertyDefinition PropertyDeclaration readonly Optional TypeAnnotation Equals StaticBlock FunctionExpression ArrowFunction ParamList ParamList ArrayPattern ObjectPattern PatternProperty Privacy readonly Arrow MemberExpression PrivatePropertyName BinaryExpression ArithOp ArithOp ArithOp ArithOp BitOp CompareOp instanceof in const CompareOp BitOp BitOp BitOp LogicOp LogicOp ConditionalExpression LogicOp LogicOp AssignmentExpression UpdateOp PostfixExpression CallExpression TaggedTemplateExpression DynamicImport import ImportMeta JSXElement JSXSelfCloseEndTag JSXStartTag JSXSelfClosingTag JSXIdentifier JSXNamespacedName JSXMemberExpression JSXSpreadAttribute JSXAttribute JSXAttributeValue JSXEscape JSXEndTag JSXOpenTag JSXFragmentTag JSXText JSXEscape JSXStartCloseTag JSXCloseTag PrefixCast ArrowFunction TypeParamList SequenceExpression KeyofType keyof UniqueType unique ImportType InferredType infer TypeName ParenthesizedType FunctionSignature ParamList NewSignature IndexedType TupleType Label ArrayType ReadonlyType ObjectType MethodType PropertyType IndexSignature CallSignature TypePredicate is NewSignature new UnionType LogicOp IntersectionType LogicOp ConditionalType ParameterizedType ClassDeclaration abstract implements type VariableDeclaration let var TypeAliasDeclaration InterfaceDeclaration interface EnumDeclaration enum EnumBody NamespaceDeclaration namespace module AmbientDeclaration declare GlobalDeclaration global ClassDeclaration ClassBody MethodDeclaration AmbientFunctionDeclaration ExportGroup VariableName VariableName ImportDeclaration ImportGroup ForStatement for ForSpec ForInSpec ForOfSpec of WhileStatement while WithStatement with DoStatement do IfStatement if else SwitchStatement switch SwitchBody CaseLabel case DefaultLabel TryStatement try CatchClause catch FinallyClause finally ReturnStatement return ThrowStatement throw BreakStatement break ContinueStatement continue DebuggerStatement debugger LabeledStatement ExpressionStatement",maxTerm:332,context:Za,nodeProps:[["closedBy",4,"InterpolationEnd",40,"]",51,"}",66,")",132,"JSXSelfCloseEndTag JSXEndTag",146,"JSXEndTag"],["group",-26,8,15,17,58,184,188,191,192,194,197,200,211,213,219,221,223,225,228,234,240,242,244,246,248,250,251,"Statement",-30,12,13,24,27,28,41,43,44,45,47,52,60,68,74,75,91,92,101,103,119,122,124,125,126,127,129,130,148,149,151,"Expression",-22,23,25,29,32,34,152,154,156,157,159,160,161,163,164,165,167,168,169,178,180,182,183,"Type",-3,79,85,90,"ClassItem"],["openedBy",30,"InterpolationStart",46,"[",50,"{",65,"(",131,"JSXStartTag",141,"JSXStartTag JSXStartCloseTag"]],propSources:[qa],skippedNodes:[0,5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WO!^%T!_!`5T!`#o%T#p#q!=P#q~%T6X!?oR!S5}nQ$UWO!^%T!_#o%T#p~%TX!@PR!kP$UWO!^%T!_#o%T#p~%T7Z!@gr$UW'Y7R#zS']$y'g3SOX%TXY%cYZ%TZ[%c[p%Tpq%cqt%Ttu2`u}%T}!O3j!O!Q%T!Q![2`![!^%T!_!c%T!c!}2`!}#R%T#R#S2`#S#T%T#T#o2`#p$f%T$f$g%c$g#BY2`#BY#BZ!@Y#BZ$IS2`$IS$I_!@Y$I_$JT2`$JT$JU!@Y$JU$KV2`$KV$KW!@Y$KW&FU2`&FU&FV!@Y&FV?HT2`?HT?HU!@Y?HU~2`7Z!CO_$UW'Z7R#zS']$y'g3SOt%Ttu2`u}%T}!O3j!O!Q%T!Q![2`![!^%T!_!c%T!c!}2`!}#R%T#R#S2`#S#T%T#T#o2`#p$g%T$g~2`",tokenizers:[va,ja,wa,_a,0,1,2,3,4,5,6,7,8,9,Wa],topRules:{Script:[0,7]},dialects:{jsx:12107,ts:12109},dynamicPrecedences:{149:1,176:1},specialized:[{term:289,get:t=>za[t]||-1},{term:299,get:t=>Ga[t]||-1},{term:63,get:t=>Ca[t]||-1}],tokenPrec:12130}),Ya=[T("function ${name}(${params}) {\n ${}\n}",{label:"function",detail:"definition",type:"keyword"}),T("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n ${}\n}",{label:"for",detail:"loop",type:"keyword"}),T("for (let ${name} of ${collection}) {\n ${}\n}",{label:"for",detail:"of loop",type:"keyword"}),T("do {\n ${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),T("while (${}) {\n ${}\n}",{label:"while",detail:"loop",type:"keyword"}),T(`try { +import{S as me,i as Te,s as Se,e as be,f as Pe,T as SO,g as Re,y as bO,o as ke,K as xe,M as Xe,N as ye}from"./index.be8ffbe5.js";import{P as Ze,N as We,u as je,D as we,v as lO,T as Y,I as KO,w as QO,x as o,y as _e,L as cO,z as uO,A as V,B as dO,F as HO,G as hO,H as z,J as ve,K as qe,E as X,M as q,O as ze,Q as Ge,R as T,U as Ce,a as w,h as Ue,b as Ye,c as Ve,d as Ee,e as Ie,s as Ae,f as Ne,g as De,i as Le,r as Fe,j as Je,k as Me,l as Be,m as Ke,n as He,o as Ot,p as et,q as tt,t as PO,C as G}from"./index.9c8b95cd.js";class N{constructor(O,e,a,i,r,s,n,Q,c,u=0,l){this.p=O,this.stack=e,this.state=a,this.reducePos=i,this.pos=r,this.score=s,this.buffer=n,this.bufferBase=Q,this.curContext=c,this.lookAhead=u,this.parent=l}toString(){return`[${this.stack.filter((O,e)=>e%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(O,e,a=0){let i=O.parser.context;return new N(O,[],e,a,a,0,[],0,i?new RO(i,i.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(O,e){this.stack.push(this.state,e,this.bufferBase+this.buffer.length),this.state=O}reduce(O){let e=O>>19,a=O&65535,{parser:i}=this.p,r=i.dynamicPrecedence(a);if(r&&(this.score+=r),e==0){this.pushState(i.getGoto(this.state,a,!0),this.reducePos),as;)this.stack.pop();this.reduceContext(a,n)}storeNode(O,e,a,i=4,r=!1){if(O==0&&(!this.stack.length||this.stack[this.stack.length-1]0&&s.buffer[n-4]==0&&s.buffer[n-1]>-1){if(e==a)return;if(s.buffer[n-2]>=e){s.buffer[n-2]=a;return}}}if(!r||this.pos==a)this.buffer.push(O,e,a,i);else{let s=this.buffer.length;if(s>0&&this.buffer[s-4]!=0)for(;s>0&&this.buffer[s-2]>a;)this.buffer[s]=this.buffer[s-4],this.buffer[s+1]=this.buffer[s-3],this.buffer[s+2]=this.buffer[s-2],this.buffer[s+3]=this.buffer[s-1],s-=4,i>4&&(i-=4);this.buffer[s]=O,this.buffer[s+1]=e,this.buffer[s+2]=a,this.buffer[s+3]=i}}shift(O,e,a){let i=this.pos;if(O&131072)this.pushState(O&65535,this.pos);else if((O&262144)==0){let r=O,{parser:s}=this.p;(a>this.pos||e<=s.maxNode)&&(this.pos=a,s.stateFlag(r,1)||(this.reducePos=a)),this.pushState(r,i),this.shiftContext(e,i),e<=s.maxNode&&this.buffer.push(e,i,a,4)}else this.pos=a,this.shiftContext(e,i),e<=this.p.parser.maxNode&&this.buffer.push(e,i,a,4)}apply(O,e,a){O&65536?this.reduce(O):this.shift(O,e,a)}useNode(O,e){let a=this.p.reused.length-1;(a<0||this.p.reused[a]!=O)&&(this.p.reused.push(O),a++);let i=this.pos;this.reducePos=this.pos=i+O.length,this.pushState(e,i),this.buffer.push(a,i,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,O,this,this.p.stream.reset(this.pos-O.length)))}split(){let O=this,e=O.buffer.length;for(;e>0&&O.buffer[e-2]>O.reducePos;)e-=4;let a=O.buffer.slice(e),i=O.bufferBase+e;for(;O&&i==O.bufferBase;)O=O.parent;return new N(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,a,i,this.curContext,this.lookAhead,O)}recoverByDelete(O,e){let a=O<=this.p.parser.maxNode;a&&this.storeNode(O,this.pos,e,4),this.storeNode(0,this.pos,e,a?8:4),this.pos=this.reducePos=e,this.score-=190}canShift(O){for(let e=new at(this);;){let a=this.p.parser.stateSlot(e.state,4)||this.p.parser.hasAction(e.state,O);if((a&65536)==0)return!0;if(a==0)return!1;e.reduce(a)}}recoverByInsert(O){if(this.stack.length>=300)return[];let e=this.p.parser.nextStates(this.state);if(e.length>4<<1||this.stack.length>=120){let i=[];for(let r=0,s;rQ&1&&n==s)||i.push(e[r],s)}e=i}let a=[];for(let i=0;i>19,i=O&65535,r=this.stack.length-a*3;if(r<0||e.getGoto(this.stack[r],i,!1)<0)return!1;this.storeNode(0,this.reducePos,this.reducePos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(O),!0}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(this.stack.length!=3)return!1;let{parser:O}=this.p;return O.data[O.stateSlot(this.state,1)]==65535&&!O.stateSlot(this.state,4)}restart(){this.state=this.stack[0],this.stack.length=0}sameState(O){if(this.state!=O.state||this.stack.length!=O.stack.length)return!1;for(let e=0;ethis.lookAhead&&(this.emitLookAhead(),this.lookAhead=O)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class RO{constructor(O,e){this.tracker=O,this.context=e,this.hash=O.strict?O.hash(e):0}}var kO;(function(t){t[t.Insert=200]="Insert",t[t.Delete=190]="Delete",t[t.Reduce=100]="Reduce",t[t.MaxNext=4]="MaxNext",t[t.MaxInsertStackDepth=300]="MaxInsertStackDepth",t[t.DampenInsertStackDepth=120]="DampenInsertStackDepth"})(kO||(kO={}));class at{constructor(O){this.start=O,this.state=O.state,this.stack=O.stack,this.base=this.stack.length}reduce(O){let e=O&65535,a=O>>19;a==0?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(a-1)*3;let i=this.start.p.parser.getGoto(this.stack[this.base-3],e,!0);this.state=i}}class D{constructor(O,e,a){this.stack=O,this.pos=e,this.index=a,this.buffer=O.buffer,this.index==0&&this.maybeNext()}static create(O,e=O.bufferBase+O.buffer.length){return new D(O,e,e-O.bufferBase)}maybeNext(){let O=this.stack.parent;O!=null&&(this.index=this.stack.bufferBase-O.bufferBase,this.stack=O,this.buffer=O.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,this.index==0&&this.maybeNext()}fork(){return new D(this.stack,this.pos,this.index)}}class E{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const xO=new E;class it{constructor(O,e){this.input=O,this.ranges=e,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=xO,this.rangeIndex=0,this.pos=this.chunkPos=e[0].from,this.range=e[0],this.end=e[e.length-1].to,this.readNext()}resolveOffset(O,e){let a=this.range,i=this.rangeIndex,r=this.pos+O;for(;ra.to:r>=a.to;){if(i==this.ranges.length-1)return null;let s=this.ranges[++i];r+=s.from-a.to,a=s}return r}clipPos(O){if(O>=this.range.from&&OO)return Math.max(O,e.from);return this.end}peek(O){let e=this.chunkOff+O,a,i;if(e>=0&&e=this.chunk2Pos&&an.to&&(this.chunk2=this.chunk2.slice(0,n.to-a)),i=this.chunk2.charCodeAt(0)}}return a>=this.token.lookAhead&&(this.token.lookAhead=a+1),i}acceptToken(O,e=0){let a=e?this.resolveOffset(e,-1):this.pos;if(a==null||a=this.chunk2Pos&&this.posthis.range.to?O.slice(0,this.range.to-this.pos):O,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(O=1){for(this.chunkOff+=O;this.pos+O>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();O-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=O,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(O,e){if(e?(this.token=e,e.start=O,e.lookAhead=O+1,e.value=e.extended=-1):this.token=xO,this.pos!=O){if(this.pos=O,O==this.end)return this.setDone(),this;for(;O=this.range.to;)this.range=this.ranges[++this.rangeIndex];O>=this.chunkPos&&O=this.chunkPos&&e<=this.chunkPos+this.chunk.length)return this.chunk.slice(O-this.chunkPos,e-this.chunkPos);if(O>=this.chunk2Pos&&e<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(O-this.chunk2Pos,e-this.chunk2Pos);if(O>=this.range.from&&e<=this.range.to)return this.input.read(O,e);let a="";for(let i of this.ranges){if(i.from>=e)break;i.to>O&&(a+=this.input.read(Math.max(i.from,O),Math.min(i.to,e)))}return a}}class I{constructor(O,e){this.data=O,this.id=e}token(O,e){rt(this.data,O,e,this.id)}}I.prototype.contextual=I.prototype.fallback=I.prototype.extend=!1;class b{constructor(O,e={}){this.token=O,this.contextual=!!e.contextual,this.fallback=!!e.fallback,this.extend=!!e.extend}}function rt(t,O,e,a){let i=0,r=1<0){let $=t[h];if(n.allows($)&&(O.token.value==-1||O.token.value==$||s.overrides($,O.token.value))){O.acceptToken($);break}}let c=O.next,u=0,l=t[i+2];if(O.next<0&&l>u&&t[Q+l*3-3]==65535){i=t[Q+l*3-1];continue O}for(;u>1,$=Q+h+(h<<1),p=t[$],P=t[$+1];if(c=P)u=h+1;else{i=t[$+2],O.advance();continue O}}break}}function C(t,O=Uint16Array){if(typeof t!="string")return t;let e=null;for(let a=0,i=0;a=92&&s--,s>=34&&s--;let Q=s-32;if(Q>=46&&(Q-=46,n=!0),r+=Q,n)break;r*=46}e?e[i++]=r:e=new O(r)}return e}const S=typeof process<"u"&&process.env&&/\bparse\b/.test(process.env.LOG);let B=null;var XO;(function(t){t[t.Margin=25]="Margin"})(XO||(XO={}));function yO(t,O,e){let a=t.cursor(KO.IncludeAnonymous);for(a.moveTo(O);;)if(!(e<0?a.childBefore(O):a.childAfter(O)))for(;;){if((e<0?a.toO)&&!a.type.isError)return e<0?Math.max(0,Math.min(a.to-1,O-25)):Math.min(t.length,Math.max(a.from+1,O+25));if(e<0?a.prevSibling():a.nextSibling())break;if(!a.parent())return e<0?0:t.length}}class st{constructor(O,e){this.fragments=O,this.nodeSet=e,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let O=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(O){for(this.safeFrom=O.openStart?yO(O.tree,O.from+O.offset,1)-O.offset:O.from,this.safeTo=O.openEnd?yO(O.tree,O.to+O.offset,-1)-O.offset:O.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(O.tree),this.start.push(-O.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(O){if(OO)return this.nextStart=s,null;if(r instanceof Y){if(s==O){if(s=Math.max(this.safeFrom,O)&&(this.trees.push(r),this.start.push(s),this.index.push(0))}else this.index[e]++,this.nextStart=s+r.length}}}class nt{constructor(O,e){this.stream=e,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=O.tokenizers.map(a=>new E)}getActions(O){let e=0,a=null,{parser:i}=O.p,{tokenizers:r}=i,s=i.stateSlot(O.state,3),n=O.curContext?O.curContext.hash:0,Q=0;for(let c=0;cl.end+25&&(Q=Math.max(l.lookAhead,Q)),l.value!=0)){let h=e;if(l.extended>-1&&(e=this.addActions(O,l.extended,l.end,e)),e=this.addActions(O,l.value,l.end,e),!u.extend&&(a=l,e>h))break}}for(;this.actions.length>e;)this.actions.pop();return Q&&O.setLookAhead(Q),!a&&O.pos==this.stream.end&&(a=new E,a.value=O.p.parser.eofTerm,a.start=a.end=O.pos,e=this.addActions(O,a.value,a.end,e)),this.mainToken=a,this.actions}getMainToken(O){if(this.mainToken)return this.mainToken;let e=new E,{pos:a,p:i}=O;return e.start=a,e.end=Math.min(a+1,i.stream.end),e.value=a==i.stream.end?i.parser.eofTerm:0,e}updateCachedToken(O,e,a){let i=this.stream.clipPos(a.pos);if(e.token(this.stream.reset(i,O),a),O.value>-1){let{parser:r}=a.p;for(let s=0;s=0&&a.p.parser.dialect.allows(n>>1)){(n&1)==0?O.value=n>>1:O.extended=n>>1;break}}}else O.value=0,O.end=this.stream.clipPos(i+1)}putAction(O,e,a,i){for(let r=0;rO.bufferLength*4?new st(a,O.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let O=this.stacks,e=this.minStackPos,a=this.stacks=[],i,r;for(let s=0;se)a.push(n);else{if(this.advanceStack(n,a,O))continue;{i||(i=[],r=[]),i.push(n);let Q=this.tokens.getMainToken(n);r.push(Q.value,Q.end)}}break}}if(!a.length){let s=i&&Qt(i);if(s)return this.stackToTree(s);if(this.parser.strict)throw S&&i&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+e);this.recovering||(this.recovering=5)}if(this.recovering&&i){let s=this.stoppedAt!=null&&i[0].pos>this.stoppedAt?i[0]:this.runRecovery(i,r,a);if(s)return this.stackToTree(s.forceAll())}if(this.recovering){let s=this.recovering==1?1:this.recovering*3;if(a.length>s)for(a.sort((n,Q)=>Q.score-n.score);a.length>s;)a.pop();a.some(n=>n.reducePos>e)&&this.recovering--}else if(a.length>1){O:for(let s=0;s500&&c.buffer.length>500)if((n.score-c.score||n.buffer.length-c.buffer.length)>0)a.splice(Q--,1);else{a.splice(s--,1);continue O}}}}this.minStackPos=a[0].pos;for(let s=1;s ":"";if(this.stoppedAt!=null&&i>this.stoppedAt)return O.forceReduce()?O:null;if(this.fragments){let c=O.curContext&&O.curContext.tracker.strict,u=c?O.curContext.hash:0;for(let l=this.fragments.nodeAt(i);l;){let h=this.parser.nodeSet.types[l.type.id]==l.type?r.getGoto(O.state,l.type.id):-1;if(h>-1&&l.length&&(!c||(l.prop(lO.contextHash)||0)==u))return O.useNode(l,h),S&&console.log(s+this.stackID(O)+` (via reuse of ${r.getName(l.type.id)})`),!0;if(!(l instanceof Y)||l.children.length==0||l.positions[0]>0)break;let $=l.children[0];if($ instanceof Y&&l.positions[0]==0)l=$;else break}}let n=r.stateSlot(O.state,4);if(n>0)return O.reduce(n),S&&console.log(s+this.stackID(O)+` (via always-reduce ${r.getName(n&65535)})`),!0;if(O.stack.length>=15e3)for(;O.stack.length>9e3&&O.forceReduce(););let Q=this.tokens.getActions(O);for(let c=0;ci?e.push(p):a.push(p)}return!1}advanceFully(O,e){let a=O.pos;for(;;){if(!this.advanceStack(O,null,null))return!1;if(O.pos>a)return WO(O,e),!0}}runRecovery(O,e,a){let i=null,r=!1;for(let s=0;s ":"";if(n.deadEnd&&(r||(r=!0,n.restart(),S&&console.log(u+this.stackID(n)+" (restarted)"),this.advanceFully(n,a))))continue;let l=n.split(),h=u;for(let $=0;l.forceReduce()&&$<10&&(S&&console.log(h+this.stackID(l)+" (via force-reduce)"),!this.advanceFully(l,a));$++)S&&(h=this.stackID(l)+" -> ");for(let $ of n.recoverByInsert(Q))S&&console.log(u+this.stackID($)+" (via recover-insert)"),this.advanceFully($,a);this.stream.end>n.pos?(c==n.pos&&(c++,Q=0),n.recoverByDelete(Q,c),S&&console.log(u+this.stackID(n)+` (via recover-delete ${this.parser.getName(Q)})`),WO(n,a)):(!i||i.scoret;class Oe{constructor(O){this.start=O.start,this.shift=O.shift||K,this.reduce=O.reduce||K,this.reuse=O.reuse||K,this.hash=O.hash||(()=>0),this.strict=O.strict!==!1}}class y extends Ze{constructor(O){if(super(),this.wrappers=[],O.version!=14)throw new RangeError(`Parser version (${O.version}) doesn't match runtime version (${14})`);let e=O.nodeNames.split(" ");this.minRepeatTerm=e.length;for(let n=0;nO.topRules[n][1]),i=[];for(let n=0;n=0)r(u,Q,n[c++]);else{let l=n[c+-u];for(let h=-u;h>0;h--)r(n[c++],Q,l);c++}}}this.nodeSet=new We(e.map((n,Q)=>je.define({name:Q>=this.minRepeatTerm?void 0:n,id:Q,props:i[Q],top:a.indexOf(Q)>-1,error:Q==0,skipped:O.skippedNodes&&O.skippedNodes.indexOf(Q)>-1}))),O.propSources&&(this.nodeSet=this.nodeSet.extend(...O.propSources)),this.strict=!1,this.bufferLength=we;let s=C(O.tokenData);this.context=O.context,this.specializerSpecs=O.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let n=0;ntypeof n=="number"?new I(s,n):n),this.topRules=O.topRules,this.dialects=O.dialects||{},this.dynamicPrecedences=O.dynamicPrecedences||null,this.tokenPrecTable=O.tokenPrec,this.termNames=O.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(O,e,a){let i=new ot(this,O,e,a);for(let r of this.wrappers)i=r(i,O,e,a);return i}getGoto(O,e,a=!1){let i=this.goto;if(e>=i[0])return-1;for(let r=i[e+1];;){let s=i[r++],n=s&1,Q=i[r++];if(n&&a)return Q;for(let c=r+(s>>1);r0}validAction(O,e){if(e==this.stateSlot(O,4))return!0;for(let a=this.stateSlot(O,1);;a+=3){if(this.data[a]==65535)if(this.data[a+1]==1)a=R(this.data,a+2);else return!1;if(e==R(this.data,a+1))return!0}}nextStates(O){let e=[];for(let a=this.stateSlot(O,1);;a+=3){if(this.data[a]==65535)if(this.data[a+1]==1)a=R(this.data,a+2);else break;if((this.data[a+2]&1)==0){let i=this.data[a+1];e.some((r,s)=>s&1&&r==i)||e.push(this.data[a],i)}}return e}overrides(O,e){let a=jO(this.data,this.tokenPrecTable,e);return a<0||jO(this.data,this.tokenPrecTable,O){let i=O.tokenizers.find(r=>r.from==a);return i?i.to:a})),O.specializers&&(e.specializers=this.specializers.slice(),e.specializerSpecs=this.specializerSpecs.map((a,i)=>{let r=O.specializers.find(n=>n.from==a.external);if(!r)return a;let s=Object.assign(Object.assign({},a),{external:r.to});return e.specializers[i]=wO(s),s})),O.contextTracker&&(e.context=O.contextTracker),O.dialect&&(e.dialect=this.parseDialect(O.dialect)),O.strict!=null&&(e.strict=O.strict),O.wrap&&(e.wrappers=e.wrappers.concat(O.wrap)),O.bufferLength!=null&&(e.bufferLength=O.bufferLength),e}hasWrappers(){return this.wrappers.length>0}getName(O){return this.termNames?this.termNames[O]:String(O<=this.maxNode&&this.nodeSet.types[O].name||O)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(O){let e=this.dynamicPrecedences;return e==null?0:e[O]||0}parseDialect(O){let e=Object.keys(this.dialects),a=e.map(()=>!1);if(O)for(let r of O.split(" ")){let s=e.indexOf(r);s>=0&&(a[s]=!0)}let i=null;for(let r=0;ra)&&e.p.parser.stateFlag(e.state,2)&&(!O||O.scoret.external(e,a)<<1|O}return t.get}const ct=53,ut=1,dt=54,ht=2,$t=55,pt=3,L=4,ee=5,te=6,ae=7,ie=8,ft=9,gt=10,mt=11,H=56,Tt=12,_O=57,St=18,bt=27,Pt=30,Rt=33,kt=35,xt=0,Xt={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},yt={dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},vO={dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}};function Zt(t){return t==45||t==46||t==58||t>=65&&t<=90||t==95||t>=97&&t<=122||t>=161}function re(t){return t==9||t==10||t==13||t==32}let qO=null,zO=null,GO=0;function sO(t,O){let e=t.pos+O;if(GO==e&&zO==t)return qO;let a=t.peek(O);for(;re(a);)a=t.peek(++O);let i="";for(;Zt(a);)i+=String.fromCharCode(a),a=t.peek(++O);return zO=t,GO=e,qO=i?i.toLowerCase():a==Wt||a==jt?void 0:null}const se=60,ne=62,oe=47,Wt=63,jt=33,wt=45;function CO(t,O){this.name=t,this.parent=O,this.hash=O?O.hash:0;for(let e=0;e-1?new CO(sO(a,1)||"",t):t},reduce(t,O){return O==St&&t?t.parent:t},reuse(t,O,e,a){let i=O.type.id;return i==L||i==kt?new CO(sO(a,1)||"",t):t},hash(t){return t?t.hash:0},strict:!1}),qt=new b((t,O)=>{if(t.next!=se){t.next<0&&O.context&&t.acceptToken(H);return}t.advance();let e=t.next==oe;e&&t.advance();let a=sO(t,0);if(a===void 0)return;if(!a)return t.acceptToken(e?Tt:L);let i=O.context?O.context.name:null;if(e){if(a==i)return t.acceptToken(ft);if(i&&yt[i])return t.acceptToken(H,-2);if(O.dialectEnabled(xt))return t.acceptToken(gt);for(let r=O.context;r;r=r.parent)if(r.name==a)return;t.acceptToken(mt)}else{if(a=="script")return t.acceptToken(ee);if(a=="style")return t.acceptToken(te);if(a=="textarea")return t.acceptToken(ae);if(Xt.hasOwnProperty(a))return t.acceptToken(ie);i&&vO[i]&&vO[i][a]?t.acceptToken(H,-1):t.acceptToken(L)}},{contextual:!0}),zt=new b(t=>{for(let O=0,e=0;;e++){if(t.next<0){e&&t.acceptToken(_O);break}if(t.next==wt)O++;else if(t.next==ne&&O>=2){e>3&&t.acceptToken(_O,-2);break}else O=0;t.advance()}});function $O(t,O,e){let a=2+t.length;return new b(i=>{for(let r=0,s=0,n=0;;n++){if(i.next<0){n&&i.acceptToken(O);break}if(r==0&&i.next==se||r==1&&i.next==oe||r>=2&&rs?i.acceptToken(O,-s):i.acceptToken(e,-(s-2));break}else if((i.next==10||i.next==13)&&n){i.acceptToken(O,1);break}else r=s=0;i.advance()}})}const Gt=$O("script",ct,ut),Ct=$O("style",dt,ht),Ut=$O("textarea",$t,pt),Yt=QO({"Text RawText":o.content,"StartTag StartCloseTag SelfCloserEndTag EndTag SelfCloseEndTag":o.angleBracket,TagName:o.tagName,"MismatchedCloseTag/TagName":[o.tagName,o.invalid],AttributeName:o.attributeName,"AttributeValue UnquotedAttributeValue":o.attributeValue,Is:o.definitionOperator,"EntityReference CharacterReference":o.character,Comment:o.blockComment,ProcessingInst:o.processing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Text EntityReference CharacterReference InvalidEntity Element OpenTag TagName Attribute AttributeName Is AttributeValue UnquotedAttributeValue EndTag ScriptText CloseTag OpenTag StyleText CloseTag OpenTag TextareaText CloseTag OpenTag CloseTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag CloseTag DoctypeDecl",maxTerm:66,context:vt,nodeProps:[["closedBy",-11,1,2,3,4,5,6,7,8,9,10,11,"EndTag",-4,19,29,32,35,"CloseTag"],["group",-9,12,15,16,17,18,38,39,40,41,"Entity",14,"Entity TextContent",-3,27,30,33,"TextContent Entity"],["openedBy",26,"StartTag StartCloseTag",-4,28,31,34,36,"OpenTag"]],propSources:[Yt],skippedNodes:[0],repeatNodeCount:9,tokenData:"!#b!aR!WOX$kXY)sYZ)sZ]$k]^)s^p$kpq)sqr$krs*zsv$kvw+dwx2yx}$k}!O3f!O!P$k!P!Q7_!Q![$k![!]8u!]!^$k!^!_>b!_!`!!p!`!a8T!a!c$k!c!}8u!}#R$k#R#S8u#S#T$k#T#o8u#o$f$k$f$g&R$g%W$k%W%o8u%o%p$k%p&a8u&a&b$k&b1p8u1p4U$k4U4d8u4d4e$k4e$IS8u$IS$I`$k$I`$Ib8u$Ib$Kh$k$Kh%#t8u%#t&/x$k&/x&Et8u&Et&FV$k&FV;'S8u;'S;:jiW!``!bpOq(kqr?Rrs'gsv(kwx(]x!a(k!a!bKj!b~(k!R?YZ!``!bpOr(krs'gsv(kwx(]x}(k}!O?{!O!f(k!f!gAR!g#W(k#W#XGz#X~(k!R@SV!``!bpOr(krs'gsv(kwx(]x}(k}!O@i!O~(k!R@rT!``!bp!cPOr(krs'gsv(kwx(]x~(k!RAYV!``!bpOr(krs'gsv(kwx(]x!q(k!q!rAo!r~(k!RAvV!``!bpOr(krs'gsv(kwx(]x!e(k!e!fB]!f~(k!RBdV!``!bpOr(krs'gsv(kwx(]x!v(k!v!wBy!w~(k!RCQV!``!bpOr(krs'gsv(kwx(]x!{(k!{!|Cg!|~(k!RCnV!``!bpOr(krs'g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.getChildren("Attribute")){let i=a.getChild("AttributeName"),r=a.getChild("AttributeValue")||a.getChild("UnquotedAttributeValue");i&&(e[O.read(i.from,i.to)]=r?r.name=="AttributeValue"?O.read(r.from+1,r.to-1):O.read(r.from,r.to):"")}return e}function OO(t,O,e){let a;for(let i of e)if(!i.attrs||i.attrs(a||(a=Et(t.node.parent,O))))return{parser:i.parser};return null}function It(t){let O=[],e=[],a=[];for(let i of t){let r=i.tag=="script"?O:i.tag=="style"?e:i.tag=="textarea"?a:null;if(!r)throw new RangeError("Only script, style, and textarea tags can host nested parsers");r.push(i)}return _e((i,r)=>{let s=i.type.id;return s==bt?OO(i,r,O):s==Pt?OO(i,r,e):s==Rt?OO(i,r,a):null})}const At=93,UO=1,Nt=94,Dt=95,YO=2,le=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],Lt=58,Ft=40,Qe=95,Jt=91,A=45,Mt=46,Bt=35,Kt=37;function F(t){return t>=65&&t<=90||t>=97&&t<=122||t>=161}function Ht(t){return t>=48&&t<=57}const Oa=new b((t,O)=>{for(let e=!1,a=0,i=0;;i++){let{next:r}=t;if(F(r)||r==A||r==Qe||e&&Ht(r))!e&&(r!=A||i>0)&&(e=!0),a===i&&r==A&&a++,t.advance();else{e&&t.acceptToken(r==Ft?Nt:a==2&&O.canShift(YO)?YO:Dt);break}}}),ea=new b(t=>{if(le.includes(t.peek(-1))){let{next:O}=t;(F(O)||O==Qe||O==Bt||O==Mt||O==Jt||O==Lt||O==A)&&t.acceptToken(At)}}),ta=new b(t=>{if(!le.includes(t.peek(-1))){let{next:O}=t;if(O==Kt&&(t.advance(),t.acceptToken(UO)),F(O)){do t.advance();while(F(t.next));t.acceptToken(UO)}}}),aa=QO({"AtKeyword import charset namespace keyframes media supports":o.definitionKeyword,"from to selector":o.keyword,NamespaceName:o.namespace,KeyframeName:o.labelName,TagName:o.tagName,ClassName:o.className,PseudoClassName:o.constant(o.className),IdName:o.labelName,"FeatureName PropertyName":o.propertyName,AttributeName:o.attributeName,NumberLiteral:o.number,KeywordQuery:o.keyword,UnaryQueryOp:o.operatorKeyword,"CallTag ValueName":o.atom,VariableName:o.variableName,Callee:o.operatorKeyword,Unit:o.unit,"UniversalSelector NestingSelector":o.definitionOperator,MatchOp:o.compareOperator,"ChildOp SiblingOp, LogicOp":o.logicOperator,BinOp:o.arithmeticOperator,Important:o.modifier,Comment:o.blockComment,ParenthesizedContent:o.special(o.name),ColorLiteral:o.color,StringLiteral:o.string,":":o.punctuation,"PseudoOp #":o.derefOperator,"; ,":o.separator,"( )":o.paren,"[ ]":o.squareBracket,"{ }":o.brace}),ia={__proto__:null,lang:32,"nth-child":32,"nth-last-child":32,"nth-of-type":32,"nth-last-of-type":32,dir:32,"host-context":32,url:60,"url-prefix":60,domain:60,regexp:60,selector:134},ra={__proto__:null,"@import":114,"@media":138,"@charset":142,"@namespace":146,"@keyframes":152,"@supports":164},sa={__proto__:null,not:128,only:128,from:158,to:160},na=y.deserialize({version:14,states:"7WOYQ[OOOOQP'#Cd'#CdOOQP'#Cc'#CcO!ZQ[O'#CfO!}QXO'#CaO#UQ[O'#ChO#aQ[O'#DPO#fQ[O'#DTOOQP'#Ec'#EcO#kQdO'#DeO$VQ[O'#DrO#kQdO'#DtO$hQ[O'#DvO$sQ[O'#DyO$xQ[O'#EPO%WQ[O'#EROOQS'#Eb'#EbOOQS'#ES'#ESQYQ[OOOOQP'#Cg'#CgOOQP,59Q,59QO!ZQ[O,59QO%_Q[O'#EVO%yQWO,58{O&RQ[O,59SO#aQ[O,59kO#fQ[O,59oO%_Q[O,59sO%_Q[O,59uO%_Q[O,59vO'bQ[O'#D`OOQS,58{,58{OOQP'#Ck'#CkOOQO'#C}'#C}OOQP,59S,59SO'iQWO,59SO'nQWO,59SOOQP'#DR'#DROOQP,59k,59kOOQO'#DV'#DVO'sQ`O,59oOOQS'#Cp'#CpO#kQdO'#CqO'{QvO'#CsO)VQtO,5:PO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i!P!Q;W!Q~9i~;_QoWR~Oy%Qz~%Q^;jY#ZUOy%Qz!O%Q!O!P5Z!P!Q%Q!Q![7_![!g%Q!g!h5z!h#X%Q#X#Y5z#Y~%QX<_S]POy%Qz![%Q![!]RUOy%Qz!c%Q!c!}>e!}#T%Q#T#o>e#o~%QX>lY!YPoWOy%Qz}%Q}!O>e!O!Q%Q!Q![>e![!c%Q!c!}>e!}#T%Q#T#o>e#o~%QX?aQxPOy%Qz~%Q^?lQvUOy%Qz~%QX?uSOy%Qz#b%Q#b#c@R#c~%QX@WSoWOy%Qz#W%Q#W#X@d#X~%QX@kQ!`PoWOy%Qz~%QX@tSOy%Qz#f%Q#f#g@d#g~%QXAVQ!RPOy%Qz~%Q_AbQ!QVOy%Qz~%QZAmS!PPOy%Qz!_%Q!_!`2e!`~%Q",tokenizers:[ea,ta,Oa,0,1,2,3],topRules:{StyleSheet:[0,4]},specialized:[{term:94,get:t=>ia[t]||-1},{term:56,get:t=>ra[t]||-1},{term:95,get:t=>sa[t]||-1}],tokenPrec:1078});let eO=null;function tO(){if(!eO&&typeof document=="object"&&document.body){let t=[];for(let O in document.body.style)/[A-Z]|^-|^(item|length)$/.test(O)||t.push(O);eO=t.sort().map(O=>({type:"property",label:O}))}return eO||[]}const VO=["active","after","any-link","autofill","backdrop","before","checked","cue","default","defined","disabled","empty","enabled","file-selector-button","first","first-child","first-letter","first-line","first-of-type","focus","focus-visible","focus-within","fullscreen","has","host","host-context","hover","in-range","indeterminate","invalid","is","lang","last-child","last-of-type","left","link","marker","modal","not","nth-child","nth-last-child","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","part","placeholder","placeholder-shown","read-only","read-write","required","right","root","scope","selection","slotted","target","target-text","valid","visited","where"].map(t=>({type:"class",label:t})),EO=["above","absolute","activeborder","additive","activecaption","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","antialiased","appworkspace","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic-abegede-gez","ethiopic-halehame-aa-er","ethiopic-halehame-gez","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","graytext","grid","groove","hand","hard-light","help","hidden","hide","higher","highlight","highlighttext","horizontal","hsl","hsla","hue","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","justify","keep-all","landscape","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-hexadecimal","lower-latin","lower-norwegian","lowercase","ltr","luminosity","manipulation","match","matrix","matrix3d","medium","menu","menutext","message-box","middle","min-intrinsic","mix","monospace","move","multiple","multiple_mask_images","multiply","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","opacity","open-quote","optimizeLegibility","optimizeSpeed","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","text","text-bottom","text-top","textarea","textfield","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","to","top","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-latin","uppercase","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"].map(t=>({type:"keyword",label:t})).concat(["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"].map(t=>({type:"constant",label:t}))),oa=["a","abbr","address","article","aside","b","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","dd","del","details","dfn","dialog","div","dl","dt","em","figcaption","figure","footer","form","header","hgroup","h1","h2","h3","h4","h5","h6","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","meter","nav","ol","output","p","pre","ruby","section","select","small","source","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","tr","u","ul"].map(t=>({type:"type",label:t})),k=/^[\w-]*/,la=t=>{let{state:O,pos:e}=t,a=z(O).resolveInner(e,-1);if(a.name=="PropertyName")return{from:a.from,options:tO(),validFor:k};if(a.name=="ValueName")return{from:a.from,options:EO,validFor:k};if(a.name=="PseudoClassName")return{from:a.from,options:VO,validFor:k};if(a.name=="TagName"){for(let{parent:s}=a;s;s=s.parent)if(s.name=="Block")return{from:a.from,options:tO(),validFor:k};return{from:a.from,options:oa,validFor:k}}if(!t.explicit)return null;let i=a.resolve(e),r=i.childBefore(e);return r&&r.name==":"&&i.name=="PseudoClassSelector"?{from:e,options:VO,validFor:k}:r&&r.name==":"&&i.name=="Declaration"||i.name=="ArgList"?{from:e,options:EO,validFor:k}:i.name=="Block"?{from:e,options:tO(),validFor:k}:null},nO=cO.define({name:"css",parser:na.configure({props:[uO.add({Declaration:V()}),dO.add({Block:HO})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"}},indentOnInput:/^\s*\}$/,wordChars:"-"}});function Qa(){return new hO(nO,nO.data.of({autocomplete:la}))}const ca=1,IO=281,AO=2,ua=3,U=282,da=4,ha=283,NO=284,$a=286,pa=287,fa=5,ga=6,ma=1,Ta=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],ce=125,Sa=123,ba=59,DO=47,Pa=42,Ra=43,ka=45,xa=36,Xa=96,ya=92,Za=new Oe({start:!1,shift(t,O){return O==fa||O==ga||O==$a?t:O==pa},strict:!1}),Wa=new b((t,O)=>{let{next:e}=t;(e==ce||e==-1||O.context)&&O.canShift(NO)&&t.acceptToken(NO)},{contextual:!0,fallback:!0}),ja=new b((t,O)=>{let{next:e}=t,a;Ta.indexOf(e)>-1||e==DO&&((a=t.peek(1))==DO||a==Pa)||e!=ce&&e!=ba&&e!=-1&&!O.context&&O.canShift(IO)&&t.acceptToken(IO)},{contextual:!0}),wa=new b((t,O)=>{let{next:e}=t;if((e==Ra||e==ka)&&(t.advance(),e==t.next)){t.advance();let a=!O.context&&O.canShift(AO);t.acceptToken(a?AO:ua)}},{contextual:!0}),_a=new b(t=>{for(let O=!1,e=0;;e++){let{next:a}=t;if(a<0){e&&t.acceptToken(U);break}else if(a==Xa){e?t.acceptToken(U):t.acceptToken(ha,1);break}else if(a==Sa&&O){e==1?t.acceptToken(da,1):t.acceptToken(U,-1);break}else if(a==10&&e){t.advance(),t.acceptToken(U);break}else a==ya&&t.advance();O=a==xa,t.advance()}}),va=new b((t,O)=>{if(!(t.next!=101||!O.dialectEnabled(ma))){t.advance();for(let e=0;e<6;e++){if(t.next!="xtends".charCodeAt(e))return;t.advance()}t.next>=57&&t.next<=65||t.next>=48&&t.next<=90||t.next==95||t.next>=97&&t.next<=122||t.next>160||t.acceptToken(ca)}}),qa=QO({"get set async static":o.modifier,"for while do if else switch try catch finally return throw break continue default case":o.controlKeyword,"in of await yield void typeof delete instanceof":o.operatorKeyword,"let var const function class extends":o.definitionKeyword,"import export from":o.moduleKeyword,"with debugger as new":o.keyword,TemplateString:o.special(o.string),super:o.atom,BooleanLiteral:o.bool,this:o.self,null:o.null,Star:o.modifier,VariableName:o.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":o.function(o.variableName),VariableDefinition:o.definition(o.variableName),Label:o.labelName,PropertyName:o.propertyName,PrivatePropertyName:o.special(o.propertyName),"CallExpression/MemberExpression/PropertyName":o.function(o.propertyName),"FunctionDeclaration/VariableDefinition":o.function(o.definition(o.variableName)),"ClassDeclaration/VariableDefinition":o.definition(o.className),PropertyDefinition:o.definition(o.propertyName),PrivatePropertyDefinition:o.definition(o.special(o.propertyName)),UpdateOp:o.updateOperator,LineComment:o.lineComment,BlockComment:o.blockComment,Number:o.number,String:o.string,ArithOp:o.arithmeticOperator,LogicOp:o.logicOperator,BitOp:o.bitwiseOperator,CompareOp:o.compareOperator,RegExp:o.regexp,Equals:o.definitionOperator,Arrow:o.function(o.punctuation),": Spread":o.punctuation,"( )":o.paren,"[ ]":o.squareBracket,"{ }":o.brace,"InterpolationStart InterpolationEnd":o.special(o.brace),".":o.derefOperator,", ;":o.separator,TypeName:o.typeName,TypeDefinition:o.definition(o.typeName),"type enum interface implements namespace module declare":o.definitionKeyword,"abstract global Privacy readonly override":o.modifier,"is keyof unique infer":o.operatorKeyword,JSXAttributeValue:o.attributeValue,JSXText:o.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":o.angleBracket,"JSXIdentifier JSXNameSpacedName":o.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":o.attributeName}),za={__proto__:null,export:18,as:23,from:29,default:32,async:37,function:38,this:48,true:56,false:56,void:66,typeof:70,null:86,super:88,new:122,await:139,yield:141,delete:142,class:152,extends:154,public:197,private:197,protected:197,readonly:199,instanceof:220,in:222,const:224,import:256,keyof:307,unique:311,infer:317,is:351,abstract:371,implements:373,type:375,let:378,var:380,interface:387,enum:391,namespace:397,module:399,declare:403,global:407,for:428,of:437,while:440,with:444,do:448,if:452,else:454,switch:458,case:464,try:470,catch:474,finally:478,return:482,throw:486,break:490,continue:494,debugger:498},Ga={__proto__:null,async:109,get:111,set:113,public:161,private:161,protected:161,static:163,abstract:165,override:167,readonly:173,new:355},Ca={__proto__:null,"<":129},Ua=y.deserialize({version:14,states:"$8SO`QdOOO'QQ(C|O'#ChO'XOWO'#DVO)dQdO'#D]O)tQdO'#DhO){QdO'#DrO-xQdO'#DxOOQO'#E]'#E]O.]Q`O'#E[O.bQ`O'#E[OOQ(C['#Ef'#EfO0aQ(C|O'#ItO2wQ(C|O'#IuO3eQ`O'#EzO3jQ!bO'#FaOOQ(C['#FS'#FSO3rO#tO'#FSO4QQ&jO'#FhO5bQ`O'#FgOOQ(C['#Iu'#IuOOQ(CW'#It'#ItOOQS'#J^'#J^O5gQ`O'#HpO5lQ(ChO'#HqOOQS'#Ih'#IhOOQS'#Hr'#HrQ`QdOOO){QdO'#DjO5tQ`O'#G[O5yQ&jO'#CmO6XQ`O'#EZO6dQ`O'#EgO6iQ,UO'#FRO7TQ`O'#G[O7YQ`O'#G`O7eQ`O'#G`O7sQ`O'#GcO7sQ`O'#GdO7sQ`O'#GfO5tQ`O'#GiO8dQ`O'#GlO9rQ`O'#CdO:SQ`O'#GyO:[Q`O'#HPO:[Q`O'#HRO`QdO'#HTO:[Q`O'#HVO:[Q`O'#HYO:aQ`O'#H`O:fQ(CjO'#HfO){QdO'#HhO:qQ(CjO'#HjO:|Q(CjO'#H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-})]Q2U.RQ2|.{Q4{2TQ5l3QQ6t4}Q7U5kQ7y6zQ8S7WR8i8TlhOSj}!n$]%c%f%g%i*o*t/g/jQ%]yR*d%YV$yrs*mR.u*TR*c%WQ$qpR)u$rR)k$lT%az%dT%bz%dT/i*t/j",nodeNames:"\u26A0 extends ArithOp ArithOp InterpolationStart LineComment BlockComment Script ExportDeclaration export Star as VariableName String from ; default FunctionDeclaration async function VariableDefinition TypeParamList TypeDefinition ThisType this LiteralType ArithOp Number BooleanLiteral TemplateType InterpolationEnd Interpolation VoidType void TypeofType typeof MemberExpression . ?. PropertyName [ TemplateString Interpolation null super RegExp ] ArrayExpression Spread , } { ObjectExpression Property async get set PropertyDefinition Block : NewExpression new TypeArgList CompareOp < ) ( ArgList UnaryExpression await yield delete LogicOp BitOp ParenthesizedExpression ClassExpression class extends ClassBody MethodDeclaration Privacy static abstract override PrivatePropertyDefinition PropertyDeclaration readonly Optional TypeAnnotation Equals StaticBlock FunctionExpression ArrowFunction ParamList ParamList ArrayPattern ObjectPattern PatternProperty Privacy readonly Arrow MemberExpression PrivatePropertyName BinaryExpression ArithOp ArithOp ArithOp ArithOp BitOp CompareOp instanceof in const CompareOp BitOp BitOp BitOp LogicOp LogicOp ConditionalExpression LogicOp LogicOp AssignmentExpression UpdateOp PostfixExpression CallExpression TaggedTemplateExpression DynamicImport import ImportMeta JSXElement JSXSelfCloseEndTag JSXStartTag JSXSelfClosingTag JSXIdentifier JSXNamespacedName JSXMemberExpression JSXSpreadAttribute JSXAttribute JSXAttributeValue JSXEscape JSXEndTag JSXOpenTag JSXFragmentTag JSXText JSXEscape JSXStartCloseTag JSXCloseTag PrefixCast ArrowFunction TypeParamList SequenceExpression KeyofType keyof UniqueType unique ImportType InferredType infer TypeName ParenthesizedType FunctionSignature ParamList NewSignature IndexedType TupleType Label ArrayType ReadonlyType ObjectType MethodType PropertyType IndexSignature CallSignature TypePredicate is NewSignature new UnionType LogicOp IntersectionType LogicOp ConditionalType ParameterizedType ClassDeclaration abstract implements type VariableDeclaration let var TypeAliasDeclaration InterfaceDeclaration interface EnumDeclaration enum EnumBody NamespaceDeclaration namespace module AmbientDeclaration declare GlobalDeclaration global ClassDeclaration ClassBody MethodDeclaration AmbientFunctionDeclaration ExportGroup VariableName VariableName ImportDeclaration ImportGroup ForStatement for ForSpec ForInSpec ForOfSpec of WhileStatement while WithStatement with DoStatement do IfStatement if else SwitchStatement switch SwitchBody CaseLabel case DefaultLabel TryStatement try CatchClause catch FinallyClause finally ReturnStatement return ThrowStatement throw BreakStatement break ContinueStatement continue DebuggerStatement debugger LabeledStatement ExpressionStatement",maxTerm:332,context:Za,nodeProps:[["closedBy",4,"InterpolationEnd",40,"]",51,"}",66,")",132,"JSXSelfCloseEndTag JSXEndTag",146,"JSXEndTag"],["group",-26,8,15,17,58,184,188,191,192,194,197,200,211,213,219,221,223,225,228,234,240,242,244,246,248,250,251,"Statement",-30,12,13,24,27,28,41,43,44,45,47,52,60,68,74,75,91,92,101,103,119,122,124,125,126,127,129,130,148,149,151,"Expression",-22,23,25,29,32,34,152,154,156,157,159,160,161,163,164,165,167,168,169,178,180,182,183,"Type",-3,79,85,90,"ClassItem"],["openedBy",30,"InterpolationStart",46,"[",50,"{",65,"(",131,"JSXStartTag",141,"JSXStartTag JSXStartCloseTag"]],propSources:[qa],skippedNodes:[0,5,6],repeatNodeCount:28,tokenData:"!C}~R!`OX%TXY%cYZ'RZ[%c[]%T]^'R^p%Tpq%cqr'crs(kst0htu2`uv4pvw5ewx6cxyk|}?O}!O>k!O!P?`!P!QCl!Q!R!0[!R![!1q![!]!7s!]!^!8V!^!_!8g!_!`!9d!`!a!:[!a!b!U#R#S2`#S#T!>i#T#o2`#o#p!>y#p#q!?O#q#r!?f#r#s!?x#s$f%T$f$g%c$g#BY2`#BY#BZ!@Y#BZ$IS2`$IS$I_!@Y$I_$I|2`$I|$I}!Bq$I}$JO!Bq$JO$JT2`$JT$JU!@Y$JU$KV2`$KV$KW!@Y$KW&FU2`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y?HU~2`7Z!CO_$UW'Z7R#zS']$y'g3SOt%Ttu2`u}%T}!O3j!O!Q%T!Q![2`![!^%T!_!c%T!c!}2`!}#R%T#R#S2`#S#T%T#T#o2`#p$g%T$g~2`",tokenizers:[va,ja,wa,_a,0,1,2,3,4,5,6,7,8,9,Wa],topRules:{Script:[0,7]},dialects:{jsx:12107,ts:12109},dynamicPrecedences:{149:1,176:1},specialized:[{term:289,get:t=>za[t]||-1},{term:299,get:t=>Ga[t]||-1},{term:63,get:t=>Ca[t]||-1}],tokenPrec:12130}),Ya=[T("function ${name}(${params}) {\n ${}\n}",{label:"function",detail:"definition",type:"keyword"}),T("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n ${}\n}",{label:"for",detail:"loop",type:"keyword"}),T("for (let ${name} of ${collection}) {\n ${}\n}",{label:"for",detail:"of loop",type:"keyword"}),T("do {\n ${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),T("while (${}) {\n ${}\n}",{label:"while",detail:"loop",type:"keyword"}),T(`try { \${} } catch (\${error}) { \${} diff --git a/ui/dist/assets/ConfirmEmailChangeDocs.0db1c53f.js b/ui/dist/assets/ConfirmEmailChangeDocs.4643c758.js similarity index 98% rename from ui/dist/assets/ConfirmEmailChangeDocs.0db1c53f.js rename to ui/dist/assets/ConfirmEmailChangeDocs.4643c758.js index 537666fd8..a87fdfe2e 100644 --- a/ui/dist/assets/ConfirmEmailChangeDocs.0db1c53f.js +++ b/ui/dist/assets/ConfirmEmailChangeDocs.4643c758.js @@ -1,4 +1,4 @@ -import{S as Ge,i as Xe,s as Ze,O as ze,e as s,w as m,b as p,c as be,f as b,g as r,h as l,m as he,x as j,P as Ye,Q as et,k as tt,R as lt,n as ot,t as I,a as J,o as c,d as _e,L as at,C as je,p as st,r as Q,u as nt}from"./index.7b2502cb.js";import{S as it}from"./SdkTabs.315f7f19.js";function Ie(i,o,a){const n=i.slice();return n[5]=o[a],n}function Je(i,o,a){const n=i.slice();return n[5]=o[a],n}function Qe(i,o){let a,n=o[5].code+"",k,v,d,u;function h(){return o[4](o[5])}return{key:i,first:null,c(){a=s("button"),k=m(n),v=p(),b(a,"class","tab-item"),Q(a,"active",o[1]===o[5].code),this.first=a},m(C,$){r(C,a,$),l(a,k),l(a,v),d||(u=nt(a,"click",h),d=!0)},p(C,$){o=C,$&4&&n!==(n=o[5].code+"")&&j(k,n),$&6&&Q(a,"active",o[1]===o[5].code)},d(C){C&&c(a),d=!1,u()}}}function xe(i,o){let a,n,k,v;return n=new ze({props:{content:o[5].body}}),{key:i,first:null,c(){a=s("div"),be(n.$$.fragment),k=p(),b(a,"class","tab-item"),Q(a,"active",o[1]===o[5].code),this.first=a},m(d,u){r(d,a,u),he(n,a,null),l(a,k),v=!0},p(d,u){o=d;const h={};u&4&&(h.content=o[5].body),n.$set(h),(!v||u&6)&&Q(a,"active",o[1]===o[5].code)},i(d){v||(I(n.$$.fragment,d),v=!0)},o(d){J(n.$$.fragment,d),v=!1},d(d){d&&c(a),_e(n)}}}function rt(i){var We,He;let o,a,n=i[0].name+"",k,v,d,u,h,C,$,W=i[0].name+"",x,ke,ve,z,G,y,X,D,Z,w,H,Se,L,A,ge,ee,V=i[0].name+"",te,Ce,le,B,oe,q,ae,U,se,O,ne,$e,ie,T,re,ye,ce,we,_,Oe,E,Te,Pe,Re,de,Ee,pe,De,Ae,Be,ue,qe,fe,M,me,P,N,g=[],Ue=new Map,Me,F,S=[],Ne=new Map,R;y=new it({props:{js:` +import{S as Ge,i as Xe,s as Ze,O as ze,e as s,w as m,b as p,c as be,f as b,g as r,h as l,m as he,x as j,P as Ye,Q as et,k as tt,R as lt,n as ot,t as I,a as J,o as c,d as _e,L as at,C as je,p as st,r as Q,u as nt}from"./index.be8ffbe5.js";import{S as it}from"./SdkTabs.8f55857f.js";function Ie(i,o,a){const n=i.slice();return n[5]=o[a],n}function Je(i,o,a){const n=i.slice();return n[5]=o[a],n}function Qe(i,o){let a,n=o[5].code+"",k,v,d,u;function h(){return o[4](o[5])}return{key:i,first:null,c(){a=s("button"),k=m(n),v=p(),b(a,"class","tab-item"),Q(a,"active",o[1]===o[5].code),this.first=a},m(C,$){r(C,a,$),l(a,k),l(a,v),d||(u=nt(a,"click",h),d=!0)},p(C,$){o=C,$&4&&n!==(n=o[5].code+"")&&j(k,n),$&6&&Q(a,"active",o[1]===o[5].code)},d(C){C&&c(a),d=!1,u()}}}function xe(i,o){let a,n,k,v;return n=new ze({props:{content:o[5].body}}),{key:i,first:null,c(){a=s("div"),be(n.$$.fragment),k=p(),b(a,"class","tab-item"),Q(a,"active",o[1]===o[5].code),this.first=a},m(d,u){r(d,a,u),he(n,a,null),l(a,k),v=!0},p(d,u){o=d;const h={};u&4&&(h.content=o[5].body),n.$set(h),(!v||u&6)&&Q(a,"active",o[1]===o[5].code)},i(d){v||(I(n.$$.fragment,d),v=!0)},o(d){J(n.$$.fragment,d),v=!1},d(d){d&&c(a),_e(n)}}}function rt(i){var We,He;let o,a,n=i[0].name+"",k,v,d,u,h,C,$,W=i[0].name+"",x,ke,ve,z,G,y,X,D,Z,w,H,Se,L,A,ge,ee,V=i[0].name+"",te,Ce,le,B,oe,q,ae,U,se,O,ne,$e,ie,T,re,ye,ce,we,_,Oe,E,Te,Pe,Re,de,Ee,pe,De,Ae,Be,ue,qe,fe,M,me,P,N,g=[],Ue=new Map,Me,F,S=[],Ne=new Map,R;y=new it({props:{js:` import PocketBase from 'pocketbase'; const pb = new PocketBase('${i[3]}'); diff --git a/ui/dist/assets/ConfirmPasswordResetDocs.1392cd93.js b/ui/dist/assets/ConfirmPasswordResetDocs.242b72e8.js similarity index 98% rename from ui/dist/assets/ConfirmPasswordResetDocs.1392cd93.js rename to ui/dist/assets/ConfirmPasswordResetDocs.242b72e8.js index d962ff96f..8be049f26 100644 --- a/ui/dist/assets/ConfirmPasswordResetDocs.1392cd93.js +++ b/ui/dist/assets/ConfirmPasswordResetDocs.242b72e8.js @@ -1,4 +1,4 @@ -import{S as Xe,i as Ye,s as Ze,O as Ge,e as a,w as b,b as p,c as me,f as m,g as r,h as l,m as he,x as j,P as Ue,Q as et,k as tt,R as lt,n as st,t as J,a as Q,o as d,d as _e,L as ot,C as je,p as at,r as x,u as nt}from"./index.7b2502cb.js";import{S as it}from"./SdkTabs.315f7f19.js";function Je(i,s,o){const n=i.slice();return n[5]=s[o],n}function Qe(i,s,o){const n=i.slice();return n[5]=s[o],n}function xe(i,s){let o,n=s[5].code+"",k,S,c,f;function h(){return s[4](s[5])}return{key:i,first:null,c(){o=a("button"),k=b(n),S=p(),m(o,"class","tab-item"),x(o,"active",s[1]===s[5].code),this.first=o},m(P,R){r(P,o,R),l(o,k),l(o,S),c||(f=nt(o,"click",h),c=!0)},p(P,R){s=P,R&4&&n!==(n=s[5].code+"")&&j(k,n),R&6&&x(o,"active",s[1]===s[5].code)},d(P){P&&d(o),c=!1,f()}}}function ze(i,s){let o,n,k,S;return n=new Ge({props:{content:s[5].body}}),{key:i,first:null,c(){o=a("div"),me(n.$$.fragment),k=p(),m(o,"class","tab-item"),x(o,"active",s[1]===s[5].code),this.first=o},m(c,f){r(c,o,f),he(n,o,null),l(o,k),S=!0},p(c,f){s=c;const h={};f&4&&(h.content=s[5].body),n.$set(h),(!S||f&6)&&x(o,"active",s[1]===s[5].code)},i(c){S||(J(n.$$.fragment,c),S=!0)},o(c){Q(n.$$.fragment,c),S=!1},d(c){c&&d(o),_e(n)}}}function rt(i){var Ke,He;let s,o,n=i[0].name+"",k,S,c,f,h,P,R,K=i[0].name+"",z,ke,Se,G,X,g,Y,W,Z,C,H,ve,L,D,we,ee,V=i[0].name+"",te,Pe,le,E,se,A,oe,M,ae,$,ne,Re,ie,y,re,ge,de,Ce,_,$e,T,ye,Oe,Ne,ce,Te,pe,We,De,Ee,fe,Ae,ue,F,be,O,q,w=[],Me=new Map,Fe,B,v=[],qe=new Map,N;g=new it({props:{js:` +import{S as Xe,i as Ye,s as Ze,O as Ge,e as a,w as b,b as p,c as me,f as m,g as r,h as l,m as he,x as j,P as Ue,Q as et,k as tt,R as lt,n as st,t as J,a as Q,o as d,d as _e,L as ot,C as je,p as at,r as x,u as nt}from"./index.be8ffbe5.js";import{S as it}from"./SdkTabs.8f55857f.js";function Je(i,s,o){const n=i.slice();return n[5]=s[o],n}function Qe(i,s,o){const n=i.slice();return n[5]=s[o],n}function xe(i,s){let o,n=s[5].code+"",k,S,c,f;function h(){return s[4](s[5])}return{key:i,first:null,c(){o=a("button"),k=b(n),S=p(),m(o,"class","tab-item"),x(o,"active",s[1]===s[5].code),this.first=o},m(P,R){r(P,o,R),l(o,k),l(o,S),c||(f=nt(o,"click",h),c=!0)},p(P,R){s=P,R&4&&n!==(n=s[5].code+"")&&j(k,n),R&6&&x(o,"active",s[1]===s[5].code)},d(P){P&&d(o),c=!1,f()}}}function ze(i,s){let o,n,k,S;return n=new Ge({props:{content:s[5].body}}),{key:i,first:null,c(){o=a("div"),me(n.$$.fragment),k=p(),m(o,"class","tab-item"),x(o,"active",s[1]===s[5].code),this.first=o},m(c,f){r(c,o,f),he(n,o,null),l(o,k),S=!0},p(c,f){s=c;const h={};f&4&&(h.content=s[5].body),n.$set(h),(!S||f&6)&&x(o,"active",s[1]===s[5].code)},i(c){S||(J(n.$$.fragment,c),S=!0)},o(c){Q(n.$$.fragment,c),S=!1},d(c){c&&d(o),_e(n)}}}function rt(i){var Ke,He;let s,o,n=i[0].name+"",k,S,c,f,h,P,R,K=i[0].name+"",z,ke,Se,G,X,g,Y,W,Z,C,H,ve,L,D,we,ee,V=i[0].name+"",te,Pe,le,E,se,A,oe,M,ae,$,ne,Re,ie,y,re,ge,de,Ce,_,$e,T,ye,Oe,Ne,ce,Te,pe,We,De,Ee,fe,Ae,ue,F,be,O,q,w=[],Me=new Map,Fe,B,v=[],qe=new Map,N;g=new it({props:{js:` import PocketBase from 'pocketbase'; const pb = new PocketBase('${i[3]}'); diff --git a/ui/dist/assets/ConfirmVerificationDocs.01e1aa0b.js b/ui/dist/assets/ConfirmVerificationDocs.c8ffdb27.js similarity index 98% rename from ui/dist/assets/ConfirmVerificationDocs.01e1aa0b.js rename to ui/dist/assets/ConfirmVerificationDocs.c8ffdb27.js index a7ed93faf..4a76de70a 100644 --- a/ui/dist/assets/ConfirmVerificationDocs.01e1aa0b.js +++ b/ui/dist/assets/ConfirmVerificationDocs.c8ffdb27.js @@ -1,4 +1,4 @@ -import{S as Ye,i as Ze,s as xe,O as Xe,e as a,w as b,b as f,c as me,f as m,g as r,h as l,m as he,x as J,P as Ie,Q as et,k as tt,R as lt,n as ot,t as Q,a as W,o as c,d as _e,L as st,C as Je,p as at,r as z,u as nt}from"./index.7b2502cb.js";import{S as it}from"./SdkTabs.315f7f19.js";function Qe(i,o,s){const n=i.slice();return n[5]=o[s],n}function We(i,o,s){const n=i.slice();return n[5]=o[s],n}function ze(i,o){let s,n=o[5].code+"",k,v,d,p;function h(){return o[4](o[5])}return{key:i,first:null,c(){s=a("button"),k=b(n),v=f(),m(s,"class","tab-item"),z(s,"active",o[1]===o[5].code),this.first=s},m(y,g){r(y,s,g),l(s,k),l(s,v),d||(p=nt(s,"click",h),d=!0)},p(y,g){o=y,g&4&&n!==(n=o[5].code+"")&&J(k,n),g&6&&z(s,"active",o[1]===o[5].code)},d(y){y&&c(s),d=!1,p()}}}function Ge(i,o){let s,n,k,v;return n=new Xe({props:{content:o[5].body}}),{key:i,first:null,c(){s=a("div"),me(n.$$.fragment),k=f(),m(s,"class","tab-item"),z(s,"active",o[1]===o[5].code),this.first=s},m(d,p){r(d,s,p),he(n,s,null),l(s,k),v=!0},p(d,p){o=d;const h={};p&4&&(h.content=o[5].body),n.$set(h),(!v||p&6)&&z(s,"active",o[1]===o[5].code)},i(d){v||(Q(n.$$.fragment,d),v=!0)},o(d){W(n.$$.fragment,d),v=!1},d(d){d&&c(s),_e(n)}}}function rt(i){var He,Le;let o,s,n=i[0].name+"",k,v,d,p,h,y,g,H=i[0].name+"",G,ke,ve,X,Y,w,Z,D,x,C,L,Se,U,E,$e,ee,j=i[0].name+"",te,ye,le,q,oe,M,se,N,ae,T,ne,ge,ie,P,re,we,ce,Ce,_,Te,B,Pe,Oe,Ve,de,Be,fe,De,Ee,qe,pe,Me,ue,R,be,O,F,$=[],Ne=new Map,Re,K,S=[],Fe=new Map,V;w=new it({props:{js:` +import{S as Ye,i as Ze,s as xe,O as Xe,e as a,w as b,b as f,c as me,f as m,g as r,h as l,m as he,x as J,P as Ie,Q as et,k as tt,R as lt,n as ot,t as Q,a as W,o as c,d as _e,L as st,C as Je,p as at,r as z,u as nt}from"./index.be8ffbe5.js";import{S as it}from"./SdkTabs.8f55857f.js";function Qe(i,o,s){const n=i.slice();return n[5]=o[s],n}function We(i,o,s){const n=i.slice();return n[5]=o[s],n}function ze(i,o){let s,n=o[5].code+"",k,v,d,p;function h(){return o[4](o[5])}return{key:i,first:null,c(){s=a("button"),k=b(n),v=f(),m(s,"class","tab-item"),z(s,"active",o[1]===o[5].code),this.first=s},m(y,g){r(y,s,g),l(s,k),l(s,v),d||(p=nt(s,"click",h),d=!0)},p(y,g){o=y,g&4&&n!==(n=o[5].code+"")&&J(k,n),g&6&&z(s,"active",o[1]===o[5].code)},d(y){y&&c(s),d=!1,p()}}}function Ge(i,o){let s,n,k,v;return n=new Xe({props:{content:o[5].body}}),{key:i,first:null,c(){s=a("div"),me(n.$$.fragment),k=f(),m(s,"class","tab-item"),z(s,"active",o[1]===o[5].code),this.first=s},m(d,p){r(d,s,p),he(n,s,null),l(s,k),v=!0},p(d,p){o=d;const h={};p&4&&(h.content=o[5].body),n.$set(h),(!v||p&6)&&z(s,"active",o[1]===o[5].code)},i(d){v||(Q(n.$$.fragment,d),v=!0)},o(d){W(n.$$.fragment,d),v=!1},d(d){d&&c(s),_e(n)}}}function rt(i){var He,Le;let o,s,n=i[0].name+"",k,v,d,p,h,y,g,H=i[0].name+"",G,ke,ve,X,Y,w,Z,D,x,C,L,Se,U,E,$e,ee,j=i[0].name+"",te,ye,le,q,oe,M,se,N,ae,T,ne,ge,ie,P,re,we,ce,Ce,_,Te,B,Pe,Oe,Ve,de,Be,fe,De,Ee,qe,pe,Me,ue,R,be,O,F,$=[],Ne=new Map,Re,K,S=[],Fe=new Map,V;w=new it({props:{js:` import PocketBase from 'pocketbase'; const pb = new PocketBase('${i[3]}'); diff --git a/ui/dist/assets/CreateApiDocs.f27be4a3.js b/ui/dist/assets/CreateApiDocs.5b22060b.js similarity index 99% rename from ui/dist/assets/CreateApiDocs.f27be4a3.js rename to ui/dist/assets/CreateApiDocs.5b22060b.js index 2b08bda43..df8ae9302 100644 --- a/ui/dist/assets/CreateApiDocs.f27be4a3.js +++ b/ui/dist/assets/CreateApiDocs.5b22060b.js @@ -1,4 +1,4 @@ -import{S as Ct,i as St,s as Tt,C as Q,O as wt,e as a,w as k,b,c as Pe,f as h,g as o,h as n,m as Re,x as Z,P as Ae,Q as pt,k as $t,R as Ot,n as Mt,t as fe,a as pe,o as r,d as ge,L as Lt,p as Ht,r as ue,u as qt,y as le}from"./index.7b2502cb.js";import{S as At}from"./SdkTabs.315f7f19.js";function ut(d,e,l){const s=d.slice();return s[7]=e[l],s}function bt(d,e,l){const s=d.slice();return s[7]=e[l],s}function mt(d,e,l){const s=d.slice();return s[12]=e[l],s}function _t(d){let e;return{c(){e=a("p"),e.innerHTML="Requires admin Authorization:TOKEN header",h(e,"class","txt-hint txt-sm txt-right")},m(l,s){o(l,e,s)},d(l){l&&r(e)}}}function kt(d){let e,l,s,m,p,c,f,y,$,w,M,F,D,I,A,J,j,g,S,N,O,C,_;function L(u,T){var ee,z;return(z=(ee=u[0])==null?void 0:ee.options)!=null&&z.requireEmail?Rt:Pt}let x=L(d),P=x(d);return{c(){e=a("tr"),e.innerHTML='Auth fields',l=b(),s=a("tr"),s.innerHTML=`
Optional +import{S as Ct,i as St,s as Tt,C as Q,O as wt,e as a,w as k,b,c as Pe,f as h,g as o,h as n,m as Re,x as Z,P as Ae,Q as pt,k as $t,R as Ot,n as Mt,t as fe,a as pe,o as r,d as ge,L as Lt,p as Ht,r as ue,u as qt,y as le}from"./index.be8ffbe5.js";import{S as At}from"./SdkTabs.8f55857f.js";function ut(d,e,l){const s=d.slice();return s[7]=e[l],s}function bt(d,e,l){const s=d.slice();return s[7]=e[l],s}function mt(d,e,l){const s=d.slice();return s[12]=e[l],s}function _t(d){let e;return{c(){e=a("p"),e.innerHTML="Requires admin Authorization:TOKEN header",h(e,"class","txt-hint txt-sm txt-right")},m(l,s){o(l,e,s)},d(l){l&&r(e)}}}function kt(d){let e,l,s,m,p,c,f,y,$,w,M,F,D,I,A,J,j,g,S,N,O,C,_;function L(u,T){var ee,z;return(z=(ee=u[0])==null?void 0:ee.options)!=null&&z.requireEmail?Rt:Pt}let x=L(d),P=x(d);return{c(){e=a("tr"),e.innerHTML='Auth fields',l=b(),s=a("tr"),s.innerHTML=`
Optional username
String The username of the auth record. diff --git a/ui/dist/assets/DeleteApiDocs.01e6e599.js b/ui/dist/assets/DeleteApiDocs.459334be.js similarity index 97% rename from ui/dist/assets/DeleteApiDocs.01e6e599.js rename to ui/dist/assets/DeleteApiDocs.459334be.js index f7aa088cd..483cf345e 100644 --- a/ui/dist/assets/DeleteApiDocs.01e6e599.js +++ b/ui/dist/assets/DeleteApiDocs.459334be.js @@ -1,4 +1,4 @@ -import{S as Ce,i as Re,s as Pe,e as c,w as D,b as k,c as $e,f as m,g as d,h as n,m as we,x,P as _e,Q as Ee,k as Oe,R as Te,n as Be,t as ee,a as te,o as f,d as ge,L as Ie,C as Ae,p as Me,r as z,u as Se,O as qe}from"./index.7b2502cb.js";import{S as Le}from"./SdkTabs.315f7f19.js";function ke(o,l,s){const a=o.slice();return a[6]=l[s],a}function he(o,l,s){const a=o.slice();return a[6]=l[s],a}function ve(o){let l;return{c(){l=c("p"),l.innerHTML="Requires admin Authorization:TOKEN header",m(l,"class","txt-hint txt-sm txt-right")},m(s,a){d(s,l,a)},d(s){s&&f(l)}}}function ye(o,l){let s,a=l[6].code+"",h,i,r,u;function $(){return l[5](l[6])}return{key:o,first:null,c(){s=c("button"),h=D(a),i=k(),m(s,"class","tab-item"),z(s,"active",l[2]===l[6].code),this.first=s},m(b,g){d(b,s,g),n(s,h),n(s,i),r||(u=Se(s,"click",$),r=!0)},p(b,g){l=b,g&20&&z(s,"active",l[2]===l[6].code)},d(b){b&&f(s),r=!1,u()}}}function De(o,l){let s,a,h,i;return a=new qe({props:{content:l[6].body}}),{key:o,first:null,c(){s=c("div"),$e(a.$$.fragment),h=k(),m(s,"class","tab-item"),z(s,"active",l[2]===l[6].code),this.first=s},m(r,u){d(r,s,u),we(a,s,null),n(s,h),i=!0},p(r,u){l=r,(!i||u&20)&&z(s,"active",l[2]===l[6].code)},i(r){i||(ee(a.$$.fragment,r),i=!0)},o(r){te(a.$$.fragment,r),i=!1},d(r){r&&f(s),ge(a)}}}function He(o){var ue,pe;let l,s,a=o[0].name+"",h,i,r,u,$,b,g,q=o[0].name+"",F,le,K,C,N,O,Q,y,L,se,H,E,oe,G,U=o[0].name+"",J,ae,V,ne,W,T,X,B,Y,I,Z,R,A,w=[],ie=new Map,re,M,v=[],ce=new Map,P;C=new Le({props:{js:` +import{S as Ce,i as Re,s as Pe,e as c,w as D,b as k,c as $e,f as m,g as d,h as n,m as we,x,P as _e,Q as Ee,k as Oe,R as Te,n as Be,t as ee,a as te,o as f,d as ge,L as Ie,C as Ae,p as Me,r as z,u as Se,O as qe}from"./index.be8ffbe5.js";import{S as Le}from"./SdkTabs.8f55857f.js";function ke(o,l,s){const a=o.slice();return a[6]=l[s],a}function he(o,l,s){const a=o.slice();return a[6]=l[s],a}function ve(o){let l;return{c(){l=c("p"),l.innerHTML="Requires admin Authorization:TOKEN header",m(l,"class","txt-hint txt-sm txt-right")},m(s,a){d(s,l,a)},d(s){s&&f(l)}}}function ye(o,l){let s,a=l[6].code+"",h,i,r,u;function $(){return l[5](l[6])}return{key:o,first:null,c(){s=c("button"),h=D(a),i=k(),m(s,"class","tab-item"),z(s,"active",l[2]===l[6].code),this.first=s},m(b,g){d(b,s,g),n(s,h),n(s,i),r||(u=Se(s,"click",$),r=!0)},p(b,g){l=b,g&20&&z(s,"active",l[2]===l[6].code)},d(b){b&&f(s),r=!1,u()}}}function De(o,l){let s,a,h,i;return a=new qe({props:{content:l[6].body}}),{key:o,first:null,c(){s=c("div"),$e(a.$$.fragment),h=k(),m(s,"class","tab-item"),z(s,"active",l[2]===l[6].code),this.first=s},m(r,u){d(r,s,u),we(a,s,null),n(s,h),i=!0},p(r,u){l=r,(!i||u&20)&&z(s,"active",l[2]===l[6].code)},i(r){i||(ee(a.$$.fragment,r),i=!0)},o(r){te(a.$$.fragment,r),i=!1},d(r){r&&f(s),ge(a)}}}function He(o){var ue,pe;let l,s,a=o[0].name+"",h,i,r,u,$,b,g,q=o[0].name+"",F,le,K,C,N,O,Q,y,L,se,H,E,oe,G,U=o[0].name+"",J,ae,V,ne,W,T,X,B,Y,I,Z,R,A,w=[],ie=new Map,re,M,v=[],ce=new Map,P;C=new Le({props:{js:` import PocketBase from 'pocketbase'; const pb = new PocketBase('${o[3]}'); diff --git a/ui/dist/assets/FilterAutocompleteInput.a88dbdf1.js b/ui/dist/assets/FilterAutocompleteInput.66938328.js similarity index 99% rename from ui/dist/assets/FilterAutocompleteInput.a88dbdf1.js rename to ui/dist/assets/FilterAutocompleteInput.66938328.js index d17bee167..5a05e5fab 100644 --- a/ui/dist/assets/FilterAutocompleteInput.a88dbdf1.js +++ b/ui/dist/assets/FilterAutocompleteInput.66938328.js @@ -1 +1 @@ -import{S as z,i as Q,s as X,e as Y,f as Z,g as j,y as A,o as $,I as ee,J as te,K as ne,L as ie,M as oe,C as L,N as re}from"./index.7b2502cb.js";import{C as E,E as x,a as w,h as se,b as le,c as ae,d as ue,e as ce,s as fe,f as de,g as he,i as ge,r as pe,j as ye,k as me,l as be,m as ke,n as xe,o as we,p as Se,q as Ce,t as U,S as qe}from"./index.9c8b95cd.js";function Ke(t){V(t,"start");var i={},e=t.languageData||{},d=!1;for(var h in t)if(h!=e&&t.hasOwnProperty(h))for(var p=i[h]=[],s=t[h],r=0;r2&&s.token&&typeof s.token!="string"){e.pending=[];for(var c=2;c-1)return null;var h=e.indent.length-1,p=t[e.state];e:for(;;){for(var s=0;se(12,h=n));const p=ne();let{id:s=""}=i,{value:r=""}=i,{disabled:a=!1}=i,{placeholder:c=""}=i,{baseCollection:m=new ie}=i,{singleLine:S=!1}=i,{extraAutocompleteKeys:I=[]}=i,{disableRequestKeys:k=!1}=i,{disableIndirectCollectionsKeys:C=!1}=i,f,b,_=new E,M=new E,O=new E,B=new E;function v(){f==null||f.focus()}function P(n){let o=n.slice();return L.pushOrReplaceByKey(o,m,"id"),o}function F(){b==null||b.dispatchEvent(new CustomEvent("change",{detail:{value:r},bubbles:!0}))}function W(){if(!s)return;const n=document.querySelectorAll('[for="'+s+'"]');for(let o of n)o.removeEventListener("click",v)}function D(){if(!s)return;W();const n=document.querySelectorAll('[for="'+s+'"]');for(let o of n)o.addEventListener("click",v)}function R(n,o="",l=0){let y=d.find(g=>g.name==n||g.id==n);if(!y||l>=4)return[];let u=[o+"id",o+"created",o+"updated"];y.isAuth&&(u.push(o+"username"),u.push(o+"email"),u.push(o+"emailVisibility"),u.push(o+"verified"));for(const g of y.schema){const q=o+g.name;if(u.push(q),g.type==="relation"&&g.options.collectionId){const K=R(g.options.collectionId,q+".",l+1);K.length&&(u=u.concat(K))}}return u}function H(n=!0,o=!0){let l=[].concat(I);const y=R(m.name);for(const u of y)l.push(u);if(n&&(l.push("@request.method"),l.push("@request.query."),l.push("@request.data."),l.push("@request.auth."),l.push("@request.auth.id"),l.push("@request.auth.collectionId"),l.push("@request.auth.collectionName"),l.push("@request.auth.username"),l.push("@request.auth.email"),l.push("@request.auth.emailVisibility"),l.push("@request.auth.verified"),l.push("@request.auth.created"),l.push("@request.auth.updated")),n||o)for(const u of d){let g="";if(!o)continue;g="@collection."+u.name+".";const q=R(u.name,g);for(const K of q)l.push(K)}return l.sort(function(u,g){return g.length-u.length}),l}function G(n){let o=n.matchBefore(/[\'\"\@\w\.]*/);if(o&&o.from==o.to&&!n.explicit)return null;let l=[{label:"false"},{label:"true"},{label:"@now"}];C||l.push({label:"@collection.*",apply:"@collection."});const y=H(!k,!k&&o.text.startsWith("@c"));for(const u of y)l.push({label:u.endsWith(".")?u+"*":u,apply:u});return{from:o.from,options:l}}function J(){const n=[{regex:L.escapeRegExp("@now"),token:"keyword"}],o=H(!k,!C);for(const l of o){let y;l.endsWith(".")?y=L.escapeRegExp(l)+"\\w+[\\w.]*":y=L.escapeRegExp(l),n.push({regex:y,token:"keyword"})}return n}function N(){return qe.define(Ke({start:[{regex:/true|false|null/,token:"atom"},{regex:/"(?:[^\\]|\\.)*?(?:"|$)/,token:"string"},{regex:/'(?:[^\\]|\\.)*?(?:'|$)/,token:"string"},{regex:/0x[a-f\d]+|[-+]?(?:\.\d+|\d+\.?\d*)(?:e[-+]?\d+)?/i,token:"number"},{regex:/\&\&|\|\||\=|\!\=|\~|\!\~|\>|\<|\>\=|\<\=/,token:"operator"},{regex:/[\{\[\(]/,indent:!0},{regex:/[\}\]\)]/,dedent:!0}].concat(J())}))}oe(()=>{const n={key:"Enter",run:o=>{S&&p("submit",r)}};return D(),e(11,f=new x({parent:b,state:w.create({doc:r,extensions:[se(),le(),ae(),ue(),ce(),w.allowMultipleSelections.of(!0),fe(de,{fallback:!0}),he(),ge(),pe(),ye(),me.of([n,...be,...ke,xe.find(o=>o.key==="Mod-d"),...we,...Se]),x.lineWrapping,Ce({override:[G],icons:!1}),B.of(U(c)),M.of(x.editable.of(!0)),O.of(w.readOnly.of(!1)),_.of(N()),w.transactionFilter.of(o=>S&&o.newDoc.lines>1?[]:o),x.updateListener.of(o=>{!o.docChanged||a||(e(1,r=o.state.doc.toString()),F())})]})})),()=>{W(),f==null||f.destroy()}});function T(n){re[n?"unshift":"push"](()=>{b=n,e(0,b)})}return t.$$set=n=>{"id"in n&&e(2,s=n.id),"value"in n&&e(1,r=n.value),"disabled"in n&&e(3,a=n.disabled),"placeholder"in n&&e(4,c=n.placeholder),"baseCollection"in n&&e(5,m=n.baseCollection),"singleLine"in n&&e(6,S=n.singleLine),"extraAutocompleteKeys"in n&&e(7,I=n.extraAutocompleteKeys),"disableRequestKeys"in n&&e(8,k=n.disableRequestKeys),"disableIndirectCollectionsKeys"in n&&e(9,C=n.disableIndirectCollectionsKeys)},t.$$.update=()=>{t.$$.dirty&4096&&(d=P(h)),t.$$.dirty&4&&s&&D(),t.$$.dirty&2080&&f&&(m==null?void 0:m.schema)&&f.dispatch({effects:[_.reconfigure(N())]}),t.$$.dirty&2056&&f&&typeof a<"u"&&(f.dispatch({effects:[M.reconfigure(x.editable.of(!a)),O.reconfigure(w.readOnly.of(a))]}),F()),t.$$.dirty&2050&&f&&r!=f.state.doc.toString()&&f.dispatch({changes:{from:0,to:f.state.doc.length,insert:r}}),t.$$.dirty&2064&&f&&typeof c<"u"&&f.dispatch({effects:[B.reconfigure(U(c))]})},[b,r,s,a,c,m,S,I,k,C,v,f,h,T]}class Be extends z{constructor(i){super(),Q(this,i,_e,Ae,X,{id:2,value:1,disabled:3,placeholder:4,baseCollection:5,singleLine:6,extraAutocompleteKeys:7,disableRequestKeys:8,disableIndirectCollectionsKeys:9,focus:10})}get focus(){return this.$$.ctx[10]}}export{Be as default}; +import{S as z,i as Q,s as X,e as Y,f as Z,g as j,y as A,o as $,I as ee,J as te,K as ne,L as ie,M as oe,C as L,N as re}from"./index.be8ffbe5.js";import{C as E,E as x,a as w,h as se,b as le,c as ae,d as ue,e as ce,s as fe,f as de,g as he,i as ge,r as pe,j as ye,k as me,l as be,m as ke,n as xe,o as we,p as Se,q as Ce,t as U,S as qe}from"./index.9c8b95cd.js";function Ke(t){V(t,"start");var i={},e=t.languageData||{},d=!1;for(var h in t)if(h!=e&&t.hasOwnProperty(h))for(var p=i[h]=[],s=t[h],r=0;r2&&s.token&&typeof s.token!="string"){e.pending=[];for(var c=2;c-1)return null;var h=e.indent.length-1,p=t[e.state];e:for(;;){for(var s=0;se(12,h=n));const p=ne();let{id:s=""}=i,{value:r=""}=i,{disabled:a=!1}=i,{placeholder:c=""}=i,{baseCollection:m=new ie}=i,{singleLine:S=!1}=i,{extraAutocompleteKeys:I=[]}=i,{disableRequestKeys:k=!1}=i,{disableIndirectCollectionsKeys:C=!1}=i,f,b,_=new E,M=new E,O=new E,B=new E;function v(){f==null||f.focus()}function P(n){let o=n.slice();return L.pushOrReplaceByKey(o,m,"id"),o}function F(){b==null||b.dispatchEvent(new CustomEvent("change",{detail:{value:r},bubbles:!0}))}function W(){if(!s)return;const n=document.querySelectorAll('[for="'+s+'"]');for(let o of n)o.removeEventListener("click",v)}function D(){if(!s)return;W();const n=document.querySelectorAll('[for="'+s+'"]');for(let o of n)o.addEventListener("click",v)}function R(n,o="",l=0){let y=d.find(g=>g.name==n||g.id==n);if(!y||l>=4)return[];let u=[o+"id",o+"created",o+"updated"];y.isAuth&&(u.push(o+"username"),u.push(o+"email"),u.push(o+"emailVisibility"),u.push(o+"verified"));for(const g of y.schema){const q=o+g.name;if(u.push(q),g.type==="relation"&&g.options.collectionId){const K=R(g.options.collectionId,q+".",l+1);K.length&&(u=u.concat(K))}}return u}function H(n=!0,o=!0){let l=[].concat(I);const y=R(m.name);for(const u of y)l.push(u);if(n&&(l.push("@request.method"),l.push("@request.query."),l.push("@request.data."),l.push("@request.auth."),l.push("@request.auth.id"),l.push("@request.auth.collectionId"),l.push("@request.auth.collectionName"),l.push("@request.auth.username"),l.push("@request.auth.email"),l.push("@request.auth.emailVisibility"),l.push("@request.auth.verified"),l.push("@request.auth.created"),l.push("@request.auth.updated")),n||o)for(const u of d){let g="";if(!o)continue;g="@collection."+u.name+".";const q=R(u.name,g);for(const K of q)l.push(K)}return l.sort(function(u,g){return g.length-u.length}),l}function G(n){let o=n.matchBefore(/[\'\"\@\w\.]*/);if(o&&o.from==o.to&&!n.explicit)return null;let l=[{label:"false"},{label:"true"},{label:"@now"}];C||l.push({label:"@collection.*",apply:"@collection."});const y=H(!k,!k&&o.text.startsWith("@c"));for(const u of y)l.push({label:u.endsWith(".")?u+"*":u,apply:u});return{from:o.from,options:l}}function J(){const n=[{regex:L.escapeRegExp("@now"),token:"keyword"}],o=H(!k,!C);for(const l of o){let y;l.endsWith(".")?y=L.escapeRegExp(l)+"\\w+[\\w.]*":y=L.escapeRegExp(l),n.push({regex:y,token:"keyword"})}return n}function N(){return qe.define(Ke({start:[{regex:/true|false|null/,token:"atom"},{regex:/"(?:[^\\]|\\.)*?(?:"|$)/,token:"string"},{regex:/'(?:[^\\]|\\.)*?(?:'|$)/,token:"string"},{regex:/0x[a-f\d]+|[-+]?(?:\.\d+|\d+\.?\d*)(?:e[-+]?\d+)?/i,token:"number"},{regex:/\&\&|\|\||\=|\!\=|\~|\!\~|\>|\<|\>\=|\<\=/,token:"operator"},{regex:/[\{\[\(]/,indent:!0},{regex:/[\}\]\)]/,dedent:!0}].concat(J())}))}oe(()=>{const n={key:"Enter",run:o=>{S&&p("submit",r)}};return D(),e(11,f=new x({parent:b,state:w.create({doc:r,extensions:[se(),le(),ae(),ue(),ce(),w.allowMultipleSelections.of(!0),fe(de,{fallback:!0}),he(),ge(),pe(),ye(),me.of([n,...be,...ke,xe.find(o=>o.key==="Mod-d"),...we,...Se]),x.lineWrapping,Ce({override:[G],icons:!1}),B.of(U(c)),M.of(x.editable.of(!0)),O.of(w.readOnly.of(!1)),_.of(N()),w.transactionFilter.of(o=>S&&o.newDoc.lines>1?[]:o),x.updateListener.of(o=>{!o.docChanged||a||(e(1,r=o.state.doc.toString()),F())})]})})),()=>{W(),f==null||f.destroy()}});function T(n){re[n?"unshift":"push"](()=>{b=n,e(0,b)})}return t.$$set=n=>{"id"in n&&e(2,s=n.id),"value"in n&&e(1,r=n.value),"disabled"in n&&e(3,a=n.disabled),"placeholder"in n&&e(4,c=n.placeholder),"baseCollection"in n&&e(5,m=n.baseCollection),"singleLine"in n&&e(6,S=n.singleLine),"extraAutocompleteKeys"in n&&e(7,I=n.extraAutocompleteKeys),"disableRequestKeys"in n&&e(8,k=n.disableRequestKeys),"disableIndirectCollectionsKeys"in n&&e(9,C=n.disableIndirectCollectionsKeys)},t.$$.update=()=>{t.$$.dirty&4096&&(d=P(h)),t.$$.dirty&4&&s&&D(),t.$$.dirty&2080&&f&&(m==null?void 0:m.schema)&&f.dispatch({effects:[_.reconfigure(N())]}),t.$$.dirty&2056&&f&&typeof a<"u"&&(f.dispatch({effects:[M.reconfigure(x.editable.of(!a)),O.reconfigure(w.readOnly.of(a))]}),F()),t.$$.dirty&2050&&f&&r!=f.state.doc.toString()&&f.dispatch({changes:{from:0,to:f.state.doc.length,insert:r}}),t.$$.dirty&2064&&f&&typeof c<"u"&&f.dispatch({effects:[B.reconfigure(U(c))]})},[b,r,s,a,c,m,S,I,k,C,v,f,h,T]}class Be extends z{constructor(i){super(),Q(this,i,_e,Ae,X,{id:2,value:1,disabled:3,placeholder:4,baseCollection:5,singleLine:6,extraAutocompleteKeys:7,disableRequestKeys:8,disableIndirectCollectionsKeys:9,focus:10})}get focus(){return this.$$.ctx[10]}}export{Be as default}; diff --git a/ui/dist/assets/ListApiDocs.e4bbc799.js b/ui/dist/assets/ListApiDocs.e6ffd7ae.js similarity index 99% rename from ui/dist/assets/ListApiDocs.e4bbc799.js rename to ui/dist/assets/ListApiDocs.e6ffd7ae.js index ad9fc428e..7250c8f63 100644 --- a/ui/dist/assets/ListApiDocs.e4bbc799.js +++ b/ui/dist/assets/ListApiDocs.e6ffd7ae.js @@ -1,4 +1,4 @@ -import{S as Et,i as Nt,s as Ht,e as l,b as a,E as qt,f as d,g as p,u as Mt,y as xt,o as u,w as k,h as e,O as Ae,c as ge,m as ye,x as Ue,P as Lt,Q as Dt,k as It,R as Bt,n as zt,t as ce,a as de,d as ve,L as Gt,C as je,p as Ut,r as Ee}from"./index.7b2502cb.js";import{S as jt}from"./SdkTabs.315f7f19.js";function Qt(r){let s,n,i;return{c(){s=l("span"),s.textContent="Show details",n=a(),i=l("i"),d(s,"class","txt"),d(i,"class","ri-arrow-down-s-line")},m(c,f){p(c,s,f),p(c,n,f),p(c,i,f)},d(c){c&&u(s),c&&u(n),c&&u(i)}}}function Jt(r){let s,n,i;return{c(){s=l("span"),s.textContent="Hide details",n=a(),i=l("i"),d(s,"class","txt"),d(i,"class","ri-arrow-up-s-line")},m(c,f){p(c,s,f),p(c,n,f),p(c,i,f)},d(c){c&&u(s),c&&u(n),c&&u(i)}}}function Tt(r){let s,n,i,c,f,m,_,w,b,$,h,H,W,fe,T,pe,O,G,C,M,Fe,A,E,Ce,U,X,q,Y,xe,j,Q,D,P,ue,Z,v,I,ee,me,te,N,B,le,be,se,x,J,ne,Le,K,he,V;return{c(){s=l("p"),s.innerHTML=`The syntax basically follows the format +import{S as Et,i as Nt,s as Ht,e as l,b as a,E as qt,f as d,g as p,u as Mt,y as xt,o as u,w as k,h as e,O as Ae,c as ge,m as ye,x as Ue,P as Lt,Q as Dt,k as It,R as Bt,n as zt,t as ce,a as de,d as ve,L as Gt,C as je,p as Ut,r as Ee}from"./index.be8ffbe5.js";import{S as jt}from"./SdkTabs.8f55857f.js";function Qt(r){let s,n,i;return{c(){s=l("span"),s.textContent="Show details",n=a(),i=l("i"),d(s,"class","txt"),d(i,"class","ri-arrow-down-s-line")},m(c,f){p(c,s,f),p(c,n,f),p(c,i,f)},d(c){c&&u(s),c&&u(n),c&&u(i)}}}function Jt(r){let s,n,i;return{c(){s=l("span"),s.textContent="Hide details",n=a(),i=l("i"),d(s,"class","txt"),d(i,"class","ri-arrow-up-s-line")},m(c,f){p(c,s,f),p(c,n,f),p(c,i,f)},d(c){c&&u(s),c&&u(n),c&&u(i)}}}function Tt(r){let s,n,i,c,f,m,_,w,b,$,h,H,W,fe,T,pe,O,G,C,M,Fe,A,E,Ce,U,X,q,Y,xe,j,Q,D,P,ue,Z,v,I,ee,me,te,N,B,le,be,se,x,J,ne,Le,K,he,V;return{c(){s=l("p"),s.innerHTML=`The syntax basically follows the format OPERAND OPERATOR OPERAND, where:`,n=a(),i=l("ul"),c=l("li"),c.innerHTML=`OPERAND - could be any of the above field literal, string (single diff --git a/ui/dist/assets/ListExternalAuthsDocs.0860ae00.js b/ui/dist/assets/ListExternalAuthsDocs.305ff8e3.js similarity index 98% rename from ui/dist/assets/ListExternalAuthsDocs.0860ae00.js rename to ui/dist/assets/ListExternalAuthsDocs.305ff8e3.js index 7387e9bcb..b911f309b 100644 --- a/ui/dist/assets/ListExternalAuthsDocs.0860ae00.js +++ b/ui/dist/assets/ListExternalAuthsDocs.305ff8e3.js @@ -1,4 +1,4 @@ -import{S as Be,i as qe,s as Le,e as n,w as v,b as h,c as Te,f as b,g as r,h as s,m as Ie,x as U,P as ye,Q as Oe,k as Me,R as Re,n as Ve,t as te,a as le,o as d,d as Se,L as ze,C as De,p as He,r as j,u as Ue,O as je}from"./index.7b2502cb.js";import{S as Ge}from"./SdkTabs.315f7f19.js";function Ee(a,l,o){const i=a.slice();return i[5]=l[o],i}function Ae(a,l,o){const i=a.slice();return i[5]=l[o],i}function Pe(a,l){let o,i=l[5].code+"",m,_,c,u;function f(){return l[4](l[5])}return{key:a,first:null,c(){o=n("button"),m=v(i),_=h(),b(o,"class","tab-item"),j(o,"active",l[1]===l[5].code),this.first=o},m(g,y){r(g,o,y),s(o,m),s(o,_),c||(u=Ue(o,"click",f),c=!0)},p(g,y){l=g,y&4&&i!==(i=l[5].code+"")&&U(m,i),y&6&&j(o,"active",l[1]===l[5].code)},d(g){g&&d(o),c=!1,u()}}}function Ce(a,l){let o,i,m,_;return i=new je({props:{content:l[5].body}}),{key:a,first:null,c(){o=n("div"),Te(i.$$.fragment),m=h(),b(o,"class","tab-item"),j(o,"active",l[1]===l[5].code),this.first=o},m(c,u){r(c,o,u),Ie(i,o,null),s(o,m),_=!0},p(c,u){l=c;const f={};u&4&&(f.content=l[5].body),i.$set(f),(!_||u&6)&&j(o,"active",l[1]===l[5].code)},i(c){_||(te(i.$$.fragment,c),_=!0)},o(c){le(i.$$.fragment,c),_=!1},d(c){c&&d(o),Se(i)}}}function Ke(a){var be,_e,he,ke;let l,o,i=a[0].name+"",m,_,c,u,f,g,y,M=a[0].name+"",G,oe,se,K,N,E,Q,T,F,w,R,ae,V,A,ie,J,z=a[0].name+"",W,ne,X,ce,re,D,Y,I,Z,S,x,B,ee,P,q,$=[],de=new Map,ue,L,k=[],pe=new Map,C;E=new Ge({props:{js:` +import{S as Be,i as qe,s as Le,e as n,w as v,b as h,c as Te,f as b,g as r,h as s,m as Ie,x as U,P as ye,Q as Oe,k as Me,R as Re,n as Ve,t as te,a as le,o as d,d as Se,L as ze,C as De,p as He,r as j,u as Ue,O as je}from"./index.be8ffbe5.js";import{S as Ge}from"./SdkTabs.8f55857f.js";function Ee(a,l,o){const i=a.slice();return i[5]=l[o],i}function Ae(a,l,o){const i=a.slice();return i[5]=l[o],i}function Pe(a,l){let o,i=l[5].code+"",m,_,c,u;function f(){return l[4](l[5])}return{key:a,first:null,c(){o=n("button"),m=v(i),_=h(),b(o,"class","tab-item"),j(o,"active",l[1]===l[5].code),this.first=o},m(g,y){r(g,o,y),s(o,m),s(o,_),c||(u=Ue(o,"click",f),c=!0)},p(g,y){l=g,y&4&&i!==(i=l[5].code+"")&&U(m,i),y&6&&j(o,"active",l[1]===l[5].code)},d(g){g&&d(o),c=!1,u()}}}function Ce(a,l){let o,i,m,_;return i=new je({props:{content:l[5].body}}),{key:a,first:null,c(){o=n("div"),Te(i.$$.fragment),m=h(),b(o,"class","tab-item"),j(o,"active",l[1]===l[5].code),this.first=o},m(c,u){r(c,o,u),Ie(i,o,null),s(o,m),_=!0},p(c,u){l=c;const f={};u&4&&(f.content=l[5].body),i.$set(f),(!_||u&6)&&j(o,"active",l[1]===l[5].code)},i(c){_||(te(i.$$.fragment,c),_=!0)},o(c){le(i.$$.fragment,c),_=!1},d(c){c&&d(o),Se(i)}}}function Ke(a){var be,_e,he,ke;let l,o,i=a[0].name+"",m,_,c,u,f,g,y,M=a[0].name+"",G,oe,se,K,N,E,Q,T,F,w,R,ae,V,A,ie,J,z=a[0].name+"",W,ne,X,ce,re,D,Y,I,Z,S,x,B,ee,P,q,$=[],de=new Map,ue,L,k=[],pe=new Map,C;E=new Ge({props:{js:` import PocketBase from 'pocketbase'; const pb = new PocketBase('${a[3]}'); diff --git a/ui/dist/assets/PageAdminConfirmPasswordReset.1976a74b.js b/ui/dist/assets/PageAdminConfirmPasswordReset.ad1b2398.js similarity index 98% rename from ui/dist/assets/PageAdminConfirmPasswordReset.1976a74b.js rename to ui/dist/assets/PageAdminConfirmPasswordReset.ad1b2398.js index 3f742ce1c..039d56595 100644 --- a/ui/dist/assets/PageAdminConfirmPasswordReset.1976a74b.js +++ b/ui/dist/assets/PageAdminConfirmPasswordReset.ad1b2398.js @@ -1,2 +1,2 @@ -import{S as E,i as G,s as I,F as K,c as A,m as B,t as H,a as N,d as T,C as M,q as J,e as c,w as q,b as C,f as u,r as L,g as b,h as _,u as h,v as O,j as Q,l as U,o as w,A as V,p as W,B as X,D as Y,x as Z,z as S}from"./index.7b2502cb.js";function y(f){let e,o,s;return{c(){e=q("for "),o=c("strong"),s=q(f[3]),u(o,"class","txt-nowrap")},m(l,t){b(l,e,t),b(l,o,t),_(o,s)},p(l,t){t&8&&Z(s,l[3])},d(l){l&&w(e),l&&w(o)}}}function x(f){let e,o,s,l,t,r,p,d;return{c(){e=c("label"),o=q("New password"),l=C(),t=c("input"),u(e,"for",s=f[8]),u(t,"type","password"),u(t,"id",r=f[8]),t.required=!0,t.autofocus=!0},m(n,i){b(n,e,i),_(e,o),b(n,l,i),b(n,t,i),S(t,f[0]),t.focus(),p||(d=h(t,"input",f[6]),p=!0)},p(n,i){i&256&&s!==(s=n[8])&&u(e,"for",s),i&256&&r!==(r=n[8])&&u(t,"id",r),i&1&&t.value!==n[0]&&S(t,n[0])},d(n){n&&w(e),n&&w(l),n&&w(t),p=!1,d()}}}function ee(f){let e,o,s,l,t,r,p,d;return{c(){e=c("label"),o=q("New password confirm"),l=C(),t=c("input"),u(e,"for",s=f[8]),u(t,"type","password"),u(t,"id",r=f[8]),t.required=!0},m(n,i){b(n,e,i),_(e,o),b(n,l,i),b(n,t,i),S(t,f[1]),p||(d=h(t,"input",f[7]),p=!0)},p(n,i){i&256&&s!==(s=n[8])&&u(e,"for",s),i&256&&r!==(r=n[8])&&u(t,"id",r),i&2&&t.value!==n[1]&&S(t,n[1])},d(n){n&&w(e),n&&w(l),n&&w(t),p=!1,d()}}}function te(f){let e,o,s,l,t,r,p,d,n,i,g,R,P,v,k,F,j,m=f[3]&&y(f);return r=new J({props:{class:"form-field required",name:"password",$$slots:{default:[x,({uniqueId:a})=>({8:a}),({uniqueId:a})=>a?256:0]},$$scope:{ctx:f}}}),d=new J({props:{class:"form-field required",name:"passwordConfirm",$$slots:{default:[ee,({uniqueId:a})=>({8:a}),({uniqueId:a})=>a?256:0]},$$scope:{ctx:f}}}),{c(){e=c("form"),o=c("div"),s=c("h4"),l=q(`Reset your admin password +import{S as E,i as G,s as I,F as K,c as A,m as B,t as H,a as N,d as T,C as M,q as J,e as c,w as q,b as C,f as u,r as L,g as b,h as _,u as h,v as O,j as Q,l as U,o as w,A as V,p as W,B as X,D as Y,x as Z,z as S}from"./index.be8ffbe5.js";function y(f){let e,o,s;return{c(){e=q("for "),o=c("strong"),s=q(f[3]),u(o,"class","txt-nowrap")},m(l,t){b(l,e,t),b(l,o,t),_(o,s)},p(l,t){t&8&&Z(s,l[3])},d(l){l&&w(e),l&&w(o)}}}function x(f){let e,o,s,l,t,r,p,d;return{c(){e=c("label"),o=q("New password"),l=C(),t=c("input"),u(e,"for",s=f[8]),u(t,"type","password"),u(t,"id",r=f[8]),t.required=!0,t.autofocus=!0},m(n,i){b(n,e,i),_(e,o),b(n,l,i),b(n,t,i),S(t,f[0]),t.focus(),p||(d=h(t,"input",f[6]),p=!0)},p(n,i){i&256&&s!==(s=n[8])&&u(e,"for",s),i&256&&r!==(r=n[8])&&u(t,"id",r),i&1&&t.value!==n[0]&&S(t,n[0])},d(n){n&&w(e),n&&w(l),n&&w(t),p=!1,d()}}}function ee(f){let e,o,s,l,t,r,p,d;return{c(){e=c("label"),o=q("New password confirm"),l=C(),t=c("input"),u(e,"for",s=f[8]),u(t,"type","password"),u(t,"id",r=f[8]),t.required=!0},m(n,i){b(n,e,i),_(e,o),b(n,l,i),b(n,t,i),S(t,f[1]),p||(d=h(t,"input",f[7]),p=!0)},p(n,i){i&256&&s!==(s=n[8])&&u(e,"for",s),i&256&&r!==(r=n[8])&&u(t,"id",r),i&2&&t.value!==n[1]&&S(t,n[1])},d(n){n&&w(e),n&&w(l),n&&w(t),p=!1,d()}}}function te(f){let e,o,s,l,t,r,p,d,n,i,g,R,P,v,k,F,j,m=f[3]&&y(f);return r=new J({props:{class:"form-field required",name:"password",$$slots:{default:[x,({uniqueId:a})=>({8:a}),({uniqueId:a})=>a?256:0]},$$scope:{ctx:f}}}),d=new J({props:{class:"form-field required",name:"passwordConfirm",$$slots:{default:[ee,({uniqueId:a})=>({8:a}),({uniqueId:a})=>a?256:0]},$$scope:{ctx:f}}}),{c(){e=c("form"),o=c("div"),s=c("h4"),l=q(`Reset your admin password `),m&&m.c(),t=C(),A(r.$$.fragment),p=C(),A(d.$$.fragment),n=C(),i=c("button"),g=c("span"),g.textContent="Set new password",R=C(),P=c("div"),v=c("a"),v.textContent="Back to login",u(s,"class","m-b-xs"),u(o,"class","content txt-center m-b-sm"),u(g,"class","txt"),u(i,"type","submit"),u(i,"class","btn btn-lg btn-block"),i.disabled=f[2],L(i,"btn-loading",f[2]),u(e,"class","m-b-base"),u(v,"href","/login"),u(v,"class","link-hint"),u(P,"class","content txt-center")},m(a,$){b(a,e,$),_(e,o),_(o,s),_(s,l),m&&m.m(s,null),_(e,t),B(r,e,null),_(e,p),B(d,e,null),_(e,n),_(e,i),_(i,g),b(a,R,$),b(a,P,$),_(P,v),k=!0,F||(j=[h(e,"submit",O(f[4])),Q(U.call(null,v))],F=!0)},p(a,$){a[3]?m?m.p(a,$):(m=y(a),m.c(),m.m(s,null)):m&&(m.d(1),m=null);const z={};$&769&&(z.$$scope={dirty:$,ctx:a}),r.$set(z);const D={};$&770&&(D.$$scope={dirty:$,ctx:a}),d.$set(D),(!k||$&4)&&(i.disabled=a[2]),(!k||$&4)&&L(i,"btn-loading",a[2])},i(a){k||(H(r.$$.fragment,a),H(d.$$.fragment,a),k=!0)},o(a){N(r.$$.fragment,a),N(d.$$.fragment,a),k=!1},d(a){a&&w(e),m&&m.d(),T(r),T(d),a&&w(R),a&&w(P),F=!1,V(j)}}}function se(f){let e,o;return e=new K({props:{$$slots:{default:[te]},$$scope:{ctx:f}}}),{c(){A(e.$$.fragment)},m(s,l){B(e,s,l),o=!0},p(s,[l]){const t={};l&527&&(t.$$scope={dirty:l,ctx:s}),e.$set(t)},i(s){o||(H(e.$$.fragment,s),o=!0)},o(s){N(e.$$.fragment,s),o=!1},d(s){T(e,s)}}}function le(f,e,o){let s,{params:l}=e,t="",r="",p=!1;async function d(){if(!p){o(2,p=!0);try{await W.admins.confirmPasswordReset(l==null?void 0:l.token,t,r),X("Successfully set a new admin password."),Y("/")}catch(g){W.errorResponseHandler(g)}o(2,p=!1)}}function n(){t=this.value,o(0,t)}function i(){r=this.value,o(1,r)}return f.$$set=g=>{"params"in g&&o(5,l=g.params)},f.$$.update=()=>{f.$$.dirty&32&&o(3,s=M.getJWTPayload(l==null?void 0:l.token).email||"")},[t,r,p,s,d,l,n,i]}class ae extends E{constructor(e){super(),G(this,e,le,se,I,{params:5})}}export{ae as default}; diff --git a/ui/dist/assets/PageAdminRequestPasswordReset.f6495525.js b/ui/dist/assets/PageAdminRequestPasswordReset.d9c4c816.js similarity index 98% rename from ui/dist/assets/PageAdminRequestPasswordReset.f6495525.js rename to ui/dist/assets/PageAdminRequestPasswordReset.d9c4c816.js index d5e7213a1..0057048f1 100644 --- a/ui/dist/assets/PageAdminRequestPasswordReset.f6495525.js +++ b/ui/dist/assets/PageAdminRequestPasswordReset.d9c4c816.js @@ -1,2 +1,2 @@ -import{S as M,i as T,s as j,F as z,c as H,m as L,t as w,a as y,d as S,b as g,e as _,f as p,g as k,h as d,j as A,l as B,k as N,n as D,o as v,p as C,q as G,r as F,u as E,v as I,w as h,x as J,y as P,z as R}from"./index.7b2502cb.js";function K(c){let e,s,n,l,t,o,f,m,i,a,b,u;return l=new G({props:{class:"form-field required",name:"email",$$slots:{default:[Q,({uniqueId:r})=>({5:r}),({uniqueId:r})=>r?32:0]},$$scope:{ctx:c}}}),{c(){e=_("form"),s=_("div"),s.innerHTML=`

Forgotten admin password

+import{S as M,i as T,s as j,F as z,c as H,m as L,t as w,a as y,d as S,b as g,e as _,f as p,g as k,h as d,j as A,l as B,k as N,n as D,o as v,p as C,q as G,r as F,u as E,v as I,w as h,x as J,y as P,z as R}from"./index.be8ffbe5.js";function K(c){let e,s,n,l,t,o,f,m,i,a,b,u;return l=new G({props:{class:"form-field required",name:"email",$$slots:{default:[Q,({uniqueId:r})=>({5:r}),({uniqueId:r})=>r?32:0]},$$scope:{ctx:c}}}),{c(){e=_("form"),s=_("div"),s.innerHTML=`

Forgotten admin password

Enter the email associated with your account and we\u2019ll send you a recovery link:

`,n=g(),H(l.$$.fragment),t=g(),o=_("button"),f=_("i"),m=g(),i=_("span"),i.textContent="Send recovery link",p(s,"class","content txt-center m-b-sm"),p(f,"class","ri-mail-send-line"),p(i,"class","txt"),p(o,"type","submit"),p(o,"class","btn btn-lg btn-block"),o.disabled=c[1],F(o,"btn-loading",c[1]),p(e,"class","m-b-base")},m(r,$){k(r,e,$),d(e,s),d(e,n),L(l,e,null),d(e,t),d(e,o),d(o,f),d(o,m),d(o,i),a=!0,b||(u=E(e,"submit",I(c[3])),b=!0)},p(r,$){const q={};$&97&&(q.$$scope={dirty:$,ctx:r}),l.$set(q),(!a||$&2)&&(o.disabled=r[1]),(!a||$&2)&&F(o,"btn-loading",r[1])},i(r){a||(w(l.$$.fragment,r),a=!0)},o(r){y(l.$$.fragment,r),a=!1},d(r){r&&v(e),S(l),b=!1,u()}}}function O(c){let e,s,n,l,t,o,f,m,i;return{c(){e=_("div"),s=_("div"),s.innerHTML='',n=g(),l=_("div"),t=_("p"),o=h("Check "),f=_("strong"),m=h(c[0]),i=h(" for the recovery link."),p(s,"class","icon"),p(f,"class","txt-nowrap"),p(l,"class","content"),p(e,"class","alert alert-success")},m(a,b){k(a,e,b),d(e,s),d(e,n),d(e,l),d(l,t),d(t,o),d(t,f),d(f,m),d(t,i)},p(a,b){b&1&&J(m,a[0])},i:P,o:P,d(a){a&&v(e)}}}function Q(c){let e,s,n,l,t,o,f,m;return{c(){e=_("label"),s=h("Email"),l=g(),t=_("input"),p(e,"for",n=c[5]),p(t,"type","email"),p(t,"id",o=c[5]),t.required=!0,t.autofocus=!0},m(i,a){k(i,e,a),d(e,s),k(i,l,a),k(i,t,a),R(t,c[0]),t.focus(),f||(m=E(t,"input",c[4]),f=!0)},p(i,a){a&32&&n!==(n=i[5])&&p(e,"for",n),a&32&&o!==(o=i[5])&&p(t,"id",o),a&1&&t.value!==i[0]&&R(t,i[0])},d(i){i&&v(e),i&&v(l),i&&v(t),f=!1,m()}}}function U(c){let e,s,n,l,t,o,f,m;const i=[O,K],a=[];function b(u,r){return u[2]?0:1}return e=b(c),s=a[e]=i[e](c),{c(){s.c(),n=g(),l=_("div"),t=_("a"),t.textContent="Back to login",p(t,"href","/login"),p(t,"class","link-hint"),p(l,"class","content txt-center")},m(u,r){a[e].m(u,r),k(u,n,r),k(u,l,r),d(l,t),o=!0,f||(m=A(B.call(null,t)),f=!0)},p(u,r){let $=e;e=b(u),e===$?a[e].p(u,r):(N(),y(a[$],1,1,()=>{a[$]=null}),D(),s=a[e],s?s.p(u,r):(s=a[e]=i[e](u),s.c()),w(s,1),s.m(n.parentNode,n))},i(u){o||(w(s),o=!0)},o(u){y(s),o=!1},d(u){a[e].d(u),u&&v(n),u&&v(l),f=!1,m()}}}function V(c){let e,s;return e=new z({props:{$$slots:{default:[U]},$$scope:{ctx:c}}}),{c(){H(e.$$.fragment)},m(n,l){L(e,n,l),s=!0},p(n,[l]){const t={};l&71&&(t.$$scope={dirty:l,ctx:n}),e.$set(t)},i(n){s||(w(e.$$.fragment,n),s=!0)},o(n){y(e.$$.fragment,n),s=!1},d(n){S(e,n)}}}function W(c,e,s){let n="",l=!1,t=!1;async function o(){if(!l){s(1,l=!0);try{await C.admins.requestPasswordReset(n),s(2,t=!0)}catch(m){C.errorResponseHandler(m)}s(1,l=!1)}}function f(){n=this.value,s(0,n)}return[n,l,t,o,f]}class Y extends M{constructor(e){super(),T(this,e,W,V,j,{})}}export{Y as default}; diff --git a/ui/dist/assets/PageRecordConfirmEmailChange.eb6e76e0.js b/ui/dist/assets/PageRecordConfirmEmailChange.045ac88a.js similarity index 98% rename from ui/dist/assets/PageRecordConfirmEmailChange.eb6e76e0.js rename to ui/dist/assets/PageRecordConfirmEmailChange.045ac88a.js index 74fccadde..8fae8d67d 100644 --- a/ui/dist/assets/PageRecordConfirmEmailChange.eb6e76e0.js +++ b/ui/dist/assets/PageRecordConfirmEmailChange.045ac88a.js @@ -1,4 +1,4 @@ -import{S as z,i as G,s as I,F as J,c as T,m as L,t as v,a as y,d as R,C as M,E as N,g as _,k as W,n as Y,o as b,G as j,H as A,p as B,q as D,e as m,w as C,b as h,f as d,r as P,h as k,u as q,v as K,y as E,x as O,z as F}from"./index.7b2502cb.js";function Q(r){let e,t,s,l,n,o,c,i,a,u,g,$,p=r[3]&&S(r);return o=new D({props:{class:"form-field required",name:"password",$$slots:{default:[V,({uniqueId:f})=>({8:f}),({uniqueId:f})=>f?256:0]},$$scope:{ctx:r}}}),{c(){e=m("form"),t=m("div"),s=m("h5"),l=C(`Type your password to confirm changing your email address +import{S as z,i as G,s as I,F as J,c as T,m as L,t as v,a as y,d as R,C as M,E as N,g as _,k as W,n as Y,o as b,G as j,H as A,p as B,q as D,e as m,w as C,b as h,f as d,r as P,h as k,u as q,v as K,y as E,x as O,z as F}from"./index.be8ffbe5.js";function Q(r){let e,t,s,l,n,o,c,i,a,u,g,$,p=r[3]&&S(r);return o=new D({props:{class:"form-field required",name:"password",$$slots:{default:[V,({uniqueId:f})=>({8:f}),({uniqueId:f})=>f?256:0]},$$scope:{ctx:r}}}),{c(){e=m("form"),t=m("div"),s=m("h5"),l=C(`Type your password to confirm changing your email address `),p&&p.c(),n=h(),T(o.$$.fragment),c=h(),i=m("button"),a=m("span"),a.textContent="Confirm new email",d(t,"class","content txt-center m-b-base"),d(a,"class","txt"),d(i,"type","submit"),d(i,"class","btn btn-lg btn-block"),i.disabled=r[1],P(i,"btn-loading",r[1])},m(f,w){_(f,e,w),k(e,t),k(t,s),k(s,l),p&&p.m(s,null),k(e,n),L(o,e,null),k(e,c),k(e,i),k(i,a),u=!0,g||($=q(e,"submit",K(r[4])),g=!0)},p(f,w){f[3]?p?p.p(f,w):(p=S(f),p.c(),p.m(s,null)):p&&(p.d(1),p=null);const H={};w&769&&(H.$$scope={dirty:w,ctx:f}),o.$set(H),(!u||w&2)&&(i.disabled=f[1]),(!u||w&2)&&P(i,"btn-loading",f[1])},i(f){u||(v(o.$$.fragment,f),u=!0)},o(f){y(o.$$.fragment,f),u=!1},d(f){f&&b(e),p&&p.d(),R(o),g=!1,$()}}}function U(r){let e,t,s,l,n;return{c(){e=m("div"),e.innerHTML=`

Successfully changed the user email address.

You can now sign in with your new email address.

`,t=h(),s=m("button"),s.textContent="Close",d(e,"class","alert alert-success"),d(s,"type","button"),d(s,"class","btn btn-secondary btn-block")},m(o,c){_(o,e,c),_(o,t,c),_(o,s,c),l||(n=q(s,"click",r[6]),l=!0)},p:E,i:E,o:E,d(o){o&&b(e),o&&b(t),o&&b(s),l=!1,n()}}}function S(r){let e,t,s;return{c(){e=C("to "),t=m("strong"),s=C(r[3]),d(t,"class","txt-nowrap")},m(l,n){_(l,e,n),_(l,t,n),k(t,s)},p(l,n){n&8&&O(s,l[3])},d(l){l&&b(e),l&&b(t)}}}function V(r){let e,t,s,l,n,o,c,i;return{c(){e=m("label"),t=C("Password"),l=h(),n=m("input"),d(e,"for",s=r[8]),d(n,"type","password"),d(n,"id",o=r[8]),n.required=!0,n.autofocus=!0},m(a,u){_(a,e,u),k(e,t),_(a,l,u),_(a,n,u),F(n,r[0]),n.focus(),c||(i=q(n,"input",r[7]),c=!0)},p(a,u){u&256&&s!==(s=a[8])&&d(e,"for",s),u&256&&o!==(o=a[8])&&d(n,"id",o),u&1&&n.value!==a[0]&&F(n,a[0])},d(a){a&&b(e),a&&b(l),a&&b(n),c=!1,i()}}}function X(r){let e,t,s,l;const n=[U,Q],o=[];function c(i,a){return i[2]?0:1}return e=c(r),t=o[e]=n[e](r),{c(){t.c(),s=N()},m(i,a){o[e].m(i,a),_(i,s,a),l=!0},p(i,a){let u=e;e=c(i),e===u?o[e].p(i,a):(W(),y(o[u],1,1,()=>{o[u]=null}),Y(),t=o[e],t?t.p(i,a):(t=o[e]=n[e](i),t.c()),v(t,1),t.m(s.parentNode,s))},i(i){l||(v(t),l=!0)},o(i){y(t),l=!1},d(i){o[e].d(i),i&&b(s)}}}function Z(r){let e,t;return e=new J({props:{nobranding:!0,$$slots:{default:[X]},$$scope:{ctx:r}}}),{c(){T(e.$$.fragment)},m(s,l){L(e,s,l),t=!0},p(s,[l]){const n={};l&527&&(n.$$scope={dirty:l,ctx:s}),e.$set(n)},i(s){t||(v(e.$$.fragment,s),t=!0)},o(s){y(e.$$.fragment,s),t=!1},d(s){R(e,s)}}}function x(r,e,t){let s,{params:l}=e,n="",o=!1,c=!1;async function i(){if(o)return;t(1,o=!0);const g=new j("../");try{const $=A(l==null?void 0:l.token);await g.collection($.collectionId).confirmEmailChange(l==null?void 0:l.token,n),t(2,c=!0)}catch($){B.errorResponseHandler($)}t(1,o=!1)}const a=()=>window.close();function u(){n=this.value,t(0,n)}return r.$$set=g=>{"params"in g&&t(5,l=g.params)},r.$$.update=()=>{r.$$.dirty&32&&t(3,s=M.getJWTPayload(l==null?void 0:l.token).newEmail||"")},[n,o,c,s,i,l,a,u]}class te extends z{constructor(e){super(),G(this,e,x,Z,I,{params:5})}}export{te as default}; diff --git a/ui/dist/assets/PageRecordConfirmPasswordReset.3e74ad0e.js b/ui/dist/assets/PageRecordConfirmPasswordReset.1076ce6b.js similarity index 98% rename from ui/dist/assets/PageRecordConfirmPasswordReset.3e74ad0e.js rename to ui/dist/assets/PageRecordConfirmPasswordReset.1076ce6b.js index 1e99f620b..08599fbc8 100644 --- a/ui/dist/assets/PageRecordConfirmPasswordReset.3e74ad0e.js +++ b/ui/dist/assets/PageRecordConfirmPasswordReset.1076ce6b.js @@ -1,4 +1,4 @@ -import{S as J,i as M,s as W,F as Y,c as F,m as N,t as P,a as q,d as E,C as j,E as A,g as _,k as B,n as D,o as m,G as K,H as O,p as Q,q as z,e as b,w as R,b as y,f as p,r as G,h as w,u as H,v as U,y as S,x as V,z as h}from"./index.7b2502cb.js";function X(r){let e,l,s,n,t,o,c,u,i,a,v,k,g,C,d=r[4]&&I(r);return o=new z({props:{class:"form-field required",name:"password",$$slots:{default:[x,({uniqueId:f})=>({10:f}),({uniqueId:f})=>f?1024:0]},$$scope:{ctx:r}}}),u=new z({props:{class:"form-field required",name:"passwordConfirm",$$slots:{default:[ee,({uniqueId:f})=>({10:f}),({uniqueId:f})=>f?1024:0]},$$scope:{ctx:r}}}),{c(){e=b("form"),l=b("div"),s=b("h5"),n=R(`Reset your user password +import{S as J,i as M,s as W,F as Y,c as F,m as N,t as P,a as q,d as E,C as j,E as A,g as _,k as B,n as D,o as m,G as K,H as O,p as Q,q as z,e as b,w as R,b as y,f as p,r as G,h as w,u as H,v as U,y as S,x as V,z as h}from"./index.be8ffbe5.js";function X(r){let e,l,s,n,t,o,c,u,i,a,v,k,g,C,d=r[4]&&I(r);return o=new z({props:{class:"form-field required",name:"password",$$slots:{default:[x,({uniqueId:f})=>({10:f}),({uniqueId:f})=>f?1024:0]},$$scope:{ctx:r}}}),u=new z({props:{class:"form-field required",name:"passwordConfirm",$$slots:{default:[ee,({uniqueId:f})=>({10:f}),({uniqueId:f})=>f?1024:0]},$$scope:{ctx:r}}}),{c(){e=b("form"),l=b("div"),s=b("h5"),n=R(`Reset your user password `),d&&d.c(),t=y(),F(o.$$.fragment),c=y(),F(u.$$.fragment),i=y(),a=b("button"),v=b("span"),v.textContent="Set new password",p(l,"class","content txt-center m-b-base"),p(v,"class","txt"),p(a,"type","submit"),p(a,"class","btn btn-lg btn-block"),a.disabled=r[2],G(a,"btn-loading",r[2])},m(f,$){_(f,e,$),w(e,l),w(l,s),w(s,n),d&&d.m(s,null),w(e,t),N(o,e,null),w(e,c),N(u,e,null),w(e,i),w(e,a),w(a,v),k=!0,g||(C=H(e,"submit",U(r[5])),g=!0)},p(f,$){f[4]?d?d.p(f,$):(d=I(f),d.c(),d.m(s,null)):d&&(d.d(1),d=null);const L={};$&3073&&(L.$$scope={dirty:$,ctx:f}),o.$set(L);const T={};$&3074&&(T.$$scope={dirty:$,ctx:f}),u.$set(T),(!k||$&4)&&(a.disabled=f[2]),(!k||$&4)&&G(a,"btn-loading",f[2])},i(f){k||(P(o.$$.fragment,f),P(u.$$.fragment,f),k=!0)},o(f){q(o.$$.fragment,f),q(u.$$.fragment,f),k=!1},d(f){f&&m(e),d&&d.d(),E(o),E(u),g=!1,C()}}}function Z(r){let e,l,s,n,t;return{c(){e=b("div"),e.innerHTML=`

Successfully changed the user password.

You can now sign in with your new password.

`,l=y(),s=b("button"),s.textContent="Close",p(e,"class","alert alert-success"),p(s,"type","button"),p(s,"class","btn btn-secondary btn-block")},m(o,c){_(o,e,c),_(o,l,c),_(o,s,c),n||(t=H(s,"click",r[7]),n=!0)},p:S,i:S,o:S,d(o){o&&m(e),o&&m(l),o&&m(s),n=!1,t()}}}function I(r){let e,l,s;return{c(){e=R("for "),l=b("strong"),s=R(r[4])},m(n,t){_(n,e,t),_(n,l,t),w(l,s)},p(n,t){t&16&&V(s,n[4])},d(n){n&&m(e),n&&m(l)}}}function x(r){let e,l,s,n,t,o,c,u;return{c(){e=b("label"),l=R("New password"),n=y(),t=b("input"),p(e,"for",s=r[10]),p(t,"type","password"),p(t,"id",o=r[10]),t.required=!0,t.autofocus=!0},m(i,a){_(i,e,a),w(e,l),_(i,n,a),_(i,t,a),h(t,r[0]),t.focus(),c||(u=H(t,"input",r[8]),c=!0)},p(i,a){a&1024&&s!==(s=i[10])&&p(e,"for",s),a&1024&&o!==(o=i[10])&&p(t,"id",o),a&1&&t.value!==i[0]&&h(t,i[0])},d(i){i&&m(e),i&&m(n),i&&m(t),c=!1,u()}}}function ee(r){let e,l,s,n,t,o,c,u;return{c(){e=b("label"),l=R("New password confirm"),n=y(),t=b("input"),p(e,"for",s=r[10]),p(t,"type","password"),p(t,"id",o=r[10]),t.required=!0},m(i,a){_(i,e,a),w(e,l),_(i,n,a),_(i,t,a),h(t,r[1]),c||(u=H(t,"input",r[9]),c=!0)},p(i,a){a&1024&&s!==(s=i[10])&&p(e,"for",s),a&1024&&o!==(o=i[10])&&p(t,"id",o),a&2&&t.value!==i[1]&&h(t,i[1])},d(i){i&&m(e),i&&m(n),i&&m(t),c=!1,u()}}}function te(r){let e,l,s,n;const t=[Z,X],o=[];function c(u,i){return u[3]?0:1}return e=c(r),l=o[e]=t[e](r),{c(){l.c(),s=A()},m(u,i){o[e].m(u,i),_(u,s,i),n=!0},p(u,i){let a=e;e=c(u),e===a?o[e].p(u,i):(B(),q(o[a],1,1,()=>{o[a]=null}),D(),l=o[e],l?l.p(u,i):(l=o[e]=t[e](u),l.c()),P(l,1),l.m(s.parentNode,s))},i(u){n||(P(l),n=!0)},o(u){q(l),n=!1},d(u){o[e].d(u),u&&m(s)}}}function se(r){let e,l;return e=new Y({props:{nobranding:!0,$$slots:{default:[te]},$$scope:{ctx:r}}}),{c(){F(e.$$.fragment)},m(s,n){N(e,s,n),l=!0},p(s,[n]){const t={};n&2079&&(t.$$scope={dirty:n,ctx:s}),e.$set(t)},i(s){l||(P(e.$$.fragment,s),l=!0)},o(s){q(e.$$.fragment,s),l=!1},d(s){E(e,s)}}}function le(r,e,l){let s,{params:n}=e,t="",o="",c=!1,u=!1;async function i(){if(c)return;l(2,c=!0);const g=new K("../");try{const C=O(n==null?void 0:n.token);await g.collection(C.collectionId).confirmPasswordReset(n==null?void 0:n.token,t,o),l(3,u=!0)}catch(C){Q.errorResponseHandler(C)}l(2,c=!1)}const a=()=>window.close();function v(){t=this.value,l(0,t)}function k(){o=this.value,l(1,o)}return r.$$set=g=>{"params"in g&&l(6,n=g.params)},r.$$.update=()=>{r.$$.dirty&64&&l(4,s=j.getJWTPayload(n==null?void 0:n.token).email||"")},[t,o,c,u,s,i,n,a,v,k]}class oe extends J{constructor(e){super(),M(this,e,le,se,W,{params:6})}}export{oe as default}; diff --git a/ui/dist/assets/PageRecordConfirmVerification.e052106a.js b/ui/dist/assets/PageRecordConfirmVerification.ee437942.js similarity index 97% rename from ui/dist/assets/PageRecordConfirmVerification.e052106a.js rename to ui/dist/assets/PageRecordConfirmVerification.ee437942.js index d7563ca0c..746c125aa 100644 --- a/ui/dist/assets/PageRecordConfirmVerification.e052106a.js +++ b/ui/dist/assets/PageRecordConfirmVerification.ee437942.js @@ -1,3 +1,3 @@ -import{S as v,i as y,s as w,F as x,c as C,m as g,t as $,a as H,d as L,G as M,H as P,E as S,g as r,o as a,e as u,b as _,f,u as b,y as p}from"./index.7b2502cb.js";function T(o){let t,s,e,n,l;return{c(){t=u("div"),t.innerHTML=`
+import{S as v,i as y,s as w,F as x,c as C,m as g,t as $,a as H,d as L,G as M,H as P,E as S,g as r,o as a,e as u,b as _,f,u as b,y as p}from"./index.be8ffbe5.js";function T(o){let t,s,e,n,l;return{c(){t=u("div"),t.innerHTML=`

Invalid or expired verification token.

`,s=_(),e=u("button"),e.textContent="Close",f(t,"class","alert alert-danger"),f(e,"type","button"),f(e,"class","btn btn-secondary btn-block")},m(i,c){r(i,t,c),r(i,s,c),r(i,e,c),n||(l=b(e,"click",o[4]),n=!0)},p,d(i){i&&a(t),i&&a(s),i&&a(e),n=!1,l()}}}function E(o){let t,s,e,n,l;return{c(){t=u("div"),t.innerHTML=`

Successfully verified email address.

`,s=_(),e=u("button"),e.textContent="Close",f(t,"class","alert alert-success"),f(e,"type","button"),f(e,"class","btn btn-secondary btn-block")},m(i,c){r(i,t,c),r(i,s,c),r(i,e,c),n||(l=b(e,"click",o[3]),n=!0)},p,d(i){i&&a(t),i&&a(s),i&&a(e),n=!1,l()}}}function F(o){let t;return{c(){t=u("div"),t.innerHTML='
Please wait...
',f(t,"class","txt-center")},m(s,e){r(s,t,e)},p,d(s){s&&a(t)}}}function I(o){let t;function s(l,i){return l[1]?F:l[0]?E:T}let e=s(o),n=e(o);return{c(){n.c(),t=S()},m(l,i){n.m(l,i),r(l,t,i)},p(l,i){e===(e=s(l))&&n?n.p(l,i):(n.d(1),n=e(l),n&&(n.c(),n.m(t.parentNode,t)))},d(l){n.d(l),l&&a(t)}}}function V(o){let t,s;return t=new x({props:{nobranding:!0,$$slots:{default:[I]},$$scope:{ctx:o}}}),{c(){C(t.$$.fragment)},m(e,n){g(t,e,n),s=!0},p(e,[n]){const l={};n&67&&(l.$$scope={dirty:n,ctx:e}),t.$set(l)},i(e){s||($(t.$$.fragment,e),s=!0)},o(e){H(t.$$.fragment,e),s=!1},d(e){L(t,e)}}}function q(o,t,s){let{params:e}=t,n=!1,l=!1;i();async function i(){s(1,l=!0);const d=new M("../");try{const m=P(e==null?void 0:e.token);await d.collection(m.collectionId).confirmVerification(e==null?void 0:e.token),s(0,n=!0)}catch{s(0,n=!1)}s(1,l=!1)}const c=()=>window.close(),k=()=>window.close();return o.$$set=d=>{"params"in d&&s(2,e=d.params)},[n,l,e,c,k]}class N extends v{constructor(t){super(),y(this,t,q,V,w,{params:2})}}export{N as default}; diff --git a/ui/dist/assets/RealtimeApiDocs.91e15945.js b/ui/dist/assets/RealtimeApiDocs.9639f54e.js similarity index 98% rename from ui/dist/assets/RealtimeApiDocs.91e15945.js rename to ui/dist/assets/RealtimeApiDocs.9639f54e.js index ac2102d9f..0649a66d5 100644 --- a/ui/dist/assets/RealtimeApiDocs.91e15945.js +++ b/ui/dist/assets/RealtimeApiDocs.9639f54e.js @@ -1,4 +1,4 @@ -import{S as ee,i as oe,s as te,O as se,C as I,e as u,w as E,b as a,c as K,f as p,g as s,h as P,m as Q,x as ne,t as X,a as Z,o as n,d as x,L as ie,p as ce}from"./index.7b2502cb.js";import{S as re}from"./SdkTabs.315f7f19.js";function le(t){var B,U,W,L,A,H,T,q;let i,m,c=t[0].name+"",b,d,k,f,S,v,w,r,_,$,O,g,y,h,D,l,R;return r=new re({props:{js:` +import{S as ee,i as oe,s as te,O as se,C as I,e as u,w as E,b as a,c as K,f as p,g as s,h as P,m as Q,x as ne,t as X,a as Z,o as n,d as x,L as ie,p as ce}from"./index.be8ffbe5.js";import{S as re}from"./SdkTabs.8f55857f.js";function le(t){var B,U,W,L,A,H,T,q;let i,m,c=t[0].name+"",b,d,k,f,S,v,w,r,_,$,O,g,y,h,D,l,R;return r=new re({props:{js:` import PocketBase from 'pocketbase'; const pb = new PocketBase('${t[1]}'); diff --git a/ui/dist/assets/RequestEmailChangeDocs.0d8ba857.js b/ui/dist/assets/RequestEmailChangeDocs.a5bce610.js similarity index 98% rename from ui/dist/assets/RequestEmailChangeDocs.0d8ba857.js rename to ui/dist/assets/RequestEmailChangeDocs.a5bce610.js index fcef46e01..f862f70b3 100644 --- a/ui/dist/assets/RequestEmailChangeDocs.0d8ba857.js +++ b/ui/dist/assets/RequestEmailChangeDocs.a5bce610.js @@ -1,4 +1,4 @@ -import{S as Pe,i as Te,s as Be,e as c,w as v,b as h,c as Ce,f,g as r,h as n,m as Ee,x as D,P as ve,Q as Se,k as Re,R as Me,n as Ae,t as x,a as ee,o as m,d as ye,L as Ve,C as ze,p as He,r as I,u as Le,O as Oe}from"./index.7b2502cb.js";import{S as Ue}from"./SdkTabs.315f7f19.js";function we(o,l,s){const a=o.slice();return a[5]=l[s],a}function ge(o,l,s){const a=o.slice();return a[5]=l[s],a}function $e(o,l){let s,a=l[5].code+"",_,b,i,p;function u(){return l[4](l[5])}return{key:o,first:null,c(){s=c("button"),_=v(a),b=h(),f(s,"class","tab-item"),I(s,"active",l[1]===l[5].code),this.first=s},m($,q){r($,s,q),n(s,_),n(s,b),i||(p=Le(s,"click",u),i=!0)},p($,q){l=$,q&4&&a!==(a=l[5].code+"")&&D(_,a),q&6&&I(s,"active",l[1]===l[5].code)},d($){$&&m(s),i=!1,p()}}}function qe(o,l){let s,a,_,b;return a=new Oe({props:{content:l[5].body}}),{key:o,first:null,c(){s=c("div"),Ce(a.$$.fragment),_=h(),f(s,"class","tab-item"),I(s,"active",l[1]===l[5].code),this.first=s},m(i,p){r(i,s,p),Ee(a,s,null),n(s,_),b=!0},p(i,p){l=i;const u={};p&4&&(u.content=l[5].body),a.$set(u),(!b||p&6)&&I(s,"active",l[1]===l[5].code)},i(i){b||(x(a.$$.fragment,i),b=!0)},o(i){ee(a.$$.fragment,i),b=!1},d(i){i&&m(s),ye(a)}}}function je(o){var de,pe,ue,fe;let l,s,a=o[0].name+"",_,b,i,p,u,$,q,z=o[0].name+"",F,te,K,C,N,P,Q,w,H,le,L,T,se,G,O=o[0].name+"",J,ae,oe,U,W,B,X,S,Y,R,Z,E,M,g=[],ne=new Map,ie,A,k=[],ce=new Map,y;C=new Ue({props:{js:` +import{S as Pe,i as Te,s as Be,e as c,w as v,b as h,c as Ce,f,g as r,h as n,m as Ee,x as D,P as ve,Q as Se,k as Re,R as Me,n as Ae,t as x,a as ee,o as m,d as ye,L as Ve,C as ze,p as He,r as I,u as Le,O as Oe}from"./index.be8ffbe5.js";import{S as Ue}from"./SdkTabs.8f55857f.js";function we(o,l,s){const a=o.slice();return a[5]=l[s],a}function ge(o,l,s){const a=o.slice();return a[5]=l[s],a}function $e(o,l){let s,a=l[5].code+"",_,b,i,p;function u(){return l[4](l[5])}return{key:o,first:null,c(){s=c("button"),_=v(a),b=h(),f(s,"class","tab-item"),I(s,"active",l[1]===l[5].code),this.first=s},m($,q){r($,s,q),n(s,_),n(s,b),i||(p=Le(s,"click",u),i=!0)},p($,q){l=$,q&4&&a!==(a=l[5].code+"")&&D(_,a),q&6&&I(s,"active",l[1]===l[5].code)},d($){$&&m(s),i=!1,p()}}}function qe(o,l){let s,a,_,b;return a=new Oe({props:{content:l[5].body}}),{key:o,first:null,c(){s=c("div"),Ce(a.$$.fragment),_=h(),f(s,"class","tab-item"),I(s,"active",l[1]===l[5].code),this.first=s},m(i,p){r(i,s,p),Ee(a,s,null),n(s,_),b=!0},p(i,p){l=i;const u={};p&4&&(u.content=l[5].body),a.$set(u),(!b||p&6)&&I(s,"active",l[1]===l[5].code)},i(i){b||(x(a.$$.fragment,i),b=!0)},o(i){ee(a.$$.fragment,i),b=!1},d(i){i&&m(s),ye(a)}}}function je(o){var de,pe,ue,fe;let l,s,a=o[0].name+"",_,b,i,p,u,$,q,z=o[0].name+"",F,te,K,C,N,P,Q,w,H,le,L,T,se,G,O=o[0].name+"",J,ae,oe,U,W,B,X,S,Y,R,Z,E,M,g=[],ne=new Map,ie,A,k=[],ce=new Map,y;C=new Ue({props:{js:` import PocketBase from 'pocketbase'; const pb = new PocketBase('${o[3]}'); diff --git a/ui/dist/assets/RequestPasswordResetDocs.58427c67.js b/ui/dist/assets/RequestPasswordResetDocs.4c9f6ae3.js similarity index 97% rename from ui/dist/assets/RequestPasswordResetDocs.58427c67.js rename to ui/dist/assets/RequestPasswordResetDocs.4c9f6ae3.js index 00908ad00..24ad1346e 100644 --- a/ui/dist/assets/RequestPasswordResetDocs.58427c67.js +++ b/ui/dist/assets/RequestPasswordResetDocs.4c9f6ae3.js @@ -1,4 +1,4 @@ -import{S as Pe,i as $e,s as qe,e as c,w,b as v,c as ve,f as b,g as r,h as n,m as we,x as E,P as ue,Q as Re,k as ge,R as ye,n as Be,t as Z,a as x,o as d,d as he,L as Ce,C as Se,p as Te,r as F,u as Me,O as Ae}from"./index.7b2502cb.js";import{S as Ue}from"./SdkTabs.315f7f19.js";function me(a,s,l){const o=a.slice();return o[5]=s[l],o}function be(a,s,l){const o=a.slice();return o[5]=s[l],o}function _e(a,s){let l,o=s[5].code+"",_,m,i,p;function u(){return s[4](s[5])}return{key:a,first:null,c(){l=c("button"),_=w(o),m=v(),b(l,"class","tab-item"),F(l,"active",s[1]===s[5].code),this.first=l},m(P,$){r(P,l,$),n(l,_),n(l,m),i||(p=Me(l,"click",u),i=!0)},p(P,$){s=P,$&4&&o!==(o=s[5].code+"")&&E(_,o),$&6&&F(l,"active",s[1]===s[5].code)},d(P){P&&d(l),i=!1,p()}}}function ke(a,s){let l,o,_,m;return o=new Ae({props:{content:s[5].body}}),{key:a,first:null,c(){l=c("div"),ve(o.$$.fragment),_=v(),b(l,"class","tab-item"),F(l,"active",s[1]===s[5].code),this.first=l},m(i,p){r(i,l,p),we(o,l,null),n(l,_),m=!0},p(i,p){s=i;const u={};p&4&&(u.content=s[5].body),o.$set(u),(!m||p&6)&&F(l,"active",s[1]===s[5].code)},i(i){m||(Z(o.$$.fragment,i),m=!0)},o(i){x(o.$$.fragment,i),m=!1},d(i){i&&d(l),he(o)}}}function je(a){var re,de;let s,l,o=a[0].name+"",_,m,i,p,u,P,$,D=a[0].name+"",Q,ee,z,q,G,B,J,R,H,te,I,C,se,K,L=a[0].name+"",N,le,V,S,W,T,X,M,Y,g,A,h=[],oe=new Map,ae,U,k=[],ne=new Map,y;q=new Ue({props:{js:` +import{S as Pe,i as $e,s as qe,e as c,w,b as v,c as ve,f as b,g as r,h as n,m as we,x as E,P as ue,Q as Re,k as ge,R as ye,n as Be,t as Z,a as x,o as d,d as he,L as Ce,C as Se,p as Te,r as F,u as Me,O as Ae}from"./index.be8ffbe5.js";import{S as Ue}from"./SdkTabs.8f55857f.js";function me(a,s,l){const o=a.slice();return o[5]=s[l],o}function be(a,s,l){const o=a.slice();return o[5]=s[l],o}function _e(a,s){let l,o=s[5].code+"",_,m,i,p;function u(){return s[4](s[5])}return{key:a,first:null,c(){l=c("button"),_=w(o),m=v(),b(l,"class","tab-item"),F(l,"active",s[1]===s[5].code),this.first=l},m(P,$){r(P,l,$),n(l,_),n(l,m),i||(p=Me(l,"click",u),i=!0)},p(P,$){s=P,$&4&&o!==(o=s[5].code+"")&&E(_,o),$&6&&F(l,"active",s[1]===s[5].code)},d(P){P&&d(l),i=!1,p()}}}function ke(a,s){let l,o,_,m;return o=new Ae({props:{content:s[5].body}}),{key:a,first:null,c(){l=c("div"),ve(o.$$.fragment),_=v(),b(l,"class","tab-item"),F(l,"active",s[1]===s[5].code),this.first=l},m(i,p){r(i,l,p),we(o,l,null),n(l,_),m=!0},p(i,p){s=i;const u={};p&4&&(u.content=s[5].body),o.$set(u),(!m||p&6)&&F(l,"active",s[1]===s[5].code)},i(i){m||(Z(o.$$.fragment,i),m=!0)},o(i){x(o.$$.fragment,i),m=!1},d(i){i&&d(l),he(o)}}}function je(a){var re,de;let s,l,o=a[0].name+"",_,m,i,p,u,P,$,D=a[0].name+"",Q,ee,z,q,G,B,J,R,H,te,I,C,se,K,L=a[0].name+"",N,le,V,S,W,T,X,M,Y,g,A,h=[],oe=new Map,ae,U,k=[],ne=new Map,y;q=new Ue({props:{js:` import PocketBase from 'pocketbase'; const pb = new PocketBase('${a[3]}'); diff --git a/ui/dist/assets/RequestVerificationDocs.405145d8.js b/ui/dist/assets/RequestVerificationDocs.28db8063.js similarity index 97% rename from ui/dist/assets/RequestVerificationDocs.405145d8.js rename to ui/dist/assets/RequestVerificationDocs.28db8063.js index 007c0e7d0..40c580c1d 100644 --- a/ui/dist/assets/RequestVerificationDocs.405145d8.js +++ b/ui/dist/assets/RequestVerificationDocs.28db8063.js @@ -1,4 +1,4 @@ -import{S as we,i as qe,s as Pe,e as c,w as h,b as v,c as ve,f as b,g as r,h as i,m as he,x as O,P as ue,Q as ge,k as ye,R as Be,n as Ce,t as Z,a as x,o as f,d as $e,L as Se,C as Te,p as Re,r as E,u as Ve,O as Me}from"./index.7b2502cb.js";import{S as Ae}from"./SdkTabs.315f7f19.js";function me(a,l,s){const o=a.slice();return o[5]=l[s],o}function be(a,l,s){const o=a.slice();return o[5]=l[s],o}function _e(a,l){let s,o=l[5].code+"",_,m,n,p;function u(){return l[4](l[5])}return{key:a,first:null,c(){s=c("button"),_=h(o),m=v(),b(s,"class","tab-item"),E(s,"active",l[1]===l[5].code),this.first=s},m(w,q){r(w,s,q),i(s,_),i(s,m),n||(p=Ve(s,"click",u),n=!0)},p(w,q){l=w,q&4&&o!==(o=l[5].code+"")&&O(_,o),q&6&&E(s,"active",l[1]===l[5].code)},d(w){w&&f(s),n=!1,p()}}}function ke(a,l){let s,o,_,m;return o=new Me({props:{content:l[5].body}}),{key:a,first:null,c(){s=c("div"),ve(o.$$.fragment),_=v(),b(s,"class","tab-item"),E(s,"active",l[1]===l[5].code),this.first=s},m(n,p){r(n,s,p),he(o,s,null),i(s,_),m=!0},p(n,p){l=n;const u={};p&4&&(u.content=l[5].body),o.$set(u),(!m||p&6)&&E(s,"active",l[1]===l[5].code)},i(n){m||(Z(o.$$.fragment,n),m=!0)},o(n){x(o.$$.fragment,n),m=!1},d(n){n&&f(s),$e(o)}}}function Ue(a){var re,fe;let l,s,o=a[0].name+"",_,m,n,p,u,w,q,j=a[0].name+"",F,ee,Q,P,z,C,G,g,D,te,H,S,le,J,I=a[0].name+"",K,se,N,T,W,R,X,V,Y,y,M,$=[],oe=new Map,ae,A,k=[],ie=new Map,B;P=new Ae({props:{js:` +import{S as we,i as qe,s as Pe,e as c,w as h,b as v,c as ve,f as b,g as r,h as i,m as he,x as O,P as ue,Q as ge,k as ye,R as Be,n as Ce,t as Z,a as x,o as f,d as $e,L as Se,C as Te,p as Re,r as E,u as Ve,O as Me}from"./index.be8ffbe5.js";import{S as Ae}from"./SdkTabs.8f55857f.js";function me(a,l,s){const o=a.slice();return o[5]=l[s],o}function be(a,l,s){const o=a.slice();return o[5]=l[s],o}function _e(a,l){let s,o=l[5].code+"",_,m,n,p;function u(){return l[4](l[5])}return{key:a,first:null,c(){s=c("button"),_=h(o),m=v(),b(s,"class","tab-item"),E(s,"active",l[1]===l[5].code),this.first=s},m(w,q){r(w,s,q),i(s,_),i(s,m),n||(p=Ve(s,"click",u),n=!0)},p(w,q){l=w,q&4&&o!==(o=l[5].code+"")&&O(_,o),q&6&&E(s,"active",l[1]===l[5].code)},d(w){w&&f(s),n=!1,p()}}}function ke(a,l){let s,o,_,m;return o=new Me({props:{content:l[5].body}}),{key:a,first:null,c(){s=c("div"),ve(o.$$.fragment),_=v(),b(s,"class","tab-item"),E(s,"active",l[1]===l[5].code),this.first=s},m(n,p){r(n,s,p),he(o,s,null),i(s,_),m=!0},p(n,p){l=n;const u={};p&4&&(u.content=l[5].body),o.$set(u),(!m||p&6)&&E(s,"active",l[1]===l[5].code)},i(n){m||(Z(o.$$.fragment,n),m=!0)},o(n){x(o.$$.fragment,n),m=!1},d(n){n&&f(s),$e(o)}}}function Ue(a){var re,fe;let l,s,o=a[0].name+"",_,m,n,p,u,w,q,j=a[0].name+"",F,ee,Q,P,z,C,G,g,D,te,H,S,le,J,I=a[0].name+"",K,se,N,T,W,R,X,V,Y,y,M,$=[],oe=new Map,ae,A,k=[],ie=new Map,B;P=new Ae({props:{js:` import PocketBase from 'pocketbase'; const pb = new PocketBase('${a[3]}'); diff --git a/ui/dist/assets/SdkTabs.315f7f19.js b/ui/dist/assets/SdkTabs.8f55857f.js similarity index 95% rename from ui/dist/assets/SdkTabs.315f7f19.js rename to ui/dist/assets/SdkTabs.8f55857f.js index e8e5f7a48..feb85a1de 100644 --- a/ui/dist/assets/SdkTabs.315f7f19.js +++ b/ui/dist/assets/SdkTabs.8f55857f.js @@ -1 +1 @@ -import{S as q,i as B,s as F,e as b,b as v,f as h,g as y,h as f,P as w,Q as J,k as N,R as O,n as Q,t as I,a as M,o as E,w as S,r as j,u as Y,x as P,O as z,c as A,m as G,d as H}from"./index.7b2502cb.js";function C(o,t,l){const n=o.slice();return n[5]=t[l],n}function D(o,t,l){const n=o.slice();return n[5]=t[l],n}function K(o,t){let l,n,_=t[5].title+"",u,r,s,c;function m(){return t[4](t[5])}return{key:o,first:null,c(){l=b("button"),n=b("div"),u=S(_),r=v(),h(n,"class","txt"),h(l,"class","tab-item svelte-1maocj6"),j(l,"active",t[0]===t[5].language),this.first=l},m(g,d){y(g,l,d),f(l,n),f(n,u),f(l,r),s||(c=Y(l,"click",m),s=!0)},p(g,d){t=g,d&2&&_!==(_=t[5].title+"")&&P(u,_),d&3&&j(l,"active",t[0]===t[5].language)},d(g){g&&E(l),s=!1,c()}}}function R(o,t){let l,n,_,u,r,s,c=t[5].title+"",m,g,d,p,k;return n=new z({props:{language:t[5].language,content:t[5].content}}),{key:o,first:null,c(){l=b("div"),A(n.$$.fragment),_=v(),u=b("div"),r=b("em"),s=b("a"),m=S(c),g=S(" SDK"),p=v(),h(s,"href",d=t[5].url),h(s,"target","_blank"),h(s,"rel","noopener noreferrer"),h(r,"class","txt-sm txt-hint"),h(u,"class","txt-right"),h(l,"class","tab-item svelte-1maocj6"),j(l,"active",t[0]===t[5].language),this.first=l},m(e,a){y(e,l,a),G(n,l,null),f(l,_),f(l,u),f(u,r),f(r,s),f(s,m),f(s,g),f(l,p),k=!0},p(e,a){t=e;const i={};a&2&&(i.language=t[5].language),a&2&&(i.content=t[5].content),n.$set(i),(!k||a&2)&&c!==(c=t[5].title+"")&&P(m,c),(!k||a&2&&d!==(d=t[5].url))&&h(s,"href",d),(!k||a&3)&&j(l,"active",t[0]===t[5].language)},i(e){k||(I(n.$$.fragment,e),k=!0)},o(e){M(n.$$.fragment,e),k=!1},d(e){e&&E(l),H(n)}}}function L(o){let t,l,n=[],_=new Map,u,r,s=[],c=new Map,m,g=o[1];const d=e=>e[5].language;for(let e=0;ee[5].language;for(let e=0;el(0,r=c.language);return o.$$set=c=>{"js"in c&&l(2,_=c.js),"dart"in c&&l(3,u=c.dart)},o.$$.update=()=>{o.$$.dirty&1&&r&&localStorage.setItem(T,r),o.$$.dirty&12&&l(1,n=[{title:"JavaScript",language:"javascript",content:_,url:"https://github.com/pocketbase/js-sdk/tree/rc"},{title:"Dart",language:"dart",content:u,url:"https://github.com/pocketbase/dart-sdk/tree/rc"}])},[r,n,_,u,s]}class W extends q{constructor(t){super(),B(this,t,U,L,F,{js:2,dart:3})}}export{W as S}; +import{S as q,i as B,s as F,e as b,b as v,f as h,g as y,h as f,P as w,Q as J,k as N,R as O,n as Q,t as I,a as M,o as E,w as S,r as j,u as Y,x as P,O as z,c as A,m as G,d as H}from"./index.be8ffbe5.js";function C(o,t,l){const n=o.slice();return n[5]=t[l],n}function D(o,t,l){const n=o.slice();return n[5]=t[l],n}function K(o,t){let l,n,_=t[5].title+"",u,r,s,c;function m(){return t[4](t[5])}return{key:o,first:null,c(){l=b("button"),n=b("div"),u=S(_),r=v(),h(n,"class","txt"),h(l,"class","tab-item svelte-1maocj6"),j(l,"active",t[0]===t[5].language),this.first=l},m(g,d){y(g,l,d),f(l,n),f(n,u),f(l,r),s||(c=Y(l,"click",m),s=!0)},p(g,d){t=g,d&2&&_!==(_=t[5].title+"")&&P(u,_),d&3&&j(l,"active",t[0]===t[5].language)},d(g){g&&E(l),s=!1,c()}}}function R(o,t){let l,n,_,u,r,s,c=t[5].title+"",m,g,d,p,k;return n=new z({props:{language:t[5].language,content:t[5].content}}),{key:o,first:null,c(){l=b("div"),A(n.$$.fragment),_=v(),u=b("div"),r=b("em"),s=b("a"),m=S(c),g=S(" SDK"),p=v(),h(s,"href",d=t[5].url),h(s,"target","_blank"),h(s,"rel","noopener noreferrer"),h(r,"class","txt-sm txt-hint"),h(u,"class","txt-right"),h(l,"class","tab-item svelte-1maocj6"),j(l,"active",t[0]===t[5].language),this.first=l},m(e,a){y(e,l,a),G(n,l,null),f(l,_),f(l,u),f(u,r),f(r,s),f(s,m),f(s,g),f(l,p),k=!0},p(e,a){t=e;const i={};a&2&&(i.language=t[5].language),a&2&&(i.content=t[5].content),n.$set(i),(!k||a&2)&&c!==(c=t[5].title+"")&&P(m,c),(!k||a&2&&d!==(d=t[5].url))&&h(s,"href",d),(!k||a&3)&&j(l,"active",t[0]===t[5].language)},i(e){k||(I(n.$$.fragment,e),k=!0)},o(e){M(n.$$.fragment,e),k=!1},d(e){e&&E(l),H(n)}}}function L(o){let t,l,n=[],_=new Map,u,r,s=[],c=new Map,m,g=o[1];const d=e=>e[5].language;for(let e=0;ee[5].language;for(let e=0;el(0,r=c.language);return o.$$set=c=>{"js"in c&&l(2,_=c.js),"dart"in c&&l(3,u=c.dart)},o.$$.update=()=>{o.$$.dirty&1&&r&&localStorage.setItem(T,r),o.$$.dirty&12&&l(1,n=[{title:"JavaScript",language:"javascript",content:_,url:"https://github.com/pocketbase/js-sdk/tree/rc"},{title:"Dart",language:"dart",content:u,url:"https://github.com/pocketbase/dart-sdk/tree/rc"}])},[r,n,_,u,s]}class W extends q{constructor(t){super(),B(this,t,U,L,F,{js:2,dart:3})}}export{W as S}; diff --git a/ui/dist/assets/UnlinkExternalAuthDocs.484b370f.js b/ui/dist/assets/UnlinkExternalAuthDocs.b05265d9.js similarity index 98% rename from ui/dist/assets/UnlinkExternalAuthDocs.484b370f.js rename to ui/dist/assets/UnlinkExternalAuthDocs.b05265d9.js index 1cef9e996..07f2605b3 100644 --- a/ui/dist/assets/UnlinkExternalAuthDocs.484b370f.js +++ b/ui/dist/assets/UnlinkExternalAuthDocs.b05265d9.js @@ -1,4 +1,4 @@ -import{S as qe,i as Oe,s as De,e as i,w as v,b as h,c as Se,f,g as r,h as s,m as Be,x as R,P as ye,Q as Le,k as Me,R as Ve,n as ze,t as le,a as oe,o as d,d as Ue,L as He,C as Ie,p as Re,r as j,u as je,O as Ke}from"./index.7b2502cb.js";import{S as Ne}from"./SdkTabs.315f7f19.js";function Ae(n,l,o){const a=n.slice();return a[5]=l[o],a}function Ce(n,l,o){const a=n.slice();return a[5]=l[o],a}function Pe(n,l){let o,a=l[5].code+"",_,b,c,u;function p(){return l[4](l[5])}return{key:n,first:null,c(){o=i("button"),_=v(a),b=h(),f(o,"class","tab-item"),j(o,"active",l[1]===l[5].code),this.first=o},m($,E){r($,o,E),s(o,_),s(o,b),c||(u=je(o,"click",p),c=!0)},p($,E){l=$,E&4&&a!==(a=l[5].code+"")&&R(_,a),E&6&&j(o,"active",l[1]===l[5].code)},d($){$&&d(o),c=!1,u()}}}function Te(n,l){let o,a,_,b;return a=new Ke({props:{content:l[5].body}}),{key:n,first:null,c(){o=i("div"),Se(a.$$.fragment),_=h(),f(o,"class","tab-item"),j(o,"active",l[1]===l[5].code),this.first=o},m(c,u){r(c,o,u),Be(a,o,null),s(o,_),b=!0},p(c,u){l=c;const p={};u&4&&(p.content=l[5].body),a.$set(p),(!b||u&6)&&j(o,"active",l[1]===l[5].code)},i(c){b||(le(a.$$.fragment,c),b=!0)},o(c){oe(a.$$.fragment,c),b=!1},d(c){c&&d(o),Ue(a)}}}function Qe(n){var he,_e,ke,ve;let l,o,a=n[0].name+"",_,b,c,u,p,$,E,L=n[0].name+"",K,se,ae,N,Q,A,F,T,G,g,M,ne,V,y,ie,J,z=n[0].name+"",W,ce,X,re,Y,de,H,Z,S,x,B,ee,U,te,C,q,w=[],ue=new Map,me,O,k=[],pe=new Map,P;A=new Ne({props:{js:` +import{S as qe,i as Oe,s as De,e as i,w as v,b as h,c as Se,f,g as r,h as s,m as Be,x as R,P as ye,Q as Le,k as Me,R as Ve,n as ze,t as le,a as oe,o as d,d as Ue,L as He,C as Ie,p as Re,r as j,u as je,O as Ke}from"./index.be8ffbe5.js";import{S as Ne}from"./SdkTabs.8f55857f.js";function Ae(n,l,o){const a=n.slice();return a[5]=l[o],a}function Ce(n,l,o){const a=n.slice();return a[5]=l[o],a}function Pe(n,l){let o,a=l[5].code+"",_,b,c,u;function p(){return l[4](l[5])}return{key:n,first:null,c(){o=i("button"),_=v(a),b=h(),f(o,"class","tab-item"),j(o,"active",l[1]===l[5].code),this.first=o},m($,E){r($,o,E),s(o,_),s(o,b),c||(u=je(o,"click",p),c=!0)},p($,E){l=$,E&4&&a!==(a=l[5].code+"")&&R(_,a),E&6&&j(o,"active",l[1]===l[5].code)},d($){$&&d(o),c=!1,u()}}}function Te(n,l){let o,a,_,b;return a=new Ke({props:{content:l[5].body}}),{key:n,first:null,c(){o=i("div"),Se(a.$$.fragment),_=h(),f(o,"class","tab-item"),j(o,"active",l[1]===l[5].code),this.first=o},m(c,u){r(c,o,u),Be(a,o,null),s(o,_),b=!0},p(c,u){l=c;const p={};u&4&&(p.content=l[5].body),a.$set(p),(!b||u&6)&&j(o,"active",l[1]===l[5].code)},i(c){b||(le(a.$$.fragment,c),b=!0)},o(c){oe(a.$$.fragment,c),b=!1},d(c){c&&d(o),Ue(a)}}}function Qe(n){var he,_e,ke,ve;let l,o,a=n[0].name+"",_,b,c,u,p,$,E,L=n[0].name+"",K,se,ae,N,Q,A,F,T,G,g,M,ne,V,y,ie,J,z=n[0].name+"",W,ce,X,re,Y,de,H,Z,S,x,B,ee,U,te,C,q,w=[],ue=new Map,me,O,k=[],pe=new Map,P;A=new Ne({props:{js:` import PocketBase from 'pocketbase'; const pb = new PocketBase('${n[3]}'); diff --git a/ui/dist/assets/UpdateApiDocs.1b2645fa.js b/ui/dist/assets/UpdateApiDocs.e200c0d6.js similarity index 99% rename from ui/dist/assets/UpdateApiDocs.1b2645fa.js rename to ui/dist/assets/UpdateApiDocs.e200c0d6.js index f42b61168..d57c9fdff 100644 --- a/ui/dist/assets/UpdateApiDocs.1b2645fa.js +++ b/ui/dist/assets/UpdateApiDocs.e200c0d6.js @@ -1,4 +1,4 @@ -import{S as Ct,i as St,s as Ot,C as I,O as Tt,e as r,w as y,b as m,c as Ae,f as T,g as a,h as i,m as Be,x as U,P as Pe,Q as ut,k as Mt,R as $t,n as Rt,t as pe,a as fe,o,d as Fe,L as qt,p as Dt,r as ce,u as Ht,y as G}from"./index.7b2502cb.js";import{S as Lt}from"./SdkTabs.315f7f19.js";function bt(p,t,l){const s=p.slice();return s[7]=t[l],s}function mt(p,t,l){const s=p.slice();return s[7]=t[l],s}function _t(p,t,l){const s=p.slice();return s[12]=t[l],s}function yt(p){let t;return{c(){t=r("p"),t.innerHTML="Requires admin Authorization:TOKEN header",T(t,"class","txt-hint txt-sm txt-right")},m(l,s){a(l,t,s)},d(l){l&&o(t)}}}function kt(p){let t,l,s,b,u,d,f,k,C,v,O,D,A,F,M,j,B;return{c(){t=r("tr"),t.innerHTML='Auth fields',l=m(),s=r("tr"),s.innerHTML=`
Optional +import{S as Ct,i as St,s as Ot,C as I,O as Tt,e as r,w as y,b as m,c as Ae,f as T,g as a,h as i,m as Be,x as U,P as Pe,Q as ut,k as Mt,R as $t,n as Rt,t as pe,a as fe,o,d as Fe,L as qt,p as Dt,r as ce,u as Ht,y as G}from"./index.be8ffbe5.js";import{S as Lt}from"./SdkTabs.8f55857f.js";function bt(p,t,l){const s=p.slice();return s[7]=t[l],s}function mt(p,t,l){const s=p.slice();return s[7]=t[l],s}function _t(p,t,l){const s=p.slice();return s[12]=t[l],s}function yt(p){let t;return{c(){t=r("p"),t.innerHTML="Requires admin Authorization:TOKEN header",T(t,"class","txt-hint txt-sm txt-right")},m(l,s){a(l,t,s)},d(l){l&&o(t)}}}function kt(p){let t,l,s,b,u,d,f,k,C,v,O,D,A,F,M,j,B;return{c(){t=r("tr"),t.innerHTML='Auth fields',l=m(),s=r("tr"),s.innerHTML=`
Optional username
String The username of the auth record.`,b=m(),u=r("tr"),u.innerHTML=`
Optional diff --git a/ui/dist/assets/ViewApiDocs.aaf072de.js b/ui/dist/assets/ViewApiDocs.7c16115c.js similarity index 98% rename from ui/dist/assets/ViewApiDocs.aaf072de.js rename to ui/dist/assets/ViewApiDocs.7c16115c.js index 9c8fdf456..92bf26dd0 100644 --- a/ui/dist/assets/ViewApiDocs.aaf072de.js +++ b/ui/dist/assets/ViewApiDocs.7c16115c.js @@ -1,4 +1,4 @@ -import{S as Ze,i as et,s as tt,O as Ye,e as o,w as m,b as f,c as _e,f as _,g as r,h as l,m as ke,x as me,P as Ve,Q as lt,k as st,R as nt,n as ot,t as z,a as G,o as d,d as he,L as it,C as ze,p as at,r as J,u as rt}from"./index.7b2502cb.js";import{S as dt}from"./SdkTabs.315f7f19.js";function Ge(i,s,n){const a=i.slice();return a[6]=s[n],a}function Je(i,s,n){const a=i.slice();return a[6]=s[n],a}function Ke(i){let s;return{c(){s=o("p"),s.innerHTML="Requires admin Authorization:TOKEN header",_(s,"class","txt-hint txt-sm txt-right")},m(n,a){r(n,s,a)},d(n){n&&d(s)}}}function We(i,s){let n,a=s[6].code+"",w,c,p,u;function C(){return s[5](s[6])}return{key:i,first:null,c(){n=o("button"),w=m(a),c=f(),_(n,"class","tab-item"),J(n,"active",s[2]===s[6].code),this.first=n},m(h,F){r(h,n,F),l(n,w),l(n,c),p||(u=rt(n,"click",C),p=!0)},p(h,F){s=h,F&20&&J(n,"active",s[2]===s[6].code)},d(h){h&&d(n),p=!1,u()}}}function Xe(i,s){let n,a,w,c;return a=new Ye({props:{content:s[6].body}}),{key:i,first:null,c(){n=o("div"),_e(a.$$.fragment),w=f(),_(n,"class","tab-item"),J(n,"active",s[2]===s[6].code),this.first=n},m(p,u){r(p,n,u),ke(a,n,null),l(n,w),c=!0},p(p,u){s=p,(!c||u&20)&&J(n,"active",s[2]===s[6].code)},i(p){c||(z(a.$$.fragment,p),c=!0)},o(p){G(a.$$.fragment,p),c=!1},d(p){p&&d(n),he(a)}}}function ct(i){var Ue,je;let s,n,a=i[0].name+"",w,c,p,u,C,h,F,U=i[0].name+"",K,ve,W,g,X,B,Y,$,j,we,N,E,ye,Z,Q=i[0].name+"",ee,$e,te,Ce,le,I,se,x,ne,A,oe,O,ie,Re,ae,D,re,Fe,de,ge,k,Oe,S,De,Pe,Te,ce,Ee,pe,Se,Be,Ie,fe,xe,ue,M,be,P,H,R=[],Ae=new Map,Me,L,y=[],He=new Map,T;g=new dt({props:{js:` +import{S as Ze,i as et,s as tt,O as Ye,e as o,w as m,b as f,c as _e,f as _,g as r,h as l,m as ke,x as me,P as Ve,Q as lt,k as st,R as nt,n as ot,t as z,a as G,o as d,d as he,L as it,C as ze,p as at,r as J,u as rt}from"./index.be8ffbe5.js";import{S as dt}from"./SdkTabs.8f55857f.js";function Ge(i,s,n){const a=i.slice();return a[6]=s[n],a}function Je(i,s,n){const a=i.slice();return a[6]=s[n],a}function Ke(i){let s;return{c(){s=o("p"),s.innerHTML="Requires admin Authorization:TOKEN header",_(s,"class","txt-hint txt-sm txt-right")},m(n,a){r(n,s,a)},d(n){n&&d(s)}}}function We(i,s){let n,a=s[6].code+"",w,c,p,u;function C(){return s[5](s[6])}return{key:i,first:null,c(){n=o("button"),w=m(a),c=f(),_(n,"class","tab-item"),J(n,"active",s[2]===s[6].code),this.first=n},m(h,F){r(h,n,F),l(n,w),l(n,c),p||(u=rt(n,"click",C),p=!0)},p(h,F){s=h,F&20&&J(n,"active",s[2]===s[6].code)},d(h){h&&d(n),p=!1,u()}}}function Xe(i,s){let n,a,w,c;return a=new Ye({props:{content:s[6].body}}),{key:i,first:null,c(){n=o("div"),_e(a.$$.fragment),w=f(),_(n,"class","tab-item"),J(n,"active",s[2]===s[6].code),this.first=n},m(p,u){r(p,n,u),ke(a,n,null),l(n,w),c=!0},p(p,u){s=p,(!c||u&20)&&J(n,"active",s[2]===s[6].code)},i(p){c||(z(a.$$.fragment,p),c=!0)},o(p){G(a.$$.fragment,p),c=!1},d(p){p&&d(n),he(a)}}}function ct(i){var Ue,je;let s,n,a=i[0].name+"",w,c,p,u,C,h,F,U=i[0].name+"",K,ve,W,g,X,B,Y,$,j,we,N,E,ye,Z,Q=i[0].name+"",ee,$e,te,Ce,le,I,se,x,ne,A,oe,O,ie,Re,ae,D,re,Fe,de,ge,k,Oe,S,De,Pe,Te,ce,Ee,pe,Se,Be,Ie,fe,xe,ue,M,be,P,H,R=[],Ae=new Map,Me,L,y=[],He=new Map,T;g=new dt({props:{js:` import PocketBase from 'pocketbase'; const pb = new PocketBase('${i[3]}'); diff --git a/ui/dist/assets/index.7b2502cb.js b/ui/dist/assets/index.be8ffbe5.js similarity index 99% rename from ui/dist/assets/index.7b2502cb.js rename to ui/dist/assets/index.be8ffbe5.js index ce12ea5eb..773aed092 100644 --- a/ui/dist/assets/index.7b2502cb.js +++ b/ui/dist/assets/index.be8ffbe5.js @@ -8,7 +8,7 @@ opacity: ${a-f*d}`}}function St(n,{delay:e=0,duration:t=400,easing:i=Vo}={}){const s=getComputedStyle(n),l=+s.opacity,o=parseFloat(s.height),r=parseFloat(s.paddingTop),a=parseFloat(s.paddingBottom),u=parseFloat(s.marginTop),f=parseFloat(s.marginBottom),c=parseFloat(s.borderTopWidth),d=parseFloat(s.borderBottomWidth);return{delay:e,duration:t,easing:i,css:h=>`overflow: hidden;opacity: ${Math.min(h*20,1)*l};height: ${h*o}px;padding-top: ${h*r}px;padding-bottom: ${h*a}px;margin-top: ${h*u}px;margin-bottom: ${h*f}px;border-top-width: ${h*c}px;border-bottom-width: ${h*d}px;`}}function $t(n,{delay:e=0,duration:t=400,easing:i=Vo,start:s=0,opacity:l=0}={}){const o=getComputedStyle(n),r=+o.opacity,a=o.transform==="none"?"":o.transform,u=1-s,f=r*(1-l);return{delay:e,duration:t,easing:i,css:(c,d)=>` transform: ${a} scale(${1-u*d}); opacity: ${r-f*d} - `}}function z1(n){let e,t,i,s;return{c(){e=v("input"),p(e,"type","text"),p(e,"id",n[8]),p(e,"placeholder",t=n[0]||n[1])},m(l,o){$(l,e,o),n[13](e),pe(e,n[7]),i||(s=W(e,"input",n[14]),i=!0)},p(l,o){o&3&&t!==(t=l[0]||l[1])&&p(e,"placeholder",t),o&128&&e.value!==l[7]&&pe(e,l[7])},i:x,o:x,d(l){l&&S(e),n[13](null),i=!1,s()}}}function B1(n){let e,t,i,s;function l(a){n[12](a)}var o=n[4];function r(a){let u={id:a[8],singleLine:!0,disableRequestKeys:!0,disableIndirectCollectionsKeys:!0,extraAutocompleteKeys:a[3],baseCollection:a[2],placeholder:a[0]||a[1]};return a[7]!==void 0&&(u.value=a[7]),{props:u}}return o&&(e=jt(o,r(n)),le.push(()=>ye(e,"value",l)),e.$on("submit",n[10])),{c(){e&&j(e.$$.fragment),i=Fe()},m(a,u){e&&R(e,a,u),$(a,i,u),s=!0},p(a,u){const f={};if(u&8&&(f.extraAutocompleteKeys=a[3]),u&4&&(f.baseCollection=a[2]),u&3&&(f.placeholder=a[0]||a[1]),!t&&u&128&&(t=!0,f.value=a[7],Me(()=>t=!1)),o!==(o=a[4])){if(e){be();const c=e;I(c.$$.fragment,1,0,()=>{H(c,1)}),ve()}o?(e=jt(o,r(a)),le.push(()=>ye(e,"value",l)),e.$on("submit",a[10]),j(e.$$.fragment),E(e.$$.fragment,1),R(e,i.parentNode,i)):e=null}else o&&e.$set(f)},i(a){s||(e&&E(e.$$.fragment,a),s=!0)},o(a){e&&I(e.$$.fragment,a),s=!1},d(a){a&&S(i),e&&H(e,a)}}}function Ru(n){let e,t,i,s,l,o,r=n[7]!==n[0]&&Hu();return{c(){r&&r.c(),e=O(),t=v("button"),t.innerHTML='Clear',p(t,"type","button"),p(t,"class","btn btn-secondary btn-sm btn-hint p-l-xs p-r-xs m-l-10")},m(a,u){r&&r.m(a,u),$(a,e,u),$(a,t,u),s=!0,l||(o=W(t,"click",n[15]),l=!0)},p(a,u){a[7]!==a[0]?r?u&129&&E(r,1):(r=Hu(),r.c(),E(r,1),r.m(e.parentNode,e)):r&&(be(),I(r,1,1,()=>{r=null}),ve())},i(a){s||(E(r),a&&Qe(()=>{i||(i=je(t,kn,{duration:150,x:5},!0)),i.run(1)}),s=!0)},o(a){I(r),a&&(i||(i=je(t,kn,{duration:150,x:5},!1)),i.run(0)),s=!1},d(a){r&&r.d(a),a&&S(e),a&&S(t),a&&i&&i.end(),l=!1,o()}}}function Hu(n){let e,t,i;return{c(){e=v("button"),e.innerHTML='Search',p(e,"type","submit"),p(e,"class","btn btn-expanded btn-sm btn-warning")},m(s,l){$(s,e,l),i=!0},i(s){i||(s&&Qe(()=>{t||(t=je(e,kn,{duration:150,x:5},!0)),t.run(1)}),i=!0)},o(s){s&&(t||(t=je(e,kn,{duration:150,x:5},!1)),t.run(0)),i=!1},d(s){s&&S(e),s&&t&&t.end()}}}function U1(n){let e,t,i,s,l,o,r,a,u,f,c;const d=[B1,z1],h=[];function m(g,y){return g[4]&&!g[5]?0:1}o=m(n),r=h[o]=d[o](n);let b=(n[0].length||n[7].length)&&Ru(n);return{c(){e=v("div"),t=v("form"),i=v("label"),s=v("i"),l=O(),r.c(),a=O(),b&&b.c(),p(s,"class","ri-search-line"),p(i,"for",n[8]),p(i,"class","m-l-10 txt-xl"),p(t,"class","searchbar"),p(e,"class","searchbar-wrapper")},m(g,y){$(g,e,y),_(e,t),_(t,i),_(i,s),_(t,l),h[o].m(t,null),_(t,a),b&&b.m(t,null),u=!0,f||(c=[W(t,"click",Yn(n[11])),W(t,"submit",ut(n[10]))],f=!0)},p(g,[y]){let k=o;o=m(g),o===k?h[o].p(g,y):(be(),I(h[k],1,1,()=>{h[k]=null}),ve(),r=h[o],r?r.p(g,y):(r=h[o]=d[o](g),r.c()),E(r,1),r.m(t,a)),g[0].length||g[7].length?b?(b.p(g,y),y&129&&E(b,1)):(b=Ru(g),b.c(),E(b,1),b.m(t,null)):b&&(be(),I(b,1,1,()=>{b=null}),ve())},i(g){u||(E(r),E(b),u=!0)},o(g){I(r),I(b),u=!1},d(g){g&&S(e),h[o].d(),b&&b.d(),f=!1,Re(c)}}}function W1(n,e,t){const i=It(),s="search_"+B.randomString(7);let{value:l=""}=e,{placeholder:o='Search filter, ex. created > "2022-01-01"...'}=e,{autocompleteCollection:r=new Pn}=e,{extraAutocompleteKeys:a=[]}=e,u,f=!1,c,d="";function h(M=!0){t(7,d=""),M&&(c==null||c.focus()),i("clear")}function m(){t(0,l=d),i("submit",l)}async function b(){u||f||(t(5,f=!0),t(4,u=(await st(()=>import("./FilterAutocompleteInput.a88dbdf1.js"),["./FilterAutocompleteInput.a88dbdf1.js","./index.9c8b95cd.js"],import.meta.url)).default),t(5,f=!1))}un(()=>{b()});function g(M){Ve.call(this,n,M)}function y(M){d=M,t(7,d),t(0,l)}function k(M){le[M?"unshift":"push"](()=>{c=M,t(6,c)})}function w(){d=this.value,t(7,d),t(0,l)}const C=()=>{h(!1),m()};return n.$$set=M=>{"value"in M&&t(0,l=M.value),"placeholder"in M&&t(1,o=M.placeholder),"autocompleteCollection"in M&&t(2,r=M.autocompleteCollection),"extraAutocompleteKeys"in M&&t(3,a=M.extraAutocompleteKeys)},n.$$.update=()=>{n.$$.dirty&1&&typeof l=="string"&&t(7,d=l)},[l,o,r,a,u,f,c,d,s,h,m,g,y,k,w,C]}class ka extends Ce{constructor(e){super(),$e(this,e,W1,U1,ke,{value:0,placeholder:1,autocompleteCollection:2,extraAutocompleteKeys:3})}}let qr,Ii;const Vr="app-tooltip";function ju(n){return typeof n=="string"?{text:n,position:"bottom",hideOnClick:null}:n||{}}function _i(){return Ii=Ii||document.querySelector("."+Vr),Ii||(Ii=document.createElement("div"),Ii.classList.add(Vr),document.body.appendChild(Ii)),Ii}function wg(n,e){let t=_i();if(!t.classList.contains("active")||!(e!=null&&e.text)){zr();return}t.textContent=e.text,t.className=Vr+" active",e.class&&t.classList.add(e.class),e.position&&t.classList.add(e.position),t.style.top="0px",t.style.left="0px";let i=t.offsetHeight,s=t.offsetWidth,l=n.getBoundingClientRect(),o=0,r=0,a=5;e.position=="left"?(o=l.top+l.height/2-i/2,r=l.left-s-a):e.position=="right"?(o=l.top+l.height/2-i/2,r=l.right+a):e.position=="top"?(o=l.top-i-a,r=l.left+l.width/2-s/2):e.position=="top-left"?(o=l.top-i-a,r=l.left):e.position=="top-right"?(o=l.top-i-a,r=l.right-s):e.position=="bottom-left"?(o=l.top+l.height+a,r=l.left):e.position=="bottom-right"?(o=l.top+l.height+a,r=l.right-s):(o=l.top+l.height+a,r=l.left+l.width/2-s/2),r+s>document.documentElement.clientWidth&&(r=document.documentElement.clientWidth-s),r=r>=0?r:0,o+i>document.documentElement.clientHeight&&(o=document.documentElement.clientHeight-i),o=o>=0?o:0,t.style.top=o+"px",t.style.left=r+"px"}function zr(){clearTimeout(qr),_i().classList.remove("active"),_i().activeNode=void 0}function Y1(n,e){_i().activeNode=n,clearTimeout(qr),qr=setTimeout(()=>{_i().classList.add("active"),wg(n,e)},isNaN(e.delay)?0:e.delay)}function Be(n,e){let t=ju(e);function i(){Y1(n,t)}function s(){zr()}return n.addEventListener("mouseenter",i),n.addEventListener("mouseleave",s),n.addEventListener("blur",s),(t.hideOnClick===!0||t.hideOnClick===null&&B.isFocusable(n))&&n.addEventListener("click",s),_i(),{update(l){var o,r;t=ju(l),(r=(o=_i())==null?void 0:o.activeNode)!=null&&r.contains(n)&&wg(n,t)},destroy(){var l,o;(o=(l=_i())==null?void 0:l.activeNode)!=null&&o.contains(n)&&zr(),n.removeEventListener("mouseenter",i),n.removeEventListener("mouseleave",s),n.removeEventListener("blur",s),n.removeEventListener("click",s)}}}function K1(n){let e,t,i,s;return{c(){e=v("button"),e.innerHTML='',p(e,"type","button"),p(e,"class","btn btn-secondary btn-circle svelte-1bvelc2"),ee(e,"refreshing",n[1])},m(l,o){$(l,e,o),i||(s=[Le(t=Be.call(null,e,n[0])),W(e,"click",n[2])],i=!0)},p(l,[o]){t&&Wt(t.update)&&o&1&&t.update.call(null,l[0]),o&2&&ee(e,"refreshing",l[1])},i:x,o:x,d(l){l&&S(e),i=!1,Re(s)}}}function J1(n,e,t){const i=It();let{tooltip:s={text:"Refresh",position:"right"}}=e,l=null;function o(){i("refresh");const r=s;t(0,s=null),clearTimeout(l),t(1,l=setTimeout(()=>{t(1,l=null),t(0,s=r)},150))}return un(()=>()=>clearTimeout(l)),n.$$set=r=>{"tooltip"in r&&t(0,s=r.tooltip)},[s,l,o]}class wa extends Ce{constructor(e){super(),$e(this,e,J1,K1,ke,{tooltip:0})}}function Z1(n){let e,t,i,s,l;const o=n[6].default,r=Ot(o,n,n[5],null);return{c(){e=v("th"),r&&r.c(),p(e,"tabindex","0"),p(e,"class",t="col-sort "+n[1]),ee(e,"col-sort-disabled",n[3]),ee(e,"sort-active",n[0]==="-"+n[2]||n[0]==="+"+n[2]),ee(e,"sort-desc",n[0]==="-"+n[2]),ee(e,"sort-asc",n[0]==="+"+n[2])},m(a,u){$(a,e,u),r&&r.m(e,null),i=!0,s||(l=[W(e,"click",n[7]),W(e,"keydown",n[8])],s=!0)},p(a,[u]){r&&r.p&&(!i||u&32)&&Et(r,o,a,a[5],i?Dt(o,a[5],u,null):At(a[5]),null),(!i||u&2&&t!==(t="col-sort "+a[1]))&&p(e,"class",t),(!i||u&10)&&ee(e,"col-sort-disabled",a[3]),(!i||u&7)&&ee(e,"sort-active",a[0]==="-"+a[2]||a[0]==="+"+a[2]),(!i||u&7)&&ee(e,"sort-desc",a[0]==="-"+a[2]),(!i||u&7)&&ee(e,"sort-asc",a[0]==="+"+a[2])},i(a){i||(E(r,a),i=!0)},o(a){I(r,a),i=!1},d(a){a&&S(e),r&&r.d(a),s=!1,Re(l)}}}function G1(n,e,t){let{$$slots:i={},$$scope:s}=e,{class:l=""}=e,{name:o}=e,{sort:r=""}=e,{disable:a=!1}=e;function u(){a||("-"+o===r?t(0,r="+"+o):t(0,r="-"+o))}const f=()=>u(),c=d=>{(d.code==="Enter"||d.code==="Space")&&(d.preventDefault(),u())};return n.$$set=d=>{"class"in d&&t(1,l=d.class),"name"in d&&t(2,o=d.name),"sort"in d&&t(0,r=d.sort),"disable"in d&&t(3,a=d.disable),"$$scope"in d&&t(5,s=d.$$scope)},[r,l,o,a,u,s,i,f,c]}class Ft extends Ce{constructor(e){super(),$e(this,e,G1,Z1,ke,{class:1,name:2,sort:0,disable:3})}}function X1(n){let e;return{c(){e=v("span"),e.textContent="N/A",p(e,"class","txt txt-hint")},m(t,i){$(t,e,i)},p:x,d(t){t&&S(e)}}}function Q1(n){let e,t,i,s,l,o,r;return{c(){e=v("div"),t=v("div"),i=z(n[2]),s=O(),l=v("div"),o=z(n[1]),r=z(" UTC"),p(t,"class","date"),p(l,"class","time svelte-zdiknu"),p(e,"class","datetime svelte-zdiknu")},m(a,u){$(a,e,u),_(e,t),_(t,i),_(e,s),_(e,l),_(l,o),_(l,r)},p(a,u){u&4&&ue(i,a[2]),u&2&&ue(o,a[1])},d(a){a&&S(e)}}}function x1(n){let e;function t(l,o){return l[0]?Q1:X1}let i=t(n),s=i(n);return{c(){s.c(),e=Fe()},m(l,o){s.m(l,o),$(l,e,o)},p(l,[o]){i===(i=t(l))&&s?s.p(l,o):(s.d(1),s=i(l),s&&(s.c(),s.m(e.parentNode,e)))},i:x,o:x,d(l){s.d(l),l&&S(e)}}}function ev(n,e,t){let i,s,{date:l=""}=e;return n.$$set=o=>{"date"in o&&t(0,l=o.date)},n.$$.update=()=>{n.$$.dirty&1&&t(2,i=l?l.substring(0,10):null),n.$$.dirty&1&&t(1,s=l?l.substring(10,19):null)},[l,s,i]}class Ki extends Ce{constructor(e){super(),$e(this,e,ev,x1,ke,{date:0})}}const tv=n=>({}),qu=n=>({}),nv=n=>({}),Vu=n=>({});function iv(n){let e,t,i,s,l,o,r,a;const u=n[5].before,f=Ot(u,n,n[4],Vu),c=n[5].default,d=Ot(c,n,n[4],null),h=n[5].after,m=Ot(h,n,n[4],qu);return{c(){e=v("div"),f&&f.c(),t=O(),i=v("div"),d&&d.c(),l=O(),m&&m.c(),p(i,"class",s="horizontal-scroller "+n[0]+" "+n[3]+" svelte-wc2j9h"),p(e,"class","horizontal-scroller-wrapper svelte-wc2j9h")},m(b,g){$(b,e,g),f&&f.m(e,null),_(e,t),_(e,i),d&&d.m(i,null),n[6](i),_(e,l),m&&m.m(e,null),o=!0,r||(a=[W(window,"resize",n[1]),W(i,"scroll",n[1])],r=!0)},p(b,[g]){f&&f.p&&(!o||g&16)&&Et(f,u,b,b[4],o?Dt(u,b[4],g,nv):At(b[4]),Vu),d&&d.p&&(!o||g&16)&&Et(d,c,b,b[4],o?Dt(c,b[4],g,null):At(b[4]),null),(!o||g&9&&s!==(s="horizontal-scroller "+b[0]+" "+b[3]+" svelte-wc2j9h"))&&p(i,"class",s),m&&m.p&&(!o||g&16)&&Et(m,h,b,b[4],o?Dt(h,b[4],g,tv):At(b[4]),qu)},i(b){o||(E(f,b),E(d,b),E(m,b),o=!0)},o(b){I(f,b),I(d,b),I(m,b),o=!1},d(b){b&&S(e),f&&f.d(b),d&&d.d(b),n[6](null),m&&m.d(b),r=!1,Re(a)}}}function sv(n,e,t){let{$$slots:i={},$$scope:s}=e,{class:l=""}=e,o=null,r="",a=null,u;function f(){!o||(clearTimeout(a),a=setTimeout(()=>{const d=o.offsetWidth,h=o.scrollWidth;h-d?(t(3,r="scrollable"),o.scrollLeft===0?t(3,r+=" scroll-start"):o.scrollLeft+d==h&&t(3,r+=" scroll-end")):t(3,r="")},100))}un(()=>(f(),u=new MutationObserver(()=>{f()}),u.observe(o,{attributeFilter:["width"],childList:!0,subtree:!0}),()=>{u==null||u.disconnect(),clearTimeout(a)}));function c(d){le[d?"unshift":"push"](()=>{o=d,t(2,o)})}return n.$$set=d=>{"class"in d&&t(0,l=d.class),"$$scope"in d&&t(4,s=d.$$scope)},[l,f,o,r,s,i,c]}class Sa extends Ce{constructor(e){super(),$e(this,e,sv,iv,ke,{class:0,refresh:1})}get refresh(){return this.$$.ctx[1]}}function zu(n,e,t){const i=n.slice();return i[23]=e[t],i}function lv(n){let e;return{c(){e=v("div"),e.innerHTML=` + `}}function z1(n){let e,t,i,s;return{c(){e=v("input"),p(e,"type","text"),p(e,"id",n[8]),p(e,"placeholder",t=n[0]||n[1])},m(l,o){$(l,e,o),n[13](e),pe(e,n[7]),i||(s=W(e,"input",n[14]),i=!0)},p(l,o){o&3&&t!==(t=l[0]||l[1])&&p(e,"placeholder",t),o&128&&e.value!==l[7]&&pe(e,l[7])},i:x,o:x,d(l){l&&S(e),n[13](null),i=!1,s()}}}function B1(n){let e,t,i,s;function l(a){n[12](a)}var o=n[4];function r(a){let u={id:a[8],singleLine:!0,disableRequestKeys:!0,disableIndirectCollectionsKeys:!0,extraAutocompleteKeys:a[3],baseCollection:a[2],placeholder:a[0]||a[1]};return a[7]!==void 0&&(u.value=a[7]),{props:u}}return o&&(e=jt(o,r(n)),le.push(()=>ye(e,"value",l)),e.$on("submit",n[10])),{c(){e&&j(e.$$.fragment),i=Fe()},m(a,u){e&&R(e,a,u),$(a,i,u),s=!0},p(a,u){const f={};if(u&8&&(f.extraAutocompleteKeys=a[3]),u&4&&(f.baseCollection=a[2]),u&3&&(f.placeholder=a[0]||a[1]),!t&&u&128&&(t=!0,f.value=a[7],Me(()=>t=!1)),o!==(o=a[4])){if(e){be();const c=e;I(c.$$.fragment,1,0,()=>{H(c,1)}),ve()}o?(e=jt(o,r(a)),le.push(()=>ye(e,"value",l)),e.$on("submit",a[10]),j(e.$$.fragment),E(e.$$.fragment,1),R(e,i.parentNode,i)):e=null}else o&&e.$set(f)},i(a){s||(e&&E(e.$$.fragment,a),s=!0)},o(a){e&&I(e.$$.fragment,a),s=!1},d(a){a&&S(i),e&&H(e,a)}}}function Ru(n){let e,t,i,s,l,o,r=n[7]!==n[0]&&Hu();return{c(){r&&r.c(),e=O(),t=v("button"),t.innerHTML='Clear',p(t,"type","button"),p(t,"class","btn btn-secondary btn-sm btn-hint p-l-xs p-r-xs m-l-10")},m(a,u){r&&r.m(a,u),$(a,e,u),$(a,t,u),s=!0,l||(o=W(t,"click",n[15]),l=!0)},p(a,u){a[7]!==a[0]?r?u&129&&E(r,1):(r=Hu(),r.c(),E(r,1),r.m(e.parentNode,e)):r&&(be(),I(r,1,1,()=>{r=null}),ve())},i(a){s||(E(r),a&&Qe(()=>{i||(i=je(t,kn,{duration:150,x:5},!0)),i.run(1)}),s=!0)},o(a){I(r),a&&(i||(i=je(t,kn,{duration:150,x:5},!1)),i.run(0)),s=!1},d(a){r&&r.d(a),a&&S(e),a&&S(t),a&&i&&i.end(),l=!1,o()}}}function Hu(n){let e,t,i;return{c(){e=v("button"),e.innerHTML='Search',p(e,"type","submit"),p(e,"class","btn btn-expanded btn-sm btn-warning")},m(s,l){$(s,e,l),i=!0},i(s){i||(s&&Qe(()=>{t||(t=je(e,kn,{duration:150,x:5},!0)),t.run(1)}),i=!0)},o(s){s&&(t||(t=je(e,kn,{duration:150,x:5},!1)),t.run(0)),i=!1},d(s){s&&S(e),s&&t&&t.end()}}}function U1(n){let e,t,i,s,l,o,r,a,u,f,c;const d=[B1,z1],h=[];function m(g,y){return g[4]&&!g[5]?0:1}o=m(n),r=h[o]=d[o](n);let b=(n[0].length||n[7].length)&&Ru(n);return{c(){e=v("div"),t=v("form"),i=v("label"),s=v("i"),l=O(),r.c(),a=O(),b&&b.c(),p(s,"class","ri-search-line"),p(i,"for",n[8]),p(i,"class","m-l-10 txt-xl"),p(t,"class","searchbar"),p(e,"class","searchbar-wrapper")},m(g,y){$(g,e,y),_(e,t),_(t,i),_(i,s),_(t,l),h[o].m(t,null),_(t,a),b&&b.m(t,null),u=!0,f||(c=[W(t,"click",Yn(n[11])),W(t,"submit",ut(n[10]))],f=!0)},p(g,[y]){let k=o;o=m(g),o===k?h[o].p(g,y):(be(),I(h[k],1,1,()=>{h[k]=null}),ve(),r=h[o],r?r.p(g,y):(r=h[o]=d[o](g),r.c()),E(r,1),r.m(t,a)),g[0].length||g[7].length?b?(b.p(g,y),y&129&&E(b,1)):(b=Ru(g),b.c(),E(b,1),b.m(t,null)):b&&(be(),I(b,1,1,()=>{b=null}),ve())},i(g){u||(E(r),E(b),u=!0)},o(g){I(r),I(b),u=!1},d(g){g&&S(e),h[o].d(),b&&b.d(),f=!1,Re(c)}}}function W1(n,e,t){const i=It(),s="search_"+B.randomString(7);let{value:l=""}=e,{placeholder:o='Search filter, ex. created > "2022-01-01"...'}=e,{autocompleteCollection:r=new Pn}=e,{extraAutocompleteKeys:a=[]}=e,u,f=!1,c,d="";function h(M=!0){t(7,d=""),M&&(c==null||c.focus()),i("clear")}function m(){t(0,l=d),i("submit",l)}async function b(){u||f||(t(5,f=!0),t(4,u=(await st(()=>import("./FilterAutocompleteInput.66938328.js"),["./FilterAutocompleteInput.66938328.js","./index.9c8b95cd.js"],import.meta.url)).default),t(5,f=!1))}un(()=>{b()});function g(M){Ve.call(this,n,M)}function y(M){d=M,t(7,d),t(0,l)}function k(M){le[M?"unshift":"push"](()=>{c=M,t(6,c)})}function w(){d=this.value,t(7,d),t(0,l)}const C=()=>{h(!1),m()};return n.$$set=M=>{"value"in M&&t(0,l=M.value),"placeholder"in M&&t(1,o=M.placeholder),"autocompleteCollection"in M&&t(2,r=M.autocompleteCollection),"extraAutocompleteKeys"in M&&t(3,a=M.extraAutocompleteKeys)},n.$$.update=()=>{n.$$.dirty&1&&typeof l=="string"&&t(7,d=l)},[l,o,r,a,u,f,c,d,s,h,m,g,y,k,w,C]}class ka extends Ce{constructor(e){super(),$e(this,e,W1,U1,ke,{value:0,placeholder:1,autocompleteCollection:2,extraAutocompleteKeys:3})}}let qr,Ii;const Vr="app-tooltip";function ju(n){return typeof n=="string"?{text:n,position:"bottom",hideOnClick:null}:n||{}}function _i(){return Ii=Ii||document.querySelector("."+Vr),Ii||(Ii=document.createElement("div"),Ii.classList.add(Vr),document.body.appendChild(Ii)),Ii}function wg(n,e){let t=_i();if(!t.classList.contains("active")||!(e!=null&&e.text)){zr();return}t.textContent=e.text,t.className=Vr+" active",e.class&&t.classList.add(e.class),e.position&&t.classList.add(e.position),t.style.top="0px",t.style.left="0px";let i=t.offsetHeight,s=t.offsetWidth,l=n.getBoundingClientRect(),o=0,r=0,a=5;e.position=="left"?(o=l.top+l.height/2-i/2,r=l.left-s-a):e.position=="right"?(o=l.top+l.height/2-i/2,r=l.right+a):e.position=="top"?(o=l.top-i-a,r=l.left+l.width/2-s/2):e.position=="top-left"?(o=l.top-i-a,r=l.left):e.position=="top-right"?(o=l.top-i-a,r=l.right-s):e.position=="bottom-left"?(o=l.top+l.height+a,r=l.left):e.position=="bottom-right"?(o=l.top+l.height+a,r=l.right-s):(o=l.top+l.height+a,r=l.left+l.width/2-s/2),r+s>document.documentElement.clientWidth&&(r=document.documentElement.clientWidth-s),r=r>=0?r:0,o+i>document.documentElement.clientHeight&&(o=document.documentElement.clientHeight-i),o=o>=0?o:0,t.style.top=o+"px",t.style.left=r+"px"}function zr(){clearTimeout(qr),_i().classList.remove("active"),_i().activeNode=void 0}function Y1(n,e){_i().activeNode=n,clearTimeout(qr),qr=setTimeout(()=>{_i().classList.add("active"),wg(n,e)},isNaN(e.delay)?0:e.delay)}function Be(n,e){let t=ju(e);function i(){Y1(n,t)}function s(){zr()}return n.addEventListener("mouseenter",i),n.addEventListener("mouseleave",s),n.addEventListener("blur",s),(t.hideOnClick===!0||t.hideOnClick===null&&B.isFocusable(n))&&n.addEventListener("click",s),_i(),{update(l){var o,r;t=ju(l),(r=(o=_i())==null?void 0:o.activeNode)!=null&&r.contains(n)&&wg(n,t)},destroy(){var l,o;(o=(l=_i())==null?void 0:l.activeNode)!=null&&o.contains(n)&&zr(),n.removeEventListener("mouseenter",i),n.removeEventListener("mouseleave",s),n.removeEventListener("blur",s),n.removeEventListener("click",s)}}}function K1(n){let e,t,i,s;return{c(){e=v("button"),e.innerHTML='',p(e,"type","button"),p(e,"class","btn btn-secondary btn-circle svelte-1bvelc2"),ee(e,"refreshing",n[1])},m(l,o){$(l,e,o),i||(s=[Le(t=Be.call(null,e,n[0])),W(e,"click",n[2])],i=!0)},p(l,[o]){t&&Wt(t.update)&&o&1&&t.update.call(null,l[0]),o&2&&ee(e,"refreshing",l[1])},i:x,o:x,d(l){l&&S(e),i=!1,Re(s)}}}function J1(n,e,t){const i=It();let{tooltip:s={text:"Refresh",position:"right"}}=e,l=null;function o(){i("refresh");const r=s;t(0,s=null),clearTimeout(l),t(1,l=setTimeout(()=>{t(1,l=null),t(0,s=r)},150))}return un(()=>()=>clearTimeout(l)),n.$$set=r=>{"tooltip"in r&&t(0,s=r.tooltip)},[s,l,o]}class wa extends Ce{constructor(e){super(),$e(this,e,J1,K1,ke,{tooltip:0})}}function Z1(n){let e,t,i,s,l;const o=n[6].default,r=Ot(o,n,n[5],null);return{c(){e=v("th"),r&&r.c(),p(e,"tabindex","0"),p(e,"class",t="col-sort "+n[1]),ee(e,"col-sort-disabled",n[3]),ee(e,"sort-active",n[0]==="-"+n[2]||n[0]==="+"+n[2]),ee(e,"sort-desc",n[0]==="-"+n[2]),ee(e,"sort-asc",n[0]==="+"+n[2])},m(a,u){$(a,e,u),r&&r.m(e,null),i=!0,s||(l=[W(e,"click",n[7]),W(e,"keydown",n[8])],s=!0)},p(a,[u]){r&&r.p&&(!i||u&32)&&Et(r,o,a,a[5],i?Dt(o,a[5],u,null):At(a[5]),null),(!i||u&2&&t!==(t="col-sort "+a[1]))&&p(e,"class",t),(!i||u&10)&&ee(e,"col-sort-disabled",a[3]),(!i||u&7)&&ee(e,"sort-active",a[0]==="-"+a[2]||a[0]==="+"+a[2]),(!i||u&7)&&ee(e,"sort-desc",a[0]==="-"+a[2]),(!i||u&7)&&ee(e,"sort-asc",a[0]==="+"+a[2])},i(a){i||(E(r,a),i=!0)},o(a){I(r,a),i=!1},d(a){a&&S(e),r&&r.d(a),s=!1,Re(l)}}}function G1(n,e,t){let{$$slots:i={},$$scope:s}=e,{class:l=""}=e,{name:o}=e,{sort:r=""}=e,{disable:a=!1}=e;function u(){a||("-"+o===r?t(0,r="+"+o):t(0,r="-"+o))}const f=()=>u(),c=d=>{(d.code==="Enter"||d.code==="Space")&&(d.preventDefault(),u())};return n.$$set=d=>{"class"in d&&t(1,l=d.class),"name"in d&&t(2,o=d.name),"sort"in d&&t(0,r=d.sort),"disable"in d&&t(3,a=d.disable),"$$scope"in d&&t(5,s=d.$$scope)},[r,l,o,a,u,s,i,f,c]}class Ft extends Ce{constructor(e){super(),$e(this,e,G1,Z1,ke,{class:1,name:2,sort:0,disable:3})}}function X1(n){let e;return{c(){e=v("span"),e.textContent="N/A",p(e,"class","txt txt-hint")},m(t,i){$(t,e,i)},p:x,d(t){t&&S(e)}}}function Q1(n){let e,t,i,s,l,o,r;return{c(){e=v("div"),t=v("div"),i=z(n[2]),s=O(),l=v("div"),o=z(n[1]),r=z(" UTC"),p(t,"class","date"),p(l,"class","time svelte-zdiknu"),p(e,"class","datetime svelte-zdiknu")},m(a,u){$(a,e,u),_(e,t),_(t,i),_(e,s),_(e,l),_(l,o),_(l,r)},p(a,u){u&4&&ue(i,a[2]),u&2&&ue(o,a[1])},d(a){a&&S(e)}}}function x1(n){let e;function t(l,o){return l[0]?Q1:X1}let i=t(n),s=i(n);return{c(){s.c(),e=Fe()},m(l,o){s.m(l,o),$(l,e,o)},p(l,[o]){i===(i=t(l))&&s?s.p(l,o):(s.d(1),s=i(l),s&&(s.c(),s.m(e.parentNode,e)))},i:x,o:x,d(l){s.d(l),l&&S(e)}}}function ev(n,e,t){let i,s,{date:l=""}=e;return n.$$set=o=>{"date"in o&&t(0,l=o.date)},n.$$.update=()=>{n.$$.dirty&1&&t(2,i=l?l.substring(0,10):null),n.$$.dirty&1&&t(1,s=l?l.substring(10,19):null)},[l,s,i]}class Ki extends Ce{constructor(e){super(),$e(this,e,ev,x1,ke,{date:0})}}const tv=n=>({}),qu=n=>({}),nv=n=>({}),Vu=n=>({});function iv(n){let e,t,i,s,l,o,r,a;const u=n[5].before,f=Ot(u,n,n[4],Vu),c=n[5].default,d=Ot(c,n,n[4],null),h=n[5].after,m=Ot(h,n,n[4],qu);return{c(){e=v("div"),f&&f.c(),t=O(),i=v("div"),d&&d.c(),l=O(),m&&m.c(),p(i,"class",s="horizontal-scroller "+n[0]+" "+n[3]+" svelte-wc2j9h"),p(e,"class","horizontal-scroller-wrapper svelte-wc2j9h")},m(b,g){$(b,e,g),f&&f.m(e,null),_(e,t),_(e,i),d&&d.m(i,null),n[6](i),_(e,l),m&&m.m(e,null),o=!0,r||(a=[W(window,"resize",n[1]),W(i,"scroll",n[1])],r=!0)},p(b,[g]){f&&f.p&&(!o||g&16)&&Et(f,u,b,b[4],o?Dt(u,b[4],g,nv):At(b[4]),Vu),d&&d.p&&(!o||g&16)&&Et(d,c,b,b[4],o?Dt(c,b[4],g,null):At(b[4]),null),(!o||g&9&&s!==(s="horizontal-scroller "+b[0]+" "+b[3]+" svelte-wc2j9h"))&&p(i,"class",s),m&&m.p&&(!o||g&16)&&Et(m,h,b,b[4],o?Dt(h,b[4],g,tv):At(b[4]),qu)},i(b){o||(E(f,b),E(d,b),E(m,b),o=!0)},o(b){I(f,b),I(d,b),I(m,b),o=!1},d(b){b&&S(e),f&&f.d(b),d&&d.d(b),n[6](null),m&&m.d(b),r=!1,Re(a)}}}function sv(n,e,t){let{$$slots:i={},$$scope:s}=e,{class:l=""}=e,o=null,r="",a=null,u;function f(){!o||(clearTimeout(a),a=setTimeout(()=>{const d=o.offsetWidth,h=o.scrollWidth;h-d?(t(3,r="scrollable"),o.scrollLeft===0?t(3,r+=" scroll-start"):o.scrollLeft+d==h&&t(3,r+=" scroll-end")):t(3,r="")},100))}un(()=>(f(),u=new MutationObserver(()=>{f()}),u.observe(o,{attributeFilter:["width"],childList:!0,subtree:!0}),()=>{u==null||u.disconnect(),clearTimeout(a)}));function c(d){le[d?"unshift":"push"](()=>{o=d,t(2,o)})}return n.$$set=d=>{"class"in d&&t(0,l=d.class),"$$scope"in d&&t(4,s=d.$$scope)},[l,f,o,r,s,i,c]}class Sa extends Ce{constructor(e){super(),$e(this,e,sv,iv,ke,{class:0,refresh:1})}get refresh(){return this.$$.ctx[1]}}function zu(n,e,t){const i=n.slice();return i[23]=e[t],i}function lv(n){let e;return{c(){e=v("div"),e.innerHTML=` method`,p(e,"class","col-header-content")},m(t,i){$(t,e,i)},p:x,d(t){t&&S(e)}}}function ov(n){let e,t,i,s;return{c(){e=v("div"),t=v("i"),i=O(),s=v("span"),s.textContent="url",p(t,"class",B.getFieldTypeIcon("url")),p(s,"class","txt"),p(e,"class","col-header-content")},m(l,o){$(l,e,o),_(e,t),_(e,i),_(e,s)},p:x,d(l){l&&S(e)}}}function rv(n){let e,t,i,s;return{c(){e=v("div"),t=v("i"),i=O(),s=v("span"),s.textContent="referer",p(t,"class",B.getFieldTypeIcon("url")),p(s,"class","txt"),p(e,"class","col-header-content")},m(l,o){$(l,e,o),_(e,t),_(e,i),_(e,s)},p:x,d(l){l&&S(e)}}}function av(n){let e,t,i,s;return{c(){e=v("div"),t=v("i"),i=O(),s=v("span"),s.textContent="User IP",p(t,"class",B.getFieldTypeIcon("number")),p(s,"class","txt"),p(e,"class","col-header-content")},m(l,o){$(l,e,o),_(e,t),_(e,i),_(e,s)},p:x,d(l){l&&S(e)}}}function uv(n){let e,t,i,s;return{c(){e=v("div"),t=v("i"),i=O(),s=v("span"),s.textContent="status",p(t,"class",B.getFieldTypeIcon("number")),p(s,"class","txt"),p(e,"class","col-header-content")},m(l,o){$(l,e,o),_(e,t),_(e,i),_(e,s)},p:x,d(l){l&&S(e)}}}function fv(n){let e,t,i,s;return{c(){e=v("div"),t=v("i"),i=O(),s=v("span"),s.textContent="created",p(t,"class",B.getFieldTypeIcon("date")),p(s,"class","txt"),p(e,"class","col-header-content")},m(l,o){$(l,e,o),_(e,t),_(e,i),_(e,s)},p:x,d(l){l&&S(e)}}}function Bu(n){let e;function t(l,o){return l[6]?dv:cv}let i=t(n),s=i(n);return{c(){s.c(),e=Fe()},m(l,o){s.m(l,o),$(l,e,o)},p(l,o){i===(i=t(l))&&s?s.p(l,o):(s.d(1),s=i(l),s&&(s.c(),s.m(e.parentNode,e)))},d(l){s.d(l),l&&S(e)}}}function cv(n){var r;let e,t,i,s,l,o=((r=n[0])==null?void 0:r.length)&&Uu(n);return{c(){e=v("tr"),t=v("td"),i=v("h6"),i.textContent="No logs found.",s=O(),o&&o.c(),l=O(),p(t,"colspan","99"),p(t,"class","txt-center txt-hint p-xs")},m(a,u){$(a,e,u),_(e,t),_(t,i),_(t,s),o&&o.m(t,null),_(e,l)},p(a,u){var f;(f=a[0])!=null&&f.length?o?o.p(a,u):(o=Uu(a),o.c(),o.m(t,null)):o&&(o.d(1),o=null)},d(a){a&&S(e),o&&o.d()}}}function dv(n){let e;return{c(){e=v("tr"),e.innerHTML=` `},m(t,i){$(t,e,i)},p:x,d(t){t&&S(e)}}}function Uu(n){let e,t,i;return{c(){e=v("button"),e.innerHTML='Clear filters',p(e,"type","button"),p(e,"class","btn btn-hint btn-expanded m-t-sm")},m(s,l){$(s,e,l),t||(i=W(e,"click",n[19]),t=!0)},p:x,d(s){s&&S(e),t=!1,i()}}}function Wu(n){let e;return{c(){e=v("i"),p(e,"class","ri-error-warning-line txt-danger m-l-5 m-r-5"),p(e,"title","Error")},m(t,i){$(t,e,i)},d(t){t&&S(e)}}}function Yu(n,e){var Se,we,Ue;let t,i,s,l=((Se=e[23].method)==null?void 0:Se.toUpperCase())+"",o,r,a,u,f,c=e[23].url+"",d,h,m,b,g,y,k=(e[23].referer||"N/A")+"",w,C,M,T,D,A=(e[23].userIp||"N/A")+"",P,L,V,F,U,G=e[23].status+"",K,X,Z,ie,J,fe,Y,re,Oe,ge,ae=(((we=e[23].meta)==null?void 0:we.errorMessage)||((Ue=e[23].meta)==null?void 0:Ue.errorData))&&Wu();ie=new Ki({props:{date:e[23].created}});function he(){return e[17](e[23])}function de(...ce){return e[18](e[23],...ce)}return{key:n,first:null,c(){t=v("tr"),i=v("td"),s=v("span"),o=z(l),a=O(),u=v("td"),f=v("span"),d=z(c),m=O(),ae&&ae.c(),b=O(),g=v("td"),y=v("span"),w=z(k),M=O(),T=v("td"),D=v("span"),P=z(A),V=O(),F=v("td"),U=v("span"),K=z(G),X=O(),Z=v("td"),j(ie.$$.fragment),J=O(),fe=v("td"),fe.innerHTML='',Y=O(),p(s,"class",r="label txt-uppercase "+e[9][e[23].method.toLowerCase()]),p(i,"class","col-type-text col-field-method min-width"),p(f,"class","txt txt-ellipsis"),p(f,"title",h=e[23].url),p(u,"class","col-type-text col-field-url"),p(y,"class","txt txt-ellipsis"),p(y,"title",C=e[23].referer),ee(y,"txt-hint",!e[23].referer),p(g,"class","col-type-text col-field-referer"),p(D,"class","txt txt-ellipsis"),p(D,"title",L=e[23].userIp),ee(D,"txt-hint",!e[23].userIp),p(T,"class","col-type-number col-field-userIp"),p(U,"class","label"),ee(U,"label-danger",e[23].status>=400),p(F,"class","col-type-number col-field-status"),p(Z,"class","col-type-date col-field-created"),p(fe,"class","col-type-action min-width"),p(t,"tabindex","0"),p(t,"class","row-handle"),this.first=t},m(ce,se){$(ce,t,se),_(t,i),_(i,s),_(s,o),_(t,a),_(t,u),_(u,f),_(f,d),_(u,m),ae&&ae.m(u,null),_(t,b),_(t,g),_(g,y),_(y,w),_(t,M),_(t,T),_(T,D),_(D,P),_(t,V),_(t,F),_(F,U),_(U,K),_(t,X),_(t,Z),R(ie,Z,null),_(t,J),_(t,fe),_(t,Y),re=!0,Oe||(ge=[W(t,"click",he),W(t,"keydown",de)],Oe=!0)},p(ce,se){var ne,Ee,it;e=ce,(!re||se&8)&&l!==(l=((ne=e[23].method)==null?void 0:ne.toUpperCase())+"")&&ue(o,l),(!re||se&8&&r!==(r="label txt-uppercase "+e[9][e[23].method.toLowerCase()]))&&p(s,"class",r),(!re||se&8)&&c!==(c=e[23].url+"")&&ue(d,c),(!re||se&8&&h!==(h=e[23].url))&&p(f,"title",h),((Ee=e[23].meta)==null?void 0:Ee.errorMessage)||((it=e[23].meta)==null?void 0:it.errorData)?ae||(ae=Wu(),ae.c(),ae.m(u,null)):ae&&(ae.d(1),ae=null),(!re||se&8)&&k!==(k=(e[23].referer||"N/A")+"")&&ue(w,k),(!re||se&8&&C!==(C=e[23].referer))&&p(y,"title",C),(!re||se&8)&&ee(y,"txt-hint",!e[23].referer),(!re||se&8)&&A!==(A=(e[23].userIp||"N/A")+"")&&ue(P,A),(!re||se&8&&L!==(L=e[23].userIp))&&p(D,"title",L),(!re||se&8)&&ee(D,"txt-hint",!e[23].userIp),(!re||se&8)&&G!==(G=e[23].status+"")&&ue(K,G),(!re||se&8)&&ee(U,"label-danger",e[23].status>=400);const te={};se&8&&(te.date=e[23].created),ie.$set(te)},i(ce){re||(E(ie.$$.fragment,ce),re=!0)},o(ce){I(ie.$$.fragment,ce),re=!1},d(ce){ce&&S(t),ae&&ae.d(),H(ie),Oe=!1,Re(ge)}}}function pv(n){let e,t,i,s,l,o,r,a,u,f,c,d,h,m,b,g,y,k,w,C,M,T,D,A,P=[],L=new Map,V;function F(de){n[11](de)}let U={disable:!0,class:"col-field-method",name:"method",$$slots:{default:[lv]},$$scope:{ctx:n}};n[1]!==void 0&&(U.sort=n[1]),s=new Ft({props:U}),le.push(()=>ye(s,"sort",F));function G(de){n[12](de)}let K={disable:!0,class:"col-type-text col-field-url",name:"url",$$slots:{default:[ov]},$$scope:{ctx:n}};n[1]!==void 0&&(K.sort=n[1]),r=new Ft({props:K}),le.push(()=>ye(r,"sort",G));function X(de){n[13](de)}let Z={disable:!0,class:"col-type-text col-field-referer",name:"referer",$$slots:{default:[rv]},$$scope:{ctx:n}};n[1]!==void 0&&(Z.sort=n[1]),f=new Ft({props:Z}),le.push(()=>ye(f,"sort",X));function ie(de){n[14](de)}let J={disable:!0,class:"col-type-number col-field-userIp",name:"userIp",$$slots:{default:[av]},$$scope:{ctx:n}};n[1]!==void 0&&(J.sort=n[1]),h=new Ft({props:J}),le.push(()=>ye(h,"sort",ie));function fe(de){n[15](de)}let Y={disable:!0,class:"col-type-number col-field-status",name:"status",$$slots:{default:[uv]},$$scope:{ctx:n}};n[1]!==void 0&&(Y.sort=n[1]),g=new Ft({props:Y}),le.push(()=>ye(g,"sort",fe));function re(de){n[16](de)}let Oe={disable:!0,class:"col-type-date col-field-created",name:"created",$$slots:{default:[fv]},$$scope:{ctx:n}};n[1]!==void 0&&(Oe.sort=n[1]),w=new Ft({props:Oe}),le.push(()=>ye(w,"sort",re));let ge=n[3];const ae=de=>de[23].id;for(let de=0;del=!1)),s.$set(we);const Ue={};Se&67108864&&(Ue.$$scope={dirty:Se,ctx:de}),!a&&Se&2&&(a=!0,Ue.sort=de[1],Me(()=>a=!1)),r.$set(Ue);const ce={};Se&67108864&&(ce.$$scope={dirty:Se,ctx:de}),!c&&Se&2&&(c=!0,ce.sort=de[1],Me(()=>c=!1)),f.$set(ce);const se={};Se&67108864&&(se.$$scope={dirty:Se,ctx:de}),!m&&Se&2&&(m=!0,se.sort=de[1],Me(()=>m=!1)),h.$set(se);const te={};Se&67108864&&(te.$$scope={dirty:Se,ctx:de}),!y&&Se&2&&(y=!0,te.sort=de[1],Me(()=>y=!1)),g.$set(te);const ne={};Se&67108864&&(ne.$$scope={dirty:Se,ctx:de}),!C&&Se&2&&(C=!0,ne.sort=de[1],Me(()=>C=!1)),w.$set(ne),Se&841&&(ge=de[3],be(),P=bt(P,Se,ae,1,de,ge,L,A,xt,Yu,null,zu),ve(),!ge.length&&he?he.p(de,Se):ge.length?he&&(he.d(1),he=null):(he=Bu(de),he.c(),he.m(A,null))),(!V||Se&64)&&ee(e,"table-loading",de[6])},i(de){if(!V){E(s.$$.fragment,de),E(r.$$.fragment,de),E(f.$$.fragment,de),E(h.$$.fragment,de),E(g.$$.fragment,de),E(w.$$.fragment,de);for(let Se=0;Se{if(L<=1&&b(),t(6,d=!1),t(5,f=F.page),t(4,c=F.totalItems),s("load",u.concat(F.items)),V){const U=++h;for(;F.items.length&&h==U;)t(3,u=u.concat(F.items.splice(0,10))),await B.yieldToMain()}else t(3,u=u.concat(F.items))}).catch(F=>{F!=null&&F.isAbort||(t(6,d=!1),console.warn(F),b(),me.errorResponseHandler(F,!1))})}function b(){t(3,u=[]),t(5,f=1),t(4,c=0)}function g(L){a=L,t(1,a)}function y(L){a=L,t(1,a)}function k(L){a=L,t(1,a)}function w(L){a=L,t(1,a)}function C(L){a=L,t(1,a)}function M(L){a=L,t(1,a)}const T=L=>s("select",L),D=(L,V)=>{V.code==="Enter"&&(V.preventDefault(),s("select",L))},A=()=>t(0,o=""),P=()=>m(f+1);return n.$$set=L=>{"filter"in L&&t(0,o=L.filter),"presets"in L&&t(10,r=L.presets),"sort"in L&&t(1,a=L.sort)},n.$$.update=()=>{n.$$.dirty&1027&&(typeof a<"u"||typeof o<"u"||typeof r<"u")&&(b(),m(1)),n.$$.dirty&24&&t(7,i=c>u.length)},[o,a,m,u,c,f,d,i,s,l,r,g,y,k,w,C,M,T,D,A,P]}class gv extends Ce{constructor(e){super(),$e(this,e,mv,hv,ke,{filter:0,presets:10,sort:1,load:2})}get load(){return this.$$.ctx[2]}}/*! * Chart.js v3.9.1 @@ -81,7 +81,7 @@ `),s=v("code"),s.textContent="id",l=z(` , `),o=v("code"),o.textContent="created",r=z(` , `),a=v("code"),a.textContent="updated",u=O(),L&&L.c(),f=z(` - .`),c=O(),d=v("div");for(let G=0;Gy.name===g)}function f(g){let y=[];if(g.toDelete)return y;for(let k of i.schema)k===g||k.toDelete||y.push(k.name);return y}function c(g,y){if(!g)return;g.dataTransfer.dropEffect="move";const k=parseInt(g.dataTransfer.getData("text/plain")),w=i.schema;ko(g),m=(g,y)=>OC(y==null?void 0:y.detail,g),b=(g,y)=>c(y==null?void 0:y.detail,g);return n.$$set=g=>{"collection"in g&&t(0,i=g.collection)},n.$$.update=()=>{n.$$.dirty&1&&typeof(i==null?void 0:i.schema)>"u"&&(t(0,i=i||{}),t(0,i.schema=[],i)),n.$$.dirty&1&&(i.isAuth?t(1,l=s.concat(["username","email","emailVisibility","verified","tokenKey","passwordHash","lastResetSentAt","lastVerificationSentAt","password","passwordConfirm","oldPassword"])):t(1,l=s.slice(0)))},[i,l,o,r,f,c,d,h,m,b]}class EC extends Ce{constructor(e){super(),$e(this,e,DC,TC,ke,{collection:0})}}const AC=n=>({isAdminOnly:n&512}),ed=n=>({isAdminOnly:n[9]});function IC(n){let e,t,i,s;function l(a,u){return a[9]?NC:LC}let o=l(n),r=o(n);return i=new _e({props:{class:"form-field rule-field m-0 "+(n[4]?"requied":"")+" "+(n[9]?"disabled":""),name:n[3],$$slots:{default:[jC,({uniqueId:a})=>({17:a}),({uniqueId:a})=>a?131072:0]},$$scope:{ctx:n}}}),{c(){e=v("div"),r.c(),t=O(),j(i.$$.fragment),p(e,"class","rule-block svelte-fjxz7k")},m(a,u){$(a,e,u),r.m(e,null),_(e,t),R(i,e,null),s=!0},p(a,u){o===(o=l(a))&&r?r.p(a,u):(r.d(1),r=o(a),r&&(r.c(),r.m(e,t)));const f={};u&528&&(f.class="form-field rule-field m-0 "+(a[4]?"requied":"")+" "+(a[9]?"disabled":"")),u&8&&(f.name=a[3]),u&164519&&(f.$$scope={dirty:u,ctx:a}),i.$set(f)},i(a){s||(E(i.$$.fragment,a),s=!0)},o(a){I(i.$$.fragment,a),s=!1},d(a){a&&S(e),r.d(),H(i)}}}function PC(n){let e;return{c(){e=v("div"),e.innerHTML='',p(e,"class","txt-center")},m(t,i){$(t,e,i)},p:x,i:x,o:x,d(t){t&&S(e)}}}function LC(n){let e,t,i;return{c(){e=v("button"),e.innerHTML='',p(e,"type","button"),p(e,"class","rule-toggle-btn btn btn-circle btn-outline svelte-fjxz7k")},m(s,l){$(s,e,l),t||(i=[Le(Be.call(null,e,{text:"Lock and set to Admins only",position:"left"})),W(e,"click",n[12])],t=!0)},p:x,d(s){s&&S(e),t=!1,Re(i)}}}function NC(n){let e,t,i;return{c(){e=v("button"),e.innerHTML='',p(e,"type","button"),p(e,"class","rule-toggle-btn btn btn-circle btn-outline btn-success svelte-fjxz7k")},m(s,l){$(s,e,l),t||(i=[Le(Be.call(null,e,{text:"Unlock and set custom rule",position:"left"})),W(e,"click",n[11])],t=!0)},p:x,d(s){s&&S(e),t=!1,Re(i)}}}function FC(n){let e;return{c(){e=z("Leave empty to grant everyone access")},m(t,i){$(t,e,i)},d(t){t&&S(e)}}}function RC(n){let e;return{c(){e=z("Only admins will be able to perform this action (unlock to change)")},m(t,i){$(t,e,i)},d(t){t&&S(e)}}}function HC(n){let e;function t(l,o){return l[9]?RC:FC}let i=t(n),s=i(n);return{c(){e=v("p"),s.c()},m(l,o){$(l,e,o),s.m(e,null)},p(l,o){i!==(i=t(l))&&(s.d(1),s=i(l),s&&(s.c(),s.m(e,null)))},d(l){l&&S(e),s.d()}}}function jC(n){let e,t,i,s=n[9]?"Admins only":"Custom rule",l,o,r,a,u,f,c,d;function h(w){n[14](w)}var m=n[7];function b(w){let C={id:w[17],baseCollection:w[1],disabled:w[9]};return w[0]!==void 0&&(C.value=w[0]),{props:C}}m&&(a=jt(m,b(n)),n[13](a),le.push(()=>ye(a,"value",h)));const g=n[10].default,y=Ot(g,n,n[15],ed),k=y||HC(n);return{c(){e=v("label"),t=z(n[2]),i=z(" - "),l=z(s),r=O(),a&&j(a.$$.fragment),f=O(),c=v("div"),k&&k.c(),p(e,"for",o=n[17]),p(c,"class","help-block")},m(w,C){$(w,e,C),_(e,t),_(e,i),_(e,l),$(w,r,C),a&&R(a,w,C),$(w,f,C),$(w,c,C),k&&k.m(c,null),d=!0},p(w,C){(!d||C&4)&&ue(t,w[2]),(!d||C&512)&&s!==(s=w[9]?"Admins only":"Custom rule")&&ue(l,s),(!d||C&131072&&o!==(o=w[17]))&&p(e,"for",o);const M={};if(C&131072&&(M.id=w[17]),C&2&&(M.baseCollection=w[1]),C&512&&(M.disabled=w[9]),!u&&C&1&&(u=!0,M.value=w[0],Me(()=>u=!1)),m!==(m=w[7])){if(a){be();const T=a;I(T.$$.fragment,1,0,()=>{H(T,1)}),ve()}m?(a=jt(m,b(w)),w[13](a),le.push(()=>ye(a,"value",h)),j(a.$$.fragment),E(a.$$.fragment,1),R(a,f.parentNode,f)):a=null}else m&&a.$set(M);y?y.p&&(!d||C&33280)&&Et(y,g,w,w[15],d?Dt(g,w[15],C,AC):At(w[15]),ed):k&&k.p&&(!d||C&512)&&k.p(w,d?C:-1)},i(w){d||(a&&E(a.$$.fragment,w),E(k,w),d=!0)},o(w){a&&I(a.$$.fragment,w),I(k,w),d=!1},d(w){w&&S(e),w&&S(r),n[13](null),a&&H(a,w),w&&S(f),w&&S(c),k&&k.d(w)}}}function qC(n){let e,t,i,s;const l=[PC,IC],o=[];function r(a,u){return a[8]?0:1}return e=r(n),t=o[e]=l[e](n),{c(){t.c(),i=Fe()},m(a,u){o[e].m(a,u),$(a,i,u),s=!0},p(a,[u]){let f=e;e=r(a),e===f?o[e].p(a,u):(be(),I(o[f],1,1,()=>{o[f]=null}),ve(),t=o[e],t?t.p(a,u):(t=o[e]=l[e](a),t.c()),E(t,1),t.m(i.parentNode,i))},i(a){s||(E(t),s=!0)},o(a){I(t),s=!1},d(a){o[e].d(a),a&&S(i)}}}let td;function VC(n,e,t){let i,{$$slots:s={},$$scope:l}=e,{collection:o=null}=e,{rule:r=null}=e,{label:a="Rule"}=e,{formKey:u="rule"}=e,{required:f=!1}=e,c=null,d=null,h=td,m=!1;async function b(){h||m||(t(8,m=!0),t(7,h=(await st(()=>import("./FilterAutocompleteInput.a88dbdf1.js"),["./FilterAutocompleteInput.a88dbdf1.js","./index.9c8b95cd.js"],import.meta.url)).default),td=h,t(8,m=!1))}b();const g=async()=>{t(0,r=d||""),await $n(),c==null||c.focus()},y=()=>{t(6,d=r),t(0,r=null)};function k(C){le[C?"unshift":"push"](()=>{c=C,t(5,c)})}function w(C){r=C,t(0,r)}return n.$$set=C=>{"collection"in C&&t(1,o=C.collection),"rule"in C&&t(0,r=C.rule),"label"in C&&t(2,a=C.label),"formKey"in C&&t(3,u=C.formKey),"required"in C&&t(4,f=C.required),"$$scope"in C&&t(15,l=C.$$scope)},n.$$.update=()=>{n.$$.dirty&1&&t(9,i=r===null)},[r,o,a,u,f,c,d,h,m,i,s,g,y,k,w,l]}class ds extends Ce{constructor(e){super(),$e(this,e,VC,qC,ke,{collection:1,rule:0,label:2,formKey:3,required:4})}}function nd(n,e,t){const i=n.slice();return i[9]=e[t],i}function id(n){let e,t,i,s,l,o,r,a,u,f,c,d,h,m,b,g,y,k,w,C,M,T,D,A,P,L,V,F,U,G,K=n[0].schema,X=[];for(let Z=0;Z@request filter:",y=O(),k=v("div"),k.innerHTML=`@request.method + .`),c=O(),d=v("div");for(let G=0;Gy.name===g)}function f(g){let y=[];if(g.toDelete)return y;for(let k of i.schema)k===g||k.toDelete||y.push(k.name);return y}function c(g,y){if(!g)return;g.dataTransfer.dropEffect="move";const k=parseInt(g.dataTransfer.getData("text/plain")),w=i.schema;ko(g),m=(g,y)=>OC(y==null?void 0:y.detail,g),b=(g,y)=>c(y==null?void 0:y.detail,g);return n.$$set=g=>{"collection"in g&&t(0,i=g.collection)},n.$$.update=()=>{n.$$.dirty&1&&typeof(i==null?void 0:i.schema)>"u"&&(t(0,i=i||{}),t(0,i.schema=[],i)),n.$$.dirty&1&&(i.isAuth?t(1,l=s.concat(["username","email","emailVisibility","verified","tokenKey","passwordHash","lastResetSentAt","lastVerificationSentAt","password","passwordConfirm","oldPassword"])):t(1,l=s.slice(0)))},[i,l,o,r,f,c,d,h,m,b]}class EC extends Ce{constructor(e){super(),$e(this,e,DC,TC,ke,{collection:0})}}const AC=n=>({isAdminOnly:n&512}),ed=n=>({isAdminOnly:n[9]});function IC(n){let e,t,i,s;function l(a,u){return a[9]?NC:LC}let o=l(n),r=o(n);return i=new _e({props:{class:"form-field rule-field m-0 "+(n[4]?"requied":"")+" "+(n[9]?"disabled":""),name:n[3],$$slots:{default:[jC,({uniqueId:a})=>({17:a}),({uniqueId:a})=>a?131072:0]},$$scope:{ctx:n}}}),{c(){e=v("div"),r.c(),t=O(),j(i.$$.fragment),p(e,"class","rule-block svelte-fjxz7k")},m(a,u){$(a,e,u),r.m(e,null),_(e,t),R(i,e,null),s=!0},p(a,u){o===(o=l(a))&&r?r.p(a,u):(r.d(1),r=o(a),r&&(r.c(),r.m(e,t)));const f={};u&528&&(f.class="form-field rule-field m-0 "+(a[4]?"requied":"")+" "+(a[9]?"disabled":"")),u&8&&(f.name=a[3]),u&164519&&(f.$$scope={dirty:u,ctx:a}),i.$set(f)},i(a){s||(E(i.$$.fragment,a),s=!0)},o(a){I(i.$$.fragment,a),s=!1},d(a){a&&S(e),r.d(),H(i)}}}function PC(n){let e;return{c(){e=v("div"),e.innerHTML='',p(e,"class","txt-center")},m(t,i){$(t,e,i)},p:x,i:x,o:x,d(t){t&&S(e)}}}function LC(n){let e,t,i;return{c(){e=v("button"),e.innerHTML='',p(e,"type","button"),p(e,"class","rule-toggle-btn btn btn-circle btn-outline svelte-fjxz7k")},m(s,l){$(s,e,l),t||(i=[Le(Be.call(null,e,{text:"Lock and set to Admins only",position:"left"})),W(e,"click",n[12])],t=!0)},p:x,d(s){s&&S(e),t=!1,Re(i)}}}function NC(n){let e,t,i;return{c(){e=v("button"),e.innerHTML='',p(e,"type","button"),p(e,"class","rule-toggle-btn btn btn-circle btn-outline btn-success svelte-fjxz7k")},m(s,l){$(s,e,l),t||(i=[Le(Be.call(null,e,{text:"Unlock and set custom rule",position:"left"})),W(e,"click",n[11])],t=!0)},p:x,d(s){s&&S(e),t=!1,Re(i)}}}function FC(n){let e;return{c(){e=z("Leave empty to grant everyone access")},m(t,i){$(t,e,i)},d(t){t&&S(e)}}}function RC(n){let e;return{c(){e=z("Only admins will be able to perform this action (unlock to change)")},m(t,i){$(t,e,i)},d(t){t&&S(e)}}}function HC(n){let e;function t(l,o){return l[9]?RC:FC}let i=t(n),s=i(n);return{c(){e=v("p"),s.c()},m(l,o){$(l,e,o),s.m(e,null)},p(l,o){i!==(i=t(l))&&(s.d(1),s=i(l),s&&(s.c(),s.m(e,null)))},d(l){l&&S(e),s.d()}}}function jC(n){let e,t,i,s=n[9]?"Admins only":"Custom rule",l,o,r,a,u,f,c,d;function h(w){n[14](w)}var m=n[7];function b(w){let C={id:w[17],baseCollection:w[1],disabled:w[9]};return w[0]!==void 0&&(C.value=w[0]),{props:C}}m&&(a=jt(m,b(n)),n[13](a),le.push(()=>ye(a,"value",h)));const g=n[10].default,y=Ot(g,n,n[15],ed),k=y||HC(n);return{c(){e=v("label"),t=z(n[2]),i=z(" - "),l=z(s),r=O(),a&&j(a.$$.fragment),f=O(),c=v("div"),k&&k.c(),p(e,"for",o=n[17]),p(c,"class","help-block")},m(w,C){$(w,e,C),_(e,t),_(e,i),_(e,l),$(w,r,C),a&&R(a,w,C),$(w,f,C),$(w,c,C),k&&k.m(c,null),d=!0},p(w,C){(!d||C&4)&&ue(t,w[2]),(!d||C&512)&&s!==(s=w[9]?"Admins only":"Custom rule")&&ue(l,s),(!d||C&131072&&o!==(o=w[17]))&&p(e,"for",o);const M={};if(C&131072&&(M.id=w[17]),C&2&&(M.baseCollection=w[1]),C&512&&(M.disabled=w[9]),!u&&C&1&&(u=!0,M.value=w[0],Me(()=>u=!1)),m!==(m=w[7])){if(a){be();const T=a;I(T.$$.fragment,1,0,()=>{H(T,1)}),ve()}m?(a=jt(m,b(w)),w[13](a),le.push(()=>ye(a,"value",h)),j(a.$$.fragment),E(a.$$.fragment,1),R(a,f.parentNode,f)):a=null}else m&&a.$set(M);y?y.p&&(!d||C&33280)&&Et(y,g,w,w[15],d?Dt(g,w[15],C,AC):At(w[15]),ed):k&&k.p&&(!d||C&512)&&k.p(w,d?C:-1)},i(w){d||(a&&E(a.$$.fragment,w),E(k,w),d=!0)},o(w){a&&I(a.$$.fragment,w),I(k,w),d=!1},d(w){w&&S(e),w&&S(r),n[13](null),a&&H(a,w),w&&S(f),w&&S(c),k&&k.d(w)}}}function qC(n){let e,t,i,s;const l=[PC,IC],o=[];function r(a,u){return a[8]?0:1}return e=r(n),t=o[e]=l[e](n),{c(){t.c(),i=Fe()},m(a,u){o[e].m(a,u),$(a,i,u),s=!0},p(a,[u]){let f=e;e=r(a),e===f?o[e].p(a,u):(be(),I(o[f],1,1,()=>{o[f]=null}),ve(),t=o[e],t?t.p(a,u):(t=o[e]=l[e](a),t.c()),E(t,1),t.m(i.parentNode,i))},i(a){s||(E(t),s=!0)},o(a){I(t),s=!1},d(a){o[e].d(a),a&&S(i)}}}let td;function VC(n,e,t){let i,{$$slots:s={},$$scope:l}=e,{collection:o=null}=e,{rule:r=null}=e,{label:a="Rule"}=e,{formKey:u="rule"}=e,{required:f=!1}=e,c=null,d=null,h=td,m=!1;async function b(){h||m||(t(8,m=!0),t(7,h=(await st(()=>import("./FilterAutocompleteInput.66938328.js"),["./FilterAutocompleteInput.66938328.js","./index.9c8b95cd.js"],import.meta.url)).default),td=h,t(8,m=!1))}b();const g=async()=>{t(0,r=d||""),await $n(),c==null||c.focus()},y=()=>{t(6,d=r),t(0,r=null)};function k(C){le[C?"unshift":"push"](()=>{c=C,t(5,c)})}function w(C){r=C,t(0,r)}return n.$$set=C=>{"collection"in C&&t(1,o=C.collection),"rule"in C&&t(0,r=C.rule),"label"in C&&t(2,a=C.label),"formKey"in C&&t(3,u=C.formKey),"required"in C&&t(4,f=C.required),"$$scope"in C&&t(15,l=C.$$scope)},n.$$.update=()=>{n.$$.dirty&1&&t(9,i=r===null)},[r,o,a,u,f,c,d,h,m,i,s,g,y,k,w,l]}class ds extends Ce{constructor(e){super(),$e(this,e,VC,qC,ke,{collection:1,rule:0,label:2,formKey:3,required:4})}}function nd(n,e,t){const i=n.slice();return i[9]=e[t],i}function id(n){let e,t,i,s,l,o,r,a,u,f,c,d,h,m,b,g,y,k,w,C,M,T,D,A,P,L,V,F,U,G,K=n[0].schema,X=[];for(let Z=0;Z@request filter:",y=O(),k=v("div"),k.innerHTML=`@request.method @request.query.* @request.data.* @request.auth.*`,w=O(),C=v("hr"),M=O(),T=v("p"),T.innerHTML="You could also add constraints and query other collections using the @collection filter:",D=O(),A=v("div"),A.innerHTML="@collection.ANY_COLLECTION_NAME.*",P=O(),L=v("hr"),V=O(),F=v("p"),F.innerHTML=`Example rule: @@ -101,8 +101,8 @@ Also note that some OAuth2 providers (like Twitter), don't return an email and t `),s=v("strong"),o=z(l),r=O(),a=v("i"),u=O(),f=v("strong"),d=z(c),p(s,"class","txt-strikethrough txt-hint"),p(a,"class","ri-arrow-right-line txt-sm"),p(f,"class","txt"),p(t,"class","inline-flex")},m(h,m){$(h,e,m),_(e,t),_(t,i),_(t,s),_(s,o),_(t,r),_(t,a),_(t,u),_(t,f),_(f,d)},p(h,m){m&16&&l!==(l=h[14].originalName+"")&&ue(o,l),m&16&&c!==(c=h[14].name+"")&&ue(d,c)},d(h){h&&S(e)}}}function gd(n){let e,t,i,s=n[14].name+"",l,o;return{c(){e=v("li"),t=z("Removed field "),i=v("span"),l=z(s),o=O(),p(i,"class","txt-bold"),p(e,"class","txt-danger")},m(r,a){$(r,e,a),_(e,t),_(e,i),_(i,l),_(e,o)},p(r,a){a&8&&s!==(s=r[14].name+"")&&ue(l,s)},d(r){r&&S(e)}}}function g4(n){let e,t,i,s,l,o,r,a,u,f,c,d,h=n[3].length&&pd(),m=n[5]&&hd(n),b=n[4],g=[];for(let w=0;w',i=O(),s=v("div"),l=v("p"),l.textContent=`If any of the following changes is part of another collection rule or filter, you'll have to update it manually!`,o=O(),h&&h.c(),r=O(),a=v("h6"),a.textContent="Changes:",u=O(),f=v("ul"),m&&m.c(),c=O();for(let w=0;wCancel',t=O(),i=v("button"),i.innerHTML='Confirm',e.autofocus=!0,p(e,"type","button"),p(e,"class","btn btn-secondary"),p(i,"type","button"),p(i,"class","btn btn-expanded")},m(o,r){$(o,e,r),$(o,t,r),$(o,i,r),e.focus(),s||(l=[W(e,"click",n[8]),W(i,"click",n[9])],s=!0)},p:x,d(o){o&&S(e),o&&S(t),o&&S(i),s=!1,Re(l)}}}function v4(n){let e,t,i={class:"confirm-changes-panel",popup:!0,$$slots:{footer:[b4],header:[_4],default:[g4]},$$scope:{ctx:n}};return e=new Jn({props:i}),n[10](e),e.$on("hide",n[11]),e.$on("show",n[12]),{c(){j(e.$$.fragment)},m(s,l){R(e,s,l),t=!0},p(s,[l]){const o={};l&524346&&(o.$$scope={dirty:l,ctx:s}),e.$set(o)},i(s){t||(E(e.$$.fragment,s),t=!0)},o(s){I(e.$$.fragment,s),t=!1},d(s){n[10](null),H(e,s)}}}function y4(n,e,t){let i,s,l;const o=It();let r,a;async function u(y){t(1,a=y),await $n(),!i&&!s.length&&!l.length?c():r==null||r.show()}function f(){r==null||r.hide()}function c(){f(),o("confirm")}const d=()=>f(),h=()=>c();function m(y){le[y?"unshift":"push"](()=>{r=y,t(2,r)})}function b(y){Ve.call(this,n,y)}function g(y){Ve.call(this,n,y)}return n.$$.update=()=>{n.$$.dirty&2&&t(5,i=(a==null?void 0:a.originalName)!=(a==null?void 0:a.name)),n.$$.dirty&2&&t(4,s=(a==null?void 0:a.schema.filter(y=>y.id&&!y.toDelete&&y.originalName!=y.name))||[]),n.$$.dirty&2&&t(3,l=(a==null?void 0:a.schema.filter(y=>y.id&&y.toDelete))||[])},[f,a,r,l,s,i,c,u,d,h,m,b,g]}class k4 extends Ce{constructor(e){super(),$e(this,e,y4,v4,ke,{show:7,hide:0})}get show(){return this.$$.ctx[7]}get hide(){return this.$$.ctx[0]}}function _d(n,e,t){const i=n.slice();return i[43]=e[t][0],i[44]=e[t][1],i}function bd(n){let e,t,i,s;function l(r){n[30](r)}let o={};return n[2]!==void 0&&(o.collection=n[2]),t=new KC({props:o}),le.push(()=>ye(t,"collection",l)),{c(){e=v("div"),j(t.$$.fragment),p(e,"class","tab-item active")},m(r,a){$(r,e,a),R(t,e,null),s=!0},p(r,a){const u={};!i&&a[0]&4&&(i=!0,u.collection=r[2],Me(()=>i=!1)),t.$set(u)},i(r){s||(E(t.$$.fragment,r),s=!0)},o(r){I(t.$$.fragment,r),s=!1},d(r){r&&S(e),H(t)}}}function vd(n){let e,t,i,s;function l(r){n[31](r)}let o={};return n[2]!==void 0&&(o.collection=n[2]),t=new m4({props:o}),le.push(()=>ye(t,"collection",l)),{c(){e=v("div"),j(t.$$.fragment),p(e,"class","tab-item"),ee(e,"active",n[3]===Cs)},m(r,a){$(r,e,a),R(t,e,null),s=!0},p(r,a){const u={};!i&&a[0]&4&&(i=!0,u.collection=r[2],Me(()=>i=!1)),t.$set(u),(!s||a[0]&8)&&ee(e,"active",r[3]===Cs)},i(r){s||(E(t.$$.fragment,r),s=!0)},o(r){I(t.$$.fragment,r),s=!1},d(r){r&&S(e),H(t)}}}function w4(n){let e,t,i,s,l,o,r;function a(d){n[29](d)}let u={};n[2]!==void 0&&(u.collection=n[2]),i=new EC({props:u}),le.push(()=>ye(i,"collection",a));let f=n[3]===ml&&bd(n),c=n[2].isAuth&&vd(n);return{c(){e=v("div"),t=v("div"),j(i.$$.fragment),l=O(),f&&f.c(),o=O(),c&&c.c(),p(t,"class","tab-item"),ee(t,"active",n[3]===gi),p(e,"class","tabs-content svelte-lo1530")},m(d,h){$(d,e,h),_(e,t),R(i,t,null),_(e,l),f&&f.m(e,null),_(e,o),c&&c.m(e,null),r=!0},p(d,h){const m={};!s&&h[0]&4&&(s=!0,m.collection=d[2],Me(()=>s=!1)),i.$set(m),(!r||h[0]&8)&&ee(t,"active",d[3]===gi),d[3]===ml?f?(f.p(d,h),h[0]&8&&E(f,1)):(f=bd(d),f.c(),E(f,1),f.m(e,o)):f&&(be(),I(f,1,1,()=>{f=null}),ve()),d[2].isAuth?c?(c.p(d,h),h[0]&4&&E(c,1)):(c=vd(d),c.c(),E(c,1),c.m(e,null)):c&&(be(),I(c,1,1,()=>{c=null}),ve())},i(d){r||(E(i.$$.fragment,d),E(f),E(c),r=!0)},o(d){I(i.$$.fragment,d),I(f),I(c),r=!1},d(d){d&&S(e),H(i),f&&f.d(),c&&c.d()}}}function yd(n){let e,t,i,s,l,o,r;return o=new Zn({props:{class:"dropdown dropdown-right m-t-5",$$slots:{default:[S4]},$$scope:{ctx:n}}}),{c(){e=v("div"),t=O(),i=v("button"),s=v("i"),l=O(),j(o.$$.fragment),p(e,"class","flex-fill"),p(s,"class","ri-more-line"),p(i,"type","button"),p(i,"class","btn btn-sm btn-circle btn-secondary flex-gap-0")},m(a,u){$(a,e,u),$(a,t,u),$(a,i,u),_(i,s),_(i,l),R(o,i,null),r=!0},p(a,u){const f={};u[1]&65536&&(f.$$scope={dirty:u,ctx:a}),o.$set(f)},i(a){r||(E(o.$$.fragment,a),r=!0)},o(a){I(o.$$.fragment,a),r=!1},d(a){a&&S(e),a&&S(t),a&&S(i),H(o)}}}function S4(n){let e,t,i;return{c(){e=v("button"),e.innerHTML=` Delete`,p(e,"type","button"),p(e,"class","dropdown-item txt-danger closable")},m(s,l){$(s,e,l),t||(i=W(e,"click",Yn(ut(n[22]))),t=!0)},p:x,d(s){s&&S(e),t=!1,i()}}}function kd(n){let e,t,i,s;return i=new Zn({props:{class:"dropdown dropdown-right dropdown-nowrap m-t-5",$$slots:{default:[$4]},$$scope:{ctx:n}}}),{c(){e=v("i"),t=O(),j(i.$$.fragment),p(e,"class","ri-arrow-down-s-fill")},m(l,o){$(l,e,o),$(l,t,o),R(i,l,o),s=!0},p(l,o){const r={};o[0]&68|o[1]&65536&&(r.$$scope={dirty:o,ctx:l}),i.$set(r)},i(l){s||(E(i.$$.fragment,l),s=!0)},o(l){I(i.$$.fragment,l),s=!1},d(l){l&&S(e),l&&S(t),H(i,l)}}}function wd(n){let e,t,i,s,l,o=n[44]+"",r,a,u,f,c;function d(){return n[24](n[43])}return{c(){e=v("button"),t=v("i"),s=O(),l=v("span"),r=z(o),a=z(" collection"),u=O(),p(t,"class",i=uo(B.getCollectionTypeIcon(n[43]))+" svelte-lo1530"),p(l,"class","txt"),p(e,"type","button"),p(e,"class","dropdown-item closable"),ee(e,"selected",n[43]==n[2].type)},m(h,m){$(h,e,m),_(e,t),_(e,s),_(e,l),_(l,r),_(l,a),_(e,u),f||(c=W(e,"click",d),f=!0)},p(h,m){n=h,m[0]&64&&i!==(i=uo(B.getCollectionTypeIcon(n[43]))+" svelte-lo1530")&&p(t,"class",i),m[0]&64&&o!==(o=n[44]+"")&&ue(r,o),m[0]&68&&ee(e,"selected",n[43]==n[2].type)},d(h){h&&S(e),f=!1,c()}}}function $4(n){let e,t=Object.entries(n[6]),i=[];for(let s=0;s{L=null}),ve()),(!D||U[0]&4&&w!==(w="btn btn-sm p-r-10 p-l-10 "+(F[2].isNew?"btn-hint":"btn-secondary")))&&p(c,"class",w),(!D||U[0]&4&&C!==(C=!F[2].isNew))&&(c.disabled=C),F[2].system?V||(V=Sd(),V.c(),V.m(T.parentNode,T)):V&&(V.d(1),V=null)},i(F){D||(E(L),D=!0)},o(F){I(L),D=!1},d(F){F&&S(e),F&&S(s),F&&S(l),F&&S(u),F&&S(f),L&&L.d(),F&&S(M),V&&V.d(F),F&&S(T),A=!1,P()}}}function $d(n){let e,t,i,s,l,o;return{c(){e=v("i"),p(e,"class","ri-error-warning-fill txt-danger")},m(r,a){$(r,e,a),s=!0,l||(o=Le(t=Be.call(null,e,n[13])),l=!0)},p(r,a){t&&Wt(t.update)&&a[0]&8192&&t.update.call(null,r[13])},i(r){s||(r&&Qe(()=>{i||(i=je(e,$t,{duration:150,start:.7},!0)),i.run(1)}),s=!0)},o(r){r&&(i||(i=je(e,$t,{duration:150,start:.7},!1)),i.run(0)),s=!1},d(r){r&&S(e),r&&i&&i.end(),l=!1,o()}}}function Cd(n){let e,t,i,s,l;return{c(){e=v("i"),p(e,"class","ri-error-warning-fill txt-danger")},m(o,r){$(o,e,r),i=!0,s||(l=Le(Be.call(null,e,"Has errors")),s=!0)},i(o){i||(o&&Qe(()=>{t||(t=je(e,$t,{duration:150,start:.7},!0)),t.run(1)}),i=!0)},o(o){o&&(t||(t=je(e,$t,{duration:150,start:.7},!1)),t.run(0)),i=!1},d(o){o&&S(e),o&&t&&t.end(),s=!1,l()}}}function Md(n){var a,u,f;let e,t,i,s=!B.isEmpty((a=n[5])==null?void 0:a.options)&&!((f=(u=n[5])==null?void 0:u.options)!=null&&f.manageRule),l,o,r=s&&Td();return{c(){e=v("button"),t=v("span"),t.textContent="Options",i=O(),r&&r.c(),p(t,"class","txt"),p(e,"type","button"),p(e,"class","tab-item"),ee(e,"active",n[3]===Cs)},m(c,d){$(c,e,d),_(e,t),_(e,i),r&&r.m(e,null),l||(o=W(e,"click",n[28]),l=!0)},p(c,d){var h,m,b;d[0]&32&&(s=!B.isEmpty((h=c[5])==null?void 0:h.options)&&!((b=(m=c[5])==null?void 0:m.options)!=null&&b.manageRule)),s?r?d[0]&32&&E(r,1):(r=Td(),r.c(),E(r,1),r.m(e,null)):r&&(be(),I(r,1,1,()=>{r=null}),ve()),d[0]&8&&ee(e,"active",c[3]===Cs)},d(c){c&&S(e),r&&r.d(),l=!1,o()}}}function Td(n){let e,t,i,s,l;return{c(){e=v("i"),p(e,"class","ri-error-warning-fill txt-danger")},m(o,r){$(o,e,r),i=!0,s||(l=Le(Be.call(null,e,"Has errors")),s=!0)},i(o){i||(o&&Qe(()=>{t||(t=je(e,$t,{duration:150,start:.7},!0)),t.run(1)}),i=!0)},o(o){o&&(t||(t=je(e,$t,{duration:150,start:.7},!1)),t.run(0)),i=!1},d(o){o&&S(e),o&&t&&t.end(),s=!1,l()}}}function M4(n){var U,G,K,X,Z,ie,J,fe;let e,t=n[2].isNew?"New collection":"Edit collection",i,s,l,o,r,a,u,f,c,d,h,m,b=!B.isEmpty((U=n[5])==null?void 0:U.schema),g,y,k,w,C=!B.isEmpty((G=n[5])==null?void 0:G.listRule)||!B.isEmpty((K=n[5])==null?void 0:K.viewRule)||!B.isEmpty((X=n[5])==null?void 0:X.createRule)||!B.isEmpty((Z=n[5])==null?void 0:Z.updateRule)||!B.isEmpty((ie=n[5])==null?void 0:ie.deleteRule)||!B.isEmpty((fe=(J=n[5])==null?void 0:J.options)==null?void 0:fe.manageRule),M,T,D,A,P=!n[2].isNew&&!n[2].system&&yd(n);r=new _e({props:{class:"form-field collection-field-name required m-b-0 "+(n[12]?"disabled":""),name:"name",$$slots:{default:[C4,({uniqueId:Y})=>({42:Y}),({uniqueId:Y})=>[0,Y?2048:0]]},$$scope:{ctx:n}}});let L=b&&$d(n),V=C&&Cd(),F=n[2].isAuth&&Md(n);return{c(){e=v("h4"),i=z(t),s=O(),P&&P.c(),l=O(),o=v("form"),j(r.$$.fragment),a=O(),u=v("input"),f=O(),c=v("div"),d=v("button"),h=v("span"),h.textContent="Fields",m=O(),L&&L.c(),g=O(),y=v("button"),k=v("span"),k.textContent="API Rules",w=O(),V&&V.c(),M=O(),F&&F.c(),p(u,"type","submit"),p(u,"class","hidden"),p(u,"tabindex","-1"),p(o,"class","block"),p(h,"class","txt"),p(d,"type","button"),p(d,"class","tab-item"),ee(d,"active",n[3]===gi),p(k,"class","txt"),p(y,"type","button"),p(y,"class","tab-item"),ee(y,"active",n[3]===ml),p(c,"class","tabs-header stretched")},m(Y,re){$(Y,e,re),_(e,i),$(Y,s,re),P&&P.m(Y,re),$(Y,l,re),$(Y,o,re),R(r,o,null),_(o,a),_(o,u),$(Y,f,re),$(Y,c,re),_(c,d),_(d,h),_(d,m),L&&L.m(d,null),_(c,g),_(c,y),_(y,k),_(y,w),V&&V.m(y,null),_(c,M),F&&F.m(c,null),T=!0,D||(A=[W(o,"submit",ut(n[25])),W(d,"click",n[26]),W(y,"click",n[27])],D=!0)},p(Y,re){var ge,ae,he,de,Se,we,Ue,ce;(!T||re[0]&4)&&t!==(t=Y[2].isNew?"New collection":"Edit collection")&&ue(i,t),!Y[2].isNew&&!Y[2].system?P?(P.p(Y,re),re[0]&4&&E(P,1)):(P=yd(Y),P.c(),E(P,1),P.m(l.parentNode,l)):P&&(be(),I(P,1,1,()=>{P=null}),ve());const Oe={};re[0]&4096&&(Oe.class="form-field collection-field-name required m-b-0 "+(Y[12]?"disabled":"")),re[0]&4164|re[1]&67584&&(Oe.$$scope={dirty:re,ctx:Y}),r.$set(Oe),re[0]&32&&(b=!B.isEmpty((ge=Y[5])==null?void 0:ge.schema)),b?L?(L.p(Y,re),re[0]&32&&E(L,1)):(L=$d(Y),L.c(),E(L,1),L.m(d,null)):L&&(be(),I(L,1,1,()=>{L=null}),ve()),(!T||re[0]&8)&&ee(d,"active",Y[3]===gi),re[0]&32&&(C=!B.isEmpty((ae=Y[5])==null?void 0:ae.listRule)||!B.isEmpty((he=Y[5])==null?void 0:he.viewRule)||!B.isEmpty((de=Y[5])==null?void 0:de.createRule)||!B.isEmpty((Se=Y[5])==null?void 0:Se.updateRule)||!B.isEmpty((we=Y[5])==null?void 0:we.deleteRule)||!B.isEmpty((ce=(Ue=Y[5])==null?void 0:Ue.options)==null?void 0:ce.manageRule)),C?V?re[0]&32&&E(V,1):(V=Cd(),V.c(),E(V,1),V.m(y,null)):V&&(be(),I(V,1,1,()=>{V=null}),ve()),(!T||re[0]&8)&&ee(y,"active",Y[3]===ml),Y[2].isAuth?F?F.p(Y,re):(F=Md(Y),F.c(),F.m(c,null)):F&&(F.d(1),F=null)},i(Y){T||(E(P),E(r.$$.fragment,Y),E(L),E(V),T=!0)},o(Y){I(P),I(r.$$.fragment,Y),I(L),I(V),T=!1},d(Y){Y&&S(e),Y&&S(s),P&&P.d(Y),Y&&S(l),Y&&S(o),H(r),Y&&S(f),Y&&S(c),L&&L.d(),V&&V.d(),F&&F.d(),D=!1,Re(A)}}}function T4(n){let e,t,i,s,l,o=n[2].isNew?"Create":"Save changes",r,a,u,f;return{c(){e=v("button"),t=v("span"),t.textContent="Cancel",i=O(),s=v("button"),l=v("span"),r=z(o),p(t,"class","txt"),p(e,"type","button"),p(e,"class","btn btn-secondary"),e.disabled=n[9],p(l,"class","txt"),p(s,"type","button"),p(s,"class","btn btn-expanded"),s.disabled=a=!n[11]||n[9],ee(s,"btn-loading",n[9])},m(c,d){$(c,e,d),_(e,t),$(c,i,d),$(c,s,d),_(s,l),_(l,r),u||(f=[W(e,"click",n[20]),W(s,"click",n[21])],u=!0)},p(c,d){d[0]&512&&(e.disabled=c[9]),d[0]&4&&o!==(o=c[2].isNew?"Create":"Save changes")&&ue(r,o),d[0]&2560&&a!==(a=!c[11]||c[9])&&(s.disabled=a),d[0]&512&&ee(s,"btn-loading",c[9])},d(c){c&&S(e),c&&S(i),c&&S(s),u=!1,Re(f)}}}function O4(n){let e,t,i,s,l={class:"overlay-panel-lg colored-header collection-panel",beforeHide:n[32],$$slots:{footer:[T4],header:[M4],default:[w4]},$$scope:{ctx:n}};e=new Jn({props:l}),n[33](e),e.$on("hide",n[34]),e.$on("show",n[35]);let o={};return i=new k4({props:o}),n[36](i),i.$on("confirm",n[37]),{c(){j(e.$$.fragment),t=O(),j(i.$$.fragment)},m(r,a){R(e,r,a),$(r,t,a),R(i,r,a),s=!0},p(r,a){const u={};a[0]&1040&&(u.beforeHide=r[32]),a[0]&14956|a[1]&65536&&(u.$$scope={dirty:a,ctx:r}),e.$set(u);const f={};i.$set(f)},i(r){s||(E(e.$$.fragment,r),E(i.$$.fragment,r),s=!0)},o(r){I(e.$$.fragment,r),I(i.$$.fragment,r),s=!1},d(r){n[33](null),H(e,r),r&&S(t),n[36](null),H(i,r)}}}const gi="fields",ml="api_rules",Cs="options",D4="base",Od="auth";function Sr(n){return JSON.stringify(n)}function E4(n,e,t){let i,s,l,o,r;Je(n,wi,we=>t(5,r=we));const a={};a[D4]="Base",a[Od]="Auth";const u=It();let f,c,d=null,h=new Pn,m=!1,b=!1,g=gi,y=Sr(h);function k(we){t(3,g=we)}function w(we){return M(we),t(10,b=!0),k(gi),f==null?void 0:f.show()}function C(){return f==null?void 0:f.hide()}async function M(we){Fn({}),typeof we<"u"?(d=we,t(2,h=we==null?void 0:we.clone())):(d=null,t(2,h=new Pn)),t(2,h.schema=h.schema||[],h),t(2,h.originalName=h.name||"",h),await $n(),t(19,y=Sr(h))}function T(){if(h.isNew)return D();c==null||c.show(h)}function D(){if(m)return;t(9,m=!0);const we=A();let Ue;h.isNew?Ue=me.collections.create(we):Ue=me.collections.update(h.id,we),Ue.then(ce=>{t(10,b=!1),C(),Lt(h.isNew?"Successfully created collection.":"Successfully updated collection."),kS(ce),u("save",{isNew:h.isNew,collection:ce})}).catch(ce=>{me.errorResponseHandler(ce)}).finally(()=>{t(9,m=!1)})}function A(){const we=h.export();we.schema=we.schema.slice(0);for(let Ue=we.schema.length-1;Ue>=0;Ue--)we.schema[Ue].toDelete&&we.schema.splice(Ue,1);return we}function P(){!(d!=null&&d.id)||yn(`Do you really want to delete collection "${d==null?void 0:d.name}" and all its records?`,()=>me.collections.delete(d==null?void 0:d.id).then(()=>{C(),Lt(`Successfully deleted collection "${d==null?void 0:d.name}".`),u("delete",d),wS(d)}).catch(we=>{me.errorResponseHandler(we)}))}function L(we){t(2,h.type=we,h)}const V=()=>C(),F=()=>T(),U=()=>P(),G=we=>{t(2,h.name=B.slugify(we.target.value),h),we.target.value=h.name},K=we=>L(we),X=()=>{o&&T()},Z=()=>k(gi),ie=()=>k(ml),J=()=>k(Cs);function fe(we){h=we,t(2,h)}function Y(we){h=we,t(2,h)}function re(we){h=we,t(2,h)}const Oe=()=>l&&b?(yn("You have unsaved changes. Do you really want to close the panel?",()=>{t(10,b=!1),C()}),!1):!0;function ge(we){le[we?"unshift":"push"](()=>{f=we,t(7,f)})}function ae(we){Ve.call(this,n,we)}function he(we){Ve.call(this,n,we)}function de(we){le[we?"unshift":"push"](()=>{c=we,t(8,c)})}const Se=()=>D();return n.$$.update=()=>{n.$$.dirty[0]&32&&t(13,i=typeof B.getNestedVal(r,"schema.message",null)=="string"?B.getNestedVal(r,"schema.message"):"Has errors"),n.$$.dirty[0]&4&&t(12,s=!h.isNew&&h.system),n.$$.dirty[0]&524292&&t(4,l=y!=Sr(h)),n.$$.dirty[0]&20&&t(11,o=h.isNew||l),n.$$.dirty[0]&12&&g===Cs&&h.type!==Od&&k(gi)},[k,C,h,g,l,r,a,f,c,m,b,o,s,i,T,D,P,L,w,y,V,F,U,G,K,X,Z,ie,J,fe,Y,re,Oe,ge,ae,he,de,Se]}class Ja extends Ce{constructor(e){super(),$e(this,e,E4,O4,ke,{changeTab:0,show:18,hide:1},null,[-1,-1])}get changeTab(){return this.$$.ctx[0]}get show(){return this.$$.ctx[18]}get hide(){return this.$$.ctx[1]}}function Dd(n,e,t){const i=n.slice();return i[14]=e[t],i}function Ed(n){let e,t=n[1].length&&Ad();return{c(){t&&t.c(),e=Fe()},m(i,s){t&&t.m(i,s),$(i,e,s)},p(i,s){i[1].length?t||(t=Ad(),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},d(i){t&&t.d(i),i&&S(e)}}}function Ad(n){let e;return{c(){e=v("p"),e.textContent="No collections found.",p(e,"class","txt-hint m-t-10 m-b-10 txt-center")},m(t,i){$(t,e,i)},d(t){t&&S(e)}}}function Id(n,e){let t,i,s,l,o,r=e[14].name+"",a,u,f,c,d;return{key:n,first:null,c(){var h;t=v("a"),i=v("i"),l=O(),o=v("span"),a=z(r),u=O(),p(i,"class",s=B.getCollectionTypeIcon(e[14].type)),p(o,"class","txt"),p(t,"href",f="/collections?collectionId="+e[14].id),p(t,"class","sidebar-list-item"),ee(t,"active",((h=e[5])==null?void 0:h.id)===e[14].id),this.first=t},m(h,m){$(h,t,m),_(t,i),_(t,l),_(t,o),_(o,a),_(t,u),c||(d=Le(zt.call(null,t)),c=!0)},p(h,m){var b;e=h,m&8&&s!==(s=B.getCollectionTypeIcon(e[14].type))&&p(i,"class",s),m&8&&r!==(r=e[14].name+"")&&ue(a,r),m&8&&f!==(f="/collections?collectionId="+e[14].id)&&p(t,"href",f),m&40&&ee(t,"active",((b=e[5])==null?void 0:b.id)===e[14].id)},d(h){h&&S(t),c=!1,d()}}}function Pd(n){let e,t,i,s;return{c(){e=v("footer"),t=v("button"),t.innerHTML=` - New collection`,p(t,"type","button"),p(t,"class","btn btn-block btn-outline"),p(e,"class","sidebar-footer")},m(l,o){$(l,e,o),_(e,t),i||(s=W(t,"click",n[11]),i=!0)},p:x,d(l){l&&S(e),i=!1,s()}}}function A4(n){let e,t,i,s,l,o,r,a,u,f,c,d=[],h=new Map,m,b,g,y,k,w,C=n[3];const M=P=>P[14].id;for(let P=0;P',o=O(),r=v("input"),a=O(),u=v("hr"),f=O(),c=v("div");for(let P=0;P20),p(e,"class","page-sidebar collection-sidebar")},m(P,L){$(P,e,L),_(e,t),_(t,i),_(i,s),_(s,l),_(i,o),_(i,r),pe(r,n[0]),_(e,a),_(e,u),_(e,f),_(e,c);for(let V=0;V20),P[6]?D&&(D.d(1),D=null):D?D.p(P,L):(D=Pd(P),D.c(),D.m(e,null));const V={};g.$set(V)},i(P){y||(E(g.$$.fragment,P),y=!0)},o(P){I(g.$$.fragment,P),y=!1},d(P){P&&S(e);for(let L=0;L{const n=document.querySelector(".collection-sidebar .sidebar-list-item.active");n&&(n==null||n.scrollIntoView({block:"nearest"}))},0)}function P4(n,e,t){let i,s,l,o,r,a;Je(n,Bn,y=>t(5,o=y)),Je(n,Zi,y=>t(8,r=y)),Je(n,ks,y=>t(6,a=y));let u,f="";function c(y){Ht(Bn,o=y,o)}const d=()=>t(0,f="");function h(){f=this.value,t(0,f)}const m=()=>u==null?void 0:u.show();function b(y){le[y?"unshift":"push"](()=>{u=y,t(2,u)})}const g=y=>{var k;((k=y.detail)==null?void 0:k.isNew)&&y.detail.collection&&c(y.detail.collection)};return n.$$.update=()=>{n.$$.dirty&1&&t(1,i=f.replace(/\s+/g,"").toLowerCase()),n.$$.dirty&1&&t(4,s=f!==""),n.$$.dirty&259&&t(3,l=r.filter(y=>y.id==f||y.name.replace(/\s+/g,"").toLowerCase().includes(i))),n.$$.dirty&256&&r&&I4()},[f,i,u,l,s,o,a,c,r,d,h,m,b,g]}class L4 extends Ce{constructor(e){super(),$e(this,e,P4,A4,ke,{})}}function Ld(n,e,t){const i=n.slice();return i[14]=e[t][0],i[15]=e[t][1],i}function Nd(n){n[18]=n[19].default}function Fd(n,e,t){const i=n.slice();return i[14]=e[t][0],i[15]=e[t][1],i}function Rd(n,e){let t,i=e[15].label+"",s,l,o,r;function a(){return e[8](e[14])}return{key:n,first:null,c(){t=v("button"),s=z(i),l=O(),p(t,"type","button"),p(t,"class","sidebar-item"),ee(t,"active",e[5]===e[14]),this.first=t},m(u,f){$(u,t,f),_(t,s),_(t,l),o||(r=W(t,"click",a),o=!0)},p(u,f){e=u,f&8&&i!==(i=e[15].label+"")&&ue(s,i),f&40&&ee(t,"active",e[5]===e[14])},d(u){u&&S(t),o=!1,r()}}}function Hd(n){let e,t,i,s={ctx:n,current:null,token:null,hasCatch:!1,pending:R4,then:F4,catch:N4,value:19,blocks:[,,,]};return xa(t=n[15].component,s),{c(){e=Fe(),s.block.c()},m(l,o){$(l,e,o),s.block.m(l,s.anchor=o),s.mount=()=>e.parentNode,s.anchor=e,i=!0},p(l,o){n=l,s.ctx=n,o&8&&t!==(t=n[15].component)&&xa(t,s)||x_(s,n,o)},i(l){i||(E(s.block),i=!0)},o(l){for(let o=0;o<3;o+=1){const r=s.blocks[o];I(r)}i=!1},d(l){l&&S(e),s.block.d(l),s.token=null,s=null}}}function N4(n){return{c:x,m:x,p:x,i:x,o:x,d:x}}function F4(n){Nd(n);let e,t,i;return e=new n[18]({props:{collection:n[2]}}),{c(){j(e.$$.fragment),t=O()},m(s,l){R(e,s,l),$(s,t,l),i=!0},p(s,l){Nd(s);const o={};l&4&&(o.collection=s[2]),e.$set(o)},i(s){i||(E(e.$$.fragment,s),i=!0)},o(s){I(e.$$.fragment,s),i=!1},d(s){H(e,s),s&&S(t)}}}function R4(n){return{c:x,m:x,p:x,i:x,o:x,d:x}}function jd(n,e){let t,i,s,l=e[5]===e[14]&&Hd(e);return{key:n,first:null,c(){t=Fe(),l&&l.c(),i=Fe(),this.first=t},m(o,r){$(o,t,r),l&&l.m(o,r),$(o,i,r),s=!0},p(o,r){e=o,e[5]===e[14]?l?(l.p(e,r),r&40&&E(l,1)):(l=Hd(e),l.c(),E(l,1),l.m(i.parentNode,i)):l&&(be(),I(l,1,1,()=>{l=null}),ve())},i(o){s||(E(l),s=!0)},o(o){I(l),s=!1},d(o){o&&S(t),l&&l.d(o),o&&S(i)}}}function H4(n){let e,t,i,s=[],l=new Map,o,r,a=[],u=new Map,f,c=Object.entries(n[3]);const d=b=>b[14];for(let b=0;bb[14];for(let b=0;bClose',p(e,"type","button"),p(e,"class","btn btn-secondary")},m(s,l){$(s,e,l),t||(i=W(e,"click",n[7]),t=!0)},p:x,d(s){s&&S(e),t=!1,i()}}}function q4(n){let e,t,i={class:"docs-panel",$$slots:{footer:[j4],default:[H4]},$$scope:{ctx:n}};return e=new Jn({props:i}),n[9](e),e.$on("hide",n[10]),e.$on("show",n[11]),{c(){j(e.$$.fragment)},m(s,l){R(e,s,l),t=!0},p(s,[l]){const o={};l&4194348&&(o.$$scope={dirty:l,ctx:s}),e.$set(o)},i(s){t||(E(e.$$.fragment,s),t=!0)},o(s){I(e.$$.fragment,s),t=!1},d(s){n[9](null),H(e,s)}}}function V4(n,e,t){const i={list:{label:"List/Search",component:st(()=>import("./ListApiDocs.e4bbc799.js"),["./ListApiDocs.e4bbc799.js","./SdkTabs.315f7f19.js","./SdkTabs.9b0b7a06.css","./ListApiDocs.68f52edd.css"],import.meta.url)},view:{label:"View",component:st(()=>import("./ViewApiDocs.aaf072de.js"),["./ViewApiDocs.aaf072de.js","./SdkTabs.315f7f19.js","./SdkTabs.9b0b7a06.css"],import.meta.url)},create:{label:"Create",component:st(()=>import("./CreateApiDocs.f27be4a3.js"),["./CreateApiDocs.f27be4a3.js","./SdkTabs.315f7f19.js","./SdkTabs.9b0b7a06.css"],import.meta.url)},update:{label:"Update",component:st(()=>import("./UpdateApiDocs.1b2645fa.js"),["./UpdateApiDocs.1b2645fa.js","./SdkTabs.315f7f19.js","./SdkTabs.9b0b7a06.css"],import.meta.url)},delete:{label:"Delete",component:st(()=>import("./DeleteApiDocs.01e6e599.js"),["./DeleteApiDocs.01e6e599.js","./SdkTabs.315f7f19.js","./SdkTabs.9b0b7a06.css"],import.meta.url)},realtime:{label:"Realtime",component:st(()=>import("./RealtimeApiDocs.91e15945.js"),["./RealtimeApiDocs.91e15945.js","./SdkTabs.315f7f19.js","./SdkTabs.9b0b7a06.css"],import.meta.url)}},s={"auth-with-password":{label:"Auth with password",component:st(()=>import("./AuthWithPasswordDocs.739c69ce.js"),["./AuthWithPasswordDocs.739c69ce.js","./SdkTabs.315f7f19.js","./SdkTabs.9b0b7a06.css"],import.meta.url)},"auth-with-oauth2":{label:"Auth with OAuth2",component:st(()=>import("./AuthWithOAuth2Docs.01133011.js"),["./AuthWithOAuth2Docs.01133011.js","./SdkTabs.315f7f19.js","./SdkTabs.9b0b7a06.css"],import.meta.url)},refresh:{label:"Auth refresh",component:st(()=>import("./AuthRefreshDocs.7509da38.js"),["./AuthRefreshDocs.7509da38.js","./SdkTabs.315f7f19.js","./SdkTabs.9b0b7a06.css"],import.meta.url)},"request-verification":{label:"Request verification",component:st(()=>import("./RequestVerificationDocs.405145d8.js"),["./RequestVerificationDocs.405145d8.js","./SdkTabs.315f7f19.js","./SdkTabs.9b0b7a06.css"],import.meta.url)},"confirm-verification":{label:"Confirm verification",component:st(()=>import("./ConfirmVerificationDocs.01e1aa0b.js"),["./ConfirmVerificationDocs.01e1aa0b.js","./SdkTabs.315f7f19.js","./SdkTabs.9b0b7a06.css"],import.meta.url)},"request-password-reset":{label:"Request password reset",component:st(()=>import("./RequestPasswordResetDocs.58427c67.js"),["./RequestPasswordResetDocs.58427c67.js","./SdkTabs.315f7f19.js","./SdkTabs.9b0b7a06.css"],import.meta.url)},"confirm-password-reset":{label:"Confirm password reset",component:st(()=>import("./ConfirmPasswordResetDocs.1392cd93.js"),["./ConfirmPasswordResetDocs.1392cd93.js","./SdkTabs.315f7f19.js","./SdkTabs.9b0b7a06.css"],import.meta.url)},"request-email-change":{label:"Request email change",component:st(()=>import("./RequestEmailChangeDocs.0d8ba857.js"),["./RequestEmailChangeDocs.0d8ba857.js","./SdkTabs.315f7f19.js","./SdkTabs.9b0b7a06.css"],import.meta.url)},"confirm-email-change":{label:"Confirm email change",component:st(()=>import("./ConfirmEmailChangeDocs.0db1c53f.js"),["./ConfirmEmailChangeDocs.0db1c53f.js","./SdkTabs.315f7f19.js","./SdkTabs.9b0b7a06.css"],import.meta.url)},"list-auth-methods":{label:"List auth methods",component:st(()=>import("./AuthMethodsDocs.eae43462.js"),["./AuthMethodsDocs.eae43462.js","./SdkTabs.315f7f19.js","./SdkTabs.9b0b7a06.css"],import.meta.url)},"list-linked-accounts":{label:"List OAuth2 accounts",component:st(()=>import("./ListExternalAuthsDocs.0860ae00.js"),["./ListExternalAuthsDocs.0860ae00.js","./SdkTabs.315f7f19.js","./SdkTabs.9b0b7a06.css"],import.meta.url)},"unlink-account":{label:"Unlink OAuth2 account",component:st(()=>import("./UnlinkExternalAuthDocs.484b370f.js"),["./UnlinkExternalAuthDocs.484b370f.js","./SdkTabs.315f7f19.js","./SdkTabs.9b0b7a06.css"],import.meta.url)}};let l,o=new Pn,r,a=[];a.length&&(r=Object.keys(a)[0]);function u(y){return t(2,o=y),c(Object.keys(a)[0]),l==null?void 0:l.show()}function f(){return l==null?void 0:l.hide()}function c(y){t(5,r=y)}const d=()=>f(),h=y=>c(y);function m(y){le[y?"unshift":"push"](()=>{l=y,t(4,l)})}function b(y){Ve.call(this,n,y)}function g(y){Ve.call(this,n,y)}return n.$$.update=()=>{n.$$.dirty&12&&(o.isAuth?(t(3,a=Object.assign({},i,s)),!(o!=null&&o.options.allowUsernameAuth)&&!(o!=null&&o.options.allowEmailAuth)&&delete a["auth-with-password"],o!=null&&o.options.allowOAuth2Auth||delete a["auth-with-oauth2"]):t(3,a=Object.assign({},i)))},[f,c,o,a,l,r,u,d,h,m,b,g]}class z4 extends Ce{constructor(e){super(),$e(this,e,V4,q4,ke,{show:6,hide:0,changeTab:1})}get show(){return this.$$.ctx[6]}get hide(){return this.$$.ctx[0]}get changeTab(){return this.$$.ctx[1]}}function B4(n){let e,t,i,s,l,o,r,a,u,f,c,d;return{c(){e=v("label"),t=v("i"),i=O(),s=v("span"),s.textContent="Username",o=O(),r=v("input"),p(t,"class",B.getFieldTypeIcon("user")),p(s,"class","txt"),p(e,"for",l=n[12]),p(r,"type","text"),p(r,"requried",a=!n[0].isNew),p(r,"placeholder",u=n[0].isNew?"Leave empty to auto generate...":n[3]),p(r,"id",f=n[12])},m(h,m){$(h,e,m),_(e,t),_(e,i),_(e,s),$(h,o,m),$(h,r,m),pe(r,n[0].username),c||(d=W(r,"input",n[4]),c=!0)},p(h,m){m&4096&&l!==(l=h[12])&&p(e,"for",l),m&1&&a!==(a=!h[0].isNew)&&p(r,"requried",a),m&1&&u!==(u=h[0].isNew?"Leave empty to auto generate...":h[3])&&p(r,"placeholder",u),m&4096&&f!==(f=h[12])&&p(r,"id",f),m&1&&r.value!==h[0].username&&pe(r,h[0].username)},d(h){h&&S(e),h&&S(o),h&&S(r),c=!1,d()}}}function U4(n){let e,t,i,s,l,o,r,a,u,f,c=n[0].emailVisibility?"On":"Off",d,h,m,b,g,y,k,w,C;return{c(){var M;e=v("label"),t=v("i"),i=O(),s=v("span"),s.textContent="Email",o=O(),r=v("div"),a=v("button"),u=v("span"),f=z("Public: "),d=z(c),m=O(),b=v("input"),p(t,"class",B.getFieldTypeIcon("email")),p(s,"class","txt"),p(e,"for",l=n[12]),p(u,"class","txt"),p(a,"type","button"),p(a,"class",h="btn btn-sm btn-secondary "+(n[0].emailVisibility?"btn-success":"btn-hint")),p(r,"class","form-field-addon email-visibility-addon svelte-1751a4d"),p(b,"type","email"),b.autofocus=g=n[0].isNew,p(b,"autocomplete","off"),p(b,"id",y=n[12]),b.required=k=(M=n[1].options)==null?void 0:M.requireEmail,p(b,"class","svelte-1751a4d")},m(M,T){$(M,e,T),_(e,t),_(e,i),_(e,s),$(M,o,T),$(M,r,T),_(r,a),_(a,u),_(u,f),_(u,d),$(M,m,T),$(M,b,T),pe(b,n[0].email),n[0].isNew&&b.focus(),w||(C=[Le(Be.call(null,a,{text:"Make email public or private",position:"top-right"})),W(a,"click",n[5]),W(b,"input",n[6])],w=!0)},p(M,T){var D;T&4096&&l!==(l=M[12])&&p(e,"for",l),T&1&&c!==(c=M[0].emailVisibility?"On":"Off")&&ue(d,c),T&1&&h!==(h="btn btn-sm btn-secondary "+(M[0].emailVisibility?"btn-success":"btn-hint"))&&p(a,"class",h),T&1&&g!==(g=M[0].isNew)&&(b.autofocus=g),T&4096&&y!==(y=M[12])&&p(b,"id",y),T&2&&k!==(k=(D=M[1].options)==null?void 0:D.requireEmail)&&(b.required=k),T&1&&b.value!==M[0].email&&pe(b,M[0].email)},d(M){M&&S(e),M&&S(o),M&&S(r),M&&S(m),M&&S(b),w=!1,Re(C)}}}function qd(n){let e,t;return e=new _e({props:{class:"form-field form-field-toggle",name:"verified",$$slots:{default:[W4,({uniqueId:i})=>({12:i}),({uniqueId:i})=>i?4096:0]},$$scope:{ctx:n}}}),{c(){j(e.$$.fragment)},m(i,s){R(e,i,s),t=!0},p(i,s){const l={};s&12292&&(l.$$scope={dirty:s,ctx:i}),e.$set(l)},i(i){t||(E(e.$$.fragment,i),t=!0)},o(i){I(e.$$.fragment,i),t=!1},d(i){H(e,i)}}}function W4(n){let e,t,i,s,l,o,r,a;return{c(){e=v("input"),i=O(),s=v("label"),l=z("Change password"),p(e,"type","checkbox"),p(e,"id",t=n[12]),p(s,"for",o=n[12])},m(u,f){$(u,e,f),e.checked=n[2],$(u,i,f),$(u,s,f),_(s,l),r||(a=W(e,"change",n[7]),r=!0)},p(u,f){f&4096&&t!==(t=u[12])&&p(e,"id",t),f&4&&(e.checked=u[2]),f&4096&&o!==(o=u[12])&&p(s,"for",o)},d(u){u&&S(e),u&&S(i),u&&S(s),r=!1,a()}}}function Vd(n){let e,t,i,s,l,o,r,a,u;return s=new _e({props:{class:"form-field required",name:"password",$$slots:{default:[Y4,({uniqueId:f})=>({12:f}),({uniqueId:f})=>f?4096:0]},$$scope:{ctx:n}}}),r=new _e({props:{class:"form-field required",name:"passwordConfirm",$$slots:{default:[K4,({uniqueId:f})=>({12:f}),({uniqueId:f})=>f?4096:0]},$$scope:{ctx:n}}}),{c(){e=v("div"),t=v("div"),i=v("div"),j(s.$$.fragment),l=O(),o=v("div"),j(r.$$.fragment),p(i,"class","col-sm-6"),p(o,"class","col-sm-6"),p(t,"class","grid"),ee(t,"p-t-xs",n[2]),p(e,"class","block")},m(f,c){$(f,e,c),_(e,t),_(t,i),R(s,i,null),_(t,l),_(t,o),R(r,o,null),u=!0},p(f,c){const d={};c&12289&&(d.$$scope={dirty:c,ctx:f}),s.$set(d);const h={};c&12289&&(h.$$scope={dirty:c,ctx:f}),r.$set(h),(!u||c&4)&&ee(t,"p-t-xs",f[2])},i(f){u||(E(s.$$.fragment,f),E(r.$$.fragment,f),f&&Qe(()=>{a||(a=je(e,St,{duration:150},!0)),a.run(1)}),u=!0)},o(f){I(s.$$.fragment,f),I(r.$$.fragment,f),f&&(a||(a=je(e,St,{duration:150},!1)),a.run(0)),u=!1},d(f){f&&S(e),H(s),H(r),f&&a&&a.end()}}}function Y4(n){let e,t,i,s,l,o,r,a,u,f;return{c(){e=v("label"),t=v("i"),i=O(),s=v("span"),s.textContent="Password",o=O(),r=v("input"),p(t,"class","ri-lock-line"),p(s,"class","txt"),p(e,"for",l=n[12]),p(r,"type","password"),p(r,"autocomplete","new-password"),p(r,"id",a=n[12]),r.required=!0},m(c,d){$(c,e,d),_(e,t),_(e,i),_(e,s),$(c,o,d),$(c,r,d),pe(r,n[0].password),u||(f=W(r,"input",n[8]),u=!0)},p(c,d){d&4096&&l!==(l=c[12])&&p(e,"for",l),d&4096&&a!==(a=c[12])&&p(r,"id",a),d&1&&r.value!==c[0].password&&pe(r,c[0].password)},d(c){c&&S(e),c&&S(o),c&&S(r),u=!1,f()}}}function K4(n){let e,t,i,s,l,o,r,a,u,f;return{c(){e=v("label"),t=v("i"),i=O(),s=v("span"),s.textContent="Password confirm",o=O(),r=v("input"),p(t,"class","ri-lock-line"),p(s,"class","txt"),p(e,"for",l=n[12]),p(r,"type","password"),p(r,"autocomplete","new-password"),p(r,"id",a=n[12]),r.required=!0},m(c,d){$(c,e,d),_(e,t),_(e,i),_(e,s),$(c,o,d),$(c,r,d),pe(r,n[0].passwordConfirm),u||(f=W(r,"input",n[9]),u=!0)},p(c,d){d&4096&&l!==(l=c[12])&&p(e,"for",l),d&4096&&a!==(a=c[12])&&p(r,"id",a),d&1&&r.value!==c[0].passwordConfirm&&pe(r,c[0].passwordConfirm)},d(c){c&&S(e),c&&S(o),c&&S(r),u=!1,f()}}}function J4(n){let e,t,i,s,l,o,r,a;return{c(){e=v("input"),i=O(),s=v("label"),l=z("Verified"),p(e,"type","checkbox"),p(e,"id",t=n[12]),p(s,"for",o=n[12])},m(u,f){$(u,e,f),e.checked=n[0].verified,$(u,i,f),$(u,s,f),_(s,l),r||(a=[W(e,"change",n[10]),W(e,"change",ut(n[11]))],r=!0)},p(u,f){f&4096&&t!==(t=u[12])&&p(e,"id",t),f&1&&(e.checked=u[0].verified),f&4096&&o!==(o=u[12])&&p(s,"for",o)},d(u){u&&S(e),u&&S(i),u&&S(s),r=!1,Re(a)}}}function Z4(n){var g;let e,t,i,s,l,o,r,a,u,f,c,d,h;i=new _e({props:{class:"form-field "+(n[0].isNew?"":"required"),name:"username",$$slots:{default:[B4,({uniqueId:y})=>({12:y}),({uniqueId:y})=>y?4096:0]},$$scope:{ctx:n}}}),o=new _e({props:{class:"form-field "+((g=n[1].options)!=null&&g.requireEmail?"required":""),name:"email",$$slots:{default:[U4,({uniqueId:y})=>({12:y}),({uniqueId:y})=>y?4096:0]},$$scope:{ctx:n}}});let m=!n[0].isNew&&qd(n),b=(n[0].isNew||n[2])&&Vd(n);return d=new _e({props:{class:"form-field form-field-toggle",name:"verified",$$slots:{default:[J4,({uniqueId:y})=>({12:y}),({uniqueId:y})=>y?4096:0]},$$scope:{ctx:n}}}),{c(){e=v("div"),t=v("div"),j(i.$$.fragment),s=O(),l=v("div"),j(o.$$.fragment),r=O(),a=v("div"),m&&m.c(),u=O(),b&&b.c(),f=O(),c=v("div"),j(d.$$.fragment),p(t,"class","col-lg-6"),p(l,"class","col-lg-6"),p(a,"class","col-lg-12"),p(c,"class","col-lg-12"),p(e,"class","grid m-b-base")},m(y,k){$(y,e,k),_(e,t),R(i,t,null),_(e,s),_(e,l),R(o,l,null),_(e,r),_(e,a),m&&m.m(a,null),_(a,u),b&&b.m(a,null),_(e,f),_(e,c),R(d,c,null),h=!0},p(y,[k]){var T;const w={};k&1&&(w.class="form-field "+(y[0].isNew?"":"required")),k&12289&&(w.$$scope={dirty:k,ctx:y}),i.$set(w);const C={};k&2&&(C.class="form-field "+((T=y[1].options)!=null&&T.requireEmail?"required":"")),k&12291&&(C.$$scope={dirty:k,ctx:y}),o.$set(C),y[0].isNew?m&&(be(),I(m,1,1,()=>{m=null}),ve()):m?(m.p(y,k),k&1&&E(m,1)):(m=qd(y),m.c(),E(m,1),m.m(a,u)),y[0].isNew||y[2]?b?(b.p(y,k),k&5&&E(b,1)):(b=Vd(y),b.c(),E(b,1),b.m(a,null)):b&&(be(),I(b,1,1,()=>{b=null}),ve());const M={};k&12289&&(M.$$scope={dirty:k,ctx:y}),d.$set(M)},i(y){h||(E(i.$$.fragment,y),E(o.$$.fragment,y),E(m),E(b),E(d.$$.fragment,y),h=!0)},o(y){I(i.$$.fragment,y),I(o.$$.fragment,y),I(m),I(b),I(d.$$.fragment,y),h=!1},d(y){y&&S(e),H(i),H(o),m&&m.d(),b&&b.d(),H(d)}}}function G4(n,e,t){let{collection:i=new Pn}=e,{record:s=new Wi}=e,l=s.username||null,o=!1;function r(){s.username=this.value,t(0,s),t(2,o)}const a=()=>t(0,s.emailVisibility=!s.emailVisibility,s);function u(){s.email=this.value,t(0,s),t(2,o)}function f(){o=this.checked,t(2,o)}function c(){s.password=this.value,t(0,s),t(2,o)}function d(){s.passwordConfirm=this.value,t(0,s),t(2,o)}function h(){s.verified=this.checked,t(0,s),t(2,o)}const m=b=>{s.isNew||yn("Do you really want to manually change the verified account state?",()=>{},()=>{t(0,s.verified=!b.target.checked,s)})};return n.$$set=b=>{"collection"in b&&t(1,i=b.collection),"record"in b&&t(0,s=b.record)},n.$$.update=()=>{n.$$.dirty&1&&!s.username&&s.username!==null&&t(0,s.username=null,s),n.$$.dirty&4&&(o||(t(0,s.password=null,s),t(0,s.passwordConfirm=null,s),al("password"),al("passwordConfirm")))},[s,i,o,l,r,a,u,f,c,d,h,m]}class X4 extends Ce{constructor(e){super(),$e(this,e,G4,Z4,ke,{collection:1,record:0})}}function Q4(n){let e,t,i,s=[n[3]],l={};for(let o=0;o{r&&(t(1,r.style.height="",r),t(1,r.style.height=Math.min(r.scrollHeight+2,o)+"px",r))},0)}function f(h){if((h==null?void 0:h.code)==="Enter"&&!(h!=null&&h.shiftKey)){h.preventDefault();const m=r.closest("form");m!=null&&m.requestSubmit&&m.requestSubmit()}}un(()=>(u(),()=>clearTimeout(a)));function c(h){le[h?"unshift":"push"](()=>{r=h,t(1,r)})}function d(){l=this.value,t(0,l)}return n.$$set=h=>{e=Ye(Ye({},e),Wn(h)),t(3,s=wt(e,i)),"value"in h&&t(0,l=h.value),"maxHeight"in h&&t(4,o=h.maxHeight)},n.$$.update=()=>{n.$$.dirty&1&&typeof l!==void 0&&u()},[l,r,f,s,o,c,d]}class e3 extends Ce{constructor(e){super(),$e(this,e,x4,Q4,ke,{value:0,maxHeight:4})}}function t3(n){let e,t,i,s,l,o=n[1].name+"",r,a,u,f,c,d;function h(b){n[2](b)}let m={id:n[3],required:n[1].required};return n[0]!==void 0&&(m.value=n[0]),f=new e3({props:m}),le.push(()=>ye(f,"value",h)),{c(){e=v("label"),t=v("i"),s=O(),l=v("span"),r=z(o),u=O(),j(f.$$.fragment),p(t,"class",i=B.getFieldTypeIcon(n[1].type)),p(l,"class","txt"),p(e,"for",a=n[3])},m(b,g){$(b,e,g),_(e,t),_(e,s),_(e,l),_(l,r),$(b,u,g),R(f,b,g),d=!0},p(b,g){(!d||g&2&&i!==(i=B.getFieldTypeIcon(b[1].type)))&&p(t,"class",i),(!d||g&2)&&o!==(o=b[1].name+"")&&ue(r,o),(!d||g&8&&a!==(a=b[3]))&&p(e,"for",a);const y={};g&8&&(y.id=b[3]),g&2&&(y.required=b[1].required),!c&&g&1&&(c=!0,y.value=b[0],Me(()=>c=!1)),f.$set(y)},i(b){d||(E(f.$$.fragment,b),d=!0)},o(b){I(f.$$.fragment,b),d=!1},d(b){b&&S(e),b&&S(u),H(f,b)}}}function n3(n){let e,t;return e=new _e({props:{class:"form-field "+(n[1].required?"required":""),name:n[1].name,$$slots:{default:[t3,({uniqueId:i})=>({3:i}),({uniqueId:i})=>i?8:0]},$$scope:{ctx:n}}}),{c(){j(e.$$.fragment)},m(i,s){R(e,i,s),t=!0},p(i,[s]){const l={};s&2&&(l.class="form-field "+(i[1].required?"required":"")),s&2&&(l.name=i[1].name),s&27&&(l.$$scope={dirty:s,ctx:i}),e.$set(l)},i(i){t||(E(e.$$.fragment,i),t=!0)},o(i){I(e.$$.fragment,i),t=!1},d(i){H(e,i)}}}function i3(n,e,t){let{field:i=new fn}=e,{value:s=void 0}=e;function l(o){s=o,t(0,s)}return n.$$set=o=>{"field"in o&&t(1,i=o.field),"value"in o&&t(0,s=o.value)},[s,i,l]}class s3 extends Ce{constructor(e){super(),$e(this,e,i3,n3,ke,{field:1,value:0})}}function l3(n){let e,t,i,s,l,o=n[1].name+"",r,a,u,f,c,d,h,m,b,g;return{c(){var y,k;e=v("label"),t=v("i"),s=O(),l=v("span"),r=z(o),u=O(),f=v("input"),p(t,"class",i=B.getFieldTypeIcon(n[1].type)),p(l,"class","txt"),p(e,"for",a=n[3]),p(f,"type","number"),p(f,"id",c=n[3]),f.required=d=n[1].required,p(f,"min",h=(y=n[1].options)==null?void 0:y.min),p(f,"max",m=(k=n[1].options)==null?void 0:k.max),p(f,"step","any")},m(y,k){$(y,e,k),_(e,t),_(e,s),_(e,l),_(l,r),$(y,u,k),$(y,f,k),pe(f,n[0]),b||(g=W(f,"input",n[2]),b=!0)},p(y,k){var w,C;k&2&&i!==(i=B.getFieldTypeIcon(y[1].type))&&p(t,"class",i),k&2&&o!==(o=y[1].name+"")&&ue(r,o),k&8&&a!==(a=y[3])&&p(e,"for",a),k&8&&c!==(c=y[3])&&p(f,"id",c),k&2&&d!==(d=y[1].required)&&(f.required=d),k&2&&h!==(h=(w=y[1].options)==null?void 0:w.min)&&p(f,"min",h),k&2&&m!==(m=(C=y[1].options)==null?void 0:C.max)&&p(f,"max",m),k&1&&rt(f.value)!==y[0]&&pe(f,y[0])},d(y){y&&S(e),y&&S(u),y&&S(f),b=!1,g()}}}function o3(n){let e,t;return e=new _e({props:{class:"form-field "+(n[1].required?"required":""),name:n[1].name,$$slots:{default:[l3,({uniqueId:i})=>({3:i}),({uniqueId:i})=>i?8:0]},$$scope:{ctx:n}}}),{c(){j(e.$$.fragment)},m(i,s){R(e,i,s),t=!0},p(i,[s]){const l={};s&2&&(l.class="form-field "+(i[1].required?"required":"")),s&2&&(l.name=i[1].name),s&27&&(l.$$scope={dirty:s,ctx:i}),e.$set(l)},i(i){t||(E(e.$$.fragment,i),t=!0)},o(i){I(e.$$.fragment,i),t=!1},d(i){H(e,i)}}}function r3(n,e,t){let{field:i=new fn}=e,{value:s=void 0}=e;function l(){s=rt(this.value),t(0,s)}return n.$$set=o=>{"field"in o&&t(1,i=o.field),"value"in o&&t(0,s=o.value)},[s,i,l]}class a3 extends Ce{constructor(e){super(),$e(this,e,r3,o3,ke,{field:1,value:0})}}function u3(n){let e,t,i,s,l=n[1].name+"",o,r,a,u;return{c(){e=v("input"),i=O(),s=v("label"),o=z(l),p(e,"type","checkbox"),p(e,"id",t=n[3]),p(s,"for",r=n[3])},m(f,c){$(f,e,c),e.checked=n[0],$(f,i,c),$(f,s,c),_(s,o),a||(u=W(e,"change",n[2]),a=!0)},p(f,c){c&8&&t!==(t=f[3])&&p(e,"id",t),c&1&&(e.checked=f[0]),c&2&&l!==(l=f[1].name+"")&&ue(o,l),c&8&&r!==(r=f[3])&&p(s,"for",r)},d(f){f&&S(e),f&&S(i),f&&S(s),a=!1,u()}}}function f3(n){let e,t;return e=new _e({props:{class:"form-field form-field-toggle "+(n[1].required?"required":""),name:n[1].name,$$slots:{default:[u3,({uniqueId:i})=>({3:i}),({uniqueId:i})=>i?8:0]},$$scope:{ctx:n}}}),{c(){j(e.$$.fragment)},m(i,s){R(e,i,s),t=!0},p(i,[s]){const l={};s&2&&(l.class="form-field form-field-toggle "+(i[1].required?"required":"")),s&2&&(l.name=i[1].name),s&27&&(l.$$scope={dirty:s,ctx:i}),e.$set(l)},i(i){t||(E(e.$$.fragment,i),t=!0)},o(i){I(e.$$.fragment,i),t=!1},d(i){H(e,i)}}}function c3(n,e,t){let{field:i=new fn}=e,{value:s=!1}=e;function l(){s=this.checked,t(0,s)}return n.$$set=o=>{"field"in o&&t(1,i=o.field),"value"in o&&t(0,s=o.value)},[s,i,l]}class d3 extends Ce{constructor(e){super(),$e(this,e,c3,f3,ke,{field:1,value:0})}}function p3(n){let e,t,i,s,l,o=n[1].name+"",r,a,u,f,c,d,h,m;return{c(){e=v("label"),t=v("i"),s=O(),l=v("span"),r=z(o),u=O(),f=v("input"),p(t,"class",i=B.getFieldTypeIcon(n[1].type)),p(l,"class","txt"),p(e,"for",a=n[3]),p(f,"type","email"),p(f,"id",c=n[3]),f.required=d=n[1].required},m(b,g){$(b,e,g),_(e,t),_(e,s),_(e,l),_(l,r),$(b,u,g),$(b,f,g),pe(f,n[0]),h||(m=W(f,"input",n[2]),h=!0)},p(b,g){g&2&&i!==(i=B.getFieldTypeIcon(b[1].type))&&p(t,"class",i),g&2&&o!==(o=b[1].name+"")&&ue(r,o),g&8&&a!==(a=b[3])&&p(e,"for",a),g&8&&c!==(c=b[3])&&p(f,"id",c),g&2&&d!==(d=b[1].required)&&(f.required=d),g&1&&f.value!==b[0]&&pe(f,b[0])},d(b){b&&S(e),b&&S(u),b&&S(f),h=!1,m()}}}function h3(n){let e,t;return e=new _e({props:{class:"form-field "+(n[1].required?"required":""),name:n[1].name,$$slots:{default:[p3,({uniqueId:i})=>({3:i}),({uniqueId:i})=>i?8:0]},$$scope:{ctx:n}}}),{c(){j(e.$$.fragment)},m(i,s){R(e,i,s),t=!0},p(i,[s]){const l={};s&2&&(l.class="form-field "+(i[1].required?"required":"")),s&2&&(l.name=i[1].name),s&27&&(l.$$scope={dirty:s,ctx:i}),e.$set(l)},i(i){t||(E(e.$$.fragment,i),t=!0)},o(i){I(e.$$.fragment,i),t=!1},d(i){H(e,i)}}}function m3(n,e,t){let{field:i=new fn}=e,{value:s=void 0}=e;function l(){s=this.value,t(0,s)}return n.$$set=o=>{"field"in o&&t(1,i=o.field),"value"in o&&t(0,s=o.value)},[s,i,l]}class g3 extends Ce{constructor(e){super(),$e(this,e,m3,h3,ke,{field:1,value:0})}}function _3(n){let e,t,i,s,l,o=n[1].name+"",r,a,u,f,c,d,h,m;return{c(){e=v("label"),t=v("i"),s=O(),l=v("span"),r=z(o),u=O(),f=v("input"),p(t,"class",i=B.getFieldTypeIcon(n[1].type)),p(l,"class","txt"),p(e,"for",a=n[3]),p(f,"type","url"),p(f,"id",c=n[3]),f.required=d=n[1].required},m(b,g){$(b,e,g),_(e,t),_(e,s),_(e,l),_(l,r),$(b,u,g),$(b,f,g),pe(f,n[0]),h||(m=W(f,"input",n[2]),h=!0)},p(b,g){g&2&&i!==(i=B.getFieldTypeIcon(b[1].type))&&p(t,"class",i),g&2&&o!==(o=b[1].name+"")&&ue(r,o),g&8&&a!==(a=b[3])&&p(e,"for",a),g&8&&c!==(c=b[3])&&p(f,"id",c),g&2&&d!==(d=b[1].required)&&(f.required=d),g&1&&pe(f,b[0])},d(b){b&&S(e),b&&S(u),b&&S(f),h=!1,m()}}}function b3(n){let e,t;return e=new _e({props:{class:"form-field "+(n[1].required?"required":""),name:n[1].name,$$slots:{default:[_3,({uniqueId:i})=>({3:i}),({uniqueId:i})=>i?8:0]},$$scope:{ctx:n}}}),{c(){j(e.$$.fragment)},m(i,s){R(e,i,s),t=!0},p(i,[s]){const l={};s&2&&(l.class="form-field "+(i[1].required?"required":"")),s&2&&(l.name=i[1].name),s&27&&(l.$$scope={dirty:s,ctx:i}),e.$set(l)},i(i){t||(E(e.$$.fragment,i),t=!0)},o(i){I(e.$$.fragment,i),t=!1},d(i){H(e,i)}}}function v3(n,e,t){let{field:i=new fn}=e,{value:s=void 0}=e;function l(){s=this.value,t(0,s)}return n.$$set=o=>{"field"in o&&t(1,i=o.field),"value"in o&&t(0,s=o.value)},[s,i,l]}class y3 extends Ce{constructor(e){super(),$e(this,e,v3,b3,ke,{field:1,value:0})}}function k3(n){let e,t,i,s,l,o=n[1].name+"",r,a,u,f,c,d,h;function m(g){n[2](g)}let b={id:n[3],options:B.defaultFlatpickrOptions(),value:n[0]};return n[0]!==void 0&&(b.formattedValue=n[0]),c=new Ka({props:b}),le.push(()=>ye(c,"formattedValue",m)),{c(){e=v("label"),t=v("i"),s=O(),l=v("span"),r=z(o),a=z(" (UTC)"),f=O(),j(c.$$.fragment),p(t,"class",i=B.getFieldTypeIcon(n[1].type)),p(l,"class","txt"),p(e,"for",u=n[3])},m(g,y){$(g,e,y),_(e,t),_(e,s),_(e,l),_(l,r),_(l,a),$(g,f,y),R(c,g,y),h=!0},p(g,y){(!h||y&2&&i!==(i=B.getFieldTypeIcon(g[1].type)))&&p(t,"class",i),(!h||y&2)&&o!==(o=g[1].name+"")&&ue(r,o),(!h||y&8&&u!==(u=g[3]))&&p(e,"for",u);const k={};y&8&&(k.id=g[3]),y&1&&(k.value=g[0]),!d&&y&1&&(d=!0,k.formattedValue=g[0],Me(()=>d=!1)),c.$set(k)},i(g){h||(E(c.$$.fragment,g),h=!0)},o(g){I(c.$$.fragment,g),h=!1},d(g){g&&S(e),g&&S(f),H(c,g)}}}function w3(n){let e,t;return e=new _e({props:{class:"form-field "+(n[1].required?"required":""),name:n[1].name,$$slots:{default:[k3,({uniqueId:i})=>({3:i}),({uniqueId:i})=>i?8:0]},$$scope:{ctx:n}}}),{c(){j(e.$$.fragment)},m(i,s){R(e,i,s),t=!0},p(i,[s]){const l={};s&2&&(l.class="form-field "+(i[1].required?"required":"")),s&2&&(l.name=i[1].name),s&27&&(l.$$scope={dirty:s,ctx:i}),e.$set(l)},i(i){t||(E(e.$$.fragment,i),t=!0)},o(i){I(e.$$.fragment,i),t=!1},d(i){H(e,i)}}}function S3(n,e,t){let{field:i=new fn}=e,{value:s=void 0}=e;function l(o){s=o,t(0,s)}return n.$$set=o=>{"field"in o&&t(1,i=o.field),"value"in o&&t(0,s=o.value)},n.$$.update=()=>{n.$$.dirty&1&&s&&s.length>19&&t(0,s=s.substring(0,19))},[s,i,l]}class $3 extends Ce{constructor(e){super(),$e(this,e,S3,w3,ke,{field:1,value:0})}}function zd(n){let e,t,i=n[1].options.maxSelect+"",s,l;return{c(){e=v("div"),t=z("Select up to "),s=z(i),l=z(" items."),p(e,"class","help-block")},m(o,r){$(o,e,r),_(e,t),_(e,s),_(e,l)},p(o,r){r&2&&i!==(i=o[1].options.maxSelect+"")&&ue(s,i)},d(o){o&&S(e)}}}function C3(n){var k,w,C;let e,t,i,s,l,o=n[1].name+"",r,a,u,f,c,d,h,m;function b(M){n[3](M)}let g={id:n[4],toggle:!n[1].required||n[2],multiple:n[2],items:(k=n[1].options)==null?void 0:k.values,searchable:((w=n[1].options)==null?void 0:w.values)>5};n[0]!==void 0&&(g.selected=n[0]),f=new $_({props:g}),le.push(()=>ye(f,"selected",b));let y=((C=n[1].options)==null?void 0:C.maxSelect)>1&&zd(n);return{c(){e=v("label"),t=v("i"),s=O(),l=v("span"),r=z(o),u=O(),j(f.$$.fragment),d=O(),y&&y.c(),h=Fe(),p(t,"class",i=B.getFieldTypeIcon(n[1].type)),p(l,"class","txt"),p(e,"for",a=n[4])},m(M,T){$(M,e,T),_(e,t),_(e,s),_(e,l),_(l,r),$(M,u,T),R(f,M,T),$(M,d,T),y&&y.m(M,T),$(M,h,T),m=!0},p(M,T){var A,P,L;(!m||T&2&&i!==(i=B.getFieldTypeIcon(M[1].type)))&&p(t,"class",i),(!m||T&2)&&o!==(o=M[1].name+"")&&ue(r,o),(!m||T&16&&a!==(a=M[4]))&&p(e,"for",a);const D={};T&16&&(D.id=M[4]),T&6&&(D.toggle=!M[1].required||M[2]),T&4&&(D.multiple=M[2]),T&2&&(D.items=(A=M[1].options)==null?void 0:A.values),T&2&&(D.searchable=((P=M[1].options)==null?void 0:P.values)>5),!c&&T&1&&(c=!0,D.selected=M[0],Me(()=>c=!1)),f.$set(D),((L=M[1].options)==null?void 0:L.maxSelect)>1?y?y.p(M,T):(y=zd(M),y.c(),y.m(h.parentNode,h)):y&&(y.d(1),y=null)},i(M){m||(E(f.$$.fragment,M),m=!0)},o(M){I(f.$$.fragment,M),m=!1},d(M){M&&S(e),M&&S(u),H(f,M),M&&S(d),y&&y.d(M),M&&S(h)}}}function M3(n){let e,t;return e=new _e({props:{class:"form-field "+(n[1].required?"required":""),name:n[1].name,$$slots:{default:[C3,({uniqueId:i})=>({4:i}),({uniqueId:i})=>i?16:0]},$$scope:{ctx:n}}}),{c(){j(e.$$.fragment)},m(i,s){R(e,i,s),t=!0},p(i,[s]){const l={};s&2&&(l.class="form-field "+(i[1].required?"required":"")),s&2&&(l.name=i[1].name),s&55&&(l.$$scope={dirty:s,ctx:i}),e.$set(l)},i(i){t||(E(e.$$.fragment,i),t=!0)},o(i){I(e.$$.fragment,i),t=!1},d(i){H(e,i)}}}function T3(n,e,t){let i,{field:s=new fn}=e,{value:l=void 0}=e;function o(r){l=r,t(0,l),t(2,i),t(1,s)}return n.$$set=r=>{"field"in r&&t(1,s=r.field),"value"in r&&t(0,l=r.value)},n.$$.update=()=>{var r;n.$$.dirty&2&&t(2,i=((r=s.options)==null?void 0:r.maxSelect)>1),n.$$.dirty&5&&typeof l>"u"&&t(0,l=i?[]:""),n.$$.dirty&7&&i&&Array.isArray(l)&&l.length>s.options.maxSelect&&t(0,l=l.slice(l.length-s.options.maxSelect))},[l,s,i,o]}class O3 extends Ce{constructor(e){super(),$e(this,e,T3,M3,ke,{field:1,value:0})}}function D3(n){let e,t,i,s,l,o=n[1].name+"",r,a,u,f,c,d,h,m;return{c(){e=v("label"),t=v("i"),s=O(),l=v("span"),r=z(o),u=O(),f=v("textarea"),p(t,"class",i=B.getFieldTypeIcon(n[1].type)),p(l,"class","txt"),p(e,"for",a=n[3]),p(f,"id",c=n[3]),f.required=d=n[1].required,p(f,"class","txt-mono")},m(b,g){$(b,e,g),_(e,t),_(e,s),_(e,l),_(l,r),$(b,u,g),$(b,f,g),pe(f,n[0]),h||(m=W(f,"input",n[2]),h=!0)},p(b,g){g&2&&i!==(i=B.getFieldTypeIcon(b[1].type))&&p(t,"class",i),g&2&&o!==(o=b[1].name+"")&&ue(r,o),g&8&&a!==(a=b[3])&&p(e,"for",a),g&8&&c!==(c=b[3])&&p(f,"id",c),g&2&&d!==(d=b[1].required)&&(f.required=d),g&1&&pe(f,b[0])},d(b){b&&S(e),b&&S(u),b&&S(f),h=!1,m()}}}function E3(n){let e,t;return e=new _e({props:{class:"form-field "+(n[1].required?"required":""),name:n[1].name,$$slots:{default:[D3,({uniqueId:i})=>({3:i}),({uniqueId:i})=>i?8:0]},$$scope:{ctx:n}}}),{c(){j(e.$$.fragment)},m(i,s){R(e,i,s),t=!0},p(i,[s]){const l={};s&2&&(l.class="form-field "+(i[1].required?"required":"")),s&2&&(l.name=i[1].name),s&27&&(l.$$scope={dirty:s,ctx:i}),e.$set(l)},i(i){t||(E(e.$$.fragment,i),t=!0)},o(i){I(e.$$.fragment,i),t=!1},d(i){H(e,i)}}}function A3(n,e,t){let{field:i=new fn}=e,{value:s=void 0}=e;function l(){s=this.value,t(0,s)}return n.$$set=o=>{"field"in o&&t(1,i=o.field),"value"in o&&t(0,s=o.value)},n.$$.update=()=>{n.$$.dirty&1&&typeof s<"u"&&typeof s!="string"&&s!==null&&t(0,s=JSON.stringify(s,null,2))},[s,i,l]}class I3 extends Ce{constructor(e){super(),$e(this,e,A3,E3,ke,{field:1,value:0})}}function P3(n){let e,t;return{c(){e=v("i"),p(e,"class","ri-file-line"),p(e,"alt",t=n[0].name)},m(i,s){$(i,e,s)},p(i,s){s&1&&t!==(t=i[0].name)&&p(e,"alt",t)},d(i){i&&S(e)}}}function L3(n){let e,t,i;return{c(){e=v("img"),Ln(e.src,t=n[2])||p(e,"src",t),p(e,"width",n[1]),p(e,"height",n[1]),p(e,"alt",i=n[0].name)},m(s,l){$(s,e,l)},p(s,l){l&4&&!Ln(e.src,t=s[2])&&p(e,"src",t),l&2&&p(e,"width",s[1]),l&2&&p(e,"height",s[1]),l&1&&i!==(i=s[0].name)&&p(e,"alt",i)},d(s){s&&S(e)}}}function N3(n){let e;function t(l,o){return l[2]?L3:P3}let i=t(n),s=i(n);return{c(){s.c(),e=Fe()},m(l,o){s.m(l,o),$(l,e,o)},p(l,[o]){i===(i=t(l))&&s?s.p(l,o):(s.d(1),s=i(l),s&&(s.c(),s.m(e.parentNode,e)))},i:x,o:x,d(l){s.d(l),l&&S(e)}}}function F3(n,e,t){let i,{file:s}=e,{size:l=50}=e;function o(){t(2,i=""),B.hasImageExtension(s==null?void 0:s.name)&&B.generateThumb(s,l,l).then(r=>{t(2,i=r)}).catch(r=>{console.warn("Unable to generate thumb: ",r)})}return n.$$set=r=>{"file"in r&&t(0,s=r.file),"size"in r&&t(1,l=r.size)},n.$$.update=()=>{n.$$.dirty&1&&typeof s<"u"&&o()},t(2,i=""),[s,l,i]}class R3 extends Ce{constructor(e){super(),$e(this,e,F3,N3,ke,{file:0,size:1})}}function H3(n){let e,t,i;return{c(){e=v("img"),Ln(e.src,t=n[2])||p(e,"src",t),p(e,"alt",i="Preview "+n[2])},m(s,l){$(s,e,l)},p(s,l){l&4&&!Ln(e.src,t=s[2])&&p(e,"src",t),l&4&&i!==(i="Preview "+s[2])&&p(e,"alt",i)},d(s){s&&S(e)}}}function j3(n){let e,t,i;return{c(){e=v("button"),e.innerHTML='',p(e,"type","button"),p(e,"class","overlay-close")},m(s,l){$(s,e,l),t||(i=W(e,"click",ut(n[0])),t=!0)},p:x,d(s){s&&S(e),t=!1,i()}}}function q3(n){let e,t=n[2].substring(n[2].lastIndexOf("/")+1)+"",i,s,l,o,r,a,u;return{c(){e=v("a"),i=z(t),s=O(),l=v("div"),o=O(),r=v("button"),r.textContent="Close",p(e,"href",n[2]),p(e,"title","Download"),p(e,"target","_blank"),p(e,"rel","noreferrer noopener"),p(e,"class","link-hint txt-ellipsis"),p(l,"class","flex-fill"),p(r,"type","button"),p(r,"class","btn btn-secondary")},m(f,c){$(f,e,c),_(e,i),$(f,s,c),$(f,l,c),$(f,o,c),$(f,r,c),a||(u=W(r,"click",n[0]),a=!0)},p(f,c){c&4&&t!==(t=f[2].substring(f[2].lastIndexOf("/")+1)+"")&&ue(i,t),c&4&&p(e,"href",f[2])},d(f){f&&S(e),f&&S(s),f&&S(l),f&&S(o),f&&S(r),a=!1,u()}}}function V3(n){let e,t,i={class:"image-preview",btnClose:!1,popup:!0,$$slots:{footer:[q3],header:[j3],default:[H3]},$$scope:{ctx:n}};return e=new Jn({props:i}),n[4](e),e.$on("show",n[5]),e.$on("hide",n[6]),{c(){j(e.$$.fragment)},m(s,l){R(e,s,l),t=!0},p(s,[l]){const o={};l&132&&(o.$$scope={dirty:l,ctx:s}),e.$set(o)},i(s){t||(E(e.$$.fragment,s),t=!0)},o(s){I(e.$$.fragment,s),t=!1},d(s){n[4](null),H(e,s)}}}function z3(n,e,t){let i,s="";function l(f){f!==""&&(t(2,s=f),i==null||i.show())}function o(){return i==null?void 0:i.hide()}function r(f){le[f?"unshift":"push"](()=>{i=f,t(1,i)})}function a(f){Ve.call(this,n,f)}function u(f){Ve.call(this,n,f)}return[o,i,s,l,r,a,u]}class B3 extends Ce{constructor(e){super(),$e(this,e,z3,V3,ke,{show:3,hide:0})}get show(){return this.$$.ctx[3]}get hide(){return this.$$.ctx[0]}}function U3(n){let e;return{c(){e=v("i"),p(e,"class","ri-file-line")},m(t,i){$(t,e,i)},p:x,d(t){t&&S(e)}}}function W3(n){let e,t,i,s,l;return{c(){e=v("img"),Ln(e.src,t=n[4])||p(e,"src",t),p(e,"alt",n[0]),p(e,"title",i="Preview "+n[0]),ee(e,"link-fade",n[2])},m(o,r){$(o,e,r),s||(l=[W(e,"click",n[7]),W(e,"error",n[5])],s=!0)},p(o,r){r&16&&!Ln(e.src,t=o[4])&&p(e,"src",t),r&1&&p(e,"alt",o[0]),r&1&&i!==(i="Preview "+o[0])&&p(e,"title",i),r&4&&ee(e,"link-fade",o[2])},d(o){o&&S(e),s=!1,Re(l)}}}function Y3(n){let e,t,i;function s(a,u){return a[2]?W3:U3}let l=s(n),o=l(n),r={};return t=new B3({props:r}),n[8](t),{c(){o.c(),e=O(),j(t.$$.fragment)},m(a,u){o.m(a,u),$(a,e,u),R(t,a,u),i=!0},p(a,[u]){l===(l=s(a))&&o?o.p(a,u):(o.d(1),o=l(a),o&&(o.c(),o.m(e.parentNode,e)));const f={};t.$set(f)},i(a){i||(E(t.$$.fragment,a),i=!0)},o(a){I(t.$$.fragment,a),i=!1},d(a){o.d(a),a&&S(e),n[8](null),H(t,a)}}}function K3(n,e,t){let i,{record:s}=e,{filename:l}=e,o,r="",a="";function u(){t(4,r="")}const f=d=>{d.stopPropagation(),o==null||o.show(a)};function c(d){le[d?"unshift":"push"](()=>{o=d,t(3,o)})}return n.$$set=d=>{"record"in d&&t(6,s=d.record),"filename"in d&&t(0,l=d.filename)},n.$$.update=()=>{n.$$.dirty&1&&t(2,i=B.hasImageExtension(l)),n.$$.dirty&69&&i&&t(1,a=me.getFileUrl(s,`${l}`)),n.$$.dirty&2&&t(4,r=a?a+"?thumb=100x100":"")},[l,a,i,o,r,u,s,f,c]}class O_ extends Ce{constructor(e){super(),$e(this,e,K3,Y3,ke,{record:6,filename:0})}}function Bd(n,e,t){const i=n.slice();return i[22]=e[t],i[24]=t,i}function Ud(n,e,t){const i=n.slice();return i[25]=e[t],i[24]=t,i}function J3(n){let e,t,i;function s(){return n[14](n[24])}return{c(){e=v("button"),e.innerHTML='',p(e,"type","button"),p(e,"class","btn btn-secondary btn-sm btn-circle btn-remove txt-hint")},m(l,o){$(l,e,o),t||(i=[Le(Be.call(null,e,"Remove file")),W(e,"click",s)],t=!0)},p(l,o){n=l},d(l){l&&S(e),t=!1,Re(i)}}}function Z3(n){let e,t,i;function s(){return n[13](n[24])}return{c(){e=v("button"),e.innerHTML='Restore',p(e,"type","button"),p(e,"class","btn btn-sm btn-danger btn-secondary")},m(l,o){$(l,e,o),t||(i=W(e,"click",s),t=!0)},p(l,o){n=l},d(l){l&&S(e),t=!1,i()}}}function Wd(n,e){let t,i,s,l,o,r=e[25]+"",a,u,f,c,d,h,m;s=new O_({props:{record:e[2],filename:e[25]}});function b(k,w){return w&18&&(c=null),c==null&&(c=!!k[1].includes(k[24])),c?Z3:J3}let g=b(e,-1),y=g(e);return{key:n,first:null,c(){t=v("div"),i=v("figure"),j(s.$$.fragment),l=O(),o=v("a"),a=z(r),f=O(),y.c(),p(i,"class","thumb"),ee(i,"fade",e[1].includes(e[24])),p(o,"href",u=me.getFileUrl(e[2],e[25])),p(o,"class","filename link-hint"),p(o,"target","_blank"),p(o,"rel","noopener noreferrer"),ee(o,"txt-strikethrough",e[1].includes(e[24])),p(t,"class","list-item"),this.first=t},m(k,w){$(k,t,w),_(t,i),R(s,i,null),_(t,l),_(t,o),_(o,a),_(t,f),y.m(t,null),d=!0,h||(m=Le(Be.call(null,o,{position:"right",text:"Download"})),h=!0)},p(k,w){e=k;const C={};w&4&&(C.record=e[2]),w&16&&(C.filename=e[25]),s.$set(C),(!d||w&18)&&ee(i,"fade",e[1].includes(e[24])),(!d||w&16)&&r!==(r=e[25]+"")&&ue(a,r),(!d||w&20&&u!==(u=me.getFileUrl(e[2],e[25])))&&p(o,"href",u),(!d||w&18)&&ee(o,"txt-strikethrough",e[1].includes(e[24])),g===(g=b(e,w))&&y?y.p(e,w):(y.d(1),y=g(e),y&&(y.c(),y.m(t,null)))},i(k){d||(E(s.$$.fragment,k),d=!0)},o(k){I(s.$$.fragment,k),d=!1},d(k){k&&S(t),H(s),y.d(),h=!1,m()}}}function Yd(n){let e,t,i,s,l,o,r,a,u=n[22].name+"",f,c,d,h,m,b,g;i=new R3({props:{file:n[22]}});function y(){return n[15](n[24])}return{c(){e=v("div"),t=v("figure"),j(i.$$.fragment),s=O(),l=v("div"),o=v("small"),o.textContent="New",r=O(),a=v("span"),f=z(u),d=O(),h=v("button"),h.innerHTML='',p(t,"class","thumb"),p(o,"class","label label-success m-r-5"),p(a,"class","txt"),p(l,"class","filename"),p(l,"title",c=n[22].name),p(h,"type","button"),p(h,"class","btn btn-secondary btn-sm btn-circle btn-remove"),p(e,"class","list-item")},m(k,w){$(k,e,w),_(e,t),R(i,t,null),_(e,s),_(e,l),_(l,o),_(l,r),_(l,a),_(a,f),_(e,d),_(e,h),m=!0,b||(g=[Le(Be.call(null,h,"Remove file")),W(h,"click",y)],b=!0)},p(k,w){n=k;const C={};w&1&&(C.file=n[22]),i.$set(C),(!m||w&1)&&u!==(u=n[22].name+"")&&ue(f,u),(!m||w&1&&c!==(c=n[22].name))&&p(l,"title",c)},i(k){m||(E(i.$$.fragment,k),m=!0)},o(k){I(i.$$.fragment,k),m=!1},d(k){k&&S(e),H(i),b=!1,Re(g)}}}function Kd(n){let e,t,i,s,l,o;return{c(){e=v("div"),t=v("input"),i=O(),s=v("button"),s.innerHTML=` - Upload new file`,p(t,"type","file"),p(t,"class","hidden"),t.multiple=n[5],p(s,"type","button"),p(s,"class","btn btn-secondary btn-sm btn-block"),p(e,"class","list-item btn-list-item")},m(r,a){$(r,e,a),_(e,t),n[16](t),_(e,i),_(e,s),l||(o=[W(t,"change",n[17]),W(s,"click",n[18])],l=!0)},p(r,a){a&32&&(t.multiple=r[5])},d(r){r&&S(e),n[16](null),l=!1,Re(o)}}}function G3(n){let e,t,i,s,l,o=n[3].name+"",r,a,u,f,c=[],d=new Map,h,m,b,g=n[4];const y=T=>T[25];for(let T=0;TI(w[T],1,1,()=>{w[T]=null});let M=!n[8]&&Kd(n);return{c(){e=v("label"),t=v("i"),s=O(),l=v("span"),r=z(o),u=O(),f=v("div");for(let T=0;T({21:i}),({uniqueId:i})=>i?2097152:0]},$$scope:{ctx:n}}}),{c(){j(e.$$.fragment)},m(i,s){R(e,i,s),t=!0},p(i,[s]){const l={};s&8&&(l.class="form-field form-field-file "+(i[3].required?"required":"")),s&8&&(l.name=i[3].name),s&136315391&&(l.$$scope={dirty:s,ctx:i}),e.$set(l)},i(i){t||(E(e.$$.fragment,i),t=!0)},o(i){I(e.$$.fragment,i),t=!1},d(i){H(e,i)}}}function Q3(n,e,t){let i,s,l,{record:o}=e,{value:r=""}=e,{uploadedFiles:a=[]}=e,{deletedFileIndexes:u=[]}=e,{field:f=new fn}=e,c,d;function h(A){B.removeByValue(u,A),t(1,u)}function m(A){B.pushUnique(u,A),t(1,u)}function b(A){B.isEmpty(a[A])||a.splice(A,1),t(0,a)}function g(){d==null||d.dispatchEvent(new CustomEvent("change",{detail:{value:r,uploadedFiles:a,deletedFileIndexes:u},bubbles:!0}))}const y=A=>h(A),k=A=>m(A),w=A=>b(A);function C(A){le[A?"unshift":"push"](()=>{c=A,t(6,c)})}const M=()=>{for(let A of c.files)a.push(A);t(0,a),t(6,c.value=null,c)},T=()=>c==null?void 0:c.click();function D(A){le[A?"unshift":"push"](()=>{d=A,t(7,d)})}return n.$$set=A=>{"record"in A&&t(2,o=A.record),"value"in A&&t(12,r=A.value),"uploadedFiles"in A&&t(0,a=A.uploadedFiles),"deletedFileIndexes"in A&&t(1,u=A.deletedFileIndexes),"field"in A&&t(3,f=A.field)},n.$$.update=()=>{var A,P;n.$$.dirty&1&&(Array.isArray(a)||t(0,a=B.toArray(a))),n.$$.dirty&2&&(Array.isArray(u)||t(1,u=B.toArray(u))),n.$$.dirty&8&&t(5,i=((A=f.options)==null?void 0:A.maxSelect)>1),n.$$.dirty&4128&&B.isEmpty(r)&&t(12,r=i?[]:""),n.$$.dirty&4096&&t(4,s=B.toArray(r)),n.$$.dirty&27&&t(8,l=(s.length||a.length)&&((P=f.options)==null?void 0:P.maxSelect)<=s.length+a.length-u.length),n.$$.dirty&3&&(a!==-1||u!==-1)&&g()},[a,u,o,f,s,i,c,d,l,h,m,b,r,y,k,w,C,M,T,D]}class x3 extends Ce{constructor(e){super(),$e(this,e,Q3,X3,ke,{record:2,value:12,uploadedFiles:0,deletedFileIndexes:1,field:3})}}function Jd(n){let e,t;return{c(){e=v("small"),t=z(n[1]),p(e,"class","block txt-hint txt-ellipsis")},m(i,s){$(i,e,s),_(e,t)},p(i,s){s&2&&ue(t,i[1])},d(i){i&&S(e)}}}function eM(n){let e,t,i,s,l,o=n[0].id+"",r,a,u,f,c=n[1]!==""&&n[1]!==n[0].id&&Jd(n);return{c(){e=v("i"),i=O(),s=v("div"),l=v("div"),r=z(o),a=O(),c&&c.c(),p(e,"class","ri-information-line link-hint"),p(l,"class","block txt-ellipsis"),p(s,"class","content svelte-1gjwqyd")},m(d,h){$(d,e,h),$(d,i,h),$(d,s,h),_(s,l),_(l,r),_(s,a),c&&c.m(s,null),u||(f=Le(t=Be.call(null,e,{text:JSON.stringify(n[0],null,2),position:"left",class:"code"})),u=!0)},p(d,[h]){t&&Wt(t.update)&&h&1&&t.update.call(null,{text:JSON.stringify(d[0],null,2),position:"left",class:"code"}),h&1&&o!==(o=d[0].id+"")&&ue(r,o),d[1]!==""&&d[1]!==d[0].id?c?c.p(d,h):(c=Jd(d),c.c(),c.m(s,null)):c&&(c.d(1),c=null)},i:x,o:x,d(d){d&&S(e),d&&S(i),d&&S(s),c&&c.d(),u=!1,f()}}}function tM(n,e,t){let i;const s=["id","created","updated","@collectionId","@collectionName"];let{item:l={}}=e;function o(r){r=r||{};const a=["title","name","email","username","label","key","heading","content","description",...Object.keys(r)];for(const u of a)if(typeof r[u]=="string"&&!B.isEmpty(r[u])&&!s.includes(u))return u+": "+r[u];return""}return n.$$set=r=>{"item"in r&&t(0,l=r.item)},n.$$.update=()=>{n.$$.dirty&1&&t(1,i=o(l))},[l,i]}class nM extends Ce{constructor(e){super(),$e(this,e,tM,eM,ke,{item:0})}}function Zd(n){let e,t,i;return{c(){e=v("button"),e.innerHTML='New record',p(e,"type","button"),p(e,"class","btn btn-warning btn-block btn-sm m-t-5")},m(s,l){$(s,e,l),t||(i=W(e,"click",n[17]),t=!0)},p:x,d(s){s&&S(e),t=!1,i()}}}function Gd(n){let e,t,i;return{c(){e=v("button"),e.innerHTML='Load more',p(e,"type","button"),p(e,"class","btn btn-block btn-sm m-t-5"),ee(e,"btn-loading",n[6]),ee(e,"btn-disabled",n[6])},m(s,l){$(s,e,l),t||(i=W(e,"click",Yn(n[18])),t=!0)},p(s,l){l&64&&ee(e,"btn-loading",s[6]),l&64&&ee(e,"btn-disabled",s[6])},d(s){s&&S(e),t=!1,i()}}}function iM(n){let e,t,i=!n[7]&&n[8]&&Zd(n),s=n[10]&&Gd(n);return{c(){i&&i.c(),e=O(),s&&s.c(),t=Fe()},m(l,o){i&&i.m(l,o),$(l,e,o),s&&s.m(l,o),$(l,t,o)},p(l,o){!l[7]&&l[8]?i?i.p(l,o):(i=Zd(l),i.c(),i.m(e.parentNode,e)):i&&(i.d(1),i=null),l[10]?s?s.p(l,o):(s=Gd(l),s.c(),s.m(t.parentNode,t)):s&&(s.d(1),s=null)},d(l){i&&i.d(l),l&&S(e),s&&s.d(l),l&&S(t)}}}function sM(n){let e,t,i,s,l,o;const r=[{selectPlaceholder:n[11]?"Loading...":n[3]},{items:n[5]},{searchable:n[5].length>5},{selectionKey:"id"},{labelComponent:n[4]},{disabled:n[11]},{optionComponent:n[4]},{multiple:n[2]},{class:"records-select block-options"},n[13]];function a(d){n[19](d)}function u(d){n[20](d)}let f={$$slots:{afterOptions:[iM]},$$scope:{ctx:n}};for(let d=0;dye(e,"keyOfSelected",a)),le.push(()=>ye(e,"selected",u)),e.$on("show",n[21]),e.$on("hide",n[22]);let c={collection:n[8]};return l=new D_({props:c}),n[23](l),l.$on("save",n[24]),{c(){j(e.$$.fragment),s=O(),j(l.$$.fragment)},m(d,h){R(e,d,h),$(d,s,h),R(l,d,h),o=!0},p(d,[h]){const m=h&10300?Yt(r,[h&2056&&{selectPlaceholder:d[11]?"Loading...":d[3]},h&32&&{items:d[5]},h&32&&{searchable:d[5].length>5},r[3],h&16&&{labelComponent:d[4]},h&2048&&{disabled:d[11]},h&16&&{optionComponent:d[4]},h&4&&{multiple:d[2]},r[8],h&8192&&Kn(d[13])]):{};h&536872896&&(m.$$scope={dirty:h,ctx:d}),!t&&h&2&&(t=!0,m.keyOfSelected=d[1],Me(()=>t=!1)),!i&&h&1&&(i=!0,m.selected=d[0],Me(()=>i=!1)),e.$set(m);const b={};h&256&&(b.collection=d[8]),l.$set(b)},i(d){o||(E(e.$$.fragment,d),E(l.$$.fragment,d),o=!0)},o(d){I(e.$$.fragment,d),I(l.$$.fragment,d),o=!1},d(d){H(e,d),d&&S(s),n[23](null),H(l,d)}}}function lM(n,e,t){let i,s;const l=["multiple","selected","keyOfSelected","selectPlaceholder","optionComponent","collectionId"];let o=wt(e,l);const r="select_"+B.randomString(5);let{multiple:a=!1}=e,{selected:u=[]}=e,{keyOfSelected:f=a?[]:void 0}=e,{selectPlaceholder:c="- Select -"}=e,{optionComponent:d=nM}=e,{collectionId:h}=e,m=[],b=1,g=0,y=!1,k=!1,w=!1,C=null,M;async function T(){if(!h){t(8,C=null),t(7,w=!1);return}t(7,w=!0);try{t(8,C=await me.collections.getOne(h,{$cancelKey:"collection_"+r}))}catch(Z){me.errorResponseHandler(Z)}t(7,w=!1)}async function D(){const Z=B.toArray(f);if(!h||!Z.length)return;t(16,k=!0);let ie=[];const J=Z.slice(),fe=[];for(;J.length>0;){const Y=[];for(const re of J.splice(0,50))Y.push(`id="${re}"`);fe.push(me.collection(h).getFullList(200,{filter:Y.join("||"),$autoCancel:!1}))}try{await Promise.all(fe).then(Y=>{ie=ie.concat(...Y)}),t(0,u=[]);for(const Y of Z){const re=B.findByKey(ie,"id",Y);re&&u.push(re)}t(5,m=B.filterDuplicatesByKey(u.concat(m)))}catch(Y){me.errorResponseHandler(Y)}t(16,k=!1)}async function A(Z=!1){if(!!h){t(6,y=!0);try{const ie=Z?1:b+1,J=await me.collection(h).getList(ie,200,{sort:"-created",$cancelKey:r+"loadList"});Z&&t(5,m=B.toArray(u).slice()),t(5,m=B.filterDuplicatesByKey(m.concat(J.items,B.toArray(u)))),b=J.page,t(15,g=J.totalItems)}catch(ie){me.errorResponseHandler(ie)}t(6,y=!1)}}const P=()=>M==null?void 0:M.show(),L=()=>A();function V(Z){f=Z,t(1,f)}function F(Z){u=Z,t(0,u)}function U(Z){Ve.call(this,n,Z)}function G(Z){Ve.call(this,n,Z)}function K(Z){le[Z?"unshift":"push"](()=>{M=Z,t(9,M)})}const X=Z=>{var ie;(ie=Z==null?void 0:Z.detail)!=null&&ie.id&&t(1,f=B.toArray(f).concat(Z.detail.id)),A(!0)};return n.$$set=Z=>{e=Ye(Ye({},e),Wn(Z)),t(13,o=wt(e,l)),"multiple"in Z&&t(2,a=Z.multiple),"selected"in Z&&t(0,u=Z.selected),"keyOfSelected"in Z&&t(1,f=Z.keyOfSelected),"selectPlaceholder"in Z&&t(3,c=Z.selectPlaceholder),"optionComponent"in Z&&t(4,d=Z.optionComponent),"collectionId"in Z&&t(14,h=Z.collectionId)},n.$$.update=()=>{n.$$.dirty&16384&&h&&(T(),D().then(()=>{A(!0)})),n.$$.dirty&65600&&t(11,i=y||k),n.$$.dirty&32800&&t(10,s=g>m.length)},[u,f,a,c,d,m,y,w,C,M,s,i,A,o,h,g,k,P,L,V,F,U,G,K,X]}class oM extends Ce{constructor(e){super(),$e(this,e,lM,sM,ke,{multiple:2,selected:0,keyOfSelected:1,selectPlaceholder:3,optionComponent:4,collectionId:14})}}function Xd(n){let e,t,i=n[1].options.maxSelect+"",s,l;return{c(){e=v("div"),t=z("Select up to "),s=z(i),l=z(" items."),p(e,"class","help-block")},m(o,r){$(o,e,r),_(e,t),_(e,s),_(e,l)},p(o,r){r&2&&i!==(i=o[1].options.maxSelect+"")&&ue(s,i)},d(o){o&&S(e)}}}function rM(n){var k,w;let e,t,i,s,l,o=n[1].name+"",r,a,u,f,c,d,h,m;function b(C){n[3](C)}let g={toggle:!0,id:n[4],multiple:n[2],collectionId:(k=n[1].options)==null?void 0:k.collectionId};n[0]!==void 0&&(g.keyOfSelected=n[0]),f=new oM({props:g}),le.push(()=>ye(f,"keyOfSelected",b));let y=((w=n[1].options)==null?void 0:w.maxSelect)>1&&Xd(n);return{c(){e=v("label"),t=v("i"),s=O(),l=v("span"),r=z(o),u=O(),j(f.$$.fragment),d=O(),y&&y.c(),h=Fe(),p(t,"class",i=B.getFieldTypeIcon(n[1].type)),p(l,"class","txt"),p(e,"for",a=n[4])},m(C,M){$(C,e,M),_(e,t),_(e,s),_(e,l),_(l,r),$(C,u,M),R(f,C,M),$(C,d,M),y&&y.m(C,M),$(C,h,M),m=!0},p(C,M){var D,A;(!m||M&2&&i!==(i=B.getFieldTypeIcon(C[1].type)))&&p(t,"class",i),(!m||M&2)&&o!==(o=C[1].name+"")&&ue(r,o),(!m||M&16&&a!==(a=C[4]))&&p(e,"for",a);const T={};M&16&&(T.id=C[4]),M&4&&(T.multiple=C[2]),M&2&&(T.collectionId=(D=C[1].options)==null?void 0:D.collectionId),!c&&M&1&&(c=!0,T.keyOfSelected=C[0],Me(()=>c=!1)),f.$set(T),((A=C[1].options)==null?void 0:A.maxSelect)>1?y?y.p(C,M):(y=Xd(C),y.c(),y.m(h.parentNode,h)):y&&(y.d(1),y=null)},i(C){m||(E(f.$$.fragment,C),m=!0)},o(C){I(f.$$.fragment,C),m=!1},d(C){C&&S(e),C&&S(u),H(f,C),C&&S(d),y&&y.d(C),C&&S(h)}}}function aM(n){let e,t;return e=new _e({props:{class:"form-field "+(n[1].required?"required":""),name:n[1].name,$$slots:{default:[rM,({uniqueId:i})=>({4:i}),({uniqueId:i})=>i?16:0]},$$scope:{ctx:n}}}),{c(){j(e.$$.fragment)},m(i,s){R(e,i,s),t=!0},p(i,[s]){const l={};s&2&&(l.class="form-field "+(i[1].required?"required":"")),s&2&&(l.name=i[1].name),s&55&&(l.$$scope={dirty:s,ctx:i}),e.$set(l)},i(i){t||(E(e.$$.fragment,i),t=!0)},o(i){I(e.$$.fragment,i),t=!1},d(i){H(e,i)}}}function uM(n,e,t){let i,{field:s=new fn}=e,{value:l=void 0}=e;function o(r){l=r,t(0,l),t(2,i),t(1,s)}return n.$$set=r=>{"field"in r&&t(1,s=r.field),"value"in r&&t(0,l=r.value)},n.$$.update=()=>{var r,a;n.$$.dirty&2&&t(2,i=((r=s.options)==null?void 0:r.maxSelect)!=1),n.$$.dirty&7&&i&&Array.isArray(l)&&((a=s.options)==null?void 0:a.maxSelect)&&l.length>s.options.maxSelect&&t(0,l=l.slice(s.options.maxSelect-1))},[l,s,i,o]}class fM extends Ce{constructor(e){super(),$e(this,e,uM,aM,ke,{field:1,value:0})}}function cM(n){let e,t,i,s,l,o,r,a;return{c(){e=v("label"),t=z("Auth URL"),s=O(),l=v("input"),p(e,"for",i=n[5]),p(l,"type","url"),p(l,"id",o=n[5])},m(u,f){$(u,e,f),_(e,t),$(u,s,f),$(u,l,f),pe(l,n[0].authUrl),r||(a=W(l,"input",n[2]),r=!0)},p(u,f){f&32&&i!==(i=u[5])&&p(e,"for",i),f&32&&o!==(o=u[5])&&p(l,"id",o),f&1&&pe(l,u[0].authUrl)},d(u){u&&S(e),u&&S(s),u&&S(l),r=!1,a()}}}function dM(n){let e,t,i,s,l,o,r,a;return{c(){e=v("label"),t=z("Token URL"),s=O(),l=v("input"),p(e,"for",i=n[5]),p(l,"type","text"),p(l,"id",o=n[5])},m(u,f){$(u,e,f),_(e,t),$(u,s,f),$(u,l,f),pe(l,n[0].tokenUrl),r||(a=W(l,"input",n[3]),r=!0)},p(u,f){f&32&&i!==(i=u[5])&&p(e,"for",i),f&32&&o!==(o=u[5])&&p(l,"id",o),f&1&&l.value!==u[0].tokenUrl&&pe(l,u[0].tokenUrl)},d(u){u&&S(e),u&&S(s),u&&S(l),r=!1,a()}}}function pM(n){let e,t,i,s,l,o,r,a;return{c(){e=v("label"),t=z("User API URL"),s=O(),l=v("input"),p(e,"for",i=n[5]),p(l,"type","text"),p(l,"id",o=n[5])},m(u,f){$(u,e,f),_(e,t),$(u,s,f),$(u,l,f),pe(l,n[0].userApiUrl),r||(a=W(l,"input",n[4]),r=!0)},p(u,f){f&32&&i!==(i=u[5])&&p(e,"for",i),f&32&&o!==(o=u[5])&&p(l,"id",o),f&1&&l.value!==u[0].userApiUrl&&pe(l,u[0].userApiUrl)},d(u){u&&S(e),u&&S(s),u&&S(l),r=!1,a()}}}function hM(n){let e,t,i,s,l,o,r,a,u,f,c,d;return l=new _e({props:{class:"form-field",name:n[1]+".authUrl",$$slots:{default:[cM,({uniqueId:h})=>({5:h}),({uniqueId:h})=>h?32:0]},$$scope:{ctx:n}}}),a=new _e({props:{class:"form-field",name:n[1]+".tokenUrl",$$slots:{default:[dM,({uniqueId:h})=>({5:h}),({uniqueId:h})=>h?32:0]},$$scope:{ctx:n}}}),c=new _e({props:{class:"form-field",name:n[1]+".userApiUrl",$$slots:{default:[pM,({uniqueId:h})=>({5:h}),({uniqueId:h})=>h?32:0]},$$scope:{ctx:n}}}),{c(){e=v("div"),e.textContent="Selfhosted endpoints (optional)",t=O(),i=v("div"),s=v("div"),j(l.$$.fragment),o=O(),r=v("div"),j(a.$$.fragment),u=O(),f=v("div"),j(c.$$.fragment),p(e,"class","section-title"),p(s,"class","col-lg-4"),p(r,"class","col-lg-4"),p(f,"class","col-lg-4"),p(i,"class","grid")},m(h,m){$(h,e,m),$(h,t,m),$(h,i,m),_(i,s),R(l,s,null),_(i,o),_(i,r),R(a,r,null),_(i,u),_(i,f),R(c,f,null),d=!0},p(h,[m]){const b={};m&2&&(b.name=h[1]+".authUrl"),m&97&&(b.$$scope={dirty:m,ctx:h}),l.$set(b);const g={};m&2&&(g.name=h[1]+".tokenUrl"),m&97&&(g.$$scope={dirty:m,ctx:h}),a.$set(g);const y={};m&2&&(y.name=h[1]+".userApiUrl"),m&97&&(y.$$scope={dirty:m,ctx:h}),c.$set(y)},i(h){d||(E(l.$$.fragment,h),E(a.$$.fragment,h),E(c.$$.fragment,h),d=!0)},o(h){I(l.$$.fragment,h),I(a.$$.fragment,h),I(c.$$.fragment,h),d=!1},d(h){h&&S(e),h&&S(t),h&&S(i),H(l),H(a),H(c)}}}function mM(n,e,t){let{key:i=""}=e,{config:s={}}=e;function l(){s.authUrl=this.value,t(0,s)}function o(){s.tokenUrl=this.value,t(0,s)}function r(){s.userApiUrl=this.value,t(0,s)}return n.$$set=a=>{"key"in a&&t(1,i=a.key),"config"in a&&t(0,s=a.config)},[s,i,l,o,r]}class gM extends Ce{constructor(e){super(),$e(this,e,mM,hM,ke,{key:1,config:0})}}function _M(n){let e,t,i,s,l,o,r,a,u,f;return{c(){e=v("label"),t=z("Auth URL"),s=O(),l=v("input"),r=O(),a=v("div"),a.textContent="Eg. https://login.microsoftonline.com/YOUR_DIRECTORY_TENANT_ID/oauth2/v2.0/authorize",p(e,"for",i=n[4]),p(l,"type","url"),p(l,"id",o=n[4]),l.required=!0,p(l,"placeholder","https://login.microsoftonline.com/YOUR_DIRECTORY_TENANT_ID/oauth2/v2.0/authorize"),p(a,"class","help-block")},m(c,d){$(c,e,d),_(e,t),$(c,s,d),$(c,l,d),pe(l,n[0].authUrl),$(c,r,d),$(c,a,d),u||(f=W(l,"input",n[2]),u=!0)},p(c,d){d&16&&i!==(i=c[4])&&p(e,"for",i),d&16&&o!==(o=c[4])&&p(l,"id",o),d&1&&pe(l,c[0].authUrl)},d(c){c&&S(e),c&&S(s),c&&S(l),c&&S(r),c&&S(a),u=!1,f()}}}function bM(n){let e,t,i,s,l,o,r,a,u,f;return{c(){e=v("label"),t=z("Token URL"),s=O(),l=v("input"),r=O(),a=v("div"),a.textContent="Eg. https://login.microsoftonline.com/YOUR_DIRECTORY_TENANT_ID/oauth2/v2.0/token",p(e,"for",i=n[4]),p(l,"type","text"),p(l,"id",o=n[4]),l.required=!0,p(l,"placeholder","https://login.microsoftonline.com/YOUR_DIRECTORY_TENANT_ID/oauth2/v2.0/token"),p(a,"class","help-block")},m(c,d){$(c,e,d),_(e,t),$(c,s,d),$(c,l,d),pe(l,n[0].tokenUrl),$(c,r,d),$(c,a,d),u||(f=W(l,"input",n[3]),u=!0)},p(c,d){d&16&&i!==(i=c[4])&&p(e,"for",i),d&16&&o!==(o=c[4])&&p(l,"id",o),d&1&&l.value!==c[0].tokenUrl&&pe(l,c[0].tokenUrl)},d(c){c&&S(e),c&&S(s),c&&S(l),c&&S(r),c&&S(a),u=!1,f()}}}function vM(n){let e,t,i,s,l,o,r,a,u;return l=new _e({props:{class:"form-field required",name:n[1]+".authUrl",$$slots:{default:[_M,({uniqueId:f})=>({4:f}),({uniqueId:f})=>f?16:0]},$$scope:{ctx:n}}}),a=new _e({props:{class:"form-field required",name:n[1]+".tokenUrl",$$slots:{default:[bM,({uniqueId:f})=>({4:f}),({uniqueId:f})=>f?16:0]},$$scope:{ctx:n}}}),{c(){e=v("div"),e.textContent="Azure AD endpoints",t=O(),i=v("div"),s=v("div"),j(l.$$.fragment),o=O(),r=v("div"),j(a.$$.fragment),p(e,"class","section-title"),p(s,"class","col-lg-12"),p(r,"class","col-lg-12"),p(i,"class","grid")},m(f,c){$(f,e,c),$(f,t,c),$(f,i,c),_(i,s),R(l,s,null),_(i,o),_(i,r),R(a,r,null),u=!0},p(f,[c]){const d={};c&2&&(d.name=f[1]+".authUrl"),c&49&&(d.$$scope={dirty:c,ctx:f}),l.$set(d);const h={};c&2&&(h.name=f[1]+".tokenUrl"),c&49&&(h.$$scope={dirty:c,ctx:f}),a.$set(h)},i(f){u||(E(l.$$.fragment,f),E(a.$$.fragment,f),u=!0)},o(f){I(l.$$.fragment,f),I(a.$$.fragment,f),u=!1},d(f){f&&S(e),f&&S(t),f&&S(i),H(l),H(a)}}}function yM(n,e,t){let{key:i=""}=e,{config:s={}}=e;function l(){s.authUrl=this.value,t(0,s)}function o(){s.tokenUrl=this.value,t(0,s)}return n.$$set=r=>{"key"in r&&t(1,i=r.key),"config"in r&&t(0,s=r.config)},[s,i,l,o]}class kM extends Ce{constructor(e){super(),$e(this,e,yM,vM,ke,{key:1,config:0})}}const gl={googleAuth:{title:"Google",icon:"ri-google-fill"},facebookAuth:{title:"Facebook",icon:"ri-facebook-fill"},twitterAuth:{title:"Twitter",icon:"ri-twitter-fill"},githubAuth:{title:"GitHub",icon:"ri-github-fill"},gitlabAuth:{title:"GitLab",icon:"ri-gitlab-fill",optionsComponent:gM},discordAuth:{title:"Discord",icon:"ri-discord-fill"},microsoftAuth:{title:"Microsoft",icon:"ri-microsoft-fill",optionsComponent:kM}};function Qd(n,e,t){const i=n.slice();return i[9]=e[t],i}function wM(n){let e;return{c(){e=v("p"),e.textContent="No linked OAuth2 providers.",p(e,"class","txt-hint txt-center")},m(t,i){$(t,e,i)},p:x,d(t){t&&S(e)}}}function SM(n){let e,t=n[1],i=[];for(let s=0;s',p(e,"class","block txt-center")},m(t,i){$(t,e,i)},p:x,d(t){t&&S(e)}}}function xd(n){let e,t,i,s,l,o=n[3](n[9].provider)+"",r,a,u,f,c=n[9].providerId+"",d,h,m,b,g,y;function k(){return n[6](n[9])}return{c(){e=v("div"),t=v("i"),s=O(),l=v("span"),r=z(o),a=O(),u=v("div"),f=z("ID: "),d=z(c),h=O(),m=v("button"),m.innerHTML='',b=O(),p(t,"class",i=n[4](n[9].provider)),p(l,"class","txt"),p(u,"class","txt-hint"),p(m,"type","button"),p(m,"class","btn btn-secondary link-hint btn-circle btn-sm m-l-auto"),p(e,"class","list-item")},m(w,C){$(w,e,C),_(e,t),_(e,s),_(e,l),_(l,r),_(e,a),_(e,u),_(u,f),_(u,d),_(e,h),_(e,m),_(e,b),g||(y=W(m,"click",k),g=!0)},p(w,C){n=w,C&2&&i!==(i=n[4](n[9].provider))&&p(t,"class",i),C&2&&o!==(o=n[3](n[9].provider)+"")&&ue(r,o),C&2&&c!==(c=n[9].providerId+"")&&ue(d,c)},d(w){w&&S(e),g=!1,y()}}}function CM(n){let e;function t(l,o){var r;return l[2]?$M:((r=l[0])==null?void 0:r.id)&&l[1].length?SM:wM}let i=t(n),s=i(n);return{c(){s.c(),e=Fe()},m(l,o){s.m(l,o),$(l,e,o)},p(l,[o]){i===(i=t(l))&&s?s.p(l,o):(s.d(1),s=i(l),s&&(s.c(),s.m(e.parentNode,e)))},i:x,o:x,d(l){s.d(l),l&&S(e)}}}function MM(n,e,t){const i=It();let{record:s}=e,l=[],o=!1;function r(d){var h;return((h=gl[d+"Auth"])==null?void 0:h.title)||B.sentenize(d,!1)}function a(d){var h;return((h=gl[d+"Auth"])==null?void 0:h.icon)||`ri-${d}-line`}async function u(){if(!(s!=null&&s.id)){t(1,l=[]),t(2,o=!1);return}t(2,o=!0);try{t(1,l=await me.collection(s.collectionId).listExternalAuths(s.id))}catch(d){me.errorResponseHandler(d)}t(2,o=!1)}function f(d){!(s!=null&&s.id)||!d||yn(`Do you really want to unlink the ${r(d)} provider?`,()=>me.collection(s.collectionId).unlinkExternalAuth(s.id,d).then(()=>{Lt(`Successfully unlinked the ${r(d)} provider.`),i("unlink",d),u()}).catch(h=>{me.errorResponseHandler(h)}))}u();const c=d=>f(d.provider);return n.$$set=d=>{"record"in d&&t(0,s=d.record)},[s,l,o,r,a,f,c]}class TM extends Ce{constructor(e){super(),$e(this,e,MM,CM,ke,{record:0})}}function ep(n,e,t){const i=n.slice();return i[46]=e[t],i[47]=e,i[48]=t,i}function tp(n){let e,t;return e=new _e({props:{class:"form-field disabled",name:"id",$$slots:{default:[OM,({uniqueId:i})=>({49:i}),({uniqueId:i})=>[0,i?262144:0]]},$$scope:{ctx:n}}}),{c(){j(e.$$.fragment)},m(i,s){R(e,i,s),t=!0},p(i,s){const l={};s[0]&4|s[1]&786432&&(l.$$scope={dirty:s,ctx:i}),e.$set(l)},i(i){t||(E(e.$$.fragment,i),t=!0)},o(i){I(e.$$.fragment,i),t=!1},d(i){H(e,i)}}}function OM(n){let e,t,i,s,l,o,r,a,u,f,c,d,h,m,b,g,y;return{c(){e=v("label"),t=v("i"),i=O(),s=v("span"),s.textContent="id",l=O(),o=v("span"),a=O(),u=v("div"),f=v("i"),d=O(),h=v("input"),p(t,"class",B.getFieldTypeIcon("primary")),p(s,"class","txt"),p(o,"class","flex-fill"),p(e,"for",r=n[49]),p(f,"class","ri-calendar-event-line txt-disabled"),p(u,"class","form-field-addon"),p(h,"type","text"),p(h,"id",m=n[49]),h.value=b=n[2].id,h.readOnly=!0},m(k,w){$(k,e,w),_(e,t),_(e,i),_(e,s),_(e,l),_(e,o),$(k,a,w),$(k,u,w),_(u,f),$(k,d,w),$(k,h,w),g||(y=Le(c=Be.call(null,f,{text:`Created: ${n[2].created} + New collection`,p(t,"type","button"),p(t,"class","btn btn-block btn-outline"),p(e,"class","sidebar-footer")},m(l,o){$(l,e,o),_(e,t),i||(s=W(t,"click",n[11]),i=!0)},p:x,d(l){l&&S(e),i=!1,s()}}}function A4(n){let e,t,i,s,l,o,r,a,u,f,c,d=[],h=new Map,m,b,g,y,k,w,C=n[3];const M=P=>P[14].id;for(let P=0;P',o=O(),r=v("input"),a=O(),u=v("hr"),f=O(),c=v("div");for(let P=0;P20),p(e,"class","page-sidebar collection-sidebar")},m(P,L){$(P,e,L),_(e,t),_(t,i),_(i,s),_(s,l),_(i,o),_(i,r),pe(r,n[0]),_(e,a),_(e,u),_(e,f),_(e,c);for(let V=0;V20),P[6]?D&&(D.d(1),D=null):D?D.p(P,L):(D=Pd(P),D.c(),D.m(e,null));const V={};g.$set(V)},i(P){y||(E(g.$$.fragment,P),y=!0)},o(P){I(g.$$.fragment,P),y=!1},d(P){P&&S(e);for(let L=0;L{const n=document.querySelector(".collection-sidebar .sidebar-list-item.active");n&&(n==null||n.scrollIntoView({block:"nearest"}))},0)}function P4(n,e,t){let i,s,l,o,r,a;Je(n,Bn,y=>t(5,o=y)),Je(n,Zi,y=>t(8,r=y)),Je(n,ks,y=>t(6,a=y));let u,f="";function c(y){Ht(Bn,o=y,o)}const d=()=>t(0,f="");function h(){f=this.value,t(0,f)}const m=()=>u==null?void 0:u.show();function b(y){le[y?"unshift":"push"](()=>{u=y,t(2,u)})}const g=y=>{var k;((k=y.detail)==null?void 0:k.isNew)&&y.detail.collection&&c(y.detail.collection)};return n.$$.update=()=>{n.$$.dirty&1&&t(1,i=f.replace(/\s+/g,"").toLowerCase()),n.$$.dirty&1&&t(4,s=f!==""),n.$$.dirty&259&&t(3,l=r.filter(y=>y.id==f||y.name.replace(/\s+/g,"").toLowerCase().includes(i))),n.$$.dirty&256&&r&&I4()},[f,i,u,l,s,o,a,c,r,d,h,m,b,g]}class L4 extends Ce{constructor(e){super(),$e(this,e,P4,A4,ke,{})}}function Ld(n,e,t){const i=n.slice();return i[14]=e[t][0],i[15]=e[t][1],i}function Nd(n){n[18]=n[19].default}function Fd(n,e,t){const i=n.slice();return i[14]=e[t][0],i[15]=e[t][1],i}function Rd(n,e){let t,i=e[15].label+"",s,l,o,r;function a(){return e[8](e[14])}return{key:n,first:null,c(){t=v("button"),s=z(i),l=O(),p(t,"type","button"),p(t,"class","sidebar-item"),ee(t,"active",e[5]===e[14]),this.first=t},m(u,f){$(u,t,f),_(t,s),_(t,l),o||(r=W(t,"click",a),o=!0)},p(u,f){e=u,f&8&&i!==(i=e[15].label+"")&&ue(s,i),f&40&&ee(t,"active",e[5]===e[14])},d(u){u&&S(t),o=!1,r()}}}function Hd(n){let e,t,i,s={ctx:n,current:null,token:null,hasCatch:!1,pending:R4,then:F4,catch:N4,value:19,blocks:[,,,]};return xa(t=n[15].component,s),{c(){e=Fe(),s.block.c()},m(l,o){$(l,e,o),s.block.m(l,s.anchor=o),s.mount=()=>e.parentNode,s.anchor=e,i=!0},p(l,o){n=l,s.ctx=n,o&8&&t!==(t=n[15].component)&&xa(t,s)||x_(s,n,o)},i(l){i||(E(s.block),i=!0)},o(l){for(let o=0;o<3;o+=1){const r=s.blocks[o];I(r)}i=!1},d(l){l&&S(e),s.block.d(l),s.token=null,s=null}}}function N4(n){return{c:x,m:x,p:x,i:x,o:x,d:x}}function F4(n){Nd(n);let e,t,i;return e=new n[18]({props:{collection:n[2]}}),{c(){j(e.$$.fragment),t=O()},m(s,l){R(e,s,l),$(s,t,l),i=!0},p(s,l){Nd(s);const o={};l&4&&(o.collection=s[2]),e.$set(o)},i(s){i||(E(e.$$.fragment,s),i=!0)},o(s){I(e.$$.fragment,s),i=!1},d(s){H(e,s),s&&S(t)}}}function R4(n){return{c:x,m:x,p:x,i:x,o:x,d:x}}function jd(n,e){let t,i,s,l=e[5]===e[14]&&Hd(e);return{key:n,first:null,c(){t=Fe(),l&&l.c(),i=Fe(),this.first=t},m(o,r){$(o,t,r),l&&l.m(o,r),$(o,i,r),s=!0},p(o,r){e=o,e[5]===e[14]?l?(l.p(e,r),r&40&&E(l,1)):(l=Hd(e),l.c(),E(l,1),l.m(i.parentNode,i)):l&&(be(),I(l,1,1,()=>{l=null}),ve())},i(o){s||(E(l),s=!0)},o(o){I(l),s=!1},d(o){o&&S(t),l&&l.d(o),o&&S(i)}}}function H4(n){let e,t,i,s=[],l=new Map,o,r,a=[],u=new Map,f,c=Object.entries(n[3]);const d=b=>b[14];for(let b=0;bb[14];for(let b=0;bClose',p(e,"type","button"),p(e,"class","btn btn-secondary")},m(s,l){$(s,e,l),t||(i=W(e,"click",n[7]),t=!0)},p:x,d(s){s&&S(e),t=!1,i()}}}function q4(n){let e,t,i={class:"docs-panel",$$slots:{footer:[j4],default:[H4]},$$scope:{ctx:n}};return e=new Jn({props:i}),n[9](e),e.$on("hide",n[10]),e.$on("show",n[11]),{c(){j(e.$$.fragment)},m(s,l){R(e,s,l),t=!0},p(s,[l]){const o={};l&4194348&&(o.$$scope={dirty:l,ctx:s}),e.$set(o)},i(s){t||(E(e.$$.fragment,s),t=!0)},o(s){I(e.$$.fragment,s),t=!1},d(s){n[9](null),H(e,s)}}}function V4(n,e,t){const i={list:{label:"List/Search",component:st(()=>import("./ListApiDocs.e6ffd7ae.js"),["./ListApiDocs.e6ffd7ae.js","./SdkTabs.8f55857f.js","./SdkTabs.9b0b7a06.css","./ListApiDocs.68f52edd.css"],import.meta.url)},view:{label:"View",component:st(()=>import("./ViewApiDocs.7c16115c.js"),["./ViewApiDocs.7c16115c.js","./SdkTabs.8f55857f.js","./SdkTabs.9b0b7a06.css"],import.meta.url)},create:{label:"Create",component:st(()=>import("./CreateApiDocs.5b22060b.js"),["./CreateApiDocs.5b22060b.js","./SdkTabs.8f55857f.js","./SdkTabs.9b0b7a06.css"],import.meta.url)},update:{label:"Update",component:st(()=>import("./UpdateApiDocs.e200c0d6.js"),["./UpdateApiDocs.e200c0d6.js","./SdkTabs.8f55857f.js","./SdkTabs.9b0b7a06.css"],import.meta.url)},delete:{label:"Delete",component:st(()=>import("./DeleteApiDocs.459334be.js"),["./DeleteApiDocs.459334be.js","./SdkTabs.8f55857f.js","./SdkTabs.9b0b7a06.css"],import.meta.url)},realtime:{label:"Realtime",component:st(()=>import("./RealtimeApiDocs.9639f54e.js"),["./RealtimeApiDocs.9639f54e.js","./SdkTabs.8f55857f.js","./SdkTabs.9b0b7a06.css"],import.meta.url)}},s={"auth-with-password":{label:"Auth with password",component:st(()=>import("./AuthWithPasswordDocs.8731404d.js"),["./AuthWithPasswordDocs.8731404d.js","./SdkTabs.8f55857f.js","./SdkTabs.9b0b7a06.css"],import.meta.url)},"auth-with-oauth2":{label:"Auth with OAuth2",component:st(()=>import("./AuthWithOAuth2Docs.9d132f74.js"),["./AuthWithOAuth2Docs.9d132f74.js","./SdkTabs.8f55857f.js","./SdkTabs.9b0b7a06.css"],import.meta.url)},refresh:{label:"Auth refresh",component:st(()=>import("./AuthRefreshDocs.9e6993e7.js"),["./AuthRefreshDocs.9e6993e7.js","./SdkTabs.8f55857f.js","./SdkTabs.9b0b7a06.css"],import.meta.url)},"request-verification":{label:"Request verification",component:st(()=>import("./RequestVerificationDocs.28db8063.js"),["./RequestVerificationDocs.28db8063.js","./SdkTabs.8f55857f.js","./SdkTabs.9b0b7a06.css"],import.meta.url)},"confirm-verification":{label:"Confirm verification",component:st(()=>import("./ConfirmVerificationDocs.c8ffdb27.js"),["./ConfirmVerificationDocs.c8ffdb27.js","./SdkTabs.8f55857f.js","./SdkTabs.9b0b7a06.css"],import.meta.url)},"request-password-reset":{label:"Request password reset",component:st(()=>import("./RequestPasswordResetDocs.4c9f6ae3.js"),["./RequestPasswordResetDocs.4c9f6ae3.js","./SdkTabs.8f55857f.js","./SdkTabs.9b0b7a06.css"],import.meta.url)},"confirm-password-reset":{label:"Confirm password reset",component:st(()=>import("./ConfirmPasswordResetDocs.242b72e8.js"),["./ConfirmPasswordResetDocs.242b72e8.js","./SdkTabs.8f55857f.js","./SdkTabs.9b0b7a06.css"],import.meta.url)},"request-email-change":{label:"Request email change",component:st(()=>import("./RequestEmailChangeDocs.a5bce610.js"),["./RequestEmailChangeDocs.a5bce610.js","./SdkTabs.8f55857f.js","./SdkTabs.9b0b7a06.css"],import.meta.url)},"confirm-email-change":{label:"Confirm email change",component:st(()=>import("./ConfirmEmailChangeDocs.4643c758.js"),["./ConfirmEmailChangeDocs.4643c758.js","./SdkTabs.8f55857f.js","./SdkTabs.9b0b7a06.css"],import.meta.url)},"list-auth-methods":{label:"List auth methods",component:st(()=>import("./AuthMethodsDocs.c1281d2c.js"),["./AuthMethodsDocs.c1281d2c.js","./SdkTabs.8f55857f.js","./SdkTabs.9b0b7a06.css"],import.meta.url)},"list-linked-accounts":{label:"List OAuth2 accounts",component:st(()=>import("./ListExternalAuthsDocs.305ff8e3.js"),["./ListExternalAuthsDocs.305ff8e3.js","./SdkTabs.8f55857f.js","./SdkTabs.9b0b7a06.css"],import.meta.url)},"unlink-account":{label:"Unlink OAuth2 account",component:st(()=>import("./UnlinkExternalAuthDocs.b05265d9.js"),["./UnlinkExternalAuthDocs.b05265d9.js","./SdkTabs.8f55857f.js","./SdkTabs.9b0b7a06.css"],import.meta.url)}};let l,o=new Pn,r,a=[];a.length&&(r=Object.keys(a)[0]);function u(y){return t(2,o=y),c(Object.keys(a)[0]),l==null?void 0:l.show()}function f(){return l==null?void 0:l.hide()}function c(y){t(5,r=y)}const d=()=>f(),h=y=>c(y);function m(y){le[y?"unshift":"push"](()=>{l=y,t(4,l)})}function b(y){Ve.call(this,n,y)}function g(y){Ve.call(this,n,y)}return n.$$.update=()=>{n.$$.dirty&12&&(o.isAuth?(t(3,a=Object.assign({},i,s)),!(o!=null&&o.options.allowUsernameAuth)&&!(o!=null&&o.options.allowEmailAuth)&&delete a["auth-with-password"],o!=null&&o.options.allowOAuth2Auth||delete a["auth-with-oauth2"]):t(3,a=Object.assign({},i)))},[f,c,o,a,l,r,u,d,h,m,b,g]}class z4 extends Ce{constructor(e){super(),$e(this,e,V4,q4,ke,{show:6,hide:0,changeTab:1})}get show(){return this.$$.ctx[6]}get hide(){return this.$$.ctx[0]}get changeTab(){return this.$$.ctx[1]}}function B4(n){let e,t,i,s,l,o,r,a,u,f,c,d;return{c(){e=v("label"),t=v("i"),i=O(),s=v("span"),s.textContent="Username",o=O(),r=v("input"),p(t,"class",B.getFieldTypeIcon("user")),p(s,"class","txt"),p(e,"for",l=n[12]),p(r,"type","text"),p(r,"requried",a=!n[0].isNew),p(r,"placeholder",u=n[0].isNew?"Leave empty to auto generate...":n[3]),p(r,"id",f=n[12])},m(h,m){$(h,e,m),_(e,t),_(e,i),_(e,s),$(h,o,m),$(h,r,m),pe(r,n[0].username),c||(d=W(r,"input",n[4]),c=!0)},p(h,m){m&4096&&l!==(l=h[12])&&p(e,"for",l),m&1&&a!==(a=!h[0].isNew)&&p(r,"requried",a),m&1&&u!==(u=h[0].isNew?"Leave empty to auto generate...":h[3])&&p(r,"placeholder",u),m&4096&&f!==(f=h[12])&&p(r,"id",f),m&1&&r.value!==h[0].username&&pe(r,h[0].username)},d(h){h&&S(e),h&&S(o),h&&S(r),c=!1,d()}}}function U4(n){let e,t,i,s,l,o,r,a,u,f,c=n[0].emailVisibility?"On":"Off",d,h,m,b,g,y,k,w,C;return{c(){var M;e=v("label"),t=v("i"),i=O(),s=v("span"),s.textContent="Email",o=O(),r=v("div"),a=v("button"),u=v("span"),f=z("Public: "),d=z(c),m=O(),b=v("input"),p(t,"class",B.getFieldTypeIcon("email")),p(s,"class","txt"),p(e,"for",l=n[12]),p(u,"class","txt"),p(a,"type","button"),p(a,"class",h="btn btn-sm btn-secondary "+(n[0].emailVisibility?"btn-success":"btn-hint")),p(r,"class","form-field-addon email-visibility-addon svelte-1751a4d"),p(b,"type","email"),b.autofocus=g=n[0].isNew,p(b,"autocomplete","off"),p(b,"id",y=n[12]),b.required=k=(M=n[1].options)==null?void 0:M.requireEmail,p(b,"class","svelte-1751a4d")},m(M,T){$(M,e,T),_(e,t),_(e,i),_(e,s),$(M,o,T),$(M,r,T),_(r,a),_(a,u),_(u,f),_(u,d),$(M,m,T),$(M,b,T),pe(b,n[0].email),n[0].isNew&&b.focus(),w||(C=[Le(Be.call(null,a,{text:"Make email public or private",position:"top-right"})),W(a,"click",n[5]),W(b,"input",n[6])],w=!0)},p(M,T){var D;T&4096&&l!==(l=M[12])&&p(e,"for",l),T&1&&c!==(c=M[0].emailVisibility?"On":"Off")&&ue(d,c),T&1&&h!==(h="btn btn-sm btn-secondary "+(M[0].emailVisibility?"btn-success":"btn-hint"))&&p(a,"class",h),T&1&&g!==(g=M[0].isNew)&&(b.autofocus=g),T&4096&&y!==(y=M[12])&&p(b,"id",y),T&2&&k!==(k=(D=M[1].options)==null?void 0:D.requireEmail)&&(b.required=k),T&1&&b.value!==M[0].email&&pe(b,M[0].email)},d(M){M&&S(e),M&&S(o),M&&S(r),M&&S(m),M&&S(b),w=!1,Re(C)}}}function qd(n){let e,t;return e=new _e({props:{class:"form-field form-field-toggle",name:"verified",$$slots:{default:[W4,({uniqueId:i})=>({12:i}),({uniqueId:i})=>i?4096:0]},$$scope:{ctx:n}}}),{c(){j(e.$$.fragment)},m(i,s){R(e,i,s),t=!0},p(i,s){const l={};s&12292&&(l.$$scope={dirty:s,ctx:i}),e.$set(l)},i(i){t||(E(e.$$.fragment,i),t=!0)},o(i){I(e.$$.fragment,i),t=!1},d(i){H(e,i)}}}function W4(n){let e,t,i,s,l,o,r,a;return{c(){e=v("input"),i=O(),s=v("label"),l=z("Change password"),p(e,"type","checkbox"),p(e,"id",t=n[12]),p(s,"for",o=n[12])},m(u,f){$(u,e,f),e.checked=n[2],$(u,i,f),$(u,s,f),_(s,l),r||(a=W(e,"change",n[7]),r=!0)},p(u,f){f&4096&&t!==(t=u[12])&&p(e,"id",t),f&4&&(e.checked=u[2]),f&4096&&o!==(o=u[12])&&p(s,"for",o)},d(u){u&&S(e),u&&S(i),u&&S(s),r=!1,a()}}}function Vd(n){let e,t,i,s,l,o,r,a,u;return s=new _e({props:{class:"form-field required",name:"password",$$slots:{default:[Y4,({uniqueId:f})=>({12:f}),({uniqueId:f})=>f?4096:0]},$$scope:{ctx:n}}}),r=new _e({props:{class:"form-field required",name:"passwordConfirm",$$slots:{default:[K4,({uniqueId:f})=>({12:f}),({uniqueId:f})=>f?4096:0]},$$scope:{ctx:n}}}),{c(){e=v("div"),t=v("div"),i=v("div"),j(s.$$.fragment),l=O(),o=v("div"),j(r.$$.fragment),p(i,"class","col-sm-6"),p(o,"class","col-sm-6"),p(t,"class","grid"),ee(t,"p-t-xs",n[2]),p(e,"class","block")},m(f,c){$(f,e,c),_(e,t),_(t,i),R(s,i,null),_(t,l),_(t,o),R(r,o,null),u=!0},p(f,c){const d={};c&12289&&(d.$$scope={dirty:c,ctx:f}),s.$set(d);const h={};c&12289&&(h.$$scope={dirty:c,ctx:f}),r.$set(h),(!u||c&4)&&ee(t,"p-t-xs",f[2])},i(f){u||(E(s.$$.fragment,f),E(r.$$.fragment,f),f&&Qe(()=>{a||(a=je(e,St,{duration:150},!0)),a.run(1)}),u=!0)},o(f){I(s.$$.fragment,f),I(r.$$.fragment,f),f&&(a||(a=je(e,St,{duration:150},!1)),a.run(0)),u=!1},d(f){f&&S(e),H(s),H(r),f&&a&&a.end()}}}function Y4(n){let e,t,i,s,l,o,r,a,u,f;return{c(){e=v("label"),t=v("i"),i=O(),s=v("span"),s.textContent="Password",o=O(),r=v("input"),p(t,"class","ri-lock-line"),p(s,"class","txt"),p(e,"for",l=n[12]),p(r,"type","password"),p(r,"autocomplete","new-password"),p(r,"id",a=n[12]),r.required=!0},m(c,d){$(c,e,d),_(e,t),_(e,i),_(e,s),$(c,o,d),$(c,r,d),pe(r,n[0].password),u||(f=W(r,"input",n[8]),u=!0)},p(c,d){d&4096&&l!==(l=c[12])&&p(e,"for",l),d&4096&&a!==(a=c[12])&&p(r,"id",a),d&1&&r.value!==c[0].password&&pe(r,c[0].password)},d(c){c&&S(e),c&&S(o),c&&S(r),u=!1,f()}}}function K4(n){let e,t,i,s,l,o,r,a,u,f;return{c(){e=v("label"),t=v("i"),i=O(),s=v("span"),s.textContent="Password confirm",o=O(),r=v("input"),p(t,"class","ri-lock-line"),p(s,"class","txt"),p(e,"for",l=n[12]),p(r,"type","password"),p(r,"autocomplete","new-password"),p(r,"id",a=n[12]),r.required=!0},m(c,d){$(c,e,d),_(e,t),_(e,i),_(e,s),$(c,o,d),$(c,r,d),pe(r,n[0].passwordConfirm),u||(f=W(r,"input",n[9]),u=!0)},p(c,d){d&4096&&l!==(l=c[12])&&p(e,"for",l),d&4096&&a!==(a=c[12])&&p(r,"id",a),d&1&&r.value!==c[0].passwordConfirm&&pe(r,c[0].passwordConfirm)},d(c){c&&S(e),c&&S(o),c&&S(r),u=!1,f()}}}function J4(n){let e,t,i,s,l,o,r,a;return{c(){e=v("input"),i=O(),s=v("label"),l=z("Verified"),p(e,"type","checkbox"),p(e,"id",t=n[12]),p(s,"for",o=n[12])},m(u,f){$(u,e,f),e.checked=n[0].verified,$(u,i,f),$(u,s,f),_(s,l),r||(a=[W(e,"change",n[10]),W(e,"change",ut(n[11]))],r=!0)},p(u,f){f&4096&&t!==(t=u[12])&&p(e,"id",t),f&1&&(e.checked=u[0].verified),f&4096&&o!==(o=u[12])&&p(s,"for",o)},d(u){u&&S(e),u&&S(i),u&&S(s),r=!1,Re(a)}}}function Z4(n){var g;let e,t,i,s,l,o,r,a,u,f,c,d,h;i=new _e({props:{class:"form-field "+(n[0].isNew?"":"required"),name:"username",$$slots:{default:[B4,({uniqueId:y})=>({12:y}),({uniqueId:y})=>y?4096:0]},$$scope:{ctx:n}}}),o=new _e({props:{class:"form-field "+((g=n[1].options)!=null&&g.requireEmail?"required":""),name:"email",$$slots:{default:[U4,({uniqueId:y})=>({12:y}),({uniqueId:y})=>y?4096:0]},$$scope:{ctx:n}}});let m=!n[0].isNew&&qd(n),b=(n[0].isNew||n[2])&&Vd(n);return d=new _e({props:{class:"form-field form-field-toggle",name:"verified",$$slots:{default:[J4,({uniqueId:y})=>({12:y}),({uniqueId:y})=>y?4096:0]},$$scope:{ctx:n}}}),{c(){e=v("div"),t=v("div"),j(i.$$.fragment),s=O(),l=v("div"),j(o.$$.fragment),r=O(),a=v("div"),m&&m.c(),u=O(),b&&b.c(),f=O(),c=v("div"),j(d.$$.fragment),p(t,"class","col-lg-6"),p(l,"class","col-lg-6"),p(a,"class","col-lg-12"),p(c,"class","col-lg-12"),p(e,"class","grid m-b-base")},m(y,k){$(y,e,k),_(e,t),R(i,t,null),_(e,s),_(e,l),R(o,l,null),_(e,r),_(e,a),m&&m.m(a,null),_(a,u),b&&b.m(a,null),_(e,f),_(e,c),R(d,c,null),h=!0},p(y,[k]){var T;const w={};k&1&&(w.class="form-field "+(y[0].isNew?"":"required")),k&12289&&(w.$$scope={dirty:k,ctx:y}),i.$set(w);const C={};k&2&&(C.class="form-field "+((T=y[1].options)!=null&&T.requireEmail?"required":"")),k&12291&&(C.$$scope={dirty:k,ctx:y}),o.$set(C),y[0].isNew?m&&(be(),I(m,1,1,()=>{m=null}),ve()):m?(m.p(y,k),k&1&&E(m,1)):(m=qd(y),m.c(),E(m,1),m.m(a,u)),y[0].isNew||y[2]?b?(b.p(y,k),k&5&&E(b,1)):(b=Vd(y),b.c(),E(b,1),b.m(a,null)):b&&(be(),I(b,1,1,()=>{b=null}),ve());const M={};k&12289&&(M.$$scope={dirty:k,ctx:y}),d.$set(M)},i(y){h||(E(i.$$.fragment,y),E(o.$$.fragment,y),E(m),E(b),E(d.$$.fragment,y),h=!0)},o(y){I(i.$$.fragment,y),I(o.$$.fragment,y),I(m),I(b),I(d.$$.fragment,y),h=!1},d(y){y&&S(e),H(i),H(o),m&&m.d(),b&&b.d(),H(d)}}}function G4(n,e,t){let{collection:i=new Pn}=e,{record:s=new Wi}=e,l=s.username||null,o=!1;function r(){s.username=this.value,t(0,s),t(2,o)}const a=()=>t(0,s.emailVisibility=!s.emailVisibility,s);function u(){s.email=this.value,t(0,s),t(2,o)}function f(){o=this.checked,t(2,o)}function c(){s.password=this.value,t(0,s),t(2,o)}function d(){s.passwordConfirm=this.value,t(0,s),t(2,o)}function h(){s.verified=this.checked,t(0,s),t(2,o)}const m=b=>{s.isNew||yn("Do you really want to manually change the verified account state?",()=>{},()=>{t(0,s.verified=!b.target.checked,s)})};return n.$$set=b=>{"collection"in b&&t(1,i=b.collection),"record"in b&&t(0,s=b.record)},n.$$.update=()=>{n.$$.dirty&1&&!s.username&&s.username!==null&&t(0,s.username=null,s),n.$$.dirty&4&&(o||(t(0,s.password=null,s),t(0,s.passwordConfirm=null,s),al("password"),al("passwordConfirm")))},[s,i,o,l,r,a,u,f,c,d,h,m]}class X4 extends Ce{constructor(e){super(),$e(this,e,G4,Z4,ke,{collection:1,record:0})}}function Q4(n){let e,t,i,s=[n[3]],l={};for(let o=0;o{r&&(t(1,r.style.height="",r),t(1,r.style.height=Math.min(r.scrollHeight+2,o)+"px",r))},0)}function f(h){if((h==null?void 0:h.code)==="Enter"&&!(h!=null&&h.shiftKey)){h.preventDefault();const m=r.closest("form");m!=null&&m.requestSubmit&&m.requestSubmit()}}un(()=>(u(),()=>clearTimeout(a)));function c(h){le[h?"unshift":"push"](()=>{r=h,t(1,r)})}function d(){l=this.value,t(0,l)}return n.$$set=h=>{e=Ye(Ye({},e),Wn(h)),t(3,s=wt(e,i)),"value"in h&&t(0,l=h.value),"maxHeight"in h&&t(4,o=h.maxHeight)},n.$$.update=()=>{n.$$.dirty&1&&typeof l!==void 0&&u()},[l,r,f,s,o,c,d]}class e3 extends Ce{constructor(e){super(),$e(this,e,x4,Q4,ke,{value:0,maxHeight:4})}}function t3(n){let e,t,i,s,l,o=n[1].name+"",r,a,u,f,c,d;function h(b){n[2](b)}let m={id:n[3],required:n[1].required};return n[0]!==void 0&&(m.value=n[0]),f=new e3({props:m}),le.push(()=>ye(f,"value",h)),{c(){e=v("label"),t=v("i"),s=O(),l=v("span"),r=z(o),u=O(),j(f.$$.fragment),p(t,"class",i=B.getFieldTypeIcon(n[1].type)),p(l,"class","txt"),p(e,"for",a=n[3])},m(b,g){$(b,e,g),_(e,t),_(e,s),_(e,l),_(l,r),$(b,u,g),R(f,b,g),d=!0},p(b,g){(!d||g&2&&i!==(i=B.getFieldTypeIcon(b[1].type)))&&p(t,"class",i),(!d||g&2)&&o!==(o=b[1].name+"")&&ue(r,o),(!d||g&8&&a!==(a=b[3]))&&p(e,"for",a);const y={};g&8&&(y.id=b[3]),g&2&&(y.required=b[1].required),!c&&g&1&&(c=!0,y.value=b[0],Me(()=>c=!1)),f.$set(y)},i(b){d||(E(f.$$.fragment,b),d=!0)},o(b){I(f.$$.fragment,b),d=!1},d(b){b&&S(e),b&&S(u),H(f,b)}}}function n3(n){let e,t;return e=new _e({props:{class:"form-field "+(n[1].required?"required":""),name:n[1].name,$$slots:{default:[t3,({uniqueId:i})=>({3:i}),({uniqueId:i})=>i?8:0]},$$scope:{ctx:n}}}),{c(){j(e.$$.fragment)},m(i,s){R(e,i,s),t=!0},p(i,[s]){const l={};s&2&&(l.class="form-field "+(i[1].required?"required":"")),s&2&&(l.name=i[1].name),s&27&&(l.$$scope={dirty:s,ctx:i}),e.$set(l)},i(i){t||(E(e.$$.fragment,i),t=!0)},o(i){I(e.$$.fragment,i),t=!1},d(i){H(e,i)}}}function i3(n,e,t){let{field:i=new fn}=e,{value:s=void 0}=e;function l(o){s=o,t(0,s)}return n.$$set=o=>{"field"in o&&t(1,i=o.field),"value"in o&&t(0,s=o.value)},[s,i,l]}class s3 extends Ce{constructor(e){super(),$e(this,e,i3,n3,ke,{field:1,value:0})}}function l3(n){let e,t,i,s,l,o=n[1].name+"",r,a,u,f,c,d,h,m,b,g;return{c(){var y,k;e=v("label"),t=v("i"),s=O(),l=v("span"),r=z(o),u=O(),f=v("input"),p(t,"class",i=B.getFieldTypeIcon(n[1].type)),p(l,"class","txt"),p(e,"for",a=n[3]),p(f,"type","number"),p(f,"id",c=n[3]),f.required=d=n[1].required,p(f,"min",h=(y=n[1].options)==null?void 0:y.min),p(f,"max",m=(k=n[1].options)==null?void 0:k.max),p(f,"step","any")},m(y,k){$(y,e,k),_(e,t),_(e,s),_(e,l),_(l,r),$(y,u,k),$(y,f,k),pe(f,n[0]),b||(g=W(f,"input",n[2]),b=!0)},p(y,k){var w,C;k&2&&i!==(i=B.getFieldTypeIcon(y[1].type))&&p(t,"class",i),k&2&&o!==(o=y[1].name+"")&&ue(r,o),k&8&&a!==(a=y[3])&&p(e,"for",a),k&8&&c!==(c=y[3])&&p(f,"id",c),k&2&&d!==(d=y[1].required)&&(f.required=d),k&2&&h!==(h=(w=y[1].options)==null?void 0:w.min)&&p(f,"min",h),k&2&&m!==(m=(C=y[1].options)==null?void 0:C.max)&&p(f,"max",m),k&1&&rt(f.value)!==y[0]&&pe(f,y[0])},d(y){y&&S(e),y&&S(u),y&&S(f),b=!1,g()}}}function o3(n){let e,t;return e=new _e({props:{class:"form-field "+(n[1].required?"required":""),name:n[1].name,$$slots:{default:[l3,({uniqueId:i})=>({3:i}),({uniqueId:i})=>i?8:0]},$$scope:{ctx:n}}}),{c(){j(e.$$.fragment)},m(i,s){R(e,i,s),t=!0},p(i,[s]){const l={};s&2&&(l.class="form-field "+(i[1].required?"required":"")),s&2&&(l.name=i[1].name),s&27&&(l.$$scope={dirty:s,ctx:i}),e.$set(l)},i(i){t||(E(e.$$.fragment,i),t=!0)},o(i){I(e.$$.fragment,i),t=!1},d(i){H(e,i)}}}function r3(n,e,t){let{field:i=new fn}=e,{value:s=void 0}=e;function l(){s=rt(this.value),t(0,s)}return n.$$set=o=>{"field"in o&&t(1,i=o.field),"value"in o&&t(0,s=o.value)},[s,i,l]}class a3 extends Ce{constructor(e){super(),$e(this,e,r3,o3,ke,{field:1,value:0})}}function u3(n){let e,t,i,s,l=n[1].name+"",o,r,a,u;return{c(){e=v("input"),i=O(),s=v("label"),o=z(l),p(e,"type","checkbox"),p(e,"id",t=n[3]),p(s,"for",r=n[3])},m(f,c){$(f,e,c),e.checked=n[0],$(f,i,c),$(f,s,c),_(s,o),a||(u=W(e,"change",n[2]),a=!0)},p(f,c){c&8&&t!==(t=f[3])&&p(e,"id",t),c&1&&(e.checked=f[0]),c&2&&l!==(l=f[1].name+"")&&ue(o,l),c&8&&r!==(r=f[3])&&p(s,"for",r)},d(f){f&&S(e),f&&S(i),f&&S(s),a=!1,u()}}}function f3(n){let e,t;return e=new _e({props:{class:"form-field form-field-toggle "+(n[1].required?"required":""),name:n[1].name,$$slots:{default:[u3,({uniqueId:i})=>({3:i}),({uniqueId:i})=>i?8:0]},$$scope:{ctx:n}}}),{c(){j(e.$$.fragment)},m(i,s){R(e,i,s),t=!0},p(i,[s]){const l={};s&2&&(l.class="form-field form-field-toggle "+(i[1].required?"required":"")),s&2&&(l.name=i[1].name),s&27&&(l.$$scope={dirty:s,ctx:i}),e.$set(l)},i(i){t||(E(e.$$.fragment,i),t=!0)},o(i){I(e.$$.fragment,i),t=!1},d(i){H(e,i)}}}function c3(n,e,t){let{field:i=new fn}=e,{value:s=!1}=e;function l(){s=this.checked,t(0,s)}return n.$$set=o=>{"field"in o&&t(1,i=o.field),"value"in o&&t(0,s=o.value)},[s,i,l]}class d3 extends Ce{constructor(e){super(),$e(this,e,c3,f3,ke,{field:1,value:0})}}function p3(n){let e,t,i,s,l,o=n[1].name+"",r,a,u,f,c,d,h,m;return{c(){e=v("label"),t=v("i"),s=O(),l=v("span"),r=z(o),u=O(),f=v("input"),p(t,"class",i=B.getFieldTypeIcon(n[1].type)),p(l,"class","txt"),p(e,"for",a=n[3]),p(f,"type","email"),p(f,"id",c=n[3]),f.required=d=n[1].required},m(b,g){$(b,e,g),_(e,t),_(e,s),_(e,l),_(l,r),$(b,u,g),$(b,f,g),pe(f,n[0]),h||(m=W(f,"input",n[2]),h=!0)},p(b,g){g&2&&i!==(i=B.getFieldTypeIcon(b[1].type))&&p(t,"class",i),g&2&&o!==(o=b[1].name+"")&&ue(r,o),g&8&&a!==(a=b[3])&&p(e,"for",a),g&8&&c!==(c=b[3])&&p(f,"id",c),g&2&&d!==(d=b[1].required)&&(f.required=d),g&1&&f.value!==b[0]&&pe(f,b[0])},d(b){b&&S(e),b&&S(u),b&&S(f),h=!1,m()}}}function h3(n){let e,t;return e=new _e({props:{class:"form-field "+(n[1].required?"required":""),name:n[1].name,$$slots:{default:[p3,({uniqueId:i})=>({3:i}),({uniqueId:i})=>i?8:0]},$$scope:{ctx:n}}}),{c(){j(e.$$.fragment)},m(i,s){R(e,i,s),t=!0},p(i,[s]){const l={};s&2&&(l.class="form-field "+(i[1].required?"required":"")),s&2&&(l.name=i[1].name),s&27&&(l.$$scope={dirty:s,ctx:i}),e.$set(l)},i(i){t||(E(e.$$.fragment,i),t=!0)},o(i){I(e.$$.fragment,i),t=!1},d(i){H(e,i)}}}function m3(n,e,t){let{field:i=new fn}=e,{value:s=void 0}=e;function l(){s=this.value,t(0,s)}return n.$$set=o=>{"field"in o&&t(1,i=o.field),"value"in o&&t(0,s=o.value)},[s,i,l]}class g3 extends Ce{constructor(e){super(),$e(this,e,m3,h3,ke,{field:1,value:0})}}function _3(n){let e,t,i,s,l,o=n[1].name+"",r,a,u,f,c,d,h,m;return{c(){e=v("label"),t=v("i"),s=O(),l=v("span"),r=z(o),u=O(),f=v("input"),p(t,"class",i=B.getFieldTypeIcon(n[1].type)),p(l,"class","txt"),p(e,"for",a=n[3]),p(f,"type","url"),p(f,"id",c=n[3]),f.required=d=n[1].required},m(b,g){$(b,e,g),_(e,t),_(e,s),_(e,l),_(l,r),$(b,u,g),$(b,f,g),pe(f,n[0]),h||(m=W(f,"input",n[2]),h=!0)},p(b,g){g&2&&i!==(i=B.getFieldTypeIcon(b[1].type))&&p(t,"class",i),g&2&&o!==(o=b[1].name+"")&&ue(r,o),g&8&&a!==(a=b[3])&&p(e,"for",a),g&8&&c!==(c=b[3])&&p(f,"id",c),g&2&&d!==(d=b[1].required)&&(f.required=d),g&1&&pe(f,b[0])},d(b){b&&S(e),b&&S(u),b&&S(f),h=!1,m()}}}function b3(n){let e,t;return e=new _e({props:{class:"form-field "+(n[1].required?"required":""),name:n[1].name,$$slots:{default:[_3,({uniqueId:i})=>({3:i}),({uniqueId:i})=>i?8:0]},$$scope:{ctx:n}}}),{c(){j(e.$$.fragment)},m(i,s){R(e,i,s),t=!0},p(i,[s]){const l={};s&2&&(l.class="form-field "+(i[1].required?"required":"")),s&2&&(l.name=i[1].name),s&27&&(l.$$scope={dirty:s,ctx:i}),e.$set(l)},i(i){t||(E(e.$$.fragment,i),t=!0)},o(i){I(e.$$.fragment,i),t=!1},d(i){H(e,i)}}}function v3(n,e,t){let{field:i=new fn}=e,{value:s=void 0}=e;function l(){s=this.value,t(0,s)}return n.$$set=o=>{"field"in o&&t(1,i=o.field),"value"in o&&t(0,s=o.value)},[s,i,l]}class y3 extends Ce{constructor(e){super(),$e(this,e,v3,b3,ke,{field:1,value:0})}}function k3(n){let e,t,i,s,l,o=n[1].name+"",r,a,u,f,c,d,h;function m(g){n[2](g)}let b={id:n[3],options:B.defaultFlatpickrOptions(),value:n[0]};return n[0]!==void 0&&(b.formattedValue=n[0]),c=new Ka({props:b}),le.push(()=>ye(c,"formattedValue",m)),{c(){e=v("label"),t=v("i"),s=O(),l=v("span"),r=z(o),a=z(" (UTC)"),f=O(),j(c.$$.fragment),p(t,"class",i=B.getFieldTypeIcon(n[1].type)),p(l,"class","txt"),p(e,"for",u=n[3])},m(g,y){$(g,e,y),_(e,t),_(e,s),_(e,l),_(l,r),_(l,a),$(g,f,y),R(c,g,y),h=!0},p(g,y){(!h||y&2&&i!==(i=B.getFieldTypeIcon(g[1].type)))&&p(t,"class",i),(!h||y&2)&&o!==(o=g[1].name+"")&&ue(r,o),(!h||y&8&&u!==(u=g[3]))&&p(e,"for",u);const k={};y&8&&(k.id=g[3]),y&1&&(k.value=g[0]),!d&&y&1&&(d=!0,k.formattedValue=g[0],Me(()=>d=!1)),c.$set(k)},i(g){h||(E(c.$$.fragment,g),h=!0)},o(g){I(c.$$.fragment,g),h=!1},d(g){g&&S(e),g&&S(f),H(c,g)}}}function w3(n){let e,t;return e=new _e({props:{class:"form-field "+(n[1].required?"required":""),name:n[1].name,$$slots:{default:[k3,({uniqueId:i})=>({3:i}),({uniqueId:i})=>i?8:0]},$$scope:{ctx:n}}}),{c(){j(e.$$.fragment)},m(i,s){R(e,i,s),t=!0},p(i,[s]){const l={};s&2&&(l.class="form-field "+(i[1].required?"required":"")),s&2&&(l.name=i[1].name),s&27&&(l.$$scope={dirty:s,ctx:i}),e.$set(l)},i(i){t||(E(e.$$.fragment,i),t=!0)},o(i){I(e.$$.fragment,i),t=!1},d(i){H(e,i)}}}function S3(n,e,t){let{field:i=new fn}=e,{value:s=void 0}=e;function l(o){s=o,t(0,s)}return n.$$set=o=>{"field"in o&&t(1,i=o.field),"value"in o&&t(0,s=o.value)},n.$$.update=()=>{n.$$.dirty&1&&s&&s.length>19&&t(0,s=s.substring(0,19))},[s,i,l]}class $3 extends Ce{constructor(e){super(),$e(this,e,S3,w3,ke,{field:1,value:0})}}function zd(n){let e,t,i=n[1].options.maxSelect+"",s,l;return{c(){e=v("div"),t=z("Select up to "),s=z(i),l=z(" items."),p(e,"class","help-block")},m(o,r){$(o,e,r),_(e,t),_(e,s),_(e,l)},p(o,r){r&2&&i!==(i=o[1].options.maxSelect+"")&&ue(s,i)},d(o){o&&S(e)}}}function C3(n){var k,w,C;let e,t,i,s,l,o=n[1].name+"",r,a,u,f,c,d,h,m;function b(M){n[3](M)}let g={id:n[4],toggle:!n[1].required||n[2],multiple:n[2],items:(k=n[1].options)==null?void 0:k.values,searchable:((w=n[1].options)==null?void 0:w.values)>5};n[0]!==void 0&&(g.selected=n[0]),f=new $_({props:g}),le.push(()=>ye(f,"selected",b));let y=((C=n[1].options)==null?void 0:C.maxSelect)>1&&zd(n);return{c(){e=v("label"),t=v("i"),s=O(),l=v("span"),r=z(o),u=O(),j(f.$$.fragment),d=O(),y&&y.c(),h=Fe(),p(t,"class",i=B.getFieldTypeIcon(n[1].type)),p(l,"class","txt"),p(e,"for",a=n[4])},m(M,T){$(M,e,T),_(e,t),_(e,s),_(e,l),_(l,r),$(M,u,T),R(f,M,T),$(M,d,T),y&&y.m(M,T),$(M,h,T),m=!0},p(M,T){var A,P,L;(!m||T&2&&i!==(i=B.getFieldTypeIcon(M[1].type)))&&p(t,"class",i),(!m||T&2)&&o!==(o=M[1].name+"")&&ue(r,o),(!m||T&16&&a!==(a=M[4]))&&p(e,"for",a);const D={};T&16&&(D.id=M[4]),T&6&&(D.toggle=!M[1].required||M[2]),T&4&&(D.multiple=M[2]),T&2&&(D.items=(A=M[1].options)==null?void 0:A.values),T&2&&(D.searchable=((P=M[1].options)==null?void 0:P.values)>5),!c&&T&1&&(c=!0,D.selected=M[0],Me(()=>c=!1)),f.$set(D),((L=M[1].options)==null?void 0:L.maxSelect)>1?y?y.p(M,T):(y=zd(M),y.c(),y.m(h.parentNode,h)):y&&(y.d(1),y=null)},i(M){m||(E(f.$$.fragment,M),m=!0)},o(M){I(f.$$.fragment,M),m=!1},d(M){M&&S(e),M&&S(u),H(f,M),M&&S(d),y&&y.d(M),M&&S(h)}}}function M3(n){let e,t;return e=new _e({props:{class:"form-field "+(n[1].required?"required":""),name:n[1].name,$$slots:{default:[C3,({uniqueId:i})=>({4:i}),({uniqueId:i})=>i?16:0]},$$scope:{ctx:n}}}),{c(){j(e.$$.fragment)},m(i,s){R(e,i,s),t=!0},p(i,[s]){const l={};s&2&&(l.class="form-field "+(i[1].required?"required":"")),s&2&&(l.name=i[1].name),s&55&&(l.$$scope={dirty:s,ctx:i}),e.$set(l)},i(i){t||(E(e.$$.fragment,i),t=!0)},o(i){I(e.$$.fragment,i),t=!1},d(i){H(e,i)}}}function T3(n,e,t){let i,{field:s=new fn}=e,{value:l=void 0}=e;function o(r){l=r,t(0,l),t(2,i),t(1,s)}return n.$$set=r=>{"field"in r&&t(1,s=r.field),"value"in r&&t(0,l=r.value)},n.$$.update=()=>{var r;n.$$.dirty&2&&t(2,i=((r=s.options)==null?void 0:r.maxSelect)>1),n.$$.dirty&5&&typeof l>"u"&&t(0,l=i?[]:""),n.$$.dirty&7&&i&&Array.isArray(l)&&l.length>s.options.maxSelect&&t(0,l=l.slice(l.length-s.options.maxSelect))},[l,s,i,o]}class O3 extends Ce{constructor(e){super(),$e(this,e,T3,M3,ke,{field:1,value:0})}}function D3(n){let e,t,i,s,l,o=n[1].name+"",r,a,u,f,c,d,h,m;return{c(){e=v("label"),t=v("i"),s=O(),l=v("span"),r=z(o),u=O(),f=v("textarea"),p(t,"class",i=B.getFieldTypeIcon(n[1].type)),p(l,"class","txt"),p(e,"for",a=n[3]),p(f,"id",c=n[3]),f.required=d=n[1].required,p(f,"class","txt-mono")},m(b,g){$(b,e,g),_(e,t),_(e,s),_(e,l),_(l,r),$(b,u,g),$(b,f,g),pe(f,n[0]),h||(m=W(f,"input",n[2]),h=!0)},p(b,g){g&2&&i!==(i=B.getFieldTypeIcon(b[1].type))&&p(t,"class",i),g&2&&o!==(o=b[1].name+"")&&ue(r,o),g&8&&a!==(a=b[3])&&p(e,"for",a),g&8&&c!==(c=b[3])&&p(f,"id",c),g&2&&d!==(d=b[1].required)&&(f.required=d),g&1&&pe(f,b[0])},d(b){b&&S(e),b&&S(u),b&&S(f),h=!1,m()}}}function E3(n){let e,t;return e=new _e({props:{class:"form-field "+(n[1].required?"required":""),name:n[1].name,$$slots:{default:[D3,({uniqueId:i})=>({3:i}),({uniqueId:i})=>i?8:0]},$$scope:{ctx:n}}}),{c(){j(e.$$.fragment)},m(i,s){R(e,i,s),t=!0},p(i,[s]){const l={};s&2&&(l.class="form-field "+(i[1].required?"required":"")),s&2&&(l.name=i[1].name),s&27&&(l.$$scope={dirty:s,ctx:i}),e.$set(l)},i(i){t||(E(e.$$.fragment,i),t=!0)},o(i){I(e.$$.fragment,i),t=!1},d(i){H(e,i)}}}function A3(n,e,t){let{field:i=new fn}=e,{value:s=void 0}=e;function l(){s=this.value,t(0,s)}return n.$$set=o=>{"field"in o&&t(1,i=o.field),"value"in o&&t(0,s=o.value)},n.$$.update=()=>{n.$$.dirty&1&&typeof s<"u"&&typeof s!="string"&&s!==null&&t(0,s=JSON.stringify(s,null,2))},[s,i,l]}class I3 extends Ce{constructor(e){super(),$e(this,e,A3,E3,ke,{field:1,value:0})}}function P3(n){let e,t;return{c(){e=v("i"),p(e,"class","ri-file-line"),p(e,"alt",t=n[0].name)},m(i,s){$(i,e,s)},p(i,s){s&1&&t!==(t=i[0].name)&&p(e,"alt",t)},d(i){i&&S(e)}}}function L3(n){let e,t,i;return{c(){e=v("img"),Ln(e.src,t=n[2])||p(e,"src",t),p(e,"width",n[1]),p(e,"height",n[1]),p(e,"alt",i=n[0].name)},m(s,l){$(s,e,l)},p(s,l){l&4&&!Ln(e.src,t=s[2])&&p(e,"src",t),l&2&&p(e,"width",s[1]),l&2&&p(e,"height",s[1]),l&1&&i!==(i=s[0].name)&&p(e,"alt",i)},d(s){s&&S(e)}}}function N3(n){let e;function t(l,o){return l[2]?L3:P3}let i=t(n),s=i(n);return{c(){s.c(),e=Fe()},m(l,o){s.m(l,o),$(l,e,o)},p(l,[o]){i===(i=t(l))&&s?s.p(l,o):(s.d(1),s=i(l),s&&(s.c(),s.m(e.parentNode,e)))},i:x,o:x,d(l){s.d(l),l&&S(e)}}}function F3(n,e,t){let i,{file:s}=e,{size:l=50}=e;function o(){t(2,i=""),B.hasImageExtension(s==null?void 0:s.name)&&B.generateThumb(s,l,l).then(r=>{t(2,i=r)}).catch(r=>{console.warn("Unable to generate thumb: ",r)})}return n.$$set=r=>{"file"in r&&t(0,s=r.file),"size"in r&&t(1,l=r.size)},n.$$.update=()=>{n.$$.dirty&1&&typeof s<"u"&&o()},t(2,i=""),[s,l,i]}class R3 extends Ce{constructor(e){super(),$e(this,e,F3,N3,ke,{file:0,size:1})}}function H3(n){let e,t,i;return{c(){e=v("img"),Ln(e.src,t=n[2])||p(e,"src",t),p(e,"alt",i="Preview "+n[2])},m(s,l){$(s,e,l)},p(s,l){l&4&&!Ln(e.src,t=s[2])&&p(e,"src",t),l&4&&i!==(i="Preview "+s[2])&&p(e,"alt",i)},d(s){s&&S(e)}}}function j3(n){let e,t,i;return{c(){e=v("button"),e.innerHTML='',p(e,"type","button"),p(e,"class","overlay-close")},m(s,l){$(s,e,l),t||(i=W(e,"click",ut(n[0])),t=!0)},p:x,d(s){s&&S(e),t=!1,i()}}}function q3(n){let e,t=n[2].substring(n[2].lastIndexOf("/")+1)+"",i,s,l,o,r,a,u;return{c(){e=v("a"),i=z(t),s=O(),l=v("div"),o=O(),r=v("button"),r.textContent="Close",p(e,"href",n[2]),p(e,"title","Download"),p(e,"target","_blank"),p(e,"rel","noreferrer noopener"),p(e,"class","link-hint txt-ellipsis"),p(l,"class","flex-fill"),p(r,"type","button"),p(r,"class","btn btn-secondary")},m(f,c){$(f,e,c),_(e,i),$(f,s,c),$(f,l,c),$(f,o,c),$(f,r,c),a||(u=W(r,"click",n[0]),a=!0)},p(f,c){c&4&&t!==(t=f[2].substring(f[2].lastIndexOf("/")+1)+"")&&ue(i,t),c&4&&p(e,"href",f[2])},d(f){f&&S(e),f&&S(s),f&&S(l),f&&S(o),f&&S(r),a=!1,u()}}}function V3(n){let e,t,i={class:"image-preview",btnClose:!1,popup:!0,$$slots:{footer:[q3],header:[j3],default:[H3]},$$scope:{ctx:n}};return e=new Jn({props:i}),n[4](e),e.$on("show",n[5]),e.$on("hide",n[6]),{c(){j(e.$$.fragment)},m(s,l){R(e,s,l),t=!0},p(s,[l]){const o={};l&132&&(o.$$scope={dirty:l,ctx:s}),e.$set(o)},i(s){t||(E(e.$$.fragment,s),t=!0)},o(s){I(e.$$.fragment,s),t=!1},d(s){n[4](null),H(e,s)}}}function z3(n,e,t){let i,s="";function l(f){f!==""&&(t(2,s=f),i==null||i.show())}function o(){return i==null?void 0:i.hide()}function r(f){le[f?"unshift":"push"](()=>{i=f,t(1,i)})}function a(f){Ve.call(this,n,f)}function u(f){Ve.call(this,n,f)}return[o,i,s,l,r,a,u]}class B3 extends Ce{constructor(e){super(),$e(this,e,z3,V3,ke,{show:3,hide:0})}get show(){return this.$$.ctx[3]}get hide(){return this.$$.ctx[0]}}function U3(n){let e;return{c(){e=v("i"),p(e,"class","ri-file-line")},m(t,i){$(t,e,i)},p:x,d(t){t&&S(e)}}}function W3(n){let e,t,i,s,l;return{c(){e=v("img"),Ln(e.src,t=n[4])||p(e,"src",t),p(e,"alt",n[0]),p(e,"title",i="Preview "+n[0]),ee(e,"link-fade",n[2])},m(o,r){$(o,e,r),s||(l=[W(e,"click",n[7]),W(e,"error",n[5])],s=!0)},p(o,r){r&16&&!Ln(e.src,t=o[4])&&p(e,"src",t),r&1&&p(e,"alt",o[0]),r&1&&i!==(i="Preview "+o[0])&&p(e,"title",i),r&4&&ee(e,"link-fade",o[2])},d(o){o&&S(e),s=!1,Re(l)}}}function Y3(n){let e,t,i;function s(a,u){return a[2]?W3:U3}let l=s(n),o=l(n),r={};return t=new B3({props:r}),n[8](t),{c(){o.c(),e=O(),j(t.$$.fragment)},m(a,u){o.m(a,u),$(a,e,u),R(t,a,u),i=!0},p(a,[u]){l===(l=s(a))&&o?o.p(a,u):(o.d(1),o=l(a),o&&(o.c(),o.m(e.parentNode,e)));const f={};t.$set(f)},i(a){i||(E(t.$$.fragment,a),i=!0)},o(a){I(t.$$.fragment,a),i=!1},d(a){o.d(a),a&&S(e),n[8](null),H(t,a)}}}function K3(n,e,t){let i,{record:s}=e,{filename:l}=e,o,r="",a="";function u(){t(4,r="")}const f=d=>{d.stopPropagation(),o==null||o.show(a)};function c(d){le[d?"unshift":"push"](()=>{o=d,t(3,o)})}return n.$$set=d=>{"record"in d&&t(6,s=d.record),"filename"in d&&t(0,l=d.filename)},n.$$.update=()=>{n.$$.dirty&1&&t(2,i=B.hasImageExtension(l)),n.$$.dirty&69&&i&&t(1,a=me.getFileUrl(s,`${l}`)),n.$$.dirty&2&&t(4,r=a?a+"?thumb=100x100":"")},[l,a,i,o,r,u,s,f,c]}class O_ extends Ce{constructor(e){super(),$e(this,e,K3,Y3,ke,{record:6,filename:0})}}function Bd(n,e,t){const i=n.slice();return i[22]=e[t],i[24]=t,i}function Ud(n,e,t){const i=n.slice();return i[25]=e[t],i[24]=t,i}function J3(n){let e,t,i;function s(){return n[14](n[24])}return{c(){e=v("button"),e.innerHTML='',p(e,"type","button"),p(e,"class","btn btn-secondary btn-sm btn-circle btn-remove txt-hint")},m(l,o){$(l,e,o),t||(i=[Le(Be.call(null,e,"Remove file")),W(e,"click",s)],t=!0)},p(l,o){n=l},d(l){l&&S(e),t=!1,Re(i)}}}function Z3(n){let e,t,i;function s(){return n[13](n[24])}return{c(){e=v("button"),e.innerHTML='Restore',p(e,"type","button"),p(e,"class","btn btn-sm btn-danger btn-secondary")},m(l,o){$(l,e,o),t||(i=W(e,"click",s),t=!0)},p(l,o){n=l},d(l){l&&S(e),t=!1,i()}}}function Wd(n,e){let t,i,s,l,o,r=e[25]+"",a,u,f,c,d,h,m;s=new O_({props:{record:e[2],filename:e[25]}});function b(k,w){return w&18&&(c=null),c==null&&(c=!!k[1].includes(k[24])),c?Z3:J3}let g=b(e,-1),y=g(e);return{key:n,first:null,c(){t=v("div"),i=v("figure"),j(s.$$.fragment),l=O(),o=v("a"),a=z(r),f=O(),y.c(),p(i,"class","thumb"),ee(i,"fade",e[1].includes(e[24])),p(o,"href",u=me.getFileUrl(e[2],e[25])),p(o,"class","filename link-hint"),p(o,"target","_blank"),p(o,"rel","noopener noreferrer"),ee(o,"txt-strikethrough",e[1].includes(e[24])),p(t,"class","list-item"),this.first=t},m(k,w){$(k,t,w),_(t,i),R(s,i,null),_(t,l),_(t,o),_(o,a),_(t,f),y.m(t,null),d=!0,h||(m=Le(Be.call(null,o,{position:"right",text:"Download"})),h=!0)},p(k,w){e=k;const C={};w&4&&(C.record=e[2]),w&16&&(C.filename=e[25]),s.$set(C),(!d||w&18)&&ee(i,"fade",e[1].includes(e[24])),(!d||w&16)&&r!==(r=e[25]+"")&&ue(a,r),(!d||w&20&&u!==(u=me.getFileUrl(e[2],e[25])))&&p(o,"href",u),(!d||w&18)&&ee(o,"txt-strikethrough",e[1].includes(e[24])),g===(g=b(e,w))&&y?y.p(e,w):(y.d(1),y=g(e),y&&(y.c(),y.m(t,null)))},i(k){d||(E(s.$$.fragment,k),d=!0)},o(k){I(s.$$.fragment,k),d=!1},d(k){k&&S(t),H(s),y.d(),h=!1,m()}}}function Yd(n){let e,t,i,s,l,o,r,a,u=n[22].name+"",f,c,d,h,m,b,g;i=new R3({props:{file:n[22]}});function y(){return n[15](n[24])}return{c(){e=v("div"),t=v("figure"),j(i.$$.fragment),s=O(),l=v("div"),o=v("small"),o.textContent="New",r=O(),a=v("span"),f=z(u),d=O(),h=v("button"),h.innerHTML='',p(t,"class","thumb"),p(o,"class","label label-success m-r-5"),p(a,"class","txt"),p(l,"class","filename"),p(l,"title",c=n[22].name),p(h,"type","button"),p(h,"class","btn btn-secondary btn-sm btn-circle btn-remove"),p(e,"class","list-item")},m(k,w){$(k,e,w),_(e,t),R(i,t,null),_(e,s),_(e,l),_(l,o),_(l,r),_(l,a),_(a,f),_(e,d),_(e,h),m=!0,b||(g=[Le(Be.call(null,h,"Remove file")),W(h,"click",y)],b=!0)},p(k,w){n=k;const C={};w&1&&(C.file=n[22]),i.$set(C),(!m||w&1)&&u!==(u=n[22].name+"")&&ue(f,u),(!m||w&1&&c!==(c=n[22].name))&&p(l,"title",c)},i(k){m||(E(i.$$.fragment,k),m=!0)},o(k){I(i.$$.fragment,k),m=!1},d(k){k&&S(e),H(i),b=!1,Re(g)}}}function Kd(n){let e,t,i,s,l,o;return{c(){e=v("div"),t=v("input"),i=O(),s=v("button"),s.innerHTML=` + Upload new file`,p(t,"type","file"),p(t,"class","hidden"),t.multiple=n[5],p(s,"type","button"),p(s,"class","btn btn-secondary btn-sm btn-block"),p(e,"class","list-item btn-list-item")},m(r,a){$(r,e,a),_(e,t),n[16](t),_(e,i),_(e,s),l||(o=[W(t,"change",n[17]),W(s,"click",n[18])],l=!0)},p(r,a){a&32&&(t.multiple=r[5])},d(r){r&&S(e),n[16](null),l=!1,Re(o)}}}function G3(n){let e,t,i,s,l,o=n[3].name+"",r,a,u,f,c=[],d=new Map,h,m,b,g=n[4];const y=T=>T[25];for(let T=0;TI(w[T],1,1,()=>{w[T]=null});let M=!n[8]&&Kd(n);return{c(){e=v("label"),t=v("i"),s=O(),l=v("span"),r=z(o),u=O(),f=v("div");for(let T=0;T({21:i}),({uniqueId:i})=>i?2097152:0]},$$scope:{ctx:n}}}),{c(){j(e.$$.fragment)},m(i,s){R(e,i,s),t=!0},p(i,[s]){const l={};s&8&&(l.class="form-field form-field-file "+(i[3].required?"required":"")),s&8&&(l.name=i[3].name),s&136315391&&(l.$$scope={dirty:s,ctx:i}),e.$set(l)},i(i){t||(E(e.$$.fragment,i),t=!0)},o(i){I(e.$$.fragment,i),t=!1},d(i){H(e,i)}}}function Q3(n,e,t){let i,s,l,{record:o}=e,{value:r=""}=e,{uploadedFiles:a=[]}=e,{deletedFileIndexes:u=[]}=e,{field:f=new fn}=e,c,d;function h(A){B.removeByValue(u,A),t(1,u)}function m(A){B.pushUnique(u,A),t(1,u)}function b(A){B.isEmpty(a[A])||a.splice(A,1),t(0,a)}function g(){d==null||d.dispatchEvent(new CustomEvent("change",{detail:{value:r,uploadedFiles:a,deletedFileIndexes:u},bubbles:!0}))}const y=A=>h(A),k=A=>m(A),w=A=>b(A);function C(A){le[A?"unshift":"push"](()=>{c=A,t(6,c)})}const M=()=>{for(let A of c.files)a.push(A);t(0,a),t(6,c.value=null,c)},T=()=>c==null?void 0:c.click();function D(A){le[A?"unshift":"push"](()=>{d=A,t(7,d)})}return n.$$set=A=>{"record"in A&&t(2,o=A.record),"value"in A&&t(12,r=A.value),"uploadedFiles"in A&&t(0,a=A.uploadedFiles),"deletedFileIndexes"in A&&t(1,u=A.deletedFileIndexes),"field"in A&&t(3,f=A.field)},n.$$.update=()=>{var A,P;n.$$.dirty&1&&(Array.isArray(a)||t(0,a=B.toArray(a))),n.$$.dirty&2&&(Array.isArray(u)||t(1,u=B.toArray(u))),n.$$.dirty&8&&t(5,i=((A=f.options)==null?void 0:A.maxSelect)>1),n.$$.dirty&4128&&B.isEmpty(r)&&t(12,r=i?[]:""),n.$$.dirty&4096&&t(4,s=B.toArray(r)),n.$$.dirty&27&&t(8,l=(s.length||a.length)&&((P=f.options)==null?void 0:P.maxSelect)<=s.length+a.length-u.length),n.$$.dirty&3&&(a!==-1||u!==-1)&&g()},[a,u,o,f,s,i,c,d,l,h,m,b,r,y,k,w,C,M,T,D]}class x3 extends Ce{constructor(e){super(),$e(this,e,Q3,X3,ke,{record:2,value:12,uploadedFiles:0,deletedFileIndexes:1,field:3})}}function Jd(n){let e,t;return{c(){e=v("small"),t=z(n[1]),p(e,"class","block txt-hint txt-ellipsis")},m(i,s){$(i,e,s),_(e,t)},p(i,s){s&2&&ue(t,i[1])},d(i){i&&S(e)}}}function eM(n){let e,t,i,s,l,o=n[0].id+"",r,a,u,f,c=n[1]!==""&&n[1]!==n[0].id&&Jd(n);return{c(){e=v("i"),i=O(),s=v("div"),l=v("div"),r=z(o),a=O(),c&&c.c(),p(e,"class","ri-information-line link-hint"),p(l,"class","block txt-ellipsis"),p(s,"class","content svelte-1gjwqyd")},m(d,h){$(d,e,h),$(d,i,h),$(d,s,h),_(s,l),_(l,r),_(s,a),c&&c.m(s,null),u||(f=Le(t=Be.call(null,e,{text:JSON.stringify(n[0],null,2),position:"left",class:"code"})),u=!0)},p(d,[h]){t&&Wt(t.update)&&h&1&&t.update.call(null,{text:JSON.stringify(d[0],null,2),position:"left",class:"code"}),h&1&&o!==(o=d[0].id+"")&&ue(r,o),d[1]!==""&&d[1]!==d[0].id?c?c.p(d,h):(c=Jd(d),c.c(),c.m(s,null)):c&&(c.d(1),c=null)},i:x,o:x,d(d){d&&S(e),d&&S(i),d&&S(s),c&&c.d(),u=!1,f()}}}function tM(n,e,t){let i;const s=["id","created","updated","@collectionId","@collectionName"];let{item:l={}}=e;function o(r){r=r||{};const a=["title","name","email","username","label","key","heading","content","description",...Object.keys(r)];for(const u of a)if(typeof r[u]=="string"&&!B.isEmpty(r[u])&&!s.includes(u))return u+": "+r[u];return""}return n.$$set=r=>{"item"in r&&t(0,l=r.item)},n.$$.update=()=>{n.$$.dirty&1&&t(1,i=o(l))},[l,i]}class nM extends Ce{constructor(e){super(),$e(this,e,tM,eM,ke,{item:0})}}function Zd(n){let e,t,i;return{c(){e=v("button"),e.innerHTML='New record',p(e,"type","button"),p(e,"class","btn btn-warning btn-block btn-sm m-t-5")},m(s,l){$(s,e,l),t||(i=W(e,"click",n[17]),t=!0)},p:x,d(s){s&&S(e),t=!1,i()}}}function Gd(n){let e,t,i;return{c(){e=v("button"),e.innerHTML='Load more',p(e,"type","button"),p(e,"class","btn btn-block btn-sm m-t-5"),ee(e,"btn-loading",n[6]),ee(e,"btn-disabled",n[6])},m(s,l){$(s,e,l),t||(i=W(e,"click",Yn(n[18])),t=!0)},p(s,l){l&64&&ee(e,"btn-loading",s[6]),l&64&&ee(e,"btn-disabled",s[6])},d(s){s&&S(e),t=!1,i()}}}function iM(n){let e,t,i=!n[7]&&n[8]&&Zd(n),s=n[10]&&Gd(n);return{c(){i&&i.c(),e=O(),s&&s.c(),t=Fe()},m(l,o){i&&i.m(l,o),$(l,e,o),s&&s.m(l,o),$(l,t,o)},p(l,o){!l[7]&&l[8]?i?i.p(l,o):(i=Zd(l),i.c(),i.m(e.parentNode,e)):i&&(i.d(1),i=null),l[10]?s?s.p(l,o):(s=Gd(l),s.c(),s.m(t.parentNode,t)):s&&(s.d(1),s=null)},d(l){i&&i.d(l),l&&S(e),s&&s.d(l),l&&S(t)}}}function sM(n){let e,t,i,s,l,o;const r=[{selectPlaceholder:n[11]?"Loading...":n[3]},{items:n[5]},{searchable:n[5].length>5},{selectionKey:"id"},{labelComponent:n[4]},{disabled:n[11]},{optionComponent:n[4]},{multiple:n[2]},{class:"records-select block-options"},n[13]];function a(d){n[19](d)}function u(d){n[20](d)}let f={$$slots:{afterOptions:[iM]},$$scope:{ctx:n}};for(let d=0;dye(e,"keyOfSelected",a)),le.push(()=>ye(e,"selected",u)),e.$on("show",n[21]),e.$on("hide",n[22]);let c={collection:n[8]};return l=new D_({props:c}),n[23](l),l.$on("save",n[24]),{c(){j(e.$$.fragment),s=O(),j(l.$$.fragment)},m(d,h){R(e,d,h),$(d,s,h),R(l,d,h),o=!0},p(d,[h]){const m=h&10300?Yt(r,[h&2056&&{selectPlaceholder:d[11]?"Loading...":d[3]},h&32&&{items:d[5]},h&32&&{searchable:d[5].length>5},r[3],h&16&&{labelComponent:d[4]},h&2048&&{disabled:d[11]},h&16&&{optionComponent:d[4]},h&4&&{multiple:d[2]},r[8],h&8192&&Kn(d[13])]):{};h&536872896&&(m.$$scope={dirty:h,ctx:d}),!t&&h&2&&(t=!0,m.keyOfSelected=d[1],Me(()=>t=!1)),!i&&h&1&&(i=!0,m.selected=d[0],Me(()=>i=!1)),e.$set(m);const b={};h&256&&(b.collection=d[8]),l.$set(b)},i(d){o||(E(e.$$.fragment,d),E(l.$$.fragment,d),o=!0)},o(d){I(e.$$.fragment,d),I(l.$$.fragment,d),o=!1},d(d){H(e,d),d&&S(s),n[23](null),H(l,d)}}}function lM(n,e,t){let i,s;const l=["multiple","selected","keyOfSelected","selectPlaceholder","optionComponent","collectionId"];let o=wt(e,l);const r="select_"+B.randomString(5);let{multiple:a=!1}=e,{selected:u=[]}=e,{keyOfSelected:f=a?[]:void 0}=e,{selectPlaceholder:c="- Select -"}=e,{optionComponent:d=nM}=e,{collectionId:h}=e,m=[],b=1,g=0,y=!1,k=!1,w=!1,C=null,M;async function T(){if(!h){t(8,C=null),t(7,w=!1);return}t(7,w=!0);try{t(8,C=await me.collections.getOne(h,{$cancelKey:"collection_"+r}))}catch(Z){me.errorResponseHandler(Z)}t(7,w=!1)}async function D(){const Z=B.toArray(f);if(!h||!Z.length)return;t(16,k=!0);let ie=[];const J=Z.slice(),fe=[];for(;J.length>0;){const Y=[];for(const re of J.splice(0,50))Y.push(`id="${re}"`);fe.push(me.collection(h).getFullList(200,{filter:Y.join("||"),$autoCancel:!1}))}try{await Promise.all(fe).then(Y=>{ie=ie.concat(...Y)}),t(0,u=[]);for(const Y of Z){const re=B.findByKey(ie,"id",Y);re&&u.push(re)}t(5,m=B.filterDuplicatesByKey(u.concat(m)))}catch(Y){me.errorResponseHandler(Y)}t(16,k=!1)}async function A(Z=!1){if(!!h){t(6,y=!0);try{const ie=Z?1:b+1,J=await me.collection(h).getList(ie,200,{sort:"-created",$cancelKey:r+"loadList"});Z&&t(5,m=B.toArray(u).slice()),t(5,m=B.filterDuplicatesByKey(m.concat(J.items,B.toArray(u)))),b=J.page,t(15,g=J.totalItems)}catch(ie){me.errorResponseHandler(ie)}t(6,y=!1)}}const P=()=>M==null?void 0:M.show(),L=()=>A();function V(Z){f=Z,t(1,f)}function F(Z){u=Z,t(0,u)}function U(Z){Ve.call(this,n,Z)}function G(Z){Ve.call(this,n,Z)}function K(Z){le[Z?"unshift":"push"](()=>{M=Z,t(9,M)})}const X=Z=>{var ie;(ie=Z==null?void 0:Z.detail)!=null&&ie.id&&t(1,f=B.toArray(f).concat(Z.detail.id)),A(!0)};return n.$$set=Z=>{e=Ye(Ye({},e),Wn(Z)),t(13,o=wt(e,l)),"multiple"in Z&&t(2,a=Z.multiple),"selected"in Z&&t(0,u=Z.selected),"keyOfSelected"in Z&&t(1,f=Z.keyOfSelected),"selectPlaceholder"in Z&&t(3,c=Z.selectPlaceholder),"optionComponent"in Z&&t(4,d=Z.optionComponent),"collectionId"in Z&&t(14,h=Z.collectionId)},n.$$.update=()=>{n.$$.dirty&16384&&h&&(T(),D().then(()=>{A(!0)})),n.$$.dirty&65600&&t(11,i=y||k),n.$$.dirty&32800&&t(10,s=g>m.length)},[u,f,a,c,d,m,y,w,C,M,s,i,A,o,h,g,k,P,L,V,F,U,G,K,X]}class oM extends Ce{constructor(e){super(),$e(this,e,lM,sM,ke,{multiple:2,selected:0,keyOfSelected:1,selectPlaceholder:3,optionComponent:4,collectionId:14})}}function Xd(n){let e,t,i=n[1].options.maxSelect+"",s,l;return{c(){e=v("div"),t=z("Select up to "),s=z(i),l=z(" items."),p(e,"class","help-block")},m(o,r){$(o,e,r),_(e,t),_(e,s),_(e,l)},p(o,r){r&2&&i!==(i=o[1].options.maxSelect+"")&&ue(s,i)},d(o){o&&S(e)}}}function rM(n){var k,w;let e,t,i,s,l,o=n[1].name+"",r,a,u,f,c,d,h,m;function b(C){n[3](C)}let g={toggle:!0,id:n[4],multiple:n[2],collectionId:(k=n[1].options)==null?void 0:k.collectionId};n[0]!==void 0&&(g.keyOfSelected=n[0]),f=new oM({props:g}),le.push(()=>ye(f,"keyOfSelected",b));let y=((w=n[1].options)==null?void 0:w.maxSelect)>1&&Xd(n);return{c(){e=v("label"),t=v("i"),s=O(),l=v("span"),r=z(o),u=O(),j(f.$$.fragment),d=O(),y&&y.c(),h=Fe(),p(t,"class",i=B.getFieldTypeIcon(n[1].type)),p(l,"class","txt"),p(e,"for",a=n[4])},m(C,M){$(C,e,M),_(e,t),_(e,s),_(e,l),_(l,r),$(C,u,M),R(f,C,M),$(C,d,M),y&&y.m(C,M),$(C,h,M),m=!0},p(C,M){var D,A;(!m||M&2&&i!==(i=B.getFieldTypeIcon(C[1].type)))&&p(t,"class",i),(!m||M&2)&&o!==(o=C[1].name+"")&&ue(r,o),(!m||M&16&&a!==(a=C[4]))&&p(e,"for",a);const T={};M&16&&(T.id=C[4]),M&4&&(T.multiple=C[2]),M&2&&(T.collectionId=(D=C[1].options)==null?void 0:D.collectionId),!c&&M&1&&(c=!0,T.keyOfSelected=C[0],Me(()=>c=!1)),f.$set(T),((A=C[1].options)==null?void 0:A.maxSelect)>1?y?y.p(C,M):(y=Xd(C),y.c(),y.m(h.parentNode,h)):y&&(y.d(1),y=null)},i(C){m||(E(f.$$.fragment,C),m=!0)},o(C){I(f.$$.fragment,C),m=!1},d(C){C&&S(e),C&&S(u),H(f,C),C&&S(d),y&&y.d(C),C&&S(h)}}}function aM(n){let e,t;return e=new _e({props:{class:"form-field "+(n[1].required?"required":""),name:n[1].name,$$slots:{default:[rM,({uniqueId:i})=>({4:i}),({uniqueId:i})=>i?16:0]},$$scope:{ctx:n}}}),{c(){j(e.$$.fragment)},m(i,s){R(e,i,s),t=!0},p(i,[s]){const l={};s&2&&(l.class="form-field "+(i[1].required?"required":"")),s&2&&(l.name=i[1].name),s&55&&(l.$$scope={dirty:s,ctx:i}),e.$set(l)},i(i){t||(E(e.$$.fragment,i),t=!0)},o(i){I(e.$$.fragment,i),t=!1},d(i){H(e,i)}}}function uM(n,e,t){let i,{field:s=new fn}=e,{value:l=void 0}=e;function o(r){l=r,t(0,l),t(2,i),t(1,s)}return n.$$set=r=>{"field"in r&&t(1,s=r.field),"value"in r&&t(0,l=r.value)},n.$$.update=()=>{var r,a;n.$$.dirty&2&&t(2,i=((r=s.options)==null?void 0:r.maxSelect)!=1),n.$$.dirty&7&&i&&Array.isArray(l)&&((a=s.options)==null?void 0:a.maxSelect)&&l.length>s.options.maxSelect&&t(0,l=l.slice(s.options.maxSelect-1))},[l,s,i,o]}class fM extends Ce{constructor(e){super(),$e(this,e,uM,aM,ke,{field:1,value:0})}}function cM(n){let e,t,i,s,l,o,r,a;return{c(){e=v("label"),t=z("Auth URL"),s=O(),l=v("input"),p(e,"for",i=n[5]),p(l,"type","url"),p(l,"id",o=n[5])},m(u,f){$(u,e,f),_(e,t),$(u,s,f),$(u,l,f),pe(l,n[0].authUrl),r||(a=W(l,"input",n[2]),r=!0)},p(u,f){f&32&&i!==(i=u[5])&&p(e,"for",i),f&32&&o!==(o=u[5])&&p(l,"id",o),f&1&&pe(l,u[0].authUrl)},d(u){u&&S(e),u&&S(s),u&&S(l),r=!1,a()}}}function dM(n){let e,t,i,s,l,o,r,a;return{c(){e=v("label"),t=z("Token URL"),s=O(),l=v("input"),p(e,"for",i=n[5]),p(l,"type","text"),p(l,"id",o=n[5])},m(u,f){$(u,e,f),_(e,t),$(u,s,f),$(u,l,f),pe(l,n[0].tokenUrl),r||(a=W(l,"input",n[3]),r=!0)},p(u,f){f&32&&i!==(i=u[5])&&p(e,"for",i),f&32&&o!==(o=u[5])&&p(l,"id",o),f&1&&l.value!==u[0].tokenUrl&&pe(l,u[0].tokenUrl)},d(u){u&&S(e),u&&S(s),u&&S(l),r=!1,a()}}}function pM(n){let e,t,i,s,l,o,r,a;return{c(){e=v("label"),t=z("User API URL"),s=O(),l=v("input"),p(e,"for",i=n[5]),p(l,"type","text"),p(l,"id",o=n[5])},m(u,f){$(u,e,f),_(e,t),$(u,s,f),$(u,l,f),pe(l,n[0].userApiUrl),r||(a=W(l,"input",n[4]),r=!0)},p(u,f){f&32&&i!==(i=u[5])&&p(e,"for",i),f&32&&o!==(o=u[5])&&p(l,"id",o),f&1&&l.value!==u[0].userApiUrl&&pe(l,u[0].userApiUrl)},d(u){u&&S(e),u&&S(s),u&&S(l),r=!1,a()}}}function hM(n){let e,t,i,s,l,o,r,a,u,f,c,d;return l=new _e({props:{class:"form-field",name:n[1]+".authUrl",$$slots:{default:[cM,({uniqueId:h})=>({5:h}),({uniqueId:h})=>h?32:0]},$$scope:{ctx:n}}}),a=new _e({props:{class:"form-field",name:n[1]+".tokenUrl",$$slots:{default:[dM,({uniqueId:h})=>({5:h}),({uniqueId:h})=>h?32:0]},$$scope:{ctx:n}}}),c=new _e({props:{class:"form-field",name:n[1]+".userApiUrl",$$slots:{default:[pM,({uniqueId:h})=>({5:h}),({uniqueId:h})=>h?32:0]},$$scope:{ctx:n}}}),{c(){e=v("div"),e.textContent="Selfhosted endpoints (optional)",t=O(),i=v("div"),s=v("div"),j(l.$$.fragment),o=O(),r=v("div"),j(a.$$.fragment),u=O(),f=v("div"),j(c.$$.fragment),p(e,"class","section-title"),p(s,"class","col-lg-4"),p(r,"class","col-lg-4"),p(f,"class","col-lg-4"),p(i,"class","grid")},m(h,m){$(h,e,m),$(h,t,m),$(h,i,m),_(i,s),R(l,s,null),_(i,o),_(i,r),R(a,r,null),_(i,u),_(i,f),R(c,f,null),d=!0},p(h,[m]){const b={};m&2&&(b.name=h[1]+".authUrl"),m&97&&(b.$$scope={dirty:m,ctx:h}),l.$set(b);const g={};m&2&&(g.name=h[1]+".tokenUrl"),m&97&&(g.$$scope={dirty:m,ctx:h}),a.$set(g);const y={};m&2&&(y.name=h[1]+".userApiUrl"),m&97&&(y.$$scope={dirty:m,ctx:h}),c.$set(y)},i(h){d||(E(l.$$.fragment,h),E(a.$$.fragment,h),E(c.$$.fragment,h),d=!0)},o(h){I(l.$$.fragment,h),I(a.$$.fragment,h),I(c.$$.fragment,h),d=!1},d(h){h&&S(e),h&&S(t),h&&S(i),H(l),H(a),H(c)}}}function mM(n,e,t){let{key:i=""}=e,{config:s={}}=e;function l(){s.authUrl=this.value,t(0,s)}function o(){s.tokenUrl=this.value,t(0,s)}function r(){s.userApiUrl=this.value,t(0,s)}return n.$$set=a=>{"key"in a&&t(1,i=a.key),"config"in a&&t(0,s=a.config)},[s,i,l,o,r]}class gM extends Ce{constructor(e){super(),$e(this,e,mM,hM,ke,{key:1,config:0})}}function _M(n){let e,t,i,s,l,o,r,a,u,f;return{c(){e=v("label"),t=z("Auth URL"),s=O(),l=v("input"),r=O(),a=v("div"),a.textContent="Eg. https://login.microsoftonline.com/YOUR_DIRECTORY_TENANT_ID/oauth2/v2.0/authorize",p(e,"for",i=n[4]),p(l,"type","url"),p(l,"id",o=n[4]),l.required=!0,p(l,"placeholder","https://login.microsoftonline.com/YOUR_DIRECTORY_TENANT_ID/oauth2/v2.0/authorize"),p(a,"class","help-block")},m(c,d){$(c,e,d),_(e,t),$(c,s,d),$(c,l,d),pe(l,n[0].authUrl),$(c,r,d),$(c,a,d),u||(f=W(l,"input",n[2]),u=!0)},p(c,d){d&16&&i!==(i=c[4])&&p(e,"for",i),d&16&&o!==(o=c[4])&&p(l,"id",o),d&1&&pe(l,c[0].authUrl)},d(c){c&&S(e),c&&S(s),c&&S(l),c&&S(r),c&&S(a),u=!1,f()}}}function bM(n){let e,t,i,s,l,o,r,a,u,f;return{c(){e=v("label"),t=z("Token URL"),s=O(),l=v("input"),r=O(),a=v("div"),a.textContent="Eg. https://login.microsoftonline.com/YOUR_DIRECTORY_TENANT_ID/oauth2/v2.0/token",p(e,"for",i=n[4]),p(l,"type","text"),p(l,"id",o=n[4]),l.required=!0,p(l,"placeholder","https://login.microsoftonline.com/YOUR_DIRECTORY_TENANT_ID/oauth2/v2.0/token"),p(a,"class","help-block")},m(c,d){$(c,e,d),_(e,t),$(c,s,d),$(c,l,d),pe(l,n[0].tokenUrl),$(c,r,d),$(c,a,d),u||(f=W(l,"input",n[3]),u=!0)},p(c,d){d&16&&i!==(i=c[4])&&p(e,"for",i),d&16&&o!==(o=c[4])&&p(l,"id",o),d&1&&l.value!==c[0].tokenUrl&&pe(l,c[0].tokenUrl)},d(c){c&&S(e),c&&S(s),c&&S(l),c&&S(r),c&&S(a),u=!1,f()}}}function vM(n){let e,t,i,s,l,o,r,a,u;return l=new _e({props:{class:"form-field required",name:n[1]+".authUrl",$$slots:{default:[_M,({uniqueId:f})=>({4:f}),({uniqueId:f})=>f?16:0]},$$scope:{ctx:n}}}),a=new _e({props:{class:"form-field required",name:n[1]+".tokenUrl",$$slots:{default:[bM,({uniqueId:f})=>({4:f}),({uniqueId:f})=>f?16:0]},$$scope:{ctx:n}}}),{c(){e=v("div"),e.textContent="Azure AD endpoints",t=O(),i=v("div"),s=v("div"),j(l.$$.fragment),o=O(),r=v("div"),j(a.$$.fragment),p(e,"class","section-title"),p(s,"class","col-lg-12"),p(r,"class","col-lg-12"),p(i,"class","grid")},m(f,c){$(f,e,c),$(f,t,c),$(f,i,c),_(i,s),R(l,s,null),_(i,o),_(i,r),R(a,r,null),u=!0},p(f,[c]){const d={};c&2&&(d.name=f[1]+".authUrl"),c&49&&(d.$$scope={dirty:c,ctx:f}),l.$set(d);const h={};c&2&&(h.name=f[1]+".tokenUrl"),c&49&&(h.$$scope={dirty:c,ctx:f}),a.$set(h)},i(f){u||(E(l.$$.fragment,f),E(a.$$.fragment,f),u=!0)},o(f){I(l.$$.fragment,f),I(a.$$.fragment,f),u=!1},d(f){f&&S(e),f&&S(t),f&&S(i),H(l),H(a)}}}function yM(n,e,t){let{key:i=""}=e,{config:s={}}=e;function l(){s.authUrl=this.value,t(0,s)}function o(){s.tokenUrl=this.value,t(0,s)}return n.$$set=r=>{"key"in r&&t(1,i=r.key),"config"in r&&t(0,s=r.config)},[s,i,l,o]}class kM extends Ce{constructor(e){super(),$e(this,e,yM,vM,ke,{key:1,config:0})}}const gl={googleAuth:{title:"Google",icon:"ri-google-fill"},facebookAuth:{title:"Facebook",icon:"ri-facebook-fill"},twitterAuth:{title:"Twitter",icon:"ri-twitter-fill"},githubAuth:{title:"GitHub",icon:"ri-github-fill"},gitlabAuth:{title:"GitLab",icon:"ri-gitlab-fill",optionsComponent:gM},discordAuth:{title:"Discord",icon:"ri-discord-fill"},microsoftAuth:{title:"Microsoft",icon:"ri-microsoft-fill",optionsComponent:kM},spotifyAuth:{title:"Spotify",icon:"ri-spotify-fill"}};function Qd(n,e,t){const i=n.slice();return i[9]=e[t],i}function wM(n){let e;return{c(){e=v("p"),e.textContent="No linked OAuth2 providers.",p(e,"class","txt-hint txt-center")},m(t,i){$(t,e,i)},p:x,d(t){t&&S(e)}}}function SM(n){let e,t=n[1],i=[];for(let s=0;s',p(e,"class","block txt-center")},m(t,i){$(t,e,i)},p:x,d(t){t&&S(e)}}}function xd(n){let e,t,i,s,l,o=n[3](n[9].provider)+"",r,a,u,f,c=n[9].providerId+"",d,h,m,b,g,y;function k(){return n[6](n[9])}return{c(){e=v("div"),t=v("i"),s=O(),l=v("span"),r=z(o),a=O(),u=v("div"),f=z("ID: "),d=z(c),h=O(),m=v("button"),m.innerHTML='',b=O(),p(t,"class",i=n[4](n[9].provider)),p(l,"class","txt"),p(u,"class","txt-hint"),p(m,"type","button"),p(m,"class","btn btn-secondary link-hint btn-circle btn-sm m-l-auto"),p(e,"class","list-item")},m(w,C){$(w,e,C),_(e,t),_(e,s),_(e,l),_(l,r),_(e,a),_(e,u),_(u,f),_(u,d),_(e,h),_(e,m),_(e,b),g||(y=W(m,"click",k),g=!0)},p(w,C){n=w,C&2&&i!==(i=n[4](n[9].provider))&&p(t,"class",i),C&2&&o!==(o=n[3](n[9].provider)+"")&&ue(r,o),C&2&&c!==(c=n[9].providerId+"")&&ue(d,c)},d(w){w&&S(e),g=!1,y()}}}function CM(n){let e;function t(l,o){var r;return l[2]?$M:((r=l[0])==null?void 0:r.id)&&l[1].length?SM:wM}let i=t(n),s=i(n);return{c(){s.c(),e=Fe()},m(l,o){s.m(l,o),$(l,e,o)},p(l,[o]){i===(i=t(l))&&s?s.p(l,o):(s.d(1),s=i(l),s&&(s.c(),s.m(e.parentNode,e)))},i:x,o:x,d(l){s.d(l),l&&S(e)}}}function MM(n,e,t){const i=It();let{record:s}=e,l=[],o=!1;function r(d){var h;return((h=gl[d+"Auth"])==null?void 0:h.title)||B.sentenize(d,!1)}function a(d){var h;return((h=gl[d+"Auth"])==null?void 0:h.icon)||`ri-${d}-line`}async function u(){if(!(s!=null&&s.id)){t(1,l=[]),t(2,o=!1);return}t(2,o=!0);try{t(1,l=await me.collection(s.collectionId).listExternalAuths(s.id))}catch(d){me.errorResponseHandler(d)}t(2,o=!1)}function f(d){!(s!=null&&s.id)||!d||yn(`Do you really want to unlink the ${r(d)} provider?`,()=>me.collection(s.collectionId).unlinkExternalAuth(s.id,d).then(()=>{Lt(`Successfully unlinked the ${r(d)} provider.`),i("unlink",d),u()}).catch(h=>{me.errorResponseHandler(h)}))}u();const c=d=>f(d.provider);return n.$$set=d=>{"record"in d&&t(0,s=d.record)},[s,l,o,r,a,f,c]}class TM extends Ce{constructor(e){super(),$e(this,e,MM,CM,ke,{record:0})}}function ep(n,e,t){const i=n.slice();return i[46]=e[t],i[47]=e,i[48]=t,i}function tp(n){let e,t;return e=new _e({props:{class:"form-field disabled",name:"id",$$slots:{default:[OM,({uniqueId:i})=>({49:i}),({uniqueId:i})=>[0,i?262144:0]]},$$scope:{ctx:n}}}),{c(){j(e.$$.fragment)},m(i,s){R(e,i,s),t=!0},p(i,s){const l={};s[0]&4|s[1]&786432&&(l.$$scope={dirty:s,ctx:i}),e.$set(l)},i(i){t||(E(e.$$.fragment,i),t=!0)},o(i){I(e.$$.fragment,i),t=!1},d(i){H(e,i)}}}function OM(n){let e,t,i,s,l,o,r,a,u,f,c,d,h,m,b,g,y;return{c(){e=v("label"),t=v("i"),i=O(),s=v("span"),s.textContent="id",l=O(),o=v("span"),a=O(),u=v("div"),f=v("i"),d=O(),h=v("input"),p(t,"class",B.getFieldTypeIcon("primary")),p(s,"class","txt"),p(o,"class","flex-fill"),p(e,"for",r=n[49]),p(f,"class","ri-calendar-event-line txt-disabled"),p(u,"class","form-field-addon"),p(h,"type","text"),p(h,"id",m=n[49]),h.value=b=n[2].id,h.readOnly=!0},m(k,w){$(k,e,w),_(e,t),_(e,i),_(e,s),_(e,l),_(e,o),$(k,a,w),$(k,u,w),_(u,f),$(k,d,w),$(k,h,w),g||(y=Le(c=Be.call(null,f,{text:`Created: ${n[2].created} Updated: ${n[2].updated}`,position:"left"})),g=!0)},p(k,w){w[1]&262144&&r!==(r=k[49])&&p(e,"for",r),c&&Wt(c.update)&&w[0]&4&&c.update.call(null,{text:`Created: ${k[2].created} Updated: ${k[2].updated}`,position:"left"}),w[1]&262144&&m!==(m=k[49])&&p(h,"id",m),w[0]&4&&b!==(b=k[2].id)&&h.value!==b&&(h.value=b)},d(k){k&&S(e),k&&S(a),k&&S(u),k&&S(d),k&&S(h),g=!1,y()}}}function np(n){let e,t,i,s,l;function o(a){n[26](a)}let r={collection:n[0]};return n[2]!==void 0&&(r.record=n[2]),e=new X4({props:r}),le.push(()=>ye(e,"record",o)),{c(){j(e.$$.fragment),i=O(),s=v("hr")},m(a,u){R(e,a,u),$(a,i,u),$(a,s,u),l=!0},p(a,u){const f={};u[0]&1&&(f.collection=a[0]),!t&&u[0]&4&&(t=!0,f.record=a[2],Me(()=>t=!1)),e.$set(f)},i(a){l||(E(e.$$.fragment,a),l=!0)},o(a){I(e.$$.fragment,a),l=!1},d(a){H(e,a),a&&S(i),a&&S(s)}}}function ip(n){let e;return{c(){e=v("div"),e.innerHTML=`
No custom fields to be set
`,p(e,"class","block txt-center txt-disabled")},m(t,i){$(t,e,i)},p:x,d(t){t&&S(e)}}}function DM(n){let e,t,i;function s(o){n[38](o,n[46])}let l={field:n[46]};return n[2][n[46].name]!==void 0&&(l.value=n[2][n[46].name]),e=new fM({props:l}),le.push(()=>ye(e,"value",s)),{c(){j(e.$$.fragment)},m(o,r){R(e,o,r),i=!0},p(o,r){n=o;const a={};r[0]&1&&(a.field=n[46]),!t&&r[0]&5&&(t=!0,a.value=n[2][n[46].name],Me(()=>t=!1)),e.$set(a)},i(o){i||(E(e.$$.fragment,o),i=!0)},o(o){I(e.$$.fragment,o),i=!1},d(o){H(e,o)}}}function EM(n){let e,t,i,s,l;function o(f){n[35](f,n[46])}function r(f){n[36](f,n[46])}function a(f){n[37](f,n[46])}let u={field:n[46],record:n[2]};return n[2][n[46].name]!==void 0&&(u.value=n[2][n[46].name]),n[3][n[46].name]!==void 0&&(u.uploadedFiles=n[3][n[46].name]),n[4][n[46].name]!==void 0&&(u.deletedFileIndexes=n[4][n[46].name]),e=new x3({props:u}),le.push(()=>ye(e,"value",o)),le.push(()=>ye(e,"uploadedFiles",r)),le.push(()=>ye(e,"deletedFileIndexes",a)),{c(){j(e.$$.fragment)},m(f,c){R(e,f,c),l=!0},p(f,c){n=f;const d={};c[0]&1&&(d.field=n[46]),c[0]&4&&(d.record=n[2]),!t&&c[0]&5&&(t=!0,d.value=n[2][n[46].name],Me(()=>t=!1)),!i&&c[0]&9&&(i=!0,d.uploadedFiles=n[3][n[46].name],Me(()=>i=!1)),!s&&c[0]&17&&(s=!0,d.deletedFileIndexes=n[4][n[46].name],Me(()=>s=!1)),e.$set(d)},i(f){l||(E(e.$$.fragment,f),l=!0)},o(f){I(e.$$.fragment,f),l=!1},d(f){H(e,f)}}}function AM(n){let e,t,i;function s(o){n[34](o,n[46])}let l={field:n[46]};return n[2][n[46].name]!==void 0&&(l.value=n[2][n[46].name]),e=new I3({props:l}),le.push(()=>ye(e,"value",s)),{c(){j(e.$$.fragment)},m(o,r){R(e,o,r),i=!0},p(o,r){n=o;const a={};r[0]&1&&(a.field=n[46]),!t&&r[0]&5&&(t=!0,a.value=n[2][n[46].name],Me(()=>t=!1)),e.$set(a)},i(o){i||(E(e.$$.fragment,o),i=!0)},o(o){I(e.$$.fragment,o),i=!1},d(o){H(e,o)}}}function IM(n){let e,t,i;function s(o){n[33](o,n[46])}let l={field:n[46]};return n[2][n[46].name]!==void 0&&(l.value=n[2][n[46].name]),e=new O3({props:l}),le.push(()=>ye(e,"value",s)),{c(){j(e.$$.fragment)},m(o,r){R(e,o,r),i=!0},p(o,r){n=o;const a={};r[0]&1&&(a.field=n[46]),!t&&r[0]&5&&(t=!0,a.value=n[2][n[46].name],Me(()=>t=!1)),e.$set(a)},i(o){i||(E(e.$$.fragment,o),i=!0)},o(o){I(e.$$.fragment,o),i=!1},d(o){H(e,o)}}}function PM(n){let e,t,i;function s(o){n[32](o,n[46])}let l={field:n[46]};return n[2][n[46].name]!==void 0&&(l.value=n[2][n[46].name]),e=new $3({props:l}),le.push(()=>ye(e,"value",s)),{c(){j(e.$$.fragment)},m(o,r){R(e,o,r),i=!0},p(o,r){n=o;const a={};r[0]&1&&(a.field=n[46]),!t&&r[0]&5&&(t=!0,a.value=n[2][n[46].name],Me(()=>t=!1)),e.$set(a)},i(o){i||(E(e.$$.fragment,o),i=!0)},o(o){I(e.$$.fragment,o),i=!1},d(o){H(e,o)}}}function LM(n){let e,t,i;function s(o){n[31](o,n[46])}let l={field:n[46]};return n[2][n[46].name]!==void 0&&(l.value=n[2][n[46].name]),e=new y3({props:l}),le.push(()=>ye(e,"value",s)),{c(){j(e.$$.fragment)},m(o,r){R(e,o,r),i=!0},p(o,r){n=o;const a={};r[0]&1&&(a.field=n[46]),!t&&r[0]&5&&(t=!0,a.value=n[2][n[46].name],Me(()=>t=!1)),e.$set(a)},i(o){i||(E(e.$$.fragment,o),i=!0)},o(o){I(e.$$.fragment,o),i=!1},d(o){H(e,o)}}}function NM(n){let e,t,i;function s(o){n[30](o,n[46])}let l={field:n[46]};return n[2][n[46].name]!==void 0&&(l.value=n[2][n[46].name]),e=new g3({props:l}),le.push(()=>ye(e,"value",s)),{c(){j(e.$$.fragment)},m(o,r){R(e,o,r),i=!0},p(o,r){n=o;const a={};r[0]&1&&(a.field=n[46]),!t&&r[0]&5&&(t=!0,a.value=n[2][n[46].name],Me(()=>t=!1)),e.$set(a)},i(o){i||(E(e.$$.fragment,o),i=!0)},o(o){I(e.$$.fragment,o),i=!1},d(o){H(e,o)}}}function FM(n){let e,t,i;function s(o){n[29](o,n[46])}let l={field:n[46]};return n[2][n[46].name]!==void 0&&(l.value=n[2][n[46].name]),e=new d3({props:l}),le.push(()=>ye(e,"value",s)),{c(){j(e.$$.fragment)},m(o,r){R(e,o,r),i=!0},p(o,r){n=o;const a={};r[0]&1&&(a.field=n[46]),!t&&r[0]&5&&(t=!0,a.value=n[2][n[46].name],Me(()=>t=!1)),e.$set(a)},i(o){i||(E(e.$$.fragment,o),i=!0)},o(o){I(e.$$.fragment,o),i=!1},d(o){H(e,o)}}}function RM(n){let e,t,i;function s(o){n[28](o,n[46])}let l={field:n[46]};return n[2][n[46].name]!==void 0&&(l.value=n[2][n[46].name]),e=new a3({props:l}),le.push(()=>ye(e,"value",s)),{c(){j(e.$$.fragment)},m(o,r){R(e,o,r),i=!0},p(o,r){n=o;const a={};r[0]&1&&(a.field=n[46]),!t&&r[0]&5&&(t=!0,a.value=n[2][n[46].name],Me(()=>t=!1)),e.$set(a)},i(o){i||(E(e.$$.fragment,o),i=!0)},o(o){I(e.$$.fragment,o),i=!1},d(o){H(e,o)}}}function HM(n){let e,t,i;function s(o){n[27](o,n[46])}let l={field:n[46]};return n[2][n[46].name]!==void 0&&(l.value=n[2][n[46].name]),e=new s3({props:l}),le.push(()=>ye(e,"value",s)),{c(){j(e.$$.fragment)},m(o,r){R(e,o,r),i=!0},p(o,r){n=o;const a={};r[0]&1&&(a.field=n[46]),!t&&r[0]&5&&(t=!0,a.value=n[2][n[46].name],Me(()=>t=!1)),e.$set(a)},i(o){i||(E(e.$$.fragment,o),i=!0)},o(o){I(e.$$.fragment,o),i=!1},d(o){H(e,o)}}}function sp(n,e){let t,i,s,l,o;const r=[HM,RM,FM,NM,LM,PM,IM,AM,EM,DM],a=[];function u(f,c){return f[46].type==="text"?0:f[46].type==="number"?1:f[46].type==="bool"?2:f[46].type==="email"?3:f[46].type==="url"?4:f[46].type==="date"?5:f[46].type==="select"?6:f[46].type==="json"?7:f[46].type==="file"?8:f[46].type==="relation"?9:-1}return~(i=u(e))&&(s=a[i]=r[i](e)),{key:n,first:null,c(){t=Fe(),s&&s.c(),l=Fe(),this.first=t},m(f,c){$(f,t,c),~i&&a[i].m(f,c),$(f,l,c),o=!0},p(f,c){e=f;let d=i;i=u(e),i===d?~i&&a[i].p(e,c):(s&&(be(),I(a[d],1,1,()=>{a[d]=null}),ve()),~i?(s=a[i],s?s.p(e,c):(s=a[i]=r[i](e),s.c()),E(s,1),s.m(l.parentNode,l)):s=null)},i(f){o||(E(s),o=!0)},o(f){I(s),o=!1},d(f){f&&S(t),~i&&a[i].d(f),f&&S(l)}}}function lp(n){let e,t,i;return t=new TM({props:{record:n[2]}}),{c(){e=v("div"),j(t.$$.fragment),p(e,"class","tab-item"),ee(e,"active",n[10]===_l)},m(s,l){$(s,e,l),R(t,e,null),i=!0},p(s,l){const o={};l[0]&4&&(o.record=s[2]),t.$set(o),(!i||l[0]&1024)&&ee(e,"active",s[10]===_l)},i(s){i||(E(t.$$.fragment,s),i=!0)},o(s){I(t.$$.fragment,s),i=!1},d(s){s&&S(e),H(t)}}}function jM(n){var y,k;let e,t,i,s,l=[],o=new Map,r,a,u,f,c=!n[2].isNew&&tp(n),d=((y=n[0])==null?void 0:y.isAuth)&&np(n),h=((k=n[0])==null?void 0:k.schema)||[];const m=w=>w[46].name;for(let w=0;w{c=null}),ve()):c?(c.p(w,C),C[0]&4&&E(c,1)):(c=tp(w),c.c(),E(c,1),c.m(t,i)),(M=w[0])!=null&&M.isAuth?d?(d.p(w,C),C[0]&1&&E(d,1)):(d=np(w),d.c(),E(d,1),d.m(t,s)):d&&(be(),I(d,1,1,()=>{d=null}),ve()),C[0]&29&&(h=((T=w[0])==null?void 0:T.schema)||[],be(),l=bt(l,C,m,1,w,h,o,t,xt,sp,null,ep),ve(),!h.length&&b?b.p(w,C):h.length?b&&(b.d(1),b=null):(b=ip(),b.c(),b.m(t,null))),(!a||C[0]&1024)&&ee(t,"active",w[10]===Ui),w[0].isAuth&&!w[2].isNew?g?(g.p(w,C),C[0]&5&&E(g,1)):(g=lp(w),g.c(),E(g,1),g.m(e,null)):g&&(be(),I(g,1,1,()=>{g=null}),ve())},i(w){if(!a){E(c),E(d);for(let C=0;C @@ -146,7 +146,7 @@ Updated: ${g[1].updated}`,position:"left"}),y[0]&536870912&&d!==(d=g[29])&&p(c," `),m=v("span"),m.textContent=`{TOKEN} `,b=z(`, `),g=v("span"),g.textContent=`{ACTION_URL} - `,y=z("."),p(e,"for",i=n[31]),p(f,"class","label label-sm link-primary txt-mono"),p(d,"class","label label-sm link-primary txt-mono"),p(m,"class","label label-sm link-primary txt-mono"),p(g,"class","label label-sm link-primary txt-mono"),p(g,"title","Required parameter"),p(a,"class","help-block")},m(A,P){$(A,e,P),_(e,t),$(A,s,P),T[l].m(A,P),$(A,r,P),$(A,a,P),_(a,u),_(a,f),_(a,c),_(a,d),_(a,h),_(a,m),_(a,b),_(a,g),_(a,y),k=!0,w||(C=[W(f,"click",n[22]),W(d,"click",n[23]),W(m,"click",n[24]),W(g,"click",n[25])],w=!0)},p(A,P){(!k||P[1]&1&&i!==(i=A[31]))&&p(e,"for",i);let L=l;l=D(A),l===L?T[l].p(A,P):(be(),I(T[L],1,1,()=>{T[L]=null}),ve(),o=T[l],o?o.p(A,P):(o=T[l]=M[l](A),o.c()),E(o,1),o.m(r.parentNode,r))},i(A){k||(E(o),k=!0)},o(A){I(o),k=!1},d(A){A&&S(e),A&&S(s),T[l].d(A),A&&S(r),A&&S(a),w=!1,Re(C)}}}function FO(n){let e,t,i,s,l,o;return e=new _e({props:{class:"form-field required",name:n[1]+".subject",$$slots:{default:[AO,({uniqueId:r})=>({31:r}),({uniqueId:r})=>[0,r?1:0]]},$$scope:{ctx:n}}}),i=new _e({props:{class:"form-field required",name:n[1]+".actionUrl",$$slots:{default:[IO,({uniqueId:r})=>({31:r}),({uniqueId:r})=>[0,r?1:0]]},$$scope:{ctx:n}}}),l=new _e({props:{class:"form-field m-0 required",name:n[1]+".body",$$slots:{default:[NO,({uniqueId:r})=>({31:r}),({uniqueId:r})=>[0,r?1:0]]},$$scope:{ctx:n}}}),{c(){j(e.$$.fragment),t=O(),j(i.$$.fragment),s=O(),j(l.$$.fragment)},m(r,a){R(e,r,a),$(r,t,a),R(i,r,a),$(r,s,a),R(l,r,a),o=!0},p(r,a){const u={};a[0]&2&&(u.name=r[1]+".subject"),a[0]&1|a[1]&3&&(u.$$scope={dirty:a,ctx:r}),e.$set(u);const f={};a[0]&2&&(f.name=r[1]+".actionUrl"),a[0]&1|a[1]&3&&(f.$$scope={dirty:a,ctx:r}),i.$set(f);const c={};a[0]&2&&(c.name=r[1]+".body"),a[0]&49|a[1]&3&&(c.$$scope={dirty:a,ctx:r}),l.$set(c)},i(r){o||(E(e.$$.fragment,r),E(i.$$.fragment,r),E(l.$$.fragment,r),o=!0)},o(r){I(e.$$.fragment,r),I(i.$$.fragment,r),I(l.$$.fragment,r),o=!1},d(r){H(e,r),r&&S(t),H(i,r),r&&S(s),H(l,r)}}}function Jp(n){let e,t,i,s,l;return{c(){e=v("i"),p(e,"class","ri-error-warning-fill txt-danger")},m(o,r){$(o,e,r),i=!0,s||(l=Le(Be.call(null,e,{text:"Has errors",position:"left"})),s=!0)},i(o){i||(Qe(()=>{t||(t=je(e,$t,{duration:150,start:.7},!0)),t.run(1)}),i=!0)},o(o){t||(t=je(e,$t,{duration:150,start:.7},!1)),t.run(0),i=!1},d(o){o&&S(e),o&&t&&t.end(),s=!1,l()}}}function RO(n){let e,t,i,s,l,o,r,a,u,f,c=n[6]&&Jp();return{c(){e=v("div"),t=v("i"),i=O(),s=v("span"),l=z(n[2]),o=O(),r=v("div"),a=O(),c&&c.c(),u=Fe(),p(t,"class","ri-draft-line"),p(s,"class","txt"),p(e,"class","inline-flex"),p(r,"class","flex-fill")},m(d,h){$(d,e,h),_(e,t),_(e,i),_(e,s),_(s,l),$(d,o,h),$(d,r,h),$(d,a,h),c&&c.m(d,h),$(d,u,h),f=!0},p(d,h){(!f||h[0]&4)&&ue(l,d[2]),d[6]?c?h[0]&64&&E(c,1):(c=Jp(),c.c(),E(c,1),c.m(u.parentNode,u)):c&&(be(),I(c,1,1,()=>{c=null}),ve())},i(d){f||(E(c),f=!0)},o(d){I(c),f=!1},d(d){d&&S(e),d&&S(o),d&&S(r),d&&S(a),c&&c.d(d),d&&S(u)}}}function HO(n){let e,t;const i=[n[8]];let s={$$slots:{header:[RO],default:[FO]},$$scope:{ctx:n}};for(let l=0;lt(12,o=J));let{key:r}=e,{title:a}=e,{config:u={}}=e,f,c=Zp,d=!1;function h(){f==null||f.expand()}function m(){f==null||f.collapse()}function b(){f==null||f.collapseSiblings()}async function g(){c||d||(t(5,d=!0),t(4,c=(await st(()=>import("./CodeEditor.65f2eb62.js"),["./CodeEditor.65f2eb62.js","./index.9c8b95cd.js"],import.meta.url)).default),Zp=c,t(5,d=!1))}function y(J){B.copyToClipboard(J),bg(`Copied ${J} to clipboard`,2e3)}g();function k(){u.subject=this.value,t(0,u)}const w=()=>y("{APP_NAME}"),C=()=>y("{APP_URL}");function M(){u.actionUrl=this.value,t(0,u)}const T=()=>y("{APP_NAME}"),D=()=>y("{APP_URL}"),A=()=>y("{TOKEN}");function P(J){n.$$.not_equal(u.body,J)&&(u.body=J,t(0,u))}function L(){u.body=this.value,t(0,u)}const V=()=>y("{APP_NAME}"),F=()=>y("{APP_URL}"),U=()=>y("{TOKEN}"),G=()=>y("{ACTION_URL}");function K(J){le[J?"unshift":"push"](()=>{f=J,t(3,f)})}function X(J){Ve.call(this,n,J)}function Z(J){Ve.call(this,n,J)}function ie(J){Ve.call(this,n,J)}return n.$$set=J=>{e=Ye(Ye({},e),Wn(J)),t(8,l=wt(e,s)),"key"in J&&t(1,r=J.key),"title"in J&&t(2,a=J.title),"config"in J&&t(0,u=J.config)},n.$$.update=()=>{n.$$.dirty[0]&4098&&t(6,i=!B.isEmpty(B.getNestedVal(o,r))),n.$$.dirty[0]&3&&(u.enabled||al(r))},[u,r,a,f,c,d,i,y,l,h,m,b,o,k,w,C,M,T,D,A,P,L,V,F,U,G,K,X,Z,ie]}class $r extends Ce{constructor(e){super(),$e(this,e,jO,HO,ke,{key:1,title:2,config:0,expand:9,collapse:10,collapseSiblings:11},null,[-1,-1])}get expand(){return this.$$.ctx[9]}get collapse(){return this.$$.ctx[10]}get collapseSiblings(){return this.$$.ctx[11]}}function Gp(n,e,t){const i=n.slice();return i[22]=e[t],i}function Xp(n,e){let t,i,s,l,o,r=e[22].label+"",a,u,f,c,d;return{key:n,first:null,c(){t=v("div"),i=v("input"),l=O(),o=v("label"),a=z(r),f=O(),p(i,"type","radio"),p(i,"name","template"),p(i,"id",s=e[21]+e[22].value),i.__value=e[22].value,i.value=i.__value,e[12][0].push(i),p(o,"for",u=e[21]+e[22].value),p(t,"class","form-field-block"),this.first=t},m(h,m){$(h,t,m),_(t,i),i.checked=i.__value===e[2],_(t,l),_(t,o),_(o,a),_(t,f),c||(d=W(i,"change",e[11]),c=!0)},p(h,m){e=h,m&2097152&&s!==(s=e[21]+e[22].value)&&p(i,"id",s),m&4&&(i.checked=i.__value===e[2]),m&2097152&&u!==(u=e[21]+e[22].value)&&p(o,"for",u)},d(h){h&&S(t),e[12][0].splice(e[12][0].indexOf(i),1),c=!1,d()}}}function qO(n){let e=[],t=new Map,i,s=n[7];const l=o=>o[22].value;for(let o=0;o({21:a}),({uniqueId:a})=>a?2097152:0]},$$scope:{ctx:n}}}),s=new _e({props:{class:"form-field required m-0",name:"email",$$slots:{default:[VO,({uniqueId:a})=>({21:a}),({uniqueId:a})=>a?2097152:0]},$$scope:{ctx:n}}}),{c(){e=v("form"),j(t.$$.fragment),i=O(),j(s.$$.fragment),p(e,"id",n[6]),p(e,"autocomplete","off")},m(a,u){$(a,e,u),R(t,e,null),_(e,i),R(s,e,null),l=!0,o||(r=W(e,"submit",ut(n[14])),o=!0)},p(a,u){const f={};u&35651588&&(f.$$scope={dirty:u,ctx:a}),t.$set(f);const c={};u&35651586&&(c.$$scope={dirty:u,ctx:a}),s.$set(c)},i(a){l||(E(t.$$.fragment,a),E(s.$$.fragment,a),l=!0)},o(a){I(t.$$.fragment,a),I(s.$$.fragment,a),l=!1},d(a){a&&S(e),H(t),H(s),o=!1,r()}}}function BO(n){let e;return{c(){e=v("h4"),e.textContent="Send test email",p(e,"class","center txt-break")},m(t,i){$(t,e,i)},p:x,d(t){t&&S(e)}}}function UO(n){let e,t,i,s,l,o,r,a,u,f;return{c(){e=v("button"),t=z("Close"),i=O(),s=v("button"),l=v("i"),o=O(),r=v("span"),r.textContent="Send",p(e,"type","button"),p(e,"class","btn btn-secondary"),e.disabled=n[4],p(l,"class","ri-mail-send-line"),p(r,"class","txt"),p(s,"type","submit"),p(s,"form",n[6]),p(s,"class","btn btn-expanded"),s.disabled=a=!n[5]||n[4],ee(s,"btn-loading",n[4])},m(c,d){$(c,e,d),_(e,t),$(c,i,d),$(c,s,d),_(s,l),_(s,o),_(s,r),u||(f=[W(e,"click",n[0]),W(s,"click",n[10])],u=!0)},p(c,d){d&16&&(e.disabled=c[4]),d&48&&a!==(a=!c[5]||c[4])&&(s.disabled=a),d&16&&ee(s,"btn-loading",c[4])},d(c){c&&S(e),c&&S(i),c&&S(s),u=!1,Re(f)}}}function WO(n){let e,t,i={class:"overlay-panel-sm email-test-popup",overlayClose:!n[4],escClose:!n[4],beforeHide:n[15],popup:!0,$$slots:{footer:[UO],header:[BO],default:[zO]},$$scope:{ctx:n}};return e=new Jn({props:i}),n[16](e),e.$on("show",n[17]),e.$on("hide",n[18]),{c(){j(e.$$.fragment)},m(s,l){R(e,s,l),t=!0},p(s,[l]){const o={};l&16&&(o.overlayClose=!s[4]),l&16&&(o.escClose=!s[4]),l&16&&(o.beforeHide=s[15]),l&33554486&&(o.$$scope={dirty:l,ctx:s}),e.$set(o)},i(s){t||(E(e.$$.fragment,s),t=!0)},o(s){I(e.$$.fragment,s),t=!1},d(s){n[16](null),H(e,s)}}}const Cr="last_email_test",Qp="email_test_request";function YO(n,e,t){let i;const s=It(),l="email_test_"+B.randomString(5),o=[{label:'"Verification" template',value:"verification"},{label:'"Password reset" template',value:"password-reset"},{label:'"Confirm email change" template',value:"email-change"}];let r,a=localStorage.getItem(Cr),u=o[0].value,f=!1,c=null;function d(A="",P=""){t(1,a=A||localStorage.getItem(Cr)),t(2,u=P||o[0].value),Fn({}),r==null||r.show()}function h(){return clearTimeout(c),r==null?void 0:r.hide()}async function m(){if(!(!i||f)){t(4,f=!0),localStorage==null||localStorage.setItem(Cr,a),clearTimeout(c),c=setTimeout(()=>{me.cancelRequest(Qp),rl("Test email send timeout.")},3e4);try{await me.settings.testEmail(a,u,{$cancelKey:Qp}),Lt("Successfully sent test email."),s("submit"),t(4,f=!1),await $n(),h()}catch(A){t(4,f=!1),me.errorResponseHandler(A)}clearTimeout(c)}}const b=[[]],g=()=>m();function y(){u=this.__value,t(2,u)}function k(){a=this.value,t(1,a)}const w=()=>m(),C=()=>!f;function M(A){le[A?"unshift":"push"](()=>{r=A,t(3,r)})}function T(A){Ve.call(this,n,A)}function D(A){Ve.call(this,n,A)}return n.$$.update=()=>{n.$$.dirty&6&&t(5,i=!!a&&!!u)},[h,a,u,r,f,i,l,o,m,d,g,y,b,k,w,C,M,T,D]}class KO extends Ce{constructor(e){super(),$e(this,e,YO,WO,ke,{show:9,hide:0})}get show(){return this.$$.ctx[9]}get hide(){return this.$$.ctx[0]}}function JO(n){let e,t,i,s,l,o,r,a,u,f,c,d,h,m,b,g,y,k,w,C,M,T,D,A,P,L;i=new _e({props:{class:"form-field required",name:"meta.senderName",$$slots:{default:[GO,({uniqueId:Y})=>({29:Y}),({uniqueId:Y})=>Y?536870912:0]},$$scope:{ctx:n}}}),o=new _e({props:{class:"form-field required",name:"meta.senderAddress",$$slots:{default:[XO,({uniqueId:Y})=>({29:Y}),({uniqueId:Y})=>Y?536870912:0]},$$scope:{ctx:n}}});function V(Y){n[13](Y)}let F={single:!0,key:"meta.verificationTemplate",title:'Default "Verification" email template'};n[0].meta.verificationTemplate!==void 0&&(F.config=n[0].meta.verificationTemplate),u=new $r({props:F}),le.push(()=>ye(u,"config",V));function U(Y){n[14](Y)}let G={single:!0,key:"meta.resetPasswordTemplate",title:'Default "Password reset" email template'};n[0].meta.resetPasswordTemplate!==void 0&&(G.config=n[0].meta.resetPasswordTemplate),d=new $r({props:G}),le.push(()=>ye(d,"config",U));function K(Y){n[15](Y)}let X={single:!0,key:"meta.confirmEmailChangeTemplate",title:'Default "Confirm email change" email template'};n[0].meta.confirmEmailChangeTemplate!==void 0&&(X.config=n[0].meta.confirmEmailChangeTemplate),b=new $r({props:X}),le.push(()=>ye(b,"config",K)),C=new _e({props:{class:"form-field form-field-toggle m-b-sm",$$slots:{default:[QO,({uniqueId:Y})=>({29:Y}),({uniqueId:Y})=>Y?536870912:0]},$$scope:{ctx:n}}});let Z=n[0].smtp.enabled&&xp(n);function ie(Y,re){return Y[4]?lD:sD}let J=ie(n),fe=J(n);return{c(){e=v("div"),t=v("div"),j(i.$$.fragment),s=O(),l=v("div"),j(o.$$.fragment),r=O(),a=v("div"),j(u.$$.fragment),c=O(),j(d.$$.fragment),m=O(),j(b.$$.fragment),y=O(),k=v("hr"),w=O(),j(C.$$.fragment),M=O(),Z&&Z.c(),T=O(),D=v("div"),A=v("div"),P=O(),fe.c(),p(t,"class","col-lg-6"),p(l,"class","col-lg-6"),p(e,"class","grid m-b-base"),p(a,"class","accordions"),p(A,"class","flex-fill"),p(D,"class","flex")},m(Y,re){$(Y,e,re),_(e,t),R(i,t,null),_(e,s),_(e,l),R(o,l,null),$(Y,r,re),$(Y,a,re),R(u,a,null),_(a,c),R(d,a,null),_(a,m),R(b,a,null),$(Y,y,re),$(Y,k,re),$(Y,w,re),R(C,Y,re),$(Y,M,re),Z&&Z.m(Y,re),$(Y,T,re),$(Y,D,re),_(D,A),_(D,P),fe.m(D,null),L=!0},p(Y,re){const Oe={};re&1610612737&&(Oe.$$scope={dirty:re,ctx:Y}),i.$set(Oe);const ge={};re&1610612737&&(ge.$$scope={dirty:re,ctx:Y}),o.$set(ge);const ae={};!f&&re&1&&(f=!0,ae.config=Y[0].meta.verificationTemplate,Me(()=>f=!1)),u.$set(ae);const he={};!h&&re&1&&(h=!0,he.config=Y[0].meta.resetPasswordTemplate,Me(()=>h=!1)),d.$set(he);const de={};!g&&re&1&&(g=!0,de.config=Y[0].meta.confirmEmailChangeTemplate,Me(()=>g=!1)),b.$set(de);const Se={};re&1610612737&&(Se.$$scope={dirty:re,ctx:Y}),C.$set(Se),Y[0].smtp.enabled?Z?(Z.p(Y,re),re&1&&E(Z,1)):(Z=xp(Y),Z.c(),E(Z,1),Z.m(T.parentNode,T)):Z&&(be(),I(Z,1,1,()=>{Z=null}),ve()),J===(J=ie(Y))&&fe?fe.p(Y,re):(fe.d(1),fe=J(Y),fe&&(fe.c(),fe.m(D,null)))},i(Y){L||(E(i.$$.fragment,Y),E(o.$$.fragment,Y),E(u.$$.fragment,Y),E(d.$$.fragment,Y),E(b.$$.fragment,Y),E(C.$$.fragment,Y),E(Z),L=!0)},o(Y){I(i.$$.fragment,Y),I(o.$$.fragment,Y),I(u.$$.fragment,Y),I(d.$$.fragment,Y),I(b.$$.fragment,Y),I(C.$$.fragment,Y),I(Z),L=!1},d(Y){Y&&S(e),H(i),H(o),Y&&S(r),Y&&S(a),H(u),H(d),H(b),Y&&S(y),Y&&S(k),Y&&S(w),H(C,Y),Y&&S(M),Z&&Z.d(Y),Y&&S(T),Y&&S(D),fe.d()}}}function ZO(n){let e;return{c(){e=v("div"),p(e,"class","loader")},m(t,i){$(t,e,i)},p:x,i:x,o:x,d(t){t&&S(e)}}}function GO(n){let e,t,i,s,l,o,r,a;return{c(){e=v("label"),t=z("Sender name"),s=O(),l=v("input"),p(e,"for",i=n[29]),p(l,"type","text"),p(l,"id",o=n[29]),l.required=!0},m(u,f){$(u,e,f),_(e,t),$(u,s,f),$(u,l,f),pe(l,n[0].meta.senderName),r||(a=W(l,"input",n[11]),r=!0)},p(u,f){f&536870912&&i!==(i=u[29])&&p(e,"for",i),f&536870912&&o!==(o=u[29])&&p(l,"id",o),f&1&&l.value!==u[0].meta.senderName&&pe(l,u[0].meta.senderName)},d(u){u&&S(e),u&&S(s),u&&S(l),r=!1,a()}}}function XO(n){let e,t,i,s,l,o,r,a;return{c(){e=v("label"),t=z("Sender address"),s=O(),l=v("input"),p(e,"for",i=n[29]),p(l,"type","email"),p(l,"id",o=n[29]),l.required=!0},m(u,f){$(u,e,f),_(e,t),$(u,s,f),$(u,l,f),pe(l,n[0].meta.senderAddress),r||(a=W(l,"input",n[12]),r=!0)},p(u,f){f&536870912&&i!==(i=u[29])&&p(e,"for",i),f&536870912&&o!==(o=u[29])&&p(l,"id",o),f&1&&l.value!==u[0].meta.senderAddress&&pe(l,u[0].meta.senderAddress)},d(u){u&&S(e),u&&S(s),u&&S(l),r=!1,a()}}}function QO(n){let e,t,i,s,l,o,r,a,u,f;return{c(){e=v("input"),i=O(),s=v("label"),l=v("span"),l.innerHTML="Use SMTP mail server (recommended)",o=O(),r=v("i"),p(e,"type","checkbox"),p(e,"id",t=n[29]),e.required=!0,p(l,"class","txt"),p(r,"class","ri-information-line link-hint"),p(s,"for",a=n[29])},m(c,d){$(c,e,d),e.checked=n[0].smtp.enabled,$(c,i,d),$(c,s,d),_(s,l),_(s,o),_(s,r),u||(f=[W(e,"change",n[16]),Le(Be.call(null,r,{text:'By default PocketBase uses the unix "sendmail" command for sending emails. For better emails deliverability it is recommended to use a SMTP mail server.',position:"top"}))],u=!0)},p(c,d){d&536870912&&t!==(t=c[29])&&p(e,"id",t),d&1&&(e.checked=c[0].smtp.enabled),d&536870912&&a!==(a=c[29])&&p(s,"for",a)},d(c){c&&S(e),c&&S(i),c&&S(s),u=!1,Re(f)}}}function xp(n){let e,t,i,s,l,o,r,a,u,f,c,d,h,m,b,g,y,k,w;return i=new _e({props:{class:"form-field required",name:"smtp.host",$$slots:{default:[xO,({uniqueId:C})=>({29:C}),({uniqueId:C})=>C?536870912:0]},$$scope:{ctx:n}}}),o=new _e({props:{class:"form-field required",name:"smtp.port",$$slots:{default:[eD,({uniqueId:C})=>({29:C}),({uniqueId:C})=>C?536870912:0]},$$scope:{ctx:n}}}),u=new _e({props:{class:"form-field required",name:"smtp.tls",$$slots:{default:[tD,({uniqueId:C})=>({29:C}),({uniqueId:C})=>C?536870912:0]},$$scope:{ctx:n}}}),d=new _e({props:{class:"form-field",name:"smtp.username",$$slots:{default:[nD,({uniqueId:C})=>({29:C}),({uniqueId:C})=>C?536870912:0]},$$scope:{ctx:n}}}),b=new _e({props:{class:"form-field",name:"smtp.password",$$slots:{default:[iD,({uniqueId:C})=>({29:C}),({uniqueId:C})=>C?536870912:0]},$$scope:{ctx:n}}}),{c(){e=v("div"),t=v("div"),j(i.$$.fragment),s=O(),l=v("div"),j(o.$$.fragment),r=O(),a=v("div"),j(u.$$.fragment),f=O(),c=v("div"),j(d.$$.fragment),h=O(),m=v("div"),j(b.$$.fragment),g=O(),y=v("div"),p(t,"class","col-lg-6"),p(l,"class","col-lg-3"),p(a,"class","col-lg-3"),p(c,"class","col-lg-6"),p(m,"class","col-lg-6"),p(y,"class","col-lg-12"),p(e,"class","grid")},m(C,M){$(C,e,M),_(e,t),R(i,t,null),_(e,s),_(e,l),R(o,l,null),_(e,r),_(e,a),R(u,a,null),_(e,f),_(e,c),R(d,c,null),_(e,h),_(e,m),R(b,m,null),_(e,g),_(e,y),w=!0},p(C,M){const T={};M&1610612737&&(T.$$scope={dirty:M,ctx:C}),i.$set(T);const D={};M&1610612737&&(D.$$scope={dirty:M,ctx:C}),o.$set(D);const A={};M&1610612737&&(A.$$scope={dirty:M,ctx:C}),u.$set(A);const P={};M&1610612737&&(P.$$scope={dirty:M,ctx:C}),d.$set(P);const L={};M&1610612737&&(L.$$scope={dirty:M,ctx:C}),b.$set(L)},i(C){w||(E(i.$$.fragment,C),E(o.$$.fragment,C),E(u.$$.fragment,C),E(d.$$.fragment,C),E(b.$$.fragment,C),C&&Qe(()=>{k||(k=je(e,St,{duration:150},!0)),k.run(1)}),w=!0)},o(C){I(i.$$.fragment,C),I(o.$$.fragment,C),I(u.$$.fragment,C),I(d.$$.fragment,C),I(b.$$.fragment,C),C&&(k||(k=je(e,St,{duration:150},!1)),k.run(0)),w=!1},d(C){C&&S(e),H(i),H(o),H(u),H(d),H(b),C&&k&&k.end()}}}function xO(n){let e,t,i,s,l,o,r,a;return{c(){e=v("label"),t=z("SMTP server host"),s=O(),l=v("input"),p(e,"for",i=n[29]),p(l,"type","text"),p(l,"id",o=n[29]),l.required=!0},m(u,f){$(u,e,f),_(e,t),$(u,s,f),$(u,l,f),pe(l,n[0].smtp.host),r||(a=W(l,"input",n[17]),r=!0)},p(u,f){f&536870912&&i!==(i=u[29])&&p(e,"for",i),f&536870912&&o!==(o=u[29])&&p(l,"id",o),f&1&&l.value!==u[0].smtp.host&&pe(l,u[0].smtp.host)},d(u){u&&S(e),u&&S(s),u&&S(l),r=!1,a()}}}function eD(n){let e,t,i,s,l,o,r,a;return{c(){e=v("label"),t=z("Port"),s=O(),l=v("input"),p(e,"for",i=n[29]),p(l,"type","number"),p(l,"id",o=n[29]),l.required=!0},m(u,f){$(u,e,f),_(e,t),$(u,s,f),$(u,l,f),pe(l,n[0].smtp.port),r||(a=W(l,"input",n[18]),r=!0)},p(u,f){f&536870912&&i!==(i=u[29])&&p(e,"for",i),f&536870912&&o!==(o=u[29])&&p(l,"id",o),f&1&&rt(l.value)!==u[0].smtp.port&&pe(l,u[0].smtp.port)},d(u){u&&S(e),u&&S(s),u&&S(l),r=!1,a()}}}function tD(n){let e,t,i,s,l,o,r;function a(f){n[19](f)}let u={id:n[29],items:n[6]};return n[0].smtp.tls!==void 0&&(u.keyOfSelected=n[0].smtp.tls),l=new Es({props:u}),le.push(()=>ye(l,"keyOfSelected",a)),{c(){e=v("label"),t=z("TLS Encryption"),s=O(),j(l.$$.fragment),p(e,"for",i=n[29])},m(f,c){$(f,e,c),_(e,t),$(f,s,c),R(l,f,c),r=!0},p(f,c){(!r||c&536870912&&i!==(i=f[29]))&&p(e,"for",i);const d={};c&536870912&&(d.id=f[29]),!o&&c&1&&(o=!0,d.keyOfSelected=f[0].smtp.tls,Me(()=>o=!1)),l.$set(d)},i(f){r||(E(l.$$.fragment,f),r=!0)},o(f){I(l.$$.fragment,f),r=!1},d(f){f&&S(e),f&&S(s),H(l,f)}}}function nD(n){let e,t,i,s,l,o,r,a;return{c(){e=v("label"),t=z("Username"),s=O(),l=v("input"),p(e,"for",i=n[29]),p(l,"type","text"),p(l,"id",o=n[29])},m(u,f){$(u,e,f),_(e,t),$(u,s,f),$(u,l,f),pe(l,n[0].smtp.username),r||(a=W(l,"input",n[20]),r=!0)},p(u,f){f&536870912&&i!==(i=u[29])&&p(e,"for",i),f&536870912&&o!==(o=u[29])&&p(l,"id",o),f&1&&l.value!==u[0].smtp.username&&pe(l,u[0].smtp.username)},d(u){u&&S(e),u&&S(s),u&&S(l),r=!1,a()}}}function iD(n){let e,t,i,s,l,o,r;function a(f){n[21](f)}let u={id:n[29]};return n[0].smtp.password!==void 0&&(u.value=n[0].smtp.password),l=new Ga({props:u}),le.push(()=>ye(l,"value",a)),{c(){e=v("label"),t=z("Password"),s=O(),j(l.$$.fragment),p(e,"for",i=n[29])},m(f,c){$(f,e,c),_(e,t),$(f,s,c),R(l,f,c),r=!0},p(f,c){(!r||c&536870912&&i!==(i=f[29]))&&p(e,"for",i);const d={};c&536870912&&(d.id=f[29]),!o&&c&1&&(o=!0,d.value=f[0].smtp.password,Me(()=>o=!1)),l.$set(d)},i(f){r||(E(l.$$.fragment,f),r=!0)},o(f){I(l.$$.fragment,f),r=!1},d(f){f&&S(e),f&&S(s),H(l,f)}}}function sD(n){let e,t,i;return{c(){e=v("button"),e.innerHTML=` + `,y=z("."),p(e,"for",i=n[31]),p(f,"class","label label-sm link-primary txt-mono"),p(d,"class","label label-sm link-primary txt-mono"),p(m,"class","label label-sm link-primary txt-mono"),p(g,"class","label label-sm link-primary txt-mono"),p(g,"title","Required parameter"),p(a,"class","help-block")},m(A,P){$(A,e,P),_(e,t),$(A,s,P),T[l].m(A,P),$(A,r,P),$(A,a,P),_(a,u),_(a,f),_(a,c),_(a,d),_(a,h),_(a,m),_(a,b),_(a,g),_(a,y),k=!0,w||(C=[W(f,"click",n[22]),W(d,"click",n[23]),W(m,"click",n[24]),W(g,"click",n[25])],w=!0)},p(A,P){(!k||P[1]&1&&i!==(i=A[31]))&&p(e,"for",i);let L=l;l=D(A),l===L?T[l].p(A,P):(be(),I(T[L],1,1,()=>{T[L]=null}),ve(),o=T[l],o?o.p(A,P):(o=T[l]=M[l](A),o.c()),E(o,1),o.m(r.parentNode,r))},i(A){k||(E(o),k=!0)},o(A){I(o),k=!1},d(A){A&&S(e),A&&S(s),T[l].d(A),A&&S(r),A&&S(a),w=!1,Re(C)}}}function FO(n){let e,t,i,s,l,o;return e=new _e({props:{class:"form-field required",name:n[1]+".subject",$$slots:{default:[AO,({uniqueId:r})=>({31:r}),({uniqueId:r})=>[0,r?1:0]]},$$scope:{ctx:n}}}),i=new _e({props:{class:"form-field required",name:n[1]+".actionUrl",$$slots:{default:[IO,({uniqueId:r})=>({31:r}),({uniqueId:r})=>[0,r?1:0]]},$$scope:{ctx:n}}}),l=new _e({props:{class:"form-field m-0 required",name:n[1]+".body",$$slots:{default:[NO,({uniqueId:r})=>({31:r}),({uniqueId:r})=>[0,r?1:0]]},$$scope:{ctx:n}}}),{c(){j(e.$$.fragment),t=O(),j(i.$$.fragment),s=O(),j(l.$$.fragment)},m(r,a){R(e,r,a),$(r,t,a),R(i,r,a),$(r,s,a),R(l,r,a),o=!0},p(r,a){const u={};a[0]&2&&(u.name=r[1]+".subject"),a[0]&1|a[1]&3&&(u.$$scope={dirty:a,ctx:r}),e.$set(u);const f={};a[0]&2&&(f.name=r[1]+".actionUrl"),a[0]&1|a[1]&3&&(f.$$scope={dirty:a,ctx:r}),i.$set(f);const c={};a[0]&2&&(c.name=r[1]+".body"),a[0]&49|a[1]&3&&(c.$$scope={dirty:a,ctx:r}),l.$set(c)},i(r){o||(E(e.$$.fragment,r),E(i.$$.fragment,r),E(l.$$.fragment,r),o=!0)},o(r){I(e.$$.fragment,r),I(i.$$.fragment,r),I(l.$$.fragment,r),o=!1},d(r){H(e,r),r&&S(t),H(i,r),r&&S(s),H(l,r)}}}function Jp(n){let e,t,i,s,l;return{c(){e=v("i"),p(e,"class","ri-error-warning-fill txt-danger")},m(o,r){$(o,e,r),i=!0,s||(l=Le(Be.call(null,e,{text:"Has errors",position:"left"})),s=!0)},i(o){i||(Qe(()=>{t||(t=je(e,$t,{duration:150,start:.7},!0)),t.run(1)}),i=!0)},o(o){t||(t=je(e,$t,{duration:150,start:.7},!1)),t.run(0),i=!1},d(o){o&&S(e),o&&t&&t.end(),s=!1,l()}}}function RO(n){let e,t,i,s,l,o,r,a,u,f,c=n[6]&&Jp();return{c(){e=v("div"),t=v("i"),i=O(),s=v("span"),l=z(n[2]),o=O(),r=v("div"),a=O(),c&&c.c(),u=Fe(),p(t,"class","ri-draft-line"),p(s,"class","txt"),p(e,"class","inline-flex"),p(r,"class","flex-fill")},m(d,h){$(d,e,h),_(e,t),_(e,i),_(e,s),_(s,l),$(d,o,h),$(d,r,h),$(d,a,h),c&&c.m(d,h),$(d,u,h),f=!0},p(d,h){(!f||h[0]&4)&&ue(l,d[2]),d[6]?c?h[0]&64&&E(c,1):(c=Jp(),c.c(),E(c,1),c.m(u.parentNode,u)):c&&(be(),I(c,1,1,()=>{c=null}),ve())},i(d){f||(E(c),f=!0)},o(d){I(c),f=!1},d(d){d&&S(e),d&&S(o),d&&S(r),d&&S(a),c&&c.d(d),d&&S(u)}}}function HO(n){let e,t;const i=[n[8]];let s={$$slots:{header:[RO],default:[FO]},$$scope:{ctx:n}};for(let l=0;lt(12,o=J));let{key:r}=e,{title:a}=e,{config:u={}}=e,f,c=Zp,d=!1;function h(){f==null||f.expand()}function m(){f==null||f.collapse()}function b(){f==null||f.collapseSiblings()}async function g(){c||d||(t(5,d=!0),t(4,c=(await st(()=>import("./CodeEditor.244d40d4.js"),["./CodeEditor.244d40d4.js","./index.9c8b95cd.js"],import.meta.url)).default),Zp=c,t(5,d=!1))}function y(J){B.copyToClipboard(J),bg(`Copied ${J} to clipboard`,2e3)}g();function k(){u.subject=this.value,t(0,u)}const w=()=>y("{APP_NAME}"),C=()=>y("{APP_URL}");function M(){u.actionUrl=this.value,t(0,u)}const T=()=>y("{APP_NAME}"),D=()=>y("{APP_URL}"),A=()=>y("{TOKEN}");function P(J){n.$$.not_equal(u.body,J)&&(u.body=J,t(0,u))}function L(){u.body=this.value,t(0,u)}const V=()=>y("{APP_NAME}"),F=()=>y("{APP_URL}"),U=()=>y("{TOKEN}"),G=()=>y("{ACTION_URL}");function K(J){le[J?"unshift":"push"](()=>{f=J,t(3,f)})}function X(J){Ve.call(this,n,J)}function Z(J){Ve.call(this,n,J)}function ie(J){Ve.call(this,n,J)}return n.$$set=J=>{e=Ye(Ye({},e),Wn(J)),t(8,l=wt(e,s)),"key"in J&&t(1,r=J.key),"title"in J&&t(2,a=J.title),"config"in J&&t(0,u=J.config)},n.$$.update=()=>{n.$$.dirty[0]&4098&&t(6,i=!B.isEmpty(B.getNestedVal(o,r))),n.$$.dirty[0]&3&&(u.enabled||al(r))},[u,r,a,f,c,d,i,y,l,h,m,b,o,k,w,C,M,T,D,A,P,L,V,F,U,G,K,X,Z,ie]}class $r extends Ce{constructor(e){super(),$e(this,e,jO,HO,ke,{key:1,title:2,config:0,expand:9,collapse:10,collapseSiblings:11},null,[-1,-1])}get expand(){return this.$$.ctx[9]}get collapse(){return this.$$.ctx[10]}get collapseSiblings(){return this.$$.ctx[11]}}function Gp(n,e,t){const i=n.slice();return i[22]=e[t],i}function Xp(n,e){let t,i,s,l,o,r=e[22].label+"",a,u,f,c,d;return{key:n,first:null,c(){t=v("div"),i=v("input"),l=O(),o=v("label"),a=z(r),f=O(),p(i,"type","radio"),p(i,"name","template"),p(i,"id",s=e[21]+e[22].value),i.__value=e[22].value,i.value=i.__value,e[12][0].push(i),p(o,"for",u=e[21]+e[22].value),p(t,"class","form-field-block"),this.first=t},m(h,m){$(h,t,m),_(t,i),i.checked=i.__value===e[2],_(t,l),_(t,o),_(o,a),_(t,f),c||(d=W(i,"change",e[11]),c=!0)},p(h,m){e=h,m&2097152&&s!==(s=e[21]+e[22].value)&&p(i,"id",s),m&4&&(i.checked=i.__value===e[2]),m&2097152&&u!==(u=e[21]+e[22].value)&&p(o,"for",u)},d(h){h&&S(t),e[12][0].splice(e[12][0].indexOf(i),1),c=!1,d()}}}function qO(n){let e=[],t=new Map,i,s=n[7];const l=o=>o[22].value;for(let o=0;o({21:a}),({uniqueId:a})=>a?2097152:0]},$$scope:{ctx:n}}}),s=new _e({props:{class:"form-field required m-0",name:"email",$$slots:{default:[VO,({uniqueId:a})=>({21:a}),({uniqueId:a})=>a?2097152:0]},$$scope:{ctx:n}}}),{c(){e=v("form"),j(t.$$.fragment),i=O(),j(s.$$.fragment),p(e,"id",n[6]),p(e,"autocomplete","off")},m(a,u){$(a,e,u),R(t,e,null),_(e,i),R(s,e,null),l=!0,o||(r=W(e,"submit",ut(n[14])),o=!0)},p(a,u){const f={};u&35651588&&(f.$$scope={dirty:u,ctx:a}),t.$set(f);const c={};u&35651586&&(c.$$scope={dirty:u,ctx:a}),s.$set(c)},i(a){l||(E(t.$$.fragment,a),E(s.$$.fragment,a),l=!0)},o(a){I(t.$$.fragment,a),I(s.$$.fragment,a),l=!1},d(a){a&&S(e),H(t),H(s),o=!1,r()}}}function BO(n){let e;return{c(){e=v("h4"),e.textContent="Send test email",p(e,"class","center txt-break")},m(t,i){$(t,e,i)},p:x,d(t){t&&S(e)}}}function UO(n){let e,t,i,s,l,o,r,a,u,f;return{c(){e=v("button"),t=z("Close"),i=O(),s=v("button"),l=v("i"),o=O(),r=v("span"),r.textContent="Send",p(e,"type","button"),p(e,"class","btn btn-secondary"),e.disabled=n[4],p(l,"class","ri-mail-send-line"),p(r,"class","txt"),p(s,"type","submit"),p(s,"form",n[6]),p(s,"class","btn btn-expanded"),s.disabled=a=!n[5]||n[4],ee(s,"btn-loading",n[4])},m(c,d){$(c,e,d),_(e,t),$(c,i,d),$(c,s,d),_(s,l),_(s,o),_(s,r),u||(f=[W(e,"click",n[0]),W(s,"click",n[10])],u=!0)},p(c,d){d&16&&(e.disabled=c[4]),d&48&&a!==(a=!c[5]||c[4])&&(s.disabled=a),d&16&&ee(s,"btn-loading",c[4])},d(c){c&&S(e),c&&S(i),c&&S(s),u=!1,Re(f)}}}function WO(n){let e,t,i={class:"overlay-panel-sm email-test-popup",overlayClose:!n[4],escClose:!n[4],beforeHide:n[15],popup:!0,$$slots:{footer:[UO],header:[BO],default:[zO]},$$scope:{ctx:n}};return e=new Jn({props:i}),n[16](e),e.$on("show",n[17]),e.$on("hide",n[18]),{c(){j(e.$$.fragment)},m(s,l){R(e,s,l),t=!0},p(s,[l]){const o={};l&16&&(o.overlayClose=!s[4]),l&16&&(o.escClose=!s[4]),l&16&&(o.beforeHide=s[15]),l&33554486&&(o.$$scope={dirty:l,ctx:s}),e.$set(o)},i(s){t||(E(e.$$.fragment,s),t=!0)},o(s){I(e.$$.fragment,s),t=!1},d(s){n[16](null),H(e,s)}}}const Cr="last_email_test",Qp="email_test_request";function YO(n,e,t){let i;const s=It(),l="email_test_"+B.randomString(5),o=[{label:'"Verification" template',value:"verification"},{label:'"Password reset" template',value:"password-reset"},{label:'"Confirm email change" template',value:"email-change"}];let r,a=localStorage.getItem(Cr),u=o[0].value,f=!1,c=null;function d(A="",P=""){t(1,a=A||localStorage.getItem(Cr)),t(2,u=P||o[0].value),Fn({}),r==null||r.show()}function h(){return clearTimeout(c),r==null?void 0:r.hide()}async function m(){if(!(!i||f)){t(4,f=!0),localStorage==null||localStorage.setItem(Cr,a),clearTimeout(c),c=setTimeout(()=>{me.cancelRequest(Qp),rl("Test email send timeout.")},3e4);try{await me.settings.testEmail(a,u,{$cancelKey:Qp}),Lt("Successfully sent test email."),s("submit"),t(4,f=!1),await $n(),h()}catch(A){t(4,f=!1),me.errorResponseHandler(A)}clearTimeout(c)}}const b=[[]],g=()=>m();function y(){u=this.__value,t(2,u)}function k(){a=this.value,t(1,a)}const w=()=>m(),C=()=>!f;function M(A){le[A?"unshift":"push"](()=>{r=A,t(3,r)})}function T(A){Ve.call(this,n,A)}function D(A){Ve.call(this,n,A)}return n.$$.update=()=>{n.$$.dirty&6&&t(5,i=!!a&&!!u)},[h,a,u,r,f,i,l,o,m,d,g,y,b,k,w,C,M,T,D]}class KO extends Ce{constructor(e){super(),$e(this,e,YO,WO,ke,{show:9,hide:0})}get show(){return this.$$.ctx[9]}get hide(){return this.$$.ctx[0]}}function JO(n){let e,t,i,s,l,o,r,a,u,f,c,d,h,m,b,g,y,k,w,C,M,T,D,A,P,L;i=new _e({props:{class:"form-field required",name:"meta.senderName",$$slots:{default:[GO,({uniqueId:Y})=>({29:Y}),({uniqueId:Y})=>Y?536870912:0]},$$scope:{ctx:n}}}),o=new _e({props:{class:"form-field required",name:"meta.senderAddress",$$slots:{default:[XO,({uniqueId:Y})=>({29:Y}),({uniqueId:Y})=>Y?536870912:0]},$$scope:{ctx:n}}});function V(Y){n[13](Y)}let F={single:!0,key:"meta.verificationTemplate",title:'Default "Verification" email template'};n[0].meta.verificationTemplate!==void 0&&(F.config=n[0].meta.verificationTemplate),u=new $r({props:F}),le.push(()=>ye(u,"config",V));function U(Y){n[14](Y)}let G={single:!0,key:"meta.resetPasswordTemplate",title:'Default "Password reset" email template'};n[0].meta.resetPasswordTemplate!==void 0&&(G.config=n[0].meta.resetPasswordTemplate),d=new $r({props:G}),le.push(()=>ye(d,"config",U));function K(Y){n[15](Y)}let X={single:!0,key:"meta.confirmEmailChangeTemplate",title:'Default "Confirm email change" email template'};n[0].meta.confirmEmailChangeTemplate!==void 0&&(X.config=n[0].meta.confirmEmailChangeTemplate),b=new $r({props:X}),le.push(()=>ye(b,"config",K)),C=new _e({props:{class:"form-field form-field-toggle m-b-sm",$$slots:{default:[QO,({uniqueId:Y})=>({29:Y}),({uniqueId:Y})=>Y?536870912:0]},$$scope:{ctx:n}}});let Z=n[0].smtp.enabled&&xp(n);function ie(Y,re){return Y[4]?lD:sD}let J=ie(n),fe=J(n);return{c(){e=v("div"),t=v("div"),j(i.$$.fragment),s=O(),l=v("div"),j(o.$$.fragment),r=O(),a=v("div"),j(u.$$.fragment),c=O(),j(d.$$.fragment),m=O(),j(b.$$.fragment),y=O(),k=v("hr"),w=O(),j(C.$$.fragment),M=O(),Z&&Z.c(),T=O(),D=v("div"),A=v("div"),P=O(),fe.c(),p(t,"class","col-lg-6"),p(l,"class","col-lg-6"),p(e,"class","grid m-b-base"),p(a,"class","accordions"),p(A,"class","flex-fill"),p(D,"class","flex")},m(Y,re){$(Y,e,re),_(e,t),R(i,t,null),_(e,s),_(e,l),R(o,l,null),$(Y,r,re),$(Y,a,re),R(u,a,null),_(a,c),R(d,a,null),_(a,m),R(b,a,null),$(Y,y,re),$(Y,k,re),$(Y,w,re),R(C,Y,re),$(Y,M,re),Z&&Z.m(Y,re),$(Y,T,re),$(Y,D,re),_(D,A),_(D,P),fe.m(D,null),L=!0},p(Y,re){const Oe={};re&1610612737&&(Oe.$$scope={dirty:re,ctx:Y}),i.$set(Oe);const ge={};re&1610612737&&(ge.$$scope={dirty:re,ctx:Y}),o.$set(ge);const ae={};!f&&re&1&&(f=!0,ae.config=Y[0].meta.verificationTemplate,Me(()=>f=!1)),u.$set(ae);const he={};!h&&re&1&&(h=!0,he.config=Y[0].meta.resetPasswordTemplate,Me(()=>h=!1)),d.$set(he);const de={};!g&&re&1&&(g=!0,de.config=Y[0].meta.confirmEmailChangeTemplate,Me(()=>g=!1)),b.$set(de);const Se={};re&1610612737&&(Se.$$scope={dirty:re,ctx:Y}),C.$set(Se),Y[0].smtp.enabled?Z?(Z.p(Y,re),re&1&&E(Z,1)):(Z=xp(Y),Z.c(),E(Z,1),Z.m(T.parentNode,T)):Z&&(be(),I(Z,1,1,()=>{Z=null}),ve()),J===(J=ie(Y))&&fe?fe.p(Y,re):(fe.d(1),fe=J(Y),fe&&(fe.c(),fe.m(D,null)))},i(Y){L||(E(i.$$.fragment,Y),E(o.$$.fragment,Y),E(u.$$.fragment,Y),E(d.$$.fragment,Y),E(b.$$.fragment,Y),E(C.$$.fragment,Y),E(Z),L=!0)},o(Y){I(i.$$.fragment,Y),I(o.$$.fragment,Y),I(u.$$.fragment,Y),I(d.$$.fragment,Y),I(b.$$.fragment,Y),I(C.$$.fragment,Y),I(Z),L=!1},d(Y){Y&&S(e),H(i),H(o),Y&&S(r),Y&&S(a),H(u),H(d),H(b),Y&&S(y),Y&&S(k),Y&&S(w),H(C,Y),Y&&S(M),Z&&Z.d(Y),Y&&S(T),Y&&S(D),fe.d()}}}function ZO(n){let e;return{c(){e=v("div"),p(e,"class","loader")},m(t,i){$(t,e,i)},p:x,i:x,o:x,d(t){t&&S(e)}}}function GO(n){let e,t,i,s,l,o,r,a;return{c(){e=v("label"),t=z("Sender name"),s=O(),l=v("input"),p(e,"for",i=n[29]),p(l,"type","text"),p(l,"id",o=n[29]),l.required=!0},m(u,f){$(u,e,f),_(e,t),$(u,s,f),$(u,l,f),pe(l,n[0].meta.senderName),r||(a=W(l,"input",n[11]),r=!0)},p(u,f){f&536870912&&i!==(i=u[29])&&p(e,"for",i),f&536870912&&o!==(o=u[29])&&p(l,"id",o),f&1&&l.value!==u[0].meta.senderName&&pe(l,u[0].meta.senderName)},d(u){u&&S(e),u&&S(s),u&&S(l),r=!1,a()}}}function XO(n){let e,t,i,s,l,o,r,a;return{c(){e=v("label"),t=z("Sender address"),s=O(),l=v("input"),p(e,"for",i=n[29]),p(l,"type","email"),p(l,"id",o=n[29]),l.required=!0},m(u,f){$(u,e,f),_(e,t),$(u,s,f),$(u,l,f),pe(l,n[0].meta.senderAddress),r||(a=W(l,"input",n[12]),r=!0)},p(u,f){f&536870912&&i!==(i=u[29])&&p(e,"for",i),f&536870912&&o!==(o=u[29])&&p(l,"id",o),f&1&&l.value!==u[0].meta.senderAddress&&pe(l,u[0].meta.senderAddress)},d(u){u&&S(e),u&&S(s),u&&S(l),r=!1,a()}}}function QO(n){let e,t,i,s,l,o,r,a,u,f;return{c(){e=v("input"),i=O(),s=v("label"),l=v("span"),l.innerHTML="Use SMTP mail server (recommended)",o=O(),r=v("i"),p(e,"type","checkbox"),p(e,"id",t=n[29]),e.required=!0,p(l,"class","txt"),p(r,"class","ri-information-line link-hint"),p(s,"for",a=n[29])},m(c,d){$(c,e,d),e.checked=n[0].smtp.enabled,$(c,i,d),$(c,s,d),_(s,l),_(s,o),_(s,r),u||(f=[W(e,"change",n[16]),Le(Be.call(null,r,{text:'By default PocketBase uses the unix "sendmail" command for sending emails. For better emails deliverability it is recommended to use a SMTP mail server.',position:"top"}))],u=!0)},p(c,d){d&536870912&&t!==(t=c[29])&&p(e,"id",t),d&1&&(e.checked=c[0].smtp.enabled),d&536870912&&a!==(a=c[29])&&p(s,"for",a)},d(c){c&&S(e),c&&S(i),c&&S(s),u=!1,Re(f)}}}function xp(n){let e,t,i,s,l,o,r,a,u,f,c,d,h,m,b,g,y,k,w;return i=new _e({props:{class:"form-field required",name:"smtp.host",$$slots:{default:[xO,({uniqueId:C})=>({29:C}),({uniqueId:C})=>C?536870912:0]},$$scope:{ctx:n}}}),o=new _e({props:{class:"form-field required",name:"smtp.port",$$slots:{default:[eD,({uniqueId:C})=>({29:C}),({uniqueId:C})=>C?536870912:0]},$$scope:{ctx:n}}}),u=new _e({props:{class:"form-field required",name:"smtp.tls",$$slots:{default:[tD,({uniqueId:C})=>({29:C}),({uniqueId:C})=>C?536870912:0]},$$scope:{ctx:n}}}),d=new _e({props:{class:"form-field",name:"smtp.username",$$slots:{default:[nD,({uniqueId:C})=>({29:C}),({uniqueId:C})=>C?536870912:0]},$$scope:{ctx:n}}}),b=new _e({props:{class:"form-field",name:"smtp.password",$$slots:{default:[iD,({uniqueId:C})=>({29:C}),({uniqueId:C})=>C?536870912:0]},$$scope:{ctx:n}}}),{c(){e=v("div"),t=v("div"),j(i.$$.fragment),s=O(),l=v("div"),j(o.$$.fragment),r=O(),a=v("div"),j(u.$$.fragment),f=O(),c=v("div"),j(d.$$.fragment),h=O(),m=v("div"),j(b.$$.fragment),g=O(),y=v("div"),p(t,"class","col-lg-6"),p(l,"class","col-lg-3"),p(a,"class","col-lg-3"),p(c,"class","col-lg-6"),p(m,"class","col-lg-6"),p(y,"class","col-lg-12"),p(e,"class","grid")},m(C,M){$(C,e,M),_(e,t),R(i,t,null),_(e,s),_(e,l),R(o,l,null),_(e,r),_(e,a),R(u,a,null),_(e,f),_(e,c),R(d,c,null),_(e,h),_(e,m),R(b,m,null),_(e,g),_(e,y),w=!0},p(C,M){const T={};M&1610612737&&(T.$$scope={dirty:M,ctx:C}),i.$set(T);const D={};M&1610612737&&(D.$$scope={dirty:M,ctx:C}),o.$set(D);const A={};M&1610612737&&(A.$$scope={dirty:M,ctx:C}),u.$set(A);const P={};M&1610612737&&(P.$$scope={dirty:M,ctx:C}),d.$set(P);const L={};M&1610612737&&(L.$$scope={dirty:M,ctx:C}),b.$set(L)},i(C){w||(E(i.$$.fragment,C),E(o.$$.fragment,C),E(u.$$.fragment,C),E(d.$$.fragment,C),E(b.$$.fragment,C),C&&Qe(()=>{k||(k=je(e,St,{duration:150},!0)),k.run(1)}),w=!0)},o(C){I(i.$$.fragment,C),I(o.$$.fragment,C),I(u.$$.fragment,C),I(d.$$.fragment,C),I(b.$$.fragment,C),C&&(k||(k=je(e,St,{duration:150},!1)),k.run(0)),w=!1},d(C){C&&S(e),H(i),H(o),H(u),H(d),H(b),C&&k&&k.end()}}}function xO(n){let e,t,i,s,l,o,r,a;return{c(){e=v("label"),t=z("SMTP server host"),s=O(),l=v("input"),p(e,"for",i=n[29]),p(l,"type","text"),p(l,"id",o=n[29]),l.required=!0},m(u,f){$(u,e,f),_(e,t),$(u,s,f),$(u,l,f),pe(l,n[0].smtp.host),r||(a=W(l,"input",n[17]),r=!0)},p(u,f){f&536870912&&i!==(i=u[29])&&p(e,"for",i),f&536870912&&o!==(o=u[29])&&p(l,"id",o),f&1&&l.value!==u[0].smtp.host&&pe(l,u[0].smtp.host)},d(u){u&&S(e),u&&S(s),u&&S(l),r=!1,a()}}}function eD(n){let e,t,i,s,l,o,r,a;return{c(){e=v("label"),t=z("Port"),s=O(),l=v("input"),p(e,"for",i=n[29]),p(l,"type","number"),p(l,"id",o=n[29]),l.required=!0},m(u,f){$(u,e,f),_(e,t),$(u,s,f),$(u,l,f),pe(l,n[0].smtp.port),r||(a=W(l,"input",n[18]),r=!0)},p(u,f){f&536870912&&i!==(i=u[29])&&p(e,"for",i),f&536870912&&o!==(o=u[29])&&p(l,"id",o),f&1&&rt(l.value)!==u[0].smtp.port&&pe(l,u[0].smtp.port)},d(u){u&&S(e),u&&S(s),u&&S(l),r=!1,a()}}}function tD(n){let e,t,i,s,l,o,r;function a(f){n[19](f)}let u={id:n[29],items:n[6]};return n[0].smtp.tls!==void 0&&(u.keyOfSelected=n[0].smtp.tls),l=new Es({props:u}),le.push(()=>ye(l,"keyOfSelected",a)),{c(){e=v("label"),t=z("TLS Encryption"),s=O(),j(l.$$.fragment),p(e,"for",i=n[29])},m(f,c){$(f,e,c),_(e,t),$(f,s,c),R(l,f,c),r=!0},p(f,c){(!r||c&536870912&&i!==(i=f[29]))&&p(e,"for",i);const d={};c&536870912&&(d.id=f[29]),!o&&c&1&&(o=!0,d.keyOfSelected=f[0].smtp.tls,Me(()=>o=!1)),l.$set(d)},i(f){r||(E(l.$$.fragment,f),r=!0)},o(f){I(l.$$.fragment,f),r=!1},d(f){f&&S(e),f&&S(s),H(l,f)}}}function nD(n){let e,t,i,s,l,o,r,a;return{c(){e=v("label"),t=z("Username"),s=O(),l=v("input"),p(e,"for",i=n[29]),p(l,"type","text"),p(l,"id",o=n[29])},m(u,f){$(u,e,f),_(e,t),$(u,s,f),$(u,l,f),pe(l,n[0].smtp.username),r||(a=W(l,"input",n[20]),r=!0)},p(u,f){f&536870912&&i!==(i=u[29])&&p(e,"for",i),f&536870912&&o!==(o=u[29])&&p(l,"id",o),f&1&&l.value!==u[0].smtp.username&&pe(l,u[0].smtp.username)},d(u){u&&S(e),u&&S(s),u&&S(l),r=!1,a()}}}function iD(n){let e,t,i,s,l,o,r;function a(f){n[21](f)}let u={id:n[29]};return n[0].smtp.password!==void 0&&(u.value=n[0].smtp.password),l=new Ga({props:u}),le.push(()=>ye(l,"value",a)),{c(){e=v("label"),t=z("Password"),s=O(),j(l.$$.fragment),p(e,"for",i=n[29])},m(f,c){$(f,e,c),_(e,t),$(f,s,c),R(l,f,c),r=!0},p(f,c){(!r||c&536870912&&i!==(i=f[29]))&&p(e,"for",i);const d={};c&536870912&&(d.id=f[29]),!o&&c&1&&(o=!0,d.value=f[0].smtp.password,Me(()=>o=!1)),l.$set(d)},i(f){r||(E(l.$$.fragment,f),r=!0)},o(f){I(l.$$.fragment,f),r=!1},d(f){f&&S(e),f&&S(s),H(l,f)}}}function sD(n){let e,t,i;return{c(){e=v("button"),e.innerHTML=` Send test email`,p(e,"type","button"),p(e,"class","btn btn-expanded btn-outline")},m(s,l){$(s,e,l),t||(i=W(e,"click",n[24]),t=!0)},p:x,d(s){s&&S(e),t=!1,i()}}}function lD(n){let e,t,i,s,l,o,r,a;return{c(){e=v("button"),t=v("span"),t.textContent="Cancel",i=O(),s=v("button"),l=v("span"),l.textContent="Save changes",p(t,"class","txt"),p(e,"type","button"),p(e,"class","btn btn-secondary btn-hint"),e.disabled=n[3],p(l,"class","txt"),p(s,"type","submit"),p(s,"class","btn btn-expanded"),s.disabled=o=!n[4]||n[3],ee(s,"btn-loading",n[3])},m(u,f){$(u,e,f),_(e,t),$(u,i,f),$(u,s,f),_(s,l),r||(a=[W(e,"click",n[22]),W(s,"click",n[23])],r=!0)},p(u,f){f&8&&(e.disabled=u[3]),f&24&&o!==(o=!u[4]||u[3])&&(s.disabled=o),f&8&&ee(s,"btn-loading",u[3])},d(u){u&&S(e),u&&S(i),u&&S(s),r=!1,Re(a)}}}function oD(n){let e,t,i,s,l,o,r,a,u,f,c,d,h,m,b,g;const y=[ZO,JO],k=[];function w(C,M){return C[2]?0:1}return d=w(n),h=k[d]=y[d](n),{c(){e=v("header"),t=v("nav"),i=v("div"),i.textContent="Settings",s=O(),l=v("div"),o=z(n[5]),r=O(),a=v("div"),u=v("form"),f=v("div"),f.innerHTML="

Configure common settings for sending emails.

",c=O(),h.c(),p(i,"class","breadcrumb-item"),p(l,"class","breadcrumb-item"),p(t,"class","breadcrumbs"),p(e,"class","page-header"),p(f,"class","content txt-xl m-b-base"),p(u,"class","panel"),p(u,"autocomplete","off"),p(a,"class","wrapper")},m(C,M){$(C,e,M),_(e,t),_(t,i),_(t,s),_(t,l),_(l,o),$(C,r,M),$(C,a,M),_(a,u),_(u,f),_(u,c),k[d].m(u,null),m=!0,b||(g=W(u,"submit",ut(n[25])),b=!0)},p(C,M){(!m||M&32)&&ue(o,C[5]);let T=d;d=w(C),d===T?k[d].p(C,M):(be(),I(k[T],1,1,()=>{k[T]=null}),ve(),h=k[d],h?h.p(C,M):(h=k[d]=y[d](C),h.c()),E(h,1),h.m(u,null))},i(C){m||(E(h),m=!0)},o(C){I(h),m=!1},d(C){C&&S(e),C&&S(r),C&&S(a),k[d].d(),b=!1,g()}}}function rD(n){let e,t,i,s,l,o;e=new Ci({}),i=new cn({props:{$$slots:{default:[oD]},$$scope:{ctx:n}}});let r={};return l=new KO({props:r}),n[26](l),{c(){j(e.$$.fragment),t=O(),j(i.$$.fragment),s=O(),j(l.$$.fragment)},m(a,u){R(e,a,u),$(a,t,u),R(i,a,u),$(a,s,u),R(l,a,u),o=!0},p(a,[u]){const f={};u&1073741887&&(f.$$scope={dirty:u,ctx:a}),i.$set(f);const c={};l.$set(c)},i(a){o||(E(e.$$.fragment,a),E(i.$$.fragment,a),E(l.$$.fragment,a),o=!0)},o(a){I(e.$$.fragment,a),I(i.$$.fragment,a),I(l.$$.fragment,a),o=!1},d(a){H(e,a),a&&S(t),H(i,a),a&&S(s),n[26](null),H(l,a)}}}function aD(n,e,t){let i,s,l;Je(n,mt,X=>t(5,l=X));const o=[{label:"Auto (StartTLS)",value:!1},{label:"Always",value:!0}];Ht(mt,l="Mail settings",l);let r,a={},u={},f=!1,c=!1;d();async function d(){t(2,f=!0);try{const X=await me.settings.getAll()||{};m(X)}catch(X){me.errorResponseHandler(X)}t(2,f=!1)}async function h(){if(!(c||!s)){t(3,c=!0);try{const X=await me.settings.update(B.filterRedactedProps(u));m(X),Fn({}),Lt("Successfully saved mail settings.")}catch(X){me.errorResponseHandler(X)}t(3,c=!1)}}function m(X={}){t(0,u={meta:(X==null?void 0:X.meta)||{},smtp:(X==null?void 0:X.smtp)||{}}),t(9,a=JSON.parse(JSON.stringify(u)))}function b(){t(0,u=JSON.parse(JSON.stringify(a||{})))}function g(){u.meta.senderName=this.value,t(0,u)}function y(){u.meta.senderAddress=this.value,t(0,u)}function k(X){n.$$.not_equal(u.meta.verificationTemplate,X)&&(u.meta.verificationTemplate=X,t(0,u))}function w(X){n.$$.not_equal(u.meta.resetPasswordTemplate,X)&&(u.meta.resetPasswordTemplate=X,t(0,u))}function C(X){n.$$.not_equal(u.meta.confirmEmailChangeTemplate,X)&&(u.meta.confirmEmailChangeTemplate=X,t(0,u))}function M(){u.smtp.enabled=this.checked,t(0,u)}function T(){u.smtp.host=this.value,t(0,u)}function D(){u.smtp.port=rt(this.value),t(0,u)}function A(X){n.$$.not_equal(u.smtp.tls,X)&&(u.smtp.tls=X,t(0,u))}function P(){u.smtp.username=this.value,t(0,u)}function L(X){n.$$.not_equal(u.smtp.password,X)&&(u.smtp.password=X,t(0,u))}const V=()=>b(),F=()=>h(),U=()=>r==null?void 0:r.show(),G=()=>h();function K(X){le[X?"unshift":"push"](()=>{r=X,t(1,r)})}return n.$$.update=()=>{n.$$.dirty&512&&t(10,i=JSON.stringify(a)),n.$$.dirty&1025&&t(4,s=i!=JSON.stringify(u))},[u,r,f,c,s,l,o,h,b,a,i,g,y,k,w,C,M,T,D,A,P,L,V,F,U,G,K]}class uD extends Ce{constructor(e){super(),$e(this,e,aD,rD,ke,{})}}function fD(n){var C,M;let e,t,i,s,l,o,r,a,u,f,c,d,h,m,b;e=new _e({props:{class:"form-field form-field-toggle",$$slots:{default:[dD,({uniqueId:T})=>({25:T}),({uniqueId:T})=>T?33554432:0]},$$scope:{ctx:n}}});let g=((C=n[0].s3)==null?void 0:C.enabled)!=n[1].s3.enabled&&eh(n),y=n[1].s3.enabled&&th(n),k=((M=n[1].s3)==null?void 0:M.enabled)&&!n[6]&&!n[3]&&nh(n),w=n[6]&&ih(n);return{c(){j(e.$$.fragment),t=O(),g&&g.c(),i=O(),y&&y.c(),s=O(),l=v("div"),o=v("div"),r=O(),k&&k.c(),a=O(),w&&w.c(),u=O(),f=v("button"),c=v("span"),c.textContent="Save changes",p(o,"class","flex-fill"),p(c,"class","txt"),p(f,"type","submit"),p(f,"class","btn btn-expanded"),f.disabled=d=!n[6]||n[3],ee(f,"btn-loading",n[3]),p(l,"class","flex")},m(T,D){R(e,T,D),$(T,t,D),g&&g.m(T,D),$(T,i,D),y&&y.m(T,D),$(T,s,D),$(T,l,D),_(l,o),_(l,r),k&&k.m(l,null),_(l,a),w&&w.m(l,null),_(l,u),_(l,f),_(f,c),h=!0,m||(b=W(f,"click",n[19]),m=!0)},p(T,D){var P,L;const A={};D&100663298&&(A.$$scope={dirty:D,ctx:T}),e.$set(A),((P=T[0].s3)==null?void 0:P.enabled)!=T[1].s3.enabled?g?(g.p(T,D),D&3&&E(g,1)):(g=eh(T),g.c(),E(g,1),g.m(i.parentNode,i)):g&&(be(),I(g,1,1,()=>{g=null}),ve()),T[1].s3.enabled?y?(y.p(T,D),D&2&&E(y,1)):(y=th(T),y.c(),E(y,1),y.m(s.parentNode,s)):y&&(be(),I(y,1,1,()=>{y=null}),ve()),((L=T[1].s3)==null?void 0:L.enabled)&&!T[6]&&!T[3]?k?k.p(T,D):(k=nh(T),k.c(),k.m(l,a)):k&&(k.d(1),k=null),T[6]?w?w.p(T,D):(w=ih(T),w.c(),w.m(l,u)):w&&(w.d(1),w=null),(!h||D&72&&d!==(d=!T[6]||T[3]))&&(f.disabled=d),(!h||D&8)&&ee(f,"btn-loading",T[3])},i(T){h||(E(e.$$.fragment,T),E(g),E(y),h=!0)},o(T){I(e.$$.fragment,T),I(g),I(y),h=!1},d(T){H(e,T),T&&S(t),g&&g.d(T),T&&S(i),y&&y.d(T),T&&S(s),T&&S(l),k&&k.d(),w&&w.d(),m=!1,b()}}}function cD(n){let e;return{c(){e=v("div"),p(e,"class","loader")},m(t,i){$(t,e,i)},p:x,i:x,o:x,d(t){t&&S(e)}}}function dD(n){let e,t,i,s,l,o,r,a;return{c(){e=v("input"),i=O(),s=v("label"),l=z("Use S3 storage"),p(e,"type","checkbox"),p(e,"id",t=n[25]),e.required=!0,p(s,"for",o=n[25])},m(u,f){$(u,e,f),e.checked=n[1].s3.enabled,$(u,i,f),$(u,s,f),_(s,l),r||(a=W(e,"change",n[11]),r=!0)},p(u,f){f&33554432&&t!==(t=u[25])&&p(e,"id",t),f&2&&(e.checked=u[1].s3.enabled),f&33554432&&o!==(o=u[25])&&p(s,"for",o)},d(u){u&&S(e),u&&S(i),u&&S(s),r=!1,a()}}}function eh(n){var P;let e,t,i,s,l,o,r,a=(P=n[0].s3)!=null&&P.enabled?"S3 storage":"local file system",u,f,c,d=n[1].s3.enabled?"S3 storage":"local file system",h,m,b,g,y,k,w,C,M,T,D,A;return{c(){e=v("div"),t=v("div"),i=v("div"),i.innerHTML='',s=O(),l=v("div"),o=z(`If you have existing uploaded files, you'll have to migrate them manually from the `),r=v("strong"),u=z(a),f=z(` @@ -170,6 +170,6 @@ Updated: ${g[1].updated}`,position:"left"}),y[0]&536870912&&d!==(d=g[29])&&p(c," `),o=v("button"),o.innerHTML='Load from JSON file',r=O(),j(a.$$.fragment),u=O(),f=O(),P&&P.c(),c=O(),L&&L.c(),d=O(),V&&V.c(),h=O(),m=v("div"),F&&F.c(),b=O(),g=v("div"),y=O(),k=v("button"),w=v("span"),w.textContent="Review",p(e,"type","file"),p(e,"class","hidden"),p(e,"accept",".json"),p(o,"class","btn btn-outline btn-sm m-l-5"),ee(o,"btn-loading",n[12]),p(i,"class","content txt-xl m-b-base"),p(g,"class","flex-fill"),p(w,"class","txt"),p(k,"type","button"),p(k,"class","btn btn-expanded btn-warning m-l-auto"),k.disabled=C=!n[14],p(m,"class","flex m-t-base")},m(U,G){$(U,e,G),n[19](e),$(U,t,G),$(U,i,G),_(i,s),_(s,l),_(s,o),$(U,r,G),R(a,U,G),$(U,u,G),$(U,f,G),P&&P.m(U,G),$(U,c,G),L&&L.m(U,G),$(U,d,G),V&&V.m(U,G),$(U,h,G),$(U,m,G),F&&F.m(m,null),_(m,b),_(m,g),_(m,y),_(m,k),_(k,w),M=!0,T||(D=[W(e,"change",n[20]),W(o,"click",n[21]),W(k,"click",n[26])],T=!0)},p(U,G){(!M||G[0]&4096)&&ee(o,"btn-loading",U[12]);const K={};G[0]&64&&(K.class="form-field "+(U[6]?"":"field-error")),G[0]&65|G[1]&1536&&(K.$$scope={dirty:G,ctx:U}),a.$set(K),U[6]&&U[1].length&&!U[7]?P||(P=Hh(),P.c(),P.m(c.parentNode,c)):P&&(P.d(1),P=null),U[6]&&U[1].length&&U[7]?L?L.p(U,G):(L=jh(U),L.c(),L.m(d.parentNode,d)):L&&(L.d(1),L=null),U[13].length?V?V.p(U,G):(V=Gh(U),V.c(),V.m(h.parentNode,h)):V&&(V.d(1),V=null),U[0]?F?F.p(U,G):(F=Xh(U),F.c(),F.m(m,b)):F&&(F.d(1),F=null),(!M||G[0]&16384&&C!==(C=!U[14]))&&(k.disabled=C)},i(U){M||(E(a.$$.fragment,U),E(A),M=!0)},o(U){I(a.$$.fragment,U),I(A),M=!1},d(U){U&&S(e),n[19](null),U&&S(t),U&&S(i),U&&S(r),H(a,U),U&&S(u),U&&S(f),P&&P.d(U),U&&S(c),L&&L.d(U),U&&S(d),V&&V.d(U),U&&S(h),U&&S(m),F&&F.d(),T=!1,Re(D)}}}function hE(n){let e;return{c(){e=v("div"),p(e,"class","loader")},m(t,i){$(t,e,i)},p:x,i:x,o:x,d(t){t&&S(e)}}}function Rh(n){let e;return{c(){e=v("div"),e.textContent="Invalid collections configuration.",p(e,"class","help-block help-block-error")},m(t,i){$(t,e,i)},d(t){t&&S(e)}}}function mE(n){let e,t,i,s,l,o,r,a,u,f,c=!!n[0]&&!n[6]&&Rh();return{c(){e=v("label"),t=z("Collections"),s=O(),l=v("textarea"),r=O(),c&&c.c(),a=Fe(),p(e,"for",i=n[40]),p(e,"class","p-b-10"),p(l,"id",o=n[40]),p(l,"class","code"),p(l,"spellcheck","false"),p(l,"rows","15"),l.required=!0},m(d,h){$(d,e,h),_(e,t),$(d,s,h),$(d,l,h),pe(l,n[0]),$(d,r,h),c&&c.m(d,h),$(d,a,h),u||(f=W(l,"input",n[22]),u=!0)},p(d,h){h[1]&512&&i!==(i=d[40])&&p(e,"for",i),h[1]&512&&o!==(o=d[40])&&p(l,"id",o),h[0]&1&&pe(l,d[0]),!!d[0]&&!d[6]?c||(c=Rh(),c.c(),c.m(a.parentNode,a)):c&&(c.d(1),c=null)},d(d){d&&S(e),d&&S(s),d&&S(l),d&&S(r),c&&c.d(d),d&&S(a),u=!1,f()}}}function Hh(n){let e;return{c(){e=v("div"),e.innerHTML=`
Your collections configuration is already up-to-date!
`,p(e,"class","alert alert-info")},m(t,i){$(t,e,i)},d(t){t&&S(e)}}}function jh(n){let e,t,i,s,l,o=n[9].length&&qh(n),r=n[4].length&&Bh(n),a=n[8].length&&Kh(n);return{c(){e=v("h5"),e.textContent="Detected changes",t=O(),i=v("div"),o&&o.c(),s=O(),r&&r.c(),l=O(),a&&a.c(),p(e,"class","section-title"),p(i,"class","list")},m(u,f){$(u,e,f),$(u,t,f),$(u,i,f),o&&o.m(i,null),_(i,s),r&&r.m(i,null),_(i,l),a&&a.m(i,null)},p(u,f){u[9].length?o?o.p(u,f):(o=qh(u),o.c(),o.m(i,s)):o&&(o.d(1),o=null),u[4].length?r?r.p(u,f):(r=Bh(u),r.c(),r.m(i,l)):r&&(r.d(1),r=null),u[8].length?a?a.p(u,f):(a=Kh(u),a.c(),a.m(i,null)):a&&(a.d(1),a=null)},d(u){u&&S(e),u&&S(t),u&&S(i),o&&o.d(),r&&r.d(),a&&a.d()}}}function qh(n){let e=[],t=new Map,i,s=n[9];const l=o=>o[32].id;for(let o=0;oo[35].old.id+o[35].new.id;for(let o=0;oo[32].id;for(let o=0;o',i=O(),s=v("div"),s.innerHTML=`Some of the imported collections shares the same name and/or fields but are imported with different IDs. You can replace them in the import if you want - to.`,l=O(),o=v("button"),o.innerHTML='Replace with original ids',p(t,"class","icon"),p(s,"class","content"),p(o,"type","button"),p(o,"class","btn btn-warning btn-sm btn-outline"),p(e,"class","alert alert-warning m-t-base")},m(u,f){$(u,e,f),_(e,t),_(e,i),_(e,s),_(e,l),_(e,o),r||(a=W(o,"click",n[24]),r=!0)},p:x,d(u){u&&S(e),r=!1,a()}}}function Xh(n){let e,t,i;return{c(){e=v("button"),e.innerHTML='Clear',p(e,"type","button"),p(e,"class","btn btn-secondary link-hint")},m(s,l){$(s,e,l),t||(i=W(e,"click",n[25]),t=!0)},p:x,d(s){s&&S(e),t=!1,i()}}}function gE(n){let e,t,i,s,l,o,r,a,u,f,c,d;const h=[hE,pE],m=[];function b(g,y){return g[5]?0:1}return f=b(n),c=m[f]=h[f](n),{c(){e=v("header"),t=v("nav"),i=v("div"),i.textContent="Settings",s=O(),l=v("div"),o=z(n[15]),r=O(),a=v("div"),u=v("div"),c.c(),p(i,"class","breadcrumb-item"),p(l,"class","breadcrumb-item"),p(t,"class","breadcrumbs"),p(e,"class","page-header"),p(u,"class","panel"),p(a,"class","wrapper")},m(g,y){$(g,e,y),_(e,t),_(t,i),_(t,s),_(t,l),_(l,o),$(g,r,y),$(g,a,y),_(a,u),m[f].m(u,null),d=!0},p(g,y){(!d||y[0]&32768)&&ue(o,g[15]);let k=f;f=b(g),f===k?m[f].p(g,y):(be(),I(m[k],1,1,()=>{m[k]=null}),ve(),c=m[f],c?c.p(g,y):(c=m[f]=h[f](g),c.c()),E(c,1),c.m(u,null))},i(g){d||(E(c),d=!0)},o(g){I(c),d=!1},d(g){g&&S(e),g&&S(r),g&&S(a),m[f].d()}}}function _E(n){let e,t,i,s,l,o;e=new Ci({}),i=new cn({props:{$$slots:{default:[gE]},$$scope:{ctx:n}}});let r={};return l=new dE({props:r}),n[27](l),l.$on("submit",n[28]),{c(){j(e.$$.fragment),t=O(),j(i.$$.fragment),s=O(),j(l.$$.fragment)},m(a,u){R(e,a,u),$(a,t,u),R(i,a,u),$(a,s,u),R(l,a,u),o=!0},p(a,u){const f={};u[0]&65535|u[1]&1024&&(f.$$scope={dirty:u,ctx:a}),i.$set(f);const c={};l.$set(c)},i(a){o||(E(e.$$.fragment,a),E(i.$$.fragment,a),E(l.$$.fragment,a),o=!0)},o(a){I(e.$$.fragment,a),I(i.$$.fragment,a),I(l.$$.fragment,a),o=!1},d(a){H(e,a),a&&S(t),H(i,a),a&&S(s),n[27](null),H(l,a)}}}function bE(n,e,t){let i,s,l,o,r,a,u;Je(n,mt,J=>t(15,u=J)),Ht(mt,u="Import collections",u);let f,c,d="",h=!1,m=[],b=[],g=!0,y=[],k=!1;w();async function w(){t(5,k=!0);try{t(2,b=await me.collections.getFullList(200));for(let J of b)delete J.created,delete J.updated}catch(J){me.errorResponseHandler(J)}t(5,k=!1)}function C(){if(t(4,y=[]),!!i)for(let J of m){const fe=B.findByKey(b,"id",J.id);!(fe!=null&&fe.id)||!B.hasCollectionChanges(fe,J,g)||y.push({new:J,old:fe})}}function M(){t(1,m=[]);try{t(1,m=JSON.parse(d))}catch{}Array.isArray(m)?t(1,m=B.filterDuplicatesByKey(m)):t(1,m=[]);for(let J of m)delete J.created,delete J.updated,J.schema=B.filterDuplicatesByKey(J.schema)}function T(){var J,fe;for(let Y of m){const re=B.findByKey(b,"name",Y.name)||B.findByKey(b,"id",Y.id);if(!re)continue;const Oe=Y.id,ge=re.id;Y.id=ge;const ae=Array.isArray(re.schema)?re.schema:[],he=Array.isArray(Y.schema)?Y.schema:[];for(const de of he){const Se=B.findByKey(ae,"name",de.name);Se&&Se.id&&(de.id=Se.id)}for(let de of m)if(!!Array.isArray(de.schema))for(let Se of de.schema)((J=Se.options)==null?void 0:J.collectionId)&&((fe=Se.options)==null?void 0:fe.collectionId)===Oe&&(Se.options.collectionId=ge)}t(0,d=JSON.stringify(m,null,4))}function D(J){t(12,h=!0);const fe=new FileReader;fe.onload=async Y=>{t(12,h=!1),t(10,f.value="",f),t(0,d=Y.target.result),await $n(),m.length||(rl("Invalid collections configuration."),A())},fe.onerror=Y=>{console.warn(Y),rl("Failed to load the imported JSON."),t(12,h=!1),t(10,f.value="",f)},fe.readAsText(J)}function A(){t(0,d=""),t(10,f.value="",f),Fn({})}function P(J){le[J?"unshift":"push"](()=>{f=J,t(10,f)})}const L=()=>{f.files.length&&D(f.files[0])},V=()=>{f.click()};function F(){d=this.value,t(0,d)}function U(){g=this.checked,t(3,g)}const G=()=>T(),K=()=>A(),X=()=>c==null?void 0:c.show(b,m,g);function Z(J){le[J?"unshift":"push"](()=>{c=J,t(11,c)})}const ie=()=>A();return n.$$.update=()=>{n.$$.dirty[0]&1&&typeof d<"u"&&M(),n.$$.dirty[0]&3&&t(6,i=!!d&&m.length&&m.length===m.filter(J=>!!J.id&&!!J.name).length),n.$$.dirty[0]&78&&t(9,s=b.filter(J=>i&&g&&!B.findByKey(m,"id",J.id))),n.$$.dirty[0]&70&&t(8,l=m.filter(J=>i&&!B.findByKey(b,"id",J.id))),n.$$.dirty[0]&10&&(typeof m<"u"||typeof g<"u")&&C(),n.$$.dirty[0]&785&&t(7,o=!!d&&(s.length||l.length||y.length)),n.$$.dirty[0]&224&&t(14,r=!k&&i&&o),n.$$.dirty[0]&6&&t(13,a=m.filter(J=>{let fe=B.findByKey(b,"name",J.name)||B.findByKey(b,"id",J.id);if(!fe)return!1;if(fe.id!=J.id)return!0;const Y=Array.isArray(fe.schema)?fe.schema:[],re=Array.isArray(J.schema)?J.schema:[];for(const Oe of re){if(B.findByKey(Y,"id",Oe.id))continue;const ae=B.findByKey(Y,"name",Oe.name);if(ae&&Oe.id!=ae.id)return!0}return!1}))},[d,m,b,g,y,k,i,o,l,s,f,c,h,a,r,u,T,D,A,P,L,V,F,U,G,K,X,Z,ie]}class vE extends Ce{constructor(e){super(),$e(this,e,bE,_E,ke,{},null,[-1,-1])}}const Ct=[async n=>{const e=new URLSearchParams(window.location.search);return n.location!=="/"&&e.has("installer")?ki("/"):!0}],yE={"/login":vt({component:gO,conditions:Ct.concat([n=>!me.authStore.isValid]),userData:{showAppSidebar:!1}}),"/request-password-reset":vt({asyncComponent:()=>st(()=>import("./PageAdminRequestPasswordReset.f6495525.js"),[],import.meta.url),conditions:Ct.concat([n=>!me.authStore.isValid]),userData:{showAppSidebar:!1}}),"/confirm-password-reset/:token":vt({asyncComponent:()=>st(()=>import("./PageAdminConfirmPasswordReset.1976a74b.js"),[],import.meta.url),conditions:Ct.concat([n=>!me.authStore.isValid]),userData:{showAppSidebar:!1}}),"/collections":vt({component:qT,conditions:Ct.concat([n=>me.authStore.isValid]),userData:{showAppSidebar:!0}}),"/logs":vt({component:vS,conditions:Ct.concat([n=>me.authStore.isValid]),userData:{showAppSidebar:!0}}),"/settings":vt({component:MO,conditions:Ct.concat([n=>me.authStore.isValid]),userData:{showAppSidebar:!0}}),"/settings/admins":vt({component:fO,conditions:Ct.concat([n=>me.authStore.isValid]),userData:{showAppSidebar:!0}}),"/settings/mail":vt({component:uD,conditions:Ct.concat([n=>me.authStore.isValid]),userData:{showAppSidebar:!0}}),"/settings/storage":vt({component:CD,conditions:Ct.concat([n=>me.authStore.isValid]),userData:{showAppSidebar:!0}}),"/settings/auth-providers":vt({component:VD,conditions:Ct.concat([n=>me.authStore.isValid]),userData:{showAppSidebar:!0}}),"/settings/tokens":vt({component:JD,conditions:Ct.concat([n=>me.authStore.isValid]),userData:{showAppSidebar:!0}}),"/settings/export-collections":vt({component:eE,conditions:Ct.concat([n=>me.authStore.isValid]),userData:{showAppSidebar:!0}}),"/settings/import-collections":vt({component:vE,conditions:Ct.concat([n=>me.authStore.isValid]),userData:{showAppSidebar:!0}}),"/users/confirm-password-reset/:token":vt({asyncComponent:()=>st(()=>import("./PageRecordConfirmPasswordReset.3e74ad0e.js"),[],import.meta.url),conditions:Ct,userData:{showAppSidebar:!1}}),"/auth/confirm-password-reset/:token":vt({asyncComponent:()=>st(()=>import("./PageRecordConfirmPasswordReset.3e74ad0e.js"),[],import.meta.url),conditions:Ct,userData:{showAppSidebar:!1}}),"/users/confirm-verification/:token":vt({asyncComponent:()=>st(()=>import("./PageRecordConfirmVerification.e052106a.js"),[],import.meta.url),conditions:Ct,userData:{showAppSidebar:!1}}),"/auth/confirm-verification/:token":vt({asyncComponent:()=>st(()=>import("./PageRecordConfirmVerification.e052106a.js"),[],import.meta.url),conditions:Ct,userData:{showAppSidebar:!1}}),"/users/confirm-email-change/:token":vt({asyncComponent:()=>st(()=>import("./PageRecordConfirmEmailChange.eb6e76e0.js"),[],import.meta.url),conditions:Ct,userData:{showAppSidebar:!1}}),"/auth/confirm-email-change/:token":vt({asyncComponent:()=>st(()=>import("./PageRecordConfirmEmailChange.eb6e76e0.js"),[],import.meta.url),conditions:Ct,userData:{showAppSidebar:!1}}),"*":vt({component:V1,userData:{showAppSidebar:!1}})};function kE(n,{from:e,to:t},i={}){const s=getComputedStyle(n),l=s.transform==="none"?"":s.transform,[o,r]=s.transformOrigin.split(" ").map(parseFloat),a=e.left+e.width*o/t.width-(t.left+o),u=e.top+e.height*r/t.height-(t.top+r),{delay:f=0,duration:c=h=>Math.sqrt(h)*120,easing:d=Vo}=i;return{delay:f,duration:Wt(c)?c(Math.sqrt(a*a+u*u)):c,easing:d,css:(h,m)=>{const b=m*a,g=m*u,y=h+m*e.width/t.width,k=h+m*e.height/t.height;return`transform: ${l} translate(${b}px, ${g}px) scale(${y}, ${k});`}}}function Qh(n,e,t){const i=n.slice();return i[2]=e[t],i}function wE(n){let e;return{c(){e=v("i"),p(e,"class","ri-alert-line")},m(t,i){$(t,e,i)},d(t){t&&S(e)}}}function SE(n){let e;return{c(){e=v("i"),p(e,"class","ri-error-warning-line")},m(t,i){$(t,e,i)},d(t){t&&S(e)}}}function $E(n){let e;return{c(){e=v("i"),p(e,"class","ri-checkbox-circle-line")},m(t,i){$(t,e,i)},d(t){t&&S(e)}}}function CE(n){let e;return{c(){e=v("i"),p(e,"class","ri-information-line")},m(t,i){$(t,e,i)},d(t){t&&S(e)}}}function xh(n,e){let t,i,s,l,o=e[2].message+"",r,a,u,f,c,d,h=x,m,b,g;function y(M,T){return M[2].type==="info"?CE:M[2].type==="success"?$E:M[2].type==="warning"?SE:wE}let k=y(e),w=k(e);function C(){return e[1](e[2])}return{key:n,first:null,c(){t=v("div"),i=v("div"),w.c(),s=O(),l=v("div"),r=z(o),a=O(),u=v("button"),u.innerHTML='',f=O(),p(i,"class","icon"),p(l,"class","content"),p(u,"type","button"),p(u,"class","close"),p(t,"class","alert txt-break"),ee(t,"alert-info",e[2].type=="info"),ee(t,"alert-success",e[2].type=="success"),ee(t,"alert-danger",e[2].type=="error"),ee(t,"alert-warning",e[2].type=="warning"),this.first=t},m(M,T){$(M,t,T),_(t,i),w.m(i,null),_(t,s),_(t,l),_(l,r),_(t,a),_(t,u),_(t,f),m=!0,b||(g=W(u,"click",ut(C)),b=!0)},p(M,T){e=M,k!==(k=y(e))&&(w.d(1),w=k(e),w&&(w.c(),w.m(i,null))),(!m||T&1)&&o!==(o=e[2].message+"")&&ue(r,o),(!m||T&1)&&ee(t,"alert-info",e[2].type=="info"),(!m||T&1)&&ee(t,"alert-success",e[2].type=="success"),(!m||T&1)&&ee(t,"alert-danger",e[2].type=="error"),(!m||T&1)&&ee(t,"alert-warning",e[2].type=="warning")},r(){d=t.getBoundingClientRect()},f(){Z_(t),h(),am(t,d)},a(){h(),h=J_(t,d,kE,{duration:150})},i(M){m||(Qe(()=>{c||(c=je(t,bo,{duration:150},!0)),c.run(1)}),m=!0)},o(M){c||(c=je(t,bo,{duration:150},!1)),c.run(0),m=!1},d(M){M&&S(t),w.d(),M&&c&&c.end(),b=!1,g()}}}function ME(n){let e,t=[],i=new Map,s,l=n[0];const o=r=>r[2].message;for(let r=0;rt(0,i=l)),[i,l=>vg(l)]}class OE extends Ce{constructor(e){super(),$e(this,e,TE,ME,ke,{})}}function DE(n){var s;let e,t=((s=n[1])==null?void 0:s.text)+"",i;return{c(){e=v("h4"),i=z(t),p(e,"class","block center txt-break"),p(e,"slot","header")},m(l,o){$(l,e,o),_(e,i)},p(l,o){var r;o&2&&t!==(t=((r=l[1])==null?void 0:r.text)+"")&&ue(i,t)},d(l){l&&S(e)}}}function EE(n){let e,t,i,s,l,o,r;return{c(){e=v("button"),t=v("span"),t.textContent="No",i=O(),s=v("button"),l=v("span"),l.textContent="Yes",p(t,"class","txt"),e.autofocus=!0,p(e,"type","button"),p(e,"class","btn btn-secondary btn-expanded-sm"),e.disabled=n[2],p(l,"class","txt"),p(s,"type","button"),p(s,"class","btn btn-danger btn-expanded"),s.disabled=n[2],ee(s,"btn-loading",n[2])},m(a,u){$(a,e,u),_(e,t),$(a,i,u),$(a,s,u),_(s,l),e.focus(),o||(r=[W(e,"click",n[4]),W(s,"click",n[5])],o=!0)},p(a,u){u&4&&(e.disabled=a[2]),u&4&&(s.disabled=a[2]),u&4&&ee(s,"btn-loading",a[2])},d(a){a&&S(e),a&&S(i),a&&S(s),o=!1,Re(r)}}}function AE(n){let e,t,i={class:"confirm-popup hide-content overlay-panel-sm",overlayClose:!n[2],escClose:!n[2],btnClose:!1,popup:!0,$$slots:{footer:[EE],header:[DE]},$$scope:{ctx:n}};return e=new Jn({props:i}),n[6](e),e.$on("hide",n[7]),{c(){j(e.$$.fragment)},m(s,l){R(e,s,l),t=!0},p(s,[l]){const o={};l&4&&(o.overlayClose=!s[2]),l&4&&(o.escClose=!s[2]),l&271&&(o.$$scope={dirty:l,ctx:s}),e.$set(o)},i(s){t||(E(e.$$.fragment,s),t=!0)},o(s){I(e.$$.fragment,s),t=!1},d(s){n[6](null),H(e,s)}}}function IE(n,e,t){let i;Je(n,Ya,c=>t(1,i=c));let s,l=!1,o=!1;const r=()=>{t(3,o=!1),s==null||s.hide()},a=async()=>{i!=null&&i.yesCallback&&(t(2,l=!0),await Promise.resolve(i.yesCallback()),t(2,l=!1)),t(3,o=!0),s==null||s.hide()};function u(c){le[c?"unshift":"push"](()=>{s=c,t(0,s)})}const f=async()=>{!o&&(i==null?void 0:i.noCallback)&&i.noCallback(),await $n(),t(3,o=!1),S_()};return n.$$.update=()=>{n.$$.dirty&3&&i!=null&&i.text&&(t(3,o=!1),s==null||s.show())},[s,i,l,o,r,a,u,f]}class PE extends Ce{constructor(e){super(),$e(this,e,IE,AE,ke,{})}}function em(n){let e,t,i,s,l,o,r,a,u,f,c,d,h,m,b,g,y,k;return b=new Zn({props:{class:"dropdown dropdown-nowrap dropdown-upside dropdown-left",$$slots:{default:[LE]},$$scope:{ctx:n}}}),{c(){var w;e=v("aside"),t=v("a"),t.innerHTML='PocketBase logo',i=O(),s=v("nav"),l=v("a"),l.innerHTML='',o=O(),r=v("a"),r.innerHTML='',a=O(),u=v("a"),u.innerHTML='',f=O(),c=v("figure"),d=v("img"),m=O(),j(b.$$.fragment),p(t,"href","/"),p(t,"class","logo logo-sm"),p(l,"href","/collections"),p(l,"class","menu-item"),p(l,"aria-label","Collections"),p(r,"href","/logs"),p(r,"class","menu-item"),p(r,"aria-label","Logs"),p(u,"href","/settings"),p(u,"class","menu-item"),p(u,"aria-label","Settings"),p(s,"class","main-menu"),Ln(d.src,h="./images/avatars/avatar"+(((w=n[0])==null?void 0:w.avatar)||0)+".svg")||p(d,"src",h),p(d,"alt","Avatar"),p(c,"class","thumb thumb-circle link-hint closable"),p(e,"class","app-sidebar")},m(w,C){$(w,e,C),_(e,t),_(e,i),_(e,s),_(s,l),_(s,o),_(s,r),_(s,a),_(s,u),_(e,f),_(e,c),_(c,d),_(c,m),R(b,c,null),g=!0,y||(k=[Le(zt.call(null,t)),Le(zt.call(null,l)),Le(On.call(null,l,{path:"/collections/?.*",className:"current-route"})),Le(Be.call(null,l,{text:"Collections",position:"right"})),Le(zt.call(null,r)),Le(On.call(null,r,{path:"/logs/?.*",className:"current-route"})),Le(Be.call(null,r,{text:"Logs",position:"right"})),Le(zt.call(null,u)),Le(On.call(null,u,{path:"/settings/?.*",className:"current-route"})),Le(Be.call(null,u,{text:"Settings",position:"right"}))],y=!0)},p(w,C){var T;(!g||C&1&&!Ln(d.src,h="./images/avatars/avatar"+(((T=w[0])==null?void 0:T.avatar)||0)+".svg"))&&p(d,"src",h);const M={};C&1024&&(M.$$scope={dirty:C,ctx:w}),b.$set(M)},i(w){g||(E(b.$$.fragment,w),g=!0)},o(w){I(b.$$.fragment,w),g=!1},d(w){w&&S(e),H(b),y=!1,Re(k)}}}function LE(n){let e,t,i,s,l,o,r;return{c(){e=v("a"),e.innerHTML=` + to.`,l=O(),o=v("button"),o.innerHTML='Replace with original ids',p(t,"class","icon"),p(s,"class","content"),p(o,"type","button"),p(o,"class","btn btn-warning btn-sm btn-outline"),p(e,"class","alert alert-warning m-t-base")},m(u,f){$(u,e,f),_(e,t),_(e,i),_(e,s),_(e,l),_(e,o),r||(a=W(o,"click",n[24]),r=!0)},p:x,d(u){u&&S(e),r=!1,a()}}}function Xh(n){let e,t,i;return{c(){e=v("button"),e.innerHTML='Clear',p(e,"type","button"),p(e,"class","btn btn-secondary link-hint")},m(s,l){$(s,e,l),t||(i=W(e,"click",n[25]),t=!0)},p:x,d(s){s&&S(e),t=!1,i()}}}function gE(n){let e,t,i,s,l,o,r,a,u,f,c,d;const h=[hE,pE],m=[];function b(g,y){return g[5]?0:1}return f=b(n),c=m[f]=h[f](n),{c(){e=v("header"),t=v("nav"),i=v("div"),i.textContent="Settings",s=O(),l=v("div"),o=z(n[15]),r=O(),a=v("div"),u=v("div"),c.c(),p(i,"class","breadcrumb-item"),p(l,"class","breadcrumb-item"),p(t,"class","breadcrumbs"),p(e,"class","page-header"),p(u,"class","panel"),p(a,"class","wrapper")},m(g,y){$(g,e,y),_(e,t),_(t,i),_(t,s),_(t,l),_(l,o),$(g,r,y),$(g,a,y),_(a,u),m[f].m(u,null),d=!0},p(g,y){(!d||y[0]&32768)&&ue(o,g[15]);let k=f;f=b(g),f===k?m[f].p(g,y):(be(),I(m[k],1,1,()=>{m[k]=null}),ve(),c=m[f],c?c.p(g,y):(c=m[f]=h[f](g),c.c()),E(c,1),c.m(u,null))},i(g){d||(E(c),d=!0)},o(g){I(c),d=!1},d(g){g&&S(e),g&&S(r),g&&S(a),m[f].d()}}}function _E(n){let e,t,i,s,l,o;e=new Ci({}),i=new cn({props:{$$slots:{default:[gE]},$$scope:{ctx:n}}});let r={};return l=new dE({props:r}),n[27](l),l.$on("submit",n[28]),{c(){j(e.$$.fragment),t=O(),j(i.$$.fragment),s=O(),j(l.$$.fragment)},m(a,u){R(e,a,u),$(a,t,u),R(i,a,u),$(a,s,u),R(l,a,u),o=!0},p(a,u){const f={};u[0]&65535|u[1]&1024&&(f.$$scope={dirty:u,ctx:a}),i.$set(f);const c={};l.$set(c)},i(a){o||(E(e.$$.fragment,a),E(i.$$.fragment,a),E(l.$$.fragment,a),o=!0)},o(a){I(e.$$.fragment,a),I(i.$$.fragment,a),I(l.$$.fragment,a),o=!1},d(a){H(e,a),a&&S(t),H(i,a),a&&S(s),n[27](null),H(l,a)}}}function bE(n,e,t){let i,s,l,o,r,a,u;Je(n,mt,J=>t(15,u=J)),Ht(mt,u="Import collections",u);let f,c,d="",h=!1,m=[],b=[],g=!0,y=[],k=!1;w();async function w(){t(5,k=!0);try{t(2,b=await me.collections.getFullList(200));for(let J of b)delete J.created,delete J.updated}catch(J){me.errorResponseHandler(J)}t(5,k=!1)}function C(){if(t(4,y=[]),!!i)for(let J of m){const fe=B.findByKey(b,"id",J.id);!(fe!=null&&fe.id)||!B.hasCollectionChanges(fe,J,g)||y.push({new:J,old:fe})}}function M(){t(1,m=[]);try{t(1,m=JSON.parse(d))}catch{}Array.isArray(m)?t(1,m=B.filterDuplicatesByKey(m)):t(1,m=[]);for(let J of m)delete J.created,delete J.updated,J.schema=B.filterDuplicatesByKey(J.schema)}function T(){var J,fe;for(let Y of m){const re=B.findByKey(b,"name",Y.name)||B.findByKey(b,"id",Y.id);if(!re)continue;const Oe=Y.id,ge=re.id;Y.id=ge;const ae=Array.isArray(re.schema)?re.schema:[],he=Array.isArray(Y.schema)?Y.schema:[];for(const de of he){const Se=B.findByKey(ae,"name",de.name);Se&&Se.id&&(de.id=Se.id)}for(let de of m)if(!!Array.isArray(de.schema))for(let Se of de.schema)((J=Se.options)==null?void 0:J.collectionId)&&((fe=Se.options)==null?void 0:fe.collectionId)===Oe&&(Se.options.collectionId=ge)}t(0,d=JSON.stringify(m,null,4))}function D(J){t(12,h=!0);const fe=new FileReader;fe.onload=async Y=>{t(12,h=!1),t(10,f.value="",f),t(0,d=Y.target.result),await $n(),m.length||(rl("Invalid collections configuration."),A())},fe.onerror=Y=>{console.warn(Y),rl("Failed to load the imported JSON."),t(12,h=!1),t(10,f.value="",f)},fe.readAsText(J)}function A(){t(0,d=""),t(10,f.value="",f),Fn({})}function P(J){le[J?"unshift":"push"](()=>{f=J,t(10,f)})}const L=()=>{f.files.length&&D(f.files[0])},V=()=>{f.click()};function F(){d=this.value,t(0,d)}function U(){g=this.checked,t(3,g)}const G=()=>T(),K=()=>A(),X=()=>c==null?void 0:c.show(b,m,g);function Z(J){le[J?"unshift":"push"](()=>{c=J,t(11,c)})}const ie=()=>A();return n.$$.update=()=>{n.$$.dirty[0]&1&&typeof d<"u"&&M(),n.$$.dirty[0]&3&&t(6,i=!!d&&m.length&&m.length===m.filter(J=>!!J.id&&!!J.name).length),n.$$.dirty[0]&78&&t(9,s=b.filter(J=>i&&g&&!B.findByKey(m,"id",J.id))),n.$$.dirty[0]&70&&t(8,l=m.filter(J=>i&&!B.findByKey(b,"id",J.id))),n.$$.dirty[0]&10&&(typeof m<"u"||typeof g<"u")&&C(),n.$$.dirty[0]&785&&t(7,o=!!d&&(s.length||l.length||y.length)),n.$$.dirty[0]&224&&t(14,r=!k&&i&&o),n.$$.dirty[0]&6&&t(13,a=m.filter(J=>{let fe=B.findByKey(b,"name",J.name)||B.findByKey(b,"id",J.id);if(!fe)return!1;if(fe.id!=J.id)return!0;const Y=Array.isArray(fe.schema)?fe.schema:[],re=Array.isArray(J.schema)?J.schema:[];for(const Oe of re){if(B.findByKey(Y,"id",Oe.id))continue;const ae=B.findByKey(Y,"name",Oe.name);if(ae&&Oe.id!=ae.id)return!0}return!1}))},[d,m,b,g,y,k,i,o,l,s,f,c,h,a,r,u,T,D,A,P,L,V,F,U,G,K,X,Z,ie]}class vE extends Ce{constructor(e){super(),$e(this,e,bE,_E,ke,{},null,[-1,-1])}}const Ct=[async n=>{const e=new URLSearchParams(window.location.search);return n.location!=="/"&&e.has("installer")?ki("/"):!0}],yE={"/login":vt({component:gO,conditions:Ct.concat([n=>!me.authStore.isValid]),userData:{showAppSidebar:!1}}),"/request-password-reset":vt({asyncComponent:()=>st(()=>import("./PageAdminRequestPasswordReset.d9c4c816.js"),[],import.meta.url),conditions:Ct.concat([n=>!me.authStore.isValid]),userData:{showAppSidebar:!1}}),"/confirm-password-reset/:token":vt({asyncComponent:()=>st(()=>import("./PageAdminConfirmPasswordReset.ad1b2398.js"),[],import.meta.url),conditions:Ct.concat([n=>!me.authStore.isValid]),userData:{showAppSidebar:!1}}),"/collections":vt({component:qT,conditions:Ct.concat([n=>me.authStore.isValid]),userData:{showAppSidebar:!0}}),"/logs":vt({component:vS,conditions:Ct.concat([n=>me.authStore.isValid]),userData:{showAppSidebar:!0}}),"/settings":vt({component:MO,conditions:Ct.concat([n=>me.authStore.isValid]),userData:{showAppSidebar:!0}}),"/settings/admins":vt({component:fO,conditions:Ct.concat([n=>me.authStore.isValid]),userData:{showAppSidebar:!0}}),"/settings/mail":vt({component:uD,conditions:Ct.concat([n=>me.authStore.isValid]),userData:{showAppSidebar:!0}}),"/settings/storage":vt({component:CD,conditions:Ct.concat([n=>me.authStore.isValid]),userData:{showAppSidebar:!0}}),"/settings/auth-providers":vt({component:VD,conditions:Ct.concat([n=>me.authStore.isValid]),userData:{showAppSidebar:!0}}),"/settings/tokens":vt({component:JD,conditions:Ct.concat([n=>me.authStore.isValid]),userData:{showAppSidebar:!0}}),"/settings/export-collections":vt({component:eE,conditions:Ct.concat([n=>me.authStore.isValid]),userData:{showAppSidebar:!0}}),"/settings/import-collections":vt({component:vE,conditions:Ct.concat([n=>me.authStore.isValid]),userData:{showAppSidebar:!0}}),"/users/confirm-password-reset/:token":vt({asyncComponent:()=>st(()=>import("./PageRecordConfirmPasswordReset.1076ce6b.js"),[],import.meta.url),conditions:Ct,userData:{showAppSidebar:!1}}),"/auth/confirm-password-reset/:token":vt({asyncComponent:()=>st(()=>import("./PageRecordConfirmPasswordReset.1076ce6b.js"),[],import.meta.url),conditions:Ct,userData:{showAppSidebar:!1}}),"/users/confirm-verification/:token":vt({asyncComponent:()=>st(()=>import("./PageRecordConfirmVerification.ee437942.js"),[],import.meta.url),conditions:Ct,userData:{showAppSidebar:!1}}),"/auth/confirm-verification/:token":vt({asyncComponent:()=>st(()=>import("./PageRecordConfirmVerification.ee437942.js"),[],import.meta.url),conditions:Ct,userData:{showAppSidebar:!1}}),"/users/confirm-email-change/:token":vt({asyncComponent:()=>st(()=>import("./PageRecordConfirmEmailChange.045ac88a.js"),[],import.meta.url),conditions:Ct,userData:{showAppSidebar:!1}}),"/auth/confirm-email-change/:token":vt({asyncComponent:()=>st(()=>import("./PageRecordConfirmEmailChange.045ac88a.js"),[],import.meta.url),conditions:Ct,userData:{showAppSidebar:!1}}),"*":vt({component:V1,userData:{showAppSidebar:!1}})};function kE(n,{from:e,to:t},i={}){const s=getComputedStyle(n),l=s.transform==="none"?"":s.transform,[o,r]=s.transformOrigin.split(" ").map(parseFloat),a=e.left+e.width*o/t.width-(t.left+o),u=e.top+e.height*r/t.height-(t.top+r),{delay:f=0,duration:c=h=>Math.sqrt(h)*120,easing:d=Vo}=i;return{delay:f,duration:Wt(c)?c(Math.sqrt(a*a+u*u)):c,easing:d,css:(h,m)=>{const b=m*a,g=m*u,y=h+m*e.width/t.width,k=h+m*e.height/t.height;return`transform: ${l} translate(${b}px, ${g}px) scale(${y}, ${k});`}}}function Qh(n,e,t){const i=n.slice();return i[2]=e[t],i}function wE(n){let e;return{c(){e=v("i"),p(e,"class","ri-alert-line")},m(t,i){$(t,e,i)},d(t){t&&S(e)}}}function SE(n){let e;return{c(){e=v("i"),p(e,"class","ri-error-warning-line")},m(t,i){$(t,e,i)},d(t){t&&S(e)}}}function $E(n){let e;return{c(){e=v("i"),p(e,"class","ri-checkbox-circle-line")},m(t,i){$(t,e,i)},d(t){t&&S(e)}}}function CE(n){let e;return{c(){e=v("i"),p(e,"class","ri-information-line")},m(t,i){$(t,e,i)},d(t){t&&S(e)}}}function xh(n,e){let t,i,s,l,o=e[2].message+"",r,a,u,f,c,d,h=x,m,b,g;function y(M,T){return M[2].type==="info"?CE:M[2].type==="success"?$E:M[2].type==="warning"?SE:wE}let k=y(e),w=k(e);function C(){return e[1](e[2])}return{key:n,first:null,c(){t=v("div"),i=v("div"),w.c(),s=O(),l=v("div"),r=z(o),a=O(),u=v("button"),u.innerHTML='',f=O(),p(i,"class","icon"),p(l,"class","content"),p(u,"type","button"),p(u,"class","close"),p(t,"class","alert txt-break"),ee(t,"alert-info",e[2].type=="info"),ee(t,"alert-success",e[2].type=="success"),ee(t,"alert-danger",e[2].type=="error"),ee(t,"alert-warning",e[2].type=="warning"),this.first=t},m(M,T){$(M,t,T),_(t,i),w.m(i,null),_(t,s),_(t,l),_(l,r),_(t,a),_(t,u),_(t,f),m=!0,b||(g=W(u,"click",ut(C)),b=!0)},p(M,T){e=M,k!==(k=y(e))&&(w.d(1),w=k(e),w&&(w.c(),w.m(i,null))),(!m||T&1)&&o!==(o=e[2].message+"")&&ue(r,o),(!m||T&1)&&ee(t,"alert-info",e[2].type=="info"),(!m||T&1)&&ee(t,"alert-success",e[2].type=="success"),(!m||T&1)&&ee(t,"alert-danger",e[2].type=="error"),(!m||T&1)&&ee(t,"alert-warning",e[2].type=="warning")},r(){d=t.getBoundingClientRect()},f(){Z_(t),h(),am(t,d)},a(){h(),h=J_(t,d,kE,{duration:150})},i(M){m||(Qe(()=>{c||(c=je(t,bo,{duration:150},!0)),c.run(1)}),m=!0)},o(M){c||(c=je(t,bo,{duration:150},!1)),c.run(0),m=!1},d(M){M&&S(t),w.d(),M&&c&&c.end(),b=!1,g()}}}function ME(n){let e,t=[],i=new Map,s,l=n[0];const o=r=>r[2].message;for(let r=0;rt(0,i=l)),[i,l=>vg(l)]}class OE extends Ce{constructor(e){super(),$e(this,e,TE,ME,ke,{})}}function DE(n){var s;let e,t=((s=n[1])==null?void 0:s.text)+"",i;return{c(){e=v("h4"),i=z(t),p(e,"class","block center txt-break"),p(e,"slot","header")},m(l,o){$(l,e,o),_(e,i)},p(l,o){var r;o&2&&t!==(t=((r=l[1])==null?void 0:r.text)+"")&&ue(i,t)},d(l){l&&S(e)}}}function EE(n){let e,t,i,s,l,o,r;return{c(){e=v("button"),t=v("span"),t.textContent="No",i=O(),s=v("button"),l=v("span"),l.textContent="Yes",p(t,"class","txt"),e.autofocus=!0,p(e,"type","button"),p(e,"class","btn btn-secondary btn-expanded-sm"),e.disabled=n[2],p(l,"class","txt"),p(s,"type","button"),p(s,"class","btn btn-danger btn-expanded"),s.disabled=n[2],ee(s,"btn-loading",n[2])},m(a,u){$(a,e,u),_(e,t),$(a,i,u),$(a,s,u),_(s,l),e.focus(),o||(r=[W(e,"click",n[4]),W(s,"click",n[5])],o=!0)},p(a,u){u&4&&(e.disabled=a[2]),u&4&&(s.disabled=a[2]),u&4&&ee(s,"btn-loading",a[2])},d(a){a&&S(e),a&&S(i),a&&S(s),o=!1,Re(r)}}}function AE(n){let e,t,i={class:"confirm-popup hide-content overlay-panel-sm",overlayClose:!n[2],escClose:!n[2],btnClose:!1,popup:!0,$$slots:{footer:[EE],header:[DE]},$$scope:{ctx:n}};return e=new Jn({props:i}),n[6](e),e.$on("hide",n[7]),{c(){j(e.$$.fragment)},m(s,l){R(e,s,l),t=!0},p(s,[l]){const o={};l&4&&(o.overlayClose=!s[2]),l&4&&(o.escClose=!s[2]),l&271&&(o.$$scope={dirty:l,ctx:s}),e.$set(o)},i(s){t||(E(e.$$.fragment,s),t=!0)},o(s){I(e.$$.fragment,s),t=!1},d(s){n[6](null),H(e,s)}}}function IE(n,e,t){let i;Je(n,Ya,c=>t(1,i=c));let s,l=!1,o=!1;const r=()=>{t(3,o=!1),s==null||s.hide()},a=async()=>{i!=null&&i.yesCallback&&(t(2,l=!0),await Promise.resolve(i.yesCallback()),t(2,l=!1)),t(3,o=!0),s==null||s.hide()};function u(c){le[c?"unshift":"push"](()=>{s=c,t(0,s)})}const f=async()=>{!o&&(i==null?void 0:i.noCallback)&&i.noCallback(),await $n(),t(3,o=!1),S_()};return n.$$.update=()=>{n.$$.dirty&3&&i!=null&&i.text&&(t(3,o=!1),s==null||s.show())},[s,i,l,o,r,a,u,f]}class PE extends Ce{constructor(e){super(),$e(this,e,IE,AE,ke,{})}}function em(n){let e,t,i,s,l,o,r,a,u,f,c,d,h,m,b,g,y,k;return b=new Zn({props:{class:"dropdown dropdown-nowrap dropdown-upside dropdown-left",$$slots:{default:[LE]},$$scope:{ctx:n}}}),{c(){var w;e=v("aside"),t=v("a"),t.innerHTML='PocketBase logo',i=O(),s=v("nav"),l=v("a"),l.innerHTML='',o=O(),r=v("a"),r.innerHTML='',a=O(),u=v("a"),u.innerHTML='',f=O(),c=v("figure"),d=v("img"),m=O(),j(b.$$.fragment),p(t,"href","/"),p(t,"class","logo logo-sm"),p(l,"href","/collections"),p(l,"class","menu-item"),p(l,"aria-label","Collections"),p(r,"href","/logs"),p(r,"class","menu-item"),p(r,"aria-label","Logs"),p(u,"href","/settings"),p(u,"class","menu-item"),p(u,"aria-label","Settings"),p(s,"class","main-menu"),Ln(d.src,h="./images/avatars/avatar"+(((w=n[0])==null?void 0:w.avatar)||0)+".svg")||p(d,"src",h),p(d,"alt","Avatar"),p(c,"class","thumb thumb-circle link-hint closable"),p(e,"class","app-sidebar")},m(w,C){$(w,e,C),_(e,t),_(e,i),_(e,s),_(s,l),_(s,o),_(s,r),_(s,a),_(s,u),_(e,f),_(e,c),_(c,d),_(c,m),R(b,c,null),g=!0,y||(k=[Le(zt.call(null,t)),Le(zt.call(null,l)),Le(On.call(null,l,{path:"/collections/?.*",className:"current-route"})),Le(Be.call(null,l,{text:"Collections",position:"right"})),Le(zt.call(null,r)),Le(On.call(null,r,{path:"/logs/?.*",className:"current-route"})),Le(Be.call(null,r,{text:"Logs",position:"right"})),Le(zt.call(null,u)),Le(On.call(null,u,{path:"/settings/?.*",className:"current-route"})),Le(Be.call(null,u,{text:"Settings",position:"right"}))],y=!0)},p(w,C){var T;(!g||C&1&&!Ln(d.src,h="./images/avatars/avatar"+(((T=w[0])==null?void 0:T.avatar)||0)+".svg"))&&p(d,"src",h);const M={};C&1024&&(M.$$scope={dirty:C,ctx:w}),b.$set(M)},i(w){g||(E(b.$$.fragment,w),g=!0)},o(w){I(b.$$.fragment,w),g=!1},d(w){w&&S(e),H(b),y=!1,Re(k)}}}function LE(n){let e,t,i,s,l,o,r;return{c(){e=v("a"),e.innerHTML=` Manage admins`,t=O(),i=v("hr"),s=O(),l=v("button"),l.innerHTML=` Logout`,p(e,"href","/settings/admins"),p(e,"class","dropdown-item closable"),p(l,"type","button"),p(l,"class","dropdown-item closable")},m(a,u){$(a,e,u),$(a,t,u),$(a,i,u),$(a,s,u),$(a,l,u),o||(r=[Le(zt.call(null,e)),W(l,"click",n[6])],o=!0)},p:x,d(a){a&&S(e),a&&S(t),a&&S(i),a&&S(s),a&&S(l),o=!1,Re(r)}}}function NE(n){var h;let e,t,i,s,l,o,r,a,u,f,c;document.title=e=B.joinNonEmpty([n[3],n[2],"PocketBase"]," - ");let d=((h=n[0])==null?void 0:h.id)&&n[1]&&em(n);return o=new a0({props:{routes:yE}}),o.$on("routeLoading",n[4]),o.$on("conditionsFailed",n[5]),a=new OE({}),f=new PE({}),{c(){t=O(),i=v("div"),d&&d.c(),s=O(),l=v("div"),j(o.$$.fragment),r=O(),j(a.$$.fragment),u=O(),j(f.$$.fragment),p(l,"class","app-body"),p(i,"class","app-layout")},m(m,b){$(m,t,b),$(m,i,b),d&&d.m(i,null),_(i,s),_(i,l),R(o,l,null),_(l,r),R(a,l,null),$(m,u,b),R(f,m,b),c=!0},p(m,[b]){var g;(!c||b&12)&&e!==(e=B.joinNonEmpty([m[3],m[2],"PocketBase"]," - "))&&(document.title=e),((g=m[0])==null?void 0:g.id)&&m[1]?d?(d.p(m,b),b&3&&E(d,1)):(d=em(m),d.c(),E(d,1),d.m(i,s)):d&&(be(),I(d,1,1,()=>{d=null}),ve())},i(m){c||(E(d),E(o.$$.fragment,m),E(a.$$.fragment,m),E(f.$$.fragment,m),c=!0)},o(m){I(d),I(o.$$.fragment,m),I(a.$$.fragment,m),I(f.$$.fragment,m),c=!1},d(m){m&&S(t),m&&S(i),d&&d.d(),H(o),H(a),m&&S(u),H(f,m)}}}function FE(n,e,t){let i,s,l,o;Je(n,ks,h=>t(8,i=h)),Je(n,_o,h=>t(2,s=h)),Je(n,ya,h=>t(0,l=h)),Je(n,mt,h=>t(3,o=h));let r,a=!1;function u(h){var m,b,g,y;((m=h==null?void 0:h.detail)==null?void 0:m.location)!==r&&(t(1,a=!!((g=(b=h==null?void 0:h.detail)==null?void 0:b.userData)!=null&&g.showAppSidebar)),r=(y=h==null?void 0:h.detail)==null?void 0:y.location,Ht(mt,o="",o),Fn({}),S_())}function f(){ki("/")}async function c(){var h,m;if(!!(l!=null&&l.id))try{const b=await me.settings.getAll({$cancelKey:"initialAppSettings"});Ht(_o,s=((h=b==null?void 0:b.meta)==null?void 0:h.appName)||"",s),Ht(ks,i=!!((m=b==null?void 0:b.meta)!=null&&m.hideControls),i)}catch(b){console.warn("Failed to load app settings.",b)}}function d(){me.logout()}return n.$$.update=()=>{n.$$.dirty&1&&l!=null&&l.id&&c()},[l,a,s,o,u,f,d]}class RE extends Ce{constructor(e){super(),$e(this,e,FE,NE,ke,{})}}new RE({target:document.getElementById("app")});export{Re as A,Lt as B,B as C,ki as D,Fe as E,kg as F,fa as G,ru as H,Je as I,Zi as J,It as K,Pn as L,un as M,le as N,k_ as O,bt as P,Gi as Q,xt as R,Ce as S,Qa as T,I as a,O as b,j as c,H as d,v as e,p as f,$ as g,_ as h,$e as i,Le as j,be as k,zt as l,R as m,ve as n,S as o,me as p,_e as q,ee as r,ke as s,E as t,W as u,ut as v,z as w,ue as x,x as y,pe as z}; diff --git a/ui/dist/index.html b/ui/dist/index.html index 5431c085a..8c05be382 100644 --- a/ui/dist/index.html +++ b/ui/dist/index.html @@ -24,7 +24,7 @@ window.Prism = window.Prism || {}; window.Prism.manual = true; - + diff --git a/ui/src/providers.js b/ui/src/providers.js index 71a15e2d7..12c777e99 100644 --- a/ui/src/providers.js +++ b/ui/src/providers.js @@ -40,4 +40,8 @@ export default { icon: "ri-microsoft-fill", optionsComponent: MicrosoftOptions, }, + spotifyAuth: { + title: "Spotify", + icon: "ri-spotify-fill", + }, };