[{"data":1,"prerenderedAt":2165},["ShallowReactive",2],{"navigation_docs":3,"-splice-editor-web-component":420,"-splice-editor-web-component-surround":2160},[4,26,201,312,317,335],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":25},"Getting Started","i-lucide:rocket","\u002Fgetting-started","01.getting-started",[10,14],{"title":11,"path":12,"stem":13,"icon":6},"Introduction","\u002Fgetting-started\u002Fintroduction","01.getting-started\u002F01.introduction",{"title":15,"icon":16,"path":17,"stem":18,"children":19,"page":25},"AI","i-lucide:bot","\u002Fgetting-started\u002Fai","01.getting-started\u002F02.ai",[20],{"title":21,"path":22,"stem":23,"icon":24},"LLMs Integration","\u002Fgetting-started\u002Fai\u002Fllms-txt","01.getting-started\u002F02.ai\u002F01.llms-txt","i-lucide:folder-code",false,{"title":27,"icon":28,"path":29,"stem":30,"children":31,"page":25},"Video Player","i-lucide:play-circle","\u002Fvideo-player","02.video-player",[32,50,76,117,191],{"title":5,"icon":6,"path":33,"stem":34,"children":35,"page":25},"\u002Fvideo-player\u002Fgetting-started","02.video-player\u002F01.getting-started",[36,40,45],{"title":11,"path":37,"stem":38,"icon":39},"\u002Fvideo-player\u002Fgetting-started\u002Fintroduction","02.video-player\u002F01.getting-started\u002F01.introduction","i-lucide:book-open",{"title":41,"path":42,"stem":43,"icon":44},"Installation","\u002Fvideo-player\u002Fgetting-started\u002Finstallation","02.video-player\u002F01.getting-started\u002F02.installation","i-lucide:download",{"title":46,"path":47,"stem":48,"icon":49},"Try your own","\u002Fvideo-player\u002Fgetting-started\u002Ftry-your-own","02.video-player\u002F01.getting-started\u002F03.try-your-own","i-lucide:flask-conical",{"title":51,"icon":52,"path":53,"stem":54,"children":55,"page":25},"Core Concepts","i-lucide:lightbulb","\u002Fvideo-player\u002Fcore-concepts","02.video-player\u002F02.core-concepts",[56,61,66,71],{"title":57,"path":58,"stem":59,"icon":60},"Components","\u002Fvideo-player\u002Fcore-concepts\u002Fcomponents","02.video-player\u002F02.core-concepts\u002F01.components","i-lucide:component",{"title":62,"path":63,"stem":64,"icon":65},"Platforms","\u002Fvideo-player\u002Fcore-concepts\u002Fplatforms","02.video-player\u002F02.core-concepts\u002F02.platforms","i-lucide:globe",{"title":67,"path":68,"stem":69,"icon":70},"Web components","\u002Fvideo-player\u002Fcore-concepts\u002Fweb-components","02.video-player\u002F02.core-concepts\u002F03.web-components","i-lucide:box",{"title":72,"path":73,"stem":74,"icon":75},"Autoplay & audio","\u002Fvideo-player\u002Fcore-concepts\u002Fautoplay-and-audio","02.video-player\u002F02.core-concepts\u002F04.autoplay-and-audio","i-lucide:volume-2",{"title":77,"icon":78,"defaultOpen":25,"path":79,"stem":80,"children":81},"API Reference","i-lucide:book-marked","\u002Fvideo-player\u002Fapi","02.video-player\u002F03.api\u002Findex",[82,85,90,102,107,112],{"title":83,"path":79,"stem":80,"icon":84},"Overview","i-lucide:list",{"title":86,"path":87,"stem":88,"icon":89},"Props","\u002Fvideo-player\u002Fapi\u002Fprops","02.video-player\u002F03.api\u002F01.props","i-lucide:sliders-horizontal",{"title":91,"path":92,"stem":93,"children":94,"icon":96},"Methods & state","\u002Fvideo-player\u002Fapi\u002Fmethods","02.video-player\u002F03.api\u002F02.methods\u002Findex",[95,97],{"title":91,"path":92,"stem":93,"icon":96},"i-lucide:square-function",{"title":98,"path":99,"stem":100,"icon":101},"Wrapping a player","\u002Fvideo-player\u002Fapi\u002Fmethods\u002Fwrapping","02.video-player\u002F03.api\u002F02.methods\u002F01.wrapping","i-lucide:package",{"title":103,"path":104,"stem":105,"icon":106},"Events","\u002Fvideo-player\u002Fapi\u002Fevents","02.video-player\u002F03.api\u002F03.events","i-lucide:radio-tower",{"title":108,"path":109,"stem":110,"icon":111},"Headless controls","\u002Fvideo-player\u002Fapi\u002Fcontrols","02.video-player\u002F03.api\u002F04.controls","i-lucide:toggle-left",{"title":113,"path":114,"stem":115,"icon":116},"Built-in behaviour","\u002Fvideo-player\u002Fapi\u002Fbehaviour","02.video-player\u002F03.api\u002F05.behaviour","i-lucide:settings-2",{"title":118,"icon":119,"defaultOpen":25,"path":120,"stem":121,"children":122,"page":25},"Features","i-lucide:layers","\u002Fvideo-player\u002Ffeatures","02.video-player\u002F04.features",[123,128,133,138,143,148,164,181,186],{"title":124,"path":125,"stem":126,"icon":127},"Scrolling & viewport","\u002Fvideo-player\u002Ffeatures\u002Fviewport","02.video-player\u002F04.features\u002F01.viewport","i-lucide:scroll",{"title":129,"path":130,"stem":131,"icon":132},"Stage & playlists","\u002Fvideo-player\u002Ffeatures\u002Fstage-and-playlists","02.video-player\u002F04.features\u002F02.stage-and-playlists","i-lucide:layout-template",{"title":134,"path":135,"stem":136,"icon":137},"Transcripts","\u002Fvideo-player\u002Ffeatures\u002Ftranscripts","02.video-player\u002F04.features\u002F03.transcripts","i-lucide:scroll-text",{"title":139,"path":140,"stem":141,"icon":142},"Captions","\u002Fvideo-player\u002Ffeatures\u002Fcaptions","02.video-player\u002F04.features\u002F04.captions","i-lucide:subtitles",{"title":144,"path":145,"stem":146,"icon":147},"Quality","\u002Fvideo-player\u002Ffeatures\u002Fquality","02.video-player\u002F04.features\u002F05.quality","i-lucide:gauge",{"title":149,"icon":150,"defaultOpen":25,"path":151,"stem":152,"children":153},"Ads & monetisation","i-lucide:megaphone","\u002Fvideo-player\u002Ffeatures\u002Fads","02.video-player\u002F04.features\u002F06.ads\u002Findex",[154,155,160],{"title":149,"path":151,"stem":152,"icon":150},{"title":156,"path":157,"stem":158,"icon":159},"Header bidding","\u002Fvideo-player\u002Ffeatures\u002Fads\u002Fheader-bidding","02.video-player\u002F04.features\u002F06.ads\u002F01.header-bidding","i-lucide:gavel",{"title":161,"path":162,"stem":163,"icon":116},"Ad behaviour","\u002Fvideo-player\u002Ffeatures\u002Fads\u002Fbehaviour","02.video-player\u002F04.features\u002F06.ads\u002F02.behaviour",{"title":165,"icon":166,"defaultOpen":25,"path":167,"stem":168,"children":169},"Extensibility","i-lucide:puzzle","\u002Fvideo-player\u002Ffeatures\u002Fextensibility","02.video-player\u002F04.features\u002F07.extensibility\u002Findex",[170,171,176],{"title":165,"path":167,"stem":168,"icon":166},{"title":172,"path":173,"stem":174,"icon":175},"Icons","\u002Fvideo-player\u002Ffeatures\u002Fextensibility\u002Ficons","02.video-player\u002F04.features\u002F07.extensibility\u002F01.icons","i-lucide:image",{"title":177,"path":178,"stem":179,"icon":180},"Theming","\u002Fvideo-player\u002Ffeatures\u002Fextensibility\u002Ftheming","02.video-player\u002F04.features\u002F07.extensibility\u002F02.theming","i-lucide:palette",{"title":182,"path":183,"stem":184,"icon":185},"Deep links","\u002Fvideo-player\u002Ffeatures\u002Fdeep-links","02.video-player\u002F04.features\u002F08.deep-links","i-lucide:link",{"title":187,"path":188,"stem":189,"icon":190},"Clip ranges","\u002Fvideo-player\u002Ffeatures\u002Fclip-range","02.video-player\u002F04.features\u002F09.clip-range","i-lucide:brackets",{"title":192,"icon":49,"defaultOpen":25,"path":193,"stem":194,"children":195,"page":25},"Examples","\u002Fvideo-player\u002Fexamples","02.video-player\u002F05.examples",[196],{"title":197,"path":198,"stem":199,"icon":200},"Shorts-style feed","\u002Fvideo-player\u002Fexamples\u002Fshorts-feed","02.video-player\u002F05.examples\u002F01.shorts-feed","i-lucide:smartphone",{"title":202,"icon":203,"path":204,"stem":205,"children":206,"page":25},"Sigil","i-lucide:shapes","\u002Fsigil","03.sigil",[207,217,240,270,290],{"title":5,"icon":6,"path":208,"stem":209,"children":210,"page":25},"\u002Fsigil\u002Fgetting-started","03.sigil\u002F01.getting-started",[211,214],{"title":11,"path":212,"stem":213,"icon":39},"\u002Fsigil\u002Fgetting-started\u002Fintroduction","03.sigil\u002F01.getting-started\u002F01.introduction",{"title":41,"path":215,"stem":216,"icon":44},"\u002Fsigil\u002Fgetting-started\u002Finstallation","03.sigil\u002F01.getting-started\u002F02.installation",{"title":51,"icon":52,"path":218,"stem":219,"children":220,"page":25},"\u002Fsigil\u002Fcore-concepts","03.sigil\u002F02.core-concepts",[221,226,231,235],{"title":222,"path":223,"stem":224,"icon":225},"Resolution","\u002Fsigil\u002Fcore-concepts\u002Fresolution","03.sigil\u002F02.core-concepts\u002F01.resolution","i-lucide:route",{"title":227,"path":228,"stem":229,"icon":230},"Entries","\u002Fsigil\u002Fcore-concepts\u002Fentries","03.sigil\u002F02.core-concepts\u002F02.entries","i-lucide:package-open",{"title":232,"path":233,"stem":234,"icon":70},"The element","\u002Fsigil\u002Fcore-concepts\u002Fweb-component","03.sigil\u002F02.core-concepts\u002F03.web-component",{"title":236,"path":237,"stem":238,"icon":239},"Switching sets","\u002Fsigil\u002Fcore-concepts\u002Fswitching","03.sigil\u002F02.core-concepts\u002F04.switching","i-lucide:repeat",{"title":241,"icon":242,"defaultOpen":25,"path":243,"stem":244,"children":245},"Sources","i-lucide:library","\u002Fsigil\u002Fsources","03.sigil\u002F03.sources\u002Findex",[246,247,252,256,261,266],{"title":83,"path":243,"stem":244,"icon":84},{"title":248,"path":249,"stem":250,"icon":251},"Overrides","\u002Fsigil\u002Fsources\u002Foverrides","03.sigil\u002F03.sources\u002F01.overrides","i-lucide:pin",{"title":253,"path":254,"stem":255,"icon":175},"SVG libraries","\u002Fsigil\u002Fsources\u002Fsvg","03.sigil\u002F03.sources\u002F02.svg",{"title":257,"path":258,"stem":259,"icon":260},"Icon fonts","\u002Fsigil\u002Fsources\u002Ffonts","03.sigil\u002F03.sources\u002F03.fonts","i-lucide:type",{"title":262,"path":263,"stem":264,"icon":265},"From a JSON file","\u002Fsigil\u002Fsources\u002Fjson","03.sigil\u002F03.sources\u002F04.json","i-lucide:braces",{"title":267,"path":268,"stem":269,"icon":166},"Your own source","\u002Fsigil\u002Fsources\u002Fcustom","03.sigil\u002F03.sources\u002F05.custom",{"title":271,"icon":272,"defaultOpen":25,"collapsible":273,"path":274,"stem":275,"children":276,"page":25},"Integrations","i-lucide:plug",true,"\u002Fsigil\u002Fintegrations","03.sigil\u002F04.integrations",[277,281,285],{"title":278,"path":279,"stem":280,"icon":60},"Vue","\u002Fsigil\u002Fintegrations\u002Fvue","03.sigil\u002F04.integrations\u002F01.vue",{"title":282,"path":283,"stem":284,"icon":119},"Other frameworks","\u002Fsigil\u002Fintegrations\u002Fother-frameworks","03.sigil\u002F04.integrations\u002F02.other-frameworks",{"title":286,"path":287,"stem":288,"icon":289},"Third-party scripts","\u002Fsigil\u002Fintegrations\u002Fthird-party-scripts","03.sigil\u002F04.integrations\u002F03.third-party-scripts","i-lucide:git-fork",{"title":77,"icon":78,"defaultOpen":25,"path":291,"stem":292,"children":293},"\u002Fsigil\u002Fapi","03.sigil\u002F05.api\u002Findex",[294,295,300,303,308],{"title":83,"path":291,"stem":292,"icon":84},{"title":296,"path":297,"stem":298,"icon":299},"Registry","\u002Fsigil\u002Fapi\u002Fregistry","03.sigil\u002F05.api\u002F01.registry","i-lucide:database",{"title":241,"path":301,"stem":302,"icon":242},"\u002Fsigil\u002Fapi\u002Fsources","03.sigil\u002F05.api\u002F02.sources",{"title":304,"path":305,"stem":306,"icon":307},"Renderers","\u002Fsigil\u002Fapi\u002Frenderers","03.sigil\u002F05.api\u002F03.renderers","i-lucide:monitor",{"title":309,"path":310,"stem":311,"icon":265},"Types","\u002Fsigil\u002Fapi\u002Ftypes","03.sigil\u002F05.api\u002F04.types",{"title":313,"path":314,"stem":315,"icon":316},"Contributors","\u002Fcontributors","04.contributors","i-lucide:users",{"title":318,"icon":319,"path":320,"stem":321,"children":322,"page":25},"Ship Kit","i-lucide:terminal","\u002Fshipkit","04.shipkit",[323,326,330],{"title":11,"path":324,"stem":325,"icon":101},"\u002Fshipkit\u002Fintroduction","04.shipkit\u002F01.introduction",{"title":327,"path":328,"stem":329,"icon":319},"CLI","\u002Fshipkit\u002Fcli","04.shipkit\u002F02.cli",{"title":331,"path":332,"stem":333,"icon":334},"Vite Configs","\u002Fshipkit\u002Fvite-configs","04.shipkit\u002F03.vite-configs","i-lucide:code",{"title":336,"icon":337,"path":338,"stem":339,"children":340,"page":25},"Splice","i-lucide:scissors","\u002Fsplice","05.splice",[341,352,389,406],{"title":5,"icon":6,"path":342,"stem":343,"children":344,"page":25},"\u002Fsplice\u002Fgetting-started","05.splice\u002F01.getting-started",[345,348],{"title":11,"path":346,"stem":347,"icon":39},"\u002Fsplice\u002Fgetting-started\u002Fintroduction","05.splice\u002F01.getting-started\u002F01.introduction",{"title":349,"path":350,"stem":351,"icon":44},"Getting started","\u002Fsplice\u002Fgetting-started\u002Finstallation","05.splice\u002F01.getting-started\u002F02.installation",{"title":353,"icon":354,"path":355,"stem":356,"children":357,"page":25},"Making clips","i-lucide:film","\u002Fsplice\u002Fmaking-clips","05.splice\u002F02.making-clips",[358,362,367,371,375,380,385],{"title":359,"path":360,"stem":361,"icon":337},"createSplice","\u002Fsplice\u002Fmaking-clips\u002Fcreate-splice","05.splice\u002F02.making-clips\u002F01.create-splice",{"title":363,"path":364,"stem":365,"icon":366},"Crop","\u002Fsplice\u002Fmaking-clips\u002Fcrop","05.splice\u002F02.making-clips\u002F02.crop","i-lucide:crop",{"title":139,"path":368,"stem":369,"icon":370},"\u002Fsplice\u002Fmaking-clips\u002Fcaptions","05.splice\u002F02.making-clips\u002F03.captions","i-lucide:captions",{"title":372,"path":373,"stem":374,"icon":185},"Origin and links","\u002Fsplice\u002Fmaking-clips\u002Forigin-and-links","05.splice\u002F02.making-clips\u002F04.origin-and-links",{"title":376,"path":377,"stem":378,"icon":379},"End card, stamp and watermark","\u002Fsplice\u002Fmaking-clips\u002Fend-card","05.splice\u002F02.making-clips\u002F05.end-card","i-lucide:badge-check",{"title":381,"path":382,"stem":383,"icon":384},"Thumbnails","\u002Fsplice\u002Fmaking-clips\u002Fthumbnails","05.splice\u002F02.making-clips\u002F06.thumbnails","i-lucide:gallery-horizontal",{"title":386,"path":387,"stem":388,"icon":166},"With another player","\u002Fsplice\u002Fmaking-clips\u002Fanother-player","05.splice\u002F02.making-clips\u002F07.another-player",{"title":390,"icon":391,"path":392,"stem":393,"children":394,"page":25},"The editor","i-lucide:mouse-pointer-click","\u002Fsplice\u002Feditor","05.splice\u002F03.editor",[395,398,402],{"title":390,"path":396,"stem":397,"icon":391},"\u002Fsplice\u002Feditor\u002Feditor","05.splice\u002F03.editor\u002F01.editor",{"title":399,"path":400,"stem":401,"icon":28},"Clip this in video-player","\u002Fsplice\u002Feditor\u002Fvideo-player","05.splice\u002F03.editor\u002F02.video-player",{"title":403,"path":404,"stem":405,"icon":60},"Web component","\u002Fsplice\u002Feditor\u002Fweb-component","05.splice\u002F03.editor\u002F03.web-component",{"title":407,"icon":78,"defaultOpen":25,"path":408,"stem":409,"children":410,"page":25},"Reference","\u002Fsplice\u002Freference","05.splice\u002F04.reference",[411,416],{"title":412,"path":413,"stem":414,"icon":415},"Browser support","\u002Fsplice\u002Freference\u002Fbrowser-support","05.splice\u002F04.reference\u002F01.browser-support","i-lucide:monitor-check",{"title":417,"path":418,"stem":419,"icon":334},"API","\u002Fsplice\u002Freference\u002Fapi","05.splice\u002F04.reference\u002F02.api",{"id":421,"title":403,"body":422,"description":2153,"extension":2154,"links":2155,"meta":2156,"navigation":2157,"path":404,"seo":2158,"stem":405,"__hash__":2159},"docs\u002F05.splice\u002F03.editor\u002F03.web-component.md",{"type":423,"value":424,"toc":2147},"minimark",[425,449,1153,1158,1164,1507,1536,1540,1617,1703,1748,1754,1763,1807,1811,1817,1821,1825,1836,1887,1904,1989,2002,2118,2143],[426,427,428,432,433,436,437,440,441,448],"p",{},[429,430,431],"code",{},"@munsonlabs\u002Fsplice\u002Felement"," is ",[429,434,435],{},"SpliceEditor"," as a custom element, ",[429,438,439],{},"\u003Cml-splice-editor>",", for pages without Vue. It pairs with ",[442,443,444,445],"a",{"href":68},"video-player's ",[429,446,447],{},"\u003Cml-video-player>",". Importing it registers the tag and puts the editor's stylesheet on the page; the core and Mediabunny still load only when an editor opens.",[450,451,456],"pre",{"className":452,"code":453,"language":454,"meta":455,"style":455},"language-html shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u003Cml-video-player id=\"interview\" src=\"\u002Fvideo\u002Finterview.m3u8\" deep-link=\"interview\">\u003C\u002Fml-video-player>\n\n\u003Cml-splice-editor for=\"interview\" src=\"\u002Fvideo\u002Finterview.m3u8\" caption-position=\"bottom\">\u003C\u002Fml-splice-editor>\n\n\u003Cscript type=\"module\">\n  import '@munsonlabs\u002Fvideo-player\u002Felement'\n  import '@munsonlabs\u002Fsplice\u002Felement'\n  import { canSplice } from '@munsonlabs\u002Fsplice'\n\n  const player = document.getElementById('interview')\n  const editor = document.querySelector('ml-splice-editor')\n\n  editor.origin = {\n    url: location.href,\n    title: 'The interview',\n    publisher: 'Example News',\n    player: 'interview',\n  }\n  editor.stamp = { logo: '\u002Flogo.svg' }\n  editor.endCard = {\n    logo: '\u002Flogo.svg',\n    displayUrl: 'example.com\u002Finterview',\n  }\n\n  const check = await canSplice(player.getAttribute('src'), { crop: { aspect: '9:16' } })\n  if (check.ok) {\n    player.action = {\n      icon: '\u003Csvg viewBox=\"0 0 24 24\">…\u003C\u002Fsvg>', \u002F\u002F your icon, as SVG markup\n      label: 'Clip this',\n      onClick: () => editor.show(),\n    }\n  }\n\n  editor.addEventListener('splice-export', ({ detail }) => {\n    console.log(detail.link)\n  })\n\u003C\u002Fscript>\n","html","",[429,457,458,518,524,571,576,598,614,625,650,655,689,716,721,737,757,774,791,807,813,842,856,872,889,894,899,964,981,996,1017,1034,1061,1067,1072,1077,1112,1135,1143],{"__ignoreMap":455},[459,460,463,467,471,475,478,481,485,487,490,492,494,497,499,502,504,506,508,510,513,515],"span",{"class":461,"line":462},"line",1,[459,464,466],{"class":465},"sMK4o","\u003C",[459,468,470],{"class":469},"swJcz","ml-video-player",[459,472,474],{"class":473},"spNyl"," id",[459,476,477],{"class":465},"=",[459,479,480],{"class":465},"\"",[459,482,484],{"class":483},"sfazB","interview",[459,486,480],{"class":465},[459,488,489],{"class":473}," src",[459,491,477],{"class":465},[459,493,480],{"class":465},[459,495,496],{"class":483},"\u002Fvideo\u002Finterview.m3u8",[459,498,480],{"class":465},[459,500,501],{"class":473}," deep-link",[459,503,477],{"class":465},[459,505,480],{"class":465},[459,507,484],{"class":483},[459,509,480],{"class":465},[459,511,512],{"class":465},">\u003C\u002F",[459,514,470],{"class":469},[459,516,517],{"class":465},">\n",[459,519,521],{"class":461,"line":520},2,[459,522,523],{"emptyLinePlaceholder":273},"\n",[459,525,527,529,532,535,537,539,541,543,545,547,549,551,553,556,558,560,563,565,567,569],{"class":461,"line":526},3,[459,528,466],{"class":465},[459,530,531],{"class":469},"ml-splice-editor",[459,533,534],{"class":473}," for",[459,536,477],{"class":465},[459,538,480],{"class":465},[459,540,484],{"class":483},[459,542,480],{"class":465},[459,544,489],{"class":473},[459,546,477],{"class":465},[459,548,480],{"class":465},[459,550,496],{"class":483},[459,552,480],{"class":465},[459,554,555],{"class":473}," caption-position",[459,557,477],{"class":465},[459,559,480],{"class":465},[459,561,562],{"class":483},"bottom",[459,564,480],{"class":465},[459,566,512],{"class":465},[459,568,531],{"class":469},[459,570,517],{"class":465},[459,572,574],{"class":461,"line":573},4,[459,575,523],{"emptyLinePlaceholder":273},[459,577,579,581,584,587,589,591,594,596],{"class":461,"line":578},5,[459,580,466],{"class":465},[459,582,583],{"class":469},"script",[459,585,586],{"class":473}," type",[459,588,477],{"class":465},[459,590,480],{"class":465},[459,592,593],{"class":483},"module",[459,595,480],{"class":465},[459,597,517],{"class":465},[459,599,601,605,608,611],{"class":461,"line":600},6,[459,602,604],{"class":603},"s7zQu","  import",[459,606,607],{"class":465}," '",[459,609,610],{"class":483},"@munsonlabs\u002Fvideo-player\u002Felement",[459,612,613],{"class":465},"'\n",[459,615,617,619,621,623],{"class":461,"line":616},7,[459,618,604],{"class":603},[459,620,607],{"class":465},[459,622,431],{"class":483},[459,624,613],{"class":465},[459,626,628,630,633,637,640,643,645,648],{"class":461,"line":627},8,[459,629,604],{"class":603},[459,631,632],{"class":465}," {",[459,634,636],{"class":635},"sTEyZ"," canSplice",[459,638,639],{"class":465}," }",[459,641,642],{"class":603}," from",[459,644,607],{"class":465},[459,646,647],{"class":483},"@munsonlabs\u002Fsplice",[459,649,613],{"class":465},[459,651,653],{"class":461,"line":652},9,[459,654,523],{"emptyLinePlaceholder":273},[459,656,658,661,664,666,669,672,676,679,682,684,686],{"class":461,"line":657},10,[459,659,660],{"class":473},"  const",[459,662,663],{"class":635}," player ",[459,665,477],{"class":465},[459,667,668],{"class":635}," document",[459,670,671],{"class":465},".",[459,673,675],{"class":674},"s2Zo4","getElementById",[459,677,678],{"class":635},"(",[459,680,681],{"class":465},"'",[459,683,484],{"class":483},[459,685,681],{"class":465},[459,687,688],{"class":635},")\n",[459,690,692,694,697,699,701,703,706,708,710,712,714],{"class":461,"line":691},11,[459,693,660],{"class":473},[459,695,696],{"class":635}," editor ",[459,698,477],{"class":465},[459,700,668],{"class":635},[459,702,671],{"class":465},[459,704,705],{"class":674},"querySelector",[459,707,678],{"class":635},[459,709,681],{"class":465},[459,711,531],{"class":483},[459,713,681],{"class":465},[459,715,688],{"class":635},[459,717,719],{"class":461,"line":718},12,[459,720,523],{"emptyLinePlaceholder":273},[459,722,724,727,729,732,734],{"class":461,"line":723},13,[459,725,726],{"class":635},"  editor",[459,728,671],{"class":465},[459,730,731],{"class":635},"origin ",[459,733,477],{"class":465},[459,735,736],{"class":465}," {\n",[459,738,740,743,746,749,751,754],{"class":461,"line":739},14,[459,741,742],{"class":469},"    url",[459,744,745],{"class":465},":",[459,747,748],{"class":635}," location",[459,750,671],{"class":465},[459,752,753],{"class":635},"href",[459,755,756],{"class":465},",\n",[459,758,760,763,765,767,770,772],{"class":461,"line":759},15,[459,761,762],{"class":469},"    title",[459,764,745],{"class":465},[459,766,607],{"class":465},[459,768,769],{"class":483},"The interview",[459,771,681],{"class":465},[459,773,756],{"class":465},[459,775,777,780,782,784,787,789],{"class":461,"line":776},16,[459,778,779],{"class":469},"    publisher",[459,781,745],{"class":465},[459,783,607],{"class":465},[459,785,786],{"class":483},"Example News",[459,788,681],{"class":465},[459,790,756],{"class":465},[459,792,794,797,799,801,803,805],{"class":461,"line":793},17,[459,795,796],{"class":469},"    player",[459,798,745],{"class":465},[459,800,607],{"class":465},[459,802,484],{"class":483},[459,804,681],{"class":465},[459,806,756],{"class":465},[459,808,810],{"class":461,"line":809},18,[459,811,812],{"class":465},"  }\n",[459,814,816,818,820,823,825,827,830,832,834,837,839],{"class":461,"line":815},19,[459,817,726],{"class":635},[459,819,671],{"class":465},[459,821,822],{"class":635},"stamp ",[459,824,477],{"class":465},[459,826,632],{"class":465},[459,828,829],{"class":469}," logo",[459,831,745],{"class":465},[459,833,607],{"class":465},[459,835,836],{"class":483},"\u002Flogo.svg",[459,838,681],{"class":465},[459,840,841],{"class":465}," }\n",[459,843,845,847,849,852,854],{"class":461,"line":844},20,[459,846,726],{"class":635},[459,848,671],{"class":465},[459,850,851],{"class":635},"endCard ",[459,853,477],{"class":465},[459,855,736],{"class":465},[459,857,859,862,864,866,868,870],{"class":461,"line":858},21,[459,860,861],{"class":469},"    logo",[459,863,745],{"class":465},[459,865,607],{"class":465},[459,867,836],{"class":483},[459,869,681],{"class":465},[459,871,756],{"class":465},[459,873,875,878,880,882,885,887],{"class":461,"line":874},22,[459,876,877],{"class":469},"    displayUrl",[459,879,745],{"class":465},[459,881,607],{"class":465},[459,883,884],{"class":483},"example.com\u002Finterview",[459,886,681],{"class":465},[459,888,756],{"class":465},[459,890,892],{"class":461,"line":891},23,[459,893,812],{"class":465},[459,895,897],{"class":461,"line":896},24,[459,898,523],{"emptyLinePlaceholder":273},[459,900,902,904,907,909,912,914,917,919,922,924,926,929,931,934,937,939,942,944,946,949,951,953,956,958,960,962],{"class":461,"line":901},25,[459,903,660],{"class":473},[459,905,906],{"class":635}," check ",[459,908,477],{"class":465},[459,910,911],{"class":603}," await",[459,913,636],{"class":674},[459,915,916],{"class":635},"(player",[459,918,671],{"class":465},[459,920,921],{"class":674},"getAttribute",[459,923,678],{"class":635},[459,925,681],{"class":465},[459,927,928],{"class":483},"src",[459,930,681],{"class":465},[459,932,933],{"class":635},")",[459,935,936],{"class":465},",",[459,938,632],{"class":465},[459,940,941],{"class":469}," crop",[459,943,745],{"class":465},[459,945,632],{"class":465},[459,947,948],{"class":469}," aspect",[459,950,745],{"class":465},[459,952,607],{"class":465},[459,954,955],{"class":483},"9:16",[459,957,681],{"class":465},[459,959,639],{"class":465},[459,961,639],{"class":465},[459,963,688],{"class":635},[459,965,967,970,973,975,978],{"class":461,"line":966},26,[459,968,969],{"class":603},"  if",[459,971,972],{"class":635}," (check",[459,974,671],{"class":465},[459,976,977],{"class":635},"ok) ",[459,979,980],{"class":465},"{\n",[459,982,984,986,988,991,994],{"class":461,"line":983},27,[459,985,796],{"class":635},[459,987,671],{"class":465},[459,989,990],{"class":635},"action",[459,992,993],{"class":465}," =",[459,995,736],{"class":465},[459,997,999,1002,1004,1006,1009,1011,1013],{"class":461,"line":998},28,[459,1000,1001],{"class":469},"      icon",[459,1003,745],{"class":465},[459,1005,607],{"class":465},[459,1007,1008],{"class":483},"\u003Csvg viewBox=\"0 0 24 24\">…\u003C\u002Fsvg>",[459,1010,681],{"class":465},[459,1012,936],{"class":465},[459,1014,1016],{"class":1015},"sHwdD"," \u002F\u002F your icon, as SVG markup\n",[459,1018,1020,1023,1025,1027,1030,1032],{"class":461,"line":1019},29,[459,1021,1022],{"class":469},"      label",[459,1024,745],{"class":465},[459,1026,607],{"class":465},[459,1028,1029],{"class":483},"Clip this",[459,1031,681],{"class":465},[459,1033,756],{"class":465},[459,1035,1037,1040,1042,1045,1048,1051,1053,1056,1059],{"class":461,"line":1036},30,[459,1038,1039],{"class":674},"      onClick",[459,1041,745],{"class":465},[459,1043,1044],{"class":465}," ()",[459,1046,1047],{"class":473}," =>",[459,1049,1050],{"class":635}," editor",[459,1052,671],{"class":465},[459,1054,1055],{"class":674},"show",[459,1057,1058],{"class":469},"()",[459,1060,756],{"class":465},[459,1062,1064],{"class":461,"line":1063},31,[459,1065,1066],{"class":465},"    }\n",[459,1068,1070],{"class":461,"line":1069},32,[459,1071,812],{"class":465},[459,1073,1075],{"class":461,"line":1074},33,[459,1076,523],{"emptyLinePlaceholder":273},[459,1078,1080,1082,1084,1087,1089,1091,1094,1096,1098,1101,1105,1108,1110],{"class":461,"line":1079},34,[459,1081,726],{"class":635},[459,1083,671],{"class":465},[459,1085,1086],{"class":674},"addEventListener",[459,1088,678],{"class":635},[459,1090,681],{"class":465},[459,1092,1093],{"class":483},"splice-export",[459,1095,681],{"class":465},[459,1097,936],{"class":465},[459,1099,1100],{"class":465}," ({",[459,1102,1104],{"class":1103},"sHdIc"," detail",[459,1106,1107],{"class":465}," })",[459,1109,1047],{"class":473},[459,1111,736],{"class":465},[459,1113,1115,1118,1120,1123,1125,1128,1130,1133],{"class":461,"line":1114},35,[459,1116,1117],{"class":635},"    console",[459,1119,671],{"class":465},[459,1121,1122],{"class":674},"log",[459,1124,678],{"class":469},[459,1126,1127],{"class":635},"detail",[459,1129,671],{"class":465},[459,1131,1132],{"class":635},"link",[459,1134,688],{"class":469},[459,1136,1138,1141],{"class":461,"line":1137},36,[459,1139,1140],{"class":465},"  }",[459,1142,688],{"class":635},[459,1144,1146,1149,1151],{"class":461,"line":1145},37,[459,1147,1148],{"class":465},"\u003C\u002F",[459,1150,583],{"class":469},[459,1152,517],{"class":465},[1154,1155,1157],"h2",{"id":1156},"branding-and-links","Branding and links",[426,1159,1160,1161,1163],{},"The branding and the link back are the same options ",[429,1162,359],{}," takes, set on the element as properties. Set them before the editor opens; each export uses them as they are then.",[450,1165,1169],{"className":1166,"code":1167,"language":1168,"meta":455,"style":455},"language-js shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","const editor = document.querySelector('ml-splice-editor')\n\n\u002F\u002F Where the clip came from. Its metadata carries the title, the publisher and a #ml-t= link back.\n\u002F\u002F `player` is the \u003Cml-video-player>'s deep-link id, so the link comes back to that player.\neditor.origin = {\n  url: location.href,\n  title: 'The interview',\n  publisher: 'Example News',\n  player: 'interview',\n}\n\n\u002F\u002F The logo in a corner of every frame, and a toggle for it in the panel.\neditor.stamp = {\n  logo: '\u002Flogo.svg',\n  position: 'top-right',\n}\n\n\u002F\u002F The end card after the clip, headed by the logo and pointing at the article.\neditor.endCard = {\n  logo: '\u002Flogo.svg',\n  displayUrl: 'example.com\u002Finterview',\n  cta: 'Watch the full interview at',\n}\n\n\u002F\u002F A band of text across every frame.\neditor.watermark = { text: 'example.com' }\n\n\u002F\u002F The panel's words, in your language.\neditor.labels = {\n  title: 'Make a clip',\n  export: 'Export',\n}\n","js",[429,1170,1171,1196,1200,1205,1210,1223,1238,1253,1268,1283,1288,1292,1297,1309,1324,1340,1344,1348,1353,1365,1379,1394,1410,1414,1418,1423,1450,1454,1459,1472,1487,1503],{"__ignoreMap":455},[459,1172,1173,1176,1178,1180,1182,1184,1186,1188,1190,1192,1194],{"class":461,"line":462},[459,1174,1175],{"class":473},"const",[459,1177,696],{"class":635},[459,1179,477],{"class":465},[459,1181,668],{"class":635},[459,1183,671],{"class":465},[459,1185,705],{"class":674},[459,1187,678],{"class":635},[459,1189,681],{"class":465},[459,1191,531],{"class":483},[459,1193,681],{"class":465},[459,1195,688],{"class":635},[459,1197,1198],{"class":461,"line":520},[459,1199,523],{"emptyLinePlaceholder":273},[459,1201,1202],{"class":461,"line":526},[459,1203,1204],{"class":1015},"\u002F\u002F Where the clip came from. Its metadata carries the title, the publisher and a #ml-t= link back.\n",[459,1206,1207],{"class":461,"line":573},[459,1208,1209],{"class":1015},"\u002F\u002F `player` is the \u003Cml-video-player>'s deep-link id, so the link comes back to that player.\n",[459,1211,1212,1215,1217,1219,1221],{"class":461,"line":578},[459,1213,1214],{"class":635},"editor",[459,1216,671],{"class":465},[459,1218,731],{"class":635},[459,1220,477],{"class":465},[459,1222,736],{"class":465},[459,1224,1225,1228,1230,1232,1234,1236],{"class":461,"line":600},[459,1226,1227],{"class":469},"  url",[459,1229,745],{"class":465},[459,1231,748],{"class":635},[459,1233,671],{"class":465},[459,1235,753],{"class":635},[459,1237,756],{"class":465},[459,1239,1240,1243,1245,1247,1249,1251],{"class":461,"line":616},[459,1241,1242],{"class":469},"  title",[459,1244,745],{"class":465},[459,1246,607],{"class":465},[459,1248,769],{"class":483},[459,1250,681],{"class":465},[459,1252,756],{"class":465},[459,1254,1255,1258,1260,1262,1264,1266],{"class":461,"line":627},[459,1256,1257],{"class":469},"  publisher",[459,1259,745],{"class":465},[459,1261,607],{"class":465},[459,1263,786],{"class":483},[459,1265,681],{"class":465},[459,1267,756],{"class":465},[459,1269,1270,1273,1275,1277,1279,1281],{"class":461,"line":652},[459,1271,1272],{"class":469},"  player",[459,1274,745],{"class":465},[459,1276,607],{"class":465},[459,1278,484],{"class":483},[459,1280,681],{"class":465},[459,1282,756],{"class":465},[459,1284,1285],{"class":461,"line":657},[459,1286,1287],{"class":465},"}\n",[459,1289,1290],{"class":461,"line":691},[459,1291,523],{"emptyLinePlaceholder":273},[459,1293,1294],{"class":461,"line":718},[459,1295,1296],{"class":1015},"\u002F\u002F The logo in a corner of every frame, and a toggle for it in the panel.\n",[459,1298,1299,1301,1303,1305,1307],{"class":461,"line":723},[459,1300,1214],{"class":635},[459,1302,671],{"class":465},[459,1304,822],{"class":635},[459,1306,477],{"class":465},[459,1308,736],{"class":465},[459,1310,1311,1314,1316,1318,1320,1322],{"class":461,"line":739},[459,1312,1313],{"class":469},"  logo",[459,1315,745],{"class":465},[459,1317,607],{"class":465},[459,1319,836],{"class":483},[459,1321,681],{"class":465},[459,1323,756],{"class":465},[459,1325,1326,1329,1331,1333,1336,1338],{"class":461,"line":759},[459,1327,1328],{"class":469},"  position",[459,1330,745],{"class":465},[459,1332,607],{"class":465},[459,1334,1335],{"class":483},"top-right",[459,1337,681],{"class":465},[459,1339,756],{"class":465},[459,1341,1342],{"class":461,"line":776},[459,1343,1287],{"class":465},[459,1345,1346],{"class":461,"line":793},[459,1347,523],{"emptyLinePlaceholder":273},[459,1349,1350],{"class":461,"line":809},[459,1351,1352],{"class":1015},"\u002F\u002F The end card after the clip, headed by the logo and pointing at the article.\n",[459,1354,1355,1357,1359,1361,1363],{"class":461,"line":815},[459,1356,1214],{"class":635},[459,1358,671],{"class":465},[459,1360,851],{"class":635},[459,1362,477],{"class":465},[459,1364,736],{"class":465},[459,1366,1367,1369,1371,1373,1375,1377],{"class":461,"line":844},[459,1368,1313],{"class":469},[459,1370,745],{"class":465},[459,1372,607],{"class":465},[459,1374,836],{"class":483},[459,1376,681],{"class":465},[459,1378,756],{"class":465},[459,1380,1381,1384,1386,1388,1390,1392],{"class":461,"line":858},[459,1382,1383],{"class":469},"  displayUrl",[459,1385,745],{"class":465},[459,1387,607],{"class":465},[459,1389,884],{"class":483},[459,1391,681],{"class":465},[459,1393,756],{"class":465},[459,1395,1396,1399,1401,1403,1406,1408],{"class":461,"line":874},[459,1397,1398],{"class":469},"  cta",[459,1400,745],{"class":465},[459,1402,607],{"class":465},[459,1404,1405],{"class":483},"Watch the full interview at",[459,1407,681],{"class":465},[459,1409,756],{"class":465},[459,1411,1412],{"class":461,"line":891},[459,1413,1287],{"class":465},[459,1415,1416],{"class":461,"line":896},[459,1417,523],{"emptyLinePlaceholder":273},[459,1419,1420],{"class":461,"line":901},[459,1421,1422],{"class":1015},"\u002F\u002F A band of text across every frame.\n",[459,1424,1425,1427,1429,1432,1434,1436,1439,1441,1443,1446,1448],{"class":461,"line":966},[459,1426,1214],{"class":635},[459,1428,671],{"class":465},[459,1430,1431],{"class":635},"watermark ",[459,1433,477],{"class":465},[459,1435,632],{"class":465},[459,1437,1438],{"class":469}," text",[459,1440,745],{"class":465},[459,1442,607],{"class":465},[459,1444,1445],{"class":483},"example.com",[459,1447,681],{"class":465},[459,1449,841],{"class":465},[459,1451,1452],{"class":461,"line":983},[459,1453,523],{"emptyLinePlaceholder":273},[459,1455,1456],{"class":461,"line":998},[459,1457,1458],{"class":1015},"\u002F\u002F The panel's words, in your language.\n",[459,1460,1461,1463,1465,1468,1470],{"class":461,"line":1019},[459,1462,1214],{"class":635},[459,1464,671],{"class":465},[459,1466,1467],{"class":635},"labels ",[459,1469,477],{"class":465},[459,1471,736],{"class":465},[459,1473,1474,1476,1478,1480,1483,1485],{"class":461,"line":1036},[459,1475,1242],{"class":469},[459,1477,745],{"class":465},[459,1479,607],{"class":465},[459,1481,1482],{"class":483},"Make a clip",[459,1484,681],{"class":465},[459,1486,756],{"class":465},[459,1488,1489,1492,1494,1496,1499,1501],{"class":461,"line":1063},[459,1490,1491],{"class":469},"  export",[459,1493,745],{"class":465},[459,1495,607],{"class":465},[459,1497,1498],{"class":483},"Export",[459,1500,681],{"class":465},[459,1502,756],{"class":465},[459,1504,1505],{"class":461,"line":1069},[459,1506,1287],{"class":465},[426,1508,1509,1512,1513,1516,1517,1520,1521,1524,1525,1528,1529,1532,1533,671],{},[429,1510,1511],{},"editor.endCard = false"," leaves the end card out, and its toggle with it. Without a ",[429,1514,1515],{},"stamp"," there's no logo toggle. Logos on another origin need CORS headers; one that can't be loaded is left out and reported as a non-fatal ",[429,1518,1519],{},"splice-error",". For the link to open at the moment, the player needs ",[429,1522,1523],{},"deep-link"," on with the id ",[429,1526,1527],{},"origin.player"," names. The options themselves are covered in ",[442,1530,1531],{"href":377},"end card, stamp and watermark"," and ",[442,1534,1535],{"href":373},"origin and links",[1154,1537,1539],{"id":1538},"attributes-properties-and-events","Attributes, properties and events",[426,1541,1542,1545,1546,1548,1549,1551,1552,1551,1554,1551,1557,1551,1560,1551,1563,1551,1566,1551,1569,1551,1572,1551,1575,1532,1578,1581,1582,1551,1585,1551,1588,1551,1590,1551,1593,1551,1596,1551,1599,1551,1602,1551,1605,1608,1609,1612,1613,1616],{},[429,1543,1544],{},"for"," names the ",[429,1547,447],{}," by id; the editor waits for the tag to be defined if it isn't yet. Attributes carry strings and numbers: ",[429,1550,1544],{},", ",[429,1553,928],{},[429,1555,1556],{},"open",[429,1558,1559],{},"aspect",[429,1561,1562],{},"caption-position",[429,1564,1565],{},"clip-length",[429,1567,1568],{},"shortest-clip",[429,1570,1571],{},"longest-clip",[429,1573,1574],{},"timeline-span",[429,1576,1577],{},"height",[429,1579,1580],{},"share-caption",". Objects are set as properties: ",[429,1583,1584],{},"origin",[429,1586,1587],{},"endCard",[429,1589,1515],{},[429,1591,1592],{},"watermark",[429,1594,1595],{},"captionStyle",[429,1597,1598],{},"aspects",[429,1600,1601],{},"labels",[429,1603,1604],{},"player",[429,1606,1607],{},"source"," for a ",[429,1610,1611],{},"File",", and ",[429,1614,1615],{},"shareCaption"," as a function.",[1618,1619,1620,1637],"table",{},[1621,1622,1623],"thead",{},[1624,1625,1626,1630,1634],"tr",{},[1627,1628,1629],"th",{},"Event",[1627,1631,1632],{},[429,1633,1127],{},[1627,1635,1636],{},"When",[1638,1639,1640,1654,1672,1686],"tbody",{},[1624,1641,1642,1648,1651],{},[1643,1644,1645],"td",{},[429,1646,1647],{},"splice-open",[1643,1649,1650],{},"-",[1643,1652,1653],{},"Opened",[1624,1655,1656,1661,1663],{},[1643,1657,1658],{},[429,1659,1660],{},"splice-close",[1643,1662,1650],{},[1643,1664,1665,1666,1669,1670],{},"Closed, from its button, ",[429,1667,1668],{},"close()"," or removing ",[429,1671,1556],{},[1624,1673,1674,1678,1683],{},[1643,1675,1676],{},[429,1677,1093],{},[1643,1679,1680],{},[429,1681,1682],{},"{ blob, start, end, link }",[1643,1684,1685],{},"A clip was made",[1624,1687,1688,1692,1697],{},[1643,1689,1690],{},[429,1691,1519],{},[1643,1693,1694],{},[429,1695,1696],{},"{ message, fatal }",[1643,1698,1699,1702],{},[429,1700,1701],{},"fatal"," when nothing could be made; otherwise something left out",[426,1704,1705,1706,1708,1709,1551,1712,1551,1715,1551,1718,1551,1721,1724,1725,1728,1729,1732,1733,1551,1736,1551,1738,1551,1741,1744,1745,671],{},"They bubble. ",[429,1707,1556],{}," is reflected as an attribute, and the state (",[429,1710,1711],{},"closed",[429,1713,1714],{},"loading",[429,1716,1717],{},"editing",[429,1719,1720],{},"blocked",[429,1722,1723],{},"exporting"," or ",[429,1726,1727],{},"done",") is on ",[429,1730,1731],{},"data-state",". The element has ",[429,1734,1735],{},"show()",[429,1737,1668],{},[429,1739,1740],{},"export()",[429,1742,1743],{},"cancel()"," and a read-only ",[429,1746,1747],{},"state",[426,1749,1750,1751,1753],{},"Unlike the Vue component, the element can't find a player it's nested in without ",[429,1752,1544],{},": Vue's provide\u002Finject doesn't cross from one custom element's app into another's.",[426,1755,1756,1757,1760,1761,671],{},"To pick your own tag, load the element with ",[429,1758,1759],{},"?defer"," and register it yourself. The flag is read from the file's own URL, so it works when the element is loaded by URL (from a CDN or self-hosted); a bundled import always registers ",[429,1762,531],{},[450,1764,1768],{"className":1765,"code":1766,"language":1767,"meta":455,"style":455},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import { defineSpliceEditor } from 'https:\u002F\u002Fesm.sh\u002F@munsonlabs\u002Fsplice\u002Felement?defer'\ndefineSpliceEditor('my-clip-editor')\n","ts",[429,1769,1770,1791],{"__ignoreMap":455},[459,1771,1772,1775,1777,1780,1782,1784,1786,1789],{"class":461,"line":462},[459,1773,1774],{"class":603},"import",[459,1776,632],{"class":465},[459,1778,1779],{"class":635}," defineSpliceEditor",[459,1781,639],{"class":465},[459,1783,642],{"class":603},[459,1785,607],{"class":465},[459,1787,1788],{"class":483},"https:\u002F\u002Fesm.sh\u002F@munsonlabs\u002Fsplice\u002Felement?defer",[459,1790,613],{"class":465},[459,1792,1793,1796,1798,1800,1803,1805],{"class":461,"line":520},[459,1794,1795],{"class":674},"defineSpliceEditor",[459,1797,678],{"class":635},[459,1799,681],{"class":465},[459,1801,1802],{"class":483},"my-clip-editor",[459,1804,681],{"class":465},[459,1806,688],{"class":635},[1154,1808,1810],{"id":1809},"one-copy-of-vue","One copy of Vue",[426,1812,1813,1814,1816],{},"The editor reads the player's state reactively, so the editor and ",[429,1815,447],{}," must share one copy of Vue. Both builds keep Vue (and the editor, the player) as external imports for exactly this. With a bundler, that's automatic.",[1154,1818,1820],{"id":1819},"without-a-build-step","Without a build step",[1822,1823,1824],"warning",{},"Splice isn't on npm yet, and esm.sh serves npm packages, so the URLs below work once it's published.",[426,1826,1827,1831,1832,1835],{},[1828,1829,1830],"strong",{},"The core needs nothing."," esm.sh rewrites splice's bare ",[429,1833,1834],{},"mediabunny"," import to its own URL, so no import map is needed:",[450,1837,1839],{"className":452,"code":1838,"language":454,"meta":455,"style":455},"\u003Cscript type=\"module\">\n  import { createSplice } from 'https:\u002F\u002Fesm.sh\u002F@munsonlabs\u002Fsplice'\n\u003C\u002Fscript>\n",[429,1840,1841,1859,1879],{"__ignoreMap":455},[459,1842,1843,1845,1847,1849,1851,1853,1855,1857],{"class":461,"line":462},[459,1844,466],{"class":465},[459,1846,583],{"class":469},[459,1848,586],{"class":473},[459,1850,477],{"class":465},[459,1852,480],{"class":465},[459,1854,593],{"class":483},[459,1856,480],{"class":465},[459,1858,517],{"class":465},[459,1860,1861,1863,1865,1868,1870,1872,1874,1877],{"class":461,"line":520},[459,1862,604],{"class":603},[459,1864,632],{"class":465},[459,1866,1867],{"class":635}," createSplice",[459,1869,639],{"class":465},[459,1871,642],{"class":603},[459,1873,607],{"class":465},[459,1875,1876],{"class":483},"https:\u002F\u002Fesm.sh\u002F@munsonlabs\u002Fsplice",[459,1878,613],{"class":465},[459,1880,1881,1883,1885],{"class":461,"line":526},[459,1882,1148],{"class":465},[459,1884,583],{"class":469},[459,1886,517],{"class":465},[426,1888,1889,1892,1893,1532,1896,1899,1900,745],{},[1828,1890,1891],{},"The element from esm.sh"," works the same way as video-player's: esm.sh rewrites ",[429,1894,1895],{},"vue",[429,1897,1898],{},"@munsonlabs\u002Fvideo-player"," to its own URLs, and with both packages from esm.sh they resolve to the same Vue. Vue's devtools flag has to be set first, in its own non-module script, for the reason ",[442,1901,1903],{"href":1902},"\u002Fvideo-player\u002Fcore-concepts\u002Fweb-components#loading-without-a-build-step","video-player's docs give",[450,1905,1907],{"className":452,"code":1906,"language":454,"meta":455,"style":455},"\u003Cscript>\n  globalThis.__VUE_PROD_DEVTOOLS__ = false\n\u003C\u002Fscript>\n\u003Cscript type=\"module\">\n  import 'https:\u002F\u002Fesm.sh\u002F@munsonlabs\u002Fvideo-player\u002Felement'\n  import 'https:\u002F\u002Fesm.sh\u002F@munsonlabs\u002Fsplice\u002Felement'\n\u003C\u002Fscript>\n",[429,1908,1909,1917,1933,1941,1959,1970,1981],{"__ignoreMap":455},[459,1910,1911,1913,1915],{"class":461,"line":462},[459,1912,466],{"class":465},[459,1914,583],{"class":469},[459,1916,517],{"class":465},[459,1918,1919,1922,1924,1927,1929],{"class":461,"line":520},[459,1920,1921],{"class":635},"  globalThis",[459,1923,671],{"class":465},[459,1925,1926],{"class":635},"__VUE_PROD_DEVTOOLS__ ",[459,1928,477],{"class":465},[459,1930,1932],{"class":1931},"sfNiH"," false\n",[459,1934,1935,1937,1939],{"class":461,"line":526},[459,1936,1148],{"class":465},[459,1938,583],{"class":469},[459,1940,517],{"class":465},[459,1942,1943,1945,1947,1949,1951,1953,1955,1957],{"class":461,"line":573},[459,1944,466],{"class":465},[459,1946,583],{"class":469},[459,1948,586],{"class":473},[459,1950,477],{"class":465},[459,1952,480],{"class":465},[459,1954,593],{"class":483},[459,1956,480],{"class":465},[459,1958,517],{"class":465},[459,1960,1961,1963,1965,1968],{"class":461,"line":578},[459,1962,604],{"class":603},[459,1964,607],{"class":465},[459,1966,1967],{"class":483},"https:\u002F\u002Fesm.sh\u002F@munsonlabs\u002Fvideo-player\u002Felement",[459,1969,613],{"class":465},[459,1971,1972,1974,1976,1979],{"class":461,"line":600},[459,1973,604],{"class":603},[459,1975,607],{"class":465},[459,1977,1978],{"class":483},"https:\u002F\u002Fesm.sh\u002F@munsonlabs\u002Fsplice\u002Felement",[459,1980,613],{"class":465},[459,1982,1983,1985,1987],{"class":461,"line":616},[459,1984,1148],{"class":465},[459,1986,583],{"class":469},[459,1988,517],{"class":465},[426,1990,1991,1994,1995,1998,1999,2001],{},[1828,1992,1993],{},"To be sure of one Vue",", or to use one already on the page, opt both packages out of esm.sh's rewriting with ",[429,1996,1997],{},"?external=vue"," and map ",[429,2000,1895],{}," yourself:",[450,2003,2005],{"className":452,"code":2004,"language":454,"meta":455,"style":455},"\u003Cscript type=\"importmap\">\n  {\n    \"imports\": {\n      \"vue\": \"https:\u002F\u002Funpkg.com\u002Fvue@3\u002Fdist\u002Fvue.runtime.esm-browser.prod.js\",\n      \"@munsonlabs\u002Fvideo-player\": \"https:\u002F\u002Fesm.sh\u002F@munsonlabs\u002Fvideo-player?external=vue\",\n      \"@munsonlabs\u002Fvideo-player\u002Felement\": \"https:\u002F\u002Fesm.sh\u002F@munsonlabs\u002Fvideo-player\u002Felement?external=vue\",\n      \"@munsonlabs\u002Fsplice\u002Felement\": \"https:\u002F\u002Fesm.sh\u002F@munsonlabs\u002Fsplice\u002Felement?external=vue,@munsonlabs\u002Fvideo-player\"\n    }\n  }\n\u003C\u002Fscript>\n\u003Cscript type=\"module\">\n  import '@munsonlabs\u002Fvideo-player\u002Felement'\n  import '@munsonlabs\u002Fsplice\u002Felement'\n\u003C\u002Fscript>\n",[429,2006,2007,2026,2031,2036,2041,2046,2051,2056,2060,2064,2072,2090,2100,2110],{"__ignoreMap":455},[459,2008,2009,2011,2013,2015,2017,2019,2022,2024],{"class":461,"line":462},[459,2010,466],{"class":465},[459,2012,583],{"class":469},[459,2014,586],{"class":473},[459,2016,477],{"class":465},[459,2018,480],{"class":465},[459,2020,2021],{"class":483},"importmap",[459,2023,480],{"class":465},[459,2025,517],{"class":465},[459,2027,2028],{"class":461,"line":520},[459,2029,2030],{"class":635},"  {\n",[459,2032,2033],{"class":461,"line":526},[459,2034,2035],{"class":635},"    \"imports\": {\n",[459,2037,2038],{"class":461,"line":573},[459,2039,2040],{"class":635},"      \"vue\": \"https:\u002F\u002Funpkg.com\u002Fvue@3\u002Fdist\u002Fvue.runtime.esm-browser.prod.js\",\n",[459,2042,2043],{"class":461,"line":578},[459,2044,2045],{"class":635},"      \"@munsonlabs\u002Fvideo-player\": \"https:\u002F\u002Fesm.sh\u002F@munsonlabs\u002Fvideo-player?external=vue\",\n",[459,2047,2048],{"class":461,"line":600},[459,2049,2050],{"class":635},"      \"@munsonlabs\u002Fvideo-player\u002Felement\": \"https:\u002F\u002Fesm.sh\u002F@munsonlabs\u002Fvideo-player\u002Felement?external=vue\",\n",[459,2052,2053],{"class":461,"line":616},[459,2054,2055],{"class":635},"      \"@munsonlabs\u002Fsplice\u002Felement\": \"https:\u002F\u002Fesm.sh\u002F@munsonlabs\u002Fsplice\u002Felement?external=vue,@munsonlabs\u002Fvideo-player\"\n",[459,2057,2058],{"class":461,"line":627},[459,2059,1066],{"class":635},[459,2061,2062],{"class":461,"line":652},[459,2063,812],{"class":635},[459,2065,2066,2068,2070],{"class":461,"line":657},[459,2067,1148],{"class":465},[459,2069,583],{"class":469},[459,2071,517],{"class":465},[459,2073,2074,2076,2078,2080,2082,2084,2086,2088],{"class":461,"line":691},[459,2075,466],{"class":465},[459,2077,583],{"class":469},[459,2079,586],{"class":473},[459,2081,477],{"class":465},[459,2083,480],{"class":465},[459,2085,593],{"class":483},[459,2087,480],{"class":465},[459,2089,517],{"class":465},[459,2091,2092,2094,2096,2098],{"class":461,"line":718},[459,2093,604],{"class":603},[459,2095,607],{"class":465},[459,2097,610],{"class":483},[459,2099,613],{"class":465},[459,2101,2102,2104,2106,2108],{"class":461,"line":723},[459,2103,604],{"class":603},[459,2105,607],{"class":465},[459,2107,431],{"class":483},[459,2109,613],{"class":465},[459,2111,2112,2114,2116],{"class":461,"line":739},[459,2113,1148],{"class":465},[459,2115,583],{"class":469},[459,2117,517],{"class":465},[426,2119,2120,2121,2123,2124,2127,2128,1551,2130,1532,2132,2134,2135,2138,2139,2142],{},"The editor's bundle imports ",[429,2122,1898],{}," for the player's headless controls, which is why it's mapped too. ",[1828,2125,2126],{},"Self-hosting"," the built files serves them with every bare specifier intact, so ",[429,2129,1895],{},[429,2131,1898],{},[429,2133,1834],{}," all need import map entries. The core's chunk is a relative ",[429,2136,2137],{},"import()",", so deploy ",[429,2140,2141],{},"dist\u002Felements\u002Fchunks\u002F"," next to the bundle.",[2144,2145,2146],"style",{},"html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .swJcz, html code.shiki .swJcz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .s7zQu, html code.shiki .s7zQu{--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}html pre.shiki code .sHwdD, html code.shiki .sHwdD{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic}html pre.shiki code .sHdIc, html code.shiki .sHdIc{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#EEFFFF;--shiki-default-font-style:italic;--shiki-dark:#BABED8;--shiki-dark-font-style:italic}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .sfNiH, html code.shiki .sfNiH{--shiki-light:#FF5370;--shiki-default:#FF9CAC;--shiki-dark:#FF9CAC}",{"title":455,"searchDepth":520,"depth":520,"links":2148},[2149,2150,2151,2152],{"id":1156,"depth":520,"text":1157},{"id":1538,"depth":520,"text":1539},{"id":1809,"depth":520,"text":1810},{"id":1819,"depth":520,"text":1820},"\u003Cml-splice-editor>, the editor as a custom element, and loading it without a build step.","md",null,{},{"icon":60},{"title":403,"description":2153},"WWJ1tK3NQpLLrxJGD3fwRK9LwtQQ8-AQ3Ie9Lmr9NQ4",[2161,2163],{"title":399,"path":400,"stem":401,"description":2162,"icon":28,"children":-1},"A scissors button in the player that opens the editor, and links back to the moment.",{"title":412,"path":413,"stem":414,"description":2164,"icon":415,"children":-1},"What Chromium, WebKit and Firefox can encode, and the engine quirks splice works around.",1794851087202]