| 1 |
- !function(){var e;try{function t(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function n(e){return(n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function i(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function o(e,t,n){return(o=i()?Reflect.construct:function(e,t,n){var i=[null];i.push.apply(i,t);var o=new(Function.bind.apply(e,i));return n&&r(o,n.prototype),o}).apply(null,arguments)}function a(e){var t=void 0;return(a=function(e){if(null===e||(i=e,-1===Function.toString.call(i).indexOf("[native code]")))return e;var i;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,a)}function a(){return o(e,arguments,n(this).constructor)}return a.prototype=Object.create(e.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),r(a,e)})(e)}var c=window.encodeURIComponent;function u(){}function l(e){return e}function s(){return Math.random().toString(36).slice(2)}var f=l("210818-115623-278"),p=l("wwopendata.web.js"),d=l(""),h=l(""),v=l("ksu0ho6y.03bgLRzUNFqcZYQbKL4PoZkv0iRJ7uJF8muMG7VSTUwn"),w=l(p+"@"+f),y=location.origin||location.protocol+"//"+location.host,g="https://open.work.weixin.qq.com",m=g+"/wwopen/openData/frame/index#origin="+c(y),b=[],O=v;function E(e){b.unshift({level:2,msg:e})}function S(e){b.unshift({level:4,msg:e}),_()}function _(){0!==b.length&&(!function(e,t){var n=new XMLHttpRequest;"withCredentials"in n||(n=new XDomainRequest);for(var r=[],i=t.length,o=0;o<i;o++)r.push(["msg["+o+"]="+c(t[o].msg),"level["+o+"]="+t[o].level].join("&"));r.push("count="+i),n.open("POST",e),n.setRequestHeader("Content-type","application/x-www-form-urlencoded"),n.send(r.join("&"))}("https://aegis.qq.com/collect?id=LsKWKztteVKOjNJGsl&from="+y+"&sessionId="+c(O)+"&version="+c(w),b.reverse()),b=[])}var C="[ww-open-data]";function A(){}var j={};function x(e,t){j.hasOwnProperty(e)||(j[e]=[]),j[e].push(t)}function D(e,t){if(j.hasOwnProperty(e)){var n=j[e],r=n.indexOf(t);r>=0&&n.splice(r,1)}}function k(e,t,n){if(void 0===n&&(n=!1),j.hasOwnProperty(e))if(n){var r={type:e,detail:t};j[e].forEach((function(e){try{e(r)}catch(e){}}))}else k(e,t,!0)}function T(e,t){return function(){try{return t.apply(this,arguments)}catch(t){R(t,e),k("error",t)}}}e={captureException:R};var M=F(A,E),P=F((function(){}),S);function R(e,t){S("["+t+"] "+N(e))}function F(e,t){return function(){for(var n=[],r=0,i=arguments.length;r<i;r++)n.push(q(arguments[r]));t(n.join(" ")),e.apply(void 0,arguments)}}function q(e){return e?"object"!=typeof e?e:"string"==typeof e.stack?N(e):JSON.stringify(e):e}function N(e){return e+" "+e.stack}function I(e,t,n){Object.defineProperty(e,t,{value:n,enumerable:!0})}function W(e){var t=Object.create(null);return Object.getOwnPropertyNames(e).forEach((function(n){if("prototype"!==n){var r=Object.getOwnPropertyDescriptor(e,n),i=Object.create(null);I(i,"value",r.value),I(i,"get",r.get),I(i,"set",r.set),I(t,n,Object.freeze(i))}})),t}var L,U,J,z=function(){var e={JSON:window.JSON,Promise:window.Promise,Uint8Array:window.Uint8Array,Function:window.Function,Object:window.Object,Array:window.Array,String:window.String,WeakMap:window.WeakMap,Element:window.Element,ShadowRoot:window.ShadowRoot,Image:window.Image,Node:window.Node,EventTarget:window.EventTarget,HTMLIFrameElement:window.HTMLIFrameElement,CanvasRenderingContext2D:window.CanvasRenderingContext2D},t={fetch:window.fetch,parseInt:window.parseInt,setTimeout:window.setTimeout},n=Object.create(null);return I(n,"protected",Object.create(null)),I(n,"singleton",Object.create(null)),Object.keys(e).forEach((function(t){e[t]&&(I(n.singleton,t,e[t]),I(n.protected,t,W(e[t])),e[t].prototype&&(I(n.protected[t],"prototype",W(e[t].prototype)),Object.freeze(n.protected[t].prototype)),Object.freeze(n.protected[t]))})),Object.keys(t).forEach((function(e){I(n.singleton,e,t[e])})),I(n.singleton,"call",Function.prototype.call.bind(Function.prototype.call)),Object.defineProperty(n,"__version__",{value:w}),Object.freeze(n.protected),Object.freeze(n.singleton),Object.freeze(n),n}(),H=null==z?void 0:z.protected,B=null==z?void 0:z.singleton,V=(null==B?void 0:B.call)||Function.prototype.call.bind(Function.prototype.call),K=function(e){return e&&V(X,G,e)},X=ye(H,"Function.prototype.bind"),G=ye(H,"Function.prototype.call"),Y=(ye(H,"Object.create"),ye(H,"Object.keys")),Q=ye(H,"Object.defineProperty"),Z=ye(B,"setTimeout","direct"),$=K(ye(H,"Object.prototype.hasOwnProperty")),ee=(K(ye(H,"Array.prototype.push")),K(ye(H,"Array.prototype.forEach"))),te=K(ye(H,"String.prototype.indexOf")),ne=K(ye(H,"String.prototype.slice")),re=(ye(B,"Image","direct"),K(ye(H,"Image.prototype.src","set"))||K(ye(H,"HTMLImageElement.prototype.src","set"))||function(e,t){e.src=t}),ie=K(ye(H,"HTMLIframeElement.prototype.contentWindow","get"))||function(e){return e.contentWindow},oe=K(ye(H,"HTMLIframeElement.prototype.contentDocument","get"))||function(e){return e.contentDocument},ae=K(ye(H,"EventTarget.prototype.addEventListener"))||function(e,t,n){e.addEventListener(t,n)},ce=K(ye(H,"CanvasRenderingContext2D.prototype.fillText")),ue=K(ye(H,"CanvasRenderingContext2D.prototype.drawImage")),le=K(ye(H,"CanvasRenderingContext2D.prototype.strokeText")),se=K(ye(H,"CanvasRenderingContext2D.prototype.measureText")),fe=ye(B,"WeakMap","direct"),pe=K(ye(H,"WeakMap.prototype.get")),de=K(ye(H,"WeakMap.prototype.set")),he=K(ye(H,"Element.prototype.attachShadow")),ve=K(ye(H,"Node.prototype.textContent","set"));function we(e){for(var t=ye(H,"JSON.parse"),n=ye(B,"Uint8Array","direct"),r=ye(H,"String.fromCodePoint"),i=r,o=new n(e),a="",c=0,u=o.length;c<u;){var l=o[c++];if(l<=127)a+=i(l);else{var s=63&o[c++];if(l<=223)a+=i((31&l)<<6|s);else{var f=63&o[c++];if(l<=239)a+=i((15&l)<<12|s<<6|f);else{var p=63&o[c++];r?a+=i((7&l)<<18|s<<12|f<<6|p):(a+=i(63),c+=3)}}}}return t(a)}function ye(e,t,n){var r,i,o,a,c;void 0===n&&(n="value");var u=(null==H||null==(r=H.String)?void 0:r.prototype.split.value)||window.String.prototype.split,l=(null==H||null==(i=H.Array)?void 0:i.prototype.pop.value)||window.Array.prototype.pop,s=(null==H||null==(o=H.Array)?void 0:o.prototype.forEach.value)||window.Array.prototype.forEach,f=(null==H||null==(a=H.Object)?void 0:a.getOwnPropertyDescriptor.value)||Object.getOwnPropertyDescriptor,p=V(u,t,"."),d=V(l,p),h=e,v=window;if(V(s,p,(function(e){h&&(h=h[e]),v&&(v=v[e])})),h&&h[d]){if(h=h[d],"direct"===n)return h;if(h[n])return h[n]}if(v)return"direct"===n||"value"===n?v[d]:null==(c=f(v,d))?void 0:c[n]}var ge=(null==(L=window.crypto)?void 0:L.subtle)||(null==(U=window.crypto)?void 0:U.webkitSubtle);function me(){return J||(J=ge.importKey("raw",function(e){for(var t=ye(B,"Uint8Array","direct"),n=ye(B,"parseInt","direct"),r=K(ye(H,"String.prototype.substring")),i=new t(e.length/2),o=0,a=e.length;o<a;o+=2)i[o/2]=n(r(e,o,o+2),16);return i}(d),"AES-CBC",!1,["decrypt"]))}function be(e,t){if($(e,t))return e[t]}function Oe(e,t,n){Q(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function Ee(e,t,n,r,i){if(window.fetch)window.fetch(e,{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}).then((function(e){if(200===e.status)return i?e.arrayBuffer():e.json();throw new Error("Invalid response status "+e.status)})).then(n,r);else{var o=new XMLHttpRequest;o.open("POST",e),o.withCredentials=!0,i&&(o.responseType="arraybuffer"),o.setRequestHeader("Content-Type","application/json"),o.onreadystatechange=function(){if(o.readyState===XMLHttpRequest.DONE)if(200===o.status)if(i)n(o.response);else try{n(JSON.parse(o.responseText))}catch(e){r(new Error("Parse response error"))}else r(new Error("Invalid response status "+o.status))},o.onerror=function(){r(new Error("Request error"))},o.send(JSON.stringify(t))}}var Se={},_e=1,Ce={},Ae=null,je={};function xe(e,t){var n=""+_e++;Oe(Se,n,t),Oe(Ce,n,2),function(e,t){if(!d)return De(t,{items:[]}),k("error",{errMsg:"wwapp.fetchOpenData:fail",hint:"Missing referer for jwxwork.js. See: https://work.weixin.qq.com/api/doc/90001/90143/91958"}),void P("[fetchData] fetch reject");var n=s(),r=g+"/wwopen/openData/getOpenData?f=json&r="+n;M("[fetchData] begin #"+t+" ("+n+")");var i=me();function o(e){M("[fetchData] fetch res #"+t),i.then((function(t){return ge.decrypt({name:"AES-CBC",iv:new Uint8Array(16)},t,e)})).then(we).then((function(e){M("[fetchData] fetch parsed #"+t),De(t,e)})).catch(a)}function a(e){P("[fetchData] fetch fail #"+t+" ("+n+")",e),De(t,{items:[]}),k("error",{errMsg:"wwapp.fetchOpenData:fail",rand:n})}!function(e,t,n,r){Ee(e,t,n,r,!0)}(r,{items:e,sid:h},o,a)}(e,n),Me()}function De(e,t){var n=be(Se,e);if(delete Se[e],delete Ce[e],n)if(t){var r=be(t,"items");r?(ee(r,(function(e){var t=be(e,"type"),n=be(e,"id"),r=be(e,"corpid");Oe(je,Te(t,n,r),e)})),n(null,t)):n(new Error("Fetch data failed, missing items"))}else n(new Error("Fetch data failed, missing response"))}function ke(e,t,n){return be(je,Te(e,t,n))}function Te(e,t,n){return e+"::"+t+"::"+(n||"")}function Me(){Ae||(Ae=setTimeout((function(){Ae=null;var e=Y(Ce);if(e.length){var t=[];ee(e,(function(e){var n=be(Ce,e);n>0?Oe(Ce,e,n-1):(delete Ce[e],t.push(e))})),t.length&&P("[callback] timeout, callbackIds: "+t.join(",")),Me()}}),2e3))}var Pe=new Image,Re=!1,Fe=null,qe=[];function Ne(){var e=qe;qe=[],ee(e,(function(e){e(Fe)}))}ae(Pe,"load",(function(){Re=!0,Z(Ne,1)})),ae(Pe,"error",(function(){Fe=new Error("Failed to load crossorigin image"),Z(Ne,1)})),re(Pe,"https://wwcdn.weixin.qq.com/node/wework/images/1x1-00000000.91e42db1c6.png");var Ie="\ufeff",We=String.fromCharCode(8204),Le=String.fromCharCode(8205),Ue=String.fromCharCode(8203),Je=[String.fromCharCode(8206),String.fromCharCode(8207),We,Le,Ue],ze={},He=0;function Be(e){var t=be(e,"encrypt_token");if(t)return t;var n=be(e,"data"),r=be(e,"encrypt_text_data");if(n&&r){for(var i=(He++).toString(5),o="",a=0,c=i.length;a<c;a++)o+=Je[i[a]];var u=Ie+r+o+Ie;return Oe(ze,u,n),Oe(e,"encrypt_token",u),u}}function Ve(e){var t=te(e,Ie,0);if(-1===t)return e;for(var n=ne(e,0,t);-1!==t;){var r=te(e,Ie,t+1);if(-1===r)break;var i=be(ze,ne(e,t,r+1));i?(n+=i,t=r+1):(n+=ne(e,t,r),t=r)}return n+ne(e,t)}var Ke=fe&&new fe,Xe=!1,Ge=!1;function Ye(e){pe(Ke,e)||(Ge||ue(e,Pe,0,0),de(Ke,e,!0))}function Qe(e,t){var n=null;try{n=oe(e)}catch(e){}if(null!==n)throw new Error("Missing cross origin");ie(e).postMessage(t,g)}var Ze,$e,et=function(){function e(){var e=this;this.iframe=document.createElement("iframe"),this.state="loading",this.queue=[],this.timeout=null,this.iframe.onload=T("MainFrame.onload",(function(){M("[MainFrame] onload"),e.state="ready",e.fetchData()})),this.iframe.onerror=function(t){R((null==t?void 0:t.error)||new Error("MainFrame load error"),"MainFrame.onerror"),e.state="error"},this.iframe.style.display="none",this.iframe.referrerPolicy="origin",this.iframe.src=m}var t=e.prototype;return t.enqueueFetch=function(e){var t=this;this.queue.push(e),this.timeout||(this.timeout=setTimeout(T("MainFrame.timeout",(function(){"ready"===t.state&&t.fetchData()})),20))},t.fetchData=function(){var e={},t=[];this.queue.forEach((function(n){var r=n.type+"::"+n.id+"::"+(n.corpid||"");e[r]||(e[r]=!0,t.push(n))})),t.length&&(this.timeout=null,this.queue=[],M("[MainFrame] fetchData"),Qe(this.iframe,JSON.stringify({type:"fetch",items:t,sid:h})))},e}(),tt=["fontFamily","fontSize","fontWeight","fontStyle","fontVariant","fontStretch","fontSizeAdjust","color","cursor"],nt=function(){function e(e,t){this.renderType="emtpy",this.renderEl=null,this.container=e,this.mainFrame=t}var t=e.prototype;return t.update=function(){var e=this.getItem();if(!e.type||!e.id)return this.renderEmpty();this.renderText(e)},t.renderEmpty=function(){this.setChild("empty")},t.renderText=function(e){var t=this;if("frame"!==this.renderType||"error"===this.loadState){var n=document.createElement("iframe");n.onload=T("Frame.onload",(function(){t.renderEl===n&&(t.loadState="ready",t.notifyUpdate())})),n.onerror=function(e){t.renderEl===n&&(R((null==e?void 0:e.error)||new Error("Frame load error"),"Frame.onerror"),t.loadState="error")};var r=c(e.type+"::"+e.id+"::"+(e.corpid||""));n.frameBorder=0,n.referrerPolicy="origin",n.src=m+"&init="+r,this.loadState="loading",this.setChild("frame",n)}this.mainFrame.enqueueFetch(e),"ready"===this.loadState&&this.notifyUpdate(e)},t.setChild=function(e,t){void 0===t&&(t=null);for(var n=this.container;n.firstChild;)n.removeChild(n.firstChild);t&&n.appendChild(t),this.renderEl=t,this.renderType=e},t.getItem=function(){return{type:this.container.getAttribute("type"),id:this.container.getAttribute("openid"),corpid:this.container.getAttribute("corpid")}},t.notifyUpdate=function(e){if(void 0===e&&(e=this.getItem()),e.type&&e.id){var t={},n=getComputedStyle(this.container);tt.forEach((function(e){t[e]=n[e]})),Qe(this.renderEl,JSON.stringify({type:"update",item:e,style:t}))}},e}(),rt="__WW_OPENDATA_RENDER__";function it(e){e&&(e[rt]||(e[rt]=new nt(e,Ze)),e[rt].update())}var ot={};function at(e){if(e.origin===g){var t,n,r;try{t=JSON.parse(e.data)}catch(e){}if(t&&ot[t.type])n=document.querySelectorAll("ww-open-data iframe"),r=function(n){n.contentWindow===e.source&&ot[t.type](e,t,n)},Array.prototype.forEach.call(n,r)}}ot["ww.opendata.event"]=function(e,t,n){"click"===t.eventType&&n.parentNode.click()},ot["ww.opendata.resize"]=function(e,t,n){var r=t.size;n.style.width=r.width,n.style.height=r.height,k("update",{el:n.parentNode,hasData:!!r.width})};var ct=fe&&new fe;function ut(e){var t=pe(ct,e);if(t)return t;try{var n=he(e,{mode:"closed"});return de(ct,e,n),n}catch(e){k("error",e)}}var lt=[],st=null;function ft(e){if(e&&e.getAttribute){var t=e.getAttribute("type");if(t){var n=e.getAttribute("openid");if(n){var r=e.getAttribute("corpid"),i=ut(e);if(i){var o=ke(t,n,r);if(o){var a=be(o,"data");if(ve(i,a||""),k("update",{element:e,hasData:!!a}),a)return}lt.indexOf(e)<0&<.push(e),st||(st=setTimeout(T("bindPending",pt),20))}}}}}function pt(){s();var e=lt;st=null,lt=[];var t=[],n={};ee(e,(function(e){var r=e.getAttribute("type");if(r){var i=e.getAttribute("openid");if(i){var o=e.getAttribute("corpid"),a=Te(r,i,o);n[a]||(n[a]=!0,t.push({type:r,id:i,corpid:o}))}}})),t.length&&xe(t,(function(t){t?k("error",t):ee(e,(function(e){var t=ut(e),n=e.getAttribute("type");if(n){var r=e.getAttribute("openid");if(r){var i=ke(n,r,e.getAttribute("corpid"));if(i){var o=be(i,"data");ve(t,o||""),k("update",{element:e,hasData:!!o})}}}}))}))}var dt=0;he||(dt|=1),ge||(dt|=2),"http:"===document.location.protocol&&(dt|=4);var ht,vt=0,wt=navigator.userAgent,yt=/miniProgram/i.test(wt)||"miniprogram"===window.__wxjs_environment;/wxwork/i.test(wt)&&!yt&&(vt|=4),(null==(ht=window.wx)?void 0:ht.agentConfig)&&(vt|=2),window.WeixinSandBox&&!yt&&(vt|=1);var gt=T("bind",dt?it:ft),mt=T("bindAll",dt?function(e){Array.prototype.forEach.call(e,it)}:function(e){ee(e,ft)});function bt(e){if(void 0===e&&(e={}),!(e.corpid&&e.agentid&&e.timestamp&&e.nonceStr&&e.signature&&e.jsApiList)){var t={err_Info:"fail",errMsg:"agentConfig:fail",hint:"Missing params"};return null==e.fail||e.fail(t),void(null==e.complete||e.complete(t))}var n={corpid:e.corpid+"",agentid:e.agentid+"",timestamp:e.timestamp+"",nonceStr:e.nonceStr+"",signature:e.signature+"",jsApiList:e.jsApiList,url:window.location.href};Ot("agentConfig",{config:n,sid:h},e,(function(){mt(document.querySelectorAll("ww-open-data")),M("[user config] #"+JSON.stringify(n))}))}function Ot(e,t,n,r){void 0===n&&(n={}),void 0===r&&(r=u);var i=s();M("[invoke] "+e+" begin #"+i),function(e,t,n,r){Ee(e,t,n,r,!1)}(g+"/wwopen/openData/"+e+"?f=json&r="+i,t,(function(t){var o=t.data||{errMsg:e+":fail"};o.errMsg===e+":ok"?(M("[invoke] "+e+" succ #"+i),r(o),null==n.success||n.success(o)):(P("[invoke] "+e+" fail #"+i,o),null==n.fail||n.fail(o)),null==n.complete||n.complete(o)}),(function(t){P("[invoke] "+e+" fail #"+i,t);var r={errMsg:e+":fail"};null==n.fail||n.fail(r),null==n.complete||n.complete(r)}))}if(!vt){if(M("[renderer] #"+dt),dt&&function(){window.addEventListener?window.addEventListener("message",T("dispatchMessage",at)):window.attachEvent("onmessage",T("dispatchMessage",at));var e=document.querySelector("head");$e=document.createElement("style"),e.appendChild($e),Ze=new et,e.appendChild(Ze.iframe);var t=$e.sheet;t.insertRule("ww-open-data { display: inline-block; vertical-align: text-bottom; overflow: hidden }",0),t.insertRule("ww-open-data img { display: block; width: 100%; height: 100% }",1),t.insertRule("ww-open-data iframe { display: block; width: 0; height: 0 }",2)}(),d||function(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];(e=console).error.apply(e,[C].concat(n))}("Missing referer for jwxwork.js. See: https://work.weixin.qq.com/api/doc/90001/90143/91958"),window.wx&&window.wx.agentConfig,window.wx||(window.wx={}),window.wx.agentConfig||Q(window.wx,"agentConfig",{value:T("agentConfig",bt)}),!window.WWOpenData){var Et={};Q(Et,"bindAll",{value:mt,enumerable:!0}),Q(Et,"bind",{value:gt,enumerable:!0}),Q(Et,"on",{value:x,enumerable:!0}),Q(Et,"once",{value:function(e,t){x(e,(function e(n){D("name",e),t(n)}))},enumerable:!0}),Q(Et,"off",{value:D,enumerable:!0}),Q(Et,"report",{value:function(){E("Sentry report"),_()},enumerable:!0}),Q(Et,"checkSession",{value:function(e){void 0===e&&(e={}),Ot("checkSession",{sid:h},e)},enumerable:!0}),Q(Et,"initCanvas",{value:function(){var e;if(Xe)return!0;var t=null==(e=window.CanvasRenderingContext2D)?void 0:e.prototype;return!!t&&(t.strokeText=function(e,t,n,r){if(!Re)return null==r?le(this,e,t,n):le(this,e,t,n,r);var i=Ve(e);return i!==e&&Ye(this),null==r?le(this,i,t,n):le(this,i,t,n,r)},t.fillText=function(e,t,n,r){if(!Re)return null==r?ce(this,e,t,n):ce(this,e,t,n,r);var i=Ve(e);return i!==e&&Ye(this),null==r?ce(this,i,t,n):ce(this,i,t,n,r)},t.measureText=function(e){return se(this,Re?Ve(e):e)},Xe=!0,!0)},enumerable:!0}),Q(Et,"enableCanvasSharing",{value:function(){Ge=!0},enumerable:!0}),Q(Et,"disableCanvasSharing",{value:function(){Ge=!1},enumerable:!0}),Q(Et,"prefetch",{value:function(e,t){var n=e.items;xe(n,(function(e){if(e)return t(e);var r=[];ee(n,(function(e){var t=ke(e.type,e.id,e.corpid);t&&1===be(t,"datakind")&&r.push({type:e.type,id:e.id,corpid:e.corpid,data:Be(t)})})),function(e){Re?e():Fe?e(Fe):qe.push(e)}((function(e){e?t(e):t(null,{items:r})}))}))},enumerable:!0}),Q(Et,"__version__",{value:w}),Q(Et,"agentConfig",{value:T("agentConfig",bt)}),Q(window,"WWOpenData",{value:Et,enumerable:!0})}if("customElements"in window&&!customElements.get("ww-open-data"))try{var St=function(e){var n,r,i,o,a;function c(){var t;return _t(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t=e.call(this)||this)),t}return r=e,(n=c).prototype=Object.create(r.prototype),n.prototype.constructor=n,n.__proto__=r,c.prototype.attributeChangedCallback=function(){this._current.type===this.getAttribute("type")&&this._current.id===this.getAttribute("openid")&&this._current.corpid===this.getAttribute("corpid")||_t(this)},i=c,a=[{key:"observedAttributes",get:function(){return["type","openid","corpid"]}}],(o=null)&&t(i.prototype,o),a&&t(i,a),c}(a(HTMLElement));customElements.define("ww-open-data",St)}catch(S){R(S,"register custom element")}}function _t(e){e._current={type:e.getAttribute("type"),id:e.getAttribute("openid"),corpid:e.getAttribute("corpid")},gt(e)}}catch(S){e.captureException(S,"?")}}();
|