PageSourceSearch

https://www.tafensw.edu.au/_nuxt/D398w-LK.js

js tafensw.edu.au collected 2026-09-24 08:37:06 UTC 4,774 bytes, 1 lines download raw bytes

1import{f as w,i as u,b4 as x,o as p,n as v,x as _,p as g,M as R,q as y}from"./B83PSHD9.js";function c(i){return i.includes("?")&&(i=i.split("?")[0]),i.includes("/")&&(i=i.split("/")[0]),i.includes("&")&&(i=i.split("&")[0]),i}function z(i){let e=i;e=e.replace("-nocookie",""),e=e.replace(/#t=.*$/,""),e=e.replace(/^https?:\/\//,"");const t=/youtube:\/\/|youtu\.be\/|y2u\.be\//g;if(t.test(e)){const r=e.split(t)[1];return c(r)}const s=/\/shorts\//g;if(s.test(e))return c(e.split(s)[1]);const o=/v=|vi=/g;if(o.test(e)){const r=e.split(o);return c(r[1].split("&")[0])}const a=/\/v\/|\/vi\/|\/watch\//g;if(a.test(e)){const r=e.split(a)[1];return c(r)}const n=/\/an_webp\//g;if(n.test(e)){const r=e.split(n)[1];return c(r)}const d=/\/e\//g;if(d.test(e)){const r=e.split(d)[1];return c(r)}const l=/\/embed\//g;if(l.test(e)){const r=e.split(l)[1];return c(r)}if(/\/user\/([a-zA-Z\d]*)$/g.test(e))return;if(/\/user\/(?!.*videos)/g.test(e)){const r=e.split("/");return c(r.pop())}const m=/\/attribution_link\?.*v%3D([^%&]*)(%26|&|$)/;if(m.test(e))return c(e.match(m)[1]);const f=/\/live\//g;if(f.test(e)){const r=e.split(f)[1];return c(r)}}function k(i){let e=i;e.includes("#")&&([e]=e.split("#")),e.includes("?")&&!e.includes("clip_id=")&&([e]=e.split("?"));let t,s;const a=/https?:\/\/vimeo\.com\/event\/(\d+)$/.exec(e);if(a&&a[1])return a[1];const d=/https?:\/\/vimeo\.com\/(\d+)/.exec(e);if(d&&d[1])return d[1];const l=["https?://player.vimeo.com/video/[0-9]+$","https?://vimeo.com/channels","groups","album"].join("|");return new RegExp(l,"gim").test(e)?(s=e.split("/"),s&&s.length>0&&(t=s.pop())):/clip_id=/gim.test(e)&&(s=e.split("clip_id="),s&&s.length>0&&([t]=s[1].split("&"))),t}function $(i){const t=/https:\/\/vine\.co\/v\/([a-zA-Z\d]*)\/?/.exec(i);if(t&&t.length>1)return t[1]}function U(i){let e;if(i.includes("embed"))return e=/embed\/(\w{8})/,i.match(e)[1];e=/\/v\/(\w{8})/;const t=i.match(e);if(t&&t.length>0)return t[1]}function A(i){const t=(i.includes("embed")?/https:\/\/web\.microsoftstream\.com\/embed\/video\/([a-zA-Z\d-]*)\/?/:/https:\/\/web\.microsoftstream\.com\/video\/([a-zA-Z\d-]*)\/?/).exec(i);if(t&&t.length>1)return t[1]}function E(i){const t=/tiktok\.com(.*)\/video\/(\d+)/gm.exec(i);if(t&&t.length>2)return t[2]}function Z(i){const t=/dailymotion\.com(.*)(video)\/([a-zA-Z\d]+)/gm.exec(i);if(t)return t[3];const o=/dai\.ly\/([a-zA-Z\d]+)/gm.exec(i);if(o&&o.length>1)return o[1];const n=/dailymotion\.com(.*)video=([a-zA-Z\d]+)/gm.exec(i);if(n&&n.length>2)return n[2]}function P(i){const t=/^https?:\/\/(?:www\.)?loom\.com\/(?:share|embed)\/([\da-zA-Z]+)\/?/.exec(i);if(t&&t.length>1)return t[1]}function T(i){if(typeof i!="string")throw new TypeError("getSrc expected a string");const t=/src="(.*?)"/gm.exec(i);if(t&&t.length>=2)return t[1]}function I(i){if(typeof i!="string")throw new TypeError(`sanitizeUrl expected a string, got ${typeof i}`);let e=i;return/<iframe v-not-lazy/gi.test(e)&&(e=T(e)||""),e=e.trim(),e=e.replace("/www.","/"),e}function L(i){if(typeof i!="string")throw new TypeError(`extractGoogleRedirectionUrl expected a string, got ${typeof i}`);const e=i.trim();if(/\/\/google|www\.google/.test(e))try{const t=new URL(i),o=new URLSearchParams(t.search).get("url");if(o)return decodeURIComponent(o)}catch{return e}return e}function h(i){if(typeof i!="string")throw new TypeError("get-video-id expects a string");const e=I(i),t=L(e);let s={id:void 0,service:void 0};return/youtube|youtu\.be|y2u\.be|i.ytimg\./.test(t)?s={id:z(t),service:"youtube"}:/vimeo/.test(t)?s={id:k(t),service:"vimeo"}:/vine/.test(t)?s={id:$(t),service:"vine"}:/videopress/.test(t)?s={id:U(t),service:"videopress"}:/microsoftstream/.test(t)?s={id:A(t),service:"microsoftstream"}:/tiktok\.com/.test(t)?s={id:E(t),service:"tiktok"}:/(dailymotion\.com|dai\.ly)/.test(t)?s={id:Z(t),service:"dailymotion"}:/loom\.com/.test(t)&&(s={id:P(t),service:"loom"}),s}const M={class:"content-copy"},V=["innerHTML"],B={class:"relative aspect-[16/9] w-full"},C=["id","src"],G=w({__name:"VideoSection",props:{id:{default:"video"},src:{default:""},description:{default:""}},setup(i){const e=i,t=u(()=>{const{id:n}=h(e.src);return n}),s=u(()=>{const{service:n}=h(e.src);return n}),o=u(()=>`${s.value==="vimeo"?"vimeoplayer":"ytplayer"}-${e.id}`),a=u(()=>s.value==="youtube"?`https://www.youtube.com/embed/${t.value}
1`:s.value==="vimeo"?`https://player.vimeo.com/video/${t.value}`:`https://www.youtube.com/embed/${t.value}`);return(n,d)=>{const l=x("not-lazy");return p(),v("div",M,[n.description?(p(),v("div",{key:0,class:"copy mb-8 sm:text-base",innerHTML:n.$md.render(n.description)},null,8,V)):_("",!0),g("div",B,[R(g("iframe",{id:y(o),class:"absolute left-0 top-0 size-full border-none",type:"text/html",src:y(a),allow:"fullscreen"},null,8,C),[[l]])])])}}});export{G as _};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.