@liascript/editor 1.1.43--2.1.0 → 1.1.43--2.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1 @@
1
+ !function(){function e(e,o,m,i){Object.defineProperty(e,o,{get:m,set:i,enumerable:!0,configurable:!0})}var o="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},m={},i={},c=o.parcelRequirea18f;null==c&&((c=function(e){if(e in m)return m[e].exports;if(e in i){var o=i[e];delete i[e];var c={id:e,exports:{}};return m[e]=c,o.call(c.exports,c,c.exports),c.exports}var a=new Error("Cannot find module '"+e+"'");throw a.code="MODULE_NOT_FOUND",a}).register=function(e,o){i[e]=o},o.parcelRequirea18f=c),c.register("iLAck",(function(o,m){e(o.exports,"fetchText",(function(){return r})),e(o.exports,"extract",(function(){return w}));var i=c("4Tshm"),a=c("axlxN");const t=new Map;let s;const d=5e3;async function r(e,o=!0,m=d){try{const o=await fetch(e);if(o.ok)return await o.text()}catch(e){}if(!o)throw new Error(`oembed: could not fetch "${e}"`);const i=await Promise.race([fetch(a.PROXY+encodeURIComponent(e)),new Promise(((e,o)=>setTimeout((()=>o(new Error("oembed: proxy timeout"))),m)))]);return(await i.json()).contents}function w(e,o){e.endsWith("/")&&(e=e.slice(0,-1));const m=e+JSON.stringify(o);return t.has(m)||t.set(m,async function(e){if(!s){s=[];for(const[e,o]of i.endpoints)for(const m of o||[]){const o=m.replace(/[.+?^${}()|[\]\\]/g,"\\$&").replace(/\*/g,".*");s.push([e,new RegExp(o,"i")])}}const o=e.replace(/^https?:\/\//,""),m=s.find((([,e])=>e.test(o)));return m?"https://"+m[0]:async function(e){try{const o=await r(e,!1),m=(new DOMParser).parseFromString(o,"text/html").querySelector('link[type="application/json+oembed"], link[type="text/json+oembed"]')?.getAttribute("href");return m?new URL(m,e).href:void 0}catch(e){}}(e)}(e).then((m=>{if(!m)throw new Error(`No provider found with given url "${e}"`);return async function(e,o,m){const i=new URL(o.replace(/\{format\}/g,"json"));return i.searchParams.set("format","json"),i.searchParams.set("url",e),m.maxwidth&&i.searchParams.set("maxwidth",""+m.maxwidth),m.maxheight&&i.searchParams.set("maxheight",""+m.maxheight),JSON.parse(await r(i.href))}(e,m,o)}))),t.get(m)}customElements.define("lia-embed",class extends HTMLElement{url_=null;thumbnail_=!1;connected_=!1;dataAttributes={};constructor(){super(),this.div_=document.createElement("div"),this.div_.style.width="inherit",this.div_.style.height="inherit",this.div_.style.display="inline-block",this.attachShadow({mode:"closed"}).appendChild(this.div_)}connectedCallback(){if(this.connected_)return;this.connected_=!0;const e=this.parentElement,o=parseFloat(this.getAttribute("scale")||"0.674");try{const e=this.getAttribute("data-attributes");e&&(this.dataAttributes=JSON.parse(e))}catch(e){console.warn("oembed: Couldn't parse data-attributes")}if(e){const m=parseFloat(window.getComputedStyle(e).paddingLeft);null==this.maxwidth_&&(this.maxwidth_=e.clientWidth-m-30),null==this.maxheight_&&(this.maxheight_=Math.floor(this.maxwidth_*(o||.674))),this.maxheight_>screen.availHeight&&(this.maxheight_=Math.floor(screen.availHeight*(o||.76)))}this.render()}render(){if(!this.connected_||!this.url_)return;const e=this.url_,o=this.thumbnail_,m=this.div_,i={maxwidth:this.maxwidth_,maxheight:this.maxheight_};w(e,i).then((i=>{if(e!==this.url_)return;if(o&&i.thumbnail_url)return void this.show(this.element("img",{src:i.thumbnail_url,style:"width: inherit; height: inherit; object-fit: cover"}));if(i.html)m.innerHTML=i.html;else{if("photo"!==i.type||!i.url)return void this.iframe(e,"inherit");this.show(this.element("img",{src:i.url,style:"width: 100%"}))}const c=m.querySelector("iframe");if(c){c.style.width="100%";const e=parseFloat(i.width)/parseFloat(i.height);e>0&&isFinite(e)&&(c.style.height="auto",c.style.maxHeight=this.style.height.endsWith("px")?"100%":"90vh",c.style.setProperty("aspect-ratio",""+e))}else m.firstElementChild instanceof HTMLElement&&(m.firstElementChild.style.width="100%");this.applyAttributes()})).catch((()=>{e===this.url_&&this.iframe(e,i.maxheight?i.maxheight+"px":"inherit")}))}element(e,o){const m=document.createElement(e);for(const[e,i]of Object.entries(o))m.setAttribute(e,i);return m}show(e){this.div_.innerHTML="",this.div_.appendChild(e)}iframe(e,o){this.show(this.element("iframe",{src:e,style:`width: 100%; height: ${o}`,allowfullscreen:"",loading:"lazy"})),this.applyAttributes()}applyAttributes(){const e=this.div_.querySelector("iframe")||this.div_.firstElementChild;if(e instanceof HTMLElement)for(const[o,m]of Object.entries(this.dataAttributes))"style"===o?e.style.cssText+=m:e.setAttribute(o,m)}get url(){return this.url_}set url(e){this.url_!==e&&(this.url_=e,this.render())}get maxheight(){return this.maxheight_}set maxheight(e){e&&(this.maxheight_=e)}get maxwidth(){return this.maxwidth_}set maxwidth(e){e&&(this.maxwidth_=e)}get thumbnail(){return this.thumbnail_}set thumbnail(e){this.thumbnail_=e}})})),c.register("4Tshm",(function(o,m){e(o.exports,"endpoints",(function(){return i}));const i=JSON.parse('[["app.1mind.com/oembed",["app.1mind.com/embed/*","app.1mind.com/embed/*/*","app.dev.1mind.com/embed/*","app.dev.1mind.com/embed/*/*"]],["www.23hq.com/23/oembed",["www.23hq.com/*/photo/*"]],["playout.3qsdn.com/oembed",["playout.3qsdn.com/embed/*"]],["api.abraia.me/oembed",["store.abraia.me/*"]],["oembed.acast.com/v1/embed-player",["play.acast.com/s/*"]],["secure.actblue.com/cf/oembed",["secure.actblue.com/donate/*"]],["adilo.bigcommand.com/web/oembed",["adilo.bigcommand.com/watch/*"]],["openapi.afreecatv.com/oembed/embedinfo",["vod.afreecatv.com/player/","v.afree.ca/ST/","vod.afreecatv.com/ST/","vod.afreecatv.com/PLAYER/STATION/","play.afreecatv.com/"]],["viewer.altium.com/shell/oembed",["altium.com/viewer/*"]],["api.altrulabs.com/api/v1/social/oembed",["app.altrulabs.com/*/*?answer_id=*","app.altrulabs.com/player/*"]],["live.amcharts.com/api/oembed",["chart.amcharts.com/*/*"]],["api.amtraker.com/v3/oembed",["amtraker.com/trains/*","amtraker.com/trains/*/*","*.amtraker.com/trains/*","*.amtraker.com/trains/*/*"]],["animatron.com/oembed/json",["www.animatron.com/project/*","animatron.com/project/*"]],["animoto.com/oembeds/create",["animoto.com/play/*"]],["api.anniemusic.app/api/v1/oembed",["anniemusic.app/t/*","anniemusic.app/p/*"]],["us-central1-themerax-cc903.cloudfunctions.net/playgroundApi/oembed",["appforcestudio.com/playground/*"]],["podcasts.apple.com/api/oembed",["podcasts.apple.com/*"]],["storymaps.arcgis.com/oembed",["storymaps.arcgis.com/stories/*"]],["studio.assemblrworld.com/api/oembed",["*.studio.assemblrworld.com/creation/*","studio.assemblrworld.com/creation/*","*.app-edu.assemblrworld.com/Creation/*","app-edu.assemblrworld.com/Creation/*","assemblr.world/*","editor.assemblrworld.com/*","*.assemblrworld.com/creation/*","*.assemblrworld.com/Creation/*","*.studio.assemblrworld.com/creation/*","studio.assemblrworld.com/creation/*","*.app-edu.assemblrworld.com/Creation/*","app-edu.assemblrworld.com/Creation/*","assemblr.world/*","editor.assemblrworld.com/*","*.assemblrworld.com/creation/*","*.assemblrworld.com/Creation/*"]],["api.audio.com/oembed",["audio.com/*","www.audio.com/*","audio.com/*","www.audio.com/*"]],["audioboom.com/publishing/oembed.{format}",["audioboom.com/channels/*","audioboom.com/channel/*","audioboom.com/playlists/*","audioboom.com/podcasts/*","audioboom.com/podcast/*","audioboom.com/posts/*","audioboom.com/episodes/*"]],["audioclip.naver.com/oembed",["audioclip.naver.com/channels/*/clips/*","audioclip.naver.com/audiobooks/*"]],["audiomack.com/oembed",["audiomack.com/*/song/*","audiomack.com/*/album/*","audiomack.com/*/playlist/*"]],["podcasts.audiomeans.fr/services/oembed",["podcasts.audiomeans.fr/*"]],["audiosfx.org/api/oembed",["audiosfx.org/audio/*","audiosfx.org/playlist/*"]],["audius.co/oembed",["audius.co/*"]],["backtracks.fm/oembed",["backtracks.fm/*/*/e/*","backtracks.fm/*/s/*/*","backtracks.fm/*/*/*/*/e/*/*","backtracks.fm/*","backtracks.fm/*"]],["balsamiq.cloud/oembed",["balsamiq.cloud/*"]],["www.beautiful.ai/api/oembed",[]],["api.bitchute.com/oembed/",[]],["blackfire.io/oembed",["blackfire.io/profiles/*/graph","blackfire.io/profiles/compare/*/graph"]],["blogcast.host/oembed",["blogcast.host/embed/*","blogcast.host/embedly/*"]],["embed.bsky.app/oembed",["bsky.app/profile/*/post/*"]],["bookingmood.com/api/oembed",["www.bookingmood.com/embed/*/*"]],["www.bornetube.dk/media/lasync/oembed/",["www.bornetube.dk/media/*","www.bornetube.dk/video/*"]],["api.boxofficebuz.com/v2/oembed",["boxofficebuz.com/embed/video/*"]],["oembed.brightcove.com/",["players.brightcove.net/*/*/index.html?videoId=*","players.brightcove.net/*/*/index.html?playlistId=*","bcove.video/*"]],["budgetpixel.com/oembed",["budgetpixel.com/p/*","budgetpixel.com/sfx/*","budgetpixel.com/background-music/*"]],["www.bumper.com/oembed/bumper",["www.bumper.com/oembed/bumper","www.bumper.com/oembed-s/bumper"]],["video.bunnycdn.com/OEmbed",["player.mediadelivery.net/*","player.mediadelivery.net/*","iframe.mediadelivery.net/*","iframe.mediadelivery.net/*","video.bunnycdn.com/*","video.bunnycdn.com/*"]],["buttondown.email/embed",["buttondown.email/*"]],["cmc.byzart.eu/oembed/",["cmc.byzart.eu/files/*"]],["cacoo.com/oembed.{format}",["cacoo.com/diagrams/*"]],["www.canva.com/_oembed",["www.canva.com/design/*/view"]],["carbon.music/oembed",["carbon.music/*","www.carbon.music/*"]],["carbonvoice.app/api/oembed",["carbonvoice.app/s/*","carbonvoice.app/m/*","carbonvoice.app/c/*"]],["castle.xyz/api/oembed",["castle.xyz/d/*"]],["castmake-ai.com/api/embed",["www.castmake-ai.com/c/*/episodes/*"]],["api.celero.io/api/oembed",["embeds.celero.io/*"]],["view.ceros.com/oembed",["view.ceros.com/*","view.ceros.com/*"]],["chanceindex.com/api/oembed",["chanceindex.com/odds/*"]],["embed.chartblocks.com/1.0/oembed",["public.chartblocks.com/c/*"]],["chroco.ooo/embed",["chroco.ooo/mypage/*","chroco.ooo/story/*"]],["www.circlezeroeight.com/api/oembed",["www.circlezeroeight.com/features/*","www.circlezeroeight.com/news/*","www.circlezeroeight.com/sport/*","www.circlezeroeight.com/style/*","www.circlezeroeight.com/culture/*"]],["www.circuitlab.com/circuit/oembed/",["www.circuitlab.com/circuit/*"]],["api.clipform.io/v1/oembed",["clipform.io/*"]],["www.clipland.com/api/oembed",["www.clipland.com/v/*","www.clipland.com/v/*"]],["clueso.site/api/oembed",["clueso.site/*"]],["api.clyp.it/oembed/",["clyp.it/*","clyp.it/playlist/*"]],["codehs.com/api/sharedprogram/1/oembed/",["codehs.com/editor/share_abacus/*"]],["codepen.io/api/oembed",["codepen.io/*","codepen.io/*"]],["codepoints.net/api/v1/oembed",["codepoints.net/*","codepoints.net/*","www.codepoints.net/*","www.codepoints.net/*"]],["codesandbox.io/oembed",["codesandbox.io/s/*","codesandbox.io/embed/*"]],["www.collegehumor.com/oembed.{format}",["www.collegehumor.com/video/*"]],["coloringmonster.com/oembed",["coloringmonster.com/coloring-page/*","coloringmonster.com/monsterpieces/*"]],["commaful.com/api/oembed/",["commaful.com/play/*"]],["coub.com/api/oembed.{format}",["coub.com/view/*","coub.com/embed/*"]],["crumb.sh/oembed/",["crumb.sh/*"]],["gql.cueup.io/oembed",["cueup.io/user/*/sounds/*"]],["api.curated.co/oembed",["*.curated.co/*"]],["dcalculators.com/oembed",["dcalculators.com/*/*/*/"]],["app.dadan.io/api/video/oembed",["app.dadan.io/*","stage.dadan.io/*"]],["www.dailymotion.com/services/oembed",["www.dailymotion.com/video/*","geo.dailymotion.com/player.html?video=*"]],["api.datawrapper.de/v3/oembed/",["datawrapper.dwcdn.net/*"]],["app.demofly.ai/api/oembed",["app.demofly.ai/s/*","demofly.ai/s/*"]],["embed.deseret.com/",["*.deseret.com/*"]],["backend.deviantart.com/oembed",["*.deviantart.com/art/*","*.deviantart.com/*#/d*","fav.me/*","sta.sh/*","*.deviantart.com/art/*","*.deviantart.com/*/art/*","sta.sh/*","*.deviantart.com/*#/d*"]],["www.ultimedia.com/api/search/oembed",["www.ultimedia.com/central/video/edit/id/*/topic_id/*/","www.ultimedia.com/default/index/videogeneric/id/*/showtitle/1/viewnc/1","www.ultimedia.com/default/index/videogeneric/id/*"]],["www.docdroid.net/api/oembed",["*.docdroid.net/*","*.docdroid.net/*","docdro.id/*","docdro.id/*","*.docdroid.com/*","*.docdroid.com/*"]],["www.docswell.com/service/oembed",["docswell.com/s/*/*","docswell.com/s/*/*","www.docswell.com/s/*/*","www.docswell.com/s/*/*"]],["api.www.documentcloud.org/api/oembed",["www.documentcloud.org/documents/*"]],["dotsub.com/services/oembed",["dotsub.com/view/*"]],["dreambroker.com/channel/oembed",["www.dreambroker.com/channel/*/*"]],["api.d.tube/oembed",["d.tube/v/*"]],["ecency.com/api/oembed",["ecency.com/@*/*","ecency.com/*/@*/*"]],["www.edumedia-sciences.com/oembed.json",[]],["www.edumedia-sciences.com/oembed.xml",[]],["egliseinfo.catholique.fr/api/oembed",["egliseinfo.catholique.fr/*"]],["electiontracker.eu/oembed",["electiontracker.eu/*"]],["elevenlabs.io/next/oembed",["elevenlabs.io/*"]],["www.embases.com/api/oembed",["www.embases.com/e/*"]],["embedery.com/api/oembed",["embedery.com/widget/*"]],["ethfiddle.com/services/oembed/",["ethfiddle.com/*"]],["evt.live/api/oembed",["evt.live/*","evt.live/*/*","live.eventlive.pro/*","live.eventlive.pro/*/*"]],["api.everviz.com/oembed",["app.everviz.com/embed/*","app.everviz.com/embed/*"]],["cdn.everwall.com/hubs/oembed",["cdn.everwall.com/hubs/iframe/*"]],["everypage.co/oembed",["everypage.co/*"]],["graph.facebook.com/v16.0/oembed_post",["www.facebook.com/*/posts/*","www.facebook.com/*/activity/*","www.facebook.com/*/photos/*","www.facebook.com/photo.php?fbid=*","www.facebook.com/photos/*","www.facebook.com/permalink.php?story_fbid=*","www.facebook.com/media/set?set=*","www.facebook.com/questions/*","www.facebook.com/notes/*/*/*"]],["graph.facebook.com/v16.0/oembed_video",["www.facebook.com/*/videos/*","www.facebook.com/video.php?id=*","www.facebook.com/video.php?v=*"]],["graph.facebook.com/v16.0/oembed_page",["www.facebook.com/*"]],["faithlifetv.com/api/oembed",["faithlifetv.com/items/*","faithlifetv.com/items/resource/*/*","faithlifetv.com/media/*","faithlifetv.com/media/assets/*","faithlifetv.com/media/resource/*/*"]],["haus.fazen.co/api/oembed",["haus.fazen.co/embed/music/*"]],["www.figma.com/api/oembed",["www.figma.com/file/*","www.figma.com/design/*","www.figma.com/board/*","www.figma.com/slides/*","www.figma.com/buzz/*","www.figma.com/site/*","www.figma.com/make/*"]],["app.filestage.io/oembed",["app.filestage.io/step/**"]],["www.fireworktv.com/oembed",["*.fireworktv.com/*","*.fireworktv.com/embed/*/v/*"]],["www.fite.tv/oembed",["www.fite.tv/watch/*"]],["flat.io/services/oembed",["flat.io/score/*","*.flat.io/score/*"]],["www.flickr.com/services/oembed/",["*.flickr.com/photos/*","flic.kr/p/*","flic.kr/s/*","*.flickr.com/photos/*","flic.kr/p/*","flic.kr/s/*","*.*.flickr.com/*/*","*.*.flickr.com/*/*"]],["app.flourish.studio/api/v1/oembed",["public.flourish.studio/visualisation/*","public.flourish.studio/story/*"]],["flowhub.org/o/embed",["flowhub.org/f/*","flowhub.org/s/*"]],["forms.form-data.com/api/oembed",["forms.form-data.com/*"]],["fiso.foxsports.com.au/oembed",["fiso.foxsports.com.au/isomorphic-widget/*","fiso.foxsports.com.au/isomorphic-widget/*"]],["framatube.org/services/oembed",["framatube.org/w/*"]],["api.framer.com/web/oembed",["framer.com/share/*","framer.com/embed/*"]],["framerate.tv/api/oembed",["framerate.tv/watch/*"]],["frequencing.com/api/oembed",["frequencing.com/track/*","frequencing.com/post/*","frequencing.com/user/*/playlists/*"]],["fritube.ch/services/oembed",["fritube.ch/v/*"]],["geometryviewer.com/oembed",["geometryviewer.com/v/*","www.geometryviewer.com/v/*"]],["embed.gettyimages.com/oembed",["gty.im/*"]],["gigngo.org/oembed",["gigngo.org/watch/*","gigngo.org/embed/*"]],["giphy.com/services/oembed",["giphy.com/gifs/*","giphy.com/clips/*","gph.is/*","media.giphy.com/media/*/giphy.gif"]],["gloria.tv/oembed/",[]],["embed.gmetri.com/oembed/",["view.gmetri.com/*","*.gmetri.com/*"]],["app.gong.io/oembed",["app.gong.io/call?id=*"]],["www.good-for-job.jp/api/oembed",["www.good-for-job.jp/slides/*"]],["api.grain.com/_/api/oembed",["grain.co/highlight/*","grain.co/share/*","grain.com/share/*"]],["api.gumlet.com/v1/oembed",["gumlet.tv/watch/*","play.gumlet.io/embed/*"]],["gw2fashions.com/fashion/oembed",["gw2fashions.com/fashion/*"]],["api.gyazo.com/api/oembed",["gyazo.com/*"]],["api.hash.ai/oembed",["core.hash.ai/@*"]],["hearthis.at/oembed/?format=json",["hearthis.at/*/*/","hearthis.at/*/set/*/"]],["heyzine.com/api1/oembed",["heyzine.com/flip-book/*","*.hflip.co/*","*.aflip.in/*"]],["player.hihaho.com/services/oembed",["player.hihaho.com/*"]],["www.hippovideo.io/services/oembed",["*.hippovideo.io/*","*.hippovideo.io/*"]],["app.hivo.com.au/api/drupal/oembed",["cdn.hivo.com.au/*","cdn.digital-assets.uq.edu.au/*","cdn.southerndesigngroup.com/*","freedom.hivocdn.com/*","cdn.cockburn.wa.gov.au/*","cdn.somnomed.com/*","cdn.snowtunnel.com/*","cdn.brenclosures.com.au/*"]],["homey.app/api/oembed/flow",["homey.app/f/*","homey.app/*/flow/*"]],["huffduffer.com/oembed",["huffduffer.com/*/*"]],["www.hulu.com/api/oembed.{format}",["www.hulu.com/watch/*"]],["api.icosa.gallery/v1/oembed",["icosa.gallery/view/*"]],["oembed.ideamapper.com/oembed",["oembed.ideamapper.com/*"]],["oembed.idomoo.com/oembed",["*.idomoo.com/*"]],["www.ifixit.com/Embed",["www.ifixit.com/Guide/View/*"]],["www.ifttt.com/oembed/",["ifttt.com/recipes/*"]],["app.ignitevideo.cloud/api/oembed",["*.videocdn.net/player/*","*.euvideocdn.com/player/*"]],["www.iheart.com/oembed",["www.iheart.com/podcast/*/*"]],["qr.imenupro.com/api/oembed",["qr.imenupro.com/*","qr.imenupro.com/*"]],["player.indacolive.com/services/oembed",["player.indacolive.com/player/jwp/clients/*"]],["infogram.com/oembed",["infogram.com/*"]],["infoveave.net/services/oembed/",["*.infoveave.net/E/*","*.infoveave.net/P/*"]],["www.injurymap.com/services/oembed",["www.injurymap.com/exercises/*"]],["www.inoreader.com/oembed/api/",["www.inoreader.com/oembed/"]],["widgets.insighttimer.com/services/oembed",["insighttimer.com/*"]],["graph.facebook.com/v16.0/instagram_oembed",["instagram.com/*/p/*","www.instagram.com/*/p/*","instagram.com/*/p/*","www.instagram.com/*/p/*","instagram.com/p/*","instagr.am/p/*","www.instagram.com/p/*","www.instagr.am/p/*","instagram.com/p/*","instagr.am/p/*","www.instagram.com/p/*","www.instagr.am/p/*","instagram.com/tv/*","instagr.am/tv/*","www.instagram.com/tv/*","www.instagr.am/tv/*","instagram.com/tv/*","instagr.am/tv/*","www.instagram.com/tv/*","www.instagr.am/tv/*","www.instagram.com/reel/*","www.instagram.com/reel/*","instagram.com/reel/*","instagram.com/reel/*","instagr.am/reel/*","instagr.am/reel/*"]],["www.insticator.com/oembed",["ppa.insticator.com/embed-unit/*"]],["issuu.com/oembed",["issuu.com/*/docs/*"]],["samay.itabtechinfosys.com/oembed/",["samay.itabtechinfosys.com/*"]],["api.jawafdehi.org/oembed/",["jawafdehi.org/case/*"]],["api.jovian.com/oembed.json",["jovian.ml/*","jovian.ml/viewer*","*.jovian.ml/*","jovian.ai/*","jovian.ai/viewer*","*.jovian.ai/*","jovian.com/*","jovian.com/viewer*","*.jovian.com/*"]],["play.juntos.live/api/oembed",["play.juntos.live/solo/*","play.juntos.live/host/quiz/*"]],["www.justspin.cc/api/oembed",["www.justspin.cc/workouts/*"]],["keystonepractice.co/api/oembed",["keystonepractice.co/tools/*","keystonepractice.co/embed/*"]],["www.kickstarter.com/services/oembed",["www.kickstarter.com/projects/*"]],["halaman.email/service/oembed",["halaman.email/form/*","aplikasi.kirim.email/form/*"]],["kommodo.ai/api/oembed",["kommodo.ai/recordings/*","kommodo.ai/guides/*"]],["kubit.ai/services/oembed",["kubit.ai/*","*.kubit.ai/*"]],["kurozora.app/oembed",["kurozora.app/episodes/*","kurozora.app/songs/*"]],["api.landofassets.com/oembed",["landofassets.com/*","landofassets.com/*/assets","landofassets.com/*/assets/*","landofassets.com/*/assets/*/embed"]],["laude.org/api/oembed",["laude.org/impact/*","laude.org/im/*"]],["learningapps.org/oembed.php",["learningapps.org/*"]],["pod.univ-lille.fr/video/oembed",["pod.univ-lille.fr/video/*"]],["place.line.me/oembed",["place.line.me/businesses/*"]],["api.linkstackz.com/oembed",["linkstackz.com/irf/*","linkstackz.com/post/*"]],["livecodes.io/oembed",["livecodes.io/","livecodes.io/?*","*.livecodes.io/","*.livecodes.io/?*"]],["livid.com/oembed",["livid.com/watch/*"]],["www.loom.com/v1/oembed",["loom.com/i/*","loom.com/share/*"]],["embed.lottiefiles.com/oembed",["lottiefiles.com/*","*.lottiefiles.com/*","*.lottie.host/*","lottie.host/*"]],["app.ludus.one/oembed",["app.ludus.one/*"]],["admin.lumiere.is/api/services/oembed",["*.lumiere.is/v/*"]],["api.marbellawire.com/oembed",["marbellawire.com/*"]],["marimo.app/oembed",["marimo.app/*"]],["my.matterport.com/api/v1/models/oembed/",[]],["mdstrm.com/oembed",["mdstrm.com/embed/*","mdstrm.com/live-stream/*","mdstrm.com/image/*"]],["medienarchiv.zhdk.ch/oembed.{format}",["medienarchiv.zhdk.ch/entries/*","zhdk.medienarchiv.ch/entries/*"]],["web.microsoftstream.com/oembed",["*.microsoftstream.com/video/*","*.microsoftstream.com/channel/*"]],["mirame360.com/api/oembed/",["mirame360.com/embed/*","mirame360.com/embed/tour/*","mirame360.com/video/url/*","mirame360.com/tour/*","mirame360.com/user/*/media/*"]],["miro.com/api/v1/oembed",["miro.com/app/board/*"]],["miro.com/video-player/oembed",["miro.com/video-player/*"]],["www.mixcloud.com/oembed/",["www.mixcloud.com/*/*/","www.mixcloud.com/*/*/"]],["mixpanel.com/api/app/embed/oembed/",["mixpanel.com/*","*.mixpanel.com/*"]],["musicboxmaniacs.com/embed/",["musicboxmaniacs.com/explore/melody/*"]],["mybeweeg.com/services/oembed",["mybeweeg.com/w/*"]],["api.mysqlexplain.com/v2/oembed.json",["mysqlexplain.com/explain/*","embed.mysqlexplain.com/explain/*"]],["namchey.com/api/oembed",["namchey.com/embeds/*"]],["www.nanoo.tv/services/oembed",["*.nanoo.tv/link/*","nanoo.tv/link/*","*.nanoo.pro/link/*","nanoo.pro/link/*","*.nanoo.tv/link/*","nanoo.tv/link/*","*.nanoo.pro/link/*","nanoo.pro/link/*","media.zhdk.ch/signatur/*","new.media.zhdk.ch/signatur/*","media.zhdk.ch/signatur/*","new.media.zhdk.ch/signatur/*"]],["api.nb.no/catalog/v1/oembed",["www.nb.no/items/*"]],["naturalatlas.com/oembed.{format}",["naturalatlas.com/*","naturalatlas.com/*/*","naturalatlas.com/*/*/*","naturalatlas.com/*/*/*/*"]],["m.naver.com/shorts/oEmbed",["naver.me/*","m.naver.com/shorts/*"]],["ndla.no/oembed",["ndla.no/*","ndla.no/article/*","ndla.no/audio/*","ndla.no/concept/*","ndla.no/image/*","ndla.no/video/*"]],["nebula.tv/api/oembed",["nebula.tv/videos/*"]],["beta.nebula.tv/api/oembed",["beta.nebula.tv/videos/*"]],["cloud.needle.tools/oembed",["cloud.needle.tools/-/assets/*/file","cloud.needle.tools/view?file=*","*.needle.run/*"]],["api.neetorecord.com/api/v1/oembed",["*.neetorecord.com/watch/*"]],["www.nfb.ca/remote/services/oembed/",["*.nfb.ca/film/*"]],["nouncify.com/api/oembed",["nouncify.com/i/*","nouncify.com/brand/*","nouncify.com/e/*","sandbox.nouncify.com/i/*","sandbox.nouncify.com/brand/*","sandbox.nouncify.com/e/*"]],["api.observablehq.com/oembed",["observablehq.com/@*/*","observablehq.com/d/*","observablehq.com/embed/*"]],["www.odds.com.au/api/oembed/",["www.odds.com.au/*","odds.com.au/*"]],["song.link/oembed",["song.link/*","album.link/*","artist.link/*","playlist.link/*","pods.link/*","mylink.page/*","odesli.co/*"]],["odysee.com/$/oembed",["odysee.com/*/*","odysee.com/*"]],["official.fm/services/oembed.{format}",["official.fm/tracks/*","official.fm/playlists/*"]],["omniscope.me/_global_/oembed/json",["omniscope.me/*"]],["omny.fm/oembed",["omny.fm/shows/*"]],["orbitvu.co/service/oembed",["orbitvu.co/001/*/ov3601/view","orbitvu.co/001/*/ov3601/*/view","orbitvu.co/001/*/ov3602/*/view","orbitvu.co/001/*/2/orbittour/*/view","orbitvu.co/001/*/1/2/orbittour/*/view","orbitvu.co/001/*/ov3601/view","orbitvu.co/001/*/ov3601/*/view","orbitvu.co/001/*/ov3602/*/view","orbitvu.co/001/*/2/orbittour/*/view","orbitvu.co/001/*/1/2/orbittour/*/view"]],["origits.net/oembed",["origits.com/v/*"]],["origits.com/oembed",["origits.com/v/*"]],["embed.orizn.app/api/oembed",["embed.orizn.app/frame/*","embed.orizn.app/widgets/*"]],["outplayed.tv/oembed",["outplayed.tv/media/*"]],["overflow.io/services/oembed",["overflow.io/s/*","overflow.io/embed/*"]],["padlet.com/oembed/",["padlet.com/*"]],["api-v2.pandavideo.com.br/oembed",["*.tv.pandavideo.com.br/embed/?v=*","*.tv.pandavideo.com.br/*/playlist.m3u8","dashboard.pandavideo.com.br/#/videos/*"]],["app.parler.com/oembed",["app.parler.com/post/*","app.parler.com/b/*"]],["app.parta.io/core/oembed",["app.parta.io/core/embed/*","*.parta.io/core/embed/*"]],["www.pastery.net/oembed",["pastery.net/*","pastery.net/*","www.pastery.net/*","www.pastery.net/*"]],["peertube.tv/services/oembed",["peertube.tv/w/*"]],["tools.pinpoll.com/oembed",["tools.pinpoll.com/embed/*"]],["www.pinterest.com/oembed.json",["www.pinterest.com/*"]],["player.pitchhub.com/en/public/oembed",["player.pitchhub.com/en/public/player/*"]],["store.pixdor.com/oembed",["store.pixdor.com/place-marker-widget/*/show","store.pixdor.com/map/*/show"]],["plinth.it/model-viewer/oembed",["plinth.it/model-viewer/*/*"]],["app.plusdocs.com/oembed",["app.plusdocs.com/*/snapshots/*","app.plusdocs.com/*/pages/edit/*","app.plusdocs.com/*/pages/share/*"]],["api.podbean.com/v1/oembed",["*.podbean.com/e/*","*.podbean.com/e/*"]],["polldaddy.com/oembed/",["*.polldaddy.com/s/*","*.polldaddy.com/poll/*","*.polldaddy.com/ratings/*"]],["api.portfolium.com/oembed",["portfolium.com/entry/*"]],["prezi.com/v/oembed",["prezi.com/v/*","*.prezi.com/v/*"]],["puzzel.org/api/oembed",["puzzel.org/*/*/play?p=*","puzzel.org/*/*/embed?p=*"]],["www.pyzia.app/api/oembed",["www.pyzia.app/dashboard?*","pyzia.app/dashboard?*","www.pyzia.app/embed/chart?*","pyzia.app/embed/chart?*"]],["qtpi.gg/fashion/oembed",["qtpi.gg/fashion/*"]],["web.quartr.com/api/oembed",["quartr.com/*","web.quartr.com/*"]],["quellensuche.de/api/oembed",["quellensuche.de/*"]],["www.quiz.biz/api/oembed",["www.quiz.biz/quizz-*.html"]],["www.quizz.biz/api/oembed",["www.quizz.biz/quizz-*.html"]],["animatron.com/oembed",["www.rcvis.com/v/*","www.rcvis.com/visualize=*","www.rcvis.com/ve/*","www.rcvis.com/visualizeEmbedded=*"]],["www.reddit.com/oembed",["reddit.com/r/*/comments/*/*","www.reddit.com/r/*/comments/*/*"]],["redlof-medien.de/wp-json/oembed/1.0/embed",["redlof-medien.de/*","www.redlof-medien.de/*"]],["api.wexcreator.com/oembed/",["show.wexcreator.com/*","showroom.redlof-medien.de/*"]],["publisher.releasewire.com/oembed/",["rwire.com/*"]],["replit.com/data/oembed",["repl.it/@*/*","replit.com/@*/*"]],["www.reverbnation.com/oembed",["www.reverbnation.com/*","www.reverbnation.com/*/songs/*"]],["risky.biz/oembed",["risky.biz/*"]],["roosterteeth.com/oembed",["roosterteeth.com/*"]],["rumble.com/api/Media/oembed.{format}",["rumble.com/*","rumble.com/shorts/*"]],["api.rushes.cc/oembed",["www.rushes.cc/video/*","www.rushes.cc/embed/*","rushes.cc/video/*","rushes.cc/embed/*"]],["app2.sagenverse.com/oembed",["app2.sagenverse.com/embed/*"]],["octopus.saooti.com/oembed",["octopus.saooti.com/main/pub/podcast/*"]],["www.satcat.com/api/sats/oembed",["www.satcat.com/sats/*"]],["api.satoplayer.com/players/oembed",["api.satoplayer.com/players/embed/*"]],["sbedit.net/oembed/",["sbedit.net/*"]],["app.scibly.com/api/oembed",["app.scibly.com/public/courses/*","app.scibly.com/embed/courses/*","app.scibly.com/en/public/courses/*","app.scibly.com/en/embed/courses/*","app.scibly.com/de/public/courses/*","app.scibly.com/de/embed/courses/*"]],["api.screen9.com/oembed",["console.screen9.com/*","*.screen9.tv/*"]],["api.screencast.com/external/oembed",["www.screencast.com/*"]],["www.screenr.com/api/oembed.{format}",["www.screenr.com/*/"]],["scribblemaps.com/api/services/oembed.{format}",["www.scribblemaps.com/maps/view/*","www.scribblemaps.com/maps/view/*","scribblemaps.com/maps/view/*","scribblemaps.com/maps/view/*"]],["www.scribd.com/services/oembed/",["www.scribd.com/doc/*"]],["embed.sendtonews.com/services/oembed",["embed.sendtonews.com/oembed/*"]],["shared-file-kappa.vercel.app/file/api/oembed",["shared-file-kappa.vercel.app/file/*"]],["shoudio.com/api/oembed",["shoudio.com/*","shoud.io/*"]],["api.getshow.io/oembed.{format}",["app.getshow.io/iframe/*","*.getshow.io/share/*"]],["showtheway.io/oembed",["showtheway.io/to/*"]],["simplecast.com/oembed",["simplecast.com/s/*"]],["graphql.sketch.cloud/embed/oembed",["www.sketch.com/s/*","www.sketch.com/preview/*"]],["sketchfab.com/oembed",["sketchfab.com/*models/*","sketchfab.com/*models/*","sketchfab.com/*/folders/*"]],["skhema.com/api/oembed",["skhema.com/embed/e/*","skhema.com/embed/c/*"]],["www.skoletube.dk/media/lasync/oembed/",["www.skoletube.dk/media/*","www.skoletube.dk/video/*","www.studietube.dk/media/*","www.studietube.dk/video/*"]],["slidesfly.com/api/oembed",["slidesfly.xyz/d/*"]],["www.slideshare.net/api/oembed/2",["www.slideshare.net/*/*","www.slideshare.net/*/*","fr.slideshare.net/*/*","fr.slideshare.net/*/*","de.slideshare.net/*/*","de.slideshare.net/*/*","es.slideshare.net/*/*","es.slideshare.net/*/*","pt.slideshare.net/*/*","pt.slideshare.net/*/*"]],["smashnotes.com/services/oembed",["smashnotes.com/p/*","smashnotes.com/p/*/e/*-smashnotes.com/p/*/e/*/s/*"]],["api.smugmug.com/services/oembed/",["*.smugmug.com/*","*.smugmug.com/*"]],["www.socialexplorer.com/services/oembed/",["www.socialexplorer.com/*/explore","www.socialexplorer.com/*/view","www.socialexplorer.com/*/edit","www.socialexplorer.com/*/embed"]],["openapi.sooplive.com/oembed/embedinfo",["vod.sooplive.com/player/","v.afree.ca/ST/","vod.sooplive.com/ST/","vod.sooplive.com/PLAYER/STATION/","play.sooplive.com/"]],["soundcloud.com/oembed",["soundcloud.com/*","soundcloud.com/*","on.soundcloud.com/*","soundcloud.app.goog.gl/*"]],["speakerdeck.com/oembed.json",["speakerdeck.com/*/*","speakerdeck.com/*/*"]],["open.spotify.com/oembed",["open.spotify.com/*","spotify:*","spotify.link/*"]],["api.spotlightr.com/getOEmbed",["*.spotlightr.com/watch/*","*.spotlightr.com/publish/*","*.cdn.spotlightr.com/watch/*","*.cdn.spotlightr.com/publish/*"]],["api.spreaker.com/oembed",["*.spreaker.com/*","*.spreaker.com/*"]],["sproutvideo.com/oembed.{format}",["sproutvideo.com/videos/*","*.vids.io/videos/*"]],["api.spyke.social/embed/oembed",["spyke.social/p/*","spyke.social/u/*","spyke.social/g/*","spyke.social/c/*","spyke.social/p/*","spyke.social/u/*","spyke.social/g/*","spyke.social/c/*","www.spyke.social/p/*","www.spyke.social/u/*","www.spyke.social/g/*","www.spyke.social/c/*","www.spyke.social/p/*","www.spyke.social/u/*","www.spyke.social/g/*","www.spyke.social/c/*"]],["purl.stanford.edu/embed.{format}",["purl.stanford.edu/*"]],["www.stem.fm/oembed",["stem.fm/session/*","www.stem.fm/session/*","stem.fm/s/*","www.stem.fm/s/*"]],["api.streamable.com/oembed.json",["streamable.com/*","streamable.com/*"]],["streamio.com/api/v1/oembed",["s3m.io/*","23m.io/*"]],["oembed.streetartcities.com/oembed",["streetartcities.com/markers/*"]],["www.sudomemo.net/oembed",["www.sudomemo.net/watch/*","www.sudomemo.net/watch/*","archive.sudomemo.net/watch/*","archive.sudomemo.net/watch/*","flipnot.es/*","flipnot.es/*"]],["supercut.ai/oembed",["supercut.ai/share/*"]],["www.sutori.com/api/oembed",["www.sutori.com/story/*"]],["sway.com/api/v1.0/oembed",["sway.com/*","www.sway.com/*"]],["sway.office.com/api/v1.0/oembed",["sway.office.com/*"]],["synthcamp.net/api/oembed",["synthcamp.net/r/*"]],["69jr5v75rc.execute-api.eu-west-1.amazonaws.com/prod/v2/oembed",["share.synthesia.io/*"]],["techpostcast.com/oembed/",["techpostcast.com/headline-topic-programs/*"]],["www.ted.com/services/v1/oembed.{format}",["ted.com/talks/*","ted.com/talks/*","www.ted.com/talks/*","www.ted.com/talks/*","embed.ted.com/talks/*"]],["tegula.io/api/oembed/",["tegula.io/m/*","www.tegula.io/m/*","tegula.io/c/*","www.tegula.io/c/*","tegula.io/cat.html?model=*","www.tegula.io/cat.html?model=*"]],["www.tella.tv/api/oembed",["www.tella.tv/video/*","tella.video/*"]],["rest-prod.tenet.textexpander.com/oembed",["rest-prod.tenet.textexpander.com/share/*"]],["hubspot-media-bridge.thedamconsultants.com/oembed/",["hubspot-media-bridge.thedamconsultants.com/*"]],["www.nytimes.com/svc/oembed/json/",["www.nytimes.com/svc/oembed","nytimes.com/*","*.nytimes.com/*"]],["theysaidso.com/extensions/oembed/",["theysaidso.com/image/*"]],["www.tickcounter.com/oembed",["www.tickcounter.com/widget/*","www.tickcounter.com/countdown/*","www.tickcounter.com/countup/*","www.tickcounter.com/ticker/*","www.tickcounter.com/clock/*","www.tickcounter.com/worldclock/*","www.tickcounter.com/embed/*","www.tickcounter.com/full/*","www.tickcounter.com/widget/*","www.tickcounter.com/countdown/*","www.tickcounter.com/countup/*","www.tickcounter.com/ticker/*","www.tickcounter.com/clock/*","www.tickcounter.com/worldclock/*","www.tickcounter.com/embed/*","www.tickcounter.com/full/*"]],["www.tiktok.com/oembed",["www.tiktok.com/*","www.tiktok.com/*/video/*"]],["tksn.me/api/oembed/",["tksn.me/*","*.tksn.me/*"]],["tlexdr.com/oembed",["tlexdr.com/episode/*"]],["tonicaudio.com/oembed",["tonicaudio.com/take/*","tonicaudio.com/song/*","tnic.io/song/*","tnic.io/take/*"]],["widget.toornament.com/oembed",["www.toornament.com/tournaments/*/information","www.toornament.com/tournaments/*/registration/","www.toornament.com/tournaments/*/matches/schedule","www.toornament.com/tournaments/*/stages/*/"]],["www.topy.se/oembed/",["www.topy.se/image/*"]],["app-test.totango.com/oembed",["app-test.totango.com/*"]],["trackspace.upitup.com/oembed",["trackspace.upitup.com/*"]],["trinitymedia.ai/services/oembed",["trinitymedia.ai/player/*","trinitymedia.ai/player/*/*","trinitymedia.ai/player/*/*/*"]],["trycli.com/api/oembed",["trycli.com/e/*","trycli.com/*/*"]],["www.tumblr.com/oembed/1.0",["*.tumblr.com/post/*"]],["tuvelia.com/oembed",["tuvelia.com/embed/*","www.tuvelia.com/embed/*"]],["www.tuxx.be/services/oembed",["www.tuxx.be/*"]],["play.tvcf.co.kr/rest/oembed",["play.tvcf.co.kr/*","*.tvcf.co.kr/*"]],["twinmotion.unrealengine.com/oembed",["twinmotion.unrealengine.com/presentation/*","twinmotion.unrealengine.com/panorama/*"]],["publish.twitter.com/oembed",["twitter.com/*","twitter.com/*/status/*","*.twitter.com/*/status/*"]],["play.typecast.ai/oembed",["play.typecast.ai/s/*","play.typecast.ai/e/*","play.typecast.ai/*"]],["typlog.com/oembed",[]],["u-poll.com/oembed",["u-poll.com/p/*"]],["uapod.univ-antilles.fr/oembed",["uapod.univ-antilles.fr/video/*"]],["map.cam.ac.uk/oembed/",["map.cam.ac.uk/*"]],["mediatheque.univ-paris1.fr/oembed",["mediatheque.univ-paris1.fr/video/*"]],["pod.u-pec.fr/oembed",["pod.u-pec.fr/video/*"]],["www.ustream.tv/oembed",["*.ustream.tv/*","*.ustream.com/*"]],["app.ustudio.com/api/v2/oembed",["*.ustudio.com/embed/*","*.ustudio.com/embed/*/*"]],["vectree.io/api/oembed",["vectree.io/c/*","vectree.io/c/*"]],["www.vevo.com/oembed",["www.vevo.com/*","www.vevo.com/*"]],["videfit.com/oembed",["videfit.com/videos/*"]],["videobot.com/embed/oembed",["videobot.com/embed/*"]],["www.vidlink.it/api/oembed",["vidlink.it/videos/*","www.vidlink.it/videos/*"]],["vidmount.com/oembed",["vidmount.com/*"]],["api.vidyard.com/dashboard/v1.1/oembed",["*.vidyard.com/*","*.vidyard.com/*","*.hubs.vidyard.com/*","*.hubs.vidyard.com/*"]],["vimeo.com/api/oembed.{format}",["vimeo.com/*","vimeo.com/album/*/video/*","vimeo.com/channels/*/*","vimeo.com/groups/*/videos/*","vimeo.com/ondemand/*/*","player.vimeo.com/video/*","vimeo.com/event/*/*"]],["play.viostream.com/oembed",["share.viostream.com/*"]],["www.viously.com/oembed",["www.viously.com/*/*"]],["vizdom.dev/api/v1/oembed",["vizdom.dev/link/*"]],["vizzlo.com/oembed",["vizzlo.com/d/*","vizzlo.com/share/*","vizzlo.com/embed/*"]],["eu.vizzlo.com/oembed",["eu.vizzlo.com/d/*","eu.vizzlo.com/share/*","eu.vizzlo.com/embed/*"]],["vlipsy.com/oembed",["vlipsy.com/*"]],["www.vlive.tv/oembed",["www.vlive.tv/video/*"]],["embed.vouchfor.com/v1/oembed",["*.vouchfor.com/*"]],["data.voxsnap.com/oembed",["article.voxsnap.com/*/*"]],["watchpeoplefight.com/api/oembed",["watchpeoplefight.com/watch/*"]],["embed.wave.video/oembed",["watch.wave.video/*","embed.wave.video/*"]],["www.web3isgoinggreat.com/api/oembed",["www.web3isgoinggreat.com/?id=*","www.web3isgoinggreat.com/single/*","www.web3isgoinggreat.com/embed/*"]],["play.wecandeo.com/oembed/",["play.wecandeo.com/video/v/*"]],["www.wewtalk.com/api/oembed",["www.wewtalk.com/voice/*","wewtalk.com/voice/*"]],["whimsical.com/api/oembed",["whimsical.com/*","whimsical.com/*/*"]],["api.whyp.it/api/oembed",["whyp.it/tracks/*","whyp.it/collections/*","www.whyp.it/tracks/*","www.whyp.it/collections/*"]],["www.wikitolica.com/oembed",["www.wikitolica.com/*/*/"]],["fast.wistia.com/oembed.{format}",["fast.wistia.com/embed/iframe/*","fast.wistia.com/embed/playlists/*","*.wistia.com/medias/*","*.wistia.com/s/*"]],["app.wizer.me/api/oembed.{format}",["*.wizer.me/learn/*","*.wizer.me/preview/*"]],["wokwi.com/api/oembed",["wokwi.com/share/*"]],["www.wolframcloud.com/oembed",["*.wolframcloud.com/*"]],["public-api.wordpress.com/oembed/",["wordpress.com/*","wordpress.com/*","*.wordpress.com/*","*.wordpress.com/*","*.*.wordpress.com/*","*.*.wordpress.com/*","wp.me/*","wp.me/*"]],["wppaste.com/api/oembed",["wppaste.com/p/*"]],["publish.x.com/oembed",["x.com/*","x.com/*/status/*","*.x.com/*/status/*"]],["www.youtube.com/oembed",["*.youtube.com/watch*","*.youtube.com/v/*","youtu.be/*","*.youtube.com/playlist?list=*","youtube.com/playlist?list=*","*.youtube.com/shorts*","youtube.com/shorts*","*.youtube.com/embed/*","*.youtube.com/live*","youtube.com/live*"]],["www.yumpu.com/services/oembed",["www.yumpu.com/*/document/view/*/*"]],["app.zeplin.io/embed",["app.zeplin.io/project/*/screen/*","app.zeplin.io/project/*/screen/*/version/*","app.zeplin.io/project/*/styleguide/components?coid=*","app.zeplin.io/styleguide/*/components?coid=*"]],["app.zingsoft.com/oembed",["app.zingsoft.com/embed/*","app.zingsoft.com/view/*"]],["api.znipe.tv/v3/oembed/",["*.znipe.tv/*"]],["srv2.zoomable.ca/oembed",["srv2.zoomable.ca/viewer.php*"]]]')})),c("iLAck")}();
@@ -0,0 +1 @@
1
+ !function(){var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},e={},i={},n=t.parcelRequirea18f;null==n&&((n=function(t){if(t in e)return e[t].exports;if(t in i){var n=i[t];delete i[t];var r={id:t,exports:{}};return e[t]=r,n.call(r.exports,r,r.exports),r.exports}var o=new Error("Cannot find module '"+t+"'");throw o.code="MODULE_NOT_FOUND",o}).register=function(t,e){i[t]=e},t.parcelRequirea18f=n),n.register("3gU5S",(function(t,e){var i=n("iLAck"),r=n("eWsJW"),o=n("7YIDk");const s=/(?:https?:)(?:\/\/)liascript\.github\.io\/course\/\?(.+\.md)/i,a=/\/\/([a-z-]+)(?:\.m)?\.(wikipedia|wiktionary|wikibooks|wikinews|wikiquote|wikisource|wikiversity|wikivoyage|wikimedia|wikidata)\.org\/wiki\/([^#?\s]+)/i,c=new Map;let l,d=0,u=null;class h extends HTMLElement{light=!0;clicked=!1;connectedCallback(){this.addEventListener("mouseenter",this.activate),this.addEventListener("focusin",this.activate),this.addEventListener("mouseleave",this.deactivate),this.addEventListener("focusout",this.deactivate),this.addEventListener("click",this.handleClick)}activate(){if(this.clicked)return void(this.clicked=!1);const t=this.getAttribute("src")?.replace(/\/$/,"");t&&(clearTimeout(d),u=this,this.cursor("progress"),function(t){return c.has(t)||c.set(t,function(t){const e=t.match(s);if(e)return new Promise(((t,i)=>r.fetch(e[1],((e,i)=>t({title:i.title,description:i.description,image:i.logo,image_alt:i.logo_alt})),i)));const n=()=>i.extract(t,{}).then((t=>({title:t.title,image:t.thumbnail_url}))).catch((()=>i.fetchText(t,!0,3e4).then((e=>o.parse(t,e))))),c=t.match(a);return c?async function([,t,e,i]){try{i=decodeURIComponent(i)}catch(t){}const n=await fetch(`https://${t}.${e}.org/api/rest_v1/page/summary/${encodeURIComponent(i)}`,{headers:{Accept:"application/json"}});if(!n.ok)throw new Error(`wikimedia: ${n.status}`);const r=await n.json();return{title:r.title,description:r.extract,image:r.thumbnail?.source}}(c).catch(n):n()}(t).then((e=>function(t,e){if(!e.title&&!e.description&&!e.image)return null;const i=document.createElement("div");if(e.image)try{const n=p(i,"img");n.src=new URL(e.image,t).href,e.image_alt&&(n.alt=e.image_alt),n.style.cssText="background-color:white; margin-bottom:1.5rem"}catch(t){}e.title&&(p(i,"h4").textContent=e.title),e.description&&(p(i,"p").textContent=e.description),p(i,"hr").style.cssText="border:0; height:1px; background:#888";const n=p(i,"a");return n.href=t,n.target="_blank",n.rel="noopener noreferrer",n.textContent=t,n.style.cssText="font-size:x-small; display:block",i}(t,e))).catch((()=>null))),c.get(t)}(t).then((t=>{this.cursor(""),t&&u===this&&function(t,e){const i=(l||(l=document.createElement("div"),l.id="lia-tooltip",l.setAttribute("role","tooltip"),l.style.cssText="position:fixed; z-index:20000; display:none; box-sizing:border-box; padding:15px; max-height:480px; overflow:auto",l.addEventListener("mouseenter",(()=>clearTimeout(d))),l.addEventListener("mouseleave",g),document.body.appendChild(l)),l),n=e.getBoundingClientRect(),r=n.left+n.width/2,o=n.top+n.height/2,s=Math.min(455,window.innerWidth-20);i.style.width=`${s}px`,i.style.left=r*(window.innerWidth-s)/window.innerWidth+"px",1.5*o>window.innerHeight?(i.style.top="",i.style.bottom=window.innerHeight-o+10+"px"):(i.style.top=`${o+10}px`,i.style.bottom=""),i.style.background=e.light?"white":"#202020",i.style.boxShadow=e.light?"0 30px 90px -20px rgba(0, 0, 0, 0.3)":"0 30px 90px -20px rgba(120, 120, 120, 0.3)",i.textContent="",i.appendChild(t),i.style.display="block"}(t,this)})))}deactivate(){u===this&&(u=null),this.cursor(""),g()}handleClick(){this.clicked=!0,this.deactivate(),m()}cursor(t){const e=this.firstElementChild;e&&(e.style.cursor=t)}}function p(t,e){return t.appendChild(document.createElement(e))}function m(){clearTimeout(d),l&&(l.style.display="none")}function g(){clearTimeout(d),d=window.setTimeout(m,300)}document.addEventListener("keyup",(t=>{"Escape"===t.key&&(u=null,m())})),customElements.define("preview-link",h)})),n.register("7YIDk",(function(t,e){var i,n;function r(t,e){const i=(new DOMParser).parseFromString(e,"text/html"),n=t=>i.querySelector(`meta[property="${t}"], meta[name="${t}"]`)?.getAttribute("content")?.trim()||void 0,r=t=>i.querySelector(t)?.textContent?.trim()||void 0,o=i.querySelector("img");let[s,a]=[[n("og:image"),n("og:image:alt")],[i.querySelector('link[rel="image_src"]')?.getAttribute("href")],[n("twitter:image"),n("twitter:image:alt")],[o?.getAttribute("src"),o?.getAttribute("alt")]].find((([t])=>t))||[];if(s)try{const e=i.querySelector("base")?.getAttribute("href");s=new URL(s,e?new URL(e,t):t).href}catch(t){s=void 0}return{title:n("og:title")||n("twitter:title")||i.title.trim()||r("h1")||r("h2"),description:n("og:description")||n("twitter:description")||n("description")||r("p"),image:s||void 0,image_alt:a||void 0}}i=t.exports,n=function(){return r},Object.defineProperty(i,"parse",{get:n,set:undefined,enumerable:!0,configurable:!0})})),n("3gU5S")}();
@@ -3,4 +3,4 @@ function e(e){return e&&e.__esModule?e.default:e}var t="undefined"!=typeof globa
3
3
  * © 2016-2021 Convergence Labs, Inc.
4
4
  * @version 0.6.0
5
5
  * @license MIT
6
- */function c(e){return"string"==typeof e&&(e="ace_color_"+e.replace(/ /g,"").replace(/\./g,"").replace(/,/g,"_").replace(/\(/g,"").replace(/\)/g,"")),e}function h(e,t){if(!e)return;const i=c(t||e);if(!document.head.querySelector("style#"+i)){let t=document.createElement("style");t.id=i,t.appendChild(document.createTextNode(`.${i} {\n position:absolute;\n background:${e};\n z-index:20\n }`)),document.getElementsByTagName("head")[0].appendChild(t)}}!function(e,t){var i=function(){function e(e,t,i,n,o){this._session=e,this._label=i,this._color=n,this._ranges=o||[],this._selectionId=t,this._id=null,this._markerElement=document.createElement("div")}return e.prototype.update=function(e,t,i,n){for(var o=this;this._markerElement.hasChildNodes();)this._markerElement.removeChild(this._markerElement.lastChild);this._ranges.forEach((function(e){o._renderRange(t,i,n,e)})),this._markerElement.remove(),t.elt("remote-selection",""),(t.element.childNodes[t.i-1]||t.element.lastChild).appendChild(this._markerElement)},e.prototype.setSelection=function(e){this._ranges=null==e?[]:e instanceof Array?e:[e],this._forceSessionUpdate()},e.prototype.getLabel=function(){return this._label},e.prototype.selectionId=function(){return this._selectionId},e.prototype.markerId=function(){return this._id},e.prototype._renderLine=function(e){var t=document.createElement("div");t.className="ace-multi-selection",t.style.backgroundColor=this._color,"number"==typeof e.height&&(t.style.height=e.height+"px"),"number"==typeof e.width&&(t.style.width=e.width+"px"),"number"==typeof e.top&&(t.style.top=e.top+"px"),"number"==typeof e.left&&(t.style.left=e.left+"px"),"number"==typeof e.bottom&&(t.style.bottom=e.bottom+"px"),"number"==typeof e.right&&(t.style.right=e.right+"px"),this._markerElement.append(t)},e.prototype._renderRange=function(e,t,i,n){var o=n.toScreenRange(t),r=i.lineHeight,s=e.$getTop(o.start.row,i),a=0,l=e.$padding+o.start.column*i.characterWidth;if(o.isMultiLine()){if(this._renderLine({height:r,right:0,top:s,left:l}),s=e.$getTop(o.end.row,i),a=o.end.column*i.characterWidth,this._renderLine({height:r,width:a,top:s,left:e.$padding}),(r=(o.end.row-o.start.row-1)*i.lineHeight)<0)return;s=e.$getTop(o.start.row+1,i),this._renderLine({height:r,right:0,top:s,left:e.$padding})}else a=(n.end.column-n.start.column)*i.characterWidth,this._renderLine({height:r,width:a,top:s,left:l})},e.prototype._forceSessionUpdate=function(){this._session._signal("changeBackMarker")},e}(),n=function(){function e(e){this._selections={},this._session=e}return e.prototype.addSelection=function(e,t,n,o){if(void 0!==this._selections[e])throw new Error("Selection with id already defined: "+e);var r=new i(this._session,e,t,n,o);this._selections[e]=r,this._session.addDynamicMarker(r,!1)},e.prototype.setSelection=function(e,t){this._getSelection(e).setSelection(t)},e.prototype.clearSelection=function(e){this._getSelection(e).setSelection(null)},e.prototype.removeSelection=function(e){var t=this._selections[e];if(void 0===t)throw new Error("Selection not found: "+e);this._session.removeMarker(t.id),delete this._selections[e]},e.prototype.removeAll=function(){var e=this;Object.getOwnPropertyNames(this._selections).forEach((function(t){e.removeSelection(e._selections[t].selectionId())}))},e.prototype._getSelection=function(e){var t=this._selections[e];if(void 0===t)throw new Error("Selection not found: "+e);return t},e}(),o=function(){function e(e,t,i,n,o){this._session=e,this._label=i,this._color=n,this._position=o?this._convertPosition(o):null,this._cursorId=t,this._id=null,this._visible=!1,this._tooltipTimeout=null,this._markerElement=document.createElement("div"),this._cursorElement=document.createElement("div"),this._cursorElement.className="ace-multi-cursor",this._cursorElement.style.background=this._color,this._markerElement.append(this._cursorElement),this._tooltipElement=document.createElement("div"),this._tooltipElement.className="ace-multi-cursor-tooltip",this._tooltipElement.style.background=this._color,this._tooltipElement.style.opacity="0",this._tooltipElement.innerHTML=i,this._markerElement.append(this._tooltipElement)}return e.prototype.update=function(e,t,i,n){if(null!==this._position){var o=this._session.documentToScreenPosition(this._position.row,this._position.column),r=t.$getTop(o.row,n),s=t.$padding+o.column*n.characterWidth,a=n.lineHeight,l=r+2,c=a-3,h=s;this._cursorElement.style.height=c+"px",this._cursorElement.style.width="2px",this._cursorElement.style.top=l+"px",this._cursorElement.style.left=h+"px";var u=l-a;u<5&&(u=l+a-1);var d=h;this._tooltipElement.style.top=u-2+"px",this._tooltipElement.style.left=d-2+"px",this._markerElement.remove(),t.elt("remote-cursor",""),(t.element.childNodes[t.i-1]||t.element.lastChild).appendChild(this._markerElement)}},e.prototype.setPosition=function(e){this._position=this._convertPosition(e),this._forceSessionUpdate(),this._tooltipElement.style.opacity="1",this._scheduleTooltipHide()},e.prototype.setVisible=function(e){var t=this._visible;this._visible=e,t!==this._visible&&(this._markerElement.style.visibility=e?"visible":"hidden",this._forceSessionUpdate())},e.prototype.isVisible=function(){return this._visible},e.prototype.cursorId=function(){return this._cursorId},e.prototype.markerId=function(){return this._id},e.prototype.getLabel=function(){return this._label},e.prototype._forceSessionUpdate=function(){this._session._signal("changeFrontMarker")},e.prototype._convertPosition=function(e){if(null===e)return null;if("number"==typeof e)return this._session.getDocument().indexToPosition(e,0);if("number"==typeof e.row&&"number"==typeof e.column)return e;throw new Error("Invalid position: "+e)},e.prototype._scheduleTooltipHide=function(){var e=this;null!==this._tooltipTimeout&&clearTimeout(this._tooltipTimeout),this._tooltipTimeout=setTimeout((function(){e._tooltipElement.style.opacity="0",e._tooltipTimeout=null}),2e3)},e}(),r=function(){function e(e){this._cursors={},this._session=e}return e.prototype.addCursor=function(e,t,i,n){if(void 0!==this._cursors[e])throw new Error("Cursor with id already defined: "+e);var r=new o(this._session,e,t,i,n);this._cursors[e]=r,this._session.addDynamicMarker(r,!0)},e.prototype.setCursor=function(e,t){this._getCursor(e).setPosition(t)},e.prototype.clearCursor=function(e){this._getCursor(e).setPosition(null)},e.prototype.removeCursor=function(e){var t=this._cursors[e];if(void 0===t)throw new Error("Cursor not found: "+e);this._session.removeMarker(t.id),delete this._cursors[e]},e.prototype.removeAll=function(){var e=this;Object.getOwnPropertyNames(this._cursors).forEach((function(t){e.removeCursor(e._cursors[t].cursorId())}))},e.prototype._getCursor=function(e){var t=this._cursors[e];if(void 0===t)throw new Error("Cursor not found: "+e);return t},e}(),s=function(){function e(){}return e.rangeToJson=function(e){return{start:{row:e.start.row,column:e.start.column},end:{row:e.end.row,column:e.end.column}}},e.jsonToRange=function(e){return new t.Range(e.start.row,e.start.column,e.end.row,e.end.column)},e.rangesToJson=function(t){return t.map((function(t){return e.rangeToJson(t)}))},e.jsonToRanges=function(t){return t.map((function(t){return e.jsonToRange(t)}))},e.toJson=function(t){return Array.isArray(t)?e.rangesToJson(t):e.rangeToJson(t)},e.fromJson=function(t){return Array.isArray(t)?e.jsonToRanges(t):e.jsonToRange(t)},e}(),a=function(){function e(e,t,i,n,o){var r=this;this._label=e,this._color=t,this._viewRows=i,this._cursorRow=n,this._editor=o,this._docLineCount=o.getSession().getLength(),this._editorListener=function(){var e=r._editor.getSession().getLength();e!==r._docLineCount&&(r._docLineCount=e,r.update())},this._editor.on("change",this._editorListener),this._scrollElement=document.createElement("div"),this._scrollElement.className="ace-radar-view-scroll-indicator",this._scrollElement.style.borderColor=this._color,this._scrollElement.style.background=this._color,this._scrollElement.title=this._label,this._scrollElement.addEventListener("click",(function(){var e=(r._viewRows.end-r._viewRows.start)/2+r._viewRows.start;r._editor.scrollToLine(e,!0,!1,(function(){}))}),!1),this._cursorElement=document.createElement("div"),this._cursorElement.className="ace-radar-view-cursor-indicator",this._cursorElement.style.background=this._color,this._cursorElement.title=this._label,this._cursorElement.addEventListener("click",(function(){r._editor.scrollToLine(r._cursorRow,!0,!1,(function(){}))}),!1),this._wrapper=document.createElement("div"),this._wrapper.className="ace-radar-view-wrapper",this._wrapper.style.display="none",this._wrapper.appendChild(this._scrollElement),this._wrapper.appendChild(this._cursorElement)}return e.prototype.element=function(){return this._wrapper},e.prototype.setCursorRow=function(e){this._cursorRow=e,this.update()},e.prototype.setViewRows=function(e){this._viewRows=e,this.update()},e.prototype.update=function(){if(l(this._viewRows)||l(this._cursorRow)){this._wrapper.style.display=null;var e=this._docLineCount-1;if(l(this._viewRows)){var t=Math.min(e,this._viewRows.start)/e*100,i=100-Math.min(e,this._viewRows.end)/e*100;this._scrollElement.style.top=t+"%",this._scrollElement.style.bottom=i+"%",this._scrollElement.style.display=null}else this._scrollElement.style.display="none";if(l(this._cursorRow)){var n=Math.min(this._cursorRow,e)/e*((this._wrapper.offsetHeight-this._cursorElement.offsetHeight)/this._wrapper.offsetHeight)*100;this._cursorElement.style.top=n+"%",this._cursorElement.style.display=null}else this._cursorElement.style.display="none"}else this._wrapper.style.display="none"},e.prototype.dispose=function(){this._wrapper.parentNode.removeChild(this._wrapper),this._editor.off("change",this._editorListener)},e}();function l(e){return null!=e}var c=function(){function e(e,t){this._container=null,this._container="string"==typeof e?document.getElementById(e):e,this._container.style.position="relative",this._views={},this._editor=t}return e.prototype.addView=function(e,t,i,n,o){var r=new a(t,i,n,o,this._editor);this._container.appendChild(r.element()),r.update(),this._views[e]=r},e.prototype.hasView=function(e){return void 0!==this._views[e]},e.prototype.setViewRows=function(e,t){this._views[e].setViewRows(t)},e.prototype.setCursorRow=function(e,t){this._views[e].setCursorRow(t)},e.prototype.clearView=function(e){var t=this._views[e];t.setCursorRow(null),t.setViewRows(null)},e.prototype.removeView=function(e){this._views[e].dispose(),delete this._views[e]},e}(),h=function(){function e(){}return e.getVisibleIndexRange=function(e){var t=e.getFirstVisibleRow(),i=e.getLastVisibleRow();return e.isRowFullyVisible(t)||t++,e.isRowFullyVisible(i)||i--,{start:e.getSession().getDocument().positionToIndex({row:t,column:0},0),end:e.getSession().getDocument().positionToIndex({row:i,column:0},0)}},e.indicesToRows=function(e,t,i){return{start:e.getSession().getDocument().indexToPosition(t,0).row,end:e.getSession().getDocument().indexToPosition(i,0).row}},e}();e.AceMultiCursorManager=r,e.AceMultiSelectionManager=n,e.AceRadarView=c,e.AceRangeUtil=s,e.AceViewportUtil=h,Object.defineProperty(e,"__esModule",{value:!0})}(l,o("85HS2")),customElements.define("lia-editor",class extends HTMLElement{_blockUpdate=!1;_blockEvents=!1;_cursors=[];_catchCursorUpdates=!1;_keyBindings={};constructor(){super(),e(r).config.set("basePath","."),this._focus=!1,this._ariaLabel="editor",this._keyBindings={"Ctrl-Enter":{bindKey:{win:"Ctrl-Enter",mac:"Command-Enter"},eventName:"editorCtrlEnter"}},this.model={value:"",theme:"dreamweaver",mode:"text",shared:null,showPrintMargin:!0,highlightActiveLine:!0,firstLineNumber:1,tabSize:4,useSoftTabs:!0,useWrapMode:!1,readOnly:!1,showCursor:!0,showGutter:!0,extensions:[],maxLines:1/0,marker:"",minLines:1,annotations:[],fontSize:"1.5rem",fontFamily:"var(--global-font-mono,)",enableKeyboardAccessibility:!0,rtl:!1,rtlText:!1};let t={error:"rgba(255,0,0,0.3)",warn:"rgba(255,255,102,0.3)",debug:"rgba(100,100,100,0.3)",info:"rgba(0,255,0,0.3)",log:"rgba(0,0,255,0.3)"};try{Object.entries(t).forEach((e=>{const[t,i]=e;h(i,t)}))}catch(e){console.warn("ace.js => ",e)}}connectedCallback(){this.setExtension(),this._editor=e(r).edit(this,{value:this.model.value,theme:"ace/theme/"+this.model.theme,mode:s(this.model.mode),showPrintMargin:this.model.showPrintMargin,highlightActiveLine:this.model.highlightActiveLine,firstLineNumber:this.model.firstLineNumber,tabSize:this.model.tabSize,useSoftTabs:this.model.useSoftTabs,readOnly:this.model.readOnly,showGutter:this.model.showGutter,minLines:this.model.minLines,maxLines:this.model.maxLines,fontSize:this.model.fontSize,fontFamily:this.model.fontFamily,enableKeyboardAccessibility:this.model.enableKeyboardAccessibility,rtl:this.model.rtl,rtlText:this.model.rtlText}),this.model.showCursor||(this._editor.renderer.$cursorLayer.element.style.display="none"),this._editor.renderer.setScrollMargin(8,8,0,0),this._editor.getSession().setUseWrapMode(this.model.useWrapMode),this._editor.setAutoScrollEditorIntoView(!0);const t=this._editor.textInput.getElement(),i=function(e,t=500){let i,n=[],o=null;function r(){(n.length>0||i)&&(e(n,i),n=[],i=void 0),o=null}return(e,s)=>{o&&window.clearTimeout(o),null!==e&&n.push(e),s&&(i=s),o=window.setTimeout(r,t)}}(((e,t)=>{e.length>0&&this.dispatchEvent(new CustomEvent("editorUpdateEvent",{detail:e})),t&&this.dispatchEvent(new CustomEvent("editorUpdateCursor",{detail:t}))}));if(t.setAttribute("role","application"),this.model.readOnly)t.setAttribute("aria-label","Code-block in "+this.model.mode+" mode");else{const e=e=>{this._blockEvents||(this.model.value=this._editor.getValue(),this.dispatchEvent(new CustomEvent("editorUpdate",{detail:this.model.value})),this.blockUpdate||i({action:e.action,index:this._editor.getSession().doc.positionToIndex(e.start,0),content:e.lines.join("\n")}))},n=()=>{if(this.catchCursorUpdates&&this._editor){const{start:e,end:t}=this._editor.getSelectionRange(),n=e.row==t.row&&e.column==t.column?[]:[e.row,e.column,t.row,t.column];this.cursorPosition=this._editor.selection.getCursor(),this.cursorPosition&&i(null,{position:this.cursorPosition,selection:n})}};this._editor.on("change",e),this._editor.session.selection.on("changeCursor",n),this.applyKeyBindings(),t.setAttribute("aria-label","Code-editor in "+this.model.mode+" mode")}let n=this;this._editor.on("focus",(function(){n._focus=!0,n.dispatchEvent(new CustomEvent("editorFocus"))})),this._editor.on("blur",(function(){n._focus=!1,n.dispatchEvent(new CustomEvent("editorFocus")),n._editor.clearSelection()})),this.setMarker(),this._focus&&this.setFocus()}disconnectedCallback(){}setOption(e,t){if(this._editor)try{this._editor.setOption(e,t)}catch(i){console.log("Problem Ace: setOption ",e,t," => ",i.toString())}}get annotations(){return this.model.annotations}set annotations(e){if(this.model.annotations!==e&&(this.model.annotations=null==e?[]:e,this._editor))try{this._editor.getSession().setAnnotations(this.model.annotations)}catch(e){console.log("Problem Ace: setAnnotations ",this.model.annotations," => ",e.toString())}}get extensions(){return this.model.extensions}set extensions(e){this.model.extensions!==e&&(this.model.extensions=e,this._editor&&this.setExtension())}setExtension(){for(const t in this.model.extensions)try{e(r).require("ace/ext/"+t)}catch(e){console.log("Problem Ace: require ",t," => ",e.toString())}}get fontSize(){return this.model.fontSize}set fontSize(e){this.model.fontSize!==e&&(this.model.fontSize=e,this.setOption("fontSize",e))}get enableKeyboardAccessibility(){return this.model.enableKeyboardAccessibility}set enableKeyboardAccessibility(e){this.model.enableKeyboardAccessibility!==e&&(this.model.enableKeyboardAccessibility=e,this.setOption("enableKeyboardAccessibility",e))}get rtl(){return this.model.rtl}set rtl(e){this.model.rtl!==e&&(this.model.rtl=e,this.setOption("rtl",e))}get rtlText(){return this.model.rtlText}set rtlText(e){this.model.rtlText!==e&&(this.model.rtlText=e,this.setOption("rtlText",e))}setMarker(){let t=e(r).require("ace/range").Range,i=this.model.marker.replace("\n","").split(";").filter((e=>""!==e));for(let e=0;e<i.length;e++){let n=i[e].trim().split(" ").map((e=>e.trim())).filter((e=>""!==e));h(n[4]),this._editor.session.addMarker(new t(parseInt(n[0]),parseInt(n[1]),parseInt(n[2]),parseInt(n[3])),c(n[4]),n[5]?n[5]:"fullLine")}}get marker(){return this.model.marker}set marker(e){this.model.marker=e}get firstLineNumber(){return this.model.firstLineNumber}set firstLineNumber(e){this.model.firstLineNumber!==e&&(this.model.firstLineNumber=e,this.setOption("firstLineNumber",e))}get highlightActiveLine(){return this.model.highlightActiveLine}set highlightActiveLine(e){this.model.highlightActiveLine!==e&&(this.model.highlightActiveLine=e,this.setOption("highlightActiveLine",e))}get maxLines(){return this.model.maxLines}set maxLines(e){e=e<0?1/0:e,this.model.maxLines!==e&&(this.model.maxLines=e,this.setOption("maxLines",e))}get minLines(){return this.model.minLines}set minLines(e){e=e<0?1:e,this.model.minLines!==e&&(this.model.minLines=e,this.setOption("minLines",e))}get mode(){return this.model.mode}set mode(e){if(this.model.mode!==e&&(this.model.mode=e,this._editor))try{this._editor.getSession().setMode(s(e))}catch(t){console.log("Problem Ace: setMode(",e,") => ",t.toString())}}get readOnly(){return this.model.readOnly}set readOnly(e){this.model.readOnly!==e&&(this.model.readOnly=e,this.setOption("readOnly",e))}get showCursor(){return this.model.showCursor}set showCursor(e){this.model.showCursor!==e&&(this.model.showCursor=e,this.setOption("showCursor",e))}get showGutter(){return this.model.showGutter}set showGutter(e){this.model.showGutter!==e&&(this.model.showGutter=e,this.setOption("showGutter",e))}get showPrintMargin(){return this.model.showPrintMargin}set showPrintMargin(e){this.model.showPrintMargin!==e&&(this.model.showPrintMargin=e,this.setOption("showPrintMargin",e))}get tabSize(){return this.model.tabSize}set tabSize(e){this.model.tabSize!==e&&(this.model.tabSize=e,this.setOption("tabSize",e))}get theme(){return this.model.theme}set theme(e){this.model.theme!==e&&""!==e&&(this.model.theme=e,this._editor&&this._editor.setTheme("ace/theme/"+e))}get useSoftTabs(){return this.model.useSoftTabs}set useSoftTabs(e){this.model.useSoftTabs!==e&&(this.model.useSoftTabs=e,this.setOption("useSoftTabs",e))}get useWrapMode(){return this.model.useWrapMode}set useWrapMode(e){this.model.useWrapMode!==e&&(this.model.useWrapMode=e,this.setOption("useWrapMode",e))}get value(){return this.model.value}async setValue(e){const t=await this.getSession();this._blockEvents=!0,this.blockUpdate=!0,this.model.value=e;const i=this._editor.getCursorPosition();t.setValue(e),this._editor.moveCursorToPosition(i),this._blockEvents=!1,this.blockUpdate=!1}set value(e){if("string"==typeof e)this.model.value!==e&&this.setValue(e);else{const[t,i]=e;this.model.value!==t&&this.setValue(t).then((()=>{this._editor.moveCursorToPosition(i)}))}}get blockUpdate(){return this._blockUpdate}set blockUpdate(e){this._blockUpdate=e}get catchCursorUpdates(){return this._catchCursorUpdates}set catchCursorUpdates(e){this._catchCursorUpdates!==e&&(this._catchCursorUpdates=e,this.setCursors())}async getSession(){if(this._editor)return Promise.resolve(this._editor.getSession());const e=this;return new Promise(((t,i)=>{let n=0;const o=setInterval((()=>{n+=100,e._editor?(clearInterval(o),t(e._editor.getSession())):n>=1e3&&(clearInterval(o),i(null))}),100)}))}async setCursors(){if(this._catchCursorUpdates){if(!this.cursorManager){const e=await this.getSession();this.cursorManager=new l.AceMultiCursorManager(e),this.selectManager=new l.AceMultiSelectionManager(e);for(let{id:e,name:t,color:i,position:n}of this._cursors)this.cursorManager.addCursor(e,t,i,n)}}else this.cursorManager&&(this.cursorManager.removeAll(),this.selectManager.removeAll(),delete this.cursorManager)}get cursors(){return this._cursors}set cursors(e){if(this.cursorManager)try{for(let t of this._cursors){let i=!0;for(let n of e)if(t.id==n.id){i=!1;break}if(i){this.cursorManager.removeCursor(t.id);try{this.selectManager.clearSelection(t.id)}catch(e){}try{this.selectManager.removeSelection(t.id)}catch(e){}}}for(let t of e){const i=this._cursors.find((e=>e.id==t.id));if(i)if(i.name!==t.name){this.cursorManager.removeCursor(t.id);try{this.selectManager.clearSelection(t.id)}catch(e){}try{this.selectManager.removeSelection(t.id)}catch(e){}this.cursorManager.addCursor(t.id,t.name,t.color,t.position),this.selectManager.addSelection(t.id,t.name,t.color,this.toRange(t.selection))}else{this.cursorManager.setCursor(t.id,t.position);try{this.selectManager.clearSelection(t.id)}catch(e){}this.selectManager.setSelection(t.id,this.toRange(t.selection))}else this.cursorManager.addCursor(t.id,t.name,t.color,t.position),this.selectManager.addSelection(t.id,t.name,t.color,this.toRange(t.selection))}}catch(e){console.warn("ace error:",e.message)}this._cursors=e}toRange(t){if(0===t.length)return[];let i=e(r).require("ace/range").Range;const[n,o,s,a]=t;return[new i(n,o,s,a)]}get focusing(){return this._focus}set focusing(e){this._focus=e,e&&this.setFocus()}set addKeyBindingProp(e){this.addKeyBinding(e.name,e.bindKey,e.eventName)}set removeKeyBindingProp(e){this.removeKeyBinding(e)}setFocus(){if(this._editor)try{this._editor.focus()}catch(e){console.log("Problem Ace: focus => ",e.toString())}}get cursorPos(){if(!this._editor)return null;try{return this._editor.getCursorPosition()}catch(e){return null}}set cursorPos(e){if(this._editor&&e){console.log("Moving cursor to:",e);try{try{this._editor.focus()}catch(e){}this._editor.moveCursorToPosition(e);try{this._editor.clearSelection()}catch(e){}}catch(e){}}}applyKeyBindings(){if(!this._editor||this.model.readOnly)return;const e=this;Object.entries(this._keyBindings).forEach((([t,i])=>{this._editor.commands.addCommand({name:t,bindKey:i.bindKey,exec:function(n){e.dispatchEvent(new CustomEvent(i.eventName));let o="";if("string"==typeof i.bindKey?o=i.bindKey:i.bindKey&&(i.bindKey.win||i.bindKey.mac)&&(o=i.bindKey.win||i.bindKey.mac||""),/Enter/i.test(o))try{"Ctrl-Enter"!==t&&n.insert("\n")}catch(e){}else if(/Up/i.test(o))try{const e=n.getCursorPosition(),t=Math.max(0,e.row-1);let i=e.column;try{const e=n.getSession().getLine(t)||"";i=Math.min(i,e.length)}catch(e){}n.moveCursorToPosition({row:t,column:i});try{n.clearSelection()}catch(e){}}catch(e){}else if(/Down/i.test(o))try{const e=n.getCursorPosition(),t=Math.max(0,n.getSession().getLength()-1),i=Math.min(t,e.row+1);let o=e.column;try{const e=n.getSession().getLine(i)||"";o=Math.min(o,e.length)}catch(e){}n.moveCursorToPosition({row:i,column:o});try{n.clearSelection()}catch(e){}}catch(e){}},readOnly:!1})}))}get keyBindings(){return{...this._keyBindings}}set keyBindings(e){this._keyBindings={...e},this._editor&&!this.model.readOnly&&(Object.keys(e).forEach((e=>{try{this._editor.commands.removeCommand(e)}catch(e){}})),this.applyKeyBindings())}addKeyBinding(e,t,i){if(this._keyBindings[e]={bindKey:t,eventName:i},this._editor&&!this.model.readOnly){const n=this;this._editor.commands.addCommand({name:e,bindKey:t,exec:function(e){n.dispatchEvent(new CustomEvent(i));let o="";if("string"==typeof t?o=t:t&&(t.win||t.mac)&&(o=t.win||t.mac||""),/Enter/i.test(o))try{e.insert("\n")}catch(e){}else if(/Up/i.test(o))try{const t=e.getCursorPosition(),i=Math.max(0,t.row-1);let n=t.column;try{const t=e.getSession().getLine(i)||"";n=Math.min(n,t.length)}catch(e){}e.moveCursorToPosition({row:i,column:n});try{e.clearSelection()}catch(e){}}catch(e){}else if(/Down/i.test(o))try{const t=e.getCursorPosition(),i=Math.max(0,e.getSession().getLength()-1),n=Math.min(i,t.row+1);let o=t.column;try{const t=e.getSession().getLine(n)||"";o=Math.min(o,t.length)}catch(e){}e.moveCursorToPosition({row:n,column:o});try{e.clearSelection()}catch(e){}}catch(e){}},readOnly:!1})}}removeKeyBinding(e){if(delete this._keyBindings[e],this._editor)try{this._editor.commands.removeCommand(e)}catch(e){}}});
6
+ */function c(e){return"string"==typeof e&&(e="ace_color_"+e.replace(/ /g,"").replace(/\./g,"").replace(/,/g,"_").replace(/\(/g,"").replace(/\)/g,"")),e}function h(e,t){if(!e)return;const i=c(t||e);if(!document.head.querySelector("style#"+i)){let t=document.createElement("style");t.id=i,t.appendChild(document.createTextNode(`.${i} {\n position:absolute;\n background:${e};\n z-index:20\n }`)),document.getElementsByTagName("head")[0].appendChild(t)}}!function(e,t){var i=function(){function e(e,t,i,n,o){this._session=e,this._label=i,this._color=n,this._ranges=o||[],this._selectionId=t,this._id=null,this._markerElement=document.createElement("div")}return e.prototype.update=function(e,t,i,n){for(var o=this;this._markerElement.hasChildNodes();)this._markerElement.removeChild(this._markerElement.lastChild);this._ranges.forEach((function(e){o._renderRange(t,i,n,e)})),this._markerElement.remove(),t.elt("remote-selection",""),(t.element.childNodes[t.i-1]||t.element.lastChild).appendChild(this._markerElement)},e.prototype.setSelection=function(e){this._ranges=null==e?[]:e instanceof Array?e:[e],this._forceSessionUpdate()},e.prototype.getLabel=function(){return this._label},e.prototype.selectionId=function(){return this._selectionId},e.prototype.markerId=function(){return this._id},e.prototype._renderLine=function(e){var t=document.createElement("div");t.className="ace-multi-selection",t.style.backgroundColor=this._color,"number"==typeof e.height&&(t.style.height=e.height+"px"),"number"==typeof e.width&&(t.style.width=e.width+"px"),"number"==typeof e.top&&(t.style.top=e.top+"px"),"number"==typeof e.left&&(t.style.left=e.left+"px"),"number"==typeof e.bottom&&(t.style.bottom=e.bottom+"px"),"number"==typeof e.right&&(t.style.right=e.right+"px"),this._markerElement.append(t)},e.prototype._renderRange=function(e,t,i,n){var o=n.toScreenRange(t),r=i.lineHeight,s=e.$getTop(o.start.row,i),a=0,l=e.$padding+o.start.column*i.characterWidth;if(o.isMultiLine()){if(this._renderLine({height:r,right:0,top:s,left:l}),s=e.$getTop(o.end.row,i),a=o.end.column*i.characterWidth,this._renderLine({height:r,width:a,top:s,left:e.$padding}),(r=(o.end.row-o.start.row-1)*i.lineHeight)<0)return;s=e.$getTop(o.start.row+1,i),this._renderLine({height:r,right:0,top:s,left:e.$padding})}else a=(n.end.column-n.start.column)*i.characterWidth,this._renderLine({height:r,width:a,top:s,left:l})},e.prototype._forceSessionUpdate=function(){this._session._signal("changeBackMarker")},e}(),n=function(){function e(e){this._selections={},this._session=e}return e.prototype.addSelection=function(e,t,n,o){if(void 0!==this._selections[e])throw new Error("Selection with id already defined: "+e);var r=new i(this._session,e,t,n,o);this._selections[e]=r,this._session.addDynamicMarker(r,!1)},e.prototype.setSelection=function(e,t){this._getSelection(e).setSelection(t)},e.prototype.clearSelection=function(e){this._getSelection(e).setSelection(null)},e.prototype.removeSelection=function(e){var t=this._selections[e];if(void 0===t)throw new Error("Selection not found: "+e);this._session.removeMarker(t.id),delete this._selections[e]},e.prototype.removeAll=function(){var e=this;Object.getOwnPropertyNames(this._selections).forEach((function(t){e.removeSelection(e._selections[t].selectionId())}))},e.prototype._getSelection=function(e){var t=this._selections[e];if(void 0===t)throw new Error("Selection not found: "+e);return t},e}(),o=function(){function e(e,t,i,n,o){this._session=e,this._label=i,this._color=n,this._position=o?this._convertPosition(o):null,this._cursorId=t,this._id=null,this._visible=!1,this._tooltipTimeout=null,this._markerElement=document.createElement("div"),this._cursorElement=document.createElement("div"),this._cursorElement.className="ace-multi-cursor",this._cursorElement.style.background=this._color,this._markerElement.append(this._cursorElement),this._tooltipElement=document.createElement("div"),this._tooltipElement.className="ace-multi-cursor-tooltip",this._tooltipElement.style.background=this._color,this._tooltipElement.style.opacity="0",this._tooltipElement.innerHTML=i,this._markerElement.append(this._tooltipElement)}return e.prototype.update=function(e,t,i,n){if(null!==this._position){var o=this._session.documentToScreenPosition(this._position.row,this._position.column),r=t.$getTop(o.row,n),s=t.$padding+o.column*n.characterWidth,a=n.lineHeight,l=r+2,c=a-3,h=s;this._cursorElement.style.height=c+"px",this._cursorElement.style.width="2px",this._cursorElement.style.top=l+"px",this._cursorElement.style.left=h+"px";var u=l-a;u<5&&(u=l+a-1);var d=h;this._tooltipElement.style.top=u-2+"px",this._tooltipElement.style.left=d-2+"px",this._markerElement.remove(),t.elt("remote-cursor",""),(t.element.childNodes[t.i-1]||t.element.lastChild).appendChild(this._markerElement)}},e.prototype.setPosition=function(e){this._position=this._convertPosition(e),this._forceSessionUpdate(),this._tooltipElement.style.opacity="1",this._scheduleTooltipHide()},e.prototype.setVisible=function(e){var t=this._visible;this._visible=e,t!==this._visible&&(this._markerElement.style.visibility=e?"visible":"hidden",this._forceSessionUpdate())},e.prototype.isVisible=function(){return this._visible},e.prototype.cursorId=function(){return this._cursorId},e.prototype.markerId=function(){return this._id},e.prototype.getLabel=function(){return this._label},e.prototype._forceSessionUpdate=function(){this._session._signal("changeFrontMarker")},e.prototype._convertPosition=function(e){if(null===e)return null;if("number"==typeof e)return this._session.getDocument().indexToPosition(e,0);if("number"==typeof e.row&&"number"==typeof e.column)return e;throw new Error("Invalid position: "+e)},e.prototype._scheduleTooltipHide=function(){var e=this;null!==this._tooltipTimeout&&clearTimeout(this._tooltipTimeout),this._tooltipTimeout=setTimeout((function(){e._tooltipElement.style.opacity="0",e._tooltipTimeout=null}),2e3)},e}(),r=function(){function e(e){this._cursors={},this._session=e}return e.prototype.addCursor=function(e,t,i,n){if(void 0!==this._cursors[e])throw new Error("Cursor with id already defined: "+e);var r=new o(this._session,e,t,i,n);this._cursors[e]=r,this._session.addDynamicMarker(r,!0)},e.prototype.setCursor=function(e,t){this._getCursor(e).setPosition(t)},e.prototype.clearCursor=function(e){this._getCursor(e).setPosition(null)},e.prototype.removeCursor=function(e){var t=this._cursors[e];if(void 0===t)throw new Error("Cursor not found: "+e);this._session.removeMarker(t.id),delete this._cursors[e]},e.prototype.removeAll=function(){var e=this;Object.getOwnPropertyNames(this._cursors).forEach((function(t){e.removeCursor(e._cursors[t].cursorId())}))},e.prototype._getCursor=function(e){var t=this._cursors[e];if(void 0===t)throw new Error("Cursor not found: "+e);return t},e}(),s=function(){function e(){}return e.rangeToJson=function(e){return{start:{row:e.start.row,column:e.start.column},end:{row:e.end.row,column:e.end.column}}},e.jsonToRange=function(e){return new t.Range(e.start.row,e.start.column,e.end.row,e.end.column)},e.rangesToJson=function(t){return t.map((function(t){return e.rangeToJson(t)}))},e.jsonToRanges=function(t){return t.map((function(t){return e.jsonToRange(t)}))},e.toJson=function(t){return Array.isArray(t)?e.rangesToJson(t):e.rangeToJson(t)},e.fromJson=function(t){return Array.isArray(t)?e.jsonToRanges(t):e.jsonToRange(t)},e}(),a=function(){function e(e,t,i,n,o){var r=this;this._label=e,this._color=t,this._viewRows=i,this._cursorRow=n,this._editor=o,this._docLineCount=o.getSession().getLength(),this._editorListener=function(){var e=r._editor.getSession().getLength();e!==r._docLineCount&&(r._docLineCount=e,r.update())},this._editor.on("change",this._editorListener),this._scrollElement=document.createElement("div"),this._scrollElement.className="ace-radar-view-scroll-indicator",this._scrollElement.style.borderColor=this._color,this._scrollElement.style.background=this._color,this._scrollElement.title=this._label,this._scrollElement.addEventListener("click",(function(){var e=(r._viewRows.end-r._viewRows.start)/2+r._viewRows.start;r._editor.scrollToLine(e,!0,!1,(function(){}))}),!1),this._cursorElement=document.createElement("div"),this._cursorElement.className="ace-radar-view-cursor-indicator",this._cursorElement.style.background=this._color,this._cursorElement.title=this._label,this._cursorElement.addEventListener("click",(function(){r._editor.scrollToLine(r._cursorRow,!0,!1,(function(){}))}),!1),this._wrapper=document.createElement("div"),this._wrapper.className="ace-radar-view-wrapper",this._wrapper.style.display="none",this._wrapper.appendChild(this._scrollElement),this._wrapper.appendChild(this._cursorElement)}return e.prototype.element=function(){return this._wrapper},e.prototype.setCursorRow=function(e){this._cursorRow=e,this.update()},e.prototype.setViewRows=function(e){this._viewRows=e,this.update()},e.prototype.update=function(){if(l(this._viewRows)||l(this._cursorRow)){this._wrapper.style.display=null;var e=this._docLineCount-1;if(l(this._viewRows)){var t=Math.min(e,this._viewRows.start)/e*100,i=100-Math.min(e,this._viewRows.end)/e*100;this._scrollElement.style.top=t+"%",this._scrollElement.style.bottom=i+"%",this._scrollElement.style.display=null}else this._scrollElement.style.display="none";if(l(this._cursorRow)){var n=Math.min(this._cursorRow,e)/e*((this._wrapper.offsetHeight-this._cursorElement.offsetHeight)/this._wrapper.offsetHeight)*100;this._cursorElement.style.top=n+"%",this._cursorElement.style.display=null}else this._cursorElement.style.display="none"}else this._wrapper.style.display="none"},e.prototype.dispose=function(){this._wrapper.parentNode.removeChild(this._wrapper),this._editor.off("change",this._editorListener)},e}();function l(e){return null!=e}var c=function(){function e(e,t){this._container=null,this._container="string"==typeof e?document.getElementById(e):e,this._container.style.position="relative",this._views={},this._editor=t}return e.prototype.addView=function(e,t,i,n,o){var r=new a(t,i,n,o,this._editor);this._container.appendChild(r.element()),r.update(),this._views[e]=r},e.prototype.hasView=function(e){return void 0!==this._views[e]},e.prototype.setViewRows=function(e,t){this._views[e].setViewRows(t)},e.prototype.setCursorRow=function(e,t){this._views[e].setCursorRow(t)},e.prototype.clearView=function(e){var t=this._views[e];t.setCursorRow(null),t.setViewRows(null)},e.prototype.removeView=function(e){this._views[e].dispose(),delete this._views[e]},e}(),h=function(){function e(){}return e.getVisibleIndexRange=function(e){var t=e.getFirstVisibleRow(),i=e.getLastVisibleRow();return e.isRowFullyVisible(t)||t++,e.isRowFullyVisible(i)||i--,{start:e.getSession().getDocument().positionToIndex({row:t,column:0},0),end:e.getSession().getDocument().positionToIndex({row:i,column:0},0)}},e.indicesToRows=function(e,t,i){return{start:e.getSession().getDocument().indexToPosition(t,0).row,end:e.getSession().getDocument().indexToPosition(i,0).row}},e}();e.AceMultiCursorManager=r,e.AceMultiSelectionManager=n,e.AceRadarView=c,e.AceRangeUtil=s,e.AceViewportUtil=h,Object.defineProperty(e,"__esModule",{value:!0})}(l,o("85HS2"));const u={enableBasicAutocompletion:"language_tools",enableLiveAutocompletion:"language_tools",enableSnippets:"language_tools",enableInlineAutocompletion:"inline_autocomplete",hardWrap:"hardwrap",spellcheck:"spellcheck",useElasticTabstops:"elastic_tabstops_lite"},d={};function p(e){const t={};for(const i of e.split(/[\s,]+/).filter(Boolean)){const[e,n]=i.split("=");try{t[e]=void 0===n||JSON.parse(n)}catch(i){t[e]=n}}return t}customElements.define("lia-editor",class extends HTMLElement{_blockUpdate=!1;_blockEvents=!1;_cursors=[];_catchCursorUpdates=!1;_keyBindings={};constructor(){super(),e(r).config.set("basePath","."),this._focus=!1,this._ariaLabel="editor",this._keyBindings={"Ctrl-Enter":{bindKey:{win:"Ctrl-Enter",mac:"Command-Enter"},eventName:"editorCtrlEnter"}},this.model={value:"",theme:"dreamweaver",mode:"text",shared:null,showPrintMargin:!0,highlightActiveLine:!0,firstLineNumber:1,tabSize:4,useSoftTabs:!0,useWrapMode:!1,readOnly:!1,showCursor:!0,showGutter:!0,maxLines:1/0,marker:"",minLines:1,annotations:[],fontSize:"1.5rem",fontFamily:"var(--global-font-mono,)",enableKeyboardAccessibility:!0,enableBasicAutocompletion:!1,enableLiveAutocompletion:!1,enableSnippets:!1,aceOptions:"",rtl:!1,rtlText:!1};let t={error:"rgba(255,0,0,0.3)",warn:"rgba(255,255,102,0.3)",debug:"rgba(100,100,100,0.3)",info:"rgba(0,255,0,0.3)",log:"rgba(0,0,255,0.3)"};try{Object.entries(t).forEach((e=>{const[t,i]=e;h(i,t)}))}catch(e){console.warn("ace.js => ",e)}}connectedCallback(){this._editor=e(r).edit(this,{value:this.model.value,theme:"ace/theme/"+this.model.theme,mode:s(this.model.mode),showPrintMargin:this.model.showPrintMargin,highlightActiveLine:this.model.highlightActiveLine,firstLineNumber:this.model.firstLineNumber,tabSize:this.model.tabSize,useSoftTabs:this.model.useSoftTabs,readOnly:this.model.readOnly,showGutter:this.model.showGutter,minLines:this.model.minLines,maxLines:this.model.maxLines,fontSize:this.model.fontSize,fontFamily:this.model.fontFamily,enableKeyboardAccessibility:this.model.enableKeyboardAccessibility,rtl:this.model.rtl,rtlText:this.model.rtlText}),this.setOptions({enableBasicAutocompletion:this.model.enableBasicAutocompletion,enableLiveAutocompletion:this.model.enableLiveAutocompletion,enableSnippets:this.model.enableSnippets,...p(this.model.aceOptions)}),this.model.showCursor||(this._editor.renderer.$cursorLayer.element.style.display="none"),this._editor.renderer.setScrollMargin(8,8,0,0),this._editor.getSession().setUseWrapMode(this.model.useWrapMode),this._editor.setAutoScrollEditorIntoView(!0);const t=this._editor.textInput.getElement(),i=function(e,t=500){let i,n=[],o=null;function r(){(n.length>0||i)&&(e(n,i),n=[],i=void 0),o=null}return(e,s)=>{o&&window.clearTimeout(o),null!==e&&n.push(e),s&&(i=s),o=window.setTimeout(r,t)}}(((e,t)=>{e.length>0&&this.dispatchEvent(new CustomEvent("editorUpdateEvent",{detail:e})),t&&this.dispatchEvent(new CustomEvent("editorUpdateCursor",{detail:t}))}));if(t.setAttribute("role","application"),this.model.readOnly)t.setAttribute("aria-label","Code-block in "+this.model.mode+" mode");else{const e=e=>{this._blockEvents||(this.model.value=this._editor.getValue(),this.dispatchEvent(new CustomEvent("editorUpdate",{detail:this.model.value})),this.blockUpdate||i({action:e.action,index:this._editor.getSession().doc.positionToIndex(e.start,0),content:e.lines.join("\n")}))},n=()=>{if(this.catchCursorUpdates&&this._editor){const{start:e,end:t}=this._editor.getSelectionRange(),n=e.row==t.row&&e.column==t.column?[]:[e.row,e.column,t.row,t.column];this.cursorPosition=this._editor.selection.getCursor(),this.cursorPosition&&i(null,{position:this.cursorPosition,selection:n})}};this._editor.on("change",e),this._editor.session.selection.on("changeCursor",n),this.applyKeyBindings(),t.setAttribute("aria-label","Code-editor in "+this.model.mode+" mode")}let n=this;this._editor.on("focus",(function(){n._focus=!0,n.dispatchEvent(new CustomEvent("editorFocus"))})),this._editor.on("blur",(function(){n._focus=!1,n.dispatchEvent(new CustomEvent("editorFocus")),n._editor.clearSelection()})),this.setMarker(),this._focus&&this.setFocus()}disconnectedCallback(){}setOption(e,t){if(this._editor)try{this._editor.setOption(e,t)}catch(i){console.log("Problem Ace: setOption ",e,t," => ",i.toString())}}get annotations(){return this.model.annotations}set annotations(e){if(this.model.annotations!==e&&(this.model.annotations=null==e?[]:e,this._editor))try{this._editor.getSession().setAnnotations(this.model.annotations)}catch(e){console.log("Problem Ace: setAnnotations ",this.model.annotations," => ",e.toString())}}get fontSize(){return this.model.fontSize}set fontSize(e){this.model.fontSize!==e&&(this.model.fontSize=e,this.setOption("fontSize",e))}get enableKeyboardAccessibility(){return this.model.enableKeyboardAccessibility}set enableKeyboardAccessibility(e){this.model.enableKeyboardAccessibility!==e&&(this.model.enableKeyboardAccessibility=e,this.setOption("enableKeyboardAccessibility",e))}get enableBasicAutocompletion(){return this.model.enableBasicAutocompletion}set enableBasicAutocompletion(e){this.model.enableBasicAutocompletion!==e&&(this.model.enableBasicAutocompletion=e,this.setOptions({enableBasicAutocompletion:e}))}get enableLiveAutocompletion(){return this.model.enableLiveAutocompletion}set enableLiveAutocompletion(e){this.model.enableLiveAutocompletion!==e&&(this.model.enableLiveAutocompletion=e,this.setOptions({enableLiveAutocompletion:e}))}get enableSnippets(){return this.model.enableSnippets}set enableSnippets(e){this.model.enableSnippets!==e&&(this.model.enableSnippets=e,this.setOptions({enableSnippets:e}))}setOptions(t){this._editor&&function(t){const i=[];for(const n in t){const o=u[n];o&&t[n]&&!d[o]&&(d[o]=new Promise((t=>e(r).config.loadModule("ace/ext/"+o,(()=>t()))))),o&&d[o]&&i.push(d[o])}return Promise.all(i).then((()=>{const e={};for(const i in t)u[i]&&!d[u[i]]||(e[i]=t[i]);return e}))}(t).then((e=>this._editor.setOptions(e)))}get aceOptions(){return this.model.aceOptions}set aceOptions(e){this.model.aceOptions!==e&&(this.model.aceOptions=e,this.setOptions(p(e)))}get rtl(){return this.model.rtl}set rtl(e){this.model.rtl!==e&&(this.model.rtl=e,this.setOption("rtl",e))}get rtlText(){return this.model.rtlText}set rtlText(e){this.model.rtlText!==e&&(this.model.rtlText=e,this.setOption("rtlText",e))}setMarker(){let t=e(r).require("ace/range").Range,i=this.model.marker.replace("\n","").split(";").filter((e=>""!==e));for(let e=0;e<i.length;e++){let n=i[e].trim().split(" ").map((e=>e.trim())).filter((e=>""!==e));h(n[4]),this._editor.session.addMarker(new t(parseInt(n[0]),parseInt(n[1]),parseInt(n[2]),parseInt(n[3])),c(n[4]),n[5]?n[5]:"fullLine")}}get marker(){return this.model.marker}set marker(e){this.model.marker=e}get firstLineNumber(){return this.model.firstLineNumber}set firstLineNumber(e){this.model.firstLineNumber!==e&&(this.model.firstLineNumber=e,this.setOption("firstLineNumber",e))}get highlightActiveLine(){return this.model.highlightActiveLine}set highlightActiveLine(e){this.model.highlightActiveLine!==e&&(this.model.highlightActiveLine=e,this.setOption("highlightActiveLine",e))}get maxLines(){return this.model.maxLines}set maxLines(e){e=e<0?1/0:e,this.model.maxLines!==e&&(this.model.maxLines=e,this.setOption("maxLines",e))}get minLines(){return this.model.minLines}set minLines(e){e=e<0?1:e,this.model.minLines!==e&&(this.model.minLines=e,this.setOption("minLines",e))}get mode(){return this.model.mode}set mode(e){if(this.model.mode!==e&&(this.model.mode=e,this._editor))try{this._editor.getSession().setMode(s(e))}catch(t){console.log("Problem Ace: setMode(",e,") => ",t.toString())}}get readOnly(){return this.model.readOnly}set readOnly(e){this.model.readOnly!==e&&(this.model.readOnly=e,this.setOption("readOnly",e))}get showCursor(){return this.model.showCursor}set showCursor(e){this.model.showCursor!==e&&(this.model.showCursor=e,this.setOption("showCursor",e))}get showGutter(){return this.model.showGutter}set showGutter(e){this.model.showGutter!==e&&(this.model.showGutter=e,this.setOption("showGutter",e))}get showPrintMargin(){return this.model.showPrintMargin}set showPrintMargin(e){this.model.showPrintMargin!==e&&(this.model.showPrintMargin=e,this.setOption("showPrintMargin",e))}get tabSize(){return this.model.tabSize}set tabSize(e){this.model.tabSize!==e&&(this.model.tabSize=e,this.setOption("tabSize",e))}get theme(){return this.model.theme}set theme(e){this.model.theme!==e&&""!==e&&(this.model.theme=e,this._editor&&this._editor.setTheme("ace/theme/"+e))}get useSoftTabs(){return this.model.useSoftTabs}set useSoftTabs(e){this.model.useSoftTabs!==e&&(this.model.useSoftTabs=e,this.setOption("useSoftTabs",e))}get useWrapMode(){return this.model.useWrapMode}set useWrapMode(e){this.model.useWrapMode!==e&&(this.model.useWrapMode=e,this.setOption("useWrapMode",e))}get value(){return this.model.value}async setValue(e){const t=await this.getSession();this._blockEvents=!0,this.blockUpdate=!0,this.model.value=e;const i=this._editor.getCursorPosition();t.setValue(e),this._editor.moveCursorToPosition(i),this._blockEvents=!1,this.blockUpdate=!1}set value(e){if("string"==typeof e)this.model.value!==e&&this.setValue(e);else{const[t,i]=e;this.model.value!==t&&this.setValue(t).then((()=>{this._editor.moveCursorToPosition(i)}))}}get blockUpdate(){return this._blockUpdate}set blockUpdate(e){this._blockUpdate=e}get catchCursorUpdates(){return this._catchCursorUpdates}set catchCursorUpdates(e){this._catchCursorUpdates!==e&&(this._catchCursorUpdates=e,this.setCursors())}async getSession(){if(this._editor)return Promise.resolve(this._editor.getSession());const e=this;return new Promise(((t,i)=>{let n=0;const o=setInterval((()=>{n+=100,e._editor?(clearInterval(o),t(e._editor.getSession())):n>=1e3&&(clearInterval(o),i(null))}),100)}))}async setCursors(){if(this._catchCursorUpdates){if(!this.cursorManager){const e=await this.getSession();this.cursorManager=new l.AceMultiCursorManager(e),this.selectManager=new l.AceMultiSelectionManager(e);for(let{id:e,name:t,color:i,position:n}of this._cursors)this.cursorManager.addCursor(e,t,i,n)}}else this.cursorManager&&(this.cursorManager.removeAll(),this.selectManager.removeAll(),delete this.cursorManager)}get cursors(){return this._cursors}set cursors(e){if(this.cursorManager)try{for(let t of this._cursors){let i=!0;for(let n of e)if(t.id==n.id){i=!1;break}if(i){this.cursorManager.removeCursor(t.id);try{this.selectManager.clearSelection(t.id)}catch(e){}try{this.selectManager.removeSelection(t.id)}catch(e){}}}for(let t of e){const i=this._cursors.find((e=>e.id==t.id));if(i)if(i.name!==t.name){this.cursorManager.removeCursor(t.id);try{this.selectManager.clearSelection(t.id)}catch(e){}try{this.selectManager.removeSelection(t.id)}catch(e){}this.cursorManager.addCursor(t.id,t.name,t.color,t.position),this.selectManager.addSelection(t.id,t.name,t.color,this.toRange(t.selection))}else{this.cursorManager.setCursor(t.id,t.position);try{this.selectManager.clearSelection(t.id)}catch(e){}this.selectManager.setSelection(t.id,this.toRange(t.selection))}else this.cursorManager.addCursor(t.id,t.name,t.color,t.position),this.selectManager.addSelection(t.id,t.name,t.color,this.toRange(t.selection))}}catch(e){console.warn("ace error:",e.message)}this._cursors=e}toRange(t){if(0===t.length)return[];let i=e(r).require("ace/range").Range;const[n,o,s,a]=t;return[new i(n,o,s,a)]}get focusing(){return this._focus}set focusing(e){this._focus=e,e&&this.setFocus()}set addKeyBindingProp(e){this.addKeyBinding(e.name,e.bindKey,e.eventName)}set removeKeyBindingProp(e){this.removeKeyBinding(e)}setFocus(){if(this._editor)try{this._editor.focus()}catch(e){console.log("Problem Ace: focus => ",e.toString())}}get cursorPos(){if(!this._editor)return null;try{return this._editor.getCursorPosition()}catch(e){return null}}set cursorPos(e){if(this._editor&&e){console.log("Moving cursor to:",e);try{try{this._editor.focus()}catch(e){}this._editor.moveCursorToPosition(e);try{this._editor.clearSelection()}catch(e){}}catch(e){}}}applyKeyBindings(){if(!this._editor||this.model.readOnly)return;const e=this;Object.entries(this._keyBindings).forEach((([t,i])=>{this._editor.commands.addCommand({name:t,bindKey:i.bindKey,exec:function(n){e.dispatchEvent(new CustomEvent(i.eventName));let o="";if("string"==typeof i.bindKey?o=i.bindKey:i.bindKey&&(i.bindKey.win||i.bindKey.mac)&&(o=i.bindKey.win||i.bindKey.mac||""),/Enter/i.test(o))try{"Ctrl-Enter"!==t&&n.insert("\n")}catch(e){}else if(/Up/i.test(o))try{const e=n.getCursorPosition(),t=Math.max(0,e.row-1);let i=e.column;try{const e=n.getSession().getLine(t)||"";i=Math.min(i,e.length)}catch(e){}n.moveCursorToPosition({row:t,column:i});try{n.clearSelection()}catch(e){}}catch(e){}else if(/Down/i.test(o))try{const e=n.getCursorPosition(),t=Math.max(0,n.getSession().getLength()-1),i=Math.min(t,e.row+1);let o=e.column;try{const e=n.getSession().getLine(i)||"";o=Math.min(o,e.length)}catch(e){}n.moveCursorToPosition({row:i,column:o});try{n.clearSelection()}catch(e){}}catch(e){}},readOnly:!1})}))}get keyBindings(){return{...this._keyBindings}}set keyBindings(e){this._keyBindings={...e},this._editor&&!this.model.readOnly&&(Object.keys(e).forEach((e=>{try{this._editor.commands.removeCommand(e)}catch(e){}})),this.applyKeyBindings())}addKeyBinding(e,t,i){if(this._keyBindings[e]={bindKey:t,eventName:i},this._editor&&!this.model.readOnly){const n=this;this._editor.commands.addCommand({name:e,bindKey:t,exec:function(e){n.dispatchEvent(new CustomEvent(i));let o="";if("string"==typeof t?o=t:t&&(t.win||t.mac)&&(o=t.win||t.mac||""),/Enter/i.test(o))try{e.insert("\n")}catch(e){}else if(/Up/i.test(o))try{const t=e.getCursorPosition(),i=Math.max(0,t.row-1);let n=t.column;try{const t=e.getSession().getLine(i)||"";n=Math.min(n,t.length)}catch(e){}e.moveCursorToPosition({row:i,column:n});try{e.clearSelection()}catch(e){}}catch(e){}else if(/Down/i.test(o))try{const t=e.getCursorPosition(),i=Math.max(0,e.getSession().getLength()-1),n=Math.min(i,t.row+1);let o=t.column;try{const t=e.getSession().getLine(n)||"";o=Math.min(o,t.length)}catch(e){}e.moveCursorToPosition({row:n,column:o});try{e.clearSelection()}catch(e){}}catch(e){}},readOnly:!1})}}removeKeyBinding(e){if(delete this._keyBindings[e],this._editor)try{this._editor.commands.removeCommand(e)}catch(e){}}});