No longer automatically download external font, holidays and centaurs
This commit now makes the download of the Google-provided font opt-in,
rather than automatic. This is preferable, as most people wouldn't
care to have Google automatically know they're running this thing. For
modern browsers that understand CSS `::part()` syntax, this commit also
provides a way for them to specify exactly what font they want, and an
example of that is provided in the `./demo` folder.
There are a number of minor details in the Journal Entries that reflect
the growth and change of the culture. One was that several of the species
introduced, including Centaurs, Tindals, Felinzi and Uncia, had their
own language, and Centaurs had their own calendar. Most fell off as
use of the common Quen made everything easier, and Uncia found Felinzi
easy to learn and use and gave the felinoid species a common tongue that
worked well with their mouth and throat shapes. But I've added the
Centaur calendar. Use the flag attribute "centaurs" (no arguments,
it's a flag) in the component's HTML tag to see it. Again, the use
can be seen in the demo folder.
I've also fixed a bug where the holidays, which belong to no month and
have no weekday, are also rendered correctly.
2023-10-08 17:44:48 +00:00
"function" == typeof SuppressedError && SuppressedError ;
2023-10-07 21:06:36 +00:00
/ * *
* @ license
* Copyright 2019 Google LLC
* SPDX - License - Identifier : BSD - 3 - Clause
* /
const t = window , e = t . ShadowRoot && ( void 0 === t . ShadyCSS || t . ShadyCSS . nativeShadow ) && "adoptedStyleSheets" in Document . prototype && "replace" in CSSStyleSheet . prototype , i = Symbol ( ) , s = new WeakMap ; class n { constructor ( t , e , s ) { if ( this . _$cssResult$ = ! 0 , s !== i ) throw Error ( "CSSResult is not constructable. Use `unsafeCSS` or `css` instead." ) ; this . cssText = t , this . t = e } get styleSheet ( ) { let t = this . o ; const i = this . t ; if ( e && void 0 === t ) { const e = void 0 !== i && 1 === i . length ; e && ( t = s . get ( i ) ) , void 0 === t && ( ( this . o = t = new CSSStyleSheet ) . replaceSync ( this . cssText ) , e && s . set ( i , t ) ) } return t } toString ( ) { return this . cssText } } const o = ( t , ... e ) => { const s = 1 === t . length ? t [ 0 ] : e . reduce ( ( ( e , i , s ) => e + ( t => { if ( ! 0 === t . _$cssResult$ ) return t . cssText ; if ( "number" == typeof t ) return t ; throw Error ( "Value passed to 'css' function must be a 'css' function result: " + t + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security." ) } ) ( i ) + t [ s + 1 ] ) , t [ 0 ] ) ; return new n ( s , t , i ) } , r = e ? t => t : t => t instanceof CSSStyleSheet ? ( t => { let e = "" ; for ( const i of t . cssRules ) e += i . cssText ; return ( t => new n ( "string" == typeof t ? t : t + "" , void 0 , i ) ) ( e ) } ) ( t ) : t
/ * *
* @ license
* Copyright 2017 Google LLC
* SPDX - License - Identifier : BSD - 3 - Clause
No longer automatically download external font, holidays and centaurs
This commit now makes the download of the Google-provided font opt-in,
rather than automatic. This is preferable, as most people wouldn't
care to have Google automatically know they're running this thing. For
modern browsers that understand CSS `::part()` syntax, this commit also
provides a way for them to specify exactly what font they want, and an
example of that is provided in the `./demo` folder.
There are a number of minor details in the Journal Entries that reflect
the growth and change of the culture. One was that several of the species
introduced, including Centaurs, Tindals, Felinzi and Uncia, had their
own language, and Centaurs had their own calendar. Most fell off as
use of the common Quen made everything easier, and Uncia found Felinzi
easy to learn and use and gave the felinoid species a common tongue that
worked well with their mouth and throat shapes. But I've added the
Centaur calendar. Use the flag attribute "centaurs" (no arguments,
it's a flag) in the component's HTML tag to see it. Again, the use
can be seen in the demo folder.
I've also fixed a bug where the holidays, which belong to no month and
have no weekday, are also rendered correctly.
2023-10-08 17:44:48 +00:00
* / ; v a r l ; c o n s t h = w i n d o w , a = h . t r u s t e d T y p e s , c = a ? a . e m p t y S c r i p t : " " , d = h . r e a c t i v e E l e m e n t P o l y f i l l S u p p o r t , u = { t o A t t r i b u t e ( t , e ) { s w i t c h ( e ) { c a s e B o o l e a n : t = t ? c : n u l l ; b r e a k ; c a s e O b j e c t : c a s e A r r a y : t = n u l l = = t ? t : J S O N . s t r i n g i f y ( t ) } r e t u r n t } , f r o m A t t r i b u t e ( t , e ) { l e t i = t ; s w i t c h ( e ) { c a s e B o o l e a n : i = n u l l ! = = t ; b r e a k ; c a s e N u m b e r : i = n u l l = = = t ? n u l l : N u m b e r ( t ) ; b r e a k ; c a s e O b j e c t : c a s e A r r a y : t r y { i = J S O N . p a r s e ( t ) } c a t c h ( t ) { i = n u l l } } r e t u r n i } } , p = ( t , e ) = > e ! = = t & & ( e = = e | | t = = t ) , v = { a t t r i b u t e : ! 0 , t y p e : S t r i n g , c o n v e r t e r : u , r e f l e c t : ! 1 , h a s C h a n g e d : p } , $ = " f i n a l i z e d " ; c l a s s f e x t e n d s H T M L E l e m e n t { c o n s t r u c t o r ( ) { s u p e r ( ) , t h i s . _ $ E i = n e w M a p , t h i s . i s U p d a t e P e n d i n g = ! 1 , t h i s . h a s U p d a t e d = ! 1 , t h i s . _ $ E l = n u l l , t h i s . _ $ E u ( ) } s t a t i c a d d I n i t i a l i z e r ( t ) { v a r e ; t h i s . f i n a l i z e ( ) , ( n u l l ! = = ( e = t h i s . h ) & & v o i d 0 ! = = e ? e : t h i s . h = [ ] ) . p u s h ( t ) } s t a t i c g e t o b s e r v e d A t t r i b u t e s ( ) { t h i s . f i n a l i z e ( ) ; c o n s t t = [ ] ; r e t u r n t h i s . e l e m e n t P r o p e r t i e s . f o r E a c h ( ( ( e , i ) = > { c o n s t s = t h i s . _ $ E p ( i , e ) ; v o i d 0 ! = = s & & ( t h i s . _ $ E v . s e t ( s , i ) , t . p u s h ( s ) ) } ) ) , t } s t a t i c c r e a t e P r o p e r t y ( t , e = v ) { i f ( e . s t a t e & & ( e . a t t r i b u t e = ! 1 ) , t h i s . f i n a l i z e ( ) , t h i s . e l e m e n t P r o p e r t i e s . s e t ( t , e ) , ! e . n o A c c e s s o r & & ! t h i s . p r o t o t y p e . h a s O w n P r o p e r t y ( t ) ) { c o n s t i = " s y m b o l " = = t y p e o f t ? S y m b o l ( ) : " _ _ " + t , s = t h i s . g e t P r o p e r t y D e s c r i p t o r ( t , i , e ) ; v o i d 0 ! = = s & & O b j e c t . d e f i n e P r o p e r t y ( t h i s . p r o t o t y p e , t , s ) } } s t a t i c g e t P r o p e r t y D e s c r i p t o r ( t , e , i ) { r e t u r n { g e t ( ) { r e t u r n t h i s [ e ] } , s e t ( s ) { c o n s t n = t h i s [ t ] ; t h i s [ e ] = s , t h i s . r e q u e s t U p d a t e ( t , n , i ) } , c o n f i g u r a b l e : ! 0 , e n u m e r a b l e : ! 0 } } s t a t i c g e t P r o p e r t y O p t i o n s ( t ) { r e t u r n t h i s . e l e m e n t P r o p e r t i e s . g e t ( t ) | | v } s t a t i c f i n a l i z e ( ) { i f ( t h i s . h a s O w n P r o p e r t y ( $ ) ) r e t u r n ! 1 ; t h i s [ $ ] = ! 0 ; c o n s t t = O b j e c t . g e t P r o t o t y p e O f ( t h i s ) ; i f ( t . f i n a l i z e ( ) , v o i d 0 ! = = t . h & & ( t h i s . h = [ . . . t . h ] ) , t h i s . e l e m e n t P r o p e r t i e s = n e w M a p ( t . e l e m e n t P r o p e r t i e s ) , t h i s . _ $ E v = n e w M a p , t h i s . h a s O w n P r o p e r t y ( " p r o p e r t i e s " ) ) { c o n s t t = t h i s . p r o p e r t i e s , e = [ . . . O b j e c t . g e t O w n P r o p e r t y N a m e s ( t ) , . . . O b j e c t . g e t O w n P r o p e r t y S y m b o l s ( t ) ] ; f o r ( c o n s t i o f e ) t h i s . c r e a t e P r o p e r t y ( i , t [ i ] ) } r e t u r n t h i s . e l e m e n t S t y l e s = t h i s . f i n a l i z e S t y l e s ( t h i s . s t y l e s ) , ! 0 } s t a t i c f i n a l i z e S t y l e s ( t ) { c o n s t e = [ ] ; i f ( A r r a y . i s A r r a y ( t ) ) { c o n s t i = n e w S e t ( t . f l a t ( 1 / 0 ) . r e v e r s e ( ) ) ; f o r ( c o n s t t o f i ) e . u n s h i f t ( r ( t ) ) } e l s e v o i d 0 ! = = t & & e . p u s h ( r ( t ) ) ; r e t u r n e } s t a t i c _ $ E p ( t , e ) { c o n s t i = e . a t t r i b u t e ; r e t u r n ! 1 = = = i ? v o i d 0 : " s t r i n g " = = t y p e o f i ? i : " s t r i n g " = = t y p e o f t ? t . t o L o w e r C a s e ( ) : v o i d 0 } _ $ E u ( ) { v a r t ; t h i s . _ $ E _ = n e w P r o m i s e ( ( t = > t h i s . e n a b l e U p d a t i n g = t ) ) , t h i s . _ $ A L = n e w M a p , t h i s . _ $ E g ( ) , t h i s . r e q u e s t U p d a t e ( ) , n u l l = = = ( t = t h i s . c o n s t r u c t o r . h ) | | v o i d 0 = = = t | | t . f o r E a c h ( ( t = > t ( t h i s ) ) ) } a d d C o n t r o l l e r ( t ) { v a r e , i ; ( n u l l ! = = ( e = t h i s . _ $ E S ) & & v o i d 0 ! = = e ? e : t h i s . _ $ E S = [ ] ) . p u s h ( t ) , v o i d 0 ! = = t h i s . r e n d e r R o o t & & t h i s . i s C o n n e c t e d & & ( n u l l = = = ( i = t . h o s t C o n n e c t e d ) | | v o i d 0 = = = i | | i . c a l l ( t ) ) } r e m o v e C o n t r o l l e r ( t ) { v a r e ; n u l l = = = ( e = t h i s . _ $ E S ) | | v o i d 0 = = = e | | e . s p l i c e ( t h i s . _ $ E S . i n d e x O f ( t ) > > > 0 , 1 ) } _ $ E g ( ) { t h i s . c o n s t r u c t o r . e l e m e n t P r o p e r t i e s . f o r E a c h ( ( ( t , e ) = > { t h i s . h a s O w n P r o p e r t y ( e ) & & ( t h i s . _ $ E i . s e t ( e , t h i s [ e ] ) , d e l e t e t h i s [ e ] ) } ) ) } c r e a t e R e n d e r R o o t ( ) { v a r i ; c o n s t s = n u l l ! = = ( i = t h i s . s h a d o w R o o t ) & & v o i d 0 ! = = i ? i : t h i s . a t t a c h S h a d o w ( t h i s . c o n s t r u c t o r . s h a d o w R o o t O p t i o n s ) ; r e t u r n ( ( i , s ) = > { e ? i . a d o p t e d S t y l e S h e e t s = s . m a p ( ( t = > t i n s t a n c e o f C S S S t y l e S h e e t ? t : t . s t y l e S h e e t ) ) : s . f o r E a c h ( ( e = > { c o n s t s = d o c u m e n t . c r e a t e E l e m e n t ( " s t y l e " ) , n = t . l i t N o n c e ; v o i d 0 ! = = n & & s . s e t A t t r i b u t e ( " n o n c e " , n ) , s . t e x t C o n t e n t = e . c s s T e x t , i . a p p e n d C h i l d ( s ) } ) ) } ) ( s , t h i s . c o n s t r u c t o r . e l e m e n t S t y l e s ) , s } c o n n e c t e d C a l l b a c k ( ) { v a r t ; v o i d 0 = = = t h i s . r e n d e r R o o t & & ( t h i s . r e n d e r R o o t = t h i s . c r e a t e R e n d e r R o o t ( ) ) , t h i s . e n a b l e U p d a t i n g ( ! 0 ) , n u l l = = = ( t = t h i s . _ $ E S ) | | v o i d 0 = = = t | | t . f o r E a c h ( ( t = > { v a r e ; r e t u r n n u l l = = = ( e = t . h o s t C o n n e c t e d ) | | v o i d 0 = = = e ? v o i d 0 : e . c a l l ( t ) } ) ) } e n a b l e U p d a t i n g ( t ) { } d i s c o n n e c t e d C a l l b a c k ( ) { v a r t ; n u l l = = = ( t = t h i s . _ $ E S ) | | v o i d 0 = = = t | | t . f o r E a c h ( ( t = > { v a r e ; r e t u r n n u l l = = = ( e = t . h o s t D i s c o n n e c t e d ) | | v o i d 0 = = = e ? v o i d 0 : e . c a l l ( t ) } ) ) } a t t r i b u t e C h a n g e d C a l l b a c k ( t , e , i ) { t h i s . _ $ A K ( t , i ) } _ $ E O ( t , e , i = v ) { v a r s ; c o n s t n = t h i s . c o n s t r u c t o r . _ $ E p ( t , i ) ; i f ( v o i d 0 ! = = n & & ! 0 = = = i . r e f l e c t ) { c o n s t o = ( v o i d 0 ! = = ( n u l l = = = ( s = i . c o n v e r t e r ) | | v o i d 0 = = = s ? v o i d 0 : s . t o A t t r i b u t e ) ? i . c o n v e r t e r : u ) . t o A t t r i b u t e ( e , i . t y p e ) ; t h i s . _ $ E l = t , n u l l = = o ? t h i s . r e m o v e A t t r i b u t e ( n ) : t h i s . s e t A t t r i b u t e ( n , o ) , t h i s . _ $ E l = n u l l } } _ $ A K ( t , e ) { v a r i ; c o n s t s = t h i s . c o n s t r u c t o r , n = s . _ $ E v . g e t ( t ) ; i f ( v o i d 0 ! = = n & & t h i s . _ $ E l ! = = n ) { c o n s t t = s . g e t P r o p e r t y O p t i o n s ( n ) , o = " f u n c t i o n " = = t y p e o f t . c o n v e r t e r ? { f r o m A t t r i b u t e : t . c o n v e r t e r
2023-10-07 21:06:36 +00:00
/ * *
* @ license
* Copyright 2017 Google LLC
* SPDX - License - Identifier : BSD - 3 - Clause
* /
No longer automatically download external font, holidays and centaurs
This commit now makes the download of the Google-provided font opt-in,
rather than automatic. This is preferable, as most people wouldn't
care to have Google automatically know they're running this thing. For
modern browsers that understand CSS `::part()` syntax, this commit also
provides a way for them to specify exactly what font they want, and an
example of that is provided in the `./demo` folder.
There are a number of minor details in the Journal Entries that reflect
the growth and change of the culture. One was that several of the species
introduced, including Centaurs, Tindals, Felinzi and Uncia, had their
own language, and Centaurs had their own calendar. Most fell off as
use of the common Quen made everything easier, and Uncia found Felinzi
easy to learn and use and gave the felinoid species a common tongue that
worked well with their mouth and throat shapes. But I've added the
Centaur calendar. Use the flag attribute "centaurs" (no arguments,
it's a flag) in the component's HTML tag to see it. Again, the use
can be seen in the demo folder.
I've also fixed a bug where the holidays, which belong to no month and
have no weekday, are also rendered correctly.
2023-10-08 17:44:48 +00:00
var _ ; f [ $ ] = ! 0 , f . elementProperties = new Map , f . elementStyles = [ ] , f . shadowRootOptions = { mode : "open" } , null == d || d ( { ReactiveElement : f } ) , ( null !== ( l = h . reactiveElementVersions ) && void 0 !== l ? l : h . reactiveElementVersions = [ ] ) . push ( "1.6.3" ) ; const g = window , m = g . trustedTypes , A = m ? m . createPolicy ( "lit-html" , { createHTML : t => t } ) : void 0 , y = "$lit$" , E = ` lit $ ${ ( Math . random ( ) + "" ) . slice ( 9 ) } $ ` , b = "?" + E , S = ` < ${ b } > ` , w = document , C = ( ) => w . createComment ( "" ) , U = t => null === t || "object" != typeof t && "function" != typeof t , x = Array . isArray , k = "[ \t\n\f\r]" , P = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g , H = /-->/g , N = />/g , O = RegExp ( ` >| ${ k } (?:([^ \\ s"'>=/]+)( ${ k } *= ${ k } *(?:[^ \t \n \f \r "' \` <>=]|("|')|))| $ ) ` , "g" ) , R = /'/g , T = /"/g , M = /^(?:script|style|textarea|title)$/i , D = ( t => ( e , ... i ) => ( { _$litType$ : t , strings : e , values : i } ) ) ( 1 ) , I = Symbol . for ( "lit-noChange" ) , z = Symbol . for ( "lit-nothing" ) , B = new WeakMap , j = w . createTreeWalker ( w , 129 , null , ! 1 ) ; function F ( t , e ) { if ( ! Array . isArray ( t ) || ! t . hasOwnProperty ( "raw" ) ) throw Error ( "invalid template strings array" ) ; return void 0 !== A ? A . createHTML ( e ) : e } const L = ( t , e ) => { const i = t . length - 1 , s = [ ] ; let n , o = 2 === e ? "<svg>" : "" , r = P ; for ( let e = 0 ; e < i ; e ++ ) { const i = t [ e ] ; let l , h , a = - 1 , c = 0 ; for ( ; c < i . length && ( r . lastIndex = c , h = r . exec ( i ) , null !== h ) ; ) c = r . lastIndex , r === P ? "!--" === h [ 1 ] ? r = H : void 0 !== h [ 1 ] ? r = N : void 0 !== h [ 2 ] ? ( M . test ( h [ 2 ] ) && ( n = RegExp ( "</" + h [ 2 ] , "g" ) ) , r = O ) : void 0 !== h [ 3 ] && ( r = O ) : r === O ? ">" === h [ 0 ] ? ( r = null != n ? n : P , a = - 1 ) : void 0 === h [ 1 ] ? a = - 2 : ( a = r . lastIndex - h [ 2 ] . length , l = h [ 1 ] , r = void 0 === h [ 3 ] ? O : '"' === h [ 3 ] ? T : R ) : r === T || r === R ? r = O : r === H || r === N ? r = P : ( r = O , n = void 0 ) ; const d = r === O && t [ e + 1 ] . startsWith ( "/>" ) ? " " : "" ; o += r === P ? i + S : a >= 0 ? ( s . push ( l ) , i . slice ( 0 , a ) + y + i . slice ( a ) + E + d ) : i + E + ( - 2 === a ? ( s . push ( void 0 ) , e ) : d ) } return [ F ( t , o + ( t [ i ] || "<?>" ) + ( 2 === e ? "</svg>" : "" ) ) , s ] } ; class V { constructor ( { strings : t , _$litType$ : e } , i ) { let s ; this . parts = [ ] ; let n = 0 , o = 0 ; const r = t . length - 1 , l = this . parts , [ h , a ] = L ( t , e ) ; if ( this . el = V . createElement ( h , i ) , j . currentNode = this . el . content , 2 === e ) { const t = this . el . content , e = t . firstChild ; e . remove ( ) , t . append ( ... e . childNodes ) } for ( ; null !== ( s = j . nextNode ( ) ) && l . length < r ; ) { if ( 1 === s . nodeType ) { if ( s . hasAttributes ( ) ) { const t = [ ] ; for ( const e of s . getAttributeNames ( ) ) if ( e . endsWith ( y ) || e . startsWith ( E ) ) { const i = a [ o ++ ] ; if ( t . push ( e ) , void 0 !== i ) { const t = s . getAttribute ( i . toLowerCase ( ) + y ) . split ( E ) , e = /([.?@])?(.*)/ . exec ( i ) ; l . push ( { type : 1 , index : n , name : e [ 2 ] , strings : t , ctor : "." === e [ 1 ] ? J : "?" === e [ 1 ] ? G : "@" === e [ 1 ] ? Q : K } ) } else l . push ( { type : 6 , index : n } ) } for ( const e of t ) s . removeAttribute ( e ) } if ( M . test ( s . tagName ) ) { const t = s . textContent . split ( E ) , e = t . length - 1 ; if ( e > 0 ) { s . textContent = m ? m . emptyScript : "" ; for ( let i = 0 ; i < e ; i ++ ) s . append ( t [ i ] , C ( ) ) , j . nextNode ( ) , l . push ( { type : 2 , index : ++ n } ) ; s . append ( t [ e ] , C ( ) ) } } } else if ( 8 === s . nodeType ) if ( s . data === b ) l . push ( { type : 2 , index : n } ) ; else { let t = - 1 ; for ( ; - 1 !== ( t = s . data . indexOf ( E , t + 1 ) ) ; ) l . push ( { type : 7 , index : n } ) , t += E . length - 1 } n ++ } } static createElement ( t , e ) { const i = w . createElement ( "template" ) ; return i . innerHTML = t , i } } function W ( t , e , i = t , s ) { var n , o , r , l ; if ( e === I ) return e ; let h = void 0 !== s ? null === ( n = i . _$Co ) || void 0 === n ? void 0 : n [ s ] : i . _$Cl ; const a = U ( e ) ? void 0 : e . _$litDirective$ ; return ( null == h ? void 0 : h . constructor ) !== a && ( null === ( o = null == h ? void 0 : h . _$AO ) || void 0 === o || o . call ( h , ! 1 ) , void 0 === a ? h = void 0 : ( h = new a ( t ) , h . _$AT ( t , i , s ) ) , void 0 !== s ? ( null !== ( r = ( l = i ) . _$Co ) && void 0 !== r ? r : l . _$Co = [ ] ) [ s ] = h : i . _$Cl = h ) , void 0 !== h && ( e = W ( t , h . _$AS ( t , e . values ) , h , s ) ) , e } class q { constructor ( t , e ) { this . _$AV = [ ] , this . _$AN = void 0 , this . _$AD = t , this . _$AM = e } get parentNode ( ) { return this . _$AM . parentNode } get _$AU ( ) { return this . _$AM . _$AU } u ( t ) { var e ; const { el : { content : i } , parts : s } = this . _$AD , n = ( null !== ( e = null == t ? void 0 : t . creationScope ) && void 0 !== e ? e : w ) . importNode ( i , ! 0 ) ; j . currentNode = n ; let o = j . nextNode ( ) , r = 0 , l = 0 , h = s [ 0 ] ; for ( ; void 0 !== h ; ) { if ( r === h . index ) { let e ; 2 === h . type ? e = new Y ( o , o . nextSibling , this , t ) : 1 === h . type ? e = new h . ctor ( o , h . name , h . strings , this , t ) : 6 === h . type && ( e = new X ( o , this , t ) ) , this . _$AV . push ( e ) , h = s [ ++ l ] } r !== ( null == h ? void 0 : h . index ) && ( o = j . nextNode ( ) , r ++ ) } return j . currentNode = w , n } v ( t ) { let e = 0 ; for ( const i of this . _$AV ) void 0 !== i && ( void 0 !== i . strings ? ( i . _$AI ( t , i , e ) , e += i . strings . length - 2 ) : i . _$AI ( t [ e ] ) ) , e ++ } } class Y { constructor ( t , e , i , s ) { var n ; this . type = 2 , this . _$AH = z , this . _$AN = void
2023-10-07 21:06:36 +00:00
/ * *
* @ license
* Copyright 2017 Google LLC
* SPDX - License - Identifier : BSD - 3 - Clause
No longer automatically download external font, holidays and centaurs
This commit now makes the download of the Google-provided font opt-in,
rather than automatic. This is preferable, as most people wouldn't
care to have Google automatically know they're running this thing. For
modern browsers that understand CSS `::part()` syntax, this commit also
provides a way for them to specify exactly what font they want, and an
example of that is provided in the `./demo` folder.
There are a number of minor details in the Journal Entries that reflect
the growth and change of the culture. One was that several of the species
introduced, including Centaurs, Tindals, Felinzi and Uncia, had their
own language, and Centaurs had their own calendar. Most fell off as
use of the common Quen made everything easier, and Uncia found Felinzi
easy to learn and use and gave the felinoid species a common tongue that
worked well with their mouth and throat shapes. But I've added the
Centaur calendar. Use the flag attribute "centaurs" (no arguments,
it's a flag) in the component's HTML tag to see it. Again, the use
can be seen in the demo folder.
I've also fixed a bug where the holidays, which belong to no month and
have no weekday, are also rendered correctly.
2023-10-08 17:44:48 +00:00
* / } ; v a r i t , s t ; c l a s s n t e x t e n d s f { c o n s t r u c t o r ( ) { s u p e r ( . . . a r g u m e n t s ) , t h i s . r e n d e r O p t i o n s = { h o s t : t h i s } , t h i s . _ $ D o = v o i d 0 } c r e a t e R e n d e r R o o t ( ) { v a r t , e ; c o n s t i = s u p e r . c r e a t e R e n d e r R o o t ( ) ; r e t u r n n u l l ! = = ( t = ( e = t h i s . r e n d e r O p t i o n s ) . r e n d e r B e f o r e ) & & v o i d 0 ! = = t | | ( e . r e n d e r B e f o r e = i . f i r s t C h i l d ) , i } u p d a t e ( t ) { c o n s t e = t h i s . r e n d e r ( ) ; t h i s . h a s U p d a t e d | | ( t h i s . r e n d e r O p t i o n s . i s C o n n e c t e d = t h i s . i s C o n n e c t e d ) , s u p e r . u p d a t e ( t ) , t h i s . _ $ D o = e t ( e , t h i s . r e n d e r R o o t , t h i s . r e n d e r O p t i o n s ) } c o n n e c t e d C a l l b a c k ( ) { v a r t ; s u p e r . c o n n e c t e d C a l l b a c k ( ) , n u l l = = = ( t = t h i s . _ $ D o ) | | v o i d 0 = = = t | | t . s e t C o n n e c t e d ( ! 0 ) } d i s c o n n e c t e d C a l l b a c k ( ) { v a r t ; s u p e r . d i s c o n n e c t e d C a l l b a c k ( ) , n u l l = = = ( t = t h i s . _ $ D o ) | | v o i d 0 = = = t | | t . s e t C o n n e c t e d ( ! 1 ) } r e n d e r ( ) { r e t u r n I } } n t . f i n a l i z e d = ! 0 , n t . _ $ l i t E l e m e n t $ = ! 0 , n u l l = = = ( i t = g l o b a l T h i s . l i t E l e m e n t H y d r a t e S u p p o r t ) | | v o i d 0 = = = i t | | i t . c a l l ( g l o b a l T h i s , { L i t E l e m e n t : n t } ) ; c o n s t o t = g l o b a l T h i s . l i t E l e m e n t P o l y f i l l S u p p o r t ; n u l l = = o t | | o t ( { L i t E l e m e n t : n t } ) , ( n u l l ! = = ( s t = g l o b a l T h i s . l i t E l e m e n t V e r s i o n s ) & & v o i d 0 ! = = s t ? s t : g l o b a l T h i s . l i t E l e m e n t V e r s i o n s = [ ] ) . p u s h ( " 3 . 3 . 3 " ) ;
/ * *
* @ license
* Copyright 2017 Google LLC
* SPDX - License - Identifier : BSD - 3 - Clause
* /
const rt = ( t , e ) => "method" === e . kind && e . descriptor && ! ( "value" in e . descriptor ) ? { ... e , finisher ( i ) { i . createProperty ( e . key , t ) } } : { kind : "field" , key : Symbol ( ) , placement : "own" , descriptor : { } , originalKey : e . key , initializer ( ) { "function" == typeof e . initializer && ( this [ e . key ] = e . initializer . call ( this ) ) } , finisher ( i ) { i . createProperty ( e . key , t ) } } ; const lt = [ 0 , 31 , 59 , 90 , 120 , 151 , 181 , 212 , 243 , 273 , 304 , 334 ] , ht = [ 0 , 1 , 25 , 49 , 73 , 97 , 121 , 145 , 146 , 147 , 171 , 195 , 211 , 243 , 267 , 291 , 292 ] , at = [ "Yestar" , "Narrin" , "Nenim" , "Sulim" , "Virta" , "Lothess" , "Narnya" , "Attendes" , "Loende" , "Cerim" , "Urim" , "Yavar" , "Narquel" , "Hiss" , "Ring" , "Mettare" ] , ct = [ "Seren" , "Anar" , "Noren" , "Aldea" , "Erwer" , "Elenya" ] , dt = t => ` ${ t < 10 ? "0" : "" } ${ t . toFixed ( 0 ) } ` ; class ut { constructor ( t , e = 1e3 ) { this . value = new Date , ( this . host = t ) . addController ( this ) , this . timeout = e } hostConnected ( ) { this . _timerID = setInterval ( ( ( ) => { this . value = new Date , this . host . requestUpdate ( ) } ) , this . timeout ) } hostDisconnected ( ) { clearInterval ( this . _timerID ) , this . _timerID = void 0 } } const pt = o ` *,::after,::before{all:unset;display:revert;box-sizing:border-box}:host{padding-top:0;letter-spacing:1px;--default-font-size:calc(clamp(0.63rem, calc(0.5rem + 0.63vw), 0.9rem));font-family:Bitwise,Audiowide,Tahoma,Arial,Helvetica,sans-serif;flex:0 1 auto;text-align:left}div#clock{padding:.175rem .375rem .175rem .375rem;background-color:var(--pendorclock-background-color,#000030);color:var(--pendorclock-color,#fff);font-size:var(--pendorclock-font-size,--default-font-size);line-height:var(--pendorclock-line-height,1.35);font-weight:var(--pendorclock-font-weight,700);min-width:20ch;max-width:35ch;text-align:center} ` , vt = o ` @font-face{font-family:Audiowide;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/audiowide/v20/l7gdbjpo0cum0ckerWCdlg_O.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD} ` ; class $t extends nt { static get styles ( ) { return pt } constructor ( ) { super ( ) , this . useInternalFont = ! 1 , this . clock = new ut ( this , 250 ) } connectedCallback ( ) { if ( super . connectedCallback ( ) , ! this . useInternalFont ) return ; if ( document . getElementById ( "pendor-font-block" ) ) return ; const t = document . head || document . getElementsByTagName ( "head" ) [ 0 ] , e = D ` <style id="pendor-font-block"> ${ vt } </style> ` ; et ( e , t ) } tick ( t ) { let e = lt [ t . getMonth ( ) ] + t . getDate ( ) ; t . getMonth ( ) > 2 && t . getFullYear ( ) % 4 == 0 && e ++ , e = 24 * e + t . getHours ( ) - 16 ; const i = t . getFullYear ( ) + 16 , s = e / 30 ; e %= 30 ; let n = ( t . getSeconds ( ) + 60 * t . getMinutes ( ) ) / 2.25 ; const o = n / 40 ; n %= 40 ; const r = ` ${ e . toFixed ( 0 ) } : ${ dt ( o ) } : ${ dt ( n ) } ` , l = ht . findIndex ( ( t => t >= s ) ) ; if ( void 0 === l || void 0 === ht [ l - 1 ] ) return ; const h = s - ht [ l - 1 ] , a = ( Math . ceil ( h ) - 1 ) % 6 ; return ` ${ ct [ a ] } , ${ at [ l - 1 ] } ${ h . toFixed ( 0 ) } , 00 ${ i . toFixed ( 0 ) } , ${ r } ` } render ( ) { return D ` <div id="clock" part="clock"> ${ this . tick ( this . clock . value ) } </div> ` } } ! function ( t , e , i , s ) { var n , o = arguments . length , r = o < 3 ? e : null === s ? s = Object . getOwnPropertyDescriptor ( e , i ) : s ; if ( "object" == typeof Reflect && "function" == typeof Reflect . decorate ) r = Reflect . decorate ( t , e , i , s ) ; else for ( var l = t . length - 1 ; l >= 0 ; l -- ) ( n = t [ l ] ) && ( r = ( o < 3 ? n ( r ) : o > 3 ? n ( e , i , r ) : n ( e , i ) ) || r ) ; o > 3 && r && Object . defineProperty ( e , i , r ) } ( [ function ( t ) { return ( e , i ) => void 0 !== i ? ( ( t , e , i ) => { e . constructor . createProperty ( i , t ) } ) ( t , e , i ) : rt ( t , e ) } ( { type : Boolean , attribute : "with-internal-font" } ) ] , $t . prototype , "useInternalFont" , void 0 ) , window . customElements . get ( "pendor-clock" ) || window . customElements . define ( "pendor-clock" , $t ) ;