<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:media="http://search.yahoo.com/mrss/"><channel><title>Hong Cheung — Programmierung (Deutsch)</title><description>Jotting down what I&apos;ve learnt.</description><link>https://hongcheung.com/</link><item><title>Warum ich Hermes Agent nicht mehr nutze</title><link>https://hongcheung.com/de/post/why-I-dont-use-hermes-agent-anymore/</link><guid isPermaLink="true">https://hongcheung.com/de/post/why-I-dont-use-hermes-agent-anymore/</guid><description>Wie ich Hermes Agent eingerichtet habe, wofür ich es nutze und warum ich es nicht mehr nutze.</description><pubDate>Fri, 03 Jul 2026 12:00:00 GMT</pubDate><content:encoded>&lt;p&gt;&lt;img src=&quot;https://cms.hongct.com/assets/89bcdece-b930-40bc-96b0-ffcebfdf6f8e&quot; alt=&quot;Warum ich Hermes Agent nicht mehr nutze&quot; referrerpolicy=&quot;no-referrer&quot; loading=&quot;lazy&quot;/&gt;&lt;/p&gt;&lt;h2 id=&quot;wie-ich-hermes-agent-eingerichtet-habe&quot;&gt;Wie ich Hermes Agent eingerichtet habe&lt;/h2&gt;
&lt;p&gt;Ich hatte es auf einem VPS-Server laufen, den ich selbst über Hetzner gehostet habe&lt;sup&gt;&lt;a href=&quot;#user-content-fn-1&quot; id=&quot;user-content-fnref-1&quot; data-footnote-ref=&quot;&quot; aria-describedby=&quot;footnote-label&quot;&gt;1&lt;/a&gt;&lt;/sup&gt;. Über Telegram als Gateway habe ich mit meinem GPT auf dem Handy gesprochen. Und ich habe das Modell OpenRouter Owl Alpha verwendet, das damals kostenlos war und ein Limit von 1M Token hat. Das reicht für so ziemlich alles.&lt;/p&gt;
&lt;h3 id=&quot;langzeitgedächtnis-und-referenzen&quot;&gt;Langzeitgedächtnis und Referenzen&lt;/h3&gt;
&lt;p&gt;Ich habe außerdem &lt;a rel=&quot;nofollow noopener noreferrer&quot; target=&quot;_blank&quot; href=&quot;https://github.com/michael-denyer/memory-mcp/tree/main&quot;&gt;MCP-Memory&lt;/a&gt; eingerichtet, um Erinnerungen lokal auf dem VPS zu speichern, damit ich mich nicht jedes Mal wiederholen muss, wenn ich eine neue Sitzung starte. Und &lt;a rel=&quot;nofollow noopener noreferrer&quot; target=&quot;_blank&quot; href=&quot;https://github.com/shinpr/mcp-local-rag&quot;&gt;MCP-Local-Rag&lt;/a&gt; für meine lokale Buchsammlung, auf die ich bei meinen Fragen verweisen musste. Sie deckt Themen wie Wirtschaft, Gesundheit, Wissenschaft usw. ab.&lt;/p&gt;
&lt;h2 id=&quot;der-beste-anwendungsfall-von-hermes-agent-für-mich&quot;&gt;Der beste Anwendungsfall von Hermes Agent (für mich)&lt;/h2&gt;
&lt;h3 id=&quot;sprachen-lernen&quot;&gt;Sprachen lernen&lt;/h3&gt;
&lt;p&gt;Ich habe festgestellt, dass der beste Anwendungsfall für mich das Sprachenlernen damit war. Und zwar so: Ich habe einen Sprachlern-Agenten namens Fiona erstellt. Und in jeder Sitzung, wenn ich mit „Hey Fiona“ beginne, lädt er alle Sprachlern-Fähigkeiten und den Kontext in die Sitzung, sodass wir wissen, was wir vorhatten.&lt;/p&gt;
&lt;p&gt;Und was die Sprachen angeht: Ich lerne Spanisch und Japanisch. Das Sprachenlernen in diesem Workflow besteht größtenteils aus Vokabel-Abfragen, die ich mit meinem GPT eingerichtet habe.&lt;/p&gt;
&lt;h4 id=&quot;die-vokabeln-für-meine-zielsprache-finden&quot;&gt;Die Vokabeln für meine Zielsprache finden&lt;/h4&gt;
&lt;p&gt;Ich habe es gebeten, auf GitHub zu gehen, CSV-/MD-Dateien für beide Sprachen zu finden und herunterzuladen und sie im lokalen Ordner /vocabs/Spanish usw. zu kategorisieren. Ich würde diese Dateien je nach Niveau N1-N5 und A1-C2 nennen. Ich hätte also N1.csv, A1.md – es war eine Mischung aus Dateitypen.&lt;/p&gt;
&lt;h4 id=&quot;abfragen&quot;&gt;Abfragen&lt;/h4&gt;
&lt;p&gt;Ich habe mit Fiona eine Regel eingerichtet, dass sie mich jeweils nach der Bedeutung von 5 Wörtern in meiner Zielsprache fragt, und bei jedem Fehlversuch wird notiert, wie oft ich dieses Wort falsch hatte, in einer weiteren Datei wrong-N1.csv. Bei den richtigen Wörtern ändere ich die Originaldatei und füge der jeweiligen Zeile 1 Punkt hinzu. Je höher die Punktzahl, desto unwahrscheinlicher taucht das Wort in den Abfragen auf. Die Abfragewörter sind also zufällig, aber für mich optimiert.&lt;/p&gt;
&lt;h4 id=&quot;erinnerungs-vokabel-challenge&quot;&gt;Erinnerungs-Vokabel-Challenge&lt;/h4&gt;
&lt;p&gt;Das ist etwas, das ich nützlich fand. Ich habe einige Cronjobs eingerichtet, damit mir jeden Tag über den Tag verteilt automatisch Abfragen geschickt werden. Normalerweise bekam ich zwei Abfragen gegen 8 Uhr morgens, wenn ich meine Pause bei der Arbeit habe. Zwei weitere um 11 Uhr, direkt vor der Mittagspause. Und zwei weitere vor dem Schlafengehen, idealerweise um 20 Uhr.&lt;/p&gt;
&lt;h3 id=&quot;gesamterfahrung-mit-der-nutzung-zum-sprachenlernen&quot;&gt;Gesamterfahrung mit der Nutzung zum Sprachenlernen&lt;/h3&gt;
&lt;p&gt;Ich würde sagen, es ist gemischt. Es könnte sein, dass ich es nicht präzise genug eingerichtet habe, oder dass es einfach nicht stabil genug ist, sich wiederholt auf ein LLM zu verlassen, das Dinge selbst erledigt. Abgesehen von der manchmal ordentlichen Erfahrung, dass es „so arbeitet, wie ich es gesagt habe“, ist es auf Halluzinationen gestoßen und ist ab und zu vom Kurs abgekommen und hat alle möglichen seltsamen Bash-Befehle ausgeführt. Das macht die ganze Erfahrung nicht gerade angenehm.&lt;/p&gt;
&lt;h3 id=&quot;andere-anwendungsfälle&quot;&gt;Andere Anwendungsfälle&lt;/h3&gt;
&lt;p&gt;Ich habe versucht, es einfach zum Chatten zu nutzen. Du weißt schon, einen persönlichen Assistenten zu haben, der sich an alles von mir erinnert und die Antwort speziell auf mich zuschneidet, unter Berücksichtigung all meiner Ambitionen, Gewohnheiten und meiner Situation. Aber am Ende kann es einen Menschen für ein wertvolles Gespräch niemals ersetzen. &lt;em&gt;Man weiß nicht, was man nicht weiß&lt;/em&gt;. Ich kann es &lt;em&gt;so einrichten, wie ich es wollte&lt;/em&gt;, und ich glaube, das ist der Nachteil.&lt;/p&gt;
&lt;p&gt;Es ist wie bei Leuten, die versuchen, GPT als KI-Partner zu nutzen; sie können es so einrichten, wie sie es wollten. Das ist zu ideal und es fehlen die zentralen menschlichen Elemente wie Stimmung, die eigene Vision, das Gefühl für dich, Verbindungen zwischen Menschen usw. Also funktioniert es wirklich nicht gut, mit einem GPT wie mit einem Freund zu reden. Ich brauche keine Echokammer oder einen ewigen Tröster. Ich möchte Erfahrungen aus dem echten Leben hören.&lt;/p&gt;
&lt;p&gt;Das gesagt, die einzige Art und Weise, wie ich GPT oder KI als einigermaßen nützlich empfunden habe, ist, sie einfach als Suchmaschine zu nutzen. Das ist so ziemlich alles. Keine Werbung mehr auf Webseiten, kein Durchklicken von Hürden. Und ich bevorzuge Text von Anfang an.&lt;/p&gt;
&lt;h2 id=&quot;alternative-zu-hermes-agent-nicht-openclaw&quot;&gt;Alternative zu Hermes Agent (nicht OpenClaw)&lt;/h2&gt;
&lt;p&gt;Es ist interessant, dass ich festgestellt habe, dass die Nutzung von OpenCode oder einer beliebigen Programmier-IDE – die Tools, die für KI-Programmierung gemacht sind – im Allgemeinen nützlicher ist als Hermes Agent.&lt;/p&gt;
&lt;p&gt;Der Hauptunterschied zwischen ihnen und Hermes Agent ist, dass die meisten von ihnen projektbezogen sind. Das heißt, sie können nur innerhalb dieses Ordners arbeiten, für jedes Projekt, das du deklariert hast. Auf der anderen Seite gibst du standardmäßig, um die volle Leistung von Hermes Agent / OpenClaw zu nutzen, ihnen normalerweise volle Berechtigungen, was bedeutet, dass sie deine anderen Dateien und Einstellungen auf deinem Rechner durcheinanderbringen können und werden.&lt;/p&gt;
&lt;p&gt;Programmier-IDE, ein neuer Ordner pro Agent – so arbeite ich jetzt. Ich habe jetzt einen Sprachlern-Agenten, der nur in diesem Ordner arbeitet, und einen Investment-Researcher und -Berater nur in einem anderen Ordner. Jeder von ihnen hat einen anderen Satz von Regeln und Leitplanken. Ich kann leicht zwischen ihnen wechseln, um an verschiedenen Themen zu arbeiten, und die Dateien selbst anpassen, im Gegensatz zur Nutzung von Hermes Agent.&lt;/p&gt;
&lt;h2 id=&quot;fazit&quot;&gt;Fazit&lt;/h2&gt;
&lt;p&gt;Hermes Agent klingt innovativ, und vielleicht ist es das auch. Aber ich habe irgendwie das Gefühl, dass es überkonstruiert ist, um einen nicht ganz notwendigen Reiz zu bedienen. Denn irgendwann, als ich es zum Sprachenlernen nutzte, dachte ich: Mensch, an diesem Punkt könnte ich einfach meine eigene Karteikarten-App bauen, und das wäre ressourcenschonender gewesen und, was am wichtigsten ist, sehr stabil.&lt;/p&gt;
&lt;p&gt;Aber wer weiß, vielleicht läuft Hermes Agent eines Tages in einem Roboter, und Hermes Agent wird ein Roboter-Betriebssystem. In Anbetracht des großen Vorstoßes von Nvidia, ihre neuen KI-Computer mit integriertem Hermes Agent herauszubringen.&lt;/p&gt;
&lt;p&gt;Aber im Moment habe ich es bereits deinstalliert und nutze weiterhin OpenCode und KiloCode für meinen täglichen Gebrauch, und es war gut.&lt;/p&gt;
&lt;p&gt;Oh, ich habe auch angefangen, bezahlte Modelle zu nutzen, auch wegen Datenschutzbedenken.&lt;/p&gt;
&lt;section data-footnotes=&quot;&quot; class=&quot;footnotes&quot;&gt;&lt;h2 class=&quot;sr-only&quot; id=&quot;footnote-label&quot;&gt;Footnotes&lt;/h2&gt;
&lt;ol&gt;
&lt;li id=&quot;user-content-fn-1&quot;&gt;
&lt;p&gt;Hetzner ist mein Lieblings-VPS-Server. Erschwinglich, in Europa ansässig und sehr stabil. Ich nutze es seit über 2 Jahren mit zwei VPS-Servern. Du kannst &lt;a rel=&quot;nofollow noopener noreferrer&quot; target=&quot;_blank&quot; href=&quot;https://hetzner.cloud/?ref=ybCDonttXx99&quot;&gt;diesen Link&lt;/a&gt; verwenden, um dich anzumelden und 20 € an Cloud-Guthaben zu erhalten. Das deckt so ziemlich die ersten zwei bis drei Monate deiner Serverkosten ab. &lt;a href=&quot;#user-content-fnref-1&quot; data-footnote-backref=&quot;&quot; aria-label=&quot;Back to reference 1&quot; class=&quot;data-footnote-backref&quot;&gt;↩&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/section&gt;</content:encoded><media:thumbnail url="https://cms.hongct.com/assets/89bcdece-b930-40bc-96b0-ffcebfdf6f8e"/><enclosure url="https://cms.hongct.com/assets/89bcdece-b930-40bc-96b0-ffcebfdf6f8e" length="14030" type="image/webp"/></item><item><title>So beheben Sie die Ablehnung wegen NSUserTrackingUsageDescription durch die App-Store-Prüfung</title><link>https://hongcheung.com/de/post/how-to-fix-nsusertrackingusagedescription-rejection-from-app-store-review/</link><guid isPermaLink="true">https://hongcheung.com/de/post/how-to-fix-nsusertrackingusagedescription-rejection-from-app-store-review/</guid><description>Kürzlich habe ich beschlossen, alle Google Ads aus meinen Apps zu entfernen. Als ich jedoch die neue Version ohne Tracker beim App-Review-Team einreichte, wurde sie abgelehnt. Die Begründung lautete wie folgt.</description><pubDate>Thu, 26 Jun 2025 12:00:00 GMT</pubDate><content:encoded>&lt;p&gt;&lt;img src=&quot;https://cms.hongct.com/assets/10f1c00b-5027-4533-82e4-8de39487a05d&quot; alt=&quot;So beheben Sie die Ablehnung wegen NSUserTrackingUsageDescription durch die App-Store-Prüfung&quot; referrerpolicy=&quot;no-referrer&quot; loading=&quot;lazy&quot;/&gt;&lt;/p&gt;&lt;p&gt;Kürzlich habe ich beschlossen, alle Google Ads aus meinen Apps zu entfernen. Als ich jedoch die neue Version ohne Tracker beim App-Review-Team einreichte, wurde sie abgelehnt. Die Begründung lautete wie folgt:&lt;/p&gt;
&lt;h2 id=&quot;problem&quot;&gt;Problem&lt;/h2&gt;
&lt;hr&gt;
&lt;blockquote&gt;
&lt;h3 id=&quot;richtlinie-21--informationen-erforderlich&quot;&gt;Richtlinie 2.1 – Informationen erforderlich&lt;/h3&gt;
&lt;p&gt;Wir können nicht auf alle oder einen Teil der App zugreifen. Um die Prüfung fortsetzen zu können, benötigen wir eine Möglichkeit, alle App-Funktionen und -Features für alle Kontotypen zu überprüfen. Üblicherweise geschieht dies durch die Bereitstellung eines Demo-Kontos, das Zugriff auf alle Funktionen und Features der App hat.&lt;/p&gt;
&lt;p&gt;Konkret wünschen wir uns ein Demo-Konto ohne aktives Abonnement, damit wir alle Abonnementoptionen prüfen können.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Nächste Schritte&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Um dieses Problem zu lösen, geben Sie im Abschnitt „App-Review-Informationen“ von App Store Connect einen Benutzernamen und ein Passwort an. Es ist auch zulässig, einen Demonstrationsmodus einzubinden, der die vollständigen Features und Funktionen der App zeigt. Beachten Sie, dass ein Demo-Video, das die App in Verwendung zeigt, nicht ausreicht, um die Prüfung fortzusetzen.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Ressourcen&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Weitere Informationen zum Bereitstellen von Informationen in App Store Connect finden Sie in der &lt;a rel=&quot;nofollow noopener noreferrer&quot; target=&quot;_blank&quot; href=&quot;https://developer.apple.com/help/app-store-connect/reference/app-review-information/&quot;&gt;App Store Connect-Hilfe&lt;/a&gt;.&lt;/p&gt;
&lt;h3 id=&quot;richtlinie-21--informationen-erforderlich-1&quot;&gt;Richtlinie 2.1 – Informationen erforderlich&lt;/h3&gt;
&lt;p&gt;Die App verwendet das AppTrackingTransparency-Framework, aber wir können die App Tracking Transparency-Berechtigungsanfrage bei der Prüfung unter iPadOS 18.5 nicht finden.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Nächste Schritte&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Erklären Sie, wo wir die App Tracking Transparency-Berechtigungsanfrage in der App finden können. Die Anfrage sollte erscheinen, bevor Daten erhoben werden, die zur Verfolgung des Nutzers verwendet werden könnten.&lt;/p&gt;
&lt;p&gt;Wenn App Tracking Transparency implementiert ist, die Berechtigungsanfrage aber auf Geräten mit dem neuesten Betriebssystem nicht erscheint, lesen Sie die &lt;a rel=&quot;nofollow noopener noreferrer&quot; target=&quot;_blank&quot; href=&quot;https://developer.apple.com/documentation/apptrackingtransparency/attrackingmanager/3547037-requesttrackingauthorization&quot;&gt;verfügbare Dokumentation&lt;/a&gt; und bestätigen Sie, dass App Tracking Transparency korrekt implementiert wurde.&lt;/p&gt;
&lt;p&gt;Wenn Ihre App keine Nutzer trackt, aktualisieren Sie Ihre &lt;a rel=&quot;nofollow noopener noreferrer&quot; target=&quot;_blank&quot; href=&quot;https://help.apple.com/app-store-connect/#/dev1b4647c5b&quot;&gt;App-Datenschutzinformationen in App Store Connect&lt;/a&gt;, sodass kein Tracking angegeben wird. Sie müssen die &lt;a rel=&quot;nofollow noopener noreferrer&quot; target=&quot;_blank&quot; href=&quot;https://developer.apple.com/support/roles/&quot;&gt;Rolle „Account Holder“ oder „Admin“&lt;/a&gt; haben, um die App-Datenschutzinformationen zu aktualisieren.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Ressourcen&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Tracking bedeutet, dass aus der App erhobene Daten zu Werbezwecken mit Drittanbieterdaten verknüpft oder die erhobenen Daten mit einem Datenbroker geteilt werden. Erfahren Sie mehr über &lt;a rel=&quot;nofollow noopener noreferrer&quot; target=&quot;_blank&quot; href=&quot;https://developer.apple.com/app-store/app-privacy-details/#user-tracking&quot;&gt;Tracking&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Lesen Sie die häufig gestellten Fragen zu den &lt;a rel=&quot;nofollow noopener noreferrer&quot; target=&quot;_blank&quot; href=&quot;https://developer.apple.com/app-store/user-privacy-and-data-use/#permission-to-track&quot;&gt;Anforderungen für Apps, die Nutzer tracken&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Lesen Sie die Entwicklerdokumentation zu &lt;a rel=&quot;nofollow noopener noreferrer&quot; target=&quot;_blank&quot; href=&quot;https://developer.apple.com/documentation/apptrackingtransparency&quot;&gt;App Tracking Transparency&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&quot;support&quot;&gt;Support&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Antworten Sie in Ihrer bevorzugten Sprache auf diese Nachricht, wenn Sie Hilfe benötigen. Wenn Sie zusätzliche Unterstützung benötigen, nutzen Sie das &lt;a rel=&quot;nofollow noopener noreferrer&quot; target=&quot;_blank&quot; href=&quot;https://developer.apple.com/contact/topic/#!/topic/select&quot;&gt;Modul „Kontakt“&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Tauschen Sie sich mit anderen Entwicklern und Apple-Ingenieuren in den &lt;a rel=&quot;nofollow noopener noreferrer&quot; target=&quot;_blank&quot; href=&quot;https://developer.apple.com/forums/&quot;&gt;Apple Developer Foren&lt;/a&gt; aus.&lt;/li&gt;
&lt;li&gt;Geben Sie Feedback zu dieser Nachricht und Ihren Prüfungserfahrungen, indem Sie &lt;a rel=&quot;nofollow noopener noreferrer&quot; target=&quot;_blank&quot; href=&quot;https://essentials.applesurveys.com/jfe/form/SV_esVePfih7uqt4NM?campaignid=0001&quot;&gt;eine kurze Umfrage ausfüllen&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;
&lt;h2 id=&quot;der-wahre-grund-hinter-dem-besagten-problem&quot;&gt;Der wahre Grund hinter dem besagten Problem&lt;/h2&gt;
&lt;h3 id=&quot;sie-prüfen-automatisch-mit-der-alten-version&quot;&gt;Sie prüfen automatisch mit der alten Version&lt;/h3&gt;
&lt;p&gt;Viele vermuten, dass Apple alle Apps automatisch ablehnt, die einst einen Datenerhebungs-Hinweis hatten, in der neuen Version aber keinen Tracking-Hinweis in der App aufweisen. Sie verwenden die aktuell im Store vorhandene Version als Grundlage.&lt;/p&gt;
&lt;p&gt;Das Problem ist also nicht, dass Ihre neue App-Version den Tracker enthält, sondern dass sie anhand der letzten Version Ihrer App beurteilt wird.&lt;/p&gt;
&lt;h3 id=&quot;sie-haben-tatsächlich-nsusertrackingusagedescription-in-ihrer-projekt-binärdatei&quot;&gt;Sie haben tatsächlich NSUserTrackingUsageDescription in Ihrer Projekt-Binärdatei&lt;/h3&gt;
&lt;p&gt;Das ist mir auch passiert. Sie müssen die SDKs und die zugehörigen Einstellungen in der info.plist entfernen. Allerdings habe ich die localizedStrings übersehen, die lokalisierte Zeichenketten für die Tracking-Warnung anzeigen. Ich hatte eine Datei namens infoPlist.localizedstrings (oder so ähnlich), die Lokalisierungen für mehrere Sprachen für das Pop-up beim App-Start enthielt, das fragt: „Allow Google to provide personalized ads?“.&lt;/p&gt;
&lt;p&gt;Sie können einfach links nachsehen, ob sie dort ist. Oder gehen Sie in Ihrem Projekt zu Build Phases &gt; Copy Bundle Resources aufklappen. Prüfen Sie, ob Infoplist.localsedString dort ist.&lt;/p&gt;
&lt;p&gt;&lt;img loading=&quot;lazy&quot; decoding=&quot;async&quot; referrerpolicy=&quot;no-referrer&quot; src=&quot;https://cms.hongct.com/assets/9135a8ec-d7f8-44e3-95ac-f4a17c091a52&quot; alt=&quot;&quot;&gt;
Bei der Überprüfung fand ich die „NSUserTrackingUsageDescription“ in dieser Datei. Und sie tauchte nicht auf, selbst wenn ich in der Seitenleiste mit dem Suchbegriff „NSUserTrackingUsageDescription“ die globale Suche durchführte.&lt;/p&gt;
&lt;p&gt;Sie müssen einfach sorgfältig nach jeglichen Rückständen suchen.&lt;/p&gt;
&lt;h2 id=&quot;der-versuch-es-zu-lösen&quot;&gt;Der Versuch, es zu lösen&lt;/h2&gt;
&lt;p&gt;Ich folgte der Anweisung und ging auf die Seite „App-Datenschutz“ meiner App in App Store Connect. Dann versuchte ich, den Datenerhebungs-Hinweis auf „Nein“ zu ändern. Genau da stieß ich auf diese Hürde:&lt;/p&gt;
&lt;p&gt;&lt;img loading=&quot;lazy&quot; decoding=&quot;async&quot; referrerpolicy=&quot;no-referrer&quot; src=&quot;https://cms.hongct.com/assets/40399f7c-222b-45be-9179-7f2ef393ee46&quot; alt=&quot;&quot;&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;Ihre App enthält NSUserTrackingUsageDescription, was darauf hinweist, dass Sie die Berechtigung zum Tracking von Nutzern anfordern werden. Sie müssen angeben, welche Datentypen Nutzer tracken. Wenn dies nicht korrekt ist, aktualisieren Sie Ihre App-Binärdatei und laden Sie einen neuen Build in App Store Connect hoch.&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Nun, das ist seltsam.&lt;/p&gt;
&lt;p&gt;Ich hatte bereits alle Google-SDKs entfernt und sichergestellt, dass ich alle App-Tracker in der info.plist entferne. Außerdem habe ich den Build-Cache geleert, um die neue Version mit einem sauberen Ausgangszustand neu zu erstellen.&lt;/p&gt;
&lt;p&gt;Es stellt sich heraus, dass viele Entwickler mit demselben Problem konfrontiert sind. (&lt;a rel=&quot;nofollow noopener noreferrer&quot; target=&quot;_blank&quot; href=&quot;https://developer.apple.com/forums/thread/679585&quot;&gt;Link zum Apple Developer Forum&lt;/a&gt;)&lt;/p&gt;
&lt;p&gt;Glücklicherweise ist dies nicht das erste Mal, dass ich diese Ablehnung erhalte. Ich hatte dies bereits bei einer anderen App erlebt, nachdem ich das Google AdMob SDK aus meiner bestehenden App entfernt hatte. Und ich konnte es mit den folgenden Schritten lösen.&lt;/p&gt;
&lt;h2 id=&quot;lösung&quot;&gt;Lösung&lt;/h2&gt;
&lt;p&gt;So habe ich die Prüfung bestanden – zweimal.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Stellen Sie sicher, dass Sie wirklich alles entfernen, was den Nutzer trackt.&lt;/li&gt;
&lt;li&gt;Erstellen Sie den Build und laden Sie die neue Version hoch.&lt;/li&gt;
&lt;li&gt;Wenn Sie die automatische Veröffentlichung aktiviert haben, ändern Sie Ihre Einstellung auf Entwickler-Veröffentlichung.&lt;/li&gt;
&lt;li&gt;Reichen Sie die neue Version ein.&lt;/li&gt;
&lt;li&gt;Wenn Sie abgelehnt werden, antworten Sie einfach auf die Nachricht und erklären Sie, dass:
&lt;ul&gt;
&lt;li&gt;Sie bereits alle Tracker entfernt haben.&lt;/li&gt;
&lt;li&gt;Sie Links zu Diskussionen im Apple Developer Forum anhängen, in denen andere dasselbe Problem haben.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Warten Sie geduldig ein bis zwei Tage.&lt;/li&gt;
&lt;li&gt;Sobald Sie die App-Prüfung bestanden haben, können Sie den Datenerhebungs-Hinweis auf „Nein“ ändern.&lt;/li&gt;
&lt;li&gt;Klicken Sie auf „Veröffentlichen“!&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Wie Sie sehen, können Sie die Einstellung für die Datenerhebung interessanterweise erst nach bestandener Prüfung ändern, nicht davor.&lt;/p&gt;
&lt;h2 id=&quot;die-beste-lösung-für-das-nächste-mal&quot;&gt;&lt;strong&gt;Die beste Lösung für das nächste Mal&lt;/strong&gt;?&lt;/h2&gt;
&lt;p&gt;Tracken Sie Ihre Nutzer einfach von vornherein nicht.&lt;/p&gt;
&lt;p&gt;Lektion gelernt.&lt;/p&gt;
&lt;p&gt;Viel Glück!&lt;/p&gt;
&lt;hr&gt;
&lt;p&gt;&lt;strong&gt;Referenz&lt;/strong&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;a rel=&quot;nofollow noopener noreferrer&quot; target=&quot;_blank&quot; href=&quot;https://developer.apple.com/forums/thread/679585&quot;&gt;https://developer.apple.com/forums/thread/679585&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a rel=&quot;nofollow noopener noreferrer&quot; target=&quot;_blank&quot; href=&quot;https://developer.apple.com/forums/thread/679585&quot;&gt;https://developer.apple.com/forums/thread/679585&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a rel=&quot;nofollow noopener noreferrer&quot; target=&quot;_blank&quot; href=&quot;https://community.thunkable.com/t/solved-can-not-publish-to-ios-problem-with-nsusertrackingusagedescription-which-is-not-used/1553223?page=4&quot;&gt;https://community.thunkable.com/t/solved-can-not-publish-to-ios-problem-with-nsusertrackingusagedescription-which-is-not-used/1553223?page=4&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Reddit&lt;/li&gt;
&lt;/ol&gt;</content:encoded><media:thumbnail url="https://cms.hongct.com/assets/10f1c00b-5027-4533-82e4-8de39487a05d"/><enclosure url="https://cms.hongct.com/assets/10f1c00b-5027-4533-82e4-8de39487a05d" length="82548" type="image/webp"/></item><item><title>So beheben Sie eine unleserliche JSON-Antwort im Browser</title><link>https://hongcheung.com/de/post/how-to-fix-gibberish-json-return-in-the-browser/</link><guid isPermaLink="true">https://hongcheung.com/de/post/how-to-fix-gibberish-json-return-in-the-browser/</guid><description>Möglichkeiten, eine unsinnige JSON-Antwort zu beheben.</description><pubDate>Mon, 26 May 2025 12:00:00 GMT</pubDate><content:encoded>&lt;p&gt;&lt;img src=&quot;https://cms.hongct.com/assets/b9c41563-4083-4d57-9841-dbfdfaeab1e8&quot; alt=&quot;So beheben Sie eine unleserliche JSON-Antwort im Browser&quot; referrerpolicy=&quot;no-referrer&quot; loading=&quot;lazy&quot;/&gt;&lt;/p&gt;&lt;p&gt;Ich habe einen Tag damit verbracht, herauszufinden, was mit der unleserlichen Antwort im Browser von meinem Flask-API-Server nicht stimmt. Interessanterweise funktionieren andere Endpunkte einwandfrei, nur diese neu hinzugefügte Route nicht. Das habe ich gelernt, um das Problem zu beheben.&lt;/p&gt;
&lt;h2 id=&quot;die-ursache-herausfinden&quot;&gt;&lt;strong&gt;Die Ursache herausfinden&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;Ich habe erfahren, dass es drei Hauptgründe dafür gibt.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Content-Type – der charset ist nicht auf UTF-8 gesetzt oder wird nicht einmal als JSON erkannt&lt;/li&gt;
&lt;li&gt;Content-Encoding – die standardmäßige automatische Komprimierung des Browsers für JSON steht im Konflikt mit der Kodierungsmethode der API.&lt;/li&gt;
&lt;/ol&gt;
&lt;h3 id=&quot;zwei-möglichkeiten-das-zu-prüfen&quot;&gt;Zwei Möglichkeiten, das zu prüfen&lt;/h3&gt;
&lt;h4 id=&quot;curl&quot;&gt;cURL&lt;/h4&gt;
&lt;p&gt;Öffnen Sie Ihr Terminal und verwenden Sie cURL&lt;/p&gt;
&lt;div class=&quot;expressive-code&quot;&gt;&lt;style&gt;.expressive-code{font-family:var(--ec-uiFontFml);font-size:var(--ec-uiFontSize);font-weight:var(--ec-uiFontWg);line-height:var(--ec-uiLineHt);text-size-adjust:none;-webkit-text-size-adjust:none}.expressive-code *:not(:is(svg, svg *)){all:revert;box-sizing:border-box}.expressive-code pre{display:flex;margin:0;padding:0;border:var(--ec-brdWd) solid var(--ec-brdCol);border-radius:calc(var(--ec-brdRad) + var(--ec-brdWd));background:var(--ec-codeBg)}.expressive-code pre:focus-visible{outline:3px solid var(--ec-focusBrd);outline-offset:-3px}.expressive-code pre &gt; code{all:unset;display:block;flex:1 0 100%;padding:var(--ec-codePadBlk) 0;color:var(--ec-codeFg);font-family:var(--ec-codeFontFml);font-size:var(--ec-codeFontSize);font-weight:var(--ec-codeFontWg);line-height:var(--ec-codeLineHt)}.expressive-code pre{overflow-x:auto}.expressive-code pre.wrap .ec-line .code{white-space:pre-wrap;overflow-wrap:break-word;min-width:min(20ch, var(--ecMaxLine, 20ch))}.expressive-code pre.wrap .ec-line .code span.indent{white-space:pre}.expressive-code pre::-webkit-scrollbar,.expressive-code pre::-webkit-scrollbar-track{background-color:inherit;border-radius:calc(var(--ec-brdRad) + var(--ec-brdWd));border-top-left-radius:0;border-top-right-radius:0}.expressive-code pre::-webkit-scrollbar-thumb{background-color:var(--ec-sbThumbCol);border:4px solid transparent;background-clip:content-box;border-radius:10px}.expressive-code pre::-webkit-scrollbar-thumb:hover{background-color:var(--ec-sbThumbHoverCol)}.expressive-code pre::-webkit-scrollbar-corner{background:transparent}.expressive-code .ec-line{direction:ltr;unicode-bidi:isolate;display:grid;grid-template-areas:&apos;gutter code&apos;;grid-template-columns:auto 1fr;position:relative}.expressive-code .ec-line .gutter{grid-area:gutter;color:var(--ec-gtrFg)}.expressive-code .ec-line .gutter &gt; *{pointer-events:none;user-select:none;-webkit-user-select:none}.expressive-code .ec-line .gutter ~ .code{--ecLineBrdCol:var(--ec-gtrBrdCol)}.expressive-code .ec-line.highlight .gutter{color:var(--ec-gtrHlFg)}.expressive-code .ec-line .code{grid-area:code;position:relative;box-sizing:content-box;padding-inline-start:calc(var(--ecIndent, 0ch) + var(--ec-codePadInl) - var(--ecGtrBrdWd));padding-inline-end:var(--ec-codePadInl);text-indent:calc(var(--ecIndent, 0ch) * -1)}.expressive-code .ec-line .code::before,.expressive-code .ec-line .code::after,.expressive-code .ec-line .code :where(*){text-indent:0}.expressive-code .ec-line .code{--ecGtrBrdWd:var(--ec-gtrBrdWd);border-inline-start:var(--ecGtrBrdWd) solid var(--ecLineBrdCol, transparent)}.expressive-code .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}.expressive-code .ec-line.mark{--tmLineBgCol:var(--ec-tm-markBg)}.expressive-code .ec-line.mark .code{--ecLineBrdCol:var(--ec-tm-markBrdCol)}.expressive-code .ec-line.ins{--tmLineBgCol:var(--ec-tm-insBg);--tmLabel:var(--ec-tm-insDiffIndContent)}.expressive-code .ec-line.ins .code{--ecLineBrdCol:var(--ec-tm-insBrdCol)}.expressive-code .ec-line.ins .code::before{color:var(--ec-tm-insDiffIndCol)}.expressive-code .ec-line.del{--tmLineBgCol:var(--ec-tm-delBg);--tmLabel:var(--ec-tm-delDiffIndContent)}.expressive-code .ec-line.del .code{--ecLineBrdCol:var(--ec-tm-delBrdCol)}.expressive-code .ec-line.del .code::before{color:var(--ec-tm-delDiffIndCol)}.expressive-code .ec-line.mark,.expressive-code .ec-line.ins,.expressive-code .ec-line.del{background:var(--tmLineBgCol)}.expressive-code .ec-line.mark .code,.expressive-code .ec-line.ins .code,.expressive-code .ec-line.del .code{--ecGtrBrdWd:var(--ec-tm-lineMarkerAccentWd)}.expressive-code .ec-line.mark .code::before,.expressive-code .ec-line.ins .code::before,.expressive-code .ec-line.del .code::before{display:block;position:absolute;left:0;box-sizing:border-box;content:var(--tmLabel, &apos; &apos;);padding-inline-start:var(--ec-tm-lineDiffIndMargLeft);text-align:center;white-space:pre}.expressive-code .ec-line.mark.tm-label .code::before,.expressive-code .ec-line.ins.tm-label .code::before,.expressive-code .ec-line.del.tm-label .code::before{background:var(--ecLineBrdCol);padding:0 calc(var(--ec-tm-lineMarkerLabelPadInl) + var(--ec-tm-lineMarkerAccentWd)) 0 var(--ec-tm-lineMarkerLabelPadInl);color:var(--ec-tm-lineMarkerLabelCol)}.expressive-code .ec-line mark{--tmInlineBgCol:var(--ec-tm-markBg);--tmInlineBrdCol:var(--ec-tm-markBrdCol)}.expressive-code .ec-line ins{--tmInlineBgCol:var(--ec-tm-insBg);--tmInlineBrdCol:var(--ec-tm-insBrdCol)}.expressive-code .ec-line del{--tmInlineBgCol:var(--ec-tm-delBg);--tmInlineBrdCol:var(--ec-tm-delBrdCol)}.expressive-code .ec-line mark,.expressive-code .ec-line ins,.expressive-code .ec-line del{all:unset;display:inline-block;position:relative;--tmBrdL:var(--ec-tm-inlMarkerBrdWd);--tmBrdR:var(--ec-tm-inlMarkerBrdWd);--tmRadL:var(--ec-tm-inlMarkerBrdRad);--tmRadR:var(--ec-tm-inlMarkerBrdRad);margin-inline:0.025rem;padding-inline:var(--ec-tm-inlMarkerPad);border-radius:var(--tmRadL) var(--tmRadR) var(--tmRadR) var(--tmRadL);background:var(--tmInlineBgCol);background-clip:padding-box}.expressive-code .ec-line mark.open-start,.expressive-code .ec-line ins.open-start,.expressive-code .ec-line del.open-start{margin-inline-start:0;padding-inline-start:0;--tmBrdL:0px;--tmRadL:0}.expressive-code .ec-line mark.open-end,.expressive-code .ec-line ins.open-end,.expressive-code .ec-line del.open-end{margin-inline-end:0;padding-inline-end:0;--tmBrdR:0px;--tmRadR:0}.expressive-code .ec-line mark::before,.expressive-code .ec-line ins::before,.expressive-code .ec-line del::before{content:&apos;&apos;;position:absolute;pointer-events:none;display:inline-block;inset:0;border-radius:var(--tmRadL) var(--tmRadR) var(--tmRadR) var(--tmRadL);border:var(--ec-tm-inlMarkerBrdWd) solid var(--tmInlineBrdCol);border-inline-width:var(--tmBrdL) var(--tmBrdR)}.expressive-code .frame{all:unset;position:relative;display:block;--header-border-radius:calc(var(--ec-brdRad) + var(--ec-brdWd));--tab-border-radius:calc(var(--ec-frm-edTabBrdRad) + var(--ec-brdWd));--button-spacing:0.4rem;--code-background:var(--ec-frm-edBg);border-radius:var(--header-border-radius);box-shadow:var(--ec-frm-frameBoxShdCssVal)}.expressive-code .frame .header{display:none;z-index:1;position:relative;border-radius:var(--header-border-radius) var(--header-border-radius) 0 0}.expressive-code .frame.has-title pre,.expressive-code .frame.has-title code,.expressive-code .frame.is-terminal pre,.expressive-code .frame.is-terminal code{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.expressive-code .frame .title:empty:before{content:&apos;\a0&apos;}.expressive-code .frame.has-title:not(.is-terminal){--button-spacing:calc(1.9rem + 2 * (var(--ec-uiPadBlk) + var(--ec-frm-edActTabIndHt)))}.expressive-code .frame.has-title:not(.is-terminal) .title{position:relative;color:var(--ec-frm-edActTabFg);background:var(--ec-frm-edActTabBg);background-clip:padding-box;margin-block-start:var(--ec-frm-edTabsMargBlkStart);padding:calc(var(--ec-uiPadBlk) + var(--ec-frm-edActTabIndHt)) var(--ec-uiPadInl);border:var(--ec-brdWd) solid var(--ec-frm-edActTabBrdCol);border-radius:var(--tab-border-radius) var(--tab-border-radius) 0 0;border-bottom:none;overflow:hidden}.expressive-code .frame.has-title:not(.is-terminal) .title::after{content:&apos;&apos;;position:absolute;pointer-events:none;inset:0;border-top:var(--ec-frm-edActTabIndHt) solid var(--ec-frm-edActTabIndTopCol);border-bottom:var(--ec-frm-edActTabIndHt) solid var(--ec-frm-edActTabIndBtmCol)}.expressive-code .frame.has-title:not(.is-terminal) .header{display:flex;background:linear-gradient(to top, var(--ec-frm-edTabBarBrdBtmCol) var(--ec-brdWd), transparent var(--ec-brdWd)),linear-gradient(var(--ec-frm-edTabBarBg), var(--ec-frm-edTabBarBg));background-repeat:no-repeat;padding-inline-start:var(--ec-frm-edTabsMargInlStart)}.expressive-code .frame.has-title:not(.is-terminal) .header::before{content:&apos;&apos;;position:absolute;pointer-events:none;inset:0;border:var(--ec-brdWd) solid var(--ec-frm-edTabBarBrdCol);border-radius:inherit;border-bottom:none}.expressive-code .frame.is-terminal{--button-spacing:calc(1.9rem + var(--ec-brdWd) + 2 * var(--ec-uiPadBlk));--code-background:var(--ec-frm-trmBg)}.expressive-code .frame.is-terminal .header{display:flex;align-items:center;justify-content:center;padding-block:var(--ec-uiPadBlk);padding-block-end:calc(var(--ec-uiPadBlk) + var(--ec-brdWd));position:relative;font-weight:500;letter-spacing:0.025ch;color:var(--ec-frm-trmTtbFg);background:var(--ec-frm-trmTtbBg);border:var(--ec-brdWd) solid var(--ec-brdCol);border-bottom:none}.expressive-code .frame.is-terminal .header::before{content:&apos;&apos;;position:absolute;pointer-events:none;left:var(--ec-uiPadInl);width:2.1rem;height:0.56rem;line-height:0;background-color:var(--ec-frm-trmTtbDotsFg);opacity:var(--ec-frm-trmTtbDotsOpa);-webkit-mask-image:var(--ec-frm-trmIcon);-webkit-mask-repeat:no-repeat;mask-image:var(--ec-frm-trmIcon);mask-repeat:no-repeat}.expressive-code .frame.is-terminal .header::after{content:&apos;&apos;;position:absolute;pointer-events:none;inset:0;border-bottom:var(--ec-brdWd) solid var(--ec-frm-trmTtbBrdBtmCol)}.expressive-code .frame pre{background:var(--code-background)}.expressive-code .copy{display:flex;gap:0.25rem;flex-direction:row;position:absolute;inset-block-start:calc(var(--ec-brdWd) + var(--button-spacing));inset-inline-end:calc(var(--ec-brdWd) + var(--ec-uiPadInl) / 2)}@media (scripting: none){.expressive-code .copy{display:none}}.expressive-code .copy{direction:ltr;unicode-bidi:isolate}.expressive-code .copy button{position:relative;align-self:flex-end;margin:0;padding:0;border:none;border-radius:0.2rem;z-index:1;cursor:pointer;transition-property:opacity, background, border-color;transition-duration:0.2s;transition-timing-function:cubic-bezier(0.25, 0.46, 0.45, 0.94);width:2.5rem;height:2.5rem;background:var(--code-background);opacity:0.75}.expressive-code .copy button div{position:absolute;inset:0;border-radius:inherit;background:var(--ec-frm-inlBtnBg);opacity:var(--ec-frm-inlBtnBgIdleOpa);transition-property:inherit;transition-duration:inherit;transition-timing-function:inherit}.expressive-code .copy button::before{content:&apos;&apos;;position:absolute;pointer-events:none;inset:0;border-radius:inherit;border:var(--ec-brdWd) solid var(--ec-frm-inlBtnBrd);opacity:var(--ec-frm-inlBtnBrdOpa)}.expressive-code .copy button::after{content:&apos;&apos;;position:absolute;pointer-events:none;inset:0;background-color:var(--ec-frm-inlBtnFg);-webkit-mask-image:var(--ec-frm-copyIcon);-webkit-mask-repeat:no-repeat;mask-image:var(--ec-frm-copyIcon);mask-repeat:no-repeat;margin:0.475rem;line-height:0}.expressive-code .copy button:hover,.expressive-code .copy button:focus:focus-visible{opacity:1}.expressive-code .copy button:hover div,.expressive-code .copy button:focus:focus-visible div{opacity:var(--ec-frm-inlBtnBgHoverOrFocusOpa)}.expressive-code .copy button:active{opacity:1}.expressive-code .copy button:active div{opacity:var(--ec-frm-inlBtnBgActOpa)}.expressive-code .copy .feedback{--tooltip-arrow-size:0.35rem;--tooltip-bg:var(--ec-frm-tooltipSuccessBg);color:var(--ec-frm-tooltipSuccessFg);pointer-events:none;user-select:none;-webkit-user-select:none;position:relative;align-self:center;background-color:var(--tooltip-bg);z-index:99;padding:0.125rem 0.75rem;border-radius:0.2rem;margin-inline-end:var(--tooltip-arrow-size);opacity:0;transition-property:opacity, transform;transition-duration:0.2s;transition-timing-function:ease-in-out;transform:translate3d(0, 0.25rem, 0)}.expressive-code .copy .feedback::after{content:&apos;&apos;;position:absolute;pointer-events:none;top:calc(50% - var(--tooltip-arrow-size));inset-inline-end:calc(-2 * (var(--tooltip-arrow-size) - 0.5px));border:var(--tooltip-arrow-size) solid transparent;border-inline-start-color:var(--tooltip-bg)}.expressive-code .copy .feedback.show{opacity:1;transform:translate3d(0, 0, 0)}@media (hover: hover){.expressive-code{}.expressive-code .copy button{opacity:0;width:2rem;height:2rem}.expressive-code .frame:hover .copy button:not(:hover),.expressive-code .frame:focus-within :focus-visible ~ .copy button:not(:hover),.expressive-code .frame .copy .feedback.show ~ button:not(:hover){opacity:0.75}}.expressive-code :nth-child(1 of .ec-line) .code{padding-inline-end:calc(2rem + var(--ec-codePadInl))}.expressive-code .gutter .ln{display:inline-flex;justify-content:flex-end;align-items:flex-start;box-sizing:content-box;min-width:var(--lnWidth, 2ch);padding-inline:2ch;color:var(--ec-lineNumbers-fg)}.highlight .expressive-code .gutter .ln{color:var(--ec-lineNumbers-hlFg)}.expressive-code .ec-section{position:relative}.expressive-code .ec-section summary{position:relative;font-family:var(--ec-cs-closedFontFml);font-size:var(--ec-cs-closedFontSize);line-height:var(--ec-cs-closedLineHt);user-select:none;-webkit-user-select:none;cursor:pointer;color:var(--ec-cs-closedTextCol);background-color:var(--ec-cs-closedBgCol);--border-color:var(--ec-cs-closedBrdCol);--border-width:var(--ec-cs-closedBrdWd);box-shadow:inset 0 calc(-1 * var(--border-width)) var(--border-color), inset 0 var(--border-width) var(--border-color);margin:var(--ec-cs-closedMarg);padding:0}.expressive-code .ec-section summary::marker{display:inline-block;content:&quot;&quot;;width:16px;height:16px}.expressive-code .ec-section summary::-webkit-details-marker{display:none}.expressive-code .ec-section summary :is(.expand, .collapse){position:relative;display:inline-block;width:16px;height:16px;vertical-align:text-bottom;opacity:0.75}.expressive-code .ec-section summary :is(.expand, .collapse)::after{content:&apos;&apos;;position:absolute;pointer-events:none;inset:0;background-color:var(--ec-cs-closedTextCol);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;line-height:0}.expressive-code .ec-section summary .expand::after{-webkit-mask-image:var(--ec-cs-expandIcon);mask-image:var(--ec-cs-expandIcon);-webkit-print-color-adjust:exact;print-color-adjust:exact}.expressive-code .ec-section summary .collapse{display:none}.expressive-code .ec-section summary .collapse::after{-webkit-mask-image:var(--ec-cs-collapseIcon);mask-image:var(--ec-cs-collapseIcon)}.expressive-code .ec-section summary .text{margin-left:1em}.expressive-code .ec-section summary .ec-line .code{padding-block:var(--ec-cs-closedPadBlk);text-indent:0}.expressive-code .ec-section[open],.expressive-code .ec-section details[open] + .content-lines{--border-color:var(--ec-cs-openBrdCol);--border-width:var(--ec-cs-openBrdWd);box-shadow:inset 0 calc(-1 * var(--border-width)) var(--border-color), inset 0 var(--border-width) var(--border-color);padding-inline:var(--ec-cs-openPad);margin-inline:var(--ec-cs-openMarg)}.expressive-code .ec-section.github[open] summary{display:none}.expressive-code .ec-section.github[open]{background-color:var(--ec-cs-openBgCol)}.expressive-code .ec-section:is(.collapsible-start, .collapsible-end){display:flex;flex-direction:column}.expressive-code .ec-section:is(.collapsible-start, .collapsible-end) .content-lines{display:none}.expressive-code .ec-section:is(.collapsible-start, .collapsible-end) details[open] .collapse{display:inline-block}.expressive-code .ec-section:is(.collapsible-start, .collapsible-end) details[open] :is(.expand, .text){display:none}.expressive-code .ec-section:is(.collapsible-start, .collapsible-end) details[open] + .content-lines{display:block;background-color:var(--ec-cs-openBgColCollapsible)}@media print{.expressive-code .ec-section:is(.collapsible-start, .collapsible-end) details[open]{display:none}}.expressive-code .ec-section.collapsible-end{flex-direction:column-reverse}:root,:root:not([data-theme=&quot;dark&quot;]) .expressive-code[data-theme=&quot;dark&quot;]{--ec-brdRad:0.3rem;--ec-brdWd:1.5px;--ec-brdCol:#1b1f23;--ec-codeFontFml:jetbrains-mono;--ec-codeFontSize:0.85rem;--ec-codeFontWg:400;--ec-codeLineHt:1.65;--ec-codePadBlk:1rem;--ec-codePadInl:1.35rem;--ec-codeBg:#24292e;--ec-codeFg:#e1e4e8;--ec-codeSelBg:#3392ff44;--ec-gtrFg:#727980;--ec-gtrBrdCol:#72798033;--ec-gtrBrdWd:1.5px;--ec-gtrHlFg:#e1e4e896;--ec-uiFontFml:jetbrains-mono;--ec-uiFontSize:0.9rem;--ec-uiFontWg:400;--ec-uiLineHt:1.65;--ec-uiPadBlk:0.25rem;--ec-uiPadInl:1rem;--ec-uiSelBg:#39414a;--ec-uiSelFg:#e1e4e8;--ec-focusBrd:#005cc5;--ec-sbThumbCol:#6a737d33;--ec-sbThumbHoverCol:#6a737dd1;--ec-tm-lineMarkerAccentMarg:0rem;--ec-tm-lineMarkerAccentWd:0.15rem;--ec-tm-lineMarkerLabelPadInl:0.2rem;--ec-tm-lineMarkerLabelCol:white;--ec-tm-lineDiffIndMargLeft:0.3rem;--ec-tm-inlMarkerBrdWd:1.5px;--ec-tm-inlMarkerBrdRad:0.2rem;--ec-tm-inlMarkerPad:0.15rem;--ec-tm-insDiffIndContent:&apos;+&apos;;--ec-tm-delDiffIndContent:&apos;-&apos;;--ec-tm-markBg:#264a8980;--ec-tm-markBrdCol:#5570b3d0;--ec-tm-insBg:#26561c80;--ec-tm-insBrdCol:#4e7e41d0;--ec-tm-insDiffIndCol:#7eb070d0;--ec-tm-delBg:#81322b80;--ec-tm-delBrdCol:#ae594fd0;--ec-tm-delDiffIndCol:#e68a7ed0;--ec-frm-shdCol:#0000005b;--ec-frm-frameBoxShdCssVal:0.1rem 0.1rem 0.2rem #0000005b;--ec-frm-edActTabBg:#24292e;--ec-frm-edActTabFg:#e1e4e8;--ec-frm-edActTabBrdCol:transparent;--ec-frm-edActTabIndHt:1.5px;--ec-frm-edActTabIndTopCol:#f9826c;--ec-frm-edActTabIndBtmCol:#24292e;--ec-frm-edTabsMargInlStart:0;--ec-frm-edTabsMargBlkStart:0;--ec-frm-edTabBrdRad:0.3rem;--ec-frm-edTabBarBg:#1f2428;--ec-frm-edTabBarBrdCol:#1b1f23;--ec-frm-edTabBarBrdBtmCol:#1b1f23;--ec-frm-edBg:#24292e;--ec-frm-trmTtbFg:#e1e4e8;--ec-frm-trmTtbDotsFg:#e1e4e8;--ec-frm-trmTtbDotsOpa:0.15;--ec-frm-trmTtbBg:#24292e;--ec-frm-trmTtbBrdBtmCol:#1b1f23;--ec-frm-trmBg:#1f2428;--ec-frm-inlBtnFg:#e1e4e8;--ec-frm-inlBtnBg:#e1e4e8;--ec-frm-inlBtnBgIdleOpa:0;--ec-frm-inlBtnBgHoverOrFocusOpa:0.2;--ec-frm-inlBtnBgActOpa:0.3;--ec-frm-inlBtnBrd:#e1e4e8;--ec-frm-inlBtnBrdOpa:0.4;--ec-frm-tooltipSuccessBg:#228739;--ec-frm-tooltipSuccessFg:white;--ec-frm-copyIcon:url(&quot;data:image/svg+xml,%3Csvg%20xmlns%3D&apos;http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg&apos;%20viewBox%3D&apos;0%200%2024%2024&apos;%20fill%3D&apos;none&apos;%20stroke%3D&apos;black&apos;%20stroke-width%3D&apos;1.75&apos;%3E%3Cpath%20d%3D&apos;M3%2019a2%202%200%200%201-1-2V2a2%202%200%200%201%201-1h13a2%202%200%200%201%202%201&apos;%2F%3E%3Crect%20x%3D&apos;6&apos;%20y%3D&apos;5&apos;%20width%3D&apos;16&apos;%20height%3D&apos;18&apos;%20rx%3D&apos;1.5&apos;%20ry%3D&apos;1.5&apos;%2F%3E%3C%2Fsvg%3E&quot;);--ec-frm-trmIcon:url(&quot;data:image/svg+xml,%3Csvg%20xmlns%3D&apos;http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg&apos;%20viewBox%3D&apos;0%200%2060%2016&apos;%20preserveAspectRatio%3D&apos;xMidYMid%20meet&apos;%3E%3Ccircle%20cx%3D&apos;8&apos;%20cy%3D&apos;8&apos;%20r%3D&apos;8&apos;%2F%3E%3Ccircle%20cx%3D&apos;30&apos;%20cy%3D&apos;8&apos;%20r%3D&apos;8&apos;%2F%3E%3Ccircle%20cx%3D&apos;52&apos;%20cy%3D&apos;8&apos;%20r%3D&apos;8&apos;%2F%3E%3C%2Fsvg%3E&quot;);--ec-lineNumbers-fg:inherit;--ec-lineNumbers-hlFg:inherit;--ec-cs-closedBrdWd:0px;--ec-cs-closedPadBlk:4px;--ec-cs-closedMarg:0;--ec-cs-closedFontFml:inherit;--ec-cs-closedFontSize:inherit;--ec-cs-closedLineHt:inherit;--ec-cs-closedTextCol:#e1e4e8;--ec-cs-closedBgCol:#58606933;--ec-cs-closedBrdCol:#58606980;--ec-cs-openBrdWd:1px;--ec-cs-openPad:0;--ec-cs-openMarg:0;--ec-cs-openBgCol:transparent;--ec-cs-openBgColCollapsible:#5860691a;--ec-cs-openBrdCol:transparent;--ec-cs-expandIcon:url(&quot;data:image/svg+xml,%3Csvg%20xmlns%3D&apos;http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg&apos;%20viewBox%3D&apos;0%200%2016%2016&apos;%3E%3Cpath%20d%3D&apos;m8.177.677%202.896%202.896a.25.25%200%200%201-.177.427H8.75v1.25a.75.75%200%200%201-1.5%200V4H5.104a.25.25%200%200%201-.177-.427L7.823.677a.25.25%200%200%201%20.354%200ZM7.25%2010.75a.75.75%200%200%201%201.5%200V12h2.146a.25.25%200%200%201%20.177.427l-2.896%202.896a.25.25%200%200%201-.354%200l-2.896-2.896A.25.25%200%200%201%205.104%2012H7.25v-1.25Zm-5-2a.75.75%200%200%200%200-1.5h-.5a.75.75%200%200%200%200%201.5h.5ZM6%208a.75.75%200%200%201-.75.75h-.5a.75.75%200%200%201%200-1.5h.5A.75.75%200%200%201%206%208Zm2.25.75a.75.75%200%200%200%200-1.5h-.5a.75.75%200%200%200%200%201.5h.5ZM12%208a.75.75%200%200%201-.75.75h-.5a.75.75%200%200%201%200-1.5h.5A.75.75%200%200%201%2012%208Zm2.25.75a.75.75%200%200%200%200-1.5h-.5a.75.75%200%200%200%200%201.5h.5Z&apos;%2F%3E%3C%2Fsvg%3E&quot;);--ec-cs-collapseIcon:url(&quot;data:image/svg+xml,%3Csvg%20xmlns%3D&apos;http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg&apos;%20viewBox%3D&apos;0%200%2016%2016&apos;%3E%3Cpath%20d%3D&apos;M10.896%202H8.75V.75a.75.75%200%200%200-1.5%200V2H5.104a.25.25%200%200%200-.177.427l2.896%202.896a.25.25%200%200%200%20.354%200l2.896-2.896A.25.25%200%200%200%2010.896%202ZM8.75%2015.25a.75.75%200%200%201-1.5%200V14H5.104a.25.25%200%200%201-.177-.427l2.896-2.896a.25.25%200%200%201%20.354%200l2.896%202.896a.25.25%200%200%201-.177.427H8.75v1.25Zm-6.5-6.5a.75.75%200%200%200%200-1.5h-.5a.75.75%200%200%200%200%201.5h.5ZM6%208a.75.75%200%200%201-.75.75h-.5a.75.75%200%200%201%200-1.5h.5A.75.75%200%200%201%206%208Zm2.25.75a.75.75%200%200%200%200-1.5h-.5a.75.75%200%200%200%200%201.5h.5ZM12%208a.75.75%200%200%201-.75.75h-.5a.75.75%200%200%201%200-1.5h.5A.75.75%200%200%201%2012%208Zm2.25.75a.75.75%200%200%200%200-1.5h-.5a.75.75%200%200%200%200%201.5h.5Z&apos;%2F%3E%3C%2Fsvg%3E&quot;)}.expressive-code .ec-line :where(span[style^=&apos;--&apos;]:not([class])),:root:not([data-theme=&quot;dark&quot;]) .expressive-code[data-theme=&quot;dark&quot;] .ec-line :where(span[style^=&apos;--&apos;]:not([class])){color:var(--0, inherit);background-color:var(--0bg, transparent);font-style:var(--0fs, inherit);font-weight:var(--0fw, inherit);text-decoration:var(--0td, inherit)}@media (prefers-color-scheme: light){:root:not([data-theme=&quot;dark&quot;]){--ec-brdCol:#e1e4e8;--ec-codeBg:#fff;--ec-codeFg:#24292e;--ec-codeSelBg:#0366d625;--ec-gtrFg:#1b1f2381;--ec-gtrBrdCol:#1b1f2333;--ec-gtrHlFg:#24292eab;--ec-uiSelBg:#e2e5e9;--ec-uiSelFg:#2f363d;--ec-focusBrd:#2188ff;--ec-sbThumbCol:#959da533;--ec-sbThumbHoverCol:#959da5eb;--ec-tm-markBg:#9fb6ff80;--ec-tm-insBg:#94c68480;--ec-tm-insDiffIndCol:#3a692fd0;--ec-tm-delBg:#fea09280;--ec-tm-delDiffIndCol:#97453dd0;--ec-frm-shdCol:#00000028;--ec-frm-frameBoxShdCssVal:0.1rem 0.1rem 0.2rem #00000028;--ec-frm-edActTabBg:#fff;--ec-frm-edActTabFg:#2f363d;--ec-frm-edActTabIndBtmCol:#fff;--ec-frm-edTabBarBg:#f6f8fa;--ec-frm-edTabBarBrdCol:#e1e4e8;--ec-frm-edTabBarBrdBtmCol:#e1e4e8;--ec-frm-edBg:#fff;--ec-frm-trmTtbFg:#2f363d;--ec-frm-trmTtbDotsFg:#2f363d;--ec-frm-trmTtbBg:#fff;--ec-frm-trmTtbBrdBtmCol:#e1e4e8;--ec-frm-trmBg:#f6f8fa;--ec-frm-inlBtnFg:#24292e;--ec-frm-inlBtnBg:#24292e;--ec-frm-inlBtnBrd:#24292e;--ec-frm-tooltipSuccessBg:#208638;--ec-cs-closedTextCol:#24292e;--ec-cs-closedBgCol:#d1d5da33;--ec-cs-closedBrdCol:#d1d5da80;--ec-cs-openBgColCollapsible:#d1d5da1a}:root:not([data-theme=&quot;dark&quot;]) .expressive-code .ec-line :where(span[style^=&apos;--&apos;]:not([class])){color:var(--1, inherit);background-color:var(--1bg, transparent);font-style:var(--1fs, inherit);font-weight:var(--1fw, inherit);text-decoration:var(--1td, inherit)}}:root[data-theme=&quot;light&quot;] .expressive-code:not([data-theme=&quot;dark&quot;]),.expressive-code[data-theme=&quot;light&quot;]{--ec-brdCol:#e1e4e8;--ec-codeBg:#fff;--ec-codeFg:#24292e;--ec-codeSelBg:#0366d625;--ec-gtrFg:#1b1f2381;--ec-gtrBrdCol:#1b1f2333;--ec-gtrHlFg:#24292eab;--ec-uiSelBg:#e2e5e9;--ec-uiSelFg:#2f363d;--ec-focusBrd:#2188ff;--ec-sbThumbCol:#959da533;--ec-sbThumbHoverCol:#959da5eb;--ec-tm-markBg:#9fb6ff80;--ec-tm-insBg:#94c68480;--ec-tm-insDiffIndCol:#3a692fd0;--ec-tm-delBg:#fea09280;--ec-tm-delDiffIndCol:#97453dd0;--ec-frm-shdCol:#00000028;--ec-frm-frameBoxShdCssVal:0.1rem 0.1rem 0.2rem #00000028;--ec-frm-edActTabBg:#fff;--ec-frm-edActTabFg:#2f363d;--ec-frm-edActTabIndBtmCol:#fff;--ec-frm-edTabBarBg:#f6f8fa;--ec-frm-edTabBarBrdCol:#e1e4e8;--ec-frm-edTabBarBrdBtmCol:#e1e4e8;--ec-frm-edBg:#fff;--ec-frm-trmTtbFg:#2f363d;--ec-frm-trmTtbDotsFg:#2f363d;--ec-frm-trmTtbBg:#fff;--ec-frm-trmTtbBrdBtmCol:#e1e4e8;--ec-frm-trmBg:#f6f8fa;--ec-frm-inlBtnFg:#24292e;--ec-frm-inlBtnBg:#24292e;--ec-frm-inlBtnBrd:#24292e;--ec-frm-tooltipSuccessBg:#208638;--ec-cs-closedTextCol:#24292e;--ec-cs-closedBgCol:#d1d5da33;--ec-cs-closedBrdCol:#d1d5da80;--ec-cs-openBgColCollapsible:#d1d5da1a}:root[data-theme=&quot;light&quot;] .expressive-code:not([data-theme=&quot;dark&quot;]) .ec-line :where(span[style^=&apos;--&apos;]:not([class])),.expressive-code[data-theme=&quot;light&quot;] .ec-line :where(span[style^=&apos;--&apos;]:not([class])){color:var(--1, inherit);background-color:var(--1bg, transparent);font-style:var(--1fs, inherit);font-weight:var(--1fw, inherit);text-decoration:var(--1td, inherit)}&lt;/style&gt;&lt;script type=&quot;module&quot;&gt;try{(()=&gt;{function a(e){if(!e)return;let t=e.getAttribute(&quot;tabindex&quot;)!==null,r=e.scrollWidth&gt;e.clientWidth;r&amp;&amp;!t?(e.setAttribute(&quot;tabindex&quot;,&quot;0&quot;),e.setAttribute(&quot;role&quot;,&quot;region&quot;)):!r&amp;&amp;t&amp;&amp;(e.removeAttribute(&quot;tabindex&quot;),e.removeAttribute(&quot;role&quot;))}var u=window.requestIdleCallback||(e=&gt;setTimeout(e,1)),s=window.cancelIdleCallback||clearTimeout;function l(e){let t=new Set,r,n;return new ResizeObserver(c=&gt;{c.forEach(o=&gt;t.add(o.target)),r&amp;&amp;clearTimeout(r),n&amp;&amp;s(n),r=setTimeout(()=&gt;{n&amp;&amp;s(n),n=u(()=&gt;{t.forEach(o=&gt;e(o)),t.clear()})},250)})}function i(e,t){e.querySelectorAll?.(&quot;.expressive-code pre &gt; code&quot;).forEach(r=&gt;{let n=r.parentElement;n&amp;&amp;t.observe(n)})}var d=l(a);i(document,d);var b=new MutationObserver(e=&gt;e.forEach(t=&gt;t.addedNodes.forEach(r=&gt;{i(r,d)})));b.observe(document.body,{childList:!0,subtree:!0});document.addEventListener(&quot;astro:page-load&quot;,()=&gt;{i(document,d)});})();}catch(e){console.error(&quot;[EC] tabindex-js-module failed:&quot;,e)}&lt;/script&gt;&lt;script type=&quot;module&quot;&gt;try{(()=&gt;{function l(o){let e=document.createElement(&quot;pre&quot;);Object.assign(e.style,{opacity:&quot;0&quot;,pointerEvents:&quot;none&quot;,position:&quot;absolute&quot;,overflow:&quot;hidden&quot;,left:&quot;0&quot;,top:&quot;0&quot;,width:&quot;20px&quot;,height:&quot;20px&quot;,webkitUserSelect:&quot;auto&quot;,userSelect:&quot;all&quot;}),e.ariaHidden=&quot;true&quot;,e.textContent=o,document.body.appendChild(e);let a=document.createRange();a.selectNode(e);let n=getSelection();if(!n)return!1;n.removeAllRanges(),n.addRange(a);let r=!1;try{r=document.execCommand(&quot;copy&quot;)}finally{n.removeAllRanges(),document.body.removeChild(e)}return r}async function u(o){let e=o.currentTarget,a=e.dataset,n=!1,r=a.code.replace(/\u007f/g,`
`);try{await navigator.clipboard.writeText(r),n=!0}catch{n=l(r)}if(!n||e.parentNode?.querySelector(&quot;.feedback&quot;))return;let c=e.parentNode?.querySelector(&quot;[aria-live]&quot;),t=document.createElement(&quot;div&quot;);t.classList.add(&quot;feedback&quot;),t.append(a.copied),c.append(t),t.offsetWidth,requestAnimationFrame(()=&gt;t?.classList.add(&quot;show&quot;));let s=()=&gt;!t||t.classList.remove(&quot;show&quot;),d=()=&gt;{!t||parseFloat(getComputedStyle(t).opacity)&gt;0||(t.remove(),t=void 0)};setTimeout(s,1500),setTimeout(d,2500),e.addEventListener(&quot;blur&quot;,s),t.addEventListener(&quot;transitioncancel&quot;,d),t.addEventListener(&quot;transitionend&quot;,d)}function i(o){o.querySelectorAll?.(&quot;.expressive-code .copy button&quot;).forEach(e=&gt;e.addEventListener(&quot;click&quot;,u))}i(document);var m=new MutationObserver(o=&gt;o.forEach(e=&gt;e.addedNodes.forEach(a=&gt;{i(a)})));m.observe(document.body,{childList:!0,subtree:!0});document.addEventListener(&quot;astro:page-load&quot;,()=&gt;{i(document)});})();}catch(e){console.error(&quot;[EC] copy-js-module failed:&quot;,e)}&lt;/script&gt;&lt;figure class=&quot;frame&quot;&gt;&lt;figcaption class=&quot;header&quot;&gt;&lt;/figcaption&gt;&lt;pre data-language=&quot;plaintext&quot;&gt;&lt;code&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;1&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span style=&quot;--0:#e1e4e8;--1:#24292e&quot;&gt;curl -v &quot;https://yourdomain.com/endpoint?&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div class=&quot;copy&quot;&gt;&lt;div aria-live=&quot;polite&quot;&gt;&lt;/div&gt;&lt;button title=&quot;Copy to clipboard&quot; data-copied=&quot;Copied!&quot; data-code=&quot;curl -v &amp;#x22;https://yourdomain.com/endpoint?&amp;#x22;&quot;&gt;&lt;div&gt;&lt;/div&gt;&lt;/button&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;Wenn das JSON korrekt angezeigt wird, liegt das Problem höchstwahrscheinlich am Browser.&lt;/p&gt;
&lt;p&gt;Wenn es unleserlich angezeigt wird, stellen Sie sicher, dass der charset in der Flask-App auf UTF-8 gesetzt ist. Denn das bedeutet, dass nicht die Übertragung das Problem verursacht, sondern dass es grundsätzlich innerhalb von Flask nicht richtig verarbeitet wurde, und es könnte ein Problem mit dem Objekttyp bzw. der Kodierung sein.&lt;/p&gt;
&lt;h4 id=&quot;dev-tool-im-browser&quot;&gt;Dev-Tool im Browser&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;Gehen Sie zum Tab „Netzwerk“ und laden Sie Ihre Endpunkt-Seite neu&lt;/li&gt;
&lt;li&gt;Prüfen Sie, ob der Content-Type ‘application/json; charset=UTF-8’ ist&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id=&quot;lösungen&quot;&gt;Lösungen&lt;/h2&gt;
&lt;h3 id=&quot;content-type&quot;&gt;Content-Type&lt;/h3&gt;
&lt;p&gt;Wenn entweder application/json oder charset=UTF-8 fehlt, fügen Sie den folgenden response.header in Ihrer Flask-API-App für Ihren Endpunkt hinzu:&lt;/p&gt;
&lt;div class=&quot;expressive-code&quot;&gt;&lt;figure class=&quot;frame&quot;&gt;&lt;figcaption class=&quot;header&quot;&gt;&lt;/figcaption&gt;&lt;pre data-language=&quot;plaintext&quot;&gt;&lt;code&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;1&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span style=&quot;--0:#e1e4e8;--1:#24292e&quot;&gt;response.headers[&apos;Content-Type&apos;] = &apos;application/json; charset=UTF-8&apos;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div class=&quot;copy&quot;&gt;&lt;div aria-live=&quot;polite&quot;&gt;&lt;/div&gt;&lt;button title=&quot;Copy to clipboard&quot; data-copied=&quot;Copied!&quot; data-code=&quot;response.headers[&amp;#x27;Content-Type&amp;#x27;] = &amp;#x27;application/json; charset=UTF-8&amp;#x27;&quot;&gt;&lt;div&gt;&lt;/div&gt;&lt;/button&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;Starten Sie nun die App neu und versuchen Sie es erneut, um zu sehen, ob es funktioniert. Wenn nicht, fahren Sie mit dem nächsten Schritt fort.&lt;/p&gt;
&lt;h3 id=&quot;content-encoding&quot;&gt;Content-Encoding&lt;/h3&gt;
&lt;p&gt;Nun haben Sie sichergestellt, dass Content-Type nicht das Problem ist, da es korrekt als application/json; charset=UTF-8 angezeigt wird. Fahren wir mit der zweiten Ursache fort – dem Kodierungsfehler.&lt;/p&gt;
&lt;p&gt;Standardmäßig komprimiert eine Flask-API den Inhalt automatisch, wenn sie eine Antwort an den Browser sendet. Und dann versucht der Browser, ihn zu dekodieren. Aus irgendeinem Grund kann er ihn jedoch nicht richtig dekodieren.&lt;/p&gt;
&lt;p&gt;Das perfekte Beispiel wäre, dass cURL -v eine korrekte Antwort erhält, im Browser aber unleserlicher Text erscheint. (Das ist mein Fall.) cURL erhält standardmäßig keine komprimierte/kodierte Antwort, deshalb funktioniert es in cURL, aber nicht im Browser.&lt;/p&gt;
&lt;p&gt;Um das zu beheben, müssen Sie Folgendes in der Antwort Ihrer Flask-API-App hinzufügen:&lt;/p&gt;
&lt;div class=&quot;expressive-code&quot;&gt;&lt;figure class=&quot;frame&quot;&gt;&lt;figcaption class=&quot;header&quot;&gt;&lt;/figcaption&gt;&lt;pre data-language=&quot;plaintext&quot;&gt;&lt;code&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;1&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span style=&quot;--0:#e1e4e8;--1:#24292e&quot;&gt;response.headers[&apos;Content-Encoding&apos;] = &apos;identity&apos;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div class=&quot;copy&quot;&gt;&lt;div aria-live=&quot;polite&quot;&gt;&lt;/div&gt;&lt;button title=&quot;Copy to clipboard&quot; data-copied=&quot;Copied!&quot; data-code=&quot;response.headers[&amp;#x27;Content-Encoding&amp;#x27;] = &amp;#x27;identity&amp;#x27;&quot;&gt;&lt;div&gt;&lt;/div&gt;&lt;/button&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;Dadurch wird die Komprimierung standardmäßig deaktiviert, sodass Ihr Browser das erhält, was cURL erhält.&lt;/p&gt;
&lt;p&gt;Das sollte es beheben.&lt;/p&gt;
&lt;p&gt;Viel Glück.&lt;/p&gt;</content:encoded><media:thumbnail url="https://cms.hongct.com/assets/b9c41563-4083-4d57-9841-dbfdfaeab1e8"/><enclosure url="https://cms.hongct.com/assets/b9c41563-4083-4d57-9841-dbfdfaeab1e8" length="75134" type="image/webp"/></item><item><title>Wie hostet man eine Website auf GitHub? (Leitfaden für Anfänger)</title><link>https://hongcheung.com/de/post/how-to-host-a-website-on-github-beginners-guide/</link><guid isPermaLink="true">https://hongcheung.com/de/post/how-to-host-a-website-on-github-beginners-guide/</guid><description>Ein Leitfaden für Anfänger zum kostenlosen Website-Hosting mit GitHub Pages.</description><pubDate>Sat, 15 Mar 2025 12:00:00 GMT</pubDate><content:encoded>&lt;p&gt;&lt;img src=&quot;https://cms.hongct.com/assets/0090d3fd-8466-49d4-89f2-47b351bb3531&quot; alt=&quot;Wie hostet man eine Website auf GitHub? (Leitfaden für Anfänger)&quot; referrerpolicy=&quot;no-referrer&quot; loading=&quot;lazy&quot;/&gt;&lt;/p&gt;&lt;h2 id=&quot;warum-möchtest-du-eine-github-website&quot;&gt;Warum möchtest du eine GitHub-Website?&lt;/h2&gt;
&lt;p&gt;Weil es einfach und kostenlos ist. Bevor du beginnst, wirf einen Blick auf einige Vor- und Nachteile und prüfe, ob es für deine Bedürfnisse geeignet ist.&lt;/p&gt;
&lt;h3 id=&quot;vorteile&quot;&gt;Vorteile&lt;/h3&gt;
&lt;p&gt;Es &lt;strong&gt;kümmert sich um den Domainnamen&lt;/strong&gt; für dich, und du &lt;strong&gt;musst dir keine Gedanken über Kosten für Speicher&lt;/strong&gt; oder &lt;strong&gt;hohen Traffic&lt;/strong&gt; machen. Alles, was du brauchst, ist ein kostenloses GitHub-Konto.&lt;/p&gt;
&lt;h3 id=&quot;nachteile&quot;&gt;Nachteile&lt;/h3&gt;
&lt;p&gt;Du kannst auf GitHub Pages keine dynamische Website hosten, nur eine &lt;strong&gt;statische Website&lt;/strong&gt;. Das bedeutet, &lt;strong&gt;du kannst keinen Server hosten&lt;/strong&gt;, der eingehenden Traffic verarbeitet, etwa mit express.js oder flask; du kannst nur eine &lt;strong&gt;statische&lt;/strong&gt; Website hosten. Allerdings kann es eine &lt;strong&gt;dynamische statische Website&lt;/strong&gt; sein – du kannst darauf weiterhin Skripte ausführen, nur müssen diese Skripte vorab geladen werden.&lt;/p&gt;
&lt;p&gt;Ein weiterer Nachteil ist, dass &lt;strong&gt;dein GitHub-Repo (deine Website-Dateien und -Verzeichnisse) öffentlich sein wird&lt;/strong&gt;, wenn du die GitHub Page mit einem kostenlosen Konto betreibst. Das heißt, jeder kann deine Dateien sehen und besuchen. Also solltest du besser nichts Vertrauliches in deinem Website-Ordner ablegen.&lt;/p&gt;
&lt;p&gt;Trotzdem eignet es sich gut für das Hosting einer einfachen Website, deren Code du teilen möchtest. Etwa deinen persönlichen Lebenslauf, eine einfache Firmenwebsite oder einen einfachen Blog. Oder du möchtest einfach deine eigene dynamische statische Web-App testen.&lt;/p&gt;
&lt;h2 id=&quot;voraussetzungen&quot;&gt;Voraussetzungen&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Ein Computer mit Internet.&lt;/li&gt;
&lt;li&gt;Grundlegende Computerkenntnisse.&lt;/li&gt;
&lt;li&gt;Ein kostenloses GitHub-Konto.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;schritt-für-schritt-anleitung-zum-erstellen-einer-kostenlosen-github-page&quot;&gt;Schritt-für-Schritt-Anleitung zum Erstellen einer kostenlosen GitHub Page&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;Erstelle ein &lt;a rel=&quot;nofollow noopener noreferrer&quot; target=&quot;_blank&quot; href=&quot;https://github.com/signup?source=login&quot;&gt;GitHub-Konto&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;&lt;img loading=&quot;lazy&quot; decoding=&quot;async&quot; referrerpolicy=&quot;no-referrer&quot; src=&quot;https://cms.hongct.com/assets/777ac5fd-ae95-47fb-9ae1-55434745d338&quot; alt=&quot;create a newgithub page&quot;&gt;
Nachdem du dich angemeldet hast, &lt;a rel=&quot;nofollow noopener noreferrer&quot; target=&quot;_blank&quot; href=&quot;https://github.com/new&quot;&gt;erstelle ein neues Repository&lt;/a&gt;. Achte darauf, „Public“ auszuwählen.&lt;/li&gt;
&lt;li&gt;&lt;img loading=&quot;lazy&quot; decoding=&quot;async&quot; referrerpolicy=&quot;no-referrer&quot; src=&quot;https://cms.hongct.com/assets/ac0489fe-2d99-4d66-85e4-47f8e47cd282&quot; alt=&quot;create new file on github&quot;&gt;
Sobald du ein leeres Repo erstellt hast, tippe auf „create new file“.&lt;/li&gt;
&lt;li&gt;Kopiere den &lt;a href=&quot;#sample_code&quot;&gt;Beispielcode&lt;/a&gt; von unten und füge ihn ein, und benenne die Datei index.html, um sie zu erstellen.&lt;/li&gt;
&lt;li&gt;&lt;img loading=&quot;lazy&quot; decoding=&quot;async&quot; referrerpolicy=&quot;no-referrer&quot; src=&quot;https://cms.hongct.com/assets/31f525f3-9927-4b42-8bb5-945e89c4555b&quot; alt=&quot;index.html sample code&quot;&gt;
Es sollte so aussehen. Klicke auf commit changes.&lt;/li&gt;
&lt;li&gt;&lt;img loading=&quot;lazy&quot; decoding=&quot;async&quot; referrerpolicy=&quot;no-referrer&quot; src=&quot;https://cms.hongct.com/assets/2aafd9be-1a0d-4175-b4ad-53defdcf1465&quot; alt=&quot;select main branch for github page&quot;&gt;
Gehe zum Tab Settings &gt; Pages in der Seitenleiste &gt; Branches – wähle main aus und klicke auf save.&lt;/li&gt;
&lt;li&gt;&lt;img loading=&quot;lazy&quot; decoding=&quot;async&quot; referrerpolicy=&quot;no-referrer&quot; src=&quot;https://cms.hongct.com/assets/72fbb2af-cb7a-4b50-869b-fb8bc36173d2&quot; alt=&quot;&quot;&gt;
Gehe nun zurück zu deinem Repo und warte ein paar Minuten.&lt;/li&gt;
&lt;li&gt;&lt;img loading=&quot;lazy&quot; decoding=&quot;async&quot; referrerpolicy=&quot;no-referrer&quot; src=&quot;https://cms.hongct.com/assets/a7ff08d8-d455-4757-b6c5-15e22804cae4&quot; alt=&quot;github page published&quot;&gt;
Aktualisiere die Seite, und du wirst sehen, dass eine GitHub Page erfolgreich veröffentlicht wurde.&lt;/li&gt;
&lt;li&gt;&lt;img loading=&quot;lazy&quot; decoding=&quot;async&quot; referrerpolicy=&quot;no-referrer&quot; src=&quot;https://cms.hongct.com/assets/2ab504d0-7906-46cf-9c71-15e6b0b9978a&quot; alt=&quot;github page is live&quot;&gt;
Gut gemacht! Deine GitHub Page ist jetzt über diesen Link erreichbar!&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Beispielcode:&lt;/p&gt;
&lt;div class=&quot;expressive-code&quot;&gt;&lt;style&gt;.expressive-code{font-family:var(--ec-uiFontFml);font-size:var(--ec-uiFontSize);font-weight:var(--ec-uiFontWg);line-height:var(--ec-uiLineHt);text-size-adjust:none;-webkit-text-size-adjust:none}.expressive-code *:not(:is(svg, svg *)){all:revert;box-sizing:border-box}.expressive-code pre{display:flex;margin:0;padding:0;border:var(--ec-brdWd) solid var(--ec-brdCol);border-radius:calc(var(--ec-brdRad) + var(--ec-brdWd));background:var(--ec-codeBg)}.expressive-code pre:focus-visible{outline:3px solid var(--ec-focusBrd);outline-offset:-3px}.expressive-code pre &gt; code{all:unset;display:block;flex:1 0 100%;padding:var(--ec-codePadBlk) 0;color:var(--ec-codeFg);font-family:var(--ec-codeFontFml);font-size:var(--ec-codeFontSize);font-weight:var(--ec-codeFontWg);line-height:var(--ec-codeLineHt)}.expressive-code pre{overflow-x:auto}.expressive-code pre.wrap .ec-line .code{white-space:pre-wrap;overflow-wrap:break-word;min-width:min(20ch, var(--ecMaxLine, 20ch))}.expressive-code pre.wrap .ec-line .code span.indent{white-space:pre}.expressive-code pre::-webkit-scrollbar,.expressive-code pre::-webkit-scrollbar-track{background-color:inherit;border-radius:calc(var(--ec-brdRad) + var(--ec-brdWd));border-top-left-radius:0;border-top-right-radius:0}.expressive-code pre::-webkit-scrollbar-thumb{background-color:var(--ec-sbThumbCol);border:4px solid transparent;background-clip:content-box;border-radius:10px}.expressive-code pre::-webkit-scrollbar-thumb:hover{background-color:var(--ec-sbThumbHoverCol)}.expressive-code pre::-webkit-scrollbar-corner{background:transparent}.expressive-code .ec-line{direction:ltr;unicode-bidi:isolate;display:grid;grid-template-areas:&apos;gutter code&apos;;grid-template-columns:auto 1fr;position:relative}.expressive-code .ec-line .gutter{grid-area:gutter;color:var(--ec-gtrFg)}.expressive-code .ec-line .gutter &gt; *{pointer-events:none;user-select:none;-webkit-user-select:none}.expressive-code .ec-line .gutter ~ .code{--ecLineBrdCol:var(--ec-gtrBrdCol)}.expressive-code .ec-line.highlight .gutter{color:var(--ec-gtrHlFg)}.expressive-code .ec-line .code{grid-area:code;position:relative;box-sizing:content-box;padding-inline-start:calc(var(--ecIndent, 0ch) + var(--ec-codePadInl) - var(--ecGtrBrdWd));padding-inline-end:var(--ec-codePadInl);text-indent:calc(var(--ecIndent, 0ch) * -1)}.expressive-code .ec-line .code::before,.expressive-code .ec-line .code::after,.expressive-code .ec-line .code :where(*){text-indent:0}.expressive-code .ec-line .code{--ecGtrBrdWd:var(--ec-gtrBrdWd);border-inline-start:var(--ecGtrBrdWd) solid var(--ecLineBrdCol, transparent)}.expressive-code .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}.expressive-code .ec-line.mark{--tmLineBgCol:var(--ec-tm-markBg)}.expressive-code .ec-line.mark .code{--ecLineBrdCol:var(--ec-tm-markBrdCol)}.expressive-code .ec-line.ins{--tmLineBgCol:var(--ec-tm-insBg);--tmLabel:var(--ec-tm-insDiffIndContent)}.expressive-code .ec-line.ins .code{--ecLineBrdCol:var(--ec-tm-insBrdCol)}.expressive-code .ec-line.ins .code::before{color:var(--ec-tm-insDiffIndCol)}.expressive-code .ec-line.del{--tmLineBgCol:var(--ec-tm-delBg);--tmLabel:var(--ec-tm-delDiffIndContent)}.expressive-code .ec-line.del .code{--ecLineBrdCol:var(--ec-tm-delBrdCol)}.expressive-code .ec-line.del .code::before{color:var(--ec-tm-delDiffIndCol)}.expressive-code .ec-line.mark,.expressive-code .ec-line.ins,.expressive-code .ec-line.del{background:var(--tmLineBgCol)}.expressive-code .ec-line.mark .code,.expressive-code .ec-line.ins .code,.expressive-code .ec-line.del .code{--ecGtrBrdWd:var(--ec-tm-lineMarkerAccentWd)}.expressive-code .ec-line.mark .code::before,.expressive-code .ec-line.ins .code::before,.expressive-code .ec-line.del .code::before{display:block;position:absolute;left:0;box-sizing:border-box;content:var(--tmLabel, &apos; &apos;);padding-inline-start:var(--ec-tm-lineDiffIndMargLeft);text-align:center;white-space:pre}.expressive-code .ec-line.mark.tm-label .code::before,.expressive-code .ec-line.ins.tm-label .code::before,.expressive-code .ec-line.del.tm-label .code::before{background:var(--ecLineBrdCol);padding:0 calc(var(--ec-tm-lineMarkerLabelPadInl) + var(--ec-tm-lineMarkerAccentWd)) 0 var(--ec-tm-lineMarkerLabelPadInl);color:var(--ec-tm-lineMarkerLabelCol)}.expressive-code .ec-line mark{--tmInlineBgCol:var(--ec-tm-markBg);--tmInlineBrdCol:var(--ec-tm-markBrdCol)}.expressive-code .ec-line ins{--tmInlineBgCol:var(--ec-tm-insBg);--tmInlineBrdCol:var(--ec-tm-insBrdCol)}.expressive-code .ec-line del{--tmInlineBgCol:var(--ec-tm-delBg);--tmInlineBrdCol:var(--ec-tm-delBrdCol)}.expressive-code .ec-line mark,.expressive-code .ec-line ins,.expressive-code .ec-line del{all:unset;display:inline-block;position:relative;--tmBrdL:var(--ec-tm-inlMarkerBrdWd);--tmBrdR:var(--ec-tm-inlMarkerBrdWd);--tmRadL:var(--ec-tm-inlMarkerBrdRad);--tmRadR:var(--ec-tm-inlMarkerBrdRad);margin-inline:0.025rem;padding-inline:var(--ec-tm-inlMarkerPad);border-radius:var(--tmRadL) var(--tmRadR) var(--tmRadR) var(--tmRadL);background:var(--tmInlineBgCol);background-clip:padding-box}.expressive-code .ec-line mark.open-start,.expressive-code .ec-line ins.open-start,.expressive-code .ec-line del.open-start{margin-inline-start:0;padding-inline-start:0;--tmBrdL:0px;--tmRadL:0}.expressive-code .ec-line mark.open-end,.expressive-code .ec-line ins.open-end,.expressive-code .ec-line del.open-end{margin-inline-end:0;padding-inline-end:0;--tmBrdR:0px;--tmRadR:0}.expressive-code .ec-line mark::before,.expressive-code .ec-line ins::before,.expressive-code .ec-line del::before{content:&apos;&apos;;position:absolute;pointer-events:none;display:inline-block;inset:0;border-radius:var(--tmRadL) var(--tmRadR) var(--tmRadR) var(--tmRadL);border:var(--ec-tm-inlMarkerBrdWd) solid var(--tmInlineBrdCol);border-inline-width:var(--tmBrdL) var(--tmBrdR)}.expressive-code .frame{all:unset;position:relative;display:block;--header-border-radius:calc(var(--ec-brdRad) + var(--ec-brdWd));--tab-border-radius:calc(var(--ec-frm-edTabBrdRad) + var(--ec-brdWd));--button-spacing:0.4rem;--code-background:var(--ec-frm-edBg);border-radius:var(--header-border-radius);box-shadow:var(--ec-frm-frameBoxShdCssVal)}.expressive-code .frame .header{display:none;z-index:1;position:relative;border-radius:var(--header-border-radius) var(--header-border-radius) 0 0}.expressive-code .frame.has-title pre,.expressive-code .frame.has-title code,.expressive-code .frame.is-terminal pre,.expressive-code .frame.is-terminal code{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.expressive-code .frame .title:empty:before{content:&apos;\a0&apos;}.expressive-code .frame.has-title:not(.is-terminal){--button-spacing:calc(1.9rem + 2 * (var(--ec-uiPadBlk) + var(--ec-frm-edActTabIndHt)))}.expressive-code .frame.has-title:not(.is-terminal) .title{position:relative;color:var(--ec-frm-edActTabFg);background:var(--ec-frm-edActTabBg);background-clip:padding-box;margin-block-start:var(--ec-frm-edTabsMargBlkStart);padding:calc(var(--ec-uiPadBlk) + var(--ec-frm-edActTabIndHt)) var(--ec-uiPadInl);border:var(--ec-brdWd) solid var(--ec-frm-edActTabBrdCol);border-radius:var(--tab-border-radius) var(--tab-border-radius) 0 0;border-bottom:none;overflow:hidden}.expressive-code .frame.has-title:not(.is-terminal) .title::after{content:&apos;&apos;;position:absolute;pointer-events:none;inset:0;border-top:var(--ec-frm-edActTabIndHt) solid var(--ec-frm-edActTabIndTopCol);border-bottom:var(--ec-frm-edActTabIndHt) solid var(--ec-frm-edActTabIndBtmCol)}.expressive-code .frame.has-title:not(.is-terminal) .header{display:flex;background:linear-gradient(to top, var(--ec-frm-edTabBarBrdBtmCol) var(--ec-brdWd), transparent var(--ec-brdWd)),linear-gradient(var(--ec-frm-edTabBarBg), var(--ec-frm-edTabBarBg));background-repeat:no-repeat;padding-inline-start:var(--ec-frm-edTabsMargInlStart)}.expressive-code .frame.has-title:not(.is-terminal) .header::before{content:&apos;&apos;;position:absolute;pointer-events:none;inset:0;border:var(--ec-brdWd) solid var(--ec-frm-edTabBarBrdCol);border-radius:inherit;border-bottom:none}.expressive-code .frame.is-terminal{--button-spacing:calc(1.9rem + var(--ec-brdWd) + 2 * var(--ec-uiPadBlk));--code-background:var(--ec-frm-trmBg)}.expressive-code .frame.is-terminal .header{display:flex;align-items:center;justify-content:center;padding-block:var(--ec-uiPadBlk);padding-block-end:calc(var(--ec-uiPadBlk) + var(--ec-brdWd));position:relative;font-weight:500;letter-spacing:0.025ch;color:var(--ec-frm-trmTtbFg);background:var(--ec-frm-trmTtbBg);border:var(--ec-brdWd) solid var(--ec-brdCol);border-bottom:none}.expressive-code .frame.is-terminal .header::before{content:&apos;&apos;;position:absolute;pointer-events:none;left:var(--ec-uiPadInl);width:2.1rem;height:0.56rem;line-height:0;background-color:var(--ec-frm-trmTtbDotsFg);opacity:var(--ec-frm-trmTtbDotsOpa);-webkit-mask-image:var(--ec-frm-trmIcon);-webkit-mask-repeat:no-repeat;mask-image:var(--ec-frm-trmIcon);mask-repeat:no-repeat}.expressive-code .frame.is-terminal .header::after{content:&apos;&apos;;position:absolute;pointer-events:none;inset:0;border-bottom:var(--ec-brdWd) solid var(--ec-frm-trmTtbBrdBtmCol)}.expressive-code .frame pre{background:var(--code-background)}.expressive-code .copy{display:flex;gap:0.25rem;flex-direction:row;position:absolute;inset-block-start:calc(var(--ec-brdWd) + var(--button-spacing));inset-inline-end:calc(var(--ec-brdWd) + var(--ec-uiPadInl) / 2)}@media (scripting: none){.expressive-code .copy{display:none}}.expressive-code .copy{direction:ltr;unicode-bidi:isolate}.expressive-code .copy button{position:relative;align-self:flex-end;margin:0;padding:0;border:none;border-radius:0.2rem;z-index:1;cursor:pointer;transition-property:opacity, background, border-color;transition-duration:0.2s;transition-timing-function:cubic-bezier(0.25, 0.46, 0.45, 0.94);width:2.5rem;height:2.5rem;background:var(--code-background);opacity:0.75}.expressive-code .copy button div{position:absolute;inset:0;border-radius:inherit;background:var(--ec-frm-inlBtnBg);opacity:var(--ec-frm-inlBtnBgIdleOpa);transition-property:inherit;transition-duration:inherit;transition-timing-function:inherit}.expressive-code .copy button::before{content:&apos;&apos;;position:absolute;pointer-events:none;inset:0;border-radius:inherit;border:var(--ec-brdWd) solid var(--ec-frm-inlBtnBrd);opacity:var(--ec-frm-inlBtnBrdOpa)}.expressive-code .copy button::after{content:&apos;&apos;;position:absolute;pointer-events:none;inset:0;background-color:var(--ec-frm-inlBtnFg);-webkit-mask-image:var(--ec-frm-copyIcon);-webkit-mask-repeat:no-repeat;mask-image:var(--ec-frm-copyIcon);mask-repeat:no-repeat;margin:0.475rem;line-height:0}.expressive-code .copy button:hover,.expressive-code .copy button:focus:focus-visible{opacity:1}.expressive-code .copy button:hover div,.expressive-code .copy button:focus:focus-visible div{opacity:var(--ec-frm-inlBtnBgHoverOrFocusOpa)}.expressive-code .copy button:active{opacity:1}.expressive-code .copy button:active div{opacity:var(--ec-frm-inlBtnBgActOpa)}.expressive-code .copy .feedback{--tooltip-arrow-size:0.35rem;--tooltip-bg:var(--ec-frm-tooltipSuccessBg);color:var(--ec-frm-tooltipSuccessFg);pointer-events:none;user-select:none;-webkit-user-select:none;position:relative;align-self:center;background-color:var(--tooltip-bg);z-index:99;padding:0.125rem 0.75rem;border-radius:0.2rem;margin-inline-end:var(--tooltip-arrow-size);opacity:0;transition-property:opacity, transform;transition-duration:0.2s;transition-timing-function:ease-in-out;transform:translate3d(0, 0.25rem, 0)}.expressive-code .copy .feedback::after{content:&apos;&apos;;position:absolute;pointer-events:none;top:calc(50% - var(--tooltip-arrow-size));inset-inline-end:calc(-2 * (var(--tooltip-arrow-size) - 0.5px));border:var(--tooltip-arrow-size) solid transparent;border-inline-start-color:var(--tooltip-bg)}.expressive-code .copy .feedback.show{opacity:1;transform:translate3d(0, 0, 0)}@media (hover: hover){.expressive-code{}.expressive-code .copy button{opacity:0;width:2rem;height:2rem}.expressive-code .frame:hover .copy button:not(:hover),.expressive-code .frame:focus-within :focus-visible ~ .copy button:not(:hover),.expressive-code .frame .copy .feedback.show ~ button:not(:hover){opacity:0.75}}.expressive-code :nth-child(1 of .ec-line) .code{padding-inline-end:calc(2rem + var(--ec-codePadInl))}.expressive-code .gutter .ln{display:inline-flex;justify-content:flex-end;align-items:flex-start;box-sizing:content-box;min-width:var(--lnWidth, 2ch);padding-inline:2ch;color:var(--ec-lineNumbers-fg)}.highlight .expressive-code .gutter .ln{color:var(--ec-lineNumbers-hlFg)}.expressive-code .ec-section{position:relative}.expressive-code .ec-section summary{position:relative;font-family:var(--ec-cs-closedFontFml);font-size:var(--ec-cs-closedFontSize);line-height:var(--ec-cs-closedLineHt);user-select:none;-webkit-user-select:none;cursor:pointer;color:var(--ec-cs-closedTextCol);background-color:var(--ec-cs-closedBgCol);--border-color:var(--ec-cs-closedBrdCol);--border-width:var(--ec-cs-closedBrdWd);box-shadow:inset 0 calc(-1 * var(--border-width)) var(--border-color), inset 0 var(--border-width) var(--border-color);margin:var(--ec-cs-closedMarg);padding:0}.expressive-code .ec-section summary::marker{display:inline-block;content:&quot;&quot;;width:16px;height:16px}.expressive-code .ec-section summary::-webkit-details-marker{display:none}.expressive-code .ec-section summary :is(.expand, .collapse){position:relative;display:inline-block;width:16px;height:16px;vertical-align:text-bottom;opacity:0.75}.expressive-code .ec-section summary :is(.expand, .collapse)::after{content:&apos;&apos;;position:absolute;pointer-events:none;inset:0;background-color:var(--ec-cs-closedTextCol);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;line-height:0}.expressive-code .ec-section summary .expand::after{-webkit-mask-image:var(--ec-cs-expandIcon);mask-image:var(--ec-cs-expandIcon);-webkit-print-color-adjust:exact;print-color-adjust:exact}.expressive-code .ec-section summary .collapse{display:none}.expressive-code .ec-section summary .collapse::after{-webkit-mask-image:var(--ec-cs-collapseIcon);mask-image:var(--ec-cs-collapseIcon)}.expressive-code .ec-section summary .text{margin-left:1em}.expressive-code .ec-section summary .ec-line .code{padding-block:var(--ec-cs-closedPadBlk);text-indent:0}.expressive-code .ec-section[open],.expressive-code .ec-section details[open] + .content-lines{--border-color:var(--ec-cs-openBrdCol);--border-width:var(--ec-cs-openBrdWd);box-shadow:inset 0 calc(-1 * var(--border-width)) var(--border-color), inset 0 var(--border-width) var(--border-color);padding-inline:var(--ec-cs-openPad);margin-inline:var(--ec-cs-openMarg)}.expressive-code .ec-section.github[open] summary{display:none}.expressive-code .ec-section.github[open]{background-color:var(--ec-cs-openBgCol)}.expressive-code .ec-section:is(.collapsible-start, .collapsible-end){display:flex;flex-direction:column}.expressive-code .ec-section:is(.collapsible-start, .collapsible-end) .content-lines{display:none}.expressive-code .ec-section:is(.collapsible-start, .collapsible-end) details[open] .collapse{display:inline-block}.expressive-code .ec-section:is(.collapsible-start, .collapsible-end) details[open] :is(.expand, .text){display:none}.expressive-code .ec-section:is(.collapsible-start, .collapsible-end) details[open] + .content-lines{display:block;background-color:var(--ec-cs-openBgColCollapsible)}@media print{.expressive-code .ec-section:is(.collapsible-start, .collapsible-end) details[open]{display:none}}.expressive-code .ec-section.collapsible-end{flex-direction:column-reverse}:root,:root:not([data-theme=&quot;dark&quot;]) .expressive-code[data-theme=&quot;dark&quot;]{--ec-brdRad:0.3rem;--ec-brdWd:1.5px;--ec-brdCol:#1b1f23;--ec-codeFontFml:jetbrains-mono;--ec-codeFontSize:0.85rem;--ec-codeFontWg:400;--ec-codeLineHt:1.65;--ec-codePadBlk:1rem;--ec-codePadInl:1.35rem;--ec-codeBg:#24292e;--ec-codeFg:#e1e4e8;--ec-codeSelBg:#3392ff44;--ec-gtrFg:#727980;--ec-gtrBrdCol:#72798033;--ec-gtrBrdWd:1.5px;--ec-gtrHlFg:#e1e4e896;--ec-uiFontFml:jetbrains-mono;--ec-uiFontSize:0.9rem;--ec-uiFontWg:400;--ec-uiLineHt:1.65;--ec-uiPadBlk:0.25rem;--ec-uiPadInl:1rem;--ec-uiSelBg:#39414a;--ec-uiSelFg:#e1e4e8;--ec-focusBrd:#005cc5;--ec-sbThumbCol:#6a737d33;--ec-sbThumbHoverCol:#6a737dd1;--ec-tm-lineMarkerAccentMarg:0rem;--ec-tm-lineMarkerAccentWd:0.15rem;--ec-tm-lineMarkerLabelPadInl:0.2rem;--ec-tm-lineMarkerLabelCol:white;--ec-tm-lineDiffIndMargLeft:0.3rem;--ec-tm-inlMarkerBrdWd:1.5px;--ec-tm-inlMarkerBrdRad:0.2rem;--ec-tm-inlMarkerPad:0.15rem;--ec-tm-insDiffIndContent:&apos;+&apos;;--ec-tm-delDiffIndContent:&apos;-&apos;;--ec-tm-markBg:#264a8980;--ec-tm-markBrdCol:#5570b3d0;--ec-tm-insBg:#26561c80;--ec-tm-insBrdCol:#4e7e41d0;--ec-tm-insDiffIndCol:#7eb070d0;--ec-tm-delBg:#81322b80;--ec-tm-delBrdCol:#ae594fd0;--ec-tm-delDiffIndCol:#e68a7ed0;--ec-frm-shdCol:#0000005b;--ec-frm-frameBoxShdCssVal:0.1rem 0.1rem 0.2rem #0000005b;--ec-frm-edActTabBg:#24292e;--ec-frm-edActTabFg:#e1e4e8;--ec-frm-edActTabBrdCol:transparent;--ec-frm-edActTabIndHt:1.5px;--ec-frm-edActTabIndTopCol:#f9826c;--ec-frm-edActTabIndBtmCol:#24292e;--ec-frm-edTabsMargInlStart:0;--ec-frm-edTabsMargBlkStart:0;--ec-frm-edTabBrdRad:0.3rem;--ec-frm-edTabBarBg:#1f2428;--ec-frm-edTabBarBrdCol:#1b1f23;--ec-frm-edTabBarBrdBtmCol:#1b1f23;--ec-frm-edBg:#24292e;--ec-frm-trmTtbFg:#e1e4e8;--ec-frm-trmTtbDotsFg:#e1e4e8;--ec-frm-trmTtbDotsOpa:0.15;--ec-frm-trmTtbBg:#24292e;--ec-frm-trmTtbBrdBtmCol:#1b1f23;--ec-frm-trmBg:#1f2428;--ec-frm-inlBtnFg:#e1e4e8;--ec-frm-inlBtnBg:#e1e4e8;--ec-frm-inlBtnBgIdleOpa:0;--ec-frm-inlBtnBgHoverOrFocusOpa:0.2;--ec-frm-inlBtnBgActOpa:0.3;--ec-frm-inlBtnBrd:#e1e4e8;--ec-frm-inlBtnBrdOpa:0.4;--ec-frm-tooltipSuccessBg:#228739;--ec-frm-tooltipSuccessFg:white;--ec-frm-copyIcon:url(&quot;data:image/svg+xml,%3Csvg%20xmlns%3D&apos;http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg&apos;%20viewBox%3D&apos;0%200%2024%2024&apos;%20fill%3D&apos;none&apos;%20stroke%3D&apos;black&apos;%20stroke-width%3D&apos;1.75&apos;%3E%3Cpath%20d%3D&apos;M3%2019a2%202%200%200%201-1-2V2a2%202%200%200%201%201-1h13a2%202%200%200%201%202%201&apos;%2F%3E%3Crect%20x%3D&apos;6&apos;%20y%3D&apos;5&apos;%20width%3D&apos;16&apos;%20height%3D&apos;18&apos;%20rx%3D&apos;1.5&apos;%20ry%3D&apos;1.5&apos;%2F%3E%3C%2Fsvg%3E&quot;);--ec-frm-trmIcon:url(&quot;data:image/svg+xml,%3Csvg%20xmlns%3D&apos;http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg&apos;%20viewBox%3D&apos;0%200%2060%2016&apos;%20preserveAspectRatio%3D&apos;xMidYMid%20meet&apos;%3E%3Ccircle%20cx%3D&apos;8&apos;%20cy%3D&apos;8&apos;%20r%3D&apos;8&apos;%2F%3E%3Ccircle%20cx%3D&apos;30&apos;%20cy%3D&apos;8&apos;%20r%3D&apos;8&apos;%2F%3E%3Ccircle%20cx%3D&apos;52&apos;%20cy%3D&apos;8&apos;%20r%3D&apos;8&apos;%2F%3E%3C%2Fsvg%3E&quot;);--ec-lineNumbers-fg:inherit;--ec-lineNumbers-hlFg:inherit;--ec-cs-closedBrdWd:0px;--ec-cs-closedPadBlk:4px;--ec-cs-closedMarg:0;--ec-cs-closedFontFml:inherit;--ec-cs-closedFontSize:inherit;--ec-cs-closedLineHt:inherit;--ec-cs-closedTextCol:#e1e4e8;--ec-cs-closedBgCol:#58606933;--ec-cs-closedBrdCol:#58606980;--ec-cs-openBrdWd:1px;--ec-cs-openPad:0;--ec-cs-openMarg:0;--ec-cs-openBgCol:transparent;--ec-cs-openBgColCollapsible:#5860691a;--ec-cs-openBrdCol:transparent;--ec-cs-expandIcon:url(&quot;data:image/svg+xml,%3Csvg%20xmlns%3D&apos;http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg&apos;%20viewBox%3D&apos;0%200%2016%2016&apos;%3E%3Cpath%20d%3D&apos;m8.177.677%202.896%202.896a.25.25%200%200%201-.177.427H8.75v1.25a.75.75%200%200%201-1.5%200V4H5.104a.25.25%200%200%201-.177-.427L7.823.677a.25.25%200%200%201%20.354%200ZM7.25%2010.75a.75.75%200%200%201%201.5%200V12h2.146a.25.25%200%200%201%20.177.427l-2.896%202.896a.25.25%200%200%201-.354%200l-2.896-2.896A.25.25%200%200%201%205.104%2012H7.25v-1.25Zm-5-2a.75.75%200%200%200%200-1.5h-.5a.75.75%200%200%200%200%201.5h.5ZM6%208a.75.75%200%200%201-.75.75h-.5a.75.75%200%200%201%200-1.5h.5A.75.75%200%200%201%206%208Zm2.25.75a.75.75%200%200%200%200-1.5h-.5a.75.75%200%200%200%200%201.5h.5ZM12%208a.75.75%200%200%201-.75.75h-.5a.75.75%200%200%201%200-1.5h.5A.75.75%200%200%201%2012%208Zm2.25.75a.75.75%200%200%200%200-1.5h-.5a.75.75%200%200%200%200%201.5h.5Z&apos;%2F%3E%3C%2Fsvg%3E&quot;);--ec-cs-collapseIcon:url(&quot;data:image/svg+xml,%3Csvg%20xmlns%3D&apos;http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg&apos;%20viewBox%3D&apos;0%200%2016%2016&apos;%3E%3Cpath%20d%3D&apos;M10.896%202H8.75V.75a.75.75%200%200%200-1.5%200V2H5.104a.25.25%200%200%200-.177.427l2.896%202.896a.25.25%200%200%200%20.354%200l2.896-2.896A.25.25%200%200%200%2010.896%202ZM8.75%2015.25a.75.75%200%200%201-1.5%200V14H5.104a.25.25%200%200%201-.177-.427l2.896-2.896a.25.25%200%200%201%20.354%200l2.896%202.896a.25.25%200%200%201-.177.427H8.75v1.25Zm-6.5-6.5a.75.75%200%200%200%200-1.5h-.5a.75.75%200%200%200%200%201.5h.5ZM6%208a.75.75%200%200%201-.75.75h-.5a.75.75%200%200%201%200-1.5h.5A.75.75%200%200%201%206%208Zm2.25.75a.75.75%200%200%200%200-1.5h-.5a.75.75%200%200%200%200%201.5h.5ZM12%208a.75.75%200%200%201-.75.75h-.5a.75.75%200%200%201%200-1.5h.5A.75.75%200%200%201%2012%208Zm2.25.75a.75.75%200%200%200%200-1.5h-.5a.75.75%200%200%200%200%201.5h.5Z&apos;%2F%3E%3C%2Fsvg%3E&quot;)}.expressive-code .ec-line :where(span[style^=&apos;--&apos;]:not([class])),:root:not([data-theme=&quot;dark&quot;]) .expressive-code[data-theme=&quot;dark&quot;] .ec-line :where(span[style^=&apos;--&apos;]:not([class])){color:var(--0, inherit);background-color:var(--0bg, transparent);font-style:var(--0fs, inherit);font-weight:var(--0fw, inherit);text-decoration:var(--0td, inherit)}@media (prefers-color-scheme: light){:root:not([data-theme=&quot;dark&quot;]){--ec-brdCol:#e1e4e8;--ec-codeBg:#fff;--ec-codeFg:#24292e;--ec-codeSelBg:#0366d625;--ec-gtrFg:#1b1f2381;--ec-gtrBrdCol:#1b1f2333;--ec-gtrHlFg:#24292eab;--ec-uiSelBg:#e2e5e9;--ec-uiSelFg:#2f363d;--ec-focusBrd:#2188ff;--ec-sbThumbCol:#959da533;--ec-sbThumbHoverCol:#959da5eb;--ec-tm-markBg:#9fb6ff80;--ec-tm-insBg:#94c68480;--ec-tm-insDiffIndCol:#3a692fd0;--ec-tm-delBg:#fea09280;--ec-tm-delDiffIndCol:#97453dd0;--ec-frm-shdCol:#00000028;--ec-frm-frameBoxShdCssVal:0.1rem 0.1rem 0.2rem #00000028;--ec-frm-edActTabBg:#fff;--ec-frm-edActTabFg:#2f363d;--ec-frm-edActTabIndBtmCol:#fff;--ec-frm-edTabBarBg:#f6f8fa;--ec-frm-edTabBarBrdCol:#e1e4e8;--ec-frm-edTabBarBrdBtmCol:#e1e4e8;--ec-frm-edBg:#fff;--ec-frm-trmTtbFg:#2f363d;--ec-frm-trmTtbDotsFg:#2f363d;--ec-frm-trmTtbBg:#fff;--ec-frm-trmTtbBrdBtmCol:#e1e4e8;--ec-frm-trmBg:#f6f8fa;--ec-frm-inlBtnFg:#24292e;--ec-frm-inlBtnBg:#24292e;--ec-frm-inlBtnBrd:#24292e;--ec-frm-tooltipSuccessBg:#208638;--ec-cs-closedTextCol:#24292e;--ec-cs-closedBgCol:#d1d5da33;--ec-cs-closedBrdCol:#d1d5da80;--ec-cs-openBgColCollapsible:#d1d5da1a}:root:not([data-theme=&quot;dark&quot;]) .expressive-code .ec-line :where(span[style^=&apos;--&apos;]:not([class])){color:var(--1, inherit);background-color:var(--1bg, transparent);font-style:var(--1fs, inherit);font-weight:var(--1fw, inherit);text-decoration:var(--1td, inherit)}}:root[data-theme=&quot;light&quot;] .expressive-code:not([data-theme=&quot;dark&quot;]),.expressive-code[data-theme=&quot;light&quot;]{--ec-brdCol:#e1e4e8;--ec-codeBg:#fff;--ec-codeFg:#24292e;--ec-codeSelBg:#0366d625;--ec-gtrFg:#1b1f2381;--ec-gtrBrdCol:#1b1f2333;--ec-gtrHlFg:#24292eab;--ec-uiSelBg:#e2e5e9;--ec-uiSelFg:#2f363d;--ec-focusBrd:#2188ff;--ec-sbThumbCol:#959da533;--ec-sbThumbHoverCol:#959da5eb;--ec-tm-markBg:#9fb6ff80;--ec-tm-insBg:#94c68480;--ec-tm-insDiffIndCol:#3a692fd0;--ec-tm-delBg:#fea09280;--ec-tm-delDiffIndCol:#97453dd0;--ec-frm-shdCol:#00000028;--ec-frm-frameBoxShdCssVal:0.1rem 0.1rem 0.2rem #00000028;--ec-frm-edActTabBg:#fff;--ec-frm-edActTabFg:#2f363d;--ec-frm-edActTabIndBtmCol:#fff;--ec-frm-edTabBarBg:#f6f8fa;--ec-frm-edTabBarBrdCol:#e1e4e8;--ec-frm-edTabBarBrdBtmCol:#e1e4e8;--ec-frm-edBg:#fff;--ec-frm-trmTtbFg:#2f363d;--ec-frm-trmTtbDotsFg:#2f363d;--ec-frm-trmTtbBg:#fff;--ec-frm-trmTtbBrdBtmCol:#e1e4e8;--ec-frm-trmBg:#f6f8fa;--ec-frm-inlBtnFg:#24292e;--ec-frm-inlBtnBg:#24292e;--ec-frm-inlBtnBrd:#24292e;--ec-frm-tooltipSuccessBg:#208638;--ec-cs-closedTextCol:#24292e;--ec-cs-closedBgCol:#d1d5da33;--ec-cs-closedBrdCol:#d1d5da80;--ec-cs-openBgColCollapsible:#d1d5da1a}:root[data-theme=&quot;light&quot;] .expressive-code:not([data-theme=&quot;dark&quot;]) .ec-line :where(span[style^=&apos;--&apos;]:not([class])),.expressive-code[data-theme=&quot;light&quot;] .ec-line :where(span[style^=&apos;--&apos;]:not([class])){color:var(--1, inherit);background-color:var(--1bg, transparent);font-style:var(--1fs, inherit);font-weight:var(--1fw, inherit);text-decoration:var(--1td, inherit)}&lt;/style&gt;&lt;script type=&quot;module&quot;&gt;try{(()=&gt;{function a(e){if(!e)return;let t=e.getAttribute(&quot;tabindex&quot;)!==null,r=e.scrollWidth&gt;e.clientWidth;r&amp;&amp;!t?(e.setAttribute(&quot;tabindex&quot;,&quot;0&quot;),e.setAttribute(&quot;role&quot;,&quot;region&quot;)):!r&amp;&amp;t&amp;&amp;(e.removeAttribute(&quot;tabindex&quot;),e.removeAttribute(&quot;role&quot;))}var u=window.requestIdleCallback||(e=&gt;setTimeout(e,1)),s=window.cancelIdleCallback||clearTimeout;function l(e){let t=new Set,r,n;return new ResizeObserver(c=&gt;{c.forEach(o=&gt;t.add(o.target)),r&amp;&amp;clearTimeout(r),n&amp;&amp;s(n),r=setTimeout(()=&gt;{n&amp;&amp;s(n),n=u(()=&gt;{t.forEach(o=&gt;e(o)),t.clear()})},250)})}function i(e,t){e.querySelectorAll?.(&quot;.expressive-code pre &gt; code&quot;).forEach(r=&gt;{let n=r.parentElement;n&amp;&amp;t.observe(n)})}var d=l(a);i(document,d);var b=new MutationObserver(e=&gt;e.forEach(t=&gt;t.addedNodes.forEach(r=&gt;{i(r,d)})));b.observe(document.body,{childList:!0,subtree:!0});document.addEventListener(&quot;astro:page-load&quot;,()=&gt;{i(document,d)});})();}catch(e){console.error(&quot;[EC] tabindex-js-module failed:&quot;,e)}&lt;/script&gt;&lt;script type=&quot;module&quot;&gt;try{(()=&gt;{function l(o){let e=document.createElement(&quot;pre&quot;);Object.assign(e.style,{opacity:&quot;0&quot;,pointerEvents:&quot;none&quot;,position:&quot;absolute&quot;,overflow:&quot;hidden&quot;,left:&quot;0&quot;,top:&quot;0&quot;,width:&quot;20px&quot;,height:&quot;20px&quot;,webkitUserSelect:&quot;auto&quot;,userSelect:&quot;all&quot;}),e.ariaHidden=&quot;true&quot;,e.textContent=o,document.body.appendChild(e);let a=document.createRange();a.selectNode(e);let n=getSelection();if(!n)return!1;n.removeAllRanges(),n.addRange(a);let r=!1;try{r=document.execCommand(&quot;copy&quot;)}finally{n.removeAllRanges(),document.body.removeChild(e)}return r}async function u(o){let e=o.currentTarget,a=e.dataset,n=!1,r=a.code.replace(/\u007f/g,`
`);try{await navigator.clipboard.writeText(r),n=!0}catch{n=l(r)}if(!n||e.parentNode?.querySelector(&quot;.feedback&quot;))return;let c=e.parentNode?.querySelector(&quot;[aria-live]&quot;),t=document.createElement(&quot;div&quot;);t.classList.add(&quot;feedback&quot;),t.append(a.copied),c.append(t),t.offsetWidth,requestAnimationFrame(()=&gt;t?.classList.add(&quot;show&quot;));let s=()=&gt;!t||t.classList.remove(&quot;show&quot;),d=()=&gt;{!t||parseFloat(getComputedStyle(t).opacity)&gt;0||(t.remove(),t=void 0)};setTimeout(s,1500),setTimeout(d,2500),e.addEventListener(&quot;blur&quot;,s),t.addEventListener(&quot;transitioncancel&quot;,d),t.addEventListener(&quot;transitionend&quot;,d)}function i(o){o.querySelectorAll?.(&quot;.expressive-code .copy button&quot;).forEach(e=&gt;e.addEventListener(&quot;click&quot;,u))}i(document);var m=new MutationObserver(o=&gt;o.forEach(e=&gt;e.addedNodes.forEach(a=&gt;{i(a)})));m.observe(document.body,{childList:!0,subtree:!0});document.addEventListener(&quot;astro:page-load&quot;,()=&gt;{i(document)});})();}catch(e){console.error(&quot;[EC] copy-js-module failed:&quot;,e)}&lt;/script&gt;&lt;figure class=&quot;frame&quot;&gt;&lt;figcaption class=&quot;header&quot;&gt;&lt;/figcaption&gt;&lt;pre data-language=&quot;plaintext&quot;&gt;&lt;code&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;1&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span style=&quot;--0:#e1e4e8;--1:#24292e&quot;&gt;&amp;#x3C;!DOCTYPE html&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;2&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span style=&quot;--0:#e1e4e8;--1:#24292e&quot;&gt;&amp;#x3C;html lang=&quot;en&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;3&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#e1e4e8;--1:#24292e&quot;&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#e1e4e8;--1:#24292e&quot;&gt;&amp;#x3C;head&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;4&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#e1e4e8;--1:#24292e&quot;&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#e1e4e8;--1:#24292e&quot;&gt;&amp;#x3C;meta charset=&quot;UTF-8&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;5&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#e1e4e8;--1:#24292e&quot;&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#e1e4e8;--1:#24292e&quot;&gt;&amp;#x3C;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;6&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#e1e4e8;--1:#24292e&quot;&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#e1e4e8;--1:#24292e&quot;&gt;&amp;#x3C;meta http-equiv=&quot;X-UA-Compatible&quot; content=&quot;ie=edge&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;7&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#e1e4e8;--1:#24292e&quot;&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#e1e4e8;--1:#24292e&quot;&gt;&amp;#x3C;title&gt;My Website&amp;#x3C;/title&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;8&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#e1e4e8;--1:#24292e&quot;&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#e1e4e8;--1:#24292e&quot;&gt;&amp;#x3C;link rel=&quot;stylesheet&quot; href=&quot;./style.css&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;9&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#e1e4e8;--1:#24292e&quot;&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#e1e4e8;--1:#24292e&quot;&gt;&amp;#x3C;link rel=&quot;icon&quot; href=&quot;./favicon.ico&quot; type=&quot;image/x-icon&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;10&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#e1e4e8;--1:#24292e&quot;&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#e1e4e8;--1:#24292e&quot;&gt;&amp;#x3C;/head&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;11&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#e1e4e8;--1:#24292e&quot;&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#e1e4e8;--1:#24292e&quot;&gt;&amp;#x3C;body&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;12&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#e1e4e8;--1:#24292e&quot;&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#e1e4e8;--1:#24292e&quot;&gt;&amp;#x3C;main&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;13&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#e1e4e8;--1:#24292e&quot;&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#e1e4e8;--1:#24292e&quot;&gt;&amp;#x3C;h1&gt;Welcome to My Website&amp;#x3C;/h1&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;14&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#e1e4e8;--1:#24292e&quot;&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#e1e4e8;--1:#24292e&quot;&gt;&amp;#x3C;/main&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;15&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#e1e4e8;--1:#24292e&quot;&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#e1e4e8;--1:#24292e&quot;&gt;&amp;#x3C;script src=&quot;index.js&quot;&gt;&amp;#x3C;/script&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;details class=&quot;ec-section github&quot;&gt;&lt;summary&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;expand&quot;&gt;&lt;/span&gt;&lt;span class=&quot;collapse&quot;&gt;&lt;/span&gt;&lt;span class=&quot;text&quot;&gt;2 collapsed lines&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/summary&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;16&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#e1e4e8;--1:#24292e&quot;&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#e1e4e8;--1:#24292e&quot;&gt;&amp;#x3C;/body&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;17&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span style=&quot;--0:#e1e4e8;--1:#24292e&quot;&gt;&amp;#x3C;/html&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/details&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div class=&quot;copy&quot;&gt;&lt;div aria-live=&quot;polite&quot;&gt;&lt;/div&gt;&lt;button title=&quot;Copy to clipboard&quot; data-copied=&quot;Copied!&quot; data-code=&quot;&lt;!DOCTYPE html&gt;&lt;html lang=&amp;#x22;en&amp;#x22;&gt;  &lt;head&gt;    &lt;meta charset=&amp;#x22;UTF-8&amp;#x22;&gt;    &lt;meta name=&amp;#x22;viewport&amp;#x22; content=&amp;#x22;width=device-width, initial-scale=1.0&amp;#x22;&gt;    &lt;meta http-equiv=&amp;#x22;X-UA-Compatible&amp;#x22; content=&amp;#x22;ie=edge&amp;#x22;&gt;    &lt;title&gt;My Website&lt;/title&gt;    &lt;link rel=&amp;#x22;stylesheet&amp;#x22; href=&amp;#x22;./style.css&amp;#x22;&gt;    &lt;link rel=&amp;#x22;icon&amp;#x22; href=&amp;#x22;./favicon.ico&amp;#x22; type=&amp;#x22;image/x-icon&amp;#x22;&gt;  &lt;/head&gt;  &lt;body&gt;    &lt;main&gt;        &lt;h1&gt;Welcome to My Website&lt;/h1&gt;    &lt;/main&gt;    &lt;script src=&amp;#x22;index.js&amp;#x22;&gt;&lt;/script&gt;  &lt;/body&gt;&lt;/html&gt;&quot;&gt;&lt;div&gt;&lt;/div&gt;&lt;/button&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;h2 id=&quot;wie-geht-es-weiter&quot;&gt;Wie geht es weiter?&lt;/h2&gt;
&lt;p&gt;Nun, wenn du Anfänger bist, empfehle ich dir wirklich, die kostenlosen Kurse auf &lt;a rel=&quot;nofollow noopener noreferrer&quot; target=&quot;_blank&quot; href=&quot;http://freeCodeCamp.org&quot;&gt;freeCodeCamp.org&lt;/a&gt; durchzugehen; sie decken fast alles ab, was du über Webentwicklung wissen musst, um loszulegen.&lt;/p&gt;
&lt;p&gt;Eine GitHub Page ist zwar einfach einzurichten, bringt aber einige Einschränkungen mit sich und könnte dich einschränken, je weiter du in der Webentwicklung fortschreitest. Verschiedene Entwicklungstechnologien wie React, Next, Flask, Express.js usw. kennenzulernen ist entscheidend, wenn du es ernst meinst. In dieser Hinsicht reicht eine GitHub Page einfach nicht aus. Du musst etwas anderes finden, wie Netlify, Digital Ocean und schließlich einen selbst gehosteten VPS mit Docker-Instanzen, um jeden Teil einer Website selbst zu hosten.&lt;/p&gt;
&lt;h2 id=&quot;cloudflare-vs-github-pages&quot;&gt;Cloudflare vs. GitHub Pages&lt;/h2&gt;
&lt;p&gt;Obwohl die GitHub Page einfach einzurichten und gut für Anfänger geeignet ist, verwende ich heutzutage eher &lt;strong&gt;Cloudflare Pages&lt;/strong&gt;; es ist nicht nur kostenlos mit unbegrenztem Traffic, sondern kümmert sich auch um die Einrichtung einer benutzerdefinierten Domain, wenn du die Domain über Cloudflare gekauft hast. Darüber hinaus kann dein Repo auch privat sein. Also sozusagen eine bessere Version der GitHub Page. Vielleicht möchtest du dir das auch ansehen.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Falls dir der Leitfaden unklar ist, kannst du der offiziellen Anleitung von GitHub &lt;a rel=&quot;nofollow noopener noreferrer&quot; target=&quot;_blank&quot; href=&quot;https://pages.github.com/&quot;&gt;hier&lt;/a&gt; folgen.&lt;/em&gt;&lt;/p&gt;</content:encoded><media:thumbnail url="https://cms.hongct.com/assets/0090d3fd-8466-49d4-89f2-47b351bb3531"/><enclosure url="https://cms.hongct.com/assets/0090d3fd-8466-49d4-89f2-47b351bb3531" length="7570" type="image/webp"/></item><item><title>Appwrite VS Supabase</title><link>https://hongcheung.com/de/post/appwrite-vs-supabase/</link><guid isPermaLink="true">https://hongcheung.com/de/post/appwrite-vs-supabase/</guid><description>Welches solltest du wählen? Hier ist meine Meinung.</description><pubDate>Thu, 06 Mar 2025 12:00:00 GMT</pubDate><content:encoded>&lt;p&gt;&lt;img src=&quot;https://cms.hongct.com/assets/9d25914e-1f5f-4ccf-901a-998d0b454ed9&quot; alt=&quot;Appwrite VS Supabase&quot; referrerpolicy=&quot;no-referrer&quot; loading=&quot;lazy&quot;/&gt;&lt;/p&gt;&lt;h2 id=&quot;intro&quot;&gt;Intro&lt;/h2&gt;
&lt;p&gt;Ich bin hauptsächlich Indie-iOS-Entwickler, aber ich liebäugle schon eine Weile damit, ein paar plattformübergreifende Apps zu bauen. Ich habe Firebase ausprobiert, war aber skeptisch, weil ich eine üble Geschichte über Nutzer gelesen habe, die mit Firebase wahnsinnige Rechnungen bekommen haben. Bis heute lässt Google dich kein Budget-Limit festlegen. Also begann ich, nach einer Firebase-Alternative zu suchen – oder sollte ich sagen, nach einem einfachen plattformübergreifenden Datenbankdienst?&lt;/p&gt;
&lt;p&gt;Ich bin bei Appwrite und Supabase gelandet. Nachdem ich beide mit meinen Anfänger-Kenntnissen im Backend-Bereich ausprobiert habe, hier meine Perspektive.&lt;/p&gt;
&lt;p&gt;TL;DR:&lt;br&gt;
Wenn du selbst hostest und keine relationalen Daten speichern musst, nimm Appwrite. Wenn es dir nichts ausmacht zu zahlen und du eine reibungslose und langfristig robuste Entwicklung mit der Cloud-Version willst, nimm Supabase. Und ich erkläre dir, warum.&lt;/p&gt;
&lt;h2 id=&quot;der-große-unterschied-zwischen-supabase-vs-appwrite&quot;&gt;Der große Unterschied zwischen Supabase VS Appwrite&lt;/h2&gt;
&lt;h3 id=&quot;datenbanktechnologie&quot;&gt;Datenbanktechnologie&lt;/h3&gt;
&lt;p&gt;Appwrite verwendet NoSQL und Supabase verwendet PostgresSQL.&lt;/p&gt;
&lt;p&gt;Wenn du mit Firebase vertraut bist, wirst du dich bei Appwrite wie zu Hause fühlen. Aber wenn du eine relationale DB willst, dann Supabase.&lt;/p&gt;
&lt;h3 id=&quot;cloud-preise&quot;&gt;Cloud-Preise&lt;/h3&gt;
&lt;p&gt;&lt;a rel=&quot;nofollow noopener noreferrer&quot; target=&quot;_blank&quot; href=&quot;https://supabase.com/pricing&quot;&gt;Supabase&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a rel=&quot;nofollow noopener noreferrer&quot; target=&quot;_blank&quot; href=&quot;https://appwrite.io/pricing&quot;&gt;Appwrite&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Stand März 2025 bieten beide Dienste einen kostenlosen Tarif mit Einschränkungen. Zum Beispiel 1-2 Projekte, begrenzte Bandbreite und die Anzahl gleichzeitiger Nutzer usw. Die aktuellen Preise kannst du über die obigen Links einsehen. Derzeit beginnen die Kosten jenseits des kostenlosen Tarifs bei Supabase ab 25 $ /Monat und bei Appwrite ab 15 $ /Monat.&lt;/p&gt;
&lt;h3 id=&quot;benutzeroberfläche&quot;&gt;Benutzeroberfläche&lt;/h3&gt;
&lt;p&gt;Appwrite&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Weniger Panel-Elemente, übersichtlichere Gesamtansicht.
&lt;img loading=&quot;lazy&quot; decoding=&quot;async&quot; referrerpolicy=&quot;no-referrer&quot; src=&quot;https://cms.hongct.com/assets/2d67c07b-a435-4db6-88f4-b316e0f406b5&quot; alt=&quot;&quot;&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Supabase&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Mehr Optionen, wirkt aber etwas kompliziert.
&lt;img loading=&quot;lazy&quot; decoding=&quot;async&quot; referrerpolicy=&quot;no-referrer&quot; src=&quot;https://cms.hongct.com/assets/90ba61ff-b320-4098-9807-51b5fabc847b&quot; alt=&quot;&quot;&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&quot;selbst-hosting&quot;&gt;Selbst-Hosting&lt;/h3&gt;
&lt;p&gt;Beide sind einfach bereitzustellen. Allerdings ist die selbst gehostete Version von Supabase ziemlich eingeschränkt und eine abgespeckte Version ihrer Cloud-Version. Anders als bei Appwrite, wo du in der selbst gehosteten Version alles bekommst. Hier sind einige Probleme, auf die ich beim Selbst-Hosting von Supabase gestoßen bin:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Die selbst gehostete Version von Supabase erlaubt nur ein Projekt pro Instanz; das unterscheidet sich von der Cloud-Version, die du über ihre Plattform nutzt, wo du viele Projekte erstellen kannst.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Ich versuchte, die URL-Weiterleitung für die Authentifizierung zu finden und zu ändern, aber die Schaltfläche fehlt im Menü, anders als in der Cloud-Version. Also besuchte ich den Cloud-Server, ging auf die Seite, kopierte den Link und änderte ihn so, dass er auf meine Instanz zeigte. Dann konnte ich die Optionen sehen, aber nicht ändern. Ich vermute, das ist eine der Einschränkungen der abgespeckten Version.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Die Dokumentation richtet sich größtenteils an die Cloud-Version und lässt sich nicht reibungslos auf die selbst gehostete Version übertragen. Der Grund dafür ist, dass bestimmte Einstellungen und Optionen fehlen.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Appwrite hingegen hatte ich sehr schnell zum Laufen gebracht. Und ich fand die Dokumentation leicht verständlich.&lt;/p&gt;
&lt;h3 id=&quot;offline-synchronisierung&quot;&gt;Offline-Synchronisierung&lt;/h3&gt;
&lt;p&gt;Wenn deine App nicht nur auf eine Website beschränkt ist, wirst du früher oder später wahrscheinlich Offline-Synchronisierung verwalten müssen. In dieser Hinsicht ist Supabase einfacher zu handhaben, da es Bibliotheken und Drittanbieterdienste gibt, die du nutzen kannst. Optionen wie Powersync und Brick sind üblich. Bei Appwrite musst du deine eigene Synchronisierungslogik schreiben, da ich keine einfach zu verwendende Bibliothek für die Offline-Synchronisierung finden konnte.&lt;/p&gt;
&lt;h2 id=&quot;abschließende-anmerkung&quot;&gt;Abschließende Anmerkung&lt;/h2&gt;
&lt;p&gt;Ich verwende derzeit selbst gehostetes Appwrite, weil:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Eine Instanz, mehrere Projekte – ich kann mit vielen Projekten herumspielen, ohne mir Gedanken über Limits und Rechnungen machen zu müssen&lt;/li&gt;
&lt;li&gt;Voller Funktionsumfang – kein Unterschied zur Cloud-Version (glaube ich? Zumindest bin ich noch auf nichts gestoßen, was ich brauchte und nicht da war)&lt;/li&gt;
&lt;li&gt;Leicht verständliche Dokumentation&lt;/li&gt;
&lt;li&gt;Supabase scheint dich durch das Abspecken vieler Funktionen zur Nutzung ihres Cloud-Tarifs zu drängen, und das gefällt mir nicht&lt;/li&gt;
&lt;li&gt;NoSQL ausprobieren – ich habe Projekte, die die Supabase-Cloud-Version nutzen, und sie ist gut. Aber irgendwann brauche ich eine Self-Host-Alternative, und im Moment scheint Appwrite das bessere Angebot zu sein.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Wenn es dir nichts ausmacht zu zahlen, ist Supabase großartig. Wenn du dir die Hände schmutzig machen oder dich besser mit NoSQL vertraut machen willst, ist das Selbst-Hosting von Appwrite unterhaltsam genug.&lt;/p&gt;
&lt;p&gt;Referenz:&lt;/p&gt;
&lt;p&gt;&lt;a rel=&quot;nofollow noopener noreferrer&quot; target=&quot;_blank&quot; href=&quot;https://www.reddit.com/r/appwrite/comments/1c6xjm5/appwrite_vs_supabase_vs_pocektbase/&quot;&gt;Dieser Reddit-Beitrag&lt;/a&gt;, während ich recherchiert habe.&lt;/p&gt;</content:encoded><media:thumbnail url="https://cms.hongct.com/assets/9d25914e-1f5f-4ccf-901a-998d0b454ed9"/><enclosure url="https://cms.hongct.com/assets/9d25914e-1f5f-4ccf-901a-998d0b454ed9" length="7420" type="image/webp"/></item><item><title>So beheben Sie die Einschränkung der Anzeigenauslieferung bei Google AdMob</title><link>https://hongcheung.com/de/post/how-to-fix-ad-serving-is-limited-on-google-admob/</link><guid isPermaLink="true">https://hongcheung.com/de/post/how-to-fix-ad-serving-is-limited-on-google-admob/</guid><description>Einschränkungen der AdMob-Anzeigenauslieferung auf die richtige Weise aufheben.</description><pubDate>Thu, 01 Feb 2024 12:00:00 GMT</pubDate><content:encoded>&lt;p&gt;&lt;img src=&quot;https://cms.hongct.com/assets/500a3437-bb1a-4ec5-a415-7bcf137176f8&quot; alt=&quot;So beheben Sie die Einschränkung der Anzeigenauslieferung bei Google AdMob&quot; referrerpolicy=&quot;no-referrer&quot; loading=&quot;lazy&quot;/&gt;&lt;/p&gt;&lt;h2 id=&quot;einleitung&quot;&gt;Einleitung&lt;/h2&gt;
&lt;p&gt;Ich habe diese Meldung früher schon einmal in meinem Konto erhalten, und sie war frustrierend und ärgerlich. Es hat ein paar Monate gedauert, bis ich sie losgeworden bin. Hier ist, was ich getan habe und wie ich sie schließlich losgeworden bin.&lt;/p&gt;
&lt;h2 id=&quot;warum-es-passiert&quot;&gt;Warum es passiert&lt;/h2&gt;
&lt;h3 id=&quot;neue-konten&quot;&gt;Neue Konten&lt;/h3&gt;
&lt;p&gt;Selbst wenn Sie nichts falsch gemacht und die Richtlinien zur Platzierung von Anzeigen sorgfältig befolgt haben, erhalten Sie diese lästige Warnung möglicherweise trotzdem, nur weil Ihr Konto neu ist.&lt;/p&gt;
&lt;h3 id=&quot;verkehrsspitze&quot;&gt;Verkehrsspitze&lt;/h3&gt;
&lt;p&gt;Wenn Ihre App normalerweise nicht so viel Traffic hat und plötzlich eine ungewöhnliche Anzahl an Impressionen erhält (etwa von 10 pro Tag auf 10.000 in einer Woche), werden diese Einschränkungen der Anzeigenauslieferung einfach verhängt, egal was passiert.&lt;/p&gt;
&lt;h3 id=&quot;falsche-platzierungen&quot;&gt;Falsche Platzierungen&lt;/h3&gt;
&lt;p&gt;Wenn Sie Ihre Anzeigen ganz in der Nähe einer In-App-Schaltfläche platzieren oder die Absicht haben, Nutzer mit Tricks zum Klicken auf Ihre Anzeigen zu bewegen, werden sie auch das bemerken.&lt;/p&gt;
&lt;h3 id=&quot;auf-die-eigenen-anzeigen-tippen&quot;&gt;Auf die eigenen Anzeigen tippen&lt;/h3&gt;
&lt;p&gt;Sie sollten zu keinem Zeitpunkt auf eine Ihrer eigenen Anzeigen tippen.&lt;/p&gt;
&lt;h3 id=&quot;keine-demo-anzeigen-während-der-entwicklung-verwendet&quot;&gt;Keine Demo-Anzeigen während der Entwicklung verwendet&lt;/h3&gt;
&lt;p&gt;Das ist ein Anfängerfehler: Er erzeugt viele Impressionen auf einem einzigen Gerät, und das mag Google nicht. Verwenden Sie während der Entwicklungsphase unbedingt Demo-Anzeigen.&lt;/p&gt;
&lt;h2 id=&quot;so-beheben-sie-es&quot;&gt;So beheben Sie es&lt;/h2&gt;
&lt;h3 id=&quot;lesen-sie-die-richtlinien-sorgfältig-durch&quot;&gt;Lesen Sie die Richtlinien sorgfältig durch&lt;/h3&gt;
&lt;p&gt;Befolgen Sie die Vorgaben in ihrer Dokumentation.&lt;/p&gt;
&lt;p&gt;Eine übliche Praxis für die Platzierung von Banner-Anzeigen ist zum Beispiel, sie nur unten oder ganz oben zu platzieren. Versuchen Sie nicht, sie mitten in den Inhalt zu setzen oder auf eine Weise, die Nutzer verwirren könnte. So gibt es keine versehentlichen Klicks, sondern nur beabsichtigte.&lt;/p&gt;
&lt;h3 id=&quot;impressionslimits-festlegen&quot;&gt;Impressionslimits festlegen&lt;/h3&gt;
&lt;p&gt;&lt;img loading=&quot;lazy&quot; decoding=&quot;async&quot; referrerpolicy=&quot;no-referrer&quot; src=&quot;https://cms.hongct.com/assets/29bde5a5-540a-41ed-88a6-c4e5802c9ac1&quot; alt=&quot;Google AdMob frequency capping&quot;&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Gehen Sie zu Ihrer AdMob-Kontoseite.&lt;/li&gt;
&lt;li&gt;Wählen Sie die App mit den Anzeigen aus.&lt;/li&gt;
&lt;li&gt;Klicken Sie in der Seitenleiste auf die App-Einstellungen.&lt;/li&gt;
&lt;li&gt;Legen Sie das „Frequency capping“ fest.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Bei mir habe ich es auf 1 Impression pro 20 Minuten gesetzt, bevor die Einschränkungen der Anzeigenauslieferung aufgehoben wurden.&lt;/p&gt;
&lt;h3 id=&quot;warten&quot;&gt;Warten&lt;/h3&gt;
&lt;p&gt;Wenn Sie alles sorgfältig überprüft und sichergestellt haben, dass Ihre App den Richtlinien entspricht, können Sie nur warten.&lt;/p&gt;
&lt;p&gt;Ja, das ist die endgültige Antwort und so bin ich meine Einschränkung schließlich losgeworden. Sie brauchen einfach etwas Zeit, um Ihr Konto und den Traffic zu bewerten und zu validieren.&lt;/p&gt;
&lt;p&gt;Ich habe tatsächlich Tricks angewendet, etwa jede Anzeige in meinem Konto zu entfernen, zu warten, bis die Warnung verschwindet, und dann die Anzeigen neu zu erstellen und in meiner App zu platzieren. Das funktioniert höchstens einen Tag lang. Die Warnung kommt sofort zurück, sobald sie bemerken, dass in Ihrem Konto Anzeigenaktivität stattfindet. Versuchen Sie das also nicht, es verlängert nur die Anzeigenlimits.&lt;/p&gt;
&lt;p&gt;Versuchen Sie stattdessen, jede Anweisung in ihrer Dokumentation so gut wie möglich zu lesen und zu befolgen, und lassen Sie die Einschränkung der Anzeigenauslieferung ihre Zeit absitzen. Bei mir hat es etwa einen Monat gedauert, bis sie aufgehoben war.&lt;/p&gt;
&lt;p&gt;Viel Glück.&lt;/p&gt;</content:encoded><media:thumbnail url="https://cms.hongct.com/assets/500a3437-bb1a-4ec5-a415-7bcf137176f8"/><enclosure url="https://cms.hongct.com/assets/500a3437-bb1a-4ec5-a415-7bcf137176f8" length="116843" type="image/jpeg"/></item><item><title>So parsen Sie JSON mit SwiftyJSON</title><link>https://hongcheung.com/de/post/how-to-parse-a-json-with-swiftyjson/</link><guid isPermaLink="true">https://hongcheung.com/de/post/how-to-parse-a-json-with-swiftyjson/</guid><description>Eine sehr nützliche Bibliothek zum Dekodieren von dynamischem JSON in Xcode.</description><pubDate>Sun, 28 Jan 2024 12:00:00 GMT</pubDate><content:encoded>&lt;p&gt;&lt;img src=&quot;https://cms.hongct.com/assets/6642e0c4-c790-436c-ad0d-720c8ddfa54f&quot; alt=&quot;So parsen Sie JSON mit SwiftyJSON&quot; referrerpolicy=&quot;no-referrer&quot; loading=&quot;lazy&quot;/&gt;&lt;/p&gt;&lt;h2 id=&quot;was-ist-swiftyjson&quot;&gt;Was ist SwiftyJSON?&lt;/h2&gt;
&lt;p&gt;&lt;a rel=&quot;nofollow noopener noreferrer&quot; target=&quot;_blank&quot; href=&quot;https://github.com/SwiftyJSON/SwiftyJSON&quot; title=&quot;SwiftyJSON&quot;&gt;SwiftyJSON&lt;/a&gt; ist eine Drittanbieter-Bibliothek, mit der Sie JSON-Dateien in Ihrem Xcode-Projekt einfacher dekodieren können.&lt;/p&gt;
&lt;h3 id=&quot;warum-brauchen-sie-sie&quot;&gt;Warum brauchen Sie sie?&lt;/h3&gt;
&lt;p&gt;Es gilt als Best Practice, JSON mit vordefinierten Typen zu kodieren und zu dekodieren. Der Nachteil des eingebauten JSONDecoder ist jedoch, dass der Umgang mit dynamischem JSON mühsam ist. Selbst wenn Sie es hinbekommen, erfordert es immer noch viel Arbeit, bis es richtig funktioniert – was nicht ideal ist.&lt;/p&gt;
&lt;h3 id=&quot;beispiel-für-dynamisches-json&quot;&gt;Beispiel für dynamisches JSON&lt;/h3&gt;
&lt;p&gt;Stellen Sie sich vor, Sie haben ein JSON, das so aussieht:&lt;/p&gt;
&lt;div class=&quot;expressive-code&quot;&gt;&lt;style&gt;.expressive-code{font-family:var(--ec-uiFontFml);font-size:var(--ec-uiFontSize);font-weight:var(--ec-uiFontWg);line-height:var(--ec-uiLineHt);text-size-adjust:none;-webkit-text-size-adjust:none}.expressive-code *:not(:is(svg, svg *)){all:revert;box-sizing:border-box}.expressive-code pre{display:flex;margin:0;padding:0;border:var(--ec-brdWd) solid var(--ec-brdCol);border-radius:calc(var(--ec-brdRad) + var(--ec-brdWd));background:var(--ec-codeBg)}.expressive-code pre:focus-visible{outline:3px solid var(--ec-focusBrd);outline-offset:-3px}.expressive-code pre &gt; code{all:unset;display:block;flex:1 0 100%;padding:var(--ec-codePadBlk) 0;color:var(--ec-codeFg);font-family:var(--ec-codeFontFml);font-size:var(--ec-codeFontSize);font-weight:var(--ec-codeFontWg);line-height:var(--ec-codeLineHt)}.expressive-code pre{overflow-x:auto}.expressive-code pre.wrap .ec-line .code{white-space:pre-wrap;overflow-wrap:break-word;min-width:min(20ch, var(--ecMaxLine, 20ch))}.expressive-code pre.wrap .ec-line .code span.indent{white-space:pre}.expressive-code pre::-webkit-scrollbar,.expressive-code pre::-webkit-scrollbar-track{background-color:inherit;border-radius:calc(var(--ec-brdRad) + var(--ec-brdWd));border-top-left-radius:0;border-top-right-radius:0}.expressive-code pre::-webkit-scrollbar-thumb{background-color:var(--ec-sbThumbCol);border:4px solid transparent;background-clip:content-box;border-radius:10px}.expressive-code pre::-webkit-scrollbar-thumb:hover{background-color:var(--ec-sbThumbHoverCol)}.expressive-code pre::-webkit-scrollbar-corner{background:transparent}.expressive-code .ec-line{direction:ltr;unicode-bidi:isolate;display:grid;grid-template-areas:&apos;gutter code&apos;;grid-template-columns:auto 1fr;position:relative}.expressive-code .ec-line .gutter{grid-area:gutter;color:var(--ec-gtrFg)}.expressive-code .ec-line .gutter &gt; *{pointer-events:none;user-select:none;-webkit-user-select:none}.expressive-code .ec-line .gutter ~ .code{--ecLineBrdCol:var(--ec-gtrBrdCol)}.expressive-code .ec-line.highlight .gutter{color:var(--ec-gtrHlFg)}.expressive-code .ec-line .code{grid-area:code;position:relative;box-sizing:content-box;padding-inline-start:calc(var(--ecIndent, 0ch) + var(--ec-codePadInl) - var(--ecGtrBrdWd));padding-inline-end:var(--ec-codePadInl);text-indent:calc(var(--ecIndent, 0ch) * -1)}.expressive-code .ec-line .code::before,.expressive-code .ec-line .code::after,.expressive-code .ec-line .code :where(*){text-indent:0}.expressive-code .ec-line .code{--ecGtrBrdWd:var(--ec-gtrBrdWd);border-inline-start:var(--ecGtrBrdWd) solid var(--ecLineBrdCol, transparent)}.expressive-code .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}.expressive-code .ec-line.mark{--tmLineBgCol:var(--ec-tm-markBg)}.expressive-code .ec-line.mark .code{--ecLineBrdCol:var(--ec-tm-markBrdCol)}.expressive-code .ec-line.ins{--tmLineBgCol:var(--ec-tm-insBg);--tmLabel:var(--ec-tm-insDiffIndContent)}.expressive-code .ec-line.ins .code{--ecLineBrdCol:var(--ec-tm-insBrdCol)}.expressive-code .ec-line.ins .code::before{color:var(--ec-tm-insDiffIndCol)}.expressive-code .ec-line.del{--tmLineBgCol:var(--ec-tm-delBg);--tmLabel:var(--ec-tm-delDiffIndContent)}.expressive-code .ec-line.del .code{--ecLineBrdCol:var(--ec-tm-delBrdCol)}.expressive-code .ec-line.del .code::before{color:var(--ec-tm-delDiffIndCol)}.expressive-code .ec-line.mark,.expressive-code .ec-line.ins,.expressive-code .ec-line.del{background:var(--tmLineBgCol)}.expressive-code .ec-line.mark .code,.expressive-code .ec-line.ins .code,.expressive-code .ec-line.del .code{--ecGtrBrdWd:var(--ec-tm-lineMarkerAccentWd)}.expressive-code .ec-line.mark .code::before,.expressive-code .ec-line.ins .code::before,.expressive-code .ec-line.del .code::before{display:block;position:absolute;left:0;box-sizing:border-box;content:var(--tmLabel, &apos; &apos;);padding-inline-start:var(--ec-tm-lineDiffIndMargLeft);text-align:center;white-space:pre}.expressive-code .ec-line.mark.tm-label .code::before,.expressive-code .ec-line.ins.tm-label .code::before,.expressive-code .ec-line.del.tm-label .code::before{background:var(--ecLineBrdCol);padding:0 calc(var(--ec-tm-lineMarkerLabelPadInl) + var(--ec-tm-lineMarkerAccentWd)) 0 var(--ec-tm-lineMarkerLabelPadInl);color:var(--ec-tm-lineMarkerLabelCol)}.expressive-code .ec-line mark{--tmInlineBgCol:var(--ec-tm-markBg);--tmInlineBrdCol:var(--ec-tm-markBrdCol)}.expressive-code .ec-line ins{--tmInlineBgCol:var(--ec-tm-insBg);--tmInlineBrdCol:var(--ec-tm-insBrdCol)}.expressive-code .ec-line del{--tmInlineBgCol:var(--ec-tm-delBg);--tmInlineBrdCol:var(--ec-tm-delBrdCol)}.expressive-code .ec-line mark,.expressive-code .ec-line ins,.expressive-code .ec-line del{all:unset;display:inline-block;position:relative;--tmBrdL:var(--ec-tm-inlMarkerBrdWd);--tmBrdR:var(--ec-tm-inlMarkerBrdWd);--tmRadL:var(--ec-tm-inlMarkerBrdRad);--tmRadR:var(--ec-tm-inlMarkerBrdRad);margin-inline:0.025rem;padding-inline:var(--ec-tm-inlMarkerPad);border-radius:var(--tmRadL) var(--tmRadR) var(--tmRadR) var(--tmRadL);background:var(--tmInlineBgCol);background-clip:padding-box}.expressive-code .ec-line mark.open-start,.expressive-code .ec-line ins.open-start,.expressive-code .ec-line del.open-start{margin-inline-start:0;padding-inline-start:0;--tmBrdL:0px;--tmRadL:0}.expressive-code .ec-line mark.open-end,.expressive-code .ec-line ins.open-end,.expressive-code .ec-line del.open-end{margin-inline-end:0;padding-inline-end:0;--tmBrdR:0px;--tmRadR:0}.expressive-code .ec-line mark::before,.expressive-code .ec-line ins::before,.expressive-code .ec-line del::before{content:&apos;&apos;;position:absolute;pointer-events:none;display:inline-block;inset:0;border-radius:var(--tmRadL) var(--tmRadR) var(--tmRadR) var(--tmRadL);border:var(--ec-tm-inlMarkerBrdWd) solid var(--tmInlineBrdCol);border-inline-width:var(--tmBrdL) var(--tmBrdR)}.expressive-code .frame{all:unset;position:relative;display:block;--header-border-radius:calc(var(--ec-brdRad) + var(--ec-brdWd));--tab-border-radius:calc(var(--ec-frm-edTabBrdRad) + var(--ec-brdWd));--button-spacing:0.4rem;--code-background:var(--ec-frm-edBg);border-radius:var(--header-border-radius);box-shadow:var(--ec-frm-frameBoxShdCssVal)}.expressive-code .frame .header{display:none;z-index:1;position:relative;border-radius:var(--header-border-radius) var(--header-border-radius) 0 0}.expressive-code .frame.has-title pre,.expressive-code .frame.has-title code,.expressive-code .frame.is-terminal pre,.expressive-code .frame.is-terminal code{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.expressive-code .frame .title:empty:before{content:&apos;\a0&apos;}.expressive-code .frame.has-title:not(.is-terminal){--button-spacing:calc(1.9rem + 2 * (var(--ec-uiPadBlk) + var(--ec-frm-edActTabIndHt)))}.expressive-code .frame.has-title:not(.is-terminal) .title{position:relative;color:var(--ec-frm-edActTabFg);background:var(--ec-frm-edActTabBg);background-clip:padding-box;margin-block-start:var(--ec-frm-edTabsMargBlkStart);padding:calc(var(--ec-uiPadBlk) + var(--ec-frm-edActTabIndHt)) var(--ec-uiPadInl);border:var(--ec-brdWd) solid var(--ec-frm-edActTabBrdCol);border-radius:var(--tab-border-radius) var(--tab-border-radius) 0 0;border-bottom:none;overflow:hidden}.expressive-code .frame.has-title:not(.is-terminal) .title::after{content:&apos;&apos;;position:absolute;pointer-events:none;inset:0;border-top:var(--ec-frm-edActTabIndHt) solid var(--ec-frm-edActTabIndTopCol);border-bottom:var(--ec-frm-edActTabIndHt) solid var(--ec-frm-edActTabIndBtmCol)}.expressive-code .frame.has-title:not(.is-terminal) .header{display:flex;background:linear-gradient(to top, var(--ec-frm-edTabBarBrdBtmCol) var(--ec-brdWd), transparent var(--ec-brdWd)),linear-gradient(var(--ec-frm-edTabBarBg), var(--ec-frm-edTabBarBg));background-repeat:no-repeat;padding-inline-start:var(--ec-frm-edTabsMargInlStart)}.expressive-code .frame.has-title:not(.is-terminal) .header::before{content:&apos;&apos;;position:absolute;pointer-events:none;inset:0;border:var(--ec-brdWd) solid var(--ec-frm-edTabBarBrdCol);border-radius:inherit;border-bottom:none}.expressive-code .frame.is-terminal{--button-spacing:calc(1.9rem + var(--ec-brdWd) + 2 * var(--ec-uiPadBlk));--code-background:var(--ec-frm-trmBg)}.expressive-code .frame.is-terminal .header{display:flex;align-items:center;justify-content:center;padding-block:var(--ec-uiPadBlk);padding-block-end:calc(var(--ec-uiPadBlk) + var(--ec-brdWd));position:relative;font-weight:500;letter-spacing:0.025ch;color:var(--ec-frm-trmTtbFg);background:var(--ec-frm-trmTtbBg);border:var(--ec-brdWd) solid var(--ec-brdCol);border-bottom:none}.expressive-code .frame.is-terminal .header::before{content:&apos;&apos;;position:absolute;pointer-events:none;left:var(--ec-uiPadInl);width:2.1rem;height:0.56rem;line-height:0;background-color:var(--ec-frm-trmTtbDotsFg);opacity:var(--ec-frm-trmTtbDotsOpa);-webkit-mask-image:var(--ec-frm-trmIcon);-webkit-mask-repeat:no-repeat;mask-image:var(--ec-frm-trmIcon);mask-repeat:no-repeat}.expressive-code .frame.is-terminal .header::after{content:&apos;&apos;;position:absolute;pointer-events:none;inset:0;border-bottom:var(--ec-brdWd) solid var(--ec-frm-trmTtbBrdBtmCol)}.expressive-code .frame pre{background:var(--code-background)}.expressive-code .copy{display:flex;gap:0.25rem;flex-direction:row;position:absolute;inset-block-start:calc(var(--ec-brdWd) + var(--button-spacing));inset-inline-end:calc(var(--ec-brdWd) + var(--ec-uiPadInl) / 2)}@media (scripting: none){.expressive-code .copy{display:none}}.expressive-code .copy{direction:ltr;unicode-bidi:isolate}.expressive-code .copy button{position:relative;align-self:flex-end;margin:0;padding:0;border:none;border-radius:0.2rem;z-index:1;cursor:pointer;transition-property:opacity, background, border-color;transition-duration:0.2s;transition-timing-function:cubic-bezier(0.25, 0.46, 0.45, 0.94);width:2.5rem;height:2.5rem;background:var(--code-background);opacity:0.75}.expressive-code .copy button div{position:absolute;inset:0;border-radius:inherit;background:var(--ec-frm-inlBtnBg);opacity:var(--ec-frm-inlBtnBgIdleOpa);transition-property:inherit;transition-duration:inherit;transition-timing-function:inherit}.expressive-code .copy button::before{content:&apos;&apos;;position:absolute;pointer-events:none;inset:0;border-radius:inherit;border:var(--ec-brdWd) solid var(--ec-frm-inlBtnBrd);opacity:var(--ec-frm-inlBtnBrdOpa)}.expressive-code .copy button::after{content:&apos;&apos;;position:absolute;pointer-events:none;inset:0;background-color:var(--ec-frm-inlBtnFg);-webkit-mask-image:var(--ec-frm-copyIcon);-webkit-mask-repeat:no-repeat;mask-image:var(--ec-frm-copyIcon);mask-repeat:no-repeat;margin:0.475rem;line-height:0}.expressive-code .copy button:hover,.expressive-code .copy button:focus:focus-visible{opacity:1}.expressive-code .copy button:hover div,.expressive-code .copy button:focus:focus-visible div{opacity:var(--ec-frm-inlBtnBgHoverOrFocusOpa)}.expressive-code .copy button:active{opacity:1}.expressive-code .copy button:active div{opacity:var(--ec-frm-inlBtnBgActOpa)}.expressive-code .copy .feedback{--tooltip-arrow-size:0.35rem;--tooltip-bg:var(--ec-frm-tooltipSuccessBg);color:var(--ec-frm-tooltipSuccessFg);pointer-events:none;user-select:none;-webkit-user-select:none;position:relative;align-self:center;background-color:var(--tooltip-bg);z-index:99;padding:0.125rem 0.75rem;border-radius:0.2rem;margin-inline-end:var(--tooltip-arrow-size);opacity:0;transition-property:opacity, transform;transition-duration:0.2s;transition-timing-function:ease-in-out;transform:translate3d(0, 0.25rem, 0)}.expressive-code .copy .feedback::after{content:&apos;&apos;;position:absolute;pointer-events:none;top:calc(50% - var(--tooltip-arrow-size));inset-inline-end:calc(-2 * (var(--tooltip-arrow-size) - 0.5px));border:var(--tooltip-arrow-size) solid transparent;border-inline-start-color:var(--tooltip-bg)}.expressive-code .copy .feedback.show{opacity:1;transform:translate3d(0, 0, 0)}@media (hover: hover){.expressive-code{}.expressive-code .copy button{opacity:0;width:2rem;height:2rem}.expressive-code .frame:hover .copy button:not(:hover),.expressive-code .frame:focus-within :focus-visible ~ .copy button:not(:hover),.expressive-code .frame .copy .feedback.show ~ button:not(:hover){opacity:0.75}}.expressive-code :nth-child(1 of .ec-line) .code{padding-inline-end:calc(2rem + var(--ec-codePadInl))}.expressive-code .gutter .ln{display:inline-flex;justify-content:flex-end;align-items:flex-start;box-sizing:content-box;min-width:var(--lnWidth, 2ch);padding-inline:2ch;color:var(--ec-lineNumbers-fg)}.highlight .expressive-code .gutter .ln{color:var(--ec-lineNumbers-hlFg)}.expressive-code .ec-section{position:relative}.expressive-code .ec-section summary{position:relative;font-family:var(--ec-cs-closedFontFml);font-size:var(--ec-cs-closedFontSize);line-height:var(--ec-cs-closedLineHt);user-select:none;-webkit-user-select:none;cursor:pointer;color:var(--ec-cs-closedTextCol);background-color:var(--ec-cs-closedBgCol);--border-color:var(--ec-cs-closedBrdCol);--border-width:var(--ec-cs-closedBrdWd);box-shadow:inset 0 calc(-1 * var(--border-width)) var(--border-color), inset 0 var(--border-width) var(--border-color);margin:var(--ec-cs-closedMarg);padding:0}.expressive-code .ec-section summary::marker{display:inline-block;content:&quot;&quot;;width:16px;height:16px}.expressive-code .ec-section summary::-webkit-details-marker{display:none}.expressive-code .ec-section summary :is(.expand, .collapse){position:relative;display:inline-block;width:16px;height:16px;vertical-align:text-bottom;opacity:0.75}.expressive-code .ec-section summary :is(.expand, .collapse)::after{content:&apos;&apos;;position:absolute;pointer-events:none;inset:0;background-color:var(--ec-cs-closedTextCol);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;line-height:0}.expressive-code .ec-section summary .expand::after{-webkit-mask-image:var(--ec-cs-expandIcon);mask-image:var(--ec-cs-expandIcon);-webkit-print-color-adjust:exact;print-color-adjust:exact}.expressive-code .ec-section summary .collapse{display:none}.expressive-code .ec-section summary .collapse::after{-webkit-mask-image:var(--ec-cs-collapseIcon);mask-image:var(--ec-cs-collapseIcon)}.expressive-code .ec-section summary .text{margin-left:1em}.expressive-code .ec-section summary .ec-line .code{padding-block:var(--ec-cs-closedPadBlk);text-indent:0}.expressive-code .ec-section[open],.expressive-code .ec-section details[open] + .content-lines{--border-color:var(--ec-cs-openBrdCol);--border-width:var(--ec-cs-openBrdWd);box-shadow:inset 0 calc(-1 * var(--border-width)) var(--border-color), inset 0 var(--border-width) var(--border-color);padding-inline:var(--ec-cs-openPad);margin-inline:var(--ec-cs-openMarg)}.expressive-code .ec-section.github[open] summary{display:none}.expressive-code .ec-section.github[open]{background-color:var(--ec-cs-openBgCol)}.expressive-code .ec-section:is(.collapsible-start, .collapsible-end){display:flex;flex-direction:column}.expressive-code .ec-section:is(.collapsible-start, .collapsible-end) .content-lines{display:none}.expressive-code .ec-section:is(.collapsible-start, .collapsible-end) details[open] .collapse{display:inline-block}.expressive-code .ec-section:is(.collapsible-start, .collapsible-end) details[open] :is(.expand, .text){display:none}.expressive-code .ec-section:is(.collapsible-start, .collapsible-end) details[open] + .content-lines{display:block;background-color:var(--ec-cs-openBgColCollapsible)}@media print{.expressive-code .ec-section:is(.collapsible-start, .collapsible-end) details[open]{display:none}}.expressive-code .ec-section.collapsible-end{flex-direction:column-reverse}:root,:root:not([data-theme=&quot;dark&quot;]) .expressive-code[data-theme=&quot;dark&quot;]{--ec-brdRad:0.3rem;--ec-brdWd:1.5px;--ec-brdCol:#1b1f23;--ec-codeFontFml:jetbrains-mono;--ec-codeFontSize:0.85rem;--ec-codeFontWg:400;--ec-codeLineHt:1.65;--ec-codePadBlk:1rem;--ec-codePadInl:1.35rem;--ec-codeBg:#24292e;--ec-codeFg:#e1e4e8;--ec-codeSelBg:#3392ff44;--ec-gtrFg:#727980;--ec-gtrBrdCol:#72798033;--ec-gtrBrdWd:1.5px;--ec-gtrHlFg:#e1e4e896;--ec-uiFontFml:jetbrains-mono;--ec-uiFontSize:0.9rem;--ec-uiFontWg:400;--ec-uiLineHt:1.65;--ec-uiPadBlk:0.25rem;--ec-uiPadInl:1rem;--ec-uiSelBg:#39414a;--ec-uiSelFg:#e1e4e8;--ec-focusBrd:#005cc5;--ec-sbThumbCol:#6a737d33;--ec-sbThumbHoverCol:#6a737dd1;--ec-tm-lineMarkerAccentMarg:0rem;--ec-tm-lineMarkerAccentWd:0.15rem;--ec-tm-lineMarkerLabelPadInl:0.2rem;--ec-tm-lineMarkerLabelCol:white;--ec-tm-lineDiffIndMargLeft:0.3rem;--ec-tm-inlMarkerBrdWd:1.5px;--ec-tm-inlMarkerBrdRad:0.2rem;--ec-tm-inlMarkerPad:0.15rem;--ec-tm-insDiffIndContent:&apos;+&apos;;--ec-tm-delDiffIndContent:&apos;-&apos;;--ec-tm-markBg:#264a8980;--ec-tm-markBrdCol:#5570b3d0;--ec-tm-insBg:#26561c80;--ec-tm-insBrdCol:#4e7e41d0;--ec-tm-insDiffIndCol:#7eb070d0;--ec-tm-delBg:#81322b80;--ec-tm-delBrdCol:#ae594fd0;--ec-tm-delDiffIndCol:#e68a7ed0;--ec-frm-shdCol:#0000005b;--ec-frm-frameBoxShdCssVal:0.1rem 0.1rem 0.2rem #0000005b;--ec-frm-edActTabBg:#24292e;--ec-frm-edActTabFg:#e1e4e8;--ec-frm-edActTabBrdCol:transparent;--ec-frm-edActTabIndHt:1.5px;--ec-frm-edActTabIndTopCol:#f9826c;--ec-frm-edActTabIndBtmCol:#24292e;--ec-frm-edTabsMargInlStart:0;--ec-frm-edTabsMargBlkStart:0;--ec-frm-edTabBrdRad:0.3rem;--ec-frm-edTabBarBg:#1f2428;--ec-frm-edTabBarBrdCol:#1b1f23;--ec-frm-edTabBarBrdBtmCol:#1b1f23;--ec-frm-edBg:#24292e;--ec-frm-trmTtbFg:#e1e4e8;--ec-frm-trmTtbDotsFg:#e1e4e8;--ec-frm-trmTtbDotsOpa:0.15;--ec-frm-trmTtbBg:#24292e;--ec-frm-trmTtbBrdBtmCol:#1b1f23;--ec-frm-trmBg:#1f2428;--ec-frm-inlBtnFg:#e1e4e8;--ec-frm-inlBtnBg:#e1e4e8;--ec-frm-inlBtnBgIdleOpa:0;--ec-frm-inlBtnBgHoverOrFocusOpa:0.2;--ec-frm-inlBtnBgActOpa:0.3;--ec-frm-inlBtnBrd:#e1e4e8;--ec-frm-inlBtnBrdOpa:0.4;--ec-frm-tooltipSuccessBg:#228739;--ec-frm-tooltipSuccessFg:white;--ec-frm-copyIcon:url(&quot;data:image/svg+xml,%3Csvg%20xmlns%3D&apos;http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg&apos;%20viewBox%3D&apos;0%200%2024%2024&apos;%20fill%3D&apos;none&apos;%20stroke%3D&apos;black&apos;%20stroke-width%3D&apos;1.75&apos;%3E%3Cpath%20d%3D&apos;M3%2019a2%202%200%200%201-1-2V2a2%202%200%200%201%201-1h13a2%202%200%200%201%202%201&apos;%2F%3E%3Crect%20x%3D&apos;6&apos;%20y%3D&apos;5&apos;%20width%3D&apos;16&apos;%20height%3D&apos;18&apos;%20rx%3D&apos;1.5&apos;%20ry%3D&apos;1.5&apos;%2F%3E%3C%2Fsvg%3E&quot;);--ec-frm-trmIcon:url(&quot;data:image/svg+xml,%3Csvg%20xmlns%3D&apos;http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg&apos;%20viewBox%3D&apos;0%200%2060%2016&apos;%20preserveAspectRatio%3D&apos;xMidYMid%20meet&apos;%3E%3Ccircle%20cx%3D&apos;8&apos;%20cy%3D&apos;8&apos;%20r%3D&apos;8&apos;%2F%3E%3Ccircle%20cx%3D&apos;30&apos;%20cy%3D&apos;8&apos;%20r%3D&apos;8&apos;%2F%3E%3Ccircle%20cx%3D&apos;52&apos;%20cy%3D&apos;8&apos;%20r%3D&apos;8&apos;%2F%3E%3C%2Fsvg%3E&quot;);--ec-lineNumbers-fg:inherit;--ec-lineNumbers-hlFg:inherit;--ec-cs-closedBrdWd:0px;--ec-cs-closedPadBlk:4px;--ec-cs-closedMarg:0;--ec-cs-closedFontFml:inherit;--ec-cs-closedFontSize:inherit;--ec-cs-closedLineHt:inherit;--ec-cs-closedTextCol:#e1e4e8;--ec-cs-closedBgCol:#58606933;--ec-cs-closedBrdCol:#58606980;--ec-cs-openBrdWd:1px;--ec-cs-openPad:0;--ec-cs-openMarg:0;--ec-cs-openBgCol:transparent;--ec-cs-openBgColCollapsible:#5860691a;--ec-cs-openBrdCol:transparent;--ec-cs-expandIcon:url(&quot;data:image/svg+xml,%3Csvg%20xmlns%3D&apos;http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg&apos;%20viewBox%3D&apos;0%200%2016%2016&apos;%3E%3Cpath%20d%3D&apos;m8.177.677%202.896%202.896a.25.25%200%200%201-.177.427H8.75v1.25a.75.75%200%200%201-1.5%200V4H5.104a.25.25%200%200%201-.177-.427L7.823.677a.25.25%200%200%201%20.354%200ZM7.25%2010.75a.75.75%200%200%201%201.5%200V12h2.146a.25.25%200%200%201%20.177.427l-2.896%202.896a.25.25%200%200%201-.354%200l-2.896-2.896A.25.25%200%200%201%205.104%2012H7.25v-1.25Zm-5-2a.75.75%200%200%200%200-1.5h-.5a.75.75%200%200%200%200%201.5h.5ZM6%208a.75.75%200%200%201-.75.75h-.5a.75.75%200%200%201%200-1.5h.5A.75.75%200%200%201%206%208Zm2.25.75a.75.75%200%200%200%200-1.5h-.5a.75.75%200%200%200%200%201.5h.5ZM12%208a.75.75%200%200%201-.75.75h-.5a.75.75%200%200%201%200-1.5h.5A.75.75%200%200%201%2012%208Zm2.25.75a.75.75%200%200%200%200-1.5h-.5a.75.75%200%200%200%200%201.5h.5Z&apos;%2F%3E%3C%2Fsvg%3E&quot;);--ec-cs-collapseIcon:url(&quot;data:image/svg+xml,%3Csvg%20xmlns%3D&apos;http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg&apos;%20viewBox%3D&apos;0%200%2016%2016&apos;%3E%3Cpath%20d%3D&apos;M10.896%202H8.75V.75a.75.75%200%200%200-1.5%200V2H5.104a.25.25%200%200%200-.177.427l2.896%202.896a.25.25%200%200%200%20.354%200l2.896-2.896A.25.25%200%200%200%2010.896%202ZM8.75%2015.25a.75.75%200%200%201-1.5%200V14H5.104a.25.25%200%200%201-.177-.427l2.896-2.896a.25.25%200%200%201%20.354%200l2.896%202.896a.25.25%200%200%201-.177.427H8.75v1.25Zm-6.5-6.5a.75.75%200%200%200%200-1.5h-.5a.75.75%200%200%200%200%201.5h.5ZM6%208a.75.75%200%200%201-.75.75h-.5a.75.75%200%200%201%200-1.5h.5A.75.75%200%200%201%206%208Zm2.25.75a.75.75%200%200%200%200-1.5h-.5a.75.75%200%200%200%200%201.5h.5ZM12%208a.75.75%200%200%201-.75.75h-.5a.75.75%200%200%201%200-1.5h.5A.75.75%200%200%201%2012%208Zm2.25.75a.75.75%200%200%200%200-1.5h-.5a.75.75%200%200%200%200%201.5h.5Z&apos;%2F%3E%3C%2Fsvg%3E&quot;)}.expressive-code .ec-line :where(span[style^=&apos;--&apos;]:not([class])),:root:not([data-theme=&quot;dark&quot;]) .expressive-code[data-theme=&quot;dark&quot;] .ec-line :where(span[style^=&apos;--&apos;]:not([class])){color:var(--0, inherit);background-color:var(--0bg, transparent);font-style:var(--0fs, inherit);font-weight:var(--0fw, inherit);text-decoration:var(--0td, inherit)}@media (prefers-color-scheme: light){:root:not([data-theme=&quot;dark&quot;]){--ec-brdCol:#e1e4e8;--ec-codeBg:#fff;--ec-codeFg:#24292e;--ec-codeSelBg:#0366d625;--ec-gtrFg:#1b1f2381;--ec-gtrBrdCol:#1b1f2333;--ec-gtrHlFg:#24292eab;--ec-uiSelBg:#e2e5e9;--ec-uiSelFg:#2f363d;--ec-focusBrd:#2188ff;--ec-sbThumbCol:#959da533;--ec-sbThumbHoverCol:#959da5eb;--ec-tm-markBg:#9fb6ff80;--ec-tm-insBg:#94c68480;--ec-tm-insDiffIndCol:#3a692fd0;--ec-tm-delBg:#fea09280;--ec-tm-delDiffIndCol:#97453dd0;--ec-frm-shdCol:#00000028;--ec-frm-frameBoxShdCssVal:0.1rem 0.1rem 0.2rem #00000028;--ec-frm-edActTabBg:#fff;--ec-frm-edActTabFg:#2f363d;--ec-frm-edActTabIndBtmCol:#fff;--ec-frm-edTabBarBg:#f6f8fa;--ec-frm-edTabBarBrdCol:#e1e4e8;--ec-frm-edTabBarBrdBtmCol:#e1e4e8;--ec-frm-edBg:#fff;--ec-frm-trmTtbFg:#2f363d;--ec-frm-trmTtbDotsFg:#2f363d;--ec-frm-trmTtbBg:#fff;--ec-frm-trmTtbBrdBtmCol:#e1e4e8;--ec-frm-trmBg:#f6f8fa;--ec-frm-inlBtnFg:#24292e;--ec-frm-inlBtnBg:#24292e;--ec-frm-inlBtnBrd:#24292e;--ec-frm-tooltipSuccessBg:#208638;--ec-cs-closedTextCol:#24292e;--ec-cs-closedBgCol:#d1d5da33;--ec-cs-closedBrdCol:#d1d5da80;--ec-cs-openBgColCollapsible:#d1d5da1a}:root:not([data-theme=&quot;dark&quot;]) .expressive-code .ec-line :where(span[style^=&apos;--&apos;]:not([class])){color:var(--1, inherit);background-color:var(--1bg, transparent);font-style:var(--1fs, inherit);font-weight:var(--1fw, inherit);text-decoration:var(--1td, inherit)}}:root[data-theme=&quot;light&quot;] .expressive-code:not([data-theme=&quot;dark&quot;]),.expressive-code[data-theme=&quot;light&quot;]{--ec-brdCol:#e1e4e8;--ec-codeBg:#fff;--ec-codeFg:#24292e;--ec-codeSelBg:#0366d625;--ec-gtrFg:#1b1f2381;--ec-gtrBrdCol:#1b1f2333;--ec-gtrHlFg:#24292eab;--ec-uiSelBg:#e2e5e9;--ec-uiSelFg:#2f363d;--ec-focusBrd:#2188ff;--ec-sbThumbCol:#959da533;--ec-sbThumbHoverCol:#959da5eb;--ec-tm-markBg:#9fb6ff80;--ec-tm-insBg:#94c68480;--ec-tm-insDiffIndCol:#3a692fd0;--ec-tm-delBg:#fea09280;--ec-tm-delDiffIndCol:#97453dd0;--ec-frm-shdCol:#00000028;--ec-frm-frameBoxShdCssVal:0.1rem 0.1rem 0.2rem #00000028;--ec-frm-edActTabBg:#fff;--ec-frm-edActTabFg:#2f363d;--ec-frm-edActTabIndBtmCol:#fff;--ec-frm-edTabBarBg:#f6f8fa;--ec-frm-edTabBarBrdCol:#e1e4e8;--ec-frm-edTabBarBrdBtmCol:#e1e4e8;--ec-frm-edBg:#fff;--ec-frm-trmTtbFg:#2f363d;--ec-frm-trmTtbDotsFg:#2f363d;--ec-frm-trmTtbBg:#fff;--ec-frm-trmTtbBrdBtmCol:#e1e4e8;--ec-frm-trmBg:#f6f8fa;--ec-frm-inlBtnFg:#24292e;--ec-frm-inlBtnBg:#24292e;--ec-frm-inlBtnBrd:#24292e;--ec-frm-tooltipSuccessBg:#208638;--ec-cs-closedTextCol:#24292e;--ec-cs-closedBgCol:#d1d5da33;--ec-cs-closedBrdCol:#d1d5da80;--ec-cs-openBgColCollapsible:#d1d5da1a}:root[data-theme=&quot;light&quot;] .expressive-code:not([data-theme=&quot;dark&quot;]) .ec-line :where(span[style^=&apos;--&apos;]:not([class])),.expressive-code[data-theme=&quot;light&quot;] .ec-line :where(span[style^=&apos;--&apos;]:not([class])){color:var(--1, inherit);background-color:var(--1bg, transparent);font-style:var(--1fs, inherit);font-weight:var(--1fw, inherit);text-decoration:var(--1td, inherit)}&lt;/style&gt;&lt;script type=&quot;module&quot;&gt;try{(()=&gt;{function a(e){if(!e)return;let t=e.getAttribute(&quot;tabindex&quot;)!==null,r=e.scrollWidth&gt;e.clientWidth;r&amp;&amp;!t?(e.setAttribute(&quot;tabindex&quot;,&quot;0&quot;),e.setAttribute(&quot;role&quot;,&quot;region&quot;)):!r&amp;&amp;t&amp;&amp;(e.removeAttribute(&quot;tabindex&quot;),e.removeAttribute(&quot;role&quot;))}var u=window.requestIdleCallback||(e=&gt;setTimeout(e,1)),s=window.cancelIdleCallback||clearTimeout;function l(e){let t=new Set,r,n;return new ResizeObserver(c=&gt;{c.forEach(o=&gt;t.add(o.target)),r&amp;&amp;clearTimeout(r),n&amp;&amp;s(n),r=setTimeout(()=&gt;{n&amp;&amp;s(n),n=u(()=&gt;{t.forEach(o=&gt;e(o)),t.clear()})},250)})}function i(e,t){e.querySelectorAll?.(&quot;.expressive-code pre &gt; code&quot;).forEach(r=&gt;{let n=r.parentElement;n&amp;&amp;t.observe(n)})}var d=l(a);i(document,d);var b=new MutationObserver(e=&gt;e.forEach(t=&gt;t.addedNodes.forEach(r=&gt;{i(r,d)})));b.observe(document.body,{childList:!0,subtree:!0});document.addEventListener(&quot;astro:page-load&quot;,()=&gt;{i(document,d)});})();}catch(e){console.error(&quot;[EC] tabindex-js-module failed:&quot;,e)}&lt;/script&gt;&lt;script type=&quot;module&quot;&gt;try{(()=&gt;{function l(o){let e=document.createElement(&quot;pre&quot;);Object.assign(e.style,{opacity:&quot;0&quot;,pointerEvents:&quot;none&quot;,position:&quot;absolute&quot;,overflow:&quot;hidden&quot;,left:&quot;0&quot;,top:&quot;0&quot;,width:&quot;20px&quot;,height:&quot;20px&quot;,webkitUserSelect:&quot;auto&quot;,userSelect:&quot;all&quot;}),e.ariaHidden=&quot;true&quot;,e.textContent=o,document.body.appendChild(e);let a=document.createRange();a.selectNode(e);let n=getSelection();if(!n)return!1;n.removeAllRanges(),n.addRange(a);let r=!1;try{r=document.execCommand(&quot;copy&quot;)}finally{n.removeAllRanges(),document.body.removeChild(e)}return r}async function u(o){let e=o.currentTarget,a=e.dataset,n=!1,r=a.code.replace(/\u007f/g,`
`);try{await navigator.clipboard.writeText(r),n=!0}catch{n=l(r)}if(!n||e.parentNode?.querySelector(&quot;.feedback&quot;))return;let c=e.parentNode?.querySelector(&quot;[aria-live]&quot;),t=document.createElement(&quot;div&quot;);t.classList.add(&quot;feedback&quot;),t.append(a.copied),c.append(t),t.offsetWidth,requestAnimationFrame(()=&gt;t?.classList.add(&quot;show&quot;));let s=()=&gt;!t||t.classList.remove(&quot;show&quot;),d=()=&gt;{!t||parseFloat(getComputedStyle(t).opacity)&gt;0||(t.remove(),t=void 0)};setTimeout(s,1500),setTimeout(d,2500),e.addEventListener(&quot;blur&quot;,s),t.addEventListener(&quot;transitioncancel&quot;,d),t.addEventListener(&quot;transitionend&quot;,d)}function i(o){o.querySelectorAll?.(&quot;.expressive-code .copy button&quot;).forEach(e=&gt;e.addEventListener(&quot;click&quot;,u))}i(document);var m=new MutationObserver(o=&gt;o.forEach(e=&gt;e.addedNodes.forEach(a=&gt;{i(a)})));m.observe(document.body,{childList:!0,subtree:!0});document.addEventListener(&quot;astro:page-load&quot;,()=&gt;{i(document)});})();}catch(e){console.error(&quot;[EC] copy-js-module failed:&quot;,e)}&lt;/script&gt;&lt;figure class=&quot;frame&quot;&gt;&lt;figcaption class=&quot;header&quot;&gt;&lt;/figcaption&gt;&lt;pre data-language=&quot;json&quot;&gt;&lt;code&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;1&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;{&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;2&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;--0:#79B8FF;--1:#005CC5&quot;&gt;&quot;data&quot;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;: {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;3&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;--0:#79B8FF;--1:#005CC5&quot;&gt;&quot;variable_1&quot;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;: &lt;/span&gt;&lt;span style=&quot;--0:#9ECBFF;--1:#032F62&quot;&gt;&quot;some text&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;4&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;5&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div class=&quot;copy&quot;&gt;&lt;div aria-live=&quot;polite&quot;&gt;&lt;/div&gt;&lt;button title=&quot;Copy to clipboard&quot; data-copied=&quot;Copied!&quot; data-code=&quot;{  &amp;#x22;data&amp;#x22;: {    &amp;#x22;variable_1&amp;#x22;: &amp;#x22;some text&amp;#x22;  }}&quot;&gt;&lt;div&gt;&lt;/div&gt;&lt;/button&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;Wenn sich der Schlüssel variable_1 dynamisch ändert, können Sie die Daten nicht einfach mit data.title dekodieren. Was, wenn es beim nächsten Mal data.description ist?&lt;/p&gt;
&lt;h4 id=&quot;in-javascript-können-wir-das-ganz-einfach-machen&quot;&gt;In JavaScript können wir das ganz einfach machen:&lt;/h4&gt;
&lt;div class=&quot;expressive-code&quot;&gt;&lt;figure class=&quot;frame&quot;&gt;&lt;figcaption class=&quot;header&quot;&gt;&lt;/figcaption&gt;&lt;pre data-language=&quot;javascript&quot;&gt;&lt;code&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;1&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;let&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; dynamicKey &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#9ECBFF;--1:#032F62&quot;&gt;&apos;variable&apos;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;2&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;const&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#79B8FF;--1:#005CC5&quot;&gt;json&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#79B8FF;--1:#005CC5&quot;&gt;JSON&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;--0:#B392F0;--1:#6F42C1&quot;&gt;parse&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;(JSONObejct)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;3&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;console.&lt;/span&gt;&lt;span style=&quot;--0:#B392F0;--1:#6F42C1&quot;&gt;log&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;(json.data[&lt;/span&gt;&lt;span style=&quot;--0:#9ECBFF;--1:#032F62&quot;&gt;`${&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;dynamicKey&lt;/span&gt;&lt;span style=&quot;--0:#9ECBFF;--1:#032F62&quot;&gt;}_1`&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;])&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div class=&quot;copy&quot;&gt;&lt;div aria-live=&quot;polite&quot;&gt;&lt;/div&gt;&lt;button title=&quot;Copy to clipboard&quot; data-copied=&quot;Copied!&quot; data-code=&quot;let dynamicKey = &amp;#x27;variable&amp;#x27;const json = JSON.parse(JSONObejct)console.log(json.data[&amp;#x60;${dynamicKey}_1&amp;#x60;])&quot;&gt;&lt;div&gt;&lt;/div&gt;&lt;/button&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;Sie können auf den Wert zugreifen, indem Sie einfach einen dynamischen String in [] hinter data setzen. In Swift geht das jedoch nicht.&lt;/p&gt;
&lt;p&gt;Deshalb kommt SwiftyJSON ins Spiel.&lt;/p&gt;
&lt;h2 id=&quot;ein-json-mit-swiftyjson-parsen&quot;&gt;Ein JSON mit SwiftyJSON parsen&lt;/h2&gt;
&lt;p&gt;Mit Hilfe von SwiftyJSON können Sie Folgendes tun:&lt;/p&gt;
&lt;div class=&quot;expressive-code&quot;&gt;&lt;figure class=&quot;frame&quot;&gt;&lt;figcaption class=&quot;header&quot;&gt;&lt;/figcaption&gt;&lt;pre data-language=&quot;swift&quot;&gt;&lt;code&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;1&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;let&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; json &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#79B8FF;--1:#005CC5&quot;&gt;JSON&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;--0:#79B8FF;--1:#005CC5&quot;&gt;data&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;: JSONObejct)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;2&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;let&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; dynamicVar &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#9ECBFF;--1:#032F62&quot;&gt;&quot;variable_1&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;3&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;let&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; extracted &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; json[&lt;/span&gt;&lt;span style=&quot;--0:#79B8FF;--1:#005CC5&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;][&lt;/span&gt;&lt;span style=&quot;--0:#9ECBFF;--1:#032F62&quot;&gt;&quot;data&quot;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;][&lt;/span&gt;&lt;span style=&quot;--0:#9ECBFF;--1:#032F62&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;--0:#9ECBFF;--1:#032F62&quot;&gt;\(dynamicVar)&lt;/span&gt;&lt;span style=&quot;--0:#9ECBFF;--1:#032F62&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;].string { &lt;/span&gt;&lt;span style=&quot;--0:#99A0A6;--1:#616972&quot;&gt;// It&apos;s wrapped with Optional automatically&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;4&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;--0:#99A0A6;--1:#616972&quot;&gt;//Now you got your value inside data.variable_1, just change your variable value for dynamicVar as needed.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;5&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;--0:#79B8FF;--1:#005CC5&quot;&gt;print&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;(extracted) &lt;/span&gt;&lt;span style=&quot;--0:#99A0A6;--1:#616972&quot;&gt;// some text&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;6&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div class=&quot;copy&quot;&gt;&lt;div aria-live=&quot;polite&quot;&gt;&lt;/div&gt;&lt;button title=&quot;Copy to clipboard&quot; data-copied=&quot;Copied!&quot; data-code=&quot;let json = JSON(data: JSONObejct)let dynamicVar = &amp;#x22;variable_1&amp;#x22;if let extracted = json[0][&amp;#x22;data&amp;#x22;][&amp;#x22;\(dynamicVar)&amp;#x22;].string { // It&amp;#x27;s wrapped with Optional automatically  //Now you got your value inside data.variable_1, just change your variable value for dynamicVar as needed.  print(extracted) // some text}&quot;&gt;&lt;div&gt;&lt;/div&gt;&lt;/button&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;Das funktioniert so ziemlich genauso wie in JavaScript.&lt;/p&gt;
&lt;p&gt;Direkt und einfach.&lt;/p&gt;
&lt;h2 id=&quot;fazit&quot;&gt;Fazit&lt;/h2&gt;
&lt;p&gt;Obwohl die Bibliothek noch funktioniert, wird sie nicht mehr gepflegt. Der letzte Commit ist 2 Jahre her.&lt;/p&gt;
&lt;p&gt;Ich werde sie trotzdem weiterhin für meine Projekte verwenden, denn sie spart mir viel Zeit und Mühe.&lt;/p&gt;
&lt;p&gt;Eine nahezu unverzichtbare Bibliothek für den Umgang mit JSON.&lt;/p&gt;</content:encoded><media:thumbnail url="https://cms.hongct.com/assets/6642e0c4-c790-436c-ad0d-720c8ddfa54f"/><enclosure url="https://cms.hongct.com/assets/6642e0c4-c790-436c-ad0d-720c8ddfa54f" length="32728" type="image/png"/></item><item><title>AdMob-GDPR-Einwilligungsnachricht für iOS mit SwiftUI hinzufügen</title><link>https://hongcheung.com/de/post/Adding-AdMob-GDPR-Consent-Message-for-iOS-Using-SwiftUI/</link><guid isPermaLink="true">https://hongcheung.com/de/post/Adding-AdMob-GDPR-Consent-Message-for-iOS-Using-SwiftUI/</guid><description>Eine einfache Anleitung zum Hinzufügen eines GDPR-Einwilligungsformulars für Nutzer im EWR mit SwiftUI.</description><pubDate>Thu, 18 Jan 2024 12:00:00 GMT</pubDate><content:encoded>&lt;p&gt;&lt;img src=&quot;https://cms.hongct.com/assets/755d740d-459a-4f2c-b911-8599ad293c8c&quot; alt=&quot;AdMob-GDPR-Einwilligungsnachricht für iOS mit SwiftUI hinzufügen&quot; referrerpolicy=&quot;no-referrer&quot; loading=&quot;lazy&quot;/&gt;&lt;/p&gt;&lt;h2 id=&quot;warum&quot;&gt;Warum?&lt;/h2&gt;
&lt;p&gt;Seit dem 16. Januar 2024 müssen wir unseren Apps eine GDPR-Einwilligungsnachricht hinzufügen, da die EWR-Anforderungen vorschreiben, Nutzern in Europa Werbung anzuzeigen.&lt;/p&gt;
&lt;p&gt;Wenn wir das nicht tun, werden die Werbeeinnahmen stark beeinträchtigt.&lt;/p&gt;
&lt;h2 id=&quot;wie&quot;&gt;Wie?&lt;/h2&gt;
&lt;p&gt;Du kannst dir dieses offizielle Video von Google AdMob ansehen, um zu erfahren, wie man das umsetzt.&lt;/p&gt;
&lt;figure style=&quot;width: 600px; max-width: 100%; margin: auto; padding:3px; border-radius:0.5rem;&quot;&gt;
  &lt;lite-youtube style=&quot;border-radius: 1rem; &quot; videoid=&quot;EwcrESnAYEI&quot; params=&quot;start=0&quot;&gt;
  &lt;figcaption style=&quot;opacity: 0.6; padding: 5px;&quot;&gt; Offizielles Video, das zeigt, wie man mit dem User Messaging Platform (UMP) SDK die Nutzereinwilligung für die GDPR einholt &lt;/figcaption&gt;
&lt;/lite-youtube&gt;&lt;/figure&gt;
&lt;p&gt;Doch wie immer zeigt die Google-Dokumentation nur den UIKit-Weg, um das hinzuzufügen, nicht SwiftUI.&lt;/p&gt;
&lt;h2 id=&quot;swiftui-beispiel&quot;&gt;SwiftUI-Beispiel&lt;/h2&gt;
&lt;p&gt;Nach einem Tag des Ausprobierens habe ich es endlich mit reinem SwiftUI zum Laufen gebracht.&lt;/p&gt;
&lt;p&gt;&lt;img loading=&quot;lazy&quot; decoding=&quot;async&quot; referrerpolicy=&quot;no-referrer&quot; src=&quot;https://cms.hongct.com/assets/98c5d852-034c-4bad-bb42-c487ab3ee976&quot; alt=&quot;&quot;&gt;&lt;/p&gt;
&lt;p&gt;Es ist eigentlich ganz einfach:&lt;/p&gt;
&lt;div class=&quot;expressive-code&quot;&gt;&lt;style&gt;.expressive-code{font-family:var(--ec-uiFontFml);font-size:var(--ec-uiFontSize);font-weight:var(--ec-uiFontWg);line-height:var(--ec-uiLineHt);text-size-adjust:none;-webkit-text-size-adjust:none}.expressive-code *:not(:is(svg, svg *)){all:revert;box-sizing:border-box}.expressive-code pre{display:flex;margin:0;padding:0;border:var(--ec-brdWd) solid var(--ec-brdCol);border-radius:calc(var(--ec-brdRad) + var(--ec-brdWd));background:var(--ec-codeBg)}.expressive-code pre:focus-visible{outline:3px solid var(--ec-focusBrd);outline-offset:-3px}.expressive-code pre &gt; code{all:unset;display:block;flex:1 0 100%;padding:var(--ec-codePadBlk) 0;color:var(--ec-codeFg);font-family:var(--ec-codeFontFml);font-size:var(--ec-codeFontSize);font-weight:var(--ec-codeFontWg);line-height:var(--ec-codeLineHt)}.expressive-code pre{overflow-x:auto}.expressive-code pre.wrap .ec-line .code{white-space:pre-wrap;overflow-wrap:break-word;min-width:min(20ch, var(--ecMaxLine, 20ch))}.expressive-code pre.wrap .ec-line .code span.indent{white-space:pre}.expressive-code pre::-webkit-scrollbar,.expressive-code pre::-webkit-scrollbar-track{background-color:inherit;border-radius:calc(var(--ec-brdRad) + var(--ec-brdWd));border-top-left-radius:0;border-top-right-radius:0}.expressive-code pre::-webkit-scrollbar-thumb{background-color:var(--ec-sbThumbCol);border:4px solid transparent;background-clip:content-box;border-radius:10px}.expressive-code pre::-webkit-scrollbar-thumb:hover{background-color:var(--ec-sbThumbHoverCol)}.expressive-code pre::-webkit-scrollbar-corner{background:transparent}.expressive-code .ec-line{direction:ltr;unicode-bidi:isolate;display:grid;grid-template-areas:&apos;gutter code&apos;;grid-template-columns:auto 1fr;position:relative}.expressive-code .ec-line .gutter{grid-area:gutter;color:var(--ec-gtrFg)}.expressive-code .ec-line .gutter &gt; *{pointer-events:none;user-select:none;-webkit-user-select:none}.expressive-code .ec-line .gutter ~ .code{--ecLineBrdCol:var(--ec-gtrBrdCol)}.expressive-code .ec-line.highlight .gutter{color:var(--ec-gtrHlFg)}.expressive-code .ec-line .code{grid-area:code;position:relative;box-sizing:content-box;padding-inline-start:calc(var(--ecIndent, 0ch) + var(--ec-codePadInl) - var(--ecGtrBrdWd));padding-inline-end:var(--ec-codePadInl);text-indent:calc(var(--ecIndent, 0ch) * -1)}.expressive-code .ec-line .code::before,.expressive-code .ec-line .code::after,.expressive-code .ec-line .code :where(*){text-indent:0}.expressive-code .ec-line .code{--ecGtrBrdWd:var(--ec-gtrBrdWd);border-inline-start:var(--ecGtrBrdWd) solid var(--ecLineBrdCol, transparent)}.expressive-code .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}.expressive-code .ec-line.mark{--tmLineBgCol:var(--ec-tm-markBg)}.expressive-code .ec-line.mark .code{--ecLineBrdCol:var(--ec-tm-markBrdCol)}.expressive-code .ec-line.ins{--tmLineBgCol:var(--ec-tm-insBg);--tmLabel:var(--ec-tm-insDiffIndContent)}.expressive-code .ec-line.ins .code{--ecLineBrdCol:var(--ec-tm-insBrdCol)}.expressive-code .ec-line.ins .code::before{color:var(--ec-tm-insDiffIndCol)}.expressive-code .ec-line.del{--tmLineBgCol:var(--ec-tm-delBg);--tmLabel:var(--ec-tm-delDiffIndContent)}.expressive-code .ec-line.del .code{--ecLineBrdCol:var(--ec-tm-delBrdCol)}.expressive-code .ec-line.del .code::before{color:var(--ec-tm-delDiffIndCol)}.expressive-code .ec-line.mark,.expressive-code .ec-line.ins,.expressive-code .ec-line.del{background:var(--tmLineBgCol)}.expressive-code .ec-line.mark .code,.expressive-code .ec-line.ins .code,.expressive-code .ec-line.del .code{--ecGtrBrdWd:var(--ec-tm-lineMarkerAccentWd)}.expressive-code .ec-line.mark .code::before,.expressive-code .ec-line.ins .code::before,.expressive-code .ec-line.del .code::before{display:block;position:absolute;left:0;box-sizing:border-box;content:var(--tmLabel, &apos; &apos;);padding-inline-start:var(--ec-tm-lineDiffIndMargLeft);text-align:center;white-space:pre}.expressive-code .ec-line.mark.tm-label .code::before,.expressive-code .ec-line.ins.tm-label .code::before,.expressive-code .ec-line.del.tm-label .code::before{background:var(--ecLineBrdCol);padding:0 calc(var(--ec-tm-lineMarkerLabelPadInl) + var(--ec-tm-lineMarkerAccentWd)) 0 var(--ec-tm-lineMarkerLabelPadInl);color:var(--ec-tm-lineMarkerLabelCol)}.expressive-code .ec-line mark{--tmInlineBgCol:var(--ec-tm-markBg);--tmInlineBrdCol:var(--ec-tm-markBrdCol)}.expressive-code .ec-line ins{--tmInlineBgCol:var(--ec-tm-insBg);--tmInlineBrdCol:var(--ec-tm-insBrdCol)}.expressive-code .ec-line del{--tmInlineBgCol:var(--ec-tm-delBg);--tmInlineBrdCol:var(--ec-tm-delBrdCol)}.expressive-code .ec-line mark,.expressive-code .ec-line ins,.expressive-code .ec-line del{all:unset;display:inline-block;position:relative;--tmBrdL:var(--ec-tm-inlMarkerBrdWd);--tmBrdR:var(--ec-tm-inlMarkerBrdWd);--tmRadL:var(--ec-tm-inlMarkerBrdRad);--tmRadR:var(--ec-tm-inlMarkerBrdRad);margin-inline:0.025rem;padding-inline:var(--ec-tm-inlMarkerPad);border-radius:var(--tmRadL) var(--tmRadR) var(--tmRadR) var(--tmRadL);background:var(--tmInlineBgCol);background-clip:padding-box}.expressive-code .ec-line mark.open-start,.expressive-code .ec-line ins.open-start,.expressive-code .ec-line del.open-start{margin-inline-start:0;padding-inline-start:0;--tmBrdL:0px;--tmRadL:0}.expressive-code .ec-line mark.open-end,.expressive-code .ec-line ins.open-end,.expressive-code .ec-line del.open-end{margin-inline-end:0;padding-inline-end:0;--tmBrdR:0px;--tmRadR:0}.expressive-code .ec-line mark::before,.expressive-code .ec-line ins::before,.expressive-code .ec-line del::before{content:&apos;&apos;;position:absolute;pointer-events:none;display:inline-block;inset:0;border-radius:var(--tmRadL) var(--tmRadR) var(--tmRadR) var(--tmRadL);border:var(--ec-tm-inlMarkerBrdWd) solid var(--tmInlineBrdCol);border-inline-width:var(--tmBrdL) var(--tmBrdR)}.expressive-code .frame{all:unset;position:relative;display:block;--header-border-radius:calc(var(--ec-brdRad) + var(--ec-brdWd));--tab-border-radius:calc(var(--ec-frm-edTabBrdRad) + var(--ec-brdWd));--button-spacing:0.4rem;--code-background:var(--ec-frm-edBg);border-radius:var(--header-border-radius);box-shadow:var(--ec-frm-frameBoxShdCssVal)}.expressive-code .frame .header{display:none;z-index:1;position:relative;border-radius:var(--header-border-radius) var(--header-border-radius) 0 0}.expressive-code .frame.has-title pre,.expressive-code .frame.has-title code,.expressive-code .frame.is-terminal pre,.expressive-code .frame.is-terminal code{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.expressive-code .frame .title:empty:before{content:&apos;\a0&apos;}.expressive-code .frame.has-title:not(.is-terminal){--button-spacing:calc(1.9rem + 2 * (var(--ec-uiPadBlk) + var(--ec-frm-edActTabIndHt)))}.expressive-code .frame.has-title:not(.is-terminal) .title{position:relative;color:var(--ec-frm-edActTabFg);background:var(--ec-frm-edActTabBg);background-clip:padding-box;margin-block-start:var(--ec-frm-edTabsMargBlkStart);padding:calc(var(--ec-uiPadBlk) + var(--ec-frm-edActTabIndHt)) var(--ec-uiPadInl);border:var(--ec-brdWd) solid var(--ec-frm-edActTabBrdCol);border-radius:var(--tab-border-radius) var(--tab-border-radius) 0 0;border-bottom:none;overflow:hidden}.expressive-code .frame.has-title:not(.is-terminal) .title::after{content:&apos;&apos;;position:absolute;pointer-events:none;inset:0;border-top:var(--ec-frm-edActTabIndHt) solid var(--ec-frm-edActTabIndTopCol);border-bottom:var(--ec-frm-edActTabIndHt) solid var(--ec-frm-edActTabIndBtmCol)}.expressive-code .frame.has-title:not(.is-terminal) .header{display:flex;background:linear-gradient(to top, var(--ec-frm-edTabBarBrdBtmCol) var(--ec-brdWd), transparent var(--ec-brdWd)),linear-gradient(var(--ec-frm-edTabBarBg), var(--ec-frm-edTabBarBg));background-repeat:no-repeat;padding-inline-start:var(--ec-frm-edTabsMargInlStart)}.expressive-code .frame.has-title:not(.is-terminal) .header::before{content:&apos;&apos;;position:absolute;pointer-events:none;inset:0;border:var(--ec-brdWd) solid var(--ec-frm-edTabBarBrdCol);border-radius:inherit;border-bottom:none}.expressive-code .frame.is-terminal{--button-spacing:calc(1.9rem + var(--ec-brdWd) + 2 * var(--ec-uiPadBlk));--code-background:var(--ec-frm-trmBg)}.expressive-code .frame.is-terminal .header{display:flex;align-items:center;justify-content:center;padding-block:var(--ec-uiPadBlk);padding-block-end:calc(var(--ec-uiPadBlk) + var(--ec-brdWd));position:relative;font-weight:500;letter-spacing:0.025ch;color:var(--ec-frm-trmTtbFg);background:var(--ec-frm-trmTtbBg);border:var(--ec-brdWd) solid var(--ec-brdCol);border-bottom:none}.expressive-code .frame.is-terminal .header::before{content:&apos;&apos;;position:absolute;pointer-events:none;left:var(--ec-uiPadInl);width:2.1rem;height:0.56rem;line-height:0;background-color:var(--ec-frm-trmTtbDotsFg);opacity:var(--ec-frm-trmTtbDotsOpa);-webkit-mask-image:var(--ec-frm-trmIcon);-webkit-mask-repeat:no-repeat;mask-image:var(--ec-frm-trmIcon);mask-repeat:no-repeat}.expressive-code .frame.is-terminal .header::after{content:&apos;&apos;;position:absolute;pointer-events:none;inset:0;border-bottom:var(--ec-brdWd) solid var(--ec-frm-trmTtbBrdBtmCol)}.expressive-code .frame pre{background:var(--code-background)}.expressive-code .copy{display:flex;gap:0.25rem;flex-direction:row;position:absolute;inset-block-start:calc(var(--ec-brdWd) + var(--button-spacing));inset-inline-end:calc(var(--ec-brdWd) + var(--ec-uiPadInl) / 2)}@media (scripting: none){.expressive-code .copy{display:none}}.expressive-code .copy{direction:ltr;unicode-bidi:isolate}.expressive-code .copy button{position:relative;align-self:flex-end;margin:0;padding:0;border:none;border-radius:0.2rem;z-index:1;cursor:pointer;transition-property:opacity, background, border-color;transition-duration:0.2s;transition-timing-function:cubic-bezier(0.25, 0.46, 0.45, 0.94);width:2.5rem;height:2.5rem;background:var(--code-background);opacity:0.75}.expressive-code .copy button div{position:absolute;inset:0;border-radius:inherit;background:var(--ec-frm-inlBtnBg);opacity:var(--ec-frm-inlBtnBgIdleOpa);transition-property:inherit;transition-duration:inherit;transition-timing-function:inherit}.expressive-code .copy button::before{content:&apos;&apos;;position:absolute;pointer-events:none;inset:0;border-radius:inherit;border:var(--ec-brdWd) solid var(--ec-frm-inlBtnBrd);opacity:var(--ec-frm-inlBtnBrdOpa)}.expressive-code .copy button::after{content:&apos;&apos;;position:absolute;pointer-events:none;inset:0;background-color:var(--ec-frm-inlBtnFg);-webkit-mask-image:var(--ec-frm-copyIcon);-webkit-mask-repeat:no-repeat;mask-image:var(--ec-frm-copyIcon);mask-repeat:no-repeat;margin:0.475rem;line-height:0}.expressive-code .copy button:hover,.expressive-code .copy button:focus:focus-visible{opacity:1}.expressive-code .copy button:hover div,.expressive-code .copy button:focus:focus-visible div{opacity:var(--ec-frm-inlBtnBgHoverOrFocusOpa)}.expressive-code .copy button:active{opacity:1}.expressive-code .copy button:active div{opacity:var(--ec-frm-inlBtnBgActOpa)}.expressive-code .copy .feedback{--tooltip-arrow-size:0.35rem;--tooltip-bg:var(--ec-frm-tooltipSuccessBg);color:var(--ec-frm-tooltipSuccessFg);pointer-events:none;user-select:none;-webkit-user-select:none;position:relative;align-self:center;background-color:var(--tooltip-bg);z-index:99;padding:0.125rem 0.75rem;border-radius:0.2rem;margin-inline-end:var(--tooltip-arrow-size);opacity:0;transition-property:opacity, transform;transition-duration:0.2s;transition-timing-function:ease-in-out;transform:translate3d(0, 0.25rem, 0)}.expressive-code .copy .feedback::after{content:&apos;&apos;;position:absolute;pointer-events:none;top:calc(50% - var(--tooltip-arrow-size));inset-inline-end:calc(-2 * (var(--tooltip-arrow-size) - 0.5px));border:var(--tooltip-arrow-size) solid transparent;border-inline-start-color:var(--tooltip-bg)}.expressive-code .copy .feedback.show{opacity:1;transform:translate3d(0, 0, 0)}@media (hover: hover){.expressive-code{}.expressive-code .copy button{opacity:0;width:2rem;height:2rem}.expressive-code .frame:hover .copy button:not(:hover),.expressive-code .frame:focus-within :focus-visible ~ .copy button:not(:hover),.expressive-code .frame .copy .feedback.show ~ button:not(:hover){opacity:0.75}}.expressive-code :nth-child(1 of .ec-line) .code{padding-inline-end:calc(2rem + var(--ec-codePadInl))}.expressive-code .gutter .ln{display:inline-flex;justify-content:flex-end;align-items:flex-start;box-sizing:content-box;min-width:var(--lnWidth, 2ch);padding-inline:2ch;color:var(--ec-lineNumbers-fg)}.highlight .expressive-code .gutter .ln{color:var(--ec-lineNumbers-hlFg)}.expressive-code .ec-section{position:relative}.expressive-code .ec-section summary{position:relative;font-family:var(--ec-cs-closedFontFml);font-size:var(--ec-cs-closedFontSize);line-height:var(--ec-cs-closedLineHt);user-select:none;-webkit-user-select:none;cursor:pointer;color:var(--ec-cs-closedTextCol);background-color:var(--ec-cs-closedBgCol);--border-color:var(--ec-cs-closedBrdCol);--border-width:var(--ec-cs-closedBrdWd);box-shadow:inset 0 calc(-1 * var(--border-width)) var(--border-color), inset 0 var(--border-width) var(--border-color);margin:var(--ec-cs-closedMarg);padding:0}.expressive-code .ec-section summary::marker{display:inline-block;content:&quot;&quot;;width:16px;height:16px}.expressive-code .ec-section summary::-webkit-details-marker{display:none}.expressive-code .ec-section summary :is(.expand, .collapse){position:relative;display:inline-block;width:16px;height:16px;vertical-align:text-bottom;opacity:0.75}.expressive-code .ec-section summary :is(.expand, .collapse)::after{content:&apos;&apos;;position:absolute;pointer-events:none;inset:0;background-color:var(--ec-cs-closedTextCol);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;line-height:0}.expressive-code .ec-section summary .expand::after{-webkit-mask-image:var(--ec-cs-expandIcon);mask-image:var(--ec-cs-expandIcon);-webkit-print-color-adjust:exact;print-color-adjust:exact}.expressive-code .ec-section summary .collapse{display:none}.expressive-code .ec-section summary .collapse::after{-webkit-mask-image:var(--ec-cs-collapseIcon);mask-image:var(--ec-cs-collapseIcon)}.expressive-code .ec-section summary .text{margin-left:1em}.expressive-code .ec-section summary .ec-line .code{padding-block:var(--ec-cs-closedPadBlk);text-indent:0}.expressive-code .ec-section[open],.expressive-code .ec-section details[open] + .content-lines{--border-color:var(--ec-cs-openBrdCol);--border-width:var(--ec-cs-openBrdWd);box-shadow:inset 0 calc(-1 * var(--border-width)) var(--border-color), inset 0 var(--border-width) var(--border-color);padding-inline:var(--ec-cs-openPad);margin-inline:var(--ec-cs-openMarg)}.expressive-code .ec-section.github[open] summary{display:none}.expressive-code .ec-section.github[open]{background-color:var(--ec-cs-openBgCol)}.expressive-code .ec-section:is(.collapsible-start, .collapsible-end){display:flex;flex-direction:column}.expressive-code .ec-section:is(.collapsible-start, .collapsible-end) .content-lines{display:none}.expressive-code .ec-section:is(.collapsible-start, .collapsible-end) details[open] .collapse{display:inline-block}.expressive-code .ec-section:is(.collapsible-start, .collapsible-end) details[open] :is(.expand, .text){display:none}.expressive-code .ec-section:is(.collapsible-start, .collapsible-end) details[open] + .content-lines{display:block;background-color:var(--ec-cs-openBgColCollapsible)}@media print{.expressive-code .ec-section:is(.collapsible-start, .collapsible-end) details[open]{display:none}}.expressive-code .ec-section.collapsible-end{flex-direction:column-reverse}:root,:root:not([data-theme=&quot;dark&quot;]) .expressive-code[data-theme=&quot;dark&quot;]{--ec-brdRad:0.3rem;--ec-brdWd:1.5px;--ec-brdCol:#1b1f23;--ec-codeFontFml:jetbrains-mono;--ec-codeFontSize:0.85rem;--ec-codeFontWg:400;--ec-codeLineHt:1.65;--ec-codePadBlk:1rem;--ec-codePadInl:1.35rem;--ec-codeBg:#24292e;--ec-codeFg:#e1e4e8;--ec-codeSelBg:#3392ff44;--ec-gtrFg:#727980;--ec-gtrBrdCol:#72798033;--ec-gtrBrdWd:1.5px;--ec-gtrHlFg:#e1e4e896;--ec-uiFontFml:jetbrains-mono;--ec-uiFontSize:0.9rem;--ec-uiFontWg:400;--ec-uiLineHt:1.65;--ec-uiPadBlk:0.25rem;--ec-uiPadInl:1rem;--ec-uiSelBg:#39414a;--ec-uiSelFg:#e1e4e8;--ec-focusBrd:#005cc5;--ec-sbThumbCol:#6a737d33;--ec-sbThumbHoverCol:#6a737dd1;--ec-tm-lineMarkerAccentMarg:0rem;--ec-tm-lineMarkerAccentWd:0.15rem;--ec-tm-lineMarkerLabelPadInl:0.2rem;--ec-tm-lineMarkerLabelCol:white;--ec-tm-lineDiffIndMargLeft:0.3rem;--ec-tm-inlMarkerBrdWd:1.5px;--ec-tm-inlMarkerBrdRad:0.2rem;--ec-tm-inlMarkerPad:0.15rem;--ec-tm-insDiffIndContent:&apos;+&apos;;--ec-tm-delDiffIndContent:&apos;-&apos;;--ec-tm-markBg:#264a8980;--ec-tm-markBrdCol:#5570b3d0;--ec-tm-insBg:#26561c80;--ec-tm-insBrdCol:#4e7e41d0;--ec-tm-insDiffIndCol:#7eb070d0;--ec-tm-delBg:#81322b80;--ec-tm-delBrdCol:#ae594fd0;--ec-tm-delDiffIndCol:#e68a7ed0;--ec-frm-shdCol:#0000005b;--ec-frm-frameBoxShdCssVal:0.1rem 0.1rem 0.2rem #0000005b;--ec-frm-edActTabBg:#24292e;--ec-frm-edActTabFg:#e1e4e8;--ec-frm-edActTabBrdCol:transparent;--ec-frm-edActTabIndHt:1.5px;--ec-frm-edActTabIndTopCol:#f9826c;--ec-frm-edActTabIndBtmCol:#24292e;--ec-frm-edTabsMargInlStart:0;--ec-frm-edTabsMargBlkStart:0;--ec-frm-edTabBrdRad:0.3rem;--ec-frm-edTabBarBg:#1f2428;--ec-frm-edTabBarBrdCol:#1b1f23;--ec-frm-edTabBarBrdBtmCol:#1b1f23;--ec-frm-edBg:#24292e;--ec-frm-trmTtbFg:#e1e4e8;--ec-frm-trmTtbDotsFg:#e1e4e8;--ec-frm-trmTtbDotsOpa:0.15;--ec-frm-trmTtbBg:#24292e;--ec-frm-trmTtbBrdBtmCol:#1b1f23;--ec-frm-trmBg:#1f2428;--ec-frm-inlBtnFg:#e1e4e8;--ec-frm-inlBtnBg:#e1e4e8;--ec-frm-inlBtnBgIdleOpa:0;--ec-frm-inlBtnBgHoverOrFocusOpa:0.2;--ec-frm-inlBtnBgActOpa:0.3;--ec-frm-inlBtnBrd:#e1e4e8;--ec-frm-inlBtnBrdOpa:0.4;--ec-frm-tooltipSuccessBg:#228739;--ec-frm-tooltipSuccessFg:white;--ec-frm-copyIcon:url(&quot;data:image/svg+xml,%3Csvg%20xmlns%3D&apos;http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg&apos;%20viewBox%3D&apos;0%200%2024%2024&apos;%20fill%3D&apos;none&apos;%20stroke%3D&apos;black&apos;%20stroke-width%3D&apos;1.75&apos;%3E%3Cpath%20d%3D&apos;M3%2019a2%202%200%200%201-1-2V2a2%202%200%200%201%201-1h13a2%202%200%200%201%202%201&apos;%2F%3E%3Crect%20x%3D&apos;6&apos;%20y%3D&apos;5&apos;%20width%3D&apos;16&apos;%20height%3D&apos;18&apos;%20rx%3D&apos;1.5&apos;%20ry%3D&apos;1.5&apos;%2F%3E%3C%2Fsvg%3E&quot;);--ec-frm-trmIcon:url(&quot;data:image/svg+xml,%3Csvg%20xmlns%3D&apos;http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg&apos;%20viewBox%3D&apos;0%200%2060%2016&apos;%20preserveAspectRatio%3D&apos;xMidYMid%20meet&apos;%3E%3Ccircle%20cx%3D&apos;8&apos;%20cy%3D&apos;8&apos;%20r%3D&apos;8&apos;%2F%3E%3Ccircle%20cx%3D&apos;30&apos;%20cy%3D&apos;8&apos;%20r%3D&apos;8&apos;%2F%3E%3Ccircle%20cx%3D&apos;52&apos;%20cy%3D&apos;8&apos;%20r%3D&apos;8&apos;%2F%3E%3C%2Fsvg%3E&quot;);--ec-lineNumbers-fg:inherit;--ec-lineNumbers-hlFg:inherit;--ec-cs-closedBrdWd:0px;--ec-cs-closedPadBlk:4px;--ec-cs-closedMarg:0;--ec-cs-closedFontFml:inherit;--ec-cs-closedFontSize:inherit;--ec-cs-closedLineHt:inherit;--ec-cs-closedTextCol:#e1e4e8;--ec-cs-closedBgCol:#58606933;--ec-cs-closedBrdCol:#58606980;--ec-cs-openBrdWd:1px;--ec-cs-openPad:0;--ec-cs-openMarg:0;--ec-cs-openBgCol:transparent;--ec-cs-openBgColCollapsible:#5860691a;--ec-cs-openBrdCol:transparent;--ec-cs-expandIcon:url(&quot;data:image/svg+xml,%3Csvg%20xmlns%3D&apos;http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg&apos;%20viewBox%3D&apos;0%200%2016%2016&apos;%3E%3Cpath%20d%3D&apos;m8.177.677%202.896%202.896a.25.25%200%200%201-.177.427H8.75v1.25a.75.75%200%200%201-1.5%200V4H5.104a.25.25%200%200%201-.177-.427L7.823.677a.25.25%200%200%201%20.354%200ZM7.25%2010.75a.75.75%200%200%201%201.5%200V12h2.146a.25.25%200%200%201%20.177.427l-2.896%202.896a.25.25%200%200%201-.354%200l-2.896-2.896A.25.25%200%200%201%205.104%2012H7.25v-1.25Zm-5-2a.75.75%200%200%200%200-1.5h-.5a.75.75%200%200%200%200%201.5h.5ZM6%208a.75.75%200%200%201-.75.75h-.5a.75.75%200%200%201%200-1.5h.5A.75.75%200%200%201%206%208Zm2.25.75a.75.75%200%200%200%200-1.5h-.5a.75.75%200%200%200%200%201.5h.5ZM12%208a.75.75%200%200%201-.75.75h-.5a.75.75%200%200%201%200-1.5h.5A.75.75%200%200%201%2012%208Zm2.25.75a.75.75%200%200%200%200-1.5h-.5a.75.75%200%200%200%200%201.5h.5Z&apos;%2F%3E%3C%2Fsvg%3E&quot;);--ec-cs-collapseIcon:url(&quot;data:image/svg+xml,%3Csvg%20xmlns%3D&apos;http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg&apos;%20viewBox%3D&apos;0%200%2016%2016&apos;%3E%3Cpath%20d%3D&apos;M10.896%202H8.75V.75a.75.75%200%200%200-1.5%200V2H5.104a.25.25%200%200%200-.177.427l2.896%202.896a.25.25%200%200%200%20.354%200l2.896-2.896A.25.25%200%200%200%2010.896%202ZM8.75%2015.25a.75.75%200%200%201-1.5%200V14H5.104a.25.25%200%200%201-.177-.427l2.896-2.896a.25.25%200%200%201%20.354%200l2.896%202.896a.25.25%200%200%201-.177.427H8.75v1.25Zm-6.5-6.5a.75.75%200%200%200%200-1.5h-.5a.75.75%200%200%200%200%201.5h.5ZM6%208a.75.75%200%200%201-.75.75h-.5a.75.75%200%200%201%200-1.5h.5A.75.75%200%200%201%206%208Zm2.25.75a.75.75%200%200%200%200-1.5h-.5a.75.75%200%200%200%200%201.5h.5ZM12%208a.75.75%200%200%201-.75.75h-.5a.75.75%200%200%201%200-1.5h.5A.75.75%200%200%201%2012%208Zm2.25.75a.75.75%200%200%200%200-1.5h-.5a.75.75%200%200%200%200%201.5h.5Z&apos;%2F%3E%3C%2Fsvg%3E&quot;)}.expressive-code .ec-line :where(span[style^=&apos;--&apos;]:not([class])),:root:not([data-theme=&quot;dark&quot;]) .expressive-code[data-theme=&quot;dark&quot;] .ec-line :where(span[style^=&apos;--&apos;]:not([class])){color:var(--0, inherit);background-color:var(--0bg, transparent);font-style:var(--0fs, inherit);font-weight:var(--0fw, inherit);text-decoration:var(--0td, inherit)}@media (prefers-color-scheme: light){:root:not([data-theme=&quot;dark&quot;]){--ec-brdCol:#e1e4e8;--ec-codeBg:#fff;--ec-codeFg:#24292e;--ec-codeSelBg:#0366d625;--ec-gtrFg:#1b1f2381;--ec-gtrBrdCol:#1b1f2333;--ec-gtrHlFg:#24292eab;--ec-uiSelBg:#e2e5e9;--ec-uiSelFg:#2f363d;--ec-focusBrd:#2188ff;--ec-sbThumbCol:#959da533;--ec-sbThumbHoverCol:#959da5eb;--ec-tm-markBg:#9fb6ff80;--ec-tm-insBg:#94c68480;--ec-tm-insDiffIndCol:#3a692fd0;--ec-tm-delBg:#fea09280;--ec-tm-delDiffIndCol:#97453dd0;--ec-frm-shdCol:#00000028;--ec-frm-frameBoxShdCssVal:0.1rem 0.1rem 0.2rem #00000028;--ec-frm-edActTabBg:#fff;--ec-frm-edActTabFg:#2f363d;--ec-frm-edActTabIndBtmCol:#fff;--ec-frm-edTabBarBg:#f6f8fa;--ec-frm-edTabBarBrdCol:#e1e4e8;--ec-frm-edTabBarBrdBtmCol:#e1e4e8;--ec-frm-edBg:#fff;--ec-frm-trmTtbFg:#2f363d;--ec-frm-trmTtbDotsFg:#2f363d;--ec-frm-trmTtbBg:#fff;--ec-frm-trmTtbBrdBtmCol:#e1e4e8;--ec-frm-trmBg:#f6f8fa;--ec-frm-inlBtnFg:#24292e;--ec-frm-inlBtnBg:#24292e;--ec-frm-inlBtnBrd:#24292e;--ec-frm-tooltipSuccessBg:#208638;--ec-cs-closedTextCol:#24292e;--ec-cs-closedBgCol:#d1d5da33;--ec-cs-closedBrdCol:#d1d5da80;--ec-cs-openBgColCollapsible:#d1d5da1a}:root:not([data-theme=&quot;dark&quot;]) .expressive-code .ec-line :where(span[style^=&apos;--&apos;]:not([class])){color:var(--1, inherit);background-color:var(--1bg, transparent);font-style:var(--1fs, inherit);font-weight:var(--1fw, inherit);text-decoration:var(--1td, inherit)}}:root[data-theme=&quot;light&quot;] .expressive-code:not([data-theme=&quot;dark&quot;]),.expressive-code[data-theme=&quot;light&quot;]{--ec-brdCol:#e1e4e8;--ec-codeBg:#fff;--ec-codeFg:#24292e;--ec-codeSelBg:#0366d625;--ec-gtrFg:#1b1f2381;--ec-gtrBrdCol:#1b1f2333;--ec-gtrHlFg:#24292eab;--ec-uiSelBg:#e2e5e9;--ec-uiSelFg:#2f363d;--ec-focusBrd:#2188ff;--ec-sbThumbCol:#959da533;--ec-sbThumbHoverCol:#959da5eb;--ec-tm-markBg:#9fb6ff80;--ec-tm-insBg:#94c68480;--ec-tm-insDiffIndCol:#3a692fd0;--ec-tm-delBg:#fea09280;--ec-tm-delDiffIndCol:#97453dd0;--ec-frm-shdCol:#00000028;--ec-frm-frameBoxShdCssVal:0.1rem 0.1rem 0.2rem #00000028;--ec-frm-edActTabBg:#fff;--ec-frm-edActTabFg:#2f363d;--ec-frm-edActTabIndBtmCol:#fff;--ec-frm-edTabBarBg:#f6f8fa;--ec-frm-edTabBarBrdCol:#e1e4e8;--ec-frm-edTabBarBrdBtmCol:#e1e4e8;--ec-frm-edBg:#fff;--ec-frm-trmTtbFg:#2f363d;--ec-frm-trmTtbDotsFg:#2f363d;--ec-frm-trmTtbBg:#fff;--ec-frm-trmTtbBrdBtmCol:#e1e4e8;--ec-frm-trmBg:#f6f8fa;--ec-frm-inlBtnFg:#24292e;--ec-frm-inlBtnBg:#24292e;--ec-frm-inlBtnBrd:#24292e;--ec-frm-tooltipSuccessBg:#208638;--ec-cs-closedTextCol:#24292e;--ec-cs-closedBgCol:#d1d5da33;--ec-cs-closedBrdCol:#d1d5da80;--ec-cs-openBgColCollapsible:#d1d5da1a}:root[data-theme=&quot;light&quot;] .expressive-code:not([data-theme=&quot;dark&quot;]) .ec-line :where(span[style^=&apos;--&apos;]:not([class])),.expressive-code[data-theme=&quot;light&quot;] .ec-line :where(span[style^=&apos;--&apos;]:not([class])){color:var(--1, inherit);background-color:var(--1bg, transparent);font-style:var(--1fs, inherit);font-weight:var(--1fw, inherit);text-decoration:var(--1td, inherit)}&lt;/style&gt;&lt;script type=&quot;module&quot;&gt;try{(()=&gt;{function a(e){if(!e)return;let t=e.getAttribute(&quot;tabindex&quot;)!==null,r=e.scrollWidth&gt;e.clientWidth;r&amp;&amp;!t?(e.setAttribute(&quot;tabindex&quot;,&quot;0&quot;),e.setAttribute(&quot;role&quot;,&quot;region&quot;)):!r&amp;&amp;t&amp;&amp;(e.removeAttribute(&quot;tabindex&quot;),e.removeAttribute(&quot;role&quot;))}var u=window.requestIdleCallback||(e=&gt;setTimeout(e,1)),s=window.cancelIdleCallback||clearTimeout;function l(e){let t=new Set,r,n;return new ResizeObserver(c=&gt;{c.forEach(o=&gt;t.add(o.target)),r&amp;&amp;clearTimeout(r),n&amp;&amp;s(n),r=setTimeout(()=&gt;{n&amp;&amp;s(n),n=u(()=&gt;{t.forEach(o=&gt;e(o)),t.clear()})},250)})}function i(e,t){e.querySelectorAll?.(&quot;.expressive-code pre &gt; code&quot;).forEach(r=&gt;{let n=r.parentElement;n&amp;&amp;t.observe(n)})}var d=l(a);i(document,d);var b=new MutationObserver(e=&gt;e.forEach(t=&gt;t.addedNodes.forEach(r=&gt;{i(r,d)})));b.observe(document.body,{childList:!0,subtree:!0});document.addEventListener(&quot;astro:page-load&quot;,()=&gt;{i(document,d)});})();}catch(e){console.error(&quot;[EC] tabindex-js-module failed:&quot;,e)}&lt;/script&gt;&lt;script type=&quot;module&quot;&gt;try{(()=&gt;{function l(o){let e=document.createElement(&quot;pre&quot;);Object.assign(e.style,{opacity:&quot;0&quot;,pointerEvents:&quot;none&quot;,position:&quot;absolute&quot;,overflow:&quot;hidden&quot;,left:&quot;0&quot;,top:&quot;0&quot;,width:&quot;20px&quot;,height:&quot;20px&quot;,webkitUserSelect:&quot;auto&quot;,userSelect:&quot;all&quot;}),e.ariaHidden=&quot;true&quot;,e.textContent=o,document.body.appendChild(e);let a=document.createRange();a.selectNode(e);let n=getSelection();if(!n)return!1;n.removeAllRanges(),n.addRange(a);let r=!1;try{r=document.execCommand(&quot;copy&quot;)}finally{n.removeAllRanges(),document.body.removeChild(e)}return r}async function u(o){let e=o.currentTarget,a=e.dataset,n=!1,r=a.code.replace(/\u007f/g,`
`);try{await navigator.clipboard.writeText(r),n=!0}catch{n=l(r)}if(!n||e.parentNode?.querySelector(&quot;.feedback&quot;))return;let c=e.parentNode?.querySelector(&quot;[aria-live]&quot;),t=document.createElement(&quot;div&quot;);t.classList.add(&quot;feedback&quot;),t.append(a.copied),c.append(t),t.offsetWidth,requestAnimationFrame(()=&gt;t?.classList.add(&quot;show&quot;));let s=()=&gt;!t||t.classList.remove(&quot;show&quot;),d=()=&gt;{!t||parseFloat(getComputedStyle(t).opacity)&gt;0||(t.remove(),t=void 0)};setTimeout(s,1500),setTimeout(d,2500),e.addEventListener(&quot;blur&quot;,s),t.addEventListener(&quot;transitioncancel&quot;,d),t.addEventListener(&quot;transitionend&quot;,d)}function i(o){o.querySelectorAll?.(&quot;.expressive-code .copy button&quot;).forEach(e=&gt;e.addEventListener(&quot;click&quot;,u))}i(document);var m=new MutationObserver(o=&gt;o.forEach(e=&gt;e.addedNodes.forEach(a=&gt;{i(a)})));m.observe(document.body,{childList:!0,subtree:!0});document.addEventListener(&quot;astro:page-load&quot;,()=&gt;{i(document)});})();}catch(e){console.error(&quot;[EC] copy-js-module failed:&quot;,e)}&lt;/script&gt;&lt;figure class=&quot;frame&quot;&gt;&lt;figcaption class=&quot;header&quot;&gt;&lt;/figcaption&gt;&lt;pre data-language=&quot;swift&quot;&gt;&lt;code&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;1&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;import&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#B392F0;--1:#6F42C1&quot;&gt;SwiftUI&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;2&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;import&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#B392F0;--1:#6F42C1&quot;&gt;UserMessagingPlatform&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;3&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;4&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;struct&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#B392F0;--1:#6F42C1&quot;&gt;ContentView&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;: &lt;/span&gt;&lt;span style=&quot;--0:#B392F0;--1:#6F42C1&quot;&gt;View &lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;{&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;5&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;@AppStorage&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;--0:#9ECBFF;--1:#032F62&quot;&gt;&quot;gdprConsentShown&quot;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;) &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;var&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; gdprConsentShown &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#79B8FF;--1:#005CC5&quot;&gt;false&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;6&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;7&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;var&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; body: &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;some&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; View {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;8&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;      &lt;/span&gt;&lt;span style=&quot;--0:#79B8FF;--1:#005CC5&quot;&gt;VStack&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;9&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;      &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;10&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;--0:#79B8FF;--1:#005CC5&quot;&gt;onAppear&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;11&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;          &lt;/span&gt;&lt;span style=&quot;--0:#79B8FF;--1:#005CC5&quot;&gt;gdprConsentCheck&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;()&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;12&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;13&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;14&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;15&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;func&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#B392F0;--1:#6F42C1&quot;&gt;gdprConsentCheck&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;() {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;details class=&quot;ec-section github&quot;&gt;&lt;summary&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;expand&quot;&gt;&lt;/span&gt;&lt;span class=&quot;collapse&quot;&gt;&lt;/span&gt;&lt;span class=&quot;text&quot;&gt;55 collapsed lines&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/summary&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;16&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;guard&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;!&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;gdprConsentShown &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;else&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; { &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; }&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;17&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;18&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;--0:#99A0A6;--1:#616972&quot;&gt;// Create a UMPRequestParameters object.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;19&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;let&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; parameters &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#79B8FF;--1:#005CC5&quot;&gt;UMPRequestParameters&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;()&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;20&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;let&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; debugSettings &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#79B8FF;--1:#005CC5&quot;&gt;UMPDebugSettings&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; ()&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;21&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;--0:#99A0A6;--1:#616972&quot;&gt;// - This is for mimicking EEA users when you&apos;re outside the EU.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;22&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;--0:#99A0A6;--1:#616972&quot;&gt;// - Use a simulator so you can read the consent form.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;23&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;debugSettings.geography &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; .EEA&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;24&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;parameters.debugSettings &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; debugSettings&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;25&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;26&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;--0:#99A0A6;--1:#616972&quot;&gt;// Set tag for under age of consent. false means users are not under the age of consent. If you turn this on, no consent form is presented.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;27&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;parameters.tagForUnderAgeOfConsent &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#79B8FF;--1:#005CC5&quot;&gt;false&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;28&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;29&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;--0:#99A0A6;--1:#616972&quot;&gt;// Request an update for the consent information.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;30&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;UMPConsentInformation.sharedInstance.&lt;/span&gt;&lt;span style=&quot;--0:#79B8FF;--1:#005CC5&quot;&gt;requestConsentInfoUpdate&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;--0:#79B8FF;--1:#005CC5&quot;&gt;with&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;: parameters) { (requestConsentError) &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;in&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;31&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;let&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; consentError &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; requestConsentError {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;32&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;--0:#99A0A6;--1:#616972&quot;&gt;// Consent gathering failed.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;33&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#79B8FF;--1:#005CC5&quot;&gt;print&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;--0:#9ECBFF;--1:#032F62&quot;&gt;&quot;Error: &lt;/span&gt;&lt;span style=&quot;--0:#9ECBFF;--1:#032F62&quot;&gt;\(consentError.&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;localizedDescription&lt;/span&gt;&lt;span style=&quot;--0:#9ECBFF;--1:#032F62&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;--0:#9ECBFF;--1:#032F62&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;34&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;            &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;35&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;--0:#99A0A6;--1:#616972&quot;&gt;// Load and present the consent form.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;36&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;--0:#79B8FF;--1:#005CC5&quot;&gt;loadAndPresentConsentForm&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;()&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;37&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;38&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;39&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;40&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;func&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#B392F0;--1:#6F42C1&quot;&gt;loadAndPresentConsentForm&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;() {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;41&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;UMPConsentForm.&lt;/span&gt;&lt;span style=&quot;--0:#79B8FF;--1:#005CC5&quot;&gt;load&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; { (form, loadError) &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;in&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;42&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;let&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; error &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; loadError {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;43&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;--0:#99A0A6;--1:#616972&quot;&gt;// Consent form could not be loaded.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;44&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#79B8FF;--1:#005CC5&quot;&gt;print&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;--0:#9ECBFF;--1:#032F62&quot;&gt;&quot;Error: &lt;/span&gt;&lt;span style=&quot;--0:#9ECBFF;--1:#032F62&quot;&gt;\(error.&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;localizedDescription&lt;/span&gt;&lt;span style=&quot;--0:#9ECBFF;--1:#032F62&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;--0:#9ECBFF;--1:#032F62&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;45&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;            &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;46&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;47&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;let&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; form &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; form {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;48&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;let&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; windowScene &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; UIApplication.shared.connectedScenes.&lt;/span&gt;&lt;span style=&quot;--0:#79B8FF;--1:#005CC5&quot;&gt;first&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;as?&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; UIWindowScene {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;49&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;let&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; window &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; windowScene.windows.&lt;/span&gt;&lt;span style=&quot;--0:#79B8FF;--1:#005CC5&quot;&gt;first&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;50&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;                        &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;let&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; rootViewController &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; window.rootViewController {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;51&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;                            &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;form.&lt;/span&gt;&lt;span style=&quot;--0:#79B8FF;--1:#005CC5&quot;&gt;present&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;--0:#79B8FF;--1:#005CC5&quot;&gt;from&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;: rootViewController) { (dismissError) &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;in&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;52&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;                                &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;let&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; error &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; dismissError {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;53&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;                                    &lt;/span&gt;&lt;span style=&quot;--0:#99A0A6;--1:#616972&quot;&gt;// Consent form could not be dismissed.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;54&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;                                    &lt;/span&gt;&lt;span style=&quot;--0:#79B8FF;--1:#005CC5&quot;&gt;print&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;--0:#9ECBFF;--1:#032F62&quot;&gt;&quot;Error: &lt;/span&gt;&lt;span style=&quot;--0:#9ECBFF;--1:#032F62&quot;&gt;\(error.&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;localizedDescription&lt;/span&gt;&lt;span style=&quot;--0:#9ECBFF;--1:#032F62&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;--0:#9ECBFF;--1:#032F62&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;55&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;                                    &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;gdprConsentShown &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#79B8FF;--1:#005CC5&quot;&gt;false&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;56&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;                                &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;} &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;else&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;57&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;                                    &lt;/span&gt;&lt;span style=&quot;--0:#99A0A6;--1:#616972&quot;&gt;// Consent form was dismissed.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;58&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;                                    &lt;/span&gt;&lt;span style=&quot;--0:#99A0A6;--1:#616972&quot;&gt;// Check the consent status.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;59&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;                                    &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;let&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; status &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; UMPConsentInformation.sharedInstance.consentStatus&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;60&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;                                    &lt;/span&gt;&lt;span style=&quot;--0:#79B8FF;--1:#005CC5&quot;&gt;print&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;--0:#9ECBFF;--1:#032F62&quot;&gt;&quot;Consent status: &lt;/span&gt;&lt;span style=&quot;--0:#9ECBFF;--1:#032F62&quot;&gt;\(status)&lt;/span&gt;&lt;span style=&quot;--0:#9ECBFF;--1:#032F62&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;61&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;                                    &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;gdprConsentShown &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#79B8FF;--1:#005CC5&quot;&gt;true&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;62&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;                                &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;63&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;                            &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;64&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;                        &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;65&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;                    &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;66&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;                &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;67&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;            &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;68&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;69&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;70&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/details&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div class=&quot;copy&quot;&gt;&lt;div aria-live=&quot;polite&quot;&gt;&lt;/div&gt;&lt;button title=&quot;Copy to clipboard&quot; data-copied=&quot;Copied!&quot; data-code=&quot;import SwiftUIimport UserMessagingPlatformstruct ContentView: View {  @AppStorage(&amp;#x22;gdprConsentShown&amp;#x22;) var gdprConsentShown = false  var body: some View {      VStack {      }        .onAppear {          gdprConsentCheck()        }  }    func gdprConsentCheck() {        guard !gdprConsentShown else { return }        // Create a UMPRequestParameters object.        let parameters = UMPRequestParameters()        let debugSettings = UMPDebugSettings ()        // - This is for mimicking EEA users when you&amp;#x27;re outside the EU.        // - Use a simulator so you can read the consent form.        debugSettings.geography = .EEA        parameters.debugSettings = debugSettings        // Set tag for under age of consent. false means users are not under the age of consent. If you turn this on, no consent form is presented.        parameters.tagForUnderAgeOfConsent = false        // Request an update for the consent information.        UMPConsentInformation.sharedInstance.requestConsentInfoUpdate(with: parameters) { (requestConsentError) in            if let consentError = requestConsentError {                // Consent gathering failed.                return print(&amp;#x22;Error: \(consentError.localizedDescription)&amp;#x22;)            }            // Load and present the consent form.            loadAndPresentConsentForm()        }    }    func loadAndPresentConsentForm() {        UMPConsentForm.load { (form, loadError) in            if let error = loadError {                // Consent form could not be loaded.                return print(&amp;#x22;Error: \(error.localizedDescription)&amp;#x22;)            }            if let form = form {                if let windowScene = UIApplication.shared.connectedScenes.first as? UIWindowScene {                    if let window = windowScene.windows.first {                        if let rootViewController = window.rootViewController {                            form.present(from: rootViewController) { (dismissError) in                                if let error = dismissError {                                    // Consent form could not be dismissed.                                    print(&amp;#x22;Error: \(error.localizedDescription)&amp;#x22;)                                    gdprConsentShown = false                                } else {                                    // Consent form was dismissed.                                    // Check the consent status.                                    let status = UMPConsentInformation.sharedInstance.consentStatus                                    print(&amp;#x22;Consent status: \(status)&amp;#x22;)                                    gdprConsentShown = true                                }                            }                        }                    }                }            }        }    }}&quot;&gt;&lt;div&gt;&lt;/div&gt;&lt;/button&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;Ja, die if let-Kaskade sieht hässlich aus, weil sie halb von ChatGPT stammt, aber du verstehst das Prinzip. Ich habe sie angepasst und alles in eine andere View ausgelagert.&lt;/p&gt;
&lt;p&gt;Für jede App, die ich erstelle, kopiere ich also einfach diese View und füge sie ein. So würde ich sie in meiner Haupt-View verwenden:&lt;/p&gt;
&lt;div class=&quot;expressive-code&quot;&gt;&lt;figure class=&quot;frame&quot;&gt;&lt;figcaption class=&quot;header&quot;&gt;&lt;/figcaption&gt;&lt;pre data-language=&quot;swift&quot;&gt;&lt;code&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;1&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;--0:#99A0A6;--1:#616972&quot;&gt;//for ads and consent form&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;2&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;@State&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;var&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; readyToShow &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#79B8FF;--1:#005CC5&quot;&gt;false&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;3&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;@State&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;private&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;var&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; bannerView: BannerView&lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;?&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#79B8FF;--1:#005CC5&quot;&gt;nil&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;4&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;--0:#99A0A6;--1:#616972&quot;&gt;/////&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;5&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;context&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;6&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;--0:#79B8FF;--1:#005CC5&quot;&gt;onAppear&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;() {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;7&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;--0:#99A0A6;--1:#616972&quot;&gt;// create the banner onAppear, readyToShow is false by default&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;8&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;            &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;bannerView &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#79B8FF;--1:#005CC5&quot;&gt;BannerView&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;--0:#79B8FF;--1:#005CC5&quot;&gt;readyToShow&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;: $readyToShow, &lt;/span&gt;&lt;span style=&quot;--0:#79B8FF;--1:#005CC5&quot;&gt;adUnitID&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;: &lt;/span&gt;&lt;span style=&quot;--0:#9ECBFF;--1:#032F62&quot;&gt;&quot;ca-app-pub-yourKeyHere&quot;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;9&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;--0:#99A0A6;--1:#616972&quot;&gt;// This performs the consent form logic inside the bannerView, if everything goes well, toggle readyToShow to true.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;10&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;            &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;bannerView&lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;?&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;--0:#79B8FF;--1:#005CC5&quot;&gt;gdprConsentCheck&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;()&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;11&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;12&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;--0:#79B8FF;--1:#005CC5&quot;&gt;toolbar&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;13&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;--0:#79B8FF;--1:#005CC5&quot;&gt;ToolbarItem&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;--0:#79B8FF;--1:#005CC5&quot;&gt;placement&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;: .bottomBar) {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;14&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;--0:#99A0A6;--1:#616972&quot;&gt;// So only users who passed the consent form will see this banner ad.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;15&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;!&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;adRemoved &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;&amp;#x26;&amp;#x26;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; readyToShow{&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;details class=&quot;ec-section github&quot;&gt;&lt;summary&gt;&lt;div class=&quot;ec-line&quot; style=&quot;--ecIndent:8ch&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;expand&quot;&gt;&lt;/span&gt;&lt;span class=&quot;collapse&quot;&gt;&lt;/span&gt;&lt;span class=&quot;text&quot;&gt;6 collapsed lines&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/summary&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;16&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;                    &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;bannerView&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;17&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;                        &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;--0:#79B8FF;--1:#005CC5&quot;&gt;frame&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;--0:#79B8FF;--1:#005CC5&quot;&gt;width&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;: GADAdSizeBanner.&lt;/span&gt;&lt;span style=&quot;--0:#79B8FF;--1:#005CC5&quot;&gt;size&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;.width, &lt;/span&gt;&lt;span style=&quot;--0:#79B8FF;--1:#005CC5&quot;&gt;height&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;: GADAdSizeBanner.&lt;/span&gt;&lt;span style=&quot;--0:#79B8FF;--1:#005CC5&quot;&gt;size&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;.height)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;18&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;                &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;19&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;20&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;            &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;21&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/details&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div class=&quot;copy&quot;&gt;&lt;div aria-live=&quot;polite&quot;&gt;&lt;/div&gt;&lt;button title=&quot;Copy to clipboard&quot; data-copied=&quot;Copied!&quot; data-code=&quot;    //for ads and consent form    @State var readyToShow = false    @State private var bannerView: BannerView? = nil    /////    context        .onAppear() {            // create the banner onAppear, readyToShow is false by default            bannerView = BannerView(readyToShow: $readyToShow, adUnitID: &amp;#x22;ca-app-pub-yourKeyHere&amp;#x22;)            // This performs the consent form logic inside the bannerView, if everything goes well, toggle readyToShow to true.            bannerView?.gdprConsentCheck()        }        .toolbar {            ToolbarItem(placement: .bottomBar) {                // So only users who passed the consent form will see this banner ad.                if !adRemoved &amp;#x26;&amp;#x26; readyToShow{                    bannerView                        .frame(width: GADAdSizeBanner.size.width, height: GADAdSizeBanner.size.height)                }            }        }&quot;&gt;&lt;div&gt;&lt;/div&gt;&lt;/button&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;h2 id=&quot;personalisierte-werbung&quot;&gt;Personalisierte Werbung&lt;/h2&gt;
&lt;p&gt;Um zu steuern, ob personalisierte Werbung angezeigt wird, haben wir früher die Werbeanfrage-Option ungefähr so gesetzt:&lt;/p&gt;
&lt;div class=&quot;expressive-code&quot;&gt;&lt;figure class=&quot;frame&quot;&gt;&lt;figcaption class=&quot;header&quot;&gt;&lt;/figcaption&gt;&lt;pre data-language=&quot;swift&quot;&gt;&lt;code&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;1&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;import&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#B392F0;--1:#6F42C1&quot;&gt;GoogleMobileAds&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;2&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;3&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;let&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; request &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#79B8FF;--1:#005CC5&quot;&gt;GADRequest&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;()&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;4&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;let&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; extras &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#79B8FF;--1:#005CC5&quot;&gt;GADExtras&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;()&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;5&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;extras.additionalParameters &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; [&lt;/span&gt;&lt;span style=&quot;--0:#9ECBFF;--1:#032F62&quot;&gt;&quot;npa&quot;&lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#9ECBFF;--1:#032F62&quot;&gt;&quot;1&quot;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;] &lt;/span&gt;&lt;span style=&quot;--0:#99A0A6;--1:#616972&quot;&gt;// This means no personalized ads are shown&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;6&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;request.&lt;/span&gt;&lt;span style=&quot;--0:#79B8FF;--1:#005CC5&quot;&gt;register&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;(extras)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div class=&quot;copy&quot;&gt;&lt;div aria-live=&quot;polite&quot;&gt;&lt;/div&gt;&lt;button title=&quot;Copy to clipboard&quot; data-copied=&quot;Copied!&quot; data-code=&quot;import GoogleMobileAdslet request = GADRequest()let extras = GADExtras()extras.additionalParameters = [&amp;#x22;npa&amp;#x22;: &amp;#x22;1&amp;#x22;] // This means no personalized ads are shownrequest.register(extras)&quot;&gt;&lt;div&gt;&lt;/div&gt;&lt;/button&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;Denk daran, dass wir ATT für die App-Store-Konformität einrichten müssen.&lt;/p&gt;
&lt;p&gt;Allerdings bringt es jetzt nichts mehr, mit Google AdMob zu interagieren. Denn wenn du UserMessagingPlatform verwendest, verwaltet Google die „Personalisierung“ auf seiner Plattform.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;„Falls das noch jemandem hilft: Bestätigt, dass man bei Verwendung des UMP SDK für Android npa=1 nicht setzen muss. Das UMP SDK schreibt den TCF-String in die Shared Preferences (relevante Infos unter &lt;a rel=&quot;nofollow noopener noreferrer&quot; target=&quot;_blank&quot; href=&quot;https://support.google.com/admob/answer/9760862&quot;&gt;https://support.google.com/admob/answer/9760862&lt;/a&gt;), und das Google Mobile Ads SDK liest den TCF-String bei Werbeanfragen aus.“ – Eric, Mobile Ads SDK Team – &lt;a rel=&quot;nofollow noopener noreferrer&quot; target=&quot;_blank&quot; href=&quot;https://groups.google.com/g/google-admob-ads-sdk/c/I6j0Pr-_ziY/m/Qf3pNezGBAAJ&quot; title=&quot;Google AdMob npa 1 usage&quot;&gt;Mehr erfahren&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Das habe ich im Google AdMob-Forum gelesen.&lt;/p&gt;
&lt;p&gt;Obwohl sie sagten, es gelte für Android, gehe ich davon aus, dass es auf iOS genauso funktioniert.&lt;/p&gt;
&lt;p&gt;Aber wir müssen ATT für Apple trotzdem implementieren, also behalte ich es vorerst bei.&lt;/p&gt;
&lt;p&gt;Ich hoffe, diese Anleitung vereinfacht die Dinge ein wenig und hilft dir.&lt;/p&gt;</content:encoded><media:thumbnail url="https://cms.hongct.com/assets/755d740d-459a-4f2c-b911-8599ad293c8c"/><enclosure url="https://cms.hongct.com/assets/755d740d-459a-4f2c-b911-8599ad293c8c" length="1134047" type="image/png"/></item><item><title>So aktualisieren Sie Xcode – 3 einfache Wege</title><link>https://hongcheung.com/de/post/how-to-update-xcode--3-easy-ways/</link><guid isPermaLink="true">https://hongcheung.com/de/post/how-to-update-xcode--3-easy-ways/</guid><description>Drei einfache Wege, um Xcode zu aktualisieren.</description><pubDate>Thu, 11 Jan 2024 12:00:00 GMT</pubDate><content:encoded>&lt;p&gt;&lt;img src=&quot;https://cms.hongct.com/assets/ea8cabf9-b8fd-4c6c-a18c-33d124d79b20&quot; alt=&quot;So aktualisieren Sie Xcode – 3 einfache Wege&quot; referrerpolicy=&quot;no-referrer&quot; loading=&quot;lazy&quot;/&gt;&lt;/p&gt;&lt;p&gt;Es gibt drei Wege, die ich kenne.&lt;/p&gt;
&lt;h2 id=&quot;1-app-store&quot;&gt;1. App Store&lt;/h2&gt;
&lt;p&gt;&lt;img loading=&quot;lazy&quot; decoding=&quot;async&quot; referrerpolicy=&quot;no-referrer&quot; src=&quot;https://cms.hongct.com/assets/5ab439c8-be22-42f5-99e9-5bfe3276f465&quot; alt=&quot;Xcode über den App Store aktualisieren&quot; title=&quot;Xcode im App Store finden&quot;&gt;&lt;/p&gt;
&lt;p&gt;Öffnen Sie Ihren Programme-Ordner, suchen Sie nach Xcode und klicken Sie auf Aktualisieren. Wenn Sie nur das Wort „Öffnen“ sehen, bedeutet das, dass Sie bereits die neueste Version von Xcode haben, die für Ihre macOS-Version verfügbar ist.&lt;/p&gt;
&lt;h2 id=&quot;2-apple-developer-website&quot;&gt;2. Apple Developer Website&lt;/h2&gt;
&lt;p&gt;&lt;img loading=&quot;lazy&quot; decoding=&quot;async&quot; referrerpolicy=&quot;no-referrer&quot; src=&quot;https://cms.hongct.com/assets/f0e898fe-5012-431d-8bf5-e5c46674c282&quot; alt=&quot;Apple Developer Downloadseite&quot;&gt;&lt;/p&gt;
&lt;p&gt;Gehen Sie zur &lt;a rel=&quot;nofollow noopener noreferrer&quot; target=&quot;_blank&quot; href=&quot;https://developer.apple.com/download/all/?q=xcode&quot; title=&quot;Apple Developer Downloadseite&quot;&gt;offiziellen Apple Developer Website&lt;/a&gt; und melden Sie sich mit Ihrem Developer-Account an. Suchen Sie dann nach Xcode. Sie können sogar ältere Versionen herunterladen.&lt;/p&gt;
&lt;h2 id=&quot;3-xcodes&quot;&gt;3. Xcodes&lt;/h2&gt;
&lt;p&gt;&lt;img loading=&quot;lazy&quot; decoding=&quot;async&quot; referrerpolicy=&quot;no-referrer&quot; src=&quot;https://cms.hongct.com/assets/7cd2b80f-de68-404c-855b-96a049fa95d0&quot; alt=&quot;Xcodes&quot;&gt;&lt;/p&gt;
&lt;p&gt;Xcodes ist eine Open-Source-Software, mit der Sie eine Liste verschiedener Xcode-Versionen zum Herunterladen erhalten. Es gibt eine App, die Sie in &lt;a rel=&quot;nofollow noopener noreferrer&quot; target=&quot;_blank&quot; href=&quot;https://github.com/XcodesOrg/XcodesApp&quot; title=&quot;Xcodes GitHub-Repo zum Aktualisieren von Xcode&quot;&gt;diesem GitHub-Repo&lt;/a&gt; herunterladen können. Sie müssen zu den Einstellungen gehen und sich mit Ihrem Developer-Account anmelden, bevor Sie Xcodes in der Liste sehen.&lt;/p&gt;
&lt;p&gt;Das Besondere an diesem Programm ist, dass Sie mehrere Versionen von Xcode installieren und ausführen können. Zum Beispiel habe ich gerade 14.2 und 15.1 bei mir. Es läuft wie am Schnürchen. Ich kann es wärmstens empfehlen.&lt;/p&gt;
&lt;h3 id=&quot;hinweis&quot;&gt;Hinweis&lt;/h3&gt;
&lt;p&gt;Das Aktualisieren über den App Store ist nicht empfehlenswert. Wie Sie sehen, hat Xcode nur 2 Sterne bekommen. Nicht wegen des Programms selbst, sondern weil der Download und die Installation über den App Store fehlerhaft sind.&lt;/p&gt;
&lt;p&gt;Ich persönlich habe zwei Mal versucht, mein Xcode über den App Store zu aktualisieren. Das erste Mal hat der Download und die Installation ein paar Stunden gedauert. Das zweite Mal habe ich auf „Aktualisieren“ geklickt, es heruntergeladen und installiert. Aber es zeigt und funktioniert immer noch als alte Version. Also habe ich schließlich Xcodes verwendet.&lt;/p&gt;
&lt;p&gt;Ich hoffe, das hilft.&lt;/p&gt;
&lt;p&gt;Viel Erfolg beim Programmieren, mein Freund.&lt;/p&gt;</content:encoded><media:thumbnail url="https://cms.hongct.com/assets/ea8cabf9-b8fd-4c6c-a18c-33d124d79b20"/><enclosure url="https://cms.hongct.com/assets/ea8cabf9-b8fd-4c6c-a18c-33d124d79b20" length="91986" type="image/png"/></item><item><title>Linux vs. Mac für die Programmierung</title><link>https://hongcheung.com/de/post/linux-vs-mac-for-programming/</link><guid isPermaLink="true">https://hongcheung.com/de/post/linux-vs-mac-for-programming/</guid><description>Welches solltest du wählen?</description><pubDate>Thu, 04 Jan 2024 12:00:00 GMT</pubDate><content:encoded>&lt;p&gt;&lt;img src=&quot;https://cms.hongct.com/assets/e28a3b16-2426-46b5-b1ac-ea3105443786&quot; alt=&quot;Linux vs. Mac für die Programmierung&quot; referrerpolicy=&quot;no-referrer&quot; loading=&quot;lazy&quot;/&gt;&lt;/p&gt;&lt;h2 id=&quot;einleitung&quot;&gt;Einleitung&lt;/h2&gt;
&lt;p&gt;Ich habe in letzter Zeit Linux Mint und Ubuntu ausprobiert, und vor einigen Jahren habe ich auch schon mal eine Linux-Distribution getestet. Damals habe ich noch nicht programmiert, ich habe einfach gern herumgebastelt, und ich habe immer einen Puppy-Linux-USB-Stick dabei. Ich gebe mir wirklich Mühe, und jetzt, wo ich besser programmieren kann, versuche ich es noch einmal – und lande trotzdem immer wieder bei Mac oder Windows.&lt;/p&gt;
&lt;hr&gt;
&lt;p&gt;&lt;strong&gt;Aktualisiert am 6. Mai 2025:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Der erste Teil richtet sich an Programmieranfänger. Wenn du dich mit Programmierung auskennst, springe zu &lt;a href=&quot;#Advanced&quot;&gt;diesem Abschnitt&lt;/a&gt;, um die Meinung eines erfahrenen Programmierers zu lesen.&lt;/strong&gt;&lt;/p&gt;
&lt;hr&gt;
&lt;h1 id=&quot;der-einstieg-ins-programmierenlernen&quot;&gt;Der Einstieg ins Programmierenlernen&lt;/h1&gt;
&lt;h2 id=&quot;fazit&quot;&gt;Fazit&lt;/h2&gt;
&lt;p&gt;Nimm einen Mac – und ich erkläre dir aus meiner Erfahrung, warum.&lt;/p&gt;
&lt;h2 id=&quot;warum-nicht-linux&quot;&gt;Warum nicht Linux&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Schwierigkeit&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Der Mac ist ein Betriebssystem für Endverbraucher, das heißt, viele seiner Funktionen und Benutzeroberflächen sind sehr benutzerfreundlich. Für die meisten Anwendungen gibt es einen Installer zum Herunterladen: anklicken, installieren, fertig.&lt;/p&gt;
&lt;p&gt;Linux hingegen ist weitgehend textbasiert, wenn du mit deinem PC irgendetwas machen willst. Glaube nicht den Leuten, die sagen, Linux Mint sei sehr Windows-ähnlich. Bis zu einem gewissen Punkt stimmt das, aber wenn du jemals etwas installieren willst, das nicht vorinstalliert oder im Software-Manager verfügbar ist (und das wirst du), musst du dir all die Kniffe erarbeiten, suchen und die Befehle ausprobieren, von denen andere behaupten, sie hätten bei ihnen funktioniert – nur um ein einfaches Programm zu installieren, das unter macOS und Windows mit einem Klick verfügbar ist.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Zeitaufwendig&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Um beim vorherigen Punkt anzuknüpfen: Wenn du jemals versuchst, etwas zu installieren, wirst du viel Zeit mit Herumtüfteln verbringen müssen. Vor allem damit, Alternativen für die Programme zu finden, die du von Windows oder Mac kennst und die es unter Linux nicht gibt. Das klingt alles großartig, weil du die meiste Zeit ohnehin mit dem Terminal am Code arbeitest, aber der Punkt ist: Du könntest all diese Zeit nutzen, um schon etwas mit Code zu bauen, etwa mit JavaScript, React, SQL, Python usw. Code, den du im Job verwendest oder um eine Website oder eine Anwendung zu bauen. Ich sage nicht, dass du kein Bash verwenden wirst, es ist nur nicht nötig.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Betriebssystem-Zicken&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Wenn du ein Gerät gekauft hast, auf dem Linux ab Werk installiert ist, ist das großartig. Wenn du eine Linux-Distribution auf einem Gerät installierst, das ursprünglich mit Windows oder Mac lief, wirst du höchstwahrscheinlich auf einige Probleme beim Betrieb des Systems stoßen. Es kann sein, dass das Betriebssystem einwandfrei läuft, aber irgendetwas gibt es immer zu beheben. Um nur ein paar Beispiele zu nennen: Vielleicht friert Zoom gelegentlich ein, vielleicht funktioniert die Tastaturbeleuchtung auf deinem Laptop nicht, das WLAN ist langsamer usw. Denn Linux-Kernel und Treiber werden größtenteils von der Community beigesteuert, was großartig ist, aber auch bedeutet, dass niemand die Verantwortung für deinen Laptop übernimmt – du musst selbst herausfinden, warum und wie, mit Code. Sehr oft werden diese Probleme durch Hardware-Inkompatibilität mit der Linux-Distribution verursacht.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Community&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Große Linux-Distributionen wie Ubuntu und Linux Mint haben die größte Nutzerbasis. Wenn du gerade erst mit Linux anfängst, wird dir dringend empfohlen, eine der beiden zu wählen, denn mehr Nutzer bedeuten mehr Lösungen für Probleme. Allerdings hat der Mac deutlich mehr Support als Linux. Entweder direkt auf der Apple-Website, oder du findest die passende Lösung für dein MacBook-Modell viel leichter.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Programmieren lernen&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Viele Programmier-Tutorials sind für Mac und Windows gemacht. Auch wenn wir die meiste Zeit in VSCode arbeiten werden, musst du für manche Anpassungen trotzdem mit dem Terminal des Betriebssystems interagieren, und Linux funktioniert da einfach etwas anders. Du findest immer Lösungen und Alternativen für dein Problem, aber nochmal: Das muss man nicht wissen, wenn man zum Beispiel nur Frontend-Entwickler werden will.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Persönlicher PC&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Für mich ist der Mac ein persönlicher PC, Linux nicht. Viele der integrierten Funktionen des Mac sind so einfach zu bedienen und hoch angesehen, besonders wenn du ein iPhone hast: Du kannst zwischen deinen Apple-Geräten kopieren und einfügen, AirDrop nutzen usw.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Allseitigkeit&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Auf einem Mac kannst du alles machen, was du unter Linux machst, aber nicht umgekehrt. Wenn du zum Beispiel eine mobile App für iOS bauen willst, steht dir Xcode zur Verfügung. Wenn du VSCode nutzen willst, bieten das natürlich beide. Wenn du die Kommandozeile bevorzugst, bietet der Mac ebenfalls ein Terminal.&lt;/p&gt;
&lt;h3 id=&quot;fazit-für-anfänger&quot;&gt;Fazit für Anfänger&lt;/h3&gt;
&lt;p&gt;Der Mac ist wohl robuster, vielseitiger, vertrauenswürdiger ohne Herumgebastel und unkompliziert – sowohl für deine Programmier- als auch für deine persönlichen Bedürfnisse. Ich kann dir Linux nur empfehlen, wenn du Apple oder teure Geräte einfach nicht magst. Aber auch dann kannst du immer ein gebrauchtes MacBook bekommen. Es lohnt sich, einfach ein MacBook zu holen, um Linux nicht zu nutzen. Haha, ich weiß, ich bin voreingenommen.&lt;/p&gt;
&lt;p&gt;Nichtsdestotrotz wünsche ich dir viel Erfolg.&lt;/p&gt;
&lt;p&gt;Code on.&lt;/p&gt;
&lt;hr&gt;
&lt;h1 id=&quot;zusätzliche-absätze-für-den-erfahrenen-programmierer&quot;&gt;Zusätzliche Absätze für den erfahrenen Programmierer&lt;/h1&gt;
&lt;p&gt;Was ich oben geschrieben habe, richtet sich an diejenigen, die keine oder nur wenig Erfahrung mit Programmierung haben. Und mein Hauptpunkt ist, dass macOS für jeden, der Programmieren lernt, unkomplizierter den Einstieg ermöglicht und gleichzeitig ein Mac deine persönlichen Bedürfnisse abdeckt. Wenn es zu viele Hürden gibt, kann das Lernende entmutigen, was zum Aufgeben führen kann.&lt;/p&gt;
&lt;p&gt;Wenn du dich jedoch mit Programmierung auskennst, kann die Sache anders aussehen.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;em&gt;Der folgende Teil wird technischer…&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;h2 id=&quot;du-kennst-dich-also-mit-programmierung-aus-und-bist-linux-gewohnt--welches-solltest-du-wirklich-wählen&quot;&gt;Du kennst dich also mit Programmierung aus und bist Linux gewohnt – welches solltest du wirklich wählen?&lt;/h2&gt;
&lt;p&gt;Persönlich bevorzuge ich immer noch ein MacBook der M-Serie gegenüber anderen Rechnern, und ich habe in den letzten Jahren auf diesem M2 MacBook Air sehr viel erledigt.&lt;/p&gt;
&lt;p&gt;Hardwaremäßig ist es ein schnelles und stabiles Gerät mit herausragender Akkulaufzeit, großartigem Trackpad, leiser Tastatur, ordentlichem Bildschirm, leise und mit eingebauten Lautsprechern.&lt;/p&gt;
&lt;p&gt;Softwaremäßig war es problemlos, läuft reibungslos, und ich bekomme jede Software auf meinem Mac sehr einfach – sei es per Download oder mit brew.&lt;/p&gt;
&lt;p&gt;Ich gebe zu, dass ich mit dem Programmierenlernen auf einem alten MacBook Air von 2015 begonnen habe und seitdem auf dem MacBook-Weg geblieben bin. Aber das liegt hauptsächlich daran, dass ich iOS-Apps erstellen wollte. Wenn du keine nativen Apple-Apps erstellen willst, musst du keinen Mac kaufen. Das führt zum folgenden ersten Punkt.&lt;/p&gt;
&lt;h2 id=&quot;was-für-eine-art-von-programmierung-machst-du&quot;&gt;Was für eine Art von Programmierung machst du?&lt;/h2&gt;
&lt;h3 id=&quot;mobile-apps-apple-apps&quot;&gt;Mobile Apps; Apple-Apps&lt;/h3&gt;
&lt;p&gt;Willst du native Apps für Apple-Geräte erstellen? Wenn ja, hol dir einen Mac. Das Wort „native“ ist hier entscheidend, denn technisch gesehen kannst du mit React Native und Expo auch Apps für Apple-Geräte schreiben – sie haben einen Cloud-Compiler, der die Xcode-Kompilierung für dich übernimmt. Du kannst also einen Linux- oder Windows-Rechner zum Programmieren verwenden und es zur Kompilierung an die Expo-Cloud übermitteln. In der Realität ist es jedoch immer viel besser, einfach einen Mac zu holen, selbst einen alten. Lokal zu bauen erlaubt dir, deinen Code zu überblicken, und macht Änderungen dadurch viel einfacher und unkomplizierter.&lt;/p&gt;
&lt;p&gt;Wenn du hauptsächlich Websites oder Backend-Server machst, kannst du jeden Computer nehmen, sogar Windows. Für solche Programmieraufgaben gibt es keine grafischen Anforderungen, also erledigt das auch ein alter Lenovo ThinkPad problemlos.&lt;/p&gt;
&lt;p&gt;Um Android-Apps musst du dir keine Sorgen machen. Die kannst du ohnehin auf jeder Plattform programmieren.&lt;/p&gt;
&lt;h3 id=&quot;spiele&quot;&gt;Spiele&lt;/h3&gt;
&lt;p&gt;Wenn du jedoch Spiele programmierst oder Sprach-/Machine-Learning-Modelle ausführen oder trainieren musst, ist es ratsam, einen leistungsstarken PC mit Windows/Linux statt eines Mac zu holen. So bekommst du mehr für dein Geld. Ganz zu schweigen davon, dass die Performance von Unreal Engine 5 im Vergleich zu einem Windows-Rechner unterdurchschnittlich war, als ich das letzte Mal nachgesehen habe – weil sie einfach noch nicht für Apple Silicon optimiert ist.&lt;/p&gt;
&lt;p&gt;Es sei denn, du programmierst in Godot oder Unity. Ein MacBook ist für diese leichtgewichtigen Game-Engines auch gut genug.&lt;/p&gt;
&lt;h2 id=&quot;software&quot;&gt;Software&lt;/h2&gt;
&lt;h3 id=&quot;docker&quot;&gt;Docker&lt;/h3&gt;
&lt;p&gt;Docker zu nutzen ist einfach: Du bekommst Docker Desktop für macOS als .dmg. Doppelklicken zum Installieren, und los geht’s.&lt;/p&gt;
&lt;h3 id=&quot;lokales-postgres&quot;&gt;Lokales Postgres&lt;/h3&gt;
&lt;p&gt;&lt;a rel=&quot;nofollow noopener noreferrer&quot; target=&quot;_blank&quot; href=&quot;https://postgresapp.com/&quot;&gt;Postgres.app&lt;/a&gt; ist genauso einfach, kinderleicht.&lt;/p&gt;
&lt;h3 id=&quot;simulator&quot;&gt;Simulator&lt;/h3&gt;
&lt;p&gt;Du bekommst einen iPhone- oder iPad-Simulator auf einem MacBook, egal mit welchem Programmier-Framework. Flutter, React Native, SwiftUI usw. – du nennst es, es läuft auf dem MacBook. Du kannst auch Linux in UTM installieren, um Ubuntu auf deinem Mac laufen zu lassen, aber nicht umgekehrt.&lt;/p&gt;
&lt;h3 id=&quot;code-editor&quot;&gt;Code-Editor&lt;/h3&gt;
&lt;p&gt;Nun ja, jede IDE gibt es heutzutage auf jeder Plattform.&lt;/p&gt;
&lt;h2 id=&quot;allerletztes-fazit&quot;&gt;Allerletztes Fazit&lt;/h2&gt;
&lt;p&gt;Die entscheidende Frage, die du dir stellen musst, ist also: Willst du mobile Apps für Apple-Geräte erstellen oder nicht?&lt;/p&gt;
&lt;p&gt;Du wirst dir ein MacBook holen müssen, nur um eine vollständige Apple-App-Entwicklungserfahrung zu bekommen, selbst wenn du ein plattformübergreifendes Framework verwendest. Das macht das Leben einfach viel leichter.&lt;/p&gt;
&lt;p&gt;Ich mag Apples geschlossenen Garten und die unnötigen Aufpreise für zusätzlichen Speicher nicht, aber sie machen großartige Produkte.&lt;/p&gt;
&lt;p&gt;Was ich dir empfehle: Wenn du jetzt nur einen Windows-PC hast, installiere Ubuntu oder sogar Linux Mint und schau, ob es dir gefällt. Wenn ja, nutze es weiter, bis du wirklich einen Mac brauchst.&lt;/p&gt;
&lt;p&gt;Ich bin auch ein Befürworter davon, sich den Computer zu holen, den man wirklich will. Er kann dich zum Arbeiten bringen, einfach weil das Gerät selbst Freude macht.&lt;/p&gt;
&lt;h4 id=&quot;randnotizen&quot;&gt;Randnotizen&lt;/h4&gt;
&lt;h5 id=&quot;mehr-über-apple-apps&quot;&gt;Mehr über Apple-Apps&lt;/h5&gt;
&lt;p&gt;Ein paar Dinge, die du vor deiner Entscheidung beachten solltest:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Nur ein MacBook, das das neueste OS ausführt, kann mit der neuesten Apple-API entwickeln
&lt;ul&gt;
&lt;li&gt;Zum Beispiel können Dinge wie KI nur auf einem Mac mit Apple Silicon entwickelt werden.&lt;/li&gt;
&lt;li&gt;Vision OS kann nur auf einem Mac mit Apple Silicon entwickelt werden.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Machine Learning kann nur auf einem physischen Gerät laufen, nicht auf einem Simulator. - Du brauchst ein iPhone/iPad, um deine App zu testen, wenn du ein Machine-Learning-Modell auf dem Gerät implementiert hast. Es stürzt einfach ab, wenn du versuchst, es auf einem iPhone-Simulator auszuführen.&lt;/li&gt;
&lt;/ul&gt;</content:encoded><media:thumbnail url="https://cms.hongct.com/assets/e28a3b16-2426-46b5-b1ac-ea3105443786"/><enclosure url="https://cms.hongct.com/assets/e28a3b16-2426-46b5-b1ac-ea3105443786" length="165412" type="image/jpeg"/></item><item><title>So beheben Sie FullyQualifiedErrorId : UnauthorizedAccess – ein PowerShell-Fehler</title><link>https://hongcheung.com/de/post/how-to-fix-fullyqualifiederrorid-unauthorizedaccess-a-powershell-error/</link><guid isPermaLink="true">https://hongcheung.com/de/post/how-to-fix-fullyqualifiederrorid-unauthorizedaccess-a-powershell-error/</guid><description>Eine Lösung für diesen Fehler in Windows PowerShell, wenn Sie versuchen, ein Skript auszuführen.</description><pubDate>Wed, 03 Jan 2024 12:00:00 GMT</pubDate><content:encoded>&lt;p&gt;&lt;img src=&quot;https://cms.hongct.com/assets/5a7f8c11-e4d3-42cf-a936-a2dc5c59c90c&quot; alt=&quot;So beheben Sie FullyQualifiedErrorId : UnauthorizedAccess – ein PowerShell-Fehler&quot; referrerpolicy=&quot;no-referrer&quot; loading=&quot;lazy&quot;/&gt;&lt;/p&gt;&lt;h2 id=&quot;das-problem&quot;&gt;Das Problem&lt;/h2&gt;
&lt;p&gt;Ich habe versucht, mein Express-Skript in VSCode unter Windows 11 über das Terminal auszuführen, und erhielt folgenden PowerShell-Fehler:&lt;/p&gt;
&lt;div class=&quot;expressive-code&quot;&gt;&lt;style&gt;.expressive-code{font-family:var(--ec-uiFontFml);font-size:var(--ec-uiFontSize);font-weight:var(--ec-uiFontWg);line-height:var(--ec-uiLineHt);text-size-adjust:none;-webkit-text-size-adjust:none}.expressive-code *:not(:is(svg, svg *)){all:revert;box-sizing:border-box}.expressive-code pre{display:flex;margin:0;padding:0;border:var(--ec-brdWd) solid var(--ec-brdCol);border-radius:calc(var(--ec-brdRad) + var(--ec-brdWd));background:var(--ec-codeBg)}.expressive-code pre:focus-visible{outline:3px solid var(--ec-focusBrd);outline-offset:-3px}.expressive-code pre &gt; code{all:unset;display:block;flex:1 0 100%;padding:var(--ec-codePadBlk) 0;color:var(--ec-codeFg);font-family:var(--ec-codeFontFml);font-size:var(--ec-codeFontSize);font-weight:var(--ec-codeFontWg);line-height:var(--ec-codeLineHt)}.expressive-code pre{overflow-x:auto}.expressive-code pre.wrap .ec-line .code{white-space:pre-wrap;overflow-wrap:break-word;min-width:min(20ch, var(--ecMaxLine, 20ch))}.expressive-code pre.wrap .ec-line .code span.indent{white-space:pre}.expressive-code pre::-webkit-scrollbar,.expressive-code pre::-webkit-scrollbar-track{background-color:inherit;border-radius:calc(var(--ec-brdRad) + var(--ec-brdWd));border-top-left-radius:0;border-top-right-radius:0}.expressive-code pre::-webkit-scrollbar-thumb{background-color:var(--ec-sbThumbCol);border:4px solid transparent;background-clip:content-box;border-radius:10px}.expressive-code pre::-webkit-scrollbar-thumb:hover{background-color:var(--ec-sbThumbHoverCol)}.expressive-code pre::-webkit-scrollbar-corner{background:transparent}.expressive-code .ec-line{direction:ltr;unicode-bidi:isolate;display:grid;grid-template-areas:&apos;gutter code&apos;;grid-template-columns:auto 1fr;position:relative}.expressive-code .ec-line .gutter{grid-area:gutter;color:var(--ec-gtrFg)}.expressive-code .ec-line .gutter &gt; *{pointer-events:none;user-select:none;-webkit-user-select:none}.expressive-code .ec-line .gutter ~ .code{--ecLineBrdCol:var(--ec-gtrBrdCol)}.expressive-code .ec-line.highlight .gutter{color:var(--ec-gtrHlFg)}.expressive-code .ec-line .code{grid-area:code;position:relative;box-sizing:content-box;padding-inline-start:calc(var(--ecIndent, 0ch) + var(--ec-codePadInl) - var(--ecGtrBrdWd));padding-inline-end:var(--ec-codePadInl);text-indent:calc(var(--ecIndent, 0ch) * -1)}.expressive-code .ec-line .code::before,.expressive-code .ec-line .code::after,.expressive-code .ec-line .code :where(*){text-indent:0}.expressive-code .ec-line .code{--ecGtrBrdWd:var(--ec-gtrBrdWd);border-inline-start:var(--ecGtrBrdWd) solid var(--ecLineBrdCol, transparent)}.expressive-code .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}.expressive-code .ec-line.mark{--tmLineBgCol:var(--ec-tm-markBg)}.expressive-code .ec-line.mark .code{--ecLineBrdCol:var(--ec-tm-markBrdCol)}.expressive-code .ec-line.ins{--tmLineBgCol:var(--ec-tm-insBg);--tmLabel:var(--ec-tm-insDiffIndContent)}.expressive-code .ec-line.ins .code{--ecLineBrdCol:var(--ec-tm-insBrdCol)}.expressive-code .ec-line.ins .code::before{color:var(--ec-tm-insDiffIndCol)}.expressive-code .ec-line.del{--tmLineBgCol:var(--ec-tm-delBg);--tmLabel:var(--ec-tm-delDiffIndContent)}.expressive-code .ec-line.del .code{--ecLineBrdCol:var(--ec-tm-delBrdCol)}.expressive-code .ec-line.del .code::before{color:var(--ec-tm-delDiffIndCol)}.expressive-code .ec-line.mark,.expressive-code .ec-line.ins,.expressive-code .ec-line.del{background:var(--tmLineBgCol)}.expressive-code .ec-line.mark .code,.expressive-code .ec-line.ins .code,.expressive-code .ec-line.del .code{--ecGtrBrdWd:var(--ec-tm-lineMarkerAccentWd)}.expressive-code .ec-line.mark .code::before,.expressive-code .ec-line.ins .code::before,.expressive-code .ec-line.del .code::before{display:block;position:absolute;left:0;box-sizing:border-box;content:var(--tmLabel, &apos; &apos;);padding-inline-start:var(--ec-tm-lineDiffIndMargLeft);text-align:center;white-space:pre}.expressive-code .ec-line.mark.tm-label .code::before,.expressive-code .ec-line.ins.tm-label .code::before,.expressive-code .ec-line.del.tm-label .code::before{background:var(--ecLineBrdCol);padding:0 calc(var(--ec-tm-lineMarkerLabelPadInl) + var(--ec-tm-lineMarkerAccentWd)) 0 var(--ec-tm-lineMarkerLabelPadInl);color:var(--ec-tm-lineMarkerLabelCol)}.expressive-code .ec-line mark{--tmInlineBgCol:var(--ec-tm-markBg);--tmInlineBrdCol:var(--ec-tm-markBrdCol)}.expressive-code .ec-line ins{--tmInlineBgCol:var(--ec-tm-insBg);--tmInlineBrdCol:var(--ec-tm-insBrdCol)}.expressive-code .ec-line del{--tmInlineBgCol:var(--ec-tm-delBg);--tmInlineBrdCol:var(--ec-tm-delBrdCol)}.expressive-code .ec-line mark,.expressive-code .ec-line ins,.expressive-code .ec-line del{all:unset;display:inline-block;position:relative;--tmBrdL:var(--ec-tm-inlMarkerBrdWd);--tmBrdR:var(--ec-tm-inlMarkerBrdWd);--tmRadL:var(--ec-tm-inlMarkerBrdRad);--tmRadR:var(--ec-tm-inlMarkerBrdRad);margin-inline:0.025rem;padding-inline:var(--ec-tm-inlMarkerPad);border-radius:var(--tmRadL) var(--tmRadR) var(--tmRadR) var(--tmRadL);background:var(--tmInlineBgCol);background-clip:padding-box}.expressive-code .ec-line mark.open-start,.expressive-code .ec-line ins.open-start,.expressive-code .ec-line del.open-start{margin-inline-start:0;padding-inline-start:0;--tmBrdL:0px;--tmRadL:0}.expressive-code .ec-line mark.open-end,.expressive-code .ec-line ins.open-end,.expressive-code .ec-line del.open-end{margin-inline-end:0;padding-inline-end:0;--tmBrdR:0px;--tmRadR:0}.expressive-code .ec-line mark::before,.expressive-code .ec-line ins::before,.expressive-code .ec-line del::before{content:&apos;&apos;;position:absolute;pointer-events:none;display:inline-block;inset:0;border-radius:var(--tmRadL) var(--tmRadR) var(--tmRadR) var(--tmRadL);border:var(--ec-tm-inlMarkerBrdWd) solid var(--tmInlineBrdCol);border-inline-width:var(--tmBrdL) var(--tmBrdR)}.expressive-code .frame{all:unset;position:relative;display:block;--header-border-radius:calc(var(--ec-brdRad) + var(--ec-brdWd));--tab-border-radius:calc(var(--ec-frm-edTabBrdRad) + var(--ec-brdWd));--button-spacing:0.4rem;--code-background:var(--ec-frm-edBg);border-radius:var(--header-border-radius);box-shadow:var(--ec-frm-frameBoxShdCssVal)}.expressive-code .frame .header{display:none;z-index:1;position:relative;border-radius:var(--header-border-radius) var(--header-border-radius) 0 0}.expressive-code .frame.has-title pre,.expressive-code .frame.has-title code,.expressive-code .frame.is-terminal pre,.expressive-code .frame.is-terminal code{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.expressive-code .frame .title:empty:before{content:&apos;\a0&apos;}.expressive-code .frame.has-title:not(.is-terminal){--button-spacing:calc(1.9rem + 2 * (var(--ec-uiPadBlk) + var(--ec-frm-edActTabIndHt)))}.expressive-code .frame.has-title:not(.is-terminal) .title{position:relative;color:var(--ec-frm-edActTabFg);background:var(--ec-frm-edActTabBg);background-clip:padding-box;margin-block-start:var(--ec-frm-edTabsMargBlkStart);padding:calc(var(--ec-uiPadBlk) + var(--ec-frm-edActTabIndHt)) var(--ec-uiPadInl);border:var(--ec-brdWd) solid var(--ec-frm-edActTabBrdCol);border-radius:var(--tab-border-radius) var(--tab-border-radius) 0 0;border-bottom:none;overflow:hidden}.expressive-code .frame.has-title:not(.is-terminal) .title::after{content:&apos;&apos;;position:absolute;pointer-events:none;inset:0;border-top:var(--ec-frm-edActTabIndHt) solid var(--ec-frm-edActTabIndTopCol);border-bottom:var(--ec-frm-edActTabIndHt) solid var(--ec-frm-edActTabIndBtmCol)}.expressive-code .frame.has-title:not(.is-terminal) .header{display:flex;background:linear-gradient(to top, var(--ec-frm-edTabBarBrdBtmCol) var(--ec-brdWd), transparent var(--ec-brdWd)),linear-gradient(var(--ec-frm-edTabBarBg), var(--ec-frm-edTabBarBg));background-repeat:no-repeat;padding-inline-start:var(--ec-frm-edTabsMargInlStart)}.expressive-code .frame.has-title:not(.is-terminal) .header::before{content:&apos;&apos;;position:absolute;pointer-events:none;inset:0;border:var(--ec-brdWd) solid var(--ec-frm-edTabBarBrdCol);border-radius:inherit;border-bottom:none}.expressive-code .frame.is-terminal{--button-spacing:calc(1.9rem + var(--ec-brdWd) + 2 * var(--ec-uiPadBlk));--code-background:var(--ec-frm-trmBg)}.expressive-code .frame.is-terminal .header{display:flex;align-items:center;justify-content:center;padding-block:var(--ec-uiPadBlk);padding-block-end:calc(var(--ec-uiPadBlk) + var(--ec-brdWd));position:relative;font-weight:500;letter-spacing:0.025ch;color:var(--ec-frm-trmTtbFg);background:var(--ec-frm-trmTtbBg);border:var(--ec-brdWd) solid var(--ec-brdCol);border-bottom:none}.expressive-code .frame.is-terminal .header::before{content:&apos;&apos;;position:absolute;pointer-events:none;left:var(--ec-uiPadInl);width:2.1rem;height:0.56rem;line-height:0;background-color:var(--ec-frm-trmTtbDotsFg);opacity:var(--ec-frm-trmTtbDotsOpa);-webkit-mask-image:var(--ec-frm-trmIcon);-webkit-mask-repeat:no-repeat;mask-image:var(--ec-frm-trmIcon);mask-repeat:no-repeat}.expressive-code .frame.is-terminal .header::after{content:&apos;&apos;;position:absolute;pointer-events:none;inset:0;border-bottom:var(--ec-brdWd) solid var(--ec-frm-trmTtbBrdBtmCol)}.expressive-code .frame pre{background:var(--code-background)}.expressive-code .copy{display:flex;gap:0.25rem;flex-direction:row;position:absolute;inset-block-start:calc(var(--ec-brdWd) + var(--button-spacing));inset-inline-end:calc(var(--ec-brdWd) + var(--ec-uiPadInl) / 2)}@media (scripting: none){.expressive-code .copy{display:none}}.expressive-code .copy{direction:ltr;unicode-bidi:isolate}.expressive-code .copy button{position:relative;align-self:flex-end;margin:0;padding:0;border:none;border-radius:0.2rem;z-index:1;cursor:pointer;transition-property:opacity, background, border-color;transition-duration:0.2s;transition-timing-function:cubic-bezier(0.25, 0.46, 0.45, 0.94);width:2.5rem;height:2.5rem;background:var(--code-background);opacity:0.75}.expressive-code .copy button div{position:absolute;inset:0;border-radius:inherit;background:var(--ec-frm-inlBtnBg);opacity:var(--ec-frm-inlBtnBgIdleOpa);transition-property:inherit;transition-duration:inherit;transition-timing-function:inherit}.expressive-code .copy button::before{content:&apos;&apos;;position:absolute;pointer-events:none;inset:0;border-radius:inherit;border:var(--ec-brdWd) solid var(--ec-frm-inlBtnBrd);opacity:var(--ec-frm-inlBtnBrdOpa)}.expressive-code .copy button::after{content:&apos;&apos;;position:absolute;pointer-events:none;inset:0;background-color:var(--ec-frm-inlBtnFg);-webkit-mask-image:var(--ec-frm-copyIcon);-webkit-mask-repeat:no-repeat;mask-image:var(--ec-frm-copyIcon);mask-repeat:no-repeat;margin:0.475rem;line-height:0}.expressive-code .copy button:hover,.expressive-code .copy button:focus:focus-visible{opacity:1}.expressive-code .copy button:hover div,.expressive-code .copy button:focus:focus-visible div{opacity:var(--ec-frm-inlBtnBgHoverOrFocusOpa)}.expressive-code .copy button:active{opacity:1}.expressive-code .copy button:active div{opacity:var(--ec-frm-inlBtnBgActOpa)}.expressive-code .copy .feedback{--tooltip-arrow-size:0.35rem;--tooltip-bg:var(--ec-frm-tooltipSuccessBg);color:var(--ec-frm-tooltipSuccessFg);pointer-events:none;user-select:none;-webkit-user-select:none;position:relative;align-self:center;background-color:var(--tooltip-bg);z-index:99;padding:0.125rem 0.75rem;border-radius:0.2rem;margin-inline-end:var(--tooltip-arrow-size);opacity:0;transition-property:opacity, transform;transition-duration:0.2s;transition-timing-function:ease-in-out;transform:translate3d(0, 0.25rem, 0)}.expressive-code .copy .feedback::after{content:&apos;&apos;;position:absolute;pointer-events:none;top:calc(50% - var(--tooltip-arrow-size));inset-inline-end:calc(-2 * (var(--tooltip-arrow-size) - 0.5px));border:var(--tooltip-arrow-size) solid transparent;border-inline-start-color:var(--tooltip-bg)}.expressive-code .copy .feedback.show{opacity:1;transform:translate3d(0, 0, 0)}@media (hover: hover){.expressive-code{}.expressive-code .copy button{opacity:0;width:2rem;height:2rem}.expressive-code .frame:hover .copy button:not(:hover),.expressive-code .frame:focus-within :focus-visible ~ .copy button:not(:hover),.expressive-code .frame .copy .feedback.show ~ button:not(:hover){opacity:0.75}}.expressive-code :nth-child(1 of .ec-line) .code{padding-inline-end:calc(2rem + var(--ec-codePadInl))}.expressive-code .gutter .ln{display:inline-flex;justify-content:flex-end;align-items:flex-start;box-sizing:content-box;min-width:var(--lnWidth, 2ch);padding-inline:2ch;color:var(--ec-lineNumbers-fg)}.highlight .expressive-code .gutter .ln{color:var(--ec-lineNumbers-hlFg)}.expressive-code .ec-section{position:relative}.expressive-code .ec-section summary{position:relative;font-family:var(--ec-cs-closedFontFml);font-size:var(--ec-cs-closedFontSize);line-height:var(--ec-cs-closedLineHt);user-select:none;-webkit-user-select:none;cursor:pointer;color:var(--ec-cs-closedTextCol);background-color:var(--ec-cs-closedBgCol);--border-color:var(--ec-cs-closedBrdCol);--border-width:var(--ec-cs-closedBrdWd);box-shadow:inset 0 calc(-1 * var(--border-width)) var(--border-color), inset 0 var(--border-width) var(--border-color);margin:var(--ec-cs-closedMarg);padding:0}.expressive-code .ec-section summary::marker{display:inline-block;content:&quot;&quot;;width:16px;height:16px}.expressive-code .ec-section summary::-webkit-details-marker{display:none}.expressive-code .ec-section summary :is(.expand, .collapse){position:relative;display:inline-block;width:16px;height:16px;vertical-align:text-bottom;opacity:0.75}.expressive-code .ec-section summary :is(.expand, .collapse)::after{content:&apos;&apos;;position:absolute;pointer-events:none;inset:0;background-color:var(--ec-cs-closedTextCol);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;line-height:0}.expressive-code .ec-section summary .expand::after{-webkit-mask-image:var(--ec-cs-expandIcon);mask-image:var(--ec-cs-expandIcon);-webkit-print-color-adjust:exact;print-color-adjust:exact}.expressive-code .ec-section summary .collapse{display:none}.expressive-code .ec-section summary .collapse::after{-webkit-mask-image:var(--ec-cs-collapseIcon);mask-image:var(--ec-cs-collapseIcon)}.expressive-code .ec-section summary .text{margin-left:1em}.expressive-code .ec-section summary .ec-line .code{padding-block:var(--ec-cs-closedPadBlk);text-indent:0}.expressive-code .ec-section[open],.expressive-code .ec-section details[open] + .content-lines{--border-color:var(--ec-cs-openBrdCol);--border-width:var(--ec-cs-openBrdWd);box-shadow:inset 0 calc(-1 * var(--border-width)) var(--border-color), inset 0 var(--border-width) var(--border-color);padding-inline:var(--ec-cs-openPad);margin-inline:var(--ec-cs-openMarg)}.expressive-code .ec-section.github[open] summary{display:none}.expressive-code .ec-section.github[open]{background-color:var(--ec-cs-openBgCol)}.expressive-code .ec-section:is(.collapsible-start, .collapsible-end){display:flex;flex-direction:column}.expressive-code .ec-section:is(.collapsible-start, .collapsible-end) .content-lines{display:none}.expressive-code .ec-section:is(.collapsible-start, .collapsible-end) details[open] .collapse{display:inline-block}.expressive-code .ec-section:is(.collapsible-start, .collapsible-end) details[open] :is(.expand, .text){display:none}.expressive-code .ec-section:is(.collapsible-start, .collapsible-end) details[open] + .content-lines{display:block;background-color:var(--ec-cs-openBgColCollapsible)}@media print{.expressive-code .ec-section:is(.collapsible-start, .collapsible-end) details[open]{display:none}}.expressive-code .ec-section.collapsible-end{flex-direction:column-reverse}:root,:root:not([data-theme=&quot;dark&quot;]) .expressive-code[data-theme=&quot;dark&quot;]{--ec-brdRad:0.3rem;--ec-brdWd:1.5px;--ec-brdCol:#1b1f23;--ec-codeFontFml:jetbrains-mono;--ec-codeFontSize:0.85rem;--ec-codeFontWg:400;--ec-codeLineHt:1.65;--ec-codePadBlk:1rem;--ec-codePadInl:1.35rem;--ec-codeBg:#24292e;--ec-codeFg:#e1e4e8;--ec-codeSelBg:#3392ff44;--ec-gtrFg:#727980;--ec-gtrBrdCol:#72798033;--ec-gtrBrdWd:1.5px;--ec-gtrHlFg:#e1e4e896;--ec-uiFontFml:jetbrains-mono;--ec-uiFontSize:0.9rem;--ec-uiFontWg:400;--ec-uiLineHt:1.65;--ec-uiPadBlk:0.25rem;--ec-uiPadInl:1rem;--ec-uiSelBg:#39414a;--ec-uiSelFg:#e1e4e8;--ec-focusBrd:#005cc5;--ec-sbThumbCol:#6a737d33;--ec-sbThumbHoverCol:#6a737dd1;--ec-tm-lineMarkerAccentMarg:0rem;--ec-tm-lineMarkerAccentWd:0.15rem;--ec-tm-lineMarkerLabelPadInl:0.2rem;--ec-tm-lineMarkerLabelCol:white;--ec-tm-lineDiffIndMargLeft:0.3rem;--ec-tm-inlMarkerBrdWd:1.5px;--ec-tm-inlMarkerBrdRad:0.2rem;--ec-tm-inlMarkerPad:0.15rem;--ec-tm-insDiffIndContent:&apos;+&apos;;--ec-tm-delDiffIndContent:&apos;-&apos;;--ec-tm-markBg:#264a8980;--ec-tm-markBrdCol:#5570b3d0;--ec-tm-insBg:#26561c80;--ec-tm-insBrdCol:#4e7e41d0;--ec-tm-insDiffIndCol:#7eb070d0;--ec-tm-delBg:#81322b80;--ec-tm-delBrdCol:#ae594fd0;--ec-tm-delDiffIndCol:#e68a7ed0;--ec-frm-shdCol:#0000005b;--ec-frm-frameBoxShdCssVal:0.1rem 0.1rem 0.2rem #0000005b;--ec-frm-edActTabBg:#24292e;--ec-frm-edActTabFg:#e1e4e8;--ec-frm-edActTabBrdCol:transparent;--ec-frm-edActTabIndHt:1.5px;--ec-frm-edActTabIndTopCol:#f9826c;--ec-frm-edActTabIndBtmCol:#24292e;--ec-frm-edTabsMargInlStart:0;--ec-frm-edTabsMargBlkStart:0;--ec-frm-edTabBrdRad:0.3rem;--ec-frm-edTabBarBg:#1f2428;--ec-frm-edTabBarBrdCol:#1b1f23;--ec-frm-edTabBarBrdBtmCol:#1b1f23;--ec-frm-edBg:#24292e;--ec-frm-trmTtbFg:#e1e4e8;--ec-frm-trmTtbDotsFg:#e1e4e8;--ec-frm-trmTtbDotsOpa:0.15;--ec-frm-trmTtbBg:#24292e;--ec-frm-trmTtbBrdBtmCol:#1b1f23;--ec-frm-trmBg:#1f2428;--ec-frm-inlBtnFg:#e1e4e8;--ec-frm-inlBtnBg:#e1e4e8;--ec-frm-inlBtnBgIdleOpa:0;--ec-frm-inlBtnBgHoverOrFocusOpa:0.2;--ec-frm-inlBtnBgActOpa:0.3;--ec-frm-inlBtnBrd:#e1e4e8;--ec-frm-inlBtnBrdOpa:0.4;--ec-frm-tooltipSuccessBg:#228739;--ec-frm-tooltipSuccessFg:white;--ec-frm-copyIcon:url(&quot;data:image/svg+xml,%3Csvg%20xmlns%3D&apos;http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg&apos;%20viewBox%3D&apos;0%200%2024%2024&apos;%20fill%3D&apos;none&apos;%20stroke%3D&apos;black&apos;%20stroke-width%3D&apos;1.75&apos;%3E%3Cpath%20d%3D&apos;M3%2019a2%202%200%200%201-1-2V2a2%202%200%200%201%201-1h13a2%202%200%200%201%202%201&apos;%2F%3E%3Crect%20x%3D&apos;6&apos;%20y%3D&apos;5&apos;%20width%3D&apos;16&apos;%20height%3D&apos;18&apos;%20rx%3D&apos;1.5&apos;%20ry%3D&apos;1.5&apos;%2F%3E%3C%2Fsvg%3E&quot;);--ec-frm-trmIcon:url(&quot;data:image/svg+xml,%3Csvg%20xmlns%3D&apos;http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg&apos;%20viewBox%3D&apos;0%200%2060%2016&apos;%20preserveAspectRatio%3D&apos;xMidYMid%20meet&apos;%3E%3Ccircle%20cx%3D&apos;8&apos;%20cy%3D&apos;8&apos;%20r%3D&apos;8&apos;%2F%3E%3Ccircle%20cx%3D&apos;30&apos;%20cy%3D&apos;8&apos;%20r%3D&apos;8&apos;%2F%3E%3Ccircle%20cx%3D&apos;52&apos;%20cy%3D&apos;8&apos;%20r%3D&apos;8&apos;%2F%3E%3C%2Fsvg%3E&quot;);--ec-lineNumbers-fg:inherit;--ec-lineNumbers-hlFg:inherit;--ec-cs-closedBrdWd:0px;--ec-cs-closedPadBlk:4px;--ec-cs-closedMarg:0;--ec-cs-closedFontFml:inherit;--ec-cs-closedFontSize:inherit;--ec-cs-closedLineHt:inherit;--ec-cs-closedTextCol:#e1e4e8;--ec-cs-closedBgCol:#58606933;--ec-cs-closedBrdCol:#58606980;--ec-cs-openBrdWd:1px;--ec-cs-openPad:0;--ec-cs-openMarg:0;--ec-cs-openBgCol:transparent;--ec-cs-openBgColCollapsible:#5860691a;--ec-cs-openBrdCol:transparent;--ec-cs-expandIcon:url(&quot;data:image/svg+xml,%3Csvg%20xmlns%3D&apos;http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg&apos;%20viewBox%3D&apos;0%200%2016%2016&apos;%3E%3Cpath%20d%3D&apos;m8.177.677%202.896%202.896a.25.25%200%200%201-.177.427H8.75v1.25a.75.75%200%200%201-1.5%200V4H5.104a.25.25%200%200%201-.177-.427L7.823.677a.25.25%200%200%201%20.354%200ZM7.25%2010.75a.75.75%200%200%201%201.5%200V12h2.146a.25.25%200%200%201%20.177.427l-2.896%202.896a.25.25%200%200%201-.354%200l-2.896-2.896A.25.25%200%200%201%205.104%2012H7.25v-1.25Zm-5-2a.75.75%200%200%200%200-1.5h-.5a.75.75%200%200%200%200%201.5h.5ZM6%208a.75.75%200%200%201-.75.75h-.5a.75.75%200%200%201%200-1.5h.5A.75.75%200%200%201%206%208Zm2.25.75a.75.75%200%200%200%200-1.5h-.5a.75.75%200%200%200%200%201.5h.5ZM12%208a.75.75%200%200%201-.75.75h-.5a.75.75%200%200%201%200-1.5h.5A.75.75%200%200%201%2012%208Zm2.25.75a.75.75%200%200%200%200-1.5h-.5a.75.75%200%200%200%200%201.5h.5Z&apos;%2F%3E%3C%2Fsvg%3E&quot;);--ec-cs-collapseIcon:url(&quot;data:image/svg+xml,%3Csvg%20xmlns%3D&apos;http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg&apos;%20viewBox%3D&apos;0%200%2016%2016&apos;%3E%3Cpath%20d%3D&apos;M10.896%202H8.75V.75a.75.75%200%200%200-1.5%200V2H5.104a.25.25%200%200%200-.177.427l2.896%202.896a.25.25%200%200%200%20.354%200l2.896-2.896A.25.25%200%200%200%2010.896%202ZM8.75%2015.25a.75.75%200%200%201-1.5%200V14H5.104a.25.25%200%200%201-.177-.427l2.896-2.896a.25.25%200%200%201%20.354%200l2.896%202.896a.25.25%200%200%201-.177.427H8.75v1.25Zm-6.5-6.5a.75.75%200%200%200%200-1.5h-.5a.75.75%200%200%200%200%201.5h.5ZM6%208a.75.75%200%200%201-.75.75h-.5a.75.75%200%200%201%200-1.5h.5A.75.75%200%200%201%206%208Zm2.25.75a.75.75%200%200%200%200-1.5h-.5a.75.75%200%200%200%200%201.5h.5ZM12%208a.75.75%200%200%201-.75.75h-.5a.75.75%200%200%201%200-1.5h.5A.75.75%200%200%201%2012%208Zm2.25.75a.75.75%200%200%200%200-1.5h-.5a.75.75%200%200%200%200%201.5h.5Z&apos;%2F%3E%3C%2Fsvg%3E&quot;)}.expressive-code .ec-line :where(span[style^=&apos;--&apos;]:not([class])),:root:not([data-theme=&quot;dark&quot;]) .expressive-code[data-theme=&quot;dark&quot;] .ec-line :where(span[style^=&apos;--&apos;]:not([class])){color:var(--0, inherit);background-color:var(--0bg, transparent);font-style:var(--0fs, inherit);font-weight:var(--0fw, inherit);text-decoration:var(--0td, inherit)}@media (prefers-color-scheme: light){:root:not([data-theme=&quot;dark&quot;]){--ec-brdCol:#e1e4e8;--ec-codeBg:#fff;--ec-codeFg:#24292e;--ec-codeSelBg:#0366d625;--ec-gtrFg:#1b1f2381;--ec-gtrBrdCol:#1b1f2333;--ec-gtrHlFg:#24292eab;--ec-uiSelBg:#e2e5e9;--ec-uiSelFg:#2f363d;--ec-focusBrd:#2188ff;--ec-sbThumbCol:#959da533;--ec-sbThumbHoverCol:#959da5eb;--ec-tm-markBg:#9fb6ff80;--ec-tm-insBg:#94c68480;--ec-tm-insDiffIndCol:#3a692fd0;--ec-tm-delBg:#fea09280;--ec-tm-delDiffIndCol:#97453dd0;--ec-frm-shdCol:#00000028;--ec-frm-frameBoxShdCssVal:0.1rem 0.1rem 0.2rem #00000028;--ec-frm-edActTabBg:#fff;--ec-frm-edActTabFg:#2f363d;--ec-frm-edActTabIndBtmCol:#fff;--ec-frm-edTabBarBg:#f6f8fa;--ec-frm-edTabBarBrdCol:#e1e4e8;--ec-frm-edTabBarBrdBtmCol:#e1e4e8;--ec-frm-edBg:#fff;--ec-frm-trmTtbFg:#2f363d;--ec-frm-trmTtbDotsFg:#2f363d;--ec-frm-trmTtbBg:#fff;--ec-frm-trmTtbBrdBtmCol:#e1e4e8;--ec-frm-trmBg:#f6f8fa;--ec-frm-inlBtnFg:#24292e;--ec-frm-inlBtnBg:#24292e;--ec-frm-inlBtnBrd:#24292e;--ec-frm-tooltipSuccessBg:#208638;--ec-cs-closedTextCol:#24292e;--ec-cs-closedBgCol:#d1d5da33;--ec-cs-closedBrdCol:#d1d5da80;--ec-cs-openBgColCollapsible:#d1d5da1a}:root:not([data-theme=&quot;dark&quot;]) .expressive-code .ec-line :where(span[style^=&apos;--&apos;]:not([class])){color:var(--1, inherit);background-color:var(--1bg, transparent);font-style:var(--1fs, inherit);font-weight:var(--1fw, inherit);text-decoration:var(--1td, inherit)}}:root[data-theme=&quot;light&quot;] .expressive-code:not([data-theme=&quot;dark&quot;]),.expressive-code[data-theme=&quot;light&quot;]{--ec-brdCol:#e1e4e8;--ec-codeBg:#fff;--ec-codeFg:#24292e;--ec-codeSelBg:#0366d625;--ec-gtrFg:#1b1f2381;--ec-gtrBrdCol:#1b1f2333;--ec-gtrHlFg:#24292eab;--ec-uiSelBg:#e2e5e9;--ec-uiSelFg:#2f363d;--ec-focusBrd:#2188ff;--ec-sbThumbCol:#959da533;--ec-sbThumbHoverCol:#959da5eb;--ec-tm-markBg:#9fb6ff80;--ec-tm-insBg:#94c68480;--ec-tm-insDiffIndCol:#3a692fd0;--ec-tm-delBg:#fea09280;--ec-tm-delDiffIndCol:#97453dd0;--ec-frm-shdCol:#00000028;--ec-frm-frameBoxShdCssVal:0.1rem 0.1rem 0.2rem #00000028;--ec-frm-edActTabBg:#fff;--ec-frm-edActTabFg:#2f363d;--ec-frm-edActTabIndBtmCol:#fff;--ec-frm-edTabBarBg:#f6f8fa;--ec-frm-edTabBarBrdCol:#e1e4e8;--ec-frm-edTabBarBrdBtmCol:#e1e4e8;--ec-frm-edBg:#fff;--ec-frm-trmTtbFg:#2f363d;--ec-frm-trmTtbDotsFg:#2f363d;--ec-frm-trmTtbBg:#fff;--ec-frm-trmTtbBrdBtmCol:#e1e4e8;--ec-frm-trmBg:#f6f8fa;--ec-frm-inlBtnFg:#24292e;--ec-frm-inlBtnBg:#24292e;--ec-frm-inlBtnBrd:#24292e;--ec-frm-tooltipSuccessBg:#208638;--ec-cs-closedTextCol:#24292e;--ec-cs-closedBgCol:#d1d5da33;--ec-cs-closedBrdCol:#d1d5da80;--ec-cs-openBgColCollapsible:#d1d5da1a}:root[data-theme=&quot;light&quot;] .expressive-code:not([data-theme=&quot;dark&quot;]) .ec-line :where(span[style^=&apos;--&apos;]:not([class])),.expressive-code[data-theme=&quot;light&quot;] .ec-line :where(span[style^=&apos;--&apos;]:not([class])){color:var(--1, inherit);background-color:var(--1bg, transparent);font-style:var(--1fs, inherit);font-weight:var(--1fw, inherit);text-decoration:var(--1td, inherit)}&lt;/style&gt;&lt;script type=&quot;module&quot;&gt;try{(()=&gt;{function a(e){if(!e)return;let t=e.getAttribute(&quot;tabindex&quot;)!==null,r=e.scrollWidth&gt;e.clientWidth;r&amp;&amp;!t?(e.setAttribute(&quot;tabindex&quot;,&quot;0&quot;),e.setAttribute(&quot;role&quot;,&quot;region&quot;)):!r&amp;&amp;t&amp;&amp;(e.removeAttribute(&quot;tabindex&quot;),e.removeAttribute(&quot;role&quot;))}var u=window.requestIdleCallback||(e=&gt;setTimeout(e,1)),s=window.cancelIdleCallback||clearTimeout;function l(e){let t=new Set,r,n;return new ResizeObserver(c=&gt;{c.forEach(o=&gt;t.add(o.target)),r&amp;&amp;clearTimeout(r),n&amp;&amp;s(n),r=setTimeout(()=&gt;{n&amp;&amp;s(n),n=u(()=&gt;{t.forEach(o=&gt;e(o)),t.clear()})},250)})}function i(e,t){e.querySelectorAll?.(&quot;.expressive-code pre &gt; code&quot;).forEach(r=&gt;{let n=r.parentElement;n&amp;&amp;t.observe(n)})}var d=l(a);i(document,d);var b=new MutationObserver(e=&gt;e.forEach(t=&gt;t.addedNodes.forEach(r=&gt;{i(r,d)})));b.observe(document.body,{childList:!0,subtree:!0});document.addEventListener(&quot;astro:page-load&quot;,()=&gt;{i(document,d)});})();}catch(e){console.error(&quot;[EC] tabindex-js-module failed:&quot;,e)}&lt;/script&gt;&lt;script type=&quot;module&quot;&gt;try{(()=&gt;{function l(o){let e=document.createElement(&quot;pre&quot;);Object.assign(e.style,{opacity:&quot;0&quot;,pointerEvents:&quot;none&quot;,position:&quot;absolute&quot;,overflow:&quot;hidden&quot;,left:&quot;0&quot;,top:&quot;0&quot;,width:&quot;20px&quot;,height:&quot;20px&quot;,webkitUserSelect:&quot;auto&quot;,userSelect:&quot;all&quot;}),e.ariaHidden=&quot;true&quot;,e.textContent=o,document.body.appendChild(e);let a=document.createRange();a.selectNode(e);let n=getSelection();if(!n)return!1;n.removeAllRanges(),n.addRange(a);let r=!1;try{r=document.execCommand(&quot;copy&quot;)}finally{n.removeAllRanges(),document.body.removeChild(e)}return r}async function u(o){let e=o.currentTarget,a=e.dataset,n=!1,r=a.code.replace(/\u007f/g,`
`);try{await navigator.clipboard.writeText(r),n=!0}catch{n=l(r)}if(!n||e.parentNode?.querySelector(&quot;.feedback&quot;))return;let c=e.parentNode?.querySelector(&quot;[aria-live]&quot;),t=document.createElement(&quot;div&quot;);t.classList.add(&quot;feedback&quot;),t.append(a.copied),c.append(t),t.offsetWidth,requestAnimationFrame(()=&gt;t?.classList.add(&quot;show&quot;));let s=()=&gt;!t||t.classList.remove(&quot;show&quot;),d=()=&gt;{!t||parseFloat(getComputedStyle(t).opacity)&gt;0||(t.remove(),t=void 0)};setTimeout(s,1500),setTimeout(d,2500),e.addEventListener(&quot;blur&quot;,s),t.addEventListener(&quot;transitioncancel&quot;,d),t.addEventListener(&quot;transitionend&quot;,d)}function i(o){o.querySelectorAll?.(&quot;.expressive-code .copy button&quot;).forEach(e=&gt;e.addEventListener(&quot;click&quot;,u))}i(document);var m=new MutationObserver(o=&gt;o.forEach(e=&gt;e.addedNodes.forEach(a=&gt;{i(a)})));m.observe(document.body,{childList:!0,subtree:!0});document.addEventListener(&quot;astro:page-load&quot;,()=&gt;{i(document)});})();}catch(e){console.error(&quot;[EC] copy-js-module failed:&quot;,e)}&lt;/script&gt;&lt;figure class=&quot;frame&quot;&gt;&lt;figcaption class=&quot;header&quot;&gt;&lt;/figcaption&gt;&lt;pre data-language=&quot;plaintext&quot;&gt;&lt;code&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;1&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span style=&quot;--0:#e1e4e8;--1:#24292e&quot;&gt;cannot be loaded because running scripts is disabled on this system.For more information, see&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;2&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span style=&quot;--0:#e1e4e8;--1:#24292e&quot;&gt;about_Execution_Policies at https: /go.microsoft.com/fwlink /? LinkID = 135170.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;3&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span style=&quot;--0:#e1e4e8;--1:#24292e&quot;&gt;At line: 1 char: 1&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;4&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#e1e4e8;--1:#24292e&quot;&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#e1e4e8;--1:#24292e&quot;&gt;+ nodemon server&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;5&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#e1e4e8;--1:#24292e&quot;&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#e1e4e8;--1:#24292e&quot;&gt;+ ~~~~~~~&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;6&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#e1e4e8;--1:#24292e&quot;&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#e1e4e8;--1:#24292e&quot;&gt;+ CategoryInfo          : SecurityError: (:)[], PSSecurityException&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;7&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#e1e4e8;--1:#24292e&quot;&gt;      &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#e1e4e8;--1:#24292e&quot;&gt;+ FullyQualifiedErrorId : UnauthorizedAccess&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div class=&quot;copy&quot;&gt;&lt;div aria-live=&quot;polite&quot;&gt;&lt;/div&gt;&lt;button title=&quot;Copy to clipboard&quot; data-copied=&quot;Copied!&quot; data-code=&quot;cannot be loaded because running scripts is disabled on this system.For more information, seeabout_Execution_Policies at https: /go.microsoft.com/fwlink /? LinkID = 135170.At line: 1 char: 1  + nodemon server    + ~~~~~~~    + CategoryInfo          : SecurityError: (:)[], PSSecurityException      + FullyQualifiedErrorId : UnauthorizedAccess&quot;&gt;&lt;div&gt;&lt;/div&gt;&lt;/button&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;Der Link funktionierte bei mir nicht.&lt;/p&gt;
&lt;p&gt;Glücklicherweise gibt es eine einfache Lösung.&lt;/p&gt;
&lt;h2 id=&quot;die-lösung&quot;&gt;Die Lösung&lt;/h2&gt;
&lt;p&gt;Gehen Sie zu Einstellungen &gt; System &gt; Für Entwickler.&lt;/p&gt;
&lt;p&gt;Suchen Sie nach PowerShell und aktivieren Sie dann diese Option:&lt;/p&gt;
&lt;p&gt;Ausführungsrichtlinie ändern. -&gt; Ein&lt;/p&gt;
&lt;p&gt;&lt;img loading=&quot;lazy&quot; decoding=&quot;async&quot; referrerpolicy=&quot;no-referrer&quot; src=&quot;https://cms.hongct.com/assets/dccfefa4-72b7-4ebf-9224-e1cf72e57705&quot; alt=&quot;powershell-changeExecutionPolicy&quot; title=&quot;Diese Option aktivieren&quot;&gt;&lt;/p&gt;
&lt;p&gt;Führen Sie nun Ihr Skript erneut aus, es sollte funktionieren. Beim ersten Mal werden Sie möglicherweise um Erlaubnis gebeten, es auszuführen.&lt;/p&gt;</content:encoded><media:thumbnail url="https://cms.hongct.com/assets/5a7f8c11-e4d3-42cf-a936-a2dc5c59c90c"/><enclosure url="https://cms.hongct.com/assets/5a7f8c11-e4d3-42cf-a936-a2dc5c59c90c" length="8065" type="image/png"/></item><item><title>Headless CMS vs. traditionelles CMS</title><link>https://hongcheung.com/de/post/headless-cms-vs-traditional-cms/</link><guid isPermaLink="true">https://hongcheung.com/de/post/headless-cms-vs-traditional-cms/</guid><description>Der Unterschied zwischen Headless CMS und traditionellem CMS</description><pubDate>Mon, 01 Jan 2024 12:00:00 GMT</pubDate><content:encoded>&lt;p&gt;&lt;img src=&quot;https://cms.hongct.com/assets/d3c89c82-a706-4916-91af-a64c931bf57d&quot; alt=&quot;Headless CMS vs. traditionelles CMS&quot; referrerpolicy=&quot;no-referrer&quot; loading=&quot;lazy&quot;/&gt;&lt;/p&gt;&lt;h2 id=&quot;was-ist-ein-cms&quot;&gt;Was ist ein CMS?&lt;/h2&gt;
&lt;p&gt;Wenn du etwas anderes als WordPress, Medium, Blogspot, Ghost usw. möchtest. Oder irgendeine andere Blogging-Plattform, oder du einfach mehr wissen willst. Dann wirst du einen Begriff namens CMS kennenlernen – Content-Management-System.&lt;/p&gt;
&lt;p&gt;Ein CMS bietet lediglich eine strukturierte Möglichkeit, deine Inhalte zu verwalten. Stell dir vor, du hast Zehntausende von Blogbeiträgen – wie solltest du sie in einer guten Ordnung speichern und verwalten? So kannst du sie bearbeiten und später effektiv wieder aufrufen.&lt;/p&gt;
&lt;p&gt;Verwaltungsfunktionen wie:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Autoren – Verwalte, wie viele Autoren du hast, überprüfe ihre Texte usw.&lt;/li&gt;
&lt;li&gt;Inhalte – Ordne Beiträge in Kategorien ein, füge ein Tagging-System hinzu, platziere Themes in systematischer Reihenfolge.&lt;/li&gt;
&lt;li&gt;Plugins – WordPress hat viele Plugins, von der Verbesserung deines SEO bis zum Hinzufügen eines Abonnement-Bereichs usw.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Diese Funktionen sind fast ein Muss, wenn du einen langlebigen Blog oder eine Website betreiben willst. Aber wenn du nur eine einfache Website mit ein paar Seiten erstellst, brauchst du das wirklich nicht.&lt;/p&gt;
&lt;h2 id=&quot;was-ist-ein-traditionelles-cms&quot;&gt;Was ist ein traditionelles CMS?&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Deine Beiträge werden als Markdown gespeichert&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Ein traditionelles CMS speichert jeden deiner Blogbeiträge in einer separaten Datei, meist mit der Dateiendung .md oder .mdx, eine Kurzform für Markdown-Dateien. Du kannst also etwas schreiben wie:&lt;/p&gt;
&lt;div class=&quot;expressive-code&quot;&gt;&lt;style&gt;.expressive-code{font-family:var(--ec-uiFontFml);font-size:var(--ec-uiFontSize);font-weight:var(--ec-uiFontWg);line-height:var(--ec-uiLineHt);text-size-adjust:none;-webkit-text-size-adjust:none}.expressive-code *:not(:is(svg, svg *)){all:revert;box-sizing:border-box}.expressive-code pre{display:flex;margin:0;padding:0;border:var(--ec-brdWd) solid var(--ec-brdCol);border-radius:calc(var(--ec-brdRad) + var(--ec-brdWd));background:var(--ec-codeBg)}.expressive-code pre:focus-visible{outline:3px solid var(--ec-focusBrd);outline-offset:-3px}.expressive-code pre &gt; code{all:unset;display:block;flex:1 0 100%;padding:var(--ec-codePadBlk) 0;color:var(--ec-codeFg);font-family:var(--ec-codeFontFml);font-size:var(--ec-codeFontSize);font-weight:var(--ec-codeFontWg);line-height:var(--ec-codeLineHt)}.expressive-code pre{overflow-x:auto}.expressive-code pre.wrap .ec-line .code{white-space:pre-wrap;overflow-wrap:break-word;min-width:min(20ch, var(--ecMaxLine, 20ch))}.expressive-code pre.wrap .ec-line .code span.indent{white-space:pre}.expressive-code pre::-webkit-scrollbar,.expressive-code pre::-webkit-scrollbar-track{background-color:inherit;border-radius:calc(var(--ec-brdRad) + var(--ec-brdWd));border-top-left-radius:0;border-top-right-radius:0}.expressive-code pre::-webkit-scrollbar-thumb{background-color:var(--ec-sbThumbCol);border:4px solid transparent;background-clip:content-box;border-radius:10px}.expressive-code pre::-webkit-scrollbar-thumb:hover{background-color:var(--ec-sbThumbHoverCol)}.expressive-code pre::-webkit-scrollbar-corner{background:transparent}.expressive-code .ec-line{direction:ltr;unicode-bidi:isolate;display:grid;grid-template-areas:&apos;gutter code&apos;;grid-template-columns:auto 1fr;position:relative}.expressive-code .ec-line .gutter{grid-area:gutter;color:var(--ec-gtrFg)}.expressive-code .ec-line .gutter &gt; *{pointer-events:none;user-select:none;-webkit-user-select:none}.expressive-code .ec-line .gutter ~ .code{--ecLineBrdCol:var(--ec-gtrBrdCol)}.expressive-code .ec-line.highlight .gutter{color:var(--ec-gtrHlFg)}.expressive-code .ec-line .code{grid-area:code;position:relative;box-sizing:content-box;padding-inline-start:calc(var(--ecIndent, 0ch) + var(--ec-codePadInl) - var(--ecGtrBrdWd));padding-inline-end:var(--ec-codePadInl);text-indent:calc(var(--ecIndent, 0ch) * -1)}.expressive-code .ec-line .code::before,.expressive-code .ec-line .code::after,.expressive-code .ec-line .code :where(*){text-indent:0}.expressive-code .ec-line .code{--ecGtrBrdWd:var(--ec-gtrBrdWd);border-inline-start:var(--ecGtrBrdWd) solid var(--ecLineBrdCol, transparent)}.expressive-code .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}.expressive-code .ec-line.mark{--tmLineBgCol:var(--ec-tm-markBg)}.expressive-code .ec-line.mark .code{--ecLineBrdCol:var(--ec-tm-markBrdCol)}.expressive-code .ec-line.ins{--tmLineBgCol:var(--ec-tm-insBg);--tmLabel:var(--ec-tm-insDiffIndContent)}.expressive-code .ec-line.ins .code{--ecLineBrdCol:var(--ec-tm-insBrdCol)}.expressive-code .ec-line.ins .code::before{color:var(--ec-tm-insDiffIndCol)}.expressive-code .ec-line.del{--tmLineBgCol:var(--ec-tm-delBg);--tmLabel:var(--ec-tm-delDiffIndContent)}.expressive-code .ec-line.del .code{--ecLineBrdCol:var(--ec-tm-delBrdCol)}.expressive-code .ec-line.del .code::before{color:var(--ec-tm-delDiffIndCol)}.expressive-code .ec-line.mark,.expressive-code .ec-line.ins,.expressive-code .ec-line.del{background:var(--tmLineBgCol)}.expressive-code .ec-line.mark .code,.expressive-code .ec-line.ins .code,.expressive-code .ec-line.del .code{--ecGtrBrdWd:var(--ec-tm-lineMarkerAccentWd)}.expressive-code .ec-line.mark .code::before,.expressive-code .ec-line.ins .code::before,.expressive-code .ec-line.del .code::before{display:block;position:absolute;left:0;box-sizing:border-box;content:var(--tmLabel, &apos; &apos;);padding-inline-start:var(--ec-tm-lineDiffIndMargLeft);text-align:center;white-space:pre}.expressive-code .ec-line.mark.tm-label .code::before,.expressive-code .ec-line.ins.tm-label .code::before,.expressive-code .ec-line.del.tm-label .code::before{background:var(--ecLineBrdCol);padding:0 calc(var(--ec-tm-lineMarkerLabelPadInl) + var(--ec-tm-lineMarkerAccentWd)) 0 var(--ec-tm-lineMarkerLabelPadInl);color:var(--ec-tm-lineMarkerLabelCol)}.expressive-code .ec-line mark{--tmInlineBgCol:var(--ec-tm-markBg);--tmInlineBrdCol:var(--ec-tm-markBrdCol)}.expressive-code .ec-line ins{--tmInlineBgCol:var(--ec-tm-insBg);--tmInlineBrdCol:var(--ec-tm-insBrdCol)}.expressive-code .ec-line del{--tmInlineBgCol:var(--ec-tm-delBg);--tmInlineBrdCol:var(--ec-tm-delBrdCol)}.expressive-code .ec-line mark,.expressive-code .ec-line ins,.expressive-code .ec-line del{all:unset;display:inline-block;position:relative;--tmBrdL:var(--ec-tm-inlMarkerBrdWd);--tmBrdR:var(--ec-tm-inlMarkerBrdWd);--tmRadL:var(--ec-tm-inlMarkerBrdRad);--tmRadR:var(--ec-tm-inlMarkerBrdRad);margin-inline:0.025rem;padding-inline:var(--ec-tm-inlMarkerPad);border-radius:var(--tmRadL) var(--tmRadR) var(--tmRadR) var(--tmRadL);background:var(--tmInlineBgCol);background-clip:padding-box}.expressive-code .ec-line mark.open-start,.expressive-code .ec-line ins.open-start,.expressive-code .ec-line del.open-start{margin-inline-start:0;padding-inline-start:0;--tmBrdL:0px;--tmRadL:0}.expressive-code .ec-line mark.open-end,.expressive-code .ec-line ins.open-end,.expressive-code .ec-line del.open-end{margin-inline-end:0;padding-inline-end:0;--tmBrdR:0px;--tmRadR:0}.expressive-code .ec-line mark::before,.expressive-code .ec-line ins::before,.expressive-code .ec-line del::before{content:&apos;&apos;;position:absolute;pointer-events:none;display:inline-block;inset:0;border-radius:var(--tmRadL) var(--tmRadR) var(--tmRadR) var(--tmRadL);border:var(--ec-tm-inlMarkerBrdWd) solid var(--tmInlineBrdCol);border-inline-width:var(--tmBrdL) var(--tmBrdR)}.expressive-code .frame{all:unset;position:relative;display:block;--header-border-radius:calc(var(--ec-brdRad) + var(--ec-brdWd));--tab-border-radius:calc(var(--ec-frm-edTabBrdRad) + var(--ec-brdWd));--button-spacing:0.4rem;--code-background:var(--ec-frm-edBg);border-radius:var(--header-border-radius);box-shadow:var(--ec-frm-frameBoxShdCssVal)}.expressive-code .frame .header{display:none;z-index:1;position:relative;border-radius:var(--header-border-radius) var(--header-border-radius) 0 0}.expressive-code .frame.has-title pre,.expressive-code .frame.has-title code,.expressive-code .frame.is-terminal pre,.expressive-code .frame.is-terminal code{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.expressive-code .frame .title:empty:before{content:&apos;\a0&apos;}.expressive-code .frame.has-title:not(.is-terminal){--button-spacing:calc(1.9rem + 2 * (var(--ec-uiPadBlk) + var(--ec-frm-edActTabIndHt)))}.expressive-code .frame.has-title:not(.is-terminal) .title{position:relative;color:var(--ec-frm-edActTabFg);background:var(--ec-frm-edActTabBg);background-clip:padding-box;margin-block-start:var(--ec-frm-edTabsMargBlkStart);padding:calc(var(--ec-uiPadBlk) + var(--ec-frm-edActTabIndHt)) var(--ec-uiPadInl);border:var(--ec-brdWd) solid var(--ec-frm-edActTabBrdCol);border-radius:var(--tab-border-radius) var(--tab-border-radius) 0 0;border-bottom:none;overflow:hidden}.expressive-code .frame.has-title:not(.is-terminal) .title::after{content:&apos;&apos;;position:absolute;pointer-events:none;inset:0;border-top:var(--ec-frm-edActTabIndHt) solid var(--ec-frm-edActTabIndTopCol);border-bottom:var(--ec-frm-edActTabIndHt) solid var(--ec-frm-edActTabIndBtmCol)}.expressive-code .frame.has-title:not(.is-terminal) .header{display:flex;background:linear-gradient(to top, var(--ec-frm-edTabBarBrdBtmCol) var(--ec-brdWd), transparent var(--ec-brdWd)),linear-gradient(var(--ec-frm-edTabBarBg), var(--ec-frm-edTabBarBg));background-repeat:no-repeat;padding-inline-start:var(--ec-frm-edTabsMargInlStart)}.expressive-code .frame.has-title:not(.is-terminal) .header::before{content:&apos;&apos;;position:absolute;pointer-events:none;inset:0;border:var(--ec-brdWd) solid var(--ec-frm-edTabBarBrdCol);border-radius:inherit;border-bottom:none}.expressive-code .frame.is-terminal{--button-spacing:calc(1.9rem + var(--ec-brdWd) + 2 * var(--ec-uiPadBlk));--code-background:var(--ec-frm-trmBg)}.expressive-code .frame.is-terminal .header{display:flex;align-items:center;justify-content:center;padding-block:var(--ec-uiPadBlk);padding-block-end:calc(var(--ec-uiPadBlk) + var(--ec-brdWd));position:relative;font-weight:500;letter-spacing:0.025ch;color:var(--ec-frm-trmTtbFg);background:var(--ec-frm-trmTtbBg);border:var(--ec-brdWd) solid var(--ec-brdCol);border-bottom:none}.expressive-code .frame.is-terminal .header::before{content:&apos;&apos;;position:absolute;pointer-events:none;left:var(--ec-uiPadInl);width:2.1rem;height:0.56rem;line-height:0;background-color:var(--ec-frm-trmTtbDotsFg);opacity:var(--ec-frm-trmTtbDotsOpa);-webkit-mask-image:var(--ec-frm-trmIcon);-webkit-mask-repeat:no-repeat;mask-image:var(--ec-frm-trmIcon);mask-repeat:no-repeat}.expressive-code .frame.is-terminal .header::after{content:&apos;&apos;;position:absolute;pointer-events:none;inset:0;border-bottom:var(--ec-brdWd) solid var(--ec-frm-trmTtbBrdBtmCol)}.expressive-code .frame pre{background:var(--code-background)}.expressive-code .copy{display:flex;gap:0.25rem;flex-direction:row;position:absolute;inset-block-start:calc(var(--ec-brdWd) + var(--button-spacing));inset-inline-end:calc(var(--ec-brdWd) + var(--ec-uiPadInl) / 2)}@media (scripting: none){.expressive-code .copy{display:none}}.expressive-code .copy{direction:ltr;unicode-bidi:isolate}.expressive-code .copy button{position:relative;align-self:flex-end;margin:0;padding:0;border:none;border-radius:0.2rem;z-index:1;cursor:pointer;transition-property:opacity, background, border-color;transition-duration:0.2s;transition-timing-function:cubic-bezier(0.25, 0.46, 0.45, 0.94);width:2.5rem;height:2.5rem;background:var(--code-background);opacity:0.75}.expressive-code .copy button div{position:absolute;inset:0;border-radius:inherit;background:var(--ec-frm-inlBtnBg);opacity:var(--ec-frm-inlBtnBgIdleOpa);transition-property:inherit;transition-duration:inherit;transition-timing-function:inherit}.expressive-code .copy button::before{content:&apos;&apos;;position:absolute;pointer-events:none;inset:0;border-radius:inherit;border:var(--ec-brdWd) solid var(--ec-frm-inlBtnBrd);opacity:var(--ec-frm-inlBtnBrdOpa)}.expressive-code .copy button::after{content:&apos;&apos;;position:absolute;pointer-events:none;inset:0;background-color:var(--ec-frm-inlBtnFg);-webkit-mask-image:var(--ec-frm-copyIcon);-webkit-mask-repeat:no-repeat;mask-image:var(--ec-frm-copyIcon);mask-repeat:no-repeat;margin:0.475rem;line-height:0}.expressive-code .copy button:hover,.expressive-code .copy button:focus:focus-visible{opacity:1}.expressive-code .copy button:hover div,.expressive-code .copy button:focus:focus-visible div{opacity:var(--ec-frm-inlBtnBgHoverOrFocusOpa)}.expressive-code .copy button:active{opacity:1}.expressive-code .copy button:active div{opacity:var(--ec-frm-inlBtnBgActOpa)}.expressive-code .copy .feedback{--tooltip-arrow-size:0.35rem;--tooltip-bg:var(--ec-frm-tooltipSuccessBg);color:var(--ec-frm-tooltipSuccessFg);pointer-events:none;user-select:none;-webkit-user-select:none;position:relative;align-self:center;background-color:var(--tooltip-bg);z-index:99;padding:0.125rem 0.75rem;border-radius:0.2rem;margin-inline-end:var(--tooltip-arrow-size);opacity:0;transition-property:opacity, transform;transition-duration:0.2s;transition-timing-function:ease-in-out;transform:translate3d(0, 0.25rem, 0)}.expressive-code .copy .feedback::after{content:&apos;&apos;;position:absolute;pointer-events:none;top:calc(50% - var(--tooltip-arrow-size));inset-inline-end:calc(-2 * (var(--tooltip-arrow-size) - 0.5px));border:var(--tooltip-arrow-size) solid transparent;border-inline-start-color:var(--tooltip-bg)}.expressive-code .copy .feedback.show{opacity:1;transform:translate3d(0, 0, 0)}@media (hover: hover){.expressive-code{}.expressive-code .copy button{opacity:0;width:2rem;height:2rem}.expressive-code .frame:hover .copy button:not(:hover),.expressive-code .frame:focus-within :focus-visible ~ .copy button:not(:hover),.expressive-code .frame .copy .feedback.show ~ button:not(:hover){opacity:0.75}}.expressive-code :nth-child(1 of .ec-line) .code{padding-inline-end:calc(2rem + var(--ec-codePadInl))}.expressive-code .gutter .ln{display:inline-flex;justify-content:flex-end;align-items:flex-start;box-sizing:content-box;min-width:var(--lnWidth, 2ch);padding-inline:2ch;color:var(--ec-lineNumbers-fg)}.highlight .expressive-code .gutter .ln{color:var(--ec-lineNumbers-hlFg)}.expressive-code .ec-section{position:relative}.expressive-code .ec-section summary{position:relative;font-family:var(--ec-cs-closedFontFml);font-size:var(--ec-cs-closedFontSize);line-height:var(--ec-cs-closedLineHt);user-select:none;-webkit-user-select:none;cursor:pointer;color:var(--ec-cs-closedTextCol);background-color:var(--ec-cs-closedBgCol);--border-color:var(--ec-cs-closedBrdCol);--border-width:var(--ec-cs-closedBrdWd);box-shadow:inset 0 calc(-1 * var(--border-width)) var(--border-color), inset 0 var(--border-width) var(--border-color);margin:var(--ec-cs-closedMarg);padding:0}.expressive-code .ec-section summary::marker{display:inline-block;content:&quot;&quot;;width:16px;height:16px}.expressive-code .ec-section summary::-webkit-details-marker{display:none}.expressive-code .ec-section summary :is(.expand, .collapse){position:relative;display:inline-block;width:16px;height:16px;vertical-align:text-bottom;opacity:0.75}.expressive-code .ec-section summary :is(.expand, .collapse)::after{content:&apos;&apos;;position:absolute;pointer-events:none;inset:0;background-color:var(--ec-cs-closedTextCol);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;line-height:0}.expressive-code .ec-section summary .expand::after{-webkit-mask-image:var(--ec-cs-expandIcon);mask-image:var(--ec-cs-expandIcon);-webkit-print-color-adjust:exact;print-color-adjust:exact}.expressive-code .ec-section summary .collapse{display:none}.expressive-code .ec-section summary .collapse::after{-webkit-mask-image:var(--ec-cs-collapseIcon);mask-image:var(--ec-cs-collapseIcon)}.expressive-code .ec-section summary .text{margin-left:1em}.expressive-code .ec-section summary .ec-line .code{padding-block:var(--ec-cs-closedPadBlk);text-indent:0}.expressive-code .ec-section[open],.expressive-code .ec-section details[open] + .content-lines{--border-color:var(--ec-cs-openBrdCol);--border-width:var(--ec-cs-openBrdWd);box-shadow:inset 0 calc(-1 * var(--border-width)) var(--border-color), inset 0 var(--border-width) var(--border-color);padding-inline:var(--ec-cs-openPad);margin-inline:var(--ec-cs-openMarg)}.expressive-code .ec-section.github[open] summary{display:none}.expressive-code .ec-section.github[open]{background-color:var(--ec-cs-openBgCol)}.expressive-code .ec-section:is(.collapsible-start, .collapsible-end){display:flex;flex-direction:column}.expressive-code .ec-section:is(.collapsible-start, .collapsible-end) .content-lines{display:none}.expressive-code .ec-section:is(.collapsible-start, .collapsible-end) details[open] .collapse{display:inline-block}.expressive-code .ec-section:is(.collapsible-start, .collapsible-end) details[open] :is(.expand, .text){display:none}.expressive-code .ec-section:is(.collapsible-start, .collapsible-end) details[open] + .content-lines{display:block;background-color:var(--ec-cs-openBgColCollapsible)}@media print{.expressive-code .ec-section:is(.collapsible-start, .collapsible-end) details[open]{display:none}}.expressive-code .ec-section.collapsible-end{flex-direction:column-reverse}:root,:root:not([data-theme=&quot;dark&quot;]) .expressive-code[data-theme=&quot;dark&quot;]{--ec-brdRad:0.3rem;--ec-brdWd:1.5px;--ec-brdCol:#1b1f23;--ec-codeFontFml:jetbrains-mono;--ec-codeFontSize:0.85rem;--ec-codeFontWg:400;--ec-codeLineHt:1.65;--ec-codePadBlk:1rem;--ec-codePadInl:1.35rem;--ec-codeBg:#24292e;--ec-codeFg:#e1e4e8;--ec-codeSelBg:#3392ff44;--ec-gtrFg:#727980;--ec-gtrBrdCol:#72798033;--ec-gtrBrdWd:1.5px;--ec-gtrHlFg:#e1e4e896;--ec-uiFontFml:jetbrains-mono;--ec-uiFontSize:0.9rem;--ec-uiFontWg:400;--ec-uiLineHt:1.65;--ec-uiPadBlk:0.25rem;--ec-uiPadInl:1rem;--ec-uiSelBg:#39414a;--ec-uiSelFg:#e1e4e8;--ec-focusBrd:#005cc5;--ec-sbThumbCol:#6a737d33;--ec-sbThumbHoverCol:#6a737dd1;--ec-tm-lineMarkerAccentMarg:0rem;--ec-tm-lineMarkerAccentWd:0.15rem;--ec-tm-lineMarkerLabelPadInl:0.2rem;--ec-tm-lineMarkerLabelCol:white;--ec-tm-lineDiffIndMargLeft:0.3rem;--ec-tm-inlMarkerBrdWd:1.5px;--ec-tm-inlMarkerBrdRad:0.2rem;--ec-tm-inlMarkerPad:0.15rem;--ec-tm-insDiffIndContent:&apos;+&apos;;--ec-tm-delDiffIndContent:&apos;-&apos;;--ec-tm-markBg:#264a8980;--ec-tm-markBrdCol:#5570b3d0;--ec-tm-insBg:#26561c80;--ec-tm-insBrdCol:#4e7e41d0;--ec-tm-insDiffIndCol:#7eb070d0;--ec-tm-delBg:#81322b80;--ec-tm-delBrdCol:#ae594fd0;--ec-tm-delDiffIndCol:#e68a7ed0;--ec-frm-shdCol:#0000005b;--ec-frm-frameBoxShdCssVal:0.1rem 0.1rem 0.2rem #0000005b;--ec-frm-edActTabBg:#24292e;--ec-frm-edActTabFg:#e1e4e8;--ec-frm-edActTabBrdCol:transparent;--ec-frm-edActTabIndHt:1.5px;--ec-frm-edActTabIndTopCol:#f9826c;--ec-frm-edActTabIndBtmCol:#24292e;--ec-frm-edTabsMargInlStart:0;--ec-frm-edTabsMargBlkStart:0;--ec-frm-edTabBrdRad:0.3rem;--ec-frm-edTabBarBg:#1f2428;--ec-frm-edTabBarBrdCol:#1b1f23;--ec-frm-edTabBarBrdBtmCol:#1b1f23;--ec-frm-edBg:#24292e;--ec-frm-trmTtbFg:#e1e4e8;--ec-frm-trmTtbDotsFg:#e1e4e8;--ec-frm-trmTtbDotsOpa:0.15;--ec-frm-trmTtbBg:#24292e;--ec-frm-trmTtbBrdBtmCol:#1b1f23;--ec-frm-trmBg:#1f2428;--ec-frm-inlBtnFg:#e1e4e8;--ec-frm-inlBtnBg:#e1e4e8;--ec-frm-inlBtnBgIdleOpa:0;--ec-frm-inlBtnBgHoverOrFocusOpa:0.2;--ec-frm-inlBtnBgActOpa:0.3;--ec-frm-inlBtnBrd:#e1e4e8;--ec-frm-inlBtnBrdOpa:0.4;--ec-frm-tooltipSuccessBg:#228739;--ec-frm-tooltipSuccessFg:white;--ec-frm-copyIcon:url(&quot;data:image/svg+xml,%3Csvg%20xmlns%3D&apos;http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg&apos;%20viewBox%3D&apos;0%200%2024%2024&apos;%20fill%3D&apos;none&apos;%20stroke%3D&apos;black&apos;%20stroke-width%3D&apos;1.75&apos;%3E%3Cpath%20d%3D&apos;M3%2019a2%202%200%200%201-1-2V2a2%202%200%200%201%201-1h13a2%202%200%200%201%202%201&apos;%2F%3E%3Crect%20x%3D&apos;6&apos;%20y%3D&apos;5&apos;%20width%3D&apos;16&apos;%20height%3D&apos;18&apos;%20rx%3D&apos;1.5&apos;%20ry%3D&apos;1.5&apos;%2F%3E%3C%2Fsvg%3E&quot;);--ec-frm-trmIcon:url(&quot;data:image/svg+xml,%3Csvg%20xmlns%3D&apos;http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg&apos;%20viewBox%3D&apos;0%200%2060%2016&apos;%20preserveAspectRatio%3D&apos;xMidYMid%20meet&apos;%3E%3Ccircle%20cx%3D&apos;8&apos;%20cy%3D&apos;8&apos;%20r%3D&apos;8&apos;%2F%3E%3Ccircle%20cx%3D&apos;30&apos;%20cy%3D&apos;8&apos;%20r%3D&apos;8&apos;%2F%3E%3Ccircle%20cx%3D&apos;52&apos;%20cy%3D&apos;8&apos;%20r%3D&apos;8&apos;%2F%3E%3C%2Fsvg%3E&quot;);--ec-lineNumbers-fg:inherit;--ec-lineNumbers-hlFg:inherit;--ec-cs-closedBrdWd:0px;--ec-cs-closedPadBlk:4px;--ec-cs-closedMarg:0;--ec-cs-closedFontFml:inherit;--ec-cs-closedFontSize:inherit;--ec-cs-closedLineHt:inherit;--ec-cs-closedTextCol:#e1e4e8;--ec-cs-closedBgCol:#58606933;--ec-cs-closedBrdCol:#58606980;--ec-cs-openBrdWd:1px;--ec-cs-openPad:0;--ec-cs-openMarg:0;--ec-cs-openBgCol:transparent;--ec-cs-openBgColCollapsible:#5860691a;--ec-cs-openBrdCol:transparent;--ec-cs-expandIcon:url(&quot;data:image/svg+xml,%3Csvg%20xmlns%3D&apos;http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg&apos;%20viewBox%3D&apos;0%200%2016%2016&apos;%3E%3Cpath%20d%3D&apos;m8.177.677%202.896%202.896a.25.25%200%200%201-.177.427H8.75v1.25a.75.75%200%200%201-1.5%200V4H5.104a.25.25%200%200%201-.177-.427L7.823.677a.25.25%200%200%201%20.354%200ZM7.25%2010.75a.75.75%200%200%201%201.5%200V12h2.146a.25.25%200%200%201%20.177.427l-2.896%202.896a.25.25%200%200%201-.354%200l-2.896-2.896A.25.25%200%200%201%205.104%2012H7.25v-1.25Zm-5-2a.75.75%200%200%200%200-1.5h-.5a.75.75%200%200%200%200%201.5h.5ZM6%208a.75.75%200%200%201-.75.75h-.5a.75.75%200%200%201%200-1.5h.5A.75.75%200%200%201%206%208Zm2.25.75a.75.75%200%200%200%200-1.5h-.5a.75.75%200%200%200%200%201.5h.5ZM12%208a.75.75%200%200%201-.75.75h-.5a.75.75%200%200%201%200-1.5h.5A.75.75%200%200%201%2012%208Zm2.25.75a.75.75%200%200%200%200-1.5h-.5a.75.75%200%200%200%200%201.5h.5Z&apos;%2F%3E%3C%2Fsvg%3E&quot;);--ec-cs-collapseIcon:url(&quot;data:image/svg+xml,%3Csvg%20xmlns%3D&apos;http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg&apos;%20viewBox%3D&apos;0%200%2016%2016&apos;%3E%3Cpath%20d%3D&apos;M10.896%202H8.75V.75a.75.75%200%200%200-1.5%200V2H5.104a.25.25%200%200%200-.177.427l2.896%202.896a.25.25%200%200%200%20.354%200l2.896-2.896A.25.25%200%200%200%2010.896%202ZM8.75%2015.25a.75.75%200%200%201-1.5%200V14H5.104a.25.25%200%200%201-.177-.427l2.896-2.896a.25.25%200%200%201%20.354%200l2.896%202.896a.25.25%200%200%201-.177.427H8.75v1.25Zm-6.5-6.5a.75.75%200%200%200%200-1.5h-.5a.75.75%200%200%200%200%201.5h.5ZM6%208a.75.75%200%200%201-.75.75h-.5a.75.75%200%200%201%200-1.5h.5A.75.75%200%200%201%206%208Zm2.25.75a.75.75%200%200%200%200-1.5h-.5a.75.75%200%200%200%200%201.5h.5ZM12%208a.75.75%200%200%201-.75.75h-.5a.75.75%200%200%201%200-1.5h.5A.75.75%200%200%201%2012%208Zm2.25.75a.75.75%200%200%200%200-1.5h-.5a.75.75%200%200%200%200%201.5h.5Z&apos;%2F%3E%3C%2Fsvg%3E&quot;)}.expressive-code .ec-line :where(span[style^=&apos;--&apos;]:not([class])),:root:not([data-theme=&quot;dark&quot;]) .expressive-code[data-theme=&quot;dark&quot;] .ec-line :where(span[style^=&apos;--&apos;]:not([class])){color:var(--0, inherit);background-color:var(--0bg, transparent);font-style:var(--0fs, inherit);font-weight:var(--0fw, inherit);text-decoration:var(--0td, inherit)}@media (prefers-color-scheme: light){:root:not([data-theme=&quot;dark&quot;]){--ec-brdCol:#e1e4e8;--ec-codeBg:#fff;--ec-codeFg:#24292e;--ec-codeSelBg:#0366d625;--ec-gtrFg:#1b1f2381;--ec-gtrBrdCol:#1b1f2333;--ec-gtrHlFg:#24292eab;--ec-uiSelBg:#e2e5e9;--ec-uiSelFg:#2f363d;--ec-focusBrd:#2188ff;--ec-sbThumbCol:#959da533;--ec-sbThumbHoverCol:#959da5eb;--ec-tm-markBg:#9fb6ff80;--ec-tm-insBg:#94c68480;--ec-tm-insDiffIndCol:#3a692fd0;--ec-tm-delBg:#fea09280;--ec-tm-delDiffIndCol:#97453dd0;--ec-frm-shdCol:#00000028;--ec-frm-frameBoxShdCssVal:0.1rem 0.1rem 0.2rem #00000028;--ec-frm-edActTabBg:#fff;--ec-frm-edActTabFg:#2f363d;--ec-frm-edActTabIndBtmCol:#fff;--ec-frm-edTabBarBg:#f6f8fa;--ec-frm-edTabBarBrdCol:#e1e4e8;--ec-frm-edTabBarBrdBtmCol:#e1e4e8;--ec-frm-edBg:#fff;--ec-frm-trmTtbFg:#2f363d;--ec-frm-trmTtbDotsFg:#2f363d;--ec-frm-trmTtbBg:#fff;--ec-frm-trmTtbBrdBtmCol:#e1e4e8;--ec-frm-trmBg:#f6f8fa;--ec-frm-inlBtnFg:#24292e;--ec-frm-inlBtnBg:#24292e;--ec-frm-inlBtnBrd:#24292e;--ec-frm-tooltipSuccessBg:#208638;--ec-cs-closedTextCol:#24292e;--ec-cs-closedBgCol:#d1d5da33;--ec-cs-closedBrdCol:#d1d5da80;--ec-cs-openBgColCollapsible:#d1d5da1a}:root:not([data-theme=&quot;dark&quot;]) .expressive-code .ec-line :where(span[style^=&apos;--&apos;]:not([class])){color:var(--1, inherit);background-color:var(--1bg, transparent);font-style:var(--1fs, inherit);font-weight:var(--1fw, inherit);text-decoration:var(--1td, inherit)}}:root[data-theme=&quot;light&quot;] .expressive-code:not([data-theme=&quot;dark&quot;]),.expressive-code[data-theme=&quot;light&quot;]{--ec-brdCol:#e1e4e8;--ec-codeBg:#fff;--ec-codeFg:#24292e;--ec-codeSelBg:#0366d625;--ec-gtrFg:#1b1f2381;--ec-gtrBrdCol:#1b1f2333;--ec-gtrHlFg:#24292eab;--ec-uiSelBg:#e2e5e9;--ec-uiSelFg:#2f363d;--ec-focusBrd:#2188ff;--ec-sbThumbCol:#959da533;--ec-sbThumbHoverCol:#959da5eb;--ec-tm-markBg:#9fb6ff80;--ec-tm-insBg:#94c68480;--ec-tm-insDiffIndCol:#3a692fd0;--ec-tm-delBg:#fea09280;--ec-tm-delDiffIndCol:#97453dd0;--ec-frm-shdCol:#00000028;--ec-frm-frameBoxShdCssVal:0.1rem 0.1rem 0.2rem #00000028;--ec-frm-edActTabBg:#fff;--ec-frm-edActTabFg:#2f363d;--ec-frm-edActTabIndBtmCol:#fff;--ec-frm-edTabBarBg:#f6f8fa;--ec-frm-edTabBarBrdCol:#e1e4e8;--ec-frm-edTabBarBrdBtmCol:#e1e4e8;--ec-frm-edBg:#fff;--ec-frm-trmTtbFg:#2f363d;--ec-frm-trmTtbDotsFg:#2f363d;--ec-frm-trmTtbBg:#fff;--ec-frm-trmTtbBrdBtmCol:#e1e4e8;--ec-frm-trmBg:#f6f8fa;--ec-frm-inlBtnFg:#24292e;--ec-frm-inlBtnBg:#24292e;--ec-frm-inlBtnBrd:#24292e;--ec-frm-tooltipSuccessBg:#208638;--ec-cs-closedTextCol:#24292e;--ec-cs-closedBgCol:#d1d5da33;--ec-cs-closedBrdCol:#d1d5da80;--ec-cs-openBgColCollapsible:#d1d5da1a}:root[data-theme=&quot;light&quot;] .expressive-code:not([data-theme=&quot;dark&quot;]) .ec-line :where(span[style^=&apos;--&apos;]:not([class])),.expressive-code[data-theme=&quot;light&quot;] .ec-line :where(span[style^=&apos;--&apos;]:not([class])){color:var(--1, inherit);background-color:var(--1bg, transparent);font-style:var(--1fs, inherit);font-weight:var(--1fw, inherit);text-decoration:var(--1td, inherit)}&lt;/style&gt;&lt;script type=&quot;module&quot;&gt;try{(()=&gt;{function a(e){if(!e)return;let t=e.getAttribute(&quot;tabindex&quot;)!==null,r=e.scrollWidth&gt;e.clientWidth;r&amp;&amp;!t?(e.setAttribute(&quot;tabindex&quot;,&quot;0&quot;),e.setAttribute(&quot;role&quot;,&quot;region&quot;)):!r&amp;&amp;t&amp;&amp;(e.removeAttribute(&quot;tabindex&quot;),e.removeAttribute(&quot;role&quot;))}var u=window.requestIdleCallback||(e=&gt;setTimeout(e,1)),s=window.cancelIdleCallback||clearTimeout;function l(e){let t=new Set,r,n;return new ResizeObserver(c=&gt;{c.forEach(o=&gt;t.add(o.target)),r&amp;&amp;clearTimeout(r),n&amp;&amp;s(n),r=setTimeout(()=&gt;{n&amp;&amp;s(n),n=u(()=&gt;{t.forEach(o=&gt;e(o)),t.clear()})},250)})}function i(e,t){e.querySelectorAll?.(&quot;.expressive-code pre &gt; code&quot;).forEach(r=&gt;{let n=r.parentElement;n&amp;&amp;t.observe(n)})}var d=l(a);i(document,d);var b=new MutationObserver(e=&gt;e.forEach(t=&gt;t.addedNodes.forEach(r=&gt;{i(r,d)})));b.observe(document.body,{childList:!0,subtree:!0});document.addEventListener(&quot;astro:page-load&quot;,()=&gt;{i(document,d)});})();}catch(e){console.error(&quot;[EC] tabindex-js-module failed:&quot;,e)}&lt;/script&gt;&lt;script type=&quot;module&quot;&gt;try{(()=&gt;{function l(o){let e=document.createElement(&quot;pre&quot;);Object.assign(e.style,{opacity:&quot;0&quot;,pointerEvents:&quot;none&quot;,position:&quot;absolute&quot;,overflow:&quot;hidden&quot;,left:&quot;0&quot;,top:&quot;0&quot;,width:&quot;20px&quot;,height:&quot;20px&quot;,webkitUserSelect:&quot;auto&quot;,userSelect:&quot;all&quot;}),e.ariaHidden=&quot;true&quot;,e.textContent=o,document.body.appendChild(e);let a=document.createRange();a.selectNode(e);let n=getSelection();if(!n)return!1;n.removeAllRanges(),n.addRange(a);let r=!1;try{r=document.execCommand(&quot;copy&quot;)}finally{n.removeAllRanges(),document.body.removeChild(e)}return r}async function u(o){let e=o.currentTarget,a=e.dataset,n=!1,r=a.code.replace(/\u007f/g,`
`);try{await navigator.clipboard.writeText(r),n=!0}catch{n=l(r)}if(!n||e.parentNode?.querySelector(&quot;.feedback&quot;))return;let c=e.parentNode?.querySelector(&quot;[aria-live]&quot;),t=document.createElement(&quot;div&quot;);t.classList.add(&quot;feedback&quot;),t.append(a.copied),c.append(t),t.offsetWidth,requestAnimationFrame(()=&gt;t?.classList.add(&quot;show&quot;));let s=()=&gt;!t||t.classList.remove(&quot;show&quot;),d=()=&gt;{!t||parseFloat(getComputedStyle(t).opacity)&gt;0||(t.remove(),t=void 0)};setTimeout(s,1500),setTimeout(d,2500),e.addEventListener(&quot;blur&quot;,s),t.addEventListener(&quot;transitioncancel&quot;,d),t.addEventListener(&quot;transitionend&quot;,d)}function i(o){o.querySelectorAll?.(&quot;.expressive-code .copy button&quot;).forEach(e=&gt;e.addEventListener(&quot;click&quot;,u))}i(document);var m=new MutationObserver(o=&gt;o.forEach(e=&gt;e.addedNodes.forEach(a=&gt;{i(a)})));m.observe(document.body,{childList:!0,subtree:!0});document.addEventListener(&quot;astro:page-load&quot;,()=&gt;{i(document)});})();}catch(e){console.error(&quot;[EC] copy-js-module failed:&quot;,e)}&lt;/script&gt;&lt;figure class=&quot;frame&quot;&gt;&lt;figcaption class=&quot;header&quot;&gt;&lt;/figcaption&gt;&lt;pre data-language=&quot;markdown&quot;&gt;&lt;code&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;1&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span style=&quot;--0:#79B8FF;--0fw:bold;--1:#005CC5;--1fw:bold&quot;&gt;## Happy New Year&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;2&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;3&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span style=&quot;--0:#E1E4E8;--0fw:bold;--1:#24292E;--1fw:bold&quot;&gt;**Hello**&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; mum.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div class=&quot;copy&quot;&gt;&lt;div aria-live=&quot;polite&quot;&gt;&lt;/div&gt;&lt;button title=&quot;Copy to clipboard&quot; data-copied=&quot;Copied!&quot; data-code=&quot;## Happy New Year**Hello** mum.&quot;&gt;&lt;div&gt;&lt;/div&gt;&lt;/button&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;Die obige Eingabe würde vom CMS übersetzt: „Überschrift 2 durch Verwendung von ##, und ** zum Fettdrucken“ und dann als HTML für dich ausgegeben. Du musst also keinen Code wie „&amp;#x3C;h2&gt;Happy New Year&amp;#x3C;/h2&gt;&amp;#x3C;p&gt;&amp;#x3C;b&gt;Hello&amp;#x3C;/b&gt; mum&amp;#x3C;/p&gt;“ schreiben und kannst dich einfach auf das Schreiben des Inhalts konzentrieren.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Von Markdown zur veröffentlichten URL&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Deine Markdown-Dateien befinden sich normalerweise in einem Ordner namens blog oder posts, je nachdem, wie du es möchtest. Die Art, wie du deine Markdown-Dateien ablegst, spiegelt sich meist auch in der veröffentlichten URL wider. Wenn du deine Dateien in root/posts/hello-mum.md ablegst, sieht die veröffentlichte URL wie example.com/posts/hello-mum aus. Das hängt aber davon ab, wie du es einrichtest oder welches CMS du verwendest.&lt;/p&gt;
&lt;p&gt;Wenn du einen neuen Beitrag möchtest, erstellst du einfach eine neue .md-Datei. Wenn du sie peter-parker.md nennst, endet die URL mit posts/peter-parker.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Schema für dein Markdown&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Ein Schema ist eine Sammlung von Variablen, die du für dein CMS definierst. Eine Beispiel-Markdown-Datei kann etwa so aussehen:&lt;/p&gt;
&lt;div class=&quot;expressive-code&quot;&gt;&lt;figure class=&quot;frame&quot;&gt;&lt;figcaption class=&quot;header&quot;&gt;&lt;/figcaption&gt;&lt;pre data-language=&quot;markdown&quot;&gt;&lt;code&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;1&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;---&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;2&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span style=&quot;--0:#85E89D;--1:#1E7734&quot;&gt;title&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;: &lt;/span&gt;&lt;span style=&quot;--0:#9ECBFF;--1:#032F62&quot;&gt;&apos;Hello Mum&apos;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;3&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span style=&quot;--0:#85E89D;--1:#1E7734&quot;&gt;date&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;: &lt;/span&gt;&lt;span style=&quot;--0:#79B8FF;--1:#005CC5&quot;&gt;2023-11-10&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;4&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span style=&quot;--0:#85E89D;--1:#1E7734&quot;&gt;tags&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;: [&lt;/span&gt;&lt;span style=&quot;--0:#9ECBFF;--1:#032F62&quot;&gt;&apos;Parenting&apos;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;--0:#9ECBFF;--1:#032F62&quot;&gt;&apos;Mum&apos;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;--0:#9ECBFF;--1:#032F62&quot;&gt;&apos;Family&apos;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;]&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;5&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span style=&quot;--0:#85E89D;--1:#1E7734&quot;&gt;summary&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;: &lt;/span&gt;&lt;span style=&quot;--0:#9ECBFF;--1:#032F62&quot;&gt;&apos;Say hi to your mum instead of hello world&apos;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;6&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span style=&quot;--0:#85E89D;--1:#1E7734&quot;&gt;image&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;:&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;7&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;--0:#85E89D;--1:#1E7734&quot;&gt;src&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;: &lt;/span&gt;&lt;span style=&quot;--0:#9ECBFF;--1:#032F62&quot;&gt;/images/mumSmiling.jpg&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;8&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;--0:#85E89D;--1:#1E7734&quot;&gt;alt&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;: &lt;/span&gt;&lt;span style=&quot;--0:#9ECBFF;--1:#032F62&quot;&gt;myMum&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;9&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span style=&quot;--0:#85E89D;--1:#1E7734&quot;&gt;authors&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;: [&lt;/span&gt;&lt;span style=&quot;--0:#9ECBFF;--1:#032F62&quot;&gt;&apos;default&apos;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;]&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;10&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;---&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;11&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;12&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;&amp;#x3C;&lt;/span&gt;&lt;span style=&quot;--0:#85E89D;--1:#1E7734&quot;&gt;img&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#B392F0;--1:#6F42C1&quot;&gt;src&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;--0:#9ECBFF;--1:#032F62&quot;&gt;&quot;../../../public/images/omelet.jpg&quot;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#B392F0;--1:#6F42C1&quot;&gt;alt&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;--0:#9ECBFF;--1:#032F62&quot;&gt;&quot;omelet&quot;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;/&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;13&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;or&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;14&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;![omelet](../../../public/images/omelet.jpg)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;15&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;
&lt;/div&gt;&lt;/div&gt;&lt;details class=&quot;ec-section github&quot;&gt;&lt;summary&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;expand&quot;&gt;&lt;/span&gt;&lt;span class=&quot;collapse&quot;&gt;&lt;/span&gt;&lt;span class=&quot;text&quot;&gt;3 collapsed lines&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/summary&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;16&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;## Breakfast&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;17&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;18&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;I usually make omelet for her....... (continue on your article)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/details&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div class=&quot;copy&quot;&gt;&lt;div aria-live=&quot;polite&quot;&gt;&lt;/div&gt;&lt;button title=&quot;Copy to clipboard&quot; data-copied=&quot;Copied!&quot; data-code=&quot;---title: &amp;#x27;Hello Mum&amp;#x27;date: 2023-11-10tags: [&amp;#x27;Parenting&amp;#x27;, &amp;#x27;Mum&amp;#x27;, &amp;#x27;Family&amp;#x27;]summary: &amp;#x27;Say hi to your mum instead of hello world&amp;#x27;image:  src: /images/mumSmiling.jpg  alt: myMumauthors: [&amp;#x27;default&amp;#x27;]---&lt;img src=&amp;#x22;../../../public/images/omelet.jpg&amp;#x22; alt=&amp;#x22;omelet&amp;#x22;/&gt;or![omelet](../../../public/images/omelet.jpg)## BreakfastI usually make omelet for her....... (continue on your article)&quot;&gt;&lt;div&gt;&lt;/div&gt;&lt;/button&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;Die Felder wie title, date, tags, summary, image src &amp;#x26; alt, authors sind vordefiniert. Du musst nur ihre Werte für jedes Feld entsprechend ändern. Wenn du jedoch Entwickler bist, kannst du die Felder nach Belieben bearbeiten.&lt;/p&gt;
&lt;p&gt;Wie du siehst, kannst du sogar HTML-Code in dein Markdown einfügen – wie praktisch ist das denn?&lt;/p&gt;
&lt;h2 id=&quot;was-ist-ein-headless-cms&quot;&gt;Was ist ein Headless CMS?&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Es verwendet eine Datenbank, um deine Webseite und Blogbeiträge zu trennen.&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Ein Headless CMS funktioniert ähnlich wie ein traditionelles, du kannst auch in Markdown schreiben. Aber es speichert deinen Blogbeitrag nicht als Markdown auf deiner Website. Stattdessen trennt es deine Inhalte von deiner Website – lass es mich erklären.&lt;/p&gt;
&lt;p&gt;&lt;img loading=&quot;lazy&quot; decoding=&quot;async&quot; referrerpolicy=&quot;no-referrer&quot; src=&quot;https://cms.hongct.com/assets/eac40a1a-34cf-4ae8-87e1-45b0a0b7df6f&quot; alt=&quot;Headless-CMS-VS-Traditional-CMS&quot;&gt;&lt;/p&gt;
&lt;p&gt;Headless CMS bedeutet, dass der Inhalt von deinem Frontend getrennt ist. Deine Blogbeiträge werden auf einem Backend-Server anderswo gespeichert.&lt;/p&gt;
&lt;p&gt;Wenn du deine Website in einem traditionellen CMS erstellst, nennen wir das üblicherweise statische Seitengenerierung. Das bedeutet, du legst alles – einschließlich der von dir geschriebenen Artikel, das Design deiner Website und das CMS-System – im selben Ordner ab. Dann generierst du es, wenn es fertig ist, und es wird ein Ordner mit allem ausgegeben – das bekommen die Besucher zu sehen.&lt;/p&gt;
&lt;p&gt;Ein Headless CMS würde jedoch Blogbeiträge oder Autoreninformationen nicht von Anfang an im Designordner deiner Website enthalten.&lt;/p&gt;
&lt;p&gt;Stattdessen werden die Inhalte auf einem Cloud-Server in einer Datenbank gespeichert. Wenn du deine Website baust, hat deine Website eine Logik, um die Datenbank in der Cloud abzufragen (mit ihr zu kommunizieren), um alle deine Beiträge abzurufen, die auf dem Cloud-Server gespeichert sind. Wenn du deine Website veröffentlichst, holt sie diese Daten automatisch aus der Cloud, integriert sie als Teil deiner Website und gibt dann eine vollständige Website mit deinen Blogbeiträgen aus.&lt;/p&gt;
&lt;h2 id=&quot;nachteile-von-headless-cms&quot;&gt;Nachteile von Headless CMS&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Kosten&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Traditionelle CMS sind normalerweise kostenlos, du musst nur die Kosten für dein Website-Hosting bezahlen. Wenn du GitHub verwendest, ist es im Grunde kostenlos. Ein Headless CMS hingegen berechnet in der Regel eine monatliche Gebühr plus zusätzliche Kosten pro Seat (Autor), das heißt, du zahlst dafür, wie groß dein Team ist.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Bandbreitenlimits (Kosten)&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Wenn deine Website viele Inhalte und Assets (Bilder) hat, kann sie viel Bandbreite deines Headless-CMS-Servers verbrauchen. Ihr Service hat auch Bandbreitenlimits für jeden Tarif, den du wählst. Bei einem traditionellen CMS musst du dich jedoch nur um die Hosting-Kosten und die Bandbreite der Website kümmern. Und wenn du Cloudflare Pages verwendest, bietet es unbegrenzte Bandbreite, kostenlos.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Erfordert mehr Aufwand beim Aufbau&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Ein Static-Site-Generator (traditionelles CMS) ist einfacher umzusetzen als ein Headless CMS. Das liegt daran, dass du dich bei einem traditionellen CMS nur um das Schema und das Schreiben von Markdown kümmern musst, und es funktioniert wahrscheinlich bei vielen traditionellen CMS. Ein Headless CMS erfordert jedoch ein wenig API-Fetch-Logik und das Erlernen einer spezifischen Abfragemethode für jeden Headless-CMS-Anbieter.&lt;/p&gt;
&lt;h2 id=&quot;wann-verwendet-man-was&quot;&gt;Wann verwendet man was?&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Traditionelles CMS&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;z. B. Hugo, 11ty, Jekyll, Gatsby usw.&lt;/p&gt;
&lt;p&gt;Kleines Team oder nur du.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Headless CMS&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;z. B. Sanity, WordPress, Strapi, Drupal, Payload, Prismic usw.&lt;/p&gt;
&lt;p&gt;Großes Team oder für zukünftige Skalierbarkeit.&lt;/p&gt;
&lt;p&gt;Das bedeutet nicht, dass du kein Headless CMS verwenden solltest, wenn du ein kleines Team hast – es ist nur eine allgemeine Richtlinie.&lt;/p&gt;
&lt;p&gt;Wenn du deinen Blogbeitrag außerdem nicht lokal verwalten und schreiben möchtest, solltest du ebenfalls ein Headless CMS in Betracht ziehen.&lt;/p&gt;
&lt;h2 id=&quot;wenn-du-dich-nur-ums-schreiben-kümmerst-oder-kein-entwickler-bist&quot;&gt;Wenn du dich nur ums Schreiben kümmerst oder kein Entwickler bist&lt;/h2&gt;
&lt;p&gt;Verwende einfach WordPress. Mach dir nicht einmal die Mühe mit einem anderen CMS.&lt;/p&gt;
&lt;p&gt;Es bietet Skalierbarkeit, wenn du sie brauchst, und – am wichtigsten – du musst nicht am Code herumbasteln.&lt;/p&gt;
&lt;p&gt;Das stammt aus meiner Recherche und Erfahrung.&lt;/p&gt;
&lt;p&gt;Viel Glück.&lt;/p&gt;</content:encoded><media:thumbnail url="https://cms.hongct.com/assets/d3c89c82-a706-4916-91af-a64c931bf57d"/><enclosure url="https://cms.hongct.com/assets/d3c89c82-a706-4916-91af-a64c931bf57d" length="181775" type="image/jpeg"/></item><item><title>So beheben Sie das Problem, dass „Copying shared cache symbols from iPhone“ zu lange dauert</title><link>https://hongcheung.com/de/post/how-to-fix-copying-shared-cache-symbols-from-iphone-taking-too-long/</link><guid isPermaLink="true">https://hongcheung.com/de/post/how-to-fix-copying-shared-cache-symbols-from-iphone-taking-too-long/</guid><description>Eine Lösung für Probleme beim Verbinden Ihres iOS-Geräts mit Xcode.</description><pubDate>Thu, 28 Dec 2023 12:00:00 GMT</pubDate><content:encoded>&lt;p&gt;&lt;img src=&quot;https://cms.hongct.com/assets/1e7aff28-fa4f-4634-aa8d-1dcd4832b669&quot; alt=&quot;So beheben Sie das Problem, dass „Copying shared cache symbols from iPhone“ zu lange dauert&quot; referrerpolicy=&quot;no-referrer&quot; loading=&quot;lazy&quot;/&gt;&lt;/p&gt;&lt;h2 id=&quot;das-problem&quot;&gt;Das Problem&lt;/h2&gt;
&lt;p&gt;Ich glaube, die meisten von uns iOS-Entwicklern verwenden bereits Xcode 15.&lt;/p&gt;
&lt;p&gt;Eine Sache, die kürzlich aktualisiert wurde, ist, dass die standardmäßige Verbindung zu Ihren iOS-Geräten über Wi-Fi erfolgt.&lt;/p&gt;
&lt;p&gt;Das klingt ja alles gut und schön, aber für viele von uns verursacht es einige Probleme, wie etwa eine langsamere Build-Zeit im Vergleich zur Verwendung eines Kabels.&lt;/p&gt;
&lt;p&gt;Und speziell bei mir dieses nervige Problem, dass der erste Verbindungsversuch zu meinen iOS-Geräten ewig dauert. (Wie Sie im Screenshot sehen können, hing es mehr als 15 Minuten bei 45 % fest)&lt;/p&gt;
&lt;h2 id=&quot;die-lösung&quot;&gt;Die Lösung&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;Schalten Sie das Wi-Fi auf dem Computer aus.&lt;/li&gt;
&lt;li&gt;Schließen Sie Ihr iPhone auf die herkömmliche Weise an – mit einem Kabel.\&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;img loading=&quot;lazy&quot; decoding=&quot;async&quot; referrerpolicy=&quot;no-referrer&quot; src=&quot;https://cms.hongct.com/assets/c27d0742-9cbc-4e96-8f86-27a4a79a51ce&quot; alt=&quot;xcode-problem&quot;&gt;&lt;/p&gt;
&lt;ol start=&quot;3&quot;&gt;
&lt;li&gt;Sie können auf „Manage Run Destinations“ klicken, um die Verbindung einzuleiten.\&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;img loading=&quot;lazy&quot; decoding=&quot;async&quot; referrerpolicy=&quot;no-referrer&quot; src=&quot;https://cms.hongct.com/assets/5141ff76-0850-41c4-944d-99ec722eec37&quot; alt=&quot;xcode-problem-2&quot;&gt;&lt;/p&gt;
&lt;ol start=&quot;4&quot;&gt;
&lt;li&gt;Klicken Sie auf die Geräte an der Seite und warten Sie einfach, bis es seine Arbeit aufnimmt.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Bei mir hat diese Methode vom Start bis zum Abschluss des gesamten Kopiervorgangs weniger als ein paar Minuten gedauert.&lt;/p&gt;
&lt;p&gt;VS&lt;/p&gt;
&lt;p&gt;Es waren 15 Minuten bei nur 27 %, was Wahnsinn ist.&lt;/p&gt;
&lt;p&gt;let happyCoding = true&lt;/p&gt;</content:encoded><media:thumbnail url="https://cms.hongct.com/assets/1e7aff28-fa4f-4634-aa8d-1dcd4832b669"/><enclosure url="https://cms.hongct.com/assets/1e7aff28-fa4f-4634-aa8d-1dcd4832b669" length="151017" type="image/png"/></item><item><title>Das Dilemma zwischen Headless-CMS und Nicht-Headless-CMS</title><link>https://hongcheung.com/de/post/the-dilemma-between-headless-cms-and-non-headless-cms/</link><guid isPermaLink="true">https://hongcheung.com/de/post/the-dilemma-between-headless-cms-and-non-headless-cms/</guid><description>Ein kurzer Blick auf die Unterschiede zwischen CMS</description><pubDate>Sun, 24 Dec 2023 12:00:00 GMT</pubDate><content:encoded>&lt;p&gt;&lt;img src=&quot;https://cms.hongct.com/assets/6438f070-fd31-48fb-a545-77e0164a108e&quot; alt=&quot;Das Dilemma zwischen Headless-CMS und Nicht-Headless-CMS&quot; referrerpolicy=&quot;no-referrer&quot; loading=&quot;lazy&quot;/&gt;&lt;/p&gt;&lt;h2 id=&quot;was-ist-ein-cms&quot;&gt;Was ist ein CMS&lt;/h2&gt;
&lt;p&gt;CMS – Content-Management-System, im Grunde ein System zur Verwaltung einer Website. WordPress ist das bekannteste davon.&lt;/p&gt;
&lt;h3 id=&quot;warum-nicht-wordpress&quot;&gt;Warum nicht WordPress&lt;/h3&gt;
&lt;p&gt;Ich möchte WordPress nicht verwenden, weil mir die UI-Entwicklungserfahrung nicht gefällt. Ich bevorzuge den programmatischen Weg. Allerdings mag ich die Einfachheit, mit der man damit Blogbeiträge schreiben kann, und wie mächtig es mit all den Plugins sein kann. Aber wenn man nicht viel braucht, reicht eine einfache kostenlose statische Website völlig aus, 9 USD pro Jahr, ohne dass man einen Server benötigt.&lt;/p&gt;
&lt;p&gt;Jetzt noch ein Open-Source-CMS dazu, und es kann losgehen.&lt;/p&gt;
&lt;h3 id=&quot;das-cms-finden&quot;&gt;Das CMS finden&lt;/h3&gt;
&lt;p&gt;Ich habe in den letzten Monaten einige verschiedene CMS ausprobiert, wie Tina, Netlify und Sanity.&lt;/p&gt;
&lt;p&gt;Das CMS, das ich gerade verwende, ist Tina, ich finde es ganz in Ordnung. Aber das Template, das ich mit Astro verwendet habe, hat hier und da einige Probleme. Keine wirklich ruhige Fahrt, aber zumindest funktioniert es.&lt;/p&gt;
&lt;p&gt;Im Grunde wollte ich nur einen einfachen statischen Blog. Ich habe Netlify (Decap) mit meiner 11ty-Seite verwendet, wollte aber etwas Neues ausprobieren, also nutze ich jetzt Astro mit Tina, um es zu erleben.&lt;/p&gt;
&lt;h3 id=&quot;was-ich-gerne-vorher-gewusst-hätte&quot;&gt;Was ich gerne vorher gewusst hätte&lt;/h3&gt;
&lt;p&gt;Als ich mir JEDES CMS angesehen habe, das Leute auf Reddit empfohlen haben, bin ich auf Sanity und Payload gestoßen.&lt;/p&gt;
&lt;p&gt;Ich wünschte, ich hätte den Unterschied zwischen einem Headless-CMS und einem Nicht-Headless-CMS gekannt.&lt;/p&gt;
&lt;h2 id=&quot;headless-cms-vs-nicht-headless-cms&quot;&gt;Headless-CMS vs. Nicht-Headless-CMS&lt;/h2&gt;
&lt;p&gt;Was Sanity und Payload anders machen, ist, dass sie headless sind.&lt;/p&gt;
&lt;p&gt;Headless-CMS bedeutet, dass der Inhalt (z. B. Blogbeiträge, Seiten) von deinem Frontend getrennt ist. Die Daten werden auf einem Server gespeichert, entweder selbst gehostet oder in deren Cloud gehostet. Und dein Frontend ruft einfach die API auf, um diese Daten im JSON-Format abzurufen.&lt;/p&gt;
&lt;p&gt;Bei einem Head-CMS wie dem, das ich verwendet habe – Netlify oder Tina CMS – funktionieren ohne Server. Das “Admin”-System zeigt dir einfach die Daten deiner Website an und nimmt Änderungen direkt daran vor, dann wird das gesamte Projekt für die Produktion neu gebaut. Außerdem werden die Blogbeiträge in Markdown geschrieben, sodass jedes Mal, wenn du einen neuen Beitrag schreibst, eine neue .md-Datei in deinem Quellordner liegt.&lt;/p&gt;
&lt;p&gt;Also eines mit einem Server, eines ohne. Eines verwendet wohl JSON, das andere Markdown.&lt;/p&gt;
&lt;p&gt;Und natürlich ist das ohne Server einfacher einzurichten und hat in den meisten Fällen niedrigere Betriebskosten.&lt;/p&gt;
&lt;h3 id=&quot;was-ich-nicht-verstehe&quot;&gt;Was ich nicht verstehe&lt;/h3&gt;
&lt;p&gt;Es gibt einfach so viele CMS da draußen, ich habe schon eine Menge weggelassen. Jedes funktioniert etwas anders, aber größtenteils gleich.&lt;/p&gt;
&lt;p&gt;Ich kann verstehen, warum Leute einfach zu WordPress gehen. Es hat eine lange Geschichte, jeder weiß, wie man es benutzt, und es ist mächtig und skalierbar, ob es dir gefällt oder nicht.&lt;/p&gt;
&lt;p&gt;Als Alternative ist Sanity schön, weil es einen großzügigen kostenlosen Tarif bietet, ohne dass man sein eigenes Backend hosten muss. Für einfache Nutzung könnten Netlify und Tina ausreichen. Aber wenn man skalieren will, scheint Sanity die bessere Option zu sein. Oder man kann zu WordPress zurückkehren.&lt;/p&gt;
&lt;p&gt;Was ich jedoch nicht verstehe, ist, ob es headless ist oder nicht, Markdown oder nicht – wie spielt das langfristig eine Rolle?&lt;/p&gt;
&lt;p&gt;Vermutlich kann ein selbst gehostetes Headless-CMS-Backend lange funktionieren, es gibt keine Vendor-Lock-in. Aber man muss sich trotzdem damit abfinden, das Headless-CMS-System von jemandem zu verwenden, um die Daten zu speichern und abzurufen.&lt;/p&gt;
&lt;p&gt;Markdown hingegen funktioniert im Grunde in jedem Nicht-Headless-CMS. Nur dass man möglicherweise Tausende von Markdown-Dateien auf seiner Website speichern muss, wenn nicht sogar mehr, was keine langfristige Lösung zu sein scheint.&lt;/p&gt;
&lt;h2 id=&quot;fazit&quot;&gt;Fazit&lt;/h2&gt;
&lt;p&gt;Also ist es mir jetzt egal.&lt;/p&gt;
&lt;p&gt;Verwende einfach, was dir gefällt, und warte, bis der Blogbeitrag Zehntausende erreicht. Bis dahin sollte ich etwas Geld verdienen, um einen Entwickler einzustellen, der die Migration zu einem schicken neuen CMS zu diesem Zeitpunkt durchführt. Ich möchte mir darüber wirklich keine Gedanken machen.&lt;/p&gt;</content:encoded><media:thumbnail url="https://cms.hongct.com/assets/6438f070-fd31-48fb-a545-77e0164a108e"/><enclosure url="https://cms.hongct.com/assets/6438f070-fd31-48fb-a545-77e0164a108e" length="195473" type="image/jpeg"/></item><item><title>Wie ich als Anfänger in den letzten 6 Monaten kostenlos Programmieren gelernt habe</title><link>https://hongcheung.com/de/post/how-i-learn-programming-for-free-in-the-past-6-months-as-a-beginner/</link><guid isPermaLink="true">https://hongcheung.com/de/post/how-i-learn-programming-for-free-in-the-past-6-months-as-a-beginner/</guid><description>Eine lohnenswerte Lektüre für Anfänger, die Programmieren lernen wollen.</description><pubDate>Wed, 13 Dec 2023 12:00:00 GMT</pubDate><content:encoded>&lt;p&gt;&lt;img src=&quot;https://cms.hongct.com/assets/75e9b75e-26c5-4bd2-9584-6a3974f879c9&quot; alt=&quot;Wie ich als Anfänger in den letzten 6 Monaten kostenlos Programmieren gelernt habe&quot; referrerpolicy=&quot;no-referrer&quot; loading=&quot;lazy&quot;/&gt;&lt;/p&gt;&lt;h2 id=&quot;hintergrund&quot;&gt;Hintergrund&lt;/h2&gt;
&lt;p&gt;Ich war schon immer daran interessiert, Dinge zu erschaffen. Programmieren ermöglicht genau das.&lt;/p&gt;
&lt;p&gt;Seit April dieses Jahres lerne ich Swift (iOS) mit &lt;a rel=&quot;nofollow noopener noreferrer&quot; target=&quot;_blank&quot; href=&quot;https://www.hackingwithswift.com/100/swiftui&quot; title=&quot;100 Days Of SwiftUI&quot;&gt;100 Days Of SwiftUI&lt;/a&gt;, bin bis zum 7x. Tag durchgekommen, habe ein paar Apps gebaut und im App Store veröffentlicht. Swift ist praktisch, weil es die UI und die Logik in derselben Sprache abdeckt.&lt;/p&gt;
&lt;p&gt;Dann aber wurde mir klar, dass das Potenzial des Webs größer sein könnte, weil das Web mehr Freiheit bietet. Deine App muss nicht überprüft werden, du musst nicht für ein Entwicklerkonto bezahlen, und du hast die Flexibilität, deinen eigenen Stack zu wählen, usw. Besonders wenn du willst, dass deine Anwendung plattformübergreifend funktioniert.&lt;/p&gt;
&lt;h2 id=&quot;webentwicklung-lernen&quot;&gt;Webentwicklung lernen&lt;/h2&gt;
&lt;p&gt;Nachdem ich einige kleine Apps für das iPhone gebaut hatte, begann ich in den letzten 3–4 Monaten, Webentwicklung mit freeCodeCamp und ein wenig mit dem Odin Project zu lernen.&lt;/p&gt;
&lt;p&gt;Ich brauche Webentwicklung, weil ich eine Landingpage für meine mobilen Projekte bauen will und eine REST API, die meine mobile App nutzen kann.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;&lt;a rel=&quot;nofollow noopener noreferrer&quot; target=&quot;_blank&quot; href=&quot;https://www.freecodecamp.org/&quot; title=&quot;freeCodeCamp&quot;&gt;FreeCodeCamp&lt;/a&gt;&lt;/strong&gt;
&lt;ul&gt;
&lt;li&gt;viel praktische Übung, tatsächlich fand ich es ein wenig überwältigend und repetitiv.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;a rel=&quot;nofollow noopener noreferrer&quot; target=&quot;_blank&quot; href=&quot;https://www.theodinproject.com/&quot; title=&quot;The Odin Project&quot;&gt;The Odin project &lt;/a&gt;&lt;/strong&gt;
&lt;ul&gt;
&lt;li&gt;mehr Theorie und ein tieferes Verständnis dafür, warum und wie Programmieren funktioniert.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Deshalb würde ich empfehlen, beides gleichzeitig zu machen – das eine bringt einen beim anderen voran.&lt;/p&gt;
&lt;p&gt;Ich habe auf freeCodeCamp bisher nur „Responsive Web“, „Basic JavaScript“ und die Hälfte von „React“ abgeschlossen.&lt;/p&gt;
&lt;p&gt;Mein Lernen basierte hauptsächlich auf Textinformationen und offizieller Dokumentation. Die offiziellen Tutorials zu React und NextJS haben mir richtig Spaß gemacht.&lt;/p&gt;
&lt;p&gt;Ich habe fürs Lernen überhaupt keinen Onlinekurs bezahlt.&lt;/p&gt;
&lt;p&gt;Es war größtenteils aufgabengetriebenes Lernen – das eine Ding lernen, das ich machen will, und dann zum nächsten weitergehen.&lt;/p&gt;
&lt;h2 id=&quot;mein-bisheriger-programmierweg&quot;&gt;Mein bisheriger Programmierweg&lt;/h2&gt;
&lt;p&gt;Swift &amp;#x26; ein wenig lokales SQLite &gt; einfache Flask REST API &gt; HTML/CSS &gt; JavaScript &gt; 11ty (Static Site Generator) &gt; React (offizielles Tutorial) &amp;#x26; NodeJS &gt; Next.js (offizielles Tutorial) &gt; ExpressJS &gt; Sicherheit bei REST APIs (CORS &amp;#x26; Umgebungsvariablen) &gt; React wiederholen (freeCodeCamp) &gt; …&lt;/p&gt;
&lt;h3 id=&quot;alle-sagen-dass-projekte-machen-wichtig-ist-und-ich-stimme-dem-sehr-zu&quot;&gt;Alle sagen, dass Projekte machen wichtig ist, und ich stimme dem sehr zu&lt;/h3&gt;
&lt;p&gt;Ich hätte das Interesse verloren, wenn es nicht etwas wäre, das ich bauen will. Wenn ich nach langer Zeit müde werde, an einem Projekt zu arbeiten, ersetze ich es durch ein anderes Projekt in einer anderen Sprache, um mich zu motivieren. Aufgabenorientiertes Lernen funktioniert für mich am besten.&lt;/p&gt;
&lt;h3 id=&quot;einige-kostenlose-hoster-die-ich-genutzt-habe-und-die-anfängerfreundlich-sind&quot;&gt;Einige kostenlose Hoster, die ich genutzt habe und die anfängerfreundlich sind&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;GitHub page&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Im kostenlosen Tarif musst du dein Repo öffentlich machen, um es zu veröffentlichen. Aber du kannst trotzdem deine Domain darauf verweisen lassen.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;&lt;a rel=&quot;nofollow noopener noreferrer&quot; target=&quot;_blank&quot; href=&quot;https://www.netlify.com/&quot; title=&quot;Netlify&quot;&gt;Netlify&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Sehr einfach mit GitHub zu verbinden, es hat integrierte Unterstützung für Kontaktformulare, was bedeutet, dass du keinen eigenen Server brauchst. Du kannst es auch mit der Netlify CMS-Authentifizierung integrieren, mit der du dich in deinem statischen Blog anmelden kannst – alles kostenlos. (Der Nachteil ist, dass Next Image nicht unterstützt wird – das heißt, du kannst die &amp;#x3C;Image&gt;-Optimierung nicht nutzen. Dafür kannst du Vercel verwenden, aber dann verlierst du die Formularunterstützung, also musst du dich entscheiden. Ich weiß das, weil ich meine NextJS-Seite zu Netlify gepusht habe und auf einen Fehler gestoßen bin.)&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;&lt;a rel=&quot;nofollow noopener noreferrer&quot; target=&quot;_blank&quot; href=&quot;https://CloudFlare.com&quot; title=&quot;Cloud Flare&quot;&gt;CloudFlare&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Die UI ist nicht so cool und anfängerfreundlich wie bei Netlify, aber es hat unbegrenzte Bandbreite, kostenloses Hosting und sogar einige begrenzte Cloud-Funktionen, die du nutzen kannst. Es war nicht so anfängerfreundlich wie Netlify, aber auch nicht so schwer. Es hat alles Grundlegende, was du kostenlos brauchst und willst. Und ich habe meine Domains dort, also ist es jetzt mein bevorzugter Static Host.&lt;/p&gt;
&lt;h3 id=&quot;kostenloses-backend-hosting&quot;&gt;Kostenloses Backend-Hosting&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;&lt;a rel=&quot;nofollow noopener noreferrer&quot; target=&quot;_blank&quot; href=&quot;https://www.pythonanywhere.com/&quot; title=&quot;PythonAnywhere&quot;&gt;PythonAnywhere&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Es war mein erstes Backend. Für die grundlegenden Dinge ist es sehr einfach zu bedienen. Es hat begrenzte CPU-Rechenzeit, was bedeutet, dass du auf diesem Server kostenlos keine wirklich großen Verarbeitungsaufgaben ausführen kannst. Für eine RESTful API ist es jedoch sehr gut, weil sie immer läuft.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;&lt;a rel=&quot;nofollow noopener noreferrer&quot; target=&quot;_blank&quot; href=&quot;https://render.com&quot; title=&quot;Render&quot;&gt;Render&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Es ist meine neue Wahl für das Hosting von express.js – der Nachteil ist, dass es automatisch herunterfährt, wenn es 15 Minuten lang inaktiv ist. Ich habe noch keinen kostenlosen, immer laufenden Server gefunden, der das Hosten eines JavaScript-Servers erlaubt. Ein Server, der nicht herunterfährt, kostet jedoch etwa 7 $ pro Monat, was nicht zu teuer ist, und er akzeptiert Debitkarten, was mir gefällt. Die UI ist auch einfach.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;&lt;a rel=&quot;nofollow noopener noreferrer&quot; target=&quot;_blank&quot; href=&quot;https://aws.amazon.com/&quot; title=&quot;AWS&quot;&gt;AWS&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Nein, das war mir zu überwältigend, aber es scheint eines der besten für Skalierbarkeit zu einem vernünftigen Preis zu sein. Das muss ich noch ausprobieren, weil die Website-UI nicht anfängerfreundlich ist und ich nicht viel über VPS weiß.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;&lt;a rel=&quot;nofollow noopener noreferrer&quot; target=&quot;_blank&quot; href=&quot;https://cloud.google.com/&quot; title=&quot;Google Cloud&quot;&gt;Google Cloud&lt;/a&gt; / &lt;a rel=&quot;nofollow noopener noreferrer&quot; target=&quot;_blank&quot; href=&quot;https://firebase.google.com/&quot; title=&quot;Firebase&quot;&gt;Firebase&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Google Cloud verlangt eine Kreditkarte, selbst für einen kostenlosen Tarif, und ich hatte zufällig keine. Firebase ist gut, um auf einfache Weise kostenlos ein Authentifizierungssystem zu bauen. Das werde ich später erkunden.&lt;/p&gt;
&lt;h2 id=&quot;den-gesamten-veröffentlichungszyklus-einer-website-lernen&quot;&gt;Den gesamten Veröffentlichungszyklus einer Website lernen&lt;/h2&gt;
&lt;p&gt;Nachdem ich einige einfache Websites mit HTML/CSS und grundlegendem JS gebaut hatte, wollte ich einen Blog bauen. Ich fand heraus, dass es jede Menge Static Site Generatoren gibt, die das können. Ich suchte nach Vorlagen mit Hugo, 11ty usw. Es war sehr gut für mich, um zu verstehen, wie man mit NodeJS arbeitet, weil man nur ein wenig Codelogik braucht, um mit diesen Vorlagen zu arbeiten, aber man den gesamten Zyklus des Aufbaus einer Website üben kann:&lt;/p&gt;
&lt;div class=&quot;expressive-code&quot;&gt;&lt;style&gt;.expressive-code{font-family:var(--ec-uiFontFml);font-size:var(--ec-uiFontSize);font-weight:var(--ec-uiFontWg);line-height:var(--ec-uiLineHt);text-size-adjust:none;-webkit-text-size-adjust:none}.expressive-code *:not(:is(svg, svg *)){all:revert;box-sizing:border-box}.expressive-code pre{display:flex;margin:0;padding:0;border:var(--ec-brdWd) solid var(--ec-brdCol);border-radius:calc(var(--ec-brdRad) + var(--ec-brdWd));background:var(--ec-codeBg)}.expressive-code pre:focus-visible{outline:3px solid var(--ec-focusBrd);outline-offset:-3px}.expressive-code pre &gt; code{all:unset;display:block;flex:1 0 100%;padding:var(--ec-codePadBlk) 0;color:var(--ec-codeFg);font-family:var(--ec-codeFontFml);font-size:var(--ec-codeFontSize);font-weight:var(--ec-codeFontWg);line-height:var(--ec-codeLineHt)}.expressive-code pre{overflow-x:auto}.expressive-code pre.wrap .ec-line .code{white-space:pre-wrap;overflow-wrap:break-word;min-width:min(20ch, var(--ecMaxLine, 20ch))}.expressive-code pre.wrap .ec-line .code span.indent{white-space:pre}.expressive-code pre::-webkit-scrollbar,.expressive-code pre::-webkit-scrollbar-track{background-color:inherit;border-radius:calc(var(--ec-brdRad) + var(--ec-brdWd));border-top-left-radius:0;border-top-right-radius:0}.expressive-code pre::-webkit-scrollbar-thumb{background-color:var(--ec-sbThumbCol);border:4px solid transparent;background-clip:content-box;border-radius:10px}.expressive-code pre::-webkit-scrollbar-thumb:hover{background-color:var(--ec-sbThumbHoverCol)}.expressive-code pre::-webkit-scrollbar-corner{background:transparent}.expressive-code .ec-line{direction:ltr;unicode-bidi:isolate;display:grid;grid-template-areas:&apos;gutter code&apos;;grid-template-columns:auto 1fr;position:relative}.expressive-code .ec-line .gutter{grid-area:gutter;color:var(--ec-gtrFg)}.expressive-code .ec-line .gutter &gt; *{pointer-events:none;user-select:none;-webkit-user-select:none}.expressive-code .ec-line .gutter ~ .code{--ecLineBrdCol:var(--ec-gtrBrdCol)}.expressive-code .ec-line.highlight .gutter{color:var(--ec-gtrHlFg)}.expressive-code .ec-line .code{grid-area:code;position:relative;box-sizing:content-box;padding-inline-start:calc(var(--ecIndent, 0ch) + var(--ec-codePadInl) - var(--ecGtrBrdWd));padding-inline-end:var(--ec-codePadInl);text-indent:calc(var(--ecIndent, 0ch) * -1)}.expressive-code .ec-line .code::before,.expressive-code .ec-line .code::after,.expressive-code .ec-line .code :where(*){text-indent:0}.expressive-code .ec-line .code{--ecGtrBrdWd:var(--ec-gtrBrdWd);border-inline-start:var(--ecGtrBrdWd) solid var(--ecLineBrdCol, transparent)}.expressive-code .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}.expressive-code .ec-line.mark{--tmLineBgCol:var(--ec-tm-markBg)}.expressive-code .ec-line.mark .code{--ecLineBrdCol:var(--ec-tm-markBrdCol)}.expressive-code .ec-line.ins{--tmLineBgCol:var(--ec-tm-insBg);--tmLabel:var(--ec-tm-insDiffIndContent)}.expressive-code .ec-line.ins .code{--ecLineBrdCol:var(--ec-tm-insBrdCol)}.expressive-code .ec-line.ins .code::before{color:var(--ec-tm-insDiffIndCol)}.expressive-code .ec-line.del{--tmLineBgCol:var(--ec-tm-delBg);--tmLabel:var(--ec-tm-delDiffIndContent)}.expressive-code .ec-line.del .code{--ecLineBrdCol:var(--ec-tm-delBrdCol)}.expressive-code .ec-line.del .code::before{color:var(--ec-tm-delDiffIndCol)}.expressive-code .ec-line.mark,.expressive-code .ec-line.ins,.expressive-code .ec-line.del{background:var(--tmLineBgCol)}.expressive-code .ec-line.mark .code,.expressive-code .ec-line.ins .code,.expressive-code .ec-line.del .code{--ecGtrBrdWd:var(--ec-tm-lineMarkerAccentWd)}.expressive-code .ec-line.mark .code::before,.expressive-code .ec-line.ins .code::before,.expressive-code .ec-line.del .code::before{display:block;position:absolute;left:0;box-sizing:border-box;content:var(--tmLabel, &apos; &apos;);padding-inline-start:var(--ec-tm-lineDiffIndMargLeft);text-align:center;white-space:pre}.expressive-code .ec-line.mark.tm-label .code::before,.expressive-code .ec-line.ins.tm-label .code::before,.expressive-code .ec-line.del.tm-label .code::before{background:var(--ecLineBrdCol);padding:0 calc(var(--ec-tm-lineMarkerLabelPadInl) + var(--ec-tm-lineMarkerAccentWd)) 0 var(--ec-tm-lineMarkerLabelPadInl);color:var(--ec-tm-lineMarkerLabelCol)}.expressive-code .ec-line mark{--tmInlineBgCol:var(--ec-tm-markBg);--tmInlineBrdCol:var(--ec-tm-markBrdCol)}.expressive-code .ec-line ins{--tmInlineBgCol:var(--ec-tm-insBg);--tmInlineBrdCol:var(--ec-tm-insBrdCol)}.expressive-code .ec-line del{--tmInlineBgCol:var(--ec-tm-delBg);--tmInlineBrdCol:var(--ec-tm-delBrdCol)}.expressive-code .ec-line mark,.expressive-code .ec-line ins,.expressive-code .ec-line del{all:unset;display:inline-block;position:relative;--tmBrdL:var(--ec-tm-inlMarkerBrdWd);--tmBrdR:var(--ec-tm-inlMarkerBrdWd);--tmRadL:var(--ec-tm-inlMarkerBrdRad);--tmRadR:var(--ec-tm-inlMarkerBrdRad);margin-inline:0.025rem;padding-inline:var(--ec-tm-inlMarkerPad);border-radius:var(--tmRadL) var(--tmRadR) var(--tmRadR) var(--tmRadL);background:var(--tmInlineBgCol);background-clip:padding-box}.expressive-code .ec-line mark.open-start,.expressive-code .ec-line ins.open-start,.expressive-code .ec-line del.open-start{margin-inline-start:0;padding-inline-start:0;--tmBrdL:0px;--tmRadL:0}.expressive-code .ec-line mark.open-end,.expressive-code .ec-line ins.open-end,.expressive-code .ec-line del.open-end{margin-inline-end:0;padding-inline-end:0;--tmBrdR:0px;--tmRadR:0}.expressive-code .ec-line mark::before,.expressive-code .ec-line ins::before,.expressive-code .ec-line del::before{content:&apos;&apos;;position:absolute;pointer-events:none;display:inline-block;inset:0;border-radius:var(--tmRadL) var(--tmRadR) var(--tmRadR) var(--tmRadL);border:var(--ec-tm-inlMarkerBrdWd) solid var(--tmInlineBrdCol);border-inline-width:var(--tmBrdL) var(--tmBrdR)}.expressive-code .frame{all:unset;position:relative;display:block;--header-border-radius:calc(var(--ec-brdRad) + var(--ec-brdWd));--tab-border-radius:calc(var(--ec-frm-edTabBrdRad) + var(--ec-brdWd));--button-spacing:0.4rem;--code-background:var(--ec-frm-edBg);border-radius:var(--header-border-radius);box-shadow:var(--ec-frm-frameBoxShdCssVal)}.expressive-code .frame .header{display:none;z-index:1;position:relative;border-radius:var(--header-border-radius) var(--header-border-radius) 0 0}.expressive-code .frame.has-title pre,.expressive-code .frame.has-title code,.expressive-code .frame.is-terminal pre,.expressive-code .frame.is-terminal code{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.expressive-code .frame .title:empty:before{content:&apos;\a0&apos;}.expressive-code .frame.has-title:not(.is-terminal){--button-spacing:calc(1.9rem + 2 * (var(--ec-uiPadBlk) + var(--ec-frm-edActTabIndHt)))}.expressive-code .frame.has-title:not(.is-terminal) .title{position:relative;color:var(--ec-frm-edActTabFg);background:var(--ec-frm-edActTabBg);background-clip:padding-box;margin-block-start:var(--ec-frm-edTabsMargBlkStart);padding:calc(var(--ec-uiPadBlk) + var(--ec-frm-edActTabIndHt)) var(--ec-uiPadInl);border:var(--ec-brdWd) solid var(--ec-frm-edActTabBrdCol);border-radius:var(--tab-border-radius) var(--tab-border-radius) 0 0;border-bottom:none;overflow:hidden}.expressive-code .frame.has-title:not(.is-terminal) .title::after{content:&apos;&apos;;position:absolute;pointer-events:none;inset:0;border-top:var(--ec-frm-edActTabIndHt) solid var(--ec-frm-edActTabIndTopCol);border-bottom:var(--ec-frm-edActTabIndHt) solid var(--ec-frm-edActTabIndBtmCol)}.expressive-code .frame.has-title:not(.is-terminal) .header{display:flex;background:linear-gradient(to top, var(--ec-frm-edTabBarBrdBtmCol) var(--ec-brdWd), transparent var(--ec-brdWd)),linear-gradient(var(--ec-frm-edTabBarBg), var(--ec-frm-edTabBarBg));background-repeat:no-repeat;padding-inline-start:var(--ec-frm-edTabsMargInlStart)}.expressive-code .frame.has-title:not(.is-terminal) .header::before{content:&apos;&apos;;position:absolute;pointer-events:none;inset:0;border:var(--ec-brdWd) solid var(--ec-frm-edTabBarBrdCol);border-radius:inherit;border-bottom:none}.expressive-code .frame.is-terminal{--button-spacing:calc(1.9rem + var(--ec-brdWd) + 2 * var(--ec-uiPadBlk));--code-background:var(--ec-frm-trmBg)}.expressive-code .frame.is-terminal .header{display:flex;align-items:center;justify-content:center;padding-block:var(--ec-uiPadBlk);padding-block-end:calc(var(--ec-uiPadBlk) + var(--ec-brdWd));position:relative;font-weight:500;letter-spacing:0.025ch;color:var(--ec-frm-trmTtbFg);background:var(--ec-frm-trmTtbBg);border:var(--ec-brdWd) solid var(--ec-brdCol);border-bottom:none}.expressive-code .frame.is-terminal .header::before{content:&apos;&apos;;position:absolute;pointer-events:none;left:var(--ec-uiPadInl);width:2.1rem;height:0.56rem;line-height:0;background-color:var(--ec-frm-trmTtbDotsFg);opacity:var(--ec-frm-trmTtbDotsOpa);-webkit-mask-image:var(--ec-frm-trmIcon);-webkit-mask-repeat:no-repeat;mask-image:var(--ec-frm-trmIcon);mask-repeat:no-repeat}.expressive-code .frame.is-terminal .header::after{content:&apos;&apos;;position:absolute;pointer-events:none;inset:0;border-bottom:var(--ec-brdWd) solid var(--ec-frm-trmTtbBrdBtmCol)}.expressive-code .frame pre{background:var(--code-background)}.expressive-code .copy{display:flex;gap:0.25rem;flex-direction:row;position:absolute;inset-block-start:calc(var(--ec-brdWd) + var(--button-spacing));inset-inline-end:calc(var(--ec-brdWd) + var(--ec-uiPadInl) / 2)}@media (scripting: none){.expressive-code .copy{display:none}}.expressive-code .copy{direction:ltr;unicode-bidi:isolate}.expressive-code .copy button{position:relative;align-self:flex-end;margin:0;padding:0;border:none;border-radius:0.2rem;z-index:1;cursor:pointer;transition-property:opacity, background, border-color;transition-duration:0.2s;transition-timing-function:cubic-bezier(0.25, 0.46, 0.45, 0.94);width:2.5rem;height:2.5rem;background:var(--code-background);opacity:0.75}.expressive-code .copy button div{position:absolute;inset:0;border-radius:inherit;background:var(--ec-frm-inlBtnBg);opacity:var(--ec-frm-inlBtnBgIdleOpa);transition-property:inherit;transition-duration:inherit;transition-timing-function:inherit}.expressive-code .copy button::before{content:&apos;&apos;;position:absolute;pointer-events:none;inset:0;border-radius:inherit;border:var(--ec-brdWd) solid var(--ec-frm-inlBtnBrd);opacity:var(--ec-frm-inlBtnBrdOpa)}.expressive-code .copy button::after{content:&apos;&apos;;position:absolute;pointer-events:none;inset:0;background-color:var(--ec-frm-inlBtnFg);-webkit-mask-image:var(--ec-frm-copyIcon);-webkit-mask-repeat:no-repeat;mask-image:var(--ec-frm-copyIcon);mask-repeat:no-repeat;margin:0.475rem;line-height:0}.expressive-code .copy button:hover,.expressive-code .copy button:focus:focus-visible{opacity:1}.expressive-code .copy button:hover div,.expressive-code .copy button:focus:focus-visible div{opacity:var(--ec-frm-inlBtnBgHoverOrFocusOpa)}.expressive-code .copy button:active{opacity:1}.expressive-code .copy button:active div{opacity:var(--ec-frm-inlBtnBgActOpa)}.expressive-code .copy .feedback{--tooltip-arrow-size:0.35rem;--tooltip-bg:var(--ec-frm-tooltipSuccessBg);color:var(--ec-frm-tooltipSuccessFg);pointer-events:none;user-select:none;-webkit-user-select:none;position:relative;align-self:center;background-color:var(--tooltip-bg);z-index:99;padding:0.125rem 0.75rem;border-radius:0.2rem;margin-inline-end:var(--tooltip-arrow-size);opacity:0;transition-property:opacity, transform;transition-duration:0.2s;transition-timing-function:ease-in-out;transform:translate3d(0, 0.25rem, 0)}.expressive-code .copy .feedback::after{content:&apos;&apos;;position:absolute;pointer-events:none;top:calc(50% - var(--tooltip-arrow-size));inset-inline-end:calc(-2 * (var(--tooltip-arrow-size) - 0.5px));border:var(--tooltip-arrow-size) solid transparent;border-inline-start-color:var(--tooltip-bg)}.expressive-code .copy .feedback.show{opacity:1;transform:translate3d(0, 0, 0)}@media (hover: hover){.expressive-code{}.expressive-code .copy button{opacity:0;width:2rem;height:2rem}.expressive-code .frame:hover .copy button:not(:hover),.expressive-code .frame:focus-within :focus-visible ~ .copy button:not(:hover),.expressive-code .frame .copy .feedback.show ~ button:not(:hover){opacity:0.75}}.expressive-code :nth-child(1 of .ec-line) .code{padding-inline-end:calc(2rem + var(--ec-codePadInl))}.expressive-code .gutter .ln{display:inline-flex;justify-content:flex-end;align-items:flex-start;box-sizing:content-box;min-width:var(--lnWidth, 2ch);padding-inline:2ch;color:var(--ec-lineNumbers-fg)}.highlight .expressive-code .gutter .ln{color:var(--ec-lineNumbers-hlFg)}.expressive-code .ec-section{position:relative}.expressive-code .ec-section summary{position:relative;font-family:var(--ec-cs-closedFontFml);font-size:var(--ec-cs-closedFontSize);line-height:var(--ec-cs-closedLineHt);user-select:none;-webkit-user-select:none;cursor:pointer;color:var(--ec-cs-closedTextCol);background-color:var(--ec-cs-closedBgCol);--border-color:var(--ec-cs-closedBrdCol);--border-width:var(--ec-cs-closedBrdWd);box-shadow:inset 0 calc(-1 * var(--border-width)) var(--border-color), inset 0 var(--border-width) var(--border-color);margin:var(--ec-cs-closedMarg);padding:0}.expressive-code .ec-section summary::marker{display:inline-block;content:&quot;&quot;;width:16px;height:16px}.expressive-code .ec-section summary::-webkit-details-marker{display:none}.expressive-code .ec-section summary :is(.expand, .collapse){position:relative;display:inline-block;width:16px;height:16px;vertical-align:text-bottom;opacity:0.75}.expressive-code .ec-section summary :is(.expand, .collapse)::after{content:&apos;&apos;;position:absolute;pointer-events:none;inset:0;background-color:var(--ec-cs-closedTextCol);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;line-height:0}.expressive-code .ec-section summary .expand::after{-webkit-mask-image:var(--ec-cs-expandIcon);mask-image:var(--ec-cs-expandIcon);-webkit-print-color-adjust:exact;print-color-adjust:exact}.expressive-code .ec-section summary .collapse{display:none}.expressive-code .ec-section summary .collapse::after{-webkit-mask-image:var(--ec-cs-collapseIcon);mask-image:var(--ec-cs-collapseIcon)}.expressive-code .ec-section summary .text{margin-left:1em}.expressive-code .ec-section summary .ec-line .code{padding-block:var(--ec-cs-closedPadBlk);text-indent:0}.expressive-code .ec-section[open],.expressive-code .ec-section details[open] + .content-lines{--border-color:var(--ec-cs-openBrdCol);--border-width:var(--ec-cs-openBrdWd);box-shadow:inset 0 calc(-1 * var(--border-width)) var(--border-color), inset 0 var(--border-width) var(--border-color);padding-inline:var(--ec-cs-openPad);margin-inline:var(--ec-cs-openMarg)}.expressive-code .ec-section.github[open] summary{display:none}.expressive-code .ec-section.github[open]{background-color:var(--ec-cs-openBgCol)}.expressive-code .ec-section:is(.collapsible-start, .collapsible-end){display:flex;flex-direction:column}.expressive-code .ec-section:is(.collapsible-start, .collapsible-end) .content-lines{display:none}.expressive-code .ec-section:is(.collapsible-start, .collapsible-end) details[open] .collapse{display:inline-block}.expressive-code .ec-section:is(.collapsible-start, .collapsible-end) details[open] :is(.expand, .text){display:none}.expressive-code .ec-section:is(.collapsible-start, .collapsible-end) details[open] + .content-lines{display:block;background-color:var(--ec-cs-openBgColCollapsible)}@media print{.expressive-code .ec-section:is(.collapsible-start, .collapsible-end) details[open]{display:none}}.expressive-code .ec-section.collapsible-end{flex-direction:column-reverse}:root,:root:not([data-theme=&quot;dark&quot;]) .expressive-code[data-theme=&quot;dark&quot;]{--ec-brdRad:0.3rem;--ec-brdWd:1.5px;--ec-brdCol:#1b1f23;--ec-codeFontFml:jetbrains-mono;--ec-codeFontSize:0.85rem;--ec-codeFontWg:400;--ec-codeLineHt:1.65;--ec-codePadBlk:1rem;--ec-codePadInl:1.35rem;--ec-codeBg:#24292e;--ec-codeFg:#e1e4e8;--ec-codeSelBg:#3392ff44;--ec-gtrFg:#727980;--ec-gtrBrdCol:#72798033;--ec-gtrBrdWd:1.5px;--ec-gtrHlFg:#e1e4e896;--ec-uiFontFml:jetbrains-mono;--ec-uiFontSize:0.9rem;--ec-uiFontWg:400;--ec-uiLineHt:1.65;--ec-uiPadBlk:0.25rem;--ec-uiPadInl:1rem;--ec-uiSelBg:#39414a;--ec-uiSelFg:#e1e4e8;--ec-focusBrd:#005cc5;--ec-sbThumbCol:#6a737d33;--ec-sbThumbHoverCol:#6a737dd1;--ec-tm-lineMarkerAccentMarg:0rem;--ec-tm-lineMarkerAccentWd:0.15rem;--ec-tm-lineMarkerLabelPadInl:0.2rem;--ec-tm-lineMarkerLabelCol:white;--ec-tm-lineDiffIndMargLeft:0.3rem;--ec-tm-inlMarkerBrdWd:1.5px;--ec-tm-inlMarkerBrdRad:0.2rem;--ec-tm-inlMarkerPad:0.15rem;--ec-tm-insDiffIndContent:&apos;+&apos;;--ec-tm-delDiffIndContent:&apos;-&apos;;--ec-tm-markBg:#264a8980;--ec-tm-markBrdCol:#5570b3d0;--ec-tm-insBg:#26561c80;--ec-tm-insBrdCol:#4e7e41d0;--ec-tm-insDiffIndCol:#7eb070d0;--ec-tm-delBg:#81322b80;--ec-tm-delBrdCol:#ae594fd0;--ec-tm-delDiffIndCol:#e68a7ed0;--ec-frm-shdCol:#0000005b;--ec-frm-frameBoxShdCssVal:0.1rem 0.1rem 0.2rem #0000005b;--ec-frm-edActTabBg:#24292e;--ec-frm-edActTabFg:#e1e4e8;--ec-frm-edActTabBrdCol:transparent;--ec-frm-edActTabIndHt:1.5px;--ec-frm-edActTabIndTopCol:#f9826c;--ec-frm-edActTabIndBtmCol:#24292e;--ec-frm-edTabsMargInlStart:0;--ec-frm-edTabsMargBlkStart:0;--ec-frm-edTabBrdRad:0.3rem;--ec-frm-edTabBarBg:#1f2428;--ec-frm-edTabBarBrdCol:#1b1f23;--ec-frm-edTabBarBrdBtmCol:#1b1f23;--ec-frm-edBg:#24292e;--ec-frm-trmTtbFg:#e1e4e8;--ec-frm-trmTtbDotsFg:#e1e4e8;--ec-frm-trmTtbDotsOpa:0.15;--ec-frm-trmTtbBg:#24292e;--ec-frm-trmTtbBrdBtmCol:#1b1f23;--ec-frm-trmBg:#1f2428;--ec-frm-inlBtnFg:#e1e4e8;--ec-frm-inlBtnBg:#e1e4e8;--ec-frm-inlBtnBgIdleOpa:0;--ec-frm-inlBtnBgHoverOrFocusOpa:0.2;--ec-frm-inlBtnBgActOpa:0.3;--ec-frm-inlBtnBrd:#e1e4e8;--ec-frm-inlBtnBrdOpa:0.4;--ec-frm-tooltipSuccessBg:#228739;--ec-frm-tooltipSuccessFg:white;--ec-frm-copyIcon:url(&quot;data:image/svg+xml,%3Csvg%20xmlns%3D&apos;http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg&apos;%20viewBox%3D&apos;0%200%2024%2024&apos;%20fill%3D&apos;none&apos;%20stroke%3D&apos;black&apos;%20stroke-width%3D&apos;1.75&apos;%3E%3Cpath%20d%3D&apos;M3%2019a2%202%200%200%201-1-2V2a2%202%200%200%201%201-1h13a2%202%200%200%201%202%201&apos;%2F%3E%3Crect%20x%3D&apos;6&apos;%20y%3D&apos;5&apos;%20width%3D&apos;16&apos;%20height%3D&apos;18&apos;%20rx%3D&apos;1.5&apos;%20ry%3D&apos;1.5&apos;%2F%3E%3C%2Fsvg%3E&quot;);--ec-frm-trmIcon:url(&quot;data:image/svg+xml,%3Csvg%20xmlns%3D&apos;http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg&apos;%20viewBox%3D&apos;0%200%2060%2016&apos;%20preserveAspectRatio%3D&apos;xMidYMid%20meet&apos;%3E%3Ccircle%20cx%3D&apos;8&apos;%20cy%3D&apos;8&apos;%20r%3D&apos;8&apos;%2F%3E%3Ccircle%20cx%3D&apos;30&apos;%20cy%3D&apos;8&apos;%20r%3D&apos;8&apos;%2F%3E%3Ccircle%20cx%3D&apos;52&apos;%20cy%3D&apos;8&apos;%20r%3D&apos;8&apos;%2F%3E%3C%2Fsvg%3E&quot;);--ec-lineNumbers-fg:inherit;--ec-lineNumbers-hlFg:inherit;--ec-cs-closedBrdWd:0px;--ec-cs-closedPadBlk:4px;--ec-cs-closedMarg:0;--ec-cs-closedFontFml:inherit;--ec-cs-closedFontSize:inherit;--ec-cs-closedLineHt:inherit;--ec-cs-closedTextCol:#e1e4e8;--ec-cs-closedBgCol:#58606933;--ec-cs-closedBrdCol:#58606980;--ec-cs-openBrdWd:1px;--ec-cs-openPad:0;--ec-cs-openMarg:0;--ec-cs-openBgCol:transparent;--ec-cs-openBgColCollapsible:#5860691a;--ec-cs-openBrdCol:transparent;--ec-cs-expandIcon:url(&quot;data:image/svg+xml,%3Csvg%20xmlns%3D&apos;http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg&apos;%20viewBox%3D&apos;0%200%2016%2016&apos;%3E%3Cpath%20d%3D&apos;m8.177.677%202.896%202.896a.25.25%200%200%201-.177.427H8.75v1.25a.75.75%200%200%201-1.5%200V4H5.104a.25.25%200%200%201-.177-.427L7.823.677a.25.25%200%200%201%20.354%200ZM7.25%2010.75a.75.75%200%200%201%201.5%200V12h2.146a.25.25%200%200%201%20.177.427l-2.896%202.896a.25.25%200%200%201-.354%200l-2.896-2.896A.25.25%200%200%201%205.104%2012H7.25v-1.25Zm-5-2a.75.75%200%200%200%200-1.5h-.5a.75.75%200%200%200%200%201.5h.5ZM6%208a.75.75%200%200%201-.75.75h-.5a.75.75%200%200%201%200-1.5h.5A.75.75%200%200%201%206%208Zm2.25.75a.75.75%200%200%200%200-1.5h-.5a.75.75%200%200%200%200%201.5h.5ZM12%208a.75.75%200%200%201-.75.75h-.5a.75.75%200%200%201%200-1.5h.5A.75.75%200%200%201%2012%208Zm2.25.75a.75.75%200%200%200%200-1.5h-.5a.75.75%200%200%200%200%201.5h.5Z&apos;%2F%3E%3C%2Fsvg%3E&quot;);--ec-cs-collapseIcon:url(&quot;data:image/svg+xml,%3Csvg%20xmlns%3D&apos;http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg&apos;%20viewBox%3D&apos;0%200%2016%2016&apos;%3E%3Cpath%20d%3D&apos;M10.896%202H8.75V.75a.75.75%200%200%200-1.5%200V2H5.104a.25.25%200%200%200-.177.427l2.896%202.896a.25.25%200%200%200%20.354%200l2.896-2.896A.25.25%200%200%200%2010.896%202ZM8.75%2015.25a.75.75%200%200%201-1.5%200V14H5.104a.25.25%200%200%201-.177-.427l2.896-2.896a.25.25%200%200%201%20.354%200l2.896%202.896a.25.25%200%200%201-.177.427H8.75v1.25Zm-6.5-6.5a.75.75%200%200%200%200-1.5h-.5a.75.75%200%200%200%200%201.5h.5ZM6%208a.75.75%200%200%201-.75.75h-.5a.75.75%200%200%201%200-1.5h.5A.75.75%200%200%201%206%208Zm2.25.75a.75.75%200%200%200%200-1.5h-.5a.75.75%200%200%200%200%201.5h.5ZM12%208a.75.75%200%200%201-.75.75h-.5a.75.75%200%200%201%200-1.5h.5A.75.75%200%200%201%2012%208Zm2.25.75a.75.75%200%200%200%200-1.5h-.5a.75.75%200%200%200%200%201.5h.5Z&apos;%2F%3E%3C%2Fsvg%3E&quot;)}.expressive-code .ec-line :where(span[style^=&apos;--&apos;]:not([class])),:root:not([data-theme=&quot;dark&quot;]) .expressive-code[data-theme=&quot;dark&quot;] .ec-line :where(span[style^=&apos;--&apos;]:not([class])){color:var(--0, inherit);background-color:var(--0bg, transparent);font-style:var(--0fs, inherit);font-weight:var(--0fw, inherit);text-decoration:var(--0td, inherit)}@media (prefers-color-scheme: light){:root:not([data-theme=&quot;dark&quot;]){--ec-brdCol:#e1e4e8;--ec-codeBg:#fff;--ec-codeFg:#24292e;--ec-codeSelBg:#0366d625;--ec-gtrFg:#1b1f2381;--ec-gtrBrdCol:#1b1f2333;--ec-gtrHlFg:#24292eab;--ec-uiSelBg:#e2e5e9;--ec-uiSelFg:#2f363d;--ec-focusBrd:#2188ff;--ec-sbThumbCol:#959da533;--ec-sbThumbHoverCol:#959da5eb;--ec-tm-markBg:#9fb6ff80;--ec-tm-insBg:#94c68480;--ec-tm-insDiffIndCol:#3a692fd0;--ec-tm-delBg:#fea09280;--ec-tm-delDiffIndCol:#97453dd0;--ec-frm-shdCol:#00000028;--ec-frm-frameBoxShdCssVal:0.1rem 0.1rem 0.2rem #00000028;--ec-frm-edActTabBg:#fff;--ec-frm-edActTabFg:#2f363d;--ec-frm-edActTabIndBtmCol:#fff;--ec-frm-edTabBarBg:#f6f8fa;--ec-frm-edTabBarBrdCol:#e1e4e8;--ec-frm-edTabBarBrdBtmCol:#e1e4e8;--ec-frm-edBg:#fff;--ec-frm-trmTtbFg:#2f363d;--ec-frm-trmTtbDotsFg:#2f363d;--ec-frm-trmTtbBg:#fff;--ec-frm-trmTtbBrdBtmCol:#e1e4e8;--ec-frm-trmBg:#f6f8fa;--ec-frm-inlBtnFg:#24292e;--ec-frm-inlBtnBg:#24292e;--ec-frm-inlBtnBrd:#24292e;--ec-frm-tooltipSuccessBg:#208638;--ec-cs-closedTextCol:#24292e;--ec-cs-closedBgCol:#d1d5da33;--ec-cs-closedBrdCol:#d1d5da80;--ec-cs-openBgColCollapsible:#d1d5da1a}:root:not([data-theme=&quot;dark&quot;]) .expressive-code .ec-line :where(span[style^=&apos;--&apos;]:not([class])){color:var(--1, inherit);background-color:var(--1bg, transparent);font-style:var(--1fs, inherit);font-weight:var(--1fw, inherit);text-decoration:var(--1td, inherit)}}:root[data-theme=&quot;light&quot;] .expressive-code:not([data-theme=&quot;dark&quot;]),.expressive-code[data-theme=&quot;light&quot;]{--ec-brdCol:#e1e4e8;--ec-codeBg:#fff;--ec-codeFg:#24292e;--ec-codeSelBg:#0366d625;--ec-gtrFg:#1b1f2381;--ec-gtrBrdCol:#1b1f2333;--ec-gtrHlFg:#24292eab;--ec-uiSelBg:#e2e5e9;--ec-uiSelFg:#2f363d;--ec-focusBrd:#2188ff;--ec-sbThumbCol:#959da533;--ec-sbThumbHoverCol:#959da5eb;--ec-tm-markBg:#9fb6ff80;--ec-tm-insBg:#94c68480;--ec-tm-insDiffIndCol:#3a692fd0;--ec-tm-delBg:#fea09280;--ec-tm-delDiffIndCol:#97453dd0;--ec-frm-shdCol:#00000028;--ec-frm-frameBoxShdCssVal:0.1rem 0.1rem 0.2rem #00000028;--ec-frm-edActTabBg:#fff;--ec-frm-edActTabFg:#2f363d;--ec-frm-edActTabIndBtmCol:#fff;--ec-frm-edTabBarBg:#f6f8fa;--ec-frm-edTabBarBrdCol:#e1e4e8;--ec-frm-edTabBarBrdBtmCol:#e1e4e8;--ec-frm-edBg:#fff;--ec-frm-trmTtbFg:#2f363d;--ec-frm-trmTtbDotsFg:#2f363d;--ec-frm-trmTtbBg:#fff;--ec-frm-trmTtbBrdBtmCol:#e1e4e8;--ec-frm-trmBg:#f6f8fa;--ec-frm-inlBtnFg:#24292e;--ec-frm-inlBtnBg:#24292e;--ec-frm-inlBtnBrd:#24292e;--ec-frm-tooltipSuccessBg:#208638;--ec-cs-closedTextCol:#24292e;--ec-cs-closedBgCol:#d1d5da33;--ec-cs-closedBrdCol:#d1d5da80;--ec-cs-openBgColCollapsible:#d1d5da1a}:root[data-theme=&quot;light&quot;] .expressive-code:not([data-theme=&quot;dark&quot;]) .ec-line :where(span[style^=&apos;--&apos;]:not([class])),.expressive-code[data-theme=&quot;light&quot;] .ec-line :where(span[style^=&apos;--&apos;]:not([class])){color:var(--1, inherit);background-color:var(--1bg, transparent);font-style:var(--1fs, inherit);font-weight:var(--1fw, inherit);text-decoration:var(--1td, inherit)}&lt;/style&gt;&lt;script type=&quot;module&quot;&gt;try{(()=&gt;{function a(e){if(!e)return;let t=e.getAttribute(&quot;tabindex&quot;)!==null,r=e.scrollWidth&gt;e.clientWidth;r&amp;&amp;!t?(e.setAttribute(&quot;tabindex&quot;,&quot;0&quot;),e.setAttribute(&quot;role&quot;,&quot;region&quot;)):!r&amp;&amp;t&amp;&amp;(e.removeAttribute(&quot;tabindex&quot;),e.removeAttribute(&quot;role&quot;))}var u=window.requestIdleCallback||(e=&gt;setTimeout(e,1)),s=window.cancelIdleCallback||clearTimeout;function l(e){let t=new Set,r,n;return new ResizeObserver(c=&gt;{c.forEach(o=&gt;t.add(o.target)),r&amp;&amp;clearTimeout(r),n&amp;&amp;s(n),r=setTimeout(()=&gt;{n&amp;&amp;s(n),n=u(()=&gt;{t.forEach(o=&gt;e(o)),t.clear()})},250)})}function i(e,t){e.querySelectorAll?.(&quot;.expressive-code pre &gt; code&quot;).forEach(r=&gt;{let n=r.parentElement;n&amp;&amp;t.observe(n)})}var d=l(a);i(document,d);var b=new MutationObserver(e=&gt;e.forEach(t=&gt;t.addedNodes.forEach(r=&gt;{i(r,d)})));b.observe(document.body,{childList:!0,subtree:!0});document.addEventListener(&quot;astro:page-load&quot;,()=&gt;{i(document,d)});})();}catch(e){console.error(&quot;[EC] tabindex-js-module failed:&quot;,e)}&lt;/script&gt;&lt;script type=&quot;module&quot;&gt;try{(()=&gt;{function l(o){let e=document.createElement(&quot;pre&quot;);Object.assign(e.style,{opacity:&quot;0&quot;,pointerEvents:&quot;none&quot;,position:&quot;absolute&quot;,overflow:&quot;hidden&quot;,left:&quot;0&quot;,top:&quot;0&quot;,width:&quot;20px&quot;,height:&quot;20px&quot;,webkitUserSelect:&quot;auto&quot;,userSelect:&quot;all&quot;}),e.ariaHidden=&quot;true&quot;,e.textContent=o,document.body.appendChild(e);let a=document.createRange();a.selectNode(e);let n=getSelection();if(!n)return!1;n.removeAllRanges(),n.addRange(a);let r=!1;try{r=document.execCommand(&quot;copy&quot;)}finally{n.removeAllRanges(),document.body.removeChild(e)}return r}async function u(o){let e=o.currentTarget,a=e.dataset,n=!1,r=a.code.replace(/\u007f/g,`
`);try{await navigator.clipboard.writeText(r),n=!0}catch{n=l(r)}if(!n||e.parentNode?.querySelector(&quot;.feedback&quot;))return;let c=e.parentNode?.querySelector(&quot;[aria-live]&quot;),t=document.createElement(&quot;div&quot;);t.classList.add(&quot;feedback&quot;),t.append(a.copied),c.append(t),t.offsetWidth,requestAnimationFrame(()=&gt;t?.classList.add(&quot;show&quot;));let s=()=&gt;!t||t.classList.remove(&quot;show&quot;),d=()=&gt;{!t||parseFloat(getComputedStyle(t).opacity)&gt;0||(t.remove(),t=void 0)};setTimeout(s,1500),setTimeout(d,2500),e.addEventListener(&quot;blur&quot;,s),t.addEventListener(&quot;transitioncancel&quot;,d),t.addEventListener(&quot;transitionend&quot;,d)}function i(o){o.querySelectorAll?.(&quot;.expressive-code .copy button&quot;).forEach(e=&gt;e.addEventListener(&quot;click&quot;,u))}i(document);var m=new MutationObserver(o=&gt;o.forEach(e=&gt;e.addedNodes.forEach(a=&gt;{i(a)})));m.observe(document.body,{childList:!0,subtree:!0});document.addEventListener(&quot;astro:page-load&quot;,()=&gt;{i(document)});})();}catch(e){console.error(&quot;[EC] copy-js-module failed:&quot;,e)}&lt;/script&gt;&lt;figure class=&quot;frame&quot;&gt;&lt;figcaption class=&quot;header&quot;&gt;&lt;/figcaption&gt;&lt;pre data-language=&quot;plaintext&quot;&gt;&lt;code&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;1&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span style=&quot;--0:#e1e4e8;--1:#24292e&quot;&gt;Creating a new git repository &gt; create the site with NodeJS &gt; connect &amp;#x26; auto push to 3rd party host &gt; manage your domain &gt; compare the features &amp;#x26; price for each web host to best suits your objective or language.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div class=&quot;copy&quot;&gt;&lt;div aria-live=&quot;polite&quot;&gt;&lt;/div&gt;&lt;button title=&quot;Copy to clipboard&quot; data-copied=&quot;Copied!&quot; data-code=&quot;Creating a new git repository &gt; create the site with NodeJS &gt; connect &amp;#x26; auto push to 3rd party host &gt; manage your domain &gt; compare the features &amp;#x26; price for each web host to best suits your objective or language.&quot;&gt;&lt;div&gt;&lt;/div&gt;&lt;/button&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;Der einzige Teil, der sich bei den meisten Projekten unterscheidet, ist das „Erstellen der Website mit NodeJS“ – du kannst hier Python verwenden, doch alles andere, was du gelernt hast, gilt weiterhin.&lt;/p&gt;
&lt;h3 id=&quot;mehr-zum-aufbau-eines-blogs&quot;&gt;Mehr zum Aufbau eines Blogs&lt;/h3&gt;
&lt;p&gt;Die größte Schwierigkeit ist nicht die Blog-Funktion selbst. Es ist der Kommentarbereich. Wenn du als Anfänger einen Blog schreiben und dich auf den Inhalt konzentrieren willst, empfehle ich dir, einfach WordPress zu verwenden – es bietet alles, was du brauchst, ohne Aufwand.&lt;/p&gt;
&lt;p&gt;Andernfalls kannst du, um einen Kommentarbereich in deinen statischen Blog zu integrieren, Disqus verwenden (hat einen nicht guten Ruf wegen Datenschutzproblemen und ist ein Speicherfresser beim Laden). Oder du kannst eine Open-Source-Alternative mit GitHub-Login verwenden. Aber soweit ich weiß, gibt es da draußen keine einzige, die kostenlos ist und Google-Login erlaubt. Oder du baust deinen eigenen Backend-Kommentarserver, aber dann musst du dich auch um das Filtern von Spam und Ähnliches kümmern. Für mich nicht gerade ideal. Am Ende habe ich einfach Disqus verwendet, aber es lädt nicht automatisch, bis der Nutzer auf „Show comments“ klickt, um die Ladezeit zu sparen.&lt;/p&gt;
&lt;h3 id=&quot;über-chatgpt&quot;&gt;Über ChatGPT&lt;/h3&gt;
&lt;p&gt;Es ist nur bis zu einem gewissen Punkt hilfreich. Vermeide es, es für komplizierte Logik zu verwenden, das ist meistens problematisch. Ein ärgerliches Problem ist zum Beispiel, dass es Änderungen an deinem Code vornimmt, dich aber nicht darüber informiert. Für einen ersten Entwurf ist es hilfreich. Es ist nicht geeignet, wenn du fehlerfreien Code willst – das schafft es nie. Ich habe auch festgestellt, dass es umso mehr Fehler macht, je öfter man es bittet, den Code erneut zu überprüfen. Das war ärgerlicher und zeitaufwendiger, als die Sache einfach zu lernen und selbst zu schreiben.&lt;/p&gt;
&lt;h3 id=&quot;wie-es-weitergeht&quot;&gt;Wie es weitergeht&lt;/h3&gt;
&lt;p&gt;Lernen, wie man ein echtes Backend mit Signup/Login-Authentifizierung und SQL-Datenbankserver baut. Vielleicht probiere ich diesmal Django aus und versuche, ein Backend zu bauen, das mit einer plattformübergreifenden App funktioniert.&lt;/p&gt;
&lt;h2 id=&quot;das-ziel&quot;&gt;Das Ziel&lt;/h2&gt;
&lt;p&gt;Weiterlernen und interessante Projekte bauen.&lt;/p&gt;
&lt;p&gt;Danke fürs Lesen!&lt;/p&gt;</content:encoded><media:thumbnail url="https://cms.hongct.com/assets/75e9b75e-26c5-4bd2-9584-6a3974f879c9"/><enclosure url="https://cms.hongct.com/assets/75e9b75e-26c5-4bd2-9584-6a3974f879c9" length="457560" type="image/jpeg"/></item><item><title>So bekommst du Xcode 15 auf nicht unterstütztem macOS</title><link>https://hongcheung.com/de/post/how-to-get-xcode-15-on-unsupported-macos/</link><guid isPermaLink="true">https://hongcheung.com/de/post/how-to-get-xcode-15-on-unsupported-macos/</guid><description>Apple beschränkt Macs immer mit OS-Anforderungen, aber es gibt Wege, das zu umgehen.</description><pubDate>Sat, 04 Nov 2023 12:00:00 GMT</pubDate><content:encoded>&lt;p&gt;&lt;img src=&quot;https://cms.hongct.com/assets/b02ab264-b26d-4f30-bb88-2bd843b771f6&quot; alt=&quot;So bekommst du Xcode 15 auf nicht unterstütztem macOS&quot; referrerpolicy=&quot;no-referrer&quot; loading=&quot;lazy&quot;/&gt;&lt;/p&gt;&lt;p&gt;Soweit ich weiß, gibt es zwei Wege.&lt;/p&gt;
&lt;h2 id=&quot;1-aktualisiere-dein-macos&quot;&gt;1. Aktualisiere dein macOS&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Wenn du Monterey (oder älter) verwendest, versuche, dein macOS mit dem OpenCore Legacy Patcher auf nicht unterstützten Macs zu aktualisieren. &lt;a href=&quot;how-to-update-your-old-macbook-to-ventura-using-opencore-legacy-patcher&quot;&gt;Folge der Anleitung hier&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;2-unterstützende-dateien-in-das-xcode-verzeichnis-kopieren&quot;&gt;2. Unterstützende Dateien in das Xcode-Verzeichnis kopieren&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Es ist ein einfacher Weg, Xcode zu aktualisieren, sodass es die Entwicklung bis iOS16 unterstützt, indem man unterstützende Dateien in den Xcode-Ordner kopiert. GitHub-Repo &lt;a rel=&quot;nofollow noopener noreferrer&quot; target=&quot;_blank&quot; href=&quot;https://github.com/filsv/iOSDeviceSupport&quot;&gt;hier&lt;/a&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Aber bei iOS17 hat Apple einige Änderungen daran vorgenommen, sodass die Unterstützung schwieriger wird; es braucht einen &lt;a rel=&quot;nofollow noopener noreferrer&quot; target=&quot;_blank&quot; href=&quot;https://github.com/filsv/iOSDeviceSupport/issues/178&quot;&gt;anderen Weg&lt;/a&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Ich habe die Python-Methode noch nicht ausprobiert, da ich mein macOS erfolgreich mit OCLP aktualisiert habe, was ohnehin weniger Aufwand bedeutet. Viel Glück.&lt;/p&gt;
&lt;p&gt;Cheers&lt;/p&gt;</content:encoded><media:thumbnail url="https://cms.hongct.com/assets/b02ab264-b26d-4f30-bb88-2bd843b771f6"/><enclosure url="https://cms.hongct.com/assets/b02ab264-b26d-4f30-bb88-2bd843b771f6" length="35370" type="image/jpeg"/></item></channel></rss>