native-fn 1.0.0 → 1.0.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.
package/dist/index.cjs CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";var ge=Object.defineProperty;var We=Object.getOwnPropertyDescriptor;var He=Object.getOwnPropertyNames;var Je=Object.prototype.hasOwnProperty;var I=(e,t)=>()=>(e&&(t=e(e=0)),t);var Xe=(e,t,n,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let q of He(t))!Je.call(e,q)&&q!==n&&ge(e,q,{get:()=>t[q],enumerable:!(o=We(t,q))||o.enumerable});return e};var f=e=>Xe(ge({},"__esModule",{value:!0}),e);var _e={};var we=I(()=>{(function(e,t){typeof exports=="object"&&typeof module<"u"?t():typeof define=="function"&&define.amd?define(t):t()})(0,function(){"use strict";function e(i){var A=this.constructor;return this.then(function(V){return A.resolve(i()).then(function(){return V})},function(V){return A.resolve(i()).then(function(){return A.reject(V)})})}function t(i){return new this(function(A,V){function p(E,S){if(S&&(typeof S=="object"||typeof S=="function")){var k=S.then;if(typeof k=="function")return void k.call(S,function(B){p(E,B)},function(B){c[E]={status:"rejected",reason:B},--y==0&&A(c)})}c[E]={status:"fulfilled",value:S},--y==0&&A(c)}if(!i||typeof i.length>"u")return V(new TypeError(typeof i+" "+i+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var c=Array.prototype.slice.call(i);if(c.length===0)return A([]);for(var y=c.length,b=0;c.length>b;b++)p(b,c[b])})}function n(i,A){this.name="AggregateError",this.errors=i,this.message=A||""}function o(i){var A=this;return new A(function(V,p){if(!i||typeof i.length>"u")return p(new TypeError("Promise.any accepts an array"));var c=Array.prototype.slice.call(i);if(c.length===0)return p();for(var y=[],b=0;c.length>b;b++)try{A.resolve(c[b]).then(V).catch(function(E){y.push(E),y.length===c.length&&p(new n(y,"All promises were rejected"))})}catch(E){p(E)}})}function q(i){return!(!i||typeof i.length>"u")}function h(){}function r(i){if(!(this instanceof r))throw new TypeError("Promises must be constructed via new");if(typeof i!="function")throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],v(i,this)}function l(i,A){for(;i._state===3;)i=i._value;i._state!==0?(i._handled=!0,r._immediateFn(function(){var V=i._state===1?A.onFulfilled:A.onRejected;if(V!==null){var p;try{p=V(i._value)}catch(c){return void a(A.promise,c)}u(A.promise,p)}else(i._state===1?u:a)(A.promise,i._value)})):i._deferreds.push(A)}function u(i,A){try{if(A===i)throw new TypeError("A promise cannot be resolved with itself.");if(A&&(typeof A=="object"||typeof A=="function")){var V=A.then;if(A instanceof r)return i._state=3,i._value=A,void m(i);if(typeof V=="function")return void v(function(p,c){return function(){p.apply(c,arguments)}}(V,A),i)}i._state=1,i._value=A,m(i)}catch(p){a(i,p)}}function a(i,A){i._state=2,i._value=A,m(i)}function m(i){i._state===2&&i._deferreds.length===0&&r._immediateFn(function(){i._handled||r._unhandledRejectionFn(i._value)});for(var A=0,V=i._deferreds.length;V>A;A++)l(i,i._deferreds[A]);i._deferreds=null}function v(i,A){var V=!1;try{i(function(p){V||(V=!0,u(A,p))},function(p){V||(V=!0,a(A,p))})}catch(p){if(V)return;V=!0,a(A,p)}}n.prototype=Error.prototype;var s=setTimeout;r.prototype.catch=function(i){return this.then(null,i)},r.prototype.then=function(i,A){var V=new this.constructor(h);return l(this,new function(p,c,y){this.onFulfilled=typeof p=="function"?p:null,this.onRejected=typeof c=="function"?c:null,this.promise=y}(i,A,V)),V},r.prototype.finally=e,r.all=function(i){return new r(function(A,V){function p(E,S){try{if(S&&(typeof S=="object"||typeof S=="function")){var k=S.then;if(typeof k=="function")return void k.call(S,function(B){p(E,B)},V)}c[E]=S,--y==0&&A(c)}catch(B){V(B)}}if(!q(i))return V(new TypeError("Promise.all accepts an array"));var c=Array.prototype.slice.call(i);if(c.length===0)return A([]);for(var y=c.length,b=0;c.length>b;b++)p(b,c[b])})},r.any=o,r.allSettled=t,r.resolve=function(i){return i&&typeof i=="object"&&i.constructor===r?i:new r(function(A){A(i)})},r.reject=function(i){return new r(function(A,V){V(i)})},r.race=function(i){return new r(function(A,V){if(!q(i))return V(new TypeError("Promise.race accepts an array"));for(var p=0,c=i.length;c>p;p++)r.resolve(i[p]).then(A,V)})},r._immediateFn=typeof setImmediate=="function"&&function(i){setImmediate(i)}||function(i){s(i,0)},r._unhandledRejectionFn=function(i){console!==void 0&&console&&console.warn("Possible Unhandled Promise Rejection:",i)};var d=function(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw Error("unable to locate global object")}();typeof d.Promise!="function"?d.Promise=r:(d.Promise.prototype.finally||(d.Promise.prototype.finally=e),d.Promise.allSettled||(d.Promise.allSettled=t),d.Promise.any||(d.Promise.any=o))})});var F={};var L=I(()=>{module.exports=function(t){if(typeof Object.freeze!="function"){for(var n=Object.keys(t),o=0,q=n[o];o<n.length;o++)if(t.hasOwnProperty(q))try{Object.defineProperty(t,q,{writable:!1,configurable:!1})}catch{}return t}return Object.freeze(t)}});var _={};function J(e){var t={"4.90":"ME","NT3.51":"NT 3.11","NT4.0":"NT 4.0","NT 5.0":"2000","NT 5.1":"XP","NT 5.2":"XP","NT 6.0":"Vista","NT 6.1":"7","NT 6.2":"8","NT 6.3":"8.1","NT 6.4":"10","NT 10.0":"10",ARM:"RT"},n=t[e];return n!==void 0?n:e}function X(e){if(e!==void 0)return e.replace(/_/g,".")}function $e(){var e=document.createElement("CANVAS");if(typeof e.getContext=="function"){var t=e.getContext("experimental-webgl")||e.getContext("webgl");if(t!==null){var n=t.getExtension("WEBGL_debug_renderer_info");if(typeof t.getParameter=="function")return n==null?t.getParameter(t.RENDERER):t.getParameter(n.UNMASKED_RENDERER_WEBGL)}}}var be,et,j=I(()=>{be=(L(),f(F));et=function(e){for(var t,n={renderer:$e(),name:"Unknown",version:void 0},o=[[/android\w*[-\/.; ]?([\d.]*)/i,"Android"],[/microsoft windows (vista|xp)/i,"Windows"],[/windows (?:phone(?: os)?|mobile|iot)[\/ ]?([.\w ]*)/i,"Windows",J],[/windows nt 6\.2; (arm)/i,"Windows",J],[/windows[\/ ]([ntce\d. ]+\w)(?!.+xbox)/i,"Windows",J],[/(?:win(?=[39n])|win 9x )([nt\d.]+)/i,"Windows",J],[/[adehimnop]{4,7}\b(?:.*os (\w+) like mac|; opera)/i,"iOS",X],[/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d.]+)/i,"iOS",X],[/cfnetwork\/.+darwin/i,"iOS"],[/mac os x ?([\w. ]*)/i,"MacOS",X],[/(?:macintosh|mac_powerpc\b)(?!.+haiku)/i,"MacOS",X]],q=0;q<o.length;q++)if(t=e.match(o[q][0]),t!==null)return n.name=o[q][1],o[q][2]!==void 0?n.version=o[q][2](t[1]):n.version=t[1],be(n);return be(n)}(navigator.userAgent);module.exports=et});var nt={};function Se(e){return"LibWeb"}var Ee,tt,Ie=I(()=>{Ee=(L(),f(F));tt=function(e){for(var t,n={name:"Unknown",isWebView:/; ?wv|applewebkit(?!.*safari)/i.test(e),version:void 0},o=[[/windows.+ edge\/([\w.]+)/i,"EdgeHTML"],[/arkweb\/([\w.]+)/i,"ArkWeb"],[/webkit\/537\.36.+chrome\/(?!27)([\w.]+)/i,"Blink"],[/presto\/([\w.]+)/i,"Presto"],[/webkit\/([\w.]+)/i,"WebKit"],[/trident\/([\w.]+)/i,"Trident"],[/netfront\/([\w.]+)/i,"NetFront"],[/netsurf\/([\w.]+)/i,"NetSurf"],[/amaya\/([\w.]+)/i,"Amaya"],[/lynx\/([\w.]+)/i,"Lynx"],[/w3m\/([\w.]+)/i,"w3m"],[/goanna\/([\w.]+)/i,"Goanna"],[/servo\/([\w.]+)/i,"Servo"],[/ekiohflow\/([\w.]+)/i,"Flow"],[/khtml[\/ ]\(?([\w.]+)/i,"KHTML"],[/tasman[\/ ]\(?([\w.]+)/i,"Tasman"],[/links[\/ ]\(?([\w.]+)/i,"Links"],[/icab[\/ ]([23]\.[\d.]+)/i,"iCab"],[/\blibweb/i,"LibWeb",Se],[/ladybird\//i,"LibWeb",Se],[/rv:([\w.]{1,9})\b.+gecko/i,"Gecko"]],q=0;q<o.length;q++)if(t=e.match(o[q][0]),t!==null)return n.name=o[q][1],o[q][2]!==void 0?n.version=o[q][2](t[1]):n.version=t[1],Ee(n);return Ee(n)}(navigator.userAgent);module.exports=tt});var Be={};var ie=I(()=>{module.exports=function(){if(typeof window.matchMedia=="function")return window.matchMedia;var e=window.styleMedia||window.media;if(e===void 0){var t=document.createElement("STYLE"),n;t.type="text/css",t.id="match-media-polyfill",document.head.appendChild(t),typeof window.getComputedStyle=="function"?n=window.getComputedStyle(t):n=t.currentStyle,e={matchMedia:function(o){var q="@media "+o+"{ #"+t.id+" {width: 1px;} }";return t.styleSheet!==void 0?t.styleSheet.cssText=q:t.textContent=q,n.width==="1px"}}}return function(o){return{matches:e.matchMedia(o),media:o}}}()});var ke={};var ot,it,z,U,R,qe=I(()=>{ot=(L(),f(F)),it=(ie(),f(Be)),z=[],U=it("(prefers-color-scheme: dark)"),R={addListener:function(e){function t(n){e(n.matches?R.Type.Dark:R.Type.Light)}if(z.push({original:e,wrapped:t}),typeof U.addEventListener=="function")return U.addEventListener("change",t);if(typeof U.addListener=="function")return U.addListener(t)},removeListener:function(e){for(var t=0;t<z.length;t++)if(z[t].original===e){var n=z[t].wrapped;if(typeof U.removeEventListener=="function")U.removeEventListener("change",n);else if(typeof U.removeListener=="function")return U.removeListener(n);z.splice(t,1);return}}};Object.defineProperty(R,"value",{get:function(){return U.matches?R.Type.Dark:R.Type.Light},configurable:!1,enumerable:!0});R.Type=ot({Light:"light",Dark:"dark"});module.exports=R});var rt={};function $(e){var t="",n,o;for(o=0;o<e.length;o++)t+="["+e[o][0]+"='"+e[o][1]+"']";if(n=top.document.head.querySelector("meta"+t),n===null){for(n=top.document.createElement("META"),o=0;o<e.length;o++)n[e[o][0]]=e[o][1];top.document.head.appendChild(n)}return n}function re(){g.light===void 0&&(g.light=$([["name","theme-color"],["media","(prefers-color-scheme: light)"]])),g.dark===void 0&&(g.dark=$([["name","theme-color"],["media","(prefers-color-scheme: dark)"]])),g.iosStatusBar===void 0&&(g.iosStatusBar=$([["name","apple-mobile-web-app-status-bar-style"]])),g.windowsPhone===void 0&&(g.windowsPhone=$([["name","msapplication-navbutton-color"]]))}var N,qt,Y,g,Q,P,Te,K,xe=I(()=>{N=(qe(),f(ke)),qt=(L(),f(F)),g={light:void 0,dark:void 0,iosStatusBar:void 0,windowsPhone:void 0},P=[],Te=[];K={addListener:function(e){if(typeof window.MutationObserver!="function")return;Q===void 0&&(Q=new MutationObserver(function(n){var o,q=!1;for(o=0;o<n.length;o++){var h=n[o],r=h.target,l=h.type;if(!(l!=="attributes"||r.tagName!=="META")&&[g.light,g.dark,g.iosStatusBar,g.windowsPhone].indexOf(r)!==-1){q=!0;break}}if(q)for(o=0;o<P.length;o++)P[o](K.value)}),Q.observe(top.document.head,{attributes:!0,childList:!0,subtree:!0}));function t(){re(),g.dark.content!==g.light.content&&e(K.value)}N.addListener(t),Te.push(t),P.push(e)},removeListener:function(e){if(!(typeof window.MutationObserver!="function"||Q===void 0)){for(var t=0;t<P.length;t++)if(P[t]===e){P.splice(t,1),Te.splice(t,1);break}P.length===0&&(Q.disconnect(),Q=void 0)}},setTheme:function(e){re(),Y!==void 0&&(N.removeListener(Y),Y=void 0),Y=function(o){var q=e[o];q!==void 0&&(q.iosStatusBar!==void 0&&(g.iosStatusBar.content=q.iosStatusBar),q.windowsPhone!==void 0&&(g.windowsPhone.content=q.iosStatusBar))},N.addListener(Y);var t=e.light,n=e.dark;n!==void 0&&n.theme!==void 0&&(g.dark.content=n.theme),t!==void 0&&(t.theme!==void 0&&(g.light.content=t.theme),N.value==="light"&&(t.iosStatusBar!==void 0&&(g.iosStatusBar.content=t.iosStatusBar),t.windowsPhone!==void 0&&(g.windowsPhone.content=t.windowsPhone))),n!==void 0&&(n.theme!==void 0&&(g.dark.content=n.theme),N.value==="dark"&&(n.iosStatusBar!==void 0&&(g.iosStatusBar.content=n.iosStatusBar),n.windowsPhone!==void 0&&(g.windowsPhone.content=n.windowsPhone)))}};Object.defineProperty(K,"value",{get:function(){var e={};return re(),g[N.value].content!==""&&(e.theme=g[N.value].content),g.iosStatusBar.content!==""&&(e.iosStatusBar=g.iosStatusBar.content),g.windowsPhone.content!==""&&(e.windowsPhone=g.windowsPhone.content),e},configurable:!1,enumerable:!0});K.Type=qt({Theme:"theme",IOSStatusBar:"iosStatusBar",WindowsPhone:"windowsPhone"});module.exports=K});var ae={};function At(){return!window.CSS||typeof CSS.supports!="function"?null:CSS.supports("x:env(x)")?"env":CSS.supports("x:constant(x)")?"constant":null}var Ae,at,ee=I(()=>{at=function(){if(typeof window.requestAnimationFrame=="function")return window.requestAnimationFrame;if(typeof window.msRequestAnimationFrame=="function")return window.msRequestAnimationFrame;if(typeof window.mozRequestAnimationFrame=="function")return window.mozRequestAnimationFrame;if(typeof window.webkitRequestAnimationFrame=="function")return window.webkitRequestAnimationFrame;if(typeof window.oRequestAnimationFrame=="function")return window.oRequestAnimationFrame;var e=0;return function(t){var n=new Date().getTime(),o=Math.max(0,16-(n-e)),q=setTimeout(function(){t(n+o)},o);return e=n+o,q}}();module.exports=function(t,n){Ae===void 0&&(Ae=At());var o={addListener:function(i){h.push(i)},removeListener:function(i){for(var A=0;A<h.length;A++)if(h[A]===i){h.splice(A,1);break}},value:{}},q=document.createElement("div"),h=[],r=[],l=!1,u=window.ShadowRoot!==void 0;if(q.dataset!==void 0&&(q.dataset[t]=""),document.body.appendChild(q),u){var a=document.createElement("style");a.innerText=":host { position: absolute !important; top: 0 !important; left: 0 !important; width: 0 !important; height: 0 !important; visibility: hidden !important; overflow: hidden !important; } :host > div { position: absolute; width: 100px; height: 200px; overflow: hidden; box-sizing: border-box; } .pixel { transition: 0s; animation: none; width: 400px; height: 400px; } .percent { transition: 0s; animation: none; width: 250%; height: 250%; } ",q=q.attachShadow({mode:"closed"}),q.appendChild(a)}else q.style.position="absolute",q.style.top="0",q.style.left="0",q.style.width="0",q.style.height="0",q.style.visibility="hidden",q.style.overflow="hidden";for(var m in n)n.hasOwnProperty(m)&&d(q,m,n[m],o.value);function v(){l=!1;for(var i=0;i<h.length;i++)h[i](o.value);r.length=0}function s(i){r.indexOf(i)===-1&&r.push(i),l||(l=!0,setTimeout(function(){at(v)},0))}function d(i,A,V,p){var c=document.createElement("DIV"),y=document.createElement("DIV"),b=document.createElement("DIV"),E=document.createElement("DIV"),S=1e4;c.style.paddingBottom=y.style.paddingBottom=Ae+"("+V+")",u?(b.className="pixel",E.className="percent"):(c.style.position=y.style.position="absolute",c.style.width=y.style.width="100px",c.style.height=y.style.height="200px",c.style.overflow=y.style.overflow="hidden",c.style.boxSizing=y.style.boxSizing="border-box",b.style.transition=E.style.transition="0s",b.style.animation=E.style.animation="none",b.style.width=b.style.height="400px",E.style.width=E.style.height="250%"),c.appendChild(b),y.appendChild(E),i.appendChild(c),i.appendChild(y),c.scrollTop=y.scrollTop=S;var k=c.scrollTop,B=y.scrollTop;function G(){var M=this.scrollTop;this===c&&M===k||this===y&&M===B||(c.scrollTop=y.scrollTop=S,k=c.scrollTop,B=y.scrollTop,s(A))}c.addEventListener("scroll",G,!1),y.addEventListener("scroll",G,!1);var O=window.getComputedStyle(c);Object.defineProperty(p,A,{get:function(){return parseFloat(O.paddingBottom)},configurable:!1,enumerable:!0})}return o}});var st={};var Me=I(()=>{module.exports=(ee(),f(ae))("safeAreaInset",{top:"safe-area-inset-top",bottom:"safe-area-inset-bottom",left:"safe-area-inset-left",right:"safe-area-inset-right"})});var lt={};var Ce=I(()=>{module.exports=(ee(),f(ae))("titlebarArea",{x:"titlebar-area-x",y:"titlebar-area-y",width:"titlebar-area-width",height:"titlebar-area-height"})});var ut={};var Le=I(()=>{module.exports=(ee(),f(ae))("keyboardInset",{top:"keyboard-inset-top",bottom:"keyboard-inset-bottom",left:"keyboard-inset-left",right:"keyboard-inset-right",width:"keyboard-inset-width",height:"keyboard-inset-height"})});var Fe={};function ct(e){return e.document.hidden!==void 0?e.document.hidden:e.document.webkitHidden!==void 0?e.document.webkitHidden:!0}function Ue(e,t){var n=e.document.createElement("A"),o;n.href=t,e.document.body.appendChild(n);try{o=new e.MouseEvent("click",{bubbles:!0,cancelable:!0,view:e})}catch{o=e.document.createEvent("MouseEvents"),o.initMouseEvent("click",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null)}n.dispatchEvent(o),e.document.body.removeChild(n)}function De(e,t,n,o){return new Promise(function(q,h){var r;function l(){clearTimeout(r),t.removeEventListener("blur",l),t.addEventListener("focus",u)}function u(){t.removeEventListener("focus",u),q()}r=setTimeout(function(){h(),t.removeEventListener("blur",l)},o),t.addEventListener("blur",l),Ue(t,n)})}function Vt(e,t,n){return new Promise(function(o,q){var h,r=parseInt(e.version)>=8;function l(){clearTimeout(h),t.addEventListener("focus",u),t.removeEventListener("blur",l)}function u(){h=setTimeout(function(){ct(t)?o():q(),r?t.document.removeEventListener("visibilitychange",a):t.document.removeEventListener("pagehide",a)},2e3),t.removeEventListener("focus",u)}function a(){clearTimeout(h),t.removeEventListener("blur",l),t.removeEventListener("focus",u),r?t.document.removeEventListener("visibilitychange",a):t.document.removeEventListener("pagehide",a),o()}t.addEventListener("blur",l),r?t.document.addEventListener("visibilitychange",a):t.document.addEventListener("pagehide",a),Ue(t,n)})}function dt(e,t,n){return De(e,t,n,1e3)}function ft(e,t,n){return De(e,t,n,750)}var se=I(()=>{module.exports=function(t,n,o){if(o)switch(t.name){case"Android":return dt(t,n,o);case"iOS":return Vt(t,n,o);case"Windows":case"MacOS":return ft(t,n,o)}return Promise.reject()}});var le={};var te=I(()=>{module.exports=function(t){function n(o){if(!(this instanceof n))return new n(o);this.name=t,this.message=o,Error.captureStackTrace?Error.captureStackTrace(this,n):this.stack=new Error().stack}return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}});var ue={};var ne=I(()=>{module.exports=(te(),f(le))("InitializationError")});var ce={};var oe=I(()=>{module.exports=(te(),f(le))("URLOpenError")});var gt={};function Oe(e){try{var t=new XMLHttpRequest;if(t.open("GET","http://itunes.apple.com/lookup?bundleId="+e,!1),t.send(),t.status===200){var n=JSON.parse(t.response);if(n.results.length>0)return n.results[0].trackId}return}catch{return}}function de(e){return/\w+:\/\/.*/.test(e)?e:e+"://"}function vt(e){return e.replace(/:\/\/.*$/,"")}var Ve,pt,ht,mt,yt,w,Re=I(()=>{Ve=(j(),f(_)),pt=(se(),f(Fe)),ht=(L(),f(F)),mt=(ne(),f(ue)),yt=(oe(),f(ce));w=function(e){if(e===void 0)throw new TypeError("Failed to construct 'Native.App': Illegal constructor.");this.run=function(){return new Promise(function(s,d){d(new mt("Initialization error."))})};var t,n,o,q,h=Promise.resolve(),r=[],l;switch(Ve.name){case"Android":if(e.android===void 0)return;var u,a,m;if(t=e.android.scheme,n=e.android.package,o=e.android.fallback,a=e.android.intent,l=e.android.isOpenWebStore,a!==void 0&&t===void 0&&(u=a.match(/scheme=([^;]*)/),u!==null&&(t=u[1])),a!==void 0&&n===void 0&&(u=a.match(/package=([^;]*)/),u!==null&&(n=u[1])),a!==void 0&&o===void 0&&(u=a.match(/S\.browser_fallback_url=([^;]*)/),u!==null&&(o=u[1])),t===void 0&&n===void 0&&o===void 0)return;if(a===void 0&&(a="intent://open#Intent;",t!==void 0&&(a=a+"scheme="+vt(t)+";"),n!==void 0&&(a=a+"package="+n+";"),a=a+"end;"),window.chrome!==void 0&&(u=navigator.userAgent.match(/chrom(?:e|ium)\/([\w.]+)/i),u!==null&&(m=parseInt(u[1]))),m>=25&&a!==void 0)if(m<=42){h=new Promise(function(s){var d=top.document.createElement("IFRAME"),i="intent://open#Intent;scheme=;end;",A=!1;function V(c){A||(A=!0,s(c),d.removeEventListener("load",p),top.document.body.removeChild(d))}function p(){V(d.src!==i)}d.addEventListener("load",p),d.src=i,top.document.body.appendChild(d),setTimeout(function(){V(!1)},500)}).then(function(s){s?r.push([a,w.State.Intent]):r.push([a.replace(/package=.*?;/,"").replace(/S\.browser_fallback_url=.*?;/,""),w.State.Intent]),o!==void 0?r.push([o,w.State.Fallback]):n!==void 0&&(r.push(["market://details?id="+n,w.State.Store]),l&&r.push(["https://play.google.com/store/apps/details?id="+n,w.State.Store]))});break}else r.push([a,w.State.Intent]);else t!==void 0&&r.push([de(t),w.State.Scheme]);o!==void 0?r.push([o,w.State.Fallback]):n!==void 0&&(r.push(["market://details?id="+n,w.State.Store]),l&&r.push(["https://play.google.com/store/apps/details?id="+n,w.State.Store]));break;case"Windows":if(e.windows===void 0)return;t=e.windows.scheme,n=e.windows.productId,l=e.windows.isOpenWebStore,o=e.windows.fallback,t!==void 0&&r.push([de(t),w.State.Scheme]),o!==void 0?r.push([o,w.State.Fallback]):n!==void 0&&(r.push(["ms-windows-store://pdp/?ProductId="+n,w.State.Store]),l&&r.push(["https://apps.microsoft.com/detail/"+n,w.State.Store]));break;case"iOS":if(e.ios===void 0)return;var v=e.ios.universal;t=e.ios.scheme,q=e.ios.package,n=e.ios.trackId,o=e.ios.fallback,v!==void 0&&parseInt(Ve.version)>=9?r.push([v,w.State.Universal]):t!==void 0&&r.push([t,w.State.Scheme]),n===void 0&&q!==void 0&&(n=Oe(q)),o!==void 0?r.push([o,w.State.Fallback]):n!==void 0&&(r.length===0?r.push(["itms-apps://itunes.apple.com/app/id"+n+"?mt=8",w.State.Store]):r.push(["https://itunes.apple.com/kr/app/id"+n+"?mt=8",w.State.Store]));break;case"MacOS":if(e.mac===void 0)return;t=e.mac.scheme,q=e.ios.package,n=e.mac.trackId,o=e.mac.fallback,l=e.mac.isOpenWebStore,t!==void 0&&r.push([de(t),w.State.Scheme]),n===void 0&&q!==void 0&&(n=Oe(q)),o!==void 0?r.push([o,w.State.Fallback]):n!==void 0&&(r.push(["macappstore://itunes.apple.com/app/id"+n+"?mt=12",w.State.Store]),l&&r.push(["https://apps.apple.com/us/app/id"+n+"?mt=12",w.State.Store]));break;default:return}this.run=function(s=top){return h.then(function(){return console.log(r),new Promise(function(d,i){function A(V=0){if(V>=r.length)return i(new yt("No url can be opened."));var p=r[V][0],c=r[V][1];return pt(Ve,s,p).then(function(){d(c)}).catch(function(y){A(++V)})}return A()})})}};w.State=ht({Scheme:0,Universal:1,Intent:2,Fallback:3,Store:4});module.exports=w});var Pe={};var fe=I(()=>{module.exports=(te(),f(le))("UserNotSelectedError")});var Pt={};function St(e,t,n){var o=t.getVideoTracks()[0].getSettings(),q=top.document.documentElement.style.overflow,h=o.width||640,r=o.height||480,l=Lt(e),u=Bt(),a=kt(),m=Mt(),v=Ct(e),s=xt(),d=Ne(),i=Ne(),A=Ut(),V=Dt(),p=top.innerHeight*.4/r*h/2,c=!1,y,b=[],E=0,S;m.appendChild(v),e===x.Type.Video&&u.appendChild(s),u.appendChild(a),u.appendChild(l),u.appendChild(m),u.appendChild(d),u.appendChild(i),u.appendChild(A),u.appendChild(V),a.style.left=l.style.left="calc(50% - "+p+"px)",d.style.left=i.style.right="0",A.style.left=V.style.right="calc(50% - "+(p-50)+"px)",d.style.width=i.style.width="calc(50% - "+p+"px)";function k(){}function B(){S!==void 0&&(clearInterval(S),S=void 0)}function G(O,M,C){Ge(O).then(function(T){l.src=T,a.style.display=m.style.display="none",l.style.display=A.style.display=V.style.display="block",A.onclick=function(){M({blob:O,dataURL:T})},V.onclick=function(){typeof window.URL=="function"?URL.revokeObjectURL(T):typeof window.webkitURL=="function"&&webkitURL.revokeObjectURL(T),E=0,a.style.display=m.style.display="block",l.style.display=A.style.display=V.style.display="none"}}).catch(function(T){C(T)})}return a.srcObject!==void 0?(a.srcObject=t,k=function(){a.srcObject=null}):a.mozSrcObject!==void 0&&(a.mozSrcObject=t,k=function(){a.mozSrcObject=null}),a.onloadedmetadata=function(){a.muted=!0,a.play()},top.document.documentElement.style.overflow="hidden",top.document.body.appendChild(u),n.push(function(){top.document.documentElement.style.overflow=q,top.document.body.removeChild(u),y!==void 0&&y.state!=="inactive"&&(y.stop(),y=void 0),k(),B()}),new Promise(function(O,M){top.document.addEventListener("keyup",function C(T){n.push(function(){top.document.removeEventListener("keyup",C)}),(T.keyCode===27||T.code==="Escape")&&M(new Qe("User did not select."))}),m.onclick=function(){try{if(e===x.Type.Image){Rt();var C=document.createElement("canvas");C.width=h,C.height=r;var T=C.getContext("2d");T.drawImage(a,0,0,C.width,C.height),It(C).then(function(D){G(D,O,M)}).catch(function(D){M(D)})}else c?(Ot(),y.stop(),v.style.borderRadius=v.style.WebkitBorderRadius=v.style.MozBorderRadius="50%",v.style.left="3px",v.style.top="3px",v.style.width="44px",v.style.height="44px"):(Ft(),S=setInterval(function(){++E,s.innerText=he(E/6e3)+":"+he(E/100%60)+":"+he(E%100)},10),y=new MediaRecorder(a.srcObject||a.mozSrcObject),b=[],y.ondataavailable=function(D){D.data.size>0&&b.push(D.data)},y.onstop=function(){B(),G(new Blob(b,{type:"video/webm"}),O,M)},y.start(),v.style.borderRadius=v.style.WebkitBorderRadius=v.style.MozBorderRadius="10%",v.style.top="12px",v.style.left="12px",v.style.width="27px",v.style.height="27px"),c=!c}catch(D){M(D)}}})}function he(e){return e=parseInt(e),e<=9?"0"+e:e}function Ge(e){return new Promise(function(t,n){try{var o=new FileReader;o.onloadend=function(){t(o.result)},o.onerror=function(q){n(q)},o.readAsDataURL(e)}catch(q){n(q)}})}function It(e){return new Promise(function(t,n){if(typeof e.toBlob=="function")e.toBlob(function(u){t(u)},"image/png");else if(typeof e.msToBlob=="function")t(e.msToBlob());else try{for(var o=e.toDataURL("image/png"),q=atob(o.split(",")[1]),h=new ArrayBuffer(q.length),r=new Uint8Array(h),l=0;l<q.length;l++)r[l]=q.charCodeAt(l);t(new Blob([h],{type:o.split(",")[0].split(":")[1].split(";")[0]}))}catch(u){n(u)}})}function Bt(){var e=document.createElement("DIV"),t=Tt();return e.style.position="absolute",e.style.left="0",e.style.top=top.scrollY+"px",e.style.width="100%",e.style.height="100%",e.style.zIndex="2147483647",e.appendChild(t),e}function Ne(){var e=document.createElement("DIV");return e.style.position="absolute",e.style.top="0",e.style.height="100%",e.style.backgroundColor="#000",e}function kt(){var e=document.createElement("VIDEO");return e.style.position="absolute",e.style.top="30%",e.style.height="40%",e.controls=!1,e}function Tt(){var e=document.createElement("DIV");return e.style.position="absolute",e.style.left="0",e.style.top="0",e.style.width="100%",e.style.height="100%",e.style.backgroundColor="#111",e}function xt(){var e=document.createElement("DIV");return e.style.position="absolute",e.style.left="calc(50% - 50px)",e.style.top="calc(20% - 12px)",e.style.width="100px",e.style.height="24px",e.style.color="#FFF",e.style.fontWeight="400",e.style.textAlign="center",e.style.fontVariantNumeric="tabular-nums",e.style.fontFeatureSettings=e.style.WebkitFontFeatureSettings=e.style.MozFontFeatureSettings='"tnum"',e.innerText="00:00:00",e}function Mt(){var e=document.createElement("BUTTON");return e.style.position="relative",e.style.left="calc(50% - 30px)",e.style.top="calc(80% - 30px)",e.style.width="60px",e.style.height="60px",e.style.backgroundColor="#FFFFFF00",e.style.borderRadius=e.style.WebkitBorderRadius=e.style.MozBorderRadius="50%",e.style.cursor="pointer",e.style.border="5px solid #FFF",e}function Ct(e){var t=document.createElement("DIV");return t.style.position="absolute",t.style.left="3px",t.style.top="3px",t.style.width="44px",t.style.height="44px",t.style.borderRadius="50%",e===x.Type.Image?t.style.backgroundColor="#FFF":t.style.backgroundColor="#F00",bt("(prefers-reduced-motion: no-preference)").matches&&(t.style.transitionProperty=t.style.WebkitTransitionProperty=t.style.MozTransitionProperty="border-radius, width, height, top, left",t.style.transitionDuration=t.style.WebkitTransitionDuration=t.style.MozTransitionDuration="150ms",t.style.transitionTimingFunction=t.style.WebkitTransitionTimingFunction=t.style.MozTransitionTimingFunction="ease"),t}function Lt(e){var t;return e===x.Type.Video?(t=document.createElement("VIDEO"),t.controls=!0):t=document.createElement("IMG"),t.style.position="absolute",t.style.top="30%",t.style.height="40%",t.style.display="none",t}function Ut(){var e=document.createElement("BUTTON"),t=document.createElement("DIV");return e.style.display="none",e.style.position="absolute",e.style.top="calc(80% - 15px)",e.style.width="30px",e.style.height="30px",t.style.position="relative",t.style.top="-2px",t.style.display="inline-block",t.style.transform=t.style.webkitTransform=t.style.msTransform=t.style.OTransform=t.style.MozTransform="rotate(45deg)",t.style.width="16px",t.style.height="25px",t.style.borderBottom=t.style.borderRight="5px solid #FFF",e.appendChild(t),e}function Dt(){var e=document.createElement("BUTTON"),t=document.createElement("DIV"),n=document.createElement("DIV");return e.style.display="none",e.style.position="absolute",e.style.top="calc(80% - 15px)",e.style.width="30px",e.style.height="30px",t.style.position=n.style.position="relative",t.style.top="1px",t.style.left="3px",t.style.display=n.style.display="inline-block",t.style.transform=t.style.webkitTransform=t.style.msTransform=t.style.OTransform=t.style.MozTransform="rotate(45deg)",t.style.height=n.style.height="28px",t.style.borderRight=n.style.borderRight="5px solid #FFF",n.style.top="1px",n.style.left="-2px",n.style.transform=n.style.webkitTransform=n.style.msTransform=n.style.OTransform=n.style.MozTransform="rotate(315deg)",e.appendChild(t),e.appendChild(n),e}function ye(e){typeof window.Audio=="function"&&new Audio("data:audio/mpeg;base64,"+e).play()}function Ft(){ye("SUQzBAAAAAAAIlRTU0UAAAAOAAADTGF2ZjYxLjQuMTAwAAAAAAAAAAAAAAD/+1AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABYaW5nAAAADwAAAA4AAAi+ACMjIyMjIyNra2tra2trenp6enp6eomJiYmJiYmUlJSUlJSUoKCgoKCgoKysrKysrKy4uLi4uLi4uMTExMTExMTQ0NDQ0NDQ3Nzc3Nzc3Ojo6Ojo6Oj09PT09PT0/////////wAAAABMYXZjNjEuOS4AAAAAAAAAAAAAAAAkAkAAAAAAAAAIvgS8XU8AAAAAAAAAAAAAAAAAAAAA//sQRAAP8AAAf4AAAAgAAA/wAAABAAAB/hQAACAAAD/CgAAEBgVBYCAgDIAA//00wLiP/YsGhlZj0P/7zOLkTXRPdgN2FAwgzvgDMA55M/5BxSjG/xoAEIZCAAAHg4iQDNxRniJogKL/+7BkIgABjxbRXm6AAAzgCmTAAAAIPEtj+byQA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qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqr/+xBk+4HxYQrQ4MNIwgAADSAAAAEDyCtBIYRkqAAANIAAAASqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqv/7EGTjD/BVAM6oAAAIAAANIAAAAQAAAf4AAAAgAAA0gAAABKqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq")}var me,wt,bt,Qe,Et,pe,x,je=I(()=>{me=(j(),f(_)),wt=(L(),f(F)),bt=(ie(),f(Be)),Qe=(fe(),f(Pe)),Et=(ne(),f(ue)),pe=!1;x=function(e){if(e==null||e.type==null||!x.isSupported||[x.Type.Image,x.Type.Video].indexOf(e.type)===-1)throw new TypeError("Failed to construct 'Native.Camera': Illegal constructor.");var t=this;this.run=function(){return new Promise(function(r,l){l(new Et("Initialization error."))})},this.bind=function(r){r.onclick=function(l){l.preventDefault(),t.run()}};var n=e.type;switch(me.name){case"Android":case"iOS":var o=document.createElement("INPUT");o.type="file",o.capture="environment",o.accept=e.type+"/*",this.run=function(){return new Promise(function(r,l){o.onchange=function(){var u=o.files;if(u.length>0){var a=u[0];Ge(a).then(function(m){r({blob:a,dataURL:m})}).catch(function(m){l(m)})}else l(new Qe("User did not select."))},o.click()})};return;case"Windows":case"MacOS":var q;if(navigator.mediaDevices&&typeof navigator.mediaDevices.getUserMedia=="function")q=function(r){return navigator.mediaDevices.getUserMedia(r)};else{var h=navigator.getUserMedia||navigator.webkitGetUserMedia||navigator.mozGetUserMedia||navigator.msGetUserMedia;typeof h=="function"&&(q=function(r){return new Promise(function(l,u){h.call(navigator,r,l,u)})})}this.run=function(){return new Promise(function(r,l){if(pe)return l(new Error("Native.Camera is already running."));pe=!0;var u=[];function a(){pe=!1;for(var m=0;m<u.length;m++)u[m]()}try{q({video:!0,audio:n===x.Type.Video}).then(function(m){u.push(function(){for(var v=m.getTracks(),s=0;s<v.length;s++)v[s].stop()}),St(n,m,u).then(function(v){r(v)}).catch(function(v){l(v)}).finally(function(){a()})}).catch(function(m){a(),l(m)})}catch(m){a(),l(m)}})};break;default:}};x.Type=wt({Image:"image",Video:"video"});Object.defineProperty(x,"isSupported",{get(){return me.name==="Android"||me.name==="iOS"||(typeof navigator.getUserMedia=="function"||typeof navigator.webkitGetUserMedia=="function"||typeof navigator.mozGetUserMedia=="function"||typeof navigator.msGetUserMedia=="function"||navigator.mediaDevices!==void 0&&typeof navigator.mediaDevices.getUserMedia=="function")&&new Blob(["\xE4"]).size===2&&typeof window.MediaRecorder=="function"},configurable:!1,enumerable:!0});module.exports=x});var Yt={};function zt(e){if(e==null)return!1;var t=e.length;return typeof t=="number"&&t>=0&&!(t%1)}function Z(e){return encodeURIComponent(e).replace(/%20/g,"%20").replace(/[!'()*]/g,function(t){return"%"+t.charCodeAt(0).toString(16)})}function ze(e){if(e==null)return null;if(e instanceof HTMLFormElement)return ze(new FormData(e));if(e instanceof FormData){var t={};return e.forEach(function(n,o){t.hasOwnProperty(o)?(Array.isArray(t[o])||(t[o]=[t[o]]),t[o].push(n)):t[o]=n}),t}return e}function W(e,t=""){if(typeof e!="string"&&zt(e))for(var n="",o=0;o<e.length;o++)n+=Z(e[o]),o!==e.length-1&&(n+=",");return e==null?"":e instanceof HTMLInputElement?t+Z(e.value):e instanceof HTMLElement?t+Z(e.innerText):e instanceof Node?t+Z(e.textContent):t+Z(e)}var Nt,Qt,Gt,jt,H,Ye=I(()=>{Nt=(j(),f(_)),Qt=(se(),f(Fe)),Gt=(L(),f(F)),jt=(oe(),f(ce));H=function(e){if(e==null||e.type==null||[H.Type.Telephone,H.Type.SMS,H.Type.Mail].indexOf(e.type)===-1)throw new TypeError("Failed to construct 'Native.Messenger': Illegal constructor.");e=ze(e);var t=e.type+":"+W(e.to)+"?"+W(e.cc,"cc=")+W(e.bcc,"&bcc=")+W(e.subject,"&subject=")+W(e.body,"&body=");this.run=function(n=top){return new Promise(function(o,q){Qt(Nt,n,t).then(function(){o()}).catch(function(){return q(new jt("No url can be opened."))})})}};H.Type=Gt({Telephone:"tel",SMS:"sms",Mail:"mailto"});module.exports=H});var Xt={};function ve(e){return e*Math.PI/180}function Wt(e,t){var n=Math.cos(ve(e.longitude-t.longitude)),o=Math.cos(ve(e.latitude-t.latitude)),q=Math.cos(ve(e.latitude+t.latitude));return Math.acos((n*(o+q)+(o-q))/2)}function Ht(e,t){return e===void 0||t===void 0||e.latitude===t.latitude&&e.longitude===t.longitude?0:6384e3*Wt(e,t)}function Ke(e,t){var n=top.document.createElement("SCRIPT"),o="_"+Math.floor(Math.random()*(1<<30)),q="?";if(/\?[^&=]*=[^&=]*/.test(e)&&(q="&"),n.src=e+q+"callback="+o,top[o]!==void 0)return Ke(e,t);function h(){try{delete top[o]}catch{top[o]=void 0}n.parentNode.removeChild(n)}top[o]=function(r){t(r)},n.onload=function(){h()},n.onerror=function(){h()},top.document.head.appendChild(n)}var Kt,Zt,Jt,Ze=I(()=>{Kt=6e4,Zt=6e3;Jt=function(e,t){if(e==null)throw new TypeError("Failed to construct 'Native.Geolocation': Illegal constructor.");var n=navigator.geolocation!==void 0&&navigator.geolocation.watchPosition!==void 0,o,q,h,r;navigator.permissions&&navigator.permissions.query?navigator.permissions.query({name:"geolocation"}).then(function(s){s.addEventListener("change",function(){l(s.state!=="denied")}),l(s.state!=="denied")}).catch(function(s){l(!1)}):navigator.geolocation!==void 0&&navigator.geolocation.getCurrentPosition!==void 0?o=setInterval(function(){navigator.geolocation.getCurrentPosition(function(){l(!0)},function(s){s.code===s.PERMISSION_DENIED&&l(!1)})},Kt):l(!1);function l(s){n^s&&(n=s,q!==void 0&&(s?(clearInterval(q),q=v()):(navigator.geolocation.clearWatch(q),q=m())))}function u(s){if(s.distance=Ht(h,s),s.speed===void 0){var d=new Date().getTime();if(r===void 0)s.speed=0;else{var i=(d-r)/1e3;i>0?s.speed=s.distance/i:s.speed=0}}h=s,r=new Date().getTime()}function a(){if(n){q!==void 0&&clearInterval(q),q=v();return}Ke("http://ip-api.com/json/?fields=lat,lon,status",function(s){var d={};if(s.status==="success"){if(d.latitude=s.lat,d.longitude=s.lon,d.accuracy=-1,h!==void 0&&d.latitude===h.latitude&&d.longitude===h.longitude)return;u(d),e(d)}else t&&t()})}function m(){return a(),setInterval(a,Zt)}function v(){return navigator.geolocation.watchPosition(function(s){var d={};d.latitude=s.coords.latitude,d.longitude=s.coords.longitude,d.accuracy=s.coords.accuracy,s.coords.altitude!==null&&(d.altitude=s.coords.altitude),s.coords.altitudeAccuracy!==null&&(d.altitudeAccuracy=s.coords.altitudeAccuracy),s.coords.heading!==null&&(d.heading=s.coords.heading),s.coords.speed!==null&&(d.speed=s.coords.speed),u(d),e(d)},function(s){s.code===s.PERMISSION_DENIED?(n=!1,q!==void 0&&navigator.geolocation.clearWatch(q),q=m()):t&&t()})}this.disconnect=function(){q!==void 0&&(n?navigator.geolocation.clearWatch(q):clearInterval(q)),o!==void 0&&clearInterval(o),q=void 0,h=void 0,o=void 0},this.observe=function(){this.disconnect(),n?q=v():q=m()}};module.exports=Jt});we();var _t=(L(),f(F));module.exports=_t({OS:(j(),f(_)),Engine:(Ie(),f(nt)),Appearance:(qe(),f(ke)),Theme:(xe(),f(rt)),SafeAreaInset:(Me(),f(st)),TitlebarArea:(Ce(),f(lt)),KeyboardInset:(Le(),f(ut)),App:(Re(),f(gt)),Camera:(je(),f(Pt)),Messenger:(Ye(),f(Yt)),Geolocation:(Ze(),f(Xt)),Error:{InitializationError:(ne(),f(ue)),URLOpenError:(oe(),f(ce)),UserNotSelectedError:(fe(),f(Pe))}});
1
+ "use strict";var oe=Object.defineProperty;var Me=Object.getOwnPropertyDescriptor;var xe=Object.getOwnPropertyNames;var Ce=Object.prototype.hasOwnProperty;var Le=(e,t)=>()=>(e&&(t=e(e=0)),t);var Ue=(e,t)=>{for(var n in t)oe(e,n,{get:t[n],enumerable:!0})},De=(e,t,n,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of xe(t))!Ce.call(e,r)&&r!==n&&oe(e,r,{get:()=>t[r],enumerable:!(o=Me(t,r))||o.enumerable});return e};var Fe=e=>De(oe({},"__esModule",{value:!0}),e);var dt={};var ke=Le(()=>{(function(e,t){typeof exports=="object"&&typeof module<"u"?t():typeof define=="function"&&define.amd?define(t):t()})(0,function(){"use strict";function e(i){var a=this.constructor;return this.then(function(f){return a.resolve(i()).then(function(){return f})},function(f){return a.resolve(i()).then(function(){return a.reject(f)})})}function t(i){return new this(function(a,f){function u(E,b){if(b&&(typeof b=="object"||typeof b=="function")){var B=b.then;if(typeof B=="function")return void B.call(b,function(I){u(E,I)},function(I){V[E]={status:"rejected",reason:I},--v==0&&a(V)})}V[E]={status:"fulfilled",value:b},--v==0&&a(V)}if(!i||typeof i.length>"u")return f(new TypeError(typeof i+" "+i+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var V=Array.prototype.slice.call(i);if(V.length===0)return a([]);for(var v=V.length,w=0;V.length>w;w++)u(w,V[w])})}function n(i,a){this.name="AggregateError",this.errors=i,this.message=a||""}function o(i){var a=this;return new a(function(f,u){if(!i||typeof i.length>"u")return u(new TypeError("Promise.any accepts an array"));var V=Array.prototype.slice.call(i);if(V.length===0)return u();for(var v=[],w=0;V.length>w;w++)try{a.resolve(V[w]).then(f).catch(function(E){v.push(E),v.length===V.length&&u(new n(v,"All promises were rejected"))})}catch(E){u(E)}})}function r(i){return!(!i||typeof i.length>"u")}function p(){}function q(i){if(!(this instanceof q))throw new TypeError("Promises must be constructed via new");if(typeof i!="function")throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],h(i,this)}function c(i,a){for(;i._state===3;)i=i._value;i._state!==0?(i._handled=!0,q._immediateFn(function(){var f=i._state===1?a.onFulfilled:a.onRejected;if(f!==null){var u;try{u=f(i._value)}catch(V){return void A(a.promise,V)}d(a.promise,u)}else(i._state===1?d:A)(a.promise,i._value)})):i._deferreds.push(a)}function d(i,a){try{if(a===i)throw new TypeError("A promise cannot be resolved with itself.");if(a&&(typeof a=="object"||typeof a=="function")){var f=a.then;if(a instanceof q)return i._state=3,i._value=a,void m(i);if(typeof f=="function")return void h(function(u,V){return function(){u.apply(V,arguments)}}(f,a),i)}i._state=1,i._value=a,m(i)}catch(u){A(i,u)}}function A(i,a){i._state=2,i._value=a,m(i)}function m(i){i._state===2&&i._deferreds.length===0&&q._immediateFn(function(){i._handled||q._unhandledRejectionFn(i._value)});for(var a=0,f=i._deferreds.length;f>a;a++)c(i,i._deferreds[a]);i._deferreds=null}function h(i,a){var f=!1;try{i(function(u){f||(f=!0,d(a,u))},function(u){f||(f=!0,A(a,u))})}catch(u){if(f)return;f=!0,A(a,u)}}n.prototype=Error.prototype;var l=setTimeout;q.prototype.catch=function(i){return this.then(null,i)},q.prototype.then=function(i,a){var f=new this.constructor(p);return c(this,new function(u,V,v){this.onFulfilled=typeof u=="function"?u:null,this.onRejected=typeof V=="function"?V:null,this.promise=v}(i,a,f)),f},q.prototype.finally=e,q.all=function(i){return new q(function(a,f){function u(E,b){try{if(b&&(typeof b=="object"||typeof b=="function")){var B=b.then;if(typeof B=="function")return void B.call(b,function(I){u(E,I)},f)}V[E]=b,--v==0&&a(V)}catch(I){f(I)}}if(!r(i))return f(new TypeError("Promise.all accepts an array"));var V=Array.prototype.slice.call(i);if(V.length===0)return a([]);for(var v=V.length,w=0;V.length>w;w++)u(w,V[w])})},q.any=o,q.allSettled=t,q.resolve=function(i){return i&&typeof i=="object"&&i.constructor===q?i:new q(function(a){a(i)})},q.reject=function(i){return new q(function(a,f){f(i)})},q.race=function(i){return new q(function(a,f){if(!r(i))return f(new TypeError("Promise.race accepts an array"));for(var u=0,V=i.length;V>u;u++)q.resolve(i[u]).then(a,f)})},q._immediateFn=typeof setImmediate=="function"&&function(i){setImmediate(i)}||function(i){l(i,0)},q._unhandledRejectionFn=function(i){console!==void 0&&console&&console.warn("Possible Unhandled Promise Rejection:",i)};var s=function(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw Error("unable to locate global object")}();typeof s.Promise!="function"?s.Promise=q:(s.Promise.prototype.finally||(s.Promise.prototype.finally=e),s.Promise.allSettled||(s.Promise.allSettled=t),s.Promise.any||(s.Promise.any=o))})});var ft={};Ue(ft,{default:()=>Vt});module.exports=Fe(ft);function S(e){if(typeof Object.freeze!="function"){for(var t=Object.keys(e),n=0,o=t[n];n<t.length;n++)if(e.hasOwnProperty(o))try{Object.defineProperty(e,o,{writable:!1,configurable:!1})}catch{}return e}return Object.freeze(e)}function $(e){var t={"4.90":"ME","NT3.51":"NT 3.11","NT4.0":"NT 4.0","NT 5.0":"2000","NT 5.1":"XP","NT 5.2":"XP","NT 6.0":"Vista","NT 6.1":"7","NT 6.2":"8","NT 6.3":"8.1","NT 6.4":"10","NT 10.0":"10",ARM:"RT"},n=t[e];return n!==void 0?n:e}function ee(e){if(e!==void 0)return e.replace(/_/g,".")}function Oe(){var e=document.createElement("CANVAS");if(typeof e.getContext=="function"){var t=e.getContext("experimental-webgl")||e.getContext("webgl");if(t!==null){var n=t.getExtension("WEBGL_debug_renderer_info");if(typeof t.getParameter=="function")return n==null?t.getParameter(t.RENDERER):t.getParameter(n.UNMASKED_RENDERER_WEBGL)}}}var Re=function(e){for(var t,n={renderer:Oe(),name:"Unknown",version:void 0},o=[[/android\w*[-\/.; ]?([\d.]*)/i,"Android"],[/microsoft windows (vista|xp)/i,"Windows"],[/windows (?:phone(?: os)?|mobile|iot)[\/ ]?([.\w ]*)/i,"Windows",$],[/windows nt 6\.2; (arm)/i,"Windows",$],[/windows[\/ ]([ntce\d. ]+\w)(?!.+xbox)/i,"Windows",$],[/(?:win(?=[39n])|win 9x )([nt\d.]+)/i,"Windows",$],[/[adehimnop]{4,7}\b(?:.*os (\w+) like mac|; opera)/i,"iOS",ee],[/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d.]+)/i,"iOS",ee],[/cfnetwork\/.+darwin/i,"iOS"],[/mac os x ?([\w. ]*)/i,"MacOS",ee],[/(?:macintosh|mac_powerpc\b)(?!.+haiku)/i,"MacOS",ee]],r=0;r<o.length;r++)if(t=e.match(o[r][0]),t!==null)return n.name=o[r][1],o[r][2]!==void 0?n.version=o[r][2](t[1]):n.version=t[1],S(n);return S(n)}(navigator.userAgent),T=Re;function ce(e){return"LibWeb"}var Ne=function(e){for(var t,n={name:"Unknown",isWebView:/; ?wv|applewebkit(?!.*safari)/i.test(e),version:void 0},o=[[/windows.+ edge\/([\w.]+)/i,"EdgeHTML"],[/arkweb\/([\w.]+)/i,"ArkWeb"],[/webkit\/537\.36.+chrome\/(?!27)([\w.]+)/i,"Blink"],[/presto\/([\w.]+)/i,"Presto"],[/webkit\/([\w.]+)/i,"WebKit"],[/trident\/([\w.]+)/i,"Trident"],[/netfront\/([\w.]+)/i,"NetFront"],[/netsurf\/([\w.]+)/i,"NetSurf"],[/amaya\/([\w.]+)/i,"Amaya"],[/lynx\/([\w.]+)/i,"Lynx"],[/w3m\/([\w.]+)/i,"w3m"],[/goanna\/([\w.]+)/i,"Goanna"],[/servo\/([\w.]+)/i,"Servo"],[/ekiohflow\/([\w.]+)/i,"Flow"],[/khtml[\/ ]\(?([\w.]+)/i,"KHTML"],[/tasman[\/ ]\(?([\w.]+)/i,"Tasman"],[/links[\/ ]\(?([\w.]+)/i,"Links"],[/icab[\/ ]([23]\.[\d.]+)/i,"iCab"],[/\blibweb/i,"LibWeb",ce],[/ladybird\//i,"LibWeb",ce],[/rv:([\w.]{1,9})\b.+gecko/i,"Gecko"]],r=0;r<o.length;r++)if(t=e.match(o[r][0]),t!==null)return n.name=o[r][1],o[r][2]!==void 0?n.version=o[r][2](t[1]):n.version=t[1],S(n);return S(n)}(navigator.userAgent),ue=Ne;var te=function(){if(typeof window.matchMedia=="function")return window.matchMedia;var e=window.styleMedia||window.media;if(e===void 0){var t=document.createElement("STYLE"),n;t.type="text/css",t.id="match-media-polyfill",document.head.appendChild(t),typeof window.getComputedStyle=="function"?n=window.getComputedStyle(t):n=t.currentStyle,e={matchMedia:function(o){var r="@media "+o+"{ #"+t.id+" {width: 1px;} }";return t.styleSheet!==void 0?t.styleSheet.cssText=r:t.textContent=r,n.width==="1px"}}}return function(o){return{matches:e.matchMedia(o),media:o}}}();var z=[],L=te("(prefers-color-scheme: dark)"),O={addListener:function(e){function t(n){e(n.matches?O.Type.Dark:O.Type.Light)}if(z.push({original:e,wrapped:t}),typeof L.addEventListener=="function")return L.addEventListener("change",t);if(typeof L.addListener=="function")return L.addListener(t)},removeListener:function(e){for(var t=0;t<z.length;t++)if(z[t].original===e){var n=z[t].wrapped;if(typeof L.removeEventListener=="function")L.removeEventListener("change",n);else if(typeof L.removeListener=="function")return L.removeListener(n);z.splice(t,1);return}}};Object.defineProperty(O,"value",{get:function(){return L.matches?O.Type.Dark:O.Type.Light},configurable:!1,enumerable:!0});O.Type=S({Light:"light",Dark:"dark"});var C=O;var Y,y={light:void 0,dark:void 0,iosStatusBar:void 0,windowsPhone:void 0},Q,R=[],de=[];function ne(e){var t="",n,o;for(o=0;o<e.length;o++)t+="["+e[o][0]+"='"+e[o][1]+"']";if(n=top.document.head.querySelector("meta"+t),n===null){for(n=top.document.createElement("META"),o=0;o<e.length;o++)n[e[o][0]]=e[o][1];top.document.head.appendChild(n)}return n}function ie(){y.light===void 0&&(y.light=ne([["name","theme-color"],["media","(prefers-color-scheme: light)"]])),y.dark===void 0&&(y.dark=ne([["name","theme-color"],["media","(prefers-color-scheme: dark)"]])),y.iosStatusBar===void 0&&(y.iosStatusBar=ne([["name","apple-mobile-web-app-status-bar-style"]])),y.windowsPhone===void 0&&(y.windowsPhone=ne([["name","msapplication-navbutton-color"]]))}var K={addListener:function(e){if(typeof window.MutationObserver!="function")return;Q===void 0&&(Q=new MutationObserver(function(n){var o,r=!1;for(o=0;o<n.length;o++){var p=n[o],q=p.target,c=p.type;if(!(c!=="attributes"||q.tagName!=="META")&&[y.light,y.dark,y.iosStatusBar,y.windowsPhone].indexOf(q)!==-1){r=!0;break}}if(r)for(o=0;o<R.length;o++)R[o](K.value)}),Q.observe(top.document.head,{attributes:!0,childList:!0,subtree:!0}));function t(){ie(),y.dark.content!==y.light.content&&e(K.value)}C.addListener(t),de.push(t),R.push(e)},removeListener:function(e){if(!(typeof window.MutationObserver!="function"||Q===void 0)){for(var t=0;t<R.length;t++)if(R[t]===e){R.splice(t,1),de.splice(t,1);break}R.length===0&&(Q.disconnect(),Q=void 0)}},setTheme:function(e){ie(),Y!==void 0&&(C.removeListener(Y),Y=void 0),Y=function(o){var r=e[o];r!==void 0&&(r.iosStatusBar!==void 0&&(y.iosStatusBar.content=r.iosStatusBar),r.windowsPhone!==void 0&&(y.windowsPhone.content=r.iosStatusBar))},C.addListener(Y);var t=e.light,n=e.dark;n!==void 0&&n.theme!==void 0&&(y.dark.content=n.theme),t!==void 0&&(t.theme!==void 0&&(y.light.content=t.theme),C.value==="light"&&(t.iosStatusBar!==void 0&&(y.iosStatusBar.content=t.iosStatusBar),t.windowsPhone!==void 0&&(y.windowsPhone.content=t.windowsPhone))),n!==void 0&&(n.theme!==void 0&&(y.dark.content=n.theme),C.value==="dark"&&(n.iosStatusBar!==void 0&&(y.iosStatusBar.content=n.iosStatusBar),n.windowsPhone!==void 0&&(y.windowsPhone.content=n.windowsPhone)))}};Object.defineProperty(K,"value",{get:function(){var e={};return ie(),y[C.value].content!==""&&(e.theme=y[C.value].content),y.iosStatusBar.content!==""&&(e.iosStatusBar=y.iosStatusBar.content),y.windowsPhone.content!==""&&(e.windowsPhone=y.windowsPhone.content),e},configurable:!1,enumerable:!0});K.Type=S({Theme:"theme",IOSStatusBar:"iosStatusBar",WindowsPhone:"windowsPhone"});var Ve=K;var re;function Pe(){return!window.CSS||typeof CSS.supports!="function"?null:CSS.supports("x:env(x)")?"env":CSS.supports("x:constant(x)")?"constant":null}var Qe=function(){if(typeof window.requestAnimationFrame=="function")return window.requestAnimationFrame;if(typeof window.msRequestAnimationFrame=="function")return window.msRequestAnimationFrame;if(typeof window.mozRequestAnimationFrame=="function")return window.mozRequestAnimationFrame;if(typeof window.webkitRequestAnimationFrame=="function")return window.webkitRequestAnimationFrame;if(typeof window.oRequestAnimationFrame=="function")return window.oRequestAnimationFrame;var e=0;return function(t){var n=new Date().getTime(),o=Math.max(0,16-(n-e)),r=setTimeout(function(){t(n+o)},o);return e=n+o,r}}();function N(e,t){re===void 0&&(re=Pe());var n={addListener:function(s){r.push(s)},removeListener:function(s){for(var i=0;i<r.length;i++)if(r[i]===s){r.splice(i,1);break}},value:{}},o=document.createElement("div"),r=[],p=[],q=!1,c=window.ShadowRoot!==void 0;if(o.dataset!==void 0&&(o.dataset[e]=""),c){var d=document.createElement("style");d.innerText=":host { position: absolute !important; top: 0 !important; left: 0 !important; width: 0 !important; height: 0 !important; visibility: hidden !important; overflow: hidden !important; } :host > div { position: absolute; width: 100px; height: 200px; overflow: hidden; box-sizing: border-box; } .pixel { transition: 0s; animation: none; width: 400px; height: 400px; } .percent { transition: 0s; animation: none; width: 250%; height: 250%; } ",o=o.attachShadow({mode:"closed"}),o.appendChild(d)}else o.style.position="absolute",o.style.top="0",o.style.left="0",o.style.width="0",o.style.height="0",o.style.visibility="hidden",o.style.overflow="hidden";for(var A in t)t.hasOwnProperty(A)&&l(o,A,t[A],n.value);function m(){q=!1;for(var s=0;s<r.length;s++)r[s](n.value);p.length=0}function h(s){p.indexOf(s)===-1&&p.push(s),q||(q=!0,setTimeout(function(){Qe(m)},0))}function l(s,i,a,f){var u=document.createElement("DIV"),V=document.createElement("DIV"),v=document.createElement("DIV"),w=document.createElement("DIV"),E=1e4;u.style.paddingBottom=V.style.paddingBottom=re+"("+a+")",c?(v.className="pixel",w.className="percent"):(u.style.position=V.style.position="absolute",u.style.width=V.style.width="100px",u.style.height=V.style.height="200px",u.style.overflow=V.style.overflow="hidden",u.style.boxSizing=V.style.boxSizing="border-box",v.style.transition=w.style.transition="0s",v.style.animation=w.style.animation="none",v.style.width=v.style.height="400px",w.style.width=w.style.height="250%"),u.appendChild(v),V.appendChild(w),s.appendChild(u),s.appendChild(V),u.scrollTop=V.scrollTop=E;var b=u.scrollTop,B=V.scrollTop;function I(){var U=this.scrollTop;this===u&&U===b||this===V&&U===B||(u.scrollTop=V.scrollTop=E,b=u.scrollTop,B=V.scrollTop,h(i))}u.addEventListener("scroll",I,!1),V.addEventListener("scroll",I,!1);var _=window.getComputedStyle(u);Object.defineProperty(f,i,{get:function(){return parseFloat(_.paddingBottom)},configurable:!1,enumerable:!0})}return document.addEventListener("DOMContentLoaded",function s(){document.removeEventListener("DOMContentLoaded",s),document.body.appendChild(o)}),n}var fe=N("safeAreaInset",{top:"safe-area-inset-top",bottom:"safe-area-inset-bottom",left:"safe-area-inset-left",right:"safe-area-inset-right"});var pe=N("titlebarArea",{x:"titlebar-area-x",y:"titlebar-area-y",width:"titlebar-area-width",height:"titlebar-area-height"});var me=N("keyboardInset",{top:"keyboard-inset-top",bottom:"keyboard-inset-bottom",left:"keyboard-inset-left",right:"keyboard-inset-right",width:"keyboard-inset-width",height:"keyboard-inset-height"});function Ge(e){return e.document.hidden!==void 0?e.document.hidden:e.document.webkitHidden!==void 0?e.document.webkitHidden:!0}function he(e,t){var n=e.document.createElement("A"),o;n.href=t,e.document.body.appendChild(n);try{o=new e.MouseEvent("click",{bubbles:!0,cancelable:!0,view:e})}catch{o=e.document.createEvent("MouseEvents"),o.initMouseEvent("click",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null)}n.dispatchEvent(o),e.document.body.removeChild(n)}function ye(e,t,n,o){return new Promise(function(r,p){var q;function c(){clearTimeout(q),t.removeEventListener("blur",c),t.addEventListener("focus",d)}function d(){t.removeEventListener("focus",d),r()}q=setTimeout(function(){p(),t.removeEventListener("blur",c)},o),t.addEventListener("blur",c),he(t,n)})}function je(e,t,n){return new Promise(function(o,r){var p,q=parseInt(e.version)>=8;function c(){clearTimeout(p),t.addEventListener("focus",d),t.removeEventListener("blur",c)}function d(){p=setTimeout(function(){Ge(t)?o():r(),q?t.document.removeEventListener("visibilitychange",A):t.document.removeEventListener("pagehide",A)},2e3),t.removeEventListener("focus",d)}function A(){clearTimeout(p),t.removeEventListener("blur",c),t.removeEventListener("focus",d),q?t.document.removeEventListener("visibilitychange",A):t.document.removeEventListener("pagehide",A),o()}t.addEventListener("blur",c),q?t.document.addEventListener("visibilitychange",A):t.document.addEventListener("pagehide",A),he(t,n)})}function ze(e,t,n){return ye(e,t,n,1e3)}function Ye(e,t,n){return ye(e,t,n,750)}function Z(e,t,n){if(n)switch(e.name){case"Android":return ze(e,t,n);case"iOS":return je(e,t,n);case"Windows":case"MacOS":return Ye(e,t,n)}return Promise.reject()}function P(e){function t(n){if(!(this instanceof t))return new t(n);this.name=e,this.message=n,Error.captureStackTrace?Error.captureStackTrace(this,t):this.stack=new Error().stack}return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var G=P("InitializationError");var j=P("URLOpenError");function ve(e){try{var t=new XMLHttpRequest;if(t.open("GET","http://itunes.apple.com/lookup?bundleId="+e,!1),t.send(),t.status===200){var n=JSON.parse(t.response);if(n.results.length>0)return n.results[0].trackId}return}catch{return}}function qe(e){return/\w+:\/\/.*/.test(e)?e:e+"://"}function Ke(e){return e.replace(/:\/\/.*$/,"")}var g=function(e){if(e===void 0)throw new TypeError("Failed to construct 'Native.App': Illegal constructor.");this.run=function(){return new Promise(function(l,s){s(new G("Initialization error."))})};var t,n,o,r,p=Promise.resolve(),q=[],c;switch(T.name){case"Android":if(e.android===void 0)return;var d,A,m;if(t=e.android.scheme,n=e.android.package,o=e.android.fallback,A=e.android.intent,c=e.android.isOpenWebStore,A!==void 0&&t===void 0&&(d=A.match(/scheme=([^;]*)/),d!==null&&(t=d[1])),A!==void 0&&n===void 0&&(d=A.match(/package=([^;]*)/),d!==null&&(n=d[1])),A!==void 0&&o===void 0&&(d=A.match(/S\.browser_fallback_url=([^;]*)/),d!==null&&(o=d[1])),t===void 0&&n===void 0&&o===void 0)return;if(A===void 0&&(A="intent://open#Intent;",t!==void 0&&(A=A+"scheme="+Ke(t)+";"),n!==void 0&&(A=A+"package="+n+";"),A=A+"end;"),window.chrome!==void 0&&(d=navigator.userAgent.match(/chrom(?:e|ium)\/([\w.]+)/i),d!==null&&(m=parseInt(d[1]))),m>=25&&A!==void 0)if(m<=42){p=new Promise(function(l){var s=top.document.createElement("IFRAME"),i="intent://open#Intent;scheme=;end;",a=!1;function f(V){a||(a=!0,l(V),s.removeEventListener("load",u),top.document.body.removeChild(s))}function u(){f(s.src!==i)}s.addEventListener("load",u),s.src=i,top.document.body.appendChild(s),setTimeout(function(){f(!1)},500)}).then(function(l){l?q.push([A,g.State.Intent]):q.push([A.replace(/package=.*?;/,"").replace(/S\.browser_fallback_url=.*?;/,""),g.State.Intent]),o!==void 0?q.push([o,g.State.Fallback]):n!==void 0&&(q.push(["market://details?id="+n,g.State.Store]),c&&q.push(["https://play.google.com/store/apps/details?id="+n,g.State.Store]))});break}else q.push([A,g.State.Intent]);else t!==void 0&&q.push([qe(t),g.State.Scheme]);o!==void 0?q.push([o,g.State.Fallback]):n!==void 0&&(q.push(["market://details?id="+n,g.State.Store]),c&&q.push(["https://play.google.com/store/apps/details?id="+n,g.State.Store]));break;case"Windows":if(e.windows===void 0)return;t=e.windows.scheme,n=e.windows.productId,c=e.windows.isOpenWebStore,o=e.windows.fallback,t!==void 0&&q.push([qe(t),g.State.Scheme]),o!==void 0?q.push([o,g.State.Fallback]):n!==void 0&&(q.push(["ms-windows-store://pdp/?ProductId="+n,g.State.Store]),c&&q.push(["https://apps.microsoft.com/detail/"+n,g.State.Store]));break;case"iOS":if(e.ios===void 0)return;var h=e.ios.universal;t=e.ios.scheme,r=e.ios.package,n=e.ios.trackId,o=e.ios.fallback,h!==void 0&&parseInt(T.version)>=9?q.push([h,g.State.Universal]):t!==void 0&&q.push([t,g.State.Scheme]),n===void 0&&r!==void 0&&(n=ve(r)),o!==void 0?q.push([o,g.State.Fallback]):n!==void 0&&(q.length===0?q.push(["itms-apps://itunes.apple.com/app/id"+n+"?mt=8",g.State.Store]):q.push(["https://itunes.apple.com/kr/app/id"+n+"?mt=8",g.State.Store]));break;case"MacOS":if(e.mac===void 0)return;t=e.mac.scheme,r=e.ios.package,n=e.mac.trackId,o=e.mac.fallback,c=e.mac.isOpenWebStore,t!==void 0&&q.push([qe(t),g.State.Scheme]),n===void 0&&r!==void 0&&(n=ve(r)),o!==void 0?q.push([o,g.State.Fallback]):n!==void 0&&(q.push(["macappstore://itunes.apple.com/app/id"+n+"?mt=12",g.State.Store]),c&&q.push(["https://apps.apple.com/us/app/id"+n+"?mt=12",g.State.Store]));break;default:return}this.run=function(l=top){return p.then(function(){return console.log(q),new Promise(function(s,i){function a(f=0){if(f>=q.length)return i(new j("No url can be opened."));var u=q[f][0],V=q[f][1];return Z(T,l,u).then(function(){s(V)}).catch(function(v){a(++f)})}return a()})})}};g.State=S({Scheme:0,Universal:1,Intent:2,Fallback:3,Store:4});var ge=g;var W=P("UserNotSelectedError");var Ae=!1;function Ze(e,t,n){var o=t.getVideoTracks()[0].getSettings(),r=top.document.documentElement.style.overflow,p=o.width||640,q=o.height||480,c=tt(e),d=He(),A=Je(),m=$e(),h=et(e),l=_e(),s=we(),i=we(),a=nt(),f=ot(),u=top.innerHeight*.4/q*p/2,V=!1,v,w=[],E=0,b;m.appendChild(h),e===M.Type.Video&&d.appendChild(l),d.appendChild(A),d.appendChild(c),d.appendChild(m),d.appendChild(s),d.appendChild(i),d.appendChild(a),d.appendChild(f),A.style.left=c.style.left="calc(50% - "+u+"px)",s.style.left=i.style.right="0",a.style.left=f.style.right="calc(50% - "+(u-50)+"px)",s.style.width=i.style.width="calc(50% - "+u+"px)";function B(){}function I(){b!==void 0&&(clearInterval(b),b=void 0)}function _(U,F,x){be(U).then(function(k){c.src=k,A.style.display=m.style.display="none",c.style.display=a.style.display=f.style.display="block",a.onclick=function(){F({blob:U,dataURL:k})},f.onclick=function(){typeof window.URL=="function"?URL.revokeObjectURL(k):typeof window.webkitURL=="function"&&webkitURL.revokeObjectURL(k),E=0,A.style.display=m.style.display="block",c.style.display=a.style.display=f.style.display="none"}}).catch(function(k){x(k)})}return A.srcObject!==void 0?(A.srcObject=t,B=function(){A.srcObject=null}):A.mozSrcObject!==void 0&&(A.mozSrcObject=t,B=function(){A.mozSrcObject=null}),A.onloadedmetadata=function(){A.muted=!0,A.play()},top.document.documentElement.style.overflow="hidden",top.document.body.appendChild(d),n.push(function(){top.document.documentElement.style.overflow=r,top.document.body.removeChild(d),v!==void 0&&v.state!=="inactive"&&(v.stop(),v=void 0),B(),I()}),new Promise(function(U,F){top.document.addEventListener("keyup",function x(k){n.push(function(){top.document.removeEventListener("keyup",x)}),(k.keyCode===27||k.code==="Escape")&&F(new W("User did not select."))}),m.onclick=function(){try{if(e===M.Type.Image){qt();var x=document.createElement("canvas");x.width=p,x.height=q;var k=x.getContext("2d");k.drawImage(A,0,0,x.width,x.height),We(x).then(function(D){_(D,U,F)}).catch(function(D){F(D)})}else V?(rt(),v.stop(),h.style.borderRadius=h.style.WebkitBorderRadius=h.style.MozBorderRadius="50%",h.style.left="3px",h.style.top="3px",h.style.width="44px",h.style.height="44px"):(it(),b=setInterval(function(){++E,l.innerText=ae(E/6e3)+":"+ae(E/100%60)+":"+ae(E%100)},10),v=new MediaRecorder(A.srcObject||A.mozSrcObject),w=[],v.ondataavailable=function(D){D.data.size>0&&w.push(D.data)},v.onstop=function(){I(),_(new Blob(w,{type:"video/webm"}),U,F)},v.start(),h.style.borderRadius=h.style.WebkitBorderRadius=h.style.MozBorderRadius="10%",h.style.top="12px",h.style.left="12px",h.style.width="27px",h.style.height="27px"),V=!V}catch(D){F(D)}}})}function ae(e){return e=parseInt(e),e<=9?"0"+e:e}function be(e){return new Promise(function(t,n){try{var o=new FileReader;o.onloadend=function(){t(o.result)},o.onerror=function(r){n(r)},o.readAsDataURL(e)}catch(r){n(r)}})}function We(e){return new Promise(function(t,n){if(typeof e.toBlob=="function")e.toBlob(function(d){t(d)},"image/png");else if(typeof e.msToBlob=="function")t(e.msToBlob());else try{for(var o=e.toDataURL("image/png"),r=atob(o.split(",")[1]),p=new ArrayBuffer(r.length),q=new Uint8Array(p),c=0;c<r.length;c++)q[c]=r.charCodeAt(c);t(new Blob([p],{type:o.split(",")[0].split(":")[1].split(";")[0]}))}catch(d){n(d)}})}function He(){var e=document.createElement("DIV"),t=Xe();return e.style.position="absolute",e.style.left="0",e.style.top=top.scrollY+"px",e.style.width="100%",e.style.height="100%",e.style.zIndex="2147483647",e.appendChild(t),e}function we(){var e=document.createElement("DIV");return e.style.position="absolute",e.style.top="0",e.style.height="100%",e.style.backgroundColor="#000",e}function Je(){var e=document.createElement("VIDEO");return e.style.position="absolute",e.style.top="30%",e.style.height="40%",e.controls=!1,e}function Xe(){var e=document.createElement("DIV");return e.style.position="absolute",e.style.left="0",e.style.top="0",e.style.width="100%",e.style.height="100%",e.style.backgroundColor="#111",e}function _e(){var e=document.createElement("DIV");return e.style.position="absolute",e.style.left="calc(50% - 50px)",e.style.top="calc(20% - 12px)",e.style.width="100px",e.style.height="24px",e.style.color="#FFF",e.style.fontWeight="400",e.style.textAlign="center",e.style.fontVariantNumeric="tabular-nums",e.style.fontFeatureSettings=e.style.WebkitFontFeatureSettings=e.style.MozFontFeatureSettings='"tnum"',e.innerText="00:00:00",e}function $e(){var e=document.createElement("BUTTON");return e.style.position="relative",e.style.left="calc(50% - 30px)",e.style.top="calc(80% - 30px)",e.style.width="60px",e.style.height="60px",e.style.backgroundColor="#FFFFFF00",e.style.borderRadius=e.style.WebkitBorderRadius=e.style.MozBorderRadius="50%",e.style.cursor="pointer",e.style.border="5px solid #FFF",e}function et(e){var t=document.createElement("DIV");return t.style.position="absolute",t.style.left="3px",t.style.top="3px",t.style.width="44px",t.style.height="44px",t.style.borderRadius="50%",e===M.Type.Image?t.style.backgroundColor="#FFF":t.style.backgroundColor="#F00",te("(prefers-reduced-motion: no-preference)").matches&&(t.style.transitionProperty=t.style.WebkitTransitionProperty=t.style.MozTransitionProperty="border-radius, width, height, top, left",t.style.transitionDuration=t.style.WebkitTransitionDuration=t.style.MozTransitionDuration="150ms",t.style.transitionTimingFunction=t.style.WebkitTransitionTimingFunction=t.style.MozTransitionTimingFunction="ease"),t}function tt(e){var t;return e===M.Type.Video?(t=document.createElement("VIDEO"),t.controls=!0):t=document.createElement("IMG"),t.style.position="absolute",t.style.top="30%",t.style.height="40%",t.style.display="none",t}function nt(){var e=document.createElement("BUTTON"),t=document.createElement("DIV");return e.style.display="none",e.style.position="absolute",e.style.top="calc(80% - 15px)",e.style.width="30px",e.style.height="30px",t.style.position="relative",t.style.top="-2px",t.style.display="inline-block",t.style.transform=t.style.webkitTransform=t.style.msTransform=t.style.OTransform=t.style.MozTransform="rotate(45deg)",t.style.width="16px",t.style.height="25px",t.style.borderBottom=t.style.borderRight="5px solid #FFF",e.appendChild(t),e}function ot(){var e=document.createElement("BUTTON"),t=document.createElement("DIV"),n=document.createElement("DIV");return e.style.display="none",e.style.position="absolute",e.style.top="calc(80% - 15px)",e.style.width="30px",e.style.height="30px",t.style.position=n.style.position="relative",t.style.top="1px",t.style.left="3px",t.style.display=n.style.display="inline-block",t.style.transform=t.style.webkitTransform=t.style.msTransform=t.style.OTransform=t.style.MozTransform="rotate(45deg)",t.style.height=n.style.height="28px",t.style.borderRight=n.style.borderRight="5px solid #FFF",n.style.top="1px",n.style.left="-2px",n.style.transform=n.style.webkitTransform=n.style.msTransform=n.style.OTransform=n.style.MozTransform="rotate(315deg)",e.appendChild(t),e.appendChild(n),e}function se(e){typeof window.Audio=="function"&&new Audio("data:audio/mpeg;base64,"+e).play()}function it(){se("SUQzBAAAAAAAIlRTU0UAAAAOAAADTGF2ZjYxLjQuMTAwAAAAAAAAAAAAAA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qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq//tAZPgA8jUc2nmJGNAAAA0gAAABCPR5XeSYasAAADSAAAAEqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqr/+zBk+YDx4w1V8SYxMAAADSAAAAEG3DVNgyTAQAAANIAAAASqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqr/+xBk+4HxYQrQ4MNIwgAADSAAAAEDyCtBIYRkqAAANIAAAASqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqv/7EGTjD/BVAM6oAAAIAAANIAAAAQAAAf4AAAAgAAA0gAAABKqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq")}var M=function(e){if(e==null||e.type==null||!M.isSupported||[M.Type.Image,M.Type.Video].indexOf(e.type)===-1)throw new TypeError("Failed to construct 'Native.Camera': Illegal constructor.");var t=this;this.run=function(){return new Promise(function(q,c){c(new G("Initialization error."))})},this.bind=function(q){q.onclick=function(c){c.preventDefault(),t.run()}};var n=e.type;switch(T.name){case"Android":case"iOS":var o=document.createElement("INPUT");o.type="file",o.capture="environment",o.accept=e.type+"/*",this.run=function(){return new Promise(function(q,c){o.onchange=function(){var d=o.files;if(d.length>0){var A=d[0];be(A).then(function(m){q({blob:A,dataURL:m})}).catch(function(m){c(m)})}else c(new W("User did not select."))},o.click()})};return;case"Windows":case"MacOS":var r;if(navigator.mediaDevices&&typeof navigator.mediaDevices.getUserMedia=="function")r=function(q){return navigator.mediaDevices.getUserMedia(q)};else{var p=navigator.getUserMedia||navigator.webkitGetUserMedia||navigator.mozGetUserMedia||navigator.msGetUserMedia;typeof p=="function"&&(r=function(q){return new Promise(function(c,d){p.call(navigator,q,c,d)})})}this.run=function(){return new Promise(function(q,c){if(Ae)return c(new Error("Native.Camera is already running."));Ae=!0;var d=[];function A(){Ae=!1;for(var m=0;m<d.length;m++)d[m]()}try{r({video:!0,audio:n===M.Type.Video}).then(function(m){d.push(function(){for(var h=m.getTracks(),l=0;l<h.length;l++)h[l].stop()}),Ze(n,m,d).then(function(h){q(h)}).catch(function(h){c(h)}).finally(function(){A()})}).catch(function(m){A(),c(m)})}catch(m){A(),c(m)}})};break;default:}};M.Type=S({Image:"image",Video:"video"});Object.defineProperty(M,"isSupported",{get(){return T.name==="Android"||T.name==="iOS"||(typeof navigator.getUserMedia=="function"||typeof navigator.webkitGetUserMedia=="function"||typeof navigator.mozGetUserMedia=="function"||typeof navigator.msGetUserMedia=="function"||navigator.mediaDevices!==void 0&&typeof navigator.mediaDevices.getUserMedia=="function")&&new Blob(["\xE4"]).size===2&&typeof window.MediaRecorder=="function"},configurable:!1,enumerable:!0});var Ee=M;function At(e){if(e==null)return!1;var t=e.length;return typeof t=="number"&&t>=0&&!(t%1)}function H(e){return encodeURIComponent(e).replace(/%20/g,"%20").replace(/[!'()*]/g,function(t){return"%"+t.charCodeAt(0).toString(16)})}function Se(e){if(e==null)return null;if(e instanceof HTMLFormElement)return Se(new FormData(e));if(e instanceof FormData){var t={};return e.forEach(function(n,o){t.hasOwnProperty(o)?(Array.isArray(t[o])||(t[o]=[t[o]]),t[o].push(n)):t[o]=n}),t}return e}function J(e,t=""){if(typeof e!="string"&&At(e))for(var n="",o=0;o<e.length;o++)n+=H(e[o]),o!==e.length-1&&(n+=",");return e==null?"":e instanceof HTMLInputElement?t+H(e.value):e instanceof HTMLElement?t+H(e.innerText):e instanceof Node?t+H(e.textContent):t+H(e)}var X=function(e){if(e==null||e.type==null||[X.Type.Telephone,X.Type.SMS,X.Type.Mail].indexOf(e.type)===-1)throw new TypeError("Failed to construct 'Native.Messenger': Illegal constructor.");e=Se(e);var t=e.type+":"+J(e.to)+"?"+J(e.cc,"cc=")+J(e.bcc,"&bcc=")+J(e.subject,"&subject=")+J(e.body,"&body=");this.run=function(n=top){return new Promise(function(o,r){Z(T,n,t).then(function(){o()}).catch(function(){return r(new j("No url can be opened."))})})}};X.Type=S({Telephone:"tel",SMS:"sms",Mail:"mailto"});var Ie=X;var at=6e4,st=6e3;function le(e){return e*Math.PI/180}function lt(e,t){var n=Math.cos(le(e.longitude-t.longitude)),o=Math.cos(le(e.latitude-t.latitude)),r=Math.cos(le(e.latitude+t.latitude));return Math.acos((n*(o+r)+(o-r))/2)}function ct(e,t){return e===void 0||t===void 0||e.latitude===t.latitude&&e.longitude===t.longitude?0:6384e3*lt(e,t)}function Be(e,t){var n=top.document.createElement("SCRIPT"),o="_"+Math.floor(Math.random()*(1<<30)),r="?";if(/\?[^&=]*=[^&=]*/.test(e)&&(r="&"),n.src=e+r+"callback="+o,top[o]!==void 0)return Be(e,t);function p(){try{delete top[o]}catch{top[o]=void 0}n.parentNode.removeChild(n)}top[o]=function(q){t(q)},n.onload=function(){p()},n.onerror=function(){p()},top.document.head.appendChild(n)}var ut=function(e,t){if(e==null)throw new TypeError("Failed to construct 'Native.Geolocation': Illegal constructor.");var n=navigator.geolocation!==void 0&&navigator.geolocation.watchPosition!==void 0,o,r,p,q;navigator.permissions&&navigator.permissions.query?navigator.permissions.query({name:"geolocation"}).then(function(l){l.addEventListener("change",function(){c(l.state!=="denied")}),c(l.state!=="denied")}).catch(function(l){c(!1)}):navigator.geolocation!==void 0&&navigator.geolocation.getCurrentPosition!==void 0?o=setInterval(function(){navigator.geolocation.getCurrentPosition(function(){c(!0)},function(l){l.code===l.PERMISSION_DENIED&&c(!1)})},at):c(!1);function c(l){n^l&&(n=l,r!==void 0&&(l?(clearInterval(r),r=h()):(navigator.geolocation.clearWatch(r),r=m())))}function d(l){if(l.distance=ct(p,l),l.speed===void 0){var s=new Date().getTime();if(q===void 0)l.speed=0;else{var i=(s-q)/1e3;i>0?l.speed=l.distance/i:l.speed=0}}p=l,q=new Date().getTime()}function A(){if(n){r!==void 0&&clearInterval(r),r=h();return}Be("http://ip-api.com/json/?fields=lat,lon,status",function(l){var s={};if(l.status==="success"){if(s.latitude=l.lat,s.longitude=l.lon,s.accuracy=-1,p!==void 0&&s.latitude===p.latitude&&s.longitude===p.longitude)return;d(s),e(s)}else t&&t()})}function m(){return A(),setInterval(A,st)}function h(){return navigator.geolocation.watchPosition(function(l){var s={};s.latitude=l.coords.latitude,s.longitude=l.coords.longitude,s.accuracy=l.coords.accuracy,l.coords.altitude!==null&&(s.altitude=l.coords.altitude),l.coords.altitudeAccuracy!==null&&(s.altitudeAccuracy=l.coords.altitudeAccuracy),l.coords.heading!==null&&(s.heading=l.coords.heading),l.coords.speed!==null&&(s.speed=l.coords.speed),d(s),e(s)},function(l){l.code===l.PERMISSION_DENIED?(n=!1,r!==void 0&&navigator.geolocation.clearWatch(r),r=m()):t&&t()})}this.disconnect=function(){r!==void 0&&(n?navigator.geolocation.clearWatch(r):clearInterval(r)),o!==void 0&&clearInterval(o),r=void 0,p=void 0,o=void 0},this.observe=function(){this.disconnect(),n?r=h():r=m()}},Te=ut;Promise.resolve().then(()=>ke());var Vt=S({OS:T,Engine:ue,Appearance:C,Theme:Ve,SafeAreaInset:fe,TitlebarArea:pe,KeyboardInset:me,App:ge,Camera:Ee,Messenger:Ie,Geolocation:Te,Error:{InitializationError:G,URLOpenError:j,UserNotSelectedError:W}});
2
2
  //# sourceMappingURL=index.cjs.map