@astl/astrolabe 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/cdn/astrolabe-editor.js +2 -2
  3. package/dist/cdn/astrolabe.standalone.js +67 -42
  4. package/dist/cdn/chunks/{help-form-CDg3TCwI.js → help-form-DhIyMziw.js} +14 -10
  5. package/dist/cdn/chunks/help-form-DhIyMziw.js.map +1 -0
  6. package/dist/cdn/chunks/{insert-menu-7vANVmTK.js → insert-menu-Cn2E54V9.js} +2 -2
  7. package/dist/cdn/chunks/{insert-menu-7vANVmTK.js.map → insert-menu-Cn2E54V9.js.map} +1 -1
  8. package/dist/cdn/chunks/{issue-list-BT9qvnZU.js → issue-list-CQKAW39i.js} +2 -2
  9. package/dist/cdn/chunks/{issue-list-BT9qvnZU.js.map → issue-list-CQKAW39i.js.map} +1 -1
  10. package/dist/cdn/chunks/messages-Qzse5KMX.js +2 -0
  11. package/dist/cdn/chunks/messages-Qzse5KMX.js.map +1 -0
  12. package/dist/cdn/chunks/{source-view-CZVxgTNQ.js → source-view-BlJ2mRns.js} +2 -2
  13. package/dist/cdn/chunks/{source-view-CZVxgTNQ.js.map → source-view-BlJ2mRns.js.map} +1 -1
  14. package/dist/cdn/chunks/{style-form-DUGbG_kL.js → style-form-D1C2sHzg.js} +2 -2
  15. package/dist/cdn/chunks/{style-form-DUGbG_kL.js.map → style-form-D1C2sHzg.js.map} +1 -1
  16. package/dist/cdn/chunks/{style-messages-qdf3pZbT.js → style-messages-B136zSom.js} +2 -2
  17. package/dist/cdn/chunks/{style-messages-qdf3pZbT.js.map → style-messages-B136zSom.js.map} +1 -1
  18. package/dist/cdn/chunks/{style-rules-D17QGzXk.js → style-rules-ChqPVgZn.js} +2 -2
  19. package/dist/cdn/chunks/{style-rules-D17QGzXk.js.map → style-rules-ChqPVgZn.js.map} +1 -1
  20. package/dist/cdn/chunks/{styles-CdJT6Pp9.js → styles-CXkkL_Qi.js} +2 -2
  21. package/dist/cdn/chunks/{styles-CdJT6Pp9.js.map → styles-CXkkL_Qi.js.map} +1 -1
  22. package/dist/cdn/chunks/surface-BhmSAte0.js +1058 -0
  23. package/dist/cdn/chunks/surface-BhmSAte0.js.map +1 -0
  24. package/package.json +9 -9
  25. package/dist/cdn/chunks/help-form-CDg3TCwI.js.map +0 -1
  26. package/dist/cdn/chunks/messages-D1aJfyS_.js +0 -2
  27. package/dist/cdn/chunks/messages-D1aJfyS_.js.map +0 -1
  28. package/dist/cdn/chunks/surface-C6wtQkTY.js +0 -1037
  29. package/dist/cdn/chunks/surface-C6wtQkTY.js.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # @astl/astrolabe
2
2
 
3
+ ## 0.1.3
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [8b0f9f6]
8
+ - Updated dependencies [8b0f9f6]
9
+ - Updated dependencies [8b0f9f6]
10
+ - @astl/editor-tiptap@0.1.3
11
+ - @astl/editor@0.1.3
12
+ - @astl/components@0.1.3
13
+ - @astl/core@0.1.3
14
+ - @astl/engine@0.1.3
15
+ - @astl/player@0.1.3
16
+ - @astl/server@0.1.3
17
+ - @astl/tokens@0.1.3
18
+
3
19
  ## 0.1.2
4
20
 
5
21
  ### Patch Changes
@@ -1,4 +1,4 @@
1
- import{S as e,_ as t,a as n,b as r,c as i,d as a,f as o,g as s,h as c,i as l,l as u,m as d,n as f,o as p,p as m,r as ee,s as te,t as h,u as ne,v as re,w as ie,x as ae,y as oe}from"./chunks/definitions-CNX90WtL.js";import{$ as se,$t as ce,A as le,At as ue,B as de,Bt as fe,C as g,Ct as pe,D as me,Dt as he,E as _,Et as ge,F as _e,Ft as ve,G as ye,Gt as be,H as xe,Ht as Se,I as Ce,It as we,J as Te,Jt as Ee,K as v,Kt as De,L as Oe,Lt as ke,M as y,Mt as Ae,N as je,Nt as Me,O as Ne,Ot as Pe,P as Fe,Pt as b,Q as Ie,Qt as Le,R as Re,Rt as ze,Sn as Be,St as Ve,T as x,Tt as He,U as Ue,Ut as We,V as Ge,Vt as Ke,W as qe,Wt as Je,X as Ye,Xt as Xe,Y as Ze,Yt as Qe,Z as $e,Zt as et,_n as tt,_t as nt,a as rt,an as it,at,b as S,bn as ot,bt as st,cn as ct,ct as lt,dn as ut,dt,en as ft,et as pt,fn as mt,ft as ht,gn as gt,gt as _t,hn as vt,ht as yt,in as bt,it as xt,j as St,jt as C,k as Ct,kt as wt,ln as Tt,lt as Et,mn as Dt,mt as Ot,nn as kt,nt as At,on as jt,ot as Mt,pn as Nt,pt as Pt,q as Ft,qt as It,rn as Lt,rt as Rt,sn as zt,st as Bt,tn as Vt,tt as Ht,un as Ut,ut as Wt,v as w,vn as Gt,vt as Kt,wt as qt,xn as Jt,xt as Yt,y as Xt,yn as Zt,yt as Qt,z as $t,zt as en}from"./chunks/runtime-DxAbpr3S.js";import{r as tn}from"./chunks/audio-manifest-B9FWQzRy.js";import{r as nn}from"./chunks/callout-manifest-Cb12O4jl.js";import{r as rn}from"./chunks/categorise-manifest-C_hEDVYQ.js";import{r as an}from"./chunks/choice-manifest-C-XahD7m.js";import{r as on}from"./chunks/crossword-manifest-2qlu7AYd.js";import{r as sn}from"./chunks/drop-manifest-bzNOa5ks.js";import{r as cn}from"./chunks/flash-cards-manifest-B8nWXbRy.js";import{r as ln}from"./chunks/gap-manifest-RSydA41N.js";import{r as un}from"./chunks/hotspot-manifest-CNs1oiZ_.js";import{r as dn}from"./chunks/image-drop-manifest-BZ6hCoAd.js";import{r as fn}from"./chunks/image-label-manifest--1CLRJzd.js";import{r as pn}from"./chunks/long-answer-manifest-BYJpZRtB.js";import{r as mn}from"./chunks/mark-words-manifest-Cs2pXCEx.js";import{r as hn}from"./chunks/match-manifest-D0UfoajU.js";import{r as gn}from"./chunks/memory-manifest-D1589iR0.js";import{r as _n}from"./chunks/order-manifest-J5IXN0he.js";import{r as vn}from"./chunks/select-manifest-BBMbvdkH.js";import{r as yn}from"./chunks/true-false-manifest-B4exv60u.js";import{r as bn}from"./chunks/video-manifest-8OwkhhAI.js";import{r as xn}from"./chunks/word-bank-manifest-C1FSo1kH.js";import{o as Sn}from"./chunks/word-search-manifest-Fg1a59Z1.js";import{d as Cn,n as wn,r as Tn,s as En,u as Dn}from"./chunks/scan-jWgPnVxA.js";import{a as On,c as kn,d as An,f as T,i as E,l as jn,n as D,o as O,r as Mn,s as Nn,t as Pn}from"./chunks/insert-menu-7vANVmTK.js";import{n as Fn,t as k}from"./chunks/messages-D1aJfyS_.js";import{n as In,s as Ln,t as Rn}from"./chunks/style-model-ZXNe_c8R.js";import{n as A,r as j,t as M}from"./chunks/styles-CdJT6Pp9.js";import{c as zn,r as Bn,s as Vn}from"./chunks/directive-helpers-D7lOZKnB.js";import{t as N}from"./chunks/live-jdiyYln2.js";import{i as Hn,n as Un,r as Wn,t as Gn}from"./chunks/issue-list-BT9qvnZU.js";import{t as Kn}from"./chunks/roving-focus-BxGgi2DD.js";var qn={manifest:tn,messages:e,label:`editor.label`,description:`editor.description`,icon:`speaker-high`,idPrefix:`audio`,template:`<astl-audio id="{{id}}" label="{{t:template.label}}"><astl-transcript>{{t:template.transcript}}</astl-transcript></astl-audio>`,fields:[{kind:`attribute`,name:`label`,label:`editor.title`,help:`editor.titleHelp`},{kind:`attribute`,name:`src`,label:`editor.src`,help:`editor.srcHelp`,accept:`audio/*`},{kind:`text-list`,tag:`astl-transcript`,label:`editor.transcript`,help:`editor.transcriptHelp`,multiline:!0}]},Jn={manifest:nn,messages:ae,label:`editor.label`,description:`editor.description`,icon:`info`,idPrefix:`callout`,template:`<astl-callout id="{{id}}" kind="tip"><p>{{t:template.text}}</p></astl-callout>`,fields:[{kind:`attribute`,name:`kind`,label:`editor.kind`}]},Yn={manifest:rn,messages:r,label:`editor.label`,description:`editor.description`,icon:`kanban`,idPrefix:`cat`,template:`<astl-categorise id="{{id}}"><astl-prompt>{{t:template.prompt}}</astl-prompt><astl-category id="a">{{t:template.categoryA}}</astl-category><astl-category id="b">{{t:template.categoryB}}</astl-category><astl-card id="a1" category="a">{{t:template.cardA1}}</astl-card><astl-card id="a2" category="a">{{t:template.cardA2}}</astl-card><astl-card id="b1" category="b">{{t:template.cardB1}}</astl-card><astl-card id="b2" category="b">{{t:template.cardB2}}</astl-card></astl-categorise>`,templates:[{id:`sort-into-groups`,label:`template.sort.label`,description:`template.sort.description`,template:`<h3>{{t:template.sort.heading}}</h3><p>{{t:template.sort.instruction}}</p><astl-categorise id="{{id}}"><astl-prompt>{{t:template.sort.prompt}}</astl-prompt><astl-category id="a">{{t:template.sort.groupA}}</astl-category><astl-category id="b">{{t:template.sort.groupB}}</astl-category><astl-card id="a1" category="a">{{t:template.sort.card1}}</astl-card><astl-card id="b1" category="b">{{t:template.sort.card2}}</astl-card><astl-card id="a2" category="a">{{t:template.sort.card3}}</astl-card><astl-card id="b2" category="b">{{t:template.sort.card4}}</astl-card></astl-categorise>`}],fields:[{kind:`child-choice`,tag:`astl-card`,attribute:`category`,options:`astl-category`,label:`editor.cardCategories`,help:`editor.cardCategoriesHelp`},{kind:`child-table`,tag:`astl-category`,columns:[{attribute:`palette`,label:`editor.palette`}],label:`editor.groups`,help:`editor.groupsHelp`},{kind:`attribute`,name:`scoring`,label:`editor.scoring`,help:`editor.scoringHelp`},{kind:`attribute`,name:`points`,label:`editor.points`}]},Xn={manifest:an,messages:oe,label:`editor.label`,description:`editor.description`,icon:`list-checks`,idPrefix:`choice`,template:`<astl-choice id="{{id}}"><astl-prompt>{{t:template.prompt}}</astl-prompt><astl-option id="a" correct>{{t:template.option1}}</astl-option><astl-option id="b">{{t:template.option2}}</astl-option><astl-option id="c">{{t:template.option3}}</astl-option></astl-choice>`,templates:[{id:`multiple-choice`,label:`template.choice.label`,description:`template.choice.description`,template:`<h3>{{t:template.choice.heading}}</h3><p>{{t:template.choice.instruction}}</p><astl-choice id="{{id}}"><astl-prompt>{{t:template.choice.prompt}}</astl-prompt><astl-option id="a">{{t:template.choice.option1}}</astl-option><astl-option id="b" correct>{{t:template.choice.option2}}</astl-option><astl-option id="c">{{t:template.choice.option3}}</astl-option></astl-choice>`}],fields:[{kind:`child-flag`,tag:`astl-option`,attribute:`correct`,label:`editor.correctOptions`},{kind:`attribute`,name:`multiple`,label:`editor.multiple`},{kind:`attribute`,name:`shuffle`,label:`editor.shuffle`},{kind:`attribute`,name:`scoring`,label:`editor.scoring`,help:`editor.scoringHelp`},{kind:`attribute`,name:`points`,label:`editor.points`}]},Zn=e=>`<astl-crossword id="{{id}}" rows="5" columns="5">${e}<astl-crossword-word id="w1" answer="{{t:template.crossword.across}}" row="0" column="0" direction="across">{{t:template.crossword.acrossClue}}</astl-crossword-word><astl-crossword-word id="w2" answer="{{t:template.crossword.down}}" row="0" column="0" direction="down">{{t:template.crossword.downClue}}</astl-crossword-word></astl-crossword>`,Qn={manifest:on,messages:re,label:`editor.label`,description:`editor.description`,icon:`grid-four`,idPrefix:`crossword`,template:Zn(`<astl-prompt>{{t:template.crossword.prompt}}</astl-prompt>`),templates:[{id:`crossword`,label:`template.crossword`,description:`template.crossword.description`,template:`<h3>{{t:template.crossword.heading}}</h3><p>{{t:template.crossword.prompt}}</p>${Zn(``)}`}],fields:[{kind:`attribute`,name:`rows`,label:`editor.rows`},{kind:`attribute`,name:`columns`,label:`editor.columns`},{kind:`child-table`,tag:`astl-crossword-word`,label:`editor.words`,help:`editor.wordsHelp`,columns:[{attribute:`answer`,label:`editor.answer`},{attribute:`row`,label:`editor.row`},{attribute:`column`,label:`editor.column`},{attribute:`direction`,label:`editor.direction`}]},{kind:`attribute`,name:`scoring`,label:`editor.scoring`},{kind:`attribute`,name:`points`,label:`editor.points`}]},$n={manifest:sn,messages:t,label:`editor.label`,description:`editor.description`,icon:`arrow-square-in`,idPrefix:`drop`,template:`<astl-drop id="{{id}}" answer="a" bank=""></astl-drop>`,companion:{tag:`astl-word-bank`,attribute:`bank`},fields:[{kind:`attribute`,name:`answer`,label:`editor.answer`,help:`editor.answerHelp`,options:{from:`bank`,tag:`astl-word`}},{kind:`attribute`,name:`bank`,label:`editor.bank`,help:`editor.bankHelp`},{kind:`attribute`,name:`points`,label:`editor.points`}]},er=`https://assets.example.org/flash-cards/`,P=(e,t)=>`<astl-front>${e}</astl-front><astl-back>{{t:template.cards.${t}}}</astl-back>`,tr=e=>`<img src="${er}${e}.svg" alt="{{t:template.cards.${e}}}" width="96" height="96">`,nr={manifest:cn,messages:s,label:`editor.label`,description:`editor.description`,icon:`cards`,idPrefix:`cards`,template:`<astl-flash-cards id="{{id}}"><astl-front>{{t:template.front}}</astl-front><astl-back>{{t:template.back}}</astl-back></astl-flash-cards>`,templates:[{id:`flash-cards`,label:`editor.template.cards`,description:`editor.template.cards.description`,template:`<h3>{{t:template.cards.title}}</h3><p>{{t:template.cards.instruction}}</p><astl-flash-cards id="{{id}}">`+P(tr(`sun`),`sunBack`)+P(tr(`moon`),`moonBack`)+P(`{{t:template.cards.mars}}`,`marsBack`)+P(`{{t:template.cards.saturn}}`,`saturnBack`)+`</astl-flash-cards>`}],fields:[{kind:`text-list`,tag:`astl-back`,label:`editor.backs`,help:`editor.backsHelp`}]},rr={manifest:ln,messages:c,label:`editor.label`,description:`editor.description`,icon:`text-t`,idPrefix:`gap`,template:`<astl-gap id="{{id}}" answer="{{selection}}"></astl-gap>`,templates:[{id:`fill-the-gaps`,label:`template.fill.label`,description:`template.fill.description`,template:`<h3>{{t:template.fill.heading}}</h3><p>{{t:template.fill.instruction}}</p><p>{{t:template.fill.start}} <astl-gap id="{{id}}" answer="{{t:template.fill.answer1}}"></astl-gap> {{t:template.fill.middle}} <astl-gap answer="{{t:template.fill.answer2}}"></astl-gap>{{t:template.fill.end}}</p>`}],fields:[{kind:`attribute`,name:`answer`,label:`editor.answer`},{kind:`text-list`,tag:`astl-alt`,label:`editor.alternatives`,help:`editor.alternativesHelp`},{kind:`attribute`,name:`type`,label:`editor.type`},{kind:`attribute`,name:`case`,label:`editor.case`},{kind:`attribute`,name:`marks`,label:`editor.marks`,help:`editor.marksHelp`},{kind:`attribute`,name:`tolerance`,label:`editor.tolerance`},{kind:`attribute`,name:`width`,label:`editor.width`},{kind:`attribute`,name:`points`,label:`editor.points`}]},ir={manifest:un,messages:d,label:`editor.label`,description:`editor.description`,icon:`crosshair`,idPrefix:`hotspot`,template:`<astl-hotspot id="{{id}}"><astl-prompt>{{t:template.prompt}}</astl-prompt><astl-hotspot-region id="r1" x="5" y="10" width="40" height="80" label="{{t:template.place1}}" correct></astl-hotspot-region><astl-hotspot-region id="r2" x="55" y="10" width="40" height="80" label="{{t:template.place2}}"></astl-hotspot-region></astl-hotspot>`,templates:[{id:`find-it-in-the-picture`,label:`template.find.label`,description:`template.find.description`,template:`<h3>{{t:template.find.heading}}</h3><p>{{t:template.find.instruction}}</p><astl-hotspot id="{{id}}" multiple><astl-prompt>{{t:template.find.prompt}}</astl-prompt><astl-hotspot-region id="r1" x="4" y="6" width="22" height="26" label="{{t:template.find.topLeft}}" correct></astl-hotspot-region><astl-hotspot-region id="r2" shape="circle" x="85" y="18" r="10" label="{{t:template.find.topRight}}"></astl-hotspot-region><astl-hotspot-region id="r3" shape="circle" x="50" y="50" r="12" label="{{t:template.find.centre}}" correct></astl-hotspot-region><astl-hotspot-region id="r4" shape="circle" x="15" y="82" r="10" label="{{t:template.find.bottomLeft}}"></astl-hotspot-region><astl-hotspot-region id="r5" x="74" y="68" width="22" height="26" label="{{t:template.find.bottomRight}}" correct></astl-hotspot-region></astl-hotspot>`}],fields:[{kind:`picture-regions`,tag:`astl-hotspot-region`,src:`src`,label:`editor.regions`,help:`editor.regionsHelp`},{kind:`attribute`,name:`alt`,label:`editor.alt`,help:`editor.altHelp`},{kind:`child-flag`,tag:`astl-hotspot-region`,attribute:`correct`,label:`editor.correct`,help:`editor.correctHelp`},{kind:`attribute`,name:`multiple`,label:`editor.multiple`},{kind:`attribute`,name:`outline`,label:`editor.outline`},{kind:`attribute`,name:`scoring`,label:`editor.scoring`,help:`editor.scoringHelp`},{kind:`attribute`,name:`points`,label:`editor.points`}]},ar={manifest:dn,messages:m,label:`editor.label`,description:`editor.description`,icon:`tag`,idPrefix:`image-drop`,template:`<astl-image-drop id="{{id}}"><astl-prompt>{{t:template.prompt}}</astl-prompt><astl-image-drop-zone id="z1" x="10" y="35" width="30" height="30" answer="l1"></astl-image-drop-zone><astl-image-drop-zone id="z2" x="60" y="35" width="30" height="30" answer="l2"></astl-image-drop-zone><astl-image-drop-label id="l1">{{t:template.label1}}</astl-image-drop-label><astl-image-drop-label id="l2">{{t:template.label2}}</astl-image-drop-label></astl-image-drop>`,templates:[{id:`drag-labels-onto-the-picture`,label:`template.drag.label`,description:`template.drag.description`,template:`<h3>{{t:template.drag.heading}}</h3><p>{{t:template.drag.instruction}}</p><astl-image-drop id="{{id}}"><astl-prompt>{{t:template.drag.prompt}}</astl-prompt><astl-image-drop-zone id="z1" x="20" y="5" width="60" height="25" answer="l1"></astl-image-drop-zone><astl-image-drop-zone id="z2" x="20" y="37.5" width="60" height="25" answer="l2"></astl-image-drop-zone><astl-image-drop-zone id="z3" x="20" y="70" width="60" height="25" answer="l3"></astl-image-drop-zone><astl-image-drop-label id="l1">{{t:template.drag.label1}}</astl-image-drop-label><astl-image-drop-label id="l2">{{t:template.drag.label2}}</astl-image-drop-label><astl-image-drop-label id="l3">{{t:template.drag.label3}}</astl-image-drop-label><astl-image-drop-label id="l4">{{t:template.drag.label4}}</astl-image-drop-label></astl-image-drop>`}],fields:[{kind:`picture-regions`,tag:`astl-image-drop-zone`,src:`src`,label:`editor.zones`,help:`editor.zonesHelp`},{kind:`attribute`,name:`alt`,label:`editor.alt`,help:`editor.altHelp`},{kind:`child-choice`,tag:`astl-image-drop-zone`,attribute:`answer`,options:`astl-image-drop-label`,label:`editor.answers`,help:`editor.answersHelp`},{kind:`attribute`,name:`scoring`,label:`editor.scoring`,help:`editor.scoringHelp`},{kind:`attribute`,name:`points`,label:`editor.points`}]},or={manifest:fn,messages:o,label:`editor.label`,description:`editor.description`,icon:`map-pin`,idPrefix:`image-label`,template:`<astl-image-label id="{{id}}"><astl-prompt>{{t:template.prompt}}</astl-prompt><astl-image-label-pin id="p1" x="30" y="50" label="{{t:template.answer1}}"></astl-image-label-pin><astl-image-label-pin id="p2" x="70" y="50" label="{{t:template.answer2}}"></astl-image-label-pin></astl-image-label>`,templates:[{id:`label-the-picture`,label:`template.label.label`,description:`template.label.description`,template:`<h3>{{t:template.label.heading}}</h3><p>{{t:template.label.instruction}}</p><astl-image-label id="{{id}}"><astl-prompt>{{t:template.label.prompt}}</astl-prompt><astl-image-label-pin id="p1" x="50" y="15" label="{{t:template.label.top}}"></astl-image-label-pin><astl-image-label-pin id="p2" x="50" y="50" label="{{t:template.label.centre}}" alternatives="{{t:template.label.centreAlternative}}"></astl-image-label-pin><astl-image-label-pin id="p3" x="50" y="85" label="{{t:template.label.bottom}}"></astl-image-label-pin></astl-image-label>`}],fields:[{kind:`picture-points`,tag:`astl-image-label-pin`,src:`src`,label:`editor.pins`,help:`editor.pinsHelp`},{kind:`attribute`,name:`alt`,label:`editor.alt`,help:`editor.altHelp`},{kind:`child-text`,tag:`astl-image-label-pin`,attribute:`alternatives`,label:`editor.alternatives`,help:`editor.alternativesHelp`},{kind:`attribute`,name:`case`,label:`editor.case`},{kind:`attribute`,name:`scoring`,label:`editor.scoring`,help:`editor.scoringHelp`},{kind:`attribute`,name:`points`,label:`editor.points`}]},sr={manifest:pn,messages:a,label:`editor.label`,description:`editor.description`,icon:`note-pencil`,idPrefix:`answer`,template:`<astl-long-answer id="{{id}}"><astl-prompt>{{t:template.prompt}}</astl-prompt></astl-long-answer>`,templates:[{id:`write-your-answer`,label:`editor.template.write`,description:`editor.template.write.description`,template:`<h3>{{t:template.write.title}}</h3><p>{{t:template.write.instruction}}</p><astl-long-answer id="{{id}}" rows="6" minlength="100" maxlength="800" placeholder="{{t:template.write.placeholder}}"><astl-prompt>{{t:template.write.question}}</astl-prompt></astl-long-answer>`}],fields:[{kind:`attribute`,name:`rows`,label:`editor.rows`,help:`editor.rowsHelp`},{kind:`attribute`,name:`minlength`,label:`editor.minlength`,help:`editor.minlengthHelp`},{kind:`attribute`,name:`maxlength`,label:`editor.maxlength`,help:`editor.maxlengthHelp`},{kind:`attribute`,name:`placeholder`,label:`editor.placeholder`}]},F=(e,t,n=!1)=>`<astl-mark-word id="${e}"${n?` correct`:``}>{{t:template.${t}}}</astl-mark-word>`,I=(e,t)=>`<p>${[1,2,3,4].map(n=>F(`${e}${n}`,`odd.${e}${n}`,n===t)).join(` `)}</p>`,cr={manifest:mn,messages:ne,label:`editor.label`,description:`editor.description`,icon:`highlighter`,idPrefix:`mark-words`,template:`<astl-mark-words id="{{id}}"><p>{{t:template.before}} ${F(`w1`,`word`,!0)} {{t:template.after}}</p></astl-mark-words>`,templates:[{id:`select-words`,label:`template.select.label`,description:`template.select.description`,template:`<h3>{{t:template.select.heading}}</h3><p>{{t:template.select.instruction}}</p><astl-mark-words id="{{id}}"><astl-prompt>{{t:template.select.prompt}}</astl-prompt><p>{{t:template.select.before}} ${F(`w1`,`select.word1`,!0)} {{t:template.select.middle}} ${F(`w2`,`select.word2`)} {{t:template.select.and}} ${F(`w3`,`select.word3`,!0)} {{t:template.select.after}}</p></astl-mark-words>`},{id:`odd-word`,label:`template.odd.label`,description:`template.odd.description`,icon:`strikethrough`,template:`<h3>{{t:template.odd.heading}}</h3><p>{{t:template.odd.instruction}}</p><astl-mark-words id="{{id}}" variant="strike"><astl-prompt>{{t:template.odd.prompt}}</astl-prompt>${I(`a`,3)}${I(`b`,4)}${I(`c`,2)}</astl-mark-words>`}],fields:[{kind:`attribute`,name:`variant`,label:`editor.variant`},{kind:`child-flag`,tag:`astl-mark-word`,attribute:`correct`,label:`editor.correct`,help:`editor.correctHelp`},{kind:`attribute`,name:`scoring`,label:`editor.scoring`},{kind:`attribute`,name:`points`,label:`editor.points`}],wrap:{label:`editor.wrap`,child:`astl-mark-word`,attributes:{correct:``}}},lr=(e,t,n)=>`<astl-match id="{{id}}"${t}>${n}`+[`1`,`2`,`3`].map((t,n)=>`<astl-row id="r${t}" column="${`abc`[n]}">{{t:template.${e}.row${t}}}</astl-row>`).join(``)+[`A`,`B`,`C`].map(t=>`<astl-column id="${t.toLowerCase()}">{{t:template.${e}.column${t}}}</astl-column>`).join(``)+`</astl-match>`,ur=(e,t=``)=>`<h3>{{t:template.${e}.heading}}</h3><p>{{t:template.${e}.prompt}}</p>${lr(e,t,``)}`,dr={manifest:hn,messages:u,label:`editor.label`,description:`editor.description`,icon:`arrows-left-right`,idPrefix:`match`,template:lr(`matching`,``,`<astl-prompt>{{t:template.matching.prompt}}</astl-prompt>`),templates:[{id:`matching`,label:`template.matching`,description:`template.matching.description`,template:ur(`matching`)},{id:`join-the-lines`,label:`template.lines`,description:`template.lines.description`,template:ur(`lines`,` variant="lines"`)}],fields:[{kind:`child-choice`,tag:`astl-row`,attribute:`column`,options:`astl-column`,label:`editor.answers`,help:`editor.answersHelp`},{kind:`attribute`,name:`variant`,label:`editor.layout`},{kind:`attribute`,name:`scoring`,label:`editor.scoring`},{kind:`attribute`,name:`points`,label:`editor.points`}]},fr=e=>`<astl-memory id="{{id}}">${e}`+[`1`,`2`,`3`].map(e=>`<astl-card-a id="a${e}">{{t:template.memory.a${e}}}</astl-card-a><astl-card-b id="b${e}" pair="a${e}">{{t:template.memory.b${e}}}</astl-card-b>`).join(``)+`</astl-memory>`,pr={manifest:gn,messages:i,label:`editor.label`,description:`editor.description`,icon:`cards`,idPrefix:`memory`,template:fr(`<astl-prompt>{{t:template.memory.prompt}}</astl-prompt>`),templates:[{id:`memory`,label:`template.memory`,description:`template.memory.description`,template:`<h3>{{t:template.memory.heading}}</h3><p>{{t:template.memory.prompt}}</p>${fr(``)}`}],fields:[{kind:`child-choice`,tag:`astl-card-b`,attribute:`pair`,options:`astl-card-a`,label:`editor.pairs`,help:`editor.pairsHelp`},{kind:`attribute`,name:`scoring`,label:`editor.scoring`},{kind:`attribute`,name:`points`,label:`editor.points`}]},mr={manifest:_n,messages:te,label:`editor.label`,description:`editor.description`,icon:`list-numbers`,idPrefix:`order`,template:`<astl-order id="{{id}}"><astl-prompt>{{t:template.prompt}}</astl-prompt><astl-item id="a">{{t:template.item1}}</astl-item><astl-item id="b">{{t:template.item2}}</astl-item><astl-item id="c">{{t:template.item3}}</astl-item></astl-order>`,templates:[{id:`ordering`,label:`template.cycle.label`,description:`template.cycle.description`,template:`<h3>{{t:template.cycle.heading}}</h3><p>{{t:template.cycle.instruction}}</p><astl-order id="{{id}}"><astl-prompt>{{t:template.cycle.prompt}}</astl-prompt><astl-item id="a">{{t:template.cycle.item1}}</astl-item><astl-item id="b">{{t:template.cycle.item2}}</astl-item><astl-item id="c">{{t:template.cycle.item3}}</astl-item><astl-item id="d">{{t:template.cycle.item4}}</astl-item></astl-order>`}],fields:[{kind:`attribute`,name:`scoring`,label:`editor.scoring`,help:`editor.scoringHelp`},{kind:`attribute`,name:`variant`,label:`editor.variant`,help:`editor.variantHelp`},{kind:`attribute`,name:`points`,label:`editor.points`}]},hr={manifest:vn,messages:p,label:`editor.label`,description:`editor.description`,icon:`caret-circle-down`,idPrefix:`select`,template:`<astl-select id="{{id}}"><astl-option id="a" correct>{{t:template.option1}}</astl-option><astl-option id="b">{{t:template.option2}}</astl-option><astl-option id="c">{{t:template.option3}}</astl-option></astl-select>`,templates:[{id:`choose-from-a-list`,label:`template.list.label`,description:`template.list.description`,template:`<h3>{{t:template.list.heading}}</h3><p>{{t:template.list.instruction}}</p><p>{{t:template.list.start}} <astl-select id="{{id}}"><astl-option id="a">{{t:template.list.option1}}</astl-option><astl-option id="b" correct>{{t:template.list.option2}}</astl-option><astl-option id="c">{{t:template.list.option3}}</astl-option></astl-select>{{t:template.list.end}}</p>`},{id:`click-the-right-word`,label:`template.click.label`,description:`template.click.description`,template:`<h3>{{t:template.click.heading}}</h3><p>{{t:template.click.instruction}}</p><p>{{t:template.click.start1}} <astl-select id="{{id}}" variant="buttons"><astl-option id="a">{{t:template.click.option1a}}</astl-option><astl-option id="b" correct>{{t:template.click.option1b}}</astl-option><astl-option id="c">{{t:template.click.option1c}}</astl-option></astl-select>{{t:template.click.end}}</p><p>{{t:template.click.start2}} <astl-select variant="buttons"><astl-option id="a">{{t:template.click.option2a}}</astl-option><astl-option id="b" correct>{{t:template.click.option2b}}</astl-option></astl-select>{{t:template.click.end}}</p>`}],fields:[{kind:`child-flag`,tag:`astl-option`,attribute:`correct`,label:`editor.correctOption`,help:`editor.correctOptionHelp`},{kind:`attribute`,name:`shuffle`,label:`editor.shuffle`},{kind:`attribute`,name:`points`,label:`editor.points`},{kind:`attribute`,name:`variant`,label:`editor.variant`},{kind:`attribute`,name:`native`,label:`editor.native`,help:`editor.nativeHelp`,variants:[`dropdown`]}]},gr={manifest:yn,messages:n,label:`editor.label`,description:`editor.description`,icon:`toggle-left`,idPrefix:`tf`,template:`<astl-true-false id="{{id}}"><astl-prompt>{{t:template.prompt}}</astl-prompt><astl-statement id="s1" answer="true">{{t:template.statement1}}</astl-statement><astl-statement id="s2" answer="false">{{t:template.statement2}}</astl-statement></astl-true-false>`,templates:[{id:`true-or-false`,label:`template.tf.label`,description:`template.tf.description`,template:`<h3>{{t:template.tf.heading}}</h3><p>{{t:template.tf.instruction}}</p><astl-true-false id="{{id}}"><astl-statement id="s1" answer="true">{{t:template.tf.statement1}}</astl-statement><astl-statement id="s2" answer="false">{{t:template.tf.statement2}}</astl-statement><astl-statement id="s3" answer="true">{{t:template.tf.statement3}}</astl-statement></astl-true-false>`}],fields:[{kind:`child-choice`,tag:`astl-statement`,attribute:`answer`,label:`editor.answers`},{kind:`attribute`,name:`true-label`,label:`editor.trueLabel`,help:`editor.labelsHelp`},{kind:`attribute`,name:`false-label`,label:`editor.falseLabel`},{kind:`attribute`,name:`scoring`,label:`editor.scoring`},{kind:`attribute`,name:`points`,label:`editor.points`}]},_r={manifest:bn,messages:l,label:`editor.label`,description:`editor.description`,icon:`film-strip`,idPrefix:`video`,template:`<astl-video id="{{id}}" label="{{t:template.label}}"></astl-video>`,templates:[{id:`watch-then-answer`,label:`editor.template.watch`,description:`editor.template.watch.description`,template:`<h3>{{t:template.watch.title}}</h3><p>{{t:template.watch.instruction}}</p><astl-callout kind="tip"><p>{{t:template.watch.tip}}</p></astl-callout><astl-video id="{{id}}" label="{{t:template.watch.label}}" youtube="https://youtu.be/Bq7mT2kWx4E"></astl-video><p>{{t:template.watch.sentence}} <astl-gap answer="{{t:template.watch.gap}}"></astl-gap>.</p>`}],fields:[{kind:`attribute`,name:`label`,label:`editor.title`,help:`editor.titleHelp`},{kind:`attribute`,name:`youtube`,label:`editor.youtube`,help:`editor.youtubeHelp`},{kind:`attribute`,name:`vimeo`,label:`editor.vimeo`,help:`editor.vimeoHelp`},{kind:`attribute`,name:`src`,label:`editor.src`,help:`editor.srcHelp`,accept:`video/mp4,video/webm`},{kind:`attribute`,name:`poster`,label:`editor.poster`,help:`editor.posterHelp`,accept:`image/*`},{kind:`attribute`,name:`captions`,label:`editor.captions`,help:`editor.captionsHelp`,accept:`.vtt,text/vtt`},{kind:`attribute`,name:`captions-lang`,label:`editor.captionsLang`,help:`editor.captionsLangHelp`}]},vr={manifest:xn,messages:ee,label:`editor.label`,description:`editor.description`,icon:`cards`,idPrefix:`bank`,template:`<astl-word-bank id="{{id}}"><astl-word id="a">{{t:template.word1}}</astl-word><astl-word id="b">{{t:template.word2}}</astl-word><astl-word id="c" distractor>{{t:template.word3}}</astl-word></astl-word-bank>`,templates:[{id:`drag-words`,label:`editor.template.dragWords`,description:`editor.template.dragWords.description`,template:`<h3>{{t:template.dragWords.heading}}</h3><p>{{t:template.dragWords.instruction}}</p><astl-word-bank id="{{id}}"><astl-word id="a">{{t:template.dragWords.answer1}}</astl-word><astl-word id="b">{{t:template.dragWords.answer2}}</astl-word><astl-word id="c" distractor>{{t:template.dragWords.distractor}}</astl-word></astl-word-bank><p>{{t:template.dragWords.start}} <astl-drop answer="a"></astl-drop>{{t:template.dragWords.middle}} <astl-drop answer="b"></astl-drop>{{t:template.dragWords.end}}</p>`}],fields:[{kind:`child-flag`,tag:`astl-word`,attribute:`distractor`,label:`editor.distractors`,help:`editor.distractorsHelp`},{kind:`attribute`,name:`reuse`,label:`editor.reuse`,help:`editor.reuseHelp`}]},yr=[`right`,`down`,`down-right`,`left`,`up`,`up-left`,`down-left`,`up-right`],br=`<astl-word-search id="{{id}}" right down down-right>`,xr=[1,2,3].map(e=>`<astl-search-word id="w${e}">{{t:template.word${e}}}</astl-search-word>`).join(``),Sr=[rr,Xn,hr,gr,mr,Yn,dr,vr,$n,{manifest:Sn,messages:f,label:`editor.label`,description:`editor.description`,icon:`magnifying-glass`,idPrefix:`word-search`,template:`${br}<astl-prompt>{{t:template.instruction}}</astl-prompt>${xr}</astl-word-search>`,templates:[{id:`word-search`,label:`editor.template.wordSearch`,description:`editor.template.wordSearch.description`,template:`<h3>{{t:template.title}}</h3><p>{{t:template.instruction}}</p>${br}${xr}</astl-word-search>`}],fields:[{kind:`child-text`,tag:`astl-search-word`,attribute:`word`,label:`editor.words`,help:`editor.wordsHelp`},{kind:`attribute`,name:`size`,label:`editor.size`,help:`editor.sizeHelp`},...yr.map(e=>({kind:`attribute`,name:e,label:`editor.${e}`,...e===`right`?{help:`editor.rightHelp`}:{}})),{kind:`attribute`,name:`scoring`,label:`editor.scoring`},{kind:`attribute`,name:`points`,label:`editor.points`}]},pr,Qn,nr,sr,cr,Jn,ir,ar,or,_r,qn],Cr={moveUp:x`<path d="M10 16V4M5 9l5-5 5 5"/>`,moveDown:x`<path d="M10 4v12M5 11l5 5 5-5"/>`,delete:x`<path d="M4 6h12M8 6V4h4v2M6 6l.8 10h6.4L14 6M9 9v4M11 9v4"/>`},wr=e=>e.kind===`attribute`&&e.control!==`checkbox`&&(e.control!==`text`||e.accept===null),L=e=>e.target.value,Tr=e=>e.target.checked,Er=class extends j{static styles=[A,M(`astl-picture-field, astl-style-form, astl-help-form`),_`
1
+ import{S as e,_ as t,a as n,b as r,c as i,d as a,f as o,g as s,h as c,i as l,l as u,m as d,n as f,o as p,p as m,r as ee,s as te,t as h,u as ne,v as re,w as ie,x as ae,y as oe}from"./chunks/definitions-CNX90WtL.js";import{$ as se,$t as ce,A as le,At as ue,B as de,Bt as fe,C as g,Ct as pe,D as me,Dt as he,E as _,Et as ge,F as _e,Ft as ve,G as ye,Gt as be,H as xe,Ht as Se,I as Ce,It as we,J as Te,Jt as Ee,K as v,Kt as De,L as Oe,Lt as ke,M as y,Mt as Ae,N as je,Nt as Me,O as Ne,Ot as Pe,P as Fe,Pt as b,Q as Ie,Qt as Le,R as Re,Rt as ze,Sn as Be,St as Ve,T as x,Tt as He,U as Ue,Ut as We,V as Ge,Vt as Ke,W as qe,Wt as Je,X as Ye,Xt as Xe,Y as Ze,Yt as Qe,Z as $e,Zt as et,_n as tt,_t as nt,a as rt,an as it,at,b as S,bn as ot,bt as st,cn as ct,ct as lt,dn as ut,dt,en as ft,et as pt,fn as mt,ft as ht,gn as gt,gt as _t,hn as vt,ht as yt,in as bt,it as xt,j as St,jt as C,k as Ct,kt as wt,ln as Tt,lt as Et,mn as Dt,mt as Ot,nn as kt,nt as At,on as jt,ot as Mt,pn as Nt,pt as Pt,q as Ft,qt as It,rn as Lt,rt as Rt,sn as zt,st as Bt,tn as Vt,tt as Ht,un as Ut,ut as Wt,v as w,vn as Gt,vt as Kt,wt as qt,xn as Jt,xt as Yt,y as Xt,yn as Zt,yt as Qt,z as $t,zt as en}from"./chunks/runtime-DxAbpr3S.js";import{r as tn}from"./chunks/audio-manifest-B9FWQzRy.js";import{r as nn}from"./chunks/callout-manifest-Cb12O4jl.js";import{r as rn}from"./chunks/categorise-manifest-C_hEDVYQ.js";import{r as an}from"./chunks/choice-manifest-C-XahD7m.js";import{r as on}from"./chunks/crossword-manifest-2qlu7AYd.js";import{r as sn}from"./chunks/drop-manifest-bzNOa5ks.js";import{r as cn}from"./chunks/flash-cards-manifest-B8nWXbRy.js";import{r as ln}from"./chunks/gap-manifest-RSydA41N.js";import{r as un}from"./chunks/hotspot-manifest-CNs1oiZ_.js";import{r as dn}from"./chunks/image-drop-manifest-BZ6hCoAd.js";import{r as fn}from"./chunks/image-label-manifest--1CLRJzd.js";import{r as pn}from"./chunks/long-answer-manifest-BYJpZRtB.js";import{r as mn}from"./chunks/mark-words-manifest-Cs2pXCEx.js";import{r as hn}from"./chunks/match-manifest-D0UfoajU.js";import{r as gn}from"./chunks/memory-manifest-D1589iR0.js";import{r as _n}from"./chunks/order-manifest-J5IXN0he.js";import{r as vn}from"./chunks/select-manifest-BBMbvdkH.js";import{r as yn}from"./chunks/true-false-manifest-B4exv60u.js";import{r as bn}from"./chunks/video-manifest-8OwkhhAI.js";import{r as xn}from"./chunks/word-bank-manifest-C1FSo1kH.js";import{o as Sn}from"./chunks/word-search-manifest-Fg1a59Z1.js";import{d as Cn,n as wn,r as Tn,s as En,u as Dn}from"./chunks/scan-jWgPnVxA.js";import{a as On,c as kn,d as An,f as T,i as E,l as jn,n as D,o as O,r as Mn,s as Nn,t as Pn}from"./chunks/insert-menu-Cn2E54V9.js";import{n as Fn,t as k}from"./chunks/messages-Qzse5KMX.js";import{n as In,s as Ln,t as Rn}from"./chunks/style-model-ZXNe_c8R.js";import{n as A,r as j,t as M}from"./chunks/styles-CXkkL_Qi.js";import{c as zn,r as Bn,s as Vn}from"./chunks/directive-helpers-D7lOZKnB.js";import{t as N}from"./chunks/live-jdiyYln2.js";import{i as Hn,n as Un,r as Wn,t as Gn}from"./chunks/issue-list-CQKAW39i.js";import{t as Kn}from"./chunks/roving-focus-BxGgi2DD.js";var qn={manifest:tn,messages:e,label:`editor.label`,description:`editor.description`,icon:`speaker-high`,idPrefix:`audio`,template:`<astl-audio id="{{id}}" label="{{t:template.label}}"><astl-transcript>{{t:template.transcript}}</astl-transcript></astl-audio>`,fields:[{kind:`attribute`,name:`label`,label:`editor.title`,help:`editor.titleHelp`},{kind:`attribute`,name:`src`,label:`editor.src`,help:`editor.srcHelp`,accept:`audio/*`},{kind:`text-list`,tag:`astl-transcript`,label:`editor.transcript`,help:`editor.transcriptHelp`,multiline:!0}]},Jn={manifest:nn,messages:ae,label:`editor.label`,description:`editor.description`,icon:`info`,idPrefix:`callout`,template:`<astl-callout id="{{id}}" kind="tip"><p>{{t:template.text}}</p></astl-callout>`,fields:[{kind:`attribute`,name:`kind`,label:`editor.kind`}]},Yn={manifest:rn,messages:r,label:`editor.label`,description:`editor.description`,icon:`kanban`,idPrefix:`cat`,template:`<astl-categorise id="{{id}}"><astl-prompt>{{t:template.prompt}}</astl-prompt><astl-category id="a">{{t:template.categoryA}}</astl-category><astl-category id="b">{{t:template.categoryB}}</astl-category><astl-card id="a1" category="a">{{t:template.cardA1}}</astl-card><astl-card id="a2" category="a">{{t:template.cardA2}}</astl-card><astl-card id="b1" category="b">{{t:template.cardB1}}</astl-card><astl-card id="b2" category="b">{{t:template.cardB2}}</astl-card></astl-categorise>`,templates:[{id:`sort-into-groups`,label:`template.sort.label`,description:`template.sort.description`,template:`<h3>{{t:template.sort.heading}}</h3><p>{{t:template.sort.instruction}}</p><astl-categorise id="{{id}}"><astl-prompt>{{t:template.sort.prompt}}</astl-prompt><astl-category id="a">{{t:template.sort.groupA}}</astl-category><astl-category id="b">{{t:template.sort.groupB}}</astl-category><astl-card id="a1" category="a">{{t:template.sort.card1}}</astl-card><astl-card id="b1" category="b">{{t:template.sort.card2}}</astl-card><astl-card id="a2" category="a">{{t:template.sort.card3}}</astl-card><astl-card id="b2" category="b">{{t:template.sort.card4}}</astl-card></astl-categorise>`}],fields:[{kind:`child-choice`,tag:`astl-card`,attribute:`category`,options:`astl-category`,label:`editor.cardCategories`,help:`editor.cardCategoriesHelp`},{kind:`child-table`,tag:`astl-category`,columns:[{attribute:`palette`,label:`editor.palette`}],label:`editor.groups`,help:`editor.groupsHelp`},{kind:`attribute`,name:`scoring`,label:`editor.scoring`,help:`editor.scoringHelp`},{kind:`attribute`,name:`points`,label:`editor.points`}]},Xn={manifest:an,messages:oe,label:`editor.label`,description:`editor.description`,icon:`list-checks`,idPrefix:`choice`,template:`<astl-choice id="{{id}}"><astl-prompt>{{t:template.prompt}}</astl-prompt><astl-option id="a" correct>{{t:template.option1}}</astl-option><astl-option id="b">{{t:template.option2}}</astl-option><astl-option id="c">{{t:template.option3}}</astl-option></astl-choice>`,templates:[{id:`multiple-choice`,label:`template.choice.label`,description:`template.choice.description`,template:`<h3>{{t:template.choice.heading}}</h3><p>{{t:template.choice.instruction}}</p><astl-choice id="{{id}}"><astl-prompt>{{t:template.choice.prompt}}</astl-prompt><astl-option id="a">{{t:template.choice.option1}}</astl-option><astl-option id="b" correct>{{t:template.choice.option2}}</astl-option><astl-option id="c">{{t:template.choice.option3}}</astl-option></astl-choice>`}],fields:[{kind:`child-flag`,tag:`astl-option`,attribute:`correct`,label:`editor.correctOptions`},{kind:`attribute`,name:`multiple`,label:`editor.multiple`},{kind:`attribute`,name:`shuffle`,label:`editor.shuffle`},{kind:`attribute`,name:`scoring`,label:`editor.scoring`,help:`editor.scoringHelp`},{kind:`attribute`,name:`points`,label:`editor.points`}]},Zn=e=>`<astl-crossword id="{{id}}" rows="5" columns="5">${e}<astl-crossword-word id="w1" answer="{{t:template.crossword.across}}" row="0" column="0" direction="across">{{t:template.crossword.acrossClue}}</astl-crossword-word><astl-crossword-word id="w2" answer="{{t:template.crossword.down}}" row="0" column="0" direction="down">{{t:template.crossword.downClue}}</astl-crossword-word></astl-crossword>`,Qn={manifest:on,messages:re,label:`editor.label`,description:`editor.description`,icon:`grid-four`,idPrefix:`crossword`,template:Zn(`<astl-prompt>{{t:template.crossword.prompt}}</astl-prompt>`),templates:[{id:`crossword`,label:`template.crossword`,description:`template.crossword.description`,template:`<h3>{{t:template.crossword.heading}}</h3><p>{{t:template.crossword.prompt}}</p>${Zn(``)}`}],fields:[{kind:`attribute`,name:`rows`,label:`editor.rows`},{kind:`attribute`,name:`columns`,label:`editor.columns`},{kind:`child-table`,tag:`astl-crossword-word`,label:`editor.words`,help:`editor.wordsHelp`,columns:[{attribute:`answer`,label:`editor.answer`},{attribute:`row`,label:`editor.row`},{attribute:`column`,label:`editor.column`},{attribute:`direction`,label:`editor.direction`}]},{kind:`attribute`,name:`scoring`,label:`editor.scoring`},{kind:`attribute`,name:`points`,label:`editor.points`}]},$n={manifest:sn,messages:t,label:`editor.label`,description:`editor.description`,icon:`arrow-square-in`,idPrefix:`drop`,template:`<astl-drop id="{{id}}" answer="a" bank=""></astl-drop>`,companion:{tag:`astl-word-bank`,attribute:`bank`},fields:[{kind:`attribute`,name:`answer`,label:`editor.answer`,help:`editor.answerHelp`,options:{from:`bank`,tag:`astl-word`}},{kind:`attribute`,name:`bank`,label:`editor.bank`,help:`editor.bankHelp`},{kind:`attribute`,name:`points`,label:`editor.points`}]},er=`https://assets.example.org/flash-cards/`,P=(e,t)=>`<astl-front>${e}</astl-front><astl-back>{{t:template.cards.${t}}}</astl-back>`,tr=e=>`<img src="${er}${e}.svg" alt="{{t:template.cards.${e}}}" width="96" height="96">`,nr={manifest:cn,messages:s,label:`editor.label`,description:`editor.description`,icon:`cards`,idPrefix:`cards`,template:`<astl-flash-cards id="{{id}}"><astl-front>{{t:template.front}}</astl-front><astl-back>{{t:template.back}}</astl-back></astl-flash-cards>`,templates:[{id:`flash-cards`,label:`editor.template.cards`,description:`editor.template.cards.description`,template:`<h3>{{t:template.cards.title}}</h3><p>{{t:template.cards.instruction}}</p><astl-flash-cards id="{{id}}">`+P(tr(`sun`),`sunBack`)+P(tr(`moon`),`moonBack`)+P(`{{t:template.cards.mars}}`,`marsBack`)+P(`{{t:template.cards.saturn}}`,`saturnBack`)+`</astl-flash-cards>`}],fields:[{kind:`text-list`,tag:`astl-back`,label:`editor.backs`,help:`editor.backsHelp`}]},rr={manifest:ln,messages:c,label:`editor.label`,description:`editor.description`,icon:`text-t`,idPrefix:`gap`,template:`<astl-gap id="{{id}}" answer="{{selection}}"></astl-gap>`,templates:[{id:`fill-the-gaps`,label:`template.fill.label`,description:`template.fill.description`,template:`<h3>{{t:template.fill.heading}}</h3><p>{{t:template.fill.instruction}}</p><p>{{t:template.fill.start}} <astl-gap id="{{id}}" answer="{{t:template.fill.answer1}}"></astl-gap> {{t:template.fill.middle}} <astl-gap answer="{{t:template.fill.answer2}}"></astl-gap>{{t:template.fill.end}}</p>`}],fields:[{kind:`attribute`,name:`answer`,label:`editor.answer`},{kind:`text-list`,tag:`astl-alt`,label:`editor.alternatives`,help:`editor.alternativesHelp`},{kind:`attribute`,name:`type`,label:`editor.type`},{kind:`attribute`,name:`case`,label:`editor.case`},{kind:`attribute`,name:`marks`,label:`editor.marks`,help:`editor.marksHelp`},{kind:`attribute`,name:`tolerance`,label:`editor.tolerance`},{kind:`attribute`,name:`width`,label:`editor.width`},{kind:`attribute`,name:`points`,label:`editor.points`}]},ir={manifest:un,messages:d,label:`editor.label`,description:`editor.description`,icon:`crosshair`,idPrefix:`hotspot`,template:`<astl-hotspot id="{{id}}"><astl-prompt>{{t:template.prompt}}</astl-prompt><astl-hotspot-region id="r1" x="5" y="10" width="40" height="80" label="{{t:template.place1}}" correct></astl-hotspot-region><astl-hotspot-region id="r2" x="55" y="10" width="40" height="80" label="{{t:template.place2}}"></astl-hotspot-region></astl-hotspot>`,templates:[{id:`find-it-in-the-picture`,label:`template.find.label`,description:`template.find.description`,template:`<h3>{{t:template.find.heading}}</h3><p>{{t:template.find.instruction}}</p><astl-hotspot id="{{id}}" multiple><astl-prompt>{{t:template.find.prompt}}</astl-prompt><astl-hotspot-region id="r1" x="4" y="6" width="22" height="26" label="{{t:template.find.topLeft}}" correct></astl-hotspot-region><astl-hotspot-region id="r2" shape="circle" x="85" y="18" r="10" label="{{t:template.find.topRight}}"></astl-hotspot-region><astl-hotspot-region id="r3" shape="circle" x="50" y="50" r="12" label="{{t:template.find.centre}}" correct></astl-hotspot-region><astl-hotspot-region id="r4" shape="circle" x="15" y="82" r="10" label="{{t:template.find.bottomLeft}}"></astl-hotspot-region><astl-hotspot-region id="r5" x="74" y="68" width="22" height="26" label="{{t:template.find.bottomRight}}" correct></astl-hotspot-region></astl-hotspot>`}],fields:[{kind:`picture-regions`,tag:`astl-hotspot-region`,src:`src`,label:`editor.regions`,help:`editor.regionsHelp`},{kind:`attribute`,name:`alt`,label:`editor.alt`,help:`editor.altHelp`},{kind:`child-flag`,tag:`astl-hotspot-region`,attribute:`correct`,label:`editor.correct`,help:`editor.correctHelp`},{kind:`attribute`,name:`multiple`,label:`editor.multiple`},{kind:`attribute`,name:`outline`,label:`editor.outline`},{kind:`attribute`,name:`scoring`,label:`editor.scoring`,help:`editor.scoringHelp`},{kind:`attribute`,name:`points`,label:`editor.points`}]},ar={manifest:dn,messages:m,label:`editor.label`,description:`editor.description`,icon:`tag`,idPrefix:`image-drop`,template:`<astl-image-drop id="{{id}}"><astl-prompt>{{t:template.prompt}}</astl-prompt><astl-image-drop-zone id="z1" x="10" y="35" width="30" height="30" answer="l1"></astl-image-drop-zone><astl-image-drop-zone id="z2" x="60" y="35" width="30" height="30" answer="l2"></astl-image-drop-zone><astl-image-drop-label id="l1">{{t:template.label1}}</astl-image-drop-label><astl-image-drop-label id="l2">{{t:template.label2}}</astl-image-drop-label></astl-image-drop>`,templates:[{id:`drag-labels-onto-the-picture`,label:`template.drag.label`,description:`template.drag.description`,template:`<h3>{{t:template.drag.heading}}</h3><p>{{t:template.drag.instruction}}</p><astl-image-drop id="{{id}}"><astl-prompt>{{t:template.drag.prompt}}</astl-prompt><astl-image-drop-zone id="z1" x="20" y="5" width="60" height="25" answer="l1"></astl-image-drop-zone><astl-image-drop-zone id="z2" x="20" y="37.5" width="60" height="25" answer="l2"></astl-image-drop-zone><astl-image-drop-zone id="z3" x="20" y="70" width="60" height="25" answer="l3"></astl-image-drop-zone><astl-image-drop-label id="l1">{{t:template.drag.label1}}</astl-image-drop-label><astl-image-drop-label id="l2">{{t:template.drag.label2}}</astl-image-drop-label><astl-image-drop-label id="l3">{{t:template.drag.label3}}</astl-image-drop-label><astl-image-drop-label id="l4">{{t:template.drag.label4}}</astl-image-drop-label></astl-image-drop>`}],fields:[{kind:`picture-regions`,tag:`astl-image-drop-zone`,src:`src`,label:`editor.zones`,help:`editor.zonesHelp`},{kind:`attribute`,name:`alt`,label:`editor.alt`,help:`editor.altHelp`},{kind:`child-choice`,tag:`astl-image-drop-zone`,attribute:`answer`,options:`astl-image-drop-label`,label:`editor.answers`,help:`editor.answersHelp`},{kind:`attribute`,name:`scoring`,label:`editor.scoring`,help:`editor.scoringHelp`},{kind:`attribute`,name:`points`,label:`editor.points`}]},or={manifest:fn,messages:o,label:`editor.label`,description:`editor.description`,icon:`map-pin`,idPrefix:`image-label`,template:`<astl-image-label id="{{id}}"><astl-prompt>{{t:template.prompt}}</astl-prompt><astl-image-label-pin id="p1" x="30" y="50" label="{{t:template.answer1}}"></astl-image-label-pin><astl-image-label-pin id="p2" x="70" y="50" label="{{t:template.answer2}}"></astl-image-label-pin></astl-image-label>`,templates:[{id:`label-the-picture`,label:`template.label.label`,description:`template.label.description`,template:`<h3>{{t:template.label.heading}}</h3><p>{{t:template.label.instruction}}</p><astl-image-label id="{{id}}"><astl-prompt>{{t:template.label.prompt}}</astl-prompt><astl-image-label-pin id="p1" x="50" y="15" label="{{t:template.label.top}}"></astl-image-label-pin><astl-image-label-pin id="p2" x="50" y="50" label="{{t:template.label.centre}}" alternatives="{{t:template.label.centreAlternative}}"></astl-image-label-pin><astl-image-label-pin id="p3" x="50" y="85" label="{{t:template.label.bottom}}"></astl-image-label-pin></astl-image-label>`}],fields:[{kind:`picture-points`,tag:`astl-image-label-pin`,src:`src`,label:`editor.pins`,help:`editor.pinsHelp`},{kind:`attribute`,name:`alt`,label:`editor.alt`,help:`editor.altHelp`},{kind:`child-text`,tag:`astl-image-label-pin`,attribute:`alternatives`,label:`editor.alternatives`,help:`editor.alternativesHelp`},{kind:`attribute`,name:`case`,label:`editor.case`},{kind:`attribute`,name:`scoring`,label:`editor.scoring`,help:`editor.scoringHelp`},{kind:`attribute`,name:`points`,label:`editor.points`}]},sr={manifest:pn,messages:a,label:`editor.label`,description:`editor.description`,icon:`note-pencil`,idPrefix:`answer`,template:`<astl-long-answer id="{{id}}"><astl-prompt>{{t:template.prompt}}</astl-prompt></astl-long-answer>`,templates:[{id:`write-your-answer`,label:`editor.template.write`,description:`editor.template.write.description`,template:`<h3>{{t:template.write.title}}</h3><p>{{t:template.write.instruction}}</p><astl-long-answer id="{{id}}" rows="6" minlength="100" maxlength="800" placeholder="{{t:template.write.placeholder}}"><astl-prompt>{{t:template.write.question}}</astl-prompt></astl-long-answer>`}],fields:[{kind:`attribute`,name:`rows`,label:`editor.rows`,help:`editor.rowsHelp`},{kind:`attribute`,name:`minlength`,label:`editor.minlength`,help:`editor.minlengthHelp`},{kind:`attribute`,name:`maxlength`,label:`editor.maxlength`,help:`editor.maxlengthHelp`},{kind:`attribute`,name:`placeholder`,label:`editor.placeholder`}]},F=(e,t,n=!1)=>`<astl-mark-word id="${e}"${n?` correct`:``}>{{t:template.${t}}}</astl-mark-word>`,I=(e,t)=>`<p>${[1,2,3,4].map(n=>F(`${e}${n}`,`odd.${e}${n}`,n===t)).join(` `)}</p>`,cr={manifest:mn,messages:ne,label:`editor.label`,description:`editor.description`,icon:`highlighter`,idPrefix:`mark-words`,template:`<astl-mark-words id="{{id}}"><p>{{t:template.before}} ${F(`w1`,`word`,!0)} {{t:template.after}}</p></astl-mark-words>`,templates:[{id:`select-words`,label:`template.select.label`,description:`template.select.description`,template:`<h3>{{t:template.select.heading}}</h3><p>{{t:template.select.instruction}}</p><astl-mark-words id="{{id}}"><astl-prompt>{{t:template.select.prompt}}</astl-prompt><p>{{t:template.select.before}} ${F(`w1`,`select.word1`,!0)} {{t:template.select.middle}} ${F(`w2`,`select.word2`)} {{t:template.select.and}} ${F(`w3`,`select.word3`,!0)} {{t:template.select.after}}</p></astl-mark-words>`},{id:`odd-word`,label:`template.odd.label`,description:`template.odd.description`,icon:`strikethrough`,template:`<h3>{{t:template.odd.heading}}</h3><p>{{t:template.odd.instruction}}</p><astl-mark-words id="{{id}}" variant="strike"><astl-prompt>{{t:template.odd.prompt}}</astl-prompt>${I(`a`,3)}${I(`b`,4)}${I(`c`,2)}</astl-mark-words>`}],fields:[{kind:`attribute`,name:`variant`,label:`editor.variant`},{kind:`child-flag`,tag:`astl-mark-word`,attribute:`correct`,label:`editor.correct`,help:`editor.correctHelp`},{kind:`attribute`,name:`scoring`,label:`editor.scoring`},{kind:`attribute`,name:`points`,label:`editor.points`}],wrap:{label:`editor.wrap`,child:`astl-mark-word`,attributes:{correct:``}}},lr=(e,t,n)=>`<astl-match id="{{id}}"${t}>${n}`+[`1`,`2`,`3`].map((t,n)=>`<astl-row id="r${t}" column="${`abc`[n]}">{{t:template.${e}.row${t}}}</astl-row>`).join(``)+[`A`,`B`,`C`].map(t=>`<astl-column id="${t.toLowerCase()}">{{t:template.${e}.column${t}}}</astl-column>`).join(``)+`</astl-match>`,ur=(e,t=``)=>`<h3>{{t:template.${e}.heading}}</h3><p>{{t:template.${e}.prompt}}</p>${lr(e,t,``)}`,dr={manifest:hn,messages:u,label:`editor.label`,description:`editor.description`,icon:`arrows-left-right`,idPrefix:`match`,template:lr(`matching`,``,`<astl-prompt>{{t:template.matching.prompt}}</astl-prompt>`),templates:[{id:`matching`,label:`template.matching`,description:`template.matching.description`,template:ur(`matching`)},{id:`join-the-lines`,label:`template.lines`,description:`template.lines.description`,template:ur(`lines`,` variant="lines"`)}],fields:[{kind:`child-choice`,tag:`astl-row`,attribute:`column`,options:`astl-column`,label:`editor.answers`,help:`editor.answersHelp`},{kind:`attribute`,name:`variant`,label:`editor.layout`},{kind:`attribute`,name:`scoring`,label:`editor.scoring`},{kind:`attribute`,name:`points`,label:`editor.points`}]},fr=e=>`<astl-memory id="{{id}}">${e}`+[`1`,`2`,`3`].map(e=>`<astl-card-a id="a${e}">{{t:template.memory.a${e}}}</astl-card-a><astl-card-b id="b${e}" pair="a${e}">{{t:template.memory.b${e}}}</astl-card-b>`).join(``)+`</astl-memory>`,pr={manifest:gn,messages:i,label:`editor.label`,description:`editor.description`,icon:`cards`,idPrefix:`memory`,template:fr(`<astl-prompt>{{t:template.memory.prompt}}</astl-prompt>`),templates:[{id:`memory`,label:`template.memory`,description:`template.memory.description`,template:`<h3>{{t:template.memory.heading}}</h3><p>{{t:template.memory.prompt}}</p>${fr(``)}`}],fields:[{kind:`child-choice`,tag:`astl-card-b`,attribute:`pair`,options:`astl-card-a`,label:`editor.pairs`,help:`editor.pairsHelp`},{kind:`attribute`,name:`scoring`,label:`editor.scoring`},{kind:`attribute`,name:`points`,label:`editor.points`}]},mr={manifest:_n,messages:te,label:`editor.label`,description:`editor.description`,icon:`list-numbers`,idPrefix:`order`,template:`<astl-order id="{{id}}"><astl-prompt>{{t:template.prompt}}</astl-prompt><astl-item id="a">{{t:template.item1}}</astl-item><astl-item id="b">{{t:template.item2}}</astl-item><astl-item id="c">{{t:template.item3}}</astl-item></astl-order>`,templates:[{id:`ordering`,label:`template.cycle.label`,description:`template.cycle.description`,template:`<h3>{{t:template.cycle.heading}}</h3><p>{{t:template.cycle.instruction}}</p><astl-order id="{{id}}"><astl-prompt>{{t:template.cycle.prompt}}</astl-prompt><astl-item id="a">{{t:template.cycle.item1}}</astl-item><astl-item id="b">{{t:template.cycle.item2}}</astl-item><astl-item id="c">{{t:template.cycle.item3}}</astl-item><astl-item id="d">{{t:template.cycle.item4}}</astl-item></astl-order>`}],fields:[{kind:`attribute`,name:`scoring`,label:`editor.scoring`,help:`editor.scoringHelp`},{kind:`attribute`,name:`variant`,label:`editor.variant`,help:`editor.variantHelp`},{kind:`attribute`,name:`points`,label:`editor.points`}]},hr={manifest:vn,messages:p,label:`editor.label`,description:`editor.description`,icon:`caret-circle-down`,idPrefix:`select`,template:`<astl-select id="{{id}}"><astl-option id="a" correct>{{t:template.option1}}</astl-option><astl-option id="b">{{t:template.option2}}</astl-option><astl-option id="c">{{t:template.option3}}</astl-option></astl-select>`,templates:[{id:`choose-from-a-list`,label:`template.list.label`,description:`template.list.description`,template:`<h3>{{t:template.list.heading}}</h3><p>{{t:template.list.instruction}}</p><p>{{t:template.list.start}} <astl-select id="{{id}}"><astl-option id="a">{{t:template.list.option1}}</astl-option><astl-option id="b" correct>{{t:template.list.option2}}</astl-option><astl-option id="c">{{t:template.list.option3}}</astl-option></astl-select>{{t:template.list.end}}</p>`},{id:`click-the-right-word`,label:`template.click.label`,description:`template.click.description`,template:`<h3>{{t:template.click.heading}}</h3><p>{{t:template.click.instruction}}</p><p>{{t:template.click.start1}} <astl-select id="{{id}}" variant="buttons"><astl-option id="a">{{t:template.click.option1a}}</astl-option><astl-option id="b" correct>{{t:template.click.option1b}}</astl-option><astl-option id="c">{{t:template.click.option1c}}</astl-option></astl-select>{{t:template.click.end}}</p><p>{{t:template.click.start2}} <astl-select variant="buttons"><astl-option id="a">{{t:template.click.option2a}}</astl-option><astl-option id="b" correct>{{t:template.click.option2b}}</astl-option></astl-select>{{t:template.click.end}}</p>`}],fields:[{kind:`child-flag`,tag:`astl-option`,attribute:`correct`,label:`editor.correctOption`,help:`editor.correctOptionHelp`},{kind:`attribute`,name:`shuffle`,label:`editor.shuffle`},{kind:`attribute`,name:`points`,label:`editor.points`},{kind:`attribute`,name:`variant`,label:`editor.variant`},{kind:`attribute`,name:`native`,label:`editor.native`,help:`editor.nativeHelp`,variants:[`dropdown`]}]},gr={manifest:yn,messages:n,label:`editor.label`,description:`editor.description`,icon:`toggle-left`,idPrefix:`tf`,template:`<astl-true-false id="{{id}}"><astl-prompt>{{t:template.prompt}}</astl-prompt><astl-statement id="s1" answer="true">{{t:template.statement1}}</astl-statement><astl-statement id="s2" answer="false">{{t:template.statement2}}</astl-statement></astl-true-false>`,templates:[{id:`true-or-false`,label:`template.tf.label`,description:`template.tf.description`,template:`<h3>{{t:template.tf.heading}}</h3><p>{{t:template.tf.instruction}}</p><astl-true-false id="{{id}}"><astl-statement id="s1" answer="true">{{t:template.tf.statement1}}</astl-statement><astl-statement id="s2" answer="false">{{t:template.tf.statement2}}</astl-statement><astl-statement id="s3" answer="true">{{t:template.tf.statement3}}</astl-statement></astl-true-false>`}],fields:[{kind:`child-choice`,tag:`astl-statement`,attribute:`answer`,label:`editor.answers`},{kind:`attribute`,name:`true-label`,label:`editor.trueLabel`,help:`editor.labelsHelp`},{kind:`attribute`,name:`false-label`,label:`editor.falseLabel`},{kind:`attribute`,name:`scoring`,label:`editor.scoring`},{kind:`attribute`,name:`points`,label:`editor.points`}]},_r={manifest:bn,messages:l,label:`editor.label`,description:`editor.description`,icon:`film-strip`,idPrefix:`video`,template:`<astl-video id="{{id}}" label="{{t:template.label}}"></astl-video>`,templates:[{id:`watch-then-answer`,label:`editor.template.watch`,description:`editor.template.watch.description`,template:`<h3>{{t:template.watch.title}}</h3><p>{{t:template.watch.instruction}}</p><astl-callout kind="tip"><p>{{t:template.watch.tip}}</p></astl-callout><astl-video id="{{id}}" label="{{t:template.watch.label}}" youtube="https://youtu.be/Bq7mT2kWx4E"></astl-video><p>{{t:template.watch.sentence}} <astl-gap answer="{{t:template.watch.gap}}"></astl-gap>.</p>`}],fields:[{kind:`attribute`,name:`label`,label:`editor.title`,help:`editor.titleHelp`},{kind:`attribute`,name:`youtube`,label:`editor.youtube`,help:`editor.youtubeHelp`},{kind:`attribute`,name:`vimeo`,label:`editor.vimeo`,help:`editor.vimeoHelp`},{kind:`attribute`,name:`src`,label:`editor.src`,help:`editor.srcHelp`,accept:`video/mp4,video/webm`},{kind:`attribute`,name:`poster`,label:`editor.poster`,help:`editor.posterHelp`,accept:`image/*`},{kind:`attribute`,name:`captions`,label:`editor.captions`,help:`editor.captionsHelp`,accept:`.vtt,text/vtt`},{kind:`attribute`,name:`captions-lang`,label:`editor.captionsLang`,help:`editor.captionsLangHelp`}]},vr={manifest:xn,messages:ee,label:`editor.label`,description:`editor.description`,icon:`cards`,idPrefix:`bank`,template:`<astl-word-bank id="{{id}}"><astl-word id="a">{{t:template.word1}}</astl-word><astl-word id="b">{{t:template.word2}}</astl-word><astl-word id="c" distractor>{{t:template.word3}}</astl-word></astl-word-bank>`,templates:[{id:`drag-words`,label:`editor.template.dragWords`,description:`editor.template.dragWords.description`,template:`<h3>{{t:template.dragWords.heading}}</h3><p>{{t:template.dragWords.instruction}}</p><astl-word-bank id="{{id}}"><astl-word id="a">{{t:template.dragWords.answer1}}</astl-word><astl-word id="b">{{t:template.dragWords.answer2}}</astl-word><astl-word id="c" distractor>{{t:template.dragWords.distractor}}</astl-word></astl-word-bank><p>{{t:template.dragWords.start}} <astl-drop answer="a"></astl-drop>{{t:template.dragWords.middle}} <astl-drop answer="b"></astl-drop>{{t:template.dragWords.end}}</p>`}],fields:[{kind:`child-flag`,tag:`astl-word`,attribute:`distractor`,label:`editor.distractors`,help:`editor.distractorsHelp`},{kind:`attribute`,name:`reuse`,label:`editor.reuse`,help:`editor.reuseHelp`}]},yr=[`right`,`down`,`down-right`,`left`,`up`,`up-left`,`down-left`,`up-right`],br=`<astl-word-search id="{{id}}" right down down-right>`,xr=[1,2,3].map(e=>`<astl-search-word id="w${e}">{{t:template.word${e}}}</astl-search-word>`).join(``),Sr=[rr,Xn,hr,gr,mr,Yn,dr,vr,$n,{manifest:Sn,messages:f,label:`editor.label`,description:`editor.description`,icon:`magnifying-glass`,idPrefix:`word-search`,template:`${br}<astl-prompt>{{t:template.instruction}}</astl-prompt>${xr}</astl-word-search>`,templates:[{id:`word-search`,label:`editor.template.wordSearch`,description:`editor.template.wordSearch.description`,template:`<h3>{{t:template.title}}</h3><p>{{t:template.instruction}}</p>${br}${xr}</astl-word-search>`}],fields:[{kind:`child-text`,tag:`astl-search-word`,attribute:`word`,label:`editor.words`,help:`editor.wordsHelp`},{kind:`attribute`,name:`size`,label:`editor.size`,help:`editor.sizeHelp`},...yr.map(e=>({kind:`attribute`,name:e,label:`editor.${e}`,...e===`right`?{help:`editor.rightHelp`}:{}})),{kind:`attribute`,name:`scoring`,label:`editor.scoring`},{kind:`attribute`,name:`points`,label:`editor.points`}]},pr,Qn,nr,sr,cr,Jn,ir,ar,or,_r,qn],Cr={moveUp:x`<path d="M10 16V4M5 9l5-5 5 5"/>`,moveDown:x`<path d="M10 4v12M5 11l5 5 5-5"/>`,delete:x`<path d="M4 6h12M8 6V4h4v2M6 6l.8 10h6.4L14 6M9 9v4M11 9v4"/>`},wr=e=>e.kind===`attribute`&&e.control!==`checkbox`&&(e.control!==`text`||e.accept===null),L=e=>e.target.value,Tr=e=>e.target.checked,Er=class extends j{static styles=[A,M(`astl-picture-field, astl-style-form, astl-help-form`),_`
2
2
  .style {
3
3
  display: flex;
4
4
  flex-direction: column;
@@ -1447,7 +1447,7 @@ padding: var(--astl-focus-width);
1447
1447
  margin: calc(-1 * var(--astl-focus-width));
1448
1448
  }
1449
1449
  }
1450
- `],di=e=>`load`in e?e.tag:e.manifest.tag,fi=null;function pi(){return fi??=Array.from(crypto.getRandomValues(new Uint8Array(16)),e=>e.toString(16).padStart(2,`0`)).join(``),fi}function mi(e,t){return ie({components:t,secret:pi(),slotKinds:[...e.slotKinds.values()],profile:e.profile,catalogs:e.catalogs,styleTemplates:[...e.styleTemplates.values()],...e.urlPolicy===null?{}:{urlPolicy:e.urlPolicy},...e.groundColors===null?{}:{groundColors:e.groundColors}})}var hi={components:new Map,editors:new Map,elements:new Map,styleTemplates:new Map,slotKinds:new Map,catalogs:[],profile:{},urlPolicy:null,groundColors:null,uploadAsset:null,pickPicture:null,fonts:Rn,styles:In,featured:[],views:[],menuMessages:null},Y=null;function X(){return Y??={...hi,engine:mi(hi,[]),version:0},Y}var gi=new Set;function Z(e,t,n,r){let i=new Map(e);for(let e of t??[]){let t=n(e),a=i.get(t);if(a!==void 0&&a!==e)throw Error(`${r} ${t} is already registered`);i.set(t,e)}return i}function _i(e){let t=Y??{...hi,version:0},n=e=>e.manifest.tag,r={components:Z(t.components,e.components,n,`Component`),editors:Z(t.editors,e.editors,n,`Editor descriptor`),elements:Z(t.elements,e.elements,di,`Preview element`),styleTemplates:Z(t.styleTemplates,e.styleTemplates,e=>e.name,`Style template`),slotKinds:Z(t.slotKinds,e.slotKinds,e=>e.kind,`Slot kind`),catalogs:[...new Set([...t.catalogs,...e.catalogs??[]])],profile:{...t.profile,...e.profile},urlPolicy:e.urlPolicy??t.urlPolicy,groundColors:e.groundColors??t.groundColors,uploadAsset:e.uploadAsset??t.uploadAsset,pickPicture:e.pickPicture??t.pickPicture,fonts:e.fonts??t.fonts,styles:e.styles??t.styles,featured:e.featured??t.featured,views:e.views??t.views,menuMessages:e.menuMessages??t.menuMessages},i=[`components`,`editors`,`elements`,`styleTemplates`,`slotKinds`],a=e=>JSON.stringify(Object.entries(e).sort());if(Y!==null&&i.every(e=>r[e].size===t[e].size)&&r.catalogs.length===t.catalogs.length&&r.urlPolicy===t.urlPolicy&&JSON.stringify(r.groundColors)===JSON.stringify(t.groundColors)&&r.uploadAsset===t.uploadAsset&&r.pickPicture===t.pickPicture&&r.menuMessages===t.menuMessages&&JSON.stringify(r.fonts)===JSON.stringify(t.fonts)&&JSON.stringify(r.styles)===JSON.stringify(t.styles)&&r.featured.join(` `)===t.featured.join(` `)&&JSON.stringify(r.views)===JSON.stringify(t.views)&&a(r.profile)===a(t.profile))return;let o=mi(r,[...r.components.values()]);jn({engine:o,descriptors:[...r.editors.values()],locale:`en`,fonts:r.fonts,styles:r.styles}),Y={...r,engine:o,version:t.version+1};for(let e of gi)e.requestUpdate()}function vi(e,t,n){let r=e=>[...e.entries()].filter(([e])=>n===null||n.includes(e)).map(([,e])=>e);return jn({engine:n===null?e.engine:mi(e,r(e.components)),descriptors:r(e.editors),elements:r(e.elements),locale:t,catalogs:e.catalogs,styleTemplates:[...e.styleTemplates.values()],fonts:e.fonts,styles:e.styles,...e.urlPolicy===null?{}:{urlPolicy:e.urlPolicy},...e.uploadAsset===null?{}:{uploadAsset:e.uploadAsset},...e.pickPicture===null?{}:{pickPicture:e.pickPicture},...e.menuMessages===null?{}:{menuMessages:e.menuMessages}})}var yi=[`light`,`dark`,`hc`,`auto`],bi=`astl-editor-change`,xi=`astl-editor-ready`,Si=`astl-editor-view`,Ci=[`visual`,`source`],wi=300,Ti=[`issues`,`inspector`],Ei={fromAttribute:e=>e===null?null:e.split(/\s+/).filter(e=>e!==``)},Di={fromAttribute:e=>{try{return e===null?null:JSON.parse(e)}catch{return null}}},Oi=[`chevron`,`bold`,`italic`,`underline`,`link`,`bulleted`,`numbered`,`undo`,`redo`,`wrap`,`text`,`image`,`files`,`add`,`templates`],ki=`header: inspector-header, id: inspector-id, actions: inspector-actions, issue: inspector-issue, field: inspector-field, label: inspector-label, style: inspector-style`,Q=null,$=null,Ai=class extends Xt{static properties={locale:{},components:{converter:Ei},featured:{converter:Ei},panels:{converter:Ei},view:{},views:{converter:Di},theme:{},previewPolicy:{attribute:!1},adapter:{attribute:!1}};static styles=ui;#e=null;#t=null;#n=null;#r=!1;#i=!1;#a=null;#o=null;#s=0;#c=null;#l=()=>{};#u=new Promise(e=>{this.#l=e});#d={ask:e=>this.renderRoot.querySelector(`astl-picture-dialog`)?.ask(e)??Promise.resolve(null),refuse:()=>{this.#a={key:`picture.pasteRefused`},this.requestUpdate()},style:e=>{this.renderRoot.querySelector(`astl-toolbar`)?.openStyle(e)}};#f=e=>{this.#o=e};#p={start:!1,end:!1};#m=e=>{let t=e.target,n=t.name===`end`?`end`:`start`,r=t.assignedElements().length>0;this.#p[n]!==r&&(this.#p[n]=r,this.requestUpdate())};#h=null;#g=null;#_=[];#v=null;#y;#b=null;#x=null;constructor(){if(super(),this.locale=null,this.components=null,this.featured=null,this.panels=null,this.view=`visual`,this.views=null,this.theme=`auto`,this.previewPolicy=null,this.adapter=null,Object.hasOwn(this,`value`)){let e=this.value;delete this.value,typeof e==`string`&&(this.value=e)}}get value(){return this.adapter?.getSource()??this.#e??`<astl-doc lang="${this.authoring.locale}"></astl-doc>`}set value(e){this.adapter===null?this.#e=e:this.adapter.setSource(e)}get ready(){return this.#u}async preview(){await this.updateComplete,await this.renderRoot.querySelector(`astl-preview`)?.refresh()}get authoring(){let e=X(),t=this.#A(e),n=this.components,r=typeof n==`string`?n.split(/\s+/).filter(e=>e!==``):n,i=`${e.version}\n${t}\n${r===null?`*`:r.join(` `)}`;return this.#b?.key!==i&&(this.#b={key:i,authoring:vi(e,t,r)}),this.#b.authoring}connectedCallback(){super.connectedCallback(),gi.add(this),this.#t===!0&&this.#O(),this.#k()}disconnectedCallback(){super.disconnectedCallback(),gi.delete(this),clearTimeout(this.#y),this.#c=null,this.#k();let e=this.#n;e!==null&&(this.#e=e.adapter.getSource(),e.destroy(),this.#n=null,this.adapter=null)}#S(){let e=this.views??X().views;return Array.isArray(e)?e:[]}#C(){return this.adapter?.editsSource===!0?[`visual`]:Ci}#w(){return[...this.#C(),...this.#S().map(e=>e.name)].includes(this.view)?this.view:`visual`}#T(){let e=this.#g??this.#h??this.value,t=this.authoring.validate(e).issues.filter(e=>e.severity===`error`);return this.#_=t,t.length>0?(this.#a={key:`view.sourceErrors`,params:{n:t.length}},this.#s++,!1):(this.#g!==null&&$?.formatHtml(this.#g)!==this.#h&&(this.value=this.#g),this.#g=null,!0)}#E(e){clearTimeout(this.#y),this.#y=setTimeout(()=>{let e=this.adapter;this.#v=e===null?null:this.authoring.outline(e.getSource()),this.requestUpdate()},e)}willUpdate(e){if(e.has(`theme`)&&(this.dataset.theme=this.#j()),e.has(`view`)&&this.adapter?.editsSource!==!0){let t=e.get(`view`);t===`source`&&this.view!==`source`&&!this.#T()?this.view=`source`:this.view===`source`&&t!==`source`&&(this.#h=this.#g=null,this.#_=[],$===null&&import(`./chunks/source-view-CZVxgTNQ.js`).then(e=>{$=e,this.requestUpdate()},e=>console.error(e)))}let t=this.#n;if(t!==null&&this.adapter!==t.adapter&&(this.adapter===null&&(this.#e=t.adapter.getSource()),t.destroy(),this.#n=null),this.adapter!==null&&this.#n===null)this.#t=!1,this.#e!==null&&this.adapter.setSource(this.#e),this.#e=null;else if(this.adapter===null&&this.#n===null)this.isConnected&&(this.#t===null||e.has(`adapter`))&&this.#D();else if(this.#n!==null&&Q!==null&&this.#n.authoring!==this.authoring){let e=this.#n.adapter.getSource();this.#n.destroy(),this.#n=Q.createSurface(this,this.authoring,X().engine.manifests,e,this.#d,this.#f),this.adapter=this.#n.adapter}this.#k()}updated(e){e.has(`theme`)&&this.renderRoot.querySelector(`astl-preview`)?.requestUpdate();let t=this.adapter;t!==null&&t!==this.#c&&this.isConnected&&(this.#c=t,this.#E(0),this.#l(),this.dispatchEvent(new Event(xi,{bubbles:!0,composed:!0})));let n=e.get(`view`);e.has(`view`)&&n!==void 0&&n!==this.view&&this.dispatchEvent(new CustomEvent(Si,{detail:{view:this.view},bubbles:!0,composed:!0}))}#D(){document.readyState===`loading`?document.addEventListener(`DOMContentLoaded`,()=>this.requestUpdate(`adapter`),{once:!0}):(this.#t=this.querySelector(`:scope > [slot="surface"]`)===null,this.#t&&this.#O())}async#O(){if(!(this.#r||this.#n!==null)){this.#r=!0,this.#i=!1;try{if(Q??=await import(`./chunks/surface-C6wtQkTY.js`),!this.isConnected||!this.#t||this.adapter!==null||this.#n!==null)return;this.#n=Q.createSurface(this,this.authoring,X().engine.manifests,this.value,this.#d,this.#f),this.#e=null,this.adapter=this.#n.adapter}catch(e){this.#i=!0,console.error(e)}finally{this.#r=!1,this.requestUpdate()}}}#k(){let e=this.isConnected?this.adapter:null;(this.#x?.adapter??null)!==e&&(this.#x?.off(),this.#x=e===null?null:{adapter:e,off:e.onChange(()=>{let e=this.#o;this.#o=null,(this.#a!==null||e!==null)&&(this.#a=e,e!==null&&this.#s++,this.requestUpdate()),this.#E(wi),this.dispatchEvent(new Event(bi,{bubbles:!0,composed:!0}))})})}#A(e){let t=this.locale?[this.locale]:this.lang?[this.lang]:[...navigator.languages??[],navigator.language].filter(e=>!!e),n=[...Fn,...e.catalogs].filter(e=>e.namespace===k).map(e=>e.locale);return Wt(t,[...new Set(n)],`en`)}#j(){let e=this.theme;return e!==null&&yi.includes(e)?e:`auto`}render(){let{authoring:e,adapter:t}=this,n=this.#j(),r=this.#i?{key:`surface.failed`}:this.#t&&t===null?{key:`surface.loading`}:this.#a,i=e.locale,a=e=>typeof e==`string`?e.split(/\s+/).filter(e=>e!==``):e,o=a(this.featured)??X().featured,s=(a(this.panels)??Ti).filter(e=>Ti.includes(e)),c=new Set([...Oi,...e.descriptors.flatMap(e=>[e.icon,...(e.templates??[]).map(t=>t.icon??e.icon)])]),l=[`toolbar: toolbar-bar`,`button: toolbar-button`,`icon-button: toolbar-icon-button`,`views: toolbar-views`,`view: toolbar-view`,`separator: toolbar-separator`,`icon: toolbar-icon`,`insert`,`menu: insert-menu`,`style-menu`,`style-colors`,`style-panel`].concat([...c].map(e=>`icon-${e}`)).join(`, `),u=r=>r===`issues`?g`<astl-issues part="issues" data-theme=${n} .authoring=${e} .adapter=${t}></astl-issues>`:g`<astl-inspector part="inspector" exportparts=${ki} data-theme=${n} .authoring=${e} .adapter=${t}></astl-inspector>`,d=(t,n)=>e.t(k,t,n),f=this.#w(),p=[...this.#C().map(e=>{let n=t?.editsSource===!0?`source`:e;return{name:e,label:d(`view.${n}`),description:d(`view.${n}Hint`)}}),...this.#S()],m=f!==`visual`;return g`<div class=${s.length===0||m?`layout solo`:`layout`}>
1450
+ `],di=e=>`load`in e?e.tag:e.manifest.tag,fi=null;function pi(){return fi??=Array.from(crypto.getRandomValues(new Uint8Array(16)),e=>e.toString(16).padStart(2,`0`)).join(``),fi}function mi(e,t){return ie({components:t,secret:pi(),slotKinds:[...e.slotKinds.values()],profile:e.profile,catalogs:e.catalogs,styleTemplates:[...e.styleTemplates.values()],...e.urlPolicy===null?{}:{urlPolicy:e.urlPolicy},...e.groundColors===null?{}:{groundColors:e.groundColors}})}var hi={components:new Map,editors:new Map,elements:new Map,styleTemplates:new Map,slotKinds:new Map,catalogs:[],profile:{},urlPolicy:null,groundColors:null,uploadAsset:null,pickPicture:null,fonts:Rn,styles:In,featured:[],views:[],menuMessages:null},Y=null;function X(){return Y??={...hi,engine:mi(hi,[]),version:0},Y}var gi=new Set;function Z(e,t,n,r){let i=new Map(e);for(let e of t??[]){let t=n(e),a=i.get(t);if(a!==void 0&&a!==e)throw Error(`${r} ${t} is already registered`);i.set(t,e)}return i}function _i(e){let t=Y??{...hi,version:0},n=e=>e.manifest.tag,r={components:Z(t.components,e.components,n,`Component`),editors:Z(t.editors,e.editors,n,`Editor descriptor`),elements:Z(t.elements,e.elements,di,`Preview element`),styleTemplates:Z(t.styleTemplates,e.styleTemplates,e=>e.name,`Style template`),slotKinds:Z(t.slotKinds,e.slotKinds,e=>e.kind,`Slot kind`),catalogs:[...new Set([...t.catalogs,...e.catalogs??[]])],profile:{...t.profile,...e.profile},urlPolicy:e.urlPolicy??t.urlPolicy,groundColors:e.groundColors??t.groundColors,uploadAsset:e.uploadAsset??t.uploadAsset,pickPicture:e.pickPicture??t.pickPicture,fonts:e.fonts??t.fonts,styles:e.styles??t.styles,featured:e.featured??t.featured,views:e.views??t.views,menuMessages:e.menuMessages??t.menuMessages},i=[`components`,`editors`,`elements`,`styleTemplates`,`slotKinds`],a=e=>JSON.stringify(Object.entries(e).sort());if(Y!==null&&i.every(e=>r[e].size===t[e].size)&&r.catalogs.length===t.catalogs.length&&r.urlPolicy===t.urlPolicy&&JSON.stringify(r.groundColors)===JSON.stringify(t.groundColors)&&r.uploadAsset===t.uploadAsset&&r.pickPicture===t.pickPicture&&r.menuMessages===t.menuMessages&&JSON.stringify(r.fonts)===JSON.stringify(t.fonts)&&JSON.stringify(r.styles)===JSON.stringify(t.styles)&&r.featured.join(` `)===t.featured.join(` `)&&JSON.stringify(r.views)===JSON.stringify(t.views)&&a(r.profile)===a(t.profile))return;let o=mi(r,[...r.components.values()]);jn({engine:o,descriptors:[...r.editors.values()],locale:`en`,fonts:r.fonts,styles:r.styles}),Y={...r,engine:o,version:t.version+1};for(let e of gi)e.requestUpdate()}function vi(e,t,n){let r=e=>[...e.entries()].filter(([e])=>n===null||n.includes(e)).map(([,e])=>e);return jn({engine:n===null?e.engine:mi(e,r(e.components)),descriptors:r(e.editors),elements:r(e.elements),locale:t,catalogs:e.catalogs,styleTemplates:[...e.styleTemplates.values()],fonts:e.fonts,styles:e.styles,...e.urlPolicy===null?{}:{urlPolicy:e.urlPolicy},...e.uploadAsset===null?{}:{uploadAsset:e.uploadAsset},...e.pickPicture===null?{}:{pickPicture:e.pickPicture},...e.menuMessages===null?{}:{menuMessages:e.menuMessages}})}var yi=[`light`,`dark`,`hc`,`auto`],bi=`astl-editor-change`,xi=`astl-editor-ready`,Si=`astl-editor-view`,Ci=[`visual`,`source`],wi=300,Ti=[`issues`,`inspector`],Ei={fromAttribute:e=>e===null?null:e.split(/\s+/).filter(e=>e!==``)},Di={fromAttribute:e=>{try{return e===null?null:JSON.parse(e)}catch{return null}}},Oi=[`chevron`,`bold`,`italic`,`underline`,`link`,`bulleted`,`numbered`,`undo`,`redo`,`wrap`,`text`,`image`,`files`,`add`,`templates`],ki=`header: inspector-header, id: inspector-id, actions: inspector-actions, issue: inspector-issue, field: inspector-field, label: inspector-label, style: inspector-style`,Q=null,$=null,Ai=class extends Xt{static properties={locale:{},components:{converter:Ei},featured:{converter:Ei},panels:{converter:Ei},view:{},views:{converter:Di},theme:{},previewPolicy:{attribute:!1},adapter:{attribute:!1}};static styles=ui;#e=null;#t=null;#n=null;#r=!1;#i=!1;#a=null;#o=null;#s=0;#c=null;#l=()=>{};#u=new Promise(e=>{this.#l=e});#d={ask:e=>this.renderRoot.querySelector(`astl-picture-dialog`)?.ask(e)??Promise.resolve(null),refuse:()=>{this.#a={key:`picture.pasteRefused`},this.requestUpdate()},style:e=>{this.renderRoot.querySelector(`astl-toolbar`)?.openStyle(e)}};#f=e=>{this.#o=e};#p={start:!1,end:!1};#m=e=>{let t=e.target,n=t.name===`end`?`end`:`start`,r=t.assignedElements().length>0;this.#p[n]!==r&&(this.#p[n]=r,this.requestUpdate())};#h=null;#g=null;#_=[];#v=null;#y;#b=null;#x=null;constructor(){if(super(),this.locale=null,this.components=null,this.featured=null,this.panels=null,this.view=`visual`,this.views=null,this.theme=`auto`,this.previewPolicy=null,this.adapter=null,Object.hasOwn(this,`value`)){let e=this.value;delete this.value,typeof e==`string`&&(this.value=e)}}get value(){return this.adapter?.getSource()??this.#e??`<astl-doc lang="${this.authoring.locale}"></astl-doc>`}set value(e){this.adapter===null?this.#e=e:this.adapter.setSource(e)}get ready(){return this.#u}async preview(){await this.updateComplete,await this.renderRoot.querySelector(`astl-preview`)?.refresh()}get authoring(){let e=X(),t=this.#A(e),n=this.components,r=typeof n==`string`?n.split(/\s+/).filter(e=>e!==``):n,i=`${e.version}\n${t}\n${r===null?`*`:r.join(` `)}`;return this.#b?.key!==i&&(this.#b={key:i,authoring:vi(e,t,r)}),this.#b.authoring}connectedCallback(){super.connectedCallback(),gi.add(this),this.#t===!0&&this.#O(),this.#k()}disconnectedCallback(){super.disconnectedCallback(),gi.delete(this),clearTimeout(this.#y),this.#c=null,this.#k();let e=this.#n;e!==null&&(this.#e=e.adapter.getSource(),e.destroy(),this.#n=null,this.adapter=null)}#S(){let e=this.views??X().views;return Array.isArray(e)?e:[]}#C(){return this.adapter?.editsSource===!0?[`visual`]:Ci}#w(){return[...this.#C(),...this.#S().map(e=>e.name)].includes(this.view)?this.view:`visual`}#T(){let e=this.#g??this.#h??this.value,t=this.authoring.validate(e).issues.filter(e=>e.severity===`error`);return this.#_=t,t.length>0?(this.#a={key:`view.sourceErrors`,params:{n:t.length}},this.#s++,!1):(this.#g!==null&&$?.formatHtml(this.#g)!==this.#h&&(this.value=this.#g),this.#g=null,!0)}#E(e){clearTimeout(this.#y),this.#y=setTimeout(()=>{let e=this.adapter;this.#v=e===null?null:this.authoring.outline(e.getSource()),this.requestUpdate()},e)}willUpdate(e){if(e.has(`theme`)&&(this.dataset.theme=this.#j()),e.has(`view`)&&this.adapter?.editsSource!==!0){let t=e.get(`view`);t===`source`&&this.view!==`source`&&!this.#T()?this.view=`source`:this.view===`source`&&t!==`source`&&(this.#h=this.#g=null,this.#_=[],$===null&&import(`./chunks/source-view-BlJ2mRns.js`).then(e=>{$=e,this.requestUpdate()},e=>console.error(e)))}let t=this.#n;if(t!==null&&this.adapter!==t.adapter&&(this.adapter===null&&(this.#e=t.adapter.getSource()),t.destroy(),this.#n=null),this.adapter!==null&&this.#n===null)this.#t=!1,this.#e!==null&&this.adapter.setSource(this.#e),this.#e=null;else if(this.adapter===null&&this.#n===null)this.isConnected&&(this.#t===null||e.has(`adapter`))&&this.#D();else if(this.#n!==null&&Q!==null&&this.#n.authoring!==this.authoring){let e=this.#n.adapter.getSource();this.#n.destroy(),this.#n=Q.createSurface(this,this.authoring,X().engine.manifests,e,this.#d,this.#f),this.adapter=this.#n.adapter}this.#k()}updated(e){e.has(`theme`)&&this.renderRoot.querySelector(`astl-preview`)?.requestUpdate();let t=this.adapter;t!==null&&t!==this.#c&&this.isConnected&&(this.#c=t,this.#E(0),this.#l(),this.dispatchEvent(new Event(xi,{bubbles:!0,composed:!0})));let n=e.get(`view`);e.has(`view`)&&n!==void 0&&n!==this.view&&this.dispatchEvent(new CustomEvent(Si,{detail:{view:this.view},bubbles:!0,composed:!0}))}#D(){document.readyState===`loading`?document.addEventListener(`DOMContentLoaded`,()=>this.requestUpdate(`adapter`),{once:!0}):(this.#t=this.querySelector(`:scope > [slot="surface"]`)===null,this.#t&&this.#O())}async#O(){if(!(this.#r||this.#n!==null)){this.#r=!0,this.#i=!1;try{if(Q??=await import(`./chunks/surface-BhmSAte0.js`),!this.isConnected||!this.#t||this.adapter!==null||this.#n!==null)return;this.#n=Q.createSurface(this,this.authoring,X().engine.manifests,this.value,this.#d,this.#f),this.#e=null,this.adapter=this.#n.adapter}catch(e){this.#i=!0,console.error(e)}finally{this.#r=!1,this.requestUpdate()}}}#k(){let e=this.isConnected?this.adapter:null;(this.#x?.adapter??null)!==e&&(this.#x?.off(),this.#x=e===null?null:{adapter:e,off:e.onChange(()=>{let e=this.#o;this.#o=null,(this.#a!==null||e!==null)&&(this.#a=e,e!==null&&this.#s++,this.requestUpdate()),this.#E(wi),this.dispatchEvent(new Event(bi,{bubbles:!0,composed:!0}))})})}#A(e){let t=this.locale?[this.locale]:this.lang?[this.lang]:[...navigator.languages??[],navigator.language].filter(e=>!!e),n=[...Fn,...e.catalogs].filter(e=>e.namespace===k).map(e=>e.locale);return Wt(t,[...new Set(n)],`en`)}#j(){let e=this.theme;return e!==null&&yi.includes(e)?e:`auto`}render(){let{authoring:e,adapter:t}=this,n=this.#j(),r=this.#i?{key:`surface.failed`}:this.#t&&t===null?{key:`surface.loading`}:this.#a,i=e.locale,a=e=>typeof e==`string`?e.split(/\s+/).filter(e=>e!==``):e,o=a(this.featured)??X().featured,s=(a(this.panels)??Ti).filter(e=>Ti.includes(e)),c=new Set([...Oi,...e.descriptors.flatMap(e=>[e.icon,...(e.templates??[]).map(t=>t.icon??e.icon)])]),l=[`toolbar: toolbar-bar`,`button: toolbar-button`,`icon-button: toolbar-icon-button`,`views: toolbar-views`,`view: toolbar-view`,`separator: toolbar-separator`,`icon: toolbar-icon`,`insert`,`menu: insert-menu`,`style-menu`,`style-colors`,`style-panel`].concat([...c].map(e=>`icon-${e}`)).join(`, `),u=r=>r===`issues`?g`<astl-issues part="issues" data-theme=${n} .authoring=${e} .adapter=${t}></astl-issues>`:g`<astl-inspector part="inspector" exportparts=${ki} data-theme=${n} .authoring=${e} .adapter=${t}></astl-inspector>`,d=(t,n)=>e.t(k,t,n),f=this.#w(),p=[...this.#C().map(e=>{let n=t?.editsSource===!0?`source`:e;return{name:e,label:d(`view.${n}`),description:d(`view.${n}Hint`)}}),...this.#S()],m=f!==`visual`;return g`<div class=${s.length===0||m?`layout solo`:`layout`}>
1451
1451
  <astl-toolbar part="toolbar" exportparts=${l} data-theme=${n} .authoring=${e}
1452
1452
  .adapter=${t} .featured=${o} .views=${p} .view=${f}
1453
1453
  @astl-toolbar-view=${e=>{this.view=e.detail.view}}></astl-toolbar>