From 750564ab7eb1056d3603251ac453ba69e6cd8ec4 Mon Sep 17 00:00:00 2001 From: Aemeath <35622087+tickcount@users.noreply.github.com> Date: Thu, 22 Oct 2026 18:01:01 +0300 Subject: [PATCH] Dawnline 0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Dropdowns (the ⋯ menu, the language picker, the page's QR card) open on a softer spring: they grow in without the wobble at the end - Renaming a device on its card: the hint under the name and a refusal take the status's place as whole words, and after a save the status comes back the same way - Cancelling a rename started while the status was still changing puts back what it said, not a mix of its old and new letters --- DESIGN.md | 30 +++++++++--------- package/luci-app-dawnline/Makefile | 2 +- .../share/dawnline/portal/assets/portal.js | 10 +++--- .../root/usr/share/ucode/dawnline/util.uc | 2 +- web/package-lock.json | 4 +-- web/package.json | 2 +- web/src/portal/flows/rename.ts | 31 ++++++++++++------- web/src/portal/motion.ts | 4 +-- web/src/portal/ui/drop.ts | 6 ++-- web/src/portal/ui/morph.ts | 6 ++-- 10 files changed, 53 insertions(+), 44 deletions(-) diff --git a/DESIGN.md b/DESIGN.md index 877b922..d29d54f 100644 --- a/DESIGN.md +++ b/DESIGN.md @@ -752,7 +752,7 @@ The ⋯ menu, the pick pills' popups and the page code card are one kind of thin - **Glass** (`.drop`): Apple's iOS 26 Liquid Glass, Regular (Figma kit), in `tokens.css` `--glass-*`: on dark black 40% with a white 4% film (the kit's black 60% + white 6% at 67%), on light `rgba(245,245,245,.6)`; backdrop `blur 28, saturate 1.8`; a soft, even 1 px inner edge, no gradient (white 5% / black 4%); a shadow on light only, soft (`0 8 32` black 12%): on dark the edge sets it apart. Its own colours: text `#F5F5F5` / `#1A1A1A`, subtitles `#8A8A8A` / `#727272`, destructive `#FF383C` (`--bad`), separators a touch softer than the edge (white 4% / black 3%); a solid highlight (`raised` + `text` 8% / 11%). Nothing dims around one. Over the page and a sheet alike (z 60). - **Placement:** its nearest point 8 px from its button, under it where it fits, else over it; centred on it, 12 px inside the screen's edge. -- **Motion:** in, a spring out of where it grows from (`scale .5, blur 6` on POP, a little overshoot); out, back towards it from where it stands (`scale .7, blur 4`, 110 ms EASE_IN): quicker than it came. +- **Motion:** in, a spring out of where it grows from (`scale .5, blur 6` on SOFT, about 4% over: POP's 14% read as a wobble); out, back towards it from where it stands (`scale .7, blur 4`, 110 ms EASE_IN): quicker than it came. - **Highlight** (`ui/glide.ts`): one for all of a dropdown's items (rows, segments), under their icons and words, solid and the same for every item (no tint for Reconnect or Remove), with the corners of what it is on. It fades in (160 ms) where the pointer or the keyboard is, glides from item to item on GLIDE (`spring(640, 40)`, about 2% over: place, size, corners), presses in to 0.97 with what it is on, and fades where the pointer leaves, or goes back to the item it rests on (a pick pill's picked segment, where it starts). - **Shut by:** a press outside it and its button, its button again, Escape (only it: a sheet under it stays; focus goes back to its button), a choice, another dropdown opening (at once), a resize (at once). One at a time; the page holds its repaints while one is open. @@ -840,10 +840,10 @@ A longer reason sits in `title` and, for a screen reader, in hidden text right a **Rename on the card** (`flows/rename.ts`): the name is where it is changed. - **At rest:** an editable name is a button. Under the pointer a faint wash (`raised` + text 6%, radius 8) hugs its words. -- **Editing:** the name gives way to its own input in the same font and place, with no frame or fill: only the field's caret and selection (the name selected). The status line morphs to a hint in `text-2`. -- **Saving:** the words shimmer (see *Motion → Shimmer*), settle to solid, and the status morphs back from the hint, words and colour. -- **Cancelling:** the name it had comes back; the status turns back. -- **Refusal:** the words shake (no red ring here, the field has none) and the status line says why in `bad`, in its one line, in full on hover. +- **Editing:** the name gives way to its own input in the same font and place, with no frame or fill: only the field's caret and selection (the name selected). The status line blurs across to a hint in `text-2`: whole words, not letters (*Whole mode*), as the hint only stands in for the status. +- **Saving:** the words shimmer (see *Motion → Shimmer*), settle to solid, and the status blurs back from the hint, words and colour. +- **Cancelling:** the name it had comes back; the status blurs back. +- **Refusal:** the words shake (no red ring here, the field has none) and the status line blurs across to why in `bad`, in its one line, in full on hover. **Add card:** a `button.dev.add`, min-height 144, centred, grey glass plus 36 and "Add device" in `text-2` 500. Hover raised + knob 45%, press `.98`. @@ -1093,8 +1093,8 @@ Computed from `spring()` and confirmed live: the published CSS variables read 57 | Token | k / c | ζ | Settles | Overshoot | 50% at | 90% at | Peak at | Used for | |---|---|---|---|---|---|---|---|---| | **BOUNCY** | 300 / 20 | 0.58 | 572 ms | **10.8%** | 78 ms | 133 ms | 222 ms | Toast in, a newly created device card popping in and the way's server icon pop | -| **POP** | 520 / 24 | 0.53 | 544 ms | **14.3%** | 58 ms | 96 ms | 162 ms | ⋯ menu open, check icon after copy, the OS mark turning in | -| **SOFT** | 380 / 28 | 0.72 | 476 ms | 3.9% | 74 ms | 138 ms | 232 ms | Accordion rows and chevron, dialog open (computer) and its scrim | +| **POP** | 520 / 24 | 0.53 | 544 ms | **14.3%** | 58 ms | 96 ms | 162 ms | Check icon after copy, the OS mark turning in | +| **SOFT** | 380 / 28 | 0.72 | 476 ms | 3.9% | 74 ms | 138 ms | 232 ms | Dropdowns open (⋯ menu, pick pills, page code card), accordion rows and chevron, dialog open (computer) and its scrim | | **SMOOTH** | 300 / 35 | 1.01 | 524 ms | 0 | 98 ms | 228 ms | — | Widths and heights (morph width, sheet height glide, sheet width, a card's and the notice's height on a repaint, the QR box's size), FLIP of cards and letters, picker pill trailing edge, flex-grow and the picked name's width, folds, tooltip glide, snap-back after a pull and its dim; the switch, the field's focus ring and the go button's colours (via CSS var) | | **LEAD** | 520 / 46 | 1.01 | 396 ms | 0 | 74 ms | 173 ms | — | Leading edge of the stretching picker pill | | **QUICK** | 900 / 60 | 1.00 | 296 ms | 0 | 56 ms | 130 ms | — | ⋯ menu highlight following the pointer | @@ -1187,7 +1187,7 @@ Every text that changes in place while visible morphs. Hover readouts over chart - **Kerning correction:** each letter is nudged onto the plain text's kerned position, so the last frame lands exactly on the final text. - **Done:** at the end the element holds plain text again, and an ellipsis box keeps its ellipsis. -**Whole mode** (`whole: true`, for words in a flowing sentence, app names, menu paths): old words `out, b4` 180 ms EASE_IN, new words `in, b4 → 0` 280 / 60 EASE_OUT. +**Whole mode** (`whole: true`, for words in a flowing sentence, app names, menu paths, and the rename hint and refusals standing in for a card's status: `data-whole` on the line, so the repaint after a save blurs the status back too): old words `out, b4` 180 ms EASE_IN, new words `in, b4 → 0` 280 / 60 EASE_OUT. **Colour** (`morphChanged` after a repaint): a text that takes another colour with its words (a status turning green) keeps the old colour on the words that leave, and the new words turn from it (280 ms EASE_OUT). @@ -1272,13 +1272,13 @@ A click mid-way (a double click) turns every row and body back from where it sta | What | Motion | Timing | |---|---|---| -| Open | `in, s.9 → 1, b4 → 0`, origin at the button's corner (top right, or bottom right when above) | POP 544 | -| Close | from where it stands (one still popping in included) → `out, s.96, b3` | 120, EASE_IN | -| Highlight appears | opacity at the hovered item | 150, EASE_OUT | -| Highlight moves | `translateY` to the next item; colour to its tone | QUICK 296; bg 150 | -| Highlight leaves | opacity 0 when the pointer leaves the menu; back on an item while it still shows, it turns back and glides from where it stands | 150 | +| Open | `in, s.5 → 1, b6 → 0`, origin at the button's side (see *Dropdowns*) | SOFT 476 | +| Close | from where it stands (one still opening included) → `out, s.7, b4` | 110, EASE_IN | +| Highlight appears | opacity at the hovered item | 160, EASE_OUT | +| Highlight moves | place, size and corners to the next item | GLIDE | +| Highlight leaves | opacity 0 when the pointer leaves the menu; back on an item while it still shows, it turns back and glides from where it stands | 160 | -QUICK replaced SMOOTH for the highlight because SMOOTH felt late: it reaches 90% at 130 ms against SMOOTH's 228 ms. +POP (14% over) used to open every dropdown: from `scale .5` it overshot to about 1.07 and read as a wobble; SOFT tops out near 1.02. #### 7. Toast @@ -1405,7 +1405,7 @@ Words being saved (a name on its card) shimmer as an assistant's "thinking" line - 0: Return; the words' copy laid over them dims to the muted base (240, standard curve), the caret steps aside; - +120: the first sweep sets off (1.8 s across, linear), then again after a 0.58 s rest, until the answer; - answer: the band holds where it is and the words fade back to their colour (480, standard curve); -- then: the input gives way to the name (identical, nothing moves), the card is drawn again and its status morphs from the hint, words and colour. +- then: the input gives way to the name (identical, nothing moves), the card is drawn again and its status blurs back from the hint (whole words), words and colour. **Reconnect:** diff --git a/package/luci-app-dawnline/Makefile b/package/luci-app-dawnline/Makefile index 5cc356b..a72824c 100644 --- a/package/luci-app-dawnline/Makefile +++ b/package/luci-app-dawnline/Makefile @@ -6,7 +6,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=luci-app-dawnline -PKG_VERSION:=0.15.0 +PKG_VERSION:=0.15.1 PKG_RELEASE:=1 PKG_LICENSE:=MIT # po//dawnline.po becomes luci-i18n-dawnline- (luci.mk), released diff --git a/package/luci-app-dawnline/root/usr/share/dawnline/portal/assets/portal.js b/package/luci-app-dawnline/root/usr/share/dawnline/portal/assets/portal.js index 1deeeb0..2c8c5b7 100644 --- a/package/luci-app-dawnline/root/usr/share/dawnline/portal/assets/portal.js +++ b/package/luci-app-dawnline/root/usr/share/dawnline/portal/assets/portal.js @@ -1,6 +1,6 @@ -"use strict";(()=>{var Xi=Object.create;var Xo=Object.defineProperty;var Ji=Object.getOwnPropertyDescriptor;var Zi=Object.getOwnPropertyNames;var ea=Object.getPrototypeOf,ta=Object.prototype.hasOwnProperty;var na=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var oa=(e,t,n,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Zi(t))!ta.call(e,r)&&r!==n&&Xo(e,r,{get:()=>t[r],enumerable:!(o=Ji(t,r))||o.enumerable});return e};var ra=(e,t,n)=>(n=e!=null?Xi(ea(e)):{},oa(t||!e||!e.__esModule?Xo(n,"default",{value:e,enumerable:!0}):n,e));var qr=na((Fr,Wr)=>{"use strict";var Gr=(function(){var e=function(g,v){var d=236,u=17,l=g,b=n[v],y=null,p=0,C=null,k=[],A={},F=function(S,H){p=l*4+17,y=(function(L){for(var P=new Array(L),$=0;$=7&&Z(S),C==null&&(C=Ie(l,b,k)),le(C,H)},N=function(S,H){for(var L=-1;L<=7;L+=1)if(!(S+L<=-1||p<=S+L))for(var P=-1;P<=7;P+=1)H+P<=-1||p<=H+P||(0<=L&&L<=6&&(P==0||P==6)||0<=P&&P<=6&&(L==0||L==6)||2<=L&&L<=4&&2<=P&&P<=4?y[S+L][H+P]=!0:y[S+L][H+P]=!1)},R=function(){for(var S=0,H=0,L=0;L<8;L+=1){F(!0,L);var P=r.getLostPoint(A);(L==0||S>P)&&(S=P,H=L)}return H},q=function(){for(var S=8;S>L&1)==1;y[Math.floor(L/3)][L%3+p-8-3]=P}for(var L=0;L<18;L+=1){var P=!S&&(H>>L&1)==1;y[L%3+p-8-3][Math.floor(L/3)]=P}},te=function(S,H){for(var L=b<<3|H,P=r.getBCHTypeInfo(L),$=0;$<15;$+=1){var I=!S&&(P>>$&1)==1;$<6?y[$][8]=I:$<8?y[$+1][8]=I:y[p-15+$][8]=I}for(var $=0;$<15;$+=1){var I=!S&&(P>>$&1)==1;$<8?y[8][p-$-1]=I:$<9?y[8][15-$-1+1]=I:y[8][15-$-1]=I}y[p-8][8]=!S},le=function(S,H){for(var L=-1,P=p-1,$=7,I=0,G=r.getMaskFunction(H),W=p-1;W>0;W-=2)for(W==6&&(W-=1);;){for(var X=0;X<2;X+=1)if(y[P][W-X]==null){var oe=!1;I>>$&1)==1);var U=G(P,W-X);U&&(oe=!oe),y[P][W-X]=oe,$-=1,$==-1&&(I+=1,$=7)}if(P+=L,P<0||p<=P){P-=L,L=-L;break}}},me=function(S,H){for(var L=0,P=0,$=0,I=new Array(H.length),G=new Array(H.length),W=0;W=0?Yo.getAt(jo):0}}for(var Qo=0,U=0;UW*8)throw"code length overflow. ("+$.getLengthInBits()+">"+W*8+")";for($.getLengthInBits()+4<=W*8&&$.put(0,4);$.getLengthInBits()%8!=0;)$.putBit(!1);for(;!($.getLengthInBits()>=W*8||($.put(d,8),$.getLengthInBits()>=W*8));)$.put(u,8);return me($,P)};A.addData=function(S,H){H=H||"Byte";var L=null;switch(H){case"Numeric":L=m(S);break;case"Alphanumeric":L=M(S);break;case"Byte":L=h(S);break;case"Kanji":L=x(S);break;default:throw"mode:"+H}k.push(L),C=null},A.isDark=function(S,H){if(S<0||p<=S||H<0||p<=H)throw S+","+H;return y[S][H]},A.getModuleCount=function(){return p},A.make=function(){if(l<1){for(var S=1;S<40;S++){for(var H=c.getRSBlocks(S,b),L=f(),P=0;P";for(var $=0;$';L+=""}return L+="",L+="",L},A.createSvgTag=function(S,H,L,P){var $={};typeof arguments[0]=="object"&&($=arguments[0],S=$.cellSize,H=$.margin,L=$.alt,P=$.title),S=S||2,H=typeof H=="undefined"?S*4:H,L=typeof L=="string"?{text:L}:L||{},L.text=L.text||null,L.id=L.text?L.id||"qrcode-description":null,P=typeof P=="string"?{text:P}:P||{},P.text=P.text||null,P.id=P.text?P.id||"qrcode-title":null;var I=A.getModuleCount()*S+H*2,G,W,X,oe,U="",be;for(be="l"+S+",0 0,"+S+" -"+S+",0 0,-"+S+"z ",U+=''+de(P.text)+"":"",U+=L.text?''+de(L.text)+"":"",U+='',U+='":H+=">";break;case"&":H+="&";break;case'"':H+=""";break;default:H+=P;break}}return H},Ge=function(S){var H=1;S=typeof S=="undefined"?H*2:S;var L=A.getModuleCount()*H+S*2,P=S,$=L-S,I,G,W,X,oe,U={"██":"█","█ ":"▀"," █":"▄"," ":" "},be={"██":"▀","█ ":"▀"," █":" "," ":" "},ue="";for(I=0;I=$?be[oe]:U[oe];ue+=` -`}return L%2&&S>0?ue.substring(0,ue.length-L-1)+Array(L+1).join("▀"):ue.substring(0,ue.length-1)};return A.createASCII=function(S,H){if(S=S||1,S<2)return Ge(H);S-=1,H=typeof H=="undefined"?S*2:H;var L=A.getModuleCount()*S+H*2,P=H,$=L-H,I,G,W,X,oe=Array(S+1).join("██"),U=Array(S+1).join(" "),be="",ue="";for(I=0;I>>8),b.push(C&255)):b.push(u)}}return b}};var t={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},n={L:1,M:0,Q:3,H:2},o={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},r=(function(){var g=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],v=1335,d=7973,u=21522,l={},b=function(y){for(var p=0;y!=0;)p+=1,y>>>=1;return p};return l.getBCHTypeInfo=function(y){for(var p=y<<10;b(p)-b(v)>=0;)p^=v<=0;)p^=d<5&&(C+=3+F-5)}for(var k=0;k=256;)l-=255;return g[l]},u})();function i(g,v){if(typeof g.length=="undefined")throw g.length+"/"+v;var d=(function(){for(var l=0;l>>7-u%8&1)==1},d.put=function(u,l){for(var b=0;b>>l-b-1&1)==1)},d.getLengthInBits=function(){return v},d.putBit=function(u){var l=Math.floor(v/8);g.length<=l&&g.push(0),u&&(g[l]|=128>>>v%8),v+=1},d},m=function(g){var v=t.MODE_NUMBER,d=g,u={};u.getMode=function(){return v},u.getLength=function(y){return d.length},u.write=function(y){for(var p=d,C=0;C+2>>8&255)*192+(k&255),y.put(k,13),C+=2}if(C>>8)},v.writeBytes=function(d,u,l){u=u||0,l=l||d.length;for(var b=0;b0&&(d+=","),d+=g[u];return d+="]",d},v},T=function(){var g=0,v=0,d=0,u="",l={},b=function(p){u+=String.fromCharCode(y(p&63))},y=function(p){if(!(p<0)){if(p<26)return 65+p;if(p<52)return 97+(p-26);if(p<62)return 48+(p-52);if(p==62)return 43;if(p==63)return 47}throw"n:"+p};return l.writeByte=function(p){for(g=g<<8|p&255,v+=8,d+=1;v>=6;)b(g>>>v-6),v-=6},l.flush=function(){if(v>0&&(b(g<<6-v),g=0,v=0),d%3!=0)for(var p=3-d%3,C=0;C=v.length){if(l==0)return-1;throw"unexpected end of file./"+l}var p=v.charAt(d);if(d+=1,p=="=")return l=0,-1;if(p.match(/^\s$/))continue;u=u<<6|y(p.charCodeAt(0)),l+=6}var C=u>>>l-8&255;return l-=8,C};var y=function(p){if(65<=p&&p<=90)return p-65;if(97<=p&&p<=122)return p-97+26;if(48<=p&&p<=57)return p-48+52;if(p==43)return 62;if(p==47)return 63;throw"c:"+p};return b},B=function(g,v){var d=g,u=v,l=new Array(g*v),b={};b.setPixel=function(k,A,F){l[A*d+k]=F},b.write=function(k){k.writeString("GIF87a"),k.writeShort(d),k.writeShort(u),k.writeByte(128),k.writeByte(0),k.writeByte(0),k.writeByte(0),k.writeByte(0),k.writeByte(0),k.writeByte(255),k.writeByte(255),k.writeByte(255),k.writeString(","),k.writeShort(0),k.writeShort(0),k.writeShort(d),k.writeShort(u),k.writeByte(0);var A=2,F=p(A);k.writeByte(A);for(var N=0;F.length-N>255;)k.writeByte(255),k.writeBytes(F,N,255),N+=255;k.writeByte(F.length-N),k.writeBytes(F,N,F.length-N),k.writeByte(0),k.writeString(";")};var y=function(k){var A=k,F=0,N=0,R={};return R.write=function(q,Y){if(q>>>Y)throw"length over";for(;F+Y>=8;)A.writeByte(255&(q<>>=8-F,N=0,F=0;N=q<0&&A.writeByte(N)},R},p=function(k){for(var A=1<>6,128|s&63):s<55296||s>=57344?o.push(224|s>>12,128|s>>6&63,128|s&63):(r++,s=65536+((s&1023)<<10|n.charCodeAt(r)&1023),o.push(240|s>>18,128|s>>12&63,128|s>>6&63,128|s&63))}return o}return t(e)}})();(function(e){typeof define=="function"&&define.amd?define([],e):typeof Fr=="object"&&(Wr.exports=e())})(function(){return Gr})});var Jo={s:{'"%s" already exists.':"Устройство «%s» уже есть.",'"%s" is already taken.':"Идентификатор «%s» уже занят.","%s (Android: %s)":"%s (на Android: %s)","%s (router time)":"%s (по времени роутера)","%s and %s overlap: each packet type needs values of its own.":"%s и %s пересекаются: у каждого типа пакетов должны быть свои значения.","%s can't use the network interface %s: it exists and isn't Dawnline's.":"Сервер %s не может использовать сетевой интерфейс %s: он уже существует и создан не Dawnline.","%s connected":"Подключено: %s","%s d ago":"%s дн. назад","%s h ago":"%s ч назад","%s has a tag that is not closed with >.":"%s: тег не закрыт символом >.",'%s has an invalid interface name "%s".':"У сервера %s недопустимое имя интерфейса «%s».","%s has no room for every device on %s.":"В подсети %s не хватит адресов для всех устройств сервера %s.","%s in total":"%s всего","%s is kept down.":"Сервер %s остановлен.","%s is kept down: its disguise has values AmneziaWG cannot take. %s":"Сервер %s остановлен: в его маскировке есть значения, которые AmneziaWG не примет. %s","%s is kept down: its disguise needs AmneziaWG %s (installed: %s).":"Сервер %s остановлен: для его маскировки нужен AmneziaWG %s (установлен %s).","%s is kept down: its disguise needs AmneziaWG %s (installed: none).":"Сервер %s остановлен: для его маскировки нужен AmneziaWG %s (не установлен).","%s left":"осталось %s","%s may not contain # or a line break.":"%s не может содержать # или перенос строки.","%s min ago":"%s мин назад","%s must be a number or a range like 10-100, up to 65535.":"%s: нужно число или диапазон вида 10-100, не больше 65535.","%s must be a number or a range like 100-200, up to 4294967295.":"%s: нужно число или диапазон вида 100-200, не больше 4294967295.","%s must be a number or a range like 5-15, from 1 to 65535.":"%s: нужно число или диапазон вида 5-15, от 1 до 65535.","%s must be a whole number from 0 to 65535.":"%s: нужно целое число от 0 до 65535.","%s must be at least 12 with header protection.":"%s: с защитой заголовков нужно не меньше 12.","%s must be from %d to %d.":"%s: от %d до %d.","%s must be on or off.":"%s: нужно on или off.","%s of %s":"%s из %s","%s of %s GB":"%s из %s ГБ","%s of %s GB this month":"%s из %s ГБ в этом месяце","%s of %s in total.":"Всего %s из %s.","%s options":"Действия с устройством %s","%s this month":"%s в этом месяце","%s your time":"%s по вашему времени","%s: <%s> is not a tag AmneziaWG apps accept: use with an even number of hex digits, , or with N from 1 to 1000, or .":"%s: тег <%s> не примут приложения AmneziaWG: используйте с чётным числом шестнадцатеричных цифр, , или с N от 1 до 1000 либо .","%sd %sh":"%s д %s ч","%sh %sm":"%s ч %s мин","%sm":"%s мин","A total for your whole access, it does not reset.":"Считается за весь срок доступа и не обнуляется.","APK file on":"APK-файл на","Access %s":"Доступ %s","Access ended":"Доступ закончился","Access must be lan, internet or both.":"Доступ должен быть lan, internet или both.","Access paused":"Доступ на паузе","Access until":"Доступ до",Active:"Активен","WireGuard appAdd Tunnel":"Добавить туннель","Add a device":"Добавить устройство","Add device":"Добавить устройство","Add it from the device":"Добавить с самого устройства","Add the connection":"Добавьте подключение","Add this device":"Добавить это устройство","Add this phone":"Добавить этот телефон","Add your first device":"Добавьте первое устройство","Adding devices isn't available right now: the VPN server isn't ready. Ask whoever sent you this link.":"Сейчас добавить устройство нельзя: VPN-сервер не готов. Обратитесь к тому, кто прислал вам эту ссылку.","Address copied":"Адрес скопирован","AmneziaWG is not installed (%s): install it in Dawnline → Components.":"AmneziaWG не установлен (%s): установите его в Dawnline → Компоненты.","AmneziaWG is not installed: install it in Dawnline → Components.":"AmneziaWG не установлен: установите его в Dawnline → Компоненты.","Android phone":"Телефон Android","Android tablet":"Планшет Android","Ask for a new one.":"Попросите новую.",B:"Б",Back:"Назад",Breadcrumb:"Навигационная цепочка",Cancel:"Отмена","Can’t finish connecting":"Не удаётся подключиться","Circle %s: server %s does not exist.":"Круг %s: сервера %s нет.",Close:"Закрыть","Close this and open it again to keep checking.":"Закройте окно и откройте его снова, чтобы проверить ещё раз.",Configuration:"Конфигурация","Configuration copied":"Конфигурация скопирована","Confirm the import and connect":"Подтвердите импорт и подключитесь",Connect:"Подключить",Connected:"Подключено","Connected, but no data":"Подключено, но данных нет","Connected, no data left":"Подключено, трафик закончился","Connected, outside your hours":"Подключено, вне часов доступа","Connection keeps dropping":"Связь постоянно рвётся","Connection settings only travel encrypted":"Настройки подключения передаются только в зашифрованном виде","AmneziaVPN appContinue":"Продолжить",Copied:"Скопировано",Copy:"Скопировать","Copy %s":"Скопировать %s","Copy %s config":"Скопировать конфигурацию %s","Copy IP address":"Скопировать IP-адрес","Copy link":"Скопировать ссылку","Copy local address":"Скопировать локальный адрес","Copy or save the connection":"Скопировать или сохранить подключение","Copy the configuration":"Скопировать конфигурацию","Copy the key":"Скопировать ключ","in a sentenceCopy the key":"Скопируйте ключ","Copy the link":"Скопировать ссылку","Copying is blocked here. Select the text and copy it by hand.":"Копирование здесь заблокировано. Выделите текст и скопируйте его вручную.","Create connection":"Создать подключение","WireGuard appCreate from QR code":"Создать из QR-кода","WireGuard appCreate from file or archive":"Создать из файла или архива","Cross-site request refused.":"Запрос с другого сайта отклонён.","Data limit must be a positive number of GB.":"Лимит трафика должен быть положительным числом ГБ.","Data limit reached":"Лимит трафика исчерпан","Data this month":"Трафик за месяц","Data used":"Трафик всего",Device:"Устройство","Device %s of %s: MTU %d is not between 1280 and 1500.":"Устройство %s (%s): MTU %d вне пределов от 1280 до 1500.","Device %s of %s: address %s is also used by device %s of %s.":"Устройство %s (%s): адрес %s уже занят устройством %s (%s).","Device %s of %s: address %s is not a plain IPv4 address.":"Устройство %s (%s): адрес %s не является обычным IPv4-адресом.","Device %s of %s: address %s is outside %s's tunnel %s.":"Устройство %s (%s): адрес %s вне туннеля сервера %s (%s).","Device %s of %s: address %s is the router's own address on %s.":"Устройство %s (%s): адрес %s принадлежит самому роутеру на сервере %s.","Device %s of %s: address (none) is not a plain IPv4 address.":"Устройство %s (%s): нет IPv4-адреса.","Device %s of %s: keep-alive %d is not between 0 and 600 seconds.":"Устройство %s (%s): keep-alive %d вне пределов от 0 до 600 секунд.","Device %s of %s: the preshared key is not a key.":"Устройство %s (%s): общий ключ (PSK) некорректен.","Device %s of %s: the private key is not a key.":"Устройство %s (%s): приватный ключ некорректен.","Device %s of %s: the public key is not a key.":"Устройство %s (%s): публичный ключ некорректен.","Device %s of %s: the public key is the server's own.":"Устройство %s (%s): публичный ключ совпадает с ключом сервера.","Device %s: person %s does not exist.":"Устройство %s: человека %s нет.","Device limit must be between 1 and 32.":"Лимит устройств: от 1 до 32.","Device limit reached (%d).":"Достигнут лимит устройств (%d).","Device name":"Имя устройства","Device not found.":"Устройство не найдено.","Device removed":"Устройство удалено","Devices at home":"Устройства дома","Devices at home and on this VPN reach yours as %s":"Устройства дома и в этом VPN обращаются к вашим по адресу %s",Disabled:"Отключено",Download:"Скачать","Download %s config":"Скачать конфигурацию %s","Download for Linux":"Скачать для Linux","Download for Mac":"Скачать для Mac","Download for Windows":"Скачать для Windows","Download from":"Скачать с сайта","Download on the":"Загрузите в","Download the file":"Скачать файл","Download the key":"Скачать ключ",Downloaded:"Получено","End date must be YYYY-MM-DD.":"Дата окончания должна быть в формате ГГГГ-ММ-ДД.","Endpoint must be a hostname or IP address.":"Адрес сервера должен быть именем хоста или IP-адресом.","Ends %s":"Закончится %s","Enter a device name: up to %d letters, digits, spaces and - _ .":"Введите название устройства: до %d букв, цифр, пробелов и - _ .","Except %s: those addresses lead to the home network.":"Кроме %s: эти адреса ведут в домашнюю сеть.",Expired:"Срок истёк","Extra data must be a positive number of GB.":"Дополнительный трафик должен быть положительным числом ГБ.","For computers and routers":"Для компьютеров и роутеров",GB:"ГБ","Gbit/s":"Гбит/с","Get %s":"Установите %s","Get %s on the %s and come back here.":"Установите %s на %s и вернитесь сюда.","Get %s on the router":"Установите %s на роутер","Get it on":"Доступно в","Give the device a name.":"Дайте устройству название.","Handshake complete, but no data":"Рукопожатие есть, но данных нет","Hide key":"Скрыть ключ","Home network":"Домашняя сеть","Home network + Internet":"Домашняя сеть и интернет","Hours must look like 07:00-23:00.":"Часы доступа указываются так: 07:00-23:00.","Hours, router time":"Часы доступа, время роутера","Hours, your time":"Часы доступа, ваше время","I1-I5 together must be at most 2000 characters, not %d.":"I1–I5 вместе: не больше 2000 символов, сейчас %d.","IP address copied":"IP-адрес скопирован","WireGuard appImport Tunnel(s) from File…":"Импорт туннелей из файла…","WireGuard appImport from file or archive":"Импорт из файла или архива","Import the configuration":"Импортируйте конфигурацию","WireGuard appImport tunnel(s) from file…":"Импорт туннелей из файла…","In %s:":"В %s:",Included:"Есть доступ","AmneziaVPN appInsert":"Вставить","Install from":"Установить с сайта","Interface name: 1-12 lowercase letters, digits or _.":"Имя интерфейса: 1–12 строчных латинских букв, цифр или _.",Internet:"Интернет","Invalid JSON.":"Некорректный JSON.","Invalid public key.":"Недопустимый публичный ключ.","It connects, but the connection breaks every few minutes. Another network may help.":"Устройство подключается, но связь рвётся каждые несколько минут. Может помочь другая сеть.","It ended on %s.":"Доступ закончился %s.","It gets new keys and its current settings stop working. Set it up again with the new ones that open next.":"Устройство получит новые ключи, а текущие настройки перестанут работать. Настройте его заново с новыми - они откроются следом.","It gets new keys. This device is connected through its current settings: it disconnects a few seconds after you confirm. Add the new ones that open next.":"Устройство получит новые ключи. Сейчас вы подключены через его текущие настройки: через несколько секунд после подтверждения связь прервётся. Добавьте новые - они откроются следом.","It reaches the router, but the connection never completes. The network may be blocking it.":"Устройство доходит до роутера, но подключение не завершается. Возможно, его блокирует сеть.","Its connection stops working at once. You can add it again later.":"Подключение сразу перестанет работать. Устройство можно будет добавить снова.","Jmin must not be larger than Jmax.":"Jmin не может быть больше Jmax.",KB:"КБ","Keep-alive must be 0-600 seconds.":"Keep-alive: от 0 до 600 секунд.","Key copied":"Ключ скопирован","Key generation failed (is amneziawg-tools installed?).":"Не удалось создать ключ (установлен ли amneziawg-tools?).","Key generation failed (no random data).":"Не удалось создать ключ (нет случайных данных).","Key generation failed.":"Не удалось создать ключ.","LAN Bypass":"Обход локальной сети",Language:"Язык","Last 7 days":"За 7 дней","Last connected %s":"В сети %s","Link copied":"Ссылка скопирована","Linux PC":"Компьютер с Linux",MB:"МБ","MTU must be 1280-1500.":"MTU: от 1280 до 1500.","Mbit/s":"Мбит/с","Method not allowed.":"Метод не поддерживается.",Mobile:"Мобильный","Monthly data must be a positive number of GB.":"Месячный лимит трафика должен быть положительным числом ГБ.",Name:"Имя","No connection yet":"Подключения пока нет","No data limit. The count starts again on the 1st.":"Лимита трафика нет. Счёт начинается заново 1-го числа.","No end date":"Бессрочно","No free address left on %s.":"На сервере %s не осталось свободных адресов.","No free addresses left in the server subnet.":"В подсети сервера не осталось свободных адресов.","No limit":"Без лимита","No server":"Нет сервера","No server yet":"Сервера пока нет","Not found.":"Не найден.","Not included":"Нет доступа","Not on the %s right now?":"Открыли на другом %s?","Not set up yet":"Ещё не настроено","Nothing gets through until it resets.":"Ничего не проходит, пока лимит не обнулится.","Nothing opened? %s and add it in the app.":"Ничего не открылось? %s и добавьте его в приложении.","Now, %s":"Сейчас %s",OR:"ИЛИ","Official release on GitHub":"Официальная версия на GitHub","On %s.":"Дата окончания - %s.","On GitHub":"На GitHub","On two devices at once":"На двух устройствах сразу","Only letters, digits, - _ .":"Только буквы, цифры, - _ .","Only the admin can change how a device connects.":"Менять настройки подключения устройства может только администратор.","Only the admin can turn devices off.":"Отключать устройства может только администратор.","stepOpen %s":"Откройте %s","Open %s.":"Доступ открыт %s.","Open a terminal in the folder with the file":"Откройте терминал в папке с файлом","Open in AmneziaVPN":"Открыть в AmneziaVPN","Open on another device":"Открыть на другом устройстве","Open on the device":"Открыть на устройстве","Open securely":"Открыть по HTTPS","Open the link securely":"Откройте защищённую ссылку","Open this link on the %s to set it up there.":"Откройте эту ссылку на %s, чтобы настроить его там.","Open this link over HTTPS to get the connection settings.":"Чтобы получить настройки подключения, откройте эту ссылку по HTTPS.","Open this page in Safari or Chrome: the store opens from here, but the app handoff does not.":"Откройте эту страницу в Safari или Chrome: магазин отсюда откроется, а передача в приложение - нет.","Open your link on the %s":"Откройте свою ссылку на %s","OpenWrt packages":"Пакеты OpenWrt","OpenWrt packages + kmod":"Пакеты OpenWrt + kmod",Other:"Другое","Other devices at home reach yours as %s":"Другие устройства дома обращаются к вашим по адресу %s","Out of data":"Трафик закончился","Outside allowed hours":"Вне часов доступа","Outside your hours":"Вне часов доступа",PC:"Компьютер",Paused:"На паузе","Person %s: circle %s does not exist.":"Человек %s: круга %s нет.","Person %s: has the same personal link as %s.":"Человек %s: личная ссылка совпадает со ссылкой человека %s.","Person %s: home service %s does not exist.":"Человек %s: домашнего сервиса %s нет.","Person %s: server %s does not exist.":"Человек %s: сервера %s нет.",Phone:"Телефон","Pick AmneziaVPN in the share sheet. Not there? %s and add it in the app.":"Выберите AmneziaVPN в меню «Поделиться». Его там нет? %s и добавьте его в приложении.","Pick the file and connect":"Выберите файл и подключитесь","Point its camera at the code: the link opens there.":"Наведите камеру устройства на код - ссылка откроется на нём.","Point its camera at the code: your page opens there with this device ready to add.":"Наведите камеру устройства на код - там откроется ваша страница, и его можно будет сразу добавить.","Port must be 1-65535.":"Порт: от 1 до 65535.","QR code":"QR-код","AmneziaVPN appQR code":"QR-код",Reconnect:"Переподключить","Reconnect %s":"Переподключить %s","Reconnect %s?":"Переподключить «%s»?","RejectAfterTime must be at most 180 seconds.":"RejectAfterTime: не больше 180 секунд.",Remove:"Удалить","Remove %s?":"Удалить «%s»?",Rename:"Переименовать","Rename %s":"Переименовать «%s»","Request failed (%s)":"Не удалось выполнить запрос (%s)","Request too large.":"Слишком большой запрос.","Resets on the 1st.":"Обнуляется 1-го числа.","Return to save, Esc to cancel":"Return сохраняет, Esc отменяет",Router:"Роутер",Run:"Выполните","S2 must not be S1 + 56: the handshake initiation and response would have the same size.":"S2 не может равняться S1 + 56: начальный и ответный пакеты рукопожатия будут одного размера.","WireGuard appScan from QR code":"Сканировать QR-код","Send it to the %s":"Отправить на %s","Send it to the %s in a message or a note, then in AmneziaVPN: %s.":"Отправьте его на %s в сообщении или заметке, затем в AmneziaVPN: %s.","Send it to the %s, then import %s in %s.":"Отправьте его на %s, затем импортируйте %s в %s.","Send to AmneziaVPN":"Отправить в AmneziaVPN","Server is disabled":"Сервер выключен","Server is turned off":"Сервер выключен","Set up %s":"Настроить %s","Set up a server first.":"Сначала настройте сервер.","Settings changed":"Настройки изменились","Settings changed, update needed":"Настройки изменились, нужно обновить","Share as a file":"Поделиться файлом","Share file":"Поделиться файлом","Share the file":"Поделиться файлом","Share the link":"Поделиться ссылкой","Show key":"Показать ключ","Straight into %s":"Сразу в %s","Subnet must look like 10.77.0.0/24.":"Подсеть указывается так: 10.77.0.0/24.","Subnet overlaps %s.":"Подсеть пересекается с %s.",TB:"ТБ",Tablet:"Планшет","Tap “%s” and connect":"Нажмите «%s» и подключитесь","That name is taken.":"Это имя уже занято.","The APK is for phones without Google Play, or where the store hides the app.":"APK - для телефонов без Google Play или если магазин скрывает приложение.","The admin has turned this device off.":"Администратор отключил это устройство.","The app goes on the %s.":"Приложение ставится на %s.","The browser may warn that the certificate is not trusted: it is this router’s own. Choose to continue (“Advanced” → “Proceed”).":"Браузер может предупредить, что сертификату нельзя доверять: это собственный сертификат роутера. Продолжите переход («Дополнительные» → «Перейти на сайт»).","The configuration is too long for a code. Scan this one to open your link on the %s instead.":"Конфигурация слишком длинная для QR-кода. Отсканируйте этот код, чтобы открыть свою ссылку на %s.","The connection":"Подключение","The connection as one key":"Подключение одним ключом","The header protection key is not a key.":"Ключ защиты заголовков некорректен.","The id may use lowercase letters, digits and underscores.":"В идентификаторе можно использовать строчные латинские буквы, цифры и подчёркивания.","The key is too long for a code. Scan this one to open your link on the %s instead.":"Ключ слишком длинный для QR-кода. Отсканируйте этот код, чтобы открыть свою ссылку на %s.","The packages and the file for OpenWrt":"Пакеты и файл для OpenWrt","The page could not load":"Не удалось загрузить страницу","The person has no server.":"У человека нет сервера.","The router can’t use what it sends: reconnect it.":"Роутер не принимает то, что отправляет устройство: переподключите его.","The router drops its traffic: the address does not match.":"Роутер отбрасывает его трафик: адрес не совпадает.","Then come back here and tap":"Затем вернитесь сюда и нажмите","Then import it in the app":"Затем импортируйте его в приложении","This connection is on two devices and they push each other out. Add the other one as its own device.":"Это подключение стоит на двух устройствах, и они вытесняют друг друга. Добавьте второе как отдельное устройство.","This device":"Это устройство","This key is already in use.":"Этот ключ уже используется.","This link no longer works":"Эта ссылка больше не работает","This page is open without encryption. To add or set up a device, open the same link over HTTPS:":"Эта страница открыта без шифрования. Чтобы добавить или настроить устройство, откройте ту же ссылку по HTTPS:","Through the router":"Через роутер",Today:"Сегодня","Too many changes in a short time. Try again in a few minutes.":"Слишком много изменений за короткое время. Попробуйте ещё раз через несколько минут.","Two steps, about a minute":"Два шага, около минуты","Two steps, about a minute: get the app, then add the connection.":"Два шага, около минуты: установите приложение, затем добавьте подключение.","Unable to complete the handshake":"Не удаётся завершить рукопожатие","Unknown DNS choice.":"Неизвестный вариант DNS.","Unknown action.":"Неизвестное действие.","Unknown circle.":"Неизвестный круг.","Unknown device.":"Неизвестное устройство.","Unknown end action.":"Неизвестное действие по окончании доступа.","Unknown person.":"Неизвестный человек.","Unknown server.":"Неизвестный сервер.","Unknown service %s.":"Неизвестный сервис %s.","Up to %s characters.":"Не больше %s символов.",Uploaded:"Отправлено","Waiting for the connection":"Ждём подключения","Warning must be 0-60 days.":"Предупреждать можно за 0–60 дней.","What is it?":"Что это за устройство?","Windows PC":"Компьютер с Windows",Yesterday:"Вчера","You already have a device with this name.":"У вас уже есть устройство с таким именем.","You haven’t been added to one.":"Вас ещё не добавили ни на один сервер.","Your access":"Ваш доступ","Your access has ended.":"Ваш доступ закончился.","Your access is paused.":"Ваш доступ на паузе.","Your devices":"Ваши устройства","Your devices can’t connect until it’s enabled again.":"Ваши устройства не подключатся, пока его снова не включат.","Your devices can’t connect until it’s extended.":"Ваши устройства не подключатся, пока доступ не продлят.","Your devices can’t connect until it’s resumed.":"Ваши устройства не подключатся, пока доступ не возобновят.","Your local network stays reachable while connected.":"Ваша локальная сеть остаётся доступной при подключении.","Your network may be blocking the connection.":"Возможно, ваша сеть блокирует подключение.","bit/s":"бит/с",computer:"компьютер","on thecomputer":"компьютере",device:"устройство","on thedevice":"устройстве",ended:"закончился","ends today":"закончится сегодня","ends tomorrow":"закончится завтра","just now":"только что","kbit/s":"кбит/с",name:"имя",never:"никогда","no limit":"без лимита",phone:"телефон","on thephone":"телефоне",router:"роутер","on therouter":"роутере",tablet:"планшет","on thetablet":"планшете","this device":"это устройство"},p:{"%s already has %d device. Remove one first to lower the limit to %d.":["%s: уже %d устройство. Чтобы снизить лимит до %d, сначала удалите одно из них.","%s: уже %d устройства. Чтобы снизить лимит до %d, сначала удалите одно из них.","%s: уже %d устройств. Чтобы снизить лимит до %d, сначала удалите одно из них."],"%s day":["%s день","%s дня","%s дней"],"%s of %s slot free":["Свободно %s из %s места","Свободно %s из %s мест","Свободно %s из %s мест"],"You have reached your limit of %s device":["Достигнут лимит - %s устройство","Достигнут лимит - %s устройства","Достигнут лимит - %s устройств"],"You have reached your limit of %s device. Remove one to add another.":["Достигнут лимит - %s устройство. Удалите одно, чтобы добавить новое.","Достигнут лимит - %s устройства. Удалите одно, чтобы добавить новое.","Достигнут лимит - %s устройств. Удалите одно, чтобы добавить новое."],"day left":["день остался","дня осталось","дней осталось"],"ends in %s day":["закончится через %s день","закончится через %s дня","закончится через %s дней"]}};var mn=[{code:"en",name:"English"},{code:"ru",name:"Русский"}],ia={ru:[Jo]},Zo={en:e=>e!==1?1:0,ru:e=>e%10===1&&e%100!==11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},tr="dl.lang";function aa(e,t){var o,r;let n=s=>s&&mn.some(i=>i.code===s)?s:null;return(r=(o=n(e))!=null?o:t.map(s=>n(s.toLowerCase().split(/[-_]/)[0])).find(Boolean))!=null?r:"en"}var ft="en",co=[],nr=[],or=(e,t)=>t?`${t}${e}`:e;function rr(e,t){let n=or(e,t);for(let o of co)if(n in o.s)return o.s[n];return e}function ca(e,t,n,o){var i,c,f;let r=or(t,o),s=(i=co.find(m=>r in m.p))==null?void 0:i.p[r];return(f=s==null?void 0:s[((c=Zo[ft])!=null?c:Zo.en)(e)])!=null?f:e===1?t:n}var mt=()=>ft,sr=e=>rr(e);function lo(e,t=!0){var n;if(ft=mn.some(o=>o.code===e)?e:"en",co=(n=ia[ft])!=null?n:[],document.documentElement.lang=ft,t)try{localStorage.setItem(tr,ft)}catch{}nr.forEach(o=>o())}function ir(e){nr.push(e)}function la(){try{return localStorage.getItem(tr)}catch{return null}}Object.assign(globalThis,{_:rr,N_:ca});var er;lo(aa(la(),(er=navigator.languages)!=null&&er.length?navigator.languages:[navigator.language]),!1);var ar={phone:'',computer:'',tablet:'',router:'',server:'',other:'',ethernet:'',bridge:'',wifi:'',tunnel:'',plus:'',chart:'',reset:'',package:'',code:'',plug:'',sunrise:'',refresh:'',archive:'',qr:'',copy:'',download:'',link:'',amnezia:'',amneziawg:'',wireguard:'',appstore:'',googleplay:'',github:'',openwrt:'',apple:'',windows:'',linux:'',eye:'',share:'',arrow:'',trash:'',edit:'',pause:'',play:'',key:'',out:'',admin:'',shield:'',shieldplus:'',lock:'',zap:'',check:'',alert:'',x:'',globe:'',home:'',open:'',file:'',network:'',moon:'',chevron:'',clock:'',calendar:'',minus:'',more:'',pin:'',activity:''};function hn(e,t="dl-icon"){var o;let n=(o=ar[e])!=null?o:ar.phone;return``}function cr(e,t){let n=o=>{o==null||o===!1||(Array.isArray(o)?o.forEach(n):e.appendChild(typeof o=="string"?document.createTextNode(o):o))};t.forEach(n)}function a(e,t={},...n){let o=document.createElement(e);for(let[r,s]of Object.entries(t))s==null||s===!1||(r.startsWith("on")&&typeof s=="function"?o.addEventListener(r.slice(2),s):r==="class"?o.className=String(s):s===!0?o.setAttribute(r,""):o.setAttribute(r,String(s)));return cr(o,n),o}function Fe(e,...t){e.replaceChildren(),cr(e,t)}function Te(e){let t=document.createElement("template");return t.innerHTML=e.trim(),t.content.firstElementChild}var V=(e,t="i")=>Te(hn(e,t));var uo=typeof matchMedia=="function"?matchMedia("(prefers-reduced-motion: reduce)"):null,ae=()=>!!(uo!=null&&uo.matches),da=3e4;function ua(e,t){if(!t.some(o=>"filter"in o))return t;let n=e.getBoundingClientRect();return n.width*n.heightr)}function rt(e,t,n=1){let o=Math.sqrt(e/n),r=t/(2*Math.sqrt(e*n)),s=h=>{if(r<.999){let O=o*Math.sqrt(1-r*r);return 1-Math.exp(-r*o*h)*(Math.cos(O*h)+r*o/O*Math.sin(O*h))}if(r<=1.001)return 1-Math.exp(-o*h)*(1+o*h);let x=Math.sqrt(r*r-1),w=-o*(r-x),T=-o*(r+x);return 1-(T*Math.exp(w*h)-w*Math.exp(T*h))/(T-w)},i=0;for(let h=0;h<3;h+=.004)Math.abs(1-s(h))>.0015&&(i=h);i+=.004;let c=1-s(i),f=h=>s(h)+c*(h/i)**3,m=[];for(let h=0;h<=64;h++)m.push(+f(i*h/64).toFixed(4));m[64]=1;let M=Math.round(i*1e3);return{duration:M,easing:`linear(${m.join(", ")})`,at:h=>h>=M?1:f(h/1e3)}}var Oe=rt(300,20),K=rt(300,35),Se=rt(520,24),ur=rt(520,46),_e=rt(380,28),lr=rt(900,60),dr=rt(640,40),Q="cubic-bezier(0.23, 1, 0.32, 1)",J="cubic-bezier(0.55, 0, 1, 0.45)",po="cubic-bezier(0.32, 0.72, 0, 1)";function pr(e){e.style.setProperty("--spring-bouncy",Oe.easing),e.style.setProperty("--spring-bouncy-dur",`${Oe.duration}ms`),e.style.setProperty("--spring-smooth",K.easing),e.style.setProperty("--spring-smooth-dur",`${K.duration}ms`),e.style.setProperty("--spring-soft",_e.easing),e.style.setProperty("--spring-soft-dur",`${_e.duration}ms`),e.style.setProperty("--spring-quick",lr.easing),e.style.setProperty("--spring-quick-dur",`${lr.duration}ms`),e.style.setProperty("--spring-glide",dr.easing),e.style.setProperty("--spring-glide-dur",`${dr.duration}ms`)}function D(e,t,n){var o;return ae()?t.some(r=>"opacity"in r)?e.animate(t.map(r=>"opacity"in r?{opacity:r.opacity}:{}),{duration:Math.min(Number((o=n.duration)!=null?o:200),160),easing:"ease-out",fill:n.fill}):e.animate(t,{...n,duration:0,delay:0}):e.animate(ua(e,t),n)}function fr(e,t){return e<=0||t<=0?0:(1-1/(e*.55/t+1))*t}function mr(e,t){return e<=0||t<=0?0:e*t/(.55*Math.max(1,t-e))}function hr(e,t,n){return e<=0||t<-.1?!1:t>.4||e>n/3}function pa(){return(typeof document=="undefined"?"":document.documentElement.lang)||"en"}function Pe(){let e=pa();return e==="en"?"en-GB":e}function z(e,...t){let n=0;return e.replace(/%([%sd])/g,(o,r)=>{var s;return r==="%"?"%":String((s=t[n++])!=null?s:"")})}function xe(e,t){return e.toLocaleString(Pe(),t===void 0?void 0:{minimumFractionDigits:t,maximumFractionDigits:t})}function Xe(e,t,n){return z(N_(e,t,n),xe(e))}function ht(e,...t){let n=0;return e.split(/(%[%sd])/).filter(Boolean).map(o=>o==="%%"?"%":o==="%s"||o==="%d"?t[n++]:o)}function fa(e,t,n){let o=0;for(;e>=n&&o=100||o===0?xe(Math.round(e)):xe(e,1)} ${t[o]}`}function We(e){return fa(!e||e<0?0:e,[_("B"),_("KB"),_("MB"),_("GB"),_("TB")],1024)}function gr(e,t=Date.now()/1e3){if(!e)return _("never");let n=Math.max(0,Math.round(t-e));return n<60?_("just now"):n<3600?z(_("%s min ago"),Math.floor(n/60)):n<86400?z(_("%s h ago"),Math.floor(n/3600)):n<86400*30?z(_("%s d ago"),Math.floor(n/86400)):new Date(e*1e3).toLocaleDateString(Pe(),{day:"numeric",month:"short",year:"numeric"})}function gn(e){return`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")}`}function Re(e){let[t,n,o]=e.split("-").map(Number);return new Date(t,(n||1)-1,o||1,12)}function ma(e){return(typeof e=="string"?/^\d{4}-\d{2}-\d{2}$/.test(e)?Re(e):new Date(e):e).toLocaleDateString(Pe(),{day:"numeric",month:"short",year:"numeric"})}function yn(e){return e?ma(e):""}function ha(e,t){let n=o=>{let[r,s,i]=o.split("-").map(Number);return Date.UTC(r,s-1,i)};return Math.round((n(e)-n(t))/864e5)}function gt(e,t){let n=Re(e);return n.setDate(n.getDate()+t),gn(n)}function vn(e,t=Date.now()){if(!e)return null;let n=typeof t=="number"?gn(new Date(t)):t,o=ha(e,n);return o>=0?o+1:o}function Ft(e,t){return t!=null&&t>0&&e.expire_warn>0&&t<=e.expire_warn}function yr(e){return e<=1?_("ends today"):e===2?_("ends tomorrow"):Xe(e,"ends in %s day","ends in %s days")}function vr(e){return{lan:_("Home network"),internet:_("Internet"),both:_("Home network + Internet")}[e]}var bn=20,ga=[[128,191],[215,215],[247,247],[8192,11263],[12288,12351],[55296,63743],[65024,65039],[65072,65103],[65279,65279],[65520,65535],[126976,130047],[917504,917631]],ya=/^[A-Za-z0-9 ._-]$/,va=/^[\p{L}\p{M}\p{N}]$/u;function xn(e){var n;let t=(n=e.codePointAt(0))!=null?n:0;return t<128?ya.test(e):!ga.some(([o,r])=>t>=o&&t<=r)&&va.test(e)}function fo(e){let t=[...e];return t.length<=bn&&t.every(xn)}function yt(e,t=""){return[...[...e].map(r=>xn(r)?r:" ").join("").replace(/\s+/g," ").trim()||_("Device")].slice(0,Math.max(1,bn-[...t].length)).join("").trimEnd()+t}function mo(e){return e==="other"?_("Device"):ho(e)}function ho(e){return{computer:_("PC"),phone:_("Phone"),tablet:_("Tablet"),router:_("Router"),other:_("Other")}[e]}function wn(e){let t=n=>n.disabled?3:n.online?0:n.handshake?1:2;return e.map((n,o)=>[n,o]).sort((n,o)=>t(n[0])-t(o[0])||n[1]-o[1]).map(([n])=>n)}function br(e){return e.map(t=>t.endsWith(".0/24")?`${t.slice(0,-5)}.x`:t).join(", ")}var we={vpn:"AmneziaVPN",awg:"AmneziaWG",wg:"WireGuard"};function wr(e,t=0){return/iPhone|iPad|iPod/.test(e)||/Macintosh/.test(e)&&t>1?"ios":/Android/.test(e)?"android":/Windows/.test(e)?"windows":/Mac OS X|Macintosh/.test(e)?"mac":/CrOS/.test(e)?"unknown":/Linux|X11/.test(e)?"linux":"unknown"}var Mr=e=>/Telegram|FBAN|FBAV|Instagram|VKClient|Line\//i.test(e);function Er(e,t,n=!1){return e==="router"||t==="unknown"?!1:e==="phone"||e==="tablet"?t==="ios"||t==="android":e==="computer"?t==="windows"||t==="mac"||t==="linux":n||t==="windows"||t==="mac"||t==="linux"}function kr(e){let t=[{id:"vpn",name:we.vpn},{id:"awg",name:we.awg}];return e==="off"&&t.push({id:"wg",name:we.wg}),t}var Mn="https://github.com/amnezia-vpn/amnezia-client/releases/latest",xr=e=>({href:e,top:_("APK file on"),main:"GitHub",mark:"github",why:_("The APK is for phones without Google Play, or where the store hides the app.")});function Lr(e,t){var i;let n=_("Download on the"),o=_("Get it on"),r=_("Official release on GitHub");return(i={vpn:{ios:{href:"https://apps.apple.com/app/amneziavpn/id1600529900",top:n,main:"App Store",mark:"appstore"},android:{href:"https://play.google.com/store/apps/details?id=org.amnezia.vpn",top:o,main:"Google Play",mark:"googleplay",alt:xr(Mn)},windows:{href:Mn,top:r,main:_("Download for Windows"),mark:"windows"},mac:{href:Mn,top:r,main:_("Download for Mac"),mark:"apple"},linux:{href:Mn,top:r,main:_("Download for Linux"),mark:"linux"}},awg:{ios:{href:"https://apps.apple.com/us/app/amneziawg/id6478942365",top:n,main:"App Store",mark:"appstore"},android:{href:"https://play.google.com/store/apps/details?id=org.amnezia.awg",top:o,main:"Google Play",mark:"googleplay",alt:xr("https://github.com/amnezia-vpn/amneziawg-android/releases")},windows:{href:"https://github.com/amnezia-vpn/amneziawg-windows-client/releases",top:r,main:_("Download for Windows"),mark:"windows"},mac:{href:"https://apps.apple.com/us/app/amneziawg/id6478942365",top:n,main:"Mac App Store",mark:"appstore"},linux:{href:"https://github.com/amnezia-vpn/amneziawg-tools",top:_("On GitHub"),main:"amneziawg-tools",mark:"linux"}},wg:{ios:{href:"https://apps.apple.com/app/wireguard/id1441195209",top:n,main:"App Store",mark:"appstore"},android:{href:"https://play.google.com/store/apps/details?id=com.wireguard.android",top:o,main:"Google Play",mark:"googleplay"},windows:{href:"https://www.wireguard.com/install/",top:_("Download from"),main:"wireguard.com",mark:"windows"},mac:{href:"https://apps.apple.com/app/wireguard/id1451685025",top:n,main:"Mac App Store",mark:"appstore"},linux:{href:"https://www.wireguard.com/install/",top:_("Install from"),main:"wireguard.com",mark:"linux"}}}[e][t])!=null?i:null}var Cr=e=>e==="wg"?{href:"https://openwrt.org/docs/guide-user/services/vpn/wireguard/start",top:_("OpenWrt packages"),main:"wireguard-tools",mark:"openwrt"}:{href:"https://openwrt.org/packages/start",top:_("OpenWrt packages + kmod"),main:"amneziawg-tools",mark:"openwrt"},go=e=>e==="android",qt=e=>`${e.replace(/\.conf$/i,"")}.vpn`,Je=(...e)=>e.join(" → ");function Wt(e){return{ios:{file:Je("+",_("Create from file or archive","WireGuard app")),qr:Je("+",_("Create from QR code","WireGuard app"))},android:{file:Je("+",_("Import from file or archive","WireGuard app")),qr:Je("+",_("Scan from QR code","WireGuard app"))},mac:{file:Je("+",_("Import Tunnel(s) from File…","WireGuard app"))},windows:{file:Je(_("Add Tunnel","WireGuard app"),_("Import tunnel(s) from file…","WireGuard app"))}}[e]}function Kt(e,t="unknown"){var o;if(e==="vpn")return Je("+",_("QR code","AmneziaVPN app"));let n=(o=Wt(t))==null?void 0:o.qr;return n!=null?n:z(_("%s (Android: %s)"),Wt("ios").qr,Wt("android").qr.replace(/^.* → /,""))}function En(e,t="unknown"){var n;return e==="vpn"?Je("+",_("Insert","AmneziaVPN app")):((n=Wt(t))!=null?n:Wt("android")).file}var Tr=()=>z(_("Tap “%s” and connect"),_("Continue","AmneziaVPN app"));function _r(e,t,n,o){if(t==="linux")return[[_("Open a terminal in the folder with the file"),""],[`${_("Run")} `,`sudo ${e==="wg"?"wg-quick":"awg-quick"} up ./${n}`]];let r=En(e,t);return[[z(_("Open %s","step"),we[e]),""],[r.replace(/ → [^→]*$/," → "),r.replace(/^.* → /,"")],[o?_("Confirm the import and connect"):_("Pick the file and connect"),""]]}function Sr(e){return{ios:"iPhone / iPad",android:"Android",windows:"Windows",mac:"Mac",linux:"Linux",unknown:_("this device")}[e]}var Ar=(e,t)=>`${e}#setup=${t}`;function $r(e){var t,n;return(n=(t=/^#setup=(d_[0-9a-f]{8})$/.exec(e))==null?void 0:t[1])!=null?n:null}var Hr=e=>`${e}#add`,Pr=e=>e==="#add",yo=(e,t=!1)=>(t?{phone:_("phone","on the"),tablet:_("tablet","on the"),computer:_("computer","on the"),router:_("router","on the"),other:_("device","on the")}:{phone:_("phone"),tablet:_("tablet"),computer:_("computer"),router:_("router"),other:_("device")})[e];var re=null,he=()=>re;function Ee(e){re=e}var ba=document.getElementById("app"),Dr,vt=(Dr=ba.dataset.base)!=null?Dr:"",Or=/^\/[a-z]{6}-[a-z]{6}-[a-z]{6}$/.test(vt)?vt.slice(1):"",bt=()=>location.origin+location.pathname,qe=()=>{var e;return(e=re==null?void 0:re.today)!=null?e:gn(new Date)},xt=()=>{var e;return(e=re==null?void 0:re.now)!=null?e:Date.now()/1e3},kn=()=>wr(navigator.userAgent,navigator.maxTouchPoints),xa=()=>(re==null?void 0:re.server.awg_disguise)===!1,Rr=()=>{var e;return(e=re==null?void 0:re.server.preset)!=null?e:xa()?"off":"max"},Nr=()=>(re==null?void 0:re.https_url)||null,Ke=()=>(re==null?void 0:re.server.name)||"Dawnline",Br=()=>{};function Ir(e){Br=e}var Ae=(e={})=>Br(e);var Ze=class extends Error{constructor(n,o,r){super(o);this.status=n;this.httpsUrl=r}};async function Me(e,t){let n=await fetch(`${vt}/api/${e}`,{method:t===void 0?"GET":"POST",credentials:"omit",headers:t===void 0?{"Accept-Language":mt()}:{"Content-Type":"application/json","Accept-Language":mt()},body:t===void 0?void 0:JSON.stringify(t),cache:"no-store"}),o=null;try{o=await n.json()}catch{}if(!n.ok)throw new Ze(n.status,o!=null&&o.error?sr(o.error):z(_("Request failed (%s)"),n.status),(o==null?void 0:o.https_url)||void 0);return o}var Ln=e=>e instanceof Ze&&(e.status===404||e.status===401);var zr=ra(qr(),1),wa=e=>``,Kr="#0a0a0a",Ma="#f2f2f2",Ea={night:[Kr,Ma],day:["#ffffff",Kr]},Cn=e=>e.length>300,zt=null;function Vr(e){if((zt==null?void 0:zt.text)===e)return zt.qr;let t=(0,zr.default)(0,Cn(e)?"L":"H");return t.addData(e,"Byte"),t.make(),zt={text:e,qr:t},t}function ka(e){try{return Vr(e),!0}catch{return!1}}var La=1600,Ur=e=>e.length<=La&&ka(e),wt=e=>+e.toFixed(2);function vo(e,t,n,o,r){return`M${wt(e+r)} ${wt(t)}h${wt(n-2*r)}a${r} ${r} 0 0 1 ${r} ${r}v${wt(o-2*r)}a${r} ${r} 0 0 1 -${r} ${r}h-${wt(n-2*r)}a${r} ${r} 0 0 1 -${r} -${r}v-${wt(o-2*r)}a${r} ${r} 0 0 1 ${r} -${r}z`}function Yr(e,t=3,n=!0,o="plain"){let r=Cn(e),s=o!=="plain",[i,c]=s?Ea[o]:["#fff","#000"],f=Vr(e),m=f.getModuleCount(),M=m+t*2,h=n&&!r?Math.round(m*.22):0;h&&(m-h)%2&&h++;let x=(m-h)/2,w=x+h,T=(d,u)=>h>0&&d>=x&&d=x&&us&&(u<7&&d<7||u<7&&d>=m-7||u>=m-7&&d<7),B="";if(s){let d=r?.48:.42;for(let u=0;u${wa(s?i:"#fff")}`}let v=``;return s?`${v}${g}`:`${v}${g}`}var jr={opacity:1,filter:"blur(0px)",transform:"none"},Ca={opacity:0,filter:"blur(5px)",transform:"scale(.86)"},Qr={opacity:0,filter:"blur(5px)",transform:"scale(.6)"},Xr={duration:180,easing:J,fill:"forwards"},Vt={duration:340,delay:70,easing:Q,fill:"backwards"},Jr=Vt.delay+Vt.duration,Tn=new WeakMap;function _n(e){let t=getComputedStyle(e);return{opacity:t.opacity,filter:t.filter==="none"?"blur(0px)":t.filter,transform:t.transform}}function Zr(e){var t;for(let n of[...e.childNodes])n.nodeType===Node.TEXT_NODE&&((t=n.textContent)!=null&&t.trim())&&n.replaceWith(a("span",{},n.textContent));return[...e.children].filter(n=>!n.classList.contains("orb"))}function es(e,t){var o;let n=(o=Tn.get(e))!=null?o:[];Tn.set(e,t),n.forEach(r=>r.cancel())}function ts(e){let t=Zr(e),n=t.map(_n),o=e.querySelector(":scope > .orb"),r=o!=null?o:a("span",{class:"orb","aria-hidden":"true"},a("i"),a("i"));o||e.append(r),e.classList.add("busy"),e.setAttribute("aria-busy","true"),es(e,[...t.map((s,i)=>D(s,[n[i],Ca],Xr)),D(r,[o?_n(o):Qr,jr],o?{...Vt,delay:0}:Vt)])}function ns(e){let t=e.querySelector(":scope > .orb"),n=Zr(e),o=[...t?[D(t,[_n(t),Qr],Xr)]:[],...n.map(r=>D(r,[_n(r),jr],Vt))];es(e,o),e.removeAttribute("aria-busy"),Promise.all(o.map(r=>r.finished)).then(()=>{Tn.get(e)===o&&(Tn.delete(e),o.forEach(r=>r.cancel()),t==null||t.remove(),e.classList.remove("busy"))},()=>{})}var os=e=>[...e].map(t=>a("i",{},t)),st=new WeakMap,ke=e=>{var t,n,o;return(o=(n=(t=st.get(e))==null?void 0:t.text)!=null?n:e.textContent)!=null?o:""},Ut={opacity:1,filter:"blur(0px)"},Ta=e=>e.opacity>.99&&(e.filter==="none"||e.filter==="blur(0px)");function it(e){let t=getComputedStyle(e),n=e.querySelector(":scope > .mt-new"),o=n&&getComputedStyle(n);return{opacity:+t.opacity*(o?+o.opacity:1),filter:t.filter==="none"&&o?o.filter:t.filter}}function An(e){let t=document.createRange();return t.selectNodeContents(e),t.getBoundingClientRect()}function _a(e){let t=document.createRange();return t.selectNodeContents(e),t.getBoundingClientRect()}function rs(e){var s;let t=e.firstChild;if(!t||t.nodeType!==Node.TEXT_NODE)return[];let n=document.createRange(),o=[],r=0;for(let i of(s=t.textContent)!=null?s:"")n.setStart(t,r),n.setEnd(t,r+i.length),o.push(n.getBoundingClientRect().left),r+=i.length;return o.map(i=>i-o[0])}function ss(e,t){let n=[...e.children];n.length&&n.forEach((o,r)=>{if(!r||t[r]===void 0)return;let s=n[0].getBoundingClientRect().left+t[r]-o.getBoundingClientRect().left;Math.abs(s)>.01&&(o.style.marginLeft=`${s}px`)})}function Sa(e,t){let n=0;for(;nnew Array(s.length+1).fill(0));for(let f=r.length-1;f>=0;f--)for(let m=s.length-1;m>=0;m--)i[f][m]=r[f]===s[m]?i[f+1][m+1]+1:Math.max(i[f+1][m],i[f][m+1]);let c=[];for(let f=0;f=i[f][m+1]?f++:m++;for(let f=o;f>0;f--)c.push([e.length-f,t.length-f]);return c}function Sn(e){let t=st.get(e);t&&(clearTimeout(t.timer),st.delete(e),e.getAnimations().forEach(n=>n.cancel()),e.classList.remove("mt","mt-ib","mt-run"),e.textContent=t.text)}function se(e,t){Sn(e),e.textContent=t}function Aa(e){let t=e.querySelector(":scope > .mt-new");if(!t)return null;let n=[...e.querySelectorAll(":scope > .mt-old")],o=An(t);return t.remove(),n.forEach(r=>r.remove()),{words:t,at:o,going:n}}function Mo(e,t=0,n=Ut){return D(e,[{opacity:n.opacity,filter:n.filter,transform:"none"},{opacity:0,filter:"blur(4px)",transform:"translateY(-0.45em)"}],{duration:220,delay:t,easing:J,fill:"forwards"})}function Eo(e,t=0){return D(e,[{opacity:0,filter:"blur(4px)",transform:"translateY(0.45em)"},{opacity:1,filter:"blur(0px)",transform:"none"}],{duration:380,delay:120+t,easing:Q,fill:"backwards"})}function ee(e,t,n=ke(e),o={}){var de,Ge,S,H,L,P,$,I;let{whole:r=!1,at:s}=o,i=st.get(e);if(i&&n===i.text&&t===i.text)return;let c=((de=o.glide)!=null?de:!0)&&!s,f=i?e.getBoundingClientRect():null,m=i&&n===i.text&&!ae()&&e.getClientRects().length?Aa(e):null;if(Sn(e),n===t||ae()||!e.getClientRects().length){e.textContent=t;return}let M=getComputedStyle(e),h=r&&M.display==="inline";M.display==="inline"&&!r&&e.classList.add("mt-ib"),M.position==="static"&&e.classList.add("mt"),e.classList.add("mt-run");let x=m?f:null,w=(S=(Ge=m==null?void 0:m.at)!=null?Ge:s)!=null?S:null,T=[];w||(e.textContent=n,x=e.getBoundingClientRect(),w=An(e),T=rs(e)),e.textContent=t;let O=e.getBoundingClientRect(),B=rs(e),E=(L=(H=f==null?void 0:f.width)!=null?H:x==null?void 0:x.width)!=null?L:O.width,g=c&&!h&&!!x&&Math.abs(O.width-E)>.5,v=!g||!x||Math.abs(O.left-x.left)<.5?"start":Math.abs(O.right-x.right)<.5?"end":"middle",d=a("span",{class:r?"mt-new w":"mt-new"},r?t:os(t)),u=(P=m==null?void 0:m.words)!=null?P:a("span",{class:r?"mt-old w":"mt-old"},r?n:os(n));if(u.classList.replace("mt-new","mt-old"),u.setAttribute("aria-hidden","true"),u.classList.contains("w")&&(u.style.width=`${w.width+1}px`),e.replaceChildren(d,u),m&&e.append(...m.going),o.color){u.style.color=o.color;let G=getComputedStyle(e).color;G!==o.color&&D(d,[{color:o.color},{color:G}],{duration:280,easing:Q})}g&&D(e,[{width:`${E}px`},{width:`${O.width}px`}],{duration:K.duration,easing:K.easing,fill:"forwards"});let l=e.getBoundingClientRect(),b=(G,W)=>{u.style.top=`${W}px`,v==="end"?u.style.right=`${-G}px`:v==="middle"?(u.style.left="50%",u.style.translate=`calc(-50% + ${G}px) 0`):u.style.left=`${G}px`},y=v==="end"?w.right-l.right:v==="middle"?(w.left+w.right-l.left-l.right)/2:w.left-l.left;b(y,w.top-l.top);let p=!m&&(($=u.querySelector("i"))==null?void 0:$.firstChild),C=p?_a(p):An(u);b(y+w.left-C.left,w.top-l.top+w.top-C.top);let k=m?it(u):(I=o.shows)!=null?I:Ut,A=()=>{let G=u.getAnimations();D(u,[{opacity:k.opacity,filter:k.filter},{opacity:0,filter:"blur(4px)"}],{duration:180*k.opacity,easing:J,fill:"forwards"}),G.forEach(W=>W.cancel())};if(r){A(),D(d,[{opacity:0,filter:"blur(4px)"},{opacity:1,filter:"blur(0px)"}],{duration:280,delay:60,easing:Q,fill:"backwards"});let G=Math.max(340,g?K.duration:0)+40;st.set(e,{text:t,timer:window.setTimeout(()=>Sn(e),G)});return}ss(d,B),m||ss(u,T);let F=u.classList.contains("w")?[]:[...u.children],N=[...d.children],R=F.length?Sa([...n],[...t]):[],q=new Set(R.map(([G])=>G)),Y=new Set(R.map(([,G])=>G));R.forEach(([G,W])=>{let X=F[G].getBoundingClientRect(),oe=N[W].getBoundingClientRect(),U=m?it(F[G]):k;F[G].style.visibility="hidden";let be=Math.abs(X.left-oe.left)>.5||Math.abs(X.top-oe.top)>.5,ue=Ta(U)?null:U;(be||ue)&&D(N[W],[{transform:`translate(${X.left-oe.left}px, ${X.top-oe.top}px)`,...ue},{transform:"none",...ue&&Ut}],{duration:K.duration,easing:K.easing})});let Z=m?[]:F.filter((G,W)=>!q.has(W));m&&A();let te=N.filter((G,W)=>!Y.has(W)),le=Math.min(12,160/Math.max(1,Z.length)),me=Math.min(22,260/Math.max(1,te.length));Z.forEach((G,W)=>Mo(G,W*le,k)),te.forEach((G,W)=>Eo(G,W*me));let Ie=Math.max(220+Z.length*le,te.length?120+te.length*me+380:0,g||R.length?K.duration:0)+40;st.set(e,{text:t,timer:window.setTimeout(()=>Sn(e),Ie)})}function Yt(e){return new Map([...e.querySelectorAll("[data-t]")].map(t=>[t.dataset.t,{text:ke(t),color:getComputedStyle(t).color}]))}function jt(e,t,n=[]){e.querySelectorAll("[data-t]").forEach(o=>{let r=t.get(o.dataset.t),s=ke(o);!r||r.text===s||st.has(o)||n.some(i=>i.contains(o))||ee(o,s,r.text,{color:r.color})})}var as=e=>e instanceof HTMLElement||e instanceof SVGElement,bo=e=>as(e)?e:a("span",{},e),wo=e=>`${e.tagName}.${[...e.classList].filter(t=>t!=="mt"&&t!=="mt-ib").join(" ")}`,cs=e=>e.outerHTML.replace(/\bgl\d+/g,"gl"),et=new Map,$n=new WeakMap,ls=new WeakSet;function $a(e,t){for(let n=e.parentElement;n&&n!==t;n=n.parentElement)if(et.has(n))return!0;return!1}function Ha(e){var n;let t=(n=$n.get(e))!=null?n:0;!t&&getComputedStyle(e).position==="static"&&(e.classList.add("mt"),ls.add(e)),$n.set(e,t+1)}function is(e){var n;let t=((n=$n.get(e))!=null?n:1)-1;$n.set(e,t),!t&&ls.delete(e)&&e.classList.remove("mt")}function Mt(e,t,n,o,r=Ut){let s=et.get(e);if(s&&is(s),Ha(n),et.set(e,n),e.style.position="absolute",e.style.margin="0",e.style.left=`${t.left-o.left-n.clientLeft}px`,e.style.top=`${t.top-o.top-n.clientTop}px`,e.style.right="",e.style.translate="",e.style.width=`${t.width}px`,e.style.pointerEvents="none",e.setAttribute("aria-hidden","true"),n.appendChild(e),s)return;let i=e.getAnimations(),c=D(e,[{opacity:r.opacity,filter:r.filter},{opacity:0,filter:"blur(4px)"}],{duration:180*r.opacity,easing:J,fill:"forwards"});i.forEach(f=>f.cancel()),c.onfinish=c.oncancel=()=>{let f=et.get(e);f&&(et.delete(e),is(f),e.remove())}}function Pa(e){let t=new Map,n=(o,r)=>o.childNodes.forEach((s,i)=>{var M,h;let c=`${r}/${i}`;if(s.nodeType===Node.TEXT_NODE){if((M=s.textContent)!=null&&M.trim()){let x=document.createRange();x.selectNodeContents(s);let w=x.getBoundingClientRect();t.set(c,{kind:"#text",text:s.textContent,svg:"",at:w,words:w,node:s,shows:Ut})}return}if(!(s instanceof Element)||et.has(s)||s.classList.contains("mt-old"))return;let f=s instanceof SVGElement?cs(s):"",m=s instanceof HTMLElement&&!f?An((h=s.querySelector(":scope > .mt-new"))!=null?h:s):null;t.set(c,{kind:wo(s),text:s instanceof HTMLElement?ke(s):"",svg:f,at:s.getBoundingClientRect(),words:m,node:s,shows:it(s)}),f||n(s,c)});return n(e,""),t}function Da(e,t,n){let o={duration:K.duration,easing:K.easing};if(!(e instanceof HTMLElement)||getComputedStyle(e).display!=="inline")return D(e,[{transform:`translate(${t}px, ${n}px)`},{transform:"none"}],o);let r=e.style.position;getComputedStyle(e).position==="static"&&(e.style.position="relative");let s=D(e,[{left:`${t}px`,top:`${n}px`},{left:"0px",top:"0px"}],o);return s.onfinish=s.oncancel=()=>e.style.position=r,s}function ze(e,t){var r,s;let n=+getComputedStyle(e).opacity,o=(r=t==null?void 0:t.opacity)!=null?r:0;D(e,[{opacity:o,filter:(s=t==null?void 0:t.filter)!=null?s:"blur(4px)"},{opacity:n,filter:"blur(0px)"}],{duration:280*Math.min(1,Math.max(0,n-o)/(n||1)),delay:t?0:60,easing:Q,fill:"backwards"})}function tt(e,t){let n=Pa(e),o=e.getBoundingClientRect(),r=[...et.keys(),...e.querySelectorAll(".mt-old")].filter(E=>e.contains(E)&&!$a(E,e)&&as(E)).map(E=>({g:E,at:E.getBoundingClientRect(),over:E.parentElement,shows:et.has(E)?void 0:it(E)})),s=new Map([...n].map(([E,g])=>[g.node,E]));Fe(e,t);let i=new Map,c=()=>r.forEach(({g:E,at:g,over:v,shows:d})=>{let u=v&&s.get(v),l=u&&i.get(u),b=u&&n.get(u);l&&b&&b.at&&b.kind===wo(l)?Mt(E,g,l,b.at,d):Mt(E,g,e,o,d)});if(!n.size||ae())return c(),[];let f=e.getBoundingClientRect(),m=E=>E&&new DOMRect(E.left-o.left+f.left,E.top-o.top+f.top,E.width,E.height),M=[],h=[],x=new Set,w=[],T=(E,g,v)=>{var l;let d=E.parentElement,u=v?(l=n.get(v))==null?void 0:l.at:o;g!=null&&g.at&&h.push(d&&u?[bo(g.node),g.at,d,u,g.shows]:[bo(g.node),g.at,e,o,g.shows]),w.push(E),M.push(()=>ze(E))},O=(E,g,v)=>{let d=E.getBoundingClientRect(),u=g.left-o.left-(d.left-f.left),l=g.top-o.top-(d.top-f.top),b=u-v[0],y=l-v[1];return(Math.abs(b)>.5||Math.abs(y)>.5)&&Da(E,b,y),[u,l]},B=(E,g,v)=>[...E.childNodes].forEach((d,u)=>{var F,N;let l=`${g}/${u}`;x.add(l);let b=n.get(l);if(d.nodeType===Node.TEXT_NODE){let R=(F=d.textContent)!=null?F:"";if(!R.trim())return;let q=b&&(b.kind==="#text"||b.node instanceof HTMLElement&&!b.node.children.length)?b.text:null,Y=b&&b.shows.opacity<.99?b.shows:null;if(q===R&&!Y)return;let Z=a("span",{},R);if(d.replaceWith(Z),q===null||Math.max(R.length,q.length)>40)return T(Z,b,g);b!=null&&b.at&&O(Z,b.at,v),M.push(()=>{var te;return q===R?ze(Z,Y):ee(Z,R,q,{whole:!0,at:(te=m(b.words))!=null?te:void 0,shows:b.shows})});return}if(!(d instanceof Element))return;i.set(l,d);let y=d.getBoundingClientRect(),p=d instanceof SVGElement;if(!b||b.kind!==wo(d)||(p?b.svg!==cs(d):b.at&&Math.abs(b.at.height-y.height)>1))return T(d,b,g);let C=b.at?O(d,b.at,v):v,k=+getComputedStyle(d).opacity,A=Math.abs(b.shows.opacity-k)>.01?b.shows:null;if(p){A&&M.push(()=>ze(d,A));return}if(!d.children.length&&d instanceof HTMLElement){let R=(N=d.textContent)!=null?N:"";if(R===b.text||d.dataset.t)A&&M.push(()=>ze(d,A));else if(R.length<=40&&b.text.length<=40){let q={opacity:Math.min(1,b.shows.opacity/(k||1)),filter:b.shows.filter};M.push(()=>{var Y;return ee(d,R,b.text,{whole:!0,at:(Y=m(b.words))!=null?Y:void 0,shows:q})})}else T(d,b,g);return}A&&M.push(()=>ze(d,A)),B(d,l,C)});B(e,"",[0,0]);for(let[E,g]of n)!x.has(E)&&E.lastIndexOf("/")===0&&g.at&&h.push([bo(g.node),g.at,e,o,g.shows]);M.forEach(E=>E());for(let[E,g,v,d,u]of h)Mt(E,g,v,d,u);return c(),w}var Oa='',xo=()=>[V("apple"),Te(Oa)];function Ra(e,t){if(e===t)return["",e,e,""];let n=e.split(" "),o=t.split(" "),r=0;for(;rf?g[2]:g[1],M=g=>a("span",{class:"osm-p"},g),h=()=>{i=r.findIndex(g=>g[1]!==g[2]),i<0&&(f=0),s=r.map(g=>({pre:M(g[0]),word:M(m(g)),suf:M(g[3])})),c=i>=0?a("span",{class:"osm-ic"},xo()[f]):null,n.replaceChildren(...s.flatMap((g,v)=>[v?a("span",{class:"arr"},"›"):null,g.pre,v===i?c:null,g.word,g.suf]).filter(g=>!!g))},x={width:"1.05em",marginRight:"0.25em"},w=g=>{let v=getComputedStyle(g),d=Math.min(1,parseFloat(v.width)/(1.05*parseFloat(v.fontSize))||0),u=g.getAnimations();D(g,[{opacity:v.opacity,filter:v.filter,width:v.width,marginRight:v.marginRight},{opacity:0,filter:"blur(3px)",width:"0px",marginRight:"0px"}],{duration:220*d,easing:J,fill:"forwards"}).onfinish=()=>g.remove(),u.forEach(l=>l.cancel())},T=g=>D(g,[{opacity:0,filter:"blur(3px)",width:"0px",marginRight:"0px"},{opacity:1,filter:"blur(0px)",...x}],{duration:K.duration,easing:K.easing}),O=(g,v)=>{o.setAttribute("aria-label",(g===v?g:z(_("%s (Android: %s)"),g,v.split(" → ").pop())).replace(/ → /g," › "));let d=g.split(" → "),u=v.split(" → "),l=d.map((y,p)=>{var C;return Ra(y,(C=u[p])!=null?C:y)});if(!s.length||l.length!==r.length)return r=l,h();let b=i;r=l,i=r.findIndex(y=>y[1]!==y[2]),i<0&&(f=0),r.forEach((y,p)=>{ee(s[p].pre,y[0],void 0,{whole:!0}),ee(s[p].word,m(y),void 0,{whole:!0}),ee(s[p].suf,y[3],void 0,{whole:!0})}),i!==b&&(c&&w(c),c=i>=0?a("span",{class:"osm-ic"},xo()[f]):null,c&&(s[i].word.before(c),T(c)))};O(e,t);let B=()=>{if(!o.isConnected)return clearInterval(E);if(i<0||!c||!o.offsetParent)return;f=1-f,ee(s[i].word,m(r[i]));let g=c.firstElementChild,v=xo()[f];if(ae()){g.replaceWith(v);return}c.appendChild(v),D(g,[{opacity:1,filter:"blur(0px)",transform:"none"},{opacity:0,filter:"blur(3px)",transform:"scale(.5) rotate(-40deg)"}],{duration:200,easing:J,fill:"forwards"}).onfinish=()=>g.remove(),D(v,[{opacity:0,filter:"blur(3px)",transform:"scale(.5) rotate(40deg)"},{opacity:1,filter:"blur(0px)",transform:"none"}],{duration:Se.duration,delay:80,easing:Se.easing,fill:"backwards"})},E=window.setInterval(B,3e3);return{el:o,set:O}}var Hn=null,Qt=null,us=0;function ps(e,t,n){let o=getComputedStyle(e),r=D(e,[{opacity:o.opacity,transform:o.transform,filter:o.filter},t],{duration:n,easing:J,fill:"forwards"});e.getAnimations().forEach(s=>s!==r&&s.cancel()),r.onfinish=()=>e.remove()}function Ne(e,t=!1){Hn!=null||(Hn=document.body.appendChild(a("div",{class:"toasts"}))),Qt&&ps(Qt,{opacity:0,transform:"scale(.96)",filter:"blur(4px)"},140);let n=a("div",{class:`toast${t?" bad":""}`,role:"status"},V(t?"alert":"check"),a("span",{},e));Hn.appendChild(n),Qt=n,D(n,[{opacity:0,transform:"translateY(18px) scale(.9)",filter:"blur(6px)"},{opacity:1,transform:"none",filter:"none"}],{duration:Oe.duration,easing:Oe.easing}),clearTimeout(us),us=window.setTimeout(()=>{Qt===n&&(Qt=null,ps(n,{opacity:0,transform:"translateY(6px) scale(.96)",filter:"blur(4px)"},180))},2400)}function fs(e,t){var o;let n=typeof t=="string"?V(t,(o=e.getAttribute("class"))!=null?o:"i"):t;return e.replaceWith(n),D(n,[{opacity:0,transform:"scale(.6)",filter:"blur(3px)"},{opacity:1,transform:"none",filter:"none"}],{duration:Se.duration,easing:Se.easing}),n}function Na(e){if(e.classList.contains("copied"))return;let t=e.querySelector("svg.i"),n=e.querySelector(".lbl, .b-main"),o=n?ke(n):"";e.classList.add("copied");let r=t?fs(t,"check"):null;n&&ee(n,_("Copied")),setTimeout(()=>{r&&t&&fs(r,t),n&&ee(n,o),e.classList.remove("copied")},1600)}async function ge(e,t=_("Copied"),n){try{await navigator.clipboard.writeText(e)}catch{let o=a("textarea",{class:"offscreen"},e);document.body.appendChild(o),o.select();let r=document.execCommand("copy");if(o.remove(),!r)return Ne(_("Copying is blocked here. Select the text and copy it by hand."),!0)}n instanceof Element&&Na(n),Ne(t)}function at(e,t){var r;let n=navigator;if(kn()!=="ios"||typeof n.share!="function"||typeof File=="undefined")return null;let o=new File([t],e,{type:"application/octet-stream"});return(r=n.canShare)!=null&&r.call(n,{files:[o]})?async()=>{try{await n.share({files:[o]})}catch(s){(s==null?void 0:s.name)!=="AbortError"&&Pn(e,t)}}:null}function Pn(e,t){let n=URL.createObjectURL(new Blob([t],{type:"application/octet-stream"})),o=a("a",{href:n,download:e,class:"offscreen"});document.body.appendChild(o),o.click(),setTimeout(()=>{URL.revokeObjectURL(n),o.remove()},1e3)}function Xt(e,t){let n=at(e,t);n?n():Pn(e,t)}async function Et(e,t){if(e.disabled)return;e.disabled=!0,ts(e);let n=performance.now();try{await t()}finally{let o=ae()?0:Jr-(performance.now()-n);o>0&&await new Promise(r=>setTimeout(r,o)),ns(e),e.disabled=!1}}var Dn=matchMedia("(prefers-color-scheme: light)"),Ba=()=>Dn.matches?"day":"night";function ko(e){let t=Te(Yr(e,3,!0,Ba()));return t.dataset.qr=e,t}function ms(e,t){e.dataset.qr=t.dataset.qr,e.classList.toggle("dense",Cn(t.dataset.qr)),e.classList.toggle("light",Dn.matches),e.dataset.mods=String(t.viewBox.baseVal.width)}function Jt(e,t=!1){let n=a("div",{class:`qrbox${t?" big":""}`}),o=ko(e);return n.append(o),ms(n,o),n}Dn.addEventListener("change",()=>document.querySelectorAll(".qrbox[data-qr]").forEach(e=>{e.querySelectorAll(":scope > svg[data-qr]").forEach(t=>t.replaceChildren(...ko(t.dataset.qr).childNodes)),e.classList.toggle("light",Dn.matches)}));function Ia(e){let t=getComputedStyle(e);return{opacity:t.opacity,filter:t.filter==="none"?"blur(0px)":t.filter}}function Lo(e,t,n){let o=w=>!!n&&!Ur(w),r=t,s=o(e),i=Jt(s?n.text:e),c=a("div",{class:"words"},s?n.words():r),f=a("div",{class:"side"},c),m=a("div",{class:`coderow${i.classList.contains("dense")?" stacked":""}`},i,f),M=null,h=new WeakSet,x=w=>{var A,F;let T=[...i.querySelectorAll(":scope > svg")],O=new Map(T.map(N=>[N,+getComputedStyle(N).opacity])),B=getComputedStyle(i),E=i.getBoundingClientRect(),g=parseFloat(B.borderTopLeftRadius)*new DOMMatrix(B.transform).a,v=(A=T.find(N=>N.dataset.qr===w))!=null?A:ko(w),d=T.indexOf(v);d<0&&i.prepend(v);let u=T.slice(d+1).filter(N=>!h.has(N)),l=T.slice(0,Math.max(0,d)),b=[v,...u].flatMap(N=>N.getAnimations());h.delete(v),ms(i,v),m.classList.toggle("stacked",i.classList.contains("dense"));let y=(F=O.get(v))!=null?F:0;D(v,[{opacity:y},{opacity:1}],{duration:200*(1-y),easing:Q}).onfinish=()=>{l.forEach(N=>N.remove()),v.classList.remove("old")},u.forEach(N=>{N.classList.add("old"),h.add(N),D(N,[{opacity:O.get(N)},{opacity:0}],{duration:220*O.get(N),delay:110,easing:J,fill:"both"}).onfinish=()=>N.remove()}),b.forEach(N=>N.cancel()),M==null||M.cancel(),M=null;let p=i.getBoundingClientRect(),C=E.width/p.width,k=E.height/p.height;E.width&&p.width&&(Math.abs(C-1)>.005||Math.abs(k-1)>.005)&&(M=D(i,[{transform:`scale(${C}, ${k})`,transformOrigin:"0 0",borderRadius:`${g/C}px`},{transform:"none",transformOrigin:"0 0",borderRadius:getComputedStyle(i).borderTopLeftRadius}],{duration:K.duration,easing:K.easing}))};return{el:m,swap(w,T){T&&(r=T);let O=s;s=o(w);let B=s?n.text:w;i.dataset.qr!==B&&x(B);let E=s?n.words():T!=null?T:O?r:null;if(s&&O&&E.map(u=>u.textContent).join("")===c.textContent&&(E=null),!E)return;let g=c,v=Ia(g),d=g.getAnimations();c=a("div",{class:"words"},E),f.appendChild(c),g.classList.add("old"),D(c,[{opacity:0,filter:"blur(3px)"},{opacity:1,filter:"blur(0px)"}],{duration:220,easing:Q}),D(g,[v,{opacity:0,filter:"blur(3px)"}],{duration:200,delay:90,easing:J,fill:"both"}).onfinish=()=>g.remove(),d.forEach(u=>u.cancel())}}}function On(e){let t=typeof navigator.share=="function";return a("div",{class:"linkrow"},a("span",{class:"mono"},e.replace(/^https?:\/\//,"")),a("button",{type:"button",class:"knob","aria-label":_("Copy the link"),onclick:n=>ge(e,_("Link copied"),n.currentTarget)},V("copy")),t?a("button",{type:"button",class:"knob","aria-label":_("Share the link"),onclick:()=>navigator.share({url:e,title:Ke()}).catch(()=>{})},V("share")):null)}var ye=8,pe=12,Ve=null,Zt=()=>!!Ve;function Ue(e=!1){Ve==null||Ve(e)}function Ga(e){let t=getComputedStyle(e);return{opacity:t.opacity,transform:t.transform,filter:t.filter==="none"?"blur(0px)":t.filter}}function kt(e){D(e,[{opacity:0,transform:"scale(.5)",filter:"blur(6px)"},{opacity:1,transform:"none",filter:"blur(0px)"}],{duration:Se.duration,easing:Se.easing})}function Lt(e){let t=Ga(e);e.getAnimations().forEach(n=>n.cancel()),D(e,[t,{opacity:0,transform:"scale(.7)",filter:"blur(4px)"}],{duration:110,easing:J,fill:"forwards"}).onfinish=()=>e.remove()}function Ct(e,t,n){Ve&&Ve(!0);let o=i=>{let c=i.target;!e.contains(c)&&!t.contains(c)&&n()},r=i=>{i.key==="Escape"&&(i.stopPropagation(),n(),t.focus({preventScroll:!0}))},s=()=>n(!0);return document.addEventListener("pointerdown",o,!0),document.addEventListener("keydown",r,!0),addEventListener("resize",s),t.setAttribute("aria-expanded","true"),Ve=n,()=>Ve!==n?!1:(Ve=null,document.removeEventListener("pointerdown",o,!0),document.removeEventListener("keydown",r,!0),removeEventListener("resize",s),t.setAttribute("aria-expanded","false"),!0)}var Tt=null,hs=(e=!1)=>Tt==null?void 0:Tt(e);function gs(e){if(e.getAttribute("aria-expanded")==="true")return Ue();let t=bt(),n=typeof navigator.share=="function",o=a("div",{class:"pc-card drop",role:"dialog","aria-label":_("Open on another device")},Jt(t,!0),a("div",{class:"pc-row"},a("button",{type:"button",class:"pc-copy","aria-label":_("Copy the link"),onclick:w=>ge(t,_("Link copied"),w.currentTarget)},V("link"),a("span",{class:"lbl"},_("Copy link"))),n?a("button",{type:"button",class:"knob","aria-label":_("Share the link"),onclick:()=>navigator.share({url:t,title:Ke()}).catch(()=>{})},V("share")):null));document.body.append(o);let r=e.getBoundingClientRect(),s=o.offsetWidth,i=o.offsetHeight,c=r.left+r.width/2,f=Math.max(pe,Math.min(c-s/2,innerWidth-pe-s)),m=r.bottom+ye+i<=innerHeight-pe||r.top-ye-i{if(i!==r){if(r==null||r.classList.remove("hot"),r=i,!i)return void(o.style.opacity="0");i.classList.add("hot"),o.classList.toggle("moving",+getComputedStyle(o).opacity>.01),Object.assign(o.style,{translate:`${i.offsetLeft}px ${i.offsetTop}px`,width:`${i.offsetWidth}px`,height:`${i.offsetHeight}px`,borderRadius:getComputedStyle(i).borderRadius,opacity:"1"})}};for(let i of t)i.addEventListener("pointerenter",()=>s(i)),i.addEventListener("focus",()=>i.matches(":focus-visible")&&s(i)),i.addEventListener("pointerdown",()=>{o.classList.add("down"),document.addEventListener("pointerup",()=>o.classList.remove("down"),{once:!0,capture:!0})});return e.addEventListener("pointerleave",()=>s(n)),s(n),{light:i=>s(i!=null?i:n)}}var Nn=6,_t=10;function Fa(e,t,n,o,r){let s=r?Nn:0,i=r?t:t-Nn,c=r?0:t,f=M=>Math.round(M*100)/100,m=(M,h,x)=>`L ${f(M)} ${x} C ${f(M+(h-M)/4)} ${x} ${f(o-(h-M)/8)} ${c} ${f(o)} ${c} C ${f(o+(h-M)/8)} ${c} ${f(h-(h-M)/4)} ${x} ${f(h)} ${x} `;return`M ${n} ${s} ${r?m(o-_t,o+_t,s):""}L ${e-n} ${s} A ${n} ${n} 0 0 1 ${e-n} ${i} ${r?"":m(o+_t,o-_t,i)}L ${n} ${i} A ${n} ${n} 0 0 1 ${n} ${s} Z`}var ie=null;function Wa(e,t,n){let o=getComputedStyle(e);e.getAnimations().forEach(r=>r.cancel()),D(e,[{opacity:o.opacity,transform:o.transform,filter:o.filter},{opacity:0,...t}],{duration:n,easing:J,fill:"forwards"}).onfinish=()=>e.remove()}var ys=(e,t)=>{var n,o;return ie&&(o=(n=document.elementFromPoint(e,t))==null?void 0:n.closest(".pp-pop button"))!=null?o:null},vs=!1;function qa(){if(!vs){vs=!0,document.addEventListener("pointermove",e=>{let t=ie==null?void 0:ie.press;!ie||!t||(Math.hypot(e.clientX-t.x,e.clientY-t.y)>6&&(t.moved=!0),ie.light(ys(e.clientX,e.clientY)))},!0),document.addEventListener("pointerup",e=>{let t=ie,n=t==null?void 0:t.press;if(!t||!n)return;t.press=null;let o=ys(e.clientX,e.clientY);if(o&&t.pop.contains(o))return t.choose(o);(t.el.contains(document.elementFromPoint(e.clientX,e.clientY))?n.wasOpen&&!n.moved:n.moved)&&t.close()},!0),document.addEventListener("pointercancel",()=>ie&&(ie.press=null),!0),document.addEventListener("keydown",e=>{if(ie){if(e.key==="Tab")ie.close();else if((e.key==="ArrowLeft"||e.key==="ArrowRight")&&ie.pop.contains(document.activeElement)){e.preventDefault();let t=[...ie.pop.querySelectorAll("button")],n=t.indexOf(document.activeElement)+(e.key==="ArrowRight"?1:-1);t[Math.max(0,Math.min(t.length-1,n))].focus({preventScroll:!0})}}},!0);for(let e of["wheel","touchmove"])addEventListener(e,t=>ie&&!ie.pop.contains(t.target)&&!ie.el.contains(t.target)&&ie.close(),{passive:!0,capture:!0})}}function bs(e){qa();let t=e.value,n=B=>{var E;return(E=e.options.find(g=>g.value===B))!=null?E:e.options[0]},o=B=>e.short?e.short(B):n(B).label(),r=a("span",{class:"pp-lead"}),s=a("span",{class:"pp-t"}),i=V("chevron","i pp-chev"),c=a("button",{type:"button",class:`pp ${e.cls}`,"aria-haspopup":"menu","aria-expanded":"false"},r,s,i),f=(B=!1)=>{var v,d;let E=(d=(v=n(t)).lead)==null?void 0:d.call(v),g=B?[...r.children].filter(u=>!u.classList.contains("pp-gone")):[];if(r.replaceChildren(...g,...E?[E]:[]),r.hidden=!E&&!g.length,c.setAttribute("aria-label",e.label()),!!B){for(let u of g)u.classList.add("pp-gone"),Mo(u).onfinish=()=>u.remove();E&&Eo(E)}};se(s,o(t)),f(),i.addEventListener("transitionend",()=>{i.style.rotate==="-270deg"&&(i.style.transition="none",i.style.rotate="",i.getBoundingClientRect(),i.style.transition="")});let m=null,M=null,h=()=>!1,x=(B=!1)=>{!m||!h()||(B?(m.pop.remove(),M==null||M.remove()):(Lt(m.pop),M&&Wa(M,{},110)),M=null,ie===m&&(ie=null),m=null,i.style.rotate="-270deg")},w=B=>{let E=e.options[Number(B.dataset.i)].value;if(x(),E===t)return;let g=o(t);t=E,e.pick(E),f(!0),ee(s,o(E),g)},T=B=>{var le,me,Ie;let E=a("div",{class:"pp-pop drop",role:"menu","aria-label":e.label()},...e.options.map((de,Ge)=>{var S,H;return a("button",{type:"button",role:"menuitemradio",tabindex:"-1","data-i":String(Ge),"aria-checked":String(de.value===t),onclick:L=>w(L.currentTarget)},(H=(S=de.lead)==null?void 0:S.call(de))!=null?H:null,a("span",{},de.label()))}));document.body.append(E);let g=c.getBoundingClientRect(),v=(me=(le=c.closest(".sheet"))==null?void 0:le.getBoundingClientRect())!=null?me:{left:0,right:innerWidth},d=E.offsetWidth,u=E.offsetHeight,l=g.left+g.width/2,b=Math.max(pe,v.left+10),y=Math.min(innerWidth-pe,v.right-10),p=Math.max(b,Math.min(l-d/2,y-d)),C=u+Nn,k=g.top-ye-C>=pe,A=g.bottom+ye+C<=innerHeight-pe,F=e.prefer==="below"&&A||!k,N=F?g.bottom+ye:g.top-ye-C;E.classList.add(F?"below":"above");let R=Math.max(u/2+_t,Math.min(l-p,d-u/2-_t)),q=Fa(d,C,u/2,R,F);Object.assign(E.style,{left:`${p}px`,top:`${N}px`,height:`${C}px`,clipPath:`path('${q}')`,transformOrigin:`${R}px ${F?0:C}px`});let Y=document.createElementNS("http://www.w3.org/2000/svg","svg");Y.setAttribute("class","pp-ring"),Y.setAttribute("aria-hidden","true"),Y.setAttribute("viewBox",`0 0 ${d} ${C}`);let Z=document.createElementNS("http://www.w3.org/2000/svg","path");Z.setAttribute("d",q),Y.append(Z),E.append(Y),M=a("div",{class:"pp-shade","aria-hidden":"true"}),Object.assign(M.style,{left:`${p}px`,top:`${N+(F?Nn:0)}px`,width:`${d}px`,height:`${u}px`}),E.before(M),D(M,[{opacity:0},{opacity:1}],{duration:220,easing:"ease-out"}),kt(E),h=Ct(E,c,x);let{light:te}=Rn(E,[...E.querySelectorAll("button")],E.querySelector('[aria-checked="true"]'));m={el:c,pop:E,close:x,choose:w,light:te,press:null},ie=m,i.style.rotate="-90deg",B&&((Ie=E.querySelector('[aria-checked="true"]'))==null||Ie.focus({preventScroll:!0}))},O=0;return c.addEventListener("pointerdown",B=>{if(B.button!==0)return;O=performance.now();let E=!!m;m||T(!1),m.press={wasOpen:E,x:B.clientX,y:B.clientY,moved:!1},c.hasPointerCapture(B.pointerId)&&c.releasePointerCapture(B.pointerId)}),c.addEventListener("click",()=>{performance.now()-O<800||(m?x():T(!0))}),{el:c,show(B){B!==t&&(t=B,se(s,o(B)),f())},close:x}}var Ka='',In=null,St=null,Bn=null;function Co(e){if(St)return St;In=a("header",{class:"crumbs"}),St=a("div",{class:"page-body"}),e.replaceChildren(a("div",{class:"edge-fade top","aria-hidden":"true"}),a("div",{class:"edge-fade bot","aria-hidden":"true"}),Bn=a("main",{class:"page"},In,St));let t=()=>document.body.classList.toggle("scrolled",scrollY>2);return addEventListener("scroll",t,{passive:!0}),t(),St}function ws(){let e=St;if(!e)return()=>{};let t=e.getBoundingClientRect(),n=innerHeight-t.top-(document.documentElement.scrollHeight-scrollY-t.bottom);return e.getAnimations().forEach(o=>o.cancel()),e.style.minHeight=`${n}px`,()=>{let o=e.lastElementChild,r=o?o.getBoundingClientRect().bottom-e.getBoundingClientRect().top:0;e.style.minHeight="",r